|
|
!(function(){var fx=Object.defineProperty,px=Object.defineProperties;var mx=Object.getOwnPropertyDescriptors;var ug=Object.getOwnPropertySymbols;var Tb=Object.prototype.hasOwnProperty,Nb=Object.prototype.propertyIsEnumerable;var Ab=Math.pow,Cb=(J,C,d)=>C in J?fx(J,C,{enumerable:!0,configurable:!0,writable:!0,value:d}):J[C]=d,Eo=(J,C)=>{for(var d in C||(C={}))Tb.call(C,d)&&Cb(J,d,C[d]);if(ug)for(var d of ug(C))Nb.call(C,d)&&Cb(J,d,C[d]);return J},cd=(J,C)=>px(J,mx(C));var kb=(J,C)=>{var d={};for(var b in J)Tb.call(J,b)&&C.indexOf(b)<0&&(d[b]=J[b]);if(J!=null&&ug)for(var b of ug(J))C.indexOf(b)<0&&Nb.call(J,b)&&(d[b]=J[b]);return d};var Ib=(J,C,d)=>new Promise((b,I)=>{var L=Q=>{try{V(d.next(Q))}catch(M){I(M)}},B=Q=>{try{V(d.throw(Q))}catch(M){I(M)}},V=Q=>Q.done?b(Q.value):Promise.resolve(Q.value).then(L,B);V((d=d.apply(J,C)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[6400],{89489:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},59477:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},40001:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},26227:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},49198:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},41464:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},73331:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},15277:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},52671:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},8657:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},56082:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},33853:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},15075:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},43531:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},61485:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},38819:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},47472:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},32050:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(92413),I=d(59301),L={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M400 317.7h73.9V656c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V317.7H624c6.7 0 10.4-7.7 6.3-12.9L518.3 163a8 8 0 00-12.6 0l-112 141.7c-4.1 5.3-.4 13 6.3 13zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"upload",theme:"outlined"},B=L,V=d(7657),Q=function(re,De){return I.createElement(V.Z,(0,b.Z)({},re,{ref:De,icon:B}))},M=I.forwardRef(Q),de=M},78780:function(){"use strict"},19136:function(){"use strict"},50371:function(J,C){"use strict";function d(){const b=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let I=1;I<arguments.length;I++){const L=I<0||arguments.length<=I?void 0:arguments[I];L&&Object.keys(L).forEach(B=>{const V=L[B];V!==void 0&&(b[B]=V)})}return b}C.Z=d},13845:function(J,C,d){"use strict";d.d(C,{F:function(){return b},Z:function(){return I}});function b(L){return L!=null&&L===L.window}function I(L,B){var V,Q;if(typeof window=="undefined")return 0;const M=B?"scrollTop":"scrollLeft";let de=0;return b(L)?de=L[B?"pageYOffset":"pageXOffset"]:L instanceof Document?de=L.documentElement[M]:(L instanceof HTMLElement||L)&&(de=L[M]),L&&!b(L)&&typeof de!="number"&&(de=(Q=((V=L.ownerDocument)!==null&&V!==void 0?V:L).documentElement)===null||Q===void 0?void 0:Q[M]),de}},56762:function(J,C,d){"use strict";d.d(C,{Z:function(){return I}});var b=d(59301);function I(){const[,L]=b.useReducer(B=>B+1,0);return L}},68031:function(J,C,d){"use strict";d.d(C,{Z:function(){return B}});var b=d(16089);function I(V,Q,M,de){const he=M-Q;return V/=de/2,V<1?he/2*V*V*V+Q:he/2*((V-=2)*V*V+2)+Q}var L=d(13845);function B(V){let Q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:M=()=>window,callback:de,duration:he=450}=Q,re=M(),De=(0,L.Z)(re,!0),ne=Date.now(),it=()=>{const Ie=Date.now()-ne,Pe=I(Ie>he?he:Ie,De,V,he);(0,L.F)(re)?re.scrollTo(window.pageXOffset,Pe):re instanceof Document||re.constructor.name==="HTMLDocument"?re.documentElement.scrollTop=Pe:re.scrollTop=Pe,Ie<he?(0,b.Z)(it):typeof de=="function"&&de()};(0,b.Z)(it)}},24905:function(J,C,d){"use strict";d.d(C,{default:function(){return Ae}});var b=d(92310),I=d.n(b),L=d(5630),B=d(59301),V=d(36355),Q=d(1684),M=d(32441),he=B.createContext(null),re=d(98447),De=d(14088),ne=d(4572),it=function(Te,$e){var Qe={};for(var Je in Te)Object.prototype.hasOwnProperty.call(Te,Je)&&$e.indexOf(Je)<0&&(Qe[Je]=Te[Je]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Je=Object.getOwnPropertySymbols(Te);Ce<Je.length;Ce++)$e.indexOf(Je[Ce])<0&&Object.prototype.propertyIsEnumerable.call(Te,Je[Ce])&&(Qe[Je[Ce]]=Te[Je[Ce]]);return Qe};const Ue=(Te,$e)=>{var Qe;const{prefixCls:Je,className:Ce,rootClassName:dt,children:Xe,indeterminate:$t=!1,style:xt,onMouseEnter:At,onMouseLeave:St,skipGroup:Cn=!1,disabled:Ye}=Te,oe=it(Te,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:H,direction:Ot,checkbox:Kt}=B.useContext(V.E_),vt=B.useContext(he),{isFormItemInput:hn}=B.useContext(M.aM),Rt=B.useContext(Q.Z),hi=(Qe=(vt==null?void 0:vt.disabled)||Ye)!==null&&Qe!==void 0?Qe:Rt,yt=B.useRef(oe.value);B.useEffect(()=>{vt==null||vt.registerValue(oe.value)},[]),B.useEffect(()=>{if(!Cn)return oe.value!==yt.current&&(vt==null||vt.cancelValue(yt.current),vt==null||vt.registerValue(oe.value),yt.current=oe.value),()=>vt==null?void 0:vt.cancelValue(oe.value)},[oe.value]);const si=H("checkbox",Je),[qn,ln]=(0,re.ZP)(si),Tn=Object.assign({},oe);vt&&!Cn&&(Tn.onChange=function(){oe.onChange&&oe.onChange.apply(oe,arguments),vt.toggleOption&&vt.toggleOption({label:Xe,value:oe.value})},Tn.name=vt.name,Tn.checked=vt.value.includes(oe.value));const xe=I()(`${si}-wrapper`,{[`${si}-rtl`]:Ot==="rtl",[`${si}-wrapper-checked`]:Tn.checked,[`${si}-wrapper-disabled`]:hi,[`${si}-wrapper-in-form-item`]:hn},Kt==null?void 0:Kt.className,Ce,dt,ln),D=I()({[`${si}-indeterminate`]:$t},ne.A,ln),k=$t?"mixed":void 0;return qn(B.createElement(De.Z,{component:"Checkbox",disabled:hi},B.createElement("label",{className:xe,style:Object.assign(Object.assign({},Kt==null?void 0:Kt.style),xt),onMouseEnter:At,onMouseLeave:St},B.createElement(L.Z,Object.assign({"aria-checked":k},Tn,{prefixCls:si,className:D,disabled:hi,ref:$e})),Xe!==void 0&&B.createElement("span",null,Xe))))};var Pe=B.forwardRef(Ue),ze=d(26407),Ee=d(2738),fe=function(Te,$e){var Qe={};for(var Je in Te)Object.prototype.hasOwnProperty.call(Te,Je)&&$e.indexOf(Je)<0&&(Qe[Je]=Te[Je]);if(Te!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ce=0,Je=Object.getOwnPropertySymbols(Te);Ce<Je.length;Ce++)$e.indexOf(Je[Ce])<0&&Object.prototype.propertyIsEnumerable.call(Te,Je[Ce])&&(Qe[Je[Ce]]=Te[Je[Ce]]);return Qe};const we=(Te,$e)=>{const{defaultValue:Qe,children:Je,options:Ce=[],prefixCls:dt,className:Xe,rootClassName:$t,style:xt,onChange:At}=Te,St=fe(Te,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:Cn,direction:Ye}=B.useContext(V.E_),[oe,H]=B.useState(St.value||Qe||[]),[Ot,Kt]=B.useState([]);B.useEffect(()=>{"value"in St&&H(St.value||[])},[St.value]);const vt=B.useMemo(()=>Ce.map(G=>typeof G=="string"||typeof G=="number"?{label:G,value:G}:G),[Ce]),hn=G=>{Kt(X=>X.filter(T=>T!==G))},Rt=G=>{Kt(X=>[].concat((0,ze.Z)(X),[G]))},hi=G=>{const X=oe.indexOf(G.value),T=(0,ze.Z)(oe);X===-1?T.push(G.value):T.splice(X,1),"value"in St||H(T),At==null||At(T.filter(Re=>Ot.includes(Re)).sort((Re,mt)=>{const _e=vt.findIndex(ct=>ct.value===Re),Le=vt.findIndex(ct=>ct.value===mt);return _e-Le}))},yt=Cn("checkbox",dt),si=`${yt}-group`,[qn,ln]=(0,re.ZP)(yt),Tn=(0,Ee.Z)(St,["value","disabled"]),xe=Ce.length?vt.map(G=>B.createElement(Pe,{prefixCls:yt,key:G.value.toString(),disabled:"disabled"in G?G.disabled:St.disabled,value:G.value,checked:oe.includes(G.value),onChange:G.onChange,className:`${si}-item`,style:G.style,title:G.title},G.label)):Je,D={toggleOption:hi,value:oe,disabled:St.disabled,name:St.name,registerValue:Rt,cancelValue:hn},k=I()(si,{[`${si}-rtl`]:Ye==="rtl"},Xe,$t,ln);return qn(B.createElement("div",Object.assign({className:k,style:xt},Tn,{ref:$e}),B.createElement(he.Provider,{value:D},xe)))},pe=B.forwardRef(we);var Ne=B.memo(pe);const te=Pe;te.Group=Ne,te.__ANT_CHECKBOX=!0;var Ae=te},98447:function(J,C,d){"use strict";d.d(C,{C2:function(){return V}});var b=d(17313),I=d(37613),L=d(83116);const B=Q=>{const{checkboxCls:M}=Q,de=`${M}-wrapper`;return[{[`${M}-group`]:Object.assign(Object.assign({},(0,b.Wf)(Q)),{display:"inline-flex",flexWrap:"wrap",columnGap:Q.marginXS,[`> ${Q.antCls}-row`]:{flex:1}}),[de]:Object.assign(Object.assign({},(0,b.Wf)(Q)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${de}`]:{marginInlineStart:0},[`&${de}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[M]:Object.assign(Object.assign({},(0,b.Wf)(Q)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:Q.borderRadiusSM,alignSelf:"center",[`${M}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${M}-inner`]:Object.assign({},(0,b.oN)(Q))},[`${M}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:Q.checkboxSize,height:Q.checkboxSize,direction:"ltr",backgroundColor:Q.colorBgContainer,border:`${Q.lineWidth}px ${Q.lineType} ${Q.colorBorder}`,borderRadius:Q.borderRadiusSM,borderCollapse:"separate",transition:`all ${Q.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:Q.checkboxSize/14*5,height:Q.checkboxSize/14*8,border:`${Q.lineWidthBold}px solid ${Q.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${Q.motionDurationFast} ${Q.motionEaseInBack}, opacity ${Q.motionDurationFast}`}},"& + span":{paddingInlineStart:Q.paddingXS,paddingInlineEnd:Q.paddingXS}})},{[`
|
|
|
${de}:not(${de}-disabled),
|
|
|
${M}:not(${M}-disabled)
|
|
|
`]:{[`&:hover ${M}-inner`]:{borderColor:Q.colorPrimary}},[`${de}:not(${de}-disabled)`]:{[`&:hover ${M}-checked:not(${M}-disabled) ${M}-inner`]:{backgroundColor:Q.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${M}-checked:not(${M}-disabled):after`]:{borderColor:Q.colorPrimaryHover}}},{[`${M}-checked`]:{[`${M}-inner`]:{backgroundColor:Q.colorPrimary,borderColor:Q.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${Q.motionDurationMid} ${Q.motionEaseOutBack} ${Q.motionDurationFast}`}}},[`
|
|
|
${de}-checked:not(${de}-disabled),
|
|
|
${M}-checked:not(${M}-disabled)
|
|
|
`]:{[`&:hover ${M}-inner`]:{backgroundColor:Q.colorPrimaryHover,borderColor:"transparent"}}},{[M]:{"&-indeterminate":{[`${M}-inner`]:{backgroundColor:Q.colorBgContainer,borderColor:Q.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:Q.fontSizeLG/2,height:Q.fontSizeLG/2,backgroundColor:Q.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${de}-disabled`]:{cursor:"not-allowed"},[`${M}-disabled`]:{[`&, ${M}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${M}-inner`]:{background:Q.colorBgContainerDisabled,borderColor:Q.colorBorder,"&:after":{borderColor:Q.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:Q.colorTextDisabled},[`&${M}-indeterminate ${M}-inner::after`]:{background:Q.colorTextDisabled}}}]};function V(Q,M){const de=(0,I.TS)(M,{checkboxCls:`.${Q}`,checkboxSize:M.controlInteractiveSize});return[B(de)]}C.ZP=(0,L.Z)("Checkbox",(Q,M)=>{let{prefixCls:de}=M;return[V(de,Q)]})},93891:function(J,C,d){"use strict";var b=d(59301),I=d(36355),L=d(64165);const B=V=>{const{componentName:Q}=V,{getPrefixCls:M}=(0,b.useContext)(I.E_),de=M("empty");switch(Q){case"Table":case"List":return b.createElement(L.Z,{image:L.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return b.createElement(L.Z,{image:L.Z.PRESENTED_IMAGE_SIMPLE,className:`${de}-small`});default:return b.createElement(L.Z,null)}};C.Z=B},43428:function(J,C,d){"use strict";d.d(C,{Z:function(){return qn}});var b=d(92310),I=d.n(b),L=d(33708),B=d(33606),V=d(43403),Q=d(34280),M=d(59301),de=M.createContext(null),he=M.createContext({}),re=de,De=d(400),ne=d(92413),it=d(77900),Ue=d(10228),Ie=d(26112),Pe=d(70425),ze=function(Tn){var xe=Tn.prefixCls,D=Tn.className,k=Tn.style,G=Tn.children,X=Tn.containerRef,T=Tn.id,Re=Tn.onMouseEnter,mt=Tn.onMouseOver,_e=Tn.onMouseLeave,Le=Tn.onClick,ct=Tn.onKeyDown,ot=Tn.onKeyUp,Ze={onMouseEnter:Re,onMouseOver:mt,onMouseLeave:_e,onClick:Le,onKeyDown:ct,onKeyUp:ot},Et=M.useContext(he),Gt=Et.panel,Vt=(0,Pe.useComposeRef)(Gt,X);return M.createElement(M.Fragment,null,M.createElement("div",(0,ne.Z)({id:T,className:I()("".concat(xe,"-content"),D),style:(0,L.Z)({},k),"aria-modal":"true",role:"dialog",ref:Vt},Ze),G))},Ee=ze,fe=d(48736);function we(ln){return typeof ln=="string"&&String(Number(ln))===ln?((0,fe.ZP)(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(ln)):ln}function pe(ln){warning(!("wrapperClassName"in ln),"'wrapperClassName' is removed. Please use 'rootClassName' instead."),warning(canUseDom()||!ln.open,"Drawer with 'open' in SSR is not work since no place to createPortal. Please move to 'useEffect' instead.")}var Ne={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function te(ln,Tn){var xe,D,k,G,X=ln.prefixCls,T=ln.open,Re=ln.placement,mt=ln.inline,_e=ln.push,Le=ln.forceRender,ct=ln.autoFocus,ot=ln.keyboard,Ze=ln.rootClassName,Et=ln.rootStyle,Gt=ln.zIndex,Vt=ln.className,Pt=ln.id,nn=ln.style,vn=ln.motion,We=ln.width,Dt=ln.height,Qt=ln.children,bn=ln.contentWrapperStyle,$n=ln.mask,Un=ln.maskClosable,kt=ln.maskMotion,Hn=ln.maskClassName,Jn=ln.maskStyle,tt=ln.afterOpenChange,j=ln.onClose,Oi=ln.onMouseEnter,tr=ln.onMouseOver,Gn=ln.onMouseLeave,Ti=ln.onClick,Er=ln.onKeyDown,Zi=ln.onKeyUp,_=M.useRef(),ht=M.useRef(),_i=M.useRef();M.useImperativeHandle(Tn,function(){return _.current});var Rr=function(Kn){var ut=Kn.keyCode,yn=Kn.shiftKey;switch(ut){case Ue.Z.TAB:{if(ut===Ue.Z.TAB){if(!yn&&document.activeElement===_i.current){var rn;(rn=ht.current)===null||rn===void 0||rn.focus({preventScroll:!0})}else if(yn&&document.activeElement===ht.current){var Si;(Si=_i.current)===null||Si===void 0||Si.focus({preventScroll:!0})}}break}case Ue.Z.ESC:{j&&ot&&(Kn.stopPropagation(),j(Kn));break}}};M.useEffect(function(){if(T&&ct){var ni;(ni=_.current)===null||ni===void 0||ni.focus({preventScroll:!0})}},[T]);var Ar=M.useState(!1),Yr=(0,B.Z)(Ar,2),Dr=Yr[0],Hr=Yr[1],dr=M.useContext(re),Vi;_e===!1?Vi={distance:0}:_e===!0?Vi={}:Vi=_e||{};var fi=(xe=(D=(k=Vi)===null||k===void 0?void 0:k.distance)!==null&&D!==void 0?D:dr==null?void 0:dr.pushDistance)!==null&&xe!==void 0?xe:180,at=M.useMemo(function(){return{pushDistance:fi,push:function(){Hr(!0)},pull:function(){Hr(!1)}}},[fi]);M.useEffect(function(){if(T){var ni;dr==null||(ni=dr.push)===null||ni===void 0||ni.call(dr)}else{var Kn;dr==null||(Kn=dr.pull)===null||Kn===void 0||Kn.call(dr)}},[T]),M.useEffect(function(){return function(){var ni;dr==null||(ni=dr.pull)===null||ni===void 0||ni.call(dr)}},[]);var Fn=$n&&M.createElement(it.default,(0,ne.Z)({key:"mask"},kt,{visible:T}),function(ni,Kn){var ut=ni.className,yn=ni.style;return M.createElement("div",{className:I()("".concat(X,"-mask"),ut,Hn),style:(0,L.Z)((0,L.Z)({},yn),Jn),onClick:Un&&T?j:void 0,ref:Kn})}),Qn=typeof vn=="function"?vn(Re):vn,ft={};if(Dr&&fi)switch(Re){case"top":ft.transform="translateY(".concat(fi,"px)");break;case"bottom":ft.transform="translateY(".concat(-fi,"px)");break;case"left":ft.transform="translateX(".concat(fi,"px)");break;default:ft.transform="translateX(".concat(-fi,"px)");break}Re==="left"||Re==="right"?ft.width=we(We):ft.height=we(Dt);var je={onMouseEnter:Oi,onMouseOver:tr,onMouseLeave:Gn,onClick:Ti,onKeyDown:Er,onKeyUp:Zi},sn=M.createElement(it.default,(0,ne.Z)({key:"panel"},Qn,{visible:T,forceRender:Le,onVisibleChanged:function(Kn){tt==null||tt(Kn)},removeOnLeave:!1,leavedClassName:"".concat(X,"-content-wrapper-hidden")}),function(ni,Kn){var ut=ni.className,yn=ni.style;return M.createElement("div",(0,ne.Z)({className:I()("".concat(X,"-content-wrapper"),ut),style:(0,L.Z)((0,L.Z)((0,L.Z)({},ft),yn),bn)},(0,Ie.Z)(ln,{data:!0})),M.createElement(Ee,(0,ne.Z)({id:Pt,containerRef:Kn,prefixCls:X,className:Vt,style:nn},je),Qt))}),In=(0,L.Z)({},Et);return Gt&&(In.zIndex=Gt),M.createElement(re.Provider,{value:at},M.createElement("div",{className:I()(X,"".concat(X,"-").concat(Re),Ze,(G={},(0,De.Z)(G,"".concat(X,"-open"),T),(0,De.Z)(G,"".concat(X,"-inline"),mt),G)),style:In,tabIndex:-1,ref:_,onKeyDown:Rr},Fn,M.createElement("div",{tabIndex:0,ref:ht,style:Ne,"aria-hidden":"true","data-sentinel":"start"}),sn,M.createElement("div",{tabIndex:0,ref:_i,style:Ne,"aria-hidden":"true","data-sentinel":"end"})))}var Ae=M.forwardRef(te),Te=Ae,$e=function(Tn){var xe=Tn.open,D=xe===void 0?!1:xe,k=Tn.prefixCls,G=k===void 0?"rc-drawer":k,X=Tn.placement,T=X===void 0?"right":X,Re=Tn.autoFocus,mt=Re===void 0?!0:Re,_e=Tn.keyboard,Le=_e===void 0?!0:_e,ct=Tn.width,ot=ct===void 0?378:ct,Ze=Tn.mask,Et=Ze===void 0?!0:Ze,Gt=Tn.maskClosable,Vt=Gt===void 0?!0:Gt,Pt=Tn.getContainer,nn=Tn.forceRender,vn=Tn.afterOpenChange,We=Tn.destroyOnClose,Dt=Tn.onMouseEnter,Qt=Tn.onMouseOver,bn=Tn.onMouseLeave,$n=Tn.onClick,Un=Tn.onKeyDown,kt=Tn.onKeyUp,Hn=Tn.panelRef,Jn=M.useState(!1),tt=(0,B.Z)(Jn,2),j=tt[0],Oi=tt[1],tr=M.useState(!1),Gn=(0,B.Z)(tr,2),Ti=Gn[0],Er=Gn[1];(0,Q.Z)(function(){Er(!0)},[]);var Zi=Ti?D:!1,_=M.useRef(),ht=M.useRef();(0,Q.Z)(function(){Zi&&(ht.current=document.activeElement)},[Zi]);var _i=function(Hr){var dr;if(Oi(Hr),vn==null||vn(Hr),!Hr&&ht.current&&!((dr=_.current)!==null&&dr!==void 0&&dr.contains(ht.current))){var Vi;(Vi=ht.current)===null||Vi===void 0||Vi.focus({preventScroll:!0})}},Rr=M.useMemo(function(){return{panel:Hn}},[Hn]);if(!nn&&!j&&!Zi&&We)return null;var Ar={onMouseEnter:Dt,onMouseOver:Qt,onMouseLeave:bn,onClick:$n,onKeyDown:Un,onKeyUp:kt},Yr=(0,L.Z)((0,L.Z)({},Tn),{},{open:Zi,prefixCls:G,placement:T,autoFocus:mt,keyboard:Le,width:ot,mask:Et,maskClosable:Vt,inline:Pt===!1,afterOpenChange:_i,ref:_},Ar);return M.createElement(he.Provider,{value:Rr},M.createElement(V.Z,{open:Zi||nn||j,autoDestroy:!1,getContainer:Pt,autoLock:Et&&(Zi||j)},M.createElement(Te,Yr)))},Qe=$e,Je=Qe,Ce=d(62892),dt=d(36355),Xe=d(32441),$t=d(47729),At=ln=>{const{prefixCls:Tn,title:xe,footer:D,extra:k,closeIcon:G,closable:X,onClose:T,headerStyle:Re,drawerStyle:mt,bodyStyle:_e,footerStyle:Le,children:ct}=ln,ot=M.useCallback(Pt=>M.createElement("button",{type:"button",onClick:T,"aria-label":"Close",className:`${Tn}-close`},Pt),[T]),[Ze,Et]=(0,$t.Z)(X,G,ot,void 0,!0),Gt=M.useMemo(()=>!xe&&!Ze?null:M.createElement("div",{style:Re,className:I()(`${Tn}-header`,{[`${Tn}-header-close-only`]:Ze&&!xe&&!k})},M.createElement("div",{className:`${Tn}-header-title`},Et,xe&&M.createElement("div",{className:`${Tn}-title`},xe)),k&&M.createElement("div",{className:`${Tn}-extra`},k)),[Ze,Et,k,Re,Tn,xe]),Vt=M.useMemo(()=>{if(!D)return null;const Pt=`${Tn}-footer`;return M.createElement("div",{className:Pt,style:Le},D)},[D,Le,Tn]);return M.createElement("div",{className:`${Tn}-wrapper-body`,style:mt},Gt,M.createElement("div",{className:`${Tn}-body`,style:_e},ct),Vt)},St=d(33234),Cn=d(83116),Ye=d(37613),H=ln=>{const{componentCls:Tn,motionDurationSlow:xe}=ln,D={"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${xe}`}}};return{[Tn]:{[`${Tn}-mask-motion`]:{"&-enter, &-appear, &-leave":{"&-active":{transition:`all ${xe}`}},"&-enter, &-appear":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}}},[`${Tn}-panel-motion`]:{"&-left":[D,{"&-enter, &-appear":{"&-start":{transform:"translateX(-100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(-100%)"}}}],"&-right":[D,{"&-enter, &-appear":{"&-start":{transform:"translateX(100%) !important"},"&-active":{transform:"translateX(0)"}},"&-leave":{transform:"translateX(0)","&-active":{transform:"translateX(100%)"}}}],"&-top":[D,{"&-enter, &-appear":{"&-start":{transform:"translateY(-100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(-100%)"}}}],"&-bottom":[D,{"&-enter, &-appear":{"&-start":{transform:"translateY(100%) !important"},"&-active":{transform:"translateY(0)"}},"&-leave":{transform:"translateY(0)","&-active":{transform:"translateY(100%)"}}}]}}}};const Ot=ln=>{const{componentCls:Tn,zIndexPopup:xe,colorBgMask:D,colorBgElevated:k,motionDurationSlow:G,motionDurationMid:X,padding:T,paddingLG:Re,fontSizeLG:mt,lineHeightLG:_e,lineWidth:Le,lineType:ct,colorSplit:ot,marginSM:Ze,colorIcon:Et,colorIconHover:Gt,colorText:Vt,fontWeightStrong:Pt,footerPaddingBlock:nn,footerPaddingInline:vn}=ln,We=`${Tn}-content-wrapper`;return{[Tn]:{position:"fixed",inset:0,zIndex:xe,pointerEvents:"none","&-pure":{position:"relative",background:k,[`&${Tn}-left`]:{boxShadow:ln.boxShadowDrawerLeft},[`&${Tn}-right`]:{boxShadow:ln.boxShadowDrawerRight},[`&${Tn}-top`]:{boxShadow:ln.boxShadowDrawerUp},[`&${Tn}-bottom`]:{boxShadow:ln.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${Tn}-mask`]:{position:"absolute",inset:0,zIndex:xe,background:D,pointerEvents:"auto"},[We]:{position:"absolute",zIndex:xe,maxWidth:"100vw",transition:`all ${G}`,"&-hidden":{display:"none"}},[`&-left > ${We}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:ln.boxShadowDrawerLeft},[`&-right > ${We}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:ln.boxShadowDrawerRight},[`&-top > ${We}`]:{top:0,insetInline:0,boxShadow:ln.boxShadowDrawerUp},[`&-bottom > ${We}`]:{bottom:0,insetInline:0,boxShadow:ln.boxShadowDrawerDown},[`${Tn}-content`]:{width:"100%",height:"100%",overflow:"auto",background:k,pointerEvents:"auto"},[`${Tn}-wrapper-body`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%"},[`${Tn}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${T}px ${Re}px`,fontSize:mt,lineHeight:_e,borderBottom:`${Le}px ${ct} ${ot}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${Tn}-extra`]:{flex:"none"},[`${Tn}-close`]:{display:"inline-block",marginInlineEnd:Ze,color:Et,fontWeight:Pt,fontSize:mt,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,outline:0,cursor:"pointer",transition:`color ${X}`,textRendering:"auto","&:focus, &:hover":{color:Gt,textDecoration:"none"}},[`${Tn}-title`]:{flex:1,margin:0,color:Vt,fontWeight:ln.fontWeightStrong,fontSize:mt,lineHeight:_e},[`${Tn}-body`]:{flex:1,minWidth:0,minHeight:0,padding:Re,overflow:"auto"},[`${Tn}-footer`]:{flexShrink:0,padding:`${nn}px ${vn}px`,borderTop:`${Le}px ${ct} ${ot}`},"&-rtl":{direction:"rtl"}}}};var Kt=(0,Cn.Z)("Drawer",ln=>{const Tn=(0,Ye.TS)(ln,{});return[Ot(Tn),H(Tn)]},ln=>({zIndexPopup:ln.zIndexPopupBase,footerPaddingBlock:ln.paddingXS,footerPaddingInline:ln.padding})),vt=d(11575),hn=function(ln,Tn){var xe={};for(var D in ln)Object.prototype.hasOwnProperty.call(ln,D)&&Tn.indexOf(D)<0&&(xe[D]=ln[D]);if(ln!=null&&typeof Object.getOwnPropertySymbols=="function")for(var k=0,D=Object.getOwnPropertySymbols(ln);k<D.length;k++)Tn.indexOf(D[k])<0&&Object.prototype.propertyIsEnumerable.call(ln,D[k])&&(xe[D[k]]=ln[D[k]]);return xe};const Rt=null,hi={distance:180},yt=ln=>{var Tn;const{rootClassName:xe,width:D,height:k,size:G="default",mask:X=!0,push:T=hi,open:Re,afterOpenChange:mt,onClose:_e,prefixCls:Le,getContainer:ct,style:ot,className:Ze,visible:Et,afterVisibleChange:Gt}=ln,Vt=hn(ln,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","style","className","visible","afterVisibleChange"]),{getPopupContainer:Pt,getPrefixCls:nn,direction:vn,drawer:We}=M.useContext(dt.E_),Dt=nn("drawer",Le),[Qt,bn]=Kt(Dt),$n=ct===void 0&&Pt?()=>Pt(document.body):ct,Un=I()({"no-mask":!X,[`${Dt}-rtl`]:vn==="rtl"},xe,bn),kt=M.useMemo(()=>D!=null?D:G==="large"?736:378,[D,G]),Hn=M.useMemo(()=>k!=null?k:G==="large"?736:378,[k,G]),Jn={motionName:(0,Ce.m)(Dt,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},tt=Oi=>({motionName:(0,Ce.m)(Dt,`panel-motion-${Oi}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),j=(0,vt.H)();return Qt(M.createElement(St.BR,null,M.createElement(Xe.Ux,{status:!0,override:!0},M.createElement(Je,Object.assign({prefixCls:Dt,onClose:_e,maskMotion:Jn,motion:tt},Vt,{open:Re!=null?Re:Et,mask:X,push:T,width:kt,height:Hn,style:Object.assign(Object.assign({},We==null?void 0:We.style),ot),className:I()(We==null?void 0:We.className,Ze),rootClassName:Un,getContainer:$n,afterOpenChange:mt!=null?mt:Gt,panelRef:j}),M.createElement(At,Object.assign({prefixCls:Dt},Vt,{onClose:_e}))))))},si=ln=>{const{prefixCls:Tn,style:xe,className:D,placement:k="right"}=ln,G=hn(ln,["prefixCls","style","className","placement"]),{getPrefixCls:X}=M.useContext(dt.E_),T=X("drawer",Tn),[Re,mt]=Kt(T),_e=I()(T,`${T}-pure`,`${T}-${k}`,mt,D);return Re(M.createElement("div",{className:_e,style:xe},M.createElement(At,Object.assign({prefixCls:T},G))))};yt._InternalPanelDoNotUseOrYouWillBeFired=si;var qn=yt},91857:function(J,C,d){"use strict";var b=d(59301),I=d(38819),L=d(92310),B=d.n(L),V=d(31561),Q=d(70425),M=d(18929),de=d(2738),he=d(79676),re=d(53487),De=d(92343),ne=d(36355),it=d(20834),Ue=d(40875),Ie=d(88088),Pe=d(47211);const ze=null,Ee=Ne=>{const{menu:te,arrow:Ae,prefixCls:Te,children:$e,trigger:Qe,disabled:Je,dropdownRender:Ce,getPopupContainer:dt,overlayClassName:Xe,rootClassName:$t,open:xt,onOpenChange:At,visible:St,onVisibleChange:Cn,mouseEnterDelay:Ye=.15,mouseLeaveDelay:oe=.1,autoAdjustOverflow:H=!0,placement:Ot="",overlay:Kt,transitionName:vt}=Ne,{getPopupContainer:hn,getPrefixCls:Rt,direction:hi}=b.useContext(ne.E_),yt=b.useMemo(()=>{const Ze=Rt();return vt!==void 0?vt:Ot.includes("top")?`${Ze}-slide-down`:`${Ze}-slide-up`},[Rt,Ot,vt]),si=b.useMemo(()=>Ot?Ot.includes("Center")?Ot.slice(0,Ot.indexOf("Center")):Ot:hi==="rtl"?"bottomRight":"bottomLeft",[Ot,hi]),qn=Rt("dropdown",Te),[ln,Tn]=(0,Pe.Z)(qn),[,xe]=(0,Ie.Z)(),D=b.Children.only($e),k=(0,De.Tm)(D,{className:B()(`${qn}-trigger`,{[`${qn}-rtl`]:hi==="rtl"},D.props.className),disabled:Je}),G=Je?[]:Qe;let X;G&&G.includes("contextMenu")&&(X=!0);const[T,Re]=(0,M.Z)(!1,{value:xt!=null?xt:St}),mt=(0,Q.useEvent)(Ze=>{At==null||At(Ze),Cn==null||Cn(Ze),Re(Ze)}),_e=B()(Xe,$t,Tn,{[`${qn}-rtl`]:hi==="rtl"}),Le=(0,he.Z)({arrowPointAtCenter:typeof Ae=="object"&&Ae.pointAtCenter,autoAdjustOverflow:H,offset:xe.marginXXS,arrowWidth:Ae?xe.sizePopupArrow:0,borderRadius:xe.borderRadius}),ct=b.useCallback(()=>{Re(!1)},[]),ot=()=>{let Ze;return te!=null&&te.items?Ze=b.createElement(it.default,Object.assign({},te)):typeof Kt=="function"?Ze=Kt():Ze=Kt,Ce&&(Ze=Ce(Ze)),Ze=b.Children.only(typeof Ze=="string"?b.createElement("span",null,Ze):Ze),b.createElement(Ue.J,{prefixCls:`${qn}-menu`,expandIcon:b.createElement("span",{className:`${qn}-menu-submenu-arrow`},b.createElement(I.Z,{className:`${qn}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:ct,validator:Et=>{let{mode:Gt}=Et}},Ze)};return ln(b.createElement(V.Z,Object.assign({alignPoint:X},(0,de.Z)(Ne,["rootClassName"]),{mouseEnterDelay:Ye,mouseLeaveDelay:oe,visible:T,builtinPlacements:Le,arrow:!!Ae,overlayClassName:_e,prefixCls:qn,getPopupContainer:dt||hn,transitionName:yt,trigger:G,overlay:ot,placement:si,onVisibleChange:mt}),k))};function fe(Ne){return Object.assign(Object.assign({},Ne),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const we=(0,re.Z)(Ee,"dropdown",Ne=>Ne,fe),pe=Ne=>b.createElement(we,Object.assign({},Ne),b.createElement("span",null));Ee._InternalPanelDoNotUseOrYouWillBeFired=pe,C.Z=Ee},38854:function(J,C,d){"use strict";d.d(C,{Z:function(){return Ie}});var b=d(91857),I=d(92310),L=d.n(I),B=d(59301),V=d(18785),Q=d(3113),M=d(36355),de=d(81327),he=d(33234),re=d(47211),De=function(Pe,ze){var Ee={};for(var fe in Pe)Object.prototype.hasOwnProperty.call(Pe,fe)&&ze.indexOf(fe)<0&&(Ee[fe]=Pe[fe]);if(Pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var we=0,fe=Object.getOwnPropertySymbols(Pe);we<fe.length;we++)ze.indexOf(fe[we])<0&&Object.prototype.propertyIsEnumerable.call(Pe,fe[we])&&(Ee[fe[we]]=Pe[fe[we]]);return Ee};const ne=Pe=>{const{getPopupContainer:ze,getPrefixCls:Ee,direction:fe}=B.useContext(M.E_),{prefixCls:we,type:pe="default",danger:Ne,disabled:te,loading:Ae,onClick:Te,htmlType:$e,children:Qe,className:Je,menu:Ce,arrow:dt,autoFocus:Xe,overlay:$t,trigger:xt,align:At,open:St,onOpenChange:Cn,placement:Ye,getPopupContainer:oe,href:H,icon:Ot=B.createElement(V.Z,null),title:Kt,buttonsRender:vt=ot=>ot,mouseEnterDelay:hn,mouseLeaveDelay:Rt,overlayClassName:hi,overlayStyle:yt,destroyPopupOnHide:si,dropdownRender:qn}=Pe,ln=De(Pe,["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"]),Tn=Ee("dropdown",we),xe=`${Tn}-button`,[D,k]=(0,re.Z)(Tn),G={menu:Ce,arrow:dt,autoFocus:Xe,align:At,disabled:te,trigger:te?[]:xt,onOpenChange:Cn,getPopupContainer:oe||ze,mouseEnterDelay:hn,mouseLeaveDelay:Rt,overlayClassName:hi,overlayStyle:yt,destroyPopupOnHide:si,dropdownRender:qn},{compactSize:X,compactItemClassnames:T}=(0,he.ri)(Tn,fe),Re=L()(xe,T,Je,k);"overlay"in Pe&&(G.overlay=$t),"open"in Pe&&(G.open=St),"placement"in Pe?G.placement=Ye:G.placement=fe==="rtl"?"bottomLeft":"bottomRight";const mt=B.createElement(Q.ZP,{type:pe,danger:Ne,disabled:te,loading:Ae,onClick:Te,htmlType:$e,href:H,title:Kt},Qe),_e=B.createElement(Q.ZP,{type:pe,danger:Ne,icon:Ot}),[Le,ct]=vt([mt,_e]);return D(B.createElement(de.Z.Compact,Object.assign({className:Re,size:X,block:!0},ln),Le,B.createElement(b.Z,Object.assign({},G),ct)))};ne.__ANT_BUTTON=!0;var it=ne;const Ue=b.Z;Ue.Button=it;var Ie=Ue},47211:function(J,C,d){"use strict";d.d(C,{Z:function(){return De}});var b=d(17313),I=d(13826),L=d(92899),B=d(29878),V=d(19447),Q=d(83116),M=d(37613),he=ne=>{const{componentCls:it,menuCls:Ue,colorError:Ie,colorTextLightSolid:Pe}=ne,ze=`${Ue}-item`;return{[`${it}, ${it}-menu-submenu`]:{[`${Ue} ${ze}`]:{[`&${ze}-danger:not(${ze}-disabled)`]:{color:Ie,"&:hover":{color:Pe,backgroundColor:Ie}}}}}};const re=ne=>{const{componentCls:it,menuCls:Ue,zIndexPopup:Ie,dropdownArrowDistance:Pe,sizePopupArrow:ze,antCls:Ee,iconCls:fe,motionDurationMid:we,dropdownPaddingVertical:pe,fontSize:Ne,dropdownEdgeChildPadding:te,colorTextDisabled:Ae,fontSizeIcon:Te,controlPaddingHorizontal:$e,colorBgElevated:Qe}=ne;return[{[it]:Object.assign(Object.assign({},(0,b.Wf)(ne)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:Ie,display:"block","&::before":{position:"absolute",insetBlock:-Pe+ze/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Ee}-btn`]:{[`& > ${fe}-down, & > ${Ee}-btn-icon > ${fe}-down`]:{fontSize:Te}},[`${it}-wrap`]:{position:"relative",[`${Ee}-btn > ${fe}-down`]:{fontSize:Te},[`${fe}-down::before`]:{transition:`transform ${we}`}},[`${it}-wrap-open`]:{[`${fe}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Ee}-slide-down-enter${Ee}-slide-down-enter-active${it}-placement-bottomLeft,
|
|
|
&${Ee}-slide-down-appear${Ee}-slide-down-appear-active${it}-placement-bottomLeft,
|
|
|
&${Ee}-slide-down-enter${Ee}-slide-down-enter-active${it}-placement-bottom,
|
|
|
&${Ee}-slide-down-appear${Ee}-slide-down-appear-active${it}-placement-bottom,
|
|
|
&${Ee}-slide-down-enter${Ee}-slide-down-enter-active${it}-placement-bottomRight,
|
|
|
&${Ee}-slide-down-appear${Ee}-slide-down-appear-active${it}-placement-bottomRight`]:{animationName:I.fJ},[`&${Ee}-slide-up-enter${Ee}-slide-up-enter-active${it}-placement-topLeft,
|
|
|
&${Ee}-slide-up-appear${Ee}-slide-up-appear-active${it}-placement-topLeft,
|
|
|
&${Ee}-slide-up-enter${Ee}-slide-up-enter-active${it}-placement-top,
|
|
|
&${Ee}-slide-up-appear${Ee}-slide-up-appear-active${it}-placement-top,
|
|
|
&${Ee}-slide-up-enter${Ee}-slide-up-enter-active${it}-placement-topRight,
|
|
|
&${Ee}-slide-up-appear${Ee}-slide-up-appear-active${it}-placement-topRight`]:{animationName:I.Qt},[`&${Ee}-slide-down-leave${Ee}-slide-down-leave-active${it}-placement-bottomLeft,
|
|
|
&${Ee}-slide-down-leave${Ee}-slide-down-leave-active${it}-placement-bottom,
|
|
|
&${Ee}-slide-down-leave${Ee}-slide-down-leave-active${it}-placement-bottomRight`]:{animationName:I.Uw},[`&${Ee}-slide-up-leave${Ee}-slide-up-leave-active${it}-placement-topLeft,
|
|
|
&${Ee}-slide-up-leave${Ee}-slide-up-leave-active${it}-placement-top,
|
|
|
&${Ee}-slide-up-leave${Ee}-slide-up-leave-active${it}-placement-topRight`]:{animationName:I.ly}})},(0,V.ZP)(ne,{colorBg:Qe,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${it} ${Ue}`]:{position:"relative",margin:0},[`${Ue}-submenu-popup`]:{position:"absolute",zIndex:Ie,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${it}, ${it}-menu-submenu`]:{[Ue]:Object.assign(Object.assign({padding:te,listStyleType:"none",backgroundColor:Qe,backgroundClip:"padding-box",borderRadius:ne.borderRadiusLG,outline:"none",boxShadow:ne.boxShadowSecondary},(0,b.Qy)(ne)),{[`${Ue}-item-group-title`]:{padding:`${pe}px ${$e}px`,color:ne.colorTextDescription,transition:`all ${we}`},[`${Ue}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${Ue}-item-icon`]:{minWidth:Ne,marginInlineEnd:ne.marginXS,fontSize:ne.fontSizeSM},[`${Ue}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${we}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${Ue}-item, ${Ue}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${pe}px ${$e}px`,color:ne.colorText,fontWeight:"normal",fontSize:Ne,lineHeight:ne.lineHeight,cursor:"pointer",transition:`all ${we}`,borderRadius:ne.borderRadiusSM,"&:hover, &-active":{backgroundColor:ne.controlItemBgHover}},(0,b.Qy)(ne)),{"&-selected":{color:ne.colorPrimary,backgroundColor:ne.controlItemBgActive,"&:hover, &-active":{backgroundColor:ne.controlItemBgActiveHover}},"&-disabled":{color:Ae,cursor:"not-allowed","&:hover":{color:Ae,backgroundColor:Qe,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${ne.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:ne.colorSplit},[`${it}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:ne.paddingXS,[`${it}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:ne.colorTextDescription,fontSize:Te,fontStyle:"normal"}}}),[`${Ue}-item-group-list`]:{margin:`0 ${ne.marginXS}px`,padding:0,listStyle:"none"},[`${Ue}-submenu-title`]:{paddingInlineEnd:$e+ne.fontSizeSM},[`${Ue}-submenu-vertical`]:{position:"relative"},[`${Ue}-submenu${Ue}-submenu-disabled ${it}-menu-submenu-title`]:{[`&, ${it}-menu-submenu-arrow-icon`]:{color:Ae,backgroundColor:Qe,cursor:"not-allowed"}},[`${Ue}-submenu-selected ${it}-menu-submenu-title`]:{color:ne.colorPrimary}})}},[(0,I.oN)(ne,"slide-up"),(0,I.oN)(ne,"slide-down"),(0,L.Fm)(ne,"move-up"),(0,L.Fm)(ne,"move-down"),(0,B._y)(ne,"zoom-big")]]};var De=(0,Q.Z)("Dropdown",(ne,it)=>{let{rootPrefixCls:Ue}=it;const{marginXXS:Ie,sizePopupArrow:Pe,controlHeight:ze,fontSize:Ee,lineHeight:fe,paddingXXS:we,componentCls:pe,borderRadiusLG:Ne}=ne,te=(ze-Ee*fe)/2,{dropdownArrowOffset:Ae}=(0,V.fS)({contentRadius:Ne}),Te=(0,M.TS)(ne,{menuCls:`${pe}-menu`,rootPrefixCls:Ue,dropdownArrowDistance:Pe/2+Ie,dropdownArrowOffset:Ae,dropdownPaddingVertical:te,dropdownEdgeChildPadding:we});return[re(Te),he(Te)]},ne=>({zIndexPopup:ne.zIndexPopupBase+50}))},64165:function(J,C,d){"use strict";d.d(C,{Z:function(){return we}});var b=d(92310),I=d.n(b),L=d(59301),B=d(36355),V=d(9763),Q=d(64993),M=d(88088),he=()=>{const[,pe]=(0,M.Z)(),te=new Q.C(pe.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return L.createElement("svg",{style:te,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},L.createElement("g",{fill:"none",fillRule:"evenodd"},L.createElement("g",{transform:"translate(24 31.67)"},L.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),L.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"}),L.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)"}),L.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"}),L.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"})),L.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"}),L.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},L.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),L.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},De=()=>{const[,pe]=(0,M.Z)(),{colorFill:Ne,colorFillTertiary:te,colorFillQuaternary:Ae,colorBgContainer:Te}=pe,{borderColor:$e,shadowColor:Qe,contentColor:Je}=(0,L.useMemo)(()=>({borderColor:new Q.C(Ne).onBackground(Te).toHexShortString(),shadowColor:new Q.C(te).onBackground(Te).toHexShortString(),contentColor:new Q.C(Ae).onBackground(Te).toHexShortString()}),[Ne,te,Ae,Te]);return L.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},L.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},L.createElement("ellipse",{fill:Qe,cx:"32",cy:"33",rx:"32",ry:"7"}),L.createElement("g",{fillRule:"nonzero",stroke:$e},L.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"}),L.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:Je}))))},ne=d(83116),it=d(37613);const Ue=pe=>{const{componentCls:Ne,margin:te,marginXS:Ae,marginXL:Te,fontSize:$e,lineHeight:Qe}=pe;return{[Ne]:{marginInline:Ae,fontSize:$e,lineHeight:Qe,textAlign:"center",[`${Ne}-image`]:{height:pe.emptyImgHeight,marginBottom:Ae,opacity:pe.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${Ne}-description`]:{color:pe.colorText},[`${Ne}-footer`]:{marginTop:te},"&-normal":{marginBlock:Te,color:pe.colorTextDisabled,[`${Ne}-description`]:{color:pe.colorTextDisabled},[`${Ne}-image`]:{height:pe.emptyImgHeightMD}},"&-small":{marginBlock:Ae,color:pe.colorTextDisabled,[`${Ne}-image`]:{height:pe.emptyImgHeightSM}}}}};var Ie=(0,ne.Z)("Empty",pe=>{const{componentCls:Ne,controlHeightLG:te}=pe,Ae=(0,it.TS)(pe,{emptyImgCls:`${Ne}-img`,emptyImgHeight:te*2.5,emptyImgHeightMD:te,emptyImgHeightSM:te*.875});return[Ue(Ae)]}),Pe=function(pe,Ne){var te={};for(var Ae in pe)Object.prototype.hasOwnProperty.call(pe,Ae)&&Ne.indexOf(Ae)<0&&(te[Ae]=pe[Ae]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ae=Object.getOwnPropertySymbols(pe);Te<Ae.length;Te++)Ne.indexOf(Ae[Te])<0&&Object.prototype.propertyIsEnumerable.call(pe,Ae[Te])&&(te[Ae[Te]]=pe[Ae[Te]]);return te};const ze=L.createElement(he,null),Ee=L.createElement(De,null),fe=pe=>{var{className:Ne,rootClassName:te,prefixCls:Ae,image:Te=ze,description:$e,children:Qe,imageStyle:Je,style:Ce}=pe,dt=Pe(pe,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:Xe,direction:$t,empty:xt}=L.useContext(B.E_),At=Xe("empty",Ae),[St,Cn]=Ie(At),[Ye]=(0,V.Z)("Empty"),oe=typeof $e!="undefined"?$e:Ye==null?void 0:Ye.description,H=typeof oe=="string"?oe:"empty";let Ot=null;return typeof Te=="string"?Ot=L.createElement("img",{alt:H,src:Te}):Ot=Te,St(L.createElement("div",Object.assign({className:I()(Cn,At,xt==null?void 0:xt.className,{[`${At}-normal`]:Te===Ee,[`${At}-rtl`]:$t==="rtl"},Ne,te),style:Object.assign(Object.assign({},xt==null?void 0:xt.style),Ce)},dt),L.createElement("div",{className:`${At}-image`,style:Je},Ot),oe&&L.createElement("div",{className:`${At}-description`},oe),Qe&&L.createElement("div",{className:`${At}-footer`},Qe)))};fe.PRESENTED_IMAGE_DEFAULT=ze,fe.PRESENTED_IMAGE_SIMPLE=Ee;var we=fe},78241:function(J,C,d){"use strict";d.d(C,{default:function(){return fi}});var b=d(26407),I=d(92310),L=d.n(I),B=d(77900),V=d(59301),Q=d(62892),M=d(32441);function de(at){const[Fn,Qn]=V.useState(at);return V.useEffect(()=>{const ft=setTimeout(()=>{Qn(at)},at.length?0:10);return()=>{clearTimeout(ft)}},[at]),Fn}var he=d(17313),re=d(29878),De=d(8378),ne=d(37613),it=d(83116),Ie=at=>{const{componentCls:Fn}=at,Qn=`${Fn}-show-help`,ft=`${Fn}-show-help-item`;return{[Qn]:{transition:`opacity ${at.motionDurationSlow} ${at.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[ft]:{overflow:"hidden",transition:`height ${at.motionDurationSlow} ${at.motionEaseInOut},
|
|
|
opacity ${at.motionDurationSlow} ${at.motionEaseInOut},
|
|
|
transform ${at.motionDurationSlow} ${at.motionEaseInOut} !important`,[`&${ft}-appear, &${ft}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${ft}-leave-active`]:{transform:"translateY(-5px)"}}}}};const Pe=at=>({legend:{display:"block",width:"100%",marginBottom:at.marginLG,padding:0,color:at.colorTextDescription,fontSize:at.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${at.lineWidth}px ${at.lineType} ${at.colorBorder}`},label:{fontSize:at.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 ${at.controlOutlineWidth}px ${at.controlOutline}`},output:{display:"block",paddingTop:15,color:at.colorText,fontSize:at.fontSize,lineHeight:at.lineHeight}}),ze=(at,Fn)=>{const{formItemCls:Qn}=at;return{[Qn]:{[`${Qn}-label > label`]:{height:Fn},[`${Qn}-control-input`]:{minHeight:Fn}}}},Ee=at=>{const{componentCls:Fn}=at;return{[at.componentCls]:Object.assign(Object.assign(Object.assign({},(0,he.Wf)(at)),Pe(at)),{[`${Fn}-text`]:{display:"inline-block",paddingInlineEnd:at.paddingSM},"&-small":Object.assign({},ze(at,at.controlHeightSM)),"&-large":Object.assign({},ze(at,at.controlHeightLG))})}},fe=at=>{const{formItemCls:Fn,iconCls:Qn,componentCls:ft,rootPrefixCls:je,labelRequiredMarkColor:sn,labelColor:In,labelFontSize:ni,labelHeight:Kn,labelColonMarginInlineStart:ut,labelColonMarginInlineEnd:yn,itemMarginBottom:rn}=at;return{[Fn]:Object.assign(Object.assign({},(0,he.Wf)(at)),{marginBottom:rn,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
|
|
|
&-hidden.${je}-row`]:{display:"none"},"&-has-warning":{[`${Fn}-split`]:{color:at.colorError}},"&-has-error":{[`${Fn}-split`]:{color:at.colorWarning}},[`${Fn}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:`${at.lineHeight} - 0.25em`,whiteSpace:"unset"},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:Kn,color:In,fontSize:ni,[`> ${Qn}`]:{fontSize:at.fontSize,verticalAlign:"top"},[`&${Fn}-required:not(${Fn}-required-mark-optional)::before`]:{display:"inline-block",marginInlineEnd:at.marginXXS,color:sn,fontSize:at.fontSize,fontFamily:"SimSun, sans-serif",lineHeight:1,content:'"*"',[`${ft}-hide-required-mark &`]:{display:"none"}},[`${Fn}-optional`]:{display:"inline-block",marginInlineStart:at.marginXXS,color:at.colorTextDescription,[`${ft}-hide-required-mark &`]:{display:"none"}},[`${Fn}-tooltip`]:{color:at.colorTextDescription,cursor:"help",writingMode:"horizontal-tb",marginInlineStart:at.marginXXS},"&::after":{content:'":"',position:"relative",marginBlock:0,marginInlineStart:ut,marginInlineEnd:yn},[`&${Fn}-no-colon::after`]:{content:'"\\a0"'}}},[`${Fn}-control`]:{"--ant-display":"flex",flexDirection:"column",flexGrow:1,[`&:first-child:not([class^="'${je}-col-'"]):not([class*="' ${je}-col-'"])`]:{width:"100%"},"&-input":{position:"relative",display:"flex",alignItems:"center",minHeight:at.controlHeight,"&-content":{flex:"auto",maxWidth:"100%"}}},[Fn]:{"&-explain, &-extra":{clear:"both",color:at.colorTextDescription,fontSize:at.fontSize,lineHeight:at.lineHeight},"&-explain-connected":{width:"100%"},"&-extra":{minHeight:at.controlHeightSM,transition:`color ${at.motionDurationMid} ${at.motionEaseOut}`},"&-explain":{"&-error":{color:at.colorError},"&-warning":{color:at.colorWarning}}},[`&-with-help ${Fn}-explain`]:{height:"auto",opacity:1},[`${Fn}-feedback-icon`]:{fontSize:at.fontSize,textAlign:"center",visibility:"visible",animationName:re.kr,animationDuration:at.motionDurationMid,animationTimingFunction:at.motionEaseOutBack,pointerEvents:"none","&-success":{color:at.colorSuccess},"&-error":{color:at.colorError},"&-warning":{color:at.colorWarning},"&-validating":{color:at.colorPrimary}}})}},we=at=>{const{componentCls:Fn,formItemCls:Qn}=at;return{[`${Fn}-horizontal`]:{[`${Qn}-label`]:{flexGrow:0},[`${Qn}-control`]:{flex:"1 1 0",minWidth:0},[`${Qn}-label[class$='-24'], ${Qn}-label[class*='-24 ']`]:{[`& + ${Qn}-control`]:{minWidth:"unset"}}}}},pe=at=>{const{componentCls:Fn,formItemCls:Qn}=at;return{[`${Fn}-inline`]:{display:"flex",flexWrap:"wrap",[Qn]:{flex:"none",marginInlineEnd:at.margin,marginBottom:0,"&-row":{flexWrap:"nowrap"},[`> ${Qn}-label,
|
|
|
> ${Qn}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${Qn}-label`]:{flex:"none"},[`${Fn}-text`]:{display:"inline-block"},[`${Qn}-has-feedback`]:{display:"inline-block"}}}}},Ne=at=>({padding:at.verticalLabelPadding,margin:at.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),te=at=>{const{componentCls:Fn,formItemCls:Qn,rootPrefixCls:ft}=at;return{[`${Qn} ${Qn}-label`]:Ne(at),[Fn]:{[Qn]:{flexWrap:"wrap",[`${Qn}-label, ${Qn}-control`]:{[`&:not([class*=" ${ft}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},Ae=at=>{const{componentCls:Fn,formItemCls:Qn,rootPrefixCls:ft}=at;return{[`${Fn}-vertical`]:{[Qn]:{"&-row":{flexDirection:"column"},"&-label > label":{height:"auto"},[`${Fn}-item-control`]:{width:"100%"}}},[`${Fn}-vertical ${Qn}-label,
|
|
|
.${ft}-col-24${Qn}-label,
|
|
|
.${ft}-col-xl-24${Qn}-label`]:Ne(at),[`@media (max-width: ${at.screenXSMax}px)`]:[te(at),{[Fn]:{[`.${ft}-col-xs-24${Qn}-label`]:Ne(at)}}],[`@media (max-width: ${at.screenSMMax}px)`]:{[Fn]:{[`.${ft}-col-sm-24${Qn}-label`]:Ne(at)}},[`@media (max-width: ${at.screenMDMax}px)`]:{[Fn]:{[`.${ft}-col-md-24${Qn}-label`]:Ne(at)}},[`@media (max-width: ${at.screenLGMax}px)`]:{[Fn]:{[`.${ft}-col-lg-24${Qn}-label`]:Ne(at)}}}},Te=(at,Fn)=>(0,ne.TS)(at,{formItemCls:`${at.componentCls}-item`,rootPrefixCls:Fn});var $e=(0,it.Z)("Form",(at,Fn)=>{let{rootPrefixCls:Qn}=Fn;const ft=Te(at,Qn);return[Ee(ft),fe(ft),Ie(ft),we(ft),pe(ft),Ae(ft),(0,De.Z)(ft),re.kr]},at=>({labelRequiredMarkColor:at.colorError,labelColor:at.colorTextHeading,labelFontSize:at.fontSize,labelHeight:at.controlHeight,labelColonMarginInlineStart:at.marginXXS/2,labelColonMarginInlineEnd:at.marginXS,itemMarginBottom:at.marginLG,verticalLabelPadding:`0 0 ${at.paddingXS}px`,verticalLabelMargin:0}),{order:-1e3});const Qe=[];function Je(at,Fn,Qn){let ft=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0;return{key:typeof at=="string"?at:`${Fn}-${ft}`,error:at,errorStatus:Qn}}var dt=at=>{let{help:Fn,helpStatus:Qn,errors:ft=Qe,warnings:je=Qe,className:sn,fieldId:In,onVisibleChanged:ni}=at;const{prefixCls:Kn}=V.useContext(M.Rk),ut=`${Kn}-item-explain`,[,yn]=$e(Kn),rn=(0,V.useMemo)(()=>(0,Q.Z)(Kn),[Kn]),Si=de(ft),Zt=de(je),_n=V.useMemo(()=>Fn!=null?[Je(Fn,"help",Qn)]:[].concat((0,b.Z)(Si.map((Jt,on)=>Je(Jt,"error","error",on))),(0,b.Z)(Zt.map((Jt,on)=>Je(Jt,"warning","warning",on)))),[Fn,Qn,Si,Zt]),Mt={};return In&&(Mt.id=`${In}_help`),V.createElement(B.default,{motionDeadline:rn.motionDeadline,motionName:`${Kn}-show-help`,visible:!!_n.length,onVisibleChanged:ni},Jt=>{const{className:on,style:jt}=Jt;return V.createElement("div",Object.assign({},Mt,{className:L()(ut,on,sn,yn),style:jt,role:"alert"}),V.createElement(B.CSSMotionList,Object.assign({keys:_n},(0,Q.Z)(Kn),{motionName:`${Kn}-show-help-item`,component:!1}),gn=>{const{key:fn,error:En,errorStatus:Ln,className:Ai,style:zn}=gn;return V.createElement("div",{key:fn,className:L()(Ai,{[`${ut}-${Ln}`]:Ln}),style:zn},En)}))})},Xe=d(95013),$t=d(36355),xt=d(1684),At=d(52946),St=d(19716),Cn=d(16722);const Ye=["parentNode"],oe="form_item";function H(at){return at===void 0||at===!1?[]:Array.isArray(at)?at:[at]}function Ot(at,Fn){if(!at.length)return;const Qn=at.join("_");return Fn?`${Fn}_${Qn}`:Ye.includes(Qn)?`${oe}_${Qn}`:Qn}function Kt(at,Fn,Qn,ft,je,sn){let In=ft;return sn!==void 0?In=sn:Qn.validating?In="validating":at.length?In="error":Fn.length?In="warning":(Qn.touched||je&&Qn.validated)&&(In="success"),In}function vt(at){return H(at).join("_")}function hn(at){const[Fn]=(0,Xe.useForm)(),Qn=V.useRef({}),ft=V.useMemo(()=>at!=null?at:Object.assign(Object.assign({},Fn),{__INTERNAL__:{itemRef:je=>sn=>{const In=vt(je);sn?Qn.current[In]=sn:delete Qn.current[In]}},scrollToField:function(je){let sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const In=H(je),ni=Ot(In,ft.__INTERNAL__.name),Kn=ni?document.getElementById(ni):null;Kn&&(0,Cn.Z)(Kn,Object.assign({scrollMode:"if-needed",block:"nearest"},sn))},getFieldInstance:je=>{const sn=vt(je);return Qn.current[sn]}}),[at,Fn]);return[ft]}var Rt=d(28726),hi=function(at,Fn){var Qn={};for(var ft in at)Object.prototype.hasOwnProperty.call(at,ft)&&Fn.indexOf(ft)<0&&(Qn[ft]=at[ft]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,ft=Object.getOwnPropertySymbols(at);je<ft.length;je++)Fn.indexOf(ft[je])<0&&Object.prototype.propertyIsEnumerable.call(at,ft[je])&&(Qn[ft[je]]=at[ft[je]]);return Qn};const yt=(at,Fn)=>{const Qn=V.useContext(xt.Z),{getPrefixCls:ft,direction:je,form:sn}=V.useContext($t.E_),{prefixCls:In,className:ni,rootClassName:Kn,size:ut,disabled:yn=Qn,form:rn,colon:Si,labelAlign:Zt,labelWrap:_n,labelCol:Mt,wrapperCol:Jt,hideRequiredMark:on,layout:jt="horizontal",scrollToFirstError:gn,requiredMark:fn,onFinishFailed:En,name:Ln,style:Ai,feedbackIcons:zn}=at,ki=hi(at,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons"]),ir=(0,St.Z)(ut),lr=V.useContext(Rt.Z),qt=(0,V.useMemo)(()=>fn!==void 0?fn:sn&&sn.requiredMark!==void 0?sn.requiredMark:!on,[on,fn,sn]),Ki=Si!=null?Si:sn==null?void 0:sn.colon,ee=ft("form",In),[ue,Zn]=$e(ee),Be=L()(ee,`${ee}-${jt}`,{[`${ee}-hide-required-mark`]:qt===!1,[`${ee}-rtl`]:je==="rtl",[`${ee}-${ir}`]:ir},Zn,sn==null?void 0:sn.className,ni,Kn),[wt]=hn(rn),{__INTERNAL__:Ni}=wt;Ni.name=Ln;const Dn=(0,V.useMemo)(()=>({name:Ln,labelAlign:Zt,labelCol:Mt,labelWrap:_n,wrapperCol:Jt,vertical:jt==="vertical",colon:Ki,requiredMark:qt,itemRef:Ni.itemRef,form:wt,feedbackIcons:zn}),[Ln,Zt,Mt,Jt,jt,Ki,qt,wt,zn]);V.useImperativeHandle(Fn,()=>wt);const Gi=(Ii,Yt)=>{if(Ii){let Wi={block:"nearest"};typeof Ii=="object"&&(Wi=Ii),wt.scrollToField(Yt,Wi)}},Xt=Ii=>{if(En==null||En(Ii),Ii.errorFields.length){const Yt=Ii.errorFields[0].name;if(gn!==void 0){Gi(gn,Yt);return}sn&&sn.scrollToFirstError!==void 0&&Gi(sn.scrollToFirstError,Yt)}};return ue(V.createElement(xt.n,{disabled:yn},V.createElement(At.q,{size:ir},V.createElement(M.RV,Object.assign({},{validateMessages:lr}),V.createElement(M.q3.Provider,{value:Dn},V.createElement(Xe.default,Object.assign({id:Ln},ki,{name:Ln,onFinishFailed:Xt,form:wt,style:Object.assign(Object.assign({},sn==null?void 0:sn.style),Ai),className:Be})))))))};var qn=V.forwardRef(yt),ln=d(41799),Tn=d(8654),xe=d(92343),D=d(11592);function k(at){if(typeof at=="function")return at;const Fn=(0,D.Z)(at);return Fn.length<=1?Fn[0]:Fn}const G=()=>{const{status:at,errors:Fn=[],warnings:Qn=[]}=(0,V.useContext)(M.aM);return{status:at,errors:Fn,warnings:Qn}};G.Context=M.aM;var X=G,T=d(16089);function Re(at){const[Fn,Qn]=V.useState(at),ft=(0,V.useRef)(null),je=(0,V.useRef)([]),sn=(0,V.useRef)(!1);V.useEffect(()=>(sn.current=!1,()=>{sn.current=!0,T.Z.cancel(ft.current),ft.current=null}),[]);function In(ni){sn.current||(ft.current===null&&(je.current=[],ft.current=(0,T.Z)(()=>{ft.current=null,Qn(Kn=>{let ut=Kn;return je.current.forEach(yn=>{ut=yn(ut)}),ut})})),je.current.push(ni))}return[Fn,In]}function mt(){const{itemRef:at}=V.useContext(M.q3),Fn=V.useRef({});function Qn(ft,je){const sn=je&&typeof je=="object"&&je.ref,In=ft.join("_");return(Fn.current.name!==In||Fn.current.originRef!==sn)&&(Fn.current.name=In,Fn.current.originRef=sn,Fn.current.ref=(0,Tn.sQ)(at(ft),sn)),Fn.current.ref}return Qn}var _e=d(29194),Le=d(34280),ct=d(2738),ot=d(27382),Ze=d(37028);const Et=at=>{const{formItemCls:Fn}=at;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${Fn}-control`]:{display:"flex"}}}};var Gt=(0,it.b)(["Form","item-item"],(at,Fn)=>{let{rootPrefixCls:Qn}=Fn;const ft=Te(at,Qn);return[Et(ft)]}),Pt=at=>{const{prefixCls:Fn,status:Qn,wrapperCol:ft,children:je,errors:sn,warnings:In,_internalItemRender:ni,extra:Kn,help:ut,fieldId:yn,marginBottom:rn,onErrorVisibleChanged:Si}=at,Zt=`${Fn}-item`,_n=V.useContext(M.q3),Mt=ft||_n.wrapperCol||{},Jt=L()(`${Zt}-control`,Mt.className),on=V.useMemo(()=>Object.assign({},_n),[_n]);delete on.labelCol,delete on.wrapperCol;const jt=V.createElement("div",{className:`${Zt}-control-input`},V.createElement("div",{className:`${Zt}-control-input-content`},je)),gn=V.useMemo(()=>({prefixCls:Fn,status:Qn}),[Fn,Qn]),fn=rn!==null||sn.length||In.length?V.createElement("div",{style:{display:"flex",flexWrap:"nowrap"}},V.createElement(M.Rk.Provider,{value:gn},V.createElement(dt,{fieldId:yn,errors:sn,warnings:In,help:ut,helpStatus:Qn,className:`${Zt}-explain-connected`,onVisibleChanged:Si})),!!rn&&V.createElement("div",{style:{width:0,height:rn}})):null,En={};yn&&(En.id=`${yn}_extra`);const Ln=Kn?V.createElement("div",Object.assign({},En,{className:`${Zt}-extra`}),Kn):null,Ai=ni&&ni.mark==="pro_table_render"&&ni.render?ni.render(at,{input:jt,errorList:fn,extra:Ln}):V.createElement(V.Fragment,null,jt,fn,Ln);return V.createElement(M.q3.Provider,{value:on},V.createElement(Ze.Z,Object.assign({},Mt,{className:Jt}),Ai),V.createElement(Gt,{prefixCls:Fn}))},nn=d(61485),vn=d(31724),We=d(9763),Dt=d(6848),Qt=function(at,Fn){var Qn={};for(var ft in at)Object.prototype.hasOwnProperty.call(at,ft)&&Fn.indexOf(ft)<0&&(Qn[ft]=at[ft]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,ft=Object.getOwnPropertySymbols(at);je<ft.length;je++)Fn.indexOf(ft[je])<0&&Object.prototype.propertyIsEnumerable.call(at,ft[je])&&(Qn[ft[je]]=at[ft[je]]);return Qn};function bn(at){return at?typeof at=="object"&&!V.isValidElement(at)?at:{title:at}:null}var Un=at=>{let{prefixCls:Fn,label:Qn,htmlFor:ft,labelCol:je,labelAlign:sn,colon:In,required:ni,requiredMark:Kn,tooltip:ut}=at;var yn;const[rn]=(0,We.Z)("Form"),{vertical:Si,labelAlign:Zt,labelCol:_n,labelWrap:Mt,colon:Jt}=V.useContext(M.q3);if(!Qn)return null;const on=je||_n||{},jt=sn||Zt,gn=`${Fn}-item-label`,fn=L()(gn,jt==="left"&&`${gn}-left`,on.className,{[`${gn}-wrap`]:!!Mt});let En=Qn;const Ln=In===!0||Jt!==!1&&In!==!1;Ln&&!Si&&typeof Qn=="string"&&Qn.trim()!==""&&(En=Qn.replace(/[:|:]\s*$/,""));const zn=bn(ut);if(zn){const{icon:qt=V.createElement(nn.Z,null)}=zn,Ki=Qt(zn,["icon"]),ee=V.createElement(Dt.Z,Object.assign({},Ki),V.cloneElement(qt,{className:`${Fn}-item-tooltip`,title:""}));En=V.createElement(V.Fragment,null,En,ee)}const ki=Kn==="optional",ir=typeof Kn=="function";ir?En=Kn(En,{required:!!ni}):ki&&!ni&&(En=V.createElement(V.Fragment,null,En,V.createElement("span",{className:`${Fn}-item-optional`,title:""},(rn==null?void 0:rn.optional)||((yn=vn.Z.Form)===null||yn===void 0?void 0:yn.optional))));const lr=L()({[`${Fn}-item-required`]:ni,[`${Fn}-item-required-mark-optional`]:ki||ir,[`${Fn}-item-no-colon`]:!Ln});return V.createElement(Ze.Z,Object.assign({},on,{className:fn}),V.createElement("label",{htmlFor:ft,className:lr,title:typeof Qn=="string"?Qn:""},En))},kt=d(29679),Hn=d(19248),Jn=d(96512),tt=d(58617);const j={success:kt.Z,warning:Jn.Z,error:Hn.Z,validating:tt.Z};function Oi(at){let{children:Fn,errors:Qn,warnings:ft,hasFeedback:je,validateStatus:sn,prefixCls:In,meta:ni,noStyle:Kn}=at;const ut=`${In}-item`,{feedbackIcons:yn}=V.useContext(M.q3),rn=Kt(Qn,ft,ni,null,!!je,sn),{isFormItemInput:Si,status:Zt}=V.useContext(M.aM),_n=V.useMemo(()=>{var Mt;let Jt;if(je){const gn=je!==!0&&je.icons||yn,fn=rn&&((Mt=gn==null?void 0:gn({status:rn,errors:Qn,warnings:ft}))===null||Mt===void 0?void 0:Mt[rn]),En=rn&&j[rn];Jt=fn!==!1&&En?V.createElement("span",{className:L()(`${ut}-feedback-icon`,`${ut}-feedback-icon-${rn}`)},fn||V.createElement(En,null)):null}let on=!0,jt=rn||"";return Kn&&(on=Si,jt=(rn!=null?rn:Zt)||""),{status:jt,errors:Qn,warnings:ft,hasFeedback:!!je,feedbackIcon:Jt,isFormItemInput:on}},[rn,je,Kn,Si,Zt]);return V.createElement(M.aM.Provider,{value:_n},Fn)}var tr=function(at,Fn){var Qn={};for(var ft in at)Object.prototype.hasOwnProperty.call(at,ft)&&Fn.indexOf(ft)<0&&(Qn[ft]=at[ft]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,ft=Object.getOwnPropertySymbols(at);je<ft.length;je++)Fn.indexOf(ft[je])<0&&Object.prototype.propertyIsEnumerable.call(at,ft[je])&&(Qn[ft[je]]=at[ft[je]]);return Qn};function Gn(at){const{prefixCls:Fn,className:Qn,rootClassName:ft,style:je,help:sn,errors:In,warnings:ni,validateStatus:Kn,meta:ut,hasFeedback:yn,hidden:rn,children:Si,fieldId:Zt,required:_n,isRequired:Mt,onSubItemMetaChange:Jt}=at,on=tr(at,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange"]),jt=`${Fn}-item`,{requiredMark:gn}=V.useContext(M.q3),fn=V.useRef(null),En=de(In),Ln=de(ni),Ai=sn!=null,zn=!!(Ai||In.length||ni.length),ki=!!fn.current&&(0,_e.Z)(fn.current),[ir,lr]=V.useState(null);(0,Le.Z)(()=>{if(zn&&fn.current){const Zn=getComputedStyle(fn.current);lr(parseInt(Zn.marginBottom,10))}},[zn,ki]);const qt=Zn=>{Zn||lr(null)},ee=function(){let Zn=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;const Be=Zn?En:ut.errors,wt=Zn?Ln:ut.warnings;return Kt(Be,wt,ut,"",!!yn,Kn)}(),ue=L()(jt,Qn,ft,{[`${jt}-with-help`]:Ai||En.length||Ln.length,[`${jt}-has-feedback`]:ee&&yn,[`${jt}-has-success`]:ee==="success",[`${jt}-has-warning`]:ee==="warning",[`${jt}-has-error`]:ee==="error",[`${jt}-is-validating`]:ee==="validating",[`${jt}-hidden`]:rn});return V.createElement("div",{className:ue,style:je,ref:fn},V.createElement(ot.Z,Object.assign({className:`${jt}-row`},(0,ct.Z)(on,["_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"])),V.createElement(Un,Object.assign({htmlFor:Zt},at,{requiredMark:gn,required:_n!=null?_n:Mt,prefixCls:Fn})),V.createElement(Pt,Object.assign({},at,ut,{errors:En,warnings:Ln,prefixCls:Fn,status:ee,help:sn,marginBottom:ir,onErrorVisibleChanged:qt}),V.createElement(M.qI.Provider,{value:Jt},V.createElement(Oi,{prefixCls:Fn,meta:ut,errors:ut.errors,warnings:ut.warnings,hasFeedback:yn,validateStatus:ee},Si)))),!!ir&&V.createElement("div",{className:`${jt}-margin-offset`,style:{marginBottom:-ir}}))}const Ti="__SPLIT__",Er=null,Zi=V.memo(at=>{let{children:Fn}=at;return Fn},(at,Fn)=>at.value===Fn.value&&at.update===Fn.update&&at.childProps.length===Fn.childProps.length&&at.childProps.every((Qn,ft)=>Qn===Fn.childProps[ft]));function _(at){return at!=null}function ht(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function _i(at){const{name:Fn,noStyle:Qn,className:ft,dependencies:je,prefixCls:sn,shouldUpdate:In,rules:ni,children:Kn,required:ut,label:yn,messageVariables:rn,trigger:Si="onChange",validateTrigger:Zt,hidden:_n,help:Mt}=at,{getPrefixCls:Jt}=V.useContext($t.E_),{name:on}=V.useContext(M.q3),jt=k(Kn),gn=typeof jt=="function",fn=V.useContext(M.qI),{validateTrigger:En}=V.useContext(Xe.FieldContext),Ln=Zt!==void 0?Zt:En,Ai=_(Fn),zn=Jt("form",sn),[ki,ir]=$e(zn),lr=V.useContext(Xe.ListContext),qt=V.useRef(),[Ki,ee]=Re({}),[ue,Zn]=(0,ln.Z)(()=>ht()),Be=Yt=>{const Wi=lr==null?void 0:lr.getKey(Yt.name);if(Zn(Yt.destroy?ht():Yt,!0),Qn&&Mt!==!1&&fn){let Zr=Yt.name;if(Yt.destroy)Zr=qt.current||Zr;else if(Wi!==void 0){const[It,fo]=Wi;Zr=[It].concat((0,b.Z)(fo)),qt.current=Zr}fn(Yt,Zr)}},wt=(Yt,Wi)=>{ee(Zr=>{const It=Object.assign({},Zr),tn=[].concat((0,b.Z)(Yt.name.slice(0,-1)),(0,b.Z)(Wi)).join(Ti);return Yt.destroy?delete It[tn]:It[tn]=Yt,It})},[Ni,Dn]=V.useMemo(()=>{const Yt=(0,b.Z)(ue.errors),Wi=(0,b.Z)(ue.warnings);return Object.values(Ki).forEach(Zr=>{Yt.push.apply(Yt,(0,b.Z)(Zr.errors||[])),Wi.push.apply(Wi,(0,b.Z)(Zr.warnings||[]))}),[Yt,Wi]},[Ki,ue.errors,ue.warnings]),Gi=mt();function Xt(Yt,Wi,Zr){return Qn&&!_n?V.createElement(Oi,{prefixCls:zn,hasFeedback:at.hasFeedback,validateStatus:at.validateStatus,meta:ue,errors:Ni,warnings:Dn,noStyle:!0},Yt):V.createElement(Gn,Object.assign({key:"row"},at,{className:L()(ft,ir),prefixCls:zn,fieldId:Wi,isRequired:Zr,errors:Ni,warnings:Dn,meta:ue,onSubItemMetaChange:wt}),Yt)}if(!Ai&&!gn&&!je)return ki(Xt(jt));let Ii={};return typeof yn=="string"?Ii.label=yn:Fn&&(Ii.label=String(Fn)),rn&&(Ii=Object.assign(Object.assign({},Ii),rn)),ki(V.createElement(Xe.Field,Object.assign({},at,{messageVariables:Ii,trigger:Si,validateTrigger:Ln,onMetaChange:Be}),(Yt,Wi,Zr)=>{const It=H(Fn).length&&Wi?Wi.name:[],fo=Ot(It,on),tn=ut!==void 0?ut:!!(ni&&ni.some(Nt=>{if(Nt&&typeof Nt=="object"&&Nt.required&&!Nt.warningOnly)return!0;if(typeof Nt=="function"){const Nr=Nt(Zr);return Nr&&Nr.required&&!Nr.warningOnly}return!1})),Fi=Object.assign({},Yt);let Li=null;if(Array.isArray(jt)&&Ai)Li=jt;else if(!(gn&&(!(In||je)||Ai))){if(!(je&&!gn&&!Ai))if((0,xe.l$)(jt)){const Nt=Object.assign(Object.assign({},jt.props),Fi);if(Nt.id||(Nt.id=fo),Mt||Ni.length>0||Dn.length>0||at.extra){const ce=[];(Mt||Ni.length>0)&&ce.push(`${fo}_help`),at.extra&&ce.push(`${fo}_extra`),Nt["aria-describedby"]=ce.join(" ")}Ni.length>0&&(Nt["aria-invalid"]="true"),tn&&(Nt["aria-required"]="true"),(0,Tn.Yr)(jt)&&(Nt.ref=Gi(It,jt)),new Set([].concat((0,b.Z)(H(Si)),(0,b.Z)(H(Ln)))).forEach(ce=>{Nt[ce]=function(){for(var br,to,mr,Xr,qi,zr=arguments.length,Ri=new Array(zr),$i=0;$i<zr;$i++)Ri[$i]=arguments[$i];(mr=Fi[ce])===null||mr===void 0||(br=mr).call.apply(br,[Fi].concat(Ri)),(qi=(Xr=jt.props)[ce])===null||qi===void 0||(to=qi).call.apply(to,[Xr].concat(Ri))}});const ii=[Nt["aria-required"],Nt["aria-invalid"],Nt["aria-describedby"]];Li=V.createElement(Zi,{value:Fi[at.valuePropName||"value"],update:jt,childProps:ii},(0,xe.Tm)(jt,Nt))}else gn&&(In||je)&&!Ai?Li=jt(Zr):Li=jt}return Xt(Li,fo,tn)}))}const Rr=_i;Rr.useStatus=X;var Ar=Rr,Yr=function(at,Fn){var Qn={};for(var ft in at)Object.prototype.hasOwnProperty.call(at,ft)&&Fn.indexOf(ft)<0&&(Qn[ft]=at[ft]);if(at!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,ft=Object.getOwnPropertySymbols(at);je<ft.length;je++)Fn.indexOf(ft[je])<0&&Object.prototype.propertyIsEnumerable.call(at,ft[je])&&(Qn[ft[je]]=at[ft[je]]);return Qn},Hr=at=>{var{prefixCls:Fn,children:Qn}=at,ft=Yr(at,["prefixCls","children"]);const{getPrefixCls:je}=V.useContext($t.E_),sn=je("form",Fn),In=V.useMemo(()=>({prefixCls:sn,status:"error"}),[sn]);return V.createElement(Xe.List,Object.assign({},ft),(ni,Kn,ut)=>V.createElement(M.Rk.Provider,{value:In},Qn(ni.map(yn=>Object.assign(Object.assign({},yn),{fieldKey:yn.key})),Kn,{errors:ut.errors,warnings:ut.warnings})))};function dr(){const{form:at}=(0,V.useContext)(M.q3);return at}const Vi=qn;Vi.Item=Ar,Vi.List=Hr,Vi.ErrorList=dt,Vi.useForm=hn,Vi.useFormInstance=dr,Vi.useWatch=Xe.useWatch,Vi.Provider=M.RV,Vi.create=()=>{};var fi=Vi},8628:function(J,C,d){"use strict";var b=d(59301),I=d(34280),L=d(56762),B=d(69507);function V(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const M=(0,b.useRef)({}),de=(0,L.Z)(),he=(0,B.ZP)();return(0,I.Z)(()=>{const re=he.subscribe(De=>{M.current=De,Q&&de()});return()=>he.unsubscribe(re)},[]),M.current}C.Z=V},9432:function(J,C,d){"use strict";d.d(C,{Z:function(){return fe},n:function(){return ze}});var b=d(19248),I=d(92310),L=d.n(I),B=d(93681),V=d(8654),Q=d(59301),M=d(19080),de=d(36355),he=d(1684),re=d(19716),De=d(32441),ne=d(33234),it=d(59412),Ue=d(9937);function Ie(we){return!!(we.prefix||we.suffix||we.allowClear)}var Pe=function(we,pe){var Ne={};for(var te in we)Object.prototype.hasOwnProperty.call(we,te)&&pe.indexOf(te)<0&&(Ne[te]=we[te]);if(we!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ae=0,te=Object.getOwnPropertySymbols(we);Ae<te.length;Ae++)pe.indexOf(te[Ae])<0&&Object.prototype.propertyIsEnumerable.call(we,te[Ae])&&(Ne[te[Ae]]=we[te[Ae]]);return Ne};function ze(we,pe){if(!we)return;we.focus(pe);const{cursor:Ne}=pe||{};if(Ne){const te=we.value.length;switch(Ne){case"start":we.setSelectionRange(0,0);break;case"end":we.setSelectionRange(te,te);break;default:we.setSelectionRange(0,te);break}}}var fe=(0,Q.forwardRef)((we,pe)=>{var Ne;const{prefixCls:te,bordered:Ae=!0,status:Te,size:$e,disabled:Qe,onBlur:Je,onFocus:Ce,suffix:dt,allowClear:Xe,addonAfter:$t,addonBefore:xt,className:At,style:St,styles:Cn,rootClassName:Ye,onChange:oe,classNames:H}=we,Ot=Pe(we,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:Kt,direction:vt,input:hn}=Q.useContext(de.E_),Rt=Kt("input",te),hi=(0,Q.useRef)(null),[yt,si]=(0,Ue.ZP)(Rt),{compactSize:qn,compactItemClassnames:ln}=(0,ne.ri)(Rt,vt),Tn=(0,re.Z)(Gt=>{var Vt;return(Vt=$e!=null?$e:qn)!==null&&Vt!==void 0?Vt:Gt}),xe=Q.useContext(he.Z),D=Qe!=null?Qe:xe,{status:k,hasFeedback:G,feedbackIcon:X}=(0,Q.useContext)(De.aM),T=(0,M.F)(k,Te),Re=Ie(we)||!!G,mt=(0,Q.useRef)(Re);(0,Q.useEffect)(()=>{var Gt;Re&&mt.current,mt.current=Re},[Re]);const _e=(0,it.Z)(hi,!0),Le=Gt=>{_e(),Je==null||Je(Gt)},ct=Gt=>{_e(),Ce==null||Ce(Gt)},ot=Gt=>{_e(),oe==null||oe(Gt)},Ze=(G||dt)&&Q.createElement(Q.Fragment,null,dt,G&&X);let Et;return typeof Xe=="object"&&(Xe!=null&&Xe.clearIcon)?Et=Xe:Xe&&(Et={clearIcon:Q.createElement(b.Z,null)}),yt(Q.createElement(B.default,Object.assign({ref:(0,V.sQ)(pe,hi),prefixCls:Rt,autoComplete:hn==null?void 0:hn.autoComplete},Ot,{disabled:D,onBlur:Le,onFocus:ct,style:Object.assign(Object.assign({},hn==null?void 0:hn.style),St),styles:Object.assign(Object.assign({},hn==null?void 0:hn.styles),Cn),suffix:Ze,allowClear:Et,className:L()(At,Ye,ln,hn==null?void 0:hn.className),onChange:ot,addonAfter:$t&&Q.createElement(ne.BR,null,Q.createElement(De.Ux,{override:!0,status:!0},$t)),addonBefore:xt&&Q.createElement(ne.BR,null,Q.createElement(De.Ux,{override:!0,status:!0},xt)),classNames:Object.assign(Object.assign(Object.assign({},H),hn==null?void 0:hn.classNames),{input:L()({[`${Rt}-sm`]:Tn==="small",[`${Rt}-lg`]:Tn==="large",[`${Rt}-rtl`]:vt==="rtl",[`${Rt}-borderless`]:!Ae},!Re&&(0,M.Z)(Rt,T),H==null?void 0:H.input,(Ne=hn==null?void 0:hn.classNames)===null||Ne===void 0?void 0:Ne.input,si)}),classes:{affixWrapper:L()({[`${Rt}-affix-wrapper-sm`]:Tn==="small",[`${Rt}-affix-wrapper-lg`]:Tn==="large",[`${Rt}-affix-wrapper-rtl`]:vt==="rtl",[`${Rt}-affix-wrapper-borderless`]:!Ae},(0,M.Z)(`${Rt}-affix-wrapper`,T,G),si),wrapper:L()({[`${Rt}-group-rtl`]:vt==="rtl"},si),group:L()({[`${Rt}-group-wrapper-sm`]:Tn==="small",[`${Rt}-group-wrapper-lg`]:Tn==="large",[`${Rt}-group-wrapper-rtl`]:vt==="rtl",[`${Rt}-group-wrapper-disabled`]:D},(0,M.Z)(`${Rt}-group-wrapper`,T,G),si)}})))})},1643:function(J,C,d){"use strict";var b=d(19248),I=d(92310),L=d.n(I),B=d(9296),V=d(59301),Q=d(19080),M=d(36355),de=d(1684),he=d(19716),re=d(32441),De=d(9432),ne=d(9937),it=function(Ie,Pe){var ze={};for(var Ee in Ie)Object.prototype.hasOwnProperty.call(Ie,Ee)&&Pe.indexOf(Ee)<0&&(ze[Ee]=Ie[Ee]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,Ee=Object.getOwnPropertySymbols(Ie);fe<Ee.length;fe++)Pe.indexOf(Ee[fe])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ee[fe])&&(ze[Ee[fe]]=Ie[Ee[fe]]);return ze};const Ue=(0,V.forwardRef)((Ie,Pe)=>{const{prefixCls:ze,bordered:Ee=!0,size:fe,disabled:we,status:pe,allowClear:Ne,showCount:te,classNames:Ae,rootClassName:Te,className:$e}=Ie,Qe=it(Ie,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Je,direction:Ce}=V.useContext(M.E_),dt=(0,he.Z)(fe),Xe=V.useContext(de.Z),$t=we!=null?we:Xe,{status:xt,hasFeedback:At,feedbackIcon:St}=V.useContext(re.aM),Cn=(0,Q.F)(xt,pe),Ye=V.useRef(null);V.useImperativeHandle(Pe,()=>{var vt;return{resizableTextArea:(vt=Ye.current)===null||vt===void 0?void 0:vt.resizableTextArea,focus:hn=>{var Rt,hi;(0,De.n)((hi=(Rt=Ye.current)===null||Rt===void 0?void 0:Rt.resizableTextArea)===null||hi===void 0?void 0:hi.textArea,hn)},blur:()=>{var hn;return(hn=Ye.current)===null||hn===void 0?void 0:hn.blur()}}});const oe=Je("input",ze);let H;typeof Ne=="object"&&(Ne!=null&&Ne.clearIcon)?H=Ne:Ne&&(H={clearIcon:V.createElement(b.Z,null)});const[Ot,Kt]=(0,ne.ZP)(oe);return Ot(V.createElement(B.default,Object.assign({},Qe,{disabled:$t,allowClear:H,className:L()($e,Te),classes:{affixWrapper:L()(`${oe}-textarea-affix-wrapper`,{[`${oe}-affix-wrapper-rtl`]:Ce==="rtl",[`${oe}-affix-wrapper-borderless`]:!Ee,[`${oe}-affix-wrapper-sm`]:dt==="small",[`${oe}-affix-wrapper-lg`]:dt==="large",[`${oe}-textarea-show-count`]:te},(0,Q.Z)(`${oe}-affix-wrapper`,Cn),Kt)},classNames:Object.assign(Object.assign({},Ae),{textarea:L()({[`${oe}-borderless`]:!Ee,[`${oe}-sm`]:dt==="small",[`${oe}-lg`]:dt==="large"},(0,Q.Z)(oe,Cn),Kt,Ae==null?void 0:Ae.textarea)}),prefixCls:oe,suffix:At&&V.createElement("span",{className:`${oe}-textarea-suffix`},St),showCount:te,ref:Ye})))});C.Z=Ue},59412:function(J,C,d){"use strict";d.d(C,{Z:function(){return I}});var b=d(59301);function I(L,B){const V=(0,b.useRef)([]),Q=()=>{V.current.push(setTimeout(()=>{var M,de,he,re;!((M=L.current)===null||M===void 0)&&M.input&&((de=L.current)===null||de===void 0?void 0:de.input.getAttribute("type"))==="password"&&(!((he=L.current)===null||he===void 0)&&he.input.hasAttribute("value"))&&((re=L.current)===null||re===void 0||re.input.removeAttribute("value"))}))};return(0,b.useEffect)(()=>(B&&Q(),()=>V.current.forEach(M=>{M&&clearTimeout(M)})),[]),Q}},92832:function(J,C,d){"use strict";d.d(C,{default:function(){return dt}});var b=d(92310),I=d.n(b),L=d(59301),B=d(36355),V=d(32441),Q=d(9937),de=Xe=>{const{getPrefixCls:$t,direction:xt}=(0,L.useContext)(B.E_),{prefixCls:At,className:St}=Xe,Cn=$t("input-group",At),Ye=$t("input"),[oe,H]=(0,Q.ZP)(Ye),Ot=I()(Cn,{[`${Cn}-lg`]:Xe.size==="large",[`${Cn}-sm`]:Xe.size==="small",[`${Cn}-compact`]:Xe.compact,[`${Cn}-rtl`]:xt==="rtl"},H,St),Kt=(0,L.useContext)(V.aM),vt=(0,L.useMemo)(()=>Object.assign(Object.assign({},Kt),{isFormItemInput:!1}),[Kt]);return oe(L.createElement("span",{className:Ot,style:Xe.style,onMouseEnter:Xe.onMouseEnter,onMouseLeave:Xe.onMouseLeave,onFocus:Xe.onFocus,onBlur:Xe.onBlur},L.createElement(V.aM.Provider,{value:vt},Xe.children)))},he=d(9432),re=d(73331),De=d(15277),ne=d(2738),it=d(8654),Ue=d(59412),Ie=function(Xe,$t){var xt={};for(var At in Xe)Object.prototype.hasOwnProperty.call(Xe,At)&&$t.indexOf(At)<0&&(xt[At]=Xe[At]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,At=Object.getOwnPropertySymbols(Xe);St<At.length;St++)$t.indexOf(At[St])<0&&Object.prototype.propertyIsEnumerable.call(Xe,At[St])&&(xt[At[St]]=Xe[At[St]]);return xt};const Pe=Xe=>Xe?L.createElement(De.Z,null):L.createElement(re.Z,null),ze={click:"onClick",hover:"onMouseOver"};var fe=L.forwardRef((Xe,$t)=>{const{visibilityToggle:xt=!0}=Xe,At=typeof xt=="object"&&xt.visible!==void 0,[St,Cn]=(0,L.useState)(()=>At?xt.visible:!1),Ye=(0,L.useRef)(null);L.useEffect(()=>{At&&Cn(xt.visible)},[At,xt]);const oe=(0,Ue.Z)(Ye),H=()=>{const{disabled:D}=Xe;D||(St&&oe(),Cn(k=>{var G;const X=!k;return typeof xt=="object"&&((G=xt.onVisibleChange)===null||G===void 0||G.call(xt,X)),X}))},Ot=D=>{const{action:k="click",iconRender:G=Pe}=Xe,X=ze[k]||"",T=G(St),Re={[X]:H,className:`${D}-icon`,key:"passwordIcon",onMouseDown:mt=>{mt.preventDefault()},onMouseUp:mt=>{mt.preventDefault()}};return L.cloneElement(L.isValidElement(T)?T:L.createElement("span",null,T),Re)},{className:Kt,prefixCls:vt,inputPrefixCls:hn,size:Rt}=Xe,hi=Ie(Xe,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:yt}=L.useContext(B.E_),si=yt("input",hn),qn=yt("input-password",vt),ln=xt&&Ot(qn),Tn=I()(qn,Kt,{[`${qn}-${Rt}`]:!!Rt}),xe=Object.assign(Object.assign({},(0,ne.Z)(hi,["suffix","iconRender","visibilityToggle"])),{type:St?"text":"password",className:Tn,prefixCls:si,suffix:ln});return Rt&&(xe.size=Rt),L.createElement(he.Z,Object.assign({ref:(0,it.sQ)($t,Ye)},xe))}),we=d(47472),pe=d(92343),Ne=d(3113),te=d(19716),Ae=d(33234),Te=function(Xe,$t){var xt={};for(var At in Xe)Object.prototype.hasOwnProperty.call(Xe,At)&&$t.indexOf(At)<0&&(xt[At]=Xe[At]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,At=Object.getOwnPropertySymbols(Xe);St<At.length;St++)$t.indexOf(At[St])<0&&Object.prototype.propertyIsEnumerable.call(Xe,At[St])&&(xt[At[St]]=Xe[At[St]]);return xt},Qe=L.forwardRef((Xe,$t)=>{const{prefixCls:xt,inputPrefixCls:At,className:St,size:Cn,suffix:Ye,enterButton:oe=!1,addonAfter:H,loading:Ot,disabled:Kt,onSearch:vt,onChange:hn,onCompositionStart:Rt,onCompositionEnd:hi}=Xe,yt=Te(Xe,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:si,direction:qn}=L.useContext(B.E_),ln=L.useRef(!1),Tn=si("input-search",xt),xe=si("input",At),{compactSize:D}=(0,Ae.ri)(Tn,qn),k=(0,te.Z)(Pt=>{var nn;return(nn=Cn!=null?Cn:D)!==null&&nn!==void 0?nn:Pt}),G=L.useRef(null),X=Pt=>{Pt&&Pt.target&&Pt.type==="click"&&vt&&vt(Pt.target.value,Pt,{source:"clear"}),hn&&hn(Pt)},T=Pt=>{var nn;document.activeElement===((nn=G.current)===null||nn===void 0?void 0:nn.input)&&Pt.preventDefault()},Re=Pt=>{var nn,vn;vt&&vt((vn=(nn=G.current)===null||nn===void 0?void 0:nn.input)===null||vn===void 0?void 0:vn.value,Pt,{source:"input"})},mt=Pt=>{ln.current||Ot||Re(Pt)},_e=typeof oe=="boolean"?L.createElement(we.Z,null):null,Le=`${Tn}-button`;let ct;const ot=oe||{},Ze=ot.type&&ot.type.__ANT_BUTTON===!0;Ze||ot.type==="button"?ct=(0,pe.Tm)(ot,Object.assign({onMouseDown:T,onClick:Pt=>{var nn,vn;(vn=(nn=ot==null?void 0:ot.props)===null||nn===void 0?void 0:nn.onClick)===null||vn===void 0||vn.call(nn,Pt),Re(Pt)},key:"enterButton"},Ze?{className:Le,size:k}:{})):ct=L.createElement(Ne.ZP,{className:Le,type:oe?"primary":void 0,size:k,disabled:Kt,key:"enterButton",onMouseDown:T,onClick:Re,loading:Ot,icon:_e},oe),H&&(ct=[ct,(0,pe.Tm)(H,{key:"addonAfter"})]);const Et=I()(Tn,{[`${Tn}-rtl`]:qn==="rtl",[`${Tn}-${k}`]:!!k,[`${Tn}-with-button`]:!!oe},St),Gt=Pt=>{ln.current=!0,Rt==null||Rt(Pt)},Vt=Pt=>{ln.current=!1,hi==null||hi(Pt)};return L.createElement(he.Z,Object.assign({ref:(0,it.sQ)(G,$t),onPressEnter:mt},yt,{size:k,onCompositionStart:Gt,onCompositionEnd:Vt,prefixCls:xe,addonAfter:ct,suffix:Ye,onChange:X,className:Et,disabled:Kt}))}),Je=d(1643);const Ce=he.Z;Ce.Group=de,Ce.Search=Qe,Ce.TextArea=Je.Z,Ce.Password=fe;var dt=Ce},45818:function(J,C,d){"use strict";d.d(C,{D:function(){return we},Z:function(){return te}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(Te,$e){return I.createElement(V.Z,(0,b.Z)({},Te,{ref:$e,icon:B}))},M=I.forwardRef(Q),de=M,he=d(33853),re=d(38819),De=d(92310),ne=d.n(De),it=d(2738),Ie=Ae=>!isNaN(parseFloat(Ae))&&isFinite(Ae),Pe=d(36355),ze=d(84966),Ee=function(Ae,Te){var $e={};for(var Qe in Ae)Object.prototype.hasOwnProperty.call(Ae,Qe)&&Te.indexOf(Qe)<0&&($e[Qe]=Ae[Qe]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Qe=Object.getOwnPropertySymbols(Ae);Je<Qe.length;Je++)Te.indexOf(Qe[Je])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Qe[Je])&&($e[Qe[Je]]=Ae[Qe[Je]]);return $e};const fe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},we=I.createContext({}),pe=(()=>{let Ae=0;return function(){let Te=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return Ae+=1,`${Te}${Ae}`}})();var te=I.forwardRef((Ae,Te)=>{const{prefixCls:$e,className:Qe,trigger:Je,children:Ce,defaultCollapsed:dt=!1,theme:Xe="dark",style:$t={},collapsible:xt=!1,reverseArrow:At=!1,width:St=200,collapsedWidth:Cn=80,zeroWidthTriggerStyle:Ye,breakpoint:oe,onCollapse:H,onBreakpoint:Ot}=Ae,Kt=Ee(Ae,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:vt}=(0,I.useContext)(ze.Gs),[hn,Rt]=(0,I.useState)("collapsed"in Ae?Ae.collapsed:dt),[hi,yt]=(0,I.useState)(!1);(0,I.useEffect)(()=>{"collapsed"in Ae&&Rt(Ae.collapsed)},[Ae.collapsed]);const si=(k,G)=>{"collapsed"in Ae||Rt(k),H==null||H(k,G)},qn=(0,I.useRef)();qn.current=k=>{yt(k.matches),Ot==null||Ot(k.matches),hn!==k.matches&&si(k.matches,"responsive")},(0,I.useEffect)(()=>{function k(X){return qn.current(X)}let G;if(typeof window!="undefined"){const{matchMedia:X}=window;if(X&&oe&&oe in fe){G=X(`(max-width: ${fe[oe]})`);try{G.addEventListener("change",k)}catch(T){G.addListener(k)}k(G)}}return()=>{try{G==null||G.removeEventListener("change",k)}catch(X){G==null||G.removeListener(k)}}},[oe]),(0,I.useEffect)(()=>{const k=pe("ant-sider-");return vt.addSider(k),()=>vt.removeSider(k)},[]);const ln=()=>{si(!hn,"clickTrigger")},{getPrefixCls:Tn}=(0,I.useContext)(Pe.E_),xe=()=>{const k=Tn("layout-sider",$e),G=(0,it.Z)(Kt,["collapsed"]),X=hn?Cn:St,T=Ie(X)?`${X}px`:String(X),Re=parseFloat(String(Cn||0))===0?I.createElement("span",{onClick:ln,className:ne()(`${k}-zero-width-trigger`,`${k}-zero-width-trigger-${At?"right":"left"}`),style:Ye},Je||I.createElement(de,null)):null,Le={expanded:At?I.createElement(re.Z,null):I.createElement(he.Z,null),collapsed:At?I.createElement(he.Z,null):I.createElement(re.Z,null)}[hn?"collapsed":"expanded"],ct=Je!==null?Re||I.createElement("div",{className:`${k}-trigger`,onClick:ln,style:{width:T}},Je||Le):null,ot=Object.assign(Object.assign({},$t),{flex:`0 0 ${T}`,maxWidth:T,minWidth:T,width:T}),Ze=ne()(k,`${k}-${Xe}`,{[`${k}-collapsed`]:!!hn,[`${k}-has-trigger`]:xt&&Je!==null&&!Re,[`${k}-below`]:!!hi,[`${k}-zero-width`]:parseFloat(T)===0},Qe);return I.createElement("aside",Object.assign({className:Ze},G,{style:ot,ref:Te}),I.createElement("div",{className:`${k}-children`},Ce),xt||hi&&Re?ct:null)},D=I.useMemo(()=>({siderCollapsed:hn}),[hn]);return I.createElement(we.Provider,{value:D},xe())})},84966:function(J,C,d){"use strict";d.d(C,{VY:function(){return we},$_:function(){return fe},h4:function(){return Ee},Gs:function(){return it},ZP:function(){return pe}});var b=d(26407),I=d(92310),L=d.n(I),B=d(2738),V=d(59301),Q=d(36355),M=d(83116),he=Ne=>{const{componentCls:te,bodyBg:Ae,lightSiderBg:Te,lightTriggerBg:$e,lightTriggerColor:Qe}=Ne;return{[`${te}-sider-light`]:{background:Te,[`${te}-sider-trigger`]:{color:Qe,background:$e},[`${te}-sider-zero-width-trigger`]:{color:Qe,background:$e,border:`1px solid ${Ae}`,borderInlineStart:0}}}};const re=Ne=>{const{antCls:te,componentCls:Ae,colorText:Te,triggerColor:$e,footerBg:Qe,triggerBg:Je,headerHeight:Ce,headerPadding:dt,headerColor:Xe,footerPadding:$t,triggerHeight:xt,zeroTriggerHeight:At,zeroTriggerWidth:St,motionDurationMid:Cn,motionDurationSlow:Ye,fontSize:oe,borderRadius:H,bodyBg:Ot,headerBg:Kt,siderBg:vt}=Ne;return{[Ae]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Ot,"&, *":{boxSizing:"border-box"},[`&${Ae}-has-sider`]:{flexDirection:"row",[`> ${Ae}, > ${Ae}-content`]:{width:0}},[`${Ae}-header, &${Ae}-footer`]:{flex:"0 0 auto"},[`${Ae}-sider`]:{position:"relative",minWidth:0,background:vt,transition:`all ${Cn}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${te}-menu${te}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:xt},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:xt,color:$e,lineHeight:`${xt}px`,textAlign:"center",background:Je,cursor:"pointer",transition:`all ${Cn}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:Ce,insetInlineEnd:-St,zIndex:1,width:St,height:At,color:$e,fontSize:Ne.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:vt,borderStartStartRadius:0,borderStartEndRadius:H,borderEndEndRadius:H,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Ye} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Ye}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-St,borderStartStartRadius:H,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:H}}}}},he(Ne)),{"&-rtl":{direction:"rtl"}}),[`${Ae}-header`]:{height:Ce,padding:dt,color:Xe,lineHeight:`${Ce}px`,background:Kt,[`${te}-menu`]:{lineHeight:"inherit"}},[`${Ae}-footer`]:{padding:$t,color:Te,fontSize:oe,background:Qe},[`${Ae}-content`]:{flex:"auto",minHeight:0}}};var De=(0,M.Z)("Layout",Ne=>[re(Ne)],Ne=>{const{colorBgLayout:te,controlHeight:Ae,controlHeightLG:Te,colorText:$e,controlHeightSM:Qe,marginXXS:Je,colorTextLightSolid:Ce,colorBgContainer:dt}=Ne,Xe=Te*1.25;return{colorBgHeader:"#001529",colorBgBody:te,colorBgTrigger:"#002140",bodyBg:te,headerBg:"#001529",headerHeight:Ae*2,headerPadding:`0 ${Xe}px`,headerColor:$e,footerPadding:`${Qe}px ${Xe}px`,footerBg:te,siderBg:"#001529",triggerHeight:Te+Je*2,triggerBg:"#002140",triggerColor:Ce,zeroTriggerWidth:Te,zeroTriggerHeight:Te,lightSiderBg:dt,lightTriggerBg:dt,lightTriggerColor:$e}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),ne=function(Ne,te){var Ae={};for(var Te in Ne)Object.prototype.hasOwnProperty.call(Ne,Te)&&te.indexOf(Te)<0&&(Ae[Te]=Ne[Te]);if(Ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $e=0,Te=Object.getOwnPropertySymbols(Ne);$e<Te.length;$e++)te.indexOf(Te[$e])<0&&Object.prototype.propertyIsEnumerable.call(Ne,Te[$e])&&(Ae[Te[$e]]=Ne[Te[$e]]);return Ae};const it=V.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function Ue(Ne){let{suffixCls:te,tagName:Ae,displayName:Te}=Ne;return $e=>V.forwardRef((Je,Ce)=>V.createElement($e,Object.assign({ref:Ce,suffixCls:te,tagName:Ae},Je)))}const Ie=V.forwardRef((Ne,te)=>{const{prefixCls:Ae,suffixCls:Te,className:$e,tagName:Qe}=Ne,Je=ne(Ne,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:Ce}=V.useContext(Q.E_),dt=Ce("layout",Ae),[Xe,$t]=De(dt),xt=Te?`${dt}-${Te}`:dt;return Xe(V.createElement(Qe,Object.assign({className:L()(Ae||xt,$e,$t),ref:te},Je)))}),Pe=V.forwardRef((Ne,te)=>{const{direction:Ae}=V.useContext(Q.E_),[Te,$e]=V.useState([]),{prefixCls:Qe,className:Je,rootClassName:Ce,children:dt,hasSider:Xe,tagName:$t,style:xt}=Ne,At=ne(Ne,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),St=(0,B.Z)(At,["suffixCls"]),{getPrefixCls:Cn,layout:Ye}=V.useContext(Q.E_),oe=Cn("layout",Qe),[H,Ot]=De(oe),Kt=L()(oe,{[`${oe}-has-sider`]:typeof Xe=="boolean"?Xe:Te.length>0,[`${oe}-rtl`]:Ae==="rtl"},Ye==null?void 0:Ye.className,Je,Ce,Ot),vt=V.useMemo(()=>({siderHook:{addSider:hn=>{$e(Rt=>[].concat((0,b.Z)(Rt),[hn]))},removeSider:hn=>{$e(Rt=>Rt.filter(hi=>hi!==hn))}}}),[]);return H(V.createElement(it.Provider,{value:vt},V.createElement($t,Object.assign({ref:te,className:Kt,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),xt)},St),dt)))}),ze=Ue({tagName:"div",displayName:"Layout"})(Pe),Ee=Ue({suffixCls:"header",tagName:"header",displayName:"Header"})(Ie),fe=Ue({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(Ie),we=Ue({suffixCls:"content",tagName:"main",displayName:"Content"})(Ie);var pe=ze},40875:function(J,C,d){"use strict";d.d(C,{J:function(){return Q}});var b=d(59301),I=d(33234),L=d(70425),B=function(M,de){var he={};for(var re in M)Object.prototype.hasOwnProperty.call(M,re)&&de.indexOf(re)<0&&(he[re]=M[re]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,re=Object.getOwnPropertySymbols(M);De<re.length;De++)de.indexOf(re[De])<0&&Object.prototype.propertyIsEnumerable.call(M,re[De])&&(he[re[De]]=M[re[De]]);return he};const V=b.createContext(null),Q=b.forwardRef((M,de)=>{const{children:he}=M,re=B(M,["children"]),De=b.useContext(V),ne=b.useMemo(()=>Object.assign(Object.assign({},De),re),[De,re.prefixCls,re.mode,re.selectable]);return b.createElement(V.Provider,{value:ne},b.createElement(I.BR,null,(0,L.supportNodeRef)(he)?b.cloneElement(he,{ref:de}):he))});C.Z=V},20834:function(J,C,d){"use strict";d.d(C,{default:function(){return D}});var b=d(15285),I=d(59301),L=d(45818),B=d(92310),V=d.n(B),Q=d(36355),M=function(k,G){var X={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&G.indexOf(T)<0&&(X[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,T=Object.getOwnPropertySymbols(k);Re<T.length;Re++)G.indexOf(T[Re])<0&&Object.prototype.propertyIsEnumerable.call(k,T[Re])&&(X[T[Re]]=k[T[Re]]);return X},he=k=>{const{prefixCls:G,className:X,dashed:T}=k,Re=M(k,["prefixCls","className","dashed"]),{getPrefixCls:mt}=I.useContext(Q.E_),_e=mt("menu",G),Le=V()({[`${_e}-item-divider-dashed`]:!!T},X);return I.createElement(b.iz,Object.assign({className:Le},Re))},re=d(11592),De=d(2738),ne=d(6848),it=d(92343),Ie=(0,I.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ze=k=>{var G;const{className:X,children:T,icon:Re,title:mt,danger:_e}=k,{prefixCls:Le,firstLevel:ct,direction:ot,disableMenuItemTitleTooltip:Ze,inlineCollapsed:Et}=I.useContext(Ie),Gt=Dt=>{const Qt=I.createElement("span",{className:`${Le}-title-content`},T);return(!Re||(0,it.l$)(T)&&T.type==="span")&&T&&Dt&&ct&&typeof T=="string"?I.createElement("div",{className:`${Le}-inline-collapsed-noicon`},T.charAt(0)):Qt},{siderCollapsed:Vt}=I.useContext(L.D);let Pt=mt;typeof mt=="undefined"?Pt=ct?T:"":mt===!1&&(Pt="");const nn={title:Pt};!Vt&&!Et&&(nn.title=null,nn.open=!1);const vn=(0,re.Z)(T).length;let We=I.createElement(b.ck,Object.assign({},(0,De.Z)(k,["title","icon","danger"]),{className:V()({[`${Le}-item-danger`]:_e,[`${Le}-item-only-child`]:(Re?vn+1:vn)===1},X),title:typeof mt=="string"?mt:void 0}),(0,it.Tm)(Re,{className:V()((0,it.l$)(Re)?(G=Re.props)===null||G===void 0?void 0:G.className:"",`${Le}-item-icon`)}),Gt(Et));return Ze||(We=I.createElement(ne.Z,Object.assign({},nn,{placement:ot==="rtl"?"left":"right",overlayClassName:`${Le}-inline-collapsed-tooltip`}),We)),We},fe=k=>{var G;const{popupClassName:X,icon:T,title:Re,theme:mt}=k,_e=I.useContext(Ie),{prefixCls:Le,inlineCollapsed:ct,theme:ot}=_e,Ze=(0,b.Xl)();let Et;if(!T)Et=ct&&!Ze.length&&Re&&typeof Re=="string"?I.createElement("div",{className:`${Le}-inline-collapsed-noicon`},Re.charAt(0)):I.createElement("span",{className:`${Le}-title-content`},Re);else{const Vt=(0,it.l$)(Re)&&Re.type==="span";Et=I.createElement(I.Fragment,null,(0,it.Tm)(T,{className:V()((0,it.l$)(T)?(G=T.props)===null||G===void 0?void 0:G.className:"",`${Le}-item-icon`)}),Vt?Re:I.createElement("span",{className:`${Le}-title-content`},Re))}const Gt=I.useMemo(()=>Object.assign(Object.assign({},_e),{firstLevel:!1}),[_e]);return I.createElement(Ie.Provider,{value:Gt},I.createElement(b.Wd,Object.assign({},(0,De.Z)(k,["icon"]),{title:Et,popupClassName:V()(Le,X,`${Le}-${mt||ot}`)})))},we=d(18785),pe=d(70425),Ne=d(62892),te=d(40875),Ae=function(k,G){var X={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&G.indexOf(T)<0&&(X[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,T=Object.getOwnPropertySymbols(k);Re<T.length;Re++)G.indexOf(T[Re])<0&&Object.prototype.propertyIsEnumerable.call(k,T[Re])&&(X[T[Re]]=k[T[Re]]);return X};function Te(k){return(k||[]).map((G,X)=>{if(G&&typeof G=="object"){const T=G,{label:Re,children:mt,key:_e,type:Le}=T,ct=Ae(T,["label","children","key","type"]),ot=_e!=null?_e:`tmp-${X}`;return mt||Le==="group"?Le==="group"?I.createElement(b.BW,Object.assign({key:ot},ct,{title:Re}),Te(mt)):I.createElement(fe,Object.assign({key:ot},ct,{title:Re}),Te(mt)):Le==="divider"?I.createElement(he,Object.assign({key:ot},ct)):I.createElement(ze,Object.assign({key:ot},ct),Re)}return null}).filter(G=>G)}function $e(k){return I.useMemo(()=>k&&Te(k),[k])}var Qe=d(64993),Je=d(17313),Ce=d(8378),dt=d(13826),Xe=d(29878),$t=d(83116),xt=d(37613),St=k=>{const{componentCls:G,motionDurationSlow:X,horizontalLineHeight:T,colorSplit:Re,lineWidth:mt,lineType:_e,itemPaddingInline:Le}=k;return{[`${G}-horizontal`]:{lineHeight:T,border:0,borderBottom:`${mt}px ${_e} ${Re}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${G}-item, ${G}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:Le},[`> ${G}-item:hover,
|
|
|
> ${G}-item-active,
|
|
|
> ${G}-submenu ${G}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${G}-item, ${G}-submenu-title`]:{transition:[`border-color ${X}`,`background ${X}`].join(",")},[`${G}-submenu-arrow`]:{display:"none"}}}},Ye=k=>{let{componentCls:G,menuArrowOffset:X}=k;return{[`${G}-rtl`]:{direction:"rtl"},[`${G}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${G}-rtl${G}-vertical,
|
|
|
${G}-submenu-rtl ${G}-vertical`]:{[`${G}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${X})`},"&::after":{transform:`rotate(45deg) translateY(${X})`}}}}};const oe=k=>Object.assign({},(0,Je.oN)(k));var Ot=(k,G)=>{const{componentCls:X,itemColor:T,itemSelectedColor:Re,groupTitleColor:mt,itemBg:_e,subMenuItemBg:Le,itemSelectedBg:ct,activeBarHeight:ot,activeBarWidth:Ze,activeBarBorderWidth:Et,motionDurationSlow:Gt,motionEaseInOut:Vt,motionEaseOut:Pt,itemPaddingInline:nn,motionDurationMid:vn,itemHoverColor:We,lineType:Dt,colorSplit:Qt,itemDisabledColor:bn,dangerItemColor:$n,dangerItemHoverColor:Un,dangerItemSelectedColor:kt,dangerItemActiveBg:Hn,dangerItemSelectedBg:Jn,itemHoverBg:tt,itemActiveBg:j,menuSubMenuBg:Oi,horizontalItemSelectedColor:tr,horizontalItemSelectedBg:Gn,horizontalItemBorderRadius:Ti,horizontalItemHoverBg:Er,popupBg:Zi}=k;return{[`${X}-${G}, ${X}-${G} > ${X}`]:{color:T,background:_e,[`&${X}-root:focus-visible`]:Object.assign({},oe(k)),[`${X}-item-group-title`]:{color:mt},[`${X}-submenu-selected`]:{[`> ${X}-submenu-title`]:{color:Re}},[`${X}-item-disabled, ${X}-submenu-disabled`]:{color:`${bn} !important`},[`${X}-item:not(${X}-item-selected):not(${X}-submenu-selected)`]:{[`&:hover, > ${X}-submenu-title:hover`]:{color:We}},[`&:not(${X}-horizontal)`]:{[`${X}-item:not(${X}-item-selected)`]:{"&:hover":{backgroundColor:tt},"&:active":{backgroundColor:j}},[`${X}-submenu-title`]:{"&:hover":{backgroundColor:tt},"&:active":{backgroundColor:j}}},[`${X}-item-danger`]:{color:$n,[`&${X}-item:hover`]:{[`&:not(${X}-item-selected):not(${X}-submenu-selected)`]:{color:Un}},[`&${X}-item:active`]:{background:Hn}},[`${X}-item a`]:{"&, &:hover":{color:"inherit"}},[`${X}-item-selected`]:{color:Re,[`&${X}-item-danger`]:{color:kt},"a, a:hover":{color:"inherit"}},[`& ${X}-item-selected`]:{backgroundColor:ct,[`&${X}-item-danger`]:{backgroundColor:Jn}},[`${X}-item, ${X}-submenu-title`]:{[`&:not(${X}-item-disabled):focus-visible`]:Object.assign({},oe(k))},[`&${X}-submenu > ${X}`]:{backgroundColor:Oi},[`&${X}-popup > ${X}`]:{backgroundColor:Zi},[`&${X}-horizontal`]:Object.assign(Object.assign({},G==="dark"?{borderBottom:0}:{}),{[`> ${X}-item, > ${X}-submenu`]:{top:Et,marginTop:-Et,marginBottom:0,borderRadius:Ti,"&::after":{position:"absolute",insetInline:nn,bottom:0,borderBottom:`${ot}px solid transparent`,transition:`border-color ${Gt} ${Vt}`,content:'""'},"&:hover, &-active, &-open":{background:Er,"&::after":{borderBottomWidth:ot,borderBottomColor:tr}},"&-selected":{color:tr,backgroundColor:Gn,"&:hover":{backgroundColor:Gn},"&::after":{borderBottomWidth:ot,borderBottomColor:tr}}}}),[`&${X}-root`]:{[`&${X}-inline, &${X}-vertical`]:{borderInlineEnd:`${Et}px ${Dt} ${Qt}`}},[`&${X}-inline`]:{[`${X}-sub${X}-inline`]:{background:Le},[`${X}-item, ${X}-submenu-title`]:Et&&Ze?{width:`calc(100% + ${Et}px)`}:{},[`${X}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Ze}px solid ${Re}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${vn} ${Pt}`,`opacity ${vn} ${Pt}`].join(","),content:'""'},[`&${X}-item-danger`]:{"&::after":{borderInlineEndColor:kt}}},[`${X}-selected, ${X}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${vn} ${Vt}`,`opacity ${vn} ${Vt}`].join(",")}}}}}};const Kt=k=>{const{componentCls:G,itemHeight:X,itemMarginInline:T,padding:Re,menuArrowSize:mt,marginXS:_e,itemMarginBlock:Le}=k,ct=Re+mt+_e;return{[`${G}-item`]:{position:"relative",overflow:"hidden"},[`${G}-item, ${G}-submenu-title`]:{height:X,lineHeight:`${X}px`,paddingInline:Re,overflow:"hidden",textOverflow:"ellipsis",marginInline:T,marginBlock:Le,width:`calc(100% - ${T*2}px)`},[`> ${G}-item,
|
|
|
> ${G}-submenu > ${G}-submenu-title`]:{height:X,lineHeight:`${X}px`},[`${G}-item-group-list ${G}-submenu-title,
|
|
|
${G}-submenu-title`]:{paddingInlineEnd:ct}}};var hn=k=>{const{componentCls:G,iconCls:X,itemHeight:T,colorTextLightSolid:Re,dropdownWidth:mt,controlHeightLG:_e,motionDurationMid:Le,motionEaseOut:ct,paddingXL:ot,itemMarginInline:Ze,fontSizeLG:Et,motionDurationSlow:Gt,paddingXS:Vt,boxShadowSecondary:Pt,collapsedWidth:nn,collapsedIconSize:vn}=k,We={height:T,lineHeight:`${T}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[G]:{"&-inline, &-vertical":Object.assign({[`&${G}-root`]:{boxShadow:"none"}},Kt(k))},[`${G}-submenu-popup`]:{[`${G}-vertical`]:Object.assign(Object.assign({},Kt(k)),{boxShadow:Pt})}},{[`${G}-submenu-popup ${G}-vertical${G}-sub`]:{minWidth:mt,maxHeight:`calc(100vh - ${_e*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${G}-inline`]:{width:"100%",[`&${G}-root`]:{[`${G}-item, ${G}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${Gt}`,`background ${Gt}`,`padding ${Le} ${ct}`].join(","),[`> ${G}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${G}-sub${G}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${G}-submenu > ${G}-submenu-title`]:We,[`& ${G}-item-group-title`]:{paddingInlineStart:ot}},[`${G}-item`]:We}},{[`${G}-inline-collapsed`]:{width:nn,[`&${G}-root`]:{[`${G}-item, ${G}-submenu ${G}-submenu-title`]:{[`> ${G}-inline-collapsed-noicon`]:{fontSize:Et,textAlign:"center"}}},[`> ${G}-item,
|
|
|
> ${G}-item-group > ${G}-item-group-list > ${G}-item,
|
|
|
> ${G}-item-group > ${G}-item-group-list > ${G}-submenu > ${G}-submenu-title,
|
|
|
> ${G}-submenu > ${G}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Et/2}px - ${Ze}px)`,textOverflow:"clip",[`
|
|
|
${G}-submenu-arrow,
|
|
|
${G}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${G}-item-icon, ${X}`]:{margin:0,fontSize:vn,lineHeight:`${T}px`,"+ span":{display:"inline-block",opacity:0}}},[`${G}-item-icon, ${X}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${G}-item-icon, ${X}`]:{display:"none"},"a, a:hover":{color:Re}},[`${G}-item-group-title`]:Object.assign(Object.assign({},Je.vS),{paddingInline:Vt})}}]};const Rt=k=>{const{componentCls:G,motionDurationSlow:X,motionDurationMid:T,motionEaseInOut:Re,motionEaseOut:mt,iconCls:_e,iconSize:Le,iconMarginInlineEnd:ct}=k;return{[`${G}-item, ${G}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${X}`,`background ${X}`,`padding ${X} ${Re}`].join(","),[`${G}-item-icon, ${_e}`]:{minWidth:Le,fontSize:Le,transition:[`font-size ${T} ${mt}`,`margin ${X} ${Re}`,`color ${X}`].join(","),"+ span":{marginInlineStart:ct,opacity:1,transition:[`opacity ${X} ${Re}`,`margin ${X}`,`color ${X}`].join(",")}},[`${G}-item-icon`]:Object.assign({},(0,Je.Ro)()),[`&${G}-item-only-child`]:{[`> ${_e}, > ${G}-item-icon`]:{marginInlineEnd:0}}},[`${G}-item-disabled, ${G}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${G}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},hi=k=>{const{componentCls:G,motionDurationSlow:X,motionEaseInOut:T,borderRadius:Re,menuArrowSize:mt,menuArrowOffset:_e}=k;return{[`${G}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:k.margin,width:mt,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${X} ${T}, opacity ${X}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:mt*.6,height:mt*.15,backgroundColor:"currentcolor",borderRadius:Re,transition:[`background ${X} ${T}`,`transform ${X} ${T}`,`top ${X} ${T}`,`color ${X} ${T}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${_e})`},"&::after":{transform:`rotate(-45deg) translateY(${_e})`}}}}},yt=k=>{const{antCls:G,componentCls:X,fontSize:T,motionDurationSlow:Re,motionDurationMid:mt,motionEaseInOut:_e,paddingXS:Le,padding:ct,colorSplit:ot,lineWidth:Ze,zIndexPopup:Et,borderRadiusLG:Gt,subMenuItemBorderRadius:Vt,menuArrowSize:Pt,menuArrowOffset:nn,lineType:vn,menuPanelMaskInset:We,groupTitleLineHeight:Dt,groupTitleFontSize:Qt}=k;return[{"":{[`${X}`]:Object.assign(Object.assign({},(0,Je.dF)()),{"&-hidden":{display:"none"}})},[`${X}-submenu-hidden`]:{display:"none"}},{[X]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Je.Wf)(k)),(0,Je.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:T,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${Re} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${X}-item`]:{flex:"none"}},[`${X}-item, ${X}-submenu, ${X}-submenu-title`]:{borderRadius:k.itemBorderRadius},[`${X}-item-group-title`]:{padding:`${Le}px ${ct}px`,fontSize:Qt,lineHeight:Dt,transition:`all ${Re}`},[`&-horizontal ${X}-submenu`]:{transition:[`border-color ${Re} ${_e}`,`background ${Re} ${_e}`].join(",")},[`${X}-submenu, ${X}-submenu-inline`]:{transition:[`border-color ${Re} ${_e}`,`background ${Re} ${_e}`,`padding ${mt} ${_e}`].join(",")},[`${X}-submenu ${X}-sub`]:{cursor:"initial",transition:[`background ${Re} ${_e}`,`padding ${Re} ${_e}`].join(",")},[`${X}-title-content`]:{transition:`color ${Re}`},[`${X}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${X}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:ot,borderStyle:vn,borderWidth:0,borderTopWidth:Ze,marginBlock:Ze,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Rt(k)),{[`${X}-item-group`]:{[`${X}-item-group-list`]:{margin:0,padding:0,[`${X}-item, ${X}-submenu-title`]:{paddingInline:`${T*2}px ${ct}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:Et,borderRadius:Gt,boxShadow:"none",transformOrigin:"0 0",[`&${X}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${We}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:We},"\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:k.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:k.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:k.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:k.paddingXS},[`> ${X}`]:Object.assign(Object.assign(Object.assign({borderRadius:Gt},Rt(k)),hi(k)),{[`${X}-item, ${X}-submenu > ${X}-submenu-title`]:{borderRadius:Vt},[`${X}-submenu-title::after`]:{transition:`transform ${Re} ${_e}`}})}}),hi(k)),{[`&-inline-collapsed ${X}-submenu-arrow,
|
|
|
&-inline ${X}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${nn})`},"&::after":{transform:`rotate(45deg) translateX(-${nn})`}},[`${X}-submenu-open${X}-submenu-inline > ${X}-submenu-title > ${X}-submenu-arrow`]:{transform:`translateY(-${Pt*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${nn})`},"&::before":{transform:`rotate(45deg) translateX(${nn})`}}})},{[`${G}-layout-header`]:{[X]:{lineHeight:"inherit"}}}]};var si=(k,G)=>(0,$t.Z)("Menu",T=>{if(G===!1)return[];const{colorBgElevated:Re,colorPrimary:mt,colorTextLightSolid:_e,controlHeightLG:Le,fontSize:ct,darkItemColor:ot,darkDangerItemColor:Ze,darkItemBg:Et,darkSubMenuItemBg:Gt,darkItemSelectedColor:Vt,darkItemSelectedBg:Pt,darkDangerItemSelectedBg:nn,darkItemHoverBg:vn,darkGroupTitleColor:We,darkItemHoverColor:Dt,darkItemDisabledColor:Qt,darkDangerItemHoverColor:bn,darkDangerItemSelectedColor:$n,darkDangerItemActiveBg:Un}=T,kt=ct/7*5,Hn=(0,xt.TS)(T,{menuArrowSize:kt,menuHorizontalHeight:Le*1.15,menuArrowOffset:`${kt*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Re}),Jn=(0,xt.TS)(Hn,{itemColor:ot,itemHoverColor:Dt,groupTitleColor:We,itemSelectedColor:Vt,itemBg:Et,popupBg:Et,subMenuItemBg:Gt,itemActiveBg:"transparent",itemSelectedBg:Pt,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:vn,itemDisabledColor:Qt,dangerItemColor:Ze,dangerItemHoverColor:bn,dangerItemSelectedColor:$n,dangerItemActiveBg:Un,dangerItemSelectedBg:nn,menuSubMenuBg:Gt,horizontalItemSelectedColor:_e,horizontalItemSelectedBg:mt});return[yt(Hn),St(Hn),hn(Hn),Ot(Hn,"light"),Ot(Jn,"dark"),Ye(Hn),(0,Ce.Z)(Hn),(0,dt.oN)(Hn,"slide-up"),(0,dt.oN)(Hn,"slide-down"),(0,Xe._y)(Hn,"zoom-big")]},T=>{const{colorPrimary:Re,colorError:mt,colorTextDisabled:_e,colorErrorBg:Le,colorText:ct,colorTextDescription:ot,colorBgContainer:Ze,colorFillAlter:Et,colorFillContent:Gt,lineWidth:Vt,lineWidthBold:Pt,controlItemBgActive:nn,colorBgTextHover:vn,controlHeightLG:We,lineHeight:Dt,colorBgElevated:Qt,marginXXS:bn,padding:$n,fontSize:Un,controlHeightSM:kt,fontSizeLG:Hn,colorTextLightSolid:Jn,colorErrorHover:tt}=T,j=new Qe.C(Jn).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:T.zIndexPopupBase+50,radiusItem:T.borderRadiusLG,itemBorderRadius:T.borderRadiusLG,radiusSubMenuItem:T.borderRadiusSM,subMenuItemBorderRadius:T.borderRadiusSM,colorItemText:ct,itemColor:ct,colorItemTextHover:ct,itemHoverColor:ct,colorItemTextHoverHorizontal:Re,horizontalItemHoverColor:Re,colorGroupTitle:ot,groupTitleColor:ot,colorItemTextSelected:Re,itemSelectedColor:Re,colorItemTextSelectedHorizontal:Re,horizontalItemSelectedColor:Re,colorItemBg:Ze,itemBg:Ze,colorItemBgHover:vn,itemHoverBg:vn,colorItemBgActive:Gt,itemActiveBg:nn,colorSubItemBg:Et,subMenuItemBg:Et,colorItemBgSelected:nn,itemSelectedBg:nn,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:Pt,activeBarHeight:Pt,colorActiveBarBorderSize:Vt,activeBarBorderWidth:Vt,colorItemTextDisabled:_e,itemDisabledColor:_e,colorDangerItemText:mt,dangerItemColor:mt,colorDangerItemTextHover:mt,dangerItemHoverColor:mt,colorDangerItemTextSelected:mt,dangerItemSelectedColor:mt,colorDangerItemBgActive:Le,dangerItemActiveBg:Le,colorDangerItemBgSelected:Le,dangerItemSelectedBg:Le,itemMarginInline:T.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:We,groupTitleLineHeight:Dt,collapsedWidth:We*2,popupBg:Qt,itemMarginBlock:bn,itemPaddingInline:$n,horizontalLineHeight:`${We*1.15}px`,iconSize:Un,iconMarginInlineEnd:kt-Un,collapsedIconSize:Hn,groupTitleFontSize:Un,darkItemDisabledColor:new Qe.C(Jn).setAlpha(.25).toRgbString(),darkItemColor:j,darkDangerItemColor:mt,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Jn,darkItemSelectedBg:Re,darkDangerItemSelectedBg:mt,darkItemHoverBg:"transparent",darkGroupTitleColor:j,darkItemHoverColor:Jn,darkDangerItemHoverColor:tt,darkDangerItemSelectedColor:Jn,darkDangerItemActiveBg:mt}},{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"]]})(k),qn=function(k,G){var X={};for(var T in k)Object.prototype.hasOwnProperty.call(k,T)&&G.indexOf(T)<0&&(X[T]=k[T]);if(k!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Re=0,T=Object.getOwnPropertySymbols(k);Re<T.length;Re++)G.indexOf(T[Re])<0&&Object.prototype.propertyIsEnumerable.call(k,T[Re])&&(X[T[Re]]=k[T[Re]]);return X},Tn=(0,I.forwardRef)((k,G)=>{var X,T;const Re=I.useContext(te.Z),mt=Re||{},{getPrefixCls:_e,getPopupContainer:Le,direction:ct,menu:ot}=I.useContext(Q.E_),Ze=_e(),{prefixCls:Et,className:Gt,style:Vt,theme:Pt="light",expandIcon:nn,_internalDisableMenuItemTitleTooltip:vn,inlineCollapsed:We,siderCollapsed:Dt,items:Qt,children:bn,rootClassName:$n,mode:Un,selectable:kt,onClick:Hn,overflowedIndicatorPopupClassName:Jn}=k,tt=qn(k,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),j=(0,De.Z)(tt,["collapsedWidth"]),Oi=$e(Qt)||bn;(X=mt.validator)===null||X===void 0||X.call(mt,{mode:Un});const tr=(0,pe.useEvent)(function(){var Dr;Hn==null||Hn.apply(void 0,arguments),(Dr=mt.onClick)===null||Dr===void 0||Dr.call(mt)}),Gn=mt.mode||Un,Ti=kt!=null?kt:mt.selectable,Er=I.useMemo(()=>Dt!==void 0?Dt:We,[We,Dt]),Zi={horizontal:{motionName:`${Ze}-slide-up`},inline:(0,Ne.Z)(Ze),other:{motionName:`${Ze}-zoom-big`}},_=_e("menu",Et||mt.prefixCls),[ht,_i]=si(_,!Re),Rr=V()(`${_}-${Pt}`,ot==null?void 0:ot.className,Gt);let Ar;if(typeof nn=="function")Ar=nn;else if(nn===null||nn===!1)Ar=null;else if(mt.expandIcon===null||mt.expandIcon===!1)Ar=null;else{const Dr=nn!=null?nn:mt.expandIcon;Ar=(0,it.Tm)(Dr,{className:V()(`${_}-submenu-expand-icon`,(0,it.l$)(Dr)?(T=Dr.props)===null||T===void 0?void 0:T.className:"")})}const Yr=I.useMemo(()=>({prefixCls:_,inlineCollapsed:Er||!1,direction:ct,firstLevel:!0,theme:Pt,mode:Gn,disableMenuItemTitleTooltip:vn}),[_,Er,ct,vn,Pt]);return ht(I.createElement(te.Z.Provider,{value:null},I.createElement(Ie.Provider,{value:Yr},I.createElement(b.ZP,Object.assign({getPopupContainer:Le,overflowedIndicator:I.createElement(we.Z,null),overflowedIndicatorPopupClassName:V()(_,`${_}-${Pt}`,Jn),mode:Gn,selectable:Ti,onClick:tr},j,{inlineCollapsed:Er,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),Vt),className:Rr,prefixCls:_,direction:ct,defaultMotions:Zi,expandIcon:Ar,ref:G,rootClassName:V()($n,_i)}),Oi))))});const xe=(0,I.forwardRef)((k,G)=>{const X=(0,I.useRef)(null),T=I.useContext(L.D);return(0,I.useImperativeHandle)(G,()=>({menu:X.current,focus:Re=>{var mt;(mt=X.current)===null||mt===void 0||mt.focus(Re)}})),I.createElement(Tn,Object.assign({ref:X},k,T))});xe.Item=ze,xe.SubMenu=fe,xe.Divider=he,xe.ItemGroup=b.BW;var D=xe},58421:function(J,C,d){"use strict";d.d(C,{Z:function(){return mt}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(Le,ct){return I.createElement(V.Z,(0,b.Z)({},Le,{ref:ct,icon:B}))},M=I.forwardRef(Q),de=M,he=d(49198),re=d(33853),De=d(38819),ne=d(92310),it=d.n(ne),Ue=d(400),Ie=d(33708),Pe=d(6909),ze=d(4771),Ee=d(9427),fe=d(25440),we=d(26112),pe={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},Ne=pe,te=d(91735),Ae=function(_e){(0,Ee.Z)(ct,_e);var Le=(0,fe.Z)(ct);function ct(){var ot;(0,Pe.Z)(this,ct);for(var Ze=arguments.length,Et=new Array(Ze),Gt=0;Gt<Ze;Gt++)Et[Gt]=arguments[Gt];return ot=Le.call.apply(Le,[this].concat(Et)),ot.state={goInputText:""},ot.getValidValue=function(){var Vt=ot.state.goInputText;return!Vt||Number.isNaN(Vt)?void 0:Number(Vt)},ot.buildOptionText=function(Vt){return"".concat(Vt," ").concat(ot.props.locale.items_per_page)},ot.changeSize=function(Vt){ot.props.changeSize(Number(Vt))},ot.handleChange=function(Vt){ot.setState({goInputText:Vt.target.value})},ot.handleBlur=function(Vt){var Pt=ot.props,nn=Pt.goButton,vn=Pt.quickGo,We=Pt.rootPrefixCls,Dt=ot.state.goInputText;nn||Dt===""||(ot.setState({goInputText:""}),!(Vt.relatedTarget&&(Vt.relatedTarget.className.indexOf("".concat(We,"-item-link"))>=0||Vt.relatedTarget.className.indexOf("".concat(We,"-item"))>=0))&&vn(ot.getValidValue()))},ot.go=function(Vt){var Pt=ot.state.goInputText;Pt!==""&&(Vt.keyCode===Ne.ENTER||Vt.type==="click")&&(ot.setState({goInputText:""}),ot.props.quickGo(ot.getValidValue()))},ot}return(0,ze.Z)(ct,[{key:"getPageSizeOptions",value:function(){var Ze=this.props,Et=Ze.pageSize,Gt=Ze.pageSizeOptions;return Gt.some(function(Vt){return Vt.toString()===Et.toString()})?Gt:Gt.concat([Et.toString()]).sort(function(Vt,Pt){var nn=Number.isNaN(Number(Vt))?0:Number(Vt),vn=Number.isNaN(Number(Pt))?0:Number(Pt);return nn-vn})}},{key:"render",value:function(){var Ze=this,Et=this.props,Gt=Et.pageSize,Vt=Et.locale,Pt=Et.rootPrefixCls,nn=Et.changeSize,vn=Et.quickGo,We=Et.goButton,Dt=Et.selectComponentClass,Qt=Et.buildOptionText,bn=Et.selectPrefixCls,$n=Et.disabled,Un=this.state.goInputText,kt="".concat(Pt,"-options"),Hn=Dt,Jn=null,tt=null,j=null;if(!nn&&!vn)return null;var Oi=this.getPageSizeOptions();if(nn&&Hn){var tr=Oi.map(function(Gn,Ti){return I.createElement(Hn.Option,{key:Ti,value:Gn.toString()},(Qt||Ze.buildOptionText)(Gn))});Jn=I.createElement(Hn,{disabled:$n,prefixCls:bn,showSearch:!1,className:"".concat(kt,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(Gt||Oi[0]).toString(),onChange:this.changeSize,getPopupContainer:function(Ti){return Ti.parentNode},"aria-label":Vt.page_size,defaultOpen:!1},tr)}return vn&&(We&&(j=typeof We=="boolean"?I.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:$n,className:"".concat(kt,"-quick-jumper-button")},Vt.jump_to_confirm):I.createElement("span",{onClick:this.go,onKeyUp:this.go},We)),tt=I.createElement("div",{className:"".concat(kt,"-quick-jumper")},Vt.jump_to,I.createElement("input",{disabled:$n,type:"text",value:Un,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":Vt.page}),Vt.page,j)),I.createElement("li",{className:"".concat(kt)},Jn,tt)}}]),ct}(I.Component);Ae.defaultProps={pageSizeOptions:["10","20","50","100"]};var Te=Ae,$e=function(Le){var ct,ot=Le.rootPrefixCls,Ze=Le.page,Et=Le.active,Gt=Le.className,Vt=Le.showTitle,Pt=Le.onClick,nn=Le.onKeyPress,vn=Le.itemRender,We="".concat(ot,"-item"),Dt=it()(We,"".concat(We,"-").concat(Ze),(ct={},(0,Ue.Z)(ct,"".concat(We,"-active"),Et),(0,Ue.Z)(ct,"".concat(We,"-disabled"),!Ze),(0,Ue.Z)(ct,Le.className,Gt),ct)),Qt=function(){Pt(Ze)},bn=function(kt){nn(kt,Pt,Ze)},$n=vn(Ze,"page",I.createElement("a",{rel:"nofollow"},Ze));return $n?I.createElement("li",{title:Vt?Ze.toString():null,className:Dt,onClick:Qt,onKeyPress:bn,tabIndex:0},$n):null},Qe=$e;function Je(){}function Ce(_e){var Le=Number(_e);return typeof Le=="number"&&!Number.isNaN(Le)&&isFinite(Le)&&Math.floor(Le)===Le}var dt=function(Le,ct,ot){return ot};function Xe(_e,Le,ct){var ot=typeof _e=="undefined"?Le.pageSize:_e;return Math.floor((ct.total-1)/ot)+1}var $t=function(_e){(0,Ee.Z)(ct,_e);var Le=(0,fe.Z)(ct);function ct(ot){var Ze;(0,Pe.Z)(this,ct),Ze=Le.call(this,ot),Ze.paginationNode=I.createRef(),Ze.getJumpPrevPage=function(){return Math.max(1,Ze.state.current-(Ze.props.showLessItems?3:5))},Ze.getJumpNextPage=function(){return Math.min(Xe(void 0,Ze.state,Ze.props),Ze.state.current+(Ze.props.showLessItems?3:5))},Ze.getItemIcon=function(nn,vn){var We=Ze.props.prefixCls,Dt=nn||I.createElement("button",{type:"button","aria-label":vn,className:"".concat(We,"-item-link")});return typeof nn=="function"&&(Dt=I.createElement(nn,(0,Ie.Z)({},Ze.props))),Dt},Ze.isValid=function(nn){var vn=Ze.props.total;return Ce(nn)&&nn!==Ze.state.current&&Ce(vn)&&vn>0},Ze.shouldDisplayQuickJumper=function(){var nn=Ze.props,vn=nn.showQuickJumper,We=nn.total,Dt=Ze.state.pageSize;return We<=Dt?!1:vn},Ze.handleKeyDown=function(nn){(nn.keyCode===Ne.ARROW_UP||nn.keyCode===Ne.ARROW_DOWN)&&nn.preventDefault()},Ze.handleKeyUp=function(nn){var vn=Ze.getValidValue(nn),We=Ze.state.currentInputValue;vn!==We&&Ze.setState({currentInputValue:vn}),nn.keyCode===Ne.ENTER?Ze.handleChange(vn):nn.keyCode===Ne.ARROW_UP?Ze.handleChange(vn-1):nn.keyCode===Ne.ARROW_DOWN&&Ze.handleChange(vn+1)},Ze.handleBlur=function(nn){var vn=Ze.getValidValue(nn);Ze.handleChange(vn)},Ze.changePageSize=function(nn){var vn=Ze.state.current,We=Xe(nn,Ze.state,Ze.props);vn=vn>We?We:vn,We===0&&(vn=Ze.state.current),typeof nn=="number"&&("pageSize"in Ze.props||Ze.setState({pageSize:nn}),"current"in Ze.props||Ze.setState({current:vn,currentInputValue:vn})),Ze.props.onShowSizeChange(vn,nn),"onChange"in Ze.props&&Ze.props.onChange&&Ze.props.onChange(vn,nn)},Ze.handleChange=function(nn){var vn=Ze.props,We=vn.disabled,Dt=vn.onChange,Qt=Ze.state,bn=Qt.pageSize,$n=Qt.current,Un=Qt.currentInputValue;if(Ze.isValid(nn)&&!We){var kt=Xe(void 0,Ze.state,Ze.props),Hn=nn;return nn>kt?Hn=kt:nn<1&&(Hn=1),"current"in Ze.props||Ze.setState({current:Hn}),Hn!==Un&&Ze.setState({currentInputValue:Hn}),Dt(Hn,bn),Hn}return $n},Ze.prev=function(){Ze.hasPrev()&&Ze.handleChange(Ze.state.current-1)},Ze.next=function(){Ze.hasNext()&&Ze.handleChange(Ze.state.current+1)},Ze.jumpPrev=function(){Ze.handleChange(Ze.getJumpPrevPage())},Ze.jumpNext=function(){Ze.handleChange(Ze.getJumpNextPage())},Ze.hasPrev=function(){return Ze.state.current>1},Ze.hasNext=function(){return Ze.state.current<Xe(void 0,Ze.state,Ze.props)},Ze.runIfEnter=function(nn,vn){if(nn.key==="Enter"||nn.charCode===13){for(var We=arguments.length,Dt=new Array(We>2?We-2:0),Qt=2;Qt<We;Qt++)Dt[Qt-2]=arguments[Qt];vn.apply(void 0,Dt)}},Ze.runIfEnterPrev=function(nn){Ze.runIfEnter(nn,Ze.prev)},Ze.runIfEnterNext=function(nn){Ze.runIfEnter(nn,Ze.next)},Ze.runIfEnterJumpPrev=function(nn){Ze.runIfEnter(nn,Ze.jumpPrev)},Ze.runIfEnterJumpNext=function(nn){Ze.runIfEnter(nn,Ze.jumpNext)},Ze.handleGoTO=function(nn){(nn.keyCode===Ne.ENTER||nn.type==="click")&&Ze.handleChange(Ze.state.currentInputValue)},Ze.renderPrev=function(nn){var vn=Ze.props,We=vn.prevIcon,Dt=vn.itemRender,Qt=Dt(nn,"prev",Ze.getItemIcon(We,"prev page")),bn=!Ze.hasPrev();return(0,I.isValidElement)(Qt)?(0,I.cloneElement)(Qt,{disabled:bn}):Qt},Ze.renderNext=function(nn){var vn=Ze.props,We=vn.nextIcon,Dt=vn.itemRender,Qt=Dt(nn,"next",Ze.getItemIcon(We,"next page")),bn=!Ze.hasNext();return(0,I.isValidElement)(Qt)?(0,I.cloneElement)(Qt,{disabled:bn}):Qt};var Et=ot.onChange!==Je,Gt="current"in ot;Gt&&!Et&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var Vt=ot.defaultCurrent;"current"in ot&&(Vt=ot.current);var Pt=ot.defaultPageSize;return"pageSize"in ot&&(Pt=ot.pageSize),Vt=Math.min(Vt,Xe(Pt,void 0,ot)),Ze.state={current:Vt,currentInputValue:Vt,pageSize:Pt},Ze}return(0,ze.Z)(ct,[{key:"componentDidUpdate",value:function(Ze,Et){var Gt=this.props.prefixCls;if(Et.current!==this.state.current&&this.paginationNode.current){var Vt=this.paginationNode.current.querySelector(".".concat(Gt,"-item-").concat(Et.current));if(Vt&&document.activeElement===Vt){var Pt;Vt==null||(Pt=Vt.blur)===null||Pt===void 0||Pt.call(Vt)}}}},{key:"getValidValue",value:function(Ze){var Et=Ze.target.value,Gt=Xe(void 0,this.state,this.props),Vt=this.state.currentInputValue,Pt;return Et===""?Pt=Et:Number.isNaN(Number(Et))?Pt=Vt:Et>=Gt?Pt=Gt:Pt=Number(Et),Pt}},{key:"getShowSizeChanger",value:function(){var Ze=this.props,Et=Ze.showSizeChanger,Gt=Ze.total,Vt=Ze.totalBoundaryShowSizeChanger;return typeof Et!="undefined"?Et:Gt>Vt}},{key:"render",value:function(){var Ze=this.props,Et=Ze.prefixCls,Gt=Ze.className,Vt=Ze.style,Pt=Ze.disabled,nn=Ze.hideOnSinglePage,vn=Ze.total,We=Ze.locale,Dt=Ze.showQuickJumper,Qt=Ze.showLessItems,bn=Ze.showTitle,$n=Ze.showTotal,Un=Ze.simple,kt=Ze.itemRender,Hn=Ze.showPrevNextJumpers,Jn=Ze.jumpPrevIcon,tt=Ze.jumpNextIcon,j=Ze.selectComponentClass,Oi=Ze.selectPrefixCls,tr=Ze.pageSizeOptions,Gn=this.state,Ti=Gn.current,Er=Gn.pageSize,Zi=Gn.currentInputValue;if(nn===!0&&vn<=Er)return null;var _=Xe(void 0,this.state,this.props),ht=[],_i=null,Rr=null,Ar=null,Yr=null,Dr=null,Hr=Dt&&Dt.goButton,dr=Qt?1:2,Vi=Ti-1>0?Ti-1:0,fi=Ti+1<_?Ti+1:_,at=(0,we.Z)(this.props,{aria:!0,data:!0}),Fn=$n&&I.createElement("li",{className:"".concat(Et,"-total-text")},$n(vn,[vn===0?0:(Ti-1)*Er+1,Ti*Er>vn?vn:Ti*Er]));if(Un){Hr&&(typeof Hr=="boolean"?Dr=I.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},We.jump_to_confirm):Dr=I.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Hr),Dr=I.createElement("li",{title:bn?"".concat(We.jump_to).concat(Ti,"/").concat(_):null,className:"".concat(Et,"-simple-pager")},Dr));var Qn=this.renderPrev(Vi);return I.createElement("ul",(0,b.Z)({className:it()(Et,"".concat(Et,"-simple"),(0,Ue.Z)({},"".concat(Et,"-disabled"),Pt),Gt),style:Vt,ref:this.paginationNode},at),Fn,Qn?I.createElement("li",{title:bn?We.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:it()("".concat(Et,"-prev"),(0,Ue.Z)({},"".concat(Et,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Qn):null,I.createElement("li",{title:bn?"".concat(Ti,"/").concat(_):null,className:"".concat(Et,"-simple-pager")},I.createElement("input",{type:"text",value:Zi,disabled:Pt,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),I.createElement("span",{className:"".concat(Et,"-slash")},"/"),_),I.createElement("li",{title:bn?We.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:it()("".concat(Et,"-next"),(0,Ue.Z)({},"".concat(Et,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(fi)),Dr)}if(_<=3+dr*2){var ft={locale:We,rootPrefixCls:Et,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:bn,itemRender:kt};_||ht.push(I.createElement(Qe,(0,b.Z)({},ft,{key:"noPager",page:1,className:"".concat(Et,"-item-disabled")})));for(var je=1;je<=_;je+=1){var sn=Ti===je;ht.push(I.createElement(Qe,(0,b.Z)({},ft,{key:je,page:je,active:sn})))}}else{var In=Qt?We.prev_3:We.prev_5,ni=Qt?We.next_3:We.next_5,Kn=kt(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Jn,"prev page")),ut=kt(this.getJumpNextPage(),"jump-next",this.getItemIcon(tt,"next page"));Hn&&(_i=Kn?I.createElement("li",{title:bn?In:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:it()("".concat(Et,"-jump-prev"),(0,Ue.Z)({},"".concat(Et,"-jump-prev-custom-icon"),!!Jn))},Kn):null,Rr=ut?I.createElement("li",{title:bn?ni:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:it()("".concat(Et,"-jump-next"),(0,Ue.Z)({},"".concat(Et,"-jump-next-custom-icon"),!!tt))},ut):null),Yr=I.createElement(Qe,{locale:We,last:!0,rootPrefixCls:Et,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_,page:_,active:!1,showTitle:bn,itemRender:kt}),Ar=I.createElement(Qe,{locale:We,rootPrefixCls:Et,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:bn,itemRender:kt});var yn=Math.max(1,Ti-dr),rn=Math.min(Ti+dr,_);Ti-1<=dr&&(rn=1+dr*2),_-Ti<=dr&&(yn=_-dr*2);for(var Si=yn;Si<=rn;Si+=1){var Zt=Ti===Si;ht.push(I.createElement(Qe,{locale:We,rootPrefixCls:Et,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Si,page:Si,active:Zt,showTitle:bn,itemRender:kt}))}Ti-1>=dr*2&&Ti!==3&&(ht[0]=(0,I.cloneElement)(ht[0],{className:"".concat(Et,"-item-after-jump-prev")}),ht.unshift(_i)),_-Ti>=dr*2&&Ti!==_-2&&(ht[ht.length-1]=(0,I.cloneElement)(ht[ht.length-1],{className:"".concat(Et,"-item-before-jump-next")}),ht.push(Rr)),yn!==1&&ht.unshift(Ar),rn!==_&&ht.push(Yr)}var _n=!this.hasPrev()||!_,Mt=!this.hasNext()||!_,Jt=this.renderPrev(Vi),on=this.renderNext(fi);return I.createElement("ul",(0,b.Z)({className:it()(Et,Gt,(0,Ue.Z)({},"".concat(Et,"-disabled"),Pt)),style:Vt,ref:this.paginationNode},at),Fn,Jt?I.createElement("li",{title:bn?We.prev_page:null,onClick:this.prev,tabIndex:_n?null:0,onKeyPress:this.runIfEnterPrev,className:it()("".concat(Et,"-prev"),(0,Ue.Z)({},"".concat(Et,"-disabled"),_n)),"aria-disabled":_n},Jt):null,ht,on?I.createElement("li",{title:bn?We.next_page:null,onClick:this.next,tabIndex:Mt?null:0,onKeyPress:this.runIfEnterNext,className:it()("".concat(Et,"-next"),(0,Ue.Z)({},"".concat(Et,"-disabled"),Mt)),"aria-disabled":Mt},on):null,I.createElement(Te,{disabled:Pt,locale:We,rootPrefixCls:Et,selectComponentClass:j,selectPrefixCls:Oi,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:Ti,pageSize:Er,pageSizeOptions:tr,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Hr}))}}],[{key:"getDerivedStateFromProps",value:function(Ze,Et){var Gt={};if("current"in Ze&&(Gt.current=Ze.current,Ze.current!==Et.current&&(Gt.currentInputValue=Gt.current)),"pageSize"in Ze&&Ze.pageSize!==Et.pageSize){var Vt=Et.current,Pt=Xe(Ze.pageSize,Et,Ze);Vt=Vt>Pt?Pt:Vt,"current"in Ze||(Gt.current=Vt,Gt.currentInputValue=Vt),Gt.pageSize=Ze.pageSize}return Gt}}]),ct}(I.Component);$t.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Je,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Je,locale:te.Z,style:{},itemRender:dt,totalBoundaryShowSizeChanger:50};var xt=$t,At=d(22075),St=d(36355),Cn=d(19716),Ye=d(8628),oe=d(9763),H=d(57809);const Ot=_e=>I.createElement(H.default,Object.assign({},_e,{showSearch:!0,size:"small"})),Kt=_e=>I.createElement(H.default,Object.assign({},_e,{showSearch:!0,size:"middle"}));Ot.Option=H.default.Option,Kt.Option=H.default.Option;var vt=d(9937),hn=d(17313),Rt=d(83116),hi=d(37613);const yt=_e=>{const{componentCls:Le}=_e;return{[`${Le}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${Le}-item-link`]:{color:_e.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${Le}-item-link`]:{color:_e.colorTextDisabled,cursor:"not-allowed"}}},[`&${Le}-disabled`]:{cursor:"not-allowed",[`${Le}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:_e.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:_e.colorBorder,backgroundColor:_e.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:_e.itemActiveBgDisabled},a:{color:_e.itemActiveColorDisabled}}},[`${Le}-item-link`]:{color:_e.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${Le}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${Le}-simple-pager`]:{color:_e.colorTextDisabled},[`${Le}-jump-prev, ${Le}-jump-next`]:{[`${Le}-item-link-icon`]:{opacity:0},[`${Le}-item-ellipsis`]:{opacity:1}}},[`&${Le}-simple`]:{[`${Le}-prev, ${Le}-next`]:{[`&${Le}-disabled ${Le}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},si=_e=>{const{componentCls:Le}=_e;return{[`&${Le}-mini ${Le}-total-text, &${Le}-mini ${Le}-simple-pager`]:{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`},[`&${Le}-mini ${Le}-item`]:{minWidth:_e.itemSizeSM,height:_e.itemSizeSM,margin:0,lineHeight:`${_e.itemSizeSM-2}px`},[`&${Le}-mini:not(${Le}-disabled) ${Le}-item:not(${Le}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:_e.colorBgTextHover},"&:active":{backgroundColor:_e.colorBgTextActive}},[`&${Le}-mini ${Le}-prev, &${Le}-mini ${Le}-next`]:{minWidth:_e.itemSizeSM,height:_e.itemSizeSM,margin:0,lineHeight:`${_e.itemSizeSM}px`},[`&${Le}-mini:not(${Le}-disabled)`]:{[`${Le}-prev, ${Le}-next`]:{[`&:hover ${Le}-item-link`]:{backgroundColor:_e.colorBgTextHover},[`&:active ${Le}-item-link`]:{backgroundColor:_e.colorBgTextActive},[`&${Le}-disabled:hover ${Le}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${Le}-mini ${Le}-prev ${Le}-item-link,
|
|
|
&${Le}-mini ${Le}-next ${Le}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`}},[`&${Le}-mini ${Le}-jump-prev, &${Le}-mini ${Le}-jump-next`]:{height:_e.itemSizeSM,marginInlineEnd:0,lineHeight:`${_e.itemSizeSM}px`},[`&${Le}-mini ${Le}-options`]:{marginInlineStart:_e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:_e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,vt.x0)(_e)),{width:_e.paginationMiniQuickJumperInputWidth,height:_e.controlHeightSM})}}}},qn=_e=>{const{componentCls:Le}=_e;return{[`
|
|
|
&${Le}-simple ${Le}-prev,
|
|
|
&${Le}-simple ${Le}-next
|
|
|
`]:{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`,verticalAlign:"top",[`${Le}-item-link`]:{height:_e.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:_e.colorBgTextHover},"&:active":{backgroundColor:_e.colorBgTextActive},"&::after":{height:_e.itemSizeSM,lineHeight:`${_e.itemSizeSM}px`}}},[`&${Le}-simple ${Le}-simple-pager`]:{display:"inline-block",height:_e.itemSizeSM,marginInlineEnd:_e.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:_e.marginXS,padding:`0 ${_e.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:_e.itemInputBg,border:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`,borderRadius:_e.borderRadius,outline:"none",transition:`border-color ${_e.motionDurationMid}`,color:"inherit","&:hover":{borderColor:_e.colorPrimary},"&:focus":{borderColor:_e.colorPrimaryHover,boxShadow:`${_e.inputOutlineOffset}px 0 ${_e.controlOutlineWidth}px ${_e.controlOutline}`},"&[disabled]":{color:_e.colorTextDisabled,backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,cursor:"not-allowed"}}}}},ln=_e=>{const{componentCls:Le}=_e;return{[`${Le}-jump-prev, ${Le}-jump-next`]:{outline:0,[`${Le}-item-container`]:{position:"relative",[`${Le}-item-link-icon`]:{color:_e.colorPrimary,fontSize:_e.fontSizeSM,opacity:0,transition:`all ${_e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${Le}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:_e.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:_e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:_e.paginationEllipsisTextIndent,opacity:1,transition:`all ${_e.motionDurationMid}`}},"&:hover":{[`${Le}-item-link-icon`]:{opacity:1},[`${Le}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${Le}-prev,
|
|
|
${Le}-jump-prev,
|
|
|
${Le}-jump-next
|
|
|
`]:{marginInlineEnd:_e.marginXS},[`
|
|
|
${Le}-prev,
|
|
|
${Le}-next,
|
|
|
${Le}-jump-prev,
|
|
|
${Le}-jump-next
|
|
|
`]:{display:"inline-block",minWidth:_e.itemSize,height:_e.itemSize,color:_e.colorText,fontFamily:_e.fontFamily,lineHeight:`${_e.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:_e.borderRadius,cursor:"pointer",transition:`all ${_e.motionDurationMid}`},[`${Le}-prev, ${Le}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:_e.colorText,cursor:"pointer",userSelect:"none"},[`${Le}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:_e.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${_e.lineWidth}px ${_e.lineType} transparent`,borderRadius:_e.borderRadius,outline:"none",transition:`all ${_e.motionDurationMid}`},[`&:hover ${Le}-item-link`]:{backgroundColor:_e.colorBgTextHover},[`&:active ${Le}-item-link`]:{backgroundColor:_e.colorBgTextActive},[`&${Le}-disabled:hover`]:{[`${Le}-item-link`]:{backgroundColor:"transparent"}}},[`${Le}-slash`]:{marginInlineEnd:_e.paginationSlashMarginInlineEnd,marginInlineStart:_e.paginationSlashMarginInlineStart},[`${Le}-options`]:{display:"inline-block",marginInlineStart:_e.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:_e.controlHeight,marginInlineStart:_e.marginXS,lineHeight:`${_e.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,vt.ik)(_e)),{width:_e.controlHeightLG*1.25,height:_e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:_e.marginXS,marginInlineEnd:_e.marginXS})}}}},Tn=_e=>{const{componentCls:Le}=_e;return{[`${Le}-item`]:{display:"inline-block",minWidth:_e.itemSize,height:_e.itemSize,marginInlineEnd:_e.marginXS,fontFamily:_e.fontFamily,lineHeight:`${_e.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${_e.lineWidth}px ${_e.lineType} transparent`,borderRadius:_e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${_e.paginationItemPaddingInline}px`,color:_e.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${Le}-item-active)`]:{"&:hover":{transition:`all ${_e.motionDurationMid}`,backgroundColor:_e.colorBgTextHover},"&:active":{backgroundColor:_e.colorBgTextActive}},"&-active":{fontWeight:_e.fontWeightStrong,backgroundColor:_e.itemActiveBg,borderColor:_e.colorPrimary,a:{color:_e.colorPrimary},"&:hover":{borderColor:_e.colorPrimaryHover},"&:hover a":{color:_e.colorPrimaryHover}}}}},xe=_e=>{const{componentCls:Le}=_e;return{[Le]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,hn.Wf)(_e)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${Le}-total-text`]:{display:"inline-block",height:_e.itemSize,marginInlineEnd:_e.marginXS,lineHeight:`${_e.itemSize-2}px`,verticalAlign:"middle"}}),Tn(_e)),ln(_e)),qn(_e)),si(_e)),yt(_e)),{[`@media only screen and (max-width: ${_e.screenLG}px)`]:{[`${Le}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${_e.screenSM}px)`]:{[`${Le}-options`]:{display:"none"}}}),[`&${_e.componentCls}-rtl`]:{direction:"rtl"}}},D=_e=>{const{componentCls:Le}=_e;return{[`${Le}${Le}-disabled:not(${Le}-mini)`]:{"&, &:hover":{[`${Le}-item-link`]:{borderColor:_e.colorBorder}},"&:focus-visible":{[`${Le}-item-link`]:{borderColor:_e.colorBorder}},[`${Le}-item, ${Le}-item-link`]:{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,[`&:hover:not(${Le}-item-active)`]:{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,a:{color:_e.colorTextDisabled}},[`&${Le}-item-active`]:{backgroundColor:_e.itemActiveBgDisabled}},[`${Le}-prev, ${Le}-next`]:{"&:hover button":{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder,color:_e.colorTextDisabled},[`${Le}-item-link`]:{backgroundColor:_e.colorBgContainerDisabled,borderColor:_e.colorBorder}}},[`${Le}:not(${Le}-mini)`]:{[`${Le}-prev, ${Le}-next`]:{"&:hover button":{borderColor:_e.colorPrimaryHover,backgroundColor:_e.itemBg},[`${Le}-item-link`]:{backgroundColor:_e.itemLinkBg,borderColor:_e.colorBorder},[`&:hover ${Le}-item-link`]:{borderColor:_e.colorPrimary,backgroundColor:_e.itemBg,color:_e.colorPrimary},[`&${Le}-disabled`]:{[`${Le}-item-link`]:{borderColor:_e.colorBorder,color:_e.colorTextDisabled}}},[`${Le}-item`]:{backgroundColor:_e.itemBg,border:`${_e.lineWidth}px ${_e.lineType} ${_e.colorBorder}`,[`&:hover:not(${Le}-item-active)`]:{borderColor:_e.colorPrimary,backgroundColor:_e.itemBg,a:{color:_e.colorPrimary}},"&-active":{borderColor:_e.colorPrimary}}}}},k=_e=>{const{componentCls:Le}=_e;return{[`${Le}:not(${Le}-disabled)`]:{[`${Le}-item`]:Object.assign({},(0,hn.Qy)(_e)),[`${Le}-jump-prev, ${Le}-jump-next`]:{"&:focus-visible":Object.assign({[`${Le}-item-link-icon`]:{opacity:1},[`${Le}-item-ellipsis`]:{opacity:0}},(0,hn.oN)(_e))},[`${Le}-prev, ${Le}-next`]:{[`&:focus-visible ${Le}-item-link`]:Object.assign({},(0,hn.oN)(_e))}}}};var G=(0,Rt.Z)("Pagination",_e=>{const Le=(0,hi.TS)(_e,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:_e.marginXXS/2,paginationMiniQuickJumperInputWidth:_e.controlHeightLG*1.1,paginationItemPaddingInline:_e.marginXXS*1.5,paginationEllipsisLetterSpacing:_e.marginXXS/2,paginationSlashMarginInlineStart:_e.marginXXS,paginationSlashMarginInlineEnd:_e.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,vt.e5)(_e),(0,vt.TM)(_e));return[xe(Le),k(Le),_e.wireframe&&D(Le)]},_e=>({itemBg:_e.colorBgContainer,itemSize:_e.controlHeight,itemSizeSM:_e.controlHeightSM,itemActiveBg:_e.colorBgContainer,itemLinkBg:_e.colorBgContainer,itemActiveColorDisabled:_e.colorTextDisabled,itemActiveBgDisabled:_e.controlItemBgActiveDisabled,itemInputBg:_e.colorBgContainer,miniOptionsSizeChangerTop:0})),X=function(_e,Le){var ct={};for(var ot in _e)Object.prototype.hasOwnProperty.call(_e,ot)&&Le.indexOf(ot)<0&&(ct[ot]=_e[ot]);if(_e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ze=0,ot=Object.getOwnPropertySymbols(_e);Ze<ot.length;Ze++)Le.indexOf(ot[Ze])<0&&Object.prototype.propertyIsEnumerable.call(_e,ot[Ze])&&(ct[ot[Ze]]=_e[ot[Ze]]);return ct},Re=_e=>{const{prefixCls:Le,selectPrefixCls:ct,className:ot,rootClassName:Ze,style:Et,size:Gt,locale:Vt,selectComponentClass:Pt,responsive:nn,showSizeChanger:vn}=_e,We=X(_e,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:Dt}=(0,Ye.Z)(nn),{getPrefixCls:Qt,direction:bn,pagination:$n={}}=I.useContext(St.E_),Un=Qt("pagination",Le),[kt,Hn]=G(Un),Jn=vn!=null?vn:$n.showSizeChanger,tt=I.useMemo(()=>{const _=I.createElement("span",{className:`${Un}-item-ellipsis`},"\u2022\u2022\u2022"),ht=I.createElement("button",{className:`${Un}-item-link`,type:"button",tabIndex:-1},bn==="rtl"?I.createElement(De.Z,null):I.createElement(re.Z,null)),_i=I.createElement("button",{className:`${Un}-item-link`,type:"button",tabIndex:-1},bn==="rtl"?I.createElement(re.Z,null):I.createElement(De.Z,null)),Rr=I.createElement("a",{className:`${Un}-item-link`},I.createElement("div",{className:`${Un}-item-container`},bn==="rtl"?I.createElement(he.Z,{className:`${Un}-item-link-icon`}):I.createElement(de,{className:`${Un}-item-link-icon`}),_)),Ar=I.createElement("a",{className:`${Un}-item-link`},I.createElement("div",{className:`${Un}-item-container`},bn==="rtl"?I.createElement(de,{className:`${Un}-item-link-icon`}):I.createElement(he.Z,{className:`${Un}-item-link-icon`}),_));return{prevIcon:ht,nextIcon:_i,jumpPrevIcon:Rr,jumpNextIcon:Ar}},[bn,Un]),[j]=(0,oe.Z)("Pagination",At.Z),Oi=Object.assign(Object.assign({},j),Vt),tr=(0,Cn.Z)(Gt),Gn=tr==="small"||!!(Dt&&!tr&&nn),Ti=Qt("select",ct),Er=it()({[`${Un}-mini`]:Gn,[`${Un}-rtl`]:bn==="rtl"},$n==null?void 0:$n.className,ot,Ze,Hn),Zi=Object.assign(Object.assign({},$n==null?void 0:$n.style),Et);return kt(I.createElement(xt,Object.assign({},tt,We,{style:Zi,prefixCls:Un,selectPrefixCls:Ti,className:Er,selectComponentClass:Pt||(Gn?Ot:Kt),locale:Oi,showSizeChanger:Jn})))},mt=Re},93948:function(J,C,d){"use strict";d.d(C,{Z:function(){return vn}});var b=d(59301),I=d(29679),L=d(40001),B=d(19248),V=d(99267),Q=d(92310),M=d.n(Q),de=d(2738),he=d(36355),re=d(92413),De=d(33708),ne=d(37061),it={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},Ue=function(){var Dt=(0,b.useRef)([]),Qt=(0,b.useRef)(null);return(0,b.useEffect)(function(){var bn=Date.now(),$n=!1;Dt.current.forEach(function(Un){if(Un){$n=!0;var kt=Un.style;kt.transitionDuration=".3s, .3s, .3s, .06s",Qt.current&&bn-Qt.current<100&&(kt.transitionDuration="0s, 0s")}}),$n&&(Qt.current=Date.now())}),Dt.current},Ie=["className","percent","prefixCls","strokeColor","strokeLinecap","strokeWidth","style","trailColor","trailWidth","transition"],Pe=function(Dt){var Qt=(0,De.Z)((0,De.Z)({},it),Dt),bn=Qt.className,$n=Qt.percent,Un=Qt.prefixCls,kt=Qt.strokeColor,Hn=Qt.strokeLinecap,Jn=Qt.strokeWidth,tt=Qt.style,j=Qt.trailColor,Oi=Qt.trailWidth,tr=Qt.transition,Gn=(0,ne.Z)(Qt,Ie);delete Gn.gapPosition;var Ti=Array.isArray($n)?$n:[$n],Er=Array.isArray(kt)?kt:[kt],Zi=Ue(),_=Jn/2,ht=100-Jn/2,_i="M ".concat(Hn==="round"?_:0,",").concat(_,`
|
|
|
L `).concat(Hn==="round"?ht:100,",").concat(_),Rr="0 0 100 ".concat(Jn),Ar=0;return b.createElement("svg",(0,re.Z)({className:M()("".concat(Un,"-line"),bn),viewBox:Rr,preserveAspectRatio:"none",style:tt},Gn),b.createElement("path",{className:"".concat(Un,"-line-trail"),d:_i,strokeLinecap:Hn,stroke:j,strokeWidth:Oi||Jn,fillOpacity:"0"}),Ti.map(function(Yr,Dr){var Hr=1;switch(Hn){case"round":Hr=1-Jn/100;break;case"square":Hr=1-Jn/2/100;break;default:Hr=1;break}var dr={strokeDasharray:"".concat(Yr*Hr,"px, 100px"),strokeDashoffset:"-".concat(Ar,"px"),transition:tr||"stroke-dashoffset 0.3s ease 0s, stroke-dasharray .3s ease 0s, stroke 0.3s linear"},Vi=Er[Dr]||Er[Er.length-1];return Ar+=Yr,b.createElement("path",{key:Dr,className:"".concat(Un,"-line-path"),d:_i,strokeLinecap:Hn,stroke:Vi,strokeWidth:Jn,fillOpacity:"0",ref:function(at){Zi[Dr]=at},style:dr})}))},ze=Pe,Ee=d(39559),fe=d(33606),we=d(47273),pe=0,Ne=(0,we.Z)();function te(){var We;return Ne?(We=pe,pe+=1):We="TEST_OR_SSR",We}var Ae=function(We){var Dt=b.useState(),Qt=(0,fe.Z)(Dt,2),bn=Qt[0],$n=Qt[1];return b.useEffect(function(){$n("rc_progress_".concat(te()))},[]),We||bn},Te=function(Dt){var Qt=Dt.bg,bn=Dt.children;return b.createElement("div",{style:{width:"100%",height:"100%",background:Qt}},bn)};function $e(We,Dt){return Object.keys(We).map(function(Qt){var bn=parseFloat(Qt),$n="".concat(Math.floor(bn*Dt),"%");return"".concat(We[Qt]," ").concat($n)})}var Qe=b.forwardRef(function(We,Dt){var Qt=We.prefixCls,bn=We.color,$n=We.gradientId,Un=We.radius,kt=We.style,Hn=We.ptg,Jn=We.strokeLinecap,tt=We.strokeWidth,j=We.size,Oi=We.gapDegree,tr=bn&&(0,Ee.Z)(bn)==="object",Gn=tr?"#FFF":void 0,Ti=j/2,Er=b.createElement("circle",{className:"".concat(Qt,"-circle-path"),r:Un,cx:Ti,cy:Ti,stroke:Gn,strokeLinecap:Jn,strokeWidth:tt,opacity:Hn===0?0:1,style:kt,ref:Dt});if(!tr)return Er;var Zi="".concat($n,"-conic"),_=Oi?"".concat(180+Oi/2,"deg"):"0deg",ht=$e(bn,(360-Oi)/360),_i=$e(bn,1),Rr="conic-gradient(from ".concat(_,", ").concat(ht.join(", "),")"),Ar="linear-gradient(to ".concat(Oi?"bottom":"top",", ").concat(_i.join(", "),")");return b.createElement(b.Fragment,null,b.createElement("mask",{id:Zi},Er),b.createElement("foreignObject",{x:0,y:0,width:j,height:j,mask:"url(#".concat(Zi,")")},b.createElement(Te,{bg:Ar},b.createElement(Te,{bg:Rr}))))}),Je=Qe,Ce=100,dt=function(Dt,Qt,bn,$n,Un,kt,Hn,Jn,tt,j){var Oi=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,tr=bn/100*360*((360-kt)/360),Gn=kt===0?0:{bottom:0,top:180,left:90,right:-90}[Hn],Ti=(100-$n)/100*Qt;tt==="round"&&$n!==100&&(Ti+=j/2,Ti>=Qt&&(Ti=Qt-.01));var Er=Ce/2;return{stroke:typeof Jn=="string"?Jn:void 0,strokeDasharray:"".concat(Qt,"px ").concat(Dt),strokeDashoffset:Ti+Oi,transform:"rotate(".concat(Un+tr+Gn,"deg)"),transformOrigin:"".concat(Er,"px ").concat(Er,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},Xe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function $t(We){var Dt=We!=null?We:[];return Array.isArray(Dt)?Dt:[Dt]}var xt=function(Dt){var Qt=(0,De.Z)((0,De.Z)({},it),Dt),bn=Qt.id,$n=Qt.prefixCls,Un=Qt.steps,kt=Qt.strokeWidth,Hn=Qt.trailWidth,Jn=Qt.gapDegree,tt=Jn===void 0?0:Jn,j=Qt.gapPosition,Oi=Qt.trailColor,tr=Qt.strokeLinecap,Gn=Qt.style,Ti=Qt.className,Er=Qt.strokeColor,Zi=Qt.percent,_=(0,ne.Z)(Qt,Xe),ht=Ce/2,_i=Ae(bn),Rr="".concat(_i,"-gradient"),Ar=ht-kt/2,Yr=Math.PI*2*Ar,Dr=tt>0?90+tt/2:-90,Hr=Yr*((360-tt)/360),dr=(0,Ee.Z)(Un)==="object"?Un:{count:Un,space:2},Vi=dr.count,fi=dr.space,at=$t(Zi),Fn=$t(Er),Qn=Fn.find(function(ut){return ut&&(0,Ee.Z)(ut)==="object"}),ft=Qn&&(0,Ee.Z)(Qn)==="object",je=ft?"butt":tr,sn=dt(Yr,Hr,0,100,Dr,tt,j,Oi,je,kt),In=Ue(),ni=function(){var yn=0;return at.map(function(rn,Si){var Zt=Fn[Si]||Fn[Fn.length-1],_n=dt(Yr,Hr,yn,rn,Dr,tt,j,Zt,je,kt);return yn+=rn,b.createElement(Je,{key:Si,color:Zt,ptg:rn,radius:Ar,prefixCls:$n,gradientId:Rr,style:_n,strokeLinecap:je,strokeWidth:kt,gapDegree:tt,ref:function(Jt){In[Si]=Jt},size:Ce})}).reverse()},Kn=function(){var yn=Math.round(Vi*(at[0]/100)),rn=100/Vi,Si=0;return new Array(Vi).fill(null).map(function(Zt,_n){var Mt=_n<=yn-1?Fn[0]:Oi,Jt=Mt&&(0,Ee.Z)(Mt)==="object"?"url(#".concat(Rr,")"):void 0,on=dt(Yr,Hr,Si,rn,Dr,tt,j,Mt,"butt",kt,fi);return Si+=(Hr-on.strokeDashoffset+fi)*100/Hr,b.createElement("circle",{key:_n,className:"".concat($n,"-circle-path"),r:Ar,cx:ht,cy:ht,stroke:Jt,strokeWidth:kt,opacity:1,style:on,ref:function(gn){In[_n]=gn}})})};return b.createElement("svg",(0,re.Z)({className:M()("".concat($n,"-circle"),Ti),viewBox:"0 0 ".concat(Ce," ").concat(Ce),style:Gn,id:bn,role:"presentation"},_),!Vi&&b.createElement("circle",{className:"".concat($n,"-circle-trail"),r:Ar,cx:ht,cy:ht,stroke:Oi,strokeLinecap:je,strokeWidth:Hn||kt,style:sn}),Vi?Kn():ni())},At=xt,St={Line:ze,Circle:At},Cn=d(6848),Ye=d(93398);function oe(We){return!We||We<0?0:We>100?100:We}function H(We){let{success:Dt,successPercent:Qt}=We,bn=Qt;return Dt&&"progress"in Dt&&(bn=Dt.progress),Dt&&"percent"in Dt&&(bn=Dt.percent),bn}const Ot=We=>{let{percent:Dt,success:Qt,successPercent:bn}=We;const $n=oe(H({success:Qt,successPercent:bn}));return[$n,oe(oe(Dt)-$n)]},Kt=We=>{let{success:Dt={},strokeColor:Qt}=We;const{strokeColor:bn}=Dt;return[bn||Ye.presetPrimaryColors.green,Qt||null]},vt=(We,Dt,Qt)=>{var bn,$n,Un,kt;let Hn=-1,Jn=-1;if(Dt==="step"){const tt=Qt.steps,j=Qt.strokeWidth;typeof We=="string"||typeof We=="undefined"?(Hn=We==="small"?2:14,Jn=j!=null?j:8):typeof We=="number"?[Hn,Jn]=[We,We]:[Hn=14,Jn=8]=We,Hn*=tt}else if(Dt==="line"){const tt=Qt==null?void 0:Qt.strokeWidth;typeof We=="string"||typeof We=="undefined"?Jn=tt||(We==="small"?6:8):typeof We=="number"?[Hn,Jn]=[We,We]:[Hn=-1,Jn=8]=We}else(Dt==="circle"||Dt==="dashboard")&&(typeof We=="string"||typeof We=="undefined"?[Hn,Jn]=We==="small"?[60,60]:[120,120]:typeof We=="number"?[Hn,Jn]=[We,We]:(Hn=($n=(bn=We[0])!==null&&bn!==void 0?bn:We[1])!==null&&$n!==void 0?$n:120,Jn=(kt=(Un=We[0])!==null&&Un!==void 0?Un:We[1])!==null&&kt!==void 0?kt:120));return[Hn,Jn]},hn=3,Rt=We=>hn/We*100;var yt=We=>{const{prefixCls:Dt,trailColor:Qt=null,strokeLinecap:bn="round",gapPosition:$n,gapDegree:Un,width:kt=120,type:Hn,children:Jn,success:tt,size:j=kt}=We,[Oi,tr]=vt(j,"circle");let{strokeWidth:Gn}=We;Gn===void 0&&(Gn=Math.max(Rt(Oi),6));const Ti={width:Oi,height:tr,fontSize:Oi*.15+6},Er=b.useMemo(()=>{if(Un||Un===0)return Un;if(Hn==="dashboard")return 75},[Un,Hn]),Zi=$n||Hn==="dashboard"&&"bottom"||void 0,_=Object.prototype.toString.call(We.strokeColor)==="[object Object]",ht=Kt({success:tt,strokeColor:We.strokeColor}),_i=M()(`${Dt}-inner`,{[`${Dt}-circle-gradient`]:_}),Rr=b.createElement(At,{percent:Ot(We),strokeWidth:Gn,trailWidth:Gn,strokeColor:ht,strokeLinecap:bn,trailColor:Qt,prefixCls:Dt,gapDegree:Er,gapPosition:Zi});return b.createElement("div",{className:_i,style:Ti},Oi<=20?b.createElement(Cn.Z,{title:Jn},b.createElement("span",null,Rr)):b.createElement(b.Fragment,null,Rr,Jn))},si=function(We,Dt){var Qt={};for(var bn in We)Object.prototype.hasOwnProperty.call(We,bn)&&Dt.indexOf(bn)<0&&(Qt[bn]=We[bn]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $n=0,bn=Object.getOwnPropertySymbols(We);$n<bn.length;$n++)Dt.indexOf(bn[$n])<0&&Object.prototype.propertyIsEnumerable.call(We,bn[$n])&&(Qt[bn[$n]]=We[bn[$n]]);return Qt};const qn=We=>{let Dt=[];return Object.keys(We).forEach(Qt=>{const bn=parseFloat(Qt.replace(/%/g,""));isNaN(bn)||Dt.push({key:bn,value:We[Qt]})}),Dt=Dt.sort((Qt,bn)=>Qt.key-bn.key),Dt.map(Qt=>{let{key:bn,value:$n}=Qt;return`${$n} ${bn}%`}).join(", ")},ln=(We,Dt)=>{const{from:Qt=Ye.presetPrimaryColors.blue,to:bn=Ye.presetPrimaryColors.blue,direction:$n=Dt==="rtl"?"to left":"to right"}=We,Un=si(We,["from","to","direction"]);if(Object.keys(Un).length!==0){const kt=qn(Un);return{backgroundImage:`linear-gradient(${$n}, ${kt})`}}return{backgroundImage:`linear-gradient(${$n}, ${Qt}, ${bn})`}};var xe=We=>{const{prefixCls:Dt,direction:Qt,percent:bn,size:$n,strokeWidth:Un,strokeColor:kt,strokeLinecap:Hn="round",children:Jn,trailColor:tt=null,success:j}=We,Oi=kt&&typeof kt!="string"?ln(kt,Qt):{backgroundColor:kt},tr=Hn==="square"||Hn==="butt"?0:void 0,Gn={backgroundColor:tt||void 0,borderRadius:tr},Ti=$n!=null?$n:[-1,Un||($n==="small"?6:8)],[Er,Zi]=vt(Ti,"line",{strokeWidth:Un}),_=Object.assign({width:`${oe(bn)}%`,height:Zi,borderRadius:tr},Oi),ht=H(We),_i={width:`${oe(ht)}%`,height:Zi,borderRadius:tr,backgroundColor:j==null?void 0:j.strokeColor},Rr={width:Er<0?"100%":Er,height:Zi};return b.createElement(b.Fragment,null,b.createElement("div",{className:`${Dt}-outer`,style:Rr},b.createElement("div",{className:`${Dt}-inner`,style:Gn},b.createElement("div",{className:`${Dt}-bg`,style:_}),ht!==void 0?b.createElement("div",{className:`${Dt}-success-bg`,style:_i}):null)),Jn)},k=We=>{const{size:Dt,steps:Qt,percent:bn=0,strokeWidth:$n=8,strokeColor:Un,trailColor:kt=null,prefixCls:Hn,children:Jn}=We,tt=Math.round(Qt*(bn/100)),j=Dt==="small"?2:14,Oi=Dt!=null?Dt:[j,$n],[tr,Gn]=vt(Oi,"step",{steps:Qt,strokeWidth:$n}),Ti=tr/Qt,Er=new Array(Qt);for(let Zi=0;Zi<Qt;Zi++){const _=Array.isArray(Un)?Un[Zi]:Un;Er[Zi]=b.createElement("div",{key:Zi,className:M()(`${Hn}-steps-item`,{[`${Hn}-steps-item-active`]:Zi<=tt-1}),style:{backgroundColor:Zi<=tt-1?_:kt,width:Ti,height:Gn}})}return b.createElement("div",{className:`${Hn}-steps-outer`},Er,Jn)},G=d(93083),X=d(17313),T=d(83116),Re=d(37613);const mt=We=>{const Dt=We?"100%":"-100%";return new G.Keyframes(`antProgress${We?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${Dt}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${Dt}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},_e=We=>{const{componentCls:Dt,iconCls:Qt}=We;return{[Dt]:Object.assign(Object.assign({},(0,X.Wf)(We)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:We.fontSize,marginInlineEnd:We.marginXS,marginBottom:We.marginXS},[`${Dt}-outer`]:{display:"inline-block",width:"100%"},[`&${Dt}-show-info`]:{[`${Dt}-outer`]:{marginInlineEnd:`calc(-2em - ${We.marginXS}px)`,paddingInlineEnd:`calc(2em + ${We.paddingXS}px)`}},[`${Dt}-inner`]:{position:"relative",display:"inline-block",width:"100%",overflow:"hidden",verticalAlign:"middle",backgroundColor:We.remainingColor,borderRadius:We.lineBorderRadius},[`${Dt}-inner:not(${Dt}-circle-gradient)`]:{[`${Dt}-circle-path`]:{stroke:We.defaultColor}},[`${Dt}-success-bg, ${Dt}-bg`]:{position:"relative",backgroundColor:We.defaultColor,borderRadius:We.lineBorderRadius,transition:`all ${We.motionDurationSlow} ${We.motionEaseInOutCirc}`},[`${Dt}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:We.colorSuccess},[`${Dt}-text`]:{display:"inline-block",width:"2em",marginInlineStart:We.marginXS,color:We.colorText,lineHeight:1,whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[Qt]:{fontSize:We.fontSize}},[`&${Dt}-status-active`]:{[`${Dt}-bg::before`]:{position:"absolute",inset:0,backgroundColor:We.colorBgContainer,borderRadius:We.lineBorderRadius,opacity:0,animationName:mt(),animationDuration:We.progressActiveMotionDuration,animationTimingFunction:We.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${Dt}-rtl${Dt}-status-active`]:{[`${Dt}-bg::before`]:{animationName:mt(!0)}},[`&${Dt}-status-exception`]:{[`${Dt}-bg`]:{backgroundColor:We.colorError},[`${Dt}-text`]:{color:We.colorError}},[`&${Dt}-status-exception ${Dt}-inner:not(${Dt}-circle-gradient)`]:{[`${Dt}-circle-path`]:{stroke:We.colorError}},[`&${Dt}-status-success`]:{[`${Dt}-bg`]:{backgroundColor:We.colorSuccess},[`${Dt}-text`]:{color:We.colorSuccess}},[`&${Dt}-status-success ${Dt}-inner:not(${Dt}-circle-gradient)`]:{[`${Dt}-circle-path`]:{stroke:We.colorSuccess}}})}},Le=We=>{const{componentCls:Dt,iconCls:Qt}=We;return{[Dt]:{[`${Dt}-circle-trail`]:{stroke:We.remainingColor},[`&${Dt}-circle ${Dt}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${Dt}-circle ${Dt}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:We.circleTextColor,fontSize:We.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[Qt]:{fontSize:`${We.fontSize/We.fontSizeSM}em`}},[`${Dt}-circle&-status-exception`]:{[`${Dt}-text`]:{color:We.colorError}},[`${Dt}-circle&-status-success`]:{[`${Dt}-text`]:{color:We.colorSuccess}}},[`${Dt}-inline-circle`]:{lineHeight:1,[`${Dt}-inner`]:{verticalAlign:"bottom"}}}},ct=We=>{const{componentCls:Dt}=We;return{[Dt]:{[`${Dt}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:We.progressStepMinWidth,marginInlineEnd:We.progressStepMarginInlineEnd,backgroundColor:We.remainingColor,transition:`all ${We.motionDurationSlow}`,"&-active":{backgroundColor:We.defaultColor}}}}}},ot=We=>{const{componentCls:Dt,iconCls:Qt}=We;return{[Dt]:{[`${Dt}-small&-line, ${Dt}-small&-line ${Dt}-text ${Qt}`]:{fontSize:We.fontSizeSM}}}};var Ze=(0,T.Z)("Progress",We=>{const Dt=We.marginXXS/2,Qt=(0,Re.TS)(We,{progressStepMarginInlineEnd:Dt,progressStepMinWidth:Dt,progressActiveMotionDuration:"2.4s"});return[_e(Qt),Le(Qt),ct(Qt),ot(Qt)]},We=>({circleTextColor:We.colorText,defaultColor:We.colorInfo,remainingColor:We.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em"})),Et=function(We,Dt){var Qt={};for(var bn in We)Object.prototype.hasOwnProperty.call(We,bn)&&Dt.indexOf(bn)<0&&(Qt[bn]=We[bn]);if(We!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $n=0,bn=Object.getOwnPropertySymbols(We);$n<bn.length;$n++)Dt.indexOf(bn[$n])<0&&Object.prototype.propertyIsEnumerable.call(We,bn[$n])&&(Qt[bn[$n]]=We[bn[$n]]);return Qt};const Gt=null,Vt=["normal","exception","active","success"];var nn=b.forwardRef((We,Dt)=>{const{prefixCls:Qt,className:bn,rootClassName:$n,steps:Un,strokeColor:kt,percent:Hn=0,size:Jn="default",showInfo:tt=!0,type:j="line",status:Oi,format:tr,style:Gn}=We,Ti=Et(We,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style"]),Er=b.useMemo(()=>{var at,Fn;const Qn=H(We);return parseInt(Qn!==void 0?(at=Qn!=null?Qn:0)===null||at===void 0?void 0:at.toString():(Fn=Hn!=null?Hn:0)===null||Fn===void 0?void 0:Fn.toString(),10)},[Hn,We.success,We.successPercent]),Zi=b.useMemo(()=>!Vt.includes(Oi)&&Er>=100?"success":Oi||"normal",[Oi,Er]),{getPrefixCls:_,direction:ht,progress:_i}=b.useContext(he.E_),Rr=_("progress",Qt),[Ar,Yr]=Ze(Rr),Dr=b.useMemo(()=>{if(!tt)return null;const at=H(We);let Fn;const Qn=tr||(je=>`${je}%`),ft=j==="line";return tr||Zi!=="exception"&&Zi!=="success"?Fn=Qn(oe(Hn),oe(at)):Zi==="exception"?Fn=ft?b.createElement(B.Z,null):b.createElement(V.Z,null):Zi==="success"&&(Fn=ft?b.createElement(I.Z,null):b.createElement(L.Z,null)),b.createElement("span",{className:`${Rr}-text`,title:typeof Fn=="string"?Fn:void 0},Fn)},[tt,Hn,Er,Zi,j,Rr,tr]),Hr=Array.isArray(kt)?kt[0]:kt,dr=typeof kt=="string"||Array.isArray(kt)?kt:void 0;let Vi;j==="line"?Vi=Un?b.createElement(k,Object.assign({},We,{strokeColor:dr,prefixCls:Rr,steps:Un}),Dr):b.createElement(xe,Object.assign({},We,{strokeColor:Hr,prefixCls:Rr,direction:ht}),Dr):(j==="circle"||j==="dashboard")&&(Vi=b.createElement(yt,Object.assign({},We,{strokeColor:Hr,prefixCls:Rr,progressStatus:Zi}),Dr));const fi=M()(Rr,`${Rr}-status-${Zi}`,`${Rr}-${j==="dashboard"&&"circle"||Un&&"steps"||j}`,{[`${Rr}-inline-circle`]:j==="circle"&&vt(Jn,"circle")[0]<=20,[`${Rr}-show-info`]:tt,[`${Rr}-${Jn}`]:typeof Jn=="string",[`${Rr}-rtl`]:ht==="rtl"},_i==null?void 0:_i.className,bn,$n,Yr);return Ar(b.createElement("div",Object.assign({ref:Dt,style:Object.assign(Object.assign({},_i==null?void 0:_i.style),Gn),className:fi,role:"progressbar","aria-valuenow":Er},(0,de.Z)(Ti,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),Vi))}),vn=nn},57809:function(J,C,d){"use strict";var b=d(92310),I=d.n(b),L=d(77861),B=d(2738),V=d(59301),Q=d(53487),M=d(62892),de=d(19080),he=d(36355),re=d(1684),De=d(93891),ne=d(19716),it=d(32441),Ue=d(33234),Ie=d(14154),Pe=d(58582),ze=d(84443),Ee=d(66339),fe=function(Ae,Te){var $e={};for(var Qe in Ae)Object.prototype.hasOwnProperty.call(Ae,Qe)&&Te.indexOf(Qe)<0&&($e[Qe]=Ae[Qe]);if(Ae!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,Qe=Object.getOwnPropertySymbols(Ae);Je<Qe.length;Je++)Te.indexOf(Qe[Je])<0&&Object.prototype.propertyIsEnumerable.call(Ae,Qe[Je])&&($e[Qe[Je]]=Ae[Qe[Je]]);return $e};const we="SECRET_COMBOBOX_MODE_DO_NOT_USE",pe=(Ae,Te)=>{var $e,{prefixCls:Qe,bordered:Je=!0,className:Ce,rootClassName:dt,getPopupContainer:Xe,popupClassName:$t,dropdownClassName:xt,listHeight:At=256,placement:St,listItemHeight:Cn=24,size:Ye,disabled:oe,notFoundContent:H,status:Ot,builtinPlacements:Kt,dropdownMatchSelectWidth:vt,popupMatchSelectWidth:hn,direction:Rt,style:hi,allowClear:yt}=Ae,si=fe(Ae,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:qn,getPrefixCls:ln,renderEmpty:Tn,direction:xe,virtual:D,popupMatchSelectWidth:k,popupOverflow:G,select:X}=V.useContext(he.E_),T=ln("select",Qe),Re=ln(),mt=Rt!=null?Rt:xe,{compactSize:_e,compactItemClassnames:Le}=(0,Ue.ri)(T,mt),[ct,ot]=(0,Ie.Z)(T),Ze=V.useMemo(()=>{const{mode:Zi}=si;if(Zi!=="combobox")return Zi===we?"combobox":Zi},[si.mode]),Et=Ze==="multiple"||Ze==="tags",Gt=(0,ze.Z)(si.suffixIcon,si.showArrow),Vt=($e=hn!=null?hn:vt)!==null&&$e!==void 0?$e:k,{status:Pt,hasFeedback:nn,isFormItemInput:vn,feedbackIcon:We}=V.useContext(it.aM),Dt=(0,de.F)(Pt,Ot);let Qt;H!==void 0?Qt=H:Ze==="combobox"?Qt=null:Qt=(Tn==null?void 0:Tn("Select"))||V.createElement(De.Z,{componentName:"Select"});const{suffixIcon:bn,itemIcon:$n,removeIcon:Un,clearIcon:kt}=(0,Ee.Z)(Object.assign(Object.assign({},si),{multiple:Et,hasFeedback:nn,feedbackIcon:We,showSuffixIcon:Gt,prefixCls:T,showArrow:si.showArrow,componentName:"Select"})),Hn=yt===!0?{clearIcon:kt}:yt,Jn=(0,B.Z)(si,["suffixIcon","itemIcon"]),tt=I()($t||xt,{[`${T}-dropdown-${mt}`]:mt==="rtl"},dt,ot),j=(0,ne.Z)(Zi=>{var _;return(_=Ye!=null?Ye:_e)!==null&&_!==void 0?_:Zi}),Oi=V.useContext(re.Z),tr=oe!=null?oe:Oi,Gn=I()({[`${T}-lg`]:j==="large",[`${T}-sm`]:j==="small",[`${T}-rtl`]:mt==="rtl",[`${T}-borderless`]:!Je,[`${T}-in-form-item`]:vn},(0,de.Z)(T,Dt,nn),Le,X==null?void 0:X.className,Ce,dt,ot),Ti=V.useMemo(()=>St!==void 0?St:mt==="rtl"?"bottomRight":"bottomLeft",[St,mt]),Er=(0,Pe.Z)(Kt,G);return ct(V.createElement(L.ZP,Object.assign({ref:Te,virtual:D,showSearch:X==null?void 0:X.showSearch},Jn,{style:Object.assign(Object.assign({},X==null?void 0:X.style),hi),dropdownMatchSelectWidth:Vt,builtinPlacements:Er,transitionName:(0,M.m)(Re,"slide-up",si.transitionName),listHeight:At,listItemHeight:Cn,mode:Ze,prefixCls:T,placement:Ti,direction:mt,suffixIcon:bn,menuItemSelectedIcon:$n,removeIcon:Un,allowClear:Hn,notFoundContent:Qt,className:Gn,getPopupContainer:Xe||qn,dropdownClassName:tt,disabled:tr})))},Ne=V.forwardRef(pe),te=(0,Q.Z)(Ne);Ne.SECRET_COMBOBOX_MODE_DO_NOT_USE=we,Ne.Option=L.Wx,Ne.OptGroup=L.Xo,Ne._InternalPanelDoNotUseOrYouWillBeFired=te,C.default=Ne},14154:function(J,C,d){"use strict";d.d(C,{Z:function(){return Ne}});var b=d(17313),I=d(74207),L=d(37613),B=d(83116),V=d(13826),Q=d(92899);const M=te=>{const{optionHeight:Ae,optionFontSize:Te,optionLineHeight:$e,optionPadding:Qe}=te;return{position:"relative",display:"block",minHeight:Ae,padding:Qe,color:te.colorText,fontWeight:"normal",fontSize:Te,lineHeight:$e,boxSizing:"border-box"}};var he=te=>{const{antCls:Ae,componentCls:Te}=te,$e=`${Te}-item`,Qe=`&${Ae}-slide-up-enter${Ae}-slide-up-enter-active`,Je=`&${Ae}-slide-up-appear${Ae}-slide-up-appear-active`,Ce=`&${Ae}-slide-up-leave${Ae}-slide-up-leave-active`,dt=`${Te}-dropdown-placement-`;return[{[`${Te}-dropdown`]:Object.assign(Object.assign({},(0,b.Wf)(te)),{position:"absolute",top:-9999,zIndex:te.zIndexPopup,boxSizing:"border-box",padding:te.paddingXXS,overflow:"hidden",fontSize:te.fontSize,fontVariant:"initial",backgroundColor:te.colorBgElevated,borderRadius:te.borderRadiusLG,outline:"none",boxShadow:te.boxShadowSecondary,[`
|
|
|
${Qe}${dt}bottomLeft,
|
|
|
${Je}${dt}bottomLeft
|
|
|
`]:{animationName:V.fJ},[`
|
|
|
${Qe}${dt}topLeft,
|
|
|
${Je}${dt}topLeft,
|
|
|
${Qe}${dt}topRight,
|
|
|
${Je}${dt}topRight
|
|
|
`]:{animationName:V.Qt},[`${Ce}${dt}bottomLeft`]:{animationName:V.Uw},[`
|
|
|
${Ce}${dt}topLeft,
|
|
|
${Ce}${dt}topRight
|
|
|
`]:{animationName:V.ly},"&-hidden":{display:"none"},[`${$e}`]:Object.assign(Object.assign({},M(te)),{cursor:"pointer",transition:`background ${te.motionDurationSlow} ease`,borderRadius:te.borderRadiusSM,"&-group":{color:te.colorTextDescription,fontSize:te.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},b.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${$e}-option-disabled)`]:{backgroundColor:te.optionActiveBg},[`&-selected:not(${$e}-option-disabled)`]:{color:te.optionSelectedColor,fontWeight:te.optionSelectedFontWeight,backgroundColor:te.optionSelectedBg,[`${$e}-option-state`]:{color:te.colorPrimary}},"&-disabled":{[`&${$e}-option-selected`]:{backgroundColor:te.colorBgContainerDisabled},color:te.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:te.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,V.oN)(te,"slide-up"),(0,V.oN)(te,"slide-down"),(0,Q.Fm)(te,"move-up"),(0,Q.Fm)(te,"move-down")]};const re=2,De=te=>{let{controlHeightSM:Ae,controlHeight:Te,lineWidth:$e}=te;const Qe=(Te-Ae)/2-$e,Je=Math.ceil(Qe/2);return[Qe,Je]};function ne(te,Ae){const{componentCls:Te,iconCls:$e}=te,Qe=`${Te}-selection-overflow`,Je=te.multipleSelectItemHeight,[Ce]=De(te),dt=Ae?`${Te}-${Ae}`:"";return{[`${Te}-multiple${dt}`]:{fontSize:te.fontSize,[Qe]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${Te}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${Ce-re}px ${re*2}px`,borderRadius:te.borderRadius,[`${Te}-show-search&`]:{cursor:"text"},[`${Te}-disabled&`]:{background:te.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${re}px 0`,lineHeight:`${Je}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${Te}-show-arrow ${Te}-selector,
|
|
|
&${Te}-allow-clear ${Te}-selector
|
|
|
`]:{paddingInlineEnd:te.fontSizeIcon+te.controlPaddingHorizontal},[`${Te}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Je,marginTop:re,marginBottom:re,lineHeight:`${Je-te.lineWidth*2}px`,background:te.multipleItemBg,border:`${te.lineWidth}px ${te.lineType} ${te.multipleItemBorderColor}`,borderRadius:te.borderRadiusSM,cursor:"default",transition:`font-size ${te.motionDurationSlow}, line-height ${te.motionDurationSlow}, height ${te.motionDurationSlow}`,userSelect:"none",marginInlineEnd:re*2,paddingInlineStart:te.paddingXS,paddingInlineEnd:te.paddingXS/2,[`${Te}-disabled&`]:{color:te.multipleItemColorDisabled,borderColor:te.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:te.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,b.Ro)()),{display:"inline-flex",alignItems:"center",color:te.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${$e}`]:{verticalAlign:"-0.2em"},"&:hover":{color:te.colorIconHover}})},[`${Qe}-item + ${Qe}-item`]:{[`${Te}-selection-search`]:{marginInlineStart:0}},[`${Te}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:te.inputPaddingHorizontalBase-Ce,"\n &-input,\n &-mirror\n ":{height:Je,fontFamily:te.fontFamily,lineHeight:`${Je}px`,transition:`all ${te.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${Te}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:te.inputPaddingHorizontalBase,insetInlineEnd:te.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${te.motionDurationSlow}`}}}}var Ue=te=>{const{componentCls:Ae}=te,Te=(0,L.TS)(te,{controlHeight:te.controlHeightSM,multipleSelectItemHeight:te.controlHeightXS,borderRadius:te.borderRadiusSM,borderRadiusSM:te.borderRadiusXS}),$e=(0,L.TS)(te,{fontSize:te.fontSizeLG,controlHeight:te.controlHeightLG,multipleSelectItemHeight:te.multipleItemHeightLG,borderRadius:te.borderRadiusLG,borderRadiusSM:te.borderRadius}),[,Qe]=De(te);return[ne(te),ne(Te,"sm"),{[`${Ae}-multiple${Ae}-sm`]:{[`${Ae}-selection-placeholder`]:{insetInline:te.controlPaddingHorizontalSM-te.lineWidth},[`${Ae}-selection-search`]:{marginInlineStart:Qe}}},ne($e,"lg")]};function Ie(te,Ae){const{componentCls:Te,inputPaddingHorizontalBase:$e,borderRadius:Qe}=te,Je=te.controlHeight-te.lineWidth*2,Ce=Math.ceil(te.fontSize*1.25),dt=Ae?`${Te}-${Ae}`:"";return{[`${Te}-single${dt}`]:{fontSize:te.fontSize,[`${Te}-selector`]:Object.assign(Object.assign({},(0,b.Wf)(te)),{display:"flex",borderRadius:Qe,[`${Te}-selection-search`]:{position:"absolute",top:0,insetInlineStart:$e,insetInlineEnd:$e,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${Te}-selection-item,
|
|
|
${Te}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Je}px`,transition:`all ${te.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Je}px`}},[`${Te}-selection-item`]:{position:"relative",userSelect:"none"},[`${Te}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${Te}-selection-item:after`,`${Te}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${Te}-show-arrow ${Te}-selection-item,
|
|
|
&${Te}-show-arrow ${Te}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:Ce},[`&${Te}-open ${Te}-selection-item`]:{color:te.colorTextPlaceholder},[`&:not(${Te}-customize-input)`]:{[`${Te}-selector`]:{width:"100%",height:te.controlHeight,padding:`0 ${$e}px`,[`${Te}-selection-search-input`]:{height:Je},"&:after":{lineHeight:`${Je}px`}}},[`&${Te}-customize-input`]:{[`${Te}-selector`]:{"&:after":{display:"none"},[`${Te}-selection-search`]:{position:"static",width:"100%"},[`${Te}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${$e}px`,"&:after":{display:"none"}}}}}}}function Pe(te){const{componentCls:Ae}=te,Te=te.controlPaddingHorizontalSM-te.lineWidth;return[Ie(te),Ie((0,L.TS)(te,{controlHeight:te.controlHeightSM,borderRadius:te.borderRadiusSM}),"sm"),{[`${Ae}-single${Ae}-sm`]:{[`&:not(${Ae}-customize-input)`]:{[`${Ae}-selection-search`]:{insetInlineStart:Te,insetInlineEnd:Te},[`${Ae}-selector`]:{padding:`0 ${Te}px`},[`&${Ae}-show-arrow ${Ae}-selection-search`]:{insetInlineEnd:Te+te.fontSize*1.5},[`
|
|
|
&${Ae}-show-arrow ${Ae}-selection-item,
|
|
|
&${Ae}-show-arrow ${Ae}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:te.fontSize*1.5}}}},Ie((0,L.TS)(te,{controlHeight:te.singleItemHeightLG,fontSize:te.fontSizeLG,borderRadius:te.borderRadiusLG}),"lg")]}const ze=te=>{const{componentCls:Ae,selectorBg:Te}=te;return{position:"relative",backgroundColor:Te,border:`${te.lineWidth}px ${te.lineType} ${te.colorBorder}`,transition:`all ${te.motionDurationMid} ${te.motionEaseInOut}`,input:{cursor:"pointer"},[`${Ae}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${Ae}-disabled&`]:{color:te.colorTextDisabled,background:te.colorBgContainerDisabled,cursor:"not-allowed",[`${Ae}-multiple&`]:{background:te.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Ee=function(te,Ae){let Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:$e,borderHoverColor:Qe,outlineColor:Je,antCls:Ce}=Ae,dt=Te?{[`${$e}-selector`]:{borderColor:Qe}}:{};return{[te]:{[`&:not(${$e}-disabled):not(${$e}-customize-input):not(${Ce}-pagination-size-changer)`]:Object.assign(Object.assign({},dt),{[`${$e}-focused& ${$e}-selector`]:{borderColor:Qe,boxShadow:`0 0 0 ${Ae.controlOutlineWidth}px ${Je}`,outline:0},[`&:hover ${$e}-selector`]:{borderColor:Qe}})}}},fe=te=>{const{componentCls:Ae}=te;return{[`${Ae}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},we=te=>{const{componentCls:Ae,inputPaddingHorizontalBase:Te,iconCls:$e}=te;return{[Ae]:Object.assign(Object.assign({},(0,b.Wf)(te)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${Ae}-customize-input) ${Ae}-selector`]:Object.assign(Object.assign({},ze(te)),fe(te)),[`${Ae}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},b.vS),[`${Ae}-selection-placeholder`]:Object.assign(Object.assign({},b.vS),{flex:1,color:te.colorTextPlaceholder,pointerEvents:"none"}),[`${Ae}-arrow`]:Object.assign(Object.assign({},(0,b.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Te,height:te.fontSizeIcon,marginTop:-te.fontSizeIcon/2,color:te.colorTextQuaternary,fontSize:te.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[$e]:{verticalAlign:"top",transition:`transform ${te.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${Ae}-suffix)`]:{pointerEvents:"auto"}},[`${Ae}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${Ae}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:Te,zIndex:1,display:"inline-block",width:te.fontSizeIcon,height:te.fontSizeIcon,marginTop:-te.fontSizeIcon/2,color:te.colorTextQuaternary,fontSize:te.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:te.clearBg,cursor:"pointer",opacity:0,transition:`color ${te.motionDurationMid} ease, opacity ${te.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:te.colorTextTertiary}},"&:hover":{[`${Ae}-clear`]:{opacity:1}}}),[`${Ae}-has-feedback`]:{[`${Ae}-clear`]:{insetInlineEnd:Te+te.fontSize+te.paddingXS}}}},pe=te=>{const{componentCls:Ae}=te;return[{[Ae]:{[`&-borderless ${Ae}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${Ae}-in-form-item`]:{width:"100%"}}},we(te),Pe(te),Ue(te),he(te),{[`${Ae}-rtl`]:{direction:"rtl"}},Ee(Ae,(0,L.TS)(te,{borderHoverColor:te.colorPrimaryHover,outlineColor:te.controlOutline})),Ee(`${Ae}-status-error`,(0,L.TS)(te,{borderHoverColor:te.colorErrorHover,outlineColor:te.colorErrorOutline}),!0),Ee(`${Ae}-status-warning`,(0,L.TS)(te,{borderHoverColor:te.colorWarningHover,outlineColor:te.colorWarningOutline}),!0),(0,I.c)(te,{borderElCls:`${Ae}-selector`,focusElCls:`${Ae}-focused`})]};var Ne=(0,B.Z)("Select",(te,Ae)=>{let{rootPrefixCls:Te}=Ae;const $e=(0,L.TS)(te,{rootPrefixCls:Te,inputPaddingHorizontalBase:te.paddingSM-1,multipleSelectItemHeight:te.multipleItemHeight});return[pe($e)]},te=>{const{fontSize:Ae,lineHeight:Te,controlHeight:$e,controlPaddingHorizontal:Qe,zIndexPopupBase:Je,colorText:Ce,fontWeightStrong:dt,controlItemBgActive:Xe,controlItemBgHover:$t,colorBgContainer:xt,colorFillSecondary:At,controlHeightLG:St,controlHeightSM:Cn,colorBgContainerDisabled:Ye,colorTextDisabled:oe}=te;return{zIndexPopup:Je+50,optionSelectedColor:Ce,optionSelectedFontWeight:dt,optionSelectedBg:Xe,optionActiveBg:$t,optionPadding:`${($e-Ae*Te)/2}px ${Qe}px`,optionFontSize:Ae,optionLineHeight:Te,optionHeight:$e,selectorBg:xt,clearBg:xt,singleItemHeightLG:St,multipleItemBg:At,multipleItemBorderColor:"transparent",multipleItemHeight:Cn,multipleItemHeightLG:$e,multipleSelectorBgDisabled:Ye,multipleItemColorDisabled:oe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(J,C,d){"use strict";d.d(C,{Z:function(){return I}});const b=L=>{const V={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:L==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},V),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},V),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},V),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},V),{points:["br","tr"],offset:[0,-4]})}};function I(L,B){return L||b(B)}},84443:function(J,C,d){"use strict";d.d(C,{Z:function(){return b}});function b(I,L){return L!==void 0?L:I!==null}},66339:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});var b=d(40001),I=d(19248),L=d(99267),B=d(84105),V=d(58617),Q=d(47472),M=d(59301);function de(he){let{suffixIcon:re,clearIcon:De,menuItemSelectedIcon:ne,removeIcon:it,loading:Ue,multiple:Ie,hasFeedback:Pe,prefixCls:ze,showSuffixIcon:Ee,feedbackIcon:fe,showArrow:we,componentName:pe}=he;const Ne=De!=null?De:M.createElement(I.Z,null),te=Qe=>re===null&&!Pe&&!we?null:M.createElement(M.Fragment,null,Ee!==!1&&Qe,Pe&&fe);let Ae=null;if(re!==void 0)Ae=te(re);else if(Ue)Ae=te(M.createElement(V.Z,{spin:!0}));else{const Qe=`${ze}-suffix`;Ae=Je=>{let{open:Ce,showSearch:dt}=Je;return te(Ce&&dt?M.createElement(Q.Z,{className:Qe}):M.createElement(B.Z,{className:Qe}))}}let Te=null;ne!==void 0?Te=ne:Ie?Te=M.createElement(b.Z,null):Te=null;let $e=null;return it!==void 0?$e=it:$e=M.createElement(L.Z,null),{clearIcon:Ne,suffixIcon:Ae,itemIcon:Te,removeIcon:$e}}},81327:function(J,C,d){"use strict";d.d(C,{Z:function(){return ze}});var b=d(59301),I=d(92310),L=d.n(I),B=d(11592),V=d(36355),Q=d(33234);const M=b.createContext({latestIndex:0}),de=M.Provider;var re=Ee=>{let{className:fe,index:we,children:pe,split:Ne,style:te}=Ee;const{latestIndex:Ae}=b.useContext(M);return pe==null?null:b.createElement(b.Fragment,null,b.createElement("div",{className:fe,style:te},pe),we<Ae&&Ne&&b.createElement("span",{className:`${fe}-split`},Ne))},De=d(2856);function ne(Ee){return["small","middle","large"].includes(Ee)}function it(Ee){return Ee?typeof Ee=="number"&&!Number.isNaN(Ee):!1}var Ue=function(Ee,fe){var we={};for(var pe in Ee)Object.prototype.hasOwnProperty.call(Ee,pe)&&fe.indexOf(pe)<0&&(we[pe]=Ee[pe]);if(Ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,pe=Object.getOwnPropertySymbols(Ee);Ne<pe.length;Ne++)fe.indexOf(pe[Ne])<0&&Object.prototype.propertyIsEnumerable.call(Ee,pe[Ne])&&(we[pe[Ne]]=Ee[pe[Ne]]);return we};const Pe=b.forwardRef((Ee,fe)=>{var we,pe;const{getPrefixCls:Ne,space:te,direction:Ae}=b.useContext(V.E_),{size:Te=(te==null?void 0:te.size)||"small",align:$e,className:Qe,rootClassName:Je,children:Ce,direction:dt="horizontal",prefixCls:Xe,split:$t,style:xt,wrap:At=!1,classNames:St,styles:Cn}=Ee,Ye=Ue(Ee,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[oe,H]=Array.isArray(Te)?Te:[Te,Te],Ot=ne(H),Kt=ne(oe),vt=it(H),hn=it(oe),Rt=(0,B.Z)(Ce,{keepEmpty:!0}),hi=$e===void 0&&dt==="horizontal"?"center":$e,yt=Ne("space",Xe),[si,qn]=(0,De.Z)(yt),ln=L()(yt,te==null?void 0:te.className,qn,`${yt}-${dt}`,{[`${yt}-rtl`]:Ae==="rtl",[`${yt}-align-${hi}`]:hi,[`${yt}-gap-row-${H}`]:Ot,[`${yt}-gap-col-${oe}`]:Kt},Qe,Je),Tn=L()(`${yt}-item`,(we=St==null?void 0:St.item)!==null&&we!==void 0?we:(pe=te==null?void 0:te.classNames)===null||pe===void 0?void 0:pe.item);let xe=0;const D=Rt.map((X,T)=>{var Re,mt;X!=null&&(xe=T);const _e=X&&X.key||`${Tn}-${T}`;return b.createElement(re,{className:Tn,key:_e,index:T,split:$t,style:(Re=Cn==null?void 0:Cn.item)!==null&&Re!==void 0?Re:(mt=te==null?void 0:te.styles)===null||mt===void 0?void 0:mt.item},X)}),k=b.useMemo(()=>({latestIndex:xe}),[xe]);if(Rt.length===0)return null;const G={};return At&&(G.flexWrap="wrap"),!Kt&&hn&&(G.columnGap=oe),!Ot&&vt&&(G.rowGap=H),si(b.createElement("div",Object.assign({ref:fe,className:ln,style:Object.assign(Object.assign(Object.assign({},G),te==null?void 0:te.style),xt)},Ye),b.createElement(de,{value:k},D)))});Pe.Compact=Q.ZP;var ze=Pe},15969:function(J,C,d){"use strict";d.d(C,{N:function(){return b}});const b=I=>({color:I.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${I.motionDurationSlow}`,"&:focus, &:hover":{color:I.colorLinkHover},"&:active":{color:I.colorLinkActive}})},78673:function(J,C,d){"use strict";d.d(C,{Z:function(){return dt}});var b=d(58617),I=d(92310),L=d.n(I),B=d(92413),V=d(400),Q=d(33606),M=d(37061),de=d(59301),he=d(18929),re=d(10228),De=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],ne=de.forwardRef(function(Xe,$t){var xt,At=Xe.prefixCls,St=At===void 0?"rc-switch":At,Cn=Xe.className,Ye=Xe.checked,oe=Xe.defaultChecked,H=Xe.disabled,Ot=Xe.loadingIcon,Kt=Xe.checkedChildren,vt=Xe.unCheckedChildren,hn=Xe.onClick,Rt=Xe.onChange,hi=Xe.onKeyDown,yt=(0,M.Z)(Xe,De),si=(0,he.Z)(!1,{value:Ye,defaultValue:oe}),qn=(0,Q.Z)(si,2),ln=qn[0],Tn=qn[1];function xe(X,T){var Re=ln;return H||(Re=X,Tn(Re),Rt==null||Rt(Re,T)),Re}function D(X){X.which===re.Z.LEFT?xe(!1,X):X.which===re.Z.RIGHT&&xe(!0,X),hi==null||hi(X)}function k(X){var T=xe(!ln,X);hn==null||hn(T,X)}var G=L()(St,Cn,(xt={},(0,V.Z)(xt,"".concat(St,"-checked"),ln),(0,V.Z)(xt,"".concat(St,"-disabled"),H),xt));return de.createElement("button",(0,B.Z)({},yt,{type:"button",role:"switch","aria-checked":ln,disabled:H,className:G,ref:$t,onKeyDown:D,onClick:k}),Ot,de.createElement("span",{className:"".concat(St,"-inner")},de.createElement("span",{className:"".concat(St,"-inner-checked")},Kt),de.createElement("span",{className:"".concat(St,"-inner-unchecked")},vt)))});ne.displayName="Switch";var it=ne,Ue=d(14088),Ie=d(36355),Pe=d(1684),ze=d(19716),Ee=d(64993),fe=d(17313),we=d(83116),pe=d(37613);const Ne=Xe=>{const{componentCls:$t,trackHeightSM:xt,trackPadding:At,trackMinWidthSM:St,innerMinMarginSM:Cn,innerMaxMarginSM:Ye,handleSizeSM:oe}=Xe,H=`${$t}-inner`;return{[$t]:{[`&${$t}-small`]:{minWidth:St,height:xt,lineHeight:`${xt}px`,[`${$t}-inner`]:{paddingInlineStart:Ye,paddingInlineEnd:Cn,[`${H}-checked`]:{marginInlineStart:`calc(-100% + ${oe+At*2}px - ${Ye*2}px)`,marginInlineEnd:`calc(100% - ${oe+At*2}px + ${Ye*2}px)`},[`${H}-unchecked`]:{marginTop:-xt,marginInlineStart:0,marginInlineEnd:0}},[`${$t}-handle`]:{width:oe,height:oe},[`${$t}-loading-icon`]:{top:(oe-Xe.switchLoadingIconSize)/2,fontSize:Xe.switchLoadingIconSize},[`&${$t}-checked`]:{[`${$t}-inner`]:{paddingInlineStart:Cn,paddingInlineEnd:Ye,[`${H}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${H}-unchecked`]:{marginInlineStart:`calc(100% - ${oe+At*2}px + ${Ye*2}px)`,marginInlineEnd:`calc(-100% + ${oe+At*2}px - ${Ye*2}px)`}},[`${$t}-handle`]:{insetInlineStart:`calc(100% - ${oe+At}px)`}},[`&:not(${$t}-disabled):active`]:{[`&:not(${$t}-checked) ${H}`]:{[`${H}-unchecked`]:{marginInlineStart:Xe.marginXXS/2,marginInlineEnd:-Xe.marginXXS/2}},[`&${$t}-checked ${H}`]:{[`${H}-checked`]:{marginInlineStart:-Xe.marginXXS/2,marginInlineEnd:Xe.marginXXS/2}}}}}}},te=Xe=>{const{componentCls:$t,handleSize:xt}=Xe;return{[$t]:{[`${$t}-loading-icon${Xe.iconCls}`]:{position:"relative",top:(xt-Xe.fontSize)/2,color:Xe.switchLoadingIconColor,verticalAlign:"top"},[`&${$t}-checked ${$t}-loading-icon`]:{color:Xe.switchColor}}}},Ae=Xe=>{const{componentCls:$t,motion:xt,trackPadding:At,handleBg:St,handleShadow:Cn,handleSize:Ye}=Xe,oe=`${$t}-handle`;return{[$t]:{[oe]:{position:"absolute",top:At,insetInlineStart:At,width:Ye,height:Ye,transition:`all ${Xe.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:St,borderRadius:Ye/2,boxShadow:Cn,transition:`all ${Xe.switchDuration} ease-in-out`,content:'""'}},[`&${$t}-checked ${oe}`]:{insetInlineStart:`calc(100% - ${Ye+At}px)`},[`&:not(${$t}-disabled):active`]:xt?{[`${oe}::before`]:{insetInlineEnd:Xe.switchHandleActiveInset,insetInlineStart:0},[`&${$t}-checked ${oe}::before`]:{insetInlineEnd:0,insetInlineStart:Xe.switchHandleActiveInset}}:{}}}},Te=Xe=>{const{componentCls:$t,trackHeight:xt,trackPadding:At,innerMinMargin:St,innerMaxMargin:Cn,handleSize:Ye}=Xe,oe=`${$t}-inner`;return{[$t]:{[oe]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:Cn,paddingInlineEnd:St,transition:`padding-inline-start ${Xe.switchDuration} ease-in-out, padding-inline-end ${Xe.switchDuration} ease-in-out`,[`${oe}-checked, ${oe}-unchecked`]:{display:"block",color:Xe.colorTextLightSolid,fontSize:Xe.fontSizeSM,transition:`margin-inline-start ${Xe.switchDuration} ease-in-out, margin-inline-end ${Xe.switchDuration} ease-in-out`,pointerEvents:"none"},[`${oe}-checked`]:{marginInlineStart:`calc(-100% + ${Ye+At*2}px - ${Cn*2}px)`,marginInlineEnd:`calc(100% - ${Ye+At*2}px + ${Cn*2}px)`},[`${oe}-unchecked`]:{marginTop:-xt,marginInlineStart:0,marginInlineEnd:0}},[`&${$t}-checked ${oe}`]:{paddingInlineStart:St,paddingInlineEnd:Cn,[`${oe}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${oe}-unchecked`]:{marginInlineStart:`calc(100% - ${Ye+At*2}px + ${Cn*2}px)`,marginInlineEnd:`calc(-100% + ${Ye+At*2}px - ${Cn*2}px)`}},[`&:not(${$t}-disabled):active`]:{[`&:not(${$t}-checked) ${oe}`]:{[`${oe}-unchecked`]:{marginInlineStart:At*2,marginInlineEnd:-At*2}},[`&${$t}-checked ${oe}`]:{[`${oe}-checked`]:{marginInlineStart:-At*2,marginInlineEnd:At*2}}}}}},$e=Xe=>{const{componentCls:$t,trackHeight:xt,trackMinWidth:At}=Xe;return{[$t]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fe.Wf)(Xe)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:At,height:xt,lineHeight:`${xt}px`,verticalAlign:"middle",background:Xe.colorTextQuaternary,border:"0",borderRadius:100,cursor:"pointer",transition:`all ${Xe.motionDurationMid}`,userSelect:"none",[`&:hover:not(${$t}-disabled)`]:{background:Xe.colorTextTertiary}}),(0,fe.Qy)(Xe)),{[`&${$t}-checked`]:{background:Xe.switchColor,[`&:hover:not(${$t}-disabled)`]:{background:Xe.colorPrimaryHover}},[`&${$t}-loading, &${$t}-disabled`]:{cursor:"not-allowed",opacity:Xe.switchDisabledOpacity,"*":{boxShadow:"none",cursor:"not-allowed"}},[`&${$t}-rtl`]:{direction:"rtl"}})}};var Qe=(0,we.Z)("Switch",Xe=>{const $t=(0,pe.TS)(Xe,{switchDuration:Xe.motionDurationMid,switchColor:Xe.colorPrimary,switchDisabledOpacity:Xe.opacityLoading,switchLoadingIconSize:Xe.fontSizeIcon*.75,switchLoadingIconColor:`rgba(0, 0, 0, ${Xe.opacityLoading})`,switchHandleActiveInset:"-30%"});return[$e($t),Te($t),Ae($t),te($t),Ne($t)]},Xe=>{const{fontSize:$t,lineHeight:xt,controlHeight:At,colorWhite:St}=Xe,Cn=$t*xt,Ye=At/2,oe=2,H=Cn-oe*2,Ot=Ye-oe*2;return{trackHeight:Cn,trackHeightSM:Ye,trackMinWidth:H*2+oe*4,trackMinWidthSM:Ot*2+oe*2,trackPadding:oe,handleBg:St,handleSize:H,handleSizeSM:Ot,handleShadow:`0 2px 4px 0 ${new Ee.C("#00230b").setAlpha(.2).toRgbString()}`,innerMinMargin:H/2,innerMaxMargin:H+oe+oe*2,innerMinMarginSM:Ot/2,innerMaxMarginSM:Ot+oe+oe*2}}),Je=function(Xe,$t){var xt={};for(var At in Xe)Object.prototype.hasOwnProperty.call(Xe,At)&&$t.indexOf(At)<0&&(xt[At]=Xe[At]);if(Xe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var St=0,At=Object.getOwnPropertySymbols(Xe);St<At.length;St++)$t.indexOf(At[St])<0&&Object.prototype.propertyIsEnumerable.call(Xe,At[St])&&(xt[At[St]]=Xe[At[St]]);return xt};const Ce=de.forwardRef((Xe,$t)=>{const{prefixCls:xt,size:At,disabled:St,loading:Cn,className:Ye,rootClassName:oe,style:H}=Xe,Ot=Je(Xe,["prefixCls","size","disabled","loading","className","rootClassName","style"]),{getPrefixCls:Kt,direction:vt,switch:hn}=de.useContext(Ie.E_),Rt=de.useContext(Pe.Z),hi=(St!=null?St:Rt)||Cn,yt=Kt("switch",xt),si=de.createElement("div",{className:`${yt}-handle`},Cn&&de.createElement(b.Z,{className:`${yt}-loading-icon`})),[qn,ln]=Qe(yt),Tn=(0,ze.Z)(At),xe=L()(hn==null?void 0:hn.className,{[`${yt}-small`]:Tn==="small",[`${yt}-loading`]:Cn,[`${yt}-rtl`]:vt==="rtl"},Ye,oe,ln),D=Object.assign(Object.assign({},hn==null?void 0:hn.style),H);return qn(de.createElement(Ue.Z,{component:"Switch"},de.createElement(it,Object.assign({},Ot,{prefixCls:yt,className:xe,style:D,disabled:hi,ref:$t,loadingIcon:si}))))});Ce.__ANT_SWITCH=!0;var dt=Ce},1710:function(J,C,d){"use strict";d.d(C,{default:function(){return cc}});var b={},I="rc-table-internal-hook",L=d(33606),B=d(6089),V=d(34280),Q=d(13697),M=d(59301),de=d(4676);function he(Se){var ke=M.createContext(void 0),st=function(Lt){var Tt=Lt.value,me=Lt.children,dn=M.useRef(Tt);dn.current=Tt;var an=M.useState(function(){return{getValue:function(){return dn.current},listeners:new Set}}),Pn=(0,L.Z)(an,1),Rn=Pn[0];return(0,V.Z)(function(){(0,de.unstable_batchedUpdates)(function(){Rn.listeners.forEach(function(Bn){Bn(Tt)})})},[Tt]),M.createElement(ke.Provider,{value:Rn},me)};return{Context:ke,Provider:st,defaultValue:Se}}function re(Se,ke){var st=(0,B.Z)(typeof ke=="function"?ke:function(Bn){if(ke===void 0)return Bn;if(!Array.isArray(ke))return Bn[ke];var E={};return ke.forEach(function(P){E[P]=Bn[P]}),E}),pt=M.useContext(Se==null?void 0:Se.Context),Lt=pt||{},Tt=Lt.listeners,me=Lt.getValue,dn=M.useRef();dn.current=st(pt?me():Se==null?void 0:Se.defaultValue);var an=M.useState({}),Pn=(0,L.Z)(an,2),Rn=Pn[1];return(0,V.Z)(function(){if(!pt)return;function Bn(E){var P=st(E);(0,Q.Z)(dn.current,P,!0)||Rn({})}return Tt.add(Bn),function(){Tt.delete(Bn)}},[pt]),dn.current}var De=d(92413),ne=d(8654);function it(){var Se=M.createContext(null);function ke(){return M.useContext(Se)}function st(Lt,Tt){var me=(0,ne.Yr)(Lt),dn=function(Pn,Rn){var Bn=me?{ref:Rn}:{},E=M.useRef(0),P=M.useRef(Pn),U=ke();return U!==null?M.createElement(Lt,(0,De.Z)({},Pn,Bn)):((!Tt||Tt(P.current,Pn))&&(E.current+=1),P.current=Pn,M.createElement(Se.Provider,{value:E.current},M.createElement(Lt,(0,De.Z)({},Pn,Bn))))};return me?M.forwardRef(dn):dn}function pt(Lt,Tt){var me=(0,ne.Yr)(Lt),dn=function(Pn,Rn){var Bn=me?{ref:Rn}:{};return ke(),M.createElement(Lt,(0,De.Z)({},Pn,Bn))};return me?M.memo(M.forwardRef(dn),Tt):M.memo(dn,Tt)}return{makeImmutable:st,responseImmutable:pt,useImmutableMark:ke}}var Ue=it(),Ie=Ue.makeImmutable,Pe=Ue.responseImmutable,ze=Ue.useImmutableMark,Ee=it(),fe=Ee.makeImmutable,we=Ee.responseImmutable,pe=Ee.useImmutableMark,Ne=he(),te=Ne;function Ae(Se,ke){var st=M.useRef(0);st.current+=1;var pt=M.useRef(Se),Lt=[];Object.keys(Se||{}).map(function(me){var dn;(Se==null?void 0:Se[me])!==((dn=pt.current)===null||dn===void 0?void 0:dn[me])&&Lt.push(me)}),pt.current=Se;var Tt=M.useRef([]);return Lt.length&&(Tt.current=Lt),M.useDebugValue(st.current),M.useDebugValue(Tt.current.join(", ")),ke&&console.log("".concat(ke,":"),st.current,Tt.current),st.current}var Te=null,$e=M.memo(function(){var Se=Ae();return M.createElement("h1",null,"Render Times: ",Se)});$e.displayName="RenderBlock";var Qe=d(39559),Je=d(33708),Ce=d(400),dt=d(92310),Xe=d.n(dt),$t=d(80547),xt=d(97938),At=d(48736),St=M.createContext({renderWithProps:!1}),Cn=St,Ye="RC_TABLE_KEY";function oe(Se){return Se==null?[]:Array.isArray(Se)?Se:[Se]}function H(Se){var ke=[],st={};return Se.forEach(function(pt){for(var Lt=pt||{},Tt=Lt.key,me=Lt.dataIndex,dn=Tt||oe(me).join("-")||Ye;st[dn];)dn="".concat(dn,"_next");st[dn]=!0,ke.push(dn)}),ke}function Ot(Se){return Se!=null}function Kt(Se){return Se&&(0,Qe.Z)(Se)==="object"&&!Array.isArray(Se)&&!M.isValidElement(Se)}function vt(Se,ke,st,pt,Lt,Tt){var me=M.useContext(Cn),dn=pe(),an=(0,$t.Z)(function(){if(Ot(pt))return[pt];var Pn=ke==null||ke===""?[]:Array.isArray(ke)?ke:[ke],Rn=(0,xt.Z)(Se,Pn),Bn=Rn,E=void 0;if(Lt){var P=Lt(Rn,Se,st);Kt(P)?(Bn=P.children,E=P.props,me.renderWithProps=!0):Bn=P}return[Bn,E]},[dn,Se,pt,ke,Lt,st],function(Pn,Rn){if(Tt){var Bn=(0,L.Z)(Pn,2),E=Bn[1],P=(0,L.Z)(Rn,2),U=P[1];return Tt(U,E)}return me.renderWithProps?!0:!(0,Q.Z)(Pn,Rn,!0)});return an}function hn(Se,ke,st,pt){var Lt=Se+ke-1;return Se<=pt&&Lt>=st}function Rt(Se,ke){return re(te,function(st){var pt=hn(Se,ke||1,st.hoverStartRow,st.hoverEndRow);return[pt,st.onHover]})}var hi=function(ke){var st=ke.ellipsis,pt=ke.rowType,Lt=ke.children,Tt,me=st===!0?{showTitle:!0}:st;return me&&(me.showTitle||pt==="header")&&(typeof Lt=="string"||typeof Lt=="number"?Tt=Lt.toString():M.isValidElement(Lt)&&typeof Lt.props.children=="string"&&(Tt=Lt.props.children)),Tt};function yt(Se){var ke,st,pt,Lt,Tt,me,dn,an,Pn=Se.component,Rn=Se.children,Bn=Se.ellipsis,E=Se.scope,P=Se.prefixCls,U=Se.className,q=Se.align,le=Se.record,ge=Se.render,Me=Se.dataIndex,et=Se.renderIndex,zt=Se.shouldCellUpdate,Ft=Se.index,gt=Se.rowType,en=Se.colSpan,un=Se.rowSpan,Ct=Se.fixLeft,ai=Se.fixRight,ci=Se.firstFixLeft,ti=Se.lastFixLeft,Xn=Se.firstFixRight,yi=Se.lastFixRight,gi=Se.appendNode,ji=Se.additionalProps,h=ji===void 0?{}:ji,m=Se.isSticky,W="".concat(P,"-cell"),Ve=re(te,["supportSticky","allColumnsFixedLeft"]),_t=Ve.supportSticky,Mn=Ve.allColumnsFixedLeft,li=vt(le,Me,et,Rn,ge,zt),ri=(0,L.Z)(li,2),Wn=ri[0],Bi=ri[1],cr={},Ur=typeof Ct=="number"&&_t,Co=typeof ai=="number"&&_t;Ur&&(cr.position="sticky",cr.left=Ct),Co&&(cr.position="sticky",cr.right=ai);var yr=(ke=(st=(pt=Bi==null?void 0:Bi.colSpan)!==null&&pt!==void 0?pt:h.colSpan)!==null&&st!==void 0?st:en)!==null&&ke!==void 0?ke:1,fr=(Lt=(Tt=(me=Bi==null?void 0:Bi.rowSpan)!==null&&me!==void 0?me:h.rowSpan)!==null&&Tt!==void 0?Tt:un)!==null&&Lt!==void 0?Lt:1,Wt=Rt(Ft,fr),rr=(0,L.Z)(Wt,2),qr=rr[0],Ut=rr[1],Cr=function(ms){var $s;le&&Ut(Ft,Ft+fr-1),h==null||($s=h.onMouseEnter)===null||$s===void 0||$s.call(h,ms)},eo=function(ms){var $s;le&&Ut(-1,-1),h==null||($s=h.onMouseLeave)===null||$s===void 0||$s.call(h,ms)};if(yr===0||fr===0)return null;var mo=(dn=h.title)!==null&&dn!==void 0?dn:hi({rowType:gt,ellipsis:Bn,children:Wn}),Vs=Xe()(W,U,(an={},(0,Ce.Z)(an,"".concat(W,"-fix-left"),Ur&&_t),(0,Ce.Z)(an,"".concat(W,"-fix-left-first"),ci&&_t),(0,Ce.Z)(an,"".concat(W,"-fix-left-last"),ti&&_t),(0,Ce.Z)(an,"".concat(W,"-fix-left-all"),ti&&Mn&&_t),(0,Ce.Z)(an,"".concat(W,"-fix-right"),Co&&_t),(0,Ce.Z)(an,"".concat(W,"-fix-right-first"),Xn&&_t),(0,Ce.Z)(an,"".concat(W,"-fix-right-last"),yi&&_t),(0,Ce.Z)(an,"".concat(W,"-ellipsis"),Bn),(0,Ce.Z)(an,"".concat(W,"-with-append"),gi),(0,Ce.Z)(an,"".concat(W,"-fix-sticky"),(Ur||Co)&&m&&_t),(0,Ce.Z)(an,"".concat(W,"-row-hover"),!Bi&&qr),an),h.className,Bi==null?void 0:Bi.className),Lo={};q&&(Lo.textAlign=q);var Ks=(0,Je.Z)((0,Je.Z)((0,Je.Z)((0,Je.Z)({},cr),h.style),Lo),Bi==null?void 0:Bi.style),co=Wn;return(0,Qe.Z)(co)==="object"&&!Array.isArray(co)&&!M.isValidElement(co)&&(co=null),Bn&&(ti||Xn)&&(co=M.createElement("span",{className:"".concat(W,"-content")},co)),M.createElement(Pn,(0,De.Z)({},Bi,h,{className:Vs,style:Ks,title:mo,scope:E,onMouseEnter:Cr,onMouseLeave:eo,colSpan:yr!==1?yr:null,rowSpan:fr!==1?fr:null}),gi,co)}var si=M.memo(yt);function qn(Se,ke,st,pt,Lt,Tt){var me=st[Se]||{},dn=st[ke]||{},an,Pn;me.fixed==="left"?an=pt.left[Lt==="rtl"?ke:Se]:dn.fixed==="right"&&(Pn=pt.right[Lt==="rtl"?Se:ke]);var Rn=!1,Bn=!1,E=!1,P=!1,U=st[ke+1],q=st[Se-1],le=!(Tt!=null&&Tt.children);if(Lt==="rtl"){if(an!==void 0){var ge=q&&q.fixed==="left";P=!ge&&le}else if(Pn!==void 0){var Me=U&&U.fixed==="right";E=!Me&&le}}else if(an!==void 0){var et=U&&U.fixed==="left";Rn=!et&&le}else if(Pn!==void 0){var zt=q&&q.fixed==="right";Bn=!zt&&le}return{fixLeft:an,fixRight:Pn,lastFixLeft:Rn,firstFixRight:Bn,lastFixRight:E,firstFixLeft:P,isSticky:pt.isSticky}}var ln=M.createContext({}),Tn=ln;function xe(Se){var ke=Se.className,st=Se.index,pt=Se.children,Lt=Se.colSpan,Tt=Lt===void 0?1:Lt,me=Se.rowSpan,dn=Se.align,an=re(te,["prefixCls","direction"]),Pn=an.prefixCls,Rn=an.direction,Bn=M.useContext(Tn),E=Bn.scrollColumnIndex,P=Bn.stickyOffsets,U=Bn.flattenColumns,q=Bn.columns,le=st+Tt-1,ge=le+1===E?Tt+1:Tt,Me=qn(st,st+ge-1,U,P,Rn,q==null?void 0:q[st]);return M.createElement(si,(0,De.Z)({className:ke,index:st,component:"td",prefixCls:Pn,record:null,dataIndex:null,align:dn,colSpan:ge,rowSpan:me,render:function(){return pt}},Me))}var D=d(37061),k=["children"];function G(Se){var ke=Se.children,st=(0,D.Z)(Se,k);return M.createElement("tr",st,ke)}function X(Se){var ke=Se.children;return ke}X.Row=G,X.Cell=xe;var T=X;function Re(Se){var ke=Se.children,st=Se.stickyOffsets,pt=Se.flattenColumns,Lt=Se.columns,Tt=re(te,"prefixCls"),me=pt.length-1,dn=pt[me],an=M.useMemo(function(){return{stickyOffsets:st,flattenColumns:pt,scrollColumnIndex:dn!=null&&dn.scrollbar?me:null,columns:Lt}},[dn,pt,me,st,Lt]);return M.createElement(Tn.Provider,{value:an},M.createElement("tfoot",{className:"".concat(Tt,"-summary")},ke))}var mt=we(Re),_e=T,Le=d(70425),ct=d(29301),ot=d(29194),Ze=d(24514),Et=d(75152),Gt=d(26112);function Vt(Se,ke,st,pt,Lt,Tt,me){Se.push({record:ke,indent:st,index:me});var dn=Tt(ke),an=Lt==null?void 0:Lt.has(dn);if(ke&&Array.isArray(ke[pt])&&an)for(var Pn=0;Pn<ke[pt].length;Pn+=1)Vt(Se,ke[pt][Pn],st+1,pt,Lt,Tt,Pn)}function Pt(Se,ke,st,pt){var Lt=M.useMemo(function(){if(st!=null&&st.size){for(var Tt=[],me=0;me<(Se==null?void 0:Se.length);me+=1){var dn=Se[me];Vt(Tt,dn,0,ke,st,pt,me)}return Tt}return Se==null?void 0:Se.map(function(an,Pn){return{record:an,indent:0,index:Pn}})},[Se,ke,st,pt]);return Lt}function nn(Se){var ke=Se.prefixCls,st=Se.children,pt=Se.component,Lt=Se.cellComponent,Tt=Se.className,me=Se.expanded,dn=Se.colSpan,an=Se.isEmpty,Pn=re(te,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Rn=Pn.scrollbarSize,Bn=Pn.fixHeader,E=Pn.fixColumn,P=Pn.componentWidth,U=Pn.horizonScroll,q=st;return(an?U&&P:E)&&(q=M.createElement("div",{style:{width:P-(Bn?Rn:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(ke,"-expanded-row-fixed")},q)),M.createElement(pt,{className:Tt,style:{display:me?null:"none"}},M.createElement(si,{component:Lt,prefixCls:ke,colSpan:dn},q))}var vn=nn;function We(Se,ke,st,pt){var Lt=re(te,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),Tt=Lt.flattenColumns,me=Lt.expandableType,dn=Lt.expandedKeys,an=Lt.childrenColumnName,Pn=Lt.onTriggerExpand,Rn=Lt.rowExpandable,Bn=Lt.onRow,E=Lt.expandRowByClick,P=Lt.rowClassName,U=me==="nest",q=me==="row"&&(!Rn||Rn(Se)),le=q||U,ge=dn&&dn.has(ke),Me=an&&Se&&Se[an],et=(0,Le.useEvent)(Pn),zt=Bn==null?void 0:Bn(Se,st),Ft=zt==null?void 0:zt.onClick,gt=function(ai){E&&le&&Pn(Se,ai);for(var ci=arguments.length,ti=new Array(ci>1?ci-1:0),Xn=1;Xn<ci;Xn++)ti[Xn-1]=arguments[Xn];Ft==null||Ft.apply(void 0,[ai].concat(ti))},en;typeof P=="string"?en=P:typeof P=="function"&&(en=P(Se,st,pt));var un=H(Tt);return(0,Je.Z)((0,Je.Z)({},Lt),{},{columnsKey:un,nestExpandable:U,expanded:ge,hasNestChildren:Me,record:Se,onTriggerExpand:et,rowSupportExpand:q,expandable:le,rowProps:(0,Je.Z)((0,Je.Z)({},zt),{},{className:Xe()(en,zt==null?void 0:zt.className),onClick:gt})})}function Dt(Se,ke,st,pt,Lt){var Tt=Se.record,me=Se.prefixCls,dn=Se.columnsKey,an=Se.fixedInfoList,Pn=Se.expandIconColumnIndex,Rn=Se.nestExpandable,Bn=Se.indentSize,E=Se.expandIcon,P=Se.expanded,U=Se.hasNestChildren,q=Se.onTriggerExpand,le=dn[st],ge=an[st],Me;st===(Pn||0)&&Rn&&(Me=M.createElement(M.Fragment,null,M.createElement("span",{style:{paddingLeft:"".concat(Bn*pt,"px")},className:"".concat(me,"-row-indent indent-level-").concat(pt)}),E({prefixCls:me,expanded:P,expandable:U,record:Tt,onExpand:q})));var et;return ke.onCell&&(et=ke.onCell(Tt,Lt)),{key:le,fixedInfo:ge,appendCellNode:Me,additionalCellProps:et||{}}}function Qt(Se){var ke=Se.className,st=Se.style,pt=Se.record,Lt=Se.index,Tt=Se.renderIndex,me=Se.rowKey,dn=Se.indent,an=dn===void 0?0:dn,Pn=Se.rowComponent,Rn=Se.cellComponent,Bn=Se.scopeCellComponent,E=We(pt,me,Lt,an),P=E.prefixCls,U=E.flattenColumns,q=E.expandedRowClassName,le=E.expandedRowRender,ge=E.rowProps,Me=E.expanded,et=E.rowSupportExpand,zt=M.useState(!1),Ft=(0,L.Z)(zt,2),gt=Ft[0],en=Ft[1];M.useEffect(function(){Me&&en(!0)},[Me]);var un=M.createElement(Pn,(0,De.Z)({},ge,{"data-row-key":me,className:Xe()(ke,"".concat(P,"-row"),"".concat(P,"-row-level-").concat(an),ge==null?void 0:ge.className),style:(0,Je.Z)((0,Je.Z)({},st),ge==null?void 0:ge.style)}),U.map(function(ti,Xn){var yi=ti.render,gi=ti.dataIndex,ji=ti.className,h=Dt(E,ti,Xn,an,Lt),m=h.key,W=h.fixedInfo,Ve=h.appendCellNode,_t=h.additionalCellProps;return M.createElement(si,(0,De.Z)({className:ji,ellipsis:ti.ellipsis,align:ti.align,scope:ti.rowScope,component:ti.rowScope?Bn:Rn,prefixCls:P,key:m,record:pt,index:Lt,renderIndex:Tt,dataIndex:gi,render:yi,shouldCellUpdate:ti.shouldCellUpdate},W,{appendNode:Ve,additionalProps:_t}))})),Ct;if(et&&(gt||Me)){var ai=le(pt,Lt,an+1,Me),ci=q&&q(pt,Lt,an);Ct=M.createElement(vn,{expanded:Me,className:Xe()("".concat(P,"-expanded-row"),"".concat(P,"-expanded-row-level-").concat(an+1),ci),prefixCls:P,component:Pn,cellComponent:Rn,colSpan:U.length,isEmpty:!1},ai)}return M.createElement(M.Fragment,null,un,Ct)}Qt.displayName="BodyRow";var bn=we(Qt);function $n(Se){var ke=Se.columnKey,st=Se.onColumnResize,pt=M.useRef();return M.useEffect(function(){pt.current&&st(ke,pt.current.offsetWidth)},[]),M.createElement(ct.Z,{data:ke},M.createElement("td",{ref:pt,style:{padding:0,border:0,height:0}},M.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Un(Se){var ke=Se.prefixCls,st=Se.columnsKey,pt=Se.onColumnResize;return M.createElement("tr",{"aria-hidden":"true",className:"".concat(ke,"-measure-row"),style:{height:0,fontSize:0}},M.createElement(ct.Z.Collection,{onBatchResize:function(Tt){Tt.forEach(function(me){var dn=me.data,an=me.size;pt(dn,an.offsetWidth)})}},st.map(function(Lt){return M.createElement($n,{key:Lt,columnKey:Lt,onColumnResize:pt})})))}function kt(Se){var ke=Se.data,st=Se.measureColumnWidth,pt=re(te,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Lt=pt.prefixCls,Tt=pt.getComponent,me=pt.onColumnResize,dn=pt.flattenColumns,an=pt.getRowKey,Pn=pt.expandedKeys,Rn=pt.childrenColumnName,Bn=pt.emptyNode,E=Pt(ke,Rn,Pn,an),P=M.useRef({renderWithProps:!1}),U=Tt(["body","wrapper"],"tbody"),q=Tt(["body","row"],"tr"),le=Tt(["body","cell"],"td"),ge=Tt(["body","cell"],"th"),Me;ke.length?Me=E.map(function(zt,Ft){var gt=zt.record,en=zt.indent,un=zt.index,Ct=an(gt,Ft);return M.createElement(bn,{key:Ct,rowKey:Ct,record:gt,index:Ft,renderIndex:un,rowComponent:q,cellComponent:le,scopeCellComponent:ge,getRowKey:an,indent:en})}):Me=M.createElement(vn,{expanded:!0,className:"".concat(Lt,"-placeholder"),prefixCls:Lt,component:q,cellComponent:le,colSpan:dn.length,isEmpty:!0},Bn);var et=H(dn);return M.createElement(Cn.Provider,{value:P.current},M.createElement(U,{className:"".concat(Lt,"-tbody")},st&&M.createElement(Un,{prefixCls:Lt,columnsKey:et,onColumnResize:me}),Me))}kt.displayName="Body";var Hn=we(kt),Jn=["expandable"],tt="RC_TABLE_INTERNAL_COL_DEFINE";function j(Se){var ke=Se.expandable,st=(0,D.Z)(Se,Jn),pt;return"expandable"in Se?pt=(0,Je.Z)((0,Je.Z)({},st),ke):pt=st,pt.showExpandColumn===!1&&(pt.expandIconColumnIndex=-1),pt}var Oi=["columnType"];function tr(Se){for(var ke=Se.colWidths,st=Se.columns,pt=Se.columCount,Lt=[],Tt=pt||st.length,me=!1,dn=Tt-1;dn>=0;dn-=1){var an=ke[dn],Pn=st&&st[dn],Rn=Pn&&Pn[tt];if(an||Rn||me){var Bn=Rn||{},E=Bn.columnType,P=(0,D.Z)(Bn,Oi);Lt.unshift(M.createElement("col",(0,De.Z)({key:dn,style:{width:an}},P))),me=!0}}return M.createElement("colgroup",null,Lt)}var Gn=tr,Ti=d(26407),Er=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Zi(Se,ke){return(0,M.useMemo)(function(){for(var st=[],pt=0;pt<ke;pt+=1){var Lt=Se[pt];if(Lt!==void 0)st[pt]=Lt;else return null}return st},[Se.join("_"),ke])}var _=M.forwardRef(function(Se,ke){var st=Se.className,pt=Se.noData,Lt=Se.columns,Tt=Se.flattenColumns,me=Se.colWidths,dn=Se.columCount,an=Se.stickyOffsets,Pn=Se.direction,Rn=Se.fixHeader,Bn=Se.stickyTopOffset,E=Se.stickyBottomOffset,P=Se.stickyClassName,U=Se.onScroll,q=Se.maxContentScroll,le=Se.children,ge=(0,D.Z)(Se,Er),Me=re(te,["prefixCls","scrollbarSize","isSticky"]),et=Me.prefixCls,zt=Me.scrollbarSize,Ft=Me.isSticky,gt=Ft&&!Rn?0:zt,en=M.useRef(null),un=M.useCallback(function(ji){(0,ne.mH)(ke,ji),(0,ne.mH)(en,ji)},[]);M.useEffect(function(){var ji;function h(m){var W=m,Ve=W.currentTarget,_t=W.deltaX;_t&&(U({currentTarget:Ve,scrollLeft:Ve.scrollLeft+_t}),m.preventDefault())}return(ji=en.current)===null||ji===void 0||ji.addEventListener("wheel",h),function(){var m;(m=en.current)===null||m===void 0||m.removeEventListener("wheel",h)}},[]);var Ct=M.useMemo(function(){return Tt.every(function(ji){return ji.width})},[Tt]),ai=Tt[Tt.length-1],ci={fixed:ai?ai.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(et,"-cell-scrollbar")}}},ti=(0,M.useMemo)(function(){return gt?[].concat((0,Ti.Z)(Lt),[ci]):Lt},[gt,Lt]),Xn=(0,M.useMemo)(function(){return gt?[].concat((0,Ti.Z)(Tt),[ci]):Tt},[gt,Tt]),yi=(0,M.useMemo)(function(){var ji=an.right,h=an.left;return(0,Je.Z)((0,Je.Z)({},an),{},{left:Pn==="rtl"?[].concat((0,Ti.Z)(h.map(function(m){return m+gt})),[0]):h,right:Pn==="rtl"?ji:[].concat((0,Ti.Z)(ji.map(function(m){return m+gt})),[0]),isSticky:Ft})},[gt,an,Ft]),gi=Zi(me,dn);return M.createElement("div",{style:(0,Je.Z)({overflow:"hidden"},Ft?{top:Bn,bottom:E}:{}),ref:un,className:Xe()(st,(0,Ce.Z)({},P,!!P))},M.createElement("table",{style:{tableLayout:"fixed",visibility:pt||gi?null:"hidden"}},(!pt||!q||Ct)&&M.createElement(Gn,{colWidths:gi?[].concat((0,Ti.Z)(gi),[gt]):[],columCount:dn+1,columns:Xn}),le((0,Je.Z)((0,Je.Z)({},ge),{},{stickyOffsets:yi,columns:ti,flattenColumns:Xn}))))});_.displayName="FixedHolder";var ht=M.memo(_);function _i(Se){var ke=Se.cells,st=Se.stickyOffsets,pt=Se.flattenColumns,Lt=Se.rowComponent,Tt=Se.cellComponent,me=Se.tdCellComponent,dn=Se.onHeaderRow,an=Se.index,Pn=re(te,["prefixCls","direction"]),Rn=Pn.prefixCls,Bn=Pn.direction,E;dn&&(E=dn(ke.map(function(U){return U.column}),an));var P=H(ke.map(function(U){return U.column}));return M.createElement(Lt,E,ke.map(function(U,q){var le=U.column,ge=qn(U.colStart,U.colEnd,pt,st,Bn,le),Me;return le&&le.onHeaderCell&&(Me=U.column.onHeaderCell(le)),M.createElement(si,(0,De.Z)({},U,{scope:le.title?U.colSpan>1?"colgroup":"col":null,ellipsis:le.ellipsis,align:le.align,component:le.title?Tt:me,prefixCls:Rn,key:P[q]},ge,{additionalProps:Me,rowType:"header"}))}))}_i.displayName="HeaderRow";var Rr=_i;function Ar(Se){var ke=[];function st(me,dn){var an=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;ke[an]=ke[an]||[];var Pn=dn,Rn=me.filter(Boolean).map(function(Bn){var E={key:Bn.key,className:Bn.className||"",children:Bn.title,column:Bn,colStart:Pn},P=1,U=Bn.children;return U&&U.length>0&&(P=st(U,Pn,an+1).reduce(function(q,le){return q+le},0),E.hasSubColumns=!0),"colSpan"in Bn&&(P=Bn.colSpan),"rowSpan"in Bn&&(E.rowSpan=Bn.rowSpan),E.colSpan=P,E.colEnd=E.colStart+P-1,ke[an].push(E),Pn+=P,P});return Rn}st(Se,0);for(var pt=ke.length,Lt=function(dn){ke[dn].forEach(function(an){!("rowSpan"in an)&&!an.hasSubColumns&&(an.rowSpan=pt-dn)})},Tt=0;Tt<pt;Tt+=1)Lt(Tt);return ke}function Yr(Se){var ke=Se.stickyOffsets,st=Se.columns,pt=Se.flattenColumns,Lt=Se.onHeaderRow,Tt=re(te,["prefixCls","getComponent"]),me=Tt.prefixCls,dn=Tt.getComponent,an=M.useMemo(function(){return Ar(st)},[st]),Pn=dn(["header","wrapper"],"thead"),Rn=dn(["header","row"],"tr"),Bn=dn(["header","cell"],"th"),E=dn(["header","cell"],"td");return M.createElement(Pn,{className:"".concat(me,"-thead")},an.map(function(P,U){var q=M.createElement(Rr,{key:U,flattenColumns:pt,cells:P,stickyOffsets:ke,rowComponent:Rn,cellComponent:Bn,tdCellComponent:E,onHeaderRow:Lt,index:U});return q}))}var Dr=we(Yr),Hr=d(11592);function dr(Se){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof ke=="number"?ke:ke.endsWith("%")?Se*parseFloat(ke)/100:null}function Vi(Se,ke){return M.useMemo(function(){if(ke&&ke>0){var st=0,pt=0;Se.forEach(function(Pn){var Rn=dr(ke,Pn.width);Rn?st+=Rn:pt+=1});var Lt=ke-st,Tt=pt,me=Lt/pt,dn=0,an=Se.map(function(Pn){var Rn=(0,Je.Z)({},Pn),Bn=dr(ke,Rn.width);if(Bn)Rn.width=Bn;else{var E=Math.floor(me);Rn.width=Tt===1?Lt:E,Lt-=E,Tt-=1}return dn+=Rn.width,Rn});return[an,dn]}return[Se,ke]},[Se,ke])}var fi=["children"],at=["fixed"];function Fn(Se){return(0,Hr.Z)(Se).filter(function(ke){return M.isValidElement(ke)}).map(function(ke){var st=ke.key,pt=ke.props,Lt=pt.children,Tt=(0,D.Z)(pt,fi),me=(0,Je.Z)({key:st},Tt);return Lt&&(me.children=Fn(Lt)),me})}function Qn(Se){var ke=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return Se.filter(function(st){return st&&(0,Qe.Z)(st)==="object"}).reduce(function(st,pt,Lt){var Tt=pt.fixed,me=Tt===!0?"left":Tt,dn="".concat(ke,"-").concat(Lt),an=pt.children;return an&&an.length>0?[].concat((0,Ti.Z)(st),(0,Ti.Z)(Qn(an,dn).map(function(Pn){return(0,Je.Z)({fixed:me},Pn)}))):[].concat((0,Ti.Z)(st),[(0,Je.Z)((0,Je.Z)({key:dn},pt),{},{fixed:me})])},[])}function ft(Se){for(var ke=!0,st=0;st<Se.length;st+=1){var pt=Se[st];if(ke&&pt.fixed!=="left")ke=!1;else if(!ke&&pt.fixed==="left"){warning(!1,"Index ".concat(st-1," of `columns` missing `fixed='left'` prop."));break}}for(var Lt=!0,Tt=Se.length-1;Tt>=0;Tt-=1){var me=Se[Tt];if(Lt&&me.fixed!=="right")Lt=!1;else if(!Lt&&me.fixed==="right"){warning(!1,"Index ".concat(Tt+1," of `columns` missing `fixed='right'` prop."));break}}}function je(Se){return Se.map(function(ke){var st=ke.fixed,pt=(0,D.Z)(ke,at),Lt=st;return st==="left"?Lt="right":st==="right"&&(Lt="left"),(0,Je.Z)({fixed:Lt},pt)})}function sn(Se,ke){var st=Se.prefixCls,pt=Se.columns,Lt=Se.children,Tt=Se.expandable,me=Se.expandedKeys,dn=Se.columnTitle,an=Se.getRowKey,Pn=Se.onTriggerExpand,Rn=Se.expandIcon,Bn=Se.rowExpandable,E=Se.expandIconColumnIndex,P=Se.direction,U=Se.expandRowByClick,q=Se.columnWidth,le=Se.fixed,ge=Se.scrollWidth,Me=M.useMemo(function(){return pt||Fn(Lt)},[pt,Lt]),et=M.useMemo(function(){if(Tt){var ai,ci=Me.slice();if(!ci.includes(b)){var ti=E||0;ti>=0&&ci.splice(ti,0,b)}var Xn=ci.indexOf(b);ci=ci.filter(function(h,m){return h!==b||m===Xn});var yi=Me[Xn],gi;(le==="left"||le)&&!E?gi="left":(le==="right"||le)&&E===Me.length?gi="right":gi=yi?yi.fixed:null;var ji=(ai={},(0,Ce.Z)(ai,tt,{className:"".concat(st,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,Ce.Z)(ai,"title",dn),(0,Ce.Z)(ai,"fixed",gi),(0,Ce.Z)(ai,"className","".concat(st,"-row-expand-icon-cell")),(0,Ce.Z)(ai,"width",q),(0,Ce.Z)(ai,"render",function(m,W,Ve){var _t=an(W,Ve),Mn=me.has(_t),li=Bn?Bn(W):!0,ri=Rn({prefixCls:st,expanded:Mn,expandable:li,record:W,onExpand:Pn});return U?M.createElement("span",{onClick:function(Bi){return Bi.stopPropagation()}},ri):ri}),ai);return ci.map(function(h){return h===b?ji:h})}return Me.filter(function(h){return h!==b})},[Tt,Me,an,me,Rn,P]),zt=M.useMemo(function(){var ai=et;return ke&&(ai=ke(ai)),ai.length||(ai=[{render:function(){return null}}]),ai},[ke,et,P]),Ft=M.useMemo(function(){return P==="rtl"?je(Qn(zt)):Qn(zt)},[zt,P,ge]),gt=Vi(Ft,ge),en=(0,L.Z)(gt,2),un=en[0],Ct=en[1];return[zt,un,Ct]}var In=sn;function ni(Se){var ke,st=Se.prefixCls,pt=Se.record,Lt=Se.onExpand,Tt=Se.expanded,me=Se.expandable,dn="".concat(st,"-row-expand-icon");if(!me)return M.createElement("span",{className:Xe()(dn,"".concat(st,"-row-spaced"))});var an=function(Rn){Lt(pt,Rn),Rn.stopPropagation()};return M.createElement("span",{className:Xe()(dn,(ke={},(0,Ce.Z)(ke,"".concat(st,"-row-expanded"),Tt),(0,Ce.Z)(ke,"".concat(st,"-row-collapsed"),!Tt),ke)),onClick:an})}function Kn(Se,ke,st){var pt=[];function Lt(Tt){(Tt||[]).forEach(function(me,dn){pt.push(ke(me,dn)),Lt(me[st])})}return Lt(Se),pt}function ut(Se,ke,st){var pt=j(Se),Lt=pt.expandIcon,Tt=pt.expandedRowKeys,me=pt.defaultExpandedRowKeys,dn=pt.defaultExpandAllRows,an=pt.expandedRowRender,Pn=pt.onExpand,Rn=pt.onExpandedRowsChange,Bn=pt.childrenColumnName,E=Lt||ni,P=Bn||"children",U=M.useMemo(function(){return an?"row":Se.expandable&&Se.internalHooks===I&&Se.expandable.__PARENT_RENDER_ICON__||ke.some(function(Ft){return Ft&&(0,Qe.Z)(Ft)==="object"&&Ft[P]})?"nest":!1},[!!an,ke]),q=M.useState(function(){return me||(dn?Kn(ke,st,P):[])}),le=(0,L.Z)(q,2),ge=le[0],Me=le[1],et=M.useMemo(function(){return new Set(Tt||ge||[])},[Tt,ge]),zt=M.useCallback(function(Ft){var gt=st(Ft,ke.indexOf(Ft)),en,un=et.has(gt);un?(et.delete(gt),en=(0,Ti.Z)(et)):en=[].concat((0,Ti.Z)(et),[gt]),Me(en),Pn&&Pn(!un,Ft),Rn&&Rn(en)},[st,et,ke,Pn,Rn]);return[pt,U,et,E,P,zt]}function yn(Se,ke,st,pt){var Lt=Se.map(function(Tt,me){return qn(me,me,Se,ke,st,pt==null?void 0:pt[me])});return(0,$t.Z)(function(){return Lt},[Lt],function(Tt,me){return!(0,Q.Z)(Tt,me)})}function rn(Se){var ke=(0,M.useRef)(Se),st=(0,M.useState)({}),pt=(0,L.Z)(st,2),Lt=pt[1],Tt=(0,M.useRef)(null),me=(0,M.useRef)([]);function dn(an){me.current.push(an);var Pn=Promise.resolve();Tt.current=Pn,Pn.then(function(){if(Tt.current===Pn){var Rn=me.current,Bn=ke.current;me.current=[],Rn.forEach(function(E){ke.current=E(ke.current)}),Tt.current=null,Bn!==ke.current&&Lt({})}})}return(0,M.useEffect)(function(){return function(){Tt.current=null}},[]),[ke.current,dn]}function Si(Se){var ke=(0,M.useRef)(Se||null),st=(0,M.useRef)();function pt(){window.clearTimeout(st.current)}function Lt(me){ke.current=me,pt(),st.current=window.setTimeout(function(){ke.current=null,st.current=void 0},100)}function Tt(){return ke.current}return(0,M.useEffect)(function(){return pt},[]),[Lt,Tt]}function Zt(){var Se=M.useState(-1),ke=(0,L.Z)(Se,2),st=ke[0],pt=ke[1],Lt=M.useState(-1),Tt=(0,L.Z)(Lt,2),me=Tt[0],dn=Tt[1],an=M.useCallback(function(Pn,Rn){pt(Pn),dn(Rn)},[]);return[st,me,an]}var _n=d(47273),Mt=(0,_n.Z)()?window:null;function Jt(Se,ke){var st=(0,Qe.Z)(Se)==="object"?Se:{},pt=st.offsetHeader,Lt=pt===void 0?0:pt,Tt=st.offsetSummary,me=Tt===void 0?0:Tt,dn=st.offsetScroll,an=dn===void 0?0:dn,Pn=st.getContainer,Rn=Pn===void 0?function(){return Mt}:Pn,Bn=Rn()||Mt;return M.useMemo(function(){var E=!!Se;return{isSticky:E,stickyClassName:E?"".concat(ke,"-sticky-holder"):"",offsetHeader:Lt,offsetSummary:me,offsetScroll:an,container:Bn}},[an,Lt,me,ke,Bn])}function on(Se,ke,st){var pt=(0,M.useMemo)(function(){for(var Lt=[],Tt=[],me=0,dn=0,an=0;an<ke;an+=1)if(st==="rtl"){Tt[an]=dn,dn+=Se[an]||0;var Pn=ke-an-1;Lt[Pn]=me,me+=Se[Pn]||0}else{Lt[an]=me,me+=Se[an]||0;var Rn=ke-an-1;Tt[Rn]=dn,dn+=Se[Rn]||0}return{left:Lt,right:Tt}},[Se,ke,st]);return pt}var jt=on;function gn(Se){var ke=Se.className,st=Se.children;return M.createElement("div",{className:ke},st)}var fn=gn,En=d(8224),Ln=d(55468),Ai=function(ke,st){var pt,Lt,Tt=ke.scrollBodyRef,me=ke.onScroll,dn=ke.offsetScroll,an=ke.container,Pn=re(te,"prefixCls"),Rn=((pt=Tt.current)===null||pt===void 0?void 0:pt.scrollWidth)||0,Bn=((Lt=Tt.current)===null||Lt===void 0?void 0:Lt.clientWidth)||0,E=Rn&&Bn*(Bn/Rn),P=M.useRef(),U=rn({scrollLeft:0,isHiddenScrollBar:!1}),q=(0,L.Z)(U,2),le=q[0],ge=q[1],Me=M.useRef({delta:0,x:0}),et=M.useState(!1),zt=(0,L.Z)(et,2),Ft=zt[0],gt=zt[1],en=function(){gt(!1)},un=function(Xn){Xn.persist(),Me.current.delta=Xn.pageX-le.scrollLeft,Me.current.x=0,gt(!0),Xn.preventDefault()},Ct=function(Xn){var yi,gi=Xn||((yi=window)===null||yi===void 0?void 0:yi.event),ji=gi.buttons;if(!Ft||ji===0){Ft&>(!1);return}var h=Me.current.x+Xn.pageX-Me.current.x-Me.current.delta;h<=0&&(h=0),h+E>=Bn&&(h=Bn-E),me({scrollLeft:h/Bn*(Rn+2)}),Me.current.x=Xn.pageX},ai=function(){if(Tt.current){var Xn=(0,Ln.os)(Tt.current).top,yi=Xn+Tt.current.offsetHeight,gi=an===window?document.documentElement.scrollTop+window.innerHeight:(0,Ln.os)(an).top+an.clientHeight;yi-(0,Et.Z)()<=gi||Xn>=gi-dn?ge(function(ji){return(0,Je.Z)((0,Je.Z)({},ji),{},{isHiddenScrollBar:!0})}):ge(function(ji){return(0,Je.Z)((0,Je.Z)({},ji),{},{isHiddenScrollBar:!1})})}},ci=function(Xn){ge(function(yi){return(0,Je.Z)((0,Je.Z)({},yi),{},{scrollLeft:Xn/Rn*Bn||0})})};return M.useImperativeHandle(st,function(){return{setScrollLeft:ci}}),M.useEffect(function(){var ti=(0,En.Z)(document.body,"mouseup",en,!1),Xn=(0,En.Z)(document.body,"mousemove",Ct,!1);return ai(),function(){ti.remove(),Xn.remove()}},[E,Ft]),M.useEffect(function(){var ti=(0,En.Z)(an,"scroll",ai,!1),Xn=(0,En.Z)(window,"resize",ai,!1);return function(){ti.remove(),Xn.remove()}},[an]),M.useEffect(function(){le.isHiddenScrollBar||ge(function(ti){var Xn=Tt.current;return Xn?(0,Je.Z)((0,Je.Z)({},ti),{},{scrollLeft:Xn.scrollLeft/Xn.scrollWidth*Xn.clientWidth}):ti})},[le.isHiddenScrollBar]),Rn<=Bn||!E||le.isHiddenScrollBar?null:M.createElement("div",{style:{height:(0,Et.Z)(),width:Bn,bottom:dn},className:"".concat(Pn,"-sticky-scroll")},M.createElement("div",{onMouseDown:un,ref:P,className:Xe()("".concat(Pn,"-sticky-scroll-bar"),(0,Ce.Z)({},"".concat(Pn,"-sticky-scroll-bar-active"),Ft)),style:{width:"".concat(E,"px"),transform:"translate3d(".concat(le.scrollLeft,"px, 0, 0)")}}))},zn=M.forwardRef(Ai);function ki(Se){return null}var ir=ki;function lr(Se){return null}var qt=lr,Ki="rc-table",ee=[],ue={};function Zn(){return"No Data"}function Be(Se){var ke,st=(0,Je.Z)({rowKey:"key",prefixCls:Ki,emptyText:Zn},Se),pt=st.prefixCls,Lt=st.className,Tt=st.rowClassName,me=st.style,dn=st.data,an=st.rowKey,Pn=st.scroll,Rn=st.tableLayout,Bn=st.direction,E=st.title,P=st.footer,U=st.summary,q=st.caption,le=st.id,ge=st.showHeader,Me=st.components,et=st.emptyText,zt=st.onRow,Ft=st.onHeaderRow,gt=st.internalHooks,en=st.transformColumns,un=st.internalRefs,Ct=st.tailor,ai=st.sticky,ci=dn||ee,ti=!!ci.length,Xn=gt===I,yi=M.useCallback(function(jo,hs){return(0,xt.Z)(Me,jo)||hs},[Me]),gi=M.useMemo(function(){return typeof an=="function"?an:function(jo){var hs=jo&&jo[an];return hs}},[an]),ji=yi(["body"]),h=Zt(),m=(0,L.Z)(h,3),W=m[0],Ve=m[1],_t=m[2],Mn=ut(st,ci,gi),li=(0,L.Z)(Mn,6),ri=li[0],Wn=li[1],Bi=li[2],cr=li[3],Ur=li[4],Co=li[5],yr=Pn==null?void 0:Pn.x,fr=M.useState(0),Wt=(0,L.Z)(fr,2),rr=Wt[0],qr=Wt[1],Ut=In((0,Je.Z)((0,Je.Z)((0,Je.Z)({},st),ri),{},{expandable:!!ri.expandedRowRender,columnTitle:ri.columnTitle,expandedKeys:Bi,getRowKey:gi,onTriggerExpand:Co,expandIcon:cr,expandIconColumnIndex:ri.expandIconColumnIndex,direction:Bn,scrollWidth:Xn&&Ct&&typeof yr=="number"?yr:null}),Xn?en:null),Cr=(0,L.Z)(Ut,3),eo=Cr[0],mo=Cr[1],Vs=Cr[2],Lo=Vs!=null?Vs:yr,Ks=M.useMemo(function(){return{columns:eo,flattenColumns:mo}},[eo,mo]),co=M.useRef(),Rs=M.useRef(),ms=M.useRef(),$s=M.useRef(),fu=M.useRef(),ko=M.useState(!1),Uo=(0,L.Z)(ko,2),Jo=Uo[0],Ss=Uo[1],js=M.useState(!1),ro=(0,L.Z)(js,2),cs=ro[0],Js=ro[1],Fa=rn(new Map),Ba=(0,L.Z)(Fa,2),_a=Ba[0],xi=Ba[1],Qi=H(mo),$r=Qi.map(function(jo){return _a.get(jo)}),wr=M.useMemo(function(){return $r},[$r.join("_")]),go=jt(wr,mo.length,Bn),Ho=Pn&&Ot(Pn.y),Ro=Pn&&Ot(Lo)||!!ri.fixed,Ys=Ro&&mo.some(function(jo){var hs=jo.fixed;return hs}),Ml=M.useRef(),za=Jt(ai,pt),qs=za.isSticky,Ka=za.offsetHeader,Zs=za.offsetSummary,$o=za.offsetScroll,Es=za.stickyClassName,la=za.container,A=M.useMemo(function(){return U==null?void 0:U(ci)},[U,ci]),g=(Ho||qs)&&M.isValidElement(A)&&A.type===T&&A.props.fixed,S,R,Y;Ho&&(R={overflowY:"scroll",maxHeight:Pn.y}),Ro&&(S={overflowX:"auto"},Ho||(R={overflowY:"hidden"}),Y={width:Lo===!0?"auto":Lo,minWidth:"100%"});var se=M.useCallback(function(jo,hs){(0,ot.Z)(co.current)&&xi(function(La){if(La.get(jo)!==hs){var Ya=new Map(La);return Ya.set(jo,hs),Ya}return La})},[]),Z=Si(null),rt=(0,L.Z)(Z,2),lt=rt[0],pn=rt[1];function On(jo,hs){hs&&(typeof hs=="function"?hs(jo):hs.scrollLeft!==jo&&(hs.scrollLeft=jo,hs.scrollLeft!==jo&&setTimeout(function(){hs.scrollLeft=jo},0)))}var Yn=(0,B.Z)(function(jo){var hs=jo.currentTarget,La=jo.scrollLeft,Ya=Bn==="rtl",Za=typeof La=="number"?La:hs.scrollLeft,wc=hs||ue;if(!pn()||pn()===wc){var Au;lt(wc),On(Za,Rs.current),On(Za,ms.current),On(Za,fu.current),On(Za,(Au=Ml.current)===null||Au===void 0?void 0:Au.setScrollLeft)}var Xc=hs||Rs.current;if(Xc){var pu=Xc.scrollWidth,Qu=Xc.clientWidth;if(pu===Qu){Ss(!1),Js(!1);return}Ya?(Ss(-Za<pu-Qu),Js(-Za>0)):(Ss(Za>0),Js(Za<pu-Qu))}}),wi=function(){Ro&&ms.current?Yn({currentTarget:ms.current}):(Ss(!1),Js(!1))},Ci=function(hs){var La=hs.width;La!==rr&&(wi(),qr(co.current?co.current.offsetWidth:La))},Pi=M.useRef(!1);M.useEffect(function(){Pi.current&&wi()},[Ro,dn,eo.length]),M.useEffect(function(){Pi.current=!0},[]);var hr=M.useState(0),kr=(0,L.Z)(hr,2),Ir=kr[0],lo=kr[1],No=M.useState(!0),bs=(0,L.Z)(No,2),Vo=bs[0],Io=bs[1];M.useEffect(function(){(!Ct||!Xn)&&(ms.current instanceof Element?lo((0,Et.o)(ms.current).width):lo((0,Et.o)($s.current).width)),Io((0,Ze.G)("position","sticky"))},[]),M.useEffect(function(){Xn&&un&&(un.body.current=ms.current)});var ss=M.useCallback(function(jo){return M.createElement(M.Fragment,null,M.createElement(Dr,jo),g==="top"&&M.createElement(mt,jo,A))},[g,A]),ea=M.useCallback(function(jo){return M.createElement(mt,jo,A)},[A]),qo=yi(["table"],"table"),hl=M.useMemo(function(){return Rn||(Ys?Lo==="max-content"?"auto":"fixed":Ho||qs||mo.some(function(jo){var hs=jo.ellipsis;return hs})?"fixed":"auto")},[Ho,Ys,mo,Rn,qs]),Oa,ta={colWidths:wr,columCount:mo.length,stickyOffsets:go,onHeaderRow:Ft,fixHeader:Ho,scroll:Pn},ba=M.useMemo(function(){return ti?null:typeof et=="function"?et():et},[ti,et]),nl=M.createElement(Hn,{data:ci,measureColumnWidth:Ho||Ro||qs}),Kl=M.createElement(Gn,{colWidths:mo.map(function(jo){var hs=jo.width;return hs}),columns:mo}),Aa=q!=null?M.createElement("caption",{className:"".concat(pt,"-caption")},q):void 0,Nu=(0,Gt.Z)(st,{data:!0}),Xu=(0,Gt.Z)(st,{aria:!0});if(Ho||qs){var Pc;typeof ji=="function"?(Pc=ji(ci,{scrollbarSize:Ir,ref:ms,onScroll:Yn}),ta.colWidths=mo.map(function(jo,hs){var La=jo.width,Ya=hs===mo.length-1?La-Ir:La;return typeof Ya=="number"&&!Number.isNaN(Ya)?Ya:0})):Pc=M.createElement("div",{style:(0,Je.Z)((0,Je.Z)({},S),R),onScroll:Yn,ref:ms,className:Xe()("".concat(pt,"-body"))},M.createElement(qo,(0,De.Z)({style:(0,Je.Z)((0,Je.Z)({},Y),{},{tableLayout:hl})},Xu),Aa,Kl,nl,!g&&A&&M.createElement(mt,{stickyOffsets:go,flattenColumns:mo,columns:eo},A)));var Ol=(0,Je.Z)((0,Je.Z)((0,Je.Z)({noData:!ci.length,maxContentScroll:Ro&&Lo==="max-content"},ta),Ks),{},{direction:Bn,stickyClassName:Es,onScroll:Yn});Oa=M.createElement(M.Fragment,null,ge!==!1&&M.createElement(ht,(0,De.Z)({},Ol,{stickyTopOffset:Ka,className:"".concat(pt,"-header"),ref:Rs}),ss),Pc,g&&g!=="top"&&M.createElement(ht,(0,De.Z)({},Ol,{stickyBottomOffset:Zs,className:"".concat(pt,"-summary"),ref:fu}),ea),qs&&M.createElement(zn,{ref:Ml,offsetScroll:$o,scrollBodyRef:ms,onScroll:Yn,container:la}))}else Oa=M.createElement("div",{style:(0,Je.Z)((0,Je.Z)({},S),R),className:Xe()("".concat(pt,"-content")),onScroll:Yn,ref:ms},M.createElement(qo,(0,De.Z)({style:(0,Je.Z)((0,Je.Z)({},Y),{},{tableLayout:hl})},Xu),Aa,Kl,ge!==!1&&M.createElement(Dr,(0,De.Z)({},ta,Ks)),nl,A&&M.createElement(mt,{stickyOffsets:go,flattenColumns:mo,columns:eo},A)));var ua=M.createElement("div",(0,De.Z)({className:Xe()(pt,Lt,(ke={},(0,Ce.Z)(ke,"".concat(pt,"-rtl"),Bn==="rtl"),(0,Ce.Z)(ke,"".concat(pt,"-ping-left"),Jo),(0,Ce.Z)(ke,"".concat(pt,"-ping-right"),cs),(0,Ce.Z)(ke,"".concat(pt,"-layout-fixed"),Rn==="fixed"),(0,Ce.Z)(ke,"".concat(pt,"-fixed-header"),Ho),(0,Ce.Z)(ke,"".concat(pt,"-fixed-column"),Ys),(0,Ce.Z)(ke,"".concat(pt,"-scroll-horizontal"),Ro),(0,Ce.Z)(ke,"".concat(pt,"-has-fix-left"),mo[0]&&mo[0].fixed),(0,Ce.Z)(ke,"".concat(pt,"-has-fix-right"),mo[mo.length-1]&&mo[mo.length-1].fixed==="right"),ke)),style:me,id:le,ref:co},Nu),E&&M.createElement(fn,{className:"".concat(pt,"-title")},E(ci)),M.createElement("div",{ref:$s,className:"".concat(pt,"-container")},Oa),P&&M.createElement(fn,{className:"".concat(pt,"-footer")},P(ci)));Ro&&(ua=M.createElement(ct.Z,{onResize:Ci},ua));var Ll=yn(mo,go,Bn,eo),Ps=M.useMemo(function(){return{scrollX:Lo,prefixCls:pt,getComponent:yi,scrollbarSize:Ir,direction:Bn,fixedInfoList:Ll,isSticky:qs,supportSticky:Vo,componentWidth:rr,fixHeader:Ho,fixColumn:Ys,horizonScroll:Ro,tableLayout:hl,rowClassName:Tt,expandedRowClassName:ri.expandedRowClassName,expandIcon:cr,expandableType:Wn,expandRowByClick:ri.expandRowByClick,expandedRowRender:ri.expandedRowRender,onTriggerExpand:Co,expandIconColumnIndex:ri.expandIconColumnIndex,indentSize:ri.indentSize,allColumnsFixedLeft:mo.every(function(jo){return jo.fixed==="left"}),emptyNode:ba,columns:eo,flattenColumns:mo,onColumnResize:se,hoverStartRow:W,hoverEndRow:Ve,onHover:_t,rowExpandable:ri.rowExpandable,onRow:zt,getRowKey:gi,expandedKeys:Bi,childrenColumnName:Ur}},[Lo,pt,yi,Ir,Bn,Ll,qs,Vo,rr,Ho,Ys,Ro,hl,Tt,ri.expandedRowClassName,cr,Wn,ri.expandRowByClick,ri.expandedRowRender,Co,ri.expandIconColumnIndex,ri.indentSize,ba,eo,mo,se,W,Ve,_t,ri.rowExpandable,zt,gi,Bi,Ur]);return M.createElement(te.Provider,{value:Ps},ua)}function wt(Se){return fe(Be,Se)}var Ni=wt();Ni.EXPAND_COLUMN=b,Ni.INTERNAL_HOOKS=I,Ni.Column=ir,Ni.ColumnGroup=qt,Ni.Summary=_e;var Dn=Ni,Gi=d(4409),Xt=he(null),Ii=he(null);function Yt(Se,ke,st){var pt=ke||1;return st[Se+pt]-(st[Se]||0)}function Wi(Se){var ke=Se.rowInfo,st=Se.column,pt=Se.colIndex,Lt=Se.indent,Tt=Se.index,me=Se.renderIndex,dn=Se.record,an=Se.style,Pn=Se.className,Rn=Se.inverse,Bn=Se.getHeight,E=st.render,P=st.dataIndex,U=st.className,q=st.width,le=re(Ii,["columnsOffset"]),ge=le.columnsOffset,Me=Dt(ke,st,pt,Lt,Tt),et=Me.key,zt=Me.fixedInfo,Ft=Me.appendCellNode,gt=Me.additionalCellProps,en=gt.style,un=gt.colSpan,Ct=un===void 0?1:un,ai=gt.rowSpan,ci=ai===void 0?1:ai,ti=pt-1,Xn=Yt(ti,Ct,ge),yi=Ct>1?q-Xn:0,gi=(0,Je.Z)((0,Je.Z)((0,Je.Z)({},en),an),{},{flex:"0 0 ".concat(Xn,"px"),width:"".concat(Xn,"px"),marginRight:yi,pointerEvents:"auto"}),ji=M.useMemo(function(){return Rn?ci<=1:Ct===0||ci===0||ci>1},[ci,Ct,Rn]);ji?gi.visibility="hidden":Rn&&(gi.height=Bn==null?void 0:Bn(ci));var h=ji?function(){return null}:E,m={};return(ci===0||Ct===0)&&(m.rowSpan=1,m.colSpan=1),M.createElement(si,(0,De.Z)({className:Xe()(U,Pn),ellipsis:st.ellipsis,align:st.align,scope:st.rowScope,component:"div",prefixCls:ke.prefixCls,key:et,record:dn,index:Tt,renderIndex:me,dataIndex:P,render:h,shouldCellUpdate:st.shouldCellUpdate},zt,{appendNode:Ft,additionalProps:(0,Je.Z)((0,Je.Z)({},gt),{},{style:gi},m)}))}var Zr=Wi,It=["data","index","className","rowKey","style","extra","getHeight"],fo=M.forwardRef(function(Se,ke){var st=Se.data,pt=Se.index,Lt=Se.className,Tt=Se.rowKey,me=Se.style,dn=Se.extra,an=Se.getHeight,Pn=(0,D.Z)(Se,It),Rn=st.record,Bn=st.indent,E=st.index,P=re(te,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),U=P.scrollX,q=P.flattenColumns,le=P.prefixCls,ge=P.fixColumn,Me=P.componentWidth,et=We(Rn,Tt,pt,Bn),zt=et.rowSupportExpand,Ft=et.expanded,gt=et.rowProps,en=et.expandedRowRender,un=et.expandedRowClassName,Ct;if(zt&&Ft){var ai=en(Rn,pt,Bn+1,Ft),ci=un==null?void 0:un(Rn,pt,Bn),ti={};ge&&(ti={style:(0,Ce.Z)({},"--virtual-width","".concat(Me,"px"))});var Xn="".concat(le,"-expanded-row-cell");Ct=M.createElement("div",{className:Xe()("".concat(le,"-expanded-row"),"".concat(le,"-expanded-row-level-").concat(Bn+1),ci)},M.createElement(si,{component:"div",prefixCls:le,className:Xe()(Xn,(0,Ce.Z)({},"".concat(Xn,"-fixed"),ge)),additionalProps:ti},ai))}var yi=(0,Je.Z)((0,Je.Z)({},me),{},{width:U});dn&&(yi.position="absolute",yi.pointerEvents="none");var gi=M.createElement("div",(0,De.Z)({},gt,Pn,{ref:zt?null:ke,className:Xe()(Lt,"".concat(le,"-row"),gt==null?void 0:gt.className,(0,Ce.Z)({},"".concat(le,"-row-extra"),dn)),style:(0,Je.Z)((0,Je.Z)({},yi),gt==null?void 0:gt.style)}),q.map(function(ji,h){return M.createElement(Zr,{key:h,rowInfo:et,column:ji,colIndex:h,indent:Bn,index:pt,renderIndex:E,record:Rn,inverse:dn,getHeight:an})}));return zt?M.createElement("div",{ref:ke},gi,Ct):gi}),tn=we(fo),Fi=tn,Li=M.forwardRef(function(Se,ke){var st=Se.data,pt=Se.onScroll,Lt=re(te,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),Tt=Lt.flattenColumns,me=Lt.onColumnResize,dn=Lt.getRowKey,an=Lt.expandedKeys,Pn=Lt.prefixCls,Rn=Lt.childrenColumnName,Bn=Lt.emptyNode,E=Lt.scrollX,P=re(Xt),U=P.scrollY,q=P.listItemHeight,le=M.useRef(),ge=Pt(st,Rn,an,dn),Me=M.useMemo(function(){var Ct=0;return Tt.map(function(ai){var ci=ai.width,ti=ai.key;return Ct+=ci,[ti,ci,Ct]})},[Tt]),et=M.useMemo(function(){return Me.map(function(Ct){return Ct[2]})},[Me]);M.useEffect(function(){Me.forEach(function(Ct){var ai=(0,L.Z)(Ct,2),ci=ai[0],ti=ai[1];me(ci,ti)})},[Me]),M.useImperativeHandle(ke,function(){var Ct={};return Object.defineProperty(Ct,"scrollLeft",{get:function(){var ci;return((ci=le.current)===null||ci===void 0?void 0:ci.getScrollInfo().x)||0},set:function(ci){var ti;(ti=le.current)===null||ti===void 0||ti.scrollTo({left:ci})}}),Ct});var zt=function(ai,ci){var ti,Xn=(ti=ge[ci])===null||ti===void 0?void 0:ti.record,yi=ai.onCell;if(yi){var gi,ji=yi(Xn,ci);return(gi=ji==null?void 0:ji.rowSpan)!==null&&gi!==void 0?gi:1}return 1},Ft=function(ai){var ci=ai.start,ti=ai.end,Xn=ai.getSize,yi=ai.offsetY;if(ti<0)return null;for(var gi=Tt.filter(function(yr){return zt(yr,ci)===0}),ji=ci,h=function(fr){if(gi=gi.filter(function(Wt){return zt(Wt,fr)===0}),!gi.length)return ji=fr,"break"},m=ci;m>=0;m-=1){var W=h(m);if(W==="break")break}for(var Ve=Tt.filter(function(yr){return zt(yr,ti)!==1}),_t=ti,Mn=function(fr){if(Ve=Ve.filter(function(Wt){return zt(Wt,fr)!==1}),!Ve.length)return _t=Math.max(fr-1,ti),"break"},li=ti;li<ge.length;li+=1){var ri=Mn(li);if(ri==="break")break}for(var Wn=[],Bi=function(fr){var Wt=ge[fr];if(!Wt)return"continue";Tt.some(function(rr){return zt(rr,fr)>1})&&Wn.push(fr)},cr=ji;cr<=_t;cr+=1)var Ur=Bi(cr);var Co=Wn.map(function(yr){var fr=ge[yr],Wt=dn(fr.record,yr),rr=function(Cr){var eo=yr+Cr-1,mo=dn(ge[eo].record,eo),Vs=Xn(Wt,mo);return Vs.bottom-Vs.top},qr=Xn(Wt);return M.createElement(Fi,{key:yr,data:fr,rowKey:Wt,index:yr,style:{top:-yi+qr.top},extra:!0,getHeight:rr})});return Co},gt=M.useMemo(function(){return{columnsOffset:et}},[et]),en="".concat(Pn,"-tbody"),un;return ge.length?un=M.createElement(Gi.Z,{fullHeight:!1,ref:le,className:Xe()(en,"".concat(en,"-virtual")),height:U,itemHeight:q||24,data:ge,itemKey:function(ai){return dn(ai.record)},scrollWidth:E,onVirtualScroll:function(ai){var ci=ai.x;pt({scrollLeft:ci})},extraRender:Ft},function(Ct,ai,ci){var ti=dn(Ct.record,ai);return M.createElement(Fi,(0,De.Z)({data:Ct,rowKey:ti,index:ai},ci))}):un=M.createElement("div",{className:Xe()("".concat(Pn,"-placeholder"))},M.createElement(si,{component:"div",prefixCls:Pn},Bn)),M.createElement(Ii.Provider,{value:gt},un)}),Nt=we(Li),Nr=Nt,ii=function(ke,st){var pt=st.ref,Lt=st.onScroll;return M.createElement(Nr,{ref:pt,data:ke,onScroll:Lt})},ce=100;function br(Se){var ke=Se.columns,st=Se.scroll,pt=Se.prefixCls,Lt=pt===void 0?Ki:pt,Tt=Se.className,me=Se.listItemHeight,dn=st||{},an=dn.x,Pn=dn.y;typeof an!="number"&&(an=((ke||[]).length+1)*ce),typeof Pn!="number"&&(Pn=500);var Rn=M.useMemo(function(){return{scrollY:Pn,listItemHeight:me}},[Pn,me]);return M.createElement(Xt.Provider,{value:Rn},M.createElement(Dn,(0,De.Z)({},Se,{className:Xe()(Tt,"".concat(Lt,"-virtual")),scroll:(0,Je.Z)((0,Je.Z)({},st),{},{x:an}),components:{body:ii},columns:ke,internalHooks:I,tailor:!0})))}function to(Se){return fe(br,Se)}var mr=to(),Xr=null;function qi(Se){return null}var zr=qi;function Ri(Se){return null}var $i=Ri,zi=d(2738),Pr=d(68031),Br=d(36355),no=d(93891),Po=d(19716),mi=d(8628),ws=d(31724),as=d(58421),Fo=d(71418),As=d(88088);function Xs(Se){return function(st){let{prefixCls:pt,onExpand:Lt,record:Tt,expanded:me,expandable:dn}=st;const an=`${pt}-row-expand-icon`;return M.createElement("button",{type:"button",onClick:Pn=>{Lt(Tt,Pn),Pn.stopPropagation()},className:Xe()(an,{[`${an}-spaced`]:!dn,[`${an}-expanded`]:dn&&me,[`${an}-collapsed`]:dn&&!me}),"aria-label":me?Se.collapse:Se.expand,"aria-expanded":me})}}var da=Xs;function vs(Se,ke){return"key"in Se&&Se.key!==void 0&&Se.key!==null?Se.key:Se.dataIndex?Array.isArray(Se.dataIndex)?Se.dataIndex.join("."):Se.dataIndex:ke}function Ua(Se,ke){return ke?`${ke}-${Se}`:`${Se}`}function Ls(Se,ke){return typeof Se=="function"?Se(ke):Se}function Ko(Se,ke){const st=Ls(Se,ke);return Object.prototype.toString.call(st)==="[object Object]"?"":st}var Ht={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"},Ds=Ht,wl=d(7657),Cl=function(ke,st){return M.createElement(wl.Z,(0,De.Z)({},ke,{ref:st,icon:Ds}))},Jr=M.forwardRef(Cl),oo=Jr,ts=d(56762);function bo(Se){const ke=M.useRef(Se),st=(0,ts.Z)();return[()=>ke.current,pt=>{ke.current=pt,st()}]}var Or=d(3113),po=d(24905),va=d(38854),gr=d(64165),xn=d(20834),ur=d(40875),vi=d(5112),Bo=d(17574),ys=d(47472),oa=d(92832);function Da(Se){let{value:ke,onChange:st,filterSearch:pt,tablePrefixCls:Lt,locale:Tt}=Se;return pt?M.createElement("div",{className:`${Lt}-filter-dropdown-search`},M.createElement(oa.default,{prefix:M.createElement(ys.Z,null),placeholder:Tt.filterSearchPlaceholder,onChange:st,value:ke,htmlSize:1,className:`${Lt}-filter-dropdown-search-input`})):null}var Ia=Da,ui=d(10228);const Di=Se=>{const{keyCode:ke}=Se;ke===ui.Z.ENTER&&Se.stopPropagation()};var ya=M.forwardRef((Se,ke)=>M.createElement("div",{className:Se.className,onClick:st=>st.stopPropagation(),onKeyDown:Di,ref:ke},Se.children));function Go(Se){let ke=[];return(Se||[]).forEach(st=>{let{value:pt,children:Lt}=st;ke.push(pt),Lt&&(ke=[].concat((0,Ti.Z)(ke),(0,Ti.Z)(Go(Lt))))}),ke}function Us(Se){return Se.some(ke=>{let{children:st}=ke;return st})}function vr(Se,ke){return typeof ke=="string"||typeof ke=="number"?ke==null?void 0:ke.toString().toLowerCase().includes(Se.trim().toLowerCase()):!1}function lu(Se){let{filters:ke,prefixCls:st,filteredKeys:pt,filterMultiple:Lt,searchValue:Tt,filterSearch:me}=Se;return ke.map((dn,an)=>{const Pn=String(dn.value);if(dn.children)return{key:Pn||an,label:dn.text,popupClassName:`${st}-dropdown-submenu`,children:lu({filters:dn.children,prefixCls:st,filteredKeys:pt,filterMultiple:Lt,searchValue:Tt,filterSearch:me})};const Rn=Lt?po.default:vi.ZP,Bn={key:dn.value!==void 0?Pn:an,label:M.createElement(M.Fragment,null,M.createElement(Rn,{checked:pt.includes(Pn)}),M.createElement("span",null,dn.text))};return Tt.trim()?typeof me=="function"?me(Tt,dn)?Bn:null:vr(Tt,dn.text)?Bn:null:Bn})}function wa(Se){var ke,st;const{tablePrefixCls:pt,prefixCls:Lt,column:Tt,dropdownPrefixCls:me,columnKey:dn,filterMultiple:an,filterMode:Pn="menu",filterSearch:Rn=!1,filterState:Bn,triggerFilter:E,locale:P,children:U,getPopupContainer:q}=Se,{filterDropdownOpen:le,onFilterDropdownOpenChange:ge,filterResetToDefaultFilteredValue:Me,defaultFilteredValue:et,filterDropdownVisible:zt,onFilterDropdownVisibleChange:Ft}=Tt,[gt,en]=M.useState(!1),un=!!(Bn&&(!((ke=Bn.filteredKeys)===null||ke===void 0)&&ke.length||Bn.forceFiltered)),Ct=Ut=>{en(Ut),ge==null||ge(Ut),Ft==null||Ft(Ut)},ai=(st=le!=null?le:zt)!==null&&st!==void 0?st:gt,ci=Bn==null?void 0:Bn.filteredKeys,[ti,Xn]=bo(ci||[]),yi=Ut=>{let{selectedKeys:Cr}=Ut;Xn(Cr)},gi=(Ut,Cr)=>{let{node:eo,checked:mo}=Cr;yi(an?{selectedKeys:Ut}:{selectedKeys:mo&&eo.key?[eo.key]:[]})};M.useEffect(()=>{gt&&yi({selectedKeys:ci||[]})},[ci]);const[ji,h]=M.useState([]),m=Ut=>{h(Ut)},[W,Ve]=M.useState(""),_t=Ut=>{const{value:Cr}=Ut.target;Ve(Cr)};M.useEffect(()=>{gt||Ve("")},[gt]);const Mn=Ut=>{const Cr=Ut&&Ut.length?Ut:null;if(Cr===null&&(!Bn||!Bn.filteredKeys)||(0,Q.Z)(Cr,Bn==null?void 0:Bn.filteredKeys,!0))return null;E({column:Tt,key:dn,filteredKeys:Cr})},li=()=>{Ct(!1),Mn(ti())},ri=function(){let{confirm:Ut,closeDropdown:Cr}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ut&&Mn([]),Cr&&Ct(!1),Ve(""),Xn(Me?(et||[]).map(eo=>String(eo)):[])},Wn=function(){let{closeDropdown:Ut}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ut&&Ct(!1),Mn(ti())},Bi=Ut=>{Ut&&ci!==void 0&&Xn(ci||[]),Ct(Ut),!Ut&&!Tt.filterDropdown&&li()},cr=Xe()({[`${me}-menu-without-submenu`]:!Us(Tt.filters||[])}),Ur=Ut=>{if(Ut.target.checked){const Cr=Go(Tt==null?void 0:Tt.filters).map(eo=>String(eo));Xn(Cr)}else Xn([])},Co=Ut=>{let{filters:Cr}=Ut;return(Cr||[]).map((eo,mo)=>{const Vs=String(eo.value),Lo={title:eo.text,key:eo.value!==void 0?Vs:mo};return eo.children&&(Lo.children=Co({filters:eo.children})),Lo})},yr=Ut=>{var Cr;return Object.assign(Object.assign({},Ut),{text:Ut.title,value:Ut.key,children:((Cr=Ut.children)===null||Cr===void 0?void 0:Cr.map(eo=>yr(eo)))||[]})};let fr;if(typeof Tt.filterDropdown=="function")fr=Tt.filterDropdown({prefixCls:`${me}-custom`,setSelectedKeys:Ut=>yi({selectedKeys:Ut}),selectedKeys:ti(),confirm:Wn,clearFilters:ri,filters:Tt.filters,visible:ai,close:()=>{Ct(!1)}});else if(Tt.filterDropdown)fr=Tt.filterDropdown;else{const Ut=ti()||[],Cr=()=>(Tt.filters||[]).length===0?M.createElement(gr.Z,{image:gr.Z.PRESENTED_IMAGE_SIMPLE,description:P.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):Pn==="tree"?M.createElement(M.Fragment,null,M.createElement(Ia,{filterSearch:Rn,value:W,onChange:_t,tablePrefixCls:pt,locale:P}),M.createElement("div",{className:`${pt}-filter-dropdown-tree`},an?M.createElement(po.default,{checked:Ut.length===Go(Tt.filters).length,indeterminate:Ut.length>0&&Ut.length<Go(Tt.filters).length,className:`${pt}-filter-dropdown-checkall`,onChange:Ur},P.filterCheckall):null,M.createElement(Bo.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:an,checkStrictly:!an,className:`${me}-menu`,onCheck:gi,checkedKeys:Ut,selectedKeys:Ut,showIcon:!1,treeData:Co({filters:Tt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:W.trim()?mo=>typeof Rn=="function"?Rn(W,yr(mo)):vr(W,mo.title):void 0}))):M.createElement(M.Fragment,null,M.createElement(Ia,{filterSearch:Rn,value:W,onChange:_t,tablePrefixCls:pt,locale:P}),M.createElement(xn.default,{selectable:!0,multiple:an,prefixCls:`${me}-menu`,className:cr,onSelect:yi,onDeselect:yi,selectedKeys:Ut,getPopupContainer:q,openKeys:ji,onOpenChange:m,items:lu({filters:Tt.filters||[],filterSearch:Rn,prefixCls:Lt,filteredKeys:ti(),filterMultiple:an,searchValue:W})})),eo=()=>Me?(0,Q.Z)((et||[]).map(mo=>String(mo)),Ut,!0):Ut.length===0;fr=M.createElement(M.Fragment,null,Cr(),M.createElement("div",{className:`${Lt}-dropdown-btns`},M.createElement(Or.ZP,{type:"link",size:"small",disabled:eo(),onClick:()=>ri()},P.filterReset),M.createElement(Or.ZP,{type:"primary",size:"small",onClick:li},P.filterConfirm)))}Tt.filterDropdown&&(fr=M.createElement(ur.J,{selectable:void 0},fr));const Wt=()=>M.createElement(ya,{className:`${Lt}-dropdown`},fr);let rr;typeof Tt.filterIcon=="function"?rr=Tt.filterIcon(un):Tt.filterIcon?rr=Tt.filterIcon:rr=M.createElement(oo,null);const{direction:qr}=M.useContext(Br.E_);return M.createElement("div",{className:`${Lt}-column`},M.createElement("span",{className:`${pt}-column-title`},U),M.createElement(va.Z,{dropdownRender:Wt,trigger:["click"],open:ai,onOpenChange:Bi,getPopupContainer:q,placement:qr==="rtl"?"bottomLeft":"bottomRight"},M.createElement("span",{role:"button",tabIndex:-1,className:Xe()(`${Lt}-trigger`,{active:un}),onClick:Ut=>{Ut.stopPropagation()}},rr)))}var Ca=wa;function Oo(Se,ke,st){let pt=[];return(Se||[]).forEach((Lt,Tt)=>{var me;const dn=Ua(Tt,st);if(Lt.filters||"filterDropdown"in Lt||"onFilter"in Lt)if("filteredValue"in Lt){let an=Lt.filteredValue;"filterDropdown"in Lt||(an=(me=an==null?void 0:an.map(String))!==null&&me!==void 0?me:an),pt.push({column:Lt,key:vs(Lt,dn),filteredKeys:an,forceFiltered:Lt.filtered})}else pt.push({column:Lt,key:vs(Lt,dn),filteredKeys:ke&&Lt.defaultFilteredValue?Lt.defaultFilteredValue:void 0,forceFiltered:Lt.filtered});"children"in Lt&&(pt=[].concat((0,Ti.Z)(pt),(0,Ti.Z)(Oo(Lt.children,ke,dn))))}),pt}function ll(Se,ke,st,pt,Lt,Tt,me,dn){return st.map((an,Pn)=>{const Rn=Ua(Pn,dn),{filterMultiple:Bn=!0,filterMode:E,filterSearch:P}=an;let U=an;if(U.filters||U.filterDropdown){const q=vs(U,Rn),le=pt.find(ge=>{let{key:Me}=ge;return q===Me});U=Object.assign(Object.assign({},U),{title:ge=>M.createElement(Ca,{tablePrefixCls:Se,prefixCls:`${Se}-filter`,dropdownPrefixCls:ke,column:U,columnKey:q,filterState:le,filterMultiple:Bn,filterMode:E,filterSearch:P,triggerFilter:Tt,locale:Lt,getPopupContainer:me},Ls(an.title,ge))})}return"children"in U&&(U=Object.assign(Object.assign({},U),{children:ll(Se,ke,U.children,pt,Lt,Tt,me,Rn)})),U})}function Tl(Se){const ke={};return Se.forEach(st=>{let{key:pt,filteredKeys:Lt,column:Tt}=st;const{filters:me,filterDropdown:dn}=Tt;if(dn)ke[pt]=Lt||null;else if(Array.isArray(Lt)){const an=Go(me);ke[pt]=an.filter(Pn=>Lt.includes(String(Pn)))}else ke[pt]=null}),ke}function ks(Se,ke){return ke.reduce((st,pt)=>{const{column:{onFilter:Lt,filters:Tt},filteredKeys:me}=pt;return Lt&&me&&me.length?st.filter(dn=>me.some(an=>{const Pn=Go(Tt),Rn=Pn.findIndex(E=>String(E)===String(an)),Bn=Rn!==-1?Pn[Rn]:an;return Lt(Bn,dn)})):st},Se)}const fa=Se=>Se.flatMap(ke=>"children"in ke?[ke].concat((0,Ti.Z)(fa(ke.children||[]))):[ke]);function Nl(Se){let{prefixCls:ke,dropdownPrefixCls:st,mergedColumns:pt,onFilterChange:Lt,getPopupContainer:Tt,locale:me}=Se;const dn=M.useMemo(()=>fa(pt||[]),[pt]),[an,Pn]=M.useState(()=>Oo(dn,!0)),Rn=M.useMemo(()=>{const U=Oo(dn,!1);if(U.length===0)return U;let q=!0,le=!0;if(U.forEach(ge=>{let{filteredKeys:Me}=ge;Me!==void 0?q=!1:le=!1}),q){const ge=(dn||[]).map((Me,et)=>vs(Me,Ua(et)));return an.filter(Me=>{let{key:et}=Me;return ge.includes(et)}).map(Me=>{const et=dn[ge.findIndex(zt=>zt===Me.key)];return Object.assign(Object.assign({},Me),{column:Object.assign(Object.assign({},Me.column),et),forceFiltered:et.filtered})})}return U},[dn,an]),Bn=M.useMemo(()=>Tl(Rn),[Rn]),E=U=>{const q=Rn.filter(le=>{let{key:ge}=le;return ge!==U.key});q.push(U),Pn(q),Lt(Tl(q),q)};return[U=>ll(ke,st,U,Rn,me,E,Tt),Rn,Bn]}var Ao=Nl;function zl(Se,ke,st){const pt=M.useRef({});function Lt(Tt){if(!pt.current||pt.current.data!==Se||pt.current.childrenColumnName!==ke||pt.current.getRowKey!==st){let dn=function(an){an.forEach((Pn,Rn)=>{const Bn=st(Pn,Rn);me.set(Bn,Pn),Pn&&typeof Pn=="object"&&ke in Pn&&dn(Pn[ke]||[])})};const me=new Map;dn(Se),pt.current={data:Se,childrenColumnName:ke,kvMap:me,getRowKey:st}}return pt.current.kvMap.get(Tt)}return[Lt]}var Ul=d(50371),Eu=function(Se,ke){var st={};for(var pt in Se)Object.prototype.hasOwnProperty.call(Se,pt)&&ke.indexOf(pt)<0&&(st[pt]=Se[pt]);if(Se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Lt=0,pt=Object.getOwnPropertySymbols(Se);Lt<pt.length;Lt++)ke.indexOf(pt[Lt])<0&&Object.prototype.propertyIsEnumerable.call(Se,pt[Lt])&&(st[pt[Lt]]=Se[pt[Lt]]);return st};const Cs=10;function Zo(Se,ke){const st={current:Se.current,pageSize:Se.pageSize};return Object.keys(ke&&typeof ke=="object"?ke:{}).forEach(Lt=>{const Tt=Se[Lt];typeof Tt!="function"&&(st[Lt]=Tt)}),st}function Ha(Se,ke,st){const pt=st&&typeof st=="object"?st:{},{total:Lt=0}=pt,Tt=Eu(pt,["total"]),[me,dn]=(0,M.useState)(()=>({current:"defaultCurrent"in Tt?Tt.defaultCurrent:1,pageSize:"defaultPageSize"in Tt?Tt.defaultPageSize:Cs})),an=(0,Ul.Z)(me,Tt,{total:Lt>0?Lt:Se}),Pn=Math.ceil((Lt||Se)/an.pageSize);an.current>Pn&&(an.current=Pn||1);const Rn=(E,P)=>{dn({current:E!=null?E:1,pageSize:P||an.pageSize})},Bn=(E,P)=>{var U;st&&((U=st.onChange)===null||U===void 0||U.call(st,E,P)),Rn(E,P),ke(E,P||(an==null?void 0:an.pageSize))};return st===!1?[{},()=>{}]:[Object.assign(Object.assign({},an),{onChange:Bn}),Rn]}var Hi=Ha,pa=d(84105),Hl=d(35654),Lr=d(90782),so=d(71430),ns=d(18929);const Xo={},jr="SELECT_ALL",Qo="SELECT_INVERT",is="SELECT_NONE",rs=[],fs=(Se,ke)=>{let st=[];return(ke||[]).forEach(pt=>{st.push(pt),pt&&typeof pt=="object"&&Se in pt&&(st=[].concat((0,Ti.Z)(st),(0,Ti.Z)(fs(Se,pt[Se]))))}),st};var $a=(Se,ke)=>{const{preserveSelectedRowKeys:st,selectedRowKeys:pt,defaultSelectedRowKeys:Lt,getCheckboxProps:Tt,onChange:me,onSelect:dn,onSelectAll:an,onSelectInvert:Pn,onSelectNone:Rn,onSelectMultiple:Bn,columnWidth:E,type:P,selections:U,fixed:q,renderCell:le,hideSelectAll:ge,checkStrictly:Me=!0}=ke||{},{prefixCls:et,data:zt,pageData:Ft,getRecordByKey:gt,getRowKey:en,expandType:un,childrenColumnName:Ct,locale:ai,getPopupContainer:ci}=Se,[ti,Xn]=(0,ns.Z)(pt||Lt||rs,{value:pt}),yi=M.useRef(new Map),gi=(0,M.useCallback)(yr=>{if(st){const fr=new Map;yr.forEach(Wt=>{let rr=gt(Wt);!rr&&yi.current.has(Wt)&&(rr=yi.current.get(Wt)),fr.set(Wt,rr)}),yi.current=fr}},[gt,st]);M.useEffect(()=>{gi(ti)},[ti]);const{keyEntities:ji}=(0,M.useMemo)(()=>{if(Me)return{keyEntities:null};let yr=zt;if(st){const fr=new Set(zt.map((rr,qr)=>en(rr,qr))),Wt=Array.from(yi.current).reduce((rr,qr)=>{let[Ut,Cr]=qr;return fr.has(Ut)?rr:rr.concat(Cr)},[]);yr=[].concat((0,Ti.Z)(yr),(0,Ti.Z)(Wt))}return(0,so.I8)(yr,{externalGetKey:en,childrenPropName:Ct})},[zt,en,Me,Ct,st]),h=(0,M.useMemo)(()=>fs(Ct,Ft),[Ct,Ft]),m=(0,M.useMemo)(()=>{const yr=new Map;return h.forEach((fr,Wt)=>{const rr=en(fr,Wt),qr=(Tt?Tt(fr):null)||{};yr.set(rr,qr)}),yr},[h,en,Tt]),W=(0,M.useCallback)(yr=>{var fr;return!!(!((fr=m.get(en(yr)))===null||fr===void 0)&&fr.disabled)},[m,en]),[Ve,_t]=(0,M.useMemo)(()=>{if(Me)return[ti||[],[]];const{checkedKeys:yr,halfCheckedKeys:fr}=(0,Lr.S)(ti,!0,ji,W);return[yr||[],fr]},[ti,Me,ji,W]),Mn=(0,M.useMemo)(()=>{const yr=P==="radio"?Ve.slice(0,1):Ve;return new Set(yr)},[Ve,P]),li=(0,M.useMemo)(()=>P==="radio"?new Set:new Set(_t),[_t,P]),[ri,Wn]=(0,M.useState)(null);M.useEffect(()=>{ke||Xn(rs)},[!!ke]);const Bi=(0,M.useCallback)((yr,fr)=>{let Wt,rr;gi(yr),st?(Wt=yr,rr=yr.map(qr=>yi.current.get(qr))):(Wt=[],rr=[],yr.forEach(qr=>{const Ut=gt(qr);Ut!==void 0&&(Wt.push(qr),rr.push(Ut))})),Xn(Wt),me==null||me(Wt,rr,{type:fr})},[Xn,gt,me,st]),cr=(0,M.useCallback)((yr,fr,Wt,rr)=>{if(dn){const qr=Wt.map(Ut=>gt(Ut));dn(gt(yr),fr,qr,rr)}Bi(Wt,"single")},[dn,gt,Bi]),Ur=(0,M.useMemo)(()=>!U||ge?null:(U===!0?[jr,Qo,is]:U).map(fr=>fr===jr?{key:"all",text:ai.selectionAll,onSelect(){Bi(zt.map((Wt,rr)=>en(Wt,rr)).filter(Wt=>{const rr=m.get(Wt);return!(rr!=null&&rr.disabled)||Mn.has(Wt)}),"all")}}:fr===Qo?{key:"invert",text:ai.selectInvert,onSelect(){const Wt=new Set(Mn);Ft.forEach((qr,Ut)=>{const Cr=en(qr,Ut),eo=m.get(Cr);eo!=null&&eo.disabled||(Wt.has(Cr)?Wt.delete(Cr):Wt.add(Cr))});const rr=Array.from(Wt);Pn&&Pn(rr),Bi(rr,"invert")}}:fr===is?{key:"none",text:ai.selectNone,onSelect(){Rn==null||Rn(),Bi(Array.from(Mn).filter(Wt=>{const rr=m.get(Wt);return rr==null?void 0:rr.disabled}),"none")}}:fr).map(fr=>Object.assign(Object.assign({},fr),{onSelect:function(){for(var Wt,rr,qr=arguments.length,Ut=new Array(qr),Cr=0;Cr<qr;Cr++)Ut[Cr]=arguments[Cr];(rr=fr.onSelect)===null||rr===void 0||(Wt=rr).call.apply(Wt,[fr].concat(Ut)),Wn(null)}})),[U,Mn,Ft,en,Pn,Bi]);return[(0,M.useCallback)(yr=>{var fr;if(!ke)return yr.filter(ko=>ko!==Xo);let Wt=(0,Ti.Z)(yr);const rr=new Set(Mn),qr=h.map(en).filter(ko=>!m.get(ko).disabled),Ut=qr.every(ko=>rr.has(ko)),Cr=qr.some(ko=>rr.has(ko)),eo=()=>{const ko=[];Ut?qr.forEach(Jo=>{rr.delete(Jo),ko.push(Jo)}):qr.forEach(Jo=>{rr.has(Jo)||(rr.add(Jo),ko.push(Jo))});const Uo=Array.from(rr);an==null||an(!Ut,Uo.map(Jo=>gt(Jo)),ko.map(Jo=>gt(Jo))),Bi(Uo,"all"),Wn(null)};let mo;if(P!=="radio"){let ko;if(Ur){const ro={getPopupContainer:ci,items:Ur.map((cs,Js)=>{const{key:Fa,text:Ba,onSelect:_a}=cs;return{key:Fa!=null?Fa:Js,onClick:()=>{_a==null||_a(qr)},label:Ba}})};ko=M.createElement("div",{className:`${et}-selection-extra`},M.createElement(va.Z,{menu:ro,getPopupContainer:ci},M.createElement("span",null,M.createElement(pa.Z,null))))}const Uo=h.map((ro,cs)=>{const Js=en(ro,cs),Fa=m.get(Js)||{};return Object.assign({checked:rr.has(Js)},Fa)}).filter(ro=>{let{disabled:cs}=ro;return cs}),Jo=!!Uo.length&&Uo.length===h.length,Ss=Jo&&Uo.every(ro=>{let{checked:cs}=ro;return cs}),js=Jo&&Uo.some(ro=>{let{checked:cs}=ro;return cs});mo=!ge&&M.createElement("div",{className:`${et}-selection`},M.createElement(po.default,{checked:Jo?Ss:!!h.length&&Ut,indeterminate:Jo?!Ss&&js:!Ut&&Cr,onChange:eo,disabled:h.length===0||Jo,"aria-label":ko?"Custom selection":"Select all",skipGroup:!0}),ko)}let Vs;P==="radio"?Vs=(ko,Uo,Jo)=>{const Ss=en(Uo,Jo),js=rr.has(Ss);return{node:M.createElement(vi.ZP,Object.assign({},m.get(Ss),{checked:js,onClick:ro=>ro.stopPropagation(),onChange:ro=>{rr.has(Ss)||cr(Ss,!0,[Ss],ro.nativeEvent)}})),checked:js}}:Vs=(ko,Uo,Jo)=>{var Ss;const js=en(Uo,Jo),ro=rr.has(js),cs=li.has(js),Js=m.get(js);let Fa;return un==="nest"?Fa=cs:Fa=(Ss=Js==null?void 0:Js.indeterminate)!==null&&Ss!==void 0?Ss:cs,{node:M.createElement(po.default,Object.assign({},Js,{indeterminate:Fa,checked:ro,skipGroup:!0,onClick:Ba=>Ba.stopPropagation(),onChange:Ba=>{let{nativeEvent:_a}=Ba;const{shiftKey:xi}=_a;let Qi=-1,$r=-1;if(xi&&Me){const wr=new Set([ri,js]);qr.some((go,Ho)=>{if(wr.has(go))if(Qi===-1)Qi=Ho;else return $r=Ho,!0;return!1})}if($r!==-1&&Qi!==$r&&Me){const wr=qr.slice(Qi,$r+1),go=[];ro?wr.forEach(Ro=>{rr.has(Ro)&&(go.push(Ro),rr.delete(Ro))}):wr.forEach(Ro=>{rr.has(Ro)||(go.push(Ro),rr.add(Ro))});const Ho=Array.from(rr);Bn==null||Bn(!ro,Ho.map(Ro=>gt(Ro)),go.map(Ro=>gt(Ro))),Bi(Ho,"multiple")}else{const wr=Ve;if(Me){const go=ro?(0,Hl._5)(wr,js):(0,Hl.L0)(wr,js);cr(js,!ro,go,_a)}else{const go=(0,Lr.S)([].concat((0,Ti.Z)(wr),[js]),!0,ji,W),{checkedKeys:Ho,halfCheckedKeys:Ro}=go;let Ys=Ho;if(ro){const Ml=new Set(Ho);Ml.delete(js),Ys=(0,Lr.S)(Array.from(Ml),{checked:!1,halfCheckedKeys:Ro},ji,W).checkedKeys}cr(js,!ro,Ys,_a)}}Wn(ro?null:js)}})),checked:ro}};const Lo=(ko,Uo,Jo)=>{const{node:Ss,checked:js}=Vs(ko,Uo,Jo);return le?le(js,Uo,Jo,Ss):Ss};if(!Wt.includes(Xo))if(Wt.findIndex(ko=>{var Uo;return((Uo=ko[tt])===null||Uo===void 0?void 0:Uo.columnType)==="EXPAND_COLUMN"})===0){const[ko,...Uo]=Wt;Wt=[ko,Xo].concat((0,Ti.Z)(Uo))}else Wt=[Xo].concat((0,Ti.Z)(Wt));const Ks=Wt.indexOf(Xo);Wt=Wt.filter((ko,Uo)=>ko!==Xo||Uo===Ks);const co=Wt[Ks-1],Rs=Wt[Ks+1];let ms=q;ms===void 0&&((Rs==null?void 0:Rs.fixed)!==void 0?ms=Rs.fixed:(co==null?void 0:co.fixed)!==void 0&&(ms=co.fixed)),ms&&co&&((fr=co[tt])===null||fr===void 0?void 0:fr.columnType)==="EXPAND_COLUMN"&&co.fixed===void 0&&(co.fixed=ms);const $s=Xe()(`${et}-selection-col`,{[`${et}-selection-col-with-dropdown`]:U&&P==="checkbox"}),fu={fixed:ms,width:E,className:`${et}-selection-column`,title:ke.columnTitle||mo,render:Lo,onCell:ke.onCell,[tt]:{className:$s}};return Wt.map(ko=>ko===Xo?fu:ko)},[en,h,ke,Ve,Mn,li,E,Ur,un,ri,m,Bn,cr,W]),Mn]},ls=d(89489),ac=d(59477),lc=d(6848);const wu="ascend",er="descend";function ja(Se){return typeof Se.sorter=="object"&&typeof Se.sorter.multiple=="number"?Se.sorter.multiple:!1}function Ke(Se){return typeof Se=="function"?Se:Se&&typeof Se=="object"&&Se.compare?Se.compare:!1}function An(Se,ke){return ke?Se[Se.indexOf(ke)+1]:Se[0]}function Cu(Se,ke,st){let pt=[];function Lt(Tt,me){pt.push({column:Tt,key:vs(Tt,me),multiplePriority:ja(Tt),sortOrder:Tt.sortOrder})}return(Se||[]).forEach((Tt,me)=>{const dn=Ua(me,st);Tt.children?("sortOrder"in Tt&&Lt(Tt,dn),pt=[].concat((0,Ti.Z)(pt),(0,Ti.Z)(Cu(Tt.children,ke,dn)))):Tt.sorter&&("sortOrder"in Tt?Lt(Tt,dn):ke&&Tt.defaultSortOrder&&pt.push({column:Tt,key:vs(Tt,dn),multiplePriority:ja(Tt),sortOrder:Tt.defaultSortOrder}))}),pt}function jl(Se,ke,st,pt,Lt,Tt,me,dn){return(ke||[]).map((an,Pn)=>{const Rn=Ua(Pn,dn);let Bn=an;if(Bn.sorter){const E=Bn.sortDirections||Lt,P=Bn.showSorterTooltip===void 0?me:Bn.showSorterTooltip,U=vs(Bn,Rn),q=st.find(un=>{let{key:Ct}=un;return Ct===U}),le=q?q.sortOrder:null,ge=An(E,le);let Me;if(an.sortIcon)Me=an.sortIcon({sortOrder:le});else{const un=E.includes(wu)&&M.createElement(ac.Z,{className:Xe()(`${Se}-column-sorter-up`,{active:le===wu})}),Ct=E.includes(er)&&M.createElement(ls.Z,{className:Xe()(`${Se}-column-sorter-down`,{active:le===er})});Me=M.createElement("span",{className:Xe()(`${Se}-column-sorter`,{[`${Se}-column-sorter-full`]:!!(un&&Ct)})},M.createElement("span",{className:`${Se}-column-sorter-inner`,"aria-hidden":"true"},un,Ct))}const{cancelSort:et,triggerAsc:zt,triggerDesc:Ft}=Tt||{};let gt=et;ge===er?gt=Ft:ge===wu&&(gt=zt);const en=typeof P=="object"?P:{title:gt};Bn=Object.assign(Object.assign({},Bn),{className:Xe()(Bn.className,{[`${Se}-column-sort`]:le}),title:un=>{const Ct=M.createElement("div",{className:`${Se}-column-sorters`},M.createElement("span",{className:`${Se}-column-title`},Ls(an.title,un)),Me);return P?M.createElement(lc.Z,Object.assign({},en),Ct):Ct},onHeaderCell:un=>{const Ct=an.onHeaderCell&&an.onHeaderCell(un)||{},ai=Ct.onClick,ci=Ct.onKeyDown;Ct.onClick=yi=>{pt({column:an,key:U,sortOrder:ge,multiplePriority:ja(an)}),ai==null||ai(yi)},Ct.onKeyDown=yi=>{yi.keyCode===ui.Z.ENTER&&(pt({column:an,key:U,sortOrder:ge,multiplePriority:ja(an)}),ci==null||ci(yi))};const ti=Ko(an.title,{}),Xn=ti==null?void 0:ti.toString();return le?Ct["aria-sort"]=le==="ascend"?"ascending":"descending":Ct["aria-label"]=Xn||"",Ct.className=Xe()(Ct.className,`${Se}-column-has-sorters`),Ct.tabIndex=0,an.ellipsis&&(Ct.title=(ti!=null?ti:"").toString()),Ct}})}return"children"in Bn&&(Bn=Object.assign(Object.assign({},Bn),{children:jl(Se,Bn.children,st,pt,Lt,Tt,me,Rn)})),Bn})}function Pa(Se){const{column:ke,sortOrder:st}=Se;return{column:ke,order:st,field:ke.dataIndex,columnKey:ke.key}}function Ga(Se){const ke=Se.filter(st=>{let{sortOrder:pt}=st;return pt}).map(Pa);return ke.length===0&&Se.length?Object.assign(Object.assign({},Pa(Se[Se.length-1])),{column:void 0}):ke.length<=1?ke[0]||{}:ke}function Wa(Se,ke,st){const pt=ke.slice().sort((me,dn)=>dn.multiplePriority-me.multiplePriority),Lt=Se.slice(),Tt=pt.filter(me=>{let{column:{sorter:dn},sortOrder:an}=me;return Ke(dn)&&an});return Tt.length?Lt.sort((me,dn)=>{for(let an=0;an<Tt.length;an+=1){const Pn=Tt[an],{column:{sorter:Rn},sortOrder:Bn}=Pn,E=Ke(Rn);if(E&&Bn){const P=E(me,dn,Bn);if(P!==0)return Bn===wu?P:-P}}return 0}).map(me=>{const dn=me[st];return dn?Object.assign(Object.assign({},me),{[st]:Wa(dn,ke,st)}):me}):Lt}function Bu(Se){let{prefixCls:ke,mergedColumns:st,onSorterChange:pt,sortDirections:Lt,tableLocale:Tt,showSorterTooltip:me}=Se;const[dn,an]=M.useState(Cu(st,!0)),Pn=M.useMemo(()=>{let U=!0;const q=Cu(st,!1);if(!q.length)return dn;const le=[];function ge(et){U?le.push(et):le.push(Object.assign(Object.assign({},et),{sortOrder:null}))}let Me=null;return q.forEach(et=>{Me===null?(ge(et),et.sortOrder&&(et.multiplePriority===!1?U=!1:Me=!0)):(Me&&et.multiplePriority!==!1||(U=!1),ge(et))}),le},[st,dn]),Rn=M.useMemo(()=>{const U=Pn.map(q=>{let{column:le,sortOrder:ge}=q;return{column:le,order:ge}});return{sortColumns:U,sortColumn:U[0]&&U[0].column,sortOrder:U[0]&&U[0].order}},[Pn]);function Bn(U){let q;U.multiplePriority===!1||!Pn.length||Pn[0].multiplePriority===!1?q=[U]:q=[].concat((0,Ti.Z)(Pn.filter(le=>{let{key:ge}=le;return ge!==U.key})),[U]),an(q),pt(Ga(q),q)}return[U=>jl(ke,U,Pn,Bn,Lt,Tt,me),Pn,Rn,()=>Ga(Pn)]}function Al(Se,ke){return Se.map(st=>{const pt=Object.assign({},st);return pt.title=Ls(st.title,ke),"children"in pt&&(pt.children=Al(pt.children,ke)),pt})}function us(Se){return[M.useCallback(st=>Al(st,Se),[Se])]}var xr=wt((Se,ke)=>{const{_renderTimes:st}=Se,{_renderTimes:pt}=ke;return st!==pt}),Ta=to((Se,ke)=>{const{_renderTimes:st}=Se,{_renderTimes:pt}=ke;return st!==pt}),Qs=d(64993),Wo=d(17313),Gr=d(83116),Ts=d(37613),_o=Se=>{const{componentCls:ke}=Se,st=`${Se.lineWidth}px ${Se.lineType} ${Se.tableBorderColor}`,pt=(Lt,Tt,me)=>({[`&${ke}-${Lt}`]:{[`> ${ke}-container`]:{[`> ${ke}-content, > ${ke}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${ke}-expanded-row-fixed`]:{margin:`-${Tt}px -${me+Se.lineWidth}px`}}}}}});return{[`${ke}-wrapper`]:{[`${ke}${ke}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${ke}-title`]:{border:st,borderBottom:0},[`> ${ke}-container`]:{borderInlineStart:st,borderTop:st,[`
|
|
|
> ${ke}-content,
|
|
|
> ${ke}-header,
|
|
|
> ${ke}-body,
|
|
|
> ${ke}-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:st},"> thead":{"> tr:not(:last-child) > th":{borderBottom:st},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${ke}-cell-fix-right-first::after`]:{borderInlineEnd:st}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${ke}-expanded-row-fixed`]:{margin:`-${Se.tablePaddingVertical}px -${Se.tablePaddingHorizontal+Se.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:Se.lineWidth,bottom:0,borderInlineEnd:st,content:'""'}}}}}},[`&${ke}-scroll-horizontal`]:{[`> ${ke}-container > ${ke}-body`]:{"> table > tbody":{[`
|
|
|
> tr${ke}-expanded-row,
|
|
|
> tr${ke}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},pt("middle",Se.tablePaddingVerticalMiddle,Se.tablePaddingHorizontalMiddle)),pt("small",Se.tablePaddingVerticalSmall,Se.tablePaddingHorizontalSmall)),{[`> ${ke}-footer`]:{border:st,borderTop:0}}),[`${ke}-cell`]:{[`${ke}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${Se.lineWidth}px 0 ${Se.lineWidth}px ${Se.tableHeaderBg}`}},[`${ke}-bordered ${ke}-cell-scrollbar`]:{borderInlineEnd:st}}}},Hs=Se=>{const{componentCls:ke}=Se;return{[`${ke}-wrapper`]:{[`${ke}-cell-ellipsis`]:Object.assign(Object.assign({},Wo.vS),{wordBreak:"keep-all",[`
|
|
|
&${ke}-cell-fix-left-last,
|
|
|
&${ke}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${ke}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${ke}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},uo=Se=>{const{componentCls:ke}=Se;return{[`${ke}-wrapper`]:{[`${ke}-tbody > tr${ke}-placeholder`]:{textAlign:"center",color:Se.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:Se.colorBgContainer}}}}},sa=d(15969),zo=Se=>{const{componentCls:ke,antCls:st,controlInteractiveSize:pt,motionDurationSlow:Lt,lineWidth:Tt,paddingXS:me,lineType:dn,tableBorderColor:an,tableExpandIconBg:Pn,tableExpandColumnWidth:Rn,borderRadius:Bn,fontSize:E,fontSizeSM:P,lineHeight:U,tablePaddingVertical:q,tablePaddingHorizontal:le,tableExpandedRowBg:ge,paddingXXS:Me}=Se,et=pt/2-Tt,zt=et*2+Tt*3,Ft=`${Tt}px ${dn} ${an}`,gt=Me-Tt;return{[`${ke}-wrapper`]:{[`${ke}-expand-icon-col`]:{width:Rn},[`${ke}-row-expand-icon-cell`]:{textAlign:"center",[`${ke}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${ke}-row-indent`]:{height:1,float:"left"},[`${ke}-row-expand-icon`]:Object.assign(Object.assign({},(0,sa.N)(Se)),{position:"relative",float:"left",boxSizing:"border-box",width:zt,height:zt,padding:0,color:"inherit",lineHeight:`${zt}px`,background:Pn,border:Ft,borderRadius:Bn,transform:`scale(${pt/zt})`,transition:`all ${Lt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Lt} ease-out`,content:'""'},"&::before":{top:et,insetInlineEnd:gt,insetInlineStart:gt,height:Tt},"&::after":{top:gt,bottom:gt,insetInlineStart:et,width:Tt,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"}}),[`${ke}-row-indent + ${ke}-row-expand-icon`]:{marginTop:(E*U-Tt*3)/2-Math.ceil((P*1.4-Tt*3)/2),marginInlineEnd:me},[`tr${ke}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:ge}},[`${st}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${ke}-expanded-row-fixed`]:{position:"relative",margin:`-${q}px -${le}px`,padding:`${q}px ${le}px`}}}},ps=Se=>{const{componentCls:ke,antCls:st,iconCls:pt,tableFilterDropdownWidth:Lt,tableFilterDropdownSearchWidth:Tt,paddingXXS:me,paddingXS:dn,colorText:an,lineWidth:Pn,lineType:Rn,tableBorderColor:Bn,tableHeaderIconColor:E,fontSizeSM:P,tablePaddingHorizontal:U,borderRadius:q,motionDurationSlow:le,colorTextDescription:ge,colorPrimary:Me,tableHeaderFilterActiveBg:et,colorTextDisabled:zt,tableFilterDropdownBg:Ft,tableFilterDropdownHeight:gt,controlItemBgHover:en,controlItemBgActive:un,boxShadowSecondary:Ct,filterDropdownMenuBg:ai}=Se,ci=`${st}-dropdown`,ti=`${ke}-filter-dropdown`,Xn=`${st}-tree`,yi=`${Pn}px ${Rn} ${Bn}`;return[{[`${ke}-wrapper`]:{[`${ke}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${ke}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-me,marginInline:`${me}px ${-U/2}px`,padding:`0 ${me}px`,color:E,fontSize:P,borderRadius:q,cursor:"pointer",transition:`all ${le}`,"&:hover":{color:ge,background:et},"&.active":{color:Me}}}},{[`${st}-dropdown`]:{[ti]:Object.assign(Object.assign({},(0,Wo.Wf)(Se)),{minWidth:Lt,backgroundColor:Ft,borderRadius:q,boxShadow:Ct,overflow:"hidden",[`${ci}-menu`]:{maxHeight:gt,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:ai,"&:empty::after":{display:"block",padding:`${dn}px 0`,color:zt,fontSize:P,textAlign:"center",content:'"Not Found"'}},[`${ti}-tree`]:{paddingBlock:`${dn}px 0`,paddingInline:dn,[Xn]:{padding:0},[`${Xn}-treenode ${Xn}-node-content-wrapper:hover`]:{backgroundColor:en},[`${Xn}-treenode-checkbox-checked ${Xn}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:un}}},[`${ti}-search`]:{padding:dn,borderBottom:yi,"&-input":{input:{minWidth:Tt},[pt]:{color:zt}}},[`${ti}-checkall`]:{width:"100%",marginBottom:me,marginInlineStart:me},[`${ti}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${dn-Pn}px ${dn}px`,overflow:"hidden",borderTop:yi}})}},{[`${st}-dropdown ${ti}, ${ti}-submenu`]:{[`${st}-checkbox-wrapper + span`]:{paddingInlineStart:dn,color:an},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},cu=Se=>{const{componentCls:ke,lineWidth:st,colorSplit:pt,motionDurationSlow:Lt,zIndexTableFixed:Tt,tableBg:me,zIndexTableSticky:dn}=Se,an=pt;return{[`${ke}-wrapper`]:{[`
|
|
|
${ke}-cell-fix-left,
|
|
|
${ke}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:Tt,background:me},[`
|
|
|
${ke}-cell-fix-left-first::after,
|
|
|
${ke}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-st,width:30,transform:"translateX(100%)",transition:`box-shadow ${Lt}`,content:'""',pointerEvents:"none"},[`${ke}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${ke}-cell-fix-right-first::after,
|
|
|
${ke}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-st,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Lt}`,content:'""',pointerEvents:"none"},[`${ke}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:dn+1,width:30,transition:`box-shadow ${Lt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${ke}-ping-left`]:{[`&:not(${ke}-has-fix-left) ${ke}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${an}`}},[`
|
|
|
${ke}-cell-fix-left-first::after,
|
|
|
${ke}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${an}`},[`${ke}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${ke}-ping-right`]:{[`&:not(${ke}-has-fix-right) ${ke}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${an}`}},[`
|
|
|
${ke}-cell-fix-right-first::after,
|
|
|
${ke}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${an}`}}}}},Tu=Se=>{const{componentCls:ke,antCls:st}=Se;return{[`${ke}-wrapper`]:{[`${ke}-pagination${st}-pagination`]:{margin:`${Se.margin}px 0`},[`${ke}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:Se.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Vu=Se=>{const{componentCls:ke,tableRadius:st}=Se;return{[`${ke}-wrapper`]:{[ke]:{[`${ke}-title, ${ke}-header`]:{borderRadius:`${st}px ${st}px 0 0`},[`${ke}-title + ${ke}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${ke}-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:st,borderStartEndRadius:st,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:st},"> *:last-child":{borderStartEndRadius:st}}},"&-footer":{borderRadius:`0 0 ${st}px ${st}px`}}}}},Yu=Se=>{const{componentCls:ke}=Se;return{[`${ke}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${ke}-pagination-left`]:{justifyContent:"flex-end"},[`${ke}-pagination-right`]:{justifyContent:"flex-start"},[`${ke}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${ke}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${ke}-row-indent`]:{float:"right"}}}}},el=Se=>{const{componentCls:ke,antCls:st,iconCls:pt,fontSizeIcon:Lt,padding:Tt,paddingXS:me,tableHeaderIconColor:dn,tableHeaderIconColorHover:an,tableSelectionColumnWidth:Pn}=Se;return{[`${ke}-wrapper`]:{[`${ke}-selection-col`]:{width:Pn,[`&${ke}-selection-col-with-dropdown`]:{width:Pn+Lt+Tt/4}},[`${ke}-bordered ${ke}-selection-col`]:{width:Pn+me*2,[`&${ke}-selection-col-with-dropdown`]:{width:Pn+Lt+Tt/4+me*2}},[`
|
|
|
table tr th${ke}-selection-column,
|
|
|
table tr td${ke}-selection-column
|
|
|
`]:{paddingInlineEnd:Se.paddingXS,paddingInlineStart:Se.paddingXS,textAlign:"center",[`${st}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${ke}-selection-column${ke}-cell-fix-left`]:{zIndex:Se.zIndexTableFixed+1},[`table tr th${ke}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${ke}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${ke}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${Se.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${Se.tablePaddingHorizontal/4}px`,[pt]:{color:dn,fontSize:Lt,verticalAlign:"baseline","&:hover":{color:an}}}}}},eu=Se=>{const{componentCls:ke}=Se,st=(pt,Lt,Tt,me)=>({[`${ke}${ke}-${pt}`]:{fontSize:me,[`
|
|
|
${ke}-title,
|
|
|
${ke}-footer,
|
|
|
${ke}-cell,
|
|
|
${ke}-thead > tr > th,
|
|
|
${ke}-tbody > tr > th,
|
|
|
${ke}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${Lt}px ${Tt}px`},[`${ke}-filter-trigger`]:{marginInlineEnd:`-${Tt/2}px`},[`${ke}-expanded-row-fixed`]:{margin:`-${Lt}px -${Tt}px`},[`${ke}-tbody`]:{[`${ke}-wrapper:only-child ${ke}`]:{marginBlock:`-${Lt}px`,marginInline:`${Se.tableExpandColumnWidth-Tt}px -${Tt}px`}},[`${ke}-selection-column`]:{paddingInlineStart:`${Tt/4}px`}}});return{[`${ke}-wrapper`]:Object.assign(Object.assign({},st("middle",Se.tablePaddingVerticalMiddle,Se.tablePaddingHorizontalMiddle,Se.tableFontSizeMiddle)),st("small",Se.tablePaddingVerticalSmall,Se.tablePaddingHorizontalSmall,Se.tableFontSizeSmall))}},ul=Se=>{const{componentCls:ke,marginXXS:st,fontSizeIcon:pt,tableHeaderIconColor:Lt,tableHeaderIconColorHover:Tt}=Se;return{[`${ke}-wrapper`]:{[`${ke}-thead th${ke}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${Se.motionDurationSlow}`,"&:hover":{background:Se.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:Se.colorPrimary},[`
|
|
|
&${ke}-cell-fix-left:hover,
|
|
|
&${ke}-cell-fix-right:hover
|
|
|
`]:{background:Se.tableFixedHeaderSortActiveBg}},[`${ke}-thead th${ke}-column-sort`]:{background:Se.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${ke}-column-sort`]:{background:Se.tableBodySortBg},[`${ke}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${ke}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${ke}-column-sorter`]:{marginInlineStart:st,color:Lt,fontSize:0,transition:`color ${Se.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:pt,"&.active":{color:Se.colorPrimary}},[`${ke}-column-sorter-up + ${ke}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${ke}-column-sorters:hover ${ke}-column-sorter`]:{color:Tt}}}},Wl=Se=>{const{componentCls:ke,opacityLoading:st,tableScrollThumbBg:pt,tableScrollThumbBgHover:Lt,tableScrollThumbSize:Tt,tableScrollBg:me,zIndexTableSticky:dn,stickyScrollBarBorderRadius:an}=Se,Pn=`${Se.lineWidth}px ${Se.lineType} ${Se.tableBorderColor}`;return{[`${ke}-wrapper`]:{[`${ke}-sticky`]:{"&-holder":{position:"sticky",zIndex:dn,background:Se.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Tt}px !important`,zIndex:dn,display:"flex",alignItems:"center",background:me,borderTop:Pn,opacity:st,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:Tt,backgroundColor:pt,borderRadius:an,transition:`all ${Se.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Lt}}}}}}},tl=Se=>{const{componentCls:ke,lineWidth:st,tableBorderColor:pt}=Se,Lt=`${st}px ${Se.lineType} ${pt}`;return{[`${ke}-wrapper`]:{[`${ke}-summary`]:{position:"relative",zIndex:Se.zIndexTableFixed,background:Se.tableBg,"> tr":{"> th, > td":{borderBottom:Lt}}},[`div${ke}-summary`]:{boxShadow:`0 -${st}px 0 ${pt}`}}}},du=Se=>{const{componentCls:ke}=Se,st=`${Se.lineWidth}px ${Se.lineType} ${Se.tableBorderColor}`,pt=`${ke}-expanded-row-cell`;return{[`${ke}-wrapper`]:{[`${ke}-tbody-virtual`]:{[`${ke}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${ke}-cell`]:{borderBottom:st},[`${ke}-expanded-row`]:{[`${pt}${pt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Se.lineWidth}px)`,borderInlineEnd:"none"}}},[`${ke}-bordered`]:{[`${ke}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:st,position:"absolute"},[`${ke}-cell`]:{borderInlineEnd:st,[`&${ke}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-Se.lineWidth,borderInlineStart:st}}}}}}};const kl=Se=>{const{componentCls:ke,fontWeightStrong:st,tablePaddingVertical:pt,tablePaddingHorizontal:Lt,lineWidth:Tt,lineType:me,tableBorderColor:dn,tableFontSize:an,tableBg:Pn,tableRadius:Rn,tableHeaderTextColor:Bn,motionDurationMid:E,tableHeaderBg:P,tableHeaderCellSplitColor:U,tableRowHoverBg:q,tableSelectedRowBg:le,tableSelectedRowHoverBg:ge,tableFooterTextColor:Me,tableFooterBg:et,paddingContentVerticalLG:zt}=Se,Ft=`${Tt}px ${me} ${dn}`;return{[`${ke}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Wo.dF)()),{[ke]:Object.assign(Object.assign({},(0,Wo.Wf)(Se)),{fontSize:an,background:Pn,borderRadius:`${Rn}px ${Rn}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Rn}px ${Rn}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${ke}-cell,
|
|
|
${ke}-thead > tr > th,
|
|
|
${ke}-tbody > tr > th,
|
|
|
${ke}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${zt}px ${Lt}px`,overflowWrap:"break-word"},[`${ke}-title`]:{padding:`${pt}px ${Lt}px`},[`${ke}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:Bn,fontWeight:st,textAlign:"start",background:P,borderBottom:Ft,transition:`background ${E} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${ke}-selection-column):not(${ke}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:U,transform:"translateY(-50%)",transition:`background-color ${E}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${ke}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${E}, border-color ${E}`,borderBottom:Ft,[`
|
|
|
> ${ke}-wrapper:only-child,
|
|
|
> ${ke}-expanded-row-fixed > ${ke}-wrapper:only-child
|
|
|
`]:{[ke]:{marginBlock:`-${pt}px`,marginInline:`${Se.tableExpandColumnWidth-Lt}px -${Lt}px`,[`${ke}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:Bn,fontWeight:st,textAlign:"start",background:P,borderBottom:Ft,transition:`background ${E} ease`},[`
|
|
|
&${ke}-row:hover > th,
|
|
|
&${ke}-row:hover > td,
|
|
|
> th${ke}-cell-row-hover,
|
|
|
> td${ke}-cell-row-hover
|
|
|
`]:{background:q},[`&${ke}-row-selected`]:{"> th, > td":{background:le},"&:hover > th, &:hover > td":{background:ge}}}},[`${ke}-footer`]:{padding:`${pt}px ${Lt}px`,color:Me,background:et}})}};var Vl=(0,Gr.Z)("Table",Se=>{const{colorTextHeading:ke,colorSplit:st,colorIcon:pt,colorIconHover:Lt,opacityLoading:Tt,colorBgContainer:me,controlInteractiveSize:dn,headerBg:an,headerColor:Pn,headerSortActiveBg:Rn,headerSortHoverBg:Bn,bodySortBg:E,rowHoverBg:P,rowSelectedBg:U,rowSelectedHoverBg:q,rowExpandedBg:le,cellPaddingBlock:ge,cellPaddingInline:Me,cellPaddingBlockMD:et,cellPaddingInlineMD:zt,cellPaddingBlockSM:Ft,cellPaddingInlineSM:gt,borderColor:en,footerBg:un,footerColor:Ct,headerBorderRadius:ai,cellFontSize:ci,cellFontSizeMD:ti,cellFontSizeSM:Xn,headerSplitColor:yi,fixedHeaderSortActiveBg:gi,headerFilterHoverBg:ji,filterDropdownBg:h,expandIconBg:m,selectionColumnWidth:W,stickyScrollBarBg:Ve}=Se,_t=new Qs.C(pt),Mn=new Qs.C(Lt),li=2,ri=(0,Ts.TS)(Se,{tableFontSize:ci,tableBg:me,tableRadius:ai,tablePaddingVertical:ge,tablePaddingHorizontal:Me,tablePaddingVerticalMiddle:et,tablePaddingHorizontalMiddle:zt,tablePaddingVerticalSmall:Ft,tablePaddingHorizontalSmall:gt,tableBorderColor:en,tableHeaderTextColor:Pn,tableHeaderBg:an,tableFooterTextColor:Ct,tableFooterBg:un,tableHeaderCellSplitColor:yi,tableHeaderSortBg:Rn,tableHeaderSortHoverBg:Bn,tableHeaderIconColor:_t.clone().setAlpha(_t.getAlpha()*Tt).toRgbString(),tableHeaderIconColorHover:Mn.clone().setAlpha(Mn.getAlpha()*Tt).toRgbString(),tableBodySortBg:E,tableFixedHeaderSortActiveBg:gi,tableHeaderFilterActiveBg:ji,tableFilterDropdownBg:h,tableRowHoverBg:P,tableSelectedRowBg:U,tableSelectedRowHoverBg:q,zIndexTableFixed:li,zIndexTableSticky:li+1,tableFontSizeMiddle:ti,tableFontSizeSmall:Xn,tableSelectionColumnWidth:W,tableExpandIconBg:m,tableExpandColumnWidth:dn+2*Se.padding,tableExpandedRowBg:le,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Ve,tableScrollThumbBgHover:ke,tableScrollBg:st});return[kl(ri),Tu(ri),tl(ri),ul(ri),ps(ri),_o(ri),Vu(ri),zo(ri),tl(ri),uo(ri),el(ri),cu(ri),Wl(ri),Hs(ri),eu(ri),Yu(ri),du(ri)]},Se=>{const{colorFillAlter:ke,colorBgContainer:st,colorTextHeading:pt,colorFillSecondary:Lt,colorFillContent:Tt,controlItemBgActive:me,controlItemBgActiveHover:dn,padding:an,paddingSM:Pn,paddingXS:Rn,colorBorderSecondary:Bn,borderRadiusLG:E,fontSize:P,controlHeight:U,colorTextPlaceholder:q}=Se,le=new Qs.C(Lt).onBackground(st).toHexShortString(),ge=new Qs.C(Tt).onBackground(st).toHexShortString(),Me=new Qs.C(ke).onBackground(st).toHexShortString();return{headerBg:Me,headerColor:pt,headerSortActiveBg:le,headerSortHoverBg:ge,bodySortBg:Me,rowHoverBg:Me,rowSelectedBg:me,rowSelectedHoverBg:dn,rowExpandedBg:ke,cellPaddingBlock:an,cellPaddingInline:an,cellPaddingBlockMD:Pn,cellPaddingInlineMD:Rn,cellPaddingBlockSM:Rn,cellPaddingInlineSM:Rn,borderColor:Bn,headerBorderRadius:E,footerBg:Me,footerColor:pt,cellFontSize:P,cellFontSizeMD:P,cellFontSizeSM:P,headerSplitColor:Bn,fixedHeaderSortActiveBg:le,headerFilterHoverBg:Tt,filterDropdownMenuBg:st,filterDropdownBg:st,expandIconBg:st,selectionColumnWidth:U,stickyScrollBarBg:q,stickyScrollBarBorderRadius:100}});const uc=[],Zu=(Se,ke)=>{const{prefixCls:st,className:pt,rootClassName:Lt,style:Tt,size:me,bordered:dn,dropdownPrefixCls:an,dataSource:Pn,pagination:Rn,rowSelection:Bn,rowKey:E="key",rowClassName:P,columns:U,children:q,childrenColumnName:le,onChange:ge,getPopupContainer:Me,loading:et,expandIcon:zt,expandable:Ft,expandedRowRender:gt,expandIconColumnIndex:en,indentSize:un,scroll:Ct,sortDirections:ai,locale:ci,showSorterTooltip:ti=!0,virtual:Xn}=Se,yi=M.useMemo(()=>U||Fn(q),[U,q]),gi=M.useMemo(()=>yi.some($o=>$o.responsive),[yi]),ji=(0,mi.Z)(gi),h=M.useMemo(()=>{const $o=new Set(Object.keys(ji).filter(Es=>ji[Es]));return yi.filter(Es=>!Es.responsive||Es.responsive.some(la=>$o.has(la)))},[yi,ji]),m=(0,zi.Z)(Se,["className","style","columns"]),{locale:W=ws.Z,direction:Ve,table:_t,renderEmpty:Mn,getPrefixCls:li,getPopupContainer:ri}=M.useContext(Br.E_),Wn=(0,Po.Z)(me),Bi=Object.assign(Object.assign({},W.Table),ci),cr=Pn||uc,Ur=li("table",st),Co=li("dropdown",an),yr=Object.assign({childrenColumnName:le,expandIconColumnIndex:en},Ft),{childrenColumnName:fr="children"}=yr,Wt=M.useMemo(()=>cr.some($o=>$o==null?void 0:$o[fr])?"nest":gt||Ft&&Ft.expandedRowRender?"row":null,[cr]),rr={body:M.useRef()},qr=M.useMemo(()=>typeof E=="function"?E:$o=>$o==null?void 0:$o[E],[E]),[Ut]=zl(cr,fr,qr),Cr={},eo=function($o,Es){let la=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var A,g,S;const R=Object.assign(Object.assign({},Cr),$o);la&&((A=Cr.resetPagination)===null||A===void 0||A.call(Cr),!((g=R.pagination)===null||g===void 0)&&g.current&&(R.pagination.current=1),Rn&&Rn.onChange&&Rn.onChange(1,(S=R.pagination)===null||S===void 0?void 0:S.pageSize)),Ct&&Ct.scrollToFirstRowOnChange!==!1&&rr.body.current&&(0,Pr.Z)(0,{getContainer:()=>rr.body.current}),ge==null||ge(R.pagination,R.filters,R.sorter,{currentDataSource:ks(Wa(cr,R.sorterStates,fr),R.filterStates),action:Es})},mo=($o,Es)=>{eo({sorter:$o,sorterStates:Es},"sort",!1)},[Vs,Lo,Ks,co]=Bu({prefixCls:Ur,mergedColumns:h,onSorterChange:mo,sortDirections:ai||["ascend","descend"],tableLocale:Bi,showSorterTooltip:ti}),Rs=M.useMemo(()=>Wa(cr,Lo,fr),[cr,Lo]);Cr.sorter=co(),Cr.sorterStates=Lo;const ms=($o,Es)=>{eo({filters:$o,filterStates:Es},"filter",!0)},[$s,fu,ko]=Ao({prefixCls:Ur,locale:Bi,dropdownPrefixCls:Co,mergedColumns:h,onFilterChange:ms,getPopupContainer:Me||ri}),Uo=ks(Rs,fu);Cr.filters=ko,Cr.filterStates=fu;const Jo=M.useMemo(()=>{const $o={};return Object.keys(ko).forEach(Es=>{ko[Es]!==null&&($o[Es]=ko[Es])}),Object.assign(Object.assign({},Ks),{filters:$o})},[Ks,ko]),[Ss]=us(Jo),js=($o,Es)=>{eo({pagination:Object.assign(Object.assign({},Cr.pagination),{current:$o,pageSize:Es})},"paginate")},[ro,cs]=Hi(Uo.length,js,Rn);Cr.pagination=Rn===!1?{}:Zo(ro,Rn),Cr.resetPagination=cs;const Js=M.useMemo(()=>{if(Rn===!1||!ro.pageSize)return Uo;const{current:$o=1,total:Es,pageSize:la=Cs}=ro;return Uo.length<Es?Uo.length>la?Uo.slice(($o-1)*la,$o*la):Uo:Uo.slice(($o-1)*la,$o*la)},[!!Rn,Uo,ro&&ro.current,ro&&ro.pageSize,ro&&ro.total]),[Fa,Ba]=$a({prefixCls:Ur,data:Uo,pageData:Js,getRowKey:qr,getRecordByKey:Ut,expandType:Wt,childrenColumnName:fr,locale:Bi,getPopupContainer:Me||ri},Bn),_a=($o,Es,la)=>{let A;return typeof P=="function"?A=Xe()(P($o,Es,la)):A=Xe()(P),Xe()({[`${Ur}-row-selected`]:Ba.has(qr($o,Es))},A)};yr.__PARENT_RENDER_ICON__=yr.expandIcon,yr.expandIcon=yr.expandIcon||zt||da(Bi),Wt==="nest"&&yr.expandIconColumnIndex===void 0?yr.expandIconColumnIndex=Bn?1:0:yr.expandIconColumnIndex>0&&Bn&&(yr.expandIconColumnIndex-=1),typeof yr.indentSize!="number"&&(yr.indentSize=typeof un=="number"?un:15);const xi=M.useCallback($o=>Ss(Fa($s(Vs($o)))),[Vs,$s,Fa]);let Qi,$r;if(Rn!==!1&&(ro!=null&&ro.total)){let $o;ro.size?$o=ro.size:$o=Wn==="small"||Wn==="middle"?"small":void 0;const Es=g=>M.createElement(as.Z,Object.assign({},ro,{className:Xe()(`${Ur}-pagination ${Ur}-pagination-${g}`,ro.className),size:$o})),la=Ve==="rtl"?"left":"right",{position:A}=ro;if(A!==null&&Array.isArray(A)){const g=A.find(Y=>Y.includes("top")),S=A.find(Y=>Y.includes("bottom")),R=A.every(Y=>`${Y}`=="none");!g&&!S&&!R&&($r=Es(la)),g&&(Qi=Es(g.toLowerCase().replace("top",""))),S&&($r=Es(S.toLowerCase().replace("bottom","")))}else $r=Es(la)}let wr;typeof et=="boolean"?wr={spinning:et}:typeof et=="object"&&(wr=Object.assign({spinning:!0},et));const[go,Ho]=Vl(Ur),[,Ro]=(0,As.Z)(),Ys=Xe()(`${Ur}-wrapper`,_t==null?void 0:_t.className,{[`${Ur}-wrapper-rtl`]:Ve==="rtl"},pt,Lt,Ho),Ml=Object.assign(Object.assign({},_t==null?void 0:_t.style),Tt),za=ci&&ci.emptyText||(Mn==null?void 0:Mn("Table"))||M.createElement(no.Z,{componentName:"Table"}),qs=Xn?Ta:xr,Ka={},Zs=M.useMemo(()=>{const{fontSize:$o,lineHeight:Es,padding:la,paddingXS:A,paddingSM:g}=Ro,S=Math.floor($o*Es);switch(Wn){case"large":return la*2+S;case"small":return A*2+S;default:return g*2+S}},[Ro,Wn]);return Xn&&(Ka.listItemHeight=Zs),go(M.createElement("div",{ref:ke,className:Ys,style:Ml},M.createElement(Fo.Z,Object.assign({spinning:!1},wr),Qi,M.createElement(qs,Object.assign({},Ka,m,{columns:h,direction:Ve,expandable:yr,prefixCls:Ur,className:Xe()({[`${Ur}-middle`]:Wn==="middle",[`${Ur}-small`]:Wn==="small",[`${Ur}-bordered`]:dn,[`${Ur}-empty`]:cr.length===0}),data:Js,rowKey:qr,rowClassName:_a,emptyText:za,internalHooks:I,internalRefs:rr,transformColumns:xi})),$r)))};var Dc=M.forwardRef(Zu);const cl=(Se,ke)=>{const st=M.useRef(0);return st.current+=1,M.createElement(Dc,Object.assign({},Se,{ref:ke,_renderTimes:st.current}))},aa=M.forwardRef(cl);aa.SELECTION_COLUMN=Xo,aa.EXPAND_COLUMN=b,aa.SELECTION_ALL=jr,aa.SELECTION_INVERT=Qo,aa.SELECTION_NONE=is,aa.Column=zr,aa.ColumnGroup=$i,aa.Summary=_e;var Il=aa,cc=Il},17574:function(J,C,d){"use strict";d.d(C,{default:function(){return Ye}});var b=d(23130),I=d(26407),L=d(52671),B=d(8657),V=d(92413),Q=d(59301),M={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"},de=M,he=d(7657),re=function(H,Ot){return Q.createElement(he.Z,(0,V.Z)({},H,{ref:Ot,icon:de}))},De=Q.forwardRef(re),ne=De,it=d(92310),Ue=d.n(it),Ie=d(35654),Pe=d(71430),ze=d(36355),Ee=d(56082),fe=d(62892),we=d(20648);const pe=4;function Ne(oe){const{dropPosition:H,dropLevelOffset:Ot,prefixCls:Kt,indent:vt,direction:hn="ltr"}=oe,Rt=hn==="ltr"?"left":"right",hi=hn==="ltr"?"right":"left",yt={[Rt]:-Ot*vt+pe,[hi]:0};switch(H){case-1:yt.top=-3;break;case 1:yt.bottom=-3;break;default:yt.bottom=-3,yt[Rt]=vt+pe;break}return Q.createElement("div",{style:yt,className:`${Kt}-drop-indicator`})}var te=d(71997),Te=Q.forwardRef((oe,H)=>{const{getPrefixCls:Ot,direction:Kt,virtual:vt,tree:hn}=Q.useContext(ze.E_),{prefixCls:Rt,className:hi,showIcon:yt=!1,showLine:si,switcherIcon:qn,blockNode:ln=!1,children:Tn,checkable:xe=!1,selectable:D=!0,draggable:k,motion:G,style:X}=oe,T=Ot("tree",Rt),Re=Ot(),mt=G!=null?G:Object.assign(Object.assign({},(0,fe.Z)(Re)),{motionAppear:!1}),_e=Object.assign(Object.assign({},oe),{checkable:xe,selectable:D,showIcon:yt,motion:mt,blockNode:ln,showLine:!!si,dropIndicatorRender:Ne}),[Le,ct]=(0,we.ZP)(T),ot=Q.useMemo(()=>{if(!k)return!1;let Et={};switch(typeof k){case"function":Et.nodeDraggable=k;break;case"object":Et=Object.assign({},k);break;default:break}return Et.icon!==!1&&(Et.icon=Et.icon||Q.createElement(Ee.Z,null)),Et},[k]),Ze=Et=>Q.createElement(te.Z,{prefixCls:T,switcherIcon:qn,treeNodeProps:Et,showLine:si});return Le(Q.createElement(b.Z,Object.assign({itemHeight:20,ref:H,virtual:vt},_e,{style:Object.assign(Object.assign({},hn==null?void 0:hn.style),X),prefixCls:T,className:Ue()({[`${T}-icon-hide`]:!yt,[`${T}-block-node`]:ln,[`${T}-unselectable`]:!D,[`${T}-rtl`]:Kt==="rtl"},hn==null?void 0:hn.className,hi,ct),direction:Kt,checkable:xe&&Q.createElement("span",{className:`${T}-checkbox-inner`}),selectable:D,switcherIcon:Ze,draggable:ot}),Tn))}),$e;(function(oe){oe[oe.None=0]="None",oe[oe.Start=1]="Start",oe[oe.End=2]="End"})($e||($e={}));function Qe(oe,H){function Ot(Kt){const{key:vt,children:hn}=Kt;H(vt,Kt)!==!1&&Qe(hn||[],H)}oe.forEach(Ot)}function Je(oe){let{treeData:H,expandedKeys:Ot,startKey:Kt,endKey:vt}=oe;const hn=[];let Rt=$e.None;if(Kt&&Kt===vt)return[Kt];if(!Kt||!vt)return[];function hi(yt){return yt===Kt||yt===vt}return Qe(H,yt=>{if(Rt===$e.End)return!1;if(hi(yt)){if(hn.push(yt),Rt===$e.None)Rt=$e.Start;else if(Rt===$e.Start)return Rt=$e.End,!1}else Rt===$e.Start&&hn.push(yt);return Ot.includes(yt)}),hn}function Ce(oe,H){const Ot=(0,I.Z)(H),Kt=[];return Qe(oe,(vt,hn)=>{const Rt=Ot.indexOf(vt);return Rt!==-1&&(Kt.push(hn),Ot.splice(Rt,1)),!!Ot.length}),Kt}var dt=function(oe,H){var Ot={};for(var Kt in oe)Object.prototype.hasOwnProperty.call(oe,Kt)&&H.indexOf(Kt)<0&&(Ot[Kt]=oe[Kt]);if(oe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var vt=0,Kt=Object.getOwnPropertySymbols(oe);vt<Kt.length;vt++)H.indexOf(Kt[vt])<0&&Object.prototype.propertyIsEnumerable.call(oe,Kt[vt])&&(Ot[Kt[vt]]=oe[Kt[vt]]);return Ot};function Xe(oe){const{isLeaf:H,expanded:Ot}=oe;return H?Q.createElement(L.Z,null):Ot?Q.createElement(B.Z,null):Q.createElement(ne,null)}function $t(oe){let{treeData:H,children:Ot}=oe;return H||(0,Pe.zn)(Ot)}const xt=(oe,H)=>{var{defaultExpandAll:Ot,defaultExpandParent:Kt,defaultExpandedKeys:vt}=oe,hn=dt(oe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Rt=Q.useRef(),hi=Q.useRef(),yt=()=>{const{keyEntities:ot}=(0,Pe.I8)($t(hn));let Ze;return Ot?Ze=Object.keys(ot):Kt?Ze=(0,Ie.r7)(hn.expandedKeys||vt||[],ot):Ze=hn.expandedKeys||vt,Ze},[si,qn]=Q.useState(hn.selectedKeys||hn.defaultSelectedKeys||[]),[ln,Tn]=Q.useState(()=>yt());Q.useEffect(()=>{"selectedKeys"in hn&&qn(hn.selectedKeys)},[hn.selectedKeys]),Q.useEffect(()=>{"expandedKeys"in hn&&Tn(hn.expandedKeys)},[hn.expandedKeys]);const xe=(ot,Ze)=>{var Et;return"expandedKeys"in hn||Tn(ot),(Et=hn.onExpand)===null||Et===void 0?void 0:Et.call(hn,ot,Ze)},D=(ot,Ze)=>{var Et;const{multiple:Gt}=hn,{node:Vt,nativeEvent:Pt}=Ze,{key:nn=""}=Vt,vn=$t(hn),We=Object.assign(Object.assign({},Ze),{selected:!0}),Dt=(Pt==null?void 0:Pt.ctrlKey)||(Pt==null?void 0:Pt.metaKey),Qt=Pt==null?void 0:Pt.shiftKey;let bn;Gt&&Dt?(bn=ot,Rt.current=nn,hi.current=bn,We.selectedNodes=Ce(vn,bn)):Gt&&Qt?(bn=Array.from(new Set([].concat((0,I.Z)(hi.current||[]),(0,I.Z)(Je({treeData:vn,expandedKeys:ln,startKey:nn,endKey:Rt.current}))))),We.selectedNodes=Ce(vn,bn)):(bn=[nn],Rt.current=nn,hi.current=bn,We.selectedNodes=Ce(vn,bn)),(Et=hn.onSelect)===null||Et===void 0||Et.call(hn,bn,We),"selectedKeys"in hn||qn(bn)},{getPrefixCls:k,direction:G}=Q.useContext(ze.E_),{prefixCls:X,className:T,showIcon:Re=!0,expandAction:mt="click"}=hn,_e=dt(hn,["prefixCls","className","showIcon","expandAction"]),Le=k("tree",X),ct=Ue()(`${Le}-directory`,{[`${Le}-directory-rtl`]:G==="rtl"},T);return Q.createElement(Te,Object.assign({icon:Xe,ref:H,blockNode:!0},_e,{showIcon:Re,expandAction:mt,prefixCls:Le,className:ct,expandedKeys:ln,selectedKeys:si,onSelect:D,onExpand:xe}))};var St=Q.forwardRef(xt);const Cn=Te;Cn.DirectoryTree=St,Cn.TreeNode=b.O;var Ye=Cn},20648:function(J,C,d){"use strict";d.d(C,{TM:function(){return it},Yk:function(){return ne}});var b=d(93083),I=d(98447),L=d(17313),B=d(8378),V=d(37613),Q=d(83116);const M=new b.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),de=(Ue,Ie)=>({[`.${Ue}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${Ie.motionDurationSlow}`}}}),he=(Ue,Ie)=>({[`.${Ue}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:Ie.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${Ie.lineWidthBold}px solid ${Ie.colorPrimary}`,borderRadius:"50%",content:'""'}}}),re=(Ue,Ie)=>{const{treeCls:Pe,treeNodeCls:ze,treeNodePadding:Ee,titleHeight:fe,nodeSelectedBg:we,nodeHoverBg:pe}=Ie,Ne=Ie.paddingXS;return{[Pe]:Object.assign(Object.assign({},(0,L.Wf)(Ie)),{background:Ie.colorBgContainer,borderRadius:Ie.borderRadius,transition:`background-color ${Ie.motionDurationSlow}`,[`&${Pe}-rtl`]:{[`${Pe}-switcher`]:{"&_close":{[`${Pe}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${Pe}-active-focused)`]:Object.assign({},(0,L.oN)(Ie)),[`${Pe}-list-holder-inner`]:{alignItems:"flex-start"},[`&${Pe}-block-node`]:{[`${Pe}-list-holder-inner`]:{alignItems:"stretch",[`${Pe}-node-content-wrapper`]:{flex:"auto"},[`${ze}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Ee,insetInlineStart:0,border:`1px solid ${Ie.colorPrimary}`,opacity:0,animationName:M,animationDuration:Ie.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ze}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Ee}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${Pe}-node-content-wrapper`]:{color:Ie.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${Pe}-node-content-wrapper`]:Object.assign({},(0,L.oN)(Ie)),[`&:not(${ze}-disabled).filter-node ${Pe}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${Pe}-draggable-icon`]:{flexShrink:0,width:fe,lineHeight:`${fe}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${Ie.motionDurationSlow}`,[`${ze}:hover &`]:{opacity:.45}},[`&${ze}-disabled`]:{[`${Pe}-draggable-icon`]:{visibility:"hidden"}}}},[`${Pe}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:fe}},[`${Pe}-draggable-icon`]:{visibility:"hidden"},[`${Pe}-switcher`]:Object.assign(Object.assign({},de(Ue,Ie)),{position:"relative",flex:"none",alignSelf:"stretch",width:fe,margin:0,lineHeight:`${fe}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${Pe}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:Ie.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:fe/2,bottom:-Ee,marginInlineStart:-1,borderInlineEnd:`1px solid ${Ie.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:fe/2*.8,height:fe/2,borderBottom:`1px solid ${Ie.colorBorder}`,content:'""'}}}),[`${Pe}-checkbox`]:{top:"initial",marginInlineEnd:Ne},[`${Pe}-node-content-wrapper, ${Pe}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:fe,margin:0,padding:`0 ${Ie.paddingXS/2}px`,color:"inherit",lineHeight:`${fe}px`,background:"transparent",borderRadius:Ie.borderRadius,cursor:"pointer",transition:`all ${Ie.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:pe},[`&${Pe}-node-selected`]:{backgroundColor:we},[`${Pe}-iconEle`]:{display:"inline-block",width:fe,height:fe,lineHeight:`${fe}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${Pe}-unselectable ${Pe}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${Pe}-node-content-wrapper`]:Object.assign({lineHeight:`${fe}px`,userSelect:"none"},he(Ue,Ie)),[`${ze}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${Ie.colorPrimary}`}},"&-show-line":{[`${Pe}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:fe/2,bottom:-Ee,borderInlineEnd:`1px solid ${Ie.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${Pe}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ze}-leaf-last`]:{[`${Pe}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${fe/2}px !important`}}}}})}},De=Ue=>{const{treeCls:Ie,treeNodeCls:Pe,treeNodePadding:ze,directoryNodeSelectedBg:Ee,directoryNodeSelectedColor:fe}=Ue;return{[`${Ie}${Ie}-directory`]:{[Pe]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ze,insetInlineStart:0,transition:`background-color ${Ue.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:Ue.controlItemBgHover}},"> *":{zIndex:1},[`${Ie}-switcher`]:{transition:`color ${Ue.motionDurationMid}`},[`${Ie}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${Ie}-node-selected`]:{color:fe,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:Ee},[`${Ie}-switcher`]:{color:fe},[`${Ie}-node-content-wrapper`]:{color:fe,background:"transparent"}}}}}},ne=(Ue,Ie)=>{const Pe=`.${Ue}`,ze=`${Pe}-treenode`,Ee=Ie.paddingXS/2,fe=(0,V.TS)(Ie,{treeCls:Pe,treeNodeCls:ze,treeNodePadding:Ee});return[re(Ue,fe),De(fe)]},it=Ue=>{const{controlHeightSM:Ie}=Ue;return{titleHeight:Ie,nodeHoverBg:Ue.controlItemBgHover,nodeSelectedBg:Ue.controlItemBgActive}};C.ZP=(0,Q.Z)("Tree",(Ue,Ie)=>{let{prefixCls:Pe}=Ie;return[{[Ue.componentCls]:(0,I.C2)(`${Pe}-checkbox`,Ue)},ne(Pe,Ue),(0,B.Z)(Ue)]},Ue=>{const{colorTextLightSolid:Ie,colorPrimary:Pe}=Ue;return Object.assign(Object.assign({},it(Ue)),{directoryNodeSelectedColor:Ie,directoryNodeSelectedBg:Pe})})},71997:function(J,C,d){"use strict";d.d(C,{Z:function(){return ze}});var b=d(92413),I=d(59301),L={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"},B=L,V=d(7657),Q=function(fe,we){return I.createElement(V.Z,(0,b.Z)({},fe,{ref:we,icon:B}))},M=I.forwardRef(Q),de=M,he=d(52671),re=d(58617),De=d(15075),ne=d(43531),it=d(92310),Ue=d.n(it),Ie=d(92343),ze=Ee=>{const{prefixCls:fe,switcherIcon:we,treeNodeProps:pe,showLine:Ne}=Ee,{isLeaf:te,expanded:Ae,loading:Te}=pe;if(Te)return I.createElement(re.Z,{className:`${fe}-switcher-loading-icon`});let $e;if(Ne&&typeof Ne=="object"&&($e=Ne.showLeafIcon),te){if(!Ne)return null;if(typeof $e!="boolean"&&$e){const Ce=typeof $e=="function"?$e(pe):$e,dt=`${fe}-switcher-line-custom-icon`;return(0,Ie.l$)(Ce)?(0,Ie.Tm)(Ce,{className:Ue()(Ce.props.className||"",dt)}):Ce}return $e?I.createElement(he.Z,{className:`${fe}-switcher-line-icon`}):I.createElement("span",{className:`${fe}-switcher-leaf-line`})}const Qe=`${fe}-switcher-icon`,Je=typeof we=="function"?we(pe):we;return(0,Ie.l$)(Je)?(0,Ie.Tm)(Je,{className:Ue()(Je.props.className||"",Qe)}):Je!==void 0?Je:Ne?Ae?I.createElement(De.Z,{className:`${fe}-switcher-line-icon`}):I.createElement(ne.Z,{className:`${fe}-switcher-line-icon`}):I.createElement(de,{className:Qe})}},54580:function(J,C,d){"use strict";d.d(C,{default:function(){return _n}});var b=d(59301),I=d(26407),L=d(92310),B=d.n(L),V=d(92413),Q=d(6909),M=d(4771),de=d(9427),he=d(25440),re=d(400),De=d(37061),ne=d(85195),it=d(39559),Ue=d(20569),Ie=d(26112);function Pe(Mt,Jt){var on="cannot ".concat(Mt.method," ").concat(Mt.action," ").concat(Jt.status,"'"),jt=new Error(on);return jt.status=Jt.status,jt.method=Mt.method,jt.url=Mt.action,jt}function ze(Mt){var Jt=Mt.responseText||Mt.response;if(!Jt)return Jt;try{return JSON.parse(Jt)}catch(on){return Jt}}function Ee(Mt){var Jt=new XMLHttpRequest;Mt.onProgress&&Jt.upload&&(Jt.upload.onprogress=function(fn){fn.total>0&&(fn.percent=fn.loaded/fn.total*100),Mt.onProgress(fn)});var on=new FormData;Mt.data&&Object.keys(Mt.data).forEach(function(gn){var fn=Mt.data[gn];if(Array.isArray(fn)){fn.forEach(function(En){on.append("".concat(gn,"[]"),En)});return}on.append(gn,fn)}),Mt.file instanceof Blob?on.append(Mt.filename,Mt.file,Mt.file.name):on.append(Mt.filename,Mt.file),Jt.onerror=function(fn){Mt.onError(fn)},Jt.onload=function(){return Jt.status<200||Jt.status>=300?Mt.onError(Pe(Mt,Jt),ze(Jt)):Mt.onSuccess(ze(Jt),Jt)},Jt.open(Mt.method,Mt.action,!0),Mt.withCredentials&&"withCredentials"in Jt&&(Jt.withCredentials=!0);var jt=Mt.headers||{};return jt["X-Requested-With"]!==null&&Jt.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(jt).forEach(function(gn){jt[gn]!==null&&Jt.setRequestHeader(gn,jt[gn])}),Jt.send(on),{abort:function(){Jt.abort()}}}var fe=+new Date,we=0;function pe(){return"rc-upload-".concat(fe,"-").concat(++we)}var Ne=d(48736),te=function(Mt,Jt){if(Mt&&Jt){var on=Array.isArray(Jt)?Jt:Jt.split(","),jt=Mt.name||"",gn=Mt.type||"",fn=gn.replace(/\/.*$/,"");return on.some(function(En){var Ln=En.trim();if(/^\*(\/\*)?$/.test(En))return!0;if(Ln.charAt(0)==="."){var Ai=jt.toLowerCase(),zn=Ln.toLowerCase(),ki=[zn];return(zn===".jpg"||zn===".jpeg")&&(ki=[".jpg",".jpeg"]),ki.some(function(ir){return Ai.endsWith(ir)})}return/\/\*$/.test(Ln)?fn===Ln.replace(/\/.*$/,""):gn===Ln?!0:/^\w+$/.test(Ln)?((0,Ne.ZP)(!1,"Upload takes an invalidate 'accept' type '".concat(Ln,"'.Skip for check.")),!0):!1})}return!0};function Ae(Mt,Jt){var on=Mt.createReader(),jt=[];function gn(){on.readEntries(function(fn){var En=Array.prototype.slice.apply(fn);jt=jt.concat(En);var Ln=!En.length;Ln?Jt(jt):gn()})}gn()}var Te=function(Jt,on,jt){var gn=function fn(En,Ln){En&&(En.path=Ln||"",En.isFile?En.file(function(Ai){jt(Ai)&&(En.fullPath&&!Ai.webkitRelativePath&&(Object.defineProperties(Ai,{webkitRelativePath:{writable:!0}}),Ai.webkitRelativePath=En.fullPath.replace(/^\//,""),Object.defineProperties(Ai,{webkitRelativePath:{writable:!1}})),on([Ai]))}):En.isDirectory&&Ae(En,function(Ai){Ai.forEach(function(zn){fn(zn,"".concat(Ln).concat(En.name,"/"))})}))};Jt.forEach(function(fn){gn(fn.webkitGetAsEntry())})},$e=Te,Qe=["component","prefixCls","className","disabled","id","style","multiple","accept","capture","children","directory","openFileDialogOnClick","onMouseEnter","onMouseLeave"],Je=function(Mt){(0,de.Z)(on,Mt);var Jt=(0,he.Z)(on);function on(){var jt;(0,Q.Z)(this,on);for(var gn=arguments.length,fn=new Array(gn),En=0;En<gn;En++)fn[En]=arguments[En];return jt=Jt.call.apply(Jt,[this].concat(fn)),jt.state={uid:pe()},jt.reqs={},jt.fileInput=void 0,jt._isMounted=void 0,jt.onChange=function(Ln){var Ai=jt.props,zn=Ai.accept,ki=Ai.directory,ir=Ln.target.files,lr=(0,I.Z)(ir).filter(function(qt){return!ki||te(qt,zn)});jt.uploadFiles(lr),jt.reset()},jt.onClick=function(Ln){var Ai=jt.fileInput;if(Ai){var zn=Ln.target,ki=jt.props.onClick;if(zn&&zn.tagName==="BUTTON"){var ir=Ai.parentNode;ir.focus(),zn.blur()}Ai.click(),ki&&ki(Ln)}},jt.onKeyDown=function(Ln){Ln.key==="Enter"&&jt.onClick(Ln)},jt.onFileDrop=function(Ln){var Ai=jt.props.multiple;if(Ln.preventDefault(),Ln.type!=="dragover")if(jt.props.directory)$e(Array.prototype.slice.call(Ln.dataTransfer.items),jt.uploadFiles,function(ki){return te(ki,jt.props.accept)});else{var zn=(0,I.Z)(Ln.dataTransfer.files).filter(function(ki){return te(ki,jt.props.accept)});Ai===!1&&(zn=zn.slice(0,1)),jt.uploadFiles(zn)}},jt.uploadFiles=function(Ln){var Ai=(0,I.Z)(Ln),zn=Ai.map(function(ki){return ki.uid=pe(),jt.processFile(ki,Ai)});Promise.all(zn).then(function(ki){var ir=jt.props.onBatchStart;ir==null||ir(ki.map(function(lr){var qt=lr.origin,Ki=lr.parsedFile;return{file:qt,parsedFile:Ki}})),ki.filter(function(lr){return lr.parsedFile!==null}).forEach(function(lr){jt.post(lr)})})},jt.processFile=function(){var Ln=(0,Ue.Z)((0,ne.Z)().mark(function Ai(zn,ki){var ir,lr,qt,Ki,ee,ue,Zn,Be,wt;return(0,ne.Z)().wrap(function(Dn){for(;;)switch(Dn.prev=Dn.next){case 0:if(ir=jt.props.beforeUpload,lr=zn,!ir){Dn.next=14;break}return Dn.prev=3,Dn.next=6,ir(zn,ki);case 6:lr=Dn.sent,Dn.next=12;break;case 9:Dn.prev=9,Dn.t0=Dn.catch(3),lr=!1;case 12:if(lr!==!1){Dn.next=14;break}return Dn.abrupt("return",{origin:zn,parsedFile:null,action:null,data:null});case 14:if(qt=jt.props.action,typeof qt!="function"){Dn.next=21;break}return Dn.next=18,qt(zn);case 18:Ki=Dn.sent,Dn.next=22;break;case 21:Ki=qt;case 22:if(ee=jt.props.data,typeof ee!="function"){Dn.next=29;break}return Dn.next=26,ee(zn);case 26:ue=Dn.sent,Dn.next=30;break;case 29:ue=ee;case 30:return Zn=((0,it.Z)(lr)==="object"||typeof lr=="string")&&lr?lr:zn,Zn instanceof File?Be=Zn:Be=new File([Zn],zn.name,{type:zn.type}),wt=Be,wt.uid=zn.uid,Dn.abrupt("return",{origin:zn,data:ue,parsedFile:wt,action:Ki});case 35:case"end":return Dn.stop()}},Ai,null,[[3,9]])}));return function(Ai,zn){return Ln.apply(this,arguments)}}(),jt.saveFileInput=function(Ln){jt.fileInput=Ln},jt}return(0,M.Z)(on,[{key:"componentDidMount",value:function(){this._isMounted=!0}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort()}},{key:"post",value:function(gn){var fn=this,En=gn.data,Ln=gn.origin,Ai=gn.action,zn=gn.parsedFile;if(this._isMounted){var ki=this.props,ir=ki.onStart,lr=ki.customRequest,qt=ki.name,Ki=ki.headers,ee=ki.withCredentials,ue=ki.method,Zn=Ln.uid,Be=lr||Ee,wt={action:Ai,filename:qt,data:En,file:zn,headers:Ki,withCredentials:ee,method:ue||"post",onProgress:function(Dn){var Gi=fn.props.onProgress;Gi==null||Gi(Dn,zn)},onSuccess:function(Dn,Gi){var Xt=fn.props.onSuccess;Xt==null||Xt(Dn,zn,Gi),delete fn.reqs[Zn]},onError:function(Dn,Gi){var Xt=fn.props.onError;Xt==null||Xt(Dn,Gi,zn),delete fn.reqs[Zn]}};ir(Ln),this.reqs[Zn]=Be(wt)}}},{key:"reset",value:function(){this.setState({uid:pe()})}},{key:"abort",value:function(gn){var fn=this.reqs;if(gn){var En=gn.uid?gn.uid:gn;fn[En]&&fn[En].abort&&fn[En].abort(),delete fn[En]}else Object.keys(fn).forEach(function(Ln){fn[Ln]&&fn[Ln].abort&&fn[Ln].abort(),delete fn[Ln]})}},{key:"render",value:function(){var gn=this.props,fn=gn.component,En=gn.prefixCls,Ln=gn.className,Ai=gn.disabled,zn=gn.id,ki=gn.style,ir=gn.multiple,lr=gn.accept,qt=gn.capture,Ki=gn.children,ee=gn.directory,ue=gn.openFileDialogOnClick,Zn=gn.onMouseEnter,Be=gn.onMouseLeave,wt=(0,De.Z)(gn,Qe),Ni=B()((0,re.Z)((0,re.Z)((0,re.Z)({},En,!0),"".concat(En,"-disabled"),Ai),Ln,Ln)),Dn=ee?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},Gi=Ai?{}:{onClick:ue?this.onClick:function(){},onKeyDown:ue?this.onKeyDown:function(){},onMouseEnter:Zn,onMouseLeave:Be,onDrop:this.onFileDrop,onDragOver:this.onFileDrop,tabIndex:"0"};return b.createElement(fn,(0,V.Z)({},Gi,{className:Ni,role:"button",style:ki}),b.createElement("input",(0,V.Z)({},(0,Ie.Z)(wt,{aria:!0,data:!0}),{id:zn,disabled:Ai,type:"file",ref:this.saveFileInput,onClick:function(Ii){return Ii.stopPropagation()},key:this.state.uid,style:{display:"none"},accept:lr},Dn,{multiple:ir,onChange:this.onChange},qt!=null?{capture:qt}:{})),Ki)}}]),on}(b.Component),Ce=Je;function dt(){}var Xe=function(Mt){(0,de.Z)(on,Mt);var Jt=(0,he.Z)(on);function on(){var jt;(0,Q.Z)(this,on);for(var gn=arguments.length,fn=new Array(gn),En=0;En<gn;En++)fn[En]=arguments[En];return jt=Jt.call.apply(Jt,[this].concat(fn)),jt.uploader=void 0,jt.saveUploader=function(Ln){jt.uploader=Ln},jt}return(0,M.Z)(on,[{key:"abort",value:function(gn){this.uploader.abort(gn)}},{key:"render",value:function(){return b.createElement(Ce,(0,V.Z)({},this.props,{ref:this.saveUploader}))}}]),on}(b.Component);Xe.defaultProps={component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:dt,onError:dt,onSuccess:dt,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0};var $t=Xe,xt=$t,At=d(18929),St=d(4676),Cn=d(36355),Ye=d(1684),oe=d(9763),H=d(31724),Ot={icon:function(Jt,on){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:on}},{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.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:Jt}}]}},name:"file",theme:"twotone"},Kt=Ot,vt=d(7657),hn=function(Jt,on){return b.createElement(vt.Z,(0,V.Z)({},Jt,{ref:on,icon:Kt}))},Rt=b.forwardRef(hn),hi=Rt,yt=d(58617),si={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},qn=si,ln=function(Jt,on){return b.createElement(vt.Z,(0,V.Z)({},Jt,{ref:on,icon:qn}))},Tn=b.forwardRef(ln),xe=Tn,D={icon:function(Jt,on){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:Jt}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:on}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:on}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:on}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:Jt}}]}},name:"picture",theme:"twotone"},k=D,G=function(Jt,on){return b.createElement(vt.Z,(0,V.Z)({},Jt,{ref:on,icon:k}))},X=b.forwardRef(G),T=X,Re=d(77900),mt=d(56762),_e=d(62892),Le=d(92343),ct=d(3113);function ot(Mt){return Object.assign(Object.assign({},Mt),{lastModified:Mt.lastModified,lastModifiedDate:Mt.lastModifiedDate,name:Mt.name,size:Mt.size,type:Mt.type,uid:Mt.uid,percent:0,originFileObj:Mt})}function Ze(Mt,Jt){const on=(0,I.Z)(Jt),jt=on.findIndex(gn=>{let{uid:fn}=gn;return fn===Mt.uid});return jt===-1?on.push(Mt):on[jt]=Mt,on}function Et(Mt,Jt){const on=Mt.uid!==void 0?"uid":"name";return Jt.filter(jt=>jt[on]===Mt[on])[0]}function Gt(Mt,Jt){const on=Mt.uid!==void 0?"uid":"name",jt=Jt.filter(gn=>gn[on]!==Mt[on]);return jt.length===Jt.length?null:jt}const Vt=function(){const Jt=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"").split("/"),jt=Jt[Jt.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(jt)||[""])[0]},Pt=Mt=>Mt.indexOf("image/")===0,nn=Mt=>{if(Mt.type&&!Mt.thumbUrl)return Pt(Mt.type);const Jt=Mt.thumbUrl||Mt.url||"",on=Vt(Jt);return/^data:image\//.test(Jt)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(on)?!0:!(/^data:/.test(Jt)||on)},vn=200;function We(Mt){return new Promise(Jt=>{if(!Mt.type||!Pt(Mt.type)){Jt("");return}const on=document.createElement("canvas");on.width=vn,on.height=vn,on.style.cssText=`position: fixed; left: 0; top: 0; width: ${vn}px; height: ${vn}px; z-index: 9999; display: none;`,document.body.appendChild(on);const jt=on.getContext("2d"),gn=new Image;if(gn.onload=()=>{const{width:fn,height:En}=gn;let Ln=vn,Ai=vn,zn=0,ki=0;fn>En?(Ai=En*(vn/fn),ki=-(Ai-Ln)/2):(Ln=fn*(vn/En),zn=-(Ln-Ai)/2),jt.drawImage(gn,zn,ki,Ln,Ai);const ir=on.toDataURL();document.body.removeChild(on),window.URL.revokeObjectURL(gn.src),Jt(ir)},gn.crossOrigin="anonymous",Mt.type.startsWith("image/svg+xml")){const fn=new FileReader;fn.onload=()=>{fn.result&&(gn.src=fn.result)},fn.readAsDataURL(Mt)}else if(Mt.type.startsWith("image/gif")){const fn=new FileReader;fn.onload=()=>{fn.result&&Jt(fn.result)},fn.readAsDataURL(Mt)}else gn.src=window.URL.createObjectURL(Mt)})}var Dt=d(26227),Qt=d(41464),bn=d(15277),$n=d(93948),Un=d(6848),Hn=b.forwardRef((Mt,Jt)=>{let{prefixCls:on,className:jt,style:gn,locale:fn,listType:En,file:Ln,items:Ai,progress:zn,iconRender:ki,actionIconRender:ir,itemRender:lr,isImgUrl:qt,showPreviewIcon:Ki,showRemoveIcon:ee,showDownloadIcon:ue,previewIcon:Zn,removeIcon:Be,downloadIcon:wt,onPreview:Ni,onDownload:Dn,onClose:Gi}=Mt;var Xt,Ii;const{status:Yt}=Ln,[Wi,Zr]=b.useState(Yt);b.useEffect(()=>{Yt!=="removed"&&Zr(Yt)},[Yt]);const[It,fo]=b.useState(!1);b.useEffect(()=>{const Br=setTimeout(()=>{fo(!0)},300);return()=>{clearTimeout(Br)}},[]);const tn=ki(Ln);let Fi=b.createElement("div",{className:`${on}-icon`},tn);if(En==="picture"||En==="picture-card"||En==="picture-circle")if(Wi==="uploading"||!Ln.thumbUrl&&!Ln.url){const Br=B()(`${on}-list-item-thumbnail`,{[`${on}-list-item-file`]:Wi!=="uploading"});Fi=b.createElement("div",{className:Br},tn)}else{const Br=qt!=null&&qt(Ln)?b.createElement("img",{src:Ln.thumbUrl||Ln.url,alt:Ln.name,className:`${on}-list-item-image`,crossOrigin:Ln.crossOrigin}):tn,no=B()(`${on}-list-item-thumbnail`,{[`${on}-list-item-file`]:qt&&!qt(Ln)});Fi=b.createElement("a",{className:no,onClick:Po=>Ni(Ln,Po),href:Ln.url||Ln.thumbUrl,target:"_blank",rel:"noopener noreferrer"},Br)}const Li=B()(`${on}-list-item`,`${on}-list-item-${Wi}`),Nt=typeof Ln.linkProps=="string"?JSON.parse(Ln.linkProps):Ln.linkProps,Nr=ee?ir((typeof Be=="function"?Be(Ln):Be)||b.createElement(Dt.Z,null),()=>Gi(Ln),on,fn.removeFile):null,ii=ue&&Wi==="done"?ir((typeof wt=="function"?wt(Ln):wt)||b.createElement(Qt.Z,null),()=>Dn(Ln),on,fn.downloadFile):null,ce=En!=="picture-card"&&En!=="picture-circle"&&b.createElement("span",{key:"download-delete",className:B()(`${on}-list-item-actions`,{picture:En==="picture"})},ii,Nr),br=B()(`${on}-list-item-name`),to=Ln.url?[b.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:br,title:Ln.name},Nt,{href:Ln.url,onClick:Br=>Ni(Ln,Br)}),Ln.name),ce]:[b.createElement("span",{key:"view",className:br,onClick:Br=>Ni(Ln,Br),title:Ln.name},Ln.name),ce],mr={pointerEvents:"none",opacity:.5},Xr=Ki?b.createElement("a",{href:Ln.url||Ln.thumbUrl,target:"_blank",rel:"noopener noreferrer",style:Ln.url||Ln.thumbUrl?void 0:mr,onClick:Br=>Ni(Ln,Br),title:fn.previewFile},typeof Zn=="function"?Zn(Ln):Zn||b.createElement(bn.Z,null)):null,qi=(En==="picture-card"||En==="picture-circle")&&Wi!=="uploading"&&b.createElement("span",{className:`${on}-list-item-actions`},Xr,Wi==="done"&&ii,Nr),{getPrefixCls:zr}=b.useContext(Cn.E_),Ri=zr(),$i=b.createElement("div",{className:Li},Fi,to,qi,It&&b.createElement(Re.default,{motionName:`${Ri}-fade`,visible:Wi==="uploading",motionDeadline:2e3},Br=>{let{className:no}=Br;const Po="percent"in Ln?b.createElement($n.Z,Object.assign({},zn,{type:"line",percent:Ln.percent,"aria-label":Ln["aria-label"],"aria-labelledby":Ln["aria-labelledby"]})):null;return b.createElement("div",{className:B()(`${on}-list-item-progress`,no)},Po)})),zi=Ln.response&&typeof Ln.response=="string"?Ln.response:((Xt=Ln.error)===null||Xt===void 0?void 0:Xt.statusText)||((Ii=Ln.error)===null||Ii===void 0?void 0:Ii.message)||fn.uploadError,Pr=Wi==="error"?b.createElement(Un.Z,{title:zi,getPopupContainer:Br=>Br.parentNode},$i):$i;return b.createElement("div",{className:B()(`${on}-list-item-container`,jt),style:gn,ref:Jt},lr?lr(Pr,Ln,Ai,{download:Dn.bind(null,Ln),preview:Ni.bind(null,Ln),remove:Gi.bind(null,Ln)}):Pr)});const Jn=(Mt,Jt)=>{const{listType:on="text",previewFile:jt=We,onPreview:gn,onDownload:fn,onRemove:En,locale:Ln,iconRender:Ai,isImageUrl:zn=nn,prefixCls:ki,items:ir=[],showPreviewIcon:lr=!0,showRemoveIcon:qt=!0,showDownloadIcon:Ki=!1,removeIcon:ee,previewIcon:ue,downloadIcon:Zn,progress:Be={size:[-1,2],showInfo:!1},appendAction:wt,appendActionVisible:Ni=!0,itemRender:Dn,disabled:Gi}=Mt,Xt=(0,mt.Z)(),[Ii,Yt]=b.useState(!1);b.useEffect(()=>{on!=="picture"&&on!=="picture-card"&&on!=="picture-circle"||(ir||[]).forEach(mr=>{typeof document=="undefined"||typeof window=="undefined"||!window.FileReader||!window.File||!(mr.originFileObj instanceof File||mr.originFileObj instanceof Blob)||mr.thumbUrl!==void 0||(mr.thumbUrl="",jt&&jt(mr.originFileObj).then(Xr=>{mr.thumbUrl=Xr||"",Xt()}))})},[on,ir,jt]),b.useEffect(()=>{Yt(!0)},[]);const Wi=(mr,Xr)=>{if(gn)return Xr==null||Xr.preventDefault(),gn(mr)},Zr=mr=>{typeof fn=="function"?fn(mr):mr.url&&window.open(mr.url)},It=mr=>{En==null||En(mr)},fo=mr=>{if(Ai)return Ai(mr,on);const Xr=mr.status==="uploading",qi=zn&&zn(mr)?b.createElement(T,null):b.createElement(hi,null);let zr=Xr?b.createElement(yt.Z,null):b.createElement(xe,null);return on==="picture"?zr=Xr?b.createElement(yt.Z,null):qi:(on==="picture-card"||on==="picture-circle")&&(zr=Xr?Ln.uploading:qi),zr},tn=(mr,Xr,qi,zr)=>{const Ri={type:"text",size:"small",title:zr,onClick:$i=>{Xr(),(0,Le.l$)(mr)&&mr.props.onClick&&mr.props.onClick($i)},className:`${qi}-list-item-action`,disabled:Gi};if((0,Le.l$)(mr)){const $i=(0,Le.Tm)(mr,Object.assign(Object.assign({},mr.props),{onClick:()=>{}}));return b.createElement(ct.ZP,Object.assign({},Ri,{icon:$i}))}return b.createElement(ct.ZP,Object.assign({},Ri),b.createElement("span",null,mr))};b.useImperativeHandle(Jt,()=>({handlePreview:Wi,handleDownload:Zr}));const{getPrefixCls:Fi}=b.useContext(Cn.E_),Li=Fi("upload",ki),Nt=Fi(),Nr=B()(`${Li}-list`,`${Li}-list-${on}`),ii=(0,I.Z)(ir.map(mr=>({key:mr.uid,file:mr})));let br={motionDeadline:2e3,motionName:`${Li}-${on==="picture-card"||on==="picture-circle"?"animate-inline":"animate"}`,keys:ii,motionAppear:Ii};const to=b.useMemo(()=>{const mr=Object.assign({},(0,_e.Z)(Nt));return delete mr.onAppearEnd,delete mr.onEnterEnd,delete mr.onLeaveEnd,mr},[Nt]);return on!=="picture-card"&&on!=="picture-circle"&&(br=Object.assign(Object.assign({},to),br)),b.createElement("div",{className:Nr},b.createElement(Re.CSSMotionList,Object.assign({},br,{component:!1}),mr=>{let{key:Xr,file:qi,className:zr,style:Ri}=mr;return b.createElement(Hn,{key:Xr,locale:Ln,prefixCls:Li,className:zr,style:Ri,file:qi,items:ir,progress:Be,listType:on,isImgUrl:zn,showPreviewIcon:lr,showRemoveIcon:qt,showDownloadIcon:Ki,removeIcon:ee,previewIcon:ue,downloadIcon:Zn,iconRender:fo,actionIconRender:tn,itemRender:Dn,onPreview:Wi,onDownload:Zr,onClose:It})}),wt&&b.createElement(Re.default,Object.assign({},br,{visible:Ni,forceRender:!0}),mr=>{let{className:Xr,style:qi}=mr;return(0,Le.Tm)(wt,zr=>({className:B()(zr.className,Xr),style:Object.assign(Object.assign(Object.assign({},qi),{pointerEvents:Xr?"none":void 0}),zr.style)}))}))};var j=b.forwardRef(Jn),Oi=d(17313),tr=d(8378),Gn=d(83116),Ti=d(37613),Zi=Mt=>{const{componentCls:Jt,iconCls:on}=Mt;return{[`${Jt}-wrapper`]:{[`${Jt}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:Mt.colorFillAlter,border:`${Mt.lineWidth}px dashed ${Mt.colorBorder}`,borderRadius:Mt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Mt.motionDurationSlow}`,[Jt]:{padding:`${Mt.padding}px 0`},[`${Jt}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none"},[`${Jt}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`&:not(${Jt}-disabled):hover`]:{borderColor:Mt.colorPrimaryHover},[`p${Jt}-drag-icon`]:{marginBottom:Mt.margin,[on]:{color:Mt.colorPrimary,fontSize:Mt.uploadThumbnailSize}},[`p${Jt}-text`]:{margin:`0 0 ${Mt.marginXXS}px`,color:Mt.colorTextHeading,fontSize:Mt.fontSizeLG},[`p${Jt}-hint`]:{color:Mt.colorTextDescription,fontSize:Mt.fontSize},[`&${Jt}-disabled`]:{cursor:"not-allowed",[`p${Jt}-drag-icon ${on},
|
|
|
p${Jt}-text,
|
|
|
p${Jt}-hint
|
|
|
`]:{color:Mt.colorTextDisabled}}}}}},ht=Mt=>{const{componentCls:Jt,antCls:on,iconCls:jt,fontSize:gn,lineHeight:fn}=Mt,En=`${Jt}-list-item`,Ln=`${En}-actions`,Ai=`${En}-action`,zn=Math.round(gn*fn);return{[`${Jt}-wrapper`]:{[`${Jt}-list`]:Object.assign(Object.assign({},(0,Oi.dF)()),{lineHeight:Mt.lineHeight,[En]:{position:"relative",height:Mt.lineHeight*gn,marginTop:Mt.marginXS,fontSize:gn,display:"flex",alignItems:"center",transition:`background-color ${Mt.motionDurationSlow}`,"&:hover":{backgroundColor:Mt.controlItemBgHover},[`${En}-name`]:Object.assign(Object.assign({},Oi.vS),{padding:`0 ${Mt.paddingXS}px`,lineHeight:fn,flex:"auto",transition:`all ${Mt.motionDurationSlow}`}),[Ln]:{[Ai]:{opacity:0},[`${Ai}${on}-btn-sm`]:{height:zn,border:0,lineHeight:1,"> span":{transform:"scale(1)"}},[`
|
|
|
${Ai}:focus-visible,
|
|
|
&.picture ${Ai}
|
|
|
`]:{opacity:1},[jt]:{color:Mt.actionsColor,transition:`all ${Mt.motionDurationSlow}`},[`&:hover ${jt}`]:{color:Mt.colorText}},[`${Jt}-icon ${jt}`]:{color:Mt.colorTextDescription,fontSize:gn},[`${En}-progress`]:{position:"absolute",bottom:-Mt.uploadProgressOffset,width:"100%",paddingInlineStart:gn+Mt.paddingXS,fontSize:gn,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${En}:hover ${Ai}`]:{opacity:1,color:Mt.colorText},[`${En}-error`]:{color:Mt.colorError,[`${En}-name, ${Jt}-icon ${jt}`]:{color:Mt.colorError},[Ln]:{[`${jt}, ${jt}:hover`]:{color:Mt.colorError},[Ai]:{opacity:1}}},[`${Jt}-list-item-container`]:{transition:`opacity ${Mt.motionDurationSlow}, height ${Mt.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},_i=d(93083),Rr=d(1950);const Ar=new _i.Keyframes("uploadAnimateInlineIn",{from:{width:0,height:0,margin:0,padding:0,opacity:0}}),Yr=new _i.Keyframes("uploadAnimateInlineOut",{to:{width:0,height:0,margin:0,padding:0,opacity:0}});var Hr=Mt=>{const{componentCls:Jt}=Mt,on=`${Jt}-animate-inline`;return[{[`${Jt}-wrapper`]:{[`${on}-appear, ${on}-enter, ${on}-leave`]:{animationDuration:Mt.motionDurationSlow,animationTimingFunction:Mt.motionEaseInOutCirc,animationFillMode:"forwards"},[`${on}-appear, ${on}-enter`]:{animationName:Ar},[`${on}-leave`]:{animationName:Yr}}},{[`${Jt}-wrapper`]:(0,Rr.J$)(Mt)},Ar,Yr]},dr=d(93398),Vi=d(64993);const fi=Mt=>{const{componentCls:Jt,iconCls:on,uploadThumbnailSize:jt,uploadProgressOffset:gn}=Mt,fn=`${Jt}-list`,En=`${fn}-item`;return{[`${Jt}-wrapper`]:{[`
|
|
|
${fn}${fn}-picture,
|
|
|
${fn}${fn}-picture-card,
|
|
|
${fn}${fn}-picture-circle
|
|
|
`]:{[En]:{position:"relative",height:jt+Mt.lineWidth*2+Mt.paddingXS*2,padding:Mt.paddingXS,border:`${Mt.lineWidth}px ${Mt.lineType} ${Mt.colorBorder}`,borderRadius:Mt.borderRadiusLG,"&:hover":{background:"transparent"},[`${En}-thumbnail`]:Object.assign(Object.assign({},Oi.vS),{width:jt,height:jt,lineHeight:`${jt+Mt.paddingSM}px`,textAlign:"center",flex:"none",[on]:{fontSize:Mt.fontSizeHeading2,color:Mt.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${En}-progress`]:{bottom:gn,width:`calc(100% - ${Mt.paddingSM*2}px)`,marginTop:0,paddingInlineStart:jt+Mt.paddingXS}},[`${En}-error`]:{borderColor:Mt.colorError,[`${En}-thumbnail ${on}`]:{[`svg path[fill='${dr.blue[0]}']`]:{fill:Mt.colorErrorBg},[`svg path[fill='${dr.blue.primary}']`]:{fill:Mt.colorError}}},[`${En}-uploading`]:{borderStyle:"dashed",[`${En}-name`]:{marginBottom:gn}}},[`${fn}${fn}-picture-circle ${En}`]:{[`&, &::before, ${En}-thumbnail`]:{borderRadius:"50%"}}}}},at=Mt=>{const{componentCls:Jt,iconCls:on,fontSizeLG:jt,colorTextLightSolid:gn}=Mt,fn=`${Jt}-list`,En=`${fn}-item`,Ln=Mt.uploadPicCardSize;return{[`
|
|
|
${Jt}-wrapper${Jt}-picture-card-wrapper,
|
|
|
${Jt}-wrapper${Jt}-picture-circle-wrapper
|
|
|
`]:Object.assign(Object.assign({},(0,Oi.dF)()),{display:"inline-block",width:"100%",[`${Jt}${Jt}-select`]:{width:Ln,height:Ln,marginInlineEnd:Mt.marginXS,marginBottom:Mt.marginXS,textAlign:"center",verticalAlign:"top",backgroundColor:Mt.colorFillAlter,border:`${Mt.lineWidth}px dashed ${Mt.colorBorder}`,borderRadius:Mt.borderRadiusLG,cursor:"pointer",transition:`border-color ${Mt.motionDurationSlow}`,[`> ${Jt}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${Jt}-disabled):hover`]:{borderColor:Mt.colorPrimary}},[`${fn}${fn}-picture-card, ${fn}${fn}-picture-circle`]:{[`${fn}-item-container`]:{display:"inline-block",width:Ln,height:Ln,marginBlock:`0 ${Mt.marginXS}px`,marginInline:`0 ${Mt.marginXS}px`,verticalAlign:"top"},"&::after":{display:"none"},[En]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Mt.paddingXS*2}px)`,height:`calc(100% - ${Mt.paddingXS*2}px)`,backgroundColor:Mt.colorBgMask,opacity:0,transition:`all ${Mt.motionDurationSlow}`,content:'" "'}},[`${En}:hover`]:{[`&::before, ${En}-actions`]:{opacity:1}},[`${En}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${Mt.motionDurationSlow}`,[`${on}-eye, ${on}-download, ${on}-delete`]:{zIndex:10,width:jt,margin:`0 ${Mt.marginXXS}px`,fontSize:jt,cursor:"pointer",transition:`all ${Mt.motionDurationSlow}`,svg:{verticalAlign:"baseline"}}},[`${En}-actions, ${En}-actions:hover`]:{[`${on}-eye, ${on}-download, ${on}-delete`]:{color:new Vi.C(gn).setAlpha(.65).toRgbString(),"&:hover":{color:gn}}},[`${En}-thumbnail, ${En}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${En}-name`]:{display:"none",textAlign:"center"},[`${En}-file + ${En}-name`]:{position:"absolute",bottom:Mt.margin,display:"block",width:`calc(100% - ${Mt.paddingXS*2}px)`},[`${En}-uploading`]:{[`&${En}`]:{backgroundColor:Mt.colorFillAlter},[`&::before, ${on}-eye, ${on}-download, ${on}-delete`]:{display:"none"}},[`${En}-progress`]:{bottom:Mt.marginXL,width:`calc(100% - ${Mt.paddingXS*2}px)`,paddingInlineStart:0}}}),[`${Jt}-wrapper${Jt}-picture-circle-wrapper`]:{[`${Jt}${Jt}-select`]:{borderRadius:"50%"}}}};var Qn=Mt=>{const{componentCls:Jt}=Mt;return{[`${Jt}-rtl`]:{direction:"rtl"}}};const ft=Mt=>{const{componentCls:Jt,colorTextDisabled:on}=Mt;return{[`${Jt}-wrapper`]:Object.assign(Object.assign({},(0,Oi.Wf)(Mt)),{[Jt]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${Jt}-select`]:{display:"inline-block"},[`${Jt}-disabled`]:{color:on,cursor:"not-allowed"}})}};var je=(0,Gn.Z)("Upload",Mt=>{const{fontSizeHeading3:Jt,fontSize:on,lineHeight:jt,lineWidth:gn,controlHeightLG:fn}=Mt,En=Math.round(on*jt),Ln=(0,Ti.TS)(Mt,{uploadThumbnailSize:Jt*2,uploadProgressOffset:En/2+gn,uploadPicCardSize:fn*2.55});return[ft(Ln),Zi(Ln),fi(Ln),at(Ln),ht(Ln),Hr(Ln),Qn(Ln),(0,tr.Z)(Ln)]},Mt=>({actionsColor:Mt.colorTextDescription})),sn=function(Mt,Jt,on,jt){function gn(fn){return fn instanceof on?fn:new on(function(En){En(fn)})}return new(on||(on=Promise))(function(fn,En){function Ln(ki){try{zn(jt.next(ki))}catch(ir){En(ir)}}function Ai(ki){try{zn(jt.throw(ki))}catch(ir){En(ir)}}function zn(ki){ki.done?fn(ki.value):gn(ki.value).then(Ln,Ai)}zn((jt=jt.apply(Mt,Jt||[])).next())})};const In=`__LIST_IGNORE_${Date.now()}__`,ni=(Mt,Jt)=>{const{fileList:on,defaultFileList:jt,onRemove:gn,showUploadList:fn=!0,listType:En="text",onPreview:Ln,onDownload:Ai,onChange:zn,onDrop:ki,previewFile:ir,disabled:lr,locale:qt,iconRender:Ki,isImageUrl:ee,progress:ue,prefixCls:Zn,className:Be,type:wt="select",children:Ni,style:Dn,itemRender:Gi,maxCount:Xt,data:Ii={},multiple:Yt=!1,action:Wi="",accept:Zr="",supportServerRender:It=!0,rootClassName:fo}=Mt,tn=b.useContext(Ye.Z),Fi=lr!=null?lr:tn,[Li,Nt]=(0,At.Z)(jt||[],{value:on,postState:Jr=>Jr!=null?Jr:[]}),[Nr,ii]=b.useState("drop"),ce=b.useRef(null);b.useMemo(()=>{const Jr=Date.now();(on||[]).forEach((oo,ts)=>{!oo.uid&&!Object.isFrozen(oo)&&(oo.uid=`__AUTO__${Jr}_${ts}__`)})},[on]);const br=(Jr,oo,ts)=>{let bo=(0,I.Z)(oo),Or=!1;Xt===1?bo=bo.slice(-1):Xt&&(Or=bo.length>Xt,bo=bo.slice(0,Xt)),(0,St.flushSync)(()=>{Nt(bo)});const po={file:Jr,fileList:bo};ts&&(po.event=ts),(!Or||bo.some(va=>va.uid===Jr.uid))&&(0,St.flushSync)(()=>{zn==null||zn(po)})},to=(Jr,oo)=>sn(void 0,void 0,void 0,function*(){const{beforeUpload:ts,transformFile:bo}=Mt;let Or=Jr;if(ts){const po=yield ts(Jr,oo);if(po===!1)return!1;if(delete Jr[In],po===In)return Object.defineProperty(Jr,In,{value:!0,configurable:!0}),!1;typeof po=="object"&&po&&(Or=po)}return bo&&(Or=yield bo(Or)),Or}),mr=Jr=>{const oo=Jr.filter(Or=>!Or.file[In]);if(!oo.length)return;const ts=oo.map(Or=>ot(Or.file));let bo=(0,I.Z)(Li);ts.forEach(Or=>{bo=Ze(Or,bo)}),ts.forEach((Or,po)=>{let va=Or;if(oo[po].parsedFile)Or.status="uploading";else{const{originFileObj:gr}=Or;let xn;try{xn=new File([gr],gr.name,{type:gr.type})}catch(ur){xn=new Blob([gr],{type:gr.type}),xn.name=gr.name,xn.lastModifiedDate=new Date,xn.lastModified=new Date().getTime()}xn.uid=Or.uid,va=xn}br(va,bo)})},Xr=(Jr,oo,ts)=>{try{typeof Jr=="string"&&(Jr=JSON.parse(Jr))}catch(po){}if(!Et(oo,Li))return;const bo=ot(oo);bo.status="done",bo.percent=100,bo.response=Jr,bo.xhr=ts;const Or=Ze(bo,Li);br(bo,Or)},qi=(Jr,oo)=>{if(!Et(oo,Li))return;const ts=ot(oo);ts.status="uploading",ts.percent=Jr.percent;const bo=Ze(ts,Li);br(ts,bo,Jr)},zr=(Jr,oo,ts)=>{if(!Et(ts,Li))return;const bo=ot(ts);bo.error=Jr,bo.response=oo,bo.status="error";const Or=Ze(bo,Li);br(bo,Or)},Ri=Jr=>{let oo;Promise.resolve(typeof gn=="function"?gn(Jr):gn).then(ts=>{var bo;if(ts===!1)return;const Or=Gt(Jr,Li);Or&&(oo=Object.assign(Object.assign({},Jr),{status:"removed"}),Li==null||Li.forEach(po=>{const va=oo.uid!==void 0?"uid":"name";po[va]===oo[va]&&!Object.isFrozen(po)&&(po.status="removed")}),(bo=ce.current)===null||bo===void 0||bo.abort(oo),br(oo,Or))})},$i=Jr=>{ii(Jr.type),Jr.type==="drop"&&(ki==null||ki(Jr))};b.useImperativeHandle(Jt,()=>({onBatchStart:mr,onSuccess:Xr,onProgress:qi,onError:zr,fileList:Li,upload:ce.current}));const{getPrefixCls:zi,direction:Pr,upload:Br}=b.useContext(Cn.E_),no=zi("upload",Zn),Po=Object.assign(Object.assign({onBatchStart:mr,onError:zr,onProgress:qi,onSuccess:Xr},Mt),{data:Ii,multiple:Yt,action:Wi,accept:Zr,supportServerRender:It,prefixCls:no,disabled:Fi,beforeUpload:to,onChange:void 0});delete Po.className,delete Po.style,(!Ni||Fi)&&delete Po.id;const[mi,ws]=je(no),[as]=(0,oe.Z)("Upload",H.Z.Upload),{showRemoveIcon:Fo,showPreviewIcon:As,showDownloadIcon:Xs,removeIcon:da,previewIcon:vs,downloadIcon:Ua}=typeof fn=="boolean"?{}:fn,Ls=(Jr,oo)=>fn?b.createElement(j,{prefixCls:no,listType:En,items:Li,previewFile:ir,onPreview:Ln,onDownload:Ai,onRemove:Ri,showRemoveIcon:!Fi&&Fo,showPreviewIcon:As,showDownloadIcon:Xs,removeIcon:da,previewIcon:vs,downloadIcon:Ua,iconRender:Ki,locale:Object.assign(Object.assign({},as),qt),isImageUrl:ee,progress:ue,appendAction:Jr,appendActionVisible:oo,itemRender:Gi,disabled:Fi}):Jr,Ko=B()(`${no}-wrapper`,Be,fo,ws,Br==null?void 0:Br.className,{[`${no}-rtl`]:Pr==="rtl",[`${no}-picture-card-wrapper`]:En==="picture-card",[`${no}-picture-circle-wrapper`]:En==="picture-circle"}),Ht=Object.assign(Object.assign({},Br==null?void 0:Br.style),Dn);if(wt==="drag"){const Jr=B()(ws,no,`${no}-drag`,{[`${no}-drag-uploading`]:Li.some(oo=>oo.status==="uploading"),[`${no}-drag-hover`]:Nr==="dragover",[`${no}-disabled`]:Fi,[`${no}-rtl`]:Pr==="rtl"});return mi(b.createElement("span",{className:Ko},b.createElement("div",{className:Jr,style:Ht,onDrop:$i,onDragOver:$i,onDragLeave:$i},b.createElement(xt,Object.assign({},Po,{ref:ce,className:`${no}-btn`}),b.createElement("div",{className:`${no}-drag-container`},Ni))),Ls()))}const Ds=B()(no,`${no}-select`,{[`${no}-disabled`]:Fi}),Cl=(Jr=>b.createElement("div",{className:Ds,style:Jr},b.createElement(xt,Object.assign({},Po,{ref:ce}))))(Ni?void 0:{display:"none"});return mi(En==="picture-card"||En==="picture-circle"?b.createElement("span",{className:Ko},Ls(Cl,!!Ni)):b.createElement("span",{className:Ko},Cl,Ls()))};var ut=b.forwardRef(ni),yn=function(Mt,Jt){var on={};for(var jt in Mt)Object.prototype.hasOwnProperty.call(Mt,jt)&&Jt.indexOf(jt)<0&&(on[jt]=Mt[jt]);if(Mt!=null&&typeof Object.getOwnPropertySymbols=="function")for(var gn=0,jt=Object.getOwnPropertySymbols(Mt);gn<jt.length;gn++)Jt.indexOf(jt[gn])<0&&Object.prototype.propertyIsEnumerable.call(Mt,jt[gn])&&(on[jt[gn]]=Mt[jt[gn]]);return on},Si=b.forwardRef((Mt,Jt)=>{var{style:on,height:jt}=Mt,gn=yn(Mt,["style","height"]);return b.createElement(ut,Object.assign({ref:Jt},gn,{type:"drag",style:Object.assign(Object.assign({},on),{height:jt})}))});const Zt=ut;Zt.Dragger=Si,Zt.LIST_IGNORE=In;var _n=Zt},99498:function(J,C,d){(function(b){b(d(89780))})(function(b){b.defineOption("placeholder","",function(de,he,re){var De=re&&re!=b.Init;if(he&&!De)de.on("blur",V),de.on("change",Q),de.on("swapDoc",Q),b.on(de.getInputField(),"compositionupdate",de.state.placeholderCompose=function(){B(de)}),Q(de);else if(!he&&De){de.off("blur",V),de.off("change",Q),de.off("swapDoc",Q),b.off(de.getInputField(),"compositionupdate",de.state.placeholderCompose),I(de);var ne=de.getWrapperElement();ne.className=ne.className.replace(" CodeMirror-empty","")}he&&!de.hasFocus()&&V(de)});function I(de){de.state.placeholder&&(de.state.placeholder.parentNode.removeChild(de.state.placeholder),de.state.placeholder=null)}function L(de){I(de);var he=de.state.placeholder=document.createElement("pre");he.style.cssText="height: 0; overflow: visible",he.style.direction=de.getOption("direction"),he.className="CodeMirror-placeholder CodeMirror-line-like";var re=de.getOption("placeholder");typeof re=="string"&&(re=document.createTextNode(re)),he.appendChild(re),de.display.lineSpace.insertBefore(he,de.display.lineSpace.firstChild)}function B(de){setTimeout(function(){var he=!1,re=de.getInputField();re.nodeName=="TEXTAREA"?he=!re.value:de.lineCount()==1&&(he=!/[^\u200b]/.test(re.querySelector(".CodeMirror-line").textContent)),he?L(de):I(de)},20)}function V(de){M(de)&&L(de)}function Q(de){var he=de.getWrapperElement(),re=M(de);he.className=he.className.replace(" CodeMirror-empty","")+(re?" CodeMirror-empty":""),re?L(de):I(de)}function M(de){return de.lineCount()===1&&de.getLine(0)===""}})},25717:function(J,C,d){(function(b){b(d(89780))})(function(b){var I={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},L=b.Pos;b.defineOption("autoCloseBrackets",!1,function(Ie,Pe,ze){ze&&ze!=b.Init&&(Ie.removeKeyMap(V),Ie.state.closeBrackets=null),Pe&&(Q(B(Pe,"pairs")),Ie.state.closeBrackets=Pe,Ie.addKeyMap(V))});function B(Ie,Pe){return Pe=="pairs"&&typeof Ie=="string"?Ie:typeof Ie=="object"&&Ie[Pe]!=null?Ie[Pe]:I[Pe]}var V={Backspace:he,Enter:re};function Q(Ie){for(var Pe=0;Pe<Ie.length;Pe++){var ze=Ie.charAt(Pe),Ee="'"+ze+"'";V[Ee]||(V[Ee]=M(ze))}}Q(I.pairs+"`");function M(Ie){return function(Pe){return ne(Pe,Ie)}}function de(Ie){var Pe=Ie.state.closeBrackets;if(!Pe||Pe.override)return Pe;var ze=Ie.getModeAt(Ie.getCursor());return ze.closeBrackets||Pe}function he(Ie){var Pe=de(Ie);if(!Pe||Ie.getOption("disableInput"))return b.Pass;for(var ze=B(Pe,"pairs"),Ee=Ie.listSelections(),fe=0;fe<Ee.length;fe++){if(!Ee[fe].empty())return b.Pass;var we=it(Ie,Ee[fe].head);if(!we||ze.indexOf(we)%2!=0)return b.Pass}for(var fe=Ee.length-1;fe>=0;fe--){var pe=Ee[fe].head;Ie.replaceRange("",L(pe.line,pe.ch-1),L(pe.line,pe.ch+1),"+delete")}}function re(Ie){var Pe=de(Ie),ze=Pe&&B(Pe,"explode");if(!ze||Ie.getOption("disableInput"))return b.Pass;for(var Ee=Ie.listSelections(),fe=0;fe<Ee.length;fe++){if(!Ee[fe].empty())return b.Pass;var we=it(Ie,Ee[fe].head);if(!we||ze.indexOf(we)%2!=0)return b.Pass}Ie.operation(function(){var pe=Ie.lineSeparator()||`
|
|
|
`;Ie.replaceSelection(pe+pe,null),Ie.execCommand("goCharLeft"),Ee=Ie.listSelections();for(var Ne=0;Ne<Ee.length;Ne++){var te=Ee[Ne].head.line;Ie.indentLine(te,null,!0),Ie.indentLine(te+1,null,!0)}})}function De(Ie){var Pe=b.cmpPos(Ie.anchor,Ie.head)>0;return{anchor:new L(Ie.anchor.line,Ie.anchor.ch+(Pe?-1:1)),head:new L(Ie.head.line,Ie.head.ch+(Pe?1:-1))}}function ne(Ie,Pe){var ze=de(Ie);if(!ze||Ie.getOption("disableInput"))return b.Pass;var Ee=B(ze,"pairs"),fe=Ee.indexOf(Pe);if(fe==-1)return b.Pass;for(var we=B(ze,"closeBefore"),pe=B(ze,"triples"),Ne=Ee.charAt(fe+1)==Pe,te=Ie.listSelections(),Ae=fe%2==0,Te,$e=0;$e<te.length;$e++){var Qe=te[$e],Je=Qe.head,Ce,dt=Ie.getRange(Je,L(Je.line,Je.ch+1));if(Ae&&!Qe.empty())Ce="surround";else if((Ne||!Ae)&&dt==Pe)Ne&&Ue(Ie,Je)?Ce="both":pe.indexOf(Pe)>=0&&Ie.getRange(Je,L(Je.line,Je.ch+3))==Pe+Pe+Pe?Ce="skipThree":Ce="skip";else if(Ne&&Je.ch>1&&pe.indexOf(Pe)>=0&&Ie.getRange(L(Je.line,Je.ch-2),Je)==Pe+Pe){if(Je.ch>2&&/\bstring/.test(Ie.getTokenTypeAt(L(Je.line,Je.ch-2))))return b.Pass;Ce="addFour"}else if(Ne){var Xe=Je.ch==0?" ":Ie.getRange(L(Je.line,Je.ch-1),Je);if(!b.isWordChar(dt)&&Xe!=Pe&&!b.isWordChar(Xe))Ce="both";else return b.Pass}else if(Ae&&(dt.length===0||/\s/.test(dt)||we.indexOf(dt)>-1))Ce="both";else return b.Pass;if(!Te)Te=Ce;else if(Te!=Ce)return b.Pass}var $t=fe%2?Ee.charAt(fe-1):Pe,xt=fe%2?Pe:Ee.charAt(fe+1);Ie.operation(function(){if(Te=="skip")Ie.execCommand("goCharRight");else if(Te=="skipThree")for(var At=0;At<3;At++)Ie.execCommand("goCharRight");else if(Te=="surround"){for(var St=Ie.getSelections(),At=0;At<St.length;At++)St[At]=$t+St[At]+xt;Ie.replaceSelections(St,"around"),St=Ie.listSelections().slice();for(var At=0;At<St.length;At++)St[At]=De(St[At]);Ie.setSelections(St)}else Te=="both"?(Ie.replaceSelection($t+xt,null),Ie.triggerElectric($t+xt),Ie.execCommand("goCharLeft")):Te=="addFour"&&(Ie.replaceSelection($t+$t+$t+$t,"before"),Ie.execCommand("goCharRight"))})}function it(Ie,Pe){var ze=Ie.getRange(L(Pe.line,Pe.ch-1),L(Pe.line,Pe.ch+1));return ze.length==2?ze:null}function Ue(Ie,Pe){var ze=Ie.getTokenAt(L(Pe.line,Pe.ch+1));return/\bstring/.test(ze.type)&&ze.start==Pe.ch&&(Pe.ch==0||!/\bstring/.test(Ie.getTokenTypeAt(Pe)))}})},6313:function(J,C,d){(function(b){b(d(89780),d(32855))})(function(b){b.defineOption("autoCloseTags",!1,function(he,re,De){if(De!=b.Init&&De&&he.removeKeyMap("autoCloseTags"),!!re){var ne={name:"autoCloseTags"};(typeof re!="object"||re.whenClosing!==!1)&&(ne["'/'"]=function(it){return Q(it)}),(typeof re!="object"||re.whenOpening!==!1)&&(ne["'>'"]=function(it){return B(it)}),he.addKeyMap(ne)}});var I=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],L=["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 B(he){if(he.getOption("disableInput"))return b.Pass;for(var re=he.listSelections(),De=[],ne=he.getOption("autoCloseTags"),it=0;it<re.length;it++){if(!re[it].empty())return b.Pass;var Ue=re[it].head,Ie=he.getTokenAt(Ue),Pe=b.innerMode(he.getMode(),Ie.state),ze=Pe.state,Ee=Pe.mode.xmlCurrentTag&&Pe.mode.xmlCurrentTag(ze),fe=Ee&&Ee.name;if(!fe)return b.Pass;var we=Pe.mode.configuration=="html",pe=typeof ne=="object"&&ne.dontCloseTags||we&&I,Ne=typeof ne=="object"&&ne.indentTags||we&&L;Ie.end>Ue.ch&&(fe=fe.slice(0,fe.length-Ie.end+Ue.ch));var te=fe.toLowerCase();if(!fe||Ie.type=="string"&&(Ie.end!=Ue.ch||!/[\"\']/.test(Ie.string.charAt(Ie.string.length-1))||Ie.string.length==1)||Ie.type=="tag"&&Ee.close||Ie.string.indexOf("/")==Ue.ch-Ie.start-1||pe&&M(pe,te)>-1||de(he,Pe.mode.xmlCurrentContext&&Pe.mode.xmlCurrentContext(ze)||[],fe,Ue,!0))return b.Pass;var Ae=typeof ne=="object"&&ne.emptyTags;if(Ae&&M(Ae,fe)>-1){De[it]={text:"/>",newPos:b.Pos(Ue.line,Ue.ch+2)};continue}var Te=Ne&&M(Ne,te)>-1;De[it]={indent:Te,text:">"+(Te?`
|
|
|
|
|
|
`:"")+"</"+fe+">",newPos:Te?b.Pos(Ue.line+1,0):b.Pos(Ue.line,Ue.ch+1)}}for(var $e=typeof ne=="object"&&ne.dontIndentOnAutoClose,it=re.length-1;it>=0;it--){var Qe=De[it];he.replaceRange(Qe.text,re[it].head,re[it].anchor,"+insert");var Je=he.listSelections().slice(0);Je[it]={head:Qe.newPos,anchor:Qe.newPos},he.setSelections(Je),!$e&&Qe.indent&&(he.indentLine(Qe.newPos.line,null,!0),he.indentLine(Qe.newPos.line+1,null,!0))}}function V(he,re){for(var De=he.listSelections(),ne=[],it=re?"/":"</",Ue=he.getOption("autoCloseTags"),Ie=typeof Ue=="object"&&Ue.dontIndentOnSlash,Pe=0;Pe<De.length;Pe++){if(!De[Pe].empty())return b.Pass;var ze=De[Pe].head,Ee=he.getTokenAt(ze),fe=b.innerMode(he.getMode(),Ee.state),we=fe.state;if(re&&(Ee.type=="string"||Ee.string.charAt(0)!="<"||Ee.start!=ze.ch-1))return b.Pass;var pe,Ne=fe.mode.name!="xml"&&he.getMode().name=="htmlmixed";if(Ne&&fe.mode.name=="javascript")pe=it+"script";else if(Ne&&fe.mode.name=="css")pe=it+"style";else{var te=fe.mode.xmlCurrentContext&&fe.mode.xmlCurrentContext(we);if(!te||te.length&&de(he,te,te[te.length-1],ze))return b.Pass;pe=it+te[te.length-1]}he.getLine(ze.line).charAt(Ee.end)!=">"&&(pe+=">"),ne[Pe]=pe}if(he.replaceSelections(ne),De=he.listSelections(),!Ie)for(var Pe=0;Pe<De.length;Pe++)(Pe==De.length-1||De[Pe].head.line<De[Pe+1].head.line)&&he.indentLine(De[Pe].head.line)}function Q(he){return he.getOption("disableInput")?b.Pass:V(he,!0)}b.commands.closeTag=function(he){return V(he)};function M(he,re){if(he.indexOf)return he.indexOf(re);for(var De=0,ne=he.length;De<ne;++De)if(he[De]==re)return De;return-1}function de(he,re,De,ne,it){if(!b.scanForClosingTag)return!1;var Ue=Math.min(he.lastLine()+1,ne.line+500),Ie=b.scanForClosingTag(he,ne,null,Ue);if(!Ie||Ie.tag!=De)return!1;for(var Pe=it?1:0,ze=re.length-1;ze>=0&&re[ze]==De;ze--)++Pe;ne=Ie.to;for(var ze=1;ze<Pe;ze++){var Ee=b.scanForClosingTag(he,ne,null,Ue);if(!Ee||Ee.tag!=De)return!1;ne=Ee.to}return!0}})},32855:function(J,C,d){(function(b){b(d(89780))})(function(b){"use strict";var I=b.Pos;function L(ze,Ee){return ze.line-Ee.line||ze.ch-Ee.ch}var B="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",V=B+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",Q=new RegExp("<(/?)(["+B+"]["+V+"]*)","g");function M(ze,Ee,fe,we){this.line=Ee,this.ch=fe,this.cm=ze,this.text=ze.getLine(Ee),this.min=we?Math.max(we.from,ze.firstLine()):ze.firstLine(),this.max=we?Math.min(we.to-1,ze.lastLine()):ze.lastLine()}function de(ze,Ee){var fe=ze.cm.getTokenTypeAt(I(ze.line,Ee));return fe&&/\btag\b/.test(fe)}function he(ze){if(!(ze.line>=ze.max))return ze.ch=0,ze.text=ze.cm.getLine(++ze.line),!0}function re(ze){if(!(ze.line<=ze.min))return ze.text=ze.cm.getLine(--ze.line),ze.ch=ze.text.length,!0}function De(ze){for(;;){var Ee=ze.text.indexOf(">",ze.ch);if(Ee==-1){if(he(ze))continue;return}if(!de(ze,Ee+1)){ze.ch=Ee+1;continue}var fe=ze.text.lastIndexOf("/",Ee),we=fe>-1&&!/\S/.test(ze.text.slice(fe+1,Ee));return ze.ch=Ee+1,we?"selfClose":"regular"}}function ne(ze){for(;;){var Ee=ze.ch?ze.text.lastIndexOf("<",ze.ch-1):-1;if(Ee==-1){if(re(ze))continue;return}if(!de(ze,Ee+1)){ze.ch=Ee;continue}Q.lastIndex=Ee,ze.ch=Ee;var fe=Q.exec(ze.text);if(fe&&fe.index==Ee)return fe}}function it(ze){for(;;){Q.lastIndex=ze.ch;var Ee=Q.exec(ze.text);if(!Ee){if(he(ze))continue;return}if(!de(ze,Ee.index+1)){ze.ch=Ee.index+1;continue}return ze.ch=Ee.index+Ee[0].length,Ee}}function Ue(ze){for(;;){var Ee=ze.ch?ze.text.lastIndexOf(">",ze.ch-1):-1;if(Ee==-1){if(re(ze))continue;return}if(!de(ze,Ee+1)){ze.ch=Ee;continue}var fe=ze.text.lastIndexOf("/",Ee),we=fe>-1&&!/\S/.test(ze.text.slice(fe+1,Ee));return ze.ch=Ee+1,we?"selfClose":"regular"}}function Ie(ze,Ee){for(var fe=[];;){var we=it(ze),pe,Ne=ze.line,te=ze.ch-(we?we[0].length:0);if(!we||!(pe=De(ze)))return;if(pe!="selfClose")if(we[1]){for(var Ae=fe.length-1;Ae>=0;--Ae)if(fe[Ae]==we[2]){fe.length=Ae;break}if(Ae<0&&(!Ee||Ee==we[2]))return{tag:we[2],from:I(Ne,te),to:I(ze.line,ze.ch)}}else fe.push(we[2])}}function Pe(ze,Ee){for(var fe=[];;){var we=Ue(ze);if(!we)return;if(we=="selfClose"){ne(ze);continue}var pe=ze.line,Ne=ze.ch,te=ne(ze);if(!te)return;if(te[1])fe.push(te[2]);else{for(var Ae=fe.length-1;Ae>=0;--Ae)if(fe[Ae]==te[2]){fe.length=Ae;break}if(Ae<0&&(!Ee||Ee==te[2]))return{tag:te[2],from:I(ze.line,ze.ch),to:I(pe,Ne)}}}}b.registerHelper("fold","xml",function(ze,Ee){for(var fe=new M(ze,Ee.line,0);;){var we=it(fe);if(!we||fe.line!=Ee.line)return;var pe=De(fe);if(!pe)return;if(!we[1]&&pe!="selfClose"){var Ne=I(fe.line,fe.ch),te=Ie(fe,we[2]);return te&&L(te.from,Ne)>0?{from:Ne,to:te.from}:null}}}),b.findMatchingTag=function(ze,Ee,fe){var we=new M(ze,Ee.line,Ee.ch,fe);if(!(we.text.indexOf(">")==-1&&we.text.indexOf("<")==-1)){var pe=De(we),Ne=pe&&I(we.line,we.ch),te=pe&&ne(we);if(!(!pe||!te||L(we,Ee)>0)){var Ae={from:I(we.line,we.ch),to:Ne,tag:te[2]};return pe=="selfClose"?{open:Ae,close:null,at:"open"}:te[1]?{open:Pe(we,te[2]),close:Ae,at:"close"}:(we=new M(ze,Ne.line,Ne.ch,fe),{open:Ae,close:Ie(we,te[2]),at:"open"})}}},b.findEnclosingTag=function(ze,Ee,fe,we){for(var pe=new M(ze,Ee.line,Ee.ch,fe);;){var Ne=Pe(pe,we);if(!Ne)break;var te=new M(ze,Ee.line,Ee.ch,fe),Ae=Ie(te,Ne.tag);if(Ae)return{open:Ne,close:Ae}}},b.scanForClosingTag=function(ze,Ee,fe,we){var pe=new M(ze,Ee.line,Ee.ch,we?{from:0,to:we}:null);return Ie(pe,fe)}})},89780:function(J){(function(C,d){J.exports=d()})(this,function(){"use strict";var C=navigator.userAgent,d=navigator.platform,b=/gecko\/\d/i.test(C),I=/MSIE \d/.test(C),L=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(C),B=/Edge\/(\d+)/.exec(C),V=I||L||B,Q=V&&(I?document.documentMode||6:+(B||L)[1]),M=!B&&/WebKit\//.test(C),de=M&&/Qt\/\d+\.\d+/.test(C),he=!B&&/Chrome\//.test(C),re=/Opera\//.test(C),De=/Apple Computer/.test(navigator.vendor),ne=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(C),it=/PhantomJS/.test(C),Ue=!B&&/AppleWebKit/.test(C)&&/Mobile\/\w+/.test(C),Ie=/Android/.test(C),Pe=Ue||Ie||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(C),ze=Ue||/Mac/.test(d),Ee=/\bCrOS\b/.test(C),fe=/win/i.test(d),we=re&&C.match(/Version\/(\d*\.\d*)/);we&&(we=Number(we[1])),we&&we>=15&&(re=!1,M=!0);var pe=ze&&(de||re&&(we==null||we<12.11)),Ne=b||V&&Q>=9;function te(a){return new RegExp("(^|\\s)"+a+"(?:$|\\s)\\s*")}var Ae=function(a,c){var y=a.className,v=te(c).exec(y);if(v){var w=y.slice(v.index+v[0].length);a.className=y.slice(0,v.index)+(w?v[1]+w:"")}};function Te(a){for(var c=a.childNodes.length;c>0;--c)a.removeChild(a.firstChild);return a}function $e(a,c){return Te(a).appendChild(c)}function Qe(a,c,y,v){var w=document.createElement(a);if(y&&(w.className=y),v&&(w.style.cssText=v),typeof c=="string")w.appendChild(document.createTextNode(c));else if(c)for(var z=0;z<c.length;++z)w.appendChild(c[z]);return w}function Je(a,c,y,v){var w=Qe(a,c,y,v);return w.setAttribute("role","presentation"),w}var Ce;document.createRange?Ce=function(a,c,y,v){var w=document.createRange();return w.setEnd(v||a,y),w.setStart(a,c),w}:Ce=function(a,c,y){var v=document.body.createTextRange();try{v.moveToElementText(a.parentNode)}catch(w){return v}return v.collapse(!0),v.moveEnd("character",y),v.moveStart("character",c),v};function dt(a,c){if(c.nodeType==3&&(c=c.parentNode),a.contains)return a.contains(c);do if(c.nodeType==11&&(c=c.host),c==a)return!0;while(c=c.parentNode)}function Xe(){var a;try{a=document.activeElement}catch(c){a=document.body||null}for(;a&&a.shadowRoot&&a.shadowRoot.activeElement;)a=a.shadowRoot.activeElement;return a}function $t(a,c){var y=a.className;te(c).test(y)||(a.className+=(y?" ":"")+c)}function xt(a,c){for(var y=a.split(" "),v=0;v<y.length;v++)y[v]&&!te(y[v]).test(c)&&(c+=" "+y[v]);return c}var At=function(a){a.select()};Ue?At=function(a){a.selectionStart=0,a.selectionEnd=a.value.length}:V&&(At=function(a){try{a.select()}catch(c){}});function St(a){var c=Array.prototype.slice.call(arguments,1);return function(){return a.apply(null,c)}}function Cn(a,c,y){c||(c={});for(var v in a)a.hasOwnProperty(v)&&(y!==!1||!c.hasOwnProperty(v))&&(c[v]=a[v]);return c}function Ye(a,c,y,v,w){c==null&&(c=a.search(/[^\s\u00a0]/),c==-1&&(c=a.length));for(var z=v||0,ie=w||0;;){var be=a.indexOf(" ",z);if(be<0||be>=c)return ie+(c-z);ie+=be-z,ie+=y-ie%y,z=be+1}}var oe=function(){this.id=null,this.f=null,this.time=0,this.handler=St(this.onTimeout,this)};oe.prototype.onTimeout=function(a){a.id=0,a.time<=+new Date?a.f():setTimeout(a.handler,a.time-+new Date)},oe.prototype.set=function(a,c){this.f=c;var y=+new Date+a;(!this.id||y<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,a),this.time=y)};function H(a,c){for(var y=0;y<a.length;++y)if(a[y]==c)return y;return-1}var Ot=50,Kt={toString:function(){return"CodeMirror.Pass"}},vt={scroll:!1},hn={origin:"*mouse"},Rt={origin:"+move"};function hi(a,c,y){for(var v=0,w=0;;){var z=a.indexOf(" ",v);z==-1&&(z=a.length);var ie=z-v;if(z==a.length||w+ie>=c)return v+Math.min(ie,c-w);if(w+=z-v,w+=y-w%y,v=z+1,w>=c)return v}}var yt=[""];function si(a){for(;yt.length<=a;)yt.push(qn(yt)+" ");return yt[a]}function qn(a){return a[a.length-1]}function ln(a,c){for(var y=[],v=0;v<a.length;v++)y[v]=c(a[v],v);return y}function Tn(a,c,y){for(var v=0,w=y(c);v<a.length&&y(a[v])<=w;)v++;a.splice(v,0,c)}function xe(){}function D(a,c){var y;return Object.create?y=Object.create(a):(xe.prototype=a,y=new xe),c&&Cn(c,y),y}var k=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function G(a){return/\w/.test(a)||a>"\x80"&&(a.toUpperCase()!=a.toLowerCase()||k.test(a))}function X(a,c){return c?c.source.indexOf("\\w")>-1&&G(a)?!0:c.test(a):G(a)}function T(a){for(var c in a)if(a.hasOwnProperty(c)&&a[c])return!1;return!0}var Re=/[\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 mt(a){return a.charCodeAt(0)>=768&&Re.test(a)}function _e(a,c,y){for(;(y<0?c>0:c<a.length)&&mt(a.charAt(c));)c+=y;return c}function Le(a,c,y){for(var v=c>y?-1:1;;){if(c==y)return c;var w=(c+y)/2,z=v<0?Math.ceil(w):Math.floor(w);if(z==c)return a(z)?c:y;a(z)?y=z:c=z+v}}function ct(a,c,y,v){if(!a)return v(c,y,"ltr",0);for(var w=!1,z=0;z<a.length;++z){var ie=a[z];(ie.from<y&&ie.to>c||c==y&&ie.to==c)&&(v(Math.max(ie.from,c),Math.min(ie.to,y),ie.level==1?"rtl":"ltr",z),w=!0)}w||v(c,y,"ltr")}var ot=null;function Ze(a,c,y){var v;ot=null;for(var w=0;w<a.length;++w){var z=a[w];if(z.from<c&&z.to>c)return w;z.to==c&&(z.from!=z.to&&y=="before"?v=w:ot=w),z.from==c&&(z.from!=z.to&&y!="before"?v=w:ot=w)}return v!=null?v:ot}var Et=function(){var a="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",c="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function y(Ge){return Ge<=247?a.charAt(Ge):1424<=Ge&&Ge<=1524?"R":1536<=Ge&&Ge<=1785?c.charAt(Ge-1536):1774<=Ge&&Ge<=2220?"r":8192<=Ge&&Ge<=8203?"w":Ge==8204?"b":"L"}var v=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,w=/[stwN]/,z=/[LRr]/,ie=/[Lb1n]/,be=/[1n]/;function ve(Ge,Bt,nt){this.level=Ge,this.from=Bt,this.to=nt}return function(Ge,Bt){var nt=Bt=="ltr"?"L":"R";if(Ge.length==0||Bt=="ltr"&&!v.test(Ge))return!1;for(var Sn=Ge.length,mn=[],di=0;di<Sn;++di)mn.push(y(Ge.charCodeAt(di)));for(var bi=0,Mi=nt;bi<Sn;++bi){var Ji=mn[bi];Ji=="m"?mn[bi]=Mi:Mi=Ji}for(var Sr=0,ar=nt;Sr<Sn;++Sr){var Mr=mn[Sr];Mr=="1"&&ar=="r"?mn[Sr]="n":z.test(Mr)&&(ar=Mr,Mr=="r"&&(mn[Sr]="R"))}for(var Qr=1,sr=mn[0];Qr<Sn-1;++Qr){var To=mn[Qr];To=="+"&&sr=="1"&&mn[Qr+1]=="1"?mn[Qr]="1":To==","&&sr==mn[Qr+1]&&(sr=="1"||sr=="n")&&(mn[Qr]=sr),sr=To}for(var na=0;na<Sn;++na){var rl=mn[na];if(rl==",")mn[na]="N";else if(rl=="%"){var ma=void 0;for(ma=na+1;ma<Sn&&mn[ma]=="%";++ma);for(var gu=na&&mn[na-1]=="!"||ma<Sn&&mn[ma]=="1"?"1":"N",Yl=na;Yl<ma;++Yl)mn[Yl]=gu;na=ma-1}}for(var Qa=0,ku=nt;Qa<Sn;++Qa){var Rl=mn[Qa];ku=="L"&&Rl=="1"?mn[Qa]="L":z.test(Rl)&&(ku=Rl)}for(var Ja=0;Ja<Sn;++Ja)if(w.test(mn[Ja])){var gs=void 0;for(gs=Ja+1;gs<Sn&&w.test(mn[gs]);++gs);for(var xa=(Ja?mn[Ja-1]:nt)=="L",dl=(gs<Sn?mn[gs]:nt)=="L",Dl=xa==dl?xa?"L":"R":nt,hc=Ja;hc<gs;++hc)mn[hc]=Dl;Ja=gs-1}for(var ga=[],Ju,ka=0;ka<Sn;)if(ie.test(mn[ka])){var zd=ka;for(++ka;ka<Sn&&ie.test(mn[ka]);++ka);ga.push(new ve(0,zd,ka))}else{var _u=ka,Iu=ga.length,vu=Bt=="rtl"?1:0;for(++ka;ka<Sn&&mn[ka]!="L";++ka);for(var Bs=_u;Bs<ka;)if(be.test(mn[Bs])){_u<Bs&&(ga.splice(Iu,0,new ve(1,_u,Bs)),Iu+=vu);var fl=Bs;for(++Bs;Bs<ka&&be.test(mn[Bs]);++Bs);ga.splice(Iu,0,new ve(2,fl,Bs)),Iu+=vu,_u=Bs}else++Bs;_u<ka&&ga.splice(Iu,0,new ve(1,_u,ka))}return Bt=="ltr"&&(ga[0].level==1&&(Ju=Ge.match(/^\s+/))&&(ga[0].from=Ju[0].length,ga.unshift(new ve(0,0,Ju[0].length))),qn(ga).level==1&&(Ju=Ge.match(/\s+$/))&&(qn(ga).to-=Ju[0].length,ga.push(new ve(0,Sn-Ju[0].length,Sn)))),Bt=="rtl"?ga.reverse():ga}}();function Gt(a,c){var y=a.order;return y==null&&(y=a.order=Et(a.text,c)),y}var Vt=[],Pt=function(a,c,y){if(a.addEventListener)a.addEventListener(c,y,!1);else if(a.attachEvent)a.attachEvent("on"+c,y);else{var v=a._handlers||(a._handlers={});v[c]=(v[c]||Vt).concat(y)}};function nn(a,c){return a._handlers&&a._handlers[c]||Vt}function vn(a,c,y){if(a.removeEventListener)a.removeEventListener(c,y,!1);else if(a.detachEvent)a.detachEvent("on"+c,y);else{var v=a._handlers,w=v&&v[c];if(w){var z=H(w,y);z>-1&&(v[c]=w.slice(0,z).concat(w.slice(z+1)))}}}function We(a,c){var y=nn(a,c);if(y.length)for(var v=Array.prototype.slice.call(arguments,2),w=0;w<y.length;++w)y[w].apply(null,v)}function Dt(a,c,y){return typeof c=="string"&&(c={type:c,preventDefault:function(){this.defaultPrevented=!0}}),We(a,y||c.type,a,c),Hn(c)||c.codemirrorIgnore}function Qt(a){var c=a._handlers&&a._handlers.cursorActivity;if(c)for(var y=a.curOp.cursorActivityHandlers||(a.curOp.cursorActivityHandlers=[]),v=0;v<c.length;++v)H(y,c[v])==-1&&y.push(c[v])}function bn(a,c){return nn(a,c).length>0}function $n(a){a.prototype.on=function(c,y){Pt(this,c,y)},a.prototype.off=function(c,y){vn(this,c,y)}}function Un(a){a.preventDefault?a.preventDefault():a.returnValue=!1}function kt(a){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}function Hn(a){return a.defaultPrevented!=null?a.defaultPrevented:a.returnValue==!1}function Jn(a){Un(a),kt(a)}function tt(a){return a.target||a.srcElement}function j(a){var c=a.which;return c==null&&(a.button&1?c=1:a.button&2?c=3:a.button&4&&(c=2)),ze&&a.ctrlKey&&c==1&&(c=3),c}var Oi=function(){if(V&&Q<9)return!1;var a=Qe("div");return"draggable"in a||"dragDrop"in a}(),tr;function Gn(a){if(tr==null){var c=Qe("span","\u200B");$e(a,Qe("span",[c,document.createTextNode("x")])),a.firstChild.offsetHeight!=0&&(tr=c.offsetWidth<=1&&c.offsetHeight>2&&!(V&&Q<8))}var y=tr?Qe("span","\u200B"):Qe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return y.setAttribute("cm-text",""),y}var Ti;function Er(a){if(Ti!=null)return Ti;var c=$e(a,document.createTextNode("A\u062EA")),y=Ce(c,0,1).getBoundingClientRect(),v=Ce(c,1,2).getBoundingClientRect();return Te(a),!y||y.left==y.right?!1:Ti=v.right-y.right<3}var Zi=`
|
|
|
|
|
|
b`.split(/\n/).length!=3?function(a){for(var c=0,y=[],v=a.length;c<=v;){var w=a.indexOf(`
|
|
|
`,c);w==-1&&(w=a.length);var z=a.slice(c,a.charAt(w-1)=="\r"?w-1:w),ie=z.indexOf("\r");ie!=-1?(y.push(z.slice(0,ie)),c+=ie+1):(y.push(z),c=w+1)}return y}:function(a){return a.split(/\r\n?|\n/)},_=window.getSelection?function(a){try{return a.selectionStart!=a.selectionEnd}catch(c){return!1}}:function(a){var c;try{c=a.ownerDocument.selection.createRange()}catch(y){}return!c||c.parentElement()!=a?!1:c.compareEndPoints("StartToEnd",c)!=0},ht=function(){var a=Qe("div");return"oncopy"in a?!0:(a.setAttribute("oncopy","return;"),typeof a.oncopy=="function")}(),_i=null;function Rr(a){if(_i!=null)return _i;var c=$e(a,Qe("span","x")),y=c.getBoundingClientRect(),v=Ce(c,0,1).getBoundingClientRect();return _i=Math.abs(y.left-v.left)>1}var Ar={},Yr={};function Dr(a,c){arguments.length>2&&(c.dependencies=Array.prototype.slice.call(arguments,2)),Ar[a]=c}function Hr(a,c){Yr[a]=c}function dr(a){if(typeof a=="string"&&Yr.hasOwnProperty(a))a=Yr[a];else if(a&&typeof a.name=="string"&&Yr.hasOwnProperty(a.name)){var c=Yr[a.name];typeof c=="string"&&(c={name:c}),a=D(c,a),a.name=c.name}else{if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(a))return dr("application/xml");if(typeof a=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(a))return dr("application/json")}return typeof a=="string"?{name:a}:a||{name:"null"}}function Vi(a,c){c=dr(c);var y=Ar[c.name];if(!y)return Vi(a,"text/plain");var v=y(a,c);if(fi.hasOwnProperty(c.name)){var w=fi[c.name];for(var z in w)w.hasOwnProperty(z)&&(v.hasOwnProperty(z)&&(v["_"+z]=v[z]),v[z]=w[z])}if(v.name=c.name,c.helperType&&(v.helperType=c.helperType),c.modeProps)for(var ie in c.modeProps)v[ie]=c.modeProps[ie];return v}var fi={};function at(a,c){var y=fi.hasOwnProperty(a)?fi[a]:fi[a]={};Cn(c,y)}function Fn(a,c){if(c===!0)return c;if(a.copyState)return a.copyState(c);var y={};for(var v in c){var w=c[v];w instanceof Array&&(w=w.concat([])),y[v]=w}return y}function Qn(a,c){for(var y;a.innerMode&&(y=a.innerMode(c),!(!y||y.mode==a));)c=y.state,a=y.mode;return y||{mode:a,state:c}}function ft(a,c,y){return a.startState?a.startState(c,y):!0}var je=function(a,c,y){this.pos=this.start=0,this.string=a,this.tabSize=c||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=y};je.prototype.eol=function(){return this.pos>=this.string.length},je.prototype.sol=function(){return this.pos==this.lineStart},je.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},je.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},je.prototype.eat=function(a){var c=this.string.charAt(this.pos),y;if(typeof a=="string"?y=c==a:y=c&&(a.test?a.test(c):a(c)),y)return++this.pos,c},je.prototype.eatWhile=function(a){for(var c=this.pos;this.eat(a););return this.pos>c},je.prototype.eatSpace=function(){for(var a=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>a},je.prototype.skipToEnd=function(){this.pos=this.string.length},je.prototype.skipTo=function(a){var c=this.string.indexOf(a,this.pos);if(c>-1)return this.pos=c,!0},je.prototype.backUp=function(a){this.pos-=a},je.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=Ye(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?Ye(this.string,this.lineStart,this.tabSize):0)},je.prototype.indentation=function(){return Ye(this.string,null,this.tabSize)-(this.lineStart?Ye(this.string,this.lineStart,this.tabSize):0)},je.prototype.match=function(a,c,y){if(typeof a=="string"){var v=function(ie){return y?ie.toLowerCase():ie},w=this.string.substr(this.pos,a.length);if(v(w)==v(a))return c!==!1&&(this.pos+=a.length),!0}else{var z=this.string.slice(this.pos).match(a);return z&&z.index>0?null:(z&&c!==!1&&(this.pos+=z[0].length),z)}},je.prototype.current=function(){return this.string.slice(this.start,this.pos)},je.prototype.hideFirstChars=function(a,c){this.lineStart+=a;try{return c()}finally{this.lineStart-=a}},je.prototype.lookAhead=function(a){var c=this.lineOracle;return c&&c.lookAhead(a)},je.prototype.baseToken=function(){var a=this.lineOracle;return a&&a.baseToken(this.pos)};function sn(a,c){if(c-=a.first,c<0||c>=a.size)throw new Error("There is no line "+(c+a.first)+" in the document.");for(var y=a;!y.lines;)for(var v=0;;++v){var w=y.children[v],z=w.chunkSize();if(c<z){y=w;break}c-=z}return y.lines[c]}function In(a,c,y){var v=[],w=c.line;return a.iter(c.line,y.line+1,function(z){var ie=z.text;w==y.line&&(ie=ie.slice(0,y.ch)),w==c.line&&(ie=ie.slice(c.ch)),v.push(ie),++w}),v}function ni(a,c,y){var v=[];return a.iter(c,y,function(w){v.push(w.text)}),v}function Kn(a,c){var y=c-a.height;if(y)for(var v=a;v;v=v.parent)v.height+=y}function ut(a){if(a.parent==null)return null;for(var c=a.parent,y=H(c.lines,a),v=c.parent;v;c=v,v=v.parent)for(var w=0;v.children[w]!=c;++w)y+=v.children[w].chunkSize();return y+c.first}function yn(a,c){var y=a.first;e:do{for(var v=0;v<a.children.length;++v){var w=a.children[v],z=w.height;if(c<z){a=w;continue e}c-=z,y+=w.chunkSize()}return y}while(!a.lines);for(var ie=0;ie<a.lines.length;++ie){var be=a.lines[ie],ve=be.height;if(c<ve)break;c-=ve}return y+ie}function rn(a,c){return c>=a.first&&c<a.first+a.size}function Si(a,c){return String(a.lineNumberFormatter(c+a.firstLineNumber))}function Zt(a,c,y){if(y===void 0&&(y=null),!(this instanceof Zt))return new Zt(a,c,y);this.line=a,this.ch=c,this.sticky=y}function _n(a,c){return a.line-c.line||a.ch-c.ch}function Mt(a,c){return a.sticky==c.sticky&&_n(a,c)==0}function Jt(a){return Zt(a.line,a.ch)}function on(a,c){return _n(a,c)<0?c:a}function jt(a,c){return _n(a,c)<0?a:c}function gn(a,c){return Math.max(a.first,Math.min(c,a.first+a.size-1))}function fn(a,c){if(c.line<a.first)return Zt(a.first,0);var y=a.first+a.size-1;return c.line>y?Zt(y,sn(a,y).text.length):En(c,sn(a,c.line).text.length)}function En(a,c){var y=a.ch;return y==null||y>c?Zt(a.line,c):y<0?Zt(a.line,0):a}function Ln(a,c){for(var y=[],v=0;v<c.length;v++)y[v]=fn(a,c[v]);return y}var Ai=function(a,c){this.state=a,this.lookAhead=c},zn=function(a,c,y,v){this.state=c,this.doc=a,this.line=y,this.maxLookAhead=v||0,this.baseTokens=null,this.baseTokenPos=1};zn.prototype.lookAhead=function(a){var c=this.doc.getLine(this.line+a);return c!=null&&a>this.maxLookAhead&&(this.maxLookAhead=a),c},zn.prototype.baseToken=function(a){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=a;)this.baseTokenPos+=2;var c=this.baseTokens[this.baseTokenPos+1];return{type:c&&c.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-a}},zn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},zn.fromSaved=function(a,c,y){return c instanceof Ai?new zn(a,Fn(a.mode,c.state),y,c.lookAhead):new zn(a,Fn(a.mode,c),y)},zn.prototype.save=function(a){var c=a!==!1?Fn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Ai(c,this.maxLookAhead):c};function ki(a,c,y,v){var w=[a.state.modeGen],z={};wt(a,c.text,a.doc.mode,y,function(Ge,Bt){return w.push(Ge,Bt)},z,v);for(var ie=y.state,be=function(Ge){y.baseTokens=w;var Bt=a.state.overlays[Ge],nt=1,Sn=0;y.state=!0,wt(a,c.text,Bt.mode,y,function(mn,di){for(var bi=nt;Sn<mn;){var Mi=w[nt];Mi>mn&&w.splice(nt,1,mn,w[nt+1],Mi),nt+=2,Sn=Math.min(mn,Mi)}if(di)if(Bt.opaque)w.splice(bi,nt-bi,mn,"overlay "+di),nt=bi+2;else for(;bi<nt;bi+=2){var Ji=w[bi+1];w[bi+1]=(Ji?Ji+" ":"")+"overlay "+di}},z),y.state=ie,y.baseTokens=null,y.baseTokenPos=1},ve=0;ve<a.state.overlays.length;++ve)be(ve);return{styles:w,classes:z.bgClass||z.textClass?z:null}}function ir(a,c,y){if(!c.styles||c.styles[0]!=a.state.modeGen){var v=lr(a,ut(c)),w=c.text.length>a.options.maxHighlightLength&&Fn(a.doc.mode,v.state),z=ki(a,c,v);w&&(v.state=w),c.stateAfter=v.save(!w),c.styles=z.styles,z.classes?c.styleClasses=z.classes:c.styleClasses&&(c.styleClasses=null),y===a.doc.highlightFrontier&&(a.doc.modeFrontier=Math.max(a.doc.modeFrontier,++a.doc.highlightFrontier))}return c.styles}function lr(a,c,y){var v=a.doc,w=a.display;if(!v.mode.startState)return new zn(v,!0,c);var z=Ni(a,c,y),ie=z>v.first&&sn(v,z-1).stateAfter,be=ie?zn.fromSaved(v,ie,z):new zn(v,ft(v.mode),z);return v.iter(z,c,function(ve){qt(a,ve.text,be);var Ge=be.line;ve.stateAfter=Ge==c-1||Ge%5==0||Ge>=w.viewFrom&&Ge<w.viewTo?be.save():null,be.nextLine()}),y&&(v.modeFrontier=be.line),be}function qt(a,c,y,v){var w=a.doc.mode,z=new je(c,a.options.tabSize,y);for(z.start=z.pos=v||0,c==""&&Ki(w,y.state);!z.eol();)ee(w,z,y.state),z.start=z.pos}function Ki(a,c){if(a.blankLine)return a.blankLine(c);if(a.innerMode){var y=Qn(a,c);if(y.mode.blankLine)return y.mode.blankLine(y.state)}}function ee(a,c,y,v){for(var w=0;w<10;w++){v&&(v[0]=Qn(a,y).mode);var z=a.token(c,y);if(c.pos>c.start)return z}throw new Error("Mode "+a.name+" failed to advance stream.")}var ue=function(a,c,y){this.start=a.start,this.end=a.pos,this.string=a.current(),this.type=c||null,this.state=y};function Zn(a,c,y,v){var w=a.doc,z=w.mode,ie;c=fn(w,c);var be=sn(w,c.line),ve=lr(a,c.line,y),Ge=new je(be.text,a.options.tabSize,ve),Bt;for(v&&(Bt=[]);(v||Ge.pos<c.ch)&&!Ge.eol();)Ge.start=Ge.pos,ie=ee(z,Ge,ve.state),v&&Bt.push(new ue(Ge,ie,Fn(w.mode,ve.state)));return v?Bt:new ue(Ge,ie,ve.state)}function Be(a,c){if(a)for(;;){var y=a.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!y)break;a=a.slice(0,y.index)+a.slice(y.index+y[0].length);var v=y[1]?"bgClass":"textClass";c[v]==null?c[v]=y[2]:new RegExp("(?:^|\\s)"+y[2]+"(?:$|\\s)").test(c[v])||(c[v]+=" "+y[2])}return a}function wt(a,c,y,v,w,z,ie){var be=y.flattenSpans;be==null&&(be=a.options.flattenSpans);var ve=0,Ge=null,Bt=new je(c,a.options.tabSize,v),nt,Sn=a.options.addModeClass&&[null];for(c==""&&Be(Ki(y,v.state),z);!Bt.eol();){if(Bt.pos>a.options.maxHighlightLength?(be=!1,ie&&qt(a,c,v,Bt.pos),Bt.pos=c.length,nt=null):nt=Be(ee(y,Bt,v.state,Sn),z),Sn){var mn=Sn[0].name;mn&&(nt="m-"+(nt?mn+" "+nt:mn))}if(!be||Ge!=nt){for(;ve<Bt.start;)ve=Math.min(Bt.start,ve+5e3),w(ve,Ge);Ge=nt}Bt.start=Bt.pos}for(;ve<Bt.pos;){var di=Math.min(Bt.pos,ve+5e3);w(di,Ge),ve=di}}function Ni(a,c,y){for(var v,w,z=a.doc,ie=y?-1:c-(a.doc.mode.innerMode?1e3:100),be=c;be>ie;--be){if(be<=z.first)return z.first;var ve=sn(z,be-1),Ge=ve.stateAfter;if(Ge&&(!y||be+(Ge instanceof Ai?Ge.lookAhead:0)<=z.modeFrontier))return be;var Bt=Ye(ve.text,null,a.options.tabSize);(w==null||v>Bt)&&(w=be-1,v=Bt)}return w}function Dn(a,c){if(a.modeFrontier=Math.min(a.modeFrontier,c),!(a.highlightFrontier<c-10)){for(var y=a.first,v=c-1;v>y;v--){var w=sn(a,v).stateAfter;if(w&&(!(w instanceof Ai)||v+w.lookAhead<c)){y=v+1;break}}a.highlightFrontier=Math.min(a.highlightFrontier,y)}}var Gi=!1,Xt=!1;function Ii(){Gi=!0}function Yt(){Xt=!0}function Wi(a,c,y){this.marker=a,this.from=c,this.to=y}function Zr(a,c){if(a)for(var y=0;y<a.length;++y){var v=a[y];if(v.marker==c)return v}}function It(a,c){for(var y,v=0;v<a.length;++v)a[v]!=c&&(y||(y=[])).push(a[v]);return y}function fo(a,c){a.markedSpans=a.markedSpans?a.markedSpans.concat([c]):[c],c.marker.attachLine(a)}function tn(a,c,y){var v;if(a)for(var w=0;w<a.length;++w){var z=a[w],ie=z.marker,be=z.from==null||(ie.inclusiveLeft?z.from<=c:z.from<c);if(be||z.from==c&&ie.type=="bookmark"&&(!y||!z.marker.insertLeft)){var ve=z.to==null||(ie.inclusiveRight?z.to>=c:z.to>c);(v||(v=[])).push(new Wi(ie,z.from,ve?null:z.to))}}return v}function Fi(a,c,y){var v;if(a)for(var w=0;w<a.length;++w){var z=a[w],ie=z.marker,be=z.to==null||(ie.inclusiveRight?z.to>=c:z.to>c);if(be||z.from==c&&ie.type=="bookmark"&&(!y||z.marker.insertLeft)){var ve=z.from==null||(ie.inclusiveLeft?z.from<=c:z.from<c);(v||(v=[])).push(new Wi(ie,ve?null:z.from-c,z.to==null?null:z.to-c))}}return v}function Li(a,c){if(c.full)return null;var y=rn(a,c.from.line)&&sn(a,c.from.line).markedSpans,v=rn(a,c.to.line)&&sn(a,c.to.line).markedSpans;if(!y&&!v)return null;var w=c.from.ch,z=c.to.ch,ie=_n(c.from,c.to)==0,be=tn(y,w,ie),ve=Fi(v,z,ie),Ge=c.text.length==1,Bt=qn(c.text).length+(Ge?w:0);if(be)for(var nt=0;nt<be.length;++nt){var Sn=be[nt];if(Sn.to==null){var mn=Zr(ve,Sn.marker);mn?Ge&&(Sn.to=mn.to==null?null:mn.to+Bt):Sn.to=w}}if(ve)for(var di=0;di<ve.length;++di){var bi=ve[di];if(bi.to!=null&&(bi.to+=Bt),bi.from==null){var Mi=Zr(be,bi.marker);Mi||(bi.from=Bt,Ge&&(be||(be=[])).push(bi))}else bi.from+=Bt,Ge&&(be||(be=[])).push(bi)}be&&(be=Nt(be)),ve&&ve!=be&&(ve=Nt(ve));var Ji=[be];if(!Ge){var Sr=c.text.length-2,ar;if(Sr>0&&be)for(var Mr=0;Mr<be.length;++Mr)be[Mr].to==null&&(ar||(ar=[])).push(new Wi(be[Mr].marker,null,null));for(var Qr=0;Qr<Sr;++Qr)Ji.push(ar);Ji.push(ve)}return Ji}function Nt(a){for(var c=0;c<a.length;++c){var y=a[c];y.from!=null&&y.from==y.to&&y.marker.clearWhenEmpty!==!1&&a.splice(c--,1)}return a.length?a:null}function Nr(a,c,y){var v=null;if(a.iter(c.line,y.line+1,function(mn){if(mn.markedSpans)for(var di=0;di<mn.markedSpans.length;++di){var bi=mn.markedSpans[di].marker;bi.readOnly&&(!v||H(v,bi)==-1)&&(v||(v=[])).push(bi)}}),!v)return null;for(var w=[{from:c,to:y}],z=0;z<v.length;++z)for(var ie=v[z],be=ie.find(0),ve=0;ve<w.length;++ve){var Ge=w[ve];if(!(_n(Ge.to,be.from)<0||_n(Ge.from,be.to)>0)){var Bt=[ve,1],nt=_n(Ge.from,be.from),Sn=_n(Ge.to,be.to);(nt<0||!ie.inclusiveLeft&&!nt)&&Bt.push({from:Ge.from,to:be.from}),(Sn>0||!ie.inclusiveRight&&!Sn)&&Bt.push({from:be.to,to:Ge.to}),w.splice.apply(w,Bt),ve+=Bt.length-3}}return w}function ii(a){var c=a.markedSpans;if(c){for(var y=0;y<c.length;++y)c[y].marker.detachLine(a);a.markedSpans=null}}function ce(a,c){if(c){for(var y=0;y<c.length;++y)c[y].marker.attachLine(a);a.markedSpans=c}}function br(a){return a.inclusiveLeft?-1:0}function to(a){return a.inclusiveRight?1:0}function mr(a,c){var y=a.lines.length-c.lines.length;if(y!=0)return y;var v=a.find(),w=c.find(),z=_n(v.from,w.from)||br(a)-br(c);if(z)return-z;var ie=_n(v.to,w.to)||to(a)-to(c);return ie||c.id-a.id}function Xr(a,c){var y=Xt&&a.markedSpans,v;if(y)for(var w=void 0,z=0;z<y.length;++z)w=y[z],w.marker.collapsed&&(c?w.from:w.to)==null&&(!v||mr(v,w.marker)<0)&&(v=w.marker);return v}function qi(a){return Xr(a,!0)}function zr(a){return Xr(a,!1)}function Ri(a,c){var y=Xt&&a.markedSpans,v;if(y)for(var w=0;w<y.length;++w){var z=y[w];z.marker.collapsed&&(z.from==null||z.from<c)&&(z.to==null||z.to>c)&&(!v||mr(v,z.marker)<0)&&(v=z.marker)}return v}function $i(a,c,y,v,w){var z=sn(a,c),ie=Xt&&z.markedSpans;if(ie)for(var be=0;be<ie.length;++be){var ve=ie[be];if(ve.marker.collapsed){var Ge=ve.marker.find(0),Bt=_n(Ge.from,y)||br(ve.marker)-br(w),nt=_n(Ge.to,v)||to(ve.marker)-to(w);if(!(Bt>=0&&nt<=0||Bt<=0&&nt>=0)&&(Bt<=0&&(ve.marker.inclusiveRight&&w.inclusiveLeft?_n(Ge.to,y)>=0:_n(Ge.to,y)>0)||Bt>=0&&(ve.marker.inclusiveRight&&w.inclusiveLeft?_n(Ge.from,v)<=0:_n(Ge.from,v)<0)))return!0}}}function zi(a){for(var c;c=qi(a);)a=c.find(-1,!0).line;return a}function Pr(a){for(var c;c=zr(a);)a=c.find(1,!0).line;return a}function Br(a){for(var c,y;c=zr(a);)a=c.find(1,!0).line,(y||(y=[])).push(a);return y}function no(a,c){var y=sn(a,c),v=zi(y);return y==v?c:ut(v)}function Po(a,c){if(c>a.lastLine())return c;var y=sn(a,c),v;if(!mi(a,y))return c;for(;v=zr(y);)y=v.find(1,!0).line;return ut(y)+1}function mi(a,c){var y=Xt&&c.markedSpans;if(y){for(var v=void 0,w=0;w<y.length;++w)if(v=y[w],!!v.marker.collapsed){if(v.from==null)return!0;if(!v.marker.widgetNode&&v.from==0&&v.marker.inclusiveLeft&&ws(a,c,v))return!0}}}function ws(a,c,y){if(y.to==null){var v=y.marker.find(1,!0);return ws(a,v.line,Zr(v.line.markedSpans,y.marker))}if(y.marker.inclusiveRight&&y.to==c.text.length)return!0;for(var w=void 0,z=0;z<c.markedSpans.length;++z)if(w=c.markedSpans[z],w.marker.collapsed&&!w.marker.widgetNode&&w.from==y.to&&(w.to==null||w.to!=y.from)&&(w.marker.inclusiveLeft||y.marker.inclusiveRight)&&ws(a,c,w))return!0}function as(a){a=zi(a);for(var c=0,y=a.parent,v=0;v<y.lines.length;++v){var w=y.lines[v];if(w==a)break;c+=w.height}for(var z=y.parent;z;y=z,z=y.parent)for(var ie=0;ie<z.children.length;++ie){var be=z.children[ie];if(be==y)break;c+=be.height}return c}function Fo(a){if(a.height==0)return 0;for(var c=a.text.length,y,v=a;y=qi(v);){var w=y.find(0,!0);v=w.from.line,c+=w.from.ch-w.to.ch}for(v=a;y=zr(v);){var z=y.find(0,!0);c-=v.text.length-z.from.ch,v=z.to.line,c+=v.text.length-z.to.ch}return c}function As(a){var c=a.display,y=a.doc;c.maxLine=sn(y,y.first),c.maxLineLength=Fo(c.maxLine),c.maxLineChanged=!0,y.iter(function(v){var w=Fo(v);w>c.maxLineLength&&(c.maxLineLength=w,c.maxLine=v)})}var Xs=function(a,c,y){this.text=a,ce(this,c),this.height=y?y(this):1};Xs.prototype.lineNo=function(){return ut(this)},$n(Xs);function da(a,c,y,v){a.text=c,a.stateAfter&&(a.stateAfter=null),a.styles&&(a.styles=null),a.order!=null&&(a.order=null),ii(a),ce(a,y);var w=v?v(a):1;w!=a.height&&Kn(a,w)}function vs(a){a.parent=null,ii(a)}var Ua={},Ls={};function Ko(a,c){if(!a||/^\s*$/.test(a))return null;var y=c.addModeClass?Ls:Ua;return y[a]||(y[a]=a.replace(/\S+/g,"cm-$&"))}function Ht(a,c){var y=Je("span",null,null,M?"padding-right: .1px":null),v={pre:Je("pre",[y],"CodeMirror-line"),content:y,col:0,pos:0,cm:a,trailingSpace:!1,splitSpaces:a.getOption("lineWrapping")};c.measure={};for(var w=0;w<=(c.rest?c.rest.length:0);w++){var z=w?c.rest[w-1]:c.line,ie=void 0;v.pos=0,v.addToken=wl,Er(a.display.measure)&&(ie=Gt(z,a.doc.direction))&&(v.addToken=Jr(v.addToken,ie)),v.map=[];var be=c!=a.display.externalMeasured&&ut(z);ts(z,v,ir(a,z,be)),z.styleClasses&&(z.styleClasses.bgClass&&(v.bgClass=xt(z.styleClasses.bgClass,v.bgClass||"")),z.styleClasses.textClass&&(v.textClass=xt(z.styleClasses.textClass,v.textClass||""))),v.map.length==0&&v.map.push(0,0,v.content.appendChild(Gn(a.display.measure))),w==0?(c.measure.map=v.map,c.measure.cache={}):((c.measure.maps||(c.measure.maps=[])).push(v.map),(c.measure.caches||(c.measure.caches=[])).push({}))}if(M){var ve=v.content.lastChild;(/\bcm-tab\b/.test(ve.className)||ve.querySelector&&ve.querySelector(".cm-tab"))&&(v.content.className="cm-tab-wrap-hack")}return We(a,"renderLine",a,c.line,v.pre),v.pre.className&&(v.textClass=xt(v.pre.className,v.textClass||"")),v}function Ds(a){var c=Qe("span","\u2022","cm-invalidchar");return c.title="\\u"+a.charCodeAt(0).toString(16),c.setAttribute("aria-label",c.title),c}function wl(a,c,y,v,w,z,ie){if(c){var be=a.splitSpaces?Cl(c,a.trailingSpace):c,ve=a.cm.state.specialChars,Ge=!1,Bt;if(!ve.test(c))a.col+=c.length,Bt=document.createTextNode(be),a.map.push(a.pos,a.pos+c.length,Bt),V&&Q<9&&(Ge=!0),a.pos+=c.length;else{Bt=document.createDocumentFragment();for(var nt=0;;){ve.lastIndex=nt;var Sn=ve.exec(c),mn=Sn?Sn.index-nt:c.length-nt;if(mn){var di=document.createTextNode(be.slice(nt,nt+mn));V&&Q<9?Bt.appendChild(Qe("span",[di])):Bt.appendChild(di),a.map.push(a.pos,a.pos+mn,di),a.col+=mn,a.pos+=mn}if(!Sn)break;nt+=mn+1;var bi=void 0;if(Sn[0]==" "){var Mi=a.cm.options.tabSize,Ji=Mi-a.col%Mi;bi=Bt.appendChild(Qe("span",si(Ji),"cm-tab")),bi.setAttribute("role","presentation"),bi.setAttribute("cm-text"," "),a.col+=Ji}else Sn[0]=="\r"||Sn[0]==`
|
|
|
`?(bi=Bt.appendChild(Qe("span",Sn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),bi.setAttribute("cm-text",Sn[0]),a.col+=1):(bi=a.cm.options.specialCharPlaceholder(Sn[0]),bi.setAttribute("cm-text",Sn[0]),V&&Q<9?Bt.appendChild(Qe("span",[bi])):Bt.appendChild(bi),a.col+=1);a.map.push(a.pos,a.pos+1,bi),a.pos++}}if(a.trailingSpace=be.charCodeAt(c.length-1)==32,y||v||w||Ge||z||ie){var Sr=y||"";v&&(Sr+=v),w&&(Sr+=w);var ar=Qe("span",[Bt],Sr,z);if(ie)for(var Mr in ie)ie.hasOwnProperty(Mr)&&Mr!="style"&&Mr!="class"&&ar.setAttribute(Mr,ie[Mr]);return a.content.appendChild(ar)}a.content.appendChild(Bt)}}function Cl(a,c){if(a.length>1&&!/ /.test(a))return a;for(var y=c,v="",w=0;w<a.length;w++){var z=a.charAt(w);z==" "&&y&&(w==a.length-1||a.charCodeAt(w+1)==32)&&(z="\xA0"),v+=z,y=z==" "}return v}function Jr(a,c){return function(y,v,w,z,ie,be,ve){w=w?w+" cm-force-border":"cm-force-border";for(var Ge=y.pos,Bt=Ge+v.length;;){for(var nt=void 0,Sn=0;Sn<c.length&&(nt=c[Sn],!(nt.to>Ge&&nt.from<=Ge));Sn++);if(nt.to>=Bt)return a(y,v,w,z,ie,be,ve);a(y,v.slice(0,nt.to-Ge),w,z,null,be,ve),z=null,v=v.slice(nt.to-Ge),Ge=nt.to}}}function oo(a,c,y,v){var w=!v&&y.widgetNode;w&&a.map.push(a.pos,a.pos+c,w),!v&&a.cm.display.input.needsContentAttribute&&(w||(w=a.content.appendChild(document.createElement("span"))),w.setAttribute("cm-marker",y.id)),w&&(a.cm.display.input.setUneditable(w),a.content.appendChild(w)),a.pos+=c,a.trailingSpace=!1}function ts(a,c,y){var v=a.markedSpans,w=a.text,z=0;if(!v){for(var ie=1;ie<y.length;ie+=2)c.addToken(c,w.slice(z,z=y[ie]),Ko(y[ie+1],c.cm.options));return}for(var be=w.length,ve=0,Ge=1,Bt="",nt,Sn,mn=0,di,bi,Mi,Ji,Sr;;){if(mn==ve){di=bi=Mi=Sn="",Sr=null,Ji=null,mn=1/0;for(var ar=[],Mr=void 0,Qr=0;Qr<v.length;++Qr){var sr=v[Qr],To=sr.marker;if(To.type=="bookmark"&&sr.from==ve&&To.widgetNode)ar.push(To);else if(sr.from<=ve&&(sr.to==null||sr.to>ve||To.collapsed&&sr.to==ve&&sr.from==ve)){if(sr.to!=null&&sr.to!=ve&&mn>sr.to&&(mn=sr.to,bi=""),To.className&&(di+=" "+To.className),To.css&&(Sn=(Sn?Sn+";":"")+To.css),To.startStyle&&sr.from==ve&&(Mi+=" "+To.startStyle),To.endStyle&&sr.to==mn&&(Mr||(Mr=[])).push(To.endStyle,sr.to),To.title&&((Sr||(Sr={})).title=To.title),To.attributes)for(var na in To.attributes)(Sr||(Sr={}))[na]=To.attributes[na];To.collapsed&&(!Ji||mr(Ji.marker,To)<0)&&(Ji=sr)}else sr.from>ve&&mn>sr.from&&(mn=sr.from)}if(Mr)for(var rl=0;rl<Mr.length;rl+=2)Mr[rl+1]==mn&&(bi+=" "+Mr[rl]);if(!Ji||Ji.from==ve)for(var ma=0;ma<ar.length;++ma)oo(c,0,ar[ma]);if(Ji&&(Ji.from||0)==ve){if(oo(c,(Ji.to==null?be+1:Ji.to)-ve,Ji.marker,Ji.from==null),Ji.to==null)return;Ji.to==ve&&(Ji=!1)}}if(ve>=be)break;for(var gu=Math.min(be,mn);;){if(Bt){var Yl=ve+Bt.length;if(!Ji){var Qa=Yl>gu?Bt.slice(0,gu-ve):Bt;c.addToken(c,Qa,nt?nt+di:di,Mi,ve+Qa.length==mn?bi:"",Sn,Sr)}if(Yl>=gu){Bt=Bt.slice(gu-ve),ve=gu;break}ve=Yl,Mi=""}Bt=w.slice(z,z=y[Ge++]),nt=Ko(y[Ge++],c.cm.options)}}}function bo(a,c,y){this.line=c,this.rest=Br(c),this.size=this.rest?ut(qn(this.rest))-y+1:1,this.node=this.text=null,this.hidden=mi(a,c)}function Or(a,c,y){for(var v=[],w,z=c;z<y;z=w){var ie=new bo(a.doc,sn(a.doc,z),z);w=z+ie.size,v.push(ie)}return v}var po=null;function va(a){po?po.ops.push(a):a.ownsGroup=po={ops:[a],delayedCallbacks:[]}}function gr(a){var c=a.delayedCallbacks,y=0;do{for(;y<c.length;y++)c[y].call(null);for(var v=0;v<a.ops.length;v++){var w=a.ops[v];if(w.cursorActivityHandlers)for(;w.cursorActivityCalled<w.cursorActivityHandlers.length;)w.cursorActivityHandlers[w.cursorActivityCalled++].call(null,w.cm)}}while(y<c.length)}function xn(a,c){var y=a.ownsGroup;if(y)try{gr(y)}finally{po=null,c(y)}}var ur=null;function vi(a,c){var y=nn(a,c);if(y.length){var v=Array.prototype.slice.call(arguments,2),w;po?w=po.delayedCallbacks:ur?w=ur:(w=ur=[],setTimeout(Bo,0));for(var z=function(be){w.push(function(){return y[be].apply(null,v)})},ie=0;ie<y.length;++ie)z(ie)}}function Bo(){var a=ur;ur=null;for(var c=0;c<a.length;++c)a[c]()}function ys(a,c,y,v){for(var w=0;w<c.changes.length;w++){var z=c.changes[w];z=="text"?ui(a,c):z=="gutter"?Yo(a,c,y,v):z=="class"?Di(a,c):z=="widget"&&ya(a,c,v)}c.changes=null}function oa(a){return a.node==a.text&&(a.node=Qe("div",null,null,"position: relative"),a.text.parentNode&&a.text.parentNode.replaceChild(a.node,a.text),a.node.appendChild(a.text),V&&Q<8&&(a.node.style.zIndex=2)),a.node}function Da(a,c){var y=c.bgClass?c.bgClass+" "+(c.line.bgClass||""):c.line.bgClass;if(y&&(y+=" CodeMirror-linebackground"),c.background)y?c.background.className=y:(c.background.parentNode.removeChild(c.background),c.background=null);else if(y){var v=oa(c);c.background=v.insertBefore(Qe("div",null,y),v.firstChild),a.display.input.setUneditable(c.background)}}function Ia(a,c){var y=a.display.externalMeasured;return y&&y.line==c.line?(a.display.externalMeasured=null,c.measure=y.measure,y.built):Ht(a,c)}function ui(a,c){var y=c.text.className,v=Ia(a,c);c.text==c.node&&(c.node=v.pre),c.text.parentNode.replaceChild(v.pre,c.text),c.text=v.pre,v.bgClass!=c.bgClass||v.textClass!=c.textClass?(c.bgClass=v.bgClass,c.textClass=v.textClass,Di(a,c)):y&&(c.text.className=y)}function Di(a,c){Da(a,c),c.line.wrapClass?oa(c).className=c.line.wrapClass:c.node!=c.text&&(c.node.className="");var y=c.textClass?c.textClass+" "+(c.line.textClass||""):c.line.textClass;c.text.className=y||""}function Yo(a,c,y,v){if(c.gutter&&(c.node.removeChild(c.gutter),c.gutter=null),c.gutterBackground&&(c.node.removeChild(c.gutterBackground),c.gutterBackground=null),c.line.gutterClass){var w=oa(c);c.gutterBackground=Qe("div",null,"CodeMirror-gutter-background "+c.line.gutterClass,"left: "+(a.options.fixedGutter?v.fixedPos:-v.gutterTotalWidth)+"px; width: "+v.gutterTotalWidth+"px"),a.display.input.setUneditable(c.gutterBackground),w.insertBefore(c.gutterBackground,c.text)}var z=c.line.gutterMarkers;if(a.options.lineNumbers||z){var ie=oa(c),be=c.gutter=Qe("div",null,"CodeMirror-gutter-wrapper","left: "+(a.options.fixedGutter?v.fixedPos:-v.gutterTotalWidth)+"px");if(a.display.input.setUneditable(be),ie.insertBefore(be,c.text),c.line.gutterClass&&(be.className+=" "+c.line.gutterClass),a.options.lineNumbers&&(!z||!z["CodeMirror-linenumbers"])&&(c.lineNumber=be.appendChild(Qe("div",Si(a.options,y),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+v.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+a.display.lineNumInnerWidth+"px"))),z)for(var ve=0;ve<a.display.gutterSpecs.length;++ve){var Ge=a.display.gutterSpecs[ve].className,Bt=z.hasOwnProperty(Ge)&&z[Ge];Bt&&be.appendChild(Qe("div",[Bt],"CodeMirror-gutter-elt","left: "+v.gutterLeft[Ge]+"px; width: "+v.gutterWidth[Ge]+"px"))}}}function ya(a,c,y){c.alignable&&(c.alignable=null);for(var v=te("CodeMirror-linewidget"),w=c.node.firstChild,z=void 0;w;w=z)z=w.nextSibling,v.test(w.className)&&c.node.removeChild(w);Us(a,c,y)}function Go(a,c,y,v){var w=Ia(a,c);return c.text=c.node=w.pre,w.bgClass&&(c.bgClass=w.bgClass),w.textClass&&(c.textClass=w.textClass),Di(a,c),Yo(a,c,y,v),Us(a,c,v),c.node}function Us(a,c,y){if(vr(a,c.line,c,y,!0),c.rest)for(var v=0;v<c.rest.length;v++)vr(a,c.rest[v],c,y,!1)}function vr(a,c,y,v,w){if(c.widgets)for(var z=oa(y),ie=0,be=c.widgets;ie<be.length;++ie){var ve=be[ie],Ge=Qe("div",[ve.node],"CodeMirror-linewidget"+(ve.className?" "+ve.className:""));ve.handleMouseEvents||Ge.setAttribute("cm-ignore-events","true"),lu(ve,Ge,y,v),a.display.input.setUneditable(Ge),w&&ve.above?z.insertBefore(Ge,y.gutter||y.text):z.appendChild(Ge),vi(ve,"redraw")}}function lu(a,c,y,v){if(a.noHScroll){(y.alignable||(y.alignable=[])).push(c);var w=v.wrapperWidth;c.style.left=v.fixedPos+"px",a.coverGutter||(w-=v.gutterTotalWidth,c.style.paddingLeft=v.gutterTotalWidth+"px"),c.style.width=w+"px"}a.coverGutter&&(c.style.zIndex=5,c.style.position="relative",a.noHScroll||(c.style.marginLeft=-v.gutterTotalWidth+"px"))}function wa(a){if(a.height!=null)return a.height;var c=a.doc.cm;if(!c)return 0;if(!dt(document.body,a.node)){var y="position: relative;";a.coverGutter&&(y+="margin-left: -"+c.display.gutters.offsetWidth+"px;"),a.noHScroll&&(y+="width: "+c.display.wrapper.clientWidth+"px;"),$e(c.display.measure,Qe("div",[a.node],null,y))}return a.height=a.node.parentNode.offsetHeight}function Ca(a,c){for(var y=tt(c);y!=a.wrapper;y=y.parentNode)if(!y||y.nodeType==1&&y.getAttribute("cm-ignore-events")=="true"||y.parentNode==a.sizer&&y!=a.mover)return!0}function Oo(a){return a.lineSpace.offsetTop}function ll(a){return a.mover.offsetHeight-a.lineSpace.offsetHeight}function Tl(a){if(a.cachedPaddingH)return a.cachedPaddingH;var c=$e(a.measure,Qe("pre","x","CodeMirror-line-like")),y=window.getComputedStyle?window.getComputedStyle(c):c.currentStyle,v={left:parseInt(y.paddingLeft),right:parseInt(y.paddingRight)};return!isNaN(v.left)&&!isNaN(v.right)&&(a.cachedPaddingH=v),v}function ks(a){return Ot-a.display.nativeBarWidth}function fa(a){return a.display.scroller.clientWidth-ks(a)-a.display.barWidth}function Nl(a){return a.display.scroller.clientHeight-ks(a)-a.display.barHeight}function Ao(a,c,y){var v=a.options.lineWrapping,w=v&&fa(a);if(!c.measure.heights||v&&c.measure.width!=w){var z=c.measure.heights=[];if(v){c.measure.width=w;for(var ie=c.text.firstChild.getClientRects(),be=0;be<ie.length-1;be++){var ve=ie[be],Ge=ie[be+1];Math.abs(ve.bottom-Ge.bottom)>2&&z.push((ve.bottom+Ge.top)/2-y.top)}}z.push(y.bottom-y.top)}}function zl(a,c,y){if(a.line==c)return{map:a.measure.map,cache:a.measure.cache};for(var v=0;v<a.rest.length;v++)if(a.rest[v]==c)return{map:a.measure.maps[v],cache:a.measure.caches[v]};for(var w=0;w<a.rest.length;w++)if(ut(a.rest[w])>y)return{map:a.measure.maps[w],cache:a.measure.caches[w],before:!0}}function Ul(a,c){c=zi(c);var y=ut(c),v=a.display.externalMeasured=new bo(a.doc,c,y);v.lineN=y;var w=v.built=Ht(a,v);return v.text=w.pre,$e(a.display.lineMeasure,w.pre),v}function Eu(a,c,y,v){return Ha(a,Zo(a,c),y,v)}function Cs(a,c){if(c>=a.display.viewFrom&&c<a.display.viewTo)return a.display.view[Qs(a,c)];var y=a.display.externalMeasured;if(y&&c>=y.lineN&&c<y.lineN+y.size)return y}function Zo(a,c){var y=ut(c),v=Cs(a,y);v&&!v.text?v=null:v&&v.changes&&(ys(a,v,y,Bu(a)),a.curOp.forceUpdate=!0),v||(v=Ul(a,c));var w=zl(v,c,y);return{line:c,view:v,rect:null,map:w.map,cache:w.cache,before:w.before,hasHeights:!1}}function Ha(a,c,y,v,w){c.before&&(y=-1);var z=y+(v||""),ie;return c.cache.hasOwnProperty(z)?ie=c.cache[z]:(c.rect||(c.rect=c.view.text.getBoundingClientRect()),c.hasHeights||(Ao(a,c.view,c.rect),c.hasHeights=!0),ie=Lr(a,c,y,v),ie.bogus||(c.cache[z]=ie)),{left:ie.left,right:ie.right,top:w?ie.rtop:ie.top,bottom:w?ie.rbottom:ie.bottom}}var Hi={left:0,right:0,top:0,bottom:0};function pa(a,c,y){for(var v,w,z,ie,be,ve,Ge=0;Ge<a.length;Ge+=3)if(be=a[Ge],ve=a[Ge+1],c<be?(w=0,z=1,ie="left"):c<ve?(w=c-be,z=w+1):(Ge==a.length-3||c==ve&&a[Ge+3]>c)&&(z=ve-be,w=z-1,c>=ve&&(ie="right")),w!=null){if(v=a[Ge+2],be==ve&&y==(v.insertLeft?"left":"right")&&(ie=y),y=="left"&&w==0)for(;Ge&&a[Ge-2]==a[Ge-3]&&a[Ge-1].insertLeft;)v=a[(Ge-=3)+2],ie="left";if(y=="right"&&w==ve-be)for(;Ge<a.length-3&&a[Ge+3]==a[Ge+4]&&!a[Ge+5].insertLeft;)v=a[(Ge+=3)+2],ie="right";break}return{node:v,start:w,end:z,collapse:ie,coverStart:be,coverEnd:ve}}function Hl(a,c){var y=Hi;if(c=="left")for(var v=0;v<a.length&&(y=a[v]).left==y.right;v++);else for(var w=a.length-1;w>=0&&(y=a[w]).left==y.right;w--);return y}function Lr(a,c,y,v){var w=pa(c.map,y,v),z=w.node,ie=w.start,be=w.end,ve=w.collapse,Ge;if(z.nodeType==3){for(var Bt=0;Bt<4;Bt++){for(;ie&&mt(c.line.text.charAt(w.coverStart+ie));)--ie;for(;w.coverStart+be<w.coverEnd&&mt(c.line.text.charAt(w.coverStart+be));)++be;if(V&&Q<9&&ie==0&&be==w.coverEnd-w.coverStart?Ge=z.parentNode.getBoundingClientRect():Ge=Hl(Ce(z,ie,be).getClientRects(),v),Ge.left||Ge.right||ie==0)break;be=ie,ie=ie-1,ve="right"}V&&Q<11&&(Ge=so(a.display.measure,Ge))}else{ie>0&&(ve=v="right");var nt;a.options.lineWrapping&&(nt=z.getClientRects()).length>1?Ge=nt[v=="right"?nt.length-1:0]:Ge=z.getBoundingClientRect()}if(V&&Q<9&&!ie&&(!Ge||!Ge.left&&!Ge.right)){var Sn=z.parentNode.getClientRects()[0];Sn?Ge={left:Sn.left,right:Sn.left+Wa(a.display),top:Sn.top,bottom:Sn.bottom}:Ge=Hi}for(var mn=Ge.top-c.rect.top,di=Ge.bottom-c.rect.top,bi=(mn+di)/2,Mi=c.view.measure.heights,Ji=0;Ji<Mi.length-1&&!(bi<Mi[Ji]);Ji++);var Sr=Ji?Mi[Ji-1]:0,ar=Mi[Ji],Mr={left:(ve=="right"?Ge.right:Ge.left)-c.rect.left,right:(ve=="left"?Ge.left:Ge.right)-c.rect.left,top:Sr,bottom:ar};return!Ge.left&&!Ge.right&&(Mr.bogus=!0),a.options.singleCursorHeightPerLine||(Mr.rtop=mn,Mr.rbottom=di),Mr}function so(a,c){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!Rr(a))return c;var y=screen.logicalXDPI/screen.deviceXDPI,v=screen.logicalYDPI/screen.deviceYDPI;return{left:c.left*y,right:c.right*y,top:c.top*v,bottom:c.bottom*v}}function ns(a){if(a.measure&&(a.measure.cache={},a.measure.heights=null,a.rest))for(var c=0;c<a.rest.length;c++)a.measure.caches[c]={}}function Xo(a){a.display.externalMeasure=null,Te(a.display.lineMeasure);for(var c=0;c<a.display.view.length;c++)ns(a.display.view[c])}function jr(a){Xo(a),a.display.cachedCharWidth=a.display.cachedTextHeight=a.display.cachedPaddingH=null,a.options.lineWrapping||(a.display.maxLineChanged=!0),a.display.lineNumChars=null}function Qo(){return he&&Ie?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function is(){return he&&Ie?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function rs(a){var c=0;if(a.widgets)for(var y=0;y<a.widgets.length;++y)a.widgets[y].above&&(c+=wa(a.widgets[y]));return c}function fs(a,c,y,v,w){if(!w){var z=rs(c);y.top+=z,y.bottom+=z}if(v=="line")return y;v||(v="local");var ie=as(c);if(v=="local"?ie+=Oo(a.display):ie-=a.display.viewOffset,v=="page"||v=="window"){var be=a.display.lineSpace.getBoundingClientRect();ie+=be.top+(v=="window"?0:is());var ve=be.left+(v=="window"?0:Qo());y.left+=ve,y.right+=ve}return y.top+=ie,y.bottom+=ie,y}function $l(a,c,y){if(y=="div")return c;var v=c.left,w=c.top;if(y=="page")v-=Qo(),w-=is();else if(y=="local"||!y){var z=a.display.sizer.getBoundingClientRect();v+=z.left,w+=z.top}var ie=a.display.lineSpace.getBoundingClientRect();return{left:v-ie.left,top:w-ie.top}}function $a(a,c,y,v,w){return v||(v=sn(a.doc,c.line)),fs(a,v,Eu(a,v,c.ch,w),y)}function ls(a,c,y,v,w,z){v=v||sn(a.doc,c.line),w||(w=Zo(a,v));function ie(di,bi){var Mi=Ha(a,w,di,bi?"right":"left",z);return bi?Mi.left=Mi.right:Mi.right=Mi.left,fs(a,v,Mi,y)}var be=Gt(v,a.doc.direction),ve=c.ch,Ge=c.sticky;if(ve>=v.text.length?(ve=v.text.length,Ge="before"):ve<=0&&(ve=0,Ge="after"),!be)return ie(Ge=="before"?ve-1:ve,Ge=="before");function Bt(di,bi,Mi){var Ji=be[bi],Sr=Ji.level==1;return ie(Mi?di-1:di,Sr!=Mi)}var nt=Ze(be,ve,Ge),Sn=ot,mn=Bt(ve,nt,Ge=="before");return Sn!=null&&(mn.other=Bt(ve,Sn,Ge!="before")),mn}function ac(a,c){var y=0;c=fn(a.doc,c),a.options.lineWrapping||(y=Wa(a.display)*c.ch);var v=sn(a.doc,c.line),w=as(v)+Oo(a.display);return{left:y,right:y,top:w,bottom:w+v.height}}function lc(a,c,y,v,w){var z=Zt(a,c,y);return z.xRel=w,v&&(z.outside=v),z}function wu(a,c,y){var v=a.doc;if(y+=a.display.viewOffset,y<0)return lc(v.first,0,null,-1,-1);var w=yn(v,y),z=v.first+v.size-1;if(w>z)return lc(v.first+v.size-1,sn(v,z).text.length,null,1,1);c<0&&(c=0);for(var ie=sn(v,w);;){var be=An(a,ie,w,c,y),ve=Ri(ie,be.ch+(be.xRel>0||be.outside>0?1:0));if(!ve)return be;var Ge=ve.find(1);if(Ge.line==w)return Ge;ie=sn(v,w=Ge.line)}}function er(a,c,y,v){v-=rs(c);var w=c.text.length,z=Le(function(ie){return Ha(a,y,ie-1).bottom<=v},w,0);return w=Le(function(ie){return Ha(a,y,ie).top>v},z,w),{begin:z,end:w}}function ja(a,c,y,v){y||(y=Zo(a,c));var w=fs(a,c,Ha(a,y,v),"line").top;return er(a,c,y,w)}function Ke(a,c,y,v){return a.bottom<=y?!1:a.top>y?!0:(v?a.left:a.right)>c}function An(a,c,y,v,w){w-=as(c);var z=Zo(a,c),ie=rs(c),be=0,ve=c.text.length,Ge=!0,Bt=Gt(c,a.doc.direction);if(Bt){var nt=(a.options.lineWrapping?jl:Cu)(a,c,y,z,Bt,v,w);Ge=nt.level!=1,be=Ge?nt.from:nt.to-1,ve=Ge?nt.to:nt.from-1}var Sn=null,mn=null,di=Le(function(Qr){var sr=Ha(a,z,Qr);return sr.top+=ie,sr.bottom+=ie,Ke(sr,v,w,!1)?(sr.top<=w&&sr.left<=v&&(Sn=Qr,mn=sr),!0):!1},be,ve),bi,Mi,Ji=!1;if(mn){var Sr=v-mn.left<mn.right-v,ar=Sr==Ge;di=Sn+(ar?0:1),Mi=ar?"after":"before",bi=Sr?mn.left:mn.right}else{!Ge&&(di==ve||di==be)&&di++,Mi=di==0?"after":di==c.text.length?"before":Ha(a,z,di-(Ge?1:0)).bottom+ie<=w==Ge?"after":"before";var Mr=ls(a,Zt(y,di,Mi),"line",c,z);bi=Mr.left,Ji=w<Mr.top?-1:w>=Mr.bottom?1:0}return di=_e(c.text,di,1),lc(y,di,Mi,Ji,v-bi)}function Cu(a,c,y,v,w,z,ie){var be=Le(function(nt){var Sn=w[nt],mn=Sn.level!=1;return Ke(ls(a,Zt(y,mn?Sn.to:Sn.from,mn?"before":"after"),"line",c,v),z,ie,!0)},0,w.length-1),ve=w[be];if(be>0){var Ge=ve.level!=1,Bt=ls(a,Zt(y,Ge?ve.from:ve.to,Ge?"after":"before"),"line",c,v);Ke(Bt,z,ie,!0)&&Bt.top>ie&&(ve=w[be-1])}return ve}function jl(a,c,y,v,w,z,ie){var be=er(a,c,v,ie),ve=be.begin,Ge=be.end;/\s/.test(c.text.charAt(Ge-1))&&Ge--;for(var Bt=null,nt=null,Sn=0;Sn<w.length;Sn++){var mn=w[Sn];if(!(mn.from>=Ge||mn.to<=ve)){var di=mn.level!=1,bi=Ha(a,v,di?Math.min(Ge,mn.to)-1:Math.max(ve,mn.from)).right,Mi=bi<z?z-bi+1e9:bi-z;(!Bt||nt>Mi)&&(Bt=mn,nt=Mi)}}return Bt||(Bt=w[w.length-1]),Bt.from<ve&&(Bt={from:ve,to:Bt.to,level:Bt.level}),Bt.to>Ge&&(Bt={from:Bt.from,to:Ge,level:Bt.level}),Bt}var Pa;function Ga(a){if(a.cachedTextHeight!=null)return a.cachedTextHeight;if(Pa==null){Pa=Qe("pre",null,"CodeMirror-line-like");for(var c=0;c<49;++c)Pa.appendChild(document.createTextNode("x")),Pa.appendChild(Qe("br"));Pa.appendChild(document.createTextNode("x"))}$e(a.measure,Pa);var y=Pa.offsetHeight/50;return y>3&&(a.cachedTextHeight=y),Te(a.measure),y||1}function Wa(a){if(a.cachedCharWidth!=null)return a.cachedCharWidth;var c=Qe("span","xxxxxxxxxx"),y=Qe("pre",[c],"CodeMirror-line-like");$e(a.measure,y);var v=c.getBoundingClientRect(),w=(v.right-v.left)/10;return w>2&&(a.cachedCharWidth=w),w||10}function Bu(a){for(var c=a.display,y={},v={},w=c.gutters.clientLeft,z=c.gutters.firstChild,ie=0;z;z=z.nextSibling,++ie){var be=a.display.gutterSpecs[ie].className;y[be]=z.offsetLeft+z.clientLeft+w,v[be]=z.clientWidth}return{fixedPos:Al(c),gutterTotalWidth:c.gutters.offsetWidth,gutterLeft:y,gutterWidth:v,wrapperWidth:c.wrapper.clientWidth}}function Al(a){return a.scroller.getBoundingClientRect().left-a.sizer.getBoundingClientRect().left}function us(a){var c=Ga(a.display),y=a.options.lineWrapping,v=y&&Math.max(5,a.display.scroller.clientWidth/Wa(a.display)-3);return function(w){if(mi(a.doc,w))return 0;var z=0;if(w.widgets)for(var ie=0;ie<w.widgets.length;ie++)w.widgets[ie].height&&(z+=w.widgets[ie].height);return y?z+(Math.ceil(w.text.length/v)||1)*c:z+c}}function xr(a){var c=a.doc,y=us(a);c.iter(function(v){var w=y(v);w!=v.height&&Kn(v,w)})}function Ta(a,c,y,v){var w=a.display;if(!y&&tt(c).getAttribute("cm-not-content")=="true")return null;var z,ie,be=w.lineSpace.getBoundingClientRect();try{z=c.clientX-be.left,ie=c.clientY-be.top}catch(nt){return null}var ve=wu(a,z,ie),Ge;if(v&&ve.xRel>0&&(Ge=sn(a.doc,ve.line).text).length==ve.ch){var Bt=Ye(Ge,Ge.length,a.options.tabSize)-Ge.length;ve=Zt(ve.line,Math.max(0,Math.round((z-Tl(a.display).left)/Wa(a.display))-Bt))}return ve}function Qs(a,c){if(c>=a.display.viewTo||(c-=a.display.viewFrom,c<0))return null;for(var y=a.display.view,v=0;v<y.length;v++)if(c-=y[v].size,c<0)return v}function Wo(a,c,y,v){c==null&&(c=a.doc.first),y==null&&(y=a.doc.first+a.doc.size),v||(v=0);var w=a.display;if(v&&y<w.viewTo&&(w.updateLineNumbers==null||w.updateLineNumbers>c)&&(w.updateLineNumbers=c),a.curOp.viewChanged=!0,c>=w.viewTo)Xt&&no(a.doc,c)<w.viewTo&&Ts(a);else if(y<=w.viewFrom)Xt&&Po(a.doc,y+v)>w.viewFrom?Ts(a):(w.viewFrom+=v,w.viewTo+=v);else if(c<=w.viewFrom&&y>=w.viewTo)Ts(a);else if(c<=w.viewFrom){var z=Na(a,y,y+v,1);z?(w.view=w.view.slice(z.index),w.viewFrom=z.lineN,w.viewTo+=v):Ts(a)}else if(y>=w.viewTo){var ie=Na(a,c,c,-1);ie?(w.view=w.view.slice(0,ie.index),w.viewTo=ie.lineN):Ts(a)}else{var be=Na(a,c,c,-1),ve=Na(a,y,y+v,1);be&&ve?(w.view=w.view.slice(0,be.index).concat(Or(a,be.lineN,ve.lineN)).concat(w.view.slice(ve.index)),w.viewTo+=v):Ts(a)}var Ge=w.externalMeasured;Ge&&(y<Ge.lineN?Ge.lineN+=v:c<Ge.lineN+Ge.size&&(w.externalMeasured=null))}function Gr(a,c,y){a.curOp.viewChanged=!0;var v=a.display,w=a.display.externalMeasured;if(w&&c>=w.lineN&&c<w.lineN+w.size&&(v.externalMeasured=null),!(c<v.viewFrom||c>=v.viewTo)){var z=v.view[Qs(a,c)];if(z.node!=null){var ie=z.changes||(z.changes=[]);H(ie,y)==-1&&ie.push(y)}}}function Ts(a){a.display.viewFrom=a.display.viewTo=a.doc.first,a.display.view=[],a.display.viewOffset=0}function Na(a,c,y,v){var w=Qs(a,c),z,ie=a.display.view;if(!Xt||y==a.doc.first+a.doc.size)return{index:w,lineN:y};for(var be=a.display.viewFrom,ve=0;ve<w;ve++)be+=ie[ve].size;if(be!=c){if(v>0){if(w==ie.length-1)return null;z=be+ie[w].size-c,w++}else z=be-c;c+=z,y+=z}for(;no(a.doc,y)!=y;){if(w==(v<0?0:ie.length-1))return null;y+=v*ie[w-(v<0?1:0)].size,w+=v}return{index:w,lineN:y}}function _o(a,c,y){var v=a.display,w=v.view;w.length==0||c>=v.viewTo||y<=v.viewFrom?(v.view=Or(a,c,y),v.viewFrom=c):(v.viewFrom>c?v.view=Or(a,c,v.viewFrom).concat(v.view):v.viewFrom<c&&(v.view=v.view.slice(Qs(a,c))),v.viewFrom=c,v.viewTo<y?v.view=v.view.concat(Or(a,v.viewTo,y)):v.viewTo>y&&(v.view=v.view.slice(0,Qs(a,y)))),v.viewTo=y}function Ma(a){for(var c=a.display.view,y=0,v=0;v<c.length;v++){var w=c[v];!w.hidden&&(!w.node||w.changes)&&++y}return y}function Hs(a){a.display.input.showSelection(a.display.input.prepareSelection())}function uu(a,c){c===void 0&&(c=!0);for(var y=a.doc,v={},w=v.cursors=document.createDocumentFragment(),z=v.selection=document.createDocumentFragment(),ie=0;ie<y.sel.ranges.length;ie++)if(!(!c&&ie==y.sel.primIndex)){var be=y.sel.ranges[ie];if(!(be.from().line>=a.display.viewTo||be.to().line<a.display.viewFrom)){var ve=be.empty();(ve||a.options.showCursorWhenSelecting)&&uo(a,be.head,w),ve||io(a,be,z)}}return v}function uo(a,c,y){var v=ls(a,c,"div",null,null,!a.options.singleCursorHeightPerLine),w=y.appendChild(Qe("div","\xA0","CodeMirror-cursor"));if(w.style.left=v.left+"px",w.style.top=v.top+"px",w.style.height=Math.max(0,v.bottom-v.top)*a.options.cursorHeight+"px",v.other){var z=y.appendChild(Qe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));z.style.display="",z.style.left=v.other.left+"px",z.style.top=v.other.top+"px",z.style.height=(v.other.bottom-v.other.top)*.85+"px"}}function sa(a,c){return a.top-c.top||a.left-c.left}function io(a,c,y){var v=a.display,w=a.doc,z=document.createDocumentFragment(),ie=Tl(a.display),be=ie.left,ve=Math.max(v.sizerWidth,fa(a)-v.sizer.offsetLeft)-ie.right,Ge=w.direction=="ltr";function Bt(ar,Mr,Qr,sr){Mr<0&&(Mr=0),Mr=Math.round(Mr),sr=Math.round(sr),z.appendChild(Qe("div",null,"CodeMirror-selected","position: absolute; left: "+ar+`px;
|
|
|
top: `+Mr+"px; width: "+(Qr==null?ve-ar:Qr)+`px;
|
|
|
height: `+(sr-Mr)+"px"))}function nt(ar,Mr,Qr){var sr=sn(w,ar),To=sr.text.length,na,rl;function ma(Qa,ku){return $a(a,Zt(ar,Qa),"div",sr,ku)}function gu(Qa,ku,Rl){var Ja=ja(a,sr,null,Qa),gs=ku=="ltr"==(Rl=="after")?"left":"right",xa=Rl=="after"?Ja.begin:Ja.end-(/\s/.test(sr.text.charAt(Ja.end-1))?2:1);return ma(xa,gs)[gs]}var Yl=Gt(sr,w.direction);return ct(Yl,Mr||0,Qr==null?To:Qr,function(Qa,ku,Rl,Ja){var gs=Rl=="ltr",xa=ma(Qa,gs?"left":"right"),dl=ma(ku-1,gs?"right":"left"),Dl=Mr==null&&Qa==0,hc=Qr==null&&ku==To,ga=Ja==0,Ju=!Yl||Ja==Yl.length-1;if(dl.top-xa.top<=3){var ka=(Ge?Dl:hc)&&ga,zd=(Ge?hc:Dl)&&Ju,_u=ka?be:(gs?xa:dl).left,Iu=zd?ve:(gs?dl:xa).right;Bt(_u,xa.top,Iu-_u,xa.bottom)}else{var vu,Bs,fl,Fc;gs?(vu=Ge&&Dl&&ga?be:xa.left,Bs=Ge?ve:gu(Qa,Rl,"before"),fl=Ge?be:gu(ku,Rl,"after"),Fc=Ge&&hc&&Ju?ve:dl.right):(vu=Ge?gu(Qa,Rl,"before"):be,Bs=!Ge&&Dl&&ga?ve:xa.right,fl=!Ge&&hc&&Ju?be:dl.left,Fc=Ge?gu(ku,Rl,"after"):ve),Bt(vu,xa.top,Bs-vu,xa.bottom),xa.bottom<dl.top&&Bt(be,xa.bottom,null,dl.top),Bt(fl,dl.top,Fc-fl,dl.bottom)}(!na||sa(xa,na)<0)&&(na=xa),sa(dl,na)<0&&(na=dl),(!rl||sa(xa,rl)<0)&&(rl=xa),sa(dl,rl)<0&&(rl=dl)}),{start:na,end:rl}}var Sn=c.from(),mn=c.to();if(Sn.line==mn.line)nt(Sn.line,Sn.ch,mn.ch);else{var di=sn(w,Sn.line),bi=sn(w,mn.line),Mi=zi(di)==zi(bi),Ji=nt(Sn.line,Sn.ch,Mi?di.text.length+1:null).end,Sr=nt(mn.line,Mi?0:null,mn.ch).start;Mi&&(Ji.top<Sr.top-2?(Bt(Ji.right,Ji.top,null,Ji.bottom),Bt(be,Sr.top,Sr.left,Sr.bottom)):Bt(Ji.right,Ji.top,Sr.left-Ji.right,Ji.bottom)),Ji.bottom<Sr.top&&Bt(be,Ji.bottom,null,Sr.top)}y.appendChild(z)}function zo(a){if(a.state.focused){var c=a.display;clearInterval(c.blinker);var y=!0;c.cursorDiv.style.visibility="",a.options.cursorBlinkRate>0?c.blinker=setInterval(function(){a.hasFocus()||cu(a),c.cursorDiv.style.visibility=(y=!y)?"":"hidden"},a.options.cursorBlinkRate):a.options.cursorBlinkRate<0&&(c.cursorDiv.style.visibility="hidden")}}function os(a){a.state.focused||(a.display.input.focus(),wo(a))}function ps(a){a.state.delayingBlurEvent=!0,setTimeout(function(){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1,cu(a))},100)}function wo(a,c){a.state.delayingBlurEvent&&(a.state.delayingBlurEvent=!1),a.options.readOnly!="nocursor"&&(a.state.focused||(We(a,"focus",a,c),a.state.focused=!0,$t(a.display.wrapper,"CodeMirror-focused"),!a.curOp&&a.display.selForContextMenu!=a.doc.sel&&(a.display.input.reset(),M&&setTimeout(function(){return a.display.input.reset(!0)},20)),a.display.input.receivedFocus()),zo(a))}function cu(a,c){a.state.delayingBlurEvent||(a.state.focused&&(We(a,"blur",a,c),a.state.focused=!1,Ae(a.display.wrapper,"CodeMirror-focused")),clearInterval(a.display.blinker),setTimeout(function(){a.state.focused||(a.display.shift=!1)},150))}function or(a){for(var c=a.display,y=c.lineDiv.offsetTop,v=0;v<c.view.length;v++){var w=c.view[v],z=a.options.lineWrapping,ie=void 0,be=0;if(!w.hidden){if(V&&Q<8){var ve=w.node.offsetTop+w.node.offsetHeight;ie=ve-y,y=ve}else{var Ge=w.node.getBoundingClientRect();ie=Ge.bottom-Ge.top,!z&&w.text.firstChild&&(be=w.text.firstChild.getBoundingClientRect().right-Ge.left-1)}var Bt=w.line.height-ie;if((Bt>.005||Bt<-.005)&&(Kn(w.line,ie),Tu(w.line),w.rest))for(var nt=0;nt<w.rest.length;nt++)Tu(w.rest[nt]);if(be>a.display.sizerWidth){var Sn=Math.ceil(be/Wa(a.display));Sn>a.display.maxLineLength&&(a.display.maxLineLength=Sn,a.display.maxLine=w.line,a.display.maxLineChanged=!0)}}}}function Tu(a){if(a.widgets)for(var c=0;c<a.widgets.length;++c){var y=a.widgets[c],v=y.node.parentNode;v&&(y.height=v.offsetHeight)}}function ao(a,c,y){var v=y&&y.top!=null?Math.max(0,y.top):a.scroller.scrollTop;v=Math.floor(v-Oo(a));var w=y&&y.bottom!=null?y.bottom:v+a.wrapper.clientHeight,z=yn(c,v),ie=yn(c,w);if(y&&y.ensure){var be=y.ensure.from.line,ve=y.ensure.to.line;be<z?(z=be,ie=yn(c,as(sn(c,be))+a.wrapper.clientHeight)):Math.min(ve,c.lastLine())>=ie&&(z=yn(c,as(sn(c,ve))-a.wrapper.clientHeight),ie=ve)}return{from:z,to:Math.max(ie,z+1)}}function Vu(a,c){if(!Dt(a,"scrollCursorIntoView")){var y=a.display,v=y.sizer.getBoundingClientRect(),w=null;if(c.top+v.top<0?w=!0:c.bottom+v.top>(window.innerHeight||document.documentElement.clientHeight)&&(w=!1),w!=null&&!it){var z=Qe("div","\u200B",null,`position: absolute;
|
|
|
top: `+(c.top-y.viewOffset-Oo(a.display))+`px;
|
|
|
height: `+(c.bottom-c.top+ks(a)+y.barHeight)+`px;
|
|
|
left: `+c.left+"px; width: "+Math.max(2,c.right-c.left)+"px;");a.display.lineSpace.appendChild(z),z.scrollIntoView(w),a.display.lineSpace.removeChild(z)}}}function Ku(a,c,y,v){v==null&&(v=0);var w;!a.options.lineWrapping&&c==y&&(c=c.ch?Zt(c.line,c.sticky=="before"?c.ch-1:c.ch,"after"):c,y=c.sticky=="before"?Zt(c.line,c.ch+1,"before"):c);for(var z=0;z<5;z++){var ie=!1,be=ls(a,c),ve=!y||y==c?be:ls(a,y);w={left:Math.min(be.left,ve.left),top:Math.min(be.top,ve.top)-v,right:Math.max(be.left,ve.left),bottom:Math.max(be.bottom,ve.bottom)+v};var Ge=Sc(a,w),Bt=a.doc.scrollTop,nt=a.doc.scrollLeft;if(Ge.scrollTop!=null&&(Wl(a,Ge.scrollTop),Math.abs(a.doc.scrollTop-Bt)>1&&(ie=!0)),Ge.scrollLeft!=null&&(tl(a,Ge.scrollLeft),Math.abs(a.doc.scrollLeft-nt)>1&&(ie=!0)),!ie)break}return w}function Yu(a,c){var y=Sc(a,c);y.scrollTop!=null&&Wl(a,y.scrollTop),y.scrollLeft!=null&&tl(a,y.scrollLeft)}function Sc(a,c){var y=a.display,v=Ga(a.display);c.top<0&&(c.top=0);var w=a.curOp&&a.curOp.scrollTop!=null?a.curOp.scrollTop:y.scroller.scrollTop,z=Nl(a),ie={};c.bottom-c.top>z&&(c.bottom=c.top+z);var be=a.doc.height+ll(y),ve=c.top<v,Ge=c.bottom>be-v;if(c.top<w)ie.scrollTop=ve?0:c.top;else if(c.bottom>w+z){var Bt=Math.min(c.top,(Ge?be:c.bottom)-z);Bt!=w&&(ie.scrollTop=Bt)}var nt=a.options.fixedGutter?0:y.gutters.offsetWidth,Sn=a.curOp&&a.curOp.scrollLeft!=null?a.curOp.scrollLeft:y.scroller.scrollLeft-nt,mn=fa(a)-y.gutters.offsetWidth,di=c.right-c.left>mn;return di&&(c.right=c.left+mn),c.left<10?ie.scrollLeft=0:c.left<Sn?ie.scrollLeft=Math.max(0,c.left+nt-(di?0:10)):c.right>mn+Sn-3&&(ie.scrollLeft=c.right+(di?0:10)-mn),ie}function el(a,c){c!=null&&(ul(a),a.curOp.scrollTop=(a.curOp.scrollTop==null?a.doc.scrollTop:a.curOp.scrollTop)+c)}function Gl(a){ul(a);var c=a.getCursor();a.curOp.scrollToPos={from:c,to:c,margin:a.options.cursorScrollMargin}}function eu(a,c,y){(c!=null||y!=null)&&ul(a),c!=null&&(a.curOp.scrollLeft=c),y!=null&&(a.curOp.scrollTop=y)}function xo(a,c){ul(a),a.curOp.scrollToPos=c}function ul(a){var c=a.curOp.scrollToPos;if(c){a.curOp.scrollToPos=null;var y=ac(a,c.from),v=ac(a,c.to);Ec(a,y,v,c.margin)}}function Ec(a,c,y,v){var w=Sc(a,{left:Math.min(c.left,y.left),top:Math.min(c.top,y.top)-v,right:Math.max(c.right,y.right),bottom:Math.max(c.bottom,y.bottom)+v});eu(a,w.scrollLeft,w.scrollTop)}function Wl(a,c){Math.abs(a.doc.scrollTop-c)<2||(b||ge(a,{top:c}),hu(a,c,!0),b&&ge(a),Pn(a,100))}function hu(a,c,y){c=Math.max(0,Math.min(a.display.scroller.scrollHeight-a.display.scroller.clientHeight,c)),!(a.display.scroller.scrollTop==c&&!y)&&(a.doc.scrollTop=c,a.display.scrollbars.setScrollTop(c),a.display.scroller.scrollTop!=c&&(a.display.scroller.scrollTop=c))}function tl(a,c,y,v){c=Math.max(0,Math.min(c,a.display.scroller.scrollWidth-a.display.scroller.clientWidth)),!((y?c==a.doc.scrollLeft:Math.abs(a.doc.scrollLeft-c)<2)&&!v)&&(a.doc.scrollLeft=c,Ft(a),a.display.scroller.scrollLeft!=c&&(a.display.scroller.scrollLeft=c),a.display.scrollbars.setScrollLeft(c))}function Va(a){var c=a.display,y=c.gutters.offsetWidth,v=Math.round(a.doc.height+ll(a.display));return{clientHeight:c.scroller.clientHeight,viewHeight:c.wrapper.clientHeight,scrollWidth:c.scroller.scrollWidth,clientWidth:c.scroller.clientWidth,viewWidth:c.wrapper.clientWidth,barLeft:a.options.fixedGutter?y:0,docHeight:v,scrollHeight:v+ks(a)+c.barHeight,nativeBarWidth:c.nativeBarWidth,gutterWidth:y}}var du=function(a,c,y){this.cm=y;var v=this.vert=Qe("div",[Qe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),w=this.horiz=Qe("div",[Qe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");v.tabIndex=w.tabIndex=-1,a(v),a(w),Pt(v,"scroll",function(){v.clientHeight&&c(v.scrollTop,"vertical")}),Pt(w,"scroll",function(){w.clientWidth&&c(w.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,V&&Q<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};du.prototype.update=function(a){var c=a.scrollWidth>a.clientWidth+1,y=a.scrollHeight>a.clientHeight+1,v=a.nativeBarWidth;if(y){this.vert.style.display="block",this.vert.style.bottom=c?v+"px":"0";var w=a.viewHeight-(c?v:0);this.vert.firstChild.style.height=Math.max(0,a.scrollHeight-a.clientHeight+w)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(c){this.horiz.style.display="block",this.horiz.style.right=y?v+"px":"0",this.horiz.style.left=a.barLeft+"px";var z=a.viewWidth-a.barLeft-(y?v:0);this.horiz.firstChild.style.width=Math.max(0,a.scrollWidth-a.clientWidth+z)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&a.clientHeight>0&&(v==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:y?v:0,bottom:c?v:0}},du.prototype.setScrollLeft=function(a){this.horiz.scrollLeft!=a&&(this.horiz.scrollLeft=a),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},du.prototype.setScrollTop=function(a){this.vert.scrollTop!=a&&(this.vert.scrollTop=a),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},du.prototype.zeroWidthHack=function(){var a=ze&&!ne?"12px":"18px";this.horiz.style.height=this.vert.style.width=a,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new oe,this.disableVert=new oe},du.prototype.enableZeroWidthBar=function(a,c,y){a.style.pointerEvents="auto";function v(){var w=a.getBoundingClientRect(),z=y=="vert"?document.elementFromPoint(w.right-1,(w.top+w.bottom)/2):document.elementFromPoint((w.right+w.left)/2,w.bottom-1);z!=a?a.style.pointerEvents="none":c.set(1e3,v)}c.set(1e3,v)},du.prototype.clear=function(){var a=this.horiz.parentNode;a.removeChild(this.horiz),a.removeChild(this.vert)};var kl=function(){};kl.prototype.update=function(){return{bottom:0,right:0}},kl.prototype.setScrollLeft=function(){},kl.prototype.setScrollTop=function(){},kl.prototype.clear=function(){};function Vl(a,c){c||(c=Va(a));var y=a.display.barWidth,v=a.display.barHeight;uc(a,c);for(var w=0;w<4&&y!=a.display.barWidth||v!=a.display.barHeight;w++)y!=a.display.barWidth&&a.options.lineWrapping&&or(a),uc(a,Va(a)),y=a.display.barWidth,v=a.display.barHeight}function uc(a,c){var y=a.display,v=y.scrollbars.update(c);y.sizer.style.paddingRight=(y.barWidth=v.right)+"px",y.sizer.style.paddingBottom=(y.barHeight=v.bottom)+"px",y.heightForcer.style.borderBottom=v.bottom+"px solid transparent",v.right&&v.bottom?(y.scrollbarFiller.style.display="block",y.scrollbarFiller.style.height=v.bottom+"px",y.scrollbarFiller.style.width=v.right+"px"):y.scrollbarFiller.style.display="",v.bottom&&a.options.coverGutterNextToScrollbar&&a.options.fixedGutter?(y.gutterFiller.style.display="block",y.gutterFiller.style.height=v.bottom+"px",y.gutterFiller.style.width=c.gutterWidth+"px"):y.gutterFiller.style.display=""}var Zu={native:du,null:kl};function Dc(a){a.display.scrollbars&&(a.display.scrollbars.clear(),a.display.scrollbars.addClass&&Ae(a.display.wrapper,a.display.scrollbars.addClass)),a.display.scrollbars=new Zu[a.options.scrollbarStyle](function(c){a.display.wrapper.insertBefore(c,a.display.scrollbarFiller),Pt(c,"mousedown",function(){a.state.focused&&setTimeout(function(){return a.display.input.focus()},0)}),c.setAttribute("cm-not-content","true")},function(c,y){y=="horizontal"?tl(a,c):Wl(a,c)},a),a.display.scrollbars.addClass&&$t(a.display.wrapper,a.display.scrollbars.addClass)}var cl=0;function aa(a){a.curOp={cm:a,viewChanged:!1,startHeight:a.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:++cl},va(a.curOp)}function Il(a){var c=a.curOp;c&&xn(c,function(y){for(var v=0;v<y.ops.length;v++)y.ops[v].cm.curOp=null;cc(y)})}function cc(a){for(var c=a.ops,y=0;y<c.length;y++)Se(c[y]);for(var v=0;v<c.length;v++)ke(c[v]);for(var w=0;w<c.length;w++)st(c[w]);for(var z=0;z<c.length;z++)pt(c[z]);for(var ie=0;ie<c.length;ie++)Lt(c[ie])}function Se(a){var c=a.cm,y=c.display;E(c),a.updateMaxLine&&As(c),a.mustUpdate=a.viewChanged||a.forceUpdate||a.scrollTop!=null||a.scrollToPos&&(a.scrollToPos.from.line<y.viewFrom||a.scrollToPos.to.line>=y.viewTo)||y.maxLineChanged&&c.options.lineWrapping,a.update=a.mustUpdate&&new Bn(c,a.mustUpdate&&{top:a.scrollTop,ensure:a.scrollToPos},a.forceUpdate)}function ke(a){a.updatedDisplay=a.mustUpdate&&q(a.cm,a.update)}function st(a){var c=a.cm,y=c.display;a.updatedDisplay&&or(c),a.barMeasure=Va(c),y.maxLineChanged&&!c.options.lineWrapping&&(a.adjustWidthTo=Eu(c,y.maxLine,y.maxLine.text.length).left+3,c.display.sizerWidth=a.adjustWidthTo,a.barMeasure.scrollWidth=Math.max(y.scroller.clientWidth,y.sizer.offsetLeft+a.adjustWidthTo+ks(c)+c.display.barWidth),a.maxScrollLeft=Math.max(0,y.sizer.offsetLeft+a.adjustWidthTo-fa(c))),(a.updatedDisplay||a.selectionChanged)&&(a.preparedSelection=y.input.prepareSelection())}function pt(a){var c=a.cm;a.adjustWidthTo!=null&&(c.display.sizer.style.minWidth=a.adjustWidthTo+"px",a.maxScrollLeft<c.doc.scrollLeft&&tl(c,Math.min(c.display.scroller.scrollLeft,a.maxScrollLeft),!0),c.display.maxLineChanged=!1);var y=a.focus&&a.focus==Xe();a.preparedSelection&&c.display.input.showSelection(a.preparedSelection,y),(a.updatedDisplay||a.startHeight!=c.doc.height)&&Vl(c,a.barMeasure),a.updatedDisplay&&zt(c,a.barMeasure),a.selectionChanged&&zo(c),c.state.focused&&a.updateInput&&c.display.input.reset(a.typing),y&&os(a.cm)}function Lt(a){var c=a.cm,y=c.display,v=c.doc;if(a.updatedDisplay&&le(c,a.update),y.wheelStartX!=null&&(a.scrollTop!=null||a.scrollLeft!=null||a.scrollToPos)&&(y.wheelStartX=y.wheelStartY=null),a.scrollTop!=null&&hu(c,a.scrollTop,a.forceScroll),a.scrollLeft!=null&&tl(c,a.scrollLeft,!0,!0),a.scrollToPos){var w=Ku(c,fn(v,a.scrollToPos.from),fn(v,a.scrollToPos.to),a.scrollToPos.margin);Vu(c,w)}var z=a.maybeHiddenMarkers,ie=a.maybeUnhiddenMarkers;if(z)for(var be=0;be<z.length;++be)z[be].lines.length||We(z[be],"hide");if(ie)for(var ve=0;ve<ie.length;++ve)ie[ve].lines.length&&We(ie[ve],"unhide");y.wrapper.offsetHeight&&(v.scrollTop=c.display.scroller.scrollTop),a.changeObjs&&We(c,"changes",c,a.changeObjs),a.update&&a.update.finish()}function Tt(a,c){if(a.curOp)return c();aa(a);try{return c()}finally{Il(a)}}function me(a,c){return function(){if(a.curOp)return c.apply(a,arguments);aa(a);try{return c.apply(a,arguments)}finally{Il(a)}}}function dn(a){return function(){if(this.curOp)return a.apply(this,arguments);aa(this);try{return a.apply(this,arguments)}finally{Il(this)}}}function an(a){return function(){var c=this.cm;if(!c||c.curOp)return a.apply(this,arguments);aa(c);try{return a.apply(this,arguments)}finally{Il(c)}}}function Pn(a,c){a.doc.highlightFrontier<a.display.viewTo&&a.state.highlight.set(c,St(Rn,a))}function Rn(a){var c=a.doc;if(!(c.highlightFrontier>=a.display.viewTo)){var y=+new Date+a.options.workTime,v=lr(a,c.highlightFrontier),w=[];c.iter(v.line,Math.min(c.first+c.size,a.display.viewTo+500),function(z){if(v.line>=a.display.viewFrom){var ie=z.styles,be=z.text.length>a.options.maxHighlightLength?Fn(c.mode,v.state):null,ve=ki(a,z,v,!0);be&&(v.state=be),z.styles=ve.styles;var Ge=z.styleClasses,Bt=ve.classes;Bt?z.styleClasses=Bt:Ge&&(z.styleClasses=null);for(var nt=!ie||ie.length!=z.styles.length||Ge!=Bt&&(!Ge||!Bt||Ge.bgClass!=Bt.bgClass||Ge.textClass!=Bt.textClass),Sn=0;!nt&&Sn<ie.length;++Sn)nt=ie[Sn]!=z.styles[Sn];nt&&w.push(v.line),z.stateAfter=v.save(),v.nextLine()}else z.text.length<=a.options.maxHighlightLength&&qt(a,z.text,v),z.stateAfter=v.line%5==0?v.save():null,v.nextLine();if(+new Date>y)return Pn(a,a.options.workDelay),!0}),c.highlightFrontier=v.line,c.modeFrontier=Math.max(c.modeFrontier,v.line),w.length&&Tt(a,function(){for(var z=0;z<w.length;z++)Gr(a,w[z],"text")})}}var Bn=function(a,c,y){var v=a.display;this.viewport=c,this.visible=ao(v,a.doc,c),this.editorIsHidden=!v.wrapper.offsetWidth,this.wrapperHeight=v.wrapper.clientHeight,this.wrapperWidth=v.wrapper.clientWidth,this.oldDisplayWidth=fa(a),this.force=y,this.dims=Bu(a),this.events=[]};Bn.prototype.signal=function(a,c){bn(a,c)&&this.events.push(arguments)},Bn.prototype.finish=function(){for(var a=0;a<this.events.length;a++)We.apply(null,this.events[a])};function E(a){var c=a.display;!c.scrollbarsClipped&&c.scroller.offsetWidth&&(c.nativeBarWidth=c.scroller.offsetWidth-c.scroller.clientWidth,c.heightForcer.style.height=ks(a)+"px",c.sizer.style.marginBottom=-c.nativeBarWidth+"px",c.sizer.style.borderRightWidth=ks(a)+"px",c.scrollbarsClipped=!0)}function P(a){if(a.hasFocus())return null;var c=Xe();if(!c||!dt(a.display.lineDiv,c))return null;var y={activeElt:c};if(window.getSelection){var v=window.getSelection();v.anchorNode&&v.extend&&dt(a.display.lineDiv,v.anchorNode)&&(y.anchorNode=v.anchorNode,y.anchorOffset=v.anchorOffset,y.focusNode=v.focusNode,y.focusOffset=v.focusOffset)}return y}function U(a){if(!(!a||!a.activeElt||a.activeElt==Xe())&&(a.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(a.activeElt.nodeName)&&a.anchorNode&&dt(document.body,a.anchorNode)&&dt(document.body,a.focusNode))){var c=window.getSelection(),y=document.createRange();y.setEnd(a.anchorNode,a.anchorOffset),y.collapse(!1),c.removeAllRanges(),c.addRange(y),c.extend(a.focusNode,a.focusOffset)}}function q(a,c){var y=a.display,v=a.doc;if(c.editorIsHidden)return Ts(a),!1;if(!c.force&&c.visible.from>=y.viewFrom&&c.visible.to<=y.viewTo&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo)&&y.renderedView==y.view&&Ma(a)==0)return!1;gt(a)&&(Ts(a),c.dims=Bu(a));var w=v.first+v.size,z=Math.max(c.visible.from-a.options.viewportMargin,v.first),ie=Math.min(w,c.visible.to+a.options.viewportMargin);y.viewFrom<z&&z-y.viewFrom<20&&(z=Math.max(v.first,y.viewFrom)),y.viewTo>ie&&y.viewTo-ie<20&&(ie=Math.min(w,y.viewTo)),Xt&&(z=no(a.doc,z),ie=Po(a.doc,ie));var be=z!=y.viewFrom||ie!=y.viewTo||y.lastWrapHeight!=c.wrapperHeight||y.lastWrapWidth!=c.wrapperWidth;_o(a,z,ie),y.viewOffset=as(sn(a.doc,y.viewFrom)),a.display.mover.style.top=y.viewOffset+"px";var ve=Ma(a);if(!be&&ve==0&&!c.force&&y.renderedView==y.view&&(y.updateLineNumbers==null||y.updateLineNumbers>=y.viewTo))return!1;var Ge=P(a);return ve>4&&(y.lineDiv.style.display="none"),Me(a,y.updateLineNumbers,c.dims),ve>4&&(y.lineDiv.style.display=""),y.renderedView=y.view,U(Ge),Te(y.cursorDiv),Te(y.selectionDiv),y.gutters.style.height=y.sizer.style.minHeight=0,be&&(y.lastWrapHeight=c.wrapperHeight,y.lastWrapWidth=c.wrapperWidth,Pn(a,400)),y.updateLineNumbers=null,!0}function le(a,c){for(var y=c.viewport,v=!0;;v=!1){if(!v||!a.options.lineWrapping||c.oldDisplayWidth==fa(a)){if(y&&y.top!=null&&(y={top:Math.min(a.doc.height+ll(a.display)-Nl(a),y.top)}),c.visible=ao(a.display,a.doc,y),c.visible.from>=a.display.viewFrom&&c.visible.to<=a.display.viewTo)break}else v&&(c.visible=ao(a.display,a.doc,y));if(!q(a,c))break;or(a);var w=Va(a);Hs(a),Vl(a,w),zt(a,w),c.force=!1}c.signal(a,"update",a),(a.display.viewFrom!=a.display.reportedViewFrom||a.display.viewTo!=a.display.reportedViewTo)&&(c.signal(a,"viewportChange",a,a.display.viewFrom,a.display.viewTo),a.display.reportedViewFrom=a.display.viewFrom,a.display.reportedViewTo=a.display.viewTo)}function ge(a,c){var y=new Bn(a,c);if(q(a,y)){or(a),le(a,y);var v=Va(a);Hs(a),Vl(a,v),zt(a,v),y.finish()}}function Me(a,c,y){var v=a.display,w=a.options.lineNumbers,z=v.lineDiv,ie=z.firstChild;function be(di){var bi=di.nextSibling;return M&&ze&&a.display.currentWheelTarget==di?di.style.display="none":di.parentNode.removeChild(di),bi}for(var ve=v.view,Ge=v.viewFrom,Bt=0;Bt<ve.length;Bt++){var nt=ve[Bt];if(!nt.hidden)if(!nt.node||nt.node.parentNode!=z){var Sn=Go(a,nt,Ge,y);z.insertBefore(Sn,ie)}else{for(;ie!=nt.node;)ie=be(ie);var mn=w&&c!=null&&c<=Ge&&nt.lineNumber;nt.changes&&(H(nt.changes,"gutter")>-1&&(mn=!1),ys(a,nt,Ge,y)),mn&&(Te(nt.lineNumber),nt.lineNumber.appendChild(document.createTextNode(Si(a.options,Ge)))),ie=nt.node.nextSibling}Ge+=nt.size}for(;ie;)ie=be(ie)}function et(a){var c=a.gutters.offsetWidth;a.sizer.style.marginLeft=c+"px"}function zt(a,c){a.display.sizer.style.minHeight=c.docHeight+"px",a.display.heightForcer.style.top=c.docHeight+"px",a.display.gutters.style.height=c.docHeight+a.display.barHeight+ks(a)+"px"}function Ft(a){var c=a.display,y=c.view;if(!(!c.alignWidgets&&(!c.gutters.firstChild||!a.options.fixedGutter))){for(var v=Al(c)-c.scroller.scrollLeft+a.doc.scrollLeft,w=c.gutters.offsetWidth,z=v+"px",ie=0;ie<y.length;ie++)if(!y[ie].hidden){a.options.fixedGutter&&(y[ie].gutter&&(y[ie].gutter.style.left=z),y[ie].gutterBackground&&(y[ie].gutterBackground.style.left=z));var be=y[ie].alignable;if(be)for(var ve=0;ve<be.length;ve++)be[ve].style.left=z}a.options.fixedGutter&&(c.gutters.style.left=v+w+"px")}}function gt(a){if(!a.options.lineNumbers)return!1;var c=a.doc,y=Si(a.options,c.first+c.size-1),v=a.display;if(y.length!=v.lineNumChars){var w=v.measure.appendChild(Qe("div",[Qe("div",y)],"CodeMirror-linenumber CodeMirror-gutter-elt")),z=w.firstChild.offsetWidth,ie=w.offsetWidth-z;return v.lineGutter.style.width="",v.lineNumInnerWidth=Math.max(z,v.lineGutter.offsetWidth-ie)+1,v.lineNumWidth=v.lineNumInnerWidth+ie,v.lineNumChars=v.lineNumInnerWidth?y.length:-1,v.lineGutter.style.width=v.lineNumWidth+"px",et(a.display),!0}return!1}function en(a,c){for(var y=[],v=!1,w=0;w<a.length;w++){var z=a[w],ie=null;if(typeof z!="string"&&(ie=z.style,z=z.className),z=="CodeMirror-linenumbers")if(c)v=!0;else continue;y.push({className:z,style:ie})}return c&&!v&&y.push({className:"CodeMirror-linenumbers",style:null}),y}function un(a){var c=a.gutters,y=a.gutterSpecs;Te(c),a.lineGutter=null;for(var v=0;v<y.length;++v){var w=y[v],z=w.className,ie=w.style,be=c.appendChild(Qe("div",null,"CodeMirror-gutter "+z));ie&&(be.style.cssText=ie),z=="CodeMirror-linenumbers"&&(a.lineGutter=be,be.style.width=(a.lineNumWidth||1)+"px")}c.style.display=y.length?"":"none",et(a)}function Ct(a){un(a.display),Wo(a),Ft(a)}function ai(a,c,y,v){var w=this;this.input=y,w.scrollbarFiller=Qe("div",null,"CodeMirror-scrollbar-filler"),w.scrollbarFiller.setAttribute("cm-not-content","true"),w.gutterFiller=Qe("div",null,"CodeMirror-gutter-filler"),w.gutterFiller.setAttribute("cm-not-content","true"),w.lineDiv=Je("div",null,"CodeMirror-code"),w.selectionDiv=Qe("div",null,null,"position: relative; z-index: 1"),w.cursorDiv=Qe("div",null,"CodeMirror-cursors"),w.measure=Qe("div",null,"CodeMirror-measure"),w.lineMeasure=Qe("div",null,"CodeMirror-measure"),w.lineSpace=Je("div",[w.measure,w.lineMeasure,w.selectionDiv,w.cursorDiv,w.lineDiv],null,"position: relative; outline: none");var z=Je("div",[w.lineSpace],"CodeMirror-lines");w.mover=Qe("div",[z],null,"position: relative"),w.sizer=Qe("div",[w.mover],"CodeMirror-sizer"),w.sizerWidth=null,w.heightForcer=Qe("div",null,null,"position: absolute; height: "+Ot+"px; width: 1px;"),w.gutters=Qe("div",null,"CodeMirror-gutters"),w.lineGutter=null,w.scroller=Qe("div",[w.sizer,w.heightForcer,w.gutters],"CodeMirror-scroll"),w.scroller.setAttribute("tabIndex","-1"),w.wrapper=Qe("div",[w.scrollbarFiller,w.gutterFiller,w.scroller],"CodeMirror"),V&&Q<8&&(w.gutters.style.zIndex=-1,w.scroller.style.paddingRight=0),!M&&!(b&&Pe)&&(w.scroller.draggable=!0),a&&(a.appendChild?a.appendChild(w.wrapper):a(w.wrapper)),w.viewFrom=w.viewTo=c.first,w.reportedViewFrom=w.reportedViewTo=c.first,w.view=[],w.renderedView=null,w.externalMeasured=null,w.viewOffset=0,w.lastWrapHeight=w.lastWrapWidth=0,w.updateLineNumbers=null,w.nativeBarWidth=w.barHeight=w.barWidth=0,w.scrollbarsClipped=!1,w.lineNumWidth=w.lineNumInnerWidth=w.lineNumChars=null,w.alignWidgets=!1,w.cachedCharWidth=w.cachedTextHeight=w.cachedPaddingH=null,w.maxLine=null,w.maxLineLength=0,w.maxLineChanged=!1,w.wheelDX=w.wheelDY=w.wheelStartX=w.wheelStartY=null,w.shift=!1,w.selForContextMenu=null,w.activeTouch=null,w.gutterSpecs=en(v.gutters,v.lineNumbers),un(w),y.init(w)}var ci=0,ti=null;V?ti=-.53:b?ti=15:he?ti=-.7:De&&(ti=-1/3);function Xn(a){var c=a.wheelDeltaX,y=a.wheelDeltaY;return c==null&&a.detail&&a.axis==a.HORIZONTAL_AXIS&&(c=a.detail),y==null&&a.detail&&a.axis==a.VERTICAL_AXIS?y=a.detail:y==null&&(y=a.wheelDelta),{x:c,y}}function yi(a){var c=Xn(a);return c.x*=ti,c.y*=ti,c}function gi(a,c){var y=Xn(c),v=y.x,w=y.y,z=a.display,ie=z.scroller,be=ie.scrollWidth>ie.clientWidth,ve=ie.scrollHeight>ie.clientHeight;if(v&&be||w&&ve){if(w&&ze&&M){e:for(var Ge=c.target,Bt=z.view;Ge!=ie;Ge=Ge.parentNode)for(var nt=0;nt<Bt.length;nt++)if(Bt[nt].node==Ge){a.display.currentWheelTarget=Ge;break e}}if(v&&!b&&!re&&ti!=null){w&&ve&&Wl(a,Math.max(0,ie.scrollTop+w*ti)),tl(a,Math.max(0,ie.scrollLeft+v*ti)),(!w||w&&ve)&&Un(c),z.wheelStartX=null;return}if(w&&ti!=null){var Sn=w*ti,mn=a.doc.scrollTop,di=mn+z.wrapper.clientHeight;Sn<0?mn=Math.max(0,mn+Sn-50):di=Math.min(a.doc.height,di+Sn+50),ge(a,{top:mn,bottom:di})}ci<20&&(z.wheelStartX==null?(z.wheelStartX=ie.scrollLeft,z.wheelStartY=ie.scrollTop,z.wheelDX=v,z.wheelDY=w,setTimeout(function(){if(z.wheelStartX!=null){var bi=ie.scrollLeft-z.wheelStartX,Mi=ie.scrollTop-z.wheelStartY,Ji=Mi&&z.wheelDY&&Mi/z.wheelDY||bi&&z.wheelDX&&bi/z.wheelDX;z.wheelStartX=z.wheelStartY=null,Ji&&(ti=(ti*ci+Ji)/(ci+1),++ci)}},200)):(z.wheelDX+=v,z.wheelDY+=w))}}var ji=function(a,c){this.ranges=a,this.primIndex=c};ji.prototype.primary=function(){return this.ranges[this.primIndex]},ji.prototype.equals=function(a){if(a==this)return!0;if(a.primIndex!=this.primIndex||a.ranges.length!=this.ranges.length)return!1;for(var c=0;c<this.ranges.length;c++){var y=this.ranges[c],v=a.ranges[c];if(!Mt(y.anchor,v.anchor)||!Mt(y.head,v.head))return!1}return!0},ji.prototype.deepCopy=function(){for(var a=[],c=0;c<this.ranges.length;c++)a[c]=new h(Jt(this.ranges[c].anchor),Jt(this.ranges[c].head));return new ji(a,this.primIndex)},ji.prototype.somethingSelected=function(){for(var a=0;a<this.ranges.length;a++)if(!this.ranges[a].empty())return!0;return!1},ji.prototype.contains=function(a,c){c||(c=a);for(var y=0;y<this.ranges.length;y++){var v=this.ranges[y];if(_n(c,v.from())>=0&&_n(a,v.to())<=0)return y}return-1};var h=function(a,c){this.anchor=a,this.head=c};h.prototype.from=function(){return jt(this.anchor,this.head)},h.prototype.to=function(){return on(this.anchor,this.head)},h.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function m(a,c,y){var v=a&&a.options.selectionsMayTouch,w=c[y];c.sort(function(Sn,mn){return _n(Sn.from(),mn.from())}),y=H(c,w);for(var z=1;z<c.length;z++){var ie=c[z],be=c[z-1],ve=_n(be.to(),ie.from());if(v&&!ie.empty()?ve>0:ve>=0){var Ge=jt(be.from(),ie.from()),Bt=on(be.to(),ie.to()),nt=be.empty()?ie.from()==ie.head:be.from()==be.head;z<=y&&--y,c.splice(--z,2,new h(nt?Bt:Ge,nt?Ge:Bt))}}return new ji(c,y)}function W(a,c){return new ji([new h(a,c||a)],0)}function Ve(a){return a.text?Zt(a.from.line+a.text.length-1,qn(a.text).length+(a.text.length==1?a.from.ch:0)):a.to}function _t(a,c){if(_n(a,c.from)<0)return a;if(_n(a,c.to)<=0)return Ve(c);var y=a.line+c.text.length-(c.to.line-c.from.line)-1,v=a.ch;return a.line==c.to.line&&(v+=Ve(c).ch-c.to.ch),Zt(y,v)}function Mn(a,c){for(var y=[],v=0;v<a.sel.ranges.length;v++){var w=a.sel.ranges[v];y.push(new h(_t(w.anchor,c),_t(w.head,c)))}return m(a.cm,y,a.sel.primIndex)}function li(a,c,y){return a.line==c.line?Zt(y.line,a.ch-c.ch+y.ch):Zt(y.line+(a.line-c.line),a.ch)}function ri(a,c,y){for(var v=[],w=Zt(a.first,0),z=w,ie=0;ie<c.length;ie++){var be=c[ie],ve=li(be.from,w,z),Ge=li(Ve(be),w,z);if(w=be.to,z=Ge,y=="around"){var Bt=a.sel.ranges[ie],nt=_n(Bt.head,Bt.anchor)<0;v[ie]=new h(nt?Ge:ve,nt?ve:Ge)}else v[ie]=new h(ve,ve)}return new ji(v,a.sel.primIndex)}function Wn(a){a.doc.mode=Vi(a.options,a.doc.modeOption),Bi(a)}function Bi(a){a.doc.iter(function(c){c.stateAfter&&(c.stateAfter=null),c.styles&&(c.styles=null)}),a.doc.modeFrontier=a.doc.highlightFrontier=a.doc.first,Pn(a,100),a.state.modeGen++,a.curOp&&Wo(a)}function cr(a,c){return c.from.ch==0&&c.to.ch==0&&qn(c.text)==""&&(!a.cm||a.cm.options.wholeLineUpdateBefore)}function Ur(a,c,y,v){function w(Sr){return y?y[Sr]:null}function z(Sr,ar,Mr){da(Sr,ar,Mr,v),vi(Sr,"change",Sr,c)}function ie(Sr,ar){for(var Mr=[],Qr=Sr;Qr<ar;++Qr)Mr.push(new Xs(Ge[Qr],w(Qr),v));return Mr}var be=c.from,ve=c.to,Ge=c.text,Bt=sn(a,be.line),nt=sn(a,ve.line),Sn=qn(Ge),mn=w(Ge.length-1),di=ve.line-be.line;if(c.full)a.insert(0,ie(0,Ge.length)),a.remove(Ge.length,a.size-Ge.length);else if(cr(a,c)){var bi=ie(0,Ge.length-1);z(nt,nt.text,mn),di&&a.remove(be.line,di),bi.length&&a.insert(be.line,bi)}else if(Bt==nt)if(Ge.length==1)z(Bt,Bt.text.slice(0,be.ch)+Sn+Bt.text.slice(ve.ch),mn);else{var Mi=ie(1,Ge.length-1);Mi.push(new Xs(Sn+Bt.text.slice(ve.ch),mn,v)),z(Bt,Bt.text.slice(0,be.ch)+Ge[0],w(0)),a.insert(be.line+1,Mi)}else if(Ge.length==1)z(Bt,Bt.text.slice(0,be.ch)+Ge[0]+nt.text.slice(ve.ch),w(0)),a.remove(be.line+1,di);else{z(Bt,Bt.text.slice(0,be.ch)+Ge[0],w(0)),z(nt,Sn+nt.text.slice(ve.ch),mn);var Ji=ie(1,Ge.length-1);di>1&&a.remove(be.line+1,di-1),a.insert(be.line+1,Ji)}vi(a,"change",a,c)}function Co(a,c,y){function v(w,z,ie){if(w.linked)for(var be=0;be<w.linked.length;++be){var ve=w.linked[be];if(ve.doc!=z){var Ge=ie&&ve.sharedHist;y&&!Ge||(c(ve.doc,Ge),v(ve.doc,w,Ge))}}}v(a,null,!0)}function yr(a,c){if(c.cm)throw new Error("This document is already in use.");a.doc=c,c.cm=a,xr(a),Wn(a),fr(a),a.options.lineWrapping||As(a),a.options.mode=c.modeOption,Wo(a)}function fr(a){(a.doc.direction=="rtl"?$t:Ae)(a.display.lineDiv,"CodeMirror-rtl")}function Wt(a){Tt(a,function(){fr(a),Wo(a)})}function rr(a){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=a||1}function qr(a,c){var y={from:Jt(c.from),to:Ve(c),text:In(a,c.from,c.to)};return Ks(a,y,c.from.line,c.to.line+1),Co(a,function(v){return Ks(v,y,c.from.line,c.to.line+1)},!0),y}function Ut(a){for(;a.length;){var c=qn(a);if(c.ranges)a.pop();else break}}function Cr(a,c){if(c)return Ut(a.done),qn(a.done);if(a.done.length&&!qn(a.done).ranges)return qn(a.done);if(a.done.length>1&&!a.done[a.done.length-2].ranges)return a.done.pop(),qn(a.done)}function eo(a,c,y,v){var w=a.history;w.undone.length=0;var z=+new Date,ie,be;if((w.lastOp==v||w.lastOrigin==c.origin&&c.origin&&(c.origin.charAt(0)=="+"&&w.lastModTime>z-(a.cm?a.cm.options.historyEventDelay:500)||c.origin.charAt(0)=="*"))&&(ie=Cr(w,w.lastOp==v)))be=qn(ie.changes),_n(c.from,c.to)==0&&_n(c.from,be.to)==0?be.to=Ve(c):ie.changes.push(qr(a,c));else{var ve=qn(w.done);for((!ve||!ve.ranges)&&Lo(a.sel,w.done),ie={changes:[qr(a,c)],generation:w.generation},w.done.push(ie);w.done.length>w.undoDepth;)w.done.shift(),w.done[0].ranges||w.done.shift()}w.done.push(y),w.generation=++w.maxGeneration,w.lastModTime=w.lastSelTime=z,w.lastOp=w.lastSelOp=v,w.lastOrigin=w.lastSelOrigin=c.origin,be||We(a,"historyAdded")}function mo(a,c,y,v){var w=c.charAt(0);return w=="*"||w=="+"&&y.ranges.length==v.ranges.length&&y.somethingSelected()==v.somethingSelected()&&new Date-a.history.lastSelTime<=(a.cm?a.cm.options.historyEventDelay:500)}function Vs(a,c,y,v){var w=a.history,z=v&&v.origin;y==w.lastSelOp||z&&w.lastSelOrigin==z&&(w.lastModTime==w.lastSelTime&&w.lastOrigin==z||mo(a,z,qn(w.done),c))?w.done[w.done.length-1]=c:Lo(c,w.done),w.lastSelTime=+new Date,w.lastSelOrigin=z,w.lastSelOp=y,v&&v.clearRedo!==!1&&Ut(w.undone)}function Lo(a,c){var y=qn(c);y&&y.ranges&&y.equals(a)||c.push(a)}function Ks(a,c,y,v){var w=c["spans_"+a.id],z=0;a.iter(Math.max(a.first,y),Math.min(a.first+a.size,v),function(ie){ie.markedSpans&&((w||(w=c["spans_"+a.id]={}))[z]=ie.markedSpans),++z})}function co(a){if(!a)return null;for(var c,y=0;y<a.length;++y)a[y].marker.explicitlyCleared?c||(c=a.slice(0,y)):c&&c.push(a[y]);return c?c.length?c:null:a}function Rs(a,c){var y=c["spans_"+a.id];if(!y)return null;for(var v=[],w=0;w<c.text.length;++w)v.push(co(y[w]));return v}function ms(a,c){var y=Rs(a,c),v=Li(a,c);if(!y)return v;if(!v)return y;for(var w=0;w<y.length;++w){var z=y[w],ie=v[w];if(z&&ie)e:for(var be=0;be<ie.length;++be){for(var ve=ie[be],Ge=0;Ge<z.length;++Ge)if(z[Ge].marker==ve.marker)continue e;z.push(ve)}else ie&&(y[w]=ie)}return y}function $s(a,c,y){for(var v=[],w=0;w<a.length;++w){var z=a[w];if(z.ranges){v.push(y?ji.prototype.deepCopy.call(z):z);continue}var ie=z.changes,be=[];v.push({changes:be});for(var ve=0;ve<ie.length;++ve){var Ge=ie[ve],Bt=void 0;if(be.push({from:Ge.from,to:Ge.to,text:Ge.text}),c)for(var nt in Ge)(Bt=nt.match(/^spans_(\d+)$/))&&H(c,Number(Bt[1]))>-1&&(qn(be)[nt]=Ge[nt],delete Ge[nt])}}return v}function fu(a,c,y,v){if(v){var w=a.anchor;if(y){var z=_n(c,w)<0;z!=_n(y,w)<0?(w=c,c=y):z!=_n(c,y)<0&&(c=y)}return new h(w,c)}else return new h(y||c,c)}function ko(a,c,y,v,w){w==null&&(w=a.cm&&(a.cm.display.shift||a.extend)),cs(a,new ji([fu(a.sel.primary(),c,y,w)],0),v)}function Uo(a,c,y){for(var v=[],w=a.cm&&(a.cm.display.shift||a.extend),z=0;z<a.sel.ranges.length;z++)v[z]=fu(a.sel.ranges[z],c[z],null,w);var ie=m(a.cm,v,a.sel.primIndex);cs(a,ie,y)}function Jo(a,c,y,v){var w=a.sel.ranges.slice(0);w[c]=y,cs(a,m(a.cm,w,a.sel.primIndex),v)}function Ss(a,c,y,v){cs(a,W(c,y),v)}function js(a,c,y){var v={ranges:c.ranges,update:function(w){this.ranges=[];for(var z=0;z<w.length;z++)this.ranges[z]=new h(fn(a,w[z].anchor),fn(a,w[z].head))},origin:y&&y.origin};return We(a,"beforeSelectionChange",a,v),a.cm&&We(a.cm,"beforeSelectionChange",a.cm,v),v.ranges!=c.ranges?m(a.cm,v.ranges,v.ranges.length-1):c}function ro(a,c,y){var v=a.history.done,w=qn(v);w&&w.ranges?(v[v.length-1]=c,Js(a,c,y)):cs(a,c,y)}function cs(a,c,y){Js(a,c,y),Vs(a,a.sel,a.cm?a.cm.curOp.id:NaN,y)}function Js(a,c,y){(bn(a,"beforeSelectionChange")||a.cm&&bn(a.cm,"beforeSelectionChange"))&&(c=js(a,c,y));var v=y&&y.bias||(_n(c.primary().head,a.sel.primary().head)<0?-1:1);Fa(a,_a(a,c,v,!0)),!(y&&y.scroll===!1)&&a.cm&&Gl(a.cm)}function Fa(a,c){c.equals(a.sel)||(a.sel=c,a.cm&&(a.cm.curOp.updateInput=1,a.cm.curOp.selectionChanged=!0,Qt(a.cm)),vi(a,"cursorActivity",a))}function Ba(a){Fa(a,_a(a,a.sel,null,!1))}function _a(a,c,y,v){for(var w,z=0;z<c.ranges.length;z++){var ie=c.ranges[z],be=c.ranges.length==a.sel.ranges.length&&a.sel.ranges[z],ve=Qi(a,ie.anchor,be&&be.anchor,y,v),Ge=Qi(a,ie.head,be&&be.head,y,v);(w||ve!=ie.anchor||Ge!=ie.head)&&(w||(w=c.ranges.slice(0,z)),w[z]=new h(ve,Ge))}return w?m(a.cm,w,c.primIndex):c}function xi(a,c,y,v,w){var z=sn(a,c.line);if(z.markedSpans)for(var ie=0;ie<z.markedSpans.length;++ie){var be=z.markedSpans[ie],ve=be.marker,Ge="selectLeft"in ve?!ve.selectLeft:ve.inclusiveLeft,Bt="selectRight"in ve?!ve.selectRight:ve.inclusiveRight;if((be.from==null||(Ge?be.from<=c.ch:be.from<c.ch))&&(be.to==null||(Bt?be.to>=c.ch:be.to>c.ch))){if(w&&(We(ve,"beforeCursorEnter"),ve.explicitlyCleared))if(z.markedSpans){--ie;continue}else break;if(!ve.atomic)continue;if(y){var nt=ve.find(v<0?1:-1),Sn=void 0;if((v<0?Bt:Ge)&&(nt=$r(a,nt,-v,nt&&nt.line==c.line?z:null)),nt&&nt.line==c.line&&(Sn=_n(nt,y))&&(v<0?Sn<0:Sn>0))return xi(a,nt,c,v,w)}var mn=ve.find(v<0?-1:1);return(v<0?Ge:Bt)&&(mn=$r(a,mn,v,mn.line==c.line?z:null)),mn?xi(a,mn,c,v,w):null}}return c}function Qi(a,c,y,v,w){var z=v||1,ie=xi(a,c,y,z,w)||!w&&xi(a,c,y,z,!0)||xi(a,c,y,-z,w)||!w&&xi(a,c,y,-z,!0);return ie||(a.cantEdit=!0,Zt(a.first,0))}function $r(a,c,y,v){return y<0&&c.ch==0?c.line>a.first?fn(a,Zt(c.line-1)):null:y>0&&c.ch==(v||sn(a,c.line)).text.length?c.line<a.first+a.size-1?Zt(c.line+1,0):null:new Zt(c.line,c.ch+y)}function wr(a){a.setSelection(Zt(a.firstLine(),0),Zt(a.lastLine()),vt)}function go(a,c,y){var v={canceled:!1,from:c.from,to:c.to,text:c.text,origin:c.origin,cancel:function(){return v.canceled=!0}};return y&&(v.update=function(w,z,ie,be){w&&(v.from=fn(a,w)),z&&(v.to=fn(a,z)),ie&&(v.text=ie),be!==void 0&&(v.origin=be)}),We(a,"beforeChange",a,v),a.cm&&We(a.cm,"beforeChange",a.cm,v),v.canceled?(a.cm&&(a.cm.curOp.updateInput=2),null):{from:v.from,to:v.to,text:v.text,origin:v.origin}}function Ho(a,c,y){if(a.cm){if(!a.cm.curOp)return me(a.cm,Ho)(a,c,y);if(a.cm.state.suppressEdits)return}if(!((bn(a,"beforeChange")||a.cm&&bn(a.cm,"beforeChange"))&&(c=go(a,c,!0),!c))){var v=Gi&&!y&&Nr(a,c.from,c.to);if(v)for(var w=v.length-1;w>=0;--w)Ro(a,{from:v[w].from,to:v[w].to,text:w?[""]:c.text,origin:c.origin});else Ro(a,c)}}function Ro(a,c){if(!(c.text.length==1&&c.text[0]==""&&_n(c.from,c.to)==0)){var y=Mn(a,c);eo(a,c,y,a.cm?a.cm.curOp.id:NaN),za(a,c,y,Li(a,c));var v=[];Co(a,function(w,z){!z&&H(v,w.history)==-1&&(Es(w.history,c),v.push(w.history)),za(w,c,null,Li(w,c))})}}function Ys(a,c,y){var v=a.cm&&a.cm.state.suppressEdits;if(!(v&&!y)){for(var w=a.history,z,ie=a.sel,be=c=="undo"?w.done:w.undone,ve=c=="undo"?w.undone:w.done,Ge=0;Ge<be.length&&(z=be[Ge],!(y?z.ranges&&!z.equals(a.sel):!z.ranges));Ge++);if(Ge!=be.length){for(w.lastOrigin=w.lastSelOrigin=null;;)if(z=be.pop(),z.ranges){if(Lo(z,ve),y&&!z.equals(a.sel)){cs(a,z,{clearRedo:!1});return}ie=z}else if(v){be.push(z);return}else break;var Bt=[];Lo(ie,ve),ve.push({changes:Bt,generation:w.generation}),w.generation=z.generation||++w.maxGeneration;for(var nt=bn(a,"beforeChange")||a.cm&&bn(a.cm,"beforeChange"),Sn=function(bi){var Mi=z.changes[bi];if(Mi.origin=c,nt&&!go(a,Mi,!1))return be.length=0,{};Bt.push(qr(a,Mi));var Ji=bi?Mn(a,Mi):qn(be);za(a,Mi,Ji,ms(a,Mi)),!bi&&a.cm&&a.cm.scrollIntoView({from:Mi.from,to:Ve(Mi)});var Sr=[];Co(a,function(ar,Mr){!Mr&&H(Sr,ar.history)==-1&&(Es(ar.history,Mi),Sr.push(ar.history)),za(ar,Mi,null,ms(ar,Mi))})},mn=z.changes.length-1;mn>=0;--mn){var di=Sn(mn);if(di)return di.v}}}}function Ml(a,c){if(c!=0&&(a.first+=c,a.sel=new ji(ln(a.sel.ranges,function(w){return new h(Zt(w.anchor.line+c,w.anchor.ch),Zt(w.head.line+c,w.head.ch))}),a.sel.primIndex),a.cm)){Wo(a.cm,a.first,a.first-c,c);for(var y=a.cm.display,v=y.viewFrom;v<y.viewTo;v++)Gr(a.cm,v,"gutter")}}function za(a,c,y,v){if(a.cm&&!a.cm.curOp)return me(a.cm,za)(a,c,y,v);if(c.to.line<a.first){Ml(a,c.text.length-1-(c.to.line-c.from.line));return}if(!(c.from.line>a.lastLine())){if(c.from.line<a.first){var w=c.text.length-1-(a.first-c.from.line);Ml(a,w),c={from:Zt(a.first,0),to:Zt(c.to.line+w,c.to.ch),text:[qn(c.text)],origin:c.origin}}var z=a.lastLine();c.to.line>z&&(c={from:c.from,to:Zt(z,sn(a,z).text.length),text:[c.text[0]],origin:c.origin}),c.removed=In(a,c.from,c.to),y||(y=Mn(a,c)),a.cm?qs(a.cm,c,v):Ur(a,c,v),Js(a,y,vt),a.cantEdit&&Qi(a,Zt(a.firstLine(),0))&&(a.cantEdit=!1)}}function qs(a,c,y){var v=a.doc,w=a.display,z=c.from,ie=c.to,be=!1,ve=z.line;a.options.lineWrapping||(ve=ut(zi(sn(v,z.line))),v.iter(ve,ie.line+1,function(mn){if(mn==w.maxLine)return be=!0,!0})),v.sel.contains(c.from,c.to)>-1&&Qt(a),Ur(v,c,y,us(a)),a.options.lineWrapping||(v.iter(ve,z.line+c.text.length,function(mn){var di=Fo(mn);di>w.maxLineLength&&(w.maxLine=mn,w.maxLineLength=di,w.maxLineChanged=!0,be=!1)}),be&&(a.curOp.updateMaxLine=!0)),Dn(v,z.line),Pn(a,400);var Ge=c.text.length-(ie.line-z.line)-1;c.full?Wo(a):z.line==ie.line&&c.text.length==1&&!cr(a.doc,c)?Gr(a,z.line,"text"):Wo(a,z.line,ie.line+1,Ge);var Bt=bn(a,"changes"),nt=bn(a,"change");if(nt||Bt){var Sn={from:z,to:ie,text:c.text,removed:c.removed,origin:c.origin};nt&&vi(a,"change",a,Sn),Bt&&(a.curOp.changeObjs||(a.curOp.changeObjs=[])).push(Sn)}a.display.selForContextMenu=null}function Ka(a,c,y,v,w){var z;v||(v=y),_n(v,y)<0&&(z=[v,y],y=z[0],v=z[1]),typeof c=="string"&&(c=a.splitLines(c)),Ho(a,{from:y,to:v,text:c,origin:w})}function Zs(a,c,y,v){y<a.line?a.line+=v:c<a.line&&(a.line=c,a.ch=0)}function $o(a,c,y,v){for(var w=0;w<a.length;++w){var z=a[w],ie=!0;if(z.ranges){z.copied||(z=a[w]=z.deepCopy(),z.copied=!0);for(var be=0;be<z.ranges.length;be++)Zs(z.ranges[be].anchor,c,y,v),Zs(z.ranges[be].head,c,y,v);continue}for(var ve=0;ve<z.changes.length;++ve){var Ge=z.changes[ve];if(y<Ge.from.line)Ge.from=Zt(Ge.from.line+v,Ge.from.ch),Ge.to=Zt(Ge.to.line+v,Ge.to.ch);else if(c<=Ge.to.line){ie=!1;break}}ie||(a.splice(0,w+1),w=0)}}function Es(a,c){var y=c.from.line,v=c.to.line,w=c.text.length-(v-y)-1;$o(a.done,y,v,w),$o(a.undone,y,v,w)}function la(a,c,y,v){var w=c,z=c;return typeof c=="number"?z=sn(a,gn(a,c)):w=ut(c),w==null?null:(v(z,w)&&a.cm&&Gr(a.cm,w,y),z)}function A(a){this.lines=a,this.parent=null;for(var c=0,y=0;y<a.length;++y)a[y].parent=this,c+=a[y].height;this.height=c}A.prototype={chunkSize:function(){return this.lines.length},removeInner:function(a,c){for(var y=a,v=a+c;y<v;++y){var w=this.lines[y];this.height-=w.height,vs(w),vi(w,"delete")}this.lines.splice(a,c)},collapse:function(a){a.push.apply(a,this.lines)},insertInner:function(a,c,y){this.height+=y,this.lines=this.lines.slice(0,a).concat(c).concat(this.lines.slice(a));for(var v=0;v<c.length;++v)c[v].parent=this},iterN:function(a,c,y){for(var v=a+c;a<v;++a)if(y(this.lines[a]))return!0}};function g(a){this.children=a;for(var c=0,y=0,v=0;v<a.length;++v){var w=a[v];c+=w.chunkSize(),y+=w.height,w.parent=this}this.size=c,this.height=y,this.parent=null}g.prototype={chunkSize:function(){return this.size},removeInner:function(a,c){this.size-=c;for(var y=0;y<this.children.length;++y){var v=this.children[y],w=v.chunkSize();if(a<w){var z=Math.min(c,w-a),ie=v.height;if(v.removeInner(a,z),this.height-=ie-v.height,w==z&&(this.children.splice(y--,1),v.parent=null),(c-=z)==0)break;a=0}else a-=w}if(this.size-c<25&&(this.children.length>1||!(this.children[0]instanceof A))){var be=[];this.collapse(be),this.children=[new A(be)],this.children[0].parent=this}},collapse:function(a){for(var c=0;c<this.children.length;++c)this.children[c].collapse(a)},insertInner:function(a,c,y){this.size+=c.length,this.height+=y;for(var v=0;v<this.children.length;++v){var w=this.children[v],z=w.chunkSize();if(a<=z){if(w.insertInner(a,c,y),w.lines&&w.lines.length>50){for(var ie=w.lines.length%25+25,be=ie;be<w.lines.length;){var ve=new A(w.lines.slice(be,be+=25));w.height-=ve.height,this.children.splice(++v,0,ve),ve.parent=this}w.lines=w.lines.slice(0,ie),this.maybeSpill()}break}a-=z}},maybeSpill:function(){if(!(this.children.length<=10)){var a=this;do{var c=a.children.splice(a.children.length-5,5),y=new g(c);if(a.parent){a.size-=y.size,a.height-=y.height;var w=H(a.parent.children,a);a.parent.children.splice(w+1,0,y)}else{var v=new g(a.children);v.parent=a,a.children=[v,y],a=v}y.parent=a.parent}while(a.children.length>10);a.parent.maybeSpill()}},iterN:function(a,c,y){for(var v=0;v<this.children.length;++v){var w=this.children[v],z=w.chunkSize();if(a<z){var ie=Math.min(c,z-a);if(w.iterN(a,ie,y))return!0;if((c-=ie)==0)break;a=0}else a-=z}}};var S=function(a,c,y){if(y)for(var v in y)y.hasOwnProperty(v)&&(this[v]=y[v]);this.doc=a,this.node=c};S.prototype.clear=function(){var a=this.doc.cm,c=this.line.widgets,y=this.line,v=ut(y);if(!(v==null||!c)){for(var w=0;w<c.length;++w)c[w]==this&&c.splice(w--,1);c.length||(y.widgets=null);var z=wa(this);Kn(y,Math.max(0,y.height-z)),a&&(Tt(a,function(){R(a,y,-z),Gr(a,v,"widget")}),vi(a,"lineWidgetCleared",a,this,v))}},S.prototype.changed=function(){var a=this,c=this.height,y=this.doc.cm,v=this.line;this.height=null;var w=wa(this)-c;w&&(mi(this.doc,v)||Kn(v,v.height+w),y&&Tt(y,function(){y.curOp.forceUpdate=!0,R(y,v,w),vi(y,"lineWidgetChanged",y,a,ut(v))}))},$n(S);function R(a,c,y){as(c)<(a.curOp&&a.curOp.scrollTop||a.doc.scrollTop)&&el(a,y)}function Y(a,c,y,v){var w=new S(a,y,v),z=a.cm;return z&&w.noHScroll&&(z.display.alignWidgets=!0),la(a,c,"widget",function(ie){var be=ie.widgets||(ie.widgets=[]);if(w.insertAt==null?be.push(w):be.splice(Math.min(be.length-1,Math.max(0,w.insertAt)),0,w),w.line=ie,z&&!mi(a,ie)){var ve=as(ie)<a.scrollTop;Kn(ie,ie.height+wa(w)),ve&&el(z,w.height),z.curOp.forceUpdate=!0}return!0}),z&&vi(z,"lineWidgetAdded",z,w,typeof c=="number"?c:ut(c)),w}var se=0,Z=function(a,c){this.lines=[],this.type=c,this.doc=a,this.id=++se};Z.prototype.clear=function(){if(!this.explicitlyCleared){var a=this.doc.cm,c=a&&!a.curOp;if(c&&aa(a),bn(this,"clear")){var y=this.find();y&&vi(this,"clear",y.from,y.to)}for(var v=null,w=null,z=0;z<this.lines.length;++z){var ie=this.lines[z],be=Zr(ie.markedSpans,this);a&&!this.collapsed?Gr(a,ut(ie),"text"):a&&(be.to!=null&&(w=ut(ie)),be.from!=null&&(v=ut(ie))),ie.markedSpans=It(ie.markedSpans,be),be.from==null&&this.collapsed&&!mi(this.doc,ie)&&a&&Kn(ie,Ga(a.display))}if(a&&this.collapsed&&!a.options.lineWrapping)for(var ve=0;ve<this.lines.length;++ve){var Ge=zi(this.lines[ve]),Bt=Fo(Ge);Bt>a.display.maxLineLength&&(a.display.maxLine=Ge,a.display.maxLineLength=Bt,a.display.maxLineChanged=!0)}v!=null&&a&&this.collapsed&&Wo(a,v,w+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,a&&Ba(a.doc)),a&&vi(a,"markerCleared",a,this,v,w),c&&Il(a),this.parent&&this.parent.clear()}},Z.prototype.find=function(a,c){a==null&&this.type=="bookmark"&&(a=1);for(var y,v,w=0;w<this.lines.length;++w){var z=this.lines[w],ie=Zr(z.markedSpans,this);if(ie.from!=null&&(y=Zt(c?z:ut(z),ie.from),a==-1))return y;if(ie.to!=null&&(v=Zt(c?z:ut(z),ie.to),a==1))return v}return y&&{from:y,to:v}},Z.prototype.changed=function(){var a=this,c=this.find(-1,!0),y=this,v=this.doc.cm;!c||!v||Tt(v,function(){var w=c.line,z=ut(c.line),ie=Cs(v,z);if(ie&&(ns(ie),v.curOp.selectionChanged=v.curOp.forceUpdate=!0),v.curOp.updateMaxLine=!0,!mi(y.doc,w)&&y.height!=null){var be=y.height;y.height=null;var ve=wa(y)-be;ve&&Kn(w,w.height+ve)}vi(v,"markerChanged",v,a)})},Z.prototype.attachLine=function(a){if(!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(!c.maybeHiddenMarkers||H(c.maybeHiddenMarkers,this)==-1)&&(c.maybeUnhiddenMarkers||(c.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(a)},Z.prototype.detachLine=function(a){if(this.lines.splice(H(this.lines,a),1),!this.lines.length&&this.doc.cm){var c=this.doc.cm.curOp;(c.maybeHiddenMarkers||(c.maybeHiddenMarkers=[])).push(this)}},$n(Z);function rt(a,c,y,v,w){if(v&&v.shared)return pn(a,c,y,v,w);if(a.cm&&!a.cm.curOp)return me(a.cm,rt)(a,c,y,v,w);var z=new Z(a,w),ie=_n(c,y);if(v&&Cn(v,z,!1),ie>0||ie==0&&z.clearWhenEmpty!==!1)return z;if(z.replacedWith&&(z.collapsed=!0,z.widgetNode=Je("span",[z.replacedWith],"CodeMirror-widget"),v.handleMouseEvents||z.widgetNode.setAttribute("cm-ignore-events","true"),v.insertLeft&&(z.widgetNode.insertLeft=!0)),z.collapsed){if($i(a,c.line,c,y,z)||c.line!=y.line&&$i(a,y.line,c,y,z))throw new Error("Inserting collapsed marker partially overlapping an existing one");Yt()}z.addToHistory&&eo(a,{from:c,to:y,origin:"markText"},a.sel,NaN);var be=c.line,ve=a.cm,Ge;if(a.iter(be,y.line+1,function(nt){ve&&z.collapsed&&!ve.options.lineWrapping&&zi(nt)==ve.display.maxLine&&(Ge=!0),z.collapsed&&be!=c.line&&Kn(nt,0),fo(nt,new Wi(z,be==c.line?c.ch:null,be==y.line?y.ch:null)),++be}),z.collapsed&&a.iter(c.line,y.line+1,function(nt){mi(a,nt)&&Kn(nt,0)}),z.clearOnEnter&&Pt(z,"beforeCursorEnter",function(){return z.clear()}),z.readOnly&&(Ii(),(a.history.done.length||a.history.undone.length)&&a.clearHistory()),z.collapsed&&(z.id=++se,z.atomic=!0),ve){if(Ge&&(ve.curOp.updateMaxLine=!0),z.collapsed)Wo(ve,c.line,y.line+1);else if(z.className||z.startStyle||z.endStyle||z.css||z.attributes||z.title)for(var Bt=c.line;Bt<=y.line;Bt++)Gr(ve,Bt,"text");z.atomic&&Ba(ve.doc),vi(ve,"markerAdded",ve,z)}return z}var lt=function(a,c){this.markers=a,this.primary=c;for(var y=0;y<a.length;++y)a[y].parent=this};lt.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var a=0;a<this.markers.length;++a)this.markers[a].clear();vi(this,"clear")}},lt.prototype.find=function(a,c){return this.primary.find(a,c)},$n(lt);function pn(a,c,y,v,w){v=Cn(v),v.shared=!1;var z=[rt(a,c,y,v,w)],ie=z[0],be=v.widgetNode;return Co(a,function(ve){be&&(v.widgetNode=be.cloneNode(!0)),z.push(rt(ve,fn(ve,c),fn(ve,y),v,w));for(var Ge=0;Ge<ve.linked.length;++Ge)if(ve.linked[Ge].isParent)return;ie=qn(z)}),new lt(z,ie)}function On(a){return a.findMarks(Zt(a.first,0),a.clipPos(Zt(a.lastLine())),function(c){return c.parent})}function Yn(a,c){for(var y=0;y<c.length;y++){var v=c[y],w=v.find(),z=a.clipPos(w.from),ie=a.clipPos(w.to);if(_n(z,ie)){var be=rt(a,z,ie,v.primary,v.primary.type);v.markers.push(be),be.parent=v}}}function wi(a){for(var c=function(v){var w=a[v],z=[w.primary.doc];Co(w.primary.doc,function(ve){return z.push(ve)});for(var ie=0;ie<w.markers.length;ie++){var be=w.markers[ie];H(z,be.doc)==-1&&(be.parent=null,w.markers.splice(ie--,1))}},y=0;y<a.length;y++)c(y)}var Ci=0,Pi=function(a,c,y,v,w){if(!(this instanceof Pi))return new Pi(a,c,y,v,w);y==null&&(y=0),g.call(this,[new A([new Xs("",null)])]),this.first=y,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=y;var z=Zt(y,0);this.sel=W(z),this.history=new rr(null),this.id=++Ci,this.modeOption=c,this.lineSep=v,this.direction=w=="rtl"?"rtl":"ltr",this.extend=!1,typeof a=="string"&&(a=this.splitLines(a)),Ur(this,{from:z,to:z,text:a}),cs(this,W(z),vt)};Pi.prototype=D(g.prototype,{constructor:Pi,iter:function(a,c,y){y?this.iterN(a-this.first,c-a,y):this.iterN(this.first,this.first+this.size,a)},insert:function(a,c){for(var y=0,v=0;v<c.length;++v)y+=c[v].height;this.insertInner(a-this.first,c,y)},remove:function(a,c){this.removeInner(a-this.first,c)},getValue:function(a){var c=ni(this,this.first,this.first+this.size);return a===!1?c:c.join(a||this.lineSeparator())},setValue:an(function(a){var c=Zt(this.first,0),y=this.first+this.size-1;Ho(this,{from:c,to:Zt(y,sn(this,y).text.length),text:this.splitLines(a),origin:"setValue",full:!0},!0),this.cm&&eu(this.cm,0,0),cs(this,W(c),vt)}),replaceRange:function(a,c,y,v){c=fn(this,c),y=y?fn(this,y):c,Ka(this,a,c,y,v)},getRange:function(a,c,y){var v=In(this,fn(this,a),fn(this,c));return y===!1?v:v.join(y||this.lineSeparator())},getLine:function(a){var c=this.getLineHandle(a);return c&&c.text},getLineHandle:function(a){if(rn(this,a))return sn(this,a)},getLineNumber:function(a){return ut(a)},getLineHandleVisualStart:function(a){return typeof a=="number"&&(a=sn(this,a)),zi(a)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(a){return fn(this,a)},getCursor:function(a){var c=this.sel.primary(),y;return a==null||a=="head"?y=c.head:a=="anchor"?y=c.anchor:a=="end"||a=="to"||a===!1?y=c.to():y=c.from(),y},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:an(function(a,c,y){Ss(this,fn(this,typeof a=="number"?Zt(a,c||0):a),null,y)}),setSelection:an(function(a,c,y){Ss(this,fn(this,a),fn(this,c||a),y)}),extendSelection:an(function(a,c,y){ko(this,fn(this,a),c&&fn(this,c),y)}),extendSelections:an(function(a,c){Uo(this,Ln(this,a),c)}),extendSelectionsBy:an(function(a,c){var y=ln(this.sel.ranges,a);Uo(this,Ln(this,y),c)}),setSelections:an(function(a,c,y){if(a.length){for(var v=[],w=0;w<a.length;w++)v[w]=new h(fn(this,a[w].anchor),fn(this,a[w].head));c==null&&(c=Math.min(a.length-1,this.sel.primIndex)),cs(this,m(this.cm,v,c),y)}}),addSelection:an(function(a,c,y){var v=this.sel.ranges.slice(0);v.push(new h(fn(this,a),fn(this,c||a))),cs(this,m(this.cm,v,v.length-1),y)}),getSelection:function(a){for(var c=this.sel.ranges,y,v=0;v<c.length;v++){var w=In(this,c[v].from(),c[v].to());y=y?y.concat(w):w}return a===!1?y:y.join(a||this.lineSeparator())},getSelections:function(a){for(var c=[],y=this.sel.ranges,v=0;v<y.length;v++){var w=In(this,y[v].from(),y[v].to());a!==!1&&(w=w.join(a||this.lineSeparator())),c[v]=w}return c},replaceSelection:function(a,c,y){for(var v=[],w=0;w<this.sel.ranges.length;w++)v[w]=a;this.replaceSelections(v,c,y||"+input")},replaceSelections:an(function(a,c,y){for(var v=[],w=this.sel,z=0;z<w.ranges.length;z++){var ie=w.ranges[z];v[z]={from:ie.from(),to:ie.to(),text:this.splitLines(a[z]),origin:y}}for(var be=c&&c!="end"&&ri(this,v,c),ve=v.length-1;ve>=0;ve--)Ho(this,v[ve]);be?ro(this,be):this.cm&&Gl(this.cm)}),undo:an(function(){Ys(this,"undo")}),redo:an(function(){Ys(this,"redo")}),undoSelection:an(function(){Ys(this,"undo",!0)}),redoSelection:an(function(){Ys(this,"redo",!0)}),setExtending:function(a){this.extend=a},getExtending:function(){return this.extend},historySize:function(){for(var a=this.history,c=0,y=0,v=0;v<a.done.length;v++)a.done[v].ranges||++c;for(var w=0;w<a.undone.length;w++)a.undone[w].ranges||++y;return{undo:c,redo:y}},clearHistory:function(){var a=this;this.history=new rr(this.history.maxGeneration),Co(this,function(c){return c.history=a.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(a){return a&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(a){return this.history.generation==(a||this.cleanGeneration)},getHistory:function(){return{done:$s(this.history.done),undone:$s(this.history.undone)}},setHistory:function(a){var c=this.history=new rr(this.history.maxGeneration);c.done=$s(a.done.slice(0),null,!0),c.undone=$s(a.undone.slice(0),null,!0)},setGutterMarker:an(function(a,c,y){return la(this,a,"gutter",function(v){var w=v.gutterMarkers||(v.gutterMarkers={});return w[c]=y,!y&&T(w)&&(v.gutterMarkers=null),!0})}),clearGutter:an(function(a){var c=this;this.iter(function(y){y.gutterMarkers&&y.gutterMarkers[a]&&la(c,y,"gutter",function(){return y.gutterMarkers[a]=null,T(y.gutterMarkers)&&(y.gutterMarkers=null),!0})})}),lineInfo:function(a){var c;if(typeof a=="number"){if(!rn(this,a)||(c=a,a=sn(this,a),!a))return null}else if(c=ut(a),c==null)return null;return{line:c,handle:a,text:a.text,gutterMarkers:a.gutterMarkers,textClass:a.textClass,bgClass:a.bgClass,wrapClass:a.wrapClass,widgets:a.widgets}},addLineClass:an(function(a,c,y){return la(this,a,c=="gutter"?"gutter":"class",function(v){var w=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass";if(!v[w])v[w]=y;else{if(te(y).test(v[w]))return!1;v[w]+=" "+y}return!0})}),removeLineClass:an(function(a,c,y){return la(this,a,c=="gutter"?"gutter":"class",function(v){var w=c=="text"?"textClass":c=="background"?"bgClass":c=="gutter"?"gutterClass":"wrapClass",z=v[w];if(z)if(y==null)v[w]=null;else{var ie=z.match(te(y));if(!ie)return!1;var be=ie.index+ie[0].length;v[w]=z.slice(0,ie.index)+(!ie.index||be==z.length?"":" ")+z.slice(be)||null}else return!1;return!0})}),addLineWidget:an(function(a,c,y){return Y(this,a,c,y)}),removeLineWidget:function(a){a.clear()},markText:function(a,c,y){return rt(this,fn(this,a),fn(this,c),y,y&&y.type||"range")},setBookmark:function(a,c){var y={replacedWith:c&&(c.nodeType==null?c.widget:c),insertLeft:c&&c.insertLeft,clearWhenEmpty:!1,shared:c&&c.shared,handleMouseEvents:c&&c.handleMouseEvents};return a=fn(this,a),rt(this,a,a,y,"bookmark")},findMarksAt:function(a){a=fn(this,a);var c=[],y=sn(this,a.line).markedSpans;if(y)for(var v=0;v<y.length;++v){var w=y[v];(w.from==null||w.from<=a.ch)&&(w.to==null||w.to>=a.ch)&&c.push(w.marker.parent||w.marker)}return c},findMarks:function(a,c,y){a=fn(this,a),c=fn(this,c);var v=[],w=a.line;return this.iter(a.line,c.line+1,function(z){var ie=z.markedSpans;if(ie)for(var be=0;be<ie.length;be++){var ve=ie[be];!(ve.to!=null&&w==a.line&&a.ch>=ve.to||ve.from==null&&w!=a.line||ve.from!=null&&w==c.line&&ve.from>=c.ch)&&(!y||y(ve.marker))&&v.push(ve.marker.parent||ve.marker)}++w}),v},getAllMarks:function(){var a=[];return this.iter(function(c){var y=c.markedSpans;if(y)for(var v=0;v<y.length;++v)y[v].from!=null&&a.push(y[v].marker)}),a},posFromIndex:function(a){var c,y=this.first,v=this.lineSeparator().length;return this.iter(function(w){var z=w.text.length+v;if(z>a)return c=a,!0;a-=z,++y}),fn(this,Zt(y,c))},indexFromPos:function(a){a=fn(this,a);var c=a.ch;if(a.line<this.first||a.ch<0)return 0;var y=this.lineSeparator().length;return this.iter(this.first,a.line,function(v){c+=v.text.length+y}),c},copy:function(a){var c=new Pi(ni(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return c.scrollTop=this.scrollTop,c.scrollLeft=this.scrollLeft,c.sel=this.sel,c.extend=!1,a&&(c.history.undoDepth=this.history.undoDepth,c.setHistory(this.getHistory())),c},linkedDoc:function(a){a||(a={});var c=this.first,y=this.first+this.size;a.from!=null&&a.from>c&&(c=a.from),a.to!=null&&a.to<y&&(y=a.to);var v=new Pi(ni(this,c,y),a.mode||this.modeOption,c,this.lineSep,this.direction);return a.sharedHist&&(v.history=this.history),(this.linked||(this.linked=[])).push({doc:v,sharedHist:a.sharedHist}),v.linked=[{doc:this,isParent:!0,sharedHist:a.sharedHist}],Yn(v,On(this)),v},unlinkDoc:function(a){if(a instanceof ds&&(a=a.doc),this.linked)for(var c=0;c<this.linked.length;++c){var y=this.linked[c];if(y.doc==a){this.linked.splice(c,1),a.unlinkDoc(this),wi(On(this));break}}if(a.history==this.history){var v=[a.id];Co(a,function(w){return v.push(w.id)},!0),a.history=new rr(null),a.history.done=$s(this.history.done,v),a.history.undone=$s(this.history.undone,v)}},iterLinkedDocs:function(a){Co(this,a)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(a){return this.lineSep?a.split(this.lineSep):Zi(a)},lineSeparator:function(){return this.lineSep||`
|
|
|
`},setDirection:an(function(a){a!="rtl"&&(a="ltr"),a!=this.direction&&(this.direction=a,this.iter(function(c){return c.order=null}),this.cm&&Wt(this.cm))})}),Pi.prototype.eachLine=Pi.prototype.iter;var hr=0;function kr(a){var c=this;if(No(c),!(Dt(c,a)||Ca(c.display,a))){Un(a),V&&(hr=+new Date);var y=Ta(c,a,!0),v=a.dataTransfer.files;if(!(!y||c.isReadOnly()))if(v&&v.length&&window.FileReader&&window.File)for(var w=v.length,z=Array(w),ie=0,be=function(){++ie==w&&me(c,function(){y=fn(c.doc,y);var mn={from:y,to:y,text:c.doc.splitLines(z.filter(function(di){return di!=null}).join(c.doc.lineSeparator())),origin:"paste"};Ho(c.doc,mn),ro(c.doc,W(fn(c.doc,y),fn(c.doc,Ve(mn))))})()},ve=function(mn,di){if(c.options.allowDropFileTypes&&H(c.options.allowDropFileTypes,mn.type)==-1){be();return}var bi=new FileReader;bi.onerror=function(){return be()},bi.onload=function(){var Mi=bi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(Mi)){be();return}z[di]=Mi,be()},bi.readAsText(mn)},Ge=0;Ge<v.length;Ge++)ve(v[Ge],Ge);else{if(c.state.draggingText&&c.doc.sel.contains(y)>-1){c.state.draggingText(a),setTimeout(function(){return c.display.input.focus()},20);return}try{var Bt=a.dataTransfer.getData("Text");if(Bt){var nt;if(c.state.draggingText&&!c.state.draggingText.copy&&(nt=c.listSelections()),Js(c.doc,W(y,y)),nt)for(var Sn=0;Sn<nt.length;++Sn)Ka(c.doc,"",nt[Sn].anchor,nt[Sn].head,"drag");c.replaceSelection(Bt,"around","paste"),c.display.input.focus()}}catch(mn){}}}}function Ir(a,c){if(V&&(!a.state.draggingText||+new Date-hr<100)){Jn(c);return}if(!(Dt(a,c)||Ca(a.display,c))&&(c.dataTransfer.setData("Text",a.getSelection()),c.dataTransfer.effectAllowed="copyMove",c.dataTransfer.setDragImage&&!De)){var y=Qe("img",null,null,"position: fixed; left: 0; top: 0;");y.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",re&&(y.width=y.height=1,a.display.wrapper.appendChild(y),y._top=y.offsetTop),c.dataTransfer.setDragImage(y,0,0),re&&y.parentNode.removeChild(y)}}function lo(a,c){var y=Ta(a,c);if(y){var v=document.createDocumentFragment();uo(a,y,v),a.display.dragCursor||(a.display.dragCursor=Qe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),a.display.lineSpace.insertBefore(a.display.dragCursor,a.display.cursorDiv)),$e(a.display.dragCursor,v)}}function No(a){a.display.dragCursor&&(a.display.lineSpace.removeChild(a.display.dragCursor),a.display.dragCursor=null)}function bs(a){if(document.getElementsByClassName){for(var c=document.getElementsByClassName("CodeMirror"),y=[],v=0;v<c.length;v++){var w=c[v].CodeMirror;w&&y.push(w)}y.length&&y[0].operation(function(){for(var z=0;z<y.length;z++)a(y[z])})}}var Vo=!1;function Io(){Vo||(ss(),Vo=!0)}function ss(){var a;Pt(window,"resize",function(){a==null&&(a=setTimeout(function(){a=null,bs(ea)},100))}),Pt(window,"blur",function(){return bs(cu)})}function ea(a){var c=a.display;c.cachedCharWidth=c.cachedTextHeight=c.cachedPaddingH=null,c.scrollbarsClipped=!1,a.setSize()}for(var qo={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"},hl=0;hl<10;hl++)qo[hl+48]=qo[hl+96]=String(hl);for(var Oa=65;Oa<=90;Oa++)qo[Oa]=String.fromCharCode(Oa);for(var ta=1;ta<=12;ta++)qo[ta+111]=qo[ta+63235]="F"+ta;var ba={};ba.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"},ba.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"},ba.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"},ba.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"]},ba.default=ze?ba.macDefault:ba.pcDefault;function nl(a){var c=a.split(/-(?!$)/);a=c[c.length-1];for(var y,v,w,z,ie=0;ie<c.length-1;ie++){var be=c[ie];if(/^(cmd|meta|m)$/i.test(be))z=!0;else if(/^a(lt)?$/i.test(be))y=!0;else if(/^(c|ctrl|control)$/i.test(be))v=!0;else if(/^s(hift)?$/i.test(be))w=!0;else throw new Error("Unrecognized modifier name: "+be)}return y&&(a="Alt-"+a),v&&(a="Ctrl-"+a),z&&(a="Cmd-"+a),w&&(a="Shift-"+a),a}function Kl(a){var c={};for(var y in a)if(a.hasOwnProperty(y)){var v=a[y];if(/^(name|fallthrough|(de|at)tach)$/.test(y))continue;if(v=="..."){delete a[y];continue}for(var w=ln(y.split(" "),nl),z=0;z<w.length;z++){var ie=void 0,be=void 0;z==w.length-1?(be=w.join(" "),ie=v):(be=w.slice(0,z+1).join(" "),ie="...");var ve=c[be];if(!ve)c[be]=ie;else if(ve!=ie)throw new Error("Inconsistent bindings for "+be)}delete a[y]}for(var Ge in c)a[Ge]=c[Ge];return a}function Aa(a,c,y,v){c=Ol(c);var w=c.call?c.call(a,v):c[a];if(w===!1)return"nothing";if(w==="...")return"multi";if(w!=null&&y(w))return"handled";if(c.fallthrough){if(Object.prototype.toString.call(c.fallthrough)!="[object Array]")return Aa(a,c.fallthrough,y,v);for(var z=0;z<c.fallthrough.length;z++){var ie=Aa(a,c.fallthrough[z],y,v);if(ie)return ie}}}function Nu(a){var c=typeof a=="string"?a:qo[a.keyCode];return c=="Ctrl"||c=="Alt"||c=="Shift"||c=="Mod"}function Xu(a,c,y){var v=a;return c.altKey&&v!="Alt"&&(a="Alt-"+a),(pe?c.metaKey:c.ctrlKey)&&v!="Ctrl"&&(a="Ctrl-"+a),(pe?c.ctrlKey:c.metaKey)&&v!="Mod"&&(a="Cmd-"+a),!y&&c.shiftKey&&v!="Shift"&&(a="Shift-"+a),a}function Pc(a,c){if(re&&a.keyCode==34&&a.char)return!1;var y=qo[a.keyCode];return y==null||a.altGraphKey?!1:(a.keyCode==3&&a.code&&(y=a.code),Xu(y,a,c))}function Ol(a){return typeof a=="string"?ba[a]:a}function ua(a,c){for(var y=a.doc.sel.ranges,v=[],w=0;w<y.length;w++){for(var z=c(y[w]);v.length&&_n(z.from,qn(v).to)<=0;){var ie=v.pop();if(_n(ie.from,z.from)<0){z.from=ie.from;break}}v.push(z)}Tt(a,function(){for(var be=v.length-1;be>=0;be--)Ka(a.doc,"",v[be].from,v[be].to,"+delete");Gl(a)})}function Ll(a,c,y){var v=_e(a.text,c+y,y);return v<0||v>a.text.length?null:v}function Ps(a,c,y){var v=Ll(a,c.ch,y);return v==null?null:new Zt(c.line,v,y<0?"after":"before")}function jo(a,c,y,v,w){if(a){c.doc.direction=="rtl"&&(w=-w);var z=Gt(y,c.doc.direction);if(z){var ie=w<0?qn(z):z[0],be=w<0==(ie.level==1),ve=be?"after":"before",Ge;if(ie.level>0||c.doc.direction=="rtl"){var Bt=Zo(c,y);Ge=w<0?y.text.length-1:0;var nt=Ha(c,Bt,Ge).top;Ge=Le(function(Sn){return Ha(c,Bt,Sn).top==nt},w<0==(ie.level==1)?ie.from:ie.to-1,Ge),ve=="before"&&(Ge=Ll(y,Ge,1))}else Ge=w<0?ie.to:ie.from;return new Zt(v,Ge,ve)}}return new Zt(v,w<0?y.text.length:0,w<0?"before":"after")}function hs(a,c,y,v){var w=Gt(c,a.doc.direction);if(!w)return Ps(c,y,v);y.ch>=c.text.length?(y.ch=c.text.length,y.sticky="before"):y.ch<=0&&(y.ch=0,y.sticky="after");var z=Ze(w,y.ch,y.sticky),ie=w[z];if(a.doc.direction=="ltr"&&ie.level%2==0&&(v>0?ie.to>y.ch:ie.from<y.ch))return Ps(c,y,v);var be=function(Ji,Sr){return Ll(c,Ji instanceof Zt?Ji.ch:Ji,Sr)},ve,Ge=function(Ji){return a.options.lineWrapping?(ve=ve||Zo(a,c),ja(a,c,ve,Ji)):{begin:0,end:c.text.length}},Bt=Ge(y.sticky=="before"?be(y,-1):y.ch);if(a.doc.direction=="rtl"||ie.level==1){var nt=ie.level==1==v<0,Sn=be(y,nt?1:-1);if(Sn!=null&&(nt?Sn<=ie.to&&Sn<=Bt.end:Sn>=ie.from&&Sn>=Bt.begin)){var mn=nt?"before":"after";return new Zt(y.line,Sn,mn)}}var di=function(Ji,Sr,ar){for(var Mr=function(na,rl){return rl?new Zt(y.line,be(na,1),"before"):new Zt(y.line,na,"after")};Ji>=0&&Ji<w.length;Ji+=Sr){var Qr=w[Ji],sr=Sr>0==(Qr.level!=1),To=sr?ar.begin:be(ar.end,-1);if(Qr.from<=To&&To<Qr.to||(To=sr?Qr.from:be(Qr.to,-1),ar.begin<=To&&To<ar.end))return Mr(To,sr)}},bi=di(z+v,v,Bt);if(bi)return bi;var Mi=v>0?Bt.end:be(Bt.begin,-1);return Mi!=null&&!(v>0&&Mi==c.text.length)&&(bi=di(v>0?0:w.length-1,v,Ge(Mi)),bi)?bi:null}var La={selectAll:wr,singleSelection:function(a){return a.setSelection(a.getCursor("anchor"),a.getCursor("head"),vt)},killLine:function(a){return ua(a,function(c){if(c.empty()){var y=sn(a.doc,c.head.line).text.length;return c.head.ch==y&&c.head.line<a.lastLine()?{from:c.head,to:Zt(c.head.line+1,0)}:{from:c.head,to:Zt(c.head.line,y)}}else return{from:c.from(),to:c.to()}})},deleteLine:function(a){return ua(a,function(c){return{from:Zt(c.from().line,0),to:fn(a.doc,Zt(c.to().line+1,0))}})},delLineLeft:function(a){return ua(a,function(c){return{from:Zt(c.from().line,0),to:c.from()}})},delWrappedLineLeft:function(a){return ua(a,function(c){var y=a.charCoords(c.head,"div").top+5,v=a.coordsChar({left:0,top:y},"div");return{from:v,to:c.from()}})},delWrappedLineRight:function(a){return ua(a,function(c){var y=a.charCoords(c.head,"div").top+5,v=a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:y},"div");return{from:c.from(),to:v}})},undo:function(a){return a.undo()},redo:function(a){return a.redo()},undoSelection:function(a){return a.undoSelection()},redoSelection:function(a){return a.redoSelection()},goDocStart:function(a){return a.extendSelection(Zt(a.firstLine(),0))},goDocEnd:function(a){return a.extendSelection(Zt(a.lastLine()))},goLineStart:function(a){return a.extendSelectionsBy(function(c){return Ya(a,c.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(a){return a.extendSelectionsBy(function(c){return wc(a,c.head)},{origin:"+move",bias:1})},goLineEnd:function(a){return a.extendSelectionsBy(function(c){return Za(a,c.head.line)},{origin:"+move",bias:-1})},goLineRight:function(a){return a.extendSelectionsBy(function(c){var y=a.cursorCoords(c.head,"div").top+5;return a.coordsChar({left:a.display.lineDiv.offsetWidth+100,top:y},"div")},Rt)},goLineLeft:function(a){return a.extendSelectionsBy(function(c){var y=a.cursorCoords(c.head,"div").top+5;return a.coordsChar({left:0,top:y},"div")},Rt)},goLineLeftSmart:function(a){return a.extendSelectionsBy(function(c){var y=a.cursorCoords(c.head,"div").top+5,v=a.coordsChar({left:0,top:y},"div");return v.ch<a.getLine(v.line).search(/\S/)?wc(a,c.head):v},Rt)},goLineUp:function(a){return a.moveV(-1,"line")},goLineDown:function(a){return a.moveV(1,"line")},goPageUp:function(a){return a.moveV(-1,"page")},goPageDown:function(a){return a.moveV(1,"page")},goCharLeft:function(a){return a.moveH(-1,"char")},goCharRight:function(a){return a.moveH(1,"char")},goColumnLeft:function(a){return a.moveH(-1,"column")},goColumnRight:function(a){return a.moveH(1,"column")},goWordLeft:function(a){return a.moveH(-1,"word")},goGroupRight:function(a){return a.moveH(1,"group")},goGroupLeft:function(a){return a.moveH(-1,"group")},goWordRight:function(a){return a.moveH(1,"word")},delCharBefore:function(a){return a.deleteH(-1,"codepoint")},delCharAfter:function(a){return a.deleteH(1,"char")},delWordBefore:function(a){return a.deleteH(-1,"word")},delWordAfter:function(a){return a.deleteH(1,"word")},delGroupBefore:function(a){return a.deleteH(-1,"group")},delGroupAfter:function(a){return a.deleteH(1,"group")},indentAuto:function(a){return a.indentSelection("smart")},indentMore:function(a){return a.indentSelection("add")},indentLess:function(a){return a.indentSelection("subtract")},insertTab:function(a){return a.replaceSelection(" ")},insertSoftTab:function(a){for(var c=[],y=a.listSelections(),v=a.options.tabSize,w=0;w<y.length;w++){var z=y[w].from(),ie=Ye(a.getLine(z.line),z.ch,v);c.push(si(v-ie%v))}a.replaceSelections(c)},defaultTab:function(a){a.somethingSelected()?a.indentSelection("add"):a.execCommand("insertTab")},transposeChars:function(a){return Tt(a,function(){for(var c=a.listSelections(),y=[],v=0;v<c.length;v++)if(c[v].empty()){var w=c[v].head,z=sn(a.doc,w.line).text;if(z){if(w.ch==z.length&&(w=new Zt(w.line,w.ch-1)),w.ch>0)w=new Zt(w.line,w.ch+1),a.replaceRange(z.charAt(w.ch-1)+z.charAt(w.ch-2),Zt(w.line,w.ch-2),w,"+transpose");else if(w.line>a.doc.first){var ie=sn(a.doc,w.line-1).text;ie&&(w=new Zt(w.line,1),a.replaceRange(z.charAt(0)+a.doc.lineSeparator()+ie.charAt(ie.length-1),Zt(w.line-1,ie.length-1),w,"+transpose"))}}y.push(new h(w,w))}a.setSelections(y)})},newlineAndIndent:function(a){return Tt(a,function(){for(var c=a.listSelections(),y=c.length-1;y>=0;y--)a.replaceRange(a.doc.lineSeparator(),c[y].anchor,c[y].head,"+input");c=a.listSelections();for(var v=0;v<c.length;v++)a.indentLine(c[v].from().line,null,!0);Gl(a)})},openLine:function(a){return a.replaceSelection(`
|
|
|
`,"start")},toggleOverwrite:function(a){return a.toggleOverwrite()}};function Ya(a,c){var y=sn(a.doc,c),v=zi(y);return v!=y&&(c=ut(v)),jo(!0,a,v,c,1)}function Za(a,c){var y=sn(a.doc,c),v=Pr(y);return v!=y&&(c=ut(v)),jo(!0,a,y,c,-1)}function wc(a,c){var y=Ya(a,c.line),v=sn(a.doc,y.line),w=Gt(v,a.doc.direction);if(!w||w[0].level==0){var z=Math.max(y.ch,v.text.search(/\S/)),ie=c.line==y.line&&c.ch<=z&&c.ch;return Zt(y.line,ie?0:z,y.sticky)}return y}function Au(a,c,y){if(typeof c=="string"&&(c=La[c],!c))return!1;a.display.input.ensurePolled();var v=a.display.shift,w=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),y&&(a.display.shift=!1),w=c(a)!=Kt}finally{a.display.shift=v,a.state.suppressEdits=!1}return w}function Xc(a,c,y){for(var v=0;v<a.state.keyMaps.length;v++){var w=Aa(c,a.state.keyMaps[v],y,a);if(w)return w}return a.options.extraKeys&&Aa(c,a.options.extraKeys,y,a)||Aa(c,a.options.keyMap,y,a)}var pu=new oe;function Qu(a,c,y,v){var w=a.state.keySeq;if(w){if(Nu(c))return"handled";if(/\'$/.test(c)?a.state.keySeq=null:pu.set(50,function(){a.state.keySeq==w&&(a.state.keySeq=null,a.display.input.reset())}),ch(a,w+" "+c,y,v))return!0}return ch(a,c,y,v)}function ch(a,c,y,v){var w=Xc(a,c,v);return w=="multi"&&(a.state.keySeq=c),w=="handled"&&vi(a,"keyHandled",a,c,y),(w=="handled"||w=="multi")&&(Un(y),zo(a)),!!w}function Bh(a,c){var y=Pc(c,!0);return y?c.shiftKey&&!a.state.keySeq?Qu(a,"Shift-"+y,c,function(v){return Au(a,v,!0)})||Qu(a,y,c,function(v){if(typeof v=="string"?/^go[A-Z]/.test(v):v.motion)return Au(a,v)}):Qu(a,y,c,function(v){return Au(a,v)}):!1}function _h(a,c,y){return Qu(a,"'"+y+"'",c,function(v){return Au(a,v,!0)})}var Cc=null;function hh(a){var c=this;if(!(a.target&&a.target!=c.display.input.getField())&&(c.curOp.focus=Xe(),!Dt(c,a))){V&&Q<11&&a.keyCode==27&&(a.returnValue=!1);var y=a.keyCode;c.display.shift=y==16||a.shiftKey;var v=Bh(c,a);re&&(Cc=v?y:null,!v&&y==88&&!ht&&(ze?a.metaKey:a.ctrlKey)&&c.replaceSelection("",null,"cut")),b&&!ze&&!v&&y==46&&a.shiftKey&&!a.ctrlKey&&document.execCommand&&document.execCommand("cut"),y==18&&!/\bCodeMirror-crosshair\b/.test(c.display.lineDiv.className)&&dh(c)}}function dh(a){var c=a.display.lineDiv;$t(c,"CodeMirror-crosshair");function y(v){(v.keyCode==18||!v.altKey)&&(Ae(c,"CodeMirror-crosshair"),vn(document,"keyup",y),vn(document,"mouseover",y))}Pt(document,"keyup",y),Pt(document,"mouseover",y)}function np(a){a.keyCode==16&&(this.doc.sel.shift=!1),Dt(this,a)}function Tc(a){var c=this;if(!(a.target&&a.target!=c.display.input.getField())&&!(Ca(c.display,a)||Dt(c,a)||a.ctrlKey&&!a.altKey||ze&&a.metaKey)){var y=a.keyCode,v=a.charCode;if(re&&y==Cc){Cc=null,Un(a);return}if(!(re&&(!a.which||a.which<10)&&Bh(c,a))){var w=String.fromCharCode(v==null?y:v);w!="\b"&&(_h(c,a,w)||c.display.input.onKeyPress(a))}}}var d0=400,ip=function(a,c,y){this.time=a,this.pos=c,this.button=y};ip.prototype.compare=function(a,c,y){return this.time+d0>a&&_n(c,this.pos)==0&&y==this.button};var hd,zh;function rp(a,c){var y=+new Date;return zh&&zh.compare(y,a,c)?(hd=zh=null,"triple"):hd&&hd.compare(y,a,c)?(zh=new ip(y,a,c),hd=null,"double"):(hd=new ip(y,a,c),zh=null,"single")}function Nc(a){var c=this,y=c.display;if(!(Dt(c,a)||y.activeTouch&&y.input.supportsTouch())){if(y.input.ensurePolled(),y.shift=a.shiftKey,Ca(y,a)){M||(y.scroller.draggable=!1,setTimeout(function(){return y.scroller.draggable=!0},100));return}if(!hf(c,a)){var v=Ta(c,a),w=j(a),z=v?rp(v,w):"single";window.focus(),w==1&&c.state.selectingText&&c.state.selectingText(a),!(v&&op(c,w,v,z,a))&&(w==1?v?f0(c,v,z,a):tt(a)==y.scroller&&Un(a):w==2?(v&&ko(c.doc,v),setTimeout(function(){return y.input.focus()},20)):w==3&&(Ne?c.display.input.onContextMenu(a):ps(c)))}}}function op(a,c,y,v,w){var z="Click";return v=="double"?z="Double"+z:v=="triple"&&(z="Triple"+z),z=(c==1?"Left":c==2?"Middle":"Right")+z,Qu(a,Xu(z,w),w,function(ie){if(typeof ie=="string"&&(ie=La[ie]),!ie)return!1;var be=!1;try{a.isReadOnly()&&(a.state.suppressEdits=!0),be=ie(a,y)!=Kt}finally{a.state.suppressEdits=!1}return be})}function uf(a,c,y){var v=a.getOption("configureMouse"),w=v?v(a,c,y):{};if(w.unit==null){var z=Ee?y.shiftKey&&y.metaKey:y.altKey;w.unit=z?"rectangle":c=="single"?"char":c=="double"?"word":"line"}return(w.extend==null||a.doc.extend)&&(w.extend=a.doc.extend||y.shiftKey),w.addNew==null&&(w.addNew=ze?y.metaKey:y.ctrlKey),w.moveOnDrag==null&&(w.moveOnDrag=!(ze?y.altKey:y.ctrlKey)),w}function f0(a,c,y,v){V?setTimeout(St(os,a),0):a.curOp.focus=Xe();var w=uf(a,y,v),z=a.doc.sel,ie;a.options.dragDrop&&Oi&&!a.isReadOnly()&&y=="single"&&(ie=z.contains(c))>-1&&(_n((ie=z.ranges[ie]).from(),c)<0||c.xRel>0)&&(_n(ie.to(),c)>0||c.xRel<0)?sp(a,v,c,w):cg(a,v,c,w)}function sp(a,c,y,v){var w=a.display,z=!1,ie=me(a,function(Ge){M&&(w.scroller.draggable=!1),a.state.draggingText=!1,vn(w.wrapper.ownerDocument,"mouseup",ie),vn(w.wrapper.ownerDocument,"mousemove",be),vn(w.scroller,"dragstart",ve),vn(w.scroller,"drop",ie),z||(Un(Ge),v.addNew||ko(a.doc,y,null,null,v.extend),M&&!De||V&&Q==9?setTimeout(function(){w.wrapper.ownerDocument.body.focus({preventScroll:!0}),w.input.focus()},20):w.input.focus())}),be=function(Ge){z=z||Math.abs(c.clientX-Ge.clientX)+Math.abs(c.clientY-Ge.clientY)>=10},ve=function(){return z=!0};M&&(w.scroller.draggable=!0),a.state.draggingText=ie,ie.copy=!v.moveOnDrag,w.scroller.dragDrop&&w.scroller.dragDrop(),Pt(w.wrapper.ownerDocument,"mouseup",ie),Pt(w.wrapper.ownerDocument,"mousemove",be),Pt(w.scroller,"dragstart",ve),Pt(w.scroller,"drop",ie),ps(a),setTimeout(function(){return w.input.focus()},20)}function ap(a,c,y){if(y=="char")return new h(c,c);if(y=="word")return a.findWordAt(c);if(y=="line")return new h(Zt(c.line,0),fn(a.doc,Zt(c.line+1,0)));var v=y(a,c);return new h(v.from,v.to)}function cg(a,c,y,v){var w=a.display,z=a.doc;Un(c);var ie,be,ve=z.sel,Ge=ve.ranges;if(v.addNew&&!v.extend?(be=z.sel.contains(y),be>-1?ie=Ge[be]:ie=new h(y,y)):(ie=z.sel.primary(),be=z.sel.primIndex),v.unit=="rectangle")v.addNew||(ie=new h(y,y)),y=Ta(a,c,!0,!0),be=-1;else{var Bt=ap(a,y,v.unit);v.extend?ie=fu(ie,Bt.anchor,Bt.head,v.extend):ie=Bt}v.addNew?be==-1?(be=Ge.length,cs(z,m(a,Ge.concat([ie]),be),{scroll:!1,origin:"*mouse"})):Ge.length>1&&Ge[be].empty()&&v.unit=="char"&&!v.extend?(cs(z,m(a,Ge.slice(0,be).concat(Ge.slice(be+1)),0),{scroll:!1,origin:"*mouse"}),ve=z.sel):Jo(z,be,ie,hn):(be=0,cs(z,new ji([ie],0),hn),ve=z.sel);var nt=y;function Sn(ar){if(_n(nt,ar)!=0)if(nt=ar,v.unit=="rectangle"){for(var Mr=[],Qr=a.options.tabSize,sr=Ye(sn(z,y.line).text,y.ch,Qr),To=Ye(sn(z,ar.line).text,ar.ch,Qr),na=Math.min(sr,To),rl=Math.max(sr,To),ma=Math.min(y.line,ar.line),gu=Math.min(a.lastLine(),Math.max(y.line,ar.line));ma<=gu;ma++){var Yl=sn(z,ma).text,Qa=hi(Yl,na,Qr);na==rl?Mr.push(new h(Zt(ma,Qa),Zt(ma,Qa))):Yl.length>Qa&&Mr.push(new h(Zt(ma,Qa),Zt(ma,hi(Yl,rl,Qr))))}Mr.length||Mr.push(new h(y,y)),cs(z,m(a,ve.ranges.slice(0,be).concat(Mr),be),{origin:"*mouse",scroll:!1}),a.scrollIntoView(ar)}else{var ku=ie,Rl=ap(a,ar,v.unit),Ja=ku.anchor,gs;_n(Rl.anchor,Ja)>0?(gs=Rl.head,Ja=jt(ku.from(),Rl.anchor)):(gs=Rl.anchor,Ja=on(ku.to(),Rl.head));var xa=ve.ranges.slice(0);xa[be]=p0(a,new h(fn(z,Ja),gs)),cs(z,m(a,xa,be),hn)}}var mn=w.wrapper.getBoundingClientRect(),di=0;function bi(ar){var Mr=++di,Qr=Ta(a,ar,!0,v.unit=="rectangle");if(Qr)if(_n(Qr,nt)!=0){a.curOp.focus=Xe(),Sn(Qr);var sr=ao(w,z);(Qr.line>=sr.to||Qr.line<sr.from)&&setTimeout(me(a,function(){di==Mr&&bi(ar)}),150)}else{var To=ar.clientY<mn.top?-20:ar.clientY>mn.bottom?20:0;To&&setTimeout(me(a,function(){di==Mr&&(w.scroller.scrollTop+=To,bi(ar))}),50)}}function Mi(ar){a.state.selectingText=!1,di=1/0,ar&&(Un(ar),w.input.focus()),vn(w.wrapper.ownerDocument,"mousemove",Ji),vn(w.wrapper.ownerDocument,"mouseup",Sr),z.history.lastSelOrigin=null}var Ji=me(a,function(ar){ar.buttons===0||!j(ar)?Mi(ar):bi(ar)}),Sr=me(a,Mi);a.state.selectingText=Sr,Pt(w.wrapper.ownerDocument,"mousemove",Ji),Pt(w.wrapper.ownerDocument,"mouseup",Sr)}function p0(a,c){var y=c.anchor,v=c.head,w=sn(a.doc,y.line);if(_n(y,v)==0&&y.sticky==v.sticky)return c;var z=Gt(w);if(!z)return c;var ie=Ze(z,y.ch,y.sticky),be=z[ie];if(be.from!=y.ch&&be.to!=y.ch)return c;var ve=ie+(be.from==y.ch==(be.level!=1)?0:1);if(ve==0||ve==z.length)return c;var Ge;if(v.line!=y.line)Ge=(v.line-y.line)*(a.doc.direction=="ltr"?1:-1)>0;else{var Bt=Ze(z,v.ch,v.sticky),nt=Bt-ie||(v.ch-y.ch)*(be.level==1?-1:1);Bt==ve-1||Bt==ve?Ge=nt<0:Ge=nt>0}var Sn=z[ve+(Ge?-1:0)],mn=Ge==(Sn.level==1),di=mn?Sn.from:Sn.to,bi=mn?"after":"before";return y.ch==di&&y.sticky==bi?c:new h(new Zt(y.line,di,bi),v)}function cf(a,c,y,v){var w,z;if(c.touches)w=c.touches[0].clientX,z=c.touches[0].clientY;else try{w=c.clientX,z=c.clientY}catch(Sn){return!1}if(w>=Math.floor(a.display.gutters.getBoundingClientRect().right))return!1;v&&Un(c);var ie=a.display,be=ie.lineDiv.getBoundingClientRect();if(z>be.bottom||!bn(a,y))return Hn(c);z-=be.top-ie.viewOffset;for(var ve=0;ve<a.display.gutterSpecs.length;++ve){var Ge=ie.gutters.childNodes[ve];if(Ge&&Ge.getBoundingClientRect().right>=w){var Bt=yn(a.doc,z),nt=a.display.gutterSpecs[ve];return We(a,y,a,Bt,nt.className,c),Hn(c)}}}function hf(a,c){return cf(a,c,"gutterClick",!0)}function df(a,c){Ca(a.display,c)||m0(a,c)||Dt(a,c,"contextmenu")||Ne||a.display.input.onContextMenu(c)}function m0(a,c){return bn(a,"gutterContextMenu")?cf(a,c,"gutterContextMenu",!1):!1}function ff(a){a.display.wrapper.className=a.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+a.options.theme.replace(/(^|\s)\s*/g," cm-s-"),jr(a)}var fh={toString:function(){return"CodeMirror.Init"}},lp={},Dd={};function g0(a){var c=a.optionHandlers;function y(v,w,z,ie){a.defaults[v]=w,z&&(c[v]=ie?function(be,ve,Ge){Ge!=fh&&z(be,ve,Ge)}:z)}a.defineOption=y,a.Init=fh,y("value","",function(v,w){return v.setValue(w)},!0),y("mode",null,function(v,w){v.doc.modeOption=w,Wn(v)},!0),y("indentUnit",2,Wn,!0),y("indentWithTabs",!1),y("smartIndent",!0),y("tabSize",4,function(v){Bi(v),jr(v),Wo(v)},!0),y("lineSeparator",null,function(v,w){if(v.doc.lineSep=w,!!w){var z=[],ie=v.doc.first;v.doc.iter(function(ve){for(var Ge=0;;){var Bt=ve.text.indexOf(w,Ge);if(Bt==-1)break;Ge=Bt+w.length,z.push(Zt(ie,Bt))}ie++});for(var be=z.length-1;be>=0;be--)Ka(v.doc,w,z[be],Zt(z[be].line,z[be].ch+w.length))}}),y("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(v,w,z){v.state.specialChars=new RegExp(w.source+(w.test(" ")?"":"| "),"g"),z!=fh&&v.refresh()}),y("specialCharPlaceholder",Ds,function(v){return v.refresh()},!0),y("electricChars",!0),y("inputStyle",Pe?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),y("spellcheck",!1,function(v,w){return v.getInputField().spellcheck=w},!0),y("autocorrect",!1,function(v,w){return v.getInputField().autocorrect=w},!0),y("autocapitalize",!1,function(v,w){return v.getInputField().autocapitalize=w},!0),y("rtlMoveVisually",!fe),y("wholeLineUpdateBefore",!0),y("theme","default",function(v){ff(v),Ct(v)},!0),y("keyMap","default",function(v,w,z){var ie=Ol(w),be=z!=fh&&Ol(z);be&&be.detach&&be.detach(v,ie),ie.attach&&ie.attach(v,be||null)}),y("extraKeys",null),y("configureMouse",null),y("lineWrapping",!1,v0,!0),y("gutters",[],function(v,w){v.display.gutterSpecs=en(w,v.options.lineNumbers),Ct(v)},!0),y("fixedGutter",!0,function(v,w){v.display.gutters.style.left=w?Al(v.display)+"px":"0",v.refresh()},!0),y("coverGutterNextToScrollbar",!1,function(v){return Vl(v)},!0),y("scrollbarStyle","native",function(v){Dc(v),Vl(v),v.display.scrollbars.setScrollTop(v.doc.scrollTop),v.display.scrollbars.setScrollLeft(v.doc.scrollLeft)},!0),y("lineNumbers",!1,function(v,w){v.display.gutterSpecs=en(v.options.gutters,w),Ct(v)},!0),y("firstLineNumber",1,Ct,!0),y("lineNumberFormatter",function(v){return v},Ct,!0),y("showCursorWhenSelecting",!1,Hs,!0),y("resetSelectionOnContextMenu",!0),y("lineWiseCopyCut",!0),y("pasteLinesPerSelection",!0),y("selectionsMayTouch",!1),y("readOnly",!1,function(v,w){w=="nocursor"&&(cu(v),v.display.input.blur()),v.display.input.readOnlyChanged(w)}),y("screenReaderLabel",null,function(v,w){w=w===""?null:w,v.display.input.screenReaderLabelChanged(w)}),y("disableInput",!1,function(v,w){w||v.display.input.reset()},!0),y("dragDrop",!0,pf),y("allowDropFileTypes",null),y("cursorBlinkRate",530),y("cursorScrollMargin",0),y("cursorHeight",1,Hs,!0),y("singleCursorHeightPerLine",!0,Hs,!0),y("workTime",100),y("workDelay",100),y("flattenSpans",!0,Bi,!0),y("addModeClass",!1,Bi,!0),y("pollInterval",100),y("undoDepth",200,function(v,w){return v.doc.history.undoDepth=w}),y("historyEventDelay",1250),y("viewportMargin",10,function(v){return v.refresh()},!0),y("maxHighlightLength",1e4,Bi,!0),y("moveInputWithCursor",!0,function(v,w){w||v.display.input.resetPosition()}),y("tabindex",null,function(v,w){return v.display.input.getField().tabIndex=w||""}),y("autofocus",null),y("direction","ltr",function(v,w){return v.doc.setDirection(w)},!0),y("phrases",null)}function pf(a,c,y){var v=y&&y!=fh;if(!c!=!v){var w=a.display.dragFunctions,z=c?Pt:vn;z(a.display.scroller,"dragstart",w.start),z(a.display.scroller,"dragenter",w.enter),z(a.display.scroller,"dragover",w.over),z(a.display.scroller,"dragleave",w.leave),z(a.display.scroller,"drop",w.drop)}}function v0(a){a.options.lineWrapping?($t(a.display.wrapper,"CodeMirror-wrap"),a.display.sizer.style.minWidth="",a.display.sizerWidth=null):(Ae(a.display.wrapper,"CodeMirror-wrap"),As(a)),xr(a),Wo(a),jr(a),setTimeout(function(){return Vl(a)},100)}function ds(a,c){var y=this;if(!(this instanceof ds))return new ds(a,c);this.options=c=c?Cn(c):{},Cn(lp,c,!1);var v=c.value;typeof v=="string"?v=new Pi(v,c.mode,null,c.lineSeparator,c.direction):c.mode&&(v.modeOption=c.mode),this.doc=v;var w=new ds.inputStyles[c.inputStyle](this),z=this.display=new ai(a,v,w,c);z.wrapper.CodeMirror=this,ff(this),c.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),Dc(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 oe,keySeq:null,specialChars:null},c.autofocus&&!Pe&&z.input.focus(),V&&Q<11&&setTimeout(function(){return y.display.input.reset(!0)},20),dd(this),Io(),aa(this),this.curOp.forceUpdate=!0,yr(this,v),c.autofocus&&!Pe||this.hasFocus()?setTimeout(function(){y.hasFocus()&&!y.state.focused&&wo(y)},20):cu(this);for(var ie in Dd)Dd.hasOwnProperty(ie)&&Dd[ie](this,c[ie],fh);gt(this),c.finishInit&&c.finishInit(this);for(var be=0;be<Uh.length;++be)Uh[be](this);Il(this),M&&c.lineWrapping&&getComputedStyle(z.lineDiv).textRendering=="optimizelegibility"&&(z.lineDiv.style.textRendering="auto")}ds.defaults=lp,ds.optionHandlers=Dd;function dd(a){var c=a.display;Pt(c.scroller,"mousedown",me(a,Nc)),V&&Q<11?Pt(c.scroller,"dblclick",me(a,function(ve){if(!Dt(a,ve)){var Ge=Ta(a,ve);if(!(!Ge||hf(a,ve)||Ca(a.display,ve))){Un(ve);var Bt=a.findWordAt(Ge);ko(a.doc,Bt.anchor,Bt.head)}}})):Pt(c.scroller,"dblclick",function(ve){return Dt(a,ve)||Un(ve)}),Pt(c.scroller,"contextmenu",function(ve){return df(a,ve)}),Pt(c.input.getField(),"contextmenu",function(ve){c.scroller.contains(ve.target)||df(a,ve)});var y,v={end:0};function w(){c.activeTouch&&(y=setTimeout(function(){return c.activeTouch=null},1e3),v=c.activeTouch,v.end=+new Date)}function z(ve){if(ve.touches.length!=1)return!1;var Ge=ve.touches[0];return Ge.radiusX<=1&&Ge.radiusY<=1}function ie(ve,Ge){if(Ge.left==null)return!0;var Bt=Ge.left-ve.left,nt=Ge.top-ve.top;return Bt*Bt+nt*nt>20*20}Pt(c.scroller,"touchstart",function(ve){if(!Dt(a,ve)&&!z(ve)&&!hf(a,ve)){c.input.ensurePolled(),clearTimeout(y);var Ge=+new Date;c.activeTouch={start:Ge,moved:!1,prev:Ge-v.end<=300?v:null},ve.touches.length==1&&(c.activeTouch.left=ve.touches[0].pageX,c.activeTouch.top=ve.touches[0].pageY)}}),Pt(c.scroller,"touchmove",function(){c.activeTouch&&(c.activeTouch.moved=!0)}),Pt(c.scroller,"touchend",function(ve){var Ge=c.activeTouch;if(Ge&&!Ca(c,ve)&&Ge.left!=null&&!Ge.moved&&new Date-Ge.start<300){var Bt=a.coordsChar(c.activeTouch,"page"),nt;!Ge.prev||ie(Ge,Ge.prev)?nt=new h(Bt,Bt):!Ge.prev.prev||ie(Ge,Ge.prev.prev)?nt=a.findWordAt(Bt):nt=new h(Zt(Bt.line,0),fn(a.doc,Zt(Bt.line+1,0))),a.setSelection(nt.anchor,nt.head),a.focus(),Un(ve)}w()}),Pt(c.scroller,"touchcancel",w),Pt(c.scroller,"scroll",function(){c.scroller.clientHeight&&(Wl(a,c.scroller.scrollTop),tl(a,c.scroller.scrollLeft,!0),We(a,"scroll",a))}),Pt(c.scroller,"mousewheel",function(ve){return gi(a,ve)}),Pt(c.scroller,"DOMMouseScroll",function(ve){return gi(a,ve)}),Pt(c.wrapper,"scroll",function(){return c.wrapper.scrollTop=c.wrapper.scrollLeft=0}),c.dragFunctions={enter:function(ve){Dt(a,ve)||Jn(ve)},over:function(ve){Dt(a,ve)||(lo(a,ve),Jn(ve))},start:function(ve){return Ir(a,ve)},drop:me(a,kr),leave:function(ve){Dt(a,ve)||No(a)}};var be=c.input.getField();Pt(be,"keyup",function(ve){return np.call(a,ve)}),Pt(be,"keydown",me(a,hh)),Pt(be,"keypress",me(a,Tc)),Pt(be,"focus",function(ve){return wo(a,ve)}),Pt(be,"blur",function(ve){return cu(a,ve)})}var Uh=[];ds.defineInitHook=function(a){return Uh.push(a)};function il(a,c,y,v){var w=a.doc,z;y==null&&(y="add"),y=="smart"&&(w.mode.indent?z=lr(a,c).state:y="prev");var ie=a.options.tabSize,be=sn(w,c),ve=Ye(be.text,null,ie);be.stateAfter&&(be.stateAfter=null);var Ge=be.text.match(/^\s*/)[0],Bt;if(!v&&!/\S/.test(be.text))Bt=0,y="not";else if(y=="smart"&&(Bt=w.mode.indent(z,be.text.slice(Ge.length),be.text),Bt==Kt||Bt>150)){if(!v)return;y="prev"}y=="prev"?c>w.first?Bt=Ye(sn(w,c-1).text,null,ie):Bt=0:y=="add"?Bt=ve+a.options.indentUnit:y=="subtract"?Bt=ve-a.options.indentUnit:typeof y=="number"&&(Bt=ve+y),Bt=Math.max(0,Bt);var nt="",Sn=0;if(a.options.indentWithTabs)for(var mn=Math.floor(Bt/ie);mn;--mn)Sn+=ie,nt+=" ";if(Sn<Bt&&(nt+=si(Bt-Sn)),nt!=Ge)return Ka(w,nt,Zt(c,0),Zt(c,Ge.length),"+input"),be.stateAfter=null,!0;for(var di=0;di<w.sel.ranges.length;di++){var bi=w.sel.ranges[di];if(bi.head.line==c&&bi.head.ch<Ge.length){var Mi=Zt(c,Ge.length);Jo(w,di,new h(Mi,Mi));break}}}var mu=null;function Hh(a){mu=a}function Pd(a,c,y,v,w){var z=a.doc;a.display.shift=!1,v||(v=z.sel);var ie=+new Date-200,be=w=="paste"||a.state.pasteIncoming>ie,ve=Zi(c),Ge=null;if(be&&v.ranges.length>1)if(mu&&mu.text.join(`
|
|
|
`)==c){if(v.ranges.length%mu.text.length==0){Ge=[];for(var Bt=0;Bt<mu.text.length;Bt++)Ge.push(z.splitLines(mu.text[Bt]))}}else ve.length==v.ranges.length&&a.options.pasteLinesPerSelection&&(Ge=ln(ve,function(Ji){return[Ji]}));for(var nt=a.curOp.updateInput,Sn=v.ranges.length-1;Sn>=0;Sn--){var mn=v.ranges[Sn],di=mn.from(),bi=mn.to();mn.empty()&&(y&&y>0?di=Zt(di.line,di.ch-y):a.state.overwrite&&!be?bi=Zt(bi.line,Math.min(sn(z,bi.line).text.length,bi.ch+qn(ve).length)):be&&mu&&mu.lineWise&&mu.text.join(`
|
|
|
`)==ve.join(`
|
|
|
`)&&(di=bi=Zt(di.line,0)));var Mi={from:di,to:bi,text:Ge?Ge[Sn%Ge.length]:ve,origin:w||(be?"paste":a.state.cutIncoming>ie?"cut":"+input")};Ho(a.doc,Mi),vi(a,"inputRead",a,Mi)}c&&!be&&cp(a,c),Gl(a),a.curOp.updateInput<2&&(a.curOp.updateInput=nt),a.curOp.typing=!0,a.state.pasteIncoming=a.state.cutIncoming=-1}function up(a,c){var y=a.clipboardData&&a.clipboardData.getData("Text");if(y)return a.preventDefault(),!c.isReadOnly()&&!c.options.disableInput&&Tt(c,function(){return Pd(c,y,0,null,"paste")}),!0}function cp(a,c){if(!(!a.options.electricChars||!a.options.smartIndent))for(var y=a.doc.sel,v=y.ranges.length-1;v>=0;v--){var w=y.ranges[v];if(!(w.head.ch>100||v&&y.ranges[v-1].head.line==w.head.line)){var z=a.getModeAt(w.head),ie=!1;if(z.electricChars){for(var be=0;be<z.electricChars.length;be++)if(c.indexOf(z.electricChars.charAt(be))>-1){ie=il(a,w.head.line,"smart");break}}else z.electricInput&&z.electricInput.test(sn(a.doc,w.head.line).text.slice(0,w.head.ch))&&(ie=il(a,w.head.line,"smart"));ie&&vi(a,"electricInput",a,w.head.line)}}}function hp(a){for(var c=[],y=[],v=0;v<a.doc.sel.ranges.length;v++){var w=a.doc.sel.ranges[v].head.line,z={anchor:Zt(w,0),head:Zt(w+1,0)};y.push(z),c.push(a.getRange(z.anchor,z.head))}return{text:c,ranges:y}}function dp(a,c,y,v){a.setAttribute("autocorrect",y?"":"off"),a.setAttribute("autocapitalize",v?"":"off"),a.setAttribute("spellcheck",!!c)}function fp(){var a=Qe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),c=Qe("div",[a],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return M?a.style.width="1000px":a.setAttribute("wrap","off"),Ue&&(a.style.border="1px solid black"),dp(a),c}function ph(a){var c=a.optionHandlers,y=a.helpers={};a.prototype={constructor:a,focus:function(){window.focus(),this.display.input.focus()},setOption:function(v,w){var z=this.options,ie=z[v];z[v]==w&&v!="mode"||(z[v]=w,c.hasOwnProperty(v)&&me(this,c[v])(this,w,ie),We(this,"optionChange",this,v))},getOption:function(v){return this.options[v]},getDoc:function(){return this.doc},addKeyMap:function(v,w){this.state.keyMaps[w?"push":"unshift"](Ol(v))},removeKeyMap:function(v){for(var w=this.state.keyMaps,z=0;z<w.length;++z)if(w[z]==v||w[z].name==v)return w.splice(z,1),!0},addOverlay:dn(function(v,w){var z=v.token?v:a.getMode(this.options,v);if(z.startState)throw new Error("Overlays may not be stateful.");Tn(this.state.overlays,{mode:z,modeSpec:v,opaque:w&&w.opaque,priority:w&&w.priority||0},function(ie){return ie.priority}),this.state.modeGen++,Wo(this)}),removeOverlay:dn(function(v){for(var w=this.state.overlays,z=0;z<w.length;++z){var ie=w[z].modeSpec;if(ie==v||typeof v=="string"&&ie.name==v){w.splice(z,1),this.state.modeGen++,Wo(this);return}}}),indentLine:dn(function(v,w,z){typeof w!="string"&&typeof w!="number"&&(w==null?w=this.options.smartIndent?"smart":"prev":w=w?"add":"subtract"),rn(this.doc,v)&&il(this,v,w,z)}),indentSelection:dn(function(v){for(var w=this.doc.sel.ranges,z=-1,ie=0;ie<w.length;ie++){var be=w[ie];if(be.empty())be.head.line>z&&(il(this,be.head.line,v,!0),z=be.head.line,ie==this.doc.sel.primIndex&&Gl(this));else{var ve=be.from(),Ge=be.to(),Bt=Math.max(z,ve.line);z=Math.min(this.lastLine(),Ge.line-(Ge.ch?0:1))+1;for(var nt=Bt;nt<z;++nt)il(this,nt,v);var Sn=this.doc.sel.ranges;ve.ch==0&&w.length==Sn.length&&Sn[ie].from().ch>0&&Jo(this.doc,ie,new h(ve,Sn[ie].to()),vt)}}}),getTokenAt:function(v,w){return Zn(this,v,w)},getLineTokens:function(v,w){return Zn(this,Zt(v),w,!0)},getTokenTypeAt:function(v){v=fn(this.doc,v);var w=ir(this,sn(this.doc,v.line)),z=0,ie=(w.length-1)/2,be=v.ch,ve;if(be==0)ve=w[2];else for(;;){var Ge=z+ie>>1;if((Ge?w[Ge*2-1]:0)>=be)ie=Ge;else if(w[Ge*2+1]<be)z=Ge+1;else{ve=w[Ge*2+2];break}}var Bt=ve?ve.indexOf("overlay "):-1;return Bt<0?ve:Bt==0?null:ve.slice(0,Bt-1)},getModeAt:function(v){var w=this.doc.mode;return w.innerMode?a.innerMode(w,this.getTokenAt(v).state).mode:w},getHelper:function(v,w){return this.getHelpers(v,w)[0]},getHelpers:function(v,w){var z=[];if(!y.hasOwnProperty(w))return z;var ie=y[w],be=this.getModeAt(v);if(typeof be[w]=="string")ie[be[w]]&&z.push(ie[be[w]]);else if(be[w])for(var ve=0;ve<be[w].length;ve++){var Ge=ie[be[w][ve]];Ge&&z.push(Ge)}else be.helperType&&ie[be.helperType]?z.push(ie[be.helperType]):ie[be.name]&&z.push(ie[be.name]);for(var Bt=0;Bt<ie._global.length;Bt++){var nt=ie._global[Bt];nt.pred(be,this)&&H(z,nt.val)==-1&&z.push(nt.val)}return z},getStateAfter:function(v,w){var z=this.doc;return v=gn(z,v==null?z.first+z.size-1:v),lr(this,v+1,w).state},cursorCoords:function(v,w){var z,ie=this.doc.sel.primary();return v==null?z=ie.head:typeof v=="object"?z=fn(this.doc,v):z=v?ie.from():ie.to(),ls(this,z,w||"page")},charCoords:function(v,w){return $a(this,fn(this.doc,v),w||"page")},coordsChar:function(v,w){return v=$l(this,v,w||"page"),wu(this,v.left,v.top)},lineAtHeight:function(v,w){return v=$l(this,{top:v,left:0},w||"page").top,yn(this.doc,v+this.display.viewOffset)},heightAtLine:function(v,w,z){var ie=!1,be;if(typeof v=="number"){var ve=this.doc.first+this.doc.size-1;v<this.doc.first?v=this.doc.first:v>ve&&(v=ve,ie=!0),be=sn(this.doc,v)}else be=v;return fs(this,be,{top:0,left:0},w||"page",z||ie).top+(ie?this.doc.height-as(be):0)},defaultTextHeight:function(){return Ga(this.display)},defaultCharWidth:function(){return Wa(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(v,w,z,ie,be){var ve=this.display;v=ls(this,fn(this.doc,v));var Ge=v.bottom,Bt=v.left;if(w.style.position="absolute",w.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(w),ve.sizer.appendChild(w),ie=="over")Ge=v.top;else if(ie=="above"||ie=="near"){var nt=Math.max(ve.wrapper.clientHeight,this.doc.height),Sn=Math.max(ve.sizer.clientWidth,ve.lineSpace.clientWidth);(ie=="above"||v.bottom+w.offsetHeight>nt)&&v.top>w.offsetHeight?Ge=v.top-w.offsetHeight:v.bottom+w.offsetHeight<=nt&&(Ge=v.bottom),Bt+w.offsetWidth>Sn&&(Bt=Sn-w.offsetWidth)}w.style.top=Ge+"px",w.style.left=w.style.right="",be=="right"?(Bt=ve.sizer.clientWidth-w.offsetWidth,w.style.right="0px"):(be=="left"?Bt=0:be=="middle"&&(Bt=(ve.sizer.clientWidth-w.offsetWidth)/2),w.style.left=Bt+"px"),z&&Yu(this,{left:Bt,top:Ge,right:Bt+w.offsetWidth,bottom:Ge+w.offsetHeight})},triggerOnKeyDown:dn(hh),triggerOnKeyPress:dn(Tc),triggerOnKeyUp:np,triggerOnMouseDown:dn(Nc),execCommand:function(v){if(La.hasOwnProperty(v))return La[v].call(null,this)},triggerElectric:dn(function(v){cp(this,v)}),findPosH:function(v,w,z,ie){var be=1;w<0&&(be=-1,w=-w);for(var ve=fn(this.doc,v),Ge=0;Ge<w&&(ve=Fd(this.doc,ve,be,z,ie),!ve.hitSide);++Ge);return ve},moveH:dn(function(v,w){var z=this;this.extendSelectionsBy(function(ie){return z.display.shift||z.doc.extend||ie.empty()?Fd(z.doc,ie.head,v,w,z.options.rtlMoveVisually):v<0?ie.from():ie.to()},Rt)}),deleteH:dn(function(v,w){var z=this.doc.sel,ie=this.doc;z.somethingSelected()?ie.replaceSelection("",null,"+delete"):ua(this,function(be){var ve=Fd(ie,be.head,v,w,!1);return v<0?{from:ve,to:be.head}:{from:be.head,to:ve}})}),findPosV:function(v,w,z,ie){var be=1,ve=ie;w<0&&(be=-1,w=-w);for(var Ge=fn(this.doc,v),Bt=0;Bt<w;++Bt){var nt=ls(this,Ge,"div");if(ve==null?ve=nt.left:nt.left=ve,Ge=mh(this,nt,be,z),Ge.hitSide)break}return Ge},moveV:dn(function(v,w){var z=this,ie=this.doc,be=[],ve=!this.display.shift&&!ie.extend&&ie.sel.somethingSelected();if(ie.extendSelectionsBy(function(Bt){if(ve)return v<0?Bt.from():Bt.to();var nt=ls(z,Bt.head,"div");Bt.goalColumn!=null&&(nt.left=Bt.goalColumn),be.push(nt.left);var Sn=mh(z,nt,v,w);return w=="page"&&Bt==ie.sel.primary()&&el(z,$a(z,Sn,"div").top-nt.top),Sn},Rt),be.length)for(var Ge=0;Ge<ie.sel.ranges.length;Ge++)ie.sel.ranges[Ge].goalColumn=be[Ge]}),findWordAt:function(v){var w=this.doc,z=sn(w,v.line).text,ie=v.ch,be=v.ch;if(z){var ve=this.getHelper(v,"wordChars");(v.sticky=="before"||be==z.length)&&ie?--ie:++be;for(var Ge=z.charAt(ie),Bt=X(Ge,ve)?function(nt){return X(nt,ve)}:/\s/.test(Ge)?function(nt){return/\s/.test(nt)}:function(nt){return!/\s/.test(nt)&&!X(nt)};ie>0&&Bt(z.charAt(ie-1));)--ie;for(;be<z.length&&Bt(z.charAt(be));)++be}return new h(Zt(v.line,ie),Zt(v.line,be))},toggleOverwrite:function(v){v!=null&&v==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?$t(this.display.cursorDiv,"CodeMirror-overwrite"):Ae(this.display.cursorDiv,"CodeMirror-overwrite"),We(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Xe()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:dn(function(v,w){eu(this,v,w)}),getScrollInfo:function(){var v=this.display.scroller;return{left:v.scrollLeft,top:v.scrollTop,height:v.scrollHeight-ks(this)-this.display.barHeight,width:v.scrollWidth-ks(this)-this.display.barWidth,clientHeight:Nl(this),clientWidth:fa(this)}},scrollIntoView:dn(function(v,w){v==null?(v={from:this.doc.sel.primary().head,to:null},w==null&&(w=this.options.cursorScrollMargin)):typeof v=="number"?v={from:Zt(v,0),to:null}:v.from==null&&(v={from:v,to:null}),v.to||(v.to=v.from),v.margin=w||0,v.from.line!=null?xo(this,v):Ec(this,v.from,v.to,v.margin)}),setSize:dn(function(v,w){var z=this,ie=function(ve){return typeof ve=="number"||/^\d+$/.test(String(ve))?ve+"px":ve};v!=null&&(this.display.wrapper.style.width=ie(v)),w!=null&&(this.display.wrapper.style.height=ie(w)),this.options.lineWrapping&&Xo(this);var be=this.display.viewFrom;this.doc.iter(be,this.display.viewTo,function(ve){if(ve.widgets){for(var Ge=0;Ge<ve.widgets.length;Ge++)if(ve.widgets[Ge].noHScroll){Gr(z,be,"widget");break}}++be}),this.curOp.forceUpdate=!0,We(this,"refresh",this)}),operation:function(v){return Tt(this,v)},startOperation:function(){return aa(this)},endOperation:function(){return Il(this)},refresh:dn(function(){var v=this.display.cachedTextHeight;Wo(this),this.curOp.forceUpdate=!0,jr(this),eu(this,this.doc.scrollLeft,this.doc.scrollTop),et(this.display),(v==null||Math.abs(v-Ga(this.display))>.5||this.options.lineWrapping)&&xr(this),We(this,"refresh",this)}),swapDoc:dn(function(v){var w=this.doc;return w.cm=null,this.state.selectingText&&this.state.selectingText(),yr(this,v),jr(this),this.display.input.reset(),eu(this,v.scrollLeft,v.scrollTop),this.curOp.forceScroll=!0,vi(this,"swapDoc",this,w),w}),phrase:function(v){var w=this.options.phrases;return w&&Object.prototype.hasOwnProperty.call(w,v)?w[v]:v},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}},$n(a),a.registerHelper=function(v,w,z){y.hasOwnProperty(v)||(y[v]=a[v]={_global:[]}),y[v][w]=z},a.registerGlobalHelper=function(v,w,z,ie){a.registerHelper(v,w,ie),y[v]._global.push({pred:z,val:ie})}}function Fd(a,c,y,v,w){var z=c,ie=y,be=sn(a,c.line),ve=w&&a.direction=="rtl"?-y:y;function Ge(){var Sr=c.line+ve;return Sr<a.first||Sr>=a.first+a.size?!1:(c=new Zt(Sr,c.ch,c.sticky),be=sn(a,Sr))}function Bt(Sr){var ar;if(v=="codepoint"){var Mr=be.text.charCodeAt(c.ch+(v>0?0:-1));isNaN(Mr)?ar=null:ar=new Zt(c.line,Math.max(0,Math.min(be.text.length,c.ch+y*(Mr>=55296&&Mr<56320?2:1))),-y)}else w?ar=hs(a.cm,be,c,y):ar=Ps(be,c,y);if(ar==null)if(!Sr&&Ge())c=jo(w,a.cm,be,c.line,ve);else return!1;else c=ar;return!0}if(v=="char"||v=="codepoint")Bt();else if(v=="column")Bt(!0);else if(v=="word"||v=="group")for(var nt=null,Sn=v=="group",mn=a.cm&&a.cm.getHelper(c,"wordChars"),di=!0;!(y<0&&!Bt(!di));di=!1){var bi=be.text.charAt(c.ch)||`
|
|
|
`,Mi=X(bi,mn)?"w":Sn&&bi==`
|
|
|
`?"n":!Sn||/\s/.test(bi)?null:"p";if(Sn&&!di&&!Mi&&(Mi="s"),nt&&nt!=Mi){y<0&&(y=1,Bt(),c.sticky="after");break}if(Mi&&(nt=Mi),y>0&&!Bt(!di))break}var Ji=Qi(a,c,z,ie,!0);return Mt(z,Ji)&&(Ji.hitSide=!0),Ji}function mh(a,c,y,v){var w=a.doc,z=c.left,ie;if(v=="page"){var be=Math.min(a.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),ve=Math.max(be-.5*Ga(a.display),3);ie=(y>0?c.bottom:c.top)+y*ve}else v=="line"&&(ie=y>0?c.bottom+3:c.top-3);for(var Ge;Ge=wu(a,z,ie),!!Ge.outside;){if(y<0?ie<=0:ie>=w.height){Ge.hitSide=!0;break}ie+=y*5}return Ge}var Fs=function(a){this.cm=a,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new oe,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Fs.prototype.init=function(a){var c=this,y=this,v=y.cm,w=y.div=a.lineDiv;dp(w,v.options.spellcheck,v.options.autocorrect,v.options.autocapitalize);function z(be){for(var ve=be.target;ve;ve=ve.parentNode){if(ve==w)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(ve.className))break}return!1}Pt(w,"paste",function(be){!z(be)||Dt(v,be)||up(be,v)||Q<=11&&setTimeout(me(v,function(){return c.updateFromDOM()}),20)}),Pt(w,"compositionstart",function(be){c.composing={data:be.data,done:!1}}),Pt(w,"compositionupdate",function(be){c.composing||(c.composing={data:be.data,done:!1})}),Pt(w,"compositionend",function(be){c.composing&&(be.data!=c.composing.data&&c.readFromDOMSoon(),c.composing.done=!0)}),Pt(w,"touchstart",function(){return y.forceCompositionEnd()}),Pt(w,"input",function(){c.composing||c.readFromDOMSoon()});function ie(be){if(!(!z(be)||Dt(v,be))){if(v.somethingSelected())Hh({lineWise:!1,text:v.getSelections()}),be.type=="cut"&&v.replaceSelection("",null,"cut");else if(v.options.lineWiseCopyCut){var ve=hp(v);Hh({lineWise:!0,text:ve.text}),be.type=="cut"&&v.operation(function(){v.setSelections(ve.ranges,0,vt),v.replaceSelection("",null,"cut")})}else return;if(be.clipboardData){be.clipboardData.clearData();var Ge=mu.text.join(`
|
|
|
`);if(be.clipboardData.setData("Text",Ge),be.clipboardData.getData("Text")==Ge){be.preventDefault();return}}var Bt=fp(),nt=Bt.firstChild;v.display.lineSpace.insertBefore(Bt,v.display.lineSpace.firstChild),nt.value=mu.text.join(`
|
|
|
`);var Sn=document.activeElement;At(nt),setTimeout(function(){v.display.lineSpace.removeChild(Bt),Sn.focus(),Sn==w&&y.showPrimarySelection()},50)}}Pt(w,"copy",ie),Pt(w,"cut",ie)},Fs.prototype.screenReaderLabelChanged=function(a){a?this.div.setAttribute("aria-label",a):this.div.removeAttribute("aria-label")},Fs.prototype.prepareSelection=function(){var a=uu(this.cm,!1);return a.focus=document.activeElement==this.div,a},Fs.prototype.showSelection=function(a,c){!a||!this.cm.display.view.length||((a.focus||c)&&this.showPrimarySelection(),this.showMultipleSelections(a))},Fs.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Fs.prototype.showPrimarySelection=function(){var a=this.getSelection(),c=this.cm,y=c.doc.sel.primary(),v=y.from(),w=y.to();if(c.display.viewTo==c.display.viewFrom||v.line>=c.display.viewTo||w.line<c.display.viewFrom){a.removeAllRanges();return}var z=Bd(c,a.anchorNode,a.anchorOffset),ie=Bd(c,a.focusNode,a.focusOffset);if(!(z&&!z.bad&&ie&&!ie.bad&&_n(jt(z,ie),v)==0&&_n(on(z,ie),w)==0)){var be=c.display.view,ve=v.line>=c.display.viewFrom&&mf(c,v)||{node:be[0].measure.map[2],offset:0},Ge=w.line<c.display.viewTo&&mf(c,w);if(!Ge){var Bt=be[be.length-1].measure,nt=Bt.maps?Bt.maps[Bt.maps.length-1]:Bt.map;Ge={node:nt[nt.length-1],offset:nt[nt.length-2]-nt[nt.length-3]}}if(!ve||!Ge){a.removeAllRanges();return}var Sn=a.rangeCount&&a.getRangeAt(0),mn;try{mn=Ce(ve.node,ve.offset,Ge.offset,Ge.node)}catch(di){}mn&&(!b&&c.state.focused?(a.collapse(ve.node,ve.offset),mn.collapsed||(a.removeAllRanges(),a.addRange(mn))):(a.removeAllRanges(),a.addRange(mn)),Sn&&a.anchorNode==null?a.addRange(Sn):b&&this.startGracePeriod()),this.rememberSelection()}},Fs.prototype.startGracePeriod=function(){var a=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){a.gracePeriod=!1,a.selectionChanged()&&a.cm.operation(function(){return a.cm.curOp.selectionChanged=!0})},20)},Fs.prototype.showMultipleSelections=function(a){$e(this.cm.display.cursorDiv,a.cursors),$e(this.cm.display.selectionDiv,a.selection)},Fs.prototype.rememberSelection=function(){var a=this.getSelection();this.lastAnchorNode=a.anchorNode,this.lastAnchorOffset=a.anchorOffset,this.lastFocusNode=a.focusNode,this.lastFocusOffset=a.focusOffset},Fs.prototype.selectionInEditor=function(){var a=this.getSelection();if(!a.rangeCount)return!1;var c=a.getRangeAt(0).commonAncestorContainer;return dt(this.div,c)},Fs.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Fs.prototype.blur=function(){this.div.blur()},Fs.prototype.getField=function(){return this.div},Fs.prototype.supportsTouch=function(){return!0},Fs.prototype.receivedFocus=function(){var a=this;this.selectionInEditor()?this.pollSelection():Tt(this.cm,function(){return a.cm.curOp.selectionChanged=!0});function c(){a.cm.state.focused&&(a.pollSelection(),a.polling.set(a.cm.options.pollInterval,c))}this.polling.set(this.cm.options.pollInterval,c)},Fs.prototype.selectionChanged=function(){var a=this.getSelection();return a.anchorNode!=this.lastAnchorNode||a.anchorOffset!=this.lastAnchorOffset||a.focusNode!=this.lastFocusNode||a.focusOffset!=this.lastFocusOffset},Fs.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var a=this.getSelection(),c=this.cm;if(Ie&&he&&this.cm.display.gutterSpecs.length&&pp(a.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var y=Bd(c,a.anchorNode,a.anchorOffset),v=Bd(c,a.focusNode,a.focusOffset);y&&v&&Tt(c,function(){cs(c.doc,W(y,v),vt),(y.bad||v.bad)&&(c.curOp.selectionChanged=!0)})}}},Fs.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var a=this.cm,c=a.display,y=a.doc.sel.primary(),v=y.from(),w=y.to();if(v.ch==0&&v.line>a.firstLine()&&(v=Zt(v.line-1,sn(a.doc,v.line-1).length)),w.ch==sn(a.doc,w.line).text.length&&w.line<a.lastLine()&&(w=Zt(w.line+1,0)),v.line<c.viewFrom||w.line>c.viewTo-1)return!1;var z,ie,be;v.line==c.viewFrom||(z=Qs(a,v.line))==0?(ie=ut(c.view[0].line),be=c.view[0].node):(ie=ut(c.view[z].line),be=c.view[z-1].node.nextSibling);var ve=Qs(a,w.line),Ge,Bt;if(ve==c.view.length-1?(Ge=c.viewTo-1,Bt=c.lineDiv.lastChild):(Ge=ut(c.view[ve+1].line)-1,Bt=c.view[ve+1].node.previousSibling),!be)return!1;for(var nt=a.doc.splitLines(pd(a,be,Bt,ie,Ge)),Sn=In(a.doc,Zt(ie,0),Zt(Ge,sn(a.doc,Ge).text.length));nt.length>1&&Sn.length>1;)if(qn(nt)==qn(Sn))nt.pop(),Sn.pop(),Ge--;else if(nt[0]==Sn[0])nt.shift(),Sn.shift(),ie++;else break;for(var mn=0,di=0,bi=nt[0],Mi=Sn[0],Ji=Math.min(bi.length,Mi.length);mn<Ji&&bi.charCodeAt(mn)==Mi.charCodeAt(mn);)++mn;for(var Sr=qn(nt),ar=qn(Sn),Mr=Math.min(Sr.length-(nt.length==1?mn:0),ar.length-(Sn.length==1?mn:0));di<Mr&&Sr.charCodeAt(Sr.length-di-1)==ar.charCodeAt(ar.length-di-1);)++di;if(nt.length==1&&Sn.length==1&&ie==v.line)for(;mn&&mn>v.ch&&Sr.charCodeAt(Sr.length-di-1)==ar.charCodeAt(ar.length-di-1);)mn--,di++;nt[nt.length-1]=Sr.slice(0,Sr.length-di).replace(/^\u200b+/,""),nt[0]=nt[0].slice(mn).replace(/\u200b+$/,"");var Qr=Zt(ie,mn),sr=Zt(Ge,Sn.length?qn(Sn).length-di:0);if(nt.length>1||nt[0]||_n(Qr,sr))return Ka(a.doc,nt,Qr,sr,"+input"),!0},Fs.prototype.ensurePolled=function(){this.forceCompositionEnd()},Fs.prototype.reset=function(){this.forceCompositionEnd()},Fs.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Fs.prototype.readFromDOMSoon=function(){var a=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(a.readDOMTimeout=null,a.composing)if(a.composing.done)a.composing=null;else return;a.updateFromDOM()},80))},Fs.prototype.updateFromDOM=function(){var a=this;(this.cm.isReadOnly()||!this.pollContent())&&Tt(this.cm,function(){return Wo(a.cm)})},Fs.prototype.setUneditable=function(a){a.contentEditable="false"},Fs.prototype.onKeyPress=function(a){a.charCode==0||this.composing||(a.preventDefault(),this.cm.isReadOnly()||me(this.cm,Pd)(this.cm,String.fromCharCode(a.charCode==null?a.keyCode:a.charCode),0))},Fs.prototype.readOnlyChanged=function(a){this.div.contentEditable=String(a!="nocursor")},Fs.prototype.onContextMenu=function(){},Fs.prototype.resetPosition=function(){},Fs.prototype.needsContentAttribute=!0;function mf(a,c){var y=Cs(a,c.line);if(!y||y.hidden)return null;var v=sn(a.doc,c.line),w=zl(y,v,c.line),z=Gt(v,a.doc.direction),ie="left";if(z){var be=Ze(z,c.ch);ie=be%2?"right":"left"}var ve=pa(w.map,c.ch,ie);return ve.offset=ve.collapse=="right"?ve.end:ve.start,ve}function pp(a){for(var c=a;c;c=c.parentNode)if(/CodeMirror-gutter-wrapper/.test(c.className))return!0;return!1}function fd(a,c){return c&&(a.bad=!0),a}function pd(a,c,y,v,w){var z="",ie=!1,be=a.doc.lineSeparator(),ve=!1;function Ge(mn){return function(di){return di.id==mn}}function Bt(){ie&&(z+=be,ve&&(z+=be),ie=ve=!1)}function nt(mn){mn&&(Bt(),z+=mn)}function Sn(mn){if(mn.nodeType==1){var di=mn.getAttribute("cm-text");if(di){nt(di);return}var bi=mn.getAttribute("cm-marker"),Mi;if(bi){var Ji=a.findMarks(Zt(v,0),Zt(w+1,0),Ge(+bi));Ji.length&&(Mi=Ji[0].find(0))&&nt(In(a.doc,Mi.from,Mi.to).join(be));return}if(mn.getAttribute("contenteditable")=="false")return;var Sr=/^(pre|div|p|li|table|br)$/i.test(mn.nodeName);if(!/^br$/i.test(mn.nodeName)&&mn.textContent.length==0)return;Sr&&Bt();for(var ar=0;ar<mn.childNodes.length;ar++)Sn(mn.childNodes[ar]);/^(pre|p)$/i.test(mn.nodeName)&&(ve=!0),Sr&&(ie=!0)}else mn.nodeType==3&&nt(mn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;Sn(c),c!=y;)c=c.nextSibling,ve=!1;return z}function Bd(a,c,y){var v;if(c==a.display.lineDiv){if(v=a.display.lineDiv.childNodes[y],!v)return fd(a.clipPos(Zt(a.display.viewTo-1)),!0);c=null,y=0}else for(v=c;;v=v.parentNode){if(!v||v==a.display.lineDiv)return null;if(v.parentNode&&v.parentNode==a.display.lineDiv)break}for(var w=0;w<a.display.view.length;w++){var z=a.display.view[w];if(z.node==v)return y0(z,c,y)}}function y0(a,c,y){var v=a.text.firstChild,w=!1;if(!c||!dt(v,c))return fd(Zt(ut(a.line),0),!0);if(c==v&&(w=!0,c=v.childNodes[y],y=0,!c)){var z=a.rest?qn(a.rest):a.line;return fd(Zt(ut(z),z.text.length),w)}var ie=c.nodeType==3?c:null,be=c;for(!ie&&c.childNodes.length==1&&c.firstChild.nodeType==3&&(ie=c.firstChild,y&&(y=ie.nodeValue.length));be.parentNode!=v;)be=be.parentNode;var ve=a.measure,Ge=ve.maps;function Bt(Mi,Ji,Sr){for(var ar=-1;ar<(Ge?Ge.length:0);ar++)for(var Mr=ar<0?ve.map:Ge[ar],Qr=0;Qr<Mr.length;Qr+=3){var sr=Mr[Qr+2];if(sr==Mi||sr==Ji){var To=ut(ar<0?a.line:a.rest[ar]),na=Mr[Qr]+Sr;return(Sr<0||sr!=Mi)&&(na=Mr[Qr+(Sr?1:0)]),Zt(To,na)}}}var nt=Bt(ie,be,y);if(nt)return fd(nt,w);for(var Sn=be.nextSibling,mn=ie?ie.nodeValue.length-y:0;Sn;Sn=Sn.nextSibling){if(nt=Bt(Sn,Sn.firstChild,0),nt)return fd(Zt(nt.line,nt.ch-mn),w);mn+=Sn.textContent.length}for(var di=be.previousSibling,bi=y;di;di=di.previousSibling){if(nt=Bt(di,di.firstChild,-1),nt)return fd(Zt(nt.line,nt.ch+bi),w);bi+=di.textContent.length}}var Xa=function(a){this.cm=a,this.prevInput="",this.pollingFast=!1,this.polling=new oe,this.hasSelection=!1,this.composing=null};Xa.prototype.init=function(a){var c=this,y=this,v=this.cm;this.createField(a);var w=this.textarea;a.wrapper.insertBefore(this.wrapper,a.wrapper.firstChild),Ue&&(w.style.width="0px"),Pt(w,"input",function(){V&&Q>=9&&c.hasSelection&&(c.hasSelection=null),y.poll()}),Pt(w,"paste",function(ie){Dt(v,ie)||up(ie,v)||(v.state.pasteIncoming=+new Date,y.fastPoll())});function z(ie){if(!Dt(v,ie)){if(v.somethingSelected())Hh({lineWise:!1,text:v.getSelections()});else if(v.options.lineWiseCopyCut){var be=hp(v);Hh({lineWise:!0,text:be.text}),ie.type=="cut"?v.setSelections(be.ranges,null,vt):(y.prevInput="",w.value=be.text.join(`
|
|
|
`),At(w))}else return;ie.type=="cut"&&(v.state.cutIncoming=+new Date)}}Pt(w,"cut",z),Pt(w,"copy",z),Pt(a.scroller,"paste",function(ie){if(!(Ca(a,ie)||Dt(v,ie))){if(!w.dispatchEvent){v.state.pasteIncoming=+new Date,y.focus();return}var be=new Event("paste");be.clipboardData=ie.clipboardData,w.dispatchEvent(be)}}),Pt(a.lineSpace,"selectstart",function(ie){Ca(a,ie)||Un(ie)}),Pt(w,"compositionstart",function(){var ie=v.getCursor("from");y.composing&&y.composing.range.clear(),y.composing={start:ie,range:v.markText(ie,v.getCursor("to"),{className:"CodeMirror-composing"})}}),Pt(w,"compositionend",function(){y.composing&&(y.poll(),y.composing.range.clear(),y.composing=null)})},Xa.prototype.createField=function(a){this.wrapper=fp(),this.textarea=this.wrapper.firstChild},Xa.prototype.screenReaderLabelChanged=function(a){a?this.textarea.setAttribute("aria-label",a):this.textarea.removeAttribute("aria-label")},Xa.prototype.prepareSelection=function(){var a=this.cm,c=a.display,y=a.doc,v=uu(a);if(a.options.moveInputWithCursor){var w=ls(a,y.sel.primary().head,"div"),z=c.wrapper.getBoundingClientRect(),ie=c.lineDiv.getBoundingClientRect();v.teTop=Math.max(0,Math.min(c.wrapper.clientHeight-10,w.top+ie.top-z.top)),v.teLeft=Math.max(0,Math.min(c.wrapper.clientWidth-10,w.left+ie.left-z.left))}return v},Xa.prototype.showSelection=function(a){var c=this.cm,y=c.display;$e(y.cursorDiv,a.cursors),$e(y.selectionDiv,a.selection),a.teTop!=null&&(this.wrapper.style.top=a.teTop+"px",this.wrapper.style.left=a.teLeft+"px")},Xa.prototype.reset=function(a){if(!(this.contextMenuPending||this.composing)){var c=this.cm;if(c.somethingSelected()){this.prevInput="";var y=c.getSelection();this.textarea.value=y,c.state.focused&&At(this.textarea),V&&Q>=9&&(this.hasSelection=y)}else a||(this.prevInput=this.textarea.value="",V&&Q>=9&&(this.hasSelection=null))}},Xa.prototype.getField=function(){return this.textarea},Xa.prototype.supportsTouch=function(){return!1},Xa.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!Pe||Xe()!=this.textarea))try{this.textarea.focus()}catch(a){}},Xa.prototype.blur=function(){this.textarea.blur()},Xa.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},Xa.prototype.receivedFocus=function(){this.slowPoll()},Xa.prototype.slowPoll=function(){var a=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){a.poll(),a.cm.state.focused&&a.slowPoll()})},Xa.prototype.fastPoll=function(){var a=!1,c=this;c.pollingFast=!0;function y(){var v=c.poll();!v&&!a?(a=!0,c.polling.set(60,y)):(c.pollingFast=!1,c.slowPoll())}c.polling.set(20,y)},Xa.prototype.poll=function(){var a=this,c=this.cm,y=this.textarea,v=this.prevInput;if(this.contextMenuPending||!c.state.focused||_(y)&&!v&&!this.composing||c.isReadOnly()||c.options.disableInput||c.state.keySeq)return!1;var w=y.value;if(w==v&&!c.somethingSelected())return!1;if(V&&Q>=9&&this.hasSelection===w||ze&&/[\uf700-\uf7ff]/.test(w))return c.display.input.reset(),!1;if(c.doc.sel==c.display.selForContextMenu){var z=w.charCodeAt(0);if(z==8203&&!v&&(v="\u200B"),z==8666)return this.reset(),this.cm.execCommand("undo")}for(var ie=0,be=Math.min(v.length,w.length);ie<be&&v.charCodeAt(ie)==w.charCodeAt(ie);)++ie;return Tt(c,function(){Pd(c,w.slice(ie),v.length-ie,null,a.composing?"*compose":null),w.length>1e3||w.indexOf(`
|
|
|
`)>-1?y.value=a.prevInput="":a.prevInput=w,a.composing&&(a.composing.range.clear(),a.composing.range=c.markText(a.composing.start,c.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},Xa.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},Xa.prototype.onKeyPress=function(){V&&Q>=9&&(this.hasSelection=null),this.fastPoll()},Xa.prototype.onContextMenu=function(a){var c=this,y=c.cm,v=y.display,w=c.textarea;c.contextMenuPending&&c.contextMenuPending();var z=Ta(y,a),ie=v.scroller.scrollTop;if(!z||re)return;var be=y.options.resetSelectionOnContextMenu;be&&y.doc.sel.contains(z)==-1&&me(y,cs)(y.doc,W(z),vt);var ve=w.style.cssText,Ge=c.wrapper.style.cssText,Bt=c.wrapper.offsetParent.getBoundingClientRect();c.wrapper.style.cssText="position: static",w.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
|
top: `+(a.clientY-Bt.top-5)+"px; left: "+(a.clientX-Bt.left-5)+`px;
|
|
|
z-index: 1000; background: `+(V?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var nt;M&&(nt=window.scrollY),v.input.focus(),M&&window.scrollTo(null,nt),v.input.reset(),y.somethingSelected()||(w.value=c.prevInput=" "),c.contextMenuPending=mn,v.selForContextMenu=y.doc.sel,clearTimeout(v.detectingSelectAll);function Sn(){if(w.selectionStart!=null){var bi=y.somethingSelected(),Mi="\u200B"+(bi?w.value:"");w.value="\u21DA",w.value=Mi,c.prevInput=bi?"":"\u200B",w.selectionStart=1,w.selectionEnd=Mi.length,v.selForContextMenu=y.doc.sel}}function mn(){if(c.contextMenuPending==mn&&(c.contextMenuPending=!1,c.wrapper.style.cssText=Ge,w.style.cssText=ve,V&&Q<9&&v.scrollbars.setScrollTop(v.scroller.scrollTop=ie),w.selectionStart!=null)){(!V||V&&Q<9)&&Sn();var bi=0,Mi=function(){v.selForContextMenu==y.doc.sel&&w.selectionStart==0&&w.selectionEnd>0&&c.prevInput=="\u200B"?me(y,wr)(y):bi++<10?v.detectingSelectAll=setTimeout(Mi,500):(v.selForContextMenu=null,v.input.reset())};v.detectingSelectAll=setTimeout(Mi,200)}}if(V&&Q>=9&&Sn(),Ne){Jn(a);var di=function(){vn(window,"mouseup",di),setTimeout(mn,20)};Pt(window,"mouseup",di)}else setTimeout(mn,50)},Xa.prototype.readOnlyChanged=function(a){a||this.reset(),this.textarea.disabled=a=="nocursor",this.textarea.readOnly=!!a},Xa.prototype.setUneditable=function(){},Xa.prototype.needsContentAttribute=!1;function b0(a,c){if(c=c?Cn(c):{},c.value=a.value,!c.tabindex&&a.tabIndex&&(c.tabindex=a.tabIndex),!c.placeholder&&a.placeholder&&(c.placeholder=a.placeholder),c.autofocus==null){var y=Xe();c.autofocus=y==a||a.getAttribute("autofocus")!=null&&y==document.body}function v(){a.value=be.getValue()}var w;if(a.form&&(Pt(a.form,"submit",v),!c.leaveSubmitMethodAlone)){var z=a.form;w=z.submit;try{var ie=z.submit=function(){v(),z.submit=w,z.submit(),z.submit=ie}}catch(ve){}}c.finishInit=function(ve){ve.save=v,ve.getTextArea=function(){return a},ve.toTextArea=function(){ve.toTextArea=isNaN,v(),a.parentNode.removeChild(ve.getWrapperElement()),a.style.display="",a.form&&(vn(a.form,"submit",v),!c.leaveSubmitMethodAlone&&typeof a.form.submit=="function"&&(a.form.submit=w))}},a.style.display="none";var be=ds(function(ve){return a.parentNode.insertBefore(ve,a.nextSibling)},c);return be}function md(a){a.off=vn,a.on=Pt,a.wheelEventPixels=yi,a.Doc=Pi,a.splitLines=Zi,a.countColumn=Ye,a.findColumn=hi,a.isWordChar=G,a.Pass=Kt,a.signal=We,a.Line=Xs,a.changeEnd=Ve,a.scrollbarModel=Zu,a.Pos=Zt,a.cmpPos=_n,a.modes=Ar,a.mimeModes=Yr,a.resolveMode=dr,a.getMode=Vi,a.modeExtensions=fi,a.extendMode=at,a.copyState=Fn,a.startState=ft,a.innerMode=Qn,a.commands=La,a.keyMap=ba,a.keyName=Pc,a.isModifierKey=Nu,a.lookupKey=Aa,a.normalizeKeyMap=Kl,a.StringStream=je,a.SharedTextMarker=lt,a.TextMarker=Z,a.LineWidget=S,a.e_preventDefault=Un,a.e_stopPropagation=kt,a.e_stop=Jn,a.addClass=$t,a.contains=dt,a.rmClass=Ae,a.keyNames=qo}g0(ds),ph(ds);var Qc="iter insert remove copy getEditor constructor".split(" ");for(var _d in Pi.prototype)Pi.prototype.hasOwnProperty(_d)&&H(Qc,_d)<0&&(ds.prototype[_d]=function(a){return function(){return a.apply(this.doc,arguments)}}(Pi.prototype[_d]));return $n(Pi),ds.inputStyles={textarea:Xa,contenteditable:Fs},ds.defineMode=function(a){!ds.defaults.mode&&a!="null"&&(ds.defaults.mode=a),Dr.apply(this,arguments)},ds.defineMIME=Hr,ds.defineMode("null",function(){return{token:function(a){return a.skipToEnd()}}}),ds.defineMIME("text/plain","null"),ds.defineExtension=function(a,c){ds.prototype[a]=c},ds.defineDocExtension=function(a,c){Pi.prototype[a]=c},ds.fromTextArea=b0,md(ds),ds.version="5.58.2",ds})},25419:function(J,C,d){(function(b){b(d(89780),d(15525),d(98101))})(function(b){"use strict";b.defineMode("markdown",function(I,L){var B=b.getMode(I,"text/html"),V=B.name=="null";function Q(Ye){if(b.findModeByName){var oe=b.findModeByName(Ye);oe&&(Ye=oe.mime||oe.mimes[0])}var H=b.getMode(I,Ye);return H.name=="null"?null:H}L.highlightFormatting===void 0&&(L.highlightFormatting=!1),L.maxBlockquoteDepth===void 0&&(L.maxBlockquoteDepth=0),L.taskLists===void 0&&(L.taskLists=!1),L.strikethrough===void 0&&(L.strikethrough=!1),L.emoji===void 0&&(L.emoji=!1),L.fencedCodeBlockHighlighting===void 0&&(L.fencedCodeBlockHighlighting=!0),L.fencedCodeBlockDefaultMode===void 0&&(L.fencedCodeBlockDefaultMode="text/plain"),L.xml===void 0&&(L.xml=!0),L.tokenTypeOverrides===void 0&&(L.tokenTypeOverrides={});var M={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 de in M)M.hasOwnProperty(de)&&L.tokenTypeOverrides[de]&&(M[de]=L.tokenTypeOverrides[de]);var he=/^([*\-_])(?:\s*\1){2,}\s*$/,re=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,De=/^\[(x| )\](?=\s)/i,ne=L.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,it=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ue=/^[^#!\[\]*_\\<>` "'(~:]+/,Ie=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,Pe=/^\s*\[[^\]]+?\]:.*$/,ze=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\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]/,Ee=" ";function fe(Ye,oe,H){return oe.f=oe.inline=H,H(Ye,oe)}function we(Ye,oe,H){return oe.f=oe.block=H,H(Ye,oe)}function pe(Ye){return!Ye||!/\S/.test(Ye.string)}function Ne(Ye){if(Ye.linkTitle=!1,Ye.linkHref=!1,Ye.linkText=!1,Ye.em=!1,Ye.strong=!1,Ye.strikethrough=!1,Ye.quote=0,Ye.indentedCode=!1,Ye.f==Ae){var oe=V;if(!oe){var H=b.innerMode(B,Ye.htmlState);oe=H.mode.name=="xml"&&H.state.tagStart===null&&!H.state.context&&H.state.tokenize.isInText}oe&&(Ye.f=Je,Ye.block=te,Ye.htmlState=null)}return Ye.trailingSpace=0,Ye.trailingSpaceNewLine=!1,Ye.prevLine=Ye.thisLine,Ye.thisLine={stream:null},null}function te(Ye,oe){var H=Ye.column()===oe.indentation,Ot=pe(oe.prevLine.stream),Kt=oe.indentedCode,vt=oe.prevLine.hr,hn=oe.list!==!1,Rt=(oe.listStack[oe.listStack.length-1]||0)+3;oe.indentedCode=!1;var hi=oe.indentation;if(oe.indentationDiff===null&&(oe.indentationDiff=oe.indentation,hn)){for(oe.list=null;hi<oe.listStack[oe.listStack.length-1];)oe.listStack.pop(),oe.listStack.length?oe.indentation=oe.listStack[oe.listStack.length-1]:oe.list=!1;oe.list!==!1&&(oe.indentationDiff=hi-oe.listStack[oe.listStack.length-1])}var yt=!Ot&&!vt&&!oe.prevLine.header&&(!hn||!Kt)&&!oe.prevLine.fencedCodeEnd,si=(oe.list===!1||vt||Ot)&&oe.indentation<=Rt&&Ye.match(he),qn=null;if(oe.indentationDiff>=4&&(Kt||oe.prevLine.fencedCodeEnd||oe.prevLine.header||Ot))return Ye.skipToEnd(),oe.indentedCode=!0,M.code;if(Ye.eatSpace())return null;if(H&&oe.indentation<=Rt&&(qn=Ye.match(ne))&&qn[1].length<=6)return oe.quote=0,oe.header=qn[1].length,oe.thisLine.header=!0,L.highlightFormatting&&(oe.formatting="header"),oe.f=oe.inline,$e(oe);if(oe.indentation<=Rt&&Ye.eat(">"))return oe.quote=H?1:oe.quote+1,L.highlightFormatting&&(oe.formatting="quote"),Ye.eatSpace(),$e(oe);if(!si&&!oe.setext&&H&&oe.indentation<=Rt&&(qn=Ye.match(re))){var ln=qn[1]?"ol":"ul";return oe.indentation=hi+Ye.current().length,oe.list=!0,oe.quote=0,oe.listStack.push(oe.indentation),oe.em=!1,oe.strong=!1,oe.code=!1,oe.strikethrough=!1,L.taskLists&&Ye.match(De,!1)&&(oe.taskList=!0),oe.f=oe.inline,L.highlightFormatting&&(oe.formatting=["list","list-"+ln]),$e(oe)}else{if(H&&oe.indentation<=Rt&&(qn=Ye.match(Ie,!0)))return oe.quote=0,oe.fencedEndRE=new RegExp(qn[1]+"+ *$"),oe.localMode=L.fencedCodeBlockHighlighting&&Q(qn[2]||L.fencedCodeBlockDefaultMode),oe.localMode&&(oe.localState=b.startState(oe.localMode)),oe.f=oe.block=Te,L.highlightFormatting&&(oe.formatting="code-block"),oe.code=-1,$e(oe);if(oe.setext||(!yt||!hn)&&!oe.quote&&oe.list===!1&&!oe.code&&!si&&!Pe.test(Ye.string)&&(qn=Ye.lookAhead(1))&&(qn=qn.match(it)))return oe.setext?(oe.header=oe.setext,oe.setext=0,Ye.skipToEnd(),L.highlightFormatting&&(oe.formatting="header")):(oe.header=qn[0].charAt(0)=="="?1:2,oe.setext=oe.header),oe.thisLine.header=!0,oe.f=oe.inline,$e(oe);if(si)return Ye.skipToEnd(),oe.hr=!0,oe.thisLine.hr=!0,M.hr;if(Ye.peek()==="[")return fe(Ye,oe,xt)}return fe(Ye,oe,oe.inline)}function Ae(Ye,oe){var H=B.token(Ye,oe.htmlState);if(!V){var Ot=b.innerMode(B,oe.htmlState);(Ot.mode.name=="xml"&&Ot.state.tagStart===null&&!Ot.state.context&&Ot.state.tokenize.isInText||oe.md_inside&&Ye.current().indexOf(">")>-1)&&(oe.f=Je,oe.block=te,oe.htmlState=null)}return H}function Te(Ye,oe){var H=oe.listStack[oe.listStack.length-1]||0,Ot=oe.indentation<H,Kt=H+3;if(oe.fencedEndRE&&oe.indentation<=Kt&&(Ot||Ye.match(oe.fencedEndRE))){L.highlightFormatting&&(oe.formatting="code-block");var vt;return Ot||(vt=$e(oe)),oe.localMode=oe.localState=null,oe.block=te,oe.f=Je,oe.fencedEndRE=null,oe.code=0,oe.thisLine.fencedCodeEnd=!0,Ot?we(Ye,oe,oe.block):vt}else return oe.localMode?oe.localMode.token(Ye,oe.localState):(Ye.skipToEnd(),M.code)}function $e(Ye){var oe=[];if(Ye.formatting){oe.push(M.formatting),typeof Ye.formatting=="string"&&(Ye.formatting=[Ye.formatting]);for(var H=0;H<Ye.formatting.length;H++)oe.push(M.formatting+"-"+Ye.formatting[H]),Ye.formatting[H]==="header"&&oe.push(M.formatting+"-"+Ye.formatting[H]+"-"+Ye.header),Ye.formatting[H]==="quote"&&(!L.maxBlockquoteDepth||L.maxBlockquoteDepth>=Ye.quote?oe.push(M.formatting+"-"+Ye.formatting[H]+"-"+Ye.quote):oe.push("error"))}if(Ye.taskOpen)return oe.push("meta"),oe.length?oe.join(" "):null;if(Ye.taskClosed)return oe.push("property"),oe.length?oe.join(" "):null;if(Ye.linkHref?oe.push(M.linkHref,"url"):(Ye.strong&&oe.push(M.strong),Ye.em&&oe.push(M.em),Ye.strikethrough&&oe.push(M.strikethrough),Ye.emoji&&oe.push(M.emoji),Ye.linkText&&oe.push(M.linkText),Ye.code&&oe.push(M.code),Ye.image&&oe.push(M.image),Ye.imageAltText&&oe.push(M.imageAltText,"link"),Ye.imageMarker&&oe.push(M.imageMarker)),Ye.header&&oe.push(M.header,M.header+"-"+Ye.header),Ye.quote&&(oe.push(M.quote),!L.maxBlockquoteDepth||L.maxBlockquoteDepth>=Ye.quote?oe.push(M.quote+"-"+Ye.quote):oe.push(M.quote+"-"+L.maxBlockquoteDepth)),Ye.list!==!1){var Ot=(Ye.listStack.length-1)%3;Ot?Ot===1?oe.push(M.list2):oe.push(M.list3):oe.push(M.list1)}return Ye.trailingSpaceNewLine?oe.push("trailing-space-new-line"):Ye.trailingSpace&&oe.push("trailing-space-"+(Ye.trailingSpace%2?"a":"b")),oe.length?oe.join(" "):null}function Qe(Ye,oe){if(Ye.match(Ue,!0))return $e(oe)}function Je(Ye,oe){var H=oe.text(Ye,oe);if(typeof H!="undefined")return H;if(oe.list)return oe.list=null,$e(oe);if(oe.taskList){var Ot=Ye.match(De,!0)[1]===" ";return Ot?oe.taskOpen=!0:oe.taskClosed=!0,L.highlightFormatting&&(oe.formatting="task"),oe.taskList=!1,$e(oe)}if(oe.taskOpen=!1,oe.taskClosed=!1,oe.header&&Ye.match(/^#+$/,!0))return L.highlightFormatting&&(oe.formatting="header"),$e(oe);var Kt=Ye.next();if(oe.linkTitle){oe.linkTitle=!1;var vt=Kt;Kt==="("&&(vt=")"),vt=(vt+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var hn="^\\s*(?:[^"+vt+"\\\\]+|\\\\\\\\|\\\\.)"+vt;if(Ye.match(new RegExp(hn),!0))return M.linkHref}if(Kt==="`"){var Rt=oe.formatting;L.highlightFormatting&&(oe.formatting="code"),Ye.eatWhile("`");var hi=Ye.current().length;if(oe.code==0&&(!oe.quote||hi==1))return oe.code=hi,$e(oe);if(hi==oe.code){var yt=$e(oe);return oe.code=0,yt}else return oe.formatting=Rt,$e(oe)}else if(oe.code)return $e(oe);if(Kt==="\\"&&(Ye.next(),L.highlightFormatting)){var si=$e(oe),qn=M.formatting+"-escape";return si?si+" "+qn:qn}if(Kt==="!"&&Ye.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return oe.imageMarker=!0,oe.image=!0,L.highlightFormatting&&(oe.formatting="image"),$e(oe);if(Kt==="["&&oe.imageMarker&&Ye.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return oe.imageMarker=!1,oe.imageAltText=!0,L.highlightFormatting&&(oe.formatting="image"),$e(oe);if(Kt==="]"&&oe.imageAltText){L.highlightFormatting&&(oe.formatting="image");var si=$e(oe);return oe.imageAltText=!1,oe.image=!1,oe.inline=oe.f=dt,si}if(Kt==="["&&!oe.image)return oe.linkText&&Ye.match(/^.*?\]/)||(oe.linkText=!0,L.highlightFormatting&&(oe.formatting="link")),$e(oe);if(Kt==="]"&&oe.linkText){L.highlightFormatting&&(oe.formatting="link");var si=$e(oe);return oe.linkText=!1,oe.inline=oe.f=Ye.match(/\(.*?\)| ?\[.*?\]/,!1)?dt:Je,si}if(Kt==="<"&&Ye.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){oe.f=oe.inline=Ce,L.highlightFormatting&&(oe.formatting="link");var si=$e(oe);return si?si+=" ":si="",si+M.linkInline}if(Kt==="<"&&Ye.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){oe.f=oe.inline=Ce,L.highlightFormatting&&(oe.formatting="link");var si=$e(oe);return si?si+=" ":si="",si+M.linkEmail}if(L.xml&&Kt==="<"&&Ye.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var ln=Ye.string.indexOf(">",Ye.pos);if(ln!=-1){var Tn=Ye.string.substring(Ye.start,ln);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Tn)&&(oe.md_inside=!0)}return Ye.backUp(1),oe.htmlState=b.startState(B),we(Ye,oe,Ae)}if(L.xml&&Kt==="<"&&Ye.match(/^\/\w*?>/))return oe.md_inside=!1,"tag";if(Kt==="*"||Kt==="_"){for(var xe=1,D=Ye.pos==1?" ":Ye.string.charAt(Ye.pos-2);xe<3&&Ye.eat(Kt);)xe++;var k=Ye.peek()||" ",G=!/\s/.test(k)&&(!ze.test(k)||/\s/.test(D)||ze.test(D)),X=!/\s/.test(D)&&(!ze.test(D)||/\s/.test(k)||ze.test(k)),T=null,Re=null;if(xe%2&&(!oe.em&&G&&(Kt==="*"||!X||ze.test(D))?T=!0:oe.em==Kt&&X&&(Kt==="*"||!G||ze.test(k))&&(T=!1)),xe>1&&(!oe.strong&&G&&(Kt==="*"||!X||ze.test(D))?Re=!0:oe.strong==Kt&&X&&(Kt==="*"||!G||ze.test(k))&&(Re=!1)),Re!=null||T!=null){L.highlightFormatting&&(oe.formatting=T==null?"strong":Re==null?"em":"strong em"),T===!0&&(oe.em=Kt),Re===!0&&(oe.strong=Kt);var yt=$e(oe);return T===!1&&(oe.em=!1),Re===!1&&(oe.strong=!1),yt}}else if(Kt===" "&&(Ye.eat("*")||Ye.eat("_"))){if(Ye.peek()===" ")return $e(oe);Ye.backUp(1)}if(L.strikethrough){if(Kt==="~"&&Ye.eatWhile(Kt)){if(oe.strikethrough){L.highlightFormatting&&(oe.formatting="strikethrough");var yt=$e(oe);return oe.strikethrough=!1,yt}else if(Ye.match(/^[^\s]/,!1))return oe.strikethrough=!0,L.highlightFormatting&&(oe.formatting="strikethrough"),$e(oe)}else if(Kt===" "&&Ye.match(/^~~/,!0)){if(Ye.peek()===" ")return $e(oe);Ye.backUp(2)}}if(L.emoji&&Kt===":"&&Ye.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){oe.emoji=!0,L.highlightFormatting&&(oe.formatting="emoji");var mt=$e(oe);return oe.emoji=!1,mt}return Kt===" "&&(Ye.match(/^ +$/,!1)?oe.trailingSpace++:oe.trailingSpace&&(oe.trailingSpaceNewLine=!0)),$e(oe)}function Ce(Ye,oe){var H=Ye.next();if(H===">"){oe.f=oe.inline=Je,L.highlightFormatting&&(oe.formatting="link");var Ot=$e(oe);return Ot?Ot+=" ":Ot="",Ot+M.linkInline}return Ye.match(/^[^>]+/,!0),M.linkInline}function dt(Ye,oe){if(Ye.eatSpace())return null;var H=Ye.next();return H==="("||H==="["?(oe.f=oe.inline=$t(H==="("?")":"]"),L.highlightFormatting&&(oe.formatting="link-string"),oe.linkHref=!0,$e(oe)):"error"}var Xe={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function $t(Ye){return function(oe,H){var Ot=oe.next();if(Ot===Ye){H.f=H.inline=Je,L.highlightFormatting&&(H.formatting="link-string");var Kt=$e(H);return H.linkHref=!1,Kt}return oe.match(Xe[Ye]),H.linkHref=!0,$e(H)}}function xt(Ye,oe){return Ye.match(/^([^\]\\]|\\.)*\]:/,!1)?(oe.f=At,Ye.next(),L.highlightFormatting&&(oe.formatting="link"),oe.linkText=!0,$e(oe)):fe(Ye,oe,Je)}function At(Ye,oe){if(Ye.match(/^\]:/,!0)){oe.f=oe.inline=St,L.highlightFormatting&&(oe.formatting="link");var H=$e(oe);return oe.linkText=!1,H}return Ye.match(/^([^\]\\]|\\.)+/,!0),M.linkText}function St(Ye,oe){return Ye.eatSpace()?null:(Ye.match(/^[^\s]+/,!0),Ye.peek()===void 0?oe.linkTitle=!0:Ye.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),oe.f=oe.inline=Je,M.linkHref+" url")}var Cn={startState:function(){return{f:te,prevLine:{stream:null},thisLine:{stream:null},block:te,htmlState:null,indentation:0,inline:Je,text:Qe,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(Ye){return{f:Ye.f,prevLine:Ye.prevLine,thisLine:Ye.thisLine,block:Ye.block,htmlState:Ye.htmlState&&b.copyState(B,Ye.htmlState),indentation:Ye.indentation,localMode:Ye.localMode,localState:Ye.localMode?b.copyState(Ye.localMode,Ye.localState):null,inline:Ye.inline,text:Ye.text,formatting:!1,linkText:Ye.linkText,linkTitle:Ye.linkTitle,linkHref:Ye.linkHref,code:Ye.code,em:Ye.em,strong:Ye.strong,strikethrough:Ye.strikethrough,emoji:Ye.emoji,header:Ye.header,setext:Ye.setext,hr:Ye.hr,taskList:Ye.taskList,list:Ye.list,listStack:Ye.listStack.slice(0),quote:Ye.quote,indentedCode:Ye.indentedCode,trailingSpace:Ye.trailingSpace,trailingSpaceNewLine:Ye.trailingSpaceNewLine,md_inside:Ye.md_inside,fencedEndRE:Ye.fencedEndRE}},token:function(Ye,oe){if(oe.formatting=!1,Ye!=oe.thisLine.stream){if(oe.header=0,oe.hr=!1,Ye.match(/^\s*$/,!0))return Ne(oe),null;if(oe.prevLine=oe.thisLine,oe.thisLine={stream:Ye},oe.taskList=!1,oe.trailingSpace=0,oe.trailingSpaceNewLine=!1,!oe.localState&&(oe.f=oe.block,oe.f!=Ae)){var H=Ye.match(/^\s*/,!0)[0].replace(/\t/g,Ee).length;if(oe.indentation=H,oe.indentationDiff=null,H>0)return null}}return oe.f(Ye,oe)},innerMode:function(Ye){return Ye.block==Ae?{state:Ye.htmlState,mode:B}:Ye.localState?{state:Ye.localState,mode:Ye.localMode}:{state:Ye,mode:Cn}},indent:function(Ye,oe,H){return Ye.block==Ae&&B.indent?B.indent(Ye.htmlState,oe,H):Ye.localState&&Ye.localMode.indent?Ye.localMode.indent(Ye.localState,oe,H):b.Pass},blankLine:Ne,getType:$e,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return Cn},"xml"),b.defineMIME("text/markdown","markdown"),b.defineMIME("text/x-markdown","markdown")})},98101:function(J,C,d){(function(b){b(d(89780))})(function(b){"use strict";b.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 I=0;I<b.modeInfo.length;I++){var L=b.modeInfo[I];L.mimes&&(L.mime=L.mimes[0])}b.findModeByMIME=function(B){B=B.toLowerCase();for(var V=0;V<b.modeInfo.length;V++){var Q=b.modeInfo[V];if(Q.mime==B)return Q;if(Q.mimes){for(var M=0;M<Q.mimes.length;M++)if(Q.mimes[M]==B)return Q}}if(/\+xml$/.test(B))return b.findModeByMIME("application/xml");if(/\+json$/.test(B))return b.findModeByMIME("application/json")},b.findModeByExtension=function(B){B=B.toLowerCase();for(var V=0;V<b.modeInfo.length;V++){var Q=b.modeInfo[V];if(Q.ext){for(var M=0;M<Q.ext.length;M++)if(Q.ext[M]==B)return Q}}},b.findModeByFileName=function(B){for(var V=0;V<b.modeInfo.length;V++){var Q=b.modeInfo[V];if(Q.file&&Q.file.test(B))return Q}var M=B.lastIndexOf("."),de=M>-1&&B.substring(M+1,B.length);if(de)return b.findModeByExtension(de)},b.findModeByName=function(B){B=B.toLowerCase();for(var V=0;V<b.modeInfo.length;V++){var Q=b.modeInfo[V];if(Q.name.toLowerCase()==B)return Q;if(Q.alias){for(var M=0;M<Q.alias.length;M++)if(Q.alias[M].toLowerCase()==B)return Q}}}})},67549:function(J,C,d){(function(b){b(d(89780))})(function(b){"use strict";b.defineMode("stex",function(I,L){"use strict";function B(Ue,Ie){Ue.cmdState.push(Ie)}function V(Ue){return Ue.cmdState.length>0?Ue.cmdState[Ue.cmdState.length-1]:null}function Q(Ue){var Ie=Ue.cmdState.pop();Ie&&Ie.closeBracket()}function M(Ue){for(var Ie=Ue.cmdState,Pe=Ie.length-1;Pe>=0;Pe--){var ze=Ie[Pe];if(ze.name!="DEFAULT")return ze}return{styleIdentifier:function(){return null}}}function de(Ue,Ie,Pe){return function(){this.name=Ue,this.bracketNo=0,this.style=Ie,this.styles=Pe,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var he={};he.importmodule=de("importmodule","tag",["string","builtin"]),he.documentclass=de("documentclass","tag",["","atom"]),he.usepackage=de("usepackage","tag",["atom"]),he.begin=de("begin","tag",["atom"]),he.end=de("end","tag",["atom"]),he.label=de("label","tag",["atom"]),he.ref=de("ref","tag",["atom"]),he.eqref=de("eqref","tag",["atom"]),he.cite=de("cite","tag",["atom"]),he.bibitem=de("bibitem","tag",["atom"]),he.Bibitem=de("Bibitem","tag",["atom"]),he.RBibitem=de("RBibitem","tag",["atom"]),he.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function re(Ue,Ie){Ue.f=Ie}function De(Ue,Ie){var Pe;if(Ue.match(/^\\[a-zA-Z@]+/)){var ze=Ue.current().slice(1);return Pe=he.hasOwnProperty(ze)?he[ze]:he.DEFAULT,Pe=new Pe,B(Ie,Pe),re(Ie,it),Pe.style}if(Ue.match(/^\\[$&%#{}_]/)||Ue.match(/^\\[,;!\/\\]/))return"tag";if(Ue.match("\\["))return re(Ie,function(fe,we){return ne(fe,we,"\\]")}),"keyword";if(Ue.match("\\("))return re(Ie,function(fe,we){return ne(fe,we,"\\)")}),"keyword";if(Ue.match("$$"))return re(Ie,function(fe,we){return ne(fe,we,"$$")}),"keyword";if(Ue.match("$"))return re(Ie,function(fe,we){return ne(fe,we,"$")}),"keyword";var Ee=Ue.next();if(Ee=="%")return Ue.skipToEnd(),"comment";if(Ee=="}"||Ee=="]"){if(Pe=V(Ie),Pe)Pe.closeBracket(Ee),re(Ie,it);else return"error";return"bracket"}else return Ee=="{"||Ee=="["?(Pe=he.DEFAULT,Pe=new Pe,B(Ie,Pe),"bracket"):/\d/.test(Ee)?(Ue.eatWhile(/[\w.%]/),"atom"):(Ue.eatWhile(/[\w\-_]/),Pe=M(Ie),Pe.name=="begin"&&(Pe.argument=Ue.current()),Pe.styleIdentifier())}function ne(Ue,Ie,Pe){if(Ue.eatSpace())return null;if(Pe&&Ue.match(Pe))return re(Ie,De),"keyword";if(Ue.match(/^\\[a-zA-Z@]+/))return"tag";if(Ue.match(/^[a-zA-Z]+/))return"variable-2";if(Ue.match(/^\\[$&%#{}_]/)||Ue.match(/^\\[,;!\/]/)||Ue.match(/^[\^_&]/))return"tag";if(Ue.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ue.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var ze=Ue.next();return ze=="{"||ze=="}"||ze=="["||ze=="]"||ze=="("||ze==")"?"bracket":ze=="%"?(Ue.skipToEnd(),"comment"):"error"}function it(Ue,Ie){var Pe=Ue.peek(),ze;return Pe=="{"||Pe=="["?(ze=V(Ie),ze.openBracket(Pe),Ue.eat(Pe),re(Ie,De),"bracket"):/[ \t\r]/.test(Pe)?(Ue.eat(Pe),null):(re(Ie,De),Q(Ie),De(Ue,Ie))}return{startState:function(){var Ue=L.inMathMode?function(Ie,Pe){return ne(Ie,Pe)}:De;return{cmdState:[],f:Ue}},copyState:function(Ue){return{cmdState:Ue.cmdState.slice(),f:Ue.f}},token:function(Ue,Ie){return Ie.f(Ue,Ie)},blankLine:function(Ue){Ue.f=De,Ue.cmdState.length=0},lineComment:"%"}}),b.defineMIME("text/x-stex","stex"),b.defineMIME("text/x-latex","stex")})},15525:function(J,C,d){(function(b){b(d(89780))})(function(b){"use strict";var I={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},L={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};b.defineMode("xml",function(B,V){var Q=B.indentUnit,M={},de=V.htmlMode?I:L;for(var he in de)M[he]=de[he];for(var he in V)M[he]=V[he];var re,De;function ne(Ce,dt){function Xe(At){return dt.tokenize=At,At(Ce,dt)}var $t=Ce.next();if($t=="<")return Ce.eat("!")?Ce.eat("[")?Ce.match("CDATA[")?Xe(Ie("atom","]]>")):null:Ce.match("--")?Xe(Ie("comment","-->")):Ce.match("DOCTYPE",!0,!0)?(Ce.eatWhile(/[\w\._\-]/),Xe(Pe(1))):null:Ce.eat("?")?(Ce.eatWhile(/[\w\._\-]/),dt.tokenize=Ie("meta","?>"),"meta"):(re=Ce.eat("/")?"closeTag":"openTag",dt.tokenize=it,"tag bracket");if($t=="&"){var xt;return Ce.eat("#")?Ce.eat("x")?xt=Ce.eatWhile(/[a-fA-F\d]/)&&Ce.eat(";"):xt=Ce.eatWhile(/[\d]/)&&Ce.eat(";"):xt=Ce.eatWhile(/[\w\.\-:]/)&&Ce.eat(";"),xt?"atom":"error"}else return Ce.eatWhile(/[^&<]/),null}ne.isInText=!0;function it(Ce,dt){var Xe=Ce.next();if(Xe==">"||Xe=="/"&&Ce.eat(">"))return dt.tokenize=ne,re=Xe==">"?"endTag":"selfcloseTag","tag bracket";if(Xe=="=")return re="equals",null;if(Xe=="<"){dt.tokenize=ne,dt.state=we,dt.tagName=dt.tagStart=null;var $t=dt.tokenize(Ce,dt);return $t?$t+" tag error":"tag error"}else return/[\'\"]/.test(Xe)?(dt.tokenize=Ue(Xe),dt.stringStartCol=Ce.column(),dt.tokenize(Ce,dt)):(Ce.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ue(Ce){var dt=function(Xe,$t){for(;!Xe.eol();)if(Xe.next()==Ce){$t.tokenize=it;break}return"string"};return dt.isInAttribute=!0,dt}function Ie(Ce,dt){return function(Xe,$t){for(;!Xe.eol();){if(Xe.match(dt)){$t.tokenize=ne;break}Xe.next()}return Ce}}function Pe(Ce){return function(dt,Xe){for(var $t;($t=dt.next())!=null;){if($t=="<")return Xe.tokenize=Pe(Ce+1),Xe.tokenize(dt,Xe);if($t==">")if(Ce==1){Xe.tokenize=ne;break}else return Xe.tokenize=Pe(Ce-1),Xe.tokenize(dt,Xe)}return"meta"}}function ze(Ce,dt,Xe){this.prev=Ce.context,this.tagName=dt,this.indent=Ce.indented,this.startOfLine=Xe,(M.doNotIndent.hasOwnProperty(dt)||Ce.context&&Ce.context.noIndent)&&(this.noIndent=!0)}function Ee(Ce){Ce.context&&(Ce.context=Ce.context.prev)}function fe(Ce,dt){for(var Xe;;){if(!Ce.context||(Xe=Ce.context.tagName,!M.contextGrabbers.hasOwnProperty(Xe)||!M.contextGrabbers[Xe].hasOwnProperty(dt)))return;Ee(Ce)}}function we(Ce,dt,Xe){return Ce=="openTag"?(Xe.tagStart=dt.column(),pe):Ce=="closeTag"?Ne:we}function pe(Ce,dt,Xe){return Ce=="word"?(Xe.tagName=dt.current(),De="tag",Te):M.allowMissingTagName&&Ce=="endTag"?(De="tag bracket",Te(Ce,dt,Xe)):(De="error",pe)}function Ne(Ce,dt,Xe){if(Ce=="word"){var $t=dt.current();return Xe.context&&Xe.context.tagName!=$t&&M.implicitlyClosed.hasOwnProperty(Xe.context.tagName)&&Ee(Xe),Xe.context&&Xe.context.tagName==$t||M.matchClosing===!1?(De="tag",te):(De="tag error",Ae)}else return M.allowMissingTagName&&Ce=="endTag"?(De="tag bracket",te(Ce,dt,Xe)):(De="error",Ae)}function te(Ce,dt,Xe){return Ce!="endTag"?(De="error",te):(Ee(Xe),we)}function Ae(Ce,dt,Xe){return De="error",te(Ce,dt,Xe)}function Te(Ce,dt,Xe){if(Ce=="word")return De="attribute",$e;if(Ce=="endTag"||Ce=="selfcloseTag"){var $t=Xe.tagName,xt=Xe.tagStart;return Xe.tagName=Xe.tagStart=null,Ce=="selfcloseTag"||M.autoSelfClosers.hasOwnProperty($t)?fe(Xe,$t):(fe(Xe,$t),Xe.context=new ze(Xe,$t,xt==Xe.indented)),we}return De="error",Te}function $e(Ce,dt,Xe){return Ce=="equals"?Qe:(M.allowMissing||(De="error"),Te(Ce,dt,Xe))}function Qe(Ce,dt,Xe){return Ce=="string"?Je:Ce=="word"&&M.allowUnquoted?(De="string",Te):(De="error",Te(Ce,dt,Xe))}function Je(Ce,dt,Xe){return Ce=="string"?Je:Te(Ce,dt,Xe)}return{startState:function(Ce){var dt={tokenize:ne,state:we,indented:Ce||0,tagName:null,tagStart:null,context:null};return Ce!=null&&(dt.baseIndent=Ce),dt},token:function(Ce,dt){if(!dt.tagName&&Ce.sol()&&(dt.indented=Ce.indentation()),Ce.eatSpace())return null;re=null;var Xe=dt.tokenize(Ce,dt);return(Xe||re)&&Xe!="comment"&&(De=null,dt.state=dt.state(re||Xe,Ce,dt),De&&(Xe=De=="error"?Xe+" error":De)),Xe},indent:function(Ce,dt,Xe){var $t=Ce.context;if(Ce.tokenize.isInAttribute)return Ce.tagStart==Ce.indented?Ce.stringStartCol+1:Ce.indented+Q;if($t&&$t.noIndent)return b.Pass;if(Ce.tokenize!=it&&Ce.tokenize!=ne)return Xe?Xe.match(/^(\s*)/)[0].length:0;if(Ce.tagName)return M.multilineTagIndentPastTag!==!1?Ce.tagStart+Ce.tagName.length+2:Ce.tagStart+Q*(M.multilineTagIndentFactor||1);if(M.alignCDATA&&/<!\[CDATA\[/.test(dt))return 0;var xt=dt&&/^<(\/)?([\w_:\.-]*)/.exec(dt);if(xt&&xt[1])for(;$t;)if($t.tagName==xt[2]){$t=$t.prev;break}else if(M.implicitlyClosed.hasOwnProperty($t.tagName))$t=$t.prev;else break;else if(xt)for(;$t;){var At=M.contextGrabbers[$t.tagName];if(At&&At.hasOwnProperty(xt[2]))$t=$t.prev;else break}for(;$t&&$t.prev&&!$t.startOfLine;)$t=$t.prev;return $t?$t.indent+Q:Ce.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:M.htmlMode?"html":"xml",helperType:M.htmlMode?"html":"xml",skipAttribute:function(Ce){Ce.state==Qe&&(Ce.state=Te)},xmlCurrentTag:function(Ce){return Ce.tagName?{name:Ce.tagName,close:Ce.type=="closeTag"}:null},xmlCurrentContext:function(Ce){for(var dt=[],Xe=Ce.context;Xe;Xe=Xe.prev)Xe.tagName&&dt.push(Xe.tagName);return dt.reverse()}}}),b.defineMIME("text/xml","xml"),b.defineMIME("application/xml","xml"),b.mimeModes.hasOwnProperty("text/html")||b.defineMIME("text/html",{name:"xml",htmlMode:!0})})},58951:function(J,C){"use strict";var d;C.Q=B,d=V;var b=",",I=" ",L="";function B(Q){for(var M=[],de=String(Q||L),he=de.indexOf(b),re=0,De=!1,ne;!De;)he===-1&&(he=de.length,De=!0),ne=de.slice(re,he).trim(),(ne||!De)&&M.push(ne),re=he+1,he=de.indexOf(b,re);return M}function V(Q,M){var de=M||{},he=de.padLeft===!1?L:I,re=de.padRight?I:L;return Q[Q.length-1]===L&&(Q=Q.concat(L)),Q.join(re+b+he).trim()}},86204:function(J){"use strict";var C=typeof Reflect=="object"?Reflect:null,d=C&&typeof C.apply=="function"?C.apply:function(we,pe,Ne){return Function.prototype.apply.call(we,pe,Ne)},b;C&&typeof C.ownKeys=="function"?b=C.ownKeys:Object.getOwnPropertySymbols?b=function(we){return Object.getOwnPropertyNames(we).concat(Object.getOwnPropertySymbols(we))}:b=function(we){return Object.getOwnPropertyNames(we)};function I(fe){console&&console.warn&&console.warn(fe)}var L=Number.isNaN||function(we){return we!==we};function B(){B.init.call(this)}J.exports=B,J.exports.once=Pe,B.EventEmitter=B,B.prototype._events=void 0,B.prototype._eventsCount=0,B.prototype._maxListeners=void 0;var V=10;function Q(fe){if(typeof fe!="function")throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof fe)}Object.defineProperty(B,"defaultMaxListeners",{enumerable:!0,get:function(){return V},set:function(fe){if(typeof fe!="number"||fe<0||L(fe))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+fe+".");V=fe}}),B.init=function(){(this._events===void 0||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},B.prototype.setMaxListeners=function(we){if(typeof we!="number"||we<0||L(we))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+we+".");return this._maxListeners=we,this};function M(fe){return fe._maxListeners===void 0?B.defaultMaxListeners:fe._maxListeners}B.prototype.getMaxListeners=function(){return M(this)},B.prototype.emit=function(we){for(var pe=[],Ne=1;Ne<arguments.length;Ne++)pe.push(arguments[Ne]);var te=we==="error",Ae=this._events;if(Ae!==void 0)te=te&&Ae.error===void 0;else if(!te)return!1;if(te){var Te;if(pe.length>0&&(Te=pe[0]),Te instanceof Error)throw Te;var $e=new Error("Unhandled error."+(Te?" ("+Te.message+")":""));throw $e.context=Te,$e}var Qe=Ae[we];if(Qe===void 0)return!1;if(typeof Qe=="function")d(Qe,this,pe);else for(var Je=Qe.length,Ce=it(Qe,Je),Ne=0;Ne<Je;++Ne)d(Ce[Ne],this,pe);return!0};function de(fe,we,pe,Ne){var te,Ae,Te;if(Q(pe),Ae=fe._events,Ae===void 0?(Ae=fe._events=Object.create(null),fe._eventsCount=0):(Ae.newListener!==void 0&&(fe.emit("newListener",we,pe.listener?pe.listener:pe),Ae=fe._events),Te=Ae[we]),Te===void 0)Te=Ae[we]=pe,++fe._eventsCount;else if(typeof Te=="function"?Te=Ae[we]=Ne?[pe,Te]:[Te,pe]:Ne?Te.unshift(pe):Te.push(pe),te=M(fe),te>0&&Te.length>te&&!Te.warned){Te.warned=!0;var $e=new Error("Possible EventEmitter memory leak detected. "+Te.length+" "+String(we)+" listeners added. Use emitter.setMaxListeners() to increase limit");$e.name="MaxListenersExceededWarning",$e.emitter=fe,$e.type=we,$e.count=Te.length,I($e)}return fe}B.prototype.addListener=function(we,pe){return de(this,we,pe,!1)},B.prototype.on=B.prototype.addListener,B.prototype.prependListener=function(we,pe){return de(this,we,pe,!0)};function he(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,arguments.length===0?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function re(fe,we,pe){var Ne={fired:!1,wrapFn:void 0,target:fe,type:we,listener:pe},te=he.bind(Ne);return te.listener=pe,Ne.wrapFn=te,te}B.prototype.once=function(we,pe){return Q(pe),this.on(we,re(this,we,pe)),this},B.prototype.prependOnceListener=function(we,pe){return Q(pe),this.prependListener(we,re(this,we,pe)),this},B.prototype.removeListener=function(we,pe){var Ne,te,Ae,Te,$e;if(Q(pe),te=this._events,te===void 0)return this;if(Ne=te[we],Ne===void 0)return this;if(Ne===pe||Ne.listener===pe)--this._eventsCount===0?this._events=Object.create(null):(delete te[we],te.removeListener&&this.emit("removeListener",we,Ne.listener||pe));else if(typeof Ne!="function"){for(Ae=-1,Te=Ne.length-1;Te>=0;Te--)if(Ne[Te]===pe||Ne[Te].listener===pe){$e=Ne[Te].listener,Ae=Te;break}if(Ae<0)return this;Ae===0?Ne.shift():Ue(Ne,Ae),Ne.length===1&&(te[we]=Ne[0]),te.removeListener!==void 0&&this.emit("removeListener",we,$e||pe)}return this},B.prototype.off=B.prototype.removeListener,B.prototype.removeAllListeners=function(we){var pe,Ne,te;if(Ne=this._events,Ne===void 0)return this;if(Ne.removeListener===void 0)return arguments.length===0?(this._events=Object.create(null),this._eventsCount=0):Ne[we]!==void 0&&(--this._eventsCount===0?this._events=Object.create(null):delete Ne[we]),this;if(arguments.length===0){var Ae=Object.keys(Ne),Te;for(te=0;te<Ae.length;++te)Te=Ae[te],Te!=="removeListener"&&this.removeAllListeners(Te);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if(pe=Ne[we],typeof pe=="function")this.removeListener(we,pe);else if(pe!==void 0)for(te=pe.length-1;te>=0;te--)this.removeListener(we,pe[te]);return this};function De(fe,we,pe){var Ne=fe._events;if(Ne===void 0)return[];var te=Ne[we];return te===void 0?[]:typeof te=="function"?pe?[te.listener||te]:[te]:pe?Ie(te):it(te,te.length)}B.prototype.listeners=function(we){return De(this,we,!0)},B.prototype.rawListeners=function(we){return De(this,we,!1)},B.listenerCount=function(fe,we){return typeof fe.listenerCount=="function"?fe.listenerCount(we):ne.call(fe,we)},B.prototype.listenerCount=ne;function ne(fe){var we=this._events;if(we!==void 0){var pe=we[fe];if(typeof pe=="function")return 1;if(pe!==void 0)return pe.length}return 0}B.prototype.eventNames=function(){return this._eventsCount>0?b(this._events):[]};function it(fe,we){for(var pe=new Array(we),Ne=0;Ne<we;++Ne)pe[Ne]=fe[Ne];return pe}function Ue(fe,we){for(;we+1<fe.length;we++)fe[we]=fe[we+1];fe.pop()}function Ie(fe){for(var we=new Array(fe.length),pe=0;pe<we.length;++pe)we[pe]=fe[pe].listener||fe[pe];return we}function Pe(fe,we){return new Promise(function(pe,Ne){function te(Te){fe.removeListener(we,Ae),Ne(Te)}function Ae(){typeof fe.removeListener=="function"&&fe.removeListener("error",te),pe([].slice.call(arguments))}Ee(fe,we,Ae,{once:!0}),we!=="error"&&ze(fe,te,{once:!0})})}function ze(fe,we,pe){typeof fe.on=="function"&&Ee(fe,"error",we,pe)}function Ee(fe,we,pe,Ne){if(typeof fe.on=="function")Ne.once?fe.once(we,pe):fe.on(we,pe);else if(typeof fe.addEventListener=="function")fe.addEventListener(we,function te(Ae){Ne.once&&fe.removeEventListener(we,te),pe(Ae)});else throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof fe)}},58847:function(J){"use strict";var C=Object.prototype.hasOwnProperty,d=Object.prototype.toString,b=Object.defineProperty,I=Object.getOwnPropertyDescriptor,L=function(de){return typeof Array.isArray=="function"?Array.isArray(de):d.call(de)==="[object Array]"},B=function(de){if(!de||d.call(de)!=="[object Object]")return!1;var he=C.call(de,"constructor"),re=de.constructor&&de.constructor.prototype&&C.call(de.constructor.prototype,"isPrototypeOf");if(de.constructor&&!he&&!re)return!1;var De;for(De in de);return typeof De=="undefined"||C.call(de,De)},V=function(de,he){b&&he.name==="__proto__"?b(de,he.name,{enumerable:!0,configurable:!0,value:he.newValue,writable:!0}):de[he.name]=he.newValue},Q=function(de,he){if(he==="__proto__")if(C.call(de,he)){if(I)return I(de,he).value}else return;return de[he]};J.exports=function M(){var de,he,re,De,ne,it,Ue=arguments[0],Ie=1,Pe=arguments.length,ze=!1;for(typeof Ue=="boolean"&&(ze=Ue,Ue=arguments[1]||{},Ie=2),(Ue==null||typeof Ue!="object"&&typeof Ue!="function")&&(Ue={});Ie<Pe;++Ie)if(de=arguments[Ie],de!=null)for(he in de)re=Q(Ue,he),De=Q(de,he),Ue!==De&&(ze&&De&&(B(De)||(ne=L(De)))?(ne?(ne=!1,it=re&&L(re)?re:[]):it=re&&B(re)?re:{},V(Ue,{name:he,newValue:M(ze,it,De)})):typeof De!="undefined"&&V(Ue,{name:he,newValue:De}));return Ue}},12378:function(J,C,d){"use strict";d.d(C,{$u:function(){return he},BD:function(){return xe},E9:function(){return de},FF:function(){return tr},FJ:function(){return we},Hn:function(){return fe},KX:function(){return Ne},NB:function(){return ct},S0:function(){return qn},UL:function(){return re},Vk:function(){return Ee},Vm:function(){return Ze},YI:function(){return ln},ZA:function(){return L},Zt:function(){return De},al:function(){return T},bn:function(){return X},bx:function(){return D},g2:function(){return Tn},h1:function(){return Qe},hD:function(){return $n},l4:function(){return Q},rU:function(){return ot},s_:function(){return k},uz:function(){return Le},z6:function(){return ne}}),J=d.hmd(J),function(){var _;function ht(e){var t=0;return function(){return t<e.length?{done:!1,value:e[t++]}:{done:!0}}}function _i(e){var t=typeof Symbol!="undefined"&&Symbol.iterator&&e[Symbol.iterator];return t?t.call(e):{next:ht(e)}}function Rr(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}var Ar=typeof Object.create=="function"?Object.create:function(e){function t(){}return t.prototype=e,new t},Yr;if(typeof Object.setPrototypeOf=="function")Yr=Object.setPrototypeOf;else{var Dr;e:{var Hr={a:!0},dr={};try{dr.__proto__=Hr,Dr=dr.a;break e}catch(e){}Dr=!1}Yr=Dr?function(e,t){if(e.__proto__=t,e.__proto__!==t)throw new TypeError(e+" is not extensible");return e}:null}var Vi=Yr;function fi(e,t){if(e.prototype=Ar(t.prototype),e.prototype.constructor=e,Vi)Vi(e,t);else for(var n in t)if(n!="prototype")if(Object.defineProperties){var i=Object.getOwnPropertyDescriptor(t,n);i&&Object.defineProperty(e,n,i)}else e[n]=t[n];e.QA=t.prototype}var at=typeof d.g!="undefined"&&d.g!=null?d.g:self,Fn=typeof Object.assign=="function"?Object.assign:function(e,t){for(var n=1;n<arguments.length;n++){var i=arguments[n];if(i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},Qn=typeof Object.defineProperties=="function"?Object.defineProperty:function(e,t,n){e!=Array.prototype&&e!=Object.prototype&&(e[t]=n.value)};function ft(e,t){if(t){var n=at;e=e.split(".");for(var i=0;i<e.length-1;i++){var r=e[i];r in n||(n[r]={}),n=n[r]}e=e[e.length-1],i=n[e],t=t(i),t!=i&&t!=null&&Qn(n,e,{writable:!0,value:t})}}ft("Object.assign",function(e){return e||Fn}),ft("Array.prototype.fill",function(e){return e||function(t,n,i){var r=this.length||0;for(0>n&&(n=Math.max(0,r+n)),(i==null||i>r)&&(i=r),i=Number(i),0>i&&(i=Math.max(0,r+i)),n=Number(n||0);n<i;n++)this[n]=t;return this}});var je=typeof globalThis=="object"&&globalThis||typeof d.g=="object"&&d.g.global===d.g&&d.g||typeof self=="object"&&self.self===self&&self||{};je.requestAnimationFrame===void 0&&(je.setImmediate===void 0?je.requestAnimationFrame=function(e){je.setTimeout(e,0)}:je.requestAnimationFrame=je.setImmediate);function sn(){}function In(e,t){var n=-1;return function(){var i=this,r=arguments;n!==-1&&je.clearTimeout(n),n=ni(function(){n=-1,e.apply(i,r)},t)}}function ni(e,t){return je.setTimeout(e,t)}function Kn(e){return je.document.createElement(e)}function ut(e){throw Error(e)}function yn(e,t){e="The object is frozen, so its properties cannot be set: "+e.toString(),t!==void 0&&(e+=" to value: "+t),ut(e)}function rn(e,t,n,i){n=n===null?"*":typeof n=="string"?n:typeof n=="function"&&typeof n.className=="string"?n.className:"",i!==void 0&&(n+="."+i),ut(n+" is not in the range "+t+": "+e)}function Si(e){je.console&&je.console.log(e)}function Zt(e){return typeof e=="object"&&e!==null}function _n(e){return Array.isArray(e)||je.NodeList&&e instanceof je.NodeList||je.HTMLCollection&&e instanceof je.HTMLCollection}function Mt(e){return Array.prototype.slice.call(e)}function Jt(e,t,n){Array.isArray(e)?t>=e.length?e.push(n):e.splice(t,0,n):ut("Cannot insert an object into an HTMLCollection or NodeList: "+n+" at "+t)}function on(e,t){Array.isArray(e)?t>=e.length?e.pop():e.splice(t,1):ut("Cannot remove an object from an HTMLCollection or NodeList at "+t)}function jt(){var e=lr.pop();return e===void 0?[]:e}function gn(e){e.length=0,lr.push(e)}function fn(e){if(typeof e=="function"){if(e.className)return e.className;if(e.name)return e.name;var t=e.toString();if(t=t.substring(9,t.indexOf("(")).trim(),t!=="")return e._className=t}else if(Zt(e)&&e.constructor)return fn(e.constructor);return typeof e}function En(e){var t=e;return Zt(e)&&(e.text?t=e.text:e.name?t=e.name:e.key!==void 0?t=e.key:e.id!==void 0?t=e.id:e.constructor===Object&&(e.Text?t=e.Text:e.Name?t=e.Name:e.Key!==void 0?t=e.Key:e.Id!==void 0?t=e.Id:e.ID!==void 0&&(t=e.ID))),t===void 0?"undefined":t===null?"null":t.toString()}function Ln(e,t){if(e.hasOwnProperty(t))return!0;for(e=Object.getPrototypeOf(e);e&&e!==Function;){if(e.hasOwnProperty(t))return!0;var n=e.CA;if(n&&n[t])return!0;e=Object.getPrototypeOf(e)}return!1}function Ai(e,t,n){Object.defineProperty(ao.prototype,e,{get:t,set:n})}function zn(e){for(var t=[],n=0;256>n;n++)t["0123456789abcdef".charAt(n>>4)+"0123456789abcdef".charAt(n&15)]=String.fromCharCode(n);e.length%2&&(e="0"+e),n=[];for(var i=0,r=0;r<e.length;r+=2)n[i++]=t[e.substr(r,2)];for(e=n.join(""),e=e===""?"0":e,t=[],n=0;256>n;n++)t[n]=n;for(n=i=0;256>n;n++)i=(i+t[n]+119)%256,r=t[n],t[n]=t[i],t[i]=r;i=n=0;for(var o="",s=0;s<e.length;s++)n=(n+1)%256,i=(i+t[n])%256,r=t[n],t[n]=t[i],t[i]=r,o+=String.fromCharCode(e.charCodeAt(s)^t[(t[n]+t[i])%256]);return o.indexOf("GoJS 2.1 evaluation")>-1||o.indexOf("\xA9 1998-2021 Northwoods Software")>-1||o.indexOf("Not for distribution or production use")>-1||o.indexOf("gojs.net")>-1?"":o}var ki=je.navigator!==void 0&&0<je.navigator.userAgent.indexOf("Trident/7"),ir=je.navigator!==void 0&&je.navigator.platform!==void 0&&je.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,lr=[];Object.freeze([]),sn.className="Util",sn.Dx="32ab5ff3b26f42dc0ed90f21472913b5",sn.adym="gojs.net",sn.vfo="28e645fdb266",sn.className="Util";function qt(e,t,n){Wi(this),this.j=e,this.xa=t,this.o=n}qt.prototype.toString=function(){return"EnumValue."+this.xa};function Ki(e,t){return t==null||t===""?null:e[t]}at.Object.defineProperties(qt.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),qt.className="EnumValue";function ee(){this.ew=[]}ee.prototype.toString=function(){return this.ew.join("")},ee.prototype.add=function(e){e!==""&&this.ew.push(e)},ee.className="StringBuilder";function ue(){}ue.className="PropertyCollection";var Zn={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(e){je.console&&je.console.log(e)},HA:function(e,t,n,i){e.strokeStyle="red",e.fillStyle="red",e.font="8px sans-serif",e.beginPath(),e.moveTo(-10,0),e.lineTo(10,0),e.moveTo(0,-10),e.lineTo(0,10),e.stroke(),e.setTransform(1,0,0,1,0,0),e.scale(n,n),e.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),e.lineWidth=2,e.beginPath(),e.moveTo(i.left,i.top+20),e.lineTo(i.left,i.top),e.lineTo(i.left+20,i.top),e.moveTo(i.right,i.bottom-20),e.lineTo(i.right,i.bottom),e.lineTo(i.right-20,i.bottom),e.stroke(),e.fillText("DB: "+Math.round(i.x)+", "+Math.round(i.y)+", "+Math.round(i.width)+", "+Math.round(i.height),i.left,i.top-5)},DA:function(e){var t={},n;for(n in e){if(t.x=n,t.x!=="licenseKey"){var i=e[t.x];if(i.prototype!==void 0){t.Zl=Object.getOwnPropertyNames(i.prototype);for(var r={Tj:0};r.Tj<t.Zl.length;r={Tj:r.Tj},r.Tj++){var o=Object.getOwnPropertyDescriptor(i.prototype,t.Zl[r.Tj]);o.get!==void 0&&o.set===void 0&&Object.defineProperty(i.prototype,t.Zl[r.Tj],{set:function(s,l){return function(){throw Error("Property "+s.Zl[l.Tj]+" of "+s.x+" is read-only.")}}(t,r)})}}}t={Zl:t.Zl,x:t.x}}}};function Be(){}Be.prototype.reset=function(){},Be.prototype.next=function(){return!1},Be.prototype.Ad=function(){return!1},Be.prototype.first=function(){return null},Be.prototype.any=function(){return!1},Be.prototype.all=function(){return!0},Be.prototype.each=function(){return this},Be.prototype.map=function(){return this},Be.prototype.filter=function(){return this},Be.prototype.de=function(){},Be.prototype.toString=function(){return"EmptyIterator"},at.Object.defineProperties(Be.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Be.prototype.first=Be.prototype.first,Be.prototype.hasNext=Be.prototype.Ad,Be.prototype.next=Be.prototype.next,Be.prototype.reset=Be.prototype.reset;var wt=null;Be.className="EmptyIterator",wt=new Be;function Ni(e){this.key=-1,this.value=e}Ni.prototype.reset=function(){this.key=-1},Ni.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Ni.prototype.Ad=function(){return this.next()},Ni.prototype.first=function(){return this.key=0,this.value},Ni.prototype.any=function(e){return this.key=-1,e(this.value)},Ni.prototype.all=function(e){return this.key=-1,e(this.value)},Ni.prototype.each=function(e){return this.key=-1,e(this.value),this},Ni.prototype.map=function(e){return new Ni(e(this.value))},Ni.prototype.filter=function(e){return e(this.value)?new Ni(this.value):wt},Ni.prototype.de=function(){this.value=null},Ni.prototype.toString=function(){return"SingletonIterator("+this.value+")"},at.Object.defineProperties(Ni.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Ni.prototype.first=Ni.prototype.first,Ni.prototype.hasNext=Ni.prototype.Ad,Ni.prototype.next=Ni.prototype.next,Ni.prototype.reset=Ni.prototype.reset,Ni.className="SingletonIterator";function Dn(e){this.Bb=e,this.qf=null,e.Sa=null,this.qa=e.Ja,this.Za=-1}Dn.prototype.reset=function(){var e=this.Bb;e.Sa=null,this.qa=e.Ja,this.Za=-1},Dn.prototype.next=function(){var e=this.Bb;if(e.Ja!==this.qa&&0>this.key)return!1;e=e.s;var t=e.length,n=++this.Za,i=this.qf;if(i!==null)for(;n<t;){var r=e[n];if(i(r))return this.key=this.Za=n,this.value=r,!0;n++}else{if(n<t)return this.key=n,this.value=e[n],!0;this.de()}return!1},Dn.prototype.Ad=function(){return this.next()},Dn.prototype.first=function(){var e=this.Bb;this.qa=e.Ja,this.Za=0,e=e.s;var t=e.length,n=this.qf;if(n!==null){for(var i=0;i<t;){var r=e[i];if(n(r))return this.key=this.Za=i,this.value=r;i++}return null}return 0<t?(e=e[0],this.key=0,this.value=e):null},Dn.prototype.any=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,i=this.qf,r=0;r<n;r++){var o=t[r];if((i===null||i(o))&&e(o))return!0}return!1},Dn.prototype.all=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,i=this.qf,r=0;r<n;r++){var o=t[r];if((i===null||i(o))&&!e(o))return!1}return!0},Dn.prototype.each=function(e){var t=this.Bb;t.Sa=null,this.Za=-1,t=t.s;for(var n=t.length,i=this.qf,r=0;r<n;r++){var o=t[r];(i===null||i(o))&&e(o)}return this},Dn.prototype.map=function(e){var t=this.Bb;t.Sa=null,this.Za=-1;var n=[];t=t.s;for(var i=t.length,r=this.qf,o=0;o<i;o++){var s=t[o];(r===null||r(s))&&n.push(e(s))}return e=new Xt,e.s=n,e.xb(),e.iterator},Dn.prototype.filter=function(e){var t=this.Bb;t.Sa=null,this.Za=-1;var n=[];t=t.s;for(var i=t.length,r=this.qf,o=0;o<i;o++){var s=t[o];(r===null||r(s))&&e(s)&&n.push(s)}return e=new Xt,e.s=n,e.xb(),e.iterator},Dn.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},Dn.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},at.Object.defineProperties(Dn.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(e){this.qf=e}},count:{get:function(){var e=this.qf;if(e!==null){for(var t=0,n=this.Bb.s,i=n.length,r=0;r<i;r++)e(n[r])&&t++;return t}return this.Bb.s.length}}}),Dn.prototype.first=Dn.prototype.first,Dn.prototype.hasNext=Dn.prototype.Ad,Dn.prototype.next=Dn.prototype.next,Dn.prototype.reset=Dn.prototype.reset,Dn.className="ListIterator";function Gi(e){this.Bb=e,e.Hg=null,this.qa=e.Ja,this.Za=e.s.length}Gi.prototype.reset=function(){var e=this.Bb;e.Hg=null,this.qa=e.Ja,this.Za=e.s.length},Gi.prototype.next=function(){var e=this.Bb;if(e.Ja!==this.qa&&0>this.key)return!1;var t=--this.Za;return 0<=t?(this.key=t,this.value=e.s[t],!0):(this.de(),!1)},Gi.prototype.Ad=function(){return this.next()},Gi.prototype.first=function(){var e=this.Bb;this.qa=e.Ja;var t=e.s;return this.Za=e=t.length-1,0<=e?(t=t[e],this.key=e,this.value=t):null},Gi.prototype.any=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)if(e(t[n]))return!0;return!1},Gi.prototype.all=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)if(!e(t[n]))return!1;return!0},Gi.prototype.each=function(e){var t=this.Bb;t.Hg=null,t=t.s;var n=t.length;for(this.Za=n,--n;0<=n;n--)e(t[n]);return this},Gi.prototype.map=function(e){var t=this.Bb;t.Hg=null;var n=[];t=t.s;var i=t.length;for(this.Za=i,--i;0<=i;i--)n.push(e(t[i]));return e=new Xt,e.s=n,e.xb(),e.iterator},Gi.prototype.filter=function(e){var t=this.Bb;t.Hg=null;var n=[];t=t.s;var i=t.length;for(this.Za=i,--i;0<=i;i--){var r=t[i];e(r)&&n.push(r)}return e=new Xt,e.s=n,e.xb(),e.iterator},Gi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Gi.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},at.Object.defineProperties(Gi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Gi.prototype.first=Gi.prototype.first,Gi.prototype.hasNext=Gi.prototype.Ad,Gi.prototype.next=Gi.prototype.next,Gi.prototype.reset=Gi.prototype.reset,Gi.className="ListIteratorBackwards";function Xt(e){Wi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof e=="string"&&ut("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}_=Xt.prototype,_.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},_.freeze=function(){return this._isFrozen=!0,this},_.ka=function(){return this._isFrozen=!1,this},_.toString=function(){return"List()#"+It(this)},_.add=function(e){return e===null?this:(this._isFrozen&&yn(this,e),this.s.push(e),this.xb(),this)},_.push=function(e){this.add(e)},_.addAll=function(e){if(e===null)return this;this._isFrozen&&yn(this);var t=this.s;if(_n(e))for(var n=e.length,i=0;i<n;i++)t.push(e[i]);else for(e=e.iterator;e.next();)t.push(e.value);return this.xb(),this},_.clear=function(){this._isFrozen&&yn(this),this.s.length=0,this.xb()},_.contains=function(e){return e===null?!1:this.s.indexOf(e)!==-1},_.has=function(e){return this.contains(e)},_.indexOf=function(e){return e===null?-1:this.s.indexOf(e)},_.M=function(e){var t=this.s;return(0>e||e>=t.length)&&rn(e,"0 <= i < length",Xt,"elt:i"),t[e]},_.get=function(e){return this.M(e)},_.cd=function(e,t){var n=this.s;(0>e||e>=n.length)&&rn(e,"0 <= i < length",Xt,"setElt:i"),this._isFrozen&&yn(this,e),n[e]=t},_.set=function(e,t){this.cd(e,t)},_.first=function(){var e=this.s;return e.length===0?null:e[0]},_.jc=function(){var e=this.s,t=e.length;return 0<t?e[t-1]:null},_.pop=function(){this._isFrozen&&yn(this);var e=this.s;return 0<e.length?e.pop():null},Xt.prototype.any=function(e){for(var t=this.s,n=t.length,i=0;i<n;i++)if(e(t[i]))return!0;return!1},Xt.prototype.all=function(e){for(var t=this.s,n=t.length,i=0;i<n;i++)if(!e(t[i]))return!1;return!0},Xt.prototype.each=function(e){for(var t=this.s,n=t.length,i=0;i<n;i++)e(t[i]);return this},Xt.prototype.map=function(e){for(var t=new Xt,n=[],i=this.s,r=i.length,o=0;o<r;o++)n.push(e(i[o]));return t.s=n,t.xb(),t},Xt.prototype.filter=function(e){for(var t=new Xt,n=[],i=this.s,r=i.length,o=0;o<r;o++){var s=i[o];e(s)&&n.push(s)}return t.s=n,t.xb(),t},_=Xt.prototype,_.Gb=function(e,t){0>e&&rn(e,">= 0",Xt,"insertAt:i"),this._isFrozen&&yn(this,e);var n=this.s;e>=n.length?n.push(t):n.splice(e,0,t),this.xb()},_.remove=function(e){if(e===null)return!1;this._isFrozen&&yn(this,e);var t=this.s;return e=t.indexOf(e),e===-1?!1:(e===t.length-1?t.pop():t.splice(e,1),this.xb(),!0)},_.delete=function(e){return this.remove(e)},_.mb=function(e){var t=this.s;(0>e||e>=t.length)&&rn(e,"0 <= i < length",Xt,"removeAt:i"),this._isFrozen&&yn(this,e),e===t.length-1?t.pop():t.splice(e,1),this.xb()},_.removeRange=function(e,t){var n=this.s,i=n.length;if(0>e)e=0;else if(e>=i)return this;if(0>t)return this;if(t>=i&&(t=i-1),e>t)return this;this._isFrozen&&yn(this);for(var r=e,o=t+1;o<i;)n[r++]=n[o++];return n.length=i-(t-e+1),this.xb(),this},Xt.prototype.copy=function(){var e=new Xt,t=this.s;return 0<t.length&&(e.s=Array.prototype.slice.call(t)),e},_=Xt.prototype,_.Fa=function(){for(var e=this.s,t=this.count,n=Array(t),i=0;i<t;i++)n[i]=e[i];return n},_.Iv=function(){for(var e=new Yt,t=this.s,n=this.count,i=0;i<n;i++)e.add(t[i]);return e},_.sort=function(e){return this._isFrozen&&yn(this),this.s.sort(e),this.xb(),this},_.zi=function(e,t,n){var i=this.s,r=i.length;t===void 0&&(t=0),n===void 0&&(n=r),this._isFrozen&&yn(this);var o=n-t;if(1>=o)return this;if((0>t||t>=r-1)&&rn(t,"0 <= from < length",Xt,"sortRange:from"),o===2)return n=i[t],r=i[t+1],0<e(n,r)&&(i[t]=r,i[t+1]=n,this.xb()),this;if(t===0)if(n>=r)i.sort(e);else for(t=i.slice(0,n),t.sort(e),e=0;e<n;e++)i[e]=t[e];else if(n>=r)for(n=i.slice(t),n.sort(e),e=t;e<r;e++)i[e]=n[e-t];else for(r=i.slice(t,n),r.sort(e),e=t;e<n;e++)i[e]=r[e-t];return this.xb(),this},_.reverse=function(){return this._isFrozen&&yn(this),this.s.reverse(),this.xb(),this},at.Object.defineProperties(Xt.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 wt;var e=this.Sa;return e!==null?(e.reset(),e):new Dn(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return wt;var e=this.Hg;return e!==null?(e.reset(),e):new Gi(this)}}}),Xt.prototype.reverse=Xt.prototype.reverse,Xt.prototype.sortRange=Xt.prototype.zi,Xt.prototype.sort=Xt.prototype.sort,Xt.prototype.toSet=Xt.prototype.Iv,Xt.prototype.toArray=Xt.prototype.Fa,Xt.prototype.removeRange=Xt.prototype.removeRange,Xt.prototype.removeAt=Xt.prototype.mb,Xt.prototype.delete=Xt.prototype.delete,Xt.prototype.remove=Xt.prototype.remove,Xt.prototype.insertAt=Xt.prototype.Gb,Xt.prototype.pop=Xt.prototype.pop,Xt.prototype.last=Xt.prototype.jc,Xt.prototype.first=Xt.prototype.first,Xt.prototype.set=Xt.prototype.set,Xt.prototype.setElt=Xt.prototype.cd,Xt.prototype.get=Xt.prototype.get,Xt.prototype.elt=Xt.prototype.M,Xt.prototype.indexOf=Xt.prototype.indexOf,Xt.prototype.has=Xt.prototype.has,Xt.prototype.contains=Xt.prototype.contains,Xt.prototype.clear=Xt.prototype.clear,Xt.prototype.addAll=Xt.prototype.addAll,Xt.prototype.push=Xt.prototype.push,Xt.prototype.add=Xt.prototype.add,Xt.prototype.thaw=Xt.prototype.ka,Xt.prototype.freeze=Xt.prototype.freeze,Xt.className="List";function Ii(e){this.eg=e,e.Sa=null,this.qa=e.Ja,this.sa=null}Ii.prototype.reset=function(){var e=this.eg;e.Sa=null,this.qa=e.Ja,this.sa=null},Ii.prototype.next=function(){var e=this.eg;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},Ii.prototype.Ad=function(){return this.next()},Ii.prototype.first=function(){var e=this.eg;if(this.qa=e.Ja,e=e.ea,e!==null){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},Ii.prototype.any=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},Ii.prototype.all=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},Ii.prototype.each=function(e){var t=this.eg;for(this.sa=t.Sa=null,t=t.ea;t!==null;)e(t.value),t=t.va;return this},Ii.prototype.map=function(e){var t=this.eg;t.Sa=null;var n=new Xt;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},Ii.prototype.filter=function(e){var t=this.eg;t.Sa=null;var n=new Xt;for(t=t.ea;t!==null;){var i=t.value;e(i)&&n.add(i),t=t.va}return n.iterator},Ii.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},Ii.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},at.Object.defineProperties(Ii.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),Ii.prototype.first=Ii.prototype.first,Ii.prototype.hasNext=Ii.prototype.Ad,Ii.prototype.next=Ii.prototype.next,Ii.prototype.reset=Ii.prototype.reset,Ii.className="SetIterator";function Yt(e){Wi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof e=="string"&&ut("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}_=Yt.prototype,_.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},_.freeze=function(){return this._isFrozen=!0,this},_.ka=function(){return this._isFrozen=!1,this},_.toString=function(){return"Set()#"+It(this)},_.add=function(e){if(e===null)return this;this._isFrozen&&yn(this,e);var t=e;return Zt(e)&&(t=Zr(e)),this.Tb[t]===void 0&&(this.Sb++,e=new Nt(e,e),this.Tb[t]=e,t=this.kf,t===null?this.ea=e:(e.ll=t,t.va=e),this.kf=e,this.xb()),this},_.addAll=function(e){if(e===null)return this;if(this._isFrozen&&yn(this),_n(e))for(var t=e.length,n=0;n<t;n++)this.add(e[n]);else for(e=e.iterator;e.next();)this.add(e.value);return this},_.contains=function(e){if(e===null)return!1;var t=e;return Zt(e)&&(t=It(e),t===void 0)?!1:this.Tb[t]!==void 0},_.has=function(e){return this.contains(e)},_.Sy=function(e){if(e===null)return!0;for(e=e.iterator;e.next();)if(!this.contains(e.value))return!1;return!0},_.Ty=function(e){if(e===null)return!0;for(e=e.iterator;e.next();)if(this.contains(e.value))return!0;return!1},_.first=function(){var e=this.ea;return e===null?null:e.value},Yt.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},Yt.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},Yt.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t.value),t=t.va;return this},Yt.prototype.map=function(e){for(var t=new Yt,n=this.ea;n!==null;)t.add(e(n.value)),n=n.va;return t},Yt.prototype.filter=function(e){for(var t=new Yt,n=this.ea;n!==null;){var i=n.value;e(i)&&t.add(i),n=n.va}return t},_=Yt.prototype,_.remove=function(e){if(e===null)return!1;this._isFrozen&&yn(this,e);var t=e;if(Zt(e)&&(t=It(e),t===void 0)||(e=this.Tb[t],e===void 0))return!1;var n=e.va,i=e.ll;return n!==null&&(n.ll=i),i!==null&&(i.va=n),this.ea===e&&(this.ea=n),this.kf===e&&(this.kf=i),delete this.Tb[t],this.Sb--,this.xb(),!0},_.delete=function(e){return this.remove(e)},_.hp=function(e){if(e===null)return this;if(this._isFrozen&&yn(this),_n(e))for(var t=e.length,n=0;n<t;n++)this.remove(e[n]);else for(e=e.iterator;e.next();)this.remove(e.value);return this},_.pA=function(e){if(e===null||this.count===0)return this;this._isFrozen&&yn(this);var t=new Yt;t.addAll(e),e=[];for(var n=this.iterator;n.next();){var i=n.value;t.contains(i)||e.push(i)}return this.hp(e),this},_.clear=function(){this._isFrozen&&yn(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},Yt.prototype.copy=function(){var e=new Yt,t=this.Tb,n;for(n in t)e.add(t[n].value);return e},Yt.prototype.Fa=function(){var e=Array(this.Sb),t=this.Tb,n=0,i;for(i in t)e[n]=t[i].value,n++;return e},Yt.prototype.Hv=function(){var e=new Xt,t=this.Tb,n;for(n in t)e.add(t[n].value);return e};function Wi(e){e.__gohashid=fo++}function Zr(e){var t=e.__gohashid;return t===void 0&&(t=fo++,e.__gohashid=t),t}function It(e){return e.__gohashid}at.Object.defineProperties(Yt.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return wt;var e=this.Sa;return e!==null?(e.reset(),e):new Ii(this)}}}),Yt.prototype.toList=Yt.prototype.Hv,Yt.prototype.toArray=Yt.prototype.Fa,Yt.prototype.clear=Yt.prototype.clear,Yt.prototype.retainAll=Yt.prototype.pA,Yt.prototype.removeAll=Yt.prototype.hp,Yt.prototype.delete=Yt.prototype.delete,Yt.prototype.remove=Yt.prototype.remove,Yt.prototype.first=Yt.prototype.first,Yt.prototype.containsAny=Yt.prototype.Ty,Yt.prototype.containsAll=Yt.prototype.Sy,Yt.prototype.has=Yt.prototype.has,Yt.prototype.contains=Yt.prototype.contains,Yt.prototype.addAll=Yt.prototype.addAll,Yt.prototype.add=Yt.prototype.add,Yt.prototype.thaw=Yt.prototype.ka,Yt.prototype.freeze=Yt.prototype.freeze;var fo=1;Yt.className="Set",Yt.uniqueHash=Wi,Yt.hashIdUnique=Zr,Yt.hashId=It;function tn(e){this.ma=e,this.qa=e.Ja,this.sa=null}tn.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},tn.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=this.key=e=t.key,!0):(this.de(),!1)},tn.prototype.Ad=function(){return this.next()},tn.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,e=e.ea,e!==null?(this.sa=e,this.value=this.key=e=e.key):null},tn.prototype.any=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;){if(e(t.key))return!0;t=t.va}return!1},tn.prototype.all=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;){if(!e(t.key))return!1;t=t.va}return!0},tn.prototype.each=function(e){var t=this.ma;for(this.sa=null,t=t.ea;t!==null;)e(t.key),t=t.va;return this},tn.prototype.map=function(e){var t=this.ma;this.sa=null;var n=new Xt;for(t=t.ea;t!==null;)n.add(e(t.key)),t=t.va;return n.iterator},tn.prototype.filter=function(e){var t=this.ma;this.sa=null;var n=new Xt;for(t=t.ea;t!==null;){var i=t.key;e(i)&&n.add(i),t=t.va}return n.iterator},tn.prototype.de=function(){this.value=this.key=null,this.qa=-1},tn.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},at.Object.defineProperties(tn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),tn.prototype.first=tn.prototype.first,tn.prototype.hasNext=tn.prototype.Ad,tn.prototype.next=tn.prototype.next,tn.prototype.reset=tn.prototype.reset,tn.className="MapKeySetIterator";function Fi(e){Yt.call(this),Wi(this),this._isFrozen=!0,this.ma=e}fi(Fi,Yt),_=Fi.prototype,_.freeze=function(){return this},_.ka=function(){return this},_.toString=function(){return"MapKeySet("+this.ma.toString()+")"},_.add=function(){ut("This Set is read-only: "+this.toString())},_.contains=function(e){return this.ma.contains(e)},_.has=function(e){return this.contains(e)},_.remove=function(){ut("This Set is read-only: "+this.toString())},_.delete=function(e){return this.remove(e)},_.clear=function(){ut("This Set is read-only: "+this.toString())},_.first=function(){var e=this.ma.ea;return e!==null?e.key:null},Fi.prototype.any=function(e){for(var t=this.ma.ea;t!==null;){if(e(t.key))return!0;t=t.va}return!1},Fi.prototype.all=function(e){for(var t=this.ma.ea;t!==null;){if(!e(t.key))return!1;t=t.va}return!0},Fi.prototype.each=function(e){for(var t=this.ma.ea;t!==null;)e(t.key),t=t.va;return this},Fi.prototype.map=function(e){for(var t=new Yt,n=this.ma.ea;n!==null;)t.add(e(n.key)),n=n.va;return t},Fi.prototype.filter=function(e){for(var t=new Yt,n=this.ma.ea;n!==null;){var i=n.key;e(i)&&t.add(i),n=n.va}return t},Fi.prototype.copy=function(){return new Fi(this.ma)},Fi.prototype.Iv=function(){var e=new Yt,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},Fi.prototype.Fa=function(){var e=this.ma.Tb,t=Array(this.ma.Sb),n=0,i;for(i in e)t[n]=e[i].key,n++;return t},Fi.prototype.Hv=function(){var e=new Xt,t=this.ma.Tb,n;for(n in t)e.add(t[n].key);return e},at.Object.defineProperties(Fi.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?wt:new tn(this.ma)}}}),Fi.prototype.toList=Fi.prototype.Hv,Fi.prototype.toArray=Fi.prototype.Fa,Fi.prototype.toSet=Fi.prototype.Iv,Fi.prototype.first=Fi.prototype.first,Fi.prototype.clear=Fi.prototype.clear,Fi.prototype.delete=Fi.prototype.delete,Fi.prototype.remove=Fi.prototype.remove,Fi.prototype.has=Fi.prototype.has,Fi.prototype.contains=Fi.prototype.contains,Fi.prototype.add=Fi.prototype.add,Fi.prototype.thaw=Fi.prototype.ka,Fi.prototype.freeze=Fi.prototype.freeze,Fi.className="MapKeySet";function Li(e){this.ma=e,e.jf=null,this.qa=e.Ja,this.sa=null}Li.prototype.reset=function(){var e=this.ma;e.jf=null,this.qa=e.Ja,this.sa=null},Li.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.value=t.value,this.key=t.key,!0):(this.de(),!1)},Li.prototype.Ad=function(){return this.next()},Li.prototype.first=function(){var e=this.ma;if(this.qa=e.Ja,e=e.ea,e!==null){this.sa=e;var t=e.value;return this.key=e.key,this.value=t}return null},Li.prototype.any=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;){if(e(t.value))return!0;t=t.va}return!1},Li.prototype.all=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;){if(!e(t.value))return!1;t=t.va}return!0},Li.prototype.each=function(e){var t=this.ma;for(this.sa=t.jf=null,t=t.ea;t!==null;)e(t.value),t=t.va;return this},Li.prototype.map=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Xt;for(t=t.ea;t!==null;)n.add(e(t.value)),t=t.va;return n.iterator},Li.prototype.filter=function(e){var t=this.ma;this.sa=t.jf=null;var n=new Xt;for(t=t.ea;t!==null;){var i=t.value;e(i)&&n.add(i),t=t.va}return n.iterator},Li.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},Li.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},at.Object.defineProperties(Li.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Li.prototype.first=Li.prototype.first,Li.prototype.hasNext=Li.prototype.Ad,Li.prototype.next=Li.prototype.next,Li.prototype.reset=Li.prototype.reset,Li.className="MapValueSetIterator";function Nt(e,t){this.key=e,this.value=t,this.ll=this.va=null}Nt.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Nt.className="KeyValuePair";function Nr(e){this.ma=e,e.Sa=null,this.qa=e.Ja,this.sa=null}Nr.prototype.reset=function(){var e=this.ma;e.Sa=null,this.qa=e.Ja,this.sa=null},Nr.prototype.next=function(){var e=this.ma;if(e.Ja!==this.qa&&this.key===null)return!1;var t=this.sa;return t=t===null?e.ea:t.va,t!==null?(this.sa=t,this.key=t.key,this.value=t.value,!0):(this.de(),!1)},Nr.prototype.Ad=function(){return this.next()},Nr.prototype.first=function(){var e=this.ma;return this.qa=e.Ja,e=e.ea,e!==null?(this.sa=e,this.key=e.key,this.value=e.value,e):null},Nr.prototype.any=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(e(t))return!0;t=t.va}return!1},Nr.prototype.all=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;){if(!e(t))return!1;t=t.va}return!0},Nr.prototype.each=function(e){var t=this.ma;for(this.sa=t.Sa=null,t=t.ea;t!==null;)e(t),t=t.va;return this},Nr.prototype.map=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Xt;for(t=t.ea;t!==null;)n.add(e(t)),t=t.va;return n.iterator},Nr.prototype.filter=function(e){var t=this.ma;this.sa=t.Sa=null;var n=new Xt;for(t=t.ea;t!==null;)e(t)&&n.add(t),t=t.va;return n.iterator},Nr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Nr.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},at.Object.defineProperties(Nr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Nr.prototype.first=Nr.prototype.first,Nr.prototype.hasNext=Nr.prototype.Ad,Nr.prototype.next=Nr.prototype.next,Nr.prototype.reset=Nr.prototype.reset,Nr.className="MapIterator";function ii(e){Wi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof e=="string"&&ut("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),e!==void 0&&this.addAll(e)}_=ii.prototype,_.xb=function(){var e=this.Ja;e++,999999999<e&&(e=0),this.Ja=e},_.freeze=function(){return this._isFrozen=!0,this},_.ka=function(){return this._isFrozen=!1,this},_.toString=function(){return"Map()#"+It(this)},_.add=function(e,t){this._isFrozen&&yn(this,e);var n=e;Zt(e)&&(n=Zr(e));var i=this.Tb[n];return i===void 0?(this.Sb++,e=new Nt(e,t),this.Tb[n]=e,n=this.kf,n===null?this.ea=e:(e.ll=n,n.va=e),this.kf=e,this.xb()):i.value=t,this},_.set=function(e,t){return this.add(e,t)},_.addAll=function(e){if(e===null)return this;if(_n(e))for(var t=e.length,n=0;n<t;n++){var i=e[n];this.add(i.key,i.value)}else if(e instanceof ii)for(e=e.iterator;e.next();)this.add(e.key,e.value);else for(e=e.iterator;e.next();)t=e.value,this.add(t.key,t.value);return this},_.first=function(){return this.ea},ii.prototype.any=function(e){for(var t=this.ea;t!==null;){if(e(t))return!0;t=t.va}return!1},ii.prototype.all=function(e){for(var t=this.ea;t!==null;){if(!e(t))return!1;t=t.va}return!0},ii.prototype.each=function(e){for(var t=this.ea;t!==null;)e(t),t=t.va;return this},ii.prototype.map=function(e){for(var t=new ii,n=this.ea;n!==null;)t.add(n.key,e(n)),n=n.va;return t},ii.prototype.filter=function(e){for(var t=new ii,n=this.ea;n!==null;)e(n)&&t.add(n.key,n.value),n=n.va;return t},_=ii.prototype,_.contains=function(e){var t=e;return Zt(e)&&(t=It(e),t===void 0)?!1:this.Tb[t]!==void 0},_.has=function(e){return this.contains(e)},_.I=function(e){var t=e;return Zt(e)&&(t=It(e),t===void 0)?null:(e=this.Tb[t],e===void 0?null:e.value)},_.get=function(e){return this.I(e)},_.remove=function(e){if(e===null)return!1;this._isFrozen&&yn(this,e);var t=e;if(Zt(e)&&(t=It(e),t===void 0)||(e=this.Tb[t],e===void 0))return!1;var n=e.va,i=e.ll;return n!==null&&(n.ll=i),i!==null&&(i.va=n),this.ea===e&&(this.ea=n),this.kf===e&&(this.kf=i),delete this.Tb[t],this.Sb--,this.xb(),!0},_.delete=function(e){return this.remove(e)},_.clear=function(){this._isFrozen&&yn(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()},ii.prototype.copy=function(){var e=new ii,t=this.Tb,n;for(n in t){var i=t[n];e.add(i.key,i.value)}return e},ii.prototype.Fa=function(){var e=this.Tb,t=Array(this.Sb),n=0,i;for(i in e){var r=e[i];t[n]=new Nt(r.key,r.value),n++}return t},ii.prototype.Lf=function(){return new Fi(this)},at.Object.defineProperties(ii.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return wt;var e=this.Sa;return e!==null?(e.reset(),e):new Nr(this)}},iteratorKeys:{get:function(){return 0>=this.count?wt:new tn(this)}},iteratorValues:{get:function(){if(0>=this.count)return wt;var e=this.jf;return e!==null?(e.reset(),e):new Li(this)}}}),ii.prototype.toKeySet=ii.prototype.Lf,ii.prototype.toArray=ii.prototype.Fa,ii.prototype.clear=ii.prototype.clear,ii.prototype.delete=ii.prototype.delete,ii.prototype.remove=ii.prototype.remove,ii.prototype.get=ii.prototype.get,ii.prototype.getValue=ii.prototype.I,ii.prototype.has=ii.prototype.has,ii.prototype.contains=ii.prototype.contains,ii.prototype.first=ii.prototype.first,ii.prototype.addAll=ii.prototype.addAll,ii.prototype.set=ii.prototype.set,ii.prototype.add=ii.prototype.add,ii.prototype.thaw=ii.prototype.ka,ii.prototype.freeze=ii.prototype.freeze,ii.className="Map";function ce(e,t){e===void 0?this.y=this.x=0:typeof e=="number"&&typeof t=="number"?(this.x=e,this.y=t):ut("Invalid arguments to Point constructor: "+e+", "+t),this._isFrozen=!1}var br,to,mr,Xr,qi;ce.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this},ce.prototype.h=function(e,t){return this.x=e,this.y=t,this},ce.prototype.sg=function(e,t){return this.x=e,this.y=t,this},ce.prototype.set=function(e){return this.x=e.x,this.y=e.y,this},ce.prototype.copy=function(){var e=new ce;return e.x=this.x,e.y=this.y,e},_=ce.prototype,_.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},_.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},_.freeze=function(){return this._isFrozen=!0,this},_.ka=function(){return Object.isFrozen(this)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this};function zr(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var i=e[t++];i&&(n=parseFloat(i));for(var r=0;e[t]==="";)t++;return(i=e[t++])&&(r=parseFloat(i)),new ce(n,r)}return new ce}function Ri(e){return e.x.toString()+" "+e.y.toString()}_.toString=function(){return"Point("+this.x+","+this.y+")"},_.D=function(e){return e instanceof ce?this.x===e.x&&this.y===e.y:!1},_.hi=function(e,t){return this.x===e&&this.y===t},_.Xa=function(e){return Ke.B(this.x,e.x)&&Ke.B(this.y,e.y)},_.add=function(e){return this.x+=e.x,this.y+=e.y,this},_.re=function(e){return this.x-=e.x,this.y-=e.y,this},_.offset=function(e,t){return this.x+=e,this.y+=t,this},ce.prototype.rotate=function(e){if(e===0)return this;var t=this.x,n=this.y;if(t===0&&n===0)return this;if(360<=e?e-=360:0>e&&(e+=360),e===90){e=0;var i=1}else e===180?(e=-1,i=0):e===270?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));return this.x=e*t-i*n,this.y=i*t+e*n,this},_=ce.prototype,_.scale=function(e,t){return this.x*=e,this.y*=t,this},_.Bf=function(e){var t=e.x-this.x;return e=e.y-this.y,t*t+e*e},_.zd=function(e,t){return e-=this.x,t-=this.y,e*e+t*t},_.normalize=function(){var e=this.x,t=this.y,n=Math.sqrt(e*e+t*t);return 0<n&&(this.x=e/n,this.y=t/n),this},_.ab=function(e){return $i(e.x-this.x,e.y-this.y)},_.direction=function(e,t){return $i(e-this.x,t-this.y)};function $i(e,t){if(e===0)return 0<t?90:0>t?270:0;if(t===0)return 0<e?0:180;if(isNaN(e)||isNaN(t))return 0;var n=180*Math.atan(Math.abs(t/e))/Math.PI;return 0>e?n=0>t?n+180:180-n:0>t&&(n=360-n),n}_.Ry=function(e,t){return Ke.Fl(e.x,e.y,t.x,t.y,this.x,this.y)},_.fA=function(e,t,n,i){return Ke.qh(e,t,n,i,this.x,this.y,this),this},_.gA=function(e,t){return Ke.qh(e.x,e.y,t.x,t.y,this.x,this.y,this),this},_.uA=function(e,t,n,i){return Ke.No(this.x,this.y,e,t,n,i,this),this},_.vA=function(e,t){return Ke.No(this.x,this.y,e.x,e.y,t.width,t.height,this),this},_.xi=function(e,t){return this.x=e.x+t.x*e.width+t.offsetX,this.y=e.y+t.y*e.height+t.offsetY,this},_.yi=function(e,t,n,i,r){return this.x=e+r.x*n+r.offsetX,this.y=t+r.y*i+r.offsetY,this},_.transform=function(e){return e.Ga(this),this};function zi(e,t){return t.Cd(e),e}function Pr(e,t,n,i,r,o){var s=r-n,l=o-i,u=s*s+l*l;n-=e,i-=t;var f=-n*s-i*l;return 0>=f||f>=u?(s=r-e,l=o-t,Math.min(n*n+i*i,s*s+l*l)):(e=s*i-l*n,e*e/u)}function Br(e,t,n,i){return e=n-e,t=i-t,e*e+t*t}function no(e,t,n,i){return e=n-e,t=i-t,e===0?0<t?90:0>t?270:0:t===0?0<e?0:180:isNaN(e)||isNaN(t)?0:(i=180*Math.atan(Math.abs(t/e))/Math.PI,0>e?i=0>t?i+180:180-i:0>t&&(i=360-i),i)}_.w=function(){return isFinite(this.x)&&isFinite(this.y)},ce.alloc=function(){var e=Po.pop();return e===void 0?new ce:e},ce.allocAt=function(e,t){var n=Po.pop();return n===void 0?new ce(e,t):(n.x=e,n.y=t,n)},ce.free=function(e){Po.push(e)},ce.prototype.isReal=ce.prototype.w,ce.prototype.setSpot=ce.prototype.yi,ce.prototype.setRectSpot=ce.prototype.xi,ce.prototype.snapToGridPoint=ce.prototype.vA,ce.prototype.snapToGrid=ce.prototype.uA,ce.prototype.projectOntoLineSegmentPoint=ce.prototype.gA,ce.prototype.projectOntoLineSegment=ce.prototype.fA,ce.intersectingLineSegments=function(e,t,n,i,r,o,s,l){return Ke.Rl(e,t,n,i,r,o,s,l)},ce.prototype.compareWithLineSegmentPoint=ce.prototype.Ry,ce.compareWithLineSegment=function(e,t,n,i,r,o){return Ke.Fl(e,t,n,i,r,o)},ce.prototype.direction=ce.prototype.direction,ce.prototype.directionPoint=ce.prototype.ab,ce.prototype.normalize=ce.prototype.normalize,ce.prototype.distanceSquared=ce.prototype.zd,ce.prototype.distanceSquaredPoint=ce.prototype.Bf,ce.prototype.scale=ce.prototype.scale,ce.prototype.rotate=ce.prototype.rotate,ce.prototype.offset=ce.prototype.offset,ce.prototype.subtract=ce.prototype.re,ce.prototype.add=ce.prototype.add,ce.prototype.equalsApprox=ce.prototype.Xa,ce.prototype.equalTo=ce.prototype.hi,ce.prototype.equals=ce.prototype.D,ce.prototype.set=ce.prototype.set,ce.prototype.setTo=ce.prototype.sg;var Po=[];ce.className="Point",ce.parse=zr,ce.stringify=Ri,ce.distanceLineSegmentSquared=Pr,ce.distanceSquared=Br,ce.direction=no,ce.Origin=br=new ce(0,0).ja(),ce.InfiniteTopLeft=to=new ce(-1/0,-1/0).ja(),ce.InfiniteBottomRight=mr=new ce(1/0,1/0).ja(),ce.SixPoint=Xr=new ce(6,6).ja(),ce.NoPoint=qi=new ce(NaN,NaN).ja(),ce.parse=zr,ce.stringify=Ri,ce.distanceLineSegmentSquared=Pr,ce.distanceSquared=Br,ce.direction=no;function mi(e,t){e===void 0?this.height=this.width=0:typeof e=="number"&&(0<=e||isNaN(e))&&typeof t=="number"&&(0<=t||isNaN(t))?(this.width=e,this.height=t):ut("Invalid arguments to Size constructor: "+e+", "+t),this._isFrozen=!1}var ws,as,Fo,As,Xs,da,vs;mi.prototype.assign=function(e){return this.width=e.width,this.height=e.height,this},mi.prototype.h=function(e,t){return this.width=e,this.height=t,this},mi.prototype.sg=function(e,t){return this.width=e,this.height=t,this},mi.prototype.set=function(e){return this.width=e.width,this.height=e.height,this},mi.prototype.copy=function(){var e=new mi;return e.width=this.width,e.height=this.height,e},_=mi.prototype,_.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},_.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},_.freeze=function(){return this._isFrozen=!0,this},_.ka=function(){return Object.isFrozen(this)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this};function Ua(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var i=e[t++];i&&(n=parseFloat(i));for(var r=0;e[t]==="";)t++;return(i=e[t++])&&(r=parseFloat(i)),new mi(n,r)}return new mi}function Ls(e){return e.width.toString()+" "+e.height.toString()}_.toString=function(){return"Size("+this.width+","+this.height+")"},_.D=function(e){return e instanceof mi?this.width===e.width&&this.height===e.height:!1},_.hi=function(e,t){return this.width===e&&this.height===t},_.Xa=function(e){return Ke.B(this.width,e.width)&&Ke.B(this.height,e.height)},_.Bc=function(e,t){return e=this.width+e,this.width=0<=e?e:0,t=this.height+t,this.height=0<=t?t:0,this},_.w=function(){return isFinite(this.width)&&isFinite(this.height)},mi.alloc=function(){var e=Ko.pop();return e===void 0?new mi:e},mi.free=function(e){Ko.push(e)},mi.prototype.isReal=mi.prototype.w,mi.prototype.inflate=mi.prototype.Bc,mi.prototype.equalsApprox=mi.prototype.Xa,mi.prototype.equalTo=mi.prototype.hi,mi.prototype.equals=mi.prototype.D,mi.prototype.set=mi.prototype.set,mi.prototype.setTo=mi.prototype.sg;var Ko=[];mi.className="Size",mi.parse=Ua,mi.stringify=Ls,mi.ZeroSize=ws=new mi(0,0).ja(),mi.OneSize=as=new mi(1,1).ja(),mi.SixSize=Fo=new mi(6,6).ja(),mi.EightSize=As=new mi(8,8).ja(),mi.TenSize=Xs=new mi(10,10).ja(),mi.InfiniteSize=da=new mi(1/0,1/0).ja(),mi.NoSize=vs=new mi(NaN,NaN).ja(),mi.parse=Ua,mi.stringify=Ls;function Ht(e,t,n,i){e===void 0?this.height=this.width=this.y=this.x=0:typeof e=="number"&&typeof t=="number"&&typeof n=="number"&&(0<=n||isNaN(n))&&typeof i=="number"&&(0<=i||isNaN(i))?(this.x=e,this.y=t,this.width=n,this.height=i):e instanceof ce?(n=e.x,e=e.y,t instanceof ce?(i=t.x,t=t.y,this.x=Math.min(n,i),this.y=Math.min(e,t),this.width=Math.abs(n-i),this.height=Math.abs(e-t)):t instanceof mi?(this.x=n,this.y=e,this.width=t.width,this.height=t.height):ut("Incorrect second argument supplied to Rect constructor "+t)):ut("Invalid arguments to Rect constructor: "+e+", "+t+", "+n+", "+i),this._isFrozen=!1}_=Ht.prototype,_.assign=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},_.h=function(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this};function Ds(e,t,n){e.width=t,e.height=n}_.sg=function(e,t,n,i){return this.x=e,this.y=t,this.width=n,this.height=i,this},_.set=function(e){return this.x=e.x,this.y=e.y,this.width=e.width,this.height=e.height,this},_.dd=function(e){return this.x=e.x,this.y=e.y,this},_.tA=function(e){return this.width=e.width,this.height=e.height,this},Ht.prototype.copy=function(){var e=new Ht;return e.x=this.x,e.y=this.y,e.width=this.width,e.height=this.height,e},_=Ht.prototype,_.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},_.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},_.freeze=function(){return this._isFrozen=!0,this},_.ka=function(){return Object.isFrozen(this)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this};function wl(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var i=e[t++];i&&(n=parseFloat(i));for(var r=0;e[t]==="";)t++;(i=e[t++])&&(r=parseFloat(i));for(var o=0;e[t]==="";)t++;(i=e[t++])&&(o=parseFloat(i));for(var s=0;e[t]==="";)t++;return(i=e[t++])&&(s=parseFloat(i)),new Ht(n,r,o,s)}return new Ht}function Cl(e){return e.x.toString()+" "+e.y.toString()+" "+e.width.toString()+" "+e.height.toString()}_.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},_.D=function(e){return e instanceof Ht?this.x===e.x&&this.y===e.y&&this.width===e.width&&this.height===e.height:!1},_.hi=function(e,t,n,i){return this.x===e&&this.y===t&&this.width===n&&this.height===i},_.Xa=function(e){return Ke.B(this.x,e.x)&&Ke.B(this.y,e.y)&&Ke.B(this.width,e.width)&&Ke.B(this.height,e.height)};function Jr(e,t){return Ke.$(e.x,t.x)&&Ke.$(e.y,t.y)&&Ke.$(e.width,t.width)&&Ke.$(e.height,t.height)}_.ca=function(e){return this.x<=e.x&&this.x+this.width>=e.x&&this.y<=e.y&&this.y+this.height>=e.y},_.Re=function(e){return this.x<=e.x&&e.x+e.width<=this.x+this.width&&this.y<=e.y&&e.y+e.height<=this.y+this.height},_.contains=function(e,t,n,i){return n===void 0&&(n=0),i===void 0&&(i=0),this.x<=e&&e+n<=this.x+this.width&&this.y<=t&&t+i<=this.y+this.height},_.offset=function(e,t){return this.x+=e,this.y+=t,this},_.Bc=function(e,t){return oo(this,t,e,t,e)},_.Co=function(e){return oo(this,e.top,e.right,e.bottom,e.left)},_.Fv=function(e){return oo(this,-e.top,-e.right,-e.bottom,-e.left)},_.Hz=function(e,t,n,i){return oo(this,e,t,n,i)};function oo(e,t,n,i,r){var o=e.width;return n+r<=-o?(e.x+=o/2,e.width=0):(e.x-=r,e.width+=n+r),n=e.height,t+i<=-n?(e.y+=n/2,e.height=0):(e.y-=t,e.height+=t+i),e}_.Ex=function(e){return ts(this,e.x,e.y,e.width,e.height)},_.Uu=function(e,t,n,i){return ts(this,e,t,n,i)};function ts(e,t,n,i,r){var o=Math.max(e.x,t),s=Math.max(e.y,n);return t=Math.min(e.x+e.width,t+i),n=Math.min(e.y+e.height,n+r),e.x=o,e.y=s,e.width=Math.max(0,t-o),e.height=Math.max(0,n-s),e}_.Yc=function(e){return this.Vu(e.x,e.y,e.width,e.height)},_.Vu=function(e,t,n,i){var r=this.width,o=this.x;return r!==1/0&&n!==1/0&&(r+=o,n+=e,isNaN(n)||isNaN(r)||o>n||e>r)?!1:(e=this.height,n=this.y,!(e!==1/0&&i!==1/0&&(e+=n,i+=t,isNaN(i)||isNaN(e)||n>i||t>e)))};function bo(e,t){var n=e.width,i=e.x,r=t.x-10;return i>t.width+10+10+r||r>n+i?!1:(n=e.height,e=e.y,i=t.y-10,!(e>t.height+10+10+i||i>n+e))}_.Ye=function(e){return Or(this,e.x,e.y,0,0)},_.ed=function(e){return Or(this,e.x,e.y,e.width,e.height)},_.Kv=function(e,t,n,i){return n===void 0&&(n=0),i===void 0&&(i=0),Or(this,e,t,n,i)};function Or(e,t,n,i,r){var o=Math.min(e.x,t),s=Math.min(e.y,n);return t=Math.max(e.x+e.width,t+i),n=Math.max(e.y+e.height,n+r),e.x=o,e.y=s,e.width=t-o,e.height=n-s,e}_.yi=function(e,t,n){return this.x=e-n.offsetX-n.x*this.width,this.y=t-n.offsetY-n.y*this.height,this};function po(e,t,n,i,r,o,s,l){return s===void 0&&(s=0),l===void 0&&(l=0),e<=r&&r+s<=e+n&&t<=o&&o+l<=t+i}function va(e,t,n,i,r,o,s,l){return e>s+r||r>n+e?!1:!(t>l+o||o>i+t)}_.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},_.Mz=function(){return this.width===0&&this.height===0},Ht.alloc=function(){var e=ur.pop();return e===void 0?new Ht:e},Ht.allocAt=function(e,t,n,i){var r=ur.pop();return r===void 0?new Ht(e,t,n,i):r.h(e,t,n,i)},Ht.free=function(e){ur.push(e)},at.Object.defineProperties(Ht.prototype,{left:{get:function(){return this.x},set:function(e){this.x=e}},top:{get:function(){return this.y},set:function(e){this.y=e}},right:{get:function(){return this.x+this.width},set:function(e){this.x+=e-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(e){this.y+=e-(this.y+this.height)}},position:{get:function(){return new ce(this.x,this.y)},set:function(e){this.x=e.x,this.y=e.y}},size:{get:function(){return new mi(this.width,this.height)},set:function(e){this.width=e.width,this.height=e.height}},center:{get:function(){return new ce(this.x+this.width/2,this.y+this.height/2)},set:function(e){this.x=e.x-this.width/2,this.y=e.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(e){this.x=e-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(e){this.y=e-this.height/2}}}),Ht.prototype.isEmpty=Ht.prototype.Mz,Ht.prototype.isReal=Ht.prototype.w,Ht.intersectsLineSegment=function(e,t,n,i,r,o,s,l){return Ke.Fx(e,t,n,i,r,o,s,l)},Ht.prototype.setSpot=Ht.prototype.yi,Ht.prototype.union=Ht.prototype.Kv,Ht.prototype.unionRect=Ht.prototype.ed,Ht.prototype.unionPoint=Ht.prototype.Ye,Ht.prototype.intersects=Ht.prototype.Vu,Ht.prototype.intersectsRect=Ht.prototype.Yc,Ht.prototype.intersect=Ht.prototype.Uu,Ht.prototype.intersectRect=Ht.prototype.Ex,Ht.prototype.grow=Ht.prototype.Hz,Ht.prototype.subtractMargin=Ht.prototype.Fv,Ht.prototype.addMargin=Ht.prototype.Co,Ht.prototype.inflate=Ht.prototype.Bc,Ht.prototype.offset=Ht.prototype.offset,Ht.prototype.contains=Ht.prototype.contains,Ht.prototype.containsRect=Ht.prototype.Re,Ht.prototype.containsPoint=Ht.prototype.ca,Ht.prototype.equalsApprox=Ht.prototype.Xa,Ht.prototype.equalTo=Ht.prototype.hi,Ht.prototype.equals=Ht.prototype.D,Ht.prototype.setSize=Ht.prototype.tA,Ht.prototype.setPoint=Ht.prototype.dd,Ht.prototype.set=Ht.prototype.set,Ht.prototype.setTo=Ht.prototype.sg;var gr=null,xn=null,ur=[];Ht.className="Rect",Ht.parse=wl,Ht.stringify=Cl,Ht.contains=po,Ht.intersects=va,Ht.ZeroRect=gr=new Ht(0,0,0,0).ja(),Ht.NoRect=xn=new Ht(NaN,NaN,NaN,NaN).ja(),Ht.parse=wl,Ht.stringify=Cl,Ht.contains=po,Ht.intersects=va;function vi(e,t,n,i){e===void 0?this.left=this.bottom=this.right=this.top=0:t===void 0?this.left=this.bottom=this.right=this.top=e:n===void 0?(this.top=e,this.right=t,this.bottom=e,this.left=t):i!==void 0?(this.top=e,this.right=t,this.bottom=n,this.left=i):ut("Invalid arguments to Margin constructor: "+e+", "+t+", "+n+", "+i),this._isFrozen=!1}vi.prototype.assign=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},vi.prototype.sg=function(e,t,n,i){return this.top=e,this.right=t,this.bottom=n,this.left=i,this},vi.prototype.set=function(e){return this.top=e.top,this.right=e.right,this.bottom=e.bottom,this.left=e.left,this},vi.prototype.copy=function(){var e=new vi;return e.top=this.top,e.right=this.right,e.bottom=this.bottom,e.left=this.left,e},_=vi.prototype,_.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},_.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},_.freeze=function(){return this._isFrozen=!0,this},_.ka=function(){return Object.isFrozen(this)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this};function Bo(e){if(typeof e=="string"){e=e.split(" ");for(var t=0,n=NaN;e[t]==="";)t++;var i=e[t++];if(i&&(n=parseFloat(i)),isNaN(n))return new vi;for(var r=NaN;e[t]==="";)t++;if((i=e[t++])&&(r=parseFloat(i)),isNaN(r))return new vi(n);for(var o=NaN;e[t]==="";)t++;if((i=e[t++])&&(o=parseFloat(i)),isNaN(o))return new vi(n,r);for(var s=NaN;e[t]==="";)t++;return(i=e[t++])&&(s=parseFloat(i)),isNaN(s)?new vi(n,r):new vi(n,r,o,s)}return new vi}function ys(e){return e.top.toString()+" "+e.right.toString()+" "+e.bottom.toString()+" "+e.left.toString()}_.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},_.D=function(e){return e instanceof vi?this.top===e.top&&this.right===e.right&&this.bottom===e.bottom&&this.left===e.left:!1},_.hi=function(e,t,n,i){return this.top===e&&this.right===t&&this.bottom===n&&this.left===i},_.Xa=function(e){return Ke.B(this.top,e.top)&&Ke.B(this.right,e.right)&&Ke.B(this.bottom,e.bottom)&&Ke.B(this.left,e.left)},_.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},vi.alloc=function(){var e=Ia.pop();return e===void 0?new vi:e},vi.free=function(e){Ia.push(e)},vi.prototype.isReal=vi.prototype.w,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 oa=null,Da=null,Ia=[];vi.className="Margin",vi.parse=Bo,vi.stringify=ys,vi.ZeroMargin=oa=new vi(0,0,0,0).ja(),vi.TwoMargin=Da=new vi(2,2,2,2).ja(),vi.parse=Bo,vi.stringify=ys;function ui(e,t,n,i){e===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(t===void 0&&(t=0),n===void 0&&(n=0),i===void 0&&(i=0),this.x=e,this.y=t,this.offsetX=n,this.offsetY=i),this._isFrozen=!1}var Di,Yo,ya,Go,Us,vr,lu,wa,Ca,Oo,ll,Tl,ks,fa,Nl,Ao,zl,Ul,Eu,Cs,Zo,Ha,Hi,pa,Hl,Lr,so,ns,Xo,jr,Qo,is,rs,fs,$l,$a;ui.prototype.assign=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},ui.prototype.sg=function(e,t,n,i){return this.x=e,this.y=t,this.offsetX=n,this.offsetY=i,this},ui.prototype.set=function(e){return this.x=e.x,this.y=e.y,this.offsetX=e.offsetX,this.offsetY=e.offsetY,this},ui.prototype.copy=function(){var e=new ui;return e.x=this.x,e.y=this.y,e.offsetX=this.offsetX,e.offsetY=this.offsetY,e},_=ui.prototype,_.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},_.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},_.freeze=function(){return this._isFrozen=!0,this},_.ka=function(){return Object.isFrozen(this)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this};function ls(e,t){return e.x=NaN,e.y=NaN,e.offsetX=t,e}function ac(e){if(typeof e=="string"){if(e=e.trim(),e==="None")return Di;if(e==="TopLeft")return Yo;if(e==="Top"||e==="TopCenter"||e==="MiddleTop")return ya;if(e==="TopRight")return Go;if(e==="Left"||e==="LeftCenter"||e==="MiddleLeft")return Us;if(e==="Center")return vr;if(e==="Right"||e==="RightCenter"||e==="MiddleRight")return lu;if(e==="BottomLeft")return wa;if(e==="Bottom"||e==="BottomCenter"||e==="MiddleBottom")return Ca;if(e==="BottomRight")return Oo;if(e==="TopSide")return ll;if(e==="LeftSide")return Tl;if(e==="RightSide")return ks;if(e==="BottomSide")return fa;if(e==="TopBottomSides")return Nl;if(e==="LeftRightSides")return Ao;if(e==="TopLeftSides")return zl;if(e==="TopRightSides")return Ul;if(e==="BottomLeftSides")return Eu;if(e==="BottomRightSides")return Cs;if(e==="NotTopSide")return Zo;if(e==="NotLeftSide")return Ha;if(e==="NotRightSide")return Hi;if(e==="NotBottomSide")return pa;if(e==="AllSides")return Hl;if(e==="Default")return Lr;e=e.split(" ");for(var t=0,n=0;e[t]==="";)t++;var i=e[t++];i!==void 0&&0<i.length&&(n=parseFloat(i));for(var r=0;e[t]==="";)t++;i=e[t++],i!==void 0&&0<i.length&&(r=parseFloat(i));for(var o=0;e[t]==="";)t++;i=e[t++],i!==void 0&&0<i.length&&(o=parseFloat(i));for(var s=0;e[t]==="";)t++;return i=e[t++],i!==void 0&&0<i.length&&(s=parseFloat(i)),new ui(n,r,o,s)}return new ui}function lc(e){return e.sb()?e.x.toString()+" "+e.y.toString()+" "+e.offsetX.toString()+" "+e.offsetY.toString():e.toString()}_.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(Di)?"None":this.D(Yo)?"TopLeft":this.D(ya)?"Top":this.D(Go)?"TopRight":this.D(Us)?"Left":this.D(vr)?"Center":this.D(lu)?"Right":this.D(wa)?"BottomLeft":this.D(Ca)?"Bottom":this.D(Oo)?"BottomRight":this.D(ll)?"TopSide":this.D(Tl)?"LeftSide":this.D(ks)?"RightSide":this.D(fa)?"BottomSide":this.D(Nl)?"TopBottomSides":this.D(Ao)?"LeftRightSides":this.D(zl)?"TopLeftSides":this.D(Ul)?"TopRightSides":this.D(Eu)?"BottomLeftSides":this.D(Cs)?"BottomRightSides":this.D(Zo)?"NotTopSide":this.D(Ha)?"NotLeftSide":this.D(Hi)?"NotRightSide":this.D(pa)?"NotBottomSide":this.D(Hl)?"AllSides":this.D(Lr)?"Default":"None"},_.D=function(e){return e instanceof ui?(this.x===e.x||isNaN(this.x)&&isNaN(e.x))&&(this.y===e.y||isNaN(this.y)&&isNaN(e.y))&&this.offsetX===e.offsetX&&this.offsetY===e.offsetY:!1},_.gv=function(){return new ui(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},_.Hf=function(e){if(!this.$c())return!1;if(!e.$c())if(e.D(so))e=Tl;else if(e.D(ns))e=ks;else if(e.D(Xo))e=ll;else if(e.D(jr))e=fa;else return!1;return e=e.offsetY,(this.offsetY&e)===e},_.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},_.Mc=function(){return isNaN(this.x)||isNaN(this.y)},_.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},_.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},_.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},ui.alloc=function(){var e=wu.pop();return e===void 0?new ui:e},ui.free=function(e){wu.push(e)},ui.prototype.isDefault=ui.prototype.Xb,ui.prototype.isNone=ui.prototype.ys,ui.prototype.isSide=ui.prototype.$c,ui.prototype.isNoSpot=ui.prototype.Mc,ui.prototype.isSpot=ui.prototype.sb,ui.prototype.includesSide=ui.prototype.Hf,ui.prototype.opposite=ui.prototype.gv,ui.prototype.equals=ui.prototype.D,ui.prototype.set=ui.prototype.set,ui.prototype.setTo=ui.prototype.sg;var wu=[];ui.className="Spot",ui.parse=ac,ui.stringify=lc,ui.None=Di=ls(new ui(0,0,0,0),0).ja(),ui.Default=Lr=ls(new ui(0,0,-1,0),-1).ja(),ui.TopLeft=Yo=new ui(0,0,0,0).ja(),ui.TopCenter=ya=new ui(.5,0,0,0).ja(),ui.TopRight=Go=new ui(1,0,0,0).ja(),ui.LeftCenter=Us=new ui(0,.5,0,0).ja(),ui.Center=vr=new ui(.5,.5,0,0).ja(),ui.RightCenter=lu=new ui(1,.5,0,0).ja(),ui.BottomLeft=wa=new ui(0,1,0,0).ja(),ui.BottomCenter=Ca=new ui(.5,1,0,0).ja(),ui.BottomRight=Oo=new ui(1,1,0,0).ja(),ui.MiddleTop=Qo=ya,ui.MiddleLeft=is=Us,ui.MiddleRight=rs=lu,ui.MiddleBottom=fs=Ca,ui.Top=Xo=ya,ui.Left=so=Us,ui.Right=ns=lu,ui.Bottom=jr=Ca,ui.TopSide=ll=ls(new ui(0,0,1,1),1).ja(),ui.LeftSide=Tl=ls(new ui(0,0,1,2),1).ja(),ui.RightSide=ks=ls(new ui(0,0,1,4),1).ja(),ui.BottomSide=fa=ls(new ui(0,0,1,8),1).ja(),ui.TopBottomSides=Nl=ls(new ui(0,0,1,9),1).ja(),ui.LeftRightSides=Ao=ls(new ui(0,0,1,6),1).ja(),ui.TopLeftSides=zl=ls(new ui(0,0,1,3),1).ja(),ui.TopRightSides=Ul=ls(new ui(0,0,1,5),1).ja(),ui.BottomLeftSides=Eu=ls(new ui(0,0,1,10),1).ja(),ui.BottomRightSides=Cs=ls(new ui(0,0,1,12),1).ja(),ui.NotTopSide=Zo=ls(new ui(0,0,1,14),1).ja(),ui.NotLeftSide=Ha=ls(new ui(0,0,1,13),1).ja(),ui.NotRightSide=Hi=ls(new ui(0,0,1,11),1).ja(),ui.NotBottomSide=pa=ls(new ui(0,0,1,7),1).ja(),ui.AllSides=Hl=ls(new ui(0,0,1,15),1).ja(),$l=new ui(.156,.156).ja(),$a=new ui(.844,.844).ja(),ui.parse=ac,ui.stringify=lc;function er(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}er.prototype.set=function(e){return this.m11=e.m11,this.m12=e.m12,this.m21=e.m21,this.m22=e.m22,this.dx=e.dx,this.dy=e.dy,this},er.prototype.setTransform=function(e,t,n,i,r,o){return this.m11=e,this.m12=t,this.m21=n,this.m22=i,this.dx=r,this.dy=o,this},er.prototype.copy=function(){var e=new er;return e.m11=this.m11,e.m12=this.m12,e.m21=this.m21,e.m22=this.m22,e.dx=this.dx,e.dy=this.dy,e},er.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},er.prototype.D=function(e){return this.m11===e.m11&&this.m12===e.m12&&this.m21===e.m21&&this.m22===e.m22&&this.dx===e.dx&&this.dy===e.dy},er.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},er.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},er.prototype.multiply=function(e){var t=this.m11*e.m11+this.m21*e.m12,n=this.m12*e.m11+this.m22*e.m12,i=this.m11*e.m21+this.m21*e.m22,r=this.m12*e.m21+this.m22*e.m22;return this.dx=this.m11*e.dx+this.m21*e.dy+this.dx,this.dy=this.m12*e.dx+this.m22*e.dy+this.dy,this.m11=t,this.m12=n,this.m21=i,this.m22=r,this},er.prototype.bv=function(e){var t=1/(e.m11*e.m22-e.m12*e.m21),n=e.m22*t,i=-e.m12*t,r=-e.m21*t,o=e.m11*t,s=t*(e.m21*e.dy-e.m22*e.dx);return e=t*(e.m12*e.dx-e.m11*e.dy),t=this.m11*n+this.m21*i,n=this.m12*n+this.m22*i,i=this.m11*r+this.m21*o,r=this.m12*r+this.m22*o,this.dx=this.m11*s+this.m21*e+this.dx,this.dy=this.m12*s+this.m22*e+this.dy,this.m11=t,this.m12=n,this.m21=i,this.m22=r,this},er.prototype.Vj=function(){var e=1/(this.m11*this.m22-this.m12*this.m21),t=-this.m12*e,n=-this.m21*e,i=this.m11*e,r=e*(this.m21*this.dy-this.m22*this.dx),o=e*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*e,this.m12=t,this.m21=n,this.m22=i,this.dx=r,this.dy=o,this},er.prototype.rotate=function(e,t,n){if(360<=e?e-=360:0>e&&(e+=360),e===0)return this;if(this.translate(t,n),e===90){e=0;var i=1}else e===180?(e=-1,i=0):e===270?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));var r=this.m12*e+this.m22*i,o=this.m11*-i+this.m21*e,s=this.m12*-i+this.m22*e;return this.m11=this.m11*e+this.m21*i,this.m12=r,this.m21=o,this.m22=s,this.translate(-t,-n),this},_=er.prototype,_.translate=function(e,t){return this.dx+=this.m11*e+this.m21*t,this.dy+=this.m12*e+this.m22*t,this},_.scale=function(e,t){return t===void 0&&(t=e),this.m11*=e,this.m12*=e,this.m21*=t,this.m22*=t,this},_.Ga=function(e){var t=e.x,n=e.y;return e.h(t*this.m11+n*this.m21+this.dx,t*this.m12+n*this.m22+this.dy)},_.Cd=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=e.x,i=e.y;return e.h(n*this.m22*t+i*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+i*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},_.Eu=function(e){var t=1/(this.m11*this.m22-this.m12*this.m21),n=1.25*e.x,i=1.2*e.y;return e.h(n*this.m22*t+i*-this.m21*t+t*(this.m21*this.dy-this.m22*this.dx),n*-this.m12*t+i*this.m11*t+t*(this.m12*this.dx-this.m11*this.dy))},_.pp=function(e){var t=e.x,n=e.y,i=t+e.width,r=n+e.height,o=this.m11,s=this.m12,l=this.m21,u=this.m22,f=this.dx,p=this.dy,x=t*o+n*l+f,N=t*s+n*u+p,O=i*o+n*l+f,F=i*s+n*u+p;return n=t*o+r*l+f,t=t*s+r*u+p,o=i*o+r*l+f,i=i*s+r*u+p,r=Math.min(x,O),x=Math.max(x,O),O=Math.min(N,F),N=Math.max(N,F),r=Math.min(r,n),x=Math.max(x,n),O=Math.min(O,t),N=Math.max(N,t),r=Math.min(r,o),x=Math.max(x,o),O=Math.min(O,i),N=Math.max(N,i),e.h(r,O,x-r,N-O),e},er.alloc=function(){var e=ja.pop();return e===void 0?new er:e},er.free=function(e){ja.push(e)},er.prototype.transformRect=er.prototype.pp,er.prototype.transformPoint=er.prototype.Ga,er.prototype.scale=er.prototype.scale,er.prototype.translate=er.prototype.translate,er.prototype.rotate=er.prototype.rotate,er.prototype.invert=er.prototype.Vj,er.prototype.multiplyInverted=er.prototype.bv,er.prototype.multiply=er.prototype.multiply,er.prototype.reset=er.prototype.reset,er.prototype.isIdentity=er.prototype.ws,er.prototype.equals=er.prototype.D,er.prototype.setTransform=er.prototype.setTransform,er.prototype.set=er.prototype.set;var ja=[];er.className="Transform",er.xF="54a702f3e53909c447824c6706603faf4c";var Ke={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(e){if(0>=e)return 0;var t=Ke.Uv;if(t===null){t=[];for(var n=0;2e3>=n;n++)t[n]=Math.sqrt(n);Ke.Uv=t}return 1>e?(n=1/e,2e3>=n?1/t[n|0]:Math.sqrt(e)):2e3>=e?t[e|0]:Math.sqrt(e)},B:function(e,t){return e-=t,.5>e&&-.5<e},$:function(e,t){return e-=t,5e-8>e&&-5e-8<e},Yb:function(e,t,n,i,r,o,s){if(0>=r&&(r=1e-6),e<n)var l=e,u=n;else l=n,u=e;if(t<i)var f=t,p=i;else f=i,p=t;if(e===n)return f<=s&&s<=p&&e-r<=o&&o<=e+r;if(t===i)return l<=o&&o<=u&&t-r<=s&&s<=t+r;if(u+=r,l-=r,l<=o&&o<=u&&(p+=r,f-=r,f<=s&&s<=p))if(u-l>p-f)if(e-n>r||n-e>r){if(o=(i-t)/(n-e)*(o-e)+t,o-r<=s&&s<=o+r)return!0}else return!0;else if(t-i>r||i-t>r){if(s=(n-e)/(i-t)*(s-t)+e,s-r<=o&&o<=s+r)return!0}else return!0;return!1},cs:function(e,t,n,i,r,o,s,l,u,f,p,x){if(Ke.Yb(e,t,s,l,x,n,i)&&Ke.Yb(e,t,s,l,x,r,o))return Ke.Yb(e,t,s,l,x,f,p);var N=(e+n)/2,O=(t+i)/2,F=(n+r)/2,K=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(N+F)/2,n=(O+K)/2,F=(F+r)/2,K=(K+o)/2;var ye=(i+F)/2,ae=(n+K)/2;return Ke.cs(e,t,N,O,i,n,ye,ae,u,f,p,x)||Ke.cs(ye,ae,F,K,r,o,s,l,u,f,p,x)},ax:function(e,t,n,i,r,o,s,l,u){var f=(n+r)/2,p=(i+o)/2;return u.h((((e+n)/2+f)/2+(f+(r+s)/2)/2)/2,(((t+i)/2+p)/2+(p+(o+l)/2)/2)/2),u},My:function(e,t,n,i,r,o,s,l){var u=(n+r)/2,f=(i+o)/2;return no(((e+n)/2+u)/2,((t+i)/2+f)/2,(u+(r+s)/2)/2,(f+(o+l)/2)/2)},Dl:function(e,t,n,i,r,o,s,l,u,f){if(Ke.Yb(e,t,s,l,u,n,i)&&Ke.Yb(e,t,s,l,u,r,o))Or(f,e,t,0,0),Or(f,s,l,0,0);else{var p=(e+n)/2,x=(t+i)/2,N=(n+r)/2,O=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(p+N)/2,n=(x+O)/2,N=(N+r)/2,O=(O+o)/2;var F=(i+N)/2,K=(n+O)/2;Ke.Dl(e,t,p,x,i,n,F,K,u,f),Ke.Dl(F,K,N,O,r,o,s,l,u,f)}return f},Qe:function(e,t,n,i,r,o,s,l,u,f){if(Ke.Yb(e,t,s,l,u,n,i)&&Ke.Yb(e,t,s,l,u,r,o))f.length===0&&(f.push(e),f.push(t)),f.push(s),f.push(l);else{var p=(e+n)/2,x=(t+i)/2,N=(n+r)/2,O=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(p+N)/2,n=(x+O)/2,N=(N+r)/2,O=(O+o)/2;var F=(i+N)/2,K=(n+O)/2;Ke.Qe(e,t,p,x,i,n,F,K,u,f),Ke.Qe(F,K,N,O,r,o,s,l,u,f)}return f},jv:function(e,t,n,i,r,o,s,l,u,f){if(Ke.Yb(e,t,r,o,f,n,i))return Ke.Yb(e,t,r,o,f,l,u);var p=(e+n)/2,x=(t+i)/2;n=(n+r)/2,i=(i+o)/2;var N=(p+n)/2,O=(x+i)/2;return Ke.jv(e,t,p,x,N,O,s,l,u,f)||Ke.jv(N,O,n,i,r,o,s,l,u,f)},OA:function(e,t,n,i,r,o,s){return s.h(((e+n)/2+(n+r)/2)/2,((t+i)/2+(i+o)/2)/2),s},iv:function(e,t,n,i,r,o,s,l){if(Ke.Yb(e,t,r,o,s,n,i))Or(l,e,t,0,0),Or(l,r,o,0,0);else{var u=(e+n)/2,f=(t+i)/2;n=(n+r)/2,i=(i+o)/2;var p=(u+n)/2,x=(f+i)/2;Ke.iv(e,t,u,f,p,x,s,l),Ke.iv(p,x,n,i,r,o,s,l)}return l},ep:function(e,t,n,i,r,o,s,l){if(Ke.Yb(e,t,r,o,s,n,i))l.length===0&&(l.push(e),l.push(t)),l.push(r),l.push(o);else{var u=(e+n)/2,f=(t+i)/2;n=(n+r)/2,i=(i+o)/2;var p=(u+n)/2,x=(f+i)/2;Ke.ep(e,t,u,f,p,x,s,l),Ke.ep(p,x,n,i,r,o,s,l)}return l},Eo:function(e,t,n,i,r,o,s,l,u,f,p,x,N,O){if(Ke.Yb(e,t,s,l,N,n,i)&&Ke.Yb(e,t,s,l,N,r,o))return!Ke.Rl(e,t,s,l,u,f,p,x)||(N=(e-s)*(f-x)-(t-l)*(u-p),N===0)?!1:(O.h(((e*l-t*s)*(u-p)-(e-s)*(u*x-f*p))/N,((e*l-t*s)*(f-x)-(t-l)*(u*x-f*p))/N),!0);var F=(e+n)/2,K=(t+i)/2,ye=(n+r)/2,ae=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(F+ye)/2,n=(K+ae)/2,ye=(ye+r)/2,ae=(ae+o)/2;var Oe=(i+ye)/2,Fe=(n+ae)/2,He=1/0,qe=!1,bt=0,jn=0;return Ke.Eo(e,t,F,K,i,n,Oe,Fe,u,f,p,x,N,O)&&(e=(O.x-u)*(O.x-u)+(O.y-f)*(O.y-f),e<He&&(He=e,qe=!0,bt=O.x,jn=O.y)),Ke.Eo(Oe,Fe,ye,ae,r,o,s,l,u,f,p,x,N,O)&&(O.x-u)*(O.x-u)+(O.y-f)*(O.y-f)<He&&(qe=!0,bt=O.x,jn=O.y),qe&&(O.x=bt,O.y=jn),qe},Fo:function(e,t,n,i,r,o,s,l,u,f,p,x,N){var O=0;if(Ke.Yb(e,t,s,l,N,n,i)&&Ke.Yb(e,t,s,l,N,r,o)){if(N=(e-s)*(f-x)-(t-l)*(u-p),N===0)return O;var F=((e*l-t*s)*(u-p)-(e-s)*(u*x-f*p))/N,K=((e*l-t*s)*(f-x)-(t-l)*(u*x-f*p))/N;if(F>=p)return O;if((u>p?u-p:p-u)<(f>x?f-x:x-f)){if(t<l?(u=t,e=l):(u=l,e=t),K<u||K>e)return O}else if(e<s?(u=e,e=s):u=s,F<u||F>e)return O;0<N?O++:0>N&&O--}else{F=(e+n)/2,K=(t+i)/2;var ye=(n+r)/2,ae=(i+o)/2;r=(r+s)/2,o=(o+l)/2,i=(F+ye)/2,n=(K+ae)/2,ye=(ye+r)/2,ae=(ae+o)/2;var Oe=(i+ye)/2,Fe=(n+ae)/2;O+=Ke.Fo(e,t,F,K,i,n,Oe,Fe,u,f,p,x,N),O+=Ke.Fo(Oe,Fe,ye,ae,r,o,s,l,u,f,p,x,N)}return O},qh:function(e,t,n,i,r,o,s){return Ke.$(e,n)?(t<i?(n=t,t=i):n=i,o<n?(s.h(e,n),!1):o>t?(s.h(e,t),!1):(s.h(e,o),!0)):Ke.$(t,i)?(e<n?(i=e,e=n):i=n,r<i?(s.h(i,t),!1):r>e?(s.h(e,t),!1):(s.h(r,t),!0)):(r=((e-r)*(e-n)+(t-o)*(t-i))/((n-e)*(n-e)+(i-t)*(i-t)),-5e-6>r?(s.h(e,t),!1):1.000005<r?(s.h(n,i),!1):(s.h(e+r*(n-e),t+r*(i-t)),!0))},Ve:function(e,t,n,i,r,o,s,l,u){return Ke.B(e,n)&&Ke.B(t,i)?(u.h(e,t),!1):Ke.$(r,s)?Ke.$(e,n)?(Ke.qh(e,t,n,i,r,o,u),!1):Ke.qh(e,t,n,i,r,(i-t)/(n-e)*(r-e)+t,u):(l=(l-o)/(s-r),Ke.$(e,n)?(n=l*(e-r)+o,t<i?(r=t,t=i):r=i,n<r?(u.h(e,r),!1):n>t?(u.h(e,t),!1):(u.h(e,n),!0)):(s=(i-t)/(n-e),Ke.$(l,s)?(Ke.qh(e,t,n,i,r,o,u),!1):(r=(s*e-l*r+o-t)/(s-l),Ke.$(s,0)?(e<n?(i=e,e=n):i=n,r<i?(u.h(i,t),!1):r>e?(u.h(e,t),!1):(u.h(r,t),!0)):Ke.qh(e,t,n,i,r,s*(r-e)+t,u))))},MA:function(e,t,n,i,r){return Ke.Ve(n.x,n.y,i.x,i.y,e.x,e.y,t.x,t.y,r)},KA:function(e,t,n,i,r,o,s,l,u,f){function p(ye,ae){var Oe=(ye-e)*(ye-e)+(ae-t)*(ae-t);Oe<x&&(x=Oe,u.h(ye,ae))}var x=1/0;p(u.x,u.y);var N=0,O=0,F=0,K=0;if(r<s?(N=r,O=s):(N=s,O=r),o<l?(F=r,K=s):(F=s,K=r),N=(O-N)/2+f,f=(K-F)/2+f,r=(r+s)/2,o=(o+l)/2,N===0||f===0)return u;if(.5>(n>e?n-e:e-n)){if(N=1-(n-r)*(n-r)/(N*N),0>N)return u;N=Math.sqrt(N),i=-f*N+o,p(n,f*N+o),p(n,i)}else{if(n=(i-t)/(n-e),i=1/(N*N)+n*n/(f*f),l=2*n*(t-n*e)/(f*f)-2*n*o/(f*f)-2*r/(N*N),N=l*l-4*i*(2*n*e*o/(f*f)-2*t*o/(f*f)+o*o/(f*f)+r*r/(N*N)-1+(t-n*e)*(t-n*e)/(f*f)),0>N)return u;N=Math.sqrt(N),f=(-l+N)/(2*i),p(f,n*f-n*e+t),N=(-l-N)/(2*i),p(N,n*N-n*e+t)}return u},Ff:function(e,t,n,i,r,o,s,l,u){var f=1e21,p=e,x=t;if(Ke.Ve(e,t,e,i,r,o,s,l,u)){var N=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o);N<f&&(f=N,p=u.x,x=u.y)}return Ke.Ve(n,t,n,i,r,o,s,l,u)&&(N=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),N<f&&(f=N,p=u.x,x=u.y)),Ke.Ve(e,t,n,t,r,o,s,l,u)&&(t=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),t<f&&(f=t,p=u.x,x=u.y)),Ke.Ve(e,i,n,i,r,o,s,l,u)&&(e=(u.x-r)*(u.x-r)+(u.y-o)*(u.y-o),e<f&&(f=e,p=u.x,x=u.y)),u.h(p,x),1e21>f},us:function(e,t,n){return Ke.Fx(e.x,e.y,e.width,e.height,t.x,t.y,n.x,n.y)},Fx:function(e,t,n,i,r,o,s,l){var u=e+n,f=t+i;return r===s?(o<l?(s=o,o=l):s=l,e<=r&&r<=u&&s<=f&&o>=t):o===l?(r<s?(l=r,r=s):l=s,t<=o&&o<=f&&l<=u&&r>=e):!!(po(e,t,n,i,r,o)||po(e,t,n,i,s,l)||Ke.Rl(e,t,u,t,r,o,s,l)||Ke.Rl(u,t,u,f,r,o,s,l)||Ke.Rl(u,f,e,f,r,o,s,l)||Ke.Rl(e,f,e,t,r,o,s,l))},Rl:function(e,t,n,i,r,o,s,l){return e===n&&t===i&&r===s&&o===l?e===r&&t===o:0>=Ke.Fl(e,t,n,i,r,o)*Ke.Fl(e,t,n,i,s,l)&&0>=Ke.Fl(r,o,s,l,e,t)*Ke.Fl(r,o,s,l,n,i)},Fl:function(e,t,n,i,r,o){return n-=e,i-=t,e=r-e,t=o-t,o=e*i-t*n,o===0&&(o=e*n+t*i,0<o&&(o=(e-n)*n+(t-i)*i,0>o&&(o=0))),o},bp:function(e){return 0>e&&(e+=360),360<=e&&(e-=360),e},jx:function(e,t,n,i,r,o){var s=Math.PI;o||(i*=s/180,r*=s/180);var l=i>r?-1:1;o=[];var u=s/2,f=i;if(i=Math.min(2*s,Math.abs(r-i)),1e-5>i)return u=f+l*Math.min(i,u),l=e+n*Math.cos(f),f=t+n*Math.sin(f),e+=n*Math.cos(u),t+=n*Math.sin(u),n=(l+e)/2,u=(f+t)/2,o.push([l,f,n,u,n,u,e,t]),o;for(;1e-5<i;)r=f+l*Math.min(i,u),o.push(Ke.Vy(n,f,r,e,t)),i-=Math.abs(r-f),f=r;return o},Vy:function(e,t,n,i,r){var o=(n-t)/2,s=e*Math.cos(o),l=e*Math.sin(o),u=-l,f=s*s+u*u,p=f+s*s+u*l;return f=4/3*(Math.sqrt(2*f*p)-p)/(s*l-u*s),l=s-f*u,s=u+f*s,u=-s,f=o+t,o=Math.cos(f),f=Math.sin(f),[i+e*Math.cos(t),r+e*Math.sin(t),i+l*o-s*f,r+l*f+s*o,i+l*o-u*f,r+l*f+u*o,i+e*Math.cos(n),r+e*Math.sin(n)]},No:function(e,t,n,i,r,o,s){n=Math.floor((e-n)/r)*r+n,i=Math.floor((t-i)/o)*o+i;var l=n;return n+r-e<r/2&&(l=n+r),e=i,i+o-t<o/2&&(e=i+o),s.h(l,e),s},vx:function(e,t){var n=Math.max(e,t);e=Math.min(e,t);var i;do t=n%e,n=i=e,e=t;while(0<t);return i},$y:function(e,t,n,i){var r=0>n,o=0>i;if(e<t)var s=1,l=0;else s=0,l=1;var u=s===0?e:t,f=s===0?n:i;return(s===0?r:o)&&(f=-f),s=l,n=s===0?n:i,(s===0?r:o)&&(n=-n),Ke.az(u,s===0?e:t,f,n,0,0)},az:function(e,t,n,i,r,o){if(0<i)if(0<n){r=e*e,o=t*t,e*=n;var s=t*i,l=-o+s,u=-o+Math.sqrt(e*e+s*s);t=l;for(var f=0;9999999999>f&&(t=.5*(l+u),!(t===l||t===u));++f){var p=e/(t+r),x=s/(t+o);if(p=p*p+x*x-1,0<p)l=t;else if(0>p)u=t;else break}n=r*n/(t+r)-n,i=o*i/(t+o)-i,n=Math.sqrt(n*n+i*i)}else n=Math.abs(i-t);else i=e*e-t*t,o=e*n,o<i?(i=o/i,o=t*Math.sqrt(Math.abs(1-i*i)),n=e*i-n,n=Math.sqrt(n*n+o*o)):n=Math.abs(n-e);return n},Ze:new ue,um:new ue,Mf:new ue,Nf:0,vm:100};Ke.za=Ke.AA;function An(e){Wi(this),this.l=2,e===void 0&&(e=An.o),this.na=e,this.Ec=this.Dc=this.pd=this.od=0,e===An.o?this.ee=new Xt:(An.V===null&&(An.V=new Xt().freeze()),this.ee=An.V),this.aq=this.ee.Ja,this.Ip=new Ht().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Yo,this.gg=Oo,this.Rk=this.Sk=NaN,this.Uf=Sn}An.prototype.copy=function(){var e=new An;if(e.l=this.l&-2,e.na=this.na,e.od=this.od,e.pd=this.pd,e.Dc=this.Dc,e.Ec=this.Ec,this.na===An.o){for(var t=this.ee.s,n=e.ee,i=0;i<t.length;i++)n.add(t[i].copy());e.ee=n}else e.ee=this.ee;return e.aq=this.aq,e.Ip.assign(this.Ip),e.tk=this.tk,e.ym=this.ym,e.zm=this.zm,e.fg=this.fg.J(),e.gg=this.gg.J(),e.Sk=this.Sk,e.Rk=this.Rk,e.Uf=this.Uf,e},An.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},An.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==An.o)return this;var e=this.figures;e.freeze(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].freeze();return this},An.prototype.ka=function(){if(Object.isFrozen(this)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==An.o)return this;var e=this.figures;e.ka(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].ka();return this},An.prototype.Xa=function(e){if(!(e instanceof An))return!1;if(this.type!==e.type)return this.type===An.j&&e.type===An.o?Cu(this,e):e.type===An.j&&this.type===An.o?Cu(e,this):!1;if(this.type===An.o){var t=this.figures.s;e=e.figures.s;var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(!t[i].Xa(e[i]))return!1;return!0}return Ke.B(this.startX,e.startX)&&Ke.B(this.startY,e.startY)&&Ke.B(this.endX,e.endX)&&Ke.B(this.endY,e.endY)};function Cu(e,t){return e.type!==An.j||t.type!==An.o?!1:!!(t.figures.count===1&&(t=t.figures.M(0),t.segments.count===1&&Ke.B(e.startX,t.startX)&&Ke.B(e.startY,t.startY)&&(t=t.segments.M(0),t.type===Gr&&Ke.B(e.endX,t.endX)&&Ke.B(e.endY,t.endY))))}An.ia=function(e){return e.toString()},An.prototype.qb=function(e){e.classType===An&&(this.type=e)},An.prototype.toString=function(e){switch(e===void 0&&(e=-1),this.type){case An.j:return 0>e?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e)+"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);case An.u:var t=new Ht(this.startX,this.startY,0,0);return t.Kv(this.endX,this.endY,0,0),0>e?"M"+t.x.toString()+" "+t.y.toString()+"H"+t.right.toString()+"V"+t.bottom.toString()+"H"+t.left.toString()+"z":"M"+t.x.toFixed(e)+" "+t.y.toFixed(e)+"H"+t.right.toFixed(e)+"V"+t.bottom.toFixed(e)+"H"+t.left.toFixed(e)+"z";case An.F:if(t=new Ht(this.startX,this.startY,0,0),t.Kv(this.endX,this.endY,0,0),0>e)return e=t.left.toString()+" "+(t.y+t.height/2).toString(),"M"+e+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+(t.right.toString()+" "+(t.y+t.height/2).toString())+"A"+(t.width/2).toString()+" "+(t.height/2).toString()+" 0 0 1 "+e;var n=t.left.toFixed(e)+" "+(t.y+t.height/2).toFixed(e);return"M"+n+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+(t.right.toFixed(e)+" "+(t.y+t.height/2).toFixed(e))+"A"+(t.width/2).toFixed(e)+" "+(t.height/2).toFixed(e)+" 0 0 1 "+n;case An.o:t="",n=this.figures.s;for(var i=n.length,r=0;r<i;r++){var o=n[r];0<r&&(t+=" x "),o.isFilled&&(t+="F "),t+=o.toString(e)}return t;default:return this.type.toString()}},An.nb=function(e){e=e.split(/[Xx]/);for(var t=e.length,n="",i=0;i<t;i++){var r=e[i];n=r.match(/[Ff]/)!==null?i===0?n+r:n+("X"+(r[0]===" "?"":" ")+r):n+((i===0?"":"X ")+"F"+(r[0]===" "?"":" ")+r)}return n},An.parse=function(e,t){function n(){return K>=He-1?!0:f[K+1].match(qe)!==null}function i(){return K++,f[K]}function r(Yi){var Ui=parseFloat(i()),_r=parseFloat(i());ye===ye.toLowerCase()&&(Ui=Fe.x+Ui,_r=Fe.y+_r),Yi.h(Ui,_r)}function o(){return r(Fe),Fe}function s(){return r(Oe),Oe}function l(){var Yi=ae.toLowerCase();return Yi!=="c"&&Yi!=="s"&&Yi!=="q"&&Yi!=="t"?Fe:new ce(2*Fe.x-Oe.x,2*Fe.y-Oe.y)}t===void 0&&(t=!1);var u=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;e=e.replace(/,/gm," "),e=e.replace(u,"$1 $2"),e=e.replace(u,"$1 $2"),e=e.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),e=e.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),e=e.replace(/([0-9])([+\-])/gm,"$1 $2"),e=e.replace(/[\s\r\t\n]+/gm," "),e=e.replace(/^\s+|\s+$/g,"");var f=e.split(" ");for(e=0;e<f.length;e++){var p=f[e];if(p.match(/(\.[0-9]*)(\.)/gm)!==null){u=jt();for(var x="",N=!1,O=0;O<p.length;O++){var F=p[O];F!=="."||N?F==="."?(u.push(x),x="."):x+=F:(N=!0,x+=F)}for(u.push(x),f.splice(e,1),p=0;p<u.length;p++)f.splice(e+p,0,u[p]);e+=u.length-1,gn(u)}}var K=-1,ye="",ae="";u=new ce(0,0);var Oe=new ce(0,0),Fe=new ce(0,0),He=f.length;e=zy(null),N=x=p=!1,O=!0,F=null;for(var qe=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(K>=He-1);)if(ae=ye,ye=i(),ye!=="")switch(ye.toUpperCase()){case"X":O=!0,x=p=!1;break;case"M":for(F=o(),e.mc===null||O===!0?(If(e,F.x,F.y,p,!x,N),O=!1):e.moveTo(F.x,F.y),u.assign(Fe);!n();)F=o(),e.lineTo(F.x,F.y);break;case"L":for(;!n();)F=o(),e.lineTo(F.x,F.y);break;case"H":for(;!n();)Fe=new ce((ye===ye.toLowerCase()?Fe.x:0)+parseFloat(i()),Fe.y),e.lineTo(Fe.x,Fe.y);break;case"V":for(;!n();)Fe=new ce(Fe.x,(ye===ye.toLowerCase()?Fe.y:0)+parseFloat(i())),e.lineTo(Fe.x,Fe.y);break;case"C":for(;!n();){F=new ce,r(F);var bt=s(),jn=o();bh(e,F.x,F.y,bt.x,bt.y,jn.x,jn.y)}break;case"S":for(;!n();)F=l(),bt=s(),jn=o(),bh(e,F.x,F.y,bt.x,bt.y,jn.x,jn.y);break;case"Q":for(;!n();)F=s(),bt=o(),Z0(e,F.x,F.y,bt.x,bt.y);break;case"T":for(;!n();)Oe=F=l(),bt=o(),Z0(e,F.x,F.y,bt.x,bt.y);break;case"B":for(;!n();){F=parseFloat(i()),bt=parseFloat(i()),jn=parseFloat(i());var oi=parseFloat(i()),ei=parseFloat(i()),Nn=ei,cn=!1;n()||(Nn=parseFloat(i()),n()||(cn=parseFloat(i())!==0)),ye===ye.toLowerCase()&&(jn+=Fe.x,oi+=Fe.y),e.arcTo(F,bt,jn,oi,ei,Nn,cn)}break;case"A":for(;!n();)F=Math.abs(parseFloat(i())),bt=Math.abs(parseFloat(i())),jn=parseFloat(i()),ei=oi=!1,cn=Nn=0,Nn=i(),Nn.length===1?(oi=!!parseFloat(Nn),ei=!!parseFloat(i()),Nn=parseFloat(i())):Nn.length===2?(oi=!!parseFloat(Nn[0]),ei=!!parseFloat(Nn[1]),Nn=parseFloat(i())):(oi=!!parseFloat(Nn[0]),ei=!!parseFloat(Nn[1]),Nn=parseFloat(Nn.slice(2))),cn=parseFloat(i()),ye===ye.toLowerCase()&&(Nn=Fe.x+Nn,cn=Fe.y+cn),Fe.h(Nn,cn),Fb(e,F,bt,jn,oi,ei,Nn,cn);break;case"Z":Pb(e),Fe.assign(u);break;case"F":for(F="",bt=1;f[K+bt];)if(f[K+bt]==="0")N=!0,bt++;else if(f[K+bt].match(/[Uu]/)!==null)bt++;else if(f[K+bt].match(qe)===null)bt++;else{F=f[K+bt];break}F.match(/[Mm]/)?p=!0:0<e.mc.segments.length&&(e.mc.isFilled=!0);break;case"U":for(F="",bt=1;f[K+bt];)if(f[K+bt].match(/[Ff]/)!==null)bt++;else if(f[K+bt].match(qe)===null)bt++;else{F=f[K+bt];break}F.match(/[Mm]/)?x=!0:e.mc.isShadowed=!1}if(u=e.os,X0=e,t)for(t=u.figures.iterator;t.next();)t.value.isFilled=!0;return u},An.Ha=function(e,t){for(var n=e.length,i=ce.alloc(),r=0;r<n;r++){var o=e[r];i.x=o[0],i.y=o[1],t.Ga(i),o[0]=i.x,o[1]=i.y,i.x=o[2],i.y=o[3],t.Ga(i),o[2]=i.x,o[3]=i.y,i.x=o[4],i.y=o[5],t.Ga(i),o[4]=i.x,o[5]=i.y,i.x=o[6],i.y=o[7],t.Ga(i),o[6]=i.x,o[7]=i.y}ce.free(i)},An.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===An.o){if(this.aq!==this.figures.Ja)return!0;for(var e=this.figures.s,t=e.length,n=0;n<t;n++)if(e[n].Zu())return!0}return!1},An.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===An.o){this.aq=this.figures.Ja;for(var e=this.figures.s,t=e.length,n=0;n<t;n++){var i=e[n];i._isInvalidBounds=!1;var r=i.segments;i.sr=r.Ja,i=r.s,r=i.length;for(var o=0;o<r;o++){var s=i[o];s._isInvalidBounds=!1,s.ae=null}}}e=this.Ip,e.ka(),isNaN(this.Sk)||isNaN(this.Rk)?e.h(0,0,0,0):e.h(0,0,this.Sk,this.Rk),jl(this,e,!1),Or(e,0,0,0,0),e.freeze()},An.prototype.ix=function(){var e=new Ht;return jl(this,e,!0),e};function jl(e,t,n){switch(e.type){case An.j:case An.u:case An.F:n?t.h(e.od,e.pd,0,0):Or(t,e.od,e.pd,0,0),Or(t,e.Dc,e.Ec,0,0);break;case An.o:var i=e.figures;e=i.s,i=i.length;for(var r=0;r<i;r++){var o=e[r];n&&r===0?t.h(o.startX,o.startY,0,0):Or(t,o.startX,o.startY,0,0);for(var s=o.segments.s,l=s.length,u=o.startX,f=o.startY,p=0;p<l;p++){var x=s[p];switch(x.type){case Gr:case Wo:u=x.endX,f=x.endY,Or(t,u,f,0,0);break;case Ts:Ke.Dl(u,f,x.point1X,x.point1Y,x.point2X,x.point2Y,x.endX,x.endY,.5,t),u=x.endX,f=x.endY;break;case Na:Ke.iv(u,f,x.point1X,x.point1Y,x.endX,x.endY,.5,t),u=x.endX,f=x.endY;break;case _o:case Ma:var N=x.type===_o?Ta(x,o):Qs(x,o,u,f),O=N.length;if(O===0){u=x.type===_o?x.centerX:x.endX,f=x.type===_o?x.centerY:x.endY,Or(t,u,f,0,0);break}x=null;for(var F=0;F<O;F++)x=N[F],Ke.Dl(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],.5,t);x!==null&&(u=x[6],f=x[7]);break;default:ut("Unknown Segment type: "+x.type)}}}break;default:ut("Unknown Geometry type: "+e.type)}}An.prototype.normalize=function(){this._isFrozen&&yn(this);var e=this.ix();return this.offset(-e.x,-e.y),new ce(-e.x,-e.y)},An.prototype.offset=function(e,t){return this._isFrozen&&yn(this),this.transform(1,0,0,1,e,t),this},An.prototype.scale=function(e,t){return this._isFrozen&&yn(this),this.transform(e,0,0,t,0,0),this},An.prototype.rotate=function(e,t,n){this._isFrozen&&yn(this),t===void 0&&(t=0),n===void 0&&(n=0);var i=er.alloc();return i.reset(),i.rotate(e,t,n),this.transform(i.m11,i.m12,i.m21,i.m22,i.dx,i.dy),er.free(i),this},_=An.prototype,_.transform=function(e,t,n,i,r,o){switch(this.type){case An.j:case An.u:case An.F:var s=this.od,l=this.pd;this.od=s*e+l*n+r,this.pd=s*t+l*i+o,s=this.Dc,l=this.Ec,this.Dc=s*e+l*n+r,this.Ec=s*t+l*i+o;break;case An.o:for(var u=this.figures.s,f=u.length,p=0;p<f;p++){var x=u[p];s=x.startX,l=x.startY,x.startX=s*e+l*n+r,x.startY=s*t+l*i+o,x=x.segments.s;for(var N=x.length,O=0;O<N;O++){var F=x[O];switch(F.type){case Gr:case Wo:s=F.endX,l=F.endY,F.endX=s*e+l*n+r,F.endY=s*t+l*i+o;break;case Ts:s=F.point1X,l=F.point1Y,F.point1X=s*e+l*n+r,F.point1Y=s*t+l*i+o,s=F.point2X,l=F.point2Y,F.point2X=s*e+l*n+r,F.point2Y=s*t+l*i+o,s=F.endX,l=F.endY,F.endX=s*e+l*n+r,F.endY=s*t+l*i+o;break;case Na:s=F.point1X,l=F.point1Y,F.point1X=s*e+l*n+r,F.point1Y=s*t+l*i+o,s=F.endX,l=F.endY,F.endX=s*e+l*n+r,F.endY=s*t+l*i+o;break;case _o:s=F.centerX,l=F.centerY,F.centerX=s*e+l*n+r,F.centerY=s*t+l*i+o,t!==0&&(s=180*Math.atan2(t,e)/Math.PI,0>s&&(s+=360),F.startAngle+=s),0>e&&(F.startAngle=180-F.startAngle,F.sweepAngle=-F.sweepAngle),0>i&&(F.startAngle=-F.startAngle,F.sweepAngle=-F.sweepAngle),F.radiusX*=Math.sqrt(e*e+n*n),F.radiusY!==void 0&&(F.radiusY*=Math.sqrt(t*t+i*i));break;case Ma:if(s=F.endX,l=F.endY,F.endX=s*e+l*n+r,F.endY=s*t+l*i+o,F.radiusX===0||F.radiusY===0)break;t!==0&&(s=180*Math.atan2(t,e)/Math.PI,0>s&&(s+=360),F.xAxisRotation+=s),0>e&&(F.xAxisRotation=180-F.xAxisRotation,F.isClockwiseArc=!F.isClockwiseArc),0>i&&(F.xAxisRotation=-F.xAxisRotation,F.isClockwiseArc=!F.isClockwiseArc),F.radiusX*=Math.sqrt(e*e+n*n),F.radiusY*=Math.sqrt(t*t+i*i);break;default:ut("Unknown Segment type: "+F.type)}}}}return this._isInvalidBounds=!0,this},_.ca=function(e,t){t===void 0&&(t=0);var n=this.od,i=this.pd,r=this.Dc,o=this.Ec;switch(this.type){case An.j:return Ke.Yb(n,i,r,o,t,e.x,e.y);case An.u:var s=Ht.allocAt(Math.min(n,r)-t,Math.min(i,o)-t,Math.abs(r-n)+2*t,Math.abs(o-i)+2*t);return e=s.ca(e),Ht.free(s),e;case An.F:s=Math.min(n,r)-t;var l=Math.min(i,o)-t;return n=(Math.abs(r-n)+2*t)/2,t=(Math.abs(o-i)+2*t)/2,0>=n||0>=t?!1:(s=e.x-(s+n),l=e.y-(l+t),1>=s*s/(n*n)+l*l/(t*t));case An.o:return Pa(this,e,t,!0,!1);default:return!1}};function Pa(e,t,n,i,r){var o=t.x;t=t.y;for(var s=e.bounds.x-20,l=0,u,f,p,x,N=e.figures.s,O=N.length,F=0;F<O;F++){var K=N[F],ye=!K.isEvenOdd;if(K.isFilled){if(i&&K.ca(o,t,n))return!0;var ae=K.segments;u=K.startX,f=K.startY;for(var Oe=u,Fe=f,He=ae.s,qe=0;qe<=ae.length;qe++){var bt=void 0;if(qe!==ae.length){bt=He[qe];var jn=bt.type;e=bt.endX,x=bt.endY}else jn=Gr,e=Oe,x=Fe;switch(jn){case Wo:if(Oe=Ga(o,t,s,t,u,f,Oe,Fe),isNaN(Oe))return!0;l+=Oe,Oe=e,Fe=x;break;case Gr:if(u=Ga(o,t,s,t,u,f,e,x),isNaN(u))return!0;l+=u;break;case Ts:p=Ke.Fo(u,f,bt.point1X,bt.point1Y,bt.point2X,bt.point2Y,e,x,s,t,o,t,.5),l+=p;break;case Na:p=Ke.Fo(u,f,(u+2*bt.point1X)/3,(f+2*bt.point1Y)/3,(2*bt.point1X+e)/3,(2*bt.point1Y+x)/3,e,x,s,t,o,t,.5),l+=p;break;case _o:case Ma:jn=bt.type===_o?Ta(bt,K):Qs(bt,K,u,f);var oi=jn.length;if(oi===0){if(u=Ga(o,t,s,t,u,f,bt.type===_o?bt.centerX:bt.endX,bt.type===_o?bt.centerY:bt.endY),isNaN(u))return!0;l+=u;break}bt=null;for(var ei=0;ei<oi;ei++){if(bt=jn[ei],ei===0){if(p=Ga(o,t,s,t,u,f,bt[0],bt[1]),isNaN(p))return!0;l+=p}p=Ke.Fo(bt[0],bt[1],bt[2],bt[3],bt[4],bt[5],bt[6],bt[7],s,t,o,t,.5),l+=p}bt!==null&&(e=bt[6],x=bt[7]);break;default:ut("Unknown Segment type: "+bt.type)}u=e,f=x}if(ye){if(l!==0)return!0}else if(l%2!==0)return!0;l=0}else if(K.ca(o,t,r?n:n+2))return!0}return!1}function Ga(e,t,n,i,r,o,s,l){if(Ke.Yb(r,o,s,l,.05,e,t))return NaN;var u=(e-n)*(o-l);if(u===0)return 0;var f=((e*i-t*n)*(r-s)-(e-n)*(r*l-o*s))/u;if(t=(e*i-t*n)*(o-l)/u,f>=e)return 0;if((r>s?r-s:s-r)<(o>l?o-l:l-o)){if(o<l){if(t<o||t>l)return 0}else if(t<l||t>o)return 0}else if(r<s){if(f<r||f>s)return 0}else if(f<s||f>r)return 0;return 0<u?1:-1}function Wa(e,t,n,i){e=e.figures.s;for(var r=e.length,o=0;o<r;o++)if(e[o].ca(t,n,i))return!0;return!1}_.Pu=function(e,t){if(0>e?e=0:1<e&&(e=1),t===void 0&&(t=new ce),this.type===An.j)return t.h(this.startX+e*(this.endX-this.startX),this.startY+e*(this.endY-this.startY)),t;for(var n=this.flattenedSegments,i=this.flattenedLengths,r=n.length,o=this.flattenedTotalLength*e,s=0,l=0;l<r;l++){var u=i[l],f=u.length;for(e=0;e<f;e++){var p=u[e];if(s+p>=o)return i=o-s,i=p===0?0:i/p,n=n[l],l=n[2*e],r=n[2*e+1],t.h(l+(n[2*e+2]-l)*i,r+(n[2*e+3]-r)*i),t;s+=p}}return t},_.wx=function(e){if(0>e?e=0:1<e&&(e=1),this.type===An.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var t=this.flattenedSegments,n=this.flattenedLengths,i=t.length,r=this.flattenedTotalLength*e,o=0,s=0;s<i;s++){var l=n[s],u=l.length;for(e=0;e<u;e++){var f=l[e];if(o+f>=r)return r=t[s],t=r[2*e],n=r[2*e+1],i=r[2*e+2],e=r[2*e+3],1>Math.abs(i-t)&&1>Math.abs(e-n)?0:1>Math.abs(i-t)?0<=e-n?90:270:1>Math.abs(e-n)?0<=i-t?0:180:180*Math.atan2(e-n,i-t)/Math.PI;o+=f}}return NaN},_.Qu=function(e,t){if(0>e?e=0:1<e&&(e=1),t===void 0&&(t=[]),t.length=3,this.type===An.j)return t[0]=this.startX+e*(this.endX-this.startX),t[1]=this.startY+e*(this.endY-this.startY),t[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,t;for(var n=this.flattenedSegments,i=this.flattenedLengths,r=n.length,o=this.flattenedTotalLength*e,s=0,l=0;l<r;l++){var u=i[l],f=u.length;for(e=0;e<f;e++){var p=u[e];if(s+p>=o)return i=o-s,i=p===0?0:i/p,p=n[l],n=p[2*e],l=p[2*e+1],r=p[2*e+2],e=p[2*e+3],t[0]=n+(r-n)*i,t[1]=l+(e-l)*i,t[2]=1>Math.abs(r-n)&&1>Math.abs(e-l)?0:1>Math.abs(r-n)?0<=e-l?90:270:1>Math.abs(e-l)?0<=r-n?0:180:180*Math.atan2(e-l,r-n)/Math.PI,t;s+=p}}return t},_.xx=function(e){if(this.type===An.j){var t=this.startX,n=this.startY,i=this.endX,r=this.endY;if(t!==i||n!==r){var o=e.x;if(e=e.y,t===i){if(n<r){var s=n;i=r}else s=r,i=n;return e<=s?s===n?0:1:e>=i?i===n?0:1:Math.abs(e-n)/(i-s)}if(n===r)return t<i?s=t:(s=i,i=t),o<=s?s===t?0:1:o>=i?i===t?0:1:Math.abs(o-t)/(i-s);s=(i-t)*(i-t)+(r-n)*(r-n);var l=ce.alloc();return Ke.qh(t,n,i,r,o,e,l),e=l.x,o=l.y,ce.free(l),Math.sqrt(((e-t)*(e-t)+(o-n)*(o-n))/s)}}else if(this.type===An.u){s=this.startX,l=this.startY;var u=this.endX;if(r=this.endY,s!==u||l!==r){t=u-s,n=r-l,o=2*t+2*n,i=e.x,e=e.y,i=Math.min(Math.max(i,s),u),e=Math.min(Math.max(e,l),r),s=Math.abs(i-s),u=Math.abs(i-u),l=Math.abs(e-l),r=Math.abs(e-r);var f=Math.min(s,u,l,r);if(f===l)return i/o;if(f===u)return(t+e)/o;if(f===r)return(2*t+n-i)/o;if(f===s)return(2*t+2*n-e)/o}}else{t=this.flattenedSegments,n=this.flattenedLengths,o=this.flattenedTotalLength,i=ce.alloc(),r=1/0,l=s=0,u=t.length;for(var p=f=0,x=0;x<u;x++)for(var N=t[x],O=n[x],F=N.length,K=0;K<F;K+=2){var ye=N[K],ae=N[K+1];if(K!==0){Ke.qh(f,p,ye,ae,e.x,e.y,i);var Oe=(i.x-e.x)*(i.x-e.x)+(i.y-e.y)*(i.y-e.y);Oe<r&&(r=Oe,s=l,s+=Math.sqrt((i.x-f)*(i.x-f)+(i.y-p)*(i.y-p))),l+=O[(K-2)/2]}f=ye,p=ae}return ce.free(i),e=s/o,0>e?0:1<e?1:e}return 0};function Bu(e){if(e.tk===null){var t=e.tk=[],n=e.ym=[],i=[],r=[];if(e.type===An.j)i.push(e.startX),i.push(e.startY),i.push(e.endX),i.push(e.endY),t.push(i),r.push(Math.sqrt((e.startX-e.endX)*(e.startX-e.endX)+(e.startY-e.endY)*(e.startY-e.endY))),n.push(r);else if(e.type===An.u)i.push(e.startX),i.push(e.startY),i.push(e.endX),i.push(e.startY),i.push(e.endX),i.push(e.endY),i.push(e.startX),i.push(e.endY),i.push(e.startX),i.push(e.startY),t.push(i),r.push(Math.abs(e.startX-e.endX)),r.push(Math.abs(e.startY-e.endY)),r.push(Math.abs(e.startX-e.endX)),r.push(Math.abs(e.startY-e.endY)),n.push(r);else if(e.type===An.F){var o=new us;o.startX=e.endX,o.startY=(e.startY+e.endY)/2;var s=new xr(_o);if(s.startAngle=0,s.sweepAngle=360,s.centerX=(e.startX+e.endX)/2,s.centerY=(e.startY+e.endY)/2,s.radiusX=Math.abs(e.startX-e.endX)/2,s.radiusY=Math.abs(e.startY-e.endY)/2,o.add(s),e=Ta(s,o),r=e.length,r===0)i.push(s.centerX),i.push(s.centerY);else{s=o.startX,o=o.startY;for(var l=0;l<r;l++){var u=e[l];Ke.Qe(s,o,u[2],u[3],u[4],u[5],u[6],u[7],.5,i),s=u[6],o=u[7]}}t.push(i),n.push(Al(i))}else for(e=e.figures.iterator;e.next();){r=e.value,i=[],i.push(r.startX),i.push(r.startY),s=r.startX,o=r.startY,l=s,u=o;for(var f=r.segments.s,p=f.length,x=0;x<p;x++){var N=f[x];switch(N.type){case Wo:4<=i.length&&(t.push(i),n.push(Al(i))),i=[],i.push(N.endX),i.push(N.endY),s=N.endX,o=N.endY,l=s,u=o;break;case Gr:i.push(N.endX),i.push(N.endY),s=N.endX,o=N.endY;break;case Ts:Ke.Qe(s,o,N.point1X,N.point1Y,N.point2X,N.point2Y,N.endX,N.endY,.5,i),s=N.endX,o=N.endY;break;case Na:Ke.ep(s,o,N.point1X,N.point1Y,N.endX,N.endY,.5,i),s=N.endX,o=N.endY;break;case _o:var O=Ta(N,r),F=O.length;if(F===0){i.push(N.centerX),i.push(N.centerY),s=N.centerX,o=N.centerY;break}for(var K=0;K<F;K++){var ye=O[K];Ke.Qe(s,o,ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,i),s=ye[6],o=ye[7]}break;case Ma:if(O=Qs(N,r,s,o),F=O.length,K=N.endX,ye=N.endY,F===0){i.push(K),i.push(ye),s=K,o=ye;break}for(K=0;K<F;K++)ye=O[K],Ke.Qe(s,o,ye[2],ye[3],ye[4],ye[5],ye[6],ye[7],.5,i),s=ye[6],o=ye[7];break;default:ut("Segment not of valid type: "+N.type)}N.isClosed&&(i.push(l),i.push(u))}4<=i.length&&(t.push(i),n.push(Al(i)))}}}function Al(e){for(var t=[],n=0,i=0,r=e.length,o=0;o<r;o+=2){var s=e[o],l=e[o+1];o!==0&&t.push(Math.sqrt(Br(n,i,s,l))),n=s,i=l}return t}_.add=function(e){return this.ee.add(e),this},_.pm=function(e,t,n,i,r,o,s,l){return this._isFrozen&&yn(this),this.fg=new ui(e,t,r,o).freeze(),this.gg=new ui(n,i,s,l).freeze(),this},at.Object.defineProperties(An.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return Bu(this),this.tk}},flattenedLengths:{get:function(){return Bu(this),this.ym}},flattenedTotalLength:{get:function(){var e=this.zm;if(isNaN(e)){if(this.type===An.j){e=Math.abs(this.endX-this.startX);var t=Math.abs(this.endY-this.startY);e=Math.sqrt(e*e+t*t)}else if(this.type===An.u)e=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{t=this.flattenedLengths;for(var n=t.length,i=e=0;i<n;i++)for(var r=t[i],o=r.length,s=0;s<o;s++)e+=r[s]}this.zm=e}return e}},type:{get:function(){return this.na},set:function(e){this.na!==e&&(this._isFrozen&&yn(this,e),this.na=e,e===An.o?this.ee=new Xt:(An.V===null&&(An.V=new Xt().freeze()),this.ee=An.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(e){this.od!==e&&(this._isFrozen&&yn(this,e),this.od=e,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(e){this.pd!==e&&(this._isFrozen&&yn(this,e),this.pd=e,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(e){this.Dc!==e&&(this._isFrozen&&yn(this,e),this.Dc=e,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(e){this.Ec!==e&&(this._isFrozen&&yn(this,e),this.Ec=e,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(e){this.ee!==e&&(this._isFrozen&&yn(this,e),this.ee=e,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(e){this._isFrozen&&yn(this,e),this.fg=e.J()}},spot2:{get:function(){return this.gg},set:function(e){this._isFrozen&&yn(this,e),this.gg=e.J()}},defaultStretch:{get:function(){return this.Uf},set:function(e){this._isFrozen&&yn(this,e),this.Uf=e}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),An.prototype.setSpots=An.prototype.pm,An.prototype.add=An.prototype.add,An.prototype.getFractionForPoint=An.prototype.xx,An.prototype.getPointAndAngleAlongPath=An.prototype.Qu,An.prototype.getAngleAlongPath=An.prototype.wx,An.prototype.getPointAlongPath=An.prototype.Pu,An.prototype.containsPoint=An.prototype.ca,An.prototype.transform=An.prototype.transform,An.prototype.rotate=An.prototype.rotate,An.prototype.scale=An.prototype.scale,An.prototype.offset=An.prototype.offset,An.prototype.normalize=An.prototype.normalize,An.prototype.computeBoundsWithoutOrigin=An.prototype.ix,An.prototype.equalsApprox=An.prototype.Xa,An.className="Geometry",An.j=new qt(An,"Line",0),An.u=new qt(An,"Rectangle",1),An.F=new qt(An,"Ellipse",2),An.o=new qt(An,"Path",3),An.V=null,An.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",An.className="Geometry",An.stringify=An.ia,An.fillPath=An.nb,An.parse=An.parse,An.Line=An.j,An.Rectangle=An.u,An.Ellipse=An.F,An.Path=An.o;function us(e,t,n,i,r){Wi(this),n===void 0&&(n=!0),i===void 0&&(i=!0),r===void 0&&(r=!1),this.l=2|(n?4:0)|(i?8:0)|(r?16:0),e!==void 0?this.od=e:this.od=0,t!==void 0?this.pd=t:this.pd=0,this.pl=new Xt,this.sr=this.pl.Ja,this.fw=null}us.prototype.copy=function(){var e=new us;e.l=this.l&-2,e.od=this.od,e.pd=this.pd;for(var t=this.pl.s,n=t.length,i=e.pl,r=0;r<n;r++){var o=t[r].copy();i.add(o)}return e.sr=this.sr,e.fw=this.fw,e},_=us.prototype,_.Xa=function(e){if(!(e instanceof us&&Ke.B(this.startX,e.startX)&&Ke.B(this.startY,e.startY)))return!1;var t=this.segments.s;e=e.segments.s;var n=t.length;if(n!==e.length)return!1;for(var i=0;i<n;i++)if(!t[i].Xa(e[i]))return!1;return!0},_.toString=function(e){e===void 0&&(e=-1);for(var t=0>e?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(e)+" "+this.startY.toFixed(e),n=this.segments.s,i=n.length,r=0;r<i;r++)t+=" "+n[r].toString(e);return t},_.freeze=function(){this._isFrozen=!0;var e=this.segments;e.freeze();var t=e.s;e=e.length;for(var n=0;n<e;n++)t[n].freeze();return this},_.ka=function(){this._isFrozen=!1;var e=this.segments;e.ka(),e=e.s;for(var t=e.length,n=0;n<t;n++)e[n].ka();return this},_.Zu=function(){if(this._isInvalidBounds)return!0;var e=this.segments;if(this.sr!==e.Ja)return!0;e=e.s;for(var t=e.length,n=0;n<t;n++)if(e[n]._isInvalidBounds)return!0;return!1},_.add=function(e){return this.pl.add(e),this},_.ca=function(e,t,n){for(var i=this.startX,r=this.startY,o=i,s=r,l=this.segments.s,u=l.length,f=0;f<u;f++){var p=l[f];switch(p.type){case Wo:o=p.endX,s=p.endY,i=p.endX,r=p.endY;break;case Gr:if(Ke.Yb(i,r,p.endX,p.endY,n,e,t))return!0;i=p.endX,r=p.endY;break;case Ts:if(Ke.cs(i,r,p.point1X,p.point1Y,p.point2X,p.point2Y,p.endX,p.endY,.5,e,t,n))return!0;i=p.endX,r=p.endY;break;case Na:if(Ke.jv(i,r,p.point1X,p.point1Y,p.endX,p.endY,.5,e,t,n))return!0;i=p.endX,r=p.endY;break;case _o:case Ma:var x=p.type===_o?Ta(p,this):Qs(p,this,i,r),N=x.length,O=p.type===_o?p.centerX:p.endX,F=p.type===_o?p.centerY:p.endY;if(N===0){if(Ke.Yb(i,r,O,F,n,e,t))return!0;i=O,r=F;break}for(O=null,F=0;F<N;F++)if(O=x[F],F===0&&Ke.Yb(i,r,O[0],O[1],n,e,t)||Ke.cs(O[0],O[1],O[2],O[3],O[4],O[5],O[6],O[7],.5,e,t,n))return!0;O!==null&&(i=O[6],r=O[7]);break;default:ut("Unknown Segment type: "+p.type)}if(p.isClosed&&(i!==o||r!==s)&&Ke.Yb(i,r,o,s,n,e,t))return!0}return!1},at.Object.defineProperties(us.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(e){this._isFrozen&&yn(this,e),this.l=e?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(e){this._isFrozen&&yn(this,e),this.l=e?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(e){this._isFrozen&&yn(this,e),this.l=e?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(e){this._isFrozen&&yn(this,e),this.od=e,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(e){this._isFrozen&&yn(this,e),this.pd=e,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(e){this._isFrozen&&yn(this,e),this.pl=e,this._isInvalidBounds=!0}}}),us.prototype.add=us.prototype.add,us.prototype.equalsApprox=us.prototype.Xa,us.className="PathFigure";function xr(e,t,n,i,r,o,s,l){Wi(this),e===void 0&&(e=Gr),this.na=e,this.l=2,t!==void 0?this.Dc=t:this.Dc=0,n!==void 0?this.Ec=n:this.Ec=0,i===void 0&&(i=0),r===void 0&&(r=0),o===void 0&&(o=0),s===void 0&&(s=0),e===Ma?(e=o%360,0>e&&(e+=360),this.Ne=e,this.Vh=0,this.Wh=Math.max(i,0),this.Pg=Math.max(r,0),typeof s=="boolean"?s&&(this.isLargeArc=!0):typeof s=="number"&&s&&(this.isLargeArc=!0),l&&(this.isClockwiseArc=!0)):(this.Ne=i,this.Vh=r,e===_o&&(o=Math.max(o,0)),this.Wh=o,typeof s=="number"?(e===_o&&(s=Math.max(s,0)),this.Pg=s):this.Pg=0),this.ae=null}xr.prototype.copy=function(){var e=new xr;return e.na=this.na,e.l=this.l&-2,e.Dc=this.Dc,e.Ec=this.Ec,e.Ne=this.Ne,e.Vh=this.Vh,e.Wh=this.Wh,e.Pg=this.Pg,e},_=xr.prototype,_.Xa=function(e){if(!(e instanceof xr)||this.type!==e.type||this.isClosed!==e.isClosed)return!1;switch(this.type){case Wo:case Gr:return Ke.B(this.endX,e.endX)&&Ke.B(this.endY,e.endY);case Ts:return Ke.B(this.endX,e.endX)&&Ke.B(this.endY,e.endY)&&Ke.B(this.point1X,e.point1X)&&Ke.B(this.point1Y,e.point1Y)&&Ke.B(this.point2X,e.point2X)&&Ke.B(this.point2Y,e.point2Y);case Na:return Ke.B(this.endX,e.endX)&&Ke.B(this.endY,e.endY)&&Ke.B(this.point1X,e.point1X)&&Ke.B(this.point1Y,e.point1Y);case _o:return Ke.B(this.startAngle,e.startAngle)&&Ke.B(this.sweepAngle,e.sweepAngle)&&Ke.B(this.centerX,e.centerX)&&Ke.B(this.centerY,e.centerY)&&Ke.B(this.radiusX,e.radiusX)&&Ke.B(this.radiusY,e.radiusY);case Ma:return this.isClockwiseArc===e.isClockwiseArc&&this.isLargeArc===e.isLargeArc&&Ke.B(this.xAxisRotation,e.xAxisRotation)&&Ke.B(this.endX,e.endX)&&Ke.B(this.endY,e.endY)&&Ke.B(this.radiusX,e.radiusX)&&Ke.B(this.radiusY,e.radiusY);default:return!1}},_.qb=function(e){e.classType===xr&&(this.type=e)},_.toString=function(e){switch(e===void 0&&(e=-1),this.type){case Wo:e=0>e?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case Gr:e=0>e?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case Ts:e=0>e?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.point2X.toFixed(e)+" "+this.point2Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case Na:e=0>e?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(e)+" "+this.point1Y.toFixed(e)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;case _o:e=0>e?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(e)+" "+this.sweepAngle.toFixed(e)+" "+this.centerX.toFixed(e)+" "+this.centerY.toFixed(e)+" "+this.radiusX.toFixed(e)+" "+this.radiusY.toFixed(e);break;case Ma:e=0>e?"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(e)+" "+this.radiusY.toFixed(e)+" "+this.xAxisRotation.toFixed(e)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(e)+" "+this.endY.toFixed(e);break;default:e=this.type.toString()}return e+(this.isClosed?"z":"")},_.freeze=function(){return this._isFrozen=!0,this},_.ka=function(){return this._isFrozen=!1,this},_.close=function(){return this.isClosed=!0,this};function Ta(e,t){if(e.ae!==null&&t._isInvalidBounds===!1)return e.ae;var n=e.radiusX,i=e.radiusY;if(i===void 0&&(i=n),n===0||i===0)return e.ae=[],e.ae;t=e.Ne;var r=e.Vh,o=Ke.jx(0,0,n<i?n:i,e.startAngle,e.startAngle+e.sweepAngle,!1);if(n!==i){var s=er.alloc();s.reset(),n<i?s.scale(1,i/n):s.scale(n/i,1),An.Ha(o,s),er.free(s)}for(n=o.length,i=0;i<n;i++)s=o[i],s[0]+=t,s[1]+=r,s[2]+=t,s[3]+=r,s[4]+=t,s[5]+=r,s[6]+=t,s[7]+=r;return e.ae=o,e.ae}function Qs(e,t,n,i){function r(K,ye,ae,Oe){return(K*Oe<ye*ae?-1:1)*Math.acos((K*ae+ye*Oe)/(Math.sqrt(K*K+ye*ye)*Math.sqrt(ae*ae+Oe*Oe)))}if(e.ae!==null&&t._isInvalidBounds===!1)return e.ae;if(e.radiusX===0||e.radiusY===0)return e.ae=[],e.ae;t=e.Wh;var o=e.Pg;t===0&&(t=1e-4),o===0&&(o=1e-4);var s=Math.PI/180*e.Ne,l=e.isLargeArc,u=e.isClockwiseArc,f=e.Dc,p=e.Ec,x=Math.cos(s),N=Math.sin(s),O=x*(n-f)/2+N*(i-p)/2;s=-N*(n-f)/2+x*(i-p)/2;var F=O*O/(t*t)+s*s/(o*o);return 1<F&&(t*=Math.sqrt(F),o*=Math.sqrt(F)),F=(l===u?-1:1)*Math.sqrt((t*t*o*o-t*t*s*s-o*o*O*O)/(t*t*s*s+o*o*O*O)),isNaN(F)&&(F=0),l=F*t*s/o,F=F*-o*O/t,isNaN(l)&&(l=0),isNaN(F)&&(F=0),n=(n+f)/2+x*l-N*F,i=(i+p)/2+N*l+x*F,p=r(1,0,(O-l)/t,(s-F)/o),x=(O-l)/t,f=(s-F)/o,O=(-O-l)/t,l=(-s-F)/o,s=r(x,f,O,l),O=(x*O+f*l)/(Math.sqrt(x*x+f*f)*Math.sqrt(O*O+l*l)),-1>=O?s=Math.PI:1<=O&&(s=0),!u&&0<s&&(s-=2*Math.PI),u&&0>s&&(s+=2*Math.PI),u=t>o?1:t/o,O=t>o?o/t:1,t=Ke.jx(0,0,t>o?t:o,p,p+s,!0),o=er.alloc(),o.reset(),o.translate(n,i),o.rotate(e.Ne,0,0),o.scale(u,O),An.Ha(t,o),er.free(o),e.ae=t,e.ae}at.Object.defineProperties(xr.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(e){this.l=e?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(e){this.l=e?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(e){this.isClosed!==e&&(this.l=e?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(e){this._isFrozen&&yn(this,e),this.na=e,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(e){this._isFrozen&&yn(this,e),this.Dc=e,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(e){this._isFrozen&&yn(this,e),this.Ec=e,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(e){this._isFrozen&&yn(this,e),this.Ne=e,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(e){this._isFrozen&&yn(this,e),this.Vh=e,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(e){this._isFrozen&&yn(this,e),this.Wh=e,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(e){this._isFrozen&&yn(this,e),this.Pg=e,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(e){this._isFrozen&&yn(this,e),this.Ne=e,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(e){this._isFrozen&&yn(this,e),this.Vh=e,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(e){0>e&&rn(e,">= zero",xr,"radiusX"),this._isFrozen&&yn(this,e),this.Wh=e,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(e){0>e&&rn(e,">= zero",xr,"radiusY"),this._isFrozen&&yn(this,e),this.Pg=e,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(e){this._isFrozen&&yn(this,e),e%=360,0>e&&(e+=360),this.Dc=e,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(e){this._isFrozen&&yn(this,e),360<e&&(e=360),-360>e&&(e=-360),this.Ec=e,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(e){this._isFrozen&&yn(this,e),this.l=e?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(e){this._isFrozen&&yn(this,e),this.l=e?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(e){this._isFrozen&&yn(this,e),e%=360,0>e&&(e+=360),this.Ne=e,this._isInvalidBounds=!0}}}),xr.prototype.equalsApprox=xr.prototype.Xa;var Wo=new qt(xr,"Move",0),Gr=new qt(xr,"Line",1),Ts=new qt(xr,"Bezier",2),Na=new qt(xr,"QuadraticBezier",3),_o=new qt(xr,"Arc",4),Ma=new qt(xr,"SvgArc",4);xr.className="PathSegment",xr.Move=Wo,xr.Line=Gr,xr.Bezier=Ts,xr.QuadraticBezier=Na,xr.Arc=_o,xr.SvgArc=Ma;function Hs(){this.H=null,this.xu=new ce(0,0).freeze(),this.mt=new ce(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}Hs.prototype.copy=function(){var e=new Hs;return this.clone(e)},Hs.prototype.clone=function(e){return e.H=this.H,e.xu.assign(this.viewPoint),e.mt.assign(this.documentPoint),e.Rq=this.Rq,e.Bp=this.Bp,e.Cp=this.Cp,e.xq=this.xq,e.Tp=this.Tp,e.Wr=this.Wr,e.Ep=this.Ep,e.Rp=this.Rp,e.tq=this.tq,e.nq=this.nq,e.xg=this.xg,e.Zp=this.Zp,e.Rr=this.Rr,e.Nr=this.Nr,e.xd=this.xd,e},Hs.prototype.toString=function(){var e="^";return this.modifiers!==0&&(e+="M:"+this.modifiers),this.button!==0&&(e+="B:"+this.button),this.key!==""&&(e+="K:"+this.key),this.clickCount!==0&&(e+="C:"+this.clickCount),this.delta!==0&&(e+="D:"+this.delta),this.handled&&(e+="h"),this.bubbles&&(e+="b"),this.documentPoint!==null&&(e+="@"+this.documentPoint.toString()),e},Hs.prototype.So=function(e,t){var n=this.diagram;return n===null||Xu(n,e,t),t},Hs.prototype.Bz=function(e,t){var n=this.diagram;return n===null||(Xu(n,e,t),t.assign(n.Ps(t))),t},at.Object.defineProperties(Hs.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},viewPoint:{get:function(){return this.xu},set:function(e){this.xu.assign(e)}},documentPoint:{get:function(){return this.mt},set:function(e){this.mt.assign(e)}},modifiers:{get:function(){return this.Rq},set:function(e){this.Rq=e}},button:{get:function(){return this.Bp},set:function(e){if(this.Bp=e,this.event===null)switch(e){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(e){this.Cp=e}},key:{get:function(){return this.xq},set:function(e){this.xq=e}},down:{get:function(){return this.Tp},set:function(e){this.Tp=e}},up:{get:function(){return this.Wr},set:function(e){this.Wr=e}},clickCount:{get:function(){return this.Ep},set:function(e){this.Ep=e}},delta:{get:function(){return this.Rp},set:function(e){this.Rp=e}},isMultiTouch:{get:function(){return this.tq},set:function(e){this.tq=e}},handled:{get:function(){return this.nq},set:function(e){this.nq=e}},bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},event:{get:function(){return this.Zp},set:function(e){this.Zp=e}},isTouchEvent:{get:function(){var e=this.event;return e===null?!1:e.pointerType==="touch"||e.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(e){this.Rr=e}},targetDiagram:{get:function(){return this.Nr},set:function(e){this.Nr=e}},targetObject:{get:function(){return this.xd},set:function(e){this.xd=e}},control:{get:function(){return(this.modifiers&1)!==0},set:function(e){this.modifiers=e?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(e){this.modifiers=e?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(e){this.modifiers=e?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(e){this.modifiers=e?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(e){this.buttons=e?this.buttons|1:this.buttons&-2}},right:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(e){this.buttons=e?this.buttons|2:this.buttons&-3}},middle:{get:function(){var e=this.event;return e===null||e.type!=="mousedown"&&e.type!=="mouseup"&&e.type!=="pointerdown"&&e.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(e){this.buttons=e?this.buttons|4:this.buttons&-5}}}),Hs.prototype.getMultiTouchDocumentPoint=Hs.prototype.Bz,Hs.prototype.getMultiTouchViewPoint=Hs.prototype.So,Hs.className="InputEvent";function uu(){this.H=null,this.xa="",this.ar=this.Lr=null}uu.prototype.copy=function(){var e=new uu;return e.H=this.H,e.xa=this.xa,e.Lr=this.Lr,e.ar=this.ar,e},uu.prototype.toString=function(){var e="*"+this.name;return this.subject!==null&&(e+=":"+this.subject.toString()),this.parameter!==null&&(e+="("+this.parameter.toString()+")"),e},at.Object.defineProperties(uu.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},subject:{get:function(){return this.Lr},set:function(e){this.Lr=e}},parameter:{get:function(){return this.ar},set:function(e){this.ar=e}}}),uu.className="DiagramEvent";function uo(){this.Fm=io,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}uo.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},uo.prototype.copy=function(){var e=new uo;e.Fm=this.Fm,e.Qq=this.Qq,e.rf=this.rf,e.cc=this.cc,e.H=this.H,e.Qn=this.Qn;var t=this.Sn;return e.Sn=Zt(t)&&typeof t.J=="function"?t.J():t,t=this.Rn,e.Rn=Zt(t)&&typeof t.J=="function"?t.J():t,t=this.Mn,e.Mn=Zt(t)&&typeof t.J=="function"?t.J():t,t=this.Ln,e.Ln=Zt(t)&&typeof t.J=="function"?t.J():t,e},uo.prototype.qb=function(e){e.classType===uo&&(this.change=e)},uo.prototype.toString=function(){var e="";return e=this.change===sa?e+"* ":this.change===io?e+(this.model!==null?"!m":"!d"):e+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(e+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(e+=" "+this.modelChange),e+=": ",this.change===sa?this.oldValue!==null&&(e+=" "+this.oldValue):(this.object!==null&&(e+=En(this.object)),this.oldValue!==null&&(e+=" old: "+En(this.oldValue)),this.oldParam!==null&&(e+=" "+this.oldParam),this.newValue!==null&&(e+=" new: "+En(this.newValue)),this.newParam!==null&&(e+=" "+this.newParam)),e},uo.prototype.I=function(e){return e?this.oldValue:this.newValue},uo.prototype.Dz=function(e){return e?this.oldParam:this.newParam},uo.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},uo.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},uo.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},uo.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},at.Object.defineProperties(uo.prototype,{model:{get:function(){return this.cc},set:function(e){this.cc=e}},diagram:{get:function(){return this.H},set:function(e){this.H=e}},change:{get:function(){return this.Fm},set:function(e){this.Fm=e}},modelChange:{get:function(){return this.Qq},set:function(e){this.Qq=e}},propertyName:{get:function(){return this.rf},set:function(e){this.rf=e}},isTransactionFinished:{get:function(){return this.Fm===sa&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(e){this.Qn=e}},oldValue:{get:function(){return this.Sn},set:function(e){this.Sn=e}},oldParam:{get:function(){return this.Rn},set:function(e){this.Rn=e}},newValue:{get:function(){return this.Mn},set:function(e){this.Mn=e}},newParam:{get:function(){return this.Ln},set:function(e){this.Ln=e}}}),uo.prototype.redo=uo.prototype.redo,uo.prototype.canRedo=uo.prototype.canRedo,uo.prototype.undo=uo.prototype.undo,uo.prototype.canUndo=uo.prototype.canUndo,uo.prototype.getParam=uo.prototype.Dz,uo.prototype.getValue=uo.prototype.I,uo.prototype.clear=uo.prototype.clear;var sa=new qt(uo,"Transaction",-1),io=new qt(uo,"Property",0),zo=new qt(uo,"Insert",1),os=new qt(uo,"Remove",2);uo.className="ChangedEvent",uo.Transaction=sa,uo.Property=io,uo.Insert=zo,uo.Remove=os;function ps(){this.o=new Xt().freeze(),this.xa="",this.j=!1}ps.prototype.toString=function(e){var t="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(e!==void 0&&0<e){e=this.changes.count;for(var n=0;n<e;n++){var i=this.changes.M(n);i!==null&&(t+=`
|
|
|
`+i.toString())}}return t},ps.prototype.clear=function(){var e=this.changes;e.ka();for(var t=e.count-1;0<=t;t--){var n=e.M(t);n!==null&&n.clear()}e.clear(),e.freeze()},ps.prototype.canUndo=function(){return this.isComplete},ps.prototype.undo=function(){if(this.canUndo())for(var e=this.changes.count-1;0<=e;e--){var t=this.changes.M(e);t!==null&&t.undo()}},ps.prototype.canRedo=function(){return this.isComplete},ps.prototype.redo=function(){if(this.canRedo())for(var e=this.changes.count,t=0;t<e;t++){var n=this.changes.M(t);n!==null&&n.redo()}},ps.prototype.ak=function(){if(this.isComplete){var e=this.changes;e.ka();for(var t=new ii,n=0;n<e.count;n++){var i=e.M(n);if(i!==null&&i.change===io&&i.object){var r=t.get(i.object);r||(r=new ii,t.set(i.object,r));var o=r.get(i.propertyName);o===null?r.set(i.propertyName,-1):(0<o&&e.cd(o,null),r.set(i.propertyName,n))}}for(n=t=0;n<e.count;n++)i=e.M(n),i!==null&&(n>t&&e.cd(t,i),t++);for(;e.length>t;)e.pop();e.freeze()}},at.Object.defineProperties(ps.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isComplete:{get:function(){return this.j},set:function(e){this.j=e}}}),ps.prototype.optimize=ps.prototype.ak,ps.prototype.redo=ps.prototype.redo,ps.prototype.canRedo=ps.prototype.canRedo,ps.prototype.undo=ps.prototype.undo,ps.prototype.canUndo=ps.prototype.canUndo,ps.prototype.clear=ps.prototype.clear,ps.className="Transaction";function wo(){this.Pt=new Yt,this.Jd=!1,this.u=new Xt().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new Xt().freeze(),this.hl=new Xt,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}wo.prototype.toString=function(e){var t="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;t+="[";for(var n=this.nestedTransactionNames.count,i=0;i<n;i++)0<i&&(t+=" "),t+=this.nestedTransactionNames.M(i);if(t+="]",e!==void 0&&0<e)for(n=this.history.count,i=0;i<n;i++)t+=`
|
|
|
`+this.history.M(i).toString(e-1);return t},wo.prototype.clear=function(){var e=this.history;e.ka();for(var t=e.count-1;0<=t;t--){var n=e.M(t);n!==null&&n.clear()}e.clear(),this.Ce=-1,e.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},wo.prototype.copyProperties=function(e){this.isEnabled=e.isEnabled,this.maxHistoryLength=e.maxHistoryLength,this.checksTransactionLevel=e.checksTransactionLevel},_=wo.prototype,_.Xw=function(e){this.Pt.add(e)},_.Rx=function(e){this.Pt.remove(e)},_.Ea=function(e){if(e===void 0&&(e=""),e===null&&(e=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",e,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(e),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var t=this.transactionLevel===1;return t&&(this.isInternalTransaction||this.Ob("StartedTransaction",e,this.currentTransaction)),t},_.eb=function(e){return e===void 0&&(e=""),cu(this,!0,e)},_.Kf=function(){return cu(this,!1,"")};function cu(e,t,n){if(e.isUndoingRedoing)return!1;e.checksTransactionLevel&&1>e.transactionLevel&&Si("Ending transaction without having started a transaction: "+n);var i=e.transactionLevel===1,r=e.currentTransaction;i&&t&&(e.isInternalTransaction||e.Ob("CommittingTransaction",n,r));var o=0;if(0<e.transactionLevel&&(e.bi--,e.isEnabled)){var s=e.Ie.count;0<s&&(n===""&&(n=e.Ie.M(0)),e.Ie.ka(),e.Ie.mb(s-1),e.Ie.freeze()),s=e.hl.count,0<s&&(o=e.hl.M(s-1),e.hl.mb(s-1))}if(i){if(t)e.rq=!1,r===null&&n!==""&&(r=e.currentTransaction),e.isEnabled&&r!==null&&(r.isComplete||(r.isComplete=!0,r.name=n),e.lx(),t=e.history,t.ka(),i=e.maxHistoryLength,0<=i&&(i===0?t.clear():t.count>=i&&(o=t.M(0),o!==null&&o.clear(),t.mb(0),e.Ce--)),i===0||t.count!==0&&t.get(t.count-1)===r||(t.add(r),e.Ce++),t.freeze()),e.isInternalTransaction||e.Ob("CommittedTransaction",n,r);else{e.Fe=!0;try{e.isEnabled&&r!==null&&(r.isComplete=!0,r.undo())}finally{e.isInternalTransaction||e.Ob("RolledBackTransaction",n,r),e.Fe=!1}r!==null&&r.clear()}return e.Np=null,e.isPendingClear&&e.clear(),e.isPendingClear=!1,e.isPendingUnmodified=!1,!0}if(e.isEnabled&&!t&&r!==null){for(e=o,n=r.changes,r=n.count-1;r>=e;r--)t=n.M(r),t!==null&&t.undo(),n.ka(),n.mb(r);n.freeze()}return!1}_.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var e=this.history;e.ka();for(var t=e.count-1;t>this.historyIndex;t--){var n=e.M(t);n!==null&&n.clear(),e.mb(t),this.rq=!0}e.freeze()}},wo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToUndo;return!!(e!==null&&e.canUndo())},wo.prototype.undo=function(){if(this.canUndo()){var e=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",e),this.Ce--,e.undo()}catch(t){Si("undo error: "+t.toString())}finally{this.Ob("FinishedUndo","Undo",e),this.Fe=!1}}},wo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var e=this.transactionToRedo;return!!(e!==null&&e.canRedo())},wo.prototype.redo=function(){if(this.canRedo()){var e=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",e),this.Ce++,e.redo()}catch(t){Si("redo error: "+t.toString())}finally{this.Ob("FinishedRedo","Redo",e),this.Fe=!1}}},wo.prototype.Ob=function(e,t,n){n===void 0&&(n=null);var i=new uo;for(i.change=sa,i.propertyName=e,i.object=n,i.oldValue=t,e=this.models;e.next();)t=e.value,i.model=t,t.ds(i)},wo.prototype.Tu=function(e){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(e)){var t=this.currentTransaction;t===null&&(this.Np=t=new ps);var n=e.copy();t=t.changes,t.ka(),t.add(n),t.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(e=e.diagram,e!==null&&e.pi===!1||Si("Change not within a transaction: "+n.toString()))}},wo.prototype.skipsEvent=function(e){if(e===null||0>e.change.value)return!0;if(e=e.object,e===null)return!1;if(e.layer!==void 0){if(e=e.layer,e!==null&&e.isTemporary)return!0}else if(e.isTemporary)return!0;return!1},at.Object.defineProperties(wo.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},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(e){this.o=e}},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(e){this.j=e}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(e){this.Ft=e}},isPendingUnmodified:{get:function(){return this.Gt},set:function(e){this.Gt=e}},isInternalTransaction:{get:function(){return this.Dt},set:function(e){this.Dt=e}},isJustDiscarded:{get:function(){return this.rq}}}),wo.prototype.handleChanged=wo.prototype.Tu,wo.prototype.redo=wo.prototype.redo,wo.prototype.undo=wo.prototype.undo,wo.prototype.canUndo=wo.prototype.canUndo,wo.prototype.discardHistoryAfterIndex=wo.prototype.lx,wo.prototype.rollbackTransaction=wo.prototype.Kf,wo.prototype.commitTransaction=wo.prototype.eb,wo.prototype.startTransaction=wo.prototype.Ea,wo.prototype.removeModel=wo.prototype.Rx,wo.prototype.addModel=wo.prototype.Xw,wo.prototype.clear=wo.prototype.clear,wo.className="UndoManager";function or(){Wi(this),this.H=lt,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new Hs,this.Zr=-1}or.prototype.toString=function(){return this.name!==""?this.name+" Tool":fn(this.constructor)},or.prototype.updateAdornments=function(){},or.prototype.canStart=function(){return this.isEnabled},or.prototype.doStart=function(){},or.prototype.doActivate=function(){this.isActive=!0},or.prototype.doDeactivate=function(){this.isActive=!1},or.prototype.doStop=function(){},or.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},or.prototype.stopTool=function(){var e=this.diagram;e.currentTool===this&&(e.currentTool=null,e.currentCursor="")},or.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},or.prototype.doMouseMove=function(){},or.prototype.doMouseUp=function(){this.stopTool()},or.prototype.doMouseWheel=function(){},or.prototype.canStartMultiTouch=function(){return!0},or.prototype.standardPinchZoomStart=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,ce.allocAt(NaN,NaN)),i=t.So(1,ce.allocAt(NaN,NaN));if(n.w()&&i.w()&&(this.doCancel(),e.Ql("hasGestureZoom"))){e.Bw=e.scale;var r=i.x-n.x,o=i.y-n.y;e.Jw=Math.sqrt(r*r+o*o),t.bubbles=!1}ce.free(n),ce.free(i)},or.prototype.standardPinchZoomMove=function(){var e=this.diagram,t=e.lastInput,n=t.So(0,ce.allocAt(NaN,NaN)),i=t.So(1,ce.allocAt(NaN,NaN));if(n.w()&&i.w()&&(this.doCancel(),e.Ql("hasGestureZoom"))){var r=i.x-n.x,o=i.y-n.y;o=Math.sqrt(r*r+o*o)/e.Jw,r=new ce((Math.min(i.x,n.x)+Math.max(i.x,n.x))/2,(Math.min(i.y,n.y)+Math.max(i.y,n.y))/2),o*=e.Bw;var s=e.commandHandler;if(o!==e.scale&&s.canResetZoom(o)){var l=e.zoomPoint;e.zoomPoint=r,s.resetZoom(o),e.zoomPoint=l}t.bubbles=!1}ce.free(n),ce.free(i)},or.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},or.prototype.doKeyUp=function(){},or.prototype.Ea=function(e){return e===void 0&&(e=this.name),this.transactionResult=null,this.diagram.Ea(e)},or.prototype.stopTransaction=function(){var e=this.diagram;return this.transactionResult===null?e.Kf():e.eb(this.transactionResult)},or.prototype.standardMouseSelect=function(){var e=this.diagram;if(e.allowSelect){var t=e.lastInput,n=e.Ol(t.documentPoint,!1);if(n!==null){if(ir?t.meta:t.control){for(e.R("ChangingSelection",e.selection),t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&(t.isSelected=!t.isSelected),e.R("ChangedSelection",e.selection)}else if(t.shift){if(!n.isSelected){for(e.R("ChangingSelection",e.selection),t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&(t.isSelected=!0),e.R("ChangedSelection",e.selection)}}else if(!n.isSelected){for(t=n;t!==null&&!t.canSelect();)t=t.containingGroup;t!==null&&e.select(t)}}else!t.left||(ir?t.meta:t.control)||t.shift||e.clearSelection()}},or.prototype.standardMouseClick=function(e,t){e===void 0&&(e=null),t===void 0&&(t=function(r){return!r.layer.isTemporary});var n=this.diagram,i=n.lastInput;return e=n.ic(i.documentPoint,e,t),i.targetObject=e,Tu(e,i,n),i.handled};function Tu(e,t,n){if(t.handled=!1,e===null||e.If()){var i=0;t.left?i=t.clickCount===1?1:t.clickCount===2?2:1:t.right&&t.clickCount===1&&(i=3);var r="ObjectSingleClicked";if(e!==null){switch(i){case 1:r="ObjectSingleClicked";break;case 2:r="ObjectDoubleClicked";break;case 3:r="ObjectContextClicked"}i!==0&&n.R(r,e)}else{switch(i){case 1:r="BackgroundSingleClicked";break;case 2:r="BackgroundDoubleClicked";break;case 3:r="BackgroundContextClicked"}i!==0&&n.R(r)}if(e!==null)for(;e!==null;){switch(n=null,i){case 1:n=e.click;break;case 2:n=e.doubleClick?e.doubleClick:e.click;break;case 3:n=e.contextClick}if(n!==null&&(n(t,e),t.handled))break;e=e.panel}else{switch(e=null,i){case 1:e=n.click;break;case 2:e=n.doubleClick?n.doubleClick:n.click;break;case 3:e=n.contextClick}e!==null&&e(t)}}}or.prototype.standardMouseOver=function(){var e=this.diagram,t=e.lastInput;if(e.animationManager.zb!==!0){var n=e.skipsUndoManager;e.skipsUndoManager=!0;var i=e.viewportBounds.ca(t.documentPoint)?e.ic(t.documentPoint,null,null):null;!t.event||t.event.type!=="pointercancel"&&t.event.type!=="pointerout"||(i=null),t.targetObject=i;var r=!1;if(i!==e.Ck){var o=e.Ck,s=o;for(e.Ck=i,this.doCurrentObjectChanged(o,i),t.handled=!1;o!==null;){var l=o.mouseLeave;if(l!==null&&(i===o||i!==null&&i.rg(o)||(l(t,o,i),r=!0,t.handled)))break;o=o.panel}for(o=s,t.handled=!1;i!==null&&(s=i.mouseEnter,!(s!==null&&(o===i||o!==null&&o.rg(i)||(s(t,i,o),r=!0,t.handled))));)i=i.panel;i=e.Ck}if(i!==null){for(o=i,s="";o!==null&&(s=o.cursor,s==="");)o=o.panel;for(e.currentCursor=s,t.handled=!1,o=i;o!==null&&(i=o.mouseOver,!(i!==null&&(i(t,o),r=!0,t.handled)));)o=o.panel}else this.doUpdateCursor(null),i=e.mouseOver,i!==null&&(i(t),r=!0);r&&e.$b(),e.skipsUndoManager=n}},or.prototype.doUpdateCursor=function(){var e=this.diagram;e&&(e.currentCursor="")},or.prototype.doCurrentObjectChanged=function(){},or.prototype.standardMouseWheel=function(){var e=this.diagram,t=e.lastInput,n=t.delta;if(n!==0&&e.documentBounds.w()){var i=e.commandHandler,r=e.toolManager.mouseWheelBehavior;if(i!==null&&(r===Yu&&!t.shift||r===Ku&&t.control))(0<n?i.canIncreaseZoom():i.canDecreaseZoom())&&(r=e.zoomPoint,e.zoomPoint=t.viewPoint,0<n?i.increaseZoom():i.decreaseZoom(),e.zoomPoint=r),t.bubbles=!1;else if(r===Yu&&t.shift||r===Ku&&!t.control){i=e.position.copy();var o=t.event;r=o.deltaMode;var s=o.deltaX;o=o.deltaY;var l="pixel";if(s===0&&o===0||t.shift)!t.shift&&e.allowVerticalScroll?(n=3*n*e.scrollVerticalLineChange,e.scroll(l,0<n?"up":"down",Math.abs(n))):t.shift&&e.allowHorizontalScroll&&(n=3*n*e.scrollHorizontalLineChange,e.scroll(l,0<n?"left":"right",Math.abs(n)));else{switch(r){case 0:l="pixel";break;case 1:l="line";break;case 2:l="page"}s!==0&&e.allowHorizontalScroll&&(s*=e.scrollHorizontalLineChange/16,e.scroll(l,0<s?"right":"left",Math.abs(s))),o!==0&&e.allowVerticalScroll&&(o*=e.scrollVerticalLineChange/16,e.scroll(l,0<o?"down":"up",Math.abs(o)))}this.doWheelChange(e,i,t)}}},or.prototype.doWheelChange=function(e,t,n){e.position.D(t)&&n.event.wheelDeltaX===0||(n.bubbles=!1)},or.prototype.standardWaitAfter=function(e,t){t===void 0&&(t=this.diagram.lastInput),this.cancelWaitAfter();var n=this,i=t.clone(this.yy);this.Zr=ni(function(){n.doWaitAfter(i)},e)},or.prototype.cancelWaitAfter=function(){this.Zr!==-1&&je.clearTimeout(this.Zr),this.Zr=-1},or.prototype.doWaitAfter=function(){},or.prototype.findToolHandleAt=function(e,t){return e=this.diagram.ic(e,function(n){for(;n!==null&&!(n.panel instanceof Fr);)n=n.panel;return n}),e===null?null:e.part.category===t?e:null},or.prototype.isBeyondDragSize=function(e,t){var n=this.diagram;e===void 0&&(e=n.firstInput.viewPoint),t===void 0&&(t=n.lastInput.viewPoint);var i=n.toolManager.dragSize,r=i.width;return i=i.height,n.firstInput.isTouchEvent&&(r+=6,i+=6),Math.abs(t.x-e.x)>r||Math.abs(t.y-e.y)>i},at.Object.defineProperties(or.prototype,{diagram:{get:function(){return this.H},set:function(e){e instanceof Z&&(this.H=e)}},name:{get:function(){return this.xa},set:function(e){this.xa=e}},isEnabled:{get:function(){return this.Jd},set:function(e){this.Jd=e}},isActive:{get:function(){return this.nb},set:function(e){this.nb=e}},transactionResult:{get:function(){return this.wm},set:function(e){this.wm=e}}}),or.prototype.startTransaction=or.prototype.Ea,or.className="Tool";function ao(){or.call(this),this.name="ToolManager",this.hb=new Xt,this.ob=new Xt,this.Hb=new Xt,this.F=this.V=850,this.o=new mi(2,2).ja(),this.Ha=5e3,this.ia=Ku,this.u=el,this.Mp=this.j=null,this.zj=-1}fi(ao,or),ao.prototype.initializeStandardTools=function(){},ao.prototype.updateAdornments=function(e){var t=this.currentToolTip;if(t instanceof Fr&&this.Mp===e){var n=t.adornedObject;(e!==null?n.part===e:n===null)?this.showToolTip(t,n):this.hideToolTip()}},ao.prototype.doMouseDown=function(){var e=this.diagram,t=e.lastInput;if(t.isTouchEvent&&this.gestureBehavior===Gl&&(t.bubbles=!1),t.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===eu){t.bubbles=!0;return}if(this.gestureBehavior===Gl)return;if(e.currentTool.canStartMultiTouch()){e.currentTool.standardPinchZoomStart();return}}for(var n=this.mouseDownTools.length,i=0;i<n;i++){var r=this.mouseDownTools.M(i);if(r.diagram=this.diagram,r.canStart()){e.doFocus(),e.currentTool=r,e.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseDown());return}}e.lastInput.button===1&&(this.mouseWheelBehavior===Ku?this.mouseWheelBehavior=Yu:this.mouseWheelBehavior===Yu&&(this.mouseWheelBehavior=Ku)),this.doActivate(),this.standardWaitAfter(this.holdDelay,t)},ao.prototype.doMouseMove=function(){var e=this.diagram,t=e.lastInput;if(t.isMultiTouch){if(this.gestureBehavior===eu){t.bubbles=!0;return}if(this.gestureBehavior===Gl)return;if(e.currentTool.canStartMultiTouch()){e.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var n=this.mouseMoveTools.length,i=0;i<n;i++){var r=this.mouseMoveTools.M(i);if(r.diagram=this.diagram,r.canStart()){e.doFocus(),e.currentTool=r,e.currentTool===r&&(r.isActive||r.doActivate(),r.doMouseMove());return}}Vu(this,e),e=t.event,e===null||e.type!=="pointermove"&&e.cancelable||(t.bubbles=!0)};function Vu(e,t){e.standardMouseOver(),e.isBeyondDragSize()&&e.standardWaitAfter(e.isActive?e.holdDelay:e.hoverDelay,t.lastInput)}ao.prototype.doCurrentObjectChanged=function(e,t){e=this.currentToolTip,e===null||t!==null&&e instanceof Fr&&(t===e||t.rg(e))||this.hideToolTip()},ao.prototype.doWaitAfter=function(e){var t=this.diagram;t.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),e.isTouchEvent&&!t.lastInput.handled&&(e=e.copy(),e.button=2,e.buttons=2,t.lastInput=e,t.qu=!0,t.doMouseUp()))},ao.prototype.doMouseHover=function(){var e=this.diagram,t=e.lastInput;t.targetObject===null&&(t.targetObject=e.ic(t.documentPoint,null,null));var n=t.targetObject;if(n!==null)for(t.handled=!1;n!==null&&(e=this.isActive?n.mouseHold:n.mouseHover,!(e!==null&&(e(t,n),t.handled)));)n=n.panel;else n=this.isActive?e.mouseHold:e.mouseHover,n!==null&&n(t)},ao.prototype.doToolTip=function(){var e=this.diagram,t=e.lastInput;if(t.targetObject===null&&(t.targetObject=e.ic(t.documentPoint,null,null)),t=t.targetObject,t!==null){if(e=this.currentToolTip,!(e instanceof Fr)||t!==e&&!t.rg(e)){for(;t!==null;){if(e=t.toolTip,e!==null){this.showToolTip(e,t);return}t=t.panel}this.hideToolTip()}}else t=e.toolTip,t!==null?this.showToolTip(t,null):this.hideToolTip()},ao.prototype.showToolTip=function(e,t){var n=this.diagram;if(e!==this.currentToolTip&&this.hideToolTip(),e instanceof Fr){e.layerName="Tool",e.selectable=!1,e.scale=1/n.scale,e.category="ToolTip",e.placeholder!==null&&(e.placeholder.scale=n.scale);var i=e.diagram;i!==null&&i!==n&&i.remove(e),n.add(e),t!==null?e.adornedObject=t:e.data=n.model,e.Va(),this.positionToolTip(e,t)}else e instanceof Xn&&e!==this.currentToolTip&&e.show(t,n,this);if(this.currentToolTip=e,this.zj!==-1&&(je.clearTimeout(this.zj),this.zj=-1),e=this.toolTipDuration,0<e&&e!==1/0){var r=this;this.zj=ni(function(){r.hideToolTip()},e)}},ao.prototype.positionToolTip=function(e){if(e.placeholder===null){var t=this.diagram,n=t.lastInput.documentPoint.copy(),i=e.measuredBounds,r=t.viewportBounds;t.lastInput.isTouchEvent&&(n.x-=i.width),n.x+i.width>r.right&&(n.x-=i.width+5/t.scale),n.x<r.x&&(n.x=r.x),n.y=n.y+20/t.scale+i.height>r.bottom?n.y-(i.height+5/t.scale):n.y+20/t.scale,n.y<r.y&&(n.y=r.y),e.position=n}},ao.prototype.hideToolTip=function(){this.zj!==-1&&(je.clearTimeout(this.zj),this.zj=-1);var e=this.diagram,t=this.currentToolTip;t!==null&&(t instanceof Fr?(e.remove(t),this.Mp!==null&&this.Mp.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof Xn&&t.hide!==null&&t.hide(e,this),this.currentToolTip=null)},ao.prototype.doMouseUp=function(){this.cancelWaitAfter();var e=this.diagram;if(this.isActive)for(var t=this.mouseUpTools.length,n=0;n<t;n++){var i=this.mouseUpTools.M(n);if(i.diagram=this.diagram,i.canStart()){e.doFocus(),e.currentTool=i,e.currentTool===i&&(i.isActive||i.doActivate(),i.doMouseUp());return}}e.doFocus(),this.doDeactivate()},ao.prototype.doMouseWheel=function(){this.standardMouseWheel()},ao.prototype.doKeyDown=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyDown()},ao.prototype.doKeyUp=function(){var e=this.diagram;e.commandHandler!==null&&e.commandHandler.doKeyUp()},ao.prototype.findTool=function(e){for(var t=this.mouseDownTools.length,n=0;n<t;n++){var i=this.mouseDownTools.M(n);if(i.name===e)return i}for(t=this.mouseMoveTools.length,n=0;n<t;n++)if(i=this.mouseMoveTools.M(n),i.name===e)return i;for(t=this.mouseUpTools.length,n=0;n<t;n++)if(i=this.mouseUpTools.M(n),i.name===e)return i;return null},ao.prototype.replaceTool=function(e,t){t!==null&&(t.diagram=this.diagram);for(var n=this.mouseDownTools.length,i=0;i<n;i++){var r=this.mouseDownTools.M(i);if(r.name===e)return t!==null?this.mouseDownTools.cd(i,t):this.mouseDownTools.mb(i),r}for(n=this.mouseMoveTools.length,i=0;i<n;i++)if(r=this.mouseMoveTools.M(i),r.name===e)return t!==null?this.mouseMoveTools.cd(i,t):this.mouseMoveTools.mb(i),r;for(n=this.mouseUpTools.length,i=0;i<n;i++)if(r=this.mouseUpTools.M(i),r.name===e)return t!==null?this.mouseUpTools.cd(i,t):this.mouseUpTools.mb(i),r;return null},ao.prototype.gb=function(e,t,n){t!==null&&(t.name=e,t.diagram=this.diagram),this.findTool(e)?this.replaceTool(e,t):t!==null&&n.add(t)},at.Object.defineProperties(ao.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(e){this.ia=e}},gestureBehavior:{get:function(){return this.u},set:function(e){this.u=e}},currentToolTip:{get:function(){return this.j},set:function(e){this.j=e,this.Mp=e!==null&&e instanceof Fr?e.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(e){this.V=e}},holdDelay:{get:function(){return this.F},set:function(e){this.F=e}},dragSize:{get:function(){return this.o},set:function(e){this.o=e.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(e){this.Ha=e}}}),ao.prototype.replaceStandardTool=ao.prototype.gb;var Ku=new qt(ao,"WheelScroll",0),Yu=new qt(ao,"WheelZoom",1),Sc=new qt(ao,"WheelNone",2),el=new qt(ao,"GestureZoom",3),Gl=new qt(ao,"GestureCancel",4),eu=new qt(ao,"GestureNone",5);ao.className="ToolManager",ao.WheelScroll=Ku,ao.WheelZoom=Yu,ao.WheelNone=Sc,ao.GestureZoom=el,ao.GestureCancel=Gl,ao.GestureNone=eu;function xo(){or.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 ce(NaN,NaN),this.Fr=new ce,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new Yt().freeze(),this.ia=new c,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var ul;fi(xo,or),xo.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e.isReadOnly&&!e.allowDragOut||!e.allowMove&&!e.allowCopy&&!e.allowDragOut||!e.allowSelect)return!1;var t=e.lastInput;return!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.isTouchEvent&&t.timestamp-e.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},xo.prototype.findDraggablePart=function(){var e=this.diagram;if(e=e.Ol(e.firstInput.documentPoint,!1),e===null)return null;for(;e!==null&&!e.canSelect();)e=e.containingGroup;return e!==null&&(e.canMove()||e.canCopy())?e:null},xo.prototype.standardMouseSelect=function(){var e=this.diagram;if(e.allowSelect){var t=e.Ol(e.firstInput.documentPoint,!1);if(t!==null){for(;t!==null&&!t.canSelect();)t=t.containingGroup;this.currentPart=t,this.currentPart===null||this.currentPart.isSelected||(e.R("ChangingSelection",e.selection),t=e.lastInput,(ir?t.meta:t.control)||t.shift||e.clearSelection(!0),this.currentPart.isSelected=!0,e.R("ChangedSelection",e.selection))}}},xo.prototype.doActivate=function(){var e=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var t=this.currentPart;t!==null&&(t.canMove()||t.canCopy())&&(e.Fu(!0),pt=null,this.isActive=!0,this.tl.set(e.position),Ec(this,e.selection),this.Cg.length=0,e.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(e.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,e.Ns=!0,e.Gf("temporaryPixelRatio")===!0&&30<e.$w&&Pi(e),_h(e,this.draggedParts),this.Ea("Drag"),this.startPoint=e.firstInput.documentPoint,e.isMouseCaptured=!0,e.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,pt=this,Lt=this.diagram,this.doSimulatedDragOut()))};function Ec(e,t){if(e.dragsLink){var n=e.diagram;n.allowRelink&&(n.model.Wj()&&t.count===1&&t.first()instanceof kn?(e.draggedLink=t.first(),e.draggedLink.canRelinkFrom()&&e.draggedLink.canRelinkTo()&&e.draggedLink.Ej(),e.Oe=n.toolManager.findTool("Relinking"),e.Oe===null&&(e.Oe=new U,e.Oe.diagram=n),e.Oe.originalLink=e.draggedLink):(e.draggedLink=null,e.Oe=null))}}xo.prototype.computeEffectiveCollection=function(e,t){return this.diagram.commandHandler.computeEffectiveCollection(e,t)},xo.prototype.Pd=function(e){return e===void 0?new Qc(br):this.isGridSnapEnabled?new Qc(new ce(Math.round(1e3*e.x)/1e3,Math.round(1e3*e.y)/1e3)):new Qc(e.copy())},xo.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,e.Fu(!1),e.ug(),Wl(this),Cc(e,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<ul.count){for(var t=ul,n=t.length,i=0;i<n;i++){var r=t.M(i);du(r),Va(r),Wl(r),r.diagram.ug()}t.clear()}du(this),this.tl.h(NaN,NaN),Lt!==null&&(Lt.currentCursor=""),pt=Lt=null,Va(this),e.isMouseCaptured=!1,e.currentCursor="",e.Ns=!1,this.stopTransaction(),hr(e,!0)},xo.prototype.stopTransaction=function(){var e=this.diagram,t=or.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t};function Wl(e){var t=e.diagram,n=t.skipsUndoManager;t.skipsUndoManager=!0,Zu(e,t.lastInput,null),t.skipsUndoManager=n,e.Cg.length=0}function hu(){var e=pt;Va(e),Vl(e);var t=e.diagram;e.tl.w()&&(t.position=e.tl),t.ug()}xo.prototype.doCancel=function(){Va(this),Vl(this);var e=this.diagram;this.tl.w()&&(e.position=this.tl),this.stopTool()},xo.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput;this.isActive&&(t.key==="Esc"?this.doCancel():t.key!==e.previousInput.key&&this.doMouseMove())},xo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function tl(e,t){if(e.copiedParts===null){var n=e.diagram;if((!t||!n.isReadOnly&&!n.isModelReadOnly)&&e.draggedParts!==null){var i=n.undoManager;for(i.isEnabled&&i.isInTransaction?i.currentTransaction!==null&&0<i.currentTransaction.changes.count&&(n.undoManager.Kf(),n.Ea("Drag")):Vl(e),n.skipsUndoManager=!t,n.partManager.addsToTemporaryLayer=!t,e.startPoint=n.firstInput.documentPoint,t=e.copiesEffectiveCollection?e.draggedParts.Lf():n.selection,t=n.Kj(t,n,!0),n=new ii,i=e.draggedParts.iterator;i.next();){var r=i.key;if(r.Zc()&&r.canCopy()){var o=t.I(r);o!==null&&(o.location=r.location,o.Va(),n.add(o,e.Pd(o.location)))}}for(t=t.iterator;t.next();)i=t.value,i instanceof kn&&i.canCopy()&&n.add(i,e.Pd());e.copiedParts=n,Ec(e,n.Lf()),e.draggedLink!==null&&(n=e.draggedLink,t=n.routeBounds,Eh(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}function Va(e){var t=e.diagram;if(e.copiedParts!==null){if(t.Is(e.copiedParts.Lf(),!1),e.copiedParts=null,e.draggedParts!==null)for(var n=e.draggedParts.iterator;n.next();)n.key instanceof kn&&(n.value.point=new ce(0,0));e.doUpdateCursor(null)}t.skipsUndoManager=!1,t.partManager.addsToTemporaryLayer=!1,e.startPoint=t.firstInput.documentPoint}function du(e){if(e.draggedLink!==null){if(e.dragsLink&&e.Oe!==null){var t=e.Oe;t.diagram.remove(t.temporaryFromNode),t.diagram.remove(t.temporaryToNode),e.Oe.originalLink=null}e.draggedLink=null,e.Oe=null}}function kl(e,t,n){var i=e.diagram,r=e.startPoint,o=ce.alloc();o.assign(i.lastInput.documentPoint),e.moveParts(t,o.re(r),n),ce.free(o),i.Gf("temporaryPixelRatio")===!0&&i.Yh===null&&30<i.$w&&(Pi(i),i.hk())}xo.prototype.moveParts=function(e,t,n){n===void 0&&(n=!1);var i=this.diagram;i!==null&&Qu(i,e,t,this.dragOptions,n)};function Vl(e){if(e.draggedParts!==null){for(var t=e.diagram,n=e.draggedParts.iterator;n.next();){var i=n.key;i.Zc()&&(i.location=n.value.point)}for(n=e.draggedParts.iterator;n.next();)if(i=n.key,i instanceof kn&&i.suspendsRouting){var r=n.value.point;e.draggedParts.add(i,e.Pd()),Eh(i,-r.x,-r.y)}t.bd()}}function uc(e,t){var n=e.diagram;e.dragsLink&&(e.draggedLink!==null&&(e.draggedLink.fromNode=null,e.draggedLink.toNode=null),aa(e,!1));var i=e.findDragOverObject(t),r=n.lastInput;r.targetObject=i,e.doUpdateCursor(i);var o=n.skipsUndoManager,s=!1;try{if(n.skipsUndoManager=!0,s=Zu(e,r,i),!e.isActive&&pt===null)return;var l=i!==null?i.part:null;if(l===null||n.handlesDragDropForTopLevelParts&&l.isTopLevel&&!(l instanceof Xi)){var u=n.mouseDragOver;u!==null&&(u(r),s=!0)}if(!e.isActive&&pt===null||(e.doDragOver(t,i),!e.isActive&&pt===null))return}finally{n.skipsUndoManager=o,s&&n.bd()}e.Bn=i,n.isReadOnly||!n.allowMove&&!n.allowCopy||!n.allowHorizontalScroll&&!n.allowVerticalScroll||n.gs(r.viewPoint)}xo.prototype.findDragOverObject=function(e){var t=this;return qo(this.diagram,e,null,function(n){return n===null?n=!0:(n=n.part,n=!!(n===null||n instanceof Fr||n.layer.isTemporary||t.draggedParts&&t.draggedParts.contains(n)||t.copiedParts&&t.copiedParts.contains(n))),!n})},xo.prototype.doUpdateCursor=function(e){var t=this.diagram;(e===null||this.Bn!==e)&&(!this.diagram.currentTool.isActive||this.mayCopy()?t.currentCursor=this.copyCursor:this.mayMove()?t.currentCursor=this.moveCursor:this.mayDragOut()&&(t.currentCursor=this.nodropCursor))};function Zu(e,t,n){var i=!1,r=e.Cg.length,o=0<r?e.Cg[0]:null;if(n===o)return!1;t.handled=!1;for(var s=0;s<r;s++){var l=e.Cg[s],u=l.mouseDragLeave;if(u!==null&&(u(t,l,n),i=!0,t.handled))break}if(e.Cg.length=0,!e.isActive&&pt===null||n===null)return i;for(t.handled=!1,r=n;r!==null;)e.Cg.push(r),r=Dc(r);for(r=e.Cg.length,n=0;n<r&&(s=e.Cg[n],l=s.mouseDragEnter,l===null||(l(t,s,o),i=!0,!t.handled));n++);return i}function Dc(e){var t=e.panel;return t!==null?t:e instanceof Ei&&!(e instanceof Xi)&&(e=e.containingGroup,e!==null&&e.handlesDragDropForMembers)?e:null}function cl(e,t,n){var i=e.Oe;if(i===null)return null;var r=e.diagram.og(t,i.portGravity,function(f){return i.findValidLinkablePort(f,n)});e=ce.alloc();var o=1/0,s=null;for(r=r.iterator;r.next();){var l=r.value;if(l.part!==null){var u=l.ga(vr,e);u=t.Bf(u),u<o&&(s=l,o=u)}}return ce.free(e),s}function aa(e,t){var n=e.draggedLink;if(n!==null&&!(2>n.pointsCount)){var i=e.diagram;if(!i.isReadOnly){var r=e.Oe;if(r!==null){var o=null,s=null;n.fromNode===null&&(o=cl(e,n.i(0),!1),o!==null&&(s=o.part));var l=null,u=null;n.toNode===null&&(l=cl(e,n.i(n.pointsCount-1),!0),l!==null&&(u=l.part)),r.isValidLink(s,o,u,l)?t?(n.defaultFromPoint=n.i(0),n.defaultToPoint=n.i(n.pointsCount-1),n.suspendsRouting=!1,n.fromNode=s,o!==null&&(n.fromPortId=o.portId),n.toNode=u,l!==null&&(n.toPortId=l.portId),n.fromPort!==i.Mx&&i.R("LinkRelinked",n,i.Mx),n.toPort!==i.Nx&&i.R("LinkRelinked",n,i.Nx)):q(r,s,o,u,l):q(r,null,null,null,null)}}}}xo.prototype.doDragOver=function(){};function Il(e,t){var n=e.diagram;e.dragsLink&&aa(e,!0),Wl(e);var i=e.findDragOverObject(t),r=n.lastInput;if(r.targetObject=i,i!==null){r.handled=!1;for(var o=i;o!==null;){var s=o.mouseDrop;if(s!==null&&(s(r,o),r.handled))break;cc(e,r,o),o=Dc(o)}}else o=n.mouseDrop,o!==null&&o(r);if(e.isActive||pt!==null){for(r=(e.copiedParts||e.draggedParts).iterator;r.next();)o=r.key,o instanceof Vn&&o.linksConnected.each(function(l){l.suspendsRouting=!1});if(e.doDropOnto(t,i),e.isActive||pt!==null){for(e=Ht.alloc(),t=n.selection.iterator;t.next();)i=t.value,i instanceof Vn&&Se(n,i,e);Ht.free(e)}}}function cc(e,t,n){e=e.diagram,n=n.part,!e.handlesDragDropForTopLevelParts||!n.isTopLevel||n instanceof Xi||(n=e.mouseDrop,n!==null&&n(t))}function Se(e,t,n){var i=!1;if(n=t.getAvoidableRect(n),e.viewportBounds.Re(n)&&(i=!0),e=e.Nu(n,function(r){return r.part},function(r){return r instanceof kn},!0,function(r){return r instanceof kn},i),e.count!==0)for(e=e.iterator;e.next();)n=e.value,!n.Td(t)&&n.isAvoiding&&n.bb()}xo.prototype.doDropOnto=function(){},xo.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram,t=e.lastInput;this.simulatedMouseMove(t.event,t.documentPoint,t.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(tl(this,!1),_h(e,this.copiedParts),kl(this,this.copiedParts,!1),Cc(e,this.copiedParts)):this.mayMove()?(Va(this),kl(this,this.draggedParts,!0)):this.mayDragOut()?(tl(this,!1),kl(this,this.copiedParts,!1)):Va(this),uc(this,e.lastInput.documentPoint))}},xo.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=e.lastInput;if(!this.simulatedMouseUp(t.event,t.documentPoint,t.targetDiagram)){t=!1;var n=this.mayCopy();if(n&&this.copiedParts!==null?(Va(this),tl(this,!0),_h(e,this.copiedParts),kl(this,this.copiedParts,!1),Cc(e,this.copiedParts),this.copiedParts!==null&&(e.R("ChangingSelection",e.selection),e.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(r){r.isSelected=!0}))):(t=!0,Va(this),this.mayMove()&&(kl(this,this.draggedParts,!0),uc(this,e.lastInput.documentPoint))),this.Ym=!0,Il(this,e.lastInput.documentPoint),this.isActive){var i=n?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,t&&ke(this),e.Ya(),Cc(e,this.draggedParts),this.transactionResult=n?"Copy":"Move",e.R(n?"SelectionCopied":"SelectionMoved",i)}this.stopTool(),n&&e.R("ChangedSelection",e.selection)}}},xo.prototype.simulatedMouseMove=function(e,t,n){if(pt===null)return!1;var i=pt.diagram;n instanceof Z||(n=null);var r=Lt;return n!==r&&(r!==null&&r!==i&&(r.ug(),pt.isDragOutStarted=!1,r=r.toolManager.findTool("Dragging"),r!==null&&r.doSimulatedDragLeave()),Lt=n,n!==null&&n!==i&&(hu(),r=n.toolManager.findTool("Dragging"),r!==null&&(ul.contains(r)||ul.add(r),r.doSimulatedDragEnter())),this.doUpdateCursor(null)),n===null||n===i||!n.allowDrop||n.isReadOnly||!n.allowInsert?!1:(i=n.toolManager.findTool("Dragging"),i!==null&&(e!==null&&(e.targetTouches!==void 0&&(0<e.targetTouches.length?e=e.targetTouches[0]:0<e.changedTouches.length&&(e=e.changedTouches[0])),t=n.getMouse(e)),n.lastInput.documentPoint=t,n.lastInput.viewPoint=n.op(t),n.lastInput.down=!1,n.lastInput.up=!1,i.doSimulatedDragOver()),!0)},xo.prototype.simulatedMouseUp=function(e,t,n){if(pt===null)return!1;var i=Lt,r=pt.diagram;if(n===null)return pt.doCancel(),!0;if(n!==i){var o=i.toolManager.findTool("Dragging");if(i!==null&&i!==r&&o!==null)return i.ug(),pt.isDragOutStarted=!1,o.doSimulatedDragLeave(),!1;Lt=n,i=n.toolManager.findTool("Dragging"),i!==null&&(hu(),ul.contains(i)||ul.add(i),i.doSimulatedDragEnter())}return n!==this.diagram?(e!==null?(e.targetTouches!==void 0&&(0<e.targetTouches.length?e=e.targetTouches[0]:0<e.changedTouches.length&&(e=e.changedTouches[0])),t=n.getMouse(e)):t===null&&(t=new ce),n.lastInput.documentPoint=t,n.lastInput.viewPoint=n.op(t),n.lastInput.down=!1,n.lastInput.up=!0,e=n.toolManager.findTool("Dragging"),e!==null&&e.doSimulatedDrop(),e=pt,e!==null&&(n=e.mayCopy(),e.transactionResult=n?"Copy":"Move",e.stopTool()),!0):!1};function ke(e){if(e.draggedParts!==null)for(var t=e.draggedParts.iterator;t.next();){var n=t.key;n instanceof Vn&&(n=n.containingGroup,n===null||n.placeholder===null||e.draggedParts.contains(n)||n.placeholder.v())}}xo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowCopy||(ir?!e.lastInput.alt:!e.lastInput.control))return!1;for(e=e.selection.iterator;e.next();)if(e.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},xo.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var e=this.diagram;if(!e.allowDragOut||!e.allowCopy||e.allowMove)return!1;for(e=e.selection.iterator;e.next();)if(e.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},xo.prototype.mayMove=function(){var e=this.diagram;if(e.isReadOnly||!e.allowMove)return!1;for(e=e.selection.iterator;e.next();)if(e.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},xo.prototype.computeBorder=function(e,t,n){return this.Ym||this.draggedParts===null||this.draggedParts.contains(e)?null:n.assign(t)},xo.prototype.Az=function(){return pt},xo.prototype.mayDragIn=function(){var e=this.diagram;if(!e.allowDrop||e.isReadOnly||e.isModelReadOnly||!e.allowInsert)return!1;var t=pt;return!(t===null||t.diagram.model.dataFormat!==e.model.dataFormat)},xo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var e=this.diagram;e.animationManager.Cc(),ua(e),e.animationManager.Cc(),e=pt,e!==null&&(e.diagram.Ns=!1),this.doUpdateCursor(null)}},xo.prototype.doSimulatedDragLeave=function(){var e=pt;e!==null&&e.doSimulatedDragOut(),this.doCancel()},xo.prototype.doSimulatedDragOver=function(){var e=this.diagram;e.animationManager.Dm=!0;var t=pt;if(t!==null&&t.draggedParts!==null){if(!this.mayDragIn())return;st(this,t.draggedParts.Lf(),!1,e.firstInput),kl(this,this.copiedParts,!1),uc(this,e.lastInput.documentPoint)}e.animationManager.Dm=!1},xo.prototype.doSimulatedDrop=function(){var e=this.diagram,t=pt;if(t!==null){var n=t.diagram;if(t.Ym=!0,Va(this),!this.mayDragIn())return;e.animationManager.Dm=!0,e.R("ChangingSelection",e.selection),this.Ea("Drop"),st(this,t.draggedParts.Lf(),!0,e.lastInput),kl(this,this.copiedParts,!1);var i=new Yt;this.copiedParts!==null&&(e.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(r){r.isSelected=!0,i.add(r)})),Il(this,e.lastInput.documentPoint),e.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,e.doFocus(),e.R("ExternalObjectsDropped",i,n),this.stopTransaction(),e.R("ChangedSelection",e.selection)}e.animationManager.Dm=!1};function st(e,t,n,i){if(e.copiedParts===null){var r=e.diagram;if(!r.isReadOnly&&!r.isModelReadOnly){r.skipsUndoManager=!n,r.partManager.addsToTemporaryLayer=!n,e.startPoint=i.documentPoint,n=r.Kj(t,r,!0);var o=Ht.alloc();r=i=1/0;for(var s=-1/0,l=-1/0,u=t.iterator;u.next();){var f=u.value;if(f.isVisible()){var p=f.location;f=p.x,p=p.y,isNaN(f)||isNaN(p)||(f<i&&(i=f),p<r&&(r=p),f>s&&(s=f),p>l&&(l=p))}}for(i===1/0?o.h(0,0,0,0):o.h(i,r,s-i,l-r),i=o.x+o.width/2,r=o.y+o.height/2,Ht.free(o),o=e.Fr,s=new ii,l=ce.alloc(),u=t.iterator;u.next();)f=u.value,f instanceof kn&&f.canCopy()&&(p=n.I(f),p!==null&&(p.points=f.points,Eh(p,o.x-i,o.y-r),p.suspendsRouting=!0,s.add(p,e.Pd())));for(t=t.iterator;t.next();)f=t.value,f.Zc()&&f.canCopy()&&(u=n.I(f),u!==null&&(f=f.location,l.h(o.x-(i-f.x),o.y-(r-f.y)),u.location=l,u.Va(),s.add(u,e.Pd(l))));ce.free(l),e.copiedParts=s,Ec(e,s.Lf()),e.draggedLink!==null&&(n=e.draggedLink,t=n.routeBounds,Eh(n,e.startPoint.x-(t.x+t.width/2),e.startPoint.y-(t.y+t.height/2))),e.doUpdateCursor(null)}}}xo.prototype.doSimulatedDragOut=function(){var e=this.diagram;e.Ns=!1,this.mayCopy()||this.mayMove()?e.currentCursor="":e.currentCursor=this.nodropCursor,this.Bn=null},xo.prototype.computeMove=function(e,t,n,i){return n=this.diagram,n!==null?n.computeMove(e,t,this.dragOptions,i):new ce},at.Object.defineProperties(xo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(e){this.ob=e}},copiesEffectiveCollection:{get:function(){return this.u},set:function(e){this.u=e}},dragOptions:{get:function(){return this.ia},set:function(e){this.ia=e}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(e){this.dragOptions.isGridSnapEnabled=e}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(e){this.hb=e}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(e){this.dragOptions.isGridSnapRealtime=e}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(e){this.dragOptions.gridSnapCellSize.D(e)||(e=e.J(),this.dragOptions.gridSnapCellSize=e)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(e){this.dragOptions.gridSnapCellSpot.D(e)||(e=e.J(),this.dragOptions.gridSnapCellSpot=e)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(e){this.dragOptions.gridSnapOrigin.D(e)||(e=e.J(),this.dragOptions.gridSnapOrigin=e)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(e){this.dragOptions.dragsLink=e}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(e){this.dragOptions.dragsTree=e}},copyCursor:{get:function(){return this.F},set:function(e){this.F=e}},moveCursor:{get:function(){return this.Oc},set:function(e){this.Oc=e}},nodropCursor:{get:function(){return this.Pc},set:function(e){this.Pc=e}},currentPart:{get:function(){return this.V},set:function(e){this.V=e}},copiedParts:{get:function(){return this.o},set:function(e){this.o=e}},draggedParts:{get:function(){return this.Ha},set:function(e){this.Ha=e}},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(e){this.diagram.draggedLink=e}},isDragOutStarted:{get:function(){return this.Hb},set:function(e){this.Hb=e}},startPoint:{get:function(){return this.Fr},set:function(e){this.Fr.D(e)||this.Fr.assign(e)}},delay:{get:function(){return this.Ik},set:function(e){this.Ik=e}}}),xo.prototype.getDraggingSource=xo.prototype.Az;var pt=null,Lt=null;xo.className="DraggingTool",ul=new Xt,Ai("draggingTool",function(){return this.findTool("Dragging")},function(e){this.gb("Dragging",e,this.mouseMoveTools)}),ao.prototype.doCancel=function(){pt!==null&&pt.doCancel(),or.prototype.doCancel.call(this)};function Tt(){or.call(this),this.te=100,this.Ha=!1,this.u="pointer";var e=new kn,t=new nr;t.isPanelMain=!0,t.stroke="blue",e.add(t),t=new nr,t.toArrow="Standard",t.fill="blue",t.stroke="blue",e.add(t),e.layerName="Tool",this.Ci=e,e=new Vn,t=new nr,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=as,e.add(t),e.selectable=!1,e.layerName="Tool",this.Bi=e,this.j=t,e=new Vn,t=new nr,t.portId="",t.figure="Rectangle",t.fill=null,t.stroke="magenta",t.strokeWidth=2,t.desiredSize=as,e.add(t),e.selectable=!1,e.layerName="Tool",this.Di=e,this.o=t,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new ii,this.Of=this.gj=this.Pf=null}fi(Tt,or),Tt.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},Tt.prototype.copyPortProperties=function(e,t,n,i,r){if(e!==null&&t!==null&&n!==null&&i!==null){var o=t.Df(),s=mi.alloc();s.width=t.naturalBounds.width*o,s.height=t.naturalBounds.height*o,i.desiredSize=s,mi.free(s),r?(i.toSpot=t.toSpot,i.toEndSegmentLength=t.toEndSegmentLength):(i.fromSpot=t.fromSpot,i.fromEndSegmentLength=t.fromEndSegmentLength),n.locationSpot=vr,o=ce.alloc(),n.location=t.ga(vr,o),ce.free(o),i.angle=t.li(),this.portTargeted!==null&&this.portTargeted(e,t,n,i,r)}},Tt.prototype.setNoTargetPortProperties=function(e,t,n){t!==null&&(t.desiredSize=as,t.fromSpot=Di,t.toSpot=Di),e!==null&&(e.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,e,t,n)},Tt.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},Tt.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Vn){var t=this.targetPort.part;this.isForwards?this.copyPortProperties(t,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(t,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(e.allowHorizontalScroll||e.allowVerticalScroll)&&e.gs(e.lastInput.viewPoint)}},Tt.prototype.findValidLinkablePort=function(e,t){if(e===null)return null;var n=e.part;if(!(n instanceof Vn))return null;for(;e!==null;){var i=t?e.toLinkable:e.fromLinkable;if(i===!0&&(e.portId!==null||e instanceof Vn)&&(t?this.isValidTo(n,e):this.isValidFrom(n,e)))return e;if(i===!1)break;e=e.panel}return null},Tt.prototype.findTargetPort=function(e){var t=this.diagram,n=t.lastInput.documentPoint,i=this.portGravity;0>=i&&(i=.1);var r=this,o=t.og(n,i,function(x){return r.findValidLinkablePort(x,e)},null,!0);for(i=1/0,t=null,o=o.iterator;o.next();){var s=o.value,l=s.part;if(l instanceof Vn){var u=s.ga(vr,ce.alloc()),f=n.x-u.x,p=n.y-u.y;ce.free(u),u=f*f+p*p,u<i&&(f=this.validPortsCache.I(s),f!==null?f&&(t=s,i=u):e&&this.isValidLink(this.originalFromNode,this.originalFromPort,l,s)||!e&&this.isValidLink(l,s,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(s,!0),t=s,i=u):this.validPortsCache.add(s,!1))}}return t!==null&&(n=t.part,n instanceof Vn&&(n.layer===null||n.layer.allowLink))?t:null},Tt.prototype.isValidFrom=function(e,t){if(e===null||t===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(e.layer!==null&&!e.layer.allowLink||t.fromLinkable!==!0))return!1;var n=t.fromMaxLinks;if(1/0>n){if(this.originalLink!==null&&e===this.originalFromNode&&t===this.originalFromPort)return!0;if(t=t.portId,t===null&&(t=""),e.Mo(t).count>=n)return!1}return!0},Tt.prototype.isValidTo=function(e,t){if(e===null||t===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(e.layer!==null&&!e.layer.allowLink||t.toLinkable!==!0))return!1;var n=t.toMaxLinks;if(1/0>n){if(this.originalLink!==null&&e===this.originalToNode&&t===this.originalToPort)return!0;if(t=t.portId,t===null&&(t=""),e.Sd(t).count>=n)return!1}return!0},Tt.prototype.isInSameNode=function(e,t){return e===null||t===null?!1:e===t?!0:(e=e.part,t=t.part,e!==null&&e===t)},Tt.prototype.isLinked=function(e,t){if(e===null||t===null)return!1;var n=e.part;if(!(n instanceof Vn))return!1;e=e.portId,e===null&&(e="");var i=t.part;if(!(i instanceof Vn))return!1;for(t=t.portId,t===null&&(t=""),t=i.Sd(t);t.next();)if(i=t.value,i.fromNode===n&&i.fromPortId===e)return!0;return!1},Tt.prototype.isValidLink=function(e,t,n,i){if(!this.isValidFrom(e,t)||!this.isValidTo(n,i)||!(t===null||i===null||(t.fromLinkableSelfNode&&i.toLinkableSelfNode||!this.isInSameNode(t,i))&&(t.fromLinkableDuplicates&&i.toLinkableDuplicates||!this.isLinked(t,i)))||this.originalLink!==null&&(e!==null&&this.isLabelDependentOnLink(e,this.originalLink)||n!==null&&this.isLabelDependentOnLink(n,this.originalLink))||e!==null&&n!==null&&(e.data===null&&n.data!==null||e.data!==null&&n.data===null)||!this.isValidCycle(e,n,this.originalLink))return!1;if(e!==null){var r=e.linkValidation;if(r!==null&&!r(e,t,n,i,this.originalLink))return!1}return n!==null&&(r=n.linkValidation,r!==null&&!r(e,t,n,i,this.originalLink))?!1:(r=this.linkValidation,r!==null?r(e,t,n,i,this.originalLink):!0)},Tt.prototype.isLabelDependentOnLink=function(e,t){if(e===null)return!1;var n=e.labeledLink;if(n===null)return!1;if(n===t)return!0;var i=new Yt;return i.add(e),me(this,n,t,i)};function me(e,t,n,i){if(t===n)return!0;var r=t.fromNode;return r!==null&&r.isLinkLabel&&(i.add(r),me(e,r.labeledLink,n,i))?!0:(t=t.toNode,!!(t!==null&&t.isLinkLabel&&(i.add(t),me(e,t.labeledLink,n,i))))}Tt.prototype.isValidCycle=function(e,t,n){if(n===void 0&&(n=null),e===null||t===null)return this.isUnconnectedLinkValid;var i=this.diagram.validCycle;if(i!==Pd){if(i===dp){if(i=n||this.temporaryLink,i!==null&&!i.isTreeLink)return!0;for(i=t.linksConnected;i.next();){var r=i.value;if(r!==n&&r.isTreeLink&&r.toNode===t)return!1}return!dn(this,e,t,n,!0)}if(i===fp){if(i=n||this.temporaryLink,i!==null&&!i.isTreeLink)return!0;for(i=e.linksConnected;i.next();)if(r=i.value,r!==n&&r.isTreeLink&&r.fromNode===e)return!1;return!dn(this,e,t,n,!0)}if(i===up)return e===t?e=!0:(i=new Yt,i.add(t),e=an(this,i,e,t,n)),!e;if(i===cp)return!dn(this,e,t,n,!1);if(i===hp)return e===t?e=!0:(i=new Yt,i.add(t),e=Pn(this,i,e,t,n)),!e}return!0};function dn(e,t,n,i,r){if(t===n)return!0;if(t===null||n===null)return!1;for(var o=t.linksConnected;o.next();){var s=o.value;if(s!==i&&(!r||s.isTreeLink)&&s.toNode===t&&(s=s.fromNode,s!==t&&dn(e,s,n,i,r)))return!0}return!1}function an(e,t,n,i,r){if(n===i)return!0;if(n===null||i===null||t.contains(n))return!1;t.add(n);for(var o=n.linksConnected;o.next();){var s=o.value;if(s!==r&&s.toNode===n&&(s=s.fromNode,s!==n&&an(e,t,s,i,r)))return!0}return!1}function Pn(e,t,n,i,r){if(n===i)return!0;if(n===null||i===null||t.contains(n))return!1;t.add(n);for(var o=n.linksConnected;o.next();){var s=o.value;if(s!==r){var l=s.fromNode;if(s=s.toNode,l=l===n?s:l,l!==n&&Pn(e,t,l,i,r))return!0}}return!1}at.Object.defineProperties(Tt.prototype,{portGravity:{get:function(){return this.te},set:function(e){0<=e&&(this.te=e)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(e){this.Ha=e}},linkingCursor:{get:function(){return this.u},set:function(e){this.u=e}},temporaryLink:{get:function(){return this.Ci},set:function(e){this.Ci=e}},temporaryFromNode:{get:function(){return this.Bi},set:function(e){(this.Bi=e)&&(this.j=e.port)}},temporaryFromPort:{get:function(){return this.j},set:function(e){if(this.j!==null){var t=this.j.panel;if(t!==null){var n=t.O.indexOf(this.j);t.mb(n),t.Gb(n,e)}}this.j=e}},temporaryToNode:{get:function(){return this.Di},set:function(e){(this.Di=e)&&(this.o=e.port)}},temporaryToPort:{get:function(){return this.o},set:function(e){if(this.o!==null){var t=this.o.panel;if(t!==null){var n=t.O.indexOf(this.o);t.mb(n),t.Gb(n,e)}}this.o=e}},originalLink:{get:function(){return this.Hb},set:function(e){this.Hb=e}},originalFromNode:{get:function(){return this.hb},set:function(e){this.hb=e}},originalFromPort:{get:function(){return this.ob},set:function(e){this.ob=e}},originalToNode:{get:function(){return this.Oc},set:function(e){this.Oc=e}},originalToPort:{get:function(){return this.Pc},set:function(e){this.Pc=e}},isForwards:{get:function(){return this.ia},set:function(e){this.ia=e}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(e){this.Pf=e}},linkValidation:{get:function(){return this.gj},set:function(e){this.gj=e}},portTargeted:{get:function(){return this.Of},set:function(e){this.Of=e}}}),Tt.className="LinkingBaseTool";function Rn(){Tt.call(this),this.name="Linking",this.V={},this.F=null,this.K=Bn,this.Xd=null}fi(Rn,Tt),Rn.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return e.isReadOnly||e.isModelReadOnly||!e.allowLink||!e.model.xs()||!e.lastInput.left||e.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},Rn.prototype.findLinkablePort=function(){var e=this.diagram,t=this.startObject;if(t===null&&(t=e.ic(e.firstInput.documentPoint,null,null)),t===null||(e=t.part,!(e instanceof Vn)))return null;var n=this.direction;if(n===Bn||n===E){var i=this.findValidLinkablePort(t,!1);if(i!==null||this.startObject===e&&(i=e.port,this.findValidLinkablePort(i,!1)))return this.isForwards=!0,i}return(n===Bn||n===P)&&(t=this.findValidLinkablePort(t,!0),t!==null||this.startObject===e&&(t=e.port,this.findValidLinkablePort(t,!0)))?(this.isForwards=!1,t):null},Rn.prototype.doActivate=function(){var e=this.diagram,t=this.findLinkablePort();t===null?this.stopTool():(this.Ea(this.name),e.isMouseCaptured=!0,e.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=e.lastInput.documentPoint),this.originalFromPort=t,t=this.originalFromPort.part,t instanceof Vn&&(this.originalFromNode=t),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=e.lastInput.documentPoint),this.originalToPort=t,t=this.originalToPort.part,t instanceof Vn&&(this.originalToNode=t),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),e.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),e.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(),e.add(this.temporaryLink)),this.isActive=!0)},Rn.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;e.remove(this.temporaryLink),e.remove(this.temporaryFromNode),e.remove(this.temporaryToNode),e.isMouseCaptured=!1,e.currentCursor="",this.stopTransaction()},Rn.prototype.doStop=function(){Tt.prototype.doStop.call(this),this.startObject=null},Rn.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram,t=this.transactionResult=null,n=null,i=null,r=null,o=null;try{var s=this.targetPort=this.findTargetPort(this.isForwards);if(s!==null){var l=s.part;l instanceof Vn&&(this.isForwards?(this.originalFromNode!==null&&(t=this.originalFromNode,n=this.originalFromPort),i=l,r=s):(t=l,n=s,this.originalToNode!==null&&(i=this.originalToNode,r=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(t=this.originalFromNode,n=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(i=this.originalToNode,r=this.originalToPort);t!==null||i!==null?(o=this.insertLink(t,n,i,r),o!==null?(s===null&&(this.isForwards?o.defaultToPoint=e.lastInput.documentPoint:o.defaultFromPoint=e.lastInput.documentPoint),e.allowSelect&&(e.R("ChangingSelection",e.selection),e.clearSelection(!0),o.isSelected=!0),this.transactionResult=this.name,e.R("LinkDrawn",o)):this.doNoLink(t,n,i,r)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),o&&e.allowSelect&&e.R("ChangedSelection",e.selection)}}},Rn.prototype.isNewTreeLink=function(){var e=this.archetypeLinkData;if(e===null)return!0;if(e instanceof kn)return e.isTreeLink;var t=this.diagram;return t===null?!0:(e=t.partManager.getLinkCategoryForData(e),t=t.partManager.findLinkTemplateForCategory(e),t!==null?t.isTreeLink:!0)},Rn.prototype.insertLink=function(e,t,n,i){return this.diagram.partManager.insertLink(e,t,n,i)},Rn.prototype.doNoLink=function(){},at.Object.defineProperties(Rn.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(e){this.V=e}},archetypeLabelNodeData:{get:function(){return this.F},set:function(e){this.F=e}},direction:{get:function(){return this.K},set:function(e){this.K=e}},startObject:{get:function(){return this.Xd},set:function(e){this.Xd=e}}});var Bn=new qt(Rn,"Either",0),E=new qt(Rn,"ForwardsOnly",0),P=new qt(Rn,"BackwardsOnly",0);Rn.className="LinkingTool",Rn.Either=Bn,Rn.ForwardsOnly=E,Rn.BackwardsOnly=P;function U(){Tt.call(this),this.name="Relinking";var e=new nr;e.figure="Diamond",e.desiredSize=As,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=0,this.V=e,e=new nr,e.figure="Diamond",e.desiredSize=As,e.fill="lightblue",e.stroke="dodgerblue",e.cursor=this.linkingCursor,e.segmentIndex=-1,this.Xd=e,this.F=null,this.Ew=new Ht}fi(U,Tt),U.prototype.updateAdornments=function(e){if(e!==null&&e instanceof kn){var t="RelinkFrom",n=null;if(e.isSelected&&!this.diagram.isReadOnly){var i=e.selectionObject;i!==null&&e.canRelinkFrom()&&e.actualBounds.w()&&e.isVisible()&&i.actualBounds.w()&&i.Ed()&&(n=e.Pj(t),n===null&&(n=this.makeAdornment(i,!1),e.bh(t,n)))}n===null&&e.Jf(t),t="RelinkTo",n=null,e.isSelected&&!this.diagram.isReadOnly&&(i=e.selectionObject,i!==null&&e.canRelinkTo()&&e.actualBounds.w()&&e.isVisible()&&i.actualBounds.w()&&i.Ed()&&(n=e.Pj(t),n===null?(n=this.makeAdornment(i,!0),e.bh(t,n)):n.v())),n===null&&e.Jf(t)}},U.prototype.makeAdornment=function(e,t){var n=new Fr;return n.type=wn.Link,t=t?this.toHandleArchetype:this.fromHandleArchetype,t!==null&&n.add(t.copy()),n.adornedObject=e,n},U.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowRelink||!e.model.xs()||!e.lastInput.left)return!1;var t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkFrom");return t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkTo")),t!==null},U.prototype.doActivate=function(){var e=this.diagram;if(this.originalLink===null){var t=this.handle;if(t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkFrom"),t===null&&(t=this.findToolHandleAt(e.firstInput.documentPoint,"RelinkTo"))),t===null)return;var n=t.part;if(!(n instanceof Fr&&n.adornedPart instanceof kn))return;this.handle=t,this.isForwards=n===null||n.category==="RelinkTo",this.originalLink=n.adornedPart}this.Ea(this.name),e.isMouseCaptured=!0,e.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=ws),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=ws),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),e.add(this.temporaryFromNode),e.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(),e.add(this.temporaryLink)),this.isActive=!0},U.prototype.copyLinkProperties=function(e,t){if(e!==null&&t!==null){t.adjusting=e.adjusting,t.corner=e.corner;var n=e.curve;(n===Lf||n===wh)&&(n=gl),t.curve=n,t.curviness=e.curviness,t.isTreeLink=e.isTreeLink,t.points=e.points,t.routing=e.routing,t.smoothness=e.smoothness,t.fromSpot=e.fromSpot,t.fromEndSegmentLength=e.fromEndSegmentLength,t.fromShortLength=e.fromShortLength,t.toSpot=e.toSpot,t.toEndSegmentLength=e.toEndSegmentLength,t.toShortLength=e.toShortLength}},U.prototype.doDeactivate=function(){this.isActive=!1;var e=this.diagram;e.remove(this.temporaryLink),e.remove(this.temporaryFromNode),e.remove(this.temporaryToNode),e.isMouseCaptured=!1,e.currentCursor="",this.stopTransaction()},U.prototype.doStop=function(){Tt.prototype.doStop.call(this),this.handle=null},U.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram;this.transactionResult=null;var t=this.originalFromNode,n=this.originalFromPort,i=this.originalToNode,r=this.originalToPort,o=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var s=this.targetPort.part;s instanceof Vn&&(this.isForwards?(i=s,r=this.targetPort):(t=s,n=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?r=i=null:n=t=null:o=null;o!==null?(this.reconnectLink(o,this.isForwards?i:t,this.isForwards?r:n,this.isForwards),this.targetPort===null&&(this.isForwards?o.defaultToPoint=e.lastInput.documentPoint:o.defaultFromPoint=e.lastInput.documentPoint,o.bb()),this.transactionResult=this.name,e.R("LinkRelinked",o,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},U.prototype.reconnectLink=function(e,t,n,i){return n=n!==null&&n.portId!==null?n.portId:"",i?(e.toNode=t,e.toPortId=n):(e.fromNode=t,e.fromPortId=n),!0},U.prototype.doNoRelink=function(){};function q(e,t,n,i,r){t!==null?(e.copyPortProperties(t,n,e.temporaryFromNode,e.temporaryFromPort,!1),e.diagram.add(e.temporaryFromNode)):e.diagram.remove(e.temporaryFromNode),i!==null?(e.copyPortProperties(i,r,e.temporaryToNode,e.temporaryToPort,!0),e.diagram.add(e.temporaryToNode)):e.diagram.remove(e.temporaryToNode)}at.Object.defineProperties(U.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(e){this.V=e}},toHandleArchetype:{get:function(){return this.Xd},set:function(e){this.Xd=e}},handle:{get:function(){return this.F},set:function(e){if(e!==null&&!(e.part instanceof Fr))throw Error("new handle is not in an Adornment: "+e);this.F=e}}}),U.className="RelinkingTool",Ai("linkingTool",function(){return this.findTool("Linking")},function(e){this.gb("Linking",e,this.mouseMoveTools)}),Ai("relinkingTool",function(){return this.findTool("Relinking")},function(e){this.gb("Relinking",e,this.mouseDownTools)});function le(){or.call(this),this.name="LinkReshaping";var e=new nr;e.figure="Rectangle",e.desiredSize=Fo,e.fill="lightblue",e.stroke="dodgerblue",this.o=e,e=new nr,e.figure="Diamond",e.desiredSize=As,e.fill="lightblue",e.stroke="dodgerblue",e.cursor="move",this.u=e,this.F=3,this.Ts=this.j=null,this.Fw=new ce,this.Yq=new Xt}fi(le,or),le.prototype.Ru=function(e){return e&&e.reshapingBehavior.value!==0?e.reshapingBehavior:Me},le.prototype.om=function(e,t){e.reshapingBehavior=t},le.prototype.updateAdornments=function(e){if(e!==null&&e instanceof kn){var t=null;if(e.isSelected&&!this.diagram.isReadOnly){var n=e.path;n!==null&&e.canReshape()&&e.actualBounds.w()&&e.isVisible()&&n.actualBounds.w()&&n.Ed()&&(t=e.Pj(this.name),t===null||t.Aw!==e.pointsCount||t.Uw!==e.resegmentable)&&(t=this.makeAdornment(n),t!==null&&(t.Aw=e.pointsCount,t.Uw=e.resegmentable,e.bh(this.name,t)))}t===null&&e.Jf(this.name)}},le.prototype.makeAdornment=function(e){var t=e.part,n=t.pointsCount,i=t.isOrthogonal,r=null;if(t.points!==null&&1<n){r=new Fr,r.type=wn.Link,n=t.firstPickIndex;var o=t.lastPickIndex,s=i?1:0;if(t.resegmentable&&t.computeCurve()!==bu)for(var l=n+s;l<o-s;l++){var u=this.makeResegmentHandle(e,l);u!==null&&(u.segmentIndex=l,u.segmentFraction=.5,u.fromMaxLinks=999,r.add(u))}for(s=n+1;s<o;s++)if(l=this.makeHandle(e,s),l!==null){if(l.segmentIndex=s,s!==n)if(s===n+1&&i){u=t.i(n);var f=t.i(n+1);Ke.B(u.x,f.x)&&Ke.B(u.y,f.y)&&(f=t.i(n-1)),Ke.B(u.x,f.x)?(this.om(l,zt),l.cursor="n-resize"):Ke.B(u.y,f.y)&&(this.om(l,et),l.cursor="w-resize")}else s===o-1&&i?(u=t.i(o-1),f=t.i(o),Ke.B(u.x,f.x)&&Ke.B(u.y,f.y)&&(u=t.i(o+1)),Ke.B(u.x,f.x)?(this.om(l,zt),l.cursor="n-resize"):Ke.B(u.y,f.y)&&(this.om(l,et),l.cursor="w-resize")):s!==o&&(this.om(l,Ft),l.cursor="move");r.add(l)}r.adornedObject=e}return r},le.prototype.makeHandle=function(){var e=this.handleArchetype;return e===null?null:e.copy()},le.prototype.makeResegmentHandle=function(){var e=this.midHandleArchetype;return e===null?null:e.copy()},le.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowReshape&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},le.prototype.doActivate=function(){var e=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle!==null){var t=this.handle.part.adornedPart;if(t instanceof kn){if(this.Ts=t,e.isMouseCaptured=!0,this.Ea(this.name),t.resegmentable&&this.handle.fromMaxLinks===999){var n=t.points.copy(),i=this.getResegmentingPoint();if(n.Gb(this.handle.segmentIndex+1,i),t.isOrthogonal&&n.Gb(this.handle.segmentIndex+1,i),t.points=n,t.Wb(),t.updateAdornments(),this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=t.i(this.handle.segmentIndex),this.Yq=t.points.copy(),this.isActive=!0}}},le.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},le.prototype.stopTransaction=function(){var e=this.diagram,t=or.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},le.prototype.doCancel=function(){var e=this.adornedLink;e!==null&&(e.points=this.Yq),this.stopTool()},le.prototype.getResegmentingPoint=function(){return this.handle.ga(vr)},le.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeReshape(e.lastInput.documentPoint),this.reshape(e))},le.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){var t=this.computeReshape(e.lastInput.documentPoint);if(this.reshape(t),t=this.adornedLink,t!==null&&t.resegmentable){var n=this.handle.segmentIndex,i=t.i(n-1),r=t.i(n),o=t.i(n+1);if(t.isOrthogonal){if(n>t.firstPickIndex+1&&n<t.lastPickIndex-1){var s=t.i(n-2);if(Math.abs(i.x-r.x)<this.resegmentingDistance&&Math.abs(i.y-r.y)<this.resegmentingDistance&&(ge(this,s,i,r,o,!0)||ge(this,s,i,r,o,!1))){var l=t.points.copy();ge(this,s,i,r,o,!0)?(l.cd(n-2,new ce(s.x,(o.y+s.y)/2)),l.cd(n+1,new ce(o.x,(o.y+s.y)/2))):(l.cd(n-2,new ce((o.x+s.x)/2,s.y)),l.cd(n+1,new ce((o.x+s.x)/2,o.y))),l.mb(n),l.mb(n-1),t.points=l,t.Wb()}else s=t.i(n+2),Math.abs(r.x-o.x)<this.resegmentingDistance&&Math.abs(r.y-o.y)<this.resegmentingDistance&&(ge(this,i,r,o,s,!0)||ge(this,i,r,o,s,!1))&&(l=t.points.copy(),ge(this,i,r,o,s,!0)?(l.cd(n-1,new ce(i.x,(i.y+s.y)/2)),l.cd(n+2,new ce(s.x,(i.y+s.y)/2))):(l.cd(n-1,new ce((i.x+s.x)/2,i.y)),l.cd(n+2,new ce((i.x+s.x)/2,s.y))),l.mb(n+1),l.mb(n),t.points=l,t.Wb())}}else s=ce.alloc(),Ke.qh(i.x,i.y,o.x,o.y,r.x,r.y,s)&&s.Bf(r)<this.resegmentingDistance*this.resegmentingDistance&&(i=t.points.copy(),i.mb(n),t.points=i,t.Wb()),ce.free(s)}e.Ya(),this.transactionResult=this.name,e.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function ge(e,t,n,i,r,o){return o?Math.abs(t.y-n.y)<e.resegmentingDistance&&Math.abs(n.y-i.y)<e.resegmentingDistance&&Math.abs(i.y-r.y)<e.resegmentingDistance:Math.abs(t.x-n.x)<e.resegmentingDistance&&Math.abs(n.x-i.x)<e.resegmentingDistance&&Math.abs(i.x-r.x)<e.resegmentingDistance}le.prototype.reshape=function(e){var t=this.adornedLink;t.uh();var n=this.handle.segmentIndex,i=this.Ru(this.handle);if(t.isOrthogonal)if(n===t.firstPickIndex+1)n=t.firstPickIndex+1,i===zt?(t.L(n,t.i(n-1).x,e.y),t.L(n+1,t.i(n+2).x,e.y)):i===et&&(t.L(n,e.x,t.i(n-1).y),t.L(n+1,e.x,t.i(n+2).y));else if(n===t.lastPickIndex-1)n=t.lastPickIndex-1,i===zt?(t.L(n-1,t.i(n-2).x,e.y),t.L(n,t.i(n+1).x,e.y)):i===et&&(t.L(n-1,e.x,t.i(n-2).y),t.L(n,e.x,t.i(n+1).y));else{i=n;var r=t.i(i),o=t.i(i-1),s=t.i(i+1);Ke.B(o.x,r.x)&&Ke.B(r.y,s.y)?(Ke.B(o.x,t.i(i-2).x)&&!Ke.B(o.y,t.i(i-2).y)?(t.m(i,e.x,o.y),n++,i++):t.L(i-1,e.x,o.y),Ke.B(s.y,t.i(i+2).y)&&!Ke.B(s.x,t.i(i+2).x)?t.m(i+1,s.x,e.y):t.L(i+1,s.x,e.y)):Ke.B(o.y,r.y)&&Ke.B(r.x,s.x)?(Ke.B(o.y,t.i(i-2).y)&&!Ke.B(o.x,t.i(i-2).x)?(t.m(i,o.x,e.y),n++,i++):t.L(i-1,o.x,e.y),Ke.B(s.x,t.i(i+2).x)&&!Ke.B(s.y,t.i(i+2).y)?t.m(i+1,e.x,s.y):t.L(i+1,e.x,s.y)):Ke.B(o.x,r.x)&&Ke.B(r.x,s.x)?(Ke.B(o.x,t.i(i-2).x)&&!Ke.B(o.y,t.i(i-2).y)?(t.m(i,e.x,o.y),n++,i++):t.L(i-1,e.x,o.y),Ke.B(s.x,t.i(i+2).x)&&!Ke.B(s.y,t.i(i+2).y)?t.m(i+1,e.x,s.y):t.L(i+1,e.x,s.y)):Ke.B(o.y,r.y)&&Ke.B(r.y,s.y)&&(Ke.B(o.y,t.i(i-2).y)&&!Ke.B(o.x,t.i(i-2).x)?(t.m(i,o.x,e.y),n++,i++):t.L(i-1,o.x,e.y),Ke.B(s.y,t.i(i+2).y)&&!Ke.B(s.x,t.i(i+2).x)?t.m(i+1,s.x,e.y):t.L(i+1,s.x,e.y)),t.L(n,e.x,e.y)}else t.L(n,e.x,e.y),i=t.fromNode,r=t.fromPort,i!==null&&(o=i.findVisibleNode(),o!==null&&o!==i&&(i=o,r=i.port)),n===1&&t.computeSpot(!0,r).Mc()&&(o=r.ga(vr,ce.alloc()),i=t.getLinkPointFromPoint(i,r,o,e,!0,ce.alloc()),t.L(0,i.x,i.y),ce.free(o),ce.free(i)),i=t.toNode,r=t.toPort,i!==null&&(o=i.findVisibleNode(),o!==null&&o!==i&&(i=o,r=i.port)),n===t.pointsCount-2&&t.computeSpot(!1,r).Mc()&&(n=r.ga(vr,ce.alloc()),e=t.getLinkPointFromPoint(i,r,n,e,!1,ce.alloc()),t.L(t.pointsCount-1,e.x,e.y),ce.free(n),ce.free(e));t.zf()},le.prototype.computeReshape=function(e){var t=this.adornedLink,n=this.handle.segmentIndex;switch(this.Ru(this.handle)){case Ft:return e;case zt:return new ce(t.i(n).x,e.y);case et:return new ce(e.x,t.i(n).y);default:case Me:return t.i(n)}},at.Object.defineProperties(le.prototype,{handleArchetype:{get:function(){return this.o},set:function(e){this.o=e}},midHandleArchetype:{get:function(){return this.u},set:function(e){this.u=e}},handle:{get:function(){return this.j},set:function(e){if(e!==null&&!(e.part instanceof Fr))throw Error("new handle is not in an Adornment: "+e);this.j=e}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(e){this.F=e}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),le.prototype.setReshapingBehavior=le.prototype.om,le.prototype.getReshapingBehavior=le.prototype.Ru;var Me=new qt(le,"None",0),et=new qt(le,"Horizontal",1),zt=new qt(le,"Vertical",2),Ft=new qt(le,"All",3);le.className="LinkReshapingTool",le.None=Me,le.Horizontal=et,le.Vertical=zt,le.All=Ft,Ai("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(e){this.gb("LinkReshaping",e,this.mouseDownTools)});function gt(){or.call(this),this.name="Resizing",this.o=new mi(1,1).freeze(),this.j=new mi(9999,9999).freeze(),this.yg=new mi(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var e=new nr;e.alignmentFocus=vr,e.figure="Rectangle",e.desiredSize=Fo,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.F=e,this.u=null,this.Xq=new ce,this.Dw=new mi,this.Tn=new ce,this.rt=new mi(0,0),this.qt=new mi(1/0,1/0),this.pt=new mi(1,1)}fi(gt,or),gt.prototype.updateAdornments=function(e){if(!(e===null||e instanceof kn)){if(e.isSelected&&!this.diagram.isReadOnly){var t=e.resizeObject,n=e.Pj(this.name);if(t!==null&&e.canResize()&&e.actualBounds.w()&&e.isVisible()&&t.actualBounds.w()&&t.Ed()&&((n===null||n.adornedObject!==t)&&(n=this.makeAdornment(t)),n!==null)){t=t.li(),Gh(e)&&this.updateResizeHandles(n,t),e.bh(this.name,n);return}}e.Jf(this.name)}},gt.prototype.makeAdornment=function(e){var t=e.part.resizeAdornmentTemplate;if(t===null){t=new Fr,t.type=wn.Spot,t.locationSpot=vr;var n=new ml;n.isPanelMain=!0,t.add(n),t.add(this.makeHandle(e,Yo)),t.add(this.makeHandle(e,Go)),t.add(this.makeHandle(e,Oo)),t.add(this.makeHandle(e,wa)),t.add(this.makeHandle(e,Qo)),t.add(this.makeHandle(e,rs)),t.add(this.makeHandle(e,fs)),t.add(this.makeHandle(e,is))}else if(Uu(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},gt.prototype.makeHandle=function(e,t){return e=this.handleArchetype,e===null?null:(e=e.copy(),e.alignment=t,e)},gt.prototype.updateResizeHandles=function(e,t){if(e!==null){if(!e.alignment.Xb()&&(e.cursor==="pointer"||0<e.cursor.indexOf("resize")))e:{var n=e.alignment;if(n.Mc()&&(n=vr),0>=n.x)t=0>=n.y?t+225:1<=n.y?t+135:t+180;else if(1<=n.x)0>=n.y?t+=315:1<=n.y&&(t+=45);else if(0>=n.y)t+=270;else if(1<=n.y)t+=90;else break e;0>t?t+=360:360<=t&&(t-=360),e.cursor=22.5>t?"e-resize":67.5>t?"se-resize":112.5>t?"s-resize":157.5>t?"sw-resize":202.5>t?"w-resize":247.5>t?"nw-resize":292.5>t?"n-resize":337.5>t?"ne-resize":"e-resize"}else if(e instanceof wn)for(e=e.elements;e.next();)this.updateResizeHandles(e.value,t)}},gt.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowResize&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},gt.prototype.doActivate=function(){var e=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(e.isMouseCaptured=!0,e.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))},gt.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=e.isMouseCaptured=!1},gt.prototype.stopTransaction=function(){var e=this.diagram,t=or.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},gt.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},gt.prototype.doMouseMove=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(e.lastInput.documentPoint,ce.alloc()),o=this.computeReshape();t=this.computeResize(r,this.handle.alignment,t,n,i,o),this.resize(t),e.bd(),ce.free(r)}},gt.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){var t=this.rt,n=this.qt,i=this.pt,r=this.adornedObject.qs(e.lastInput.documentPoint,ce.alloc()),o=this.computeReshape();t=this.computeResize(r,this.handle.alignment,t,n,i,o),this.resize(t),ce.free(r),e.Ya(),this.transactionResult=this.name,e.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},gt.prototype.resize=function(e){var t=this.diagram,n=this.adornedObject;if(n!==null){if(n.desiredSize=e.size,e=n.part,e.Va(),n=n.ga(this.handle.alignment.gv()),e instanceof Xi){var i=new Xt;if(i.add(e),!this.dragsMembers&&e.placeholder===null){var r=new c;r.dragsMembers=!1}t.moveParts(i,this.oppositePoint.copy().re(n),!0,r)}else e.location=e.location.copy().re(n).add(this.oppositePoint);t.bd()}},gt.prototype.computeResize=function(e,t,n,i,r,o){t.Mc()&&(t=vr);var s=this.adornedObject.naturalBounds,l=s.x,u=s.y,f=s.x+s.width,p=s.y+s.height,x=1;if(!o){x=s.width;var N=s.height;0>=x&&(x=1),0>=N&&(N=1),x=N/x}return N=ce.alloc(),Ke.No(e.x,e.y,l,u,r.width,r.height,N),e=s.copy(),0>=t.x?0>=t.y?(e.x=Math.max(N.x,f-i.width),e.x=Math.min(e.x,f-n.width),e.width=Math.max(f-e.x,n.width),e.y=Math.max(N.y,p-i.height),e.y=Math.min(e.y,p-n.height),e.height=Math.max(p-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x):(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width),e.x=f-e.width,e.y=p-e.height)):1<=t.y?(e.x=Math.max(N.x,f-i.width),e.x=Math.min(e.x,f-n.width),e.width=Math.max(f-e.x,n.width),e.height=Math.max(Math.min(N.y-u,i.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x):(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width),e.x=f-e.width)):(e.x=Math.max(N.x,f-i.width),e.x=Math.min(e.x,f-n.width),e.width=f-e.x,o||(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x,e.y=u+.5*(p-u-e.height))):1<=t.x?0>=t.y?(e.width=Math.max(Math.min(N.x-l,i.width),n.width),e.y=Math.max(N.y,p-i.height),e.y=Math.min(e.y,p-n.height),e.height=Math.max(p-e.y,n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x):(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width),e.y=p-e.height)):1<=t.y?(e.width=Math.max(Math.min(N.x-l,i.width),n.width),e.height=Math.max(Math.min(N.y-u,i.height),n.height),o||(1<=e.height/e.width?(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x):(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width))):(e.width=Math.max(Math.min(N.x-l,i.width),n.width),o||(e.height=Math.max(Math.min(x*e.width,i.height),n.height),e.width=e.height/x,e.y=u+.5*(p-u-e.height))):0>=t.y?(e.y=Math.max(N.y,p-i.height),e.y=Math.min(e.y,p-n.height),e.height=p-e.y,o||(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width,e.x=l+.5*(f-l-e.width))):1<=t.y&&(e.height=Math.max(Math.min(N.y-u,i.height),n.height),o||(e.width=Math.max(Math.min(e.height/x,i.width),n.width),e.height=x*e.width,e.x=l+.5*(f-l-e.width))),ce.free(N),e},gt.prototype.computeReshape=function(){var e=mn;return this.adornedObject instanceof nr&&(e=Rg(this.adornedObject)),!(e===di||this.diagram.lastInput.shift)},gt.prototype.computeMinSize=function(){var e=this.adornedObject.minSize.copy(),t=this.minSize;return!isNaN(t.width)&&t.width>e.width&&(e.width=t.width),!isNaN(t.height)&&t.height>e.height&&(e.height=t.height),e},gt.prototype.computeMaxSize=function(){var e=this.adornedObject.maxSize.copy(),t=this.maxSize;return!isNaN(t.width)&&t.width<e.width&&(e.width=t.width),!isNaN(t.height)&&t.height<e.height&&(e.height=t.height),e},gt.prototype.computeCellSize=function(){var e=new mi(NaN,NaN),t=this.adornedObject.part;return t!==null&&(t=t.resizeCellSize,!isNaN(t.width)&&0<t.width&&(e.width=t.width),!isNaN(t.height)&&0<t.height&&(e.height=t.height)),t=this.cellSize,isNaN(e.width)&&!isNaN(t.width)&&0<t.width&&(e.width=t.width),isNaN(e.height)&&!isNaN(t.height)&&0<t.height&&(e.height=t.height),t=this.diagram,(isNaN(e.width)||isNaN(e.height))&&t&&(t=t.grid,t!==null&&t.visible&&this.isGridSnapEnabled&&(t=t.gridCellSize,isNaN(e.width)&&!isNaN(t.width)&&0<t.width&&(e.width=t.width),isNaN(e.height)&&!isNaN(t.height)&&0<t.height&&(e.height=t.height))),(isNaN(e.width)||e.width===0||e.width===1/0)&&(e.width=1),(isNaN(e.height)||e.height===0||e.height===1/0)&&(e.height=1),e},at.Object.defineProperties(gt.prototype,{handleArchetype:{get:function(){return this.F},set:function(e){this.F=e}},handle:{get:function(){return this.u},set:function(e){if(e!==null&&!(e.part instanceof Fr))throw Error("new handle is not in an Adornment: "+e);this.u=e}},adornedObject:{get:function(){return this.ue},set:function(e){if(e!==null&&e.part instanceof Fr)throw Error("new handle must not be in an Adornment: "+e);this.ue=e}},minSize:{get:function(){return this.o},set:function(e){if(!this.o.D(e)){var t=e.width;isNaN(t)&&(t=0),e=e.height,isNaN(e)&&(e=0),this.o.h(t,e)}}},maxSize:{get:function(){return this.j},set:function(e){if(!this.j.D(e)){var t=e.width;isNaN(t)&&(t=1/0),e=e.height,isNaN(e)&&(e=1/0),this.j.h(t,e)}}},cellSize:{get:function(){return this.yg},set:function(e){this.yg.D(e)||this.yg.assign(e)}},isGridSnapEnabled:{get:function(){return this.V},set:function(e){this.V=e}},dragsMembers:{get:function(){return this.ia},set:function(e){this.ia=e}},oppositePoint:{get:function(){return this.Xq},set:function(e){this.Xq.D(e)||this.Xq.assign(e)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),gt.className="ResizingTool",Ai("resizingTool",function(){return this.findTool("Resizing")},function(e){this.gb("Resizing",e,this.mouseDownTools)});function en(){or.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new ce,this.ue=null;var e=new nr;e.figure="Ellipse",e.desiredSize=As,e.fill="lightblue",e.stroke="dodgerblue",e.strokeWidth=1,e.cursor="pointer",this.o=e,this.j=null,this.Cw=0,this.kr=new ce(NaN,NaN),this.u=0,this.F=50}fi(en,or),en.prototype.updateAdornments=function(e){if(e!==null){if(e.ph()){var t=e.rotateObject;if(t===e||t===e.path||t.isPanelMain)return}if(e.isSelected&&!this.diagram.isReadOnly&&(t=e.rotateObject,t!==null&&e.canRotate()&&e.actualBounds.w()&&e.isVisible()&&t.actualBounds.w()&&t.Ed())){var n=e.Pj(this.name);if((n===null||n.adornedObject!==t)&&(n=this.makeAdornment(t)),n!==null){n.angle=t.li(),n.placeholder===null&&(n.location=this.computeAdornmentLocation(t)),e.bh(this.name,n);return}}e.Jf(this.name)}},en.prototype.makeAdornment=function(e){var t=e.part.rotateAdornmentTemplate;if(t===null){t=new Fr,t.type=wn.Position,t.locationSpot=vr;var n=this.handleArchetype;n!==null&&t.add(n.copy())}else if(Uu(t),t=t.copy(),t===null)return null;return t.adornedObject=e,t},en.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!e.isReadOnly&&e.allowRotate&&e.lastInput.left?this.findToolHandleAt(e.firstInput.documentPoint,this.name)!==null:!1},en.prototype.doActivate=function(){var e=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(e.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(e.isMouseCaptured=!0,e.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)},en.prototype.computeRotationPoint=function(e){var t=e.part,n=t.locationObject;return t.rotationSpot.sb()?e.ga(t.rotationSpot):e===t||e===n?n.ga(t.locationSpot):e.ga(vr)},en.prototype.computeAdornmentLocation=function(e){var t=this.rotationPoint;t.w()||(t=this.computeRotationPoint(e)),t=e.qs(t);var n=this.handleAngle;0>n?n+=360:360<=n&&(n-=360),n=Math.round(45*Math.round(n/45));var i=this.handleDistance;return n===0?t.x=e.naturalBounds.width+i:n===45?(t.x=e.naturalBounds.width+i,t.y=e.naturalBounds.height+i):n===90?t.y=e.naturalBounds.height+i:n===135?(t.x=-i,t.y=e.naturalBounds.height+i):n===180?t.x=-i:n===225?(t.x=-i,t.y=-i):n===270?t.y=-i:n===315&&(t.x=e.naturalBounds.width+i,t.y=-i),e.ga(t)},en.prototype.doDeactivate=function(){var e=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new ce(NaN,NaN),this.isActive=e.isMouseCaptured=!1},en.prototype.stopTransaction=function(){var e=this.diagram,t=or.prototype.stopTransaction.call(this);return t&&e.undoManager.transactionToUndo!==null&&e.undoManager.transactionToUndo.ak(),t},en.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},en.prototype.doMouseMove=function(){var e=this.diagram;this.isActive&&(e=this.computeRotate(e.lastInput.documentPoint),this.rotate(e))},en.prototype.doMouseUp=function(){var e=this.diagram;if(this.isActive){e.delaysLayout=!1;var t=this.computeRotate(e.lastInput.documentPoint);this.rotate(t),e.Ya(),this.transactionResult=this.name,e.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},en.prototype.rotate=function(e){var t=this.adornedObject;if(t!==null){t.angle=e,t=t.part,t.Va();var n=t.locationObject,i=t.rotateObject;(n===i||n.rg(i))&&(n=this.Tn.copy(),t.location=n.re(this.rotationPoint).rotate(e-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},en.prototype.computeRotate=function(e){e=this.rotationPoint.ab(e)-this.handleAngle;var t=this.adornedObject.panel;t!==null&&(e-=t.li()),360<=e?e-=360:0>e&&(e+=360),t=Math.min(Math.abs(this.snapAngleMultiple),180);var n=Math.min(Math.abs(this.snapAngleEpsilon),t/2);return!this.diagram.lastInput.shift&&0<t&&0<n&&(e%t<n?e=Math.floor(e/t)*t:e%t>t-n&&(e=(Math.floor(e/t)+1)*t)),360<=e?e-=360:0>e&&(e+=360),e},at.Object.defineProperties(en.prototype,{handleArchetype:{get:function(){return this.o},set:function(e){this.o=e}},handle:{get:function(){return this.j},set:function(e){if(e!==null&&!(e.part instanceof Fr))throw Error("new handle is not in an Adornment: "+e);this.j=e}},adornedObject:{get:function(){return this.ue},set:function(e){if(e!==null&&e.part instanceof Fr)throw Error("new handle must not be in an Adornment: "+e);this.ue=e}},snapAngleMultiple:{get:function(){return this.ia},set:function(e){this.ia=e}},snapAngleEpsilon:{get:function(){return this.V},set:function(e){this.V=e}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(e){this.kr=e.copy()}},handleAngle:{get:function(){return this.u},set:function(e){this.u=e}},handleDistance:{get:function(){return this.F},set:function(e){this.F=e}}}),en.className="RotatingTool",Ai("rotatingTool",function(){return this.findTool("Rotating")},function(e){this.gb("Rotating",e,this.mouseDownTools)});function un(){or.call(this),this.name="ClickSelecting"}fi(un,or),un.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},un.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},un.className="ClickSelectingTool";function Ct(){or.call(this),this.name="Action",this.pk=null}fi(Ct,or),Ct.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram,t=e.lastInput,n=e.ic(t.documentPoint,function(i){for(;i.panel!==null&&!i.isActionable;)i=i.panel;return i});return n!==null&&n.isActionable?(this.pk=n,e.Ck=e.ic(t.documentPoint,null,null),!0):!1},Ct.prototype.doMouseDown=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionDown!==null&&t.actionDown(e,t))}else this.canStart()&&this.doActivate()},Ct.prototype.doMouseMove=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionMove!==null&&t.actionMove(e,t))}},Ct.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram.lastInput,t=this.pk;if(t===null)return;e.targetObject=t,t.actionUp!==null&&t.actionUp(e,t),this.standardMouseClick(function(n){for(;n.panel!==null&&(!n.isActionable||n!==t);)n=n.panel;return n},function(n){return n===t})}this.stopTool()},Ct.prototype.doCancel=function(){var e=this.diagram.lastInput,t=this.pk;t!==null&&(e.targetObject=t,t.actionCancel!==null&&t.actionCancel(e,t),this.stopTool())},Ct.prototype.doStop=function(){this.pk=null},Ct.className="ActionTool";function ai(){or.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new ce(0,0)}fi(ai,or),ai.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(e.lastInput.clickCount===1&&(this.mw=e.lastInput.viewPoint.copy()),e.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(e.lastInput.clickCount!==1)return!1;return!(e.currentTool!==this&&e.Ol(e.lastInput.documentPoint,!0)!==null)},ai.prototype.doMouseUp=function(){var e=this.diagram;this.isActive&&this.insertPart(e.lastInput.documentPoint),this.stopTool()},ai.prototype.insertPart=function(e){var t=this.diagram,n=this.archetypeNodeData;if(n===null)return null;var i=null;try{if(t.R("ChangingSelection",t.selection),this.Ea(this.name),n instanceof Ei)n.Zc()&&(Uu(n),i=n.copy(),i!==null&&t.add(i));else if(n!==null){var r=t.model.copyNodeData(n);Zt(r)&&(t.model.xf(r),i=t.Lc(r))}if(i!==null){var o=ce.allocAt(e.x,e.y);this.isGridSnapEnabled&&Bh(this.diagram,i,e,o),i.location=o,t.allowSelect&&(t.clearSelection(!0),i.isSelected=!0),ce.free(o)}t.Ya(),this.transactionResult=this.name,t.R("PartCreated",i)}finally{this.stopTransaction(),t.R("ChangedSelection",t.selection)}return i},at.Object.defineProperties(ai.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(e){this.Ri=e}},isDoubleClick:{get:function(){return this.o},set:function(e){this.o=e}},isGridSnapEnabled:{get:function(){return this.j},set:function(e){this.j=e}}}),ai.className="ClickCreatingTool";function ci(){or.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var e=new Ei;e.layerName="Tool",e.selectable=!1;var t=new nr;t.name="SHAPE",t.figure="Rectangle",t.fill=null,t.stroke="magenta",e.add(t),this.j=e}fi(ci,or),ci.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(!e.allowSelect)return!1;var t=e.lastInput;return!(!t.left||e.currentTool!==this&&(!this.isBeyondDragSize()||t.timestamp-e.firstInput.timestamp<this.delay||e.Ol(t.documentPoint,!0)!==null))},ci.prototype.doActivate=function(){var e=this.diagram;this.isActive=!0,e.isMouseCaptured=!0,e.skipsUndoManager=!0,e.add(this.box),this.doMouseMove()},ci.prototype.doDeactivate=function(){var e=this.diagram;e.ug(),e.remove(this.box),e.skipsUndoManager=!1,this.isActive=e.isMouseCaptured=!1},ci.prototype.doMouseMove=function(){var e=this.diagram;if(this.isActive&&this.box!==null){var t=this.computeBoxBounds(),n=this.box.fb("SHAPE");n===null&&(n=this.box.Pb());var i=mi.alloc().h(t.width,t.height);n.desiredSize=i,this.box.mm(t.x,t.y,!1),mi.free(i),(e.allowHorizontalScroll||e.allowVerticalScroll)&&e.gs(e.lastInput.viewPoint)}},ci.prototype.doMouseUp=function(){if(this.isActive){var e=this.diagram;e.remove(this.box);try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),this.selectInRect(this.computeBoxBounds()),e.R("ChangedSelection",e.selection)}finally{e.currentCursor=""}}this.stopTool()},ci.prototype.computeBoxBounds=function(){var e=this.diagram;return new Ht(e.firstInput.documentPoint,e.lastInput.documentPoint)},ci.prototype.selectInRect=function(e){var t=this.diagram,n=t.lastInput;if(e=t.ux(e,this.isPartialInclusion),ir?n.meta:n.control)if(n.shift)for(e=e.iterator;e.next();)t=e.value,t.isSelected&&(t.isSelected=!1);else for(e=e.iterator;e.next();)t=e.value,t.isSelected=!t.isSelected;else if(n.shift)for(e=e.iterator;e.next();)t=e.value,t.isSelected||(t.isSelected=!0);else{for(n=new Xt,t=t.selection.iterator;t.next();){var i=t.value;e.contains(i)||n.add(i)}for(t=n.iterator;t.next();)t.value.isSelected=!1;for(e=e.iterator;e.next();)t=e.value,t.isSelected||(t.isSelected=!0)}},at.Object.defineProperties(ci.prototype,{delay:{get:function(){return this.Ik},set:function(e){this.Ik=e}},isPartialInclusion:{get:function(){return this.o},set:function(e){this.o=e}},box:{get:function(){return this.j},set:function(e){this.j=e}}}),ci.className="DragSelectingTool";function ti(){or.call(this),this.name="Panning",this.Xt=new ce,this.xy=new ce,this.xg=!1;var e=this;this.Kw=function(){var t=e.diagram;t!==null&&t.removeEventListener(je.document,"scroll",e.Kw,!1),e.stopTool()}}fi(ti,or),ti.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return!(!e.allowHorizontalScroll&&!e.allowVerticalScroll||!e.lastInput.left||e.currentTool!==this&&!this.isBeyondDragSize())},ti.prototype.doActivate=function(){var e=this.diagram;this.xg?(e.lastInput.bubbles=!0,e.addEventListener(je.document,"scroll",this.Kw,!1)):(e.currentCursor="move",e.isMouseCaptured=!0,this.Xt.assign(e.position)),this.isActive=!0},ti.prototype.doDeactivate=function(){var e=this.diagram;e.currentCursor="",this.isActive=e.isMouseCaptured=!1},ti.prototype.doCancel=function(){var e=this.diagram;e.position=this.Xt,e.isMouseCaptured=!1,this.stopTool()},ti.prototype.doMouseMove=function(){this.move()},ti.prototype.doMouseUp=function(){this.move(),this.stopTool()},ti.prototype.move=function(){var e=this.diagram;if(this.isActive&&e)if(this.xg)e.lastInput.bubbles=!0;else{var t=e.position,n=e.firstInput.documentPoint,i=e.lastInput.documentPoint,r=t.x+n.x-i.x;n=t.y+n.y-i.y,e.allowHorizontalScroll||(r=t.x),e.allowVerticalScroll||(n=t.y),e.position=this.xy.h(r,n)}},at.Object.defineProperties(ti.prototype,{bubbles:{get:function(){return this.xg},set:function(e){this.xg=e}},originalPosition:{get:function(){return this.Xt}}}),ti.className="PanningTool",Ai("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(e){this.gb("ClickCreating",e,this.mouseUpTools)}),Ai("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(e){this.gb("ClickSelecting",e,this.mouseUpTools)}),Ai("panningTool",function(){return this.findTool("Panning")},function(e){this.gb("Panning",e,this.mouseMoveTools)}),Ai("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(e){this.gb("DragSelecting",e,this.mouseMoveTools)}),Ai("actionTool",function(){return this.findTool("Action")},function(e){this.gb("Action",e,this.mouseDownTools)});function Xn(){this.F=this.u=this.j=this.o=null}at.Object.defineProperties(Xn.prototype,{mainElement:{get:function(){return this.u},set:function(e){this.u=e}},show:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},hide:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}},valueFunction:{get:function(){return this.F},set:function(e){this.F=e}}}),Xn.className="HTMLInfo";function yi(e,t,n){this.text=e,this.hx=t,this.visible=n}yi.className="ContextMenuButtonInfo";function gi(){or.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new ce,this.jt=null,this.Et=!1;var e=this;this.tu=function(){e.stopTool()}}fi(gi,or);function ji(e){var t=new Xn;t.show=function(r,o,s){s.showDefaultContextMenu()},t.hide=function(r,o){o.hideDefaultContextMenu()},_t=t,e.tu=function(){e.stopTool()},t=Kn("div");var n=Kn("div");t.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",n.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var i=Kn("style");je.document.getElementsByTagName("head")[0].appendChild(i),i.sheet.insertRule(".goCXul { list-style: none; }",0),i.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),i.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),i=e.diagram,i!==null&&(i.addEventListener(t,"contextmenu",h,!1),i.addEventListener(t,"selectstart",h,!1),i.addEventListener(n,"contextmenu",h,!1)),t.className="goCXforeground",n.className="goCXbackground",je.document.body&&(je.document.body.appendChild(t),je.document.body.appendChild(n)),ri=t,li=n,Mn=!0}function h(e){return e.preventDefault(),!1}gi.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;return this.isBeyondDragSize()||!e.lastInput.right||1<e.lastInput.clickCount?!1:!!(e.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},gi.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},gi.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},gi.prototype.findObjectWithContextMenu=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.lastInput,i=null;if(e instanceof Z||(e instanceof nt?i=e:i=t.ic(n.documentPoint,null,function(r){return!r.layer.isTemporary})),i!==null){for(e=i;e!==null;){if(e.contextMenu!==null)return e;e=e.panel}if(t.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return i.part}else if(t.contextMenu!==null)return t;return null},gi.prototype.doActivate=function(){},gi.prototype.doMouseDown=function(){if(or.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof Fr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doMouseDown(),e.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&m(this)},gi.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof Fr){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.canStart()&&(e.doActivate(),e.doCancel(),e.doDeactivate())}m(this)};function m(e){var t=e.diagram;if(e.isActive){var n=e.currentContextMenu;if(n!==null){var i=null;n instanceof Xn||(i=t.ic(t.lastInput.documentPoint,null,null),i!==null&&i.rg(n)&&e.standardMouseClick(null,null)),e.maybeStopTool(i)}}else e.canStart()&&(W(e,!0),e.isActive||e.stopTool())}gi.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function W(e,t,n){if(n===void 0&&(n=null),!e.Et&&(e.Et=!0,t&&e.standardMouseSelect(),t=e.standardMouseClick(),e.Et=!1,!t)){if(e.isActive=!0,t=_t,n===null&&(n=e.findObjectWithContextMenu()),n!==null){var i=n.contextMenu;i!==null?(e.currentObject=n instanceof nt?n:null,e.showContextMenu(i,e.currentObject)):t!==null&&e.showContextMenu(t,e.currentObject)}else t!==null&&e.showContextMenu(t,null);e.currentContextMenu instanceof Fr&&!e.currentContextMenu.visible&&e.stopTool()}}gi.prototype.doMouseMove=function(){var e=this.diagram.toolManager.findTool("Action");e!==null&&e.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},gi.prototype.showContextMenu=function(e,t){var n=this.diagram;if(e!==this.currentContextMenu&&this.hideContextMenu(),e instanceof Fr){e.layerName="Tool",e.selectable=!1,e.scale=1/n.scale,e.category=this.name,e.placeholder!==null&&(e.placeholder.scale=n.scale);var i=e.diagram;i!==null&&i!==n&&i.remove(e),n.add(e),t!==null?e.adornedObject=t:e.data=n.model,e.Va(),this.positionContextMenu(e,t)}else e instanceof Xn&&e.show(t,n,this);this.currentContextMenu=e},gi.prototype.positionContextMenu=function(e){if(e.placeholder===null){var t=this.diagram,n=t.lastInput.documentPoint.copy(),i=e.measuredBounds,r=t.viewportBounds;t.lastInput.isTouchEvent&&(n.x-=i.width),n.x+i.width>r.right&&(n.x-=i.width+5/t.scale),n.x<r.x&&(n.x=r.x),n.y+i.height>r.bottom&&(n.y-=i.height+5/t.scale),n.y<r.y&&(n.y=r.y),e.position=n}},gi.prototype.hideContextMenu=function(){var e=this.diagram,t=this.currentContextMenu;t!==null&&(t instanceof Fr?(e.remove(t),this.ht!==null&&this.ht.Jf(t.category),t.data=null,t.adornedObject=null):t instanceof Xn&&(t.hide!==null?t.hide(e,this):t.mainElement!==null&&(t.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Ve(e){var t=new Xt;return t.add(new yi("Copy",function(n){n.commandHandler.copySelection()},function(n){return n.commandHandler.canCopySelection()})),t.add(new yi("Cut",function(n){n.commandHandler.cutSelection()},function(n){return n.commandHandler.canCutSelection()})),t.add(new yi("Delete",function(n){n.commandHandler.deleteSelection()},function(n){return n.commandHandler.canDeleteSelection()})),t.add(new yi("Paste",function(n){n.commandHandler.pasteSelection(e.mouseDownPoint)},function(n){return n.commandHandler.canPasteSelection(e.mouseDownPoint)})),t.add(new yi("Select All",function(n){n.commandHandler.selectAll()},function(n){return n.commandHandler.canSelectAll()})),t.add(new yi("Undo",function(n){n.commandHandler.undo()},function(n){return n.commandHandler.canUndo()})),t.add(new yi("Redo",function(n){n.commandHandler.redo()},function(n){return n.commandHandler.canRedo()})),t.add(new yi("Scroll To Part",function(n){n.commandHandler.scrollToPart()},function(n){return n.commandHandler.canScrollToPart()})),t.add(new yi("Zoom To Fit",function(n){n.commandHandler.zoomToFit()},function(n){return n.commandHandler.canZoomToFit()})),t.add(new yi("Reset Zoom",function(n){n.commandHandler.resetZoom()},function(n){return n.commandHandler.canResetZoom()})),t.add(new yi("Group Selection",function(n){n.commandHandler.groupSelection()},function(n){return n.commandHandler.canGroupSelection()})),t.add(new yi("Ungroup Selection",function(n){n.commandHandler.ungroupSelection()},function(n){return n.commandHandler.canUngroupSelection()})),t.add(new yi("Edit Text",function(n){n.commandHandler.editTextBlock()},function(n){return n.commandHandler.canEditTextBlock()})),t}gi.prototype.showDefaultContextMenu=function(){var e=this.diagram;this.jt===null&&(this.jt=Ve(this)),ri.innerHTML="",li.addEventListener("pointerdown",this.tu,!1);var t=this,n=Kn("ul");n.className="goCXul",ri.appendChild(n),n.innerHTML="";for(var i=this.jt.iterator;i.next();){var r=i.value,o=r.visible;if(typeof r.hx=="function"&&(typeof o!="function"||o(e))){o=Kn("li"),o.className="goCXli";var s=Kn("a");s.className="goCXa",s.href="#",s.ky=r.hx,s.addEventListener("pointerdown",function(l){return this.ky(e),t.stopTool(),l.preventDefault(),!1},!1),s.textContent=r.text,o.appendChild(s),n.appendChild(o)}}ri.style.display="block",li.style.display="block"},gi.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===_t){ri.style.display="none",li.style.display="none";var e=this.diagram;e!==null&&e.removeEventListener(li,"pointerdown",this.tu,!1),this.currentContextMenu=null}},at.Object.defineProperties(gi.prototype,{currentContextMenu:{get:function(){return this.j},set:function(e){this.j=e,this.ht=e instanceof Fr?e.adornedPart:null}},defaultTouchContextMenu:{get:function(){return Mn===!1&&_t===null&&ds&&ji(this),_t},set:function(e){e===null&&(Mn=!0),_t=e}},currentObject:{get:function(){return this.o},set:function(e){this.o=e}},mouseDownPoint:{get:function(){return this.yw}}});var _t=null,Mn=!1,li=null,ri=null;gi.className="ContextMenuTool",Ai("contextMenuTool",function(){return this.findTool("ContextMenu")},function(e){this.gb("ContextMenu",e,this.mouseUpTools)});function Wn(){or.call(this),this.name="TextEditing",this.Zh=new vo,this.ia=null,this.V=rr,this.vj=null,this.qa=Ut,this.u=1,this.F=!0,this.o=null,this.j=new Xn,this.kt=null,Bi(this,this.j)}fi(Wn,or);function Bi(e,t){if(ds){var n=Kn("textarea");e.kt=n,n.addEventListener("input",function(){if(e.textBlock!==null){var i=e.Lx(this.value);this.style.width=20+i.measuredBounds.width*this.wA+"px",this.rows=i.lineCount}},!1),n.addEventListener("keydown",function(i){if(!i.isComposing&&e.textBlock!==null){var r=i.key;r==="Enter"?(e.textBlock.isMultiline===!1&&i.preventDefault(),e.acceptText(fr)):r==="Tab"?(e.acceptText(yr),i.preventDefault()):r==="Escape"&&(e.doCancel(),e.diagram!==null&&e.diagram.doFocus())}},!1),n.addEventListener("focus",function(){if(e.currentTextEditor!==null&&e.state!==Ut){var i=e.kt;e.qa===Cr&&(e.qa=eo),typeof i.select=="function"&&e.selectsTextOnActivate&&(i.select(),i.setSelectionRange(0,9999))}},!1),n.addEventListener("blur",function(){if(e.currentTextEditor!==null&&e.state!==Ut){var i=e.kt;typeof i.focus=="function"&&i.focus(),typeof i.select=="function"&&e.selectsTextOnActivate&&(i.select(),i.setSelectionRange(0,9999))}},!1),t.valueFunction=function(){return n.value},t.mainElement=n,t.show=function(i,r,o){if(i instanceof vo&&o instanceof Wn)if(o.state===Vs)n.style.border="3px solid red",n.focus();else{var s=i.ga(vr),l=r.position,u=r.scale,f=i.Df()*u;f<o.minimumEditorScale&&(f=o.minimumEditorScale);var p=i.naturalBounds.width*f+6,x=i.naturalBounds.height*f+2,N=(s.x-l.x)*u;s=(s.y-l.y)*u,l=i.verticalAlignment,u=(i.lineHeight+i.spacingAbove+i.spacingBelow)*i.lineCount*f,x=l.y*x-l.y*u+l.offsetY-(.5*x-.5*u)-u/2,n.value=i.text,r.div.style.font=i.font,n.style.position="absolute",n.style.zIndex="100",n.style.font="inherit",n.style.fontSize=100*f+"%",n.style.lineHeight="normal",n.style.width=p+"px",n.style.left=(N-p/2|0)-1+"px",n.style.top=(s+x|0)-1+"px",n.style.textAlign=i.textAlign,n.style.margin="0",n.style.padding="1px",n.style.border="0",n.style.outline="none",n.style.whiteSpace="pre-wrap",n.style.overflow="hidden",n.rows=i.lineCount,n.wA=f,n.className="goTXarea",r.div.appendChild(n),n.focus(),o.selectsTextOnActivate&&(n.select(),n.setSelectionRange(0,9999))}},t.hide=function(i){i.div.removeChild(n)}}}Wn.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e===null||e.isReadOnly||Ks&&Ks!==this&&(Ks.acceptText(Co),Ks&&Ks!==this)||!e.lastInput.left||this.isBeyondDragSize())return!1;var t=e.ic(e.lastInput.documentPoint);return t!==null&&t instanceof vo&&t.editable&&t.part.canEdit()?(t=t.part,!(t===null||this.starting===rr&&!t.isSelected||this.starting===qr&&2>e.lastInput.clickCount)):!1},Wn.prototype.doStart=function(){Ks=this,this.textBlock!==null&&this.doActivate()},Wn.prototype.doActivate=function(){if(!this.isActive){var e=this.diagram;if(e!==null){var t=this.textBlock;if(t===null&&(t=e.ic(e.lastInput.documentPoint)),t!==null&&t instanceof vo&&(this.textBlock=t,t.part!==null)){e.animationManager.Cc(),this.isActive=!0,this.qa=Cr;var n=this.defaultTextEditor;t.textEditor!==null&&(n=t.textEditor),this.Zh=this.textBlock.copy();var i=new Ht(this.textBlock.ga(Yo),this.textBlock.ga(Oo));e.tv(i),n.show(t,e,this),this.currentTextEditor=n}}}},Wn.prototype.doCancel=function(){this.stopTool()},Wn.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Wn.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Co)},Wn.prototype.acceptText=function(e){switch(e){case Co:this.qa===Lo?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===Cr||this.qa===Vs||this.qa===eo)&&(this.qa=mo,cr(this));break;case Ur:case fr:case yr:(fr!==e||this.textBlock.isMultiline!==!0)&&(this.qa===Cr||this.qa===Vs||this.qa===eo)&&(this.qa=mo,cr(this))}};function cr(e){var t=e.textBlock,n=e.diagram,i=e.currentTextEditor;if(t!==null&&i!==null){var r=t.text,o="";i.valueFunction!==null&&(o=i.valueFunction()),e.isValidText(t,r,o)?(e.Ea(e.name),e.qa=Lo,e.transactionResult=e.name,t.text=o,e.doSuccess(r,o),n!==null&&n.R("TextEdited",t,r),e.stopTransaction(),e.stopTool(),n!==null&&n.doFocus()):(e.qa=Vs,e.doError(r,o))}}Wn.prototype.doError=function(e,t){var n=this.textBlock;n.errorFunction!==null&&n.errorFunction(this,e,t),(e=this.currentTextEditor)&&e.show(n,this.diagram,this)},Wn.prototype.doSuccess=function(e,t){var n=this.textBlock;n.textEdited!==null&&n.textEdited(n,e,t)},Wn.prototype.doDeactivate=function(){var e=this.diagram;e!==null&&(this.qa=Ut,this.currentTextEditor!==null&&this.currentTextEditor.hide(e,this),this.textBlock=null,this.isActive=!1)},Wn.prototype.doStop=function(){Ks=null},Wn.prototype.isValidText=function(e,t,n){var i=this.textValidation;return i!==null&&!i(e,t,n)?!1:(i=e.textValidation,!!(i===null||i(e,t,n)))},Wn.prototype.Lx=function(e){var t=this.Zh;return t.text=e,t.measure(this.textBlock.Ih,1/0),t},at.Object.defineProperties(Wn.prototype,{textBlock:{get:function(){return this.ia},set:function(e){this.ia=e}},currentTextEditor:{get:function(){return this.o},set:function(e){this.o=e}},defaultTextEditor:{get:function(){return this.j},set:function(e){this.j=e}},starting:{get:function(){return this.V},set:function(e){this.V=e}},textValidation:{get:function(){return this.vj},set:function(e){this.vj=e}},minimumEditorScale:{get:function(){return this.u},set:function(e){this.u=e}},selectsTextOnActivate:{get:function(){return this.F},set:function(e){this.F=e}},state:{get:function(){return this.qa},set:function(e){this.qa!==e&&(this.qa=e)}}}),Wn.prototype.measureTemporaryTextBlock=Wn.prototype.Lx;var Ur=new qt(Wn,"LostFocus",0),Co=new qt(Wn,"MouseDown",1),yr=new qt(Wn,"Tab",2),fr=new qt(Wn,"Enter",3),Wt=new qt(Wn,"SingleClick",0),rr=new qt(Wn,"SingleClickSelected",1),qr=new qt(Wn,"DoubleClick",2),Ut=new qt(Wn,"StateNone",0),Cr=new qt(Wn,"StateActive",1),eo=new qt(Wn,"StateEditing",2),mo=new qt(Wn,"StateValidating",3),Vs=new qt(Wn,"StateInvalid",4),Lo=new qt(Wn,"StateValidated",5),Ks=null;Wn.className="TextEditingTool",Wn.LostFocus=Ur,Wn.MouseDown=Co,Wn.Tab=yr,Wn.Enter=fr,Wn.SingleClick=Wt,Wn.SingleClickSelected=rr,Wn.DoubleClick=qr,Wn.StateNone=Ut,Wn.StateActive=Cr,Wn.StateEditing=eo,Wn.StateValidating=mo,Wn.StateInvalid=Vs,Wn.StateValidated=Lo,Ai("textEditingTool",function(){return this.findTool("TextEditing")},function(e){this.gb("TextEditing",e,this.mouseUpTools)});function co(e){_a||(Fa(),_a=!0),this.H=lt,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=xi,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new Yt,this.ce=new wr,this.ce.Yd=this,this.Ei=new Yt,this.pu=new Yt,this.Sr=new Yt,this.pr=new Yt,e&&Object.assign(this,e)}co.prototype.Xe=function(e){this.H=e},co.prototype.canStart=function(){return!0};function Rs(e,t){e.Jd&&e.canStart(t)&&(e.Zd.add(t),e.defaultAnimation.isAnimating&&e.Cc(),Ps(e.H),e.zb=!0)}function ms(e){if(e.Jd&&e.zb){var t=e.ce,n=e.H,i=e.Zd.contains("Model");i&&(e.Ok=!0,e.Pk===xi?(t.isViewportUnconstrained=!0,t.vc.clear(),t.add(n,"position",n.position.copy().offset(0,-200),n.position),t.add(n,"opacity",0,1)):e.Pk===$r&&t.vc.clear(),e.Qw=!!(e.Pk===Qi&&n.du.D(n.pa)),n.R("InitialAnimationStarting",e)),i&&!e.Gh||t.vc.count===0?(e.Zd.clear(),e.zb=!1,t.vc.clear(),go(t,n),e.Ok=!1,n.N()):(e.Zd.clear(),n.kg=!1,i=t.vc.get(n),n.autoScale!==il&&i!==null&&(delete i.start.scale,delete i.end.scale),je.requestAnimationFrame(function(){e.zb===!1||t.bc||(n.Gf("temporaryPixelRatio")&&Pi(n),kr(n),e.zb=!1,t.start(),t.bc&&(Jo(e),n.Ya(),Ml(t,0),ua(n,!0),Ss(e),n.R("AnimationStarting",e)))}))}}function $s(e){return e.Zd.contains("Trigger")&&e.Zd.count===1}function fu(e,t,n,i){e.isTicking||$s(e)||t instanceof kn&&(t.fromNode!==null||t.toNode!==null)||e.ce.add(t,"position",n,i,!1)}_=co.prototype,_.fv=function(e){return this.ce.fv(e)},_.Xu=function(e){return this.ce.Xu(e)};function ko(e,t){function n(){if(0<r.Sr.count&&(i.addAll(r.Sr),r.Sr.clear(),r.bc=!0),r.bc!==!1&&i.count!==0){r.pu.addAll(i);for(var o=r.pu.iterator;o.next();){var s=o.value;if(s.bc!==!1){e:if(0<s.yl.count)var l=!0;else{for(l=s.vc.iterator;l.next();){var u=l.key;if(u instanceof nt&&u.diagram!==null||u instanceof Z){l=!0;break e}}l=!1}l?Ys(s,!1):s.Xk=!0}}r.pu.clear(),r.bc!==!1&&(Jo(r),ua(r.H),Ss(r)),je.requestAnimationFrame(n)}}var i=e.Ei,r=e;e.bc?e.Sr.add(t):(e.bc=!0,i.add(t),je.requestAnimationFrame(function(){n()}))}function Uo(e){for(e=e.Ei.iterator;e.next();)e.value.Xk=!1}function Jo(e){if(!e.vq){var t=e.H;e.Ow=t.skipsUndoManager,e.cw=t.skipsModelSourceBindings,t.skipsUndoManager=!0,t.skipsModelSourceBindings=!0,e.vq=!0}}function Ss(e){var t=e.H;t.skipsUndoManager=e.Ow,t.skipsModelSourceBindings=e.cw,e.vq=!1}_.Cc=function(e){var t=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<t.vc.count&&this.H.$b()),this.bc){if(t.Ml(!0),t.vc.clear(),go(t,null),e===!0)for(e=this.Ei.Fa(),t=0;t<e.length;t++)e[t].Ml(!0)}else t.vc.clear(),go(t,this.H)},_.Ml=function(e){e===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(e),this.Ei.count===0&&(this.bc=!1,this.H.$b()),e===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},_.Cj=function(e,t){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(e,t),cs(this,e))},_.Aj=function(e,t){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(e,t),Ho(this.ce,t,"position",t.position,t.position),cs(this,e))};function js(e,t,n){!e.zb||t.D(n)||$s(e)||(e.H.pi||(t=n.copy()),Ho(e.ce,e.H,"position",t,n))}function ro(e,t,n){t.fd&&(t.Tg=n,e.pr.add(t))}function cs(e,t){for(t=t.findLinksConnected();t.next();){var n=t.value;n.fd&&(n.Tg=n.points.copy(),e.pr.add(n))}}function Js(e,t,n,i,r){e===null&&(e=[0,0,0,0]),t===null&&(t=[0,0,0,0]);var o=e[0],s=e[1],l=e[2];e=e[3];var u=t[0],f=t[1],p=t[2];return t=t[3],l===0||l===100?(o=u,s=f):(p===0||p===100)&&(u=o,f=s),180<Math.abs(u-o)&&(u>o?o+=360:u+=360),o=r(n,o,u-o,i)%360,s=r(n,s,f-s,i),l=r(n,l,p-l,i),n=r(n,e,t-e,i),"hsla("+o+", "+s+"%, "+l+"%, "+n+")"}function Fa(){function e(n,i,r,o,s,l){n.position=new ce(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}var t=new ii;t.add("position:diagram",e),t.add("position",e),t.add("position:part",function(n,i,r,o,s,l){s<l?n.mm(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l),!1):n.position=new ce(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}),t.add("location",function(n,i,r,o,s,l){s<l?n.mm(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l),!0):n.location=new ce(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}),t.add("position:placeholder",function(n,i,r,o,s,l){s<l?n.mm(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l),!1):n.position=new ce(o(s,i.x,r.x-i.x,l),o(s,i.y,r.y-i.y,l))}),t.add("position:nodeCollapse",function(n,i,r,o,s,l){var u=n.actualBounds,f=r.actualBounds;r=f.x+f.width/2-u.width/2,u=f.y+f.height/2-u.height/2,s<l?n.mm(o(s,i.x,r-i.x,l),o(s,i.y,u-i.y,l),!1):n.position=new ce(o(s,i.x,r-i.x,l),o(s,i.y,u-i.y,l))}),t.add("desiredSize",function(n,i,r,o,s,l){n.desiredSize=new Ht(o(s,i.width,r.width-i.width,l),o(s,i.height,r.height-i.height,l))}),t.add("width",function(n,i,r,o,s,l){n.width=o(s,i,r-i,l)}),t.add("height",function(n,i,r,o,s,l){n.height=o(s,i,r-i,l)}),t.add("fill",function(n,i,r,o,s,l){n.fill=Js(i,r,s,l,o)}),t.add("stroke",function(n,i,r,o,s,l){n.stroke=Js(i,r,s,l,o)}),t.add("strokeWidth",function(n,i,r,o,s,l){n.strokeWidth=o(s,i,r-i,l)}),t.add("strokeDashOffset",function(n,i,r,o,s,l){n.strokeDashOffset=o(s,i,r-i,l)}),t.add("background",function(n,i,r,o,s,l){n.background=Js(i,r,s,l,o)}),t.add("areaBackground",function(n,i,r,o,s,l){n.areaBackground=Js(i,r,s,l,o)}),t.add("opacity",function(n,i,r,o,s,l){n.opacity=o(s,i,r-i,l)}),t.add("scale",function(n,i,r,o,s,l){n.scale=o(s,i,r-i,l)}),t.add("angle",function(n,i,r,o,s,l){n.angle=o(s,i,r-i,l)}),Ba=t}at.Object.defineProperties(co.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(e){(this.Jd=e)&&this.Ei.each(function(t){t.isAnimating||t.runCount!==1/0||t.start()})}},duration:{get:function(){return this.Dg},set:function(e){1>e&&rn(e,">= 1",co,"duration"),this.Dg=e}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(e){this.Pk=e}}}),co.prototype.stopAnimation=co.prototype.Cc;var Ba=null,_a=!1,xi=new qt(co,"Default",1),Qi=new qt(co,"AnimateLocations",2),$r=new qt(co,"None",3);co.className="AnimationManager",co.defineAnimationEffect=function(e,t){_a||(Fa(),_a=!0),Ba.add(e,t)},co.Default=xi,co.AnimateLocations=Qi,co.None=$r;function wr(e){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=za,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=br,this.vc=new ii,this.Tt=new ii,this.yl=new Yt,this.Ut=new Yt,this.dw=ph,e&&Object.assign(this,e)}wr.prototype.suspend=function(){this.Xk=!0},wr.prototype.advanceTo=function(e,t){t&&(this.Xk=!1),this.ho&&e>=this.Gd&&(this.Wk=!0,e-=this.Gd),this.gw=e,Ys(this,!0),Jo(this.Yd),ua(this.H),Ss(this.Yd),this.H.redraw()};function go(e,t){if(e.Tt.clear(),e.Wk=!1,e.au=0,e.Gd=NaN,0<e.yl.count&&e.yl.clear(),0<e.Ut.count&&e.Ut.clear(),t!==null)for(e=t.links;e.next();)e.value.Tg=null}_=wr.prototype,_.start=function(){if(this.vc.count===0||this.bc)return this;for(var e=this.H,t=this.vc.iterator;t.next();){var n=t.key;e===null&&(n instanceof Z?e=n:n instanceof nt&&(e=n.diagram))}if(e!==null)this.H=e,this.Yd=e.animationManager;else return this;return t=this.Yd,t.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?t.duration:this.Dg,this.Lp=this.ot,t.Ok&&t.Pk===xi&&this===t.defaultAnimation&&(this.Lp=qs,this.Gd=isNaN(this.Dg)?t.duration===600?900:t.duration:this.Dg),this.dw=e.scrollMode,this.isViewportUnconstrained&&(e.sj=Fd),Jo(t),this.yl.each(function(i){i.data=null,e.add(i)}),Ss(t),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,ko(t,this),this)},_.Iy=function(e,t){return e.Zc()?(this.yl.add(e),this.H=t,this):this},_.add=function(e,t,n,i,r){if(t==="position"&&n.Xa(i))return this;if(this.H===null&&(e instanceof Z?this.H=e:e instanceof nt&&e.diagram!==null&&(this.H=e.diagram)),e instanceof Ei){if(!e.isAnimated)return this;t==="position"&&(t="position:part")}return Ho(this,e,t,n,i,r),this};function Ho(e,t,n,i,r,o){var s=e.vc;if(t instanceof Z&&n==="position"&&(n="position:diagram"),(n==="fill"||n==="stroke"||n==="background"||n==="areaBackground")&&(qc(i),mg(),i=[yu.j,yu.u,yu.o,yu.F],qc(r),mg(),r=[yu.j,yu.u,yu.o,yu.F]),s.contains(t)){var l=s.I(t),u=l.start,f=l.end;u[n]===void 0&&(u[n]=Ro(i)),f[n]=Ro(r)}else u={},f={},u[n]=Ro(i),f[n]=Ro(r),l=u.position,t instanceof nt&&l instanceof ce&&!l.w()&&t.diagram.animationManager.Zd.contains("Expand SubGraph")&&l.assign(f.position),l=new Ka(u,f,o),s.add(t,l);s=u[n],s instanceof ce&&!s.w()&&s.assign(e.o),o&&n.indexOf("position:")===0&&t instanceof Ei?l.Ku.location=Ro(t.location):o&&(l.Ku[n]=Ro(i))}function Ro(e){return e instanceof ce||e instanceof mi?e.copy():e}_.fv=function(e){return this.bc?(e=this.vc.I(e),e!==null&&e.nv):!1},_.Xu=function(e){return this.bc?(e=this.vc.I(e),e!==null&&(e.start.position||e.start.location)):!1};function Ys(e,t){if(!e.Xk||t){var n=e.Yd;if(e.bc!==!1){var i=+new Date,r=i>e.cn?e.Gd:i-e.Qd;t&&(r=e.gw,r<e.Gd?(e.Qd=+new Date-r,e.cn=e.Qd+e.Gd):r=e.Gd),Jo(n),Ml(e,r),ua(e.H,!0),Ss(n),i>e.cn&&(e.ho&&!e.Wk?(e.Qd=+new Date,e.cn=e.Qd+e.Gd,e.Wk=!0):e.Ml(!1))}}}function Ml(e,t){for(var n=e.Gd,i=e.vc.iterator,r=e.Wk;i.next();){var o=i.key;if(!(o instanceof nt&&o.diagram===null)){var s=i.value,l=r?s.end:s.start;s=r?s.start:s.end;var u=Ba,f;for(f in s)f==="position"&&(s["position:placeholder"]||s["position:nodeCollapse"])||u.get(f)===null||u.get(f)(o,l[f],s[f],e.Lp,t,n,e)}}}_.stop=function(){return this.bc?(this.Ml(!0),this):this},_.Ml=function(e){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var t=this.H,n=this.Yd;this.Xk=this.bc=n.Ok=!1,Jo(n);for(var i=this.vc,r=this.yl.iterator;r.next();)t.remove(r.value);for(r=this.Ut.iterator;r.next();)r.value.v();r=this.ho,i=i.iterator;for(var o=Ba;i.next();){var s=i.key,l=i.value,u=r?l.end:l.start,f=r?l.start:l.end,p=l.Ku,x;for(x in f)if(o.get(x)!==null){var N=x;!l.Hu||N!=="position:nodeCollapse"&&N!=="position:placeholder"||(N="position"),o.get(N)(s,u[x],p[x]!==void 0?p[x]:l.Hu?u[x]:f[x],this.Lp,this.Gd,this.Gd,this)}l.Hu&&p.location!==void 0&&s instanceof Ei&&(s.location=p.location),l.nv&&s instanceof Ei&&s.Zb(!1)}if(t.As.clear(),hr(t,!1),t.Ya(),t.N(),ua(t,!0),n.defaultAnimation===this){for(x=n.pr.iterator;x.next();)r=x.value,r.Tg!==null&&(r.points=r.Tg,r.Tg=null);n.pr.clear()}ua(t,!0),this.isViewportUnconstrained&&(t.scrollMode=this.dw),Ss(n),this.au++,!e&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),go(this,null),n.Ml(this),t.$b())}},_.Cj=function(e,t){var n=t.actualBounds,i=null;if(t instanceof Xi&&(i=t.placeholder),i!==null?(n=i.ga(Yo),i=i.padding,n.x+=i.left,n.y+=i.top,this.add(e,"position",n,e.position,!1)):this.add(e,"position",new ce(n.x+n.width/2,n.y+n.height/2),e.position,!1),this.add(e,"scale",.01,e.scale,!1),e instanceof Xi)for(e=e.memberParts;e.next();)i=e.value,i instanceof Vn&&this.Cj(i,t)},_.Aj=function(e,t){if(e.isVisible()){var n=null;if(t instanceof Xi&&(n=t.placeholder),n!==null){var i=n.ga(Yo);n=n.padding,i.x+=n.left,i.y+=n.top,this.add(e,"position:placeholder",e.position,i,!0)}else this.add(e,"position:nodeCollapse",e.position,t,!0);if(this.add(e,"scale",e.scale,.01,!0),i=this.vc,i.contains(e)&&(i.I(e).nv=!0),e instanceof Xi)for(e=e.memberParts;e.next();)i=e.value,i instanceof Vn&&this.Aj(i,t)}},_.Ez=function(e){var t=this.Tt.get(e);return t===null&&(t={},this.Tt.add(e,t)),t},at.Object.defineProperties(wr.prototype,{duration:{get:function(){return this.Dg},set:function(e){1>e&&rn(e,">= 1",wr,"duration"),this.Dg=e}},reversible:{get:function(){return this.ho},set:function(e){this.ho=e}},runCount:{get:function(){return this.cu},set:function(e){0<e?this.cu=e:ut("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(e){this.dn!==e&&(this.dn=e)}},easing:{get:function(){return this.ot},set:function(e){this.ot=e}},isViewportUnconstrained:{get:function(){return this.j},set:function(e){this.j=e}},isAnimating:{get:function(){return this.bc}}}),wr.prototype.getTemporaryState=wr.prototype.Ez,wr.prototype.stop=wr.prototype.stop,wr.prototype.add=wr.prototype.add,wr.prototype.addTemporaryPart=wr.prototype.Iy;function za(e,t,n,i){return e/=i/2,1>e?n/2*e*e+t:-n/2*(--e*(e-2)-1)+t}function qs(e,t,n,i){return e===i?t+n:n*(-Math.pow(2,-10*e/i)+1)+t}wr.className="Animation",wr.EaseLinear=function(e,t,n,i){return n*e/i+t},wr.EaseInOutQuad=za,wr.EaseInQuad=function(e,t,n,i){return n*(e/=i)*e+t},wr.EaseOutQuad=function(e,t,n,i){return-n*(e/=i)*(e-2)+t},wr.EaseInExpo=function(e,t,n,i){return e===0?t:n*Math.pow(2,10*(e/i-1))+t},wr.EaseOutExpo=qs;function Ka(e,t,n){this.start=e,this.end=t,this.Ku={},this.Hu=n,this.nv=!1}Ka.className="AnimationState";function Zs(e,t,n){this.xd=null,this.rf=e,this.so=n||Es,this.uk=null,t!==void 0&&(this.uk=t,n===void 0&&(this.so=la))}Zs.prototype.copy=function(){var e=new Zs(this.rf);e.so=this.so;var t=this.uk;if(t!==null){var n={};t.duration!==void 0&&(n.duration=t.duration),t.finished!==void 0&&(n.finished=t.finished),t.easing!==void 0&&(n.easing=t.easing),e.uk=n}return e};function $o(e,t){e=e.uk,e!==null&&(e.duration&&(t.duration=e.duration),e.finished&&(t.finished=e.finished),e.easing&&(t.easing=e.easing))}at.Object.defineProperties(Zs.prototype,{propertyName:{get:function(){return this.rf},set:function(e){this.rf=e}},animationSettings:{get:function(){return this.uk},set:function(e){this.uk=e}},startCondition:{get:function(){return this.so},set:function(e){this.so=e}}});var Es=new qt(Zs,"Default",1),la=new qt(Zs,"Immediate",2),A=new qt(Zs,"Bundled",3);Zs.className="AnimationTrigger",Zs.Default=Es,Zs.Immediate=la,Zs.Bundled=A;function g(e){Wi(this),this.H=null,this.Pa=new Xt,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=[],e&&Object.assign(this,e)}_=g.prototype,_.clear=function(){for(var e=this.Pa,t=0;t<e.length;t++){var n=e.s[t];n.Ig=null,Ja(n)}e.clear(),this.Zq.length=0},_.Xe=function(e){this.H=e},_.toString=function(e){e===void 0&&(e=0);var t='Layer "'+this.name+'"';if(0>=e)return t;for(var n=0,i=0,r=0,o=0,s=0,l=this.Pa.iterator;l.next();){var u=l.value;u instanceof Xi?r++:u instanceof Vn?i++:u instanceof kn?o++:u instanceof Fr?s++:n++}if(l="",0<n&&(l+=n+" Parts "),0<i&&(l+=i+" Nodes "),0<r&&(l+=r+" Groups "),0<o&&(l+=o+" Links "),0<s&&(l+=s+" Adornments "),1<e)for(e=this.Pa.iterator;e.next();)n=e.value,l+=`
|
|
|
`+n.toString(),i=n.data,i!==null&&It(i)&&(l+=" #"+It(i)),n instanceof Vn?l+=" "+En(i):n instanceof kn&&(l+=" "+En(n.fromNode)+" "+En(n.toNode));return t+" "+this.Pa.count+": "+l},_.ic=function(e,t,n){if(t===void 0&&(t=null),n===void 0&&(n=null),this.Uh===!1)return null;var i=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(i=!0);for(var r=ce.alloc(),o=this.Pa.s,s=o.length;s--;){var l=o[s];if((i!==!0||Gh(l)!==!1)&&l.isVisible()&&(r.assign(e),zi(r,l.oe),l=l.ic(r,t,n),l!==null&&(t!==null&&(l=t(l)),l!==null&&(n===null||n(l)))))return ce.free(r),l}return ce.free(r),null},_.ji=function(e,t,n,i){if(t===void 0&&(t=null),n===void 0&&(n=null),i instanceof Xt||i instanceof Yt||(i=new Yt),this.Uh===!1)return i;var r=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(r=!0);for(var o=ce.alloc(),s=this.Pa.s,l=s.length;l--;){var u=s[l];if((r!==!0||Gh(u)!==!1)&&u.isVisible()){o.assign(e),zi(o,u.oe);var f=u;u.ji(o,t,n,i)&&(t!==null&&(f=t(f)),f===null||n!==null&&!n(f)||i.add(f))}}return ce.free(o),i},_.Cf=function(e,t,n,i,r){if(t===void 0&&(t=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof Xt||r instanceof Yt||(r=new Yt),this.Uh===!1)return r;var o=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(e)&&(o=!0);for(var s=this.Pa.s,l=s.length;l--;){var u=s[l];if((o!==!0||Gh(u)!==!1)&&u.isVisible()){var f=u;u.Cf(e,t,n,i,r)&&(t!==null&&(f=t(f)),f===null||n!==null&&!n(f)||r.add(f))}}return r},_.Nu=function(e,t,n,i,r,o,s){if(this.Uh===!1)return r;for(var l=this.Pa.s,u=l.length;u--;){var f=l[u];if((s!==!0||Gh(f)!==!1)&&o(f)&&f.isVisible()){var p=f;f.Cf(e,t,n,i,r)&&(t!==null&&(p=t(p)),p===null||n!==null&&!n(p)||r.add(p))}}return r},_.og=function(e,t,n,i,r,o){if(n===void 0&&(n=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof Xt||r instanceof Yt)&&(o=r),r=!0),o instanceof Xt||o instanceof Yt||(o=new Yt),this.Uh===!1)return o;var s=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(e)&&(s=!0);for(var l=ce.alloc(),u=ce.alloc(),f=this.Pa.s,p=f.length;p--;){var x=f[p];if((s!==!0||Gh(x)!==!1)&&x.isVisible()){l.assign(e),zi(l,x.oe),u.h(e.x+t,e.y),zi(u,x.oe);var N=x;x.og(l,u,n,i,r,o)&&(n!==null&&(N=n(N)),N===null||i!==null&&!i(N)||o.add(N))}}return ce.free(l),ce.free(u),o},_.Fd=function(e,t){if(this.visible){var n=this.Pa.s,i=n.length;if(i!==0){e=jt();for(var r=jt(),o=0;o<i;o++){var s=n[o];if(s.vw=o,s instanceof kn){if(s.fd===!1)continue}else if(s instanceof Fr&&s.adornedPart!==null)continue;var l=s.actualBounds;s.isVisible()&&bo(l,t)?(s.Fd(!0),e.push(s)):(s.Fd(!1),s.adornments!==null&&0<s.adornments.count&&r.push(s))}for(t=0;t<e.length;t++)for(n=e[t],Gg(n),n=n.adornments;n.next();)i=n.value,i.measure(1/0,1/0),i.arrange(),i.Fd(!0);for(t=0;t<r.length;t++)Gg(r[t]);gn(e),gn(r)}}};function S(e,t){var n=1;return e.pb!==1&&(n=t.globalAlpha,t.globalAlpha=n*e.pb),n}_.gc=function(e,t,n){if(this.visible&&this.pb!==0&&(n===void 0&&(n=!0),n||!this.isTemporary)){n=this.Pa.s;var i=n.length;if(i!==0){if(e.isTemporary)for(var r=0;r<i;r++)n[r].Gj();r=S(this,e);var o=this.Zq;o.length=0;for(var s=t.scale,l=Ht.alloc(),u=0;u<i;u++)this.Oj(e,n[u],t,o,s,l,!0);if(Ht.free(l),e.isTemporary)for(t=0;t<i;t++)n[t].Gj();e.globalAlpha=r}}};function R(e,t,n,i,r){if(e.visible&&e.pb!==0&&(r||!e.isTemporary)){r=e.Pa.s;var o=r.length;if(o!==0){var s=S(e,t),l=e.Zq;l.length=0;for(var u=n.scale,f=Ht.alloc(),p=0;p<o;p++){var x=r[p];i.contains(x)&&e.Oj(t,x,n,l,u,f,!1)}Ht.free(f),t.globalAlpha=s}}}_.Oj=function(e,t,n,i,r,o,s){if(s&&!Gh(t))e.Hs(t);else{if(i!==null&&t instanceof kn&&(t.isOrthogonal&&i.push(t),t.fd===!1)){e.Hs(t);return}for(s=!1,i=t.containingGroup;i!==null;)s?i.tb!==null&&o.Ex(i.tb):i.tb!==null&&(s=!0,o.assign(i.tb)),i=i.containingGroup;var l=t.actualBounds;if(i=!1,s&&t.isVisible()){if(!o.Yc(l)){e.Hs(t);return}i=!o.Re(l)}i&&(e.save(),e instanceof tu?e.bk=o.copy():(e.beginPath(),e.rect(o.x,o.y,o.width,o.height),e.clip())),l.width*r>n.Oq||l.height*r>n.Oq?t.gc(e,n):(r=t.actualBounds,o=t.naturalBounds,r.width===0||r.height===0||isNaN(r.x)||isNaN(r.y)||!t.isVisible()||(n=t.transform,t.areaBackground!==null&&(gs(t,e,t.areaBackground,!0,!0,o,r),e.fillRect(r.x,r.y,r.width,r.height)),t.areaBackground===null&&t.background===null&&(gs(t,e,"rgba(0,0,0,0.3)",!0,!1,o,r),e.fillRect(r.x,r.y,r.width,r.height)),t.background!==null&&(e.transform(n.m11,n.m12,n.m21,n.m22,n.dx,n.dy),gs(t,e,t.background,!0,!1,o,r),e.fillRect(0,0,o.width/2,o.height/2),n.ws()||(t=1/(n.m11*n.m22-n.m12*n.m21),e.transform(n.m22*t,-n.m12*t,-n.m21*t,n.m11*t,t*(n.m21*n.dy-n.m22*n.dx),t*(n.m12*n.dx-n.m11*n.dy)))))),i&&(e.restore(),e.Vc(!0))}},_.g=function(e,t,n,i,r){var o=this.diagram;o!==null&&o.cb(io,e,this,t,n,i,r)},_.oi=function(e,t,n){var i=this.Pa;if(t.Ig=this,this===null&&Ja(t),e>=i.count)e=i.count;else if(i.M(e)===t)return-1;return i.Gb(e,t),t.Vo(n),i=this.diagram,i!==null&&(n?i.N():i.oi(t)),Y(this,e,t),e},_.pc=function(e,t,n){if(!n&&t.layer!==this&&t.layer!==null)return t.layer.pc(e,t,n);var i=this.Pa;if(0>e||e>=i.length){if(e=i.indexOf(t),0>e)return-1}else if(i.M(e)!==t&&(e=i.indexOf(t),0>e))return-1;return t.Wo(n),i.mb(e),i=this.diagram,i!==null&&(n?i.N():i.pc(t)),t.Ig=null,Ja(t),e};function Y(e,t,n){if(t=se(e,t,n),n instanceof Xi&&n!==null&&isNaN(n.zOrder)){if(n.memberParts.count!==0){for(var i=-1,r=e.Pa.s,o=r.length,s=0;s<o;s++){var l=r[s];if(l===n&&(t=s,0<=i)||0>i&&l.containingGroup===n&&(i=s,0<=t))break}!(0>i)&&i<t&&(r=e.Pa,r.mb(t),r.Gb(i,n))}t=n.containingGroup,t!==null&&Y(e,-1,t)}n.svg!==null&&n.svg.remove()}function se(e,t,n){var i=n.zOrder;if(isNaN(i))return t;e=e.Pa;var r=e.count;if(1>=r)return t;if(0>t&&(t=e.indexOf(n)),0>t)return-1;for(var o=t-1,s=NaN;0<=o&&(s=e.M(o).zOrder,!!isNaN(s));)o--;for(var l=t+1,u=NaN;l<r&&(u=e.M(l).zOrder,!!isNaN(u));)l++;if(!isNaN(s)&&s>i)for(;;){if(o===-1||s<=i){if(o++,o===t)break;return e.mb(t),e.Gb(o,n),o}for(s=NaN;0<=--o&&(s=e.M(o).zOrder,isNaN(s)););}else if(!isNaN(u)&&u<i)for(;;){if(l===r||u>=i){if(l--,l===t)break;return e.mb(t),e.Gb(l,n),l}for(u=NaN;++l<r&&(u=e.M(l).zOrder,isNaN(u)););}return t}at.Object.defineProperties(g.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(e){var t=this.xa;if(t!==e){var n=this.diagram;if(n!==null)for(t===""&&ut("Cannot rename default Layer to: "+e),n=n.layers;n.next();)n.value.name===e&&ut("Layer.name is already present in this diagram: "+e);for(this.xa=e,this.g("name",t,e),e=this.Pa.iterator;e.next();)e.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&rn(e,"0 <= value <= 1",g,"opacity"),this.pb=e,this.g("opacity",t,e),e=this.diagram,e!==null&&e.N())}},isTemporary:{get:function(){return this.o},set:function(e){var t=this.o;t!==e&&((this.o=e)&&(this.isInDocumentBounds=!1),this.g("isTemporary",t,e))}},visible:{get:function(){return this.u},set:function(e){var t=this.u;if(t!==e){for(this.u=e,this.g("visible",t,e),t=this.Pa.iterator;t.next();)t.value.Zb(e);e=this.diagram,e!==null&&e.N()}}},pickable:{get:function(){return this.Uh},set:function(e){var t=this.Uh;t!==e&&(this.Uh=e,this.g("pickable",t,e))}},isInDocumentBounds:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(e){var t=this.Fi;t!==e&&(this.Fi=e,this.g("allowCopy",t,e))}},allowDelete:{get:function(){return this.Gi},set:function(e){var t=this.Gi;t!==e&&(this.Gi=e,this.g("allowDelete",t,e))}},allowTextEdit:{get:function(){return this.Pi},set:function(e){var t=this.Pi;t!==e&&(this.Pi=e,this.g("allowTextEdit",t,e))}},allowGroup:{get:function(){return this.Hi},set:function(e){var t=this.Hi;t!==e&&(this.Hi=e,this.g("allowGroup",t,e))}},allowUngroup:{get:function(){return this.Qi},set:function(e){var t=this.Qi;t!==e&&(this.Qi=e,this.g("allowUngroup",t,e))}},allowLink:{get:function(){return this.Ii},set:function(e){var t=this.Ii;t!==e&&(this.Ii=e,this.g("allowLink",t,e))}},allowRelink:{get:function(){return this.Ki},set:function(e){var t=this.Ki;t!==e&&(this.Ki=e,this.g("allowRelink",t,e))}},allowMove:{get:function(){return this.Ji},set:function(e){var t=this.Ji;t!==e&&(this.Ji=e,this.g("allowMove",t,e))}},allowReshape:{get:function(){return this.Li},set:function(e){var t=this.Li;t!==e&&(this.Li=e,this.g("allowReshape",t,e))}},allowResize:{get:function(){return this.Mi},set:function(e){var t=this.Mi;t!==e&&(this.Mi=e,this.g("allowResize",t,e))}},allowRotate:{get:function(){return this.Ni},set:function(e){var t=this.Ni;t!==e&&(this.Ni=e,this.g("allowRotate",t,e))}},allowSelect:{get:function(){return this.Oi},set:function(e){var t=this.Oi;t!==e&&(this.Oi=e,this.g("allowSelect",t,e))}}}),g.prototype.findObjectsNear=g.prototype.og,g.prototype.findObjectsIn=g.prototype.Cf,g.prototype.findObjectsAt=g.prototype.ji,g.prototype.findObjectAt=g.prototype.ic,g.className="Layer";function Z(e,t){if(y0||(Xa(),y0=!0),Wi(this),lt=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,ds){var n=this,i=function(){n.removeEventListener(je.document,"DOMContentLoaded",i,!1),n.setRTL()};je.document.body!==null?this.setRTL():n.addEventListener(je.document,"DOMContentLoaded",i,!1)}this.ol=null,pf.add("Model",Vr);var r=this;return this.Hb=function(o){var s=r.partManager;if(o.model===s.diagram.model&&s.diagram.aa){s.diagram.aa=!1;try{var l=o.change;o.modelChange===""&&l===io&&s.updateDataBindings(o.object,o.propertyName)}finally{s.diagram.aa=!0}}},this.Oc=function(o){r.partManager.doModelChanged(o)},this.hu=this.ku=null,pn(this),this.model=bv(),this.Wg=!0,Ir(this),this.layout=new Do,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 b0,e!==void 0&&(typeof e=="string"||je.Element&&e instanceof Element?wi(this,e):t=e),this.vb=!1,t&&this.nm(t),this}var rt,lt;function pn(e){e.Yd=new co,e.Yd.Xe(e),e.Db=17,e.Gw=!1,e.tn=!1,e.bu="default",e.Wa=new Xt,e.pj=new ii,e.nl="default",e.Tx(),e.Sx(),e.pb=1,e.pa=new ce(NaN,NaN).freeze(),e.du=new ce(NaN,NaN),e.Ca=1,e.Pp=1,e.zt=new ce(NaN,NaN).freeze(),e.At=NaN,e.Ot=1e-4,e.Mt=100,e.Ab=new er,e.zu=new ce(NaN,NaN).freeze(),e.ut=new Ht(NaN,NaN,NaN,NaN).freeze(),e.rj=new vi(0,0,0,0).freeze(),e.sj=ph,e.nu=!1,e.Zt=null,e.fu=null,e.yh=il,e.zk=Lr,e.Fg=il,e.pq=Lr,e.yt=Yo,e.Bt=Yo,e.Fc=!0,e.pn=!1,e.De=new Yt,e.Eh=new ii,e.Xm=!0,e.vp=250,e.vk=-1,e.xp=new vi(16,16,16,16).freeze(),e.kg=!1,e.Jk=!1,e.fn=!0,e.bq=new Hs,e.bq.diagram=e,e.Qg=new Hs,e.Qg.diagram=e,e.cj=new Hs,e.cj.diagram=e,e.zg=null,e.pf=null,e.qu=!1,cg(e),e.ai=new Yt,e.Ht=!0,e.uu=mh,e.pw=!1,e.wu=Pd,e.it="auto",e.Op="auto",e.zh=null,e.Fh=null,e.Bh=null,e.Qh=null,e.Oh=null,e.Nh=null,e.Qt=null,e.Lh=null,e.xt=!1,e.Mh=null,e.Ph=null,e.$h=null,e.Ch=null,e.Rt=!1,e.Yt={},e.oj=[null,null],e.Wg=!1,e.Iw=!1,e.ou=!1,e.lt=!1,e.rw=!0,e.ld=!1,e.$i=!1,e.Tw=!0,e.Ce=-2,e.Og=new ii,e.Xn=new Xt,e.Gg=!1,e.Jd=!0,e.Us=!0,e.Fi=!0,e.Gi=!0,e.Vs=!1,e.Ws=!0,e.Pi=!0,e.Hi=!0,e.Qi=!0,e.Ys=!0,e.Ii=!0,e.Ki=!0,e.Ji=!0,e.Li=!0,e.Mi=!0,e.Ni=!0,e.Oi=!0,e.Zs=!0,e.at=!0,e.qw=!1,e.Vk=!1,e.mn=!0,e.nn=!0,e.Xs=!0,e.$s=!0,e.iu=16,e.mu=16,e.qr=!1,e.gu=!1,e.lu=0,e.ju=0,e.yb=new vi(5).freeze(),e.Hw=new Yt().freeze(),e.Nt=999999999,e.nw=new Yt().freeze(),e.Zi=!0,e.Ee=!0,e.vd=!0,e.Be=!1,e.gf=!1,e.xh=!0,e.hf=!1,e.sy=new Yt,e.ow=new Yt,e.Xh=null,e.aw=new mi(8,8),e.bw=999,e.Bw=1,e.Jw=0,e.fc={scale:1,position:new ce,bounds:new Ht,Py:new mi,bA:new mi,Oz:!1},e.fc.canvasSize=e.fc.Py,e.fc.newCanvasSize=e.fc.bA,e.fc.isScroll=!1,e.Rw=new Ht(NaN,NaN,NaN,NaN).freeze(),e.wo=new mi(NaN,NaN).freeze(),e.Sp=new Ht(NaN,NaN,NaN,NaN).freeze(),e.It=!1,e.Lg=new ii;var t=new Vn,n=new vo;n.bind(new Is("text","",En)),t.add(n),e.ny=t,e.Lg.add("",t),t=new Vn,n=new vo,n.stroke="brown",n.bind(new Is("text","",En)),t.add(n),e.Lg.add("Comment",t),t=new Vn,t.selectable=!1,t.avoidable=!1,n=new nr,n.figure="Ellipse",n.fill="black",n.stroke=null,n.desiredSize=new mi(3,3).ja(),t.add(n),e.Lg.add("LinkLabel",t),e.Yi=new ii,t=new Xi,t.selectionObjectName="GROUPPANEL",t.type=wn.Vertical,n=new vo,n.font="bold 12pt sans-serif",n.bind(new Is("text","",En)),t.add(n),n=new wn(wn.Auto),n.name="GROUPPANEL";var i=new nr;i.figure="Rectangle",i.fill="rgba(128,128,128,0.2)",i.stroke="black",n.add(i),i=new ml,i.padding=new vi(5,5,5,5).ja(),n.add(i),t.add(n),e.ly=t,e.Yi.add("",t),e.Kh=new ii,t=new kn,n=new nr,n.isPanelMain=!0,t.add(n),n=new nr,n.toArrow="Standard",n.fill="black",n.stroke=null,n.strokeWidth=0,t.add(n),e.my=t,e.Kh.add("",t),t=new kn,n=new nr,n.isPanelMain=!0,n.stroke="brown",t.add(n),e.Kh.add("Comment",t),t=new Fr,t.type=wn.Auto,n=new nr,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),n=new ml,n.margin=new vi(1.5,1.5,1.5,1.5).ja(),t.add(n),e.St=t,e.wt=t,t=new Fr,t.type=wn.Link,n=new nr,n.isPanelMain=!0,n.fill=null,n.stroke="dodgerblue",n.strokeWidth=3,t.add(n),e.Kt=t,e.fe=null,e.mq=!1,e.Ck=null,e.partManager=new Vr,e.toolManager=new ao,e.toolManager.initializeStandardTools(),e.defaultTool=e.toolManager,e.currentTool=e.defaultTool,e.nt=null,e.Wm=new c,e.Vt=null,e.Wt=null,e.Mr=!1,e.commandHandler=Yn(),e.eq=null,e.fq=qi,e.Pw=!1,e.Mb=1,e.Yh=null,e.Oq=1,e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0,e.yq=1,e.tw=0,e.uw=new ce,e.zy=500,e.wp=new ce,e.wq=!1}Z.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),dd=null,Uh="",On(this,!1),this.Xn.clear(),Af(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function On(e,t){e.animationManager.Cc(!0),e.Hw=new Yt().freeze(),e.nw=new Yt().freeze();var n=e.skipsUndoManager,i=e.cc!==null&&e.cc!==void 0;i&&(e.skipsUndoManager=!0);var r=null;e.fe!==null&&(r=e.fe.part,r!==null&&e.remove(r));var o=[],s=e.Wa.length;if(t){for(t=0;t<s;t++)for(var l=e.Wa.s[t].parts;l.next();){var u=l.value;u!==r&&u.data===null&&o.push(u)}for(t=0;t<o.length;t++)e.remove(o[t])}for(t=0;t<s;t++)e.Wa.s[t].clear();return e.partManager.clear(),e.De.clear(),e.Eh.clear(),e.ai.clear(),e.Ck=null,e.Xn.clear(),Af(),e.Og.clear(),lr=[],r!==null&&(e.add(r),e.partManager.parts.remove(r)),i&&(e.skipsUndoManager=n),o}function Yn(){return null}Z.prototype.reset=function(){this.clear(),this.vb=!0,pn(this),Nc(this),this.Wg=!0,Ir(this),this.layout=new Do,this.Wg=!1,this.model=bv(),this.model.undoManager=new wo,this.vb=this.rn=!1,this.N()},Z.prototype.setRTL=function(e){e=e===void 0?this.div:e,e===null&&(e=je.document.body);var t=Kn("div");t.dir="rtl",t.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",t.textContent="A",e.appendChild(t);var n="reverse";0<t.scrollLeft?n="default":(t.scrollLeft=1,t.scrollLeft===0&&(n="negative")),e.removeChild(t),this.bu=n},Z.prototype.setScrollWidth=function(e){e=e===void 0?this.div:e,e===null&&(e=je.document.body);var t=0;if(ds){var n=v0;t=rt,n===null&&(n=v0=Kn("p"),n.style.width="100%",n.style.height="200px",n.style.boxSizing="content-box",t=rt=Kn("div"),t.style.position="absolute",t.style.visibility="hidden",t.style.width="200px",t.style.height="150px",t.style.boxSizing="content-box",t.appendChild(n)),t.style.overflow="hidden",e.appendChild(t);var i=n.offsetWidth;t.style.overflow="scroll",n=n.offsetWidth,i===n&&(n=t.clientWidth),e.removeChild(t),t=i-n,t!==0||ir||(t=11)}this.Db=t,this.Gw=!0},Z.prototype.qb=function(e){e.classType===Z&&(this.autoScale=e)},Z.prototype.toString=function(e){e===void 0&&(e=0);var t="";if(this.div&&this.div.id&&(t=this.div.id),t='Diagram "'+t+'"',0>=e)return t;for(var n=this.Wa.iterator;n.next();)t+=`
|
|
|
`+n.value.toString(e-1);return t};function wi(e,t){if(ds){if(t!=null||ut("Diagram setup requires an argument DIV."),e.Ka!==null&&ut("Diagram has already completed setup."),typeof t=="string"?e.Ka=je.document.getElementById(t):t instanceof HTMLDivElement?e.Ka=t:ut("No DIV or DIV id supplied: "+t),e.Ka===null&&ut("Invalid DIV id; could not get element with id: "+t),e.Ka.H!==void 0&&ut("Invalid div id; div already has a Diagram associated with it."),!e.ol&&je.ResizeObserver){var n=In(function(){e.$b()},250);e.ol=new je.ResizeObserver(function(){n()}),e.ol.observe(e.Ka)}je.getComputedStyle(e.Ka,null).position==="static"&&(e.Ka.style.position="relative"),t=5;var i="rgba(2"+t+"5, 255, 255, 0)";t--,e.Ka.style["-webkit-tap-highlight-color"]=i,e.Ka.innerHTML="",e.Ka.H=e,e.Ka.goDiagram=e,e.Ka.go=je.go;var r=new zu(e);if(r.style!==void 0&&(r.style.position="absolute",r.style.top="0px",r.style.left="0px",je.getComputedStyle(e.Ka,null).getPropertyValue("direction")==="rtl"&&(e.tn=!0),r.style.zIndex="2",r.style.userSelect="none",r.style.MozUserSelect="none",r.style.touchAction="none",r.style.letterSpacing="normal !important",r.style.wordSpacing="normal !important"),e.ta=r,e.ib=r.context,i=e.ib,e.Mb=e.computePixelRatio(),e.viewSize.w()||(e.Aa=e.Ka.clientWidth||1,e.ya=e.Ka.clientHeight||1),wc(e,e.Aa,e.ya),e.Ka.insertBefore(r.Oa,e.Ka.firstChild),r=new zu(null),r.width=1,r.height=1,e.jw=r,e.oy=r.context,ds){r=Kn("div");var o=Kn("div");r.style.position="absolute",r.style.overflow="auto",r.style.width=e.Aa+"px",r.style.height=e.ya+"px",r.style.zIndex="1",o.style.position="absolute",o.style.width="1px",o.style.height="1px",e.Ka.appendChild(r),r.appendChild(o),r.onscroll=No,r.addEventListener("pointerdown",bs),r.H=e,r.uy=!0,r.vy=!0,e.ku=r,e.hu=o}e.hk=In(function(){e.Yh=null,e.N()},300),e.Ov=In(function(){kr(e)},250),e.preventDefault=function(s){return s.preventDefault(),!1},e.$j=function(s){if(e.isEnabled){var l=ba(e,s,!0);l.bubbles=!0;var u=0,f=0;l.delta=0,s.deltaX!==void 0?(s.deltaX!==0&&(u=0<s.deltaX?1:-1),s.deltaY!==0&&(f=0<s.deltaY?1:-1),l.delta=Math.abs(s.deltaX)>Math.abs(s.deltaY)?-u:-f):s.wheelDeltaX!==void 0?(s.wheelDeltaX!==0&&(u=0<s.wheelDeltaX?-1:1),s.wheelDeltaY!==0&&(f=0<s.wheelDeltaY?-1:1),l.delta=Math.abs(s.wheelDeltaX)>Math.abs(s.wheelDeltaY)?-u:-f):s.wheelDelta!==void 0&&s.wheelDelta!==0&&(l.delta=0<s.wheelDelta?1:-1),e.doMouseWheel(),Aa(l,s)}},e.aA=function(s){e.isEnabled&&(e.Vk=!1,ba(e,s,!0),s=e.currentTool,s.cancelWaitAfter(),s.standardMouseOver())},e.ui=function(s){if(e.isEnabled){e.Vk=!0;var l=e.Yt;l[s.pointerId]===void 0&&(l[s.pointerId]=s),l=e.oj;var u=!1;if(l[0]===null||l[0].pointerId!==s.pointerId&&l[0].pointerType===s.pointerType)if(l[1]!==null&&l[1].pointerId===s.pointerId)l[1]=s,u=!0;else if(l[0]===null)l[0]=s;else if(l[1]===null)l[1]=s,u=!0;else{s.preventDefault();return}else l[0]=s;(l=s.pointerType==="touch"||s.pointerType==="pen")&&(e.qu=!1,e.wq=!0);var f=u;u=Kl(e,s,!0,!1,!0,f),Nu(e,s,u),u.targetDiagram=nl(s,s.target),u.targetObject=null,f||u.clone(e.bq),f=e.uw,l=l?25:10,s.timeStamp-e.tw<e.zy&&!(Math.abs(f.x-s.screenX)>l||Math.abs(f.y-s.screenY)>l)?e.yq++:e.yq=1,u.clickCount=e.yq,e.tw=s.timeStamp,e.uw.sg(s.screenX,s.screenY),e.doMouseDown(),s.button===1?s.preventDefault():Aa(u,s)}},e.dk=function(s){if(e.isEnabled){e.Vk=!0;var l=e.oj;if(l[0]===null||l[0].pointerId!==s.pointerId&&l[0].pointerType===s.pointerType){if(l[1]!==null&&l[1].pointerId===s.pointerId){l[1]=s;return}if(l[0]===null)l[0]=s;else return}else l[0]=s;if(l[0].pointerId===s.pointerId){l=Kl(e,s,!1,!1,!1,l[1]!==null);var u=je.document.elementFromPoint(s.clientX,s.clientY)||null;u!==null&&u.shadowRoot!==void 0&&u.shadowRoot!==null&&(u=u.shadowRoot.elementFromPoint(s.clientX,s.clientY));var f=e,p=s;u&&u.H&&(p=s,f=u.H),l.targetDiagram=f,Nu(e,p,l),l.targetObject=null,e.doMouseMove(),Aa(l,s)}}},e.fk=function(s){if(e.isEnabled){e.Vk=!0;var l=s.pointerType==="touch"||s.pointerType==="pen",u=e.Yt;if(l&&e.qu)delete u[s.pointerId],s.preventDefault();else if(u=e.oj,u[0]===null||u[0].pointerId!==s.pointerId&&u[0].pointerType===s.pointerType)u[1]!==null&&u[1].pointerId===s.pointerId&&(u[1]=null);else{u[0]=null,u=Kl(e,s,!1,!0,!0,!1);var f=je.document.elementFromPoint(s.clientX,s.clientY)||null;f!==null&&f.shadowRoot!==void 0&&f.shadowRoot!==null&&(f=f.shadowRoot.elementFromPoint(s.clientX,s.clientY)),f!==null&&f.H instanceof Z&&f.H!==e&&Nu(f.H,s,u),f===null&&(f=s.target),Nu(e,s,u),u.clickCount=e.yq,u.targetDiagram=nl(s,f),u.targetObject=null,e.doMouseUp(),Aa(u,s),l&&(e.wq=!1)}}},e.ek=function(s){if(e.isEnabled){e.Vk=!1;var l=e.Yt;l[s.pointerId]&&delete l[s.pointerId],l=e.oj,l[0]!==null&&l[0].pointerId===s.pointerId&&(l[0]=null),l[1]!==null&&l[1].pointerId===s.pointerId&&(l[1]=null),s.pointerType!=="touch"&&s.pointerType!=="pen"&&(s=e.currentTool,s.cancelWaitAfter(),s.standardMouseOver())}},e.ck=function(s){var l=e.oj;l[0]!==null&&l[0].pointerId===s.pointerId?(l[0]=null,e.wq=!1):l[1]!==null&&l[1].pointerId===s.pointerId&&(l[1]=null)},e.Vp=i.Z["d"+_d[1]+_d[2]+"wI"+pd.slice(1,5)]["b"+Vb.slice(1,t)](i.Z,Bd,t,t),i.Vc(!0),Ci(e),e.nl==="svg"&&(t=e.pj.get("svg"),e.Ka.appendChild(t.Oa),e.ib=t.context)}}Z.prototype.addEventListener=function(e,t,n,i){e.addEventListener(t,n,{capture:i,passive:!1})},Z.prototype.removeEventListener=function(e,t,n,i){e.removeEventListener(t,n,{capture:i})};function Ci(e){var t=e.ta.Oa;t instanceof HTMLCanvasElement||(t=e.div),e.addEventListener(t,"pointerdown",e.ui,!1),e.addEventListener(t,"pointermove",e.dk,!1),e.addEventListener(t,"pointerup",e.fk,!1),e.addEventListener(t,"pointerout",e.ek,!1),e.addEventListener(t,"pointercancel",e.ck,!1),e.addEventListener(t,"pointerenter",e.bz,!1),e.addEventListener(t,"pointerleave",e.cz,!1),e.addEventListener(t,"wheel",e.$j,!1),e.addEventListener(t,"keydown",e.Qz,!1),e.addEventListener(t,"keyup",e.Rz,!1),e.addEventListener(t,"blur",e.Ny,!1),e.addEventListener(t,"focus",e.Oy,!1),e.addEventListener(t,"selectstart",function(n){return n.preventDefault(),!1},!1),e.addEventListener(t,"contextmenu",function(n){return n.preventDefault(),!1},!1),e.addEventListener(je,"resize",e.Ov,!1)}function Pi(e){30<e.Sq&&(e.Yh=1)}function hr(e,t){e.Yh!==null&&(e.Yh=null,t&&e.hk(),Zn&&Zn.nx||(e.Sq=0,e.zw=[0,0,0,0,0],e.Tq=0))}Z.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:je.devicePixelRatio||1},Z.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},Z.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},Z.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},Z.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},Z.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},Z.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},Z.prototype.doFocus=function(){this.focus()},Z.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var e=je.scrollX||je.pageXOffset,t=je.scrollY||je.pageYOffset;this.ta.focus(),je.scrollTo(e,t)}},Z.prototype.Oy=function(){this.H.R("GainedFocus")},Z.prototype.Ny=function(){this.H.R("LostFocus")};function kr(e){if(e.ta!==null){var t=e.Ka;if(t!==null&&t.clientWidth!==0&&t.clientHeight!==0){e.Gw||e.setScrollWidth();var n=e.gf?e.Db:0,i=e.Be?e.Db:0,r=e.Mb;e.Mb=e.computePixelRatio(),e.Mb!==r&&(e.pn=!0,e.$b()),(t.clientWidth!==e.Aa+n||t.clientHeight!==e.ya+i)&&(e.Ee=!0,e.Fc=!0,t=e.layout,t!==null&&t.isViewportSized&&e.autoScale===il&&(e.Jk=!0,t.C()),e.ld||e.$b())}}}function Ir(e){var t=new g;t.name="Background",e.Al(t),t=new g,t.name="",e.Al(t),t=new g,t.name="Foreground",e.Al(t),t=new g,t.name="Adornment",t.isTemporary=!0,t.isInDocumentBounds=!1,e.Al(t),t=new g,t.name="Tool",t.isTemporary=!0,t.isInDocumentBounds=!0,e.Al(t),t=new g,t.name="Grid",t.allowSelect=!1,t.pickable=!1,t.isTemporary=!0,t.isInDocumentBounds=!1,e.Ww(t,e.Qj("Background"))}function lo(e){var t=new wn(wn.Grid);t.name="GRID";var n=new nr;return n.figure="LineH",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new nr,n.figure="LineH",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new nr,n.figure="LineH",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new nr,n.figure="LineV",n.stroke="lightgray",n.strokeWidth=.5,n.interval=1,t.add(n),n=new nr,n.figure="LineV",n.stroke="gray",n.strokeWidth=.5,n.interval=5,t.add(n),n=new nr,n.figure="LineV",n.stroke="gray",n.strokeWidth=1,n.interval=10,t.add(n),n=new Ei,n.add(t),n.layerName="Grid",n.zOrder=0,n.isInDocumentBounds=!1,n.isAnimated=!1,n.pickable=!1,n.locationObjectName="GRID",e.add(n),e.partManager.parts.remove(n),t.visible=!1,t}function No(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Au(this.H)}function bs(e){this.H.isEnabled?(this.H.lu=e.target.scrollTop,this.H.ju=e.target.scrollLeft):Au(this.H)}Z.prototype.kx=function(e){if(this.ta!==null){var t=this.ku,n=this.hu;this.qr=!0;var i=this.documentBounds,r=this.viewportBounds,o=this.rj,s=i.x-o.left,l=i.y-o.top,u=i.width+o.left+o.right,f=i.height+o.top+o.bottom,p=i.right+o.right;o=i.bottom+o.bottom;var x=r.x;i=r.y;var N=r.width,O=r.height,F=r.right,K=r.bottom;r=this.scale;var ye=e.scrollLeft;if(this.tn)switch(this.bu){case"negative":ye=ye+e.scrollWidth-e.clientWidth;break;case"reverse":ye=e.scrollWidth-ye-e.clientWidth}var ae=ye;N<u||O<f?(ye=ce.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==ae&&(ye.x=ae/r+s,this.ju=ae),this.allowVerticalScroll&&this.lu!==e.scrollTop&&(ye.y=e.scrollTop/r+l,this.lu=e.scrollTop),this.position=ye,ce.free(ye),this.Ee=this.qr=!1):(ye=ce.alloc(),e.uy&&this.allowHorizontalScroll&&(s<x&&(this.position=ye.h(ae+s,this.position.y)),p>F&&(this.position=ye.h(-(t.scrollWidth-this.Aa)+ae-this.Aa/r+p,this.position.y))),e.vy&&this.allowVerticalScroll&&(l<i&&(this.position=ye.h(this.position.x,e.scrollTop+l)),o>K&&(this.position=ye.h(this.position.x,-(t.scrollHeight-this.ya)+e.scrollTop-this.ya/r+o))),ce.free(ye),this.vd=!0,this.Ee=this.qr=!1,i=this.documentBounds,r=this.viewportBounds,p=i.right,F=r.right,o=i.bottom,K=r.bottom,s=i.x,x=r.x,l=i.y,i=r.y,N>=u&&s>=x&&p<=F&&(n.style.width="1px"),O>=f&&l>=i&&o<=K&&(n.style.height="1px"))}},Z.prototype.computeBounds=function(e){return e===void 0&&(e=new Ht),Ps(this),Vo(this,e)};function Vo(e,t){if(e.fixedBounds.w())return t.assign(e.fixedBounds),t.Co(e.yb),t;for(var n=!0,i=e.Wa.s,r=i.length,o=0;o<r;o++){var s=i[o];if(s.visible&&s.isInDocumentBounds){s=s.Pa.s;for(var l=s.length,u=0;u<l;u++){var f=s[u];f.isInDocumentBounds&&f.isVisible()&&(f=f.actualBounds,f.w()&&(n?(n=!1,t.assign(f)):t.ed(f)))}}}return n&&t.h(0,0,0,0),t.Co(e.yb),t}Z.prototype.computePartsBounds=function(e,t){t===void 0&&(t=!1);var n=null;if(_n(e))for(var i=0;i<e.length;i++){var r=e[i];!t&&r instanceof kn||(r.Va(),n===null?n=r.actualBounds.copy():n.ed(r.actualBounds))}else for(e=e.iterator;e.next();)i=e.value,!t&&i instanceof kn||(i.Va(),n===null?n=i.actualBounds.copy():n.ed(i.actualBounds));return n===null?new Ht(NaN,NaN,0,0):n};function Io(e,t){if((t||e.hf)&&!e.vb&&e.ta!==null&&e.documentBounds.w()){if(e.vb=!0,t){var n=e.initialPosition;if(n.w()){e.vb=!1,e.position=n;return}n=ce.alloc(),n.xi(e.documentBounds,e.initialDocumentSpot);var i=e.viewportBounds;i=Ht.allocAt(0,0,i.width,i.height);var r=ce.alloc();r.xi(i,e.initialViewportSpot),r.h(n.x-r.x,n.y-r.y),e.position=r,Ht.free(i),ce.free(r),ce.free(n)}n=e.yh,t&&e.Fg!==il&&(n=e.Fg);var o=n!==il?ss(e,n):e.scale;n=e.pa.x,i=e.pa.y,r=e.Aa/o;var s=e.ya/o,l=e.zk,u=e.pq;t&&!l.sb()&&(u.sb()||u.Xb())&&(l=u.Xb()?vr:u),ea(e,e.documentBounds,r,s,l,t),t=e.scale,e.scale=o,e.vb=!1,o=e.viewportBounds,Ke.B(o.x,n)&&Ke.B(o.y,i)&&Ke.B(o.width,r)&&Ke.B(o.height,s)||e.onViewportBoundsChanged(new Ht(n,i,r,s),o,t,!1)}}function ss(e,t){var n=e.Pp;if(e.ta===null)return n;e.Va();var i=e.documentBounds;if(!i.w())return n;var r=i.width;i=i.height;var o=e.Aa+(e.gf?e.Db:0),s=e.ya+(e.Be?e.Db:0),l=o/r,u=s/i;return t===mu?(t=Math.min(u,l),t>n&&(t=n),t<e.minScale&&(t=e.minScale),t>e.maxScale&&(t=e.maxScale),t):t===Hh?(t=u>l?(s-e.Db)/i:(o-e.Db)/r,t>n&&(t=n),t<e.minScale&&(t=e.minScale),t>e.maxScale&&(t=e.maxScale),t):e.scale}Z.prototype.zoomToFit=function(){var e=this.sj;this.sj=ph,this.scale=ss(this,mu),e!==ph&&(Io(this,!1),ea(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=e},_=Z.prototype,_.BA=function(e,t){t===void 0&&(t=mu);var n=e.width,i=e.height;if(!(n===0||i===0||isNaN(n)&&isNaN(i))){var r=1;if(t===mu||t===Hh)if(isNaN(n))r=this.viewportBounds.height*this.scale/i;else if(isNaN(i))r=this.viewportBounds.width*this.scale/n;else{r=this.Aa;var o=this.ya;r=t===Hh?o/i>r/n?(o-(this.Be?this.Db:0))/i:(r-(this.gf?this.Db:0))/n:Math.min(o/i,r/n)}this.scale=r,this.position=new ce(e.x,e.y)}},_.Jy=function(e,t){this.Va();var n=this.documentBounds,i=this.viewportBounds;this.position=new ce(n.x+(e.x*n.width+e.offsetX)-(t.x*i.width-t.offsetX),n.y+(e.y*n.height+e.offsetY)-(t.y*i.height-t.offsetY))},_.zz=function(e){if(e instanceof nt){this.eq=e;var t=ce.alloc();this.fq=this.op(e.ga(Yo,t)),ce.free(t)}else this.eq=null,this.fq=qi};function ea(e,t,n,i,r,o){var s=ce.allocAt(e.pa.x,e.pa.y),l=s.x,u=s.y;if(e.eq!==null){var f=ce.alloc();f=e.eq.ga(Yo,f),l=f.x-e.fq.x/e.scale,u=f.y-e.fq.y/e.scale,r=Di,ce.free(f)}(o||e.scrollMode===ph)&&(r.sb()&&(n>t.width&&(l=t.x+(r.x*t.width+r.offsetX)-(r.x*n-r.offsetX)),i>t.height&&(u=t.y+(r.y*t.height+r.offsetY)-(r.y*i-r.offsetY))),r=e.rj,o=n-t.width,n<t.width+r.left+r.right?(l=Math.min(l+n/2,t.right+Math.max(o,r.right)-n/2),l=Math.max(l,t.left-Math.max(o,r.left)+n/2),l-=n/2):l>t.left?l=t.left:l<t.right-n&&(l=t.right-n),n=i-t.height,i<t.height+r.top+r.bottom?(u=Math.min(u+i/2,t.bottom+Math.max(n,r.bottom)-i/2),u=Math.max(u,t.top-Math.max(n,r.top)+i/2),u-=i/2):u>t.top?u=t.top:u<t.bottom-i&&(u=t.bottom-i)),s.x=isFinite(l)?l:-e.yb.left,s.y=isFinite(u)?u:-e.yb.top,e.positionComputation!==null&&(t=e.positionComputation(e,s),s.x=t.x,s.y=t.y),js(e.Yd,e.pa,s),e.pa.h(s.x,s.y),Nc(e),ce.free(s)}_.Ol=function(e,t){if(t===void 0&&(t=!0),t){if(e=qo(this,e,function(n){return n.part},function(n){return n.canSelect()}),e instanceof Ei)return e}else if(e=qo(this,e,function(n){return n.part}),e instanceof Ei)return e;return null},_.ic=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null),Ps(this);for(var i=this.Wa.iteratorBackwards;i.next();){var r=i.value;if(r.visible&&(r=r.ic(e,t,n),r!==null))return r}return null};function qo(e,t,n,i){for(n===void 0&&(n=null),i===void 0&&(i=null),Ps(e),e=e.Wa.iteratorBackwards;e.next();){var r=e.value;if(r.visible&&!r.isTemporary&&(r=r.ic(t,n,i),r!==null))return r}return null}_.lz=function(e,t,n){return t===void 0&&(t=!0),hl(this,e,function(i){return i.part},t?function(i){return i instanceof Ei&&i.canSelect()}:null,n)};function hl(e,t,n,i,r){for(n===void 0&&(n=null),i===void 0&&(i=null),r instanceof Xt||r instanceof Yt||(r=new Yt),Ps(e),e=e.Wa.iteratorBackwards;e.next();){var o=e.value;o.visible&&!o.isTemporary&&o.ji(t,n,i,r)}return r}_.ji=function(e,t,n,i){t===void 0&&(t=null),n===void 0&&(n=null),i instanceof Xt||i instanceof Yt||(i=new Yt),Ps(this);for(var r=this.Wa.iteratorBackwards;r.next();){var o=r.value;o.visible&&o.ji(e,t,n,i)}return i},_.ux=function(e,t,n,i){return t===void 0&&(t=!1),n===void 0&&(n=!0),Oa(this,e,function(r){return r instanceof Ei&&(!n||r.canSelect())},t,i)},_.Cf=function(e,t,n,i,r){t===void 0&&(t=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof Xt||r instanceof Yt||(r=new Yt),Ps(this);for(var o=this.Wa.iteratorBackwards;o.next();){var s=o.value;s.visible&&s.Cf(e,t,n,i,r)}return r},_.Nu=function(e,t,n,i,r,o){var s=new Yt;Ps(this);for(var l=this.Wa.iteratorBackwards;l.next();){var u=l.value;u.visible&&u.Nu(e,t,n,i,s,r,o)}return s};function Oa(e,t,n,i,r){var o=null;for(o===void 0&&(o=null),n===void 0&&(n=null),i===void 0&&(i=!1),r instanceof Xt||r instanceof Yt||(r=new Yt),Ps(e),e=e.Wa.iteratorBackwards;e.next();){var s=e.value;s.visible&&!s.isTemporary&&s.Cf(t,o,n,i,r)}return r}_.mz=function(e,t,n,i,r){return n===void 0&&(n=!0),i===void 0&&(i=!0),ta(this,e,t,function(o){return o instanceof Ei&&(!i||o.canSelect())},n,r)},_.og=function(e,t,n,i,r,o){n===void 0&&(n=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof Xt||r instanceof Yt)&&(o=r),r=!0),o instanceof Xt||o instanceof Yt||(o=new Yt),Ps(this);for(var s=this.Wa.iteratorBackwards;s.next();){var l=s.value;l.visible&&l.og(e,t,n,i,r,o)}return o};function ta(e,t,n,i,r,o){var s=null;for(s===void 0&&(s=null),i===void 0&&(i=null),r===void 0&&(r=!0),r!==!1&&r!==!0&&((r instanceof Xt||r instanceof Yt)&&(o=r),r=!0),o instanceof Xt||o instanceof Yt||(o=new Yt),Ps(e),e=e.Wa.iteratorBackwards;e.next();){var l=e.value;l.visible&&!l.isTemporary&&l.og(t,n,s,i,r,o)}return o}Z.prototype.acceptEvent=function(e){return ba(this,e,e instanceof MouseEvent)};function ba(e,t,n){var i=e.Qg;return e.Qg=e.cj,e.cj=i,i.diagram=e,i.event=t,n?Nu(e,t,i):(i.viewPoint=e.Qg.viewPoint,i.documentPoint=e.Qg.documentPoint),e=0,t.ctrlKey&&(e+=1),t.altKey&&(e+=2),t.shiftKey&&(e+=4),t.metaKey&&(e+=8),i.modifiers=e,i.button=t.button,t.buttons!==void 0&&(i.buttons=t.buttons),ir&&t.button===0&&t.ctrlKey&&(i.button=2),i.down=!1,i.up=!1,i.clickCount=1,i.delta=0,i.handled=!1,i.bubbles=!1,i.timestamp=t.timeStamp,i.isMultiTouch=!1,i.targetDiagram=nl(t,t.target),i.targetObject=null,i}function nl(e,t){return t===null?null:(t=t.H)?t:((t=e.path)||typeof e.composedPath!="function"||(t=e.composedPath()),t&&t[0]&&t[0].H?t[0].H:null)}function Kl(e,t,n,i,r,o){var s=e.Qg;return e.Qg=e.cj,e.cj=s,s.diagram=e,s.clickCount=1,e=s.delta=0,t.ctrlKey&&(e+=1),t.altKey&&(e+=2),t.shiftKey&&(e+=4),t.metaKey&&(e+=8),s.modifiers=e,s.event=t,s.timestamp=t.timeStamp,s.button=t.button,s.buttons=t.buttons,ir&&t.button===0&&t.ctrlKey&&(s.button=2),s.down=n,s.up=i,s.handled=!1,s.bubbles=r,s.isMultiTouch=o,s}function Aa(e,t){return e.bubbles?!0:(t.stopPropagation!==void 0&&t.stopPropagation(),t.cancelable!==!1&&t.preventDefault(),t.cancelBubble=!0,!1)}Z.prototype.Qz=function(e){var t=this.H;if(!this.H.isEnabled)return!1;var n=ba(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.down=!0,e.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del";break;case 48:n.key="0";break;case 187:case 61:case 107:n.key="Add";break;case 189:case 173:case 109:n.key="Subtract";break;case 27:n.key="Esc"}return t.doKeyDown(),Aa(n,e)},Z.prototype.Rz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=ba(t,e,!1);switch(n.key=String.fromCharCode(e.which),n.up=!0,e.which){case 8:n.key="Backspace";break;case 33:n.key="PageUp";break;case 34:n.key="PageDown";break;case 35:n.key="End";break;case 36:n.key="Home";break;case 37:n.key="Left";break;case 38:n.key="Up";break;case 39:n.key="Right";break;case 40:n.key="Down";break;case 45:n.key="Insert";break;case 46:n.key="Del"}return t.doKeyUp(),Aa(n,e)},Z.prototype.bz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=ba(t,e,!0);return t.mouseEnter!==null&&t.mouseEnter(n),t.currentTool.standardMouseOver(),Aa(n,e)},Z.prototype.cz=function(e){var t=this.H;if(!t.isEnabled)return!1;var n=ba(t,e,!0);return t.mouseLeave!==null&&t.mouseLeave(n),Aa(n,e)},Z.prototype.getMouse=function(e){var t=this.ta;if(t===null)return new ce(0,0);var n=t.getBoundingClientRect();return t=e.clientX-this.Aa/n.width*n.left,e=e.clientY-this.ya/n.height*n.top,this.Ab!==null?zi(new ce(t,e),this.Ab):new ce(t,e)};function Nu(e,t,n){var i=e.ta,r=e.Aa,o=e.ya,s=0,l=0;i!==null&&(i=i.getBoundingClientRect(),s=t.clientX-r/i.width*i.left,l=t.clientY-o/i.height*i.top),n.viewPoint.h(s,l),e.Ab!==null?(t=ce.allocAt(s,l),e.Ab.Cd(t),n.documentPoint.assign(t),ce.free(t)):n.documentPoint.h(s,l)}function Xu(e,t,n){if(e.oj[0]!==null){t=e.oj[t];var i=e.ta;i!==null&&(i=i.getBoundingClientRect(),n.h(t.clientX-e.Aa/i.width*i.left,t.clientY-e.ya/i.height*i.top))}}Z.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function Pc(e){e.ld||Ps(e),e.Va()}Z.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},_=Z.prototype,_.Pz=function(){return this.kg},_.Xy=function(e){e===void 0&&(e=null);var t=this.animationManager,n=t.isEnabled;t.Cc(),t.isEnabled=!1,ua(this),this.hf=!1,this.du=new ce(NaN,NaN),t.isEnabled=n,this.ld=!0;var i=this;e!==null&&ni(function(){i.ld=!1,Rs(t,"Model"),e(i)},1)},_.$b=function(e){if(e===void 0&&(e=!1),this.kg!==!0&&!(this.vb||e===!1&&this.ld)){this.kg=!0;var t=this;je.requestAnimationFrame(function(){t.kg&&t.bd()})}},_.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),ua(this))};function Ol(e,t,n){!e.Ee||e.vb||e.animationManager.defaultAnimation.isAnimating||Au(e)||(t&&Ps(e),n&&Io(e,!1))}function ua(e,t){if(!e.ld&&(e.kg=!1,e.Ka!==null||e.wo.w())){e.ld=!0;var n=e.animationManager,i=e.Xn;if(!n.isAnimating&&i.length!==0){for(var r=i.s,o=r.length,s=0;s<o;s++){var l=r[s];Bs(l,!1),l.v()}i.clear()}i=e.ow,0<i.count&&(i.each(function(u){u.Nv()}),i.clear()),r=i=!1,n.defaultAnimation.isAnimating&&(r=!0,i=e.skipsUndoManager,e.skipsUndoManager=!0),n.zb||kr(e),Ol(e,!1,!0),e.fe!==null&&(e.fe.visible&&!e.mq&&(Tc(e),e.mq=!0),!e.fe.visible&&e.mq&&(e.mq=!1)),Ps(e),o=!1,(!e.hf||e.xh)&&(e.hf?sp(e,!e.Jk):(e.Ea("Initial Layout"),n.isEnabled===!1&&n.Cc(),sp(e,!1)),o=!0),e.Jk=!1,Ps(e),e.ou||Pc(e),Ol(e,!0,!1),s=!1,o?(n=Ht.alloc(),n.assign(e.viewportBounds),e.hf||(s=e.hf=!0,e.skipsUndoManager||(e.undoManager.isPendingClear=!0),e.undoManager.isPendingUnmodified=!0,Ll(e)),e.R("LayoutCompleted"),Ol(e,!0,!1),Ht.free(n)):n.Ok&&n.Qw&&(e.Fg!==il?e.scale=ss(e,e.Fg):e.yh!==il?e.scale=ss(e,e.yh):(n=e.initialScale,isFinite(n)&&0<n&&(e.scale=n)),Io(e,!0)),o&&s&&e.eb("Initial Layout"),Ps(e),t||e.gc(e.ib),r&&(e.skipsUndoManager=i),e.ld=!1}}function Ll(e){if(e.Fg!==il)e.scale=ss(e,e.Fg);else if(e.yh!==il)e.scale=ss(e,e.yh);else{var t=e.initialScale;isFinite(t)&&0<t&&(e.scale=t)}Io(e,!0),t=e.Wa.s,e.Fd(t,t.length,e,e.viewportBounds),e.R("InitialLayoutCompleted"),e.du.assign(e.pa),Tc(e)}function Ps(e){if(e.De.count!==0&&(e.ld||!e.animationManager.isTicking)){for(var t=0;23>t;t++){var n=e.De.iterator;if(n===null||e.De.count===0)break;e.De=new Yt,e.Nv(n,e.De)}e.nodes.each(function(i){i instanceof Xi&&i.U&65536&&(i.U=i.U^65536)})}}_.Nv=function(e,t){for(e.reset();e.next();){var n=e.value;!n.Zc()||n instanceof Xi||(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))}for(e.reset();e.next();)n=e.value,n instanceof Xi&&n.isVisible()&&jo(this,n);for(e.reset();e.next();)n=e.value,n instanceof kn&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n));for(e.reset();e.next();)n=e.value,n instanceof Fr&&n.isVisible()&&(n.si()?(n.measure(1/0,1/0),n.arrange()):t.add(n))};function jo(e,t){for(var n=jt(),i=jt(),r=t.memberParts;r.next();){var o=r.value;o.isVisible()&&(o instanceof Xi?(vu(o)||fl(o)||jh(o))&&jo(e,o):o instanceof kn?o.fromNode===t||o.toNode===t?i.push(o):n.push(o):(o.measure(1/0,1/0),o.arrange()))}for(e=n.length,r=0;r<e;r++)o=n[r],o.measure(1/0,1/0),o.arrange();for(gn(n),t.measure(1/0,1/0),t.arrange(),e=i.length,t=0;t<e;t++)n=i[t],n.measure(1/0,1/0),n.arrange();gn(i)}_.Fd=function(e,t,n,i){if(this.vd||this.animationManager.isAnimating)for(var r=0;r<t;r++)e[r].Fd(n,i)},_.gc=function(e){if(this.Ka!==null){if(this.ta===null&&ut("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var t=this.animationManager;if(!t.zb&&(!t.isAnimating||t.isTicking)){Za(this);var n=this.Aa,i=this.ya;if(e.Gv.resize(n,i,n,i),n=this.Wa.s,i=n.length,this.Fd(n,i,this,this.viewportBounds),this.Fc||t.isAnimating){t=this.pa;var r=this.Ca,o=Math.round(t.x*r)/r,s=Math.round(t.y*r)/r,l=this.Ab;for(l.reset(),r!==1&&l.scale(r),t.x===0&&t.y===0||l.translate(-o,-s),e.ti=null,iy(e,l.m11,l.m12,l.m21,l.m22,l.dx,l.dy),this.pb!==1&&(e.globalAlpha=this.pb),La(this,e),t=this.Mb,this.ta.context.setTransform(t,0,0,t,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),t=0;t<i;t++)n[t].gc(e,this);e=!1,this.Yf?md(this.Yf,this)&&(e=this.Vp()):e=!0,e&&(er.prototype.Cd=er.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(o=this.animationManager,!o.zb&&(!o.isAnimating||o.isTicking)&&(n=new Date,Za(this),this.Ka.style.opacity!=="0")){if(i=e!==this.ib,t=this.Wa.s,r=t.length,this.Fd(t,r,this,this.viewportBounds),i)e.Vc(!0),this.vd=!0;else if(!this.Fc&&!o.isAnimating)break e;o=this.Ab,o.reset(),s=this.Mb,l=this.pa;var u=this.Ca,f=Math.round(l.x*u)/u,p=Math.round(l.y*u)/u;for(u!==1&&o.scale(u),l.x===0&&l.y===0||o.translate(-f,-p),e.setTransform(s,0,0,s,0,0),e.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(e.globalAlpha=this.pb),La(this,e),l=0;l<r;l++)e.setTransform(s,0,0,s,0,0),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),e.yc(),t[l].gc(e,this);if(t=!1,this.Yf?md(this.Yf,this)&&(t=this.Vp()):t=!0,t&&(er.prototype.Cd=er.prototype.Eu),i?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,t=+new Date-+n,i=Zn&&Zn.nx,n=this.zw,i||this.Yh===null){for(n[this.Tq]=t,this.Tq=(this.Tq+1)%n.length,r=t=0;r<n.length;r++)t+=n[r];this.Sq=t/n.length}if(this.pb!==1&&(e.globalAlpha=1),i)for(e.setTransform(1,0,0,1,0,0),i=0;i<n.length;i++)e.fillText(n[i].toString(),20,150+ +(20*i))}}};function hs(e,t,n,i,r,o,s,l,u,f){if(e.Ka!==null){e.ta===null&&ut("No canvas specified"),s===void 0&&(s=null),l===void 0&&(l=null),u===void 0&&(u=!1),f===void 0&&(f=!1),Za(e),e.ib.Vc(!0),e.vd=!0,e.$i=!0;var p=e.Ca;e.Ca=r;var x=e.Wa.s,N=x.length;try{var O=new Ht(o.x,o.y,i.width/r,i.height/r),F=O.copy();F.Co(n),Tc(e,F),Ps(e),e.Fd(x,N,e,O),t.setTransform(1,0,0,1,0,0),t.clearRect(0,0,i.width,i.height),l!==null&&l!==""&&(t.fillStyle=l,t.ox(0,0,i.width,i.height));var K=e.Mb;t.scale(K,K);var ye=er.alloc();ye.reset(),ye.translate(n.left,n.top),ye.scale(r),o.x===0&&o.y===0||ye.translate(-o.x,-o.y),t.setTransform(ye.m11,ye.m12,ye.m21,ye.m22,ye.dx,ye.dy),t.yc(),t instanceof tu&&iy(t,ye.m11,ye.m12,ye.m21,ye.m22,ye.dx,ye.dy),er.free(ye),La(e,t),t.globalAlpha=e.pb;var ae=e.Qj("Grid");if(s){var Oe=new Yt,Fe=s.iterator;for(Fe.reset();Fe.next();){var He=Fe.value;He instanceof Ei&&(f||He.layer!==ae)&&(He.Gj(),Oe.add(He))}for(f=0;f<N;f++)R(x[f],t,e,Oe,u);Oe.each(function(bt){return bt.Gj()})}else for(Oe=0;Oe<N;Oe++){var qe=x[Oe];qe===ae?f&&qe.gc(t,e,!0):qe.gc(t,e,u)}e.$i=!1,e.Yf&&md(e.Yf,e)&&e.Vp()}finally{e.Ca=p,e.ib.Vc(!0),e.vd=!0,e.Fd(x,N,e,e.viewportBounds),Tc(e),e.ib instanceof tu&&(e.ib.Nj.PA(),e.redraw())}}}_.Gf=function(e){return this.Rg[e]},_.Xx=function(e,t){e==="minDrawingLength"&&(this.Oq=t),this.Rg[e]=t,this.redraw()},_.Tx=function(){this.Rg=new ue,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(ir||ki),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function La(e,t){e=e.Rg,e!==null&&(e.imageSmoothingEnabled!==void 0&&t.Wx(!!e.imageSmoothingEnabled),e=e.defaultFont,e!=null&&(t.font=e))}_.Ql=function(e){return this.on[e]},_.sA=function(e,t){this.on[e]=t},_.Sx=function(){this.on=new ue,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},_.set=function(e){return Object.assign(this,e),this},_.Du=function(e){return this.nm(e)},_.nm=function(e){return Ya(this,e),this};function Ya(e,t){var n=e instanceof wn,i=e instanceof Z,r;for(r in t){r===""&&ut("Setting properties requires non-empty property names");var o=e,s=r;if(n||i){var l=r.indexOf(".");if(0<l){var u=r.substring(0,l);n?o=e.fb(u):(o=e[u],o==null&&(o=e.toolManager[u])),Zt(o)?s=r.substr(l+1):ut("Unable to find object named: "+u+" in "+e.toString()+" when trying to set property: "+r)}}if(s[0]!=="_"&&!Ln(o,s))if(i&&s==="ModelChanged"){e.Yw(t[s]);continue}else if(i&&s==="Changed"){e.Pe(t[s]);continue}else if(i&&Ln(e.toolManager,s))o=e.toolManager;else if(i&&p0(e,s)){e.Bj(s,t[s]);continue}else if(e instanceof pi&&s==="Changed"){e.Pe(t[s]);continue}else ut('Trying to set undefined property "'+s+'" on object: '+o.toString());o[s]=t[r],s[0]==="_"&&o instanceof nt&&o.Vw(s)}}_.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var e=this.Eh;for(this.Eh=new ii,e=e.iterator;e.next();){var t=e.key;t.Xo(e.value),t.qc()}}this.N()}},_.N=function(e){if(e===void 0)this.Fc=!0,this.$b();else{var t=this.viewportBounds;e.w()&&t.Yc(e)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},Z.prototype.invalidateViewport=function(e,t){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var n=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Fd&&this.rj.hi(0,0,0,0)&&t.width===e.width&&t.height===e.height){var i=this.scale,r=Math.max(e.y,t.y),o=Math.min(e.y+e.height,t.y+t.height);if(0<Math.max(0,Math.min(e.x+e.width,t.x+t.width)-Math.max(e.x,t.x))*i&&0<Math.max(0,o-r)*i){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(i=Ht.alloc(),op(this,this.computeBounds(i)),Ht.free(i)),i=this.ta,i===null||i instanceof Ac)))){var s=this.Mb;r=this.Aa*s;var l=this.ya*s,u=this.scale*s;o=Math.round(Math.round(t.x*u)-Math.round(e.x*u)),t=Math.round(Math.round(t.y*u)-Math.round(e.y*u)),u=this.jw,e=this.oy,u.width!==r&&(u.width=r),u.height!==l&&(u.height=l),e.clearRect(0,0,r,l),u=190*s;var f=70*s,p=Math.max(o,0),x=Math.max(t,0),N=Math.floor(r-p),O=Math.floor(l-x);e.drawImage(i.Oa,p,x,N,O,0,0,N,O),md(this.Yf,this)&&e.clearRect(0,0,u,f),i=jt(),e=jt(),O=Math.abs(o),N=Math.abs(t);var F=p===0?0:r-O;p=ce.allocAt(F,0),O=ce.allocAt(O+F,l),e.push(new Ht(Math.min(p.x,O.x),Math.min(p.y,O.y),Math.abs(p.x-O.x),Math.abs(p.y-O.y)));var K=this.Ab;if(K.reset(),K.scale(s,s),this.Ca!==1&&K.scale(this.Ca),s=this.pa,(s.x!==0||s.y!==0)&&isFinite(s.x)&&isFinite(s.y)&&K.translate(-s.x,-s.y),zi(p,K),zi(O,K),i.push(new Ht(Math.min(p.x,O.x),Math.min(p.y,O.y),Math.abs(p.x-O.x),Math.abs(p.y-O.y))),F=x===0?0:l-N,p.h(0,F),O.h(r,N+F),e.push(new Ht(Math.min(p.x,O.x),Math.min(p.y,O.y),Math.abs(p.x-O.x),Math.abs(p.y-O.y))),zi(p,K),zi(O,K),i.push(new Ht(Math.min(p.x,O.x),Math.min(p.y,O.y),Math.abs(p.x-O.x),Math.abs(p.y-O.y))),md(this.Yf,this)&&(r=0<o?0:-o,l=0<t?0:-t,p.h(r,l),O.h(u+r,f+l),e.push(new Ht(Math.min(p.x,O.x),Math.min(p.y,O.y),Math.abs(p.x-O.x),Math.abs(p.y-O.y))),zi(p,K),zi(O,K),i.push(new Ht(Math.min(p.x,O.x),Math.min(p.y,O.y),Math.abs(p.x-O.x),Math.abs(p.y-O.y)))),ce.free(p),ce.free(O),Ol(this,!1,!0),this.Ka===null&&ut("No div specified"),this.ta===null&&ut("No canvas specified"),!this.animationManager.zb&&(r=this.ib,this.Fc)){for(Za(this),l=this.Mb,r.setTransform(1,0,0,1,0,0),r.clearRect(0,0,this.Aa*l,this.ya*l),r.drawImage(this.jw.Oa,0<o?0:Math.round(-o),0<t?0:Math.round(-t)),o=this.pa,s=this.Ca,u=Math.round(o.x*s)/s,f=Math.round(o.y*s)/s,t=this.Ab,t.reset(),s!==1&&t.scale(s),o.x===0&&o.y===0||t.translate(-u,-f),r.save(),r.beginPath(),o=e.length,s=0;s<o;s++)u=e[s],u.width!==0&&u.height!==0&&r.rect(Math.floor(u.x),Math.floor(u.y),Math.ceil(u.width),Math.ceil(u.height));for(r.clip(),r.setTransform(l,0,0,l,0,0),r.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),r.yc(),t=this.Wa.s,o=t.length,this.Fd(t,o,this,this.viewportBounds),La(this,r),r.globalAlpha=this.pb,l=0;l<o;l++)if(s=t[l],u=i,s.visible&&s.pb!==0){f=S(s,r),x=s.Zq,x.length=0,p=this.scale,N=Ht.alloc(),O=s.Pa.s,K=O.length,F=u.length;for(var ye=0;ye<K;ye++){var ae=O[ye],Oe=Ed(ae,ae.actualBounds);e:{for(var Fe=2/p,He=4/p,qe=0;qe<F;qe++){var bt=u[qe];if(bt.width!==0&&bt.height!==0&&Oe.Vu(bt.x-Fe,bt.y-Fe,bt.width+He,bt.height+He)){Oe=!0;break e}}Oe=!1}Oe&&s.Oj(r,ae,this,x,p,N,!0)}Ht.free(N),r.globalAlpha=f}r.restore(),r.Vc(!0),this.Yf&&md(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}gn(i),gn(e),this.ld=!1}}else this.bd();n&&(Pi(this),this.bd(),hr(this,!0))}else n?(Pi(this),this.bd(),hr(this,!0)):this.bd()}};function Za(e){e.pn!==!1&&(e.pn=!1,wc(e,e.Aa,e.ya))}function wc(e,t,n){Nc(e);var i=e.Mb;e.ta.resize(t*i,n*i,t,n)&&(e.Fc=!0,e.ib.Vc(!0))}function Au(e){var t=e.ta;if(t===null||e.wo.w())return!0;var n=e.Aa,i=e.ya,r=e.Ka,o=!1,s=e.gf?e.Db:0,l=e.Be?e.Db:0,u=r.clientWidth||n+s,f=r.clientHeight||i+l,p=e.viewportBounds;r=p.x;var x=p.y,N=p.width,O=p.height;if((u!==n+s||f!==i+l)&&(e.gf=!1,e.Be=!1,l=s=0,e.Aa=u,e.ya=f,o=e.pn=!0,Nc(e)),!e.hf||!e.viewportBounds.w())return!0;var F=e.ku,K=e.hu;if(e.Ee=!1,!(o||e.gf||e.Be||e.mn||e.nn))return!0;var ye=e.documentBounds,ae=0,Oe=0,Fe=0,He=0,qe=p.width,bt=p.height,jn=e.rj;e.contentAlignment.sb()?(ye.width>qe&&(ae=jn.left,Oe=jn.right),ye.height>bt&&(Fe=jn.top,He=jn.bottom)):(ae=jn.left,Oe=jn.right,Fe=jn.top,He=jn.bottom);var oi=ye.width+ae+Oe,ei=ye.height+Fe+He;jn=e.scale;var Nn=oi>u/jn,cn=ei>f/jn;if(!(o||e.gf||e.Be||Nn||cn))return!0;ae=ye.x-ae,u=p.x,Oe=ye.right+Oe,f=p.right+s,Fe=ye.y-Fe;var Yi=p.y;ye=ye.bottom+He,p=p.bottom+l;var Ui="1px";if(He="1px",e.scrollMode===ph&&(Nn||cn)&&(Nn&&e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(Nn=1,ae+1<u&&(Nn=Math.max((u-ae)*jn+e.Aa,Nn)),Oe>f+1&&(Nn=Math.max((Oe-f)*jn+e.Aa,Nn)),qe+s+1<oi&&(Nn=Math.max((oi-qe)*jn+e.Aa,Nn)),Ui=Nn.toString()+"px"),cn&&e.hasVerticalScrollbar&&e.allowVerticalScroll&&(Nn=1,Fe+1<Yi&&(Nn=Math.max((Yi-Fe)*jn+e.ya,Nn)),ye>p+1&&(Nn=Math.max((ye-p)*jn+e.ya,Nn)),bt+l+1<ei&&(Nn=Math.max((ei-bt)*jn+e.ya,Nn)),He=Nn.toString()+"px")),Nn=Ui!=="1px",cn=He!=="1px",Nn&&cn||!Nn&&!cn||(cn&&(f-=e.Db),Nn&&(p-=e.Db),oi<qe+s||!e.hasHorizontalScrollbar||!e.allowHorizontalScroll||(s=1,ae+1<u&&(s=Math.max((u-ae)*jn+e.Aa,s)),Oe>f+1&&(s=Math.max((Oe-f)*jn+e.Aa,s)),qe+1<oi&&(s=Math.max((oi-qe)*jn+e.Aa,s)),Ui=s.toString()+"px"),Nn=Ui!=="1px",s=e.ya,Nn!==e.Be&&(s=Nn?e.ya-e.Db:e.ya+e.Db),ei<bt+l||!e.hasVerticalScrollbar||!e.allowVerticalScroll||(l=1,Fe+1<Yi&&(l=Math.max((Yi-Fe)*jn+s,l)),ye>p+1&&(l=Math.max((ye-p)*jn+s,l)),bt+1<ei&&(l=Math.max((ei-bt)*jn+s,l)),He=l.toString()+"px"),cn=He!=="1px"),e.qr&&Nn===e.Be&&cn===e.gf)return n===e.Aa&&i===e.ya||e.bd(),!1;if(Nn!==e.Be&&(Ui==="1px"?e.ya=e.ya+e.Db:e.ya=Math.max(e.ya-e.Db,1),o=!0),e.Be=Nn,K.style.width=Ui,cn!==e.gf&&(He==="1px"?e.Aa=e.Aa+e.Db:e.Aa=Math.max(e.Aa-e.Db,1),o=!0,e.tn&&(l=ce.alloc(),cn?(t.style.left=e.Db+"px",e.position=l.h(e.pa.x+e.Db/e.scale,e.pa.y)):(t.style.left="0px",e.position=l.h(e.pa.x-e.Db/e.scale,e.pa.y)),ce.free(l))),o&&Nc(e),e.gf=cn,K.style.height=He,e.gu=!0,o&&(e.pn=!0),t=F.scrollLeft,e.hasHorizontalScrollbar&&e.allowHorizontalScroll&&(qe+1<oi?t=(e.position.x-ae)*jn:ae+1<u?t=F.scrollWidth-F.clientWidth:Oe>f+1&&(t=e.position.x*jn)),e.tn)switch(e.bu){case"negative":t=-(F.scrollWidth-t-F.clientWidth);break;case"reverse":t=F.scrollWidth-t-F.clientWidth}return F.scrollLeft=t,e.hasVerticalScrollbar&&e.allowVerticalScroll&&(bt+1<ei?F.scrollTop=(e.position.y-Fe)*jn:Fe+1<Yi?F.scrollTop=F.scrollHeight-F.clientHeight:ye>p+1&&(F.scrollTop=e.position.y*jn)),u=e.Aa,f=e.ya,F.style.width=u+(e.gf?e.Db:0)+"px",F.style.height=f+(e.Be?e.Db:0)+"px",n!==u||i!==f||e.animationManager.zb?(n=Ht.allocAt(r,x,N,O),e.onViewportBoundsChanged(n,e.viewportBounds,jn,o),Ht.free(n),!1):!0}_=Z.prototype,_.add=function(e){var t=e.diagram;if(t!==this&&(t!==null&&ut("Cannot add part "+e.toString()+" to "+this.toString()+". It is already a part of "+t.toString()),t=this.Qj(e.layerName),t===null&&(t=this.Qj("")),t===null&&ut('Cannot add a Part when unable find a Layer named "'+e.layerName+'" and there is no default Layer'),e.layer!==t)){var n=t.oi(99999999,e,e.diagram===this);0<=n&&this.cb(zo,"parts",t,null,e,null,n),t.isTemporary||this.Ya(),e.C(1),n=e.layerChanged,n!==null&&n(e,null,t)}},_.oi=function(e){this.partManager.oi(e);var t=this;bd(e,function(n){hd(t,n)}),(e instanceof Fr||e instanceof Xi&&e.placeholder!==null)&&e.v(),e.data!==null&&bd(e,function(n){gv(t.partManager,n)}),fl(e)!==!0&&jh(e)!==!0||this.De.add(e),Vy(e,!0,this),Yy(e)?(e.actualBounds.w()&&this.N(Ed(e,e.actualBounds)),this.Ya()):e.isVisible()&&e.actualBounds.w()&&this.N(Ed(e,e.actualBounds)),this.$b()},_.pc=function(e){e.Ej(),this.partManager.pc(e);var t=this;e.data!==null&&bd(e,function(n){vv(t.partManager,n,t)}),this.De.remove(e),Yy(e)?(e.actualBounds.w()&&this.N(Ed(e,e.actualBounds)),this.Ya()):e.isVisible()&&e.actualBounds.w()&&this.N(Ed(e,e.actualBounds)),this.$b()},_.remove=function(e){Xc(this,e,!0)};function Xc(e,t,n){var i=t.layer;i!==null&&i.diagram===e&&(t.isSelected=!1,t.isHighlighted=!1,t.C(2),n&&t.Lj(),n=i.pc(-1,t,!1),0<=n&&e.cb(os,"parts",i,t,null,n,null),e=t.layerChanged,e!==null&&e(t,i,null))}_.Is=function(e,t){if(t===void 0&&(t=!1),_n(e))for(var n=e.length,i=0;i<n;i++){var r=e[i];t&&!r.canDelete()||this.remove(r)}else for(n=new Yt,n.addAll(e),e=n.iterator;e.next();)n=e.value,t&&!n.canDelete()||this.remove(n)},_.Kj=function(e,t,n){return n===void 0&&(n=!1),this.partManager.Kj(e,t,n)},Z.prototype.moveParts=function(e,t,n,i){if(n===void 0&&(n=!1),i===void 0&&(i=ch(this)),this.toolManager!==null){var r=new ii;if(e!==null)if(_n(e))for(var o=0;o<e.length;o++)pu(this,r,e[o],n,i);else for(e=e.iterator;e.next();)pu(this,r,e.value,n,i);else{for(e=this.parts;e.next();)pu(this,r,e.value,n,i);for(e=this.nodes;e.next();)pu(this,r,e.value,n,i);for(e=this.links;e.next();)pu(this,r,e.value,n,i)}Qu(this,r,t,i,n)}};function pu(e,t,n,i,r,o){if(!t.contains(n)&&(o===void 0&&(o=!1),!i||o||n.canMove()||n.canCopy()))if(r===void 0&&(r=ch(e)),n instanceof Vn){if(t.add(n,e.Pd(r,n,n.location)),n instanceof Xi&&(n.placeholder!==null||r.dragsMembers))for(o=n.memberParts;o.next();)pu(e,t,o.value,i,r,r.groupsAlwaysMove);for(o=n.linksConnected;o.next();){var s=o.value;if(!t.contains(s)){var l=s.fromNode,u=s.toNode;l!==null&&t.contains(l)&&u!==null&&t.contains(u)&&pu(e,t,s,i,r)}}if(r.dragsTree)for(n=n.Ou();n.next();)pu(e,t,n.value,i,r)}else if(n instanceof kn)for(t.add(n,e.Pd(r,n)),n=n.labelNodes;n.next();)pu(e,t,n.value,i,r);else n instanceof Fr||t.add(n,e.Pd(r,n,n.location))}function Qu(e,t,n,i,r){if(t!==null&&t.count!==0){var o=ce.alloc(),s=ce.alloc();s.assign(n),isNaN(s.x)&&(s.x=0),isNaN(s.y)&&(s.y=0),(n=e.Mr)||_h(e,t);for(var l=jt(),u=jt(),f=t.iterator,p=ce.alloc();f.next();){var x=f.key,N=f.value;if(x.Zc()){var O=hh(e,x,t);O!==null?l.push(new a(x,N,O)):(!r||x.canMove())&&(O=N.point,o.assign(O),e.computeMove(x,o.add(s),i,p),x.location=p,N.shifted===void 0&&(N.shifted=new ce),N.shifted.assign(p.re(O)))}else f.key instanceof kn&&u.push(f.sa)}for(ce.free(p),r=l.length,f=0;f<r;f++)x=l[f],o.assign(x.info.point),x.Su.shifted===void 0&&(x.Su.shifted=new ce),x.node.location=o.add(x.Su.shifted);for(r=ce.alloc(),f=ce.alloc(),x=u.length,N=0;N<x;N++){var F=u[N];if(O=F.key,O instanceof kn)if(O.suspendsRouting){O.Tg=null,p=O.fromNode;var K=O.toNode;if(e.draggedLink!==null&&i.dragsLink)if(K=F.value.point,O.dragComputation===null)t.add(O,e.Pd(i,O,s)),Eh(O,s.x-K.x,s.y-K.y);else{F=ce.allocAt(0,0),(p=O.i(0))&&p.w()&&F.assign(p);var ye=p=ce.alloc().assign(F).add(s);i.isGridSnapEnabled&&(i.isGridSnapRealtime||e.lastInput.up)&&(ye=ce.alloc(),Bh(e,O,p,ye,i)),p.assign(O.dragComputation(O,p,ye)).re(F),t.add(O,e.Pd(i,O,p)),Eh(O,p.x-K.x,p.y-K.y),ce.free(F),ce.free(p),ye!==p&&ce.free(ye)}else p!==null&&(r.assign(p.location),ye=t.I(p),ye!==null&&r.re(ye.point)),K!==null&&(f.assign(K.location),ye=t.I(K),ye!==null&&f.re(ye.point)),p!==null&&K!==null?r.Xa(f)?(p=F.value.point,K=o,K.assign(r),K.re(p),t.add(O,e.Pd(i,O,r)),Eh(O,K.x,K.y)):(O.suspendsRouting=!1,O.bb()):(F=F.value.point,p=p!==null?r:K!==null?f:s,t.add(O,e.Pd(i,O,p)),Eh(O,p.x-F.x,p.y-F.y))}else(O.fromNode===null||O.toNode===null)&&(p=F.value.point,t.add(O,e.Pd(i,O,s)),Eh(O,s.x-p.x,s.y-p.y))}ce.free(o),ce.free(s),ce.free(r),ce.free(f),gn(l),gn(u),n||(Ps(e),Cc(e,t))}}Z.prototype.computeMove=function(e,t,n,i){if(i===void 0&&(i=new ce),i.assign(t),e===null)return i;var r=t,o=n.isGridSnapEnabled;o&&(n.isGridSnapRealtime||this.lastInput.up)&&(r=ce.alloc(),Bh(this,e,t,r,n)),n=e.dragComputation!==null?e.dragComputation(e,t,r):r;var s=e.minLocation,l=s.x;isNaN(l)&&(l=o?Math.round(1e3*e.location.x)/1e3:e.location.x),s=s.y,isNaN(s)&&(s=o?Math.round(1e3*e.location.y)/1e3:e.location.y);var u=e.maxLocation,f=u.x;return isNaN(f)&&(f=o?Math.round(1e3*e.location.x)/1e3:e.location.x),u=u.y,isNaN(u)&&(u=o?Math.round(1e3*e.location.y)/1e3:e.location.y),i.h(Math.max(l,Math.min(n.x,f)),Math.max(s,Math.min(n.y,u))),r!==t&&ce.free(r),i};function ch(e){var t=e.toolManager.findTool("Dragging");return t!==null?t.dragOptions:e.Wm}function Bh(e,t,n,i,r){if(r===void 0&&(r=ch(e)),i.assign(n),t!==null){var o=e.grid;t=r.gridSnapCellSize,e=t.width,t=t.height;var s=r.gridSnapOrigin,l=s.x;if(s=s.y,r=r.gridSnapCellSpot,o!==null){var u=o.gridCellSize;isNaN(e)&&(e=u.width),isNaN(t)&&(t=u.height),o=o.gridOrigin,isNaN(l)&&(l=o.x),isNaN(s)&&(s=o.y)}o=ce.allocAt(0,0),o.yi(0,0,e,t,r),Ke.No(n.x,n.y,l+o.x,s+o.y,e,t,i),ce.free(o)}}function _h(e,t){if(t!==null)for(e.Mr=!0,e=t.iterator;e.next();)t=e.key,t instanceof kn&&(t.suspendsRouting=!0)}function Cc(e,t){if(t!==null){for(t=t.iterator;t.next();){var n=t.key;n instanceof kn&&(n.suspendsRouting=!1,nv(n)&&n.bb())}e.Mr=!1}}function hh(e,t,n){return t=t.containingGroup,t!==null&&(e=hh(e,t,n),e!==null||(e=n.I(t),e!==null))?e:null}_=Z.prototype,_.Pd=function(e,t,n){if(n===void 0)return new Qc(br);var i=e.isGridSnapEnabled;return e.groupsSnapMembers||t.containingGroup===null||(i=!1),i?new Qc(new ce(Math.round(1e3*n.x)/1e3,Math.round(1e3*n.y)/1e3)):new Qc(n.copy())};function dh(e,t,n){if(t.diagram!==null&&t.diagram!==e&&ut("Cannot share a Layer with another Diagram: "+t+" of "+t.diagram),n===null?t.diagram!==null&&ut("Cannot add an existing Layer to this Diagram again: "+t):(n.diagram!==e&&ut("Existing Layer must be in this Diagram: "+n+" not in "+n.diagram),t===n&&ut("Cannot move a Layer before or after itself: "+t)),t.diagram!==e){t=t.name,e=e.Wa,n=e.count;for(var i=0;i<n;i++)e.M(i).name===t&&ut("Cannot add Layer with the name '"+t+"'; a Layer with the same name is already present in this Diagram.")}}_.Al=function(e){dh(this,e,null),e.Xe(this);var t=this.Wa,n=t.count-1;if(!e.isTemporary)for(;0<=n&&t.M(n).isTemporary;)n--;return t.Gb(n+1,e),this.cc!==null&&this.cb(zo,"layers",this,null,e,null,n+1),this.N(),this.Ya(),this},_.Ww=function(e,t){dh(this,e,t),e.Xe(this);var n=this.Wa,i=n.indexOf(e);0<=i&&(n.remove(e),this.cc!==null&&this.cb(os,"layers",this,e,null,i,null));var r=n.count,o;for(o=0;o<r;o++)if(n.M(o)===t){n.Gb(o,e);break}return this.cc!==null&&this.cb(zo,"layers",this,null,e,null,o),this.N(),0>i&&this.Ya(),this},_.Cy=function(e,t){dh(this,e,t),e.Xe(this);var n=this.Wa,i=n.indexOf(e);0<=i&&(n.remove(e),this.cc!==null&&this.cb(os,"layers",this,e,null,i,null));var r=n.count,o;for(o=0;o<r;o++)if(n.M(o)===t){n.Gb(o+1,e);break}return this.cc!==null&&this.cb(zo,"layers",this,null,e,null,o+1),this.N(),0>i&&this.Ya(),this},_.kA=function(e){if(e.diagram!==this&&ut("Cannot remove a Layer from another Diagram: "+e+" of "+e.diagram),e.name!==""){var t=this.Wa,n=t.indexOf(e);if(t.remove(e)){for(t=e.Pa.copy().iterator;t.next();){var i=t.value,r=i.layerName;r!==e.name?i.layerName=r:i.layerName=""}this.cc!==null&&this.cb(os,"layers",this,e,null,n,null),this.N(),this.Ya()}}},_.Qj=function(e){for(var t=this.layers;t.next();){var n=t.value;if(n.name===e)return n}return null},_.Yw=function(e){return this.pf===null&&(this.pf=new Xt),this.pf.add(e),this.model.Pe(e),this},_.mA=function(e){this.pf!==null&&(this.pf.remove(e),this.pf.count===0&&(this.pf=null)),this.model.ik(e)},_.Pe=function(e){return this.zg===null&&(this.zg=new Xt),this.zg.add(e),this},_.ik=function(e){this.zg!==null&&(this.zg.remove(e),this.zg.count===0&&(this.zg=null))},_.ds=function(e){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(e),e.change!==sa&&(this.isModified=!0),this.zg!==null)for(var t=this.zg,n=t.length,i=0;i<n;i++)t.M(i)(e)},_.cb=function(e,t,n,i,r,o,s){o===void 0&&(o=null),s===void 0&&(s=null);var l=new uo;l.diagram=this,l.change=e,l.propertyName=t,l.object=n,l.oldValue=i,l.oldParam=o,l.newValue=r,l.newParam=s,this.ds(l)},_.g=function(e,t,n,i,r){this.cb(io,e,this,t,n,i,r)},Z.prototype.changeState=function(e,t){if(e!==null&&e.diagram===this){var n=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var i=e.change;if(i===io){var r=e.object;if(Mo(r,e.propertyName,e.I(t)),r instanceof nt){var o=r.part;o!==null&&o.Wb()}this.isModified=!0}else if(i===zo){var s=e.object,l=e.newParam,u=e.newValue;if(s instanceof wn)if(typeof l=="number"&&u instanceof nt){t?s.pc(l):s.Gb(l,u);var f=s.part;f!==null&&f.Wb()}else typeof l=="number"&&u instanceof _s&&(u.isRow?by(s,l,t?void 0:u):xy(s,l,t?void 0:u));else if(s instanceof g){var p=e.oldParam===!0;typeof l=="number"&&u instanceof Ei&&(t?(u.isSelected=!1,u.isHighlighted=!1,u.Wb(),s.pc(p?l:-1,u,p)):s.oi(l,u,p))}else s instanceof Z?typeof l=="number"&&u instanceof g&&(t?this.Wa.mb(l):(u.Xe(this),this.Wa.Gb(l,u))):ut("unknown ChangedEvent.Insert object: "+e.toString());this.isModified=!0}else if(i===os){var x=e.object,N=e.oldParam,O=e.oldValue;if(x instanceof wn)typeof N=="number"&&O instanceof nt?t?x.Gb(N,O):x.pc(N):typeof N=="number"&&O instanceof _s&&(O.isRow?by(x,N,t?O:void 0):xy(x,N,t?O:void 0));else if(x instanceof g){var F=e.newParam===!0;typeof N=="number"&&O instanceof Ei&&(t?0>x.Pa.indexOf(O)&&x.oi(N,O,F):(O.isSelected=!1,O.isHighlighted=!1,O.Wb(),x.pc(F?N:-1,O,F)))}else x instanceof Z?typeof N=="number"&&O instanceof g&&(t?(O.Xe(this),this.Wa.Gb(N,O)):this.Wa.mb(N)):ut("unknown ChangedEvent.Remove object: "+e.toString());this.isModified=!0}else i!==sa&&ut("unknown ChangedEvent: "+e.toString())}finally{this.skipsModelSourceBindings=n}}},Z.prototype.Ea=function(e){return this.undoManager.Ea(e)},Z.prototype.eb=function(e){return this.undoManager.eb(e)},Z.prototype.Kf=function(){return this.undoManager.Kf()},Z.prototype.commit=function(e,t){t===void 0&&(t="");var n=this.skipsUndoManager;t===null&&(this.skipsUndoManager=!0,t=""),this.undoManager.Ea(t);var i=!1;try{e(this),i=!0}finally{i?this.undoManager.eb(t):this.undoManager.Kf(),this.skipsUndoManager=n}},Z.prototype.updateAllTargetBindings=function(e){this.partManager.updateAllTargetBindings(e)},Z.prototype.rp=function(){this.partManager.rp()};function np(e,t,n){var i=e.animationManager;if(e.vb||e.ld)e.Ca=n,Nc(e),e.N(),e.Ee=!0,i.zb&&($s(i)||i.ce.add(i.H,"scale",t,e.Ca));else if(e.ta===null)e.Ca=n,Nc(e);else{e.vb=!0;var r=e.viewportBounds.copy(),o=e.Aa,s=e.ya,l=e.zoomPoint.x,u=e.zoomPoint.y,f=e.contentAlignment;isNaN(l)&&(f.$c()?f.Hf(Tl)?l=0:f.Hf(ks)&&(l=o-1):l=f.sb()?f.x*(o-1):o/2),isNaN(u)&&(f.$c()?f.Hf(ll)?u=0:f.Hf(fa)&&(u=s-1):u=f.sb()?f.y*(s-1):s/2),e.scaleComputation===null||e.animationManager.defaultAnimation.isAnimating||(n=e.scaleComputation(e,n)),n<e.minScale&&(n=e.minScale),n>e.maxScale&&(n=e.maxScale),o=ce.allocAt(e.pa.x+l/t-l/n,e.pa.y+u/t-u/n),e.position=o,ce.free(o),e.Ca=n,Nc(e),e.vb=!1,e.onViewportBoundsChanged(r,e.viewportBounds,t,!1),Io(e,!1),i.zb&&($s(i)||i.ce.add(i.H,"scale",t,e.Ca))}}Z.prototype.onViewportBoundsChanged=function(e,t,n,i){if(!e.D(t)){i===void 0&&(i=!1),i||(this.Ee=!0),this.vd=!0;var r=this.layout;r===null||!r.isViewportSized||this.autoScale!==il||e.width===t.width&&e.height===t.height||r.C(),r=this.currentTool,this.Vk===!0&&r instanceof ao&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Vu(r,this)),this.vb||this.invalidateViewport(e,t),Tc(this),this.fc.scale=n,this.fc.position.x=e.x,this.fc.position.y=e.y,this.fc.bounds.assign(e),this.fc.canvasSize.width=Math.round(e.width*n),this.fc.canvasSize.height=Math.round(e.height*n),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=i,this.R("ViewportBoundsChanged",this.fc,e),this.isVirtualized&&this.links.each(function(o){o.isAvoiding&&o.actualBounds.Yc(t)&&o.bb()})}};function Tc(e,t){var n=e.fe;if(n!==null&&n.visible){for(var i=mi.alloc(),r=1,o=1,s=n.O.s,l=s.length,u=0;u<l;u++){var f=s[u],p=Math.abs(f.interval);2>p||(Cg(f.figure)?o=o*p/Ke.vx(o,p):r=r*p/Ke.vx(r,p))}if(s=n.gridCellSize,i.h(o*s.width,r*s.height),t!==void 0)r=t.width,o=t.height,e=t.x,s=t.y;else{if(t=Ht.alloc(),e=e.viewportBounds,t.h(e.x,e.y,e.width,e.height),!t.w()){Ht.free(t);return}r=t.width,o=t.height,e=t.x,s=t.y,Ht.free(t)}n.width=r+2*i.width,n.height=o+2*i.height,t=ce.alloc(),Ke.No(e,s,0,0,i.width,i.height,t),t.offset(-i.width,-i.height),mi.free(i),n.part.location=t,ce.free(t)}}Z.prototype.clearSelection=function(e){e===void 0&&(e=!1);var t=this.selection;if(t.count!==0){e||this.R("ChangingSelection",t);for(var n=t.Fa(),i=n.length,r=0;r<i;r++)n[r].isSelected=!1;t.ka(),t.clear(),t.freeze(),e||this.R("ChangedSelection",t)}},Z.prototype.select=function(e){e!==null&&e.diagram===this&&(!e.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),e.isSelected=!0,this.R("ChangedSelection",this.selection))},Z.prototype.rA=function(e){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),_n(e))for(var t=e.length,n=0;n<t;n++){var i=e[n];i instanceof Ei||ut("Diagram.selectCollection given something that is not a Part: "+i),i.isSelected=!0}else for(e=e.iterator;e.next();)t=e.value,t instanceof Ei||ut("Diagram.selectCollection given something that is not a Part: "+t),t.isSelected=!0;this.R("ChangedSelection",this.selection)},Z.prototype.clearHighlighteds=function(){var e=this.highlighteds;if(0<e.count){for(var t=e.Fa(),n=t.length,i=0;i<n;i++)t[i].isHighlighted=!1;e.ka(),e.clear(),e.freeze()}},_=Z.prototype,_.Iz=function(e){e!==null&&e.diagram===this&&(!e.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),e.isHighlighted=!0)},_.Jz=function(e){e=new Yt().addAll(e);for(var t=this.highlighteds.copy().hp(e).iterator;t.next();)t.value.isHighlighted=!1;for(e=e.iterator;e.next();)t=e.value,t instanceof Ei||ut("Diagram.highlightCollection given something that is not a Part: "+t),t.isHighlighted=!0},_.scroll=function(e,t,n){n===void 0&&(n=1);var i=t==="up"||t==="down",r=0,o=ce.alloc();if(e==="pixel")r=n;else if(e==="line")r=n*(i?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(e==="page")e=i?this.viewportBounds.height:this.viewportBounds.width,e*=this.scale,e!==0&&(r=n*Math.max(e-(i?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(e==="document"){r=this.documentBounds,n=this.viewportBounds,t==="up"?this.position=o.h(n.x,r.y):t==="left"?this.position=o.h(r.x,n.y):t==="down"?this.position=o.h(n.x,r.bottom-n.height):t==="right"&&(this.position=o.h(r.right-n.width,n.y)),ce.free(o);return}ut("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+e)}r/=this.scale,n=this.position,t==="up"?this.position=o.h(n.x,n.y-r):t==="down"?this.position=o.h(n.x,n.y+r):t==="left"?this.position=o.h(n.x-r,n.y):t==="right"?this.position=o.h(n.x+r,n.y):ut("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+t),ce.free(o)},_.tv=function(e){var t=this.viewportBounds;t.Re(e)||(e=e.center,e.x-=t.width/2,e.y-=t.height/2,this.position=e)},_.es=function(e){var t=this.viewportBounds;e=e.center,e.x-=t.width/2,e.y-=t.height/2,this.position=e},_.op=function(e){var t=this.Ab;t.reset(),this.Ca!==1&&t.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&t.translate(-n.x,-n.y),e.copy().transform(this.Ab)},_.zA=function(e){var t=this.Ab,n=e.x,i=e.y,r=n+e.width,o=i+e.height,s=t.m11,l=t.m12,u=t.m21,f=t.m22,p=t.dx,x=t.dy,N=n*s+i*u+p;t=n*l+i*f+x;var O=r*s+i*u+p;return e=r*l+i*f+x,i=n*s+o*u+p,n=n*l+o*f+x,s=r*s+o*u+p,r=r*l+o*f+x,o=Math.min(N,O),N=Math.max(N,O),O=Math.min(t,e),t=Math.max(t,e),o=Math.min(o,i),N=Math.max(N,i),O=Math.min(O,n),t=Math.max(t,n),o=Math.min(o,s),N=Math.max(N,s),O=Math.min(O,r),t=Math.max(t,r),new Ht(o,O,N-o,t-O)},_.Ps=function(e){var t=this.Ab;t.reset(),this.Ca!==1&&t.scale(this.Ca);var n=this.pa;return(n.x!==0||n.y!==0)&&isFinite(n.x)&&isFinite(n.y)&&t.translate(-n.x,-n.y),zi(e.copy(),this.Ab)};function d0(e){var t=e.isModified;e.Tw!==t&&(e.Tw=t,e.R("Modified"))}function ip(e){return e=pf.get(e),e!==null?new e:new Vr}Z.prototype.doModelChanged=function(e){var t=this;if(e.model===this.model){var n=e.change,i=e.propertyName;if(n===sa&&i[0]==="S")if(i==="StartingFirstTransaction"){var r=this;e=this.toolManager,e.mouseDownTools.each(function(u){return u.diagram=r}),e.mouseMoveTools.each(function(u){return u.diagram=r}),e.mouseUpTools.each(function(u){return u.diagram=r}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else i==="StartingUndo"||i==="StartingRedo"?(e=this.animationManager,e.defaultAnimation.isAnimating&&!this.skipsUndoManager&&e.Cc(),this.R("ChangingSelection",this.selection)):i==="StartedTransaction"&&(e=this.animationManager,e.defaultAnimation.isAnimating&&!this.skipsUndoManager&&e.Cc());else if(this.aa){this.aa=!1;try{if(e.modelChange===""&&n===sa){(i==="FinishedUndo"||i==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),Ps(this));var o=this.animationManager;i==="RolledBackTransaction"&&o.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||ms(o),i==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),i!=="CommittedTransaction"&&i!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){t.isModified=!1},1);var s=e.isTransactionFinished;if(s&&(d0(this),this.As.clear(),Uo(this.animationManager)),!this.Rt&&s&&this.lastInput.targetDiagram){this.Rt=!0;var l=this;ni(function(){l.currentTool.standardMouseOver(),l.Rt=!1},10)}}}finally{this.aa=!0}}}};function hd(e,t){t=t.O.s;for(var n=t.length,i=0;i<n;i++)zh(e,t[i])}function zh(e,t){if(t instanceof Fl){var n=t.element;if(n!==null&&n instanceof HTMLImageElement){n.Bg instanceof Yt&&n.Bg.add(e);var i=t.Eg;if(i!==null&&i.sq===!0&&t.diagram!==null&&t.diagram.Xn.add(t),n.hn)if(n=n.getAttribute("src")||"",i=e.Og.I(n),i===null)i=[],i.push(t),e.Og.add(n,i);else{for(e=0;e<i.length;e++)if(i[e]===t)return;i.push(t)}}}}function rp(e,t){if(t instanceof Fl){var n=t.element;if(n!==null&&n instanceof HTMLImageElement&&n.hn){var i=n.getAttribute("src")||"",r=e.Og.I(i);if(r!==null){for(var o=0;o<r.length;o++)if(r[o]===t){r.splice(o,1),r.length===0&&(e.Og.remove(i),n.Fq&&n.removeEventListener("load",n.Fq),n.Yp&&n.removeEventListener("error",n.Yp),delete n.Fq,delete n.Yp,n.Bg instanceof Yt&&n.Bg.remove(e),Af(i));break}}}}}Z.prototype.Wd=function(){this.partManager.Wd()},Z.prototype.Aj=function(e,t){this.Yd.Aj(e,t)},Z.prototype.Cj=function(e,t){this.Yd.Cj(e,t)},Z.prototype.findPartForKey=function(e){return this.partManager.findPartForKey(e)},Z.prototype.Vb=function(e){return this.partManager.Vb(e)},Z.prototype.findLinkForKey=function(e){return this.partManager.findLinkForKey(e)},_=Z.prototype,_.Lc=function(e){return this.partManager.Lc(e)},_.ii=function(e){return this.partManager.ii(e)},_.Kc=function(e){return this.partManager.Kc(e)},_.ms=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.partManager.ms.apply(this.partManager,t instanceof Array?t:Rr(_i(t)))},_.ls=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];return this.partManager.ls.apply(this.partManager,t instanceof Array?t:Rr(_i(t)))};function Nc(e){var t=e.pa,n=e.Ca;e.Rw.h(t.x,t.y,Math.max(e.Aa,0)/n,Math.max(e.ya,0)/n),e.vd=!0}function op(e,t){e.Zi=!1;var n=e.Sp;n.D(t)||(n=n.copy(),e.Sp.assign(t),Io(e,!1),e.R("DocumentBoundsChanged",void 0,n),e.Ee=!0,e.N())}_.Va=function(){if(this.Zi){var e=Ht.alloc();op(this,this.computeBounds(e)),Ht.free(e)}},_.rz=function(){for(var e=new Yt,t=this.nodes;t.next();){var n=t.value;n.isTopLevel&&e.add(n)}for(t=this.links;t.next();)n=t.value,n.isTopLevel&&e.add(n);return e.iterator},_.qz=function(){return this.ai.iterator},_.Uz=function(e){Ps(this),e&&uf(this,!0),this.ld?sp(this,!1):(this.Jk=!0,ua(this))};function uf(e,t){for(var n=e.ai.iterator;n.next();)f0(e,n.value,t);e.layout&&(t?e.layout.isValidLayout=!1:e.layout.C())}function f0(e,t,n){if(t!==null){for(var i=t.gl.iterator;i.next();)f0(e,i.value,n);t.layout!==null&&(n?t.layout.isValidLayout=!1:t.layout.C())}}function sp(e,t){if(e.xh&&!e.lt){var n=e.aa;e.aa=!0;var i=e.undoManager.transactionLevel,r=e.layout,o=e.animationManager;try{i===0&&(e.undoManager.isInternalTransaction=!0,e.Ea("Layout")),1>=i&&!o.defaultAnimation.isAnimating&&!o.zb&&(t||Rs(o,"Layout")),e.xh=!1;for(var s=e.ai.iterator;s.next();)ap(e,s.value,t,i);r.isValidLayout||(!t||r.isRealtime||r.isRealtime===null||i===0?(r.doLayout(e),Ps(e),r.isValidLayout=!0):e.xh=!0)}finally{t=e.undoManager.isInternalTransaction,i===0&&(e.eb("Layout"),e.undoManager.isInternalTransaction=!1),!t||i!==0&&i!==1||ms(o),e.aa=n}}}function ap(e,t,n,i){if(t!==null){for(var r=t.gl.iterator;r.next();)ap(e,r.value,n,i);r=t.layout,r===null||r.isValidLayout||(!n||r.isRealtime||i===0?(t.rh=!t.location.w(),r.doLayout(t),t.C(32),jo(e,t),r.isValidLayout=!0):e.xh=!0)}}_.yz=function(){for(var e=new Xt,t=this.nodes;t.next();){var n=t.value;n.isTopLevel&&n.kh()===null&&e.add(n)}return e.iterator};function cg(e){function t(r){var o=r.toLowerCase(),s=new Xt;n.add(r,s),n.add(o,s),i.add(r,r),i.add(o,r)}var n=new ii,i=new ii;t("InitialAnimationStarting"),t("AnimationStarting"),t("AnimationFinished"),t("BackgroundSingleClicked"),t("BackgroundDoubleClicked"),t("BackgroundContextClicked"),t("ClipboardChanged"),t("ClipboardPasted"),t("DocumentBoundsChanged"),t("ExternalObjectsDropped"),t("GainedFocus"),t("InitialLayoutCompleted"),t("LayoutCompleted"),t("LinkDrawn"),t("LinkRelinked"),t("LinkReshaped"),t("LostFocus"),t("Modified"),t("ObjectSingleClicked"),t("ObjectDoubleClicked"),t("ObjectContextClicked"),t("PartCreated"),t("PartResized"),t("PartRotated"),t("SelectionMoved"),t("SelectionCopied"),t("SelectionDeleting"),t("SelectionDeleted"),t("SelectionGrouped"),t("SelectionUngrouped"),t("ChangingSelection"),t("ChangedSelection"),t("SubGraphCollapsed"),t("SubGraphExpanded"),t("TextEdited"),t("TreeCollapsed"),t("TreeExpanded"),t("ViewportBoundsChanged"),t("InvalidateDraw"),e.iw=n,e.hw=i}function p0(e,t){var n=e.hw.I(t);return n!==null?n:e.hw.I(t.toLowerCase())}function cf(e,t){var n=e.iw.I(t);if(n!==null||(n=e.iw.I(t.toLowerCase()),n!==null))return n;ut("Unknown DiagramEvent name: "+t)}_.Bj=function(e,t){return e=cf(this,e),e!==null&&e.add(t),this},_.am=function(e,t){e=cf(this,e),e!==null&&e.remove(t)},_.R=function(e,t,n){var i=cf(this,e),r=new uu;if(r.diagram=this,e=p0(this,e),e!==null&&(r.name=e),t!==void 0&&(r.subject=t),n!==void 0&&(r.parameter=n),t=i.length,t===1)i.M(0)(r);else if(t!==0)for(i=i.Fa(),n=0;n<t;n++)(0,i[n])(r)};function hf(e){if(e.animationManager.isTicking)return!1;var t=e.currentTool;return t===e.toolManager.findTool("Dragging")?!e.Mr||t.isComplexRoutingRealtime:!0}_.Yj=function(e,t){return df(this,!1,null,t||null).Yj(e.x,e.y,e.width,e.height)},Z.prototype.computeOccupiedArea=function(e){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Vo(this,e):e.assign(this.documentBounds)};function df(e,t,n,i){var r=e.Xh;if(r===null&&(e.Xh=r=new Fp(e.avoidanceCellSize)),r.vs||r.group!==n||r.Yx!==i){if(r.Hx=Math.max(r.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.width)),r.Ix=Math.max(r.Os+1,Math.floor(e.avoidanceLimit/e.avoidanceCellSize.height)),n!==null&&(n=m0(e,n)),n===null){t=Ht.alloc(),e.computeOccupiedArea(t),t.Bc(100,100),r.initialize(t);for(var o=e.nodes;o.next();){var s=o.value,l=s.layer;l!==null&&l.visible&&!l.isTemporary&&ff(e,s,i,t)}Ht.free(t)}else{for(0<n.memberParts.count&&(t=e.computePartsBounds(n.memberParts,!1),t.Bc(20,20),r.initialize(t)),t=Ht.alloc(),o=n.memberParts;o.next();)s=o.value,s instanceof Vn&&ff(e,s,i,t);Ht.free(t)}r.group=n,r.Yx=i,r.vs=!1}else t&&f1(r);return r}function m0(e,t){return t.avoidable&&!t.isLinkLabel?t:t.containingGroup!==null?m0(e,t.containingGroup):null}function ff(e,t,n,i){if(t!==n&&t.isVisible()){if(t.avoidable&&!t.isLinkLabel){t=t.getAvoidableRect(i),e=e.Xh;var r=t.x,o=t.y;if(Rf(e,r,o))for(n=(o-e.Od)/e.sc|0,i=Math.min((r+t.width-e.Nd)/e.rc|0,e.di),t=Math.min((o+t.height-e.Od)/e.sc|0,e.ei),r=(r-e.Nd)/e.rc|0;r<=i;r++)if(o=e.ac[r],o.fill)o.fill(Ch,n,t+1);else for(var s=n;s<=t;s++)o[s]=Ch}else if(t instanceof Xi)for(t=t.memberParts;t.next();)r=t.value,r instanceof Vn&&ff(e,r,n,i)}}function fh(e,t){e.Xh===null||e.Xh.vs||t!==void 0&&(!t.avoidable||t.isLinkLabel)||(e.Xh.vs=!0)}Z.prototype.gs=function(e){this.wp.assign(e),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():lp(this)};function lp(e){e.vk===-1&&(e.vk=ni(function(){if(e.vk!==-1&&(e.ug(),e.lastInput.event!==null)){var t=e.computeAutoScrollPosition(e.wp);t.Xa(e.position)||(e.position=t,e.lastInput.documentPoint=e.Ps(e.wp),e.doMouseMove(),e.Zi=!0,t=Ht.alloc(),e.computeBounds(t),t.ed(e.documentBounds),op(e,t),Ht.free(t),e.Fc=!0,e.bd(),lp(e))}},e.vp))}Z.prototype.ug=function(){this.vk!==-1&&(je.clearTimeout(this.vk),this.vk=-1)},Z.prototype.computeAutoScrollPosition=function(e){var t=this.position,n=this.xp;if(0>=n.top&&0>=n.left&&0>=n.right&&0>=n.bottom)return t;var i=this.viewportBounds,r=this.scale;i=Ht.allocAt(0,0,i.width*r,i.height*r);var o=ce.allocAt(0,0);if(e.x>=i.x&&e.x<i.x+n.left&&this.allowHorizontalScroll){var s=Math.max(this.scrollHorizontalLineChange,1);s|=0,o.x-=s,e.x<i.x+n.left/2&&(o.x-=s),e.x<i.x+n.left/4&&(o.x-=4*s)}else e.x<=i.x+i.width&&e.x>i.x+i.width-n.right&&this.allowHorizontalScroll&&(s=Math.max(this.scrollHorizontalLineChange,1),s|=0,o.x+=s,e.x>i.x+i.width-n.right/2&&(o.x+=s),e.x>i.x+i.width-n.right/4&&(o.x+=4*s));return e.y>=i.y&&e.y<i.y+n.top&&this.allowVerticalScroll?(s=Math.max(this.scrollVerticalLineChange,1),s|=0,o.y-=s,e.y<i.y+n.top/2&&(o.y-=s),e.y<i.y+n.top/4&&(o.y-=4*s)):e.y<=i.y+i.height&&e.y>i.y+i.height-n.bottom&&this.allowVerticalScroll&&(s=Math.max(this.scrollVerticalLineChange,1),s|=0,o.y+=s,e.y>i.y+i.height-n.bottom/2&&(o.y+=s),e.y>i.y+i.height-n.bottom/4&&(o.y+=4*s)),o.Xa(br)||(t=new ce(t.x+o.x/r,t.y+o.y/r)),Ht.free(i),ce.free(o),t},_=Z.prototype,_.Cs=function(){return null},_.av=function(){return null},_.bs=function(e,t){this.pj.add(e,t)},_.Fu=function(e){(this.Pw=e)||this.nodes.each(function(t){t instanceof Xi&&(t.$p=null)})};function Dd(e,t,n){function i(){var p=+new Date;for(o=!0,s.reset();s.next();)if(!s.value[0].al){o=!1;break}o||p-f>u?t(n,r,l):je.requestAnimationFrame(i)}for(var r=n.callback,o=!0,s=e.Og.iterator;s.next();)if(!s.value[0].al){o=!1;break}if(typeof r!="function"||o)return t(n,r,e);var l=e,u=n.callbackTimeout||300,f=+new Date;return je.requestAnimationFrame(function(){i()}),null}_.Wz=function(e){return ds?(e===void 0&&(e={}),e.returnType="Image",this.Jx(e)):null},_.Jx=function(e){return e===void 0&&(e={}),Dd(this,this.Xz,e)},_.Xz=function(e,t,n){var i=g0(n,e,"canvas",null);if(i===null)return null;n=i.Z.canvas;var r=null;if(n!==null)switch(r=e.returnType,r===void 0?r="string":r=r.toLowerCase(),r){case pd+"data":r=i.getImageData(0,0,n.width,n.height);break;case pd:i=(e.document||document).createElement("img"),i.src=n.toDataURL(e.type,e.details),r=i;break;case"blob":return typeof t!="function"&&ut('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof n.toBlob=="function"?(n.toBlob(t,e.type,e.details),"toBlob"):(t(null),null);default:r=n.toDataURL(e.type,e.details)}return typeof t=="function"?(t(r),null):r};function g0(e,t,n,i){if(e.animationManager.Cc(),e.bd(),e.ta===null)return null;typeof t!="object"&&ut("properties argument must be an Object.");var r=t.size||null,o=t.scale||null;t.scale!==void 0&&isNaN(t.scale)&&(o="NaN");var s=t.maxSize;t.maxSize===void 0&&(s=n==="SVG"?new mi(1/0,1/0):new mi(2e3,2e3));var l=t.position||null,u=t.parts||null,f=t.padding===void 0?1:t.padding,p=t.background||null,x=t.omitTemporary;x===void 0&&(x=!0);var N=t.document||document,O=t.elementFinished||null,F=t.showTemporary;F===void 0&&(F=!x),t=t.showGrid,t===void 0&&(t=F),r!==null&&isNaN(r.width)&&isNaN(r.height)&&(r=null),typeof f=="number"?f=new vi(f):f instanceof vi||ut("MakeImage padding must be a Margin or a number."),f.left=Math.max(f.left,0),f.right=Math.max(f.right,0),f.top=Math.max(f.top,0),f.bottom=Math.max(f.bottom,0),e.ib.Vc(!0),x=new zu(null,N,void 0,!0);var K=x.context;if(!(r||o||u||l))return x.width=e.Aa+Math.ceil(f.left+f.right),x.height=e.ya+Math.ceil(f.top+f.bottom),n==="SVG"?i===null?null:(i.resize(x.width,x.height,x.width,x.height),i.ownerDocument=N,i.hs=O,hs(e,i.context,f,new mi(x.width,x.height),e.Ca,e.pa,u,p,F,t),i.context):(e.Xm=!1,hs(e,K,f,new mi(x.width,x.height),e.Ca,e.pa,u,p,F,t),e.Xm=!0,x.context);var ye=e.Pp,ae=e.documentBounds.copy();if(ae.Fv(e.yb),F)for(var Oe=e.Wa.s,Fe=Oe.length,He=0;He<Fe;He++){var qe=Oe[He];if(qe.visible&&qe.isTemporary){qe=qe.Pa.s;for(var bt=qe.length,jn=0;jn<bt;jn++){var oi=qe[jn];oi.isInDocumentBounds&&oi.isVisible()&&(oi=oi.actualBounds,oi.w()&&ae.ed(oi))}}}if(Oe=new ce(ae.x,ae.y),u!==null){for(Fe=new Ht(0,0,0,0),He=!0,qe=u.iterator,qe.reset();qe.next();)bt=qe.value,bt instanceof Ei&&(jn=bt.layer,jn!==null&&!jn.visible||jn!==null&&!F&&jn.isTemporary||!bt.isVisible()||(bt=bt.actualBounds,bt.w()&&(He?(He=!1,Fe.assign(bt)):Fe.ed(bt))));ae.width=Fe.width,ae.height=Fe.height,Oe.x=Fe.x,Oe.y=Fe.y}return l!==null&&l.w()&&(Oe=l,o||(o=ye)),Fe=l=0,f!==null&&(l=f.left+f.right,Fe=f.top+f.bottom),He=qe=0,r!==null&&(qe=r.width,He=r.height,isFinite(qe)&&(qe=Math.max(0,qe-l)),isFinite(He)&&(He=Math.max(0,He-Fe))),r!==null&&o!==null?(o==="NaN"&&(o=ye),r.w()?(r=qe,ae=He):isNaN(He)?(r=qe,ae=ae.height*o):(r=ae.width*o,ae=He)):r!==null?r.w()?(o=Math.min(qe/ae.width,He/ae.height),r=qe,ae=He):isNaN(He)?(o=qe/ae.width,r=qe,ae=ae.height*o):(o=He/ae.height,r=ae.width*o,ae=He):o!==null?o==="NaN"&&s.w()?(o=Math.min((s.width-l)/ae.width,(s.height-Fe)/ae.height),o>ye?(o=ye,r=ae.width,ae=ae.height):(r=s.width,ae=s.height)):(r=ae.width*o,ae=ae.height*o):(o=ye,r=ae.width,ae=ae.height),f!==null?(r+=l,ae+=Fe):f=new vi(0),s!==null&&(ye=s.width,s=s.height,isNaN(ye)&&(ye=2e3),isNaN(s)&&(s=2e3),isFinite(ye)&&(r=Math.min(r,ye)),isFinite(s)&&(ae=Math.min(ae,s))),x.width=Math.ceil(r),x.height=Math.ceil(ae),n==="SVG"?i===null?null:(i.resize(x.width,x.height,x.width,x.height),i.ownerDocument=N,i.hs=O,hs(e,i.context,f,new mi(Math.ceil(r),Math.ceil(ae)),o,Oe,u,p,F,t),i.context):(e.Xm=!1,hs(e,K,f,new mi(Math.ceil(r),Math.ceil(ae)),o,Oe,u,p,F,t),e.Xm=!0,x.context)}at.Object.defineProperties(Z.prototype,{renderer:{get:function(){return this.nl},set:function(e){this instanceof w||(e===""&&(e="default"),e=e.toLowerCase(),e!==this.nl&&(this.nl=e,e==="default"||e==="canvas"?(e=this.pj.get("svg"),e!==null&&e.Oa.remove(),this.ta&&(this.ib=this.ta.context)):e==="svg"?(this.pj.contains("svg")?e=this.pj.get("svg"):(e=new Ac(this,je.document),this.bs("svg",e)),this.div!==null&&this.div.appendChild(e.Oa),this.ib=e.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))):e!=="debug"||this.pj.contains("SVG")||(e=new Ac(this,je.document),this.bs("SVG",e),e.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(e.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(e){if(this.Ka!==e){var t=this.Ka;t!==null?(t.H=void 0,t.goDiagram=void 0,t.go=void 0,t.innerHTML="",this.ta!==null&&(t=this.ta.Oa,this.removeEventListener(t,"pointermove",this.dk,!1),this.removeEventListener(t,"pointerdown",this.ui,!1),this.removeEventListener(t,"pointerup",this.fk,!1),this.removeEventListener(t,"pointerout",this.ek,!1),this.removeEventListener(t,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),t=this.toolManager,t!==null&&(t.mouseDownTools.each(function(n){n.cancelWaitAfter()}),t.mouseMoveTools.each(function(n){n.cancelWaitAfter()}),t.mouseUpTools.each(function(n){n.cancelWaitAfter()})),t.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(je,"resize",this.Ov,!1),this.removeEventListener(je,"wheel",this.$j,!0),lt===this&&(lt=null)):this.ui===null&&(this.hf=!1),this.Ka=null,e!==null&&((t=e.H)&&(t.div=null),wi(this,e),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(e){this.nt!==e&&(this.nt=e,e!==null&&(this.Vt=e.fromPort,this.Wt=e.toPort))}},Mx:{get:function(){return this.Vt},set:function(e){this.Vt=e}},Nx:{get:function(){return this.Wt},set:function(e){this.Wt=e}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e,this.cc.skipsUndoManager=e}},delaysLayout:{get:function(){return this.lt},set:function(e){this.lt=e}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&rn(e,"0 <= value <= 1",Z,"opacity"),this.pb=e,this.g("opacity",t,e),this.N())}},validCycle:{get:function(){return this.wu},set:function(e){var t=this.wu;t!==e&&(this.wu=e,this.g("validCycle",t,e))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var e=this.cc;return e===null?!1:e.isReadOnly},set:function(e){var t=this.cc;t!==null&&(t.isReadOnly=e)}},isReadOnly:{get:function(){return this.Gg},set:function(e){var t=this.Gg;t!==e&&(this.Gg=e,this.g("isReadOnly",t,e))}},isEnabled:{get:function(){return this.Jd},set:function(e){var t=this.Jd;t!==e&&(this.Jd=e,this.g("isEnabled",t,e))}},allowClipboard:{get:function(){return this.Us},set:function(e){var t=this.Us;t!==e&&(this.Us=e,this.g("allowClipboard",t,e))}},allowCopy:{get:function(){return this.Fi},set:function(e){var t=this.Fi;t!==e&&(this.Fi=e,this.g("allowCopy",t,e))}},allowDelete:{get:function(){return this.Gi},set:function(e){var t=this.Gi;t!==e&&(this.Gi=e,this.g("allowDelete",t,e))}},allowDragOut:{get:function(){return this.Vs},set:function(e){var t=this.Vs;t!==e&&(this.Vs=e,this.g("allowDragOut",t,e))}},allowDrop:{get:function(){return this.Ws},set:function(e){var t=this.Ws;t!==e&&(this.Ws=e,this.g("allowDrop",t,e))}},allowTextEdit:{get:function(){return this.Pi},set:function(e){var t=this.Pi;t!==e&&(this.Pi=e,this.g("allowTextEdit",t,e))}},allowGroup:{get:function(){return this.Hi},set:function(e){var t=this.Hi;t!==e&&(this.Hi=e,this.g("allowGroup",t,e))}},allowUngroup:{get:function(){return this.Qi},set:function(e){var t=this.Qi;t!==e&&(this.Qi=e,this.g("allowUngroup",t,e))}},allowInsert:{get:function(){return this.Ys},set:function(e){var t=this.Ys;t!==e&&(this.Ys=e,this.g("allowInsert",t,e))}},allowLink:{get:function(){return this.Ii},set:function(e){var t=this.Ii;t!==e&&(this.Ii=e,this.g("allowLink",t,e))}},allowRelink:{get:function(){return this.Ki},set:function(e){var t=this.Ki;t!==e&&(this.Ki=e,this.g("allowRelink",t,e))}},allowMove:{get:function(){return this.Ji},set:function(e){var t=this.Ji;t!==e&&(this.Ji=e,this.g("allowMove",t,e))}},allowReshape:{get:function(){return this.Li},set:function(e){var t=this.Li;t!==e&&(this.Li=e,this.g("allowReshape",t,e))}},allowResize:{get:function(){return this.Mi},set:function(e){var t=this.Mi;t!==e&&(this.Mi=e,this.g("allowResize",t,e))}},allowRotate:{get:function(){return this.Ni},set:function(e){var t=this.Ni;t!==e&&(this.Ni=e,this.g("allowRotate",t,e))}},allowSelect:{get:function(){return this.Oi},set:function(e){var t=this.Oi;t!==e&&(this.Oi=e,this.g("allowSelect",t,e))}},allowUndo:{get:function(){return this.Zs},set:function(e){var t=this.Zs;t!==e&&(this.Zs=e,this.g("allowUndo",t,e))}},allowZoom:{get:function(){return this.at},set:function(e){var t=this.at;t!==e&&(this.at=e,this.g("allowZoom",t,e))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(e){var t=this.nn;t!==e&&(this.nn=e,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",t,e),Io(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(e){var t=this.mn;t!==e&&(this.mn=e,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",t,e),Io(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(e){var t=this.Xs;t!==e&&(this.Xs=e,this.g("allowHorizontalScroll",t,e),Io(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(e){var t=this.$s;t!==e&&(this.$s=e,this.g("allowVerticalScroll",t,e),Io(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(e){var t=this.iu;t!==e&&(0>e&&rn(e,">= 0",Z,"scrollHorizontalLineChange"),this.iu=e,this.g("scrollHorizontalLineChange",t,e))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(e){var t=this.mu;t!==e&&(0>e&&rn(e,">= 0",Z,"scrollVerticalLineChange"),this.mu=e,this.g("scrollVerticalLineChange",t,e))}},lastInput:{get:function(){return this.cj},set:function(e){this.cj=e}},previousInput:{get:function(){return this.Qg},set:function(e){this.Qg=e}},firstInput:{get:function(){return this.bq},set:function(e){this.bq=e}},currentCursor:{get:function(){return this.it},set:function(e){if(e===""&&(e=this.Op),this.it!==e){var t=this.ta,n=this.Ka;if(t!==null&&n!==null){this.it=e;var i=t.style.cursor;t.style.cursor=e,n.style.cursor=e,t.style.cursor===i&&(t.style.cursor="-webkit-"+e,n.style.cursor="-webkit-"+e,t.style.cursor===i&&(t.style.cursor="-moz-"+e,n.style.cursor="-moz-"+e,t.style.cursor===i&&(t.style.cursor=e,n.style.cursor=e)))}}}},defaultCursor:{get:function(){return this.Op},set:function(e){e===""&&(e="auto");var t=this.Op;t!==e&&(this.Op=e,this.g("defaultCursor",t,e))}},click:{get:function(){return this.zh},set:function(e){var t=this.zh;t!==e&&(this.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return this.Fh},set:function(e){var t=this.Fh;t!==e&&(this.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return this.Bh},set:function(e){var t=this.Bh;t!==e&&(this.Bh=e,this.g("contextClick",t,e))}},mouseOver:{get:function(){return this.Qh},set:function(e){var t=this.Qh;t!==e&&(this.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return this.Oh},set:function(e){var t=this.Oh;t!==e&&(this.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return this.Nh},set:function(e){var t=this.Nh;t!==e&&(this.Nh=e,this.g("mouseHold",t,e))}},mouseDragOver:{get:function(){return this.Qt},set:function(e){var t=this.Qt;t!==e&&(this.Qt=e,this.g("mouseDragOver",t,e))}},mouseDrop:{get:function(){return this.Lh},set:function(e){var t=this.Lh;t!==e&&(this.Lh=e,this.g("mouseDrop",t,e))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(e){var t=this.xt;t!==e&&(this.xt=e,this.g("handlesDragDropForTopLevelParts",t,e))}},mouseEnter:{get:function(){return this.Mh},set:function(e){var t=this.Mh;t!==e&&(this.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return this.Ph},set:function(e){var t=this.Ph;t!==e&&(this.Ph=e,this.g("mouseLeave",t,e))}},toolTip:{get:function(){return this.$h},set:function(e){var t=this.$h;t!==e&&(this.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return this.Ch},set:function(e){var t=this.Ch;t!==e&&(this.Ch=e,this.g("contextMenu",t,e))}},commandHandler:{get:function(){return this.nb},set:function(e){this.nb!==e&&(this.nb=e,e.Xe(this))}},toolManager:{get:function(){return this.te},set:function(e){this.te!==e&&(this.te=e,e.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(e){var t=this.ob;t!==e&&(this.ob=e,e.diagram=this,this.currentTool===t&&(this.currentTool=e))}},currentTool:{get:function(){return this.hb},set:function(e){var t=this.hb;t&&(t.isActive&&t.doDeactivate(),t.cancelWaitAfter(),t.doStop()),e===null&&(e=this.defaultTool),e!==null&&(this.hb=e,e.diagram=this,e.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(e){var t=this.Nt;if(t!==e)if(0<=e&&!isNaN(e)){if(this.Nt=e,this.g("maxSelectionCount",t,e),!this.undoManager.isUndoingRedoing&&(e=this.selection.count-e,0<e)){this.R("ChangingSelection",this.selection),t=this.selection.Fa();for(var n=0;n<e;n++)t[n].isSelected=!1;this.R("ChangedSelection",this.selection)}}else rn(e,">= 0",Z,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(e){var t=this.St;t!==e&&(this.St=e,this.g("nodeSelectionAdornmentTemplate",t,e))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(e){var t=this.wt;t!==e&&(this.wt=e,this.g("groupSelectionAdornmentTemplate",t,e))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(e){var t=this.Kt;t!==e&&(this.Kt=e,this.g("linkSelectionAdornmentTemplate",t,e))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var e=this.undoManager;return e.isEnabled?e.currentTransaction!==null?!0:this.rn&&this.Ce!==e.historyIndex:this.rn},set:function(e){if(this.rn!==e){this.rn=e;var t=this.undoManager;!e&&t.isEnabled&&(this.Ce=t.historyIndex),e||d0(this)}}},model:{get:function(){return this.cc},set:function(e){var t=this.cc;if(t!==e){this.currentTool.doCancel(),t&&t.undoManager!==e.undoManager&&t.undoManager.isInTransaction&&ut("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var n=On(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var i=this.vb;this.vb=!0,Rs(this.animationManager,"Model"),t&&(this.pf!==null&&this.pf.each(function(o){return t.ik(o)}),t.ik(this.Oc)),this.cc=e,this.partManager=ip(this.cc.type);for(var r=0;r<n.length;r++)this.add(n[r]);e.Pe(this.Hb),this.partManager.addAllModeledParts(),e.ik(this.Hb),e.Pe(this.Oc),this.pf!==null&&this.pf.each(function(o){return e.Pe(o)}),this.vb=i,this.Ya(),this.vb||this.N(),t&&e.undoManager.copyProperties(t.undoManager)}}},aa:{get:function(){return this.rw},set:function(e){this.rw=e}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(e){this.Iw=e}},Ns:{get:function(){return this.ou},set:function(e){this.ou=e}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(e){var t=this.Lg.I("");t!==e&&(this.Lg.add("",e),this.g("nodeTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(e){var t=this.Lg;t!==e&&(this.Lg=e,this.g("nodeTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(e){var t=this.Yi.I("");t!==e&&(this.Yi.add("",e),this.g("groupTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(e){var t=this.Yi;t!==e&&(this.Yi=e,this.g("groupTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(e){var t=this.Kh.I("");t!==e&&(this.Kh.add("",e),this.g("linkTemplate",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(e){var t=this.Kh;t!==e&&(this.Kh=e,this.g("linkTemplateMap",t,e),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(e){var t=this.ta;t!==null&&(t=t.Oa,t instanceof SVGElement||(e?(this.lastInput.bubbles=!1,this.removeEventListener(t,"pointermove",this.dk,!1),this.removeEventListener(t,"pointerdown",this.ui,!1),this.removeEventListener(t,"pointerup",this.fk,!1),this.removeEventListener(t,"pointerout",this.ek,!1),this.removeEventListener(t,"pointercancel",this.ck,!1),this.addEventListener(je,"pointermove",this.dk,!0),this.addEventListener(je,"pointerdown",this.ui,!0),this.addEventListener(je,"pointerup",this.fk,!0),this.addEventListener(je,"pointerout",this.ek,!0),this.addEventListener(je,"pointercancel",this.ck,!0),this.removeEventListener(t,"wheel",this.$j,!1),this.addEventListener(je,"wheel",this.$j,!0),this.addEventListener(je,"selectstart",this.preventDefault,!1)):(this.removeEventListener(je,"pointermove",this.dk,!0),this.removeEventListener(je,"pointerdown",this.ui,!0),this.removeEventListener(je,"pointerup",this.fk,!0),this.removeEventListener(je,"pointerout",this.ek,!0),this.removeEventListener(je,"pointercancel",this.ck,!0),this.addEventListener(t,"pointermove",this.dk,!1),this.addEventListener(t,"pointerdown",this.ui,!1),this.addEventListener(t,"pointerup",this.fk,!1),this.addEventListener(t,"pointerout",this.ek,!1),this.addEventListener(t,"pointercancel",this.ck,!1),this.removeEventListener(je,"wheel",this.$j,!0),this.removeEventListener(je,"selectstart",this.preventDefault,!1),this.addEventListener(t,"wheel",this.$j,!1)),this.qw=e))}},position:{get:function(){return this.pa},set:function(e){var t=ce.alloc().assign(this.pa);if(!t.D(e)){var n=this.viewportBounds.copy();this.pa.assign(e),js(this.animationManager,t,this.pa),this.vb||this.ta===null&&!this.wo.w()?Nc(this):(this.vb=!0,e=this.scale,ea(this,this.Sp,this.Aa/e,this.ya/e,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(n,this.viewportBounds,this.Ca,!1)}ce.free(t)}},initialPosition:{get:function(){return this.zt},set:function(e){this.zt.D(e)||(this.zt=e.J())}},initialScale:{get:function(){return this.At},set:function(e){this.At!==e&&(this.At=e)}},grid:{get:function(){return this.fe===null&&(this.fe=lo(this)),this.fe},set:function(e){var t=this.fe;if(t!==e){t===null&&(t=this.fe=lo(this)),e.type!==wn.Grid&&ut("Diagram.grid must be a Panel of type Panel.Grid");var n=t.panel;n!==null&&n.remove(t),this.fe=e,e.name="GRID",n!==null&&n.add(e),Tc(this),this.N(),this.g("grid",t,e)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(e){var t=this.viewSize;t.D(e)||(this.wo=e=e.J(),this.ya=this.Aa=0,e.w()?(this.Aa=e.width,this.ya=e.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Nc(this),this.Ya(),this.g("viewSize",t,e),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(e){var t=this.ut;t.D(e)||(e.width!==-1/0&&e.height!==1/0&&e.height!==-1/0||ut("fixedBounds width/height must not be Infinity"),this.ut=e=e.J(),this.Ya(),this.g("fixedBounds",t,e))}},scrollMargin:{get:function(){return this.rj},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.rj;t.D(e)||(this.rj=e=e.J(),this.g("scrollMargin",t,e),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(e){var t=this.sj;t!==e&&(this.sj=e,e===ph&&Io(this,!1),this.g("scrollMode",t,e),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(e){var t=this.nu;t!==e&&(this.nu=e,this.g("scrollsPageOnFocus",t,e))}},positionComputation:{get:function(){return this.Zt},set:function(e){var t=this.Zt;t!==e&&(this.Zt=e,Io(this,!1),this.g("positionComputation",t,e))}},scaleComputation:{get:function(){return this.fu},set:function(e){var t=this.fu;t!==e&&(this.fu=e,np(this,this.scale,this.scale),this.g("scaleComputation",t,e))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(e){var t=this.It;t!==e&&(this.It=e,this.g("isVirtualized",t,e))}},scale:{get:function(){return this.Ca},set:function(e){var t=this.Ca;t!==e&&np(this,t,e)}},defaultScale:{get:function(){return this.Pp},set:function(e){this.Pp=e}},autoScale:{get:function(){return this.yh},set:function(e){var t=this.yh;t!==e&&(this.yh=e,this.g("autoScale",t,e),e!==il&&Io(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(e){var t=this.Fg;t!==e&&(this.Fg=e,this.g("initialAutoScale",t,e))}},initialViewportSpot:{get:function(){return this.Bt},set:function(e){var t=this.Bt;t!==e&&(e.sb()||ut("initialViewportSpot must be a specific Spot: "+e),this.Bt=e,this.g("initialViewportSpot",t,e))}},initialDocumentSpot:{get:function(){return this.yt},set:function(e){var t=this.yt;t!==e&&(e.sb()||ut("initialViewportSpot must be a specific Spot: "+e),this.yt=e,this.g("initialDocumentSpot",t,e))}},minScale:{get:function(){return this.Ot},set:function(e){var t=this.Ot;t!==e&&(0<e?(this.Ot=e,this.g("minScale",t,e),e>this.scale&&(this.scale=e)):rn(e,"> 0",Z,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(e){var t=this.Mt;t!==e&&(0<e?(this.Mt=e,this.g("maxScale",t,e),e<this.scale&&(this.scale=e)):rn(e,"> 0",Z,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(e){this.zu.D(e)||(this.zu=e=e.J())}},contentAlignment:{get:function(){return this.zk},set:function(e){var t=this.zk;t.D(e)||(this.zk=e=e.J(),this.g("contentAlignment",t,e),Io(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(e){var t=this.pq;t.D(e)||(this.pq=e=e.J(),this.g("initialContentAlignment",t,e))}},padding:{get:function(){return this.yb},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.Ya(),this.g("padding",t,e))}},partManager:{get:function(){return this.Pc},set:function(e){var t=this.Pc;t!==e&&(e.diagram!==null&&ut("Cannot share PartManagers between Diagrams: "+e.toString()),t&&t.Xe(null),this.Pc=e,e.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(e){var t=this.Sc;t!==e&&(this.Sc=e,e.diagram=this,e.group=null,this.xh=!0,this.g("layout",t,e),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(e){var t=this.Ht;if(t!==e&&(this.Ht=e,this.g("isTreePathToChildren",t,e),!this.undoManager.isUndoingRedoing))for(e=this.nodes;e.next();)Np(e.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(e){var t=this.uu;t!==e&&(e!==mh&&e!==Fs&&e!==mf&&ut("Unknown Diagram.treeCollapsePolicy: "+e),this.uu=e,this.g("treeCollapsePolicy",t,e))}},Ue:{get:function(){return this.pw},set:function(e){this.pw=e}},avoidanceCellSize:{get:function(){return this.aw},set:function(e){this.Xh=null,this.aw=new mi(Math.max(1,e.width),Math.max(1,e.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(e){this.bw=Math.max(1,e)}},autoScrollInterval:{get:function(){return this.vp},set:function(e){var t=this.vp;t!==e&&(this.vp=e,this.g("autoScrollInterval",t,e))}},autoScrollRegion:{get:function(){return this.xp},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.xp;t.D(e)||(this.xp=e=e.J(),this.Ya(),this.g("autoScrollRegion",t,e))}}}),at.Object.defineProperties(Z,{licenseKey:{get:function(){return pp.jc()},set:function(e){pp.add(e.replace(/\s/g,""))}},version:{get:function(){return fd}}}),Z.prototype.makeImageData=Z.prototype.Jx,Z.prototype.makeImage=Z.prototype.Wz,Z.prototype.cacheGroupExternalLinks=Z.prototype.Fu,Z.prototype.addRenderer=Z.prototype.bs,Z.prototype.makeSVG=Z.prototype.av,Z.prototype.makeSvg=Z.prototype.Cs,Z.prototype.stopAutoScroll=Z.prototype.ug,Z.prototype.doAutoScroll=Z.prototype.gs,Z.prototype.isUnoccupied=Z.prototype.Yj,Z.prototype.raiseDiagramEvent=Z.prototype.R,Z.prototype.removeDiagramListener=Z.prototype.am,Z.prototype.addDiagramListener=Z.prototype.Bj,Z.prototype.findTreeRoots=Z.prototype.yz,Z.prototype.layoutDiagram=Z.prototype.Uz,Z.prototype.findTopLevelGroups=Z.prototype.qz,Z.prototype.findTopLevelNodesAndLinks=Z.prototype.rz,Z.prototype.ensureBounds=Z.prototype.Va,Z.prototype.findLinksByExample=Z.prototype.ls,Z.prototype.findNodesByExample=Z.prototype.ms,Z.prototype.findLinkForData=Z.prototype.Kc,Z.prototype.findNodeForData=Z.prototype.ii,Z.prototype.findPartForData=Z.prototype.Lc,Z.prototype.findLinkForKey=Z.prototype.findLinkForKey,Z.prototype.findNodeForKey=Z.prototype.Vb,Z.prototype.findPartForKey=Z.prototype.findPartForKey,Z.prototype.rebuildParts=Z.prototype.Wd,Z.prototype.transformViewToDoc=Z.prototype.Ps,Z.prototype.transformRectDocToView=Z.prototype.zA,Z.prototype.transformDocToView=Z.prototype.op,Z.prototype.centerRect=Z.prototype.es,Z.prototype.scrollToRect=Z.prototype.tv,Z.prototype.scroll=Z.prototype.scroll,Z.prototype.highlightCollection=Z.prototype.Jz,Z.prototype.highlight=Z.prototype.Iz,Z.prototype.selectCollection=Z.prototype.rA,Z.prototype.select=Z.prototype.select,Z.prototype.updateAllRelationshipsFromData=Z.prototype.rp,Z.prototype.updateAllTargetBindings=Z.prototype.updateAllTargetBindings,Z.prototype.commit=Z.prototype.commit,Z.prototype.rollbackTransaction=Z.prototype.Kf,Z.prototype.commitTransaction=Z.prototype.eb,Z.prototype.startTransaction=Z.prototype.Ea,Z.prototype.raiseChanged=Z.prototype.g,Z.prototype.raiseChangedEvent=Z.prototype.cb,Z.prototype.removeChangedListener=Z.prototype.ik,Z.prototype.addChangedListener=Z.prototype.Pe,Z.prototype.removeModelChangedListener=Z.prototype.mA,Z.prototype.addModelChangedListener=Z.prototype.Yw,Z.prototype.findLayer=Z.prototype.Qj,Z.prototype.removeLayer=Z.prototype.kA,Z.prototype.addLayerAfter=Z.prototype.Cy,Z.prototype.addLayerBefore=Z.prototype.Ww,Z.prototype.addLayer=Z.prototype.Al,Z.prototype.moveParts=Z.prototype.moveParts,Z.prototype.copyParts=Z.prototype.Kj,Z.prototype.removeParts=Z.prototype.Is,Z.prototype.remove=Z.prototype.remove,Z.prototype.add=Z.prototype.add,Z.prototype.clearDelayedGeometries=Z.prototype.bx,Z.prototype.setProperties=Z.prototype.nm,Z.prototype.attach=Z.prototype.Du,Z.prototype.set=Z.prototype.set,Z.prototype.resetInputOptions=Z.prototype.Sx,Z.prototype.setInputOption=Z.prototype.sA,Z.prototype.getInputOption=Z.prototype.Ql,Z.prototype.resetRenderingHints=Z.prototype.Tx,Z.prototype.setRenderingHint=Z.prototype.Xx,Z.prototype.getRenderingHint=Z.prototype.Gf,Z.prototype.maybeUpdate=Z.prototype.bd,Z.prototype.requestUpdate=Z.prototype.$b,Z.prototype.delayInitialization=Z.prototype.Xy,Z.prototype.isUpdateRequested=Z.prototype.Pz,Z.prototype.invalidateDocumentBounds=Z.prototype.Ya,Z.prototype.findObjectsNear=Z.prototype.og,Z.prototype.findPartsNear=Z.prototype.mz,Z.prototype.findObjectsIn=Z.prototype.Cf,Z.prototype.findPartsIn=Z.prototype.ux,Z.prototype.findObjectsAt=Z.prototype.ji,Z.prototype.findPartsAt=Z.prototype.lz,Z.prototype.findObjectAt=Z.prototype.ic,Z.prototype.findPartAt=Z.prototype.Ol,Z.prototype.focusObject=Z.prototype.zz,Z.prototype.alignDocument=Z.prototype.Jy,Z.prototype.zoomToRect=Z.prototype.BA,Z.prototype.zoomToFit=Z.prototype.zoomToFit,Z.prototype.diagramScroll=Z.prototype.kx,Z.prototype.focus=Z.prototype.focus;var pf=new ii,v0=null,ds=je.document!==void 0,dd=null,Uh="",il=new qt(Z,"None",0),mu=new qt(Z,"Uniform",1),Hh=new qt(Z,"UniformToFill",2),Pd=new qt(Z,"CycleAll",10),up=new qt(Z,"CycleNotDirected",11),cp=new qt(Z,"CycleNotDirectedFast",12),hp=new qt(Z,"CycleNotUndirected",13),dp=new qt(Z,"CycleDestinationTree",14),fp=new qt(Z,"CycleSourceTree",15),ph=new qt(Z,"DocumentScroll",1),Fd=new qt(Z,"InfiniteScroll",2),mh=new qt(Z,"TreeParentCollapsed",21),Fs=new qt(Z,"AllParentsCollapsed",22),mf=new qt(Z,"AnyParentsCollapsed",23),pp=new Xt,fd="2.3.10",pd="image",Bd=null,y0=!1;function Xa(){if(ds){var e=je.document.createElement("canvas"),t=e.getContext("2d"),n=zn("7ca11abfd022028846");t[n]=zn("398c3597c01238");for(var i=["5da73c80a36455d7038e4972187c3cae51fd22",sn.Dx+"4ae6247590da4bb21c324ba3a84e385776",er.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",Ke.za],r=1;5>r;r++)t[zn("7ca11abfd7330390")](zn(i[r-1]),10,15*r);for(t[n]=zn("39f046ebb36e4b"),n=1;5>n;n++)t[zn("7ca11abfd7330390")](zn(i[n-1]),10,15*n);(i.length!==4||i[0][0]!=="5"||i[3][0]!=="7")&&(er.prototype.Cd=er.prototype.Eu),Bd=e}}Z.className="Diagram",Z.fromDiv=function(e){var t=e;return typeof e=="string"&&(t=je.document.getElementById(e)),t instanceof HTMLDivElement&&t.H instanceof Z?t.H:null},Z.inherit=function(e,t){function n(){}if(Object.getPrototypeOf(e).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
|
`+e);n.prototype=t.prototype,e.prototype=new n,e.prototype.constructor=e},Z.useDOM=function(e){ds=e?je.document!==void 0:!1},Z.isUsingDOM=function(){return ds},Z.None=il,Z.Uniform=mu,Z.UniformToFill=Hh,Z.CycleAll=Pd,Z.CycleNotDirected=up,Z.CycleNotDirectedFast=cp,Z.CycleNotUndirected=hp,Z.CycleDestinationTree=dp,Z.CycleSourceTree=fp,Z.DocumentScroll=ph,Z.InfiniteScroll=Fd,Z.TreeParentCollapsed=mh,Z.AllParentsCollapsed=Fs,Z.AnyParentsCollapsed=mf;function b0(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function md(e,t){if(t.ib.setTransform(t.Mb,0,0,t.Mb,0,0),t.ib.yc(),e.Rc===null)e:{t="f";var n=je[zn("76a715b2f73f148a")][zn("72ba13b5")]||"";if(e.Rc=!0,ds){var i=Z[zn("76a115b6ed251eaf4692")];if(i)for(var r=pp.iterator;r.next()&&(i=r.value,i=zn(i).split(zn("39e9")),!(6>i.length));){var o=zn(i[1]).split(".");if(i[4]!=="7da71ca0")break;var s=zn(sn[zn("6cae19")]).split(".");if(o[0]>s[0]||o[0]===s[0]&&o[1]>=s[1]){var l=je[zn("74a900bae4370f8b51")][zn("6fbb13a1c2311e8a57")].toLowerCase();if(s=l[zn("73a612b6fb191d")](zn("3aad1ab6e022098b4dc4")),o=zn(i[2]),-1<s&&(l=l[zn("73a612b6fb191d")](o.toLowerCase()+"/"),e.Rc=!(-1<l&&l<s),!e.Rc))break;for(s=n[zn("76ad18b4f73e")],l=n[zn("73a612b6fb191d")](zn("35e7"))+2;l<s;l++)t+=n[l];if(s=t[zn("73a612b6fb191d")](o),0>s&&o!==zn("7da71ca0ad381e90")&&(s=t[zn("73a612b6fb191d")](zn("76a715b2ef3e149757"))),0>s&&(s=t[zn("73a612b6fb191d")](zn("76a715b2ef3e149757"))),0>s&&(s=t[zn("73a612b6fb191d")](zn("2bfa41fdb3784bca12"))),0>s&&(s=n[zn("73a612b6fb191d")](zn("7baa19a6f76c1988428554"))),e.Rc=!(0<=s&&s<t[zn("73a612b6fb191d")](zn("35"))||t[zn("73a612b6fb191d")](zn("35"))===-1),!e.Rc||n[zn("73a612b6fb191d")](zn("7fb002b6ed25128b4da25b2e"))&&(e.Rc=!(-1<n[zn("73a612b6fb191d")](o)),!e.Rc)||(s=je[zn("76a715b2f73f148a")][zn("69ad17a1e03e")],l=s[zn("73a612b6fb191d")](zn("7fb002b6ed25128b4da25b2e")),-1<l&&(e.Rc=!(s[zn("73a612b6fb191d")](o)>l),!e.Rc)))break;if(o[0]==="#"){s=je.document.createElement("div");for(var u=i[0].replace(/[A-Za-z]/g,"");4>u.length;)u+="9";if(l=u,u=u.substr(u.length-4),i="",i+=["gsh","gsf"][parseInt(u.substr(0,1),10)%2],i+=["Header","Background","Display","Feedback"][parseInt(u.substr(0,1),10)%4],s[zn("79a417a0f0181a8946")]=i,je.document[zn("78a712aa")]){je.document[zn("78a712aa")][zn("7bb806b6ed32388c4a875b")](s),u=je.getComputedStyle(s).getPropertyValue(zn("78a704b7e62456904c9b12701b6532a8"));var f=je.getComputedStyle(s).getPropertyValue(zn("75b817b0ea2202"));if(je.document[zn("78a712aa")][zn("68ad1bbcf533388c4a875b")](s),u){if(s=je[zn("77a902b0eb1b1e804a8a")],f==="0."+parseInt(l,10)%100||u.indexOf(parseInt(o[1]+o[2],16))!==-1&&u.indexOf(parseInt(o[3]+o[4],16))!==-1){e.Rc=!1;break}else if(s&&s(zn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(i="."+i,o=0;o<document.styleSheets.length;o++){s=document.styleSheets[o].rules||document.styleSheets[o].cssRules;for(var p in s)if(i===s[p].selectorText){e.Rc=!1;break e}}}}else e.Rc=null,e.Rc=!1}}}else{for(p=n[zn("76ad18b4f73e")],r=n[zn("73a612b6fb191d")](zn("35e7"))+2;r<p;r++)t+=n[r];n=t[zn("73a612b6fb191d")](zn("7da71ca0ad381e90")),e.Rc=!(0<=n&&n<t[zn("73a612b6fb191d")](zn("35")))}}}return 0<e.Rc&&e!==e.wy}b0.className="DiagramHelper";function Qc(e){this.j=e===void 0?new ce:e,this.o=new ce}at.Object.defineProperties(Qc.prototype,{point:{get:function(){return this.j},set:function(e){this.j=e}},shifted:{get:function(){return this.o},set:function(e){this.o=e}}});var _d="DraggingInfo";Qc.className="DraggingInfo";function a(e,t,n){this.node=e,this.info=t,this.Su=n}a.className="DraggingNodeInfoPair";function c(){this.reset()}c.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new mi(NaN,NaN).freeze(),this.gridSnapCellSpot=Yo,this.gridSnapOrigin=new ce(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},c.className="DraggingOptions";function y(e,t){if(typeof e=="string"||je.Element&&e instanceof Element)var n=Z.call(this,e)||this;else n=Z.call(this)||this,t=e;return v(n),t&&n.nm(t),n}fi(y,Z);function v(e){e.allowDragOut=!0,e.allowMove=!1,e.isReadOnly=!0,e.contentAlignment=ya,e.layout=new Sa}y.prototype.reset=function(){Z.prototype.reset.call(this),v(this)},y.className="Palette";function w(e,t){if(typeof e=="string"||je.Element&&e instanceof Element)var n=Z.call(this,e)||this;else n=Z.call(this)||this,t=e;var i=n;n.animationManager.isEnabled=!1,n.vb=!0,n.V=null,n.mn=!1,n.nn=!1,n.F=!0,n.u=!0,n.ia=0,n.o=!1,n.ql=null,n.Xx("drawShadows",!1),e=new Ei;var r=new nr;return r.stroke="magenta",r.strokeWidth=2,r.fill="transparent",r.name="BOXSHAPE",e.selectable=!0,e.selectionAdorned=!1,e.selectionObjectName="BOXSHAPE",e.locationObjectName="BOXSHAPE",e.resizeObjectName="BOXSHAPE",e.cursor="move",e.add(r),n.j=e,n.allowCopy=!1,n.allowDelete=!1,n.allowSelect=!0,n.autoScrollRegion=new vi(0,0,0,0),n.pa.h(0,0),n.toolManager.gb("Dragging",new be,n.toolManager.mouseMoveTools),n.click=function(){var o=i.observed;if(o!==null){var s=o.viewportBounds,l=i.lastInput.documentPoint;o.position=new ce(l.x-s.width/2,l.y-s.height/2)}},n.Pf=function(){i.Ya(),ie(i)},n.Xd=function(){i.observed!==null&&(i.Ya(),i.N())},n.Ha=function(){1>i.updateDelay?i.N():i.o||(i.o=!0,setTimeout(function(){return i.redraw()},i.updateDelay))},n.Of=function(){i.observed!==null&&ie(i)},n.autoScale=mu,n.vb=!1,t&&Object.assign(n,t),n}fi(w,Z),w.prototype.computePixelRatio=function(){return 1},w.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var e=this.ta,t=this.ib;if(e!==null&&t!==null){if(Za(this),this.ql===null){var n=new zu(null);n.width=e.width,n.height=e.height,this.ql=n}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),z(this)}finally{this.ta=e,this.ib=t}}}Z.prototype.redraw.call(this)},w.prototype.gc=function(){if(this.Ka===null&&ut("No div specified"),this.ta===null&&ut("No canvas specified"),!(this.ta instanceof Ac)&&(Gg(this.box),this.Fc)){var e=this.observed;if(e!==null&&!e.animationManager.defaultAnimation.isAnimating&&e.pi){Za(this);var t=this.ta;e=this.ib,e.Vc(!0),e.setTransform(1,0,0,1,0,0),e.clearRect(0,0,t.width,t.height),1>this.updateDelay?z(this):this.ql!==null&&(e.drawImage(this.ql.Oa,0,0),t=this.Ab,t.reset(),this.scale!==1&&t.scale(this.scale),this.position.x===0&&this.position.y===0||t.translate(-this.position.x,-this.position.y),e.scale(this.Mb,this.Mb),e.transform(t.m11,t.m12,t.m21,t.m22,t.dx,t.dy),e.yc()),t=this.Wa.s;for(var n=t.length,i=0;i<n;i++)t[i].gc(e,this);this.Fc=this.vd=!1}}};function z(e){var t=e.observed;if(t!==null){var n=e.drawsTemporaryLayers,i=e.drawsGrid&&n,r=t.grid;i&&r!==null&&r.visible&&!isNaN(r.width)&&!isNaN(r.height)&&(r=Ht.alloc().assign(e.viewportBounds).ed(t.viewportBounds),Tc(t,r),Ht.free(r),Ps(t));var o=e.Ab;o.reset(),e.scale!==1&&o.scale(e.scale),e.position.x===0&&e.position.y===0||o.translate(-e.position.x,-e.position.y),r=e.ib,r.scale(e.Mb,e.Mb),r.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),r.yc(),t=t.Wa.s,o=t.length;for(var s=0;s<o;s++){var l=t[s],u=e;if(l.visible&&l.opacity!==0){var f=l.diagram.grid.part;if(!n&&l.isTemporary)i&&f.layer===l&&(l=S(l,r),f.gc(r,u),r.globalAlpha=l);else{for(var p=S(l,r),x=u.scale,N=Ht.alloc(),O=l.Pa.s,F=O.length,K=0;K<F;K++){var ye=O[K];(i||ye!==f)&&l.Oj(r,ye,u,null,x,N,!1)}Ht.free(N),r.globalAlpha=p}}}}}function ie(e){var t=e.box;if(t!==null){var n=e.observed;if(n!==null){e.Fc=!0,n=n.viewportBounds;var i=t.selectionObject,r=mi.alloc();r.h(n.width,n.height),i.desiredSize=r,mi.free(r),e=2/e.scale,i instanceof nr&&(i.strokeWidth=e),t.location=new ce(n.x-e/2,n.y-e/2),t.isSelected=!0}}}w.prototype.computeBounds=function(){var e=this.observed;if(e===null)return gr;var t=e.documentBounds.copy();return t.ed(e.viewportBounds),t},w.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},w.prototype.onViewportBoundsChanged=function(e,t,n,i){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),ie(this),this.fc.scale=n,this.fc.position.x=e.x,this.fc.position.y=e.y,this.fc.bounds.assign(e),this.fc.Oz=i,this.R("ViewportBoundsChanged",this.fc,e))},at.Object.defineProperties(w.prototype,{observed:{get:function(){return this.V},set:function(e){var t=this.V;if(e instanceof w&&ut("Overview.observed Diagram may not be an Overview itself: "+e),t!==e){if(t!==null&&(this.remove(this.box),t.am("ViewportBoundsChanged",this.Pf),t.am("DocumentBoundsChanged",this.Xd),t.am("InvalidateDraw",this.Ha),t.am("AnimationFinished",this.Of)),this.V=e,e!==null&&(e.Bj("ViewportBoundsChanged",this.Pf),e.Bj("DocumentBoundsChanged",this.Xd),e.Bj("InvalidateDraw",this.Ha),e.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),e===null){this.ql=null;var n=this.ta,i=this.ib;n&&i&&(i.setTransform(1,0,0,1,0,0),i.clearRect(0,0,n.width,n.height))}else this.Ha(null),ie(this),this.N();this.g("observed",t,e)}}},box:{get:function(){return this.j},set:function(e){var t=this.j;t!==e&&(this.j=e,this.remove(t),this.add(this.j),ie(this),this.g("box",t,e))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(e){0>e&&(e=0),this.ia!==e&&(this.ia=e)}}}),w.className="Overview";function be(){xo.call(this),this.j=null}fi(be,xo),be.prototype.canStart=function(){if(!this.isEnabled)return!1;var e=this.diagram;if(e===null||!e.allowMove||!e.allowSelect)return!1;var t=e.observed;if(t===null)return!1;var n=e.lastInput;return!n.left||e.currentTool!==this&&(!this.isBeyondDragSize()||n.isTouchEvent&&n.timestamp-e.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(n=t.viewportBounds,this.j=new ce(n.width/2,n.height/2),e=e.firstInput.documentPoint,t.position=new ce(e.x-this.j.x,e.y-this.j.y)),!0)},be.prototype.doActivate=function(){this.j=null,xo.prototype.doActivate.call(this)},be.prototype.doUpdateCursor=function(){var e=this.diagram,t=e.box;t!==null&&t.cursor&&(e.currentCursor=t.cursor)},be.prototype.moveParts=function(){var e=this.diagram,t=e.observed;if(t!==null){var n=e.box;if(n!==null){if(this.j===null){var i=e.firstInput.documentPoint;n=n.location,this.j=new ce(i.x-n.x,i.y-n.y)}e=e.lastInput.documentPoint,t.position=new ce(e.x-this.j.x,e.y-this.j.y)}}},be.className="OverviewDraggingTool";function ve(){Wi(this),this.H=lt,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=gr,this.hb=!0,this.cg=null,this.ob=200}ve.prototype.toString=function(){return"CommandHandler"},ve.prototype.Xe=function(e){this.H=e},ve.prototype.doKeyDown=function(){var e=this.diagram,t=e.lastInput,n=ir?t.meta:t.control,i=t.shift,r=t.alt,o=t.key;!n||o!=="C"&&o!=="Insert"?n&&o==="X"||i&&o==="Del"?this.canCutSelection()&&this.cutSelection():n&&o==="V"||i&&o==="Insert"?this.canPasteSelection()&&this.pasteSelection():n&&o==="Y"||r&&i&&o==="Backspace"?this.canRedo()&&this.redo():n&&o==="Z"||r&&o==="Backspace"?this.canUndo()&&this.undo():o==="Del"||o==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():n&&o==="A"?this.canSelectAll()&&this.selectAll():o==="Esc"?this.canStopCommand()&&this.stopCommand():o==="Up"?e.allowVerticalScroll&&(n?e.scroll("pixel","up"):e.scroll("line","up")):o==="Down"?e.allowVerticalScroll&&(n?e.scroll("pixel","down"):e.scroll("line","down")):o==="Left"?e.allowHorizontalScroll&&(n?e.scroll("pixel","left"):e.scroll("line","left")):o==="Right"?e.allowHorizontalScroll&&(n?e.scroll("pixel","right"):e.scroll("line","right")):o==="PageUp"?i&&e.allowHorizontalScroll?e.scroll("page","left"):e.allowVerticalScroll&&e.scroll("page","up"):o==="PageDown"?i&&e.allowHorizontalScroll?e.scroll("page","right"):e.allowVerticalScroll&&e.scroll("page","down"):o==="Home"?n&&e.allowVerticalScroll?e.scroll("document","up"):!n&&e.allowHorizontalScroll&&e.scroll("document","left"):o==="End"?n&&e.allowVerticalScroll?e.scroll("document","down"):!n&&e.allowHorizontalScroll&&e.scroll("document","right"):o===" "?this.canScrollToPart()&&this.scrollToPart():o==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():o==="Add"?this.canIncreaseZoom()&&this.increaseZoom():n&&o==="0"?this.canResetZoom()&&this.resetZoom():i&&o==="Z"?this.canZoomToFit()&&this.zoomToFit():n&&!i&&o==="G"?this.canGroupSelection()&&this.groupSelection():n&&i&&o==="G"?this.canUngroupSelection()&&this.ungroupSelection():o==="F2"||t.event&&t.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():o==="ContextMenu"||t.event&&t.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():t.bubbles=!0:this.canCopySelection()&&this.copySelection()},ve.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},ve.prototype.stopCommand=function(){var e=this.diagram,t=e.currentTool;t instanceof ao&&e.allowSelect&&e.clearSelection(),t!==null&&t.doCancel()},ve.prototype.canStopCommand=function(){return!0},ve.prototype.selectAll=function(){var e=this.diagram;e.N();try{e.currentCursor="wait",e.R("ChangingSelection",e.selection);for(var t=e.parts;t.next();)t.value.isSelected=!0;for(var n=e.nodes;n.next();)n.value.isSelected=!0;for(var i=e.links;i.next();)i.value.isSelected=!0}finally{e.R("ChangedSelection",e.selection),e.currentCursor=""}},ve.prototype.canSelectAll=function(){return this.diagram.allowSelect},ve.prototype.deleteSelection=function(){var e=this.diagram;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Delete"),e.R("SelectionDeleting",e.selection);for(var t=new Yt,n=e.selection.iterator;n.next();)Wh(t,n.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(i){return i.canDelete()});e.Is(t,!0),e.R("SelectionDeleted",t)}finally{e.eb("Delete"),e.R("ChangedSelection",e.selection),e.currentCursor=""}},ve.prototype.canDeleteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowDelete||e.selection.count===0)},ve.prototype.copySelection=function(){var e=this.diagram,t=new Yt;for(e=e.selection.iterator;e.next();)Wh(t,e.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(n){return n.canCopy()});this.copyToClipboard(t)},ve.prototype.canCopySelection=function(){var e=this.diagram;return!!(e.allowCopy&&e.allowClipboard&&e.selection.count!==0)},ve.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},ve.prototype.canCutSelection=function(){var e=this.diagram;return!!(!e.isReadOnly&&!e.isModelReadOnly&&e.allowCopy&&e.allowDelete&&e.allowClipboard&&e.selection.count!==0)},ve.prototype.copyToClipboard=function(e){var t=this.diagram,n=null;if(e===null)dd=null,Uh="";else{n=t.model;var i=!1,r=!1,o=null;try{n.Tl()&&(i=n.Jj,n.Jj=this.copiesParentKey),n.Wj()&&(r=n.Ij,n.Ij=this.copiesGroupKey),o=t.Kj(e,null,!0)}finally{n.Tl()&&(n.Jj=i),n.Wj()&&(n.Ij=r),n=new Xt,n.addAll(o),dd=n,Uh=t.model.dataFormat}}t.R("ClipboardChanged",n)},ve.prototype.pasteFromClipboard=function(){var e=new Yt,t=dd;if(t===null)return e;var n=this.diagram;if(Uh!==n.model.dataFormat)return e;var i=n.model,r=!1,o=!1,s=null;try{i.Tl()&&(r=i.Jj,i.Jj=this.copiesParentKey),i.Wj()&&(o=i.Ij,i.Ij=this.copiesGroupKey),s=n.Kj(t,n,!1)}finally{for(i.Tl()&&(i.Jj=r),i.Wj()&&(i.Ij=o),t=s.iterator;t.next();)n=t.value,i=t.key,n.location.w()||(i.location.w()?n.location=i.location:!n.position.w()&&i.position.w()&&(n.position=i.position)),e.add(n)}return e},ve.prototype.pasteSelection=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Paste");var n=this.pasteFromClipboard();0<n.count&&t.clearSelection(!0);for(var i=n.iterator;i.next();)i.value.isSelected=!0;if(e!==null){var r=t.computePartsBounds(t.selection);if(r.w()){var o=this.computeEffectiveCollection(t.selection,t.Wm);Qu(t,o,new ce(e.x-r.centerX,e.y-r.centerY),t.Wm,!1)}}t.R("ClipboardPasted",n)}finally{t.eb("Paste"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},ve.prototype.canPasteSelection=function(){var e=this.diagram;return!(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowClipboard||dd===null||dd.count===0||Uh!==e.model.dataFormat)},ve.prototype.undo=function(){this.diagram.undoManager.undo()},ve.prototype.canUndo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canUndo()},ve.prototype.redo=function(){this.diagram.undoManager.redo()},ve.prototype.canRedo=function(){var e=this.diagram;return e.isReadOnly||e.isModelReadOnly?!1:e.allowUndo&&e.undoManager.canRedo()},ve.prototype.decreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;t.autoScale===il&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},ve.prototype.canDecreaseZoom=function(e){e===void 0&&(e=1/this.zoomFactor);var t=this.diagram;return t.autoScale!==il?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},ve.prototype.increaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;t.autoScale===il&&(e=t.scale*e,e<t.minScale||e>t.maxScale||(t.scale=e))},ve.prototype.canIncreaseZoom=function(e){e===void 0&&(e=this.zoomFactor);var t=this.diagram;return t.autoScale!==il?!1:(e=t.scale*e,e<t.minScale||e>t.maxScale?!1:t.allowZoom)},ve.prototype.resetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;e<t.minScale||e>t.maxScale||(t.scale=e)},ve.prototype.canResetZoom=function(e){e===void 0&&(e=this.defaultScale);var t=this.diagram;return e<t.minScale||e>t.maxScale?!1:t.allowZoom},ve.prototype.zoomToFit=function(){var e=this.diagram,t=e.animationManager;t.Cc(),e.redraw();var n=e.position,i=e.scale;Rs(t,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&i===this.Au&&!isNaN(this.Jt)&&e.documentBounds.D(this.yu)?(e.scale=this.Jt,e.position=this.sw,this.Au=NaN,this.yu=gr):(this.Jt=i,this.sw=n.copy(),e.zoomToFit(),this.Au=e.scale,this.yu=e.documentBounds.copy()),ms(t)},ve.prototype.canZoomToFit=function(){return this.diagram.allowZoom},ve.prototype.scrollToPart=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.Va(),e===null){try{this.cg!==null&&(this.cg.next()?e=this.cg.value:this.cg=null)}catch(u){this.cg=null}e===null&&(0<t.highlighteds.count?this.cg=t.highlighteds.iterator:0<t.selection.count&&(this.cg=t.selection.iterator),this.cg!==null&&this.cg.next()&&(e=this.cg.value))}if(e!==null){var n=t.animationManager;Rs(n,"Scroll To Part");var i=this.scrollToPartPause;if(0<i){var r=Ge(this,e,[e]);if(r.length===1)t.Ea(),t.es(e.actualBounds),t.eb("Scroll To Part");else{var o=function(){t.Ea();for(var u=r.pop();0<r.length&&u instanceof Vn&&u.isTreeExpanded&&(!(u instanceof Xi)||u.isSubGraphExpanded);)u=r.pop();0<r.length?(u instanceof Ei&&t.tv(u.actualBounds),u instanceof Vn&&!u.isTreeExpanded&&(u.isTreeExpanded=!0),u instanceof Xi&&!u.isSubGraphExpanded&&(u.isSubGraphExpanded=!0)):(u instanceof Ei&&t.es(u.actualBounds),t.am("LayoutCompleted",s)),t.eb("Scroll To Part")},s=function(){ni(o,(n.isEnabled?n.duration:0)+i)};t.Bj("LayoutCompleted",s),o()}}else{var l=t.position.copy();t.es(e.actualBounds),l.Xa(t.position)&&n.Cc()}}};function Ge(e,t,n){if(t.isVisible())return n;if(t instanceof Fr)Ge(e,t.adornedPart,n);else if(t instanceof kn){var i=t.fromNode;i!==null&&Ge(e,i,n),t=t.toNode,t!==null&&Ge(e,t,n)}else t instanceof Vn&&(i=t.labeledLink,i!==null&&Ge(e,i,n),i=t.pg(),i!==null&&(i.isTreeExpanded||i.wasTreeExpanded||n.push(i),Ge(e,i,n))),t=t.containingGroup,t!==null&&(t.isSubGraphExpanded||t.wasSubGraphExpanded||n.push(t),Ge(e,t,n));return n}ve.prototype.canScrollToPart=function(e){return e===void 0&&(e=null),e!==null&&!(e instanceof Ei)?!1:(e=this.diagram,e.selection.count===0&&e.highlighteds.count===0?!1:e.allowHorizontalScroll&&e.allowVerticalScroll)},ve.prototype.collapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse Tree"),Rs(t.animationManager,"Collapse Tree");var n=new Xt;if(e!==null&&e.isTreeExpanded)e.collapseTree(),n.add(e);else if(e===null)for(var i=t.selection.iterator;i.next();){var r=i.value;r instanceof Vn&&r.isTreeExpanded&&(r.collapseTree(),n.add(r))}t.R("TreeCollapsed",n)}finally{t.eb("Collapse Tree")}},ve.prototype.canCollapseTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof Vn&&e.isTreeExpanded))return!1;if(0<e.Qo().count)return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof Vn&&t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},ve.prototype.expandTree=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand Tree"),Rs(t.animationManager,"Expand Tree");var n=new Xt;if(e!==null&&!e.isTreeExpanded)e.expandTree(),n.add(e);else if(e===null)for(var i=t.selection.iterator;i.next();){var r=i.value;r instanceof Vn&&!r.isTreeExpanded&&(r.expandTree(),n.add(r))}t.R("TreeExpanded",n)}finally{t.eb("Expand Tree")}},ve.prototype.canExpandTree=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null){if(!(e instanceof Vn)||e.isTreeExpanded)return!1;if(0<e.Qo().count)return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof Vn&&!t.isTreeExpanded&&0<t.Qo().count)return!0;return!1},ve.prototype.groupSelection=function(){var e=this.diagram,t=e.model;if(t.Xj()){var n=this.archetypeGroupData;if(n!==null){var i=null;try{e.currentCursor="wait",e.R("ChangingSelection",e.selection),e.Ea("Group");for(var r=new Xt,o=e.selection.iterator;o.next();){var s=o.value;s.Zc()&&s.canGroup()&&r.add(s)}for(var l=new Xt,u=r.iterator;u.next();){var f=u.value;o=!1;for(var p=r.iterator;p.next();)if(f.Td(p.value)){o=!0;break}o||l.add(f)}if(0<l.count){var x=l.first().containingGroup;if(x!==null)for(;x!==null;){r=!1;for(var N=l.iterator;N.next();)if(!N.value.Td(x)){r=!0;break}if(r)x=x.containingGroup;else break}if(n instanceof Xi)Uu(n),i=n.copy(),i!==null&&e.add(i);else if(t.Yu(n)){var O=t.copyNodeData(n);Zt(O)&&(t.xf(O),i=e.ii(O))}if(i!==null){x!==null&&this.isValidMember(x,i)&&(i.containingGroup=x);for(var F=l.iterator;F.next();){var K=F.value;this.isValidMember(i,K)&&(K.containingGroup=i)}e.clearSelection(!0),i.isSelected=!0}}e.R("SelectionGrouped",i)}finally{e.eb("Group"),e.R("ChangedSelection",e.selection),e.currentCursor=""}}}},ve.prototype.canGroupSelection=function(){var e=this.diagram;if(e.isReadOnly||e.isModelReadOnly||!e.allowInsert||!e.allowGroup||!e.model.Xj()||this.archetypeGroupData===null)return!1;for(e=e.selection.iterator;e.next();){var t=e.value;if(t.Zc()&&t.canGroup())return!0}return!1};function Bt(e){var t=jt();for(e=e.iterator;e.next();){var n=e.value;n instanceof kn||t.push(n)}e=new Yt,n=t.length;for(var i=0;i<n;i++){for(var r=t[i],o=!0,s=0;s<n;s++)if(r.Td(t[s])){o=!1;break}o&&e.add(r)}return gn(t),e}ve.prototype.isValidMember=function(e,t){if(t===null||e===t||t instanceof kn)return!1;if(e!==null){if(e===t||e.Td(t))return!1;var n=e.memberValidation;if(n!==null&&!n(e,t)||e.data===null&&t.data!==null||e.data!==null&&t.data===null)return!1}return n=this.memberValidation,n!==null?n(e,t):!0},ve.prototype.ungroupSelection=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.model;if(n.Xj())try{t.currentCursor="wait",t.R("ChangingSelection",t.selection),t.Ea("Ungroup");var i=new Xt;if(e!==null)i.add(e);else for(var r=t.selection.iterator;r.next();){var o=r.value;o instanceof Xi&&o.canUngroup()&&i.add(o)}var s=new Xt;if(0<i.count){t.clearSelection(!0);for(var l=i.iterator;l.next();){var u=l.value;u.expandSubGraph();var f=u.containingGroup,p=f!==null&&f.data!==null?n.wa(f.data):void 0;s.addAll(u.memberParts);for(var x=s.iterator;x.next();){var N=x.value;if(N.isSelected=!0,!(N instanceof kn)){var O=N.data;O!==null?n.mp(O,p):N.containingGroup=f}}t.remove(u)}}t.R("SelectionUngrouped",i,s)}finally{t.eb("Ungroup"),t.R("ChangedSelection",t.selection),t.currentCursor=""}},ve.prototype.canUngroupSelection=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowDelete||!t.allowUngroup||!t.model.Xj())return!1;if(e!==null){if(!(e instanceof Xi))return!1;if(e.canUngroup())return!0}else for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof Xi&&t.canUngroup())return!0;return!1},ve.prototype.addTopLevelParts=function(e,t){var n=!0;for(e=Bt(e).iterator;e.next();){var i=e.value;i.containingGroup!==null&&(!t||this.isValidMember(null,i)?i.containingGroup=null:n=!1)}return n},ve.prototype.collapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Collapse SubGraph"),Rs(t.animationManager,"Collapse SubGraph");var n=new Xt;if(e!==null&&e.isSubGraphExpanded)e.collapseSubGraph(),n.add(e);else if(e===null)for(var i=t.selection.iterator;i.next();){var r=i.value;r instanceof Xi&&r.isSubGraphExpanded&&(r.collapseSubGraph(),n.add(r))}t.R("SubGraphCollapsed",n)}finally{t.eb("Collapse SubGraph")}},ve.prototype.canCollapseSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return!!(e instanceof Xi&&e.isSubGraphExpanded);for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof Xi&&t.isSubGraphExpanded)return!0;return!1},ve.prototype.expandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;try{t.Ea("Expand SubGraph"),Rs(t.animationManager,"Expand SubGraph");var n=new Xt;if(e!==null&&!e.isSubGraphExpanded)e.expandSubGraph(),n.add(e);else if(e===null)for(var i=t.selection.iterator;i.next();){var r=i.value;r instanceof Xi&&!r.isSubGraphExpanded&&(r.expandSubGraph(),n.add(r))}t.R("SubGraphExpanded",n)}finally{t.eb("Expand SubGraph")}},ve.prototype.canExpandSubGraph=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly)return!1;if(e!==null)return e instanceof Xi&&!e.isSubGraphExpanded;for(e=t.selection.iterator;e.next();)if(t=e.value,t instanceof Xi&&!t.isSubGraphExpanded)return!0;return!1},ve.prototype.editTextBlock=function(e){e===void 0&&(e=null);var t=this.diagram,n=t.toolManager.findTool("TextEditing");if(n!==null){if(e===null){e=null;for(var i=t.selection.iterator;i.next();){var r=i.value;if(r.canEdit()){e=r;break}}if(e===null)return;e=e.Nl(function(o){return o instanceof vo&&o.editable})}e!==null&&(t.currentTool=null,n.textBlock=e,t.currentTool=n)}},ve.prototype.canEditTextBlock=function(e){e===void 0&&(e=null);var t=this.diagram;if(t.isReadOnly||t.isModelReadOnly||!t.allowTextEdit||t.toolManager.findTool("TextEditing")===null)return!1;if(e!==null){if(!(e instanceof vo))return!1;if(e=e.part,e!==null&&e.canEdit())return!0}else for(t=t.selection.iterator;t.next();)if(e=t.value,e.canEdit()&&(e=e.Nl(function(n){return n instanceof vo&&n.editable}),e!==null))return!0;return!1},ve.prototype.showContextMenu=function(e){var t=this.diagram,n=t.toolManager.findTool("ContextMenu");if(n!==null&&(e===void 0&&(e=0<t.selection.count?t.selection.first():t),e=n.findObjectWithContextMenu(e),e!==null)){var i=t.lastInput,r=null;e instanceof nt?r=e.ga(vr):t.viewportBounds.ca(i.documentPoint)||(r=t.viewportBounds,r=new ce(r.x+r.width/2,r.y+r.height/2)),r!==null&&(i.viewPoint=t.op(r),i.documentPoint=r,i.left=!1,i.right=!0,i.up=!0),t.currentTool=n,W(n,!1,e)}},ve.prototype.canShowContextMenu=function(e){var t=this.diagram,n=t.toolManager.findTool("ContextMenu");return n===null?!1:(e===void 0&&(e=0<t.selection.count?t.selection.first():t),n.findObjectWithContextMenu(e)!==null)},ve.prototype.computeEffectiveCollection=function(e,t){var n=this.diagram,i=n.toolManager.findTool("Dragging"),r=n.currentTool===i;if(t===void 0&&(t=r?i.dragOptions:n.Wm),i=new ii,e===null)return i;for(var o=e.iterator;o.next();)pu(n,i,o.value,r,t);if(n.draggedLink!==null&&t.dragsLink)return i;for(o=e.iterator;o.next();)e=o.value,e instanceof kn&&(t=e.fromNode,t===null||i.contains(t)?(t=e.toNode,t===null||i.contains(t)||i.remove(e)):i.remove(e));return i},at.Object.defineProperties(ve.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(e){this.o=e}},copiesConnectedLinks:{get:function(){return this.u},set:function(e){this.u=e}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(e){this.Ha=e}},copiesTree:{get:function(){return this.ia},set:function(e){this.ia=e}},deletesTree:{get:function(){return this.nb},set:function(e){this.nb=e}},copiesParentKey:{get:function(){return this.V},set:function(e){this.V=e}},copiesGroupKey:{get:function(){return this.F},set:function(e){this.F=e}},archetypeGroupData:{get:function(){return this.j},set:function(e){this.j=e}},memberValidation:{get:function(){return this.ij},set:function(e){this.ij=e}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(e){this.diagram.defaultScale=e}},zoomFactor:{get:function(){return this.Hb},set:function(e){1<e||ut("zoomFactor must be larger than 1.0, not: "+e),this.Hb=e}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(e){this.hb=e}},scrollToPartPause:{get:function(){return this.ob},set:function(e){this.ob=e}}}),ve.className="CommandHandler",Yn=function(){return new ve};function nt(){Wi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new ce(NaN,NaN).freeze(),this.jd=vs,this.Ab=new er,this.wh=new er,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=oa,this.uc=new Ht(NaN,NaN,NaN,NaN).freeze(),this.Ib=new Ht(NaN,NaN,NaN,NaN).freeze(),this.dc=new Ht(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Lr,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 Sn,mn,di,bi,Mi,Ji,Sr,ar,Mr,Qr;nt.prototype.cloneProtected=function(e){e.l=this.l|6144,e.pb=this.pb,e.bn=this.bn,e.Ma=this.Ma,e.pa.assign(this.pa),e.jd=this.jd.J(),this.Lb!==null?e.Lb=this.Lb.copy():e.Lb=null,e.Ca=this.Ca,e.Kb=this.Kb,e.Kg=this.Kg.J(),e.uc.assign(this.uc),e.Ib.assign(this.Ib),e.dc.assign(this.dc),e.Yn=this.Yn,this.ba!==null&&(e.ba=this.ba.copy()),e.Jb=this.Jb.J(),e.sk=this.sk.J(),e.io=this.io,e.Ag=this.Ag,this.Ua!==null&&(e.Ua=this.Ua.copy()),this.A!==null&&(e.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(e.Dh=Mt(this.Dh)),this.tb!==null&&(e.tb=this.tb.copy())},nt.prototype.Vw=function(e){var t=this.Dh;if(_n(t)){for(var n=0;n<t.length;n++)if(t[n]===e)return}else this.Dh=t=[];t.push(e)},nt.prototype.Af=function(e){e.Zn=null,e.Ng=null,e.v()},nt.prototype.clone=function(){var e=new this.constructor;if(this.cloneProtected(e),this.Dh!==null)for(var t=0;t<this.Dh.length;t++){var n=this.Dh[t];e[n]=this[n]}return e},nt.prototype.copy=function(){return this.clone()},_=nt.prototype,_.qb=function(e){e.classType===kn?e.name.indexOf("Orient")===0?this.segmentOrientation=e:ut("Unknown Link enum value for GraphObject.segmentOrientation property: "+e):e.classType===nt&&(this.stretch=e)},_.toString=function(){return fn(this.constructor)+"#"+It(this)},_.th=function(){this.A!==null&&(this.A.nc=!0)};function sr(e){e.A===null?e.A=new Ud:e.A.nc&&(e.A=e.A.copy())}_.Xc=function(){if(this.ba===null){var e=new mp;e.Xi=Di,e.yj=Di,e.Vi=10,e.wj=10,e.Wi=0,e.xj=0,this.ba=e}},_.cb=function(e,t,n,i,r,o,s){var l=this.part;if(l!==null&&(l.gk(e,t,n,i,r,o,s),n===this&&e===io&&ka(this)&&To(this,l,t),o=this.diagram,this.animationTriggers===null||o===null||!o.pi||o.undoManager.isUndoingRedoing||o.animationManager.Dm||(e=this.animationTriggers.get(t),e!==null&&o.animationManager.isEnabled&&!o.animationManager.isTicking&&(this.jo===null&&(this.jo=new ii),s=o.undoManager.transactionLevel===0,e.startCondition===la?s=!0:e.startCondition===A&&(s=!1),s?(o=new wr,$o(e,o),s=this.jo.get(e),s!==null&&s.stop(),this.jo.add(e,o),o.vu=this,o.Nw=e,o.add(this,t,i,r),o.start()):(Rs(o.animationManager,"Trigger"),o.animationManager.defaultAnimation.add(this,t,i,r)))),this instanceof wn&&n===l&&(l.l&16777216)!==0&&l.data!==null))for(n=this.O.s,i=n.length,r=0;r<i;r++)l=n[r],l instanceof wn&&bd(l,function(u){u.data!==null&&u.l&16777216&&u.La(t)})};function To(e,t,n){var i=e.ih();if(i!==null)for(var r=e.localBindings.iterator;r.next();){var o=r.value,s=null;if(o.sourceName!==null){if(s=P1(o,i,e),s===null)continue;o.sp(e,s,n,null)}else if(o.isToModel){var l=t.diagram;l===null||l.skipsModelSourceBindings||o.sp(e,l.model.modelData,n,i)}else{if(l=i.data,l===null)continue;var u=t.diagram;u===null||u.skipsModelSourceBindings||o.sp(e,l,n,i)}s===e&&(l=i.ks(o.Ai),l!==null&&o.Mv(l,s,n))}}_.ks=function(e){return this.bindingId===e?this:null},_.g=function(e,t,n){this.cb(io,e,this,t,n)},_.Ge=function(e,t,n,i){var r=this.uc;if(r.h(e,t,n,i),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new er);var o=this.Lb;o.reset(),this.no(o,e,t,n,i),o.pp(r)}};function na(e,t,n,i){return e.pickable===!1?!1:(i.multiply(e.transform),n?e.Yc(t,i):e.fh(t,i))}_.tx=function(e,t,n){if(this.pickable===!1)return!1;var i=this.naturalBounds;return t=e.Bf(t),n?Pr(e.x,e.y,0,0,0,i.height)<=t||Pr(e.x,e.y,0,i.height,i.width,i.height)<=t||Pr(e.x,e.y,i.width,i.height,i.width,0)<=t||Pr(e.x,e.y,i.width,0,0,0)<=t:e.zd(0,0)<=t&&e.zd(0,i.height)<=t&&e.zd(i.width,0)<=t&&e.zd(i.width,i.height)<=t},_.se=function(){return!0},_.ca=function(e){var t=ce.alloc();t.assign(e),this.transform.Ga(t);var n=this.actualBounds;if(!n.w())return ce.free(t),!1;var i=this.diagram;if(i!==null&&i.wq){var r=i.Ql("extraTouchThreshold"),o=i.Ql("extraTouchArea"),s=o/2,l=this.naturalBounds;i=this.Df()*i.scale;var u=1/i;if(l.width*i<r&&l.height*i<r)return e=po(n.x-s*u,n.y-s*u,n.width+o*u,n.height+o*u,t.x,t.y),ce.free(t),e}return r=!1,(this instanceof Fr||this instanceof nr?po(n.x-5,n.y-5,n.width+10,n.height+10,t.x,t.y):n.ca(t))&&(this.tb&&!this.tb.ca(t)?r=!1:this.areaBackground!==null&&n.ca(t)||this.Ma!==null&&this.dc.ca(e)?r=!0:r=this.gh(e)),ce.free(t),r},_.gh=function(e){var t=this.naturalBounds;return po(0,0,t.width,t.height,e.x,e.y)},_.Re=function(e){if(this.angle===0)return this.actualBounds.Re(e);var t=this.naturalBounds;t=Ht.allocAt(0,0,t.width,t.height);var n=this.transform,i=!1,r=ce.allocAt(e.x,e.y);return t.ca(n.Cd(r))&&(r.h(e.x,e.bottom),t.ca(n.Cd(r))&&(r.h(e.right,e.bottom),t.ca(n.Cd(r))&&(r.h(e.right,e.y),t.ca(n.Cd(r))&&(i=!0)))),ce.free(r),Ht.free(t),i},_.fh=function(e,t){if(t===void 0)return e.Re(this.actualBounds);var n=this.naturalBounds,i=!1,r=ce.allocAt(0,0);return e.ca(t.Ga(r))&&(r.h(0,n.height),e.ca(t.Ga(r))&&(r.h(n.width,n.height),e.ca(t.Ga(r))&&(r.h(n.width,0),e.ca(t.Ga(r))&&(i=!0)))),ce.free(r),i},_.Yc=function(e,t){if(t===void 0&&(t=this.transform,this.angle===0))return e.Yc(this.actualBounds);var n=this.naturalBounds,i=ce.allocAt(0,0),r=ce.allocAt(0,n.height),o=ce.allocAt(n.width,n.height),s=ce.allocAt(n.width,0),l=!1;if(e.ca(t.Ga(i))||e.ca(t.Ga(r))||e.ca(t.Ga(o))||e.ca(t.Ga(s)))l=!0;else{n=Ht.allocAt(0,0,n.width,n.height);var u=ce.allocAt(e.x,e.y);n.ca(t.Cd(u))?l=!0:(u.h(e.x,e.bottom),n.ca(t.Cd(u))?l=!0:(u.h(e.right,e.bottom),n.ca(t.Cd(u))?l=!0:(u.h(e.right,e.y),n.ca(t.Cd(u))&&(l=!0)))),ce.free(u),Ht.free(n),!l&&(Ke.us(e,i,r)||Ke.us(e,r,o)||Ke.us(e,o,s)||Ke.us(e,s,i))&&(l=!0)}return ce.free(i),ce.free(r),ce.free(o),ce.free(s),l},_.ga=function(e,t){if(t===void 0&&(t=new ce),e instanceof ui){var n=this.naturalBounds;t.h(e.x*n.width+e.offsetX,e.y*n.height+e.offsetY)}else t.set(e);return this.oe.Ga(t),t},_.mi=function(e){e===void 0&&(e=new Ht);var t=this.naturalBounds,n=this.oe,i=ce.allocAt(0,0).transform(n);return e.h(i.x,i.y,0,0),i.h(t.width,0).transform(n),Or(e,i.x,i.y,0,0),i.h(t.width,t.height).transform(n),Or(e,i.x,i.y,0,0),i.h(0,t.height).transform(n),Or(e,i.x,i.y,0,0),ce.free(i),e},_.li=function(){var e=this.oe;return e.m11===1&&e.m12===0?e=0:(e=180*Math.atan2(e.m12,e.m11)/Math.PI,0>e&&(e+=360)),e},_.Df=function(){if(!(this.l&4096))return this.Kk;var e=this.Ca;return this.panel!==null?e*this.panel.Df():e},_.qs=function(e,t){return t===void 0&&(t=new ce),t.assign(e),this.oe.Cd(t),t},_.rs=function(e,t,n){return this.Sj(e.x,e.y,t.x,t.y,n)},_.Sj=function(e,t,n,i,r){var o=this.transform,s=1/(o.m11*o.m22-o.m12*o.m21),l=o.m22*s,u=-o.m12*s,f=-o.m21*s,p=o.m11*s,x=s*(o.m21*o.dy-o.m22*o.dx),N=s*(o.m12*o.dx-o.m11*o.dy);return this.areaBackground!==null?(o=this.actualBounds,Ke.Ff(o.left,o.top,o.right,o.bottom,e,t,n,i,r)):(s=e*l+t*f+x,e=e*u+t*p+N,t=n*l+i*f+x,n=n*u+i*p+N,r.h(0,0),i=this.naturalBounds,n=Ke.Ff(0,0,i.width,i.height,s,e,t,n,r),r.transform(o),n)},nt.prototype.measure=function(e,t,n,i){if(vu(this)!==!1){var r=this.Kg,o=r.right+r.left;r=r.top+r.bottom,e=Math.max(e-o,0),t=Math.max(t-r,0),n=Math.max((n||0)-o,0),i=Math.max((i||0)-r,0),o=this.angle,r=this.desiredSize;var s=this.kq();o===90||o===270?(e=isFinite(r.height)?r.height+s:e,t=isFinite(r.width)?r.width+s:t):(e=isFinite(r.width)?r.width+s:e,t=isFinite(r.height)?r.height+s:t),r=n||0,s=i||0;var l=this instanceof wn;switch(Dl(this,!0)){case mn:s=r=0,l&&(t=e=1/0);break;case Sn:isFinite(e)&&e>n&&(r=e),isFinite(t)&&t>i&&(s=t);break;case bi:isFinite(e)&&e>n&&(r=e),s=0,l&&(t=1/0);break;case Mi:isFinite(t)&&t>i&&(s=t),r=0,l&&(e=1/0)}l=this.maxSize;var u=this.minSize;r>l.width&&u.width<l.width&&(r=l.width),s>l.height&&u.height<l.height&&(s=l.height),n=Math.max(r,u.width),i=Math.max(s,u.height),l.width<n&&(n=Math.min(u.width,n)),l.height<i&&(i=Math.min(u.height,i)),e=Math.min(l.width,e),t=Math.min(l.height,t),e=Math.max(n,e),t=Math.max(i,t),(o===90||o===270)&&(o=e,e=t,t=o,o=n,n=i,i=o),this.uc.ka(),this.Wl(e,t,n,i),this.uc.freeze(),this.uc.w()||ut("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Bs(this,!1)}},nt.prototype.Wl=function(){},nt.prototype.Dd=function(){return!1},nt.prototype.arrange=function(e,t,n,i,r){this.Uk();var o=Ht.alloc();o.assign(this.Ib),this.Ib.ka(),fl(this)===!1?this.Ib.h(e,t,n,i):this.eh(e,t,n,i),this.Ib.freeze(),r===void 0?this.tb=null:this.tb=r,n=!1,r!==void 0?n=!0:(r=this.panel,r!==null&&yh(r)&&(r=r.panel),r!==null&&(r=r.dc,i=this.measuredBounds,this.areaBackground!==null&&(i=this.Ib),n=t+i.height,i=e+i.width,n=!(0<=e+.05&&i<=r.width+.05&&0<=t+.05&&n<=r.height+.05),this instanceof vo&&(e=this.naturalBounds,this.Lq>e.height||this.Cb>e.width))&&(n=!0)),this.l=n?this.l|256:this.l&-257,this.Ib.w()||ut("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(o,this.Ib),Fc(this,!1),Ht.free(o)},_=nt.prototype,_.eh=function(){};function rl(e,t,n,i,r){if(e.Ib.h(t,n,i,r),!e.desiredSize.w()){var o=e.uc;n=e.Kg,t=n.right+n.left;var s=n.top+n.bottom;switch(n=o.width+t,o=o.height+s,i+=t,r+=s,t=Dl(e,!0),n===i&&o===r&&(t=mn),t){case mn:(n>i||o>r)&&(Bs(e,!0),e.measure(n>i?i:n,o>r?r:o,0,0));break;case Sn:Bs(e,!0),e.measure(i,r,0,0);break;case bi:Bs(e,!0),e.measure(i,o,0,0);break;case Mi:Bs(e,!0),e.measure(n,r,0,0)}}}_.Xl=function(e,t){var n=this.part;n!==null&&n.diagram!==null&&(n.selectionObject!==this&&n.resizeObject!==this&&n.rotateObject!==this||Kg(n,!0),this.N(),Jr(e,t)||(n.oh(),this.Pn(n)))},_.Pn=function(e){this.portId!==null&&(Kg(e,!0),e instanceof Vn&&Jy(e,this))},_.gc=function(e,t){if(!ku(this,e,t)&&this.visible){var n=this.opacity;if(n!==0){var i=1;n!==1&&(i=e.globalAlpha,e.globalAlpha=i*n);var r="";this.filter!==""&&(r=e.filter,e.filter=this.filter);var o=this instanceof wn&&yh(this),s=this.Ib;if(o){var l=this.Ib,u=this.dc,f=this.areaBackground,p=this.Ma;f===null&&p===null||e.yc(),f!==null&&(gs(this,e,f,!0,!0,u,l),f instanceof Wr&&f.type===Ou?(e.beginPath(),e.rect(l.x,l.y,l.width,l.height),e.ng(f)):e.fillRect(l.x,l.y,l.width,l.height)),p!==null&&(gs(this,e,p,!0,!1,u,l),p instanceof Wr&&p.type===Ou?(e.beginPath(),e.rect(l.x,l.y,l.width,l.height),e.ng(p)):e.fillRect(l.x,l.y,l.width,l.height)),this.hh(e,t)}if(!o&&(o||s.width!==0&&s.height!==0&&!isNaN(s.x)&&!isNaN(s.y))){o=this.transform,l=this.panel,this.l&4096&&xa(this),f=this.part,u=!1;var x=0;f&&t.Gf("drawShadows")&&(u=f.isShadowed)&&(p=f.shadowOffset,x=Math.max(p.y,p.x)*t.scale*t.Mb),p=this.Dd();var N;if(!(N=t.$i||!p)){var O=this.naturalBounds;N=this.wh;var F=N.m11,K=N.m21,ye=N.dx,ae=N.m12,Oe=N.m22,Fe=N.dy,He,qe=He=0;N=He*F+qe*K+ye;var bt=He*ae+qe*Oe+Fe;He=O.width+x,qe=0;var jn=He*F+qe*K+ye;He=He*ae+qe*Oe+Fe,qe=Math.min(N,jn);var oi=Math.min(bt,He),ei=Math.max(N+0,jn)-qe,Nn=Math.max(bt+0,He)-oi;N=qe,bt=oi,He=O.width+x,qe=O.height+x,jn=He*F+qe*K+ye,He=He*ae+qe*Oe+Fe,qe=Math.min(N,jn),oi=Math.min(bt,He),ei=Math.max(N+ei,jn)-qe,Nn=Math.max(bt+Nn,He)-oi,N=qe,bt=oi,He=0,qe=O.height+x,jn=He*F+qe*K+ye,He=He*ae+qe*Oe+Fe,qe=Math.min(N,jn),oi=Math.min(bt,He),ei=Math.max(N+ei,jn)-qe,Nn=Math.max(bt+Nn,He)-oi,N=qe,bt=oi,x=t.viewportBounds,O=x.x,F=x.y,N=!(N>x.width+O||O>ei+N||bt>x.height+F||F>Nn+bt)}if(N){if(N=(this.l&256)!==0,e.clipInsteadOfFill&&(N=!1),this instanceof vo&&(e.font=this.font),N){if(bt=l.se()?l.naturalBounds:l.actualBounds,ei=Math.max(s.x,bt.x),Nn=Math.max(s.y,bt.y),x=Math.min(s.right,bt.right)-ei,O=Math.min(s.bottom,bt.bottom)-Nn,F=this.tb,F!==null&&(ei=F.x,Nn=F.y,x=F.width,O=F.height),ei>s.width+s.x||s.x>bt.width+bt.x){n!==1&&(e.globalAlpha=i),this.filter!==""&&(e.filter=r);return}e.save(),e.beginPath(),e.rect(ei,Nn,x,O),e.clip()}if(p){if(!f.isVisible()){n!==1&&(e.globalAlpha=i),this.filter!==""&&(e.filter=r);return}u&&(bt=f.shadowOffset,e.Ev(bt.x*t.scale*this.scale*t.Mb,bt.y*t.scale*this.scale*t.Mb,f.shadowBlur),Jc(e),e.shadowColor=f.shadowColor)}u&&this.shadowVisible===!0?Jc(e):u&&this.shadowVisible===!1&&Bc(e),f=this.naturalBounds,this.areaBackground!==null&&(e.yc(),gu(this,e,f,s)),e.transform(o.m11,o.m12,o.m21,o.m22,o.dx,o.dy),u&&ma(this,l)&&this.shadowVisible===null&&Bc(e),this.Ma!==null&&(e.yc(),Yl(this,e,f,s)),u&&(this.Ma!==null||this.areaBackground!==null||ma(this,l))?(Ju(this,!0),this.shadowVisible===null&&Bc(e)):Ju(this,!1),this.hh(e,t),u&&this.l&512&&Jc(e),p&&u&&Bc(e),N&&(e.restore(),e.Vc(this instanceof wn)),o.ws()||(t=1/(o.m11*o.m22-o.m12*o.m21),e.transform(o.m22*t,-o.m12*t,-o.m21*t,o.m11*t,t*(o.m21*o.dy-o.m22*o.dx),t*(o.m12*o.dx-o.m11*o.dy)))}}n!==1&&(e.globalAlpha=i),this.filter!==""&&(e.filter=r)}}};function ma(e,t){return t===null?!1:(yh(t)&&(t=t.panel),(t.l&512)!==0||(t.type===wn.Auto||t.type===wn.Spot)&&t.Pb()!==e)}_.Dv=function(){};function gu(e,t,n,i){gs(e,t,e.areaBackground,!0,!0,n,i),e.areaBackground instanceof Wr&&e.areaBackground.type===Ou?(t.beginPath(),t.rect(i.x,i.y,i.width,i.height),t.ng(e.areaBackground)):t.fillRect(i.x,i.y,i.width,i.height)}function Yl(e,t,n,i){var r=e.kq(),o=n.x,s=n.y,l=n.width+r,u=n.height+r;gs(e,t,e.Ma,!0,!1,n,i),e.Ma instanceof Wr&&e.Ma.type===Ou?(t.beginPath(),t.rect(o-r/2,s-r/2,l,u),t.ng(e.Ma)):t.fillRect(o-r/2,s-r/2,l,u)}function Qa(e,t,n){for(var i=t.O.s,r=i.length,o=-1,s=0;s<r;s++)if(i[s]===e){o=s;break}if(e=o,e!==-1)if(e===0)t.svg.gd?t.svg.gd.after(n):t.svg.Ma?t.svg.Ma.after(n):t.type===wn.Table?(t=t.svg.getElementsByClassName("gojs-ts"),t=t.length!==0?t[0]:null,t!==null&&t.after(n)):t.svg.prepend(n);else{for(;e!==0&&!t.M(e-1).Ed();)e--;e===0?t.svg.prepend(n):(e=t.M(e-1).svg,e!==null?e.after(n):t.svg.appendChild(n))}}function ku(e,t,n){if(!(t instanceof tu))return!1;if(!e.visible||e.opacity===0||e.Dd()&&!e.isVisible())return e.svg!==null&&e.svg.parentNode!==null&&e.svg.remove(),!0;var i=e.panel,r=e.nk(t);if(e.kk(t,n,r))return e.svg.parentElement!==null?(e.Dd()&&(t.ti=e.svg),!0):(e.Dd()?(t.ti!==null?t.ti.after(e.svg):t.Nj.prepend(e.svg),t.ti=e.svg):i&&Qa(e,i,e.svg),!0);if(e.Dd()&&e.isShadowed){var o=e.shadowOffset;t.Ev(o.x*n.scale*e.scale*n.Mb,o.y*n.scale*e.scale*n.Mb,e.shadowBlur),Jc(t),t.shadowColor=e.shadowColor}e instanceof vo&&(t.font=e.font),t.yd=null;var s=e.transform;o=e instanceof wn;var l=e instanceof wn?yh(e):!1;e.l&4096&&xa(e);var u=e.Ib;if(t.rb.ha=[1,0,0,1,0,0],t.o=!1,r&&(t.o=!0,o&&l?(gp(t,1,0,0,1,0,0),e.svg=t.ad):o?(gp(t,s.m11,s.m12,s.m21,s.m22,s.dx,s.dy),e.svg=t.ad):gp(t,1,0,0,1,0,0)),r=e.naturalBounds,e.areaBackground!==null){var f=s.copy().Vj();t.rb.ha=[f.m11,f.m12,f.m21,f.m22,f.dx,f.dy],gu(e,t,r,u),t.rb.ha=[1,0,0,1,0,0],t.yd.gd=t.ad,t.yd.prepend(t.ad)}return o||(t.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy]),e.background!==null&&(o?(l&&(t.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy]),Yl(e,t,r,u),l&&(t.rb.ha=[1,0,0,1,0,0])):(t.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy],Yl(e,t,r,u)),t.yd.Ma=t.ad,t.yd.prepend(t.ad)),s=t.yd,r=e.part,l=!1,r&&n.Gf("drawShadows")&&(l=r.isShadowed),t.clipInsteadOfFill&&(l=!1),e.Dd()&&l&&Jc(t),l&&e.shadowVisible===!0?Jc(t):l&&e.shadowVisible===!1&&Bc(t),r=e.panel,l&&ma(e,r)&&e.shadowVisible===null&&Bc(t),t.Il&&(f=n.computePixelRatio(),f="drop-shadow("+t.shadowOffsetX/f+"px "+t.shadowOffsetY/f+"px "+t.shadowBlur/f/2+"px "+t.shadowColor+")",e.background!==null&&s.Ma.setAttributeNS(null,"filter",f),e.areaBackground!==null&&s.gd.setAttributeNS(null,"filter",f)),l&&(e.Ma!==null||e.areaBackground!==null||ma(e,r))?(Ju(e,!0),e.shadowVisible===null&&Bc(t)):Ju(e,!1),r=l,e.hh(t,n),o&&t.nh.pop(),t.o&&t.nh.pop(),s=t.Gv.hs,l=o?e.svg:t.yd,f=e.svg,!o&&f!==null&&l!==f&&f.parentNode===e.panel.svg?(e.svg.replaceWith(l),e.svg=l,l!==null&&e.$o(t,i,u,l),Rl(t,f),!0):(e.svg=l,s!==null&&l===null&&(S0(t),t.nh.pop()),l===null||(e.$o(t,i,u,l),t.Il&&(n=n.computePixelRatio(),e.Dv(l,"drop-shadow("+t.shadowOffsetX/n+"px "+t.shadowOffsetY/n+"px "+t.shadowBlur/n/2+"px "+t.shadowColor+")")),r&&e.l&512&&Jc(t),e.Dd()&&Bc(t),n=e.Dd()?e.opacity*t.globalAlpha:e.opacity,n!==1&&l.setAttributeNS(null,"opacity",n.toString()),e.filter!==""&&l.setAttributeNS(null,"filter",e.filter),e.Dd()?(t.ti?t.ti.after(l):t.Nj.prepend(l),t.ti=l):i!==null&&Qa(e,i,l),s!==null&&s(e,l)),!0)}_.$o=function(e,t,n,i){var r=(this.l&256)!==0;if(e.clipInsteadOfFill&&(r=!1),r){var o=t.se()?t.naturalBounds:t.actualBounds;t=Math.max(n.x,o.x),r=Math.max(n.y,o.y);var s=Math.min(n.right,o.right)-t;n=Math.min(n.bottom,o.bottom)-r,o=this.tb,o!==null&&(t=o.x,r=o.y,s=o.width,n=o.height),o=i.getAttribute("clip-path");var l=null;o!==null&&(l=e.svg.getElementById(o.split("#")[1].slice(0,-1))),l===null?(o="CLIP"+fo++,l=e.Ud("clipPath",{id:o}),t=e.Ud("rect",{x:t,y:r,width:s,height:n}),this instanceof wn&&(r=this.transform.copy().Vj(),t.setAttribute("transform","matrix("+r.m11+", "+r.m12+", "+r.m21+", "+r.m22+", "+r.dx+", "+r.dy+")")),l.appendChild(t),e.svg.appendChild(l),i.setAttributeNS(null,"clip-path","url(#"+o+")")):(e=l.firstElementChild,e.setAttribute("x",t.toString()),e.setAttribute("y",r.toString()),e.setAttribute("width",s.toString()),e.setAttribute("height",n.toString()))}else i.removeAttributeNS(null,"clip-path"),Rl(e,i)};function Rl(e,t){t=t.getAttribute("clip-path"),t!==null&&(e=e.svg.getElementById(t.split("#")[1].slice(0,-1)),e!==null&&e.remove())}function Ja(e){if(e.svg!==null){var t=e.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),n=e.svg.ownerDocument;if(t!==null){t=_i(t);for(var i=t.next();!i.done;i=t.next())i=n.getElementById(i.value.split("#")[1].slice(0,-1)),i!==null&&i.remove()}e.svg.remove()}}_.hh=function(){},_.lv=function(){this.Uc=!0},_.kk=function(e,t,n){if(this.Uc)return this.lv(),this.Uc=!1;if(t=this.svg,t===null)return!1;if(!this.visible)return t.remove(),!1;if(t.nodeName!=="g"&&n||t.nodeName==="g"&&!n)return!1;var i=this.transform,r=this instanceof wn?yh(this):!1;if(!(this instanceof wn&&r))if(this instanceof Fl){var o=this.bt;e.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy],o!==null&&ry(e,o[0],o[1],o[2],o[3],o[4],o[5],o[6],o[7]),n?t.lastElementChild.setAttributeNS(null,"transform",oy(e)):t.setAttributeNS(null,"transform",oy(e))}else if(!n||this instanceof wn)t.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");else if(this instanceof nr){o=t.getElementsByTagName("path");for(var s=0;s<o.length;s++)o[s].setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")")}else t.lastElementChild.setAttributeNS(null,"transform","matrix("+i.m11+", "+i.m12+", "+i.m21+", "+i.m22+", "+i.dx+", "+i.dy+")");return o=this.Dd()?this.opacity*e.globalAlpha:this.opacity,o===1?t.removeAttribute("opacity"):t.setAttributeNS(null,"opacity",o.toString()),e.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||t.gd!==void 0)&&(o=t.gd,this.areaBackground===null?(t.gd.remove(),t.gd=void 0):(s=i.copy().Vj(),e.rb.ha=[s.m11,s.m12,s.m21,s.m22,s.dx,s.dy],gu(this,e,this.naturalBounds,this.actualBounds),e.rb.ha=[1,0,0,1,0,0],t.gd?(s=t.gd.getAttribute("filter"),s!==null&&e.ad.setAttribute("filter",s),t.gd.replaceWith(e.ad)):t.prepend(e.ad),t.gd=e.ad),o&&E0(e,o)),(this.background!==null||t.Ma!==void 0)&&(o=t.Ma,this.background===null?(E0(e,t.Ma),t.Ma.remove(),t.Ma=void 0):((r||n&&!(this instanceof wn))&&(e.rb.ha=[i.m11,i.m12,i.m21,i.m22,i.dx,i.dy]),Yl(this,e,this.naturalBounds,this.actualBounds),t.Ma?(E0(e,t.Ma),n=t.Ma.getAttribute("filter"),n!==null&&e.ad.setAttribute("filter",n),t.Ma.replaceWith(e.ad)):t.prepend(e.ad),t.Ma=e.ad),o&&E0(e,o)),this.$o(e,this.panel,this.actualBounds,t),!0},_.nk=function(e){if(this.background!==null||this.areaBackground!==null)return!0;var t=(this.l&256)!==0;return e.clipInsteadOfFill&&(t=!1),!!t};function gs(e,t,n,i,r,o,s){if(n!==null){var l=1,u=1;if(typeof n=="string")i?t.fillStyle=n:t.strokeStyle=n;else if(n.type===vh)i?t.fillStyle=n.color:t.strokeStyle=n.color;else{var f=e.kq();if(l=o.width,u=o.height,r?(l=s.width,u=s.height):i||(l+=f,u+=f),(o=t instanceof yd)&&n.xe&&(n.type===Ef||n.yk===l&&n.ft===u))var p=n.xe;else{var x=0,N=0,O=0,F=0,K=0,ye=0;if(ye=K=0,r?(K=s.x,ye=s.y):i||(K-=f/2,ye-=f/2),x=n.start.x*l+n.start.offsetX,N=n.start.y*u+n.start.offsetY,O=n.end.x*l+n.end.offsetX,F=n.end.y*u+n.end.offsetY,x+=K,O+=K,N+=ye,F+=ye,n.type===eh)p=t.createLinearGradient(x,N,O,F);else if(n.type===Ou)ye=isNaN(n.endRadius)?Math.max(l,u)/2:n.endRadius,isNaN(n.startRadius)?(K=0,ye=Math.max(l,u)/2):K=n.startRadius,p=t.createRadialGradient(x,N,K,O,F,ye);else if(n.type===Ef)try{p=t.createPattern(n.pattern,"repeat")}catch(Oe){p=null}if(n.type!==Ef&&(r=n.colorStops,r!==null))for(r=r.iterator;r.next();)p.addColorStop(r.key,r.value);if(o&&(n.xe=p,p!==null&&(n.yk=l,n.ft=u),p===null&&n.type===Ef&&n.yk!==-1)){n.yk=-1;var ae=e.diagram;ae!==null&&n.yk===-1&&ni(function(){ae.redraw()},600)}}i?t.fillStyle=p:t.strokeStyle=p}}}_.rg=function(e){if(e instanceof wn)e:{if(this!==e&&e!==null)for(var t=this.panel;t!==null;){if(t===e){e=!0;break e}t=t.panel}e=!1}else e=!1;return e},_.Ed=function(){if(!this.visible)return!1;var e=this.panel;return e!==null?e.Ed():!0},_.If=function(){for(var e=this instanceof wn?this:this.panel;e!==null&&e.isEnabled;)e=e.panel;return e===null};function xa(e){if(e.l&2048){var t=e.Ab;if(t.reset(),!e.Ib.w()||!e.uc.w()){_u(e,!1);return}if(t.translate(e.Ib.x-e.uc.x,e.Ib.y-e.uc.y),e.scale!==1||e.angle!==0){var n=e.naturalBounds;e.no(t,n.x,n.y,n.width,n.height)}_u(e,!1),Iu(e,!0)}e.l&4096&&(t=e.panel,t===null?(e.wh.set(e.Ab),e.Kk=e.scale,Iu(e,!1)):t.oe!==null&&(n=e.wh,n.reset(),t.se()?n.multiply(t.wh):t.panel!==null&&n.multiply(t.panel.wh),n.multiply(e.Ab),e.Kk=e.scale*t.Kk,Iu(e,!1)))}_.no=function(e,t,n,i,r){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=ce.alloc();o.yi(t,n,i,r,vr),e.rotate(this.Kb,o.x,o.y),ce.free(o)}},_.v=function(e){if(!vu(this)){e===void 0&&(e=!1),Bs(this,!0),Fc(this,!0);var t=this.panel;t===null||e||t.v()}},_.Uj=function(){vu(this)||(Bs(this,!0),Fc(this,!0))};function dl(e){if(!fl(e)){var t=e.panel;t!==null?t.v():e.Dd()&&(t=e.diagram,t!==null&&(t.De.add(e),e instanceof Vn&&e.Bd(),t.$b())),Fc(e,!0)}}_.Uk=function(){!(this.l&2048)&&(_u(this,!0),Iu(this,!0))},_.Wu=function(){Iu(this,!0)},_.N=function(){var e=this.part;e!==null&&e.N()};function Dl(e,t){var n=e.stretch,i=e.panel;return i!==null&&i.type===wn.Table?hc(e,i.Fb(e.row),i.Eb(e.column),t):i!==null&&i.type===wn.Auto&&i.Pb()===e?ga(e,Sn,t):n===Ji?i!==null?i.type===wn.Spot&&i.Pb()===e?ga(e,Sn,t):(n=i.defaultStretch,n===Ji?ga(e,mn,t):ga(e,n,t)):ga(e,mn,t):ga(e,n,t)}function hc(e,t,n,i){var r=e.stretch;if(r!==Ji)return ga(e,r,i);var o=r=null;switch(t.stretch){case Mi:o=!0;break;case Sn:o=!0}switch(n.stretch){case bi:r=!0;break;case Sn:r=!0}return t=e.panel.defaultStretch,r===null&&(r=t===bi||t===Sn),o===null&&(o=t===Mi||t===Sn),r===!0&&o===!0?ga(e,Sn,i):r===!0?ga(e,bi,i):o===!0?ga(e,Mi,i):ga(e,mn,i)}function ga(e,t,n){if(n)return t;if(t===mn||(n=e.desiredSize,n.w()))return mn;if(e=e.angle,!isNaN(n.width))if(e!==90&&e!==270){if(t===bi)return mn;if(t===Sn)return Mi}else{if(t===Mi)return mn;if(t===Sn)return bi}if(!isNaN(n.height))if(e!==90&&e!==270){if(t===Mi)return mn;if(t===Sn)return bi}else{if(t===bi)return mn;if(t===Sn)return Mi}return t}function Ju(e,t){e.l=t?e.l|512:e.l&-513}function ka(e){return(e.l&1024)!==0}function zd(e,t){e.l=t?e.l|1024:e.l&-1025}function _u(e,t){e.l=t?e.l|2048:e.l&-2049}function Iu(e,t){e.l=t?e.l|4096:e.l&-4097}function vu(e){return(e.l&8192)!==0}function Bs(e,t){e.l=t?e.l|8192:e.l&-8193}function fl(e){return(e.l&16384)!==0}function Fc(e,t){e.l=t?e.l|16384:e.l&-16385}_.Gj=function(){this.svg=null},_.wi=function(e){this.Me=e,this.svg!==null&&this.svg.remove()},_.Av=function(){},_.zv=function(e){return this.pa=e,dl(this),!0},_.mm=function(e,t){(this.pa.x!==e||this.pa.y!==t)&&(this.pa.h(e,t),this.Uk())},_.kq=function(){return 0};function gd(e){var t=e.part;if(t instanceof Vn&&(e.portId!==null||e===t.port)){var n=t.diagram;n===null||n.undoManager.isUndoingRedoing||Jy(t,e)}}function ny(e){var t=e.diagram;t===null||t.undoManager.isUndoingRedoing||(e instanceof wn?e instanceof Vn?e.Bd():e.qm(e,function(n){gd(n)}):gd(e))}_.bind=function(e,t,n,i){var r=null;return typeof e=="string"?r=new Is(e,t,n,i):r=e,r.xd=this,e=this.ih(),e!==null&&Sy(e)&&ut("Cannot add a Binding to a template that has already been copied: "+r),this.localBindings===null&&(this.localBindings=new Xt),this.localBindings.add(r),this},_.set=function(e){return Object.assign(this,e),this},_.Du=function(e){return hg(this,e),this},_.apply=function(e){return e(this),this},_.nm=function(e){return Ya(this,e),this},_.pz=function(){return this.ih()},_.ih=function(){for(var e=this instanceof wn?this:this.panel;e!==null;){if(e.allBindings!==null)return e;e=e.panel}return null},_.Jv=function(e){return e.xd=this,this.animationTriggers===null&&(this.animationTriggers=new ii),this.animationTriggers.add(e.propertyName,e),this};function Mu(e,t){for(var n=1;n<arguments.length;++n);n=arguments;var i=null,r=null;if(typeof e=="function")r=e;else if(typeof e=="string"){var o=gf.I(e);typeof o=="function"?(n=Mt(arguments),i=o(n),Zt(i)||ut('GraphObject.make invoked object builder "'+e+'", but it did not return an Object')):r=je.go[e]}if(i===null&&(r!=null&&r.constructor||ut("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+e),i=new r),r=1,i instanceof Z&&1<n.length){o=i;var s=n[1];(typeof s=="string"||s instanceof HTMLDivElement)&&(wi(o,s),r++)}for(;r<n.length;r++)o=n[r],o===void 0?ut("Undefined value at argument "+r+" for object being constructed by GraphObject.make: "+i):hg(i,o);return i}function hg(e,t){if(typeof t=="string")if(e instanceof vo)e.text=t;else if(e instanceof nr)e.figure=t;else if(e instanceof Fl)e.source=t;else if(e instanceof wn)t=qu.I(t),t!==null&&(e.type=t);else if(e instanceof Wr){var n=Ki(Wr,t);n!==null?e.type=n:ut("Unknown Brush type as an argument to GraphObject.make: "+t)}else e instanceof An?(t=Ki(An,t),t!==null&&(e.type=t)):e instanceof xr&&(t=Ki(xr,t),t!==null&&(e.type=t));else if(t instanceof nt)e instanceof wn||ut("A GraphObject can only be added to a Panel, not to: "+e),e.add(t);else if(t instanceof _s){var i;t.isRow&&typeof e.getRowDefinition=="function"?i=e.getRowDefinition(t.index):t.isRow||typeof e.getColumnDefinition!="function"||(i=e.getColumnDefinition(t.index)),i instanceof _s?_0(i,t):ut("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+e)}else if(t instanceof qt)typeof e.qb=="function"&&e.qb(t);else if(t instanceof Gs)e.type=t;else if(t instanceof Is)e instanceof nt||e instanceof _s?e.bind(t):ut("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+e);else if(t instanceof Zs)e instanceof nt?e.Jv(t):ut("An AnimationTrigger can only be applied to a GraphObject, not to: "+e);else if(t instanceof us)e instanceof An&&e.type===An.o?e.figures.add(t):ut("A PathFigure can only be added to a Path Geometry, not to: "+e);else if(t instanceof xr)e instanceof us?e.segments.add(t):ut("A PathSegment can only be added to a PathFigure, not to: "+e);else if(t instanceof Do)e instanceof Z||e instanceof Xi?e.layout=t:ut("A Layout can only be assigned to a Diagram or a Group, not to: "+e);else if(Array.isArray(t))for(n=0;n<t.length;n++)hg(e,t[n]);else if(typeof t=="object"&&t!==null)if(e instanceof Wr){n=new ue;for(var r in t)i=parseFloat(r),isNaN(i)?n[r]=t[r]:e.addColorStop(i,t[r]);Ya(e,n)}else if(e instanceof _s){t.row!==void 0?(r=t.row,(r==null||r===1/0||isNaN(r)||0>r)&&ut("Must specify non-negative integer row for RowColumnDefinition "+t+", not: "+r),e.isRow=!0,e.index=r):t.column!==void 0&&(r=t.column,(r==null||r===1/0||isNaN(r)||0>r)&&ut("Must specify non-negative integer column for RowColumnDefinition "+t+", not: "+r),e.isRow=!1,e.index=r),r=new ue;for(n in t)n!=="row"&&n!=="column"&&(r[n]=t[n]);Ya(e,r)}else Ya(e,t);else ut('Unknown initializer "'+t+'" for object being constructed by GraphObject.make: '+e)}function gh(e,t){gf.add(e,t)}function x0(e,t,n){n===void 0&&(n=null);var i=e[1];if(typeof n=="function"?n(i):typeof i=="string")return e.splice(1,1),i;if(t===void 0)throw Error("no "+(typeof n=="function"?"satisfactory":"string")+" argument for GraphObject builder "+e[0]);return t}at.Object.defineProperties(nt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(e){this.bindingId!==e&&(this.A===null&&(this.A=new Ud),this.A.zp=e)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(e){this.localBindings!==e&&(this.A===null&&(this.A=new Ud),this.A.te=e)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(e){this.srcBindings!==e&&(this.A===null&&(this.A=new Ud),this.A.wm=e)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(e){var t=this.shadowVisible;t!==e&&(sr(this),this.A.Ci=e,this.Uc=!0,this.N(),this.g("shadowVisible",t,e))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(e){var t=this.enabledChanged;t!==e&&(sr(this),this.A.Hb=e,this.g("enabledChanged",t,e))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:gl},set:function(e){var t=this.segmentOrientation;t!==e&&(this.Ua===null&&(this.Ua=new $h),this.Ua.rr=e,this.v(),this.g("segmentOrientation",t,e),e===gl&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(e){e=Math.round(e);var t=this.segmentIndex;t!==e&&(this.Ua===null&&(this.Ua=new $h),this.Ua.u=e,this.v(),this.g("segmentIndex",t,e))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(e){isNaN(e)||0>e?e=0:1<e&&(e=1);var t=this.segmentFraction;t!==e&&(this.Ua===null&&(this.Ua=new $h),this.Ua.o=e,this.v(),this.g("segmentFraction",t,e))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:br},set:function(e){var t=this.segmentOffset;t.D(e)||(e=e.J(),this.Ua===null&&(this.Ua=new $h),this.Ua.F=e,this.v(),this.g("segmentOffset",t,e))}},stretch:{get:function(){return this.A!==null?this.A.hg:Ji},set:function(e){var t=this.stretch;t!==e&&(sr(this),this.A.hg=e,this.v(),this.g("stretch",t,e))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(e){var t=this.name;t!==e&&(sr(this),this.A.xa=e,this.part!==null&&(this.part.Rh=null),this.g("name",t,e))}},opacity:{get:function(){return this.pb},set:function(e){var t=this.pb;t!==e&&((0>e||1<e)&&rn(e,"0 <= value <= 1",nt,"opacity"),this.pb=e,this.g("opacity",t,e),e=this.diagram,t=this.part,e!==null&&t!==null&&e.N(Ed(t,t.actualBounds)))}},filter:{get:function(){return this.bn},set:function(e){var t=this.bn;t!==e&&(this.bn=e,this.Uc=!0,this.g("filter",t,e),e=this.diagram,t=this.part,e!==null&&t!==null&&e.N(Ed(t,t.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(e){var t=(this.l&1)!==0;t!==e&&(this.l^=1,this.g("visible",t,e),t=this.panel,t!==null?t.v():this.Dd()&&this.Zb(e),this.N(),ny(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(e){var t=(this.l&2)!==0;t!==e&&(this.l^=2,this.g("pickable",t,e))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(e){var t=(this.l&4)!==0;t!==e&&(this.l^=4,this.g("fromLinkableDuplicates",t,e))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(e){var t=(this.l&8)!==0;t!==e&&(this.l^=8,this.g("fromLinkableSelfNode",t,e))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(e){var t=(this.l&16)!==0;t!==e&&(this.l^=16,this.g("toLinkableDuplicates",t,e))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(e){var t=(this.l&32)!==0;t!==e&&(this.l^=32,this.g("toLinkableSelfNode",t,e))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(e){var t=(this.l&64)!==0;t!==e&&(this.l^=64,this.v(),this.g("isPanelMain",t,e))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(e){var t=(this.l&128)!==0;t!==e&&(this.l^=128,this.g("isActionable",t,e))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(e){var t=this.areaBackground;t!==e&&(e!==null&&$d(e,"GraphObject.areaBackground"),e instanceof Wr&&e.freeze(),sr(this),this.A.gd=e,this.N(),this.g("areaBackground",t,e))}},background:{get:function(){return this.Ma},set:function(e){var t=this.Ma;t!==e&&(e!==null&&$d(e,"GraphObject.background"),e instanceof Wr&&e.freeze(),this.Ma=e,this.N(),this.g("background",t,e))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var e;for(e=this.panel;e;){if(e instanceof Ei)return this.Ng=e;e=e.panel}return null}},svg:{get:function(){return this.V},set:function(e){this.V=e}},panel:{get:function(){return this.Me}},layer:{get:function(){var e=this.part;return e!==null?e.layer:null}},diagram:{get:function(){var e=this.part;return e!==null?e.diagram:null}},position:{get:function(){return this.pa},set:function(e){var t=e.x,n=e.y,i=this.pa,r=i.x;i=i.y,(r===t||isNaN(r)&&isNaN(t))&&(i===n||isNaN(i)&&isNaN(n))?this.Av():(e=e.copy(),this.zv(e,r,i)&&this.g("position",new ce(r,i),e))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(e){var t=this.Ca;t!==e&&(0>=e&&ut("GraphObject.scale for "+this+" must be greater than zero, not: "+e),this.Ca=e,this.v(),this.g("scale",t,e))}},angle:{get:function(){return this.Kb},set:function(e){var t=this.Kb;t!==e&&(e%=360,0>e&&(e+=360),t!==e&&(this.Kb=e,ny(this),this.v(),this.g("angle",t,e)))}},desiredSize:{get:function(){return this.jd},set:function(e){var t=e.width,n=e.height,i=this.jd,r=i.width,o=i.height;(r===t||isNaN(r)&&isNaN(t))&&(o===n||isNaN(o)&&isNaN(n))||(this.jd=e=e.J(),this.v(),this instanceof nr&&this.qc(),this.g("desiredSize",i,e),ka(this)&&(e=this.part,e!==null&&(To(this,e,"width"),To(this,e,"height"))))}},width:{get:function(){return this.jd.width},set:function(e){var t=this.jd.width;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new mi(e,this.jd.height).freeze(),this.v(),this instanceof nr&&this.qc(),this.g("desiredSize",t,e),ka(this)&&(e=this.part,e!==null&&To(this,e,"width")))}},height:{get:function(){return this.jd.height},set:function(e){var t=this.jd.height;t===e||isNaN(t)&&isNaN(e)||(t=this.jd,this.jd=e=new mi(this.jd.width,e).freeze(),this.v(),this instanceof nr&&this.qc(),this.g("desiredSize",t,e),ka(this)&&(e=this.part,e!==null&&To(this,e,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ws},set:function(e){var t=this.minSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=0),isNaN(e.height)&&(e.height=0),e.freeze(),sr(this),this.A.u=e,this.v(),this.g("minSize",t,e))}},maxSize:{get:function(){return this.A!==null?this.A.o:da},set:function(e){var t=this.maxSize;t.D(e)||(e=e.copy(),isNaN(e.width)&&(e.width=1/0),isNaN(e.height)&&(e.height=1/0),e.freeze(),sr(this),this.A.o=e,this.v(),this.g("maxSize",t,e))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.Kg;t.D(e)||(this.Kg=e=e.J(),this.v(),this.g("margin",t,e))}},transform:{get:function(){return this.l&2048&&xa(this),this.Ab}},oe:{get:function(){return this.l&4096&&xa(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(e){this.animationTriggers!==e&&(sr(this),this.A.hb=e)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:mn},set:function(e){this.reshapingBehavior!==e&&(sr(this),this.A.Pf=e)}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(e.Mc()&&!e.Xb()&&ut("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+e),this.Jb=e=e.J(),dl(this),this.g("alignment",t,e))}},column:{get:function(){return this.Ag},set:function(e){e=Math.round(e);var t=this.Ag;t!==e&&(0>e&&rn(e,">= 0",nt,"column"),this.Ag=e,this.v(),this.g("column",t,e),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(e){e=Math.round(e);var t=this.columnSpan;t!==e&&(1>e&&rn(e,">= 1",nt,"columnSpan"),sr(this),this.A.ob=e,this.v(),this.g("columnSpan",t,e))}},row:{get:function(){return this.io},set:function(e){e=Math.round(e);var t=this.io;t!==e&&(0>e&&rn(e,">= 0",nt,"row"),this.io=e,this.v(),this.g("row",t,e),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(e){e=Math.round(e);var t=this.rowSpan;t!==e&&(1>e&&rn(e,">= 1",nt,"rowSpan"),sr(this),this.A.Bi=e,this.v(),this.g("rowSpan",t,e))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(e){var t=this.spanAllocation;t!==e&&(sr(this),this.A.Di=e,this.v(),this.g("spanAllocation",t,e))}},alignmentFocus:{get:function(){return this.sk},set:function(e){var t=this.sk;t.D(e)||(this.sk=e=e.J(),this.v(),this.g("alignmentFocus",t,e))}},portId:{get:function(){return this.Yn},set:function(e){var t=this.Yn;if(t!==e){var n=this.part;n===null||n instanceof Vn||ut("Cannot set portID on a Link: "+e),t!==null&&n!==null&&Qg(n,this),this.Yn=e,e!==null&&n!==null&&(n.Te=!0,t1(n,this)),this.g("portId",t,e)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Di},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),gd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&rn(e,">= 0",nt,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),gd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.g("toShortLength",t,e),gd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(e){var t=this.toLinkable;t!==e&&(this.Xc(),this.ba.Tr=e,this.g("toLinkable",t,e))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(e){var t=this.toMaxLinks;t!==e&&(0>e&&rn(e,">= 0",nt,"toMaxLinks"),this.Xc(),this.ba.Ur=e,this.g("toMaxLinks",t,e))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Di},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),gd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&rn(e,">= 0",nt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),gd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.g("fromShortLength",t,e),gd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(e){var t=this.fromLinkable;t!==e&&(this.Xc(),this.ba.hq=e,this.g("fromLinkable",t,e))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(e){var t=this.fromMaxLinks;t!==e&&(0>e&&rn(e,">= 0",nt,"fromMaxLinks"),this.Xc(),this.ba.iq=e,this.g("fromMaxLinks",t,e))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(e){var t=this.cursor;t!==e&&(sr(this),this.A.j=e,this.g("cursor",t,e))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(e){var t=this.click;t!==e&&(sr(this),this.A.zh=e,this.g("click",t,e))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(e){var t=this.doubleClick;t!==e&&(sr(this),this.A.Fh=e,this.g("doubleClick",t,e))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(e){var t=this.contextClick;t!==e&&(sr(this),this.A.Bh=e,this.g("contextClick",t,e))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(e){var t=this.mouseEnter;t!==e&&(sr(this),this.A.Mh=e,this.g("mouseEnter",t,e))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(e){var t=this.mouseLeave;t!==e&&(sr(this),this.A.Ph=e,this.g("mouseLeave",t,e))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(e){var t=this.mouseOver;t!==e&&(sr(this),this.A.Qh=e,this.g("mouseOver",t,e))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(e){var t=this.mouseHover;t!==e&&(sr(this),this.A.Oh=e,this.g("mouseHover",t,e))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(e){var t=this.mouseHold;t!==e&&(sr(this),this.A.Nh=e,this.g("mouseHold",t,e))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(e){var t=this.mouseDragEnter;t!==e&&(sr(this),this.A.Of=e,this.g("mouseDragEnter",t,e))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(e){var t=this.mouseDragLeave;t!==e&&(sr(this),this.A.Xd=e,this.g("mouseDragLeave",t,e))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(e){var t=this.mouseDrop;t!==e&&(sr(this),this.A.Lh=e,this.g("mouseDrop",t,e))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(e){var t=this.actionDown;t!==e&&(sr(this),this.A.V=e,this.g("actionDown",t,e))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(e){var t=this.actionMove;t!==e&&(sr(this),this.A.ia=e,this.g("actionMove",t,e))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(e){var t=this.actionUp;t!==e&&(sr(this),this.A.Ha=e,this.g("actionUp",t,e))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(e){var t=this.actionCancel;t!==e&&(sr(this),this.A.F=e,this.g("actionCancel",t,e))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(e){var t=this.toolTip;t!==e&&(sr(this),this.A.$h=e,this.g("toolTip",t,e))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(e){var t=this.contextMenu;t!==e&&(sr(this),this.A.Ch=e,this.g("contextMenu",t,e))}}}),nt.prototype.trigger=nt.prototype.Jv,nt.prototype.findBindingPanel=nt.prototype.ih,nt.prototype.findTemplateBinder=nt.prototype.pz,nt.prototype.setProperties=nt.prototype.nm,nt.prototype.apply=nt.prototype.apply,nt.prototype.attach=nt.prototype.Du,nt.prototype.set=nt.prototype.set,nt.prototype.isEnabledObject=nt.prototype.If,nt.prototype.isVisibleObject=nt.prototype.Ed,nt.prototype.isContainedBy=nt.prototype.rg,nt.prototype.getNearestIntersectionPoint=nt.prototype.rs,nt.prototype.getLocalPoint=nt.prototype.qs,nt.prototype.getDocumentScale=nt.prototype.Df,nt.prototype.getDocumentAngle=nt.prototype.li,nt.prototype.getDocumentBounds=nt.prototype.mi,nt.prototype.getDocumentPoint=nt.prototype.ga,nt.prototype.intersectsRect=nt.prototype.Yc,nt.prototype.containedInRect=nt.prototype.fh,nt.prototype.containsRect=nt.prototype.Re,nt.prototype.containsPoint=nt.prototype.ca,nt.prototype.raiseChanged=nt.prototype.g,nt.prototype.raiseChangedEvent=nt.prototype.cb,nt.prototype.addCopyProperty=nt.prototype.Vw;var gf=null;nt.className="GraphObject",gf=new ii,gh("Button",function(){function e(n,i){return n.diagram.ic(n.documentPoint,function(r){for(;r.panel!==null&&!r.isActionable;)r=r.panel;return r},function(r){return r===i})!==null}var t=Mu(wn,wn.Auto,{isActionable:!0,enabledChanged:function(n,i){if(n instanceof wn){var r=n.fb("ButtonBorder");r!==null&&(r.fill=i?n._buttonFillNormal:n._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},Mu(nr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new ui(0,0,2.76142374915397,2.761423749153969),spot2:new ui(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return t.mouseEnter=function(n,i){if(i.If()&&i instanceof wn&&(n=i.fb("ButtonBorder"),n instanceof nr)){var r=i._buttonFillOver;i._buttonFillNormal=n.fill,n.fill=r,r=i._buttonStrokeOver,i._buttonStrokeNormal=n.stroke,n.stroke=r}},t.mouseLeave=function(n,i){i.If()&&i instanceof wn&&(n=i.fb("ButtonBorder"),n instanceof nr&&(n.fill=i._buttonFillNormal,n.stroke=i._buttonStrokeNormal))},t.actionDown=function(n,i){if(i.If()&&i instanceof wn&&i._buttonFillPressed!==null&&n.button===0){var r=i.fb("ButtonBorder");if(r instanceof nr){n=n.diagram;var o=n.skipsUndoManager;n.skipsUndoManager=!0;var s=i._buttonFillPressed;i._buttonFillOver=r.fill,r.fill=s,s=i._buttonStrokePressed,i._buttonStrokeOver=r.stroke,r.stroke=s,n.skipsUndoManager=o}}},t.actionUp=function(n,i){if(i.If()&&i instanceof wn&&i._buttonFillPressed!==null&&n.button===0){var r=i.fb("ButtonBorder");if(r instanceof nr){var o=n.diagram,s=o.skipsUndoManager;o.skipsUndoManager=!0,e(n,i)?(r.fill=i._buttonFillOver,r.stroke=i._buttonStrokeOver):(r.fill=i._buttonFillNormal,r.stroke=i._buttonStrokeNormal),o.skipsUndoManager=s}}},t.actionCancel=function(n,i){if(i.If()&&i instanceof wn&&i._buttonFillPressed!==null){var r=i.fb("ButtonBorder");if(r instanceof nr){var o=n.diagram,s=o.skipsUndoManager;o.skipsUndoManager=!0,e(n,i)?(r.fill=i._buttonFillOver,r.stroke=i._buttonStrokeOver):(r.fill=i._buttonFillNormal,r.stroke=i._buttonStrokeNormal),o.skipsUndoManager=s}}},t.actionMove=function(n,i){if(i.If()&&i instanceof wn&&i._buttonFillPressed!==null){var r=n.diagram;if(r.firstInput.button===0&&(r.currentTool.standardMouseOver(),e(n,i)&&(n=i.fb("ButtonBorder"),n instanceof nr))){var o=r.skipsUndoManager;r.skipsUndoManager=!0;var s=i._buttonFillPressed;n.fill!==s&&(n.fill=s),s=i._buttonStrokePressed,n.stroke!==s&&(n.stroke=s),r.skipsUndoManager=o}}},t}),gh("TreeExpanderButton",function(){var e=Mu("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},Mu(nr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:As},new Is("figure","isTreeExpanded",function(t,n){return n=n.panel,t?n._treeExpandedFigure:n._treeCollapsedFigure}).cp()),{visible:!1},new Is("visible","isTreeLeaf",function(t){return!t}).cp());return e.click=function(t,n){if(n=n.part,n instanceof Fr&&(n=n.adornedPart),n instanceof Vn){var i=n.diagram;if(i!==null){if(i=i.commandHandler,n.isTreeExpanded){if(!i.canCollapseTree(n))return}else if(!i.canExpandTree(n))return;t.handled=!0,n.isTreeExpanded?i.collapseTree(n):i.expandTree(n)}}},e}),gh("SubGraphExpanderButton",function(){var e=Mu("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},Mu(nr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:As},new Is("figure","isSubGraphExpanded",function(t,n){return n=n.panel,t?n._subGraphExpandedFigure:n._subGraphCollapsedFigure}).cp()));return e.click=function(t,n){if(n=n.part,n instanceof Fr&&(n=n.adornedPart),n instanceof Xi){var i=n.diagram;if(i!==null){if(i=i.commandHandler,n.isSubGraphExpanded){if(!i.canCollapseSubGraph(n))return}else if(!i.canExpandSubGraph(n))return;t.handled=!0,n.isSubGraphExpanded?i.collapseSubGraph(n):i.expandSubGraph(n)}}},e}),gh("ToolTip",function(){return Mu(Fr,wn.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new ce(0,3),shadowBlur:5},Mu(nr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new ui(0,0,4,6),spot2:new ui(1,1,-4,-4)}))}),gh("ContextMenu",function(){return Mu(Fr,wn.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new ce(0,3),shadowBlur:5},new Is("background","",function(e){return e.adornedPart!==null&&e.placeholder!==null?null:"#F5F5F5"}))}),gh("ContextMenuButton",function(){var e=Mu("Button");e.stretch=bi;var t=e.fb("ButtonBorder");return t instanceof nr&&(t.figure="Rectangle",t.strokeWidth=0,t.spot1=new ui(0,0,2,3),t.spot2=new ui(1,1,-2,-2)),e}),gh("PanelExpanderButton",function(e){var t=x0(e,"COLLAPSIBLE"),n=Mu("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},Mu(nr,{name:"ButtonIcon",strokeWidth:2},new Is("geometryString","visible",function(i){return i?n._buttonExpandedFigure:n._buttonCollapsedFigure}).cp(t)));return e=n.fb("ButtonBorder"),e instanceof nr&&(e.stroke=null,e.fill="rgba(0, 0, 0, 0)"),n.click=function(i,r){var o=r.diagram;if(o!==null&&!o.isReadOnly){var s=r.ih();s===null&&(s=r.part),s!==null&&(r=s.fb(t),r!==null&&(i.handled=!0,o.Ea("Collapse/Expand Panel"),r.visible=!r.visible,o.eb("Collapse/Expand Panel")))}},n}),gh("CheckBoxButton",function(e){var t=x0(e);return e=Mu("Button",{desiredSize:new mi(14,14)},Mu(nr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:Sn,geometryStretch:di,visible:!1},t!==""?new Is("visible",t).Kx():[])),e.click=function(n,i){if(i instanceof wn){var r=n.diagram;if(!(r===null||r.isReadOnly||t!==""&&r.model.isReadOnly)){n.handled=!0;var o=i.fb("ButtonIcon");r.Ea("checkbox"),o.visible=!o.visible,typeof i._doClick=="function"&&i._doClick(n,i),r.eb("checkbox")}}},e}),gh("CheckBox",function(e){e=x0(e),e=Mu("CheckBoxButton",e,{name:"Button",isActionable:!1,margin:new vi(0,1,0,0)});var t=Mu(wn,"Horizontal",e,{isActionable:!0,cursor:e.cursor,margin:new vi(1),_buttonFillNormal:e._buttonFillNormal,_buttonStrokeNormal:e._buttonStrokeNormal,_buttonFillOver:e._buttonFillOver,_buttonStrokeOver:e._buttonStrokeOver,_buttonFillPressed:e._buttonFillPressed,_buttonStrokePressed:e._buttonStrokePressed,_buttonFillDisabled:e._buttonFillDisabled,mouseEnter:e.mouseEnter,mouseLeave:e.mouseLeave,actionDown:e.actionDown,actionUp:e.actionUp,actionCancel:e.actionCancel,actionMove:e.actionMove,click:e.click,_buttonClick:e.click});return e.mouseEnter=null,e.mouseLeave=null,e.actionDown=null,e.actionUp=null,e.actionCancel=null,e.actionMove=null,e.click=null,t}),nt.None=mn=new qt(nt,"None",0),nt.Default=Ji=new qt(nt,"Default",0),nt.Vertical=Mi=new qt(nt,"Vertical",4),nt.Horizontal=bi=new qt(nt,"Horizontal",5),nt.Fill=Sn=new qt(nt,"Fill",3),nt.Uniform=di=new qt(nt,"Uniform",1),nt.UniformToFill=Sr=new qt(nt,"UniformToFill",2),nt.FlipVertical=ar=new qt(nt,"FlipVertical",1),nt.FlipHorizontal=Mr=new qt(nt,"FlipHorizontal",2),nt.FlipBoth=Qr=new qt(nt,"FlipBoth",3),nt.make=Mu,nt.getBuilders=function(){var e=new ii,t;for(t in gf)if(t!==t.toLowerCase()){var n=gf.I(t);typeof n=="function"&&e.add(t,n)}return e.freeze(),e},nt.defineBuilder=gh,nt.build=function(e,t,n){for(var i=[],r=2;r<arguments.length;++r)i[r-2]=arguments[r];if(r=gf.I(e),typeof r=="function"&&(i=r([e].concat(i)),i instanceof nt))return t&&i.set(t),i;ut('GraphObject.build invoked object builder "'+e+'", but it did not return an Object')},nt.takeBuilderArgument=x0;function Ud(){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=ws,this.o=da,this.hg=Ji,this.ob=this.Bi=1,this.Pf=mn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Ud.prototype.copy=function(){var e=new Ud;return e.xa=this.xa,e.zp=this.zp,e.te=this.te,e.nb=this.nb,e.j=this.j,e.zh=this.zh,e.Fh=this.Fh,e.Bh=this.Bh,e.Mh=this.Mh,e.Ph=this.Ph,e.Qh=this.Qh,e.Oh=this.Oh,e.Nh=this.Nh,e.Of=this.Of,e.Xd=this.Xd,e.Lh=this.Lh,e.V=this.V,e.ia=this.ia,e.Ha=this.Ha,e.F=this.F,e.$h=this.$h,e.Ch=this.Ch,e.Hb=this.Hb,e.Di=this.Di,e.hb=this.hb,e.u=this.u.J(),e.o=this.o.J(),e.hg=this.hg,e.Bi=this.Bi,e.ob=this.ob,e.Pf=this.Pf,e.gd=this.gd,e.Ci=this.Ci,e.Pc=this.Pc,e.Oc=this.Oc,e};function $h(){this.u=-1/0,this.o=0,this.F=br,this.rr=gl,this.j=this.V="None"}$h.prototype.copy=function(){var e=new $h;return e.u=this.u,e.o=this.o,e.F=this.F.J(),e.rr=this.rr,e.V=this.V,e.j=this.j,e},$h.className="LinkElementSettings";function mp(){this.yj=this.Xi=Lr,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}mp.prototype.copy=function(){var e=new mp;return e.Xi=this.Xi.J(),e.yj=this.yj.J(),e.Vi=this.Vi,e.wj=this.wj,e.Wi=this.Wi,e.xj=this.xj,e.hq=this.hq,e.Tr=this.Tr,e.iq=this.iq,e.Ur=this.Ur,e},mp.className="LinkSettings";function vd(){this.ha=[1,0,0,1,0,0]}vd.prototype.copy=function(){var e=new vd;return e.ha[0]=this.ha[0],e.ha[1]=this.ha[1],e.ha[2]=this.ha[2],e.ha[3]=this.ha[3],e.ha[4]=this.ha[4],e.ha[5]=this.ha[5],e},vd.prototype.translate=function(e,t){this.ha[4]+=this.ha[0]*e+this.ha[2]*t,this.ha[5]+=this.ha[1]*e+this.ha[3]*t},vd.prototype.scale=function(e,t){this.ha[0]*=e,this.ha[1]*=e,this.ha[2]*=t,this.ha[3]*=t},vd.prototype.rotate=function(e,t,n){if(360<=e?e-=360:0>e&&(e+=360),e!==0){if(this.translate(t,n),e===90){e=0;var i=1}else e===180?(e=-1,i=0):e===270?(e=0,i=-1):(i=e*Math.PI/180,e=Math.cos(i),i=Math.sin(i));var r=this.ha[1]*e+this.ha[3]*i,o=this.ha[0]*-i+this.ha[2]*e,s=this.ha[1]*-i+this.ha[3]*e;this.ha[0]=this.ha[0]*e+this.ha[2]*i,this.ha[1]=r,this.ha[2]=o,this.ha[3]=s,this.translate(-t,-n)}},vd.className="STransform";function Hd(e){this.type=e,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Hd.prototype.addColorStop=function(e,t){this.gx.push({offset:e,color:t})},Hd.className="SGradient";function Ac(e,t,n){this.ownerDocument=e=t===void 0?je.document:t,this.cA="http://www.w3.org/2000/svg",e!==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 tu(this,n)}Ac.prototype.resize=function(e,t,n,i){return this.width!==e||this.height!==t?(this.width=e,this.height=t,this.style.width=n+"px",this.style.height=i+"px",this.Oa.setAttributeNS(null,"width",n+"px"),this.Oa.setAttributeNS(null,"height",i+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+n+" "+i),this.context.ww.firstElementChild.setAttributeNS(null,"width",n+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",i+"px"),!0):!1},Ac.prototype.Ud=function(e,t,n){if(e=this.ownerDocument.createElementNS(this.cA,e),Zt(t))for(var i in t)e.setAttributeNS(i==="href"?"http://www.w3.org/1999/xlink":"",i,t[i]);return n!==void 0&&(e.textContent=n),e},Ac.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Ac.prototype.focus=function(){this.Oa.focus()},Ac.prototype.mx=function(){this.ownerDocument=null},at.Object.defineProperties(Ac.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(e){this.Oa.setAttribute("width",e+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(e){this.Oa.setAttribute("height",e+"px")}},style:{get:function(){return this.Oa.style}}}),Ac.className="SVGSurface";function tu(e,t){this.Gv=e,this.svg=e.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 vd,this.j=S0(this),this.Nj=S0(this,"gojs-diagram"),this.Hl=this.ti=null;var n=fo++,i=this.Ud("clipPath",{id:"mainClip"+n});i.appendChild(this.Ud("rect",{x:0,y:0,width:e.width,height:e.height})),this.ww=i,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(i),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+n+")"),this.eA={},this.isTemporary=!!t,this.filter="",this.bk=null}function iy(e,t,n,i,r,o,s){e.Nj===void 0?gp(e,t,n,i,r,o,s):e.Nj.setAttribute("transform","matrix("+t+", "+n+", "+i+", "+r+", "+o+", "+s+")")}_=tu.prototype,_.arc=function(e,t,n,i,r,o,s,l){var u=2*Math.PI,f=u-1e-6,p=n*Math.cos(i),x=n*Math.sin(i),N=e+p,O=t+x,F=o?0:1;i=o?i-r:r-i,(1e-6<Math.abs(s-N)||1e-6<Math.abs(l-O))&&this.path.push(["L",N,+O]),0>i&&(i=i%u+u),i>f?(this.path.push(["A",n,n,0,1,F,e-p,t-x]),this.path.push(["A",n,n,0,1,F,N,O])):1e-6<i&&this.path.push(["A",n,n,0,+(i>=Math.PI),F,e+n*Math.cos(r),t+n*Math.sin(r)])},_.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},_.Se=function(e){this.addPath(this.path,this.rb,e||0)},_.bezierCurveTo=function(e,t,n,i,r,o){this.path.push(["C",e,t,n,i,r,o])},_.clearRect=function(){},_.clip=function(){this.Yl.clipPath=!0},_.closePath=function(){this.path.push(["z"])},_.createLinearGradient=function(e,t,n,i){var r=new Hd("linear");return r.x1=e,r.y1=t,r.x2=n,r.y2=i,r},_.createPattern=function(e){var t="";e instanceof HTMLCanvasElement&&(t=e.toDataURL()),e instanceof HTMLImageElement&&(t=e.getAttribute("src"));var n=this.eA;if(n[t])return"url(#"+n[t]+")";var i="PATTERN"+fo++,r={x:0,y:0,width:e.width,height:e.height,href:t};return e=this.Ud("pattern",{width:e.width,height:e.height,id:i,patternUnits:"userSpaceOnUse"}),e.appendChild(this.Ud(pd,r)),this.svg.appendChild(e),n[t]=i,"url(#"+i+")"},_.createRadialGradient=function(e,t,n,i,r,o){var s=new Hd("radial");return s.x1=e,s.y1=t,s.r1=n,s.x2=i,s.y2=r,s.r2=o,s};function ry(e,t,n,i,r,o,s,l,u){i=l/i,r=u/r,o===0&&s===0||e.rb.translate(o,s),i===1&&r===1||e.rb.scale(i,r),t===0&&n===0||e.rb.translate(-t,-n)}_.drawImage=function(e,t,n,i,r,o,s,l,u){var f="";e instanceof HTMLCanvasElement&&(f=e.toDataURL()),e instanceof HTMLImageElement&&(f=e.getAttribute("src"));var p=e instanceof HTMLImageElement?e.naturalWidth:e.width;e=e instanceof HTMLImageElement?e.naturalHeight:e.height,i===void 0&&(o=t,s=n,l=i=p,u=r=e),i=i||0,r=r||0,l=l||0,u=u||0,ry(this,t,n,i,r,o||0,s||0,l,u),o={x:0,y:0,width:p||i,height:e||r,href:f},Ke.$(i,l)&&Ke.$(r,u)?f.toLowerCase().indexOf(".svg")===-1&&f.toLowerCase().indexOf("data:image/svg")===-1&&(o.preserveAspectRatio="xMidYMid slice"):o.preserveAspectRatio="none",(t!==0||n!==0||i!==p||r!==e)&&(i+=t,r+=n,o["clip-path"]="path('M "+t+","+n+" L "+i+" "+n+" L "+i+" "+r+" L "+t+" "+r+" z')"),vf(this,pd,o,this.rb),this.addElement(pd,o)},_.fill=function(e){e&&(this.Yl["fill-rule"]="evenodd"),dg(this,this.Yl)},_.ng=function(e,t){this.clipInsteadOfFill?this.clip():this.fill(t)},_.fillRect=function(e,t,n,i){e=[e,t,n,i],e={x:e[0],y:e[1],width:e[2],height:e[3]},vf(this,"fill",e,this.rb),this.addElement("rect",e)},_.ox=function(e,t,n,i){e={x:e,y:t,width:n,height:i},vf(this,"fill",e,this.rb),dg(this,e),this.svg.prepend(this.Ud("rect",e))},_.fillText=function(e,t,n){e=[e,t,n],t=this.textAlign,t==="left"?t="start":t==="right"?t="end":t==="center"&&(t="middle"),t={x:e[1],y:e[2],style:"font: "+this.font,"text-anchor":t},vf(this,"fill",t,this.rb),this.addElement("text",t,e[0])},_.lineTo=function(e,t){this.path.push(["L",e,t])},_.moveTo=function(e,t){this.path.push(["M",e,t])},_.quadraticCurveTo=function(e,t,n,i){this.path.push(["Q",e,t,n,i])},_.rect=function(e,t,n,i){this.path.push(["M",e,t],["L",e+n,t],["L",e+n,t+i],["L",e,t+i],["z"])},_.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var e=this.stack.pop();this.fillStyle=e.fillStyle,this.font=e.font,this.globalAlpha=e.globalAlpha,this.lineCap=e.lineCap,this.lineDashOffset=e.lineDashOffset,this.lineJoin=e.lineJoin,this.lineWidth=e.lineWidth,this.miterLimit=e.miterLimit,this.shadowBlur=e.shadowBlur,this.shadowColor=e.shadowColor,this.shadowOffsetX=e.shadowOffsetX,this.shadowOffsetY=e.shadowOffsetY,this.strokeStyle=e.strokeStyle,this.textAlign=e.textAlign,this.bk=e.bk},_.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 e=[],t=0;t<this.path.length;t++)e.push(this.path[t]);this.stack.push(e),this.stack.push(this.rb.copy())},_.setTransform=function(e,t,n,i,r,o){e===1&&t===0&&n===0&&i===1&&r===0&&o===0||gp(this,e,t,n,i,r,o)};function oy(e){return e=e.rb.ha,"matrix("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")"}_.scale=function(e,t){this.rb.scale(e,t)},_.translate=function(e,t){this.rb.translate(e,t)},_.transform=function(){},_.yc=function(){},_.stroke=function(){ay(this,this.Yl)},_.jk=function(){this.clipInsteadOfFill||this.stroke()},_.Ud=function(e,t,n){return this.Gv.Ud(e,t,n)},_.addElement=function(e,t,n){return e=this.Ud(e,t,n),this.yd!==null?this.yd.appendChild(e):this.yd=e,this.ad=e};function vf(e,t,n,i){t==="fill"?dg(e,n):t==="stroke"&&ay(e,n),i!==null&&(e=i.ha,n.transform="matrix("+e[0]+", "+e[1]+", "+e[2]+", "+e[3]+", "+e[4]+", "+e[5]+")")}function dg(e,t){e.fillStyle instanceof Hd?t.fill=fg(e,e.fillStyle,!0):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.fill="rgb("+e[1]+","+e[2]+","+e[3]+")",t["fill-opacity"]=e[4]):t.fill=e.fillStyle}function sy(e,t,n){n=n?"fill":"stroke",e.fillStyle instanceof Hd?t.setAttributeNS(null,"fill",fg(e,e.fillStyle,!0)):/^rgba\(/.test(e.fillStyle)?(e=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.fillStyle),t.setAttributeNS(null,n,"rgb("+e[1]+","+e[2]+","+e[3]+")"),t.setAttributeNS(null,n+"-opacity",e[4])):t.setAttributeNS(null,n,e.fillStyle)}function ay(e,t){if(e.strokeStyle instanceof Hd)t.stroke=fg(e,e.strokeStyle,!1);else if(/^rgba\(/.test(e.strokeStyle)){var n=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(e.strokeStyle);t.stroke="rgb("+n[1]+","+n[2]+","+n[3]+")",t["stroke-opacity"]=n[4]}else t.stroke=e.strokeStyle;t["stroke-width"]=e.lineWidth,t["stroke-linecap"]=e.lineCap,t["stroke-linejoin"]=e.lineJoin,t["stroke-miterlimit"]=e.miterLimit,e.Ct&&(t["stroke-dasharray"]=e.Yg.toString(),t["stroke-dashoffset"]=e.uj)}function fg(e,t,n){var i="";if(i=e.Hl!==null?e.Hl.getAttribute(n?"fill":"stroke"):null,i!==null&&i.indexOf("GRAD")!==-1?(i=i.split("#")[1].slice(0,-1),n=e.svg.getElementById(i),n!==null&&n.remove()):i="GRAD"+fo++,t.type==="linear")n=e.Ud("linearGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,id:i,gradientUnits:"userSpaceOnUse"});else if(t.type==="radial")n=e.Ud("radialGradient",{x1:t.x1,x2:t.x2,y1:t.y1,y2:t.y2,r1:t.r1,r2:t.r2,id:i});else throw Error("invalid gradient");var r=t.gx;t=r.length;for(var o=[],s=0;s<t;s++){var l=r[s],u=l.color;l={offset:l.offset,"stop-color":u},/^rgba\(/.test(u)&&(u=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(u),l["stop-color"]="rgb("+u[1]+","+u[2]+","+u[3]+")",l["stop-opacity"]=u[4]),o.push(l)}for(o.sort(function(f,p){return f.offset>p.offset?1:-1}),r=0;r<t;r++)n.appendChild(e.Ud("stop",o[r]));return e.svg.appendChild(n),"url(#"+i+")"}_.addPath=function(e,t,n){for(var i=[],r=0;r<e.length;r++){var o=Mt(e[r]),s=[o.shift()];if(s[0]==="A")s.push(o.shift()+","+o.shift(),o.shift(),o.shift()+","+o.shift(),o.shift()+","+o.shift());else for(;o.length;)s.push(o.shift()+","+o.shift());i.push(s.join(" "))}if(i=i.join(" "),e=this.Yl,e.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+i+'")');else if(e.d=i,vf(this,"",e,t),this.Hl!==null)if(t=this.Hl,t.nodeName!=="g")for(var l in e)l!=="transform"&&t.setAttributeNS(null,l,e[l]);else{l=t.getElementsByTagName("path");for(var u in e)u!=="transform"&&l[n].setAttributeNS(null,u,e[u])}else this.addElement("path",e)};function gp(e,t,n,i,r,o,s){var l=new vd;l.ha=[t,n,i,r,o,s],t={},vf(e,"g",t,l),l=e.addElement("g",t),e.nh.push(l)}function S0(e,t){var n={};return t&&(n.class=t),t=e.addElement("g",n),e.nh.push(t),t}_.Ev=function(e,t,n){this.Ar=e,this.Br=t,this.Vg=n};function Bc(e){e.Il=!1,e.shadowOffsetX=0,e.shadowOffsetY=0,e.shadowBlur=0}function Jc(e){e.Il=!0,e.shadowOffsetX=e.Ar,e.shadowOffsetY=e.Br,e.shadowBlur=e.Vg}_.js=function(e,t){this.Ct=!0,this.Yg=e,this.uj=t},_.fs=function(){this.Ct=!1},_.Vc=function(){},_.Wx=function(){},tu.prototype.rotate=function(e){this.rb.rotate(57.2958*e,0,0)},tu.prototype.getImageData=function(){return null},tu.prototype.measureText=function(){return null};function E0(e,t){t=t.getAttribute("fill"),t!==null&&(t=t.split("#"),t.length!==1&&(t=e.svg.getElementById(t[1].slice(0,-1)),t!==null&&e.svg.innerHTML.match(new RegExp(t.id,"g")).length===1&&t.remove()))}tu.prototype.Hs=function(e){e.svg!==null&&e.svg.parentNode===this.Nj&&e.svg.remove()},tu.className="SVGContext",Z.prototype.Cs=function(e){this.pj.contains("SVG")||this.bs("SVG",new Ac(this,je.document));var t=new Ac(this,je.document,!0);e===void 0&&(e=new ue);var n=this;return Dd(this,function(i,r){return i=g0(n,i,"SVG",t),i=i!==null?i.svg:null,typeof r=="function"?(r(i),null):i},e)},Z.prototype.makeSvg=Z.prototype.Cs,Z.prototype.av=function(e){return this.Cs(e)},Z.prototype.makeSVG=Z.prototype.av;function zu(e,t,n,i){this.ownerDocument=t=t===void 0?je.document:t,this.hs=null,t=t.createElement("canvas"),t.tabIndex=0,this.Oa=t,this.context=new yd(t,n,i),t.H=e}zu.prototype.resize=function(e,t,n,i){return this.width!==e||this.height!==t?(this.width=e,this.height=t,this.style.width=n+"px",this.style.height=i+"px",!0):!1},zu.prototype.toDataURL=function(e,t){return this.Oa.toDataURL(e,t)},zu.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},zu.prototype.focus=function(){this.Oa.focus()},zu.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},at.Object.defineProperties(zu.prototype,{width:{get:function(){return this.Oa.width},set:function(e){this.Oa.width=e}},height:{get:function(){return this.Oa.height},set:function(e){this.Oa.height=e}},style:{get:function(){return this.Oa.style}}}),zu.className="CanvasSurface";function yd(e,t,n){this.Z=e.getContext?e.getContext("2d",t):null,this.Z===null&&ut("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 er,this.isTemporary=!!n}_=yd.prototype,_.Wx=function(e){this.Z.imageSmoothingEnabled=e},_.arc=function(e,t,n,i,r,o){this.Z.arc(e,t,n,i,r,o)},_.beginPath=function(){this.Z.beginPath()},_.Se=function(){},_.bezierCurveTo=function(e,t,n,i,r,o){this.Z.bezierCurveTo(e,t,n,i,r,o)},_.clearRect=function(e,t,n,i){this.yc(),this.Z.clearRect(e,t,n,i)},_.clip=function(){this.Z.clip()},_.closePath=function(){this.Z.closePath()},_.createLinearGradient=function(e,t,n,i){return this.Z.createLinearGradient(e,t,n,i)},_.createPattern=function(e,t){return this.Z.createPattern(e,t)},_.createRadialGradient=function(e,t,n,i,r,o){return this.Z.createRadialGradient(e,t,n,i,r,o)},_.drawImage=function(e,t,n,i,r,o,s,l,u){i===void 0?this.Z.drawImage(e,t,n):this.Z.drawImage(e,t,n,i,r,o,s,l,u)},_.fill=function(e){this.Z.fill(e?"evenodd":"nonzero")},_.fillRect=function(e,t,n,i){this.Z.fillRect(e,t,n,i)},_.ox=function(e,t,n,i){this.Z.fillRect(e,t,n,i)},_.fillText=function(e,t,n){this.Z.fillText(e,t,n)},_.getImageData=function(e,t,n,i){return this.Z.getImageData(e,t,n,i)},_.lineTo=function(e,t){this.Z.lineTo(e,t)},_.measureText=function(e){return this.Z.measureText(e)},_.moveTo=function(e,t){this.Z.moveTo(e,t)},_.quadraticCurveTo=function(e,t,n,i){this.Z.quadraticCurveTo(e,t,n,i)},_.rect=function(e,t,n,i){this.Z.rect(e,t,n,i)},_.restore=function(){this.Z.restore()},_.save=function(){this.yc(),this.Z.save()},yd.prototype.rotate=function(e){this.El.rotate(57.2958*e,0,0)},_=yd.prototype,_.setTransform=function(e,t,n,i,r,o){this.El.setTransform(e,t,n,i,r,o)},_.scale=function(e,t){this.El.scale(e,t)},_.translate=function(e,t){this.El.translate(e,t)},_.stroke=function(){this.Z.stroke()},_.transform=function(e,t,n,i,r,o){if(e!==1||t!==0||n!==0||i!==1||r!==0||o!==0){var s=this.El,l=s.m11*e+s.m21*t;e=s.m12*e+s.m22*t,t=s.m11*n+s.m21*i,n=s.m12*n+s.m22*i,s.dx=s.m11*r+s.m21*o+s.dx,s.dy=s.m12*r+s.m22*o+s.dy,s.m11=l,s.m12=e,s.m21=t,s.m22=n}},_.yc=function(){var e=this.El;this.Z.setTransform(e.m11,e.m12,e.m21,e.m22,e.dx,e.dy)},_.ng=function(e,t){if(e instanceof Wr&&e.type===Ou){var n=e.yk;e=e.ft,e>n?(this.scale(n/e,1),this.translate((e-n)/2,0)):n>e&&(this.scale(1,e/n),this.translate(0,(n-e)/2)),this.Hm?this.clip():this.fill(t),e>n?(this.translate(-(e-n)/2,0),this.scale(1/(n/e),1)):n>e&&(this.translate(0,-(n-e)/2),this.scale(1,1/(e/n)))}else this.Hm?this.clip():this.fill(t)},_.jk=function(){this.Hm||this.stroke()},_.Ev=function(e,t,n){this.Ar=e,this.Br=t,this.Vg=n},_.js=function(e,t){var n=this.Z;n.setLineDash!==void 0&&(n.setLineDash(e),n.lineDashOffset=t)},_.fs=function(){var e=this.Z;e.setLineDash!==void 0&&(e.setLineDash(Mb),e.lineDashOffset=0)},_.Vc=function(e){e&&(this.dt=""),this.ct=this.et=""},_.Hs=function(){},at.Object.defineProperties(yd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(e){this.ct!==e&&(this.ct=this.Z.fillStyle=e)}},font:{get:function(){return this.Z.font},set:function(e){this.dt!==e&&(this.dt=this.Z.font=e)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(e){this.Z.globalAlpha=e}},lineCap:{get:function(){return this.Z.lineCap},set:function(e){this.Z.lineCap=e}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(e){this.Z.lineDashOffset=e}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(e){this.Z.lineJoin=e}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(e){this.Z.lineWidth=e}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(e){this.Z.miterLimit=e}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(e){this.Z.shadowBlur=e}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(e){this.Z.shadowColor=e}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(e){this.Z.shadowOffsetX=e}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(e){this.Z.shadowOffsetY=e}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(e){this.et!==e&&(this.et=this.Z.strokeStyle=e)}},textAlign:{get:function(){return this.Z.textAlign},set:function(e){this.Z.textAlign=e}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(e){this.Z.imageSmoothingEnabled=e}},filter:{get:function(){return this.Z.filter},set:function(e){this.Z.filter=e===""?"none":e}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(e){this.Hm=e}}});var Mb=Object.freeze([]);yd.className="CanvasSurfaceContext";function vp(){this.F=this.o=this.u=this.j=0}vp.className="ColorNumbers";function Wr(e,t){Sf||(bg(),Sf=!0),Wi(this),this._isFrozen=!1,e===void 0?(this.na=vh,this.xk="black"):typeof e=="string"?(this.na=vh,this.xk=e):(this.na=e,this.xk="black"),e=this.na,e===eh?(this.Qd=ya,this.Lk=Ca):this.Lk=e===Ou?this.Qd=vr:this.Qd=Di,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,t&&Object.assign(this,t)}Wr.prototype.copy=function(){var e=new Wr;return e.na=this.na,e.xk=this.xk,e.Qd=this.Qd.J(),e.Lk=this.Lk.J(),e.Gr=this.Gr,e.Xp=this.Xp,this.we!==null&&(e.we=this.we.copy()),e.cr=this.cr,e},_=Wr.prototype,_.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},_.ka=function(){return Object.isFrozen(this)&&ut("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},_.qb=function(e){e.classType===Wr&&(this.type=e)},_.toString=function(){var e="Brush(";if(this.type===vh)e+=this.color;else if(e=this.type===eh?e+"Linear ":this.type===Ou?e+"Radial ":this.type===Ef?e+"Pattern ":e+"(unknown) ",e+=this.start+" "+this.end,this.colorStops!==null)for(var t=this.colorStops.iterator;t.next();)e+=" "+t.key+":"+t.value;return e+")"},_.addColorStop=function(e,t){return this._isFrozen&&yn(this),(typeof e!="number"||!isFinite(e)||1<e||0>e)&&rn(e,"0 <= loc <= 1",Wr,"addColorStop:loc"),this.we===null&&(this.we=new ii),this.we.add(e,t),this.na===vh&&(this.type=eh),this.xe=null,this},_.Vz=function(e,t){if(this._isFrozen&&yn(this),e=e===void 0||typeof e!="number"?.2:e,t=t===void 0?wf:t,this.type===vh)qc(this.color),this.color=bf(e,t);else if((this.type===eh||this.type===Ou)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)qc(n.value),this.addColorStop(n.key,bf(e,t));return this};function ly(e,t,n){return t=t===void 0||typeof t!="number"?.2:t,n=n===void 0?wf:n,qc(e),bf(t,n)}_.Wy=function(e,t){if(this._isFrozen&&yn(this),e=e===void 0||typeof e!="number"?.2:e,t=t===void 0?wf:t,this.type===vh)qc(this.color),this.color=bf(-e,t);else if((this.type===eh||this.type===Ou)&&this.colorStops!==null)for(var n=this.colorStops.iterator;n.next();)qc(n.value),this.addColorStop(n.key,bf(-e,t));return this};function uy(e,t,n){return t=t===void 0||typeof t!="number"?.2:t,n=n===void 0?wf:n,qc(e),bf(-t,n)}function pg(e,t,n){qc(e),e=So.j;var i=So.u,r=So.o,o=So.F;return qc(t),n===void 0&&(n=.5),"rgba("+Math.round((So.j-e)*n+e)+", "+Math.round((So.u-i)*n+i)+", "+Math.round((So.o-r)*n+r)+", "+Math.round((So.F-o)*n+o)+")"}_.Gx=function(){if(this.type===vh)return yf(this.color);if((this.type===eh||this.type===Ou)&&this.colorStops!==null){var e=this.colorStops;if(this.type===Ou)return yf(e.first().value);if(e.get(.5)!==null)return yf(e.get(.5));if(e.count===2)return e=e.Fa(),yf(pg(e[0].value,e[1].value));for(var t=e.iterator,n=-1,i=-1,r=1,o=1;t.next();){var s=t.key,l=Math.abs(.5-t.key);r>o&&l<r?(n=s,r=l):o>=r&&l<o&&(i=s,o=l)}return n>i&&(o=n,n=i,i=o,o=r),r=i-n,yf(pg(e.get(n),e.get(i),1-o/r))}return!1};function yf(e){return e?e instanceof Wr?e.Gx():(qc(e),128>(299*So.j+587*So.u+114*So.o)/1e3):!1}function bf(e,t){switch(t){case wf:t=100*gg(So.j);var n=100*gg(So.u),i=100*gg(So.o);return pl.j=.4124564*t+.3575761*n+.1804375*i,pl.u=.2126729*t+.7151522*n+.072175*i,pl.o=.0193339*t+.119192*n+.9503041*i,pl.F=So.F,t=yg(pl.j/xf[0]),n=yg(pl.u/xf[1]),i=yg(pl.o/xf[2]),_c.j=116*n-16,_c.u=500*(t-n),_c.o=200*(n-i),_c.F=pl.F,_c.j=Math.min(100,Math.max(0,_c.j+100*e)),e=(_c.j+16)/116,t=e-_c.o/200,pl.j=xf[0]*cy(_c.u/500+e),pl.u=xf[1]*(_c.j>w0*xg?Math.pow(e,3):_c.j/w0),pl.o=xf[2]*cy(t),pl.F=_c.F,e=-.969266*pl.j+1.8760108*pl.u+.041556*pl.o,t=.0556434*pl.j+-.2040259*pl.u+1.0572252*pl.o,So.j=255*vg((3.2404542*pl.j+-1.5371385*pl.u+-.4985314*pl.o)/100),So.u=255*vg(e/100),So.o=255*vg(t/100),So.F=pl.F,So.j=Math.round(So.j),255<So.j?So.j=255:0>So.j&&(So.j=0),So.u=Math.round(So.u),255<So.u?So.u=255:0>So.u&&(So.u=0),So.o=Math.round(So.o),255<So.o?So.o=255:0>So.o&&(So.o=0),"rgba("+So.j+", "+So.u+", "+So.o+", "+So.F+")";case hy:return mg(),yu.o=Math.min(100,Math.max(0,yu.o+100*e)),"hsla("+yu.j+", "+yu.u+"%, "+yu.o+"%, "+yu.F+")";default:ut("Unknown color space: "+t)}}function qc(e){Sf||(bg(),Sf=!0);var t=Sg;if(t!==null){t.clearRect(0,0,1,1),t.fillStyle="#000000";var n=t.fillStyle;t.fillStyle=e,t.fillStyle!==n?(t.fillRect(0,0,1,1),e=t.getImageData(0,0,1,1).data,So.j=e[0],So.u=e[1],So.o=e[2],So.F=e[3]/255):(t.fillStyle="#FFFFFF",t.fillStyle=e,So.j=0,So.u=0,So.o=0,So.F=1)}}function mg(){var e=So.j/255,t=So.u/255,n=So.o/255,i=Math.max(e,t,n),r=Math.min(e,t,n),o=i-r;if(r=(i+r)/2,o===0)var s=e=0;else{switch(i){case e:s=(t-n)/o%6;break;case t:s=(n-e)/o+2;break;case n:s=(e-t)/o+4}s*=60,0>s&&(s+=360),e=o/(1-Math.abs(2*r-1))}yu.j=Math.round(s),yu.u=Math.round(100*e),yu.o=Math.round(100*r),yu.F=So.F}function gg(e){return e/=255,.04045>=e?e/12.92:Math.pow((e+.055)/1.055,2.4)}function vg(e){return .0031308>=e?12.92*e:1.055*Math.pow(e,1/2.4)-.055}function yg(e){return e>xg?Math.pow(e,1/3):(w0*e+16)/116}function cy(e){var t=e*e*e;return t>xg?t:(116*e-16)/w0}function $d(e,t){typeof e!="string"&&(e instanceof Wr||ut("Value for "+t+" must be a color string or a Brush, not "+e))}function bg(){Sg=ds?new zu(null,void 0,{willReadFrequently:!0}).context:null}at.Object.defineProperties(Wr.prototype,{type:{get:function(){return this.na},set:function(e){this._isFrozen&&yn(this,e),this.na=e,this.start.Mc()&&(e===eh?this.start=ya:e===Ou&&(this.start=vr)),this.end.Mc()&&(e===eh?this.end=Ca:e===Ou&&(this.end=vr)),this.xe=null}},color:{get:function(){return this.xk},set:function(e){this._isFrozen&&yn(this,e),this.xk=e,this.xe=null}},start:{get:function(){return this.Qd},set:function(e){this._isFrozen&&yn(this,e),this.Qd=e.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(e){this._isFrozen&&yn(this,e),this.Lk=e.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(e){this._isFrozen&&yn(this,e),0>e&&rn(e,">= zero",Wr,"startRadius"),this.Gr=e,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(e){this._isFrozen&&yn(this,e),0>e&&rn(e,">= zero",Wr,"endRadius"),this.Xp=e,this.xe=null}},colorStops:{get:function(){return this.we},set:function(e){this._isFrozen&&yn(this,e),this.we=e,this.xe=null}},pattern:{get:function(){return this.cr},set:function(e){this._isFrozen&&yn(this,e),this.cr=e,this.xe=null}}}),Wr.prototype.isDark=Wr.prototype.Gx,Wr.prototype.darkenBy=Wr.prototype.Wy,Wr.prototype.lightenBy=Wr.prototype.Vz,Wr.prototype.addColorStop=Wr.prototype.addColorStop;var xg=216/24389,w0=24389/27,xf=[95.047,100,108.883],Sg=null,So=new vp,yu=new vp,pl=new vp,_c=new vp,Sf=!1;Wr.className="Brush";var vh;Wr.Solid=vh=new qt(Wr,"Solid",0);var eh;Wr.Linear=eh=new qt(Wr,"Linear",1);var Ou;Wr.Radial=Ou=new qt(Wr,"Radial",2);var Ef;Wr.Pattern=Ef=new qt(Wr,"Pattern",4);var wf;Wr.Lab=wf=new qt(Wr,"Lab",5);var hy;Wr.HSL=hy=new qt(Wr,"HSL",6),Wr.randomColor=function(e,t){e===void 0&&(e=128),t===void 0&&(t=Math.max(e,255));var n=Math.abs(t-e);t=Math.floor(e+Math.random()*n).toString(16);var i=Math.floor(e+Math.random()*n).toString(16);return e=Math.floor(e+Math.random()*n).toString(16),2>t.length&&(t="0"+t),2>i.length&&(i="0"+i),2>e.length&&(e="0"+e),"#"+t+i+e},Wr.isValidColor=function(e){if(e==="black")return!0;if(e==="")return!1;Sf||(bg(),Sf=!0);var t=Sg;if(t===null)return!0;t.fillStyle="#000000";var n=t.fillStyle;return t.fillStyle=e,t.fillStyle!==n?!0:(t.fillStyle="#FFFFFF",n=t.fillStyle,t.fillStyle=e,t.fillStyle!==n)},Wr.lighten=function(e){return ly(e)},Wr.lightenBy=ly,Wr.darken=function(e){return uy(e)},Wr.darkenBy=uy,Wr.mix=pg,Wr.isDark=yf;function Gs(){this.xa="Base"}Gs.prototype.measure=function(){},Gs.prototype.Yz=function(e,t,n,i,r){e.measure(t,n,i,r)},Gs.prototype.arrange=function(){},Gs.prototype.Ly=function(e,t,n,i,r,o){e.arrange(t,n,i,r,o)},Gs.prototype.iA=function(e){e.Uj()},Gs.prototype.gc=function(){},at.Object.defineProperties(Gs.prototype,{name:{get:function(){return this.xa},set:function(e){this.xa=e}},classType:{get:function(){return wn}}}),Gs.prototype.remeasureObject=Gs.prototype.iA,Gs.prototype.arrangeElement=Gs.prototype.Ly,Gs.prototype.measureElement=Gs.prototype.Yz,Gs.className="PanelLayout";function C0(){this.xa="Base"}fi(C0,Gs),C0.prototype.measure=function(e,t,n,i,r,o,s){var l=i.length;e=th(e);for(var u=0;u<l;u++){var f=i[u];if(f.visible||f===e){var p=f.margin,x=p.right+p.left;p=p.top+p.bottom,f.measure(t,n,o,s);var N=f.measuredBounds;x=Math.max(N.width+x,0),p=Math.max(N.height+p,0),N=f.position.x;var O=f.position.y;isFinite(N)||(N=0),isFinite(O)||(O=0),f instanceof nr&&f.isGeometryPositioned&&(f=f.strokeWidth/2,N-=f,O-=f),Or(r,N,O,x,p)}}},C0.prototype.arrange=function(e,t,n){var i=t.length,r=e.padding;for(e=n.x-r.left,n=n.y-r.top,r=0;r<i;r++){var o=t[r],s=o.measuredBounds,l=o.margin,u=o.position.x,f=o.position.y;if(u=isNaN(u)?-e:u-e,f=isNaN(f)?-n:f-n,o instanceof nr&&o.isGeometryPositioned){var p=o.strokeWidth/2;u-=p,f-=p}o.visible&&o.arrange(u+l.left,f+l.top,s.width,s.height)}};function T0(){this.xa="Base"}fi(T0,Gs),T0.prototype.measure=function(e,t,n,i,r,o,s){var l=i.length;t=jt(),o=th(e);for(var u=0;u<l;u++){var f=i[u];if(f.visible||f===o){var p=Dl(f,!1);if(p!==mn&&p!==bi)t.push(f);else{f.measure(1/0,n,0,s),p=f.margin,f=f.measuredBounds;var x=Math.max(f.height+p.top+p.bottom,0);r.width+=Math.max(f.width+p.right+p.left,0),r.height=Math.max(r.height,x)}}}for(i=t.length,e.desiredSize.height?n=Math.min(e.desiredSize.height,e.maxSize.height):r.height!==0&&(n=Math.min(r.height,e.maxSize.height)),e=0;e<i;e++)u=t[e],(u.visible||u===o)&&(p=u.margin,l=p.right+p.left,p=p.top+p.bottom,u.measure(1/0,n,0,s),u=u.measuredBounds,p=Math.max(u.height+p,0),r.width+=Math.max(u.width+l,0),r.height=Math.max(r.height,p));gn(t)},T0.prototype.arrange=function(e,t,n){for(var i=t.length,r=e.padding,o=r.top,s=e.isOpposite,l=s?n.width:r.left,u=0;u<i;u++){var f=o,p=t[u];if(p.visible){var x=p.measuredBounds,N=p.margin,O=N.top+N.bottom,F=o+r.bottom,K=x.height,ye=Dl(p,!1);(isNaN(p.desiredSize.height)&&ye===Sn||ye===Mi)&&(K=Math.max(n.height-O-F,0)),O=K+O+F,F=p.alignment,F.Xb()&&(F=e.defaultAlignment),F.sb()||(F=vr),s&&(l-=x.width+N.left+N.right),p.arrange(l+F.offsetX+N.left,f+F.offsetY+N.top+(n.height*F.y-O*F.y),x.width,K),s||(l+=x.width+N.left+N.right)}}};function N0(){this.xa="Base"}fi(N0,Gs),N0.prototype.measure=function(e,t,n,i,r,o){var s=i.length;n=jt();for(var l=th(e),u=0;u<s;u++){var f=i[u];if(f.visible||f===l){var p=Dl(f,!1);if(p!==mn&&p!==Mi)n.push(f);else{var x=f.margin;p=x.right+x.left,x=x.top+x.bottom,f.measure(t,1/0,o,0),f=f.measuredBounds,Ds(r,Math.max(r.width,Math.max(f.width+p,0)),r.height+Math.max(f.height+x,0))}}}if(i=n.length,i!==0){for(e.desiredSize.width?t=Math.min(e.desiredSize.width,e.maxSize.width):r.width!==0&&(t=Math.min(r.width,e.maxSize.width)),e=0;e<i;e++)u=n[e],(u.visible||u===l)&&(f=u.margin,s=f.right+f.left,f=f.top+f.bottom,u.measure(t,1/0,o,0),u=u.measuredBounds,f=Math.max(u.height+f,0),r.width=Math.max(r.width,Math.max(u.width+s,0)),r.height+=f);gn(n)}},N0.prototype.arrange=function(e,t,n){for(var i=t.length,r=e.padding,o=r.left,s=e.isOpposite,l=s?n.height:r.top,u=0;u<i;u++){var f=o,p=t[u];if(p.visible){var x=p.measuredBounds,N=p.margin,O=N.left+N.right,F=o+r.right,K=x.width,ye=Dl(p,!1);(isNaN(p.desiredSize.width)&&ye===Sn||ye===bi)&&(K=Math.max(n.width-O-F,0)),O=K+O+F,F=p.alignment,F.Xb()&&(F=e.defaultAlignment),F.sb()||(F=vr),s&&(l-=x.height+N.bottom+N.top),p.arrange(f+F.offsetX+N.left+(n.width*F.x-O*F.x),l+F.offsetY+N.top,K,x.height),s||(l+=x.height+N.bottom+N.top)}}};function A0(){this.xa="Base"}fi(A0,Gs),A0.prototype.measure=function(e,t,n,i,r,o,s){var l=i.length,u=e.Pb(),f=u.margin,p=f.right+f.left,x=f.top+f.bottom;u.measure(t,n,o,s);var N=u.measuredBounds;o=N.width,s=N.height;var O=Math.max(o+p,0),F=Math.max(s+x,0),K=e.isClipping,ye=Ht.allocAt(-f.left,-f.top,O,F),ae=Ht.allocAt(0,0,o,s);Eg(u,ae,!0),o=ae.width,s=ae.height;for(var Oe=!0,Fe=th(e),He=0;He<l;He++){var qe=i[He];N=t;var bt=n;if(qe!==u&&(qe.visible||qe===Fe)){f=qe.margin;var jn=f.left,oi=f.top;switch(O=f.right+f.left,F=f.top+f.bottom,f=Dl(qe,!1),f){case Sn:N=o,bt=s,oi=jn=F=O=0;break;case bi:N=o,jn=O=0;break;case Mi:bt=s,oi=F=0}qe.measure(N,bt,0,0),N=qe.measuredBounds,O=Math.max(N.width+O,0),F=Math.max(N.height+F,0),f=qe.alignment,f.Xb()&&(f=e.defaultAlignment),f.sb()||(f=vr);var ei=qe.alignmentFocus;if(ei.Xb()&&(ei=vr),bt=null,qe instanceof wn&&qe.$e!==""&&(bt=qe.fb(qe.$e),bt===qe&&(bt=null)),jn=ae.x-jn,oi=ae.y-oi,bt!==null){for(qe.arrange(0,0,N.width,N.height),N=bt.actualBounds,N=ce.allocAt(N.x+(ei.x*N.width-ei.offsetX),N.y+(ei.y*N.height-ei.offsetY)),bt=bt.panel;bt!==qe;)bt.transform.Ga(N),bt=bt.panel;jn+=f.x*o+f.offsetX-N.x,oi+=f.y*s+f.offsetY-N.y,ce.free(N)}else jn+=f.x*o+f.offsetX-(ei.x*N.width+ei.offsetX),oi+=f.y*s+f.offsetY-(ei.y*N.height+ei.offsetY);Oe?(Oe=!1,r.h(jn,oi,O,F)):Or(r,jn,oi,O,F)}}switch(Oe?r.assign(ye):K?r.Uu(ae.x,ae.y,ae.width,ae.height):Or(r,ye.x,ye.y,ye.width,ye.height),Ht.free(ye),Ht.free(ae),f=u.stretch,f===Ji&&(f=Dl(u,!1)),f){case mn:return;case Sn:if(!isFinite(t)&&!isFinite(n))return;break;case bi:if(!isFinite(t))return;break;case Mi:if(!isFinite(n))return}for(N=u.measuredBounds,o=N.width,s=N.height,O=Math.max(o+p,0),F=Math.max(s+x,0),f=u.margin,ae=Ht.allocAt(-f.left,-f.top,O,F),Eg(u,ae,!0),o=ae.width,s=ae.height,t=0;t<l;t++)n=i[t],n===u||!n.visible&&n!==Fe||(f=n.margin,O=f.right+f.left,F=f.top+f.bottom,N=n.measuredBounds,O=Math.max(N.width+O,0),F=Math.max(N.height+F,0),p=n.alignment,p.Xb()&&(p=e.defaultAlignment),p.sb()||(p=vr),n=n.alignmentFocus,n.Xb()&&(n=vr),Oe?(Oe=!1,r.h(p.x*o+p.offsetX-(n.x*N.width+n.offsetX)-f.left,p.y*s+p.offsetY-(n.y*N.height+n.offsetY)-f.top,O,F)):Or(r,p.x*o+p.offsetX-(n.x*N.width+n.offsetX)-f.left,p.y*s+p.offsetY-(n.y*N.height+n.offsetY)-f.top,O,F));Oe?r.assign(ye):K?r.Uu(ae.x,ae.y,ae.width,ae.height):Or(r,ye.x,ye.y,ye.width,ye.height),Ht.free(ae)},A0.prototype.arrange=function(e,t,n){var i=t.length,r=e.Pb(),o=r.measuredBounds,s=o.width,l=o.height,u=e.padding;o=u.left,u=u.top;var f=o-n.x,p=u-n.y;for(r.arrange(f,p,s,l),s=Ht.allocAt(0,0,s,l),Eg(r,s,!1),l=0;l<i;l++){var x=t[l];if(x!==r){f=x.measuredBounds;var N=f.width,O=f.height;p=x.alignment,p.Xb()&&(p=e.defaultAlignment),p.sb()||(p=vr);var F=x.alignmentFocus;if(F.Xb()&&(F=vr),f=null,x instanceof wn&&x.$e!==""&&(f=x.fb(x.$e),f===x&&(f=null)),f!==null){var K=f.actualBounds;for(F=ce.allocAt(K.x+(F.x*K.width-F.offsetX),K.y+(F.y*K.height-F.offsetY)),f=f.panel;f!==x;)f.transform.Ga(F),f=f.panel;f=p.x*s.width+p.offsetX-F.x,p=p.y*s.height+p.offsetY-F.y,ce.free(F)}else f=p.x*s.width+p.offsetX-(F.x*N+F.offsetX),p=p.y*s.height+p.offsetY-(F.y*O+F.offsetY);f+=s.x-n.x,p+=s.y-n.y,x.visible&&x.arrange(o+f,u+p,N,O)}}Ht.free(s)};function Eg(e,t,n){var i=null;if(e instanceof wn&&e.$e!==""&&(i=e.fb(e.$e),i===e&&(i=null)),i!==null)for(n&&e.arrange(0,0,t.width,t.height),t.assign(i.actualBounds),i=i.panel;i!==e;)i.transform.pp(t),i=i.panel}function k0(){this.xa="Base"}fi(k0,Gs),k0.prototype.measure=function(e,t,n,i,r,o,s){var l=i.length,u=e.Pb(),f=u.margin,p=t,x=n,N=f.right+f.left,O=f.top+f.bottom;u.measure(t,n,o,s),f=u.measuredBounds;var F=0,K=null;u instanceof nr&&(K=u,F=K.strokeWidth*K.scale);var ye=Math.max(f.width+N,0);f=Math.max(f.height+O,0);var ae=Ng(u),Oe=ae.x*ye+ae.offsetX;ae=ae.y*f+ae.offsetY;var Fe=Ag(u),He=Fe.x*ye+Fe.offsetX;for(Fe=Fe.y*f+Fe.offsetY,isFinite(t)&&(p=Math.max(Math.abs(Oe-He)-F,0)),isFinite(n)&&(x=Math.max(Math.abs(ae-Fe)-F,0)),F=mi.alloc(),F.h(0,0),e=th(e),Fe=0;Fe<l;Fe++)ae=i[Fe],ae===u||!ae.visible&&ae!==e||(f=ae.margin,ye=f.right+f.left,Oe=f.top+f.bottom,ae.measure(p,x,0,0),f=ae.measuredBounds,ye=Math.max(f.width+ye,0),f=Math.max(f.height+Oe,0),F.h(Math.max(ye,F.width),Math.max(f,F.height)));if(l===1)r.width=ye,r.height=f,mi.free(F);else{switch(ae=Ng(u),Fe=Ag(u),l=i=0,Fe.x!==ae.x&&Fe.y!==ae.y&&(i=F.width/Math.abs(Fe.x-ae.x),l=F.height/Math.abs(Fe.y-ae.y)),mi.free(F),F=0,K!==null&&(F=K.strokeWidth*K.scale,Rg(K)===di&&(i=l=Math.max(i,l))),i+=Math.abs(ae.offsetX)+Math.abs(Fe.offsetX)+F,l+=Math.abs(ae.offsetY)+Math.abs(Fe.offsetY)+F,K=u.stretch,K===Ji&&(K=Dl(u,!1)),K){case mn:s=o=0;break;case Sn:isFinite(t)&&(i=t),isFinite(n)&&(l=n);break;case bi:isFinite(t)&&(i=t),s=0;break;case Mi:o=0,isFinite(n)&&(l=n)}u.Uj(),u.measure(i,l,o,s),r.width=u.measuredBounds.width+N,r.height=u.measuredBounds.height+O}},k0.prototype.arrange=function(e,t){var n=t.length,i=e.Pb(),r=i.measuredBounds,o=Ht.alloc();o.h(0,0,1,1);var s=i.margin,l=s.left;s=s.top;var u=e.padding,f=u.left;u=u.top,i.arrange(f+l,u+s,r.width,r.height);var p=Ng(i),x=Ag(i),N=p.y*r.height+p.offsetY,O=x.x*r.width+x.offsetX;for(x=x.y*r.height+x.offsetY,o.x=p.x*r.width+p.offsetX,o.y=N,Or(o,O,x,0,0),o.x+=l+f,o.y+=s+u,r=0;r<n;r++)l=t[r],l!==i&&(f=l.measuredBounds,s=l.margin,u=Math.max(f.width+s.right+s.left,0),p=Math.max(f.height+s.top+s.bottom,0),N=l.alignment,N.Xb()&&(N=e.defaultAlignment),N.sb()||(N=vr),u=o.width*N.x+N.offsetX-u*N.x+s.left+o.x,s=o.height*N.y+N.offsetY-p*N.y+s.top+o.y,l.visible&&(po(o.x,o.y,o.width,o.height,u,s,f.width,f.height)?l.arrange(u,s,f.width,f.height):l.arrange(u,s,f.width,f.height,new Ht(o.x,o.y,o.width,o.height))));Ht.free(o)};function I0(){this.xa="Base",this.name="Table"}fi(I0,Gs),I0.prototype.measure=function(e,t,n,i,r){for(var o=i.length,s=jt(),l=jt(),u=0;u<o;u++){var f=i[u],p=f instanceof wn?f:null;if(p!==null&&yh(p)&&f.visible){l.push(p);for(var x=p.O.s,N=x.length,O=0;O<N;O++){var F=x[O];p.type===wn.TableRow?F.row=f.row:p.type===wn.TableColumn&&(F.column=f.column),s.push(F)}}else s.push(f)}o=s.length,o===0&&(e.Fb(0),e.Eb(0));for(var K=[],ye=0;ye<o;ye++){var ae=s[ye];ae.visible&&(Bs(ae,!0),Fc(ae,!0),K[ae.row]||(K[ae.row]=[]),K[ae.row][ae.column]||(K[ae.row][ae.column]=[]),K[ae.row][ae.column].push(ae))}gn(s);var Oe=jt(),Fe=jt(),He=jt(),qe={count:0},bt={count:0},jn=t,oi=n,ei=e.rowDefs,Nn=e.colDefs,cn=null;o=ei.length;for(var Yi=0;Yi<o;Yi++)cn=ei[Yi],cn!==void 0&&(cn.actual=0);o=Nn.length;for(var Ui=0;Ui<o;Ui++)cn=Nn[Ui],cn!==void 0&&(cn.actual=0);for(var _r=K.length,ho=0,ia=0;ia<_r;ia++)K[ia]&&(ho=Math.max(ho,K[ia].length));var ha=Math.min(e.topIndex,_r-1),ol=Math.min(e.leftIndex,ho-1),ra=0;_r=K.length;for(var kh=th(e),Ms=0;Ms<_r;Ms++)if(K[Ms]){ho=K[Ms].length;var gc=e.Fb(Ms);gc.actual=0;for(var sl=gc.oc=0;sl<ho;sl++)if(K[Ms][sl]){var Ih=e.Eb(sl);Oe[sl]===void 0&&(Ih.actual=0,Ih.oc=0,Oe[sl]=!0);for(var Su=K[Ms][sl],ju=Su.length,ru=0;ru<ju;ru++){var Xl=Su[ru];if(Xl.visible||Xl===kh){var nd=1<Xl.rowSpan||1<Xl.columnSpan;nd&&(Ms<ha||sl<ol||Fe.push(Xl));var vc=Xl.margin,Vf=vc.right+vc.left,ou=vc.top+vc.bottom,al=hc(Xl,gc,Ih,!1),r0=Xl.desiredSize,ef=!isNaN(r0.height),Mc=!isNaN(r0.width)&&ef;if(nd||al===mn||Mc||Ms<ha||sl<ol||(qe[sl]!==void 0||al!==Sn&&al!==bi||(qe[sl]=-1,qe.count++),bt[Ms]!==void 0||al!==Sn&&al!==Mi||(bt[Ms]=-1,bt.count++),He.push(Xl)),Xl.measure(1/0,1/0,0,0),!(Ms<ha||sl<ol)){var Ql=Xl.measuredBounds,Ad=Math.max(Ql.width+Vf,0),su=Math.max(Ql.height+ou,0);if(Xl.rowSpan===1&&(al===mn||al===bi)){cn=e.Fb(Ms);var id=cn.Wc();ra=Math.max(su-cn.actual,0),ra+id>oi&&(ra=Math.max(oi-id,0));var Jm=cn.oa===0;cn.oc=cn.oc+ra,cn.actual=cn.oa+ra,oi=Math.max(oi-(ra+(Jm?id:0)),0)}if(Xl.columnSpan===1&&(al===mn||al===Mi)){cn=e.Eb(sl);var o0=cn.Wc();ra=Math.max(Ad-cn.actual,0),ra+o0>jn&&(ra=Math.max(jn-o0,0));var Zv=cn.oa===0;cn.oc=cn.oc+ra,cn.actual=cn.oa+ra,jn=Math.max(jn-(ra+(Zv?o0:0)),0)}nd&&Xl.Uj()}}}}}gn(Oe);var Kc=0,rh=0;o=e.columnCount;for(var tf=0;tf<o;tf++){var rd=Nn[tf];rd!==void 0&&(Kc+=isNaN(rd.Hc)?rd.oc:rd.Hc,rd.oc!==0&&(Kc+=rd.Wc()))}o=e.rowCount;for(var Kf=0;Kf<o;Kf++){var od=ei[Kf];od!==void 0&&(rh+=isNaN(od.Hc)?od.oc:od.Hc,od.oc!==0&&(rh+=od.Wc()))}jn=Math.max(t-Kc,0);var Yc=oi=Math.max(n-rh,0),Mh=jn;o=He.length;for(var Jl=0;Jl<o;Jl++){var Oc=He[Jl],qm=e.Fb(Oc.row),oh=e.Eb(Oc.column),Yf=Oc.measuredBounds,yc=Oc.margin,kd=yc.right+yc.left,Lc=yc.top+yc.bottom;qe[Oc.column]=oh.oc===0&&qe[Oc.column]!==void 0?Math.max(Yf.width+kd,qe[Oc.column]):null,bt[Oc.row]=qm.oc===0&&bt[Oc.row]!==void 0?Math.max(Yf.height+Lc,bt[Oc.row]):null}var nf=0,Zf=0,oc;for(oc in bt)oc!=="count"&&(nf+=bt[oc]);for(oc in qe)oc!=="count"&&(Zf+=qe[oc]);for(var Ea=mi.alloc(),s0=0;s0<o;s0++){var Sl=He[s0];if(Sl.visible||Sl===kh){var Os=e.Fb(Sl.row),El=e.Eb(Sl.column),sh=0;isFinite(El.width)?sh=El.width:(isFinite(jn)&&qe[Sl.column]!==null?Zf===0?sh=El.actual+jn:sh=qe[Sl.column]/Zf*Mh:qe[Sl.column]!==null?sh=jn:sh=El.actual||jn,sh=Math.max(0,sh-El.Wc()));var Oh=0;switch(isFinite(Os.height)?Oh=Os.height:(isFinite(oi)&&bt[Sl.row]!==null?nf===0?Oh=Os.actual+oi:Oh=bt[Sl.row]/nf*Yc:bt[Sl.row]!==null?Oh=oi:Oh=Os.actual||oi,Oh=Math.max(0,Oh-Os.Wc())),Ea.h(Math.max(El.minimum,Math.min(sh,El.maximum)),Math.max(Os.minimum,Math.min(Oh,Os.maximum))),al=hc(Sl,Os,El,!1),al){case bi:Ea.height=Math.max(Ea.height,Os.actual+oi);break;case Mi:Ea.width=Math.max(Ea.width,El.actual+jn)}var Id=Sl.margin,Xv=Id.right+Id.left,eg=Id.top+Id.bottom;Sl.Uj(),Sl.measure(Ea.width,Ea.height,El.minimum,Os.minimum);var Xf=Sl.measuredBounds,Md=Math.max(Xf.width+Xv,0),rf=Math.max(Xf.height+eg,0);isFinite(jn)&&(Md=Math.min(Md,Ea.width)),isFinite(oi)&&(rf=Math.min(rf,Ea.height));var ql=0;ql=Os.actual,Os.actual=Math.max(Os.actual,rf),Os.oc=Math.max(Os.oc,rf),ra=Os.actual-ql,oi=Math.max(oi-ra,0),bt[Sl.row]===null&&(Yc=Math.max(Yc-ra,0)),ql=El.actual,El.actual=Math.max(El.actual,Md),El.oc=Math.max(El.oc,Md),ra=El.actual-ql,jn=Math.max(jn-ra,0),qe[Sl.column]===null&&(Mh=Math.max(Mh-ra,0))}}gn(He);var ah=mi.alloc(),bc=jt(),Fu=jt();if(o=Fe.length,o!==0){for(var sd=0;sd<_r;sd++)if(K[sd]){ho=K[sd].length;var Qf=e.Fb(sd);bc[sd]=Qf.actual;for(var ad=0;ad<ho;ad++)if(K[sd][ad]){var tg=e.Eb(ad);Fu[ad]=tg.actual}}}for(var Jf=0;Jf<o;Jf++){var xs=Fe[Jf];if(xs.visible||xs===kh){var sc=e.Fb(xs.row),Gu=e.Eb(xs.column);switch(Ea.h(Math.max(Gu.minimum,Math.min(t,Gu.maximum)),Math.max(sc.minimum,Math.min(n,sc.maximum))),al=hc(xs,sc,Gu,!1),al){case Sn:Fu[Gu.index]!==0&&(Ea.width=Math.min(Ea.width,Fu[Gu.index])),bc[sc.index]!==0&&(Ea.height=Math.min(Ea.height,bc[sc.index]));break;case bi:Fu[Gu.index]!==0&&(Ea.width=Math.min(Ea.width,Fu[Gu.index]));break;case Mi:bc[sc.index]!==0&&(Ea.height=Math.min(Ea.height,bc[sc.index]))}isFinite(Gu.width)&&(Ea.width=Gu.width),isFinite(sc.height)&&(Ea.height=sc.height),ah.h(0,0);for(var ng=Gu.minimum,au=sc.minimum,Lh=1;Lh<xs.rowSpan&&!(xs.row+Lh>=e.rowCount);Lh++)cn=e.Fb(xs.row+Lh),ra=0,ra=al===Sn||al===Mi?Math.max(cn.minimum,bc[xs.row+Lh]===0?cn.maximum:Math.min(bc[xs.row+Lh],cn.maximum)):Math.max(cn.minimum,isNaN(cn.Hc)?cn.maximum:Math.min(cn.Hc,cn.maximum)),ah.height+=ra,au+=cn.minimum;for(var Wu=1;Wu<xs.columnSpan&&!(xs.column+Wu>=e.columnCount);Wu++)cn=e.Eb(xs.column+Wu),ra=0,ra=al===Sn||al===bi?Math.max(cn.minimum,Fu[xs.column+Wu]===0?cn.maximum:Math.min(Fu[xs.column+Wu],cn.maximum)):Math.max(cn.minimum,isNaN(cn.Hc)?cn.maximum:Math.min(cn.Hc,cn.maximum)),ah.width+=ra,ng+=cn.minimum;Ea.width+=ah.width,Ea.height+=ah.height;var qf=xs.margin,ld=qf.right+qf.left,a0=qf.top+qf.bottom;xs.measure(Ea.width,Ea.height,ng,au);for(var ep=xs.measuredBounds,Rc=Math.max(ep.width+ld,0),Od=Math.max(ep.height+a0,0),ud=0,tp=0;tp<xs.rowSpan&&!(xs.row+tp>=e.rowCount);tp++)cn=e.Fb(xs.row+tp),ud+=cn.total||0;if(ud<Od){var Rh=Od-ud,Zc=Od-ud;if(xs.spanAllocation!==null)for(var Dh=xs.spanAllocation,lh=0;lh<xs.rowSpan&&!(0>=Rh)&&!(xs.row+lh>=e.rowCount);lh++){cn=e.Fb(xs.row+lh);var Ph=cn.oa||0,Ld=Dh(xs,cn,Zc);cn.actual=Math.min(cn.maximum,Ph+Ld),cn.oa!==Ph&&(Rh-=cn.oa-Ph)}for(;0<Rh;){var xc=cn.oa||0;if(isNaN(cn.height)&&cn.maximum>xc&&(cn.actual=Math.min(cn.maximum,xc+Rh),cn.oa!==xc&&(Rh-=cn.oa-xc)),cn.index===0)break;cn=e.Fb(cn.index-1)}}for(var of=0,Fh=0;Fh<xs.columnSpan&&!(xs.column+Fh>=e.columnCount);Fh++)cn=e.Eb(xs.column+Fh),of+=cn.total||0;if(of<Rc){var sf=Rc-of,Qv=Rc-of;if(xs.spanAllocation!==null)for(var uh=xs.spanAllocation,Rd=0;Rd<xs.columnSpan&&!(0>=sf)&&!(xs.column+Rd>=e.columnCount);Rd++){cn=e.Eb(xs.column+Rd);var l0=cn.oa||0,Jv=uh(xs,cn,Qv);cn.actual=Math.min(cn.maximum,l0+Jv),cn.oa!==l0&&(sf-=cn.oa-l0)}for(;0<sf;){var ig=cn.oa||0;if(isNaN(cn.width)&&cn.maximum>ig&&(cn.actual=Math.min(cn.maximum,ig+sf),cn.oa!==ig&&(sf-=cn.oa-ig)),cn.index===0)break;cn=e.Eb(cn.index-1)}}}}gn(Fe),mi.free(ah),mi.free(Ea),bc!==void 0&&gn(bc),Fu!==void 0&&gn(Fu);var af=0,lf=0,rg=e.desiredSize,wb=e.maxSize;al=Dl(e,!0);var u0=rh=Kc=0,c0=0;o=e.columnCount;for(var og=0;og<o;og++)Nn[og]!==void 0&&(cn=e.Eb(og),isFinite(cn.width)?(u0+=cn.width,u0+=cn.Wc()):z0(cn)===Sp?(u0+=cn.oa,u0+=cn.Wc()):cn.oa!==0&&(Kc+=cn.oa,Kc+=cn.Wc()));isFinite(rg.width)?af=Math.min(rg.width,wb.width):af=al!==mn&&isFinite(t)?t:Kc,af=Math.max(af,e.minSize.width),af=Math.max(af-u0,0);for(var hx=Kc===0?1:Math.max(af/Kc,1),sg=0;sg<o;sg++)Nn[sg]!==void 0&&(cn=e.Eb(sg),isFinite(cn.width)||z0(cn)===Sp||(cn.actual=cn.oa*hx),cn.position=r.width,cn.oa!==0&&(r.width+=cn.oa,r.width+=cn.Wc()));o=e.rowCount;for(var ag=0;ag<o;ag++)ei[ag]!==void 0&&(cn=e.Fb(ag),isFinite(cn.height)?(c0+=cn.height,c0+=cn.Wc()):z0(cn)===Sp?(c0+=cn.oa,c0+=cn.Wc()):cn.oa!==0&&(rh+=cn.oa,rh+=cn.Wc()));isFinite(rg.height)?lf=Math.min(rg.height,wb.height):lf=al!==mn&&isFinite(n)?n:rh,lf=Math.max(lf,e.minSize.height),lf=Math.max(lf-c0,0);for(var dx=rh===0?1:Math.max(lf/rh,1),lg=0;lg<o;lg++)ei[lg]!==void 0&&(cn=e.Fb(lg),isFinite(cn.height)||z0(cn)===Sp||(cn.actual=cn.oa*dx),cn.position=r.height,cn.oa!==0&&(r.height+=cn.oa,r.height+=cn.Wc()));o=l.length;for(var qv=0;qv<o;qv++){var h0=l[qv],ey=0,ty=0;h0.type===wn.TableRow?(ey=r.width,cn=e.Fb(h0.row),ty=cn.actual):(cn=e.Eb(h0.column),ey=cn.actual,ty=r.height),h0.measuredBounds.h(0,0,ey,ty),Bs(h0,!1)}gn(l),e.inRowsCols=K},I0.prototype.arrange=function(e,t,n){var i=t.length,r=e.padding,o=r.left;r=r.top;var s=e.inRowsCols;if(s!==null){for(var l,u,f=s.length,p=0,x=0;x<f;x++)s[x]&&(p=Math.max(p,s[x].length));u=e.rowDefs,l=e.colDefs;var N=x=0,O=Math.min(e.topIndex,f-1);if(0<u.length){for(;O!==f&&(u[O]===void 0||u[O].oa===0);)O++;O=Math.max(Math.min(O,f-1),0),x=-u[O].position}var F=Math.min(e.leftIndex,p-1);if(0<l.length){for(;F!==p&&(l[F]===void 0||l[F].oa===0);)F++;F=Math.max(Math.min(F,p-1),0),N=-l[F].position}for(var K=0,ye=0;K!==f&&u[K]===void 0;)K++;for(;ye!==f&&l[ye]===void 0;)ye++;p=e.part,e.Fb(K),e.Eb(ye);for(var ae=0;ae<t.length;ae++){var Oe=t[ae];if(Oe instanceof wn&&Oe.visible&&yh(Oe)){if(Oe.type===wn.TableRow){l=e.Fb(Oe.row);var Fe=e.Eb(ye)}else l=e.Fb(K),Fe=e.Eb(Oe.column);u=l.position+x+r,l.oa!==0&&(u+=l.Io(Math.max(K,O))),l=Fe.position+N+o,Fe.oa!==0&&(l+=Fe.Io(Math.max(ye,F))),Fe=Oe.measuredBounds,Oe.Uk(),Oe.actualBounds.ka();var He=Oe.actualBounds,qe=Ht.allocAt(He.x,He.y,He.width,He.height);He.x=Oe.type===wn.TableRow?o:l,He.y=Oe.type===wn.TableColumn?r:u,He.width=Fe.width,He.height=Fe.height,Oe.actualBounds.freeze(),Fc(Oe,!1),Jr(qe,He)||p===null||(p.oh(),Oe.Pn(p)),Ht.free(qe)}}for(ae=mi.alloc(),Oe=0;Oe<f;Oe++)if(s[Oe]){for(p=s[Oe].length,Fe=e.Fb(Oe),u=Fe.position+x+r,Fe.oa!==0&&(u+=Fe.Io(Math.max(K,O))),He=0;He<p;He++)if(s[Oe][He]){qe=e.Eb(He),l=qe.position+N+o,qe.oa!==0&&(l+=qe.Io(Math.max(ye,F)));for(var bt=s[Oe][He],jn=bt.length,oi=0;oi<jn;oi++){var ei=bt[oi],Nn=ei.measuredBounds;ae.h(0,0);for(var cn=1;cn<ei.rowSpan&&!(Oe+cn>=e.rowCount);cn++){var Yi=e.Fb(Oe+cn);Yi.oa!==0&&(ae.height+=Yi.total)}for(cn=1;cn<ei.columnSpan&&!(He+cn>=e.columnCount);cn++)Yi=e.Eb(He+cn),Yi.oa!==0&&(ae.width+=Yi.total);var Ui=qe.oa+ae.width,_r=Fe.oa+ae.height;cn=l,Yi=u;var ho=Ui,ia=_r,ha=l,ol=u,ra=Ui,kh=_r;l+Ui>n.width&&(ra=Math.max(n.width-l,0)),u+_r>n.height&&(kh=Math.max(n.height-u,0));var Ms=ei.alignment;if(Ms.Xb()){Ms=e.defaultAlignment,Ms.sb()||(Ms=vr);var gc=Ms.x,sl=Ms.y,Ih=Ms.offsetX;Ms=Ms.offsetY;var Su=qe.alignment,ju=Fe.alignment;Su.sb()&&(gc=Su.x,Ih=Su.offsetX),ju.sb()&&(sl=ju.y,Ms=ju.offsetY)}else gc=Ms.x,sl=Ms.y,Ih=Ms.offsetX,Ms=Ms.offsetY;(isNaN(gc)||isNaN(sl))&&(sl=gc=.5,Ms=Ih=0),Su=Nn.width,ju=Nn.height;var ru=ei.margin,Xl=ru.left+ru.right,nd=ru.top+ru.bottom,vc=hc(ei,Fe,qe,!1);!isNaN(ei.desiredSize.width)||vc!==Sn&&vc!==bi||(Su=Math.max(Ui-Xl,0)),!isNaN(ei.desiredSize.height)||vc!==Sn&&vc!==Mi||(ju=Math.max(_r-nd,0)),Ui=ei.maxSize,_r=ei.minSize,Su=Math.min(Ui.width,Su),ju=Math.min(Ui.height,ju),Su=Math.max(_r.width,Su),ju=Math.max(_r.height,ju),Ui=ju+nd,cn+=ho*gc-(Su+Xl)*gc+Ih+ru.left,Yi+=ia*sl-Ui*sl+Ms+ru.top,ei.visible&&(po(ha,ol,ra,kh,cn,Yi,Nn.width,Nn.height)?ei.arrange(cn,Yi,Su,ju):ei.arrange(cn,Yi,Su,ju,new Ht(ha,ol,ra,kh)))}}}for(mi.free(ae),e=0;e<i;e++)n=t[e],o=n instanceof wn?n:null,o!==null&&yh(o)&&(o=n.actualBounds,n.naturalBounds.ka(),n.naturalBounds.h(0,0,o.width,o.height),n.naturalBounds.freeze())}};function M0(){this.xa="Base"}fi(M0,Gs),M0.prototype.measure=function(){},M0.prototype.arrange=function(){};function O0(){this.xa="Base"}fi(O0,Gs),O0.prototype.measure=function(){},O0.prototype.arrange=function(){};function L0(){this.xa="Base"}fi(L0,Gs),L0.prototype.measure=function(e,t,n,i,r,o,s){1<i.length&&ut("Viewbox Panel cannot contain more than one GraphObject."),i=i[0],i.Ca=1,i.Uj(),i.measure(1/0,1/0,o,s);var l=i.measuredBounds,u=i.margin,f=u.right+u.left;if(u=u.top+u.bottom,isFinite(t)||isFinite(n)){var p=i.scale,x=l.width;l=l.height;var N=Math.max(t-f,0),O=Math.max(n-u,0),F=1;e.viewboxStretch===di?x!==0&&l!==0&&(F=Math.min(N/x,O/l)):x!==0&&l!==0&&(F=Math.max(N/x,O/l)),F===0&&(F=1e-4),i.Ca*=F,p!==i.scale&&(Bs(i,!0),i.measure(1/0,1/0,o,s))}l=i.measuredBounds,r.width=isFinite(t)?t:Math.max(l.width+f,0),r.height=isFinite(n)?n:Math.max(l.height+u,0)},L0.prototype.arrange=function(e,t,n){t=t[0];var i=t.measuredBounds,r=t.margin,o=Math.max(i.width+(r.right+r.left),0);r=Math.max(i.height+(r.top+r.bottom),0);var s=t.alignment;s.Xb()&&(s=e.defaultAlignment),s.sb()||(s=vr),t.arrange(n.width*s.x-o*s.x+s.offsetX,n.height*s.y-r*s.y+s.offsetY,i.width,i.height)};function yp(){this.xa="Base"}fi(yp,Gs),yp.prototype.measure=function(){},yp.prototype.arrange=function(){},yp.prototype.gc=function(e,t,n){n=e.Df()*n.scale,0>=n&&(n=1);var i=e.gridCellSize,r=i.width;i=i.height;var o=e.naturalBounds,s=e.actualBounds,l=o.width,u=o.height,f=Math.ceil(l/r),p=Math.ceil(u/i),x=e.gridOrigin,N=x.x;x=x.y,t.save(),t.beginPath(),t.rect(0,0,l,u),t.clip(),t.Se();for(var O=[],F=e.O.s,K=F.length,ye=0;ye<K;ye++){var ae=F[ye],Oe=[];if(O.push(Oe),ae.visible){var Fe=ae.interval;if(!(0>Fe)){ae=Cg(ae.figure);for(var He=0;He<K;He++)if(He!==ye){var qe=F[He];qe.visible&&Cg(qe.figure)===ae&&(qe=qe.interval,qe>Fe&&Oe.push(qe))}}}}for(F=e.O.s,K=F.length,ye=0;ye<K;ye++){var bt=F[ye];if(bt.visible&&(Oe=bt.interval||1,ae=Math.abs(Oe),!(2>r*ae*n))){if(Fe=bt.segmentIndex,(!isFinite(Fe)||isNaN(Fe))&&(Fe=0),0>Fe&&(Fe=ae-Math.min(-Fe,ae)),Fe=Math.round(Fe%ae),ae=bt.opacity,He=1,ae!==1){if(ae===0)continue;He=t.globalAlpha,t.globalAlpha=He*ae}qe=O[ye];var jn=!1,oi=bt.strokeDashArray;if(oi!==null&&(jn=!0,t.js(oi,bt.strokeDashOffset)),bt.figure==="LineV"&&bt.stroke!==null&&0<bt.strokeWidth){for(t.lineWidth=bt.strokeWidth,gs(e,t,bt.stroke,!1,!1,o,s),t.beginPath(),oi=bt=Math.floor((N-r)/r);oi<=bt+f;oi++){var ei=oi*r+N;0<=ei&&ei<=l&&R0(oi,Oe,Fe,qe)&&(t.moveTo(ei,0),t.lineTo(ei,u))}t.stroke(),t.Se()}else if(bt.figure==="LineH"&&bt.stroke!==null&&0<bt.strokeWidth){for(t.lineWidth=bt.strokeWidth,gs(e,t,bt.stroke,!1,!1,o,s),t.beginPath(),oi=bt=Math.floor((x-i)/i);oi<=bt+p;oi++)ei=oi*i+x,0<=ei&&ei<=u&&R0(oi,Oe,Fe,qe)&&(t.moveTo(0,ei),t.lineTo(l,ei));t.stroke(),t.Se()}else if(bt.figure==="BarV"&&bt.fill!==null)for(gs(e,t,bt.fill,!0,!1,o,s),bt=bt.width,isNaN(bt)&&(bt=r),ei=oi=Math.floor((N-r)/r);ei<=oi+f;ei++){var Nn=ei*r+N;0<=Nn+bt&&Nn<=l&&R0(ei,Oe,Fe,qe)&&t.fillRect(Nn,0,bt,u)}else if(bt.figure==="BarH"&&bt.fill!==null)for(gs(e,t,bt.fill,!0,!1,o,s),bt=bt.height,isNaN(bt)&&(bt=i),ei=oi=Math.floor((x-i)/i);ei<=oi+p;ei++)Nn=ei*i+x,0<=Nn+bt&&Nn<=u&&R0(ei,Oe,Fe,qe)&&t.fillRect(0,Nn,l,bt);jn&&t.fs(),ae!==1&&(t.globalAlpha=He)}}t.restore(),t.Vc(!1)};function R0(e,t,n,i){if(0>t)return e%t===n;if(e%t!==n)return!1;t=i.length;for(var r=0;r<t;r++)if(e%i[r]===n)return!1;return!0}function D0(){this.xa="Base"}fi(D0,Gs),D0.prototype.measure=function(e,t,n,i,r){var o=i.length;if(e instanceof Fr||e instanceof kn){var s=null,l=null;if(e instanceof kn&&(s=e),e instanceof Fr&&(l=e,s=l.adornedPart,e.j===null&&(e.j=[])),s instanceof kn){var u=s;if(o===0)Ds(e.naturalBounds,0,0),e.measuredBounds.h(0,0,0,0);else{var f=e instanceof Fr?null:s.path;t=s.routeBounds,n=e.jg,n.h(0,0,t.width,t.height);var p=u.points,x=s.pointsCount;l!==null?l.Ul(!1):s!==null&&s.Ul(!1),l=t.width;var N=t.height,O=e.j;if(O.length=0,f!==null){dy(e,l,N,f);var F=f.measuredBounds;n.ed(F),O.push(F)}F=er.alloc();for(var K=ce.alloc(),ye=ce.alloc(),ae=0;ae<o;ae++){var Oe=i[ae];if(Oe!==f)if(Oe.isPanelMain&&Oe instanceof nr){dy(e,l,N,Oe);var Fe=Oe.measuredBounds;n.ed(Fe),O.push(Fe)}else if(2>x)Oe.measure(1/0,1/0,0,0),Fe=Oe.measuredBounds,n.ed(Fe),O.push(Fe);else{var He=Oe.segmentIndex,qe=Oe.segmentFraction,bt=Oe.alignmentFocus;bt.Mc()&&(bt=vr);var jn=Oe.segmentOrientation,oi=Oe.segmentOffset;if(isNaN(He)){var ei=u.ua;Fe=jt(),ei.Qu(qe,Fe);var Nn=ce.allocAt(Fe[0],Fe[1]);if(Nn.add(u.i(0)),ei.type===An.j?Nn.offset(-ei.startX,-ei.startY):(ei=ei.figures.first(),ei!==null&&Nn.offset(-ei.startX,-ei.startY)),ei=Fe[2],jn!==gl){var cn=u.computeAngle(Oe,jn,ei);Oe.Kb=cn}cn=Nn.x-t.x;var Yi=Nn.y-t.y;ce.free(Nn),gn(Fe)}else if(He<-x||He>=x)Fe=ce.alloc(),u.vg(),u.computeMidPoint(Fe),ei=u.midAngle,jn!==gl&&(cn=u.computeAngle(Oe,jn,ei),Oe.Kb=cn),cn=Fe.x-t.x,Yi=Fe.y-t.y,ce.free(Fe);else{if(cn=0,0<=He?(Yi=p.M(He),Fe=He<x-1?p.M(He+1):Yi):(cn=x+He,Yi=p.M(cn),Fe=0<cn?p.M(cn-1):Yi),Yi.Xa(Fe)){0<=He?(ei=0<He?p.M(He-1):Yi,cn=He<x-2?p.M(He+2):Fe):(ei=cn<x-1?p.M(cn+1):Yi,cn=1<cn?p.M(cn-2):Fe),Nn=ei.Bf(Yi);var Ui=Fe.Bf(cn);ei=Nn>Ui+10?0<=He?ei.ab(Yi):Yi.ab(ei):Ui>Nn+10?0<=He?Fe.ab(cn):cn.ab(Fe):0<=He?ei.ab(cn):cn.ab(ei)}else ei=0<=He?Yi.ab(Fe):Fe.ab(Yi);jn!==gl&&(cn=u.computeAngle(Oe,jn,ei),Oe.Kb=cn),cn=Yi.x+(Fe.x-Yi.x)*qe-t.x,Yi=Yi.y+(Fe.y-Yi.y)*qe-t.y}Oe.measure(1/0,1/0,0,0),Fe=Oe.measuredBounds,Nn=Oe.naturalBounds;var _r=0;Oe instanceof nr&&(_r=Oe.strokeWidth),Ui=Nn.width+_r;var ho=Nn.height+_r;F.reset(),F.translate(-Fe.x,-Fe.y),F.scale(Oe.scale,Oe.scale),F.rotate(jn===gl?Oe.angle:ei,Ui/2,ho/2),jn!==Op&&jn!==Rp||F.rotate(90,Ui/2,ho/2),jn!==Lp&&jn!==Dp||F.rotate(-90,Ui/2,ho/2),jn===cm&&(45<ei&&135>ei||225<ei&&315>ei)&&F.rotate(-ei,Ui/2,ho/2),Nn=new Ht(0,0,Ui,ho),K.xi(Nn,bt),F.Ga(K),bt=-K.x+_r/2*Oe.scale,Oe=-K.y+_r/2*Oe.scale,ye.assign(oi),_r=isNaN(oi.x);var ia=isNaN(oi.y);if(_r||ia){Ui=Ui/2+3,ho=ho/2+3;var ha=45<=ei&&135>=ei,ol=225<=ei&&315>=ei;jn===gl&&(ha||ol)?(ye.x=ia?Ui:oi.y,ye.y=_r?ho:oi.x,ha?0<=He||isNaN(He)&&.5>qe||!_r||(ye.y=-ho):ol&&((0<=He||isNaN(He)&&.5>qe)&&_r&&(ye.y=-ho),ia&&(ye.x=-Ui))):(_r&&(ye.x=0<=He||isNaN(He)&&.5>qe?Ui:-Ui),ia&&(ye.y=-ho),ye.rotate(ei))}else ye.rotate(ei);cn+=ye.x,Yi+=ye.y,Nn.set(Fe),Nn.h(cn+bt,Yi+Oe,Fe.width,Fe.height),O.push(Nn),n.ed(Nn)}}if(s!==null)for(i=s.labelNodes;i.next();)i.value.measure(1/0,1/0);e.jg=n,e.position.h(t.x+n.x,t.y+n.y),Ds(r,n.width||0,n.height||0),er.free(F),ce.free(K),ce.free(ye)}}}},D0.prototype.arrange=function(e,t){var n=t.length;if(e instanceof Fr||e instanceof kn){var i=e,r=null;e instanceof Fr&&(r=e,i=r.adornedPart);var o=e instanceof Fr?null:i.path,s=e.j;if(s.length!==0){var l=0;if(o!==null&&l<s.length){var u=s[l];l++,o.arrange(u.x-e.jg.x,u.y-e.jg.y,u.width,u.height)}for(u=0;u<n;u++){var f=t[u];if(f!==o&&l<s.length){var p=s[l];l++,f.arrange(p.x-e.jg.x,p.y-e.jg.y,p.width,p.height)}}}if(t=i.points,n=t.count,2<=n&&e instanceof kn)for(o=e.labelNodes;o.next();){var x=e;s=o.value,l=s.segmentIndex,u=s.segmentFraction;var N=s.alignmentFocus;if(f=s.segmentOrientation,p=s.segmentOffset,isNaN(l)){var O=x.ua,F=jt();O.Qu(u,F);var K=ce.allocAt(F[0],F[1]);K.add(x.i(0)),O.type===An.j||(O=O.figures.first()),K.offset(-O.startX,-O.startY),O=F[2],f!==gl&&(x=x.computeAngle(s,f,O),s.angle=x),x=K.x;var ye=K.y;ce.free(K),gn(F)}else if(l<-n||l>=n)F=ce.alloc(),O=x,ye=F,O.vg(),O.computeMidPoint(ye),O=x.midAngle,f!==gl&&(x=x.computeAngle(s,f,O),s.angle=x),x=F.x,ye=F.y,ce.free(F);else{if(K=0,0<=l?(F=t.s[l],ye=l<n-1?t.s[l+1]:F):(K=n+l,F=t.s[K],ye=0<K?t.s[K-1]:F),F.Xa(ye)){0<=l?(O=0<l?t.s[l-1]:F,K=l<n-2?t.s[l+2]:ye):(O=K<n-1?t.s[K+1]:F,K=1<K?t.s[K-2]:ye);var ae=O.Bf(F),Oe=ye.Bf(K);O=ae>Oe+10?0<=l?O.ab(F):F.ab(O):Oe>ae+10?0<=l?ye.ab(K):K.ab(ye):0<=l?O.ab(K):K.ab(O)}else O=0<=l?F.ab(ye):ye.ab(F);f!==gl&&(x=x.computeAngle(s,f,O),s.angle=x),x=F.x+(ye.x-F.x)*u,ye=F.y+(ye.y-F.y)*u}if(N.ys())s.location=new ce(x,ye);else{N.Mc()&&(N=vr),F=er.alloc(),F.reset(),F.scale(s.scale,s.scale),F.rotate(s.angle,0,0);var Fe=s.naturalBounds;K=Ht.allocAt(0,0,Fe.width,Fe.height),ae=ce.alloc(),ae.xi(K,N),F.Ga(ae),N=-ae.x,Oe=-ae.y;var He=Fe.width,qe=Fe.height;Fe=ce.alloc(),Fe.assign(p);var bt=isNaN(p.x),jn=isNaN(p.y);if(bt||jn){He=He/2+3,qe=qe/2+3;var oi=45<=O&&135>=O,ei=225<=O&&315>=O;f===gl&&(oi||ei)?(Fe.x=jn?He:p.y,Fe.y=bt?qe:p.x,oi?0<=l||isNaN(l)&&.5>u||!bt||(Fe.y=-qe):ei&&((0<=l||isNaN(l)&&.5>u)&&bt&&(Fe.y=-qe),jn&&(Fe.x=-He))):(bt&&(Fe.x=0<=l||isNaN(l)&&.5>u?He:-He),jn&&(Fe.y=-qe),Fe.rotate(O))}else Fe.rotate(O);x+=Fe.x,ye+=Fe.y,F.pp(K),N+=K.x,Oe+=K.y,l=ce.allocAt(x+N,ye+Oe),s.move(l),ce.free(l),ce.free(Fe),ce.free(ae),Ht.free(K),er.free(F)}}r!==null?r.Ul(!1):i.Ul(!1),i=Hy(e),e.location.h(e.position.x+i.x,e.position.y+i.y),ce.free(i)}};function dy(e,t,n,i){if(vu(i)!==!1){var r=i.strokeWidth;r===0&&e instanceof Fr&&e.type===wn.Link&&e.adornedObject instanceof nr&&(r=e.adornedObject.strokeWidth),r*=i.Ca,e instanceof kn&&e.ua!==null?(e=e.geometry.bounds,i.Ge(e.x-r/2,e.y-r/2,e.width+r,e.height+r)):e instanceof Fr&&e.adornedPart.ua!==null?(e=e.adornedPart.ua.bounds,i.Ge(e.x-r/2,e.y-r/2,e.width+r,e.height+r)):i.Ge(-(r/2),-(r/2),t+r,n+r),r=i.desiredSize,r.w()||i.ua===null?i.dc.h(0,0,r.width,r.height):i.dc.assign(i.ua.bounds),Bs(i,!1)}}function bp(){this.xa="Base"}fi(bp,Gs),bp.prototype.measure=function(e,t,n,i,r,o,s){var l=e.Pb();e.graduatedBounds=[];var u=l.margin,f=u.right+u.left,p=u.top+u.bottom;l.measure(t,n,o,s);var x=l.measuredBounds,N=new Ht(-u.left,-u.top,Math.max(x.width+f,0),Math.max(x.height+p,0));e.graduatedBounds.push(N),r.assign(N);for(var O=l.geometry,F=l.strokeWidth,K=O.flattenedSegments,ye=O.flattenedLengths,ae=O.flattenedTotalLength,Oe=K.length,Fe=0,He=0,qe=jt(),bt=0;bt<Oe;bt++){var jn=K[bt],oi=[];He=Fe=0;for(var ei=jn.length,Nn=0;Nn<ei;Nn+=2){var cn=jn[Nn],Yi=jn[Nn+1];if(Nn!==0){var Ui=180*Math.atan2(Yi-He,cn-Fe)/Math.PI;0>Ui&&(Ui+=360),oi.push(Ui)}Fe=cn,He=Yi}qe.push(oi)}if(e.graduatedIntervals===null){for(var _r=[],ho=e.O.s,ia=ho.length,ha=0;ha<ia;ha++){var ol=ho[ha],ra=[];if(_r.push(ra),ol.visible){var kh=ol.interval;if(!(0>kh)){for(var Ms=0;Ms<ia;Ms++)if(Ms!==ha){var gc=ho[Ms];if(gc.visible&&ol.constructor===gc.constructor){var sl=gc.interval;sl>kh&&ra.push(sl)}}}}}e.graduatedIntervals=_r}var Ih=e.graduatedIntervals,Su=e.O.s,ju=Su.length,ru=0,Xl=0,nd=ae;e.graduatedMarks=[];for(var vc,Vf=0;Vf<ju;Vf++){var ou=Su[Vf];if(vc=[],ou.visible&&ou!==l){var al=Math.abs(ou.interval),r0=e.graduatedTickUnit;if(!(2>r0*al*ae/e.graduatedRange&&ou.graduatedSkip===null)){var ef=ye[0][0],Mc=0,Ql=0;Xl=ae*ou.graduatedStart-1e-4,nd=ae*ou.graduatedEnd+1e-4;var Ad=r0*al,su=e.graduatedTickBase;if(su<e.graduatedMin){var id=(e.graduatedMin-su)/Ad;id=id%1===0?id:Math.floor(id+1),su+=id*Ad}else su>e.graduatedMin+Ad&&(su-=Math.floor((su-e.graduatedMin)/Ad)*Ad);for(var Jm=Ih[Vf],o0=su,Zv=1e-6*e.graduatedMax,Kc=1;su<=e.graduatedMax+Zv;Kc++){e:{for(var rh=Jm.length,tf=0;tf<rh;tf++){var rd=(su-e.graduatedTickBase)%(Jm[tf]*e.graduatedTickUnit),Kf=1e-6*e.graduatedTickUnit;if(rd<Kf&&rd>-Kf){var od=!1;break e}}od=!0}if(od&&(su>e.graduatedMax&&(su=e.graduatedMax),ou.graduatedSkip===null||ou instanceof vo&&!ou.graduatedSkip(su,ou)||ou instanceof nr&&!ou.graduatedSkip(su,ou))&&(ru=(su-e.graduatedMin)*ae/e.graduatedRange,ru>ae&&(ru=ae),Xl<=ru&&ru<=nd)){for(var Yc=qe[Mc][Ql],Mh=ye[Mc][Ql];Mc<ye.length;){for(;ru>ef&&Ql<ye[Mc].length-1;)Ql++,Yc=qe[Mc][Ql],Mh=ye[Mc][Ql],ef+=Mh;if(ru<=ef)break;Mc++,Ql=0,Yc=qe[Mc][Ql],Mh=ye[Mc][Ql],ef+=Mh}var Jl=K[Mc],Oc=Jl[2*Ql],qm=Jl[2*Ql+1],oh=(ru-(ef-Mh))/Mh,Yf=new ce(Oc+(Jl[2*Ql+2]-Oc)*oh+F/2-O.bounds.x,qm+(Jl[2*Ql+3]-qm)*oh+F/2-O.bounds.y);Yf.scale(l.scale,l.scale);e:{var yc=Yc,kd=qe[Mc];if(!(.5005>oh&&.4995<oh)){var Lc=yc;if(.5>oh?0<Ql?Lc=kd[Ql-1]:Ke.$(Jl[0],Jl[Jl.length-2])&&Ke.$(Jl[1],Jl[Jl.length-1])&&(Lc=kd[kd.length-1]):.5<oh&&(Ql+1<kd.length?Lc=kd[Ql+1]:Ke.$(Jl[0],Jl[Jl.length-2])&&Ke.$(Jl[1],Jl[Jl.length-1])&&(Lc=kd[0])),yc!==Lc){var nf=Math.abs(yc-Lc);if(180<nf&&(yc<Lc?yc+=360:Lc+=360,nf=Math.abs(yc-Lc)),5e-4>oh||.9995<oh){Yc=(yc+Lc)/2%360;break e}if(10>nf){var Zf=1-Math.abs(.5-oh);Yc=(yc*Zf+Lc*(1-Zf))%360;break e}}}Yc=yc}if(ou instanceof vo){var oc="";ou.graduatedFunction!==null?(oc=ou.graduatedFunction(su,ou),oc=oc!=null?oc.toString():""):oc=(+su.toFixed(2)).toString(),oc!==""&&vc.push({$l:Yf,angle:Yc,text:oc})}else vc.push({$l:Yf,angle:Yc})}su=o0+Kc*Ad}}}e.graduatedMarks.push(vc)}gn(qe);var Ea=e.graduatedMarks;if(Ea!==null)for(var s0=i.length,Sl=0;Sl<s0;Sl++){var Os=i[Sl],El=Ea[Sl];if(Os.visible&&Os!==l&&El.length!==0){if(Os instanceof nr){var sh=e,Oh=r,Id=Os.alignmentFocus;Id.Mc()&&(Id=ya);var Xv=Os.angle;Os.Kb=0,Os.measure(1/0,1/0,0,0),Os.Kb=Xv;var eg=Os.measuredBounds,Xf=eg.width,Md=eg.height,rf=Ht.allocAt(0,0,Xf,Md),ql=ce.alloc();ql.xi(rf,Id),Ht.free(rf);for(var ah=-ql.x,bc=-ql.y,Fu=new Ht,sd=El.length,Qf=0;Qf<sd;Qf++)for(var ad=El[Qf],tg=ad.$l.x,Jf=ad.$l.y,xs=ad.angle,sc=0;4>sc;sc++){switch(sc){case 0:ql.h(ah,bc);break;case 1:ql.h(ah+Xf,bc);break;case 2:ql.h(ah,bc+Md);break;case 3:ql.h(ah+Xf,bc+Md)}ql.rotate(xs+Os.angle),ql.offset(tg,Jf),Qf===0&&sc===0?Fu.h(ql.x,ql.y,0,0):Fu.Ye(ql),ql.offset(-tg,-Jf),ql.rotate(-xs-Os.angle)}ce.free(ql),sh.graduatedBounds!==null&&sh.graduatedBounds.push(Fu),Or(Oh,Fu.x,Fu.y,Fu.width,Fu.height)}else if(Os instanceof vo){var Gu=e,ng=r;Gu.temporaryTextBlock===null&&(Gu.temporaryTextBlock=new vo);var au=Gu.temporaryTextBlock;Ay(au,Os);var Lh=Os.alignmentFocus;Lh.Mc()&&(Lh=ya);for(var Wu=Os.segmentOrientation,qf=Os.segmentOffset,ld=new Ht,a0=0,ep=0,Rc=0,Od=0,ud=0,tp=El.length,Rh=0;Rh<tp;Rh++){var Zc=El[Rh];a0=Zc.$l.x,ep=Zc.$l.y,Rc=Zc.angle,ud=Od=Os.angle,Wu!==gl&&(ud=Wu===Mp||Wu===um?Rc+Os.angle:Rc,Od=kn.computeAngle(Wu,ud)),au.Kb=Od,au.text=Zc.text||"",au.measure(1/0,1/0,0,0);var Dh=au.measuredBounds,lh=au.naturalBounds,Ph=lh.width,Ld=lh.height,xc=er.alloc();xc.reset(),xc.translate(-Dh.x,-Dh.y),xc.scale(au.scale,au.scale),xc.rotate(ud,Ph/2,Ld/2),Wu!==Op&&Wu!==Rp||xc.rotate(90,Ph/2,Ld/2),Wu!==Lp&&Wu!==Dp||xc.rotate(-90,Ph/2,Ld/2),Wu===cm&&(45<Rc&&135>Rc||225<Rc&&315>Rc)&&xc.rotate(-Rc,Ph/2,Ld/2);var of=Ht.allocAt(0,0,Ph,Ld),Fh=ce.alloc();Fh.xi(of,Lh),xc.Ga(Fh);var sf=-Fh.x,Qv=-Fh.y,uh=ce.alloc();uh.assign(qf),isNaN(uh.x)&&(uh.x=Ph/2+3),isNaN(uh.y)&&(uh.y=-(Ld/2+3)),uh.rotate(Rc),a0+=uh.x+sf,ep+=uh.y+Qv;var Rd=new Ht(a0,ep,Dh.width,Dh.height),l0=new Ht(Dh.x,Dh.y,Dh.width,Dh.height),Jv=new Ht(lh.x,lh.y,lh.width,lh.height);Zc.Sz=Od,Zc.lineCount=au.lineCount,Zc.lines=[au.Cb,au.Ih,au.df,au.Le,au.Qc,au.Qb,au.ze],Zc.actualBounds=Rd,Zc.measuredBounds=l0,Zc.naturalBounds=Jv,Rh===0?ld.assign(Rd):ld.ed(Rd),ce.free(uh),ce.free(Fh),Ht.free(of),er.free(xc)}Gu.graduatedBounds!==null&&Gu.graduatedBounds.push(ld),Or(ng,ld.x,ld.y,ld.width,ld.height)}Bs(Os,!1)}}},bp.prototype.arrange=function(e,t,n){if(e.graduatedBounds!==null){var i=e.Pb(),r=e.graduatedMarks;if(r!==null){var o=e.graduatedBounds,s=0,l=o[s];s++,i!==null&&i.arrange(l.x-n.x,l.y-n.y,l.width,l.height);for(var u=t.length,f=0;f<u;f++){var p=t[f];l=r[f],p.visible&&p!==i&&l.length!==0&&(l=o[s],s++,p.arrange(l.x-n.x,l.y-n.y,l.width,l.height))}e.graduatedBounds=null}}},bp.prototype.gc=function(e,t,n){var i=n.$i;n.$i=!0;var r=e.naturalBounds,o=r.width,s=r.height;r=t instanceof tu,t.save(),t.beginPath(),t.rect(-1,-1,o+1,s+1),t.clip(),t.Se(),o=e.Pb(),o.gc(t,n),s=e.Df()*n.scale,0>=s&&(s=1);for(var l=o.actualBounds,u=e.O.s,f=e.graduatedMarks,p=u.length,x=0;x<p;x++){var N=u[x],O=f[x],F=O.length;if(N.visible&&N!==o&&O.length!==0){if(N instanceof nr){if(!(2>e.graduatedTickUnit*N.interval*o.geometry.flattenedTotalLength/e.graduatedRange*s&&N.graduatedSkip===null)){var K=N.measuredBounds,ye=N.strokeWidth*N.scale,ae=N.alignmentFocus;ae.Mc()&&(ae=ya);for(var Oe=0;Oe<F;Oe++){var Fe=O[Oe].$l,He=O[Oe].angle,qe=ae,bt=N.Ab;bt.reset(),bt.translate(Fe.x+l.x,Fe.y+l.y),bt.rotate(He+N.angle,0,0),bt.translate(-K.width*qe.x+qe.offsetX+ye/2,-K.height*qe.y+qe.offsetY+ye/2),bt.scale(N.scale,N.scale),_u(N,!1),N.wh.set(N.Ab),N.Kk=N.scale,Iu(N,!1),N.gc(t,n),r&&(e.svg.appendChild(N.svg),N.svg=null),N.Ab.reset()}}}else if(N instanceof vo)for(e.temporaryTextBlock===null&&(e.temporaryTextBlock=new vo),K=e.temporaryTextBlock,Ay(K,N),ye=0;ye<F;ye++)ae=O[ye],ae.actualBounds&&ae.measuredBounds&&ae.naturalBounds&&(K.ec=ae.text||"",K.Kb=ae.Sz||0,K.Gc=ae.lineCount||0,Oe=ae.lines,Oe!==void 0&&(K.Cb=Oe[0],K.Ih=Oe[1],K.df=Oe[2],K.Le=Oe[3],K.Qc=Oe[4],K.Qb=Oe[5],K.ze=Oe[6]),ae.naturalBounds&&(K.dc=ae.naturalBounds),ae.actualBounds&&(Oe=ae.actualBounds,K.arrange(Oe.x,Oe.y,Oe.width,Oe.height)),Oe=ae.actualBounds,K.arrange(Oe.x,Oe.y,Oe.width,Oe.height),Fe=ae.measuredBounds,ae=ae.naturalBounds,He=K.Ab,He.reset(),He.translate(Oe.x+l.x,Oe.y+l.y),He.translate(-Fe.x,-Fe.y),K.no(He,ae.x,ae.y,ae.width,ae.height),_u(K,!1),K.wh.set(K.Ab),K.Kk=K.scale,Iu(K,!1),K.Ng=N.part,K.Me=N.panel,K.gc(t,n),K.Me=null,K.Ng=null,r&&(e.svg.appendChild(K.svg),K.svg=null))}}n.$i=i,t.restore(),t.Vc(!0)};function wn(e,t){if(nt.call(this),this.na=null,e===void 0)this.na=wn.Position;else if(typeof e=="string"){var n=qu.I(e);n!==null&&(this.na=n)}else e instanceof Gs?this.na=e:e&&(this.na=wn.Position,t=e);this.na===null&&ut("Panel type not specified or PanelLayout not loaded: "+e),this.l=this.l|4194304|(this.na===wn.Grid?1048576:0),this.O=new Xt,this.yb=oa,this.Tm=Lr,this.Uf=Ji,this.$g=null,this.$e="",this.jg=new Ht(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=di,this.jn=Xs,this.kn=br,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,t&&Object.assign(this,t)}fi(wn,nt),wn.prototype.cloneProtected=function(e){nt.prototype.cloneProtected.call(this,e),e.na=this.na,e.yb=this.yb.J(),e.Tm=this.Tm.J(),e.Uf=this.Uf,e.$e=this.$e,e.jg.assign(this.jg),this.T!==null&&(e.T=this.T.copy(e)),e.xo=this.xo,e.jn=this.jn.J(),e.kn=this.kn.J(),this.ra!==null&&(e.ra=this.ra.copy()),e.ub=this.ub,e.zn=this.zn,e.Hh=this.Hh},wn.prototype.Af=function(e){nt.prototype.Af.call(this,e),e.O=this.O;for(var t=e.O.s,n=t.length,i=0;i<n;i++)t[i].Me=e;e.$g=null},wn.prototype.copy=function(){var e=nt.prototype.copy.call(this);if(e!==null){for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i].copy();r.wi(e),r.Ng=null;var o=e.O,s=o.count;if(o.Gb(s,r),o=e.part,o!==null){o.Rh=null,r.portId!==null&&o instanceof Vn&&(o.Te=!0);var l=e.diagram;l!==null&&l.undoManager.isUndoingRedoing||o.cb(zo,"elements",e,null,r,null,s)}}return e}return null},_=wn.prototype,_.toString=function(){return"Panel("+this.type.name+")#"+It(this)},_.Pn=function(e){nt.prototype.Pn.call(this,e);for(var t=this.O.s,n=t.length,i=0;i<n;i++)t[i].Pn(e)},_.hh=function(e,t){if(this.na===wn.Grid)e.yc(),this.na.gc(this,e,t);else if(this.na===wn.Graduated)e.yc(),this.na.gc(this,e,t);else{if(this.na===wn.Table)if(e.yc(),e instanceof tu){var n=e.yd;e.yd=S0(e,"gojs-ts"),wg(this,e),e.nh.pop(),e.yd=n}else wg(this,e);(n=this.isClipping&&this.na===wn.Spot)&&e.save();for(var i=this.Pb(),r=this.O.s,o=r.length,s=0;s<o;s++){var l=r[s];n&&l===i&&(e.clipInsteadOfFill=!0),l.gc(e,t),n&&l===i&&(e.clipInsteadOfFill=!1)}n&&(e.restore(),e.Vc(!0))}};function wg(e,t){t.lineCap="butt";var n=0<e.rowCount?e.rowDefs:null,i=0<e.columnCount?e.colDefs:null;n!==null&&P0(e,t,!0,n,!0),i!==null&&P0(e,t,!1,i,!0),n!==null&&fy(e,t,!0,n),i!==null&&fy(e,t,!1,i),n!==null&&P0(e,t,!0,n,!1),i!==null&&P0(e,t,!1,i,!1)}function fy(e,t,n,i){for(var r=i.length,o=e.actualBounds,s=e.naturalBounds,l=!0,u=0;u<r;u++){var f=i[u];if(f!==void 0&&f.actual!==0)if(l)l=!1;else{if(n){if(f.position>s.height)continue}else if(f.position>s.width)continue;var p=f.separatorStrokeWidth;isNaN(p)&&(p=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var x=f.separatorStroke;if(x===null&&(x=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),p!==0&&x!==null){gs(e,t,x,!1,!1,s,o),x=!1;var N=f.separatorDashArray;N===null&&(N=n?e.defaultRowSeparatorDashArray:e.defaultColumnSeparatorDashArray),N!==null&&(x=!0,t.js(N,0)),t.beginPath(),N=f.position+p,n?N>s.height&&(p-=N-s.height):N>s.width&&(p-=N-s.width),f=f.position+p/2,t.lineWidth=p,p=e.yb,n?(f+=p.top,N=s.width-p.right,t.moveTo(p.left,f),t.lineTo(N,f)):(f+=p.left,N=s.height-p.bottom,t.moveTo(f,p.top),t.lineTo(f,N)),t.stroke(),t.Se(),x&&t.fs()}}}}function P0(e,t,n,i,r){for(var o=i.length,s=e.actualBounds,l=e.naturalBounds,u=py(e,!0),f=py(e,!1),p=0;p<o;p++){var x=i[p];if(x!==void 0&&x.background!==null&&x.coversSeparators!==r&&x.actual!==0){var N=n?s.height:s.width;if(!(x.position>N)){var O=x.Wc(),F=x.separatorStrokeWidth;isNaN(F)&&(F=n?e.defaultRowSeparatorStrokeWidth:e.defaultColumnSeparatorStrokeWidth);var K=x.separatorStroke;K===null&&(K=n?e.defaultRowSeparatorStroke:e.defaultColumnSeparatorStroke),(K===null||x.index===(n?u:f))&&(F=0),O-=F,F=x.position+F,O+=x.actual,F+O>N&&(O=N-F),0>=O||(N=e.yb,gs(e,t,x.background,!0,!1,l,s),n?t.fillRect(N.left,F+N.top,s.width-(N.left+N.right),O):t.fillRect(F+N.left,N.top,O,s.height-(N.top+N.bottom)))}}}}function py(e,t){for(var n=t?e.rowCount:e.columnCount,i=0;i<n;i++){var r=t?e.rowDefs[i]:e.colDefs[i];if(r!==void 0)return r.index}return 0}function Cg(e){return e==="LineV"||e==="BarV"}_.lv=function(){for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].lv();this.Uc=!0},_.kk=function(e,t,n){if(!nt.prototype.kk.call(this,e,t,n))return!1;if(this.type===wn.Table)n=this.svg.getElementsByClassName("gojs-ts"),n=n.length!==0?n[0]:null,n!==null&&(n.innerHTML=""),e.yd=n,wg(this,e),e.yd=null;else if(this.na===wn.Grid||this.na===wn.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;n=this.O.s;for(var i=n.length,r=0;r<i;r++)n[r].gc(e,t);return!0},_.nk=function(){return!0},_.$o=function(e,t,n,i){if(!this.isClipping)if(this.Dd()&&e.bk!==null){e=e.bk,t=this.O.s;for(var r=0,o=0,s=0;s<t.length;s++)if(t[s].Ed()){var l=t[s].actualBounds;r=s===0?l.x:Math.min(l.x,r),o=s===0?l.y:Math.min(l.y,o)}i.setAttributeNS(null,"clip-path","path('M "+(e.x-n.x-r)+","+(e.y-n.y-o)+" l "+e.width+" 0 l 0 "+e.height+" l -"+e.width+" 0 z')")}else nt.prototype.$o.call(this,e,t,n,i)},_.Sj=function(e,t,n,i,r){var o=this.se(),s=this.transform,l=1/(s.m11*s.m22-s.m12*s.m21),u=s.m22*l,f=-s.m12*l,p=-s.m21*l,x=s.m11*l,N=l*(s.m21*s.dy-s.m22*s.dx),O=l*(s.m12*s.dx-s.m11*s.dy);if(this.areaBackground!==null)return s=this.actualBounds,Ke.Ff(s.left,s.top,s.right,s.bottom,e,t,n,i,r);if(this.background!==null)return o=e*u+t*p+N,l=e*f+t*x+O,e=n*u+i*p+N,u=n*f+i*x+O,r.h(0,0),n=this.naturalBounds,o=Ke.Ff(0,0,n.width,n.height,o,l,e,u,r),r.transform(s),o;o||(u=1,p=f=0,x=1,O=N=0),l=e*u+t*p+N,e=e*f+t*x+O,u=n*u+i*p+N,n=n*f+i*x+O,r.h(u,n),i=(u-l)*(u-l)+(n-e)*(n-e),f=!1,x=this.O.s,O=x.length,p=ce.alloc(),N=null,t=1/0;var F=null,K=this.isClipping&&this.na===wn.Spot;K&&(F=ce.alloc(),N=this.Pb(),(f=N.Sj(l,e,u,n,F))&&(t=(l-F.x)*(l-F.x)+(e-F.y)*(e-F.y)));for(var ye=0;ye<O;ye++){var ae=x[ye];ae.visible&&ae!==N&&ae.Sj(l,e,u,n,p)&&(f=!0,ae=(l-p.x)*(l-p.x)+(e-p.y)*(e-p.y),ae<i&&(i=ae,r.set(p)))}return K&&(t>i&&r.set(F),ce.free(F)),ce.free(p),o&&r.transform(s),f},_.Gj=function(){for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Gj();nt.prototype.Gj.call(this)},_.v=function(e){if(!vu(this)){nt.prototype.v.call(this,e),e=null,(this.na===wn.Auto||this.na===wn.Link)&&(e=this.Pb());for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i];if((r===e||r.isPanelMain)&&r.v(!0),!r.desiredSize.w()){var o=Dl(r,!1);(r instanceof ml||r instanceof wn||r instanceof vo||o!==mn)&&r.v(!0)}}}},_.Uj=function(){if(!vu(this)){Bs(this,!0),Fc(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Uj()}},_.Uk=function(){if(!(this.l&2048)){_u(this,!0),Iu(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Wu()}},_.Wu=function(){Iu(this,!0);for(var e=this.O.s,t=e.length,n=0;n<t;n++)e[n].Wu()},_.Wl=function(e,t,n,i){var r=this.jg;r.h(0,0,0,0);var o=this.desiredSize,s=this.minSize;n===void 0&&(n=s.width,i=s.height),n=Math.max(n,s.width),i=Math.max(i,s.height);var l=this.maxSize;isNaN(o.width)||(e=Math.min(o.width,l.width)),isNaN(o.height)||(t=Math.min(o.height,l.height)),e=Math.max(n,e),t=Math.max(i,t);var u=this.yb;e=Math.max(e-u.left-u.right,0),t=Math.max(t-u.top-u.bottom,0);var f=this.O.s;f.length!==0&&this.na.measure(this,e,t,f,r,n,i),e=r.width+u.left+u.right,u=r.height+u.top+u.bottom,isFinite(o.width)&&(e=o.width),isFinite(o.height)&&(u=o.height),e=Math.min(l.width,e),u=Math.min(l.height,u),e=Math.max(s.width,e),u=Math.max(s.height,u),e=Math.max(n,e),u=Math.max(i,u),Ds(r,e,u),Ds(this.naturalBounds,e,u),this.Ge(0,0,e,u)},_.Pb=function(){if(this.$g===null){var e=this.O.s,t=e.length;if(t===0)return null;for(var n=0;n<t;n++){var i=e[n];if(i.isPanelMain===!0)return this.$g=i}this.$g=e[0]}return this.$g};function th(e){return e.part!==null?e.part.locationObject:null}_.eh=function(e,t,n,i){var r=this.O.s;if(this.actualBounds.h(e,t,n,i),r.length!==0){if(!this.desiredSize.w()){e=Dl(this,!0);var o=this.measuredBounds;t=o.width,o=o.height;var s=this.Kg,l=s.left+s.right;switch(s=s.top+s.bottom,t===n&&o===i&&(e=mn),e){case mn:(t>n||o>i)&&(this.v(),this.measure(t>n?n:t,o>i?i:o,0,0));break;case Sn:this.v(!0),this.measure(n+l,i+s,0,0);break;case bi:this.v(!0),this.measure(n+l,o+s,0,0);break;case Mi:this.v(!0),this.measure(t+l,i+s,0,0)}}this.na.arrange(this,r,this.jg)}},_.gh=function(e){var t=this.naturalBounds,n=th(this);if(po(0,0,t.width,t.height,e.x,e.y)){t=this.O.s;for(var i=t.length,r=ce.allocAt(0,0);i--;){var o=t[i];if((o.visible||o===n)&&(zi(r.set(e),o.transform),o.ca(r)))return ce.free(r),!0}return ce.free(r),!(this.Ma===null&&this.areaBackground===null)}return!1},_.ks=function(e){if(this.bindingId===e)return this;for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i].ks(e);if(r!==null)return r}return null},_.qm=function(e,t){if(t(this,e),e instanceof wn){e=e.O.s;for(var n=e.length,i=0;i<n;i++)this.qm(e[i],t)}};function bd(e,t){my(e,e,t)}function my(e,t,n){n(t),t=t.O.s;for(var i=t.length,r=0;r<i;r++){var o=t[r];o instanceof wn&&my(e,o,n)}}function Ob(e,t){gy(e,e,t)}function gy(e,t,n){if(n(t),t instanceof wn){t=t.O.s;for(var i=t.length,r=0;r<i;r++)gy(e,t[r],n)}}_.Nl=function(e){return vy(this,this,e)};function vy(e,t,n){if(n(t))return t;if(t instanceof wn){t=t.O.s;for(var i=t.length,r=0;r<i;r++){var o=vy(e,t[r],n);if(o!==null)return o}}return null}_.fb=function(e){if(this.name===e)return this;var t=this.O.s,n=t.length;this.Hh===null&&this.itemTemplateMap===null||(n=xp(this));for(var i=0;i<n;i++){var r=t[i];if(r instanceof wn){var o=r.fb(e);if(o!==null)return o}if(r.name===e)return r}return null};function yy(e){e=e.O.s;for(var t=e.length,n=0,i=0;i<t;i++){var r=e[i];r instanceof wn?n=Math.max(n,yy(r)):r instanceof nr&&(n=Math.max(n,r.ig/2*r.strokeMiterLimit*r.Df()))}return n}_.se=function(){return!(this.type===wn.TableRow||this.type===wn.TableColumn)};function yh(e){return e.type===wn.TableRow||e.type===wn.TableColumn}_.ic=function(e,t,n){if(this.pickable===!1||(t===void 0&&(t=null),n===void 0&&(n=null),fl(this)))return null;var i=this.naturalBounds,r=1/this.Df(),o=this.se(),s=o?e:zi(ce.allocAt(e.x,e.y),this.transform),l=this.diagram,u=10,f=5;if(l!==null&&(u=l.Ql("extraTouchArea"),f=u/2),po(-(f*r),-(f*r),i.width+u*r,i.height+u*r,s.x,s.y)){if(!this.isAtomic){r=this.O.s;var p=r.length;if(l=ce.alloc(),f=(u=this.isClipping&&this.na===wn.Spot)?this.Pb():null,u&&(f.se()?zi(l.set(e),f.transform):l.set(e),!f.ca(l)))return ce.free(l),o||ce.free(s),null;for(var x=th(this);p--;){var N=r[p];if((N.visible||N===x)&&(N.se()?zi(l.set(e),N.transform):l.set(e),!u||N!==f)){var O=null;if(N instanceof wn?O=N.ic(l,t,n):N.pickable===!0&&N.ca(l)&&(O=N),O!==null&&(t!==null&&(O=t(O)),O!==null&&(n===null||n(O))))return ce.free(l),o||ce.free(s),O}}ce.free(l)}return this.background===null&&this.areaBackground===null?(o||ce.free(s),null):(e=po(0,0,i.width,i.height,s.x,s.y)?this:null,o||ce.free(s),e)}return o||ce.free(s),null},_.ji=function(e,t,n,i){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var r=this.naturalBounds,o=this.se(),s=o?e:zi(ce.allocAt(e.x,e.y),this.transform);if(r=po(0,0,r.width,r.height,s.x,s.y),yh(this)||r){if(!this.isAtomic){for(var l=this.O.s,u=l.length,f=ce.alloc(),p=th(this);u--;){var x=l[u];if(x.visible||x===p){x.se()?zi(f.set(e),x.transform):f.set(e);var N=x;x=x instanceof wn?x:null,(x!==null?x.ji(f,t,n,i):N.ca(f))&&N.pickable!==!1&&(t!==null&&(N=t(N)),N===null||n!==null&&!n(N)||i.add(N))}}ce.free(f)}return o||ce.free(s),r&&(this.background!==null||this.areaBackground!==null)}return o||ce.free(s),!1},_.Cf=function(e,t,n,i,r,o){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var s=o;if(o===void 0&&(s=er.alloc(),s.reset()),s.multiply(this.transform),this.fh(e,s))return Tg(this,t,n,r),o===void 0&&er.free(s),!0;if(this.Yc(e,s)){if(!this.isAtomic)for(var l=th(this),u=this.O.s,f=u.length;f--;){var p=u[f];if(p.visible||p===l){var x=p.actualBounds,N=this.naturalBounds;x.x>N.width||x.y>N.height||0>x.x+x.width||0>x.y+x.height||(x=p,p=p instanceof wn?p:null,N=er.alloc(),N.set(s),(p!==null?p.Cf(e,t,n,i,r,N):na(x,e,i,N))&&(t!==null&&(x=t(x)),x===null||n!==null&&!n(x)||r.add(x)),er.free(N))}}return o===void 0&&er.free(s),i}return o===void 0&&er.free(s),!1};function Tg(e,t,n,i){for(var r=e.O.s,o=r.length;o--;){var s=r[o];if(s.visible){var l=s.actualBounds,u=e.naturalBounds;l.x>u.width||l.y>u.height||0>l.x+l.width||0>l.y+l.height||(s instanceof wn&&Tg(s,t,n,i),t!==null&&(s=t(s)),s===null||n!==null&&!n(s)||i.add(s))}}}_.og=function(e,t,n,i,r,o){if(this.pickable===!1)return!1;n===void 0&&(n=null),i===void 0&&(i=null);var s=this.naturalBounds,l=this.se(),u=l?e:zi(ce.allocAt(e.x,e.y),this.transform),f=l?t:zi(ce.allocAt(t.x,t.y),this.transform),p=u.Bf(f),x=0<u.x&&u.x<s.width&&0<u.y&&u.y<s.height||Pr(u.x,u.y,0,0,0,s.height)<=p||Pr(u.x,u.y,0,s.height,s.width,s.height)<=p||Pr(u.x,u.y,s.width,s.height,s.width,0)<=p||Pr(u.x,u.y,s.width,0,0,0)<=p;if(s=u.zd(0,0)<=p&&u.zd(0,s.height)<=p&&u.zd(s.width,0)<=p&&u.zd(s.width,s.height)<=p,l||(ce.free(u),ce.free(f)),x){if(!this.isAtomic){u=ce.alloc(),f=ce.alloc(),p=th(this);for(var N=this.O.s,O=N.length;O--;){var F=N[O];if(F.visible||F===p){var K=F.actualBounds,ye=this.naturalBounds;(!l||!(K.x>ye.width||K.y>ye.height||0>K.x+K.width||0>K.y+K.height))&&(F.se()?(K=F.transform,zi(u.set(e),K),zi(f.set(t),K)):(u.set(e),f.set(t)),K=F,F=F instanceof wn?F:null,(F!==null?F.og(u,f,n,i,r,o):K.tx(u,f,r))&&(n!==null&&(K=n(K)),K===null||i!==null&&!i(K)||o.add(K)))}}ce.free(u),ce.free(f)}return r?x:s}return!1};function Ng(e){var t=null;return e instanceof nr&&(t=e.spot1,t===Lr&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot1)),t===null&&(t=Yo),t}function Ag(e){var t=null;return e instanceof nr&&(t=e.spot2,t===Lr&&(t=null),e=e.geometry,e!==null&&t===null&&(t=e.spot2)),t===null&&(t=Oo),t}_.add=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];for(n=0;n<t.length;n++)this.Gb(this.O.count,t[n]);return this},_.M=function(e){return this.O.M(e)},_.Gb=function(e,t){t instanceof Ei&&ut("Cannot add a Part to a Panel: "+t+"; use a Panel instead"),(this===t||this.rg(t))&&(this===t&&ut("Cannot make a Panel contain itself: "+this.toString()),ut("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+t.toString()));var n=t.panel;if(n!==null&&n!==this&&ut("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+t.toString()+", already contained by "+n.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==wn.Grid||t instanceof nr||ut("Can only add Shapes to a Grid Panel, not: "+t),this.na!==wn.Graduated||t instanceof nr||t instanceof vo||ut("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+t),t.wi(this),t.Ng=null,this.itemArray!==null){var i=t.data;i!==null&&typeof i=="object"&&(this.ge===null&&(this.ge=new ii),this.ge.add(i,t))}var r=this.O;if(i=-1,n===this){for(var o=-1,s=this.O.s,l=s.length,u=0;u<l;u++)if(s[u]===t){o=u;break}if(o!==-1){if(o===e||o+1>=r.count&&e>=r.count)return;r.mb(o),i=o}else ut("element "+t.toString()+" has panel "+n.toString()+" but is not contained by it.")}(0>e||e>r.count)&&(e=r.count),r.Gb(e,t),(e===0||t.isPanelMain)&&(this.$g=null),vu(this)||this.v(),t.v(!1),t.portId!==null?this.Te=!0:t instanceof wn&&t.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||B0(this,t,!1),n=this.part,n!==null&&(n.Rh=null,n.ag=NaN,this.Te&&n instanceof Vn&&(n.Te=!0),n.Te&&n instanceof Vn&&(n.wc=null),r=this.diagram,r!==null&&r.undoManager.isUndoingRedoing||(i!==-1&&n.cb(os,"elements",this,t,null,i,null),n.cb(zo,"elements",this,null,t,null,e)))};function kg(e,t){e.l=t?e.l|16777216:e.l&-16777217}_.remove=function(e){for(var t=this.O.s,n=t.length,i=-1,r=0;r<n;r++)if(t[r]===e){i=r;break}i!==-1&&this.pc(i,!0)},_.mb=function(e){0<=e&&this.pc(e,!0)},_.pc=function(e,t){var n=this.O,i=n.M(e);if(i.Ng=null,i.wi(null),this.ge!==null){var r=i.data;typeof r=="object"&&this.ge.remove(r)}n.mb(e),Bs(this,!1),this.v(),this.$g===i&&(this.$g=null),this.graduatedIntervals=null;var o=this.part;o!==null&&(o.Rh=null,o.ag=NaN,o.Wb(),o instanceof Vn&&(i instanceof wn?i.qm(i,function(s,l){Qg(o,l,t)}):Qg(o,i,t)),n=this.diagram,n!==null&&n.undoManager.isUndoingRedoing||o.cb(os,"elements",this,i,null,e,null))},_.Fb=function(e){0>e&&rn(e,">= 0",wn,"getRowDefinition:idx"),e=Math.round(e);var t=this.rowDefs;if(t[e]===void 0){var n=new _s;n.wi(this),n.isRow=!0,n.index=e,t[e]=n,this.cb(zo,"rowdefs",this,null,n,null,e)}return t[e]},_.oA=function(e){if(0>e&&rn(e,">= 0",wn,"removeRowDefinition:idx"),this.rowCount!==0){e=Math.round(e);var t=this.rowDefs,n=t[e];if(n){t[e]=void 0;for(var i=t.length-1;0<=i&&t[i--]===void 0;)t.length--;this.cb(os,"rowdefs",this,n,null,e,null),this.v()}}};function by(e,t,n){var i=e.rowDefs;if(!(0>t)){if(i[t]=n instanceof _s?n:void 0,!n)for(t=i.length-1;0<=t&&i[t--]===void 0;)i.length--;e.v()}}_.Eb=function(e){0>e&&rn(e,">= 0",wn,"getColumnDefinition:idx"),e=Math.round(e);var t=this.colDefs;if(t[e]===void 0){var n=new _s;n.wi(this),n.isRow=!1,n.index=e,t[e]=n,this.cb(zo,"coldefs",this,null,n,null,e)}return t[e]},_.jA=function(e){if(0>e&&rn(e,">= 0",wn,"removeColumnDefinition:idx"),this.columnCount!==0){e=Math.round(e);var t=this.colDefs,n=t[e];if(n){t[e]=void 0;for(var i=t.length-1;0<=i&&t[i--]===void 0;)t.length--;this.cb(os,"coldefs",this,n,null,e,null),this.v()}}};function xy(e,t,n){var i=e.colDefs;if(!(0>t)){if(i[t]=n instanceof _s?n:void 0,!n)for(t=i.length-1;0<=t&&i[t--]===void 0;)i.length--;e.v()}}_.Gy=function(e){var t=null;return e.isRow?t=this.Fb(e.index):e.isRow||(t=this.Eb(e.index)),t&&_0(t,e),this},_.Hy=function(e,t){return(e=this.Fb(e))&&_0(e,new _s(t)),this},_.By=function(e,t){return(e=this.Eb(e))&&_0(e,new _s(t)),this},_.nz=function(e){if(0>e||this.type!==wn.Table||this.rowCount===0)return-1;for(var t=0,n=this.rowDefs,i=n.length,r=this.topIndex;r<i;r++){var o=n[r];if(o!==void 0&&(t+=o.total,e<t))break}return r},_.fz=function(e){if(0>e||this.type!==wn.Table||this.columnCount===0)return-1;for(var t=0,n=this.colDefs,i=n.length,r=this.leftIndex;r<i;r++){var o=n[r];if(o!==void 0&&(t+=o.total,e<t))break}return r},_.Fz=function(e,t){if(t===void 0&&(t=new ce(NaN,NaN)),this.type!==wn.Graduated)return t.h(NaN,NaN),t;e=Math.min(Math.max(e,this.graduatedMin),this.graduatedMax);var n=this.Pb();return n.geometry.Pu((e-this.graduatedMin)/this.graduatedRange,t),n.transform.Ga(t)},_.Gz=function(e){if(this.type!==wn.Graduated)return NaN;var t=this.Pb();return t.transform.Cd(e),t.geometry.xx(e)*this.graduatedRange+this.graduatedMin};function Sy(e){return e=e.allBindings,e!==null&&e._isFrozen}function Uu(e){var t=e.allBindings;if(t===null)e.data!==null&&ut("Template cannot have .data be non-null: "+e),e.allBindings=t=new Xt;else if(t._isFrozen)return;var n=new Xt;kg(e,!1),e.qm(e,function(f,p){p.th();var x=p.localBindings;if(x!==null)for(zd(p,!1),x=x.iterator;x.next();){var N=x.value;N.mode===$p&&zd(p,!0);var O=N.sourceName;O!==null&&(O==="/"&&kg(f,!0),O=P1(N,f,p),O!==null&&(n.add(O),O.srcBindings===null&&(O.srcBindings=new Xt),O.srcBindings.add(N))),t.add(N)}if(p instanceof wn&&p.type===wn.Table){if(0<p.rowCount){for(f=p.rowDefs,x=f.length,N=0;N<x;N++)if(O=f[N],O!==void 0&&O.be!==null)for(var F=O.be.iterator;F.next();){var K=F.value;K.xd=O,K.to=2,K.wl=O.index,t.add(K)}}if(0<p.columnCount){for(p=p.colDefs,f=p.length,x=0;x<f;x++)if(N=p[x],N!==void 0&&N.be!==null)for(O=N.be.iterator;O.next();)F=O.value,F.xd=N,F.to=1,F.wl=N.index,t.add(F)}}});for(var i=n.iterator;i.next();){var r=i.value;if(r.srcBindings!==null){zd(r,!0);for(var o=r.srcBindings.iterator;o.next();){var s=o.value;r.localBindings===null&&(r.localBindings=new Xt),r.localBindings.add(s)}}r.srcBindings=null}for(i=t.iterator;i.next();)if(r=i.value,o=r.xd,o!==null){r.xd=null;var l=r.targetProperty,u=l.indexOf(".");0<u&&o instanceof wn&&(s=l.substring(0,u),l=l.substr(u+1),u=o.fb(s),u!==null?(o=u,r.targetProperty=l):Si('Warning: unable to find GraphObject named "'+s+'" for Binding: '+r.toString())),o instanceof _s?(s=It(o.panel),r.Ai=s===void 0?-1:s,o.panel.bindingId=r.Ai):o instanceof nt?(s=It(o),r.Ai=s===void 0?-1:s,o.bindingId=r.Ai):ut("Unknown type of binding target: "+o)}t.freeze(),e instanceof Ei&&e.Zc()&&e.Va()}_.Uy=function(e){e===void 0&&(e=!1);var t=this.copy();return Ob(t,function(n){n instanceof wn&&(n.allBindings=null,n.ub=null);var i=n.localBindings;i!==null&&(n.localBindings=null,i.each(function(r){n.bind(r.copy())})),i=n.animationTriggers,i!==null&&(n.animationTriggers=null,i.each(function(r){n.Jv(r.value.copy())}))}),e&&Uu(t),t},_.La=function(e){var t=this.allBindings;if(t!==null)for(e===void 0&&(e=""),t=t.iterator;t.next();){var n=t.value,i=n.sourceProperty;if((e===""||i===""||i===e)&&(i=n.targetProperty,n.converter!==null||i!=="")){i=this.data;var r=n.sourceName;if(r!==null){if(r==="")i=this;else if(r==="/")i=this;else if(r===".")i=this;else if(r==="..")i=this;else if(i=this.fb(r),i===null)continue}else if(n.isToModel)if(i=this.diagram,i!==null)i=i.model.modelData;else continue;var o=this,s=n.Ai;if(s!==-1){if(o=this.ks(s),o===null)continue}else n.xd!==null&&(o=n.xd);if(r==="/"?i=o.part:r==="."?i=o:r===".."&&(i=o.panel),r=n.to,r!==0){if(!(o instanceof wn))continue;r===1?o=o.Eb(n.wl):r===2&&(o=o.Fb(n.wl))}o!==void 0&&n.Mv(o,i)}}},_.sx=function(e){return e==null||this.ge===null?null:this.ge.I(e)};function Lb(e,t){e=e.O.s;for(var n=e.length,i=t.length,r=0,o=null;r<n&&(o=e[r],!(o instanceof wn&&o.data!==null));)r++,o=e[r];if(n-r!==i)return!0;if(o===null)return 0<i;for(var s=0;r<n&&s<i;){if(o=e[r],!(o instanceof wn)||o.data!==t[s])return!0;r++,s++}return!1}function xp(e){if(e.type===wn.Spot||e.type===wn.Auto)return Math.min(e.O.length,1);if(e.type===wn.Link){e=e.O;for(var t=e.length,n=0;n<t;n++){var i=e.M(n);if(!(i instanceof nr&&i.isPanelMain))break}return n}return e.type===wn.Table&&0<e.O.length&&(e=e.O.M(0),e.isPanelMain&&e instanceof wn&&yh(e))?1:0}_.mv=function(){for(var e=xp(this);this.O.length>e;)this.pc(this.O.length-1,!1);Ey(this,this.itemArray)};function Ey(e,t){var n=xp(e);if(t===null||t.length===0)for(;e.O.length>n;)e.pc(e.O.length-1,!1);else if(e.O.length<=n){n=t.length;for(var i=0;i<n;i++)F0(e,t[i],i,!0)}else{i=n;for(var r=0;r<t.length;r++,i++){var o=t[r],s=i<e.O.length?e.O.M(i):null;if(s instanceof wn){if(s.data!==o){var l=Mg(e,s.data),u=Mg(e,o),f=u!==l;f||(l=Og(e,l),f=Og(e,u)!==l),f?(e.pc(i,!1),F0(e,o,r,!1)):s.data=o}}else F0(e,o,r,!1)}for(;i<e.O.length;)e.pc(i,!1);e.$g=null,Ig(e,n,0),vu(e)||e.v(),e.graduatedIntervals=null,e.If()||B0(e,e,!1),t=e.part,t!==null&&(t.Rh=null,t.ag=NaN,e.Te&&t instanceof Vn&&(t.Te=!0),t.Te&&t instanceof Vn&&(t.wc=null))}}function F0(e,t,n,i){if(!(t==null||0>n)){var r=Mg(e,t);if(r=Og(e,r),r!==null){if(Uu(r),r=r.copy(),r.l&16777216){var o=e.ih();o!==null&&kg(o,!0)}typeof t=="object"&&(e.ge===null&&(e.ge=new ii),e.ge.add(t,r)),o=n+xp(e),e.Gb(o,r),i&&(r.ub=t,Ig(e,o,n),r.ub=null),r.data=t}}}function Ig(e,t,n){for(e=e.O;t<e.length;){var i=e.M(t);if(i instanceof wn){var r=t,o=n;i.type===wn.TableRow?i.row=r:i.type===wn.TableColumn&&(i.column=r),i.itemIndex=o}t++,n++}}function Mg(e,t){if(t===null)return"";if(e=e.itemCategoryProperty,typeof e=="function")e=e(t);else if(typeof e=="string"&&typeof t=="object"){if(e==="")return"";e=Ns(t,e)}else return"";if(e===void 0)return"";if(typeof e=="string")return e;ut("Panel.getCategoryForItemData found a non-string category for "+t+": "+e)}function Og(e,t){var n=e.itemTemplateMap,i=null;return n!==null&&(i=n.I(t)),i===null&&(n!==null&&(i=n.I("")),i===null&&(wy||(wy=!0,Si('No item template Panel found for category "'+t+'" on '+e),Si(" Using default item template."),e=new wn,t=new vo,t.bind(new Is("text","",En)),e.add(t),Cy=e),i=Cy)),i}function B0(e,t,n){var i=t.enabledChanged;if(i!==null&&i(t,n),t instanceof wn){t=t.O.s,i=t.length;for(var r=0;r<i;r++){var o=t[r];n&&o instanceof wn&&!o.isEnabled||B0(e,o,n)}}}function kc(e,t){t.name=e,qu.add(e,t)}at.Object.defineProperties(wn.prototype,{type:{get:function(){return this.na},set:function(e){var t=this.na;t!==e&&(this.na=e,this.isAtomic=this.na===wn.Grid,this.v(),this.g("type",t,e))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(e){typeof e=="number"?(0>e&&rn(e,">= 0",wn,"padding"),e=new vi(e)):(0>e.left&&rn(e.left,">= 0",wn,"padding:value.left"),0>e.right&&rn(e.right,">= 0",wn,"padding:value.right"),0>e.top&&rn(e.top,">= 0",wn,"padding:value.top"),0>e.bottom&&rn(e.bottom,">= 0",wn,"padding:value.bottom"));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.v(),this.g("padding",t,e))}},defaultAlignment:{get:function(){return this.Tm},set:function(e){var t=this.Tm;t.D(e)||(this.Tm=e=e.J(),this.v(),this.g("defaultAlignment",t,e))}},defaultStretch:{get:function(){return this.Uf},set:function(e){var t=this.Uf;t!==e&&(this.Uf=e,this.v(),this.g("defaultStretch",t,e))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:oa},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.defaultSeparatorPadding;t.D(e)||(e=e.J(),this.T===null&&(this.T=new Lu),this.T.Qp=e,this.v(),this.g("defaultSeparatorPadding",t,e))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(e){var t=this.defaultRowSeparatorStroke;t!==e&&(e===null||typeof e=="string"||e instanceof Wr)&&(e instanceof Wr&&e.freeze(),this.T===null&&(this.T=new Lu),this.T.ia=e,this.N(),this.g("defaultRowSeparatorStroke",t,e))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(e){var t=this.defaultRowSeparatorStrokeWidth;t!==e&&isFinite(e)&&0<=e&&(this.T===null&&(this.T=new Lu),this.T.Ha=e,this.v(),this.g("defaultRowSeparatorStrokeWidth",t,e))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(e){var t=this.defaultRowSeparatorDashArray;if(t!==e){if(e!==null){for(var n=e.length,i=0,r=0;r<n;r++){var o=e[r];typeof o=="number"&&0<=o&&isFinite(o)||ut("defaultRowSeparatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(t===null)return;e=null}}this.T===null&&(this.T=new Lu),this.T.V=e,this.N(),this.g("defaultRowSeparatorDashArray",t,e)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(e){var t=this.defaultColumnSeparatorStroke;t!==e&&(e===null||typeof e=="string"||e instanceof Wr)&&(e instanceof Wr&&e.freeze(),this.T===null&&(this.T=new Lu),this.T.u=e,this.N(),this.g("defaultColumnSeparatorStroke",t,e))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(e){var t=this.defaultColumnSeparatorStrokeWidth;t!==e&&isFinite(e)&&0<=e&&(this.T===null&&(this.T=new Lu),this.T.F=e,this.v(),this.g("defaultColumnSeparatorStrokeWidth",t,e))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(e){var t=this.defaultColumnSeparatorDashArray;if(t!==e){if(e!==null){for(var n=e.length,i=0,r=0;r<n;r++){var o=e[r];typeof o=="number"&&0<=o&&isFinite(o)||ut("defaultColumnSeparatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(t===null)return;e=null}}this.T===null&&(this.T=new Lu),this.T.o=e,this.N(),this.g("defaultColumnSeparatorDashArray",t,e)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(e){this.T===null&&(this.T=new Lu),this.T.nb=e}},viewboxStretch:{get:function(){return this.xo},set:function(e){var t=this.xo;t!==e&&(this.xo=e,this.v(),this.g("viewboxStretch",t,e))}},gridCellSize:{get:function(){return this.jn},set:function(e){var t=this.jn;if(!t.D(e)){e.w()&&e.width!==0&&e.height!==0||ut("Invalid Panel.gridCellSize: "+e),this.jn=e.J();var n=this.diagram;n!==null&&this===n.grid&&Tc(n),this.N(),this.g("gridCellSize",t,e)}}},gridOrigin:{get:function(){return this.kn},set:function(e){var t=this.kn;if(!t.D(e)){e.w()||ut("Invalid Panel.gridOrigin: "+e),this.kn=e.J();var n=this.diagram;n!==null&&this===n.grid&&Tc(n),this.N(),this.g("gridOrigin",t,e)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(e){var t=this.graduatedMin;t!==e&&(this.ra===null&&(this.ra=new nh),this.ra.lq=e,this.v(),this.g("graduatedMin",t,e),ka(this)&&(e=this.part,e!==null&&To(this,e,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(e){var t=this.graduatedMax;t!==e&&(this.ra===null&&(this.ra=new nh),this.ra.F=e,this.v(),this.g("graduatedMax",t,e),ka(this)&&(e=this.part,e!==null&&To(this,e,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(e){var t=this.graduatedTickUnit;t!==e&&0<e&&(this.ra===null&&(this.ra=new nh),this.ra.ia=e,this.v(),this.g("graduatedTickUnit",t,e))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(e){var t=this.graduatedTickBase;t!==e&&(this.ra===null&&(this.ra=new nh),this.ra.V=e,this.v(),this.g("graduatedTickBase",t,e))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(e){this.ra!==null?this.ra.u=e:e!==null&&(this.ra=new nh,this.ra.u=e)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(e){this.ra!==null?this.ra.j=e:e!==null&&(this.ra=new nh,this.ra.j=e)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(e){this.ra!==null?this.ra.o=e:e!==null&&(this.ra=new nh,this.ra.o=e)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(e){this.ra!==null?this.ra.Zh=e:e!==null&&(this.ra=new nh,this.ra.Zh=e)}},panelLayoutState:{get:function(){return this.F},set:function(e){this.F=e}},Te:{get:function(){return(this.l&8388608)!==0},set:function(e){(this.l&8388608)!==0!==e&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Lu),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Lu),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:U0},set:function(e){var t=this.rowSizing;t!==e&&(this.T===null&&(this.T=new Lu),this.T.ob=e,this.v(),this.g("rowSizing",t,e))}},columnSizing:{get:function(){return this.T!==null?this.T.j:U0},set:function(e){var t=this.columnSizing;t!==e&&(this.T===null&&(this.T=new Lu),this.T.j=e,this.v(),this.g("columnSizing",t,e))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(e){var t=this.topIndex;t!==e&&((!isFinite(e)||0>e)&&ut("Panel.topIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new Lu),this.T.Hb=e,this.v(),this.g("topIndex",t,e))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(e){var t=this.leftIndex;t!==e&&((!isFinite(e)||0>e)&&ut("Panel.leftIndex must be greater than zero and a real number, not: "+e),this.T===null&&(this.T=new Lu),this.T.hb=e,this.v(),this.g("leftIndex",t,e))}},data:{get:function(){return this.ub},set:function(e){var t=this.ub;if(t!==e){var n=this instanceof Ei&&!(this instanceof Fr);Uu(this),this.ub=e;var i=this.diagram;i!==null&&(n?(n=i.partManager,this instanceof kn?(t!==null&&n.bf.remove(t),e!==null&&n.bf.add(e,this)):this instanceof Ei&&(t!==null&&n.cf.remove(t),e!==null&&n.cf.add(e,this))):(n=this.panel,n!==null&&n.ge!==null&&(t!==null&&n.ge.remove(t),e!==null&&n.ge.add(e,this)))),this.g("data",t,e),i!==null&&i.undoManager.isUndoingRedoing||e!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(e){var t=this.zn;t!==e&&(this.zn=e,this.g("itemIndex",t,e))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(e){this.localBindings!==e&&(this.A===null&&(this.A=new Ud),this.A.nb=e)}},itemArray:{get:function(){return this.Hh},set:function(e){var t=this.Hh;if(t!==e||e!==null&&Lb(this,e)){var n=this.diagram;t!==e&&(n!==null&&t!==null&&vv(n.partManager,this,n),this.Hh=e,n!==null&&e!==null&&gv(n.partManager,this)),this.g("itemArray",t,e),n!==null&&n.undoManager.isUndoingRedoing||Ey(this,e)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(e){if(this.itemTemplateMap===null){if(e===null)return;this.itemTemplateMap=new ii}var t=this.itemTemplateMap.I("");t!==e&&((e instanceof Ei||e.isPanelMain)&&ut("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+e),this.itemTemplateMap.add("",e),this.g("itemTemplate",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(e){var t=this.itemTemplateMap;if(t!==e){for(var n=e.iterator;n.next(););sr(this),this.A.Pc=e,this.g("itemTemplateMap",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(e){var t=this.itemCategoryProperty;t!==e&&(sr(this),this.A.Oc=e,this.g("itemCategoryProperty",t,e))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.g("isAtomic",t,e))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(e){var t=(this.l&2097152)!==0;t!==e&&(this.l^=2097152,this instanceof Xi&&(this.tb=null),this.v(),this.g("isClipping",t,e))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(e){var t=(this.l&33554432)!==0;t!==e&&(this.l^=33554432,this.v(),this.g("isOpposite",t,e))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(e){var t=(this.l&4194304)!==0;if(t!==e){var n=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",t,e),t=this.diagram,t!==null&&t.undoManager.isUndoingRedoing||n&&B0(this,this,e)}}},alignmentFocusName:{get:function(){return this.$e},set:function(e){var t=this.$e;t!==e&&(this.$e=e,this.v(),this.g("alignmentFocusName",t,e))}}}),at.Object.defineProperties(wn,{Position:{get:function(){return qu.I("Position")}},Horizontal:{get:function(){return qu.I("Horizontal")}},Vertical:{get:function(){return qu.I("Vertical")}},Spot:{get:function(){return qu.I("Spot")}},Auto:{get:function(){return qu.I("Auto")}},Table:{get:function(){return qu.I("Table")}},Viewbox:{get:function(){return qu.I("Viewbox")}},TableRow:{get:function(){return qu.I("TableRow")}},TableColumn:{get:function(){return qu.I("TableColumn")}},Link:{get:function(){return qu.I("Link")}},Grid:{get:function(){return qu.I("Grid")}},Graduated:{get:function(){return qu.I("Graduated")}}}),wn.prototype.rebuildItemElements=wn.prototype.mv,wn.prototype.findItemPanelForData=wn.prototype.sx,wn.prototype.updateTargetBindings=wn.prototype.La,wn.prototype.copyTemplate=wn.prototype.Uy,wn.prototype.graduatedValueForPoint=wn.prototype.Gz,wn.prototype.graduatedPointForValue=wn.prototype.Fz,wn.prototype.findColumnForLocalX=wn.prototype.fz,wn.prototype.findRowForLocalY=wn.prototype.nz,wn.prototype.addColumnDefinition=wn.prototype.By,wn.prototype.addRowDefinition=wn.prototype.Hy,wn.prototype.addRowColumnDefinition=wn.prototype.Gy,wn.prototype.removeColumnDefinition=wn.prototype.jA,wn.prototype.getColumnDefinition=wn.prototype.Eb,wn.prototype.removeRowDefinition=wn.prototype.oA,wn.prototype.getRowDefinition=wn.prototype.Fb,wn.prototype.removeAt=wn.prototype.mb,wn.prototype.remove=wn.prototype.remove,wn.prototype.insertAt=wn.prototype.Gb,wn.prototype.elt=wn.prototype.M,wn.prototype.add=wn.prototype.add,wn.prototype.findObject=wn.prototype.fb,wn.prototype.findInVisualTree=wn.prototype.Nl,wn.prototype.walkVisualTreeFrom=wn.prototype.qm,wn.prototype.findMainElement=wn.prototype.Pb;var wy=!1,Cy=null,qu=new ii;wn.className="Panel",wn.definePanelLayout=kc,kc("Position",new C0),kc("Vertical",new N0),kc("Auto",new k0),kc("Link",new D0);function nh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}nh.prototype.copy=function(){var e=new nh;return e.lq=this.lq,e.F=this.F,e.ia=this.ia,e.V=this.V,e.u=this.u,e.j=this.j,e.o=this.o,e.Zh=this.Zh,e},nh.className="GradPanelSettings";function Lu(){this.Pc=[],this.Oc=[],this.j=this.ob=U0,this.hb=this.Hb=0,this.Qp=oa,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Lu.prototype.copy=function(e){for(var t=new Lu,n=this.Pc,i=n.length,r=t.Pc,o=0;o<i;o++)if(n[o]!==void 0){var s=n[o].copy();s.wi(e),r[o]=s}for(n=this.Oc,i=n.length,r=t.Oc,o=0;o<i;o++)n[o]!==void 0&&(s=n[o].copy(),s.wi(e),r[o]=s);return t.ob=this.ob,t.j=this.j,t.Hb=this.Hb,t.hb=this.hb,t.Qp=this.Qp.J(),t.Ha=this.Ha,t.ia=this.ia,t.V=this.V,t.F=this.F,t.u=this.u,t.o=this.o,t.nb=this.nb,t},Lu.className="TablePanelSettings";function _s(e){Wi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Lr,this.pa=this.oc=this.oa=0,this.be=null,this.oo=Lg,this.hg=Ji,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,e&&(Object.assign(this,e),e.column!==void 0?(this.isRow=!1,this.index=e.column):e.row!==void 0&&(this.isRow=!0,this.index=e.row))}_s.prototype.copy=function(){var e=new _s;return e.uq=this.uq,e.Za=this.Za,e.Hc=this.Hc,e.jj=this.jj,e.hj=this.hj,e.Jb=this.Jb,e.oa=this.oa,e.oc=this.oc,e.pa=this.pa,e.hg=this.hg,e.oo=this.oo,this.dg===null?e.dg=null:e.dg=this.dg.J(),e.lo=this.lo,e.mo=this.mo,e.tj=null,this.tj!==null&&(e.separatorDashArray=Mt(this.separatorDashArray)),e.Ma=this.Ma,e.Pm=this.Pm,e.be=this.be,e};function _0(e,t){t.isRow?e.height=t.height:e.width=t.width,e.minimum=t.minimum,e.maximum=t.maximum,e.alignment=t.alignment,e.stretch=t.stretch,e.sizing=t.sizing,e.dg=t.separatorPadding===null?null:t.separatorPadding.J(),e.separatorStroke=t.separatorStroke,e.separatorStrokeWidth=t.separatorStrokeWidth,e.tj=null,t.separatorDashArray&&(e.tj=Mt(t.separatorDashArray)),e.background=t.background,e.coversSeparators=t.coversSeparators,e.be=t.be}_=_s.prototype,_.qb=function(e){e.classType===_s&&(this.sizing=e)},_.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+It(this)},_.wi=function(e){this.Me=e},_.Io=function(e){var t=0,n=this.Me;if(this.index!==e&&(e=this.separatorStroke,e===null&&n!==null&&(e=this.isRow?n.defaultRowSeparatorStroke:n.defaultColumnSeparatorStroke),e!==null&&(t=this.separatorStrokeWidth,isNaN(t)&&(n!==null?t=this.isRow?n.defaultRowSeparatorStrokeWidth:n.defaultColumnSeparatorStrokeWidth:t=0))),e=this.dg,e===null)if(n!==null)e=n.defaultSeparatorPadding;else return t;return t+(this.isRow?e.top:e.left)},_.Wc=function(){var e=0,t=this.Me,n=0,i=this.isRow;if(t!==null&&t.type===wn.Table)for(var r=i?t.rowDefs.length:t.colDefs.length,o=0;o<r;o++){var s=i?t.rowDefs[o]:t.colDefs[o];if(s!==void 0&&s.oa!==0){n=s.index;break}}if(this.index!==n&&(n=this.separatorStroke,n===null&&t!==null&&(n=i?t.defaultRowSeparatorStroke:t.defaultColumnSeparatorStroke),n!==null&&(e=this.separatorStrokeWidth,isNaN(e)&&(t!==null?e=i?t.defaultRowSeparatorStrokeWidth:t.defaultColumnSeparatorStrokeWidth:e=0))),i=this.dg,i===null)if(t!==null)i=t.defaultSeparatorPadding;else return e;return e+(this.isRow?i.top+i.bottom:i.left+i.right)},_.Ob=function(e,t,n){var i=this.Me;if(i!==null&&(i.cb(io,e,this,t,n,void 0,void 0),this.be!==null&&(t=i.diagram,t!==null&&!t.skipsModelSourceBindings&&(i=i.ih(),i!==null&&(t=i.data,t!==null)))))for(n=this.be.iterator;n.next();)n.value.sp(this,t,e,i)};function z0(e){if(e.sizing===Lg){var t=e.Me;return e.isRow?t.rowSizing:t.columnSizing}return e.sizing}_.bind=function(e,t,n,i){var r=null;return typeof e=="string"?r=new Is(e,t,n,i):r=e,r.xd=this,e=this.panel,e!==null&&(t=e.ih(),t!==null&&Sy(t)&&ut("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+r+" on "+e)),this.be===null&&(this.be=new Xt),this.be.add(r),this},at.Object.defineProperties(_s.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(e){this.uq=e}},index:{get:function(){return this.Za},set:function(e){this.Za=e}},height:{get:function(){return this.Hc},set:function(e){var t=this.Hc;t!==e&&(0>e&&rn(e,">= 0",_s,"height"),this.Hc=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",t,e))}},width:{get:function(){return this.Hc},set:function(e){var t=this.Hc;t!==e&&(0>e&&rn(e,">= 0",_s,"width"),this.Hc=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",t,e))}},minimum:{get:function(){return this.jj},set:function(e){var t=this.jj;t!==e&&((0>e||!isFinite(e))&&rn(e,">= 0",_s,"minimum"),this.jj=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",t,e))}},maximum:{get:function(){return this.hj},set:function(e){var t=this.hj;t!==e&&(0>e&&rn(e,">= 0",_s,"maximum"),this.hj=e,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",t,e))}},alignment:{get:function(){return this.Jb},set:function(e){var t=this.Jb;t.D(e)||(this.Jb=e.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",t,e))}},stretch:{get:function(){return this.hg},set:function(e){var t=this.hg;t!==e&&(this.hg=e,this.panel!==null&&this.panel.v(),this.Ob("stretch",t,e))}},separatorPadding:{get:function(){return this.dg},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.dg;e!==null&&t!==null&&t.D(e)||(e!==null&&(e=e.J()),this.dg=e,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",t,e))}},separatorStroke:{get:function(){return this.lo},set:function(e){var t=this.lo;t!==e&&(e!==null&&$d(e,"RowColumnDefinition.separatorStroke"),e instanceof Wr&&e.freeze(),this.lo=e,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",t,e))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(e){var t=this.mo;t!==e&&(this.mo=e,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",t,e))}},separatorDashArray:{get:function(){return this.tj},set:function(e){var t=this.tj;if(t!==e){if(e!==null){for(var n=e.length,i=0,r=0;r<n;r++){var o=e[r];typeof o=="number"&&0<=o&&isFinite(o)||ut("separatorDashArray value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(t===null)return;e=null}}this.tj=e,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",t,e)}}},background:{get:function(){return this.Ma},set:function(e){var t=this.Ma;t!==e&&(e!==null&&$d(e,"RowColumnDefinition.background"),e instanceof Wr&&e.freeze(),this.Ma=e,this.panel!==null&&this.panel.N(),this.Ob("background",t,e))}},coversSeparators:{get:function(){return this.Pm},set:function(e){var t=this.Pm;t!==e&&(this.Pm=e,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",t,e))}},sizing:{get:function(){return this.oo},set:function(e){var t=this.oo;t!==e&&(this.oo=e,this.panel!==null&&this.panel.v(),this.Ob("sizing",t,e))}},actual:{get:function(){return this.oa},set:function(e){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,e),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(e){this.oc=e}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(e){this.pa=e}}}),_s.prototype.computeEffectiveSpacing=_s.prototype.Wc,_s.prototype.computeEffectiveSpacingTop=_s.prototype.Io;var Lg=new qt(_s,"Default",0),Sp=new qt(_s,"None",1),U0=new qt(_s,"ProportionalExtra",2);_s.className="RowColumnDefinition",_s.Default=Lg,_s.None=Sp,_s.ProportionalExtra=U0;function nr(e,t){nt.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 e=="string"?this.figure=e:e&&Object.assign(this,e),t&&Object.assign(this,t)}fi(nr,nt),nr.prototype.cloneProtected=function(e){nt.prototype.cloneProtected.call(this,e),e.ua=this.ua,e.Rd=this.Rd,e.an=this.an,e.Ui=this.Ui,e.xc=this.xc,e.ig=this.ig,this.Yg!==null&&(e.Yg=Mt(this.Yg)),this.Na!==null&&(e.Na=this.Na.nc?this.Na:this.Na.copy()),e.Un=this.Un,e.Vn=this.Vn,this.fa!==null&&(e.fa=this.fa.copy())};function xd(e){e.Na===null?e.Na=new Pg:e.Na.nc&&(e.Na=e.Na.copy())}_=nr.prototype,_.th=function(){nt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},_.qb=function(e){e===mn||e===di||e===Sr||e===Ji?this.geometryStretch=e:nt.prototype.qb.call(this,e)},_.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+It(this)};function Cf(e,t,n,i){var r=n.length;if(!(4>r)){var o=i.measuredBounds,s=Math.max(1,o.width);o=o.height;for(var l=n[0],u=n[1],f,p,x,N,O,F,K=0,ye=jt(),ae=2;ae<r;ae+=2)f=n[ae],p=n[ae+1],x=f-l,l=p-u,x===0&&(x=.001),N=l/x,O=Math.atan2(l,x),F=Math.sqrt(x*x+l*l),ye.push([x,O,N,F]),K+=F,l=f,u=p;l=n[0],u=n[1],x=i.measuredBounds.width,i instanceof nr&&(x-=i.strokeWidth),1>x&&(x=1),r=n=x,f=s/2,p=f!==0,ae=0,F=ye[ae],x=F[0],O=F[1],N=F[2],F=F[3];for(var Oe=0;.1<=K;){if(Oe===0&&(p?(r=n,r-=f,K-=f,p=!1):r=n,r===0&&(r=1)),r>K){gn(ye);return}r>F?(Oe=r-F,r=F):Oe=0;var Fe=Math.sqrt(r*r/(1+N*N));if(0>x&&(Fe=-Fe),l+=Fe,u+=N*Fe,e.translate(l,u),e.rotate(O),e.translate(-(s/2),-(o/2)),Oe===0&&i.hh(e,t),e.translate(s/2,o/2),e.rotate(-O),e.translate(-l,-u),K-=r,F-=r,Oe!==0){if(ae++,ae===ye.length){gn(ye);return}F=ye[ae],x=F[0],O=F[1],N=F[2],F=F[3],r=Oe}}gn(ye)}}_.hh=function(e,t){var n=this.xc,i=this.Ui;if(n!==null||i!==null){var r=this.ua;if(r!==null){e.yc();var o=this.actualBounds,s=this.naturalBounds;i!==null&&gs(this,e,i,!0,!1,s,o);var l=this.part,u=this.ig;if(n===null||u!==0||l===null||!this.isPanelMain&&l.Pb()!==this||(u=l.type===wn.Link&&l instanceof Fr&&l.category==="Selection"&&l.adornedObject instanceof nr&&l.adornedPart.Pb()===l.adornedObject?l.adornedObject.strokeWidth:0),u===0&&(n=null),n!==null&&u!==0&&(gs(this,e,n,!1,!1,s,o),e.lineWidth=u,e.lineJoin=this.strokeJoin,e.lineCap=this.strokeCap,e.miterLimit=this.strokeMiterLimit),o=!1,l&&t.Gf("drawShadows")&&(o=l.isShadowed),e.Il===!1&&(o=!1),l=!0,n===null||i!==null&&i!=="transparent"||(l=!1),s=!1,u=this.strokeDashArray,u!==null&&(s=!0,e.js(u,this.strokeDashOffset)),r.type===An.j)e.beginPath(),e.moveTo(r.startX,r.startY),e.lineTo(r.endX,r.endY),n!==null&&e.jk(),e.Se();else if(r.type===An.u){var f=r.startX;u=r.startY;var p=r.endX,x=r.endY;r=Math.min(f,p);var N=Math.min(u,x);f=Math.abs(p-f),u=Math.abs(x-u),e.beginPath(),e.rect(r,N,f,u),i!==null&&e.ng(i),n!==null&&(l&&o&&Bc(e),e.jk(),l&&o&&Jc(e)),e.Se()}else if(r.type===An.F)f=r.startX,u=r.startY,p=r.endX,x=r.endY,r=Math.abs(p-f)/2,N=Math.abs(x-u)/2,f=Math.min(f,p)+r,u=Math.min(u,x)+N,e.beginPath(),e.moveTo(f,u-N),e.bezierCurveTo(f+Ke.wg*r,u-N,f+r,u-Ke.wg*N,f+r,u),e.bezierCurveTo(f+r,u+Ke.wg*N,f+Ke.wg*r,u+N,f,u+N),e.bezierCurveTo(f-Ke.wg*r,u+N,f-r,u+Ke.wg*N,f-r,u),e.bezierCurveTo(f-r,u-Ke.wg*N,f-Ke.wg*r,u-N,f,u-N),e.closePath(),i!==null&&e.ng(i),n!==null&&(l&&o&&Bc(e),e.jk(),l&&o&&Jc(e)),e.Se();else if(r.type===An.o)for(r=r.figures,u=r.length,N=0;N<u;N++){f=r.s[N],e.beginPath(),e.moveTo(f.startX,f.startY),p=f.segments.s,x=p.length;for(var O=null,F=0;F<x;F++){var K=p[F];switch(K.type){case Wo:e.moveTo(K.endX,K.endY);break;case Gr:e.lineTo(K.endX,K.endY);break;case Ts:e.bezierCurveTo(K.point1X,K.point1Y,K.point2X,K.point2Y,K.endX,K.endY);break;case Na:e.quadraticCurveTo(K.point1X,K.point1Y,K.endX,K.endY);break;case _o:if(K.radiusX===K.radiusY){var ye=Math.PI/180;e.arc(K.point1X,K.point1Y,K.radiusX,K.startAngle*ye,(K.startAngle+K.sweepAngle)*ye,0>K.sweepAngle,O!==null?O.endX:f.startX,O!==null?O.endY:f.startY)}else if(O=Ta(K,f),ye=O.length,ye===0)e.lineTo(K.centerX,K.centerY);else for(var ae=0;ae<ye;ae++){var Oe=O[ae];ae===0&&e.lineTo(Oe[0],Oe[1]),e.bezierCurveTo(Oe[2],Oe[3],Oe[4],Oe[5],Oe[6],Oe[7])}break;case Ma:if(ae=ye=0,O!==null&&O.type===_o){if(O=Ta(O,f),Oe=O.length,Oe===0){e.lineTo(K.endX,K.endY);break}O=O[Oe-1]||null,O!==null&&(ye=O[6],ae=O[7])}else ye=O!==null?O.endX:f.startX,ae=O!==null?O.endY:f.startY;if(O=Qs(K,f,ye,ae),ye=O.length,ye===0){e.lineTo(K.endX,K.endY);break}for(ae=0;ae<ye;ae++)Oe=O[ae],e.bezierCurveTo(Oe[2],Oe[3],Oe[4],Oe[5],Oe[6],Oe[7]);break;default:ut("Segment not of valid type: "+K.type)}K.isClosed&&e.closePath(),O=K}p=f.isFilled,o?f.isShadowed?(p===!0&&i!=="transparent"&&i!==null&&e.ng(i,f.isEvenOdd),n!==null&&(p&&l&&Bc(e),e.jk(),p&&l&&Jc(e))):(Bc(e),p&&i!=="transparent"&&i!==null&&e.ng(i,f.isEvenOdd),n!==null&&e.jk(),Jc(e)):(p&&i!==null&&e.ng(i,f.isEvenOdd),n!==null&&e.jk()),e.Se(N)}if(s&&e.fs(),this.pathPattern!==null){if(n=this.pathPattern,n.measure(1/0,1/0),i=n.measuredBounds,n.arrange(0,0,i.width,i.height),o=this.geometry,e.save(),e.beginPath(),i=jt(),o.type===An.j)i.push(o.startX),i.push(o.startY),i.push(o.endX),i.push(o.endY),Cf(e,t,i,n);else if(o.type===An.o)for(o=o.figures.iterator;o.next();){for(l=o.value,i.length=0,i.push(l.startX),i.push(l.startY),s=l.startX,r=l.startY,u=s,N=r,f=l.segments.s,p=f.length,x=0;x<p;x++){switch(F=f[x],F.type){case Wo:Cf(e,t,i,n),i.length=0,i.push(F.endX),i.push(F.endY),s=F.endX,r=F.endY,u=s,N=r;break;case Gr:i.push(F.endX),i.push(F.endY),s=F.endX,r=F.endY;break;case Ts:Ke.Qe(s,r,F.point1X,F.point1Y,F.point2X,F.point2Y,F.endX,F.endY,.5,i),s=F.endX,r=F.endY;break;case Na:Ke.ep(s,r,F.point1X,F.point1Y,F.endX,F.endY,.5,i),s=F.endX,r=F.endY;break;case _o:if(K=Ta(F,l),O=K.length,O===0){i.push(F.centerX),i.push(F.centerY),s=F.centerX,r=F.centerY;break}for(ye=0;ye<O;ye++)ae=K[ye],Ke.Qe(s,r,ae[2],ae[3],ae[4],ae[5],ae[6],ae[7],.5,i),s=ae[6],r=ae[7];break;case Ma:if(K=Qs(F,l,s,r),O=K.length,O===0){i.push(F.endX),i.push(F.endY),s=F.endX,r=F.endY;break}for(ye=0;ye<O;ye++)ae=K[ye],Ke.Qe(s,r,ae[2],ae[3],ae[4],ae[5],ae[6],ae[7],.5,i),s=ae[6],r=ae[7];break;default:ut("Segment not of valid type: "+F.type)}F.isClosed&&(i.push(u),i.push(N),Cf(e,t,i,n))}Cf(e,t,i,n)}else if(o.type===An.u)i.push(o.startX),i.push(o.startY),i.push(o.endX),i.push(o.startY),i.push(o.endX),i.push(o.endY),i.push(o.startX),i.push(o.endY),i.push(o.startX),i.push(o.startY),Cf(e,t,i,n);else if(o.type===An.F){if(r=new us,r.startX=o.endX,r.startY=(o.startY+o.endY)/2,s=new xr(_o),s.startAngle=0,s.sweepAngle=360,s.centerX=(o.startX+o.endX)/2,s.centerY=(o.startY+o.endY)/2,s.radiusX=Math.abs(o.startX-o.endX)/2,s.radiusY=Math.abs(o.startY-o.endY)/2,r.add(s),o=Ta(s,r),l=o.length,l===0)i.push(s.centerX),i.push(s.centerY);else for(s=r.startX,r=r.startY,u=0;u<l;u++)N=o[u],Ke.Qe(s,r,N[2],N[3],N[4],N[5],N[6],N[7],.5,i),s=N[6],r=N[7];Cf(e,t,i,n)}gn(i),e.restore(),e.Vc(!1)}}}},_.kk=function(e,t,n){return!nt.prototype.kk.call(this,e,t,n)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(e.Hl=this.svg,this.hh(e,t),e.Hl=null,!0)},_.nk=function(e){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:nt.prototype.nk.call(this,e)},_.Dv=function(e,t){if(e.nodeName!=="g")e.setAttributeNS(null,"filter",t);else{e=e.getElementsByTagName("path");for(var n=0;n<e.length;n++)e[n].setAttributeNS(null,"filter",t)}},_.ga=function(e,t){if(t===void 0&&(t=new ce),e instanceof ui){e.Mc()&&ut("getDocumentPoint Spot must be a real, specific Spot, not: "+e.toString());var n=this.naturalBounds,i=this.strokeWidth;t.h(e.x*(n.width+i)-i/2+n.x+e.offsetX,e.y*(n.height+i)-i/2+n.y+e.offsetY)}else t.set(e);return this.oe.Ga(t),t},_.mi=function(e){e===void 0&&(e=new Ht);var t=this.naturalBounds,n=this.oe;t=Ht.allocAt(t.x,t.y,t.width,t.height);var i=this.strokeWidth;return t.Bc(i/2,i/2),i=ce.allocAt(t.x,t.y).transform(n),e.h(i.x,i.y,0,0),i.h(t.right,t.y).transform(n),Or(e,i.x,i.y,0,0),i.h(t.right,t.bottom).transform(n),Or(e,i.x,i.y,0,0),i.h(t.x,t.bottom).transform(n),Or(e,i.x,i.y,0,0),Ht.free(t),ce.free(i),e},_.gh=function(e,t){var n=this.geometry;if(n===null||this.fill===null&&this.stroke===null)return!1;var i=n.bounds,r=this.strokeWidth/2;n.type!==An.j||t||(r+=2);var o=Ht.alloc();if(o.assign(i),o.Bc(r+2,r+2),!o.ca(e))return Ht.free(o),!1;if(i=r+1e-4,n.type===An.j)return this.stroke===null||(i=(n.endX-n.startX)*(e.x-n.startX)+(n.endY-n.startY)*(e.y-n.startY),0>(n.startX-n.endX)*(e.x-n.endX)+(n.startY-n.endY)*(e.y-n.endY)||0>i)?!1:(Ht.free(o),Ke.Yb(n.startX,n.startY,n.endX,n.endY,r,e.x,e.y));if(n.type===An.u){t=n.startX;var s=n.startY,l=n.endX;if(n=n.endY,o.x=Math.min(t,l),o.y=Math.min(s,n),o.width=Math.abs(l-t),o.height=Math.abs(n-s),this.fill===null){if(o.Bc(-i,-i),o.ca(e))return Ht.free(o),!1;o.Bc(i,i)}return this.stroke!==null&&o.Bc(r,r),e=o.ca(e),Ht.free(o),e}if(n.type===An.F){s=n.startX,r=n.startY,l=n.endX;var u=n.endY;if(n=Math.min(s,l),t=Math.min(r,u),s=Math.abs(l-s)/2,r=Math.abs(u-r)/2,n=e.x-(n+s),t=e.y-(t+r),this.fill===null){if(s-=i,r-=i,0>=s||0>=r||1>=n*n/(s*s)+t*t/(r*r))return Ht.free(o),!1;s+=i,r+=i}return this.stroke!==null&&(s+=i,r+=i),Ht.free(o),0>=s||0>=r?!1:1>=n*n/(s*s)+t*t/(r*r)}if(n.type===An.o)return Ht.free(o),this.fill===null?Wa(n,e.x,e.y,r):Pa(n,e,r,1<this.strokeWidth,t);ut("Unknown Geometry type: "+n.type)},_.Wl=function(e,t,n,i){var r=this.desiredSize,o=this.ig;if(e=Math.max(e,0),t=Math.max(t,0),this.Rd!==null)var s=this.geometry.bounds;else{var l=this.figure,u=Dg[l];if(u===void 0){var f=Ke.Ze[l];typeof f=="string"&&(f=Ke.Ze[f]),typeof f=="function"?(u=f(null,100,100),Dg[l]=u):ut("Unsupported Figure: "+l)}s=u.bounds}l=s.width,u=s.height,f=s.width;var p=s.height;switch(Dl(this,!0)){case mn:i=n=0;break;case Sn:f=Math.max(e-o,0),p=Math.max(t-o,0);break;case bi:f=Math.max(e-o,0),i=0;break;case Mi:n=0,p=Math.max(t-o,0)}isFinite(r.width)&&(f=r.width),isFinite(r.height)&&(p=r.height);var x=this.maxSize,N=this.minSize;switch(n=Math.max(n-o,N.width),i=Math.max(i-o,N.height),f=Math.min(x.width,f),p=Math.min(x.height,p),f=isFinite(f)?Math.max(n,f):Math.max(l,n),p=isFinite(p)?Math.max(i,p):Math.max(u,i),n=Rg(this),n){case mn:break;case Sn:l=f,u=p;break;case di:n=Math.min(f/l,p/u),isFinite(n)||(n=1),l*=n,u*=n;break;default:ut(n+" is not a valid geometryStretch.")}this.Rd!==null?(l===0&&(l=.001),u===0&&(u=.001),n=this.Rd!==null?this.Rd:this.ua,s=n.bounds,i=l/s.width,s=u/s.height,isFinite(i)||(i=1),isFinite(s)||(s=1),this.ua=i===1&&s===1?n:n.copy().scale(i,s)):this.ua!==null&&Ke.$(this.ua.Sk,e-o)&&Ke.$(this.ua.Rk,t-o)||(this.ua=nr.makeGeometry(this,l,u)),s=this.ua.bounds,e===1/0||t===1/0?this.Ge(s.x-o/2,s.y-o/2,e===0&&l===0?0:s.width+o,t===0&&u===0?0:s.height+o):this.Ge(-(o/2),-(o/2),f+o,p+o),r.w()?(f=r.width,p=r.height,f=Math.min(x.width,f),p=Math.min(x.height,p),f=Math.max(N.width,f),p=Math.max(N.height,p),this.dc.h(0,0,f,p)):this.dc.assign(s)};function Rg(e){var t=e.geometryStretch;return e.Rd!==null?t===Ji?Sn:t:t===Ji?Dg[e.figure].defaultStretch:t}_.eh=function(e,t,n,i){rl(this,e,t,n,i)},_.rs=function(e,t,n){return this.Sj(e.x,e.y,t.x,t.y,n)},_.Sj=function(e,t,n,i,r){var o=this.transform,s=1/(o.m11*o.m22-o.m12*o.m21),l=o.m22*s,u=-o.m12*s,f=-o.m21*s,p=o.m11*s,x=s*(o.m21*o.dy-o.m22*o.dx),N=s*(o.m12*o.dx-o.m11*o.dy);o=e*l+t*f+x,s=e*u+t*p+N,l=n*l+i*f+x,u=n*u+i*p+N,x=this.ig/2,f=this.ua,f===null&&(this.measure(1/0,1/0),f=this.ua);var O=f.bounds;if(p=!1,f.type===An.j)if(1.5>=this.strokeWidth)p=Ke.Ve(f.startX,f.startY,f.endX,f.endY,o,s,l,u,r);else{if(f.startX===f.endX?(i=x,p=0):(t=(f.endY-f.startY)/(f.endX-f.startX),p=x/Math.sqrt(1+t*t),i=p*t),t=jt(),e=new ce,Ke.Ve(f.startX+i,f.startY+p,f.endX+i,f.endY+p,o,s,l,u,e)&&t.push(e),e=new ce,Ke.Ve(f.startX-i,f.startY-p,f.endX-i,f.endY-p,o,s,l,u,e)&&t.push(e),e=new ce,Ke.Ve(f.startX+i,f.startY+p,f.startX-i,f.startY-p,o,s,l,u,e)&&t.push(e),e=new ce,Ke.Ve(f.endX+i,f.endY+p,f.endX-i,f.endY-p,o,s,l,u,e)&&t.push(e),l=t.length,l===0)return gn(t),!1;for(p=!0,u=1/0,i=0;i<l;i++)e=t[i],n=(e.x-o)*(e.x-o)+(e.y-s)*(e.y-s),n<u&&(u=n,r.x=e.x,r.y=e.y);gn(t)}else if(f.type===An.u)p=Ke.Ff(O.x-x,O.y-x,O.x+O.width+x,O.y+O.height+x,o,s,l,u,r);else if(f.type===An.F){t=Ht.allocAt(O.x,O.y,O.width,O.height).Bc(x,x);e:if(t.width===0)p=Ke.Ve(t.x,t.y,t.x,t.y+t.height,o,s,l,u,r);else if(t.height===0)p=Ke.Ve(t.x,t.y,t.x+t.width,t.y,o,s,l,u,r);else{if(e=t.width/2,f=t.height/2,i=t.x+e,p=t.y+f,n=9999,o!==l&&(n=(s-u)/(o-l)),9999>Math.abs(n)){if(u=s-p-n*(o-i),0>e*e*n*n+f*f-u*u){r.x=NaN,r.y=NaN,p=!1;break e}x=Math.sqrt(e*e*n*n+f*f-u*u),l=(-(e*e*n*u)+e*f*x)/(f*f+e*e*n*n)+i,e=(-(e*e*n*u)-e*f*x)/(f*f+e*e*n*n)+i,f=n*(l-i)+u+p,u=n*(e-i)+u+p,Math.abs((o-l)*(o-l))+Math.abs((s-f)*(s-f))<Math.abs((o-e)*(o-e))+Math.abs((s-u)*(s-u))?(r.x=l,r.y=f):(r.x=e,r.y=u)}else{if(l=f*f,u=o-i,l-=l/(e*e)*u*u,0>l){r.x=NaN,r.y=NaN,p=!1;break e}u=Math.sqrt(l),l=p+u,u=p-u,Math.abs(l-s)<Math.abs(u-s)?(r.x=o,r.y=l):(r.x=o,r.y=u)}p=!0}Ht.free(t)}else if(f.type===An.o){N=ce.alloc();var F=l-o,K=u-s,ye=F*F+K*K,ae=o,Oe=s;if(0<ye&&O.contains(ae,Oe)&&(N.x=ae,N.y=Oe,this.ca(N)))for(F!==0&&.5>Math.abs(F)?(K*=.5/F,F=.5):K!==0&&.5>Math.abs(K)&&(F*=.5/K,K=.5),ae-=F,Oe-=K;O.contains(ae,Oe);)ae-=F,Oe-=K;for(r.x=l,r.y=u,K=0;K<f.figures.count;K++){var Fe=f.figures.s[K],He=Fe.isFilled?ae:o,qe=Fe.isFilled?Oe:s,bt=Fe.segments;O=Fe.startX,F=Fe.startY;for(var jn=O,oi=F,ei=0;ei<bt.count;ei++){var Nn=bt.s[ei],cn=Nn.type,Yi=Nn.endX,Ui=Nn.endY,_r=!1;switch(cn){case Wo:jn=Yi,oi=Ui;break;case Gr:_r=$0(O,F,Yi,Ui,He,qe,l,u,N);break;case Ts:_r=Ke.Eo(O,F,Nn.point1X,Nn.point1Y,Nn.point2X,Nn.point2Y,Yi,Ui,He,qe,l,u,.6,N);break;case Na:_r=Ke.Eo(O,F,O+2/3*(Nn.point1X-O),F+2/3*(Nn.point1Y-F),Yi+2/3*(Nn.point1X-Yi),Ui+2/3*(Nn.point1Y-Ui),Yi,Ui,He,qe,l,u,.6,N);break;case _o:case Ma:cn=Nn.type===_o?Ta(Nn,Fe):Qs(Nn,Fe,O,F);var ho=cn.length;if(ho===0){_r=$0(O,F,Nn.type===_o?Nn.centerX:Nn.endX,Nn.type===_o?Nn.centerY:Nn.endY,He,qe,l,u,N);break}for(Ui=null,Yi=0;Yi<ho;Yi++){if(Ui=cn[Yi],Yi===0&&$0(O,F,Ui[0],Ui[1],He,qe,l,u,N)){var ia=H0(He,qe,N,ye,r);ia<ye&&(ye=ia,p=!0)}Ke.Eo(Ui[0],Ui[1],Ui[2],Ui[3],Ui[4],Ui[5],Ui[6],Ui[7],He,qe,l,u,.6,N)&&(ia=H0(He,qe,N,ye,r),ia<ye&&(ye=ia,p=!0))}Yi=Ui[6],Ui=Ui[7];break;default:ut("Unknown Segment type: "+cn)}O=Yi,F=Ui,_r&&(_r=H0(He,qe,N,ye,r),_r<ye&&(ye=_r,p=!0)),Nn.isClosed&&(Yi=jn,Ui=oi,$0(O,F,Yi,Ui,He,qe,l,u,N)&&(Nn=H0(He,qe,N,ye,r),Nn<ye&&(ye=Nn,p=!0)))}}o=n-e,s=i-t,l=Math.sqrt(o*o+s*s),l!==0&&(o/=l,s/=l),r.x-=o*x,r.y-=s*x,ce.free(N)}else ut("Unknown Geometry type: "+f.type);return p?(this.transform.Ga(r),!0):!1};function H0(e,t,n,i,r){return e=n.x-e,t=n.y-t,t=e*e+t*t,t<i?(r.x=n.x,r.y=n.y,t):i}function $0(e,t,n,i,r,o,s,l,u){if(Ke.$(e,n)&&Ke.$(t,i)||Ke.$(r,s)&&Ke.$(o,l))return!1;var f=!1,p=(r-s)*(t-i)-(o-l)*(e-n);return p===0?!1:(u.x=((r*l-o*s)*(e-n)-(r-s)*(e*i-t*n))/p,u.y=((r*l-o*s)*(t-i)-(o-l)*(e*i-t*n))/p,(e>n?e-n:n-e)<(t>i?t-i:i-t)?(e=t<i?t:i,t=t<i?i:t,(u.y>e||Ke.$(u.y,e))&&(u.y<t||Ke.$(u.y,t))&&(f=!0)):(t=e<n?e:n,e=e<n?n:e,(u.x>t||Ke.$(u.x,t))&&(u.x<e||Ke.$(u.x,e))&&(f=!0)),f)}_.fh=function(e,t){if(t===void 0)return e.Re(this.actualBounds);var n=this.ua;n===null&&(this.measure(1/0,1/0),n=this.ua),n=n.bounds;var i=this.strokeWidth/2,r=!1,o=ce.alloc();return o.h(n.x-i,n.y-i),e.ca(t.Ga(o))&&(o.h(n.x-i,n.bottom+i),e.ca(t.Ga(o))&&(o.h(n.right+i,n.bottom+i),e.ca(t.Ga(o))&&(o.h(n.right+i,n.y-i),e.ca(t.Ga(o))&&(r=!0)))),ce.free(o),r},_.Yc=function(e,t){if(this.fh(e,t)||t===void 0&&(t=this.transform,e.Re(this.actualBounds)))return!0;var n=er.alloc();n.set(t),n.Vj();var i=e.left,r=e.right,o=e.top;e=e.bottom;var s=ce.alloc();if(s.h(i,o),n.Ga(s),this.gh(s,!0)||(s.h(r,o),n.Ga(s),this.gh(s,!0))||(s.h(i,e),n.Ga(s),this.gh(s,!0))||(s.h(r,e),n.Ga(s),this.gh(s,!0)))return ce.free(s),!0;var l=ce.alloc(),u=ce.alloc();return n.set(t),n.bv(this.transform),n.Vj(),l.x=r,l.y=o,l.transform(n),s.x=i,s.y=o,s.transform(n),t=!1,Sd(this,s,l,u)?t=!0:(s.x=r,s.y=e,s.transform(n),Sd(this,s,l,u)?t=!0:(l.x=i,l.y=e,l.transform(n),Sd(this,s,l,u)?t=!0:(s.x=i,s.y=o,s.transform(n),Sd(this,s,l,u)&&(t=!0)))),ce.free(s),er.free(n),ce.free(l),ce.free(u),t};function Sd(e,t,n,i){if(!e.rs(t,n,i))return!1;e=t.x,t=t.y;var r=n.x,o=n.y;return n=i.x,i=i.y,e===r?(t<o?(e=t,t=o):e=o,i>=e&&i<=t):(e<r?(i=e,e=r):i=r,n>=i&&n<=e)}_.tx=function(e,t,n){function i(ye,ae){for(var Oe=ye.length,Fe=0;Fe<Oe;Fe+=2)if(ae.zd(ye[Fe],ye[Fe+1])>r)return!0;return!1}if(n&&this.fill!==null&&this.gh(e,!0))return!0;var r=e.Bf(t),o=r;if(1.5<this.strokeWidth&&(r=this.strokeWidth/2+Math.sqrt(r),r*=r),t=this.ua,t===null&&(this.measure(1/0,1/0),t=this.ua,t===null))return!1;if(!n){var s=t.bounds,l=s.x,u=s.y,f=s.x+s.width;if(s=s.y+s.height,Br(e.x,e.y,l,u)<=r&&Br(e.x,e.y,f,u)<=r&&Br(e.x,e.y,l,s)<=r&&Br(e.x,e.y,f,s)<=r)return!0}if(l=t.startX,u=t.startY,f=t.endX,s=t.endY,t.type===An.j){if(n=(l-f)*(e.x-f)+(u-s)*(e.y-s),Pr(e.x,e.y,l,u,f,s)<=(0<=(f-l)*(e.x-l)+(s-u)*(e.y-u)&&0<=n?r:o))return!0}else{if(t.type===An.u)return t=!1,n&&(t=Pr(e.x,e.y,l,u,l,s)<=r||Pr(e.x,e.y,l,u,f,u)<=r||Pr(e.x,e.y,f,u,f,s)<=r||Pr(e.x,e.y,l,s,f,s)<=r),t;if(t.type===An.F){t=e.x-(l+f)/2,o=e.y-(u+s)/2;var p=Math.abs(f-l)/2,x=Math.abs(s-u)/2;if(p===0||x===0)return Pr(e.x,e.y,l,u,f,s)<=r;if(n){if(e=Ke.$y(p,x,t,o),e*e<=r)return!0}else return!(Br(t,o,-p,0)>=r||Br(t,o,0,-x)>=r||Br(t,o,0,x)>=r||Br(t,o,p,0)>=r)}else if(t.type===An.o){if(f=t.bounds,o=f.x,l=f.y,u=f.x+f.width,f=f.y+f.height,e.x>u&&e.x<o&&e.y>f&&e.y<l&&Pr(e.x,e.y,o,l,o,f)>r&&Pr(e.x,e.y,o,l,u,l)>r&&Pr(e.x,e.y,u,f,o,f)>r&&Pr(e.x,e.y,u,f,u,l)>r)return!1;if(o=Math.sqrt(r),n){if(this.fill===null?Wa(t,e.x,e.y,o):Pa(t,e,o,!0,!1))return!0}else{for(n=t.figures,t=0;t<n.count;t++){if(o=n.s[t],s=o.startX,p=o.startY,e.zd(s,p)>r)return!1;for(l=o.segments.s,u=l.length,f=0;f<u;f++)switch(x=l[f],x.type){case Wo:case Gr:if(s=x.endX,p=x.endY,e.zd(s,p)>r)return!1;break;case Ts:var N=jt();if(Ke.Qe(s,p,x.point1X,x.point1Y,x.point2X,x.point2Y,x.endX,x.endY,.8,N),s=i(N,e),gn(N),s||(s=x.endX,p=x.endY,e.zd(s,p)>r))return!1;break;case Na:if(N=jt(),Ke.ep(s,p,x.point1X,x.point1Y,x.endX,x.endY,.8,N),s=i(N,e),gn(N),s||(s=x.endX,p=x.endY,e.zd(s,p)>r))return!1;break;case _o:case Ma:N=x.type===_o?Ta(x,o):Qs(x,o,s,p);var O=N.length;if(O===0){if(s=x.type===_o?x.centerX:x.endX,p=x.type===_o?x.centerY:x.endY,e.zd(s,p)>r)return!1;break}x=null;for(var F=jt(),K=0;K<O;K++)if(x=N[K],F.length=0,Ke.Qe(x[0],x[1],x[2],x[3],x[4],x[5],x[6],x[7],.8,F),i(F,e))return gn(F),!1;gn(F),x!==null&&(s=x[6],p=x[7]);break;default:ut("Unknown Segment type: "+x.type)}}return!0}}}return!1},_.qc=function(){this.ua=null},_.kq=function(){return this.ig};function Ty(e){var t=e.diagram;t!==null&&t.undoManager.isUndoingRedoing||(e.segmentOrientation=Mp,e.toArrow!=="None"?(e.segmentIndex=-1,e.alignmentFocus=rs):e.fromArrow!=="None"&&(e.segmentIndex=0,e.alignmentFocus=new ui(1-rs.x,rs.y)))}nr.makeGeometry=function(e,t,n){if(e.toArrow!=="None")var i=zc[e.toArrow];else e.fromArrow!=="None"?i=zc[e.fromArrow]:(i=Ke.Ze[e.figure],typeof i=="string"&&(i=Ke.Ze[i]),i===void 0&&ut("Unknown Shape.figure: "+e.figure),i=i(e,t,n),i.Sk=t,i.Rk=n);if(i===null){var r=Ke.Ze.Rectangle;typeof r=="function"&&(i=r(e,t,n))}return i};function Ny(e){var t=zc[e];if(t===void 0){var n=e.toLowerCase();if(n==="none")return"None";if(t=zc[n],t===void 0){var i=null,r;for(r in Ke.um)if(r.toLowerCase()===n){i=r;break}if(i!==null)return e=An.parse(Ke.um[i],!1),zc[i]=e,n!==i&&(zc[n]=i),i}}return typeof t=="string"?t:t instanceof An?e:null}at.Object.defineProperties(nr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(e){var t=this.ua,n=this.Rd;if(t!==e){e!==null?this.Rd=this.ua=e.freeze():this.Rd=this.ua=null;var i=this.part;i!==null&&(i.ag=NaN),this.v(),this.g("geometry",t||n,e),ka(this)&&(e=this.part,e!==null&&To(this,e,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(e){e=An.parse(e);var t=e.normalize();this.geometry=e,this.position=e=ce.allocAt(-t.x,-t.y),ce.free(e)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",t,e))}},fill:{get:function(){return this.Ui},set:function(e){var t=this.Ui;t!==e&&(e!==null&&$d(e,"Shape.fill"),e instanceof Wr&&e.freeze(),this.Ui=e,this.N(),this.g("fill",t,e))}},stroke:{get:function(){return this.xc},set:function(e){var t=this.xc;t!==e&&(e!==null&&$d(e,"Shape.stroke"),e instanceof Wr&&e.freeze(),this.xc=e,this.N(),this.g("stroke",t,e))}},strokeWidth:{get:function(){return this.ig},set:function(e){var t=this.ig;if(t!==e)if(0<=e){this.ig=e,this.v();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeWidth",t,e)}else rn(e,"value >= 0",nr,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(e){var t=this.strokeCap;t!==e&&(typeof e!="string"||e!=="butt"&&e!=="round"&&e!=="square"?rn(e,'"butt", "round", or "square"',nr,"strokeCap"):(xd(this),this.Na.Hr=e,this.N(),this.g("strokeCap",t,e)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(e){var t=this.strokeJoin;t!==e&&(typeof e!="string"||e!=="miter"&&e!=="bevel"&&e!=="round"?rn(e,'"miter", "bevel", or "round"',nr,"strokeJoin"):(xd(this),this.Na.Ir=e,this.N(),this.g("strokeJoin",t,e)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(e){var t=this.strokeMiterLimit;if(t!==e&&1<=e){xd(this),this.Na.Jr=e,this.N();var n=this.part;n!==null&&(n.ag=NaN),this.g("strokeMiterLimit",t,e)}}},strokeDashArray:{get:function(){return this.Yg},set:function(e){var t=this.Yg;if(t!==e){if(e!==null){for(var n=e.length,i=0,r=0;r<n;r++){var o=e[r];0<=o&&isFinite(o)||ut("strokeDashArray:value "+o+" at index "+r+" must be a positive number or zero."),i+=o}if(i===0){if(t===null)return;e=null}}this.Yg=e,this.N(),this.g("strokeDashArray",t,e)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(e){var t=this.strokeDashOffset;t!==e&&0<=e&&(xd(this),this.Na.uj=e,this.N(),this.g("strokeDashOffset",t,e))}},figure:{get:function(){return this.an},set:function(e){var t=this.an;if(t!==e){var n=Ke.Ze[e];typeof n=="function"?n=e:(n=Ke.Ze[e.toLowerCase()])||ut("Unknown Shape.figure: "+e),t!==n&&(e=this.part,e!==null&&(e.ag=NaN),this.an=n,this.Rd=null,this.qc(),this.v(),this.g("figure",t,n))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(e){var t=this.toArrow;if(e===!0?e="Standard":e===!1&&(e=""),t!==e){var n=Ny(e);n===null?ut("Unknown Shape.toArrow: "+e):t!==n&&(this.Ua===null&&(this.Ua=new $h),this.Ua.V=n,this.Rd=null,this.qc(),this.v(),Ty(this),this.g("toArrow",t,n))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(e){var t=this.fromArrow;if(e===!0?e="Standard":e===!1&&(e=""),t!==e){var n=Ny(e);n===null?ut("Unknown Shape.fromArrow: "+e):t!==n&&(this.Ua===null&&(this.Ua=new $h),this.Ua.j=n,this.Rd=null,this.qc(),this.v(),Ty(this),this.g("fromArrow",t,n))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Lr},set:function(e){var t=this.spot1;t.D(e)||(e=e.J(),xd(this),this.Na.fg=e,this.v(),this.g("spot1",t,e))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Lr},set:function(e){var t=this.spot2;t.D(e)||(e=e.J(),xd(this),this.Na.gg=e,this.v(),this.g("spot2",t,e))}},parameter1:{get:function(){return this.Un},set:function(e){var t=this.Un;t!==e&&(this.Un=e,this.qc(),this.v(),this.g("parameter1",t,e))}},parameter2:{get:function(){return this.Vn},set:function(e){var t=this.Vn;t!==e&&(this.Vn=e,this.qc(),this.v(),this.g("parameter2",t,e))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(e){var t=this.pathPattern;t!==e&&(xd(this),this.Na.br=e,this.N(),this.g("pathPattern",t,e))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Ji},set:function(e){var t=this.geometryStretch;t!==e&&(xd(this),this.Na.jq=e,this.v(),this.g("geometryStretch",t,e))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(e){var t=this.interval;if(e=Math.round(e),t!==e&&e!==0&&isFinite(e)){this.fa===null&&(this.fa=new Uc),this.fa.Tk=e;var n=this.diagram;n!==null&&this.panel===n.grid&&Tc(n),this.v(),n=this.panel,n!==null&&(n.graduatedIntervals=null),this.g("interval",t,e)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(e){var t=this.graduatedStart;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Uc),this.fa.u=e,this.v(),this.g("graduatedStart",t,e))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(e){var t=this.graduatedEnd;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Uc),this.fa.j=e,this.v(),this.g("graduatedEnd",t,e))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(e){var t=this.graduatedSkip;t!==e&&(this.fa===null&&(this.fa=new Uc),this.fa.o=e,this.v(),this.g("graduatedSkip",t,e))}}}),nr.prototype.intersectsRect=nr.prototype.Yc,nr.prototype.containedInRect=nr.prototype.fh,nr.prototype.getNearestIntersectionPoint=nr.prototype.rs,nr.prototype.getDocumentBounds=nr.prototype.mi,nr.prototype.getDocumentPoint=nr.prototype.ga;var zc=new ue,Dg=new ue;nr.className="Shape",nr.getFigureGenerators=function(){var e=new ii,t;for(t in Ke.Ze)t!==t.toLowerCase()&&e.add(t,Ke.Ze[t]);return e.freeze(),e},nr.defineFigureGenerator=function(e,t){var n=e.toLowerCase(),i=Ke.Ze;i[e]=t,i[n]=e},nr.getArrowheadGeometries=function(){var e=new ii;for(i in Ke.um)if(zc[i]===void 0){var t=An.parse(Ke.um[i],!1);zc[i]=t,t=i.toLowerCase(),t!==i&&(zc[t]=i)}for(var n in zc)if(n!==n.toLowerCase()){var i=zc[n];i instanceof An&&e.add(n,i)}return e.freeze(),e},nr.defineArrowheadGeometry=function(e,t){var n=null;typeof t=="string"?n=An.parse(t,!1):n=t,t=e.toLowerCase(),t!=="none"&&e!==t||ut("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+e);var i=zc;i[e]=n,i[t]=e};function Pg(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Ji,this.gg=this.fg=Lr}Pg.prototype.copy=function(){var e=new Pg;return e.Hr=this.Hr,e.Ir=this.Ir,e.Jr=this.Jr,e.uj=this.uj,e.br=this.br,e.jq=this.jq,e.fg=this.fg.J(),e.gg=this.gg.J(),e};function vo(e,t){return nt.call(this),K0||(Pl=ds?new zu(null).context:null,K0=!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 e=="string"?this.text=e:e&&Object.assign(this,e),t&&Object.assign(this,t),this}fi(vo,nt),vo.prototype.cloneProtected=function(e){nt.prototype.cloneProtected.call(this,e),e.ec=this.ec,e.xc=this.xc,e.Ae=this.Ae,e.Gc=this.Gc,e.Cb=this.Cb,e.Lq=this.Lq,e.Gm=this.Gm,this.fa!==null&&(e.fa=this.fa.copy()),this.da!==null&&(e.da=this.da.nc?this.da:this.da.copy()),e.Ih=this.Ih,e.df=this.df,e.Le=this.Le,e.Qc=this.Qc,e.Qb=this.Qb,e.ze=this.ze};function Ic(e){e.da===null?e.da=new $g:e.da.nc&&(e.da=e.da.copy())}_=vo.prototype,_.th=function(){nt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function Ay(e,t){e.l=t.l|6144,e.pb=t.opacity,e.Ma=t.background,e.areaBackground=t.areaBackground,e.jd=t.desiredSize.J(),e.minSize=t.minSize.J(),e.maxSize=t.maxSize.J(),t.Lb!==null?e.Lb=t.Lb.copy():e.Lb=null,e.Ca=t.scale,e.Kb=t.angle,e.stretch=t.stretch,e.Kg=t.margin.J(),e.Jb=t.alignment.J(),e.sk=t.alignmentFocus.J(),e.segmentFraction=t.segmentFraction,e.segmentOffset=t.segmentOffset.J(),e.segmentOrientation=t.segmentOrientation,t.tb!==null&&(e.tb=t.tb.copy()),e.shadowVisible=t.shadowVisible,e.ec=t.ec,e.xc=t.xc,e.Ae=t.Ae,e.fa!==null&&(e.fa=t.fa.copy()),t.da!==null&&(e.da=t.da.nc?t.da:t.da.copy()),e.Ih=t.Ih}_.qb=function(e){e.classType===vo?this.wrap=e:nt.prototype.qb.call(this,e)},_.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},_.v=function(){nt.prototype.v.call(this)},_.hh=function(e,t){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var n=this.naturalBounds,i=this.actualBounds,r=n.width,o=n.height,s=wp(this),l=e.textAlign=this.textAlign,u=t.tn;l==="start"?l=u?"right":"left":l==="end"&&(l=u?"left":"right"),u=this.isUnderline;var f=this.isStrikethrough;gs(this,e,this.xc,!0,!1,n,i),(u||f)&&gs(this,e,this.xc,!1,!1,n,i),i=0,n=!1;var p=this.oe,x=p.dx-(s*p.m21+p.dx);p=p.dy-(s*p.m22+p.dy);var N=t.scale;switch(8>(x*x+p*p)*N*N&&(n=!0),t.ib!==e&&(n=!1),t.ib instanceof tu&&(n=!1),t.Gf("textGreeking")===!1&&(n=!1),t=this.spacingAbove,x=this.spacingBelow,this.flip){case Mr:e.translate(r,0),e.scale(-1,1);break;case ar:e.translate(0,o),e.scale(1,-1);break;case Qr:e.translate(r,o),e.scale(-1,-1)}if(e.yc(),p=this.Gc,N=(t+s+x)*p,o>N&&(i=this.verticalAlignment,i=i.y*o-i.y*N+i.offsetY),p===1&&this.ze!==null)x=this.Cb,x>r&&(x=r),this.Oj(this.ze,e,0,i+t,r,s,x,n,l,u,f);else if(this.Qc!==null&&this.Qb!==null)for(N=0;N<p;N++){var O=this.Qc[N];O>r&&(O=r),i+=t,this.Oj(this.Qb[N],e,0,i,r,s,O,n,l,u,f),i+=s+x}switch(this.flip){case Mr:e.scale(-1,1),e.translate(-r,0);break;case ar:e.scale(1,-1),e.translate(0,-o);break;case Qr:e.scale(-1,-1),e.translate(-r,-o)}}},_.Oj=function(e,t,n,i,r,o,s,l,u,f,p){var x=0;if(l)u==="left"?x=0:u==="right"?x=r-s:u==="center"&&(x=(r-s)/2),t.fillRect(n+x,i+.25*o,s,1);else{if(u==="left"?x=0:u==="right"?x=r:u==="center"&&(x=r/2),r=j0!==null?j0(this,o):.75*o,t.fillText(e,n+x,i+r),e=o/20|0,e===0&&(e=1),u==="right"?x-=s:u==="center"&&(x-=s/2),f){l=G0!==null?G0(this,o):.8*o,u=n+x,f=i+l,r=n+x+s,l=i+l;var N=e;t.beginPath(),t.lineWidth=N,t.moveTo(u,f),t.lineTo(r,l),t.stroke(),t.Se(),t instanceof tu&&t.ad.classList.add("gojs-td")}p&&(p=i+o-o/2.2|0,e%2!==0&&(p+=.5),i=n+x,o=p,n=n+x+s,s=p,x=e,t.beginPath(),t.lineWidth=x,t.moveTo(i,o),t.lineTo(n,s),t.stroke(),t.Se(),t instanceof tu&&t.ad.classList.add("gojs-td"))}},_.kk=function(e,t,n){if(!nt.prototype.kk.call(this,e,t,n))return!1;if(gs(this,e,this.xc,!0,!1,this.naturalBounds,this.actualBounds),n){if(this.svg.getElementsByTagName("text").length===0)return!0;for(t=this.svg.getElementsByClassName("gojs-td"),n=0;n<t.length;n++)sy(e,t[n],!1)}else t=this.svg,t.innerHTML=this.text,sy(e,t,!0);return!0},_.nk=function(e){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:nt.prototype.nk.call(this,e)},_.Dv=function(e,t){if(e.nodeName!=="g")e.setAttributeNS(null,"filter",t);else{e=e.getElementsByTagName("text");for(var n=0;n<e.length;n++)e[n].setAttributeNS(null,"filter",t)}},_.Wl=function(e,t,n,i){var r=this.Gc;this.Ih=e,this.l&=-16777217;var o=this.Ae;Pl!==null&&Dy!==o&&(Dy=Pl.font=o),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var s;if(isNaN(this.desiredSize.width)){if(o=this.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),o.length===0)o=8;else if(this.isMultiline){for(var l=s=0,u=!1;!u;){var f=o.indexOf(`
|
|
|
`,l);f===-1&&(f=o.length,u=!0),l=o.substr(l,f-l),this.formatting===Cp&&(l=l.trim()),s=Math.max(s,ec(l)),l=f+1}o=s}else s=o.indexOf(`
|
|
|
`,0),0<=s&&(o=o.substr(0,s)),o=ec(o);o=Math.min(o,e/this.scale)}else o=this.desiredSize.width;if(this.panel!==null&&(o=Math.min(o,this.panel.maxSize.width)),s=Iy(this,o),isNaN(this.desiredSize.height)?s=Math.min(s,t/this.scale):s=this.desiredSize.height,u=s,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===W0&&(t=this.Ae,t=this.overflow===W0?ky(t):0,f=this.spacingAbove+this.spacingBelow,f=Math.max(0,wp(this)+f),u=Math.min(this.maxLines-1,Math.max(Math.floor(u/f+.01)-1,0)),!(u+1>=this.Qb.length))){for(this.l|=16777216,f=this.Qb[u],t=Math.max(1,e-t);ec(f)>t&&1<f.length;)f=f.substr(0,f.length-1);f+=Tp,t=ec(f),this.Qb[u]=f,this.Qb=this.Qb.slice(0,u+1),this.Qc[u]=t,this.Qc=this.Qc.slice(0,u+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,t),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===My||isNaN(this.desiredSize.width))&&(o=isNaN(e)?this.Cb:Math.min(e,this.Cb)),o=Math.max(n,o),s=Math.max(i,s),Ds(this.dc,o,s),this.Ge(0,0,o,s),this.svg!==null&&r!==this.Gc&&(this.Uc=!0)},_.eh=function(e,t,n,i){rl(this,e,t,n,i)};function Ep(e,t,n){e.ze===null?(e.ze=t,e.Cb=n):((e.Qb===null||e.Qc===null)&&(e.Qb=[],e.Qc=[],e.Qb.push(e.ze),e.Qc.push(e.Cb)),e.Qb.push(t),e.Qc.push(n),e.Qb.length>e.maxLines&&(e.l|=16777216))}function Fg(e,t,n,i){var r=e.formatting===Cp;r&&(t=t.trim());var o=0,s=e.Ae,l=e.spacingAbove+e.spacingBelow;l=Math.max(0,wp(e)+l);var u=e.overflow===W0?ky(s):0;if(e.Gc>=e.maxLines)i!==null&&i.h(0,l);else if(s=t,e.wrap===Bg){e.Le=1;var f=ec(t);if(u===0||f<=n)e.Cb=Math.max(e.Cb,f),Ep(e,t,e.Cb),i!==null&&i.h(f,l);else{for(o=Tf(e,s),s=s.substr(o.length),t=Tf(e,s),f=ec(o+t);0<t.length&&f<=n;)o+=t,s=s.substr(t.length),t=Tf(e,s),f=o+t,r&&(f=f.trim()),f=ec(f);for(r&&(t=t.trim()),o+=t,n=Math.max(1,n-u);ec(o)>n&&1<o.length;)o=o.substr(0,o.length-1);e.l|=16777216,o+=Tp;var p=ec(o);e.Cb=p,Ep(e,o,p),i!==null&&i.h(p,l)}}else{for(u=0,s.length===0&&(u=1,Ep(e,s,0));0<s.length;){for(t=Tf(e,s),s=s.substr(t.length);ec(t)>n;){var x=1;for(f=ec(t.substr(0,x)),p=0;f<=n;)x++,p=f,f=ec(t.substr(0,x));if(x===1){var N=f;o=Math.max(o,f)}else N=p,o=Math.max(o,p);if(x--,1>x&&(x=1),Ep(e,t.substr(0,x),N),u++,t=t.substr(x),e.Gc+u>e.maxLines)break}for(p=Tf(e,s),f=ec(t+p);0<p.length&&f<=n;)t+=p,s=s.substr(p.length),p=Tf(e,s),f=t+p,r&&(f=f.trim()),f=ec(f);if(r&&(t=t.trim()),t!==""&&(t[t.length-1]==="\xAD"&&(t=t.substring(0,t.length-1)+"\u2010"),p.length===0?(x=f,o=Math.max(o,f)):(x=p=ec(t),o=Math.max(o,p)),Ep(e,t,x),u++,e.Gc+u>e.maxLines))break}e.Le=Math.min(e.maxLines,u),e.Cb=Math.max(e.Cb,o),i!==null&&i.h(e.Cb,l*e.Le)}}function Tf(e,t){if(e.wrap===Oy)return t.substr(0,1);for(var n=t.length,i=0,r=Rb;i<n&&!r.test(t.charAt(i));)i++;for(e.formatting===Ly&&(n=Math.min(n,i+1));i<n&&r.test(t.charAt(i));)i++;return i>=t.length?t:t.substr(0,i)}function ec(e){return Pl===null?8*e.length:Pl.measureText(e).width}function wp(e){if(e.df!==null)return e.df;var t=e.Ae;if(Pl===null){var n=16;return e.df=n}return Ug[t]!==void 0&&5e3>Ry?n=Ug[t]:(n=1.3*Pl.measureText("M").width,Ug[t]=n,Ry++),e.df=n}function ky(e){if(Pl===null)return 6;if(V0[e]!==void 0&&5e3>Hg)var t=V0[e];else t=Pl.measureText(Tp).width,V0[e]=t,Hg++;return t}function Iy(e,t){var n=e.ec.replace(/\r\n/g,`
|
|
|
`).replace(/\r/g,`
|
|
|
`),i=e.spacingAbove+e.spacingBelow;if(i=Math.max(0,wp(e)+i),n.length===0)return e.Cb=0,e.Gc=1,i;if(!e.isMultiline){var r=n.indexOf(`
|
|
|
`,0);0<=r&&(n=n.substr(0,r))}r=0;for(var o=e.Gc=0,s,l=!1;!l;){if(s=n.indexOf(`
|
|
|
`,o),s===-1&&(s=n.length,l=!0),o<=s){if(o=n.substr(o,s-o),e.wrap!==Bg){e.Le=0;var u=mi.alloc();Fg(e,o,t,u),r+=u.height,mi.free(u),e.Gc+=e.Le}else Fg(e,o,t,null),r+=i,e.Gc++;e.Gc===e.maxLines&&(l=!0)}o=s+1}return e.Lq=r}at.Object.defineProperties(vo.prototype,{font:{get:function(){return this.Ae},set:function(e){var t=this.Ae;t!==e&&(this.Ae=e,this.df=null,this.v(),this.g("font",t,e))}},text:{get:function(){return this.ec},set:function(e){var t=this.ec;e!=null?e=e.toString():e="",t!==e&&(this.ec=e,this.v(),this.g("text",t,e),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(e){var t=this.textAlign;t===e||e!=="start"&&e!=="end"&&e!=="left"&&e!=="right"&&e!=="center"||(Ic(this),this.da.Or=e,this.N(),this.g("textAlign",t,e))}},flip:{get:function(){return this.da!==null?this.da.Xf:mn},set:function(e){var t=this.flip;t!==e&&(Ic(this),this.da.Xf=e,this.N(),this.g("flip",t,e))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:Xo},set:function(e){var t=this.verticalAlignment;t.D(e)||(e=e.J(),Ic(this),this.da.Yr=e,dl(this),this.g("verticalAlignment",t,e))}},naturalBounds:{get:function(){if(!this.dc.w()){var e=mi.alloc();Fg(this,this.ec,999999,e);var t=e.width;mi.free(e),e=Iy(this,t);var n=this.desiredSize;isNaN(n.width)||(t=n.width),isNaN(n.height)||(e=n.height),Ds(this.dc,t,e)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(e){var t=(this.l&2097152)!==0;t!==e&&(this.l^=2097152,this.v(),this.g("isMultiline",t,e))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(e){var t=(this.l&4194304)!==0;t!==e&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",t,e))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(e){var t=(this.l&8388608)!==0;t!==e&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",t,e))}},wrap:{get:function(){return this.da!==null?this.da.$r:_g},set:function(e){var t=this.wrap;t!==e&&(Ic(this),this.da.$r=e,this.v(),this.g("wrap",t,e))}},overflow:{get:function(){return this.da!==null?this.da.$q:zg},set:function(e){var t=this.overflow;t!==e&&(Ic(this),this.da.$q=e,this.v(),this.g("overflow",t,e))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(e){var t=this.xc;t!==e&&(e!==null&&$d(e,"TextBlock.stroke"),e instanceof Wr&&e.freeze(),this.xc=e,this.N(),this.g("stroke",t,e))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return wp(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(e){var t=(this.l&1048576)!==0;t!==e&&(this.l^=1048576,this.g("editable",t,e))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(e){var t=this.textEditor;t!==e&&(Ic(this),this.da.Qr=e,this.g("textEditor",t,e))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(e){var t=this.errorFunction;t!==e&&(Ic(this),this.da.Hd=e,this.g("errorFunction",t,e))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(e){var t=this.interval;if(e=Math.round(e),t!==e&&e!==0&&isFinite(e)){this.fa===null&&(this.fa=new Uc),this.fa.Tk=e,this.v();var n=this.panel;n!==null&&(n.graduatedIntervals=null),this.g("interval",t,e)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(e){var t=this.graduatedStart;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Uc),this.fa.u=e,this.v(),this.g("graduatedStart",t,e))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(e){var t=this.graduatedEnd;t!==e&&(0>e?e=0:1<e&&(e=1),this.fa===null&&(this.fa=new Uc),this.fa.j=e,this.v(),this.g("graduatedEnd",t,e))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(e){var t=this.graduatedFunction;t!==e&&(this.fa===null&&(this.fa=new Uc),this.fa.F=e,this.v(),this.g("graduatedFunction",t,e))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(e){var t=this.graduatedSkip;t!==e&&(this.fa===null&&(this.fa=new Uc),this.fa.o=e,this.v(),this.g("graduatedSkip",t,e))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(e){var t=this.textValidation;t!==e&&(Ic(this),this.da.vj=e,this.g("textValidation",t,e))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(e){var t=this.textEdited;t!==e&&(Ic(this),this.da.Pr=e,this.g("textEdited",t,e))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(e){var t=this.spacingAbove;t!==e&&(Ic(this),this.da.Dr=e,this.v(),this.g("spacingAbove",t,e))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(e){var t=this.spacingBelow;t!==e&&(Ic(this),this.da.Er=e,this.v(),this.g("spacingBelow",t,e))}},formatting:{get:function(){return this.da!==null?this.da.gq:Cp},set:function(e){var t=this.formatting;t!==e&&(Ic(this),this.da.gq=e,this.v(),this.g("formatting",t,e))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(e){var t=this.maxLines;t!==e&&(e=Math.floor(e),0>=e&&rn(e,"> 0",vo,"maxLines"),Ic(this),this.da.Jq=e,this.v(),this.g("maxLines",t,e))}},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(e){var t=this.Gm;t!==e&&(this.Gm=e,this.g("choices",t,e))}}});var j0=null,G0=null,Bg=new qt(vo,"None",0),My=new qt(vo,"WrapFit",1),_g=new qt(vo,"WrapDesiredSize",2),Oy=new qt(vo,"WrapBreakAll",3),zg=new qt(vo,"OverflowClip",0),W0=new qt(vo,"OverflowEllipsis",1),Cp=new qt(vo,"FormatTrim",0),Ly=new qt(vo,"FormatNone",0),Rb=/[ \u200b\u00ad]/,Ug=new ue,Ry=0,V0=new ue,Hg=0,Tp="...",Dy="",Pl=null,K0=!1;vo.className="TextBlock";function $g(){this.nc=!1,this.Hd=null,this.Xf=mn,this.gq=Cp,this.Jq=1/0,this.$q=zg,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=Xo,this.$r=_g}$g.prototype.copy=function(){var e=new $g;return e.Hd=this.Hd,e.Xf=this.Xf,e.gq=this.gq,e.Jq=this.Jq,e.$q=this.$q,e.Dr=this.Dr,e.Er=this.Er,e.Or=this.Or,e.Pr=this.Pr,e.Qr=this.Qr,e.vj=this.vj,e.Yr=this.Yr,e.$r=this.$r,e},vo.getEllipsis=function(){return Tp},vo.setEllipsis=function(e){Tp=e,V0=new ue,Hg=0},vo.getBaseline=function(){return j0},vo.setBaseline=function(e){j0=e},vo.getUnderline=function(){return G0},vo.setUnderline=function(e){G0=e},vo.isValidFont=function(e){if(K0||(Pl=ds?new zu(null).context:null,K0=!0),Pl===null)return!0;var t=Pl.font;if(e===t||e==="10px sans-serif")return!0;Pl.font="10px sans-serif",Pl.font=e;var n=Pl.font;if(n!=="10px sans-serif")return Pl.font=t,!0;Pl.font="19px serif";var i=Pl.font;return Pl.font=e,n=Pl.font,Pl.font=t,n!==i},vo.FormatNone=Ly,vo.FormatTrim=Cp,vo.None=Bg,vo.OverflowClip=zg,vo.OverflowEllipsis=W0,vo.WrapBreakAll=Oy,vo.WrapDesiredSize=_g,vo.WrapFit=My;function Uc(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Uc.prototype.copy=function(){var e=new Uc;return e.Tk=this.Tk,e.u=this.u,e.j=this.j,e.F=this.F,e.o=this.o,e},Uc.className="GradElementSettings";function Fl(e,t){nt.call(this),this.Eg=null,this.qo="",this.Xg=xn,this.Nk=Sn,this.Zg=this.Hd=null,this.Mk=vr,this.Xf=mn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof e=="string"?this.source=e:e&&Object.assign(this,e),t&&Object.assign(this,t)}var Nf;fi(Fl,nt),Fl.prototype.cloneProtected=function(e){nt.prototype.cloneProtected.call(this,e),e.qo=this.qo,e.element=this.Eg,e.Xg=this.Xg.J(),e.Nk=this.Nk,e.Xf=this.Xf,e.Hd=this.Hd,e.Zg=this.Zg,e.Mk=this.Mk.J(),e.en=this.en,e.rl=this.rl},Fl.prototype.qb=function(e){e===mn||e===di||e===Sr?this.imageStretch=e:nt.prototype.qb.call(this,e)},Fl.prototype.toString=function(){return"Picture("+this.source+")#"+It(this)};function Af(e){e===void 0&&(e=""),e!==""?Nf[e]&&(delete Nf[e],Y0--):(Nf=new ue,Y0=0)}function Py(e,t){t.qy||(t.Fq=function(n){t.sq=!0,t.ln=!1;var i=t.Bg.copy();if(i!=null){for(i=i.iterator;i.next();){var r=i.value;r.N();var o=t.getAttribute("src")||"",s=r.Og.I(o);if(s!==null)for(var l=s.length,u=0;u<l;u++)o=s[u],r.Xn.add(o),o.Uc=!0,r.$b(),t.hn&&(t.eu===void 0&&(t.eu=n),o.Zg!==null&&o.Zg(o,n))}t.Bg.clear()}e.desiredSize.w()||(Bs(e,!1),e.v())},t.Yp=function(n){t.ln=n;var i=t.Bg.copy();if(i!=null){for(i=i.iterator;i.next();){var r=i.value,o=t.getAttribute("src")||"",s=r.Og.I(o);if(s!==null){r=s.length,o=jt();for(var l=0;l<r;l++)o.push(s[l]);if(t.hn)for(l=0;l<r;l++)s=o[l],s.Hd!==null&&s.Hd(s,n);gn(o)}}t.Bg.clear()}},t.addEventListener("load",t.Fq),t.addEventListener("error",t.Yp),t.qy=!0)}Fl.prototype.hA=function(){if(this.source!==""){Af(this.source);var e=this.source;this.source="",this.source=e}},Fl.prototype.redraw=function(){this.N(),this.Uc=!0},Fl.prototype.hh=function(e,t){var n=this.Eg;if(n!==null){var i=n.getAttribute("src");if(!(n instanceof HTMLImageElement&&(i===null||i==="")||n.ln instanceof Event&&e instanceof yd)){var r=e instanceof tu;i=this.naturalBounds;var o=0,s=0,l=this.qn,u=l?+n.width:n.naturalWidth;if(l=l?+n.height:n.naturalHeight,u===void 0&&n.videoWidth&&(u=n.videoWidth),l===void 0&&n.videoHeight&&(l=n.videoHeight),u=u||i.width,l=l||i.height,u!==0&&l!==0){var f=u,p=l;this.sourceRect.w()&&(o=this.Xg.x,s=this.Xg.y,u=this.Xg.width,l=this.Xg.height);var x=u,N=l,O=this.Nk,F=this.Mk;switch(O){case mn:if(this.sourceRect.w())break;x>=i.width&&(o=o+F.offsetX+(x*F.x-i.width*F.x)),N>=i.height&&(s=s+F.offsetY+(N*F.y-i.height*F.y)),u=Math.min(i.width,x),l=Math.min(i.height,N);break;case Sn:x=i.width,N=i.height;break;case di:case Sr:O===di?(O=Math.min(i.height/N,i.width/x),x*=O,N*=O):O===Sr&&(O=Math.max(i.height/N,i.width/x),x*=O,N*=O,x>=i.width&&(o=(o+F.offsetX+(x*F.x-i.width*F.x)/x)*u),N>=i.height&&(s=(s+F.offsetY+(N*F.y-i.height*F.y)/N)*l),u*=1/(x/i.width),l*=1/(N/i.height),x=i.width,N=i.height)}O=this.Df()*t.scale;var K=x*O*N*O,ye=u*l/K,ae=n.__goCache;O=null;var Oe=Db;if(!r){if(n.sq&&ae!==void 0&&4<K&&ye>Oe*Oe)for(ae.gi===null&&(By(ae,4,f,p,n),By(ae,16,f,p,n)),r=ae.gi,f=r.length,p=0;p<f&&r[p].ratio*r[p].ratio<ye;p++)O=r[p];if(!t.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{r=new zu(null).context;try{r.drawImage(this.Eg,0,0)}catch(Fe){this.en=!1}try{r.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(Fe){this.vl=!0}}if(this.vl)return}}switch(r=x<i.width?F.offsetX+(i.width*F.x-x*F.x):0,F=N<i.height?F.offsetY+(i.height*F.y-N*F.y):0,this.flip){case Mr:e.translate(Math.min(i.width,x),0),e.scale(-1,1);break;case ar:e.translate(0,Math.min(i.height,N)),e.scale(1,-1);break;case Qr:e.translate(Math.min(i.width,x),Math.min(i.height,N)),e.scale(-1,-1)}if(e.yc(),t.Gf("pictureRatioOptimization")&&!t.$i&&ae!==void 0&&O!==null&&O.ratio!==1){e.save(),t=O.ratio;try{e.drawImage(O.source,o/t,s/t,Math.min(O.source.width,u/t),Math.min(O.source.height,l/t),r,F,Math.min(i.width,x),Math.min(i.height,N)),e instanceof tu&&(this.bt=[o/t,s/t,Math.min(O.source.width,u/t),Math.min(O.source.height,l/t),r,F,Math.min(i.width,x),Math.min(i.height,N)])}catch(Fe){this.en=!1}e.restore()}else try{e.drawImage(n,o,s,u,l,r,F,Math.min(i.width,x),Math.min(i.height,N)),e instanceof tu&&(this.bt=[o,s,u,l,r,F,Math.min(i.width,x),Math.min(i.height,N)])}catch(Fe){this.en=!1}switch(this.flip){case Mr:e.scale(-1,1),e.translate(-Math.min(i.width,x),0);break;case ar:e.scale(1,-1),e.translate(0,-Math.min(i.height,N));break;case Qr:e.scale(-1,-1),e.translate(-Math.min(i.width,x),-Math.min(i.height,N))}}}}},Fl.prototype.Wl=function(e,t,n,i){var r=this.desiredSize,o=Dl(this,!0),s=this.Eg,l=this.qn,u=0,f=0;(l||!this.al&&s&&s.complete)&&(this.al=!0),s===null?(isFinite(r.width)||(e=0),isFinite(r.height)||(t=0)):(u=l?+s.width:s.naturalWidth,f=l?+s.height:s.naturalHeight),isFinite(r.width)||o===Sn||o===bi?(isFinite(e)||(this.sourceRect.w()?e=this.sourceRect.width:s!==null&&(e=u)),n=0):s!==null&&this.al!==!1&&(e=this.sourceRect.w()?this.sourceRect.width:u),isFinite(r.height)||o===Sn||o===Mi?(isFinite(t)||(this.sourceRect.w()?t=this.sourceRect.height:s!==null&&(t=f)),i=0):s!==null&&this.al!==!1&&(t=this.sourceRect.w()?this.sourceRect.height:f),isFinite(r.width)&&(e=r.width),isFinite(r.height)&&(t=r.height),r=this.maxSize,o=this.minSize,n=Math.max(n||0,o.width),i=Math.max(i||0,o.height),e=Math.min(r.width,e),t=Math.min(r.height,t),e=Math.max(n,e),t=Math.max(i,t),s===null||s.complete||(isFinite(e)||(e=0),isFinite(t)||(t=0)),Ds(this.dc,e,t),this.Ge(0,0,e,t)},Fl.prototype.eh=function(e,t,n,i){rl(this,e,t,n,i)},at.Object.defineProperties(Fl.prototype,{element:{get:function(){return this.Eg},set:function(e){var t=this.Eg;if(this.Uc=!0,t!==e){this.qn=e instanceof HTMLCanvasElement;var n=e instanceof HTMLImageElement;e===null||n||e instanceof HTMLVideoElement||this.qn||ut("Picture.element must be an instance of Image, Canvas, or Video, not: "+e);var i=this.diagram;i!==null&&rp(i,this),this.Eg=e,e!==null&&n&&e.Bg===void 0&&(e.Bg=new Yt),i!==null&&n&&zh(i,this),e!==null&&(this.qn||e.complete===!0?(e.hn&&(e.ln instanceof Event&&this.Hd!==null?this.Hd(this,e.ln):e.sq===!0&&!e.ln&&this.Zg!==null&&e.eu&&this.Zg(this,e.eu)),e.sq=!0,this.desiredSize.w()||(Bs(this,!1),this.v())):n&&Py(this,e)),this.g("element",t,e),this.N()}}},source:{get:function(){return this.qo},set:function(e){var t=this.qo;if(t!==e){this.Uc=!0,this.qo=e;var n=Nf;if(ds){var i=null;if(n[e]!==void 0)i=n[e];else if(e!==""){30<Y0&&(Af(),n=Nf),i=Kn("img"),i.hn=!0,Py(this,i);var r=this.rl;r!==null&&(i.crossOrigin=r(this)),i.src=e,n[e]=i,Y0++}this.element=i,i!==null&&i.__goCache===void 0&&(i.__goCache=new Fy),this.v(),this.N()}this.g("source",t,e)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(e){if(this.rl!==e&&(this.rl=e,this.element!==null)){var t=this.element.getAttribute("src");e===null&&typeof t=="string"?this.element.crossOrigin=null:e!==null&&(this.element.crossOrigin=e(this)),this.element.src=t}}},sourceRect:{get:function(){return this.Xg},set:function(e){var t=this.Xg;t.D(e)||(this.Xg=e=e.J(),this.N(),this.g("sourceRect",t,e))}},imageStretch:{get:function(){return this.Nk},set:function(e){var t=this.Nk;t!==e&&(this.Nk=e,this.N(),this.g("imageStretch",t,e))}},flip:{get:function(){return this.Xf},set:function(e){var t=this.Xf;t!==e&&(this.Xf=e,this.N(),this.g("flip",t,e))}},imageAlignment:{get:function(){return this.Mk},set:function(e){var t=this.Mk;t.D(e)||(this.Mk=e=e.J(),this.N(),this.g("imageAlignment",t,e))}},errorFunction:{get:function(){return this.Hd},set:function(e){var t=this.Hd;t!==e&&(this.Hd=e,this.g("errorFunction",t,e))}},successFunction:{get:function(){return this.Zg},set:function(e){var t=this.Zg;t!==e&&(this.Zg=e,this.g("successFunction",t,e))}},naturalBounds:{get:function(){return this.dc}}}),Fl.prototype.redraw=Fl.prototype.redraw,Fl.prototype.reloadSource=Fl.prototype.hA;var Y0=0,Db=4;Fl.className="Picture",Nf=new ue,Fl.clearCache=Af;function Fy(){this.gi=null}function By(e,t,n,i,r){e.gi===null&&(e.gi=[]);var o=new zu(null),s=o.context,l=1/t;o.width=n/t,o.height=i/t,o.width!==0&&o.height!==0&&(t=new _y(o.Oa,t),n=1,0<e.gi.length&&(n=e.gi[e.gi.length-1],r=n.source,n=n.ratio),s.setTransform(l*n,0,0,l*n,0,0),s.yc(),s.drawImage(r,0,0),e.gi.push(t))}Fy.className="PictureCacheArray";function _y(e,t){this.source=e,this.ratio=t}_y.className="PictureCacheInstance";function kf(){this.os=new An,this.mc=null}kf.prototype.reset=function(e){e!==null?(e.ka(),this.os=e,e.figures.clear()):this.os=new An,this.mc=null};function If(e,t,n,i,r,o){e.mc=new us,e.mc.startX=t,e.mc.startY=n,e.mc.isFilled=i,e.mc.isEvenOdd=o||!1,e.os.figures.add(e.mc),r!==void 0&&(e.mc.isShadowed=r)}function Pb(e){var t=e.mc.segments.length;0<t&&e.mc.segments.M(t-1).close()}kf.prototype.moveTo=function(e,t,n){n===void 0&&(n=!1);var i=new xr(Wo);i.endX=e,i.endY=t,n&&i.close(),this.mc.segments.add(i)},kf.prototype.lineTo=function(e,t,n){n===void 0&&(n=!1);var i=new xr(Gr);i.endX=e,i.endY=t,n&&i.close(),this.mc.segments.add(i)};function bh(e,t,n,i,r,o,s){var l;l===void 0&&(l=!1);var u=new xr(Ts);u.point1X=t,u.point1Y=n,u.point2X=i,u.point2Y=r,u.endX=o,u.endY=s,l&&u.close(),e.mc.segments.add(u)}function Z0(e,t,n,i,r){var o;o===void 0&&(o=!1);var s=new xr(Na);s.point1X=t,s.point1Y=n,s.endX=i,s.endY=r,o&&s.close(),e.mc.segments.add(s)}kf.prototype.arcTo=function(e,t,n,i,r,o,s){o===void 0&&(o=0),s===void 0&&(s=!1);var l=new xr(_o);l.startAngle=e,l.sweepAngle=t,l.centerX=n,l.centerY=i,l.radiusX=r,l.radiusY=o!==0?o:r,s&&l.close(),this.mc.segments.add(l)};function Fb(e,t,n,i,r,o,s,l){var u;u===void 0&&(u=!1),t=new xr(Ma,s,l,t,n,i,r,o),u&&t.close(),e.mc.segments.add(t)}function zy(e){var t=X0;return t!==null?(X0=null,t.reset(e),t):(t=new kf,t.reset(e),t)}var X0=null;kf.className="StreamGeometryContext";function qa(e,t){var n=e.toLowerCase(),i=Ke.Ze;i[e]=t,i[n]=e}qa("Rectangle",function(e,t,n){e="r"+t+","+n;var i=Ke.Mf[e];return i!==void 0||(i=new An(An.u),i.endX=t,i.endY=n,Ke.Nf<Ke.vm&&(Ke.Mf[e]=i,Ke.Nf++)),i}),qa("Square",function(e,t,n){e="s"+t+","+n;var i=Ke.Mf[e];return i!==void 0||(i=new An(An.u),i.endX=t,i.endY=n,i.defaultStretch=di,Ke.Nf<Ke.vm&&(Ke.Mf[e]=i,Ke.Nf++)),i}),qa("RoundedRectangle",function(e,t,n){e=e?e.parameter1:NaN,(isNaN(e)||0>e)&&(e=5),e=Math.min(e,t/3),e=Math.min(e,n/3);var i="rr"+t+","+n+","+e,r=Ke.Mf[i];if(r!==void 0)return r;var o=e*Ke.wg;return r=new An().add(new us(e,0,!0).add(new xr(Gr,t-e,0)).add(new xr(Ts,t,e,t-o,0,t,o)).add(new xr(Gr,t,n-e)).add(new xr(Ts,t-e,n,t,n-o,t-o,n)).add(new xr(Gr,e,n)).add(new xr(Ts,0,n-e,o,n,0,n-o)).add(new xr(Gr,0,e)).add(new xr(Ts,e,0,0,o,o,0).close())),1<o&&(r.spot1=new ui(0,0,o,o),r.spot2=new ui(1,1,-o,-o)),Ke.Nf<Ke.vm&&(Ke.Mf[i]=r,Ke.Nf++),r}),qa("Border","RoundedRectangle"),qa("Ellipse",function(e,t,n){e="e"+t+","+n;var i=Ke.Mf[e];return i!==void 0||(i=new An(An.F),i.endX=t,i.endY=n,i.spot1=$l,i.spot2=$a,Ke.Nf<Ke.vm&&(Ke.Mf[e]=i,Ke.Nf++)),i}),qa("Circle",function(e,t,n){e="c"+t+","+n;var i=Ke.Mf[e];return i!==void 0||(i=new An(An.F),i.endX=t,i.endY=n,i.spot1=$l,i.spot2=$a,i.defaultStretch=di,Ke.Nf<Ke.vm&&(Ke.Mf[e]=i,Ke.Nf++)),i}),qa("TriangleRight",function(e,t,n){return new An().add(new us(0,0).add(new xr(Gr,t,.5*n)).add(new xr(Gr,0,n).close())).pm(0,.25,.5,.75)}),qa("TriangleDown",function(e,t,n){return new An().add(new us(0,0).add(new xr(Gr,t,0)).add(new xr(Gr,.5*t,n).close())).pm(.25,0,.75,.5)}),qa("TriangleLeft",function(e,t,n){return new An().add(new us(t,n).add(new xr(Gr,0,.5*n)).add(new xr(Gr,t,0).close())).pm(.5,.25,1,.75)}),qa("TriangleUp",function(e,t,n){return new An().add(new us(t,n).add(new xr(Gr,0,n)).add(new xr(Gr,.5*t,0).close())).pm(.25,.5,.75,1)}),qa("Triangle","TriangleUp"),qa("Diamond",function(e,t,n){return new An().add(new us(.5*t,0).add(new xr(Gr,0,.5*n)).add(new xr(Gr,.5*t,n)).add(new xr(Gr,t,.5*n).close())).pm(.25,.25,.75,.75)}),qa("LineH",function(e,t,n){return e=new An(An.j),e.startX=0,e.startY=n/2,e.endX=t,e.endY=n/2,e}),qa("LineV",function(e,t,n){return e=new An(An.j),e.startX=t/2,e.startY=0,e.endX=t/2,e.endY=n,e}),qa("None","Rectangle"),qa("BarH","Rectangle"),qa("BarV","Rectangle"),qa("MinusLine","LineH"),qa("PlusLine",function(e,t,n){return new An().add(new us(0,n/2,!1).add(new xr(Gr,t,n/2)).add(new xr(Wo,t/2,0)).add(new xr(Gr,t/2,n)))}),qa("XLine",function(e,t,n){return new An().add(new us(0,n,!1).add(new xr(Gr,t,0)).add(new xr(Wo,0,0)).add(new xr(Gr,t,n)))}),qa("LineRight",function(e,t,n){return new An().add(new us(.25*t,0,!1).add(new xr(Gr,.75*t,.5*n)).add(new xr(Gr,.25*t,n)))}),qa("LineDown",function(e,t,n){return new An().add(new us(0,.25*n,!1).add(new xr(Gr,.5*t,.75*n)).add(new xr(Gr,t,.25*n)))}),qa("LineLeft",function(e,t,n){return new An().add(new us(.75*t,0,!1).add(new xr(Gr,.25*t,.5*n)).add(new xr(Gr,.75*t,n)))}),qa("LineUp",function(e,t,n){return new An().add(new us(0,.75*n,!1).add(new xr(Gr,.5*t,.25*n)).add(new xr(Gr,t,.75*n)))}),Ke.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 jg(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=vs,this.ir=null,this.jr="",this.lr=Lr,this.Gq="",this.Hq=Yo,this.Pq=to,this.Kq=mr,this.Up=null,this.Cq=127,this.zr=Xr,this.yr="gray",this.Vg=4}jg.prototype.copy=function(){var e=new jg;return e.zq=this.zq,e.Kp=this.Kp,e.tr=this.tr,e.vr=this.vr,e.ur=this.ur,e.oq=this.oq,e.fr=this.fr,e.hr=this.hr,e.gr=this.gr.J(),e.ir=this.ir,e.jr=this.jr,e.lr=this.lr.J(),e.Gq=this.Gq,e.Hq=this.Hq.J(),e.Pq=this.Pq.J(),e.Kq=this.Kq.J(),e.Up=this.Up,e.Cq=this.Cq,e.zr=this.zr.J(),e.yr=this.yr,e.Vg=this.Vg,e};function Ei(e,t){e===void 0||e instanceof Gs||typeof e=="string"?wn.call(this,e):(wn.call(this),e&&(t=e)),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 ce(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new Ht,this.Rh=null,this.ag=NaN,t&&Object.assign(this,t)}fi(Ei,wn),Ei.prototype.cloneProtected=function(e){wn.prototype.cloneProtected.call(this,e),e.G=this.G&-4097|49152,e.Tf=this.Tf,this.P!==null&&(e.P=this.P.nc?this.P:this.P.copy()),e.Jg=this.Jg,e.Qf=null,e.ec=this.ec,e.ke.assign(this.ke),e.Ao=this.Ao},_=Ei.prototype,_.Af=function(e){wn.prototype.Af.call(this,e),e.oh(),e.Ug=null,e.nf=null,e.Rh=null},_.toString=function(){var e=fn(this.constructor)+"#"+It(this);return this.data!==null&&(e+="("+En(this.data)+")"),e};function Bl(e){e.P===null?e.P=new jg:e.P.nc&&(e.P=e.P.copy())}_.th=function(){wn.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},_.gk=function(e,t,n,i,r,o,s){var l=this.diagram;l!==null&&(e===zo&&t==="elements"?r instanceof wn?bd(r,function(u){gv(l.partManager,u),hd(l,u)}):zh(l,r):e===os&&t==="elements"&&(r instanceof wn?bd(r,function(u){vv(l.partManager,u,l)}):rp(l,r)),l.cb(e,t,n,i,r,o,s))},_.La=function(e){if(wn.prototype.La.call(this,e),this.data!==null){for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i];r instanceof wn&&bd(r,function(o){o.data!==null&&o.La()})}for(t=this.adornments;t.next();)t.value.La(e)}},Ei.prototype.updateRelationshipsFromData=function(){var e;this.data!==null&&((e=this.diagram)===null||e===void 0||e.partManager.updateRelationshipsFromData(this))},Ei.prototype.Pj=function(e){var t=this.Qf;return t===null?null:t.I(e)},Ei.prototype.bh=function(e,t){if(t!==null){var n=null,i=this.Qf;if(i!==null&&(n=i.I(e)),n!==t){if(n!==null){var r=n.diagram;r!==null&&r.remove(n)}i===null&&(this.Qf=i=new ii),t.Tf!==e&&(t.category=e),i.add(e,t),e=this.diagram,e!==null&&(e.add(t),e=t.adornedObject,e!==null&&(e=e.ih(),e!==null&&(t.data=e.data)))}}},Ei.prototype.Jf=function(e){var t=this.Qf;if(t!==null){var n=t.I(e);if(n!==null){var i=n.diagram;i!==null&&i.remove(n)}t.remove(e),t.count===0&&(this.Qf=null)}},Ei.prototype.Ej=function(){var e=this.Qf;if(e!==null){var t=jt();for(e=e.iterator;e.next();)t.push(e.key);e=t.length;for(var n=0;n<e;n++)this.Jf(t[n]);gn(t)}},Ei.prototype.updateAdornments=function(){var e=this.diagram;if(e!==null){for(var t=this.adornments;t.next();){var n=t.value;n.v(),n.placeholder&&n.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(t=this.selectionObject,t!==null&&this.actualBounds.w()&&this.isVisible()&&t.Ed()&&t.actualBounds.w())){if(n=this.Pj("Selection"),n===null){if(n=this.selectionAdornmentTemplate,n===null&&(n=this.ph()?e.linkSelectionAdornmentTemplate:this instanceof Xi?e.groupSelectionAdornmentTemplate:e.nodeSelectionAdornmentTemplate),!(n instanceof Fr))break e;Uu(n),n=n.copy(),n!==null&&(this.ph()&&this.selectionObject===this.path&&(n.type=wn.Link),n.adornedObject=t)}if(n!==null){n.type===wn.Link&&n.v(),this.bh("Selection",n);break e}}this.Jf("Selection")}for(Bb(this,e),t=this.adornments;t.next();)t.value.La()}},Ei.prototype.Wb=function(){var e=this.diagram;e!==null&&(e.vd=!0,!(this.G&16384)&&(this.G|=16384))};function Gg(e){e.G&16384&&(e.updateAdornments(),e.G&=-16385)}function Bb(e,t){t.toolManager.mouseDownTools.each(function(n){n.isEnabled&&n.updateAdornments(e)}),t.toolManager.updateAdornments(e)}function Q0(e){if(jh(e)===!1){Vg(e,!0),e.Uk();var t=e.diagram;t!==null&&(t.De.add(e),t.$b())}}function Uy(e){if(e.G|=2097152,jh(e)!==!1){var t=e.position,n=e.location;n.w()&&t.w()||jy(e,t,n),n=e.Ib;var i=Ht.alloc().assign(n);n.ka(),n.x=t.x,n.y=t.y,n.freeze(),e.Xl(i,n),Ht.free(i),Vg(e,!1)}}Ei.prototype.Ge=function(e,t,n,i){var r=this.uc;r.h(e,t,n,i),this.Lb===null&&(this.Lb=new er);var o=this.Lb;o.reset(),this.no(o,e,t,n,i),this.Lb=o,o.ws()||o.pp(r)},Ei.prototype.no=function(e,t,n,i,r){if(this.Ca!==1&&e.scale(this.Ca),this.Kb!==0){var o=vr;this.locationSpot.sb()&&(o=this.locationSpot);var s=ce.alloc();if(this.locationObject!==this)for(t=this.locationObject,n=t.naturalBounds,s.yi(n.x,n.y,n.width,n.height,o),t.Lb!==null&&t.Lb.Ga(s),s.offset(-t.measuredBounds.x,-t.measuredBounds.y),o=t.panel;o!==null&&o!==this;)o.Lb!==null&&o.Lb.Ga(s),s.offset(-o.measuredBounds.x,-o.measuredBounds.y),o=o.panel;else s.yi(t,n,i,r,o);e.rotate(this.Kb,s.x,s.y),ce.free(s)}},Ei.prototype.move=function(e,t){t===!0?this.location=e:this.position=e},Ei.prototype.moveTo=function(e,t,n){e=ce.allocAt(e,t),this.move(e,n),ce.free(e)},Ei.prototype.isVisible=function(){if(!this.visible)return!1;var e=this.layer;if(e!==null){if(!e.visible)return!1;if(e=e.diagram,e!==null&&e.animationManager.fv(this))return!0}return e=this.containingGroup,!!(e===null||e.isSubGraphExpanded&&e.isVisible())},Ei.prototype.Zb=function(e){var t=this.diagram;e?(this.C(4),this.Wb(),t!==null&&t.De.add(this)):(this.C(8),this.Ej()),this.oh(),t!==null&&(t.Ya(),t.N())},Ei.prototype.fb=function(e){if(this.name===e)return this;var t=this.Rh;if(t===null&&(this.Rh=t=new ii),t.I(e)!==null)return t.I(e);var n=wn.prototype.fb.call(this,e);return n!==null?(t.set(e,n),n):(t.set(e,null),null)};function xh(e,t,n,i){i===void 0&&(i=new ce),n=n.Mc()?vr:n;var r=t.naturalBounds;if(i.h(r.width*n.x+n.offsetX,r.height*n.y+n.offsetY),t===null||t===e)return i;for(t.transform.Ga(i),t=t.panel;t!==null&&t!==e;)t.transform.Ga(i),t=t.panel;return e.Lb!==null&&e.Lb.Ga(i),i.offset(-e.uc.x,-e.uc.y),i}Ei.prototype.mi=function(e){return e===void 0&&(e=new Ht),e.assign(this.actualBounds)},Ei.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function Hy(e){var t=ce.alloc(),n=e.locationObject,i=n.naturalBounds,r=n instanceof nr?n.strokeWidth:0;if(t.yi(0,0,i.width+r,i.height+r,e.locationSpot),n!==e)for(t.offset(-r/2,-r/2),n.transform.Ga(t),n=n.panel;n!==null&&n!==e;)n.transform.Ga(t),n=n.panel;return e.Lb!==null&&e.Lb.Ga(t),t.offset(-e.uc.x,-e.uc.y),t}function Ed(e,t){var n=e.py;isNaN(e.ag)&&(e.ag=yy(e));var i=e.ag,r=2*i;if(!e.isShadowed)return n.h(t.x-1-i,t.y-1-i,t.width+2+r,t.height+2+r),n;i=t.x,r=t.y;var o=t.width;t=t.height;var s=e.shadowBlur;return e=e.shadowOffset,o+=s,t+=s,i-=s/2,r-=s/2,0<e.x?o+=e.x:(i+=e.x,o-=e.x),0<e.y?t+=e.y:(r+=e.y,t-=e.y),n.h(i-1,r-1,o+2,t+2),n}Ei.prototype.arrange=function(){if(fl(this)===!1)Uy(this);else{Fc(this,!1);var e=this.Ib,t=Ht.alloc();t.assign(e);var n=Gh(this);this.eh(0,0,this.uc.width,this.uc.height);var i=this.position;jy(this,i,this.location),e.ka(),e.x=i.x,e.y=i.y,e.freeze(),this.Xl(t,e),t.D(e)?this.Fd(n):!this.Zc()||Ke.B(t.width,e.width)&&Ke.B(t.height,e.height)||0<=this.vw&&this.C(16),Ht.free(t),Vg(this,!1)}},_=Ei.prototype,_.Xl=function(e,t){var n=this.diagram;if(n!==null){var i=!1;if(n.Zi===!1&&e.w()){var r=Ht.alloc();r.assign(n.documentBounds),r.Fv(n.padding),e.x>r.x&&e.y>r.y&&e.right<r.right&&e.bottom<r.bottom&&t.x>r.x&&t.y>r.y&&t.right<r.right&&t.bottom<r.bottom&&(i=!0),Ht.free(r)}!(this.G&65536)&&e.D(t)||Vy(this,i,n),n.N(),!e.w()&&!t.w()||Jr(e,t)||(this instanceof Vn&&!n.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},_.zv=function(e,t,n){if(this.ph()||!e.w())return!1;var i=this.diagram;return i!==null&&$y(this,i,e,t,n),this.pa=e,this.G&=-2097153,!this.ke.w()||i!==null&&!i.animationManager.isTicking&&i.undoManager.isUndoingRedoing||(i=this.ke,this.ke=new ce(i.x+(e.x-t),i.y+(e.y-n)),this.g("location",i,this.ke.copy())),jh(this)===!1&&fl(this)===!1&&(Q0(this),Uy(this)),!0};function $y(e,t,n,i,r){t===null||e instanceof Fr||(t=t.animationManager,t.zb&&fu(t,e,new ce(i,r),n))}_.mm=function(e,t,n){var i=this.ke,r=this.pa;if(n){if(i.x===e&&i.y===t)return;jh(this)||fl(this)?r.h(NaN,NaN):r.h(r.x+e-i.x,r.y+t-i.y),i.h(e,t)}else{if(r.x===e&&r.y===t)return;i.h(i.x+e-r.x,i.y+t-r.y),r.h(e,t)}Q0(this)},_.Av=function(){this.G&=-2097153,Q0(this)};function jy(e,t,n){var i=Hy(e),r=e.diagram,o=n.w(),s=t.w();o&&s?e.G&2097152?Gy(e,t,n,r,i):Wy(e,t,n,r,i):o?Gy(e,t,n,r,i):s&&Wy(e,t,n,r,i),e.G|=2097152,ce.free(i),e.Uk()}function Gy(e,t,n,i,r){var o=t.x,s=t.y;t.h(n.x-r.x,n.y-r.y),i!==null&&(n=i.animationManager,(i=n.defaultAnimation.isAnimating)||!n.zb||e instanceof Fr||fu(n,e,new ce(o,s),t),i||t.x===o&&t.y===s||e.g("position",new ce(o,s),t.copy()))}function Wy(e,t,n,i,r){var o=n.copy();n.h(t.x+r.x,t.y+r.y),n.D(o)||i===null||e.g("location",o,n.copy())}function Vy(e,t,n){Kg(e,!1),e instanceof Vn&&fh(n,e),e.layer.isTemporary||t||n.Ya(),t=e.Ib;var i=n.viewportBounds;i.w()?Gh(e)?(bo(t,i)||e.Fd(!1),e.updateAdornments()):e.isVisible()&&t.Yc(i)?(e.Fd(!0),e.updateAdornments()):e.Wb():n.vd=!0}_.si=function(){return!0},_.Zc=function(){return!0},_.ph=function(){return!1},_.Dd=function(){return!0};function Wg(e,t,n,i){t.constructor===e.constructor||Zy||(Zy=!0,Si('Should not change the class of the Part when changing category from "'+n+'" to "'+i+'"'),Si(" Old class: "+fn(e.constructor)+", new class: "+fn(t.constructor)+", part: "+e.toString())),e.Ej();var r=e.data;n=e.layerName;var o=e.isSelected,s=e.isHighlighted,l=!0,u=!0,f=!1;e instanceof Vn&&(l=e.isTreeLeaf,u=e.isTreeExpanded,f=e.wasTreeExpanded),t.Af(e),t.cloneProtected(e),e.Tf=i,e.svg!==null&&(e.svg.remove(),e.svg=null,e.Uc=!0),e.v(),e.N(),t=e.diagram,i=!0,t!==null&&(i=t.skipsUndoManager,t.skipsUndoManager=!0),e.ub=r,e.G=o?e.G|4096:e.G&-4097,e.G=s?e.G|524288:e.G&-524289,e instanceof Vn&&(e.U=l?e.U|4:e.U&-5,e.U=u?e.U|1:e.U&-2,e.U=f?e.U|2:e.U&-3),r!==null&&e.La(),r=e.layerName,r!==n&&(e.Jg=n,e.layerName=r),t!==null&&(t.skipsUndoManager=i),e.Zc()&&e.C(64)}Ei.prototype.canCopy=function(){if(!this.copyable)return!1;var e=this.layer;return e===null?!0:e.allowCopy?(e=e.diagram,e===null?!0:!!e.allowCopy):!1},Ei.prototype.canDelete=function(){if(!this.deletable)return!1;var e=this.layer;return e===null?!0:e.allowDelete?(e=e.diagram,e===null?!0:!!e.allowDelete):!1},Ei.prototype.canEdit=function(){if(!this.textEditable)return!1;var e=this.layer;return e===null?!0:e.allowTextEdit?(e=e.diagram,e===null?!0:!!e.allowTextEdit):!1},Ei.prototype.canGroup=function(){if(!this.groupable)return!1;var e=this.layer;return e===null?!0:e.allowGroup?(e=e.diagram,e===null?!0:!!e.allowGroup):!1},Ei.prototype.canMove=function(){if(!this.movable)return!1;var e=this.layer;return e===null?!0:e.allowMove?(e=e.diagram,e===null?!0:!!e.allowMove):!1},Ei.prototype.canReshape=function(){if(!this.reshapable)return!1;var e=this.layer;return e===null?!0:e.allowReshape?(e=e.diagram,e===null?!0:!!e.allowReshape):!1},Ei.prototype.canResize=function(){if(!this.resizable)return!1;var e=this.layer;return e===null?!0:e.allowResize?(e=e.diagram,e===null?!0:!!e.allowResize):!1},Ei.prototype.canRotate=function(){if(!this.rotatable)return!1;var e=this.layer;return e===null?!0:e.allowRotate?(e=e.diagram,e===null?!0:!!e.allowRotate):!1},Ei.prototype.canSelect=function(){if(!this.selectable)return!1;var e=this.layer;return e===null?!0:e.allowSelect?(e=e.diagram,e===null?!0:!!e.allowSelect):!1};function jh(e){return(e.G&32768)!==0}function Vg(e,t){e.G=t?e.G|32768:e.G&-32769}function Kg(e,t){e.G=t?e.G|65536:e.G&-65537}function Gh(e){return(e.G&131072)!==0}_=Ei.prototype,_.Fd=function(e){this.G=e?this.G|131072:this.G&-131073};function J0(e,t){e.G=t?e.G|1048576:e.G&-1048577}_.oh=function(){var e=this.containingGroup;e!==null&&(e.v(),e.placeholder!==null&&e.placeholder.v(),e.Bd())},_.N=function(){var e=this.diagram;e!==null&&!fl(this)&&!jh(this)&&this.isVisible()&&this.Ib.w()&&e.N(Ed(this,this.Ib))},_.v=function(){wn.prototype.v.call(this);var e=this.diagram;e!==null&&(e.De.add(this),this instanceof Vn&&this.labeledLink!==null&&dl(this.labeledLink),e.$b(!0))},_.Vo=function(e){e||(e=this.Ah,e!==null&&qg(e,this))},_.Wo=function(e){e||(e=this.Ah,e!==null&&ev(e,this))},_.Lj=function(){var e=this.data;if(e!==null){var t=this.diagram;t!==null&&(t=t.model,t!==null&&t.cm(e))}},_.oz=function(){return Yg(this,this)};function Yg(e,t){var n=t.containingGroup;return n!==null?1+Yg(e,n):t instanceof Vn&&(t=t.labeledLink,t!==null)?Yg(e,t):0}_.sz=function(){return Ky(this,this)};function Ky(e,t){var n=t.containingGroup;return n!==null||t instanceof Vn&&(n=t.labeledLink,n!==null)?Ky(e,n):t}_.Td=function(e){return e instanceof Xi?Zg(this,this,e):!1};function Zg(e,t,n){if(t===n||n===null)return!1;var i=t.containingGroup;return i===null||i!==n&&!Zg(e,i,n)?t instanceof Vn&&(t=t.labeledLink,t!==null)?Zg(e,t,n):!1:!0}_.px=function(e){if(e===null)return null;if(this===e)return this.containingGroup;for(var t=this;t!==null;){if(t instanceof Xi&&J0(t,!0),t instanceof Vn){var n=t.labeledLink;n!==null&&(t=n)}t=t.containingGroup}for(n=null,t=e;t!==null;){if(t.G&1048576){n=t;break}t instanceof Vn&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup}for(t=this;t!==null;)t instanceof Xi&&J0(t,!1),t instanceof Vn&&(e=t.labeledLink,e!==null&&(t=e)),t=t.containingGroup;return n},Ei.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var e=this.layer;return!(e!==null&&e.isTemporary||this instanceof Vn&&this.isLinkLabel)},Ei.prototype.C=function(e){if(e===void 0&&(e=16777215),this.isLayoutPositioned&&e&this.layoutConditions){var t=this.layer;t!==null&&t.isTemporary||this instanceof Vn&&this.isLinkLabel?t=!1:(t=this.diagram,t=!(t!==null&&t.undoManager.isUndoingRedoing))}else t=!1;if(t)if(t=this.Ah,t!==null){var n=t.layout;n!==null?n.C():t.C(e)}else e=this.diagram,e!==null&&(e=e.layout,e!==null&&e.C())};function Yy(e){return e.isVisible()?(e=e.layer,!(e!==null&&e.isTemporary)):!1}function Wh(e,t,n,i,r,o){if(o===void 0&&(o=null),!(e.contains(t)||o!==null&&!o(t)||t instanceof Fr)){if(e.add(t),t instanceof Vn){if(n&&t instanceof Xi)for(var s=t.memberParts;s.next();)Wh(e,s.value,n,i,r,o);if(r!==!1)for(s=t.linksConnected;s.next();){var l=s.value;if(!e.contains(l)){var u=l.fromNode,f=l.toNode;u=u===null||e.contains(u),f=f===null||e.contains(f),(r?u&&f:u||f)&&Wh(e,l,n,i,r,o)}}if(1<i)for(t=t.Ou();t.next();)Wh(e,t.value,n,i-1,r,o)}else if(t instanceof kn)for(t=t.labelNodes;t.next();)Wh(e,t.value,n,i,r,o)}}at.Object.defineProperties(Ei.prototype,{key:{get:function(){var e=this.diagram;if(e!==null)return e.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?wt:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var e=this.Ig;return e==null?null:e.diagram}},layerName:{get:function(){return this.Jg},set:function(e){var t=this.Jg;if(t!==e){var n=this.diagram;if((n===null||n.Qj(e)!==null&&!n.partManager.addsToTemporaryLayer)&&(this.Jg=e,n!==null&&n.Ya(),this.g("layerName",t,e),t=this.layer,t!==null&&t.name!==e&&(n=t.diagram,n!==null&&(e=n.Qj(e),e!==null&&e!==t)))){var i=t.pc(-1,this,!0);if(0<=i&&n.cb(os,"parts",t,this,null,i,!0),i=e.oi(99999999,this,!0),t.visible!==e.visible&&this.Zb(e.visible),0<=i&&n.cb(zo,"parts",e,null,this,!0,i),i=this.layerChanged,i!==null){var r=n.aa;n.aa=!0,i(this,t,e),n.aa=r}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(e){var t=this.layerChanged;t!==e&&(Bl(this),this.P.zq=e,this.g("layerChanged",t,e))}},zOrder:{get:function(){return this.Ao},set:function(e){var t=this.Ao;if(t!==e){this.Ao=e;var n=this.layer;n!==null&&Y(n,-1,this),this.g("zOrder",t,e),e=this.diagram,e!==null&&e.N()}}},locationObject:{get:function(){if(this.nf===null){var e=this.locationObjectName;e!==""?(e=this.fb(e),e!==null?this.nf=e:this.nf=this):this instanceof Fr?this.type!==wn.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:to},set:function(e){var t=this.minLocation;t.D(e)||(e=e.J(),Bl(this),this.P.Pq=e,this.g("minLocation",t,e))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:mr},set:function(e){var t=this.maxLocation;t.D(e)||(e=e.J(),Bl(this),this.P.Kq=e,this.g("maxLocation",t,e))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(e){var t=this.locationObjectName;t!==e&&(Bl(this),this.P.Gq=e,this.nf=null,this.v(),this.g("locationObjectName",t,e))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Yo},set:function(e){var t=this.locationSpot;t.D(e)||(e=e.J(),Bl(this),this.P.Hq=e,this.v(),this.g("locationSpot",t,e))}},location:{get:function(){return this.ke},set:function(e){var t=e.x,n=e.y,i=this.ke;if(!(i.x===t||isNaN(i.x)&&isNaN(t))||!(i.y===n||isNaN(i.y)&&isNaN(n))){if(e=e.copy(),t=e,this.ph())t=!1;else{if(this.ke=t,this.G|=2097152,fl(this)===!1&&(Q0(this),n=this.pa,n.w())){var r=this.diagram;if(r===null||r.animationManager.isTicking||!r.undoManager.isUndoingRedoing){var o=n.copy();n.h(n.x+(t.x-i.x),n.y+(t.y-i.y)),$y(this,r,n,o.x,o.y),this.g("position",o,n.copy())}}t=!0}t&&this.g("location",i,e.copy())}}},category:{get:function(){return this.Tf},set:function(e){var t=this.Tf;if(t!==e){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var n=this.diagram,i=this.data,r=null;if(n!==null&&i!==null&&!(this instanceof Fr)){var o=n.model.undoManager;o.isEnabled&&!o.isUndoingRedoing&&(r=this.clone(),r.O.addAll(this.O))}this.Tf=e,this.g("category",t,e),n===null||i===null||this instanceof Fr?this instanceof Fr&&(r=this.adornedPart,r!==null&&(e=r.Qf,e!==null&&e.remove(t),r.bh(this.category,this))):(o=n.model,o.undoManager.isUndoingRedoing||(this.ph()?(n.partManager.setLinkCategoryForData(i,e),n=n.partManager.findLinkTemplateForCategory(e),n!==null&&(Uu(n),n=n.copy(),n!==null&&Wg(this,n,t,e))):(o!==null&&o.jm(i,e),n=x1(n.partManager,i,e),n!==null&&(Uu(n),n=n.copy(),n===null||n instanceof kn||(i=this.location.copy(),Wg(this,n,t,e),this.location.w()||(this.location=i)))),r!==null&&(t=this.clone(),t.O.addAll(this.O),this.g("self",r,t))))}}},self:{get:function(){return this},set:function(e){Wg(this,e,this.category,e.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(e){var t=(this.G&1)!==0;t!==e&&(this.G^=1,this.g("copyable",t,e))}},deletable:{get:function(){return(this.G&2)!==0},set:function(e){var t=(this.G&2)!==0;t!==e&&(this.G^=2,this.g("deletable",t,e))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(e){var t=(this.G&4)!==0;t!==e&&(this.G^=4,this.g("textEditable",t,e),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(e){var t=(this.G&8)!==0;t!==e&&(this.G^=8,this.g("groupable",t,e))}},movable:{get:function(){return(this.G&16)!==0},set:function(e){var t=(this.G&16)!==0;t!==e&&(this.G^=16,this.g("movable",t,e))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(e){var t=(this.G&32)!==0;t!==e&&(this.G^=32,this.g("selectionAdorned",t,e),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(e){var t=(this.G&64)!==0;if(t!==e){this.G^=64;var n=this.diagram;n!==null&&n.Ya(),this.g("isInDocumentBounds",t,e)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(e){var t=(this.G&128)!==0;t!==e&&(this.G^=128,this.g("isLayoutPositioned",t,e),this.C(e?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(e){var t=(this.G&256)!==0;t!==e&&(this.G^=256,this.g("selectable",t,e),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(e){var t=(this.G&512)!==0;t!==e&&(this.G^=512,this.g("reshapable",t,e),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(e){var t=(this.G&1024)!==0;t!==e&&(this.G^=1024,this.g("resizable",t,e),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(e){var t=(this.G&2048)!==0;t!==e&&(this.G^=2048,this.g("rotatable",t,e),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(e){var t=(this.G&4096)!==0;if(t!==e){var n=this.diagram;if(!e||this.canSelect()&&!(n!==null&&n.selection.count>=n.maxSelectionCount)){this.G^=4096;var i=!1;if(n!==null){i=n.skipsUndoManager,n.skipsUndoManager=!0;var r=n.selection;r.ka(),e?r.add(this):r.remove(this),r.freeze()}this.g("isSelected",t,e),this.Wb(),e=this.selectionChanged,e!==null&&e(this),n!==null&&(n.$b(),n.skipsUndoManager=i)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(e){var t=(this.G&524288)!==0;if(t!==e){this.G^=524288;var n=this.diagram;n!==null&&(n=n.highlighteds,n.ka(),e?n.add(this):n.remove(this),n.freeze()),this.g("isHighlighted",t,e),this.N(),e=this.highlightedChanged,e!==null&&e(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(e){var t=(this.G&8192)!==0;t!==e&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",t,e),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(e){var t=(this.G&262144)!==0;t!==e&&(this.G^=262144,this.g("isAnimated",t,e))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(e){var t=this.highlightedChanged;t!==e&&(Bl(this),this.P.oq=e,this.g("highlightedChanged",t,e))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(e){var t=this.selectionObjectName;t!==e&&(Bl(this),this.P.vr=e,this.Ug=null,this.g("selectionObjectName",t,e))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(e){var t=this.selectionAdornmentTemplate;t!==e&&(Bl(this),this.P.tr=e,this.g("selectionAdornmentTemplate",t,e))}},selectionObject:{get:function(){if(this.Ug===null){var e=this.selectionObjectName;e!==null&&e!==""?(e=this.fb(e),e!==null?this.Ug=e:this.Ug=this):this instanceof kn?(e=this.path,e!==null?this.Ug=e:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(e){var t=this.selectionChanged;t!==e&&(Bl(this),this.P.ur=e,this.g("selectionChanged",t,e))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(e){var t=this.resizeAdornmentTemplate;t!==e&&(Bl(this),this.P.fr=e,this.g("resizeAdornmentTemplate",t,e))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(e){var t=this.resizeObjectName;t!==e&&(Bl(this),this.P.hr=e,this.g("resizeObjectName",t,e))}},resizeObject:{get:function(){var e=this.resizeObjectName;return e!==""&&(e=this.fb(e),e!==null)?e:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:vs},set:function(e){var t=this.resizeCellSize;t.D(e)||(e=e.J(),Bl(this),this.P.gr=e,this.g("resizeCellSize",t,e))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(e){var t=this.rotateAdornmentTemplate;t!==e&&(Bl(this),this.P.ir=e,this.g("rotateAdornmentTemplate",t,e))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(e){var t=this.rotateObjectName;t!==e&&(Bl(this),this.P.jr=e,this.g("rotateObjectName",t,e))}},rotateObject:{get:function(){var e=this.rotateObjectName;return e!==""&&(e=this.fb(e),e!==null)?e:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Lr},set:function(e){var t=this.rotationSpot;t.D(e)||(e=e.J(),Bl(this),this.P.lr=e,this.g("rotationSpot",t,e))}},text:{get:function(){return this.ec},set:function(e){var t=this.ec;t!==e&&(this.ec=e,this.g("text",t,e))}},containingGroup:{get:function(){return this.Ah},set:function(e){if(this.Zc()){var t=this.Ah;if(t!==e){e===null||this!==e&&!e.Td(this)||(this===e&&ut("Cannot make a Group a member of itself: "+this.toString()),ut("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+e.toString())),this.C(2);var n=this.diagram;if(t!==null?ev(t,this):this instanceof Xi&&n!==null&&n.ai.remove(this),this.Ah=e,e!==null?qg(e,this):this instanceof Xi&&n!==null&&n.ai.add(this),this.C(1),n!==null&&n.aa){var i=this.data,r=n.model;if(i!==null&&r.Xj()){var o=r.wa(e!==null?e.data:null);r.mp(i,o)}}if(i=this.containingGroupChanged,i!==null&&(r=!0,n!==null&&(r=n.aa,n.aa=!0),i(this,t,e),n!==null&&(n.aa=r)),this instanceof Xi){for(n=new Yt,Wh(n,this,!0,0,!0),n=n.iterator;n.next();)if(i=n.value,i instanceof Vn)for(i=i.linksConnected;i.next();)Mf(i.value)}if(this instanceof Vn){for(n=this.linksConnected;n.next();)Mf(n.value);n=this.labeledLink,n!==null&&Mf(n)}this.g("containingGroup",t,e),e!==null&&(t=e.layer,t!==null&&Y(t,-1,e))}}else ut("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(e){var t=this.containingGroupChanged;t!==e&&(Bl(this),this.P.Kp=e,this.g("containingGroupChanged",t,e))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Vn&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(e){var t=this.layoutConditions;t!==e&&(Bl(this),this.P.Cq=e,this.g("layoutConditions",t,e))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(e){var t=this.dragComputation;t!==e&&(Bl(this),this.P.Up=e,this.g("dragComputation",t,e))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:Xr},set:function(e){var t=this.shadowOffset;t.D(e)||(e=e.J(),Bl(this),this.P.zr=e,this.N(),this.g("shadowOffset",t,e))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(e){var t=this.shadowColor;t!==e&&(Bl(this),this.P.yr=e,this.N(),this.g("shadowColor",t,e))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(e){var t=this.shadowBlur;t!==e&&(Bl(this),this.P.Vg=e,this.N(),this.g("shadowBlur",t,e))}}}),Ei.prototype.invalidateLayout=Ei.prototype.C,Ei.prototype.findCommonContainingGroup=Ei.prototype.px,Ei.prototype.isMemberOf=Ei.prototype.Td,Ei.prototype.findTopLevelPart=Ei.prototype.sz,Ei.prototype.findSubGraphLevel=Ei.prototype.oz,Ei.prototype.ensureBounds=Ei.prototype.Va,Ei.prototype.getDocumentBounds=Ei.prototype.mi,Ei.prototype.findObject=Ei.prototype.fb,Ei.prototype.moveTo=Ei.prototype.moveTo,Ei.prototype.invalidateAdornments=Ei.prototype.Wb,Ei.prototype.clearAdornments=Ei.prototype.Ej,Ei.prototype.removeAdornment=Ei.prototype.Jf,Ei.prototype.addAdornment=Ei.prototype.bh,Ei.prototype.findAdornment=Ei.prototype.Pj,Ei.prototype.updateTargetBindings=Ei.prototype.La;var Zy=!1;Ei.className="Part",Ei.LayoutNone=0,Ei.LayoutAdded=1,Ei.LayoutRemoved=2,Ei.LayoutShown=4,Ei.LayoutHidden=8,Ei.LayoutNodeSized=16,Ei.LayoutGroupLayout=32,Ei.LayoutNodeReplaced=64,Ei.LayoutStandard=127,Ei.LayoutAll=16777215;function Fr(e,t){e===void 0||e instanceof Gs||typeof e=="string"?Ei.call(this,e):(Ei.call(this),e&&(t=e)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,t&&Object.assign(this,t)}fi(Fr,Ei),Fr.prototype.toString=function(){var e=this.adornedPart;return"Adornment("+this.category+")"+(e!==null?e.toString():"")},Fr.prototype.updateRelationshipsFromData=function(){},Fr.prototype.Ul=function(e){var t=this.adornedObject,n=t==null?void 0:t.part;if(n instanceof kn&&t instanceof nr){t=n.path,n.Ul(e),e=t.geometry,n=this.O.s,t=n.length;for(var i=0;i<t;i++){var r=n[i];r.isPanelMain&&r instanceof nr&&(r.ua=e)}}},Fr.prototype.si=function(){var e=this.ue;return e===null?!0:(e=e.part,e===null||!fl(e))},Fr.prototype.Zc=function(){return!1},Fr.prototype.gk=function(e,t,n,i,r,o,s){if(e===zo&&t==="elements"){if(r instanceof ml)this.$a===null&&(this.$a=r);else if(r instanceof wn){var l=r.Nl(function(u){return u instanceof ml});l instanceof ml&&this.$a===null&&(this.$a=l)}}else e===os&&t==="elements"&&this.$a!==null&&(i===this.$a?this.$a=null:i instanceof wn&&this.$a.rg(i)&&(this.$a=null));Ei.prototype.gk.call(this,e,t,n,i,r,o,s)},Fr.prototype.updateAdornments=function(){},Fr.prototype.Lj=function(){},at.Object.defineProperties(Fr.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(e){var t=this.adornedPart,n=null;e!==null&&(n=e.part),t===null||e!==null&&t===n||t.Jf(this.category),this.ue=e,n!==null&&n.bh(this.category,this)}},adornedPart:{get:function(){var e=this.ue;return e!==null?e.part:null}},containingGroup:{get:function(){return null}}}),Fr.className="Adornment";function Xg(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=Da,this.er=tm,this.Kr=this.ij=this.Nq=this.Mq=null}Xg.prototype.copy=function(){var e=new Xg;return e.Dq=this.Dq,e.Eq=this.Eq,e.gj=this.gj,e.Vr=this.Vr,e.yp=this.yp.J(),e.er=this.er,e.Mq=this.Mq,e.Nq=this.Nq,e.ij=this.ij,e.Kr=this.Kr,e};function Vn(e,t){e===void 0||e instanceof Gs||typeof e=="string"?Ei.call(this,e):(Ei.call(this),e&&(t=e)),this.U=13,this.Ba=null,this.jb=new Xt,this.wc=this.af=this.Yk=null,this.ci=!1,t&&Object.assign(this,t)}fi(Vn,Ei),Vn.prototype.cloneProtected=function(e){Ei.prototype.cloneProtected.call(this,e),e.U=this.U,this.Ba!==null&&(e.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},_=Vn.prototype,_.Af=function(e){Ei.prototype.Af.call(this,e),e.Bd(),e.af=this.af,e.wc=null};function Sh(e){e.Ba===null?e.Ba=new Xg:e.Ba.nc&&(e.Ba=e.Ba.copy())}_.th=function(){Ei.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Xy(e,t){t!==null&&(e.af===null&&(e.af=new Yt),e.af.add(t))}function Qy(e,t,n,i){if(t===null||e.af===null)return null;for(var r=e.af.iterator;r.next();){var o=r.value;if(o.Ds===e&&o.cv===t&&o.Ox===n&&o.Px===i||o.Ds===t&&o.cv===e&&o.Ox===i&&o.Px===n)return o}return null}_.Lz=function(e,t,n){t==null&&(t=""),n==null&&(n=""),e=Qy(this,e,t,n),e!==null&&e.Sl()},_.gk=function(e,t,n,i,r,o,s){e===zo&&t==="elements"?this.wc=null:e===os&&t==="elements"&&(this.wc=null),Ei.prototype.gk.call(this,e,t,n,i,r,o,s)},_.Bd=function(e){for(var t=this.linksConnected;t.next();){var n=t.value;e!==void 0&&e.contains(n)||(nu(n.fromPort),nu(n.toPort),n.bb())}};function Jy(e,t){for(e=e.linksConnected;e.next();){var n=e.value;(n.fromPort===t||n.toPort===t)&&(nu(n.fromPort),nu(n.toPort),n.bb())}}function nu(e){if(e!==null){var t=e.Zn;t!==null&&t.Sl(),e=e.part,t=e.containingGroup,t===null||e.isVisible()||nu(t.port)}}_.si=function(){return!0},Vn.prototype.getAvoidableRect=function(e){return e.set(this.actualBounds),e.Co(this.avoidableMargin),e},Vn.prototype.findVisibleNode=function(){for(var e=this;e!==null&&!e.isVisible();)e=e.containingGroup;return e},Vn.prototype.isVisible=function(){if(!Ei.prototype.isVisible.call(this))return!1;var e=!0,t=mh,n=this.diagram;if(n!==null&&(e=n.isTreePathToChildren,t=n.treeCollapsePolicy),t===mh){if(e=this.pg(),e!==null&&!e.isTreeExpanded)return!1}else if(t===Fs){if(e=e?this.Oo():this.Po(),0<e.count&&e.all(function(i){return!i.isTreeExpanded}))return!1}else if(t===mf&&(e=e?this.Oo():this.Po(),0<e.count&&e.any(function(i){return!i.isTreeExpanded})))return!1;return e=this.labeledLink,e!==null?e.isVisible():!0},Vn.prototype.Zb=function(e){Ei.prototype.Zb.call(this,e);for(var t=this.linksConnected;t.next();){var n=t.value;if(e&&this.containingGroup!==null){var i=n.To(this);i===null||i.Td(this.containingGroup)||n.bb()}n.Zb(e)}},Vn.prototype.qx=function(){var e=new Yt,t=new Yt;return qy(this,this,e,t),t.iterator};function qy(e,t,n,i){if(t!==null&&!n.has(t)){n.add(t);var r=!0,o=e.diagram;o!==null&&(r=o.isTreePathToChildren),t.linksConnected.each(function(s){s.isTreeLink?(r?s.fromNode===t:s.toNode===t)&&qy(e,r?s.toNode:s.fromNode,n,i):i.add(s)})}}Vn.prototype.findLinksConnected=function(e){if(e===void 0&&(e=null),e===null)return this.jb.iterator;var t=new Dn(this.jb),n=this;return t.predicate=function(i){return i.fromNode===n&&i.fromPortId===e||i.toNode===n&&i.toPortId===e},t},_=Vn.prototype,_.Mo=function(e){e===void 0&&(e=null);var t=new Dn(this.jb),n=this;return t.predicate=function(i){return i.fromNode!==n?!1:e===null?!0:i.fromPortId===e},t},_.Sd=function(e){e===void 0&&(e=null);var t=new Dn(this.jb),n=this;return t.predicate=function(i){return i.toNode!==n?!1:e===null?!0:i.toPortId===e},t},_.Mu=function(e){e===void 0&&(e=null);for(var t=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.fromNode===this?(e===null||r.fromPortId===e)&&(r=r.toNode,t!==null?t.add(r):n!==null&&n!==r?(t=new Yt,t.add(n),t.add(r)):n=r):r.toNode!==this||e!==null&&r.toPortId!==e||(r=r.fromNode,t!==null?t.add(r):n!==null&&n!==r?(t=new Yt,t.add(n),t.add(r)):n=r)}return t!==null?t.iterator:n!==null?new Ni(n):wt},_.Po=function(e){e===void 0&&(e=null);for(var t=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.fromNode!==this||e!==null&&r.fromPortId!==e||(r=r.toNode,t!==null?t.add(r):n!==null&&n!==r?(t=new Yt,t.add(n),t.add(r)):n=r)}return t!==null?t.iterator:n!==null?new Ni(n):wt},_.Oo=function(e){e===void 0&&(e=null);for(var t=null,n=null,i=this.jb.iterator;i.next();){var r=i.value;r.toNode!==this||e!==null&&r.toPortId!==e||(r=r.fromNode,t!==null?t.add(r):n!==null&&n!==r?(t=new Yt,t.add(n),t.add(r)):n=r)}return t!==null?t.iterator:n!==null?new Ni(n):wt},_.jz=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var i=new Dn(this.jb),r=this;return i.predicate=function(o){return!((o.fromNode!==r||o.toNode!==e||t!==null&&o.fromPortId!==t||n!==null&&o.toPortId!==n)&&(o.fromNode!==e||o.toNode!==r||n!==null&&o.fromPortId!==n||t!==null&&o.toPortId!==t))},i},_.kz=function(e,t,n){t===void 0&&(t=null),n===void 0&&(n=null);var i=new Dn(this.jb),r=this;return i.predicate=function(o){return!(o.fromNode!==r||o.toNode!==e||t!==null&&o.fromPortId!==t||n!==null&&o.toPortId!==n)},i};function q0(e,t,n){nu(n);var i=e.jb.contains(t);if(i||e.jb.add(t),!i||t.fromNode===t.toNode){var r=e.linkConnected;if(r!==null){var o=!0,s=e.diagram;s!==null&&(o=s.aa,s.aa=!0),r(e,t,n),s!==null&&(s.aa=o)}}!i&&t.isTreeLink&&(n=t.fromNode,t=t.toNode,n!==null&&t!==null&&n!==t&&(i=!0,e=e.diagram,e!==null&&(i=e.isTreePathToChildren),r=i?t:n,o=i?n:t,r.ci||(r.ci=o),!o.isTreeLeaf||e!==null&&e.undoManager.isUndoingRedoing||(i?n===o&&(o.isTreeLeaf=!1):t===o&&(o.isTreeLeaf=!1))))}function em(e,t,n){nu(n);var i=e.jb.remove(t),r=null;if(i||t.toNode===t.fromNode){var o=e.linkDisconnected;if(r=e.diagram,o!==null){var s=!0;r!==null&&(s=r.aa,r.aa=!0),o(e,t,n),r!==null&&(r.aa=s)}}i&&t.isTreeLink&&(n=!0,r!==null&&(n=r.isTreePathToChildren),e=n?t.toNode:t.fromNode,t=n?t.fromNode:t.toNode,e!==null&&(e.ci=!1),t===null||t.isTreeLeaf||(t.jb.count===0?(t.ci=null,r!==null&&r.undoManager.isUndoingRedoing||(t.isTreeLeaf=!0)):Np(t)))}function Np(e){if(e.ci=!1,e.jb.count!==0){var t=!0,n=e.diagram;if(n===null||!n.undoManager.isUndoingRedoing){for(n!==null&&(t=n.isTreePathToChildren),n=e.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink){if(t){if(i.fromNode===e){e.isTreeLeaf=!1;return}}else if(i.toNode===e){e.isTreeLeaf=!1;return}}}e.isTreeLeaf=!0}}}Vn.prototype.updateRelationshipsFromData=function(){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)},_=Vn.prototype,_.Vo=function(e){Ei.prototype.Vo.call(this,e),e||(Np(this),e=this.Yk,e!==null&&l1(e,this))},_.Wo=function(e){Ei.prototype.Wo.call(this,e),e||(e=this.Yk,e!==null&&e.wd!==null&&(e.wd.remove(this),e.v()))},_.Lj=function(){if(0<this.jb.count){var e=this.diagram;if(e!==null)for(var t=e.commandHandler!==null?e.commandHandler.deletesConnectedLinks:!0,n=this.jb.copy().iterator;n.next();){var i=n.value;t?e.remove(i):(i.fromNode===this&&(i.fromNode=null),i.toNode===this&&(i.toNode=null))}}this.labeledLink=null,Ei.prototype.Lj.call(this)},_.ns=function(e){if(this.wc===null){if(e===""&&this.Te===!1)return this;e1(this)}var t=this.wc.I(e);return t!==null||e!==""&&(t=this.wc.I(""),t!==null)?t:this};function e1(e){e.wc===null?e.wc=new ii:e.wc.clear(),e.qm(e,function(t,n){t1(t,n)}),e.wc.count===0&&e.wc.add("",e)}function t1(e,t){var n=t.portId;n!==null&&e.wc!==null&&e.wc.add(n,t)}function Qg(e,t,n){var i=t.portId;if(i!==null&&(e.wc!==null&&e.wc.remove(i),t=e.diagram,t!==null&&n)){for(n=null,e=e.findLinksConnected(i);e.next();)i=e.value,n===null&&(n=jt()),n.push(i);if(n!==null){for(e=0;e<n.length;e++)t.remove(n[e]);gn(n)}}}_.Nz=function(e){if(e===null||e===this)return!1;var t=!0,n=this.diagram;if(n!==null&&(t=n.isTreePathToChildren),n=this,t)for(;n!==e;){t=null;for(var i=n.jb.iterator;i.next();){var r=i.value;if(r.isTreeLink&&(t=r.fromNode,t!==n&&t!==this))break}if(t===this||t===null||t===n)return!1;n=t}else for(;n!==e;){for(t=null,i=n.jb.iterator;i.next()&&(r=i.value,!r.isTreeLink||(t=r.toNode,t===n||t===this)););if(t===this||t===null||t===n)return!1;n=t}return!0},_.xz=function(){var e=!0,t=this.diagram;if(t!==null&&(e=t.isTreePathToChildren),t=this,e)for(;;){e=null;for(var n=t.jb.iterator;n.next();){var i=n.value;if(i.isTreeLink&&(e=i.fromNode,e!==t&&e!==this))break}if(e===this)return this;if(e===null||e===t)return t;t=e}else for(;;){for(e=null,n=t.jb.iterator;n.next()&&(i=n.value,!i.isTreeLink||(e=i.toNode,e===t||e===this)););if(e===this)return this;if(e===null||e===t)return t;t=e}},_.gz=function(e){if(e===null)return null;if(this===e)return this;for(var t=this;t!==null;)J0(t,!0),t=t.pg();var n=null;for(t=e;t!==null;){if(t.G&1048576){n=t;break}t=t.pg()}for(t=this;t!==null;)J0(t,!1),t=t.pg();return n},_.kh=function(){var e=!0,t=this.diagram;if(t!==null&&(e=t.isTreePathToChildren),t=this.jb.iterator,e){for(;t.next();)if(e=t.value,e.isTreeLink&&e.fromNode!==this)return e}else for(;t.next();)if(e=t.value,e.isTreeLink&&e.toNode!==this)return e;return null},_.pg=function(){var e=this.ci;if(e===null)return null;if(e instanceof Vn)return e;e=this.diagram,e=e!==null?e.isTreePathToChildren:!0;for(var t=this.jb.iterator;t.next();){var n=t.value;if(n.isTreeLink&&(n=e?n.fromNode:n.toNode,n!==this))return this.ci=n}return this.ci=null},_.vz=function(){function e(n,i){i.add(n);var r=n.kh();r!==null&&(i.add(r),n=n.pg(),n!==null&&e(n,i))}var t=new Yt;return e(this,t),t},_.uz=function(){return n1(this,this)};function n1(e,t){return t=t.pg(),t===null?0:1+n1(e,t)}_.Qo=function(){var e=!0,t=this.diagram;t!==null&&(e=t.isTreePathToChildren),t=new Dn(this.jb);var n=this;return t.predicate=e?function(i){return!!(i.isTreeLink&&i.fromNode===n)}:function(i){return!!(i.isTreeLink&&i.toNode===n)},t},_.Ou=function(){var e=!0,t=this.diagram;t!==null&&(e=t.isTreePathToChildren);var n=t=null,i=this.jb.iterator;if(e)for(;i.next();)e=i.value,e.isTreeLink&&e.fromNode===this&&(e=e.toNode,t!==null?t.add(e):n!==null&&n!==e?(t=new Xt,t.add(n),t.add(e)):n=e);else for(;i.next();)e=i.value,e.isTreeLink&&e.toNode===this&&(e=e.fromNode,t!==null?t.add(e):n!==null&&n!==e?(t=new Xt,t.add(n),t.add(e)):n=e);return t!==null?t.iterator:n!==null?new Ni(n):wt},_.wz=function(e){e===void 0&&(e=1/0);var t=new Yt;return Wh(t,this,!1,e,!0),t},Vn.prototype.collapseTree=function(e){e===void 0&&(e=1),1>e&&(e=1);var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var n=new Yt;n.add(this),i1(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===mh),t.Ue=!1}};function i1(e,t,n,i,r,o,s){if(1<i)for(var l=n?e.Mo():e.Sd();l.next();){var u=l.value;u.isTreeLink&&(u=u.To(e),u===null||u===e||t.contains(u)||(t.add(u),i1(u,t,n,i-1,r,o,s)))}else r1(e,t,n,r,o,s)}function r1(e,t,n,i,r,o){for(var s=r===e?!0:e.isTreeExpanded,l=n?e.Mo():e.Sd(),u={};l.next();){var f=l.value;if(f.isTreeLink&&(f=f.To(e),f!==null&&f!==e)){var p=t.contains(f);if(p||t.add(f),s){var x=n?f.Oo():f.Po();u.uv=e,x.all(function(N){return function(O){return O===N.uv||!O.isTreeExpanded}}(u))&&i.Aj(f,r),f.oh(),f.Zb(!1)}f.isTreeExpanded&&(f.wasTreeExpanded=f.isTreeExpanded,p||r1(f,t,n,i,r,o))}u={uv:u.uv}}e.isTreeExpanded=!1}Vn.prototype.expandTree=function(e){e===void 0&&(e=2),2>e&&(e=2);var t=this.diagram;if(t!==null&&!t.Ue){t.Ue=!0;var n=new Yt;n.add(this),o1(this,n,t.isTreePathToChildren,e,t,this,t.treeCollapsePolicy===mh),t.Ue=!1}};function o1(e,t,n,i,r,o,s){for(var l=o===e?!1:e.isTreeExpanded,u=n?e.Mo():e.Sd(),f={};u.next();){var p=u.value;if(p.isTreeLink&&(l||p.fd||p.bb(),p=p.To(e),p!==null&&p!==e&&!t.contains(p))){if(t.add(p),!l){p.Zb(!0),p.oh();var x=n?p.Oo():p.Po();f.vv=e,x.all(function(N){return function(O){return O===N.vv||!O.isTreeExpanded}}(f))&&r.Cj(p,o)}(2<i||p.wasTreeExpanded)&&(p.wasTreeExpanded=!1,o1(p,t,n,i-1,r,o,s))}f={vv:f.vv}}e.isTreeExpanded=!0}at.Object.defineProperties(Vn.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:tm},set:function(e){var t=this.portSpreading;t!==e&&(Sh(this),this.Ba.er=e,this.g("portSpreading",t,e),e=this.diagram,e!==null&&e.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(e){var t=(this.U&8)!==0;if(t!==e){this.U^=8;var n=this.diagram;n!==null&&fh(n,this),this.g("avoidable",t,e)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:Da},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.avoidableMargin;if(!t.D(e)){e=e.J(),Sh(this),this.Ba.yp=e;var n=this.diagram;n!==null&&fh(n,this),this.g("avoidableMargin",t,e)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(e){var t=this.linkConnected;t!==e&&(Sh(this),this.Ba.Dq=e,this.g("linkConnected",t,e))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(e){var t=this.linkDisconnected;t!==e&&(Sh(this),this.Ba.Eq=e,this.g("linkDisconnected",t,e))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(e){var t=this.linkValidation;t!==e&&(Sh(this),this.Ba.gj=e,this.g("linkValidation",t,e))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(e){var t=this.Yk;if(t!==e){var n=this.diagram,i=this.data;if(t!==null){if(t.wd!==null&&(t.wd.remove(this),t.v()),n!==null&&i!==null&&!n.undoManager.isUndoingRedoing){var r=t.data,o=n.model;if(r!==null&&o.ri()){var s=o.wa(i);s!==void 0&&o.Qx(r,s)}}this.containingGroup=null}this.Yk=e,e!==null&&(l1(e,this),n===null||i===null||n.undoManager.isUndoingRedoing||(r=e.data,n=n.model,r!==null&&n.ri()&&(i=n.wa(i),i!==void 0&&n.Bu(r,i))),this.containingGroup=e.containingGroup),dl(this),this.g("labeledLink",t,e)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&e1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(e){var t=(this.U&1)!==0;if(t!==e){this.U^=1;var n=this.diagram;if(this.g("isTreeExpanded",t,e),t=this.treeExpandedChanged,t!==null){var i=!0;n!==null&&(i=n.aa,n.aa=!0),t(this),n!==null&&(n.aa=i)}n!==null&&n.undoManager.isUndoingRedoing?this.Zb(e):e?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(e){var t=(this.U&2)!==0;t!==e&&(this.U^=2,this.g("wasTreeExpanded",t,e))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(e){var t=this.treeExpandedChanged;t!==e&&(Sh(this),this.Ba.Vr=e,this.g("treeExpandedChanged",t,e))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(e){var t=(this.U&4)!==0;t!==e&&(this.U^=4,this.g("isTreeLeaf",t,e))}}}),Vn.prototype.expandTree=Vn.prototype.expandTree,Vn.prototype.collapseTree=Vn.prototype.collapseTree,Vn.prototype.findTreeParts=Vn.prototype.wz,Vn.prototype.findTreeChildrenNodes=Vn.prototype.Ou,Vn.prototype.findTreeChildrenLinks=Vn.prototype.Qo,Vn.prototype.findTreeLevel=Vn.prototype.uz,Vn.prototype.findTreeParentChain=Vn.prototype.vz,Vn.prototype.findTreeParentNode=Vn.prototype.pg,Vn.prototype.findTreeParentLink=Vn.prototype.kh,Vn.prototype.findCommonTreeParent=Vn.prototype.gz,Vn.prototype.findTreeRoot=Vn.prototype.xz,Vn.prototype.isInTreeOf=Vn.prototype.Nz,Vn.prototype.findPort=Vn.prototype.ns,Vn.prototype.findLinksTo=Vn.prototype.kz,Vn.prototype.findLinksBetween=Vn.prototype.jz,Vn.prototype.findNodesInto=Vn.prototype.Oo,Vn.prototype.findNodesOutOf=Vn.prototype.Po,Vn.prototype.findNodesConnected=Vn.prototype.Mu,Vn.prototype.findLinksInto=Vn.prototype.Sd,Vn.prototype.findLinksOutOf=Vn.prototype.Mo,Vn.prototype.findExternalTreeLinksConnected=Vn.prototype.qx,Vn.prototype.invalidateConnectedLinks=Vn.prototype.Bd,Vn.prototype.invalidateLinkBundle=Vn.prototype.Lz;var _b=new qt(Vn,"SpreadingNone",10),tm=new qt(Vn,"SpreadingEvenly",11),Jg=new qt(Vn,"SpreadingPacked",12);Vn.className="Node",Vn.SpreadingNone=_b,Vn.SpreadingEvenly=tm,Vn.SpreadingPacked=Jg;function Xi(e,t){e===void 0||e instanceof Gs||typeof e=="string"?Vn.call(this,e):(Vn.call(this),e&&(t=e)),this.U|=4608,this.Gn=new Yt,this.$a=null,this.Sc=new Do,this.Sc.group=this,this.gl=new Yt,this.tb=this.$p=null,t&&Object.assign(this,t)}fi(Xi,Vn),Xi.prototype.cloneProtected=function(e){Vn.prototype.cloneProtected.call(this,e),this.U=this.U&-32769;var t=e.Nl(function(n){return n instanceof ml});t instanceof ml?e.$a=t:e.$a=null,this.Sc!==null?(e.Sc=this.Sc.copy(),e.Sc.group=e):(e.Sc!==null&&(e.Sc.group=null),e.Sc=null),this.tb!==null&&(e.tb=this.tb.copy())},_=Xi.prototype,_.Af=function(e){Vn.prototype.Af.call(this,e);var t=e.Rj();for(e=e.memberParts;e.next();){var n=e.value;if(n.v(),n.C(8),n.Ej(),n instanceof Vn)n.Bd(t);else if(n instanceof kn)for(n=n.labelNodes;n.next();)n.value.Bd(t)}},_.gk=function(e,t,n,i,r,o,s){if(e===zo&&t==="elements"){if(r instanceof ml)this.$a===null?this.$a=r:this.$a!==r&&ut("Cannot insert a second Placeholder into the visual tree of a Group.");else if(r instanceof wn){var l=r.Nl(function(u){return u instanceof ml});l instanceof ml&&(this.$a===null?this.$a=l:this.$a!==l&&ut("Cannot insert a second Placeholder into the visual tree of a Group."))}}else e===os&&t==="elements"&&this.$a!==null&&(i===this.$a?this.$a=null:i instanceof wn&&this.$a.rg(i)&&(this.$a=null));Vn.prototype.gk.call(this,e,t,n,i,r,o,s)},_.Xl=function(e,t){Vn.prototype.Xl.call(this,e,t),this.isClipping&&this.type!==wn.Spot&&this.isSubGraphExpanded&&(e=this.resizeObject,e instanceof wn&&(e=e.Pb()),this.tb===null&&(this.tb=new Ht),e.mi(this.tb),e instanceof nr&&this.tb.Bc(-e.strokeWidth,-e.strokeWidth))},_.eh=function(e,t,n,i){this.nf=this.$a,Vn.prototype.eh.call(this,e,t,n,i)},_.Va=function(){var e=this;e.isSubGraphExpanded&&this.memberParts.each(function(t){!e.computesBoundsIncludingLinks&&t instanceof kn||t.Va()}),Vn.prototype.Va.call(this)},_.si=function(){if(!Vn.prototype.si.call(this))return!1;for(var e=this.memberParts;e.next();){var t=e.value;if(t instanceof Vn){if(t.isVisible()&&fl(t))return!1}else if(t instanceof kn&&t.isVisible()&&fl(t)&&t.fromNode!==this&&t.toNode!==this)return!1}return!0};function qg(e,t){if(e.Gn.add(t)){t instanceof Xi&&e.gl.add(t);var n=e.memberAdded;if(n!==null){var i=!0,r=e.diagram;r!==null&&(i=r.aa,r.aa=!0),n(e,t),r!==null&&(r.aa=i)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!1)}t instanceof kn&&!e.computesBoundsIncludingLinks||(t=e.$a,t===null&&(t=e),t.v())}function ev(e,t){if(e.Gn.remove(t)){t instanceof Xi&&e.gl.remove(t);var n=e.memberRemoved;if(n!==null){var i=!0,r=e.diagram;r!==null&&(i=r.aa,r.aa=!0),n(e,t),r!==null&&(r.aa=i)}e.isVisible()&&e.isSubGraphExpanded||t.Zb(!0)}t instanceof kn&&!e.computesBoundsIncludingLinks||(t=e.$a,t===null&&(t=e),t.v())}_.Lj=function(){if(0<this.Gn.count){var e=this.diagram;if(e!==null)for(var t=this.Gn.copy().iterator;t.next();)e.remove(t.value)}Vn.prototype.Lj.call(this)},Xi.prototype.canAddMembers=function(e){var t=this.diagram;if(t===null)return!1;for(t=t.commandHandler,e=Bt(e).iterator;e.next();)if(!t.isValidMember(this,e.value))return!1;return!0},Xi.prototype.addMembers=function(e,t){var n=this.diagram;if(n===null)return!1;n=n.commandHandler;var i=!0;for(e=Bt(e).iterator;e.next();){var r=e.value;!t||n.isValidMember(this,r)?r.containingGroup=this:i=!1}return i},Xi.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var e=this.layer;return e===null||!e.allowUngroup?!1:(e=e.diagram,!!(e===null||e.allowUngroup))},_=Xi.prototype,_.Bd=function(e){var t=(this.U&65536)!==0;if(Vn.prototype.Bd.call(this,e),!t)for(!(this.U&65536)&&(this.U=this.U^65536),t=this.Lu();t.next();){var n=t.value;if(e===void 0||!e.contains(n)){var i=n.fromNode;i!==null&&i!==this&&i.Td(this)&&!i.isVisible()?(nu(n.fromPort),nu(n.toPort),n.bb()):(i=n.toNode,i!==null&&i!==this&&i.Td(this)&&!i.isVisible()&&(nu(n.fromPort),nu(n.toPort),n.bb()))}}},_.Lu=function(){var e=this.diagram!==null&&this.diagram.Pw;if(e&&this.$p!==null)return this.$p.iterator;var t=this.Rj();t.add(this);for(var n=new Yt,i=t.iterator;i.next();){var r=i.value;if(r instanceof Vn)for(r=r.linksConnected;r.next();){var o=r.value;t.contains(o)||n.add(o)}}return e&&(this.$p=n),n.iterator},_.iz=function(){var e=this.Rj();e.add(this);for(var t=new Yt,n=e.iterator;n.next();){var i=n.value;if(i instanceof Vn)for(i=i.linksConnected;i.next();){var r=i.value,o=r.fromNode;o===null||e.contains(o)&&o!==this||t.add(o),r=r.toNode,r===null||e.contains(r)&&r!==this||t.add(r)}}return t.iterator},_.hz=function(){function e(n,i){n!==null&&(i.add(n),e(n.containingGroup,i))}var t=new Yt;return e(this,t),t},_.Rj=function(){var e=new Yt;return Wh(e,this,!0,0,!0),e.remove(this),e},_.Zb=function(e){Vn.prototype.Zb.call(this,e);for(var t=this.memberParts;t.next();)t.value.Zb(e)},Xi.prototype.collapseSubGraph=function(){var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var t=this.Rj();s1(this,t,e,this),e.Ue=!1}};function s1(e,t,n,i){for(var r=e.memberParts;r.next();){var o=r.value;if(o.Zb(!1),o instanceof Xi&&o.isSubGraphExpanded&&(o.wasSubGraphExpanded=o.isSubGraphExpanded,s1(o,t,n,i)),o instanceof Vn)o.Bd(t),n.Aj(o,i);else if(o instanceof kn)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!1}Xi.prototype.expandSubGraph=function(){var e=this.diagram;if(e!==null&&!e.Ue){e.Ue=!0;var t=this.Rj();a1(this,t,e,this),e.Ue=!1}};function a1(e,t,n,i){for(var r=e.memberParts;r.next();){var o=r.value;if(o.Zb(!0),o instanceof Xi&&o.wasSubGraphExpanded&&(o.wasSubGraphExpanded=!1,a1(o,t,n,i)),o instanceof Vn)o.Bd(t),n.Cj(o,i);else if(o instanceof kn)for(o=o.labelNodes;o.next();)o.value.Bd(t)}e.isSubGraphExpanded=!0}Xi.prototype.move=function(e,t){t===void 0&&(t=!1);var n=t?this.location:this.position,i=n.x;n=n.y;var r=e.x,o=e.y;if(!(i===r||isNaN(i)&&isNaN(r))||!(n===o||isNaN(n)&&isNaN(o))){for(i=r-(isNaN(i)?0:i),n=o-(isNaN(n)?0:n),o=ce.alloc(),Vn.prototype.move.call(this,e,t),e=new Yt,t=this.Rj().iterator;t.next();)r=t.value,r instanceof kn&&(r.suspendsRouting&&e.add(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(r.suspendsRouting=!0);for(t.reset();t.next();)if(r=t.value,!(r.ph()||r instanceof Vn&&r.isLinkLabel)){var s=r.position,l=r.location;s.w()?(o.x=s.x+i,o.y=s.y+n,r.position=o):l.w()&&(o.x=l.x+i,o.y=l.y+n,r.location=o)}for(t.reset();t.next();)r=t.value,r instanceof kn&&(r.suspendsRouting=e.contains(r),r.fd||r.fromNode!==this&&r.toNode!==this)&&(s=r.position,o.x=s.x+i,o.y=s.y+n,o.w()?r.move(o):r.bb(),nv(r)&&r.bb());ce.free(o)}},at.Object.defineProperties(Xi.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(e){var t=(this.U&2048)!==0;t!==e&&(this.U^=2048,this.g("computesBoundsAfterDrag",t,e))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(e){var t=(this.U&4096)!==0;t!==e&&(this.U^=4096,this.g("computesBoundsIncludingLinks",t,e))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(e){var t=(this.U&8192)!==0;t!==e&&(this.U^=8192,this.g("computesBoundsIncludingLocation",t,e))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(e){var t=(this.U&16384)!==0;t!==e&&(this.U^=16384,this.g("handlesDragDropForMembers",t,e))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(e){var t=this.Sc;if(t!==e){e!==null&&e.diagram!==null&&e.diagram.layout===e&&ut("A layout cannot be both the Diagram.layout and a Group.layout: "+e),t!==null&&(t.diagram=null,t.group=null),this.Sc=e;var n=this.diagram;e!==null&&(e.diagram=n,e.group=this),n!==null&&(n.xh=!0),this.g("layout",t,e),n!==null&&n.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(e){var t=this.memberAdded;t!==e&&(Sh(this),this.Ba.Mq=e,this.g("memberAdded",t,e))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(e){var t=this.memberRemoved;t!==e&&(Sh(this),this.Ba.Nq=e,this.g("memberRemoved",t,e))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(e){var t=this.memberValidation;t!==e&&(Sh(this),this.Ba.ij=e,this.g("memberValidation",t,e))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(e){var t=(this.U&256)!==0;t!==e&&(this.U^=256,this.g("ungroupable",t,e))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(e){var t=(this.U&512)!==0;if(t!==e){this.U^=512;var n=this.diagram;if(this.g("isSubGraphExpanded",t,e),t=this.subGraphExpandedChanged,t!==null){var i=!0;n!==null&&(i=n.aa,n.aa=!0),t(this),n!==null&&(n.aa=i)}n!==null&&n.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(r){r.updateAdornments()})):e?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(e){var t=(this.U&1024)!==0;t!==e&&(this.U^=1024,this.g("wasSubGraphExpanded",t,e))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(e){var t=this.subGraphExpandedChanged;t!==e&&(Sh(this),this.Ba.Kr=e,this.g("subGraphExpandedChanged",t,e))}},rh:{get:function(){return(this.U&32768)!==0},set:function(e){(this.U&32768)!==0!==e&&(this.U^=32768)}}}),Xi.prototype.expandSubGraph=Xi.prototype.expandSubGraph,Xi.prototype.collapseSubGraph=Xi.prototype.collapseSubGraph,Xi.prototype.findSubGraphParts=Xi.prototype.Rj,Xi.prototype.findContainingGroupChain=Xi.prototype.hz,Xi.prototype.findExternalNodesConnected=Xi.prototype.iz,Xi.prototype.findExternalLinksConnected=Xi.prototype.Lu,Xi.prototype.ensureBounds=Xi.prototype.Va,Xi.className="Group";function ml(e){nt.call(this),this.yb=oa,this.ko=new Ht(NaN,NaN,NaN,NaN),e&&Object.assign(this,e)}fi(ml,nt),ml.prototype.cloneProtected=function(e){nt.prototype.cloneProtected.call(this,e),e.yb=this.yb.J(),e.ko=this.ko.copy()},ml.prototype.gh=function(e){if(this.background===null&&this.areaBackground===null)return!1;var t=this.naturalBounds;return po(0,0,t.width,t.height,e.x,e.y)},ml.prototype.Wl=function(){var e=this.part;if(e!==null&&(e instanceof Xi||e instanceof Fr)||ut("Placeholder is not inside a Group or Adornment."),e instanceof Xi){var t=this.computeBorder(this.ko),n=this.minSize,i=this.dc;for(Ds(i,(isFinite(n.width)?Math.max(n.width,t.width):t.width)||0,(isFinite(n.height)?Math.max(n.height,t.height):t.height)||0),this.Ge(0,0,i.width,i.height),i=e.memberParts,n=!1;i.next();)if(i.value.isVisible()){n=!0;break}i=e.diagram,!n||i===null||i.animationManager.Xu(e)||isNaN(t.x)||isNaN(t.y)||(n=ce.alloc(),n.xi(t,e.locationSpot),n.D(e.location)||(e.location=n),ce.free(n))}else{t=this.dc,n=this.yb,i=n.left+n.right;var r=n.top+n.bottom,o=e.adornedObject;e.angle=o.li();var s=0;o instanceof nr&&(s=o.strokeWidth);var l=o.Df(),u=o.naturalBounds,f=(u.width+s)*l;s=(u.height+s)*l,e.type!==wn.Link&&(l=o.ga(e.category==="Selection"?Yo:e.locationSpot,ce.alloc()),e.location=l,ce.free(l)),isNaN(f)||isNaN(s)?(e=o.ga(Yo,ce.alloc()),f=Ht.allocAt(e.x,e.y,0,0),f.Ye(o.ga(Oo,e)),f.Ye(o.ga(Go,e)),f.Ye(o.ga(wa,e)),Ds(t,f.width+i||0,f.height+r||0),this.Ge(-n.left,-n.top,t.width,t.height),ce.free(e),Ht.free(f)):(Ds(t,f+i||0,s+r||0),this.Ge(-n.left,-n.top,t.width,t.height))}},ml.prototype.eh=function(e,t,n,i){this.actualBounds.h(e,t,n,i)},ml.prototype.computeBorder=function(e){var t=this.part,n=t.diagram,i=n===null||!n.animationManager.isAnimating;if(n!==null&&t instanceof Xi&&!t.layer.isTemporary&&t.computesBoundsAfterDrag&&this.ko.w()){var r=n.toolManager.findTool("Dragging");if(r===n.currentTool&&(n=r.computeBorder(t,this.ko,e),n!==null))return n}n=Ht.alloc(),r=this.computeMemberBounds(n);var o=this.yb;return t instanceof Xi&&!t.isSubGraphExpanded?e.h(r.x-o.left,r.y-o.top,0,0):e.h(r.x-o.left,r.y-o.top,Math.max(r.width+o.left+o.right,0),Math.max(r.height+o.top+o.bottom,0)),Ht.free(n),i&&t instanceof Xi&&t.computesBoundsIncludingLocation&&t.location.w()&&e.Ye(t.location),e},ml.prototype.computeMemberBounds=function(e){if(!(this.part instanceof Xi))return e.h(0,0,0,0),e;for(var t=this.part,n=1/0,i=1/0,r=-1/0,o=-1/0,s=t.memberParts;s.next();){var l=s.value;if(l.isVisible()){if(l instanceof kn&&(!t.computesBoundsIncludingLinks||vu(l)||l.fromNode===t||l.toNode===t))continue;l=l.actualBounds,l.left<n&&(n=l.left),l.top<i&&(i=l.top),l.right>r&&(r=l.right),l.bottom>o&&(o=l.bottom)}}return isFinite(n)&&isFinite(i)?e.h(n,i,r-n,o-i):(t=t.location,e.h(t.x,t.y,0,0)),e},at.Object.defineProperties(ml.prototype,{padding:{get:function(){return this.yb},set:function(e){typeof e=="number"&&(e=new vi(e));var t=this.yb;t.D(e)||(this.yb=e=e.J(),this.g("padding",t,e),this.v())}}}),ml.className="Placeholder";function kn(e){Ei.call(this,wn.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=gl,this.Om=0,this.Qm=gl,this.Rm=NaN,this.qj=ov,this.po=.5,this.wd=null,this.Nb=new Xt().freeze(),this.Tg=this.Mg=null,this.ml=new Ht,this.ua=new An,this.u=this.o=this.Sf=this.Wf=null,this.su=new ce,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],e&&Object.assign(this,e)}fi(kn,Ei),kn.prototype.cloneProtected=function(e){Ei.prototype.cloneProtected.call(this,e),e.Qa=this.Qa&-113,e.ff=this.ff,e.gn=this.gn,e.vf=this.vf,e.uo=this.uo,e.qk=this.qk,e.Om=this.Om,e.Qm=this.Qm,e.Rm=this.Rm,e.qj=this.qj,e.po=this.po,this.ba!==null&&(e.ba=this.ba.copy())},_=kn.prototype,_.Af=function(e){Ei.prototype.Af.call(this,e),this.ff=e.ff,this.vf=e.vf,e.Mg=null,e.bb(),e.Sf=this.Sf;var t=e.fromPort;t!==null&&nu(t),e=e.toPort,e!==null&&nu(e)},_.qb=function(e){e.classType===kn?(e.value&2)===2?this.routing=e:e===bu||e===wh||e===Lf?this.curve=e:e===Ip||e===am||e===lm?this.adjusting=e:e!==ov&&e!==gl&&ut("Unknown Link enum value for a Link property: "+e):Ei.prototype.qb.call(this,e)},_.Xc=function(){this.ba===null&&(this.ba=new mp)},_.si=function(){var e=this.fromNode;if(e!==null){var t=e.findVisibleNode();if(t!==null&&(e=t),fl(e)||jh(e))return!1}return e=this.toNode,!(e!==null&&(t=e.findVisibleNode(),t!==null&&(e=t),fl(e)||jh(e)))},_.zv=function(){return!1},_.Av=function(){},_.Zc=function(){return!1},kn.prototype.computeAngle=function(e,t,n){return kn.computeAngle(t,n)},kn.computeAngle=function(e,t){switch(e){default:case gl:e=0;break;case Mp:e=t;break;case Op:e=t+90;break;case Lp:e=t-90;break;case sv:e=t+180;break;case um:e=Ke.bp(t),90<e&&270>e&&(e-=180);break;case Rp:e=Ke.bp(t+90),90<e&&270>e&&(e-=180);break;case Dp:e=Ke.bp(t-90),90<e&&270>e&&(e-=180);break;case cm:if(e=Ke.bp(t),45<e&&135>e||225<e&&315>e)return 0;90<e&&270>e&&(e-=180)}return Ke.bp(e)};function Mf(e){var t=e.fromNode,n=e.toNode,i=null;if(t!==null?i=n!==null?t.px(n):t.containingGroup:n!==null?i=n.containingGroup:i=null,t=i,n=e.Ah,n!==t){n!==null&&ev(n,e),e.Ah=t,t!==null&&qg(t,e);var r=e.containingGroupChanged;if(r!==null){var o=!0,s=e.diagram;s!==null&&(o=s.aa,s.aa=!0),r(e,n,t),s!==null&&(s.aa=o)}!e.fd||e.Lw!==n&&e.Mw!==n||e.bb()}if(e.isLabeledLink)for(e=e.labelNodes;e.next();)e.value.containingGroup=i}_=kn.prototype,_.oh=function(){var e=this.containingGroup;e!==null&&this.fromNode!==e&&this.toNode!==e&&e.computesBoundsIncludingLinks&&Ei.prototype.oh.call(this)},_.To=function(e){var t=this.fromNode;return e===t?this.toNode:t},_.Cz=function(e){var t=this.fromPort;return e===t?this.toPort:t};function l1(e,t){e.wd===null&&(e.wd=new Yt),e.wd.add(t),e.v()}_.Vo=function(e){if(Ei.prototype.Vo.call(this,e),wd(this)&&this.Xo(this.actualBounds),!e){e=this.ef;var t=null;e!==null&&(t=this.fromPort,q0(e,this,t));var n=this.uf;if(n!==null){var i=this.toPort;n===e&&i===t||q0(n,this,i)}Ap(this)}},_.Wo=function(e){if(Ei.prototype.Wo.call(this,e),wd(this)&&this.Xo(this.actualBounds),!e){e=this.ef;var t=null;e!==null&&(t=this.fromPort,em(e,this,t));var n=this.uf;if(n!==null){var i=this.toPort;n===e&&i===t||em(n,this,i)}kp(this)}},_.Lj=function(){if(this.fd=!0,this.wd!==null){var e=this.diagram;if(e!==null)for(var t=this.wd.copy().iterator;t.next();)e.remove(t.value)}this.data!==null&&(e=this.diagram,e!==null&&e.partManager.removeDataForLink(this))},kn.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var e=this.diagram;e!==null&&e.partManager.updateRelationshipsFromData(this)}},kn.prototype.move=function(e,t){var n=t?this.location:this.position,i=n.x;isNaN(i)&&(i=0);var r=n.y;for(isNaN(r)&&(r=0),i=e.x-i,r=e.y-r,t===!0?Ei.prototype.move.call(this,e,!1):(e=ce.allocAt(n.x+i,n.y+r),Ei.prototype.move.call(this,e,!1),ce.free(e)),Eh(this,i,r),e=this.labelNodes;e.next();)t=e.value,n=t.position,t.moveTo(n.x+i,n.y+r)},kn.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var e=this.layer;return e===null?!0:e.allowRelink?(e=e.diagram,!!(e===null||e.allowRelink)):!1},kn.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var e=this.layer;return e===null?!0:e.allowRelink?(e=e.diagram,!!(e===null||e.allowRelink)):!1},kn.prototype.computeMidPoint=function(e){var t=this.pointsCount;if(t===0)return e.assign(qi),e;if(t===1)return e.assign(this.i(0)),e;if(t===2){var n=this.i(0),i=this.i(1);return e.h((n.x+i.x)/2,(n.y+i.y)/2),e}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===bu))return this.ua.Pu(.5,e),e.add(this.i(0)),n=this.ua.figures.first(),e.offset(-n.startX,-n.startY),e;if(this.computeCurve()===bu){if(t===3){n=this.i(0),i=this.i(1);var r=this.i(2);return Ke.ax(n.x,n.y,i.x,i.y,i.x,i.y,r.x,r.y,e),e}if(i=(t-1)/3|0,n=3*(i/2|0),i%2===1){i=this.i(n),r=this.i(n+1);var o=this.i(n+2);n=this.i(n+3),Ke.ax(i.x,i.y,r.x,r.y,o.x,o.y,n.x,n.y,e)}else e.assign(this.i(n));return e}var s=this.flattenedLengths;for(n=this.flattenedTotalLength,r=o=i=0;i<n/2&&o<t&&(r=s[o],!(i+r>n/2));)i+=r,o++;return t=this.i(o),o=this.i(o+1),1>Math.abs(t.x-o.x)?t.y>o.y?e.h(t.x,t.y-(n/2-i)):e.h(t.x,t.y+(n/2-i)):1>Math.abs(t.y-o.y)?t.x>o.x?e.h(t.x-(n/2-i),t.y):e.h(t.x+(n/2-i),t.y):(n=(n/2-i)/r,e.h(t.x+n*(o.x-t.x),t.y+n*(o.y-t.y))),e},kn.prototype.computeMidAngle=function(){var e=this.pointsCount;if(2>e)return NaN;if(e===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===bu))return this.ua.wx(.5);if(this.computeCurve()===bu&&4<=e){var t=(e-1)/3|0,n=3*(t/2|0);if(t%2===1){n=Math.floor(n),e=this.i(n),t=this.i(n+1);var i=this.i(n+2);return n=this.i(n+3),Ke.My(e.x,e.y,t.x,t.y,i.x,i.y,n.x,n.y)}if(0<n&&n+1<e)return this.i(n-1).ab(this.i(n+1))}t=this.flattenedLengths,i=this.flattenedTotalLength;var r=0;n=0;for(var o;r<i/2&&n<e&&(o=t[n],!(r+o>i/2));)r+=o,n++;if(t=this.i(n),i=this.i(n+1),1>Math.abs(t.x-i.x)&&1>Math.abs(t.y-i.y)){if(0<n&&n+2<e)return this.i(n-1).ab(this.i(n+2))}else{if(1>Math.abs(t.x-i.x))return t.y>i.y?270:90;if(1>Math.abs(t.y-i.y))return t.x>i.x?180:0}return t.ab(i)},_=kn.prototype,_.i=function(e){return this.Nb.s[e]},_.dd=function(e,t){this.Nb.cd(e,t)},_.L=function(e,t,n){this.Nb.cd(e,new ce(t,n))},_.Kz=function(e,t){this.Nb.Gb(e,t)},_.m=function(e,t,n){this.Nb.Gb(e,new ce(t,n))},_.ne=function(e){this.Nb.add(e)},_.yf=function(e,t){this.Nb.add(new ce(e,t))},_.pv=function(e){this.Nb.mb(e)},_.Fj=function(){this.Nb.clear()};function Eh(e,t,n){if(t!==0||n!==0)if(e.pointsCount===0)e.defaultFromPoint&&e.defaultFromPoint.offset(t,n),e.defaultToPoint&&e.defaultToPoint.offset(t,n);else{for(var i=e.fd,r=new Xt,o=e.Nb.iterator;o.next();){var s=o.value;r.add(new ce(s.x+t,s.y+n).freeze())}r.freeze(),o=e.Nb,e.Nb=r,s=e.diagram,isNaN(t)||isNaN(n)||s!==null&&s.animationManager.zb?e.v():(e.ke.h(e.ke.x+t,e.ke.y+n),e.pa.h(e.pa.x+t,e.pa.y+n),dl(e)),i?nm(e):(e.defaultFromPoint&&(e.defaultFromPoint=e.i(0)),e.defaultToPoint&&(e.defaultToPoint=e.i(e.pointsCount-1))),s!==null&&s.animationManager.zb&&ro(s.animationManager,e,r),e.g("points",o,r)}}_.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},_.zf=function(){if(this.Mg!==null){for(var e=this.Mg,t=this.Nb,n=1/0,i=1/0,r=e.s,o=r.length,s=0;s<o;s++){var l=r[s];n=Math.min(l.x,n),i=Math.min(l.y,i)}l=s=1/0;for(var u=t.s,f=u.length,p=0;p<f;p++){var x=u[p];s=Math.min(x.x,s),l=Math.min(x.y,l),x.freeze()}if(t.freeze(),f===o){for(o=0;o<f;o++)if(p=r[o],x=u[o],p.x-n!==x.x-s||p.y-i!==x.y-l){this.qc();break}}else this.qc();this.Mg=null,n=this.diagram,n!==null&&n.animationManager.zb&&ro(n.animationManager,this,t),nm(this),this.g("points",e,t)}},_.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function nm(e){e.Nb.count===0?e.fd=!1:(e.fd=!0,e.cq=null,e.vt=NaN,e.defaultFromPoint=e.i(0),e.defaultToPoint=e.i(e.pointsCount-1),sm(e,!1))}_.bb=function(){if(!this.suspendsRouting){var e=this.diagram;if(e){if(e.As.contains(this)||e.undoManager.isUndoingRedoing||(e=e.animationManager,e.isTicking&&!e.isAnimating))return;this.Tg===null||e.isTicking||(this.Tg=null)}e=this.path,e!==null&&(this.fd=!1,this.v(),e.v())}},_.vg=function(){if(!this.fd&&!this.computingPoints){var e=!0;try{this.computingPoints=!0,this.uh(),e=this.computePoints()}catch(t){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,e?this.zf():this.rv()}}},kn.prototype.computePoints=function(){if(this.diagram===null)return!1;var e=this.fromNode,t=null;if(e===null?(Wd||(Wd=new Vn,Wd.desiredSize=ws,Wd.Va()),this.defaultFromPoint&&(Wd.location=this.defaultFromPoint,Wd.Va(),t=e=Wd)):t=this.fromPort,t!==null&&!e.isVisible()){var n=e.findVisibleNode();n!==null&&n!==e?(e=n,t=n.port):e=n}if(this.Lw=e,e===null||!e.location.w())return!1;for(;!(t===null||t.actualBounds.w()&&t.Ed());)t=t.panel;if(t===null)return!1;var i=this.toNode,r=null;if(i===null?(Vd||(Vd=new Vn,Vd.desiredSize=ws,Vd.Va()),this.defaultToPoint&&(Vd.location=this.defaultToPoint,Vd.Va(),r=i=Vd)):r=this.toPort,r===null||i.isVisible()||(n=i.findVisibleNode(),n!==null&&n!==i?(i=n,r=n.port):i=n),this.Mw=i,i===null||!i.location.w())return!1;for(;!(r===null||r.actualBounds.w()&&r.Ed());)r=r.panel;if(r===null)return!1;var o=this.pointsCount,s=this.computeSpot(!0,t);n=this.computeSpot(!1,r);var l=Of(s),u=Of(n),f=t===r&&t!==null,p=this.isOrthogonal,x=this.curve===bu;this.Wf=f&&!p?x=!0:!1;var N=this.computeAdjusting()===gl||f;if(!p&&!f&&l&&u){if(l=!1,!N&&3<=o&&(N=this.getLinkPoint(e,t,s,!0,!1,i,r),u=this.getLinkPoint(i,r,n,!1,!1,e,t),l=this.adjustPoints(0,N,o-1,u))&&(N=this.getLinkPoint(e,t,s,!0,!1,i,r),u=this.getLinkPoint(i,r,n,!1,!1,e,t),this.adjustPoints(0,N,o-1,u)),!l)if(this.Fj(),x){o=this.getLinkPoint(e,t,s,!0,!1,i,r),N=this.getLinkPoint(i,r,n,!1,!1,e,t),l=N.x-o.x,u=N.y-o.y,f=this.computeCurviness(),x=p=0;var O=o.x+l/3,F=o.y+u/3,K=O,ye=F;Ke.B(u,0)?ye=0<l?ye-f:ye+f:(p=-l/u,x=Math.sqrt(f*f/(p*p+1)),0>f&&(x=-x),K=(0>u?-1:1)*x+O,ye=p*(K-O)+F),O=o.x+2*l/3,F=o.y+2*u/3;var ae=O,Oe=F;Ke.B(u,0)?Oe=0<l?Oe-f:Oe+f:(ae=(0>u?-1:1)*x+O,Oe=p*(ae-O)+F),this.Fj(),this.ne(o),this.yf(K,ye),this.yf(ae,Oe),this.ne(N),this.dd(0,this.getLinkPoint(e,t,s,!0,!1,i,r)),this.dd(3,this.getLinkPoint(i,r,n,!1,!1,e,t))}else o=i,N=r,i=this.getLinkPoint(e,t,s,!0,!1,o,N),r=this.getLinkPoint(o,N,n,!1,!1,e,t),this.hasCurviness()?(N=r.x-i.x,n=r.y-i.y,s=this.computeCurviness(),e=i.x+N/2,t=i.y+n/2,o=e,l=t,Ke.B(n,0)?l=0<N?l-s:l+s:(N=-N/n,o=Math.sqrt(s*s/(N*N+1)),0>s&&(o=-o),o=(0>n?-1:1)*o+e,l=N*(o-e)+t),this.ne(i),this.yf(o,l),this.ne(r)):(this.ne(i),this.ne(r),l=Ht.alloc(),t.mi(l),u=l.ca(r),N.mi(l),f=l.ca(i),(u||f)&&(s=t.ga(rm(s),new ce),this.dd(0,this.getLinkPointFromPoint(e,t,s,r,!0,s)),n=N.ga(rm(n),new ce),this.dd(1,this.getLinkPointFromPoint(o,N,n,i,!1,n))),Ht.free(l))}else{x=this.isAvoiding,N&&(p&&x||f)&&this.Fj();var Fe=f?this.computeCurviness():0;x=this.getLinkPoint(e,t,s,!0,p,i,r),O=K=F=0,(p||!l||f)&&(ye=this.computeEndSegmentLength(e,t,s,!0),O=this.getLinkDirection(e,t,x,s,!0,p,i,r),f&&(l||s.D(n)||!p&&s.x+n.x===1&&s.y+n.y===1)&&(O-=p?90:30,0>Fe&&(O-=180)),0>O?O+=360:360<=O&&(O-=360),f&&(ye+=Math.abs(Fe)*(p?1:2)),O===0?F=ye:O===90?K=ye:O===180?F=-ye:O===270?K=-ye:(F=ye*Math.cos(O*Math.PI/180),K=ye*Math.sin(O*Math.PI/180)),s.Mc()&&f&&(ye=t.ga(vr,ce.alloc()),ae=ce.allocAt(ye.x+1e3*F,ye.y+1e3*K),this.getLinkPointFromPoint(e,t,ye,ae,!0,x),ce.free(ye),ce.free(ae))),ye=this.getLinkPoint(i,r,n,!1,p,e,t);var He=Oe=ae=0;if(p||!u||f){var qe=this.computeEndSegmentLength(i,r,n,!1);He=this.getLinkDirection(i,r,ye,n,!1,p,e,t),f&&(u||s.D(n)||!p&&s.x+n.x===1&&s.y+n.y===1)&&(He+=p?0:30,0>Fe&&(He+=180)),0>He?He+=360:360<=He&&(He-=360),f&&(qe+=Math.abs(Fe)*(p?1:2)),He===0?ae=qe:He===90?Oe=qe:He===180?ae=-qe:He===270?Oe=-qe:(ae=qe*Math.cos(He*Math.PI/180),Oe=qe*Math.sin(He*Math.PI/180)),n.Mc()&&f&&(n=r.ga(vr,ce.alloc()),s=ce.allocAt(n.x+1e3*ae,n.y+1e3*Oe),this.getLinkPointFromPoint(i,r,n,s,!1,ye),ce.free(n),ce.free(s))}n=x,(p||!l||f)&&(n=new ce(x.x+F,x.y+K)),s=ye,(p||!u||f)&&(s=new ce(ye.x+ae,ye.y+Oe)),!N&&!p&&l&&3<o&&this.adjustPoints(0,x,o-2,s)?this.dd(o-1,ye):!N&&!p&&u&&3<o&&this.adjustPoints(1,n,o-1,ye)?this.dd(0,x):!N&&(p?6<=o:4<o)&&this.adjustPoints(1,n,o-2,s)?(this.dd(0,x),this.dd(o-1,ye)):(this.Fj(),this.ne(x),(p||!l||f)&&this.ne(n),p&&this.addOrthoPoints(n,O,s,He,e,i),(p||!u||f)&&this.ne(s),this.ne(ye))}return!0};function tv(e,t){return Math.abs(t.x-e.x)>Math.abs(t.y-e.y)?(t.x>=e.x?t.x=e.x+9e9:t.x=e.x-9e9,t.y=e.y):(t.y>=e.y?t.y=e.y+9e9:t.y=e.y-9e9,t.x=e.x),t}kn.prototype.getLinkPointFromPoint=function(e,t,n,i,r,o){if(o===void 0&&(o=new ce),e===null||t===null)return o.assign(n),o;if(e.isVisible()||(r=e.findVisibleNode(),r!==null&&r!==e&&(t=r.port)),e=null,r=t.panel,r===null||r.se()||(r=r.panel),r===null){r=i.x,i=i.y;var s=n.x;n=n.y}else{e=r.oe,r=1/(e.m11*e.m22-e.m12*e.m21),s=e.m22*r;var l=-e.m12*r,u=-e.m21*r,f=e.m11*r,p=r*(e.m21*e.dy-e.m22*e.dx),x=r*(e.m12*e.dx-e.m11*e.dy);r=i.x*s+i.y*u+p,i=i.x*l+i.y*f+x,s=n.x*s+n.y*u+p,n=n.x*l+n.y*f+x}return t.Sj(r,i,s,n,o),e!==null&&o.transform(e),o};function im(e,t){var n=t.Zn;return n===null&&(n=new Kd,n.port=t,n.node=t.part,t.Zn=n),g1(n,e)}kn.prototype.getLinkPoint=function(e,t,n,i,r,o,s,l){if(l===void 0&&(l=new ce),n.sb()&&!Of(n))return t.ga(n,l),l;if(n.$c()){var u=im(this,t);if(u!==null){if(l.assign(u.Zo),r&&this.routing===c1){var f=im(this,s);if(f!==null&&u.Gl<f.Gl){u=ce.alloc(),f=ce.alloc();var p=new Ht(t.ga(Yo,u),t.ga(Oo,f)),x=this.computeSpot(!i,s);e=this.getLinkPoint(o,s,x,!i,r,e,t,f),(n.Hf(Tl)||n.Hf(ks))&&e.y>=p.y&&e.y<=p.y+p.height?l.y=e.y:(n.Hf(ll)||n.Hf(fa))&&e.x>=p.x&&e.x<=p.x+p.width&&(l.x=e.x),ce.free(u),ce.free(f)}}return l}}return n=t.ga(rm(n),ce.alloc()),this.pointsCount>(r?6:2)?(s=i?this.i(1):this.i(this.pointsCount-2),r&&(s=tv(n,s.copy()))):(u=this.computeSpot(!i,s),o=ce.alloc(),s=s.ga(rm(u),o),r&&(s=tv(n,s)),ce.free(o)),this.getLinkPointFromPoint(e,t,n,s,i,l),ce.free(n),l},kn.prototype.getLinkDirection=function(e,t,n,i,r,o,s,l){e:if(i.sb())var u=i.x>i.y?i.x>1-i.y?0:i.x<1-i.y?270:315:i.x<i.y?i.x>1-i.y?90:i.x<1-i.y?180:135:.5>i.x?225:.5<i.x?45:0;else{if(i.$c()&&(u=im(this,t),u!==null))switch(u.Nc){case 1:u=270;break e;case 2:u=180;break e;default:case 4:u=0;break e;case 8:u=90;break e}u=t.ga(vr,ce.alloc()),this.pointsCount>(o?6:2)?(l=r?this.i(1):this.i(this.pointsCount-2),l=o?tv(u,l.copy()):n):(n=ce.alloc(),l=l.ga(vr,n),ce.free(n)),n=Math.abs(l.x-u.x)>Math.abs(l.y-u.y)?l.x>=u.x?0:180:l.y>=u.y?90:270,ce.free(u),u=n}return i.Mc()&&s.Td(e)&&(u+=180,360<=u&&(u-=360)),Of(i)||(e=t.li(),e===0)||(45<=e&&135>e?u+=90:135<=e&&225>e?u+=180:225<=e&&315>e&&(u+=270),360<=u&&(u-=360)),u},kn.prototype.computeEndSegmentLength=function(e,t,n,i){return t!==null&&n.$c()&&(e=im(this,t),e!==null)?e.Ju:(e=i?this.fromEndSegmentLength:this.toEndSegmentLength,t!==null&&isNaN(e)&&(e=i?t.fromEndSegmentLength:t.toEndSegmentLength),isNaN(e)&&(e=10),e)},kn.prototype.computeSpot=function(e,t){return t===void 0&&(t=null),e?(e=t||this.fromPort,e===null?e=vr:(t=this.fromSpot,t.Xb()&&(t=e.fromSpot),e=t===Lr?Di:t)):(e=t||this.toPort,e===null?e=vr:(t=this.toSpot,t.Xb()&&(t=e.toSpot),e=t===Lr?Di:t)),e};function Of(e){return e===Di||e.x===.5&&e.y===.5}function rm(e){return e.x===.5&&e.y===.5?e:vr}kn.prototype.computeOtherPoint=function(e,t){return this.computeAdjusting()!==gl&&4<this.pointsCount?this.computeMidPoint(new ce):(e=t.Zn,e=e!==null?g1(e,this):null,e!==null?e.Zo:t.ga(vr))},kn.prototype.computeShortLength=function(e){if(e){if(e=this.fromShortLength,isNaN(e)){var t=this.fromPort;t!==null&&(e=t.fromShortLength)}return isNaN(e)?0:e}return e=this.toShortLength,isNaN(e)&&(t=this.toPort,t!==null&&(e=t.toShortLength)),isNaN(e)?0:e},kn.prototype.Cf=function(e,t,n,i,r,o){if(this.pickable===!1)return!1;t===void 0&&(t=null),n===void 0&&(n=null);var s=o;if(o===void 0&&(s=er.alloc(),s.reset()),s.multiply(this.transform),this.fh(e,s))return Tg(this,t,n,r),o===void 0&&er.free(s),!0;if(this.Yc(e,s)){var l=!1;if(!this.isAtomic)for(var u=this.O.s,f=u.length;f--;){var p=u[f];if(p.visible||p===this.locationObject){var x=p.actualBounds,N=this.naturalBounds;if(!(x.x>N.width||x.y>N.height||0>x.x+x.width||0>x.y+x.height)){if(x=er.alloc(),x.set(s),p instanceof wn)l=p.Cf(e,t,n,i,r,x);else if(this.path===p){if(p instanceof nr)if(l=e,N=i,p.pickable===!1)l=!1;else if(x.multiply(p.transform),N)e:{var O=l,F=x;if(p.fh(O,F))l=!0;else{if(F===void 0&&(F=p.transform,O.Re(p.actualBounds))){l=!0;break e}l=O.left,N=O.right;var K=O.top;O=O.bottom;var ye=ce.alloc(),ae=ce.alloc(),Oe=ce.alloc(),Fe=er.alloc();Fe.set(F),Fe.bv(p.transform),Fe.Vj(),ae.x=N,ae.y=K,ae.transform(Fe),ye.x=l,ye.y=K,ye.transform(Fe),F=!1,Sd(p,ye,ae,Oe)?F=!0:(ye.x=N,ye.y=O,ye.transform(Fe),Sd(p,ye,ae,Oe)?F=!0:(ae.x=l,ae.y=O,ae.transform(Fe),Sd(p,ye,ae,Oe)?F=!0:(ye.x=l,ye.y=K,ye.transform(Fe),Sd(p,ye,ae,Oe)&&(F=!0)))),er.free(Fe),ce.free(ye),ce.free(ae),ce.free(Oe),l=F}}else l=p.fh(l,x)}else l=na(p,e,i,x);l&&(N=p,t!==null&&(N=t(p)),N&&(n===null||n(N))&&r.add(N)),er.free(x)}}}return o===void 0&&er.free(s),l||this.background!==null||this.areaBackground!==null}return o===void 0&&er.free(s),!1},kn.prototype.computeCurve=function(){if(this.Wf===null){var e=this.fromPort,t=this.isOrthogonal;this.Wf=e!==null&&e===this.toPort&&!t}return this.Wf?bu:this.curve},kn.prototype.computeCorner=function(){if(this.curve===bu)return 0;var e=this.corner;return(isNaN(e)||0>e)&&(e=10),e},kn.prototype.findMidLabel=function(){for(var e=this.path,t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i];if(r!==e&&!r.isPanelMain&&(r.segmentIndex===-1/0||isNaN(r.segmentIndex)))return r}for(e=this.labelNodes;e.next();)if(t=e.value,t.segmentIndex===-1/0||isNaN(t.segmentIndex))return t;return null},kn.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var e=d1;e=Math.max(e,this.computeThickness());var t=this.fromPort,n=this.toPort;if(t!==null&&n!==null){var i=this.findMidLabel();if(i!==null){var r=i.naturalBounds,o=i.margin,s=isNaN(r.width)?30:r.width*i.scale+o.left+o.right;r=isNaN(r.height)?14:r.height*i.scale+o.top+o.bottom,i=i.segmentOrientation,i===Mp||i===um||i===sv?e=Math.max(e,r):i===Lp||i===Dp||i===Op||i===Rp?e=Math.max(e,s):(t=t.ga(vr).ab(n.ga(vr))/180*Math.PI,e=Math.max(e,Math.abs(Math.sin(t)*s)+Math.abs(Math.cos(t)*r)+1)),this.curve===bu&&(e*=1.333)}}return e},kn.prototype.arrangeBundledLinks=function(e,t){if(t)for(t=0;t<e.length;t++){var n=e[t];n.computeAdjusting()===gl&&n.bb()}},kn.prototype.computeCurviness=function(){var e=this.curviness;if(isNaN(e)){e=h1;var t=this.Sf;if(t!==null){for(var n=jt(),i=0,r=t.links,o=0;o<r.length;o++){var s=r[o].computeSpacing();n.push(s),i+=s}for(i=-i/2,o=0;o<r.length;o++){if(r[o]===this){e=i+n[o]/2;break}i+=n[o]}t.Ds===this.fromNode&&(e=-e),gn(n)}}return e},kn.prototype.computeThickness=function(){if(!this.isVisible())return 0;var e=this.path;return e!==null?Math.max(e.strokeWidth,1):1},kn.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},kn.prototype.adjustPoints=function(e,t,n,i){var r=this.computeAdjusting();if(this.isOrthogonal){if(r===am)return!1;r===lm&&(r=Ip)}switch(r){case am:var o=this.i(e),s=this.i(n);if(!o.Xa(t)||!s.Xa(i)){r=o.x,o=o.y;var l=s.x-r,u=s.y-o,f=Math.sqrt(l*l+u*u);if(!Ke.$(f,0)){if(Ke.$(l,0))var p=0>u?-Math.PI/2:Math.PI/2;else p=Math.atan(u/Math.abs(l)),0>l&&(p=Math.PI-p);s=t.x;var x=t.y;l=i.x-s;var N=i.y-x;for(u=Math.sqrt(l*l+N*N),Ke.$(l,0)?N=0>N?-Math.PI/2:Math.PI/2:(N=Math.atan(N/Math.abs(l)),0>l&&(N=Math.PI-N)),f=u/f,p=N-p,this.dd(e,t),e+=1;e<n;e++)t=this.i(e),l=t.x-r,u=t.y-o,t=Math.sqrt(l*l+u*u),Ke.$(t,0)||(Ke.$(l,0)?u=0>u?-Math.PI/2:Math.PI/2:(u=Math.atan(u/Math.abs(l)),0>l&&(u=Math.PI-u)),l=u+p,t*=f,this.L(e,s+t*Math.cos(l),x+t*Math.sin(l)));this.dd(n,i)}}return!0;case lm:if(o=this.i(e),x=this.i(n),!o.Xa(t)||!x.Xa(i)){r=o.x,o=o.y,s=x.x,x=x.y,f=(s-r)*(s-r)+(x-o)*(x-o),l=t.x,p=t.y,u=i.x,N=i.y;var O=1;if(u-l!==0){var F=(N-p)/(u-l);O=Math.sqrt(1+1/(F*F))}else F=9e9;for(this.dd(e,t),e+=1;e<n;e++){t=this.i(e);var K=t.x,ye=t.y,ae=.5;f!==0&&(ae=((r-K)*(r-s)+(o-ye)*(o-x))/f);var Oe=r+ae*(s-r),Fe=o+ae*(x-o);t=Math.sqrt((K-Oe)*(K-Oe)+(ye-Fe)*(ye-Fe)),ye<F*(K-Oe)+Fe&&(t=-t),0<F&&(t=-t),K=l+ae*(u-l),ae=p+ae*(N-p),F!==0?(t=K+t/O,this.L(e,t,ae-(t-K)/F)):this.L(e,K,ae+t)}this.dd(n,i)}return!0;case Ip:e:{if(this.isOrthogonal&&(r=this.i(e),o=this.i(e+1),s=this.i(e+2),l=o.x,p=o.y,x=l,f=p,Ke.B(r.y,o.y)?Ke.B(o.x,s.x)?p=t.y:Ke.B(o.y,s.y)&&(l=t.x):Ke.B(r.x,o.x)&&(Ke.B(o.y,s.y)?l=t.x:Ke.B(o.x,s.x)&&(p=t.y)),this.L(e+1,l,p),r=this.i(n),o=this.i(n-1),s=this.i(n-2),l=o.x,p=o.y,u=l,N=p,Ke.B(r.y,o.y)?Ke.B(o.x,s.x)?p=i.y:Ke.B(o.y,s.y)&&(l=i.x):Ke.B(r.x,o.x)&&(Ke.B(o.y,s.y)?l=i.x:Ke.B(o.x,s.x)&&(p=i.y)),this.L(n-1,l,p),nv(this))){this.L(e+1,x,f),this.L(n-1,u,N),n=!1;break e}this.dd(e,t),this.dd(n,i),n=!0}return n;default:return!1}},kn.prototype.addOrthoPoints=function(e,t,n,i,r,o){0>t?t+=360:360<=t&&(t-=360),0>i?i+=360:360<=i&&(i-=360);var s=i;t=315<=t||45>t?0:45<=t&&135>t?90:135<=t&&225>t?180:270,i=315<=i||45>i?0:45<=i&&135>i?90:135<=i&&225>i?180:270;var l=r.actualBounds.copy(),u=o.actualBounds.copy();if(l.w()&&u.w()){l.Bc(Pp,Pp),u.Bc(Pp,Pp),l.Ye(e),u.Ye(n);var f=ce.alloc(),p=ce.alloc();t===0?n.x>e.x||i===270&&n.y<e.y&&u.right>e.x||i===90&&n.y>e.y&&u.right>e.x?(f.h(n.x,e.y),p.h(n.x,(e.y+n.y)/2),i===180?(f.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1),p.x=f.x,p.y=n.y):i===270&&n.y<e.y||i===90&&n.y>e.y?(f.x=e.x<u.left?this.computeMidOrthoPosition(e.x,e.y,u.left,n.y,!1):e.x<u.right&&(i===270&&e.y<u.top||i===90&&e.y>u.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):u.right,p.x=f.x,p.y=n.y):i===0&&e.x<u.left&&e.y>u.top&&e.y<u.bottom&&(f.x=e.x,f.y=e.y<n.y?Math.min(n.y,u.top):Math.max(n.y,u.bottom),p.y=f.y)):(f.h(e.x,n.y),p.h((e.x+n.x)/2,n.y),(i===180||i===90&&n.y<l.top||i===270&&n.y>l.bottom)&&(i===180&&(u.ca(e)||l.ca(n))?f.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.y<e.y&&(i===180||i===90)?f.y=this.computeMidOrthoPosition(e.x,l.top,n.x,Math.max(n.y,u.bottom),!0):n.y>e.y&&(i===180||i===270)&&(f.y=this.computeMidOrthoPosition(e.x,l.bottom,n.x,Math.min(n.y,u.top),!0)),p.x=n.x,p.y=f.y),f.y>l.top&&f.y<l.bottom&&(n.x>=l.left&&n.x<=e.x||e.x<=u.right&&e.x>=n.x?(i===90||i===270)&&(f.h(Math.max((e.x+n.x)/2,e.x),e.y),p.h(f.x,n.y)):(f.y=i===270||(i===0||i===180)&&n.y<e.y?Math.min(n.y,i===0?l.top:Math.min(l.top,u.top)):Math.max(n.y,i===0?l.bottom:Math.max(l.bottom,u.bottom)),p.x=n.x,p.y=f.y))):t===180?n.x<e.x||i===270&&n.y<e.y&&u.left<e.x||i===90&&n.y>e.y&&u.left<e.x?(f.h(n.x,e.y),p.h(n.x,(e.y+n.y)/2),i===0?(f.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1),p.x=f.x,p.y=n.y):i===270&&n.y<e.y||i===90&&n.y>e.y?(f.x=e.x>u.right?this.computeMidOrthoPosition(e.x,e.y,u.right,n.y,!1):e.x>u.left&&(i===270&&e.y<u.top||i===90&&e.y>u.bottom)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):u.left,p.x=f.x,p.y=n.y):i===180&&e.x>u.right&&e.y>u.top&&e.y<u.bottom&&(f.x=e.x,f.y=e.y<n.y?Math.min(n.y,u.top):Math.max(n.y,u.bottom),p.y=f.y)):(f.h(e.x,n.y),p.h((e.x+n.x)/2,n.y),(i===0||i===90&&n.y<l.top||i===270&&n.y>l.bottom)&&(i===0&&(u.ca(e)||l.ca(n))?f.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):n.y<e.y&&(i===0||i===90)?f.y=this.computeMidOrthoPosition(e.x,l.top,n.x,Math.max(n.y,u.bottom),!0):n.y>e.y&&(i===0||i===270)&&(f.y=this.computeMidOrthoPosition(e.x,l.bottom,n.x,Math.min(n.y,u.top),!0)),p.x=n.x,p.y=f.y),f.y>l.top&&f.y<l.bottom&&(n.x<=l.right&&n.x>=e.x||e.x>=u.left&&e.x<=n.x?(i===90||i===270)&&(f.h(Math.min((e.x+n.x)/2,e.x),e.y),p.h(f.x,n.y)):(f.y=i===270||(i===0||i===180)&&n.y<e.y?Math.min(n.y,i===180?l.top:Math.min(l.top,u.top)):Math.max(n.y,i===180?l.bottom:Math.max(l.bottom,u.bottom)),p.x=n.x,p.y=f.y))):t===90?n.y>e.y||i===180&&n.x<e.x&&u.bottom>e.y||i===0&&n.x>e.x&&u.bottom>e.y?(f.h(e.x,n.y),p.h((e.x+n.x)/2,n.y),i===270?(f.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0),p.x=n.x,p.y=f.y):i===180&&n.x<e.x||i===0&&n.x>e.x?(f.y=e.y<u.top?this.computeMidOrthoPosition(e.x,e.y,n.x,u.top,!0):e.y<u.bottom&&(i===180&&e.x<u.left||i===0&&e.x>u.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):u.bottom,p.x=n.x,p.y=f.y):i===90&&e.y<u.top&&e.x>u.left&&e.x<u.right&&(f.x=e.x<n.x?Math.min(n.x,u.left):Math.max(n.x,u.right),f.y=e.y,p.x=f.x)):(f.h(n.x,e.y),p.h(n.x,(e.y+n.y)/2),(i===270||i===0&&n.x<l.left||i===180&&n.x>l.right)&&(i===270&&(u.ca(e)||l.ca(n))?f.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.x<e.x&&(i===270||i===0)?f.x=this.computeMidOrthoPosition(l.left,e.y,Math.max(n.x,u.right),n.y,!1):n.x>e.x&&(i===270||i===180)&&(f.x=this.computeMidOrthoPosition(l.right,e.y,Math.min(n.x,u.left),n.y,!1)),p.x=f.x,p.y=n.y),f.x>l.left&&f.x<l.right&&(n.y>=l.top&&n.y<=e.y||e.y<=u.bottom&&e.y>=n.y?(i===0||i===180)&&(f.h(e.x,Math.max((e.y+n.y)/2,e.y)),p.h(n.x,f.y)):(f.x=i===180||(i===90||i===270)&&n.x<e.x?Math.min(n.x,i===90?l.left:Math.min(l.left,u.left)):Math.max(n.x,i===90?l.right:Math.max(l.right,u.right)),p.x=f.x,p.y=n.y))):n.y<e.y||i===180&&n.x<e.x&&u.top<e.y||i===0&&n.x>e.x&&u.top<e.y?(f.h(e.x,n.y),p.h((e.x+n.x)/2,n.y),i===90?(f.y=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0),p.x=n.x,p.y=f.y):i===180&&n.x<e.x||i===0&&n.x>=e.x?(f.y=e.y>u.bottom?this.computeMidOrthoPosition(e.x,e.y,n.x,u.bottom,!0):e.y>u.top&&(i===180&&e.x<u.left||i===0&&e.x>u.right)?this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!0):u.top,p.x=n.x,p.y=f.y):i===270&&e.y>u.bottom&&e.x>u.left&&e.x<u.right&&(f.x=e.x<n.x?Math.min(n.x,u.left):Math.max(n.x,u.right),f.y=e.y,p.x=f.x)):(f.h(n.x,e.y),p.h(n.x,(e.y+n.y)/2),(i===90||i===0&&n.x<l.left||i===180&&n.x>l.right)&&(i===90&&(u.ca(e)||l.ca(n))?f.x=this.computeMidOrthoPosition(e.x,e.y,n.x,n.y,!1):n.x<e.x&&(i===90||i===0)?f.x=this.computeMidOrthoPosition(l.left,e.y,Math.max(n.x,u.right),n.y,!1):n.x>e.x&&(i===90||i===180)&&(f.x=this.computeMidOrthoPosition(l.right,e.y,Math.min(n.x,u.left),n.y,!1)),p.x=f.x,p.y=n.y),f.x>l.left&&f.x<l.right&&(n.y<=l.bottom&&n.y>=e.y||e.y>=u.top&&e.y<=n.y?(i===0||i===180)&&(f.h(e.x,Math.min((e.y+n.y)/2,e.y)),p.h(n.x,f.y)):(f.x=i===180||(i===90||i===270)&&n.x<e.x?Math.min(n.x,i===270?l.left:Math.min(l.left,u.left)):Math.max(n.x,i===270?l.right:Math.max(l.right,u.right)),p.x=f.x,p.y=n.y)));var x=n;if(this.isAvoiding){var N=this.diagram;if(N===null||r===o||this.layer.isTemporary||!hf(N)||l.ca(x)&&!o.Td(r)||u.ca(e)&&!r.Td(o))t=!1;else{var O=df(N,!0,this.containingGroup,null);if(this.segmentIndex!==17&&O.Yj(Math.min(e.x,f.x),Math.min(e.y,f.y),Math.abs(e.x-f.x),Math.abs(e.y-f.y))&&O.Yj(Math.min(f.x,p.x),Math.min(f.y,p.y),Math.abs(f.x-p.x),Math.abs(f.y-p.y))&&O.Yj(Math.min(p.x,x.x),Math.min(p.y,x.y),Math.abs(p.x-x.x),Math.abs(p.y-x.y)))t=!1;else{r=e,o=x;var F=n=null;if(N.isVirtualized){N=O.bounds.copy(),N.Bc(-O.Ho,-O.Go);var K=ce.alloc();Rf(O,e.x,e.y)||(Ke.Ff(N.x,N.y,N.x+N.width,N.y+N.height,e.x,e.y,f.x,f.y,K)?(n=e=K.copy(),t=K.ab(f)):Ke.Ff(N.x,N.y,N.x+N.width,N.y+N.height,f.x,f.y,p.x,p.y,K)?(n=e=K.copy(),t=K.ab(p)):Ke.Ff(N.x,N.y,N.x+N.width,N.y+N.height,p.x,p.y,x.x,x.y,K)&&(n=e=K.copy(),t=K.ab(x))),Rf(O,x.x,x.y)||(Ke.Ff(N.x,N.y,N.x+N.width,N.y+N.height,x.x,x.y,p.x,p.y,K)?(F=x=K.copy(),i=p.ab(K)):Ke.Ff(N.x,N.y,N.x+N.width,N.y+N.height,p.x,p.y,f.x,f.y,K)?(F=x=K.copy(),i=f.ab(K)):Ke.Ff(N.x,N.y,N.x+N.width,N.y+N.height,f.x,f.y,e.x,e.y,K)&&(F=x=K.copy(),i=e.ab(K))),ce.free(K)}l=l.copy().ed(u),l.Bc(O.Ho*O.Os,O.Go*O.Os),p1(O,e,t,x,i,l,!0),u=Hc(O,x.x,x.y),!O.abort&&u>=Df&&(f1(O),l.Bc(O.Ho*O.Hx,O.Go*O.Ix),p1(O,e,t,x,i,l,!1),u=Hc(O,x.x,x.y)),!O.abort&&u<Df&&Hc(O,x.x,x.y)!==Ch?(iv(this,O,x.x,x.y,i,!0,s),l=this.i(2),4>this.pointsCount?(t===0||t===180?(l.x=e.x,l.y=x.y):(l.x=x.x,l.y=e.y),this.L(2,l.x,l.y),this.m(3,l.x,l.y)):(s=this.i(3),t===0||t===180?Ke.B(l.x,s.x)?(l=t===0?Math.max(l.x,e.x):Math.min(l.x,e.x),this.L(2,l,e.y),this.L(3,l,s.y)):Ke.B(l.y,s.y)?(Math.abs(e.y-l.y)<=O.Go/2&&(this.L(2,l.x,e.y),this.L(3,s.x,e.y)),this.m(2,l.x,e.y)):this.L(2,e.x,l.y):(t===90||t===270)&&(Ke.B(l.y,s.y)?(l=t===90?Math.max(l.y,e.y):Math.min(l.y,e.y),this.L(2,e.x,l),this.L(3,s.x,l)):Ke.B(l.x,s.x)?(Math.abs(e.x-l.x)<=O.Ho/2&&(this.L(2,e.x,l.y),this.L(3,e.x,s.y)),this.m(2,e.x,l.y)):this.L(2,l.x,e.y))),n!==null&&(e=this.i(1),s=this.i(2),e.x!==s.x&&e.y!==s.y?t===0||t===180?this.m(2,e.x,s.y):this.m(2,s.x,e.y):t===0||t===180?this.m(2,r.x,n.y):this.m(2,n.x,r.y)),F!==null&&(i===0||i===180?this.yf(o.x,F.y):this.yf(F.x,o.y)),t=!0):t=!1}}}else t=!1;t||(this.ne(f.copy()),this.ne(p.copy())),ce.free(f),ce.free(p)}},kn.prototype.computeMidOrthoPosition=function(e,t,n,i,r){var o=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(o=this.computeCurviness()),r?(t+i)/2+o:(e+n)/2+o};function nv(e){if(e.diagram===null||!e.isAvoiding||!hf(e.diagram))return!1;var t=e.points.s,n=t.length;if(4>n)return!1;e=df(e.diagram,!0,e.containingGroup,null);for(var i=1;i<n-2;i++){var r=t[i],o=t[i+1];if(!e.Yj(Math.min(r.x,o.x),Math.min(r.y,o.y),Math.abs(r.x-o.x),Math.abs(r.y-o.y)))return!0}return!1}function iv(e,t,n,i,r,o,s){var l=t.Ho,u=t.Go,f=Hc(t,n,i),p=n,x=i;for(r===0?p+=l:r===90?x+=u:r===180?p-=l:x-=u,r!==s&&f>Cd&&Hc(t,p,x)!==f-1&&(Hc(t,n-l,i)===f-1?(r=180,p=n-l,x=i):Hc(t,n+l,i)===f-1?(r=0,p=n+l,x=i):Hc(t,n,i-u)===f-1?(r=270,p=n,x=i-u):Hc(t,n,i+u)===f-1&&(r=90,p=n,x=i+u));f>Cd&&Hc(t,p,x)===f-1;)n=p,i=x,r===0?p+=l:r===90?x+=u:r===180?p-=l:x-=u,--f;o?f>Cd&&(r===180||r===0?n=Math.floor(n/l)*l+l/2:(r===90||r===270)&&(i=Math.floor(i/u)*u+u/2)):(n=Math.floor(n/l)*l+l/2,i=Math.floor(i/u)*u+u/2),f>Cd&&(o=r,s=n,p=i,r===0?(o=90,p+=u):r===90?(o=180,s-=l):r===180?(o=270,p-=u):r===270&&(o=0,s+=l),Hc(t,s,p)===f-1?iv(e,t,s,p,o,!1,o):(s=n,p=i,r===0?(o=270,p-=u):r===90?(o=0,s+=l):r===180?(o=90,p+=u):r===270&&(o=180,s-=l),Hc(t,s,p)===f-1&&iv(e,t,s,p,o,!1,o))),e.yf(n,i)}kn.prototype.ez=function(e){var t=e.x;e=e.y;for(var n=this.i(0),i=this.i(1),r=Pr(t,e,n.x,n.y,i.x,i.y),o=0,s=1;s<this.pointsCount-1;s++){n=this.i(s+1);var l=Pr(t,e,i.x,i.y,n.x,n.y);i=n,l<r&&(o=s,r=l)}return o},kn.prototype.qc=function(){this.lk=!1,this.v()},kn.prototype.Ul=function(e){if(!(!e&&(this.fd===!1||(e=this.Pb(),this.lk&&(e===null||e.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),e=this.path,e!==null)){e.ua=this.ua;for(var t=this.O.s,n=t.length,i=0;i<n;i++){var r=t[i];r!==e&&r.isPanelMain&&r instanceof nr&&(r.ua=this.ua)}}},kn.prototype.makeGeometry=function(){var e=this.ua,t=this.pointsCount,n=!1,i=this.diagram;i!==null&&wd(this)&&i.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(i.animationManager.isAnimating||i.currentTool!==i.toolManager)&&(n=!0);var r=this.i(0).copy(),o=r.copy();i=this.Nb.s;var s=this.computeCurve();if(s===bu&&3<=t&&!Ke.$(this.smoothness,0))if(t===3){var l=this.i(1);i=Math.min(r.x,l.x);var u=Math.min(r.y,l.y);l=this.i(2),i=Math.min(i,l.x),u=Math.min(u,l.y)}else{if(this.isOrthogonal)for(u=0;u<t;u++)l=i[u],o.x=Math.min(l.x,o.x),o.y=Math.min(l.y,o.y);else for(i=3;i<t;i+=3)i+3>=t&&(i=t-1),u=this.i(i),o.x=Math.min(u.x,o.x),o.y=Math.min(u.y,o.y);i=o.x,u=o.y}else{for(u=0;u<t;u++)l=i[u],o.x=Math.min(l.x,o.x),o.y=Math.min(l.y,o.y);i=o.x,u=o.y}if(i-=this.su.x,u-=this.su.y,r.x-=i,r.y-=u,t!==2||wd(this)){if(e.type=An.o,l=zy(e),this.computeShortLength(!0)!==0&&(r=jd(this,r,!0,o)),If(l,r.x,r.y,!1),s===bu&&3<=t&&!Ke.$(this.smoothness,0))if(t===3)n=this.i(1),t=n.x-i,n=n.y-u,r=this.i(2).copy(),r.x-=i,r.y-=u,this.computeShortLength(!1)!==0&&(r=jd(this,r,!1,o)),bh(l,t,n,t,n,r.x,r.y);else if(this.isOrthogonal){t=ce.allocAt(i,u),n=ce.alloc(),n.assign(this.i(1)),o=ce.allocAt(i,u),r=ce.allocAt(i,u),s=this.i(0);for(var f,p=this.smoothness/3,x=1;x<this.pointsCount-1;x++){f=this.i(x);var N=s,O=f,F=this.i(rv(this,f,x,!1));if((!Ke.$(N.x,O.x)||!Ke.$(O.x,F.x))&&(!Ke.$(N.y,O.y)||!Ke.$(O.y,F.y))){var K=p;isNaN(K)&&(K=this.smoothness/3);var ye=N.x;N=N.y;var ae=O.x;O=O.y;var Oe=F.x;F=F.y;var Fe=K*om(ye,N,ae,O);K*=om(ae,O,Oe,F),Ke.$(N,O)&&Ke.$(ae,Oe)&&(ae>ye?F>O?(o.x=ae-Fe,o.y=O-Fe,r.x=ae+K,r.y=O+K):(o.x=ae-Fe,o.y=O+Fe,r.x=ae+K,r.y=O-K):F>O?(o.x=ae+Fe,o.y=O-Fe,r.x=ae-K,r.y=O+K):(o.x=ae+Fe,o.y=O+Fe,r.x=ae-K,r.y=O-K)),Ke.$(ye,ae)&&Ke.$(O,F)&&(O>N?(Oe>ae?(o.x=ae-Fe,o.y=O-Fe,r.x=ae+K):(o.x=ae+Fe,o.y=O-Fe,r.x=ae-K),r.y=O+K):(Oe>ae?(o.x=ae-Fe,o.y=O+Fe,r.x=ae+K):(o.x=ae+Fe,o.y=O+Fe,r.x=ae-K),r.y=O-K)),(Ke.$(ye,ae)&&Ke.$(ae,Oe)||Ke.$(N,O)&&Ke.$(O,F))&&(ye=.5*(ye+Oe),N=.5*(N+F),o.x=ye,o.y=N,r.x=ye,r.y=N),(x===1||x===2&&Ke.$(s.x,this.i(0).x)&&Ke.$(s.y,this.i(0).y))&&(n.x=.5*(s.x+f.x),n.y=.5*(s.y+f.y)),bh(l,n.x-i,n.y-u,o.x-i,o.y-u,f.x-i,f.y-u),t.set(o),n.set(r),s=f}}f=s.x,s=s.y,p=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(p=jd(this,p.copy(),!1,br)),f=.5*(f+p.x),s=.5*(s+p.y),bh(l,r.x-i,r.y-u,f-i,s-u,p.x-i,p.y-u),ce.free(t),ce.free(n),ce.free(o),ce.free(r)}else for(n=3;n<t;n+=3)o=this.i(n-2),n+3>=t&&(n=t-1),r=this.i(n-1),s=this.i(n),n===t-1&&this.computeShortLength(!1)!==0&&(s=jd(this,s.copy(),!1,br)),bh(l,o.x-i,o.y-u,r.x-i,r.y-u,s.x-i,s.y-u);else{for(o=ce.alloc(),o.assign(this.i(0)),r=ce.alloc(),r.assign(o),s=this.computeCorner(),x=1,f=0;x<t;){if(x=rv(this,o,x,1<x),p=this.i(x),x>=t-1){if(!o.D(p))this.computeShortLength(!1)!==0&&(p=jd(this,p.copy(),!1,br)),Gd(this,l,-i,-u,o,p,n);else if(f===0)for(x=1;x<t;)r.assign(o),p=this.i(x++),Gd(this,l,-i,-u,o,p,n),o.assign(p);break}if(f=rv(this,p,x+1,x<t-3),x=-i,ye=-u,N=p,ae=this.i(f),K=n,Ke.B(o.y,N.y)&&Ke.B(N.x,ae.x))if(F=Math.min(s,Math.abs(N.x-r.x)/2),F=Fe=Math.min(F,Math.abs(ae.y-N.y)/2),Ke.B(F,0))Gd(this,l,x,ye,o,N,K),o.assign(N);else{var He=N.x,qe=N.y;O=He,Oe=qe,N.x>o.x?He=N.x-F:He=N.x+F,ae.y>N.y?Oe=N.y+Fe:Oe=N.y-Fe,ae=ce.allocAt(He,qe),Gd(this,l,x,ye,o,ae,K),ce.free(ae),Z0(l,N.x+x,N.y+ye,O+x,Oe+ye),o.h(O,Oe)}else Ke.B(o.x,N.x)&&Ke.B(N.y,ae.y)?(F=Math.min(s,Math.abs(N.y-r.y)/2),F=Fe=Math.min(F,Math.abs(ae.x-N.x)/2),Ke.B(Fe,0)?(Gd(this,l,x,ye,o,N,K),o.assign(N)):(He=N.x,qe=N.y,O=He,Oe=qe,N.y>o.y?qe=N.y-F:qe=N.y+F,ae.x>N.x?O=N.x+Fe:O=N.x-Fe,ae=ce.allocAt(He,qe),Gd(this,l,x,ye,o,ae,K),ce.free(ae),Z0(l,N.x+x,N.y+ye,O+x,Oe+ye),o.h(O,Oe))):(Gd(this,l,x,ye,o,N,K),o.assign(N));r.assign(p),x=f}ce.free(o)}X0=l}else l=this.i(1).copy(),l.x-=i,l.y-=u,this.computeShortLength(!0)!==0&&(r=jd(this,r,!0,o)),this.computeShortLength(!1)!==0&&(l=jd(this,l,!1,o)),e.type=An.j,e.startX=r.x,e.startY=r.y,e.endX=l.x,e.endY=l.y;return this.lk=!0,e};function om(e,t,n,i){return e=n-e,isNaN(e)||e===1/0||e===-1/0?NaN:(0>e&&(e=-e),t=i-t,isNaN(t)||t===1/0||t===-1/0?NaN:(0>t&&(t=-t),Ke.$(e,0)?t:Ke.$(t,0)?e:Math.sqrt(e*e+t*t)))}function jd(e,t,n,i){var r=e.pointsCount;if(2>r)return t;if(n){var o=e.i(1);if(n=o.x-i.x,o=o.y-i.y,i=om(t.x,t.y,n,o),i===0)return t;r=r===2?.5*i:i,e=e.computeShortLength(!0),e>r&&(e=r),r=e*(o-t.y)/i,t.x+=e*(n-t.x)/i,t.y+=r}else{if(o=e.i(r-2),n=o.x-i.x,o=o.y-i.y,i=om(t.x,t.y,n,o),i===0)return t;r=r===2?.5*i:i,e=e.computeShortLength(!1),e>r&&(e=r),r=e*(t.y-o)/i,t.x-=e*(t.x-n)/i,t.y-=r}return t}function rv(e,t,n,i){for(var r=e.pointsCount,o=t;Ke.$(t.x,o.x)&&Ke.$(t.y,o.y);){if(n>=r)return r-1;o=e.i(n++)}if(!Ke.$(t.x,o.x)&&!Ke.$(t.y,o.y))return n-1;for(var s=o;Ke.$(t.x,o.x)&&Ke.$(o.x,s.x)&&(!i||(t.y>=o.y?o.y>=s.y:o.y<=s.y))||Ke.$(t.y,o.y)&&Ke.$(o.y,s.y)&&(!i||(t.x>=o.x?o.x>=s.x:o.x<=s.x));){if(n>=r)return r-1;s=e.i(n++)}return n-2}kn.prototype.computeJumpLength=function(){return 10};function Gd(e,t,n,i,r,o,s){if(!s&&wd(e)){s=e.computeJumpLength();var l=s/2,u=[],f=0;if(e.isVisible()&&(f=zb(e,r,o,u)),0<f){if(Ke.B(r.y,o.y))if(r.x<o.x)for(var p=0;p<f;){var x=Math.max(r.x,Math.min(u[p++]-l,o.x-s));t.lineTo(x+n,o.y+i);for(var N=x+n,O=Math.min(x+s,o.x);p<f&&(x=u[p],x<O+s);)p++,O=Math.min(x+l,o.x);x=o.y-s+i,O+=n;var F=o.y+i;e.curve===wh?If(t,O,F,!1):bh(t,N,x,O,x,O,F)}else for(--f;0<=f;){for(p=Math.min(r.x,Math.max(u[f--]+l,o.x+s)),t.lineTo(p+n,o.y+i),N=p+n,x=Math.max(p-s,o.x);0<=f&&(p=u[f],p>x-s);)f--,x=Math.max(p-l,o.x);p=o.y-s+i,x+=n,O=o.y+i,e.curve===wh?If(t,x,O,!1):bh(t,N,p,x,p,x,O)}else if(Ke.B(r.x,o.x))if(r.y<o.y)for(p=0;p<f;){for(x=Math.max(r.y,Math.min(u[p++]-l,o.y-s)),t.lineTo(o.x+n,x+i),N=x+i,x=Math.min(x+s,o.y);p<f&&(O=u[p],O<x+s);)p++,x=Math.min(O+l,o.y);O=o.x-s+n,F=o.x+n,x+=i,e.curve===wh?If(t,F,x,!1):bh(t,O,N,O,x,F,x)}else for(--f;0<=f;){for(p=Math.min(r.y,Math.max(u[f--]+l,o.y+s)),t.lineTo(o.x+n,p+i),N=p+i,p=Math.max(p-s,o.y);0<=f&&(x=u[f],x>p-s);)f--,p=Math.max(x-l,o.y);x=o.x-s+n,O=o.x+n,p+=i,e.curve===wh?If(t,O,p,!1):bh(t,x,N,x,p,O,p)}}}t.lineTo(o.x+n,o.y+i)}function zb(e,t,n,i){var r=e.diagram;if(r===null||t.D(n))return 0;for(r=r.layers;r.next();){var o=r.value;if(o!==null&&o.visible){o=o.Pa.s;for(var s=o.length,l=0;l<s;l++){var u=o[l];if(u instanceof kn){if(u===e)return 0<i.length&&i.sort(function(p,x){return p-x}),i.length;if(u.isVisible()&&wd(u)){var f=u.routeBounds;f.w()&&e.routeBounds.Yc(f)&&!e.usesSamePort(u)&&(f=u.path,f!==null&&f.Ed()&&Ub(t,n,i,u))}}}}}return 0<i.length&&i.sort(function(p,x){return p-x}),i.length}function Ub(e,t,n,i){for(var r=Ke.B(e.y,t.y),o=i.pointsCount,s=i.i(0),l=ce.alloc(),u=1;u<o;u++){var f=i.i(u);if(u<o-1){var p=i.i(u+1);if(s.y===f.y&&f.y===p.y){if(f.x>s.x&&p.x>=f.x||f.x<s.x&&p.x<=f.x)continue}else if(s.x===f.x&&f.x===p.x&&(f.y>s.y&&p.y>=f.y||f.y<s.y&&p.y<=f.y))continue}e:{p=e.x;var x=e.y,N=t.x,O=t.y,F=s.x;s=s.y;var K=f.x,ye=f.y;if(Ke.B(p,N)){if(!Ke.B(x,O)&&Ke.B(s,ye)&&Math.min(x,O)<s&&Math.max(x,O)>s&&Math.min(F,K)<p&&Math.max(F,K)>p&&!Ke.B(F,K)){l.x=p,l.y=s,p=!0;break e}}else if(Ke.B(x,O)&&Ke.B(F,K)&&Math.min(p,N)<F&&Math.max(p,N)>F&&Math.min(s,ye)<x&&Math.max(s,ye)>x&&!Ke.B(s,ye)){l.x=F,l.y=x,p=!0;break e}l.x=0,l.y=0,p=!1}p&&(r?n.push(l.x):n.push(l.y)),s=f}ce.free(l)}function wd(e){return e=e.curve,e===Lf||e===wh}function sm(e,t){(t||wd(e))&&(t=e.diagram,t===null||t.animationManager.isTicking||t.Eh.contains(e)||e.ml.width===0&&e.ml.height===0||t.Eh.add(e,e.ml.copy()))}kn.prototype.Xo=function(e){var t=this.layer;if(t!==null&&t.visible&&!t.isTemporary){var n=t.diagram;if(n!==null&&!n.animationManager.isTicking){var i=!1;for(n=n.layers;n.next();){var r=n.value;if(r.visible){if(r===t){i=!0;var o=!1;r=r.Pa.s;for(var s=r.length,l=0;l<s;l++){var u=r[l];u instanceof kn&&(u===this?o=!0:o&&u1(this,u,e))}}else if(i)for(o=r.Pa.s,r=o.length,s=0;s<r;s++)l=o[s],l instanceof kn&&u1(this,l,e)}}}}};function u1(e,t,n){if(t!==null&&t.lk&&t.fd&&wd(t)){var i=t.routeBounds;i.w()&&(e.routeBounds.Yc(i)||n.Yc(i))&&(e.usesSamePort(t)||t.qc())}}kn.prototype.usesSamePort=function(e){var t=this.pointsCount,n=e.pointsCount;if(0<t&&0<n){var i=this.i(0),r=e.i(0);if(i.Xa(r)||(t=this.i(t-1),e=e.i(n-1),t.Xa(e)||i.Xa(e)||t.Xa(r)))return!0}else if(this.fromNode===e.fromNode||this.toNode===e.toNode||this.fromNode===e.toNode||this.toNode===e.fromNode)return!0;return!1},kn.prototype.isVisible=function(){if(!Ei.prototype.isVisible.call(this))return!1;var e=this.containingGroup,t=!0,n=this.diagram;if(n!==null&&(t=n.isTreePathToChildren),n=this.fromNode,n!==null){if(this.isTreeLink&&t&&!n.isTreeExpanded)return!1;if(n===e)return!0;for(var i=n;i!==null;){if(i.labeledLink===this)return!0;i=i.containingGroup}if(n=n.findVisibleNode(),n===null||n===e)return!1}if(n=this.toNode,n!==null){if(this.isTreeLink&&!t&&!n.isTreeExpanded)return!1;if(n===e)return!0;for(t=n;t!==null;){if(t.labeledLink===this)return!0;t=t.containingGroup}if(t=n.findVisibleNode(),t===null||t===e)return!1}return!0},kn.prototype.Zb=function(e){if(Ei.prototype.Zb.call(this,e),e&&sm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var t=this.wd.iterator;t.next();)t.value.Zb(e)},kn.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?Ip:this.qk};function Ap(e){var t=e.ef;if(t!==null){var n=e.uf;if(n!==null&&isNaN(e.curviness)){for(var i=e.ff,r=e.vf,o=e=null,s=t.jb.s,l=s.length,u=0;u<l;u++){var f=s[u];(f.ef===t&&f.ff===i&&f.uf===n&&f.vf===r||f.ef===n&&f.ff===r&&f.uf===t&&f.vf===i)&&(o===null?o=f:(e===null&&(e=[],e.push(o)),e.push(f)))}if(e!==null){for(o=Qy(t,n,i,r),o===null&&(o=new hm(t,i,n,r),Xy(t,o),Xy(n,o)),o.links=e,t=0;t<e.length;t++)e[t].Sf=o;o.Sl()}}}}function kp(e){var t=e.Sf;t!==null&&isNaN(e.curviness)&&(e.Sf=null,e=t.links.indexOf(e),0<=e&&(on(t.links,e),t.Sl()))}kn.prototype.ph=function(){return!0},at.Object.defineProperties(kn.prototype,{fromNode:{get:function(){return this.ef},set:function(e){var t=this.ef;if(t!==e){var n=this.fromPort;t!==null&&(this.uf!==t&&em(t,this,n),kp(this),this.C(2)),this.ef=e,e!==null&&this.Zb(e.isVisible()),this.Wf=null,this.bb();var i=this.diagram;i!==null&&i.aa&&i.partManager.setFromNodeForLink(this,e,t);var r=this.fromPort,o=this.fromPortChanged;if(o!==null){var s=!0;i!==null&&(s=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=s)}e!==null&&(this.uf!==e&&q0(e,this,r),Ap(this),this.C(1)),this.g("fromNode",t,e),Mf(this)}}},fromPortId:{get:function(){return this.ff},set:function(e){var t=this.ff;if(t!==e){var n=this.fromPort;n!==null&&nu(n),kp(this),this.ff=e;var i=this.fromPort;i!==null&&nu(i);var r=this.diagram;if(r!==null){var o=this.data,s=r.model;o!==null&&s.ri()&&s.xv(o,e)}n!==i&&(this.Wf=null,this.bb(),o=this.fromPortChanged,o!==null&&(s=!0,r!==null&&(s=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=s))),Ap(this),this.g("fromPortId",t,e)}}},fromPort:{get:function(){var e=this.ef;return e===null?null:e.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(e){var t=this.gn;t!==e&&(this.gn=e,this.g("fromPortChanged",t,e))}},toNode:{get:function(){return this.uf},set:function(e){var t=this.uf;if(t!==e){var n=this.toPort;t!==null&&(this.ef!==t&&em(t,this,n),kp(this),this.C(2)),this.uf=e,e!==null&&this.Zb(e.isVisible()),this.Wf=null,this.bb();var i=this.diagram;i!==null&&i.aa&&i.partManager.setToNodeForLink(this,e,t);var r=this.toPort,o=this.toPortChanged;if(o!==null){var s=!0;i!==null&&(s=i.aa,i.aa=!0),o(this,n,r),i!==null&&(i.aa=s)}e!==null&&(this.ef!==e&&q0(e,this,r),Ap(this),this.C(1)),this.g("toNode",t,e),Mf(this)}}},toPortId:{get:function(){return this.vf},set:function(e){var t=this.vf;if(t!==e){var n=this.toPort;n!==null&&nu(n),kp(this),this.vf=e;var i=this.toPort;i!==null&&nu(i);var r=this.diagram;if(r!==null){var o=this.data,s=r.model;o!==null&&s.ri()&&s.Cv(o,e)}n!==i&&(this.Wf=null,this.bb(),o=this.toPortChanged,o!==null&&(s=!0,r!==null&&(s=r.aa,r.aa=!0),o(this,n,i),r!==null&&(r.aa=s))),Ap(this),this.g("toPortId",t,e)}}},toPort:{get:function(){var e=this.uf;return e===null?null:e.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(e){var t=this.uo;t!==e&&(this.uo=e,this.g("toPortChanged",t,e))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Lr},set:function(e){var t=this.fromSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.Xi=e,this.g("fromSpot",t,e),(t.$c()||e.$c())&&this.fromNode!==null&&nu(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(e){var t=this.fromEndSegmentLength;t!==e&&(0>e&&rn(e,">= 0",kn,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=e,this.g("fromEndSegmentLength",t,e),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(e){var t=this.fromShortLength;t!==e&&(this.Xc(),this.ba.Wi=e,this.qc(),this.g("fromShortLength",t,e))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Lr},set:function(e){var t=this.toSpot;t.D(e)||(e=e.J(),this.Xc(),this.ba.yj=e,this.g("toSpot",t,e),(t.$c()||e.$c())&&this.toNode!==null&&nu(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(e){var t=this.toEndSegmentLength;t!==e&&(0>e&&rn(e,">= 0",kn,"toEndSegmentLength"),this.Xc(),this.ba.wj=e,this.g("toEndSegmentLength",t,e),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(e){var t=this.toShortLength;t!==e&&(this.Xc(),this.ba.xj=e,this.qc(),this.g("toShortLength",t,e))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?wt:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(e){var t=(this.Qa&1)!==0;t!==e&&(this.Qa^=1,this.g("relinkableFrom",t,e),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(e){var t=(this.Qa&2)!==0;t!==e&&(this.Qa^=2,this.g("relinkableTo",t,e),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(e){var t=(this.Qa&4)!==0;t!==e&&(this.Qa^=4,this.g("resegmentable",t,e),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(e){var t=(this.Qa&8)!==0;t!==e&&(this.Qa^=8,this.g("isTreeLink",t,e),this.fromNode!==null&&Np(this.fromNode),this.toNode!==null&&Np(this.toNode))}},path:{get:function(){var e=this.Pb();return e instanceof nr?e:null}},routeBounds:{get:function(){this.vg();var e=this.ml,t=1/0,n=1/0,i=this.pointsCount;if(i===0)e.h(NaN,NaN,0,0);else{if(i===1)i=this.i(0),t=Math.min(i.x,t),n=Math.min(i.y,n),e.h(i.x,i.y,0,0);else if(i===2){i=this.i(0);var r=this.i(1);t=Math.min(i.x,r.x),n=Math.min(i.y,r.y),e.h(i.x,i.y,0,0),e.Ye(r)}else if(this.computeCurve()===bu&&3<=i&&!this.isOrthogonal)if(r=this.i(0),t=r.x,n=r.y,e.h(t,n,0,0),i===3){i=this.i(1),t=Math.min(i.x,t),n=Math.min(i.y,n);var o=this.i(2);t=Math.min(o.x,t),n=Math.min(o.y,n),Ke.Dl(r.x,r.y,i.x,i.y,i.x,i.y,o.x,o.y,.5,e)}else for(o=3;o<i;o+=3){var s=this.i(o-2);o+3>=i&&(o=i-1);var l=this.i(o-1),u=this.i(o);Ke.Dl(r.x,r.y,s.x,s.y,l.x,l.y,u.x,u.y,.5,e),t=Math.min(u.x,t),n=Math.min(u.y,n),r=u}else for(r=this.i(0),o=this.i(1),t=Math.min(r.x,o.x),n=Math.min(r.y,o.y),e.h(r.x,r.y,0,0),e.Ye(o),r=2;r<i;r++)o=this.i(r),t=Math.min(o.x,t),n=Math.min(o.y,n),e.Ye(o);this.su.h(t-e.x,n-e.y)}return e}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new ce)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||nm(this);for(var e=this.cq=[],t=this.pointsCount,n=0;n<t-1;n++){var i=this.i(n),r=this.i(n+1);Ke.$(i.x,r.x)?(i=r.y-i.y,0>i&&(i=-i)):Ke.$(i.y,r.y)?(i=r.x-i.x,0>i&&(i=-i)):i=Math.sqrt(i.Bf(r)),e.push(i)}}return this.cq}},flattenedTotalLength:{get:function(){var e=this.vt;if(isNaN(e)){for(var t=this.flattenedLengths,n=t.length,i=e=0;i<n;i++)e+=t[i];this.vt=e}return e}},points:{get:function(){return this.Nb},set:function(e){var t=this.Nb;if(t!==e){var n=null;if(Array.isArray(e)){var i=e.length%2===0;if(i){for(var r=0;r<e.length;r++)if(typeof e[r]!="number"||isNaN(e[r])){i=!1;break}}if(i)for(n=new Xt,i=0;i<e.length/2;i++)r=new ce(e[2*i],e[2*i+1]).freeze(),n.add(r);else{for(i=!0,r=0;r<e.length;r++){var o=e[r];if(!Zt(o)||typeof o.x!="number"||isNaN(o.x)||typeof o.y!="number"||isNaN(o.y)){i=!1;break}}if(i)for(n=new Xt,i=0;i<e.length;i++)r=e[i],n.add(new ce(r.x,r.y).freeze())}}else if(e instanceof Xt)for(n=e.copy(),e=n.iterator;e.next();)e.value.freeze();else ut("Link.points value is not an instance of List or Array: "+e);n.freeze(),this.Nb=n,this.qc(),nm(this),e=this.diagram,e!==null&&(e.pi||e.undoManager.isUndoingRedoing||e.As.add(this),e.animationManager.zb&&ro(e.animationManager,this,n)),this.g("points",t,n)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(e){(this.Qa&16)!==0!==e&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(e){(this.Qa&32)!==0!==e&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(e){(this.Qa&64)!==0!==e&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(e){this.o=e.copy()}},defaultToPoint:{get:function(){return this.u},set:function(e){this.u=e.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(e){(this.Qa&128)!==0!==e&&(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||!Of(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var e=this.pointsCount;return e===0?0:2>=e?e-1:this.isOrthogonal||!Of(this.computeSpot(!1))?e-2:e-1}},adjusting:{get:function(){return this.qk},set:function(e){var t=this.qk;t!==e&&(this.qk=e,this.g("adjusting",t,e))}},corner:{get:function(){return this.Om},set:function(e){var t=this.Om;t!==e&&(this.Om=e,this.qc(),this.g("corner",t,e))}},curve:{get:function(){return this.Qm},set:function(e){var t=this.Qm;t!==e&&(this.Qm=e,this.bb(),this.qc(),sm(this,t===wh||t===Lf||e===wh||e===Lf),this.g("curve",t,e))}},curviness:{get:function(){return this.Rm},set:function(e){var t=this.Rm;t!==e&&(this.Rm=e,this.bb(),this.qc(),this.g("curviness",t,e))}},routing:{get:function(){return this.qj},set:function(e){var t=this.qj;t!==e&&(this.qj=e,this.Wf=null,this.bb(),sm(this,(t.value&2)===2||(e.value&2)===2),this.g("routing",t,e))}},smoothness:{get:function(){return this.po},set:function(e){var t=this.po;t!==e&&(this.po=e,this.qc(),this.g("smoothness",t,e))}},key:{get:function(){var e=this.diagram;if(e!==null&&e.model.ri())return e.model.Ac(this.data)}}}),kn.prototype.invalidateOtherJumpOvers=kn.prototype.Xo,kn.prototype.findClosestSegment=kn.prototype.ez,kn.prototype.updateRoute=kn.prototype.vg,kn.prototype.invalidateRoute=kn.prototype.bb,kn.prototype.rollbackRoute=kn.prototype.rv,kn.prototype.commitRoute=kn.prototype.zf,kn.prototype.startRoute=kn.prototype.uh,kn.prototype.clearPoints=kn.prototype.Fj,kn.prototype.removePoint=kn.prototype.pv,kn.prototype.addPointAt=kn.prototype.yf,kn.prototype.addPoint=kn.prototype.ne,kn.prototype.insertPointAt=kn.prototype.m,kn.prototype.insertPoint=kn.prototype.Kz,kn.prototype.setPointAt=kn.prototype.L,kn.prototype.setPoint=kn.prototype.dd,kn.prototype.getPoint=kn.prototype.i,kn.prototype.getOtherPort=kn.prototype.Cz,kn.prototype.getOtherNode=kn.prototype.To;var Wd=null,Vd=null,ov=new qt(kn,"Normal",1),Hb=new qt(kn,"Orthogonal",2),$b=new qt(kn,"AvoidsNodes",6),c1=new qt(kn,"AvoidsNodesStraight",7),gl=new qt(kn,"None",0),bu=new qt(kn,"Bezier",9),wh=new qt(kn,"JumpGap",10),Lf=new qt(kn,"JumpOver",11),Ip=new qt(kn,"End",17),am=new qt(kn,"Scale",18),lm=new qt(kn,"Stretch",19),Mp=new qt(kn,"OrientAlong",21),Op=new qt(kn,"OrientPlus90",22),Lp=new qt(kn,"OrientMinus90",23),sv=new qt(kn,"OrientOpposite",24),um=new qt(kn,"OrientUpright",25),Rp=new qt(kn,"OrientPlus90Upright",26),Dp=new qt(kn,"OrientMinus90Upright",27),cm=new qt(kn,"OrientUpright45",28),h1=16,d1=14,Pp=8;kn.className="Link",kn.Normal=ov,kn.Orthogonal=Hb,kn.AvoidsNodes=$b,kn.AvoidsNodesStraight=c1,kn.None=gl,kn.Bezier=bu,kn.JumpGap=wh,kn.JumpOver=Lf,kn.End=Ip,kn.Scale=am,kn.Stretch=lm,kn.OrientAlong=Mp,kn.OrientPlus90=Op,kn.OrientMinus90=Lp,kn.OrientOpposite=sv,kn.OrientUpright=um,kn.OrientPlus90Upright=Rp,kn.OrientMinus90Upright=Dp,kn.OrientUpright45=cm,kn.EndSegmentStep=8,kn.CurvinessStart=h1,kn.SpacingMin=d1,kn.OrthoShortCut=Pp;function hm(e,t,n,i){Wi(this),this.Fe=this.qq=!1,this.Ds=e,this.Ox=t,this.cv=n,this.Px=i,this.links=[]}hm.prototype.Sl=function(){if(!this.qq){var e=this.links;0<e.length&&(e=e[0].diagram,e!==null&&(e.ow.add(this),this.Fe=e.undoManager.isUndoingRedoing))}this.qq=!0},hm.prototype.Nv=function(){if(this.qq){this.qq=!1;var e=this.links;if(0<e.length){var t=e[0],n=t.diagram;n=n===null||n.pi&&!this.Fe,this.Fe=!1,t.arrangeBundledLinks(e,n),e.length===1&&(t.Sf=null,e.length=0)}e.length===0&&(e=this.Ds,this!==null&&e.af!==null&&e.af.remove(this),e=this.cv,this!==null&&e.af!==null&&e.af.remove(this))}},hm.className="LinkBundle";function Fp(e){Wi(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=e.width,this.sc=e.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}Fp.prototype.initialize=function(e){if(!(0>=e.width||0>=e.height)){var t=e.y,n=e.x+e.width,i=e.y+e.height;if(this.Nd=Math.floor((e.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((t-this.sc)/this.sc)*this.sc,this.En=Math.ceil((n+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((i+2*this.sc)/this.sc)*this.sc,e=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),t=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<e-1||this.ei<t-1){for(n=[],i=0;i<=e;i++)n[i]=new Uint32Array(t);this.ac=n,this.di=e-1,this.ei=t-1}if(e=av,this.ac!==null)for(t=0;t<=this.di;t++)if(n=this.ac[t],n.fill)n.fill(e);else for(i=0;i<=this.ei;i++)n[i]=e}};function Rf(e,t,n){return e.Nd<=t&&t<=e.En&&e.Od<=n&&n<=e.Fn}function Hc(e,t,n){return Rf(e,t,n)?(t-=e.Nd,t/=e.rc,n-=e.Od,n/=e.sc,e.ac[t|0][n|0]):av}function f1(e){if(e.ac!==null)for(var t=0;t<=e.di;t++)for(var n=e.ac[t],i=0;i<=e.ei;i++)n[i]>=Cd&&(n[i]=av)}Fp.prototype.Yj=function(e,t,n,i){if(e>this.En||e+n<this.Nd||t>this.Fn||t+i<this.Od)return!0;e=(e-this.Nd)/this.rc|0,t=(t-this.Od)/this.sc|0,n=Math.max(0,n)/this.rc+1|0;var r=Math.max(0,i)/this.sc+1|0;if(0>e&&(n+=e,e=0),0>t&&(r+=t,t=0),0>n||0>r)return!0;for(i=Math.min(e+n-1,this.di)|0,n=Math.min(t+r-1,this.ei)|0;e<=i;e++){r=this.ac[e];for(var o=t;o<=n;o++)if(r[o]===Ch)return!1}return!0};function $c(e,t,n,i,r,o,s,l,u){if(!(t<o||t>s||n<l||n>u)){var f=t|0,p=n|0,x=e.ac[f][p];if(x>=Cd&&x<Df)for(r?p+=i:f+=i,x+=1;o<=f&&f<=s&&l<=p&&p<=u&&!(x>=e.ac[f][p]);)e.ac[f][p]=x,x+=1,r?p+=i:f+=i;if(f=r?p:f,r)if(0<i)for(n+=i;n<f;n+=i)$c(e,t,n,1,!r,o,s,l,u),$c(e,t,n,-1,!r,o,s,l,u);else for(n+=i;n>f;n+=i)$c(e,t,n,1,!r,o,s,l,u),$c(e,t,n,-1,!r,o,s,l,u);else if(0<i)for(t+=i;t<f;t+=i)$c(e,t,n,1,!r,o,s,l,u),$c(e,t,n,-1,!r,o,s,l,u);else for(t+=i;t>f;t+=i)$c(e,t,n,1,!r,o,s,l,u),$c(e,t,n,-1,!r,o,s,l,u)}}function dm(e,t,n,i,r,o,s,l,u){t|=0,n|=0;var f=Ch,p=Cd;for(e.ac[t][n]=p;f===Ch&&t>o&&t<s&&n>l&&n<u;)p+=1,e.ac[t][n]=p,r?n+=i:t+=i,f=e.ac[t][n]}function fm(e,t,n,i,r,o,s,l,u){t|=0,n|=0;var f=Ch,p=Df;for(e.ac[t][n]=p;f===Ch&&t>o&&t<s&&n>l&&n<u;)e.ac[t][n]=p,r?n+=i:t+=i,f=e.ac[t][n]}function p1(e,t,n,i,r,o,s){if(e.ac!==null){e.abort=!1;var l=t.x,u=t.y;if(Rf(e,l,u)){l-=e.Nd,l/=e.rc,u-=e.Od,u/=e.sc;var f=i.x,p=i.y;if(Rf(e,f,p))if(f-=e.Nd,f/=e.rc,p-=e.Od,p/=e.sc,1>=Math.abs(l-f)&&1>=Math.abs(u-p))e.abort=!0;else{var x=o.x;i=o.y,t=o.x+o.width;var N=o.y+o.height;x-=e.Nd,x/=e.rc,i-=e.Od,i/=e.sc,t-=e.Nd,t/=e.rc,N-=e.Od,N/=e.sc,o=Math.max(0,Math.min(e.di,x|0)),t=Math.min(e.di,Math.max(0,t|0)),x=Math.max(0,Math.min(e.ei,i|0)),N=Math.min(e.ei,Math.max(0,N|0)),i=e.ac,l|=0,u|=0,f|=0,p|=0;var O=n===0||n===90?1:-1;if(n=n===90||n===270,i[l][u]===Ch?(dm(e,l,u,O,n,o,t,x,N),dm(e,l,u,1,!n,o,t,x,N),dm(e,l,u,-1,!n,o,t,x,N)):dm(e,l,u,O,n,l,u,l,u),i[f][p]===Ch?(fm(e,f,p,r===0||r===90?1:-1,r===90||r===270,o,t,x,N),fm(e,f,p,1,!(r===90||r===270),o,t,x,N),fm(e,f,p,-1,!(r===90||r===270),o,t,x,N)):fm(e,f,p,O,n,f,p,f,p),n=jt(),s&&m1(e,f,p,r,l,u,n))for((n[0]!==f||n[1]!==p)&&(n.unshift(p),n.unshift(f)),(n[n.length-2]!==l||n[n.length-1]!==u)&&(n.push(l),n.push(u)),e=Cd,r=n[n.length-2],s=n[n.length-1],i[r][s]=e++,o=n.length-4;0<=o;o-=2)for(r=n[o+2],s=n[o+3],t=n[o],f=n[o+1];t>r?r++:t<r?r--:f>s?s++:f<s&&s--,i[r][s]=e++,r!==t||s!==f;);else $c(e,l,u,1,!1,o,t,x,N),$c(e,l,u,-1,!1,o,t,x,N),$c(e,l,u,1,!0,o,t,x,N),$c(e,l,u,-1,!0,o,t,x,N);gn(n)}}}}function m1(e,t,n,i,r,o,s){for(var l=e.ac,u=t,f=n;;){if(u===r&&f===o)return!0;var p=u,x=f;if(i===0)if(p<r)p++;else break;else if(i===90)if(x<o)x++;else break;else if(i===180)if(p>r)p--;else break;else if(x>o)x--;else break;var N=l[p][x];if(N===0||N===lv)break;u=p,f=x}for(;;){if(p=i,x=u,N=f,i===0?N<o?(p=90,N++):N>o&&(p=270,N--):i===90?x<r?(p=0,x++):x>r&&(p=180,x--):i===180?N<o?(p=90,N++):N>o&&(p=270,N--):x<r?(p=0,x++):x>r&&(p=180,x--),x=l[x][N],p!==i&&x!==0&&x!==lv){if(s.push(u),s.push(f),m1(e,u,f,p,r,o,s))return!0;s.pop(),s.pop()}if(l[u][f]=lv,i===0){if(u===t)return!1;u--}else if(i===90){if(f===n)return!1;f--}else if(i===180){if(u===t)return!1;u++}else{if(f===n)return!1;f++}}}at.Object.defineProperties(Fp.prototype,{bounds:{get:function(){return new Ht(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(e){0<e&&e!==this.rc&&(this.rc=e,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(e){0<e&&e!==this.sc&&(this.sc=e,this.initialize(this.bounds))}}});var Ch=0,Cd=1,Df=999999,av=Df+1,lv=Df+2;Fp.className="PositionArray";function Kd(){Wi(this),this.port=this.node=null,this.pe=[],this.ap=!1}Kd.prototype.toString=function(){for(var e=this.pe,t=this.node.toString()+" "+e.length.toString()+":",n=0;n<e.length;n++){var i=e[n];i!==null&&(t+=`
|
|
|
`+i.toString())}return t};function jb(e,t,n,i){switch(t=t.offsetY,t){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(t){case 9:return 180<n?270:90;case 6:return 90<n&&270>=n?180:0}switch(e=180*Math.atan2(e.height,e.width)/Math.PI,t){case 3:return n>e&&n<=180+e?180:270;case 5:return n>180-e&&n<=360-e?270:0;case 12:return n>e&&n<=180+e?90:0;case 10:return n>180-e&&n<=360-e?180:90;case 7:return 90<n&&n<=180+e?180:n>180+e&&n<=360-e?270:0;case 13:return 180<n&&n<=360-e?270:n>e&&180>=n?90:0;case 14:return n>e&&n<=180-e?90:n>180-e&&270>=n?180:0;case 11:return n>180-e&&n<=180+e?180:n>180+e?270:90}return i&&t!==15&&(n-=15,0>n&&(n+=360)),n>e&&n<180-e?90:n>=180-e&&n<=180+e?180:n>180+e&&n<360-e?270:0}Kd.prototype.Sl=function(){this.pe.length=0};function g1(e,t){var n=e.pe;if(n.length===0){e:if(!e.ap){n=e.ap,e.ap=!0;var i=null,r=e.node,o=r instanceof Xi?r:null;if(o===null||o.isSubGraphExpanded)var s=r.isTreeExpanded?r.findLinksConnected(e.port.portId):r.qx();else{if(!o.actualBounds.w()){e.ap=n;break e}i=o,s=i.Lu()}o=e.pe.length=0;var l=e.port.ga(Yo,ce.alloc()),u=e.port.ga(Oo,ce.alloc());for(r=Ht.allocAt(l.x,l.y,0,0),r.Ye(u),ce.free(l),ce.free(u),l=ce.allocAt(r.x+r.width/2,r.y+r.height/2),u=e.port.li(),s=s.iterator;s.next();){var f=s.value;if(f.isVisible()&&f.fromPort!==f.toPort){var p=f.fromPort===e.port||f.fromNode!==null&&f.fromNode.Td(i),x=f.computeSpot(p,e.port);if(x.$c()&&(p=p?f.toPort:f.fromPort,p!==null)){var N=p.part;if(N!==null){var O=N.findVisibleNode();O!==null&&O!==N&&(N=O,p=N.port),p=f.computeOtherPoint(N,p),N=l.ab(p),N-=u,0>N?N+=360:360<=N&&(N-=360),x=jb(r,x,N,f.isOrthogonal),x===0?(x=4,180<N&&(N-=360)):x===90?(x=8,270<N&&(N-=360)):x===180?x=2:(x=1,90>N&&(N+=360)),O=e.pe[o],O===void 0?(O=new uv(f,N,x),e.pe[o]=O):(O.link=f,O.angle=N,O.Nc=x),O.hv.set(p),o++}}}}for(ce.free(l),e.pe.sort(Kd.prototype.j),u=e.pe.length,i=-1,o=l=0;o<u;o++)s=e.pe[o],s!==void 0&&(s.Nc!==i&&(i=s.Nc,l=0),s.Uo=l,l++);for(i=-1,l=0,o=u-1;0<=o;o--)u=e.pe[o],u!==void 0&&(u.Nc!==i&&(i=u.Nc,l=u.Uo+1),u.Gl=l);if(o=e.pe,x=e.port,i=e.node.portSpreading,l=ce.alloc(),u=ce.alloc(),s=ce.alloc(),f=ce.alloc(),x.ga(Yo,l),x.ga(Go,u),x.ga(Oo,s),x.ga(wa,f),O=N=p=x=0,i===Jg)for(var F=0;F<o.length;F++){var K=o[F];if(K!==null){var ye=K.link.computeThickness();switch(K.Nc){case 8:N+=ye;break;case 2:O+=ye;break;case 1:x+=ye;break;default:case 4:p+=ye}}}var ae=F=0,Oe=1,Fe=K=0;for(ye=0;ye<o.length;ye++){var He=o[ye];if(He!==null){if(F!==He.Nc){switch(F=He.Nc,F){case 8:var qe=s;ae=f;break;case 2:qe=f,ae=l;break;case 1:qe=l,ae=u;break;default:case 4:qe=u,ae=s}switch(K=ae.x-qe.x,Fe=ae.y-qe.y,F){case 8:N>Math.abs(K)?(Oe=Math.abs(K)/N,N=Math.abs(K)):Oe=1;break;case 2:O>Math.abs(Fe)?(Oe=Math.abs(Fe)/O,O=Math.abs(Fe)):Oe=1;break;case 1:x>Math.abs(K)?(Oe=Math.abs(K)/x,x=Math.abs(K)):Oe=1;break;default:case 4:p>Math.abs(Fe)?(Oe=Math.abs(Fe)/p,p=Math.abs(Fe)):Oe=1}ae=0}var bt=He.Zo;if(i===Jg){switch(He=He.link.computeThickness(),He*=Oe,bt.set(qe),F){case 8:bt.x=qe.x+K/2+N/2-ae-He/2;break;case 2:bt.y=qe.y+Fe/2+O/2-ae-He/2;break;case 1:bt.x=qe.x+K/2-x/2+ae+He/2;break;default:case 4:bt.y=qe.y+Fe/2-p/2+ae+He/2}ae+=He}else{var jn=.5;i===tm&&(jn=(He.Uo+1)/(He.Gl+1)),bt.x=qe.x+K*jn,bt.y=qe.y+Fe*jn}}}for(ce.free(l),ce.free(u),ce.free(s),ce.free(f),qe=e.pe,o=0;o<qe.length;o++)i=qe[o],i!==null&&(i.Ju=e.computeEndSegmentLength(i));e.ap=n,Ht.free(r)}n=e.pe}for(e=0;e<n.length;e++)if(r=n[e],r!==null&&r.link===t)return r;return null}Kd.prototype.j=function(e,t){return e===t?0:e===null?-1:t===null?1:e.Nc<t.Nc?-1:e.Nc>t.Nc?1:e.angle<t.angle?-1:e.angle>t.angle?1:0},Kd.prototype.computeEndSegmentLength=function(e){var t=e.link,n=t.computeEndSegmentLength(this.node,this.port,Di,t.fromPort===this.port),i=e.Uo;if(0>i)return n;var r=e.Gl;if(1>=r||!t.isOrthogonal)return n;t=e.hv;var o=e.Zo;return(e.Nc===2||e.Nc===8)&&(i=r-1-i),((e=e.Nc===2||e.Nc===4)?t.y<o.y:t.x<o.x)?n+8*i:(e?t.y===o.y:t.x===o.x)?n:n+8*(r-1-i)},Kd.className="Knot";function uv(e,t,n){this.link=e,this.angle=t,this.Nc=n,this.hv=new ce,this.Gl=this.Uo=0,this.Zo=new ce,this.Ju=0}uv.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()},uv.className="LinkInfo";function Do(e){Wi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new ce(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,e&&Object.assign(this,e)}Do.prototype.cloneProtected=function(e){e.sn=this.sn,e.Gh=this.Gh,e.yn=this.yn,e.Am.assign(this.Am),e.vn=this.vn,e.un=this.un,e.Em=this.Em,e.xn=!0},Do.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},Do.prototype.qb=function(){},Do.prototype.toString=function(){var e=fn(this.constructor);return e+="(",this.group!==null&&(e+=" in "+this.group),this.diagram!==null&&(e+=" for "+this.diagram),e+")"},Do.prototype.C=function(){if(this.isValidLayout){var e=this.diagram;if(e!==null&&!e.undoManager.isUndoingRedoing){var t=e.animationManager;!t.isTicking&&(t.defaultAnimation.isAnimating&&t.Cc(),this.isOngoing&&e.pi||this.isInitial&&!e.pi)&&(this.isValidLayout=!1,e.$b())}}},Do.prototype.createNetwork=function(){return new yo(this)},Do.prototype.makeNetwork=function(e){var t=this.createNetwork();return e instanceof Z?(t.lg(e.nodes,!0),t.lg(e.links,!0)):e instanceof Xi?t.lg(e.memberParts):t.lg(e.iterator),t},Do.prototype.updateParts=function(){this.isValidLayout=!0;var e=this.diagram;if(e===null&&this.network!==null)for(var t=this.network.vertexes.iterator;t.next();){var n=t.value.node;if(n!==null&&(e=n.diagram,e!==null))break}try{e!==null&&e.Ea("Layout"),this.commitLayout()}finally{e!==null&&e.eb("Layout")}},Do.prototype.commitLayout=function(){if(this.network!==null){for(var e=this.network.vertexes.iterator;e.next();)e.value.commit();if(this.isRouting)for(e=this.network.edges.iterator;e.next();)e.value.commit()}},Do.prototype.doLayout=function(e){var t=new Yt;e instanceof Z?(Vh(this,t,e.nodes,!0,this.rh,!0,!1,!0),Vh(this,t,e.parts,!0,this.rh,!0,!1,!0)):e instanceof Xi?Vh(this,t,e.memberParts,!1,this.rh,!0,!1,!0):t.addAll(e.iterator),0<t.count&&(e=this.diagram,e!==null&&e.Ea("Layout"),this.doMinimalNoNetworkLayout(t),e!==null&&e.eb("Layout")),this.isValidLayout=!0},Do.prototype.doMinimalNoNetworkLayout=function(e){var t=Math.ceil(Math.sqrt(e.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var n=this.arrangementOrigin.x,i=n,r=this.arrangementOrigin.y,o=0,s=0;for(e=e.iterator;e.next();){var l=e.value;Bp(l);var u=l.measuredBounds,f=u.width;u=u.height,l.moveTo(i,r),l instanceof Xi&&(l.rh=!1),i+=Math.max(f,50)+20,s=Math.max(s,Math.max(u,50)),o>=t-1?(o=0,i=n,r+=s+20,s=0):o++}},Do.prototype.doMinimalNetworkLayout=function(){var e=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var t=this.arrangementOrigin.x,n=t,i=this.arrangementOrigin.y,r=0,o=0,s=this.network.vertexes.iterator;s.next();){var l=s.value.node;if(!(l===null||l instanceof kn)&&(Bp(l),this.rh(l))){var u=l.measuredBounds,f=u.width;u=u.height,l.moveTo(n,i),l instanceof Xi&&(l.rh=!1),n+=Math.max(f,50)+20,o=Math.max(o,Math.max(u,50)),r>=e-1?(r=0,n=t,i+=o+20,o=0):r++}}},Do.prototype.rh=function(e){return!!(!e.location.w()||e instanceof Xi&&e.rh)};function Vh(e,t,n,i,r,o,s,l){for(n=n.iterator;n.next();){var u=n.value;i&&!u.isTopLevel||r!==null&&!r(u)||!u.canLayout()||(o&&u instanceof Vn?u.isLinkLabel||(u instanceof Xi&&u.layout===null?Vh(e,t,u.memberParts,!1,r,o,s,l):(Bp(u),t.add(u))):s&&u instanceof kn?t.add(u):!l||!u.Zc()||u instanceof Vn||(Bp(u),t.add(u)))}}function Bp(e){var t=e.actualBounds;(t.width===0||t.height===0||isNaN(t.width)||isNaN(t.height))&&e.Va()}Do.prototype.ni=function(e,t){var n=this.boundsComputation;return n!==null?(t||(t=new Ht),n(e,this,t)):t?(t.set(e.actualBounds),t):e.actualBounds},Do.prototype.ex=function(e){var t=new Yt;return e instanceof Z?(Vh(this,t,e.nodes,!0,null,!0,!0,!0),Vh(this,t,e.links,!0,null,!0,!0,!0),Vh(this,t,e.parts,!0,null,!0,!0,!0)):e instanceof Xi?Vh(this,t,e.memberParts,!1,null,!0,!0,!0):Vh(this,t,e.iterator,!1,null,!0,!0,!0),t},Do.prototype.initialOrigin=function(e){var t=this.group;if(t!==null){var n=t.position.copy();return(isNaN(n.x)||isNaN(n.y))&&n.set(e),t=t.placeholder,t!==null&&(n=t.ga(Yo),(isNaN(n.x)||isNaN(n.y))&&n.set(e),e=t.padding,n.x+=e.left,n.y+=e.top),n}return e},at.Object.defineProperties(Do.prototype,{diagram:{get:function(){return this.H},set:function(e){this.H=e}},group:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e,e!==null&&(this.H=e.diagram))}},isOngoing:{get:function(){return this.sn},set:function(e){this.sn!==e&&(this.sn=e)}},isInitial:{get:function(){return this.Gh},set:function(e){this.Gh=e,e||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(e){this.yn!==e&&(this.yn=e)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(e){this.vn!==e&&(this.vn=e)}},isRealtime:{get:function(){return this.un},set:function(e){this.un!==e&&(this.un=e)}},isValidLayout:{get:function(){return this.xn},set:function(e){this.xn!==e&&(this.xn=e,e||(e=this.diagram,e!==null&&(e.xh=!0)))}},network:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e,e!==null&&(e.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(e){this.Em!==e&&(this.Em=e,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(e){this.Am.D(e)||(this.Am.assign(e),this.C())}}}),Do.prototype.collectParts=Do.prototype.ex,Do.prototype.getLayoutBounds=Do.prototype.ni,Do.prototype.invalidateLayout=Do.prototype.C,Do.className="Layout";function yo(e){Wi(this),this.Sc=e,this.wf=new Yt,this.ye=new Yt,this.Es=new ii,this.zs=new ii}yo.prototype.clear=function(){if(this.wf)for(var e=this.wf.iterator;e.next();)e.value.clear();if(this.ye)for(e=this.ye.iterator;e.next();)e.value.clear();this.wf=new Yt,this.ye=new Yt,this.Es=new ii,this.zs=new ii},yo.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=e)return t;if(t+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<e){for(var n=this.wf.iterator;n.next();)t+=`
|
|
|
`+n.value.toString(e-1);for(n=this.ye.iterator;n.next();)t+=`
|
|
|
`+n.value.toString(e-1)}return t},yo.prototype.createVertex=function(){return new Ws(this)},yo.prototype.createEdge=function(){return new iu(this)},yo.prototype.lg=function(e,t,n){if(e!==null){for(t===void 0&&(t=!1),n===void 0&&(n=null),n===null&&(n=function(s){if(s instanceof Vn)return!s.isLinkLabel;if(s instanceof kn){var l=s.fromNode;return l===null||l.isLinkLabel?!1:(s=s.toNode,!(s===null||s.isLinkLabel))}return!1}),e=e.iterator;e.next();){var i=e.value;if(i instanceof Vn&&(!t||i.isTopLevel)&&i.canLayout()&&n(i)){if(i instanceof Xi&&i.layout===null)this.lg(i.memberParts,!1);else if(this.ki(i)===null){var r=this.createVertex();r.node=i,this.dh(r)}}}for(e.reset();e.next();)if(i=e.value,i instanceof kn&&(!t||i.isTopLevel)&&i.canLayout()&&n(i)&&this.Lo(i)===null){var o=i.fromNode;r=i.toNode,o!==null&&r!==null&&o!==r&&(o=this.findGroupVertex(o),r=this.findGroupVertex(r),o!==null&&r!==null&&this.Zj(o,r,i))}}},yo.prototype.findGroupVertex=function(e){if(e===null)return null;var t=e.findVisibleNode();if(t===null)return null;if(e=this.ki(t),e!==null)return e;for(t=t.containingGroup;t!==null;){if(e=this.ki(t),e!==null)return e;t=t.containingGroup}return null},_=yo.prototype,_.dh=function(e){if(e!==null){this.wf.add(e);var t=e.node;t!==null&&this.Es.add(t,e),e.network=this}},_.Bl=function(e){if(e===null)return null;var t=this.ki(e);return t===null&&(t=this.createVertex(),t.node=e,this.dh(t)),t},_.Iu=function(e){if(e!==null&&v1(this,e)){for(var t=e.tg,n=t.count-1;0<=n;n--){var i=t.M(n);this.Mj(i)}for(t=e.mg,e=t.count-1;0<=e;e--)n=t.M(e),this.Mj(n)}};function v1(e,t){if(t===null)return!1;var n=e.wf.remove(t);return n&&(t=t.node,t!==null&&e.Es.remove(t)),n}_.Zy=function(e){e!==null&&(e=this.ki(e),e!==null&&this.Iu(e))},_.ki=function(e){return e===null?null:this.Es.I(e)},_.Bo=function(e){if(e!==null){cv(this,e);var t=e.toVertex;t!==null&&t.Cl(e),t=e.fromVertex,t!==null&&t.zl(e)}};function cv(e,t){if(t!==null){e.ye.add(t);var n=t.link;n!==null&&e.Lo(n)===null&&e.zs.add(n,t),t.network=e}}_.Dy=function(e){if(e===null)return null;var t=e.fromNode,n=e.toNode,i=this.Lo(e);return i===null?(i=this.createEdge(),i.link=e,t!==null&&(i.fromVertex=this.Bl(t)),n!==null&&(i.toVertex=this.Bl(n)),this.Bo(i)):(t!==null?i.fromVertex=this.Bl(t):i.fromVertex=null,n!==null?i.toVertex=this.Bl(n):i.toVertex=null),i},_.Mj=function(e){if(e!==null){var t=e.toVertex;t!==null&&t.Kl(e),t=e.fromVertex,t!==null&&t.Jl(e),hv(this,e)}};function hv(e,t){t!==null&&e.ye.remove(t)&&(t=t.link,t!==null&&e.zs.remove(t))}_.Yy=function(e){e!==null&&(e=this.Lo(e),e!==null&&this.Mj(e))},_.Lo=function(e){return e===null?null:this.zs.I(e)},_.Zj=function(e,t,n){if(e===null||t===null)return null;if(e.network===this&&t.network===this){var i=this.createEdge();return i.link=n,i.fromVertex=e,i.toVertex=t,this.Bo(i),i}return null},_.gm=function(e){if(e!==null){var t=e.fromVertex,n=e.toVertex;t!==null&&n!==null&&(t.Jl(e),n.Kl(e),e.gm(),t.Cl(e),n.zl(e))}},_.Ko=function(){for(var e=jt(),t=this.ye.iterator;t.next();){var n=t.value;n.fromVertex===n.toVertex&&e.push(n)}for(t=e.length,n=0;n<t;n++)this.Mj(e[n]);gn(e)},yo.prototype.deleteArtificialVertexes=function(){for(var e=jt(),t=this.wf.iterator;t.next();){var n=t.value;n.node===null&&n.data===null&&e.push(n)}for(n=e.length,t=0;t<n;t++)this.Iu(e[t]);for(t=jt(),n=this.ye.iterator;n.next();){var i=n.value;i.link===null&&i.data===null&&t.push(i)}for(n=t.length,i=0;i<n;i++)this.Mj(t[i]);gn(e),gn(t)};function Gb(e){for(var t=jt(),n=e.ye.iterator;n.next();){var i=n.value;i.fromVertex!==null&&i.toVertex!==null||t.push(i)}for(n=t.length,i=0;i<n;i++)e.Mj(t[i]);gn(t)}yo.prototype.Zx=function(e){e===void 0&&(e=!0),e&&(this.deleteArtificialVertexes(),Gb(this),this.Ko()),e=new Xt;for(var t=!0;t;){t=!1;for(var n=this.wf.iterator;n.next();){var i=n.value;if(0<i.tg.count||0<i.mg.count){t=this.layout.createNetwork(),e.add(t),dv(this,t,i),t=!0;break}}}return e.sort(function(r,o){return r===null||o===null||r===o?0:o.vertexes.count-r.vertexes.count}),e};function dv(e,t,n){if(n!==null&&n.network!==t){v1(e,n),t.dh(n);for(var i=n.sourceEdges;i.next();){var r=i.value;r.network!==t&&(hv(e,r),cv(t,r),dv(e,t,r.fromVertex))}for(i=n.destinationEdges;i.next();)n=i.value,n.network!==t&&(hv(e,n),cv(t,n),dv(e,t,n.toVertex))}}yo.prototype.dz=function(){for(var e=new Yt,t=this.wf.iterator;t.next();)e.add(t.value.node);for(t=this.ye.iterator;t.next();)e.add(t.value.link);return e},at.Object.defineProperties(yo.prototype,{layout:{get:function(){return this.Sc},set:function(e){e!==null&&(this.Sc=e)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),yo.prototype.findAllParts=yo.prototype.dz,yo.prototype.splitIntoSubNetworks=yo.prototype.Zx,yo.prototype.deleteSelfEdges=yo.prototype.Ko,yo.prototype.reverseEdge=yo.prototype.gm,yo.prototype.linkVertexes=yo.prototype.Zj,yo.prototype.findEdge=yo.prototype.Lo,yo.prototype.deleteLink=yo.prototype.Yy,yo.prototype.deleteEdge=yo.prototype.Mj,yo.prototype.addLink=yo.prototype.Dy,yo.prototype.addEdge=yo.prototype.Bo,yo.prototype.findVertex=yo.prototype.ki,yo.prototype.deleteNode=yo.prototype.Zy,yo.prototype.deleteVertex=yo.prototype.Iu,yo.prototype.addNode=yo.prototype.Bl,yo.prototype.addVertex=yo.prototype.dh,yo.prototype.addParts=yo.prototype.lg,yo.className="LayoutNetwork";function Ws(e){Wi(this),this.ob=e,this.j=new Ht(0,0,10,10).freeze(),this.o=new ce(5,5).freeze(),this.Sh=this.ub=null,this.tg=new Xt,this.mg=new Xt}Ws.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new Xt,this.mg=new Xt},Ws.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutVertex#"+It(this);if(0<e&&(t+=this.node!==null?"("+this.node.toString()+")":"",1<e)){e="";for(var n=!0,i=this.tg.iterator;i.next();){var r=i.value;n?n=!1:e+=",",e+=r.toString(0)}for(r="",n=!0,i=this.mg.iterator;i.next();){var o=i.value;n?n=!1:r+=",",r+=o.toString(0)}t+=" sources: "+e+" destinations: "+r}return t},Ws.prototype.commit=function(){var e=this.ub;if(e!==null){var t=this.bounds,n=e.bounds;Zt(n)?(n.x=t.x,n.y=t.y,n.width=t.width,n.height=t.height):e.bounds=t.copy()}else if(e=this.node,e!==null){if(t=this.bounds,!(e instanceof Xi)){n=Ht.alloc(),e.Va();var i=this.network.layout.ni(e,n),r=e.locationObject.ga(vr);if(i.w()&&r.w()){e.moveTo(t.x+this.focusX-(r.x-i.x),t.y+this.focusY-(r.y-i.y)),Ht.free(n);return}Ht.free(n)}e.moveTo(t.x,t.y)}},Ws.prototype.Cl=function(e){e!==null&&(this.tg.contains(e)||this.tg.add(e))},Ws.prototype.Kl=function(e){e!==null&&this.tg.remove(e)},Ws.prototype.zl=function(e){e!==null&&(this.mg.contains(e)||this.mg.add(e))},Ws.prototype.Jl=function(e){e!==null&&this.mg.remove(e)};function fv(e,t){return e=e.Sh,t=t.Sh,e?t?(e=e.text,t=t.text,e<t?-1:e>t?1:0):1:t!==null?-1:0}at.Object.defineProperties(Ws.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(e){if(this.ub=e,e!==null&&e.bounds){var t=e.bounds;e=t.x;var n=t.y,i=t.width;t=t.height,this.o.h(i/2,t/2),this.j.h(e,n,i,t)}}},node:{get:function(){return this.Sh},set:function(e){if(this.Sh!==e){this.Sh=e,e.Va();var t=this.network.layout,n=Ht.alloc(),i=t.ni(e,n);t=i.x;var r=i.y,o=i.width;if(i=i.height,isNaN(t)&&(t=0),isNaN(r)&&(r=0),this.j.h(t,r,o,i),Ht.free(n),!(e instanceof Xi)&&(e=e.locationObject.ga(vr),e.w())){this.o.h(e.x-t,e.y-r);return}this.o.h(o/2,i/2)}}},bounds:{get:function(){return this.j},set:function(e){this.j.D(e)||this.j.assign(e)}},focus:{get:function(){return this.o},set:function(e){this.o.D(e)||this.o.assign(e)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(e){var t=this.j;t.x+this.o.x!==e&&(t.ka(),t.x=e-this.o.x,t.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(e){var t=this.j;t.y+this.o.y!==e&&(t.ka(),t.y=e-this.o.y,t.freeze())}},focusX:{get:function(){return this.o.x},set:function(e){var t=this.o;t.x!==e&&(t.ka(),t.x=e,t.freeze())}},focusY:{get:function(){return this.o.y},set:function(e){var t=this.o;t.y!==e&&(t.ka(),t.y=e,t.freeze())}},x:{get:function(){return this.j.x},set:function(e){var t=this.j;t.x!==e&&(t.ka(),t.x=e,t.freeze())}},y:{get:function(){return this.j.y},set:function(e){var t=this.j;t.y!==e&&(t.ka(),t.y=e,t.freeze())}},width:{get:function(){return this.j.width},set:function(e){var t=this.j;t.width!==e&&(t.ka(),t.width=e,t.freeze())}},height:{get:function(){return this.j.height},set:function(e){var t=this.j;t.height!==e&&(t.ka(),t.height=e,t.freeze())}},network:{get:function(){return this.ob},set:function(e){this.ob=e}},sourceVertexes:{get:function(){for(var e=new Yt,t=this.sourceEdges;t.next();)e.add(t.value.fromVertex);return e.iterator}},destinationVertexes:{get:function(){for(var e=new Yt,t=this.destinationEdges;t.next();)e.add(t.value.toVertex);return e.iterator}},vertexes:{get:function(){for(var e=new Yt,t=this.sourceEdges;t.next();)e.add(t.value.fromVertex);for(t=this.destinationEdges;t.next();)e.add(t.value.toVertex);return e.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var e=new Xt,t=this.sourceEdges;t.next();)e.add(t.value);for(t=this.destinationEdges;t.next();)e.add(t.value);return e.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Ws.prototype.deleteDestinationEdge=Ws.prototype.Jl,Ws.prototype.addDestinationEdge=Ws.prototype.zl,Ws.prototype.deleteSourceEdge=Ws.prototype.Kl,Ws.prototype.addSourceEdge=Ws.prototype.Cl,Ws.className="LayoutVertex",Ws.standardComparer=fv,Ws.smartComparer=function(e,t){if(e!==null){if(t!==null){e=e.Sh;var n=t.Sh;if(e!==null){if(n!==null){for(t=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),e=n.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),n=0;n<t.length;n++)if(e[n]!==""&&e[n]!==void 0){var i=parseFloat(t[n]),r=parseFloat(e[n]);if(isNaN(i))if(isNaN(r)){if(t[n].localeCompare(e[n])!==0)return t[n].localeCompare(e[n])}else return 1;else{if(isNaN(r))return-1;if(i-r!==0)return i-r}}else if(t[n]!=="")return 1;return e[n]!==""&&e[n]!==void 0?-1:0}return 1}return n!==null?-1:0}return 1}return t!==null?-1:0};function iu(e){Wi(this),this.nb=e,this.qd=this.kd=this.$k=this.ub=null}iu.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},iu.prototype.toString=function(e){e===void 0&&(e=0);var t="LayoutEdge#"+It(this);return 0<e&&(t+=this.$k!==null?"("+this.$k.toString()+")":"",1<e&&(t+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),t},iu.prototype.gm=function(){var e=this.kd;this.kd=this.qd,this.qd=e},iu.prototype.commit=function(){},iu.prototype.Ax=function(e){return this.qd===e?this.kd:this.kd===e?this.qd:null},at.Object.defineProperties(iu.prototype,{network:{get:function(){return this.nb},set:function(e){this.nb=e}},data:{get:function(){return this.ub},set:function(e){this.ub!==e&&(this.ub=e)}},link:{get:function(){return this.$k},set:function(e){this.$k!==e&&(this.$k=e)}},fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}}}),iu.prototype.getOtherVertex=iu.prototype.Ax,iu.className="LayoutEdge";function Sa(e){Do.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new mi(NaN,NaN).freeze(),this.tf=new mi(10,10).freeze(),this.Jb=_p,this.Rb=mm,this.nd=zp,this.hd=y1,e&&Object.assign(this,e)}fi(Sa,Do),Sa.prototype.cloneProtected=function(e){Do.prototype.cloneProtected.call(this,e),e.zo=this.zo,e.yo=this.yo,e.yg.assign(this.yg),e.tf.assign(this.tf),e.Jb=this.Jb,e.Rb=this.Rb,e.nd=this.nd,e.hd=this.hd},Sa.prototype.qb=function(e){e.classType===Sa?e===zp||e===vm||e===pv||e===gm?this.sorting=e:e===mm||e===dc?this.arrangement=e:e===_p||e===pm?this.alignment=e:ut("Unknown enum value: "+e):Do.prototype.qb.call(this,e)},Sa.prototype.doLayout=function(e){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var t=this.ex(e);e=this.diagram;for(var n=t.copy().iterator;n.next();){var i=n.value;if(!i.ph()||i.fromNode===null&&i.toNode===null){if(i.Va(),i instanceof Xi)for(i=i.memberParts;i.next();)t.remove(i.value)}else t.remove(i)}var r=t.Fa();if(r.length!==0){switch(this.sorting){case gm:r.reverse();break;case zp:r.sort(this.comparer);break;case vm:r.sort(this.comparer),r.reverse()}var o=this.wrappingColumn;isNaN(o)&&(o=0);var s=this.wrappingWidth;switch(isNaN(s)&&e!==null?(t=e.padding,s=Math.max(e.viewportBounds.width-t.left-t.right,0)):s=Math.max(this.wrappingWidth,0),0>=o&&0>=s&&(o=1),t=this.spacing.width,isFinite(t)||(t=0),n=this.spacing.height,isFinite(n)||(n=0),e!==null&&e.Ea("Layout"),i=[],this.alignment){case pm:var l=t,u=n,f=Ht.alloc(),p=Math.max(this.cellSize.width,1);if(!isFinite(p))for(var x=p=0;x<r.length;x++){var N=this.ni(r[x],f);p=Math.max(p,N.width)}if(p=Math.max(p+l,1),x=Math.max(this.cellSize.height,1),!isFinite(x))for(N=x=0;N<r.length;N++){var O=this.ni(r[N],f);x=Math.max(x,O.height)}x=Math.max(x+u,1),N=this.arrangement;for(var F=O=this.arrangementOrigin.x,K=this.arrangementOrigin.y,ye=0,ae=0,Oe=0;Oe<r.length;Oe++){var Fe=r[Oe],He=this.ni(Fe,f),qe=Math.ceil((He.width+l)/p)*p,bt=Math.ceil((He.height+u)/x)*x;switch(N){case dc:var jn=Math.abs(F-He.width);break;default:jn=F+He.width}switch((0<o&&ye>o-1||0<s&&0<ye&&jn-O>s)&&(i.push(new Ht(0,K,s+l,ae)),ye=0,F=O,K+=ae,ae=0),ae=Math.max(ae,bt),N){case dc:He=-He.width;break;default:He=0}switch(Fe.moveTo(F+He,K),N){case dc:F-=qe;break;default:F+=qe}ye++}i.push(new Ht(0,K,s+l,ae)),Ht.free(f);break;case _p:for(u=s,p=o,x=t,N=n,s=Ht.alloc(),O=Math.max(this.cellSize.width,1),o=K=f=0,l=ce.alloc(),F=0;F<r.length;F++)ae=r[F],ye=this.ni(ae,s),ae=xh(ae,ae.locationObject,ae.locationSpot,l),f=Math.max(f,ae.x),K=Math.max(K,ye.width-ae.x),o=Math.max(o,ae.y);switch(F=this.arrangement,F){case dc:f+=x;break;default:K+=x}O=isFinite(O)?Math.max(O+x,1):Math.max(f+K,1);var oi=ae=this.arrangementOrigin.x;for(Oe=this.arrangementOrigin.y,K=0,u>=f&&(u-=f),f=Fe=0,qe=Math.max(this.cellSize.height,1),He=o=0,bt=!0,ye=ce.alloc(),jn=0;jn<r.length;jn++){var ei=r[jn],Nn=this.ni(ei,s),cn=xh(ei,ei.locationObject,ei.locationSpot,l);if(0<K)switch(F){case dc:oi=(oi-ae-(Nn.width-cn.x))/O,oi=Ke.$(Math.round(oi),oi)?Math.round(oi):Math.floor(oi),oi=oi*O+ae;break;default:oi=(oi-ae+cn.x)/O,oi=Ke.$(Math.round(oi),oi)?Math.round(oi):Math.ceil(oi),oi=oi*O+ae}else switch(F){case dc:Fe=oi+cn.x+Nn.width;break;default:Fe=oi-cn.x}switch(F){case dc:var Yi=-(oi+cn.x)+Fe;break;default:Yi=oi+Nn.width-cn.x-Fe}if(0<p&&K>p-1||0<u&&0<K&&Yi>u){for(i.push(new Ht(0,bt?Oe-o:Oe,u+x,He+o+N)),oi=0;oi<K&&jn!==K;oi++){Yi=r[jn-K+oi];var Ui=xh(Yi,Yi.locationObject,Yi.locationSpot,ye);Yi.moveTo(Yi.position.x,Yi.position.y+o-Ui.y)}He+=N,Oe=bt?Oe+He:Oe+(He+o),K=He=o=0,oi=ae,bt=!1}switch(oi===ae&&(f=F===dc?Math.max(f,Nn.width-cn.x):Math.min(f,-cn.x)),o=Math.max(o,cn.y),He=Math.max(He,Nn.height-cn.y),isFinite(qe)&&(He=Math.max(He,Math.max(Nn.height,qe)-cn.y)),bt?ei.moveTo(oi-cn.x,Oe-cn.y):ei.moveTo(oi-cn.x,Oe),F){case dc:oi-=cn.x+x;break;default:oi+=Nn.width-cn.x+x}K++}if(i.push(new Ht(0,Oe,u+x,(bt?He:He+o)+N)),r.length!==K)for(u=0;u<K;u++)p=r[r.length-K+u],x=xh(p,p.locationObject,p.locationSpot,l),p.moveTo(p.position.x,p.position.y+o-x.y);if(ce.free(l),ce.free(ye),F===dc)for(r=0;r<i.length;r++)o=i[r],o.width+=f,o.x-=f;else for(r=0;r<i.length;r++)o=i[r],o.x>f&&(o.width+=o.x-f,o.x=f);Ht.free(s)}for(l=o=s=r=0;l<i.length;l++)u=i[l],r=Math.min(r,u.x),s=Math.min(s,u.y),o=Math.max(o,u.x+u.width);this.arrangement===dc?this.commitLayers(i,new ce(r+t/2-(o+r),s-n/2)):this.commitLayers(i,new ce(r-t/2,s-n/2)),e!==null&&e.eb("Layout"),this.isValidLayout=!0}},Sa.prototype.commitLayers=function(){};function y1(e,t){return e=e.text,t=t.text,e<t?-1:e>t?1:0}at.Object.defineProperties(Sa.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(e){this.zo!==e&&(0<e||isNaN(e))&&(this.zo=e,this.isViewportSized=isNaN(e),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(e){this.yo!==e&&(0<e||isNaN(e))&&(this.yo=e,this.C())}},cellSize:{get:function(){return this.yg},set:function(e){this.yg.D(e)||(this.yg.assign(e),this.C())}},spacing:{get:function(){return this.tf},set:function(e){this.tf.D(e)||(this.tf.assign(e),this.C())}},alignment:{get:function(){return this.Jb},set:function(e){this.Jb===e||e!==_p&&e!==pm||(this.Jb=e,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==mm&&e!==dc||(this.Rb=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==pv&&e!==gm&&e!==zp&&e!==vm||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}}});var pm=new qt(Sa,"Position",0),_p=new qt(Sa,"Location",1),mm=new qt(Sa,"LeftToRight",2),dc=new qt(Sa,"RightToLeft",3),pv=new qt(Sa,"Forward",4),gm=new qt(Sa,"Reverse",5),zp=new qt(Sa,"Ascending",6),vm=new qt(Sa,"Descending",7);Sa.className="GridLayout",Sa.standardComparer=y1,Sa.smartComparer=function(e,t){if(e!==null){if(t!==null){e=e.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),t=t.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var n=0;n<e.length;n++)if(t[n]!==""&&t[n]!==void 0){var i=parseFloat(e[n]),r=parseFloat(t[n]);if(isNaN(i))if(isNaN(r)){if(e[n].localeCompare(t[n])!==0)return e[n].localeCompare(t[n])}else return 1;else{if(isNaN(r))return-1;if(i-r!==0)return i-r}}else if(e[n]!=="")return 1;return t[n]!==""&&t[n]!==void 0?-1:0}return 1}return t!==null?-1:0},Sa.Position=pm,Sa.Location=_p,Sa.LeftToRight=mm,Sa.RightToLeft=dc,Sa.Forward=pv,Sa.Reverse=gm,Sa.Ascending=zp,Sa.Descending=vm;function Vr(){this.On=new Yt,this.Dn=new Yt,this.Pa=new Yt,this.cf=new ii,this.bf=new ii,this.aj=new ii,this.H=null,this.tp=!1}_=Vr.prototype,_.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},_.Xe=function(e){this.H=e},_.oi=function(e){if(e instanceof Vn){if(this.On.add(e),e instanceof Xi){var t=e.containingGroup;t===null?this.H.ai.add(e):t.gl.add(e),t=e.layout,t!==null&&(t.diagram=this.H)}}else e instanceof kn?this.Dn.add(e):e instanceof Fr||this.Pa.add(e);t=e.data,t===null||e instanceof Fr||(e instanceof kn?this.bf.add(t,e):this.cf.add(t,e))},_.pc=function(e){if(e.Ej(),e instanceof Vn){if(this.On.remove(e),e instanceof Xi){var t=e.containingGroup;t===null?this.H.ai.remove(e):t.gl.remove(e),t=e.layout,t!==null&&(t.diagram=null)}}else e instanceof kn?this.Dn.remove(e):e instanceof Fr||this.Pa.remove(e);t=e.data,t===null||e instanceof Fr||(e instanceof kn?this.bf.remove(t):this.cf.remove(t))},_.Wd=function(){var e=this.H;if(e!==null){for(var t=e.nodeTemplateMap.iterator;t.next();){var n=t.value,i=t.key;(!n.Zc()||n instanceof Xi)&&ut('Invalid node template in Diagram.nodeTemplateMap: template for "'+i+'" must be a Node or a simple Part, not a Group or Link: '+n)}for(t=e.groupTemplateMap.iterator;t.next();)n=t.value,i=t.key,n instanceof Xi||ut('Invalid group template in Diagram.groupTemplateMap: template for "'+i+'" must be a Group, not a normal Node or Link: '+n);for(t=e.linkTemplateMap.iterator;t.next();)n=t.value,i=t.key,n instanceof kn||ut('Invalid link template in Diagram.linkTemplateMap: template for "'+i+'" must be a Link, not a normal Node or simple Part: '+n);for(t=jt(),n=e.selection.iterator;n.next();)(i=n.value.data)&&t.push(i);for(n=jt(),e=e.highlighteds.iterator;e.next();)(i=e.value.data)&&n.push(i);for(e=jt(),i=this.nodes.iterator;i.next();){var r=i.value;r.data!==null&&(e.push(r.data),e.push(r.location))}for(i=this.links.iterator;i.next();)r=i.value,r.data!==null&&(e.push(r.data),e.push(r.location));for(i=this.parts.iterator;i.next();)r=i.value,r.data!==null&&(e.push(r.data),e.push(r.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),i=0;i<t.length;i++)r=this.Lc(t[i]),r!==null&&(r.isSelected=!0);for(i=0;i<n.length;i++)r=this.Lc(n[i]),r!==null&&(r.isHighlighted=!0);for(i=0;i<e.length;i+=2)r=this.Lc(e[i]),r!==null&&(r.location=e[i+1]);gn(t),gn(n),gn(e)}},Vr.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Vr.prototype.addModeledParts=function(e,t){var n=this,i=this.diagram.model;e.forEach(function(r){i.lb(r)&&b1(n,r,!1)}),e.forEach(function(r){i.lb(r)&&n.resolveReferencesForData(r)}),t!==!1&&uf(this.diagram,!1)};function b1(e,t,n){if(t!=null&&!e.diagram.undoManager.isUndoingRedoing&&!e.cf.contains(t)){n===void 0&&(n=!0);e:{if(t!=null&&!e.H.undoManager.isUndoingRedoing&&!e.cf.contains(t)){var i=e.Ro(t),r=x1(e,t,i);if(r!==null&&(Uu(r),r=r.copy(),r!==null)){var o=e.diagram.skipsModelSourceBindings;e.diagram.skipsModelSourceBindings=!0,r.Tf=i,r.ub=t,e.tp&&(r.Jg="Tool"),e.diagram.add(r),r.ub=null,r.data=t,e.diagram.skipsModelSourceBindings=o,i=r;break e}}i=null}i!==null&&n&&e.resolveReferencesForData(t)}}Vr.prototype.insertLink=function(){return null},Vr.prototype.resolveReferencesForData=function(){},Vr.prototype.Ro=function(e){return this.H.model.Ro(e)};function x1(e,t,n){e=e.H;var i=e.model;return i.Xj()&&i.Yu(t)?(t=e.groupTemplateMap.I(n),t===null&&(t=e.groupTemplateMap.I(""),t===null&&(w1||(w1=!0,Si('No Group template found for category "'+n+'"'),Si(" Using default group template")),t=e.ly))):(t=e.nodeTemplateMap.I(n),t===null&&(t=e.nodeTemplateMap.I(""),t===null&&(E1||(E1=!0,Si('No Node template found for category "'+n+'"'),Si(" Using default node template")),t=e.ny))),t}Vr.prototype.getLinkCategoryForData=function(){return""},Vr.prototype.setLinkCategoryForData=function(){},Vr.prototype.setFromNodeForLink=function(){},Vr.prototype.setToNodeForLink=function(){},Vr.prototype.findLinkTemplateForCategory=function(e){var t=this.H,n=t.linkTemplateMap.I(e);return n===null&&(n=t.linkTemplateMap.I(""),n===null&&(C1||(C1=!0,Si('No Link template found for category "'+e+'"'),Si(" Using default link template")),n=t.my)),n},Vr.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Vr.prototype.Gs=function(e){var t=this;e.forEach(function(n){t.ip(n)})},Vr.prototype.ip=function(e){e=this.Lc(e),e!==null&&(Xc(this.diagram,e,!1),this.unresolveReferencesForPart(e))},Vr.prototype.unresolveReferencesForPart=function(){},Vr.prototype.removeDataForLink=function(){},Vr.prototype.findPartForKey=function(e){return e==null?null:(e=this.H.model.hc(e),e!==null?this.cf.I(e):null)},Vr.prototype.Vb=function(e){return e==null||(e=this.H.model.hc(e),e===null)?null:(e=this.cf.I(e),e instanceof Vn?e:null)},Vr.prototype.findLinkForKey=function(){return null},_=Vr.prototype,_.Lc=function(e){if(e===null)return null;var t=this.cf.I(e);return t!==null?t:t=this.bf.I(e)},_.ii=function(e){return e===null?null:(e=this.cf.I(e),e instanceof Vn?e:null)},_.Kc=function(e){return e===null?null:this.bf.I(e)},_.ms=function(e){for(var t=0;t<arguments.length;++t);t=new Yt;for(var n=this.On.iterator;n.next();){var i=n.value,r=i.data;if(r!==null)for(var o=0;o<arguments.length;o++){var s=arguments[o];if(Zt(s)&&mv(this,r,s)){t.add(i);break}}}return t.iterator},_.ls=function(e){for(var t=0;t<arguments.length;++t);t=new Yt;for(var n=this.Dn.iterator;n.next();){var i=n.value,r=i.data;if(r!==null)for(var o=0;o<arguments.length;o++){var s=arguments[o];if(Zt(s)&&mv(this,r,s)){t.add(i);break}}}return t.iterator};function mv(e,t,n){for(var i in n){var r=t[i],o=n[i];if(_n(o)){if(!_n(r)||r.length<o.length)return!1;for(var s=0;s<r.length;s++){var l=o[s];if(l!==void 0&&!S1(e,r[s],l))return!1}}else if(!S1(e,r,o))return!1}return!0}function S1(e,t,n){if(typeof n=="function"){if(!n(t))return!1}else if(n instanceof RegExp){if(!t||!n.test(t.toString()))return!1}else if(Zt(t)&&Zt(n)){if(!mv(e,t,n))return!1}else if(t!==n)return!1;return!0}Vr.prototype.doModelChanged=function(e){if(this.H){var t=this.H;if(e.model===t.model){var n=e.change;if(t.doModelChanged(e),t.aa){t.aa=!1;try{var i=e.modelChange;if(i!=="")if(n===io){if(i==="nodeCategory"){var r=this.Lc(e.object),o=e.newValue;r!==null&&typeof o=="string"&&(r.category=o)}else i==="nodeDataArray"&&(this.Gs(e.oldValue),this.addModeledParts(e.newValue));t.isModified=!0}else if(n===zo){var s=e.newValue;i==="nodeDataArray"&&Zt(s)&&b1(this,s),t.isModified=!0}else if(n===os){var l=e.oldValue;i==="nodeDataArray"&&Zt(l)&&this.ip(l),t.isModified=!0}else n===sa&&(i==="SourceChanged"?e.object!==null?this.updateDataBindings(e.object,e.propertyName):(this.rp(),this.updateAllTargetBindings()):i==="ModelDisplaced"&&this.Wd());else if(n===io){var u=e.propertyName,f=e.object;f===t.model?(u==="nodeKeyProperty"||u==="nodeCategoryProperty")&&(t.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(f,u),t.isModified=!0}else if(n===zo||n===os){var p=e.change===zo,x=p?e.newParam:e.oldParam,N=p?e.newValue:e.oldValue,O=this.aj.I(e.object);if(Array.isArray(O))for(e=0;e<O.length;e++){var F=O[e];if(p)F0(F,N,x,!0);else if(!(0>x)){var K=x+xp(F);F.pc(K,!0),Ig(F,K,x)}}t.isModified=!0}}finally{t.aa=!0}}}}},Vr.prototype.updateAllTargetBindings=function(e){e===void 0&&(e="");for(var t=this.parts.iterator;t.next();)t.value.La(e);for(t=this.nodes.iterator;t.next();)t.value.La(e);for(t=this.links.iterator;t.next();)t.value.La(e)},Vr.prototype.rp=function(){for(var e=this.H.model,t=new Yt,n=e.nodeDataArray,i=0;i<n.length;i++)t.add(n[i]);var r=[];for(this.nodes.each(function(s){s.data===null||t.contains(s.data)||r.push(s.data)}),this.parts.each(function(s){s.data===null||t.contains(s.data)||r.push(s.data)}),r.forEach(function(s){R1(e,s,!1)}),i=0;i<n.length;i++){var o=n[i];this.Lc(o)===null&&L1(e,o,!1)}for(this.refreshDataBoundLinks(),n=this.parts.iterator;n.next();)n.value.updateRelationshipsFromData();for(n=this.nodes.iterator;n.next();)n.value.updateRelationshipsFromData();for(n=this.links.iterator;n.next();)n.value.updateRelationshipsFromData()},Vr.prototype.refreshDataBoundLinks=function(){},Vr.prototype.updateRelationshipsFromData=function(){},Vr.prototype.updateDataBindings=function(e,t){if(typeof t=="string"){var n=this.Lc(e);if(n!==null)n.La(t);else{n=null;for(var i=this.aj.iterator;i.next();){for(var r=i.value,o=0;o<r.length;o++){var s=r[o].sx(e);s!==null&&(n===null&&(n=jt()),n.push(s))}if(n!==null)break}if(n!==null){for(i=0;i<n.length;i++)n[i].La(t);gn(n)}}e===this.diagram.model.modelData&&this.updateAllTargetBindings(t)}};function gv(e,t){var n=t.Hh;if(_n(n)){var i=e.aj.I(n);if(i===null)i=[],i.push(t),e.aj.add(n,i);else{for(e=0;e<i.length;e++)if(i[e]===t)return;i.push(t)}}}function vv(e,t,n){bd(t,function(s){s=s.O.s;for(var l=s.length,u=0;u<l;u++)rp(n,s[u])});var i=t.Hh;if(_n(i)){var r=e.aj.I(i);if(r!==null){for(var o=0;o<r.length;o++)if(r[o]===t){r.splice(o,1),r.length===0&&e.aj.remove(i);break}}}}Vr.prototype.Kj=function(e,t,n){n===void 0&&(n=!1);var i=new ii;if(_n(e))for(var r=0;r<e.length;r++)ym(this,e[r],t,i,n);else for(e=e.iterator;e.next();)ym(this,e.value,t,i,n);if(t!==null){n=t.model,e=t.toolManager.findTool("Dragging"),e=e!==null?e.dragOptions.dragsLink:t.Wm.dragsLink,r=new Yt;for(var o=new ii,s=i.iterator;s.next();){var l=s.value;if(l instanceof kn)e||l.fromNode!==null&&l.toNode!==null||r.add(l);else if(l instanceof Vn&&l.data!==null&&n.Tl()){var u=l;l=s.key;var f=l.pg();f!==null&&(f=i.I(f),f!==null?(n.qe(u.data,n.wa(f.data)),u=t.Kc(u.data),l=l.kh(),l!==null&&u!==null&&o.add(l,u)):n.qe(u.data,void 0))}}if(0<r.count&&t.Is(r,!1),0<o.count)for(n=o.iterator;n.next();)i.add(n.key,n.value)}if(t!==null&&this.H!==null&&(t=t.model,n=t.afterCopyFunction,n!==null)){var p=new ii;i.each(function(x){x.key.data!==null&&p.add(x.key.data,x.value.data)}),n(p,t,this.H.model)}for(t=i.iterator;t.next();)t.value.La();return i};function ym(e,t,n,i,r){if(t===null||r&&!t.canCopy())return null;if(i.contains(t))return i.I(t);var o=e.copyPartData(t,n);if(!(o instanceof Ei))return null;if(o.isSelected=!1,o.isHighlighted=!1,i.add(t,o),t instanceof Vn){for(var s=t.linksConnected;s.next();){var l=s.value;if(l.fromNode===t){var u=i.I(l);u!==null&&(u.fromNode=o)}l.toNode===t&&(l=i.I(l),l!==null&&(l.toNode=o))}if(t instanceof Xi&&o instanceof Xi)for(t=t.memberParts;t.next();)s=ym(e,t.value,n,i,r),s instanceof kn||s===null||(s.containingGroup=o)}else if(t instanceof kn&&o instanceof kn)for(s=t.fromNode,s!==null&&(s=i.I(s),s!==null&&(o.fromNode=s)),s=t.toNode,s!==null&&(s=i.I(s),s!==null&&(o.toNode=s)),t=t.labelNodes;t.next();)s=ym(e,t.value,n,i,r),s!==null&&s instanceof Vn&&(s.labeledLink=o);return o}Vr.prototype.copyPartData=function(e,t){var n=null,i=e.data;if(i!==null&&t!==null){var r=t.model;e instanceof kn||(i=r.copyNodeData(i),Zt(i)&&(r.xf(i),n=t.Lc(i)))}else Uu(e),n=e.copy(),n!==null&&(r=this.H,t!==null?t.add(n):i!==null&&r!==null&&r.commandHandler!==null&&r.commandHandler.copiesClipboardData&&(t=r.model,r=null,n instanceof kn||(r=t.copyNodeData(i)),Zt(r)&&(n.data=r)));return n},at.Object.defineProperties(Vr.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(e){this.tp=e}}}),Vr.prototype.updateAllRelationshipsFromData=Vr.prototype.rp,Vr.prototype.findLinksByExample=Vr.prototype.ls,Vr.prototype.findNodesByExample=Vr.prototype.ms,Vr.prototype.findLinkForData=Vr.prototype.Kc,Vr.prototype.findNodeForData=Vr.prototype.ii,Vr.prototype.findPartForData=Vr.prototype.Lc,Vr.prototype.findNodeForKey=Vr.prototype.Vb,Vr.prototype.removeModeledPart=Vr.prototype.ip,Vr.prototype.removeModeledParts=Vr.prototype.Gs,Vr.prototype.rebuildParts=Vr.prototype.Wd;var E1=!1,w1=!1,C1=!1;Vr.className="PartManager";function ca(e){Vr.apply(this,arguments)}fi(ca,Vr),ca.prototype.addAllModeledParts=function(){var e=this.diagram.model;this.addModeledParts(e.nodeDataArray),T1(this,e.linkDataArray)},ca.prototype.addModeledParts=function(e){for(Vr.prototype.addModeledParts.call(this,e,!1),e=this.links.iterator;e.next();)Mf(e.value);uf(this.diagram,!1)};function T1(e,t){t.forEach(function(n){N1(e,n)}),uf(e.diagram,!1)}function N1(e,t){if(t!=null&&!e.diagram.undoManager.isUndoingRedoing&&!e.bf.contains(t)){var n=e.getLinkCategoryForData(t),i=e.findLinkTemplateForCategory(n);if(i!==null){Uu(i);var r=i.copy();if(r!==null){i=e.diagram.skipsModelSourceBindings,e.diagram.skipsModelSourceBindings=!0,r.Tf=n,r.ub=t,n=e.diagram.model;var o=Em(n,t,!0);o!==""&&(r.fromPortId=o),o=xu(n,t,!0),o!==void 0&&(o=e.Vb(o),o instanceof Vn&&(r.fromNode=o)),o=Em(n,t,!1),o!==""&&(r.toPortId=o),o=xu(n,t,!1),o!==void 0&&(o=e.Vb(o),o instanceof Vn&&(r.toNode=o)),n=n.Ef(t),Array.isArray(n)&&n.forEach(function(s){s=e.Vb(s),s!==null&&(s.labeledLink=r)}),e.tp&&(r.Jg="Tool"),e.diagram.add(r),r.ub=null,r.data=t,e.diagram.skipsModelSourceBindings=i}}}}ca.prototype.removeAllModeledParts=function(){var e=this.diagram.model;A1(this,e.linkDataArray),this.Gs(e.nodeDataArray)};function A1(e,t){t.forEach(function(n){e.ip(n)})}ca.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ps(e)},ca.prototype.setLinkCategoryForData=function(e,t){return this.diagram.model.lp(e,t)},ca.prototype.setFromNodeForLink=function(e,t){var n=this.diagram.model;n.wv(e.data,n.wa(t!==null?t.data:null))},ca.prototype.setToNodeForLink=function(e,t){var n=this.diagram.model;n.Bv(e.data,n.wa(t!==null?t.data:null))},ca.prototype.removeDataForLink=function(e){this.diagram.model.bm(e.data)},ca.prototype.findPartForKey=function(e){var t=Vr.prototype.findPartForKey.call(this,e);return t===null&&(e=this.diagram.model.jh(e),e!==null)?this.bf.I(e):t},ca.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.jh(e),e!==null?this.bf.I(e):null)},ca.prototype.doModelChanged=function(e){var t=this;if(Vr.prototype.doModelChanged.call(this,e),this.diagram){var n=this.diagram;if(e.model===n.model){var i=e.change;if(n.aa){n.aa=!1;try{var r=e.modelChange;if(r!==""){if(i===io){if(r==="linkFromKey"){var o=this.Kc(e.object);if(o!==null){var s=this.Vb(e.newValue);o.fromNode=s}}else if(r==="linkToKey"){var l=this.Kc(e.object);if(l!==null){var u=this.Vb(e.newValue);l.toNode=u}}else if(r==="linkFromPortId"){var f=this.Kc(e.object);if(f!==null){var p=e.newValue;typeof p=="string"&&(f.fromPortId=p)}}else if(r==="linkToPortId"){var x=this.Kc(e.object);if(x!==null){var N=e.newValue;typeof N=="string"&&(x.toPortId=N)}}else if(r==="nodeGroupKey"){var O=this.Lc(e.object);if(O!==null){var F=e.newValue;if(F!==void 0){var K=this.Vb(F);K instanceof Xi?O.containingGroup=K:O.containingGroup=null}else O.containingGroup=null}}else if(r==="linkLabelKeys"){var ye=this.Kc(e.object);if(ye!==null){var ae=e.oldValue,Oe=e.newValue;Array.isArray(ae)&&ae.forEach(function(cn){0<=Oe.indexOf(cn)||(cn=t.Vb(cn),cn!==null&&(cn.labeledLink=null))}),Array.isArray(Oe)&&Oe.forEach(function(cn){cn=t.Vb(cn),cn!==null&&(cn.labeledLink=ye)})}}else if(r==="linkCategory"){var Fe=this.Kc(e.object),He=e.newValue;Fe!==null&&typeof He=="string"&&(Fe.category=He)}else r==="linkDataArray"&&(A1(this,e.oldValue),T1(this,e.newValue));n.isModified=!0}else if(i===zo){var qe=e.newValue;if(r==="linkDataArray"&&typeof qe=="object"&&qe!==null)N1(this,qe);else if(r==="linkLabelKeys"&&Yh(qe)){var bt=this.Kc(e.object),jn=this.Vb(qe);bt!==null&&jn!==null&&(jn.labeledLink=bt)}n.isModified=!0}else if(i===os){var oi=e.oldValue;if(r==="linkDataArray"&&typeof oi=="object"&&oi!==null)this.ip(oi);else if(r==="linkLabelKeys"&&Yh(oi)){var ei=this.Vb(oi);ei!==null&&(ei.labeledLink=null)}n.isModified=!0}}else if(i===io){var Nn=e.propertyName;e.object!==n.model||Nn!=="linkFromKeyProperty"&&Nn!=="linkToKeyProperty"&&Nn!=="linkFromPortIdProperty"&&Nn!=="linkToPortIdProperty"&&Nn!=="linkLabelKeysProperty"&&Nn!=="nodeIsGroupProperty"&&Nn!=="nodeGroupKeyProperty"&&Nn!=="linkCategoryProperty"||n.undoManager.isUndoingRedoing||this.Wd(),n.isModified=!0}}finally{n.aa=!0}}}}},ca.prototype.refreshDataBoundLinks=function(){var e=this,t=this.diagram.model,n=new Yt,i=t.linkDataArray;i.forEach(function(o){n.add(o)});var r=[];this.links.each(function(o){o.data===null||n.contains(o.data)||r.push(o.data)}),r.forEach(function(o){z1(t,o,!1)}),i.forEach(function(o){e.Kc(o)===null&&_1(t,o,!1)})},ca.prototype.updateRelationshipsFromData=function(e){var t=e.data;if(t!==null){var n=e.diagram;if(n!==null){var i=n.model;if(e instanceof kn){var r=xu(i,t,!0);if(r=n.Vb(r),e.fromNode=r,r=xu(i,t,!1),r=n.Vb(r),e.toNode=r,t=i.Ef(t),0<t.length||0<e.labelNodes.count){if(t.length===1&&e.labelNodes.count===1){r=t[0];var o=e.labelNodes.first();if(i.wa(o.data)===r)return}r=new Yt().addAll(t);var s=new Yt;e.labelNodes.each(function(l){l.data!==null&&(l=i.wa(l.data),l!==void 0&&s.add(l))}),t=s.copy(),t.hp(r),r=r.copy(),r.hp(s),(0<t.count||0<r.count)&&(t.each(function(l){l=n.Vb(l),l!==null&&l.labeledLink===e&&(l.labeledLink=null)}),r.each(function(l){l=n.Vb(l),l!==null&&l.labeledLink!==e&&(l.labeledLink=e)}))}}else!(e instanceof Fr)&&(t=i.lh(t),t=n.findPartForKey(t),t===null||t instanceof Xi)&&(e.containingGroup=t)}}},ca.prototype.resolveReferencesForData=function(e){var t=this.diagram.model,n=t.wa(e);if(n!==void 0){var i=Up(t,n),r=this.Lc(e);if(i!==null&&r!==null){i=i.iterator;for(var o={};i.next();){var s=i.value;t.lb(s)?r instanceof Xi&&t.lh(s)===n&&(s=this.Lc(s),s!==null&&(s.containingGroup=r)):(o.link=this.Kc(s),o.link!==null&&r instanceof Vn&&(xu(t,s,!0)===n&&(o.link.fromNode=r),xu(t,s,!1)===n&&(o.link.toNode=r),s=t.Ef(s),Array.isArray(s)&&s.some(function(l){return function(u){return u===n?(r.labeledLink=l.link,!0):!1}}(o)))),o={link:o.link}}pc(t,n)}e=t.lh(e),e!==void 0&&(e=this.Vb(e),e instanceof Xi&&(r.containingGroup=e))}},ca.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof Vn){var n=t.wa(e.data);if(n!==void 0){for(var i=e.linksConnected;i.next();)fc(t,n,i.value.data);if(e.isLinkLabel&&(i=e.labeledLink,i!==null&&fc(t,n,i.data)),e instanceof Xi)for(e=e.memberParts;e.next();)i=e.value.data,t.lb(i)&&fc(t,n,i)}}},ca.prototype.copyPartData=function(e,t){var n=Vr.prototype.copyPartData.call(this,e,t);if(e instanceof kn)if(e=e.data,e!==null&&t!==null){var i=t.model;e=i.Jo(e),typeof e=="object"&&e!==null&&(i.fi(e),n=t.Kc(e))}else n!==null&&(t=this.diagram,e!==null&&t!==null&&t.commandHandler!==null&&t.commandHandler.copiesClipboardData&&(t=t.model.Jo(e),typeof t=="object"&&t!==null&&(n.data=t)));return n},ca.prototype.insertLink=function(e,t,n,i){var r=this.diagram,o=r.model,s=r.toolManager.findTool("Linking"),l="";if(e!==null&&(t===null&&(t=e),l=t.portId,l===null&&(l="")),t="",n!==null&&(i===null&&(i=n),t=i.portId,t===null&&(t="")),i=s.archetypeLinkData,i instanceof kn){if(Uu(i),o=i.copy(),o!==null)return o.fromNode=e,o.fromPortId=l,o.toNode=n,o.toPortId=t,r.add(o),e=s.archetypeLabelNodeData,e instanceof Vn&&(Uu(e),e=e.copy(),e!==null&&(e.labeledLink=o,r.add(e))),o}else if(i!==null&&(i=o.Jo(i),typeof i=="object"&&i!==null))return e!==null&&Ff(o,i,o.wa(e.data),!0),Bf(o,i,l,!0),n!==null&&Ff(o,i,o.wa(n.data),!1),Bf(o,i,t,!1),o.fi(i),e=s.archetypeLabelNodeData,e===null||e instanceof Vn||(e=o.copyNodeData(e),typeof e=="object"&&e!==null&&(o.xf(e),e=o.wa(e),e!==void 0&&o.Bu(i,e))),r.Kc(i);return null},ca.prototype.findLinkForKey=ca.prototype.findLinkForKey,ca.prototype.findPartForKey=ca.prototype.findPartForKey,ca.prototype.removeAllModeledParts=ca.prototype.removeAllModeledParts,ca.prototype.addModeledParts=ca.prototype.addModeledParts,ca.prototype.addAllModeledParts=ca.prototype.addAllModeledParts,ca.className="GraphLinksPartManager";function Ru(){Vr.apply(this,arguments),this.Sg=null}fi(Ru,Vr);function bm(e,t,n){if(t!==null&&n!==null&&n.kh()===null){var i=e.diagram.toolManager.findTool("Linking"),r=t,o=n;if(e.diagram.isTreePathToChildren||(r=n,o=t),(i===null||!dn(i,r,o,null,!0))&&(t=e.getLinkCategoryForData(n.data),i=e.findLinkTemplateForCategory(t),i!==null&&(Uu(i),i=i.copy(),i!==null))){var s=e.diagram.skipsModelSourceBindings;e.diagram.skipsModelSourceBindings=!0,i.Tf=t,i.ub=n.data,i.fromNode=r,i.toNode=o,e.diagram.add(i),i.ub=null,i.data=n.data,e.diagram.skipsModelSourceBindings=s}}}Ru.prototype.getLinkCategoryForData=function(e){return this.diagram.model.ss(e)},Ru.prototype.setLinkCategoryForData=function(e,t){this.diagram.model.Ms(e,t)},Ru.prototype.setFromNodeForLink=function(e,t,n){var i=this.diagram.model;if(n===void 0&&(n=null),t=t!==null?t.data:null,this.diagram.isTreePathToChildren)i.qe(e.data,i.wa(t));else{var r=this.Sg;this.Sg=e,n!==null&&i.qe(n.data,void 0),i.qe(t,i.wa(e.toNode!==null?e.toNode.data:null)),this.Sg=r}},Ru.prototype.setToNodeForLink=function(e,t,n){var i=this.diagram.model;if(n===void 0&&(n=null),t=t!==null?t.data:null,this.diagram.isTreePathToChildren){var r=this.Sg;this.Sg=e,n!==null&&i.qe(n.data,void 0),i.qe(t,i.wa(e.fromNode!==null?e.fromNode.data:null)),this.Sg=r}else i.qe(e.data,i.wa(t))},Ru.prototype.removeDataForLink=function(e){this.diagram.model.qe(e.data,void 0)},Ru.prototype.findLinkForKey=function(e){return e==null?null:(e=this.diagram.model.hc(e),e!==null?this.bf.I(e):null)},Ru.prototype.doModelChanged=function(e){if(Vr.prototype.doModelChanged.call(this,e),this.diagram){var t=this.diagram;if(e.model===t.model){var n=e.change;if(t.aa){t.aa=!1;try{var i=e.modelChange;if(i!==""){if(n===io){if(i==="nodeParentKey"){var r=e.object,o=this.Vb(e.newValue),s=this.ii(r);if(this.Sg!==null)o!==null&&(this.Sg.data=r,this.Sg.category=this.getLinkCategoryForData(r));else if(s!==null){var l=s.kh();l!==null?o===null?t.remove(l):t.isTreePathToChildren?l.fromNode=o:l.toNode=o:bm(this,o,s)}}else if(i==="parentLinkCategory"){var u=this.ii(e.object),f=e.newValue;if(u!==null&&typeof f=="string"){var p=u.kh();p!==null&&(p.category=f)}}t.isModified=!0}}else if(n===io){var x=e.propertyName;e.object===t.model&&x==="nodeParentKeyProperty"&&(t.undoManager.isUndoingRedoing||this.Wd()),t.isModified=!0}}finally{t.aa=!0}}}}},Ru.prototype.updateRelationshipsFromData=function(e){var t=e.data;if(t!==null){var n=e.diagram;if(n!==null){var i=n.model;e instanceof Vn&&(t=i.mh(t),t=n.Vb(t),i=e.pg(),t!==i&&(i=e.kh(),t!==null?i!==null?n.isTreePathToChildren?i.fromNode=t:i.toNode=t:bm(this,t,e):i!==null&&Xc(n,i,!1)))}}},Ru.prototype.updateDataBindings=function(e,t){Vr.prototype.updateDataBindings.call(this,e,t),typeof t=="string"&&this.Lc(e)!==null&&(e=this.Kc(e),e!==null&&e.La(t))},Ru.prototype.resolveReferencesForData=function(e){var t=this.diagram.model,n=t.wa(e);if(n!==void 0){var i=Up(t,n),r=this.Lc(e);if(i!==null&&r!==null){for(i=i.iterator;i.next();){var o=i.value;t.lb(o)&&r instanceof Vn&&t.mh(o)===n&&bm(this,r,this.ii(o))}pc(t,n)}e=t.mh(e),e!==void 0&&r instanceof Vn&&(e=this.Vb(e),bm(this,e,r))}},Ru.prototype.unresolveReferencesForPart=function(e){var t=this.diagram.model;if(e instanceof Vn){var n=t.wa(e.data),i=this.Kc(e.data);if(i!==null){i.isSelected=!1,i.isHighlighted=!1;var r=i.layer;if(r!==null){var o=r.pc(-1,i,!1);0<=o&&this.diagram.cb(os,"parts",r,i,null,o,null),o=i.layerChanged,o!==null&&o(i,r,null)}}for(i=this.diagram.isTreePathToChildren,e=e.linksConnected;e.next();)r=e.value,r=(i?r.toNode:r.fromNode).data,t.lb(r)&&fc(t,n,r)}},Ru.prototype.insertLink=function(e,t,n){t=this.diagram.model;var i=e,r=n;return this.diagram.isTreePathToChildren||(i=n,r=e),i!==null&&r!==null?(t.qe(r.data,t.wa(i.data)),r.kh()):null},Ru.prototype.findLinkForKey=Ru.prototype.findLinkForKey,Ru.className="TreePartManager";function pi(e,t){this.kl=new Yt,this.il=new Yt,this.Wv=`,
|
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
|
"removedNodeKeys": `,this.vh=null,Wi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new ii,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 ii,this.Lt=new Xt,this.Wg=!1,this.o=null,this.undoManager=new wo,e!==void 0&&(_n(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}pi.prototype.cloneProtected=function(e){e.xa=this.xa,e.Sm=this.Sm,e.Gg=this.Gg,e.Th=this.Th,e.bl=this.bl,e.Bk=this.Bk,e.Km=this.Km,e.Jm=this.Jm,e.Mm=this.Mm,e.xm=this.xm,e.lj=this.lj},pi.prototype.copy=function(){var e=new this.constructor;return this.cloneProtected(e),e},pi.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},pi.prototype.toString=function(e){if(e===void 0&&(e=0),1<e)return this.np();var t=(this.name!==""?this.name:"")+" Model";if(0<e){t+=`
|
|
|
node data:`,e=this.nodeDataArray;for(var n=e.length,i=0;i<n;i++){var r=e[i];t+=" "+this.wa(r)+":"+En(r)}}return t},pi.prototype.xA=function(e){e.change!==sa&&ut("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+e.toString());var t=e.object;return e.isTransactionFinished&&t instanceof ps?(I1(this,t),e=this.Qv(t,e.propertyName==="FinishedUndo"),this.vh=null,e):null},pi.prototype.Qv=function(e,t){var n=this,i=!1,r=new Yt,o=new Yt,s=new Yt,l=this.vh;e.changes.each(function(x){x.model===n&&(x.modelChange==="nodeDataArray"?x.change===zo?r.add(x.newValue):x.change===os&&s.add(x.oldValue):n.lb(x.object)?o.add(x.object):x.change!==io||n.modelData!==x.object&&x.propertyName!=="modelData"?x.object!==null&&(l&&l.contains(x.object)?l.get(x.object).each(function(N){n.lb(N)&&o.add(N)}):x.object instanceof pi||n.ri()&&n.Jc(x.object)||M1(n,x.object).each(function(N){o.add(N)})):i=!0)});var u=this.il;u.clear(),r.each(function(x){u.add(n.wa(x)),t||o.add(x)});var f=this.kl;f.clear(),s.each(function(x){f.add(n.wa(x)),t&&o.add(x)}),e=n.cloneDeep(o.Fa());var p=null;return i&&(p===null&&(p={}),p.modelData=this.cloneDeep(this.modelData)),0<u.count&&(p===null&&(p={}),t?p.removedNodeKeys=u.Fa():p.insertedNodeKeys=u.Fa()),0<e.length&&(p===null&&(p={}),p.modifiedNodeData=e),0<f.count&&(p===null&&(p={}),t?p.insertedNodeKeys=f.Fa():p.removedNodeKeys=f.Fa()),f.clear(),u.clear(),p},pi.prototype.cloneDeep=function(e){return Pf(this,e,!0)};function Pf(e,t,n,i,r,o){function s(x,N){l?(x.__gohashid===void 0&&o.push(x),i.set(x,N)):(x=fo++,i.set(x,N),r.set(x,t))}if(!Zt(t))return t;o||(o=[]);var l=Object.isExtensible(t);if(i||(i=new ii),l){var u=i.get(t);if(u)return u}else for(r||(r=new ii),u=r.iterator;u.next();){var f=u.key;if(u.value===t&&(f=i.get(f)))return f}if(Array.isArray(t)){u=[],s(t,u);for(var p=0;p<t.length;p++)u.push(Pf(e,t[p],!1,i,r,o))}else if(t instanceof ce||t instanceof mi||t instanceof Ht||t instanceof vi||t instanceof ui)u=t.copy(),s(t,u);else{if(t instanceof Wr||t instanceof An||t instanceof qt)return t;if(t instanceof Xt)u=new Xt().addAll(Pf(e,t.Fa(),!1,i,r,o)),s(t,u);else if(t instanceof Yt)u=new Yt().addAll(Pf(e,t.Fa(),!1,i,r,o)),s(t,u);else if(t instanceof ii)u=new ii().addAll(Pf(e,t.Fa(),!1,i,r,o)),s(t,u);else if(t instanceof Date)u=new Date(t.getTime()),s(t,u);else if(t instanceof RegExp)u=new RegExp(t),s(t,u),u.lastIndex=t.lastIndex;else if(typeof t.copy=="function")u=t.copy(),s(t,u);else for(p in u={},s(t,u),t)p!=="__gohashid"&&(u[p]=Pf(e,t[p],!1,i,r,o))}return n&&o.forEach(function(x){delete x.__gohashid}),u}_=pi.prototype,_.quote=function(e){return JSON.stringify(e).replace(/[\u007F-\uFFFF]/g,function(t){return"\\u"+("0000"+t.charCodeAt(0).toString(16)).substr(-4)})},_.rm=function(){var e="";return this.name!==""&&(e+=`,
|
|
|
"name": `+this.quote(this.name)),this.dataFormat!==""&&(e+=`,
|
|
|
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(e+=`,
|
|
|
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(e+=`,
|
|
|
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(e+=`,
|
|
|
"copiesArrays": true`),this.copiesArrayObjects&&(e+=`,
|
|
|
"copiesArrayObjects": true`),this.copiesKey||(e+=`,
|
|
|
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(e+=`,
|
|
|
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),e},_.gp=function(e){e.name&&(this.name=e.name),e.dataFormat&&(this.dataFormat=e.dataFormat),e.isReadOnly&&(this.isReadOnly=!0),e.nodeKeyProperty&&(this.nodeKeyProperty=e.nodeKeyProperty),e.copiesArrays&&(this.copiesArrays=!0),e.copiesArrayObjects&&(this.copiesArrayObjects=!0),e.copiesKey===!1&&(this.copiesKey=!1),e.nodeCategoryProperty&&(this.nodeCategoryProperty=e.nodeCategoryProperty)};function k1(e,t){t=t.modelData,Zt(t)&&(e.dm(t),e.modelData=t)}_.Rv=function(){var e=this.modelData,t=!1,n;for(n in e)if(!O1(n,e[n])){t=!0;break}return e="",t&&(e=`,
|
|
|
"modelData": `+yv(this,this.modelData)),e+`,
|
|
|
"nodeDataArray": `+Kh(this,this.nodeDataArray,!0)},_.kv=function(e){k1(this,e),e=e.nodeDataArray,_n(e)&&(this.dm(e),this.nodeDataArray=e)};function I1(e,t){function n(r,o){if((o=o.part)&&(o=o.data,r!==o)){var s=i.get(r);s===null?(s=new Yt,s.add(o),i.add(r,s)):s.add(o)}}var i=e.vh;i===null&&(i=new ii,t.changes.each(function(r){if(r.diagram!==null){var o=r.change;o===io?(r=r.object.panel)&&(o=r.data)&&n(o,r):(o===zo||o===os)&&(r=r.object,(o=r.itemArray)&&n(o,r))}}),e.vh=i)}function M1(e,t){for(var n=new Yt,i=0;i<e.nodeDataArray.length;i++){var r=e.nodeDataArray[i];xm(e,t,r,r,n)}return n}function xm(e,t,n,i,r){if(Array.isArray(n))for(var o=0;o<n.length;o++){var s=n[o];if(s===t)return r.add(i),!0;if(xm(e,t,s,i,r))return!0}else if(Zt(n)&&Object.getPrototypeOf(n)===Object.prototype)for(o in n){if(s=n[o],s===t)return r.add(i),!0;if(xm(e,t,s,i,r))return!0}return!1}_.Pv=function(e,t){var n=this,i=!1,r=new Yt,o=new Yt,s=new Yt,l=this.vh;e.changes.each(function(p){p.model===n&&(p.modelChange==="nodeDataArray"?p.change===zo?r.add(p.newValue):p.change===os&&s.add(p.oldValue):n.lb(p.object)?o.add(p.object):p.change!==io||n.modelData!==p.object&&p.propertyName!=="modelData"?p.object!==null&&(l&&l.contains(p.object)?l.get(p.object).each(function(x){n.lb(x)&&o.add(x)}):p.object instanceof pi||n.ri()&&n.Jc(p.object)||M1(n,p.object).each(function(x){o.add(x)})):i=!0)});var u=this.il;u.clear(),r.each(function(p){u.add(n.wa(p)),t||o.add(p)});var f=this.kl;return f.clear(),s.each(function(p){f.add(n.wa(p)),t&&o.add(p)}),e="",i&&(e+=`,
|
|
|
"modelData": `+yv(this,this.modelData)),0<u.count&&(e+=(t?this.Yv:this.Wv)+Kh(this,u.Fa(),!0)),0<o.count&&(e+=this.jy+Kh(this,o.Fa(),!0)),0<f.count&&(e+=(t?this.Wv:this.Yv)+Kh(this,f.Fa(),!0)),f.clear(),u.clear(),e},_.fp=function(e){(e.name!==void 0&&e.name!==this.name||e.dataFormat!==void 0&&e.dataFormat!==this.dataFormat||e.isReadOnly!==void 0&&e.isReadOnly!==this.isReadOnly||e.nodeKeyProperty!==void 0&&e.nodeKeyProperty!==this.nodeKeyProperty||e.copiesArrays!==void 0&&e.copiesArrays!==this.copiesArrays||e.copiesArrayObjects!==void 0&&e.copiesArrayObjects!==this.copiesArrayObjects||e.copiesKey!==void 0&&e.copiesKey!==this.copiesKey||e.nodeCategoryProperty!==void 0&&e.nodeCategoryProperty!==this.nodeCategoryProperty)&&ut("applyIncrementalJson cannot change Model properties"),k1(this,e);var t=e.insertedNodeKeys,n=e.modifiedNodeData,i=new ii;if(Array.isArray(n))for(var r=0;r<n.length;r++){var o=n[r],s=this.wa(o);s!=null&&i.set(s,o)}if(Array.isArray(t))for(r=t.length,o=0;o<r;o++){s=t[o];var l=this.hc(s);l===null&&(l=(l=i.get(s))?l:this.copyNodeData({}),this.km(l,s),this.xf(l))}if(Array.isArray(n)){for(t=n.length,i=0;i<t;i++)if(r=n[i],o=this.wa(r),o=this.hc(o),o!==null){for(var u in r)u==="__gohashid"||u===this.nodeKeyProperty||this.Wj()&&u===this.nodeIsGroupProperty||this.setDataProperty(o,u,r[u]);this.lm(r,o)}}if(e=e.removedNodeKeys,Array.isArray(e))for(n=e.length,u=0;u<n;u++)t=this.hc(e[u]),t!==null&&this.cm(t)},_.$x=function(e,t){e.change!==sa&&ut("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+e.toString());var n=e.object;return e.isTransactionFinished&&n instanceof ps?(t===void 0&&(t=Hp(this,this)),I1(this,n),e=this.Pv(n,e.propertyName==="FinishedUndo"),this.vh=null,t==="2"?'{ "incremental": 2'+e+"}":'{ "class": '+this.quote(t)+', "incremental": 1'+this.rm()+e+"}"):'{ "incremental": 0 }'},_.yA=function(e,t){return this.$x(e,t)},_.np=function(e){return e===void 0&&(e=Hp(this,this)),'{ "class": '+this.quote(e)+this.rm()+this.Rv()+"}"},_.toJSON=function(e){return this.np(e)},_.Zw=function(e){var t=null;if(typeof e=="string")try{t=je.JSON.parse(e)}catch(i){}else typeof e=="object"?t=e:ut("Unable to modify a Model from: "+e);var n=t.incremental;typeof n!="number"&&ut("Unable to apply non-incremental changes to Model: "+e),n!==0&&(this.Ea("applyIncrementalJson"),this.fp(t),this.eb("applyIncrementalJson"))},_.Ky=function(e){return this.Zw(e)},pi.constructGraphLinksModel=function(){return new pi},_=pi.prototype,_.dm=function(e){if(_n(e))for(var t=e.length,n=0;n<t;n++){var i=e[n];if(Zt(i)){var r=n;i=this.dm(i),Array.isArray(e)?e[r]=i:ut("Cannot replace an object in an HTMLCollection or NodeList at "+r)}}else if(Zt(e)){for(t in e)if(n=e[t],Zt(n)&&(n=this.dm(n),e[t]=n,t==="points"&&Array.isArray(n))){for(r=n.length%2===0,i=0;i<n.length;i++)if(typeof n[i]!="number"){r=!1;break}if(r){for(r=new Xt,i=0;i<n.length/2;i++)r.add(new ce(n[2*i],n[2*i+1]));r.freeze(),e[t]=r}}return Wb(e)}return e},_.sm=function(e){return e===void 0?"undefined":e===null?"null":e===!0?"true":e===!1?"false":typeof e=="string"?this.quote(e):typeof e=="number"?e===1/0?"9e9999":e===-1/0?"-9e9999":isNaN(e)?'{"class":"NaN"}':e.toString():e instanceof Date?'{"class":"Date", "value":"'+e.toJSON()+'"}':e instanceof Number?this.sm(e.valueOf()):_n(e)?Kh(this,e):Zt(e)?yv(this,e):typeof e=="function"?"null":e.toString()};function Kh(e,t,n){n===void 0&&(n=!1);var i=t.length;if(0>=i)return"[]";var r=new ee;r.add("["),n&&1<i&&r.add(`
|
|
|
`);for(var o=0;o<i;o++){var s=t[o];s!==void 0&&(0<o&&(r.add(","),n&&r.add(`
|
|
|
`)),r.add(e.sm(s)))}return n&&1<i&&r.add(`
|
|
|
`),r.add("]"),r.toString()}function O1(e,t){return t===void 0||e==="__gohashid"||e[0]==="_"||typeof t=="function"}function vl(e){return isNaN(e)?"NaN":e===1/0?"9e9999":e===-1/0?"-9e9999":e}function yv(e,t){var n=t;if(n instanceof ce)t={class:"go.Point",x:vl(n.x),y:vl(n.y)};else if(n instanceof mi)t={class:"go.Size",width:vl(n.width),height:vl(n.height)};else if(n instanceof Ht)t={class:"go.Rect",x:vl(n.x),y:vl(n.y),width:vl(n.width),height:vl(n.height)};else if(n instanceof vi)t={class:"go.Margin",top:vl(n.top),right:vl(n.right),bottom:vl(n.bottom),left:vl(n.left)};else if(n instanceof ui)n.sb()?t={class:"go.Spot",x:vl(n.x),y:vl(n.y),offsetX:vl(n.offsetX),offsetY:vl(n.offsetY)}:t={class:"go.Spot",enum:n.toString()};else if(n instanceof Wr){if(t={class:"go.Brush",type:n.type.name},n.type===vh?t.color=n.color:(n.type===eh||n.type===Ou)&&(t.start=n.start,t.end=n.end,n.type===Ou&&(n.startRadius!==0&&(t.startRadius=vl(n.startRadius)),isNaN(n.endRadius)||(t.endRadius=vl(n.endRadius)))),n.colorStops!==null){var i={};for(n=n.colorStops.iterator;n.next();)i[n.key]=n.value;t.colorStops=i}}else n instanceof An?(t={class:"go.Geometry",type:n.type.name},n.startX!==0&&(t.startX=vl(n.startX)),n.startY!==0&&(t.startY=vl(n.startY)),n.endX!==0&&(t.endX=vl(n.endX)),n.endY!==0&&(t.endY=vl(n.endY)),n.spot1.D(Yo)||(t.spot1=n.spot1),n.spot2.D(Oo)||(t.spot2=n.spot2),n.type===An.o&&(t.path=An.ia(n))):n instanceof qt&&(t={class:"go.EnumValue",classType:Hp(e,n.classType),name:n.name});i="{",n=!0;for(var r in t){var o=Ns(t,r);if(!O1(r,o))if(n?n=!1:i+=",",i+=e.quote(r)+":",r==="points"&&o instanceof Xt){var s="[";for(o=o.iterator;o.next();){var l=o.value;1<s.length&&(s+=","),s+=e.sm(l.x),s+=",",s+=e.sm(l.y)}s+="]",i+=s}else i+=e.sm(o)}return i+"}"}function yl(e){return typeof e=="number"?e:e==="NaN"?NaN:e==="9e9999"?1/0:e==="-9e9999"?-1/0:parseFloat(e)}function Wb(e){if(typeof e!="object")return e;var t=e.class||"";if(t==="NaN")return NaN;if(t==="Date")return new Date(e.value);if(t.indexOf("go.")!==0)return e;t=t.substr(3);var n=e;if(t==="Point")n=new ce(yl(e.x),yl(e.y));else if(t==="Size")n=new mi(yl(e.width),yl(e.height));else if(t==="Rect")n=new Ht(yl(e.x),yl(e.y),yl(e.width),yl(e.height));else if(t==="Margin")n=new vi(yl(e.top),yl(e.right),yl(e.bottom),yl(e.left));else if(t==="Spot")typeof e.enum=="string"?n=ac(e.enum):n=new ui(yl(e.x),yl(e.y),yl(e.offsetX),yl(e.offsetY));else if(t==="Brush"){if(n=new Wr,n.type=Ki(Wr,e.type),typeof e.color=="string"&&(n.color=e.color),e.start instanceof ui&&(n.start=e.start),e.end instanceof ui&&(n.end=e.end),typeof e.startRadius=="number"&&(n.startRadius=yl(e.startRadius)),typeof e.endRadius=="number"&&(n.endRadius=yl(e.endRadius)),e=e.colorStops,Zt(e))for(var i in e)n.addColorStop(parseFloat(i),e[i])}else t==="Geometry"?(n=null,typeof e.path=="string"?n=An.parse(e.path):n=new An,n.type=Ki(An,e.type),typeof e.startX=="number"&&(n.startX=yl(e.startX)),typeof e.startY=="number"&&(n.startY=yl(e.startY)),typeof e.endX=="number"&&(n.endX=yl(e.endX)),typeof e.endY=="number"&&(n.endY=yl(e.endY)),e.spot1 instanceof ui&&(n.spot1=e.spot1),e.spot2 instanceof ui&&(n.spot2=e.spot2)):t==="EnumValue"&&(i=e.classType,i.indexOf("go.")===0&&(i=i.substr(3)),i=xv(i),typeof i=="function"&&(n=Ki(i,e.name)));return n}_.Pe=function(e){return this.Lt.add(e),this},_.ik=function(e){this.Lt.remove(e)},_.ds=function(e){this.skipsUndoManager||this.undoManager.Tu(e);for(var t=this.Lt,n=t.length,i=0;i<n;i++)t.M(i)(e)},_.cb=function(e,t,n,i,r,o,s){zs(this,"",e,t,n,i,r,o,s)},_.g=function(e,t,n,i,r){zs(this,"",io,e,this,t,n,i,r)},_.Fs=function(e,t,n,i,r,o){zs(this,"",io,t,e,n,i,r,o)};function zs(e,t,n,i,r,o,s,l,u){l===void 0&&(l=null),u===void 0&&(u=null);var f=new uo;f.model=e,f.change=n,f.modelChange=t,f.propertyName=i,f.object=r,f.oldValue=o,f.oldParam=l,f.newValue=s,f.newParam=u,e.ds(f)}pi.prototype.changeState=function(e,t){if(e!==null&&e.model===this)if(e.change===io){var n=e.object,i=e.propertyName,r=e.I(t);i===this.nodeKeyProperty&&this.lb(n)&&(t=e.I(!t),t!==void 0&&this.kb.remove(t),r!==void 0&&this.kb.add(r,n)),Mo(n,i,r)}else e.change===zo?(n=e.newParam,e.modelChange==="nodeDataArray"?(e=e.newValue,Zt(e)&&typeof n=="number"&&(i=this.wa(e),t?(this.Tc[n]===e&&on(this.Tc,n),i!==void 0&&this.kb.remove(i)):(this.Tc[n]!==e&&Jt(this.Tc,n,e),i!==void 0&&this.kb.add(i,e)))):e.modelChange===""?((i=e.object)&&!_n(i)&&e.propertyName&&(i=Ns(e.object,e.propertyName)),_n(i)&&typeof n=="number"&&(e=e.newValue,t?on(i,n):Jt(i,n,e))):ut("unknown ChangedEvent.Insert modelChange: "+e.toString())):e.change===os?(n=e.oldParam,e.modelChange==="nodeDataArray"?(e=e.oldValue,Zt(e)&&typeof n=="number"&&(i=this.wa(e),t?(this.Tc[n]!==e&&Jt(this.Tc,n,e),i!==void 0&&this.kb.add(i,e)):(this.Tc[n]===e&&on(this.Tc,n),i!==void 0&&this.kb.remove(i)))):e.modelChange===""?((i=e.object)&&!_n(i)&&e.propertyName&&(i=Ns(e.object,e.propertyName)),_n(i)&&typeof n=="number"&&(e=e.oldValue,t?Jt(i,n,e):on(i,n))):ut("unknown ChangedEvent.Remove modelChange: "+e.toString())):e.change!==sa&&ut("unknown ChangedEvent: "+e.toString())},pi.prototype.Ea=function(e){return this.undoManager.Ea(e)},pi.prototype.eb=function(e){return this.undoManager.eb(e)},pi.prototype.Kf=function(){return this.undoManager.Kf()},pi.prototype.commit=function(e,t){t===void 0&&(t="");var n=this.skipsUndoManager;t===null&&(this.skipsUndoManager=!0,t=""),this.undoManager.Ea(t);var i=!1;try{e(this),i=!0}finally{i?this.undoManager.eb(t):this.undoManager.Kf(),this.skipsUndoManager=n}},_=pi.prototype,_.La=function(e,t){t===void 0&&(t=""),zs(this,"SourceChanged",sa,t,e,null,null)},_.wa=function(e){if(e!==null){var t=this.Th;if(t!==""&&(t=Ns(e,t),t!==void 0)){if(Yh(t))return t;ut("Key value for node data "+e+" is not a number or a string: "+t)}}},_.km=function(e,t){if(e!==null){var n=this.Th;if(n!=="")if(this.lb(e)){var i=Ns(e,n);i!==t&&this.hc(t)===null&&(Mo(e,n,t),i!==void 0&&this.kb.remove(i),this.kb.add(t,e),zs(this,"nodeKey",io,n,e,i,t),typeof n=="string"&&this.La(e,n),this.jp(i,t))}else Mo(e,n,t)}};function Yh(e){return typeof e=="number"||typeof e=="string"}_.lb=function(e){var t=this.wa(e);return t===void 0?!1:this.kb.I(t)===e},_.hc=function(e){return e===null&&ut("Model.findNodeDataForKey:key must not be null"),e!==void 0&&Yh(e)?this.kb.I(e):null},_.$u=function(e){if(e!==null){var t=this.Th;if(t!==""){var n=this.wa(e);if(n===void 0||this.kb.contains(n)){var i=this.bl;if(i!==null&&(n=i(this,e),n!=null&&!this.kb.contains(n))){Mo(e,t,n);return}if(typeof n=="string"){for(i=2;this.kb.contains(n+i);)i++;Mo(e,t,n+i)}else if(n===void 0||typeof n=="number"){for(n=-this.kb.count-1;this.kb.contains(n);)n--;Mo(e,t,n)}}}}},_.xf=function(e){e!==null&&(Zr(e),this.lb(e)||L1(this,e,!0))};function L1(e,t,n){var i=e.wa(t);(i===void 0||e.kb.I(i)!==t)&&(e.$u(t),i=e.wa(t),i===void 0&&ut("Model.makeNodeDataKeyUnique failed on "+t+". Data not added to Model."),e.kb.add(i,t),i=null,n&&(i=e.Tc.length,Jt(e.Tc,i,t)),zs(e,"nodeDataArray",zo,"nodeDataArray",e,null,t,null,i),e.fm(t),e.em(t))}_.Fy=function(e){if(_n(e))for(var t=e.length,n=0;n<t;n++)this.xf(e[n]);else for(e=e.iterator;e.next();)this.xf(e.value)},_.cm=function(e){e!==null&&R1(this,e,!0)};function R1(e,t,n){var i=e.wa(t);if(i!==void 0&&e.kb.remove(i),i=null,n){e:if(n=e.Tc,Array.isArray(n))i=n.indexOf(t);else{i=n.length;for(var r=0;r<i;r++)if(n[r]===t){i=r;break e}i=-1}if(0>i)return;on(e.Tc,i)}zs(e,"nodeDataArray",os,"nodeDataArray",e,t,null,i,null),e.qp(t)}_.nA=function(e){if(_n(e))for(var t=e.length,n=0;n<t;n++)this.cm(e[n]);else for(e=e.iterator;e.next();)this.cm(e.value)},_.$z=function(e){if(e!==this.nodeDataArray&&_n(e)){var t=this.kl;t.clear(),t.addAll(this.kb.iteratorKeys);var n=this.il;n.clear();for(var i=e.length,r=0;r<i;r++){var o=e[r],s=this.wa(o);if(s!==void 0){n.add(s);var l=this.hc(s);l!==o&&(l!==null?(this.Do(l,o),this.lm(o,l)):(o=this.cloneDeep(o),this.km(o,s),this.xf(o)))}else s=this.cloneDeep(o),this.xf(s),n.add(this.wa(s))}for(e=t.iterator;e.next();)i=e.value,n.contains(i)||(i=this.hc(i))&&this.cm(i);t.clear(),n.clear()}},_.jp=function(e,t){t!==void 0&&(e=Up(this,e),e instanceof Yt&&this.Vf.add(t,e))},_.Lv=function(){},_.fm=function(){},_.em=function(){},_.qp=function(){};function fc(e,t,n){if(t!==void 0){var i=e.Vf.I(t);i===null&&(i=new Yt,e.Vf.add(t,i)),i.add(n)}}function pc(e,t,n){if(t!==void 0){var i=e.Vf.I(t);i instanceof Yt&&(n==null?e.Vf.remove(t):(i.remove(n),i.count===0&&e.Vf.remove(t)))}}function Up(e,t){return t===void 0?null:(e=e.Vf.I(t),e instanceof Yt?e:null)}_.Qy=function(e){e===void 0?this.Vf.clear():this.Vf.remove(e)},pi.prototype.copyNodeData=function(e){if(e===null)return null;var t=this.Bk;return e=t!==null?t(e,this):Sm(this,e,!0),Zt(e)&&Wi(e),e};function Sm(e,t,n){if(e.copiesArrays&&Array.isArray(t)){var i=[];for(n=0;n<t.length;n++){var r=Sm(e,t[n],e.copiesArrayObjects);i.push(r)}return Wi(i),i}if(n&&Zt(t)){n=(n=t.constructor)?new n:{},r=e.copiesKey||typeof e.nodeKeyProperty!="string"?null:e.nodeKeyProperty;for(i in t)if(i==="__gohashid")n.__gohashid=void 0;else if(i===r)n[r]=void 0;else{var o=Ns(t,i),s=Hp(e,o);s==="GraphObject"||s==="Diagram"||s==="Layer"||s==="RowColumnDefinition"||s==="AnimationManager"||s==="Tool"||s==="CommandHandler"||s==="Layout"||s==="InputEvent"||s==="DiagramEvent"||o instanceof pi||o instanceof wo||o instanceof ps||o instanceof uo||(o=Sm(e,o,!1)),Mo(n,i,o)}return Wi(n),n}return t instanceof ce||t instanceof mi||t instanceof Ht||t instanceof ui||t instanceof vi?t.copy():t}pi.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}}else!D1&&e instanceof nt&&(D1=!0,Si('Model.setDataProperty is modifying a GraphObject, "'+e.toString()+'"'),Si(" Is that really your intent?"));var i=Ns(e,t);i!==n&&(Mo(e,t,n),this.Fs(e,t,i,n))},_=pi.prototype,_.set=function(e,t,n){this.setDataProperty(e,t,n)},_.Do=function(e,t){if(t){var n=this.lb(e),i;for(i in t)i==="__gohashid"||n&&i===this.nodeKeyProperty||this.setDataProperty(e,i,t[i])}},_.Ay=function(e,t){this.ts(e,-1,t)},_.ts=function(e,t,n){0>t&&(t=e.length),Jt(e,t,n),zs(this,"",zo,"",e,null,n,null,t)},_.ov=function(e,t){t===void 0&&(t=-1),e===this.Tc&&ut("Model.removeArrayItem should not be called on the Model.nodeDataArray"),t===-1&&(t=e.length-1);var n=e[t];on(e,t),zs(this,"",os,"",e,n,null,t,null)},_.Ro=function(e){if(e===null)return"";var t=this.lj;if(t===""||(t=Ns(e,t),t===void 0))return"";if(typeof t=="string")return t;ut("getCategoryForNodeData found a non-string category for "+e+": "+t)},_.jm=function(e,t){if(e!==null){var n=this.lj;if(n!=="")if(this.lb(e)){var i=Ns(e,n);i===void 0&&(i=""),i!==t&&(Mo(e,n,t),zs(this,"nodeCategory",io,n,e,i,t))}else Mo(e,n,t)}},_.lm=function(e,t){this.jm(t,this.Ro(e))},_.Tl=function(){return!1},_.Wj=function(){return!1},_.ri=function(){return!1},_.xs=function(){return!1},_.Xj=function(){return!1};function bv(){return new pi}function Hp(e,t){if(typeof t=="function"){if(t.className)return t.className;if(t.name)return t.name}else if(typeof t=="object"&&t!==null&&t.constructor)return Hp(e,t.constructor);return typeof t}function xv(e){return tc[e]?tc[e]:je.go!==void 0&&je.go[e]?je.go[e]:null}function Ns(e,t){if(!e||!t)return null;try{if(typeof t=="function")var n=t(e);else typeof e.getAttribute=="function"?(n=e.getAttribute(t),n===null&&(n=void 0)):n=e[t]}catch(i){}return n}function Mo(e,t,n){if(e&&t)try{typeof t=="function"?t(e,n):typeof e.setAttribute=="function"?e.setAttribute(t,n):e[t]=n}catch(i){}}at.Object.defineProperties(pi.prototype,{name:{get:function(){return this.xa},set:function(e){var t=this.xa;t!==e&&(this.xa=e,this.g("name",t,e))}},dataFormat:{get:function(){return this.Sm},set:function(e){var t=this.Sm;t!==e&&(this.Sm=e,this.g("dataFormat",t,e))}},isReadOnly:{get:function(){return this.Gg},set:function(e){var t=this.Gg;t!==e&&(this.Gg=e,this.g("isReadOnly",t,e))}},modelData:{get:function(){return this.j},set:function(e){var t=this.j;t!==e&&(this.j=e,this.g("modelData",t,e),this.La(e))}},undoManager:{get:function(){return this.o},set:function(e){var t=this.o;t!==e&&(t!==null&&t.Rx(this),this.o=e,e!==null&&e.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(e){this.Wg=e}},nodeKeyProperty:{get:function(){return this.Th},set:function(e){var t=this.Th;t!==e&&(e===""&&ut("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&ut("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=e,this.g("nodeKeyProperty",t,e))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(e){var t=this.bl;t!==e&&(this.bl=e,this.g("makeUniqueKeyFunction",t,e))}},nodeDataArray:{get:function(){return this.Tc},set:function(e){var t=this.Tc;if(t!==e){this.kb.clear(),this.Lv();for(var n=e.length,i=0;i<n;i++){var r=e[i];Zt(r)||ut("Model.nodeDataArray must only contain Objects, not: "+r),Zr(r)}for(this.Tc=e,i=new Xt,r=0;r<n;r++){var o=e[r],s=this.wa(o);s===void 0||this.kb.I(s)!==null?i.add(o):this.kb.add(s,o)}for(i=i.iterator;i.next();)r=i.value,this.$u(r),o=this.wa(r),o!==void 0&&this.kb.add(o,r);for(zs(this,"nodeDataArray",io,"nodeDataArray",this,t,e),t=0;t<n;t++)i=e[t],this.fm(i),this.em(i);Array.isArray(e)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(e){var t=this.Bk;t!==e&&(this.Bk=e,this.g("copyNodeDataFunction",t,e))}},copiesArrays:{get:function(){return this.Km},set:function(e){var t=this.Km;t!==e&&(this.Km=e,this.g("copiesArrays",t,e))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(e){var t=this.Jm;t!==e&&(this.Jm=e,this.g("copiesArrayObjects",t,e))}},copiesKey:{get:function(){return this.Mm},set:function(e){var t=this.Mm;t!==e&&(this.Mm=e,this.g("copiesKey",t,e))}},afterCopyFunction:{get:function(){return this.xm},set:function(e){var t=this.xm;t!==e&&(this.xm=e,this.g("afterCopyFunction",t,e))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(e){var t=this.lj;t!==e&&(this.lj=e,this.g("nodeCategoryProperty",t,e))}},type:{get:function(){return"Model"}}}),pi.prototype.setCategoryForNodeData=pi.prototype.jm,pi.prototype.getCategoryForNodeData=pi.prototype.Ro,pi.prototype.removeArrayItem=pi.prototype.ov,pi.prototype.insertArrayItem=pi.prototype.ts,pi.prototype.addArrayItem=pi.prototype.Ay,pi.prototype.assignAllDataProperties=pi.prototype.Do,pi.prototype.set=pi.prototype.set,pi.prototype.clearUnresolvedReferences=pi.prototype.Qy,pi.prototype.mergeNodeDataArray=pi.prototype.$z,pi.prototype.removeNodeDataCollection=pi.prototype.nA,pi.prototype.removeNodeData=pi.prototype.cm,pi.prototype.addNodeDataCollection=pi.prototype.Fy,pi.prototype.addNodeData=pi.prototype.xf,pi.prototype.makeNodeDataKeyUnique=pi.prototype.$u,pi.prototype.findNodeDataForKey=pi.prototype.hc,pi.prototype.containsNodeData=pi.prototype.lb,pi.prototype.setKeyForNodeData=pi.prototype.km,pi.prototype.getKeyForNodeData=pi.prototype.wa,pi.prototype.updateTargetBindings=pi.prototype.La,pi.prototype.commit=pi.prototype.commit,pi.prototype.rollbackTransaction=pi.prototype.Kf,pi.prototype.commitTransaction=pi.prototype.eb,pi.prototype.startTransaction=pi.prototype.Ea,pi.prototype.raiseDataChanged=pi.prototype.Fs,pi.prototype.raiseChanged=pi.prototype.g,pi.prototype.raiseChangedEvent=pi.prototype.cb,pi.prototype.removeChangedListener=pi.prototype.ik,pi.prototype.addChangedListener=pi.prototype.Pe,pi.prototype.writeJsonValue=pi.prototype.sm,pi.prototype.replaceJsonObjects=pi.prototype.dm,pi.prototype.applyIncrementalJSON=pi.prototype.Ky,pi.prototype.applyIncrementalJson=pi.prototype.Zw,pi.prototype.toJSON=pi.prototype.toJSON,pi.prototype.toJson=pi.prototype.np,pi.prototype.toIncrementalJSON=pi.prototype.yA,pi.prototype.toIncrementalJson=pi.prototype.$x,pi.prototype.toIncrementalData=pi.prototype.xA,pi.prototype.clear=pi.prototype.clear;var D1=!1,tc={};pi.className="Model",pi.fromJSON=pi.fromJson=function(e,t){t===void 0&&(t=null);var n=null;if(typeof e=="string")try{n=je.JSON.parse(e)}catch(o){}else typeof e=="object"?n=e:ut("Unable to construct a Model from: "+e);if(t===null){e=null;var i=n.class;if(typeof i=="string")try{var r=null;i.indexOf("go.")===0?(i=i.substr(3),r=xv(i)):(r=xv(i),r===null&&(r=je[i])),typeof r=="function"&&(e=new r)}catch(o){}e===null||e instanceof pi?t=e:ut("Unable to construct a Model of declared class: "+n.class)}return t===null&&(t=pi.constructGraphLinksModel()),t.gp(n),t.kv(n),t},pi.safePropertyValue=Ns,pi.safePropertySet=Mo,tc.Brush=Wr,tc.ChangedEvent=uo,tc.Geometry=An,tc.Margin=vi,tc.Panel=wn,tc.Point=ce,tc.Rect=Ht,tc.Size=mi,tc.Spot=ui,tc.Transaction=ps,tc.UndoManager=wo;function Is(e,t,n,i){Wi(this),this._isFrozen=!1,e===void 0&&(e=""),t===void 0&&(t=e),n===void 0&&(n=null),this.j=-1,this.xd=null,this.xl=e,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=t,this.Im=n,i===void 0?(this.el=F1,this.wk=null):(this.el=$p,this.wk=i),this.st=new Yt}Is.prototype.copy=function(){var e=new Is;return e.xl=this.xl,e.to=this.to,e.wl=this.wl,e.Cr=this.Cr,e.wn=this.wn,e.sl=this.sl,e.Im=this.Im,e.el=this.el,e.wk=this.wk,e},_=Is.prototype,_.qb=function(e){e.classType===Is&&(this.mode=e)},_.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},_.freeze=function(){return this._isFrozen=!0,this},_.ka=function(){return this._isFrozen=!1,this},_.Kx=function(e){return e===void 0&&(e=null),this.mode=$p,this.backConverter=e,this},_.cp=function(e){return e===void 0&&(e=""),this.sourceName=e,this.isToModel=!1,this},_.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function P1(e,t,n){return e=e.sourceName,e===null||e===""?t:e==="/"?n.part:e==="."?n:e===".."?n.panel:t.fb(e)}_.Mv=function(e,t,n){var i=this.sl;if(n===void 0||i===""||i===n){n=this.xl;var r=this.Im;if(r===null&&n==="")Si("Binding error: target property is the empty string: "+this.toString());else{var o=t;if(i!==""&&(o=Ns(t,i)),o!==void 0)if(r===null)n!==""&&Mo(e,n,o);else try{if(n!==""){var s=r(o,e);Mo(e,n,s)}else r(o,e)}catch(l){}}}},_.sp=function(e,t,n,i){if(this.el===$p){var r=this.xl;if(n===void 0||r===n){n=this.sl;var o=this.wk,s=e;if(r!==""&&(s=Ns(e,r)),s!==void 0&&!this.st.contains(e))try{this.st.add(e);var l=i!==null?i.diagram:null,u=l!==null?l.model:null;if(o===null){if(n!=="")u!==null?u.setDataProperty(t,n,s):Mo(t,n,s);else if(u!==null&&i!==null&&0<=i.itemIndex&&i.panel!==null&&Array.isArray(i.panel.itemArray)){var f=i.itemIndex,p=i.panel.itemArray;u.ov(p,f),u.ts(p,f,s)}}else try{if(n!==""){var x=o(s,t,u);u!==null?u.setDataProperty(t,n,x):Mo(t,n,x)}else{var N=o(s,t,u);if(N!==void 0&&u!==null&&i!==null&&0<=i.itemIndex&&i.panel!==null&&Array.isArray(i.panel.itemArray)){var O=i.itemIndex,F=i.panel.itemArray;u.ov(F,O),u.ts(F,O,N)}}}catch(K){}}finally{this.st.remove(e)}}}},at.Object.defineProperties(Is.prototype,{Ai:{get:function(){return this.j},set:function(e){this._isFrozen&&yn(this),this.j=e}},targetProperty:{get:function(){return this.xl},set:function(e){this._isFrozen&&yn(this),this.xl=e}},sourceName:{get:function(){return this.Cr},set:function(e){this._isFrozen&&yn(this),this.Cr=e,e!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(e){this._isFrozen&&yn(this),this.wn=e}},sourceProperty:{get:function(){return this.sl},set:function(e){this._isFrozen&&yn(this),this.sl=e}},converter:{get:function(){return this.Im},set:function(e){this._isFrozen&&yn(this),this.Im=e}},backConverter:{get:function(){return this.wk},set:function(e){this._isFrozen&&yn(this),this.wk=e}},mode:{get:function(){return this.el},set:function(e){this._isFrozen&&yn(this),this.el=e}}}),Is.prototype.updateSource=Is.prototype.sp,Is.prototype.updateTarget=Is.prototype.Mv,Is.prototype.ofModel=Is.prototype.dA,Is.prototype.ofObject=Is.prototype.cp,Is.prototype.makeTwoWay=Is.prototype.Kx;var Vb="Binding",F1=new qt(Is,"OneWay",1),$p=new qt(Is,"TwoWay",2);Is.className="Binding",Is.parseEnum=function(e,t){return function(n){return n=Ki(e,n),n===null?t:n}},Is.toString=En,Is.OneWay=F1,Is.TwoWay=$p;function Tr(e,t,n){pi.call(this),this.Vv=`,
|
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
|
"removedLinkKeys": `,this.md=[],this.$f=new Yt,this.wb=new ii,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,t!==void 0&&(this.linkDataArray=t),e!==void 0&&(_n(e)?this.nodeDataArray=e:n=e),n&&(Object.assign(this,n),e=n.Changed)&&(delete this.Changed,this.Pe(e))}fi(Tr,pi),Tr.constructGraphLinksModel=pi.constructGraphLinksModel,Tr.prototype.cloneProtected=function(e){pi.prototype.cloneProtected.call(this,e),e.Jh=this.Jh,e.cl=this.cl,e.Ak=this.Ak,e.lf=this.lf,e.mf=this.mf,e.ej=this.ej,e.fj=this.fj,e.dj=this.dj,e.je=this.je,e.jl=this.jl,e.Je=this.Je,e.Lm=this.Lm},_=Tr.prototype,_.clear=function(){pi.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},_.toString=function(e){if(e===void 0&&(e=0),2<=e)return this.np();var t=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<e){t+=`
|
|
|
node data:`,e=this.nodeDataArray;var n=e.length,i;for(i=0;i<n;i++){var r=e[i];t+=" "+this.wa(r)+":"+En(r)}for(t+=`
|
|
|
link data:`,e=this.linkDataArray,n=e.length,i=0;i<n;i++)r=e[i],t+=" "+xu(this,r,!0)+"-->"+xu(this,r,!1)}return t},_.Qv=function(e,t){this.linkKeyProperty===""&&ut("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var n=pi.prototype.Qv.call(this,e,t),i=this,r=new Yt,o=new Yt,s=new Yt,l=this.vh;e.changes.each(function(p){p.model===i&&(p.modelChange==="linkDataArray"?p.change===zo?r.add(p.newValue):p.change===os&&s.add(p.oldValue):i.Jc(p.object)?o.add(p.object):p.object!==null&&(p.object!==null&&l&&l.contains(p.object)?l.get(p.object).each(function(x){i.Jc(x)&&o.add(x)}):p.object instanceof pi||i.lb(p.object)||B1(i,p.object).each(function(x){o.add(x)})))});var u=this.il;u.clear(),r.each(function(p){u.add(i.Ac(p)),t||o.add(p)});var f=this.kl;return f.clear(),s.each(function(p){f.add(i.Ac(p)),t&&o.add(p)}),e=i.cloneDeep(o.Fa()),0<u.count&&(n===null&&(n={}),t?n.removedLinkKeys=u.Fa():n.insertedLinkKeys=u.Fa()),0<e.length&&(n===null&&(n={}),n.modifiedLinkData=e),0<f.count&&(n===null&&(n={}),t?n.insertedLinkKeys=f.Fa():n.removedLinkKeys=f.Fa()),f.clear(),u.clear(),n},_.rm=function(){var e=pi.prototype.rm.call(this),t="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(t+=`,
|
|
|
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(t+=`,
|
|
|
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(t+=`,
|
|
|
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(t+=`,
|
|
|
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(t+=`,
|
|
|
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(t+=`,
|
|
|
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(t+=`,
|
|
|
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(t+=`,
|
|
|
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(t+=`,
|
|
|
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),e+t},_.gp=function(e){pi.prototype.gp.call(this,e),e.linkKeyProperty&&(this.linkKeyProperty=e.linkKeyProperty),e.linkFromKeyProperty&&(this.linkFromKeyProperty=e.linkFromKeyProperty),e.linkToKeyProperty&&(this.linkToKeyProperty=e.linkToKeyProperty),e.linkFromPortIdProperty&&(this.linkFromPortIdProperty=e.linkFromPortIdProperty),e.linkToPortIdProperty&&(this.linkToPortIdProperty=e.linkToPortIdProperty),e.linkCategoryProperty&&(this.linkCategoryProperty=e.linkCategoryProperty),e.linkLabelKeysProperty&&(this.linkLabelKeysProperty=e.linkLabelKeysProperty),e.nodeIsGroupProperty&&(this.nodeIsGroupProperty=e.nodeIsGroupProperty),e.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=e.nodeGroupKeyProperty)},_.Rv=function(){var e=pi.prototype.Rv.call(this),t=`,
|
|
|
"linkDataArray": `+Kh(this,this.linkDataArray,!0);return e+t},_.kv=function(e){pi.prototype.kv.call(this,e),e=e.linkDataArray,Array.isArray(e)&&(this.dm(e),this.linkDataArray=e)};function B1(e,t){for(var n=new Yt,i=0;i<e.linkDataArray.length;i++){var r=e.linkDataArray[i];xm(e,t,r,r,n)}return n}_.Pv=function(e,t){this.linkKeyProperty===""&&ut("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var n=pi.prototype.Pv.call(this,e,t),i=this,r=new Yt,o=new Yt,s=new Yt,l=this.vh;e.changes.each(function(p){p.model===i&&(p.modelChange==="linkDataArray"?p.change===zo?r.add(p.newValue):p.change===os&&s.add(p.oldValue):i.Jc(p.object)?o.add(p.object):p.object!==null&&(p.object!==null&&l&&l.contains(p.object)?l.get(p.object).each(function(x){i.Jc(x)&&o.add(x)}):p.object instanceof pi||i.lb(p.object)||B1(i,p.object).each(function(x){o.add(x)})))});var u=this.il;u.clear(),r.each(function(p){u.add(i.Ac(p)),t||o.add(p)});var f=this.kl;return f.clear(),s.each(function(p){f.add(i.Ac(p)),t&&o.add(p)}),e=n,0<u.count&&(e+=(t?this.Xv:this.Vv)+Kh(this,u.Fa(),!0)),0<o.count&&(e+=this.iy+Kh(this,o.Fa(),!0)),0<f.count&&(e+=(t?this.Vv:this.Xv)+Kh(this,f.Fa(),!0)),f.clear(),u.clear(),e},_.fp=function(e){(e.linkCategoryProperty!==void 0&&e.linkCategoryProperty!==this.linkCategoryProperty||e.linkKeyProperty!==void 0&&e.linkKeyProperty!==this.linkKeyProperty||e.linkFromKeyProperty!==void 0&&e.linkFromKeyProperty!==this.linkFromKeyProperty||e.linkToKeyProperty!==void 0&&e.linkToKeyProperty!==this.linkToKeyProperty||e.linkFromPortIdProperty!==void 0&&e.linkFromPortIdProperty!==this.linkFromPortIdProperty||e.linkToPortIdProperty!==void 0&&e.linkToPortIdProperty!==this.linkToPortIdProperty||e.linkLabelKeysProperty!==void 0&&e.linkLabelKeysProperty!==this.linkLabelKeysProperty||e.nodeIsGroupProperty!==void 0&&e.nodeIsGroupProperty!==this.nodeIsGroupProperty||e.nodeGroupKeyProperty!==void 0&&e.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&ut("applyIncrementalJson cannot change Model properties"),pi.prototype.fp.call(this,e);var t=e.insertedLinkKeys;if(Array.isArray(t))for(var n=t.length,i=0;i<n;i++){var r=t[i],o=this.jh(r);o===null&&(o=this.Jo({}),this.Ks(o,r),this.fi(o))}if(t=e.modifiedLinkData,Array.isArray(t)){for(n=t.length,i=0;i<n;i++)if(r=t[i],o=this.Ac(r),o=this.jh(o),o!==null){for(var s in r)s!=="__gohashid"&&s!==this.linkKeyProperty&&this.setDataProperty(o,s,r[s]);U1(this,r,o)}}if(e=e.removedLinkKeys,Array.isArray(e))for(s=e.length,t=0;t<s;t++)n=this.jh(e[t]),n!==null&&this.bm(n)},Tr.prototype.changeState=function(e,t){if(e!==null&&e.model===this){if(e.change===io){var n=e.object,i=e.propertyName;if(i===this.linkKeyProperty&&this.Jc(n)){var r=e.I(t);t=e.I(!t),t!==void 0&&this.wb.remove(t),r!==void 0&&this.wb.add(r,n),Mo(n,i,r);return}}else if(e.change===zo){if(n=e.newParam,e.modelChange==="linkDataArray"){e=e.newValue,Zt(e)&&typeof n=="number"&&(i=this.Ac(e),t?(this.$f.remove(e),this.md[n]===e&&this.md.splice(n,1),i!==void 0&&this.wb.remove(i)):(this.$f.add(e),this.md[n]!==e&&this.md.splice(n,0,e),i!==void 0&&this.wb.add(i,e)));return}if(e.modelChange==="linkLabelKeys"){i=this.Ef(e.object),Array.isArray(i)&&typeof n=="number"&&(t?(n=i.indexOf(e.newValue),0<=n&&i.splice(n,1)):0>i.indexOf(e.newValue)&&i.splice(n,0,e.newValue));return}}else if(e.change===os){if(n=e.oldParam,e.modelChange==="linkDataArray"){e=e.oldValue,Zt(e)&&typeof n=="number"&&(i=this.Ac(e),t?(this.$f.add(e),this.md[n]!==e&&this.md.splice(n,0,e),i!==void 0&&this.wb.add(i,e)):(this.$f.remove(e),this.md[n]===e&&this.md.splice(n,1),i!==void 0&&this.wb.remove(i)));return}if(e.modelChange==="linkLabelKeys"){i=this.Ef(e.object),Array.isArray(i)&&typeof n=="number"&&(t?0>i.indexOf(e.newValue)&&i.splice(n,0,e.newValue):(n=i.indexOf(e.newValue),0<=n&&i.splice(n,1)));return}}pi.prototype.changeState.call(this,e,t)}},_=Tr.prototype,_.Vl=function(e){if(e!==void 0){var t=this.Ri;if(t!==null){var n=this.hc(e);n===null&&(n=this.copyNodeData(t),Mo(n,this.nodeKeyProperty,e),this.xf(n))}return e}},_.yx=function(e){return xu(this,e,!0)},_.wv=function(e,t){Ff(this,e,t,!0)},_.Bx=function(e){return xu(this,e,!1)},_.Bv=function(e,t){Ff(this,e,t,!1)};function xu(e,t,n){if(t!==null&&(e=n?e.lf:e.mf,e!==""&&(e=Ns(t,e),e!==void 0))){if(Yh(e))return e;ut((n?"FromKey":"ToKey")+" value for link data "+t+" is not a number or a string: "+e)}}function Ff(e,t,n,i){if(n===null&&(n=void 0),t!==null){var r=i?e.lf:e.mf;if(r!=="")if(n=e.Vl(n),e.Jc(t)){var o=Ns(t,r);o!==n&&(pc(e,o,t),Mo(t,r,n),e.hc(n)===null&&fc(e,n,t),zs(e,i?"linkFromKey":"linkToKey",io,r,t,o,n),typeof r=="string"&&e.La(t,r))}else Mo(t,r,n)}}_.zx=function(e){return Em(this,e,!0)},_.xv=function(e,t){Bf(this,e,t,!0)},_.Cx=function(e){return Em(this,e,!1)},_.Cv=function(e,t){Bf(this,e,t,!1)};function Em(e,t,n){return t===null||(e=n?e.ej:e.fj,e==="")?"":(t=Ns(t,e),t===void 0?"":t)}function Bf(e,t,n,i){if(t!==null){var r=i?e.ej:e.fj;if(r!=="")if(e.Jc(t)){var o=Ns(t,r);o===void 0&&(o=""),o!==n&&(Mo(t,r,n),zs(e,i?"linkFromPortId":"linkToPortId",io,r,t,o,n),typeof r=="string"&&e.La(t,r))}else Mo(t,r,n)}}_.Ef=function(e){if(e===null)return wm;var t=this.je;return t===""?wm:(e=Ns(e,t),e===void 0?wm:e)},_.Ls=function(e,t){if(e!==null){var n=this.je;if(n!=="")if(this.Jc(e)){var i=Ns(e,n);if(i===void 0&&(i=wm),i!==t){if(Array.isArray(i))for(var r=i.length,o=0;o<r;o++)pc(this,i[o],e);for(Mo(e,n,t),r=t.length,o=0;o<r;o++){var s=t[o];this.hc(s)===null&&fc(this,s,e)}zs(this,"linkLabelKeys",io,n,e,i,t),typeof n=="string"&&this.La(e,n)}}else Mo(e,n,t)}},_.Bu=function(e,t){if(t!=null&&e!==null){var n=this.je;if(n!==""){var i=Ns(e,n);if(i===void 0)n=[],n.push(t),this.Ls(e,n);else if(Array.isArray(i)){var r=i.indexOf(t);0<=r||(r=i.length,i.push(t),this.Jc(e)&&(this.hc(t)===null&&fc(this,t,e),zs(this,"linkLabelKeys",zo,n,e,null,t,null,r)))}else ut(n+" property is not an Array; cannot addLabelKeyForLinkData: "+e)}}},_.Qx=function(e,t){if(t!=null&&e!==null){var n=this.je;if(n!==""){var i=Ns(e,n);if(Array.isArray(i)){var r=i.indexOf(t);0>r||(i.splice(r,1),this.Jc(e)&&(pc(this,t,e),zs(this,"linkLabelKeys",os,n,e,t,null,r,null)))}else i!==void 0&&ut(n+" property is not an Array; cannot removeLabelKeyforLinkData: "+e)}}},_.Ac=function(e){if(e!==null){var t=this.Jh;if(t!==""&&(t=Ns(e,t),t!==void 0)){if(Yh(t))return t;ut("Key value for link data "+e+" is not a number or a string: "+t)}}},_.Ks=function(e,t){if(e!==null){var n=this.Jh;if(n!=="")if(this.Jc(e)){var i=Ns(e,n);i!==t&&this.jh(t)===null&&(Mo(e,n,t),i!==void 0&&this.wb.remove(i),this.wb.add(t,e),zs(this,"linkKey",io,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Mo(e,n,t)}},_.jh=function(e){return e===null&&ut("GraphLinksModel.findLinkDataForKey:key must not be null"),e!==void 0&&Yh(e)?this.wb.I(e):null},_.Bs=function(e){if(e!==null){var t=this.Jh;if(t!==""){var n=this.Ac(e);if(n===void 0||this.wb.contains(n)){var i=this.cl;if(i!==null&&(n=i(this,e),n!=null&&!this.wb.contains(n))){Mo(e,t,n);return}if(typeof n=="string"){for(i=2;this.wb.contains(n+i);)i++;Mo(e,t,n+i)}else if(n===void 0||typeof n=="number"){for(n=-this.wb.count-1;this.wb.contains(n);)n--;Mo(e,t,n)}}}}},_.Jc=function(e){return e===null?!1:this.$f.contains(e)},_.fi=function(e){e!==null&&(Zr(e),this.Jc(e)||_1(this,e,!0))};function _1(e,t,n){if(e.linkKeyProperty!==""){var i=e.Ac(t);if(i!==void 0&&e.wb.I(i)===t)return;e.Bs(t),i=e.Ac(t),i===void 0&&ut("GraphLinksModel.makeLinkDataKeyUnique failed on "+t+". Data not added to model."),e.wb.add(i,t)}e.$f.add(t),i=null,n&&(i=e.md.length,e.md.splice(i,0,t)),zs(e,"linkDataArray",zo,"linkDataArray",e,null,t,null,i),Sv(e,t)}_.Ey=function(e){if(Array.isArray(e))for(var t=e.length,n=0;n<t;n++)this.fi(e[n]);else for(e=e.iterator;e.next();)this.fi(e.value)},_.bm=function(e){e!==null&&z1(this,e,!0)};function z1(e,t,n){e.$f.remove(t);var i=e.Ac(t);if(i!==void 0&&e.wb.remove(i),i=null,n){if(i=e.md.indexOf(t),0>i)return;e.md.splice(i,1)}if(zs(e,"linkDataArray",os,"linkDataArray",e,t,null,i,null),n=xu(e,t,!0),pc(e,n,t),n=xu(e,t,!1),pc(e,n,t),i=e.Ef(t),Array.isArray(i))for(var r=i.length,o=0;o<r;o++)n=i[o],pc(e,n,t)}_.lA=function(e){if(Array.isArray(e))for(var t=e.length,n=0;n<t;n++)this.bm(e[n]);else for(e=e.iterator;e.next();)this.bm(e.value)},_.Zz=function(e){if(this.linkKeyProperty===""&&ut("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),e!==this.linkDataArray&&_n(e)){var t=this.kl;t.clear(),t.addAll(this.wb.iteratorKeys);var n=this.il;n.clear();for(var i=e.length,r=0;r<i;r++){var o=e[r],s=this.Ac(o);if(s!==void 0){n.add(s);var l=this.jh(s);l!==o&&(l!==null?(this.Do(l,o),U1(this,o,l)):(o=this.cloneDeep(o),this.Ks(o,s),this.fi(o)))}else s=this.cloneDeep(o),this.fi(s),n.add(this.Ac(s))}for(e=t.iterator;e.next();)i=e.value,n.contains(i)||(i=this.jh(i))&&this.bm(i);t.clear(),n.clear()}};function Sv(e,t){var n=xu(e,t,!0);n=e.Vl(n),e.hc(n)===null&&fc(e,n,t),n=xu(e,t,!1),n=e.Vl(n),e.hc(n)===null&&fc(e,n,t);var i=e.Ef(t);if(Array.isArray(i))for(var r=i.length,o=0;o<r;o++)n=i[o],e.hc(n)===null&&fc(e,n,t)}_.Jo=function(e){if(e===null)return null;var t=this.Ak;return e=t!==null?t(e,this):Sm(this,e,!0),Zt(e)&&(Wi(e),this.lf!==""&&Mo(e,this.lf,void 0),this.mf!==""&&Mo(e,this.mf,void 0),this.je!==""&&Mo(e,this.je,[])),e},_.Yu=function(e){if(e===null)return!1;var t=this.jl;return t===""?!1:!!Ns(e,t)},_.lh=function(e){if(e!==null){var t=this.Je;if(t!==""&&(t=Ns(e,t),t!==void 0)){if(Yh(t))return t;ut("GroupKey value for node data "+e+" is not a number or a string: "+t)}}},_.mp=function(e,t){if(t===null&&(t=void 0),e!==null){var n=this.Je;if(n!=="")if(this.lb(e)){var i=Ns(e,n);i!==t&&(pc(this,i,e),Mo(e,n,t),this.hc(t)===null&&fc(this,t,e),zs(this,"nodeGroupKey",io,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Mo(e,n,t)}},Tr.prototype.copyNodeData=function(e){return e===null?null:(e=pi.prototype.copyNodeData.call(this,e),this.Ij||this.Je===""||Ns(e,this.Je)===void 0||Mo(e,this.Je,void 0),e)},Tr.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}if(t===this.nodeGroupKeyProperty){this.mp(e,n);return}}else if(this.Jc(e)){if(t===this.linkFromKeyProperty){Ff(this,e,n,!0);return}if(t===this.linkToKeyProperty){Ff(this,e,n,!1);return}if(t===this.linkFromPortIdProperty){Bf(this,e,n,!0);return}if(t===this.linkToPortIdProperty){Bf(this,e,n,!1);return}if(t===this.linkKeyProperty){this.Ks(e,n);return}if(t===this.linkCategoryProperty){this.lp(e,n);return}if(t===this.linkLabelKeysProperty){this.Ls(e,n);return}}var i=Ns(e,t);i!==n&&(Mo(e,t,n),this.Fs(e,t,i,n))},_=Tr.prototype,_.Do=function(e,t){if(t){var n=this.lb(e),i=this.Jc(e),r;for(r in t)r==="__gohashid"||n&&r===this.nodeKeyProperty||n&&r===this.nodeIsGroupProperty&&Ns(e,r)===t[r]||i&&r===this.linkKeyProperty||this.setDataProperty(e,r,t[r])}},_.jp=function(e,t){pi.prototype.jp.call(this,e,t);for(var n=this.kb.iterator;n.next();)this.qv(n.value,e,t);for(n=this.$f.iterator;n.next();){var i=n.value,r=e,o=t;if(xu(this,i,!0)===r){var s=this.lf;Mo(i,s,o),zs(this,"linkFromKey",io,s,i,r,o),typeof s=="string"&&this.La(i,s)}if(xu(this,i,!1)===r&&(s=this.mf,Mo(i,s,o),zs(this,"linkToKey",io,s,i,r,o),typeof s=="string"&&this.La(i,s)),s=this.Ef(i),Array.isArray(s))for(var l=s.length,u=this.je,f=0;f<l;f++)s[f]===r&&(s[f]=o,zs(this,"linkLabelKeys",zo,u,i,r,o,f,f))}},_.qv=function(e,t,n){if(this.lh(e)===t){var i=this.Je;Mo(e,i,n),zs(this,"nodeGroupKey",io,i,e,t,n),typeof i=="string"&&this.La(e,i)}},_.Lv=function(){pi.prototype.Lv.call(this);for(var e=this.linkDataArray,t=e.length,n=0;n<t;n++)Sv(this,e[n])},_.fm=function(e){pi.prototype.fm.call(this,e),e=this.wa(e);var t=Up(this,e);if(t!==null){var n=jt();for(t=t.iterator;t.next();){var i=t.value;if(this.lb(i)){if(this.lh(i)===e){var r=this.Je;zs(this,"nodeGroupKey",io,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)}}else if(xu(this,i,!0)===e&&(r=this.lf,zs(this,"linkFromKey",io,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)),xu(this,i,!1)===e&&(r=this.mf,zs(this,"linkToKey",io,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)),r=this.Ef(i),Array.isArray(r))for(var o=r.length,s=this.je,l=0;l<o;l++)r[l]===e&&(zs(this,"linkLabelKeys",zo,s,i,e,e,l,l),n.push(i))}for(t=0;t<n.length;t++)pc(this,e,n[t]);gn(n)}},_.em=function(e){pi.prototype.em.call(this,e);var t=this.lh(e);this.hc(t)===null&&fc(this,t,e)},_.qp=function(e){pi.prototype.qp.call(this,e);var t=this.lh(e);pc(this,t,e)},_.ps=function(e){if(e===null)return"";var t=this.dj;if(t===""||(t=Ns(e,t),t===void 0))return"";if(typeof t=="string")return t;ut("getCategoryForLinkData found a non-string category for "+e+": "+t)},Tr.prototype.getLinkCategoryForData=function(e){return this.ps(e)},Tr.prototype.lp=function(e,t){if(e!==null){var n=this.dj;if(n!=="")if(this.Jc(e)){var i=Ns(e,n);i===void 0&&(i=""),i!==t&&(Mo(e,n,t),zs(this,"linkCategory",io,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Mo(e,n,t)}},Tr.prototype.setLinkCategoryForData=function(e,t){this.lp(e,t)},_=Tr.prototype,_.lm=function(e,t){pi.prototype.lm.call(this,e,t),this.mp(t,this.lh(e))};function U1(e,t,n){e.lp(n,e.ps(t)),e.wv(n,e.yx(t)),e.Bv(n,e.Bx(t)),e.Ls(n,e.Ef(t)),e.xv(n,e.zx(t)),e.Cv(n,e.Cx(t))}_.Wj=function(){return!0},_.ri=function(){return!0},_.xs=function(){return!0},_.Xj=function(){return!0},at.Object.defineProperties(Tr.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(e){var t=this.Ri;t!==e&&(this.Ri=e,this.g("archetypeNodeData",t,e))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(e){var t=this.lf;t!==e&&(this.lf=e,this.g("linkFromKeyProperty",t,e))}},linkToKeyProperty:{get:function(){return this.mf},set:function(e){var t=this.mf;t!==e&&(this.mf=e,this.g("linkToKeyProperty",t,e))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(e){var t=this.ej;t!==e&&(this.ej=e,this.g("linkFromPortIdProperty",t,e))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(e){var t=this.fj;t!==e&&(this.fj=e,this.g("linkToPortIdProperty",t,e))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(e){var t=this.je;t!==e&&(this.je=e,this.g("linkLabelKeysProperty",t,e))}},linkDataArray:{get:function(){return this.md},set:function(e){var t=this.md;if(t!==e){this.wb.clear();for(var n=e.length,i=0;i<n;i++){var r=e[i];Zt(r)||ut("GraphLinksModel.linkDataArray must only contain Objects, not: "+r),Zr(r)}if(this.md=e,this.linkKeyProperty!==""){for(i=new Xt,r=0;r<n;r++){var o=e[r],s=this.Ac(o);s===void 0||this.wb.I(s)!==null?i.add(o):this.wb.add(s,o)}for(i=i.iterator;i.next();)r=i.value,this.Bs(r),o=this.Ac(r),o!==void 0&&this.wb.add(o,r)}for(i=new Yt,r=0;r<n;r++)i.add(e[r]);for(this.$f=i,zs(this,"linkDataArray",io,"linkDataArray",this,t,e),t=0;t<n;t++)Sv(this,e[t])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(e){var t=this.Jh;if(t!==e){this.Jh=e,this.wb.clear();for(var n=this.linkDataArray.length,i=0;i<n;i++){var r=this.linkDataArray[i],o=this.Ac(r);o===void 0&&(this.Bs(r),o=this.Ac(r)),o!==void 0&&this.wb.add(o,r)}this.g("linkKeyProperty",t,e)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(e){var t=this.cl;t!==e&&(this.cl=e,this.g("makeUniqueLinkKeyFunction",t,e))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(e){var t=this.Ak;t!==e&&(this.Ak=e,this.g("copyLinkDataFunction",t,e))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(e){var t=this.jl;t!==e&&(this.jl=e,this.g("nodeIsGroupProperty",t,e))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(e){var t=this.Je;t!==e&&(this.Je=e,this.g("nodeGroupKeyProperty",t,e))}},Ij:{get:function(){return this.Lm},set:function(e){this.Lm!==e&&(this.Lm=e)}},linkCategoryProperty:{get:function(){return this.dj},set:function(e){var t=this.dj;t!==e&&(this.dj=e,this.g("linkCategoryProperty",t,e))}},type:{get:function(){return"GraphLinksModel"}}}),Tr.prototype.setCategoryForLinkData=Tr.prototype.lp,Tr.prototype.getCategoryForLinkData=Tr.prototype.ps,Tr.prototype.assignAllDataProperties=Tr.prototype.Do,Tr.prototype.setGroupKeyForNodeData=Tr.prototype.mp,Tr.prototype.getGroupKeyForNodeData=Tr.prototype.lh,Tr.prototype.isGroupForNodeData=Tr.prototype.Yu,Tr.prototype.copyLinkData=Tr.prototype.Jo,Tr.prototype.mergeLinkDataArray=Tr.prototype.Zz,Tr.prototype.removeLinkDataCollection=Tr.prototype.lA,Tr.prototype.removeLinkData=Tr.prototype.bm,Tr.prototype.addLinkDataCollection=Tr.prototype.Ey,Tr.prototype.addLinkData=Tr.prototype.fi,Tr.prototype.containsLinkData=Tr.prototype.Jc,Tr.prototype.makeLinkDataKeyUnique=Tr.prototype.Bs,Tr.prototype.findLinkDataForKey=Tr.prototype.jh,Tr.prototype.setKeyForLinkData=Tr.prototype.Ks,Tr.prototype.getKeyForLinkData=Tr.prototype.Ac,Tr.prototype.removeLabelKeyForLinkData=Tr.prototype.Qx,Tr.prototype.addLabelKeyForLinkData=Tr.prototype.Bu,Tr.prototype.setLabelKeysForLinkData=Tr.prototype.Ls,Tr.prototype.getLabelKeysForLinkData=Tr.prototype.Ef,Tr.prototype.setToPortIdForLinkData=Tr.prototype.Cv,Tr.prototype.getToPortIdForLinkData=Tr.prototype.Cx,Tr.prototype.setFromPortIdForLinkData=Tr.prototype.xv,Tr.prototype.getFromPortIdForLinkData=Tr.prototype.zx,Tr.prototype.setToKeyForLinkData=Tr.prototype.Bv,Tr.prototype.getToKeyForLinkData=Tr.prototype.Bx,Tr.prototype.setFromKeyForLinkData=Tr.prototype.wv,Tr.prototype.getFromKeyForLinkData=Tr.prototype.yx,Tr.prototype.clear=Tr.prototype.clear;var wm=Object.freeze([]);Tr.className="GraphLinksModel",tc.GraphLinksModel=Tr,pi.constructGraphLinksModel=pi.constructGraphLinksModel=function(){return new Tr},pi.initDiagramModel=bv=function(){return new Tr};function bl(e,t){pi.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",e!==void 0&&(_n(e)?this.nodeDataArray=e:t=e),t&&(Object.assign(this,t),e=t.Changed)&&(delete this.Changed,this.Pe(e))}fi(bl,pi),bl.constructGraphLinksModel=pi.constructGraphLinksModel,bl.prototype.cloneProtected=function(e){pi.prototype.cloneProtected.call(this,e),e.Ke=this.Ke,e.Nm=this.Nm,e.nj=this.nj},_=bl.prototype,_.toString=function(e){if(e===void 0&&(e=0),2<=e)return this.np();var t=(this.name!==""?this.name:"")+" TreeModel";if(0<e){t+=`
|
|
|
node data:`,e=this.nodeDataArray;for(var n=e.length,i=0;i<n;i++){var r=e[i];t+=" "+this.wa(r)+":"+En(r)}}return t},_.rm=function(){var e=pi.prototype.rm.call(this),t="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(t+=`,
|
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),e+t},_.gp=function(e){pi.prototype.gp.call(this,e),e.nodeParentKeyProperty&&(this.nodeParentKeyProperty=e.nodeParentKeyProperty)},_.fp=function(e){e.nodeParentKeyProperty!==void 0&&e.nodeParentKeyProperty!==this.nodeParentKeyProperty&&ut("applyIncrementalJson cannot change Model properties"),pi.prototype.fp.call(this,e)},_.Vl=function(e){return e},_.mh=function(e){if(e!==null){var t=this.Ke;if(t!==""&&(t=Ns(e,t),t!==void 0)){if(Yh(t))return t;ut("ParentKey value for node data "+e+" is not a number or a string: "+t)}}},_.qe=function(e,t){if(t===null&&(t=void 0),e!==null){var n=this.Ke;if(n!=="")if(t=this.Vl(t),this.lb(e)){var i=Ns(e,n);i!==t&&(pc(this,i,e),Mo(e,n,t),this.hc(t)===null&&fc(this,t,e),zs(this,"nodeParentKey",io,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Mo(e,n,t)}},_.ss=function(e){if(e===null)return"";var t=this.nj;return t===""||(t=Ns(e,t),t===void 0)?"":typeof t=="string"?t:(ut("getParentLinkCategoryForNodeData found a non-string category for "+e+": "+t),"")},bl.prototype.getLinkCategoryForData=function(e){return this.ss(e)},bl.prototype.Ms=function(e,t){if(e!==null){var n=this.nj;if(n!=="")if(this.lb(e)){var i=Ns(e,n);i===void 0&&(i=""),i!==t&&(Mo(e,n,t),zs(this,"parentLinkCategory",io,n,e,i,t),typeof n=="string"&&this.La(e,n))}else Mo(e,n,t)}},bl.prototype.setLinkCategoryForData=function(e,t){this.Ms(e,t)},bl.prototype.copyNodeData=function(e){return e===null?null:(e=pi.prototype.copyNodeData.call(this,e),this.Jj||this.Ke===""||Ns(e,this.Ke)===void 0||Mo(e,this.Ke,void 0),e)},bl.prototype.setDataProperty=function(e,t,n){if(this.lb(e)){if(t===this.nodeKeyProperty){this.km(e,n);return}if(t===this.nodeCategoryProperty){this.jm(e,n);return}if(t===this.nodeParentKeyProperty){this.qe(e,n);return}}var i=Ns(e,t);i!==n&&(Mo(e,t,n),this.Fs(e,t,i,n))},_=bl.prototype,_.jp=function(e,t){pi.prototype.jp.call(this,e,t);for(var n=this.kb.iterator;n.next();)this.qv(n.value,e,t)},_.qv=function(e,t,n){if(this.mh(e)===t){var i=this.Ke;Mo(e,i,n),zs(this,"nodeParentKey",io,i,e,t,n),typeof i=="string"&&this.La(e,i)}},_.fm=function(e){pi.prototype.fm.call(this,e),e=this.wa(e);var t=Up(this,e);if(t!==null){var n=jt();for(t=t.iterator;t.next();){var i=t.value;if(this.lb(i)&&this.mh(i)===e){var r=this.Ke;zs(this,"nodeParentKey",io,r,i,e,e),typeof r=="string"&&this.La(i,r),n.push(i)}}for(t=0;t<n.length;t++)pc(this,e,n[t]);gn(n)}},_.em=function(e){pi.prototype.em.call(this,e);var t=this.mh(e);t=this.Vl(t),this.hc(t)===null&&fc(this,t,e)},_.qp=function(e){pi.prototype.qp.call(this,e);var t=this.mh(e);pc(this,t,e)},_.lm=function(e,t){pi.prototype.lm.call(this,e,t),this.Ms(t,this.ss(e)),this.qe(t,this.mh(e))},_.Tl=function(){return!0},_.xs=function(){return!0},at.Object.defineProperties(bl.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(e){var t=this.Ke;t!==e&&(this.Ke=e,this.g("nodeParentKeyProperty",t,e))}},Jj:{get:function(){return this.Nm},set:function(e){this.Nm!==e&&(this.Nm=e)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(e){var t=this.nj;t!==e&&(this.nj=e,this.g("parentLinkCategoryProperty",t,e))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(e){this.parentLinkCategoryProperty=e}},type:{get:function(){return"TreeModel"}}}),bl.prototype.setParentLinkCategoryForNodeData=bl.prototype.Ms,bl.prototype.getParentLinkCategoryForNodeData=bl.prototype.ss,bl.prototype.setParentKeyForNodeData=bl.prototype.qe,bl.prototype.getParentKeyForNodeData=bl.prototype.mh,bl.className="TreeModel",tc.TreeModel=bl;function es(e){Do.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=nc,this.Ti=0,this.Zv=new ce,this.Jp=this.me=0,this.Xr=new Vp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=nc,this.K=xl,this.nd=zf,this.hd=fv,this.tf=6,this.Nn=Mm,e&&Object.assign(this,e)}fi(es,Do),es.prototype.cloneProtected=function(e){Do.prototype.cloneProtected.call(this,e),e.eo=this.eo,e.Cm=this.Cm,e.ro=this.ro,e.ul=this.ul,e.Rb=this.Rb,e.K=this.K,e.nd=this.nd,e.hd=this.hd,e.tf=this.tf,e.Nn=this.Nn},es.prototype.qb=function(e){e.classType===es?e===km||e===Im||e===Nm||e===Am||e===zf?this.sorting=e:e===Td||e===_f||e===xl||e===Xh?this.direction=e:e===Th||e===Zh||e===nc||e===ic?this.arrangement=e:(e===Yd||e===Mm)&&(this.nodeDiameterFormula=e):Do.prototype.qb.call(this,e)},es.prototype.createNetwork=function(){return new Uf(this)},es.prototype.doLayout=function(e){if(this.network===null&&(this.network=this.makeNetwork(e)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),e=this.network.vertexes,1>=e.count)e.count===1&&(e=e.first(),e.centerX=0,e.centerY=0);else{var t=new Xt;t.addAll(e.iterator),e=new Xt;var n=new Xt,i=this.sort(t),r,o,s=this.Jp,l=this.arrangement,u=this.nodeDiameterFormula,f=this.radius;(!isFinite(f)||0>=f)&&(f=NaN);var p=this.aspectRatio;(!isFinite(p)||0>=p)&&(p=1);var x=this.startAngle;isFinite(x)||(x=0);var N=this.sweepAngle;if((!isFinite(N)||360<N||1>N)&&(N=360),t=this.spacing,isFinite(t)||(t=NaN),l===ic&&u===Yd?l=nc:l===ic&&u!==Yd&&(l=this.arrangement),(this.direction===Td||this.direction===_f)&&this.sorting!==zf){for(u=0;!(u>=i.length)&&(e.add(i.M(u)),!(u+1>=i.length));u+=2)n.add(i.M(u+1));this.direction===Td?(this.arrangement===ic&&e.reverse(),i=new Xt,i.addAll(e),i.addAll(n)):(this.arrangement===ic&&n.reverse(),i=new Xt,i.addAll(n),i.addAll(e))}u=i.length;for(var O=o=r=0;O<i.length;O++){var F=x+N*o*(this.direction===xl?1:-1)/u,K=i.M(O).diameter;isNaN(K)&&(K=Qh(i.M(O),F)),360>N&&(O===0||O===i.length-1)&&(K/=2),r+=K,o++}if(isNaN(f)||l===ic){if(isNaN(t)&&(t=6),l!==nc&&l!==ic){for(o=-1/0,s=0;s<u;s++)O=i.M(s),r=i.M(s===u-1?0:s+1),isNaN(O.diameter)&&Qh(O,0),isNaN(r.diameter)&&Qh(r,0),o=Math.max(o,(O.diameter+r.diameter)/2);s=o+t,l===Th?f=(o+t)/(2*Math.PI/u):f=Cm(this,s*(360<=N?u:u-1),p,x*Math.PI/180,N*Math.PI/180)}else f=Cm(this,r+(360<=N?u:u-1)*(l!==ic?t:1.6*t),p,x*Math.PI/180,N*Math.PI/180);o=f*p}else if(o=f*p,O=Ev(this,f,o,x*Math.PI/180,N*Math.PI/180),isNaN(t))(l===nc||l===ic)&&(t=(O-r)/(360<=N?u:u-1));else if(l===nc||l===ic)O=(O-r)/(360<=N?u:u-1),O<t?(f=Cm(this,r+t*(360<=N?u:u-1),p,x*Math.PI/180,N*Math.PI/180),o=f*p):t=O;else{for(s=-1/0,r=0;r<u;r++)F=i.M(r),K=i.M(r===u-1?0:r+1),isNaN(F.diameter)&&Qh(F,0),isNaN(K.diameter)&&Qh(K,0),s=Math.max(s,(F.diameter+K.diameter)/2);s+=t,r=Cm(this,s*(360<=N?u:u-1),p,x*Math.PI/180,N*Math.PI/180),r>f?(f=r,o=f*p):s=O/(360<=N?u:u-1)}if(this.kw=l,this.lc=f,this.Zm=p,this.lw=x,this.Wp=N,this.Ti=t,this.me=o,this.Jp=s,t=i,i=this.kw,l=this.lc,f=this.lw,p=this.Wp,x=this.Ti,N=this.me,u=this.Jp,this.direction!==Td&&this.direction!==_f||i!==ic)if(this.direction===Td||this.direction===_f){switch(s=0,i){case Zh:s=180*Tm(this,l,N,f,u)/Math.PI;break;case nc:u=t=0,s=e.first(),s!==null&&(t=Qh(s,Math.PI/2)),s=n.first(),s!==null&&(u=Qh(s,Math.PI/2)),s=180*Tm(this,l,N,f,x+(t+u)/2)/Math.PI;break;case Th:s=p/t.length}if(this.direction===Td){switch(i){case Zh:Wp(this,e,f,Xh);break;case nc:Gp(this,e,f,Xh);break;case Th:jp(this,e,p/2,f,Xh)}switch(i){case Zh:Wp(this,n,f+s,xl);break;case nc:Gp(this,n,f+s,xl);break;case Th:jp(this,n,p/2,f+s,xl)}}else{switch(i){case Zh:Wp(this,n,f,Xh);break;case nc:Gp(this,n,f,Xh);break;case Th:jp(this,n,p/2,f,Xh)}switch(i){case Zh:Wp(this,e,f+s,xl);break;case nc:Gp(this,e,f+s,xl);break;case Th:jp(this,e,p/2,f+s,xl)}}}else switch(i){case Zh:Wp(this,t,f,this.direction);break;case nc:Gp(this,t,f,this.direction);break;case Th:jp(this,t,p,f,this.direction);break;case ic:H1(this,t,p,f,this.direction)}else H1(this,t,p,f-p/2,xl)}this.updateParts(),this.network=null,this.isValidLayout=!0};function jp(e,t,n,i,r){var o=e.Wp,s=e.lc;e=e.me,i=i*Math.PI/180,n=n*Math.PI/180;for(var l=t.length,u=0;u<l;u++){var f=i+(r===xl?u*n/(360<=o?l:l-1):-(u*n)/l),p=t.M(u),x=s*Math.tan(f)/e;x=Math.sqrt((s*s+e*e*x*x)/(1+x*x)),p.centerX=x*Math.cos(f),p.centerY=x*Math.sin(f),p.actualAngle=180*f/Math.PI}}function Gp(e,t,n,i){var r=e.lc,o=e.me,s=e.Ti;n=n*Math.PI/180;for(var l=t.length,u=0;u<l;u++){var f=t.M(u),p=t.M(u===l-1?0:u+1),x=o*Math.sin(n);f.centerX=r*Math.cos(n),f.centerY=x,f.actualAngle=180*n/Math.PI,isNaN(f.diameter)&&Qh(f,0),isNaN(p.diameter)&&Qh(p,0),f=Tm(e,r,o,i===xl?n:-n,(f.diameter+p.diameter)/2+s),n+=i===xl?f:-f}}function Wp(e,t,n,i){var r=e.lc,o=e.me,s=e.Jp;n=n*Math.PI/180;for(var l=t.length,u=0;u<l;u++){var f=t.M(u);f.centerX=r*Math.cos(n),f.centerY=o*Math.sin(n),f.actualAngle=180*n/Math.PI,f=Tm(e,r,o,i===xl?n:-n,s),n+=i===xl?f:-f}}function H1(e,t,n,i,r){var o=e.Wp;if(e.mj=0,e.Xr=new Vp,360>n){for(o=i+(r===xl?o:-o);0>o;)o+=360;o%=360,180<o&&(o-=360),o*=Math.PI/180,e.gt=o,j1(e,t,n,i,r)}else $1(e,t,n,i,r);e.Xr.commit(t)}function $1(e,t,n,i,r){var o=e.lc,s=e.Ti,l=e.Zm,u=o*Math.cos(i*Math.PI/180),f=e.me*Math.sin(i*Math.PI/180),p=t.Fa();if(p.length===3)p[0].centerX=o,p[0].centerY=0,p[1].centerX=p[0].centerX-p[0].width/2-p[1].width/2-s,p[1].y=p[0].y,p[2].centerX=(p[0].centerX+p[1].centerX)/2,p[2].y=p[0].y-p[2].height-s;else if(p.length===4)p[0].centerX=o,p[0].centerY=0,p[2].centerX=-p[0].centerX,p[2].centerY=p[0].centerY,p[1].centerX=0,p[1].y=Math.min(p[0].y,p[2].y)-p[1].height-s,p[3].centerX=0,p[3].y=Math.max(p[0].y+p[0].height+s,p[2].y+p[2].height+s);else{o=ce.alloc();for(var x=0;x<p.length&&(p[x].centerX=u,p[x].centerY=f,!(x>=p.length-1));x++)G1(e,u,f,p,x,r,o)||W1(e,u,f,p,x,r,o),u=o.x,f=o.y;if(ce.free(o),e.mj++,!(23<e.mj)){u=p[0].centerX,f=p[0].centerY,o=p[p.length-1].centerX,x=p[p.length-1].centerY;var N=Math.abs(u-o)-((p[0].width+p[p.length-1].width)/2+s),O=Math.abs(f-x)-((p[0].height+p[p.length-1].height)/2+s);s=0,1>Math.abs(O)?Math.abs(u-o)<(p[0].width+p[p.length-1].width)/2&&(s=0):s=0<O?O:1>Math.abs(N)?0:N,u=Math.abs(o)>Math.abs(x)?0<o!=f>x:0<x!=u<o,(u=r===xl?u:!u)&&(s=-Math.abs(s),s=Math.min(s,-p[p.length-1].width),s=Math.min(s,-p[p.length-1].height)),e.Xr.compare(s,p),1<Math.abs(s)&&(e.lc=8>e.mj?e.lc-s/(2*Math.PI):5>p.length&&10<s?e.lc/2:e.lc-(0<s?1.7:-2.3),e.me=e.lc*l,$1(e,t,n,i,r))}}}function j1(e,t,n,i,r){for(var o=e.lc,s=e.me,l=e.Zm,u=o*Math.cos(i*Math.PI/180),f=s*Math.sin(i*Math.PI/180),p=ce.alloc(),x=t.Fa(),N=0;N<x.length&&(x[N].centerX=u,x[N].centerY=f,!(N>=x.length-1));N++)G1(e,u,f,x,N,r,p)||W1(e,u,f,x,N,r,p),u=p.x,f=p.y;if(ce.free(p),e.mj++,!(23<e.mj)){if(u=Math.atan2(f,u),u=r===xl?e.gt-u:u-e.gt,u=Math.abs(u)<Math.abs(u-2*Math.PI)?u:u-2*Math.PI,o=u*(o+s)/2,s=e.Xr,Math.abs(o)<Math.abs(s.Pl))for(s.Pl=o,s.mk=[],s.tm=[],u=0;u<x.length;u++)s.mk[u]=x[u].bounds.x,s.tm[u]=x[u].bounds.y;1<Math.abs(o)&&(e.lc=8>e.mj?e.lc-o/(2*Math.PI):e.lc-(0<o?1.7:-2.3),e.me=e.lc*l,j1(e,t,n,i,r))}}function G1(e,t,n,i,r,o,s){var l=e.lc,u=e.me,f=0;e=(i[r].width+i[r+1].width)/2+e.Ti;var p=!1;if(0<=n!=(o===xl)){if(o=t+e,o>l){if(o=t-e,o<-l)return s.x=o,s.y=f,!1;p=!0}}else if(o=t-e,o<-l){if(o=t+e,o>l)return s.x=o,s.y=f,!1;p=!0}return f=Math.sqrt(1-Math.min(1,o*o/(l*l)))*u,0>n!==p&&(f=-f),Math.abs(n-f)>(i[r].height+i[r+1].height)/2?(s.x=o,s.y=f,!1):(s.x=o,s.y=f,!0)}function W1(e,t,n,i,r,o,s){var l=e.lc,u=e.me,f=0;if(e=(i[r].height+i[r+1].height)/2+e.Ti,i=!1,0<=t!=(o===xl)){if(o=n-e,o<-u){if(o=n+e,o>u){s.x=f,s.y=o;return}i=!0}}else if(o=n+e,o>u){if(o=n-e,o<-u){s.x=f,s.y=o;return}i=!0}f=Math.sqrt(1-Math.min(1,o*o/(u*u)))*l,0>t!==i&&(f=-f),s.x=f,s.y=o}es.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},es.prototype.commitNodes=function(){var e=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,t=e?this.group.location.copy():null,n=this.actualCenter;e?n=new ce(0,0):(n.x=this.arrangementOrigin.x+this.lc,n.y=this.arrangementOrigin.y+this.me);for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;r.x+=n.x,r.y+=n.y,r.commit()}e&&(this.group.Va(),e=this.group.position.copy(),n=this.group.location.copy(),t=t.re(n.re(e)),this.group.move(t),this.Zv=t.re(e))},es.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()};function Ev(e,t,n,i,r){var o=e.ty;if(.001>Math.abs(e.Zm-1))return i!==void 0&&r!==void 0?r*t:2*Math.PI*t;e=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n;for(var s=0,l=i!==void 0&&r!==void 0?r/(o+1):Math.PI/(2*(o+1)),u=0,f=0;f<=o;f++){i!==void 0&&r!==void 0?u=i+f*r/o:u=f*Math.PI/(2*o);var p=Math.sin(u);s+=Math.sqrt(1-e*e*p*p)*l}return i!==void 0&&r!==void 0?(t>n?t:n)*s:4*(t>n?t:n)*s}function Cm(e,t,n,i,r){return t/(i!==void 0&&r!==void 0?Ev(e,1,n,i,r):Ev(e,1,n))}function Tm(e,t,n,i,r){if(.001>Math.abs(e.Zm-1))return r/t;var o=t>n?Math.sqrt(t*t-n*n)/t:Math.sqrt(n*n-t*t)/n,s=0;e=2*Math.PI/(700*e.network.vertexes.count),t>n&&(i+=Math.PI/2);for(var l=0;;l++){var u=Math.sin(i+l*e);if(s+=(t>n?t:n)*Math.sqrt(1-o*o*u*u)*e,s>=r)return l*e}}es.prototype.sort=function(e){switch(this.sorting){case Nm:break;case Am:e.reverse();break;case km:e.sort(this.comparer);break;case Im:e.sort(this.comparer),e.reverse();break;case zf:return this.ak(Kb(e));default:ut("Invalid sorting type.")}return e};function Kb(e){for(var t=[],n=0;n<e.length;n++)t.push(0);n=new Xt;for(var i=0;i<e.length;i++){var r=-1,o=-1;if(i===0)for(var s=0;s<e.length;s++){var l=e.M(s).edgesCount;l>r&&(r=l,o=s)}else for(s=0;s<e.length;s++)l=t[s],l>r&&(r=l,o=s);for(n.add(e.M(o)),t[o]=-1,o=e.M(o),s=o.sourceEdges;s.next();)r=e.indexOf(s.value.fromVertex),0>r||0<=t[r]&&t[r]++;for(o=o.destinationEdges;o.next();)r=e.indexOf(o.value.toVertex),0>r||0<=t[r]&&t[r]++}return n}es.prototype.ak=function(e){for(var t=[],n=0;n<e.length;n++){var i=e.M(n);t[n]=[];for(var r,o=i.destinationEdges;o.next();)r=e.indexOf(o.value.toVertex),r!==n&&0>t[n].indexOf(r)&&t[n].push(r);for(i=i.sourceEdges;i.next();)r=e.indexOf(i.value.fromVertex),r!==n&&0>t[n].indexOf(r)&&t[n].push(r)}for(o=[],n=0;n<t.length;n++)o[n]=0;n=[];var s=[],l=[];i=[],r=new Xt;for(var u=0,f=0;f<t.length;f++){var p=t[f].length;if(p===1)i.push(f);else if(p===0)r.add(e.M(f));else{if(u===0)n.push(f);else{for(var x=p=1/0,N=-1,O=[],F=0;F<n.length;F++)0>t[n[F]].indexOf(n[F===n.length-1?0:F+1])&&O.push(F===n.length-1?0:F+1);if(O.length===0)for(F=0;F<n.length;F++)O.push(F);for(F=0;F<O.length;F++){for(var K=O[F],ye=t[f],ae=0,Oe=0;Oe<s.length;Oe++){var Fe=o[s[Oe]],He=o[l[Oe]];if(Fe<He){var qe=Fe;Fe=He}else qe=He;if(qe<K&&K<=Fe)for(He=0;He<ye.length;He++){var bt=ye[He];0>n.indexOf(bt)||qe<o[bt]&&o[bt]<Fe||qe===o[bt]||Fe===o[bt]||ae++}else for(He=0;He<ye.length;He++)bt=ye[He],0>n.indexOf(bt)||qe<o[bt]&&o[bt]<Fe&&qe!==o[bt]&&Fe!==o[bt]&&ae++}for(ye=ae,Oe=ae=0;Oe<t[f].length;Oe++)qe=n.indexOf(t[f][Oe]),0<=qe&&(qe=Math.abs(K-(qe>=K?qe+1:qe)),ae+=qe<n.length+1-qe?qe:n.length+1-qe);for(Oe=0;Oe<s.length;Oe++)qe=o[s[Oe]],Fe=o[l[Oe]],qe>=K&&qe++,Fe>=K&&Fe++,qe>Fe&&(He=Fe,Fe=qe,qe=He),Fe-qe<(n.length+2)/2==(qe<K&&K<=Fe)&&ae++;(ye<p||ye===p&&ae<x)&&(p=ye,x=ae,N=K)}for(n.splice(N,0,f),p=0;p<n.length;p++)o[n[p]]=p;for(p=0;p<t[f].length;p++)x=t[f][p],0<=n.indexOf(x)&&(s.push(f),l.push(x))}u++}}for(s=n.length;;){for(o=!0,l=0;l<i.length;l++)if(u=i[l],f=t[u][0],p=n.indexOf(f),0<=p){for(N=x=0;N<t[f].length;N++)O=n.indexOf(t[f][N]),0>O||O===p||(F=O>p?O-p:p-O,x+=O<p!=F>s-F?1:-1);n.splice(0>x?p:p+1,0,u),i.splice(l,1),l--}else o=!1;if(o)break;n.push(i[0]),i.splice(0,1)}for(t=0;t<n.length;t++)r.add(e.M(n[t]));return r},at.Object.defineProperties(es.prototype,{radius:{get:function(){return this.eo},set:function(e){this.eo!==e&&(0<e||isNaN(e))&&(this.eo=e,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(e){this.Cm!==e&&0<e&&(this.Cm=e,this.C())}},startAngle:{get:function(){return this.ro},set:function(e){this.ro!==e&&(this.ro=e,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(e){this.ul!==e&&(0<e&&360>=e?this.ul=e:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==ic&&e!==nc&&e!==Zh&&e!==Th||(this.Rb=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K===e||e!==xl&&e!==Xh&&e!==Td&&e!==_f||(this.K=e,this.C())}},sorting:{get:function(){return this.nd},set:function(e){this.nd===e||e!==Nm&&e!==Am&&e!==km&&!Im&&e!==zf||(this.nd=e,this.C())}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e,this.C())}},spacing:{get:function(){return this.tf},set:function(e){this.tf!==e&&(this.tf=e,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(e){this.Nn===e||e!==Mm&&e!==Yd||(this.Nn=e,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 nc=new qt(es,"ConstantSpacing",0),Zh=new qt(es,"ConstantDistance",1),Th=new qt(es,"ConstantAngle",2),ic=new qt(es,"Packed",3),xl=new qt(es,"Clockwise",4),Xh=new qt(es,"Counterclockwise",5),Td=new qt(es,"BidirectionalLeft",6),_f=new qt(es,"BidirectionalRight",7),Nm=new qt(es,"Forwards",8),Am=new qt(es,"Reverse",9),km=new qt(es,"Ascending",10),Im=new qt(es,"Descending",11),zf=new qt(es,"Optimized",12),Mm=new qt(es,"Pythagorean",13),Yd=new qt(es,"Circular",14);es.className="CircularLayout",es.ConstantSpacing=nc,es.ConstantDistance=Zh,es.ConstantAngle=Th,es.Packed=ic,es.Clockwise=xl,es.Counterclockwise=Xh,es.BidirectionalLeft=Td,es.BidirectionalRight=_f,es.Forwards=Nm,es.Reverse=Am,es.Ascending=km,es.Descending=Im,es.Optimized=zf,es.Pythagorean=Mm,es.Circular=Yd;function Vp(){this.Pl=-1/0,this.tm=this.mk=null}Vp.prototype.compare=function(e,t){if(0<e&&0>this.Pl||Math.abs(e)<Math.abs(this.Pl)&&!(0>e&&0<this.Pl))for(this.Pl=e,this.mk=[],this.tm=[],e=0;e<t.length;e++)this.mk[e]=t[e].bounds.x,this.tm[e]=t[e].bounds.y},Vp.prototype.commit=function(e){if(this.mk!==null&&this.tm!==null)for(var t=0;t<this.mk.length;t++){var n=e.M(t);n.x=this.mk[t],n.y=this.tm[t]}},Vp.className="VertexArrangement";function Uf(e){yo.call(this,e)}fi(Uf,yo),Uf.prototype.createVertex=function(){return new Kp(this)},Uf.prototype.createEdge=function(){return new Om(this)},Uf.className="CircularNetwork";function Kp(e){Ws.call(this,e),this.u=this.Si=NaN}fi(Kp,Ws);function Qh(e,t){var n=e.network;if(n===null)return NaN;if(n=n.layout,n===null)return NaN;if(n.arrangement===ic)if(n.nodeDiameterFormula===Yd)e.Si=Math.max(e.width,e.height);else{if(n=Math.abs(Math.sin(t)),t=Math.abs(Math.cos(t)),n===0)return e.width;if(t===0)return e.height;e.Si=Math.min(e.height/n,e.width/t)}else e.Si=n.nodeDiameterFormula===Yd?Math.max(e.width,e.height):Math.sqrt(e.width*e.width+e.height*e.height);return e.Si}at.Object.defineProperties(Kp.prototype,{diameter:{get:function(){return this.Si},set:function(e){this.Si!==e&&(this.Si=e)}},actualAngle:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}}}),Kp.className="CircularVertex";function Om(e){iu.call(this,e)}fi(Om,iu),Om.className="CircularEdge";function Ra(e){Do.call(this),this.ah=null,this.An=0,this.$d=new mi(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,e&&Object.assign(this,e)}fi(Ra,Do),Ra.prototype.cloneProtected=function(e){Do.prototype.cloneProtected.call(this,e),e.$d.assign(this.$d),e.Bm=this.Bm,e.sf=this.sf,e.td=this.td,e.dl=this.dl,e.$m=this.$m,e.Zf=this.Zf,e.In=this.In,e.fo=this.fo,e.Hk=this.Hk,e.Gk=this.Gk,e.Ek=this.Ek,e.Fk=this.Fk,e.Vm=this.Vm,e.Um=this.Um},Ra.prototype.createNetwork=function(){return new Zd(this)},Ra.prototype.doLayout=function(e){if(this.network===null&&(this.network=this.makeNetwork(e)),e=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var t=this.network.vertexes.iterator;t.next();){var n=t.value;n.charge=this.electricalCharge(n),n.mass=this.gravitationalMass(n)}for(t=this.network.edges.iterator;t.next();)n=t.value,n.stiffness=this.springStiffness(n),n.length=this.springLength(n);if(this.Cu(),this.An=0,this.needsClusterLayout()){t=this.network,n=t.Zx();for(var i=n.iterator;i.next();){this.network=i.value;for(var r=this.network.vertexes.iterator;r.next();){var o=r.value;o.Vd=o.vertexes.count,o.sh=1,o.Hj=null,o.We=null}V1(this,0,e)}this.network=t;var s=i=n.iterator;i=this.arrangementSpacing;var l=s.count,u=!0;o=r=0;for(var f=jt(),p=0;p<l+t.vertexes.count+2;p++)f[p]=null;l=0,s.reset();for(var x=Ht.alloc();s.next();)if(p=s.value,this.computeBounds(p,x),u)u=!1,r=x.x+x.width/2,o=x.y+x.height/2,f[0]=new ce(x.x+x.width+i.width,x.y),f[1]=new ce(x.x,x.y+x.height+i.height),l=2;else{var N=K1(f,l,r,o,x.width,x.height,i),O=f[N],F=new ce(O.x+x.width+i.width,O.y),K=new ce(O.x,O.y+x.height+i.height);for(N+1<l&&f.splice(N+1,0,null),f[N]=F,f[N+1]=K,l++,N=O.x-x.x,O=O.y-x.y,p=p.vertexes.iterator;p.next();)F=p.value,F.centerX+=N,F.centerY+=O}for(Ht.free(x),p=t.vertexes.iterator;p.next();)s=p.value,N=s.bounds,2>l?(r=N.x+N.width/2,o=N.y+N.height/2,f[0]=new ce(N.x+N.width+i.width,N.y),f[1]=new ce(N.x,N.y+N.height+i.height),l=2):(u=K1(f,l,r,o,N.width,N.height,i),x=f[u],O=new ce(x.x+N.width+i.width,x.y),N=new ce(x.x,x.y+N.height+i.height),u+1<l&&f.splice(u+1,0,null),f[u]=O,f[u+1]=N,l++,s.centerX=x.x+s.width/2,s.centerY=x.y+s.height/2);for(gn(f),i=n.iterator;i.next();){for(n=i.value,r=n.vertexes.iterator;r.next();)t.dh(r.value);for(n=n.edges.iterator;n.next();)t.Bo(n.value)}}Z1(this,e),this.updateParts()}this.dl=e,this.network=null,this.isValidLayout=!0},Ra.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var e=0,t=0,n=this.network.vertexes.first().bounds,i=this.network.vertexes.iterator;i.next();){if(i.value.bounds.Yc(n)&&(e++,2<e))return!0;if(10<t)break;t++}return!1},Ra.prototype.computeBounds=function(e,t){var n=!0;for(e=e.vertexes.iterator;e.next();){var i=e.value;n?(n=!1,t.set(i.bounds)):t.ed(i.bounds)}return t};function V1(e,t,n){if(Yb(e,t)){var i=e.Zf;e.Zf*=1+1/(t+1);var r=Zb(e,t),o=Math.max(0,Math.max(Math.min(e.network.vertexes.count,n*(t+1)/11),10));for(e.maxIterations+=o,V1(e,t+1,n),Z1(e,o),Xb(e,r),t=r.vertexes.Fa(),t.sort(function(s,l){return s===null||l===null||s===l?0:l.Vd-s.Vd}),n=0;n<t.length;n++)Qb(e,t[n]);e.Zf=i}}function Yb(e,t){if(10<t||3>e.network.vertexes.count)return!1;for(e.ah=e.network.vertexes.Fa(),e=e.ah,e.sort(function(n,i){return n===null||i===null||n===i?0:i.Vd-n.Vd}),t=e.length-1;0<=t&&1>=e[t].Vd;)t--;return 1<e.length-t}function Zb(e,t){for(var n=e.network,i=new Zd(e),r=0;r<e.ah.length;r++){var o=e.ah[r];if(1<o.Vd){i.dh(o);var s=new X1;s.Rs=o.Vd,s.Ss=o.width,s.Qs=o.height,s.Sv=o.focus.x,s.Tv=o.focus.y,o.We===null&&(o.We=new Xt),o.We.add(s),o.sv=o.We.count-1}else break}for(o=n.edges.iterator;o.next();){var l=o.value;r=l.fromVertex,s=l.toVertex,r.network===i&&s.network===i?i.Bo(l):r.network===i?(l=r.Hj,l===null&&(l=new Xt,r.Hj=l),l.add(s),r.Vd--,r.sh+=s.sh):s.network===i&&(l=s.Hj,l===null&&(l=new Xt,s.Hj=l),l.add(r),s.Vd--,s.sh+=r.sh)}for(r=i.edges.iterator;r.next();)o=r.value,o.length*=Math.max(1,Ke.sqrt((o.fromVertex.sh+o.toVertex.sh)/(4*t+1)));for(t=i.vertexes.iterator;t.next();){r=t.value;var u=r.Hj;if(u!==null&&0<u.count&&(s=r.We.M(r.We.count-1).Rs-r.Vd,!(0>=s))){for(var f=l=0,p=u.count-s;p<u.count;p++){var x=u.M(p),N=null;for(o=x.edges.iterator;o.next();){var O=o.value;if(O.Ax(x)===r){N=O;break}}N!==null&&(f+=N.length,l+=x.width*x.height)}o=r.centerX,u=r.centerY,p=r.width,x=r.height,N=r.focus,O=p*x,1>O&&(O=1),l=Ke.sqrt((l+O+f*f*4/(s*s))/O),s=(l-1)*p/2,l=(l-1)*x/2,r.bounds=new Ht(o-N.x-s,u-N.y-l,p+2*s,x+2*l),r.focus=new ce(N.x+s,N.y+l)}}return e.network=i,n}function Xb(e,t){for(var n=e.network.vertexes.iterator;n.next();){var i=n.value;if(i.network=t,i.We!==null){var r=i.We.M(i.sv);i.Vd=r.Rs;var o=r.Sv,s=r.Tv;i.bounds=new Ht(i.centerX-o,i.centerY-s,r.Ss,r.Qs),i.focus=new ce(o,s),i.sv--}}for(n=e.network.edges.iterator;n.next();)n.value.network=t;e.network=t}function Qb(e,t){var n=t.Hj;if(n!==null&&n.count!==0){var i=t.centerX,r=t.centerY,o=t.width,s=t.height;t.We!==null&&0<t.We.count&&(s=t.We.M(0),o=s.Ss,s=s.Qs),o=Ke.sqrt(o*o+s*s)/2;for(var l=!1,u=s=0,f=0,p=t.vertexes.iterator;p.next();){var x=p.value;1>=x.Vd?u++:(l=!0,f++,s+=Math.atan2(t.centerY-x.centerY,t.centerX-x.centerX))}if(u!==0){for(0<f&&(s/=f),f=t=0,t=l?2*Math.PI/(u+1):2*Math.PI/u,u%2===0&&(f=t/2),1<n.count&&n.sort(function(O,F){return O===null||F===null||O===F?0:F.width*F.height-O.width*O.height}),l=u%2===0?0:1,n=n.iterator;n.next();)if(u=n.value,!(1<u.Vd||e.isFixed(u))){for(p=null,x=u.edges.iterator;x.next();){p=x.value;break}x=u.width;var N=u.height;x=Ke.sqrt(x*x+N*N)/2,p=o+p.length+x,x=s+(t*(l/2>>1)+f)*(l%2===0?1:-1),u.centerX=i+p*Math.cos(x),u.centerY=r+p*Math.sin(x),l++}}}}function K1(e,t,n,i,r,o,s){var l=9e19,u=-1,f=0;e:for(;f<t;f++){var p=e[f],x=p.x-n,N=p.y-i;if(x=x*x+N*N,x<l){for(N=f-1;0<=N;N--)if(e[N].y>p.y&&e[N].x-p.x<r+s.width)continue e;for(N=f+1;N<t;N++)if(e[N].x>p.x&&e[N].y-p.y<o+s.height)continue e;u=f,l=x}}return u}Ra.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},Ra.prototype.addComments=function(e){var t=e.node;if(t!==null)for(t=t.Mu();t.next();){var n=t.value;if(n.category==="Comment"&&n.isVisible()){var i=this.network.ki(n);i===null&&(i=this.network.Bl(n)),i.charge=this.defaultCommentElectricalCharge,n=null;for(var r=i.destinationEdges;r.next();){var o=r.value;if(o.toVertex===e){n=o;break}}if(n===null){for(r=i.sourceEdges;r.next();)if(o=r.value,o.fromVertex===e){n=o;break}}n===null&&(n=this.network.Zj(e,i,null)),n.length=this.defaultCommentSpringLength}}};function Y1(e,t){var n=e.bounds,i=n.x;e=n.y;var r=n.width;n=n.height;var o=t.bounds,s=o.x;t=o.y;var l=o.width;return o=o.height,i+r<s?e>t+o?(n=i+r-s,e=e-t-o,Ke.sqrt(n*n+e*e)):e+n<t?(i=i+r-s,e=e+n-t,Ke.sqrt(i*i+e*e)):s-(i+r):i>s+l?e>t+o?(n=i-s-l,e=e-t-o,Ke.sqrt(n*n+e*e)):e+n<t?(i=i-s-l,e=e+n-t,Ke.sqrt(i*i+e*e)):i-(s+l):e>t+o?e-(t+o):e+n<t?t-(e+n):.1}function Z1(e,t){for(e.ah=null,t=e.An+t;e.An<t&&(e.An++,Jb(e)););e.ah=null}function Jb(e){e.ah===null&&(e.ah=e.network.vertexes.Fa());var t=e.ah;if(0>=t.length)return!1;var n=t[0];n.forceX=0,n.forceY=0;for(var i=n.centerX,r=i,o=n=n.centerY,s=1;s<t.length;s++){var l=t[s];l.forceX=0,l.forceY=0;var u=l.centerX;l=l.centerY,i=Math.min(i,u),r=Math.max(r,u),n=Math.min(n,l),o=Math.max(o,l)}(r=r-i>o-n)?t.sort(function(K,ye){return K===null||ye===null||K===ye?0:K.centerX-ye.centerX}):t.sort(function(K,ye){return K===null||ye===null||K===ye?0:K.centerY-ye.centerY}),n=e.Zf;var f=i=l=0;for(o=0;o<t.length;o++){s=t[o],i=s.bounds,l=s.focus,u=i.x+l.x;var p=i.y+l.y;i=s.charge*e.electricalFieldX(u,p),f=s.charge*e.electricalFieldY(u,p),i+=s.mass*e.gravitationalFieldX(u,p),f+=s.mass*e.gravitationalFieldY(u,p),s.forceX+=i,s.forceY+=f;for(var x=o+1;x<t.length;x++){var N=t[x];if(N!==s){i=N.bounds,l=N.focus,f=i.x+l.x;var O=i.y+l.y;if(u-f>n||f-u>n){if(r)break}else if(p-O>n||O-p>n){if(!r)break}else{var F=Y1(s,N);1>F?(i=e.randomNumberGenerator,i===null&&(e.randomNumberGenerator=i=new Lm),F=i.random(),l=i.random(),u>f?(i=Math.abs(N.bounds.right-s.bounds.x),i=(1+i)*F):u<f?(i=Math.abs(N.bounds.x-s.bounds.right),i=-(1+i)*F):(i=Math.max(N.width,s.width),i=(1+i)*F-i/2),p>O?(f=Math.abs(N.bounds.bottom-s.bounds.y),f=(1+f)*l):u<f?(f=Math.abs(N.bounds.y-s.bounds.bottom),f=-(1+f)*l):(f=Math.max(N.height,s.height),f=(1+f)*l-f/2)):(l=-(s.charge*N.charge)/(F*F),i=(f-u)/F*l,f=(O-p)/F*l),s.forceX+=i,s.forceY+=f,N.forceX-=i,N.forceY-=f}}}}for(r=e.network.edges.iterator;r.next();)l=r.value,n=l.fromVertex,o=l.toVertex,s=n.bounds,u=n.focus,i=s.x+u.x,s=s.y+u.y,p=o.bounds,x=o.focus,u=p.x+x.x,p=p.y+x.y,x=Y1(n,o),1>x?(x=e.randomNumberGenerator,x===null&&(e.randomNumberGenerator=x=new Lm),l=x.random(),x=x.random(),i=(i>u?1:-1)*(1+(o.width>n.width?o.width:n.width))*l,f=(s>p?1:-1)*(1+(o.height>n.height?o.height:n.height))*x):(l=l.stiffness*(x-l.length),i=(u-i)/x*l,f=(p-s)/x*l),n.forceX+=i,n.forceY+=f,o.forceX-=i,o.forceY-=f;for(r=i=0;r<t.length;r++)n=t[r],e.isFixed(n)?e.moveFixedVertex(n):i=Math.max(i,e.moveVertex(n)||0);return i>e.epsilonDistance*e.epsilonDistance}Ra.prototype.moveVertex=function(e){var t=e.forceX,n=e.forceY,i=this.moveLimit;return t<-i?t=-i:t>i&&(t=i),n<-i?n=-i:n>i&&(n=i),e.centerX+=t,e.centerY+=n,t*t+n*n},Ra.prototype.moveFixedVertex=function(){},Ra.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},Ra.prototype.yv=function(){if(this.setsPortSpots)for(var e=this.network.edges.iterator;e.next();){var t=e.value.link;t!==null&&(t.fromSpot=Lr,t.toSpot=Lr)}},Ra.prototype.commitNodes=function(){var e=0,t=0;if(this.arrangesToOrigin){var n=Ht.alloc();this.computeBounds(this.network,n),t=this.arrangementOrigin,e=t.x-n.x,t=t.y-n.y,Ht.free(n)}n=Ht.alloc();for(var i=this.network.vertexes.iterator;i.next();){var r=i.value;(e!==0||t!==0)&&(n.assign(r.bounds),n.x+=e,n.y+=t,r.bounds=n),r.commit()}Ht.free(n)},Ra.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},Ra.prototype.springStiffness=function(e){return e=e.stiffness,isNaN(e)?this.Hk:e},Ra.prototype.springLength=function(e){return e=e.length,isNaN(e)?this.Gk:e},Ra.prototype.electricalCharge=function(e){return e=e.charge,isNaN(e)?this.Ek:e},Ra.prototype.electricalFieldX=function(){return 0},Ra.prototype.electricalFieldY=function(){return 0},Ra.prototype.gravitationalMass=function(e){return e=e.mass,isNaN(e)?this.Fk:e},Ra.prototype.gravitationalFieldX=function(){return 0},Ra.prototype.gravitationalFieldY=function(){return 0},Ra.prototype.isFixed=function(e){return e.isFixed},at.Object.defineProperties(Ra.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(e){this.$d.D(e)||(this.$d.assign(e),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(e){this.Bm!==e&&(this.Bm=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},comments:{get:function(){return this.td},set:function(e){this.td!==e&&(this.td=e,this.C())}},maxIterations:{get:function(){return this.dl},set:function(e){this.dl!==e&&0<=e&&(this.dl=e,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(e){this.$m!==e&&0<e&&(this.$m=e,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(e){this.Zf!==e&&1<e&&(this.Zf=e,this.C())}},moveLimit:{get:function(){return this.In},set:function(e){this.In!==e&&1<e&&(this.In=e,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(e){this.fo!==e&&(e!==null&&typeof e.random!="function"&&ut('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+e),this.fo=e)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(e){this.Hk!==e&&(this.Hk=e,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(e){this.Gk!==e&&(this.Gk=e,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(e){this.Ek!==e&&(this.Ek=e,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(e){this.Fk!==e&&(this.Fk=e,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(e){this.Vm!==e&&(this.Vm=e,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(e){this.Um!==e&&(this.Um=e,this.C())}}}),Ra.className="ForceDirectedLayout";function X1(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}X1.className="ForceDirectedSubnet";function Zd(e){yo.call(this,e)}fi(Zd,yo),Zd.prototype.createVertex=function(){return new Yp(this)},Zd.prototype.createEdge=function(){return new Zp(this)},Zd.className="ForceDirectedNetwork";function Yp(e){Ws.call(this,e),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}fi(Yp,Ws),at.Object.defineProperties(Yp.prototype,{isFixed:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},charge:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},mass:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},forceX:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}},forceY:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}}}),Yp.className="ForceDirectedVertex";function Zp(e){iu.call(this,e),this.j=this.o=NaN}fi(Zp,iu),at.Object.defineProperties(Zp.prototype,{stiffness:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},length:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}}}),Zp.className="ForceDirectedEdge";function Lm(){var e=0;e===void 0&&(e=42),this.seed=e,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}Lm.prototype.random=function(){var e=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<e?this.seed=e:this.seed=e+this.ey,this.seed*this.by},Lm.className="RandomNumberGenerator";function Kr(e){Do.call(this),this.kc=this.ie=25,this.K=0,this.Dk=Bm,this.Zk=_m,this.Qk=zm,this.bj=4,this.rk=Um,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 ce,this.He=[],this.He.length=100,this.xw=this.ve=0,e&&Object.assign(this,e)}fi(Kr,Do),Kr.prototype.cloneProtected=function(e){Do.prototype.cloneProtected.call(this,e),e.ie=this.ie,e.kc=this.kc,e.K=this.K,e.Dk=this.Dk,e.Zk=this.Zk,e.Qk=this.Qk,e.bj=this.bj,e.rk=this.rk,e.bg=this.bg,e.sf=this.sf,e.Cn=this.Cn,e.ve=this.ve},Kr.prototype.qb=function(e){e.classType===Kr?e.name.indexOf("Aggressive")===0?this.aggressiveOption=e:e.name.indexOf("Cycle")===0?this.cycleRemoveOption=e:e.name.indexOf("Init")===0?this.initializeOption=e:e.name.indexOf("Layer")===0?this.layeringOption=e:ut("Unknown enum value: "+e):Do.prototype.qb.call(this,e)},Kr.prototype.createNetwork=function(){return new $f(this)},Kr.prototype.doLayout=function(e){for(this.network===null&&(this.network=this.makeNetwork(e)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,e=0;e<this.He.length;e++)this.He[e]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Qp&&this.removeCycles(),e=this.network.vertexes.iterator;e.next();)e.value.layer=-1;for(this.Ia=-1,this.assignLayers(),e.reset();e.next();)this.Ia=Math.max(this.Ia,e.value.layer);this.cycleRemoveOption===Qp&&this.removeCycles(),e=this.network;for(var t=[],n=e.edges.iterator;n.next();){var i=n.value;i.valid=!1,t.push(i)}for(n=0;n<t.length;n++){i=t[n];var r=i.fromVertex,o=i.toVertex;if(!(i.valid||(r.node===null&&r.data===null||o.node===null&&o.data===null)&&r.layer===o.layer)){var s=0,l=0,u=0,f=0;if(i.link!==null){if(l=i.link,l===null)continue;var p=r.node;if(s=o.node,p===null||s===null)continue;var x=l.fromNode;u=l.toNode;for(var N=l.fromPort;N!==null&&!N.Ed();)N=N.panel;for(l=l.toPort;l!==null&&!l.Ed();)l=l.panel;if(i.rev){f=x;var O=N;x=u,N=l,u=f,l=O}var F=r.focus;f=o.focus;var K=i.rev?o.bounds:r.bounds;O=ce.alloc(),p!==x?K.w()&&x.isVisible()?x.actualBounds.w()?(xh(x,N,vr,O),O.x+=x.actualBounds.x-K.x,O.y+=x.actualBounds.y-K.y):(xh(x,N,vr,O),O.w()||O.assign(F)):O.assign(F):K.w()?(xh(x,N,vr,O),O.w()||O.assign(F)):O.assign(F),x=i.rev?r.bounds:o.bounds,p=ce.alloc(),s!==u?x.w()&&u.isVisible()?u.actualBounds.w()?(xh(u,l,vr,p),p.x+=u.actualBounds.x-x.x,p.y+=u.actualBounds.y-x.y):(xh(u,l,vr,p),p.w()||p.assign(f)):p.assign(f):x.w()?(xh(u,l,vr,p),p.w()||p.assign(f)):p.assign(f),this.K===90||this.K===270?(s=Math.round((O.x-F.x)/this.kc),u=O.x,l=Math.round((p.x-f.x)/this.kc),f=p.x):(s=Math.round((O.y-F.y)/this.kc),u=O.y,l=Math.round((p.y-f.y)/this.kc),f=p.y),ce.free(O),ce.free(p),i.portFromColOffset=s,i.portFromPos=u,i.portToColOffset=l,i.portToPos=f}else i.portFromColOffset=0,i.portFromPos=0,i.portToColOffset=0,i.portToPos=0;if(O=r.layer,p=o.layer,x=0,K=i.link,K!==null){var ye=K.fromPort,ae=K.toPort;if(ye!==null&&ae!==null){var Oe=K.fromNode;if(N=K.toNode,Oe!==null&&N!==null){var Fe=Fm(this,!0),He=Fm(this,!1),qe=this.setsPortSpots?Fe:K.computeSpot(!0,ye);F=this.setsPortSpots?He:K.computeSpot(!1,ae);var bt=K.isOrthogonal;qe.$c()&&qe.Hf(He)&&F.$c()&&F.Hf(Fe)?x=0:(Fe=K.getLinkPoint(Oe,ye,qe,!0,bt,N,ae,ce.alloc()),He=K.getLinkDirection(Oe,ye,Fe,qe,!0,bt,N,ae),ce.free(Fe),qe.ys()||He!==ob(this,i,!0)?this.setsPortSpots&&Oe!==null&&Oe.ports.count===1&&i.rev&&(x+=1):x+=1,qe=K.getLinkPoint(N,ae,F,!1,bt,Oe,ye,ce.alloc()),K=K.getLinkDirection(N,ae,qe,F,!1,bt,Oe,ye),ce.free(qe),F.ys()||K!==ob(this,i,!1)?this.setsPortSpots&&N!==null&&N.ports.count===1&&i.rev&&(x+=2):x+=2)}}}if(N=x,x=N===1||N===3,(N=N===2||N===3)&&(F=e.createVertex(),F.node=null,F.Dj=1,F.layer=O,F.near=r,e.dh(F),r=e.Zj(r,F,i.link),r.valid=!1,r.rev=i.rev,r.portFromColOffset=s,r.portToColOffset=0,r.portFromPos=u,r.portToPos=0,r=F),K=1,x&&K--,O-p>K&&0<O){for(i.valid=!1,F=e.createVertex(),F.node=null,F.Dj=2,F.layer=O-1,e.dh(F),r=e.Zj(r,F,i.link),r.valid=!0,r.rev=i.rev,r.portFromColOffset=N?0:s,r.portToColOffset=0,r.portFromPos=N?0:u,r.portToPos=0,r=F,O--;O-p>K&&0<O;)F=e.createVertex(),F.node=null,F.Dj=3,F.layer=O-1,e.dh(F),r=e.Zj(r,F,i.link),r.valid=!0,r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=0,r.portFromPos=0,r.portToPos=0,r=F,O--;r=e.Zj(F,o,i.link),r.valid=!x,x&&(F.near=o),r.rev=i.rev,r.portFromColOffset=0,r.portToColOffset=l,r.portFromPos=0,r.portToPos=f}else i.valid=!0}}for(e=this.tc=[],t=0;t<=this.Ia;t++)e[t]=0;for(t=this.network.vertexes.iterator;t.next();)t.value.index=-1;for(this.initializeIndices(),this.Iq=-1,n=this.Md=this.Hn=0;n<=this.Ia;n++)e[n]>e[this.Md]&&(this.Iq=e[n]-1,this.Md=n),e[n]<e[this.Hn]&&(this.Hn=n);for(this.fl=[],n=0;n<e.length;n++)this.fl[n]=[];for(t.reset();t.next();)e=t.value,this.fl[e.layer][e.index]=e;for(this.Ra=-1,e=0;e<=this.Ia;e++){for(t=Jh(this,e),n=0,i=this.tc[e],o=0;o<i;o++)r=t[o],n+=this.nodeMinColumnSpace(r,!0),r.column=n,n+=1,n+=this.nodeMinColumnSpace(r,!1);this.Ra=Math.max(this.Ra,n-1),qh(this,e,t)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Kr.prototype.linkMinLength=function(){return 1};function wv(e){var t=e.fromVertex.node||e.fromVertex.data;return e=e.toVertex.node||e.toVertex.data,t===null&&e===null?8:t===null||e===null?4:1}Kr.prototype.nodeMinLayerSpace=function(e,t){return e.node===null&&e.data===null?0:this.K===90||this.K===270?t?e.focus.y+10:e.bounds.height-e.focus.y+10:t?e.focus.x+10:e.bounds.width-e.focus.x+10},Kr.prototype.nodeMinColumnSpace=function(e,t){if(e.node===null&&e.data===null)return 0;var n=t?e.ev:e.dv;return n!==null?n:(n=this.K,n===90||n===270?t?e.ev=e.focus.x/this.kc+1|0:e.dv=(e.bounds.width-e.focus.x)/this.kc+1|0:t?e.ev=e.focus.y/this.kc+1|0:e.dv=(e.bounds.height-e.focus.y)/this.kc+1|0)};function _l(e){e.kj===null&&(e.kj=[]);for(var t=0,n=e.network.vertexes.iterator;n.next();){var i=n.value;e.kj[t]=i.layer,t++,e.kj[t]=i.column,t++,e.kj[t]=i.index,t++}return e.kj}function Du(e,t){var n=0;for(e=e.network.vertexes.iterator;e.next();){var i=e.value;i.layer=t[n],n++,i.column=t[n],n++,i.index=t[n],n++}}function Q1(e,t,n){var i=Jh(e,t),r=e.tc[t];(e.Jn===null||e.Jn.length<r*r)&&(e.Jn=[]);for(var o=e.Jn,s=0;s<r;s++){var l=0,u=i[s],f=u.near;if(f!==null&&f.layer===u.layer)if(u=f.index,u>s)for(var p=s+1;p<u;p++){var x=i[p];x.near===f&&x.Dj===f.Dj||l++}else for(p=s-1;p>u;p--)x=i[p],x.near===f&&x.Dj===f.Dj||l++;var N;if(0<=n)for(u=i[s].sourceEdgesArrayAccess,f=0;f<u.length;f++){var O=u[f];if(O.valid&&O.fromVertex.layer!==t)for(x=O.fromVertex.index,p=O.portToPos,O=O.portFromPos,N=f+1;N<u.length;N++){var F=u[N];if(F.valid&&F.fromVertex.layer!==t){var K=F.fromVertex.index,ye=F.portToPos;F=F.portFromPos,p<ye&&(x>K||x===K&&O>F)&&l++,ye<p&&(K>x||K===x&&F>O)&&l++}}}if(0>=n){for(u=i[s].destinationEdgesArrayAccess,f=0;f<u.length;f++)if(O=u[f],O.valid&&O.toVertex.layer!==t)for(x=O.toVertex.index,p=O.portToPos,O=O.portFromPos,N=f+1;N<u.length;N++)F=u[N],F.valid&&F.toVertex.layer!==t&&(K=F.toVertex.index,ye=F.portToPos,F=F.portFromPos,O<F&&(x>K||x===K&&p>ye)&&l++,F<O&&(K>x||K===x&&ye>p)&&l++)}for(o[s*r+s]=l,u=s+1;u<r;u++){var ae=0,Oe=0;if(0<=n){l=i[s].sourceEdgesArrayAccess;var Fe=i[u].sourceEdgesArrayAccess;for(f=0;f<l.length;f++)if(O=l[f],O.valid&&O.fromVertex.layer!==t)for(x=O.fromVertex.index,O=O.portFromPos,N=0;N<Fe.length;N++)F=Fe[N],F.valid&&F.fromVertex.layer!==t&&(K=F.fromVertex.index,F=F.portFromPos,(x<K||x===K&&O<F)&&Oe++,(K<x||K===x&&F<O)&&ae++)}if(0>=n){for(l=i[s].destinationEdgesArrayAccess,Fe=i[u].destinationEdgesArrayAccess,f=0;f<l.length;f++)if(O=l[f],O.valid&&O.toVertex.layer!==t)for(x=O.toVertex.index,p=O.portToPos,N=0;N<Fe.length;N++)F=Fe[N],F.valid&&F.toVertex.layer!==t&&(K=F.toVertex.index,ye=F.portToPos,(x<K||x===K&&p<ye)&&Oe++,(K<x||K===x&&ye<p)&&ae++)}o[s*r+u]=ae,o[u*r+s]=Oe}}return qh(e,t,i),o}Kr.prototype.countCrossings=function(){for(var e=0,t=0;t<=this.Ia;t++)for(var n=Q1(this,t,1),i=this.tc[t],r=0;r<i;r++)for(var o=r;o<i;o++)e+=n[r*i+o];return e};function Rm(e){for(var t=0,n=0;n<=e.Ia;n++){for(var i=e,r=n,o=Jh(i,r),s=i.tc[r],l=0,u=0;u<s;u++){var f=o[u].destinationEdgesArrayAccess;if(f!==null)for(var p=0;p<f.length;p++){var x=f[p];if(x.valid&&x.toVertex.layer!==r){var N=x.fromVertex.column+x.portFromColOffset,O=x.toVertex.column+x.portToColOffset;l+=(Math.abs(N-O)+1)*wv(x)}}}qh(i,r,o),t+=l}return t}Kr.prototype.normalize=function(){var e=1/0;this.Ra=-1;for(var t=this.network.vertexes.iterator;t.next();){var n=t.value;e=Math.min(e,n.column-this.nodeMinColumnSpace(n,!0)),this.Ra=Math.max(this.Ra,n.column+this.nodeMinColumnSpace(n,!1))}for(t.reset();t.next();)t.value.column-=e;this.Ra-=e};function Cv(e,t,n){for(var i=Jh(e,t),r=e.tc[t],o=[],s=0;s<r;s++){var l=i[s],u=null;0>=n&&(u=l.sourceEdgesArrayAccess);var f=null;0<=n&&(f=l.destinationEdgesArrayAccess);var p=0,x=0,N=l.near;if(N!==null&&N.layer===l.layer&&(p+=N.column-1,x++),u!==null)for(N=0;N<u.length;N++){l=u[N];var O=l.fromVertex;l.valid&&!l.rev&&O.layer!==t&&(p+=O.column,x++)}if(f!==null)for(u=0;u<f.length;u++)l=f[u],N=l.toVertex,l.valid&&!l.rev&&N.layer!==t&&(p+=N.column,x++);o[s]=x===0?-1:p/x}return qh(e,t,i),o}function J1(e,t,n){for(var i=Jh(e,t),r=e.tc[t],o=[],s=0;s<r;s++){var l=i[s],u=null;0>=n&&(u=l.sourceEdgesArrayAccess);var f=null;0<=n&&(f=l.destinationEdgesArrayAccess);var p=0,x=[],N=l.near;if(N!==null&&N.layer===l.layer&&(x[p]=N.column-1,p++),l=void 0,u!==null)for(N=0;N<u.length;N++){l=u[N];var O=l.fromVertex;l.valid&&!l.rev&&O.layer!==t&&(x[p]=O.column+l.portFromColOffset,p++)}if(f!==null)for(u=0;u<f.length;u++)l=f[u],N=l.toVertex,l.valid&&!l.rev&&N.layer!==t&&(x[p]=N.column+l.portToColOffset,p++);p===0?o[s]=-1:(x.sort(function(F,K){return F-K}),f=p>>1,o[s]=p&1?x[f]:x[f-1]+x[f]>>1)}return qh(e,t,i),o}function Xp(e,t,n,i,r,o){if(t.component===i){if(t.component=n,r)for(var s=t.destinationEdges;s.next();){var l=s.value,u=l.toVertex,f=t.layer-u.layer;l=e.linkMinLength(l),f===l&&Xp(e,u,n,i,r,o)}if(o)for(s=t.sourceEdges;s.next();)l=s.value,u=l.fromVertex,f=u.layer-t.layer,l=e.linkMinLength(l),f===l&&Xp(e,u,n,i,r,o)}}function Tv(e,t,n,i,r,o){if(t.component===i){if(t.component=n,r)for(var s=t.destinationEdges;s.next();)Tv(e,s.value.toVertex,n,i,r,o);if(o)for(t=t.sourceEdges;t.next();)Tv(e,t.value.fromVertex,n,i,r,o)}}Kr.prototype.removeCycles=function(){for(var e=this.network.edges.iterator;e.next();)e.value.rev=!1;switch(this.Dk){default:case kv:e=this.network;var t=0,n=e.vertexes.count-1,i=[];i.length=n+1;for(var r=e.vertexes.iterator;r.next();)r.value.valid=!0;for(;qb(e)!==null;){for(r=q1(e);r!==null;)i[n]=r,n--,r.valid=!1,r=q1(e);for(r=eb(e);r!==null;)i[t]=r,t++,r.valid=!1,r=eb(e);r=null;for(var o=0,s=this.network.vertexes.iterator;s.next();){var l=s.value;if(l.valid){for(var u=0,f=l.destinationEdges;f.next();)f.value.toVertex.valid&&u++;f=0;for(var p=l.sourceEdges;p.next();)p.value.fromVertex.valid&&f++;(r===null||o<u-f)&&(r=l,o=u-f)}}r!==null&&(i[t]=r,t++,r.valid=!1)}for(t=0;t<e.vertexes.count;t++)i[t].index=t;for(i=e.edges.iterator;i.next();)t=i.value,t.fromVertex.index>t.toVertex.index&&(e.gm(t),t.rev=!0);break;case Bm:for(i=this.network.vertexes.iterator;i.next();)e=i.value,e.Ll=-1,e.finish=-1;for(e=this.network.edges.iterator;e.next();)e.value.forest=!1;for(this.Kn=0,i.reset();i.next();)t=i.value,t.sourceEdges.count===0&&Nv(this,t);for(i.reset();i.next();)t=i.value,t.Ll===-1&&Nv(this,t);for(e.reset();e.next();)i=e.value,i.forest||(t=i.fromVertex,n=t.finish,r=i.toVertex,o=r.finish,r.Ll<t.Ll&&n<o&&(this.network.gm(i),i.rev=!0));break;case Qp:for(e=this.network,t=e.vertexes.iterator,i=1/0;t.next();)i=Math.min(i,t.value.layer);if(1/0>i){if(0>i)for(t.reset();t.next();)t.value.layer-=i;for(i=[],t.reset();t.next();)n=t.value,r=i[n.layer],r===void 0?i[n.layer]=[n]:r.push(n);for(n=t=0;n<i.length;n++)if(r=i[n],!r||r.length===0)t++;else if(0<n)for(o=0;o<r.length;o++)r[o].layer-=t;for(i=e.edges.iterator;i.next();)t=i.value,t.fromVertex.layer<t.toVertex.layer&&(e.gm(t),t.rev=!0)}}};function qb(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid)return t}return null}function q1(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,i=t.destinationEdges;i.next();)if(i.value.toVertex.valid){n=!1;break}if(n)return t}}return null}function eb(e){for(e=e.vertexes.iterator;e.next();){var t=e.value;if(t.valid){for(var n=!0,i=t.sourceEdges;i.next();)if(i.value.fromVertex.valid){n=!1;break}if(n)return t}}return null}function Nv(e,t){t.Ll=e.Kn,e.Kn++;for(var n=t.destinationEdges;n.next();){var i=n.value,r=i.toVertex;r.Ll===-1&&(i.forest=!0,Nv(e,r))}t.finish=e.Kn,e.Kn++}Kr.prototype.assignLayers=function(){switch(this.Zk){case Iv:tb(this);break;case Mv:for(var e,t=this.network.vertexes.iterator;t.next();)e=ib(this,t.value),this.Ia=Math.max(e,this.Ia);for(t.reset();t.next();)e=t.value,e.layer=this.Ia-e.layer;break;default:case _m:for(tb(this),t=this.network.vertexes.iterator;t.next();)t.value.valid=!1;for(t.reset();t.next();)e=t.value,e.sourceEdges.count===0&&rb(this,e);for(e=1/0,t.reset();t.next();)e=Math.min(e,t.value.layer);for(this.Ia=-1,t.reset();t.next();){var n=t.value;n.layer-=e,this.Ia=Math.max(this.Ia,n.layer)}}};function tb(e){for(var t=e.network.vertexes.iterator;t.next();){var n=nb(e,t.value);e.Ia=Math.max(n,e.Ia)}}function nb(e,t){var n=0;if(t.layer===-1){for(var i=t.destinationEdges;i.next();){var r=i.value,o=r.toVertex;r=e.linkMinLength(r),n=Math.max(n,nb(e,o)+r)}t.layer=n}else n=t.layer;return n}function ib(e,t){var n=0;if(t.layer===-1){for(var i=t.sourceEdges;i.next();){var r=i.value,o=r.fromVertex;r=e.linkMinLength(r),n=Math.max(n,ib(e,o)+r)}t.layer=n}else n=t.layer;return n}function rb(e,t){if(!t.valid){t.valid=!0;for(var n=t.destinationEdges;n.next();)rb(e,n.value.toVertex);for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(var i=t.sourceEdgesArrayAccess,r=i.length,o=0;o<r;o++){var s=i[o],l=s.fromVertex,u=s.toVertex;s=e.linkMinLength(s),l.layer-u.layer>s&&Xp(e,l,0,-1,!0,!1)}for(Xp(e,t,1,-1,!0,!0);t.component!==0;){for(o=0,i=1/0,l=0,u=null,s=e.network.vertexes.iterator;s.next();){var f=s.value;if(f.component===1){var p=0,x=!1,N=f.sourceEdgesArrayAccess;r=N.length;for(var O=0;O<r;O++){var F=N[O],K=F.fromVertex;p+=1,K.component!==1&&(o+=1,K=K.layer-f.layer,F=e.linkMinLength(F),i=Math.min(i,K-F))}for(N=f.destinationEdgesArrayAccess,r=N.length,O=0;O<r;O++)F=N[O].toVertex,--p,F.component!==1?--o:x=!0;(u===null||p<l)&&!x&&(u=f,l=p)}}if(0<o){for(n.reset();n.next();)r=n.value,r.component===1&&(r.layer+=i);t.component=0}else u.component=0}for(n=e.network.vertexes.iterator;n.next();)n.value.component=-1;for(Xp(e,t,1,-1,!0,!1);t.component!==0;){for(i=0,r=1/0,o=0,l=null,u=e.network.vertexes.iterator;u.next();)if(s=u.value,s.component===1){for(f=0,p=!1,N=s.sourceEdgesArrayAccess,x=N.length,O=0;O<x;O++)F=N[O].fromVertex,f+=1,F.component!==1?i+=1:p=!0;for(N=s.destinationEdgesArrayAccess,x=N.length,O=0;O<x;O++)F=N[O],K=F.toVertex,--f,K.component!==1&&(--i,K=s.layer-K.layer,F=e.linkMinLength(F),r=Math.min(r,K-F));(l===null||f>o)&&!p&&(l=s,o=f)}if(0>i){for(n.reset();n.next();)i=n.value,i.component===1&&(i.layer-=r);t.component=0}else l.component=0}}}function ob(e,t,n){return e.K===90?n&&!t.rev||!n&&t.rev?270:90:e.K===180?n&&!t.rev||!n&&t.rev?0:180:e.K===270?n&&!t.rev||!n&&t.rev?90:270:n&&!t.rev||!n&&t.rev?180:0}Kr.prototype.initializeIndices=function(){switch(this.Qk){default:case Lv:for(var e=this.network.vertexes.iterator;e.next();){var t=e.value,n=t.layer;t.index=this.tc[n],this.tc[n]++}break;case zm:for(e=this.network.vertexes.iterator,t=this.Ia;0<=t;t--)for(e.reset();e.next();)n=e.value,n.layer===t&&n.index===-1&&sb(this,n);break;case Ov:for(e=this.network.vertexes.iterator,t=0;t<=this.Ia;t++)for(e.reset();e.next();)n=e.value,n.layer===t&&n.index===-1&&ab(this,n)}};function sb(e,t){var n=t.layer;for(t.index=e.tc[n],e.tc[n]++,t=t.destinationEdgesArrayAccess,n=!0;n;){n=!1;for(var i=0;i<t.length-1;i++){var r=t[i],o=t[i+1];r.portFromColOffset>o.portFromColOffset&&(n=!0,t[i]=o,t[i+1]=r)}}for(n=0;n<t.length;n++)i=t[n],i.valid&&(i=i.toVertex,i.index===-1&&sb(e,i))}function ab(e,t){var n=t.layer;t.index=e.tc[n],e.tc[n]++,t=t.sourceEdgesArrayAccess;for(var i=!0;i;)for(i=!1,n=0;n<t.length-1;n++){var r=t[n],o=t[n+1];r.portToColOffset>o.portToColOffset&&(i=!0,t[n]=o,t[n+1]=r)}for(n=0;n<t.length;n++)i=t[n],i.valid&&(i=i.fromVertex,i.index===-1&&ab(e,i))}Kr.prototype.reduceCrossings=function(){var e=this.countCrossings(),t=_l(this),n,i;for(n=0;n<this.bj;n++){for(i=0;i<=this.Ia;i++)Dm(this,i,1),Hu(this,i,1);var r=this.countCrossings();for(r<e&&(e=r,t=_l(this)),i=this.Ia;0<=i;i--)Dm(this,i,-1),Hu(this,i,-1);r=this.countCrossings(),r<e&&(e=r,t=_l(this))}for(Du(this,t),n=0;n<this.bj;n++){for(i=0;i<=this.Ia;i++)Dm(this,i,0),Hu(this,i,0);for(r=this.countCrossings(),r<e&&(e=r,t=_l(this)),i=this.Ia;0<=i;i--)Dm(this,i,0),Hu(this,i,0);r=this.countCrossings(),r<e&&(e=r,t=_l(this))}Du(this,t);var o,s,l;switch(this.rk){case Rv:break;case Dv:for(l=e+1;(i=this.countCrossings())<l;)for(l=i,n=this.Ia;0<=n;n--)for(s=0;s<=n;s++){for(o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hu(this,i,-1)||o;for(r=this.countCrossings(),r>=e?Du(this,t):(e=r,t=_l(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hu(this,i,1)||o;for(r=this.countCrossings(),r>=e?Du(this,t):(e=r,t=_l(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hu(this,i,1)||o;for(r>=e?Du(this,t):(e=r,t=_l(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hu(this,i,-1)||o;for(r>=e?Du(this,t):(e=r,t=_l(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hu(this,i,0)||o;for(r>=e?Du(this,t):(e=r,t=_l(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hu(this,i,0)||o;r>=e?Du(this,t):(e=r,t=_l(this))}break;default:case Um:for(n=this.Ia,s=0,l=e+1;(i=this.countCrossings())<l;){for(l=i,o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hu(this,i,-1)||o;for(r=this.countCrossings(),r>=e?Du(this,t):(e=r,t=_l(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hu(this,i,1)||o;for(r=this.countCrossings(),r>=e?Du(this,t):(e=r,t=_l(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hu(this,i,1)||o;for(r>=e?Du(this,t):(e=r,t=_l(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hu(this,i,-1)||o;for(r>=e?Du(this,t):(e=r,t=_l(this)),o=!0;o;)for(o=!1,i=n;i>=s;i--)o=Hu(this,i,0)||o;for(r>=e?Du(this,t):(e=r,t=_l(this)),o=!0;o;)for(o=!1,i=s;i<=n;i++)o=Hu(this,i,0)||o;r>=e?Du(this,t):(e=r,t=_l(this))}}Du(this,t)};function Dm(e,t,n){var i=Jh(e,t),r=e.tc[t],o=J1(e,t,n),s=Cv(e,t,n);for(n=0;n<r;n++)s[n]===-1&&(s[n]=i[n].column),o[n]===-1&&(o[n]=i[n].column);for(var l=!0,u;l;)for(l=!1,n=0;n<r-1;n++)(o[n+1]<o[n]||o[n+1]===o[n]&&s[n+1]<s[n])&&(l=!0,u=o[n],o[n]=o[n+1],o[n+1]=u,u=s[n],s[n]=s[n+1],s[n+1]=u,u=i[n],i[n]=i[n+1],i[n+1]=u);for(n=o=0;n<r;n++)u=i[n],u.index=n,o+=e.nodeMinColumnSpace(u,!0),u.column=o,o+=1,o+=e.nodeMinColumnSpace(u,!1);qh(e,t,i)}function Hu(e,t,n){var i=Jh(e,t),r=e.tc[t];n=Q1(e,t,n);var o,s=[];for(o=0;o<r;o++)s[o]=-1;var l=[];for(o=0;o<r;o++)l[o]=-1;for(var u=!1,f=!0;f;)for(f=!1,o=0;o<r-1;o++){var p=n[i[o].index*r+i[o+1].index],x=n[i[o+1].index*r+i[o].index],N=0,O=0,F=i[o].column,K=i[o+1].column,ye=e.nodeMinColumnSpace(i[o],!0),ae=e.nodeMinColumnSpace(i[o],!1),Oe=e.nodeMinColumnSpace(i[o+1],!0),Fe=e.nodeMinColumnSpace(i[o+1],!1);ye=F-ye+Oe,ae=K-ae+Fe;var He=i[o].sourceEdges.iterator;for(He.reset();He.next();)if(Oe=He.value,Fe=Oe.fromVertex,Oe.valid&&Fe.layer===t){for(Oe=0;i[Oe]!==Fe;)Oe++;Oe<o&&(N+=2*(o-Oe),O+=2*(o+1-Oe)),Oe===o+1&&(N+=1),Oe>o+1&&(N+=4*(Oe-o),O+=4*(Oe-(o+1)))}for(He=i[o].destinationEdges.iterator,He.reset();He.next();)if(Oe=He.value,Fe=Oe.toVertex,Oe.valid&&Fe.layer===t){for(Oe=0;i[Oe]!==Fe;)Oe++;Oe===o+1&&(O+=1)}for(He=i[o+1].sourceEdges.iterator,He.reset();He.next();)if(Oe=He.value,Fe=Oe.fromVertex,Oe.valid&&Fe.layer===t){for(Oe=0;i[Oe]!==Fe;)Oe++;Oe<o&&(N+=2*(o+1-Oe),O+=2*(o-Oe)),Oe===o&&(O+=1),Oe>o+1&&(N+=4*(Oe-(o+1)),O+=4*(Oe-o))}for(He=i[o+1].destinationEdges.iterator,He.reset();He.next();)if(Oe=He.value,Fe=Oe.toVertex,Oe.valid&&Fe.layer===t){for(Oe=0;i[Oe]!==Fe;)Oe++;Oe===o&&(N+=1)}Oe=Fe=0,He=s[i[o].index];var qe=l[i[o].index],bt=s[i[o+1].index],jn=l[i[o+1].index];He!==-1&&(Fe+=Math.abs(He-F),Oe+=Math.abs(He-ae)),qe!==-1&&(Fe+=Math.abs(qe-F),Oe+=Math.abs(qe-ae)),bt!==-1&&(Fe+=Math.abs(bt-K),Oe+=Math.abs(bt-ye)),jn!==-1&&(Fe+=Math.abs(jn-K),Oe+=Math.abs(jn-ye)),(O<N-.5||O===N&&x<p-.5||O===N&&x===p&&Oe<Fe-.5)&&(f=u=!0,i[o].column=ae,i[o+1].column=ye,p=i[o],i[o]=i[o+1],i[o+1]=p)}for(o=0;o<r;o++)i[o].index=o;return qh(e,t,i),u}Kr.prototype.straightenAndPack=function(){if(this.ve===0){var e=(this.bg&1)!==0,t=(this.bg&ax)!==0;if(1e3<this.network.edges.count&&t&&(e=!1),e){var n=[];for(t=0;t<=this.Ia;t++)n[t]=0;for(var i,r=this.network.vertexes.iterator;r.next();){var o=r.value;t=o.layer,i=o.column,o=this.nodeMinColumnSpace(o,!1),n[t]=Math.max(n[t],i+o)}for(r.reset();r.next();)o=r.value,t=o.layer,i=o.column,o.column=(8*(this.Ra-n[t])>>1)+8*i;this.Ra*=8}if(this.bg&2)for(n=!0;n;){for(n=!1,t=this.Md+1;t<=this.Ia;t++)n=Hf(this,t,1)||n;for(t=this.Md-1;0<=t;t--)n=Hf(this,t,-1)||n;n=Hf(this,this.Md,0)||n}if(this.bg&4){for(t=this.Md+1;t<=this.Ia;t++)Av(this,t,1);for(t=this.Md-1;0<=t;t--)Av(this,t,-1);Av(this,this.Md,0)}if(e&&(lb(this,-1),lb(this,1)),this.bg&2)for(n=!0;n;){for(n=!1,n=Hf(this,this.Md,0)||n,t=this.Md+1;t<=this.Ia;t++)n=Hf(this,t,0)||n;for(t=this.Md-1;0<=t;t--)n=Hf(this,t,0)||n}}else ix(this)};function Hf(e,t,n){for(var i=!1;ex(e,t,n);)i=!0;return i}function ex(e,t,n){var i,r=Jh(e,t),o=e.tc[t],s=Cv(e,t,-1);if(0<n)for(i=0;i<o;i++)s[i]=-1;var l=Cv(e,t,1);if(0>n)for(i=0;i<o;i++)l[i]=-1;for(var u=!1,f=!0;f;)for(f=!1,i=0;i<o;i++){var p=r[i].column,x=e.nodeMinColumnSpace(r[i],!0),N=e.nodeMinColumnSpace(r[i],!1),O=0;0>i-1||p-r[i-1].column-1>x+e.nodeMinColumnSpace(r[i-1],!1)?O=p-1:O=p,x=i+1>=o||r[i+1].column-p-1>N+e.nodeMinColumnSpace(r[i+1],!0)?p+1:p;var F=N=0,K=0;if(0>=n)for(var ye=r[i].sourceEdges.iterator;ye.next();){var ae=ye.value,Oe=ae.fromVertex;if(ae.valid&&Oe.layer!==t){var Fe=wv(ae),He=ae.portFromColOffset;ae=ae.portToColOffset,Oe=Oe.column,N+=(Math.abs(p+ae-(Oe+He))+1)*Fe,F+=(Math.abs(O+ae-(Oe+He))+1)*Fe,K+=(Math.abs(x+ae-(Oe+He))+1)*Fe}}if(0<=n)for(ye=r[i].destinationEdges.iterator;ye.next();)ae=ye.value,Oe=ae.toVertex,ae.valid&&Oe.layer!==t&&(Fe=wv(ae),He=ae.portFromColOffset,ae=ae.portToColOffset,Oe=Oe.column,N+=(Math.abs(p+He-(Oe+ae))+1)*Fe,F+=(Math.abs(O+He-(Oe+ae))+1)*Fe,K+=(Math.abs(x+He-(Oe+ae))+1)*Fe);ae=He=Fe=0,ye=s[r[i].index],Oe=l[r[i].index],ye!==-1&&(Fe+=Math.abs(ye-p),He+=Math.abs(ye-O),ae+=Math.abs(ye-x)),Oe!==-1&&(Fe+=Math.abs(Oe-p),He+=Math.abs(Oe-O),ae+=Math.abs(Oe-x)),F<N||F===N&&He<Fe?(f=u=!0,r[i].column=O):(K<N||K===N&&ae<Fe)&&(f=u=!0,r[i].column=x)}return qh(e,t,r),e.normalize(),u}function Av(e,t,n){var i=Jh(e,t),r=e.tc[t],o=J1(e,t,n),s=[];for(n=0;n<r;n++)s[n]=o[n];for(o=!0;o;)for(o=!1,n=0;n<r;n++){var l=i[n].column,u=e.nodeMinColumnSpace(i[n],!0),f=e.nodeMinColumnSpace(i[n],!1),p=0;if(s[n]===-1)if(n===0&&n===r-1)p=l;else if(n===0){var x=i[n+1].column;x-l===f+e.nodeMinColumnSpace(i[n+1],!0)?p=l-1:p=l}else n===r-1?(x=i[n-1].column,p=l-x===u+e.nodeMinColumnSpace(i[n-1],!1)?l+1:l):(x=i[n-1].column,u=x+e.nodeMinColumnSpace(i[n-1],!1)+u+1,x=i[n+1].column,f=x-e.nodeMinColumnSpace(i[n+1],!0)-f-1,p=(u+f)/2|0);else n===0&&n===r-1?p=s[n]:n===0?(x=i[n+1].column,f=x-e.nodeMinColumnSpace(i[n+1],!0)-f-1,p=Math.min(s[n],f)):n===r-1?(x=i[n-1].column,u=x+e.nodeMinColumnSpace(i[n-1],!1)+u+1,p=Math.max(s[n],u)):(x=i[n-1].column,u=x+e.nodeMinColumnSpace(i[n-1],!1)+u+1,x=i[n+1].column,f=x-e.nodeMinColumnSpace(i[n+1],!0)-f-1,u<s[n]&&s[n]<f?p=s[n]:u>=s[n]?p=u:f<=s[n]&&(p=f));p!==l&&(o=!0,i[n].column=p)}qh(e,t,i),e.normalize()}function tx(e,t){for(var n=!0,i=e.network.vertexes.iterator;i.next();){var r=i.value,o=e.nodeMinColumnSpace(r,!0),s=e.nodeMinColumnSpace(r,!1);if(r.column-o<=t&&r.column+s>=t){n=!1;break}}if(e=!1,n)for(i.reset();i.next();)n=i.value,n.column>t&&(--n.column,e=!0);return e}function nx(e,t){var n=t+1,i,r=[],o=[];for(i=0;i<=e.Ia;i++)r[i]=!1,o[i]=!1;for(var s=e.network.vertexes.iterator;s.next();){i=s.value;var l=i.column-e.nodeMinColumnSpace(i,!0),u=i.column+e.nodeMinColumnSpace(i,!1);l<=t&&u>=t&&(r[i.layer]=!0),l<=n&&u>=n&&(o[i.layer]=!0)}for(l=!0,n=!1,i=0;i<=e.Ia;i++)l=l&&!(r[i]&&o[i]);if(l)for(s.reset();s.next();)e=s.value,e.column>t&&(--e.column,n=!0);return n}function lb(e,t){for(var n=0;n<=e.Ra;n++)for(;tx(e,n););for(e.normalize(),n=0;n<e.Ra;n++)for(;nx(e,n););e.normalize();var i;if(0<t)for(n=0;n<=e.Ra;n++){var r=_l(e),o=Rm(e);for(i=o+1;o<i;){i=o,ub(e,n,1);var s=Rm(e);s>o?Du(e,r):s<o&&(o=s,r=_l(e))}}if(0>t)for(n=e.Ra;0<=n;n--)for(r=_l(e),o=Rm(e),i=o+1;o<i;)i=o,ub(e,n,-1),s=Rm(e),s>o?Du(e,r):s<o&&(o=s,r=_l(e));e.normalize()}function ub(e,t,n){e.le=0;for(var i=e.network.vertexes.iterator;i.next();)i.value.component=-1;if(0<n)for(i.reset();i.next();){var r=i.value;r.column-e.nodeMinColumnSpace(r,!0)<=t&&(r.component=e.le)}if(0>n)for(i.reset();i.next();)r=i.value,r.column+e.nodeMinColumnSpace(r,!1)>=t&&(r.component=e.le);for(e.le++,i.reset();i.next();)t=i.value,t.component===-1&&(Tv(e,t,e.le,-1,!0,!0),e.le++);var o;for(t=[],o=0;o<e.le*e.le;o++)t[o]=!1;for(r=[],o=0;o<(e.Ia+1)*(e.Ra+1);o++)r[o]=-1;for(i.reset();i.next();){o=i.value;for(var s=o.layer,l=Math.max(0,o.column-e.nodeMinColumnSpace(o,!0)),u=Math.min(e.Ra,o.column+e.nodeMinColumnSpace(o,!1));l<=u;l++)r[s*(e.Ra+1)+l]=o.component}for(o=0;o<=e.Ia;o++){if(0<n)for(s=0;s<e.Ra;s++)r[o*(e.Ra+1)+s]!==-1&&r[o*(e.Ra+1)+s+1]!==-1&&r[o*(e.Ra+1)+s]!==r[o*(e.Ra+1)+s+1]&&(t[r[o*(e.Ra+1)+s]*e.le+r[o*(e.Ra+1)+s+1]]=!0);if(0>n)for(s=e.Ra;0<s;s--)r[o*(e.Ra+1)+s]!==-1&&r[o*(e.Ra+1)+s-1]!==-1&&r[o*(e.Ra+1)+s]!==r[o*(e.Ra+1)+s-1]&&(t[r[o*(e.Ra+1)+s]*e.le+r[o*(e.Ra+1)+s-1]]=!0)}for(r=[],o=0;o<e.le;o++)r[o]=!0;for(s=[],s.push(0);s.length!==0;)if(u=s[s.length-1],s.pop(),r[u])for(r[u]=!1,o=0;o<e.le;o++)t[u*e.le+o]&&s.splice(0,0,o);if(0<n)for(i.reset();i.next();)e=i.value,r[e.component]&&--e.column;if(0>n)for(i.reset();i.next();)n=i.value,r[n.component]&&(n.column+=1)}function ix(e){for(var t=jt(),n=e.fl.length,i=0;i<=n;i++)t[i]=[];for(i=e.network.vertexes.iterator;i.next();){var r=i.value;t[n-r.layer][r.index]=r}n=new Yt,rx(t,n);var o=null,s=null,l=null,u=null,f=(e.ve&1)!==0,p=(e.ve&2)!==0,x=(e.ve&4)!==0,N=(e.ve&8)!==0;for(f&&(e.verticalAlignment(t,n,!0),o=Pm(e,t,!0,!1)),t.reverse(),x&&(e.verticalAlignment(t,n,!1),l=Pm(e,t,!1,!1)),i=_i(t),r=i.next();!r.done;r=i.next())r.value.reverse();N&&(e.verticalAlignment(t,n,!1),u=Pm(e,t,!1,!0)),t.reverse(),p&&(e.verticalAlignment(t,n,!0),s=Pm(e,t,!0,!0)),gn(t),e.u(o,s,l,u),e.network.vertexes.each(function(O){var F=jt();f&&F.push(o.get(O)),p&&F.push(s.get(O)),x&&F.push(l.get(O)),N&&F.push(u.get(O)),F.sort(function(ye,ae){return ye-ae});var K=F.length;K=(F[Math.floor((K-1)/2)]+F[Math.ceil((K-1)/2)])/2,gn(F),O.zc=K})}function rx(e,t){for(var n=e.length,i=1;i<n-1;i++)for(var r=0,o=0,s=e[i],l=e[i+1],u=0;o<l.length;u++){var f=l[u];e:{if(f.node===null){var p=Pv(f);if(0<p.length){p=p[0].node===null;break e}}p=!1}var x=p;if(u===l.length-1||x){for(p=s.length-1,x&&(p=Pv(f)[0].index);o<=u;){if(f=l[o],!f.bo){x=[];for(var N=_i(f.sourceEdgesArrayAccess),O=N.next();!O.done;O=N.next())O=O.value,O.valid&&x.push(O);f.bo=x}for(f=_i(f.bo),x=f.next();!x.done;x=f.next())x=x.value,N=x.fromVertex.index,(N<r||N>p)&&t.add(x);o++}r=p}}}Kr.prototype.verticalAlignment=function(e,t,n){ox(e),e=_i(e);for(var i=e.next();!i.done;i=e.next()){var r=-1;i=_i(i.value);for(var o=i.next();!o.done;o=i.next()){o=o.value;var s=n?Pv(o):lx(o),l=s.length;if(0<l){s.sort(function(x,N){return x.vi-N.vi});var u=(l-1)/2;for(l=Math.floor(u),u=Math.ceil(u);l<=u;l++)if(o.align===o){var f=s[l],p=void 0;p=n?Hm(f,o):Hm(o,f),!t.contains(p)&&r<f.vi&&(f.align=o,o.root=f.root,o.align=f.root,r=f.vi)}}}}};function ox(e){for(var t=0;t<e.length;t++)for(var n=e[t],i=0;i<n.length;i++){var r=n[i];r.root=r,r.align=r,r.Tz=t,r.vi=i}}function Pm(e,t,n,i){for(var r=e.K===90||e.K===270,o=_i(t),s=o.next();!s.done;s=o.next()){var l=_i(s.value);for(s=l.next();!s.done;s=l.next())s=s.value,s.sd=s,s.shift=1/0,s.zc=NaN,s.qg=0}for(s=e.K===90||e.K===270,o=_i(t),l=o.next();!l.done;l=o.next()){l=_i(l.value);for(var u=l.next();!u.done;u=l.next())if(u=u.value,u.root===u){for(var f=0,p=u;p.align!==u;){var x=p.align,N=s?p.width:p.height,O=s?x.width:x.height;if(n){var F=Hm(p,x),K=F.portFromPos,ye=F.portToPos;F.link!==null&&(p.node&&p.node!==F.link.fromNode&&(K=s?p.focusX:p.focusY),x.node&&x.node!==F.link.toNode&&(ye=s?x.focusX:x.focusY))}else F=Hm(x,p),K=F.portToPos,ye=F.portFromPos,F.link!==null&&(p.node&&p.node!==F.link.toNode&&(K=s?p.focusX:p.focusY),x.node&&x.node!==F.link.fromNode&&(ye=s?x.focusX:x.focusY));N=i?p.qg+(N-K)-(O-ye):p.qg+K-ye,x.qg=N,f=Math.min(f,N),p=p.align}p=u;do p.qg=p.qg-f,p=p.align;while(p!==u)}}for(n=_i(t),s=n.next();!s.done;s=n.next())for(o=_i(s.value),s=o.next();!s.done;s=o.next())s=s.value,s.root===s&&cb(e,s,t);for(n=0;n<t.length;n++)if(!(0>=t[n].length)&&(s=t[n][0],s.sd===s)){s.sd.shift===1/0&&(s.sd.shift=0),s=n,l=0;do{for(o=t[s][l];o.align!==o.root;)o=o.align,s++,0<o.vi&&(l=hb(o,t),l.sd.shift=Math.min(l.sd.shift,o.sd.shift+o.zc+o.qg-(l.zc+l.qg+(r?l.width:l.height)+e.columnSpacing)));l=o.vi+1}while(s<t.length&&l<t[s].length&&o.sd===t[s][l].sd)}for(e=new ii,t=_i(t),s=t.next();!s.done;s=t.next())for(n=_i(s.value),s=n.next();!s.done;s=n.next())s=s.value,s.zc=s.zc+s.sd.shift+s.qg,o=r?s.width:s.height,e.add(s,i?-s.zc-o:s.zc);return e}function cb(e,t,n){if(isNaN(t.zc)){t.zc=0;var i=t;do{if(0<i.vi){var r=hb(i,n),o=r.root;cb(e,o,n),t.sd===t&&(t.sd=o.sd);var s=e.K===90||e.K===270?r.width:r.height;t.sd===o.sd&&(t.zc=Math.max(t.zc,o.zc+r.qg+s-i.qg+e.columnSpacing))}i=i.align}while(i!==t);for(;i.align!==t;)i=i.align,i.zc=t.zc,i.sd=t.sd}}function hb(e,t){var n=e.Tz;return e=e.vi,1>e&&ut("Could not determine previous vertex in layer"),t[n][e-1]}Kr.prototype.u=function(e){for(var t=[],n=0;n<arguments.length;++n)t[n]=arguments[n];n=-1;for(var i=jt(),r=jt(),o=1/0,s=0;4>s;s++)if(t[s]){var l=sx(this,t[s],i,r,s);l<o&&(n=s,o=l)}for(o={},s=0;4>s;o={delta:o.delta},s++)t[s]&&(o.delta=s===0||s===2?i[n]-i[s]:r[n]-r[s],o.delta!==0&&t[s].each(function(u){return function(f){f.value+=u.delta}}(o)));gn(i),gn(r)};function sx(e,t,n,i,r){if(!t||t.count===0)return n[r]=0,i[r]=0,1/0;var o=1/0,s=-1/0;return t.each(function(l){var u=l.key;l=l.value,u=e.K===90||e.K===270?u.width:u.height,l<o&&(o=l),l+u>s&&(s=l+u)}),n[r]=o,i[r]=s,s-o}Kr.prototype.commitLayout=function(){if(this.setsPortSpots)for(var e=Fm(this,!0),t=Fm(this,!1),n=this.network.edges.iterator;n.next();){var i=n.value.link;i!==null&&(i.fromSpot=e,i.toSpot=t)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function Fm(e,t){return e.K===270?t?Qo:fs:e.K===90?t?fs:Qo:e.K===180?t?is:rs:t?rs:is}Kr.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var e=0;e<=this.Ia;e++)this.he[e]=0,this.Ld[e]=0,this.Kd[e]=0,this.Ta[e]=0;for(e=this.network.vertexes.iterator;e.next();){var t=e.value,n=t.layer;this.he[n]=Math.max(this.he[n],this.nodeMinLayerSpace(t,!0)),this.Ld[n]=Math.max(this.Ld[n],this.nodeMinLayerSpace(t,!1))}t=0,n=this.ie;for(var i=0;i<=this.Ia;i++){var r=n;0>=this.he[i]+this.Ld[i]&&(r=0),0<i&&(t+=r/2),this.K===90||this.K===0?(t+=this.Ld[i],this.Kd[i]=t,t+=this.he[i]):(t+=this.he[i],this.Kd[i]=t,t+=this.Ld[i]),i<this.Ia&&(t+=r/2),this.Ta[i]=t}for(n=t,t=this.arrangementOrigin,i=0;i<=this.Ia;i++)this.K===270?this.Kd[i]=t.y+this.Kd[i]:this.K===90?(this.Kd[i]=t.y+n-this.Kd[i],this.Ta[i]=n-this.Ta[i]):this.K===180?this.Kd[i]=t.x+this.Kd[i]:(this.Kd[i]=t.x+n-this.Kd[i],this.Ta[i]=n-this.Ta[i]);n=this.ve!==0,e.reset(),i=this.K===270||this.K===90;for(var o=1/0,s=r=1/0,l=-1/0;e.next();){var u=e.value,f=u.layer,p=u.column|0;i?(s=t.x+this.kc*p,f=this.Kd[f]):(s=this.Kd[f],f=t.y+this.kc*p),u.centerX=s,u.centerY=f,n&&isFinite(u.zc)&&(i?u.node?u.x=t.x+u.zc:u.centerX=t.x+u.zc:u.node?u.y=t.y+u.zc:u.centerY=t.y+u.zc),o=Math.min(u.x,o),r=Math.min(u.y,r),i?(s=o,l=Math.max(l,u.bounds.right)):(s=r,l=Math.max(l,u.bounds.bottom))}for(this.xw=l-s,o=t.x-o,t=t.y-r,this.Rf=new ce(n&&i?0:o,n&&!i?0:t),e.reset();e.next();)n=e.value,n.x+=o,n.y+=t,n.commit()},Kr.prototype.Gu=function(){for(var e=0,t=this.ie,n=0;n<=this.Ia;n++)e+=this.he[n],e+=this.Ld[n];e+=this.Ia*t,t=[],n=this.ve!==0?this.xw:this.kc*this.Ra;for(var i=this.maxLayer;0<=i;i--)this.K===270?i===0?t.push(new Ht(0,0,n,Math.abs(this.Ta[0]))):t.push(new Ht(0,this.Ta[i-1],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):this.K===90?i===0?t.push(new Ht(0,this.Ta[0],n,Math.abs(this.Ta[0]-e))):t.push(new Ht(0,this.Ta[i],n,Math.abs(this.Ta[i-1]-this.Ta[i]))):this.K===180?i===0?t.push(new Ht(0,0,Math.abs(this.Ta[0]),n)):t.push(new Ht(this.Ta[i-1],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n)):i===0?t.push(new Ht(this.Ta[0],0,Math.abs(this.Ta[0]-e),n)):t.push(new Ht(this.Ta[i],0,Math.abs(this.Ta[i-1]-this.Ta[i]),n));this.commitLayers(t,this.Rf)},Kr.prototype.commitLayers=function(){},Kr.prototype.commitLinks=function(){for(var e=this.network.edges.iterator,t;e.next();)t=e.value.link,t!==null&&(t.uh(),t.Fj(),t.zf());for(e.reset();e.next();)t=e.value.link,t!==null&&t.vg();for(e.reset();e.next();){var n=e.value;if(t=n.link,t!==null){t.uh();var i=t,r=i.fromNode,o=i.toNode,s=i.fromPort,l=i.toPort;if(r!==null){var u=r.findVisibleNode();u!==null&&u!==r&&(r=u,s=u.port)}o!==null&&(u=o.findVisibleNode(),u!==null&&u!==o&&(o=u,l=u.port));var f=t.computeSpot(!0,s);u=t.computeSpot(!1,l);var p=n.fromVertex,x=n.toVertex;if(n.valid)t.curve===bu&&t.pointsCount===4&&(p.column===x.column&&this.alignOption===0?(n=t.getLinkPoint(r,s,f,!0,!1,o,l),l=t.getLinkPoint(o,l,u,!1,!1,r,s),n.w()||n.set(r.actualBounds.center),l.w()||l.set(o.actualBounds.center),t.Fj(),t.yf(n.x,n.y),t.yf((2*n.x+l.x)/3,(2*n.y+l.y)/3),t.yf((n.x+2*l.x)/3,(n.y+2*l.y)/3),t.yf(l.x,l.y)):(n=i=!1,s!==null&&f===Di&&(i=!0),l!==null&&u===Di&&(n=!0),(i||n)&&(u=null,i&&(u=t.getLinkPointFromPoint(r,s,s.ga(vr),t.i(3),!0),u.w()||u.set(r.actualBounds.center),t.L(0,u.x,u.y)),r=null,n&&(r=t.getLinkPointFromPoint(o,l,l.ga(vr),t.i(0),!1),r.w()||r.set(o.actualBounds.center),t.L(3,r.x,r.y)),u&&(o=t.i(2),t.L(1,(2*u.x+o.x)/3,(2*u.y+o.y)/3)),r&&(o=t.i(1),t.L(2,(2*r.x+o.x)/3,(2*r.y+o.y)/3))))),t.zf();else if(p.layer===x.layer)t.zf();else{var N=!1,O=!1,F=this.ie,K=t.firstPickIndex+1;if(t.isOrthogonal){O=!0;var ye=t.pointsCount;4<ye&&t.points.removeRange(2,ye-3)}else if(t.curve===bu)N=!0,ye=t.pointsCount,4<ye&&t.points.removeRange(2,ye-3),ye===4&&(K=2);else{ye=t.pointsCount;var ae=f===Di,Oe=u===Di;2<ye&&ae&&Oe?t.points.removeRange(1,ye-2):3<ye&&ae&&!Oe?t.points.removeRange(1,ye-3):3<ye&&!ae&&Oe?t.points.removeRange(2,ye-2):4<ye&&!ae&&!Oe&&t.points.removeRange(2,ye-3)}if(n.rev){for(;x!==null&&p!==x;){var Fe=ye=null;for(ae=x.sourceEdges.iterator;ae.next()&&(Oe=ae.value,Oe.link!==n.link||(ye=Oe.fromVertex,Fe=Oe.toVertex,ye.node!==null)););if(ye===null)break;if(ye!==p){ae=t.i(K-1).x,Oe=t.i(K-1).y;var He=ye.centerX,qe=ye.centerY;if(O)this.K===180||this.K===0?K===t.firstPickIndex+1?(t.m(K++,ae,Oe),t.m(K++,ae,qe)):(Fe!==null?Fe.centerY:Oe)!==qe&&(Fe=this.Ta[ye.layer-1]+this.Rf.x,t.m(K++,Fe,Oe),t.m(K++,Fe,qe)):K===t.firstPickIndex+1?(t.m(K++,ae,Oe),t.m(K++,He,Oe)):(Fe!==null?Fe.centerX:ae)!==He&&(Fe=this.Ta[ye.layer-1]+this.Rf.y,t.m(K++,ae,Fe),t.m(K++,He,Fe));else if(K===t.firstPickIndex+1){Fe=Math.max(10,this.he[x.layer]);var bt=Math.max(10,this.Ld[x.layer]);if(N)this.K===180?He<=x.bounds.x?(x=x.bounds.x,t.m(K++,x-Fe,qe),t.m(K++,x,qe),t.m(K++,x+bt,qe)):(t.m(K++,He-Fe,qe),t.m(K++,He,qe),t.m(K++,He+bt,qe)):this.K===90?qe>=x.bounds.bottom?(x=x.bounds.y+x.bounds.height,t.m(K++,He,x+bt),t.m(K++,He,x),t.m(K++,He,x-Fe)):(t.m(K++,He,qe+bt),t.m(K++,He,qe),t.m(K++,He,qe-Fe)):this.K===270?qe<=x.bounds.y?(x=x.bounds.y,t.m(K++,He,x-Fe),t.m(K++,He,x),t.m(K++,He,x+bt)):(t.m(K++,He,qe-Fe),t.m(K++,He,qe),t.m(K++,He,qe+bt)):this.K===0&&(He>=x.bounds.right?(x=x.bounds.x+x.bounds.width,t.m(K++,x+bt,qe),t.m(K++,x,qe),t.m(K++,x-Fe,qe)):(t.m(K++,He+bt,qe),t.m(K++,He,qe),t.m(K++,He-Fe,qe)));else{t.m(K++,ae,Oe);var jn=0;this.K===180||this.K===0?((this.K===180?He>=x.bounds.right:He<=x.bounds.x)&&(jn=(this.K===0?-Fe:bt)/2),t.m(K++,ae+jn,qe)):((this.K===270?qe>=x.bounds.bottom:qe<=x.bounds.y)&&(jn=(this.K===90?-Fe:bt)/2),t.m(K++,He,Oe+jn)),t.m(K++,He,qe)}}else Fe=Math.max(10,this.he[ye.layer]),bt=Math.max(10,this.Ld[ye.layer]),N?this.K===180?(t.m(K++,He-Fe-F,qe),t.m(K++,Math.min(He-Fe+F/2,He),qe),t.m(K++,He,qe),t.m(K++,He,qe),t.m(K++,Math.max(He+bt-F/2,He),qe),t.m(K++,He+bt+F,qe)):this.K===90?(t.m(K++,He,qe+bt+F),t.m(K++,He,Math.max(qe+bt-F/2,qe)),t.m(K++,He,qe),t.m(K++,He,qe),t.m(K++,He,Math.min(qe-Fe+F/2,qe)),t.m(K++,He,qe-Fe-F)):this.K===270?(t.m(K++,He,qe-Fe-F),t.m(K++,He,Math.min(qe-Fe+F/2,qe)),t.m(K++,He,qe),t.m(K++,He,qe),t.m(K++,He,Math.max(qe+bt-F/2,qe)),t.m(K++,He,qe+bt+F)):(t.m(K++,He+bt+F,qe),t.m(K++,Math.max(He+bt-F/2,He),qe),t.m(K++,He,qe),t.m(K++,He,qe),t.m(K++,Math.min(He-Fe+F/2,He),qe),t.m(K++,He-Fe-F,qe)):t.m(K++,He,qe)}x=ye}(l===null||f!==Di||O)&&(ae=t.i(K-1).x,Oe=t.i(K-1).y,He=t.i(K).x,qe=t.i(K).y,O?(F=this.Ld[p.layer],this.K===180||this.K===0?(O=Oe,O>=p.bounds.y&&O<=p.bounds.bottom&&(this.K===180?He>=p.bounds.x:He<=p.bounds.right)&&(x=p.centerX+(this.K===180?-F:F),O<p.bounds.y+p.bounds.height/2?O=p.bounds.y-this.kc/2:O=p.bounds.bottom+this.kc/2,t.m(K++,x,Oe),t.m(K++,x,O)),t.m(K++,He,O)):(O=ae,O>=p.bounds.x&&O<=p.bounds.right&&(this.K===270?qe>=p.bounds.y:qe<=p.bounds.bottom)&&(x=p.centerY+(this.K===270?-F:F),O<p.bounds.x+p.bounds.width/2?O=p.bounds.x-this.kc/2:O=p.bounds.right+this.kc/2,t.m(K++,ae,x),t.m(K++,O,x)),t.m(K++,O,qe)),t.m(K++,He,qe)):N?(Fe=Math.max(10,this.he[p.layer]),bt=Math.max(10,this.Ld[p.layer]),this.K===180&&He>=p.bounds.x?(x=p.bounds.x+p.bounds.width,t.L(K-2,x,Oe),t.L(K-1,x+bt,Oe)):this.K===90&&qe<=p.bounds.bottom?(x=p.bounds.y,t.L(K-2,ae,x),t.L(K-1,ae,x-Fe)):this.K===270&&qe>=p.bounds.y?(x=p.bounds.y+p.bounds.height,t.L(K-2,ae,x),t.L(K-1,ae,x+bt)):this.K===0&&He<=p.bounds.right&&(x=p.bounds.x,t.L(K-2,x,Oe),t.L(K-1,x-Fe,Oe))):(Fe=Math.max(10,this.he[p.layer]),bt=Math.max(10,this.Ld[p.layer]),O=0,this.K===180||this.K===0?((this.K===180?He<=p.bounds.x:He>=p.bounds.right)&&(O=(this.K===0?bt:-Fe)/2),t.m(K++,He+O,Oe)):((this.K===270?qe<=p.bounds.y:qe>=p.bounds.bottom)&&(O=(this.K===90?bt:-Fe)/2),t.m(K++,ae,qe+O)),t.m(K++,He,qe)))}else{for(;p!==null&&p!==x;){for(Fe=ye=null,p=p.destinationEdges.iterator;p.next()&&(ae=p.value,ae.link!==n.link||(ye=ae.toVertex,Fe=ae.fromVertex,Fe.node!==null&&(Fe=null),ye.node!==null)););if(ye===null)break;ye!==x&&(ae=t.i(K-1).x,Oe=t.i(K-1).y,He=ye.centerX,qe=ye.centerY,O?this.K===180||this.K===0?(Fe!==null?Fe.centerY:Oe)!==qe&&(Fe=this.Ta[ye.layer]+this.Rf.x,K===t.firstPickIndex+1&&(Fe=this.K===0?Math.max(Fe,ae):Math.min(Fe,ae)),t.m(K++,Fe,Oe),t.m(K++,Fe,qe)):(Fe!==null?Fe.centerX:ae)!==He&&(Fe=this.Ta[ye.layer]+this.Rf.y,K===t.firstPickIndex+1&&(Fe=this.K===90?Math.max(Fe,Oe):Math.min(Fe,Oe)),t.m(K++,ae,Fe),t.m(K++,He,Fe)):(Fe=Math.max(10,this.he[ye.layer]),bt=Math.max(10,this.Ld[ye.layer]),N?this.K===180?(t.m(K++,He+bt+F,qe),t.m(K++,Math.max(He+bt-F/2,He),qe),t.m(K++,He,qe),t.m(K++,He,qe),t.m(K++,Math.min(He-Fe+F/2,He),qe),t.m(K++,He-Fe-F,qe)):this.K===90?(t.m(K++,He,qe-Fe-F),t.m(K++,He,Math.min(qe-Fe+F/2,qe)),t.m(K++,He,qe),t.m(K++,He,qe),t.m(K++,He,Math.max(qe+bt-F/2,qe)),t.m(K++,He,qe+bt+F)):this.K===270?(t.m(K++,He,qe+bt+F),t.m(K++,He,Math.max(qe+bt-F/2,qe)),t.m(K++,He,qe),t.m(K++,He,qe),t.m(K++,He,Math.min(qe-Fe+F/2,qe)),t.m(K++,He,qe-Fe-F)):(t.m(K++,He-Fe-F,qe),t.m(K++,Math.min(He-Fe+F/2,He),qe),t.m(K++,He,qe),t.m(K++,He,qe),t.m(K++,Math.max(He+bt-F/2,He),qe),t.m(K++,He+bt+F,qe)):this.K===180?(t.m(K++,He+bt,qe),t.m(K++,He-Fe,qe)):this.K===90?(t.m(K++,He,qe-Fe),t.m(K++,He,qe+bt)):this.K===270?(t.m(K++,He,qe+bt),t.m(K++,He,qe-Fe)):(t.m(K++,He-Fe,qe),t.m(K++,He+bt,qe)))),p=ye}O&&(ae=t.i(K-1).x,Oe=t.i(K-1).y,He=t.i(K).x,qe=t.i(K).y,this.K===180||this.K===0?Oe!==qe&&(Fe=this.K===0?Math.min(Math.max((He+ae)/2,this.Ta[x.layer]+this.Rf.x),He):Math.max(Math.min((He+ae)/2,this.Ta[x.layer]+this.Rf.x),He),t.m(K++,Fe,Oe),t.m(K++,Fe,qe)):ae!==He&&(Fe=this.K===90?Math.min(Math.max((qe+Oe)/2,this.Ta[x.layer]+this.Rf.y),qe):Math.max(Math.min((qe+Oe)/2,this.Ta[x.layer]+this.Rf.y),qe),t.m(K++,ae,Fe),t.m(K++,He,Fe)))}i!==null&&N&&4<=t.pointsCount&&(s!==null&&(s=f===Di?t.getLinkPointFromPoint(r,s,s.ga(vr),t.i(3),!0):t.i(0),f===Di&&(f=t.i(2),i=t.i(3),this.direction===90||this.direction===270?(t.L(1,(s.x+f.x)/2,f.y),t.L(2,i.x,(f.y+i.y)/2)):(t.L(1,f.x,(s.y+f.y)/2),t.L(2,(f.x+i.x)/2,i.y))),s.w()||s.set(r.actualBounds.center),t.L(0,s.x,s.y)),l!==null&&(r=u===Di?t.getLinkPointFromPoint(o,l,l.ga(vr),t.i(t.pointsCount-4),!1):t.i(t.pointsCount-1),u===Di&&(l=t.i(t.pointsCount-3),u=t.i(t.pointsCount-4),this.direction===90||this.direction===270?(t.L(t.pointsCount-2,(r.x+l.x)/2,l.y),t.L(t.pointsCount-2,u.x,(l.y+u.y)/2)):(t.L(t.pointsCount-2,l.x,(r.y+l.y)/2),t.L(t.pointsCount-3,(l.x+u.x)/2,u.y))),r.w()||r.set(o.actualBounds.center),t.L(t.pointsCount-1,r.x,r.y))),t.zf(),n.commit()}}}this.avoidOrthogonalOverlaps()},Kr.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var e=new Xt,t=this.network.edges.iterator;t.next();){var n=t.value.link;n!==null&&n.isOrthogonal&&!e.contains(n)&&e.add(n)}if(0<e.count)if(this.K===90||this.K===270){for(t=0,n=[],e=e.iterator;e.next();){var i=e.value;if(i!==null&&i.isOrthogonal)for(var r=2;r<i.pointsCount-3;r++){var o=i.i(r),s=i.i(r+1);if(this.B(o.y,s.y)&&!this.B(o.x,s.x)){var l=new ed;l.layer=Math.floor(o.y/2);var u=i.i(0),f=i.i(i.pointsCount-1);if(l.first=u.x*u.x+u.y,l.jc=f.x*f.x+f.y,l.rd=Math.min(o.x,s.x),l.Ic=Math.max(o.x,s.x),l.index=r,l.link=i,r+2<i.pointsCount){u=i.i(r-1),f=i.i(r+2);var p=0;u.y<o.y?p=f.y<o.y?3:o.x<s.x?2:1:u.y>o.y&&(p=f.y>o.y?0:s.x<o.x?2:1),l.j=p}n.push(l)}}}if(1<n.length)for(n.sort(this.Vx),e=0;e<n.length;){for(o=n[e].layer,i=e+1;i<n.length&&n[i].layer===o;)i++;if(1<i-e)for(o=e;o<i;){for(s=n[o].Ic,r=e+1;r<i&&n[r].rd<s;)s=Math.max(s,n[r].Ic),r++;if(s=r-o,1<s){for(this.zi(n,this.Js,o,o+s),p=1,l=n[o].jc,u=o;u<r;u++)f=n[u],f.jc!==l&&(p++,l=f.jc);this.zi(n,this.Ux,o,o+s);var x=1;for(l=n[o].first,u=o;u<r;u++)f=n[u],f.first!==l&&(x++,l=f.first);for(u=!0,f=x,p<x?(u=!1,f=p,l=n[o].jc,this.zi(n,this.Js,o,o+s)):l=n[o].first,p=0,x=o;x<r;x++){var N=n[x];(u?N.first:N.jc)!==l&&(p++,l=u?N.first:N.jc);var O=N.link;o=O.i(N.index),s=O.i(N.index+1);var F=this.linkSpacing*(p-(f-1)/2);t++,O.uh(),O.L(N.index,o.x,o.y+F),O.L(N.index+1,s.x,s.y+F),O.zf()}}o=r}e=i}}else{for(t=0,n=[],e=e.iterator;e.next();)if(i=e.value,i!==null&&i.isOrthogonal)for(r=2;r<i.pointsCount-3;r++)o=i.i(r),s=i.i(r+1),this.B(o.x,s.x)&&!this.B(o.y,s.y)&&(l=new ed,l.layer=Math.floor(o.x/2),u=i.i(0),f=i.i(i.pointsCount-1),l.first=u.x+u.y*u.y,l.jc=f.x+f.y*f.y,l.rd=Math.min(o.y,s.y),l.Ic=Math.max(o.y,s.y),l.index=r,l.link=i,r+2<i.pointsCount&&(u=i.i(r-1),f=i.i(r+2),p=0,u.x<o.x?p=f.x<o.x?3:o.y<s.y?2:1:u.x>o.x&&(p=f.x>o.x?0:s.y<o.y?2:1),l.j=p),n.push(l));if(1<n.length)for(n.sort(this.Vx),e=0;e<n.length;){for(o=n[e].layer,i=e+1;i<n.length&&n[i].layer===o;)i++;if(1<i-e)for(o=e;o<i;){for(s=n[o].Ic,r=e+1;r<i&&n[r].rd<s;)s=Math.max(s,n[r].Ic),r++;if(s=r-o,1<s){for(this.zi(n,this.Js,o,o+s),p=1,l=n[o].jc,u=o;u<r;u++)f=n[u],f.jc!==l&&(p++,l=f.jc);for(this.zi(n,this.Ux,o,o+s),x=1,l=n[o].first,u=o;u<r;u++)f=n[u],f.first!==l&&(x++,l=f.first);for(u=!0,f=x,p<x?(u=!1,f=p,l=n[o].jc,this.zi(n,this.Js,o,o+s)):l=n[o].first,p=0,x=o;x<r;x++)N=n[x],(u?N.first:N.jc)!==l&&(p++,l=u?N.first:N.jc),O=N.link,o=O.i(N.index),s=O.i(N.index+1),F=this.linkSpacing*(p-(f-1)/2),t++,O.uh(),O.L(N.index,o.x+F,o.y),O.L(N.index+1,s.x+F,s.y),O.zf()}o=r}e=i}}}},_=Kr.prototype,_.Vx=function(e,t){return e instanceof ed&&t instanceof ed&&e!==t?e.layer<t.layer?-1:e.layer>t.layer?1:e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},_.Ux=function(e,t){return e instanceof ed&&t instanceof ed&&e!==t?e.first<t.first?-1:e.first>t.first||e.j<t.j?1:e.j>t.j||e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},_.Js=function(e,t){return e instanceof ed&&t instanceof ed&&e!==t?e.jc<t.jc?-1:e.jc>t.jc||e.j<t.j?1:e.j>t.j||e.rd<t.rd?-1:e.rd>t.rd?1:e.Ic<t.Ic?-1:e.Ic>t.Ic?1:0:0},_.B=function(e,t){return e-=t,-1<e&&1>e},_.zi=function(e,t,n,i){var r=e.length,o=i-n;if(!(1>=o))if((0>n||n>=r-1)&&ut("not in range 0 <= from < length: "+n),o===2)i=e[n],r=e[n+1],0<t(i,r)&&(e[n]=r,e[n+1]=i);else if(n===0)if(i>=r)e.sort(t);else for(n=e.slice(0,i),n.sort(t),t=0;t<i;t++)e[t]=n[t];else if(i>=r)for(i=e.slice(n),i.sort(t),t=n;t<r;t++)e[t]=i[t-n];else for(r=e.slice(n,i),r.sort(t),t=n;t<i;t++)e[t]=r[t-n]};function Jh(e,t){var n=e.tc[t];if(n>=e.He.length){for(var i=[],r=0;r<e.He.length;r++)i[r]=e.He[r];e.He=i}for(e.He[n]===void 0||e.He[n]===null?i=[]:(i=e.He[n],e.He[n]=null),e=e.fl[t],t=0;t<e.length;t++)n=e[t],i[n.index]=n;return i}function qh(e,t,n){e.He[e.tc[t]]=n}at.Object.defineProperties(Kr.prototype,{layerSpacing:{get:function(){return this.ie},set:function(e){this.ie!==e&&0<=e&&(this.ie=e,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(e){this.kc!==e&&0<e&&(this.kc=e,this.C())}},direction:{get:function(){return this.K},set:function(e){this.K!==e&&(e===0||e===90||e===180||e===270?(this.K=e,this.C()):ut("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(e){this.Dk===e||e!==kv&&e!==Bm&&e!==Qp||(this.Dk=e,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(e){this.Zk===e||e!==_m&&e!==Iv&&e!==Mv||(this.Zk=e,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(e){this.Qk===e||e!==zm&&e!==Ov&&e!==Lv||(this.Qk=e,this.C())}},iterations:{get:function(){return this.bj},set:function(e){this.bj!==e&&0<=e&&(this.bj=e,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(e){this.rk===e||e!==Rv&&e!==Um&&e!==Dv||(this.rk=e,this.C())}},packOption:{get:function(){return this.bg},set:function(e){this.bg!==e&&0<=e&&8>e&&(this.bg=e,this.C())}},alignOption:{get:function(){return this.ve},set:function(e){this.ve!==e&&0<=e&&16>e&&(this.ve=e,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(e){this.sf!==e&&(this.sf=e,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(e){this.Cn!==e&&0<=e&&(this.Cn=e,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 Bm=new qt(Kr,"CycleDepthFirst",0),kv=new qt(Kr,"CycleGreedy",1),Qp=new qt(Kr,"CycleFromLayers",2),_m=new qt(Kr,"LayerOptimalLinkLength",0),Iv=new qt(Kr,"LayerLongestPathSink",1),Mv=new qt(Kr,"LayerLongestPathSource",2),zm=new qt(Kr,"InitDepthFirstOut",0),Ov=new qt(Kr,"InitDepthFirstIn",1),Lv=new qt(Kr,"InitNaive",2),Rv=new qt(Kr,"AggressiveNone",0),Um=new qt(Kr,"AggressiveLess",1),Dv=new qt(Kr,"AggressiveMore",2),ax=8;Kr.className="LayeredDigraphLayout",Kr.CycleDepthFirst=Bm,Kr.CycleGreedy=kv,Kr.CycleFromLayers=Qp,Kr.LayerOptimalLinkLength=_m,Kr.LayerLongestPathSink=Iv,Kr.LayerLongestPathSource=Mv,Kr.InitDepthFirstOut=zm,Kr.InitDepthFirstIn=Ov,Kr.InitNaive=Lv,Kr.AggressiveNone=Rv,Kr.AggressiveLess=Um,Kr.AggressiveMore=Dv,Kr.PackNone=0,Kr.PackExpand=1,Kr.PackStraighten=2,Kr.PackMedian=4,Kr.PackAll=15,Kr.AlignNone=0,Kr.AlignUpperLeft=1,Kr.AlignUpperRight=2,Kr.AlignLowerLeft=4,Kr.AlignLowerRight=8,Kr.AlignAll=15;function ed(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}ed.className="SegInfo";function $f(e){yo.call(this,e)}fi($f,yo),$f.prototype.createVertex=function(){return new Pu(this)},$f.prototype.createEdge=function(){return new Jp(this)},$f.className="LayeredDigraphNetwork";function Pu(e){Ws.call(this,e),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}fi(Pu,Ws);function db(e,t){return e.index-t.index}function Hm(e,t){if(!e.$n){for(var n=[],i=_i(e.destinationEdgesArrayAccess),r=i.next();!r.done;r=i.next())r=r.value,r.valid&&n.push(r);e.$n=n}for(e=_i(e.$n),n=e.next();!n.done;n=e.next())if(n=n.value,n.toVertex===t)return n;ut("Unable to find destination edge to given vertex")}function Pv(e){if(!e.co){for(var t=[],n=_i(e.sourceEdgesArrayAccess),i=n.next();!i.done;i=n.next())i=i.value,i.valid&&t.push(i.fromVertex);t.sort(db),e.co=t}return e.co}function lx(e){if(!e.ao){for(var t=[],n=_i(e.destinationEdgesArrayAccess),i=n.next();!i.done;i=n.next())i=i.value,i.valid&&t.push(i.toVertex);t.sort(db),e.ao=t}return e.ao}Pu.prototype.Cl=function(e){Ws.prototype.Cl.call(this,e),this.bo=this.co=null},Pu.prototype.Kl=function(e){Ws.prototype.Kl.call(this,e),this.bo=this.co=null},Pu.prototype.zl=function(e){Ws.prototype.zl.call(this,e),this.$n=this.ao=null},Pu.prototype.Jl=function(e){Ws.prototype.Jl.call(this,e),this.$n=this.ao=null},at.Object.defineProperties(Pu.prototype,{layer:{get:function(){return this.Ig},set:function(e){this.Ig!==e&&(this.Ig=e)}},column:{get:function(){return this.Ag},set:function(e){this.Ag!==e&&(this.Ag=e)}},index:{get:function(){return this.Za},set:function(e){this.Za!==e&&(this.Za=e)}},component:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},near:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),Pu.prototype.deleteDestinationEdge=Pu.prototype.Jl,Pu.prototype.addDestinationEdge=Pu.prototype.zl,Pu.prototype.deleteSourceEdge=Pu.prototype.Kl,Pu.prototype.addSourceEdge=Pu.prototype.Cl,Pu.className="LayeredDigraphVertex";function Jp(e){iu.call(this,e),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}fi(Jp,iu),at.Object.defineProperties(Jp.prototype,{fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}},valid:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},rev:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},forest:{get:function(){return this.j},set:function(e){this.j!==e&&(this.j=e)}},portFromPos:{get:function(){return this.u},set:function(e){this.u!==e&&(this.u=e)}},portToPos:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},portFromColOffset:{get:function(){return this.o},set:function(e){this.o!==e&&(this.o=e)}},portToColOffset:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}}}),Jp.className="LayeredDigraphEdge";function pr(e){Do.call(this),this.Ub=new Yt,this.Wn=Wm,this.ud=jc,this.vo=Km,this.Bq=Vv,this.$v=[],this.td=!0,this.Rb=Ym,this.$d=new mi(10,10).freeze();var t=new qd(this);this.W=new $u(t),this.Y=new $u(t),this.ru=[],e&&Object.assign(this,e)}fi(pr,Do),pr.prototype.cloneProtected=function(e){Do.prototype.cloneProtected.call(this,e),e.Wn=this.Wn,e.vo=this.vo,e.Bq=this.Bq,e.td=this.td,e.Rb=this.Rb,e.$d.assign(this.$d),e.W.copyInheritedPropertiesFrom(this.W),e.Y.copyInheritedPropertiesFrom(this.Y)},pr.prototype.qb=function(e){e.classType===pr?e.name.indexOf("Alignment")===0?this.alignment=e:e.name.indexOf("Arrangement")===0?this.arrangement=e:e.name.indexOf("Compaction")===0?this.compaction=e:e.name.indexOf("Path")===0?this.path=e:e.name.indexOf("Sorting")===0?this.sorting=e:e.name.indexOf("Style")===0?this.treeStyle=e:ut("Unknown enum value: "+e):Do.prototype.qb.call(this,e)},pr.prototype.createNetwork=function(){return new qd(this)},pr.prototype.makeNetwork=function(e){function t(i){if(i instanceof Vn)return!i.isLinkLabel&&i.category!=="Comment";if(i instanceof kn){var r=i.fromNode;return r===null||r.isLinkLabel||r.category==="Comment"?!1:(i=i.toNode,!(i===null||i.isLinkLabel||i.category==="Comment"))}return!1}var n=this.createNetwork();return e instanceof Z?(n.lg(e.nodes,!0,t),n.lg(e.links,!0,t)):e instanceof Xi?n.lg(e.memberParts,!1,t):n.lg(e.iterator,!1,t),n},pr.prototype.doLayout=function(e){this.network===null&&(this.network=this.makeNetwork(e)),this.arrangement!==Zm&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var t=this.diagram;if(t===null&&e instanceof Z&&(t=e),this.path===Wm&&t!==null?this.ud=t.isTreePathToChildren?jc:Qd:this.ud=this.path===Wm?jc:this.path,0<this.network.vertexes.count){for(this.network.Ko(),e=this.network.vertexes.iterator;e.next();)t=e.value,t.initialized=!1,t.level=0,t.parent=null,t.children=[];if(0<this.Ub.count){for(e=new Yt,t=this.Ub.iterator;t.next();){var n=t.value;n instanceof Vn?(n=this.network.ki(n),n!==null&&e.add(n)):n instanceof $u&&e.add(n)}this.Ub=e}for(this.Ub.count===0&&this.findRoots(),e=this.Ub.copy().iterator;e.next();)t=e.value,t.initialized||(t.initialized=!0,Fv(this,t));for(t=this.network.vertexes,e=null;e=ux(t),0<e.count;)t=fb(this,e),t!==null&&this.Ub.add(t),t.initialized=!0,Fv(this,t),t=e;for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof $u&&mb(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof $u&&gb(this,t);for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof $u&&vb(this,t);if(this.Cu(),this.layerStyle===Xm){for(e=[],t=this.network.vertexes.iterator;t.next();){n=t.value;var i=n.parent;i===null&&(i=n),i=i.angle===0||i.angle===180;var r=e[n.level];r===void 0&&(r=0),e[n.level]=Math.max(r,i?n.width:n.height)}for(t=0;t<e.length;t++)e[t]===void 0&&(e[t]=0);for(this.$v=e,t=this.network.vertexes.iterator;t.next();)n=t.value,i=n.parent,i===null&&(i=n),i.angle===0||i.angle===180?(i.angle===180&&(n.focusX+=e[n.level]-n.width),n.width=e[n.level]):(i.angle===270&&(n.focusY+=e[n.level]-n.height),n.height=e[n.level])}else if(this.layerStyle===Kv)for(e=this.network.vertexes.iterator;e.next();){for(t=e.value,n=t.angle===0||t.angle===180,i=-1,r=0;r<t.children.length;r++){var o=t.children[r];i=Math.max(i,n?o.width:o.height)}if(0<=i)for(r=0;r<t.children.length;r++)o=t.children[r],n?(t.angle===180&&(o.focusX+=i-o.width),o.width=i):(t.angle===270&&(o.focusY+=i-o.height),o.height=i)}for(e=this.Ub.iterator;e.next();)t=e.value,t instanceof $u&&this.layoutTree(t);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new Yt,this.isValidLayout=!0};function ux(e){var t=new Yt;for(e=e.iterator;e.next();){var n=e.value;n.initialized||t.add(n)}return t}pr.prototype.findRoots=function(){for(var e=this.network.vertexes,t=e.iterator;t.next();){var n=t.value;switch(this.ud){case jc:n.sourceEdges.count===0&&this.Ub.add(n);break;case Qd:n.destinationEdges.count===0&&this.Ub.add(n);break;default:ut("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(e=fb(this,e),e!==null&&this.Ub.add(e))};function fb(e,t){var n=999999,i=null;for(t=t.iterator;t.next();){var r=t.value;switch(e.ud){case jc:r.sourceEdges.count<n&&(n=r.sourceEdges.count,i=r);break;case Qd:r.destinationEdges.count<n&&(n=r.destinationEdges.count,i=r);break;default:ut("Unhandled path value "+e.ud.toString())}}return i}function Fv(e,t){if(t!==null){switch(e.ud){case jc:if(0<t.destinationEdges.count){for(var n=new Xt,i=t.destinationVertexes;i.next();){var r=i.value;pb(e,t,r)&&n.add(r)}0<n.count&&(t.children=n.Fa())}break;case Qd:if(0<t.sourceEdges.count){for(n=new Xt,i=t.sourceVertexes;i.next();)r=i.value,pb(e,t,r)&&n.add(r);0<n.count&&(t.children=n.Fa())}break;default:ut("Unhandled path value"+e.ud.toString())}for(n=t.children,i=n.length,r=0;r<i;r++){var o=n[r];o.initialized=!0,o.level=t.level+1,o.parent=t,e.Ub.remove(o)}for(t=0;t<i;t++)Fv(e,n[t])}}function pb(e,t,n){if(n.initialized){if(t===null)var i=!1;else{for(i=t.parent;i!==null&&i!==n;)i=i.parent;i=i===n}if(i||n.level>t.level)return!1;e.removeChild(n.parent,n)}return!0}pr.prototype.removeChild=function(e,t){if(e!==null&&t!==null){for(var n=e.children,i=0,r=0;r<n.length;r++)n[r]===t&&i++;if(0<i){i=Array(n.length-i);for(var o=r=0;o<n.length;o++)n[o]!==t&&(i[r++]=n[o]);e.children=i}}};function mb(e,t){if(t!==null){e.initializeTreeVertexValues(t),t.alignment===Vc&&e.sortTreeVertexChildren(t);for(var n=0,i=t.childrenCount,r=0,o=t.children,s=o.length,l=0;l<s;l++){var u=o[l];mb(e,u),n+=u.descendantCount+1,i=Math.max(i,u.maxChildrenCount),r=Math.max(r,u.maxGenerationCount)}t.descendantCount=n,t.maxChildrenCount=i,t.maxGenerationCount=0<i?r+1:0}}function cx(e,t){switch(e.vo){default:case Km:return t.parent!==null?t.parent:e.W;case Gv:return t.parent===null?e.W:t.parent.parent===null?e.Y:t.parent;case jv:return t.parent!==null?t.parent.parent!==null?t.parent.parent:e.Y:e.W;case $v:var n=!0;if(t.childrenCount===0)n=!1;else for(var i=t.children,r=i.length,o=0;o<r;o++)if(0<i[o].childrenCount){n=!1;break}return n&&t.parent!==null?e.Y:t.parent!==null?t.parent:e.W}}pr.prototype.initializeTreeVertexValues=function(e){if(e.copyInheritedPropertiesFrom(cx(this,e)),e.parent!==null&&e.parent.alignment===Vc){for(var t=e.angle,n=e.parent.children,i=0;i<n.length&&e!==n[i];)i++;i%2===0?i!==n.length-1&&(t=t===90?180:t===180?270:t===270?180:270):t=t===90?0:t===180?90:t===270?0:90,e.angle=t}e.initialized=!0};function gb(e,t){if(t!==null){e.assignTreeVertexValues(t),t=t.children;for(var n=t.length,i=0;i<n;i++)gb(e,t[i])}}pr.prototype.assignTreeVertexValues=function(){};function vb(e,t){if(t!==null){t.alignment!==Vc&&e.sortTreeVertexChildren(t),t=t.children;for(var n=t.length,i=0;i<n;i++)vb(e,t[i])}}pr.prototype.sortTreeVertexChildren=function(e){switch(e.sorting){case jf:break;case e0:e.children.reverse();break;case t0:e.children.sort(e.comparer);break;case n0:e.children.sort(e.comparer),e.children.reverse();break;default:ut("Unhandled sorting value "+e.sorting.toString())}},pr.prototype.Cu=function(){if(this.comments)for(var e=this.network.vertexes.iterator;e.next();)this.addComments(e.value)},pr.prototype.addComments=function(e){var t=e.angle,n=e.parent,i=0,r=!1;n!==null&&(i=n.angle,r=n.alignment,r=td(r)),t=t===90||t===270,i=i===90||i===270,n=e.childrenCount===0;var o=0,s=0,l=0,u=e.commentSpacing;if(e.node!==null)for(var f=e.node.Mu();f.next();){var p=f.value;p.category==="Comment"&&p.canLayout()&&(e.comments===null&&(e.comments=[]),e.comments.push(p),p.Va(),p=p.measuredBounds,t&&!n||!r&&!i&&n||r&&i&&n?(o=Math.max(o,p.width),s+=p.height+Math.abs(l)):(o+=p.width+Math.abs(l),s=Math.max(s,p.height)),l=u)}e.comments!==null&&(t&&!n||!r&&!i&&n||r&&i&&n?(o+=Math.abs(e.commentMargin),s=Math.max(0,s-e.height)):(s+=Math.abs(e.commentMargin),o=Math.max(0,o-e.width)),r=Ht.allocAt(0,0,e.bounds.width+o,e.bounds.height+s),e.bounds=r,Ht.free(r))};function td(e){return e===Nh||e===Vc||e===Ah||e===ih}function qp(e){return e===Nh||e===Vc}function Bv(e){var t=e.parent;if(t!==null){var n=t.alignment;if(td(n)){if(qp(n)){for(t=t.children,n=0;n<t.length&&e!==t[n];)n++;return n%2===0}if(n===Ah)return!0}}return!1}pr.prototype.layoutComments=function(e){if(e.comments!==null){var t=e.node.measuredBounds,n=e.parent,i=e.angle,r=0,o=!1;n!==null&&(r=n.angle,o=n.alignment,o=td(o)),i=i===90||i===270,n=r===90||r===270;for(var s=e.childrenCount===0,l=Bv(e),u=0,f=e.comments,p=f.length,x=ce.alloc(),N=0;N<p;N++){var O=f[N],F=O.measuredBounds;if(i&&!s||!o&&!n&&s||o&&n&&s){if(135<r&&!o||n&&l)if(0<=e.commentMargin)for(x.h(e.bounds.x-e.commentMargin-F.width,e.bounds.y+u),O.move(x),O=O.Sd();O.next();){var K=O.value;K.fromSpot=is,K.toSpot=rs}else for(x.h(e.bounds.x+2*e.focus.x-e.commentMargin,e.bounds.y+u),O.move(x),O=O.Sd();O.next();)K=O.value,K.fromSpot=rs,K.toSpot=is;else if(0<=e.commentMargin)for(x.h(e.bounds.x+2*e.focus.x+e.commentMargin,e.bounds.y+u),O.move(x),O=O.Sd();O.next();)K=O.value,K.fromSpot=rs,K.toSpot=is;else for(x.h(e.bounds.x+e.commentMargin-F.width,e.bounds.y+u),O.move(x),O=O.Sd();O.next();)K=O.value,K.fromSpot=is,K.toSpot=rs;u=0<=e.commentSpacing?u+(F.height+e.commentSpacing):u+(e.commentSpacing-F.height)}else{if(135<r&&!o||!n&&l)if(0<=e.commentMargin)for(x.h(e.bounds.x+u,e.bounds.y-e.commentMargin-F.height),O.move(x),O=O.Sd();O.next();)K=O.value,K.fromSpot=Qo,K.toSpot=fs;else for(x.h(e.bounds.x+u,e.bounds.y+2*e.focus.y-e.commentMargin),O.move(x),O=O.Sd();O.next();)K=O.value,K.fromSpot=fs,K.toSpot=Qo;else if(0<=e.commentMargin)for(x.h(e.bounds.x+u,e.bounds.y+2*e.focus.y+e.commentMargin),O.move(x),O=O.Sd();O.next();)K=O.value,K.fromSpot=fs,K.toSpot=Qo;else for(x.h(e.bounds.x+u,e.bounds.y+e.commentMargin-F.height),O.move(x),O=O.Sd();O.next();)K=O.value,K.fromSpot=Qo,K.toSpot=fs;u=0<=e.commentSpacing?u+(F.width+e.commentSpacing):u+(e.commentSpacing-F.width)}}if(ce.free(x),t=u-e.commentSpacing-(i?t.height:t.width),this.ud===jc)for(e=e.destinationEdges;e.next();)r=e.value.link,r===null||r.isAvoiding||(r.fromEndSegmentLength=0<t?t:NaN);else for(e=e.sourceEdges;e.next();)r=e.value.link,r===null||r.isAvoiding||(r.toEndSegmentLength=0<t?t:NaN)}},pr.prototype.layoutTree=function(e){if(e!==null){for(var t=e.children,n=t.length,i=0;i<n;i++)this.layoutTree(t[i]);switch(e.compaction){case Vm:yb(this,e);break;case i0:if(e.alignment===Vc)yb(this,e);else if(e.childrenCount===0)i=e.parent,n=!1,t=0,i!==null&&(t=i.angle,n=i.alignment,n=td(n)),i=Bv(e),e.S.h(0,0),e.Da.h(e.width,e.height),e.parent===null||e.comments===null||(t!==180&&t!==270||n)&&!i?e.la.h(0,0):t===180&&!n||(t===90||t===270)&&i?e.la.h(e.width-2*e.focus.x,0):e.la.h(0,e.height-2*e.focus.y),e.Yo=null,e.kp=null;else{var r=rc(e);t=r===90||r===270;var o=0,s=e.children,l=s.length;for(n=0;n<l;n++)i=s[n],o=Math.max(o,t?i.Da.width:i.Da.height);var u=e.alignment;i=u===Gc;var f=u===Wc,p=td(u),x=Math.max(0,e.breadthLimit);n=this.computeLayerSpacing(e);var N=e.nodeSpacing,O=this.computeNodeIndent(e),F=e.rowSpacing,K=0;(i||f||e.hm||e.im&&e.maxGenerationCount===1)&&(K=Math.max(0,e.rowIndent)),i=e.width;var ye=e.height,ae=0,Oe=0,Fe=0,He=null,qe=null,bt=0,jn=0,oi=0,ei=0,Nn=0,cn=0,Yi=0,Ui=0;if(p&&!qp(u)&&135<r&&s.reverse(),qp(u))if(1<l)for(var _r=0;_r<l;_r++)_r%2===0&&_r!==l-1&&(Ui=Math.max(Ui,t?s[_r].Da.width:s[_r].Da.height));else l===1&&(Ui=t?s[0].Da.width:s[0].Da.height);if(p){switch(u){case Nh:Oe=135>r?bb(this,e,s,Ui,ae,Oe):xb(this,e,s,Ui,ae,Oe),Ui=Oe.x,ae=Oe.width,Oe=Oe.height;break;case Ah:for(He=0;He<l;He++)qe=s[He],x=qe.Da,Fe=cn===0?0:F,t?(qe.S.h(o-x.width,ei+Fe),ae=Math.max(ae,x.width),Oe=Math.max(Oe,ei+Fe+x.height),ei+=Fe+x.height):(qe.S.h(oi+Fe,o-x.height),ae=Math.max(ae,oi+Fe+x.width),Oe=Math.max(Oe,x.height),oi+=Fe+x.width),cn++;break;case ih:for(He=0;He<l;He++)qe=s[He],o=qe.Da,x=cn===0?0:F,t?(qe.S.h(N/2+e.focus.x,ei+x),ae=Math.max(ae,o.width),Oe=Math.max(Oe,ei+x+o.height),ei+=x+o.height):(qe.S.h(oi+x,N/2+e.focus.y),ae=Math.max(ae,oi+x+o.width),Oe=Math.max(Oe,o.height),oi+=x+o.width),cn++}He=Zl(this,2),qe=Zl(this,2),t?(He[0].h(0,0),He[1].h(0,Oe),qe[0].h(ae,0)):(He[0].h(0,0),He[1].h(ae,0),qe[0].h(0,Oe)),qe[1].h(ae,Oe)}else for(_r=0;_r<l;_r++){var ho=s[_r],ia=ho.Da;if(t){0<x&&0<cn&&oi+N+ia.width>x&&(oi<o&&Nd(e,u,o-oi,0,Yi,_r-1),Nn++,cn=0,Yi=_r,Fe=Oe,oi=0,ei=135<r?-Oe-F:Oe+F),jm(this,ho,0,ei);var ha=0;if(cn===0)He=ho.Yo,qe=ho.kp,bt=ia.width,jn=ia.height,(He===null||qe===null||r!==rc(ho))&&(He=Zl(this,2),qe=Zl(this,2),He[0].h(0,0),He[1].h(0,jn),qe[0].h(bt,0),qe[1].h(bt,jn));else{var ol=jt();jn=Sb(this,e,ho,He,qe,bt,jn,ol),ha=jn.x,He=ol[0],qe=ol[1],bt=jn.width,jn=jn.height,gn(ol),oi<ia.width&&0>ha&&(Xd(e,-ha,0,Yi,_r-1),Gm(He,-ha,0),Gm(qe,-ha,0),ha=0)}ho.S.h(ha,ei),ae=Math.max(ae,bt),Oe=Math.max(Oe,Fe+(Nn===0?0:F)+ia.height),oi=bt}else 0<x&&0<cn&&ei+N+ia.height>x&&(ei<o&&Nd(e,u,0,o-ei,Yi,_r-1),Nn++,cn=0,Yi=_r,Fe=ae,ei=0,oi=135<r?-ae-F:ae+F),jm(this,ho,oi,0),ha=0,cn===0?(He=ho.Yo,qe=ho.kp,bt=ia.width,jn=ia.height,(He===null||qe===null||r!==rc(ho))&&(He=Zl(this,2),qe=Zl(this,2),He[0].h(0,0),He[1].h(bt,0),qe[0].h(0,jn),qe[1].h(bt,jn))):(ol=jt(),jn=Sb(this,e,ho,He,qe,bt,jn,ol),ha=jn.x,He=ol[0],qe=ol[1],bt=jn.width,jn=jn.height,gn(ol),ei<ia.height&&0>ha&&(Xd(e,0,-ha,Yi,_r-1),Gm(He,0,-ha),Gm(qe,0,-ha),ha=0)),ho.S.h(oi,ha),Oe=Math.max(Oe,jn),ae=Math.max(ae,Fe+(Nn===0?0:F)+ia.width),ei=jn;cn++}switch(0<Nn&&(t?(Oe+=Math.max(0,n),oi<ae&&Nd(e,u,ae-oi,0,Yi,l-1),0<K&&(f||Xd(e,K,0,0,l-1),ae+=K)):(ae+=Math.max(0,n),ei<Oe&&Nd(e,u,0,Oe-ei,Yi,l-1),0<K&&(f||Xd(e,0,K,0,l-1),Oe+=K))),K=f=0,u){case Gf:t?f+=ae/2-e.focus.x-O/2:K+=Oe/2-e.focus.y-O/2;break;case Jd:0<Nn?t?f+=ae/2-e.focus.x-O/2:K+=Oe/2-e.focus.y-O/2:t?(Ui=s[0].S.x+s[0].la.x,f+=Ui+(s[l-1].S.x+s[l-1].la.x+2*s[l-1].focus.x-Ui)/2-e.focus.x-O/2):(Ui=s[0].S.y+s[0].la.y,K+=Ui+(s[l-1].S.y+s[l-1].la.y+2*s[l-1].focus.y-Ui)/2-e.focus.y-O/2);break;case Gc:t?(f-=O,ae+=O):(K-=O,Oe+=O);break;case Wc:t?(f+=ae-e.width+O,ae+=O):(K+=Oe-e.height+O,Oe+=O);break;case Nh:t?1<l?f+=Ui+N/2-e.focus.x:f+=s[0].focus.x-e.focus.x+s[0].la.x:1<l?K+=Ui+N/2-e.focus.y:K+=s[0].focus.y-e.focus.y+s[0].la.y;break;case Ah:t?f+=ae+N/2-e.focus.x:K+=Oe+N/2-e.focus.y;break;case ih:break;default:Oe=this.customAlignment(e,f,K,ae,Oe),f=Oe[0],K=Oe[1],ae=Oe[2],Oe=Oe[3]}for(O=0;O<l;O++)Ui=s[O],t?Ui.S.h(Ui.S.x+Ui.la.x-f,Ui.S.y+(135<r?(p?-Oe:-Ui.Da.height)+Ui.la.y-n:ye+n+Ui.la.y)):Ui.S.h(Ui.S.x+(135<r?(p?-ae:-Ui.Da.width)+Ui.la.x-n:i+n+Ui.la.x),Ui.S.y+Ui.la.y-K);if(l=s=0,p?t?(ae=_v(e,ae,f),0>f&&(f=0),135<r&&(K+=Oe+n),Oe+=ye+n,u===ih&&(s+=N/2+e.focus.x),l+=ye+n):(135<r&&(f+=ae+n),ae+=i+n,Oe=zv(e,Oe,K),0>K&&(K=0),u===ih&&(l+=N/2+e.focus.y),s+=i+n):t?(e.comments===null?i>ae&&(ae=Uv(u,i-ae,0),s=ae.x,l=ae.y,ae=i,f=0):ae=_v(e,ae,f),0>f&&(s-=f,f=0),135<r&&(K+=Oe+n),Oe=Math.max(Math.max(Oe,ye),Oe+ye+n),l+=ye+n):(135<r&&(f+=ae+n),ae=Math.max(Math.max(ae,i),ae+i+n),e.comments===null?ye>Oe&&(Oe=Uv(u,0,ye-Oe),s=Oe.x,l=Oe.y,Oe=ye,K=0):Oe=zv(e,Oe,K),0>K&&(l-=K,K=0),s+=i+n),0<Nn)r=Zl(this,4),Nn=Zl(this,4),t?(r[2].h(0,ye+n),r[3].h(r[2].x,Oe),Nn[2].h(ae,r[2].y),Nn[3].h(Nn[2].x,r[3].y)):(r[2].h(i+n,0),r[3].h(ae,r[2].y),Nn[2].h(r[2].x,Oe),Nn[3].h(r[3].x,Nn[2].y));else{for(r=Zl(this,He.length+2),Nn=Zl(this,qe.length+2),u=0;u<He.length;u++)p=He[u],r[u+2].h(p.x+s,p.y+l);for(u=0;u<qe.length;u++)p=qe[u],Nn[u+2].h(p.x+s,p.y+l)}t?(r[0].h(f,0),r[1].h(r[0].x,ye),r[2].y<r[1].y&&(r[2].x>r[0].x?r[2].assign(r[1]):r[1].assign(r[2])),r[3].y<r[2].y&&(r[3].x>r[0].x?r[3].assign(r[2]):r[2].assign(r[3])),Nn[0].h(f+i,0),Nn[1].h(Nn[0].x,ye),Nn[2].y<Nn[1].y&&(Nn[2].x<Nn[0].x?Nn[2].assign(Nn[1]):Nn[1].assign(Nn[2])),Nn[3].y<Nn[2].y&&(Nn[3].x<Nn[0].x?Nn[3].assign(Nn[2]):Nn[2].assign(Nn[3])),r[2].y-=n/2,Nn[2].y-=n/2):(r[0].h(0,K),r[1].h(i,r[0].y),r[2].x<r[1].x&&(r[2].y>r[0].y?r[2].assign(r[1]):r[1].assign(r[2])),r[3].x<r[2].x&&(r[3].y>r[0].y?r[3].assign(r[2]):r[2].assign(r[3])),Nn[0].h(0,K+ye),Nn[1].h(i,Nn[0].y),Nn[2].x<Nn[1].x&&(Nn[2].y<Nn[0].y?Nn[2].assign(Nn[1]):Nn[1].assign(Nn[2])),Nn[3].x<Nn[2].x&&(Nn[3].y<Nn[0].y?Nn[3].assign(Nn[2]):Nn[2].assign(Nn[3])),r[2].x-=n/2,Nn[2].x-=n/2),mc(this,He),mc(this,qe),e.Yo=r,e.kp=Nn,e.la.h(f,K),e.Da.h(ae,Oe)}break;default:ut("Unhandled compaction value "+e.compaction.toString())}}};function yb(e,t){if(t.childrenCount===0){var n=!1,i=0;t.parent!==null&&(i=t.parent.angle,n=t.parent.alignment,n=td(n));var r=Bv(t);t.S.h(0,0),t.Da.h(t.width,t.height),t.parent===null||t.comments===null||(i!==180&&i!==270||n)&&!r?t.la.h(0,0):i===180&&!n||(i===90||i===270)&&r?t.la.h(t.width-2*t.focus.x,0):t.la.h(0,t.height-2*t.focus.y)}else{i=rc(t),n=i===90||i===270;var o=0;r=t.children;for(var s=r.length,l=0;l<s;l++){var u=r[l];o=Math.max(o,n?u.Da.width:u.Da.height)}var f=t.alignment,p=f===Gc,x=f===Wc;l=td(f);var N=Math.max(0,t.breadthLimit);u=e.computeLayerSpacing(t);var O=t.nodeSpacing,F=e.computeNodeIndent(t),K=p||x?0:F/2,ye=t.rowSpacing,ae=0;(p||x||t.hm||t.im&&t.maxGenerationCount===1)&&(ae=Math.max(0,t.rowIndent)),p=t.width;var Oe=t.height,Fe=0,He=0,qe=0,bt=0,jn=0,oi=0,ei=0,Nn=0,cn=0,Yi=0;if(l&&!qp(f)&&135<i&&r.reverse(),qp(f))if(1<s)for(var Ui=0;Ui<s;Ui++){var _r=r[Ui],ho=_r.Da;Ui%2===0&&Ui!==s-1?cn=Math.max(cn,(n?ho.width:ho.height)+e.computeBusNodeSpacing(_r)-O):Ui%2!==0&&(Yi=Math.max(Yi,(n?ho.width:ho.height)+e.computeBusNodeSpacing(_r)-O))}else s===1&&(cn=n?r[0].Da.width:r[0].Da.height);if(l)switch(f){case Nh:case Vc:He=135>i?bb(e,t,r,cn,Fe,He):xb(e,t,r,cn,Fe,He),cn=He.x,Fe=He.width,He=He.height;break;case Ah:for(N=0;N<s;N++)K=r[N],qe=K.Da,Yi=ei===0?0:ye,n?(K.S.h(o-qe.width,jn+Yi),Fe=Math.max(Fe,qe.width),He=Math.max(He,jn+Yi+qe.height),jn+=Yi+qe.height):(K.S.h(bt+Yi,o-qe.height),Fe=Math.max(Fe,bt+Yi+qe.width),He=Math.max(He,qe.height),bt+=Yi+qe.width),ei++;break;case ih:for(o=0;o<s;o++)N=r[o],K=N.Da,qe=ei===0?0:ye,n?(N.S.h(O/2+t.focus.x,jn+qe),Fe=Math.max(Fe,K.width),He=Math.max(He,jn+qe+K.height),jn+=qe+K.height):(N.S.h(bt+qe,O/2+t.focus.y),Fe=Math.max(Fe,bt+qe+K.width),He=Math.max(He,K.height),bt+=qe+K.width),ei++}else for(Yi=0;Yi<s;Yi++)Ui=r[Yi],_r=Ui.Da,n?(0<N&&0<ei&&bt+O+_r.width>N&&(bt<o&&Nd(t,f,o-bt,0,Nn,Yi-1),oi++,ei=0,Nn=Yi,qe=He,bt=0,jn=135<i?-He-ye:He+ye),ho=ei===0?K:O,jm(e,Ui,0,jn),Ui.S.h(bt+ho,jn),Fe=Math.max(Fe,bt+ho+_r.width),He=Math.max(He,qe+(oi===0?0:ye)+_r.height),bt+=ho+_r.width):(0<N&&0<ei&&jn+O+_r.height>N&&(jn<o&&Nd(t,f,0,o-jn,Nn,Yi-1),oi++,ei=0,Nn=Yi,qe=Fe,jn=0,bt=135<i?-Fe-ye:Fe+ye),ho=ei===0?K:O,jm(e,Ui,bt,0),Ui.S.h(bt,jn+ho),He=Math.max(He,jn+ho+_r.height),Fe=Math.max(Fe,qe+(oi===0?0:ye)+_r.width),jn+=ho+_r.height),ei++;switch(0<oi&&(n?(He+=Math.max(0,u),bt<Fe&&Nd(t,f,Fe-bt,0,Nn,s-1),0<ae&&(x||Xd(t,ae,0,0,s-1),Fe+=ae)):(Fe+=Math.max(0,u),jn<He&&Nd(t,f,0,He-jn,Nn,s-1),0<ae&&(x||Xd(t,0,ae,0,s-1),He+=ae))),ae=x=0,f){case Gf:n?x+=Fe/2-t.focus.x-F/2:ae+=He/2-t.focus.y-F/2;break;case Jd:0<oi?n?x+=Fe/2-t.focus.x-F/2:ae+=He/2-t.focus.y-F/2:n?(e=r[0].S.x+r[0].la.x,x+=e+(r[s-1].S.x+r[s-1].la.x+2*r[s-1].focus.x-e)/2-t.focus.x-F/2):(e=r[0].S.y+r[0].la.y,ae+=e+(r[s-1].S.y+r[s-1].la.y+2*r[s-1].focus.y-e)/2-t.focus.y-F/2);break;case Gc:n?(x-=F,Fe+=F):(ae-=F,He+=F);break;case Wc:n?(x+=Fe-t.width+F,Fe+=F):(ae+=He-t.height+F,He+=F);break;case Nh:case Vc:n?1<s?x+=cn+O/2-t.focus.x:x+=r[0].focus.x-t.focus.x+r[0].la.x:1<s?ae+=cn+O/2-t.focus.y:ae+=r[0].focus.y-t.focus.y+r[0].la.y;break;case Ah:n?x+=Fe+O/2-t.focus.x:ae+=He+O/2-t.focus.y;break;case ih:break;default:e=e.customAlignment(t,x,ae,Fe,He),x=e[0],ae=e[1],Fe=e[2],He=e[3]}for(e=0;e<s;e++)F=r[e],n?F.S.h(F.S.x+F.la.x-x,F.S.y+(135<i?(l?-He:-F.Da.height)+F.la.y-u:Oe+u+F.la.y)):F.S.h(F.S.x+(135<i?(l?-Fe:-F.Da.width)+F.la.x-u:p+u+F.la.x),F.S.y+F.la.y-ae);n?(Fe=_v(t,Fe,x),0>x&&(x=0),135<i&&(ae+=He+u),He=Math.max(Math.max(He,Oe),He+Oe+u)):(135<i&&(x+=Fe+u),Fe=Math.max(Math.max(Fe,p),Fe+p+u),He=zv(t,He,ae),0>ae&&(ae=0)),t.la.h(x,ae),t.Da.h(Fe,He)}}pr.prototype.customAlignment=function(e,t,n,i,r){return[t,n,i,r]};function bb(e,t,n,i,r,o){var s=n.length;if(s===0)return new Ht(i,0,r,o);if(s===1)return t=n[0],r=t.Da.width,o=t.Da.height,new Ht(i,0,r,o);for(var l=t.nodeSpacing,u=t.rowSpacing,f=rc(t)===90,p=0,x=0,N=0,O=0;O<s;O++)if(!(O%2!==0||1<s&&O===s-1)){var F=n[O],K=F.Da,ye=p===0?0:u;if(f){var ae=e.computeBusNodeSpacing(F)-l;F.S.h(i-(K.width+ae),N+ye),r=Math.max(r,K.width+ae),o=Math.max(o,N+ye+K.height),N+=ye+K.height}else ae=e.computeBusNodeSpacing(F)-l,F.S.h(x+ye,i-(K.height+ae)),o=Math.max(o,K.height+ae),r=Math.max(r,x+ye+K.width),x+=ye+K.width;p++}for(p=0,F=x,O=N,f?(x=i+l,N=0):(x=0,N=i+l),K=0;K<s;K++)if(K%2!==0){ye=n[K],ae=ye.Da;var Oe=p===0?0:u;if(f){var Fe=e.computeBusNodeSpacing(ye)-l;ye.S.h(x+Fe,N+Oe),r=Math.max(r,x+ae.width+Fe),o=Math.max(o,N+Oe+ae.height),N+=Oe+ae.height}else Fe=e.computeBusNodeSpacing(ye)-l,ye.S.h(x+Oe,N+Fe),r=Math.max(r,x+Oe+ae.width),o=Math.max(o,N+ae.height+Fe),x+=Oe+ae.width;p++}return 1<s&&s%2===1&&(n=n[s-1],s=n.Da,e=e.computeBusLastRowSpacing(n,f?Math.max(Math.abs(O),Math.abs(N)):Math.max(Math.abs(F),Math.abs(x))),f?(n.S.h(i+l/2-n.focus.x-n.la.x,o+e),f=i+l/2-n.focus.x-n.la.x,r=Math.max(r,f+s.width),0>f&&(r-=f),o=Math.max(o,Math.max(O,N)+e+s.height),0>n.S.x&&(i=$m(t,n.S.x,!1,i,l))):(n.S.h(r+e,i+l/2-n.focus.y-n.la.y),r=Math.max(r,Math.max(F,x)+e+s.width),N=i+l/2-n.focus.y-n.la.y,o=Math.max(o,N+s.height),0>N&&(o-=N),0>n.S.y&&(i=$m(t,n.S.y,!0,i,l)))),new Ht(i,0,r,o)}function xb(e,t,n,i,r,o){var s=n.length;if(s===0)return new Ht(i,0,r,o);if(s===1)return n=n[0],r=n.Da.width,o=n.Da.height,new Ht(i,0,r,o);for(var l=t.nodeSpacing,u=t.rowSpacing,f=rc(t)===270,p=0,x=0,N=0,O=0;O<s;O++)if(!(O%2!==0||1<s&&O===s-1)){var F=n[O],K=F.Da,ye=p===0?0:u;if(f){var ae=e.computeBusNodeSpacing(F)-l;N-=ye+K.height,F.S.h(i-(K.width+ae),N),r=Math.max(r,K.width+ae),o=Math.max(o,Math.abs(N))}else ae=e.computeBusNodeSpacing(F)-l,x-=ye+K.width,F.S.h(x,i-(K.height+ae)),o=Math.max(o,K.height+ae),r=Math.max(r,Math.abs(x));p++}for(p=0,F=x,O=N,f?(x=i+l,N=0):(x=0,N=i+l),K=0;K<s;K++)if(K%2!==0){ye=n[K],ae=ye.Da;var Oe=p===0?0:u;if(f){var Fe=e.computeBusNodeSpacing(ye)-l;N-=Oe+ae.height,ye.S.h(x+Fe,N),r=Math.max(r,x+ae.width+Fe),o=Math.max(o,Math.abs(N))}else Fe=e.computeBusNodeSpacing(ye)-l,x-=Oe+ae.width,ye.S.h(x,N+Fe),o=Math.max(o,N+ae.height+Fe),r=Math.max(r,Math.abs(x));p++}for(1<s&&s%2===1&&(u=n[s-1],p=u.Da,e=e.computeBusLastRowSpacing(u,f?Math.max(Math.abs(O),Math.abs(N)):Math.max(Math.abs(F),Math.abs(x))),f?(u.S.h(i+l/2-u.focus.x-u.la.x,-o-p.height-e),x=i+l/2-u.focus.x-u.la.x,r=Math.max(r,x+p.width),0>x&&(r-=x),o=Math.max(o,Math.abs(Math.min(O,N))+e+p.height),0>u.S.x&&(i=$m(t,u.S.x,!1,i,l))):(u.S.h(-r-p.width-e,i+l/2-u.focus.y-u.la.y),r=Math.max(r,Math.abs(Math.min(F,x))+e+p.width),N=i+l/2-u.focus.y-u.la.y,o=Math.max(o,N+p.height),0>N&&(o-=N),0>u.S.y&&(i=$m(t,u.S.y,!0,i,l)))),t=0;t<s;t++)l=n[t],f?l.S.h(l.S.x,l.S.y+o):l.S.h(l.S.x+r,l.S.y);return new Ht(i,0,r,o)}pr.prototype.computeBusNodeSpacing=function(e){return e.parent===null?0:e.parent.nodeSpacing},pr.prototype.computeBusLastRowSpacing=function(e){return e.parent===null?0:e.parent.rowSpacing};function $m(e,t,n,i,r){e=e.children;for(var o=e.length,s=0;s<o;s++)n?e[s].S.h(e[s].S.x,e[s].S.y-t):e[s].S.h(e[s].S.x-t,e[s].S.y);return t=e[o-1],Math.max(i,n?t.la.y+t.focus.y-r/2:t.la.x+t.focus.x-r/2)}function _v(e,t,n){switch(e.alignment){case Jd:case Gf:return n+e.width>t&&(t=n+e.width),0>n&&(t-=n),t;case Gc:return e.width>t?e.width:t;case Wc:return 2*e.focus.x>t?e.width:t+e.width-2*e.focus.x;case Nh:case Vc:return Math.max(e.width,Math.max(t,n+e.width)-Math.min(0,n));case Ah:return e.width-e.focus.x+e.nodeSpacing/2+t;case ih:return Math.max(e.width,e.focus.x+e.nodeSpacing/2+t);default:return t}}function zv(e,t,n){switch(e.alignment){case Jd:case Gf:return n+e.height>t&&(t=n+e.height),0>n&&(t-=n),t;case Gc:return e.height>t?e.height:t;case Wc:return 2*e.focus.y>t?e.height:t+e.height-2*e.focus.y;case Nh:case Vc:return Math.max(e.height,Math.max(t,n+e.height)-Math.min(0,n));case Ah:return e.height-e.focus.y+e.nodeSpacing/2+t;case ih:return Math.max(e.height,e.focus.y+e.nodeSpacing/2+t);default:return t}}function Uv(e,t,n){switch(e){case Gf:t/=2,n/=2;break;case Jd:t/=2,n/=2;break;case Gc:n=t=0;break;case Wc:break;default:ut("Unhandled alignment value "+e.toString())}return new ce(t,n)}function Nd(e,t,n,i,r,o){t=Uv(t,n,i),Xd(e,t.x,t.y,r,o)}function Xd(e,t,n,i,r){if(t!==0||n!==0)for(e=e.children;i<=r;i++){var o=e[i].S;o.x+=t,o.y+=n}}function jm(e,t,n,i){var r=t.parent;switch(e.ud){case jc:for(e=t.sourceEdges;e.next();)t=e.value,t.fromVertex===r&&t.relativePoint.h(n,i);break;case Qd:for(e=t.destinationEdges;e.next();)t=e.value,t.toVertex===r&&t.relativePoint.h(n,i);break;default:ut("Unhandled path value "+e.ud.toString())}}function Gm(e,t,n){for(var i=0;i<e.length;i++){var r=e[i];r.x+=t,r.y+=n}}function Sb(e,t,n,i,r,o,s,l){var u=rc(t),f=u===90||u===270,p=t.nodeSpacing;t=i;var x=r;i=o;var N=s,O=n.Yo,F=n.kp;s=n.Da;var K=f?Math.max(N,s.height):Math.max(i,s.width);if((O===null||u!==rc(n))&&(O=Zl(e,2),F=Zl(e,2),f?(O[0].h(0,0),O[1].h(0,s.height),F[0].h(s.width,0),F[1].h(F[0].x,O[1].y)):(O[0].h(0,0),O[1].h(s.width,0),F[0].h(0,s.height),F[1].h(O[1].x,F[0].y))),f){if(N=9999999,!(x===null||2>x.length||O===null||2>O.length))for(r=n=0;n<x.length&&r<O.length;){o=x[n];var ye=O[r];u=ye.x,f=ye.y,u+=i;var ae=o;n+1<x.length&&(ae=x[n+1]);var Oe=ye;ye=Oe.x,Oe=Oe.y,r+1<O.length&&(Oe=O[r+1],ye=Oe.x,Oe=Oe.y,ye+=i);var Fe=N;o.y===f?Fe=u-o.x:o.y>f&&o.y<Oe?Fe=u+(o.y-f)/(Oe-f)*(ye-u)-o.x:f>o.y&&f<ae.y&&(Fe=u-(o.x+(f-o.y)/(ae.y-o.y)*(ae.x-o.x))),Fe<N&&(N=Fe),ae.y<=o.y?n++:Oe<=f?r++:(ae.y<=Oe&&n++,Oe<=ae.y&&r++)}if(N=i-N,N+=p,n=O,r=N,t===null||2>t.length||n===null||2>n.length)i=null;else{for(p=Zl(e,t.length+n.length),i=o=u=0;o<n.length&&n[o].y<t[0].y;)f=n[o++],p[i++].h(f.x+r,f.y);for(;u<t.length;)f=t[u++],p[i++].h(f.x,f.y);for(u=t[t.length-1].y;o<n.length&&n[o].y<=u;)o++;for(;o<n.length&&n[o].y>u;)f=n[o++],p[i++].h(f.x+r,f.y);for(n=Zl(e,i),u=0;u<i;u++)n[u].assign(p[u]);mc(e,p),i=n}if(o=F,u=N,x===null||2>x.length||o===null||2>o.length)r=null;else{for(p=Zl(e,x.length+o.length),r=f=n=0;n<x.length&&x[n].y<o[0].y;)ae=x[n++],p[r++].h(ae.x,ae.y);for(;f<o.length;)ae=o[f++],p[r++].h(ae.x+u,ae.y);for(o=o[o.length-1].y;n<x.length&&x[n].y<=o;)n++;for(;n<x.length&&x[n].y>o;)u=x[n++],p[r++].h(u.x,u.y);for(o=Zl(e,r),n=0;n<r;n++)o[n].assign(p[n]);mc(e,p),r=o}return o=Math.max(0,N)+s.width,s=K,mc(e,t),mc(e,O),mc(e,x),mc(e,F),l[0]=i,l[1]=r,new Ht(N,0,o,s)}if(i=9999999,!(x===null||2>x.length||O===null||2>O.length))for(r=n=0;n<x.length&&r<O.length;)o=x[n],ye=O[r],u=ye.x,f=ye.y,f+=N,ae=o,n+1<x.length&&(ae=x[n+1]),Oe=ye,ye=Oe.x,Oe=Oe.y,r+1<O.length&&(Oe=O[r+1],ye=Oe.x,Oe=Oe.y,Oe+=N),Fe=i,o.x===u?Fe=f-o.y:o.x>u&&o.x<ye?Fe=f+(o.x-u)/(ye-u)*(Oe-f)-o.y:u>o.x&&u<ae.x&&(Fe=f-(o.y+(u-o.x)/(ae.x-o.x)*(ae.y-o.y))),Fe<i&&(i=Fe),ae.x<=o.x?n++:ye<=u?r++:(ae.x<=ye&&n++,ye<=ae.x&&r++);if(N-=i,N+=p,n=O,r=N,t===null||2>t.length||n===null||2>n.length)i=null;else{for(p=Zl(e,t.length+n.length),i=o=u=0;o<n.length&&n[o].x<t[0].x;)f=n[o++],p[i++].h(f.x,f.y+r);for(;u<t.length;)f=t[u++],p[i++].h(f.x,f.y);for(u=t[t.length-1].x;o<n.length&&n[o].x<=u;)o++;for(;o<n.length&&n[o].x>u;)f=n[o++],p[i++].h(f.x,f.y+r);for(n=Zl(e,i),u=0;u<i;u++)n[u].assign(p[u]);mc(e,p),i=n}if(o=F,u=N,x===null||2>x.length||o===null||2>o.length)r=null;else{for(p=Zl(e,x.length+o.length),r=f=n=0;n<x.length&&x[n].x<o[0].x;)ae=x[n++],p[r++].h(ae.x,ae.y);for(;f<o.length;)ae=o[f++],p[r++].h(ae.x,ae.y+u);for(o=o[o.length-1].x;n<x.length&&x[n].x<=o;)n++;for(;n<x.length&&x[n].x>o;)u=x[n++],p[r++].h(u.x,u.y);for(o=Zl(e,r),n=0;n<r;n++)o[n].assign(p[n]);mc(e,p),r=o}return o=K,s=Math.max(0,N)+s.height,mc(e,t),mc(e,O),mc(e,x),mc(e,F),l[0]=i,l[1]=r,new Ht(N,0,o,s)}function Zl(e,t){if(e=e.ru[t],e!==void 0&&(e=e.pop(),e!==void 0))return e;e=[];for(var n=0;n<t;n++)e[n]=new ce;return e}function mc(e,t){var n=t.length,i=e.ru[n];i===void 0&&(i=[],e.ru[n]=i),i.push(t)}pr.prototype.arrangeTrees=function(){if(this.Rb===Zm)for(var e=this.Ub.iterator;e.next();){var t=e.value;if(t instanceof $u){var n=t.node;if(n!==null){var i=n.position;n=i.x,i=i.y,isFinite(n)||(n=0),isFinite(i)||(i=0),Hv(this,t,n,i)}}}else{for(e=[],t=this.Ub.iterator;t.next();)n=t.value,n instanceof $u&&e.push(n);switch(this.sorting){case jf:break;case e0:e.reverse();break;case t0:e.sort(this.comparer);break;case n0:e.sort(this.comparer),e.reverse();break;default:ut("Unhandled sorting value "+this.sorting.toString())}for(n=this.arrangementOrigin,t=n.x,n=n.y,i=0;i<e.length;i++){var r=e[i];switch(Hv(this,r,t+r.la.x,n+r.la.y),this.Rb){case Ym:n+=r.Da.height+this.$d.height;break;case Wv:t+=r.Da.width+this.$d.width;break;default:ut("Unhandled arrangement value "+this.Rb.toString())}}}};function Hv(e,t,n,i){if(t!==null){t.x=n,t.y=i,t=t.children;for(var r=t.length,o=0;o<r;o++){var s=t[o];Hv(e,s,n+s.S.x,i+s.S.y)}}}pr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},pr.prototype.commitNodes=function(){for(var e=this.network.vertexes.iterator;e.next();)e.value.commit();for(e.reset();e.next();)this.layoutComments(e.value)},pr.prototype.Gu=function(){if(this.layerStyle===Xm){for(var e=this.$v,t=[],n=null,i=this.network.vertexes.iterator;i.next();){var r=i.value;n===null?n=r.bounds.copy():n.ed(r.bounds);var o=t[r.level];o===void 0?o=this.computeLayerSpacing(r):o=Math.max(o,this.computeLayerSpacing(r)),t[r.level]=o}for(i=0;i<t.length;i++)t[i]===void 0&&(t[i]=0);if(this.angle===90||this.angle===270?(n.Bc(this.nodeSpacing/2,this.layerSpacing),i=new ce(-this.nodeSpacing/2,-this.layerSpacing/2)):(n.Bc(this.layerSpacing,this.nodeSpacing/2),i=new ce(-this.layerSpacing/2,-this.nodeSpacing/2)),r=[],n=this.angle===90||this.angle===270?n.width:n.height,o=0,this.angle===180||this.angle===270)for(var s=0;s<e.length;s++)o+=e[s]+t[s];for(s=0;s<e.length;s++){var l=e[s]+t[s];this.angle===270?(o-=l,r.push(new Ht(0,o,n,l))):this.angle===90?(r.push(new Ht(0,o,n,l)),o+=l):this.angle===180?(o-=l,r.push(new Ht(o,0,l,n))):(r.push(new Ht(o,0,l,n)),o+=l)}this.commitLayers(r,i)}},pr.prototype.commitLayers=function(){},pr.prototype.commitLinks=function(){for(var e=this.network.edges.iterator;e.next();)e.value.commit()},pr.prototype.yv=function(){for(var e=this.Ub.iterator;e.next();){var t=e.value;t instanceof $u&&Eb(this,t)}};function Eb(e,t){if(t!==null){e.setPortSpots(t),t=t.children;for(var n=t.length,i=0;i<n;i++)Eb(e,t[i])}}pr.prototype.setPortSpots=function(e){var t=e.alignment;if(td(t)){var n=this.ud===jc,i=rc(e);switch(i){case 0:var r=rs;break;case 90:r=fs;break;case 180:r=is;break;default:r=Qo}var o=e.children,s=o.length;switch(t){case Nh:case Vc:for(t=0;t<s;t++){var l=o[t];if(l=(n?l.sourceEdges:l.destinationEdges).first(),l!==null&&(l=l.link,l!==null)){var u=i===90||i===270?is:Qo;if(s===1||t===s-1&&s%2===1)switch(i){case 0:u=is;break;case 90:u=Qo;break;case 180:u=rs;break;default:u=fs}else t%2===0&&(u=i===90||i===270?rs:fs);n?(e.setsPortSpot&&(l.fromSpot=r),e.setsChildPortSpot&&(l.toSpot=u)):(e.setsPortSpot&&(l.fromSpot=u),e.setsChildPortSpot&&(l.toSpot=r))}}break;case Ah:for(i=i===90||i===270?rs:fs,o=n?e.destinationEdges:e.sourceEdges;o.next();)s=o.value.link,s!==null&&(n?(e.setsPortSpot&&(s.fromSpot=r),e.setsChildPortSpot&&(s.toSpot=i)):(e.setsPortSpot&&(s.fromSpot=i),e.setsChildPortSpot&&(s.toSpot=r)));break;case ih:for(i=i===90||i===270?is:Qo,o=n?e.destinationEdges:e.sourceEdges;o.next();)s=o.value.link,s!==null&&(n?(e.setsPortSpot&&(s.fromSpot=r),e.setsChildPortSpot&&(s.toSpot=i)):(e.setsPortSpot&&(s.fromSpot=i),e.setsChildPortSpot&&(s.toSpot=r)))}}else if(n=rc(e),this.ud===jc){for(r=e.destinationEdges;r.next();)if(i=r.value.link,i!==null){if(e.setsPortSpot)if(e.portSpot.Xb())switch(n){case 0:i.fromSpot=rs;break;case 90:i.fromSpot=fs;break;case 180:i.fromSpot=is;break;default:i.fromSpot=Qo}else i.fromSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:i.toSpot=is;break;case 90:i.toSpot=Qo;break;case 180:i.toSpot=rs;break;default:i.toSpot=fs}else i.toSpot=e.childPortSpot}}else for(r=e.sourceEdges;r.next();)if(i=r.value.link,i!==null){if(e.setsPortSpot)if(e.portSpot.Xb())switch(n){case 0:i.toSpot=rs;break;case 90:i.toSpot=fs;break;case 180:i.toSpot=is;break;default:i.toSpot=Qo}else i.toSpot=e.portSpot;if(e.setsChildPortSpot)if(e.childPortSpot.Xb())switch(n){case 0:i.fromSpot=is;break;case 90:i.fromSpot=Qo;break;case 180:i.fromSpot=rs;break;default:i.fromSpot=fs}else i.fromSpot=e.childPortSpot}};function rc(e){return e=e.angle,45>=e?0:135>=e?90:225>=e?180:315>=e?270:0}pr.prototype.computeLayerSpacing=function(e){var t=rc(e);t=t===90||t===270;var n=e.layerSpacing;if(0<e.layerSpacingParentOverlap){var i=Math.min(1,e.layerSpacingParentOverlap);n-=t?e.height*i:e.width*i}return n<(t?-e.height:-e.width)&&(n=t?-e.height:-e.width),n},pr.prototype.computeNodeIndent=function(e){var t=rc(e),n=e.nodeIndent;if(0<e.nodeIndentPastParent){var i=Math.min(1,e.nodeIndentPastParent);n+=t===90||t===270?e.width*i:e.height*i}return n=Math.max(0,n)},at.Object.defineProperties(pr.prototype,{roots:{get:function(){return this.Ub},set:function(e){this.Ub!==e&&(this.Ub=e,this.C())}},path:{get:function(){return this.Wn},set:function(e){this.Wn!==e&&(this.Wn=e,this.C())}},treeStyle:{get:function(){return this.vo},set:function(e){this.Rb===e||e!==Km&&e!==jv&&e!==$v&&e!==Gv||(this.vo=e,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(e){this.Rb===e||e!==Vv&&e!==Kv&&e!==Xm||(this.Bq=e,this.C())}},comments:{get:function(){return this.td},set:function(e){this.td!==e&&(this.td=e,this.C())}},arrangement:{get:function(){return this.Rb},set:function(e){this.Rb===e||e!==Ym&&e!==Wv&&e!==Zm||(this.Rb=e,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(e){this.$d.D(e)||(this.$d.assign(e),this.C())}},rootDefaults:{get:function(){return this.W},set:function(e){this.W!==e&&(this.W=e,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(e){this.Y!==e&&(this.Y=e,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(e){this.W.sorting===e||e!==jf&&e!==e0&&e!==t0&&!n0||(this.W.sorting=e,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(e){this.W.comparer!==e&&(this.W.comparer=e,this.C())}},angle:{get:function(){return this.W.angle},set:function(e){this.W.angle!==e&&(e===0||e===90||e===180||e===270?(this.W.angle=e,this.C()):ut("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(e){this.W.alignment!==e&&(this.W.alignment=e,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(e){this.W.nodeIndent!==e&&0<=e&&(this.W.nodeIndent=e,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(e){this.W.nodeIndentPastParent!==e&&0<=e&&1>=e&&(this.W.nodeIndentPastParent=e,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(e){this.W.nodeSpacing!==e&&(this.W.nodeSpacing=e,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(e){this.W.layerSpacing!==e&&(this.W.layerSpacing=e,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(e){this.W.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.W.layerSpacingParentOverlap=e,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(e){this.W.compaction===e||e!==Vm&&e!==i0||(this.W.compaction=e,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(e){this.W.breadthLimit!==e&&0<=e&&(this.W.breadthLimit=e,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(e){this.W.rowSpacing!==e&&(this.W.rowSpacing=e,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(e){this.W.rowIndent!==e&&0<=e&&(this.W.rowIndent=e,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(e){this.W.commentSpacing!==e&&(this.W.commentSpacing=e,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(e){this.W.commentMargin!==e&&(this.W.commentMargin=e,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(e){this.W.setsPortSpot!==e&&(this.W.setsPortSpot=e,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(e){this.W.portSpot.D(e)||(this.W.portSpot=e,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(e){this.W.setsChildPortSpot!==e&&(this.W.setsChildPortSpot=e,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(e){this.W.childPortSpot.D(e)||(this.W.childPortSpot=e,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(e){this.Y.sorting===e||e!==jf&&e!==e0&&e!==t0&&!n0||(this.Y.sorting=e,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(e){this.Y.comparer!==e&&(this.Y.comparer=e,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(e){this.Y.angle===e||e!==0&&e!==90&&e!==180&&e!==270||(this.Y.angle=e,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(e){this.Y.alignment!==e&&(this.Y.alignment=e,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(e){this.Y.nodeIndent!==e&&0<=e&&(this.Y.nodeIndent=e,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(e){this.Y.nodeIndentPastParent!==e&&0<=e&&1>=e&&(this.Y.nodeIndentPastParent=e,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(e){this.Y.nodeSpacing!==e&&(this.Y.nodeSpacing=e,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(e){this.Y.layerSpacing!==e&&(this.Y.layerSpacing=e,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(e){this.Y.layerSpacingParentOverlap!==e&&0<=e&&1>=e&&(this.Y.layerSpacingParentOverlap=e,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(e){this.Y.compaction===e||e!==Vm&&e!==i0||(this.Y.compaction=e,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(e){this.Y.breadthLimit!==e&&0<=e&&(this.Y.breadthLimit=e,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(e){this.Y.rowSpacing!==e&&(this.Y.rowSpacing=e,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(e){this.Y.rowIndent!==e&&0<=e&&(this.Y.rowIndent=e,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(e){this.Y.commentSpacing!==e&&(this.Y.commentSpacing=e,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(e){this.Y.commentMargin!==e&&(this.Y.commentMargin=e,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(e){this.Y.setsPortSpot!==e&&(this.Y.setsPortSpot=e,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(e){this.Y.portSpot.D(e)||(this.Y.portSpot=e,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(e){this.Y.setsChildPortSpot!==e&&(this.Y.setsChildPortSpot=e,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(e){this.Y.childPortSpot.D(e)||(this.Y.childPortSpot=e,this.C())}}});var Wm=new qt(pr,"PathDefault",-1),jc=new qt(pr,"PathDestination",0),Qd=new qt(pr,"PathSource",1),jf=new qt(pr,"SortingForwards",10),e0=new qt(pr,"SortingReverse",11),t0=new qt(pr,"SortingAscending",12),n0=new qt(pr,"SortingDescending",13),Gf=new qt(pr,"AlignmentCenterSubtrees",20),Jd=new qt(pr,"AlignmentCenterChildren",21),Gc=new qt(pr,"AlignmentStart",22),Wc=new qt(pr,"AlignmentEnd",23),Nh=new qt(pr,"AlignmentBus",24),Vc=new qt(pr,"AlignmentBusBranching",25),Ah=new qt(pr,"AlignmentTopLeftBus",26),ih=new qt(pr,"AlignmentBottomRightBus",27),Vm=new qt(pr,"CompactionNone",30),i0=new qt(pr,"CompactionBlock",31),Km=new qt(pr,"StyleLayered",40),$v=new qt(pr,"StyleLastParents",41),jv=new qt(pr,"StyleAlternating",42),Gv=new qt(pr,"StyleRootOnly",43),Ym=new qt(pr,"ArrangementVertical",50),Wv=new qt(pr,"ArrangementHorizontal",51),Zm=new qt(pr,"ArrangementFixedRoots",52),Vv=new qt(pr,"LayerIndividual",60),Kv=new qt(pr,"LayerSiblings",61),Xm=new qt(pr,"LayerUniform",62);pr.className="TreeLayout",pr.PathDefault=Wm,pr.PathDestination=jc,pr.PathSource=Qd,pr.SortingForwards=jf,pr.SortingReverse=e0,pr.SortingAscending=t0,pr.SortingDescending=n0,pr.AlignmentCenterSubtrees=Gf,pr.AlignmentCenterChildren=Jd,pr.AlignmentStart=Gc,pr.AlignmentEnd=Wc,pr.AlignmentBus=Nh,pr.AlignmentBusBranching=Vc,pr.AlignmentTopLeftBus=Ah,pr.AlignmentBottomRightBus=ih,pr.CompactionNone=Vm,pr.CompactionBlock=i0,pr.StyleLayered=Km,pr.StyleLastParents=$v,pr.StyleAlternating=jv,pr.StyleRootOnly=Gv,pr.ArrangementVertical=Ym,pr.ArrangementHorizontal=Wv,pr.ArrangementFixedRoots=Zm,pr.LayerIndividual=Vv,pr.LayerSiblings=Kv,pr.LayerUniform=Xm;function qd(e){yo.call(this,e)}fi(qd,yo),qd.prototype.createVertex=function(){return new $u(this)},qd.prototype.createEdge=function(){return new Wf(this)},qd.className="TreeNetwork";function $u(e){Ws.call(this,e),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new ce(0,0),this.Da=new mi(0,0),this.la=new ce(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=jf,this.hd=fv,this.Kb=0,this.Jb=Jd,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=i0,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Lr,this.wr=!0,this.Dp=Lr}fi($u,Ws),$u.prototype.copyInheritedPropertiesFrom=function(e){e!==null&&(this.nd=e.sorting,this.hd=e.comparer,this.Kb=e.angle,this.Jb=e.alignment,this.Uq=e.nodeIndent,this.Vq=e.nodeIndentPastParent,this.Wq=e.nodeSpacing,this.ie=e.layerSpacing,this.Aq=e.layerSpacingParentOverlap,this.Hp=e.compaction,this.Ap=e.breadthLimit,this.nr=e.rowSpacing,this.mr=e.rowIndent,this.Gp=e.commentSpacing,this.Fp=e.commentMargin,this.xr=e.setsPortSpot,this.dr=e.portSpot,this.wr=e.setsChildPortSpot,this.Dp=e.childPortSpot)},at.Object.defineProperties($u.prototype,{initialized:{get:function(){return this.V},set:function(e){this.V!==e&&(this.V=e)}},parent:{get:function(){return this.hb},set:function(e){this.hb!==e&&(this.hb=e)}},children:{get:function(){return this.u},set:function(e){if(this.u!==e){if(e!==null)for(var t=e.length,n=0;n<t;n++);this.u=e}}},level:{get:function(){return this.ia},set:function(e){this.ia!==e&&(this.ia=e)}},descendantCount:{get:function(){return this.F},set:function(e){this.F!==e&&(this.F=e)}},maxChildrenCount:{get:function(){return this.Ha},set:function(e){this.Ha!==e&&(this.Ha=e)}},maxGenerationCount:{get:function(){return this.nb},set:function(e){this.nb!==e&&(this.nb=e)}},comments:{get:function(){return this.td},set:function(e){if(this.td!==e){if(e!==null)for(var t=e.length,n=0;n<t;n++);this.td=e}}},sorting:{get:function(){return this.nd},set:function(e){this.nd!==e&&(this.nd=e)}},comparer:{get:function(){return this.hd},set:function(e){this.hd!==e&&(this.hd=e)}},angle:{get:function(){return this.Kb},set:function(e){this.Kb!==e&&(this.Kb=e)}},alignment:{get:function(){return this.Jb},set:function(e){this.Jb!==e&&(this.Jb=e)}},nodeIndent:{get:function(){return this.Uq},set:function(e){this.Uq!==e&&(this.Uq=e)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(e){this.Vq!==e&&(this.Vq=e)}},nodeSpacing:{get:function(){return this.Wq},set:function(e){this.Wq!==e&&(this.Wq=e)}},layerSpacing:{get:function(){return this.ie},set:function(e){this.ie!==e&&(this.ie=e)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(e){this.Aq!==e&&(this.Aq=e)}},compaction:{get:function(){return this.Hp},set:function(e){this.Hp!==e&&(this.Hp=e)}},breadthLimit:{get:function(){return this.Ap},set:function(e){this.Ap!==e&&(this.Ap=e)}},rowSpacing:{get:function(){return this.nr},set:function(e){this.nr!==e&&(this.nr=e)}},rowIndent:{get:function(){return this.mr},set:function(e){this.mr!==e&&(this.mr=e)}},commentSpacing:{get:function(){return this.Gp},set:function(e){this.Gp!==e&&(this.Gp=e)}},commentMargin:{get:function(){return this.Fp},set:function(e){this.Fp!==e&&(this.Fp=e)}},setsPortSpot:{get:function(){return this.xr},set:function(e){this.xr!==e&&(this.xr=e)}},portSpot:{get:function(){return this.dr},set:function(e){this.dr.D(e)||(this.dr=e)}},setsChildPortSpot:{get:function(){return this.wr},set:function(e){this.wr!==e&&(this.wr=e)}},childPortSpot:{get:function(){return this.Dp},set:function(e){this.Dp.D(e)||(this.Dp=e)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(e){this.S.set(e)}},subtreeSize:{get:function(){return this.Da},set:function(e){this.Da.set(e)}},subtreeOffset:{get:function(){return this.la},set:function(e){this.la.set(e)}}}),$u.className="TreeVertex";function Wf(e){iu.call(this,e),this.$t=new ce(0,0)}fi(Wf,iu),Wf.prototype.commit=function(){var e=this.link;if(e!==null&&!e.isAvoiding){var t=this.network.layout,n=null,i=null;switch(t.ud){case jc:n=this.fromVertex,i=this.toVertex;break;case Qd:n=this.toVertex,i=this.fromVertex;break;default:ut("Unhandled path value "+t.ud.toString())}if(n!==null&&i!==null){var r=this.$t;if(r.x!==0||r.y!==0||n.qA){i=n.bounds;var o=rc(n),s=t.computeLayerSpacing(n),l=n.rowSpacing;e.vg();var u=e.curve===bu,f=e.isOrthogonal,p;if(e.uh(),f||u){for(p=2;4<e.pointsCount;)e.pv(2);var x=e.i(1),N=e.i(2)}else{for(p=1;3<e.pointsCount;)e.pv(1);x=e.i(0),N=e.i(e.pointsCount-1)}var O=e.i(e.pointsCount-1);o===0?(n.alignment===Wc?(o=i.bottom+r.y,r.y===0&&x.y>O.y+n.rowIndent&&(o=Math.min(o,Math.max(x.y,o-t.computeNodeIndent(n))))):n.alignment===Gc?(o=i.top+r.y,r.y===0&&x.y<O.y-n.rowIndent&&(o=Math.max(o,Math.min(x.y,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.top-n.la.y+r.y:i.y+i.height/2+r.y,u?(e.m(p,x.x,o),p++,e.m(p,i.right+s,o),p++,e.m(p,i.right+s+(r.x-l)/3,o),p++,e.m(p,i.right+s+2*(r.x-l)/3,o),p++,e.m(p,i.right+s+(r.x-l),o),p++,e.m(p,N.x,o)):(f&&(e.m(p,i.right+s/2,x.y),p++),e.m(p,i.right+s/2,o),p++,e.m(p,i.right+s+r.x-(f?l/2:l),o),p++,f&&e.m(p,e.i(p-1).x,N.y))):o===90?(n.alignment===Wc?(o=i.right+r.x,r.x===0&&x.x>O.x+n.rowIndent&&(o=Math.min(o,Math.max(x.x,o-t.computeNodeIndent(n))))):n.alignment===Gc?(o=i.left+r.x,r.x===0&&x.x<O.x-n.rowIndent&&(o=Math.max(o,Math.min(x.x,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.left-n.la.x+r.x:i.x+i.width/2+r.x,u?(e.m(p,o,x.y),p++,e.m(p,o,i.bottom+s),p++,e.m(p,o,i.bottom+s+(r.y-l)/3),p++,e.m(p,o,i.bottom+s+2*(r.y-l)/3),p++,e.m(p,o,i.bottom+s+(r.y-l)),p++,e.m(p,o,N.y)):(f&&(e.m(p,x.x,i.bottom+s/2),p++),e.m(p,o,i.bottom+s/2),p++,e.m(p,o,i.bottom+s+r.y-(f?l/2:l)),p++,f&&e.m(p,N.x,e.i(p-1).y))):o===180?(n.alignment===Wc?(o=i.bottom+r.y,r.y===0&&x.y>O.y+n.rowIndent&&(o=Math.min(o,Math.max(x.y,o-t.computeNodeIndent(n))))):n.alignment===Gc?(o=i.top+r.y,r.y===0&&x.y<O.y-n.rowIndent&&(o=Math.max(o,Math.min(x.y,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.top-n.la.y+r.y:i.y+i.height/2+r.y,u?(e.m(p,x.x,o),p++,e.m(p,i.left-s,o),p++,e.m(p,i.left-s+(r.x+l)/3,o),p++,e.m(p,i.left-s+2*(r.x+l)/3,o),p++,e.m(p,i.left-s+(r.x+l),o),p++,e.m(p,N.x,o)):(f&&(e.m(p,i.left-s/2,x.y),p++),e.m(p,i.left-s/2,o),p++,e.m(p,i.left-s+r.x+(f?l/2:l),o),p++,f&&e.m(p,e.i(p-1).x,N.y))):o===270?(n.alignment===Wc?(o=i.right+r.x,r.x===0&&x.x>O.x+n.rowIndent&&(o=Math.min(o,Math.max(x.x,o-t.computeNodeIndent(n))))):n.alignment===Gc?(o=i.left+r.x,r.x===0&&x.x<O.x-n.rowIndent&&(o=Math.max(o,Math.min(x.x,o+t.computeNodeIndent(n))))):o=n.hm||n.im&&n.maxGenerationCount===1?i.left-n.la.x+r.x:i.x+i.width/2+r.x,u?(e.m(p,o,x.y),p++,e.m(p,o,i.top-s),p++,e.m(p,o,i.top-s+(r.y+l)/3),p++,e.m(p,o,i.top-s+2*(r.y+l)/3),p++,e.m(p,o,i.top-s+(r.y+l)),p++,e.m(p,o,N.y)):(f&&(e.m(p,x.x,i.top-s/2),p++),e.m(p,o,i.top-s/2),p++,e.m(p,o,i.top-s+r.y+(f?l/2:l)),p++,f&&e.m(p,N.x,e.i(p-1).y))):ut("Invalid angle "+o),e.zf()}else r=i,e=this.link,i=this.network.layout,t=rc(n),t!==rc(r)&&(s=i.computeLayerSpacing(n),l=n.bounds,n=r.bounds,t===0&&n.left-l.right<s+1||t===90&&n.top-l.bottom<s+1||t===180&&l.left-n.right<s+1||t===270&&l.top-n.bottom<s+1||(e.vg(),n=e.curve===bu,r=e.isOrthogonal,i=td(this.fromVertex.alignment),e.uh(),t===0?(t=l.right+s/2,n?e.pointsCount===4&&(n=e.i(3).y,e.L(1,t-20,e.i(1).y),e.m(2,t-20,n),e.m(3,t,n),e.m(4,t+20,n),e.L(5,e.i(5).x,n)):r?i?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,t,e.i(2).y),e.L(3,t,e.i(3).y)):e.pointsCount===4?e.m(2,t,e.i(2).y):e.pointsCount===3?e.L(1,t,e.i(2).y):e.pointsCount===2&&e.m(1,t,e.i(1).y)):t===90?(t=l.bottom+s/2,n?e.pointsCount===4&&(n=e.i(3).x,e.L(1,e.i(1).x,t-20),e.m(2,n,t-20),e.m(3,n,t),e.m(4,n,t+20),e.L(5,n,e.i(5).y)):r?i?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,e.i(2).x,t),e.L(3,e.i(3).x,t)):e.pointsCount===4?e.m(2,e.i(2).x,t):e.pointsCount===3?e.L(1,e.i(2).x,t):e.pointsCount===2&&e.m(1,e.i(1).x,t)):t===180?(t=l.left-s/2,n?e.pointsCount===4&&(n=e.i(3).y,e.L(1,t+20,e.i(1).y),e.m(2,t+20,n),e.m(3,t,n),e.m(4,t-20,n),e.L(5,e.i(5).x,n)):r?i?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,t,e.i(2).y),e.L(3,t,e.i(3).y)):e.pointsCount===4?e.m(2,t,e.i(2).y):e.pointsCount===3?e.L(1,t,e.i(2).y):e.pointsCount===2&&e.m(1,t,e.i(1).y)):t===270&&(t=l.top-s/2,n?e.pointsCount===4&&(n=e.i(3).x,e.L(1,e.i(1).x,t+20),e.m(2,n,t+20),e.m(3,n,t),e.m(4,n,t-20),e.L(5,n,e.i(5).y)):r?i?e.L(3,e.i(2).x,e.i(4).y):e.pointsCount===6&&(e.L(2,e.i(2).x,t),e.L(3,e.i(3).x,t)):e.pointsCount===4?e.m(2,e.i(2).x,t):e.pointsCount===3?e.L(1,e.i(2).x,t):e.pointsCount===2&&e.m(1,e.i(1).x,t)),e.zf()))}}},at.Object.defineProperties(Wf.prototype,{fromVertex:{get:function(){return this.kd},set:function(e){this.kd!==e&&(this.kd=e)}},toVertex:{get:function(){return this.qd},set:function(e){this.qd!==e&&(this.qd=e)}},relativePoint:{get:function(){return this.$t},set:function(e){this.$t.set(e)}}}),Wf.className="TreeEdge",ao.prototype.initializeStandardTools=function(){this.gb("Action",new Ct,this.mouseDownTools),this.gb("Relinking",new U,this.mouseDownTools),this.gb("LinkReshaping",new le,this.mouseDownTools),this.gb("Rotating",new en,this.mouseDownTools),this.gb("Resizing",new gt,this.mouseDownTools),this.gb("Linking",new Rn,this.mouseMoveTools),this.gb("Dragging",new xo,this.mouseMoveTools),this.gb("DragSelecting",new ci,this.mouseMoveTools),this.gb("Panning",new ti,this.mouseMoveTools),this.gb("ContextMenu",new gi,this.mouseUpTools),this.gb("TextEditing",new Wn,this.mouseUpTools),this.gb("ClickCreating",new ai,this.mouseUpTools),this.gb("ClickSelecting",new un,this.mouseUpTools)},kc("Horizontal",new T0),kc("Spot",new A0),kc("Table",new I0),kc("Viewbox",new L0),kc("TableRow",new M0),kc("TableColumn",new O0),kc("Graduated",new bp),kc("Grid",new yp),pf.add("GraphLinksModel",ca),pf.add("TreeModel",Ru);var Qm=je.go,Yv={get licenseKey(){return Z.licenseKey},set licenseKey(e){Z.licenseKey=e},get version(){return Z.version},Group:Xi,EnumValue:qt,List:Xt,Set:Yt,Map:ii,Point:ce,Size:mi,Rect:Ht,Margin:vi,Spot:ui,Geometry:An,PathFigure:us,PathSegment:xr,InputEvent:Hs,DiagramEvent:uu,ChangedEvent:uo,Model:pi,GraphLinksModel:Tr,TreeModel:bl,Binding:Is,Transaction:ps,UndoManager:wo,CommandHandler:ve,Tool:or,DraggingTool:xo,DraggingInfo:Qc,DraggingOptions:c,LinkingBaseTool:Tt,LinkingTool:Rn,RelinkingTool:U,LinkReshapingTool:le,ResizingTool:gt,RotatingTool:en,ClickSelectingTool:un,ActionTool:Ct,ClickCreatingTool:ai,HTMLInfo:Xn,ContextMenuTool:gi,DragSelectingTool:ci,PanningTool:ti,TextEditingTool:Wn,ToolManager:ao,Animation:wr,AnimationManager:co,AnimationTrigger:Zs,Layer:g,Diagram:Z,Palette:y,Overview:w,Brush:Wr,GraphObject:nt,Panel:wn,RowColumnDefinition:_s,Shape:nr,TextBlock:vo,Picture:Fl,Part:Ei,Adornment:Fr,Node:Vn,Link:kn,Placeholder:ml,Layout:Do,LayoutNetwork:yo,LayoutVertex:Ws,LayoutEdge:iu,GridLayout:Sa,PanelLayout:Gs,CircularLayout:es,CircularNetwork:Uf,CircularVertex:Kp,CircularEdge:Om,ForceDirectedLayout:Ra,ForceDirectedNetwork:Zd,ForceDirectedVertex:Yp,ForceDirectedEdge:Zp,LayeredDigraphLayout:Kr,LayeredDigraphNetwork:$f,LayeredDigraphVertex:Pu,LayeredDigraphEdge:Jp,TreeLayout:pr,TreeNetwork:qd,TreeVertex:$u,TreeEdge:Wf};typeof Qm=="object"&&Qm.version&&Si("WARNING: a `go` object on the root object is already defined. "+("Debug"in Qm?"debug ":"")+"version: "+Qm.version+", replaced with version: "+Yv.version),Z.prototype.go=Yv,je.go=Yv,typeof J.exports=="object"&&(J.exports=typeof d.g!="undefined"?d.g.go:self.go)}();var b=typeof d.g!="undefined"?d.g.go:self.go;const I=typeof d.g!="undefined"?d.g.go:self.go,L=I.Group,B=I.EnumValue,V=I.List,Q=I.Set,M=I.Map,de=I.Point,he=I.Size,re=I.Rect,De=I.Margin,ne=I.Spot,it=I.Geometry,Ue=I.PathFigure,Ie=I.PathSegment,Pe=I.InputEvent,ze=I.DiagramEvent,Ee=I.ChangedEvent,fe=I.Model,we=I.GraphLinksModel,pe=I.TreeModel,Ne=I.Binding,te=I.Transaction,Ae=I.UndoManager,Te=I.CommandHandler,$e=I.Tool,Qe=I.DraggingTool,Je=I.DraggingInfo,Ce=I.LinkingBaseTool,dt=I.LinkingTool,Xe=I.RelinkingTool,$t=I.LinkReshapingTool,xt=I.ResizingTool,At=I.RotatingTool,St=I.ClickSelectingTool,Cn=I.ActionTool,Ye=I.ClickCreatingTool,oe=I.HTMLInfo,H=I.ContextMenuTool,Ot=I.DragSelectingTool,Kt=I.PanningTool,vt=I.TextEditingTool,hn=I.ToolManager,Rt=I.Animation,hi=I.AnimationManager,yt=I.AnimationTrigger,si=I.Layer,qn=I.Diagram,ln=I.Palette,Tn=I.Overview,xe=I.Brush,D=I.GraphObject,k=I.Panel,G=I.RowColumnDefinition,X=I.Shape,T=I.TextBlock,Re=I.TextBlockMetrics,mt=I.Picture,_e=I.Part,Le=I.Adornment,ct=I.Node,ot=I.Link,Ze=I.Placeholder,Et=I.Layout,Gt=I.LayoutNetwork,Vt=I.LayoutVertex,Pt=I.LayoutEdge,nn=I.GridLayout,vn=I.PanelLayout,We=I.CircularLayout,Dt=I.CircularNetwork,Qt=I.CircularVertex,bn=I.CircularEdge,$n=I.ForceDirectedLayout,Un=I.ForceDirectedNetwork,kt=I.ForceDirectedVertex,Hn=I.ForceDirectedEdge,Jn=I.LayeredDigraphLayout,tt=I.LayeredDigraphNetwork,j=I.LayeredDigraphVertex,Oi=I.LayeredDigraphEdge,tr=I.TreeLayout,Gn=I.TreeNetwork,Ti=I.TreeVertex,Er=I.TreeEdge,Zi=I.version},46963:function(J){"use strict";J.exports=d;var C=/[#.]/g;function d(b,I){for(var L=b||"",B=I||"div",V={},Q=0,M,de,he;Q<L.length;)C.lastIndex=Q,he=C.exec(L),M=L.slice(Q,he?he.index:L.length),M&&(de?de==="#"?V.id=M:V.className?V.className.push(M):V.className=[M]:B=M,Q+=M.length),he&&(de=he[0],Q++);return{type:"element",tagName:B,properties:V,children:[]}}},5641:function(J,C,d){"use strict";var b=d(88914),I=d(47178),L=d(46963),B=d(49063).Q,V=d(58951).Q;J.exports=M;var Q={}.hasOwnProperty;function M(Ie,Pe,ze){var Ee=ze?Ue(ze):null;return fe;function fe(pe,Ne){var te=L(pe,Pe),Ae=Array.prototype.slice.call(arguments,2),Te=te.tagName.toLowerCase(),$e;if(te.tagName=Ee&&Q.call(Ee,Te)?Ee[Te]:Te,Ne&&de(Ne,te)&&(Ae.unshift(Ne),Ne=null),Ne)for($e in Ne)we(te.properties,$e,Ne[$e]);return re(te.children,Ae),te.tagName==="template"&&(te.content={type:"root",children:te.children},te.children=[]),te}function we(pe,Ne,te){var Ae,Te,$e;te==null||te!==te||(Ae=b(Ie,Ne),Te=Ae.property,$e=te,typeof $e=="string"&&(Ae.spaceSeparated?$e=B($e):Ae.commaSeparated?$e=V($e):Ae.commaOrSpaceSeparated&&($e=B(V($e).join(" ")))),Te==="style"&&typeof te!="string"&&($e=it($e)),Te==="className"&&pe.className&&($e=pe.className.concat($e)),pe[Te]=De(Ae,Te,$e))}}function de(Ie,Pe){return typeof Ie=="string"||"length"in Ie||he(Pe.tagName,Ie)}function he(Ie,Pe){var ze=Pe.type;return Ie==="input"||!ze||typeof ze!="string"?!1:typeof Pe.children=="object"&&"length"in Pe.children?!0:(ze=ze.toLowerCase(),Ie==="button"?ze!=="menu"&&ze!=="submit"&&ze!=="reset"&&ze!=="button":"value"in Pe)}function re(Ie,Pe){var ze,Ee;if(typeof Pe=="string"||typeof Pe=="number"){Ie.push({type:"text",value:String(Pe)});return}if(typeof Pe=="object"&&"length"in Pe){for(ze=-1,Ee=Pe.length;++ze<Ee;)re(Ie,Pe[ze]);return}if(typeof Pe!="object"||!("type"in Pe))throw new Error("Expected node, nodes, or string, got `"+Pe+"`");Ie.push(Pe)}function De(Ie,Pe,ze){var Ee,fe,we;if(typeof ze!="object"||!("length"in ze))return ne(Ie,Pe,ze);for(fe=ze.length,Ee=-1,we=[];++Ee<fe;)we[Ee]=ne(Ie,Pe,ze[Ee]);return we}function ne(Ie,Pe,ze){var Ee=ze;return Ie.number||Ie.positiveNumber?!isNaN(Ee)&&Ee!==""&&(Ee=Number(Ee)):(Ie.boolean||Ie.overloadedBoolean)&&typeof Ee=="string"&&(Ee===""||I(ze)===I(Pe))&&(Ee=!0),Ee}function it(Ie){var Pe=[],ze;for(ze in Ie)Pe.push([ze,Ie[ze]].join(": "));return Pe.join("; ")}function Ue(Ie){for(var Pe=Ie.length,ze=-1,Ee={},fe;++ze<Pe;)fe=Ie[ze],Ee[fe.toLowerCase()]=fe;return Ee}},82073:function(J,C,d){"use strict";var b=d(18795),I=d(5641),L=I(b,"div");L.displayName="html",J.exports=L},43621:function(J,C,d){"use strict";J.exports=d(82073)},93193:function(J){var C=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,d=/\n/g,b=/^\s*/,I=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,L=/^:\s*/,B=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,V=/^[;\s]*/,Q=/^\s+|\s+$/g,M=`
|
|
|
`,de="/",he="*",re="",De="comment",ne="declaration";J.exports=function(Ue,Ie){if(typeof Ue!="string")throw new TypeError("First argument must be a string");if(!Ue)return[];Ie=Ie||{};var Pe=1,ze=1;function Ee(Ce){var dt=Ce.match(d);dt&&(Pe+=dt.length);var Xe=Ce.lastIndexOf(M);ze=~Xe?Ce.length-Xe:ze+Ce.length}function fe(){var Ce={line:Pe,column:ze};return function(dt){return dt.position=new we(Ce),Ae(),dt}}function we(Ce){this.start=Ce,this.end={line:Pe,column:ze},this.source=Ie.source}we.prototype.content=Ue;var pe=[];function Ne(Ce){var dt=new Error(Ie.source+":"+Pe+":"+ze+": "+Ce);if(dt.reason=Ce,dt.filename=Ie.source,dt.line=Pe,dt.column=ze,dt.source=Ue,Ie.silent)pe.push(dt);else throw dt}function te(Ce){var dt=Ce.exec(Ue);if(dt){var Xe=dt[0];return Ee(Xe),Ue=Ue.slice(Xe.length),dt}}function Ae(){te(b)}function Te(Ce){var dt;for(Ce=Ce||[];dt=$e();)dt!==!1&&Ce.push(dt);return Ce}function $e(){var Ce=fe();if(!(de!=Ue.charAt(0)||he!=Ue.charAt(1))){for(var dt=2;re!=Ue.charAt(dt)&&(he!=Ue.charAt(dt)||de!=Ue.charAt(dt+1));)++dt;if(dt+=2,re===Ue.charAt(dt-1))return Ne("End of comment missing");var Xe=Ue.slice(2,dt-2);return ze+=2,Ee(Xe),Ue=Ue.slice(dt),ze+=2,Ce({type:De,comment:Xe})}}function Qe(){var Ce=fe(),dt=te(I);if(dt){if($e(),!te(L))return Ne("property missing ':'");var Xe=te(B),$t=Ce({type:ne,property:it(dt[0].replace(C,re)),value:Xe?it(Xe[0].replace(C,re)):re});return te(V),$t}}function Je(){var Ce=[];Te(Ce);for(var dt;dt=Qe();)dt!==!1&&(Ce.push(dt),Te(Ce));return Ce}return Ae(),Je()};function it(Ue){return Ue?Ue.replace(Q,re):re}},91241:function(J){"use strict";J.exports=C;function C(d){var b=typeof d=="string"?d.charCodeAt(0):d;return b>=97&&b<=122||b>=65&&b<=90}},21127:function(J,C,d){"use strict";var b=d(91241),I=d(22347);J.exports=L;function L(B){return b(B)||I(B)}},22347:function(J){"use strict";J.exports=C;function C(d){var b=typeof d=="string"?d.charCodeAt(0):d;return b>=48&&b<=57}},65207:function(J){"use strict";J.exports=C;function C(d){var b=typeof d=="string"?d.charCodeAt(0):d;return b>=97&&b<=102||b>=65&&b<=70||b>=48&&b<=57}},2859:function(J,C,d){"use strict";d.d(C,{hP:function(){return Tn}});var b=function(xe,D){return(b=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(k,G){k.__proto__=G}||function(k,G){for(var X in G)Object.prototype.hasOwnProperty.call(G,X)&&(k[X]=G[X])})(xe,D)};function I(xe,D){function k(){this.constructor=xe}b(xe,D),xe.prototype=D===null?Object.create(D):(k.prototype=D.prototype,new k)}function L(xe,D,k,G){return new(k||(k=Promise))(function(X,T){function Re(Le){try{_e(G.next(Le))}catch(ct){T(ct)}}function mt(Le){try{_e(G.throw(Le))}catch(ct){T(ct)}}function _e(Le){var ct;Le.done?X(Le.value):(ct=Le.value,ct instanceof k?ct:new k(function(ot){ot(ct)})).then(Re,mt)}_e((G=G.apply(xe,D||[])).next())})}function B(xe,D){var k,G,X,T,Re={label:0,sent:function(){if(1&X[0])throw X[1];return X[1]},trys:[],ops:[]};return T={next:mt(0),throw:mt(1),return:mt(2)},typeof Symbol=="function"&&(T[Symbol.iterator]=function(){return this}),T;function mt(_e){return function(Le){return function(ct){if(k)throw new TypeError("Generator is already executing.");for(;Re;)try{if(k=1,G&&(X=2&ct[0]?G.return:ct[0]?G.throw||((X=G.return)&&X.call(G),0):G.next)&&!(X=X.call(G,ct[1])).done)return X;switch(G=0,X&&(ct=[2&ct[0],X.value]),ct[0]){case 0:case 1:X=ct;break;case 4:return Re.label++,{value:ct[1],done:!1};case 5:Re.label++,G=ct[1],ct=[0];continue;case 7:ct=Re.ops.pop(),Re.trys.pop();continue;default:if(X=Re.trys,!((X=X.length>0&&X[X.length-1])||ct[0]!==6&&ct[0]!==2)){Re=0;continue}if(ct[0]===3&&(!X||ct[1]>X[0]&&ct[1]<X[3])){Re.label=ct[1];break}if(ct[0]===6&&Re.label<X[1]){Re.label=X[1],X=ct;break}if(X&&Re.label<X[2]){Re.label=X[2],Re.ops.push(ct);break}X[2]&&Re.ops.pop(),Re.trys.pop();continue}ct=D.call(xe,Re)}catch(ot){ct=[6,ot],G=0}finally{k=X=0}if(5&ct[0])throw ct[1];return{value:ct[0]?ct[1]:void 0,done:!0}}([_e,Le])}}}function V(){for(var xe=0,D=0,k=arguments.length;D<k;D++)xe+=arguments[D].length;var G=Array(xe),X=0;for(D=0;D<k;D++)for(var T=arguments[D],Re=0,mt=T.length;Re<mt;Re++,X++)G[X]=T[Re];return G}var Q=function(){function xe(){}return xe.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},xe.setAttributes=function(D,k){for(var G=0,X=k;G<X.length;G++){var T=X[G],Re=T[0],mt=T[1];D.setAttribute(Re,mt)}},xe.createRect=function(D,k,G){var X=document.createElementNS("http://www.w3.org/2000/svg","rect");return X.setAttribute("width",D.toString()),X.setAttribute("height",k.toString()),G&&xe.setAttributes(X,G),X},xe.createLine=function(D,k,G,X,T){var Re=document.createElementNS("http://www.w3.org/2000/svg","line");return Re.setAttribute("x1",D.toString()),Re.setAttribute("y1",k.toString()),Re.setAttribute("x2",G.toString()),Re.setAttribute("y2",X.toString()),T&&xe.setAttributes(Re,T),Re},xe.createPolygon=function(D,k){var G=document.createElementNS("http://www.w3.org/2000/svg","polygon");return G.setAttribute("points",D),k&&xe.setAttributes(G,k),G},xe.createCircle=function(D,k){var G=document.createElementNS("http://www.w3.org/2000/svg","circle");return G.setAttribute("cx",(D/2).toString()),G.setAttribute("cy",(D/2).toString()),G.setAttribute("r",D.toString()),k&&xe.setAttributes(G,k),G},xe.createEllipse=function(D,k,G){var X=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return X.setAttribute("cx",(D/2).toString()),X.setAttribute("cy",(k/2).toString()),X.setAttribute("rx",(D/2).toString()),X.setAttribute("ry",(k/2).toString()),G&&xe.setAttributes(X,G),X},xe.createGroup=function(D){var k=document.createElementNS("http://www.w3.org/2000/svg","g");return D&&xe.setAttributes(k,D),k},xe.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},xe.createMarker=function(D,k,G,X,T,Re,mt){var _e=document.createElementNS("http://www.w3.org/2000/svg","marker");return xe.setAttributes(_e,[["id",D],["orient",k],["markerWidth",G.toString()],["markerHeight",X.toString()],["refX",T.toString()],["refY",Re.toString()]]),_e.appendChild(mt),_e},xe.createText=function(D){var k=document.createElementNS("http://www.w3.org/2000/svg","text");return k.setAttribute("x","0"),k.setAttribute("y","0"),D&&xe.setAttributes(k,D),k},xe.createTSpan=function(D,k){var G=document.createElementNS("http://www.w3.org/2000/svg","tspan");return G.textContent=D,k&&xe.setAttributes(G,k),G},xe.createImage=function(D){var k=document.createElementNS("http://www.w3.org/2000/svg","image");return D&&xe.setAttributes(k,D),k},xe.createPoint=function(D,k){var G=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return G.x=D,G.y=k,G},xe.createPath=function(D,k){var G=document.createElementNS("http://www.w3.org/2000/svg","path");return G.setAttribute("d",D),k&&xe.setAttributes(G,k),G},xe}(),M=function(){function xe(){}return xe.addKey=function(D){xe.key=D},Object.defineProperty(xe,"isLicensed",{get:function(){return!!xe.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(xe.key)},enumerable:!1,configurable:!0}),xe}(),de=function(){function xe(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return xe.prototype.rasterize=function(D,k,G){var X=this;return new Promise(function(T){var Re=G!==void 0?G:document.createElement("canvas");D===null&&(X.markersOnly=!0,X.naturalSize=!1);var mt=document.createElementNS("http://www.w3.org/2000/svg","svg");mt.setAttribute("xmlns","http://www.w3.org/2000/svg"),mt.setAttribute("width",k.width.baseVal.valueAsString),mt.setAttribute("height",k.height.baseVal.valueAsString),mt.setAttribute("viewBox","0 0 "+k.viewBox.baseVal.width.toString()+" "+k.viewBox.baseVal.height.toString()),mt.innerHTML=k.innerHTML,X.naturalSize===!0?(mt.width.baseVal.value=D.naturalWidth,mt.height.baseVal.value=D.naturalHeight):X.width!==void 0&&X.height!==void 0&&(mt.width.baseVal.value=X.width,mt.height.baseVal.value=X.height),Re.width=mt.width.baseVal.value,Re.height=mt.height.baseVal.value;var _e=mt.outerHTML,Le=Re.getContext("2d");X.markersOnly!==!0&&Le.drawImage(D,0,0,Re.width,Re.height);var ct=window.URL,ot=new Image(Re.width,Re.height);ot.setAttribute("crossOrigin","anonymous");var Ze=new Blob([_e],{type:"image/svg+xml"}),Et=ct.createObjectURL(Ze);ot.onload=function(){Le.drawImage(ot,0,0),ct.revokeObjectURL(Et);var Gt=Re.toDataURL(X.imageType,X.imageQuality);T(Gt)},ot.src=Et})},xe}(),he=function(){},re=function(){function xe(D){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+D+"_"}return Object.defineProperty(xe.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(xe.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(xe.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),xe.prototype.addClass=function(D){return this.styleSheet===void 0&&this.addStyleSheet(),D.name=""+this.classNamePrefix+D.localName,this.classes.push(D),this.styleSheet.sheet.insertRule("."+D.name+" {"+D.style+"}",this.styleSheet.sheet.cssRules.length),D},xe.prototype.addRule=function(D){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(D),this.styleSheet.sheet.insertRule(D.selector+" {"+D.style+"}",this.styleSheet.sheet.cssRules.length)},xe.prototype.addStyleSheet=function(){var D;this.styleSheet=document.createElement("style"),((D=this.styleSheetRoot)!==null&&D!==void 0?D:document.head).appendChild(this.styleSheet),this.addRule(new De("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new De("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
|
from {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
`)),this.addRule(new De("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
|
from {
|
|
|
opacity: 1;
|
|
|
}
|
|
|
to {
|
|
|
opacity: 0;
|
|
|
}
|
|
|
`)),this.addClass(new ne("fade_in",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
|
`)),this.addClass(new ne("fade_out",`
|
|
|
animation-duration: 0.3s;
|
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
|
`))},xe.prototype.removeStyleSheet=function(){var D;this.styleSheet&&(((D=this.styleSheetRoot)!==null&&D!==void 0?D:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},xe}(),De=function(xe,D){this.selector=xe,this.style=D},ne=function(xe,D){this.localName=xe,this.style=D},it=function(){function xe(D,k,G,X,T){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=D,this.displayMode=k,this.markerItems=G,this.uiStyleSettings=X,this.styles=T,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return xe.prototype.show=function(D){var k=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=D,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var G=document.createElement("div");G.className=this.toolbarBlockStyleClass.name,G.style.whiteSpace="nowrap",this.uiContainer.appendChild(G),this.addActionButton(G,'<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(G,'<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(G,'<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(G,'<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(G,'<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(G,'<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(G,'<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(G,'<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(T){var Re=document.createElement("div");Re.className=""+k.toolbarButtonStyleClass.name,Re.setAttribute("data-type-name",T.typeName),Re.innerHTML=T.icon,Re.addEventListener("click",function(){k.markerToolbarButtonClicked(Re,T)}),k.buttons.push(Re),k.markerButtons.push(Re)}),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 X=document.createElement("div");X.className=this.toolbarBlockStyleClass.name,X.style.whiteSpace="nowrap",X.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(X),this.addActionButton(X,'<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(X,'<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()},xe.prototype.addButtonClickListener=function(D){this.buttonClickListeners.push(D)},xe.prototype.removeButtonClickListener=function(D){this.buttonClickListeners.indexOf(D)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(D),1)},xe.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},xe.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var D=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var k=0;k<this.markerButtons.length;k++)k<D||k===D&&this.markerButtons.length-1===D?this.markerButtonBlock.appendChild(this.markerButtons[k]):(k===D&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[k]))}},xe.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")},xe.prototype.resetButtonStyles=function(){var D=this;this.buttons.forEach(function(k){k.className=k.className.replace(D.uiStyleSettings.toolbarButtonStyleColorsClassName?D.uiStyleSettings.toolbarButtonStyleColorsClassName:D.toolbarButtonStyleColorsClass.name,"").trim(),k.className=k.className.replace(D.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?D.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:D.toolbarActiveButtonStyleColorsClass.name,"").trim(),k.className+=" "+(D.uiStyleSettings.toolbarButtonStyleColorsClassName?D.uiStyleSettings.toolbarButtonStyleColorsClassName:D.toolbarButtonStyleColorsClass.name)})},xe.prototype.addActionButton=function(D,k,G){var X=this,T=document.createElement("div");switch(T.className=""+this.toolbarButtonStyleClass.name,T.innerHTML=k,T.setAttribute("data-action",G),T.addEventListener("click",function(){X.actionToolbarButtonClicked(T,G)}),G){case"select":T.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":T.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":T.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":T.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":T.style.fill=this.uiStyleSettings.closeButtonColor}D.appendChild(T),this.buttons.push(T)},xe.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new ne("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 ne("toolbar_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new ne("toolbar-block",`
|
|
|
display: inline-block;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new ne("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 ne("toolbar-overflow-block_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`));var D=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new ne("toolbar_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*D)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*D)+`px;
|
|
|
padding: `+D+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new ne("toolbar_button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new ne("toolbar_active_button",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new De("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`)),this.styles.addRule(new De("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`))},xe.prototype.markerToolbarButtonClicked=function(D,k){this.setActiveButton(D),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(G){return G("marker",k)}),this.markerButtonOverflowBlock.style.display="none"},xe.prototype.actionToolbarButtonClicked=function(D,k){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(G){return G("action",k)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},xe.prototype.setActiveButton=function(D){this.resetButtonStyles(),D.className=D.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),D.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},xe.prototype.setActiveMarkerButton=function(D){var k=this.markerButtons.find(function(G){return G.getAttribute("data-type-name")===D});k&&this.setActiveButton(k)},xe.prototype.setCurrentMarker=function(D){var k=this;this.currentMarker=D,this.buttons.filter(function(G){return/delete|notes/.test(G.getAttribute("data-action"))}).forEach(function(G){k.currentMarker===void 0?(G.style.fillOpacity="0.4",G.style.pointerEvents="none"):(G.style.fillOpacity="1",G.style.pointerEvents="all")})},xe}(),Ue=function(){function xe(D,k,G,X){this.panels=[],this.panelButtons=[],this.markerjsContainer=D,this.displayMode=k,this.uiStyleSettings=G,this.styles=X,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return xe.prototype.addStyles=function(){var D;this.toolboxStyleClass=this.styles.addClass(new ne("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 ne("toolbox_colors",`
|
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
|
`));var k=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new ne("toolbox-button-row",`
|
|
|
display: flex;
|
|
|
cursor: default;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new ne("toolbox-button-row_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new ne("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 ne("toolbox-panel-row_colors",`
|
|
|
background-color: `+((D=this.uiStyleSettings.toolboxBackgroundColor)!==null&&D!==void 0?D:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new ne("toolbox_button",`
|
|
|
display: inline-block;
|
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*k)+`px;
|
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*k)+`px;
|
|
|
padding: `+k+`px;
|
|
|
box-sizing: content-box;
|
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new ne("toolbox-button_colors",`
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new ne("toolbox-active-button_colors",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
|
`)),this.styles.addRule(new De("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
|
`)),this.styles.addRule(new De("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
|
`))},xe.prototype.show=function(D){var k;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=D,this.uiContainer.className=this.toolboxStyleClass.name+" "+((k=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&k!==void 0?k:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},xe.prototype.setPanelButtons=function(D){var k,G,X=this;this.panels=D,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((k=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&k!==void 0?k:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((G=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&G!==void 0?G:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(T){var Re;T.uiStyleSettings=X.uiStyleSettings;var mt=document.createElement("div");mt.className=X.toolboxButtonStyleClass.name+" "+((Re=X.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Re!==void 0?Re:X.toolboxButtonStyleColorsClass.name),mt.innerHTML=T.icon,mt.title=T.title,mt.addEventListener("click",function(){X.panelButtonClick(T)}),X.panelButtons.push(mt),X.buttonRow.appendChild(mt)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},xe.prototype.panelButtonClick=function(D){var k=this,G=-1;if(D!==this.activePanel){G=this.panels.indexOf(D),this.panelRow.innerHTML="";var X=D.getUi();X.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(X),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=D}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){k.displayMode==="inline"?k.panelRow.style.display="none":k.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(T,Re){var mt,_e;T.className=k.toolboxButtonStyleClass.name+" "+(Re===G?""+((mt=k.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&mt!==void 0?mt:k.toolboxActiveButtonStyleColorsClass.name):""+((_e=k.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&_e!==void 0?_e:k.toolboxButtonStyleColorsClass.name))})},xe}(),Ie=function(xe,D){this.title=xe,this.icon=D},Pe=function(xe){function D(k,G,X,T){var Re=xe.call(this,k,T||'<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 Re.colors=[],Re.addTransparent=!1,Re.colorBoxes=[],Re.colors=G,Re.currentColor=X,Re.setCurrentColor=Re.setCurrentColor.bind(Re),Re.getColorBox=Re.getColorBox.bind(Re),Re}return I(D,xe),D.prototype.getUi=function(){var k=this,G=document.createElement("div");return G.style.overflow="hidden",G.style.whiteSpace="nowrap",this.colors.forEach(function(X){var T=k.getColorBox(X);G.appendChild(T),k.colorBoxes.push(T)}),G},D.prototype.getColorBox=function(k){var G=this,X=this.uiStyleSettings.toolbarHeight/4,T=this.uiStyleSettings.toolbarHeight-X,Re=document.createElement("div");Re.style.display="inline-block",Re.style.boxSizing="content-box",Re.style.width=T-2+"px",Re.style.height=T-2+"px",Re.style.padding="1px",Re.style.marginRight="2px",Re.style.marginBottom="2px",Re.style.borderWidth="2px",Re.style.borderStyle="solid",Re.style.borderRadius=(T+2)/2+"px",Re.style.borderColor=k===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",Re.addEventListener("click",function(){G.setCurrentColor(k,Re)});var mt=document.createElement("div");return mt.style.display="inline-block",mt.style.width=T-2+"px",mt.style.height=T-2+"px",mt.style.backgroundColor=k,mt.style.borderRadius=T/2+"px",k==="transparent"&&(mt.style.fill=this.uiStyleSettings.toolboxAccentColor,mt.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>`),Re.appendChild(mt),Re},D.prototype.setCurrentColor=function(k,G){var X=this;this.currentColor=k,this.colorBoxes.forEach(function(T){T.style.borderColor=T===G?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(k)},D}(Ie),ze=function(){function xe(D,k,G){this._state="new",this._isSelected=!1,this._container=D,this._overlayContainer=k,this.globalSettings=G,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(xe.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),xe.prototype.ownsTarget=function(D){return!1},Object.defineProperty(xe.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),xe.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},xe.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},xe.prototype.pointerDown=function(D,k){},xe.prototype.dblClick=function(D,k){},xe.prototype.manipulate=function(D){},xe.prototype.pointerUp=function(D){this.stateChanged()},xe.prototype.dispose=function(){},xe.prototype.addMarkerVisualToContainer=function(D){this.container.childNodes.length>0?this.container.insertBefore(D,this.container.childNodes[0]):this.container.appendChild(D)},xe.prototype.getState=function(){return{typeName:xe.typeName,state:this.state,notes:this.notes}},xe.prototype.restoreState=function(D){this._state=D.state,this.notes=D.notes},xe.prototype.scale=function(D,k){},xe.prototype.colorChanged=function(D){this.onColorChanged&&this.onColorChanged(D),this.stateChanged()},xe.prototype.fillColorChanged=function(D){this.onFillColorChanged&&this.onFillColorChanged(D),this.stateChanged()},xe.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var D=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),D.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(D)&&this.onStateChanged(this)}},xe.typeName="MarkerBase",xe}(),Ee=function(){function xe(){this.findGripByVisual=this.findGripByVisual.bind(this)}return xe.prototype.findGripByVisual=function(D){return this.topLeft.ownsTarget(D)?this.topLeft:this.topCenter.ownsTarget(D)?this.topCenter:this.topRight.ownsTarget(D)?this.topRight:this.centerLeft.ownsTarget(D)?this.centerLeft:this.centerRight.ownsTarget(D)?this.centerRight:this.bottomLeft.ownsTarget(D)?this.bottomLeft:this.bottomCenter.ownsTarget(D)?this.bottomCenter:this.bottomRight.ownsTarget(D)?this.bottomRight:void 0},xe}(),fe=function(){function xe(){this.GRIP_SIZE=10,this.visual=Q.createGroup(),this.visual.appendChild(Q.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(Q.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return xe.prototype.ownsTarget=function(D){return D===this.visual||D===this.visual.childNodes[0]||D===this.visual.childNodes[1]},xe}(),we=function(){function xe(){}return xe.toITransformMatrix=function(D){return{a:D.a,b:D.b,c:D.c,d:D.d,e:D.e,f:D.f}},xe.toSVGMatrix=function(D,k){return D.a=k.a,D.b=k.b,D.c=k.c,D.d=k.d,D.e=k.e,D.f=k.f,D},xe}(),pe=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.left=0,T.top=0,T.width=0,T.height=0,T.defaultSize={x:50,y:20},T.offsetX=0,T.offsetY=0,T.rotationAngle=0,T.CB_DISTANCE=10,T._suppressMarkerCreateEvent=!1,T.container.transform.baseVal.appendItem(Q.createTransform()),T.setupControlBox(),T}return I(D,xe),Object.defineProperty(D.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(D.prototype,"visual",{get:function(){return this._visual},set:function(k){this._visual=k;var G=Q.createTransform();this._visual.transform.baseVal.appendItem(G)},enumerable:!1,configurable:!0}),D.prototype.ownsTarget=function(k){return!!xe.prototype.ownsTarget.call(this,k)||!!(this.controlGrips.findGripByVisual(k)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(k))},D.prototype.pointerDown=function(k,G){xe.prototype.pointerDown.call(this,k,G),this.state==="new"&&(this.left=k.x,this.top=k.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var X=this.unrotatePoint(k);if(this.manipulationStartX=X.x,this.manipulationStartY=X.y,this.offsetX=X.x-this.left,this.offsetY=X.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(G),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(G)){this.activeGrip=this.rotatorGrip;var T=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=T.x-this.width/2,this.top=T.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var Re=this.container.transform.baseVal.getItem(0);Re.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(Re,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},D.prototype.pointerUp=function(k){var G=this.state;xe.prototype.pointerUp.call(this,k),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(k),this._state="select",G==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},D.prototype.moveVisual=function(k){this.visual.style.transform="translate("+k.x+"px, "+k.y+"px)"},D.prototype.manipulate=function(k){var G=this.unrotatePoint(k);this.state==="creating"?this.resize(k):this.state==="move"?(this.left=this.manipulationStartLeft+(G.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(G.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(G):this.state==="rotate"&&this.rotate(k)},D.prototype.resize=function(k){var G=this.manipulationStartLeft,X=this.manipulationStartWidth,T=this.manipulationStartTop,Re=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:G=this.manipulationStartLeft+k.x-this.manipulationStartX,X=this.manipulationStartWidth+this.manipulationStartLeft-G;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:X=this.manipulationStartWidth+k.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:T=this.manipulationStartTop+k.y-this.manipulationStartY,Re=this.manipulationStartHeight+this.manipulationStartTop-T;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:Re=this.manipulationStartHeight+k.y-this.manipulationStartY}X>=0?(this.left=G,this.width=X):(this.left=G+X,this.width=-X),Re>=0?(this.top=T,this.height=Re):(this.top=T+Re,this.height=-Re),this.setSize()},D.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},D.prototype.rotate=function(k){if(Math.abs(k.x-this.centerX)>.1){var G=Math.sign(k.x-this.centerX);this.rotationAngle=180*Math.atan((k.y-this.centerY)/(k.x-this.centerX))/Math.PI+90*G,this.applyRotation()}},D.prototype.applyRotation=function(){var k=this.container.transform.baseVal.getItem(0);k.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(k,0)},D.prototype.rotatePoint=function(k){if(this.rotationAngle===0)return k;var G=this.container.getCTM(),X=Q.createPoint(k.x,k.y);return{x:(X=X.matrixTransform(G)).x,y:X.y}},D.prototype.unrotatePoint=function(k){if(this.rotationAngle===0)return k;var G=this.container.getCTM();G=G.inverse();var X=Q.createPoint(k.x,k.y);return{x:(X=X.matrixTransform(G)).x,y:X.y}},D.prototype.select=function(){xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},D.prototype.deselect=function(){xe.prototype.deselect.call(this),this.controlBox.style.display="none"},D.prototype.setupControlBox=function(){this.controlBox=Q.createGroup();var k=Q.createTransform();k.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(k),this.container.appendChild(this.controlBox),this.controlRect=Q.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=Q.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 Ee,this.addControlGrips(),this.controlBox.style.display="none"},D.prototype.adjustControlBox=function(){var k=this.controlBox.transform.baseVal.getItem(0);k.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(k,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()},D.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()},D.prototype.createGrip=function(){var k=new fe;return k.visual.transform.baseVal.appendItem(Q.createTransform()),this.controlBox.appendChild(k.visual),k},D.prototype.positionGrips=function(){var k=this.controlGrips.topLeft.GRIP_SIZE,G=-k/2,X=G,T=(this.width+this.CB_DISTANCE)/2-k/2,Re=(this.height+this.CB_DISTANCE)/2-k/2,mt=this.height+this.CB_DISTANCE-k/2,_e=this.width+this.CB_DISTANCE-k/2;this.positionGrip(this.controlGrips.topLeft.visual,G,X),this.positionGrip(this.controlGrips.topCenter.visual,T,X),this.positionGrip(this.controlGrips.topRight.visual,_e,X),this.positionGrip(this.controlGrips.centerLeft.visual,G,Re),this.positionGrip(this.controlGrips.centerRight.visual,_e,Re),this.positionGrip(this.controlGrips.bottomLeft.visual,G,mt),this.positionGrip(this.controlGrips.bottomCenter.visual,T,mt),this.positionGrip(this.controlGrips.bottomRight.visual,_e,mt),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,T,X-3*this.CB_DISTANCE)},D.prototype.positionGrip=function(k,G,X){var T=k.transform.baseVal.getItem(0);T.setTranslate(G,X),k.transform.baseVal.replaceItem(T,0)},D.prototype.hideControlBox=function(){this.controlBox.style.display="none"},D.prototype.showControlBox=function(){this.controlBox.style.display=""},D.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:we.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:we.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},xe.prototype.getState.call(this))},D.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var G=k;this.left=G.left,this.top=G.top,this.width=G.width,this.height=G.height,this.rotationAngle=G.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(we.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,G.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(we.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,G.containerTransformMatrix))},D.prototype.scale=function(k,G){xe.prototype.scale.call(this,k,G);var X=this.rotatePoint({x:this.left,y:this.top}),T=this.unrotatePoint({x:X.x*k,y:X.y*G});this.left=T.x,this.top=T.y,this.width=this.width*k,this.height=this.height*G,this.adjustControlBox()},D}(ze),Ne=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.fillColor="transparent",T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.opacity=1,T.setStrokeColor=T.setStrokeColor.bind(T),T.setFillColor=T.setFillColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.createVisual=T.createVisual.bind(T),T}return I(D,xe),D.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual)},D.prototype.createVisual=function(){this.visual=Q.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)},D.prototype.pointerDown=function(k,G){xe.prototype.pointerDown.call(this,k,G),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},D.prototype.manipulate=function(k){xe.prototype.manipulate.call(this,k)},D.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.setSize()},D.prototype.setSize=function(){xe.prototype.setSize.call(this),Q.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},D.prototype.pointerUp=function(k){xe.prototype.pointerUp.call(this,k),this.setSize()},D.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&Q.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},D.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&Q.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},D.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&Q.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},D.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&Q.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},D.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},xe.prototype.getState.call(this))},D.prototype.restoreState=function(k){var G=k;this.fillColor=G.fillColor,this.strokeColor=G.strokeColor,this.strokeWidth=G.strokeWidth,this.strokeDasharray=G.strokeDasharray,this.opacity=G.opacity,this.createVisual(),xe.prototype.restoreState.call(this,k),this.setSize()},D.prototype.scale=function(k,G){xe.prototype.scale.call(this,k,G),this.setSize()},D.title="Rectangle marker",D}(pe),te=function(xe){function D(k,G,X,T){var Re=xe.call(this,k,T||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return Re.widths=[],Re.widthBoxes=[],Re.widths=G,Re.currentWidth=X,Re.setCurrentWidth=Re.setCurrentWidth.bind(Re),Re}return I(D,xe),D.prototype.getUi=function(){var k=this,G=document.createElement("div");return G.style.display="flex",G.style.overflow="hidden",G.style.flexGrow="2",this.widths.forEach(function(X){var T=document.createElement("div");T.style.display="flex",T.style.flexGrow="2",T.style.alignItems="center",T.style.justifyContent="space-between",T.style.padding="5px",T.style.borderWidth="2px",T.style.borderStyle="solid",T.style.borderColor=X===k.currentWidth?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentWidth(X,T)}),G.appendChild(T);var Re=document.createElement("div");Re.innerText=X.toString(),Re.style.marginRight="5px",T.appendChild(Re);var mt=document.createElement("div");mt.style.minHeight="20px",mt.style.flexGrow="2",mt.style.display="flex",mt.style.alignItems="center";var _e=document.createElement("hr");_e.style.minWidth="20px",_e.style.border="0px",_e.style.borderTop=X+"px solid "+k.uiStyleSettings.toolboxColor,_e.style.flexGrow="2",mt.appendChild(_e),T.appendChild(mt),k.widthBoxes.push(T)}),G},D.prototype.setCurrentWidth=function(k,G){var X=this;this.currentWidth=k,this.widthBoxes.forEach(function(T){T.style.borderColor=T===G?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},D}(Ie),Ae=function(xe){function D(k,G,X,T){var Re=xe.call(this,k,T||'<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 Re.styles=[],Re.styleBoxes=[],Re.styles=G,Re.currentStyle=X,Re.setCurrentStyle=Re.setCurrentStyle.bind(Re),Re}return I(D,xe),D.prototype.getUi=function(){var k=this,G=document.createElement("div");return G.style.display="flex",G.style.overflow="hidden",G.style.flexGrow="2",this.styles.forEach(function(X){var T=document.createElement("div");T.style.display="flex",T.style.alignItems="center",T.style.justifyContent="space-between",T.style.padding="5px",T.style.borderWidth="2px",T.style.borderStyle="solid",T.style.overflow="hidden",T.style.maxWidth=100/k.styles.length-5+"%",T.style.borderColor=X===k.currentStyle?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentStyle(X,T)}),G.appendChild(T);var Re=document.createElement("div");Re.style.minHeight="20px",Re.style.flexGrow="2",Re.style.overflow="hidden";var mt=`<svg width="100" height="20">
|
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+k.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(X!==""?'stroke-dasharray="'+X+'"':"")+` />
|
|
|
</svg>`;Re.innerHTML=mt,T.appendChild(Re),k.styleBoxes.push(T)}),G},D.prototype.setCurrentStyle=function(k,G){var X=this;this.currentStyle=k,this.styleBoxes.forEach(function(T){T.style.borderColor=T===G?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},D}(Ie),Te=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.strokeColor=X.defaultColor,T.strokeWidth=X.defaultStrokeWidth,T.strokeDasharray=X.defaultStrokeDasharray,T.strokePanel=new Pe("Line color",X.defaultColorSet,X.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.strokeWidthPanel=new te("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Ae("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T}return I(D,xe),Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),D.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=D.typeName,k},D.typeName="FrameMarker",D.title="Frame marker",D.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',D}(Ne),$e=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"},Qe=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.x1=0,T.y1=0,T.x2=0,T.y2=0,T.defaultLength=50,T.manipulationStartX=0,T.manipulationStartY=0,T.manipulationStartX1=0,T.manipulationStartY1=0,T.manipulationStartX2=0,T.manipulationStartY2=0,T.setupControlBox(),T}return I(D,xe),D.prototype.ownsTarget=function(k){return!!xe.prototype.ownsTarget.call(this,k)||!(!this.grip1.ownsTarget(k)&&!this.grip2.ownsTarget(k))},D.prototype.pointerDown=function(k,G){xe.prototype.pointerDown.call(this,k,G),this.manipulationStartX=k.x,this.manipulationStartY=k.y,this.state==="new"&&(this.x1=k.x,this.y1=k.y,this.x2=k.x,this.y2=k.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(G)?this.activeGrip=this.grip1:this.grip2.ownsTarget(G)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},D.prototype.pointerUp=function(k){var G=this.state;xe.prototype.pointerUp.call(this,k),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(k),this._state="select",G==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},D.prototype.adjustVisual=function(){},D.prototype.manipulate=function(k){this.state==="creating"?this.resize(k):this.state==="move"?(this.x1=this.manipulationStartX1+k.x-this.manipulationStartX,this.y1=this.manipulationStartY1+k.y-this.manipulationStartY,this.x2=this.manipulationStartX2+k.x-this.manipulationStartX,this.y2=this.manipulationStartY2+k.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(k)},D.prototype.resize=function(k){switch(this.activeGrip){case this.grip1:this.x1=k.x,this.y1=k.y;break;case this.grip2:case void 0:this.x2=k.x,this.y2=k.y}this.adjustVisual(),this.adjustControlBox()},D.prototype.select=function(){xe.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},D.prototype.deselect=function(){xe.prototype.deselect.call(this),this.controlBox.style.display="none"},D.prototype.setupControlBox=function(){this.controlBox=Q.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},D.prototype.adjustControlBox=function(){this.positionGrips()},D.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},D.prototype.createGrip=function(){var k=new fe;return k.visual.transform.baseVal.appendItem(Q.createTransform()),this.controlBox.appendChild(k.visual),k},D.prototype.positionGrips=function(){var k=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-k/2,this.y1-k/2),this.positionGrip(this.grip2.visual,this.x2-k/2,this.y2-k/2)},D.prototype.positionGrip=function(k,G,X){var T=k.transform.baseVal.getItem(0);T.setTranslate(G,X),k.transform.baseVal.replaceItem(T,0)},D.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},xe.prototype.getState.call(this))},D.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var G=k;this.x1=G.x1,this.y1=G.y1,this.x2=G.x2,this.y2=G.y2},D.prototype.scale=function(k,G){xe.prototype.scale.call(this,k,G),this.x1=this.x1*k,this.y1=this.y1*G,this.x2=this.x2*k,this.y2=this.y2*G,this.adjustVisual(),this.adjustControlBox()},D}(ze),Je=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.setStrokeColor=T.setStrokeColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.strokeColor=X.defaultColor,T.strokeWidth=X.defaultStrokeWidth,T.strokeDasharray=X.defaultStrokeDasharray,T.strokePanel=new Pe("Line color",X.defaultColorSet,X.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.strokeWidthPanel=new te("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Ae("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T}return I(D,xe),D.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorLine&&k!==this.visibleLine)},D.prototype.createVisual=function(){this.visual=Q.createGroup(),this.selectorLine=Q.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=Q.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)},D.prototype.pointerDown=function(k,G){xe.prototype.pointerDown.call(this,k,G),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},D.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()),Q.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),Q.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),Q.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},D.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},D.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},D.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),D.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},xe.prototype.getState.call(this));return k.typeName=D.typeName,k},D.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var G=k;this.strokeColor=G.strokeColor,this.strokeWidth=G.strokeWidth,this.strokeDasharray=G.strokeDasharray,this.createVisual(),this.adjustVisual()},D.typeName="LineMarker",D.title="Line marker",D.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',D}(Qe),Ce=function(xe){function D(k,G,X,T){var Re=xe.call(this,k,T||'<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 Re.fonts=[],Re.fontBoxes=[],Re.fonts=G,Re.currentFont=X,Re.setCurrentFont=Re.setCurrentFont.bind(Re),Re}return I(D,xe),D.prototype.getUi=function(){var k=this,G=document.createElement("div");return G.style.overflow="hidden",G.style.flexGrow="2",this.fonts.forEach(function(X){var T=document.createElement("div");T.style.display="inline-block",T.style.alignItems="center",T.style.justifyContent="space-between",T.style.padding="5px",T.style.borderWidth="2px",T.style.borderStyle="solid",T.style.overflow="hidden",T.style.maxWidth=100/k.fonts.length-5+"%",T.style.borderColor=X===k.currentFont?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentFont(X,T)}),G.appendChild(T);var Re=document.createElement("div");Re.style.display="flex",Re.style.minHeight="20px",Re.style.flexGrow="2",Re.style.fontFamily=X,Re.style.overflow="hidden";var mt=document.createElement("div");mt.style.whiteSpace="nowrap",mt.style.overflow="hidden",mt.style.textOverflow="ellipsis",mt.innerHTML="The quick brown fox jumps over the lazy dog",Re.appendChild(mt),T.appendChild(Re),k.fontBoxes.push(T)}),G},D.prototype.setCurrentFont=function(k,G){var X=this;this.currentFont=k,this.fontBoxes.forEach(function(T){T.style.borderColor=T===G?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},D}(Ie),dt=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.color="transparent",T.padding=5,T.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",T.text=T.DEFAULT_TEXT,T.isMoved=!1,T.color=X.defaultColor,T.fontFamily=X.defaultFontFamily,T.defaultSize={x:100,y:30},T.setColor=T.setColor.bind(T),T.setFont=T.setFont.bind(T),T.renderText=T.renderText.bind(T),T.sizeText=T.sizeText.bind(T),T.textEditDivClicked=T.textEditDivClicked.bind(T),T.showTextEditor=T.showTextEditor.bind(T),T.setSize=T.setSize.bind(T),T.positionTextEditor=T.positionTextEditor.bind(T),T.colorPanel=new Pe("Color",X.defaultColorSet,X.defaultColor),T.colorPanel.onColorChanged=T.setColor,T.fontFamilyPanel=new Ce("Font",X.defaultFontFamilies,X.defaultFontFamily),T.fontFamilyPanel.onFontChanged=T.setFont,T}return I(D,xe),D.prototype.ownsTarget=function(k){if(xe.prototype.ownsTarget.call(this,k)||k===this.visual||k===this.textElement||k===this.bgRectangle)return!0;var G=!1;return this.textElement.childNodes.forEach(function(X){X===k&&(G=!0)}),G},D.prototype.createVisual=function(){this.visual=Q.createGroup(),this.bgRectangle=Q.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=Q.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(Q.createTransform()),this.textElement.transform.baseVal.appendItem(Q.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},D.prototype.pointerDown=function(k,G){xe.prototype.pointerDown.call(this,k,G),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},D.prototype.renderText=function(){var k=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(G){k.textElement.appendChild(Q.createTSpan(G.trim()===""?" ":G.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},D.prototype.getTextScale=function(){var k=this.textElement.getBBox(),G=1;if(k.width>0&&k.height>0){var X=(1*this.width-this.width*this.padding*2/100)/k.width,T=(1*this.height-this.height*this.padding*2/100)/k.height;G=Math.min(X,T)}return G},D.prototype.getTextPosition=function(k){var G=this.textElement.getBBox(),X=0,T=0;return G.width>0&&G.height>0&&(X=(this.width-G.width*k)/2,T=this.height/2-G.height*k/2),{x:X,y:T}},D.prototype.sizeText=function(){var k=this.textElement.getBBox(),G=this.getTextScale(),X=this.getTextPosition(G);X.y-=k.y*G,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+X.x+"px, "+X.y+"px) scale("+G+", "+G+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(X.x,X.y),this.textElement.transform.baseVal.getItem(1).setScale(G,G))},D.prototype.manipulate=function(k){xe.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},D.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.isMoved=!0,this.setSize(),this.sizeText()},D.prototype.setSize=function(){xe.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(Q.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Q.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},D.prototype.pointerUp=function(k){var G=this.state;G==="creating"&&(this._suppressMarkerCreateEvent=!0),xe.prototype.pointerUp.call(this,k),this.setSize(),(G==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},D.prototype.showTextEditor=function(){var k=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(G){G.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var G=Number.parseFloat(k.textEditor.style.fontSize);k.textEditor.clientWidth>=Number.parseInt(k.textEditor.style.maxWidth)&&G>.9;)G-=.1,k.textEditor.style.fontSize=Math.max(G,.9)+"em"}),this.textEditor.addEventListener("keyup",function(G){G.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(G){if(G.clipboardData){var X=G.clipboardData.getData("text"),T=window.getSelection();if(!T.rangeCount)return!1;T.deleteFromDocument(),T.getRangeAt(0).insertNode(document.createTextNode(X)),G.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){k.textEditDivClicked(k.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},D.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var k=this.getTextScale(),G=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),X=this.textElement.getBBox(),T={x:X.width*k,y:X.height*k};G.x-=T.x/2,G.y-=T.y/2,this.textEditor.style.top=G.y+"px",this.textEditor.style.left=G.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-G.x+"px",this.textEditor.style.fontSize=Math.max(16*k,12)+"px",this.textElement.style.display="none"}},D.prototype.textEditDivClicked=function(k){this.text=k.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},D.prototype.select=function(){xe.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},D.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),xe.prototype.deselect.call(this)},D.prototype.dblClick=function(k,G){xe.prototype.dblClick.call(this,k,G),this.showTextEditor()},D.prototype.setColor=function(k){this.textElement&&Q.setAttributes(this.textElement,[["fill",k]]),this.color=k,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(k)},D.prototype.setFont=function(k){this.textElement&&Q.setAttributes(this.textElement,[["font-family",k]]),this.fontFamily=k,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},D.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},D.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),D.prototype.getState=function(){var k=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},xe.prototype.getState.call(this));return k.typeName=D.typeName,k},D.prototype.restoreState=function(k){var G=k;this.color=G.color,this.fontFamily=G.fontFamily,this.padding=G.padding,this.text=G.text,this.createVisual(),xe.prototype.restoreState.call(this,k),this.setSize()},D.prototype.scale=function(k,G){xe.prototype.scale.call(this,k,G),this.setSize(),this.sizeText(),this.positionTextEditor()},D.typeName="TextMarker",D.title="Text marker",D.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>',D}(pe),Xe=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.color="transparent",T.lineWidth=3,T.drawing=!1,T.pixelRatio=1,T.color=X.defaultColor,T.lineWidth=X.defaultStrokeWidth,T.pixelRatio=X.freehandPixelRatio,T.setColor=T.setColor.bind(T),T.addCanvas=T.addCanvas.bind(T),T.finishCreation=T.finishCreation.bind(T),T.setLineWidth=T.setLineWidth.bind(T),T.colorPanel=new Pe("Color",X.defaultColorSet,X.defaultColor),T.colorPanel.onColorChanged=T.setColor,T.lineWidthPanel=new te("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),T.lineWidthPanel.onWidthChanged=T.setLineWidth,T}return I(D,xe),D.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.drawingImage)},D.prototype.createVisual=function(){this.visual=Q.createGroup(),this.drawingImage=Q.createImage(),this.visual.appendChild(this.drawingImage);var k=Q.createTransform();this.visual.transform.baseVal.appendItem(k),this.addMarkerVisualToContainer(this.visual)},D.prototype.pointerDown=function(k,G){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(k.x,k.y),this.drawing=!0):xe.prototype.pointerDown.call(this,k,G)},D.prototype.manipulate=function(k){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(k.x,k.y),this.canvasContext.stroke()):xe.prototype.manipulate.call(this,k)},D.prototype.resize=function(k){xe.prototype.resize.call(this,k),Q.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),Q.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},D.prototype.pointerUp=function(k){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):xe.prototype.pointerUp.call(this,k)},D.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)},D.prototype.select=function(){this.state==="creating"&&this.finishCreation(),xe.prototype.select.call(this)},D.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),xe.prototype.deselect.call(this)},D.prototype.finishCreation=function(){for(var k=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),G=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],X=G[0],T=G[1],Re=G[2],mt=G[3],_e=!1,Le=0;Le<this.canvasElement.height;Le++)for(var ct=0;ct<this.canvasElement.width;ct++)k.data[Le*this.canvasElement.width*4+4*ct+3]>0&&(_e=!0,Le<T&&(T=Le),ct<X&&(X=ct),Le>mt&&(mt=Le),ct>Re&&(Re=ct));if(_e){this.left=X/this.pixelRatio,this.top=T/this.pixelRatio,this.width=(Re-X)/this.pixelRatio,this.height=(mt-T)/this.pixelRatio;var ot=document.createElement("canvas");ot.width=Re-X,ot.height=mt-T,ot.getContext("2d").putImageData(this.canvasContext.getImageData(X,T,Re-X,mt-T),0,0),this.drawingImgUrl=ot.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},D.prototype.setDrawingImage=function(){Q.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),Q.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},D.prototype.setColor=function(k){this.color=k,this.colorChanged(k)},D.prototype.setLineWidth=function(k){this.lineWidth=k},Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),D.prototype.getState=function(){var k=Object.assign({drawingImgUrl:this.drawingImgUrl},xe.prototype.getState.call(this));return k.typeName=D.typeName,k},D.prototype.restoreState=function(k){this.createVisual(),xe.prototype.restoreState.call(this,k),this.drawingImgUrl=k.drawingImgUrl,this.setDrawingImage()},D.prototype.scale=function(k,G){xe.prototype.scale.call(this,k,G),this.setDrawingImage()},D.typeName="FreehandMarker",D.title="Freehand marker",D.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>',D}(pe),$t=function(xe){function D(k,G,X){var T=xe.call(this,k,X||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return T.typeBoxes=[],T.currentType=G,T.setCurrentType=T.setCurrentType.bind(T),T}return I(D,xe),D.prototype.getUi=function(){var k=this,G=document.createElement("div");G.style.display="flex",G.style.overflow="hidden",G.style.flexGrow="2";for(var X=function(mt){var _e="both";switch(mt){case 0:_e="both";break;case 1:_e="start";break;case 2:_e="end";break;case 3:_e="none"}var Le=document.createElement("div");if(Le.style.display="flex",Le.style.flexGrow="2",Le.style.alignItems="center",Le.style.justifyContent="space-between",Le.style.padding="5px",Le.style.borderWidth="2px",Le.style.borderStyle="solid",Le.style.borderColor=_e===T.currentType?T.uiStyleSettings.toolboxAccentColor:"transparent",Le.addEventListener("click",function(){k.setCurrentType(_e,Le)}),G.appendChild(Le),_e==="both"||_e==="start"){var ct=document.createElement("div");ct.style.display="flex",ct.style.alignItems="center",ct.style.minHeight="20px",ct.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="`+(T.uiStyleSettings!==void 0?T.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,ct.style.marginLeft="5px",Le.appendChild(ct)}var ot=document.createElement("div");ot.style.display="flex",ot.style.alignItems="center",ot.style.minHeight="20px",ot.style.flexGrow="2";var Ze=document.createElement("hr");if(Ze.style.minWidth="20px",Ze.style.border="0px",Ze.style.borderTop="3px solid "+(T.uiStyleSettings!==void 0?T.uiStyleSettings.toolboxColor:"#eeeeee"),Ze.style.flexGrow="2",ot.appendChild(Ze),Le.appendChild(ot),_e==="both"||_e==="end"){var Et=document.createElement("div");Et.style.display="flex",Et.style.alignItems="center",Et.style.minHeight="20px",Et.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="`+(T.uiStyleSettings!==void 0?T.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
|
</svg>`,Et.style.marginRight="5px",Le.appendChild(Et)}T.typeBoxes.push(Le)},T=this,Re=0;Re<4;Re++)X(Re);return G},D.prototype.setCurrentType=function(k,G){var X=this;this.currentType=k,this.typeBoxes.forEach(function(T){T.style.borderColor=T===G?X.uiStyleSettings!==void 0?X.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},D}(Ie),xt=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.arrowType="end",T.arrowBaseHeight=10,T.arrowBaseWidth=10,T.getArrowPoints=T.getArrowPoints.bind(T),T.setArrowType=T.setArrowType.bind(T),T.arrowTypePanel=new $t("Arrow type","end"),T.arrowTypePanel.onArrowTypeChanged=T.setArrowType,T}return I(D,xe),D.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.arrow1&&k!==this.arrow2)},D.prototype.getArrowPoints=function(k,G){var X=this.arrowBaseWidth+2*this.strokeWidth,T=this.arrowBaseHeight+2*this.strokeWidth;return k-X/2+","+(G+T/2)+" "+k+","+(G-T/2)+" "+(k+X/2)+","+(G+T/2)},D.prototype.createTips=function(){this.arrow1=Q.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(Q.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=Q.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(Q.createTransform()),this.visual.appendChild(this.arrow2)},D.prototype.pointerDown=function(k,G){xe.prototype.pointerDown.call(this,k,G),this.state==="creating"&&this.createTips()},D.prototype.adjustVisual=function(){if(xe.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",Q.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),Q.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var k=0;Math.abs(this.x1-this.x2)>.1&&(k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var G=this.arrow1.transform.baseVal.getItem(0);G.setRotate(k,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(G,0);var X=this.arrow2.transform.baseVal.getItem(0);X.setRotate(k+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(X,0)}},D.prototype.setArrowType=function(k){this.arrowType=k,this.adjustVisual(),this.stateChanged()},Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),D.prototype.getState=function(){var k=Object.assign({arrowType:this.arrowType},xe.prototype.getState.call(this));return k.typeName=D.typeName,k},D.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var G=k;this.arrowType=G.arrowType,this.createTips(),this.adjustVisual()},D.typeName="ArrowMarker",D.title="Arrow marker",D.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',D}(Je),At=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.fillColor=X.defaultFillColor,T.strokeWidth=0,T.fillPanel=new Pe("Color",X.defaultColorSet,X.defaultFillColor),T.fillPanel.onColorChanged=T.setFillColor,T}return I(D,xe),Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),D.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=D.typeName,k},D.typeName="CoverMarker",D.title="Cover marker",D.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',D}(Ne),St=function(xe){function D(k,G,X,T){var Re=xe.call(this,k,T||'<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 Re.opacities=[],Re.opacityBoxes=[],Re.opacities=G,Re.currentOpacity=X,Re.setCurrentOpacity=Re.setCurrentOpacity.bind(Re),Re}return I(D,xe),D.prototype.getUi=function(){var k=this,G=document.createElement("div");return G.style.display="flex",G.style.overflow="hidden",G.style.flexGrow="2",G.style.justifyContent="space-between",this.opacities.forEach(function(X){var T=document.createElement("div");T.style.display="flex",T.style.alignItems="center",T.style.justifyContent="center",T.style.padding="5px",T.style.borderWidth="2px",T.style.borderStyle="solid",T.style.borderColor=X===k.currentOpacity?k.uiStyleSettings.toolboxAccentColor:"transparent",T.addEventListener("click",function(){k.setCurrentOpacity(X,T)}),G.appendChild(T);var Re=document.createElement("div");Re.innerText=100*X+"%",T.appendChild(Re),k.opacityBoxes.push(T)}),G},D.prototype.setCurrentOpacity=function(k,G){var X=this;this.currentOpacity=k,this.opacityBoxes.forEach(function(T){T.style.borderColor=T===G?X.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},D}(Ie),Cn=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.setOpacity=T.setOpacity.bind(T),T.fillColor=X.defaultHighlightColor,T.strokeWidth=0,T.opacity=X.defaultHighlightOpacity,T.fillPanel=new Pe("Color",X.defaultColorSet,T.fillColor),T.fillPanel.onColorChanged=T.setFillColor,T.opacityPanel=new St("Opacity",X.defaultOpacitySteps,T.opacity),T.opacityPanel.onOpacityChanged=T.setOpacity,T}return I(D,xe),D.prototype.setOpacity=function(k){this.opacity=k,this.visual&&Q.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),D.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=D.typeName,k},D.typeName="HighlightMarker",D.title="Highlight marker",D.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>',D}(At),Ye='<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>',oe='<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>',H=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.bgColor="transparent",T.tipPosition={x:0,y:0},T.tipBase1Position={x:0,y:0},T.tipBase2Position={x:0,y:0},T.tipMoving=!1,T.color=X.defaultStrokeColor,T.bgColor=X.defaultFillColor,T.fontFamily=X.defaultFontFamily,T.defaultSize={x:100,y:30},T.setBgColor=T.setBgColor.bind(T),T.getTipPoints=T.getTipPoints.bind(T),T.positionTip=T.positionTip.bind(T),T.setTipPoints=T.setTipPoints.bind(T),T.colorPanel=new Pe("Text color",X.defaultColorSet,T.color,Ye),T.colorPanel.onColorChanged=T.setColor,T.bgColorPanel=new Pe("Fill color",X.defaultColorSet,T.bgColor,oe),T.bgColorPanel.onColorChanged=T.setBgColor,T.fontFamilyPanel=new Ce("Font",X.defaultFontFamilies,X.defaultFontFamily),T.fontFamilyPanel.onFontChanged=T.setFont,T.tipGrip=new fe,T.tipGrip.visual.transform.baseVal.appendItem(Q.createTransform()),T.controlBox.appendChild(T.tipGrip.visual),T}return I(D,xe),D.prototype.ownsTarget=function(k){return xe.prototype.ownsTarget.call(this,k)||this.tipGrip.ownsTarget(k)||this.tip===k},D.prototype.createTip=function(){Q.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=Q.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},D.prototype.pointerDown=function(k,G){this.state==="new"&&xe.prototype.pointerDown.call(this,k,G),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(G)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):xe.prototype.pointerDown.call(this,k,G)},D.prototype.pointerUp=function(k){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,xe.prototype.pointerUp.call(this,k);else{var G=this.state==="creating";xe.prototype.pointerUp.call(this,k),this.setTipPoints(G),this.positionTip()}},D.prototype.manipulate=function(k){if(this.tipMoving){var G=this.unrotatePoint(k);this.tipPosition={x:G.x-this.manipulationStartLeft,y:G.y-this.manipulationStartTop},this.positionTip()}else xe.prototype.manipulate.call(this,k)},D.prototype.setBgColor=function(k){this.bgRectangle&&this.tip&&(Q.setAttributes(this.bgRectangle,[["fill",k]]),Q.setAttributes(this.tip,[["fill",k]])),this.bgColor=k,this.fillColorChanged(k)},D.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},D.prototype.setTipPoints=function(k){k===void 0&&(k=!1);var G=Math.min(this.height/2,15),X=this.height/5;k&&(this.tipPosition={x:G+X/2,y:this.height+20});var T=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?T<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(X=this.width/5,G=Math.min(this.width/2,15),this.tipBase1Position={x:G,y:0},this.tipBase2Position={x:G+X,y:0}):(this.tipBase1Position={x:0,y:G},this.tipBase2Position={x:0,y:G+X}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?T<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(X=this.width/5,G=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-G-X,y:0},this.tipBase2Position={x:this.width-G,y:0}):(this.tipBase1Position={x:this.width,y:G},this.tipBase2Position={x:this.width,y:G+X}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?T<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(X=this.width/5,G=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-G-X,y:this.height},this.tipBase2Position={x:this.width-G,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-G-X},this.tipBase2Position={x:this.width,y:this.height-G}):T<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(X=this.width/5,G=Math.min(this.width/2,15),this.tipBase1Position={x:G,y:this.height},this.tipBase2Position={x:G+X,y:this.height}):(this.tipBase1Position={x:0,y:this.height-G},this.tipBase2Position={x:0,y:this.height-G-X})},D.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.positionTip()},D.prototype.positionTip=function(){Q.setAttributes(this.tip,[["points",this.getTipPoints()]]);var k=this.tipGrip.visual.transform.baseVal.getItem(0);k.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(k,0)},Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),D.prototype.select=function(){this.positionTip(),xe.prototype.select.call(this)},D.prototype.getState=function(){var k=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},xe.prototype.getState.call(this));return k.typeName=D.typeName,k},D.prototype.restoreState=function(k){var G=k;this.bgColor=G.bgColor,this.tipPosition=G.tipPosition,xe.prototype.restoreState.call(this,k),this.createTip(),this.setTipPoints()},D.prototype.scale=function(k,G){xe.prototype.scale.call(this,k,G),this.tipPosition={x:this.tipPosition.x*k,y:this.tipPosition.y*G},this.positionTip()},D.typeName="CalloutMarker",D.title="Callout marker",D.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>',D}(dt),Ot=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.fillColor="transparent",T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.opacity=1,T.strokeColor=X.defaultColor,T.strokeWidth=X.defaultStrokeWidth,T.strokeDasharray=X.defaultStrokeDasharray,T.fillColor=X.defaultFillColor,T.setStrokeColor=T.setStrokeColor.bind(T),T.setFillColor=T.setFillColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.setOpacity=T.setOpacity.bind(T),T.createVisual=T.createVisual.bind(T),T.strokePanel=new Pe("Line color",V(X.defaultColorSet,["transparent"]),X.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.fillPanel=new Pe("Fill color",V(X.defaultColorSet,["transparent"]),T.fillColor,oe),T.fillPanel.onColorChanged=T.setFillColor,T.strokeWidthPanel=new te("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Ae("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T.opacityPanel=new St("Opacity",X.defaultOpacitySteps,T.opacity),T.opacityPanel.onOpacityChanged=T.setOpacity,T}return I(D,xe),D.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual)},D.prototype.createVisual=function(){this.visual=Q.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)},D.prototype.pointerDown=function(k,G){xe.prototype.pointerDown.call(this,k,G),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},D.prototype.manipulate=function(k){xe.prototype.manipulate.call(this,k)},D.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.setSize()},D.prototype.setSize=function(){xe.prototype.setSize.call(this),Q.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},D.prototype.pointerUp=function(k){xe.prototype.pointerUp.call(this,k),this.setSize()},D.prototype.setStrokeColor=function(k){this.strokeColor=k,this.visual&&Q.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},D.prototype.setFillColor=function(k){this.fillColor=k,this.visual&&Q.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},D.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.visual&&Q.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},D.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.visual&&Q.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},D.prototype.setOpacity=function(k){this.opacity=k,this.visual&&Q.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),D.prototype.getState=function(){var k=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},xe.prototype.getState.call(this));return k.typeName=D.typeName,k},D.prototype.restoreState=function(k){var G=k;this.fillColor=G.fillColor,this.strokeColor=G.strokeColor,this.strokeWidth=G.strokeWidth,this.strokeDasharray=G.strokeDasharray,this.opacity=G.opacity,this.createVisual(),xe.prototype.restoreState.call(this,k),this.setSize()},D.prototype.scale=function(k,G){xe.prototype.scale.call(this,k,G),this.setSize()},D.typeName="EllipseMarker",D.title="Ellipse marker",D.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>',D}(pe),Kt=function(xe){function D(k,G,X){return xe.call(this,k,G,X)||this}return I(D,xe),Object.defineProperty(D.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),D.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.tip1&&k!==this.tip2)},D.prototype.createTips=function(){this.tip1=Q.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(Q.createTransform()),this.visual.appendChild(this.tip1),this.tip2=Q.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(Q.createTransform()),this.visual.appendChild(this.tip2)},D.prototype.pointerDown=function(k,G){xe.prototype.pointerDown.call(this,k,G),this.state==="creating"&&this.createTips()},D.prototype.adjustVisual=function(){if(xe.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(Q.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()]]),Q.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 k=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),G=this.tip1.transform.baseVal.getItem(0);G.setRotate(k,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(G,0);var X=this.tip2.transform.baseVal.getItem(0);X.setRotate(k+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(X,0)}},Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),D.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=D.typeName,k},D.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k),this.createTips(),this.adjustVisual()},D.typeName="MeasurementMarker",D.title="Measurement marker",D.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>',D}(Je),vt=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.strokePanel.colors=X.defaultColorSet,T.fillColor="transparent",T}return I(D,xe),Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),D.prototype.getState=function(){var k=xe.prototype.getState.call(this);return k.typeName=D.typeName,k},D.typeName="EllipseFrameMarker",D.title="Ellipse frame marker",D.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>',D}(Ot),hn=function(){function xe(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(xe.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),xe.prototype.addUndoStep=function(D){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(D)||(this.undoStack.push(D),JSON.stringify(this.lastRedoStep)!==JSON.stringify(D)&&this.redoStack.splice(0,this.redoStack.length))},xe.prototype.replaceLastUndoStep=function(D){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=D)},xe.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},xe.prototype.undo=function(){if(this.undoStack.length>1){var D=this.undoStack.pop();return D!==void 0&&this.redoStack.push(D),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},xe.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},xe}(),Rt=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.curveX=0,T.curveY=0,T.manipulationStartCurveX=0,T.manipulationStartCurveY=0,T.setStrokeColor=T.setStrokeColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.positionGrips=T.positionGrips.bind(T),T.addControlGrips=T.addControlGrips.bind(T),T.adjustVisual=T.adjustVisual.bind(T),T.setupControlBox=T.setupControlBox.bind(T),T.resize=T.resize.bind(T),T.strokeColor=X.defaultColor,T.strokeWidth=X.defaultStrokeWidth,T.strokeDasharray=X.defaultStrokeDasharray,T.strokePanel=new Pe("Line color",X.defaultColorSet,X.defaultColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.strokeWidthPanel=new te("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Ae("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T}return I(D,xe),D.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.selectorCurve&&k!==this.visibleCurve&&!this.curveGrip.ownsTarget(k))},D.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},D.prototype.createVisual=function(){this.visual=Q.createGroup(),this.selectorCurve=Q.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=Q.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)},D.prototype.pointerDown=function(k,G){xe.prototype.pointerDown.call(this,k,G),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=k.x,this.curveY=k.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(G)&&(this.activeGrip=this.curveGrip,this._state="resize")},D.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),Q.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),Q.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),Q.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},D.prototype.setupControlBox=function(){xe.prototype.setupControlBox.call(this),this.curveControlLine1=Q.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=Q.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)},D.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,xe.prototype.addControlGrips.call(this)},D.prototype.positionGrips=function(){xe.prototype.positionGrips.call(this);var k=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-k/2,this.curveY-k/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()))},D.prototype.manipulate=function(k){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+k.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+k.y-this.manipulationStartY),xe.prototype.manipulate.call(this,k)},D.prototype.resize=function(k){this.activeGrip===this.curveGrip&&(this.curveX=k.x,this.curveY=k.y),xe.prototype.resize.call(this,k),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},D.prototype.setStrokeColor=function(k){this.strokeColor=k,this.adjustVisual(),this.colorChanged(k)},D.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.adjustVisual()},D.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.adjustVisual()},D.prototype.scale=function(k,G){this.curveX=this.curveX*k,this.curveY=this.curveY*G,xe.prototype.scale.call(this,k,G)},Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),D.prototype.getState=function(){var k=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},xe.prototype.getState.call(this));return k.typeName=D.typeName,k},D.prototype.restoreState=function(k){xe.prototype.restoreState.call(this,k);var G=k;this.strokeColor=G.strokeColor,this.strokeWidth=G.strokeWidth,this.strokeDasharray=G.strokeDasharray,this.curveX=G.curveX,this.curveY=G.curveY,this.createVisual(),this.adjustVisual()},D.typeName="CurveMarker",D.title="Curve marker",D.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>',D}(Qe),hi=function(xe){function D(k,G,X){var T=xe.call(this,k,G,X)||this;return T.fillColor="transparent",T.strokeColor="transparent",T.strokeWidth=0,T.strokeDasharray="",T.textColor="transparent",T.fontSize="1rem",T.isMoved=!1,T.captionText="Caption",T.PADDING=5,T.captionBoxWidth=0,T.captionBoxHeight=0,T.strokeColor=X.defaultColor,T.strokeWidth=X.defaultStrokeWidth,T.strokeDasharray=X.defaultStrokeDasharray,T.fillColor=X.defaultFillColor,T.textColor=X.defaultStrokeColor,T.fontFamily=X.defaultFontFamily,T.fontSize=X.defaultCaptionFontSize,T.captionText=X.defaultCaptionText,T.setStrokeColor=T.setStrokeColor.bind(T),T.setFillColor=T.setFillColor.bind(T),T.setStrokeWidth=T.setStrokeWidth.bind(T),T.setStrokeDasharray=T.setStrokeDasharray.bind(T),T.createVisual=T.createVisual.bind(T),T.sizeCaption=T.sizeCaption.bind(T),T.setCaptionText=T.setCaptionText.bind(T),T.showTextEditor=T.showTextEditor.bind(T),T.positionTextEditor=T.positionTextEditor.bind(T),T.finishTextEditing=T.finishTextEditing.bind(T),T.setFont=T.setFont.bind(T),T.setTextColor=T.setTextColor.bind(T),T.strokePanel=new Pe("Line color",V(X.defaultColorSet,["transparent"]),T.strokeColor),T.strokePanel.onColorChanged=T.setStrokeColor,T.fillPanel=new Pe("Fill color",V(X.defaultColorSet,["transparent"]),T.fillColor,oe),T.fillPanel.onColorChanged=T.setFillColor,T.strokeWidthPanel=new te("Line width",X.defaultStrokeWidths,X.defaultStrokeWidth),T.strokeWidthPanel.onWidthChanged=T.setStrokeWidth,T.strokeStylePanel=new Ae("Line style",X.defaultStrokeDasharrays,X.defaultStrokeDasharray),T.strokeStylePanel.onStyleChanged=T.setStrokeDasharray,T.fontFamilyPanel=new Ce("Font",X.defaultFontFamilies,X.defaultFontFamily),T.fontFamilyPanel.onFontChanged=T.setFont,T.textColorPanel=new Pe("Text color",X.defaultColorSet,T.textColor,Ye),T.textColorPanel.onColorChanged=T.setTextColor,T}return I(D,xe),D.prototype.ownsTarget=function(k){return!(!xe.prototype.ownsTarget.call(this,k)&&k!==this.visual&&k!==this.frame&&k!==this.captionBg&&k!==this.captionElement)},D.prototype.createVisual=function(){this.visual=Q.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=Q.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=Q.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=Q.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()},D.prototype.setCaptionText=function(k){this.captionText=k,this.captionElement.textContent=this.captionText,this.sizeCaption()},D.prototype.pointerDown=function(k,G){xe.prototype.pointerDown.call(this,k,G),this.isMoved=!1,this.pointerDownPoint=k,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(k),this._state="creating")},D.prototype.manipulate=function(k){xe.prototype.manipulate.call(this,k),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(k.x-this.pointerDownPoint.x)>5||Math.abs(k.y-this.pointerDownPoint.y)>5)},D.prototype.resize=function(k){xe.prototype.resize.call(this,k),this.setSize()},D.prototype.sizeCaption=function(){var k=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=k.width+2*this.PADDING,this.captionBoxHeight=k.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),Q.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')"]]),Q.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')"]])},D.prototype.showTextEditor=function(){var k=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(G){G.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(G){G.key==="Enter"&&k.finishTextEditing(k.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(G){G.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){k.finishTextEditing(k.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){k.finishTextEditing(k.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},D.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"))},D.prototype.finishTextEditing=function(k){this.setCaptionText(k.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},D.prototype.setFont=function(k){this.captionElement&&Q.setAttributes(this.captionElement,[["font-family",k]]),this.fontFamily=k,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},D.prototype.setTextColor=function(k){this.captionElement&&Q.setAttributes(this.captionElement,[["fill",k]]),this.textColor=k,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},D.prototype.setSize=function(){xe.prototype.setSize.call(this),Q.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},D.prototype.pointerUp=function(k){xe.prototype.pointerUp.call(this,k),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},D.prototype.dblClick=function(k,G){xe.prototype.dblClick.call(this,k,G),this.showTextEditor()},D.prototype.setStrokeColor=function(k){this.strokeColor=k,this.frame&&Q.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(k),this.stateChanged()},D.prototype.setFillColor=function(k){this.fillColor=k,this.captionBg&&Q.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(k),this.stateChanged()},D.prototype.setStrokeWidth=function(k){this.strokeWidth=k,this.frame&&Q.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},D.prototype.setStrokeDasharray=function(k){this.strokeDasharray=k,this.frame&&Q.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(D.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),D.prototype.getState=function(){var k=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},xe.prototype.getState.call(this));return k.typeName=this.typeName,k},D.prototype.restoreState=function(k){var G=k;this.fillColor=G.fillColor,this.strokeColor=G.strokeColor,this.strokeWidth=G.strokeWidth,this.strokeDasharray=G.strokeDasharray,this.textColor=G.textColor,this.fontFamily=G.fontFamily,this.captionText=G.captionText,this.fontSize=G.fontSize,this.createVisual(),xe.prototype.restoreState.call(this,k),this.setSize()},D.prototype.scale=function(k,G){xe.prototype.scale.call(this,k,G),this.setSize()},D.typeName="CaptionFrameMarker",D.title="Caption frame marker",D.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>',D}(pe),yt=function(){function xe(D,k){k===void 0&&(k=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=D,this.cancelable=k}return Object.defineProperty(xe.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),xe.prototype.preventDefault=function(){this._defaultPrevented=!0},xe}(),si=function(xe){function D(k,G,X){var T=xe.call(this,k,!1)||this;return T.dataUrl=G,T.state=X,T}return I(D,xe),D}(yt),qn=function(xe){function D(k,G,X){X===void 0&&(X=!1);var T=xe.call(this,k,X)||this;return T.marker=G,T}return I(D,xe),D}(yt),ln=function(){function xe(){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 xe.prototype.addEventListener=function(D,k){this[D].push(k)},xe.prototype.removeEventListener=function(D,k){var G=this[D].indexOf(k);G>-1&&this[D].splice(G,1)},xe}(),Tn=function(){function xe(D){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new $e,this._isOpen=!1,this.undoRedoManager=new hn,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 ln,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=xe.instanceCounter++,this.styles=new re(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=D,this.targetRoot=document.body,this.width=D.clientWidth,this.height=D.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(xe.prototype,"ALL_MARKER_TYPES",{get:function(){return[Te,Xe,xt,dt,vt,Ot,Cn,H,Kt,At,Je,Rt,hi]},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[Te,Xe,xt,dt,Ot,Cn,H]},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"BASIC_MARKER_TYPES",{get:function(){return[Te,Xe,xt,dt,Cn]},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(D){var k=this;this._availableMarkerTypes.splice(0),D.forEach(function(G){if(typeof G=="string"){var X=k.ALL_MARKER_TYPES.find(function(T){return T.typeName===G});X!==void 0&&k._availableMarkerTypes.push(X)}else k._availableMarkerTypes.push(G)})},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(xe.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(D){this._zoomLevel=D,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(xe.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),xe.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),M.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},xe.prototype.show=function(){var D=this;this.styles.styleSheetRoot===void 0&&he.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=he.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(k){return k(new yt(D))})},xe.prototype.render=function(){return L(this,void 0,void 0,function(){var D;return B(this,function(k){switch(k.label){case 0:return this.setCurrentMarker(),(D=new de).naturalSize=this.renderAtNaturalSize,D.imageType=this.renderImageType,D.imageQuality=this.renderImageQuality,D.markersOnly=this.renderMarkersOnly,D.width=this.renderWidth,D.height=this.renderHeight,[4,D.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return k.sent(),[4,D.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,k.sent()]}})})},xe.prototype.close=function(D){var k=this;if(D===void 0&&(D=!1),this.isOpen){var G=!1;D||this.eventListeners.beforeclose.forEach(function(X){var T=new yt(k,!0);X(T),T.defaultPrevented&&(G=!0)}),G||(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(X){return X(new yt(k))}),this.detachEvents(),this._isOpen=!1)}},xe.prototype.addMarkersToToolbar=function(){for(var D,k=[],G=0;G<arguments.length;G++)k[G]=arguments[G];(D=this._availableMarkerTypes).push.apply(D,k)},xe.prototype.addRenderEventListener=function(D){this.addEventListener("render",function(k){D(k.dataUrl,k.state)})},xe.prototype.removeRenderEventListener=function(D){},xe.prototype.addCloseEventListener=function(D){this.addEventListener("close",function(){D()})},xe.prototype.removeCloseEventListener=function(D){},xe.prototype.setupResizeObserver=function(){var D=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){D.resize(D.target.clientWidth,D.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return D.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},xe.prototype.onPopupTargetResize=function(){var D=1*this.target.clientWidth/this.target.clientHeight,k=this.editorCanvas.clientWidth/D>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*D:this.editorCanvas.clientWidth,G=k<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/D;this.resize(k,G)},xe.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},xe.prototype.resize=function(D,k){this._isResizing=!0;var G=D/this.imageWidth,X=k/this.imageHeight;this.imageWidth=Math.round(D),this.imageHeight=Math.round(k),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(G,X),this._isResizing=!1},xe.prototype.scaleMarkers=function(D,k){var G,X=this;this._currentMarker&&this._currentMarker instanceof dt?this._currentMarker.scale(D,k):(G=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(T){T!==X._currentMarker&&T.scale(D,k)}),G!==void 0&&this.setCurrentMarker(G)},xe.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"},xe.prototype.setTopLeft=function(){var D=this.editingTarget.getBoundingClientRect(),k=this.editorCanvas.getBoundingClientRect();this.left=D.left-k.left,this.top=D.top-k.top},xe.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)},xe.prototype.addDefs=function(){for(var D,k=[],G=0;G<arguments.length;G++)k[G]=arguments[G];this.defs=Q.createDefs(),this.addDefsToImage(),(D=this.defs).append.apply(D,k)},xe.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},xe.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)},xe.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},xe.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},xe.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)},xe.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},xe.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)},xe.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 D=document.createElement("a");D.href="https://markerjs.com/",D.target="_blank",D.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>',D.title="Powered by marker.js",D.style.display="grid",D.style.alignItems="center",D.style.justifyItems="center",D.style.padding="3px",D.style.width="20px",D.style.height="20px",this.logoUI.appendChild(D),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},xe.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")},xe.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"},xe.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},xe.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 D=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=D+"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 it(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 Ue(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},xe.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},xe.prototype.removeMarker=function(D){this.markerImage.removeChild(D.container),this.markers.indexOf(D)>-1&&this.markers.splice(this.markers.indexOf(D),1),D.dispose()},xe.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())},xe.prototype.toolbarButtonClicked=function(D,k){if(D==="marker"&&k!==void 0)this.createNewMarker(k);else if(D==="action")switch(k){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()}},xe.prototype.deleteSelectedMarker=function(){var D=this;if(this._currentMarker!==void 0){var k=!1;if(this.eventListeners.markerbeforedelete.forEach(function(X){var T=new qn(D,D._currentMarker,!0);X(T),T.defaultPrevented&&(k=!0)}),!k){var G=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(X){return X(new qn(D,G))})}}},xe.prototype.clear=function(){var D=this,k=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(Re){var mt=new qn(D,void 0,!0);Re(mt),mt.defaultPrevented&&(k=!0)}),!k)){this.setCurrentMarker();for(var G=function(Re){var mt=X.markers[Re];X.setCurrentMarker(X.markers[Re]),X._currentMarker.dispose(),X.markerImage.removeChild(X._currentMarker.container),X.markers.splice(X.markers.indexOf(X._currentMarker),1),X.eventListeners.markerdelete.forEach(function(_e){return _e(new qn(D,mt))})},X=this,T=this.markers.length-1;T>=0;T--)G(T);this.addUndoStep()}},Object.defineProperty(xe.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),xe.prototype.showNotesEditor=function(){var D;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=(D=this._currentMarker.notes)!==null&&D!==void 0?D:"",this.overlayContainer.appendChild(this.notesArea))},xe.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)},xe.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},xe.prototype.addUndoStep=function(){var D=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var k=this.getState(),G=this.undoRedoManager.getLastUndoStep();if(!G||G.width===k.width&&G.height===k.height){var X=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(k),X<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(T){return T(new yt(D))})}else this.undoRedoManager.replaceLastUndoStep(k),this.eventListeners.statechange.forEach(function(T){return T(new yt(D))})}},xe.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},xe.prototype.undoStep=function(){var D=this,k=this.undoRedoManager.undo();k!==void 0&&(this.restoreState(k),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(G){return G(new yt(D))}))},xe.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},xe.prototype.redoStep=function(){var D=this,k=this.undoRedoManager.redo();k!==void 0&&(this.restoreState(k),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(G){return G(new yt(D))}))},xe.prototype.stepZoom=function(){var D=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=D<this.zoomSteps.length-1?this.zoomSteps[D+1]:this.zoomSteps[0]},xe.prototype.panTo=function(D){this.contentDiv.scrollBy({left:this.prevPanPoint.x-D.x,top:this.prevPanPoint.y-D.y}),this.prevPanPoint=D},xe.prototype.startRenderAndClose=function(){return L(this,void 0,void 0,function(){var D,k,G=this;return B(this,function(X){switch(X.label){case 0:return[4,this.render()];case 1:return D=X.sent(),k=this.getState(),this.eventListeners.render.forEach(function(T){return T(new si(G,D,k))}),this.close(!0),[2]}})})},xe.prototype.getState=function(D){D===!0&&this.setCurrentMarker();var k={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(G){return k.markers.push(G.getState())}),k},xe.prototype.restoreState=function(D){var k=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);D.markers.forEach(function(G){var X=k._availableMarkerTypes.find(function(Re){return Re.typeName===G.typeName});if(X!==void 0){var T=k.addNewMarker(X);T.restoreState(G),k.markers.push(T)}}),D.width&&D.height&&(D.width!==this.imageWidth||D.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/D.width,this.imageHeight/D.height),this.eventListeners.restorestate.forEach(function(G){return G(new yt(k))})},xe.prototype.addNewMarker=function(D){var k=Q.createGroup();return this.markerImage.appendChild(k),new D(k,this.overlayContainer,this.settings)},xe.prototype.createNewMarker=function(D){var k,G=this;(k=typeof D=="string"?this._availableMarkerTypes.find(function(X){return X.typeName===D}):D)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(k),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(k.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(X){return X(new qn(G,G._currentMarker))}))},xe.prototype.markerCreated=function(D){var k=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(D),this.setCurrentMarker(D),D instanceof Xe&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Xe):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(G){return G(new qn(k,k._currentMarker))})},xe.prototype.colorChanged=function(D){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=D,this.settings.defaultStrokeColor=D)},xe.prototype.fillColorChanged=function(D){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=D)},xe.prototype.markerStateChanged=function(D){var k=this;this.eventListeners.markerchange.forEach(function(G){return G(new qn(k,D))})},xe.prototype.setCurrentMarker=function(D){var k=this;this._currentMarker!==D&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(G){return G(new qn(k,k._currentMarker))})),this._currentMarker=D,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(G){return G(new qn(k,k._currentMarker))}))},xe.prototype.onPointerDown=function(D){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||D.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var k=this.markers.find(function(G){return G.ownsTarget(D.target)});k!==void 0?(this.setCurrentMarker(k),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(D.clientX,D.clientY),D.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:D.clientX,y:D.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(D.clientX,D.clientY))},xe.prototype.onDblClick=function(D){if(this._isFocused||this.focus(),this.mode==="select"){var k=this.markers.find(function(G){return G.ownsTarget(D.target)});k!==void 0&&k!==this._currentMarker&&this.setCurrentMarker(k),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(D.clientX,D.clientY),D.target):this.setCurrentMarker()}},xe.prototype.onPointerMove=function(D){this.touchPoints!==1&&D.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||D.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(D.clientX,D.clientY)):this.zoomLevel>1&&this.panTo({x:D.clientX,y:D.clientY}))},xe.prototype.onPointerUp=function(D){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(D.clientX,D.clientY)),this.isDragging=!1,this.addUndoStep()},xe.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},xe.prototype.onKeyUp=function(D){this._currentMarker===void 0||this.notesArea!==void 0||D.key!=="Delete"&&D.key!=="Backspace"||this.deleteSelectedMarker()},xe.prototype.clientToLocalCoordinates=function(D,k){var G=this.markerImage.getBoundingClientRect();return{x:(D-G.left)/this.zoomLevel,y:(k-G.top)/this.zoomLevel}},xe.prototype.onWindowResize=function(){this.positionUI()},xe.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var D=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=D+"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()},xe.prototype.addLicenseKey=function(D){M.addKey(D)},xe.prototype.addEventListener=function(D,k){this.eventListeners.addEventListener(D,k)},xe.prototype.removeEventListener=function(D,k){this.eventListeners.removeEventListener(D,k)},xe.prototype.renderState=function(D){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(D),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(xe.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),xe.prototype.focus=function(){var D=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(k){return k(new yt(D))}))},xe.prototype.blur=function(){var D=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(k){return k(new yt(D))}))},xe.instanceCounter=0,xe}()},67842:function(J){"use strict";var C,d=59;J.exports=b;function b(I){var L="&"+I+";",B;return C=C||document.createElement("i"),C.innerHTML=L,B=C.textContent,B.charCodeAt(B.length-1)===d&&I!=="semi"||B===L?!1:B}},12256:function(J,C,d){"use strict";var b=d(47854),I=d(80501),L=d(22347),B=d(65207),V=d(21127),Q=d(67842);J.exports=Cn;var M={}.hasOwnProperty,de=String.fromCharCode,he=Function.prototype,re={warning:null,reference:null,text:null,warningContext:null,referenceContext:null,textContext:null,position:{},additional:null,attribute:!1,nonTerminated:!0},De=9,ne=10,it=12,Ue=32,Ie=38,Pe=59,ze=60,Ee=61,fe=35,we=88,pe=120,Ne=65533,te="named",Ae="hexadecimal",Te="decimal",$e={};$e[Ae]=16,$e[Te]=10;var Qe={};Qe[te]=V,Qe[Te]=L,Qe[Ae]=B;var Je=1,Ce=2,dt=3,Xe=4,$t=5,xt=6,At=7,St={};St[Je]="Named character references must be terminated by a semicolon",St[Ce]="Numeric character references must be terminated by a semicolon",St[dt]="Named character references cannot be empty",St[Xe]="Numeric character references cannot be empty",St[$t]="Named character references must be known",St[xt]="Numeric character references cannot be disallowed",St[At]="Numeric character references cannot be outside the permissible Unicode range";function Cn(Ot,Kt){var vt={},hn,Rt;Kt||(Kt={});for(Rt in re)hn=Kt[Rt],vt[Rt]=hn==null?re[Rt]:hn;return(vt.position.indent||vt.position.start)&&(vt.indent=vt.position.indent||[],vt.position=vt.position.start),Ye(Ot,vt)}function Ye(Ot,Kt){var vt=Kt.additional,hn=Kt.nonTerminated,Rt=Kt.text,hi=Kt.reference,yt=Kt.warning,si=Kt.textContext,qn=Kt.referenceContext,ln=Kt.warningContext,Tn=Kt.position,xe=Kt.indent||[],D=Ot.length,k=0,G=-1,X=Tn.column||1,T=Tn.line||1,Re="",mt=[],_e,Le,ct,ot,Ze,Et,Gt,Vt,Pt,nn,vn,We,Dt,Qt,bn,$n,Un,kt,Hn;for(typeof vt=="string"&&(vt=vt.charCodeAt(0)),$n=Jn(),Vt=yt?tt:he,k--,D++;++k<D;)if(Ze===ne&&(X=xe[G]||1),Ze=Ot.charCodeAt(k),Ze===Ie){if(Gt=Ot.charCodeAt(k+1),Gt===De||Gt===ne||Gt===it||Gt===Ue||Gt===Ie||Gt===ze||Gt!==Gt||vt&&Gt===vt){Re+=de(Ze),X++;continue}for(Dt=k+1,We=Dt,Hn=Dt,Gt===fe?(Hn=++We,Gt=Ot.charCodeAt(Hn),Gt===we||Gt===pe?(Qt=Ae,Hn=++We):Qt=Te):Qt=te,_e="",vn="",ot="",bn=Qe[Qt],Hn--;++Hn<D&&(Gt=Ot.charCodeAt(Hn),!!bn(Gt));)ot+=de(Gt),Qt===te&&M.call(b,ot)&&(_e=ot,vn=b[ot]);ct=Ot.charCodeAt(Hn)===Pe,ct&&(Hn++,Le=Qt===te?Q(ot):!1,Le&&(_e=ot,vn=Le)),kt=1+Hn-Dt,!ct&&!hn||(ot?Qt===te?(ct&&!vn?Vt($t,1):(_e!==ot&&(Hn=We+_e.length,kt=1+Hn-We,ct=!1),ct||(Pt=_e?Je:dt,Kt.attribute?(Gt=Ot.charCodeAt(Hn),Gt===Ee?(Vt(Pt,kt),vn=null):V(Gt)?vn=null:Vt(Pt,kt)):Vt(Pt,kt))),Et=vn):(ct||Vt(Ce,kt),Et=parseInt(ot,$e[Qt]),oe(Et)?(Vt(At,kt),Et=de(Ne)):Et in I?(Vt(xt,kt),Et=I[Et]):(nn="",H(Et)&&Vt(xt,kt),Et>65535&&(Et-=65536,nn+=de(Et>>>10|55296),Et=56320|Et&1023),Et=nn+de(Et))):Qt!==te&&Vt(Xe,kt)),Et?(j(),$n=Jn(),k=Hn-1,X+=Hn-Dt+1,mt.push(Et),Un=Jn(),Un.offset++,hi&&hi.call(qn,Et,{start:$n,end:Un},Ot.slice(Dt-1,Hn)),$n=Un):(ot=Ot.slice(Dt-1,Hn),Re+=ot,X+=ot.length,k=Hn-1)}else Ze===10&&(T++,G++,X=0),Ze===Ze?(Re+=de(Ze),X++):j();return mt.join("");function Jn(){return{line:T,column:X,offset:k+(Tn.offset||0)}}function tt(Oi,tr){var Gn=Jn();Gn.column+=tr,Gn.offset+=tr,yt.call(ln,St[Oi],Gn,Oi)}function j(){Re&&(mt.push(Re),Rt&&Rt.call(si,Re,{start:$n,end:Jn()}),Re="")}}function oe(Ot){return Ot>=55296&&Ot<=57343||Ot>1114111}function H(Ot){return Ot>=1&&Ot<=8||Ot===11||Ot>=13&&Ot<=31||Ot>=127&&Ot<=159||Ot>=64976&&Ot<=65007||(Ot&65535)===65535||(Ot&65535)===65534}},68398:function(J,C,d){var b=typeof window!="undefined"?window:typeof WorkerGlobalScope!="undefined"&&self instanceof WorkerGlobalScope?self:{};var I=function(L){var B=/(?:^|\s)lang(?:uage)?-([\w-]+)(?=\s|$)/i,V=0,Q={},M={manual:L.Prism&&L.Prism.manual,disableWorkerMessageHandler:L.Prism&&L.Prism.disableWorkerMessageHandler,util:{encode:function Ee(fe){return fe instanceof de?new de(fe.type,Ee(fe.content),fe.alias):Array.isArray(fe)?fe.map(Ee):fe.replace(/&/g,"&").replace(/</g,"<").replace(/\u00a0/g," ")},type:function(Ee){return Object.prototype.toString.call(Ee).slice(8,-1)},objId:function(Ee){return Ee.__id||Object.defineProperty(Ee,"__id",{value:++V}),Ee.__id},clone:function Ee(fe,we){we=we||{};var pe,Ne;switch(M.util.type(fe)){case"Object":if(Ne=M.util.objId(fe),we[Ne])return we[Ne];pe={},we[Ne]=pe;for(var te in fe)fe.hasOwnProperty(te)&&(pe[te]=Ee(fe[te],we));return pe;case"Array":return Ne=M.util.objId(fe),we[Ne]?we[Ne]:(pe=[],we[Ne]=pe,fe.forEach(function(Ae,Te){pe[Te]=Ee(Ae,we)}),pe);default:return fe}},getLanguage:function(Ee){for(;Ee;){var fe=B.exec(Ee.className);if(fe)return fe[1].toLowerCase();Ee=Ee.parentElement}return"none"},setLanguage:function(Ee,fe){Ee.className=Ee.className.replace(RegExp(B,"gi"),""),Ee.classList.add("language-"+fe)},currentScript:function(){if(typeof document=="undefined")return null;if("currentScript"in document)return document.currentScript;try{throw new Error}catch(pe){var Ee=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(pe.stack)||[])[1];if(Ee){var fe=document.getElementsByTagName("script");for(var we in fe)if(fe[we].src==Ee)return fe[we]}return null}},isActive:function(Ee,fe,we){for(var pe="no-"+fe;Ee;){var Ne=Ee.classList;if(Ne.contains(fe))return!0;if(Ne.contains(pe))return!1;Ee=Ee.parentElement}return!!we}},languages:{plain:Q,plaintext:Q,text:Q,txt:Q,extend:function(Ee,fe){var we=M.util.clone(M.languages[Ee]);for(var pe in fe)we[pe]=fe[pe];return we},insertBefore:function(Ee,fe,we,pe){pe=pe||M.languages;var Ne=pe[Ee],te={};for(var Ae in Ne)if(Ne.hasOwnProperty(Ae)){if(Ae==fe)for(var Te in we)we.hasOwnProperty(Te)&&(te[Te]=we[Te]);we.hasOwnProperty(Ae)||(te[Ae]=Ne[Ae])}var $e=pe[Ee];return pe[Ee]=te,M.languages.DFS(M.languages,function(Qe,Je){Je===$e&&Qe!=Ee&&(this[Qe]=te)}),te},DFS:function Ee(fe,we,pe,Ne){Ne=Ne||{};var te=M.util.objId;for(var Ae in fe)if(fe.hasOwnProperty(Ae)){we.call(fe,Ae,fe[Ae],pe||Ae);var Te=fe[Ae],$e=M.util.type(Te);$e==="Object"&&!Ne[te(Te)]?(Ne[te(Te)]=!0,Ee(Te,we,null,Ne)):$e==="Array"&&!Ne[te(Te)]&&(Ne[te(Te)]=!0,Ee(Te,we,Ae,Ne))}}},plugins:{},highlightAll:function(Ee,fe){M.highlightAllUnder(document,Ee,fe)},highlightAllUnder:function(Ee,fe,we){var pe={callback:we,container:Ee,selector:'code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code'};M.hooks.run("before-highlightall",pe),pe.elements=Array.prototype.slice.apply(pe.container.querySelectorAll(pe.selector)),M.hooks.run("before-all-elements-highlight",pe);for(var Ne=0,te;te=pe.elements[Ne++];)M.highlightElement(te,fe===!0,pe.callback)},highlightElement:function(Ee,fe,we){var pe=M.util.getLanguage(Ee),Ne=M.languages[pe];M.util.setLanguage(Ee,pe);var te=Ee.parentElement;te&&te.nodeName.toLowerCase()==="pre"&&M.util.setLanguage(te,pe);var Ae=Ee.textContent,Te={element:Ee,language:pe,grammar:Ne,code:Ae};function $e(Je){Te.highlightedCode=Je,M.hooks.run("before-insert",Te),Te.element.innerHTML=Te.highlightedCode,M.hooks.run("after-highlight",Te),M.hooks.run("complete",Te),we&&we.call(Te.element)}if(M.hooks.run("before-sanity-check",Te),te=Te.element.parentElement,te&&te.nodeName.toLowerCase()==="pre"&&!te.hasAttribute("tabindex")&&te.setAttribute("tabindex","0"),!Te.code){M.hooks.run("complete",Te),we&&we.call(Te.element);return}if(M.hooks.run("before-highlight",Te),!Te.grammar){$e(M.util.encode(Te.code));return}if(fe&&L.Worker){var Qe=new Worker(M.filename);Qe.onmessage=function(Je){$e(Je.data)},Qe.postMessage(JSON.stringify({language:Te.language,code:Te.code,immediateClose:!0}))}else $e(M.highlight(Te.code,Te.grammar,Te.language))},highlight:function(Ee,fe,we){var pe={code:Ee,grammar:fe,language:we};if(M.hooks.run("before-tokenize",pe),!pe.grammar)throw new Error('The language "'+pe.language+'" has no grammar.');return pe.tokens=M.tokenize(pe.code,pe.grammar),M.hooks.run("after-tokenize",pe),de.stringify(M.util.encode(pe.tokens),pe.language)},tokenize:function(Ee,fe){var we=fe.rest;if(we){for(var pe in we)fe[pe]=we[pe];delete fe.rest}var Ne=new De;return ne(Ne,Ne.head,Ee),re(Ee,Ne,fe,Ne.head,0),Ue(Ne)},hooks:{all:{},add:function(Ee,fe){var we=M.hooks.all;we[Ee]=we[Ee]||[],we[Ee].push(fe)},run:function(Ee,fe){var we=M.hooks.all[Ee];if(!(!we||!we.length))for(var pe=0,Ne;Ne=we[pe++];)Ne(fe)}},Token:de};L.Prism=M;function de(Ee,fe,we,pe){this.type=Ee,this.content=fe,this.alias=we,this.length=(pe||"").length|0}de.stringify=function Ee(fe,we){if(typeof fe=="string")return fe;if(Array.isArray(fe)){var pe="";return fe.forEach(function($e){pe+=Ee($e,we)}),pe}var Ne={type:fe.type,content:Ee(fe.content,we),tag:"span",classes:["token",fe.type],attributes:{},language:we},te=fe.alias;te&&(Array.isArray(te)?Array.prototype.push.apply(Ne.classes,te):Ne.classes.push(te)),M.hooks.run("wrap",Ne);var Ae="";for(var Te in Ne.attributes)Ae+=" "+Te+'="'+(Ne.attributes[Te]||"").replace(/"/g,""")+'"';return"<"+Ne.tag+' class="'+Ne.classes.join(" ")+'"'+Ae+">"+Ne.content+"</"+Ne.tag+">"};function he(Ee,fe,we,pe){Ee.lastIndex=fe;var Ne=Ee.exec(we);if(Ne&&pe&&Ne[1]){var te=Ne[1].length;Ne.index+=te,Ne[0]=Ne[0].slice(te)}return Ne}function re(Ee,fe,we,pe,Ne,te){for(var Ae in we)if(!(!we.hasOwnProperty(Ae)||!we[Ae])){var Te=we[Ae];Te=Array.isArray(Te)?Te:[Te];for(var $e=0;$e<Te.length;++$e){if(te&&te.cause==Ae+","+$e)return;var Qe=Te[$e],Je=Qe.inside,Ce=!!Qe.lookbehind,dt=!!Qe.greedy,Xe=Qe.alias;if(dt&&!Qe.pattern.global){var $t=Qe.pattern.toString().match(/[imsuy]*$/)[0];Qe.pattern=RegExp(Qe.pattern.source,$t+"g")}for(var xt=Qe.pattern||Qe,At=pe.next,St=Ne;At!==fe.tail&&!(te&&St>=te.reach);St+=At.value.length,At=At.next){var Cn=At.value;if(fe.length>Ee.length)return;if(!(Cn instanceof de)){var Ye=1,oe;if(dt){if(oe=he(xt,St,Ee,Ce),!oe||oe.index>=Ee.length)break;var vt=oe.index,H=oe.index+oe[0].length,Ot=St;for(Ot+=At.value.length;vt>=Ot;)At=At.next,Ot+=At.value.length;if(Ot-=At.value.length,St=Ot,At.value instanceof de)continue;for(var Kt=At;Kt!==fe.tail&&(Ot<H||typeof Kt.value=="string");Kt=Kt.next)Ye++,Ot+=Kt.value.length;Ye--,Cn=Ee.slice(St,Ot),oe.index-=St}else if(oe=he(xt,0,Cn,Ce),!oe)continue;var vt=oe.index,hn=oe[0],Rt=Cn.slice(0,vt),hi=Cn.slice(vt+hn.length),yt=St+Cn.length;te&&yt>te.reach&&(te.reach=yt);var si=At.prev;Rt&&(si=ne(fe,si,Rt),St+=Rt.length),it(fe,si,Ye);var qn=new de(Ae,Je?M.tokenize(hn,Je):hn,Xe,hn);if(At=ne(fe,si,qn),hi&&ne(fe,At,hi),Ye>1){var ln={cause:Ae+","+$e,reach:yt};re(Ee,fe,we,At.prev,St,ln),te&&ln.reach>te.reach&&(te.reach=ln.reach)}}}}}}function De(){var Ee={value:null,prev:null,next:null},fe={value:null,prev:Ee,next:null};Ee.next=fe,this.head=Ee,this.tail=fe,this.length=0}function ne(Ee,fe,we){var pe=fe.next,Ne={value:we,prev:fe,next:pe};return fe.next=Ne,pe.prev=Ne,Ee.length++,Ne}function it(Ee,fe,we){for(var pe=fe.next,Ne=0;Ne<we&&pe!==Ee.tail;Ne++)pe=pe.next;fe.next=pe,pe.prev=fe,Ee.length-=Ne}function Ue(Ee){for(var fe=[],we=Ee.head.next;we!==Ee.tail;)fe.push(we.value),we=we.next;return fe}if(!L.document)return L.addEventListener&&(M.disableWorkerMessageHandler||L.addEventListener("message",function(Ee){var fe=JSON.parse(Ee.data),we=fe.language,pe=fe.code,Ne=fe.immediateClose;L.postMessage(M.highlight(pe,M.languages[we],we)),Ne&&L.close()},!1)),M;var Ie=M.util.currentScript();Ie&&(M.filename=Ie.src,Ie.hasAttribute("data-manual")&&(M.manual=!0));function Pe(){M.manual||M.highlightAll()}if(!M.manual){var ze=document.readyState;ze==="loading"||ze==="interactive"&&Ie&&Ie.defer?document.addEventListener("DOMContentLoaded",Pe):window.requestAnimationFrame?window.requestAnimationFrame(Pe):window.setTimeout(Pe,16)}return M}(b);J.exports&&(J.exports=I),typeof d.g!="undefined"&&(d.g.Prism=I)},88914:function(J,C,d){"use strict";var b=d(47178),I=d(19095),L=d(1969),B="data";J.exports=de;var V=/^data[-\w.:]+$/i,Q=/-[a-z]/g,M=/[A-Z]/g;function de(it,Ue){var Ie=b(Ue),Pe=Ue,ze=L;return Ie in it.normal?it.property[it.normal[Ie]]:(Ie.length>4&&Ie.slice(0,4)===B&&V.test(Ue)&&(Ue.charAt(4)==="-"?Pe=he(Ue):Ue=re(Ue),ze=I),new ze(Pe,Ue))}function he(it){var Ue=it.slice(5).replace(Q,ne);return B+Ue.charAt(0).toUpperCase()+Ue.slice(1)}function re(it){var Ue=it.slice(4);return Q.test(Ue)?it:(Ue=Ue.replace(M,De),Ue.charAt(0)!=="-"&&(Ue="-"+Ue),B+Ue)}function De(it){return"-"+it.toLowerCase()}function ne(it){return it.charAt(1).toUpperCase()}},18795:function(J,C,d){"use strict";var b=d(83576),I=d(8179),L=d(59780),B=d(68244),V=d(20019),Q=d(38567);J.exports=b([L,I,B,V,Q])},20019:function(J,C,d){"use strict";var b=d(70167),I=d(79318),L=b.booleanish,B=b.number,V=b.spaceSeparated;J.exports=I({transform:Q,properties:{ariaActiveDescendant:null,ariaAtomic:L,ariaAutoComplete:null,ariaBusy:L,ariaChecked:L,ariaColCount:B,ariaColIndex:B,ariaColSpan:B,ariaControls:V,ariaCurrent:null,ariaDescribedBy:V,ariaDetails:null,ariaDisabled:L,ariaDropEffect:V,ariaErrorMessage:null,ariaExpanded:L,ariaFlowTo:V,ariaGrabbed:L,ariaHasPopup:null,ariaHidden:L,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:V,ariaLevel:B,ariaLive:null,ariaModal:L,ariaMultiLine:L,ariaMultiSelectable:L,ariaOrientation:null,ariaOwns:V,ariaPlaceholder:null,ariaPosInSet:B,ariaPressed:L,ariaReadOnly:L,ariaRelevant:null,ariaRequired:L,ariaRoleDescription:V,ariaRowCount:B,ariaRowIndex:B,ariaRowSpan:B,ariaSelected:L,ariaSetSize:B,ariaSort:null,ariaValueMax:B,ariaValueMin:B,ariaValueNow:B,ariaValueText:null,role:null}});function Q(M,de){return de==="role"?de:"aria-"+de.slice(4).toLowerCase()}},38567:function(J,C,d){"use strict";var b=d(70167),I=d(79318),L=d(85804),B=b.boolean,V=b.overloadedBoolean,Q=b.booleanish,M=b.number,de=b.spaceSeparated,he=b.commaSeparated;J.exports=I({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:L,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:he,acceptCharset:de,accessKey:de,action:null,allow:null,allowFullScreen:B,allowPaymentRequest:B,allowUserMedia:B,alt:null,as:null,async:B,autoCapitalize:null,autoComplete:de,autoFocus:B,autoPlay:B,capture:B,charSet:null,checked:B,cite:null,className:de,cols:M,colSpan:null,content:null,contentEditable:Q,controls:B,controlsList:de,coords:M|he,crossOrigin:null,data:null,dateTime:null,decoding:null,default:B,defer:B,dir:null,dirName:null,disabled:B,download:V,draggable:Q,encType:null,enterKeyHint:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:B,formTarget:null,headers:de,height:M,hidden:B,high:M,href:null,hrefLang:null,htmlFor:de,httpEquiv:de,id:null,imageSizes:null,imageSrcSet:he,inputMode:null,integrity:null,is:null,isMap:B,itemId:null,itemProp:de,itemRef:de,itemScope:B,itemType:de,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:B,low:M,manifest:null,max:null,maxLength:M,media:null,method:null,min:null,minLength:M,multiple:B,muted:B,name:null,nonce:null,noModule:B,noValidate:B,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforePrint:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextMenu:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:B,optimum:M,pattern:null,ping:de,placeholder:null,playsInline:B,poster:null,preload:null,readOnly:B,referrerPolicy:null,rel:de,required:B,reversed:B,rows:M,rowSpan:M,sandbox:de,scope:null,scoped:B,seamless:B,selected:B,shape:null,size:M,sizes:null,slot:null,span:M,spellCheck:Q,src:null,srcDoc:null,srcLang:null,srcSet:he,start:M,step:null,style:null,tabIndex:M,target:null,title:null,translate:null,type:null,typeMustMatch:B,useMap:null,value:Q,width:M,wrap:null,align:null,aLink:null,archive:de,axis:null,background:null,bgColor:null,border:M,borderColor:null,bottomMargin:M,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:B,declare:B,event:null,face:null,frame:null,frameBorder:null,hSpace:M,leftMargin:M,link:null,longDesc:null,lowSrc:null,marginHeight:M,marginWidth:M,noResize:B,noHref:B,noShade:B,noWrap:B,object:null,profile:null,prompt:null,rev:null,rightMargin:M,rules:null,scheme:null,scrolling:Q,standby:null,summary:null,text:null,topMargin:M,valueType:null,version:null,vAlign:null,vLink:null,vSpace:M,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:B,disableRemotePlayback:B,prefix:null,property:null,results:M,security:null,unselectable:null}})},85804:function(J,C,d){"use strict";var b=d(56432);J.exports=I;function I(L,B){return b(L,B.toLowerCase())}},56432:function(J){"use strict";J.exports=C;function C(d,b){return b in d?d[b]:b}},79318:function(J,C,d){"use strict";var b=d(47178),I=d(44347),L=d(19095);J.exports=B;function B(V){var Q=V.space,M=V.mustUseProperty||[],de=V.attributes||{},he=V.properties,re=V.transform,De={},ne={},it,Ue;for(it in he)Ue=new L(it,re(de,it),he[it],Q),M.indexOf(it)!==-1&&(Ue.mustUseProperty=!0),De[it]=Ue,ne[b(it)]=it,ne[b(Ue.attribute)]=it;return new I(De,ne,Q)}},19095:function(J,C,d){"use strict";var b=d(1969),I=d(70167);J.exports=V,V.prototype=new b,V.prototype.defined=!0;var L=["boolean","booleanish","overloadedBoolean","number","commaSeparated","spaceSeparated","commaOrSpaceSeparated"],B=L.length;function V(M,de,he,re){var De=-1,ne;for(Q(this,"space",re),b.call(this,M,de);++De<B;)ne=L[De],Q(this,ne,(he&I[ne])===I[ne])}function Q(M,de,he){he&&(M[de]=he)}},1969:function(J){"use strict";J.exports=d;var C=d.prototype;C.space=null,C.attribute=null,C.property=null,C.boolean=!1,C.booleanish=!1,C.overloadedBoolean=!1,C.number=!1,C.commaSeparated=!1,C.spaceSeparated=!1,C.commaOrSpaceSeparated=!1,C.mustUseProperty=!1,C.defined=!1;function d(b,I){this.property=b,this.attribute=I}},83576:function(J,C,d){"use strict";var b=d(97270),I=d(44347);J.exports=L;function L(B){for(var V=B.length,Q=[],M=[],de=-1,he,re;++de<V;)he=B[de],Q.push(he.property),M.push(he.normal),re=he.space;return new I(b.apply(null,Q),b.apply(null,M),re)}},44347:function(J){"use strict";J.exports=d;var C=d.prototype;C.space=null,C.normal={},C.property={};function d(b,I,L){this.property=b,this.normal=I,L&&(this.space=L)}},70167:function(J,C){"use strict";var d=0;C.boolean=b(),C.booleanish=b(),C.overloadedBoolean=b(),C.number=b(),C.spaceSeparated=b(),C.commaSeparated=b(),C.commaOrSpaceSeparated=b();function b(){return Math.pow(2,++d)}},8179:function(J,C,d){"use strict";var b=d(79318);J.exports=b({space:"xlink",transform:I,properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}});function I(L,B){return"xlink:"+B.slice(5).toLowerCase()}},59780:function(J,C,d){"use strict";var b=d(79318);J.exports=b({space:"xml",transform:I,properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function I(L,B){return"xml:"+B.slice(3).toLowerCase()}},68244:function(J,C,d){"use strict";var b=d(79318),I=d(85804);J.exports=b({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:I,properties:{xmlns:null,xmlnsXLink:null}})},47178:function(J){"use strict";J.exports=C;function C(d){return d.toLowerCase()}},17115:function(J,C,d){"use strict";d.d(C,{ZP:function(){return M}});var b=d(33606),I=d(59301),L=d(47273),B=0,V=(0,L.Z)();function Q(){var de;return V?(de=B,B+=1):de="TEST_OR_SSR",de}function M(de){var he=I.useState(),re=(0,b.Z)(he,2),De=re[0],ne=re[1];return I.useEffect(function(){ne("rc_select_".concat(Q()))},[]),de||De}},77861:function(J,C,d){"use strict";d.d(C,{Ac:function(){return Et},Xo:function(){return Hn},Wx:function(){return tt},ZP:function(){return Qn},lk:function(){return pe}});var b=d(92413),I=d(26407),L=d(400),B=d(33708),V=d(33606),Q=d(37061),M=d(39559),de=d(18929),he=d(48736),re=d(59301),De=d(92310),ne=d.n(De),it=d(34280),Ue=d(49658),Ie=d(10228),Pe=d(8654),ze=function(je){var sn=je.className,In=je.customizeIcon,ni=je.customizeIconProps,Kn=je.onMouseDown,ut=je.onClick,yn=je.children,rn;return typeof In=="function"?rn=In(ni):rn=In,re.createElement("span",{className:sn,onMouseDown:function(Zt){Zt.preventDefault(),Kn&&Kn(Zt)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:ut,"aria-hidden":!0},rn!==void 0?rn:re.createElement("span",{className:ne()(sn.split(/\s+/).map(function(Si){return"".concat(Si,"-icon")}))},yn))},Ee=ze;function fe(ft,je,sn,In,ni){var Kn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,ut=arguments.length>6?arguments[6]:void 0,yn=arguments.length>7?arguments[7]:void 0,rn=re.useMemo(function(){if((0,M.Z)(In)==="object")return In.clearIcon;if(ni)return ni},[In,ni]),Si=re.useMemo(function(){return!!(!Kn&&In&&(sn.length||ut)&&!(yn==="combobox"&&ut===""))},[In,Kn,sn.length,ut,yn]);return{allowClear:Si,clearIcon:re.createElement(Ee,{className:"".concat(ft,"-clear"),onMouseDown:je,customizeIcon:rn},"\xD7")}}var we=re.createContext(null);function pe(){return re.useContext(we)}function Ne(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,je=re.useState(!1),sn=(0,V.Z)(je,2),In=sn[0],ni=sn[1],Kn=re.useRef(null),ut=function(){window.clearTimeout(Kn.current)};re.useEffect(function(){return ut},[]);var yn=function(Si,Zt){ut(),Kn.current=window.setTimeout(function(){ni(Si),Zt&&Zt()},ft)};return[In,yn,ut]}function te(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,je=re.useRef(null),sn=re.useRef(null);re.useEffect(function(){return function(){window.clearTimeout(sn.current)}},[]);function In(ni){(ni||je.current===null)&&(je.current=ni),window.clearTimeout(sn.current),sn.current=window.setTimeout(function(){je.current=null},ft)}return[function(){return je.current},In]}function Ae(ft,je,sn,In){var ni=re.useRef(null);ni.current={open:je,triggerOpen:sn,customizedTrigger:In},re.useEffect(function(){function Kn(ut){var yn;if(!((yn=ni.current)!==null&&yn!==void 0&&yn.customizedTrigger)){var rn=ut.target;rn.shadowRoot&&ut.composed&&(rn=ut.composedPath()[0]||rn),ni.current.open&&ft().filter(function(Si){return Si}).every(function(Si){return!Si.contains(rn)&&Si!==rn})&&ni.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Kn),function(){return window.removeEventListener("mousedown",Kn)}},[])}var Te=d(26112),$e=d(11780),Qe=function(je,sn){var In,ni,Kn=je.prefixCls,ut=je.id,yn=je.inputElement,rn=je.disabled,Si=je.tabIndex,Zt=je.autoFocus,_n=je.autoComplete,Mt=je.editable,Jt=je.activeDescendantId,on=je.value,jt=je.maxLength,gn=je.onKeyDown,fn=je.onMouseDown,En=je.onChange,Ln=je.onPaste,Ai=je.onCompositionStart,zn=je.onCompositionEnd,ki=je.open,ir=je.attrs,lr=yn||re.createElement("input",null),qt=lr,Ki=qt.ref,ee=qt.props,ue=ee.onKeyDown,Zn=ee.onChange,Be=ee.onMouseDown,wt=ee.onCompositionStart,Ni=ee.onCompositionEnd,Dn=ee.style;return(0,he.Kp)(!("maxLength"in lr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),lr=re.cloneElement(lr,(0,B.Z)((0,B.Z)((0,B.Z)({type:"search"},ee),{},{id:ut,ref:(0,Pe.sQ)(sn,Ki),disabled:rn,tabIndex:Si,autoComplete:_n||"off",autoFocus:Zt,className:ne()("".concat(Kn,"-selection-search-input"),(In=lr)===null||In===void 0||(ni=In.props)===null||ni===void 0?void 0:ni.className),role:"combobox","aria-label":"Search","aria-expanded":ki||!1,"aria-haspopup":"listbox","aria-owns":"".concat(ut,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(ut,"_list"),"aria-activedescendant":ki?Jt:void 0},ir),{},{value:Mt?on:"",maxLength:jt,readOnly:!Mt,unselectable:Mt?null:"on",style:(0,B.Z)((0,B.Z)({},Dn),{},{opacity:Mt?null:0}),onKeyDown:function(Xt){gn(Xt),ue&&ue(Xt)},onMouseDown:function(Xt){fn(Xt),Be&&Be(Xt)},onChange:function(Xt){En(Xt),Zn&&Zn(Xt)},onCompositionStart:function(Xt){Ai(Xt),wt&&wt(Xt)},onCompositionEnd:function(Xt){zn(Xt),Ni&&Ni(Xt)},onPaste:Ln})),lr},Je=re.forwardRef(Qe);Je.displayName="Input";var Ce=Je;function dt(ft){return Array.isArray(ft)?ft:ft!==void 0?[ft]:[]}var Xe=typeof window!="undefined"&&window.document&&window.document.documentElement,$t=Xe;function xt(ft){return ft!=null}function At(ft){return!ft&&ft!==0}function St(ft){return["string","number"].includes((0,M.Z)(ft))}function Cn(ft){var je=void 0;return ft&&(St(ft.title)?je=ft.title.toString():St(ft.label)&&(je=ft.label.toString())),je}function Ye(ft,je){$t?re.useLayoutEffect(ft,je):re.useEffect(ft,je)}function oe(ft){var je;return(je=ft.key)!==null&&je!==void 0?je:ft.value}var H=function(je){je.preventDefault(),je.stopPropagation()},Ot=function(je){var sn=je.id,In=je.prefixCls,ni=je.values,Kn=je.open,ut=je.searchValue,yn=je.autoClearSearchValue,rn=je.inputRef,Si=je.placeholder,Zt=je.disabled,_n=je.mode,Mt=je.showSearch,Jt=je.autoFocus,on=je.autoComplete,jt=je.activeDescendantId,gn=je.tabIndex,fn=je.removeIcon,En=je.maxTagCount,Ln=je.maxTagTextLength,Ai=je.maxTagPlaceholder,zn=Ai===void 0?function(br){return"+ ".concat(br.length," ...")}:Ai,ki=je.tagRender,ir=je.onToggleOpen,lr=je.onRemove,qt=je.onInputChange,Ki=je.onInputPaste,ee=je.onInputKeyDown,ue=je.onInputMouseDown,Zn=je.onInputCompositionStart,Be=je.onInputCompositionEnd,wt=re.useRef(null),Ni=(0,re.useState)(0),Dn=(0,V.Z)(Ni,2),Gi=Dn[0],Xt=Dn[1],Ii=(0,re.useState)(!1),Yt=(0,V.Z)(Ii,2),Wi=Yt[0],Zr=Yt[1],It="".concat(In,"-selection"),fo=Kn||_n==="multiple"&&yn===!1||_n==="tags"?ut:"",tn=_n==="tags"||_n==="multiple"&&yn===!1||Mt&&(Kn||Wi);Ye(function(){Xt(wt.current.scrollWidth)},[fo]);function Fi(br,to,mr,Xr,qi){return re.createElement("span",{className:ne()("".concat(It,"-item"),(0,L.Z)({},"".concat(It,"-item-disabled"),mr)),title:Cn(br)},re.createElement("span",{className:"".concat(It,"-item-content")},to),Xr&&re.createElement(Ee,{className:"".concat(It,"-item-remove"),onMouseDown:H,onClick:qi,customizeIcon:fn},"\xD7"))}function Li(br,to,mr,Xr,qi){var zr=function($i){H($i),ir(!Kn)};return re.createElement("span",{onMouseDown:zr},ki({label:to,value:br,disabled:mr,closable:Xr,onClose:qi}))}function Nt(br){var to=br.disabled,mr=br.label,Xr=br.value,qi=!Zt&&!to,zr=mr;if(typeof Ln=="number"&&(typeof mr=="string"||typeof mr=="number")){var Ri=String(zr);Ri.length>Ln&&(zr="".concat(Ri.slice(0,Ln),"..."))}var $i=function(Pr){Pr&&Pr.stopPropagation(),lr(br)};return typeof ki=="function"?Li(Xr,zr,to,qi,$i):Fi(br,zr,to,qi,$i)}function Nr(br){var to=typeof zn=="function"?zn(br):zn;return Fi({title:to},to,!1)}var ii=re.createElement("div",{className:"".concat(It,"-search"),style:{width:Gi},onFocus:function(){Zr(!0)},onBlur:function(){Zr(!1)}},re.createElement(Ce,{ref:rn,open:Kn,prefixCls:In,id:sn,inputElement:null,disabled:Zt,autoFocus:Jt,autoComplete:on,editable:tn,activeDescendantId:jt,value:fo,onKeyDown:ee,onMouseDown:ue,onChange:qt,onPaste:Ki,onCompositionStart:Zn,onCompositionEnd:Be,tabIndex:gn,attrs:(0,Te.Z)(je,!0)}),re.createElement("span",{ref:wt,className:"".concat(It,"-search-mirror"),"aria-hidden":!0},fo,"\xA0")),ce=re.createElement($e.Z,{prefixCls:"".concat(It,"-overflow"),data:ni,renderItem:Nt,renderRest:Nr,suffix:ii,itemKey:oe,maxCount:En});return re.createElement(re.Fragment,null,ce,!ni.length&&!fo&&re.createElement("span",{className:"".concat(It,"-placeholder")},Si))},Kt=Ot,vt=function(je){var sn=je.inputElement,In=je.prefixCls,ni=je.id,Kn=je.inputRef,ut=je.disabled,yn=je.autoFocus,rn=je.autoComplete,Si=je.activeDescendantId,Zt=je.mode,_n=je.open,Mt=je.values,Jt=je.placeholder,on=je.tabIndex,jt=je.showSearch,gn=je.searchValue,fn=je.activeValue,En=je.maxLength,Ln=je.onInputKeyDown,Ai=je.onInputMouseDown,zn=je.onInputChange,ki=je.onInputPaste,ir=je.onInputCompositionStart,lr=je.onInputCompositionEnd,qt=je.title,Ki=re.useState(!1),ee=(0,V.Z)(Ki,2),ue=ee[0],Zn=ee[1],Be=Zt==="combobox",wt=Be||jt,Ni=Mt[0],Dn=gn||"";Be&&fn&&!ue&&(Dn=fn),re.useEffect(function(){Be&&Zn(!1)},[Be,fn]);var Gi=Zt!=="combobox"&&!_n&&!jt?!1:!!Dn,Xt=qt===void 0?Cn(Ni):qt,Ii=function(){if(Ni)return null;var Wi=Gi?{visibility:"hidden"}:void 0;return re.createElement("span",{className:"".concat(In,"-selection-placeholder"),style:Wi},Jt)};return re.createElement(re.Fragment,null,re.createElement("span",{className:"".concat(In,"-selection-search")},re.createElement(Ce,{ref:Kn,prefixCls:In,id:ni,open:_n,inputElement:sn,disabled:ut,autoFocus:yn,autoComplete:rn,editable:wt,activeDescendantId:Si,value:Dn,onKeyDown:Ln,onMouseDown:Ai,onChange:function(Wi){Zn(!0),zn(Wi)},onPaste:ki,onCompositionStart:ir,onCompositionEnd:lr,tabIndex:on,attrs:(0,Te.Z)(je,!0),maxLength:Be?En:void 0})),!Be&&Ni?re.createElement("span",{className:"".concat(In,"-selection-item"),title:Xt,style:Gi?{visibility:"hidden"}:void 0},Ni.label):null,Ii())},hn=vt;function Rt(ft){return![Ie.Z.ESC,Ie.Z.SHIFT,Ie.Z.BACKSPACE,Ie.Z.TAB,Ie.Z.WIN_KEY,Ie.Z.ALT,Ie.Z.META,Ie.Z.WIN_KEY_RIGHT,Ie.Z.CTRL,Ie.Z.SEMICOLON,Ie.Z.EQUALS,Ie.Z.CAPS_LOCK,Ie.Z.CONTEXT_MENU,Ie.Z.F1,Ie.Z.F2,Ie.Z.F3,Ie.Z.F4,Ie.Z.F5,Ie.Z.F6,Ie.Z.F7,Ie.Z.F8,Ie.Z.F9,Ie.Z.F10,Ie.Z.F11,Ie.Z.F12].includes(ft)}var hi=function(je,sn){var In=(0,re.useRef)(null),ni=(0,re.useRef)(!1),Kn=je.prefixCls,ut=je.open,yn=je.mode,rn=je.showSearch,Si=je.tokenWithEnter,Zt=je.autoClearSearchValue,_n=je.onSearch,Mt=je.onSearchSubmit,Jt=je.onToggleOpen,on=je.onInputKeyDown,jt=je.domRef;re.useImperativeHandle(sn,function(){return{focus:function(){In.current.focus()},blur:function(){In.current.blur()}}});var gn=te(0),fn=(0,V.Z)(gn,2),En=fn[0],Ln=fn[1],Ai=function(Dn){var Gi=Dn.which;(Gi===Ie.Z.UP||Gi===Ie.Z.DOWN)&&Dn.preventDefault(),on&&on(Dn),Gi===Ie.Z.ENTER&&yn==="tags"&&!ni.current&&!ut&&(Mt==null||Mt(Dn.target.value)),Rt(Gi)&&Jt(!0)},zn=function(){Ln(!0)},ki=(0,re.useRef)(null),ir=function(Dn){_n(Dn,!0,ni.current)!==!1&&Jt(!0)},lr=function(){ni.current=!0},qt=function(Dn){ni.current=!1,yn!=="combobox"&&ir(Dn.target.value)},Ki=function(Dn){var Gi=Dn.target.value;if(Si&&ki.current&&/[\r\n]/.test(ki.current)){var Xt=ki.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Gi=Gi.replace(Xt,ki.current)}ki.current=null,ir(Gi)},ee=function(Dn){var Gi=Dn.clipboardData,Xt=Gi.getData("text");ki.current=Xt},ue=function(Dn){var Gi=Dn.target;if(Gi!==In.current){var Xt=document.body.style.msTouchAction!==void 0;Xt?setTimeout(function(){In.current.focus()}):In.current.focus()}},Zn=function(Dn){var Gi=En();Dn.target!==In.current&&!Gi&&yn!=="combobox"&&Dn.preventDefault(),(yn!=="combobox"&&(!rn||!Gi)||!ut)&&(ut&&Zt!==!1&&_n("",!0,!1),Jt())},Be={inputRef:In,onInputKeyDown:Ai,onInputMouseDown:zn,onInputChange:Ki,onInputPaste:ee,onInputCompositionStart:lr,onInputCompositionEnd:qt},wt=yn==="multiple"||yn==="tags"?re.createElement(Kt,(0,b.Z)({},je,Be)):re.createElement(hn,(0,b.Z)({},je,Be));return re.createElement("div",{ref:jt,className:"".concat(Kn,"-selector"),onClick:ue,onMouseDown:Zn},wt)},yt=re.forwardRef(hi);yt.displayName="Selector";var si=yt,qn=d(35593),ln=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],Tn=function(je){var sn=je===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:sn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:sn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:sn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:sn,adjustY:1},htmlRegion:"scroll"}}},xe=function(je,sn){var In=je.prefixCls,ni=je.disabled,Kn=je.visible,ut=je.children,yn=je.popupElement,rn=je.animation,Si=je.transitionName,Zt=je.dropdownStyle,_n=je.dropdownClassName,Mt=je.direction,Jt=Mt===void 0?"ltr":Mt,on=je.placement,jt=je.builtinPlacements,gn=je.dropdownMatchSelectWidth,fn=je.dropdownRender,En=je.dropdownAlign,Ln=je.getPopupContainer,Ai=je.empty,zn=je.getTriggerDOMNode,ki=je.onPopupVisibleChange,ir=je.onPopupMouseEnter,lr=(0,Q.Z)(je,ln),qt="".concat(In,"-dropdown"),Ki=yn;fn&&(Ki=fn(yn));var ee=re.useMemo(function(){return jt||Tn(gn)},[jt,gn]),ue=rn?"".concat(qt,"-").concat(rn):Si,Zn=typeof gn=="number",Be=re.useMemo(function(){return Zn?null:gn===!1?"minWidth":"width"},[gn,Zn]),wt=Zt;Zn&&(wt=(0,B.Z)((0,B.Z)({},wt),{},{width:gn}));var Ni=re.useRef(null);return re.useImperativeHandle(sn,function(){return{getPopupElement:function(){return Ni.current}}}),re.createElement(qn.Z,(0,b.Z)({},lr,{showAction:ki?["click"]:[],hideAction:ki?["click"]:[],popupPlacement:on||(Jt==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:ee,prefixCls:qt,popupTransitionName:ue,popup:re.createElement("div",{ref:Ni,onMouseEnter:ir},Ki),stretch:Be,popupAlign:En,popupVisible:Kn,getPopupContainer:Ln,popupClassName:ne()(_n,(0,L.Z)({},"".concat(qt,"-empty"),Ai)),popupStyle:wt,getTriggerDOMNode:zn,onPopupVisibleChange:ki}),ut)},D=re.forwardRef(xe);D.displayName="SelectTrigger";var k=D,G=d(34589);function X(ft,je){var sn=ft.key,In;return"value"in ft&&(In=ft.value),sn!=null?sn:In!==void 0?In:"rc-index-key-".concat(je)}function T(ft,je){var sn=ft||{},In=sn.label,ni=sn.value,Kn=sn.options,ut=sn.groupLabel,yn=In||(je?"children":"label");return{label:yn,value:ni||"value",options:Kn||"options",groupLabel:ut||yn}}function Re(ft){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},sn=je.fieldNames,In=je.childrenAsData,ni=[],Kn=T(sn,!1),ut=Kn.label,yn=Kn.value,rn=Kn.options,Si=Kn.groupLabel;function Zt(_n,Mt){_n.forEach(function(Jt){if(Mt||!(rn in Jt)){var on=Jt[yn];ni.push({key:X(Jt,ni.length),groupOption:Mt,data:Jt,label:Jt[ut],value:on})}else{var jt=Jt[Si];jt===void 0&&In&&(jt=Jt.label),ni.push({key:X(Jt,ni.length),group:!0,data:Jt,label:jt}),Zt(Jt[rn],!0)}})}return Zt(ft,!1),ni}function mt(ft){var je=(0,B.Z)({},ft);return"props"in je||Object.defineProperty(je,"props",{get:function(){return(0,he.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),je}}),je}function _e(ft,je){if(!je||!je.length)return null;var sn=!1;function In(Kn,ut){var yn=(0,G.Z)(ut),rn=yn[0],Si=yn.slice(1);if(!rn)return[Kn];var Zt=Kn.split(rn);return sn=sn||Zt.length>1,Zt.reduce(function(_n,Mt){return[].concat((0,I.Z)(_n),(0,I.Z)(In(Mt,Si)))},[]).filter(function(_n){return _n})}var ni=In(ft,je);return sn?ni:null}var Le=["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"],ct=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function ot(ft){return ft==="tags"||ft==="multiple"}var Ze=re.forwardRef(function(ft,je){var sn,In,ni=ft.id,Kn=ft.prefixCls,ut=ft.className,yn=ft.showSearch,rn=ft.tagRender,Si=ft.direction,Zt=ft.omitDomProps,_n=ft.displayValues,Mt=ft.onDisplayValuesChange,Jt=ft.emptyOptions,on=ft.notFoundContent,jt=on===void 0?"Not Found":on,gn=ft.onClear,fn=ft.mode,En=ft.disabled,Ln=ft.loading,Ai=ft.getInputElement,zn=ft.getRawInputElement,ki=ft.open,ir=ft.defaultOpen,lr=ft.onDropdownVisibleChange,qt=ft.activeValue,Ki=ft.onActiveValueChange,ee=ft.activeDescendantId,ue=ft.searchValue,Zn=ft.autoClearSearchValue,Be=ft.onSearch,wt=ft.onSearchSplit,Ni=ft.tokenSeparators,Dn=ft.allowClear,Gi=ft.suffixIcon,Xt=ft.clearIcon,Ii=ft.OptionList,Yt=ft.animation,Wi=ft.transitionName,Zr=ft.dropdownStyle,It=ft.dropdownClassName,fo=ft.dropdownMatchSelectWidth,tn=ft.dropdownRender,Fi=ft.dropdownAlign,Li=ft.placement,Nt=ft.builtinPlacements,Nr=ft.getPopupContainer,ii=ft.showAction,ce=ii===void 0?[]:ii,br=ft.onFocus,to=ft.onBlur,mr=ft.onKeyUp,Xr=ft.onKeyDown,qi=ft.onMouseDown,zr=(0,Q.Z)(ft,Le),Ri=ot(fn),$i=(yn!==void 0?yn:Ri)||fn==="combobox",zi=(0,B.Z)({},zr);ct.forEach(function(Lr){delete zi[Lr]}),Zt==null||Zt.forEach(function(Lr){delete zi[Lr]});var Pr=re.useState(!1),Br=(0,V.Z)(Pr,2),no=Br[0],Po=Br[1];re.useEffect(function(){Po((0,Ue.Z)())},[]);var mi=re.useRef(null),ws=re.useRef(null),as=re.useRef(null),Fo=re.useRef(null),As=re.useRef(null),Xs=Ne(),da=(0,V.Z)(Xs,3),vs=da[0],Ua=da[1],Ls=da[2];re.useImperativeHandle(je,function(){var Lr,so;return{focus:(Lr=Fo.current)===null||Lr===void 0?void 0:Lr.focus,blur:(so=Fo.current)===null||so===void 0?void 0:so.blur,scrollTo:function(Xo){var jr;return(jr=As.current)===null||jr===void 0?void 0:jr.scrollTo(Xo)}}});var Ko=re.useMemo(function(){var Lr;if(fn!=="combobox")return ue;var so=(Lr=_n[0])===null||Lr===void 0?void 0:Lr.value;return typeof so=="string"||typeof so=="number"?String(so):""},[ue,fn,_n]),Ht=fn==="combobox"&&typeof Ai=="function"&&Ai()||null,Ds=typeof zn=="function"&&zn(),wl=(0,Pe.x1)(ws,Ds==null||(sn=Ds.props)===null||sn===void 0?void 0:sn.ref),Cl=re.useState(!1),Jr=(0,V.Z)(Cl,2),oo=Jr[0],ts=Jr[1];(0,it.Z)(function(){ts(!0)},[]);var bo=(0,de.Z)(!1,{defaultValue:ir,value:ki}),Or=(0,V.Z)(bo,2),po=Or[0],va=Or[1],gr=oo?po:!1,xn=!jt&&Jt;(En||xn&&gr&&fn==="combobox")&&(gr=!1);var ur=xn?!1:gr,vi=re.useCallback(function(Lr){var so=Lr!==void 0?Lr:!gr;En||(va(so),gr!==so&&(lr==null||lr(so)))},[En,gr,va,lr]),Bo=re.useMemo(function(){return(Ni||[]).some(function(Lr){return[`
|
|
|
`,`\r
|
|
|
`].includes(Lr)})},[Ni]),ys=function(so,ns,Xo){var jr=!0,Qo=so;Ki==null||Ki(null);var is=Xo?null:_e(so,Ni);return fn!=="combobox"&&is&&(Qo="",wt==null||wt(is),vi(!1),jr=!1),Be&&Ko!==Qo&&Be(Qo,{source:ns?"typing":"effect"}),jr},oa=function(so){!so||!so.trim()||Be(so,{source:"submit"})};re.useEffect(function(){!gr&&!Ri&&fn!=="combobox"&&ys("",!1,!1)},[gr]),re.useEffect(function(){po&&En&&va(!1),En&&Ua(!1)},[En]);var Da=te(),Ia=(0,V.Z)(Da,2),ui=Ia[0],Di=Ia[1],Yo=function(so){var ns=ui(),Xo=so.which;if(Xo===Ie.Z.ENTER&&(fn!=="combobox"&&so.preventDefault(),gr||vi(!0)),Di(!!Ko),Xo===Ie.Z.BACKSPACE&&!ns&&Ri&&!Ko&&_n.length){for(var jr=(0,I.Z)(_n),Qo=null,is=jr.length-1;is>=0;is-=1){var rs=jr[is];if(!rs.disabled){jr.splice(is,1),Qo=rs;break}}Qo&&Mt(jr,{type:"remove",values:[Qo]})}for(var fs=arguments.length,$l=new Array(fs>1?fs-1:0),$a=1;$a<fs;$a++)$l[$a-1]=arguments[$a];if(gr&&As.current){var ls;(ls=As.current).onKeyDown.apply(ls,[so].concat($l))}Xr==null||Xr.apply(void 0,[so].concat($l))},ya=function(so){for(var ns=arguments.length,Xo=new Array(ns>1?ns-1:0),jr=1;jr<ns;jr++)Xo[jr-1]=arguments[jr];if(gr&&As.current){var Qo;(Qo=As.current).onKeyUp.apply(Qo,[so].concat(Xo))}mr==null||mr.apply(void 0,[so].concat(Xo))},Go=function(so){var ns=_n.filter(function(Xo){return Xo!==so});Mt(ns,{type:"remove",values:[so]})},Us=re.useRef(!1),vr=function(){Ua(!0),En||(br&&!Us.current&&br.apply(void 0,arguments),ce.includes("focus")&&vi(!0)),Us.current=!0},lu=function(){Ua(!1,function(){Us.current=!1,vi(!1)}),!En&&(Ko&&(fn==="tags"?Be(Ko,{source:"submit"}):fn==="multiple"&&Be("",{source:"blur"})),to&&to.apply(void 0,arguments))},wa=[];re.useEffect(function(){return function(){wa.forEach(function(Lr){return clearTimeout(Lr)}),wa.splice(0,wa.length)}},[]);var Ca=function(so){var ns,Xo=so.target,jr=(ns=as.current)===null||ns===void 0?void 0:ns.getPopupElement();if(jr&&jr.contains(Xo)){var Qo=setTimeout(function(){var $l=wa.indexOf(Qo);if($l!==-1&&wa.splice($l,1),Ls(),!no&&!jr.contains(document.activeElement)){var $a;($a=Fo.current)===null||$a===void 0||$a.focus()}});wa.push(Qo)}for(var is=arguments.length,rs=new Array(is>1?is-1:0),fs=1;fs<is;fs++)rs[fs-1]=arguments[fs];qi==null||qi.apply(void 0,[so].concat(rs))},Oo=re.useState({}),ll=(0,V.Z)(Oo,2),Tl=ll[1];function ks(){Tl({})}var fa;Ds&&(fa=function(so){vi(so)}),Ae(function(){var Lr;return[mi.current,(Lr=as.current)===null||Lr===void 0?void 0:Lr.getPopupElement()]},ur,vi,!!Ds);var Nl=re.useMemo(function(){return(0,B.Z)((0,B.Z)({},ft),{},{notFoundContent:jt,open:gr,triggerOpen:ur,id:ni,showSearch:$i,multiple:Ri,toggleOpen:vi})},[ft,jt,ur,gr,ni,$i,Ri,vi]),Ao=!!Gi||Ln,zl;Ao&&(zl=re.createElement(Ee,{className:ne()("".concat(Kn,"-arrow"),(0,L.Z)({},"".concat(Kn,"-arrow-loading"),Ln)),customizeIcon:Gi,customizeIconProps:{loading:Ln,searchValue:Ko,open:gr,focused:vs,showSearch:$i}}));var Ul=function(){var so;gn==null||gn(),(so=Fo.current)===null||so===void 0||so.focus(),Mt([],{type:"clear",values:_n}),ys("",!1,!1)},Eu=fe(Kn,Ul,_n,Dn,Xt,En,Ko,fn),Cs=Eu.allowClear,Zo=Eu.clearIcon,Ha=re.createElement(Ii,{ref:As}),Hi=ne()(Kn,ut,(In={},(0,L.Z)(In,"".concat(Kn,"-focused"),vs),(0,L.Z)(In,"".concat(Kn,"-multiple"),Ri),(0,L.Z)(In,"".concat(Kn,"-single"),!Ri),(0,L.Z)(In,"".concat(Kn,"-allow-clear"),Dn),(0,L.Z)(In,"".concat(Kn,"-show-arrow"),Ao),(0,L.Z)(In,"".concat(Kn,"-disabled"),En),(0,L.Z)(In,"".concat(Kn,"-loading"),Ln),(0,L.Z)(In,"".concat(Kn,"-open"),gr),(0,L.Z)(In,"".concat(Kn,"-customize-input"),Ht),(0,L.Z)(In,"".concat(Kn,"-show-search"),$i),In)),pa=re.createElement(k,{ref:as,disabled:En,prefixCls:Kn,visible:ur,popupElement:Ha,animation:Yt,transitionName:Wi,dropdownStyle:Zr,dropdownClassName:It,direction:Si,dropdownMatchSelectWidth:fo,dropdownRender:tn,dropdownAlign:Fi,placement:Li,builtinPlacements:Nt,getPopupContainer:Nr,empty:Jt,getTriggerDOMNode:function(){return ws.current},onPopupVisibleChange:fa,onPopupMouseEnter:ks},Ds?re.cloneElement(Ds,{ref:wl}):re.createElement(si,(0,b.Z)({},ft,{domRef:ws,prefixCls:Kn,inputElement:Ht,ref:Fo,id:ni,showSearch:$i,autoClearSearchValue:Zn,mode:fn,activeDescendantId:ee,tagRender:rn,values:_n,open:gr,onToggleOpen:vi,activeValue:qt,searchValue:Ko,onSearch:ys,onSearchSubmit:oa,onRemove:Go,tokenWithEnter:Bo}))),Hl;return Ds?Hl=pa:Hl=re.createElement("div",(0,b.Z)({className:Hi},zi,{ref:mi,onMouseDown:Ca,onKeyDown:Yo,onKeyUp:ya,onFocus:vr,onBlur:lu}),vs&&!gr&&re.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(_n.map(function(Lr){var so=Lr.label,ns=Lr.value;return["number","string"].includes((0,M.Z)(so))?so:ns}).join(", "))),pa,zl,Cs&&Zo),re.createElement(we.Provider,{value:Nl},Hl)}),Et=Ze,Gt=function(ft,je){var sn=re.useRef({values:new Map,options:new Map}),In=re.useMemo(function(){var Kn=sn.current,ut=Kn.values,yn=Kn.options,rn=ft.map(function(_n){if(_n.label===void 0){var Mt;return(0,B.Z)((0,B.Z)({},_n),{},{label:(Mt=ut.get(_n.value))===null||Mt===void 0?void 0:Mt.label})}return _n}),Si=new Map,Zt=new Map;return rn.forEach(function(_n){Si.set(_n.value,_n),Zt.set(_n.value,je.get(_n.value)||yn.get(_n.value))}),sn.current.values=Si,sn.current.options=Zt,rn},[ft,je]),ni=re.useCallback(function(Kn){return je.get(Kn)||sn.current.options.get(Kn)},[je]);return[In,ni]};function Vt(ft,je){return dt(ft).join("").toUpperCase().includes(je)}var Pt=function(ft,je,sn,In,ni){return re.useMemo(function(){if(!sn||In===!1)return ft;var Kn=je.options,ut=je.label,yn=je.value,rn=[],Si=typeof In=="function",Zt=sn.toUpperCase(),_n=Si?In:function(Jt,on){return ni?Vt(on[ni],Zt):on[Kn]?Vt(on[ut!=="children"?ut:"label"],Zt):Vt(on[yn],Zt)},Mt=Si?function(Jt){return mt(Jt)}:function(Jt){return Jt};return ft.forEach(function(Jt){if(Jt[Kn]){var on=_n(sn,Mt(Jt));if(on)rn.push(Jt);else{var jt=Jt[Kn].filter(function(gn){return _n(sn,Mt(gn))});jt.length&&rn.push((0,B.Z)((0,B.Z)({},Jt),{},(0,L.Z)({},Kn,jt)))}return}_n(sn,Mt(Jt))&&rn.push(Jt)}),rn},[ft,In,ni,sn,je])},nn=d(17115),vn=d(11592),We=["children","value"],Dt=["children"];function Qt(ft){var je=ft,sn=je.key,In=je.props,ni=In.children,Kn=In.value,ut=(0,Q.Z)(In,We);return(0,B.Z)({key:sn,value:Kn!==void 0?Kn:sn,children:ni},ut)}function bn(ft){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,vn.Z)(ft).map(function(sn,In){if(!re.isValidElement(sn)||!sn.type)return null;var ni=sn,Kn=ni.type.isSelectOptGroup,ut=ni.key,yn=ni.props,rn=yn.children,Si=(0,Q.Z)(yn,Dt);return je||!Kn?Qt(sn):(0,B.Z)((0,B.Z)({key:"__RC_SELECT_GRP__".concat(ut===null?In:ut,"__"),label:ut},Si),{},{options:bn(rn)})}).filter(function(sn){return sn})}function $n(ft,je,sn,In,ni){return re.useMemo(function(){var Kn=ft,ut=!ft;ut&&(Kn=bn(je));var yn=new Map,rn=new Map,Si=function(Mt,Jt,on){on&&typeof on=="string"&&Mt.set(Jt[on],Jt)};function Zt(_n){for(var Mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Jt=0;Jt<_n.length;Jt+=1){var on=_n[Jt];!on[sn.options]||Mt?(yn.set(on[sn.value],on),Si(rn,on,sn.label),Si(rn,on,In),Si(rn,on,ni)):Zt(on[sn.options],!0)}}return Zt(Kn),{options:Kn,valueOptions:yn,labelOptions:rn}},[ft,je,sn,In,ni])}function Un(ft){var je=re.useRef();je.current=ft;var sn=re.useCallback(function(){return je.current.apply(je,arguments)},[]);return sn}var kt=function(){return null};kt.isSelectOptGroup=!0;var Hn=kt,Jn=function(){return null};Jn.isSelectOption=!0;var tt=Jn,j=d(80547),Oi=d(2738),tr=d(4409),Gn=re.createContext(null),Ti=Gn;function Er(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Zi=["disabled","title","children","style","className"];function _(ft){return typeof ft=="string"||typeof ft=="number"}var ht=function(je,sn){var In=pe(),ni=In.prefixCls,Kn=In.id,ut=In.open,yn=In.multiple,rn=In.mode,Si=In.searchValue,Zt=In.toggleOpen,_n=In.notFoundContent,Mt=In.onPopupScroll,Jt=re.useContext(Ti),on=Jt.flattenOptions,jt=Jt.onActiveValue,gn=Jt.defaultActiveFirstOption,fn=Jt.onSelect,En=Jt.menuItemSelectedIcon,Ln=Jt.rawValues,Ai=Jt.fieldNames,zn=Jt.virtual,ki=Jt.direction,ir=Jt.listHeight,lr=Jt.listItemHeight,qt="".concat(ni,"-item"),Ki=(0,j.Z)(function(){return on},[ut,on],function(Fi,Li){return Li[0]&&Fi[1]!==Li[1]}),ee=re.useRef(null),ue=function(Li){Li.preventDefault()},Zn=function(Li){ee.current&&ee.current.scrollTo(typeof Li=="number"?{index:Li}:Li)},Be=function(Li){for(var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Nr=Ki.length,ii=0;ii<Nr;ii+=1){var ce=(Li+ii*Nt+Nr)%Nr,br=Ki[ce],to=br.group,mr=br.data;if(!to&&!mr.disabled)return ce}return-1},wt=re.useState(function(){return Be(0)}),Ni=(0,V.Z)(wt,2),Dn=Ni[0],Gi=Ni[1],Xt=function(Li){var Nt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Gi(Li);var Nr={source:Nt?"keyboard":"mouse"},ii=Ki[Li];if(!ii){jt(null,-1,Nr);return}jt(ii.value,Li,Nr)};(0,re.useEffect)(function(){Xt(gn!==!1?Be(0):-1)},[Ki.length,Si]);var Ii=re.useCallback(function(Fi){return Ln.has(Fi)&&rn!=="combobox"},[rn,(0,I.Z)(Ln).toString(),Ln.size]);(0,re.useEffect)(function(){var Fi=setTimeout(function(){if(!yn&&ut&&Ln.size===1){var Nt=Array.from(Ln)[0],Nr=Ki.findIndex(function(ii){var ce=ii.data;return ce.value===Nt});Nr!==-1&&(Xt(Nr),Zn(Nr))}});if(ut){var Li;(Li=ee.current)===null||Li===void 0||Li.scrollTo(void 0)}return function(){return clearTimeout(Fi)}},[ut,Si,on.length]);var Yt=function(Li){Li!==void 0&&fn(Li,{selected:!Ln.has(Li)}),yn||Zt(!1)};if(re.useImperativeHandle(sn,function(){return{onKeyDown:function(Li){var Nt=Li.which,Nr=Li.ctrlKey;switch(Nt){case Ie.Z.N:case Ie.Z.P:case Ie.Z.UP:case Ie.Z.DOWN:{var ii=0;if(Nt===Ie.Z.UP?ii=-1:Nt===Ie.Z.DOWN?ii=1:Er()&&Nr&&(Nt===Ie.Z.N?ii=1:Nt===Ie.Z.P&&(ii=-1)),ii!==0){var ce=Be(Dn+ii,ii);Zn(ce),Xt(ce,!0)}break}case Ie.Z.ENTER:{var br=Ki[Dn];br&&!br.data.disabled?Yt(br.value):Yt(void 0),ut&&Li.preventDefault();break}case Ie.Z.ESC:Zt(!1),ut&&Li.stopPropagation()}},onKeyUp:function(){},scrollTo:function(Li){Zn(Li)}}}),Ki.length===0)return re.createElement("div",{role:"listbox",id:"".concat(Kn,"_list"),className:"".concat(qt,"-empty"),onMouseDown:ue},_n);var Wi=Object.keys(Ai).map(function(Fi){return Ai[Fi]}),Zr=function(Li){return Li.label};function It(Fi,Li){var Nt=Fi.group;return{role:Nt?"presentation":"option",id:"".concat(Kn,"_list_").concat(Li)}}var fo=function(Li){var Nt=Ki[Li];if(!Nt)return null;var Nr=Nt.data||{},ii=Nr.value,ce=Nt.group,br=(0,Te.Z)(Nr,!0),to=Zr(Nt);return Nt?re.createElement("div",(0,b.Z)({"aria-label":typeof to=="string"&&!ce?to:null},br,{key:Li},It(Nt,Li),{"aria-selected":Ii(ii)}),ii):null},tn={role:"listbox",id:"".concat(Kn,"_list")};return re.createElement(re.Fragment,null,zn&&re.createElement("div",(0,b.Z)({},tn,{style:{height:0,width:0,overflow:"hidden"}}),fo(Dn-1),fo(Dn),fo(Dn+1)),re.createElement(tr.Z,{itemKey:"key",ref:ee,data:Ki,height:ir,itemHeight:lr,fullHeight:!1,onMouseDown:ue,onScroll:Mt,virtual:zn,direction:ki,innerProps:zn?null:tn},function(Fi,Li){var Nt,Nr=Fi.group,ii=Fi.groupOption,ce=Fi.data,br=Fi.label,to=Fi.value,mr=ce.key;if(Nr){var Xr,qi=(Xr=ce.title)!==null&&Xr!==void 0?Xr:_(br)?br.toString():void 0;return re.createElement("div",{className:ne()(qt,"".concat(qt,"-group")),title:qi},br!==void 0?br:mr)}var zr=ce.disabled,Ri=ce.title,$i=ce.children,zi=ce.style,Pr=ce.className,Br=(0,Q.Z)(ce,Zi),no=(0,Oi.Z)(Br,Wi),Po=Ii(to),mi="".concat(qt,"-option"),ws=ne()(qt,mi,Pr,(Nt={},(0,L.Z)(Nt,"".concat(mi,"-grouped"),ii),(0,L.Z)(Nt,"".concat(mi,"-active"),Dn===Li&&!zr),(0,L.Z)(Nt,"".concat(mi,"-disabled"),zr),(0,L.Z)(Nt,"".concat(mi,"-selected"),Po),Nt)),as=Zr(Fi),Fo=!En||typeof En=="function"||Po,As=typeof as=="number"?as:as||to,Xs=_(As)?As.toString():void 0;return Ri!==void 0&&(Xs=Ri),re.createElement("div",(0,b.Z)({},(0,Te.Z)(no),zn?{}:It(Fi,Li),{"aria-selected":Po,className:ws,title:Xs,onMouseMove:function(){Dn===Li||zr||Xt(Li)},onClick:function(){zr||Yt(to)},style:zi}),re.createElement("div",{className:"".concat(mi,"-content")},As),re.isValidElement(En)||Po,Fo&&re.createElement(Ee,{className:"".concat(qt,"-option-state"),customizeIcon:En,customizeIconProps:{isSelected:Po}},Po?"\u2713":null))}))},_i=re.forwardRef(ht);_i.displayName="OptionList";var Rr=_i;function Ar(ft){var je=ft.mode,sn=ft.options,In=ft.children,ni=ft.backfill,Kn=ft.allowClear,ut=ft.placeholder,yn=ft.getInputElement,rn=ft.showSearch,Si=ft.onSearch,Zt=ft.defaultOpen,_n=ft.autoFocus,Mt=ft.labelInValue,Jt=ft.value,on=ft.inputValue,jt=ft.optionLabelProp,gn=isMultiple(je),fn=rn!==void 0?rn:gn||je==="combobox",En=sn||convertChildrenToData(In);if(warning(je!=="tags"||En.every(function(ki){return!ki.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),je==="tags"||je==="combobox"){var Ln=En.some(function(ki){return ki.options?ki.options.some(function(ir){return typeof("value"in ir?ir.value:ir.key)=="number"}):typeof("value"in ki?ki.value:ki.key)=="number"});warning(!Ln,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(je!=="combobox"||!jt,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(je==="combobox"||!ni,"`backfill` only works with `combobox` mode."),warning(je==="combobox"||!yn,"`getInputElement` only work with `combobox` mode."),noteOnce(je!=="combobox"||!yn||!Kn||!ut,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),Si&&!fn&&je!=="combobox"&&je!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Zt||_n,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Jt!=null){var Ai=toArray(Jt);warning(!Mt||Ai.every(function(ki){return _typeof(ki)==="object"&&("key"in ki||"value"in ki)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!gn||Array.isArray(Jt),"`value` should be array when `mode` is `multiple` or `tags`")}if(In){var zn=null;toNodeArray(In).some(function(ki){if(!React.isValidElement(ki)||!ki.type)return!1;var ir=ki,lr=ir.type;if(lr.isSelectOption)return!1;if(lr.isSelectOptGroup){var qt=toNodeArray(ki.props.children).every(function(Ki){return!React.isValidElement(Ki)||!ki.type||Ki.type.isSelectOption?!0:(zn=Ki.type,!1)});return!qt}return zn=lr,!0}),zn&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(zn.displayName||zn.name||zn,"`.")),warning(on===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Yr(ft,je){if(ft){var sn=function In(ni){for(var Kn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ut=0;ut<ni.length;ut++){var yn=ni[ut];if(yn[je==null?void 0:je.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Kn&&Array.isArray(yn[je==null?void 0:je.options])&&In(yn[je==null?void 0:je.options],!0))break}};sn(ft)}}var Dr=null,Hr=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","value","defaultValue","labelInValue","onChange"],dr=["inputValue"];function Vi(ft){return!ft||(0,M.Z)(ft)!=="object"}var fi=re.forwardRef(function(ft,je){var sn=ft.id,In=ft.mode,ni=ft.prefixCls,Kn=ni===void 0?"rc-select":ni,ut=ft.backfill,yn=ft.fieldNames,rn=ft.inputValue,Si=ft.searchValue,Zt=ft.onSearch,_n=ft.autoClearSearchValue,Mt=_n===void 0?!0:_n,Jt=ft.onSelect,on=ft.onDeselect,jt=ft.dropdownMatchSelectWidth,gn=jt===void 0?!0:jt,fn=ft.filterOption,En=ft.filterSort,Ln=ft.optionFilterProp,Ai=ft.optionLabelProp,zn=ft.options,ki=ft.children,ir=ft.defaultActiveFirstOption,lr=ft.menuItemSelectedIcon,qt=ft.virtual,Ki=ft.direction,ee=ft.listHeight,ue=ee===void 0?200:ee,Zn=ft.listItemHeight,Be=Zn===void 0?20:Zn,wt=ft.value,Ni=ft.defaultValue,Dn=ft.labelInValue,Gi=ft.onChange,Xt=(0,Q.Z)(ft,Hr),Ii=(0,nn.ZP)(sn),Yt=ot(In),Wi=!!(!zn&&ki),Zr=re.useMemo(function(){return fn===void 0&&In==="combobox"?!1:fn},[fn,In]),It=re.useMemo(function(){return T(yn,Wi)},[JSON.stringify(yn),Wi]),fo=(0,de.Z)("",{value:Si!==void 0?Si:rn,postState:function(xn){return xn||""}}),tn=(0,V.Z)(fo,2),Fi=tn[0],Li=tn[1],Nt=$n(zn,ki,It,Ln,Ai),Nr=Nt.valueOptions,ii=Nt.labelOptions,ce=Nt.options,br=re.useCallback(function(gr){var xn=dt(gr);return xn.map(function(ur){var vi,Bo,ys,oa,Da;if(Vi(ur))vi=ur;else{var Ia;ys=ur.key,Bo=ur.label,vi=(Ia=ur.value)!==null&&Ia!==void 0?Ia:ys}var ui=Nr.get(vi);if(ui){var Di;if(Bo===void 0&&(Bo=ui==null?void 0:ui[Ai||It.label]),ys===void 0&&(ys=(Di=ui==null?void 0:ui.key)!==null&&Di!==void 0?Di:vi),oa=ui==null?void 0:ui.disabled,Da=ui==null?void 0:ui.title,0)var Yo}return{label:Bo,value:vi,key:ys,disabled:oa,title:Da}})},[It,Ai,Nr]),to=(0,de.Z)(Ni,{value:wt}),mr=(0,V.Z)(to,2),Xr=mr[0],qi=mr[1],zr=re.useMemo(function(){var gr,xn=br(Xr);return In==="combobox"&&At((gr=xn[0])===null||gr===void 0?void 0:gr.value)?[]:xn},[Xr,br,In]),Ri=Gt(zr,Nr),$i=(0,V.Z)(Ri,2),zi=$i[0],Pr=$i[1],Br=re.useMemo(function(){if(!In&&zi.length===1){var gr=zi[0];if(gr.value===null&&(gr.label===null||gr.label===void 0))return[]}return zi.map(function(xn){var ur;return(0,B.Z)((0,B.Z)({},xn),{},{label:(ur=xn.label)!==null&&ur!==void 0?ur:xn.value})})},[In,zi]),no=re.useMemo(function(){return new Set(zi.map(function(gr){return gr.value}))},[zi]);re.useEffect(function(){if(In==="combobox"){var gr,xn=(gr=zi[0])===null||gr===void 0?void 0:gr.value;Li(xt(xn)?String(xn):"")}},[zi]);var Po=Un(function(gr,xn){var ur,vi=xn!=null?xn:gr;return ur={},(0,L.Z)(ur,It.value,gr),(0,L.Z)(ur,It.label,vi),ur}),mi=re.useMemo(function(){if(In!=="tags")return ce;var gr=(0,I.Z)(ce),xn=function(vi){return Nr.has(vi)};return(0,I.Z)(zi).sort(function(ur,vi){return ur.value<vi.value?-1:1}).forEach(function(ur){var vi=ur.value;xn(vi)||gr.push(Po(vi,ur.label))}),gr},[Po,ce,Nr,zi,In]),ws=Pt(mi,It,Fi,Zr,Ln),as=re.useMemo(function(){return In!=="tags"||!Fi||ws.some(function(gr){return gr[Ln||"value"]===Fi})||ws.some(function(gr){return gr[It.value]===Fi})?ws:[Po(Fi)].concat((0,I.Z)(ws))},[Po,Ln,In,ws,Fi,It]),Fo=re.useMemo(function(){return En?(0,I.Z)(as).sort(function(gr,xn){return En(gr,xn)}):as},[as,En]),As=re.useMemo(function(){return Re(Fo,{fieldNames:It,childrenAsData:Wi})},[Fo,It,Wi]),Xs=function(xn){var ur=br(xn);if(qi(ur),Gi&&(ur.length!==zi.length||ur.some(function(ys,oa){var Da;return((Da=zi[oa])===null||Da===void 0?void 0:Da.value)!==(ys==null?void 0:ys.value)}))){var vi=Dn?ur:ur.map(function(ys){return ys.value}),Bo=ur.map(function(ys){return mt(Pr(ys.value))});Gi(Yt?vi:vi[0],Yt?Bo:Bo[0])}},da=re.useState(null),vs=(0,V.Z)(da,2),Ua=vs[0],Ls=vs[1],Ko=re.useState(0),Ht=(0,V.Z)(Ko,2),Ds=Ht[0],wl=Ht[1],Cl=ir!==void 0?ir:In!=="combobox",Jr=re.useCallback(function(gr,xn){var ur=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},vi=ur.source,Bo=vi===void 0?"keyboard":vi;wl(xn),ut&&In==="combobox"&&gr!==null&&Bo==="keyboard"&&Ls(String(gr))},[ut,In]),oo=function(xn,ur,vi){var Bo=function(){var Us,vr=Pr(xn);return[Dn?{label:vr==null?void 0:vr[It.label],value:xn,key:(Us=vr==null?void 0:vr.key)!==null&&Us!==void 0?Us:xn}:xn,mt(vr)]};if(ur&&Jt){var ys=Bo(),oa=(0,V.Z)(ys,2),Da=oa[0],Ia=oa[1];Jt(Da,Ia)}else if(!ur&&on&&vi!=="clear"){var ui=Bo(),Di=(0,V.Z)(ui,2),Yo=Di[0],ya=Di[1];on(Yo,ya)}},ts=Un(function(gr,xn){var ur,vi=Yt?xn.selected:!0;vi?ur=Yt?[].concat((0,I.Z)(zi),[gr]):[gr]:ur=zi.filter(function(Bo){return Bo.value!==gr}),Xs(ur),oo(gr,vi),In==="combobox"?Ls(""):(!ot||Mt)&&(Li(""),Ls(""))}),bo=function(xn,ur){Xs(xn);var vi=ur.type,Bo=ur.values;(vi==="remove"||vi==="clear")&&Bo.forEach(function(ys){oo(ys.value,!1,vi)})},Or=function(xn,ur){if(Li(xn),Ls(null),ur.source==="submit"){var vi=(xn||"").trim();if(vi){var Bo=Array.from(new Set([].concat((0,I.Z)(no),[vi])));Xs(Bo),oo(vi,!0),Li("")}return}ur.source!=="blur"&&(In==="combobox"&&Xs(xn),Zt==null||Zt(xn))},po=function(xn){var ur=xn;In!=="tags"&&(ur=xn.map(function(Bo){var ys=ii.get(Bo);return ys==null?void 0:ys.value}).filter(function(Bo){return Bo!==void 0}));var vi=Array.from(new Set([].concat((0,I.Z)(no),(0,I.Z)(ur))));Xs(vi),vi.forEach(function(Bo){oo(Bo,!0)})},va=re.useMemo(function(){var gr=qt!==!1&&gn!==!1;return(0,B.Z)((0,B.Z)({},Nt),{},{flattenOptions:As,onActiveValue:Jr,defaultActiveFirstOption:Cl,onSelect:ts,menuItemSelectedIcon:lr,rawValues:no,fieldNames:It,virtual:gr,direction:Ki,listHeight:ue,listItemHeight:Be,childrenAsData:Wi})},[Nt,As,Jr,Cl,ts,lr,no,It,qt,gn,ue,Be,Wi]);return re.createElement(Ti.Provider,{value:va},re.createElement(Et,(0,b.Z)({},Xt,{id:Ii,prefixCls:Kn,ref:je,omitDomProps:dr,mode:In,displayValues:Br,onDisplayValuesChange:bo,direction:Ki,searchValue:Fi,onSearch:Or,autoClearSearchValue:Mt,onSearchSplit:po,dropdownMatchSelectWidth:gn,OptionList:Rr,emptyOptions:!As.length,activeValue:Ua,activeDescendantId:"".concat(Ii,"_list_").concat(Ds)})))}),at=fi;at.Option=tt,at.OptGroup=Hn;var Fn=at,Qn=Fn},9296:function(J,C,d){"use strict";d.r(C),d.d(C,{ResizableTextArea:function(){return Je},default:function(){return At}});var b=d(92413),I=d(33708),L=d(400),B=d(39559),V=d(33606),Q=d(37061),M=d(26407),de=d(92310),he=d.n(de),re=d(93681),De=d(5643),ne=d(18929),it=d(59301),Ue=d(29301),Ie=d(34280),Pe=d(16089),ze=`
|
|
|
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;
|
|
|
`,Ee=["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"],fe={},we;function pe(St){var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ye=St.getAttribute("id")||St.getAttribute("data-reactid")||St.getAttribute("name");if(Cn&&fe[Ye])return fe[Ye];var oe=window.getComputedStyle(St),H=oe.getPropertyValue("box-sizing")||oe.getPropertyValue("-moz-box-sizing")||oe.getPropertyValue("-webkit-box-sizing"),Ot=parseFloat(oe.getPropertyValue("padding-bottom"))+parseFloat(oe.getPropertyValue("padding-top")),Kt=parseFloat(oe.getPropertyValue("border-bottom-width"))+parseFloat(oe.getPropertyValue("border-top-width")),vt=Ee.map(function(Rt){return"".concat(Rt,":").concat(oe.getPropertyValue(Rt))}).join(";"),hn={sizingStyle:vt,paddingSize:Ot,borderSize:Kt,boxSizing:H};return Cn&&Ye&&(fe[Ye]=hn),hn}function Ne(St){var Cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,oe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;we||(we=document.createElement("textarea"),we.setAttribute("tab-index","-1"),we.setAttribute("aria-hidden","true"),document.body.appendChild(we)),St.getAttribute("wrap")?we.setAttribute("wrap",St.getAttribute("wrap")):we.removeAttribute("wrap");var H=pe(St,Cn),Ot=H.paddingSize,Kt=H.borderSize,vt=H.boxSizing,hn=H.sizingStyle;we.setAttribute("style","".concat(hn,";").concat(ze)),we.value=St.value||St.placeholder||"";var Rt=void 0,hi=void 0,yt,si=we.scrollHeight;if(vt==="border-box"?si+=Kt:vt==="content-box"&&(si-=Ot),Ye!==null||oe!==null){we.value=" ";var qn=we.scrollHeight-Ot;Ye!==null&&(Rt=qn*Ye,vt==="border-box"&&(Rt=Rt+Ot+Kt),si=Math.max(Rt,si)),oe!==null&&(hi=qn*oe,vt==="border-box"&&(hi=hi+Ot+Kt),yt=si>hi?"":"hidden",si=Math.min(hi,si))}var ln={height:si,overflowY:yt,resize:"none"};return Rt&&(ln.minHeight=Rt),hi&&(ln.maxHeight=hi),ln}var te=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],Ae=0,Te=1,$e=2,Qe=it.forwardRef(function(St,Cn){var Ye=St,oe=Ye.prefixCls,H=Ye.onPressEnter,Ot=Ye.defaultValue,Kt=Ye.value,vt=Ye.autoSize,hn=Ye.onResize,Rt=Ye.className,hi=Ye.style,yt=Ye.disabled,si=Ye.onChange,qn=Ye.onInternalAutoSize,ln=(0,Q.Z)(Ye,te),Tn=(0,ne.Z)(Ot,{value:Kt,postState:function(Hn){return Hn!=null?Hn:""}}),xe=(0,V.Z)(Tn,2),D=xe[0],k=xe[1],G=function(Hn){k(Hn.target.value),si==null||si(Hn)},X=it.useRef();it.useImperativeHandle(Cn,function(){return{textArea:X.current}});var T=it.useMemo(function(){return vt&&(0,B.Z)(vt)==="object"?[vt.minRows,vt.maxRows]:[]},[vt]),Re=(0,V.Z)(T,2),mt=Re[0],_e=Re[1],Le=!!vt,ct=function(){try{if(document.activeElement===X.current){var Hn=X.current,Jn=Hn.selectionStart,tt=Hn.selectionEnd,j=Hn.scrollTop;X.current.setSelectionRange(Jn,tt),X.current.scrollTop=j}}catch(Oi){}},ot=it.useState($e),Ze=(0,V.Z)(ot,2),Et=Ze[0],Gt=Ze[1],Vt=it.useState(),Pt=(0,V.Z)(Vt,2),nn=Pt[0],vn=Pt[1],We=function(){Gt(Ae)};(0,Ie.Z)(function(){Le&&We()},[Kt,mt,_e,Le]),(0,Ie.Z)(function(){if(Et===Ae)Gt(Te);else if(Et===Te){var kt=Ne(X.current,!1,mt,_e);Gt($e),vn(kt)}else ct()},[Et]);var Dt=it.useRef(),Qt=function(){Pe.Z.cancel(Dt.current)},bn=function(Hn){Et===$e&&(hn==null||hn(Hn),vt&&(Qt(),Dt.current=(0,Pe.Z)(function(){We()})))};it.useEffect(function(){return Qt},[]);var $n=Le?nn:null,Un=(0,I.Z)((0,I.Z)({},hi),$n);return(Et===Ae||Et===Te)&&(Un.overflowY="hidden",Un.overflowX="hidden"),it.createElement(Ue.Z,{onResize:bn,disabled:!(vt||hn)},it.createElement("textarea",(0,b.Z)({},ln,{ref:X,style:Un,className:he()(oe,Rt,(0,L.Z)({},"".concat(oe,"-disabled"),yt)),disabled:yt,value:D,onChange:G})))}),Je=Qe,Ce=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function dt(St,Cn){return(0,M.Z)(St||"").slice(0,Cn).join("")}function Xe(St,Cn,Ye,oe){var H=Ye;return St?H=dt(Ye,oe):(0,M.Z)(Cn||"").length<Ye.length&&(0,M.Z)(Ye||"").length>oe&&(H=Cn),H}var $t=it.forwardRef(function(St,Cn){var Ye,oe=St.defaultValue,H=St.value,Ot=St.onFocus,Kt=St.onBlur,vt=St.onChange,hn=St.allowClear,Rt=St.maxLength,hi=St.onCompositionStart,yt=St.onCompositionEnd,si=St.suffix,qn=St.prefixCls,ln=qn===void 0?"rc-textarea":qn,Tn=St.classes,xe=St.showCount,D=St.className,k=St.style,G=St.disabled,X=St.hidden,T=St.classNames,Re=St.styles,mt=St.onResize,_e=(0,Q.Z)(St,Ce),Le=(0,ne.Z)(oe,{value:H,defaultValue:oe}),ct=(0,V.Z)(Le,2),ot=ct[0],Ze=ct[1],Et=(0,it.useRef)(null),Gt=it.useState(!1),Vt=(0,V.Z)(Gt,2),Pt=Vt[0],nn=Vt[1],vn=it.useState(!1),We=(0,V.Z)(vn,2),Dt=We[0],Qt=We[1],bn=it.useRef(),$n=it.useRef(0),Un=it.useState(null),kt=(0,V.Z)(Un,2),Hn=kt[0],Jn=kt[1],tt=function(){var Vi;(Vi=Et.current)===null||Vi===void 0||Vi.textArea.focus()};(0,it.useImperativeHandle)(Cn,function(){return{resizableTextArea:Et.current,focus:tt,blur:function(){var Vi;(Vi=Et.current)===null||Vi===void 0||Vi.textArea.blur()}}}),(0,it.useEffect)(function(){nn(function(dr){return!G&&dr})},[G]);var j=Number(Rt)>0,Oi=function(Vi){Qt(!0),bn.current=ot,$n.current=Vi.currentTarget.selectionStart,hi==null||hi(Vi)},tr=function(Vi){Qt(!1);var fi=Vi.currentTarget.value;if(j){var at,Fn=$n.current>=Rt+1||$n.current===((at=bn.current)===null||at===void 0?void 0:at.length);fi=Xe(Fn,bn.current,fi,Rt)}fi!==ot&&(Ze(fi),(0,De.rJ)(Vi.currentTarget,Vi,vt,fi)),yt==null||yt(Vi)},Gn=function(Vi){var fi=Vi.target.value;if(!Dt&&j){var at=Vi.target.selectionStart>=Rt+1||Vi.target.selectionStart===fi.length||!Vi.target.selectionStart;fi=Xe(at,ot,fi,Rt)}Ze(fi),(0,De.rJ)(Vi.currentTarget,Vi,vt,fi)},Ti=function(Vi){var fi=_e.onPressEnter,at=_e.onKeyDown;Vi.key==="Enter"&&fi&&fi(Vi),at==null||at(Vi)},Er=function(Vi){nn(!0),Ot==null||Ot(Vi)},Zi=function(Vi){nn(!1),Kt==null||Kt(Vi)},_=function(Vi){var fi;Ze(""),tt(),(0,De.rJ)((fi=Et.current)===null||fi===void 0?void 0:fi.textArea,Vi,vt)},ht=(0,De.D7)(ot);!Dt&&j&&H==null&&(ht=dt(ht,Rt));var _i=si,Rr;if(xe){var Ar=(0,M.Z)(ht).length;(0,B.Z)(xe)==="object"?Rr=xe.formatter({value:ht,count:Ar,maxLength:Rt}):Rr="".concat(Ar).concat(j?" / ".concat(Rt):""),_i=it.createElement(it.Fragment,null,_i,it.createElement("span",{className:he()("".concat(ln,"-data-count"),T==null?void 0:T.count),style:Re==null?void 0:Re.count},Rr))}var Yr=function(Vi){var fi;mt==null||mt(Vi),(fi=Et.current)!==null&&fi!==void 0&&fi.textArea.style.height&&Jn(!0)},Dr=!_e.autoSize&&!xe&&!hn,Hr=it.createElement(re.BaseInput,{value:ht,allowClear:hn,handleReset:_,suffix:_i,prefixCls:ln,classes:{affixWrapper:he()(Tn==null?void 0:Tn.affixWrapper,(Ye={},(0,L.Z)(Ye,"".concat(ln,"-show-count"),xe),(0,L.Z)(Ye,"".concat(ln,"-textarea-allow-clear"),hn),Ye))},disabled:G,focused:Pt,className:D,style:(0,I.Z)((0,I.Z)({},k),Hn&&!Dr?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Rr=="string"?Rr:void 0}},hidden:X,inputElement:it.createElement(Je,(0,b.Z)({},_e,{onKeyDown:Ti,onChange:Gn,onFocus:Er,onBlur:Zi,onCompositionStart:Oi,onCompositionEnd:tr,className:T==null?void 0:T.textarea,style:(0,I.Z)((0,I.Z)({},Re==null?void 0:Re.textarea),{},{resize:k==null?void 0:k.resize}),disabled:G,prefixCls:ln,onResize:Yr,ref:Et}))});return Hr}),xt=$t,At=xt},39417:function(J,C,d){"use strict";d.d(C,{Z:function(){return Te}});var b=d(92413),I=d(400),L=d(37061),B=d(33708),V=d(6909),Q=d(4771),M=d(25314),de=d(9427),he=d(25440),re=d(92310),De=d.n(re),ne=d(26112),it=d(59301),Ue=d(39378),Ie=function(Qe){for(var Je=Qe.prefixCls,Ce=Qe.level,dt=Qe.isStart,Xe=Qe.isEnd,$t="".concat(Je,"-indent-unit"),xt=[],At=0;At<Ce;At+=1){var St;xt.push(it.createElement("span",{key:At,className:De()($t,(St={},(0,I.Z)(St,"".concat($t,"-start"),dt[At]),(0,I.Z)(St,"".concat($t,"-end"),Xe[At]),St))}))}return it.createElement("span",{"aria-hidden":"true",className:"".concat(Je,"-indent")},xt)},Pe=it.memo(Ie),ze=d(67841),Ee=d(71430),fe=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],we="open",pe="close",Ne="---",te=function($e){(0,de.Z)(Je,$e);var Qe=(0,he.Z)(Je);function Je(){var Ce;(0,V.Z)(this,Je);for(var dt=arguments.length,Xe=new Array(dt),$t=0;$t<dt;$t++)Xe[$t]=arguments[$t];return Ce=Qe.call.apply(Qe,[this].concat(Xe)),Ce.state={dragNodeHighlight:!1},Ce.selectHandle=void 0,Ce.cacheIndent=void 0,Ce.onSelectorClick=function(xt){var At=Ce.props.context.onNodeClick;At(xt,(0,Ee.F)(Ce.props)),Ce.isSelectable()?Ce.onSelect(xt):Ce.onCheck(xt)},Ce.onSelectorDoubleClick=function(xt){var At=Ce.props.context.onNodeDoubleClick;At(xt,(0,Ee.F)(Ce.props))},Ce.onSelect=function(xt){if(!Ce.isDisabled()){var At=Ce.props.context.onNodeSelect;At(xt,(0,Ee.F)(Ce.props))}},Ce.onCheck=function(xt){if(!Ce.isDisabled()){var At=Ce.props,St=At.disableCheckbox,Cn=At.checked,Ye=Ce.props.context.onNodeCheck;if(!(!Ce.isCheckable()||St)){var oe=!Cn;Ye(xt,(0,Ee.F)(Ce.props),oe)}}},Ce.onMouseEnter=function(xt){var At=Ce.props.context.onNodeMouseEnter;At(xt,(0,Ee.F)(Ce.props))},Ce.onMouseLeave=function(xt){var At=Ce.props.context.onNodeMouseLeave;At(xt,(0,Ee.F)(Ce.props))},Ce.onContextMenu=function(xt){var At=Ce.props.context.onNodeContextMenu;At(xt,(0,Ee.F)(Ce.props))},Ce.onDragStart=function(xt){var At=Ce.props.context.onNodeDragStart;xt.stopPropagation(),Ce.setState({dragNodeHighlight:!0}),At(xt,(0,M.Z)(Ce));try{xt.dataTransfer.setData("text/plain","")}catch(St){}},Ce.onDragEnter=function(xt){var At=Ce.props.context.onNodeDragEnter;xt.preventDefault(),xt.stopPropagation(),At(xt,(0,M.Z)(Ce))},Ce.onDragOver=function(xt){var At=Ce.props.context.onNodeDragOver;xt.preventDefault(),xt.stopPropagation(),At(xt,(0,M.Z)(Ce))},Ce.onDragLeave=function(xt){var At=Ce.props.context.onNodeDragLeave;xt.stopPropagation(),At(xt,(0,M.Z)(Ce))},Ce.onDragEnd=function(xt){var At=Ce.props.context.onNodeDragEnd;xt.stopPropagation(),Ce.setState({dragNodeHighlight:!1}),At(xt,(0,M.Z)(Ce))},Ce.onDrop=function(xt){var At=Ce.props.context.onNodeDrop;xt.preventDefault(),xt.stopPropagation(),Ce.setState({dragNodeHighlight:!1}),At(xt,(0,M.Z)(Ce))},Ce.onExpand=function(xt){var At=Ce.props,St=At.loading,Cn=At.context.onNodeExpand;St||Cn(xt,(0,Ee.F)(Ce.props))},Ce.setSelectHandle=function(xt){Ce.selectHandle=xt},Ce.getNodeState=function(){var xt=Ce.props.expanded;return Ce.isLeaf()?null:xt?we:pe},Ce.hasChildren=function(){var xt=Ce.props.eventKey,At=Ce.props.context.keyEntities,St=(0,ze.Z)(At,xt)||{},Cn=St.children;return!!(Cn||[]).length},Ce.isLeaf=function(){var xt=Ce.props,At=xt.isLeaf,St=xt.loaded,Cn=Ce.props.context.loadData,Ye=Ce.hasChildren();return At===!1?!1:At||!Cn&&!Ye||Cn&&St&&!Ye},Ce.isDisabled=function(){var xt=Ce.props.disabled,At=Ce.props.context.disabled;return!!(At||xt)},Ce.isCheckable=function(){var xt=Ce.props.checkable,At=Ce.props.context.checkable;return!At||xt===!1?!1:At},Ce.syncLoadData=function(xt){var At=xt.expanded,St=xt.loading,Cn=xt.loaded,Ye=Ce.props.context,oe=Ye.loadData,H=Ye.onNodeLoad;St||oe&&At&&!Ce.isLeaf()&&!Ce.hasChildren()&&!Cn&&H((0,Ee.F)(Ce.props))},Ce.isDraggable=function(){var xt=Ce.props,At=xt.data,St=xt.context.draggable;return!!(St&&(!St.nodeDraggable||St.nodeDraggable(At)))},Ce.renderDragHandler=function(){var xt=Ce.props.context,At=xt.draggable,St=xt.prefixCls;return At!=null&&At.icon?it.createElement("span",{className:"".concat(St,"-draggable-icon")},At.icon):null},Ce.renderSwitcherIconDom=function(xt){var At=Ce.props.switcherIcon,St=Ce.props.context.switcherIcon,Cn=At||St;return typeof Cn=="function"?Cn((0,B.Z)((0,B.Z)({},Ce.props),{},{isLeaf:xt})):Cn},Ce.renderSwitcher=function(){var xt=Ce.props.expanded,At=Ce.props.context.prefixCls;if(Ce.isLeaf()){var St=Ce.renderSwitcherIconDom(!0);return St!==!1?it.createElement("span",{className:De()("".concat(At,"-switcher"),"".concat(At,"-switcher-noop"))},St):null}var Cn=De()("".concat(At,"-switcher"),"".concat(At,"-switcher_").concat(xt?we:pe)),Ye=Ce.renderSwitcherIconDom(!1);return Ye!==!1?it.createElement("span",{onClick:Ce.onExpand,className:Cn},Ye):null},Ce.renderCheckbox=function(){var xt=Ce.props,At=xt.checked,St=xt.halfChecked,Cn=xt.disableCheckbox,Ye=Ce.props.context.prefixCls,oe=Ce.isDisabled(),H=Ce.isCheckable();if(!H)return null;var Ot=typeof H!="boolean"?H:null;return it.createElement("span",{className:De()("".concat(Ye,"-checkbox"),At&&"".concat(Ye,"-checkbox-checked"),!At&&St&&"".concat(Ye,"-checkbox-indeterminate"),(oe||Cn)&&"".concat(Ye,"-checkbox-disabled")),onClick:Ce.onCheck},Ot)},Ce.renderIcon=function(){var xt=Ce.props.loading,At=Ce.props.context.prefixCls;return it.createElement("span",{className:De()("".concat(At,"-iconEle"),"".concat(At,"-icon__").concat(Ce.getNodeState()||"docu"),xt&&"".concat(At,"-icon_loading"))})},Ce.renderSelector=function(){var xt=Ce.state.dragNodeHighlight,At=Ce.props,St=At.title,Cn=St===void 0?Ne:St,Ye=At.selected,oe=At.icon,H=At.loading,Ot=At.data,Kt=Ce.props.context,vt=Kt.prefixCls,hn=Kt.showIcon,Rt=Kt.icon,hi=Kt.loadData,yt=Kt.titleRender,si=Ce.isDisabled(),qn="".concat(vt,"-node-content-wrapper"),ln;if(hn){var Tn=oe||Rt;ln=Tn?it.createElement("span",{className:De()("".concat(vt,"-iconEle"),"".concat(vt,"-icon__customize"))},typeof Tn=="function"?Tn(Ce.props):Tn):Ce.renderIcon()}else hi&&H&&(ln=Ce.renderIcon());var xe;typeof Cn=="function"?xe=Cn(Ot):yt?xe=yt(Ot):xe=Cn;var D=it.createElement("span",{className:"".concat(vt,"-title")},xe);return it.createElement("span",{ref:Ce.setSelectHandle,title:typeof Cn=="string"?Cn:"",className:De()("".concat(qn),"".concat(qn,"-").concat(Ce.getNodeState()||"normal"),!si&&(Ye||xt)&&"".concat(vt,"-node-selected")),onMouseEnter:Ce.onMouseEnter,onMouseLeave:Ce.onMouseLeave,onContextMenu:Ce.onContextMenu,onClick:Ce.onSelectorClick,onDoubleClick:Ce.onSelectorDoubleClick},ln,D,Ce.renderDropIndicator())},Ce.renderDropIndicator=function(){var xt=Ce.props,At=xt.disabled,St=xt.eventKey,Cn=Ce.props.context,Ye=Cn.draggable,oe=Cn.dropLevelOffset,H=Cn.dropPosition,Ot=Cn.prefixCls,Kt=Cn.indent,vt=Cn.dropIndicatorRender,hn=Cn.dragOverNodeKey,Rt=Cn.direction,hi=!!Ye,yt=!At&&hi&&hn===St,si=Kt!=null?Kt:Ce.cacheIndent;return Ce.cacheIndent=Kt,yt?vt({dropPosition:H,dropLevelOffset:oe,indent:si,prefixCls:Ot,direction:Rt}):null},Ce}return(0,Q.Z)(Je,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var dt=this.props.selectable,Xe=this.props.context.selectable;return typeof dt=="boolean"?dt:Xe}},{key:"render",value:function(){var dt,Xe=this.props,$t=Xe.eventKey,xt=Xe.className,At=Xe.style,St=Xe.dragOver,Cn=Xe.dragOverGapTop,Ye=Xe.dragOverGapBottom,oe=Xe.isLeaf,H=Xe.isStart,Ot=Xe.isEnd,Kt=Xe.expanded,vt=Xe.selected,hn=Xe.checked,Rt=Xe.halfChecked,hi=Xe.loading,yt=Xe.domRef,si=Xe.active,qn=Xe.data,ln=Xe.onMouseMove,Tn=Xe.selectable,xe=(0,L.Z)(Xe,fe),D=this.props.context,k=D.prefixCls,G=D.filterTreeNode,X=D.keyEntities,T=D.dropContainerKey,Re=D.dropTargetKey,mt=D.draggingNodeKey,_e=this.isDisabled(),Le=(0,ne.Z)(xe,{aria:!0,data:!0}),ct=(0,ze.Z)(X,$t)||{},ot=ct.level,Ze=Ot[Ot.length-1],Et=this.isDraggable(),Gt=!_e&&Et,Vt=mt===$t,Pt=Tn!==void 0?{"aria-selected":!!Tn}:void 0;return it.createElement("div",(0,b.Z)({ref:yt,className:De()(xt,"".concat(k,"-treenode"),(dt={},(0,I.Z)(dt,"".concat(k,"-treenode-disabled"),_e),(0,I.Z)(dt,"".concat(k,"-treenode-switcher-").concat(Kt?"open":"close"),!oe),(0,I.Z)(dt,"".concat(k,"-treenode-checkbox-checked"),hn),(0,I.Z)(dt,"".concat(k,"-treenode-checkbox-indeterminate"),Rt),(0,I.Z)(dt,"".concat(k,"-treenode-selected"),vt),(0,I.Z)(dt,"".concat(k,"-treenode-loading"),hi),(0,I.Z)(dt,"".concat(k,"-treenode-active"),si),(0,I.Z)(dt,"".concat(k,"-treenode-leaf-last"),Ze),(0,I.Z)(dt,"".concat(k,"-treenode-draggable"),Et),(0,I.Z)(dt,"dragging",Vt),(0,I.Z)(dt,"drop-target",Re===$t),(0,I.Z)(dt,"drop-container",T===$t),(0,I.Z)(dt,"drag-over",!_e&&St),(0,I.Z)(dt,"drag-over-gap-top",!_e&&Cn),(0,I.Z)(dt,"drag-over-gap-bottom",!_e&&Ye),(0,I.Z)(dt,"filter-node",G&&G((0,Ee.F)(this.props))),dt)),style:At,draggable:Gt,"aria-grabbed":Vt,onDragStart:Gt?this.onDragStart:void 0,onDragEnter:Et?this.onDragEnter:void 0,onDragOver:Et?this.onDragOver:void 0,onDragLeave:Et?this.onDragLeave:void 0,onDrop:Et?this.onDrop:void 0,onDragEnd:Et?this.onDragEnd:void 0,onMouseMove:ln},Pt,Le),it.createElement(Pe,{prefixCls:k,level:ot,isStart:H,isEnd:Ot}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Je}(it.Component),Ae=function(Qe){return it.createElement(Ue.k.Consumer,null,function(Je){return it.createElement(te,(0,b.Z)({},Qe,{context:Je}))})};Ae.displayName="TreeNode",Ae.isTreeNode=1;var Te=Ae},39378:function(J,C,d){"use strict";d.d(C,{k:function(){return I}});var b=d(59301),I=b.createContext(null)},23130:function(J,C,d){"use strict";d.d(C,{O:function(){return Te.Z},Z:function(){return D}});var b=d(92413),I=d(400),L=d(39559),B=d(33708),V=d(26407),Q=d(6909),M=d(4771),de=d(25314),he=d(9427),re=d(25440),De=d(92310),ne=d.n(De),it=d(10228),Ue=d(26112),Ie=d(48736),Pe=d(59301),ze=d(39378);function Ee(k){var G=k.dropPosition,X=k.dropLevelOffset,T=k.indent,Re={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(G){case-1:Re.top=0,Re.left=-X*T;break;case 1:Re.bottom=0,Re.left=-X*T;break;case 0:Re.bottom=0,Re.left=T;break}return Pe.createElement("div",{style:Re})}function fe(k){if(k==null)throw new TypeError("Cannot destructure "+k)}var we=d(33606),pe=d(37061),Ne=d(34280),te=d(4409),Ae=d(77900),Te=d(39417);function $e(k,G){var X=Pe.useState(!1),T=(0,we.Z)(X,2),Re=T[0],mt=T[1];Pe.useLayoutEffect(function(){if(Re)return k(),function(){G()}},[Re]),Pe.useLayoutEffect(function(){return mt(!0),function(){mt(!1)}},[])}var Qe=d(71430),Je=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Ce=function(G,X){var T=G.className,Re=G.style,mt=G.motion,_e=G.motionNodes,Le=G.motionType,ct=G.onMotionStart,ot=G.onMotionEnd,Ze=G.active,Et=G.treeNodeRequiredProps,Gt=(0,pe.Z)(G,Je),Vt=Pe.useState(!0),Pt=(0,we.Z)(Vt,2),nn=Pt[0],vn=Pt[1],We=Pe.useContext(ze.k),Dt=We.prefixCls,Qt=_e&&Le!=="hide";(0,Ne.Z)(function(){_e&&Qt!==nn&&vn(Qt)},[_e]);var bn=function(){_e&&ct()},$n=Pe.useRef(!1),Un=function(){_e&&!$n.current&&($n.current=!0,ot())};$e(bn,Un);var kt=function(Jn){Qt===Jn&&Un()};return _e?Pe.createElement(Ae.default,(0,b.Z)({ref:X,visible:nn},mt,{motionAppear:Le==="show",onVisibleChanged:kt}),function(Hn,Jn){var tt=Hn.className,j=Hn.style;return Pe.createElement("div",{ref:Jn,className:ne()("".concat(Dt,"-treenode-motion"),tt),style:j},_e.map(function(Oi){var tr=(0,b.Z)({},(fe(Oi.data),Oi.data)),Gn=Oi.title,Ti=Oi.key,Er=Oi.isStart,Zi=Oi.isEnd;delete tr.children;var _=(0,Qe.H8)(Ti,Et);return Pe.createElement(Te.Z,(0,b.Z)({},tr,_,{title:Gn,active:Ze,data:Oi.data,key:Ti,isStart:Er,isEnd:Zi}))}))}):Pe.createElement(Te.Z,(0,b.Z)({domRef:X,className:T,style:Re},Gt,{active:Ze}))};Ce.displayName="MotionTreeNode";var dt=Pe.forwardRef(Ce),Xe=dt;function $t(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],X=k.length,T=G.length;if(Math.abs(X-T)!==1)return{add:!1,key:null};function Re(mt,_e){var Le=new Map;mt.forEach(function(ot){Le.set(ot,!0)});var ct=_e.filter(function(ot){return!Le.has(ot)});return ct.length===1?ct[0]:null}return X<T?{add:!0,key:Re(k,G)}:{add:!1,key:Re(G,k)}}function xt(k,G,X){var T=k.findIndex(function(Le){return Le.key===X}),Re=k[T+1],mt=G.findIndex(function(Le){return Le.key===X});if(Re){var _e=G.findIndex(function(Le){return Le.key===Re.key});return G.slice(mt+1,_e)}return G.slice(mt+1)}var At=["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"],St={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Cn=function(){},Ye="RC_TREE_MOTION_".concat(Math.random()),oe={key:Ye},H={key:Ye,level:0,index:0,pos:"0",node:oe,nodes:[oe]},Ot={parent:null,children:[],pos:H.pos,data:oe,title:null,key:Ye,isStart:[],isEnd:[]};function Kt(k,G,X,T){return G===!1||!X?k:k.slice(0,Math.ceil(X/T)+1)}function vt(k){var G=k.key,X=k.pos;return(0,Qe.km)(G,X)}function hn(k){for(var G=String(k.data.key),X=k;X.parent;)X=X.parent,G="".concat(X.data.key," > ").concat(G);return G}var Rt=Pe.forwardRef(function(k,G){var X=k.prefixCls,T=k.data,Re=k.selectable,mt=k.checkable,_e=k.expandedKeys,Le=k.selectedKeys,ct=k.checkedKeys,ot=k.loadedKeys,Ze=k.loadingKeys,Et=k.halfCheckedKeys,Gt=k.keyEntities,Vt=k.disabled,Pt=k.dragging,nn=k.dragOverNodeKey,vn=k.dropPosition,We=k.motion,Dt=k.height,Qt=k.itemHeight,bn=k.virtual,$n=k.focusable,Un=k.activeItem,kt=k.focused,Hn=k.tabIndex,Jn=k.onKeyDown,tt=k.onFocus,j=k.onBlur,Oi=k.onActiveChange,tr=k.onListChangeStart,Gn=k.onListChangeEnd,Ti=(0,pe.Z)(k,At),Er=Pe.useRef(null),Zi=Pe.useRef(null);Pe.useImperativeHandle(G,function(){return{scrollTo:function(_n){Er.current.scrollTo(_n)},getIndentWidth:function(){return Zi.current.offsetWidth}}});var _=Pe.useState(_e),ht=(0,we.Z)(_,2),_i=ht[0],Rr=ht[1],Ar=Pe.useState(T),Yr=(0,we.Z)(Ar,2),Dr=Yr[0],Hr=Yr[1],dr=Pe.useState(T),Vi=(0,we.Z)(dr,2),fi=Vi[0],at=Vi[1],Fn=Pe.useState([]),Qn=(0,we.Z)(Fn,2),ft=Qn[0],je=Qn[1],sn=Pe.useState(null),In=(0,we.Z)(sn,2),ni=In[0],Kn=In[1],ut=Pe.useRef(T);ut.current=T;function yn(){var Zt=ut.current;Hr(Zt),at(Zt),je([]),Kn(null),Gn()}(0,Ne.Z)(function(){Rr(_e);var Zt=$t(_i,_e);if(Zt.key!==null)if(Zt.add){var _n=Dr.findIndex(function(fn){var En=fn.key;return En===Zt.key}),Mt=Kt(xt(Dr,T,Zt.key),bn,Dt,Qt),Jt=Dr.slice();Jt.splice(_n+1,0,Ot),at(Jt),je(Mt),Kn("show")}else{var on=T.findIndex(function(fn){var En=fn.key;return En===Zt.key}),jt=Kt(xt(T,Dr,Zt.key),bn,Dt,Qt),gn=T.slice();gn.splice(on+1,0,Ot),at(gn),je(jt),Kn("hide")}else Dr!==T&&(Hr(T),at(T))},[_e,T]),Pe.useEffect(function(){Pt||yn()},[Pt]);var rn=We?fi:T,Si={expandedKeys:_e,selectedKeys:Le,loadedKeys:ot,loadingKeys:Ze,checkedKeys:ct,halfCheckedKeys:Et,dragOverNodeKey:nn,dropPosition:vn,keyEntities:Gt};return Pe.createElement(Pe.Fragment,null,kt&&Un&&Pe.createElement("span",{style:St,"aria-live":"assertive"},hn(Un)),Pe.createElement("div",null,Pe.createElement("input",{style:St,disabled:$n===!1||Vt,tabIndex:$n!==!1?Hn:null,onKeyDown:Jn,onFocus:tt,onBlur:j,value:"",onChange:Cn,"aria-label":"for screen reader"})),Pe.createElement("div",{className:"".concat(X,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},Pe.createElement("div",{className:"".concat(X,"-indent")},Pe.createElement("div",{ref:Zi,className:"".concat(X,"-indent-unit")}))),Pe.createElement(te.Z,(0,b.Z)({},Ti,{data:rn,itemKey:vt,height:Dt,fullHeight:!1,virtual:bn,itemHeight:Qt,prefixCls:"".concat(X,"-list"),ref:Er,onVisibleChange:function(_n,Mt){var Jt=new Set(_n),on=Mt.filter(function(jt){return!Jt.has(jt)});on.some(function(jt){return vt(jt)===Ye})&&yn()}}),function(Zt){var _n=Zt.pos,Mt=(0,b.Z)({},(fe(Zt.data),Zt.data)),Jt=Zt.title,on=Zt.key,jt=Zt.isStart,gn=Zt.isEnd,fn=(0,Qe.km)(on,_n);delete Mt.key,delete Mt.children;var En=(0,Qe.H8)(fn,Si);return Pe.createElement(Xe,(0,b.Z)({},Mt,En,{title:Jt,active:!!Un&&on===Un.key,pos:_n,data:Zt.data,isStart:jt,isEnd:gn,motion:We,motionNodes:on===Ye?ft:null,motionType:ni,onMotionStart:tr,onMotionEnd:yn,treeNodeRequiredProps:Si,onMouseMove:function(){Oi(null)}}))}))});Rt.displayName="NodeList";var hi=Rt,yt=d(35654),si=d(90782),qn=d(67841),ln=10,Tn=function(k){(0,he.Z)(X,k);var G=(0,re.Z)(X);function X(){var T;(0,Q.Z)(this,X);for(var Re=arguments.length,mt=new Array(Re),_e=0;_e<Re;_e++)mt[_e]=arguments[_e];return T=G.call.apply(G,[this].concat(mt)),T.destroyed=!1,T.delayedDragEnterLogic=void 0,T.loadingRetryTimes={},T.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,Qe.w$)()},T.dragStartMousePosition=null,T.dragNode=void 0,T.currentMouseOverDroppableNodeKey=null,T.listRef=Pe.createRef(),T.onNodeDragStart=function(Le,ct){var ot=T.state,Ze=ot.expandedKeys,Et=ot.keyEntities,Gt=T.props.onDragStart,Vt=ct.props.eventKey;T.dragNode=ct,T.dragStartMousePosition={x:Le.clientX,y:Le.clientY};var Pt=(0,yt._5)(Ze,Vt);T.setState({draggingNodeKey:Vt,dragChildrenKeys:(0,yt.wA)(Vt,Et),indent:T.listRef.current.getIndentWidth()}),T.setExpandedKeys(Pt),window.addEventListener("dragend",T.onWindowDragEnd),Gt==null||Gt({event:Le,node:(0,Qe.F)(ct.props)})},T.onNodeDragEnter=function(Le,ct){var ot=T.state,Ze=ot.expandedKeys,Et=ot.keyEntities,Gt=ot.dragChildrenKeys,Vt=ot.flattenNodes,Pt=ot.indent,nn=T.props,vn=nn.onDragEnter,We=nn.onExpand,Dt=nn.allowDrop,Qt=nn.direction,bn=ct.props,$n=bn.pos,Un=bn.eventKey,kt=(0,de.Z)(T),Hn=kt.dragNode;if(T.currentMouseOverDroppableNodeKey!==Un&&(T.currentMouseOverDroppableNodeKey=Un),!Hn){T.resetDragState();return}var Jn=(0,yt.OM)(Le,Hn,ct,Pt,T.dragStartMousePosition,Dt,Vt,Et,Ze,Qt),tt=Jn.dropPosition,j=Jn.dropLevelOffset,Oi=Jn.dropTargetKey,tr=Jn.dropContainerKey,Gn=Jn.dropTargetPos,Ti=Jn.dropAllowed,Er=Jn.dragOverNodeKey;if(Gt.indexOf(Oi)!==-1||!Ti){T.resetDragState();return}if(T.delayedDragEnterLogic||(T.delayedDragEnterLogic={}),Object.keys(T.delayedDragEnterLogic).forEach(function(Zi){clearTimeout(T.delayedDragEnterLogic[Zi])}),Hn.props.eventKey!==ct.props.eventKey&&(Le.persist(),T.delayedDragEnterLogic[$n]=window.setTimeout(function(){if(T.state.draggingNodeKey!==null){var Zi=(0,V.Z)(Ze),_=(0,qn.Z)(Et,ct.props.eventKey);_&&(_.children||[]).length&&(Zi=(0,yt.L0)(Ze,ct.props.eventKey)),"expandedKeys"in T.props||T.setExpandedKeys(Zi),We==null||We(Zi,{node:(0,Qe.F)(ct.props),expanded:!0,nativeEvent:Le.nativeEvent})}},800)),Hn.props.eventKey===Oi&&j===0){T.resetDragState();return}T.setState({dragOverNodeKey:Er,dropPosition:tt,dropLevelOffset:j,dropTargetKey:Oi,dropContainerKey:tr,dropTargetPos:Gn,dropAllowed:Ti}),vn==null||vn({event:Le,node:(0,Qe.F)(ct.props),expandedKeys:Ze})},T.onNodeDragOver=function(Le,ct){var ot=T.state,Ze=ot.dragChildrenKeys,Et=ot.flattenNodes,Gt=ot.keyEntities,Vt=ot.expandedKeys,Pt=ot.indent,nn=T.props,vn=nn.onDragOver,We=nn.allowDrop,Dt=nn.direction,Qt=(0,de.Z)(T),bn=Qt.dragNode;if(bn){var $n=(0,yt.OM)(Le,bn,ct,Pt,T.dragStartMousePosition,We,Et,Gt,Vt,Dt),Un=$n.dropPosition,kt=$n.dropLevelOffset,Hn=$n.dropTargetKey,Jn=$n.dropContainerKey,tt=$n.dropAllowed,j=$n.dropTargetPos,Oi=$n.dragOverNodeKey;Ze.indexOf(Hn)!==-1||!tt||(bn.props.eventKey===Hn&&kt===0?T.state.dropPosition===null&&T.state.dropLevelOffset===null&&T.state.dropTargetKey===null&&T.state.dropContainerKey===null&&T.state.dropTargetPos===null&&T.state.dropAllowed===!1&&T.state.dragOverNodeKey===null||T.resetDragState():Un===T.state.dropPosition&&kt===T.state.dropLevelOffset&&Hn===T.state.dropTargetKey&&Jn===T.state.dropContainerKey&&j===T.state.dropTargetPos&&tt===T.state.dropAllowed&&Oi===T.state.dragOverNodeKey||T.setState({dropPosition:Un,dropLevelOffset:kt,dropTargetKey:Hn,dropContainerKey:Jn,dropTargetPos:j,dropAllowed:tt,dragOverNodeKey:Oi}),vn==null||vn({event:Le,node:(0,Qe.F)(ct.props)}))}},T.onNodeDragLeave=function(Le,ct){T.currentMouseOverDroppableNodeKey===ct.props.eventKey&&!Le.currentTarget.contains(Le.relatedTarget)&&(T.resetDragState(),T.currentMouseOverDroppableNodeKey=null);var ot=T.props.onDragLeave;ot==null||ot({event:Le,node:(0,Qe.F)(ct.props)})},T.onWindowDragEnd=function(Le){T.onNodeDragEnd(Le,null,!0),window.removeEventListener("dragend",T.onWindowDragEnd)},T.onNodeDragEnd=function(Le,ct){var ot=T.props.onDragEnd;T.setState({dragOverNodeKey:null}),T.cleanDragState(),ot==null||ot({event:Le,node:(0,Qe.F)(ct.props)}),T.dragNode=null,window.removeEventListener("dragend",T.onWindowDragEnd)},T.onNodeDrop=function(Le,ct){var ot,Ze=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Et=T.state,Gt=Et.dragChildrenKeys,Vt=Et.dropPosition,Pt=Et.dropTargetKey,nn=Et.dropTargetPos,vn=Et.dropAllowed;if(vn){var We=T.props.onDrop;if(T.setState({dragOverNodeKey:null}),T.cleanDragState(),Pt!==null){var Dt=(0,B.Z)((0,B.Z)({},(0,Qe.H8)(Pt,T.getTreeNodeRequiredProps())),{},{active:((ot=T.getActiveItem())===null||ot===void 0?void 0:ot.key)===Pt,data:(0,qn.Z)(T.state.keyEntities,Pt).node}),Qt=Gt.indexOf(Pt)!==-1;(0,Ie.ZP)(!Qt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var bn=(0,yt.yx)(nn),$n={event:Le,node:(0,Qe.F)(Dt),dragNode:T.dragNode?(0,Qe.F)(T.dragNode.props):null,dragNodesKeys:[T.dragNode.props.eventKey].concat(Gt),dropToGap:Vt!==0,dropPosition:Vt+Number(bn[bn.length-1])};Ze||We==null||We($n),T.dragNode=null}}},T.cleanDragState=function(){var Le=T.state.draggingNodeKey;Le!==null&&T.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),T.dragStartMousePosition=null,T.currentMouseOverDroppableNodeKey=null},T.triggerExpandActionExpand=function(Le,ct){var ot=T.state,Ze=ot.expandedKeys,Et=ot.flattenNodes,Gt=ct.expanded,Vt=ct.key,Pt=ct.isLeaf;if(!(Pt||Le.shiftKey||Le.metaKey||Le.ctrlKey)){var nn=Et.filter(function(We){return We.key===Vt})[0],vn=(0,Qe.F)((0,B.Z)((0,B.Z)({},(0,Qe.H8)(Vt,T.getTreeNodeRequiredProps())),{},{data:nn.data}));T.setExpandedKeys(Gt?(0,yt._5)(Ze,Vt):(0,yt.L0)(Ze,Vt)),T.onNodeExpand(Le,vn)}},T.onNodeClick=function(Le,ct){var ot=T.props,Ze=ot.onClick,Et=ot.expandAction;Et==="click"&&T.triggerExpandActionExpand(Le,ct),Ze==null||Ze(Le,ct)},T.onNodeDoubleClick=function(Le,ct){var ot=T.props,Ze=ot.onDoubleClick,Et=ot.expandAction;Et==="doubleClick"&&T.triggerExpandActionExpand(Le,ct),Ze==null||Ze(Le,ct)},T.onNodeSelect=function(Le,ct){var ot=T.state.selectedKeys,Ze=T.state,Et=Ze.keyEntities,Gt=Ze.fieldNames,Vt=T.props,Pt=Vt.onSelect,nn=Vt.multiple,vn=ct.selected,We=ct[Gt.key],Dt=!vn;Dt?nn?ot=(0,yt.L0)(ot,We):ot=[We]:ot=(0,yt._5)(ot,We);var Qt=ot.map(function(bn){var $n=(0,qn.Z)(Et,bn);return $n?$n.node:null}).filter(function(bn){return bn});T.setUncontrolledState({selectedKeys:ot}),Pt==null||Pt(ot,{event:"select",selected:Dt,node:ct,selectedNodes:Qt,nativeEvent:Le.nativeEvent})},T.onNodeCheck=function(Le,ct,ot){var Ze=T.state,Et=Ze.keyEntities,Gt=Ze.checkedKeys,Vt=Ze.halfCheckedKeys,Pt=T.props,nn=Pt.checkStrictly,vn=Pt.onCheck,We=ct.key,Dt,Qt={event:"check",node:ct,checked:ot,nativeEvent:Le.nativeEvent};if(nn){var bn=ot?(0,yt.L0)(Gt,We):(0,yt._5)(Gt,We),$n=(0,yt._5)(Vt,We);Dt={checked:bn,halfChecked:$n},Qt.checkedNodes=bn.map(function(j){return(0,qn.Z)(Et,j)}).filter(function(j){return j}).map(function(j){return j.node}),T.setUncontrolledState({checkedKeys:bn})}else{var Un=(0,si.S)([].concat((0,V.Z)(Gt),[We]),!0,Et),kt=Un.checkedKeys,Hn=Un.halfCheckedKeys;if(!ot){var Jn=new Set(kt);Jn.delete(We);var tt=(0,si.S)(Array.from(Jn),{checked:!1,halfCheckedKeys:Hn},Et);kt=tt.checkedKeys,Hn=tt.halfCheckedKeys}Dt=kt,Qt.checkedNodes=[],Qt.checkedNodesPositions=[],Qt.halfCheckedKeys=Hn,kt.forEach(function(j){var Oi=(0,qn.Z)(Et,j);if(Oi){var tr=Oi.node,Gn=Oi.pos;Qt.checkedNodes.push(tr),Qt.checkedNodesPositions.push({node:tr,pos:Gn})}}),T.setUncontrolledState({checkedKeys:kt},!1,{halfCheckedKeys:Hn})}vn==null||vn(Dt,Qt)},T.onNodeLoad=function(Le){var ct=Le.key,ot=new Promise(function(Ze,Et){T.setState(function(Gt){var Vt=Gt.loadedKeys,Pt=Vt===void 0?[]:Vt,nn=Gt.loadingKeys,vn=nn===void 0?[]:nn,We=T.props,Dt=We.loadData,Qt=We.onLoad;if(!Dt||Pt.indexOf(ct)!==-1||vn.indexOf(ct)!==-1)return null;var bn=Dt(Le);return bn.then(function(){var $n=T.state.loadedKeys,Un=(0,yt.L0)($n,ct);Qt==null||Qt(Un,{event:"load",node:Le}),T.setUncontrolledState({loadedKeys:Un}),T.setState(function(kt){return{loadingKeys:(0,yt._5)(kt.loadingKeys,ct)}}),Ze()}).catch(function($n){if(T.setState(function(kt){return{loadingKeys:(0,yt._5)(kt.loadingKeys,ct)}}),T.loadingRetryTimes[ct]=(T.loadingRetryTimes[ct]||0)+1,T.loadingRetryTimes[ct]>=ln){var Un=T.state.loadedKeys;(0,Ie.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),T.setUncontrolledState({loadedKeys:(0,yt.L0)(Un,ct)}),Ze()}Et($n)}),{loadingKeys:(0,yt.L0)(vn,ct)}})});return ot.catch(function(){}),ot},T.onNodeMouseEnter=function(Le,ct){var ot=T.props.onMouseEnter;ot==null||ot({event:Le,node:ct})},T.onNodeMouseLeave=function(Le,ct){var ot=T.props.onMouseLeave;ot==null||ot({event:Le,node:ct})},T.onNodeContextMenu=function(Le,ct){var ot=T.props.onRightClick;ot&&(Le.preventDefault(),ot({event:Le,node:ct}))},T.onFocus=function(){var Le=T.props.onFocus;T.setState({focused:!0});for(var ct=arguments.length,ot=new Array(ct),Ze=0;Ze<ct;Ze++)ot[Ze]=arguments[Ze];Le==null||Le.apply(void 0,ot)},T.onBlur=function(){var Le=T.props.onBlur;T.setState({focused:!1}),T.onActiveChange(null);for(var ct=arguments.length,ot=new Array(ct),Ze=0;Ze<ct;Ze++)ot[Ze]=arguments[Ze];Le==null||Le.apply(void 0,ot)},T.getTreeNodeRequiredProps=function(){var Le=T.state,ct=Le.expandedKeys,ot=Le.selectedKeys,Ze=Le.loadedKeys,Et=Le.loadingKeys,Gt=Le.checkedKeys,Vt=Le.halfCheckedKeys,Pt=Le.dragOverNodeKey,nn=Le.dropPosition,vn=Le.keyEntities;return{expandedKeys:ct||[],selectedKeys:ot||[],loadedKeys:Ze||[],loadingKeys:Et||[],checkedKeys:Gt||[],halfCheckedKeys:Vt||[],dragOverNodeKey:Pt,dropPosition:nn,keyEntities:vn}},T.setExpandedKeys=function(Le){var ct=T.state,ot=ct.treeData,Ze=ct.fieldNames,Et=(0,Qe.oH)(ot,Le,Ze);T.setUncontrolledState({expandedKeys:Le,flattenNodes:Et},!0)},T.onNodeExpand=function(Le,ct){var ot=T.state.expandedKeys,Ze=T.state,Et=Ze.listChanging,Gt=Ze.fieldNames,Vt=T.props,Pt=Vt.onExpand,nn=Vt.loadData,vn=ct.expanded,We=ct[Gt.key];if(!Et){var Dt=ot.indexOf(We),Qt=!vn;if((0,Ie.ZP)(vn&&Dt!==-1||!vn&&Dt===-1,"Expand state not sync with index check"),Qt?ot=(0,yt.L0)(ot,We):ot=(0,yt._5)(ot,We),T.setExpandedKeys(ot),Pt==null||Pt(ot,{node:ct,expanded:Qt,nativeEvent:Le.nativeEvent}),Qt&&nn){var bn=T.onNodeLoad(ct);bn&&bn.then(function(){var $n=(0,Qe.oH)(T.state.treeData,ot,Gt);T.setUncontrolledState({flattenNodes:$n})}).catch(function(){var $n=T.state.expandedKeys,Un=(0,yt._5)($n,We);T.setExpandedKeys(Un)})}}},T.onListChangeStart=function(){T.setUncontrolledState({listChanging:!0})},T.onListChangeEnd=function(){setTimeout(function(){T.setUncontrolledState({listChanging:!1})})},T.onActiveChange=function(Le){var ct=T.state.activeKey,ot=T.props.onActiveChange;ct!==Le&&(T.setState({activeKey:Le}),Le!==null&&T.scrollTo({key:Le}),ot==null||ot(Le))},T.getActiveItem=function(){var Le=T.state,ct=Le.activeKey,ot=Le.flattenNodes;return ct===null?null:ot.find(function(Ze){var Et=Ze.key;return Et===ct})||null},T.offsetActiveKey=function(Le){var ct=T.state,ot=ct.flattenNodes,Ze=ct.activeKey,Et=ot.findIndex(function(Pt){var nn=Pt.key;return nn===Ze});Et===-1&&Le<0&&(Et=ot.length),Et=(Et+Le+ot.length)%ot.length;var Gt=ot[Et];if(Gt){var Vt=Gt.key;T.onActiveChange(Vt)}else T.onActiveChange(null)},T.onKeyDown=function(Le){var ct=T.state,ot=ct.activeKey,Ze=ct.expandedKeys,Et=ct.checkedKeys,Gt=ct.fieldNames,Vt=T.props,Pt=Vt.onKeyDown,nn=Vt.checkable,vn=Vt.selectable;switch(Le.which){case it.Z.UP:{T.offsetActiveKey(-1),Le.preventDefault();break}case it.Z.DOWN:{T.offsetActiveKey(1),Le.preventDefault();break}}var We=T.getActiveItem();if(We&&We.data){var Dt=T.getTreeNodeRequiredProps(),Qt=We.data.isLeaf===!1||!!(We.data[Gt.children]||[]).length,bn=(0,Qe.F)((0,B.Z)((0,B.Z)({},(0,Qe.H8)(ot,Dt)),{},{data:We.data,active:!0}));switch(Le.which){case it.Z.LEFT:{Qt&&Ze.includes(ot)?T.onNodeExpand({},bn):We.parent&&T.onActiveChange(We.parent.key),Le.preventDefault();break}case it.Z.RIGHT:{Qt&&!Ze.includes(ot)?T.onNodeExpand({},bn):We.children&&We.children.length&&T.onActiveChange(We.children[0].key),Le.preventDefault();break}case it.Z.ENTER:case it.Z.SPACE:{nn&&!bn.disabled&&bn.checkable!==!1&&!bn.disableCheckbox?T.onNodeCheck({},bn,!Et.includes(ot)):!nn&&vn&&!bn.disabled&&bn.selectable!==!1&&T.onNodeSelect({},bn);break}}}Pt==null||Pt(Le)},T.setUncontrolledState=function(Le){var ct=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!T.destroyed){var Ze=!1,Et=!0,Gt={};Object.keys(Le).forEach(function(Vt){if(Vt in T.props){Et=!1;return}Ze=!0,Gt[Vt]=Le[Vt]}),Ze&&(!ct||Et)&&T.setState((0,B.Z)((0,B.Z)({},Gt),ot))}},T.scrollTo=function(Le){T.listRef.current.scrollTo(Le)},T}return(0,M.Z)(X,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Re=this.props.activeKey;Re!==void 0&&Re!==this.state.activeKey&&(this.setState({activeKey:Re}),Re!==null&&this.scrollTo({key:Re}))}},{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 Re,mt=this.state,_e=mt.focused,Le=mt.flattenNodes,ct=mt.keyEntities,ot=mt.draggingNodeKey,Ze=mt.activeKey,Et=mt.dropLevelOffset,Gt=mt.dropContainerKey,Vt=mt.dropTargetKey,Pt=mt.dropPosition,nn=mt.dragOverNodeKey,vn=mt.indent,We=this.props,Dt=We.prefixCls,Qt=We.className,bn=We.style,$n=We.showLine,Un=We.focusable,kt=We.tabIndex,Hn=kt===void 0?0:kt,Jn=We.selectable,tt=We.showIcon,j=We.icon,Oi=We.switcherIcon,tr=We.draggable,Gn=We.checkable,Ti=We.checkStrictly,Er=We.disabled,Zi=We.motion,_=We.loadData,ht=We.filterTreeNode,_i=We.height,Rr=We.itemHeight,Ar=We.virtual,Yr=We.titleRender,Dr=We.dropIndicatorRender,Hr=We.onContextMenu,dr=We.onScroll,Vi=We.direction,fi=We.rootClassName,at=We.rootStyle,Fn=(0,Ue.Z)(this.props,{aria:!0,data:!0}),Qn;return tr&&((0,L.Z)(tr)==="object"?Qn=tr:typeof tr=="function"?Qn={nodeDraggable:tr}:Qn={}),Pe.createElement(ze.k.Provider,{value:{prefixCls:Dt,selectable:Jn,showIcon:tt,icon:j,switcherIcon:Oi,draggable:Qn,draggingNodeKey:ot,checkable:Gn,checkStrictly:Ti,disabled:Er,keyEntities:ct,dropLevelOffset:Et,dropContainerKey:Gt,dropTargetKey:Vt,dropPosition:Pt,dragOverNodeKey:nn,indent:vn,direction:Vi,dropIndicatorRender:Dr,loadData:_,filterTreeNode:ht,titleRender:Yr,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}},Pe.createElement("div",{role:"tree",className:ne()(Dt,Qt,fi,(Re={},(0,I.Z)(Re,"".concat(Dt,"-show-line"),$n),(0,I.Z)(Re,"".concat(Dt,"-focused"),_e),(0,I.Z)(Re,"".concat(Dt,"-active-focused"),Ze!==null),Re)),style:at},Pe.createElement(hi,(0,b.Z)({ref:this.listRef,prefixCls:Dt,style:bn,data:Le,disabled:Er,selectable:Jn,checkable:!!Gn,motion:Zi,dragging:ot!==null,height:_i,itemHeight:Rr,virtual:Ar,focusable:Un,focused:_e,tabIndex:Hn,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Hr,onScroll:dr},this.getTreeNodeRequiredProps(),Fn))))}}],[{key:"getDerivedStateFromProps",value:function(Re,mt){var _e=mt.prevProps,Le={prevProps:Re};function ct(Un){return!_e&&Un in Re||_e&&_e[Un]!==Re[Un]}var ot,Ze=mt.fieldNames;if(ct("fieldNames")&&(Ze=(0,Qe.w$)(Re.fieldNames),Le.fieldNames=Ze),ct("treeData")?ot=Re.treeData:ct("children")&&((0,Ie.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),ot=(0,Qe.zn)(Re.children)),ot){Le.treeData=ot;var Et=(0,Qe.I8)(ot,{fieldNames:Ze});Le.keyEntities=(0,B.Z)((0,I.Z)({},Ye,H),Et.keyEntities)}var Gt=Le.keyEntities||mt.keyEntities;if(ct("expandedKeys")||_e&&ct("autoExpandParent"))Le.expandedKeys=Re.autoExpandParent||!_e&&Re.defaultExpandParent?(0,yt.r7)(Re.expandedKeys,Gt):Re.expandedKeys;else if(!_e&&Re.defaultExpandAll){var Vt=(0,B.Z)({},Gt);delete Vt[Ye],Le.expandedKeys=Object.keys(Vt).map(function(Un){return Vt[Un].key})}else!_e&&Re.defaultExpandedKeys&&(Le.expandedKeys=Re.autoExpandParent||Re.defaultExpandParent?(0,yt.r7)(Re.defaultExpandedKeys,Gt):Re.defaultExpandedKeys);if(Le.expandedKeys||delete Le.expandedKeys,ot||Le.expandedKeys){var Pt=(0,Qe.oH)(ot||mt.treeData,Le.expandedKeys||mt.expandedKeys,Ze);Le.flattenNodes=Pt}if(Re.selectable&&(ct("selectedKeys")?Le.selectedKeys=(0,yt.BT)(Re.selectedKeys,Re):!_e&&Re.defaultSelectedKeys&&(Le.selectedKeys=(0,yt.BT)(Re.defaultSelectedKeys,Re))),Re.checkable){var nn;if(ct("checkedKeys")?nn=(0,yt.E6)(Re.checkedKeys)||{}:!_e&&Re.defaultCheckedKeys?nn=(0,yt.E6)(Re.defaultCheckedKeys)||{}:ot&&(nn=(0,yt.E6)(Re.checkedKeys)||{checkedKeys:mt.checkedKeys,halfCheckedKeys:mt.halfCheckedKeys}),nn){var vn=nn,We=vn.checkedKeys,Dt=We===void 0?[]:We,Qt=vn.halfCheckedKeys,bn=Qt===void 0?[]:Qt;if(!Re.checkStrictly){var $n=(0,si.S)(Dt,!0,Gt);Dt=$n.checkedKeys,bn=$n.halfCheckedKeys}Le.checkedKeys=Dt,Le.halfCheckedKeys=bn}}return ct("loadedKeys")&&(Le.loadedKeys=Re.loadedKeys),Le}}]),X}(Pe.Component);Tn.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:Ee,allowDrop:function(){return!0},expandAction:!1},Tn.TreeNode=Te.Z;var xe=Tn,D=xe},35654:function(J,C,d){"use strict";d.d(C,{BT:function(){return Pe},E6:function(){return fe},L0:function(){return re},OM:function(){return Ie},_5:function(){return he},r7:function(){return we},wA:function(){return ne},yx:function(){return De}});var b=d(26407),I=d(39559),L=d(48736),B=d(59301),V=d(39417),Q=d(67841),M=d(71430),de=null;function he(pe,Ne){if(!pe)return[];var te=pe.slice(),Ae=te.indexOf(Ne);return Ae>=0&&te.splice(Ae,1),te}function re(pe,Ne){var te=(pe||[]).slice();return te.indexOf(Ne)===-1&&te.push(Ne),te}function De(pe){return pe.split("-")}function ne(pe,Ne){var te=[],Ae=(0,Q.Z)(Ne,pe);function Te(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];$e.forEach(function(Qe){var Je=Qe.key,Ce=Qe.children;te.push(Je),Te(Ce)})}return Te(Ae.children),te}function it(pe){if(pe.parent){var Ne=De(pe.pos);return Number(Ne[Ne.length-1])===pe.parent.children.length-1}return!1}function Ue(pe){var Ne=De(pe.pos);return Number(Ne[Ne.length-1])===0}function Ie(pe,Ne,te,Ae,Te,$e,Qe,Je,Ce,dt){var Xe,$t=pe.clientX,xt=pe.clientY,At=pe.target.getBoundingClientRect(),St=At.top,Cn=At.height,Ye=(dt==="rtl"?-1:1)*(((Te==null?void 0:Te.x)||0)-$t),oe=(Ye-12)/Ae,H=(0,Q.Z)(Je,te.props.eventKey);if(xt<St+Cn/2){var Ot=Qe.findIndex(function(D){return D.key===H.key}),Kt=Ot<=0?0:Ot-1,vt=Qe[Kt].key;H=(0,Q.Z)(Je,vt)}var hn=H.key,Rt=H,hi=H.key,yt=0,si=0;if(!Ce.includes(hn))for(var qn=0;qn<oe&&it(H);qn+=1)H=H.parent,si+=1;var ln=Ne.props.data,Tn=H.node,xe=!0;return Ue(H)&&H.level===0&&xt<St+Cn/2&&$e({dragNode:ln,dropNode:Tn,dropPosition:-1})&&H.key===te.props.eventKey?yt=-1:(Rt.children||[]).length&&Ce.includes(hi)?$e({dragNode:ln,dropNode:Tn,dropPosition:0})?yt=0:xe=!1:si===0?oe>-1.5?$e({dragNode:ln,dropNode:Tn,dropPosition:1})?yt=1:xe=!1:$e({dragNode:ln,dropNode:Tn,dropPosition:0})?yt=0:$e({dragNode:ln,dropNode:Tn,dropPosition:1})?yt=1:xe=!1:$e({dragNode:ln,dropNode:Tn,dropPosition:1})?yt=1:xe=!1,{dropPosition:yt,dropLevelOffset:si,dropTargetKey:H.key,dropTargetPos:H.pos,dragOverNodeKey:hi,dropContainerKey:yt===0?null:((Xe=H.parent)===null||Xe===void 0?void 0:Xe.key)||null,dropAllowed:xe}}function Pe(pe,Ne){if(pe){var te=Ne.multiple;return te?pe.slice():pe.length?[pe[0]]:pe}}var ze=function(Ne){return Ne};function Ee(pe,Ne){if(!pe)return[];var te=Ne||{},Ae=te.processProps,Te=Ae===void 0?ze:Ae,$e=Array.isArray(pe)?pe:[pe];return $e.map(function(Qe){var Je=Qe.children,Ce=_objectWithoutProperties(Qe,de),dt=Ee(Je,Ne);return React.createElement(TreeNode,_extends({key:Ce.key},Te(Ce)),dt)})}function fe(pe){if(!pe)return null;var Ne;if(Array.isArray(pe))Ne={checkedKeys:pe,halfCheckedKeys:void 0};else if((0,I.Z)(pe)==="object")Ne={checkedKeys:pe.checked||void 0,halfCheckedKeys:pe.halfChecked||void 0};else return(0,L.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return Ne}function we(pe,Ne){var te=new Set;function Ae(Te){if(!te.has(Te)){var $e=(0,Q.Z)(Ne,Te);if($e){te.add(Te);var Qe=$e.parent,Je=$e.node;Je.disabled||Qe&&Ae(Qe.key)}}}return(pe||[]).forEach(function(Te){Ae(Te)}),(0,b.Z)(te)}},90782:function(J,C,d){"use strict";d.d(C,{S:function(){return M}});var b=d(48736),I=d(67841);function L(de,he){var re=new Set;return de.forEach(function(De){he.has(De)||re.add(De)}),re}function B(de){var he=de||{},re=he.disabled,De=he.disableCheckbox,ne=he.checkable;return!!(re||De)||ne===!1}function V(de,he,re,De){for(var ne=new Set(de),it=new Set,Ue=0;Ue<=re;Ue+=1){var Ie=he.get(Ue)||new Set;Ie.forEach(function(fe){var we=fe.key,pe=fe.node,Ne=fe.children,te=Ne===void 0?[]:Ne;ne.has(we)&&!De(pe)&&te.filter(function(Ae){return!De(Ae.node)}).forEach(function(Ae){ne.add(Ae.key)})})}for(var Pe=new Set,ze=re;ze>=0;ze-=1){var Ee=he.get(ze)||new Set;Ee.forEach(function(fe){var we=fe.parent,pe=fe.node;if(!(De(pe)||!fe.parent||Pe.has(fe.parent.key))){if(De(fe.parent.node)){Pe.add(we.key);return}var Ne=!0,te=!1;(we.children||[]).filter(function(Ae){return!De(Ae.node)}).forEach(function(Ae){var Te=Ae.key,$e=ne.has(Te);Ne&&!$e&&(Ne=!1),!te&&($e||it.has(Te))&&(te=!0)}),Ne&&ne.add(we.key),te&&it.add(we.key),Pe.add(we.key)}})}return{checkedKeys:Array.from(ne),halfCheckedKeys:Array.from(L(it,ne))}}function Q(de,he,re,De,ne){for(var it=new Set(de),Ue=new Set(he),Ie=0;Ie<=De;Ie+=1){var Pe=re.get(Ie)||new Set;Pe.forEach(function(we){var pe=we.key,Ne=we.node,te=we.children,Ae=te===void 0?[]:te;!it.has(pe)&&!Ue.has(pe)&&!ne(Ne)&&Ae.filter(function(Te){return!ne(Te.node)}).forEach(function(Te){it.delete(Te.key)})})}Ue=new Set;for(var ze=new Set,Ee=De;Ee>=0;Ee-=1){var fe=re.get(Ee)||new Set;fe.forEach(function(we){var pe=we.parent,Ne=we.node;if(!(ne(Ne)||!we.parent||ze.has(we.parent.key))){if(ne(we.parent.node)){ze.add(pe.key);return}var te=!0,Ae=!1;(pe.children||[]).filter(function(Te){return!ne(Te.node)}).forEach(function(Te){var $e=Te.key,Qe=it.has($e);te&&!Qe&&(te=!1),!Ae&&(Qe||Ue.has($e))&&(Ae=!0)}),te||it.delete(pe.key),Ae&&Ue.add(pe.key),ze.add(pe.key)}})}return{checkedKeys:Array.from(it),halfCheckedKeys:Array.from(L(Ue,it))}}function M(de,he,re,De){var ne=[],it;De?it=De:it=B;var Ue=new Set(de.filter(function(Ee){var fe=!!(0,I.Z)(re,Ee);return fe||ne.push(Ee),fe})),Ie=new Map,Pe=0;Object.keys(re).forEach(function(Ee){var fe=re[Ee],we=fe.level,pe=Ie.get(we);pe||(pe=new Set,Ie.set(we,pe)),pe.add(fe),Pe=Math.max(Pe,we)}),(0,b.ZP)(!ne.length,"Tree missing follow keys: ".concat(ne.slice(0,100).map(function(Ee){return"'".concat(Ee,"'")}).join(", ")));var ze;return he===!0?ze=V(Ue,Ie,Pe,it):ze=Q(Ue,he.halfCheckedKeys,Ie,Pe,it),ze}},67841:function(J,C,d){"use strict";d.d(C,{Z:function(){return b}});function b(I,L){return I[L]}},71430:function(J,C,d){"use strict";d.d(C,{F:function(){return we},H8:function(){return fe},I8:function(){return Ee},km:function(){return ne},oH:function(){return Pe},w$:function(){return it},zn:function(){return Ie}});var b=d(39559),I=d(26407),L=d(33708),B=d(37061),V=d(11592),Q=d(2738),M=d(48736),de=d(67841),he=["children"];function re(pe,Ne){return"".concat(pe,"-").concat(Ne)}function De(pe){return pe&&pe.type&&pe.type.isTreeNode}function ne(pe,Ne){return pe!=null?pe:Ne}function it(pe){var Ne=pe||{},te=Ne.title,Ae=Ne._title,Te=Ne.key,$e=Ne.children,Qe=te||"title";return{title:Qe,_title:Ae||[Qe],key:Te||"key",children:$e||"children"}}function Ue(pe,Ne){var te=new Map;function Ae(Te){var $e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(Te||[]).forEach(function(Qe){var Je=Qe[Ne.key],Ce=Qe[Ne.children];warning(Je!=null,"Tree node must have a certain key: [".concat($e).concat(Je,"]"));var dt=String(Je);warning(!te.has(dt)||Je===null||Je===void 0,"Same 'key' exist in the Tree: ".concat(dt)),te.set(dt,!0),Ae(Ce,"".concat($e).concat(dt," > "))})}Ae(pe)}function Ie(pe){function Ne(te){var Ae=(0,V.Z)(te);return Ae.map(function(Te){if(!De(Te))return(0,M.ZP)(!Te,"Tree/TreeNode can only accept TreeNode as children."),null;var $e=Te.key,Qe=Te.props,Je=Qe.children,Ce=(0,B.Z)(Qe,he),dt=(0,L.Z)({key:$e},Ce),Xe=Ne(Je);return Xe.length&&(dt.children=Xe),dt}).filter(function(Te){return Te})}return Ne(pe)}function Pe(pe,Ne,te){var Ae=it(te),Te=Ae._title,$e=Ae.key,Qe=Ae.children,Je=new Set(Ne===!0?[]:Ne),Ce=[];function dt(Xe){var $t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Xe.map(function(xt,At){for(var St=re($t?$t.pos:"0",At),Cn=ne(xt[$e],St),Ye,oe=0;oe<Te.length;oe+=1){var H=Te[oe];if(xt[H]!==void 0){Ye=xt[H];break}}var Ot=(0,L.Z)((0,L.Z)({},(0,Q.Z)(xt,[].concat((0,I.Z)(Te),[$e,Qe]))),{},{title:Ye,key:Cn,parent:$t,pos:St,children:null,data:xt,isStart:[].concat((0,I.Z)($t?$t.isStart:[]),[At===0]),isEnd:[].concat((0,I.Z)($t?$t.isEnd:[]),[At===Xe.length-1])});return Ce.push(Ot),Ne===!0||Je.has(Cn)?Ot.children=dt(xt[Qe]||[],Ot):Ot.children=[],Ot})}return dt(pe),Ce}function ze(pe,Ne,te){var Ae={};(0,b.Z)(te)==="object"?Ae=te:Ae={externalGetKey:te},Ae=Ae||{};var Te=Ae,$e=Te.childrenPropName,Qe=Te.externalGetKey,Je=Te.fieldNames,Ce=it(Je),dt=Ce.key,Xe=Ce.children,$t=$e||Xe,xt;Qe?typeof Qe=="string"?xt=function(Cn){return Cn[Qe]}:typeof Qe=="function"&&(xt=function(Cn){return Qe(Cn)}):xt=function(Cn,Ye){return ne(Cn[dt],Ye)};function At(St,Cn,Ye,oe){var H=St?St[$t]:pe,Ot=St?re(Ye.pos,Cn):"0",Kt=St?[].concat((0,I.Z)(oe),[St]):[];if(St){var vt=xt(St,Ot),hn={node:St,index:Cn,pos:Ot,key:vt,parentPos:Ye.node?Ye.pos:null,level:Ye.level+1,nodes:Kt};Ne(hn)}H&&H.forEach(function(Rt,hi){At(Rt,hi,{node:St,pos:Ot,level:Ye?Ye.level+1:-1},Kt)})}At(null)}function Ee(pe){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},te=Ne.initWrapper,Ae=Ne.processEntity,Te=Ne.onProcessFinished,$e=Ne.externalGetKey,Qe=Ne.childrenPropName,Je=Ne.fieldNames,Ce=arguments.length>2?arguments[2]:void 0,dt=$e||Ce,Xe={},$t={},xt={posEntities:Xe,keyEntities:$t};return te&&(xt=te(xt)||xt),ze(pe,function(At){var St=At.node,Cn=At.index,Ye=At.pos,oe=At.key,H=At.parentPos,Ot=At.level,Kt=At.nodes,vt={node:St,nodes:Kt,index:Cn,key:oe,pos:Ye,level:Ot},hn=ne(oe,Ye);Xe[Ye]=vt,$t[hn]=vt,vt.parent=Xe[H],vt.parent&&(vt.parent.children=vt.parent.children||[],vt.parent.children.push(vt)),Ae&&Ae(vt,xt)},{externalGetKey:dt,childrenPropName:Qe,fieldNames:Je}),Te&&Te(xt),xt}function fe(pe,Ne){var te=Ne.expandedKeys,Ae=Ne.selectedKeys,Te=Ne.loadedKeys,$e=Ne.loadingKeys,Qe=Ne.checkedKeys,Je=Ne.halfCheckedKeys,Ce=Ne.dragOverNodeKey,dt=Ne.dropPosition,Xe=Ne.keyEntities,$t=(0,de.Z)(Xe,pe),xt={eventKey:pe,expanded:te.indexOf(pe)!==-1,selected:Ae.indexOf(pe)!==-1,loaded:Te.indexOf(pe)!==-1,loading:$e.indexOf(pe)!==-1,checked:Qe.indexOf(pe)!==-1,halfChecked:Je.indexOf(pe)!==-1,pos:String($t?$t.pos:""),dragOver:Ce===pe&&dt===0,dragOverGapTop:Ce===pe&&dt===-1,dragOverGapBottom:Ce===pe&&dt===1};return xt}function we(pe){var Ne=pe.data,te=pe.expanded,Ae=pe.selected,Te=pe.checked,$e=pe.loaded,Qe=pe.loading,Je=pe.halfChecked,Ce=pe.dragOver,dt=pe.dragOverGapTop,Xe=pe.dragOverGapBottom,$t=pe.pos,xt=pe.active,At=pe.eventKey,St=(0,L.Z)((0,L.Z)({},Ne),{},{expanded:te,selected:Ae,checked:Te,loaded:$e,loading:Qe,halfChecked:Je,dragOver:Ce,dragOverGapTop:dt,dragOverGapBottom:Xe,pos:$t,active:xt,key:At});return"props"in St||Object.defineProperty(St,"props",{get:function(){return(0,M.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),pe}}),St}},8224:function(J,C,d){"use strict";d.d(C,{Z:function(){return I}});var b=d(4676);function I(L,B,V,Q){var M=b.unstable_batchedUpdates?function(he){b.unstable_batchedUpdates(V,he)}:V;return L!=null&&L.addEventListener&&L.addEventListener(B,M,Q),{remove:function(){L!=null&&L.removeEventListener&&L.removeEventListener(B,M,Q)}}}},55468:function(J,C,d){"use strict";d.d(C,{g1:function(){return De},os:function(){return it}});var b=/margin|padding|width|height|max|min|offset/,I={left:!0,top:!0},L={cssFloat:1,styleFloat:1,float:1};function B(Ue){return Ue.nodeType===1?Ue.ownerDocument.defaultView.getComputedStyle(Ue,null):{}}function V(Ue,Ie,Pe){if(Ie=Ie.toLowerCase(),Pe==="auto"){if(Ie==="height")return Ue.offsetHeight;if(Ie==="width")return Ue.offsetWidth}return Ie in I||(I[Ie]=b.test(Ie)),I[Ie]?parseFloat(Pe)||0:Pe}function Q(Ue,Ie){var Pe=arguments.length,ze=B(Ue);return Ie=L[Ie]?"cssFloat"in Ue.style?"cssFloat":"styleFloat":Ie,Pe===1?ze:V(Ue,Ie,ze[Ie]||Ue.style[Ie])}function M(Ue,Ie,Pe){var ze=arguments.length;if(Ie=L[Ie]?"cssFloat"in Ue.style?"cssFloat":"styleFloat":Ie,ze===3)return typeof Pe=="number"&&b.test(Ie)&&(Pe="".concat(Pe,"px")),Ue.style[Ie]=Pe,Pe;for(var Ee in Ie)Ie.hasOwnProperty(Ee)&&M(Ue,Ee,Ie[Ee]);return B(Ue)}function de(Ue){return Ue===document.body?document.documentElement.clientWidth:Ue.offsetWidth}function he(Ue){return Ue===document.body?window.innerHeight||document.documentElement.clientHeight:Ue.offsetHeight}function re(){var Ue=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),Ie=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:Ue,height:Ie}}function De(){var Ue=document.documentElement.clientWidth,Ie=window.innerHeight||document.documentElement.clientHeight;return{width:Ue,height:Ie}}function ne(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function it(Ue){var Ie=Ue.getBoundingClientRect(),Pe=document.documentElement;return{left:Ie.left+(window.pageXOffset||Pe.scrollLeft)-(Pe.clientLeft||document.body.clientLeft||0),top:Ie.top+(window.pageYOffset||Pe.scrollTop)-(Pe.clientTop||document.body.clientTop||0)}}},24514:function(J,C,d){"use strict";d.d(C,{G:function(){return B}});var b=d(47273),I=function(Q){if((0,b.Z)()&&window.document.documentElement){var M=Array.isArray(Q)?Q:[Q],de=window.document.documentElement;return M.some(function(he){return he in de.style})}return!1},L=function(Q,M){if(!I(Q))return!1;var de=document.createElement("div"),he=de.style[Q];return de.style[Q]=M,de.style[Q]!==he};function B(V,Q){return!Array.isArray(V)&&Q!==void 0?L(V,Q):I(V)}},4409:function(J,C,d){"use strict";d.d(C,{Z:function(){return xe}});var b=d(92413),I=d(39559),L=d(33708),B=d(400),V=d(33606),Q=d(37061),M=d(92310),de=d.n(M),he=d(29301),re=d(70425),De=d(34280),ne=d(59301),it=d(4676),Ue=ne.forwardRef(function(D,k){var G=D.height,X=D.offsetY,T=D.offsetX,Re=D.children,mt=D.prefixCls,_e=D.onInnerResize,Le=D.innerProps,ct=D.rtl,ot=D.extra,Ze={},Et={display:"flex",flexDirection:"column"};return X!==void 0&&(Ze={height:G,position:"relative",overflow:"hidden"},Et=(0,L.Z)((0,L.Z)({},Et),{},(0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)((0,B.Z)({transform:"translateY(".concat(X,"px)")},ct?"marginRight":"marginLeft",-T),"position","absolute"),"left",0),"right",0),"top",0))),ne.createElement("div",{style:Ze},ne.createElement(he.Z,{onResize:function(Vt){var Pt=Vt.offsetHeight;Pt&&_e&&_e()}},ne.createElement("div",(0,b.Z)({style:Et,className:de()((0,B.Z)({},"".concat(mt,"-holder-inner"),mt)),ref:k},Le),Re,ot)))});Ue.displayName="Filler";var Ie=Ue;function Pe(D){var k=D.children,G=D.setRef,X=ne.useCallback(function(T){G(T)},[]);return ne.cloneElement(k,{ref:X})}function ze(D,k,G,X,T,Re,mt,_e){var Le=_e.getKey;return D.slice(k,G+1).map(function(ct,ot){var Ze=k+ot,Et=mt(ct,Ze,{style:{width:X},offsetX:T}),Gt=Le(ct);return ne.createElement(Pe,{key:Gt,setRef:function(Pt){return Re(ct,Pt)}},Et)})}function Ee(D,k,G,X){var T=G-D,Re=k-G,mt=Math.min(T,Re)*2;if(X<=mt){var _e=Math.floor(X/2);return X%2?G+_e+1:G-_e}return T>Re?G-(X-Re):G+(X-T)}function fe(D,k,G){var X=D.length,T=k.length,Re,mt;if(X===0&&T===0)return null;X<T?(Re=D,mt=k):(Re=k,mt=D);var _e={__EMPTY_ITEM__:!0};function Le(Vt){return Vt!==void 0?G(Vt):_e}for(var ct=null,ot=Math.abs(X-T)!==1,Ze=0;Ze<mt.length;Ze+=1){var Et=Le(Re[Ze]),Gt=Le(mt[Ze]);if(Et!==Gt){ct=Ze,ot=ot||Et!==Le(mt[Ze+1]);break}}return ct===null?null:{index:ct,multiple:ot}}function we(D,k,G){var X=ne.useState(D),T=(0,V.Z)(X,2),Re=T[0],mt=T[1],_e=ne.useState(null),Le=(0,V.Z)(_e,2),ct=Le[0],ot=Le[1];return ne.useEffect(function(){var Ze=fe(Re||[],D||[],k);(Ze==null?void 0:Ze.index)!==void 0&&(G==null||G(Ze.index),ot(D[Ze.index])),mt(D)},[D]),[ct]}var pe=d(16089),Ne=(typeof navigator=="undefined"?"undefined":(0,I.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),te=Ne,Ae=function(D,k,G,X){var T=(0,ne.useRef)(!1),Re=(0,ne.useRef)(null);function mt(){clearTimeout(Re.current),T.current=!0,Re.current=setTimeout(function(){T.current=!1},50)}var _e=(0,ne.useRef)({top:D,bottom:k,left:G,right:X});return _e.current.top=D,_e.current.bottom=k,_e.current.left=G,_e.current.right=X,function(Le,ct){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Ze=Le?ct<0&&_e.current.left||ct>0&&_e.current.right:ct<0&&_e.current.top||ct>0&&_e.current.bottom;return ot&&Ze?(clearTimeout(Re.current),T.current=!1):(!Ze||T.current)&&mt(),!T.current&&Ze}};function Te(D,k,G,X,T,Re,mt){var _e=(0,ne.useRef)(0),Le=(0,ne.useRef)(null),ct=(0,ne.useRef)(null),ot=(0,ne.useRef)(!1),Ze=Ae(k,G,X,T);function Et(We,Dt){if(pe.Z.cancel(Le.current),!Ze(!1,Dt)){var Qt=We;if(!Qt._virtualHandled)Qt._virtualHandled=!0;else return;_e.current+=Dt,ct.current=Dt,te||Qt.preventDefault(),Le.current=(0,pe.Z)(function(){var bn=ot.current?10:1;mt(_e.current*bn,!1),_e.current=0})}}function Gt(We,Dt){mt(Dt,!0),te||We.preventDefault()}var Vt=(0,ne.useRef)(null),Pt=(0,ne.useRef)(null);function nn(We){if(D){pe.Z.cancel(Pt.current),Pt.current=(0,pe.Z)(function(){Vt.current=null},2);var Dt=We.deltaX,Qt=We.deltaY,bn=We.shiftKey,$n=Dt,Un=Qt;(Vt.current==="sx"||!Vt.current&&bn&&Qt&&!Dt)&&($n=Qt,Un=0,Vt.current="sx");var kt=Math.abs($n),Hn=Math.abs(Un);Vt.current===null&&(Vt.current=Re&&kt>Hn?"x":"y"),Vt.current==="y"?Et(We,Un):Gt(We,$n)}}function vn(We){D&&(ot.current=We.detail===ct.current)}return[nn,vn]}function $e(D,k,G,X){var T=ne.useMemo(function(){return[new Map,[]]},[D,G.id,X]),Re=(0,V.Z)(T,2),mt=Re[0],_e=Re[1],Le=function(ot){var Ze=arguments.length>1&&arguments[1]!==void 0?arguments[1]:ot,Et=mt.get(ot),Gt=mt.get(Ze);if(Et===void 0||Gt===void 0)for(var Vt=D.length,Pt=_e.length;Pt<Vt;Pt+=1){var nn,vn=D[Pt],We=k(vn);mt.set(We,Pt);var Dt=(nn=G.get(We))!==null&&nn!==void 0?nn:X;if(_e[Pt]=(_e[Pt-1]||0)+Dt,We===ot&&(Et=Pt),We===Ze&&(Gt=Pt),Et!==void 0&&Gt!==void 0)break}return{top:_e[Et-1]||0,bottom:_e[Gt]}};return Le}var Qe=d(76846),Je=d(6909),Ce=d(4771),dt=function(){function D(){(0,Je.Z)(this,D),(0,B.Z)(this,"maps",void 0),(0,B.Z)(this,"id",0),(0,B.Z)(this,"diffKeys",new Set),this.maps=Object.create(null)}return(0,Ce.Z)(D,[{key:"set",value:function(G,X){this.maps[G]=X,this.id+=1,this.diffKeys.add(G)}},{key:"get",value:function(G){return this.maps[G]}},{key:"resetRecord",value:function(){this.diffKeys.clear()}},{key:"getRecord",value:function(){return this.diffKeys}}]),D}(),Xe=dt;function $t(D){var k=parseFloat(D);return isNaN(k)?0:k}function xt(D,k,G){var X=ne.useState(0),T=(0,V.Z)(X,2),Re=T[0],mt=T[1],_e=(0,ne.useRef)(new Map),Le=(0,ne.useRef)(new Xe),ct=(0,ne.useRef)(0);function ot(){ct.current+=1}function Ze(){var Gt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;ot();var Vt=function(){var vn=!1;_e.current.forEach(function(We,Dt){if(We&&We.offsetParent){var Qt=(0,Qe.ZP)(We),bn=Qt.offsetHeight,$n=getComputedStyle(Qt),Un=$n.marginTop,kt=$n.marginBottom,Hn=$t(Un),Jn=$t(kt),tt=bn+Hn+Jn;Le.current.get(Dt)!==tt&&(Le.current.set(Dt,tt),vn=!0)}}),vn&&mt(function(We){return We+1})};if(Gt)Vt();else{ct.current+=1;var Pt=ct.current;Promise.resolve().then(function(){Pt===ct.current&&Vt()})}}function Et(Gt,Vt){var Pt=D(Gt),nn=_e.current.get(Pt);Vt?(_e.current.set(Pt,Vt),Ze()):_e.current.delete(Pt),!nn!=!Vt&&(Vt?k==null||k(Gt):G==null||G(Gt))}return(0,ne.useEffect)(function(){return ot},[]),[Et,Ze,Le.current,Re]}var At=14/15;function St(D,k,G){var X=(0,ne.useRef)(!1),T=(0,ne.useRef)(0),Re=(0,ne.useRef)(0),mt=(0,ne.useRef)(null),_e=(0,ne.useRef)(null),Le,ct=function(Gt){if(X.current){var Vt=Math.ceil(Gt.touches[0].pageX),Pt=Math.ceil(Gt.touches[0].pageY),nn=T.current-Vt,vn=Re.current-Pt,We=Math.abs(nn)>Math.abs(vn);We?T.current=Vt:Re.current=Pt;var Dt=G(We,We?nn:vn,!1,Gt);Dt&&Gt.preventDefault(),clearInterval(_e.current),Dt&&(_e.current=setInterval(function(){We?nn*=At:vn*=At;var Qt=Math.floor(We?nn:vn);(!G(We,Qt,!0)||Math.abs(Qt)<=.1)&&clearInterval(_e.current)},16))}},ot=function(){X.current=!1,Le()},Ze=function(Gt){Le(),Gt.touches.length===1&&!X.current&&(X.current=!0,T.current=Math.ceil(Gt.touches[0].pageX),Re.current=Math.ceil(Gt.touches[0].pageY),mt.current=Gt.target,mt.current.addEventListener("touchmove",ct,{passive:!1}),mt.current.addEventListener("touchend",ot,{passive:!0}))};Le=function(){mt.current&&(mt.current.removeEventListener("touchmove",ct),mt.current.removeEventListener("touchend",ot))},(0,De.Z)(function(){return D&&k.current.addEventListener("touchstart",Ze,{passive:!0}),function(){var Et;(Et=k.current)===null||Et===void 0||Et.removeEventListener("touchstart",Ze),Le(),clearInterval(_e.current)}},[D])}function Cn(D){return Math.floor(Math.pow(D,.5))}function Ye(D,k){var G="touches"in D?D.touches[0]:D;return G[k?"pageX":"pageY"]-window[k?"scrollX":"scrollY"]}function oe(D,k,G){ne.useEffect(function(){var X=k.current;if(D&&X){var T=!1,Re,mt,_e=function(){pe.Z.cancel(Re)},Le=function Et(){_e(),Re=(0,pe.Z)(function(){G(mt),Et()})},ct=function(Gt){if(!Gt.target.draggable){var Vt=Gt;Vt._virtualHandled||(Vt._virtualHandled=!0,T=!0)}},ot=function(){T=!1,_e()},Ze=function(Gt){if(T){var Vt=Ye(Gt,!1),Pt=X.getBoundingClientRect(),nn=Pt.top,vn=Pt.bottom;if(Vt<=nn){var We=nn-Vt;mt=-Cn(We),Le()}else if(Vt>=vn){var Dt=Vt-vn;mt=Cn(Dt),Le()}else _e()}};return X.addEventListener("mousedown",ct),X.ownerDocument.addEventListener("mouseup",ot),X.ownerDocument.addEventListener("mousemove",Ze),function(){X.removeEventListener("mousedown",ct),X.ownerDocument.removeEventListener("mouseup",ot),X.ownerDocument.removeEventListener("mousemove",Ze),_e()}}},[D])}var H=10;function Ot(D,k,G,X,T,Re,mt,_e){var Le=ne.useRef(),ct=ne.useState(null),ot=(0,V.Z)(ct,2),Ze=ot[0],Et=ot[1];return(0,De.Z)(function(){if(Ze&&Ze.times<H){if(!D.current){Et(function(_){return(0,L.Z)({},_)});return}Re();var Gt=Ze.targetAlign,Vt=Ze.originAlign,Pt=Ze.index,nn=Ze.offset,vn=D.current.clientHeight,We=!1,Dt=Gt,Qt=null;if(vn){for(var bn=Gt||Vt,$n=0,Un=0,kt=0,Hn=Math.min(k.length-1,Pt),Jn=0;Jn<=Hn;Jn+=1){var tt=T(k[Jn]);Un=$n;var j=G.get(tt);kt=Un+(j===void 0?X:j),$n=kt}for(var Oi=bn==="top"?nn:vn-nn,tr=Hn;tr>=0;tr-=1){var Gn=T(k[tr]),Ti=G.get(Gn);if(Ti===void 0){We=!0;break}if(Oi-=Ti,Oi<=0)break}switch(bn){case"top":Qt=Un-nn;break;case"bottom":Qt=kt-vn+nn;break;default:{var Er=D.current.scrollTop,Zi=Er+vn;Un<Er?Dt="top":kt>Zi&&(Dt="bottom")}}Qt!==null&&mt(Qt),Qt!==Ze.lastTop&&(We=!0)}We&&Et((0,L.Z)((0,L.Z)({},Ze),{},{times:Ze.times+1,targetAlign:Dt,lastTop:Qt}))}},[Ze,D.current]),function(Gt){if(Gt==null){_e();return}if(pe.Z.cancel(Le.current),typeof Gt=="number")mt(Gt);else if(Gt&&(0,I.Z)(Gt)==="object"){var Vt,Pt=Gt.align;"index"in Gt?Vt=Gt.index:Vt=k.findIndex(function(We){return T(We)===Gt.key});var nn=Gt.offset,vn=nn===void 0?0:nn;Et({times:0,index:Vt,offset:vn,originAlign:Pt})}}}var Kt=ne.forwardRef(function(D,k){var G=D.prefixCls,X=D.rtl,T=D.scrollOffset,Re=D.scrollRange,mt=D.onStartMove,_e=D.onStopMove,Le=D.onScroll,ct=D.horizontal,ot=D.spinSize,Ze=D.containerSize,Et=D.style,Gt=D.thumbStyle,Vt=D.showScrollBar,Pt=ne.useState(!1),nn=(0,V.Z)(Pt,2),vn=nn[0],We=nn[1],Dt=ne.useState(null),Qt=(0,V.Z)(Dt,2),bn=Qt[0],$n=Qt[1],Un=ne.useState(null),kt=(0,V.Z)(Un,2),Hn=kt[0],Jn=kt[1],tt=!X,j=ne.useRef(),Oi=ne.useRef(),tr=ne.useState(Vt),Gn=(0,V.Z)(tr,2),Ti=Gn[0],Er=Gn[1],Zi=ne.useRef(),_=function(){Vt===!0||Vt===!1||(clearTimeout(Zi.current),Er(!0),Zi.current=setTimeout(function(){Er(!1)},3e3))},ht=Re-Ze||0,_i=Ze-ot||0,Rr=ne.useMemo(function(){if(T===0||ht===0)return 0;var Fn=T/ht;return Fn*_i},[T,ht,_i]),Ar=function(Qn){Qn.stopPropagation(),Qn.preventDefault()},Yr=ne.useRef({top:Rr,dragging:vn,pageY:bn,startTop:Hn});Yr.current={top:Rr,dragging:vn,pageY:bn,startTop:Hn};var Dr=function(Qn){We(!0),$n(Ye(Qn,ct)),Jn(Yr.current.top),mt(),Qn.stopPropagation(),Qn.preventDefault()};ne.useEffect(function(){var Fn=function(sn){sn.preventDefault()},Qn=j.current,ft=Oi.current;return Qn.addEventListener("touchstart",Fn,{passive:!1}),ft.addEventListener("touchstart",Dr,{passive:!1}),function(){Qn.removeEventListener("touchstart",Fn),ft.removeEventListener("touchstart",Dr)}},[]);var Hr=ne.useRef();Hr.current=ht;var dr=ne.useRef();dr.current=_i,ne.useEffect(function(){if(vn){var Fn,Qn=function(sn){var In=Yr.current,ni=In.dragging,Kn=In.pageY,ut=In.startTop;pe.Z.cancel(Fn);var yn=j.current.getBoundingClientRect(),rn=Ze/(ct?yn.width:yn.height);if(ni){var Si=(Ye(sn,ct)-Kn)*rn,Zt=ut;!tt&&ct?Zt-=Si:Zt+=Si;var _n=Hr.current,Mt=dr.current,Jt=Mt?Zt/Mt:0,on=Math.ceil(Jt*_n);on=Math.max(on,0),on=Math.min(on,_n),Fn=(0,pe.Z)(function(){Le(on,ct)})}},ft=function(){We(!1),_e()};return window.addEventListener("mousemove",Qn,{passive:!0}),window.addEventListener("touchmove",Qn,{passive:!0}),window.addEventListener("mouseup",ft,{passive:!0}),window.addEventListener("touchend",ft,{passive:!0}),function(){window.removeEventListener("mousemove",Qn),window.removeEventListener("touchmove",Qn),window.removeEventListener("mouseup",ft),window.removeEventListener("touchend",ft),pe.Z.cancel(Fn)}}},[vn]),ne.useEffect(function(){return _(),function(){clearTimeout(Zi.current)}},[T]),ne.useImperativeHandle(k,function(){return{delayHidden:_}});var Vi="".concat(G,"-scrollbar"),fi={position:"absolute",visibility:Ti?null:"hidden"},at={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return ct?(fi.height=8,fi.left=0,fi.right=0,fi.bottom=0,at.height="100%",at.width=ot,tt?at.left=Rr:at.right=Rr):(fi.width=8,fi.top=0,fi.bottom=0,tt?fi.right=0:fi.left=0,at.width="100%",at.height=ot,at.top=Rr),ne.createElement("div",{ref:j,className:de()(Vi,(0,B.Z)((0,B.Z)((0,B.Z)({},"".concat(Vi,"-horizontal"),ct),"".concat(Vi,"-vertical"),!ct),"".concat(Vi,"-visible"),Ti)),style:(0,L.Z)((0,L.Z)({},fi),Et),onMouseDown:Ar,onMouseMove:_},ne.createElement("div",{ref:Oi,className:de()("".concat(Vi,"-thumb"),(0,B.Z)({},"".concat(Vi,"-thumb-moving"),vn)),style:(0,L.Z)((0,L.Z)({},at),Gt),onMouseDown:Dr}))}),vt=Kt,hn=20;function Rt(){var D=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,G=D/k*D;return isNaN(G)&&(G=0),G=Math.max(G,hn),Math.floor(G)}var hi=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],yt=[],si={overflowY:"auto",overflowAnchor:"none"};function qn(D,k){var G=D.prefixCls,X=G===void 0?"rc-virtual-list":G,T=D.className,Re=D.height,mt=D.itemHeight,_e=D.fullHeight,Le=_e===void 0?!0:_e,ct=D.style,ot=D.data,Ze=D.children,Et=D.itemKey,Gt=D.virtual,Vt=D.direction,Pt=D.scrollWidth,nn=D.component,vn=nn===void 0?"div":nn,We=D.onScroll,Dt=D.onVirtualScroll,Qt=D.onVisibleChange,bn=D.innerProps,$n=D.extraRender,Un=D.styles,kt=D.showScrollBar,Hn=kt===void 0?"optional":kt,Jn=(0,Q.Z)(D,hi),tt=ne.useCallback(function(Ri){return typeof Et=="function"?Et(Ri):Ri==null?void 0:Ri[Et]},[Et]),j=xt(tt,null,null),Oi=(0,V.Z)(j,4),tr=Oi[0],Gn=Oi[1],Ti=Oi[2],Er=Oi[3],Zi=!!(Gt!==!1&&Re&&mt),_=ne.useMemo(function(){return Object.values(Ti.maps).reduce(function(Ri,$i){return Ri+$i},0)},[Ti.id,Ti.maps]),ht=Zi&&ot&&(Math.max(mt*ot.length,_)>Re||!!Pt),_i=Vt==="rtl",Rr=de()(X,(0,B.Z)({},"".concat(X,"-rtl"),_i),T),Ar=ot||yt,Yr=(0,ne.useRef)(),Dr=(0,ne.useRef)(),Hr=(0,ne.useRef)(),dr=(0,ne.useState)(0),Vi=(0,V.Z)(dr,2),fi=Vi[0],at=Vi[1],Fn=(0,ne.useState)(0),Qn=(0,V.Z)(Fn,2),ft=Qn[0],je=Qn[1],sn=(0,ne.useState)(!1),In=(0,V.Z)(sn,2),ni=In[0],Kn=In[1],ut=function(){Kn(!0)},yn=function(){Kn(!1)},rn={getKey:tt};function Si(Ri){at(function($i){var zi;typeof Ri=="function"?zi=Ri($i):zi=Ri;var Pr=wt(zi);return Yr.current.scrollTop=Pr,Pr})}var Zt=(0,ne.useRef)({start:0,end:Ar.length}),_n=(0,ne.useRef)(),Mt=we(Ar,tt),Jt=(0,V.Z)(Mt,1),on=Jt[0];_n.current=on;var jt=ne.useMemo(function(){if(!Zi)return{scrollHeight:void 0,start:0,end:Ar.length-1,offset:void 0};if(!ht){var Ri;return{scrollHeight:((Ri=Dr.current)===null||Ri===void 0?void 0:Ri.offsetHeight)||0,start:0,end:Ar.length-1,offset:void 0}}for(var $i=0,zi,Pr,Br,no=Ar.length,Po=0;Po<no;Po+=1){var mi=Ar[Po],ws=tt(mi),as=Ti.get(ws),Fo=$i+(as===void 0?mt:as);Fo>=fi&&zi===void 0&&(zi=Po,Pr=$i),Fo>fi+Re&&Br===void 0&&(Br=Po),$i=Fo}return zi===void 0&&(zi=0,Pr=0,Br=Math.ceil(Re/mt)),Br===void 0&&(Br=Ar.length-1),Br=Math.min(Br+1,Ar.length-1),{scrollHeight:$i,start:zi,end:Br,offset:Pr}},[ht,Zi,fi,Ar,Er,Re]),gn=jt.scrollHeight,fn=jt.start,En=jt.end,Ln=jt.offset;Zt.current.start=fn,Zt.current.end=En,ne.useLayoutEffect(function(){var Ri=Ti.getRecord();if(Ri.size===1){var $i=Array.from(Ri)[0],zi=tt(Ar[fn]);if(zi===$i){var Pr=Ti.get($i),Br=Pr-mt;Si(function(no){return no+Br})}}Ti.resetRecord()},[gn]);var Ai=ne.useState({width:0,height:Re}),zn=(0,V.Z)(Ai,2),ki=zn[0],ir=zn[1],lr=function($i){ir({width:$i.offsetWidth,height:$i.offsetHeight})},qt=(0,ne.useRef)(),Ki=(0,ne.useRef)(),ee=ne.useMemo(function(){return Rt(ki.width,Pt)},[ki.width,Pt]),ue=ne.useMemo(function(){return Rt(ki.height,gn)},[ki.height,gn]),Zn=gn-Re,Be=(0,ne.useRef)(Zn);Be.current=Zn;function wt(Ri){var $i=Ri;return Number.isNaN(Be.current)||($i=Math.min($i,Be.current)),$i=Math.max($i,0),$i}var Ni=fi<=0,Dn=fi>=Zn,Gi=ft<=0,Xt=ft>=Pt,Ii=Ae(Ni,Dn,Gi,Xt),Yt=function(){return{x:_i?-ft:ft,y:fi}},Wi=(0,ne.useRef)(Yt()),Zr=(0,re.useEvent)(function(Ri){if(Dt){var $i=(0,L.Z)((0,L.Z)({},Yt()),Ri);(Wi.current.x!==$i.x||Wi.current.y!==$i.y)&&(Dt($i),Wi.current=$i)}});function It(Ri,$i){var zi=Ri;$i?((0,it.flushSync)(function(){je(zi)}),Zr()):Si(zi)}function fo(Ri){var $i=Ri.currentTarget.scrollTop;$i!==fi&&Si($i),We==null||We(Ri),Zr()}var tn=function($i){var zi=$i,Pr=Pt?Pt-ki.width:0;return zi=Math.max(zi,0),zi=Math.min(zi,Pr),zi},Fi=(0,re.useEvent)(function(Ri,$i){$i?((0,it.flushSync)(function(){je(function(zi){var Pr=zi+(_i?-Ri:Ri);return tn(Pr)})}),Zr()):Si(function(zi){var Pr=zi+Ri;return Pr})}),Li=Te(Zi,Ni,Dn,Gi,Xt,!!Pt,Fi),Nt=(0,V.Z)(Li,2),Nr=Nt[0],ii=Nt[1];St(Zi,Yr,function(Ri,$i,zi,Pr){var Br=Pr;return Ii(Ri,$i,zi)?!1:!Br||!Br._virtualHandled?(Br&&(Br._virtualHandled=!0),Nr({preventDefault:function(){},deltaX:Ri?$i:0,deltaY:Ri?0:$i}),!0):!1}),oe(ht,Yr,function(Ri){Si(function($i){return $i+Ri})}),(0,De.Z)(function(){function Ri(zi){var Pr=Ni&&zi.detail<0,Br=Dn&&zi.detail>0;Zi&&!Pr&&!Br&&zi.preventDefault()}var $i=Yr.current;return $i.addEventListener("wheel",Nr,{passive:!1}),$i.addEventListener("DOMMouseScroll",ii,{passive:!0}),$i.addEventListener("MozMousePixelScroll",Ri,{passive:!1}),function(){$i.removeEventListener("wheel",Nr),$i.removeEventListener("DOMMouseScroll",ii),$i.removeEventListener("MozMousePixelScroll",Ri)}},[Zi,Ni,Dn]),(0,De.Z)(function(){if(Pt){var Ri=tn(ft);je(Ri),Zr({x:Ri})}},[ki.width,Pt]);var ce=function(){var $i,zi;($i=qt.current)===null||$i===void 0||$i.delayHidden(),(zi=Ki.current)===null||zi===void 0||zi.delayHidden()},br=Ot(Yr,Ar,Ti,mt,tt,function(){return Gn(!0)},Si,ce);ne.useImperativeHandle(k,function(){return{nativeElement:Hr.current,getScrollInfo:Yt,scrollTo:function($i){function zi(Pr){return Pr&&(0,I.Z)(Pr)==="object"&&("left"in Pr||"top"in Pr)}zi($i)?($i.left!==void 0&&je(tn($i.left)),br($i.top)):br($i)}}}),(0,De.Z)(function(){if(Qt){var Ri=Ar.slice(fn,En+1);Qt(Ri,Ar)}},[fn,En,Ar]);var to=$e(Ar,tt,Ti,mt),mr=$n==null?void 0:$n({start:fn,end:En,virtual:ht,offsetX:ft,offsetY:Ln,rtl:_i,getSize:to}),Xr=ze(Ar,fn,En,Pt,ft,tr,Ze,rn),qi=null;Re&&(qi=(0,L.Z)((0,B.Z)({},Le?"height":"maxHeight",Re),si),Zi&&(qi.overflowY="hidden",Pt&&(qi.overflowX="hidden"),ni&&(qi.pointerEvents="none")));var zr={};return _i&&(zr.dir="rtl"),ne.createElement("div",(0,b.Z)({ref:Hr,style:(0,L.Z)((0,L.Z)({},ct),{},{position:"relative"}),className:Rr},zr,Jn),ne.createElement(he.Z,{onResize:lr},ne.createElement(vn,{className:"".concat(X,"-holder"),style:qi,ref:Yr,onScroll:fo,onMouseEnter:ce},ne.createElement(Ie,{prefixCls:X,height:gn,offsetX:ft,offsetY:Ln,scrollWidth:Pt,onInnerResize:Gn,ref:Dr,innerProps:bn,rtl:_i,extra:mr},Xr))),ht&&gn>Re&&ne.createElement(vt,{ref:qt,prefixCls:X,scrollOffset:fi,scrollRange:gn,rtl:_i,onScroll:It,onStartMove:ut,onStopMove:yn,spinSize:ue,containerSize:ki.height,style:Un==null?void 0:Un.verticalScrollBar,thumbStyle:Un==null?void 0:Un.verticalScrollBarThumb,showScrollBar:Hn}),ht&&Pt>ki.width&&ne.createElement(vt,{ref:Ki,prefixCls:X,scrollOffset:ft,scrollRange:Pt,rtl:_i,onScroll:It,onStartMove:ut,onStopMove:yn,spinSize:ee,containerSize:ki.width,horizontal:!0,style:Un==null?void 0:Un.horizontalScrollBar,thumbStyle:Un==null?void 0:Un.horizontalScrollBarThumb,showScrollBar:Hn}))}var ln=ne.forwardRef(qn);ln.displayName="List";var Tn=ln,xe=Tn},77596:function(J,C,d){"use strict";d.d(C,{Z:function(){return oe}});var b=d(37061),I=d(26407),L=d(400),B=d(59301),V=d(92413);function Q(H,Ot){var Kt=Object.keys(H);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(H);Ot&&(vt=vt.filter(function(hn){return Object.getOwnPropertyDescriptor(H,hn).enumerable})),Kt.push.apply(Kt,vt)}return Kt}function M(H){for(var Ot=1;Ot<arguments.length;Ot++){var Kt=arguments[Ot]!=null?arguments[Ot]:{};Ot%2?Q(Object(Kt),!0).forEach(function(vt){(0,L.Z)(H,vt,Kt[vt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(Kt)):Q(Object(Kt)).forEach(function(vt){Object.defineProperty(H,vt,Object.getOwnPropertyDescriptor(Kt,vt))})}return H}function de(H){var Ot=H.length;if(Ot===0||Ot===1)return H;if(Ot===2)return[H[0],H[1],"".concat(H[0],".").concat(H[1]),"".concat(H[1],".").concat(H[0])];if(Ot===3)return[H[0],H[1],H[2],"".concat(H[0],".").concat(H[1]),"".concat(H[0],".").concat(H[2]),"".concat(H[1],".").concat(H[0]),"".concat(H[1],".").concat(H[2]),"".concat(H[2],".").concat(H[0]),"".concat(H[2],".").concat(H[1]),"".concat(H[0],".").concat(H[1],".").concat(H[2]),"".concat(H[0],".").concat(H[2],".").concat(H[1]),"".concat(H[1],".").concat(H[0],".").concat(H[2]),"".concat(H[1],".").concat(H[2],".").concat(H[0]),"".concat(H[2],".").concat(H[0],".").concat(H[1]),"".concat(H[2],".").concat(H[1],".").concat(H[0])];if(Ot>=4)return[H[0],H[1],H[2],H[3],"".concat(H[0],".").concat(H[1]),"".concat(H[0],".").concat(H[2]),"".concat(H[0],".").concat(H[3]),"".concat(H[1],".").concat(H[0]),"".concat(H[1],".").concat(H[2]),"".concat(H[1],".").concat(H[3]),"".concat(H[2],".").concat(H[0]),"".concat(H[2],".").concat(H[1]),"".concat(H[2],".").concat(H[3]),"".concat(H[3],".").concat(H[0]),"".concat(H[3],".").concat(H[1]),"".concat(H[3],".").concat(H[2]),"".concat(H[0],".").concat(H[1],".").concat(H[2]),"".concat(H[0],".").concat(H[1],".").concat(H[3]),"".concat(H[0],".").concat(H[2],".").concat(H[1]),"".concat(H[0],".").concat(H[2],".").concat(H[3]),"".concat(H[0],".").concat(H[3],".").concat(H[1]),"".concat(H[0],".").concat(H[3],".").concat(H[2]),"".concat(H[1],".").concat(H[0],".").concat(H[2]),"".concat(H[1],".").concat(H[0],".").concat(H[3]),"".concat(H[1],".").concat(H[2],".").concat(H[0]),"".concat(H[1],".").concat(H[2],".").concat(H[3]),"".concat(H[1],".").concat(H[3],".").concat(H[0]),"".concat(H[1],".").concat(H[3],".").concat(H[2]),"".concat(H[2],".").concat(H[0],".").concat(H[1]),"".concat(H[2],".").concat(H[0],".").concat(H[3]),"".concat(H[2],".").concat(H[1],".").concat(H[0]),"".concat(H[2],".").concat(H[1],".").concat(H[3]),"".concat(H[2],".").concat(H[3],".").concat(H[0]),"".concat(H[2],".").concat(H[3],".").concat(H[1]),"".concat(H[3],".").concat(H[0],".").concat(H[1]),"".concat(H[3],".").concat(H[0],".").concat(H[2]),"".concat(H[3],".").concat(H[1],".").concat(H[0]),"".concat(H[3],".").concat(H[1],".").concat(H[2]),"".concat(H[3],".").concat(H[2],".").concat(H[0]),"".concat(H[3],".").concat(H[2],".").concat(H[1]),"".concat(H[0],".").concat(H[1],".").concat(H[2],".").concat(H[3]),"".concat(H[0],".").concat(H[1],".").concat(H[3],".").concat(H[2]),"".concat(H[0],".").concat(H[2],".").concat(H[1],".").concat(H[3]),"".concat(H[0],".").concat(H[2],".").concat(H[3],".").concat(H[1]),"".concat(H[0],".").concat(H[3],".").concat(H[1],".").concat(H[2]),"".concat(H[0],".").concat(H[3],".").concat(H[2],".").concat(H[1]),"".concat(H[1],".").concat(H[0],".").concat(H[2],".").concat(H[3]),"".concat(H[1],".").concat(H[0],".").concat(H[3],".").concat(H[2]),"".concat(H[1],".").concat(H[2],".").concat(H[0],".").concat(H[3]),"".concat(H[1],".").concat(H[2],".").concat(H[3],".").concat(H[0]),"".concat(H[1],".").concat(H[3],".").concat(H[0],".").concat(H[2]),"".concat(H[1],".").concat(H[3],".").concat(H[2],".").concat(H[0]),"".concat(H[2],".").concat(H[0],".").concat(H[1],".").concat(H[3]),"".concat(H[2],".").concat(H[0],".").concat(H[3],".").concat(H[1]),"".concat(H[2],".").concat(H[1],".").concat(H[0],".").concat(H[3]),"".concat(H[2],".").concat(H[1],".").concat(H[3],".").concat(H[0]),"".concat(H[2],".").concat(H[3],".").concat(H[0],".").concat(H[1]),"".concat(H[2],".").concat(H[3],".").concat(H[1],".").concat(H[0]),"".concat(H[3],".").concat(H[0],".").concat(H[1],".").concat(H[2]),"".concat(H[3],".").concat(H[0],".").concat(H[2],".").concat(H[1]),"".concat(H[3],".").concat(H[1],".").concat(H[0],".").concat(H[2]),"".concat(H[3],".").concat(H[1],".").concat(H[2],".").concat(H[0]),"".concat(H[3],".").concat(H[2],".").concat(H[0],".").concat(H[1]),"".concat(H[3],".").concat(H[2],".").concat(H[1],".").concat(H[0])]}var he={};function re(H){if(H.length===0||H.length===1)return H;var Ot=H.join(".");return he[Ot]||(he[Ot]=de(H)),he[Ot]}function De(H){var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Kt=arguments.length>2?arguments[2]:void 0,vt=H.filter(function(Rt){return Rt!=="token"}),hn=re(vt);return hn.reduce(function(Rt,hi){return M(M({},Rt),Kt[hi])},Ot)}function ne(H){return H.join(" ")}function it(H,Ot){var Kt=0;return function(vt){return Kt+=1,vt.map(function(hn,Rt){return Ue({node:hn,stylesheet:H,useInlineStyles:Ot,key:"code-segment-".concat(Kt,"-").concat(Rt)})})}}function Ue(H){var Ot=H.node,Kt=H.stylesheet,vt=H.style,hn=vt===void 0?{}:vt,Rt=H.useInlineStyles,hi=H.key,yt=Ot.properties,si=Ot.type,qn=Ot.tagName,ln=Ot.value;if(si==="text")return ln;if(qn){var Tn=it(Kt,Rt),xe;if(!Rt)xe=M(M({},yt),{},{className:ne(yt.className)});else{var D=Object.keys(Kt).reduce(function(T,Re){return Re.split(".").forEach(function(mt){T.includes(mt)||T.push(mt)}),T},[]),k=yt.className&&yt.className.includes("token")?["token"]:[],G=yt.className&&k.concat(yt.className.filter(function(T){return!D.includes(T)}));xe=M(M({},yt),{},{className:ne(G)||void 0,style:De(yt.className,Object.assign({},yt.style,hn),Kt)})}var X=Tn(Ot.children);return B.createElement(qn,(0,V.Z)({key:hi},xe),X)}}var Ie=function(H,Ot){var Kt=H.listLanguages();return Kt.indexOf(Ot)!==-1},Pe=["language","children","style","customStyle","codeTagProps","useInlineStyles","showLineNumbers","showInlineLineNumbers","startingLineNumber","lineNumberContainerStyle","lineNumberStyle","wrapLines","wrapLongLines","lineProps","renderer","PreTag","CodeTag","code","astGenerator"];function ze(H,Ot){var Kt=Object.keys(H);if(Object.getOwnPropertySymbols){var vt=Object.getOwnPropertySymbols(H);Ot&&(vt=vt.filter(function(hn){return Object.getOwnPropertyDescriptor(H,hn).enumerable})),Kt.push.apply(Kt,vt)}return Kt}function Ee(H){for(var Ot=1;Ot<arguments.length;Ot++){var Kt=arguments[Ot]!=null?arguments[Ot]:{};Ot%2?ze(Object(Kt),!0).forEach(function(vt){(0,L.Z)(H,vt,Kt[vt])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(Kt)):ze(Object(Kt)).forEach(function(vt){Object.defineProperty(H,vt,Object.getOwnPropertyDescriptor(Kt,vt))})}return H}var fe=/\n/g;function we(H){return H.match(fe)}function pe(H){var Ot=H.lines,Kt=H.startingLineNumber,vt=H.style;return Ot.map(function(hn,Rt){var hi=Rt+Kt;return B.createElement("span",{key:"line-".concat(Rt),className:"react-syntax-highlighter-line-number",style:typeof vt=="function"?vt(hi):vt},"".concat(hi,`
|
|
|
`))})}function Ne(H){var Ot=H.codeString,Kt=H.codeStyle,vt=H.containerStyle,hn=vt===void 0?{float:"left",paddingRight:"10px"}:vt,Rt=H.numberStyle,hi=Rt===void 0?{}:Rt,yt=H.startingLineNumber;return B.createElement("code",{style:Object.assign({},Kt,hn)},pe({lines:Ot.replace(/\n$/,"").split(`
|
|
|
`),style:hi,startingLineNumber:yt}))}function te(H){return"".concat(H.toString().length,".25em")}function Ae(H,Ot){return{type:"element",tagName:"span",properties:{key:"line-number--".concat(H),className:["comment","linenumber","react-syntax-highlighter-line-number"],style:Ot},children:[{type:"text",value:H}]}}function Te(H,Ot,Kt){var vt={display:"inline-block",minWidth:te(Kt),paddingRight:"1em",textAlign:"right",userSelect:"none"},hn=typeof H=="function"?H(Ot):H,Rt=Ee(Ee({},vt),hn);return Rt}function $e(H){var Ot=H.children,Kt=H.lineNumber,vt=H.lineNumberStyle,hn=H.largestLineNumber,Rt=H.showInlineLineNumbers,hi=H.lineProps,yt=hi===void 0?{}:hi,si=H.className,qn=si===void 0?[]:si,ln=H.showLineNumbers,Tn=H.wrapLongLines,xe=H.wrapLines,D=xe===void 0?!1:xe,k=D?Ee({},typeof yt=="function"?yt(Kt):yt):{};if(k.className=k.className?[].concat((0,I.Z)(k.className.trim().split(/\s+/)),(0,I.Z)(qn)):qn,Kt&&Rt){var G=Te(vt,Kt,hn);Ot.unshift(Ae(Kt,G))}return Tn&ln&&(k.style=Ee({display:"flex"},k.style)),{type:"element",tagName:"span",properties:k,children:Ot}}function Qe(H){for(var Ot=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],vt=0;vt<H.length;vt++){var hn=H[vt];if(hn.type==="text")Kt.push($e({children:[hn],className:(0,I.Z)(new Set(Ot))}));else if(hn.children){var Rt=Ot.concat(hn.properties.className);Qe(hn.children,Rt).forEach(function(hi){return Kt.push(hi)})}}return Kt}function Je(H,Ot,Kt,vt,hn,Rt,hi,yt,si){var qn,ln=Qe(H.value),Tn=[],xe=-1,D=0;function k(Le,ct){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return $e({children:Le,lineNumber:ct,lineNumberStyle:yt,largestLineNumber:hi,showInlineLineNumbers:hn,lineProps:Kt,className:ot,showLineNumbers:vt,wrapLongLines:si,wrapLines:Ot})}function G(Le,ct){if(vt&&ct&&hn){var ot=Te(yt,ct,hi);Le.unshift(Ae(ct,ot))}return Le}function X(Le,ct){var ot=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];return Ot||ot.length>0?k(Le,ct,ot):G(Le,ct)}for(var T=function(){var ct=ln[D],ot=ct.children[0].value,Ze=we(ot);if(Ze){var Et=ot.split(`
|
|
|
`);Et.forEach(function(Gt,Vt){var Pt=vt&&Tn.length+Rt,nn={type:"text",value:"".concat(Gt,`
|
|
|
`)};if(Vt===0){var vn=ln.slice(xe+1,D).concat($e({children:[nn],className:ct.properties.className})),We=X(vn,Pt);Tn.push(We)}else if(Vt===Et.length-1){var Dt=ln[D+1]&&ln[D+1].children&&ln[D+1].children[0],Qt={type:"text",value:"".concat(Gt)};if(Dt){var bn=$e({children:[Qt],className:ct.properties.className});ln.splice(D+1,0,bn)}else{var $n=[Qt],Un=X($n,Pt,ct.properties.className);Tn.push(Un)}}else{var kt=[nn],Hn=X(kt,Pt,ct.properties.className);Tn.push(Hn)}}),xe=D}D++};D<ln.length;)T();if(xe!==ln.length-1){var Re=ln.slice(xe+1,ln.length);if(Re&&Re.length){var mt=vt&&Tn.length+Rt,_e=X(Re,mt);Tn.push(_e)}}return Ot?Tn:(qn=[]).concat.apply(qn,Tn)}function Ce(H){var Ot=H.rows,Kt=H.stylesheet,vt=H.useInlineStyles;return Ot.map(function(hn,Rt){return Ue({node:hn,stylesheet:Kt,useInlineStyles:vt,key:"code-segement".concat(Rt)})})}function dt(H){return H&&typeof H.highlightAuto!="undefined"}function Xe(H){var Ot=H.astGenerator,Kt=H.language,vt=H.code,hn=H.defaultCodeValue;if(dt(Ot)){var Rt=Ie(Ot,Kt);return Kt==="text"?{value:hn,language:"text"}:Rt?Ot.highlight(Kt,vt):Ot.highlightAuto(vt)}try{return Kt&&Kt!=="text"?{value:Ot.highlight(vt,Kt)}:{value:hn}}catch(hi){return{value:hn}}}function $t(H,Ot){return function(vt){var hn=vt.language,Rt=vt.children,hi=vt.style,yt=hi===void 0?Ot:hi,si=vt.customStyle,qn=si===void 0?{}:si,ln=vt.codeTagProps,Tn=ln===void 0?{className:hn?"language-".concat(hn):void 0,style:Ee(Ee({},yt['code[class*="language-"]']),yt['code[class*="language-'.concat(hn,'"]')])}:ln,xe=vt.useInlineStyles,D=xe===void 0?!0:xe,k=vt.showLineNumbers,G=k===void 0?!1:k,X=vt.showInlineLineNumbers,T=X===void 0?!0:X,Re=vt.startingLineNumber,mt=Re===void 0?1:Re,_e=vt.lineNumberContainerStyle,Le=vt.lineNumberStyle,ct=Le===void 0?{}:Le,ot=vt.wrapLines,Ze=vt.wrapLongLines,Et=Ze===void 0?!1:Ze,Gt=vt.lineProps,Vt=Gt===void 0?{}:Gt,Pt=vt.renderer,nn=vt.PreTag,vn=nn===void 0?"pre":nn,We=vt.CodeTag,Dt=We===void 0?"code":We,Qt=vt.code,bn=Qt===void 0?(Array.isArray(Rt)?Rt[0]:Rt)||"":Qt,$n=vt.astGenerator,Un=(0,b.Z)(vt,Pe);$n=$n||H;var kt=G?B.createElement(Ne,{containerStyle:_e,codeStyle:Tn.style||{},numberStyle:ct,startingLineNumber:mt,codeString:bn}):null,Hn=yt.hljs||yt['pre[class*="language-"]']||{backgroundColor:"#fff"},Jn=dt($n)?"hljs":"prismjs",tt=D?Object.assign({},Un,{style:Object.assign({},Hn,qn)}):Object.assign({},Un,{className:Un.className?"".concat(Jn," ").concat(Un.className):Jn,style:Object.assign({},qn)});if(Et?Tn.style=Ee({whiteSpace:"pre-wrap"},Tn.style):Tn.style=Ee({whiteSpace:"pre"},Tn.style),!$n)return B.createElement(vn,tt,kt,B.createElement(Dt,Tn,bn));(ot===void 0&&Pt||Et)&&(ot=!0),Pt=Pt||Ce;var j=[{type:"text",value:bn}],Oi=Xe({astGenerator:$n,language:hn,code:bn,defaultCodeValue:j});Oi.language===null&&(Oi.value=j);var tr=Oi.value.length;tr===1&&Oi.value[0].type==="text"&&(tr=Oi.value[0].value.split(`
|
|
|
`).length);var Gn=tr+mt,Ti=Je(Oi,ot,Vt,G,T,mt,Gn,ct,Et);return B.createElement(vn,tt,B.createElement(Dt,Tn,!T&&kt,Pt({rows:Ti,stylesheet:yt,useInlineStyles:D})))}}var xt={'code[class*="language-"]':{color:"black",background:"none",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]':{color:"black",background:"#f5f2f0",textShadow:"0 1px white",fontFamily:"Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace",fontSize:"1em",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",wordWrap:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto"},'pre[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::-moz-selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'pre[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"]::selection':{textShadow:"none",background:"#b3d4fc"},'code[class*="language-"] ::selection':{textShadow:"none",background:"#b3d4fc"},':not(pre) > code[class*="language-"]':{background:"#f5f2f0",padding:".1em",borderRadius:".3em",whiteSpace:"normal"},comment:{color:"slategray"},prolog:{color:"slategray"},doctype:{color:"slategray"},cdata:{color:"slategray"},punctuation:{color:"#999"},namespace:{Opacity:".7"},property:{color:"#905"},tag:{color:"#905"},boolean:{color:"#905"},number:{color:"#905"},constant:{color:"#905"},symbol:{color:"#905"},deleted:{color:"#905"},selector:{color:"#690"},"attr-name":{color:"#690"},string:{color:"#690"},char:{color:"#690"},builtin:{color:"#690"},inserted:{color:"#690"},operator:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},entity:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)",cursor:"help"},url:{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".language-css .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},".style .token.string":{color:"#9a6e3a",background:"hsla(0, 0%, 100%, .5)"},atrule:{color:"#07a"},"attr-value":{color:"#07a"},keyword:{color:"#07a"},function:{color:"#DD4A68"},"class-name":{color:"#DD4A68"},regex:{color:"#e90"},important:{color:"#e90",fontWeight:"bold"},variable:{color:"#e90"},bold:{fontWeight:"bold"},italic:{fontStyle:"italic"}},At=d(11594),St=d.n(At),Cn=["abap","abnf","actionscript","ada","agda","al","antlr4","apacheconf","apex","apl","applescript","aql","arduino","arff","asciidoc","asm6502","asmatmel","aspnet","autohotkey","autoit","avisynth","avro-idl","bash","basic","batch","bbcode","bicep","birb","bison","bnf","brainfuck","brightscript","bro","bsl","c","cfscript","chaiscript","cil","clike","clojure","cmake","cobol","coffeescript","concurnas","coq","cpp","crystal","csharp","cshtml","csp","css-extras","css","csv","cypher","d","dart","dataweave","dax","dhall","diff","django","dns-zone-file","docker","dot","ebnf","editorconfig","eiffel","ejs","elixir","elm","erb","erlang","etlua","excel-formula","factor","false","firestore-security-rules","flow","fortran","fsharp","ftl","gap","gcode","gdscript","gedcom","gherkin","git","glsl","gml","gn","go-module","go","graphql","groovy","haml","handlebars","haskell","haxe","hcl","hlsl","hoon","hpkp","hsts","http","ichigojam","icon","icu-message-format","idris","iecst","ignore","inform7","ini","io","j","java","javadoc","javadoclike","javascript","javastacktrace","jexl","jolie","jq","js-extras","js-templates","jsdoc","json","json5","jsonp","jsstacktrace","jsx","julia","keepalived","keyman","kotlin","kumir","kusto","latex","latte","less","lilypond","liquid","lisp","livescript","llvm","log","lolcode","lua","magma","makefile","markdown","markup-templating","markup","matlab","maxscript","mel","mermaid","mizar","mongodb","monkey","moonscript","n1ql","n4js","nand2tetris-hdl","naniscript","nasm","neon","nevod","nginx","nim","nix","nsis","objectivec","ocaml","opencl","openqasm","oz","parigp","parser","pascal","pascaligo","pcaxis","peoplecode","perl","php-extras","php","phpdoc","plsql","powerquery","powershell","processing","prolog","promql","properties","protobuf","psl","pug","puppet","pure","purebasic","purescript","python","q","qml","qore","qsharp","r","racket","reason","regex","rego","renpy","rest","rip","roboconf","robotframework","ruby","rust","sas","sass","scala","scheme","scss","shell-session","smali","smalltalk","smarty","sml","solidity","solution-file","soy","sparql","splunk-spl","sqf","sql","squirrel","stan","stylus","swift","systemd","t4-cs","t4-templating","t4-vb","tap","tcl","textile","toml","tremor","tsx","tt2","turtle","twig","typescript","typoscript","unrealscript","uorazor","uri","v","vala","vbnet","velocity","verilog","vhdl","vim","visual-basic","warpscript","wasm","web-idl","wiki","wolfram","wren","xeora","xml-doc","xojo","xquery","yaml","yang","zig"],Ye=$t(St(),xt);Ye.supportedLanguages=Cn;var oe=Ye},14179:function(J,C){"use strict";C.Z={'pre[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none",padding:"1em",margin:".5em 0",overflow:"auto",background:"#1e1e1e"},'code[class*="language-"]':{color:"#d4d4d4",fontSize:"13px",textShadow:"none",fontFamily:'Menlo, Monaco, Consolas, "Andale Mono", "Ubuntu Mono", "Courier New", monospace',direction:"ltr",textAlign:"left",whiteSpace:"pre",wordSpacing:"normal",wordBreak:"normal",lineHeight:"1.5",MozTabSize:"4",OTabSize:"4",tabSize:"4",WebkitHyphens:"none",MozHyphens:"none",msHyphens:"none",hyphens:"none"},'pre[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"]::selection':{textShadow:"none",background:"#264F78"},'pre[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},'code[class*="language-"] *::selection':{textShadow:"none",background:"#264F78"},':not(pre) > code[class*="language-"]':{padding:".1em .3em",borderRadius:".3em",color:"#db4c69",background:"#1e1e1e"},".namespace":{Opacity:".7"},"doctype.doctype-tag":{color:"#569CD6"},"doctype.name":{color:"#9cdcfe"},comment:{color:"#6a9955"},prolog:{color:"#6a9955"},punctuation:{color:"#d4d4d4"},".language-html .language-css .token.punctuation":{color:"#d4d4d4"},".language-html .language-javascript .token.punctuation":{color:"#d4d4d4"},property:{color:"#9cdcfe"},tag:{color:"#569cd6"},boolean:{color:"#569cd6"},number:{color:"#b5cea8"},constant:{color:"#9cdcfe"},symbol:{color:"#b5cea8"},inserted:{color:"#b5cea8"},unit:{color:"#b5cea8"},selector:{color:"#d7ba7d"},"attr-name":{color:"#9cdcfe"},string:{color:"#ce9178"},char:{color:"#ce9178"},builtin:{color:"#ce9178"},deleted:{color:"#ce9178"},".language-css .token.string.url":{textDecoration:"underline"},operator:{color:"#d4d4d4"},entity:{color:"#569cd6"},"operator.arrow":{color:"#569CD6"},atrule:{color:"#ce9178"},"atrule.rule":{color:"#c586c0"},"atrule.url":{color:"#9cdcfe"},"atrule.url.function":{color:"#dcdcaa"},"atrule.url.punctuation":{color:"#d4d4d4"},keyword:{color:"#569CD6"},"keyword.module":{color:"#c586c0"},"keyword.control-flow":{color:"#c586c0"},function:{color:"#dcdcaa"},"function.maybe-class-name":{color:"#dcdcaa"},regex:{color:"#d16969"},important:{color:"#569cd6"},italic:{fontStyle:"italic"},"class-name":{color:"#4ec9b0"},"maybe-class-name":{color:"#4ec9b0"},console:{color:"#9cdcfe"},parameter:{color:"#9cdcfe"},interpolation:{color:"#9cdcfe"},"punctuation.interpolation-punctuation":{color:"#569cd6"},variable:{color:"#9cdcfe"},"imports.maybe-class-name":{color:"#9cdcfe"},"exports.maybe-class-name":{color:"#9cdcfe"},escape:{color:"#d7ba7d"},"tag.punctuation":{color:"#808080"},cdata:{color:"#808080"},"attr-value":{color:"#ce9178"},"attr-value.punctuation":{color:"#ce9178"},"attr-value.punctuation.attr-equals":{color:"#d4d4d4"},namespace:{color:"#4ec9b0"},'pre[class*="language-javascript"]':{color:"#9cdcfe"},'code[class*="language-javascript"]':{color:"#9cdcfe"},'pre[class*="language-jsx"]':{color:"#9cdcfe"},'code[class*="language-jsx"]':{color:"#9cdcfe"},'pre[class*="language-typescript"]':{color:"#9cdcfe"},'code[class*="language-typescript"]':{color:"#9cdcfe"},'pre[class*="language-tsx"]':{color:"#9cdcfe"},'code[class*="language-tsx"]':{color:"#9cdcfe"},'pre[class*="language-css"]':{color:"#ce9178"},'code[class*="language-css"]':{color:"#ce9178"},'pre[class*="language-html"]':{color:"#d4d4d4"},'code[class*="language-html"]':{color:"#d4d4d4"},".language-regex .token.anchor":{color:"#dcdcaa"},".language-html .token.punctuation":{color:"#808080"},'pre[class*="language-"] > code[class*="language-"]':{position:"relative",zIndex:"1"},".line-highlight.line-highlight":{background:"#f7ebc6",boxShadow:"inset 5px 0 0 #f7d87c",zIndex:"0"}}},19524:function(J,C,d){"use strict";d(84126);var b=d(59301),I=60103;if(C.Fragment=60107,typeof Symbol=="function"&&Symbol.for){var L=Symbol.for;I=L("react.element"),C.Fragment=L("react.fragment")}var B=b.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,V=Object.prototype.hasOwnProperty,Q={key:!0,ref:!0,__self:!0,__source:!0};function M(de,he,re){var De,ne={},it=null,Ue=null;re!==void 0&&(it=""+re),he.key!==void 0&&(it=""+he.key),he.ref!==void 0&&(Ue=he.ref);for(De in he)V.call(he,De)&&!Q.hasOwnProperty(De)&&(ne[De]=he[De]);if(de&&de.defaultProps)for(De in he=de.defaultProps,he)ne[De]===void 0&&(ne[De]=he[De]);return{$$typeof:I,type:de,key:it,ref:Ue,props:ne,_owner:B.current}}C.jsx=M,C.jsxs=M},37712:function(J,C,d){"use strict";J.exports=d(19524)},95489:function(J,C,d){"use strict";var b=typeof globalThis=="object"?globalThis:typeof self=="object"?self:typeof window=="object"?window:typeof d.g=="object"?d.g:{},I=Ne();b.Prism={manual:!0,disableWorkerMessageHandler:!0};var L=d(43621),B=d(12256),V=d(68398),Q=d(70614),M=d(54212),de=d(9720),he=d(88786);I();var re={}.hasOwnProperty;function De(){}De.prototype=V;var ne=new De;J.exports=ne,ne.highlight=Ie,ne.register=it,ne.alias=Ue,ne.registered=Pe,ne.listLanguages=ze,it(Q),it(M),it(de),it(he),ne.util.encode=we,ne.Token.stringify=Ee;function it(te){if(typeof te!="function"||!te.displayName)throw new Error("Expected `function` for `grammar`, got `"+te+"`");ne.languages[te.displayName]===void 0&&te(ne)}function Ue(te,Ae){var Te=ne.languages,$e=te,Qe,Je,Ce,dt;Ae&&($e={},$e[te]=Ae);for(Qe in $e)for(Je=$e[Qe],Je=typeof Je=="string"?[Je]:Je,Ce=Je.length,dt=-1;++dt<Ce;)Te[Je[dt]]=Te[Qe]}function Ie(te,Ae){var Te=V.highlight,$e;if(typeof te!="string")throw new Error("Expected `string` for `value`, got `"+te+"`");if(ne.util.type(Ae)==="Object")$e=Ae,Ae=null;else{if(typeof Ae!="string")throw new Error("Expected `string` for `name`, got `"+Ae+"`");if(re.call(ne.languages,Ae))$e=ne.languages[Ae];else throw new Error("Unknown language: `"+Ae+"` is not registered")}return Te.call(this,te,$e,Ae)}function Pe(te){if(typeof te!="string")throw new Error("Expected `string` for `language`, got `"+te+"`");return re.call(ne.languages,te)}function ze(){var te=ne.languages,Ae=[],Te;for(Te in te)re.call(te,Te)&&typeof te[Te]=="object"&&Ae.push(Te);return Ae}function Ee(te,Ae,Te){var $e;return typeof te=="string"?{type:"text",value:te}:ne.util.type(te)==="Array"?fe(te,Ae):($e={type:te.type,content:ne.Token.stringify(te.content,Ae,Te),tag:"span",classes:["token",te.type],attributes:{},language:Ae,parent:Te},te.alias&&($e.classes=$e.classes.concat(te.alias)),ne.hooks.run("wrap",$e),L($e.tag+"."+$e.classes.join("."),pe($e.attributes),$e.content))}function fe(te,Ae){for(var Te=[],$e=te.length,Qe=-1,Je;++Qe<$e;)Je=te[Qe],Je!==""&&Je!==null&&Je!==void 0&&Te.push(Je);for(Qe=-1,$e=Te.length;++Qe<$e;)Je=Te[Qe],Te[Qe]=ne.Token.stringify(Je,Ae,Te);return Te}function we(te){return te}function pe(te){var Ae;for(Ae in te)te[Ae]=B(te[Ae]);return te}function Ne(){var te="Prism"in b,Ae=te?b.Prism:void 0;return Te;function Te(){te?b.Prism=Ae:delete b.Prism,te=void 0,Ae=void 0}}},11594:function(J,C,d){"use strict";var b=d(95489);J.exports=b,b.register(d(79007)),b.register(d(15465)),b.register(d(42746)),b.register(d(93281)),b.register(d(95143)),b.register(d(65924)),b.register(d(65043)),b.register(d(43556)),b.register(d(14901)),b.register(d(4248)),b.register(d(17758)),b.register(d(33335)),b.register(d(17427)),b.register(d(22956)),b.register(d(56007)),b.register(d(45652)),b.register(d(33819)),b.register(d(84230)),b.register(d(20803)),b.register(d(65235)),b.register(d(52406)),b.register(d(79571)),b.register(d(3058)),b.register(d(51422)),b.register(d(1618)),b.register(d(35851)),b.register(d(51274)),b.register(d(23796)),b.register(d(13979)),b.register(d(87994)),b.register(d(47035)),b.register(d(36142)),b.register(d(85290)),b.register(d(7407)),b.register(d(79440)),b.register(d(7110)),b.register(d(73435)),b.register(d(91372)),b.register(d(63663)),b.register(d(92987)),b.register(d(91657)),b.register(d(34367)),b.register(d(35348)),b.register(d(26841)),b.register(d(87071)),b.register(d(13652)),b.register(d(87648)),b.register(d(10617)),b.register(d(5348)),b.register(d(71053)),b.register(d(69820)),b.register(d(41929)),b.register(d(51837)),b.register(d(4182)),b.register(d(22117)),b.register(d(95627)),b.register(d(34265)),b.register(d(50618)),b.register(d(32126)),b.register(d(26737)),b.register(d(90134)),b.register(d(51348)),b.register(d(60841)),b.register(d(42857)),b.register(d(81269)),b.register(d(31134)),b.register(d(83125)),b.register(d(9438)),b.register(d(27771)),b.register(d(86549)),b.register(d(37079)),b.register(d(59250)),b.register(d(81226)),b.register(d(65245)),b.register(d(25040)),b.register(d(40284)),b.register(d(39187)),b.register(d(34302)),b.register(d(90515)),b.register(d(33534)),b.register(d(9885)),b.register(d(76364)),b.register(d(56452)),b.register(d(8477)),b.register(d(58230)),b.register(d(66192)),b.register(d(81084)),b.register(d(50318)),b.register(d(95769)),b.register(d(14155)),b.register(d(92823)),b.register(d(63092)),b.register(d(21550)),b.register(d(29710)),b.register(d(2050)),b.register(d(67967)),b.register(d(29138)),b.register(d(67915)),b.register(d(54853)),b.register(d(68330)),b.register(d(76823)),b.register(d(86712)),b.register(d(72252)),b.register(d(78634)),b.register(d(43583)),b.register(d(23328)),b.register(d(74494)),b.register(d(46745)),b.register(d(22152)),b.register(d(83698)),b.register(d(26619)),b.register(d(53990)),b.register(d(7093)),b.register(d(4005)),b.register(d(53510)),b.register(d(24799)),b.register(d(97443)),b.register(d(80746)),b.register(d(17015)),b.register(d(89246)),b.register(d(487)),b.register(d(79539)),b.register(d(15628)),b.register(d(14320)),b.register(d(73222)),b.register(d(92486)),b.register(d(24103)),b.register(d(40604)),b.register(d(23109)),b.register(d(32082)),b.register(d(77674)),b.register(d(37524)),b.register(d(6658)),b.register(d(24824)),b.register(d(22776)),b.register(d(89700)),b.register(d(99296)),b.register(d(39940)),b.register(d(34973)),b.register(d(98135)),b.register(d(36907)),b.register(d(3567)),b.register(d(23763)),b.register(d(29509)),b.register(d(40472)),b.register(d(44695)),b.register(d(53885)),b.register(d(51478)),b.register(d(16928)),b.register(d(13586)),b.register(d(37164)),b.register(d(25153)),b.register(d(33245)),b.register(d(32218)),b.register(d(65626)),b.register(d(60090)),b.register(d(40722)),b.register(d(37783)),b.register(d(41224)),b.register(d(71365)),b.register(d(42846)),b.register(d(32964)),b.register(d(78830)),b.register(d(88799)),b.register(d(66791)),b.register(d(41735)),b.register(d(13490)),b.register(d(7383)),b.register(d(66894)),b.register(d(45779)),b.register(d(27734)),b.register(d(91889)),b.register(d(55965)),b.register(d(37326)),b.register(d(92949)),b.register(d(5681)),b.register(d(70696)),b.register(d(35790)),b.register(d(25777)),b.register(d(65889)),b.register(d(53852)),b.register(d(97719)),b.register(d(63839)),b.register(d(67623)),b.register(d(32530)),b.register(d(8938)),b.register(d(55259)),b.register(d(67411)),b.register(d(15375)),b.register(d(12093)),b.register(d(83588)),b.register(d(94127)),b.register(d(21294)),b.register(d(38709)),b.register(d(15008)),b.register(d(96549)),b.register(d(5221)),b.register(d(27447)),b.register(d(73191)),b.register(d(75542)),b.register(d(50323)),b.register(d(44298)),b.register(d(9634)),b.register(d(75266)),b.register(d(48139)),b.register(d(97534)),b.register(d(90826)),b.register(d(63919)),b.register(d(68862)),b.register(d(39523)),b.register(d(31207)),b.register(d(75308)),b.register(d(45315)),b.register(d(13794)),b.register(d(41299)),b.register(d(98177)),b.register(d(48780)),b.register(d(79793)),b.register(d(52085)),b.register(d(65411)),b.register(d(84750)),b.register(d(88216)),b.register(d(66433)),b.register(d(34855)),b.register(d(12998)),b.register(d(10202)),b.register(d(41186)),b.register(d(68963)),b.register(d(5569)),b.register(d(69435)),b.register(d(42766)),b.register(d(46449)),b.register(d(89032)),b.register(d(40241)),b.register(d(24812)),b.register(d(16747)),b.register(d(73584)),b.register(d(79243)),b.register(d(31788)),b.register(d(60871)),b.register(d(21023)),b.register(d(14693)),b.register(d(8743)),b.register(d(1689)),b.register(d(69210)),b.register(d(58710)),b.register(d(60452)),b.register(d(92784)),b.register(d(36489)),b.register(d(78380)),b.register(d(10409)),b.register(d(6539)),b.register(d(82028)),b.register(d(62282)),b.register(d(55686)),b.register(d(70889)),b.register(d(37116)),b.register(d(66963)),b.register(d(21078)),b.register(d(96198)),b.register(d(17723)),b.register(d(67771)),b.register(d(30307)),b.register(d(8921)),b.register(d(13429)),b.register(d(65197)),b.register(d(88904)),b.register(d(35)),b.register(d(86095)),b.register(d(76998)),b.register(d(14409)),b.register(d(33460)),b.register(d(28108))},79007:function(J){"use strict";J.exports=C,C.displayName="abap",C.aliases=[];function C(d){d.languages.abap={comment:/^\*.*/m,string:/(`|')(?:\\.|(?!\1)[^\\\r\n])*\1/,"string-template":{pattern:/([|}])(?:\\.|[^\\|{\r\n])*(?=[|{])/,lookbehind:!0,alias:"string"},"eol-comment":{pattern:/(^|\s)".*/m,lookbehind:!0,alias:"comment"},keyword:{pattern:/(\s|\.|^)(?:SCIENTIFIC_WITH_LEADING_ZERO|SCALE_PRESERVING_SCIENTIFIC|RMC_COMMUNICATION_FAILURE|END-ENHANCEMENT-SECTION|MULTIPLY-CORRESPONDING|SUBTRACT-CORRESPONDING|VERIFICATION-MESSAGE|DIVIDE-CORRESPONDING|ENHANCEMENT-SECTION|CURRENCY_CONVERSION|RMC_SYSTEM_FAILURE|START-OF-SELECTION|MOVE-CORRESPONDING|RMC_INVALID_STATUS|CUSTOMER-FUNCTION|END-OF-DEFINITION|ENHANCEMENT-POINT|SYSTEM-EXCEPTIONS|ADD-CORRESPONDING|SCALE_PRESERVING|SELECTION-SCREEN|CURSOR-SELECTION|END-OF-SELECTION|LOAD-OF-PROGRAM|SCROLL-BOUNDARY|SELECTION-TABLE|EXCEPTION-TABLE|IMPLEMENTATIONS|PARAMETER-TABLE|RIGHT-JUSTIFIED|UNIT_CONVERSION|AUTHORITY-CHECK|LIST-PROCESSING|SIGN_AS_POSTFIX|COL_BACKGROUND|IMPLEMENTATION|INTERFACE-POOL|TRANSFORMATION|IDENTIFICATION|ENDENHANCEMENT|LINE-SELECTION|INITIALIZATION|LEFT-JUSTIFIED|SELECT-OPTIONS|SELECTION-SETS|COMMUNICATION|CORRESPONDING|DECIMAL_SHIFT|PRINT-CONTROL|VALUE-REQUEST|CHAIN-REQUEST|FUNCTION-POOL|FIELD-SYMBOLS|FUNCTIONALITY|INVERTED-DATE|SELECTION-SET|CLASS-METHODS|OUTPUT-LENGTH|CLASS-CODING|COL_NEGATIVE|ERRORMESSAGE|FIELD-GROUPS|HELP-REQUEST|NO-EXTENSION|NO-TOPOFPAGE|REDEFINITION|DISPLAY-MODE|ENDINTERFACE|EXIT-COMMAND|FIELD-SYMBOL|NO-SCROLLING|SHORTDUMP-ID|ACCESSPOLICY|CLASS-EVENTS|COL_POSITIVE|DECLARATIONS|ENHANCEMENTS|FILTER-TABLE|SWITCHSTATES|SYNTAX-CHECK|TRANSPORTING|ASYNCHRONOUS|SYNTAX-TRACE|TOKENIZATION|USER-COMMAND|WITH-HEADING|ABAP-SOURCE|BREAK-POINT|CHAIN-INPUT|COMPRESSION|FIXED-POINT|NEW-SECTION|NON-UNICODE|OCCURRENCES|RESPONSIBLE|SYSTEM-CALL|TRACE-TABLE|ABBREVIATED|CHAR-TO-HEX|END-OF-FILE|ENDFUNCTION|ENVIRONMENT|ASSOCIATION|COL_HEADING|EDITOR-CALL|END-OF-PAGE|ENGINEERING|IMPLEMENTED|INTENSIFIED|RADIOBUTTON|SYSTEM-EXIT|TOP-OF-PAGE|TRANSACTION|APPLICATION|CONCATENATE|DESTINATION|ENHANCEMENT|IMMEDIATELY|NO-GROUPING|PRECOMPILED|REPLACEMENT|TITLE-LINES|ACTIVATION|BYTE-ORDER|CLASS-POOL|CONNECTION|CONVERSION|DEFINITION|DEPARTMENT|EXPIRATION|INHERITING|MESSAGE-ID|NO-HEADING|PERFORMING|QUEUE-ONLY|RIGHTSPACE|SCIENTIFIC|STATUSINFO|STRUCTURES|SYNCPOINTS|WITH-TITLE|ATTRIBUTES|BOUNDARIES|CLASS-DATA|COL_NORMAL|DD\/MM\/YYYY|DESCENDING|INTERFACES|LINE-COUNT|MM\/DD\/YYYY|NON-UNIQUE|PRESERVING|SELECTIONS|STATEMENTS|SUBROUTINE|TRUNCATION|TYPE-POOLS|ARITHMETIC|BACKGROUND|ENDPROVIDE|EXCEPTIONS|IDENTIFIER|INDEX-LINE|OBLIGATORY|PARAMETERS|PERCENTAGE|PUSHBUTTON|RESOLUTION|COMPONENTS|DEALLOCATE|DISCONNECT|DUPLICATES|FIRST-LINE|HEAD-LINES|NO-DISPLAY|OCCURRENCE|RESPECTING|RETURNCODE|SUBMATCHES|TRACE-FILE|ASCENDING|BYPASSING|ENDMODULE|EXCEPTION|EXCLUDING|EXPORTING|INCREMENT|MATCHCODE|PARAMETER|PARTIALLY|PREFERRED|REFERENCE|REPLACING|RETURNING|SELECTION|SEPARATED|SPECIFIED|STATEMENT|TIMESTAMP|TYPE-POOL|ACCEPTING|APPENDAGE|ASSIGNING|COL_GROUP|COMPARING|CONSTANTS|DANGEROUS|IMPORTING|INSTANCES|LEFTSPACE|LOG-POINT|QUICKINFO|READ-ONLY|SCROLLING|SQLSCRIPT|STEP-LOOP|TOP-LINES|TRANSLATE|APPENDING|AUTHORITY|CHARACTER|COMPONENT|CONDITION|DIRECTORY|DUPLICATE|MESSAGING|RECEIVING|SUBSCREEN|ACCORDING|COL_TOTAL|END-LINES|ENDMETHOD|ENDSELECT|EXPANDING|EXTENSION|INCLUDING|INFOTYPES|INTERFACE|INTERVALS|LINE-SIZE|PF-STATUS|PROCEDURE|PROTECTED|REQUESTED|RESUMABLE|RIGHTPLUS|SAP-SPOOL|SECONDARY|STRUCTURE|SUBSTRING|TABLEVIEW|NUMOFCHAR|ADJACENT|ANALYSIS|ASSIGNED|BACKWARD|CHANNELS|CHECKBOX|CONTINUE|CRITICAL|DATAINFO|DD\/MM\/YY|DURATION|ENCODING|ENDCLASS|FUNCTION|LEFTPLUS|LINEFEED|MM\/DD\/YY|OVERFLOW|RECEIVED|SKIPPING|SORTABLE|STANDARD|SUBTRACT|SUPPRESS|TABSTRIP|TITLEBAR|TRUNCATE|UNASSIGN|WHENEVER|ANALYZER|COALESCE|COMMENTS|CONDENSE|DECIMALS|DEFERRED|ENDWHILE|EXPLICIT|KEYWORDS|MESSAGES|POSITION|PRIORITY|RECEIVER|RENAMING|TIMEZONE|TRAILING|ALLOCATE|CENTERED|CIRCULAR|CONTROLS|CURRENCY|DELETING|DESCRIBE|DISTANCE|ENDCATCH|EXPONENT|EXTENDED|GENERATE|IGNORING|INCLUDES|INTERNAL|MAJOR-ID|MODIFIER|NEW-LINE|OPTIONAL|PROPERTY|ROLLBACK|STARTING|SUPPLIED|ABSTRACT|CHANGING|CONTEXTS|CREATING|CUSTOMER|DATABASE|DAYLIGHT|DEFINING|DISTINCT|DIVISION|ENABLING|ENDCHAIN|ESCAPING|HARMLESS|IMPLICIT|INACTIVE|LANGUAGE|MINOR-ID|MULTIPLY|NEW-PAGE|NO-TITLE|POS_HIGH|SEPARATE|TEXTPOOL|TRANSFER|SELECTOR|DBMAXLEN|ITERATOR|ARCHIVE|BIT-XOR|BYTE-CO|COLLECT|COMMENT|CURRENT|DEFAULT|DISPLAY|ENDFORM|EXTRACT|LEADING|LISTBOX|LOCATOR|MEMBERS|METHODS|NESTING|POS_LOW|PROCESS|PROVIDE|RAISING|RESERVE|SECONDS|SUMMARY|VISIBLE|BETWEEN|BIT-AND|BYTE-CS|CLEANUP|COMPUTE|CONTROL|CONVERT|DATASET|ENDCASE|FORWARD|HEADERS|HOTSPOT|INCLUDE|INVERSE|KEEPING|NO-ZERO|OBJECTS|OVERLAY|PADDING|PATTERN|PROGRAM|REFRESH|SECTION|SUMMING|TESTING|VERSION|WINDOWS|WITHOUT|BIT-NOT|BYTE-CA|BYTE-NA|CASTING|CONTEXT|COUNTRY|DYNAMIC|ENABLED|ENDLOOP|EXECUTE|FRIENDS|HANDLER|HEADING|INITIAL|\*-INPUT|LOGFILE|MAXIMUM|MINIMUM|NO-GAPS|NO-SIGN|PRAGMAS|PRIMARY|PRIVATE|REDUCED|REPLACE|REQUEST|RESULTS|UNICODE|WARNING|ALIASES|BYTE-CN|BYTE-NS|CALLING|COL_KEY|COLUMNS|CONNECT|ENDEXEC|ENTRIES|EXCLUDE|FILTERS|FURTHER|HELP-ID|LOGICAL|MAPPING|MESSAGE|NAMETAB|OPTIONS|PACKAGE|PERFORM|RECEIVE|STATICS|VARYING|BINDING|CHARLEN|GREATER|XSTRLEN|ACCEPT|APPEND|DETAIL|ELSEIF|ENDING|ENDTRY|FORMAT|FRAMES|GIVING|HASHED|HEADER|IMPORT|INSERT|MARGIN|MODULE|NATIVE|OBJECT|OFFSET|REMOTE|RESUME|SAVING|SIMPLE|SUBMIT|TABBED|TOKENS|UNIQUE|UNPACK|UPDATE|WINDOW|YELLOW|ACTUAL|ASPECT|CENTER|CURSOR|DELETE|DIALOG|DIVIDE|DURING|ERRORS|EVENTS|EXTEND|FILTER|HANDLE|HAVING|IGNORE|LITTLE|MEMORY|NO-GAP|OCCURS|OPTION|PERSON|PLACES|PUBLIC|REDUCE|REPORT|RESULT|SINGLE|SORTED|SWITCH|SYNTAX|TARGET|VALUES|WRITER|ASSERT|BLOCKS|BOUNDS|BUFFER|CHANGE|COLUMN|COMMIT|CONCAT|COPIES|CREATE|DDMMYY|DEFINE|ENDIAN|ESCAPE|EXPAND|KERNEL|LAYOUT|LEGACY|LEVELS|MMDDYY|NUMBER|OUTPUT|RANGES|READER|RETURN|SCREEN|SEARCH|SELECT|SHARED|SOURCE|STABLE|STATIC|SUBKEY|SUFFIX|TABLES|UNWIND|YYMMDD|ASSIGN|BACKUP|BEFORE|BINARY|BIT-OR|BLANKS|CLIENT|CODING|COMMON|DEMAND|DYNPRO|EXCEPT|EXISTS|EXPORT|FIELDS|GLOBAL|GROUPS|LENGTH|LOCALE|MEDIUM|METHOD|MODIFY|NESTED|OTHERS|REJECT|SCROLL|SUPPLY|SYMBOL|ENDFOR|STRLEN|ALIGN|BEGIN|BOUND|ENDAT|ENTRY|EVENT|FINAL|FLUSH|GRANT|INNER|SHORT|USING|WRITE|AFTER|BLACK|BLOCK|CLOCK|COLOR|COUNT|DUMMY|EMPTY|ENDDO|ENDON|GREEN|INDEX|INOUT|LEAVE|LEVEL|LINES|MODIF|ORDER|OUTER|RANGE|RESET|RETRY|RIGHT|SMART|SPLIT|STYLE|TABLE|THROW|UNDER|UNTIL|UPPER|UTF-8|WHERE|ALIAS|BLANK|CLEAR|CLOSE|EXACT|FETCH|FIRST|FOUND|GROUP|LLANG|LOCAL|OTHER|REGEX|SPOOL|TITLE|TYPES|VALID|WHILE|ALPHA|BOXED|CATCH|CHAIN|CHECK|CLASS|COVER|ENDIF|EQUIV|FIELD|FLOOR|FRAME|INPUT|LOWER|MATCH|NODES|PAGES|PRINT|RAISE|ROUND|SHIFT|SPACE|SPOTS|STAMP|STATE|TASKS|TIMES|TRMAC|ULINE|UNION|VALUE|WIDTH|EQUAL|LOG10|TRUNC|BLOB|CASE|CEIL|CLOB|COND|EXIT|FILE|GAPS|HOLD|INCL|INTO|KEEP|KEYS|LAST|LINE|LONG|LPAD|MAIL|MODE|OPEN|PINK|READ|ROWS|TEST|THEN|ZERO|AREA|BACK|BADI|BYTE|CAST|EDIT|EXEC|FAIL|FIND|FKEQ|FONT|FREE|GKEQ|HIDE|INIT|ITNO|LATE|LOOP|MAIN|MARK|MOVE|NEXT|NULL|RISK|ROLE|UNIT|WAIT|ZONE|BASE|CALL|CODE|DATA|DATE|FKGE|GKGE|HIGH|KIND|LEFT|LIST|MASK|MESH|NAME|NODE|PACK|PAGE|POOL|SEND|SIGN|SIZE|SOME|STOP|TASK|TEXT|TIME|USER|VARY|WITH|WORD|BLUE|CONV|COPY|DEEP|ELSE|FORM|FROM|HINT|ICON|JOIN|LIKE|LOAD|ONLY|PART|SCAN|SKIP|SORT|TYPE|UNIX|VIEW|WHEN|WORK|ACOS|ASIN|ATAN|COSH|EACH|FRAC|LESS|RTTI|SINH|SQRT|TANH|AVG|BIT|DIV|ISO|LET|OUT|PAD|SQL|ALL|CI_|CPI|END|LOB|LPI|MAX|MIN|NEW|OLE|RUN|SET|\?TO|YES|ABS|ADD|AND|BIG|FOR|HDB|JOB|LOW|NOT|SAP|TRY|VIA|XML|ANY|GET|IDS|KEY|MOD|OFF|PUT|RAW|RED|REF|SUM|TAB|XSD|CNT|COS|EXP|LOG|SIN|TAN|XOR|AT|CO|CP|DO|GT|ID|IF|NS|OR|BT|CA|CS|GE|NA|NB|EQ|IN|LT|NE|NO|OF|ON|PF|TO|AS|BY|CN|IS|LE|NP|UP|E|I|M|O|Z|C|X)\b/i,lookbehind:!0},number:/\b\d+\b/,operator:{pattern:/(\s)(?:\*\*?|<[=>]?|>=?|\?=|[-+\/=])(?=\s)/,lookbehind:!0},"string-operator":{pattern:/(\s)&&?(?=\s)/,lookbehind:!0,alias:"keyword"},"token-operator":[{pattern:/(\w)(?:->?|=>|[~|{}])(?=\w)/,lookbehind:!0,alias:"punctuation"},{pattern:/[|{}]/,alias:"punctuation"}],punctuation:/[,.:()]/}}},15465:function(J){"use strict";J.exports=C,C.displayName="abnf",C.aliases=[];function C(d){(function(b){var I="(?:ALPHA|BIT|CHAR|CR|CRLF|CTL|DIGIT|DQUOTE|HEXDIG|HTAB|LF|LWSP|OCTET|SP|VCHAR|WSP)";b.languages.abnf={comment:/;.*/,string:{pattern:/(?:%[is])?"[^"\n\r]*"/,greedy:!0,inside:{punctuation:/^%[is]/}},range:{pattern:/%(?:b[01]+-[01]+|d\d+-\d+|x[A-F\d]+-[A-F\d]+)/i,alias:"number"},terminal:{pattern:/%(?:b[01]+(?:\.[01]+)*|d\d+(?:\.\d+)*|x[A-F\d]+(?:\.[A-F\d]+)*)/i,alias:"number"},repetition:{pattern:/(^|[^\w-])(?:\d*\*\d*|\d+)/,lookbehind:!0,alias:"operator"},definition:{pattern:/(^[ \t]*)(?:[a-z][\w-]*|<[^<>\r\n]*>)(?=\s*=)/m,lookbehind:!0,alias:"keyword",inside:{punctuation:/<|>/}},"core-rule":{pattern:RegExp("(?:(^|[^<\\w-])"+I+"|<"+I+">)(?![\\w-])","i"),lookbehind:!0,alias:["rule","constant"],inside:{punctuation:/<|>/}},rule:{pattern:/(^|[^<\w-])[a-z][\w-]*|<[^<>\r\n]*>/i,lookbehind:!0,inside:{punctuation:/<|>/}},operator:/=\/?|\//,punctuation:/[()\[\]]/}})(d)}},42746:function(J){"use strict";J.exports=C,C.displayName="actionscript",C.aliases=[];function C(d){d.languages.actionscript=d.languages.extend("javascript",{keyword:/\b(?:as|break|case|catch|class|const|default|delete|do|dynamic|each|else|extends|final|finally|for|function|get|if|implements|import|in|include|instanceof|interface|internal|is|namespace|native|new|null|override|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|use|var|void|while|with)\b/,operator:/\+\+|--|(?:[+\-*\/%^]|&&?|\|\|?|<<?|>>?>?|[!=]=?)=?|[~?@]/}),d.languages.actionscript["class-name"].alias="function",delete d.languages.actionscript.parameter,delete d.languages.actionscript["literal-property"],d.languages.markup&&d.languages.insertBefore("actionscript","string",{xml:{pattern:/(^|[^.])<\/?\w+(?:\s+[^\s>\/=]+=("|')(?:\\[\s\S]|(?!\2)[^\\])*\2)*\s*\/?>/,lookbehind:!0,inside:d.languages.markup}})}},93281:function(J){"use strict";J.exports=C,C.displayName="ada",C.aliases=[];function C(d){d.languages.ada={comment:/--.*/,string:/"(?:""|[^"\r\f\n])*"/,number:[{pattern:/\b\d(?:_?\d)*#[\dA-F](?:_?[\dA-F])*(?:\.[\dA-F](?:_?[\dA-F])*)?#(?:E[+-]?\d(?:_?\d)*)?/i},{pattern:/\b\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:E[+-]?\d(?:_?\d)*)?\b/i}],"attr-name":/\b'\w+/,keyword:/\b(?:abort|abs|abstract|accept|access|aliased|all|and|array|at|begin|body|case|constant|declare|delay|delta|digits|do|else|elsif|end|entry|exception|exit|for|function|generic|goto|if|in|interface|is|limited|loop|mod|new|not|null|of|others|out|overriding|package|pragma|private|procedure|protected|raise|range|record|rem|renames|requeue|return|reverse|select|separate|some|subtype|synchronized|tagged|task|terminate|then|type|until|use|when|while|with|xor)\b/i,boolean:/\b(?:false|true)\b/i,operator:/<[=>]?|>=?|=>?|:=|\/=?|\*\*?|[&+-]/,punctuation:/\.\.?|[,;():]/,char:/'.'/,variable:/\b[a-z](?:\w)*\b/i}}},95143:function(J){"use strict";J.exports=C,C.displayName="agda",C.aliases=[];function C(d){(function(b){b.languages.agda={comment:/\{-[\s\S]*?(?:-\}|$)|--.*/,string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},punctuation:/[(){}⦃⦄.;@]/,"class-name":{pattern:/((?:data|record) +)\S+/,lookbehind:!0},function:{pattern:/(^[ \t]*)(?!\s)[^:\r\n]+(?=:)/m,lookbehind:!0},operator:{pattern:/(^\s*|\s)(?:[=|:∀→λ\\?_]|->)(?=\s)/,lookbehind:!0},keyword:/\b(?:Set|abstract|constructor|data|eta-equality|field|forall|hiding|import|in|inductive|infix|infixl|infixr|instance|let|macro|module|mutual|no-eta-equality|open|overlap|pattern|postulate|primitive|private|public|quote|quoteContext|quoteGoal|quoteTerm|record|renaming|rewrite|syntax|tactic|unquote|unquoteDecl|unquoteDef|using|variable|where|with)\b/}})(d)}},65924:function(J){"use strict";J.exports=C,C.displayName="al",C.aliases=[];function C(d){d.languages.al={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},function:{pattern:/(\b(?:event|procedure|trigger)\s+|(?:^|[^.])\.\s*)[a-z_]\w*(?=\s*\()/i,lookbehind:!0},keyword:[/\b(?:array|asserterror|begin|break|case|do|downto|else|end|event|exit|for|foreach|function|if|implements|in|indataset|interface|internal|local|of|procedure|program|protected|repeat|runonclient|securityfiltering|suppressdispose|temporary|then|to|trigger|until|var|while|with|withevents)\b/i,/\b(?:action|actions|addafter|addbefore|addfirst|addlast|area|assembly|chartpart|codeunit|column|controladdin|cuegroup|customizes|dataitem|dataset|dotnet|elements|enum|enumextension|extends|field|fieldattribute|fieldelement|fieldgroup|fieldgroups|fields|filter|fixed|grid|group|key|keys|label|labels|layout|modify|moveafter|movebefore|movefirst|movelast|page|pagecustomization|pageextension|part|profile|query|repeater|report|requestpage|schema|separator|systempart|table|tableelement|tableextension|textattribute|textelement|type|usercontrol|value|xmlport)\b/i],number:/\b(?:0x[\da-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)(?:F|LL?|U(?:LL?)?)?\b/i,boolean:/\b(?:false|true)\b/i,variable:/\b(?:Curr(?:FieldNo|Page|Report)|x?Rec|RequestOptionsPage)\b/,"class-name":/\b(?:automation|biginteger|bigtext|blob|boolean|byte|char|clienttype|code|completiontriggererrorlevel|connectiontype|database|dataclassification|datascope|date|dateformula|datetime|decimal|defaultlayout|dialog|dictionary|dotnetassembly|dotnettypedeclaration|duration|errorinfo|errortype|executioncontext|executionmode|fieldclass|fieldref|fieldtype|file|filterpagebuilder|guid|httpclient|httpcontent|httpheaders|httprequestmessage|httpresponsemessage|instream|integer|joker|jsonarray|jsonobject|jsontoken|jsonvalue|keyref|list|moduledependencyinfo|moduleinfo|none|notification|notificationscope|objecttype|option|outstream|pageresult|record|recordid|recordref|reportformat|securityfilter|sessionsettings|tableconnectiontype|tablefilter|testaction|testfield|testfilterfield|testpage|testpermissions|testrequestpage|text|textbuilder|textconst|textencoding|time|transactionmodel|transactiontype|variant|verbosity|version|view|views|webserviceactioncontext|webserviceactionresultcode|xmlattribute|xmlattributecollection|xmlcdata|xmlcomment|xmldeclaration|xmldocument|xmldocumenttype|xmlelement|xmlnamespacemanager|xmlnametable|xmlnode|xmlnodelist|xmlprocessinginstruction|xmlreadoptions|xmltext|xmlwriteoptions)\b/i,operator:/\.\.|:[=:]|[-+*/]=?|<>|[<>]=?|=|\b(?:and|div|mod|not|or|xor)\b/i,punctuation:/[()\[\]{}:.;,]/}}},65043:function(J){"use strict";J.exports=C,C.displayName="antlr4",C.aliases=["g4"];function C(d){d.languages.antlr4={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,string:{pattern:/'(?:\\.|[^\\'\r\n])*'/,greedy:!0},"character-class":{pattern:/\[(?:\\.|[^\\\]\r\n])*\]/,greedy:!0,alias:"regex",inside:{range:{pattern:/([^[]|(?:^|[^\\])(?:\\\\)*\\\[)-(?!\])/,lookbehind:!0,alias:"punctuation"},escape:/\\(?:u(?:[a-fA-F\d]{4}|\{[a-fA-F\d]+\})|[pP]\{[=\w-]+\}|[^\r\nupP])/,punctuation:/[\[\]]/}},action:{pattern:/\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\}/,greedy:!0,inside:{content:{pattern:/(\{)[\s\S]+(?=\})/,lookbehind:!0},punctuation:/[{}]/}},command:{pattern:/(->\s*(?!\s))(?:\s*(?:,\s*)?\b[a-z]\w*(?:\s*\([^()\r\n]*\))?)+(?=\s*;)/i,lookbehind:!0,inside:{function:/\b\w+(?=\s*(?:[,(]|$))/,punctuation:/[,()]/}},annotation:{pattern:/@\w+(?:::\w+)*/,alias:"keyword"},label:{pattern:/#[ \t]*\w+/,alias:"punctuation"},keyword:/\b(?:catch|channels|finally|fragment|grammar|import|lexer|locals|mode|options|parser|returns|throws|tokens)\b/,definition:[{pattern:/\b[a-z]\w*(?=\s*:)/,alias:["rule","class-name"]},{pattern:/\b[A-Z]\w*(?=\s*:)/,alias:["token","constant"]}],constant:/\b[A-Z][A-Z_]*\b/,operator:/\.\.|->|[|~]|[*+?]\??/,punctuation:/[;:()=]/},d.languages.g4=d.languages.antlr4}},43556:function(J){"use strict";J.exports=C,C.displayName="apacheconf",C.aliases=[];function C(d){d.languages.apacheconf={comment:/#.*/,"directive-inline":{pattern:/(^[\t ]*)\b(?:AcceptFilter|AcceptPathInfo|AccessFileName|Action|Add(?:Alt|AltByEncoding|AltByType|Charset|DefaultCharset|Description|Encoding|Handler|Icon|IconByEncoding|IconByType|InputFilter|Language|ModuleInfo|OutputFilter|OutputFilterByType|Type)|Alias|AliasMatch|Allow(?:CONNECT|EncodedSlashes|Methods|Override|OverrideList)?|Anonymous(?:_LogEmail|_MustGiveEmail|_NoUserID|_VerifyEmail)?|AsyncRequestWorkerFactor|Auth(?:BasicAuthoritative|BasicFake|BasicProvider|BasicUseDigestAlgorithm|DBDUserPWQuery|DBDUserRealmQuery|DBMGroupFile|DBMType|DBMUserFile|Digest(?:Algorithm|Domain|NonceLifetime|Provider|Qop|ShmemSize)|Form(?:Authoritative|Body|DisableNoStore|FakeBasicAuth|Location|LoginRequiredLocation|LoginSuccessLocation|LogoutLocation|Method|Mimetype|Password|Provider|SitePassphrase|Size|Username)|GroupFile|LDAP(?:AuthorizePrefix|BindAuthoritative|BindDN|BindPassword|CharsetConfig|CompareAsUser|CompareDNOnServer|DereferenceAliases|GroupAttribute|GroupAttributeIsDN|InitialBindAsUser|InitialBindPattern|MaxSubGroupDepth|RemoteUserAttribute|RemoteUserIsDN|SearchAsUser|SubGroupAttribute|SubGroupClass|Url)|Merging|Name|nCache(?:Context|Enable|ProvideFor|SOCache|Timeout)|nzFcgiCheckAuthnProvider|nzFcgiDefineProvider|Type|UserFile|zDBDLoginToReferer|zDBDQuery|zDBDRedirectQuery|zDBMType|zSendForbiddenOnFailure)|BalancerGrowth|BalancerInherit|BalancerMember|BalancerPersist|BrowserMatch|BrowserMatchNoCase|BufferedLogs|BufferSize|Cache(?:DefaultExpire|DetailHeader|DirLength|DirLevels|Disable|Enable|File|Header|IgnoreCacheControl|IgnoreHeaders|IgnoreNoLastMod|IgnoreQueryString|IgnoreURLSessionIdentifiers|KeyBaseURL|LastModifiedFactor|Lock|LockMaxAge|LockPath|MaxExpire|MaxFileSize|MinExpire|MinFileSize|NegotiatedDocs|QuickHandler|ReadSize|ReadTime|Root|Socache(?:MaxSize|MaxTime|MinTime|ReadSize|ReadTime)?|StaleOnError|StoreExpired|StoreNoStore|StorePrivate)|CGIDScriptTimeout|CGIMapExtension|CharsetDefault|CharsetOptions|CharsetSourceEnc|CheckCaseOnly|CheckSpelling|ChrootDir|ContentDigest|CookieDomain|CookieExpires|CookieName|CookieStyle|CookieTracking|CoreDumpDirectory|CustomLog|Dav|DavDepthInfinity|DavGenericLockDB|DavLockDB|DavMinTimeout|DBDExptime|DBDInitSQL|DBDKeep|DBDMax|DBDMin|DBDParams|DBDPersist|DBDPrepareSQL|DBDriver|DefaultIcon|DefaultLanguage|DefaultRuntimeDir|DefaultType|Define|Deflate(?:BufferSize|CompressionLevel|FilterNote|InflateLimitRequestBody|InflateRatio(?:Burst|Limit)|MemLevel|WindowSize)|Deny|DirectoryCheckHandler|DirectoryIndex|DirectoryIndexRedirect|DirectorySlash|DocumentRoot|DTracePrivileges|DumpIOInput|DumpIOOutput|EnableExceptionHook|EnableMMAP|EnableSendfile|Error|ErrorDocument|ErrorLog|ErrorLogFormat|Example|ExpiresActive|ExpiresByType|ExpiresDefault|ExtendedStatus|ExtFilterDefine|ExtFilterOptions|FallbackResource|FileETag|FilterChain|FilterDeclare|FilterProtocol|FilterProvider|FilterTrace|ForceLanguagePriority|ForceType|ForensicLog|GprofDir|GracefulShutdownTimeout|Group|Header|HeaderName|Heartbeat(?:Address|Listen|MaxServers|Storage)|HostnameLookups|IdentityCheck|IdentityCheckTimeout|ImapBase|ImapDefault|ImapMenu|Include|IncludeOptional|Index(?:HeadInsert|Ignore|IgnoreReset|Options|OrderDefault|StyleSheet)|InputSed|ISAPI(?:AppendLogToErrors|AppendLogToQuery|CacheFile|FakeAsync|LogNotSupported|ReadAheadBuffer)|KeepAlive|KeepAliveTimeout|KeptBodySize|LanguagePriority|LDAP(?:CacheEntries|CacheTTL|ConnectionPoolTTL|ConnectionTimeout|LibraryDebug|OpCacheEntries|OpCacheTTL|ReferralHopLimit|Referrals|Retries|RetryDelay|SharedCacheFile|SharedCacheSize|Timeout|TrustedClientCert|TrustedGlobalCert|TrustedMode|VerifyServerCert)|Limit(?:InternalRecursion|Request(?:Body|Fields|FieldSize|Line)|XMLRequestBody)|Listen|ListenBackLog|LoadFile|LoadModule|LogFormat|LogLevel|LogMessage|LuaAuthzProvider|LuaCodeCache|Lua(?:Hook(?:AccessChecker|AuthChecker|CheckUserID|Fixups|InsertFilter|Log|MapToStorage|TranslateName|TypeChecker)|Inherit|InputFilter|MapHandler|OutputFilter|PackageCPath|PackagePath|QuickHandler|Root|Scope)|Max(?:ConnectionsPerChild|KeepAliveRequests|MemFree|RangeOverlaps|RangeReversals|Ranges|RequestWorkers|SpareServers|SpareThreads|Threads)|MergeTrailers|MetaDir|MetaFiles|MetaSuffix|MimeMagicFile|MinSpareServers|MinSpareThreads|MMapFile|ModemStandard|ModMimeUsePathInfo|MultiviewsMatch|Mutex|NameVirtualHost|NoProxy|NWSSLTrustedCerts|NWSSLUpgradeable|Options|Order|OutputSed|PassEnv|PidFile|PrivilegesMode|Protocol|ProtocolEcho|Proxy(?:AddHeaders|BadHeader|Block|Domain|ErrorOverride|ExpressDBMFile|ExpressDBMType|ExpressEnable|FtpDirCharset|FtpEscapeWildcards|FtpListOnWildcard|HTML(?:BufSize|CharsetOut|DocType|Enable|Events|Extended|Fixups|Interp|Links|Meta|StripComments|URLMap)|IOBufferSize|MaxForwards|Pass(?:Inherit|InterpolateEnv|Match|Reverse|ReverseCookieDomain|ReverseCookiePath)?|PreserveHost|ReceiveBufferSize|Remote|RemoteMatch|Requests|SCGIInternalRedirect|SCGISendfile|Set|SourceAddress|Status|Timeout|Via)|ReadmeName|ReceiveBufferSize|Redirect|RedirectMatch|RedirectPermanent|RedirectTemp|ReflectorHeader|RemoteIP(?:Header|InternalProxy|InternalProxyList|ProxiesHeader|TrustedProxy|TrustedProxyList)|RemoveCharset|RemoveEncoding|RemoveHandler|RemoveInputFilter|RemoveLanguage|RemoveOutputFilter|RemoveType|RequestHeader|RequestReadTimeout|Require|Rewrite(?:Base|Cond|Engine|Map|Options|Rule)|RLimitCPU|RLimitMEM|RLimitNPROC|Satisfy|ScoreBoardFile|Script(?:Alias|AliasMatch|InterpreterSource|Log|LogBuffer|LogLength|Sock)?|SecureListen|SeeRequestTail|SendBufferSize|Server(?:Admin|Alias|Limit|Name|Path|Root|Signature|Tokens)|Session(?:Cookie(?:Name|Name2|Remove)|Crypto(?:Cipher|Driver|Passphrase|PassphraseFile)|DBD(?:CookieName|CookieName2|CookieRemove|DeleteLabel|InsertLabel|PerUser|SelectLabel|UpdateLabel)|Env|Exclude|Header|Include|MaxAge)?|SetEnv|SetEnvIf|SetEnvIfExpr|SetEnvIfNoCase|SetHandler|SetInputFilter|SetOutputFilter|SSIEndTag|SSIErrorMsg|SSIETag|SSILastModified|SSILegacyExprParser|SSIStartTag|SSITimeFormat|SSIUndefinedEcho|SSL(?:CACertificateFile|CACertificatePath|CADNRequestFile|CADNRequestPath|CARevocationCheck|CARevocationFile|CARevocationPath|CertificateChainFile|CertificateFile|CertificateKeyFile|CipherSuite|Compression|CryptoDevice|Engine|FIPS|HonorCipherOrder|InsecureRenegotiation|OCSP(?:DefaultResponder|Enable|OverrideResponder|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|UseRequestNonce)|OpenSSLConfCmd|Options|PassPhraseDialog|Protocol|Proxy(?:CACertificateFile|CACertificatePath|CARevocation(?:Check|File|Path)|CheckPeer(?:CN|Expire|Name)|CipherSuite|Engine|MachineCertificate(?:ChainFile|File|Path)|Protocol|Verify|VerifyDepth)|RandomSeed|RenegBufferSize|Require|RequireSSL|Session(?:Cache|CacheTimeout|TicketKeyFile|Tickets)|SRPUnknownUserSeed|SRPVerifierFile|Stapling(?:Cache|ErrorCacheTimeout|FakeTryLater|ForceURL|ResponderTimeout|ResponseMaxAge|ResponseTimeSkew|ReturnResponderErrors|StandardCacheTimeout)|StrictSNIVHostCheck|UserName|UseStapling|VerifyClient|VerifyDepth)|StartServers|StartThreads|Substitute|Suexec|SuexecUserGroup|ThreadLimit|ThreadsPerChild|ThreadStackSize|TimeOut|TraceEnable|TransferLog|TypesConfig|UnDefine|UndefMacro|UnsetEnv|Use|UseCanonicalName|UseCanonicalPhysicalPort|User|UserDir|VHostCGIMode|VHostCGIPrivs|VHostGroup|VHostPrivs|VHostSecure|VHostUser|Virtual(?:DocumentRoot|ScriptAlias)(?:IP)?|WatchdogInterval|XBitHack|xml2EncAlias|xml2EncDefault|xml2StartParse)\b/im,lookbehind:!0,alias:"property"},"directive-block":{pattern:/<\/?\b(?:Auth[nz]ProviderAlias|Directory|DirectoryMatch|Else|ElseIf|Files|FilesMatch|If|IfDefine|IfModule|IfVersion|Limit|LimitExcept|Location|LocationMatch|Macro|Proxy|Require(?:All|Any|None)|VirtualHost)\b.*>/i,inside:{"directive-block":{pattern:/^<\/?\w+/,inside:{punctuation:/^<\/?/},alias:"tag"},"directive-block-parameter":{pattern:/.*[^>]/,inside:{punctuation:/:/,string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}}},alias:"attr-value"},punctuation:/>/},alias:"tag"},"directive-flags":{pattern:/\[(?:[\w=],?)+\]/,alias:"keyword"},string:{pattern:/("|').*\1/,inside:{variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/}},variable:/[$%]\{?(?:\w\.?[-+:]?)+\}?/,regex:/\^?.*\$|\^.*\$?/}}},14901:function(J,C,d){"use strict";var b=d(69435);J.exports=I,I.displayName="apex",I.aliases=[];function I(L){L.register(b),function(B){var V=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,Q=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!<keyword>))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(/<keyword>/g,function(){return V.source});function M(he){return RegExp(he.replace(/<CLASS-NAME>/g,function(){return Q}),"i")}var de={keyword:V,punctuation:/[()\[\]{};,:.<>]/};B.languages.apex={comment:B.languages.clike.comment,string:B.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:B.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:M(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)<CLASS-NAME>/.source),lookbehind:!0,inside:de},{pattern:M(/(\(\s*)<CLASS-NAME>(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:de},{pattern:M(/<CLASS-NAME>(?=\s*\w+\s*[;=,(){:])/.source),inside:de}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:V,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<<?=?|>{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(L)}},4248:function(J){"use strict";J.exports=C,C.displayName="apl",C.aliases=[];function C(d){d.languages.apl={comment:/(?:⍝|#[! ]).*$/m,string:{pattern:/'(?:[^'\r\n]|'')*'/,greedy:!0},number:/¯?(?:\d*\.?\b\d+(?:e[+¯]?\d+)?|¯|∞)(?:j¯?(?:(?:\d+(?:\.\d+)?|\.\d+)(?:e[+¯]?\d+)?|¯|∞))?/i,statement:/:[A-Z][a-z][A-Za-z]*\b/,"system-function":{pattern:/⎕[A-Z]+/i,alias:"function"},constant:/[⍬⌾#⎕⍞]/,function:/[-+×÷⌈⌊∣|⍳⍸?*⍟○!⌹<≤=>≥≠≡≢∊⍷∪∩~∨∧⍱⍲⍴,⍪⌽⊖⍉↑↓⊂⊃⊆⊇⌷⍋⍒⊤⊥⍕⍎⊣⊢⍁⍂≈⍯↗¤→]/,"monadic-operator":{pattern:/[\\\/⌿⍀¨⍨⌶&∥]/,alias:"operator"},"dyadic-operator":{pattern:/[.⍣⍠⍤∘⌸@⌺⍥]/,alias:"operator"},assignment:{pattern:/←/,alias:"keyword"},punctuation:/[\[;\]()◇⋄]/,dfn:{pattern:/[{}⍺⍵⍶⍹∇⍫:]/,alias:"builtin"}}}},17758:function(J){"use strict";J.exports=C,C.displayName="applescript",C.aliases=[];function C(d){d.languages.applescript={comment:[/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,/--.+/,/#.+/],string:/"(?:\\.|[^"\\\r\n])*"/,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?\b/i,operator:[/[&=≠≤≥*+\-\/÷^]|[<>]=?/,/\b(?:(?:begin|end|start)s? with|(?:contains?|(?:does not|doesn't) contain)|(?:is|isn't|is not) (?:contained by|in)|(?:(?:is|isn't|is not) )?(?:greater|less) than(?: or equal)?(?: to)?|(?:comes|(?:does not|doesn't) come) (?:after|before)|(?:is|isn't|is not) equal(?: to)?|(?:(?:does not|doesn't) equal|equal to|equals|is not|isn't)|(?:a )?(?:ref(?: to)?|reference to)|(?:and|as|div|mod|not|or))\b/],keyword:/\b(?:about|above|after|against|apart from|around|aside from|at|back|before|beginning|behind|below|beneath|beside|between|but|by|considering|continue|copy|does|eighth|else|end|equal|error|every|exit|false|fifth|first|for|fourth|from|front|get|given|global|if|ignoring|in|instead of|into|is|it|its|last|local|me|middle|my|ninth|of|on|onto|out of|over|prop|property|put|repeat|return|returning|second|set|seventh|since|sixth|some|tell|tenth|that|the|then|third|through|thru|timeout|times|to|transaction|true|try|until|where|while|whose|with|without)\b/,"class-name":/\b(?:POSIX file|RGB color|alias|application|boolean|centimeters|centimetres|class|constant|cubic centimeters|cubic centimetres|cubic feet|cubic inches|cubic meters|cubic metres|cubic yards|date|degrees Celsius|degrees Fahrenheit|degrees Kelvin|feet|file|gallons|grams|inches|integer|kilograms|kilometers|kilometres|list|liters|litres|meters|metres|miles|number|ounces|pounds|quarts|real|record|reference|script|square feet|square kilometers|square kilometres|square meters|square metres|square miles|square yards|text|yards)\b/,punctuation:/[{}():,¬«»《》]/}}},33335:function(J){"use strict";J.exports=C,C.displayName="aql",C.aliases=[];function C(d){d.languages.aql={comment:/\/\/.*|\/\*[\s\S]*?\*\//,property:{pattern:/([{,]\s*)(?:(?!\d)\w+|(["'´`])(?:(?!\2)[^\\\r\n]|\\.)*\2)(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},identifier:{pattern:/([´`])(?:(?!\1)[^\\\r\n]|\\.)*\1/,greedy:!0},variable:/@@?\w+/,keyword:[{pattern:/(\bWITH\s+)COUNT(?=\s+INTO\b)/i,lookbehind:!0},/\b(?:AGGREGATE|ALL|AND|ANY|ASC|COLLECT|DESC|DISTINCT|FILTER|FOR|GRAPH|IN|INBOUND|INSERT|INTO|K_PATHS|K_SHORTEST_PATHS|LET|LIKE|LIMIT|NONE|NOT|NULL|OR|OUTBOUND|REMOVE|REPLACE|RETURN|SHORTEST_PATH|SORT|UPDATE|UPSERT|WINDOW|WITH)\b/i,{pattern:/(^|[^\w.[])(?:KEEP|PRUNE|SEARCH|TO)\b/i,lookbehind:!0},{pattern:/(^|[^\w.[])(?:CURRENT|NEW|OLD)\b/,lookbehind:!0},{pattern:/\bOPTIONS(?=\s*\{)/i}],function:/\b(?!\d)\w+(?=\s*\()/,boolean:/\b(?:false|true)\b/i,range:{pattern:/\.\./,alias:"operator"},number:[/\b0b[01]+/i,/\b0x[0-9a-f]+/i,/(?:\B\.\d+|\b(?:0|[1-9]\d*)(?:\.\d+)?)(?:e[+-]?\d+)?/i],operator:/\*{2,}|[=!]~|[!=<>]=?|&&|\|\||[-+*/%]/,punctuation:/::|[?.:,;()[\]{}]/}}},17427:function(J,C,d){"use strict";var b=d(87071);J.exports=I,I.displayName="arduino",I.aliases=["ino"];function I(L){L.register(b),L.languages.arduino=L.languages.extend("cpp",{keyword:/\b(?:String|array|bool|boolean|break|byte|case|catch|continue|default|do|double|else|finally|for|function|goto|if|in|instanceof|int|integer|long|loop|new|null|return|setup|string|switch|throw|try|void|while|word)\b/,constant:/\b(?:ANALOG_MESSAGE|DEFAULT|DIGITAL_MESSAGE|EXTERNAL|FIRMATA_STRING|HIGH|INPUT|INPUT_PULLUP|INTERNAL|INTERNAL1V1|INTERNAL2V56|LED_BUILTIN|LOW|OUTPUT|REPORT_ANALOG|REPORT_DIGITAL|SET_PIN_MODE|SYSEX_START|SYSTEM_RESET)\b/,builtin:/\b(?:Audio|BSSID|Bridge|Client|Console|EEPROM|Esplora|EsploraTFT|Ethernet|EthernetClient|EthernetServer|EthernetUDP|File|FileIO|FileSystem|Firmata|GPRS|GSM|GSMBand|GSMClient|GSMModem|GSMPIN|GSMScanner|GSMServer|GSMVoiceCall|GSM_SMS|HttpClient|IPAddress|IRread|Keyboard|KeyboardController|LiquidCrystal|LiquidCrystal_I2C|Mailbox|Mouse|MouseController|PImage|Process|RSSI|RobotControl|RobotMotor|SD|SPI|SSID|Scheduler|Serial|Server|Servo|SoftwareSerial|Stepper|Stream|TFT|Task|USBHost|WiFi|WiFiClient|WiFiServer|WiFiUDP|Wire|YunClient|YunServer|abs|addParameter|analogRead|analogReadResolution|analogReference|analogWrite|analogWriteResolution|answerCall|attach|attachGPRS|attachInterrupt|attached|autoscroll|available|background|beep|begin|beginPacket|beginSD|beginSMS|beginSpeaker|beginTFT|beginTransmission|beginWrite|bit|bitClear|bitRead|bitSet|bitWrite|blink|blinkVersion|buffer|changePIN|checkPIN|checkPUK|checkReg|circle|cityNameRead|cityNameWrite|clear|clearScreen|click|close|compassRead|config|connect|connected|constrain|cos|countryNameRead|countryNameWrite|createChar|cursor|debugPrint|delay|delayMicroseconds|detach|detachInterrupt|digitalRead|digitalWrite|disconnect|display|displayLogos|drawBMP|drawCompass|encryptionType|end|endPacket|endSMS|endTransmission|endWrite|exists|exitValue|fill|find|findUntil|flush|gatewayIP|get|getAsynchronously|getBand|getButton|getCurrentCarrier|getIMEI|getKey|getModifiers|getOemKey|getPINUsed|getResult|getSignalStrength|getSocket|getVoiceCallStatus|getXChange|getYChange|hangCall|height|highByte|home|image|interrupts|isActionDone|isDirectory|isListening|isPIN|isPressed|isValid|keyPressed|keyReleased|keyboardRead|knobRead|leftToRight|line|lineFollowConfig|listen|listenOnLocalhost|loadImage|localIP|lowByte|macAddress|maintain|map|max|messageAvailable|micros|millis|min|mkdir|motorsStop|motorsWrite|mouseDragged|mouseMoved|mousePressed|mouseReleased|move|noAutoscroll|noBlink|noBuffer|noCursor|noDisplay|noFill|noInterrupts|noListenOnLocalhost|noStroke|noTone|onReceive|onRequest|open|openNextFile|overflow|parseCommand|parseFloat|parseInt|parsePacket|pauseMode|peek|pinMode|playFile|playMelody|point|pointTo|position|pow|prepare|press|print|printFirmwareVersion|printVersion|println|process|processInput|pulseIn|put|random|randomSeed|read|readAccelerometer|readBlue|readButton|readBytes|readBytesUntil|readGreen|readJoystickButton|readJoystickSwitch|readJoystickX|readJoystickY|readLightSensor|readMessage|readMicrophone|readNetworks|readRed|readSlider|readString|readStringUntil|readTemperature|ready|rect|release|releaseAll|remoteIP|remoteNumber|remotePort|remove|requestFrom|retrieveCallingNumber|rewindDirectory|rightToLeft|rmdir|robotNameRead|robotNameWrite|run|runAsynchronously|runShellCommand|runShellCommandAsynchronously|running|scanNetworks|scrollDisplayLeft|scrollDisplayRight|seek|sendAnalog|sendDigitalPortPair|sendDigitalPorts|sendString|sendSysex|serialEvent|setBand|setBitOrder|setClockDivider|setCursor|setDNS|setDataMode|setFirmwareVersion|setMode|setPINUsed|setSpeed|setTextSize|setTimeout|shiftIn|shiftOut|shutdown|sin|size|sqrt|startLoop|step|stop|stroke|subnetMask|switchPIN|tan|tempoWrite|text|tone|transfer|tuneWrite|turn|updateIR|userNameRead|userNameWrite|voiceCall|waitContinue|width|write|writeBlue|writeGreen|writeJSON|writeMessage|writeMicroseconds|writeRGB|writeRed|yield)\b/}),L.languages.ino=L.languages.arduino}},22956:function(J){"use strict";J.exports=C,C.displayName="arff",C.aliases=[];function C(d){d.languages.arff={comment:/%.*/,string:{pattern:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/@(?:attribute|data|end|relation)\b/i,number:/\b\d+(?:\.\d+)?\b/,punctuation:/[{},]/}}},56007:function(J){"use strict";J.exports=C,C.displayName="asciidoc",C.aliases=["adoc"];function C(d){(function(b){var I={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},L=b.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})(?:\r?\n|\r)(?:[\s\S]*(?:\r?\n|\r))??\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:I,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)<?\d*>/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:I.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:I,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function B(V){V=V.split(" ");for(var Q={},M=0,de=V.length;M<de;M++)Q[V[M]]=L[V[M]];return Q}I.inside.interpreted.inside.rest=B("macro inline replacement entity"),L["passthrough-block"].inside.rest=B("macro"),L["literal-block"].inside.rest=B("callout"),L.table.inside.rest=B("comment-block passthrough-block literal-block other-block list-punctuation indented-block comment title attribute-entry attributes hr page-break admonition list-label callout macro inline replacement entity line-continuation"),L["other-block"].inside.rest=B("table list-punctuation indented-block comment attribute-entry attributes hr page-break admonition list-label macro inline replacement entity line-continuation"),L.title.inside.rest=B("macro inline replacement entity"),b.hooks.add("wrap",function(V){V.type==="entity"&&(V.attributes.title=V.content.value.replace(/&/,"&"))}),b.languages.adoc=b.languages.asciidoc})(d)}},45652:function(J){"use strict";J.exports=C,C.displayName="asm6502",C.aliases=[];function C(d){d.languages.asm6502={comment:/;.*/,directive:{pattern:/\.\w+(?= )/,alias:"property"},string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,"op-code":{pattern:/\b(?:ADC|AND|ASL|BCC|BCS|BEQ|BIT|BMI|BNE|BPL|BRK|BVC|BVS|CLC|CLD|CLI|CLV|CMP|CPX|CPY|DEC|DEX|DEY|EOR|INC|INX|INY|JMP|JSR|LDA|LDX|LDY|LSR|NOP|ORA|PHA|PHP|PLA|PLP|ROL|ROR|RTI|RTS|SBC|SEC|SED|SEI|STA|STX|STY|TAX|TAY|TSX|TXA|TXS|TYA|adc|and|asl|bcc|bcs|beq|bit|bmi|bne|bpl|brk|bvc|bvs|clc|cld|cli|clv|cmp|cpx|cpy|dec|dex|dey|eor|inc|inx|iny|jmp|jsr|lda|ldx|ldy|lsr|nop|ora|pha|php|pla|plp|rol|ror|rti|rts|sbc|sec|sed|sei|sta|stx|sty|tax|tay|tsx|txa|txs|tya)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{1,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[xya]\b/i,alias:"variable"},punctuation:/[(),:]/}}},33819:function(J){"use strict";J.exports=C,C.displayName="asmatmel",C.aliases=[];function C(d){d.languages.asmatmel={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},constant:/\b(?:PORT[A-Z]|DDR[A-Z]|(?:DD|P)[A-Z](?:\d|[0-2]\d|3[01]))\b/,directive:{pattern:/\.\w+(?= )/,alias:"property"},"r-register":{pattern:/\br(?:\d|[12]\d|3[01])\b/,alias:"variable"},"op-code":{pattern:/\b(?:ADC|ADD|ADIW|AND|ANDI|ASR|BCLR|BLD|BRBC|BRBS|BRCC|BRCS|BREAK|BREQ|BRGE|BRHC|BRHS|BRID|BRIE|BRLO|BRLT|BRMI|BRNE|BRPL|BRSH|BRTC|BRTS|BRVC|BRVS|BSET|BST|CALL|CBI|CBR|CLC|CLH|CLI|CLN|CLR|CLS|CLT|CLV|CLZ|COM|CP|CPC|CPI|CPSE|DEC|DES|EICALL|EIJMP|ELPM|EOR|FMUL|FMULS|FMULSU|ICALL|IJMP|IN|INC|JMP|LAC|LAS|LAT|LD|LD[A-Za-z0-9]|LPM|LSL|LSR|MOV|MOVW|MUL|MULS|MULSU|NEG|NOP|OR|ORI|OUT|POP|PUSH|RCALL|RET|RETI|RJMP|ROL|ROR|SBC|SBCI|SBI|SBIC|SBIS|SBIW|SBR|SBRC|SBRS|SEC|SEH|SEI|SEN|SER|SES|SET|SEV|SEZ|SLEEP|SPM|ST|ST[A-Z0-9]|SUB|SUBI|SWAP|TST|WDR|XCH|adc|add|adiw|and|andi|asr|bclr|bld|brbc|brbs|brcc|brcs|break|breq|brge|brhc|brhs|brid|brie|brlo|brlt|brmi|brne|brpl|brsh|brtc|brts|brvc|brvs|bset|bst|call|cbi|cbr|clc|clh|cli|cln|clr|cls|clt|clv|clz|com|cp|cpc|cpi|cpse|dec|des|eicall|eijmp|elpm|eor|fmul|fmuls|fmulsu|icall|ijmp|in|inc|jmp|lac|las|lat|ld|ld[a-z0-9]|lpm|lsl|lsr|mov|movw|mul|muls|mulsu|neg|nop|or|ori|out|pop|push|rcall|ret|reti|rjmp|rol|ror|sbc|sbci|sbi|sbic|sbis|sbiw|sbr|sbrc|sbrs|sec|seh|sei|sen|ser|ses|set|sev|sez|sleep|spm|st|st[a-zA-Z0-9]|sub|subi|swap|tst|wdr|xch)\b/,alias:"keyword"},"hex-number":{pattern:/#?\$[\da-f]{2,4}\b/i,alias:"number"},"binary-number":{pattern:/#?%[01]+\b/,alias:"number"},"decimal-number":{pattern:/#?\b\d+\b/,alias:"number"},register:{pattern:/\b[acznvshtixy]\b/i,alias:"variable"},operator:/>>=?|<<=?|&&?|\|\|?|[-+*/%&|^!=<>?]=?/,punctuation:/[(),:]/}}},84230:function(J,C,d){"use strict";var b=d(87648);J.exports=I,I.displayName="aspnet",I.aliases=[];function I(L){L.register(b),L.languages.aspnet=L.languages.extend("markup",{"page-directive":{pattern:/<%\s*@.*%>/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:L.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:L.languages.csharp}}}),L.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,L.languages.insertBefore("inside","punctuation",{directive:L.languages.aspnet.directive},L.languages.aspnet.tag.inside["attr-value"]),L.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),L.languages.insertBefore("aspnet",L.languages.javascript?"script":"tag",{"asp-script":{pattern:/(<script(?=.*runat=['"]?server\b)[^>]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:L.languages.csharp||{}}})}},20803:function(J){"use strict";J.exports=C,C.displayName="autohotkey",C.aliases=[];function C(d){d.languages.autohotkey={comment:[{pattern:/(^|\s);.*/,lookbehind:!0},{pattern:/(^[\t ]*)\/\*(?:[\r\n](?![ \t]*\*\/)|[^\r\n])*(?:[\r\n][ \t]*\*\/)?/m,lookbehind:!0,greedy:!0}],tag:{pattern:/^([ \t]*)[^\s,`":]+(?=:[ \t]*$)/m,lookbehind:!0},string:/"(?:[^"\n\r]|"")*"/,variable:/%\w+%/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/\?|\/\/?=?|:=|\|[=|]?|&[=&]?|\+[=+]?|-[=-]?|\*[=*]?|<(?:<=?|>|=)?|>>?=?|[.^!=~]=?|\b(?:AND|NOT|OR)\b/,boolean:/\b(?:false|true)\b/,selector:/\b(?:AutoTrim|BlockInput|Break|Click|ClipWait|Continue|Control|ControlClick|ControlFocus|ControlGet|ControlGetFocus|ControlGetPos|ControlGetText|ControlMove|ControlSend|ControlSendRaw|ControlSetText|CoordMode|Critical|DetectHiddenText|DetectHiddenWindows|Drive|DriveGet|DriveSpaceFree|EnvAdd|EnvDiv|EnvGet|EnvMult|EnvSet|EnvSub|EnvUpdate|Exit|ExitApp|FileAppend|FileCopy|FileCopyDir|FileCreateDir|FileCreateShortcut|FileDelete|FileEncoding|FileGetAttrib|FileGetShortcut|FileGetSize|FileGetTime|FileGetVersion|FileInstall|FileMove|FileMoveDir|FileRead|FileReadLine|FileRecycle|FileRecycleEmpty|FileRemoveDir|FileSelectFile|FileSelectFolder|FileSetAttrib|FileSetTime|FormatTime|GetKeyState|Gosub|Goto|GroupActivate|GroupAdd|GroupClose|GroupDeactivate|Gui|GuiControl|GuiControlGet|Hotkey|ImageSearch|IniDelete|IniRead|IniWrite|Input|InputBox|KeyWait|ListHotkeys|ListLines|ListVars|Loop|Menu|MouseClick|MouseClickDrag|MouseGetPos|MouseMove|MsgBox|OnExit|OutputDebug|Pause|PixelGetColor|PixelSearch|PostMessage|Process|Progress|Random|RegDelete|RegRead|RegWrite|Reload|Repeat|Return|Run|RunAs|RunWait|Send|SendEvent|SendInput|SendMessage|SendMode|SendPlay|SendRaw|SetBatchLines|SetCapslockState|SetControlDelay|SetDefaultMouseSpeed|SetEnv|SetFormat|SetKeyDelay|SetMouseDelay|SetNumlockState|SetRegView|SetScrollLockState|SetStoreCapslockMode|SetTimer|SetTitleMatchMode|SetWinDelay|SetWorkingDir|Shutdown|Sleep|Sort|SoundBeep|SoundGet|SoundGetWaveVolume|SoundPlay|SoundSet|SoundSetWaveVolume|SplashImage|SplashTextOff|SplashTextOn|SplitPath|StatusBarGetText|StatusBarWait|StringCaseSense|StringGetPos|StringLeft|StringLen|StringLower|StringMid|StringReplace|StringRight|StringSplit|StringTrimLeft|StringTrimRight|StringUpper|Suspend|SysGet|Thread|ToolTip|Transform|TrayTip|URLDownloadToFile|WinActivate|WinActivateBottom|WinClose|WinGet|WinGetActiveStats|WinGetActiveTitle|WinGetClass|WinGetPos|WinGetText|WinGetTitle|WinHide|WinKill|WinMaximize|WinMenuSelectItem|WinMinimize|WinMinimizeAll|WinMinimizeAllUndo|WinMove|WinRestore|WinSet|WinSetTitle|WinShow|WinWait|WinWaitActive|WinWaitClose|WinWaitNotActive)\b/i,constant:/\b(?:a_ahkpath|a_ahkversion|a_appdata|a_appdatacommon|a_autotrim|a_batchlines|a_caretx|a_carety|a_computername|a_controldelay|a_cursor|a_dd|a_ddd|a_dddd|a_defaultmousespeed|a_desktop|a_desktopcommon|a_detecthiddentext|a_detecthiddenwindows|a_endchar|a_eventinfo|a_exitreason|a_fileencoding|a_formatfloat|a_formatinteger|a_gui|a_guicontrol|a_guicontrolevent|a_guievent|a_guiheight|a_guiwidth|a_guix|a_guiy|a_hour|a_iconfile|a_iconhidden|a_iconnumber|a_icontip|a_index|a_ipaddress1|a_ipaddress2|a_ipaddress3|a_ipaddress4|a_is64bitos|a_isadmin|a_iscompiled|a_iscritical|a_ispaused|a_issuspended|a_isunicode|a_keydelay|a_language|a_lasterror|a_linefile|a_linenumber|a_loopfield|a_loopfileattrib|a_loopfiledir|a_loopfileext|a_loopfilefullpath|a_loopfilelongpath|a_loopfilename|a_loopfileshortname|a_loopfileshortpath|a_loopfilesize|a_loopfilesizekb|a_loopfilesizemb|a_loopfiletimeaccessed|a_loopfiletimecreated|a_loopfiletimemodified|a_loopreadline|a_loopregkey|a_loopregname|a_loopregsubkey|a_loopregtimemodified|a_loopregtype|a_mday|a_min|a_mm|a_mmm|a_mmmm|a_mon|a_mousedelay|a_msec|a_mydocuments|a_now|a_nowutc|a_numbatchlines|a_ostype|a_osversion|a_priorhotkey|a_priorkey|a_programfiles|a_programs|a_programscommon|a_ptrsize|a_regview|a_screendpi|a_screenheight|a_screenwidth|a_scriptdir|a_scriptfullpath|a_scripthwnd|a_scriptname|a_sec|a_space|a_startmenu|a_startmenucommon|a_startup|a_startupcommon|a_stringcasesense|a_tab|a_temp|a_thisfunc|a_thishotkey|a_thislabel|a_thismenu|a_thismenuitem|a_thismenuitempos|a_tickcount|a_timeidle|a_timeidlephysical|a_timesincepriorhotkey|a_timesincethishotkey|a_titlematchmode|a_titlematchmodespeed|a_username|a_wday|a_windelay|a_windir|a_workingdir|a_yday|a_year|a_yweek|a_yyyy|clipboard|clipboardall|comspec|errorlevel|programfiles)\b/i,builtin:/\b(?:abs|acos|asc|asin|atan|ceil|chr|class|comobjactive|comobjarray|comobjconnect|comobjcreate|comobjerror|comobjflags|comobjget|comobjquery|comobjtype|comobjvalue|cos|dllcall|exp|fileexist|Fileopen|floor|format|il_add|il_create|il_destroy|instr|isfunc|islabel|IsObject|ln|log|ltrim|lv_add|lv_delete|lv_deletecol|lv_getcount|lv_getnext|lv_gettext|lv_insert|lv_insertcol|lv_modify|lv_modifycol|lv_setimagelist|mod|numget|numput|onmessage|regexmatch|regexreplace|registercallback|round|rtrim|sb_seticon|sb_setparts|sb_settext|sin|sqrt|strlen|strreplace|strsplit|substr|tan|tv_add|tv_delete|tv_get|tv_getchild|tv_getcount|tv_getnext|tv_getparent|tv_getprev|tv_getselection|tv_gettext|tv_modify|varsetcapacity|winactive|winexist|__Call|__Get|__New|__Set)\b/i,symbol:/\b(?:alt|altdown|altup|appskey|backspace|browser_back|browser_favorites|browser_forward|browser_home|browser_refresh|browser_search|browser_stop|bs|capslock|ctrl|ctrlbreak|ctrldown|ctrlup|del|delete|down|end|enter|esc|escape|f1|f10|f11|f12|f13|f14|f15|f16|f17|f18|f19|f2|f20|f21|f22|f23|f24|f3|f4|f5|f6|f7|f8|f9|home|ins|insert|joy1|joy10|joy11|joy12|joy13|joy14|joy15|joy16|joy17|joy18|joy19|joy2|joy20|joy21|joy22|joy23|joy24|joy25|joy26|joy27|joy28|joy29|joy3|joy30|joy31|joy32|joy4|joy5|joy6|joy7|joy8|joy9|joyaxes|joybuttons|joyinfo|joyname|joypov|joyr|joyu|joyv|joyx|joyy|joyz|lalt|launch_app1|launch_app2|launch_mail|launch_media|lbutton|lcontrol|lctrl|left|lshift|lwin|lwindown|lwinup|mbutton|media_next|media_play_pause|media_prev|media_stop|numlock|numpad0|numpad1|numpad2|numpad3|numpad4|numpad5|numpad6|numpad7|numpad8|numpad9|numpadadd|numpadclear|numpaddel|numpaddiv|numpaddot|numpaddown|numpadend|numpadenter|numpadhome|numpadins|numpadleft|numpadmult|numpadpgdn|numpadpgup|numpadright|numpadsub|numpadup|pgdn|pgup|printscreen|ralt|rbutton|rcontrol|rctrl|right|rshift|rwin|rwindown|rwinup|scrolllock|shift|shiftdown|shiftup|space|tab|up|volume_down|volume_mute|volume_up|wheeldown|wheelleft|wheelright|wheelup|xbutton1|xbutton2)\b/i,important:/#\b(?:AllowSameLineComments|ClipboardTimeout|CommentFlag|DerefChar|ErrorStdOut|EscapeChar|HotkeyInterval|HotkeyModifierTimeout|Hotstring|If|IfTimeout|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Include|IncludeAgain|InputLevel|InstallKeybdHook|InstallMouseHook|KeyHistory|MaxHotkeysPerInterval|MaxMem|MaxThreads|MaxThreadsBuffer|MaxThreadsPerHotkey|MenuMaskKey|NoEnv|NoTrayIcon|Persistent|SingleInstance|UseHook|Warn|WinActivateForce)\b/i,keyword:/\b(?:Abort|AboveNormal|Add|ahk_class|ahk_exe|ahk_group|ahk_id|ahk_pid|All|Alnum|Alpha|AltSubmit|AltTab|AltTabAndMenu|AltTabMenu|AltTabMenuDismiss|AlwaysOnTop|AutoSize|Background|BackgroundTrans|BelowNormal|between|BitAnd|BitNot|BitOr|BitShiftLeft|BitShiftRight|BitXOr|Bold|Border|Button|ByRef|Catch|Checkbox|Checked|CheckedGray|Choose|ChooseString|Close|Color|ComboBox|Contains|ControlList|Count|Date|DateTime|Days|DDL|Default|DeleteAll|Delimiter|Deref|Destroy|Digit|Disable|Disabled|DropDownList|Edit|Eject|Else|Enable|Enabled|Error|Exist|Expand|ExStyle|FileSystem|Finally|First|Flash|Float|FloatFast|Focus|Font|for|global|Grid|Group|GroupBox|GuiClose|GuiContextMenu|GuiDropFiles|GuiEscape|GuiSize|Hdr|Hidden|Hide|High|HKCC|HKCR|HKCU|HKEY_CLASSES_ROOT|HKEY_CURRENT_CONFIG|HKEY_CURRENT_USER|HKEY_LOCAL_MACHINE|HKEY_USERS|HKLM|HKU|Hours|HScroll|Icon|IconSmall|ID|IDLast|If|IfEqual|IfExist|IfGreater|IfGreaterOrEqual|IfInString|IfLess|IfLessOrEqual|IfMsgBox|IfNotEqual|IfNotExist|IfNotInString|IfWinActive|IfWinExist|IfWinNotActive|IfWinNotExist|Ignore|ImageList|in|Integer|IntegerFast|Interrupt|is|italic|Join|Label|LastFound|LastFoundExist|Limit|Lines|List|ListBox|ListView|local|Lock|Logoff|Low|Lower|Lowercase|MainWindow|Margin|Maximize|MaximizeBox|MaxSize|Minimize|MinimizeBox|MinMax|MinSize|Minutes|MonthCal|Mouse|Move|Multi|NA|No|NoActivate|NoDefault|NoHide|NoIcon|NoMainWindow|norm|Normal|NoSort|NoSortHdr|NoStandard|Not|NoTab|NoTimers|Number|Off|Ok|On|OwnDialogs|Owner|Parse|Password|Picture|Pixel|Pos|Pow|Priority|ProcessName|Radio|Range|Read|ReadOnly|Realtime|Redraw|Region|REG_BINARY|REG_DWORD|REG_EXPAND_SZ|REG_MULTI_SZ|REG_SZ|Relative|Rename|Report|Resize|Restore|Retry|RGB|Screen|Seconds|Section|Serial|SetLabel|ShiftAltTab|Show|Single|Slider|SortDesc|Standard|static|Status|StatusBar|StatusCD|strike|Style|Submit|SysMenu|Tab2|TabStop|Text|Theme|Throw|Tile|ToggleCheck|ToggleEnable|ToolWindow|Top|Topmost|TransColor|Transparent|Tray|TreeView|Try|TryAgain|Type|UnCheck|underline|Unicode|Unlock|Until|UpDown|Upper|Uppercase|UseErrorLevel|Vis|VisFirst|Visible|VScroll|Wait|WaitClose|WantCtrlA|WantF2|WantReturn|While|Wrap|Xdigit|xm|xp|xs|Yes|ym|yp|ys)\b/i,function:/[^(); \t,\n+*\-=?>:\\\/<&%\[\]]+(?=\()/,punctuation:/[{}[\]():,]/}}},65235:function(J){"use strict";J.exports=C,C.displayName="autoit",C.aliases=[];function C(d){d.languages.autoit={comment:[/;.*/,{pattern:/(^[\t ]*)#(?:comments-start|cs)[\s\S]*?^[ \t]*#(?:ce|comments-end)/m,lookbehind:!0}],url:{pattern:/(^[\t ]*#include\s+)(?:<[^\r\n>]+>|"[^\r\n"]+")/m,lookbehind:!0},string:{pattern:/(["'])(?:\1\1|(?!\1)[^\r\n])*\1/,greedy:!0,inside:{variable:/([%$@])\w+\1/}},directive:{pattern:/(^[\t ]*)#[\w-]+/m,lookbehind:!0,alias:"keyword"},function:/\b\w+(?=\()/,variable:/[$@]\w+/,keyword:/\b(?:Case|Const|Continue(?:Case|Loop)|Default|Dim|Do|Else(?:If)?|End(?:Func|If|Select|Switch|With)|Enum|Exit(?:Loop)?|For|Func|Global|If|In|Local|Next|Null|ReDim|Select|Static|Step|Switch|Then|To|Until|Volatile|WEnd|While|With)\b/i,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,boolean:/\b(?:False|True)\b/i,operator:/<[=>]?|[-+*\/=&>]=?|[?^]|\b(?:And|Not|Or)\b/i,punctuation:/[\[\]().,:]/}}},52406:function(J){"use strict";J.exports=C,C.displayName="avisynth",C.aliases=["avs"];function C(d){(function(b){function I(he,re){return he.replace(/<<(\d+)>>/g,function(De,ne){return re[+ne]})}function L(he,re,De){return RegExp(I(he,re),De||"")}var B=/bool|clip|float|int|string|val/.source,V=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),Q=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),M=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),de=[V,Q,M].join("|");b.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:L(/\b(?:<<0>>)\s+("?)\w+\1/.source,[B],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:L(/\b(?:<<0>>)\b/.source,[de],"i"),alias:"function"},"type-cast":{pattern:L(/\b(?:<<0>>)(?=\s*\()/.source,[B],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},b.languages.avs=b.languages.avisynth})(d)}},79571:function(J){"use strict";J.exports=C,C.displayName="avroIdl",C.aliases=[];function C(d){d.languages["avro-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0},annotation:{pattern:/@(?:[$\w.-]|`[^\r\n`]+`)+/,greedy:!0,alias:"function"},"function-identifier":{pattern:/`[^\r\n`]+`(?=\s*\()/,greedy:!0,alias:"function"},identifier:{pattern:/`[^\r\n`]+`/,greedy:!0},"class-name":{pattern:/(\b(?:enum|error|protocol|record|throws)\b\s+)[$\w]+/,lookbehind:!0,greedy:!0},keyword:/\b(?:array|boolean|bytes|date|decimal|double|enum|error|false|fixed|float|idl|import|int|local_timestamp_ms|long|map|null|oneway|protocol|record|schema|string|throws|time_ms|timestamp_ms|true|union|uuid|void)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:[{pattern:/(^|[^\w.])-?(?:(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|0x(?:[a-f0-9]+(?:\.[a-f0-9]*)?|\.[a-f0-9]+)(?:p[+-]?\d+)?)[dfl]?(?![\w.])/i,lookbehind:!0},/-?\b(?:Infinity|NaN)\b/],operator:/=/,punctuation:/[()\[\]{}<>.:,;-]/},d.languages.avdl=d.languages["avro-idl"]}},3058:function(J){"use strict";J.exports=C,C.displayName="bash",C.aliases=["shell"];function C(d){(function(b){var I="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",L={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},B={bash:L,environment:{pattern:RegExp("\\$"+I),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+I),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};b.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+I),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:B},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:L}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:B},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:B.entity}}],environment:{pattern:RegExp("\\$?"+I),alias:"constant"},variable:B.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},L.inside=b.languages.bash;for(var V=["comment","function-name","for-or-select","assign-left","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],Q=B.variable[1].inside,M=0;M<V.length;M++)Q[V[M]]=b.languages.bash[V[M]];b.languages.shell=b.languages.bash})(d)}},51422:function(J){"use strict";J.exports=C,C.displayName="basic",C.aliases=[];function C(d){d.languages.basic={comment:{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:AS|BEEP|BLOAD|BSAVE|CALL(?: ABSOLUTE)?|CASE|CHAIN|CHDIR|CLEAR|CLOSE|CLS|COM|COMMON|CONST|DATA|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DIM|DO|DOUBLE|ELSE|ELSEIF|END|ENVIRON|ERASE|ERROR|EXIT|FIELD|FILES|FOR|FUNCTION|GET|GOSUB|GOTO|IF|INPUT|INTEGER|IOCTL|KEY|KILL|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|MKDIR|NAME|NEXT|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPTION BASE|OUT|POKE|PUT|READ|REDIM|REM|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SELECT CASE|SHARED|SHELL|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|SUB|SWAP|SYSTEM|THEN|TIMER|TO|TROFF|TRON|TYPE|UNLOCK|UNTIL|USING|VIEW PRINT|WAIT|WEND|WHILE|WRITE)(?:\$|\b)/i,function:/\b(?:ABS|ACCESS|ACOS|ANGLE|AREA|ARITHMETIC|ARRAY|ASIN|ASK|AT|ATN|BASE|BEGIN|BREAK|CAUSE|CEIL|CHR|CLIP|COLLATE|COLOR|CON|COS|COSH|COT|CSC|DATE|DATUM|DEBUG|DECIMAL|DEF|DEG|DEGREES|DELETE|DET|DEVICE|DISPLAY|DOT|ELAPSED|EPS|ERASABLE|EXLINE|EXP|EXTERNAL|EXTYPE|FILETYPE|FIXED|FP|GO|GRAPH|HANDLER|IDN|IMAGE|IN|INT|INTERNAL|IP|IS|KEYED|LBOUND|LCASE|LEFT|LEN|LENGTH|LET|LINE|LINES|LOG|LOG10|LOG2|LTRIM|MARGIN|MAT|MAX|MAXNUM|MID|MIN|MISSING|MOD|NATIVE|NUL|NUMERIC|OF|OPTION|ORD|ORGANIZATION|OUTIN|OUTPUT|PI|POINT|POINTER|POINTS|POS|PRINT|PROGRAM|PROMPT|RAD|RADIANS|RANDOMIZE|RECORD|RECSIZE|RECTYPE|RELATIVE|REMAINDER|REPEAT|REST|RETRY|REWRITE|RIGHT|RND|ROUND|RTRIM|SAME|SEC|SELECT|SEQUENTIAL|SET|SETTER|SGN|SIN|SINH|SIZE|SKIP|SQR|STANDARD|STATUS|STR|STREAM|STYLE|TAB|TAN|TANH|TEMPLATE|TEXT|THERE|TIME|TIMEOUT|TRACE|TRANSFORM|TRUNCATE|UBOUND|UCASE|USE|VAL|VARIABLE|VIEWPORT|WHEN|WINDOW|WITH|ZER|ZONEWIDTH)(?:\$|\b)/i,operator:/<[=>]?|>=?|[+\-*\/^=&]|\b(?:AND|EQV|IMP|NOT|OR|XOR)\b/i,punctuation:/[,;:()]/}}},1618:function(J){"use strict";J.exports=C,C.displayName="batch",C.aliases=[];function C(d){(function(b){var I=/%%?[~:\w]+%?|!\S+!/,L={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},B=/"(?:[\\"]"|[^"])*"(?!")/,V=/(?:\b|-)\d+\b/;b.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:B,parameter:L,variable:I,number:V,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:B,parameter:L,variable:I,number:V,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:B,parameter:L,variable:[I,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:V,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:B,parameter:L,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:I,number:V,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(d)}},35851:function(J){"use strict";J.exports=C,C.displayName="bbcode",C.aliases=["shortcode"];function C(d){d.languages.bbcode={tag:{pattern:/\[\/?[^\s=\]]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))?(?:\s+[^\s=\]]+\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+))*\s*\]/,inside:{tag:{pattern:/^\[\/?[^\s=\]]+/,inside:{punctuation:/^\[\/?/}},"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'"\]=]+)/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\]/,"attr-name":/[^\s=\]]+/}}},d.languages.shortcode=d.languages.bbcode}},51274:function(J){"use strict";J.exports=C,C.displayName="bicep",C.aliases=[];function C(d){d.languages.bicep={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],property:[{pattern:/([\r\n][ \t]*)[a-z_]\w*(?=[ \t]*:)/i,lookbehind:!0},{pattern:/([\r\n][ \t]*)'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'(?=[ \t]*:)/,lookbehind:!0,greedy:!0}],string:[{pattern:/'''[^'][\s\S]*?'''/,greedy:!0},{pattern:/(^|[^\\'])'(?:\\.|\$(?!\{)|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0}],"interpolated-string":{pattern:/(^|[^\\'])'(?:\\.|\$(?:(?!\{)|\{[^{}\r\n]*\})|[^'\\\r\n$])*'/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}\r\n]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0},punctuation:/^\$\{|\}$/}},string:/[\s\S]+/}},datatype:{pattern:/(\b(?:output|param)\b[ \t]+\w+[ \t]+)\w+\b/,lookbehind:!0,alias:"class-name"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:existing|for|if|in|module|null|output|param|resource|targetScope|var)\b/,decorator:/@\w+\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/,punctuation:/[{}[\];(),.:]/},d.languages.bicep["interpolated-string"].inside.interpolation.inside.expression.inside=d.languages.bicep}},23796:function(J){"use strict";J.exports=C,C.displayName="birb",C.aliases=[];function C(d){d.languages.birb=d.languages.extend("clike",{string:{pattern:/r?("|')(?:\\.|(?!\1)[^\\])*\1/,greedy:!0},"class-name":[/\b[A-Z](?:[\d_]*[a-zA-Z]\w*)?\b/,/\b(?:[A-Z]\w*|(?!(?:var|void)\b)[a-z]\w*)(?=\s+\w+\s*[;,=()])/],keyword:/\b(?:assert|break|case|class|const|default|else|enum|final|follows|for|grab|if|nest|new|next|noSeeb|return|static|switch|throw|var|void|while)\b/,operator:/\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?|:/,variable:/\b[a-z_]\w*\b/}),d.languages.insertBefore("birb","function",{metadata:{pattern:/<\w+>/,greedy:!0,alias:"symbol"}})}},13979:function(J,C,d){"use strict";var b=d(79440);J.exports=I,I.displayName="bison",I.aliases=[];function I(L){L.register(b),L.languages.bison=L.languages.extend("c",{}),L.languages.insertBefore("bison","comment",{bison:{pattern:/^(?:[^%]|%(?!%))*%%[\s\S]*?%%/,inside:{c:{pattern:/%\{[\s\S]*?%\}|\{(?:\{[^}]*\}|[^{}])*\}/,inside:{delimiter:{pattern:/^%?\{|%?\}$/,alias:"punctuation"},"bison-variable":{pattern:/[$@](?:<[^\s>]+>)?[\w$]+/,alias:"variable",inside:{punctuation:/<|>/}},rest:L.languages.c}},comment:L.languages.c.comment,string:L.languages.c.string,property:/\S+(?=:)/,keyword:/%\w+/,number:{pattern:/(^|[^@])\b(?:0x[\da-f]+|\d+)/i,lookbehind:!0},punctuation:/%[%?]|[|:;\[\]<>]/}}})}},87994:function(J){"use strict";J.exports=C,C.displayName="bnf",C.aliases=["rbnf"];function C(d){d.languages.bnf={string:{pattern:/"[^\r\n"]*"|'[^\r\n']*'/},definition:{pattern:/<[^<>\r\n\t]+>(?=\s*::=)/,alias:["rule","keyword"],inside:{punctuation:/^<|>$/}},rule:{pattern:/<[^<>\r\n\t]+>/,inside:{punctuation:/^<|>$/}},operator:/::=|[|()[\]{}*+?]|\.{3}/},d.languages.rbnf=d.languages.bnf}},47035:function(J){"use strict";J.exports=C,C.displayName="brainfuck",C.aliases=[];function C(d){d.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}},36142:function(J){"use strict";J.exports=C,C.displayName="brightscript",C.aliases=[];function C(d){d.languages.brightscript={comment:/(?:\brem|').*/i,"directive-statement":{pattern:/(^[\t ]*)#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if).*/im,lookbehind:!0,alias:"property",inside:{"error-message":{pattern:/(^#error).+/,lookbehind:!0},directive:{pattern:/^#(?:const|else(?:[\t ]+if)?|end[\t ]+if|error|if)/,alias:"keyword"},expression:{pattern:/[\s\S]+/,inside:null}}},property:{pattern:/([\r\n{,][\t ]*)(?:(?!\d)\w+|"(?:[^"\r\n]|"")*"(?!"))(?=[ \t]*:)/,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},"class-name":{pattern:/(\bAs[\t ]+)\w+/i,lookbehind:!0},keyword:/\b(?:As|Dim|Each|Else|Elseif|End|Exit|For|Function|Goto|If|In|Print|Return|Step|Stop|Sub|Then|To|While)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?!\d)\w+(?=[\t ]*\()/,number:/(?:\b\d+(?:\.\d+)?(?:[ed][+-]\d+)?|&h[a-f\d]+)\b[%&!#]?/i,operator:/--|\+\+|>>=?|<<=?|<>|[-+*/\\<>]=?|[:^=?]|\b(?:and|mod|not|or)\b/i,punctuation:/[.,;()[\]{}]/,constant:/\b(?:LINE_NUM)\b/i},d.languages.brightscript["directive-statement"].inside.expression.inside=d.languages.brightscript}},85290:function(J){"use strict";J.exports=C,C.displayName="bro",C.aliases=[];function C(d){d.languages.bro={comment:{pattern:/(^|[^\\$])#.*/,lookbehind:!0,inside:{italic:/\b(?:FIXME|TODO|XXX)\b/}},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},boolean:/\b[TF]\b/,function:{pattern:/(\b(?:event|function|hook)[ \t]+)\w+(?:::\w+)?/,lookbehind:!0},builtin:/(?:@(?:load(?:-(?:plugin|sigs))?|unload|prefixes|ifn?def|else|(?:end)?if|DIR|FILENAME))|(?:&?(?:add_func|create_expire|default|delete_func|encrypt|error_handler|expire_func|group|log|mergeable|optional|persistent|priority|raw_output|read_expire|redef|rotate_interval|rotate_size|synchronized|type_column|write_expire))/,constant:{pattern:/(\bconst[ \t]+)\w+/i,lookbehind:!0},keyword:/\b(?:add|addr|alarm|any|bool|break|const|continue|count|delete|double|else|enum|event|export|file|for|function|global|hook|if|in|int|interval|local|module|next|of|opaque|pattern|port|print|record|return|schedule|set|string|subnet|table|time|timeout|using|vector|when)\b/,operator:/--?|\+\+?|!=?=?|<=?|>=?|==?=?|&&|\|\|?|\?|\*|\/|~|\^|%/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,punctuation:/[{}[\];(),.:]/}}},7407:function(J){"use strict";J.exports=C,C.displayName="bsl",C.aliases=[];function C(d){d.languages.bsl={comment:/\/\/.*/,string:[{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},{pattern:/'(?:[^'\r\n\\]|\\.)*'/}],keyword:[{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:пока|для|новый|прервать|попытка|исключение|вызватьисключение|иначе|конецпопытки|неопределено|функция|перем|возврат|конецфункции|если|иначеесли|процедура|конецпроцедуры|тогда|знач|экспорт|конецесли|из|каждого|истина|ложь|по|цикл|конеццикла|выполнить)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:break|do|each|else|elseif|enddo|endfunction|endif|endprocedure|endtry|except|execute|export|false|for|function|if|in|new|null|procedure|raise|return|then|to|true|try|undefined|val|var|while)\b/i}],number:{pattern:/(^(?=\d)|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:\d+(?:\.\d*)?|\.\d+)(?:E[+-]?\d+)?/i,lookbehind:!0},operator:[/[<>+\-*/]=?|[%=]/,{pattern:/(^|[^\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])(?:и|или|не)(?![\w\u0400-\u0484\u0487-\u052f\u1d2b\u1d78\u2de0-\u2dff\ua640-\ua69f\ufe2e\ufe2f])/i,lookbehind:!0},{pattern:/\b(?:and|not|or)\b/i}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/,directive:[{pattern:/^([ \t]*)&.*/m,lookbehind:!0,greedy:!0,alias:"important"},{pattern:/^([ \t]*)#.*/gm,lookbehind:!0,greedy:!0,alias:"important"}]},d.languages.oscript=d.languages.bsl}},79440:function(J){"use strict";J.exports=C,C.displayName="c",C.aliases=[];function C(d){d.languages.c=d.languages.extend("clike",{comment:{pattern:/\/\/(?:[^\r\n\\]|\\(?:\r\n?|\n|(?![\r\n])))*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"class-name":{pattern:/(\b(?:enum|struct)\s+(?:__attribute__\s*\(\([\s\S]*?\)\)\s*)?)\w+|\b[a-z]\w*_t\b/,lookbehind:!0},keyword:/\b(?:_Alignas|_Alignof|_Atomic|_Bool|_Complex|_Generic|_Imaginary|_Noreturn|_Static_assert|_Thread_local|__attribute__|asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|inline|int|long|register|return|short|signed|sizeof|static|struct|switch|typedef|typeof|union|unsigned|void|volatile|while)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ful]{0,4}/i,operator:/>>=?|<<=?|->|([-+&|:])\1|[?:~]|[-+*/%&|^!=<>]=?/}),d.languages.insertBefore("c","string",{char:{pattern:/'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n]){0,32}'/,greedy:!0}}),d.languages.insertBefore("c","string",{macro:{pattern:/(^[\t ]*)#\s*[a-z](?:[^\r\n\\/]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{string:[{pattern:/^(#\s*include\s*)<[^>]+>/,lookbehind:!0},d.languages.c.string],char:d.languages.c.char,comment:d.languages.c.comment,"macro-name":[{pattern:/(^#\s*define\s+)\w+\b(?!\()/i,lookbehind:!0},{pattern:/(^#\s*define\s+)\w+\b(?=\()/i,lookbehind:!0,alias:"function"}],directive:{pattern:/^(#\s*)[a-z]+/,lookbehind:!0,alias:"keyword"},"directive-hash":/^#/,punctuation:/##|\\(?=[\r\n])/,expression:{pattern:/\S[\s\S]*/,inside:d.languages.c}}}}),d.languages.insertBefore("c","function",{constant:/\b(?:EOF|NULL|SEEK_CUR|SEEK_END|SEEK_SET|__DATE__|__FILE__|__LINE__|__TIMESTAMP__|__TIME__|__func__|stderr|stdin|stdout)\b/}),delete d.languages.c.boolean}},7110:function(J){"use strict";J.exports=C,C.displayName="cfscript",C.aliases=[];function C(d){d.languages.cfscript=d.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,inside:{annotation:{pattern:/(?:^|[^.])@[\w\.]+/,alias:"punctuation"}}},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],keyword:/\b(?:abstract|break|catch|component|continue|default|do|else|extends|final|finally|for|function|if|in|include|package|private|property|public|remote|required|rethrow|return|static|switch|throw|try|var|while|xml)\b(?!\s*=)/,operator:[/\+\+|--|&&|\|\||::|=>|[!=]==|<=?|>=?|[-+*/%&|^!=<>]=?|\?(?:\.|:)?|[?:]/,/\b(?:and|contains|eq|equal|eqv|gt|gte|imp|is|lt|lte|mod|not|or|xor)\b/],scope:{pattern:/\b(?:application|arguments|cgi|client|cookie|local|session|super|this|variables)\b/,alias:"global"},type:{pattern:/\b(?:any|array|binary|boolean|date|guid|numeric|query|string|struct|uuid|void|xml)\b/,alias:"builtin"}}),d.languages.insertBefore("cfscript","keyword",{"function-variable":{pattern:/[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"}}),delete d.languages.cfscript["class-name"],d.languages.cfc=d.languages.cfscript}},73435:function(J,C,d){"use strict";var b=d(87071);J.exports=I,I.displayName="chaiscript",I.aliases=[];function I(L){L.register(b),L.languages.chaiscript=L.languages.extend("clike",{string:{pattern:/(^|[^\\])'(?:[^'\\]|\\[\s\S])*'/,lookbehind:!0,greedy:!0},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},{pattern:/(\b(?:attr|def)\s+)\w+(?=\s*::)/,lookbehind:!0}],keyword:/\b(?:attr|auto|break|case|catch|class|continue|def|default|else|finally|for|fun|global|if|return|switch|this|try|var|while)\b/,number:[L.languages.cpp.number,/\b(?:Infinity|NaN)\b/],operator:/>>=?|<<=?|\|\||&&|:[:=]?|--|\+\+|[=!<>+\-*/%|&^]=?|[?~]|`[^`\r\n]{1,4}`/}),L.languages.insertBefore("chaiscript","operator",{"parameter-type":{pattern:/([,(]\s*)\w+(?=\s+\w)/,lookbehind:!0,alias:"class-name"}}),L.languages.insertBefore("chaiscript","string",{"string-interpolation":{pattern:/(^|[^\\])"(?:[^"$\\]|\\[\s\S]|\$(?!\{)|\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\}/,lookbehind:!0,inside:{"interpolation-expression":{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:L.languages.chaiscript},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"}}},string:/[\s\S]+/}}})}},91372:function(J){"use strict";J.exports=C,C.displayName="cil",C.aliases=[];function C(d){d.languages.cil={comment:/\/\/.*/,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},directive:{pattern:/(^|\W)\.[a-z]+(?=\s)/,lookbehind:!0,alias:"class-name"},variable:/\[[\w\.]+\]/,keyword:/\b(?:abstract|ansi|assembly|auto|autochar|beforefieldinit|bool|bstr|byvalstr|catch|char|cil|class|currency|date|decimal|default|enum|error|explicit|extends|extern|famandassem|family|famorassem|final(?:ly)?|float32|float64|hidebysig|u?int(?:8|16|32|64)?|iant|idispatch|implements|import|initonly|instance|interface|iunknown|literal|lpstr|lpstruct|lptstr|lpwstr|managed|method|native(?:Type)?|nested|newslot|object(?:ref)?|pinvokeimpl|private|privatescope|public|reqsecobj|rtspecialname|runtime|sealed|sequential|serializable|specialname|static|string|struct|syschar|tbstr|unicode|unmanagedexp|unsigned|value(?:type)?|variant|virtual|void)\b/,function:/\b(?:(?:constrained|no|readonly|tail|unaligned|volatile)\.)?(?:conv\.(?:[iu][1248]?|ovf\.[iu][1248]?(?:\.un)?|r\.un|r4|r8)|ldc\.(?:i4(?:\.\d+|\.[mM]1|\.s)?|i8|r4|r8)|ldelem(?:\.[iu][1248]?|\.r[48]|\.ref|a)?|ldind\.(?:[iu][1248]?|r[48]|ref)|stelem\.?(?:i[1248]?|r[48]|ref)?|stind\.(?:i[1248]?|r[48]|ref)?|end(?:fault|filter|finally)|ldarg(?:\.[0-3s]|a(?:\.s)?)?|ldloc(?:\.\d+|\.s)?|sub(?:\.ovf(?:\.un)?)?|mul(?:\.ovf(?:\.un)?)?|add(?:\.ovf(?:\.un)?)?|stloc(?:\.[0-3s])?|refany(?:type|val)|blt(?:\.un)?(?:\.s)?|ble(?:\.un)?(?:\.s)?|bgt(?:\.un)?(?:\.s)?|bge(?:\.un)?(?:\.s)?|unbox(?:\.any)?|init(?:blk|obj)|call(?:i|virt)?|brfalse(?:\.s)?|bne\.un(?:\.s)?|ldloca(?:\.s)?|brzero(?:\.s)?|brtrue(?:\.s)?|brnull(?:\.s)?|brinst(?:\.s)?|starg(?:\.s)?|leave(?:\.s)?|shr(?:\.un)?|rem(?:\.un)?|div(?:\.un)?|clt(?:\.un)?|alignment|castclass|ldvirtftn|beq(?:\.s)?|ckfinite|ldsflda|ldtoken|localloc|mkrefany|rethrow|cgt\.un|arglist|switch|stsfld|sizeof|newobj|newarr|ldsfld|ldnull|ldflda|isinst|throw|stobj|stfld|ldstr|ldobj|ldlen|ldftn|ldfld|cpobj|cpblk|break|br\.s|xor|shl|ret|pop|not|nop|neg|jmp|dup|cgt|ceq|box|and|or|br)\b/,boolean:/\b(?:false|true)\b/,number:/\b-?(?:0x[0-9a-f]+|\d+)(?:\.[0-9a-f]+)?\b/i,punctuation:/[{}[\];(),:=]|IL_[0-9A-Za-z]+/}}},9720:function(J){"use strict";J.exports=C,C.displayName="clike",C.aliases=[];function C(d){d.languages.clike={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|trait)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:break|catch|continue|do|else|finally|for|function|if|in|instanceof|new|null|return|throw|try|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b\w+(?=\()/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}},63663:function(J){"use strict";J.exports=C,C.displayName="clojure",C.aliases=[];function C(d){d.languages.clojure={comment:{pattern:/;.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},char:/\\\w+/,symbol:{pattern:/(^|[\s()\[\]{},])::?[\w*+!?'<>=/.-]+/,lookbehind:!0},keyword:{pattern:/(\()(?:-|->|->>|\.|\.\.|\*|\/|\+|<|<=|=|==|>|>=|accessor|agent|agent-errors|aget|alength|all-ns|alter|and|append-child|apply|array-map|aset|aset-boolean|aset-byte|aset-char|aset-double|aset-float|aset-int|aset-long|aset-short|assert|assoc|await|await-for|bean|binding|bit-and|bit-not|bit-or|bit-shift-left|bit-shift-right|bit-xor|boolean|branch\?|butlast|byte|cast|char|children|class|clear-agent-errors|comment|commute|comp|comparator|complement|concat|cond|conj|cons|constantly|construct-proxy|contains\?|count|create-ns|create-struct|cycle|dec|declare|def|def-|definline|definterface|defmacro|defmethod|defmulti|defn|defn-|defonce|defproject|defprotocol|defrecord|defstruct|deftype|deref|difference|disj|dissoc|distinct|do|doall|doc|dorun|doseq|dosync|dotimes|doto|double|down|drop|drop-while|edit|end\?|ensure|eval|every\?|false\?|ffirst|file-seq|filter|find|find-doc|find-ns|find-var|first|float|flush|fn|fnseq|for|frest|gensym|get|get-proxy-class|hash-map|hash-set|identical\?|identity|if|if-let|if-not|import|in-ns|inc|index|insert-child|insert-left|insert-right|inspect-table|inspect-tree|instance\?|int|interleave|intersection|into|into-array|iterate|join|key|keys|keyword|keyword\?|last|lazy-cat|lazy-cons|left|lefts|let|line-seq|list|list\*|load|load-file|locking|long|loop|macroexpand|macroexpand-1|make-array|make-node|map|map-invert|map\?|mapcat|max|max-key|memfn|merge|merge-with|meta|min|min-key|monitor-enter|name|namespace|neg\?|new|newline|next|nil\?|node|not|not-any\?|not-every\?|not=|ns|ns-imports|ns-interns|ns-map|ns-name|ns-publics|ns-refers|ns-resolve|ns-unmap|nth|nthrest|or|parse|partial|path|peek|pop|pos\?|pr|pr-str|print|print-str|println|println-str|prn|prn-str|project|proxy|proxy-mappings|quot|quote|rand|rand-int|range|re-find|re-groups|re-matcher|re-matches|re-pattern|re-seq|read|read-line|recur|reduce|ref|ref-set|refer|rem|remove|remove-method|remove-ns|rename|rename-keys|repeat|replace|replicate|resolve|rest|resultset-seq|reverse|rfirst|right|rights|root|rrest|rseq|second|select|select-keys|send|send-off|seq|seq-zip|seq\?|set|set!|short|slurp|some|sort|sort-by|sorted-map|sorted-map-by|sorted-set|special-symbol\?|split-at|split-with|str|string\?|struct|struct-map|subs|subvec|symbol|symbol\?|sync|take|take-nth|take-while|test|throw|time|to-array|to-array-2d|tree-seq|true\?|try|union|up|update-proxy|val|vals|var|var-get|var-set|var\?|vector|vector-zip|vector\?|when|when-first|when-let|when-not|with-local-vars|with-meta|with-open|with-out-str|xml-seq|xml-zip|zero\?|zipmap|zipper)(?=[\s)]|$)/,lookbehind:!0},boolean:/\b(?:false|nil|true)\b/,number:{pattern:/(^|[^\w$@])(?:\d+(?:[/.]\d+)?(?:e[+-]?\d+)?|0x[a-f0-9]+|[1-9]\d?r[a-z0-9]+)[lmn]?(?![\w$@])/i,lookbehind:!0},function:{pattern:/((?:^|[^'])\()[\w*+!?'<>=/.-]+(?=[\s)]|$)/,lookbehind:!0},operator:/[#@^`~]/,punctuation:/[{}\[\](),]/}}},92987:function(J){"use strict";J.exports=C,C.displayName="cmake",C.aliases=[];function C(d){d.languages.cmake={comment:/#.*/,string:{pattern:/"(?:[^\\"]|\\.)*"/,greedy:!0,inside:{interpolation:{pattern:/\$\{(?:[^{}$]|\$\{[^{}$]*\})*\}/,inside:{punctuation:/\$\{|\}/,variable:/\w+/}}}},variable:/\b(?:CMAKE_\w+|\w+_(?:(?:BINARY|SOURCE)_DIR|DESCRIPTION|HOMEPAGE_URL|ROOT|VERSION(?:_MAJOR|_MINOR|_PATCH|_TWEAK)?)|(?:ANDROID|APPLE|BORLAND|BUILD_SHARED_LIBS|CACHE|CPACK_(?:ABSOLUTE_DESTINATION_FILES|COMPONENT_INCLUDE_TOPLEVEL_DIRECTORY|ERROR_ON_ABSOLUTE_INSTALL_DESTINATION|INCLUDE_TOPLEVEL_DIRECTORY|INSTALL_DEFAULT_DIRECTORY_PERMISSIONS|INSTALL_SCRIPT|PACKAGING_INSTALL_PREFIX|SET_DESTDIR|WARN_ON_ABSOLUTE_INSTALL_DESTINATION)|CTEST_(?:BINARY_DIRECTORY|BUILD_COMMAND|BUILD_NAME|BZR_COMMAND|BZR_UPDATE_OPTIONS|CHANGE_ID|CHECKOUT_COMMAND|CONFIGURATION_TYPE|CONFIGURE_COMMAND|COVERAGE_COMMAND|COVERAGE_EXTRA_FLAGS|CURL_OPTIONS|CUSTOM_(?:COVERAGE_EXCLUDE|ERROR_EXCEPTION|ERROR_MATCH|ERROR_POST_CONTEXT|ERROR_PRE_CONTEXT|MAXIMUM_FAILED_TEST_OUTPUT_SIZE|MAXIMUM_NUMBER_OF_(?:ERRORS|WARNINGS)|MAXIMUM_PASSED_TEST_OUTPUT_SIZE|MEMCHECK_IGNORE|POST_MEMCHECK|POST_TEST|PRE_MEMCHECK|PRE_TEST|TESTS_IGNORE|WARNING_EXCEPTION|WARNING_MATCH)|CVS_CHECKOUT|CVS_COMMAND|CVS_UPDATE_OPTIONS|DROP_LOCATION|DROP_METHOD|DROP_SITE|DROP_SITE_CDASH|DROP_SITE_PASSWORD|DROP_SITE_USER|EXTRA_COVERAGE_GLOB|GIT_COMMAND|GIT_INIT_SUBMODULES|GIT_UPDATE_CUSTOM|GIT_UPDATE_OPTIONS|HG_COMMAND|HG_UPDATE_OPTIONS|LABELS_FOR_SUBPROJECTS|MEMORYCHECK_(?:COMMAND|COMMAND_OPTIONS|SANITIZER_OPTIONS|SUPPRESSIONS_FILE|TYPE)|NIGHTLY_START_TIME|P4_CLIENT|P4_COMMAND|P4_OPTIONS|P4_UPDATE_OPTIONS|RUN_CURRENT_SCRIPT|SCP_COMMAND|SITE|SOURCE_DIRECTORY|SUBMIT_URL|SVN_COMMAND|SVN_OPTIONS|SVN_UPDATE_OPTIONS|TEST_LOAD|TEST_TIMEOUT|TRIGGER_SITE|UPDATE_COMMAND|UPDATE_OPTIONS|UPDATE_VERSION_ONLY|USE_LAUNCHERS)|CYGWIN|ENV|EXECUTABLE_OUTPUT_PATH|GHS-MULTI|IOS|LIBRARY_OUTPUT_PATH|MINGW|MSVC(?:10|11|12|14|60|70|71|80|90|_IDE|_TOOLSET_VERSION|_VERSION)?|MSYS|PROJECT_(?:BINARY_DIR|DESCRIPTION|HOMEPAGE_URL|NAME|SOURCE_DIR|VERSION|VERSION_(?:MAJOR|MINOR|PATCH|TWEAK))|UNIX|WIN32|WINCE|WINDOWS_PHONE|WINDOWS_STORE|XCODE|XCODE_VERSION))\b/,property:/\b(?:cxx_\w+|(?:ARCHIVE_OUTPUT_(?:DIRECTORY|NAME)|COMPILE_DEFINITIONS|COMPILE_PDB_NAME|COMPILE_PDB_OUTPUT_DIRECTORY|EXCLUDE_FROM_DEFAULT_BUILD|IMPORTED_(?:IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_LANGUAGES|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|NO_SONAME|OBJECTS|SONAME)|INTERPROCEDURAL_OPTIMIZATION|LIBRARY_OUTPUT_DIRECTORY|LIBRARY_OUTPUT_NAME|LINK_FLAGS|LINK_INTERFACE_LIBRARIES|LINK_INTERFACE_MULTIPLICITY|LOCATION|MAP_IMPORTED_CONFIG|OSX_ARCHITECTURES|OUTPUT_NAME|PDB_NAME|PDB_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_DIRECTORY|RUNTIME_OUTPUT_NAME|STATIC_LIBRARY_FLAGS|VS_CSHARP|VS_DOTNET_REFERENCEPROP|VS_DOTNET_REFERENCE|VS_GLOBAL_SECTION_POST|VS_GLOBAL_SECTION_PRE|VS_GLOBAL|XCODE_ATTRIBUTE)_\w+|\w+_(?:CLANG_TIDY|COMPILER_LAUNCHER|CPPCHECK|CPPLINT|INCLUDE_WHAT_YOU_USE|OUTPUT_NAME|POSTFIX|VISIBILITY_PRESET)|ABSTRACT|ADDITIONAL_MAKE_CLEAN_FILES|ADVANCED|ALIASED_TARGET|ALLOW_DUPLICATE_CUSTOM_TARGETS|ANDROID_(?:ANT_ADDITIONAL_OPTIONS|API|API_MIN|ARCH|ASSETS_DIRECTORIES|GUI|JAR_DEPENDENCIES|NATIVE_LIB_DEPENDENCIES|NATIVE_LIB_DIRECTORIES|PROCESS_MAX|PROGUARD|PROGUARD_CONFIG_PATH|SECURE_PROPS_PATH|SKIP_ANT_STEP|STL_TYPE)|ARCHIVE_OUTPUT_DIRECTORY|ATTACHED_FILES|ATTACHED_FILES_ON_FAIL|AUTOGEN_(?:BUILD_DIR|ORIGIN_DEPENDS|PARALLEL|SOURCE_GROUP|TARGETS_FOLDER|TARGET_DEPENDS)|AUTOMOC|AUTOMOC_(?:COMPILER_PREDEFINES|DEPEND_FILTERS|EXECUTABLE|MACRO_NAMES|MOC_OPTIONS|SOURCE_GROUP|TARGETS_FOLDER)|AUTORCC|AUTORCC_EXECUTABLE|AUTORCC_OPTIONS|AUTORCC_SOURCE_GROUP|AUTOUIC|AUTOUIC_EXECUTABLE|AUTOUIC_OPTIONS|AUTOUIC_SEARCH_PATHS|BINARY_DIR|BUILDSYSTEM_TARGETS|BUILD_RPATH|BUILD_RPATH_USE_ORIGIN|BUILD_WITH_INSTALL_NAME_DIR|BUILD_WITH_INSTALL_RPATH|BUNDLE|BUNDLE_EXTENSION|CACHE_VARIABLES|CLEAN_NO_CUSTOM|COMMON_LANGUAGE_RUNTIME|COMPATIBLE_INTERFACE_(?:BOOL|NUMBER_MAX|NUMBER_MIN|STRING)|COMPILE_(?:DEFINITIONS|FEATURES|FLAGS|OPTIONS|PDB_NAME|PDB_OUTPUT_DIRECTORY)|COST|CPACK_DESKTOP_SHORTCUTS|CPACK_NEVER_OVERWRITE|CPACK_PERMANENT|CPACK_STARTUP_SHORTCUTS|CPACK_START_MENU_SHORTCUTS|CPACK_WIX_ACL|CROSSCOMPILING_EMULATOR|CUDA_EXTENSIONS|CUDA_PTX_COMPILATION|CUDA_RESOLVE_DEVICE_SYMBOLS|CUDA_SEPARABLE_COMPILATION|CUDA_STANDARD|CUDA_STANDARD_REQUIRED|CXX_EXTENSIONS|CXX_STANDARD|CXX_STANDARD_REQUIRED|C_EXTENSIONS|C_STANDARD|C_STANDARD_REQUIRED|DEBUG_CONFIGURATIONS|DEFINE_SYMBOL|DEFINITIONS|DEPENDS|DEPLOYMENT_ADDITIONAL_FILES|DEPLOYMENT_REMOTE_DIRECTORY|DISABLED|DISABLED_FEATURES|ECLIPSE_EXTRA_CPROJECT_CONTENTS|ECLIPSE_EXTRA_NATURES|ENABLED_FEATURES|ENABLED_LANGUAGES|ENABLE_EXPORTS|ENVIRONMENT|EXCLUDE_FROM_ALL|EXCLUDE_FROM_DEFAULT_BUILD|EXPORT_NAME|EXPORT_PROPERTIES|EXTERNAL_OBJECT|EchoString|FAIL_REGULAR_EXPRESSION|FIND_LIBRARY_USE_LIB32_PATHS|FIND_LIBRARY_USE_LIB64_PATHS|FIND_LIBRARY_USE_LIBX32_PATHS|FIND_LIBRARY_USE_OPENBSD_VERSIONING|FIXTURES_CLEANUP|FIXTURES_REQUIRED|FIXTURES_SETUP|FOLDER|FRAMEWORK|Fortran_FORMAT|Fortran_MODULE_DIRECTORY|GENERATED|GENERATOR_FILE_NAME|GENERATOR_IS_MULTI_CONFIG|GHS_INTEGRITY_APP|GHS_NO_SOURCE_GROUP_FILE|GLOBAL_DEPENDS_DEBUG_MODE|GLOBAL_DEPENDS_NO_CYCLES|GNUtoMS|HAS_CXX|HEADER_FILE_ONLY|HELPSTRING|IMPLICIT_DEPENDS_INCLUDE_TRANSFORM|IMPORTED|IMPORTED_(?:COMMON_LANGUAGE_RUNTIME|CONFIGURATIONS|GLOBAL|IMPLIB|LIBNAME|LINK_DEPENDENT_LIBRARIES|LINK_INTERFACE_(?:LANGUAGES|LIBRARIES|MULTIPLICITY)|LOCATION|NO_SONAME|OBJECTS|SONAME)|IMPORT_PREFIX|IMPORT_SUFFIX|INCLUDE_DIRECTORIES|INCLUDE_REGULAR_EXPRESSION|INSTALL_NAME_DIR|INSTALL_RPATH|INSTALL_RPATH_USE_LINK_PATH|INTERFACE_(?:AUTOUIC_OPTIONS|COMPILE_DEFINITIONS|COMPILE_FEATURES|COMPILE_OPTIONS|INCLUDE_DIRECTORIES|LINK_DEPENDS|LINK_DIRECTORIES|LINK_LIBRARIES|LINK_OPTIONS|POSITION_INDEPENDENT_CODE|SOURCES|SYSTEM_INCLUDE_DIRECTORIES)|INTERPROCEDURAL_OPTIMIZATION|IN_TRY_COMPILE|IOS_INSTALL_COMBINED|JOB_POOLS|JOB_POOL_COMPILE|JOB_POOL_LINK|KEEP_EXTENSION|LABELS|LANGUAGE|LIBRARY_OUTPUT_DIRECTORY|LINKER_LANGUAGE|LINK_(?:DEPENDS|DEPENDS_NO_SHARED|DIRECTORIES|FLAGS|INTERFACE_LIBRARIES|INTERFACE_MULTIPLICITY|LIBRARIES|OPTIONS|SEARCH_END_STATIC|SEARCH_START_STATIC|WHAT_YOU_USE)|LISTFILE_STACK|LOCATION|MACOSX_BUNDLE|MACOSX_BUNDLE_INFO_PLIST|MACOSX_FRAMEWORK_INFO_PLIST|MACOSX_PACKAGE_LOCATION|MACOSX_RPATH|MACROS|MANUALLY_ADDED_DEPENDENCIES|MEASUREMENT|MODIFIED|NAME|NO_SONAME|NO_SYSTEM_FROM_IMPORTED|OBJECT_DEPENDS|OBJECT_OUTPUTS|OSX_ARCHITECTURES|OUTPUT_NAME|PACKAGES_FOUND|PACKAGES_NOT_FOUND|PARENT_DIRECTORY|PASS_REGULAR_EXPRESSION|PDB_NAME|PDB_OUTPUT_DIRECTORY|POSITION_INDEPENDENT_CODE|POST_INSTALL_SCRIPT|PREDEFINED_TARGETS_FOLDER|PREFIX|PRE_INSTALL_SCRIPT|PRIVATE_HEADER|PROCESSORS|PROCESSOR_AFFINITY|PROJECT_LABEL|PUBLIC_HEADER|REPORT_UNDEFINED_PROPERTIES|REQUIRED_FILES|RESOURCE|RESOURCE_LOCK|RULE_LAUNCH_COMPILE|RULE_LAUNCH_CUSTOM|RULE_LAUNCH_LINK|RULE_MESSAGES|RUNTIME_OUTPUT_DIRECTORY|RUN_SERIAL|SKIP_AUTOGEN|SKIP_AUTOMOC|SKIP_AUTORCC|SKIP_AUTOUIC|SKIP_BUILD_RPATH|SKIP_RETURN_CODE|SOURCES|SOURCE_DIR|SOVERSION|STATIC_LIBRARY_FLAGS|STATIC_LIBRARY_OPTIONS|STRINGS|SUBDIRECTORIES|SUFFIX|SYMBOLIC|TARGET_ARCHIVES_MAY_BE_SHARED_LIBS|TARGET_MESSAGES|TARGET_SUPPORTS_SHARED_LIBS|TESTS|TEST_INCLUDE_FILE|TEST_INCLUDE_FILES|TIMEOUT|TIMEOUT_AFTER_MATCH|TYPE|USE_FOLDERS|VALUE|VARIABLES|VERSION|VISIBILITY_INLINES_HIDDEN|VS_(?:CONFIGURATION_TYPE|COPY_TO_OUT_DIR|DEBUGGER_(?:COMMAND|COMMAND_ARGUMENTS|ENVIRONMENT|WORKING_DIRECTORY)|DEPLOYMENT_CONTENT|DEPLOYMENT_LOCATION|DOTNET_REFERENCES|DOTNET_REFERENCES_COPY_LOCAL|GLOBAL_KEYWORD|GLOBAL_PROJECT_TYPES|GLOBAL_ROOTNAMESPACE|INCLUDE_IN_VSIX|IOT_STARTUP_TASK|KEYWORD|RESOURCE_GENERATOR|SCC_AUXPATH|SCC_LOCALPATH|SCC_PROJECTNAME|SCC_PROVIDER|SDK_REFERENCES|SHADER_(?:DISABLE_OPTIMIZATIONS|ENABLE_DEBUG|ENTRYPOINT|FLAGS|MODEL|OBJECT_FILE_NAME|OUTPUT_HEADER_FILE|TYPE|VARIABLE_NAME)|STARTUP_PROJECT|TOOL_OVERRIDE|USER_PROPS|WINRT_COMPONENT|WINRT_EXTENSIONS|WINRT_REFERENCES|XAML_TYPE)|WILL_FAIL|WIN32_EXECUTABLE|WINDOWS_EXPORT_ALL_SYMBOLS|WORKING_DIRECTORY|WRAP_EXCLUDE|XCODE_(?:EMIT_EFFECTIVE_PLATFORM_NAME|EXPLICIT_FILE_TYPE|FILE_ATTRIBUTES|LAST_KNOWN_FILE_TYPE|PRODUCT_TYPE|SCHEME_(?:ADDRESS_SANITIZER|ADDRESS_SANITIZER_USE_AFTER_RETURN|ARGUMENTS|DISABLE_MAIN_THREAD_CHECKER|DYNAMIC_LIBRARY_LOADS|DYNAMIC_LINKER_API_USAGE|ENVIRONMENT|EXECUTABLE|GUARD_MALLOC|MAIN_THREAD_CHECKER_STOP|MALLOC_GUARD_EDGES|MALLOC_SCRIBBLE|MALLOC_STACK|THREAD_SANITIZER(?:_STOP)?|UNDEFINED_BEHAVIOUR_SANITIZER(?:_STOP)?|ZOMBIE_OBJECTS))|XCTEST)\b/,keyword:/\b(?:add_compile_definitions|add_compile_options|add_custom_command|add_custom_target|add_definitions|add_dependencies|add_executable|add_library|add_link_options|add_subdirectory|add_test|aux_source_directory|break|build_command|build_name|cmake_host_system_information|cmake_minimum_required|cmake_parse_arguments|cmake_policy|configure_file|continue|create_test_sourcelist|ctest_build|ctest_configure|ctest_coverage|ctest_empty_binary_directory|ctest_memcheck|ctest_read_custom_files|ctest_run_script|ctest_sleep|ctest_start|ctest_submit|ctest_test|ctest_update|ctest_upload|define_property|else|elseif|enable_language|enable_testing|endforeach|endfunction|endif|endmacro|endwhile|exec_program|execute_process|export|export_library_dependencies|file|find_file|find_library|find_package|find_path|find_program|fltk_wrap_ui|foreach|function|get_cmake_property|get_directory_property|get_filename_component|get_property|get_source_file_property|get_target_property|get_test_property|if|include|include_directories|include_external_msproject|include_guard|include_regular_expression|install|install_files|install_programs|install_targets|link_directories|link_libraries|list|load_cache|load_command|macro|make_directory|mark_as_advanced|math|message|option|output_required_files|project|qt_wrap_cpp|qt_wrap_ui|remove|remove_definitions|return|separate_arguments|set|set_directory_properties|set_property|set_source_files_properties|set_target_properties|set_tests_properties|site_name|source_group|string|subdir_depends|subdirs|target_compile_definitions|target_compile_features|target_compile_options|target_include_directories|target_link_directories|target_link_libraries|target_link_options|target_sources|try_compile|try_run|unset|use_mangled_mesa|utility_source|variable_requires|variable_watch|while|write_file)(?=\s*\()\b/,boolean:/\b(?:FALSE|OFF|ON|TRUE)\b/,namespace:/\b(?:INTERFACE|PRIVATE|PROPERTIES|PUBLIC|SHARED|STATIC|TARGET_OBJECTS)\b/,operator:/\b(?:AND|DEFINED|EQUAL|GREATER|LESS|MATCHES|NOT|OR|STREQUAL|STRGREATER|STRLESS|VERSION_EQUAL|VERSION_GREATER|VERSION_LESS)\b/,inserted:{pattern:/\b\w+::\w+\b/,alias:"class-name"},number:/\b\d+(?:\.\d+)*\b/,function:/\b[a-z_]\w*(?=\s*\()\b/i,punctuation:/[()>}]|\$[<{]/}}},91657:function(J){"use strict";J.exports=C,C.displayName="cobol",C.aliases=[];function C(d){d.languages.cobol={comment:{pattern:/\*>.*|(^[ \t]*)\*.*/m,lookbehind:!0,greedy:!0},string:{pattern:/[xzgn]?(?:"(?:[^\r\n"]|"")*"(?!")|'(?:[^\r\n']|'')*'(?!'))/i,greedy:!0},level:{pattern:/(^[ \t]*)\d+\b/m,lookbehind:!0,greedy:!0,alias:"number"},"class-name":{pattern:/(\bpic(?:ture)?\s+)(?:(?:[-\w$/,:*+<>]|\.(?!\s|$))(?:\(\d+\))?)+/i,lookbehind:!0,inside:{number:{pattern:/(\()\d+/,lookbehind:!0},punctuation:/[()]/}},keyword:{pattern:/(^|[^\w-])(?:ABORT|ACCEPT|ACCESS|ADD|ADDRESS|ADVANCING|AFTER|ALIGNED|ALL|ALPHABET|ALPHABETIC|ALPHABETIC-LOWER|ALPHABETIC-UPPER|ALPHANUMERIC|ALPHANUMERIC-EDITED|ALSO|ALTER|ALTERNATE|ANY|ARE|AREA|AREAS|AS|ASCENDING|ASCII|ASSIGN|ASSOCIATED-DATA|ASSOCIATED-DATA-LENGTH|AT|ATTRIBUTE|AUTHOR|AUTO|AUTO-SKIP|BACKGROUND-COLOR|BACKGROUND-COLOUR|BASIS|BEEP|BEFORE|BEGINNING|BELL|BINARY|BIT|BLANK|BLINK|BLOCK|BOTTOM|BOUNDS|BY|BYFUNCTION|BYTITLE|CALL|CANCEL|CAPABLE|CCSVERSION|CD|CF|CH|CHAINING|CHANGED|CHANNEL|CHARACTER|CHARACTERS|CLASS|CLASS-ID|CLOCK-UNITS|CLOSE|CLOSE-DISPOSITION|COBOL|CODE|CODE-SET|COL|COLLATING|COLUMN|COM-REG|COMMA|COMMITMENT|COMMON|COMMUNICATION|COMP|COMP-1|COMP-2|COMP-3|COMP-4|COMP-5|COMPUTATIONAL|COMPUTATIONAL-1|COMPUTATIONAL-2|COMPUTATIONAL-3|COMPUTATIONAL-4|COMPUTATIONAL-5|COMPUTE|CONFIGURATION|CONTAINS|CONTENT|CONTINUE|CONTROL|CONTROL-POINT|CONTROLS|CONVENTION|CONVERTING|COPY|CORR|CORRESPONDING|COUNT|CRUNCH|CURRENCY|CURSOR|DATA|DATA-BASE|DATE|DATE-COMPILED|DATE-WRITTEN|DAY|DAY-OF-WEEK|DBCS|DE|DEBUG-CONTENTS|DEBUG-ITEM|DEBUG-LINE|DEBUG-NAME|DEBUG-SUB-1|DEBUG-SUB-2|DEBUG-SUB-3|DEBUGGING|DECIMAL-POINT|DECLARATIVES|DEFAULT|DEFAULT-DISPLAY|DEFINITION|DELETE|DELIMITED|DELIMITER|DEPENDING|DESCENDING|DESTINATION|DETAIL|DFHRESP|DFHVALUE|DISABLE|DISK|DISPLAY|DISPLAY-1|DIVIDE|DIVISION|DONTCARE|DOUBLE|DOWN|DUPLICATES|DYNAMIC|EBCDIC|EGCS|EGI|ELSE|EMI|EMPTY-CHECK|ENABLE|END|END-ACCEPT|END-ADD|END-CALL|END-COMPUTE|END-DELETE|END-DIVIDE|END-EVALUATE|END-IF|END-MULTIPLY|END-OF-PAGE|END-PERFORM|END-READ|END-RECEIVE|END-RETURN|END-REWRITE|END-SEARCH|END-START|END-STRING|END-SUBTRACT|END-UNSTRING|END-WRITE|ENDING|ENTER|ENTRY|ENTRY-PROCEDURE|ENVIRONMENT|EOL|EOP|EOS|ERASE|ERROR|ESCAPE|ESI|EVALUATE|EVENT|EVERY|EXCEPTION|EXCLUSIVE|EXHIBIT|EXIT|EXPORT|EXTEND|EXTENDED|EXTERNAL|FD|FILE|FILE-CONTROL|FILLER|FINAL|FIRST|FOOTING|FOR|FOREGROUND-COLOR|FOREGROUND-COLOUR|FROM|FULL|FUNCTION|FUNCTION-POINTER|FUNCTIONNAME|GENERATE|GIVING|GLOBAL|GO|GOBACK|GRID|GROUP|HEADING|HIGH-VALUE|HIGH-VALUES|HIGHLIGHT|I-O|I-O-CONTROL|ID|IDENTIFICATION|IF|IMPLICIT|IMPORT|IN|INDEX|INDEXED|INDICATE|INITIAL|INITIALIZE|INITIATE|INPUT|INPUT-OUTPUT|INSPECT|INSTALLATION|INTEGER|INTO|INVALID|INVOKE|IS|JUST|JUSTIFIED|KANJI|KEPT|KEY|KEYBOARD|LABEL|LANGUAGE|LAST|LB|LD|LEADING|LEFT|LEFTLINE|LENGTH|LENGTH-CHECK|LIBACCESS|LIBPARAMETER|LIBRARY|LIMIT|LIMITS|LINAGE|LINAGE-COUNTER|LINE|LINE-COUNTER|LINES|LINKAGE|LIST|LOCAL|LOCAL-STORAGE|LOCK|LONG-DATE|LONG-TIME|LOW-VALUE|LOW-VALUES|LOWER|LOWLIGHT|MEMORY|MERGE|MESSAGE|MMDDYYYY|MODE|MODULES|MORE-LABELS|MOVE|MULTIPLE|MULTIPLY|NAMED|NATIONAL|NATIONAL-EDITED|NATIVE|NEGATIVE|NETWORK|NEXT|NO|NO-ECHO|NULL|NULLS|NUMBER|NUMERIC|NUMERIC-DATE|NUMERIC-EDITED|NUMERIC-TIME|OBJECT-COMPUTER|OCCURS|ODT|OF|OFF|OMITTED|ON|OPEN|OPTIONAL|ORDER|ORDERLY|ORGANIZATION|OTHER|OUTPUT|OVERFLOW|OVERLINE|OWN|PACKED-DECIMAL|PADDING|PAGE|PAGE-COUNTER|PASSWORD|PERFORM|PF|PH|PIC|PICTURE|PLUS|POINTER|PORT|POSITION|POSITIVE|PRINTER|PRINTING|PRIVATE|PROCEDURE|PROCEDURE-POINTER|PROCEDURES|PROCEED|PROCESS|PROGRAM|PROGRAM-ID|PROGRAM-LIBRARY|PROMPT|PURGE|QUEUE|QUOTE|QUOTES|RANDOM|RD|READ|READER|REAL|RECEIVE|RECEIVED|RECORD|RECORDING|RECORDS|RECURSIVE|REDEFINES|REEL|REF|REFERENCE|REFERENCES|RELATIVE|RELEASE|REMAINDER|REMARKS|REMOTE|REMOVAL|REMOVE|RENAMES|REPLACE|REPLACING|REPORT|REPORTING|REPORTS|REQUIRED|RERUN|RESERVE|RESET|RETURN|RETURN-CODE|RETURNING|REVERSE-VIDEO|REVERSED|REWIND|REWRITE|RF|RH|RIGHT|ROUNDED|RUN|SAME|SAVE|SCREEN|SD|SEARCH|SECTION|SECURE|SECURITY|SEGMENT|SEGMENT-LIMIT|SELECT|SEND|SENTENCE|SEPARATE|SEQUENCE|SEQUENTIAL|SET|SHARED|SHAREDBYALL|SHAREDBYRUNUNIT|SHARING|SHIFT-IN|SHIFT-OUT|SHORT-DATE|SIGN|SIZE|SORT|SORT-CONTROL|SORT-CORE-SIZE|SORT-FILE-SIZE|SORT-MERGE|SORT-MESSAGE|SORT-MODE-SIZE|SORT-RETURN|SOURCE|SOURCE-COMPUTER|SPACE|SPACES|SPECIAL-NAMES|STANDARD|STANDARD-1|STANDARD-2|START|STATUS|STOP|STRING|SUB-QUEUE-1|SUB-QUEUE-2|SUB-QUEUE-3|SUBTRACT|SUM|SUPPRESS|SYMBOL|SYMBOLIC|SYNC|SYNCHRONIZED|TABLE|TALLY|TALLYING|TAPE|TASK|TERMINAL|TERMINATE|TEST|TEXT|THEN|THREAD|THREAD-LOCAL|THROUGH|THRU|TIME|TIMER|TIMES|TITLE|TO|TODAYS-DATE|TODAYS-NAME|TOP|TRAILING|TRUNCATED|TYPE|TYPEDEF|UNDERLINE|UNIT|UNSTRING|UNTIL|UP|UPON|USAGE|USE|USING|VALUE|VALUES|VARYING|VIRTUAL|WAIT|WHEN|WHEN-COMPILED|WITH|WORDS|WORKING-STORAGE|WRITE|YEAR|YYYYDDD|YYYYMMDD|ZERO-FILL|ZEROES|ZEROS)(?![\w-])/i,lookbehind:!0},boolean:{pattern:/(^|[^\w-])(?:false|true)(?![\w-])/i,lookbehind:!0},number:{pattern:/(^|[^\w-])(?:[+-]?(?:(?:\d+(?:[.,]\d+)?|[.,]\d+)(?:e[+-]?\d+)?|zero))(?![\w-])/i,lookbehind:!0},operator:[/<>|[<>]=?|[=+*/&]/,{pattern:/(^|[^\w-])(?:-|and|equal|greater|less|not|or|than)(?![\w-])/i,lookbehind:!0}],punctuation:/[.:,()]/}}},34367:function(J){"use strict";J.exports=C,C.displayName="coffeescript",C.aliases=["coffee"];function C(d){(function(b){var I=/#(?!\{).+/,L={pattern:/#\{[^}]+\}/,alias:"variable"};b.languages.coffeescript=b.languages.extend("javascript",{comment:I,string:[{pattern:/'(?:\\[\s\S]|[^\\'])*'/,greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0,inside:{interpolation:L}}],keyword:/\b(?:and|break|by|catch|class|continue|debugger|delete|do|each|else|extend|extends|false|finally|for|if|in|instanceof|is|isnt|let|loop|namespace|new|no|not|null|of|off|on|or|own|return|super|switch|then|this|throw|true|try|typeof|undefined|unless|until|when|while|window|with|yes|yield)\b/,"class-member":{pattern:/@(?!\d)\w+/,alias:"variable"}}),b.languages.insertBefore("coffeescript","comment",{"multiline-comment":{pattern:/###[\s\S]+?###/,alias:"comment"},"block-regex":{pattern:/\/{3}[\s\S]*?\/{3}/,alias:"regex",inside:{comment:I,interpolation:L}}}),b.languages.insertBefore("coffeescript","string",{"inline-javascript":{pattern:/`(?:\\[\s\S]|[^\\`])*`/,inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"},script:{pattern:/[\s\S]+/,alias:"language-javascript",inside:b.languages.javascript}}},"multiline-string":[{pattern:/'''[\s\S]*?'''/,greedy:!0,alias:"string"},{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string",inside:{interpolation:L}}]}),b.languages.insertBefore("coffeescript","keyword",{property:/(?!\d)\w+(?=\s*:(?!:))/}),delete b.languages.coffeescript["template-string"],b.languages.coffee=b.languages.coffeescript})(d)}},35348:function(J){"use strict";J.exports=C,C.displayName="concurnas",C.aliases=["conc"];function C(d){d.languages.concurnas={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*)/,lookbehind:!0,greedy:!0},langext:{pattern:/\b\w+\s*\|\|[\s\S]+?\|\|/,greedy:!0,inside:{"class-name":/^\w+/,string:{pattern:/(^\s*\|\|)[\s\S]+(?=\|\|$)/,lookbehind:!0},punctuation:/\|\|/}},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/,lookbehind:!0},keyword:/\b(?:abstract|actor|also|annotation|assert|async|await|bool|boolean|break|byte|case|catch|changed|char|class|closed|constant|continue|def|default|del|double|elif|else|enum|every|extends|false|finally|float|for|from|global|gpudef|gpukernel|if|import|in|init|inject|int|lambda|local|long|loop|match|new|nodefault|null|of|onchange|open|out|override|package|parfor|parforsync|post|pre|private|protected|provide|provider|public|return|shared|short|single|size_t|sizeof|super|sync|this|throw|trait|trans|transient|true|try|typedef|unchecked|using|val|var|void|while|with)\b/,boolean:/\b(?:false|true)\b/,number:/\b0b[01][01_]*L?\b|\b0x(?:[\da-f_]*\.)?[\da-f_p+-]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfls]?/i,punctuation:/[{}[\];(),.:]/,operator:/<==|>==|=>|->|<-|<>|&==|&<>|\?:?|\.\?|\+\+|--|[-+*/=<>]=?|[!^~]|\b(?:and|as|band|bor|bxor|comp|is|isnot|mod|or)\b=?/,annotation:{pattern:/@(?:\w+:)?(?:\w+|\[[^\]]+\])?/,alias:"builtin"}},d.languages.insertBefore("concurnas","langext",{"regex-literal":{pattern:/\br("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:d.languages.concurnas},regex:/[\s\S]+/}},"string-literal":{pattern:/(?:\B|\bs)("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:d.languages.concurnas},string:/[\s\S]+/}}}),d.languages.conc=d.languages.concurnas}},26841:function(J){"use strict";J.exports=C,C.displayName="coq",C.aliases=[];function C(d){(function(b){for(var I=/\(\*(?:[^(*]|\((?!\*)|\*(?!\))|<self>)*\*\)/.source,L=0;L<2;L++)I=I.replace(/<self>/g,function(){return I});I=I.replace(/<self>/g,"[]"),b.languages.coq={comment:RegExp(I),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},attribute:[{pattern:RegExp(/#\[(?:[^\[\]("]|"(?:[^"]|"")*"(?!")|\((?!\*)|<comment>)*\]/.source.replace(/<comment>/g,function(){return I})),greedy:!0,alias:"attr-name",inside:{comment:RegExp(I),string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},operator:/=/,punctuation:/^#\[|\]$|[,()]/}},{pattern:/\b(?:Cumulative|Global|Local|Monomorphic|NonCumulative|Polymorphic|Private|Program)\b/,alias:"attr-name"}],keyword:/\b(?:Abort|About|Add|Admit|Admitted|All|Arguments|As|Assumptions|Axiom|Axioms|Back|BackTo|Backtrace|BinOp|BinOpSpec|BinRel|Bind|Blacklist|Canonical|Case|Cd|Check|Class|Classes|Close|CoFixpoint|CoInductive|Coercion|Coercions|Collection|Combined|Compute|Conjecture|Conjectures|Constant|Constants|Constraint|Constructors|Context|Corollary|Create|CstOp|Custom|Cut|Debug|Declare|Defined|Definition|Delimit|Dependencies|Dependent|Derive|Diffs|Drop|Elimination|End|Entry|Equality|Eval|Example|Existential|Existentials|Existing|Export|Extern|Extraction|Fact|Fail|Field|File|Firstorder|Fixpoint|Flags|Focus|From|Funclass|Function|Functional|GC|Generalizable|Goal|Grab|Grammar|Graph|Guarded|Haskell|Heap|Hide|Hint|HintDb|Hints|Hypotheses|Hypothesis|IF|Identity|Immediate|Implicit|Implicits|Import|Include|Induction|Inductive|Infix|Info|Initial|InjTyp|Inline|Inspect|Instance|Instances|Intro|Intros|Inversion|Inversion_clear|JSON|Language|Left|Lemma|Let|Lia|Libraries|Library|Load|LoadPath|Locate|Ltac|Ltac2|ML|Match|Method|Minimality|Module|Modules|Morphism|Next|NoInline|Notation|Number|OCaml|Obligation|Obligations|Opaque|Open|Optimize|Parameter|Parameters|Parametric|Path|Paths|Prenex|Preterm|Primitive|Print|Profile|Projections|Proof|Prop|PropBinOp|PropOp|PropUOp|Property|Proposition|Pwd|Qed|Quit|Rec|Record|Recursive|Redirect|Reduction|Register|Relation|Remark|Remove|Require|Reserved|Reset|Resolve|Restart|Rewrite|Right|Ring|Rings|SProp|Saturate|Save|Scheme|Scope|Scopes|Search|SearchHead|SearchPattern|SearchRewrite|Section|Separate|Set|Setoid|Show|Signatures|Solve|Solver|Sort|Sortclass|Sorted|Spec|Step|Strategies|Strategy|String|Structure|SubClass|Subgraph|SuchThat|Tactic|Term|TestCompile|Theorem|Time|Timeout|To|Transparent|Type|Typeclasses|Types|Typing|UnOp|UnOpSpec|Undelimit|Undo|Unfocus|Unfocused|Unfold|Universe|Universes|Unshelve|Variable|Variables|Variant|Verbose|View|Visibility|Zify|_|apply|as|at|by|cofix|else|end|exists|exists2|fix|for|forall|fun|if|in|let|match|measure|move|removed|return|struct|then|using|wf|where|with)\b/,number:/\b(?:0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]+)?(?:p[+-]?\d[\d_]*)?|\d[\d_]*(?:\.[\d_]+)?(?:e[+-]?\d[\d_]*)?)\b/i,punct:{pattern:/@\{|\{\||\[=|:>/,alias:"punctuation"},operator:/\/\\|\\\/|\.{2,3}|:{1,2}=|\*\*|[-=]>|<(?:->?|[+:=>]|<:)|>(?:=|->)|\|[-|]?|[-!%&*+/<=>?@^~']/,punctuation:/\.\(|`\(|@\{|`\{|\{\||\[=|:>|[:.,;(){}\[\]]/}})(d)}},87071:function(J,C,d){"use strict";var b=d(79440);J.exports=I,I.displayName="cpp",I.aliases=[];function I(L){L.register(b),function(B){var V=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char16_t|char32_t|char8_t|class|co_await|co_return|co_yield|compl|concept|const|const_cast|consteval|constexpr|constinit|continue|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int16_t|int32_t|int64_t|int8_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|uint16_t|uint32_t|uint64_t|uint8_t|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,Q=/\b(?!<keyword>)\w+(?:\s*\.\s*\w+)*\b/.source.replace(/<keyword>/g,function(){return V.source});B.languages.cpp=B.languages.extend("c",{"class-name":[{pattern:RegExp(/(\b(?:class|concept|enum|struct|typename)\s+)(?!<keyword>)\w+/.source.replace(/<keyword>/g,function(){return V.source})),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:V,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:false|true)\b/}),B.languages.insertBefore("cpp","string",{module:{pattern:RegExp(/(\b(?:import|module)\s+)/.source+"(?:"+/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|<[^<>\r\n]*>/.source+"|"+/<mod-name>(?:\s*:\s*<mod-name>)?|:\s*<mod-name>/.source.replace(/<mod-name>/g,function(){return Q})+")"),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:"string",greedy:!0}}),B.languages.insertBefore("cpp","keyword",{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:B.languages.cpp}}}}),B.languages.insertBefore("cpp","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}}),B.languages.insertBefore("cpp","class-name",{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:B.languages.extend("cpp",{})}}),B.languages.insertBefore("inside","double-colon",{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},B.languages.cpp["base-clause"])}(L)}},13652:function(J,C,d){"use strict";var b=d(75308);J.exports=I,I.displayName="crystal",I.aliases=[];function I(L){L.register(b),function(B){B.languages.crystal=B.languages.extend("ruby",{keyword:[/\b(?:__DIR__|__END_LINE__|__FILE__|__LINE__|abstract|alias|annotation|as|asm|begin|break|case|class|def|do|else|elsif|end|ensure|enum|extend|for|fun|if|ifdef|include|instance_sizeof|lib|macro|module|next|of|out|pointerof|private|protected|ptr|require|rescue|return|select|self|sizeof|struct|super|then|type|typeof|undef|uninitialized|union|unless|until|when|while|with|yield)\b/,{pattern:/(\.\s*)(?:is_a|responds_to)\?/,lookbehind:!0}],number:/\b(?:0b[01_]*[01]|0o[0-7_]*[0-7]|0x[\da-fA-F_]*[\da-fA-F]|(?:\d(?:[\d_]*\d)?)(?:\.[\d_]*\d)?(?:[eE][+-]?[\d_]*\d)?)(?:_(?:[uif](?:8|16|32|64))?)?\b/,operator:[/->/,B.languages.ruby.operator],punctuation:/[(){}[\].,;\\]/}),B.languages.insertBefore("crystal","string-literal",{attribute:{pattern:/@\[.*?\]/,inside:{delimiter:{pattern:/^@\[|\]$/,alias:"punctuation"},attribute:{pattern:/^(\s*)\w+/,lookbehind:!0,alias:"class-name"},args:{pattern:/\S(?:[\s\S]*\S)?/,inside:B.languages.crystal}}},expansion:{pattern:/\{(?:\{.*?\}|%.*?%)\}/,inside:{content:{pattern:/^(\{.)[\s\S]+(?=.\}$)/,lookbehind:!0,inside:B.languages.crystal},delimiter:{pattern:/^\{[\{%]|[\}%]\}$/,alias:"operator"}}},char:{pattern:/'(?:[^\\\r\n]{1,2}|\\(?:.|u(?:[A-Fa-f0-9]{1,4}|\{[A-Fa-f0-9]{1,6}\})))'/,greedy:!0}})}(L)}},87648:function(J){"use strict";J.exports=C,C.displayName="csharp",C.aliases=["dotnet","cs"];function C(d){(function(b){function I(Cn,Ye){return Cn.replace(/<<(\d+)>>/g,function(oe,H){return"(?:"+Ye[+H]+")"})}function L(Cn,Ye,oe){return RegExp(I(Cn,Ye),oe||"")}function B(Cn,Ye){for(var oe=0;oe<Ye;oe++)Cn=Cn.replace(/<<self>>/g,function(){return"(?:"+Cn+")"});return Cn.replace(/<<self>>/g,"[^\\s\\S]")}var V={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function Q(Cn){return"\\b(?:"+Cn.trim().replace(/ /g,"|")+")\\b"}var M=Q(V.typeDeclaration),de=RegExp(Q(V.type+" "+V.typeDeclaration+" "+V.contextual+" "+V.other)),he=Q(V.typeDeclaration+" "+V.contextual+" "+V.other),re=Q(V.type+" "+V.typeDeclaration+" "+V.other),De=B(/<(?:[^<>;=+\-*/%&|^]|<<self>>)*>/.source,2),ne=B(/\((?:[^()]|<<self>>)*\)/.source,2),it=/@?\b[A-Za-z_]\w*\b/.source,Ue=I(/<<0>>(?:\s*<<1>>)?/.source,[it,De]),Ie=I(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[he,Ue]),Pe=/\[\s*(?:,\s*)*\]/.source,ze=I(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[Ie,Pe]),Ee=I(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[De,ne,Pe]),fe=I(/\(<<0>>+(?:,<<0>>+)+\)/.source,[Ee]),we=I(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[fe,Ie,Pe]),pe={keyword:de,punctuation:/[<>()?,.:[\]]/},Ne=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,te=/"(?:\\.|[^\\"\r\n])*"/.source,Ae=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;b.languages.csharp=b.languages.extend("clike",{string:[{pattern:L(/(^|[^$\\])<<0>>/.source,[Ae]),lookbehind:!0,greedy:!0},{pattern:L(/(^|[^@$\\])<<0>>/.source,[te]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:L(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[Ie]),lookbehind:!0,inside:pe},{pattern:L(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[it,we]),lookbehind:!0,inside:pe},{pattern:L(/(\busing\s+)<<0>>(?=\s*=)/.source,[it]),lookbehind:!0},{pattern:L(/(\b<<0>>\s+)<<1>>/.source,[M,Ue]),lookbehind:!0,inside:pe},{pattern:L(/(\bcatch\s*\(\s*)<<0>>/.source,[Ie]),lookbehind:!0,inside:pe},{pattern:L(/(\bwhere\s+)<<0>>/.source,[it]),lookbehind:!0},{pattern:L(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[ze]),lookbehind:!0,inside:pe},{pattern:L(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[we,re,it]),inside:pe}],keyword:de,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),b.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),b.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:L(/([(,]\s*)<<0>>(?=\s*:)/.source,[it]),lookbehind:!0,alias:"punctuation"}}),b.languages.insertBefore("csharp","class-name",{namespace:{pattern:L(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[it]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:L(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[ne]),lookbehind:!0,alias:"class-name",inside:pe},"return-type":{pattern:L(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[we,Ie]),inside:pe,alias:"class-name"},"constructor-invocation":{pattern:L(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[we]),lookbehind:!0,inside:pe,alias:"class-name"},"generic-method":{pattern:L(/<<0>>\s*<<1>>(?=\s*\()/.source,[it,De]),inside:{function:L(/^<<0>>/.source,[it]),generic:{pattern:RegExp(De),alias:"class-name",inside:pe}}},"type-list":{pattern:L(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[M,Ue,it,we,de.source,ne,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:L(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[Ue,ne]),lookbehind:!0,greedy:!0,inside:b.languages.csharp},keyword:de,"class-name":{pattern:RegExp(we),greedy:!0,inside:pe},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var Te=te+"|"+Ne,$e=I(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[Te]),Qe=B(I(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[$e]),2),Je=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Ce=I(/<<0>>(?:\s*\(<<1>>*\))?/.source,[Ie,Qe]);b.languages.insertBefore("csharp","class-name",{attribute:{pattern:L(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[Je,Ce]),lookbehind:!0,greedy:!0,inside:{target:{pattern:L(/^<<0>>(?=\s*:)/.source,[Je]),alias:"keyword"},"attribute-arguments":{pattern:L(/\(<<0>>*\)/.source,[Qe]),inside:b.languages.csharp},"class-name":{pattern:RegExp(Ie),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var dt=/:[^}\r\n]+/.source,Xe=B(I(/[^"'/()]|<<0>>|\(<<self>>*\)/.source,[$e]),2),$t=I(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[Xe,dt]),xt=B(I(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<<self>>*\)/.source,[Te]),2),At=I(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[xt,dt]);function St(Cn,Ye){return{interpolation:{pattern:L(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[Cn]),lookbehind:!0,inside:{"format-string":{pattern:L(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Ye,dt]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:b.languages.csharp}}},string:/[\s\S]+/}}b.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:L(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[$t]),lookbehind:!0,greedy:!0,inside:St($t,Xe)},{pattern:L(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[At]),lookbehind:!0,greedy:!0,inside:St(At,xt)}],char:{pattern:RegExp(Ne),greedy:!0}}),b.languages.dotnet=b.languages.cs=b.languages.csharp})(d)}},10617:function(J,C,d){"use strict";var b=d(87648);J.exports=I,I.displayName="cshtml",I.aliases=["razor"];function I(L){L.register(b),function(B){var V=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,Q=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function M(ze,Ee){for(var fe=0;fe<Ee;fe++)ze=ze.replace(/<self>/g,function(){return"(?:"+ze+")"});return ze.replace(/<self>/g,"[^\\s\\S]").replace(/<str>/g,"(?:"+Q+")").replace(/<comment>/g,"(?:"+V+")")}var de=M(/\((?:[^()'"@/]|<str>|<comment>|<self>)*\)/.source,2),he=M(/\[(?:[^\[\]'"@/]|<str>|<comment>|<self>)*\]/.source,2),re=M(/\{(?:[^{}'"@/]|<str>|<comment>|<self>)*\}/.source,2),De=M(/<(?:[^<>'"@/]|<str>|<comment>|<self>)*>/.source,2),ne=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?/.source,it=/(?!\d)[^\s>\/=$<%]+/.source+ne+/\s*\/?>/.source,Ue=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+ne+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+it+"|"+M(/<\1/.source+ne+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+it+"|<self>")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/</.source+it+")";B.languages.cshtml=B.languages.extend("markup",{});var Ie=B.languages.insertBefore("csharp","string",{html:{pattern:RegExp(Ue),greedy:!0,inside:B.languages.cshtml}},{csharp:B.languages.extend("csharp",{})}),Pe={pattern:/\S[\s\S]*/,alias:"language-csharp",inside:Ie};B.languages.insertBefore("cshtml","prolog",{"razor-comment":{pattern:/@\*[\s\S]*?\*@/,greedy:!0,alias:"comment"},block:{pattern:RegExp(/(^|[^@])@/.source+"(?:"+[re,/(?:code|functions)\s*/.source+re,/(?:for|foreach|lock|switch|using|while)\s*/.source+de+/\s*/.source+re,/do\s*/.source+re+/\s*while\s*/.source+de+/(?:\s*;)?/.source,/try\s*/.source+re+/\s*catch\s*/.source+de+/\s*/.source+re+/\s*finally\s*/.source+re,/if\s*/.source+de+/\s*/.source+re+"(?:"+/\s*else/.source+"(?:"+/\s+if\s*/.source+de+")?"+/\s*/.source+re+")*"].join("|")+")"),lookbehind:!0,greedy:!0,inside:{keyword:/^@\w*/,csharp:Pe}},directive:{pattern:/^([ \t]*)@(?:addTagHelper|attribute|implements|inherits|inject|layout|model|namespace|page|preservewhitespace|removeTagHelper|section|tagHelperPrefix|using)(?=\s).*/m,lookbehind:!0,greedy:!0,inside:{keyword:/^@\w+/,csharp:Pe}},value:{pattern:RegExp(/(^|[^@])@/.source+/(?:await\b\s*)?/.source+"(?:"+/\w+\b/.source+"|"+de+")(?:"+/[?!]?\.\w+\b/.source+"|"+de+"|"+he+"|"+De+de+")*"),lookbehind:!0,greedy:!0,alias:"variable",inside:{keyword:/^@/,csharp:Pe}},"delegate-operator":{pattern:/(^|[^@])@(?=<)/,lookbehind:!0,alias:"operator"}}),B.languages.razor=B.languages.cshtml}(L)}},5348:function(J){"use strict";J.exports=C,C.displayName="csp",C.aliases=[];function C(d){(function(b){function I(L){return RegExp(/([ \t])/.source+"(?:"+L+")"+/(?=[\s;]|$)/.source,"i")}b.languages.csp={directive:{pattern:/(^|[\s;])(?:base-uri|block-all-mixed-content|(?:child|connect|default|font|frame|img|manifest|media|object|prefetch|script|style|worker)-src|disown-opener|form-action|frame-(?:ancestors|options)|input-protection(?:-(?:clip|selectors))?|navigate-to|plugin-types|policy-uri|referrer|reflected-xss|report-(?:to|uri)|require-sri-for|sandbox|(?:script|style)-src-(?:attr|elem)|upgrade-insecure-requests)(?=[\s;]|$)/i,lookbehind:!0,alias:"property"},scheme:{pattern:I(/[a-z][a-z0-9.+-]*:/.source),lookbehind:!0},none:{pattern:I(/'none'/.source),lookbehind:!0,alias:"keyword"},nonce:{pattern:I(/'nonce-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},hash:{pattern:I(/'sha(?:256|384|512)-[-+/\w=]+'/.source),lookbehind:!0,alias:"number"},host:{pattern:I(/[a-z][a-z0-9.+-]*:\/\/[^\s;,']*/.source+"|"+/\*[^\s;,']*/.source+"|"+/[a-z0-9-]+(?:\.[a-z0-9-]+)+(?::[\d*]+)?(?:\/[^\s;,']*)?/.source),lookbehind:!0,alias:"url",inside:{important:/\*/}},keyword:[{pattern:I(/'unsafe-[a-z-]+'/.source),lookbehind:!0,alias:"unsafe"},{pattern:I(/'[a-z-]+'/.source),lookbehind:!0,alias:"safe"}],punctuation:/;/}})(d)}},71053:function(J){"use strict";J.exports=C,C.displayName="cssExtras",C.aliases=[];function C(d){(function(b){var I=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,L;b.languages.css.selector={pattern:b.languages.css.selector.pattern,lookbehind:!0,inside:L={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+I.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[I,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},b.languages.css.atrule.inside["selector-function-argument"].inside=L,b.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var B={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},V={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};b.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:B,number:V,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:B,number:V})})(d)}},54212:function(J){"use strict";J.exports=C,C.displayName="css",C.aliases=[];function C(d){(function(b){var I=/(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/;b.languages.css={comment:/\/\*[\s\S]*?\*\//,atrule:{pattern:/@[\w-](?:[^;{\s]|\s+(?![\s{]))*(?:;|(?=\s*\{))/,inside:{rule:/^@[\w-]+/,"selector-function-argument":{pattern:/(\bselector\s*\(\s*(?![\s)]))(?:[^()\s]|\s+(?![\s)])|\((?:[^()]|\([^()]*\))*\))+(?=\s*\))/,lookbehind:!0,alias:"selector"},keyword:{pattern:/(^|[^\w-])(?:and|not|only|or)(?![\w-])/,lookbehind:!0}}},url:{pattern:RegExp("\\burl\\((?:"+I.source+"|"+/(?:[^\\\r\n()"']|\\[\s\S])*/.source+")\\)","i"),greedy:!0,inside:{function:/^url/i,punctuation:/^\(|\)$/,string:{pattern:RegExp("^"+I.source+"$"),alias:"url"}}},selector:{pattern:RegExp(`(^|[{}\\s])[^{}\\s](?:[^{};"'\\s]|\\s+(?![\\s{])|`+I.source+")*(?=\\s*\\{)"),lookbehind:!0},string:{pattern:I,greedy:!0},property:{pattern:/(^|[^-\w\xA0-\uFFFF])(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*(?=\s*:)/i,lookbehind:!0},important:/!important\b/i,function:{pattern:/(^|[^-a-z0-9])[-a-z0-9]+(?=\()/i,lookbehind:!0},punctuation:/[(){};:,]/},b.languages.css.atrule.inside.rest=b.languages.css;var L=b.languages.markup;L&&(L.tag.addInlined("style","css"),L.tag.addAttribute("style","css"))})(d)}},69820:function(J){"use strict";J.exports=C,C.displayName="csv",C.aliases=[];function C(d){d.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}},41929:function(J){"use strict";J.exports=C,C.displayName="cypher",C.aliases=[];function C(d){d.languages.cypher={comment:/\/\/.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/,greedy:!0},"class-name":{pattern:/(:\s*)(?:\w+|`(?:[^`\\\r\n])*`)(?=\s*[{):])/,lookbehind:!0,greedy:!0},relationship:{pattern:/(-\[\s*(?:\w+\s*|`(?:[^`\\\r\n])*`\s*)?:\s*|\|\s*:\s*)(?:\w+|`(?:[^`\\\r\n])*`)/,lookbehind:!0,greedy:!0,alias:"property"},identifier:{pattern:/`(?:[^`\\\r\n])*`/,greedy:!0},variable:/\$\w+/,keyword:/\b(?:ADD|ALL|AND|AS|ASC|ASCENDING|ASSERT|BY|CALL|CASE|COMMIT|CONSTRAINT|CONTAINS|CREATE|CSV|DELETE|DESC|DESCENDING|DETACH|DISTINCT|DO|DROP|ELSE|END|ENDS|EXISTS|FOR|FOREACH|IN|INDEX|IS|JOIN|KEY|LIMIT|LOAD|MANDATORY|MATCH|MERGE|NODE|NOT|OF|ON|OPTIONAL|OR|ORDER(?=\s+BY)|PERIODIC|REMOVE|REQUIRE|RETURN|SCALAR|SCAN|SET|SKIP|START|STARTS|THEN|UNION|UNIQUE|UNWIND|USING|WHEN|WHERE|WITH|XOR|YIELD)\b/i,function:/\b\w+\b(?=\s*\()/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:[eE][+-]?\d+)?)\b/,operator:/:|<--?|--?>?|<>|=~?|[<>]=?|[+*/%^|]|\.\.\.?/,punctuation:/[()[\]{},;.]/}}},51837:function(J){"use strict";J.exports=C,C.displayName="d",C.aliases=[];function C(d){d.languages.d=d.languages.extend("clike",{comment:[{pattern:/^\s*#!.+/,greedy:!0},{pattern:RegExp(/(^|[^\\])/.source+"(?:"+[/\/\+(?:\/\+(?:[^+]|\+(?!\/))*\+\/|(?!\/\+)[\s\S])*?\+\//.source,/\/\/.*/.source,/\/\*[\s\S]*?\*\//.source].join("|")+")"),lookbehind:!0,greedy:!0}],string:[{pattern:RegExp([/\b[rx]"(?:\\[\s\S]|[^\\"])*"[cwd]?/.source,/\bq"(?:\[[\s\S]*?\]|\([\s\S]*?\)|<[\s\S]*?>|\{[\s\S]*?\})"/.source,/\bq"((?!\d)\w+)$[\s\S]*?^\1"/.source,/\bq"(.)[\s\S]*?\2"/.source,/(["`])(?:\\[\s\S]|(?!\3)[^\\])*\3[cwd]?/.source].join("|"),"m"),greedy:!0},{pattern:/\bq\{(?:\{[^{}]*\}|[^{}])*\}/,greedy:!0,alias:"token-string"}],keyword:/\$|\b(?:__(?:(?:DATE|EOF|FILE|FUNCTION|LINE|MODULE|PRETTY_FUNCTION|TIMESTAMP|TIME|VENDOR|VERSION)__|gshared|parameters|traits|vector)|abstract|alias|align|asm|assert|auto|body|bool|break|byte|case|cast|catch|cdouble|cent|cfloat|char|class|const|continue|creal|dchar|debug|default|delegate|delete|deprecated|do|double|dstring|else|enum|export|extern|false|final|finally|float|for|foreach|foreach_reverse|function|goto|idouble|if|ifloat|immutable|import|inout|int|interface|invariant|ireal|lazy|long|macro|mixin|module|new|nothrow|null|out|override|package|pragma|private|protected|ptrdiff_t|public|pure|real|ref|return|scope|shared|short|size_t|static|string|struct|super|switch|synchronized|template|this|throw|true|try|typedef|typeid|typeof|ubyte|ucent|uint|ulong|union|unittest|ushort|version|void|volatile|wchar|while|with|wstring)\b/,number:[/\b0x\.?[a-f\d_]+(?:(?!\.\.)\.[a-f\d_]*)?(?:p[+-]?[a-f\d_]+)?[ulfi]{0,4}/i,{pattern:/((?:\.\.)?)(?:\b0b\.?|\b|\.)\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:e[+-]?\d[\d_]*)?[ulfi]{0,4}/i,lookbehind:!0}],operator:/\|[|=]?|&[&=]?|\+[+=]?|-[-=]?|\.?\.\.|=[>=]?|!(?:i[ns]\b|<>?=?|>=?|=)?|\bi[ns]\b|(?:<[<>]?|>>?>?|\^\^|[*\/%^~])=?/}),d.languages.insertBefore("d","string",{char:/'(?:\\(?:\W|\w+)|[^\\])'/}),d.languages.insertBefore("d","keyword",{property:/\B@\w*/}),d.languages.insertBefore("d","function",{register:{pattern:/\b(?:[ABCD][LHX]|E?(?:BP|DI|SI|SP)|[BS]PL|[ECSDGF]S|CR[0234]|[DS]IL|DR[012367]|E[ABCD]X|X?MM[0-7]|R(?:1[0-5]|[89])[BWD]?|R[ABCD]X|R[BS]P|R[DS]I|TR[3-7]|XMM(?:1[0-5]|[89])|YMM(?:1[0-5]|\d))\b|\bST(?:\([0-7]\)|\b)/,alias:"variable"}})}},4182:function(J){"use strict";J.exports=C,C.displayName="dart",C.aliases=[];function C(d){(function(b){var I=[/\b(?:async|sync|yield)\*/,/\b(?:abstract|assert|async|await|break|case|catch|class|const|continue|covariant|default|deferred|do|dynamic|else|enum|export|extends|extension|external|factory|final|finally|for|get|hide|if|implements|import|in|interface|library|mixin|new|null|on|operator|part|rethrow|return|set|show|static|super|switch|sync|this|throw|try|typedef|var|void|while|with|yield)\b/],L=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,B={pattern:RegExp(L+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}}}};b.languages.dart=b.languages.extend("clike",{"class-name":[B,{pattern:RegExp(L+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:B.inside}],keyword:I,operator:/\bis!|\b(?:as|is)\b|\+\+|--|&&|\|\||<<=?|>>=?|~(?:\/=?)?|[+\-*\/%&^|=!<>]=?|\?/}),b.languages.insertBefore("dart","string",{"string-literal":{pattern:/r?(?:("""|''')[\s\S]*?\1|(["'])(?:\\.|(?!\2)[^\\\r\n])*\2(?!\2))/,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,lookbehind:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:b.languages.dart}}},string:/[\s\S]+/}},string:void 0}),b.languages.insertBefore("dart","class-name",{metadata:{pattern:/@\w+/,alias:"function"}}),b.languages.insertBefore("dart","class-name",{generics:{pattern:/<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<(?:[\w\s,.&?]|<[\w\s,.&?]*>)*>)*>)*>/,inside:{"class-name":B,keyword:I,punctuation:/[<>(),.:]/,operator:/[?&|]/}}})})(d)}},22117:function(J){"use strict";J.exports=C,C.displayName="dataweave",C.aliases=[];function C(d){(function(b){b.languages.dataweave={url:/\b[A-Za-z]+:\/\/[\w/:.?=&-]+|\burn:[\w:.?=&-]+/,property:{pattern:/(?:\b\w+#)?(?:"(?:\\.|[^\\"\r\n])*"|\b\w+)(?=\s*[:@])/,greedy:!0},string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},"mime-type":/\b(?:application|audio|image|multipart|text|video)\/[\w+-]+/,date:{pattern:/\|[\w:+-]+\|/,greedy:!0},comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],regex:{pattern:/\/(?:[^\\\/\r\n]|\\[^\r\n])+\//,greedy:!0},keyword:/\b(?:and|as|at|case|do|else|fun|if|input|is|match|not|ns|null|or|output|type|unless|update|using|var)\b/,function:/\b[A-Z_]\w*(?=\s*\()/i,number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\];(),.:@]/,operator:/<<|>>|->|[<>~=]=?|!=|--?-?|\+\+?|!|\?/,boolean:/\b(?:false|true)\b/}})(d)}},95627:function(J){"use strict";J.exports=C,C.displayName="dax",C.aliases=[];function C(d){d.languages.dax={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/).*)/,lookbehind:!0},"data-field":{pattern:/'(?:[^']|'')*'(?!')(?:\[[ \w\xA0-\uFFFF]+\])?|\w+\[[ \w\xA0-\uFFFF]+\]/,alias:"symbol"},measure:{pattern:/\[[ \w\xA0-\uFFFF]+\]/,alias:"constant"},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},function:/\b(?:ABS|ACOS|ACOSH|ACOT|ACOTH|ADDCOLUMNS|ADDMISSINGITEMS|ALL|ALLCROSSFILTERED|ALLEXCEPT|ALLNOBLANKROW|ALLSELECTED|AND|APPROXIMATEDISTINCTCOUNT|ASIN|ASINH|ATAN|ATANH|AVERAGE|AVERAGEA|AVERAGEX|BETA\.DIST|BETA\.INV|BLANK|CALCULATE|CALCULATETABLE|CALENDAR|CALENDARAUTO|CEILING|CHISQ\.DIST|CHISQ\.DIST\.RT|CHISQ\.INV|CHISQ\.INV\.RT|CLOSINGBALANCEMONTH|CLOSINGBALANCEQUARTER|CLOSINGBALANCEYEAR|COALESCE|COMBIN|COMBINA|COMBINEVALUES|CONCATENATE|CONCATENATEX|CONFIDENCE\.NORM|CONFIDENCE\.T|CONTAINS|CONTAINSROW|CONTAINSSTRING|CONTAINSSTRINGEXACT|CONVERT|COS|COSH|COT|COTH|COUNT|COUNTA|COUNTAX|COUNTBLANK|COUNTROWS|COUNTX|CROSSFILTER|CROSSJOIN|CURRENCY|CURRENTGROUP|CUSTOMDATA|DATATABLE|DATE|DATEADD|DATEDIFF|DATESBETWEEN|DATESINPERIOD|DATESMTD|DATESQTD|DATESYTD|DATEVALUE|DAY|DEGREES|DETAILROWS|DISTINCT|DISTINCTCOUNT|DISTINCTCOUNTNOBLANK|DIVIDE|EARLIER|EARLIEST|EDATE|ENDOFMONTH|ENDOFQUARTER|ENDOFYEAR|EOMONTH|ERROR|EVEN|EXACT|EXCEPT|EXP|EXPON\.DIST|FACT|FALSE|FILTER|FILTERS|FIND|FIRSTDATE|FIRSTNONBLANK|FIRSTNONBLANKVALUE|FIXED|FLOOR|FORMAT|GCD|GENERATE|GENERATEALL|GENERATESERIES|GEOMEAN|GEOMEANX|GROUPBY|HASONEFILTER|HASONEVALUE|HOUR|IF|IF\.EAGER|IFERROR|IGNORE|INT|INTERSECT|ISBLANK|ISCROSSFILTERED|ISEMPTY|ISERROR|ISEVEN|ISFILTERED|ISINSCOPE|ISLOGICAL|ISNONTEXT|ISNUMBER|ISO\.CEILING|ISODD|ISONORAFTER|ISSELECTEDMEASURE|ISSUBTOTAL|ISTEXT|KEEPFILTERS|KEYWORDMATCH|LASTDATE|LASTNONBLANK|LASTNONBLANKVALUE|LCM|LEFT|LEN|LN|LOG|LOG10|LOOKUPVALUE|LOWER|MAX|MAXA|MAXX|MEDIAN|MEDIANX|MID|MIN|MINA|MINUTE|MINX|MOD|MONTH|MROUND|NATURALINNERJOIN|NATURALLEFTOUTERJOIN|NEXTDAY|NEXTMONTH|NEXTQUARTER|NEXTYEAR|NONVISUAL|NORM\.DIST|NORM\.INV|NORM\.S\.DIST|NORM\.S\.INV|NOT|NOW|ODD|OPENINGBALANCEMONTH|OPENINGBALANCEQUARTER|OPENINGBALANCEYEAR|OR|PARALLELPERIOD|PATH|PATHCONTAINS|PATHITEM|PATHITEMREVERSE|PATHLENGTH|PERCENTILE\.EXC|PERCENTILE\.INC|PERCENTILEX\.EXC|PERCENTILEX\.INC|PERMUT|PI|POISSON\.DIST|POWER|PREVIOUSDAY|PREVIOUSMONTH|PREVIOUSQUARTER|PREVIOUSYEAR|PRODUCT|PRODUCTX|QUARTER|QUOTIENT|RADIANS|RAND|RANDBETWEEN|RANK\.EQ|RANKX|RELATED|RELATEDTABLE|REMOVEFILTERS|REPLACE|REPT|RIGHT|ROLLUP|ROLLUPADDISSUBTOTAL|ROLLUPGROUP|ROLLUPISSUBTOTAL|ROUND|ROUNDDOWN|ROUNDUP|ROW|SAMEPERIODLASTYEAR|SAMPLE|SEARCH|SECOND|SELECTCOLUMNS|SELECTEDMEASURE|SELECTEDMEASUREFORMATSTRING|SELECTEDMEASURENAME|SELECTEDVALUE|SIGN|SIN|SINH|SQRT|SQRTPI|STARTOFMONTH|STARTOFQUARTER|STARTOFYEAR|STDEV\.P|STDEV\.S|STDEVX\.P|STDEVX\.S|SUBSTITUTE|SUBSTITUTEWITHINDEX|SUM|SUMMARIZE|SUMMARIZECOLUMNS|SUMX|SWITCH|T\.DIST|T\.DIST\.2T|T\.DIST\.RT|T\.INV|T\.INV\.2T|TAN|TANH|TIME|TIMEVALUE|TODAY|TOPN|TOPNPERLEVEL|TOPNSKIP|TOTALMTD|TOTALQTD|TOTALYTD|TREATAS|TRIM|TRUE|TRUNC|UNICHAR|UNICODE|UNION|UPPER|USERELATIONSHIP|USERNAME|USEROBJECTID|USERPRINCIPALNAME|UTCNOW|UTCTODAY|VALUE|VALUES|VAR\.P|VAR\.S|VARX\.P|VARX\.S|WEEKDAY|WEEKNUM|XIRR|XNPV|YEAR|YEARFRAC)(?=\s*\()/i,keyword:/\b(?:DEFINE|EVALUATE|MEASURE|ORDER\s+BY|RETURN|VAR|START\s+AT|ASC|DESC)\b/i,boolean:{pattern:/\b(?:FALSE|NULL|TRUE)\b/i,alias:"constant"},number:/\b\d+(?:\.\d*)?|\B\.\d+\b/,operator:/:=|[-+*\/=^]|&&?|\|\||<(?:=>?|<|>)?|>[>=]?|\b(?:IN|NOT)\b/i,punctuation:/[;\[\](){}`,.]/}}},34265:function(J){"use strict";J.exports=C,C.displayName="dhall",C.aliases=[];function C(d){d.languages.dhall={comment:/--.*|\{-(?:[^-{]|-(?!\})|\{(?!-)|\{-(?:[^-{]|-(?!\})|\{(?!-))*-\})*-\}/,string:{pattern:/"(?:[^"\\]|\\.)*"|''(?:[^']|'(?!')|'''|''\$\{)*''(?!'|\$)/,greedy:!0,inside:{interpolation:{pattern:/\$\{[^{}]*\}/,inside:{expression:{pattern:/(^\$\{)[\s\S]+(?=\}$)/,lookbehind:!0,alias:"language-dhall",inside:null},punctuation:/\$\{|\}/}}}},label:{pattern:/`[^`]*`/,greedy:!0},url:{pattern:/\bhttps?:\/\/[\w.:%!$&'*+;=@~-]+(?:\/[\w.:%!$&'*+;=@~-]*)*(?:\?[/?\w.:%!$&'*+;=@~-]*)?/,greedy:!0},env:{pattern:/\benv:(?:(?!\d)\w+|"(?:[^"\\=]|\\.)*")/,greedy:!0,inside:{function:/^env/,operator:/^:/,variable:/[\s\S]+/}},hash:{pattern:/\bsha256:[\da-fA-F]{64}\b/,inside:{function:/sha256/,operator:/:/,number:/[\da-fA-F]{64}/}},keyword:/\b(?:as|assert|else|forall|if|in|let|merge|missing|then|toMap|using|with)\b|\u2200/,builtin:/\b(?:None|Some)\b/,boolean:/\b(?:False|True)\b/,number:/\bNaN\b|-?\bInfinity\b|[+-]?\b(?:0x[\da-fA-F]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/,operator:/\/\\|\/\/\\\\|&&|\|\||===|[!=]=|\/\/|->|\+\+|::|[+*#@=:?<>|\\\u2227\u2a53\u2261\u2afd\u03bb\u2192]/,punctuation:/\.\.|[{}\[\](),./]/,"class-name":/\b[A-Z]\w*\b/},d.languages.dhall.string.inside.interpolation.inside.expression.inside=d.languages.dhall}},50618:function(J){"use strict";J.exports=C,C.displayName="diff",C.aliases=[];function C(d){(function(b){b.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var I={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(I).forEach(function(L){var B=I[L],V=[];/^\w+$/.test(L)||V.push(/\w+/.exec(L)[0]),L==="diff"&&V.push("bold"),b.languages.diff[L]={pattern:RegExp("^(?:["+B+`].*(?:\r
|
|
|
?|
|
|
|
|(?![\\s\\S])))+`,"m"),alias:V,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(L)[0]}}}}),Object.defineProperty(b.languages.diff,"PREFIXES",{value:I})})(d)}},32126:function(J,C,d){"use strict";var b=d(51478);J.exports=I,I.displayName="django",I.aliases=["jinja2"];function I(L){L.register(b),function(B){B.languages.django={comment:/^\{#[\s\S]*?#\}$/,tag:{pattern:/(^\{%[+-]?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%][+-]?|[+-]?[}%]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},filter:{pattern:/(\|)\w+/,lookbehind:!0,alias:"function"},test:{pattern:/(\bis\s+(?:not\s+)?)(?!not\b)\w+/,lookbehind:!0,alias:"function"},function:/\b[a-z_]\w+(?=\s*\()/i,keyword:/\b(?:and|as|by|else|for|if|import|in|is|loop|not|or|recursive|with|without)\b/,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,number:/\b\d+(?:\.\d+)?\b/,boolean:/[Ff]alse|[Nn]one|[Tt]rue/,variable:/\b\w+\b/,punctuation:/[{}[\](),.:;]/};var V=/\{\{[\s\S]*?\}\}|\{%[\s\S]*?%\}|\{#[\s\S]*?#\}/g,Q=B.languages["markup-templating"];B.hooks.add("before-tokenize",function(M){Q.buildPlaceholders(M,"django",V)}),B.hooks.add("after-tokenize",function(M){Q.tokenizePlaceholders(M,"django")}),B.languages.jinja2=B.languages.django,B.hooks.add("before-tokenize",function(M){Q.buildPlaceholders(M,"jinja2",V)}),B.hooks.add("after-tokenize",function(M){Q.tokenizePlaceholders(M,"jinja2")})}(L)}},26737:function(J){"use strict";J.exports=C,C.displayName="dnsZoneFile",C.aliases=[];function C(d){d.languages["dns-zone-file"]={comment:/;.*/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},variable:[{pattern:/(^\$ORIGIN[ \t]+)\S+/m,lookbehind:!0},{pattern:/(^|\s)@(?=\s|$)/,lookbehind:!0}],keyword:/^\$(?:INCLUDE|ORIGIN|TTL)(?=\s|$)/m,class:{pattern:/(^|\s)(?:CH|CS|HS|IN)(?=\s|$)/,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|\s)(?:A|A6|AAAA|AFSDB|APL|ATMA|CAA|CDNSKEY|CDS|CERT|CNAME|DHCID|DLV|DNAME|DNSKEY|DS|EID|GID|GPOS|HINFO|HIP|IPSECKEY|ISDN|KEY|KX|LOC|MAILA|MAILB|MB|MD|MF|MG|MINFO|MR|MX|NAPTR|NB|NBSTAT|NIMLOC|NINFO|NS|NSAP|NSAP-PTR|NSEC|NSEC3|NSEC3PARAM|NULL|NXT|OPENPGPKEY|PTR|PX|RKEY|RP|RRSIG|RT|SIG|SINK|SMIMEA|SOA|SPF|SRV|SSHFP|TA|TKEY|TLSA|TSIG|TXT|UID|UINFO|UNSPEC|URI|WKS|X25)(?=\s|$)/,lookbehind:!0,alias:"keyword"},punctuation:/[()]/},d.languages["dns-zone"]=d.languages["dns-zone-file"]}},90134:function(J){"use strict";J.exports=C,C.displayName="docker",C.aliases=["dockerfile"];function C(d){(function(b){var I=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,L=/(?:[ \t]+(?![ \t])(?:<SP_BS>)?|<SP_BS>)/.source.replace(/<SP_BS>/g,function(){return I}),B=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,V=/--[\w-]+=(?:<STR>|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(/<STR>/g,function(){return B}),Q={pattern:RegExp(B),greedy:!0},M={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function de(he,re){return he=he.replace(/<OPT>/g,function(){return V}).replace(/<SP>/g,function(){return L}),RegExp(he,re)}b.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:de(/(^(?:ONBUILD<SP>)?\w+<SP>)<OPT>(?:<SP><OPT>)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[Q,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:de(/(^(?:ONBUILD<SP>)?HEALTHCHECK<SP>(?:<OPT><SP>)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:de(/(^(?:ONBUILD<SP>)?FROM<SP>(?:<OPT><SP>)*(?!--)[^ \t\\]+<SP>)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:de(/(^ONBUILD<SP>)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:M,string:Q,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:M},b.languages.dockerfile=b.languages.docker})(d)}},51348:function(J){"use strict";J.exports=C,C.displayName="dot",C.aliases=["gv"];function C(d){(function(b){var I="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!<!--)<(?:[^<>"']|"[^"]*"|'[^']*')+>|<!--(?:[^-]|-(?!->))*-->)*>/.source].join("|")+")",L={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:b.languages.markup}};function B(V,Q){return RegExp(V.replace(/<ID>/g,function(){return I}),Q)}b.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:B(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)<ID>/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:L},"attr-value":{pattern:B(/(=[ \t\r\n]*)<ID>/.source),lookbehind:!0,greedy:!0,inside:L},"attr-name":{pattern:B(/([\[;, \t\r\n])<ID>(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:L},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:B(/(^|[^-.\w\x80-\uFFFF\\])<ID>/.source),lookbehind:!0,greedy:!0,inside:L},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},b.languages.gv=b.languages.dot})(d)}},60841:function(J){"use strict";J.exports=C,C.displayName="ebnf",C.aliases=[];function C(d){d.languages.ebnf={comment:/\(\*[\s\S]*?\*\)/,string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},special:{pattern:/\?[^?\r\n]*\?/,greedy:!0,alias:"class-name"},definition:{pattern:/^([\t ]*)[a-z]\w*(?:[ \t]+[a-z]\w*)*(?=\s*=)/im,lookbehind:!0,alias:["rule","keyword"]},rule:/\b[a-z]\w*(?:[ \t]+[a-z]\w*)*\b/i,punctuation:/\([:/]|[:/]\)|[.,;()[\]{}]/,operator:/[-=|*/!]/}}},42857:function(J){"use strict";J.exports=C,C.displayName="editorconfig",C.aliases=[];function C(d){d.languages.editorconfig={comment:/[;#].*/,section:{pattern:/(^[ \t]*)\[.+\]/m,lookbehind:!0,alias:"selector",inside:{regex:/\\\\[\[\]{},!?.*]/,operator:/[!?]|\.\.|\*{1,2}/,punctuation:/[\[\]{},]/}},key:{pattern:/(^[ \t]*)[^\s=]+(?=[ \t]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/=.*/,alias:"attr-value",inside:{punctuation:/^=/}}}}},81269:function(J){"use strict";J.exports=C,C.displayName="eiffel",C.aliases=[];function C(d){d.languages.eiffel={comment:/--.*/,string:[{pattern:/"([^[]*)\[[\s\S]*?\]\1"/,greedy:!0},{pattern:/"([^{]*)\{[\s\S]*?\}\1"/,greedy:!0},{pattern:/"(?:%(?:(?!\n)\s)*\n\s*%|%\S|[^%"\r\n])*"/,greedy:!0}],char:/'(?:%.|[^%'\r\n])+'/,keyword:/\b(?:across|agent|alias|all|and|as|assign|attached|attribute|check|class|convert|create|Current|debug|deferred|detachable|do|else|elseif|end|ensure|expanded|export|external|feature|from|frozen|if|implies|inherit|inspect|invariant|like|local|loop|not|note|obsolete|old|once|or|Precursor|redefine|rename|require|rescue|Result|retry|select|separate|some|then|undefine|until|variant|Void|when|xor)\b/i,boolean:/\b(?:False|True)\b/i,"class-name":/\b[A-Z][\dA-Z_]*\b/,number:[/\b0[xcb][\da-f](?:_*[\da-f])*\b/i,/(?:\b\d(?:_*\d)*)?\.(?:(?:\d(?:_*\d)*)?e[+-]?)?\d(?:_*\d)*\b|\b\d(?:_*\d)*\b\.?/i],punctuation:/:=|<<|>>|\(\||\|\)|->|\.(?=\w)|[{}[\];(),:?]/,operator:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}},31134:function(J,C,d){"use strict";var b=d(51478);J.exports=I,I.displayName="ejs",I.aliases=["eta"];function I(L){L.register(b),function(B){B.languages.ejs={delimiter:{pattern:/^<%[-_=]?|[-_]?%>$/,alias:"punctuation"},comment:/^#[\s\S]*/,"language-javascript":{pattern:/[\s\S]+/,inside:B.languages.javascript}},B.hooks.add("before-tokenize",function(V){var Q=/<%(?!%)[\s\S]+?%>/g;B.languages["markup-templating"].buildPlaceholders(V,"ejs",Q)}),B.hooks.add("after-tokenize",function(V){B.languages["markup-templating"].tokenizePlaceholders(V,"ejs")}),B.languages.eta=B.languages.ejs}(L)}},83125:function(J){"use strict";J.exports=C,C.displayName="elixir",C.aliases=[];function C(d){d.languages.elixir={doc:{pattern:/@(?:doc|moduledoc)\s+(?:("""|''')[\s\S]*?\1|("|')(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2)/,inside:{attribute:/^@\w+/,string:/['"][\s\S]+/}},comment:{pattern:/#.*/,greedy:!0},regex:{pattern:/~[rR](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|[^\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[uismxfr]*/,greedy:!0},string:[{pattern:/~[cCsSwW](?:("""|''')(?:\\[\s\S]|(?!\1)[^\\])+\1|([\/|"'])(?:\\.|(?!\2)[^\\\r\n])+\2|\((?:\\.|[^\\)\r\n])+\)|\[(?:\\.|[^\\\]\r\n])+\]|\{(?:\\.|#\{[^}]+\}|#(?!\{)|[^#\\}\r\n])+\}|<(?:\\.|[^\\>\r\n])+>)[csa]?/,greedy:!0,inside:{}},{pattern:/("""|''')[\s\S]*?\1/,greedy:!0,inside:{}},{pattern:/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0,inside:{}}],atom:{pattern:/(^|[^:]):\w+/,lookbehind:!0,alias:"symbol"},module:{pattern:/\b[A-Z]\w*\b/,alias:"class-name"},"attr-name":/\b\w+\??:(?!:)/,argument:{pattern:/(^|[^&])&\d+/,lookbehind:!0,alias:"variable"},attribute:{pattern:/@\w+/,alias:"variable"},function:/\b[_a-zA-Z]\w*[?!]?(?:(?=\s*(?:\.\s*)?\()|(?=\/\d))/,number:/\b(?:0[box][a-f\d_]+|\d[\d_]*)(?:\.[\d_]+)?(?:e[+-]?[\d_]+)?\b/i,keyword:/\b(?:after|alias|and|case|catch|cond|def(?:callback|delegate|exception|impl|macro|module|n|np|p|protocol|struct)?|do|else|end|fn|for|if|import|not|or|quote|raise|require|rescue|try|unless|unquote|use|when)\b/,boolean:/\b(?:false|nil|true)\b/,operator:[/\bin\b|&&?|\|[|>]?|\\\\|::|\.\.\.?|\+\+?|-[->]?|<[-=>]|>=|!==?|\B!|=(?:==?|[>~])?|[*\/^]/,{pattern:/([^<])<(?!<)/,lookbehind:!0},{pattern:/([^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,%\[\]{}()]/},d.languages.elixir.string.forEach(function(b){b.inside={interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},rest:d.languages.elixir}}}})}},9438:function(J){"use strict";J.exports=C,C.displayName="elm",C.aliases=[];function C(d){d.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}},27771:function(J,C,d){"use strict";var b=d(75308),I=d(51478);J.exports=L,L.displayName="erb",L.aliases=[];function L(B){B.register(b),B.register(I),function(V){V.languages.erb={delimiter:{pattern:/^(\s*)<%=?|%>(?=\s*$)/,lookbehind:!0,alias:"punctuation"},ruby:{pattern:/\s*\S[\s\S]*/,alias:"language-ruby",inside:V.languages.ruby}},V.hooks.add("before-tokenize",function(Q){var M=/<%=?(?:[^\r\n]|[\r\n](?!=begin)|[\r\n]=begin\s(?:[^\r\n]|[\r\n](?!=end))*[\r\n]=end)+?%>/g;V.languages["markup-templating"].buildPlaceholders(Q,"erb",M)}),V.hooks.add("after-tokenize",function(Q){V.languages["markup-templating"].tokenizePlaceholders(Q,"erb")})}(B)}},86549:function(J){"use strict";J.exports=C,C.displayName="erlang",C.aliases=[];function C(d){d.languages.erlang={comment:/%.+/,string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},"quoted-function":{pattern:/'(?:\\.|[^\\'\r\n])+'(?=\()/,alias:"function"},"quoted-atom":{pattern:/'(?:\\.|[^\\'\r\n])+'/,alias:"atom"},boolean:/\b(?:false|true)\b/,keyword:/\b(?:after|case|catch|end|fun|if|of|receive|try|when)\b/,number:[/\$\\?./,/\b\d+#[a-z0-9]+/i,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i],function:/\b[a-z][\w@]*(?=\()/,variable:{pattern:/(^|[^@])(?:\b|\?)[A-Z_][\w@]*/,lookbehind:!0},operator:[/[=\/<>:]=|=[:\/]=|\+\+?|--?|[=*\/!]|\b(?:and|andalso|band|bnot|bor|bsl|bsr|bxor|div|not|or|orelse|rem|xor)\b/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],atom:/\b[a-z][\w@]*/,punctuation:/[()[\]{}:;,.#|]|<<|>>/}}},37079:function(J,C,d){"use strict";var b=d(29509),I=d(51478);J.exports=L,L.displayName="etlua",L.aliases=[];function L(B){B.register(b),B.register(I),function(V){V.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:V.languages.lua}},V.hooks.add("before-tokenize",function(Q){var M=/<%[\s\S]+?%>/g;V.languages["markup-templating"].buildPlaceholders(Q,"etlua",M)}),V.hooks.add("after-tokenize",function(Q){V.languages["markup-templating"].tokenizePlaceholders(Q,"etlua")})}(B)}},59250:function(J){"use strict";J.exports=C,C.displayName="excelFormula",C.aliases=[];function C(d){d.languages["excel-formula"]={comment:{pattern:/(\bN\(\s*)"(?:[^"]|"")*"(?=\s*\))/i,lookbehind:!0,greedy:!0},string:{pattern:/"(?:[^"]|"")*"(?!")/,greedy:!0},reference:{pattern:/(?:'[^']*'|(?:[^\s()[\]{}<>*?"';,$&]*\[[^^\s()[\]{}<>*?"']+\])?\w+)!/,greedy:!0,alias:"string",inside:{operator:/!$/,punctuation:/'/,sheet:{pattern:/[^[\]]+$/,alias:"function"},file:{pattern:/\[[^[\]]+\]$/,inside:{punctuation:/[[\]]/}},path:/[\s\S]+/}},"function-name":{pattern:/\b[A-Z]\w*(?=\()/i,alias:"keyword"},range:{pattern:/\$?\b(?:[A-Z]+\$?\d+:\$?[A-Z]+\$?\d+|[A-Z]+:\$?[A-Z]+|\d+:\$?\d+)\b/i,alias:"property",inside:{operator:/:/,cell:/\$?[A-Z]+\$?\d+/i,column:/\$?[A-Z]+/i,row:/\$?\d+/}},cell:{pattern:/\b[A-Z]+\d+\b|\$[A-Za-z]+\$?\d+\b|\b[A-Za-z]+\$\d+\b/,alias:"property"},number:/(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?\b/i,boolean:/\b(?:FALSE|TRUE)\b/i,operator:/[-+*/^%=&,]|<[=>]?|>=?/,punctuation:/[[\]();{}|]/},d.languages.xlsx=d.languages.xls=d.languages["excel-formula"]}},81226:function(J){"use strict";J.exports=C,C.displayName="factor",C.aliases=[];function C(d){(function(b){var I={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},L={number:/\\[^\s']|%\w/},B={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:I},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:I},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:I}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:L.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:L},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:L}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:L}},V=function(he){return(he+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},Q=function(he){return new RegExp("(^|\\s)(?:"+he.map(V).join("|")+")(?=\\s|$)")},M={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","<wrapper>","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated","<PRIVATE",">>>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","<slice>","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","<iota>","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","<reversed>","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","<repetition>","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","<fp-nan>","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(M).forEach(function(he){B[he].pattern=Q(M[he])});var de=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","input<sequence","append-outputs","drop-inputs","inputs","smart-2reduce","drop-outputs","smart-reduce","preserving","smart-when","outputs","append-outputs-as","smart-unless","smart-if*","sum-outputs","input<sequence-unsafe","output>sequence"];B.combinators.pattern=Q(de),b.languages.factor=B})(d)}},65245:function(J){"use strict";J.exports=C,C.displayName="$false",C.aliases=[];function C(d){(function(b){b.languages.false={comment:{pattern:/\{[^}]*\}/},string:{pattern:/"[^"]*"/,greedy:!0},"character-code":{pattern:/'(?:[^\r]|\r\n?)/,alias:"number"},"assembler-code":{pattern:/\d+`/,alias:"important"},number:/\d+/,operator:/[-!#$%&'*+,./:;=>?@\\^_`|~ßø]/,punctuation:/\[|\]/,variable:/[a-z]/,"non-standard":{pattern:/[()<BDO®]/,alias:"bold"}}})(d)}},25040:function(J){"use strict";J.exports=C,C.displayName="firestoreSecurityRules",C.aliases=[];function C(d){d.languages["firestore-security-rules"]=d.languages.extend("clike",{comment:/\/\/.*/,keyword:/\b(?:allow|function|if|match|null|return|rules_version|service)\b/,operator:/&&|\|\||[<>!=]=?|[-+*/%]|\b(?:in|is)\b/}),delete d.languages["firestore-security-rules"]["class-name"],d.languages.insertBefore("firestore-security-rules","keyword",{path:{pattern:/(^|[\s(),])(?:\/(?:[\w\xA0-\uFFFF]+|\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)))+/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/\{[\w\xA0-\uFFFF]+(?:=\*\*)?\}|\$\([\w\xA0-\uFFFF.]+\)/,inside:{operator:/=/,keyword:/\*\*/,punctuation:/[.$(){}]/}},punctuation:/\//}},method:{pattern:/(\ballow\s+)[a-z]+(?:\s*,\s*[a-z]+)*(?=\s*[:;])/,lookbehind:!0,alias:"builtin",inside:{punctuation:/,/}}})}},40284:function(J){"use strict";J.exports=C,C.displayName="flow",C.aliases=[];function C(d){(function(b){b.languages.flow=b.languages.extend("javascript",{}),b.languages.insertBefore("flow","keyword",{type:[{pattern:/\b(?:[Bb]oolean|Function|[Nn]umber|[Ss]tring|any|mixed|null|void)\b/,alias:"tag"}]}),b.languages.flow["function-variable"].pattern=/(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=\s*(?:function\b|(?:\([^()]*\)(?:\s*:\s*\w+)?|(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/i,delete b.languages.flow.parameter,b.languages.insertBefore("flow","operator",{"flow-punctuation":{pattern:/\{\||\|\}/,alias:"punctuation"}}),Array.isArray(b.languages.flow.keyword)||(b.languages.flow.keyword=[b.languages.flow.keyword]),b.languages.flow.keyword.unshift({pattern:/(^|[^$]\b)(?:Class|declare|opaque|type)\b(?!\$)/,lookbehind:!0},{pattern:/(^|[^$]\B)\$(?:Diff|Enum|Exact|Keys|ObjMap|PropertyType|Record|Shape|Subtype|Supertype|await)\b(?!\$)/,lookbehind:!0})})(d)}},39187:function(J){"use strict";J.exports=C,C.displayName="fortran",C.aliases=[];function C(d){d.languages.fortran={"quoted-number":{pattern:/[BOZ](['"])[A-F0-9]+\1/i,alias:"number"},string:{pattern:/(?:\b\w+_)?(['"])(?:\1\1|&(?:\r\n?|\n)(?:[ \t]*!.*(?:\r\n?|\n)|(?![ \t]*!))|(?!\1).)*(?:\1|&)/,inside:{comment:{pattern:/(&(?:\r\n?|\n)\s*)!.*/,lookbehind:!0}}},comment:{pattern:/!.*/,greedy:!0},boolean:/\.(?:FALSE|TRUE)\.(?:_\w+)?/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[ED][+-]?\d+)?(?:_\w+)?/i,keyword:[/\b(?:CHARACTER|COMPLEX|DOUBLE ?PRECISION|INTEGER|LOGICAL|REAL)\b/i,/\b(?:END ?)?(?:BLOCK ?DATA|DO|FILE|FORALL|FUNCTION|IF|INTERFACE|MODULE(?! PROCEDURE)|PROGRAM|SELECT|SUBROUTINE|TYPE|WHERE)\b/i,/\b(?:ALLOCATABLE|ALLOCATE|BACKSPACE|CALL|CASE|CLOSE|COMMON|CONTAINS|CONTINUE|CYCLE|DATA|DEALLOCATE|DIMENSION|DO|END|EQUIVALENCE|EXIT|EXTERNAL|FORMAT|GO ?TO|IMPLICIT(?: NONE)?|INQUIRE|INTENT|INTRINSIC|MODULE PROCEDURE|NAMELIST|NULLIFY|OPEN|OPTIONAL|PARAMETER|POINTER|PRINT|PRIVATE|PUBLIC|READ|RETURN|REWIND|SAVE|SELECT|STOP|TARGET|WHILE|WRITE)\b/i,/\b(?:ASSIGNMENT|DEFAULT|ELEMENTAL|ELSE|ELSEIF|ELSEWHERE|ENTRY|IN|INCLUDE|INOUT|KIND|NULL|ONLY|OPERATOR|OUT|PURE|RECURSIVE|RESULT|SEQUENCE|STAT|THEN|USE)\b/i],operator:[/\*\*|\/\/|=>|[=\/]=|[<>]=?|::|[+\-*=%]|\.[A-Z]+\./i,{pattern:/(^|(?!\().)\/(?!\))/,lookbehind:!0}],punctuation:/\(\/|\/\)|[(),;:&]/}}},34302:function(J){"use strict";J.exports=C,C.displayName="fsharp",C.aliases=[];function C(d){d.languages.fsharp=d.languages.extend("clike",{comment:[{pattern:/(^|[^\\])\(\*(?!\))[\s\S]*?\*\)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(?:"""[\s\S]*?"""|@"(?:""|[^"])*"|"(?:\\[\s\S]|[^\\"])*")B?/,greedy:!0},"class-name":{pattern:/(\b(?:exception|inherit|interface|new|of|type)\s+|\w\s*:\s*|\s:\??>\s*)[.\w]+\b(?:\s*(?:->|\*)\s*[.\w]+\b)*(?!\s*[:.])/,lookbehind:!0,inside:{operator:/->|\*/,punctuation:/\./}},keyword:/\b(?:let|return|use|yield)(?:!\B|\b)|\b(?:abstract|and|as|asr|assert|atomic|base|begin|break|checked|class|component|const|constraint|constructor|continue|default|delegate|do|done|downcast|downto|eager|elif|else|end|event|exception|extern|external|false|finally|fixed|for|fun|function|functor|global|if|in|include|inherit|inline|interface|internal|land|lazy|lor|lsl|lsr|lxor|match|member|method|mixin|mod|module|mutable|namespace|new|not|null|object|of|open|or|override|parallel|private|process|protected|public|pure|rec|sealed|select|sig|static|struct|tailcall|then|to|trait|true|try|type|upcast|val|virtual|void|volatile|when|while|with)\b/,number:[/\b0x[\da-fA-F]+(?:LF|lf|un)?\b/,/\b0b[01]+(?:uy|y)?\b/,/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[fm]|e[+-]?\d+)?\b/i,/\b\d+(?:[IlLsy]|UL|u[lsy]?)?\b/],operator:/([<>~&^])\1\1|([*.:<>&])\2|<-|->|[!=:]=|<?\|{1,3}>?|\??(?:<=|>=|<>|[-+*/%=<>])\??|[!?^&]|~[+~-]|:>|:\?>?/}),d.languages.insertBefore("fsharp","keyword",{preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(^#)\b(?:else|endif|if|light|line|nowarn)\b/,lookbehind:!0,alias:"keyword"}}}}),d.languages.insertBefore("fsharp","punctuation",{"computation-expression":{pattern:/\b[_a-z]\w*(?=\s*\{)/i,alias:"keyword"}}),d.languages.insertBefore("fsharp","string",{annotation:{pattern:/\[<.+?>\]/,greedy:!0,inside:{punctuation:/^\[<|>\]$/,"class-name":{pattern:/^\w+$|(^|;\s*)[A-Z]\w*(?=\()/,lookbehind:!0},"annotation-content":{pattern:/[\s\S]+/,inside:d.languages.fsharp}}},char:{pattern:/'(?:[^\\']|\\(?:.|\d{3}|x[a-fA-F\d]{2}|u[a-fA-F\d]{4}|U[a-fA-F\d]{8}))'B?/,greedy:!0}})}},90515:function(J,C,d){"use strict";var b=d(51478);J.exports=I,I.displayName="ftl",I.aliases=[];function I(L){L.register(b),function(B){for(var V=/[^<()"']|\((?:<expr>)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,Q=0;Q<2;Q++)V=V.replace(/<expr>/g,function(){return V});V=V.replace(/<expr>/g,/[^\s\S]/.source);var M={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:<expr>))*\})*\1/.source.replace(/<expr>/g,function(){return V})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:<expr>))*\}/.source.replace(/<expr>/g,function(){return V})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};M.string[1].inside.interpolation.inside.rest=M,B.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:M}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:M}}}},B.hooks.add("before-tokenize",function(de){var he=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:<expr>)*?>|\$\{(?:<expr>)*?\}/.source.replace(/<expr>/g,function(){return V}),"gi");B.languages["markup-templating"].buildPlaceholders(de,"ftl",he)}),B.hooks.add("after-tokenize",function(de){B.languages["markup-templating"].tokenizePlaceholders(de,"ftl")})}(L)}},33534:function(J){"use strict";J.exports=C,C.displayName="gap",C.aliases=[];function C(d){d.languages.gap={shell:{pattern:/^gap>[\s\S]*?(?=^gap>|$(?![\s\S]))/m,greedy:!0,inside:{gap:{pattern:/^(gap>).+(?:(?:\r(?:\n|(?!\n))|\n)>.*)*/,lookbehind:!0,inside:null},punctuation:/^gap>/}},comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(^|[^\\'"])(?:'(?:[^\r\n\\']|\\.){1,10}'|"(?:[^\r\n\\"]|\\.)*"(?!")|"""[\s\S]*?""")/,lookbehind:!0,greedy:!0,inside:{continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"}}},keyword:/\b(?:Assert|Info|IsBound|QUIT|TryNextMethod|Unbind|and|atomic|break|continue|do|elif|else|end|fi|for|function|if|in|local|mod|not|od|or|quit|readonly|readwrite|rec|repeat|return|then|until|while)\b/,boolean:/\b(?:false|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},continuation:{pattern:/([\r\n])>/,lookbehind:!0,alias:"punctuation"},operator:/->|[-+*/^~=!]|<>|[<>]=?|:=|\.\./,punctuation:/[()[\]{},;.:]/},d.languages.gap.shell.inside.gap.inside=d.languages.gap}},9885:function(J){"use strict";J.exports=C,C.displayName="gcode",C.aliases=[];function C(d){d.languages.gcode={comment:/;.*|\B\(.*?\)\B/,string:{pattern:/"(?:""|[^"])*"/,greedy:!0},keyword:/\b[GM]\d+(?:\.\d+)?\b/,property:/\b[A-Z]/,checksum:{pattern:/(\*)\d+/,lookbehind:!0,alias:"number"},punctuation:/[:*]/}}},76364:function(J){"use strict";J.exports=C,C.displayName="gdscript",C.aliases=[];function C(d){d.languages.gdscript={comment:/#.*/,string:{pattern:/@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/,greedy:!0},"class-name":{pattern:/(^(?:class|class_name|extends)[ \t]+|^export\([ \t]*|\bas[ \t]+|(?:\b(?:const|var)[ \t]|[,(])[ \t]*\w+[ \t]*:[ \t]*|->[ \t]*)[a-zA-Z_]\w*/m,lookbehind:!0},keyword:/\b(?:and|as|assert|break|breakpoint|class|class_name|const|continue|elif|else|enum|export|extends|for|func|if|in|is|master|mastersync|match|not|null|onready|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|signal|static|tool|var|while|yield)\b/,function:/\b[a-z_]\w*(?=[ \t]*\()/i,variable:/\$\w+/,number:[/\b0b[01_]+\b|\b0x[\da-fA-F_]+\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.[\d_]+)(?:e[+-]?[\d_]+)?\b/,/\b(?:INF|NAN|PI|TAU)\b/],constant:/\b[A-Z][A-Z_\d]*\b/,boolean:/\b(?:false|true)\b/,operator:/->|:=|&&|\|\||<<|>>|[-+*/%&|!<>=]=?|[~^]/,punctuation:/[.:,;()[\]{}]/}}},56452:function(J){"use strict";J.exports=C,C.displayName="gedcom",C.aliases=[];function C(d){d.languages.gedcom={"line-value":{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?\w+ ).+/m,lookbehind:!0,inside:{pointer:{pattern:/^@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@$/,alias:"variable"}}},tag:{pattern:/(^[\t ]*\d+ +(?:@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@ +)?)\w+/m,lookbehind:!0,alias:"string"},level:{pattern:/(^[\t ]*)\d+/m,lookbehind:!0,alias:"number"},pointer:{pattern:/@\w[\w!"$%&'()*+,\-./:;<=>?[\\\]^`{|}~\x80-\xfe #]*@/,alias:"variable"}}}},8477:function(J){"use strict";J.exports=C,C.displayName="gherkin",C.aliases=[];function C(d){(function(b){var I=/(?:\r?\n|\r)[ \t]*\|.+\|(?:(?!\|).)*/.source;b.languages.gherkin={pystring:{pattern:/("""|''')[\s\S]+?\1/,alias:"string"},comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},tag:{pattern:/(^[ \t]*)@\S*/m,lookbehind:!0},feature:{pattern:/((?:^|\r?\n|\r)[ \t]*)(?:Ability|Ahoy matey!|Arwedd|Aspekt|Besigheid Behoefte|Business Need|Caracteristica|Característica|Egenskab|Egenskap|Eiginleiki|Feature|Fīča|Fitur|Fonctionnalité|Fonksyonalite|Funcionalidade|Funcionalitat|Functionalitate|Funcţionalitate|Funcționalitate|Functionaliteit|Fungsi|Funkcia|Funkcija|Funkcionalitāte|Funkcionalnost|Funkcja|Funksie|Funktionalität|Funktionalitéit|Funzionalità|Hwaet|Hwæt|Jellemző|Karakteristik|Lastnost|Mak|Mogucnost|laH|Mogućnost|Moznosti|Možnosti|OH HAI|Omadus|Ominaisuus|Osobina|Özellik|Potrzeba biznesowa|perbogh|poQbogh malja'|Požadavek|Požiadavka|Pretty much|Qap|Qu'meH 'ut|Savybė|Tính năng|Trajto|Vermoë|Vlastnosť|Właściwość|Značilnost|Δυνατότητα|Λειτουργία|Могућност|Мөмкинлек|Особина|Свойство|Үзенчәлеклелек|Функционал|Функционалност|Функция|Функціонал|תכונה|خاصية|خصوصیت|صلاحیت|کاروبار کی ضرورت|وِیژگی|रूप लेख|ਖਾਸੀਅਤ|ਨਕਸ਼ ਨੁਹਾਰ|ਮੁਹਾਂਦਰਾ|గుణము|ಹೆಚ್ಚಳ|ความต้องการทางธุรกิจ|ความสามารถ|โครงหลัก|기능|フィーチャ|功能|機能):(?:[^:\r\n]+(?:\r?\n|\r|$))*/,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]+/,lookbehind:!0},keyword:/[^:\r\n]+:/}},scenario:{pattern:/(^[ \t]*)(?:Abstract Scenario|Abstrakt Scenario|Achtergrond|Aer|Ær|Agtergrond|All y'all|Antecedentes|Antecedents|Atburðarás|Atburðarásir|Awww, look mate|B4|Background|Baggrund|Bakgrund|Bakgrunn|Bakgrunnur|Beispiele|Beispiller|Bối cảnh|Cefndir|Cenario|Cenário|Cenario de Fundo|Cenário de Fundo|Cenarios|Cenários|Contesto|Context|Contexte|Contexto|Conto|Contoh|Contone|Dæmi|Dasar|Dead men tell no tales|Delineacao do Cenario|Delineação do Cenário|Dis is what went down|Dữ liệu|Dyagram Senaryo|Dyagram senaryo|Egzanp|Ejemplos|Eksempler|Ekzemploj|Enghreifftiau|Esbozo do escenario|Escenari|Escenario|Esempi|Esquema de l'escenari|Esquema del escenario|Esquema do Cenario|Esquema do Cenário|EXAMPLZ|Examples|Exempel|Exemple|Exemples|Exemplos|First off|Fono|Forgatókönyv|Forgatókönyv vázlat|Fundo|Geçmiş|Grundlage|Hannergrond|ghantoH|Háttér|Heave to|Istorik|Juhtumid|Keadaan|Khung kịch bản|Khung tình huống|Kịch bản|Koncept|Konsep skenario|Kontèks|Kontekst|Kontekstas|Konteksts|Kontext|Konturo de la scenaro|Latar Belakang|lut chovnatlh|lut|lutmey|Lýsing Atburðarásar|Lýsing Dæma|MISHUN SRSLY|MISHUN|Menggariskan Senario|mo'|Náčrt Scenára|Náčrt Scénáře|Náčrt Scenáru|Oris scenarija|Örnekler|Osnova|Osnova Scenára|Osnova scénáře|Osnutek|Ozadje|Paraugs|Pavyzdžiai|Példák|Piemēri|Plan du scénario|Plan du Scénario|Plan Senaryo|Plan senaryo|Plang vum Szenario|Pozadí|Pozadie|Pozadina|Príklady|Příklady|Primer|Primeri|Primjeri|Przykłady|Raamstsenaarium|Reckon it's like|Rerefons|Scenár|Scénář|Scenarie|Scenarij|Scenarijai|Scenarijaus šablonas|Scenariji|Scenārijs|Scenārijs pēc parauga|Scenarijus|Scenario|Scénario|Scenario Amlinellol|Scenario Outline|Scenario Template|Scenariomal|Scenariomall|Scenarios|Scenariu|Scenariusz|Scenaro|Schema dello scenario|Se ðe|Se the|Se þe|Senario|Senaryo Deskripsyon|Senaryo deskripsyon|Senaryo|Senaryo taslağı|Shiver me timbers|Situācija|Situai|Situasie Uiteensetting|Situasie|Skenario konsep|Skenario|Skica|Structura scenariu|Structură scenariu|Struktura scenarija|Stsenaarium|Swa hwaer swa|Swa|Swa hwær swa|Szablon scenariusza|Szenario|Szenariogrundriss|Tapaukset|Tapaus|Tapausaihio|Taust|Tausta|Template Keadaan|Template Senario|Template Situai|The thing of it is|Tình huống|Variantai|Voorbeelde|Voorbeelden|Wharrimean is|Yo-ho-ho|You'll wanna|Założenia|Παραδείγματα|Περιγραφή Σεναρίου|Σενάρια|Σενάριο|Υπόβαθρο|Кереш|Контекст|Концепт|Мисаллар|Мисоллар|Основа|Передумова|Позадина|Предистория|Предыстория|Приклади|Пример|Примери|Примеры|Рамка на сценарий|Скица|Структура сценарија|Структура сценария|Структура сценарію|Сценарий|Сценарий структураси|Сценарийның төзелеше|Сценарији|Сценарио|Сценарій|Тарих|Үрнәкләр|דוגמאות|רקע|תבנית תרחיש|תרחיש|الخلفية|الگوی سناریو|امثلة|پس منظر|زمینه|سناریو|سيناريو|سيناريو مخطط|مثالیں|منظر نامے کا خاکہ|منظرنامہ|نمونه ها|उदाहरण|परिदृश्य|परिदृश्य रूपरेखा|पृष्ठभूमि|ਉਦਾਹਰਨਾਂ|ਪਟਕਥਾ|ਪਟਕਥਾ ਢਾਂਚਾ|ਪਟਕਥਾ ਰੂਪ ਰੇਖਾ|ਪਿਛੋਕੜ|ఉదాహరణలు|కథనం|నేపథ్యం|సన్నివేశం|ಉದಾಹರಣೆಗಳು|ಕಥಾಸಾರಾಂಶ|ವಿವರಣೆ|ಹಿನ್ನೆಲೆ|โครงสร้างของเหตุการณ์|ชุดของตัวอย่าง|ชุดของเหตุการณ์|แนวคิด|สรุปเหตุการณ์|เหตุการณ์|배경|시나리오|시나리오 개요|예|サンプル|シナリオ|シナリオアウトライン|シナリオテンプレ|シナリオテンプレート|テンプレ|例|例子|剧本|剧本大纲|劇本|劇本大綱|场景|场景大纲|場景|場景大綱|背景):[^:\r\n]*/m,lookbehind:!0,inside:{important:{pattern:/(:)[^\r\n]*/,lookbehind:!0},keyword:/[^:\r\n]+:/}},"table-body":{pattern:RegExp("("+I+")(?:"+I+")+"),lookbehind:!0,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"},td:{pattern:/\s*[^\s|][^|]*/,alias:"string"},punctuation:/\|/}},"table-head":{pattern:RegExp(I),inside:{th:{pattern:/\s*[^\s|][^|]*/,alias:"variable"},punctuation:/\|/}},atrule:{pattern:/(^[ \t]+)(?:'a|'ach|'ej|7|a|A také|A taktiež|A tiež|A zároveň|Aber|Ac|Adott|Akkor|Ak|Aleshores|Ale|Ali|Allora|Alors|Als|Ama|Amennyiben|Amikor|Ampak|an|AN|Ananging|And y'all|And|Angenommen|Anrhegedig a|An|Apabila|Atès|Atesa|Atunci|Avast!|Aye|A|awer|Bagi|Banjur|Bet|Biết|Blimey!|Buh|But at the end of the day I reckon|But y'all|But|BUT|Cal|Când|Cand|Cando|Ce|Cuando|Če|Ða ðe|Ða|Dadas|Dada|Dados|Dado|DaH ghu' bejlu'|dann|Dann|Dano|Dan|Dar|Dat fiind|Data|Date fiind|Date|Dati fiind|Dati|Daţi fiind|Dați fiind|DEN|Dato|De|Den youse gotta|Dengan|Diberi|Diyelim ki|Donada|Donat|Donitaĵo|Do|Dun|Duota|Ðurh|Eeldades|Ef|Eğer ki|Entao|Então|Entón|E|En|Entonces|Epi|És|Etant donnée|Etant donné|Et|Étant données|Étant donnée|Étant donné|Etant données|Etant donnés|Étant donnés|Fakat|Gangway!|Gdy|Gegeben seien|Gegeben sei|Gegeven|Gegewe|ghu' noblu'|Gitt|Given y'all|Given|Givet|Givun|Ha|Cho|I CAN HAZ|In|Ir|It's just unbelievable|I|Ja|Jeśli|Jeżeli|Kad|Kada|Kadar|Kai|Kaj|Když|Keď|Kemudian|Ketika|Khi|Kiedy|Ko|Kuid|Kui|Kun|Lan|latlh|Le sa a|Let go and haul|Le|Lè sa a|Lè|Logo|Lorsqu'<|Lorsque|mä|Maar|Mais|Mając|Ma|Majd|Maka|Manawa|Mas|Men|Menawa|Mutta|Nalika|Nalikaning|Nanging|Når|När|Nato|Nhưng|Niin|Njuk|O zaman|Och|Og|Oletetaan|Ond|Onda|Oraz|Pak|Pero|Però|Podano|Pokiaľ|Pokud|Potem|Potom|Privzeto|Pryd|Quan|Quand|Quando|qaSDI'|Så|Sed|Se|Siis|Sipoze ke|Sipoze Ke|Sipoze|Si|Şi|Și|Soit|Stel|Tada|Tad|Takrat|Tak|Tapi|Ter|Tetapi|Tha the|Tha|Then y'all|Then|Thì|Thurh|Toda|Too right|Un|Und|ugeholl|Và|vaj|Vendar|Ve|wann|Wanneer|WEN|Wenn|When y'all|When|Wtedy|Wun|Y'know|Yeah nah|Yna|Youse know like when|Youse know when youse got|Y|Za predpokladu|Za předpokladu|Zadan|Zadani|Zadano|Zadate|Zadato|Zakładając|Zaradi|Zatati|Þa þe|Þa|Þá|Þegar|Þurh|Αλλά|Δεδομένου|Και|Όταν|Τότε|А також|Агар|Але|Али|Аммо|А|Әгәр|Әйтик|Әмма|Бирок|Ва|Вә|Дадено|Дано|Допустим|Если|Задате|Задати|Задато|И|І|К тому же|Када|Кад|Когато|Когда|Коли|Ләкин|Лекин|Нәтиҗәдә|Нехай|Но|Онда|Припустимо, що|Припустимо|Пусть|Также|Та|Тогда|Тоді|То|Унда|Һәм|Якщо|אבל|אזי|אז|בהינתן|וגם|כאשר|آنگاه|اذاً|اگر|اما|اور|با فرض|بالفرض|بفرض|پھر|تب|ثم|جب|عندما|فرض کیا|لكن|لیکن|متى|هنگامی|و|अगर|और|कदा|किन्तु|चूंकि|जब|तथा|तदा|तब|परन्तु|पर|यदि|ਅਤੇ|ਜਦੋਂ|ਜਿਵੇਂ ਕਿ|ਜੇਕਰ|ਤਦ|ਪਰ|అప్పుడు|ఈ పరిస్థితిలో|కాని|చెప్పబడినది|మరియు|ಆದರೆ|ನಂತರ|ನೀಡಿದ|ಮತ್ತು|ಸ್ಥಿತಿಯನ್ನು|กำหนดให้|ดังนั้น|แต่|เมื่อ|และ|그러면<|그리고<|단<|만약<|만일<|먼저<|조건<|하지만<|かつ<|しかし<|ただし<|ならば<|もし<|並且<|但し<|但是<|假如<|假定<|假設<|假设<|前提<|同时<|同時<|并且<|当<|當<|而且<|那么<|那麼<)(?=[ \t])/m,lookbehind:!0},string:{pattern:/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,inside:{outline:{pattern:/<[^>]+>/,alias:"variable"}}},outline:{pattern:/<[^>]+>/,alias:"variable"}}})(d)}},58230:function(J){"use strict";J.exports=C,C.displayName="git",C.aliases=[];function C(d){d.languages.git={comment:/^#.*/m,deleted:/^[-–].*/m,inserted:/^\+.*/m,string:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,command:{pattern:/^.*\$ git .*$/m,inside:{parameter:/\s--?\w+/}},coord:/^@@.*@@$/m,"commit-sha1":/^commit \w{40}$/m}}},66192:function(J,C,d){"use strict";var b=d(79440);J.exports=I,I.displayName="glsl",I.aliases=[];function I(L){L.register(b),L.languages.glsl=L.languages.extend("c",{keyword:/\b(?:active|asm|atomic_uint|attribute|[ibdu]?vec[234]|bool|break|buffer|case|cast|centroid|class|coherent|common|const|continue|d?mat[234](?:x[234])?|default|discard|do|double|else|enum|extern|external|false|filter|fixed|flat|float|for|fvec[234]|goto|half|highp|hvec[234]|[iu]?sampler2DMS(?:Array)?|[iu]?sampler2DRect|[iu]?samplerBuffer|[iu]?samplerCube|[iu]?samplerCubeArray|[iu]?sampler[123]D|[iu]?sampler[12]DArray|[iu]?image2DMS(?:Array)?|[iu]?image2DRect|[iu]?imageBuffer|[iu]?imageCube|[iu]?imageCubeArray|[iu]?image[123]D|[iu]?image[12]DArray|if|in|inline|inout|input|int|interface|invariant|layout|long|lowp|mediump|namespace|noinline|noperspective|out|output|partition|patch|precise|precision|public|readonly|resource|restrict|return|sample|sampler[12]DArrayShadow|sampler[12]DShadow|sampler2DRectShadow|sampler3DRect|samplerCubeArrayShadow|samplerCubeShadow|shared|short|sizeof|smooth|static|struct|subroutine|superp|switch|template|this|true|typedef|uint|uniform|union|unsigned|using|varying|void|volatile|while|writeonly)\b/})}},81084:function(J){"use strict";J.exports=C,C.displayName="gml",C.aliases=[];function C(d){d.languages.gamemakerlanguage=d.languages.gml=d.languages.extend("clike",{keyword:/\b(?:break|case|continue|default|do|else|enum|exit|for|globalvar|if|repeat|return|switch|until|var|while)\b/,number:/(?:\b0x[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[ulf]{0,4}/i,operator:/--|\+\+|[-+%/=]=?|!=|\*\*?=?|<[<=>]?|>[=>]?|&&?|\^\^?|\|\|?|~|\b(?:and|at|not|or|with|xor)\b/,constant:/\b(?:GM_build_date|GM_version|action_(?:continue|restart|reverse|stop)|all|gamespeed_(?:fps|microseconds)|global|local|noone|other|pi|pointer_(?:invalid|null)|self|timezone_(?:local|utc)|undefined|ev_(?:create|destroy|step|alarm|keyboard|mouse|collision|other|draw|draw_(?:begin|end|post|pre)|keypress|keyrelease|trigger|(?:left|middle|no|right)_button|(?:left|middle|right)_press|(?:left|middle|right)_release|mouse_(?:enter|leave|wheel_down|wheel_up)|global_(?:left|middle|right)_button|global_(?:left|middle|right)_press|global_(?:left|middle|right)_release|joystick(?:1|2)_(?:button1|button2|button3|button4|button5|button6|button7|button8|down|left|right|up)|outside|boundary|game_start|game_end|room_start|room_end|no_more_lives|animation_end|end_of_path|no_more_health|user\d|gui|gui_begin|gui_end|step_(?:begin|end|normal))|vk_(?:alt|anykey|backspace|control|delete|down|end|enter|escape|home|insert|left|nokey|pagedown|pageup|pause|printscreen|return|right|shift|space|tab|up|f\d|numpad\d|add|decimal|divide|lalt|lcontrol|lshift|multiply|ralt|rcontrol|rshift|subtract)|achievement_(?:filter_(?:all_players|favorites_only|friends_only)|friends_info|info|leaderboard_info|our_info|pic_loaded|show_(?:achievement|bank|friend_picker|leaderboard|profile|purchase_prompt|ui)|type_challenge|type_score_challenge)|asset_(?:font|object|path|room|script|shader|sound|sprite|tiles|timeline|unknown)|audio_(?:3d|falloff_(?:exponent_distance|exponent_distance_clamped|inverse_distance|inverse_distance_clamped|linear_distance|linear_distance_clamped|none)|mono|new_system|old_system|stereo)|bm_(?:add|complex|dest_alpha|dest_color|dest_colour|inv_dest_alpha|inv_dest_color|inv_dest_colour|inv_src_alpha|inv_src_color|inv_src_colour|max|normal|one|src_alpha|src_alpha_sat|src_color|src_colour|subtract|zero)|browser_(?:chrome|firefox|ie|ie_mobile|not_a_browser|opera|safari|safari_mobile|tizen|unknown|windows_store)|buffer_(?:bool|f16|f32|f64|fast|fixed|generalerror|grow|invalidtype|network|outofbounds|outofspace|s16|s32|s8|seek_end|seek_relative|seek_start|string|text|u16|u32|u64|u8|vbuffer|wrap)|c_(?:aqua|black|blue|dkgray|fuchsia|gray|green|lime|ltgray|maroon|navy|olive|orange|purple|red|silver|teal|white|yellow)|cmpfunc_(?:always|equal|greater|greaterequal|less|lessequal|never|notequal)|cr_(?:appstart|arrow|beam|cross|default|drag|handpoint|hourglass|none|size_all|size_nesw|size_ns|size_nwse|size_we|uparrow)|cull_(?:clockwise|counterclockwise|noculling)|device_(?:emulator|tablet)|device_ios_(?:ipad|ipad_retina|iphone|iphone5|iphone6|iphone6plus|iphone_retina|unknown)|display_(?:landscape|landscape_flipped|portrait|portrait_flipped)|dll_(?:cdecl|cdel|stdcall)|ds_type_(?:grid|list|map|priority|queue|stack)|ef_(?:cloud|ellipse|explosion|firework|flare|rain|ring|smoke|smokeup|snow|spark|star)|fa_(?:archive|bottom|center|directory|hidden|left|middle|readonly|right|sysfile|top|volumeid)|fb_login_(?:default|fallback_to_webview|forcing_safari|forcing_webview|no_fallback_to_webview|use_system_account)|iap_(?:available|canceled|ev_consume|ev_product|ev_purchase|ev_restore|ev_storeload|failed|purchased|refunded|status_available|status_loading|status_processing|status_restoring|status_unavailable|status_uninitialised|storeload_failed|storeload_ok|unavailable)|leaderboard_type_(?:number|time_mins_secs)|lighttype_(?:dir|point)|matrix_(?:projection|view|world)|mb_(?:any|left|middle|none|right)|network_(?:config_(?:connect_timeout|disable_reliable_udp|enable_reliable_udp|use_non_blocking_socket)|socket_(?:bluetooth|tcp|udp)|type_(?:connect|data|disconnect|non_blocking_connect))|of_challenge_(?:lose|tie|win)|os_(?:android|ios|linux|macosx|ps3|ps4|psvita|unknown|uwp|win32|win8native|windows|winphone|xboxone)|phy_debug_render_(?:aabb|collision_pairs|coms|core_shapes|joints|obb|shapes)|phy_joint_(?:anchor_1_x|anchor_1_y|anchor_2_x|anchor_2_y|angle|angle_limits|damping_ratio|frequency|length_1|length_2|lower_angle_limit|max_force|max_length|max_motor_force|max_motor_torque|max_torque|motor_force|motor_speed|motor_torque|reaction_force_x|reaction_force_y|reaction_torque|speed|translation|upper_angle_limit)|phy_particle_data_flag_(?:category|color|colour|position|typeflags|velocity)|phy_particle_flag_(?:colormixing|colourmixing|elastic|powder|spring|tensile|viscous|wall|water|zombie)|phy_particle_group_flag_(?:rigid|solid)|pr_(?:linelist|linestrip|pointlist|trianglefan|trianglelist|trianglestrip)|ps_(?:distr|shape)_(?:diamond|ellipse|gaussian|invgaussian|line|linear|rectangle)|pt_shape_(?:circle|cloud|disk|explosion|flare|line|pixel|ring|smoke|snow|spark|sphere|square|star)|ty_(?:real|string)|gp_(?:face\d|axislh|axislv|axisrh|axisrv|padd|padl|padr|padu|select|shoulderl|shoulderlb|shoulderr|shoulderrb|start|stickl|stickr)|lb_disp_(?:none|numeric|time_ms|time_sec)|lb_sort_(?:ascending|descending|none)|ov_(?:achievements|community|friends|gamegroup|players|settings)|ugc_(?:filetype_(?:community|microtrans)|list_(?:Favorited|Followed|Published|Subscribed|UsedOrPlayed|VotedDown|VotedOn|VotedUp|WillVoteLater)|match_(?:AllGuides|Artwork|Collections|ControllerBindings|IntegratedGuides|Items|Items_Mtx|Items_ReadyToUse|Screenshots|UsableInGame|Videos|WebGuides)|query_(?:AcceptedForGameRankedByAcceptanceDate|CreatedByFriendsRankedByPublicationDate|FavoritedByFriendsRankedByPublicationDate|NotYetRated)|query_RankedBy(?:NumTimesReported|PublicationDate|TextSearch|TotalVotesAsc|Trend|Vote|VotesUp)|result_success|sortorder_CreationOrder(?:Asc|Desc)|sortorder_(?:ForModeration|LastUpdatedDesc|SubscriptionDateDesc|TitleAsc|VoteScoreDesc)|visibility_(?:friends_only|private|public))|vertex_usage_(?:binormal|blendindices|blendweight|color|colour|depth|fog|normal|position|psize|sample|tangent|texcoord|textcoord)|vertex_type_(?:float\d|color|colour|ubyte4)|input_type|layerelementtype_(?:background|instance|oldtilemap|particlesystem|sprite|tile|tilemap|undefined)|se_(?:chorus|compressor|echo|equalizer|flanger|gargle|none|reverb)|text_type|tile_(?:flip|index_mask|mirror|rotate)|(?:obj|rm|scr|spr)\w+)\b/,variable:/\b(?:alarm|application_surface|async_load|background_(?:alpha|blend|color|colour|foreground|height|hspeed|htiled|index|showcolor|showcolour|visible|vspeed|vtiled|width|x|xscale|y|yscale)|bbox_(?:bottom|left|right|top)|browser_(?:height|width)|caption_(?:health|lives|score)|current_(?:day|hour|minute|month|second|time|weekday|year)|cursor_sprite|debug_mode|delta_time|direction|display_aa|error_(?:last|occurred)|event_(?:action|number|object|type)|fps|fps_real|friction|game_(?:display|project|save)_(?:id|name)|gamemaker_(?:pro|registered|version)|gravity|gravity_direction|(?:h|v)speed|health|iap_data|id|image_(?:alpha|angle|blend|depth|index|number|speed|xscale|yscale)|instance_(?:count|id)|keyboard_(?:key|lastchar|lastkey|string)|layer|lives|mask_index|mouse_(?:button|lastbutton|x|y)|object_index|os_(?:browser|device|type|version)|path_(?:endaction|index|orientation|position|positionprevious|scale|speed)|persistent|phy_(?:rotation|(?:col_normal|collision|com|linear_velocity|position|speed)_(?:x|y)|angular_(?:damping|velocity)|position_(?:x|y)previous|speed|linear_damping|bullet|fixed_rotation|active|mass|inertia|dynamic|kinematic|sleeping|collision_points)|pointer_(?:invalid|null)|room|room_(?:caption|first|height|last|persistent|speed|width)|score|secure_mode|show_(?:health|lives|score)|solid|speed|sprite_(?:height|index|width|xoffset|yoffset)|temp_directory|timeline_(?:index|loop|position|running|speed)|transition_(?:color|kind|steps)|undefined|view_(?:angle|current|enabled|(?:h|v)(?:border|speed)|(?:h|w|x|y)port|(?:h|w|x|y)view|object|surface_id|visible)|visible|webgl_enabled|working_directory|(?:x|y)(?:previous|start)|x|y|argument(?:_relitive|_count|\d)|argument|global|local|other|self)\b/})}},50318:function(J){"use strict";J.exports=C,C.displayName="gn",C.aliases=["gni"];function C(d){d.languages.gn={comment:{pattern:/#.*/,greedy:!0},"string-literal":{pattern:/(^|[^\\"])"(?:[^\r\n"\\]|\\.)*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[\s\S]*?\}|[a-zA-Z_]\w*|0x[a-fA-F0-9]{2})/,lookbehind:!0,inside:{number:/^\$0x[\s\S]{2}$/,variable:/^\$\w+$/,"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},string:/[\s\S]+/}},keyword:/\b(?:else|if)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/\b(?:assert|defined|foreach|import|pool|print|template|tool|toolchain)(?=\s*\()/i,alias:"keyword"},function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:current_cpu|current_os|current_toolchain|default_toolchain|host_cpu|host_os|root_build_dir|root_gen_dir|root_out_dir|target_cpu|target_gen_dir|target_os|target_out_dir)\b/,number:/-?\b\d+\b/,operator:/[-+!=<>]=?|&&|\|\|/,punctuation:/[(){}[\],.]/},d.languages.gn["string-literal"].inside.interpolation.inside.expression.inside=d.languages.gn,d.languages.gni=d.languages.gn}},95769:function(J){"use strict";J.exports=C,C.displayName="goModule",C.aliases=[];function C(d){d.languages["go-mod"]=d.languages["go-module"]={comment:{pattern:/\/\/.*/,greedy:!0},version:{pattern:/(^|[\s()[\],])v\d+\.\d+\.\d+(?:[+-][-+.\w]*)?(?![^\s()[\],])/,lookbehind:!0,alias:"number"},"go-version":{pattern:/((?:^|\s)go\s+)\d+(?:\.\d+){1,2}/,lookbehind:!0,alias:"number"},keyword:{pattern:/^([ \t]*)(?:exclude|go|module|replace|require|retract)\b/m,lookbehind:!0},operator:/=>/,punctuation:/[()[\],]/}}},14155:function(J){"use strict";J.exports=C,C.displayName="go",C.aliases=[];function C(d){d.languages.go=d.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:break|case|chan|const|continue|default|defer|else|fallthrough|for|func|go(?:to)?|if|import|interface|map|package|range|return|select|struct|switch|type|var)\b/,boolean:/\b(?:_|false|iota|nil|true)\b/,number:[/\b0(?:b[01_]+|o[0-7_]+)i?\b/i,/\b0x(?:[a-f\d_]+(?:\.[a-f\d_]*)?|\.[a-f\d_]+)(?:p[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,/(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?[\d_]+)?i?(?!\w)/i],operator:/[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\./,builtin:/\b(?:append|bool|byte|cap|close|complex|complex(?:64|128)|copy|delete|error|float(?:32|64)|u?int(?:8|16|32|64)?|imag|len|make|new|panic|print(?:ln)?|real|recover|rune|string|uintptr)\b/}),d.languages.insertBefore("go","string",{char:{pattern:/'(?:\\.|[^'\\\r\n]){0,10}'/,greedy:!0}}),delete d.languages.go["class-name"]}},92823:function(J){"use strict";J.exports=C,C.displayName="graphql",C.aliases=[];function C(d){d.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:d.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},d.hooks.add("after-tokenize",function(I){if(I.language!=="graphql")return;var L=I.tokens.filter(function(Pe){return typeof Pe!="string"&&Pe.type!=="comment"&&Pe.type!=="scalar"}),B=0;function V(Pe){return L[B+Pe]}function Q(Pe,ze){ze=ze||0;for(var Ee=0;Ee<Pe.length;Ee++){var fe=V(Ee+ze);if(!fe||fe.type!==Pe[Ee])return!1}return!0}function M(Pe,ze){for(var Ee=1,fe=B;fe<L.length;fe++){var we=L[fe],pe=we.content;if(we.type==="punctuation"&&typeof pe=="string"){if(Pe.test(pe))Ee++;else if(ze.test(pe)&&(Ee--,Ee===0))return fe}}return-1}function de(Pe,ze){var Ee=Pe.alias;Ee?Array.isArray(Ee)||(Pe.alias=Ee=[Ee]):Pe.alias=Ee=[],Ee.push(ze)}for(;B<L.length;){var he=L[B++];if(he.type==="keyword"&&he.content==="mutation"){var re=[];if(Q(["definition-mutation","punctuation"])&&V(1).content==="("){B+=2;var De=M(/^\($/,/^\)$/);if(De===-1)continue;for(;B<De;B++){var ne=V(0);ne.type==="variable"&&(de(ne,"variable-input"),re.push(ne.content))}B=De+1}if(Q(["punctuation","property-query"])&&V(0).content==="{"&&(B++,de(V(0),"property-mutation"),re.length>0)){var it=M(/^\{$/,/^\}$/);if(it===-1)continue;for(var Ue=B;Ue<it;Ue++){var Ie=L[Ue];Ie.type==="variable"&&re.indexOf(Ie.content)>=0&&de(Ie,"variable-input")}}}}})}},63092:function(J){"use strict";J.exports=C,C.displayName="groovy",C.aliases=[];function C(d){d.languages.groovy=d.languages.extend("clike",{string:[{pattern:/("""|''')(?:[^\\]|\\[\s\S])*?\1|\$\/(?:[^/$]|\$(?:[/$]|(?![/$]))|\/(?!\$))*\/\$/,greedy:!0},{pattern:/(["'/])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0}],keyword:/\b(?:abstract|as|assert|boolean|break|byte|case|catch|char|class|const|continue|def|default|do|double|else|enum|extends|final|finally|float|for|goto|if|implements|import|in|instanceof|int|interface|long|native|new|package|private|protected|public|return|short|static|strictfp|super|switch|synchronized|this|throw|throws|trait|transient|try|void|volatile|while)\b/,number:/\b(?:0b[01_]+|0x[\da-f_]+(?:\.[\da-f_p\-]+)?|[\d_]+(?:\.[\d_]+)?(?:e[+-]?\d+)?)[glidf]?\b/i,operator:{pattern:/(^|[^.])(?:~|==?~?|\?[.:]?|\*(?:[.=]|\*=?)?|\.[@&]|\.\.<|\.\.(?!\.)|-[-=>]?|\+[+=]?|!=?|<(?:<=?|=>?)?|>(?:>>?=?|=)?|&[&=]?|\|[|=]?|\/=?|\^=?|%=?)/,lookbehind:!0},punctuation:/\.+|[{}[\];(),:$]/}),d.languages.insertBefore("groovy","string",{shebang:{pattern:/#!.+/,alias:"comment"}}),d.languages.insertBefore("groovy","punctuation",{"spock-block":/\b(?:and|cleanup|expect|given|setup|then|when|where):/}),d.languages.insertBefore("groovy","function",{annotation:{pattern:/(^|[^.])@\w+/,lookbehind:!0,alias:"punctuation"}}),d.hooks.add("wrap",function(b){if(b.language==="groovy"&&b.type==="string"){var I=b.content.value[0];if(I!="'"){var L=/([^\\])(?:\$(?:\{.*?\}|[\w.]+))/;I==="$"&&(L=/([^\$])(?:\$(?:\{.*?\}|[\w.]+))/),b.content.value=b.content.value.replace(/</g,"<").replace(/&/g,"&"),b.content=d.highlight(b.content.value,{expression:{pattern:L,lookbehind:!0,inside:d.languages.groovy}}),b.classes.push(I==="/"?"regex":"gstring")}}})}},21550:function(J,C,d){"use strict";var b=d(75308);J.exports=I,I.displayName="haml",I.aliases=[];function I(L){L.register(b),function(B){B.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:B.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:B.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:B.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:B.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:B.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:B.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:B.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var V="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",Q=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],M={},de=0,he=Q.length;de<he;de++){var re=Q[de];re=typeof re=="string"?{filter:re,language:re}:re,B.languages[re.language]&&(M["filter-"+re.filter]={pattern:RegExp(V.replace("{{filter_name}}",function(){return re.filter})),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"},text:{pattern:/[\s\S]+/,alias:[re.language,"language-"+re.language],inside:B.languages[re.language]}}})}B.languages.insertBefore("haml","filter",M)}(L)}},29710:function(J,C,d){"use strict";var b=d(51478);J.exports=I,I.displayName="handlebars",I.aliases=["hbs"];function I(L){L.register(b),function(B){B.languages.handlebars={comment:/\{\{![\s\S]*?\}\}/,delimiter:{pattern:/^\{\{\{?|\}\}\}?$/,alias:"punctuation"},string:/(["'])(?:\\.|(?!\1)[^\\\r\n])*\1/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][+-]?\d+)?/,boolean:/\b(?:false|true)\b/,block:{pattern:/^(\s*(?:~\s*)?)[#\/]\S+?(?=\s*(?:~\s*)?$|\s)/,lookbehind:!0,alias:"keyword"},brackets:{pattern:/\[[^\]]+\]/,inside:{punctuation:/\[|\]/,variable:/[\s\S]+/}},punctuation:/[!"#%&':()*+,.\/;<=>@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},B.hooks.add("before-tokenize",function(V){var Q=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;B.languages["markup-templating"].buildPlaceholders(V,"handlebars",Q)}),B.hooks.add("after-tokenize",function(V){B.languages["markup-templating"].tokenizePlaceholders(V,"handlebars")}),B.languages.hbs=B.languages.handlebars}(L)}},2050:function(J){"use strict";J.exports=C,C.displayName="haskell",C.aliases=["hs"];function C(d){d.languages.haskell={comment:{pattern:/(^|[^-!#$%*+=?&@|~.:<>^\\\/])(?:--(?:(?=.)[^-!#$%*+=?&@|~.:<>^\\\/].*|$)|\{-[\s\S]*?-\})/m,lookbehind:!0},char:{pattern:/'(?:[^\\']|\\(?:[abfnrtv\\"'&]|\^[A-Z@[\]^_]|ACK|BEL|BS|CAN|CR|DC1|DC2|DC3|DC4|DEL|DLE|EM|ENQ|EOT|ESC|ETB|ETX|FF|FS|GS|HT|LF|NAK|NUL|RS|SI|SO|SOH|SP|STX|SUB|SYN|US|VT|\d+|o[0-7]+|x[0-9a-fA-F]+))'/,alias:"string"},string:{pattern:/"(?:[^\\"]|\\(?:\S|\s+\\))*"/,greedy:!0},keyword:/\b(?:case|class|data|deriving|do|else|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b/,"import-statement":{pattern:/(^[\t ]*)import\s+(?:qualified\s+)?(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*(?:\s+as\s+(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import|qualified)\b/,punctuation:/\./}},builtin:/\b(?:abs|acos|acosh|all|and|any|appendFile|approxRational|asTypeOf|asin|asinh|atan|atan2|atanh|basicIORun|break|catch|ceiling|chr|compare|concat|concatMap|const|cos|cosh|curry|cycle|decodeFloat|denominator|digitToInt|div|divMod|drop|dropWhile|either|elem|encodeFloat|enumFrom|enumFromThen|enumFromThenTo|enumFromTo|error|even|exp|exponent|fail|filter|flip|floatDigits|floatRadix|floatRange|floor|fmap|foldl|foldl1|foldr|foldr1|fromDouble|fromEnum|fromInt|fromInteger|fromIntegral|fromRational|fst|gcd|getChar|getContents|getLine|group|head|id|inRange|index|init|intToDigit|interact|ioError|isAlpha|isAlphaNum|isAscii|isControl|isDenormalized|isDigit|isHexDigit|isIEEE|isInfinite|isLower|isNaN|isNegativeZero|isOctDigit|isPrint|isSpace|isUpper|iterate|last|lcm|length|lex|lexDigits|lexLitChar|lines|log|logBase|lookup|map|mapM|mapM_|max|maxBound|maximum|maybe|min|minBound|minimum|mod|negate|not|notElem|null|numerator|odd|or|ord|otherwise|pack|pi|pred|primExitWith|print|product|properFraction|putChar|putStr|putStrLn|quot|quotRem|range|rangeSize|read|readDec|readFile|readFloat|readHex|readIO|readInt|readList|readLitChar|readLn|readOct|readParen|readSigned|reads|readsPrec|realToFrac|recip|rem|repeat|replicate|return|reverse|round|scaleFloat|scanl|scanl1|scanr|scanr1|seq|sequence|sequence_|show|showChar|showInt|showList|showLitChar|showParen|showSigned|showString|shows|showsPrec|significand|signum|sin|sinh|snd|sort|span|splitAt|sqrt|subtract|succ|sum|tail|take|takeWhile|tan|tanh|threadToIOResult|toEnum|toInt|toInteger|toLower|toRational|toUpper|truncate|uncurry|undefined|unlines|until|unwords|unzip|unzip3|userError|words|writeFile|zip|zip3|zipWith|zipWith3)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0o[0-7]+|0x[0-9a-f]+)\b/i,operator:[{pattern:/`(?:[A-Z][\w']*\.)*[_a-z][\w']*`/,greedy:!0},{pattern:/(\s)\.(?=\s)/,lookbehind:!0},/[-!#$%*+=?&@|~:<>^\\\/][-!#$%*+=?&@|~.:<>^\\\/]*|\.[-!#$%*+=?&@|~.:<>^\\\/]+/],hvariable:{pattern:/\b(?:[A-Z][\w']*\.)*[_a-z][\w']*/,inside:{punctuation:/\./}},constant:{pattern:/\b(?:[A-Z][\w']*\.)*[A-Z][\w']*/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:]/},d.languages.hs=d.languages.haskell}},67967:function(J){"use strict";J.exports=C,C.displayName="haxe",C.aliases=[];function C(d){d.languages.haxe=d.languages.extend("clike",{string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},"class-name":[{pattern:/(\b(?:abstract|class|enum|extends|implements|interface|new|typedef)\s+)[A-Z_]\w*/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\bthis\b|\b(?:abstract|as|break|case|cast|catch|class|continue|default|do|dynamic|else|enum|extends|extern|final|for|from|function|if|implements|import|in|inline|interface|macro|new|null|operator|overload|override|package|private|public|return|static|super|switch|throw|to|try|typedef|untyped|using|var|while)(?!\.)\b/,function:{pattern:/\b[a-z_]\w*(?=\s*(?:<[^<>]*>\s*)?\()/i,greedy:!0},operator:/\.{3}|\+\+|--|&&|\|\||->|=>|(?:<<?|>{1,3}|[-+*/%!=&|^])=?|[?:~]/}),d.languages.insertBefore("haxe","string",{"string-interpolation":{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{interpolation:{pattern:/(^|[^\\])\$(?:\w+|\{[^{}]+\})/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:d.languages.haxe}}},string:/[\s\S]+/}}}),d.languages.insertBefore("haxe","class-name",{regex:{pattern:/~\/(?:[^\/\\\r\n]|\\.)+\/[a-z]*/,greedy:!0,inside:{"regex-flags":/\b[a-z]+$/,"regex-source":{pattern:/^(~\/)[\s\S]+(?=\/$)/,lookbehind:!0,alias:"language-regex",inside:d.languages.regex},"regex-delimiter":/^~\/|\/$/}}}),d.languages.insertBefore("haxe","keyword",{preprocessor:{pattern:/#(?:else|elseif|end|if)\b.*/,alias:"property"},metadata:{pattern:/@:?[\w.]+/,alias:"symbol"},reification:{pattern:/\$(?:\w+|(?=\{))/,alias:"important"}})}},29138:function(J){"use strict";J.exports=C,C.displayName="hcl",C.aliases=[];function C(d){d.languages.hcl={comment:/(?:\/\/|#).*|\/\*[\s\S]*?(?:\*\/|$)/,heredoc:{pattern:/<<-?(\w+\b)[\s\S]*?^[ \t]*\1/m,greedy:!0,alias:"string"},keyword:[{pattern:/(?:data|resource)\s+(?:"(?:\\[\s\S]|[^\\"])*")(?=\s+"[\w-]+"\s+\{)/i,inside:{type:{pattern:/(resource|data|\s+)(?:"(?:\\[\s\S]|[^\\"])*")/i,lookbehind:!0,alias:"variable"}}},{pattern:/(?:backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+(?=\{)/i,inside:{type:{pattern:/(backend|module|output|provider|provisioner|variable)\s+(?:[\w-]+|"(?:\\[\s\S]|[^\\"])*")\s+/i,lookbehind:!0,alias:"variable"}}},/[\w-]+(?=\s+\{)/],property:[/[-\w\.]+(?=\s*=(?!=))/,/"(?:\\[\s\S]|[^\\"])+"(?=\s*[:=])/],string:{pattern:/"(?:[^\\$"]|\\[\s\S]|\$(?:(?=")|\$+(?!\$)|[^"${])|\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\})*"/,greedy:!0,inside:{interpolation:{pattern:/(^|[^$])\$\{(?:[^{}"]|"(?:[^\\"]|\\[\s\S])*")*\}/,lookbehind:!0,inside:{type:{pattern:/(\b(?:count|data|local|module|path|self|terraform|var)\b\.)[\w\*]+/i,lookbehind:!0,alias:"variable"},keyword:/\b(?:count|data|local|module|path|self|terraform|var)\b/i,function:/\w+(?=\()/,string:{pattern:/"(?:\\[\s\S]|[^\\"])*"/,greedy:!0},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[!\$#%&'()*+,.\/;<=>@\[\\\]^`{|}~?:]/}}}},number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,boolean:/\b(?:false|true)\b/i,punctuation:/[=\[\]{}]/}}},67915:function(J,C,d){"use strict";var b=d(79440);J.exports=I,I.displayName="hlsl",I.aliases=[];function I(L){L.register(b),L.languages.hlsl=L.languages.extend("c",{"class-name":[L.languages.c["class-name"],/\b(?:AppendStructuredBuffer|BlendState|Buffer|ByteAddressBuffer|CompileShader|ComputeShader|ConsumeStructuredBuffer|DepthStencilState|DepthStencilView|DomainShader|GeometryShader|Hullshader|InputPatch|LineStream|OutputPatch|PixelShader|PointStream|RWBuffer|RWByteAddressBuffer|RWStructuredBuffer|RWTexture(?:1D|1DArray|2D|2DArray|3D)|RasterizerState|RenderTargetView|SamplerComparisonState|SamplerState|StructuredBuffer|Texture(?:1D|1DArray|2D|2DArray|2DMS|2DMSArray|3D|Cube|CubeArray)|TriangleStream|VertexShader)\b/],keyword:[/\b(?:asm|asm_fragment|auto|break|case|catch|cbuffer|centroid|char|class|column_major|compile|compile_fragment|const|const_cast|continue|default|delete|discard|do|dynamic_cast|else|enum|explicit|export|extern|for|friend|fxgroup|goto|groupshared|if|in|inline|inout|interface|line|lineadj|linear|long|matrix|mutable|namespace|new|nointerpolation|noperspective|operator|out|packoffset|pass|pixelfragment|point|precise|private|protected|public|register|reinterpret_cast|return|row_major|sample|sampler|shared|short|signed|sizeof|snorm|stateblock|stateblock_state|static|static_cast|string|struct|switch|tbuffer|technique|technique10|technique11|template|texture|this|throw|triangle|triangleadj|try|typedef|typename|uniform|union|unorm|unsigned|using|vector|vertexfragment|virtual|void|volatile|while)\b/,/\b(?:bool|double|dword|float|half|int|min(?:10float|12int|16(?:float|int|uint))|uint)(?:[1-4](?:x[1-4])?)?\b/],number:/(?:(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?|\b0x[\da-fA-F]+)[fFhHlLuU]?\b/,boolean:/\b(?:false|true)\b/})}},54853:function(J){"use strict";J.exports=C,C.displayName="hoon",C.aliases=[];function C(d){d.languages.hoon={comment:{pattern:/::.*/,greedy:!0},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},constant:/%(?:\.[ny]|[\w-]+)/,"class-name":/@(?:[a-z0-9-]*[a-z0-9])?|\*/i,function:/(?:\+[-+] {2})?(?:[a-z](?:[a-z0-9-]*[a-z0-9])?)/,keyword:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}},68330:function(J){"use strict";J.exports=C,C.displayName="hpkp",C.aliases=[];function C(d){d.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},76823:function(J){"use strict";J.exports=C,C.displayName="hsts",C.aliases=[];function C(d){d.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}},86712:function(J){"use strict";J.exports=C,C.displayName="http",C.aliases=[];function C(d){(function(b){function I(re){return RegExp("(^(?:"+re+"):[ ]*(?![ ]))[^]+","i")}b.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:b.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:I(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:b.languages.csp},{pattern:I(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:b.languages.hpkp},{pattern:I(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:b.languages.hsts},{pattern:I(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var L=b.languages,B={"application/javascript":L.javascript,"application/json":L.json||L.javascript,"application/xml":L.xml,"text/xml":L.xml,"text/html":L.html,"text/css":L.css,"text/plain":L.plain},V={"application/json":!0,"application/xml":!0};function Q(re){var De=re.replace(/^[a-z]+\//,""),ne="\\w+/(?:[\\w.-]+\\+)+"+De+"(?![+\\w.-])";return"(?:"+re+"|"+ne+")"}var M;for(var de in B)if(B[de]){M=M||{};var he=V[de]?Q(de):de;M[de.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+he+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:B[de]}}M&&b.languages.insertBefore("http","header",M)})(d)}},72252:function(J){"use strict";J.exports=C,C.displayName="ichigojam",C.aliases=[];function C(d){d.languages.ichigojam={comment:/(?:\B'|REM)(?:[^\n\r]*)/i,string:{pattern:/"(?:""|[!#$%&'()*,\/:;<=>?^\w +\-.])*"/,greedy:!0},number:/\B#[0-9A-F]+|\B`[01]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,keyword:/\b(?:BEEP|BPS|CASE|CLEAR|CLK|CLO|CLP|CLS|CLT|CLV|CONT|COPY|ELSE|END|FILE|FILES|FOR|GOSUB|GOTO|GSB|IF|INPUT|KBD|LED|LET|LIST|LOAD|LOCATE|LRUN|NEW|NEXT|OUT|PLAY|POKE|PRINT|PWM|REM|RENUM|RESET|RETURN|RIGHT|RTN|RUN|SAVE|SCROLL|SLEEP|SRND|STEP|STOP|SUB|TEMPO|THEN|TO|UART|VIDEO|WAIT)(?:\$|\b)/i,function:/\b(?:ABS|ANA|ASC|BIN|BTN|DEC|END|FREE|HELP|HEX|I2CR|I2CW|IN|INKEY|LEN|LINE|PEEK|RND|SCR|SOUND|STR|TICK|USR|VER|VPEEK|ZER)(?:\$|\b)/i,label:/(?:\B@\S+)/,operator:/<[=>]?|>=?|\|\||&&|[+\-*\/=|&^~!]|\b(?:AND|NOT|OR)\b/i,punctuation:/[\[,;:()\]]/}}},78634:function(J){"use strict";J.exports=C,C.displayName="icon",C.aliases=[];function C(d){d.languages.icon={comment:/#.*/,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n_]|\\.|_(?!\1)(?:\r\n|[\s\S]))*\1/,greedy:!0},number:/\b(?:\d+r[a-z\d]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b|\.\d+\b/i,"builtin-keyword":{pattern:/&(?:allocated|ascii|clock|collections|cset|current|date|dateline|digits|dump|e|error(?:number|text|value)?|errout|fail|features|file|host|input|lcase|letters|level|line|main|null|output|phi|pi|pos|progname|random|regions|source|storage|subject|time|trace|ucase|version)\b/,alias:"variable"},directive:{pattern:/\$\w+/,alias:"builtin"},keyword:/\b(?:break|by|case|create|default|do|else|end|every|fail|global|if|initial|invocable|link|local|next|not|of|procedure|record|repeat|return|static|suspend|then|to|until|while)\b/,function:/\b(?!\d)\w+(?=\s*[({]|\s*!\s*\[)/,operator:/[+-]:(?!=)|(?:[\/?@^%&]|\+\+?|--?|==?=?|~==?=?|\*\*?|\|\|\|?|<(?:->?|<?=?)|>>?=?)(?::=)?|:(?:=:?)?|[!.\\|~]/,punctuation:/[\[\](){},;]/}}},43583:function(J){"use strict";J.exports=C,C.displayName="icuMessageFormat",C.aliases=[];function C(d){(function(b){function I(de,he){return he<=0?/[]/.source:de.replace(/<SELF>/g,function(){return I(de,he-1)})}var L=/'[{}:=,](?:[^']|'')*'(?!')/,B={pattern:/''/,greedy:!0,alias:"operator"},V={pattern:L,greedy:!0,inside:{escape:B}},Q=I(/\{(?:[^{}']|'(?![{},'])|''|<STR>|<SELF>)*\}/.source.replace(/<STR>/g,function(){return L.source}),8),M={pattern:RegExp(Q),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};b.languages["icu-message-format"]={argument:{pattern:RegExp(Q),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":M,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":M,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+I(/(?:[^{}']|'[^']*'|\{(?:<SELF>)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:B,string:V},M.inside.message.inside=b.languages["icu-message-format"],b.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=b.languages["icu-message-format"]})(d)}},23328:function(J,C,d){"use strict";var b=d(2050);J.exports=I,I.displayName="idris",I.aliases=["idr"];function I(L){L.register(b),L.languages.idris=L.languages.extend("haskell",{comment:{pattern:/(?:(?:--|\|\|\|).*$|\{-[\s\S]*?-\})/m},keyword:/\b(?:Type|case|class|codata|constructor|corecord|data|do|dsl|else|export|if|implementation|implicit|import|impossible|in|infix|infixl|infixr|instance|interface|let|module|mutual|namespace|of|parameters|partial|postulate|private|proof|public|quoteGoal|record|rewrite|syntax|then|total|using|where|with)\b/,builtin:void 0}),L.languages.insertBefore("idris","keyword",{"import-statement":{pattern:/(^\s*import\s+)(?:[A-Z][\w']*)(?:\.[A-Z][\w']*)*/m,lookbehind:!0,inside:{punctuation:/\./}}}),L.languages.idr=L.languages.idris}},74494:function(J){"use strict";J.exports=C,C.displayName="iecst",C.aliases=[];function C(d){d.languages.iecst={comment:[{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\(\*[\s\S]*?(?:\*\)|$)|\{[\s\S]*?(?:\}|$))/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:[/\b(?:END_)?(?:PROGRAM|CONFIGURATION|INTERFACE|FUNCTION_BLOCK|FUNCTION|ACTION|TRANSITION|TYPE|STRUCT|(?:INITIAL_)?STEP|NAMESPACE|LIBRARY|CHANNEL|FOLDER|RESOURCE|VAR_(?:ACCESS|CONFIG|EXTERNAL|GLOBAL|INPUT|IN_OUT|OUTPUT|TEMP)|VAR|METHOD|PROPERTY)\b/i,/\b(?:AT|BY|(?:END_)?(?:CASE|FOR|IF|REPEAT|WHILE)|CONSTANT|CONTINUE|DO|ELSE|ELSIF|EXIT|EXTENDS|FROM|GET|GOTO|IMPLEMENTS|JMP|NON_RETAIN|OF|PRIVATE|PROTECTED|PUBLIC|RETAIN|RETURN|SET|TASK|THEN|TO|UNTIL|USING|WITH|__CATCH|__ENDTRY|__FINALLY|__TRY)\b/],"class-name":/\b(?:ANY|ARRAY|BOOL|BYTE|U?(?:D|L|S)?INT|(?:D|L)?WORD|DATE(?:_AND_TIME)?|DT|L?REAL|POINTER|STRING|TIME(?:_OF_DAY)?|TOD)\b/,address:{pattern:/%[IQM][XBWDL][\d.]*|%[IQ][\d.]*/,alias:"symbol"},number:/\b(?:16#[\da-f]+|2#[01_]+|0x[\da-f]+)\b|\b(?:D|DT|T|TOD)#[\d_shmd:]*|\b[A-Z]*#[\d.,_]*|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/,operator:/S?R?:?=>?|&&?|\*\*?|<[=>]?|>=?|[-:^/+#]|\b(?:AND|EQ|EXPT|GE|GT|LE|LT|MOD|NE|NOT|OR|XOR)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,punctuation:/[()[\].,;]/}}},46745:function(J){"use strict";J.exports=C,C.displayName="ignore",C.aliases=["gitignore","hgignore","npmignore"];function C(d){(function(b){b.languages.ignore={comment:/^#.*/m,entry:{pattern:/\S(?:.*(?:(?:\\ )|\S))?/,alias:"string",inside:{operator:/^!|\*\*?|\?/,regex:{pattern:/(^|[^\\])\[[^\[\]]*\]/,lookbehind:!0},punctuation:/\//}}},b.languages.gitignore=b.languages.ignore,b.languages.hgignore=b.languages.ignore,b.languages.npmignore=b.languages.ignore})(d)}},22152:function(J){"use strict";J.exports=C,C.displayName="inform7",C.aliases=[];function C(d){d.languages.inform7={string:{pattern:/"[^"]*"/,inside:{substitution:{pattern:/\[[^\[\]]+\]/,inside:{delimiter:{pattern:/\[|\]/,alias:"punctuation"}}}}},comment:{pattern:/\[[^\[\]]+\]/,greedy:!0},title:{pattern:/^[ \t]*(?:book|chapter|part(?! of)|section|table|volume)\b.+/im,alias:"important"},number:{pattern:/(^|[^-])(?:\b\d+(?:\.\d+)?(?:\^\d+)?(?:(?!\d)\w+)?|\b(?:eight|eleven|five|four|nine|one|seven|six|ten|three|twelve|two))\b(?!-)/i,lookbehind:!0},verb:{pattern:/(^|[^-])\b(?:answering|applying to|are|asking|attacking|be(?:ing)?|burning|buying|called|carries|carry(?! out)|carrying|climbing|closing|conceal(?:ing|s)?|consulting|contain(?:ing|s)?|cutting|drinking|dropping|eating|enclos(?:es?|ing)|entering|examining|exiting|getting|giving|going|ha(?:s|ve|ving)|hold(?:ing|s)?|impl(?:ies|y)|incorporat(?:es?|ing)|inserting|is|jumping|kissing|listening|locking|looking|mean(?:ing|s)?|opening|provid(?:es?|ing)|pulling|pushing|putting|relat(?:es?|ing)|removing|searching|see(?:ing|s)?|setting|showing|singing|sleeping|smelling|squeezing|support(?:ing|s)?|swearing|switching|taking|tasting|telling|thinking|throwing|touching|turning|tying|unlock(?:ing|s)?|var(?:ies|y|ying)|waiting|waking|waving|wear(?:ing|s)?)\b(?!-)/i,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^-])\b(?:after|before|carry out|check|continue the action|definition(?= *:)|do nothing|else|end (?:if|the story|unless)|every turn|if|include|instead(?: of)?|let|move|no|now|otherwise|repeat|report|resume the story|rule for|running through|say(?:ing)?|stop the action|test|try(?:ing)?|understand|unless|use|when|while|yes)\b(?!-)/i,lookbehind:!0},property:{pattern:/(^|[^-])\b(?:adjacent(?! to)|carried|closed|concealed|contained|dark|described|edible|empty|enclosed|enterable|even|female|fixed in place|full|handled|held|improper-named|incorporated|inedible|invisible|lighted|lit|lock(?:able|ed)|male|marked for listing|mentioned|negative|neuter|non-(?:empty|full|recurring)|odd|opaque|open(?:able)?|plural-named|portable|positive|privately-named|proper-named|provided|publically-named|pushable between rooms|recurring|related|rubbing|scenery|seen|singular-named|supported|swinging|switch(?:able|ed(?: off| on)?)|touch(?:able|ed)|transparent|unconcealed|undescribed|unlit|unlocked|unmarked for listing|unmentioned|unopenable|untouchable|unvisited|variable|visible|visited|wearable|worn)\b(?!-)/i,lookbehind:!0,alias:"symbol"},position:{pattern:/(^|[^-])\b(?:above|adjacent to|back side of|below|between|down|east|everywhere|front side|here|in|inside(?: from)?|north(?:east|west)?|nowhere|on(?: top of)?|other side|outside(?: from)?|parts? of|regionally in|south(?:east|west)?|through|up|west|within)\b(?!-)/i,lookbehind:!0,alias:"keyword"},type:{pattern:/(^|[^-])\b(?:actions?|activit(?:ies|y)|actors?|animals?|backdrops?|containers?|devices?|directions?|doors?|holders?|kinds?|lists?|m[ae]n|nobody|nothing|nouns?|numbers?|objects?|people|persons?|player(?:'s holdall)?|regions?|relations?|rooms?|rule(?:book)?s?|scenes?|someone|something|supporters?|tables?|texts?|things?|time|vehicles?|wom[ae]n)\b(?!-)/i,lookbehind:!0,alias:"variable"},punctuation:/[.,:;(){}]/},d.languages.inform7.string.inside.substitution.inside.rest=d.languages.inform7,d.languages.inform7.string.inside.substitution.inside.rest.text={pattern:/\S(?:\s*\S)*/,alias:"comment"}}},83698:function(J){"use strict";J.exports=C,C.displayName="ini",C.aliases=[];function C(d){d.languages.ini={comment:{pattern:/(^[ \f\t\v]*)[#;][^\n\r]*/m,lookbehind:!0},section:{pattern:/(^[ \f\t\v]*)\[[^\n\r\]]*\]?/m,lookbehind:!0,inside:{"section-name":{pattern:/(^\[[ \f\t\v]*)[^ \f\t\v\]]+(?:[ \f\t\v]+[^ \f\t\v\]]+)*/,lookbehind:!0,alias:"selector"},punctuation:/\[|\]/}},key:{pattern:/(^[ \f\t\v]*)[^ \f\n\r\t\v=]+(?:[ \f\t\v]+[^ \f\n\r\t\v=]+)*(?=[ \f\t\v]*=)/m,lookbehind:!0,alias:"attr-name"},value:{pattern:/(=[ \f\t\v]*)[^ \f\n\r\t\v]+(?:[ \f\t\v]+[^ \f\n\r\t\v]+)*/,lookbehind:!0,alias:"attr-value",inside:{"inner-value":{pattern:/^("|').+(?=\1$)/,lookbehind:!0}}},punctuation:/=/}}},26619:function(J){"use strict";J.exports=C,C.displayName="io",C.aliases=[];function C(d){d.languages.io={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?(?:\*\/|$)|\/\/.*|#.*)/,lookbehind:!0,greedy:!0},"triple-quoted-string":{pattern:/"""(?:\\[\s\S]|(?!""")[^\\])*"""/,greedy:!0,alias:"string"},string:{pattern:/"(?:\\.|[^\\\r\n"])*"/,greedy:!0},keyword:/\b(?:activate|activeCoroCount|asString|block|break|call|catch|clone|collectGarbage|compileString|continue|do|doFile|doMessage|doString|else|elseif|exit|for|foreach|forward|getEnvironmentVariable|getSlot|hasSlot|if|ifFalse|ifNil|ifNilEval|ifTrue|isActive|isNil|isResumable|list|message|method|parent|pass|pause|perform|performWithArgList|print|println|proto|raise|raiseResumable|removeSlot|resend|resume|schedulerSleepSeconds|self|sender|setSchedulerSleepSeconds|setSlot|shallowCopy|slotNames|super|system|then|thisBlock|thisContext|try|type|uniqueId|updateSlot|wait|while|write|yield)\b/,builtin:/\b(?:Array|AudioDevice|AudioMixer|BigNum|Block|Box|Buffer|CFunction|CGI|Color|Curses|DBM|DNSResolver|DOConnection|DOProxy|DOServer|Date|Directory|Duration|DynLib|Error|Exception|FFT|File|Fnmatch|Font|Future|GL|GLE|GLScissor|GLU|GLUCylinder|GLUQuadric|GLUSphere|GLUT|Host|Image|Importer|LinkList|List|Lobby|Locals|MD5|MP3Decoder|MP3Encoder|Map|Message|Movie|Notification|Number|Object|OpenGL|Point|Protos|Random|Regex|SGML|SGMLElement|SGMLParser|SQLite|Sequence|Server|ShowMessage|SleepyCat|SleepyCatCursor|Socket|SocketManager|Sound|Soup|Store|String|Tree|UDPSender|UPDReceiver|URL|User|Warning|WeakLink)\b/,boolean:/\b(?:false|nil|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e-?\d+)?/i,operator:/[=!*/%+\-^&|]=|>>?=?|<<?=?|:?:?=|\+\+?|--?|\*\*?|\/\/?|%|\|\|?|&&?|\b(?:and|not|or|return)\b|@@?|\?\??|\.\./,punctuation:/[{}[\];(),.:]/}}},53990:function(J){"use strict";J.exports=C,C.displayName="j",C.aliases=[];function C(d){d.languages.j={comment:{pattern:/\bNB\..*/,greedy:!0},string:{pattern:/'(?:''|[^'\r\n])*'/,greedy:!0},keyword:/\b(?:(?:CR|LF|adverb|conjunction|def|define|dyad|monad|noun|verb)\b|(?:assert|break|case|catch[dt]?|continue|do|else|elseif|end|fcase|for|for_\w+|goto_\w+|if|label_\w+|return|select|throw|try|while|whilst)\.)/,verb:{pattern:/(?!\^:|;\.|[=!][.:])(?:\{(?:\.|::?)?|p(?:\.\.?|:)|[=!\]]|[<>+*\-%$|,#][.:]?|[?^]\.?|[;\[]:?|[~}"i][.:]|[ACeEIjLor]\.|(?:[_\/\\qsux]|_?\d):)/,alias:"keyword"},number:/\b_?(?:(?!\d:)\d+(?:\.\d+)?(?:(?:ad|ar|[ejpx])_?\d+(?:\.\d+)?)*(?:b_?[\da-z]+(?:\.[\da-z]+)?)?|_\b(?!\.))/,adverb:{pattern:/[~}]|[\/\\]\.?|[bfM]\.|t[.:]/,alias:"builtin"},operator:/[=a][.:]|_\./,conjunction:{pattern:/&(?:\.:?|:)?|[.:@][.:]?|[!D][.:]|[;dHT]\.|`:?|[\^LS]:|"/,alias:"variable"},punctuation:/[()]/}}},7093:function(J){"use strict";J.exports=C,C.displayName="java",C.aliases=[];function C(d){(function(b){var I=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,L=/(^|[^\w.])(?:[a-z]\w*\s*\.\s*)*(?:[A-Z]\w*\s*\.\s*)*/.source,B={pattern:RegExp(L+/[A-Z](?:[\d_A-Z]*[a-z]\w*)?\b/.source),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};b.languages.java=b.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\.|[^"\\\r\n])*"/,lookbehind:!0,greedy:!0},"class-name":[B,{pattern:RegExp(L+/[A-Z]\w*(?=\s+\w+\s*[;,=()])/.source),lookbehind:!0,inside:B.inside}],keyword:I,function:[b.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),b.languages.insertBefore("java","string",{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:"string"},char:{pattern:/'(?:\\.|[^'\\\r\n]){1,6}'/,greedy:!0}}),b.languages.insertBefore("java","class-name",{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:"punctuation"},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":B,keyword:I,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(/(\b(?:exports|import(?:\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\s+)(?!<keyword>)[a-z]\w*(?:\.[a-z]\w*)*\.?/.source.replace(/<keyword>/g,function(){return I.source})),lookbehind:!0,inside:{punctuation:/\./}}})})(d)}},4005:function(J,C,d){"use strict";var b=d(7093),I=d(53510);J.exports=L,L.displayName="javadoc",L.aliases=[];function L(B){B.register(b),B.register(I),function(V){var Q=/(^(?:[\t ]*(?:\*\s*)*))[^*\s].*$/m,M=/#\s*\w+(?:\s*\([^()]*\))?/.source,de=/(?:\b[a-zA-Z]\w+\s*\.\s*)*\b[A-Z]\w*(?:\s*<mem>)?|<mem>/.source.replace(/<mem>/g,function(){return M});V.languages.javadoc=V.languages.extend("javadoclike",{}),V.languages.insertBefore("javadoc","keyword",{reference:{pattern:RegExp(/(@(?:exception|link|linkplain|see|throws|value)\s+(?:\*\s*)?)/.source+"(?:"+de+")"),lookbehind:!0,inside:{function:{pattern:/(#\s*)\w+(?=\s*\()/,lookbehind:!0},field:{pattern:/(#\s*)\w+/,lookbehind:!0},namespace:{pattern:/\b(?:[a-z]\w*\s*\.\s*)+/,inside:{punctuation:/\./}},"class-name":/\b[A-Z]\w*/,keyword:V.languages.java.keyword,punctuation:/[#()[\],.]/}},"class-name":{pattern:/(@param\s+)<[A-Z]\w*>/,lookbehind:!0,inside:{punctuation:/[.<>]/}},"code-section":[{pattern:/(\{@code\s+(?!\s))(?:[^\s{}]|\s+(?![\s}])|\{(?:[^{}]|\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})*\})*\})+(?=\s*\})/,lookbehind:!0,inside:{code:{pattern:Q,lookbehind:!0,inside:V.languages.java,alias:"language-java"}}},{pattern:/(<(code|pre|tt)>(?!<code>)\s*)\S(?:\S|\s+\S)*?(?=\s*<\/\2>)/,lookbehind:!0,inside:{line:{pattern:Q,lookbehind:!0,inside:{tag:V.languages.markup.tag,entity:V.languages.markup.entity,code:{pattern:/.+/,inside:V.languages.java,alias:"language-java"}}}}}],tag:V.languages.markup.tag,entity:V.languages.markup.entity}),V.languages.javadoclike.addSupport("java",V.languages.javadoc)}(B)}},53510:function(J){"use strict";J.exports=C,C.displayName="javadoclike",C.aliases=[];function C(d){(function(b){var I=b.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function L(V,Q){var M="doc-comment",de=b.languages[V];if(de){var he=de[M];if(!he){var re={};re[M]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},de=b.languages.insertBefore(V,"comment",re),he=de[M]}if(he instanceof RegExp&&(he=de[M]={pattern:he}),Array.isArray(he))for(var De=0,ne=he.length;De<ne;De++)he[De]instanceof RegExp&&(he[De]={pattern:he[De]}),Q(he[De]);else Q(he)}}function B(V,Q){typeof V=="string"&&(V=[V]),V.forEach(function(M){L(M,function(de){de.inside||(de.inside={}),de.inside.rest=Q})})}Object.defineProperty(I,"addSupport",{value:B}),I.addSupport(["java","javascript","php"],I)})(d)}},88786:function(J){"use strict";J.exports=C,C.displayName="javascript",C.aliases=["js"];function C(d){d.languages.javascript=d.languages.extend("clike",{"class-name":[d.languages.clike["class-name"],{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$A-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\.(?:constructor|prototype))/,lookbehind:!0}],keyword:[{pattern:/((?:^|\})\s*)catch\b/,lookbehind:!0},{pattern:/(^|[^.]|\.\.\.\s*)\b(?:as|assert(?=\s*\{)|async(?=\s*(?:function\b|\(|[$\w\xA0-\uFFFF]|$))|await|break|case|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally(?=\s*(?:\{|$))|for|from(?=\s*(?:['"]|$))|function|(?:get|set)(?=\s*(?:[#\[$\w\xA0-\uFFFF]|$))|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)\b/,lookbehind:!0}],function:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*(?:\.\s*(?:apply|bind|call)\s*)?\()/,number:{pattern:RegExp(/(^|[^\w$])/.source+"(?:"+(/NaN|Infinity/.source+"|"+/0[bB][01]+(?:_[01]+)*n?/.source+"|"+/0[oO][0-7]+(?:_[0-7]+)*n?/.source+"|"+/0[xX][\dA-Fa-f]+(?:_[\dA-Fa-f]+)*n?/.source+"|"+/\d+(?:_\d+)*n/.source+"|"+/(?:\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[Ee][+-]?\d+(?:_\d+)*)?/.source)+")"+/(?![\w$])/.source),lookbehind:!0},operator:/--|\+\+|\*\*=?|=>|&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),d.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,d.languages.insertBefore("javascript","keyword",{regex:{pattern:/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/,lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:d.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:d.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:d.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:d.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:d.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),d.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:d.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),d.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),d.languages.markup&&(d.languages.markup.tag.addInlined("script","javascript"),d.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),d.languages.js=d.languages.javascript}},24799:function(J){"use strict";J.exports=C,C.displayName="javastacktrace",C.aliases=[];function C(d){d.languages.javastacktrace={summary:{pattern:/^([\t ]*)(?:(?:Caused by:|Suppressed:|Exception in thread "[^"]*")[\t ]+)?[\w$.]+(?::.*)?$/m,lookbehind:!0,inside:{keyword:{pattern:/^([\t ]*)(?:(?:Caused by|Suppressed)(?=:)|Exception in thread)/m,lookbehind:!0},string:{pattern:/^(\s*)"[^"]*"/,lookbehind:!0},exceptions:{pattern:/^(:?\s*)[\w$.]+(?=:|$)/,lookbehind:!0,inside:{"class-name":/[\w$]+$/,namespace:/\b[a-z]\w*\b/,punctuation:/\./}},message:{pattern:/(:\s*)\S.*/,lookbehind:!0,alias:"string"},punctuation:/:/}},"stack-frame":{pattern:/^([\t ]*)at (?:[\w$./]|@[\w$.+-]*\/)+(?:<init>)?\([^()]*\)/m,lookbehind:!0,inside:{keyword:{pattern:/^(\s*)at(?= )/,lookbehind:!0},source:[{pattern:/(\()\w+\.\w+:\d+(?=\))/,lookbehind:!0,inside:{file:/^\w+\.\w+/,punctuation:/:/,"line-number":{pattern:/\b\d+\b/,alias:"number"}}},{pattern:/(\()[^()]*(?=\))/,lookbehind:!0,inside:{keyword:/^(?:Native Method|Unknown Source)$/}}],"class-name":/[\w$]+(?=\.(?:<init>|[\w$]+)\()/,function:/(?:<init>|[\w$]+)(?=\()/,"class-loader":{pattern:/(\s)[a-z]\w*(?:\.[a-z]\w*)*(?=\/[\w@$.]*\/)/,lookbehind:!0,alias:"namespace",inside:{punctuation:/\./}},module:{pattern:/([\s/])[a-z]\w*(?:\.[a-z]\w*)*(?:@[\w$.+-]*)?(?=\/)/,lookbehind:!0,inside:{version:{pattern:/(@)[\s\S]+/,lookbehind:!0,alias:"number"},punctuation:/[@.]/}},namespace:{pattern:/(?:\b[a-z]\w*\.)+/,inside:{punctuation:/\./}},punctuation:/[()/.]/}},more:{pattern:/^([\t ]*)\.{3} \d+ [a-z]+(?: [a-z]+)*/m,lookbehind:!0,inside:{punctuation:/\.{3}/,number:/\d+/,keyword:/\b[a-z]+(?: [a-z]+)*\b/}}}}},97443:function(J){"use strict";J.exports=C,C.displayName="jexl",C.aliases=[];function C(d){d.languages.jexl={string:/(["'])(?:\\[\s\S]|(?!\1)[^\\])*\1/,transform:{pattern:/(\|\s*)[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*/,alias:"function",lookbehind:!0},function:/[a-zA-Zа-яА-Я_\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$][\wа-яА-Я\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u00FF$]*\s*(?=\()/,number:/\b\d+(?:\.\d+)?\b|\B\.\d+\b/,operator:/[<>!]=?|-|\+|&&|==|\|\|?|\/\/?|[?:*^%]/,boolean:/\b(?:false|true)\b/,keyword:/\bin\b/,punctuation:/[{}[\](),.]/}}},80746:function(J){"use strict";J.exports=C,C.displayName="jolie",C.aliases=[];function C(d){d.languages.jolie=d.languages.extend("clike",{string:{pattern:/(^|[^\\])"(?:\\[\s\S]|[^"\\])*"/,lookbehind:!0,greedy:!0},"class-name":{pattern:/((?:\b(?:as|courier|embed|in|inputPort|outputPort|service)\b|@)[ \t]*)\w+/,lookbehind:!0},keyword:/\b(?:as|cH|comp|concurrent|constants|courier|cset|csets|default|define|else|embed|embedded|execution|exit|extender|for|foreach|forward|from|global|if|import|in|include|init|inputPort|install|instanceof|interface|is_defined|linkIn|linkOut|main|new|nullProcess|outputPort|over|private|provide|public|scope|sequential|service|single|spawn|synchronized|this|throw|throws|type|undef|until|while|with)\b/,function:/\b[a-z_]\w*(?=[ \t]*[@(])/i,number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?l?/i,operator:/-[-=>]?|\+[+=]?|<[<=]?|[>=*!]=?|&&|\|\||[?\/%^@|]/,punctuation:/[()[\]{},;.:]/,builtin:/\b(?:Byte|any|bool|char|double|enum|float|int|length|long|ranges|regex|string|undefined|void)\b/}),d.languages.insertBefore("jolie","keyword",{aggregates:{pattern:/(\bAggregates\s*:\s*)(?:\w+(?:\s+with\s+\w+)?\s*,\s*)*\w+(?:\s+with\s+\w+)?/,lookbehind:!0,inside:{keyword:/\bwith\b/,"class-name":/\w+/,punctuation:/,/}},redirects:{pattern:/(\bRedirects\s*:\s*)(?:\w+\s*=>\s*\w+\s*,\s*)*(?:\w+\s*=>\s*\w+)/,lookbehind:!0,inside:{punctuation:/,/,"class-name":/\w+/,operator:/=>/}},property:{pattern:/\b(?:Aggregates|[Ii]nterfaces|Java|Javascript|Jolie|[Ll]ocation|OneWay|[Pp]rotocol|Redirects|RequestResponse)\b(?=[ \t]*:)/}})}},17015:function(J){"use strict";J.exports=C,C.displayName="jq",C.aliases=[];function C(d){(function(b){var I=/\\\((?:[^()]|\([^()]*\))*\)/.source,L=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return I})),B={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+I),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},V=b.languages.jq={comment:/#.*/,property:{pattern:RegExp(L.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:B},string:{pattern:L,lookbehind:!0,greedy:!0,inside:B},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};B.interpolation.inside.content.inside=V})(d)}},89246:function(J){"use strict";J.exports=C,C.displayName="jsExtras",C.aliases=[];function C(d){(function(b){b.languages.insertBefore("javascript","function-variable",{"method-variable":{pattern:RegExp("(\\.\\s*)"+b.languages.javascript["function-variable"].pattern.source),lookbehind:!0,alias:["function-variable","method","function","property-access"]}}),b.languages.insertBefore("javascript","function",{method:{pattern:RegExp("(\\.\\s*)"+b.languages.javascript.function.source),lookbehind:!0,alias:["function","property-access"]}}),b.languages.insertBefore("javascript","constant",{"known-class-name":[{pattern:/\b(?:(?:Float(?:32|64)|(?:Int|Uint)(?:8|16|32)|Uint8Clamped)?Array|ArrayBuffer|BigInt|Boolean|DataView|Date|Error|Function|Intl|JSON|(?:Weak)?(?:Map|Set)|Math|Number|Object|Promise|Proxy|Reflect|RegExp|String|Symbol|WebAssembly)\b/,alias:"class-name"},{pattern:/\b(?:[A-Z]\w*)Error\b/,alias:"class-name"}]});function I(de,he){return RegExp(de.replace(/<ID>/g,function(){return/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/.source}),he)}b.languages.insertBefore("javascript","keyword",{imports:{pattern:I(/(\bimport\b\s*)(?:<ID>(?:\s*,\s*(?:\*\s*as\s+<ID>|\{[^{}]*\}))?|\*\s*as\s+<ID>|\{[^{}]*\})(?=\s*\bfrom\b)/.source),lookbehind:!0,inside:b.languages.javascript},exports:{pattern:I(/(\bexport\b\s*)(?:\*(?:\s*as\s+<ID>)?(?=\s*\bfrom\b)|\{[^{}]*\})/.source),lookbehind:!0,inside:b.languages.javascript}}),b.languages.javascript.keyword.unshift({pattern:/\b(?:as|default|export|from|import)\b/,alias:"module"},{pattern:/\b(?:await|break|catch|continue|do|else|finally|for|if|return|switch|throw|try|while|yield)\b/,alias:"control-flow"},{pattern:/\bnull\b/,alias:["null","nil"]},{pattern:/\bundefined\b/,alias:"nil"}),b.languages.insertBefore("javascript","operator",{spread:{pattern:/\.{3}/,alias:"operator"},arrow:{pattern:/=>/,alias:"operator"}}),b.languages.insertBefore("javascript","punctuation",{"property-access":{pattern:I(/(\.\s*)#?<ID>/.source),lookbehind:!0},"maybe-class-name":{pattern:/(^|[^$\w\xA0-\uFFFF])[A-Z][$\w\xA0-\uFFFF]+/,lookbehind:!0},dom:{pattern:/\b(?:document|(?:local|session)Storage|location|navigator|performance|window)\b/,alias:"variable"},console:{pattern:/\bconsole(?=\s*\.)/,alias:"class-name"}});for(var L=["function","function-variable","method","method-variable","property-access"],B=0;B<L.length;B++){var V=L[B],Q=b.languages.javascript[V];b.util.type(Q)==="RegExp"&&(Q=b.languages.javascript[V]={pattern:Q});var M=Q.inside||{};Q.inside=M,M["maybe-class-name"]=/^[A-Z][\s\S]*/}})(d)}},487:function(J){"use strict";J.exports=C,C.displayName="jsTemplates",C.aliases=[];function C(d){(function(b){var I=b.languages.javascript["template-string"],L=I.pattern.source,B=I.inside.interpolation,V=B.inside["interpolation-punctuation"],Q=B.pattern.source;function M(Ue,Ie){if(b.languages[Ue])return{pattern:RegExp("((?:"+Ie+")\\s*)"+L),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:Ue}}}}b.languages.javascript["template-string"]=[M("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),M("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),M("svg",/\bsvg/.source),M("markdown",/\b(?:markdown|md)/.source),M("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),M("sql",/\bsql/.source),I].filter(Boolean);function de(Ue,Ie){return"___"+Ie.toUpperCase()+"_"+Ue+"___"}function he(Ue,Ie,Pe){var ze={code:Ue,grammar:Ie,language:Pe};return b.hooks.run("before-tokenize",ze),ze.tokens=b.tokenize(ze.code,ze.grammar),b.hooks.run("after-tokenize",ze),ze.tokens}function re(Ue){var Ie={};Ie["interpolation-punctuation"]=V;var Pe=b.tokenize(Ue,Ie);if(Pe.length===3){var ze=[1,1];ze.push.apply(ze,he(Pe[1],b.languages.javascript,"javascript")),Pe.splice.apply(Pe,ze)}return new b.Token("interpolation",Pe,B.alias,Ue)}function De(Ue,Ie,Pe){var ze=b.tokenize(Ue,{interpolation:{pattern:RegExp(Q),lookbehind:!0}}),Ee=0,fe={},we=ze.map(function(Ae){if(typeof Ae=="string")return Ae;for(var Te=Ae.content,$e;Ue.indexOf($e=de(Ee++,Pe))!==-1;);return fe[$e]=Te,$e}).join(""),pe=he(we,Ie,Pe),Ne=Object.keys(fe);Ee=0;function te(Ae){for(var Te=0;Te<Ae.length;Te++){if(Ee>=Ne.length)return;var $e=Ae[Te];if(typeof $e=="string"||typeof $e.content=="string"){var Qe=Ne[Ee],Je=typeof $e=="string"?$e:$e.content,Ce=Je.indexOf(Qe);if(Ce!==-1){++Ee;var dt=Je.substring(0,Ce),Xe=re(fe[Qe]),$t=Je.substring(Ce+Qe.length),xt=[];if(dt&&xt.push(dt),xt.push(Xe),$t){var At=[$t];te(At),xt.push.apply(xt,At)}typeof $e=="string"?(Ae.splice.apply(Ae,[Te,1].concat(xt)),Te+=xt.length-1):$e.content=xt}}else{var St=$e.content;Array.isArray(St)?te(St):te([St])}}}return te(pe),new b.Token(Pe,pe,"language-"+Pe,Ue)}var ne={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};b.hooks.add("after-tokenize",function(Ue){if(!(Ue.language in ne))return;function Ie(Pe){for(var ze=0,Ee=Pe.length;ze<Ee;ze++){var fe=Pe[ze];if(typeof fe!="string"){var we=fe.content;if(!Array.isArray(we)){typeof we!="string"&&Ie([we]);continue}if(fe.type==="template-string"){var pe=we[1];if(we.length===3&&typeof pe!="string"&&pe.type==="embedded-code"){var Ne=it(pe),te=pe.alias,Ae=Array.isArray(te)?te[0]:te,Te=b.languages[Ae];if(!Te)continue;we[1]=De(Ne,Te,Ae)}}else Ie(we)}}}Ie(Ue.tokens)});function it(Ue){return typeof Ue=="string"?Ue:Array.isArray(Ue)?Ue.map(it).join(""):it(Ue.content)}})(d)}},79539:function(J,C,d){"use strict";var b=d(53510),I=d(92784);J.exports=L,L.displayName="jsdoc",L.aliases=[];function L(B){B.register(b),B.register(I),function(V){var Q=V.languages.javascript,M=/\{(?:[^{}]|\{(?:[^{}]|\{[^{}]*\})*\})+\}/.source,de="(@(?:arg|argument|param|property)\\s+(?:"+M+"\\s+)?)";V.languages.jsdoc=V.languages.extend("javadoclike",{parameter:{pattern:RegExp(de+/(?:(?!\s)[$\w\xA0-\uFFFF.])+(?=\s|$)/.source),lookbehind:!0,inside:{punctuation:/\./}}}),V.languages.insertBefore("jsdoc","keyword",{"optional-parameter":{pattern:RegExp(de+/\[(?:(?!\s)[$\w\xA0-\uFFFF.])+(?:=[^[\]]+)?\](?=\s|$)/.source),lookbehind:!0,inside:{parameter:{pattern:/(^\[)[$\w\xA0-\uFFFF\.]+/,lookbehind:!0,inside:{punctuation:/\./}},code:{pattern:/(=)[\s\S]*(?=\]$)/,lookbehind:!0,inside:Q,alias:"language-javascript"},punctuation:/[=[\]]/}},"class-name":[{pattern:RegExp(/(@(?:augments|class|extends|interface|memberof!?|template|this|typedef)\s+(?:<TYPE>\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(/<TYPE>/g,function(){return M})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+M),lookbehind:!0,inside:{string:Q.string,number:Q.number,boolean:Q.boolean,keyword:V.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:Q,alias:"language-javascript"}}}}),V.languages.javadoclike.addSupport("javascript",V.languages.jsdoc)}(B)}},15628:function(J){"use strict";J.exports=C,C.displayName="json",C.aliases=["webmanifest"];function C(d){d.languages.json={property:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?=\s*:)/,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"(?!\s*:)/,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,greedy:!0},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,punctuation:/[{}[\],]/,operator:/:/,boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"}},d.languages.webmanifest=d.languages.json}},14320:function(J,C,d){"use strict";var b=d(15628);J.exports=I,I.displayName="json5",I.aliases=[];function I(L){L.register(b),function(B){var V=/("|')(?:\\(?:\r\n?|\n|.)|(?!\1)[^\\\r\n])*\1/;B.languages.json5=B.languages.extend("json",{property:[{pattern:RegExp(V.source+"(?=\\s*:)"),greedy:!0},{pattern:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/,alias:"unquoted"}],string:{pattern:V,greedy:!0},number:/[+-]?\b(?:NaN|Infinity|0x[a-fA-F\d]+)\b|[+-]?(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+\b)?/})}(L)}},73222:function(J,C,d){"use strict";var b=d(15628);J.exports=I,I.displayName="jsonp",I.aliases=[];function I(L){L.register(b),L.languages.jsonp=L.languages.extend("json",{punctuation:/[{}[\]();,.]/}),L.languages.insertBefore("jsonp","punctuation",{function:/(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*\()/})}},92486:function(J){"use strict";J.exports=C,C.displayName="jsstacktrace",C.aliases=[];function C(d){d.languages.jsstacktrace={"error-message":{pattern:/^\S.*/m,alias:"string"},"stack-frame":{pattern:/(^[ \t]+)at[ \t].*/m,lookbehind:!0,inside:{"not-my-code":{pattern:/^at[ \t]+(?!\s)(?:node\.js|<unknown>|.*(?:node_modules|\(<anonymous>\)|\(<unknown>|<anonymous>$|\(internal\/|\(node\.js)).*/m,alias:"comment"},filename:{pattern:/(\bat\s+(?!\s)|\()(?:[a-zA-Z]:)?[^():]+(?=:)/,lookbehind:!0,alias:"url"},function:{pattern:/(\bat\s+(?:new\s+)?)(?!\s)[_$a-zA-Z\xA0-\uFFFF<][.$\w\xA0-\uFFFF<>]*/,lookbehind:!0,inside:{punctuation:/\./}},punctuation:/[()]/,keyword:/\b(?:at|new)\b/,alias:{pattern:/\[(?:as\s+)?(?!\s)[_$a-zA-Z\xA0-\uFFFF][$\w\xA0-\uFFFF]*\]/,alias:"variable"},"line-number":{pattern:/:\d+(?::\d+)?\b/,alias:"number",inside:{punctuation:/:/}}}}}}},24103:function(J){"use strict";J.exports=C,C.displayName="jsx",C.aliases=[];function C(d){(function(b){var I=b.util.clone(b.languages.javascript),L=/(?:\s|\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))\*\/)/.source,B=/(?:\{(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])*\})/.source,V=/(?:\{<S>*\.{3}(?:[^{}]|<BRACES>)*\})/.source;function Q(he,re){return he=he.replace(/<S>/g,function(){return L}).replace(/<BRACES>/g,function(){return B}).replace(/<SPREAD>/g,function(){return V}),RegExp(he,re)}V=Q(V).source,b.languages.jsx=b.languages.extend("markup",I),b.languages.jsx.tag.pattern=Q(/<\/?(?:[\w.:-]+(?:<S>+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|<BRACES>))?|<SPREAD>))*<S>*\/?)?>/.source),b.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,b.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,b.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,b.languages.jsx.tag.inside.comment=I.comment,b.languages.insertBefore("inside","attr-name",{spread:{pattern:Q(/<SPREAD>/.source),inside:b.languages.jsx}},b.languages.jsx.tag),b.languages.insertBefore("inside","special-attr",{script:{pattern:Q(/=<BRACES>/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:b.languages.jsx}}},b.languages.jsx.tag);var M=function(he){return he?typeof he=="string"?he:typeof he.content=="string"?he.content:he.content.map(M).join(""):""},de=function(he){for(var re=[],De=0;De<he.length;De++){var ne=he[De],it=!1;if(typeof ne!="string"&&(ne.type==="tag"&&ne.content[0]&&ne.content[0].type==="tag"?ne.content[0].content[0].content==="</"?re.length>0&&re[re.length-1].tagName===M(ne.content[0].content[1])&&re.pop():ne.content[ne.content.length-1].content==="/>"||re.push({tagName:M(ne.content[0].content[1]),openedBraces:0}):re.length>0&&ne.type==="punctuation"&&ne.content==="{"?re[re.length-1].openedBraces++:re.length>0&&re[re.length-1].openedBraces>0&&ne.type==="punctuation"&&ne.content==="}"?re[re.length-1].openedBraces--:it=!0),(it||typeof ne=="string")&&re.length>0&&re[re.length-1].openedBraces===0){var Ue=M(ne);De<he.length-1&&(typeof he[De+1]=="string"||he[De+1].type==="plain-text")&&(Ue+=M(he[De+1]),he.splice(De+1,1)),De>0&&(typeof he[De-1]=="string"||he[De-1].type==="plain-text")&&(Ue=M(he[De-1])+Ue,he.splice(De-1,1),De--),he[De]=new b.Token("plain-text",Ue,null,Ue)}ne.content&&typeof ne.content!="string"&&de(ne.content)}};b.hooks.add("after-tokenize",function(he){he.language!=="jsx"&&he.language!=="tsx"||de(he.tokens)})})(d)}},40604:function(J){"use strict";J.exports=C,C.displayName="julia",C.aliases=[];function C(d){d.languages.julia={comment:{pattern:/(^|[^\\])(?:#=(?:[^#=]|=(?!#)|#(?!=)|#=(?:[^#=]|=(?!#)|#(?!=))*=#)*=#|#.*)/,lookbehind:!0},regex:{pattern:/r"(?:\\.|[^"\\\r\n])*"[imsx]{0,4}/,greedy:!0},string:{pattern:/"""[\s\S]+?"""|(?:\b\w+)?"(?:\\.|[^"\\\r\n])*"|`(?:[^\\`\r\n]|\\.)*`/,greedy:!0},char:{pattern:/(^|[^\w'])'(?:\\[^\r\n][^'\r\n]*|[^\\\r\n])'/,lookbehind:!0,greedy:!0},keyword:/\b(?:abstract|baremodule|begin|bitstype|break|catch|ccall|const|continue|do|else|elseif|end|export|finally|for|function|global|if|immutable|import|importall|in|let|local|macro|module|print|println|quote|return|struct|try|type|typealias|using|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[box])?(?:[\da-f]+(?:_[\da-f]+)*(?:\.(?:\d+(?:_\d+)*)?)?|\.\d+(?:_\d+)*)(?:[efp][+-]?\d+(?:_\d+)*)?j?/i,operator:/&&|\|\||[-+*^%÷⊻&$\\]=?|\/[\/=]?|!=?=?|\|[=>]?|<(?:<=?|[=:|])?|>(?:=|>>?=?)?|==?=?|[~≠≤≥'√∛]/,punctuation:/::?|[{}[\]();,.?]/,constant:/\b(?:(?:Inf|NaN)(?:16|32|64)?|im|pi)\b|[πℯ]/}}},23109:function(J){"use strict";J.exports=C,C.displayName="keepalived",C.aliases=[];function C(d){d.languages.keepalived={comment:{pattern:/[#!].*/,greedy:!0},string:{pattern:/(^|[^\\])(?:"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"|'(?:\\(?:\r\n|[\s\S])|[^'\\\r\n])*')/,lookbehind:!0,greedy:!0},ip:{pattern:RegExp(/\b(?:(?:(?:[\da-f]{1,4}:){7}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}:[\da-f]{1,4}|(?:[\da-f]{1,4}:){5}:(?:[\da-f]{1,4}:)?[\da-f]{1,4}|(?:[\da-f]{1,4}:){4}:(?:[\da-f]{1,4}:){0,2}[\da-f]{1,4}|(?:[\da-f]{1,4}:){3}:(?:[\da-f]{1,4}:){0,3}[\da-f]{1,4}|(?:[\da-f]{1,4}:){2}:(?:[\da-f]{1,4}:){0,4}[\da-f]{1,4}|(?:[\da-f]{1,4}:){6}<ipv4>|(?:[\da-f]{1,4}:){0,5}:<ipv4>|::(?:[\da-f]{1,4}:){0,5}<ipv4>|[\da-f]{1,4}::(?:[\da-f]{1,4}:){0,5}[\da-f]{1,4}|::(?:[\da-f]{1,4}:){0,6}[\da-f]{1,4}|(?:[\da-f]{1,4}:){1,7}:)(?:\/\d{1,3})?|<ipv4>(?:\/\d{1,2})?)\b/.source.replace(/<ipv4>/g,function(){return/(?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]\d|\d))/.source}),"i"),alias:"number"},path:{pattern:/(\s)\/(?:[^\/\s]+\/)*[^\/\s]*|\b[a-zA-Z]:\\(?:[^\\\s]+\\)*[^\\\s]*/,lookbehind:!0,alias:"string"},variable:/\$\{?\w+\}?/,email:{pattern:/[\w-]+@[\w-]+(?:\.[\w-]{2,3}){1,2}/,alias:"string"},"conditional-configuration":{pattern:/@\^?[\w-]+/,alias:"variable"},operator:/=/,property:/\b(?:BFD_CHECK|DNS_CHECK|FILE_CHECK|HTTP_GET|MISC_CHECK|NAME|PING_CHECK|SCRIPTS|SMTP_CHECK|SSL|SSL_GET|TCP_CHECK|UDP_CHECK|accept|advert_int|alpha|auth_pass|auth_type|authentication|bfd_cpu_affinity|bfd_instance|bfd_no_swap|bfd_priority|bfd_process_name|bfd_rlimit_rttime|bfd_rt_priority|bind_if|bind_port|bindto|ca|certificate|check_unicast_src|checker|checker_cpu_affinity|checker_log_all_failures|checker_no_swap|checker_priority|checker_rlimit_rttime|checker_rt_priority|child_wait_time|connect_ip|connect_port|connect_timeout|dbus_service_name|debug|default_interface|delay|delay_before_retry|delay_loop|digest|dont_track_primary|dynamic|dynamic_interfaces|enable_(?:dbus|script_security|sni|snmp_checker|snmp_rfc|snmp_rfcv2|snmp_rfcv3|snmp_vrrp|traps)|end|fall|fast_recovery|file|flag-[123]|fork_delay|full_command|fwmark|garp_group|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|global_defs|global_tracking|gna_interval|group|ha_suspend|hashed|helo_name|higher_prio_send_advert|hoplimit|http_protocol|hysteresis|idle_tx|include|inhibit_on_failure|init_fail|init_file|instance|interface|interfaces|interval|ip_family|ipvs_process_name|keepalived.conf|kernel_rx_buf_size|key|linkbeat_interfaces|linkbeat_use_polling|log_all_failures|log_unknown_vrids|lower_prio_no_advert|lthreshold|lvs_flush|lvs_flush_onstop|lvs_method|lvs_netlink_cmd_rcv_bufs|lvs_netlink_cmd_rcv_bufs_force|lvs_netlink_monitor_rcv_bufs|lvs_netlink_monitor_rcv_bufs_force|lvs_notify_fifo|lvs_notify_fifo_script|lvs_sched|lvs_sync_daemon|max_auto_priority|max_hops|mcast_src_ip|mh-fallback|mh-port|min_auto_priority_delay|min_rx|min_tx|misc_dynamic|misc_path|misc_timeout|multiplier|name|namespace_with_ipsets|native_ipv6|neighbor_ip|net_namespace|net_namespace_ipvs|nftables|nftables_counters|nftables_ifindex|nftables_priority|no_accept|no_checker_emails|no_email_faults|nopreempt|notification_email|notification_email_from|notify|notify_backup|notify_deleted|notify_down|notify_fault|notify_fifo|notify_fifo_script|notify_master|notify_master_rx_lower_pri|notify_priority_changes|notify_stop|notify_up|old_unicast_checksum|omega|ops|param_match|passive|password|path|persistence_engine|persistence_granularity|persistence_timeout|preempt|preempt_delay|priority|process|process_monitor_rcv_bufs|process_monitor_rcv_bufs_force|process_name|process_names|promote_secondaries|protocol|proxy_arp|proxy_arp_pvlan|quorum|quorum_down|quorum_max|quorum_up|random_seed|real_server|regex|regex_max_offset|regex_min_offset|regex_no_match|regex_options|regex_stack|reload_repeat|reload_time_file|require_reply|retry|rise|router_id|rs_init_notifies|script|script_user|sh-fallback|sh-port|shutdown_script|shutdown_script_timeout|skip_check_adv_addr|smtp_alert|smtp_alert_checker|smtp_alert_vrrp|smtp_connect_timeout|smtp_helo_name|smtp_server|snmp_socket|sorry_server|sorry_server_inhibit|sorry_server_lvs_method|source_ip|start|startup_script|startup_script_timeout|state|static_ipaddress|static_routes|static_rules|status_code|step|strict_mode|sync_group_tracking_weight|terminate_delay|timeout|track_bfd|track_file|track_group|track_interface|track_process|track_script|track_src_ip|ttl|type|umask|unicast_peer|unicast_src_ip|unicast_ttl|url|use_ipvlan|use_pid_dir|use_vmac|user|uthreshold|val[123]|version|virtual_ipaddress|virtual_ipaddress_excluded|virtual_router_id|virtual_routes|virtual_rules|virtual_server|virtual_server_group|virtualhost|vmac_xmit_base|vrrp|vrrp_(?:check_unicast_src|cpu_affinity|garp_interval|garp_lower_prio_delay|garp_lower_prio_repeat|garp_master_delay|garp_master_refresh|garp_master_refresh_repeat|garp_master_repeat|gna_interval|higher_prio_send_advert|instance|ipsets|iptables|lower_prio_no_advert|mcast_group4|mcast_group6|min_garp|netlink_cmd_rcv_bufs|netlink_cmd_rcv_bufs_force|netlink_monitor_rcv_bufs|netlink_monitor_rcv_bufs_force|no_swap|notify_fifo|notify_fifo_script|notify_priority_changes|priority|process_name|rlimit_rttime|rt_priority|rx_bufs_multiplier|rx_bufs_policy|script|skip_check_adv_addr|startup_delay|strict|sync_group|track_process|version)|warmup|weight)\b/,constant:/\b(?:A|AAAA|AH|BACKUP|CNAME|DR|MASTER|MX|NAT|NS|PASS|SCTP|SOA|TCP|TUN|TXT|UDP|dh|fo|lblc|lblcr|lc|mh|nq|ovf|rr|sed|sh|wlc|wrr)\b/,number:{pattern:/(^|[^\w.-])-?\d+(?:\.\d+)?/,lookbehind:!0},boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\{\}]/}}},32082:function(J){"use strict";J.exports=C,C.displayName="keyman",C.aliases=[];function C(d){d.languages.keyman={comment:{pattern:/\bc .*/i,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0},"virtual-key":{pattern:/\[\s*(?:(?:ALT|CAPS|CTRL|LALT|LCTRL|NCAPS|RALT|RCTRL|SHIFT)\s+)*(?:[TKU]_[\w?]+|[A-E]\d\d?|"[^"\r\n]*"|'[^'\r\n]*')\s*\]/i,greedy:!0,alias:"function"},"header-keyword":{pattern:/&\w+/,alias:"bold"},"header-statement":{pattern:/\b(?:bitmap|bitmaps|caps always off|caps on only|copyright|hotkey|language|layout|message|name|shift frees caps|version)\b/i,alias:"bold"},"rule-keyword":{pattern:/\b(?:any|baselayout|beep|call|context|deadkey|dk|if|index|layer|notany|nul|outs|platform|reset|return|save|set|store|use)\b/i,alias:"keyword"},"structural-keyword":{pattern:/\b(?:ansi|begin|group|match|nomatch|unicode|using keys)\b/i,alias:"keyword"},"compile-target":{pattern:/\$(?:keyman|keymanonly|keymanweb|kmfl|weaver):/i,alias:"property"},number:/\b(?:U\+[\dA-F]+|d\d+|x[\da-f]+|\d+)\b/i,operator:/[+>\\$]|\.\./,punctuation:/[()=,]/}}},77674:function(J){"use strict";J.exports=C,C.displayName="kotlin",C.aliases=["kt","kts"];function C(d){(function(b){b.languages.kotlin=b.languages.extend("clike",{keyword:{pattern:/(^|[^.])\b(?:abstract|actual|annotation|as|break|by|catch|class|companion|const|constructor|continue|crossinline|data|do|dynamic|else|enum|expect|external|final|finally|for|fun|get|if|import|in|infix|init|inline|inner|interface|internal|is|lateinit|noinline|null|object|open|operator|out|override|package|private|protected|public|reified|return|sealed|set|super|suspend|tailrec|this|throw|to|try|typealias|val|var|vararg|when|where|while)\b/,lookbehind:!0},function:[{pattern:/(?:`[^\r\n`]+`|\b\w+)(?=\s*\()/,greedy:!0},{pattern:/(\.)(?:`[^\r\n`]+`|\w+)(?=\s*\{)/,lookbehind:!0,greedy:!0}],number:/\b(?:0[xX][\da-fA-F]+(?:_[\da-fA-F]+)*|0[bB][01]+(?:_[01]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?[fFL]?)\b/,operator:/\+[+=]?|-[-=>]?|==?=?|!(?:!|==?)?|[\/*%<>]=?|[?:]:?|\.\.|&&|\|\||\b(?:and|inv|or|shl|shr|ushr|xor)\b/}),delete b.languages.kotlin["class-name"];var I={"interpolation-punctuation":{pattern:/^\$\{?|\}$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:b.languages.kotlin}};b.languages.insertBefore("kotlin","string",{"string-literal":[{pattern:/"""(?:[^$]|\$(?:(?!\{)|\{[^{}]*\}))*?"""/,alias:"multiline",inside:{interpolation:{pattern:/\$(?:[a-z_]\w*|\{[^{}]*\})/i,inside:I},string:/[\s\S]+/}},{pattern:/"(?:[^"\\\r\n$]|\\.|\$(?:(?!\{)|\{[^{}]*\}))*"/,alias:"singleline",inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:[a-z_]\w*|\{[^{}]*\})/i,lookbehind:!0,inside:I},string:/[\s\S]+/}}],char:{pattern:/'(?:[^'\\\r\n]|\\(?:.|u[a-fA-F0-9]{0,4}))'/,greedy:!0}}),delete b.languages.kotlin.string,b.languages.insertBefore("kotlin","keyword",{annotation:{pattern:/\B@(?:\w+:)?(?:[A-Z]\w*|\[[^\]]+\])/,alias:"builtin"}}),b.languages.insertBefore("kotlin","function",{label:{pattern:/\b\w+@|@\w+\b/,alias:"symbol"}}),b.languages.kt=b.languages.kotlin,b.languages.kts=b.languages.kotlin})(d)}},37524:function(J){"use strict";J.exports=C,C.displayName="kumir",C.aliases=["kum"];function C(d){(function(b){var I=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function L(B,V){return RegExp(B.replace(/<nonId>/g,I),V)}b.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:L(/(^|[<nonId>])(?:да|нет)(?=[<nonId>]|$)/.source),lookbehind:!0},"operator-word":{pattern:L(/(^|[<nonId>])(?:и|или|не)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:L(/(^|[<nonId>])знач(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:L(/(^|[<nonId>])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:L(/(^|[<nonId>])(?:компл|сканкод|файл|цвет)(?=[<nonId>]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:L(/(^|[<nonId>])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[<nonId>]|$)/.source),lookbehind:!0},name:{pattern:L(/(^|[<nonId>])[^\d<nonId>][^<nonId>]*(?:\x20+[^<nonId>]+)*(?=[<nonId>]|$)/.source),lookbehind:!0},number:{pattern:L(/(^|[<nonId>])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[<nonId>]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},b.languages.kum=b.languages.kumir})(d)}},6658:function(J){"use strict";J.exports=C,C.displayName="kusto",C.aliases=[];function C(d){d.languages.kusto={comment:{pattern:/\/\/.*/,greedy:!0},string:{pattern:/```[\s\S]*?```|[hH]?(?:"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\.)*'|@(?:"[^\r\n"]*"|'[^\r\n']*'))/,greedy:!0},verb:{pattern:/(\|\s*)[a-z][\w-]*/i,lookbehind:!0,alias:"keyword"},command:{pattern:/\.[a-z][a-z\d-]*\b/,alias:"keyword"},"class-name":/\b(?:bool|datetime|decimal|dynamic|guid|int|long|real|string|timespan)\b/,keyword:/\b(?:access|alias|and|anti|as|asc|auto|between|by|(?:contains|(?:ends|starts)with|has(?:perfix|suffix)?)(?:_cs)?|database|declare|desc|external|from|fullouter|has_all|in|ingestion|inline|inner|innerunique|into|(?:left|right)(?:anti(?:semi)?|inner|outer|semi)?|let|like|local|not|of|on|or|pattern|print|query_parameters|range|restrict|schema|set|step|table|tables|to|view|where|with|matches\s+regex|nulls\s+(?:first|last))(?![\w-])/,boolean:/\b(?:false|null|true)\b/,function:/\b[a-z_]\w*(?=\s*\()/,datetime:[{pattern:/\b(?:(?:Fri|Friday|Mon|Monday|Sat|Saturday|Sun|Sunday|Thu|Thursday|Tue|Tuesday|Wed|Wednesday)\s*,\s*)?\d{1,2}(?:\s+|-)(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)(?:\s+|-)\d{2}\s+\d{2}:\d{2}(?::\d{2})?(?:\s*(?:\b(?:[A-Z]|(?:[ECMT][DS]|GM|U)T)|[+-]\d{4}))?\b/,alias:"number"},{pattern:/[+-]?\b(?:\d{4}-\d{2}-\d{2}(?:[ T]\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)?|\d{2}:\d{2}(?::\d{2}(?:\.\d+)?)?)Z?/,alias:"number"}],number:/\b(?:0x[0-9A-Fa-f]+|\d+(?:\.\d+)?(?:[Ee][+-]?\d+)?)(?:(?:min|sec|[mnµ]s|[dhms]|microsecond|tick)\b)?|[+-]?\binf\b/,operator:/=>|[!=]~|[!=<>]=?|[-+*/%|]|\.\./,punctuation:/[()\[\]{},;.:]/}}},24824:function(J){"use strict";J.exports=C,C.displayName="latex",C.aliases=["tex","context"];function C(d){(function(b){var I=/\\(?:[^a-z()[\]]|[a-z*]+)/i,L={"equation-command":{pattern:I,alias:"regex"}};b.languages.latex={comment:/%.*/,cdata:{pattern:/(\\begin\{((?:lstlisting|verbatim)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0},equation:[{pattern:/\$\$(?:\\[\s\S]|[^\\$])+\$\$|\$(?:\\[\s\S]|[^\\$])+\$|\\\([\s\S]*?\\\)|\\\[[\s\S]*?\\\]/,inside:L,alias:"string"},{pattern:/(\\begin\{((?:align|eqnarray|equation|gather|math|multline)\*?)\})[\s\S]*?(?=\\end\{\2\})/,lookbehind:!0,inside:L,alias:"string"}],keyword:{pattern:/(\\(?:begin|cite|documentclass|end|label|ref|usepackage)(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0},url:{pattern:/(\\url\{)[^}]+(?=\})/,lookbehind:!0},headline:{pattern:/(\\(?:chapter|frametitle|paragraph|part|section|subparagraph|subsection|subsubparagraph|subsubsection|subsubsubparagraph)\*?(?:\[[^\]]+\])?\{)[^}]+(?=\})/,lookbehind:!0,alias:"class-name"},function:{pattern:I,alias:"selector"},punctuation:/[[\]{}&]/},b.languages.tex=b.languages.latex,b.languages.context=b.languages.latex})(d)}},22776:function(J,C,d){"use strict";var b=d(51478),I=d(53852);J.exports=L,L.displayName="latte",L.aliases=[];function L(B){B.register(b),B.register(I),function(V){V.languages.latte={comment:/^\{\*[\s\S]*/,"latte-tag":{pattern:/(^\{(?:\/(?=[a-z]))?)(?:[=_]|[a-z]\w*\b(?!\())/i,lookbehind:!0,alias:"important"},delimiter:{pattern:/^\{\/?|\}$/,alias:"punctuation"},php:{pattern:/\S(?:[\s\S]*\S)?/,alias:"language-php",inside:V.languages.php}};var Q=V.languages.extend("markup",{});V.languages.insertBefore("inside","attr-value",{"n-attr":{pattern:/n:[\w-]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+))?/,inside:{"attr-name":{pattern:/^[^\s=]+/,alias:"important"},"attr-value":{pattern:/=[\s\S]+/,inside:{punctuation:[/^=/,{pattern:/^(\s*)["']|["']$/,lookbehind:!0}],php:{pattern:/\S(?:[\s\S]*\S)?/,inside:V.languages.php}}}}}},Q.tag),V.hooks.add("before-tokenize",function(M){if(M.language==="latte"){var de=/\{\*[\s\S]*?\*\}|\{[^'"\s{}*](?:[^"'/{}]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|\/\*(?:[^*]|\*(?!\/))*\*\/)*\}/g;V.languages["markup-templating"].buildPlaceholders(M,"latte",de),M.grammar=Q}}),V.hooks.add("after-tokenize",function(M){V.languages["markup-templating"].tokenizePlaceholders(M,"latte")})}(B)}},89700:function(J){"use strict";J.exports=C,C.displayName="less",C.aliases=[];function C(d){d.languages.less=d.languages.extend("css",{comment:[/\/\*[\s\S]*?\*\//,{pattern:/(^|[^\\])\/\/.*/,lookbehind:!0}],atrule:{pattern:/@[\w-](?:\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{punctuation:/[:()]/}},selector:{pattern:/(?:@\{[\w-]+\}|[^{};\s@])(?:@\{[\w-]+\}|\((?:[^(){}]|\([^(){}]*\))*\)|[^(){};@\s]|\s+(?!\s))*?(?=\s*\{)/,inside:{variable:/@+[\w-]+/}},property:/(?:@\{[\w-]+\}|[\w-])+(?:\+_?)?(?=\s*:)/,operator:/[+\-*\/]/}),d.languages.insertBefore("less","property",{variable:[{pattern:/@[\w-]+\s*:/,inside:{punctuation:/:/}},/@@?[\w-]+/],"mixin-usage":{pattern:/([{;]\s*)[.#](?!\d)[\w-].*?(?=[(;])/,lookbehind:!0,alias:"function"}})}},99296:function(J,C,d){"use strict";var b=d(48780);J.exports=I,I.displayName="lilypond",I.aliases=[];function I(L){L.register(b),function(B){for(var V=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|<expr>)*\)/.source,Q=5,M=0;M<Q;M++)V=V.replace(/<expr>/g,function(){return V});V=V.replace(/<expr>/g,/[^\s\S]/.source);var de=B.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|<expr>))/.source.replace(/<expr>/g,function(){return V}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:B.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};de["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=de,B.languages.ly=de}(L)}},39940:function(J,C,d){"use strict";var b=d(51478);J.exports=I,I.displayName="liquid",I.aliases=[];function I(L){L.register(b),L.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},L.hooks.add("before-tokenize",function(B){var V=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,Q=!1;L.languages["markup-templating"].buildPlaceholders(B,"liquid",V,function(M){var de=/^\{%-?\s*(\w+)/.exec(M);if(de){var he=de[1];if(he==="raw"&&!Q)return Q=!0,!0;if(he==="endraw")return Q=!1,!0}return!Q})}),L.hooks.add("after-tokenize",function(B){L.languages["markup-templating"].tokenizePlaceholders(B,"liquid")})}},34973:function(J){"use strict";J.exports=C,C.displayName="lisp",C.aliases=[];function C(d){(function(b){function I(Ue){return RegExp(/(\()/.source+"(?:"+Ue+")"+/(?=[\s\)])/.source)}function L(Ue){return RegExp(/([\s([])/.source+"(?:"+Ue+")"+/(?=[\s)])/.source)}var B=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,V="&"+B,Q="(\\()",M="(?=\\))",de="(?=\\s)",he=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,re={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+B+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+B),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+B),alias:"property"},splice:{pattern:RegExp(",@?"+B),alias:["symbol","variable"]},keyword:[{pattern:RegExp(Q+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+de),lookbehind:!0},{pattern:RegExp(Q+"(?:append|by|collect|concat|do|finally|for|in|return)"+de),lookbehind:!0}],declare:{pattern:I(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:I(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:L(/nil|t/.source),lookbehind:!0},number:{pattern:L(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(Q+"def(?:const|custom|group|var)\\s+"+B),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(B)}},defun:{pattern:RegExp(Q+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+B+/\s+\(/.source+he+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+B),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(Q+"lambda\\s+\\(\\s*(?:&?"+B+"(?:\\s+&?"+B+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(Q+B),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},De={"lisp-marker":RegExp(V),varform:{pattern:RegExp(/\(/.source+B+/\s+(?=\S)/.source+he+/\)/.source),inside:re},argument:{pattern:RegExp(/(^|[\s(])/.source+B),lookbehind:!0,alias:"variable"},rest:re},ne="\\S+(?:\\s+\\S+)*",it={pattern:RegExp(Q+he+M),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+ne),inside:De},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+ne),inside:De},keys:{pattern:RegExp("&key\\s+"+ne+"(?:\\s+&allow-other-keys)?"),inside:De},argument:{pattern:RegExp(B),alias:"variable"},punctuation:/[()]/}};re.lambda.inside.arguments=it,re.defun.inside.arguments=b.util.clone(it),re.defun.inside.arguments.inside.sublist=it,b.languages.lisp=re,b.languages.elisp=re,b.languages.emacs=re,b.languages["emacs-lisp"]=re})(d)}},98135:function(J){"use strict";J.exports=C,C.displayName="livescript",C.aliases=[];function C(d){d.languages.livescript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\])#.*/,lookbehind:!0}],"interpolated-string":{pattern:/(^|[^"])("""|")(?:\\[\s\S]|(?!\2)[^\\])*\2(?!")/,lookbehind:!0,greedy:!0,inside:{variable:{pattern:/(^|[^\\])#[a-z_](?:-?[a-z]|[\d_])*/m,lookbehind:!0},interpolation:{pattern:/(^|[^\\])#\{[^}]+\}/m,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^#\{|\}$/,alias:"variable"}}},string:/[\s\S]+/}},string:[{pattern:/('''|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},{pattern:/<\[[\s\S]*?\]>/,greedy:!0},/\\[^\s,;\])}]+/],regex:[{pattern:/\/\/(?:\[[^\r\n\]]*\]|\\.|(?!\/\/)[^\\\[])+\/\/[gimyu]{0,5}/,greedy:!0,inside:{comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0}}},{pattern:/\/(?:\[[^\r\n\]]*\]|\\.|[^/\\\r\n\[])+\/[gimyu]{0,5}/,greedy:!0}],keyword:{pattern:/(^|(?!-).)\b(?:break|case|catch|class|const|continue|default|do|else|extends|fallthrough|finally|for(?: ever)?|function|if|implements|it|let|loop|new|null|otherwise|own|return|super|switch|that|then|this|throw|try|unless|until|var|void|when|while|yield)(?!-)\b/m,lookbehind:!0},"keyword-operator":{pattern:/(^|[^-])\b(?:(?:delete|require|typeof)!|(?:and|by|delete|export|from|import(?: all)?|in|instanceof|is(?: not|nt)?|not|of|or|til|to|typeof|with|xor)(?!-)\b)/m,lookbehind:!0,alias:"operator"},boolean:{pattern:/(^|[^-])\b(?:false|no|off|on|true|yes)(?!-)\b/m,lookbehind:!0},argument:{pattern:/(^|(?!\.&\.)[^&])&(?!&)\d*/m,lookbehind:!0,alias:"variable"},number:/\b(?:\d+~[\da-z]+|\d[\d_]*(?:\.\d[\d_]*)?(?:[a-z]\w*)?)/i,identifier:/[a-z_](?:-?[a-z]|[\d_])*/i,operator:[{pattern:/( )\.(?= )/,lookbehind:!0},/\.(?:[=~]|\.\.?)|\.(?:[&|^]|<<|>>>?)\.|:(?:=|:=?)|&&|\|[|>]|<(?:<<?<?|--?!?|~~?!?|[|=?])?|>[>=?]?|-(?:->?|>)?|\+\+?|@@?|%%?|\*\*?|!(?:~?=|--?>|~?~>)?|~(?:~?>|=)?|==?|\^\^?|[\/?]/],punctuation:/[(){}\[\]|.,:;`]/},d.languages.livescript["interpolated-string"].inside.interpolation.inside.rest=d.languages.livescript}},36907:function(J){"use strict";J.exports=C,C.displayName="llvm",C.aliases=[];function C(d){(function(b){b.languages.llvm={comment:/;.*/,string:{pattern:/"[^"]*"/,greedy:!0},boolean:/\b(?:false|true)\b/,variable:/[%@!#](?:(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+|\d+)/i,label:/(?!\d)(?:[-$.\w]|\\[a-f\d]{2})+:/i,type:{pattern:/\b(?:double|float|fp128|half|i[1-9]\d*|label|metadata|ppc_fp128|token|void|x86_fp80|x86_mmx)\b/,alias:"class-name"},keyword:/\b[a-z_][a-z_0-9]*\b/,number:/[+-]?\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-Fa-f]+\b|\b0xK[\dA-Fa-f]{20}\b|\b0x[ML][\dA-Fa-f]{32}\b|\b0xH[\dA-Fa-f]{4}\b/,punctuation:/[{}[\];(),.!*=<>]/}})(d)}},3567:function(J){"use strict";J.exports=C,C.displayName="log",C.aliases=[];function C(d){d.languages.log={string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?![st] | \w)(?:[^'\\\r\n]|\\.)*'/,greedy:!0},exception:{pattern:/(^|[^\w.])[a-z][\w.]*(?:Error|Exception):.*(?:(?:\r\n?|\n)[ \t]*(?:at[ \t].+|\.{3}.*|Caused by:.*))+(?:(?:\r\n?|\n)[ \t]*\.\.\. .*)?/,lookbehind:!0,greedy:!0,alias:["javastacktrace","language-javastacktrace"],inside:d.languages.javastacktrace||{keyword:/\bat\b/,function:/[a-z_][\w$]*(?=\()/,punctuation:/[.:()]/}},level:[{pattern:/\b(?:ALERT|CRIT|CRITICAL|EMERG|EMERGENCY|ERR|ERROR|FAILURE|FATAL|SEVERE)\b/,alias:["error","important"]},{pattern:/\b(?:WARN|WARNING|WRN)\b/,alias:["warning","important"]},{pattern:/\b(?:DISPLAY|INF|INFO|NOTICE|STATUS)\b/,alias:["info","keyword"]},{pattern:/\b(?:DBG|DEBUG|FINE)\b/,alias:["debug","keyword"]},{pattern:/\b(?:FINER|FINEST|TRACE|TRC|VERBOSE|VRB)\b/,alias:["trace","comment"]}],property:{pattern:/((?:^|[\]|])[ \t]*)[a-z_](?:[\w-]|\b\/\b)*(?:[. ]\(?\w(?:[\w-]|\b\/\b)*\)?)*:(?=\s)/im,lookbehind:!0},separator:{pattern:/(^|[^-+])-{3,}|={3,}|\*{3,}|- - /m,lookbehind:!0,alias:"comment"},url:/\b(?:file|ftp|https?):\/\/[^\s|,;'"]*[^\s|,;'">.]/,email:{pattern:/(^|\s)[-\w+.]+@[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)+(?=\s)/,lookbehind:!0,alias:"url"},"ip-address":{pattern:/\b(?:\d{1,3}(?:\.\d{1,3}){3})\b/,alias:"constant"},"mac-address":{pattern:/\b[a-f0-9]{2}(?::[a-f0-9]{2}){5}\b/i,alias:"constant"},domain:{pattern:/(^|\s)[a-z][a-z0-9-]*(?:\.[a-z][a-z0-9-]*)*\.[a-z][a-z0-9-]+(?=\s)/,lookbehind:!0,alias:"constant"},uuid:{pattern:/\b[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}\b/i,alias:"constant"},hash:{pattern:/\b(?:[a-f0-9]{32}){1,2}\b/i,alias:"constant"},"file-path":{pattern:/\b[a-z]:[\\/][^\s|,;:(){}\[\]"']+|(^|[\s:\[\](>|])\.{0,2}\/\w[^\s|,;:(){}\[\]"']*/i,lookbehind:!0,greedy:!0,alias:"string"},date:{pattern:RegExp(/\b\d{4}[-/]\d{2}[-/]\d{2}(?:T(?=\d{1,2}:)|(?=\s\d{1,2}:))/.source+"|"+/\b\d{1,4}[-/ ](?:\d{1,2}|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)[-/ ]\d{2,4}T?\b/.source+"|"+/\b(?:(?:Fri|Mon|Sat|Sun|Thu|Tue|Wed)(?:\s{1,2}(?:Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep))?|Apr|Aug|Dec|Feb|Jan|Jul|Jun|Mar|May|Nov|Oct|Sep)\s{1,2}\d{1,2}\b/.source,"i"),alias:"number"},time:{pattern:/\b\d{1,2}:\d{1,2}:\d{1,2}(?:[.,:]\d+)?(?:\s?[+-]\d{2}:?\d{2}|Z)?\b/,alias:"number"},boolean:/\b(?:false|null|true)\b/i,number:{pattern:/(^|[^.\w])(?:0x[a-f0-9]+|0o[0-7]+|0b[01]+|v?\d[\da-f]*(?:\.\d+)*(?:e[+-]?\d+)?[a-z]{0,3}\b)\b(?!\.\w)/i,lookbehind:!0},operator:/[;:?<=>~/@!$%&+\-|^(){}*#]/,punctuation:/[\[\].,]/}}},23763:function(J){"use strict";J.exports=C,C.displayName="lolcode",C.aliases=[];function C(d){d.languages.lolcode={comment:[/\bOBTW\s[\s\S]*?\sTLDR\b/,/\bBTW.+/],string:{pattern:/"(?::.|[^":])*"/,inside:{variable:/:\{[^}]+\}/,symbol:[/:\([a-f\d]+\)/i,/:\[[^\]]+\]/,/:[)>o":]/]},greedy:!0},number:/(?:\B-)?(?:\b\d+(?:\.\d*)?|\B\.\d+)/,symbol:{pattern:/(^|\s)(?:A )?(?:BUKKIT|NOOB|NUMBAR|NUMBR|TROOF|YARN)(?=\s|,|$)/,lookbehind:!0,inside:{keyword:/A(?=\s)/}},label:{pattern:/((?:^|\s)(?:IM IN YR|IM OUTTA YR) )[a-zA-Z]\w*/,lookbehind:!0,alias:"string"},function:{pattern:/((?:^|\s)(?:HOW IZ I|I IZ|IZ) )[a-zA-Z]\w*/,lookbehind:!0},keyword:[{pattern:/(^|\s)(?:AN|FOUND YR|GIMMEH|GTFO|HAI|HAS A|HOW IZ I|I HAS A|I IZ|IF U SAY SO|IM IN YR|IM OUTTA YR|IS NOW(?: A)?|ITZ(?: A)?|IZ|KTHX|KTHXBYE|LIEK(?: A)?|MAEK|MEBBE|MKAY|NERFIN|NO WAI|O HAI IM|O RLY\?|OIC|OMG|OMGWTF|R|SMOOSH|SRS|TIL|UPPIN|VISIBLE|WILE|WTF\?|YA RLY|YR)(?=\s|,|$)/,lookbehind:!0},/'Z(?=\s|,|$)/],boolean:{pattern:/(^|\s)(?:FAIL|WIN)(?=\s|,|$)/,lookbehind:!0},variable:{pattern:/(^|\s)IT(?=\s|,|$)/,lookbehind:!0},operator:{pattern:/(^|\s)(?:NOT|BOTH SAEM|DIFFRINT|(?:ALL|ANY|BIGGR|BOTH|DIFF|EITHER|MOD|PRODUKT|QUOSHUNT|SMALLR|SUM|WON) OF)(?=\s|,|$)/,lookbehind:!0},punctuation:/\.{3}|…|,|!/}}},29509:function(J){"use strict";J.exports=C,C.displayName="lua",C.aliases=[];function C(d){d.languages.lua={comment:/^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,string:{pattern:/(["'])(?:(?!\1)[^\\\r\n]|\\z(?:\r\n|\s)|\\(?:\r\n|[^z]))*\1|\[(=*)\[[\s\S]*?\]\2\]/,greedy:!0},number:/\b0x[a-f\d]+(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,keyword:/\b(?:and|break|do|else|elseif|end|false|for|function|goto|if|in|local|nil|not|or|repeat|return|then|true|until|while)\b/,function:/(?!\d)\w+(?=\s*(?:[({]))/,operator:[/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?/,{pattern:/(^|[^.])\.\.(?!\.)/,lookbehind:!0}],punctuation:/[\[\](){},;]|\.+|:+/}}},40472:function(J){"use strict";J.exports=C,C.displayName="magma",C.aliases=[];function C(d){d.languages.magma={output:{pattern:/^(>.*(?:\r(?:\n|(?!\n))|\n))(?!>)(?:.+|(?:\r(?:\n|(?!\n))|\n)(?!>).*)(?:(?:\r(?:\n|(?!\n))|\n)(?!>).*)*/m,lookbehind:!0,greedy:!0},comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/(^|[^\\"])"(?:[^\r\n\\"]|\\.)*"/,lookbehind:!0,greedy:!0},keyword:/\b(?:_|adj|and|assert|assert2|assert3|assigned|break|by|case|cat|catch|clear|cmpeq|cmpne|continue|declare|default|delete|diff|div|do|elif|else|end|eq|error|eval|exists|exit|for|forall|forward|fprintf|freeze|function|ge|gt|if|iload|import|in|intrinsic|is|join|le|load|local|lt|meet|mod|ne|not|notadj|notin|notsubset|or|print|printf|procedure|quit|random|read|readi|repeat|require|requirege|requirerange|restore|return|save|sdiff|select|subset|then|time|to|try|until|vprint|vprintf|vtime|when|where|while|xor)\b/,boolean:/\b(?:false|true)\b/,generator:{pattern:/\b[a-z_]\w*(?=\s*<)/i,alias:"class-name"},function:/\b[a-z_]\w*(?=\s*\()/i,number:{pattern:/(^|[^\w.]|\.\.)(?:\d+(?:\.\d*)?|\.\d+)(?:[eE][+-]?\d+)?(?:_[a-z]?)?(?=$|[^\w.]|\.\.)/,lookbehind:!0},operator:/->|[-+*/^~!|#=]|:=|\.\./,punctuation:/[()[\]{}<>,;.:]/}}},44695:function(J){"use strict";J.exports=C,C.displayName="makefile",C.aliases=[];function C(d){d.languages.makefile={comment:{pattern:/(^|[^\\])#(?:\\(?:\r\n|[\s\S])|[^\\\r\n])*/,lookbehind:!0},string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},"builtin-target":{pattern:/\.[A-Z][^:#=\s]+(?=\s*:(?!=))/,alias:"builtin"},target:{pattern:/^(?:[^:=\s]|[ \t]+(?![\s:]))+(?=\s*:(?!=))/m,alias:"symbol",inside:{variable:/\$+(?:(?!\$)[^(){}:#=\s]+|(?=[({]))/}},variable:/\$+(?:(?!\$)[^(){}:#=\s]+|\([@*%<^+?][DF]\)|(?=[({]))/,keyword:/-include\b|\b(?:define|else|endef|endif|export|ifn?def|ifn?eq|include|override|private|sinclude|undefine|unexport|vpath)\b/,function:{pattern:/(\()(?:abspath|addsuffix|and|basename|call|dir|error|eval|file|filter(?:-out)?|findstring|firstword|flavor|foreach|guile|if|info|join|lastword|load|notdir|or|origin|patsubst|realpath|shell|sort|strip|subst|suffix|value|warning|wildcard|word(?:list|s)?)(?=[ \t])/,lookbehind:!0},operator:/(?:::|[?:+!])?=|[|@]/,punctuation:/[:;(){}]/}}},53885:function(J){"use strict";J.exports=C,C.displayName="markdown",C.aliases=["md"];function C(d){(function(b){var I=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function L(De){return De=De.replace(/<inner>/g,function(){return I}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+De+")")}var B=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,V=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return B}),Q=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;b.languages.markdown=b.languages.extend("markup",{}),b.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:b.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+V+Q+"(?:"+V+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+V+Q+")(?:"+V+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(B),inside:b.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+V+")"+Q+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+V+"$"),inside:{"table-header":{pattern:RegExp(B),alias:"important",inside:b.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:L(/\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\b|\*\*(?:(?!\*)<inner>|\*(?:(?!\*)<inner>)+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:L(/\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\b|\*(?:(?!\*)<inner>|\*\*(?:(?!\*)<inner>)+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:L(/(~~?)(?:(?!~)<inner>)+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:L(/!?\[(?:(?!\])<inner>)+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\])<inner>)+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(De){["url","bold","italic","strike","code-snippet"].forEach(function(ne){De!==ne&&(b.languages.markdown[De].inside.content.inside[ne]=b.languages.markdown[ne])})}),b.hooks.add("after-tokenize",function(De){if(De.language!=="markdown"&&De.language!=="md")return;function ne(it){if(!(!it||typeof it=="string"))for(var Ue=0,Ie=it.length;Ue<Ie;Ue++){var Pe=it[Ue];if(Pe.type!=="code"){ne(Pe.content);continue}var ze=Pe.content[1],Ee=Pe.content[3];if(ze&&Ee&&ze.type==="code-language"&&Ee.type==="code-block"&&typeof ze.content=="string"){var fe=ze.content.replace(/\b#/g,"sharp").replace(/\b\+\+/g,"pp");fe=(/[a-z][\w-]*/i.exec(fe)||[""])[0].toLowerCase();var we="language-"+fe;Ee.alias?typeof Ee.alias=="string"?Ee.alias=[Ee.alias,we]:Ee.alias.push(we):Ee.alias=[we]}}}ne(De.tokens)}),b.hooks.add("wrap",function(De){if(De.type==="code-block"){for(var ne="",it=0,Ue=De.classes.length;it<Ue;it++){var Ie=De.classes[it],Pe=/language-(.+)/.exec(Ie);if(Pe){ne=Pe[1];break}}var ze=b.languages[ne];if(ze)De.content=b.highlight(re(De.content.value),ze,ne);else if(ne&&ne!=="none"&&b.plugins.autoloader){var Ee="md-"+new Date().valueOf()+"-"+Math.floor(Math.random()*1e16);De.attributes.id=Ee,b.plugins.autoloader.loadLanguages(ne,function(){var fe=document.getElementById(Ee);fe&&(fe.innerHTML=b.highlight(fe.textContent,b.languages[ne],ne))})}}});var M=RegExp(b.languages.markup.tag.pattern.source,"gi"),de={amp:"&",lt:"<",gt:">",quot:'"'},he=String.fromCodePoint||String.fromCharCode;function re(De){var ne=De.replace(M,"");return ne=ne.replace(/&(\w{1,8}|#x?[\da-f]{1,8});/gi,function(it,Ue){if(Ue=Ue.toLowerCase(),Ue[0]==="#"){var Ie;return Ue[1]==="x"?Ie=parseInt(Ue.slice(2),16):Ie=Number(Ue.slice(1)),he(Ie)}else{var Pe=de[Ue];return Pe||it}}),ne}b.languages.md=b.languages.markdown})(d)}},51478:function(J){"use strict";J.exports=C,C.displayName="markupTemplating",C.aliases=[];function C(d){(function(b){function I(L,B){return"___"+L.toUpperCase()+B+"___"}Object.defineProperties(b.languages["markup-templating"]={},{buildPlaceholders:{value:function(L,B,V,Q){if(L.language===B){var M=L.tokenStack=[];L.code=L.code.replace(V,function(de){if(typeof Q=="function"&&!Q(de))return de;for(var he=M.length,re;L.code.indexOf(re=I(B,he))!==-1;)++he;return M[he]=de,re}),L.grammar=b.languages.markup}}},tokenizePlaceholders:{value:function(L,B){if(L.language!==B||!L.tokenStack)return;L.grammar=b.languages[B];var V=0,Q=Object.keys(L.tokenStack);function M(de){for(var he=0;he<de.length&&!(V>=Q.length);he++){var re=de[he];if(typeof re=="string"||re.content&&typeof re.content=="string"){var De=Q[V],ne=L.tokenStack[De],it=typeof re=="string"?re:re.content,Ue=I(B,De),Ie=it.indexOf(Ue);if(Ie>-1){++V;var Pe=it.substring(0,Ie),ze=new b.Token(B,b.tokenize(ne,L.grammar),"language-"+B,ne),Ee=it.substring(Ie+Ue.length),fe=[];Pe&&fe.push.apply(fe,M([Pe])),fe.push(ze),Ee&&fe.push.apply(fe,M([Ee])),typeof re=="string"?de.splice.apply(de,[he,1].concat(fe)):re.content=fe}}else re.content&&M(re.content)}return de}M(L.tokens)}}})})(d)}},70614:function(J){"use strict";J.exports=C,C.displayName="markup",C.aliases=["html","mathml","svg","xml","ssml","atom","rss"];function C(d){d.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},d.languages.markup.tag.inside["attr-value"].inside.entity=d.languages.markup.entity,d.languages.markup.doctype.inside["internal-subset"].inside=d.languages.markup,d.hooks.add("wrap",function(b){b.type==="entity"&&(b.attributes.title=b.content.value.replace(/&/,"&"))}),Object.defineProperty(d.languages.markup.tag,"addInlined",{value:function(I,L){var B={};B["language-"+L]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:d.languages[L]},B.cdata=/^<!\[CDATA\[|\]\]>$/i;var V={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:B}};V["language-"+L]={pattern:/[\s\S]+/,inside:d.languages[L]};var Q={};Q[I]={pattern:RegExp(/(<__[^>]*>)(?:<!\[CDATA\[(?:[^\]]|\](?!\]>))*\]\]>|(?!<!\[CDATA\[)[\s\S])*?(?=<\/__>)/.source.replace(/__/g,function(){return I}),"i"),lookbehind:!0,greedy:!0,inside:V},d.languages.insertBefore("markup","cdata",Q)}}),Object.defineProperty(d.languages.markup.tag,"addAttribute",{value:function(b,I){d.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+b+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[I,"language-"+I],inside:d.languages[I]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),d.languages.html=d.languages.markup,d.languages.mathml=d.languages.markup,d.languages.svg=d.languages.markup,d.languages.xml=d.languages.extend("markup",{}),d.languages.ssml=d.languages.xml,d.languages.atom=d.languages.xml,d.languages.rss=d.languages.xml}},16928:function(J){"use strict";J.exports=C,C.displayName="matlab",C.aliases=[];function C(d){d.languages.matlab={comment:[/%\{[\s\S]*?\}%/,/%.+/],string:{pattern:/\B'(?:''|[^'\r\n])*'/,greedy:!0},number:/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[eE][+-]?\d+)?(?:[ij])?|\b[ij]\b/,keyword:/\b(?:NaN|break|case|catch|continue|else|elseif|end|for|function|if|inf|otherwise|parfor|pause|pi|return|switch|try|while)\b/,function:/\b(?!\d)\w+(?=\s*\()/,operator:/\.?[*^\/\\']|[+\-:@]|[<>=~]=?|&&?|\|\|?/,punctuation:/\.{3}|[.,;\[\](){}!]/}}},13586:function(J){"use strict";J.exports=C,C.displayName="maxscript",C.aliases=[];function C(d){(function(b){var I=/\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i;b.languages.maxscript={comment:{pattern:/\/\*[\s\S]*?(?:\*\/|$)|--.*/,greedy:!0},string:{pattern:/(^|[^"\\@])(?:"(?:[^"\\]|\\[\s\S])*"|@"[^"]*")/,lookbehind:!0,greedy:!0},path:{pattern:/\$(?:[\w/\\.*?]|'[^']*')*/,greedy:!0,alias:"string"},"function-call":{pattern:RegExp("((?:"+(/^/.source+"|"+/[;=<>+\-*/^({\[]/.source+"|"+/\b(?:and|by|case|catch|collect|do|else|if|in|not|or|return|then|to|try|where|while|with)\b/.source)+")[ ]*)(?!"+I.source+")"+/[a-z_]\w*\b/.source+"(?=[ ]*(?:"+("(?!"+I.source+")"+/[a-z_]/.source+"|"+/\d|-\.?\d/.source+"|"+/[({'"$@#?]/.source)+"))","im"),lookbehind:!0,greedy:!0,alias:"function"},"function-definition":{pattern:/(\b(?:fn|function)\s+)\w+\b/i,lookbehind:!0,alias:"function"},argument:{pattern:/\b[a-z_]\w*(?=:)/i,alias:"attr-name"},keyword:I,boolean:/\b(?:false|true)\b/,time:{pattern:/(^|[^\w.])(?:(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?[msft])+|\d+:\d+(?:\.\d*)?)(?![\w.:])/,lookbehind:!0,alias:"number"},number:[{pattern:/(^|[^\w.])(?:(?:\d+(?:\.\d*)?|\.\d+)(?:[eEdD][+-]\d+|[LP])?|0x[a-fA-F0-9]+)(?![\w.:])/,lookbehind:!0},/\b(?:e|pi)\b/],constant:/\b(?:dontcollect|ok|silentValue|undefined|unsupplied)\b/,color:{pattern:/\b(?:black|blue|brown|gray|green|orange|red|white|yellow)\b/i,alias:"constant"},operator:/[-+*/<>=!]=?|[&^?]|#(?!\()/,punctuation:/[()\[\]{}.:,;]|#(?=\()|\\$/m}})(d)}},37164:function(J){"use strict";J.exports=C,C.displayName="mel",C.aliases=[];function C(d){d.languages.mel={comment:/\/\/.*/,code:{pattern:/`(?:\\.|[^\\`\r\n])*`/,greedy:!0,alias:"italic",inside:{delimiter:{pattern:/^`|`$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},variable:/\$\w+/,number:/\b0x[\da-fA-F]+\b|\b\d+(?:\.\d*)?|\B\.\d+/,flag:{pattern:/-[^\d\W]\w*/,alias:"operator"},keyword:/\b(?:break|case|continue|default|do|else|float|for|global|if|in|int|matrix|proc|return|string|switch|vector|while)\b/,function:/\b\w+(?=\()|\b(?:CBG|HfAddAttractorToAS|HfAssignAS|HfBuildEqualMap|HfBuildFurFiles|HfBuildFurImages|HfCancelAFR|HfConnectASToHF|HfCreateAttractor|HfDeleteAS|HfEditAS|HfPerformCreateAS|HfRemoveAttractorFromAS|HfSelectAttached|HfSelectAttractors|HfUnAssignAS|Mayatomr|about|abs|addAttr|addAttributeEditorNodeHelp|addDynamic|addNewShelfTab|addPP|addPanelCategory|addPrefixToName|advanceToNextDrivenKey|affectedNet|affects|aimConstraint|air|alias|aliasAttr|align|alignCtx|alignCurve|alignSurface|allViewFit|ambientLight|angle|angleBetween|animCone|animCurveEditor|animDisplay|animView|annotate|appendStringArray|applicationName|applyAttrPreset|applyTake|arcLenDimContext|arcLengthDimension|arclen|arrayMapper|art3dPaintCtx|artAttrCtx|artAttrPaintVertexCtx|artAttrSkinPaintCtx|artAttrTool|artBuildPaintMenu|artFluidAttrCtx|artPuttyCtx|artSelectCtx|artSetPaintCtx|artUserPaintCtx|assignCommand|assignInputDevice|assignViewportFactories|attachCurve|attachDeviceAttr|attachSurface|attrColorSliderGrp|attrCompatibility|attrControlGrp|attrEnumOptionMenu|attrEnumOptionMenuGrp|attrFieldGrp|attrFieldSliderGrp|attrNavigationControlGrp|attrPresetEditWin|attributeExists|attributeInfo|attributeMenu|attributeQuery|autoKeyframe|autoPlace|bakeClip|bakeFluidShading|bakePartialHistory|bakeResults|bakeSimulation|basename|basenameEx|batchRender|bessel|bevel|bevelPlus|binMembership|bindSkin|blend2|blendShape|blendShapeEditor|blendShapePanel|blendTwoAttr|blindDataType|boneLattice|boundary|boxDollyCtx|boxZoomCtx|bufferCurve|buildBookmarkMenu|buildKeyframeMenu|button|buttonManip|cacheFile|cacheFileCombine|cacheFileMerge|cacheFileTrack|camera|cameraView|canCreateManip|canvas|capitalizeString|catch|catchQuiet|ceil|changeSubdivComponentDisplayLevel|changeSubdivRegion|channelBox|character|characterMap|characterOutlineEditor|characterize|chdir|checkBox|checkBoxGrp|checkDefaultRenderGlobals|choice|circle|circularFillet|clamp|clear|clearCache|clip|clipEditor|clipEditorCurrentTimeCtx|clipSchedule|clipSchedulerOutliner|clipTrimBefore|closeCurve|closeSurface|cluster|cmdFileOutput|cmdScrollFieldExecuter|cmdScrollFieldReporter|cmdShell|coarsenSubdivSelectionList|collision|color|colorAtPoint|colorEditor|colorIndex|colorIndexSliderGrp|colorSliderButtonGrp|colorSliderGrp|columnLayout|commandEcho|commandLine|commandPort|compactHairSystem|componentEditor|compositingInterop|computePolysetVolume|condition|cone|confirmDialog|connectAttr|connectControl|connectDynamic|connectJoint|connectionInfo|constrain|constrainValue|constructionHistory|container|containsMultibyte|contextInfo|control|convertFromOldLayers|convertIffToPsd|convertLightmap|convertSolidTx|convertTessellation|convertUnit|copyArray|copyFlexor|copyKey|copySkinWeights|cos|cpButton|cpCache|cpClothSet|cpCollision|cpConstraint|cpConvClothToMesh|cpForces|cpGetSolverAttr|cpPanel|cpProperty|cpRigidCollisionFilter|cpSeam|cpSetEdit|cpSetSolverAttr|cpSolver|cpSolverTypes|cpTool|cpUpdateClothUVs|createDisplayLayer|createDrawCtx|createEditor|createLayeredPsdFile|createMotionField|createNewShelf|createNode|createRenderLayer|createSubdivRegion|cross|crossProduct|ctxAbort|ctxCompletion|ctxEditMode|ctxTraverse|currentCtx|currentTime|currentTimeCtx|currentUnit|curve|curveAddPtCtx|curveCVCtx|curveEPCtx|curveEditorCtx|curveIntersect|curveMoveEPCtx|curveOnSurface|curveSketchCtx|cutKey|cycleCheck|cylinder|dagPose|date|defaultLightListCheckBox|defaultNavigation|defineDataServer|defineVirtualDevice|deformer|deg_to_rad|delete|deleteAttr|deleteShadingGroupsAndMaterials|deleteShelfTab|deleteUI|deleteUnusedBrushes|delrandstr|detachCurve|detachDeviceAttr|detachSurface|deviceEditor|devicePanel|dgInfo|dgdirty|dgeval|dgtimer|dimWhen|directKeyCtx|directionalLight|dirmap|dirname|disable|disconnectAttr|disconnectJoint|diskCache|displacementToPoly|displayAffected|displayColor|displayCull|displayLevelOfDetail|displayPref|displayRGBColor|displaySmoothness|displayStats|displayString|displaySurface|distanceDimContext|distanceDimension|doBlur|dolly|dollyCtx|dopeSheetEditor|dot|dotProduct|doubleProfileBirailSurface|drag|dragAttrContext|draggerContext|dropoffLocator|duplicate|duplicateCurve|duplicateSurface|dynCache|dynControl|dynExport|dynExpression|dynGlobals|dynPaintEditor|dynParticleCtx|dynPref|dynRelEdPanel|dynRelEditor|dynamicLoad|editAttrLimits|editDisplayLayerGlobals|editDisplayLayerMembers|editRenderLayerAdjustment|editRenderLayerGlobals|editRenderLayerMembers|editor|editorTemplate|effector|emit|emitter|enableDevice|encodeString|endString|endsWith|env|equivalent|equivalentTol|erf|error|eval|evalDeferred|evalEcho|event|exactWorldBoundingBox|exclusiveLightCheckBox|exec|executeForEachObject|exists|exp|expression|expressionEditorListen|extendCurve|extendSurface|extrude|fcheck|fclose|feof|fflush|fgetline|fgetword|file|fileBrowserDialog|fileDialog|fileExtension|fileInfo|filetest|filletCurve|filter|filterCurve|filterExpand|filterStudioImport|findAllIntersections|findAnimCurves|findKeyframe|findMenuItem|findRelatedSkinCluster|finder|firstParentOf|fitBspline|flexor|floatEq|floatField|floatFieldGrp|floatScrollBar|floatSlider|floatSlider2|floatSliderButtonGrp|floatSliderGrp|floor|flow|fluidCacheInfo|fluidEmitter|fluidVoxelInfo|flushUndo|fmod|fontDialog|fopen|formLayout|format|fprint|frameLayout|fread|freeFormFillet|frewind|fromNativePath|fwrite|gamma|gauss|geometryConstraint|getApplicationVersionAsFloat|getAttr|getClassification|getDefaultBrush|getFileList|getFluidAttr|getInputDeviceRange|getMayaPanelTypes|getModifiers|getPanel|getParticleAttr|getPluginResource|getenv|getpid|glRender|glRenderEditor|globalStitch|gmatch|goal|gotoBindPose|grabColor|gradientControl|gradientControlNoAttr|graphDollyCtx|graphSelectContext|graphTrackCtx|gravity|grid|gridLayout|group|groupObjectsByName|hardenPointCurve|hardware|hardwareRenderPanel|headsUpDisplay|headsUpMessage|help|helpLine|hermite|hide|hilite|hitTest|hotBox|hotkey|hotkeyCheck|hsv_to_rgb|hudButton|hudSlider|hudSliderButton|hwReflectionMap|hwRender|hwRenderLoad|hyperGraph|hyperPanel|hyperShade|hypot|iconTextButton|iconTextCheckBox|iconTextRadioButton|iconTextRadioCollection|iconTextScrollList|iconTextStaticLabel|ikHandle|ikHandleCtx|ikHandleDisplayScale|ikSolver|ikSplineHandleCtx|ikSystem|ikSystemInfo|ikfkDisplayMethod|illustratorCurves|image|imfPlugins|inheritTransform|insertJoint|insertJointCtx|insertKeyCtx|insertKnotCurve|insertKnotSurface|instance|instanceable|instancer|intField|intFieldGrp|intScrollBar|intSlider|intSliderGrp|interToUI|internalVar|intersect|iprEngine|isAnimCurve|isConnected|isDirty|isParentOf|isSameObject|isTrue|isValidObjectName|isValidString|isValidUiName|isolateSelect|itemFilter|itemFilterAttr|itemFilterRender|itemFilterType|joint|jointCluster|jointCtx|jointDisplayScale|jointLattice|keyTangent|keyframe|keyframeOutliner|keyframeRegionCurrentTimeCtx|keyframeRegionDirectKeyCtx|keyframeRegionDollyCtx|keyframeRegionInsertKeyCtx|keyframeRegionMoveKeyCtx|keyframeRegionScaleKeyCtx|keyframeRegionSelectKeyCtx|keyframeRegionSetKeyCtx|keyframeRegionTrackCtx|keyframeStats|lassoContext|lattice|latticeDeformKeyCtx|launch|launchImageEditor|layerButton|layeredShaderPort|layeredTexturePort|layout|layoutDialog|lightList|lightListEditor|lightListPanel|lightlink|lineIntersection|linearPrecision|linstep|listAnimatable|listAttr|listCameras|listConnections|listDeviceAttachments|listHistory|listInputDeviceAxes|listInputDeviceButtons|listInputDevices|listMenuAnnotation|listNodeTypes|listPanelCategories|listRelatives|listSets|listTransforms|listUnselected|listerEditor|loadFluid|loadNewShelf|loadPlugin|loadPluginLanguageResources|loadPrefObjects|localizedPanelLabel|lockNode|loft|log|longNameOf|lookThru|ls|lsThroughFilter|lsType|lsUI|mag|makeIdentity|makeLive|makePaintable|makeRoll|makeSingleSurface|makeTubeOn|makebot|manipMoveContext|manipMoveLimitsCtx|manipOptions|manipRotateContext|manipRotateLimitsCtx|manipScaleContext|manipScaleLimitsCtx|marker|match|max|memory|menu|menuBarLayout|menuEditor|menuItem|menuItemToShelf|menuSet|menuSetPref|messageLine|min|minimizeApp|mirrorJoint|modelCurrentTimeCtx|modelEditor|modelPanel|mouse|movIn|movOut|move|moveIKtoFK|moveKeyCtx|moveVertexAlongDirection|multiProfileBirailSurface|mute|nParticle|nameCommand|nameField|namespace|namespaceInfo|newPanelItems|newton|nodeCast|nodeIconButton|nodeOutliner|nodePreset|nodeType|noise|nonLinear|normalConstraint|normalize|nurbsBoolean|nurbsCopyUVSet|nurbsCube|nurbsEditUV|nurbsPlane|nurbsSelect|nurbsSquare|nurbsToPoly|nurbsToPolygonsPref|nurbsToSubdiv|nurbsToSubdivPref|nurbsUVSet|nurbsViewDirectionVector|objExists|objectCenter|objectLayer|objectType|objectTypeUI|obsoleteProc|oceanNurbsPreviewPlane|offsetCurve|offsetCurveOnSurface|offsetSurface|openGLExtension|openMayaPref|optionMenu|optionMenuGrp|optionVar|orbit|orbitCtx|orientConstraint|outlinerEditor|outlinerPanel|overrideModifier|paintEffectsDisplay|pairBlend|palettePort|paneLayout|panel|panelConfiguration|panelHistory|paramDimContext|paramDimension|paramLocator|parent|parentConstraint|particle|particleExists|particleInstancer|particleRenderInfo|partition|pasteKey|pathAnimation|pause|pclose|percent|performanceOptions|pfxstrokes|pickWalk|picture|pixelMove|planarSrf|plane|play|playbackOptions|playblast|plugAttr|plugNode|pluginInfo|pluginResourceUtil|pointConstraint|pointCurveConstraint|pointLight|pointMatrixMult|pointOnCurve|pointOnSurface|pointPosition|poleVectorConstraint|polyAppend|polyAppendFacetCtx|polyAppendVertex|polyAutoProjection|polyAverageNormal|polyAverageVertex|polyBevel|polyBlendColor|polyBlindData|polyBoolOp|polyBridgeEdge|polyCacheMonitor|polyCheck|polyChipOff|polyClipboard|polyCloseBorder|polyCollapseEdge|polyCollapseFacet|polyColorBlindData|polyColorDel|polyColorPerVertex|polyColorSet|polyCompare|polyCone|polyCopyUV|polyCrease|polyCreaseCtx|polyCreateFacet|polyCreateFacetCtx|polyCube|polyCut|polyCutCtx|polyCylinder|polyCylindricalProjection|polyDelEdge|polyDelFacet|polyDelVertex|polyDuplicateAndConnect|polyDuplicateEdge|polyEditUV|polyEditUVShell|polyEvaluate|polyExtrudeEdge|polyExtrudeFacet|polyExtrudeVertex|polyFlipEdge|polyFlipUV|polyForceUV|polyGeoSampler|polyHelix|polyInfo|polyInstallAction|polyLayoutUV|polyListComponentConversion|polyMapCut|polyMapDel|polyMapSew|polyMapSewMove|polyMergeEdge|polyMergeEdgeCtx|polyMergeFacet|polyMergeFacetCtx|polyMergeUV|polyMergeVertex|polyMirrorFace|polyMoveEdge|polyMoveFacet|polyMoveFacetUV|polyMoveUV|polyMoveVertex|polyNormal|polyNormalPerVertex|polyNormalizeUV|polyOptUvs|polyOptions|polyOutput|polyPipe|polyPlanarProjection|polyPlane|polyPlatonicSolid|polyPoke|polyPrimitive|polyPrism|polyProjection|polyPyramid|polyQuad|polyQueryBlindData|polyReduce|polySelect|polySelectConstraint|polySelectConstraintMonitor|polySelectCtx|polySelectEditCtx|polySeparate|polySetToFaceNormal|polySewEdge|polyShortestPathCtx|polySmooth|polySoftEdge|polySphere|polySphericalProjection|polySplit|polySplitCtx|polySplitEdge|polySplitRing|polySplitVertex|polyStraightenUVBorder|polySubdivideEdge|polySubdivideFacet|polyToSubdiv|polyTorus|polyTransfer|polyTriangulate|polyUVSet|polyUnite|polyWedgeFace|popen|popupMenu|pose|pow|preloadRefEd|print|progressBar|progressWindow|projFileViewer|projectCurve|projectTangent|projectionContext|projectionManip|promptDialog|propModCtx|propMove|psdChannelOutliner|psdEditTextureFile|psdExport|psdTextureFile|putenv|pwd|python|querySubdiv|quit|rad_to_deg|radial|radioButton|radioButtonGrp|radioCollection|radioMenuItemCollection|rampColorPort|rand|randomizeFollicles|randstate|rangeControl|readTake|rebuildCurve|rebuildSurface|recordAttr|recordDevice|redo|reference|referenceEdit|referenceQuery|refineSubdivSelectionList|refresh|refreshAE|registerPluginResource|rehash|reloadImage|removeJoint|removeMultiInstance|removePanelCategory|rename|renameAttr|renameSelectionList|renameUI|render|renderGlobalsNode|renderInfo|renderLayerButton|renderLayerParent|renderLayerPostProcess|renderLayerUnparent|renderManip|renderPartition|renderQualityNode|renderSettings|renderThumbnailUpdate|renderWindowEditor|renderWindowSelectContext|renderer|reorder|reorderDeformers|requires|reroot|resampleFluid|resetAE|resetPfxToPolyCamera|resetTool|resolutionNode|retarget|reverseCurve|reverseSurface|revolve|rgb_to_hsv|rigidBody|rigidSolver|roll|rollCtx|rootOf|rot|rotate|rotationInterpolation|roundConstantRadius|rowColumnLayout|rowLayout|runTimeCommand|runup|sampleImage|saveAllShelves|saveAttrPreset|saveFluid|saveImage|saveInitialState|saveMenu|savePrefObjects|savePrefs|saveShelf|saveToolSettings|scale|scaleBrushBrightness|scaleComponents|scaleConstraint|scaleKey|scaleKeyCtx|sceneEditor|sceneUIReplacement|scmh|scriptCtx|scriptEditorInfo|scriptJob|scriptNode|scriptTable|scriptToShelf|scriptedPanel|scriptedPanelType|scrollField|scrollLayout|sculpt|searchPathArray|seed|selLoadSettings|select|selectContext|selectCurveCV|selectKey|selectKeyCtx|selectKeyframeRegionCtx|selectMode|selectPref|selectPriority|selectType|selectedNodes|selectionConnection|separator|setAttr|setAttrEnumResource|setAttrMapping|setAttrNiceNameResource|setConstraintRestPosition|setDefaultShadingGroup|setDrivenKeyframe|setDynamic|setEditCtx|setEditor|setFluidAttr|setFocus|setInfinity|setInputDeviceMapping|setKeyCtx|setKeyPath|setKeyframe|setKeyframeBlendshapeTargetWts|setMenuMode|setNodeNiceNameResource|setNodeTypeFlag|setParent|setParticleAttr|setPfxToPolyCamera|setPluginResource|setProject|setStampDensity|setStartupMessage|setState|setToolTo|setUITemplate|setXformManip|sets|shadingConnection|shadingGeometryRelCtx|shadingLightRelCtx|shadingNetworkCompare|shadingNode|shapeCompare|shelfButton|shelfLayout|shelfTabLayout|shellField|shortNameOf|showHelp|showHidden|showManipCtx|showSelectionInTitle|showShadingGroupAttrEditor|showWindow|sign|simplify|sin|singleProfileBirailSurface|size|sizeBytes|skinCluster|skinPercent|smoothCurve|smoothTangentSurface|smoothstep|snap2to2|snapKey|snapMode|snapTogetherCtx|snapshot|soft|softMod|softModCtx|sort|sound|soundControl|source|spaceLocator|sphere|sphrand|spotLight|spotLightPreviewPort|spreadSheetEditor|spring|sqrt|squareSurface|srtContext|stackTrace|startString|startsWith|stitchAndExplodeShell|stitchSurface|stitchSurfacePoints|strcmp|stringArrayCatenate|stringArrayContains|stringArrayCount|stringArrayInsertAtIndex|stringArrayIntersector|stringArrayRemove|stringArrayRemoveAtIndex|stringArrayRemoveDuplicates|stringArrayRemoveExact|stringArrayToString|stringToStringArray|strip|stripPrefixFromName|stroke|subdAutoProjection|subdCleanTopology|subdCollapse|subdDuplicateAndConnect|subdEditUV|subdListComponentConversion|subdMapCut|subdMapSewMove|subdMatchTopology|subdMirror|subdToBlind|subdToPoly|subdTransferUVsToCache|subdiv|subdivCrease|subdivDisplaySmoothness|substitute|substituteAllString|substituteGeometry|substring|surface|surfaceSampler|surfaceShaderList|swatchDisplayPort|switchTable|symbolButton|symbolCheckBox|sysFile|system|tabLayout|tan|tangentConstraint|texLatticeDeformContext|texManipContext|texMoveContext|texMoveUVShellContext|texRotateContext|texScaleContext|texSelectContext|texSelectShortestPathCtx|texSmudgeUVContext|texWinToolCtx|text|textCurves|textField|textFieldButtonGrp|textFieldGrp|textManip|textScrollList|textToShelf|textureDisplacePlane|textureHairColor|texturePlacementContext|textureWindow|threadCount|threePointArcCtx|timeControl|timePort|timerX|toNativePath|toggle|toggleAxis|toggleWindowVisibility|tokenize|tokenizeList|tolerance|tolower|toolButton|toolCollection|toolDropped|toolHasOptions|toolPropertyWindow|torus|toupper|trace|track|trackCtx|transferAttributes|transformCompare|transformLimits|translator|trim|trunc|truncateFluidCache|truncateHairCache|tumble|tumbleCtx|turbulence|twoPointArcCtx|uiRes|uiTemplate|unassignInputDevice|undo|undoInfo|ungroup|uniform|unit|unloadPlugin|untangleUV|untitledFileName|untrim|upAxis|updateAE|userCtx|uvLink|uvSnapshot|validateShelfName|vectorize|view2dToolCtx|viewCamera|viewClipPlane|viewFit|viewHeadOn|viewLookAt|viewManip|viewPlace|viewSet|visor|volumeAxis|vortex|waitCursor|warning|webBrowser|webBrowserPrefs|whatIs|window|windowPref|wire|wireContext|workspace|wrinkle|wrinkleContext|writeTake|xbmLangPathList|xform)\b/,operator:[/\+[+=]?|-[-=]?|&&|\|\||[<>]=|[*\/!=]=?|[%^]/,{pattern:/(^|[^<])<(?!<)/,lookbehind:!0},{pattern:/(^|[^>])>(?!>)/,lookbehind:!0}],punctuation:/<<|>>|[.,:;?\[\](){}]/},d.languages.mel.code.inside.rest=d.languages.mel}},25153:function(J){"use strict";J.exports=C,C.displayName="mermaid",C.aliases=[];function C(d){d.languages.mermaid={comment:{pattern:/%%.*/,greedy:!0},style:{pattern:/^([ \t]*(?:classDef|linkStyle|style)[ \t]+[\w$-]+[ \t]+)\w.*[^\s;]/m,lookbehind:!0,inside:{property:/\b\w[\w-]*(?=[ \t]*:)/,operator:/:/,punctuation:/,/}},"inter-arrow-label":{pattern:/([^<>ox.=-])(?:-[-.]|==)(?![<>ox.=-])[ \t]*(?:"[^"\r\n]*"|[^\s".=-](?:[^\r\n.=-]*[^\s.=-])?)[ \t]*(?:\.+->?|--+[->]|==+[=>])(?![<>ox.=-])/,lookbehind:!0,greedy:!0,inside:{arrow:{pattern:/(?:\.+->?|--+[->]|==+[=>])$/,alias:"operator"},label:{pattern:/^([\s\S]{2}[ \t]*)\S(?:[\s\S]*\S)?/,lookbehind:!0,alias:"property"},"arrow-head":{pattern:/^\S+/,alias:["arrow","operator"]}}},arrow:[{pattern:/(^|[^{}|o.-])[|}][|o](?:--|\.\.)[|o][|{](?![{}|o.-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>ox.=-])(?:[<ox](?:==+|--+|-\.*-)[>ox]?|(?:==+|--+|-\.*-)[>ox]|===+|---+|-\.+-)(?![<>ox.=-])/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>()x-])(?:--?(?:>>|[x>)])(?![<>()x])|(?:<<|[x<(])--?(?!-))/,lookbehind:!0,alias:"operator"},{pattern:/(^|[^<>|*o.-])(?:[*o]--|--[*o]|<\|?(?:--|\.\.)|(?:--|\.\.)\|?>|--|\.\.)(?![<>|*o.-])/,lookbehind:!0,alias:"operator"}],label:{pattern:/(^|[^|<])\|(?:[^\r\n"|]|"[^"\r\n]*")+\|/,lookbehind:!0,greedy:!0,alias:"property"},text:{pattern:/(?:[(\[{]+|\b>)(?:[^\r\n"()\[\]{}]|"[^"\r\n]*")+(?:[)\]}]+|>)/,alias:"string"},string:{pattern:/"[^"\r\n]*"/,greedy:!0},annotation:{pattern:/<<(?:abstract|choice|enumeration|fork|interface|join|service)>>|\[\[(?:choice|fork|join)\]\]/i,alias:"important"},keyword:[{pattern:/(^[ \t]*)(?:action|callback|class|classDef|classDiagram|click|direction|erDiagram|flowchart|gantt|gitGraph|graph|journey|link|linkStyle|pie|requirementDiagram|sequenceDiagram|stateDiagram|stateDiagram-v2|style|subgraph)(?![\w$-])/m,lookbehind:!0,greedy:!0},{pattern:/(^[ \t]*)(?:activate|alt|and|as|autonumber|deactivate|else|end(?:[ \t]+note)?|loop|opt|par|participant|rect|state|note[ \t]+(?:over|(?:left|right)[ \t]+of))(?![\w$-])/im,lookbehind:!0,greedy:!0}],entity:/#[a-z0-9]+;/,operator:{pattern:/(\w[ \t]*)&(?=[ \t]*\w)|:::|:/,lookbehind:!0},punctuation:/[(){};]/}}},33245:function(J){"use strict";J.exports=C,C.displayName="mizar",C.aliases=[];function C(d){d.languages.mizar={comment:/::.+/,keyword:/@proof\b|\b(?:according|aggregate|all|and|antonym|are|as|associativity|assume|asymmetry|attr|be|begin|being|by|canceled|case|cases|clusters?|coherence|commutativity|compatibility|connectedness|consider|consistency|constructors|contradiction|correctness|def|deffunc|define|definitions?|defpred|do|does|end|environ|equals|ex|exactly|existence|for|from|func|given|hence|hereby|holds|idempotence|identity|iff?|implies|involutiveness|irreflexivity|is|it|let|means|mode|non|not|notations?|now|of|or|otherwise|over|per|pred|prefix|projectivity|proof|provided|qua|reconsider|redefine|reduce|reducibility|reflexivity|registrations?|requirements|reserve|sch|schemes?|section|selector|set|sethood|st|struct|such|suppose|symmetry|synonym|take|that|the|then|theorems?|thesis|thus|to|transitivity|uniqueness|vocabular(?:ies|y)|when|where|with|wrt)\b/,parameter:{pattern:/\$(?:10|\d)/,alias:"variable"},variable:/\b\w+(?=:)/,number:/(?:\b|-)\d+\b/,operator:/\.\.\.|->|&|\.?=/,punctuation:/\(#|#\)|[,:;\[\](){}]/}}},32218:function(J){"use strict";J.exports=C,C.displayName="mongodb",C.aliases=[];function C(d){(function(b){var I=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],L=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];I=I.map(function(V){return V.replace("$","\\$")});var B="(?:"+I.join("|")+")\\b";b.languages.mongodb=b.languages.extend("javascript",{}),b.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+B+"(?:\\1)?$")}}}),b.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},b.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+L.join("|")+")\\b"),alias:"keyword"}})})(d)}},65626:function(J){"use strict";J.exports=C,C.displayName="monkey",C.aliases=[];function C(d){d.languages.monkey={comment:{pattern:/^#Rem\s[\s\S]*?^#End|'.+/im,greedy:!0},string:{pattern:/"[^"\r\n]*"/,greedy:!0},preprocessor:{pattern:/(^[ \t]*)#.+/m,lookbehind:!0,greedy:!0,alias:"property"},function:/\b\w+(?=\()/,"type-char":{pattern:/\b[?%#$]/,alias:"class-name"},number:{pattern:/((?:\.\.)?)(?:(?:\b|\B-\.?|\B\.)\d+(?:(?!\.\.)\.\d*)?|\$[\da-f]+)/i,lookbehind:!0},keyword:/\b(?:Abstract|Array|Bool|Case|Catch|Class|Const|Continue|Default|Eachin|Else|ElseIf|End|EndIf|Exit|Extends|Extern|False|Field|Final|Float|For|Forever|Function|Global|If|Implements|Import|Inline|Int|Interface|Local|Method|Module|New|Next|Null|Object|Private|Property|Public|Repeat|Return|Select|Self|Step|Strict|String|Super|Then|Throw|To|True|Try|Until|Void|Wend|While)\b/i,operator:/\.\.|<[=>]?|>=?|:?=|(?:[+\-*\/&~|]|\b(?:Mod|Shl|Shr)\b)=?|\b(?:And|Not|Or)\b/i,punctuation:/[.,:;()\[\]]/}}},60090:function(J){"use strict";J.exports=C,C.displayName="moonscript",C.aliases=["moon"];function C(d){d.languages.moonscript={comment:/--.*/,string:[{pattern:/'[^']*'|\[(=*)\[[\s\S]*?\]\1\]/,greedy:!0},{pattern:/"[^"]*"/,greedy:!0,inside:{interpolation:{pattern:/#\{[^{}]*\}/,inside:{moonscript:{pattern:/(^#\{)[\s\S]+(?=\})/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/#\{|\}/,alias:"punctuation"}}}}}],"class-name":[{pattern:/(\b(?:class|extends)[ \t]+)\w+/,lookbehind:!0},/\b[A-Z]\w*/],keyword:/\b(?:class|continue|do|else|elseif|export|extends|for|from|if|import|in|local|nil|return|self|super|switch|then|unless|using|when|while|with)\b/,variable:/@@?\w*/,property:{pattern:/\b(?!\d)\w+(?=:)|(:)(?!\d)\w+/,lookbehind:!0},function:{pattern:/\b(?:_G|_VERSION|assert|collectgarbage|coroutine\.(?:create|resume|running|status|wrap|yield)|debug\.(?:debug|getfenv|gethook|getinfo|getlocal|getmetatable|getregistry|getupvalue|setfenv|sethook|setlocal|setmetatable|setupvalue|traceback)|dofile|error|getfenv|getmetatable|io\.(?:close|flush|input|lines|open|output|popen|read|stderr|stdin|stdout|tmpfile|type|write)|ipairs|load|loadfile|loadstring|math\.(?:abs|acos|asin|atan|atan2|ceil|cos|cosh|deg|exp|floor|fmod|frexp|ldexp|log|log10|max|min|modf|pi|pow|rad|random|randomseed|sin|sinh|sqrt|tan|tanh)|module|next|os\.(?:clock|date|difftime|execute|exit|getenv|remove|rename|setlocale|time|tmpname)|package\.(?:cpath|loaded|loadlib|path|preload|seeall)|pairs|pcall|print|rawequal|rawget|rawset|require|select|setfenv|setmetatable|string\.(?:byte|char|dump|find|format|gmatch|gsub|len|lower|match|rep|reverse|sub|upper)|table\.(?:concat|insert|maxn|remove|sort)|tonumber|tostring|type|unpack|xpcall)\b/,inside:{punctuation:/\./}},boolean:/\b(?:false|true)\b/,number:/(?:\B\.\d+|\b\d+\.\d+|\b\d+(?=[eE]))(?:[eE][-+]?\d+)?\b|\b(?:0x[a-fA-F\d]+|\d+)(?:U?LL)?\b/,operator:/\.{3}|[-=]>|~=|(?:[-+*/%<>!=]|\.\.)=?|[:#^]|\b(?:and|or)\b=?|\b(?:not)\b/,punctuation:/[.,()[\]{}\\]/},d.languages.moonscript.string[1].inside.interpolation.inside.moonscript.inside=d.languages.moonscript,d.languages.moon=d.languages.moonscript}},40722:function(J){"use strict";J.exports=C,C.displayName="n1ql",C.aliases=[];function C(d){d.languages.n1ql={comment:{pattern:/\/\*[\s\S]*?(?:$|\*\/)|--.*/,greedy:!0},string:{pattern:/(["'])(?:\\[\s\S]|(?!\1)[^\\]|\1\1)*\1/,greedy:!0},identifier:{pattern:/`(?:\\[\s\S]|[^\\`]|``)*`/,greedy:!0},parameter:/\$[\w.]+/,keyword:/\b(?:ADVISE|ALL|ALTER|ANALYZE|AS|ASC|AT|BEGIN|BINARY|BOOLEAN|BREAK|BUCKET|BUILD|BY|CALL|CAST|CLUSTER|COLLATE|COLLECTION|COMMIT|COMMITTED|CONNECT|CONTINUE|CORRELATE|CORRELATED|COVER|CREATE|CURRENT|DATABASE|DATASET|DATASTORE|DECLARE|DECREMENT|DELETE|DERIVED|DESC|DESCRIBE|DISTINCT|DO|DROP|EACH|ELEMENT|EXCEPT|EXCLUDE|EXECUTE|EXPLAIN|FETCH|FILTER|FLATTEN|FLUSH|FOLLOWING|FOR|FORCE|FROM|FTS|FUNCTION|GOLANG|GRANT|GROUP|GROUPS|GSI|HASH|HAVING|IF|IGNORE|ILIKE|INCLUDE|INCREMENT|INDEX|INFER|INLINE|INNER|INSERT|INTERSECT|INTO|IS|ISOLATION|JAVASCRIPT|JOIN|KEY|KEYS|KEYSPACE|KNOWN|LANGUAGE|LAST|LEFT|LET|LETTING|LEVEL|LIMIT|LSM|MAP|MAPPING|MATCHED|MATERIALIZED|MERGE|MINUS|MISSING|NAMESPACE|NEST|NL|NO|NTH_VALUE|NULL|NULLS|NUMBER|OBJECT|OFFSET|ON|OPTION|OPTIONS|ORDER|OTHERS|OUTER|OVER|PARSE|PARTITION|PASSWORD|PATH|POOL|PRECEDING|PREPARE|PRIMARY|PRIVATE|PRIVILEGE|PROBE|PROCEDURE|PUBLIC|RANGE|RAW|REALM|REDUCE|RENAME|RESPECT|RETURN|RETURNING|REVOKE|RIGHT|ROLE|ROLLBACK|ROW|ROWS|SATISFIES|SAVEPOINT|SCHEMA|SCOPE|SELECT|SELF|SEMI|SET|SHOW|SOME|START|STATISTICS|STRING|SYSTEM|TIES|TO|TRAN|TRANSACTION|TRIGGER|TRUNCATE|UNBOUNDED|UNDER|UNION|UNIQUE|UNKNOWN|UNNEST|UNSET|UPDATE|UPSERT|USE|USER|USING|VALIDATE|VALUE|VALUES|VIA|VIEW|WHERE|WHILE|WINDOW|WITH|WORK|XOR)\b/i,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:FALSE|TRUE)\b/i,number:/(?:\b\d+\.|\B\.)\d+e[+\-]?\d+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/%]|!=|==?|\|\||<[>=]?|>=?|\b(?:AND|ANY|ARRAY|BETWEEN|CASE|ELSE|END|EVERY|EXISTS|FIRST|IN|LIKE|NOT|OR|THEN|VALUED|WHEN|WITHIN)\b/i,punctuation:/[;[\](),.{}:]/}}},37783:function(J){"use strict";J.exports=C,C.displayName="n4js",C.aliases=["n4jsd"];function C(d){d.languages.n4js=d.languages.extend("javascript",{keyword:/\b(?:Array|any|boolean|break|case|catch|class|const|constructor|continue|debugger|declare|default|delete|do|else|enum|export|extends|false|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|module|new|null|number|package|private|protected|public|return|set|static|string|super|switch|this|throw|true|try|typeof|var|void|while|with|yield)\b/}),d.languages.insertBefore("n4js","constant",{annotation:{pattern:/@+\w+/,alias:"operator"}}),d.languages.n4jsd=d.languages.n4js}},41224:function(J){"use strict";J.exports=C,C.displayName="nand2tetrisHdl",C.aliases=[];function C(d){d.languages["nand2tetris-hdl"]={comment:/\/\/.*|\/\*[\s\S]*?(?:\*\/|$)/,keyword:/\b(?:BUILTIN|CHIP|CLOCKED|IN|OUT|PARTS)\b/,boolean:/\b(?:false|true)\b/,function:/\b[A-Za-z][A-Za-z0-9]*(?=\()/,number:/\b\d+\b/,operator:/=|\.\./,punctuation:/[{}[\];(),:]/}}},71365:function(J){"use strict";J.exports=C,C.displayName="naniscript",C.aliases=[];function C(d){(function(b){var I=/\{[^\r\n\[\]{}]*\}/,L={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:I,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};b.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:I,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:L}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:I,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:L},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},b.languages.nani=b.languages.naniscript,b.hooks.add("after-tokenize",function(Q){var M=Q.tokens;M.forEach(function(de){if(typeof de!="string"&&de.type==="generic-text"){var he=V(de);B(he)||(de.type="bad-line",de.content=he)}})});function B(Q){for(var M="[]{}",de=[],he=0;he<Q.length;he++){var re=Q[he],De=M.indexOf(re);if(De!==-1){if(De%2===0)de.push(De+1);else if(de.pop()!==De)return!1}}return de.length===0}function V(Q){return typeof Q=="string"?Q:Array.isArray(Q)?Q.map(V).join(""):V(Q.content)}})(d)}},42846:function(J){"use strict";J.exports=C,C.displayName="nasm",C.aliases=[];function C(d){d.languages.nasm={comment:/;.*$/m,string:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,label:{pattern:/(^\s*)[A-Za-z._?$][\w.?$@~#]*:/m,lookbehind:!0,alias:"function"},keyword:[/\[?BITS (?:16|32|64)\]?/,{pattern:/(^\s*)section\s*[a-z.]+:?/im,lookbehind:!0},/(?:extern|global)[^;\r\n]*/i,/(?:CPU|DEFAULT|FLOAT).*$/m],register:{pattern:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s)\b/i,alias:"variable"},number:/(?:\b|(?=\$))(?:0[hx](?:\.[\da-f]+|[\da-f]+(?:\.[\da-f]+)?)(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-\/%<>=&|$!]/}}},32964:function(J){"use strict";J.exports=C,C.displayName="neon",C.aliases=[];function C(d){d.languages.neon={comment:{pattern:/#.*/,greedy:!0},datetime:{pattern:/(^|[[{(=:,\s])\d\d\d\d-\d\d?-\d\d?(?:(?:[Tt]| +)\d\d?:\d\d:\d\d(?:\.\d*)? *(?:Z|[-+]\d\d?(?::?\d\d)?)?)?(?=$|[\]}),\s])/,lookbehind:!0,alias:"number"},key:{pattern:/(^|[[{(,\s])[^,:=[\]{}()'"\s]+(?=\s*:(?:$|[\]}),\s])|\s*=)/,lookbehind:!0,alias:"atrule"},number:{pattern:/(^|[[{(=:,\s])[+-]?(?:0x[\da-fA-F]+|0o[0-7]+|0b[01]+|(?:\d+(?:\.\d*)?|\.?\d+)(?:[eE][+-]?\d+)?)(?=$|[\]}),:=\s])/,lookbehind:!0},boolean:{pattern:/(^|[[{(=:,\s])(?:false|no|true|yes)(?=$|[\]}),:=\s])/i,lookbehind:!0},null:{pattern:/(^|[[{(=:,\s])(?:null)(?=$|[\]}),:=\s])/i,lookbehind:!0,alias:"keyword"},string:{pattern:/(^|[[{(=:,\s])(?:('''|""")\r?\n(?:(?:[^\r\n]|\r?\n(?![\t ]*\2))*\r?\n)?[\t ]*\2|'[^'\r\n]*'|"(?:\\.|[^\\"\r\n])*")/,lookbehind:!0,greedy:!0},literal:{pattern:/(^|[[{(=:,\s])(?:[^#"',:=[\]{}()\s`-]|[:-][^"',=[\]{}()\s])(?:[^,:=\]})(\s]|:(?![\s,\]})]|$)|[ \t]+[^#,:=\]})(\s])*/,lookbehind:!0,alias:"string"},punctuation:/[,:=[\]{}()-]/}}},78830:function(J){"use strict";J.exports=C,C.displayName="nevod",C.aliases=[];function C(d){d.languages.nevod={comment:/\/\/.*|(?:\/\*[\s\S]*?(?:\*\/|$))/,string:{pattern:/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))!?\*?/,greedy:!0,inside:{"string-attrs":/!$|!\*$|\*$/}},namespace:{pattern:/(@namespace\s+)[a-zA-Z0-9\-.]+(?=\s*\{)/,lookbehind:!0},pattern:{pattern:/(@pattern\s+)?#?[a-zA-Z0-9\-.]+(?:\s*\(\s*(?:~\s*)?[a-zA-Z0-9\-.]+\s*(?:,\s*(?:~\s*)?[a-zA-Z0-9\-.]*)*\))?(?=\s*=)/,lookbehind:!0,inside:{"pattern-name":{pattern:/^#?[a-zA-Z0-9\-.]+/,alias:"class-name"},fields:{pattern:/\(.*\)/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},punctuation:/[,()]/,operator:{pattern:/~/,alias:"field-hidden-mark"}}}}},search:{pattern:/(@search\s+|#)[a-zA-Z0-9\-.]+(?:\.\*)?(?=\s*;)/,alias:"function",lookbehind:!0},keyword:/@(?:having|inside|namespace|outside|pattern|require|search|where)\b/,"standard-pattern":{pattern:/\b(?:Alpha|AlphaNum|Any|Blank|End|LineBreak|Num|NumAlpha|Punct|Space|Start|Symbol|Word|WordBreak)\b(?:\([a-zA-Z0-9\-.,\s+]*\))?/,inside:{"standard-pattern-name":{pattern:/^[a-zA-Z0-9\-.]+/,alias:"builtin"},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},"standard-pattern-attr":{pattern:/[a-zA-Z0-9\-.]+/,alias:"builtin"},punctuation:/[,()]/}},quantifier:{pattern:/\b\d+(?:\s*\+|\s*-\s*\d+)?(?!\w)/,alias:"number"},operator:[{pattern:/=/,alias:"pattern-def"},{pattern:/&/,alias:"conjunction"},{pattern:/~/,alias:"exception"},{pattern:/\?/,alias:"optionality"},{pattern:/[[\]]/,alias:"repetition"},{pattern:/[{}]/,alias:"variation"},{pattern:/[+_]/,alias:"sequence"},{pattern:/\.{2,3}/,alias:"span"}],"field-capture":[{pattern:/([a-zA-Z0-9\-.]+\s*\()\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+(?:\s*,\s*[a-zA-Z0-9\-.]+\s*:\s*[a-zA-Z0-9\-.]+)*(?=\s*\))/,lookbehind:!0,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}},{pattern:/[a-zA-Z0-9\-.]+\s*:/,inside:{"field-name":{pattern:/[a-zA-Z0-9\-.]+/,alias:"variable"},colon:/:/}}],punctuation:/[:;,()]/,name:/[a-zA-Z0-9\-.]+/}}},88799:function(J){"use strict";J.exports=C,C.displayName="nginx",C.aliases=[];function C(d){(function(b){var I=/\$(?:\w[a-z\d]*(?:_[^\x00-\x1F\s"'\\()$]*)?|\{[^}\s"'\\]+\})/i;b.languages.nginx={comment:{pattern:/(^|[\s{};])#.*/,lookbehind:!0,greedy:!0},directive:{pattern:/(^|\s)\w(?:[^;{}"'\\\s]|\\.|"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*'|\s+(?:#.*(?!.)|(?![#\s])))*?(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:{string:{pattern:/((?:^|[^\\])(?:\\\\)*)(?:"(?:[^"\\]|\\.)*"|'(?:[^'\\]|\\.)*')/,lookbehind:!0,greedy:!0,inside:{escape:{pattern:/\\["'\\nrt]/,alias:"entity"},variable:I}},comment:{pattern:/(\s)#.*/,lookbehind:!0,greedy:!0},keyword:{pattern:/^\S+/,greedy:!0},boolean:{pattern:/(\s)(?:off|on)(?!\S)/,lookbehind:!0},number:{pattern:/(\s)\d+[a-z]*(?!\S)/i,lookbehind:!0},variable:I}},punctuation:/[{};]/}})(d)}},66791:function(J){"use strict";J.exports=C,C.displayName="nim",C.aliases=[];function C(d){d.languages.nim={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/(?:\b(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+)?(?:"""[\s\S]*?"""(?!")|"(?:\\[\s\S]|""|[^"\\])*")/,greedy:!0},char:{pattern:/'(?:\\(?:\d+|x[\da-fA-F]{0,2}|.)|[^'])'/,greedy:!0},function:{pattern:/(?:(?!\d)(?:\w|\\x[89a-fA-F][0-9a-fA-F])+|`[^`\r\n]+`)\*?(?:\[[^\]]+\])?(?=\s*\()/,greedy:!0,inside:{operator:/\*$/}},identifier:{pattern:/`[^`\r\n]+`/,greedy:!0,inside:{punctuation:/`/}},number:/\b(?:0[xXoObB][\da-fA-F_]+|\d[\d_]*(?:(?!\.\.)\.[\d_]*)?(?:[eE][+-]?\d[\d_]*)?)(?:'?[iuf]\d*)?/,keyword:/\b(?:addr|as|asm|atomic|bind|block|break|case|cast|concept|const|continue|converter|defer|discard|distinct|do|elif|else|end|enum|except|export|finally|for|from|func|generic|if|import|include|interface|iterator|let|macro|method|mixin|nil|object|out|proc|ptr|raise|ref|return|static|template|try|tuple|type|using|var|when|while|with|without|yield)\b/,operator:{pattern:/(^|[({\[](?=\.\.)|(?![({\[]\.).)(?:(?:[=+\-*\/<>@$~&%|!?^:\\]|\.\.|\.(?![)}\]]))+|\b(?:and|div|in|is|isnot|mod|not|notin|of|or|shl|shr|xor)\b)/m,lookbehind:!0},punctuation:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}},41735:function(J){"use strict";J.exports=C,C.displayName="nix",C.aliases=[];function C(d){d.languages.nix={comment:{pattern:/\/\*[\s\S]*?\*\/|#.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"|''(?:(?!'')[\s\S]|''(?:'|\\|\$\{))*''/,greedy:!0,inside:{interpolation:{pattern:/(^|(?:^|(?!'').)[^\\])\$\{(?:[^{}]|\{[^}]*\})*\}/,lookbehind:!0,inside:null}}},url:[/\b(?:[a-z]{3,7}:\/\/)[\w\-+%~\/.:#=?&]+/,{pattern:/([^\/])(?:[\w\-+%~.:#=?&]*(?!\/\/)[\w\-+%~\/.:#=?&])?(?!\/\/)\/[\w\-+%~\/.:#=?&]*/,lookbehind:!0}],antiquotation:{pattern:/\$(?=\{)/,alias:"important"},number:/\b\d+\b/,keyword:/\b(?:assert|builtins|else|if|in|inherit|let|null|or|then|with)\b/,function:/\b(?:abort|add|all|any|attrNames|attrValues|baseNameOf|compareVersions|concatLists|currentSystem|deepSeq|derivation|dirOf|div|elem(?:At)?|fetch(?:Tarball|url)|filter(?:Source)?|fromJSON|genList|getAttr|getEnv|hasAttr|hashString|head|import|intersectAttrs|is(?:Attrs|Bool|Function|Int|List|Null|String)|length|lessThan|listToAttrs|map|mul|parseDrvName|pathExists|read(?:Dir|File)|removeAttrs|replaceStrings|seq|sort|stringLength|sub(?:string)?|tail|throw|to(?:File|JSON|Path|String|XML)|trace|typeOf)\b|\bfoldl'\B/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|\+\+?|\|\||&&|\/\/|->?|[?@]/,punctuation:/[{}()[\].,:;]/},d.languages.nix.string.inside.interpolation.inside=d.languages.nix}},13490:function(J){"use strict";J.exports=C,C.displayName="nsis",C.aliases=[];function C(d){d.languages.nsis={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|[#;].*)/,lookbehind:!0,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:{pattern:/(^[\t ]*)(?:Abort|Add(?:BrandingImage|Size)|AdvSplash|Allow(?:RootDirInstall|SkipFiles)|AutoCloseWindow|BG(?:Font|Gradient|Image)|Banner|BrandingText|BringToFront|CRCCheck|Call(?:InstDLL)?|Caption|ChangeUI|CheckBitmap|ClearErrors|CompletedText|ComponentText|CopyFiles|Create(?:Directory|Font|ShortCut)|Delete(?:INISec|INIStr|RegKey|RegValue)?|Detail(?:Print|sButtonText)|Dialer|Dir(?:Text|Var|Verify)|EnableWindow|Enum(?:RegKey|RegValue)|Exch|Exec(?:Shell(?:Wait)?|Wait)?|ExpandEnvStrings|File(?:BufSize|Close|ErrorText|Open|Read|ReadByte|ReadUTF16LE|ReadWord|Seek|Write|WriteByte|WriteUTF16LE|WriteWord)?|Find(?:Close|First|Next|Window)|FlushINI|Get(?:CurInstType|CurrentAddress|DLLVersion(?:Local)?|DlgItem|ErrorLevel|FileTime(?:Local)?|FullPathName|Function(?:Address|End)?|InstDirError|LabelAddress|TempFileName)|Goto|HideWindow|Icon|If(?:Abort|Errors|FileExists|RebootFlag|Silent)|InitPluginsDir|InstProgressFlags|Inst(?:Type(?:GetText|SetText)?)|Install(?:ButtonText|Colors|Dir(?:RegKey)?)|Int(?:64|Ptr)?CmpU?|Int(?:64)?Fmt|Int(?:Ptr)?Op|IsWindow|Lang(?:DLL|String)|License(?:BkColor|Data|ForceSelection|LangString|Text)|LoadLanguageFile|LockWindow|Log(?:Set|Text)|Manifest(?:DPIAware|SupportedOS)|Math|MessageBox|MiscButtonText|NSISdl|Name|Nop|OutFile|PE(?:DllCharacteristics|SubsysVer)|Page(?:Callbacks)?|Pop|Push|Quit|RMDir|Read(?:EnvStr|INIStr|RegDWORD|RegStr)|Reboot|RegDLL|Rename|RequestExecutionLevel|ReserveFile|Return|SearchPath|Section(?:End|GetFlags|GetInstTypes|GetSize|GetText|Group|In|SetFlags|SetInstTypes|SetSize|SetText)?|SendMessage|Set(?:AutoClose|BrandingImage|Compress|Compressor(?:DictSize)?|CtlColors|CurInstType|DatablockOptimize|DateSave|Details(?:Print|View)|ErrorLevel|Errors|FileAttributes|Font|OutPath|Overwrite|PluginUnload|RebootFlag|RegView|ShellVarContext|Silent)|Show(?:InstDetails|UninstDetails|Window)|Silent(?:Install|UnInstall)|Sleep|SpaceTexts|Splash|StartMenu|Str(?:CmpS?|Cpy|Len)|SubCaption|System|UnRegDLL|Unicode|UninstPage|Uninstall(?:ButtonText|Caption|Icon|SubCaption|Text)|UserInfo|VI(?:AddVersionKey|FileVersion|ProductVersion)|VPatch|Var|WindowIcon|Write(?:INIStr|Reg(?:Bin|DWORD|ExpandStr|MultiStr|None|Str)|Uninstaller)|XPStyle|ns(?:Dialogs|Exec))\b/m,lookbehind:!0},property:/\b(?:ARCHIVE|FILE_(?:ATTRIBUTE_ARCHIVE|ATTRIBUTE_NORMAL|ATTRIBUTE_OFFLINE|ATTRIBUTE_READONLY|ATTRIBUTE_SYSTEM|ATTRIBUTE_TEMPORARY)|HK(?:(?:CR|CU|LM)(?:32|64)?|DD|PD|U)|HKEY_(?:CLASSES_ROOT|CURRENT_CONFIG|CURRENT_USER|DYN_DATA|LOCAL_MACHINE|PERFORMANCE_DATA|USERS)|ID(?:ABORT|CANCEL|IGNORE|NO|OK|RETRY|YES)|MB_(?:ABORTRETRYIGNORE|DEFBUTTON1|DEFBUTTON2|DEFBUTTON3|DEFBUTTON4|ICONEXCLAMATION|ICONINFORMATION|ICONQUESTION|ICONSTOP|OK|OKCANCEL|RETRYCANCEL|RIGHT|RTLREADING|SETFOREGROUND|TOPMOST|USERICON|YESNO)|NORMAL|OFFLINE|READONLY|SHCTX|SHELL_CONTEXT|SYSTEM|TEMPORARY|admin|all|auto|both|colored|false|force|hide|highest|lastused|leave|listonly|none|normal|notset|off|on|open|print|show|silent|silentlog|smooth|textonly|true|user)\b/,constant:/\$\{[!\w\.:\^-]+\}|\$\([!\w\.:\^-]+\)/,variable:/\$\w[\w\.]*/,number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--?|\+\+?|<=?|>=?|==?=?|&&?|\|\|?|[?*\/~^%]/,punctuation:/[{}[\];(),.:]/,important:{pattern:/(^[\t ]*)!(?:addincludedir|addplugindir|appendfile|cd|define|delfile|echo|else|endif|error|execute|finalize|getdllversion|gettlbversion|if|ifdef|ifmacrodef|ifmacrondef|ifndef|include|insertmacro|macro|macroend|makensis|packhdr|pragma|searchparse|searchreplace|system|tempfile|undef|verbose|warning)\b/im,lookbehind:!0}}}},7383:function(J,C,d){"use strict";var b=d(79440);J.exports=I,I.displayName="objectivec",I.aliases=["objc"];function I(L){L.register(b),L.languages.objectivec=L.languages.extend("c",{string:{pattern:/@?"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:asm|auto|break|case|char|const|continue|default|do|double|else|enum|extern|float|for|goto|if|in|inline|int|long|register|return|self|short|signed|sizeof|static|struct|super|switch|typedef|typeof|union|unsigned|void|volatile|while)\b|(?:@interface|@end|@implementation|@protocol|@class|@public|@protected|@private|@property|@try|@catch|@finally|@throw|@synthesize|@dynamic|@selector)\b/,operator:/-[->]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete L.languages.objectivec["class-name"],L.languages.objc=L.languages.objectivec}},66894:function(J){"use strict";J.exports=C,C.displayName="ocaml",C.aliases=[];function C(d){d.languages.ocaml={comment:{pattern:/\(\*[\s\S]*?\*\)/,greedy:!0},char:{pattern:/'(?:[^\\\r\n']|\\(?:.|[ox]?[0-9a-f]{1,3}))'/i,greedy:!0},string:[{pattern:/"(?:\\(?:[\s\S]|\r\n)|[^\\\r\n"])*"/,greedy:!0},{pattern:/\{([a-z_]*)\|[\s\S]*?\|\1\}/,greedy:!0}],number:[/\b(?:0b[01][01_]*|0o[0-7][0-7_]*)\b/i,/\b0x[a-f0-9][a-f0-9_]*(?:\.[a-f0-9_]*)?(?:p[+-]?\d[\d_]*)?(?!\w)/i,/\b\d[\d_]*(?:\.[\d_]*)?(?:e[+-]?\d[\d_]*)?(?!\w)/i],directive:{pattern:/\B#\w+/,alias:"property"},label:{pattern:/\B~\w+/,alias:"property"},"type-variable":{pattern:/\B'\w+/,alias:"function"},variant:{pattern:/`\w+/,alias:"symbol"},keyword:/\b(?:as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|match|method|module|mutable|new|nonrec|object|of|open|private|rec|sig|struct|then|to|try|type|val|value|virtual|when|where|while|with)\b/,boolean:/\b(?:false|true)\b/,"operator-like-punctuation":{pattern:/\[[<>|]|[>|]\]|\{<|>\}/,alias:"punctuation"},operator:/\.[.~]|:[=>]|[=<>@^|&+\-*\/$%!?~][!$%&*+\-.\/:<=>?@^|~]*|\b(?:and|asr|land|lor|lsl|lsr|lxor|mod|or)\b/,punctuation:/;;|::|[(){}\[\].,:;#]|\b_\b/}}},45779:function(J,C,d){"use strict";var b=d(79440);J.exports=I,I.displayName="opencl",I.aliases=[];function I(L){L.register(b),function(B){B.languages.opencl=B.languages.extend("c",{keyword:/\b(?:(?:__)?(?:constant|global|kernel|local|private|read_only|read_write|write_only)|__attribute__|auto|(?:bool|u?(?:char|int|long|short)|half|quad)(?:2|3|4|8|16)?|break|case|complex|const|continue|(?:double|float)(?:16(?:x(?:1|2|4|8|16))?|1x(?:1|2|4|8|16)|2(?:x(?:1|2|4|8|16))?|3|4(?:x(?:1|2|4|8|16))?|8(?:x(?:1|2|4|8|16))?)?|default|do|else|enum|extern|for|goto|if|imaginary|inline|packed|pipe|register|restrict|return|signed|sizeof|static|struct|switch|typedef|uniform|union|unsigned|void|volatile|while)\b/,number:/(?:\b0x(?:[\da-f]+(?:\.[\da-f]*)?|\.[\da-f]+)(?:p[+-]?\d+)?|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)[fuhl]{0,4}/i,boolean:/\b(?:false|true)\b/,"constant-opencl-kernel":{pattern:/\b(?:CHAR_(?:BIT|MAX|MIN)|CLK_(?:ADDRESS_(?:CLAMP(?:_TO_EDGE)?|NONE|REPEAT)|FILTER_(?:LINEAR|NEAREST)|(?:GLOBAL|LOCAL)_MEM_FENCE|NORMALIZED_COORDS_(?:FALSE|TRUE))|CL_(?:BGRA|(?:HALF_)?FLOAT|INTENSITY|LUMINANCE|A?R?G?B?[Ax]?|(?:(?:UN)?SIGNED|[US]NORM)_(?:INT(?:8|16|32))|UNORM_(?:INT_101010|SHORT_(?:555|565)))|(?:DBL|FLT|HALF)_(?:DIG|EPSILON|(?:MAX|MIN)(?:(?:_10)?_EXP)?|MANT_DIG)|FLT_RADIX|HUGE_VALF?|(?:INT|LONG|SCHAR|SHRT)_(?:MAX|MIN)|INFINITY|MAXFLOAT|M_(?:[12]_PI|2_SQRTPI|E|LN(?:2|10)|LOG(?:2|10)E?|PI(?:_[24])?|SQRT(?:1_2|2))(?:_F|_H)?|NAN|(?:UCHAR|UINT|ULONG|USHRT)_MAX)\b/,alias:"constant"}}),B.languages.insertBefore("opencl","class-name",{"builtin-type":{pattern:/\b(?:_cl_(?:command_queue|context|device_id|event|kernel|mem|platform_id|program|sampler)|cl_(?:image_format|mem_fence_flags)|clk_event_t|event_t|image(?:1d_(?:array_|buffer_)?t|2d_(?:array_(?:depth_|msaa_depth_|msaa_)?|depth_|msaa_depth_|msaa_)?t|3d_t)|intptr_t|ndrange_t|ptrdiff_t|queue_t|reserve_id_t|sampler_t|size_t|uintptr_t)\b/,alias:"keyword"}});var V={"type-opencl-host":{pattern:/\b(?:cl_(?:GLenum|GLint|GLuin|addressing_mode|bitfield|bool|buffer_create_type|build_status|channel_(?:order|type)|(?:u?(?:char|int|long|short)|double|float)(?:2|3|4|8|16)?|command_(?:queue(?:_info|_properties)?|type)|context(?:_info|_properties)?|device_(?:exec_capabilities|fp_config|id|info|local_mem_type|mem_cache_type|type)|(?:event|sampler)(?:_info)?|filter_mode|half|image_info|kernel(?:_info|_work_group_info)?|map_flags|mem(?:_flags|_info|_object_type)?|platform_(?:id|info)|profiling_info|program(?:_build_info|_info)?))\b/,alias:"keyword"},"boolean-opencl-host":{pattern:/\bCL_(?:FALSE|TRUE)\b/,alias:"boolean"},"constant-opencl-host":{pattern:/\bCL_(?:A|ABGR|ADDRESS_(?:CLAMP(?:_TO_EDGE)?|MIRRORED_REPEAT|NONE|REPEAT)|ARGB|BGRA|BLOCKING|BUFFER_CREATE_TYPE_REGION|BUILD_(?:ERROR|IN_PROGRESS|NONE|PROGRAM_FAILURE|SUCCESS)|COMMAND_(?:ACQUIRE_GL_OBJECTS|BARRIER|COPY_(?:BUFFER(?:_RECT|_TO_IMAGE)?|IMAGE(?:_TO_BUFFER)?)|FILL_(?:BUFFER|IMAGE)|MAP(?:_BUFFER|_IMAGE)|MARKER|MIGRATE(?:_SVM)?_MEM_OBJECTS|NATIVE_KERNEL|NDRANGE_KERNEL|READ_(?:BUFFER(?:_RECT)?|IMAGE)|RELEASE_GL_OBJECTS|SVM_(?:FREE|MAP|MEMCPY|MEMFILL|UNMAP)|TASK|UNMAP_MEM_OBJECT|USER|WRITE_(?:BUFFER(?:_RECT)?|IMAGE))|COMPILER_NOT_AVAILABLE|COMPILE_PROGRAM_FAILURE|COMPLETE|CONTEXT_(?:DEVICES|INTEROP_USER_SYNC|NUM_DEVICES|PLATFORM|PROPERTIES|REFERENCE_COUNT)|DEPTH(?:_STENCIL)?|DEVICE_(?:ADDRESS_BITS|AFFINITY_DOMAIN_(?:L[1-4]_CACHE|NEXT_PARTITIONABLE|NUMA)|AVAILABLE|BUILT_IN_KERNELS|COMPILER_AVAILABLE|DOUBLE_FP_CONFIG|ENDIAN_LITTLE|ERROR_CORRECTION_SUPPORT|EXECUTION_CAPABILITIES|EXTENSIONS|GLOBAL_(?:MEM_(?:CACHELINE_SIZE|CACHE_SIZE|CACHE_TYPE|SIZE)|VARIABLE_PREFERRED_TOTAL_SIZE)|HOST_UNIFIED_MEMORY|IL_VERSION|IMAGE(?:2D_MAX_(?:HEIGHT|WIDTH)|3D_MAX_(?:DEPTH|HEIGHT|WIDTH)|_BASE_ADDRESS_ALIGNMENT|_MAX_ARRAY_SIZE|_MAX_BUFFER_SIZE|_PITCH_ALIGNMENT|_SUPPORT)|LINKER_AVAILABLE|LOCAL_MEM_SIZE|LOCAL_MEM_TYPE|MAX_(?:CLOCK_FREQUENCY|COMPUTE_UNITS|CONSTANT_ARGS|CONSTANT_BUFFER_SIZE|GLOBAL_VARIABLE_SIZE|MEM_ALLOC_SIZE|NUM_SUB_GROUPS|ON_DEVICE_(?:EVENTS|QUEUES)|PARAMETER_SIZE|PIPE_ARGS|READ_IMAGE_ARGS|READ_WRITE_IMAGE_ARGS|SAMPLERS|WORK_GROUP_SIZE|WORK_ITEM_DIMENSIONS|WORK_ITEM_SIZES|WRITE_IMAGE_ARGS)|MEM_BASE_ADDR_ALIGN|MIN_DATA_TYPE_ALIGN_SIZE|NAME|NATIVE_VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT)|NOT_(?:AVAILABLE|FOUND)|OPENCL_C_VERSION|PARENT_DEVICE|PARTITION_(?:AFFINITY_DOMAIN|BY_AFFINITY_DOMAIN|BY_COUNTS|BY_COUNTS_LIST_END|EQUALLY|FAILED|MAX_SUB_DEVICES|PROPERTIES|TYPE)|PIPE_MAX_(?:ACTIVE_RESERVATIONS|PACKET_SIZE)|PLATFORM|PREFERRED_(?:GLOBAL_ATOMIC_ALIGNMENT|INTEROP_USER_SYNC|LOCAL_ATOMIC_ALIGNMENT|PLATFORM_ATOMIC_ALIGNMENT|VECTOR_WIDTH_(?:CHAR|DOUBLE|FLOAT|HALF|INT|LONG|SHORT))|PRINTF_BUFFER_SIZE|PROFILE|PROFILING_TIMER_RESOLUTION|QUEUE_(?:ON_(?:DEVICE_(?:MAX_SIZE|PREFERRED_SIZE|PROPERTIES)|HOST_PROPERTIES)|PROPERTIES)|REFERENCE_COUNT|SINGLE_FP_CONFIG|SUB_GROUP_INDEPENDENT_FORWARD_PROGRESS|SVM_(?:ATOMICS|CAPABILITIES|COARSE_GRAIN_BUFFER|FINE_GRAIN_BUFFER|FINE_GRAIN_SYSTEM)|TYPE(?:_ACCELERATOR|_ALL|_CPU|_CUSTOM|_DEFAULT|_GPU)?|VENDOR(?:_ID)?|VERSION)|DRIVER_VERSION|EVENT_(?:COMMAND_(?:EXECUTION_STATUS|QUEUE|TYPE)|CONTEXT|REFERENCE_COUNT)|EXEC_(?:KERNEL|NATIVE_KERNEL|STATUS_ERROR_FOR_EVENTS_IN_WAIT_LIST)|FILTER_(?:LINEAR|NEAREST)|FLOAT|FP_(?:CORRECTLY_ROUNDED_DIVIDE_SQRT|DENORM|FMA|INF_NAN|ROUND_TO_INF|ROUND_TO_NEAREST|ROUND_TO_ZERO|SOFT_FLOAT)|GLOBAL|HALF_FLOAT|IMAGE_(?:ARRAY_SIZE|BUFFER|DEPTH|ELEMENT_SIZE|FORMAT|FORMAT_MISMATCH|FORMAT_NOT_SUPPORTED|HEIGHT|NUM_MIP_LEVELS|NUM_SAMPLES|ROW_PITCH|SLICE_PITCH|WIDTH)|INTENSITY|INVALID_(?:ARG_INDEX|ARG_SIZE|ARG_VALUE|BINARY|BUFFER_SIZE|BUILD_OPTIONS|COMMAND_QUEUE|COMPILER_OPTIONS|CONTEXT|DEVICE|DEVICE_PARTITION_COUNT|DEVICE_QUEUE|DEVICE_TYPE|EVENT|EVENT_WAIT_LIST|GLOBAL_OFFSET|GLOBAL_WORK_SIZE|GL_OBJECT|HOST_PTR|IMAGE_DESCRIPTOR|IMAGE_FORMAT_DESCRIPTOR|IMAGE_SIZE|KERNEL|KERNEL_ARGS|KERNEL_DEFINITION|KERNEL_NAME|LINKER_OPTIONS|MEM_OBJECT|MIP_LEVEL|OPERATION|PIPE_SIZE|PLATFORM|PROGRAM|PROGRAM_EXECUTABLE|PROPERTY|QUEUE_PROPERTIES|SAMPLER|VALUE|WORK_DIMENSION|WORK_GROUP_SIZE|WORK_ITEM_SIZE)|KERNEL_(?:ARG_(?:ACCESS_(?:NONE|QUALIFIER|READ_ONLY|READ_WRITE|WRITE_ONLY)|ADDRESS_(?:CONSTANT|GLOBAL|LOCAL|PRIVATE|QUALIFIER)|INFO_NOT_AVAILABLE|NAME|TYPE_(?:CONST|NAME|NONE|PIPE|QUALIFIER|RESTRICT|VOLATILE))|ATTRIBUTES|COMPILE_NUM_SUB_GROUPS|COMPILE_WORK_GROUP_SIZE|CONTEXT|EXEC_INFO_SVM_FINE_GRAIN_SYSTEM|EXEC_INFO_SVM_PTRS|FUNCTION_NAME|GLOBAL_WORK_SIZE|LOCAL_MEM_SIZE|LOCAL_SIZE_FOR_SUB_GROUP_COUNT|MAX_NUM_SUB_GROUPS|MAX_SUB_GROUP_SIZE_FOR_NDRANGE|NUM_ARGS|PREFERRED_WORK_GROUP_SIZE_MULTIPLE|PRIVATE_MEM_SIZE|PROGRAM|REFERENCE_COUNT|SUB_GROUP_COUNT_FOR_NDRANGE|WORK_GROUP_SIZE)|LINKER_NOT_AVAILABLE|LINK_PROGRAM_FAILURE|LOCAL|LUMINANCE|MAP_(?:FAILURE|READ|WRITE|WRITE_INVALIDATE_REGION)|MEM_(?:ALLOC_HOST_PTR|ASSOCIATED_MEMOBJECT|CONTEXT|COPY_HOST_PTR|COPY_OVERLAP|FLAGS|HOST_NO_ACCESS|HOST_PTR|HOST_READ_ONLY|HOST_WRITE_ONLY|KERNEL_READ_AND_WRITE|MAP_COUNT|OBJECT_(?:ALLOCATION_FAILURE|BUFFER|IMAGE1D|IMAGE1D_ARRAY|IMAGE1D_BUFFER|IMAGE2D|IMAGE2D_ARRAY|IMAGE3D|PIPE)|OFFSET|READ_ONLY|READ_WRITE|REFERENCE_COUNT|SIZE|SVM_ATOMICS|SVM_FINE_GRAIN_BUFFER|TYPE|USES_SVM_POINTER|USE_HOST_PTR|WRITE_ONLY)|MIGRATE_MEM_OBJECT_(?:CONTENT_UNDEFINED|HOST)|MISALIGNED_SUB_BUFFER_OFFSET|NONE|NON_BLOCKING|OUT_OF_(?:HOST_MEMORY|RESOURCES)|PIPE_(?:MAX_PACKETS|PACKET_SIZE)|PLATFORM_(?:EXTENSIONS|HOST_TIMER_RESOLUTION|NAME|PROFILE|VENDOR|VERSION)|PROFILING_(?:COMMAND_(?:COMPLETE|END|QUEUED|START|SUBMIT)|INFO_NOT_AVAILABLE)|PROGRAM_(?:BINARIES|BINARY_SIZES|BINARY_TYPE(?:_COMPILED_OBJECT|_EXECUTABLE|_LIBRARY|_NONE)?|BUILD_(?:GLOBAL_VARIABLE_TOTAL_SIZE|LOG|OPTIONS|STATUS)|CONTEXT|DEVICES|IL|KERNEL_NAMES|NUM_DEVICES|NUM_KERNELS|REFERENCE_COUNT|SOURCE)|QUEUED|QUEUE_(?:CONTEXT|DEVICE|DEVICE_DEFAULT|ON_DEVICE|ON_DEVICE_DEFAULT|OUT_OF_ORDER_EXEC_MODE_ENABLE|PROFILING_ENABLE|PROPERTIES|REFERENCE_COUNT|SIZE)|R|RA|READ_(?:ONLY|WRITE)_CACHE|RG|RGB|RGBA|RGBx|RGx|RUNNING|Rx|SAMPLER_(?:ADDRESSING_MODE|CONTEXT|FILTER_MODE|LOD_MAX|LOD_MIN|MIP_FILTER_MODE|NORMALIZED_COORDS|REFERENCE_COUNT)|(?:UN)?SIGNED_INT(?:8|16|32)|SNORM_INT(?:8|16)|SUBMITTED|SUCCESS|UNORM_INT(?:8|16|24|_101010|_101010_2)|UNORM_SHORT_(?:555|565)|VERSION_(?:1_0|1_1|1_2|2_0|2_1)|sBGRA|sRGB|sRGBA|sRGBx)\b/,alias:"constant"},"function-opencl-host":{pattern:/\bcl(?:BuildProgram|CloneKernel|CompileProgram|Create(?:Buffer|CommandQueue(?:WithProperties)?|Context|ContextFromType|Image|Image2D|Image3D|Kernel|KernelsInProgram|Pipe|ProgramWith(?:Binary|BuiltInKernels|IL|Source)|Sampler|SamplerWithProperties|SubBuffer|SubDevices|UserEvent)|Enqueue(?:(?:Barrier|Marker)(?:WithWaitList)?|Copy(?:Buffer(?:Rect|ToImage)?|Image(?:ToBuffer)?)|(?:Fill|Map)(?:Buffer|Image)|MigrateMemObjects|NDRangeKernel|NativeKernel|(?:Read|Write)(?:Buffer(?:Rect)?|Image)|SVM(?:Free|Map|MemFill|Memcpy|MigrateMem|Unmap)|Task|UnmapMemObject|WaitForEvents)|Finish|Flush|Get(?:CommandQueueInfo|ContextInfo|Device(?:AndHostTimer|IDs|Info)|Event(?:Profiling)?Info|ExtensionFunctionAddress(?:ForPlatform)?|HostTimer|ImageInfo|Kernel(?:ArgInfo|Info|SubGroupInfo|WorkGroupInfo)|MemObjectInfo|PipeInfo|Platform(?:IDs|Info)|Program(?:Build)?Info|SamplerInfo|SupportedImageFormats)|LinkProgram|(?:Release|Retain)(?:CommandQueue|Context|Device|Event|Kernel|MemObject|Program|Sampler)|SVM(?:Alloc|Free)|Set(?:CommandQueueProperty|DefaultDeviceCommandQueue|EventCallback|Kernel|Kernel(?:Arg(?:SVMPointer)?|ExecInfo)|MemObjectDestructorCallback|UserEventStatus)|Unload(?:Platform)?Compiler|WaitForEvents)\b/,alias:"function"}};B.languages.insertBefore("c","keyword",V),B.languages.cpp&&(V["type-opencl-host-cpp"]={pattern:/\b(?:Buffer|BufferGL|BufferRenderGL|CommandQueue|Context|Device|DeviceCommandQueue|EnqueueArgs|Event|Image|Image1D|Image1DArray|Image1DBuffer|Image2D|Image2DArray|Image2DGL|Image3D|Image3DGL|ImageFormat|ImageGL|Kernel|KernelFunctor|LocalSpaceArg|Memory|NDRange|Pipe|Platform|Program|SVMAllocator|SVMTraitAtomic|SVMTraitCoarse|SVMTraitFine|SVMTraitReadOnly|SVMTraitReadWrite|SVMTraitWriteOnly|Sampler|UserEvent)\b/,alias:"keyword"},B.languages.insertBefore("cpp","keyword",V))}(L)}},27734:function(J){"use strict";J.exports=C,C.displayName="openqasm",C.aliases=["qasm"];function C(d){d.languages.openqasm={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"[^"\r\n\t]*"|'[^'\r\n\t]*'/,greedy:!0},keyword:/\b(?:CX|OPENQASM|U|barrier|boxas|boxto|break|const|continue|ctrl|def|defcal|defcalgrammar|delay|else|end|for|gate|gphase|if|in|include|inv|kernel|lengthof|let|measure|pow|reset|return|rotary|stretchinf|while)\b|#pragma\b/,"class-name":/\b(?:angle|bit|bool|creg|fixed|float|int|length|qreg|qubit|stretch|uint)\b/,function:/\b(?:cos|exp|ln|popcount|rotl|rotr|sin|sqrt|tan)\b(?=\s*\()/,constant:/\b(?:euler|pi|tau)\b|π|𝜏|ℇ/,number:{pattern:/(^|[^.\w$])(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?(?:dt|ns|us|µs|ms|s)?/i,lookbehind:!0},operator:/->|>>=?|<<=?|&&|\|\||\+\+|--|[!=<>&|~^+\-*/%]=?|@/,punctuation:/[(){}\[\];,:.]/},d.languages.qasm=d.languages.openqasm}},91889:function(J){"use strict";J.exports=C,C.displayName="oz",C.aliases=[];function C(d){d.languages.oz={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/"(?:[^"\\]|\\[\s\S])*"/,greedy:!0},atom:{pattern:/'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,alias:"builtin"},keyword:/\$|\[\]|\b(?:_|at|attr|case|catch|choice|class|cond|declare|define|dis|else(?:case|if)?|end|export|fail|false|feat|finally|from|fun|functor|if|import|in|local|lock|meth|nil|not|of|or|prepare|proc|prop|raise|require|self|skip|then|thread|true|try|unit)\b/,function:[/\b[a-z][A-Za-z\d]*(?=\()/,{pattern:/(\{)[A-Z][A-Za-z\d]*\b/,lookbehind:!0}],number:/\b(?:0[bx][\da-f]+|\d+(?:\.\d*)?(?:e~?\d+)?)\b|&(?:[^\\]|\\(?:\d{3}|.))/i,variable:/`(?:[^`\\]|\\.)+`/,"attr-name":/\b\w+(?=[ \t]*:(?![:=]))/,operator:/:(?:=|::?)|<[-:=]?|=(?:=|<?:?)|>=?:?|\\=:?|!!?|[|#+\-*\/,~^@]|\b(?:andthen|div|mod|orelse)\b/,punctuation:/[\[\](){}.:;?]/}}},55965:function(J){"use strict";J.exports=C,C.displayName="parigp",C.aliases=[];function C(d){d.languages.parigp={comment:/\/\*[\s\S]*?\*\/|\\\\.*/,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"/,greedy:!0},keyword:function(){var b=["breakpoint","break","dbg_down","dbg_err","dbg_up","dbg_x","forcomposite","fordiv","forell","forpart","forprime","forstep","forsubgroup","forvec","for","iferr","if","local","my","next","return","until","while"];return b=b.map(function(I){return I.split("").join(" *")}).join("|"),RegExp("\\b(?:"+b+")\\b")}(),function:/\b\w(?:[\w ]*\w)?(?= *\()/,number:{pattern:/((?:\. *\. *)?)(?:\b\d(?: *\d)*(?: *(?!\. *\.)\.(?: *\d)*)?|\. *\d(?: *\d)*)(?: *e *(?:[+-] *)?\d(?: *\d)*)?/i,lookbehind:!0},operator:/\. *\.|[*\/!](?: *=)?|%(?: *=|(?: *#)?(?: *')*)?|\+(?: *[+=])?|-(?: *[-=>])?|<(?: *>|(?: *<)?(?: *=)?)?|>(?: *>)?(?: *=)?|=(?: *=){0,2}|\\(?: *\/)?(?: *=)?|&(?: *&)?|\| *\||['#~^]/,punctuation:/[\[\]{}().,:;|]/}}},37326:function(J){"use strict";J.exports=C,C.displayName="parser",C.aliases=[];function C(d){(function(b){var I=b.languages.parser=b.languages.extend("markup",{keyword:{pattern:/(^|[^^])(?:\^(?:case|eval|for|if|switch|throw)\b|@(?:BASE|CLASS|GET(?:_DEFAULT)?|OPTIONS|SET_DEFAULT|USE)\b)/,lookbehind:!0},variable:{pattern:/(^|[^^])\B\$(?:\w+|(?=[.{]))(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{punctuation:/\.|:+/}},function:{pattern:/(^|[^^])\B[@^]\w+(?:(?:\.|::?)\w+)*(?:\.|::?)?/,lookbehind:!0,inside:{keyword:{pattern:/(^@)(?:GET_|SET_)/,lookbehind:!0},punctuation:/\.|:+/}},escape:{pattern:/\^(?:[$^;@()\[\]{}"':]|#[a-f\d]*)/i,alias:"builtin"},punctuation:/[\[\](){};]/});I=b.languages.insertBefore("parser","keyword",{"parser-comment":{pattern:/(\s)#.*/,lookbehind:!0,alias:"comment"},expression:{pattern:/(^|[^^])\((?:[^()]|\((?:[^()]|\((?:[^()])*\))*\))*\)/,greedy:!0,lookbehind:!0,inside:{string:{pattern:/(^|[^^])(["'])(?:(?!\2)[^^]|\^[\s\S])*\2/,lookbehind:!0},keyword:I.keyword,variable:I.variable,function:I.function,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[a-f\d]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?)\b/i,escape:I.escape,operator:/[~+*\/\\%]|!(?:\|\|?|=)?|&&?|\|\|?|==|<[<=]?|>[>=]?|-[fd]?|\b(?:def|eq|ge|gt|in|is|le|lt|ne)\b/,punctuation:I.punctuation}}}),b.languages.insertBefore("inside","punctuation",{expression:I.expression,keyword:I.keyword,variable:I.variable,function:I.function,escape:I.escape,"parser-punctuation":{pattern:I.punctuation,alias:"punctuation"}},I.tag.inside["attr-value"])})(d)}},92949:function(J){"use strict";J.exports=C,C.displayName="pascal",C.aliases=["objectpascal"];function C(d){d.languages.pascal={directive:{pattern:/\{\$[\s\S]*?\}/,greedy:!0,alias:["marco","property"]},comment:{pattern:/\(\*[\s\S]*?\*\)|\{[\s\S]*?\}|\/\/.*/,greedy:!0},string:{pattern:/(?:'(?:''|[^'\r\n])*'(?!')|#[&$%]?[a-f\d]+)+|\^[a-z]/i,greedy:!0},asm:{pattern:/(\basm\b)[\s\S]+?(?=\bend\s*[;[])/i,lookbehind:!0,greedy:!0,inside:null},keyword:[{pattern:/(^|[^&])\b(?:absolute|array|asm|begin|case|const|constructor|destructor|do|downto|else|end|file|for|function|goto|if|implementation|inherited|inline|interface|label|nil|object|of|operator|packed|procedure|program|record|reintroduce|repeat|self|set|string|then|to|type|unit|until|uses|var|while|with)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:dispose|exit|false|new|true)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:class|dispinterface|except|exports|finalization|finally|initialization|inline|library|on|out|packed|property|raise|resourcestring|threadvar|try)\b/i,lookbehind:!0},{pattern:/(^|[^&])\b(?:absolute|abstract|alias|assembler|bitpacked|break|cdecl|continue|cppdecl|cvar|default|deprecated|dynamic|enumerator|experimental|export|external|far|far16|forward|generic|helper|implements|index|interrupt|iochecks|local|message|name|near|nodefault|noreturn|nostackframe|oldfpccall|otherwise|overload|override|pascal|platform|private|protected|public|published|read|register|reintroduce|result|safecall|saveregisters|softfloat|specialize|static|stdcall|stored|strict|unaligned|unimplemented|varargs|virtual|write)\b/i,lookbehind:!0}],number:[/(?:[&%]\d+|\$[a-f\d]+)/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?/i],operator:[/\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=]/,{pattern:/(^|[^&])\b(?:and|as|div|exclude|in|include|is|mod|not|or|shl|shr|xor)\b/,lookbehind:!0}],punctuation:/\(\.|\.\)|[()\[\]:;,.]/},d.languages.pascal.asm.inside=d.languages.extend("pascal",{asm:void 0,keyword:void 0,operator:void 0}),d.languages.objectpascal=d.languages.pascal}},5681:function(J){"use strict";J.exports=C,C.displayName="pascaligo",C.aliases=[];function C(d){(function(b){var I=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,L=/(?:\b\w+(?:<braces>)?|<braces>)/.source.replace(/<braces>/g,function(){return I}),B=b.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)<type>/.source.replace(/<type>/g,function(){return L}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/<type>(?=\s+is\b)/.source.replace(/<type>/g,function(){return L}),"i"),inside:null},{pattern:RegExp(/(:\s*)<type>/.source.replace(/<type>/g,function(){return L})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},V=["comment","keyword","builtin","operator","punctuation"].reduce(function(Q,M){return Q[M]=B[M],Q},{});B["class-name"].forEach(function(Q){Q.inside=V})})(d)}},70696:function(J){"use strict";J.exports=C,C.displayName="pcaxis",C.aliases=["px"];function C(d){d.languages.pcaxis={string:/"[^"]*"/,keyword:{pattern:/((?:^|;)\s*)[-A-Z\d]+(?:\s*\[[-\w]+\])?(?:\s*\("[^"]*"(?:,\s*"[^"]*")*\))?(?=\s*=)/,lookbehind:!0,greedy:!0,inside:{keyword:/^[-A-Z\d]+/,language:{pattern:/^(\s*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/^\[|\]$/,property:/[-\w]+/}},"sub-key":{pattern:/^(\s*)\S[\s\S]*/,lookbehind:!0,inside:{parameter:{pattern:/"[^"]*"/,alias:"property"},punctuation:/^\(|\)$|,/}}}},operator:/=/,tlist:{pattern:/TLIST\s*\(\s*\w+(?:(?:\s*,\s*"[^"]*")+|\s*,\s*"[^"]*"-"[^"]*")?\s*\)/,greedy:!0,inside:{function:/^TLIST/,property:{pattern:/^(\s*\(\s*)\w+/,lookbehind:!0},string:/"[^"]*"/,punctuation:/[(),]/,operator:/-/}},punctuation:/[;,]/,number:{pattern:/(^|\s)\d+(?:\.\d+)?(?!\S)/,lookbehind:!0},boolean:/NO|YES/},d.languages.px=d.languages.pcaxis}},35790:function(J){"use strict";J.exports=C,C.displayName="peoplecode",C.aliases=["pcode"];function C(d){d.languages.peoplecode={comment:RegExp([/\/\*[\s\S]*?\*\//.source,/\bREM[^;]*;/.source,/<\*(?:[^<*]|\*(?!>)|<(?!\*)|<\*(?:(?!\*>)[\s\S])*\*>)*\*>/.source,/\/\+[\s\S]*?\+\//.source].join("|")),string:{pattern:/'(?:''|[^'\r\n])*'(?!')|"(?:""|[^"\r\n])*"(?!")/,greedy:!0},variable:/%\w+/,"function-definition":{pattern:/((?:^|[^\w-])(?:function|method)\s+)\w+/i,lookbehind:!0,alias:"function"},"class-name":{pattern:/((?:^|[^-\w])(?:as|catch|class|component|create|extends|global|implements|instance|local|of|property|returns)\s+)\w+(?::\w+)*/i,lookbehind:!0,inside:{punctuation:/:/}},keyword:/\b(?:abstract|alias|as|catch|class|component|constant|create|declare|else|end-(?:class|evaluate|for|function|get|if|method|set|try|while)|evaluate|extends|for|function|get|global|if|implements|import|instance|library|local|method|null|of|out|peopleCode|private|program|property|protected|readonly|ref|repeat|returns?|set|step|then|throw|to|try|until|value|when(?:-other)?|while)\b/i,"operator-keyword":{pattern:/\b(?:and|not|or)\b/i,alias:"operator"},function:/[_a-z]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/\b\d+(?:\.\d+)?\b/,operator:/<>|[<>]=?|!=|\*\*|[-+*/|=@]/,punctuation:/[:.;,()[\]]/},d.languages.pcode=d.languages.peoplecode}},25777:function(J){"use strict";J.exports=C,C.displayName="perl",C.aliases=[];function C(d){(function(b){var I=/(?:\((?:[^()\\]|\\[\s\S])*\)|\{(?:[^{}\\]|\\[\s\S])*\}|\[(?:[^[\]\\]|\\[\s\S])*\]|<(?:[^<>\\]|\\[\s\S])*>)/.source;b.languages.perl={comment:[{pattern:/(^\s*)=\w[\s\S]*?=cut.*/m,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],string:[{pattern:RegExp(/\b(?:q|qq|qw|qx)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,I].join("|")+")"),greedy:!0},{pattern:/("|`)(?:(?!\1)[^\\]|\\[\s\S])*\1/,greedy:!0},{pattern:/'(?:[^'\\\r\n]|\\.)*'/,greedy:!0}],regex:[{pattern:RegExp(/\b(?:m|qr)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/([a-zA-Z0-9])(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,I].join("|")+")"+/[msixpodualngc]*/.source),greedy:!0},{pattern:RegExp(/(^|[^-])\b(?:s|tr|y)(?![a-zA-Z0-9])\s*/.source+"(?:"+[/([^a-zA-Z0-9\s{(\[<])(?:(?!\2)[^\\]|\\[\s\S])*\2(?:(?!\2)[^\\]|\\[\s\S])*\2/.source,/([a-zA-Z0-9])(?:(?!\3)[^\\]|\\[\s\S])*\3(?:(?!\3)[^\\]|\\[\s\S])*\3/.source,I+/\s*/.source+I].join("|")+")"+/[msixpodualngcer]*/.source),lookbehind:!0,greedy:!0},{pattern:/\/(?:[^\/\\\r\n]|\\.)*\/[msixpodualngc]*(?=\s*(?:$|[\r\n,.;})&|\-+*~<>!?^]|(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|x|xor)\b))/,greedy:!0}],variable:[/[&*$@%]\{\^[A-Z]+\}/,/[&*$@%]\^[A-Z_]/,/[&*$@%]#?(?=\{)/,/[&*$@%]#?(?:(?:::)*'?(?!\d)[\w$]+(?![\w$]))+(?:::)*/,/[&*$@%]\d+/,/(?!%=)[$@%][!"#$%&'()*+,\-.\/:;<=>?@[\\\]^_`{|}~]/],filehandle:{pattern:/<(?![<=])\S*?>|\b_\b/,alias:"symbol"},"v-string":{pattern:/v\d+(?:\.\d+)*|\d+(?:\.\d+){2,}/,alias:"string"},function:{pattern:/(\bsub[ \t]+)\w+/,lookbehind:!0},keyword:/\b(?:any|break|continue|default|delete|die|do|else|elsif|eval|for|foreach|given|goto|if|last|local|my|next|our|package|print|redo|require|return|say|state|sub|switch|undef|unless|until|use|when|while)\b/,number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)\b/,operator:/-[rwxoRWXOezsfdlpSbctugkTBMAC]\b|\+[+=]?|-[-=>]?|\*\*?=?|\/\/?=?|=[=~>]?|~[~=]?|\|\|?=?|&&?=?|<(?:=>?|<=?)?|>>?=?|![~=]?|[%^]=?|\.(?:=|\.\.?)?|[\\?]|\bx(?:=|\b)|\b(?:and|cmp|eq|ge|gt|le|lt|ne|not|or|xor)\b/,punctuation:/[{}[\];(),:]/}})(d)}},65889:function(J,C,d){"use strict";var b=d(53852);J.exports=I,I.displayName="phpExtras",I.aliases=[];function I(L){L.register(b),L.languages.insertBefore("php","variable",{this:{pattern:/\$this\b/,alias:"keyword"},global:/\$(?:GLOBALS|HTTP_RAW_POST_DATA|_(?:COOKIE|ENV|FILES|GET|POST|REQUEST|SERVER|SESSION)|argc|argv|http_response_header|php_errormsg)\b/,scope:{pattern:/\b[\w\\]+::/,inside:{keyword:/\b(?:parent|self|static)\b/,punctuation:/::|\\/}}})}},53852:function(J,C,d){"use strict";var b=d(51478);J.exports=I,I.displayName="php",I.aliases=[];function I(L){L.register(b),function(B){var V=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,Q=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],M=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,de=/<?=>|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,he=/[{}\[\](),:;]/;B.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:V,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|new|or|parent|print|private|protected|public|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s+)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Q,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:M,operator:de,punctuation:he};var re={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:B.languages.php},De=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:re}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:re}}];B.languages.insertBefore("php","variable",{string:De,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:V,string:De,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:Q,number:M,operator:de,punctuation:he}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),B.hooks.add("before-tokenize",function(ne){if(/<\?/.test(ne.code)){var it=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;B.languages["markup-templating"].buildPlaceholders(ne,"php",it)}}),B.hooks.add("after-tokenize",function(ne){B.languages["markup-templating"].tokenizePlaceholders(ne,"php")})}(L)}},97719:function(J,C,d){"use strict";var b=d(53852),I=d(53510);J.exports=L,L.displayName="phpdoc",L.aliases=[];function L(B){B.register(b),B.register(I),function(V){var Q=/(?:\b[a-zA-Z]\w*|[|\\[\]])+/.source;V.languages.phpdoc=V.languages.extend("javadoclike",{parameter:{pattern:RegExp("(@(?:global|param|property(?:-read|-write)?|var)\\s+(?:"+Q+"\\s+)?)\\$\\w+"),lookbehind:!0}}),V.languages.insertBefore("phpdoc","keyword",{"class-name":[{pattern:RegExp("(@(?:global|package|param|property(?:-read|-write)?|return|subpackage|throws|var)\\s+)"+Q),lookbehind:!0,inside:{keyword:/\b(?:array|bool|boolean|callback|double|false|float|int|integer|mixed|null|object|resource|self|string|true|void)\b/,punctuation:/[|\\[\]()]/}}]}),V.languages.javadoclike.addSupport("php",V.languages.phpdoc)}(B)}},63839:function(J,C,d){"use strict";var b=d(69435);J.exports=I,I.displayName="plsql",I.aliases=[];function I(L){L.register(b),L.languages.plsql=L.languages.extend("sql",{comment:{pattern:/\/\*[\s\S]*?\*\/|--.*/,greedy:!0},keyword:/\b(?:A|ACCESSIBLE|ADD|AGENT|AGGREGATE|ALL|ALTER|AND|ANY|ARRAY|AS|ASC|AT|ATTRIBUTE|AUTHID|AVG|BEGIN|BETWEEN|BFILE_BASE|BINARY|BLOB_BASE|BLOCK|BODY|BOTH|BOUND|BULK|BY|BYTE|C|CALL|CALLING|CASCADE|CASE|CHAR|CHARACTER|CHARSET|CHARSETFORM|CHARSETID|CHAR_BASE|CHECK|CLOB_BASE|CLONE|CLOSE|CLUSTER|CLUSTERS|COLAUTH|COLLECT|COLUMNS|COMMENT|COMMIT|COMMITTED|COMPILED|COMPRESS|CONNECT|CONSTANT|CONSTRUCTOR|CONTEXT|CONTINUE|CONVERT|COUNT|CRASH|CREATE|CREDENTIAL|CURRENT|CURSOR|CUSTOMDATUM|DANGLING|DATA|DATE|DATE_BASE|DAY|DECLARE|DEFAULT|DEFINE|DELETE|DESC|DETERMINISTIC|DIRECTORY|DISTINCT|DOUBLE|DROP|DURATION|ELEMENT|ELSE|ELSIF|EMPTY|END|ESCAPE|EXCEPT|EXCEPTION|EXCEPTIONS|EXCLUSIVE|EXECUTE|EXISTS|EXIT|EXTERNAL|FETCH|FINAL|FIRST|FIXED|FLOAT|FOR|FORALL|FORCE|FROM|FUNCTION|GENERAL|GOTO|GRANT|GROUP|HASH|HAVING|HEAP|HIDDEN|HOUR|IDENTIFIED|IF|IMMEDIATE|IMMUTABLE|IN|INCLUDING|INDEX|INDEXES|INDICATOR|INDICES|INFINITE|INSERT|INSTANTIABLE|INT|INTERFACE|INTERSECT|INTERVAL|INTO|INVALIDATE|IS|ISOLATION|JAVA|LANGUAGE|LARGE|LEADING|LENGTH|LEVEL|LIBRARY|LIKE|LIKE2|LIKE4|LIKEC|LIMIT|LIMITED|LOCAL|LOCK|LONG|LOOP|MAP|MAX|MAXLEN|MEMBER|MERGE|MIN|MINUS|MINUTE|MOD|MODE|MODIFY|MONTH|MULTISET|MUTABLE|NAME|NAN|NATIONAL|NATIVE|NCHAR|NEW|NOCOMPRESS|NOCOPY|NOT|NOWAIT|NULL|NUMBER_BASE|OBJECT|OCICOLL|OCIDATE|OCIDATETIME|OCIDURATION|OCIINTERVAL|OCILOBLOCATOR|OCINUMBER|OCIRAW|OCIREF|OCIREFCURSOR|OCIROWID|OCISTRING|OCITYPE|OF|OLD|ON|ONLY|OPAQUE|OPEN|OPERATOR|OPTION|OR|ORACLE|ORADATA|ORDER|ORGANIZATION|ORLANY|ORLVARY|OTHERS|OUT|OVERLAPS|OVERRIDING|PACKAGE|PARALLEL_ENABLE|PARAMETER|PARAMETERS|PARENT|PARTITION|PASCAL|PERSISTABLE|PIPE|PIPELINED|PLUGGABLE|POLYMORPHIC|PRAGMA|PRECISION|PRIOR|PRIVATE|PROCEDURE|PUBLIC|RAISE|RANGE|RAW|READ|RECORD|REF|REFERENCE|RELIES_ON|REM|REMAINDER|RENAME|RESOURCE|RESULT|RESULT_CACHE|RETURN|RETURNING|REVERSE|REVOKE|ROLLBACK|ROW|SAMPLE|SAVE|SAVEPOINT|SB1|SB2|SB4|SECOND|SEGMENT|SELECT|SELF|SEPARATE|SEQUENCE|SERIALIZABLE|SET|SHARE|SHORT|SIZE|SIZE_T|SOME|SPARSE|SQL|SQLCODE|SQLDATA|SQLNAME|SQLSTATE|STANDARD|START|STATIC|STDDEV|STORED|STRING|STRUCT|STYLE|SUBMULTISET|SUBPARTITION|SUBSTITUTABLE|SUBTYPE|SUM|SYNONYM|TABAUTH|TABLE|TDO|THE|THEN|TIME|TIMESTAMP|TIMEZONE_ABBR|TIMEZONE_HOUR|TIMEZONE_MINUTE|TIMEZONE_REGION|TO|TRAILING|TRANSACTION|TRANSACTIONAL|TRUSTED|TYPE|UB1|UB2|UB4|UNDER|UNION|UNIQUE|UNPLUG|UNSIGNED|UNTRUSTED|UPDATE|USE|USING|VALIST|VALUE|VALUES|VARIABLE|VARIANCE|VARRAY|VARYING|VIEW|VIEWS|VOID|WHEN|WHERE|WHILE|WITH|WORK|WRAPPED|WRITE|YEAR|ZONE)\b/i,operator:/:=?|=>|[<>^~!]=|\.\.|\|\||\*\*|[-+*/%<>=@]/}),L.languages.insertBefore("plsql","operator",{label:{pattern:/<<\s*\w+\s*>>/,alias:"symbol"}})}},67623:function(J){"use strict";J.exports=C,C.displayName="powerquery",C.aliases=[];function C(d){d.languages.powerquery={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},"quoted-identifier":{pattern:/#"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},string:{pattern:/(?:#!)?"(?:[^"\r\n]|"")*"(?!")/,greedy:!0},constant:[/\bDay\.(?:Friday|Monday|Saturday|Sunday|Thursday|Tuesday|Wednesday)\b/,/\bTraceLevel\.(?:Critical|Error|Information|Verbose|Warning)\b/,/\bOccurrence\.(?:All|First|Last)\b/,/\bOrder\.(?:Ascending|Descending)\b/,/\bRoundingMode\.(?:AwayFromZero|Down|ToEven|TowardZero|Up)\b/,/\bMissingField\.(?:Error|Ignore|UseNull)\b/,/\bQuoteStyle\.(?:Csv|None)\b/,/\bJoinKind\.(?:FullOuter|Inner|LeftAnti|LeftOuter|RightAnti|RightOuter)\b/,/\bGroupKind\.(?:Global|Local)\b/,/\bExtraValues\.(?:Error|Ignore|List)\b/,/\bJoinAlgorithm\.(?:Dynamic|LeftHash|LeftIndex|PairwiseHash|RightHash|RightIndex|SortMerge)\b/,/\bJoinSide\.(?:Left|Right)\b/,/\bPrecision\.(?:Decimal|Double)\b/,/\bRelativePosition\.From(?:End|Start)\b/,/\bTextEncoding\.(?:Ascii|BigEndianUnicode|Unicode|Utf16|Utf8|Windows)\b/,/\b(?:Any|Binary|Date|DateTime|DateTimeZone|Duration|Function|Int16|Int32|Int64|Int8|List|Logical|None|Number|Record|Table|Text|Time)\.Type\b/,/\bnull\b/],boolean:/\b(?:false|true)\b/,keyword:/\b(?:and|as|each|else|error|if|in|is|let|meta|not|nullable|optional|or|otherwise|section|shared|then|try|type)\b|#(?:binary|date|datetime|datetimezone|duration|infinity|nan|sections|shared|table|time)\b/,function:{pattern:/(^|[^#\w.])[a-z_][\w.]*(?=\s*\()/i,lookbehind:!0},"data-type":{pattern:/\b(?:any|anynonnull|binary|date|datetime|datetimezone|duration|function|list|logical|none|number|record|table|text|time)\b/,alias:"class-name"},number:{pattern:/\b0x[\da-f]+\b|(?:[+-]?(?:\b\d+\.)?\b\d+|[+-]\.\d+|(^|[^.])\B\.\d+)(?:e[+-]?\d+)?\b/i,lookbehind:!0},operator:/[-+*\/&?@^]|<(?:=>?|>)?|>=?|=>?|\.\.\.?/,punctuation:/[,;\[\](){}]/},d.languages.pq=d.languages.powerquery,d.languages.mscript=d.languages.powerquery}},32530:function(J){"use strict";J.exports=C,C.displayName="powershell",C.aliases=[];function C(d){(function(b){var I=b.languages.powershell={comment:[{pattern:/(^|[^`])<#[\s\S]*?#>/,lookbehind:!0},{pattern:/(^|[^`])#.*/,lookbehind:!0}],string:[{pattern:/"(?:`[\s\S]|[^`"])*"/,greedy:!0,inside:null},{pattern:/'(?:[^']|'')*'/,greedy:!0}],namespace:/\[[a-z](?:\[(?:\[[^\]]*\]|[^\[\]])*\]|[^\[\]])*\]/i,boolean:/\$(?:false|true)\b/i,variable:/\$\w+\b/,function:[/\b(?:Add|Approve|Assert|Backup|Block|Checkpoint|Clear|Close|Compare|Complete|Compress|Confirm|Connect|Convert|ConvertFrom|ConvertTo|Copy|Debug|Deny|Disable|Disconnect|Dismount|Edit|Enable|Enter|Exit|Expand|Export|Find|ForEach|Format|Get|Grant|Group|Hide|Import|Initialize|Install|Invoke|Join|Limit|Lock|Measure|Merge|Move|New|Open|Optimize|Out|Ping|Pop|Protect|Publish|Push|Read|Receive|Redo|Register|Remove|Rename|Repair|Request|Reset|Resize|Resolve|Restart|Restore|Resume|Revoke|Save|Search|Select|Send|Set|Show|Skip|Sort|Split|Start|Step|Stop|Submit|Suspend|Switch|Sync|Tee|Test|Trace|Unblock|Undo|Uninstall|Unlock|Unprotect|Unpublish|Unregister|Update|Use|Wait|Watch|Where|Write)-[a-z]+\b/i,/\b(?:ac|cat|chdir|clc|cli|clp|clv|compare|copy|cp|cpi|cpp|cvpa|dbp|del|diff|dir|ebp|echo|epal|epcsv|epsn|erase|fc|fl|ft|fw|gal|gbp|gc|gci|gcs|gdr|gi|gl|gm|gp|gps|group|gsv|gu|gv|gwmi|iex|ii|ipal|ipcsv|ipsn|irm|iwmi|iwr|kill|lp|ls|measure|mi|mount|move|mp|mv|nal|ndr|ni|nv|ogv|popd|ps|pushd|pwd|rbp|rd|rdr|ren|ri|rm|rmdir|rni|rnp|rp|rv|rvpa|rwmi|sal|saps|sasv|sbp|sc|select|set|shcm|si|sl|sleep|sls|sort|sp|spps|spsv|start|sv|swmi|tee|trcm|type|write)\b/i],keyword:/\b(?:Begin|Break|Catch|Class|Continue|Data|Define|Do|DynamicParam|Else|ElseIf|End|Exit|Filter|Finally|For|ForEach|From|Function|If|InlineScript|Parallel|Param|Process|Return|Sequence|Switch|Throw|Trap|Try|Until|Using|Var|While|Workflow)\b/i,operator:{pattern:/(^|\W)(?:!|-(?:b?(?:and|x?or)|as|(?:Not)?(?:Contains|In|Like|Match)|eq|ge|gt|is(?:Not)?|Join|le|lt|ne|not|Replace|sh[lr])\b|-[-=]?|\+[+=]?|[*\/%]=?)/i,lookbehind:!0},punctuation:/[|{}[\];(),.]/};I.string[0].inside={function:{pattern:/(^|[^`])\$\((?:\$\([^\r\n()]*\)|(?!\$\()[^\r\n)])*\)/,lookbehind:!0,inside:I},boolean:I.boolean,variable:I.variable}})(d)}},8938:function(J){"use strict";J.exports=C,C.displayName="processing",C.aliases=[];function C(d){d.languages.processing=d.languages.extend("clike",{keyword:/\b(?:break|case|catch|class|continue|default|else|extends|final|for|if|implements|import|new|null|private|public|return|static|super|switch|this|try|void|while)\b/,function:/\b\w+(?=\s*\()/,operator:/<[<=]?|>[>=]?|&&?|\|\|?|[%?]|[!=+\-*\/]=?/}),d.languages.insertBefore("processing","number",{constant:/\b(?!XML\b)[A-Z][A-Z\d_]+\b/,type:{pattern:/\b(?:boolean|byte|char|color|double|float|int|[A-Z]\w*)\b/,alias:"class-name"}})}},55259:function(J){"use strict";J.exports=C,C.displayName="prolog",C.aliases=[];function C(d){d.languages.prolog={comment:{pattern:/\/\*[\s\S]*?\*\/|%.*/,greedy:!0},string:{pattern:/(["'])(?:\1\1|\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1(?!\1)/,greedy:!0},builtin:/\b(?:fx|fy|xf[xy]?|yfx?)\b/,function:/\b[a-z]\w*(?:(?=\()|\/\d+)/,number:/\b\d+(?:\.\d*)?/,operator:/[:\\=><\-?*@\/;+^|!$.]+|\b(?:is|mod|not|xor)\b/,punctuation:/[(){}\[\],]/}}},67411:function(J){"use strict";J.exports=C,C.displayName="promql",C.aliases=[];function C(d){(function(b){var I=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],L=["on","ignoring","group_right","group_left","by","without"],B=["offset"],V=I.concat(L,B);b.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+L.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+V.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(d)}},15375:function(J){"use strict";J.exports=C,C.displayName="properties",C.aliases=[];function C(d){d.languages.properties={comment:/^[ \t]*[#!].*$/m,"attr-value":{pattern:/(^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?: *[=:] *(?! )| ))(?:\\(?:\r\n|[\s\S])|[^\\\r\n])+/m,lookbehind:!0},"attr-name":/^[ \t]*(?:\\(?:\r\n|[\s\S])|[^\\\s:=])+(?= *[=:]| )/m,punctuation:/[=:]/}}},12093:function(J){"use strict";J.exports=C,C.displayName="protobuf",C.aliases=[];function C(d){(function(b){var I=/\b(?:bool|bytes|double|s?fixed(?:32|64)|float|[su]?int(?:32|64)|string)\b/;b.languages.protobuf=b.languages.extend("clike",{"class-name":[{pattern:/(\b(?:enum|extend|message|service)\s+)[A-Za-z_]\w*(?=\s*\{)/,lookbehind:!0},{pattern:/(\b(?:rpc\s+\w+|returns)\s*\(\s*(?:stream\s+)?)\.?[A-Za-z_]\w*(?:\.[A-Za-z_]\w*)*(?=\s*\))/,lookbehind:!0}],keyword:/\b(?:enum|extend|extensions|import|message|oneof|option|optional|package|public|repeated|required|reserved|returns|rpc(?=\s+\w)|service|stream|syntax|to)\b(?!\s*=\s*\d)/,function:/\b[a-z_]\w*(?=\s*\()/i}),b.languages.insertBefore("protobuf","operator",{map:{pattern:/\bmap<\s*[\w.]+\s*,\s*[\w.]+\s*>(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/[<>.,]/,builtin:I}},builtin:I,"positional-class-name":{pattern:/(?:\b|\B\.)[a-z_]\w*(?:\.[a-z_]\w*)*(?=\s+[a-z_]\w*\s*[=;])/i,alias:"class-name",inside:{punctuation:/\./}},annotation:{pattern:/(\[\s*)[a-z_]\w*(?=\s*=)/i,lookbehind:!0}})})(d)}},83588:function(J){"use strict";J.exports=C,C.displayName="psl",C.aliases=[];function C(d){d.languages.psl={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0,inside:{symbol:/\\[ntrbA-Z"\\]/}},"heredoc-string":{pattern:/<<<([a-zA-Z_]\w*)[\r\n](?:.*[\r\n])*?\1\b/,alias:"string",greedy:!0},keyword:/\b(?:__multi|__single|case|default|do|else|elsif|exit|export|for|foreach|function|if|last|line|local|next|requires|return|switch|until|while|word)\b/,constant:/\b(?:ALARM|CHART_ADD_GRAPH|CHART_DELETE_GRAPH|CHART_DESTROY|CHART_LOAD|CHART_PRINT|EOF|OFFLINE|OK|PSL_PROF_LOG|R_CHECK_HORIZ|R_CHECK_VERT|R_CLICKER|R_COLUMN|R_FRAME|R_ICON|R_LABEL|R_LABEL_CENTER|R_LIST_MULTIPLE|R_LIST_MULTIPLE_ND|R_LIST_SINGLE|R_LIST_SINGLE_ND|R_MENU|R_POPUP|R_POPUP_SCROLLED|R_RADIO_HORIZ|R_RADIO_VERT|R_ROW|R_SCALE_HORIZ|R_SCALE_VERT|R_SEP_HORIZ|R_SEP_VERT|R_SPINNER|R_TEXT_FIELD|R_TEXT_FIELD_LABEL|R_TOGGLE|TRIM_LEADING|TRIM_LEADING_AND_TRAILING|TRIM_REDUNDANT|TRIM_TRAILING|VOID|WARN)\b/,boolean:/\b(?:FALSE|False|NO|No|TRUE|True|YES|Yes|false|no|true|yes)\b/,variable:/\b(?:PslDebug|errno|exit_status)\b/,builtin:{pattern:/\b(?:PslExecute|PslFunctionCall|PslFunctionExists|PslSetOptions|_snmp_debug|acos|add_diary|annotate|annotate_get|ascii_to_ebcdic|asctime|asin|atan|atexit|batch_set|blackout|cat|ceil|chan_exists|change_state|close|code_cvt|cond_signal|cond_wait|console_type|convert_base|convert_date|convert_locale_date|cos|cosh|create|date|dcget_text|destroy|destroy_lock|dget_text|difference|dump_hist|ebcdic_to_ascii|encrypt|event_archive|event_catalog_get|event_check|event_query|event_range_manage|event_range_query|event_report|event_schedule|event_trigger|event_trigger2|execute|exists|exp|fabs|file|floor|fmod|fopen|fseek|ftell|full_discovery|get|get_chan_info|get_ranges|get_text|get_vars|getenv|gethostinfo|getpid|getpname|grep|history|history_get_retention|in_transition|index|int|internal|intersection|is_var|isnumber|join|kill|length|lines|lock|lock_info|log|log10|loge|matchline|msg_check|msg_get_format|msg_get_severity|msg_printf|msg_sprintf|ntharg|nthargf|nthline|nthlinef|num_bytes|num_consoles|pconfig|popen|poplines|pow|print|printf|proc_exists|process|random|read|readln|refresh_parameters|remote_check|remote_close|remote_event_query|remote_event_trigger|remote_file_send|remote_open|remove|replace|rindex|sec_check_priv|sec_store_get|sec_store_set|set|set_alarm_ranges|set_locale|share|sin|sinh|sleep|snmp_agent_config|snmp_agent_start|snmp_agent_stop|snmp_close|snmp_config|snmp_get|snmp_get_next|snmp_h_get|snmp_h_get_next|snmp_h_set|snmp_open|snmp_set|snmp_trap_ignore|snmp_trap_listen|snmp_trap_raise_std_trap|snmp_trap_receive|snmp_trap_register_im|snmp_trap_send|snmp_walk|sopen|sort|splitline|sprintf|sqrt|srandom|str_repeat|strcasecmp|subset|substr|system|tail|tan|tanh|text_domain|time|tmpnam|tolower|toupper|trace_psl_process|trim|union|unique|unlock|unset|va_arg|va_start|write)\b/,alias:"builtin-function"},"foreach-variable":{pattern:/(\bforeach\s+(?:(?:\w+\b|"(?:\\.|[^\\"])*")\s+){0,2})[_a-zA-Z]\w*(?=\s*\()/,lookbehind:!0,greedy:!0},function:/\b[_a-z]\w*\b(?=\s*\()/i,number:/\b(?:0x[0-9a-f]+|\d+(?:\.\d+)?)\b/i,operator:/--|\+\+|&&=?|\|\|=?|<<=?|>>=?|[=!]~|[-+*/%&|^!=<>]=?|\.|[:?]/,punctuation:/[(){}\[\];,]/}}},94127:function(J){"use strict";J.exports=C,C.displayName="pug",C.aliases=[];function C(d){(function(b){b.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:b.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:b.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:b.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:b.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:b.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:b.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:b.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:b.languages.javascript}],punctuation:/[.\-!=|]+/};for(var I=/(^([\t ]*)):<filter_name>(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,L=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],B={},V=0,Q=L.length;V<Q;V++){var M=L[V];M=typeof M=="string"?{filter:M,language:M}:M,b.languages[M.language]&&(B["filter-"+M.filter]={pattern:RegExp(I.replace("<filter_name>",function(){return M.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[M.language,"language-"+M.language],inside:b.languages[M.language]}}})}b.languages.insertBefore("pug","filter",B)})(d)}},21294:function(J){"use strict";J.exports=C,C.displayName="puppet",C.aliases=[];function C(d){(function(b){b.languages.puppet={heredoc:[{pattern:/(@\("([^"\r\n\/):]+)"(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/(@\(([^"\r\n\/):]+)(?:\/[nrts$uL]*)?\).*(?:\r?\n|\r))(?:.*(?:\r?\n|\r(?!\n)))*?[ \t]*(?:\|[ \t]*)?(?:-[ \t]*)?\2/,lookbehind:!0,greedy:!0,alias:"string",inside:{punctuation:/(?=\S).*\S(?= *$)/}},{pattern:/@\("?(?:[^"\r\n\/):]+)"?(?:\/[nrts$uL]*)?\)/,alias:"string",inside:{punctuation:{pattern:/(\().+?(?=\))/,lookbehind:!0}}}],"multiline-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,greedy:!0,alias:"comment"},regex:{pattern:/((?:\bnode\s+|[~=\(\[\{,]\s*|[=+]>\s*|^\s*))\/(?:[^\/\\]|\\[\s\S])+\/(?:[imx]+\b|\B)/,lookbehind:!0,greedy:!0,inside:{"extended-regex":{pattern:/^\/(?:[^\/\\]|\\[\s\S])+\/[im]*x[im]*$/,inside:{comment:/#.*/}}}},comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},string:{pattern:/(["'])(?:\$\{(?:[^'"}]|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}|\$(?!\{)|(?!\1)[^\\$]|\\[\s\S])*\1/,greedy:!0,inside:{"double-quoted":{pattern:/^"[\s\S]*"$/,inside:{}}}},variable:{pattern:/\$(?:::)?\w+(?:::\w+)*/,inside:{punctuation:/::/}},"attr-name":/(?:\b\w+|\*)(?=\s*=>)/,function:[{pattern:/(\.)(?!\d)\w+/,lookbehind:!0},/\b(?:contain|debug|err|fail|include|info|notice|realize|require|tag|warning)\b|\b(?!\d)\w+(?=\()/],number:/\b(?:0x[a-f\d]+|\d+(?:\.\d+)?(?:e-?\d+)?)\b/i,boolean:/\b(?:false|true)\b/,keyword:/\b(?:application|attr|case|class|consumes|default|define|else|elsif|function|if|import|inherits|node|private|produces|type|undef|unless)\b/,datatype:{pattern:/\b(?:Any|Array|Boolean|Callable|Catalogentry|Class|Collection|Data|Default|Enum|Float|Hash|Integer|NotUndef|Numeric|Optional|Pattern|Regexp|Resource|Runtime|Scalar|String|Struct|Tuple|Type|Undef|Variant)\b/,alias:"symbol"},operator:/=[=~>]?|![=~]?|<(?:<\|?|[=~|-])?|>[>=]?|->?|~>|\|>?>?|[*\/%+?]|\b(?:and|in|or)\b/,punctuation:/[\[\]{}().,;]|:+/};var I=[{pattern:/(^|[^\\])\$\{(?:[^'"{}]|\{[^}]*\}|(["'])(?:(?!\2)[^\\]|\\[\s\S])*\2)+\}/,lookbehind:!0,inside:{"short-variable":{pattern:/(^\$\{)(?!\w+\()(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}},delimiter:{pattern:/^\$/,alias:"variable"},rest:b.languages.puppet}},{pattern:/(^|[^\\])\$(?:::)?\w+(?:::\w+)*/,lookbehind:!0,alias:"variable",inside:{punctuation:/::/}}];b.languages.puppet.heredoc[0].inside.interpolation=I,b.languages.puppet.string.inside["double-quoted"].inside.interpolation=I})(d)}},38709:function(J){"use strict";J.exports=C,C.displayName="pure",C.aliases=[];function C(d){(function(b){b.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var I=["c",{lang:"c++",alias:"cpp"},"fortran"],L=/%< *-\*- *<lang>\d* *-\*-[\s\S]+?%>/.source;I.forEach(function(B){var V=B;if(typeof B!="string"&&(V=B.alias,B=B.lang),b.languages[V]){var Q={};Q["inline-lang-"+V]={pattern:RegExp(L.replace("<lang>",B.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:b.util.clone(b.languages.pure["inline-lang"].inside)},Q["inline-lang-"+V].inside.rest=b.util.clone(b.languages[V]),b.languages.insertBefore("pure","inline-lang",Q)}}),b.languages.c&&(b.languages.pure["inline-lang"].inside.rest=b.util.clone(b.languages.c))})(d)}},15008:function(J){"use strict";J.exports=C,C.displayName="purebasic",C.aliases=[];function C(d){d.languages.purebasic=d.languages.extend("clike",{comment:/;.*/,keyword:/\b(?:align|and|as|break|calldebugger|case|compilercase|compilerdefault|compilerelse|compilerelseif|compilerendif|compilerendselect|compilererror|compilerif|compilerselect|continue|data|datasection|debug|debuglevel|declare|declarec|declarecdll|declaredll|declaremodule|default|define|dim|disableasm|disabledebugger|disableexplicit|else|elseif|enableasm|enabledebugger|enableexplicit|end|enddatasection|enddeclaremodule|endenumeration|endif|endimport|endinterface|endmacro|endmodule|endprocedure|endselect|endstructure|endstructureunion|endwith|enumeration|extends|fakereturn|for|foreach|forever|global|gosub|goto|if|import|importc|includebinary|includefile|includepath|interface|macro|module|newlist|newmap|next|not|or|procedure|procedurec|procedurecdll|proceduredll|procedurereturn|protected|prototype|prototypec|read|redim|repeat|restore|return|runtime|select|shared|static|step|structure|structureunion|swap|threaded|to|until|wend|while|with|xincludefile|xor)\b/i,function:/\b\w+(?:\.\w+)?\s*(?=\()/,number:/(?:\$[\da-f]+|\b-?(?:\d+(?:\.\d+)?|\.\d+)(?:e[+-]?\d+)?)\b/i,operator:/(?:@\*?|\?|\*)\w+|-[>-]?|\+\+?|!=?|<<?=?|>>?=?|==?|&&?|\|?\||[~^%?*/@]/}),d.languages.insertBefore("purebasic","keyword",{tag:/#\w+\$?/,asm:{pattern:/(^[\t ]*)!.*/m,lookbehind:!0,alias:"tag",inside:{comment:/;.*/,string:{pattern:/(["'`])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"label-reference-anonymous":{pattern:/(!\s*j[a-z]+\s+)@[fb]/i,lookbehind:!0,alias:"fasm-label"},"label-reference-addressed":{pattern:/(!\s*j[a-z]+\s+)[A-Z._?$@][\w.?$@~#]*/i,lookbehind:!0,alias:"fasm-label"},keyword:[/\b(?:extern|global)\b[^;\r\n]*/i,/\b(?:CPU|DEFAULT|FLOAT)\b.*/],function:{pattern:/^([\t ]*!\s*)[\da-z]+(?=\s|$)/im,lookbehind:!0},"function-inline":{pattern:/(:\s*)[\da-z]+(?=\s)/i,lookbehind:!0,alias:"function"},label:{pattern:/^([\t ]*!\s*)[A-Za-z._?$@][\w.?$@~#]*(?=:)/m,lookbehind:!0,alias:"fasm-label"},register:/\b(?:st\d|[xyz]mm\d\d?|[cdt]r\d|r\d\d?[bwd]?|[er]?[abcd]x|[abcd][hl]|[er]?(?:bp|di|si|sp)|[cdefgs]s|mm\d+)\b/i,number:/(?:\b|-|(?=\$))(?:0[hx](?:[\da-f]*\.)?[\da-f]+(?:p[+-]?\d+)?|\d[\da-f]+[hx]|\$\d[\da-f]*|0[oq][0-7]+|[0-7]+[oq]|0[by][01]+|[01]+[by]|0[dt]\d+|(?:\d+(?:\.\d+)?|\.\d+)(?:\.?e[+-]?\d+)?[dt]?)\b/i,operator:/[\[\]*+\-/%<>=&|$!,.:]/}}}),delete d.languages.purebasic["class-name"],delete d.languages.purebasic.boolean,d.languages.pbfasm=d.languages.purebasic}},96549:function(J,C,d){"use strict";var b=d(2050);J.exports=I,I.displayName="purescript",I.aliases=["purs"];function I(L){L.register(b),L.languages.purescript=L.languages.extend("haskell",{keyword:/\b(?:ado|case|class|data|derive|do|else|forall|if|in|infixl|infixr|instance|let|module|newtype|of|primitive|then|type|where)\b|∀/,"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*(?:\s+as\s+[A-Z][\w']*(?:\.[A-Z][\w']*)*)?(?:\s+hiding\b)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|hiding|import)\b/,punctuation:/\./}},builtin:/\b(?:absurd|add|ap|append|apply|between|bind|bottom|clamp|compare|comparing|compose|conj|const|degree|discard|disj|div|eq|flap|flip|gcd|identity|ifM|join|lcm|liftA1|liftM1|map|max|mempty|min|mod|mul|negate|not|notEq|one|otherwise|recip|show|sub|top|unit|unless|unlessM|void|when|whenM|zero)\b/,operator:[L.languages.haskell.operator[0],L.languages.haskell.operator[2],/[\xa2-\xa6\xa8\xa9\xac\xae-\xb1\xb4\xb8\xd7\xf7\u02c2-\u02c5\u02d2-\u02df\u02e5-\u02eb\u02ed\u02ef-\u02ff\u0375\u0384\u0385\u03f6\u0482\u058d-\u058f\u0606-\u0608\u060b\u060e\u060f\u06de\u06e9\u06fd\u06fe\u07f6\u07fe\u07ff\u09f2\u09f3\u09fa\u09fb\u0af1\u0b70\u0bf3-\u0bfa\u0c7f\u0d4f\u0d79\u0e3f\u0f01-\u0f03\u0f13\u0f15-\u0f17\u0f1a-\u0f1f\u0f34\u0f36\u0f38\u0fbe-\u0fc5\u0fc7-\u0fcc\u0fce\u0fcf\u0fd5-\u0fd8\u109e\u109f\u1390-\u1399\u166d\u17db\u1940\u19de-\u19ff\u1b61-\u1b6a\u1b74-\u1b7c\u1fbd\u1fbf-\u1fc1\u1fcd-\u1fcf\u1fdd-\u1fdf\u1fed-\u1fef\u1ffd\u1ffe\u2044\u2052\u207a-\u207c\u208a-\u208c\u20a0-\u20bf\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116-\u2118\u211e-\u2123\u2125\u2127\u2129\u212e\u213a\u213b\u2140-\u2144\u214a-\u214d\u214f\u218a\u218b\u2190-\u2307\u230c-\u2328\u232b-\u2426\u2440-\u244a\u249c-\u24e9\u2500-\u2767\u2794-\u27c4\u27c7-\u27e5\u27f0-\u2982\u2999-\u29d7\u29dc-\u29fb\u29fe-\u2b73\u2b76-\u2b95\u2b97-\u2bff\u2ce5-\u2cea\u2e50\u2e51\u2e80-\u2e99\u2e9b-\u2ef3\u2f00-\u2fd5\u2ff0-\u2ffb\u3004\u3012\u3013\u3020\u3036\u3037\u303e\u303f\u309b\u309c\u3190\u3191\u3196-\u319f\u31c0-\u31e3\u3200-\u321e\u322a-\u3247\u3250\u3260-\u327f\u328a-\u32b0\u32c0-\u33ff\u4dc0-\u4dff\ua490-\ua4c6\ua700-\ua716\ua720\ua721\ua789\ua78a\ua828-\ua82b\ua836-\ua839\uaa77-\uaa79\uab5b\uab6a\uab6b\ufb29\ufbb2-\ufbc1\ufdfc\ufdfd\ufe62\ufe64-\ufe66\ufe69\uff04\uff0b\uff1c-\uff1e\uff3e\uff40\uff5c\uff5e\uffe0-\uffe6\uffe8-\uffee\ufffc\ufffd]/]}),L.languages.purs=L.languages.purescript}},5221:function(J){"use strict";J.exports=C,C.displayName="python",C.aliases=["py"];function C(d){d.languages.python={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0,greedy:!0},"string-interpolation":{pattern:/(?:f|fr|rf)(?:("""|''')[\s\S]*?\1|("|')(?:\\.|(?!\2)[^\\\r\n])*\2)/i,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^{])(?:\{\{)*)\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}]|\{(?!\{)(?:[^{}])+\})+\})+\}/,lookbehind:!0,inside:{"format-spec":{pattern:/(:)[^:(){}]+(?=\}$)/,lookbehind:!0},"conversion-option":{pattern://,alias:"punctuation"},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|br|rb)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:"string"},string:{pattern:/(?:[rub]|br|rb)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/m,lookbehind:!0,alias:["annotation","punctuation"],inside:{punctuation:/\./}},keyword:/\b(?:_(?=\s*:)|and|as|assert|async|await|break|case|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|match|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:False|None|True)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?(?!\w)/i,operator:/[-+%=]=?|!=|:=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},d.languages.python["string-interpolation"].inside.interpolation.inside.rest=d.languages.python,d.languages.py=d.languages.python}},27447:function(J){"use strict";J.exports=C,C.displayName="q",C.aliases=[];function C(d){d.languages.q={string:/"(?:\\.|[^"\\\r\n])*"/,comment:[{pattern:/([\t )\]}])\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|\r?\n|\r)\/[\t ]*(?:(?:\r?\n|\r)(?:.*(?:\r?\n|\r(?!\n)))*?(?:\\(?=[\t ]*(?:\r?\n|\r))|$)|\S.*)/,lookbehind:!0,greedy:!0},{pattern:/^\\[\t ]*(?:\r?\n|\r)[\s\S]+/m,greedy:!0},{pattern:/^#!.+/m,greedy:!0}],symbol:/`(?::\S+|[\w.]*)/,datetime:{pattern:/0N[mdzuvt]|0W[dtz]|\d{4}\.\d\d(?:m|\.\d\d(?:T(?:\d\d(?::\d\d(?::\d\d(?:[.:]\d\d\d)?)?)?)?)?[dz]?)|\d\d:\d\d(?::\d\d(?:[.:]\d\d\d)?)?[uvt]?/,alias:"number"},number:/\b(?![01]:)(?:0N[hje]?|0W[hj]?|0[wn]|0x[\da-fA-F]+|\d+(?:\.\d*)?(?:e[+-]?\d+)?[hjfeb]?)/,keyword:/\\\w+\b|\b(?:abs|acos|aj0?|all|and|any|asc|asin|asof|atan|attr|avgs?|binr?|by|ceiling|cols|cor|cos|count|cov|cross|csv|cut|delete|deltas|desc|dev|differ|distinct|div|do|dsave|ej|enlist|eval|except|exec|exit|exp|fby|fills|first|fkeys|flip|floor|from|get|getenv|group|gtime|hclose|hcount|hdel|hopen|hsym|iasc|identity|idesc|if|ij|in|insert|inter|inv|keys?|last|like|list|ljf?|load|log|lower|lsq|ltime|ltrim|mavg|maxs?|mcount|md5|mdev|med|meta|mins?|mmax|mmin|mmu|mod|msum|neg|next|not|null|or|over|parse|peach|pj|plist|prds?|prev|prior|rand|rank|ratios|raze|read0|read1|reciprocal|reval|reverse|rload|rotate|rsave|rtrim|save|scan|scov|sdev|select|set|setenv|show|signum|sin|sqrt|ssr?|string|sublist|sums?|sv|svar|system|tables|tan|til|trim|txf|type|uj|ungroup|union|update|upper|upsert|value|var|views?|vs|wavg|where|while|within|wj1?|wsum|ww|xasc|xbar|xcols?|xdesc|xexp|xgroup|xkey|xlog|xprev|xrank)\b/,adverb:{pattern:/['\/\\]:?|\beach\b/,alias:"function"},verb:{pattern:/(?:\B\.\B|\b[01]:|<[=>]?|>=?|[:+\-*%,!?~=|$&#@^]):?|\b_\b:?/,alias:"operator"},punctuation:/[(){}\[\];.]/}}},73191:function(J){"use strict";J.exports=C,C.displayName="qml",C.aliases=[];function C(d){(function(b){for(var I=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,L=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,B=/(?:[^\\()[\]{}"'/]|<string>|\/(?![*/])|<comment>|\(<expr>*\)|\[<expr>*\]|\{<expr>*\}|\\[\s\S])/.source.replace(/<string>/g,function(){return I}).replace(/<comment>/g,function(){return L}),V=0;V<2;V++)B=B.replace(/<expr>/g,function(){return B});B=B.replace(/<expr>/g,"[^\\s\\S]"),b.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(<js>*\)\s*\{<js>*\}/.source.replace(/<js>/g,function(){return B}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:b.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}])<js>)+/.source.replace(/<js>/g,function(){return B}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:b.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}})(d)}},75542:function(J){"use strict";J.exports=C,C.displayName="qore",C.aliases=[];function C(d){d.languages.qore=d.languages.extend("clike",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:\/\/|#).*)/,lookbehind:!0},string:{pattern:/("|')(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0},keyword:/\b(?:abstract|any|assert|binary|bool|boolean|break|byte|case|catch|char|class|code|const|continue|data|default|do|double|else|enum|extends|final|finally|float|for|goto|hash|if|implements|import|inherits|instanceof|int|interface|long|my|native|new|nothing|null|object|our|own|private|reference|rethrow|return|short|soft(?:bool|date|float|int|list|number|string)|static|strictfp|string|sub|super|switch|synchronized|this|throw|throws|transient|try|void|volatile|while)\b/,boolean:/\b(?:false|true)\b/i,function:/\$?\b(?!\d)\w+(?=\()/,number:/\b(?:0b[01]+|0x(?:[\da-f]*\.)?[\da-fp\-]+|(?:\d+(?:\.\d+)?|\.\d+)(?:e\d+)?[df]|(?:\d+(?:\.\d+)?|\.\d+))\b/i,operator:{pattern:/(^|[^.])(?:\+[+=]?|-[-=]?|[!=](?:==?|~)?|>>?=?|<(?:=>?|<=?)?|&[&=]?|\|[|=]?|[*\/%^]=?|[~?])/,lookbehind:!0},variable:/\$(?!\d)\w+\b/})}},50323:function(J){"use strict";J.exports=C,C.displayName="qsharp",C.aliases=["qs"];function C(d){(function(b){function I(it,Ue){return it.replace(/<<(\d+)>>/g,function(Ie,Pe){return"(?:"+Ue[+Pe]+")"})}function L(it,Ue,Ie){return RegExp(I(it,Ue),Ie||"")}function B(it,Ue){for(var Ie=0;Ie<Ue;Ie++)it=it.replace(/<<self>>/g,function(){return"(?:"+it+")"});return it.replace(/<<self>>/g,"[^\\s\\S]")}var V={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function Q(it){return"\\b(?:"+it.trim().replace(/ /g,"|")+")\\b"}var M=RegExp(Q(V.type+" "+V.other)),de=/\b[A-Za-z_]\w*\b/.source,he=I(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[de]),re={keyword:M,punctuation:/[<>()?,.:[\]]/},De=/"(?:\\.|[^\\"])*"/.source;b.languages.qsharp=b.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:L(/(^|[^$\\])<<0>>/.source,[De]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:L(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[he]),lookbehind:!0,inside:re},{pattern:L(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[he]),lookbehind:!0,inside:re}],keyword:M,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),b.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var ne=B(I(/\{(?:[^"{}]|<<0>>|<<self>>)*\}/.source,[De]),2);b.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:L(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[ne]),greedy:!0,inside:{interpolation:{pattern:L(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[ne]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:b.languages.qsharp}}},string:/[\s\S]+/}}})})(d),d.languages.qs=d.languages.qsharp}},44298:function(J){"use strict";J.exports=C,C.displayName="r",C.aliases=[];function C(d){d.languages.r={comment:/#.*/,string:{pattern:/(['"])(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},"percent-operator":{pattern:/%[^%\s]*%/,alias:"operator"},boolean:/\b(?:FALSE|TRUE)\b/,ellipsis:/\.\.(?:\.|\d+)/,number:[/\b(?:Inf|NaN)\b/,/(?:\b0x[\dA-Fa-f]+(?:\.\d*)?|\b\d+(?:\.\d*)?|\B\.\d+)(?:[EePp][+-]?\d+)?[iL]?/],keyword:/\b(?:NA|NA_character_|NA_complex_|NA_integer_|NA_real_|NULL|break|else|for|function|if|in|next|repeat|while)\b/,operator:/->?>?|<(?:=|<?-)?|[>=!]=?|::?|&&?|\|\|?|[+*\/^$@~]/,punctuation:/[(){}\[\],;]/}}},9634:function(J,C,d){"use strict";var b=d(48780);J.exports=I,I.displayName="racket",I.aliases=["rkt"];function I(L){L.register(b),L.languages.racket=L.languages.extend("scheme",{"lambda-parameter":{pattern:/([(\[]lambda\s+[(\[])[^()\[\]'\s]+/,lookbehind:!0}}),L.languages.insertBefore("racket","string",{lang:{pattern:/^#lang.+/m,greedy:!0,alias:"keyword"}}),L.languages.rkt=L.languages.racket}},75266:function(J){"use strict";J.exports=C,C.displayName="reason",C.aliases=[];function C(d){d.languages.reason=d.languages.extend("clike",{string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^\\\r\n"])*"/,greedy:!0},"class-name":/\b[A-Z]\w*/,keyword:/\b(?:and|as|assert|begin|class|constraint|do|done|downto|else|end|exception|external|for|fun|function|functor|if|in|include|inherit|initializer|lazy|let|method|module|mutable|new|nonrec|object|of|open|or|private|rec|sig|struct|switch|then|to|try|type|val|virtual|when|while|with)\b/,operator:/\.{3}|:[:=]|\|>|->|=(?:==?|>)?|<=?|>=?|[|^?'#!~`]|[+\-*\/]\.?|\b(?:asr|land|lor|lsl|lsr|lxor|mod)\b/}),d.languages.insertBefore("reason","class-name",{char:{pattern:/'(?:\\x[\da-f]{2}|\\o[0-3][0-7][0-7]|\\\d{3}|\\.|[^'\\\r\n])'/,greedy:!0},constructor:/\b[A-Z]\w*\b(?!\s*\.)/,label:{pattern:/\b[a-z]\w*(?=::)/,alias:"symbol"}}),delete d.languages.reason.function}},48139:function(J){"use strict";J.exports=C,C.displayName="regex",C.aliases=[];function C(d){(function(b){var I={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},L=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,B={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},V={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},Q="(?:[^\\\\-]|"+L.source+")",M=RegExp(Q+"-"+Q),de={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};b.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:M,inside:{escape:L,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":I,"char-set":V,escape:L}},"special-escape":I,"char-set":B,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":de}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:L,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]|<?[=!]|[idmnsuxU]+(?:-[idmnsuxU]+)?:?))?/,alias:"punctuation",inside:{"group-name":de}},{pattern:/\)/,alias:"punctuation"}],quantifier:{pattern:/(?:[+*?]|\{\d+(?:,\d*)?\})[?+]?/,alias:"number"},alternation:{pattern:/\|/,alias:"keyword"}}})(d)}},97534:function(J){"use strict";J.exports=C,C.displayName="rego",C.aliases=[];function C(d){d.languages.rego={comment:/#.*/,property:{pattern:/(^|[^\\.])(?:"(?:\\.|[^\\"\r\n])*"|`[^`]*`|\b[a-z_]\w*\b)(?=\s*:(?!=))/i,lookbehind:!0,greedy:!0},string:{pattern:/(^|[^\\])"(?:\\.|[^\\"\r\n])*"|`[^`]*`/,lookbehind:!0,greedy:!0},keyword:/\b(?:as|default|else|import|not|null|package|set(?=\s*\()|some|with)\b/,boolean:/\b(?:false|true)\b/,function:{pattern:/\b[a-z_]\w*\b(?:\s*\.\s*\b[a-z_]\w*\b)*(?=\s*\()/i,inside:{namespace:/\b\w+\b(?=\s*\.)/,punctuation:/\./}},number:/-?\b\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,operator:/[-+*/%|&]|[<>:=]=?|!=|\b_\b/,punctuation:/[,;.\[\]{}()]/}}},90826:function(J){"use strict";J.exports=C,C.displayName="renpy",C.aliases=["rpy"];function C(d){d.languages.renpy={comment:{pattern:/(^|[^\\])#.+/,lookbehind:!0},string:{pattern:/("""|''')[\s\S]+?\1|("|')(?:\\.|(?!\2)[^\\])*\2|(?:^#?(?:(?:[0-9a-fA-F]){3}|[0-9a-fA-F]{6})$)/m,greedy:!0},function:/\b[a-z_]\w*(?=\()/i,property:/\b(?:Update|UpdateVersion|action|activate_sound|adv_nvl_transition|after_load_transition|align|alpha|alt|anchor|antialias|area|auto|background|bar_invert|bar_resizing|bar_vertical|black_color|bold|bottom_bar|bottom_gutter|bottom_margin|bottom_padding|box_reverse|box_wrap|can_update|caret|child|color|crop|default_afm_enable|default_afm_time|default_fullscreen|default_text_cps|developer|directory_name|drag_handle|drag_joined|drag_name|drag_raise|draggable|dragged|drop_shadow|drop_shadow_color|droppable|dropped|easein|easeout|edgescroll|end_game_transition|end_splash_transition|enter_replay_transition|enter_sound|enter_transition|enter_yesno_transition|executable_name|exit_replay_transition|exit_sound|exit_transition|exit_yesno_transition|fadein|fadeout|first_indent|first_spacing|fit_first|focus|focus_mask|font|foreground|game_main_transition|get_installed_packages|google_play_key|google_play_salt|ground|has_music|has_sound|has_voice|height|help|hinting|hover|hover_background|hover_color|hover_sound|hovered|hyperlink_functions|idle|idle_color|image_style|include_update|insensitive|insensitive_background|insensitive_color|inside|intra_transition|italic|justify|kerning|keyboard_focus|language|layer_clipping|layers|layout|left_bar|left_gutter|left_margin|left_padding|length|line_leading|line_overlap_split|line_spacing|linear|main_game_transition|main_menu_music|maximum|min_width|minimum|minwidth|modal|mouse|mousewheel|name|narrator_menu|newline_indent|nvl_adv_transition|offset|order_reverse|outlines|overlay_functions|pos|position|prefix|radius|range|rest_indent|right_bar|right_gutter|right_margin|right_padding|rotate|rotate_pad|ruby_style|sample_sound|save_directory|say_attribute_transition|screen_height|screen_width|scrollbars|selected_hover|selected_hover_color|selected_idle|selected_idle_color|selected_insensitive|show_side_image|show_two_window|side_spacing|side_xpos|side_ypos|size|size_group|slow_cps|slow_cps_multiplier|spacing|strikethrough|subpixel|text_align|text_style|text_xpos|text_y_fudge|text_ypos|thumb|thumb_offset|thumb_shadow|thumbnail_height|thumbnail_width|time|top_bar|top_gutter|top_margin|top_padding|translations|underline|unscrollable|update|value|version|version_name|version_tuple|vertical|width|window_hide_transition|window_icon|window_left_padding|window_show_transition|window_title|windows_icon|xadjustment|xalign|xanchor|xanchoraround|xaround|xcenter|xfill|xinitial|xmargin|xmaximum|xminimum|xoffset|xofsset|xpadding|xpos|xsize|xzoom|yadjustment|yalign|yanchor|yanchoraround|yaround|ycenter|yfill|yinitial|ymargin|ymaximum|yminimum|yoffset|ypadding|ypos|ysize|ysizexysize|yzoom|zoom|zorder)\b/,tag:/\b(?:bar|block|button|buttoscreenn|drag|draggroup|fixed|frame|grid|[hv]box|hotbar|hotspot|image|imagebutton|imagemap|input|key|label|menu|mm_menu_frame|mousearea|nvl|parallel|screen|self|side|tag|text|textbutton|timer|vbar|viewport|window)\b|\$/,keyword:/\b(?:None|add|adjustment|alignaround|allow|angle|animation|around|as|assert|behind|box_layout|break|build|cache|call|center|changed|child_size|choice|circles|class|clear|clicked|clipping|clockwise|config|contains|continue|corner1|corner2|counterclockwise|def|default|define|del|delay|disabled|disabled_text|dissolve|elif|else|event|except|exclude|exec|expression|fade|finally|for|from|function|global|gm_root|has|hide|id|if|import|in|init|is|jump|knot|lambda|left|less_rounded|mm_root|movie|music|null|on|onlayer|pass|pause|persistent|play|print|python|queue|raise|random|renpy|repeat|return|right|rounded_window|scene|scope|set|show|slow|slow_abortable|slow_done|sound|stop|store|style|style_group|substitute|suffix|theme|transform|transform_anchor|transpose|try|ui|unhovered|updater|use|voice|while|widget|widget_hover|widget_selected|widget_text|yield)\b/,boolean:/\b(?:[Ff]alse|[Tt]rue)\b/,number:/(?:\b(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?)|\B\.\d+)(?:e[+-]?\d+)?j?/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]|\b(?:and|at|not|or|with)\b/,punctuation:/[{}[\];(),.:]/},d.languages.rpy=d.languages.renpy}},63919:function(J){"use strict";J.exports=C,C.displayName="rest",C.aliases=[];function C(d){d.languages.rest={table:[{pattern:/(^[\t ]*)(?:\+[=-]+)+\+(?:\r?\n|\r)(?:\1[+|].+[+|](?:\r?\n|\r))+\1(?:\+[=-]+)+\+/m,lookbehind:!0,inside:{punctuation:/\||(?:\+[=-]+)+\+/}},{pattern:/(^[\t ]*)=+ [ =]*=(?:(?:\r?\n|\r)\1.+)+(?:\r?\n|\r)\1=+ [ =]*=(?=(?:\r?\n|\r){2}|\s*$)/m,lookbehind:!0,inside:{punctuation:/[=-]+/}}],"substitution-def":{pattern:/(^[\t ]*\.\. )\|(?:[^|\s](?:[^|]*[^|\s])?)\| [^:]+::/m,lookbehind:!0,inside:{substitution:{pattern:/^\|(?:[^|\s]|[^|\s][^|]*[^|\s])\|/,alias:"attr-value",inside:{punctuation:/^\||\|$/}},directive:{pattern:/( )(?! )[^:]+::/,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}}}},"link-target":[{pattern:/(^[\t ]*\.\. )\[[^\]]+\]/m,lookbehind:!0,alias:"string",inside:{punctuation:/^\[|\]$/}},{pattern:/(^[\t ]*\.\. )_(?:`[^`]+`|(?:[^:\\]|\\.)+):/m,lookbehind:!0,alias:"string",inside:{punctuation:/^_|:$/}}],directive:{pattern:/(^[\t ]*\.\. )[^:]+::/m,lookbehind:!0,alias:"function",inside:{punctuation:/::$/}},comment:{pattern:/(^[\t ]*\.\.)(?:(?: .+)?(?:(?:\r?\n|\r).+)+| .+)(?=(?:\r?\n|\r){2}|$)/m,lookbehind:!0},title:[{pattern:/^(([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+)(?:\r?\n|\r).+(?:\r?\n|\r)\1$/m,inside:{punctuation:/^[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+|[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}},{pattern:/(^|(?:\r?\n|\r){2}).+(?:\r?\n|\r)([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2+(?=\r?\n|\r|$)/,lookbehind:!0,inside:{punctuation:/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]+$/,important:/.+/}}],hr:{pattern:/((?:\r?\n|\r){2})([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\2{3,}(?=(?:\r?\n|\r){2})/,lookbehind:!0,alias:"punctuation"},field:{pattern:/(^[\t ]*):[^:\r\n]+:(?= )/m,lookbehind:!0,alias:"attr-name"},"command-line-option":{pattern:/(^[\t ]*)(?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?(?:, (?:[+-][a-z\d]|(?:--|\/)[a-z\d-]+)(?:[ =](?:[a-z][\w-]*|<[^<>]+>))?)*(?=(?:\r?\n|\r)? {2,}\S)/im,lookbehind:!0,alias:"symbol"},"literal-block":{pattern:/::(?:\r?\n|\r){2}([ \t]+)(?![ \t]).+(?:(?:\r?\n|\r)\1.+)*/,inside:{"literal-block-punctuation":{pattern:/^::/,alias:"punctuation"}}},"quoted-literal-block":{pattern:/::(?:\r?\n|\r){2}([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~]).*(?:(?:\r?\n|\r)\1.*)*/,inside:{"literal-block-punctuation":{pattern:/^(?:::|([!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~])\1*)/m,alias:"punctuation"}}},"list-bullet":{pattern:/(^[\t ]*)(?:[*+\-•‣⁃]|\(?(?:\d+|[a-z]|[ivxdclm]+)\)|(?:\d+|[a-z]|[ivxdclm]+)\.)(?= )/im,lookbehind:!0,alias:"punctuation"},"doctest-block":{pattern:/(^[\t ]*)>>> .+(?:(?:\r?\n|\r).+)*/m,lookbehind:!0,inside:{punctuation:/^>>>/}},inline:[{pattern:/(^|[\s\-:\/'"<(\[{])(?::[^:]+:`.*?`|`.*?`:[^:]+:|(\*\*?|``?|\|)(?!\s)(?:(?!\2).)*\S\2(?=[\s\-.,:;!?\\\/'")\]}]|$))/m,lookbehind:!0,inside:{bold:{pattern:/(^\*\*).+(?=\*\*$)/,lookbehind:!0},italic:{pattern:/(^\*).+(?=\*$)/,lookbehind:!0},"inline-literal":{pattern:/(^``).+(?=``$)/,lookbehind:!0,alias:"symbol"},role:{pattern:/^:[^:]+:|:[^:]+:$/,alias:"function",inside:{punctuation:/^:|:$/}},"interpreted-text":{pattern:/(^`).+(?=`$)/,lookbehind:!0,alias:"attr-value"},substitution:{pattern:/(^\|).+(?=\|$)/,lookbehind:!0,alias:"attr-value"},punctuation:/\*\*?|``?|\|/}}],link:[{pattern:/\[[^\[\]]+\]_(?=[\s\-.,:;!?\\\/'")\]}]|$)/,alias:"string",inside:{punctuation:/^\[|\]_$/}},{pattern:/(?:\b[a-z\d]+(?:[_.:+][a-z\d]+)*_?_|`[^`]+`_?_|_`[^`]+`)(?=[\s\-.,:;!?\\\/'")\]}]|$)/i,alias:"string",inside:{punctuation:/^_?`|`$|`?_?_$/}}],punctuation:{pattern:/(^[\t ]*)(?:\|(?= |$)|(?:---?|—|\.\.|__)(?= )|\.\.$)/m,lookbehind:!0}}}},68862:function(J){"use strict";J.exports=C,C.displayName="rip",C.aliases=[];function C(d){d.languages.rip={comment:{pattern:/#.*/,greedy:!0},char:{pattern:/\B`[^\s`'",.:;#\/\\()<>\[\]{}]\b/,greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},regex:{pattern:/(^|[^/])\/(?!\/)(?:\[[^\n\r\]]*\]|\\.|[^/\\\r\n\[])+\/(?=\s*(?:$|[\r\n,.;})]))/,lookbehind:!0,greedy:!0},keyword:/(?:=>|->)|\b(?:case|catch|class|else|exit|finally|if|raise|return|switch|try)\b/,builtin:/@|\bSystem\b/,boolean:/\b(?:false|true)\b/,date:/\b\d{4}-\d{2}-\d{2}\b/,time:/\b\d{2}:\d{2}:\d{2}\b/,datetime:/\b\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}\b/,symbol:/:[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/,number:/[+-]?\b(?:\d+\.\d+|\d+)\b/,punctuation:/(?:\.{2,3})|[`,.:;=\/\\()<>\[\]{}]/,reference:/[^\d\s`'",.:;#\/\\()<>\[\]{}][^\s`'",.:;#\/\\()<>\[\]{}]*/}}},39523:function(J){"use strict";J.exports=C,C.displayName="roboconf",C.aliases=[];function C(d){d.languages.roboconf={comment:/#.*/,keyword:{pattern:/(^|\s)(?:(?:external|import)\b|(?:facet|instance of)(?=[ \t]+[\w-]+[ \t]*\{))/,lookbehind:!0},component:{pattern:/[\w-]+(?=[ \t]*\{)/,alias:"variable"},property:/[\w.-]+(?=[ \t]*:)/,value:{pattern:/(=[ \t]*(?![ \t]))[^,;]+/,lookbehind:!0,alias:"attr-value"},optional:{pattern:/\(optional\)/,alias:"builtin"},wildcard:{pattern:/(\.)\*/,lookbehind:!0,alias:"operator"},punctuation:/[{},.;:=]/}}},31207:function(J){"use strict";J.exports=C,C.displayName="robotframework",C.aliases=[];function C(d){(function(b){var I={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},L={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function B(de,he){var re={};re["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var De in he)re[De]=he[De];return re.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},re.variable=L,re.comment=I,{pattern:RegExp(/^ ?\*{3}[ \t]*<name>[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(/<name>/g,function(){return de}),"im"),alias:"section",inside:re}}var V={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},Q={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:L}},M={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:L}};b.languages.robotframework={settings:B("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:B("Variables"),"test-cases":B("Test Cases",{"test-name":Q,documentation:V,property:M}),keywords:B("Keywords",{"keyword-name":Q,documentation:V,property:M}),tasks:B("Tasks",{"task-name":Q,documentation:V,property:M}),comment:I},b.languages.robot=b.languages.robotframework})(d)}},75308:function(J){"use strict";J.exports=C,C.displayName="ruby",C.aliases=["rb"];function C(d){(function(b){b.languages.ruby=b.languages.extend("clike",{comment:{pattern:/#.*|^=begin\s[\s\S]*?^=end/m,greedy:!0},"class-name":{pattern:/(\b(?:class|module)\s+|\bcatch\s+\()[\w.\\]+|\b[A-Z_]\w*(?=\s*\.\s*new\b)/,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:BEGIN|END|alias|and|begin|break|case|class|def|define_method|defined|do|each|else|elsif|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|private|protected|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/,operator:/\.{2,3}|&\.|===|<?=>|[!=]?~|(?:&&|\|\||<<|>>|\*\*|[+\-*/%<>!^&|=])=?|[?:]/,punctuation:/[(){}[\].,;]/}),b.languages.insertBefore("ruby","operator",{"double-colon":{pattern:/::/,alias:"punctuation"}});var I={pattern:/((?:^|[^\\])(?:\\{2})*)#\{(?:[^{}]|\{[^{}]*\})*\}/,lookbehind:!0,inside:{content:{pattern:/^(#\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:b.languages.ruby},delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"}}};delete b.languages.ruby.function;var L="(?:"+[/([^a-zA-Z0-9\s{(\[<=])(?:(?!\1)[^\\]|\\[\s\S])*\1/.source,/\((?:[^()\\]|\\[\s\S]|\((?:[^()\\]|\\[\s\S])*\))*\)/.source,/\{(?:[^{}\\]|\\[\s\S]|\{(?:[^{}\\]|\\[\s\S])*\})*\}/.source,/\[(?:[^\[\]\\]|\\[\s\S]|\[(?:[^\[\]\\]|\\[\s\S])*\])*\]/.source,/<(?:[^<>\\]|\\[\s\S]|<(?:[^<>\\]|\\[\s\S])*>)*>/.source].join("|")+")",B=/(?:"(?:\\.|[^"\\\r\n])*"|(?:\b[a-zA-Z_]\w*|[^\s\0-\x7F]+)[?!]?|\$.)/.source;b.languages.insertBefore("ruby","keyword",{"regex-literal":[{pattern:RegExp(/%r/.source+L+/[egimnosux]{0,6}/.source),greedy:!0,inside:{interpolation:I,regex:/[\s\S]+/}},{pattern:/(^|[^/])\/(?!\/)(?:\[[^\r\n\]]+\]|\\.|[^[/\\\r\n])+\/[egimnosux]{0,6}(?=\s*(?:$|[\r\n,.;})#]))/,lookbehind:!0,greedy:!0,inside:{interpolation:I,regex:/[\s\S]+/}}],variable:/[@$]+[a-zA-Z_]\w*(?:[?!]|\b)/,symbol:[{pattern:RegExp(/(^|[^:]):/.source+B),lookbehind:!0,greedy:!0},{pattern:RegExp(/([\r\n{(,][ \t]*)/.source+B+/(?=:(?!:))/.source),lookbehind:!0,greedy:!0}],"method-definition":{pattern:/(\bdef\s+)\w+(?:\s*\.\s*\w+)?/,lookbehind:!0,inside:{function:/\b\w+$/,keyword:/^self\b/,"class-name":/^\w+/,punctuation:/\./}}}),b.languages.insertBefore("ruby","string",{"string-literal":[{pattern:RegExp(/%[qQiIwWs]?/.source+L),greedy:!0,inside:{interpolation:I,string:/[\s\S]+/}},{pattern:/("|')(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|(?!\1)[^\\#\r\n])*\1/,greedy:!0,inside:{interpolation:I,string:/[\s\S]+/}},{pattern:/<<[-~]?([a-z_]\w*)[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?[a-z_]\w*|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?/}},interpolation:I,string:/[\s\S]+/}},{pattern:/<<[-~]?'([a-z_]\w*)'[\r\n](?:.*[\r\n])*?[\t ]*\1/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<[-~]?'[a-z_]\w*'|\b[a-z_]\w*$/i,inside:{symbol:/\b\w+/,punctuation:/^<<[-~]?'|'$/}},string:/[\s\S]+/}}],"command-literal":[{pattern:RegExp(/%x/.source+L),greedy:!0,inside:{interpolation:I,command:{pattern:/[\s\S]+/,alias:"string"}}},{pattern:/`(?:#\{[^}]+\}|#(?!\{)|\\(?:\r\n|[\s\S])|[^\\`#\r\n])*`/,greedy:!0,inside:{interpolation:I,command:{pattern:/[\s\S]+/,alias:"string"}}}]}),delete b.languages.ruby.string,b.languages.insertBefore("ruby","number",{builtin:/\b(?:Array|Bignum|Binding|Class|Continuation|Dir|Exception|FalseClass|File|Fixnum|Float|Hash|IO|Integer|MatchData|Method|Module|NilClass|Numeric|Object|Proc|Range|Regexp|Stat|String|Struct|Symbol|TMS|Thread|ThreadGroup|Time|TrueClass)\b/,constant:/\b[A-Z][A-Z0-9_]*(?:[?!]|\b)/}),b.languages.rb=b.languages.ruby})(d)}},45315:function(J){"use strict";J.exports=C,C.displayName="rust",C.aliases=[];function C(d){(function(b){for(var I=/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|<self>)*\*\//.source,L=0;L<2;L++)I=I.replace(/<self>/g,function(){return I});I=I.replace(/<self>/g,function(){return/[^\s\S]/.source}),b.languages.rust={comment:[{pattern:RegExp(/(^|[^\\])/.source+I),lookbehind:!0,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],string:{pattern:/b?"(?:\\[\s\S]|[^\\"])*"|b?r(#*)"(?:[^"]|"(?!\1))*"\1/,greedy:!0},char:{pattern:/b?'(?:\\(?:x[0-7][\da-fA-F]|u\{(?:[\da-fA-F]_*){1,6}\}|.)|[^\\\r\n\t'])'/,greedy:!0},attribute:{pattern:/#!?\[(?:[^\[\]"]|"(?:\\[\s\S]|[^\\"])*")*\]/,greedy:!0,alias:"attr-name",inside:{string:null}},"closure-params":{pattern:/([=(,:]\s*|\bmove\s*)\|[^|]*\||\|[^|]*\|(?=\s*(?:\{|->))/,lookbehind:!0,greedy:!0,inside:{"closure-punctuation":{pattern:/^\||\|$/,alias:"punctuation"},rest:null}},"lifetime-annotation":{pattern:/'\w+/,alias:"symbol"},"fragment-specifier":{pattern:/(\$\w+:)[a-z]+/,lookbehind:!0,alias:"punctuation"},variable:/\$\w+/,"function-definition":{pattern:/(\bfn\s+)\w+/,lookbehind:!0,alias:"function"},"type-definition":{pattern:/(\b(?:enum|struct|trait|type|union)\s+)\w+/,lookbehind:!0,alias:"class-name"},"module-declaration":[{pattern:/(\b(?:crate|mod)\s+)[a-z][a-z_\d]*/,lookbehind:!0,alias:"namespace"},{pattern:/(\b(?:crate|self|super)\s*)::\s*[a-z][a-z_\d]*\b(?:\s*::(?:\s*[a-z][a-z_\d]*\s*::)*)?/,lookbehind:!0,alias:"namespace",inside:{punctuation:/::/}}],keyword:[/\b(?:Self|abstract|as|async|await|become|box|break|const|continue|crate|do|dyn|else|enum|extern|final|fn|for|if|impl|in|let|loop|macro|match|mod|move|mut|override|priv|pub|ref|return|self|static|struct|super|trait|try|type|typeof|union|unsafe|unsized|use|virtual|where|while|yield)\b/,/\b(?:bool|char|f(?:32|64)|[ui](?:8|16|32|64|128|size)|str)\b/],function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())/,macro:{pattern:/\b\w+!/,alias:"property"},constant:/\b[A-Z_][A-Z_\d]+\b/,"class-name":/\b[A-Z]\w*\b/,namespace:{pattern:/(?:\b[a-z][a-z_\d]*\s*::\s*)*\b[a-z][a-z_\d]*\s*::(?!\s*<)/,inside:{punctuation:/::/}},number:/\b(?:0x[\dA-Fa-f](?:_?[\dA-Fa-f])*|0o[0-7](?:_?[0-7])*|0b[01](?:_?[01])*|(?:(?:\d(?:_?\d)*)?\.)?\d(?:_?\d)*(?:[Ee][+-]?\d+)?)(?:_?(?:f32|f64|[iu](?:8|16|32|64|size)?))?\b/,boolean:/\b(?:false|true)\b/,punctuation:/->|\.\.=|\.{1,3}|::|[{}[\];(),:]/,operator:/[-+*\/%!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?=?|[@?]/},b.languages.rust["closure-params"].inside.rest=b.languages.rust,b.languages.rust.attribute.inside.string=b.languages.rust.string})(d)}},13794:function(J){"use strict";J.exports=C,C.displayName="sas",C.aliases=[];function C(d){(function(b){var I=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,L=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,B={pattern:RegExp(I+"[bx]"),alias:"number"},V={pattern:/&[a-z_]\w*/i},Q={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},M={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},de=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],he={pattern:RegExp(I),greedy:!0},re=/[$%@.(){}\[\];,\\]/,De={pattern:/%?\b\w+(?=\()/,alias:"keyword"},ne={function:De,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":V,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:L,"numeric-constant":B,punctuation:re,string:he},it={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},Ue={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},Ie={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},Pe={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},ze=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,Ee={pattern:RegExp(/(^|\s)(?:action\s+)?(?:<act>)\.[a-z]+\b[^;]+/.source.replace(/<act>/g,function(){return ze}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:<act>)\.[a-z]+\b/.source.replace(/<act>/g,function(){return ze}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:de,function:De,"arg-value":ne["arg-value"],operator:ne.operator,argument:ne.arg,number:L,"numeric-constant":B,punctuation:re,string:he}},fe={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};b.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:<str>|[^;"'])+;/.source.replace(/<str>/g,function(){return I}),"im"),alias:"language-sql",inside:b.languages.sql},"global-statements":Ie,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:L,"numeric-constant":B,punctuation:re,string:he}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:de,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,alias:"language-groovy",inside:b.languages.groovy},keyword:fe,"submit-statement":Pe,"global-statements":Ie,number:L,"numeric-constant":B,punctuation:re,string:he}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:de,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:<str>|[^"'])+?(?=endsubmit;)/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,alias:"language-lua",inside:b.languages.lua},keyword:fe,"submit-statement":Pe,"global-statements":Ie,number:L,"numeric-constant":B,punctuation:re,string:he}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:de,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:ne}},"cas-actions":Ee,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:ne},step:M,keyword:fe,function:De,format:it,altformat:Ue,"global-statements":Ie,number:L,"numeric-constant":B,punctuation:re,string:he}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|<str>)+;/.source.replace(/<str>/g,function(){return I}),"im"),lookbehind:!0,inside:ne},"macro-keyword":Q,"macro-variable":V,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":Q,"macro-variable":V,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:re}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:de,number:L,"numeric-constant":B}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:ne},"cas-actions":Ee,comment:de,function:De,format:it,altformat:Ue,"numeric-constant":B,datetime:{pattern:RegExp(I+"(?:dt?|t)"),alias:"number"},string:he,step:M,keyword:fe,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:L,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:re}})(d)}},41299:function(J){"use strict";J.exports=C,C.displayName="sass",C.aliases=[];function C(d){(function(b){b.languages.sass=b.languages.extend("css",{comment:{pattern:/^([ \t]*)\/[\/*].*(?:(?:\r?\n|\r)\1[ \t].+)*/m,lookbehind:!0,greedy:!0}}),b.languages.insertBefore("sass","atrule",{"atrule-line":{pattern:/^(?:[ \t]*)[@+=].+/m,greedy:!0,inside:{atrule:/(?:@[\w-]+|[+=])/}}}),delete b.languages.sass.atrule;var I=/\$[-\w]+|#\{\$[-\w]+\}/,L=[/[+*\/%]|[=!]=|<=?|>=?|\b(?:and|not|or)\b/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}];b.languages.insertBefore("sass","property",{"variable-line":{pattern:/^[ \t]*\$.+/m,greedy:!0,inside:{punctuation:/:/,variable:I,operator:L}},"property-line":{pattern:/^[ \t]*(?:[^:\s]+ *:.*|:[^:\s].*)/m,greedy:!0,inside:{property:[/[^:\s]+(?=\s*:)/,{pattern:/(:)[^:\s]+/,lookbehind:!0}],punctuation:/:/,variable:I,operator:L,important:b.languages.sass.important}}}),delete b.languages.sass.property,delete b.languages.sass.important,b.languages.insertBefore("sass","punctuation",{selector:{pattern:/^([ \t]*)\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*(?:,(?:\r?\n|\r)\1[ \t]+\S(?:,[^,\r\n]+|[^,\r\n]*)(?:,[^,\r\n]+)*)*/m,lookbehind:!0,greedy:!0}})})(d)}},98177:function(J,C,d){"use strict";var b=d(7093);J.exports=I,I.displayName="scala",I.aliases=[];function I(L){L.register(b),L.languages.scala=L.languages.extend("java",{"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,greedy:!0},keyword:/<-|=>|\b(?:abstract|case|catch|class|def|do|else|extends|final|finally|for|forSome|if|implicit|import|lazy|match|new|null|object|override|package|private|protected|return|sealed|self|super|this|throw|trait|try|type|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),L.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:L.languages.scala}}},string:/[\s\S]+/}}}),delete L.languages.scala["class-name"],delete L.languages.scala.function}},48780:function(J){"use strict";J.exports=C,C.displayName="scheme",C.aliases=[];function C(d){(function(b){b.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(I({"<ureal dec>":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"<real dec>":/[+-]?<ureal dec>|[+-](?:inf|nan)\.0/.source,"<imaginary dec>":/[+-](?:<ureal dec>|(?:inf|nan)\.0)?i/.source,"<complex dec>":/<real dec>(?:@<real dec>|<imaginary dec>)?|<imaginary dec>/.source,"<num dec>":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?<complex dec>/.source,"<ureal box>":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"<real box>":/[+-]?<ureal box>|[+-](?:inf|nan)\.0/.source,"<imaginary box>":/[+-](?:<ureal box>|(?:inf|nan)\.0)?i/.source,"<complex box>":/<real box>(?:@<real box>|<imaginary box>)?|<imaginary box>/.source,"<num box>":/#[box](?:#[ei])?|(?:#[ei])?#[box]<complex box>/.source,"<number>":/(^|[()\[\]\s])(?:<num dec>|<num box>)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function I(L){for(var B in L)L[B]=L[B].replace(/<[\w\s]+>/g,function(V){return"(?:"+L[V].trim()+")"});return L[B]}})(d)}},79793:function(J){"use strict";J.exports=C,C.displayName="scss",C.aliases=[];function C(d){d.languages.scss=d.languages.extend("css",{comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},atrule:{pattern:/@[\w-](?:\([^()]+\)|[^()\s]|\s+(?!\s))*?(?=\s+[{;])/,inside:{rule:/@[\w-]+/}},url:/(?:[-a-z]+-)?url(?=\()/i,selector:{pattern:/(?=\S)[^@;{}()]?(?:[^@;{}()\s]|\s+(?!\s)|#\{\$[-\w]+\})+(?=\s*\{(?:\}|\s|[^}][^:{}]*[:{][^}]))/,inside:{parent:{pattern:/&/,alias:"important"},placeholder:/%[-\w]+/,variable:/\$[-\w]+|#\{\$[-\w]+\}/}},property:{pattern:/(?:[-\w]|\$[-\w]|#\{\$[-\w]+\})+(?=\s*:)/,inside:{variable:/\$[-\w]+|#\{\$[-\w]+\}/}}}),d.languages.insertBefore("scss","atrule",{keyword:[/@(?:content|debug|each|else(?: if)?|extend|for|forward|function|if|import|include|mixin|return|use|warn|while)\b/i,{pattern:/( )(?:from|through)(?= )/,lookbehind:!0}]}),d.languages.insertBefore("scss","important",{variable:/\$[-\w]+|#\{\$[-\w]+\}/}),d.languages.insertBefore("scss","function",{"module-modifier":{pattern:/\b(?:as|hide|show|with)\b/i,alias:"keyword"},placeholder:{pattern:/%[-\w]+/,alias:"selector"},statement:{pattern:/\B!(?:default|optional)\b/i,alias:"keyword"},boolean:/\b(?:false|true)\b/,null:{pattern:/\bnull\b/,alias:"keyword"},operator:{pattern:/(\s)(?:[-+*\/%]|[=!]=|<=?|>=?|and|not|or)(?=\s)/,lookbehind:!0}}),d.languages.scss.atrule.inside.rest=d.languages.scss}},52085:function(J,C,d){"use strict";var b=d(3058);J.exports=I,I.displayName="shellSession",I.aliases=[];function I(L){L.register(b),function(B){var V=[/"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/.source,/'[^']*'/.source,/\$'(?:[^'\\]|\\[\s\S])*'/.source,/<<-?\s*(["']?)(\w+)\1\s[\s\S]*?[\r\n]\2/.source].join("|");B.languages["shell-session"]={command:{pattern:RegExp(/^/.source+"(?:"+(/[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+(?::[^\0-\x1F$#%*?"<>:;|]+)?/.source+"|"+/[/~.][^\0-\x1F$#%*?"<>@:;|]*/.source)+")?"+/[$#%](?=\s)/.source+/(?:[^\\\r\n \t'"<$]|[ \t](?:(?!#)|#.*$)|\\(?:[^\r]|\r\n?)|\$(?!')|<(?!<)|<<str>>)+/.source.replace(/<<str>>/g,function(){return V}),"m"),greedy:!0,inside:{info:{pattern:/^[^#$%]+/,alias:"punctuation",inside:{user:/^[^\s@:$#%*!/\\]+@[^\r\n@:$#%*!/\\]+/,punctuation:/:/,path:/[\s\S]+/}},bash:{pattern:/(^[$#%]\s*)\S[\s\S]*/,lookbehind:!0,alias:"language-bash",inside:B.languages.bash},"shell-symbol":{pattern:/^[$#%]/,alias:"important"}}},output:/.(?:.*(?:[\r\n]|.$))*/},B.languages["sh-session"]=B.languages.shellsession=B.languages["shell-session"]}(L)}},65411:function(J){"use strict";J.exports=C,C.displayName="smali",C.aliases=[];function C(d){d.languages.smali={comment:/#.*/,string:{pattern:/"(?:[^\r\n\\"]|\\.)*"|'(?:[^\r\n\\']|\\(?:.|u[\da-fA-F]{4}))'/,greedy:!0},"class-name":{pattern:/(^|[^L])L(?:(?:\w+|`[^`\r\n]*`)\/)*(?:[\w$]+|`[^`\r\n]*`)(?=\s*;)/,lookbehind:!0,inside:{"class-name":{pattern:/(^L|\/)(?:[\w$]+|`[^`\r\n]*`)$/,lookbehind:!0},namespace:{pattern:/^(L)(?:(?:\w+|`[^`\r\n]*`)\/)+/,lookbehind:!0,inside:{punctuation:/\//}},builtin:/^L/}},builtin:[{pattern:/([();\[])[BCDFIJSVZ]+/,lookbehind:!0},{pattern:/([\w$>]:)[BCDFIJSVZ]/,lookbehind:!0}],keyword:[{pattern:/(\.end\s+)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])\.(?!\d)[\w-]+/,lookbehind:!0},{pattern:/(^|[^\w.-])(?:abstract|annotation|bridge|constructor|enum|final|interface|private|protected|public|runtime|static|synthetic|system|transient)(?![\w.-])/,lookbehind:!0}],function:{pattern:/(^|[^\w.-])(?:\w+|<[\w$-]+>)(?=\()/,lookbehind:!0},field:{pattern:/[\w$]+(?=:)/,alias:"variable"},register:{pattern:/(^|[^\w.-])[vp]\d(?![\w.-])/,lookbehind:!0,alias:"variable"},boolean:{pattern:/(^|[^\w.-])(?:false|true)(?![\w.-])/,lookbehind:!0},number:{pattern:/(^|[^/\w.-])-?(?:NAN|INFINITY|0x(?:[\dA-F]+(?:\.[\dA-F]*)?|\.[\dA-F]+)(?:p[+-]?[\dA-F]+)?|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?)[dflst]?(?![\w.-])/i,lookbehind:!0},label:{pattern:/(:)\w+/,lookbehind:!0,alias:"property"},operator:/->|\.\.|[\[=]/,punctuation:/[{}(),;:]/}}},84750:function(J){"use strict";J.exports=C,C.displayName="smalltalk",C.aliases=[];function C(d){d.languages.smalltalk={comment:{pattern:/"(?:""|[^"])*"/,greedy:!0},char:{pattern:/\$./,greedy:!0},string:{pattern:/'(?:''|[^'])*'/,greedy:!0},symbol:/#[\da-z]+|#(?:-|([+\/\\*~<>=@%|&?!])\1?)|#(?=\()/i,"block-arguments":{pattern:/(\[\s*):[^\[|]*\|/,lookbehind:!0,inside:{variable:/:[\da-z]+/i,punctuation:/\|/}},"temporary-variables":{pattern:/\|[^|]+\|/,inside:{variable:/[\da-z]+/i,punctuation:/\|/}},keyword:/\b(?:new|nil|self|super)\b/,boolean:/\b(?:false|true)\b/,number:[/\d+r-?[\dA-Z]+(?:\.[\dA-Z]+)?(?:e-?\d+)?/,/\b\d+(?:\.\d+)?(?:e-?\d+)?/],operator:/[<=]=?|:=|~[~=]|\/\/?|\\\\|>[>=]?|[!^+\-*&|,@]/,punctuation:/[.;:?\[\](){}]/}}},88216:function(J,C,d){"use strict";var b=d(51478);J.exports=I,I.displayName="smarty",I.aliases=[];function I(L){L.register(b),function(B){B.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:B.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},B.languages.smarty["embedded-php"].inside.smarty.inside=B.languages.smarty,B.languages.smarty.string[0].inside.interpolation.inside.expression.inside=B.languages.smarty;var V=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,Q=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>|\{(?:[^{}"']|<str>)*\})*\})*\}/.source.replace(/<str>/g,function(){return V.source}),"g");B.hooks.add("before-tokenize",function(M){var de="{literal}",he="{/literal}",re=!1;B.languages["markup-templating"].buildPlaceholders(M,"smarty",Q,function(De){return De===he&&(re=!1),re?!1:(De===de&&(re=!0),!0)})}),B.hooks.add("after-tokenize",function(M){B.languages["markup-templating"].tokenizePlaceholders(M,"smarty")})}(L)}},66433:function(J){"use strict";J.exports=C,C.displayName="sml",C.aliases=["smlnj"];function C(d){(function(b){var I=/\b(?:abstype|and|andalso|as|case|datatype|do|else|end|eqtype|exception|fn|fun|functor|handle|if|in|include|infix|infixr|let|local|nonfix|of|op|open|orelse|raise|rec|sharing|sig|signature|struct|structure|then|type|val|where|while|with|withtype)\b/i;b.languages.sml={comment:/\(\*(?:[^*(]|\*(?!\))|\((?!\*)|\(\*(?:[^*(]|\*(?!\))|\((?!\*))*\*\))*\*\)/,string:{pattern:/#?"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":[{pattern:RegExp(/((?:^|[^:]):\s*)<TERMINAL>(?:\s*(?:(?:\*|->)\s*<TERMINAL>|,\s*<TERMINAL>(?:(?=<NOT-LAST>)|(?!<NOT-LAST>)\s+<LONG-ID>)))*/.source.replace(/<NOT-LAST>/g,function(){return/\s*(?:[*,]|->)/.source}).replace(/<TERMINAL>/g,function(){return/(?:'[\w']*|<LONG-ID>|\((?:[^()]|\([^()]*\))*\)|\{(?:[^{}]|\{[^{}]*\})*\})(?:\s+<LONG-ID>)*/.source}).replace(/<LONG-ID>/g,function(){return/(?!<KEYWORD>)[a-z\d_][\w'.]*/.source}).replace(/<KEYWORD>/g,function(){return I.source}),"i"),lookbehind:!0,greedy:!0,inside:null},{pattern:/((?:^|[^\w'])(?:datatype|exception|functor|signature|structure|type)\s+)[a-z_][\w'.]*/i,lookbehind:!0}],function:{pattern:/((?:^|[^\w'])fun\s+)[a-z_][\w'.]*/i,lookbehind:!0},keyword:I,variable:{pattern:/(^|[^\w'])'[\w']*/,lookbehind:!0},number:/~?\b(?:\d+(?:\.\d+)?(?:e~?\d+)?|0x[\da-f]+)\b/i,word:{pattern:/\b0w(?:\d+|x[\da-f]+)\b/i,alias:"constant"},boolean:/\b(?:false|true)\b/i,operator:/\.\.\.|:[>=:]|=>?|->|[<>]=?|[!+\-*/^#|@~]/,punctuation:/[(){}\[\].:,;]/},b.languages.sml["class-name"][0].inside=b.languages.sml,b.languages.smlnj=b.languages.sml})(d)}},34855:function(J){"use strict";J.exports=C,C.displayName="solidity",C.aliases=["sol"];function C(d){d.languages.solidity=d.languages.extend("clike",{"class-name":{pattern:/(\b(?:contract|enum|interface|library|new|struct|using)\s+)(?!\d)[\w$]+/,lookbehind:!0},keyword:/\b(?:_|anonymous|as|assembly|assert|break|calldata|case|constant|constructor|continue|contract|default|delete|do|else|emit|enum|event|external|for|from|function|if|import|indexed|inherited|interface|internal|is|let|library|mapping|memory|modifier|new|payable|pragma|private|public|pure|require|returns?|revert|selfdestruct|solidity|storage|struct|suicide|switch|this|throw|using|var|view|while)\b/,operator:/=>|->|:=|=:|\*\*|\+\+|--|\|\||&&|<<=?|>>=?|[-+*/%^&|<>!=]=?|[~?]/}),d.languages.insertBefore("solidity","keyword",{builtin:/\b(?:address|bool|byte|u?int(?:8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?|string|bytes(?:[1-9]|[12]\d|3[0-2])?)\b/}),d.languages.insertBefore("solidity","number",{version:{pattern:/([<>]=?|\^)\d+\.\d+\.\d+\b/,lookbehind:!0,alias:"number"}}),d.languages.sol=d.languages.solidity}},12998:function(J){"use strict";J.exports=C,C.displayName="solutionFile",C.aliases=[];function C(d){(function(b){var I={pattern:/\{[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}\}/i,alias:"constant",inside:{punctuation:/[{}]/}};b.languages["solution-file"]={comment:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,greedy:!0,inside:{guid:I}},object:{pattern:/^([ \t]*)(?:([A-Z]\w*)\b(?=.*(?:\r\n?|\n)(?:\1[ \t].*(?:\r\n?|\n))*\1End\2(?=[ \t]*$))|End[A-Z]\w*(?=[ \t]*$))/m,lookbehind:!0,greedy:!0,alias:"keyword"},property:{pattern:/^([ \t]*)(?!\s)[^\r\n"#=()]*[^\s"#=()](?=\s*=)/m,lookbehind:!0,inside:{guid:I}},guid:I,number:/\b\d+(?:\.\d+)*\b/,boolean:/\b(?:FALSE|TRUE)\b/,operator:/=/,punctuation:/[(),]/},b.languages.sln=b.languages["solution-file"]})(d)}},10202:function(J,C,d){"use strict";var b=d(51478);J.exports=I,I.displayName="soy",I.aliases=[];function I(L){L.register(b),function(B){var V=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,Q=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;B.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:V,greedy:!0},number:Q,punctuation:/[\[\].?]/}},string:{pattern:V,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:Q,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},B.hooks.add("before-tokenize",function(M){var de=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,he="{literal}",re="{/literal}",De=!1;B.languages["markup-templating"].buildPlaceholders(M,"soy",de,function(ne){return ne===re&&(De=!1),De?!1:(ne===he&&(De=!0),!0)})}),B.hooks.add("after-tokenize",function(M){B.languages["markup-templating"].tokenizePlaceholders(M,"soy")})}(L)}},41186:function(J,C,d){"use strict";var b=d(58710);J.exports=I,I.displayName="sparql",I.aliases=["rq"];function I(L){L.register(b),L.languages.sparql=L.languages.extend("turtle",{boolean:/\b(?:false|true)\b/i,variable:{pattern:/[?$]\w+/,greedy:!0}}),L.languages.insertBefore("sparql","punctuation",{keyword:[/\b(?:A|ADD|ALL|AS|ASC|ASK|BNODE|BY|CLEAR|CONSTRUCT|COPY|CREATE|DATA|DEFAULT|DELETE|DESC|DESCRIBE|DISTINCT|DROP|EXISTS|FILTER|FROM|GROUP|HAVING|INSERT|INTO|LIMIT|LOAD|MINUS|MOVE|NAMED|NOT|NOW|OFFSET|OPTIONAL|ORDER|RAND|REDUCED|SELECT|SEPARATOR|SERVICE|SILENT|STRUUID|UNION|USING|UUID|VALUES|WHERE)\b/i,/\b(?:ABS|AVG|BIND|BOUND|CEIL|COALESCE|CONCAT|CONTAINS|COUNT|DATATYPE|DAY|ENCODE_FOR_URI|FLOOR|GROUP_CONCAT|HOURS|IF|IRI|isBLANK|isIRI|isLITERAL|isNUMERIC|isURI|LANG|LANGMATCHES|LCASE|MAX|MD5|MIN|MINUTES|MONTH|REGEX|REPLACE|ROUND|sameTerm|SAMPLE|SECONDS|SHA1|SHA256|SHA384|SHA512|STR|STRAFTER|STRBEFORE|STRDT|STRENDS|STRLANG|STRLEN|STRSTARTS|SUBSTR|SUM|TIMEZONE|TZ|UCASE|URI|YEAR)\b(?=\s*\()/i,/\b(?:BASE|GRAPH|PREFIX)\b/i]}),L.languages.rq=L.languages.sparql}},68963:function(J){"use strict";J.exports=C,C.displayName="splunkSpl",C.aliases=[];function C(d){d.languages["splunk-spl"]={comment:/`comment\("(?:\\.|[^\\"])*"\)`/,string:{pattern:/"(?:\\.|[^\\"])*"/,greedy:!0},keyword:/\b(?:abstract|accum|addcoltotals|addinfo|addtotals|analyzefields|anomalies|anomalousvalue|anomalydetection|append|appendcols|appendcsv|appendlookup|appendpipe|arules|associate|audit|autoregress|bin|bucket|bucketdir|chart|cluster|cofilter|collect|concurrency|contingency|convert|correlate|datamodel|dbinspect|dedup|delete|delta|diff|erex|eval|eventcount|eventstats|extract|fieldformat|fields|fieldsummary|filldown|fillnull|findtypes|folderize|foreach|format|from|gauge|gentimes|geom|geomfilter|geostats|head|highlight|history|iconify|input|inputcsv|inputlookup|iplocation|join|kmeans|kv|kvform|loadjob|localize|localop|lookup|makecontinuous|makemv|makeresults|map|mcollect|metadata|metasearch|meventcollect|mstats|multikv|multisearch|mvcombine|mvexpand|nomv|outlier|outputcsv|outputlookup|outputtext|overlap|pivot|predict|rangemap|rare|regex|relevancy|reltime|rename|replace|rest|return|reverse|rex|rtorder|run|savedsearch|script|scrub|search|searchtxn|selfjoin|sendemail|set|setfields|sichart|sirare|sistats|sitimechart|sitop|sort|spath|stats|strcat|streamstats|table|tags|tail|timechart|timewrap|top|transaction|transpose|trendline|tscollect|tstats|typeahead|typelearner|typer|union|uniq|untable|where|x11|xmlkv|xmlunescape|xpath|xyseries)\b/i,"operator-word":{pattern:/\b(?:and|as|by|not|or|xor)\b/i,alias:"operator"},function:/\b\w+(?=\s*\()/,property:/\b\w+(?=\s*=(?!=))/,date:{pattern:/\b\d{1,2}\/\d{1,2}\/\d{1,4}(?:(?::\d{1,2}){3})?\b/,alias:"number"},number:/\b\d+(?:\.\d+)?\b/,boolean:/\b(?:f|false|t|true)\b/i,operator:/[<>=]=?|[-+*/%|]/,punctuation:/[()[\],]/}}},5569:function(J){"use strict";J.exports=C,C.displayName="sqf",C.aliases=[];function C(d){d.languages.sqf=d.languages.extend("clike",{string:{pattern:/"(?:(?:"")?[^"])*"(?!")|'(?:[^'])*'/,greedy:!0},keyword:/\b(?:breakOut|breakTo|call|case|catch|default|do|echo|else|execFSM|execVM|exitWith|for|forEach|forEachMember|forEachMemberAgent|forEachMemberTeam|from|goto|if|nil|preprocessFile|preprocessFileLineNumbers|private|scopeName|spawn|step|switch|then|throw|to|try|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\b(?:abs|accTime|acos|action|actionIDs|actionKeys|actionKeysImages|actionKeysNames|actionKeysNamesArray|actionName|actionParams|activateAddons|activatedAddons|activateKey|add3DENConnection|add3DENEventHandler|add3DENLayer|addAction|addBackpack|addBackpackCargo|addBackpackCargoGlobal|addBackpackGlobal|addCamShake|addCuratorAddons|addCuratorCameraArea|addCuratorEditableObjects|addCuratorEditingArea|addCuratorPoints|addEditorObject|addEventHandler|addForce|addForceGeneratorRTD|addGoggles|addGroupIcon|addHandgunItem|addHeadgear|addItem|addItemCargo|addItemCargoGlobal|addItemPool|addItemToBackpack|addItemToUniform|addItemToVest|addLiveStats|addMagazine|addMagazineAmmoCargo|addMagazineCargo|addMagazineCargoGlobal|addMagazineGlobal|addMagazinePool|addMagazines|addMagazineTurret|addMenu|addMenuItem|addMissionEventHandler|addMPEventHandler|addMusicEventHandler|addOwnedMine|addPlayerScores|addPrimaryWeaponItem|addPublicVariableEventHandler|addRating|addResources|addScore|addScoreSide|addSecondaryWeaponItem|addSwitchableUnit|addTeamMember|addToRemainsCollector|addTorque|addUniform|addVehicle|addVest|addWaypoint|addWeapon|addWeaponCargo|addWeaponCargoGlobal|addWeaponGlobal|addWeaponItem|addWeaponPool|addWeaponTurret|admin|agent|agents|AGLToASL|aimedAtTarget|aimPos|airDensityCurveRTD|airDensityRTD|airplaneThrottle|airportSide|AISFinishHeal|alive|all3DENEntities|allAirports|allControls|allCurators|allCutLayers|allDead|allDeadMen|allDisplays|allGroups|allMapMarkers|allMines|allMissionObjects|allow3DMode|allowCrewInImmobile|allowCuratorLogicIgnoreAreas|allowDamage|allowDammage|allowFileOperations|allowFleeing|allowGetIn|allowSprint|allPlayers|allSimpleObjects|allSites|allTurrets|allUnits|allUnitsUAV|allVariables|ammo|ammoOnPylon|animate|animateBay|animateDoor|animatePylon|animateSource|animationNames|animationPhase|animationSourcePhase|animationState|append|apply|armoryPoints|arrayIntersect|asin|ASLToAGL|ASLToATL|assert|assignAsCargo|assignAsCargoIndex|assignAsCommander|assignAsDriver|assignAsGunner|assignAsTurret|assignCurator|assignedCargo|assignedCommander|assignedDriver|assignedGunner|assignedItems|assignedTarget|assignedTeam|assignedVehicle|assignedVehicleRole|assignItem|assignTeam|assignToAirport|atan|atan2|atg|ATLToASL|attachedObject|attachedObjects|attachedTo|attachObject|attachTo|attackEnabled|backpack|backpackCargo|backpackContainer|backpackItems|backpackMagazines|backpackSpaceFor|behaviour|benchmark|binocular|blufor|boundingBox|boundingBoxReal|boundingCenter|briefingName|buildingExit|buildingPos|buldozer_EnableRoadDiag|buldozer_IsEnabledRoadDiag|buldozer_LoadNewRoads|buldozer_reloadOperMap|buttonAction|buttonSetAction|cadetMode|callExtension|camCommand|camCommit|camCommitPrepared|camCommitted|camConstuctionSetParams|camCreate|camDestroy|cameraEffect|cameraEffectEnableHUD|cameraInterest|cameraOn|cameraView|campaignConfigFile|camPreload|camPreloaded|camPrepareBank|camPrepareDir|camPrepareDive|camPrepareFocus|camPrepareFov|camPrepareFovRange|camPreparePos|camPrepareRelPos|camPrepareTarget|camSetBank|camSetDir|camSetDive|camSetFocus|camSetFov|camSetFovRange|camSetPos|camSetRelPos|camSetTarget|camTarget|camUseNVG|canAdd|canAddItemToBackpack|canAddItemToUniform|canAddItemToVest|cancelSimpleTaskDestination|canFire|canMove|canSlingLoad|canStand|canSuspend|canTriggerDynamicSimulation|canUnloadInCombat|canVehicleCargo|captive|captiveNum|cbChecked|cbSetChecked|ceil|channelEnabled|cheatsEnabled|checkAIFeature|checkVisibility|civilian|className|clear3DENAttribute|clear3DENInventory|clearAllItemsFromBackpack|clearBackpackCargo|clearBackpackCargoGlobal|clearForcesRTD|clearGroupIcons|clearItemCargo|clearItemCargoGlobal|clearItemPool|clearMagazineCargo|clearMagazineCargoGlobal|clearMagazinePool|clearOverlay|clearRadio|clearVehicleInit|clearWeaponCargo|clearWeaponCargoGlobal|clearWeaponPool|clientOwner|closeDialog|closeDisplay|closeOverlay|collapseObjectTree|collect3DENHistory|collectiveRTD|combatMode|commandArtilleryFire|commandChat|commander|commandFire|commandFollow|commandFSM|commandGetOut|commandingMenu|commandMove|commandRadio|commandStop|commandSuppressiveFire|commandTarget|commandWatch|comment|commitOverlay|compile|compileFinal|completedFSM|composeText|configClasses|configFile|configHierarchy|configName|configNull|configProperties|configSourceAddonList|configSourceMod|configSourceModList|confirmSensorTarget|connectTerminalToUAV|controlNull|controlsGroupCtrl|copyFromClipboard|copyToClipboard|copyWaypoints|cos|count|countEnemy|countFriendly|countSide|countType|countUnknown|create3DENComposition|create3DENEntity|createAgent|createCenter|createDialog|createDiaryLink|createDiaryRecord|createDiarySubject|createDisplay|createGearDialog|createGroup|createGuardedPoint|createLocation|createMarker|createMarkerLocal|createMenu|createMine|createMissionDisplay|createMPCampaignDisplay|createSimpleObject|createSimpleTask|createSite|createSoundSource|createTask|createTeam|createTrigger|createUnit|createVehicle|createVehicleCrew|createVehicleLocal|crew|ctAddHeader|ctAddRow|ctClear|ctCurSel|ctData|ctFindHeaderRows|ctFindRowHeader|ctHeaderControls|ctHeaderCount|ctRemoveHeaders|ctRemoveRows|ctrlActivate|ctrlAddEventHandler|ctrlAngle|ctrlAutoScrollDelay|ctrlAutoScrollRewind|ctrlAutoScrollSpeed|ctrlChecked|ctrlClassName|ctrlCommit|ctrlCommitted|ctrlCreate|ctrlDelete|ctrlEnable|ctrlEnabled|ctrlFade|ctrlHTMLLoaded|ctrlIDC|ctrlIDD|ctrlMapAnimAdd|ctrlMapAnimClear|ctrlMapAnimCommit|ctrlMapAnimDone|ctrlMapCursor|ctrlMapMouseOver|ctrlMapScale|ctrlMapScreenToWorld|ctrlMapWorldToScreen|ctrlModel|ctrlModelDirAndUp|ctrlModelScale|ctrlParent|ctrlParentControlsGroup|ctrlPosition|ctrlRemoveAllEventHandlers|ctrlRemoveEventHandler|ctrlScale|ctrlSetActiveColor|ctrlSetAngle|ctrlSetAutoScrollDelay|ctrlSetAutoScrollRewind|ctrlSetAutoScrollSpeed|ctrlSetBackgroundColor|ctrlSetChecked|ctrlSetDisabledColor|ctrlSetEventHandler|ctrlSetFade|ctrlSetFocus|ctrlSetFont|ctrlSetFontH1|ctrlSetFontH1B|ctrlSetFontH2|ctrlSetFontH2B|ctrlSetFontH3|ctrlSetFontH3B|ctrlSetFontH4|ctrlSetFontH4B|ctrlSetFontH5|ctrlSetFontH5B|ctrlSetFontH6|ctrlSetFontH6B|ctrlSetFontHeight|ctrlSetFontHeightH1|ctrlSetFontHeightH2|ctrlSetFontHeightH3|ctrlSetFontHeightH4|ctrlSetFontHeightH5|ctrlSetFontHeightH6|ctrlSetFontHeightSecondary|ctrlSetFontP|ctrlSetFontPB|ctrlSetFontSecondary|ctrlSetForegroundColor|ctrlSetModel|ctrlSetModelDirAndUp|ctrlSetModelScale|ctrlSetPixelPrecision|ctrlSetPosition|ctrlSetScale|ctrlSetStructuredText|ctrlSetText|ctrlSetTextColor|ctrlSetTextColorSecondary|ctrlSetTextSecondary|ctrlSetTooltip|ctrlSetTooltipColorBox|ctrlSetTooltipColorShade|ctrlSetTooltipColorText|ctrlShow|ctrlShown|ctrlText|ctrlTextHeight|ctrlTextSecondary|ctrlTextWidth|ctrlType|ctrlVisible|ctRowControls|ctRowCount|ctSetCurSel|ctSetData|ctSetHeaderTemplate|ctSetRowTemplate|ctSetValue|ctValue|curatorAddons|curatorCamera|curatorCameraArea|curatorCameraAreaCeiling|curatorCoef|curatorEditableObjects|curatorEditingArea|curatorEditingAreaType|curatorMouseOver|curatorPoints|curatorRegisteredObjects|curatorSelected|curatorWaypointCost|current3DENOperation|currentChannel|currentCommand|currentMagazine|currentMagazineDetail|currentMagazineDetailTurret|currentMagazineTurret|currentMuzzle|currentNamespace|currentTask|currentTasks|currentThrowable|currentVisionMode|currentWaypoint|currentWeapon|currentWeaponMode|currentWeaponTurret|currentZeroing|cursorObject|cursorTarget|customChat|customRadio|cutFadeOut|cutObj|cutRsc|cutText|damage|date|dateToNumber|daytime|deActivateKey|debriefingText|debugFSM|debugLog|deg|delete3DENEntities|deleteAt|deleteCenter|deleteCollection|deleteEditorObject|deleteGroup|deleteGroupWhenEmpty|deleteIdentity|deleteLocation|deleteMarker|deleteMarkerLocal|deleteRange|deleteResources|deleteSite|deleteStatus|deleteTeam|deleteVehicle|deleteVehicleCrew|deleteWaypoint|detach|detectedMines|diag_activeMissionFSMs|diag_activeScripts|diag_activeSQFScripts|diag_activeSQSScripts|diag_captureFrame|diag_captureFrameToFile|diag_captureSlowFrame|diag_codePerformance|diag_drawMode|diag_dynamicSimulationEnd|diag_enable|diag_enabled|diag_fps|diag_fpsMin|diag_frameNo|diag_lightNewLoad|diag_list|diag_log|diag_logSlowFrame|diag_mergeConfigFile|diag_recordTurretLimits|diag_setLightNew|diag_tickTime|diag_toggle|dialog|diarySubjectExists|didJIP|didJIPOwner|difficulty|difficultyEnabled|difficultyEnabledRTD|difficultyOption|direction|directSay|disableAI|disableCollisionWith|disableConversation|disableDebriefingStats|disableMapIndicators|disableNVGEquipment|disableRemoteSensors|disableSerialization|disableTIEquipment|disableUAVConnectability|disableUserInput|displayAddEventHandler|displayCtrl|displayNull|displayParent|displayRemoveAllEventHandlers|displayRemoveEventHandler|displaySetEventHandler|dissolveTeam|distance|distance2D|distanceSqr|distributionRegion|do3DENAction|doArtilleryFire|doFire|doFollow|doFSM|doGetOut|doMove|doorPhase|doStop|doSuppressiveFire|doTarget|doWatch|drawArrow|drawEllipse|drawIcon|drawIcon3D|drawLine|drawLine3D|drawLink|drawLocation|drawPolygon|drawRectangle|drawTriangle|driver|drop|dynamicSimulationDistance|dynamicSimulationDistanceCoef|dynamicSimulationEnabled|dynamicSimulationSystemEnabled|east|edit3DENMissionAttributes|editObject|editorSetEventHandler|effectiveCommander|emptyPositions|enableAI|enableAIFeature|enableAimPrecision|enableAttack|enableAudioFeature|enableAutoStartUpRTD|enableAutoTrimRTD|enableCamShake|enableCaustics|enableChannel|enableCollisionWith|enableCopilot|enableDebriefingStats|enableDiagLegend|enableDynamicSimulation|enableDynamicSimulationSystem|enableEndDialog|enableEngineArtillery|enableEnvironment|enableFatigue|enableGunLights|enableInfoPanelComponent|enableIRLasers|enableMimics|enablePersonTurret|enableRadio|enableReload|enableRopeAttach|enableSatNormalOnDetail|enableSaving|enableSentences|enableSimulation|enableSimulationGlobal|enableStamina|enableStressDamage|enableTeamSwitch|enableTraffic|enableUAVConnectability|enableUAVWaypoints|enableVehicleCargo|enableVehicleSensor|enableWeaponDisassembly|endl|endLoadingScreen|endMission|engineOn|enginesIsOnRTD|enginesPowerRTD|enginesRpmRTD|enginesTorqueRTD|entities|environmentEnabled|estimatedEndServerTime|estimatedTimeLeft|evalObjectArgument|everyBackpack|everyContainer|exec|execEditorScript|exp|expectedDestination|exportJIPMessages|eyeDirection|eyePos|face|faction|fadeMusic|fadeRadio|fadeSound|fadeSpeech|failMission|fillWeaponsFromPool|find|findCover|findDisplay|findEditorObject|findEmptyPosition|findEmptyPositionReady|findIf|findNearestEnemy|finishMissionInit|finite|fire|fireAtTarget|firstBackpack|flag|flagAnimationPhase|flagOwner|flagSide|flagTexture|fleeing|floor|flyInHeight|flyInHeightASL|fog|fogForecast|fogParams|forceAddUniform|forceAtPositionRTD|forcedMap|forceEnd|forceFlagTexture|forceFollowRoad|forceGeneratorRTD|forceMap|forceRespawn|forceSpeed|forceWalk|forceWeaponFire|forceWeatherChange|forgetTarget|format|formation|formationDirection|formationLeader|formationMembers|formationPosition|formationTask|formatText|formLeader|freeLook|fromEditor|fuel|fullCrew|gearIDCAmmoCount|gearSlotAmmoCount|gearSlotData|get3DENActionState|get3DENAttribute|get3DENCamera|get3DENConnections|get3DENEntity|get3DENEntityID|get3DENGrid|get3DENIconsVisible|get3DENLayerEntities|get3DENLinesVisible|get3DENMissionAttribute|get3DENMouseOver|get3DENSelected|getAimingCoef|getAllEnvSoundControllers|getAllHitPointsDamage|getAllOwnedMines|getAllSoundControllers|getAmmoCargo|getAnimAimPrecision|getAnimSpeedCoef|getArray|getArtilleryAmmo|getArtilleryComputerSettings|getArtilleryETA|getAssignedCuratorLogic|getAssignedCuratorUnit|getBackpackCargo|getBleedingRemaining|getBurningValue|getCameraViewDirection|getCargoIndex|getCenterOfMass|getClientState|getClientStateNumber|getCompatiblePylonMagazines|getConnectedUAV|getContainerMaxLoad|getCursorObjectParams|getCustomAimCoef|getDammage|getDescription|getDir|getDirVisual|getDLCAssetsUsage|getDLCAssetsUsageByName|getDLCs|getDLCUsageTime|getEditorCamera|getEditorMode|getEditorObjectScope|getElevationOffset|getEngineTargetRpmRTD|getEnvSoundController|getFatigue|getFieldManualStartPage|getForcedFlagTexture|getFriend|getFSMVariable|getFuelCargo|getGroupIcon|getGroupIconParams|getGroupIcons|getHideFrom|getHit|getHitIndex|getHitPointDamage|getItemCargo|getMagazineCargo|getMarkerColor|getMarkerPos|getMarkerSize|getMarkerType|getMass|getMissionConfig|getMissionConfigValue|getMissionDLCs|getMissionLayerEntities|getMissionLayers|getModelInfo|getMousePosition|getMusicPlayedTime|getNumber|getObjectArgument|getObjectChildren|getObjectDLC|getObjectMaterials|getObjectProxy|getObjectTextures|getObjectType|getObjectViewDistance|getOxygenRemaining|getPersonUsedDLCs|getPilotCameraDirection|getPilotCameraPosition|getPilotCameraRotation|getPilotCameraTarget|getPlateNumber|getPlayerChannel|getPlayerScores|getPlayerUID|getPlayerUIDOld|getPos|getPosASL|getPosASLVisual|getPosASLW|getPosATL|getPosATLVisual|getPosVisual|getPosWorld|getPylonMagazines|getRelDir|getRelPos|getRemoteSensorsDisabled|getRepairCargo|getResolution|getRotorBrakeRTD|getShadowDistance|getShotParents|getSlingLoad|getSoundController|getSoundControllerResult|getSpeed|getStamina|getStatValue|getSuppression|getTerrainGrid|getTerrainHeightASL|getText|getTotalDLCUsageTime|getTrimOffsetRTD|getUnitLoadout|getUnitTrait|getUserMFDText|getUserMFDValue|getVariable|getVehicleCargo|getWeaponCargo|getWeaponSway|getWingsOrientationRTD|getWingsPositionRTD|getWPPos|glanceAt|globalChat|globalRadio|goggles|group|groupChat|groupFromNetId|groupIconSelectable|groupIconsVisible|groupId|groupOwner|groupRadio|groupSelectedUnits|groupSelectUnit|grpNull|gunner|gusts|halt|handgunItems|handgunMagazine|handgunWeapon|handsHit|hasInterface|hasPilotCamera|hasWeapon|hcAllGroups|hcGroupParams|hcLeader|hcRemoveAllGroups|hcRemoveGroup|hcSelected|hcSelectGroup|hcSetGroup|hcShowBar|hcShownBar|headgear|hideBody|hideObject|hideObjectGlobal|hideSelection|hint|hintC|hintCadet|hintSilent|hmd|hostMission|htmlLoad|HUDMovementLevels|humidity|image|importAllGroups|importance|in|inArea|inAreaArray|incapacitatedState|independent|inflame|inflamed|infoPanel|infoPanelComponentEnabled|infoPanelComponents|infoPanels|inGameUISetEventHandler|inheritsFrom|initAmbientLife|inPolygon|inputAction|inRangeOfArtillery|insertEditorObject|intersect|is3DEN|is3DENMultiplayer|isAbleToBreathe|isAgent|isAimPrecisionEnabled|isArray|isAutoHoverOn|isAutonomous|isAutoStartUpEnabledRTD|isAutotest|isAutoTrimOnRTD|isBleeding|isBurning|isClass|isCollisionLightOn|isCopilotEnabled|isDamageAllowed|isDedicated|isDLCAvailable|isEngineOn|isEqualTo|isEqualType|isEqualTypeAll|isEqualTypeAny|isEqualTypeArray|isEqualTypeParams|isFilePatchingEnabled|isFlashlightOn|isFlatEmpty|isForcedWalk|isFormationLeader|isGroupDeletedWhenEmpty|isHidden|isInRemainsCollector|isInstructorFigureEnabled|isIRLaserOn|isKeyActive|isKindOf|isLaserOn|isLightOn|isLocalized|isManualFire|isMarkedForCollection|isMultiplayer|isMultiplayerSolo|isNil|isNull|isNumber|isObjectHidden|isObjectRTD|isOnRoad|isPipEnabled|isPlayer|isRealTime|isRemoteExecuted|isRemoteExecutedJIP|isServer|isShowing3DIcons|isSimpleObject|isSprintAllowed|isStaminaEnabled|isSteamMission|isStreamFriendlyUIEnabled|isStressDamageEnabled|isText|isTouchingGround|isTurnedOut|isTutHintsEnabled|isUAVConnectable|isUAVConnected|isUIContext|isUniformAllowed|isVehicleCargo|isVehicleRadarOn|isVehicleSensorEnabled|isWalking|isWeaponDeployed|isWeaponRested|itemCargo|items|itemsWithMagazines|join|joinAs|joinAsSilent|joinSilent|joinString|kbAddDatabase|kbAddDatabaseTargets|kbAddTopic|kbHasTopic|kbReact|kbRemoveTopic|kbTell|kbWasSaid|keyImage|keyName|knowsAbout|land|landAt|landResult|language|laserTarget|lbAdd|lbClear|lbColor|lbColorRight|lbCurSel|lbData|lbDelete|lbIsSelected|lbPicture|lbPictureRight|lbSelection|lbSetColor|lbSetColorRight|lbSetCurSel|lbSetData|lbSetPicture|lbSetPictureColor|lbSetPictureColorDisabled|lbSetPictureColorSelected|lbSetPictureRight|lbSetPictureRightColor|lbSetPictureRightColorDisabled|lbSetPictureRightColorSelected|lbSetSelectColor|lbSetSelectColorRight|lbSetSelected|lbSetText|lbSetTextRight|lbSetTooltip|lbSetValue|lbSize|lbSort|lbSortByValue|lbText|lbTextRight|lbValue|leader|leaderboardDeInit|leaderboardGetRows|leaderboardInit|leaderboardRequestRowsFriends|leaderboardRequestRowsGlobal|leaderboardRequestRowsGlobalAroundUser|leaderboardsRequestUploadScore|leaderboardsRequestUploadScoreKeepBest|leaderboardState|leaveVehicle|libraryCredits|libraryDisclaimers|lifeState|lightAttachObject|lightDetachObject|lightIsOn|lightnings|limitSpeed|linearConversion|lineBreak|lineIntersects|lineIntersectsObjs|lineIntersectsSurfaces|lineIntersectsWith|linkItem|list|listObjects|listRemoteTargets|listVehicleSensors|ln|lnbAddArray|lnbAddColumn|lnbAddRow|lnbClear|lnbColor|lnbColorRight|lnbCurSelRow|lnbData|lnbDeleteColumn|lnbDeleteRow|lnbGetColumnsPosition|lnbPicture|lnbPictureRight|lnbSetColor|lnbSetColorRight|lnbSetColumnsPos|lnbSetCurSelRow|lnbSetData|lnbSetPicture|lnbSetPictureColor|lnbSetPictureColorRight|lnbSetPictureColorSelected|lnbSetPictureColorSelectedRight|lnbSetPictureRight|lnbSetText|lnbSetTextRight|lnbSetValue|lnbSize|lnbSort|lnbSortByValue|lnbText|lnbTextRight|lnbValue|load|loadAbs|loadBackpack|loadFile|loadGame|loadIdentity|loadMagazine|loadOverlay|loadStatus|loadUniform|loadVest|local|localize|locationNull|locationPosition|lock|lockCameraTo|lockCargo|lockDriver|locked|lockedCargo|lockedDriver|lockedTurret|lockIdentity|lockTurret|lockWP|log|logEntities|logNetwork|logNetworkTerminate|lookAt|lookAtPos|magazineCargo|magazines|magazinesAllTurrets|magazinesAmmo|magazinesAmmoCargo|magazinesAmmoFull|magazinesDetail|magazinesDetailBackpack|magazinesDetailUniform|magazinesDetailVest|magazinesTurret|magazineTurretAmmo|mapAnimAdd|mapAnimClear|mapAnimCommit|mapAnimDone|mapCenterOnCamera|mapGridPosition|markAsFinishedOnSteam|markerAlpha|markerBrush|markerColor|markerDir|markerPos|markerShape|markerSize|markerText|markerType|max|members|menuAction|menuAdd|menuChecked|menuClear|menuCollapse|menuData|menuDelete|menuEnable|menuEnabled|menuExpand|menuHover|menuPicture|menuSetAction|menuSetCheck|menuSetData|menuSetPicture|menuSetValue|menuShortcut|menuShortcutText|menuSize|menuSort|menuText|menuURL|menuValue|min|mineActive|mineDetectedBy|missionConfigFile|missionDifficulty|missionName|missionNamespace|missionStart|missionVersion|modelToWorld|modelToWorldVisual|modelToWorldVisualWorld|modelToWorldWorld|modParams|moonIntensity|moonPhase|morale|move|move3DENCamera|moveInAny|moveInCargo|moveInCommander|moveInDriver|moveInGunner|moveInTurret|moveObjectToEnd|moveOut|moveTime|moveTo|moveToCompleted|moveToFailed|musicVolume|name|nameSound|nearEntities|nearestBuilding|nearestLocation|nearestLocations|nearestLocationWithDubbing|nearestObject|nearestObjects|nearestTerrainObjects|nearObjects|nearObjectsReady|nearRoads|nearSupplies|nearTargets|needReload|netId|netObjNull|newOverlay|nextMenuItemIndex|nextWeatherChange|nMenuItems|numberOfEnginesRTD|numberToDate|objectCurators|objectFromNetId|objectParent|objNull|objStatus|onBriefingGear|onBriefingGroup|onBriefingNotes|onBriefingPlan|onBriefingTeamSwitch|onCommandModeChanged|onDoubleClick|onEachFrame|onGroupIconClick|onGroupIconOverEnter|onGroupIconOverLeave|onHCGroupSelectionChanged|onMapSingleClick|onPlayerConnected|onPlayerDisconnected|onPreloadFinished|onPreloadStarted|onShowNewObject|onTeamSwitch|openCuratorInterface|openDLCPage|openDSInterface|openMap|openSteamApp|openYoutubeVideo|opfor|orderGetIn|overcast|overcastForecast|owner|param|params|parseNumber|parseSimpleArray|parseText|parsingNamespace|particlesQuality|pi|pickWeaponPool|pitch|pixelGrid|pixelGridBase|pixelGridNoUIScale|pixelH|pixelW|playableSlotsNumber|playableUnits|playAction|playActionNow|player|playerRespawnTime|playerSide|playersNumber|playGesture|playMission|playMove|playMoveNow|playMusic|playScriptedMission|playSound|playSound3D|position|positionCameraToWorld|posScreenToWorld|posWorldToScreen|ppEffectAdjust|ppEffectCommit|ppEffectCommitted|ppEffectCreate|ppEffectDestroy|ppEffectEnable|ppEffectEnabled|ppEffectForceInNVG|precision|preloadCamera|preloadObject|preloadSound|preloadTitleObj|preloadTitleRsc|primaryWeapon|primaryWeaponItems|primaryWeaponMagazine|priority|processDiaryLink|processInitCommands|productVersion|profileName|profileNamespace|profileNameSteam|progressLoadingScreen|progressPosition|progressSetPosition|publicVariable|publicVariableClient|publicVariableServer|pushBack|pushBackUnique|putWeaponPool|queryItemsPool|queryMagazinePool|queryWeaponPool|rad|radioChannelAdd|radioChannelCreate|radioChannelRemove|radioChannelSetCallSign|radioChannelSetLabel|radioVolume|rain|rainbow|random|rank|rankId|rating|rectangular|registeredTasks|registerTask|reload|reloadEnabled|remoteControl|remoteExec|remoteExecCall|remoteExecutedOwner|remove3DENConnection|remove3DENEventHandler|remove3DENLayer|removeAction|removeAll3DENEventHandlers|removeAllActions|removeAllAssignedItems|removeAllContainers|removeAllCuratorAddons|removeAllCuratorCameraAreas|removeAllCuratorEditingAreas|removeAllEventHandlers|removeAllHandgunItems|removeAllItems|removeAllItemsWithMagazines|removeAllMissionEventHandlers|removeAllMPEventHandlers|removeAllMusicEventHandlers|removeAllOwnedMines|removeAllPrimaryWeaponItems|removeAllWeapons|removeBackpack|removeBackpackGlobal|removeCuratorAddons|removeCuratorCameraArea|removeCuratorEditableObjects|removeCuratorEditingArea|removeDrawIcon|removeDrawLinks|removeEventHandler|removeFromRemainsCollector|removeGoggles|removeGroupIcon|removeHandgunItem|removeHeadgear|removeItem|removeItemFromBackpack|removeItemFromUniform|removeItemFromVest|removeItems|removeMagazine|removeMagazineGlobal|removeMagazines|removeMagazinesTurret|removeMagazineTurret|removeMenuItem|removeMissionEventHandler|removeMPEventHandler|removeMusicEventHandler|removeOwnedMine|removePrimaryWeaponItem|removeSecondaryWeaponItem|removeSimpleTask|removeSwitchableUnit|removeTeamMember|removeUniform|removeVest|removeWeapon|removeWeaponAttachmentCargo|removeWeaponCargo|removeWeaponGlobal|removeWeaponTurret|reportRemoteTarget|requiredVersion|resetCamShake|resetSubgroupDirection|resistance|resize|resources|respawnVehicle|restartEditorCamera|reveal|revealMine|reverse|reversedMouseY|roadAt|roadsConnectedTo|roleDescription|ropeAttachedObjects|ropeAttachedTo|ropeAttachEnabled|ropeAttachTo|ropeCreate|ropeCut|ropeDestroy|ropeDetach|ropeEndPosition|ropeLength|ropes|ropeUnwind|ropeUnwound|rotorsForcesRTD|rotorsRpmRTD|round|runInitScript|safeZoneH|safeZoneW|safeZoneWAbs|safeZoneX|safeZoneXAbs|safeZoneY|save3DENInventory|saveGame|saveIdentity|saveJoysticks|saveOverlay|saveProfileNamespace|saveStatus|saveVar|savingEnabled|say|say2D|say3D|score|scoreSide|screenshot|screenToWorld|scriptDone|scriptName|scriptNull|scudState|secondaryWeapon|secondaryWeaponItems|secondaryWeaponMagazine|select|selectBestPlaces|selectDiarySubject|selectedEditorObjects|selectEditorObject|selectionNames|selectionPosition|selectLeader|selectMax|selectMin|selectNoPlayer|selectPlayer|selectRandom|selectRandomWeighted|selectWeapon|selectWeaponTurret|sendAUMessage|sendSimpleCommand|sendTask|sendTaskResult|sendUDPMessage|serverCommand|serverCommandAvailable|serverCommandExecutable|serverName|serverTime|set|set3DENAttribute|set3DENAttributes|set3DENGrid|set3DENIconsVisible|set3DENLayer|set3DENLinesVisible|set3DENLogicType|set3DENMissionAttribute|set3DENMissionAttributes|set3DENModelsVisible|set3DENObjectType|set3DENSelected|setAccTime|setActualCollectiveRTD|setAirplaneThrottle|setAirportSide|setAmmo|setAmmoCargo|setAmmoOnPylon|setAnimSpeedCoef|setAperture|setApertureNew|setArmoryPoints|setAttributes|setAutonomous|setBehaviour|setBleedingRemaining|setBrakesRTD|setCameraInterest|setCamShakeDefParams|setCamShakeParams|setCamUseTI|setCaptive|setCenterOfMass|setCollisionLight|setCombatMode|setCompassOscillation|setConvoySeparation|setCuratorCameraAreaCeiling|setCuratorCoef|setCuratorEditingAreaType|setCuratorWaypointCost|setCurrentChannel|setCurrentTask|setCurrentWaypoint|setCustomAimCoef|setCustomWeightRTD|setDamage|setDammage|setDate|setDebriefingText|setDefaultCamera|setDestination|setDetailMapBlendPars|setDir|setDirection|setDrawIcon|setDriveOnPath|setDropInterval|setDynamicSimulationDistance|setDynamicSimulationDistanceCoef|setEditorMode|setEditorObjectScope|setEffectCondition|setEngineRpmRTD|setFace|setFaceAnimation|setFatigue|setFeatureType|setFlagAnimationPhase|setFlagOwner|setFlagSide|setFlagTexture|setFog|setForceGeneratorRTD|setFormation|setFormationTask|setFormDir|setFriend|setFromEditor|setFSMVariable|setFuel|setFuelCargo|setGroupIcon|setGroupIconParams|setGroupIconsSelectable|setGroupIconsVisible|setGroupId|setGroupIdGlobal|setGroupOwner|setGusts|setHideBehind|setHit|setHitIndex|setHitPointDamage|setHorizonParallaxCoef|setHUDMovementLevels|setIdentity|setImportance|setInfoPanel|setLeader|setLightAmbient|setLightAttenuation|setLightBrightness|setLightColor|setLightDayLight|setLightFlareMaxDistance|setLightFlareSize|setLightIntensity|setLightnings|setLightUseFlare|setLocalWindParams|setMagazineTurretAmmo|setMarkerAlpha|setMarkerAlphaLocal|setMarkerBrush|setMarkerBrushLocal|setMarkerColor|setMarkerColorLocal|setMarkerDir|setMarkerDirLocal|setMarkerPos|setMarkerPosLocal|setMarkerShape|setMarkerShapeLocal|setMarkerSize|setMarkerSizeLocal|setMarkerText|setMarkerTextLocal|setMarkerType|setMarkerTypeLocal|setMass|setMimic|setMousePosition|setMusicEffect|setMusicEventHandler|setName|setNameSound|setObjectArguments|setObjectMaterial|setObjectMaterialGlobal|setObjectProxy|setObjectTexture|setObjectTextureGlobal|setObjectViewDistance|setOvercast|setOwner|setOxygenRemaining|setParticleCircle|setParticleClass|setParticleFire|setParticleParams|setParticleRandom|setPilotCameraDirection|setPilotCameraRotation|setPilotCameraTarget|setPilotLight|setPiPEffect|setPitch|setPlateNumber|setPlayable|setPlayerRespawnTime|setPos|setPosASL|setPosASL2|setPosASLW|setPosATL|setPosition|setPosWorld|setPylonLoadOut|setPylonsPriority|setRadioMsg|setRain|setRainbow|setRandomLip|setRank|setRectangular|setRepairCargo|setRotorBrakeRTD|setShadowDistance|setShotParents|setSide|setSimpleTaskAlwaysVisible|setSimpleTaskCustomData|setSimpleTaskDescription|setSimpleTaskDestination|setSimpleTaskTarget|setSimpleTaskType|setSimulWeatherLayers|setSize|setSkill|setSlingLoad|setSoundEffect|setSpeaker|setSpeech|setSpeedMode|setStamina|setStaminaScheme|setStatValue|setSuppression|setSystemOfUnits|setTargetAge|setTaskMarkerOffset|setTaskResult|setTaskState|setTerrainGrid|setText|setTimeMultiplier|setTitleEffect|setToneMapping|setToneMappingParams|setTrafficDensity|setTrafficDistance|setTrafficGap|setTrafficSpeed|setTriggerActivation|setTriggerArea|setTriggerStatements|setTriggerText|setTriggerTimeout|setTriggerType|setType|setUnconscious|setUnitAbility|setUnitLoadout|setUnitPos|setUnitPosWeak|setUnitRank|setUnitRecoilCoefficient|setUnitTrait|setUnloadInCombat|setUserActionText|setUserMFDText|setUserMFDValue|setVariable|setVectorDir|setVectorDirAndUp|setVectorUp|setVehicleAmmo|setVehicleAmmoDef|setVehicleArmor|setVehicleCargo|setVehicleId|setVehicleInit|setVehicleLock|setVehiclePosition|setVehicleRadar|setVehicleReceiveRemoteTargets|setVehicleReportOwnPosition|setVehicleReportRemoteTargets|setVehicleTIPars|setVehicleVarName|setVelocity|setVelocityModelSpace|setVelocityTransformation|setViewDistance|setVisibleIfTreeCollapsed|setWantedRpmRTD|setWaves|setWaypointBehaviour|setWaypointCombatMode|setWaypointCompletionRadius|setWaypointDescription|setWaypointForceBehaviour|setWaypointFormation|setWaypointHousePosition|setWaypointLoiterRadius|setWaypointLoiterType|setWaypointName|setWaypointPosition|setWaypointScript|setWaypointSpeed|setWaypointStatements|setWaypointTimeout|setWaypointType|setWaypointVisible|setWeaponReloadingTime|setWind|setWindDir|setWindForce|setWindStr|setWingForceScaleRTD|setWPPos|show3DIcons|showChat|showCinemaBorder|showCommandingMenu|showCompass|showCuratorCompass|showGPS|showHUD|showLegend|showMap|shownArtilleryComputer|shownChat|shownCompass|shownCuratorCompass|showNewEditorObject|shownGPS|shownHUD|shownMap|shownPad|shownRadio|shownScoretable|shownUAVFeed|shownWarrant|shownWatch|showPad|showRadio|showScoretable|showSubtitles|showUAVFeed|showWarrant|showWatch|showWaypoint|showWaypoints|side|sideAmbientLife|sideChat|sideEmpty|sideEnemy|sideFriendly|sideLogic|sideRadio|sideUnknown|simpleTasks|simulationEnabled|simulCloudDensity|simulCloudOcclusion|simulInClouds|simulWeatherSync|sin|size|sizeOf|skill|skillFinal|skipTime|sleep|sliderPosition|sliderRange|sliderSetPosition|sliderSetRange|sliderSetSpeed|sliderSpeed|slingLoadAssistantShown|soldierMagazines|someAmmo|sort|soundVolume|speaker|speed|speedMode|splitString|sqrt|squadParams|stance|startLoadingScreen|stop|stopEngineRTD|stopped|str|sunOrMoon|supportInfo|suppressFor|surfaceIsWater|surfaceNormal|surfaceType|swimInDepth|switchableUnits|switchAction|switchCamera|switchGesture|switchLight|switchMove|synchronizedObjects|synchronizedTriggers|synchronizedWaypoints|synchronizeObjectsAdd|synchronizeObjectsRemove|synchronizeTrigger|synchronizeWaypoint|systemChat|systemOfUnits|tan|targetKnowledge|targets|targetsAggregate|targetsQuery|taskAlwaysVisible|taskChildren|taskCompleted|taskCustomData|taskDescription|taskDestination|taskHint|taskMarkerOffset|taskNull|taskParent|taskResult|taskState|taskType|teamMember|teamMemberNull|teamName|teams|teamSwitch|teamSwitchEnabled|teamType|terminate|terrainIntersect|terrainIntersectASL|terrainIntersectAtASL|text|textLog|textLogFormat|tg|time|timeMultiplier|titleCut|titleFadeOut|titleObj|titleRsc|titleText|toArray|toFixed|toLower|toString|toUpper|triggerActivated|triggerActivation|triggerArea|triggerAttachedVehicle|triggerAttachObject|triggerAttachVehicle|triggerDynamicSimulation|triggerStatements|triggerText|triggerTimeout|triggerTimeoutCurrent|triggerType|turretLocal|turretOwner|turretUnit|tvAdd|tvClear|tvCollapse|tvCollapseAll|tvCount|tvCurSel|tvData|tvDelete|tvExpand|tvExpandAll|tvPicture|tvPictureRight|tvSetColor|tvSetCurSel|tvSetData|tvSetPicture|tvSetPictureColor|tvSetPictureColorDisabled|tvSetPictureColorSelected|tvSetPictureRight|tvSetPictureRightColor|tvSetPictureRightColorDisabled|tvSetPictureRightColorSelected|tvSetSelectColor|tvSetText|tvSetTooltip|tvSetValue|tvSort|tvSortByValue|tvText|tvTooltip|tvValue|type|typeName|typeOf|UAVControl|uiNamespace|uiSleep|unassignCurator|unassignItem|unassignTeam|unassignVehicle|underwater|uniform|uniformContainer|uniformItems|uniformMagazines|unitAddons|unitAimPosition|unitAimPositionVisual|unitBackpack|unitIsUAV|unitPos|unitReady|unitRecoilCoefficient|units|unitsBelowHeight|unlinkItem|unlockAchievement|unregisterTask|updateDrawIcon|updateMenuItem|updateObjectTree|useAIOperMapObstructionTest|useAISteeringComponent|useAudioTimeForMoves|userInputDisabled|vectorAdd|vectorCos|vectorCrossProduct|vectorDiff|vectorDir|vectorDirVisual|vectorDistance|vectorDistanceSqr|vectorDotProduct|vectorFromTo|vectorMagnitude|vectorMagnitudeSqr|vectorModelToWorld|vectorModelToWorldVisual|vectorMultiply|vectorNormalized|vectorUp|vectorUpVisual|vectorWorldToModel|vectorWorldToModelVisual|vehicle|vehicleCargoEnabled|vehicleChat|vehicleRadio|vehicleReceiveRemoteTargets|vehicleReportOwnPosition|vehicleReportRemoteTargets|vehicles|vehicleVarName|velocity|velocityModelSpace|verifySignature|vest|vestContainer|vestItems|vestMagazines|viewDistance|visibleCompass|visibleGPS|visibleMap|visiblePosition|visiblePositionASL|visibleScoretable|visibleWatch|waitUntil|waves|waypointAttachedObject|waypointAttachedVehicle|waypointAttachObject|waypointAttachVehicle|waypointBehaviour|waypointCombatMode|waypointCompletionRadius|waypointDescription|waypointForceBehaviour|waypointFormation|waypointHousePosition|waypointLoiterRadius|waypointLoiterType|waypointName|waypointPosition|waypoints|waypointScript|waypointsEnabledUAV|waypointShow|waypointSpeed|waypointStatements|waypointTimeout|waypointTimeoutCurrent|waypointType|waypointVisible|weaponAccessories|weaponAccessoriesCargo|weaponCargo|weaponDirection|weaponInertia|weaponLowered|weapons|weaponsItems|weaponsItemsCargo|weaponState|weaponsTurret|weightRTD|west|WFSideText|wind|windDir|windRTD|windStr|wingsForcesRTD|worldName|worldSize|worldToModel|worldToModelVisual|worldToScreen)\b/i,number:/(?:\$|\b0x)[\da-f]+\b|(?:\B\.\d+|\b\d+(?:\.\d+)?)(?:e[+-]?\d+)?\b/i,operator:/##|>>|&&|\|\||[!=<>]=?|[-+*/%#^]|\b(?:and|mod|not|or)\b/i,"magic-variable":{pattern:/\b(?:this|thisList|thisTrigger|_exception|_fnc_scriptName|_fnc_scriptNameParent|_forEachIndex|_this|_thisEventHandler|_thisFSM|_thisScript|_x)\b/i,alias:"keyword"},constant:/\bDIK(?:_[a-z\d]+)+\b/i}),d.languages.insertBefore("sqf","string",{macro:{pattern:/(^[ \t]*)#[a-z](?:[^\r\n\\]|\\(?:\r\n|[\s\S]))*/im,lookbehind:!0,greedy:!0,alias:"property",inside:{directive:{pattern:/#[a-z]+\b/i,alias:"keyword"},comment:d.languages.sqf.comment}}}),delete d.languages.sqf["class-name"]}},69435:function(J){"use strict";J.exports=C,C.displayName="sql",C.aliases=[];function C(d){d.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},identifier:{pattern:/(^|[^@\\])`(?:\\[\s\S]|[^`\\]|``)*`/,greedy:!0,lookbehind:!0,inside:{punctuation:/^`|`$/}},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:COL|_INSERT)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:ING|S)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:FALSE|NULL|TRUE)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|ILIKE|IN|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/}}},42766:function(J){"use strict";J.exports=C,C.displayName="squirrel",C.aliases=[];function C(d){d.languages.squirrel=d.languages.extend("clike",{comment:[d.languages.clike.comment[0],{pattern:/(^|[^\\:])(?:\/\/|#).*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^\\"'@])(?:@"(?:[^"]|"")*"(?!")|"(?:[^\\\r\n"]|\\.)*")/,lookbehind:!0,greedy:!0},"class-name":{pattern:/(\b(?:class|enum|extends|instanceof)\s+)\w+(?:\.\w+)*/,lookbehind:!0,inside:{punctuation:/\./}},keyword:/\b(?:__FILE__|__LINE__|base|break|case|catch|class|clone|const|constructor|continue|default|delete|else|enum|extends|for|foreach|function|if|in|instanceof|local|null|resume|return|static|switch|this|throw|try|typeof|while|yield)\b/,number:/\b(?:0x[0-9a-fA-F]+|\d+(?:\.(?:\d+|[eE][+-]?\d+))?)\b/,operator:/\+\+|--|<=>|<[-<]|>>>?|&&?|\|\|?|[-+*/%!=<>]=?|[~^]|::?/,punctuation:/[(){}\[\],;.]/}),d.languages.insertBefore("squirrel","string",{char:{pattern:/(^|[^\\"'])'(?:[^\\']|\\(?:[xuU][0-9a-fA-F]{0,8}|[\s\S]))'/,lookbehind:!0,greedy:!0}}),d.languages.insertBefore("squirrel","operator",{"attribute-punctuation":{pattern:/<\/|\/>/,alias:"important"},lambda:{pattern:/@(?=\()/,alias:"operator"}})}},46449:function(J){"use strict";J.exports=C,C.displayName="stan",C.aliases=[];function C(d){(function(b){var I=/\b(?:algebra_solver|algebra_solver_newton|integrate_1d|integrate_ode|integrate_ode_bdf|integrate_ode_rk45|map_rect|ode_(?:adams|bdf|ckrk|rk45)(?:_tol)?|ode_adjoint_tol_ctl|reduce_sum|reduce_sum_static)\b/;b.languages.stan={comment:/\/\/.*|\/\*[\s\S]*?\*\/|#(?!include).*/,string:{pattern:/"[\x20\x21\x23-\x5B\x5D-\x7E]*"/,greedy:!0},directive:{pattern:/^([ \t]*)#include\b.*/m,lookbehind:!0,alias:"property"},"function-arg":{pattern:RegExp("("+I.source+/\s*\(\s*/.source+")"+/[a-zA-Z]\w*/.source),lookbehind:!0,alias:"function"},constraint:{pattern:/(\b(?:int|matrix|real|row_vector|vector)\s*)<[^<>]*>/,lookbehind:!0,inside:{expression:{pattern:/(=\s*)\S(?:\S|\s+(?!\s))*?(?=\s*(?:>$|,\s*\w+\s*=))/,lookbehind:!0,inside:null},property:/\b[a-z]\w*(?=\s*=)/i,operator:/=/,punctuation:/^<|>$|,/}},keyword:[{pattern:/\bdata(?=\s*\{)|\b(?:functions|generated|model|parameters|quantities|transformed)\b/,alias:"program-block"},/\b(?:array|break|cholesky_factor_corr|cholesky_factor_cov|complex|continue|corr_matrix|cov_matrix|data|else|for|if|in|increment_log_prob|int|matrix|ordered|positive_ordered|print|real|reject|return|row_vector|simplex|target|unit_vector|vector|void|while)\b/,I],function:/\b[a-z]\w*(?=\s*\()/i,number:/(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:E[+-]?\d+(?:_\d+)*)?i?(?!\w)/i,boolean:/\b(?:false|true)\b/,operator:/<-|\.[*/]=?|\|\|?|&&|[!=<>+\-*/]=?|['^%~?:]/,punctuation:/[()\[\]{},;]/},b.languages.stan.constraint.inside.expression.inside=b.languages.stan})(d)}},89032:function(J){"use strict";J.exports=C,C.displayName="stylus",C.aliases=[];function C(d){(function(b){var I={pattern:/(\b\d+)(?:%|[a-z]+)/,lookbehind:!0},L={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0},B={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0},url:{pattern:/\burl\((["']?).*?\1\)/i,greedy:!0},string:{pattern:/("|')(?:(?!\1)[^\\\r\n]|\\(?:\r\n|[\s\S]))*\1/,greedy:!0},interpolation:null,func:null,important:/\B!(?:important|optional)\b/i,keyword:{pattern:/(^|\s+)(?:(?:else|for|if|return|unless)(?=\s|$)|@[\w-]+)/,lookbehind:!0},hexcode:/#[\da-f]{3,6}/i,color:[/\b(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)\b/i,{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:I,number:L,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:I,boolean:/\b(?:false|true)\b/,operator:[/~|[+!\/%<>?=]=?|[-:]=|\*[*=]?|\.{2,3}|&&|\|\||\B-\B|\b(?:and|in|is(?: a| defined| not|nt)?|not|or)\b/],number:L,punctuation:/[{}()\[\];:,]/};B.interpolation={pattern:/\{[^\r\n}:]+\}/,alias:"variable",inside:{delimiter:{pattern:/^\{|\}$/,alias:"punctuation"},rest:B}},B.func={pattern:/[\w-]+\([^)]*\).*/,inside:{function:/^[^(]+/,rest:B}},b.languages.stylus={"atrule-declaration":{pattern:/(^[ \t]*)@.+/m,lookbehind:!0,inside:{atrule:/^@[\w-]+/,rest:B}},"variable-declaration":{pattern:/(^[ \t]*)[\w$-]+\s*.?=[ \t]*(?:\{[^{}]*\}|\S.*|$)/m,lookbehind:!0,inside:{variable:/^\S+/,rest:B}},statement:{pattern:/(^[ \t]*)(?:else|for|if|return|unless)[ \t].+/m,lookbehind:!0,inside:{keyword:/^\S+/,rest:B}},"property-declaration":{pattern:/((?:^|\{)([ \t]*))(?:[\w-]|\{[^}\r\n]+\})+(?:\s*:\s*|[ \t]+)(?!\s)[^{\r\n]*(?:;|[^{\r\n,]$(?!(?:\r?\n|\r)(?:\{|\2[ \t])))/m,lookbehind:!0,inside:{property:{pattern:/^[^\s:]+/,inside:{interpolation:B.interpolation}},rest:B}},selector:{pattern:/(^[ \t]*)(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)(?:(?:\r?\n|\r)(?:\1(?:(?=\S)(?:[^{}\r\n:()]|::?[\w-]+(?:\([^)\r\n]*\)|(?![\w-]))|\{[^}\r\n]+\})+)))*(?:,$|\{|(?=(?:\r?\n|\r)(?:\{|\1[ \t])))/m,lookbehind:!0,inside:{interpolation:B.interpolation,comment:B.comment,punctuation:/[{},]/}},func:B.func,string:B.string,comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|\/\/.*)/,lookbehind:!0,greedy:!0},interpolation:B.interpolation,punctuation:/[{}()\[\];:.]/}})(d)}},40241:function(J){"use strict";J.exports=C,C.displayName="swift",C.aliases=[];function C(d){d.languages.swift={comment:{pattern:/(^|[^\\:])(?:\/\/.*|\/\*(?:[^/*]|\/(?!\*)|\*(?!\/)|\/\*(?:[^*]|\*(?!\/))*\*\/)*\*\/)/,lookbehind:!0,greedy:!0},"string-literal":[{pattern:RegExp(/(^|[^"#])/.source+"(?:"+/"(?:\\(?:\((?:[^()]|\([^()]*\))*\)|\r\n|[^(])|[^\\\r\n"])*"/.source+"|"+/"""(?:\\(?:\((?:[^()]|\([^()]*\))*\)|[^(])|[^\\"]|"(?!""))*"""/.source+")"+/(?!["#])/.source),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\\($/,alias:"punctuation"},punctuation:/\\(?=[\r\n])/,string:/[\s\S]+/}},{pattern:RegExp(/(^|[^"#])(#+)/.source+"(?:"+/"(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|\r\n|[^#])|[^\\\r\n])*?"/.source+"|"+/"""(?:\\(?:#+\((?:[^()]|\([^()]*\))*\)|[^#])|[^\\])*?"""/.source+")\\2"),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/(\\#+\()(?:[^()]|\([^()]*\))*(?=\))/,lookbehind:!0,inside:null},"interpolation-punctuation":{pattern:/^\)|\\#+\($/,alias:"punctuation"},string:/[\s\S]+/}}],directive:{pattern:RegExp(/#/.source+"(?:"+(/(?:elseif|if)\b/.source+"(?:[ ]*"+/(?:![ \t]*)?(?:\b\w+\b(?:[ \t]*\((?:[^()]|\([^()]*\))*\))?|\((?:[^()]|\([^()]*\))*\))(?:[ \t]*(?:&&|\|\|))?/.source+")+")+"|"+/(?:else|endif)\b/.source+")"),alias:"property",inside:{"directive-name":/^#\w+/,boolean:/\b(?:false|true)\b/,number:/\b\d+(?:\.\d+)*\b/,operator:/!|&&|\|\||[<>]=?/,punctuation:/[(),]/}},literal:{pattern:/#(?:colorLiteral|column|dsohandle|file(?:ID|Literal|Path)?|function|imageLiteral|line)\b/,alias:"constant"},"other-directive":{pattern:/#\w+\b/,alias:"property"},attribute:{pattern:/@\w+/,alias:"atrule"},"function-definition":{pattern:/(\bfunc\s+)\w+/,lookbehind:!0,alias:"function"},label:{pattern:/\b(break|continue)\s+\w+|\b[a-zA-Z_]\w*(?=\s*:\s*(?:for|repeat|while)\b)/,lookbehind:!0,alias:"important"},keyword:/\b(?:Any|Protocol|Self|Type|actor|as|assignment|associatedtype|associativity|async|await|break|case|catch|class|continue|convenience|default|defer|deinit|didSet|do|dynamic|else|enum|extension|fallthrough|fileprivate|final|for|func|get|guard|higherThan|if|import|in|indirect|infix|init|inout|internal|is|isolated|lazy|left|let|lowerThan|mutating|none|nonisolated|nonmutating|open|operator|optional|override|postfix|precedencegroup|prefix|private|protocol|public|repeat|required|rethrows|return|right|safe|self|set|some|static|struct|subscript|super|switch|throw|throws|try|typealias|unowned|unsafe|var|weak|where|while|willSet)\b/,boolean:/\b(?:false|true)\b/,nil:{pattern:/\bnil\b/,alias:"constant"},"short-argument":/\$\d+\b/,omit:{pattern:/\b_\b/,alias:"keyword"},number:/\b(?:[\d_]+(?:\.[\de_]+)?|0x[a-f0-9_]+(?:\.[a-f0-9p_]+)?|0b[01_]+|0o[0-7_]+)\b/i,"class-name":/\b[A-Z](?:[A-Z_\d]*[a-z]\w*)?\b/,function:/\b[a-z_]\w*(?=\s*\()/i,constant:/\b(?:[A-Z_]{2,}|k[A-Z][A-Za-z_]+)\b/,operator:/[-+*/%=!<>&|^~?]+|\.[.\-+*/%=!<>&|^~?]+/,punctuation:/[{}[\]();,.:\\]/},d.languages.swift["string-literal"].forEach(function(b){b.inside.interpolation.inside=d.languages.swift})}},24812:function(J){"use strict";J.exports=C,C.displayName="systemd",C.aliases=[];function C(d){(function(b){var I={pattern:/^[;#].*/m,greedy:!0},L=/"(?:[^\r\n"\\]|\\(?:[^\r]|\r\n?))*"(?!\S)/.source;b.languages.systemd={comment:I,section:{pattern:/^\[[^\n\r\[\]]*\](?=[ \t]*$)/m,greedy:!0,inside:{punctuation:/^\[|\]$/,"section-name":{pattern:/[\s\S]+/,alias:"selector"}}},key:{pattern:/^[^\s=]+(?=[ \t]*=)/m,greedy:!0,alias:"attr-name"},value:{pattern:RegExp(/(=[ \t]*(?!\s))/.source+"(?:"+L+`|(?=[^"\r
|
|
|
]))(?:`+(/[^\s\\]/.source+'|[ ]+(?:(?![ "])|'+L+")|"+/\\[\r\n]+(?:[#;].*[\r\n]+)*(?![#;])/.source)+")*"),lookbehind:!0,greedy:!0,alias:"attr-value",inside:{comment:I,quoted:{pattern:RegExp(/(^|\s)/.source+L),lookbehind:!0,greedy:!0},punctuation:/\\$/m,boolean:{pattern:/^(?:false|no|off|on|true|yes)$/,greedy:!0}}},punctuation:/=/}})(d)}},16747:function(J,C,d){"use strict";var b=d(73584),I=d(87648);J.exports=L,L.displayName="t4Cs",L.aliases=[];function L(B){B.register(b),B.register(I),B.languages.t4=B.languages["t4-cs"]=B.languages["t4-templating"].createT4("csharp")}},73584:function(J){"use strict";J.exports=C,C.displayName="t4Templating",C.aliases=[];function C(d){(function(b){function I(B,V,Q){return{pattern:RegExp("<#"+B+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+B+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:V,alias:Q}}}}function L(B){var V=b.languages[B],Q="language-"+B;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:I("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:I("=",V,Q),"class-feature":I("\\+",V,Q),standard:I("",V,Q)}}}}b.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:L})})(d)}},79243:function(J,C,d){"use strict";var b=d(73584),I=d(55686);J.exports=L,L.displayName="t4Vb",L.aliases=[];function L(B){B.register(b),B.register(I),B.languages["t4-vb"]=B.languages["t4-templating"].createT4("vbnet")}},31788:function(J,C,d){"use strict";var b=d(14409);J.exports=I,I.displayName="tap",I.aliases=[];function I(L){L.register(b),L.languages.tap={fail:/not ok[^#{\n\r]*/,pass:/ok[^#{\n\r]*/,pragma:/pragma [+-][a-z]+/,bailout:/bail out!.*/i,version:/TAP version \d+/i,plan:/\b\d+\.\.\d+(?: +#.*)?/,subtest:{pattern:/# Subtest(?:: .*)?/,greedy:!0},punctuation:/[{}]/,directive:/#.*/,yamlish:{pattern:/(^[ \t]*)---[\s\S]*?[\r\n][ \t]*\.\.\.$/m,lookbehind:!0,inside:L.languages.yaml,alias:"language-yaml"}}}},60871:function(J){"use strict";J.exports=C,C.displayName="tcl",C.aliases=[];function C(d){d.languages.tcl={comment:{pattern:/(^|[^\\])#.*/,lookbehind:!0},string:{pattern:/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"/,greedy:!0},variable:[{pattern:/(\$)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/,lookbehind:!0},{pattern:/(\$)\{[^}]+\}/,lookbehind:!0},{pattern:/(^[\t ]*set[ \t]+)(?:::)?(?:[a-zA-Z0-9]+::)*\w+/m,lookbehind:!0}],function:{pattern:/(^[\t ]*proc[ \t]+)\S+/m,lookbehind:!0},builtin:[{pattern:/(^[\t ]*)(?:break|class|continue|error|eval|exit|for|foreach|if|proc|return|switch|while)\b/m,lookbehind:!0},/\b(?:else|elseif)\b/],scope:{pattern:/(^[\t ]*)(?:global|upvar|variable)\b/m,lookbehind:!0,alias:"constant"},keyword:{pattern:/(^[\t ]*|\[)(?:Safe_Base|Tcl|after|append|apply|array|auto_(?:execok|import|load|mkindex|qualify|reset)|automkindex_old|bgerror|binary|catch|cd|chan|clock|close|concat|dde|dict|encoding|eof|exec|expr|fblocked|fconfigure|fcopy|file(?:event|name)?|flush|gets|glob|history|http|incr|info|interp|join|lappend|lassign|lindex|linsert|list|llength|load|lrange|lrepeat|lreplace|lreverse|lsearch|lset|lsort|math(?:func|op)|memory|msgcat|namespace|open|package|parray|pid|pkg_mkIndex|platform|puts|pwd|re_syntax|read|refchan|regexp|registry|regsub|rename|scan|seek|set|socket|source|split|string|subst|tcl(?:_endOfWord|_findLibrary|startOf(?:Next|Previous)Word|test|vars|wordBreak(?:After|Before))|tell|time|tm|trace|unknown|unload|unset|update|uplevel|vwait)\b/m,lookbehind:!0},operator:/!=?|\*\*?|==|&&?|\|\|?|<[=<]?|>[=>]?|[-+~\/%?^]|\b(?:eq|in|ne|ni)\b/,punctuation:/[{}()\[\]]/}}},21023:function(J){"use strict";J.exports=C,C.displayName="textile",C.aliases=[];function C(d){(function(b){var I=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,L=/\)|\((?![^|()\n]+\))/.source;function B(De,ne){return RegExp(De.replace(/<MOD>/g,function(){return"(?:"+I+")"}).replace(/<PAR>/g,function(){return"(?:"+L+")"}),ne||"")}var V={css:{pattern:/\{[^{}]+\}/,inside:{rest:b.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},Q=b.languages.textile=b.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:B(/^[a-z]\w*(?:<MOD>|<PAR>|[<>=])*\./.source),inside:{modifier:{pattern:B(/(^[a-z]\w*)(?:<MOD>|<PAR>|[<>=])+(?=\.)/.source),lookbehind:!0,inside:V},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:B(/^[*#]+<MOD>*\s+\S.*/.source,"m"),inside:{modifier:{pattern:B(/(^[*#]+)<MOD>+/.source),lookbehind:!0,inside:V},punctuation:/^[*#]+/}},table:{pattern:B(/^(?:(?:<MOD>|<PAR>|[<>=^~])+\.\s*)?(?:\|(?:(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.|(?!(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:B(/(^|\|(?:\r?\n|\r)?)(?:<MOD>|<PAR>|[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:V},punctuation:/\||^\./}},inline:{pattern:B(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])<MOD>*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:B(/(^(\*\*?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:B(/(^(__?)<MOD>*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:B(/(^\?\?<MOD>*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:B(/(^@<MOD>*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:B(/(^\+<MOD>*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:B(/(^-<MOD>*).+?(?=-)/.source),lookbehind:!0},span:{pattern:B(/(^%<MOD>*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:B(/(^\*\*|__|\?\?|[*_%@+\-^~])<MOD>+/.source),lookbehind:!0,inside:V},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:B(/"<MOD>*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:B(/(^"<MOD>*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:B(/(^")<MOD>+/.source),lookbehind:!0,inside:V},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:B(/!(?:<MOD>|<PAR>|[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:B(/(^!(?:<MOD>|<PAR>|[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:B(/(^!)(?:<MOD>|<PAR>|[<>=])+/.source),lookbehind:!0,inside:V},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),M=Q.phrase.inside,de={inline:M.inline,link:M.link,image:M.image,footnote:M.footnote,acronym:M.acronym,mark:M.mark};Q.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var he=M.inline.inside;he.bold.inside=de,he.italic.inside=de,he.inserted.inside=de,he.deleted.inside=de,he.span.inside=de;var re=M.table.inside;re.inline=de.inline,re.link=de.link,re.image=de.image,re.footnote=de.footnote,re.acronym=de.acronym,re.mark=de.mark})(d)}},14693:function(J){"use strict";J.exports=C,C.displayName="toml",C.aliases=[];function C(d){(function(b){var I=/(?:[\w-]+|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*")/.source;function L(B){return B.replace(/__/g,function(){return I})}b.languages.toml={comment:{pattern:/#.*/,greedy:!0},table:{pattern:RegExp(L(/(^[\t ]*\[\s*(?:\[\s*)?)__(?:\s*\.\s*__)*(?=\s*\])/.source),"m"),lookbehind:!0,greedy:!0,alias:"class-name"},key:{pattern:RegExp(L(/(^[\t ]*|[{,]\s*)__(?:\s*\.\s*__)*(?=\s*=)/.source),"m"),lookbehind:!0,greedy:!0,alias:"property"},string:{pattern:/"""(?:\\[\s\S]|[^\\])*?"""|'''[\s\S]*?'''|'[^'\n\r]*'|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},date:[{pattern:/\b\d{4}-\d{2}-\d{2}(?:[T\s]\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|[+-]\d{2}:\d{2})?)?\b/i,alias:"number"},{pattern:/\b\d{2}:\d{2}:\d{2}(?:\.\d+)?\b/,alias:"number"}],number:/(?:\b0(?:x[\da-zA-Z]+(?:_[\da-zA-Z]+)*|o[0-7]+(?:_[0-7]+)*|b[10]+(?:_[10]+)*))\b|[-+]?\b\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?(?:[eE][+-]?\d+(?:_\d+)*)?\b|[-+]?\b(?:inf|nan)\b/,boolean:/\b(?:false|true)\b/,punctuation:/[.,=[\]{}]/}})(d)}},8743:function(J){"use strict";J.exports=C,C.displayName="tremor",C.aliases=[];function C(d){(function(b){b.languages.tremor={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},"interpolated-string":null,extractor:{pattern:/\b[a-z_]\w*\|(?:[^\r\n\\|]|\\(?:\r\n|[\s\S]))*\|/i,greedy:!0,inside:{regex:{pattern:/(^re)\|[\s\S]+/,lookbehind:!0},function:/^\w+/,value:/\|[\s\S]+/}},identifier:{pattern:/`[^`]*`/,greedy:!0},function:/\b[a-z_]\w*(?=\s*(?:::\s*<|\())\b/,keyword:/\b(?:args|as|by|case|config|connect|connector|const|copy|create|default|define|deploy|drop|each|emit|end|erase|event|flow|fn|for|from|group|having|insert|into|intrinsic|let|links|match|merge|mod|move|of|operator|patch|pipeline|recur|script|select|set|sliding|state|stream|to|tumbling|update|use|when|where|window|with)\b/,boolean:/\b(?:false|null|true)\b/i,number:/\b(?:0b[01_]*|0x[0-9a-fA-F_]*|\d[\d_]*(?:\.\d[\d_]*)?(?:[Ee][+-]?[\d_]+)?)\b/,"pattern-punctuation":{pattern:/%(?=[({[])/,alias:"punctuation"},operator:/[-+*\/%~!^]=?|=[=>]?|&[&=]?|\|[|=]?|<<?=?|>>?>?=?|(?:absent|and|not|or|present|xor)\b/,punctuation:/::|[;\[\]()\{\},.:]/};var I=/#\{(?:[^"{}]|\{[^{}]*\}|"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*")*\}/.source;b.languages.tremor["interpolated-string"]={pattern:RegExp(/(^|[^\\])/.source+'(?:"""(?:'+/[^"\\#]|\\[\s\S]|"(?!"")|#(?!\{)/.source+"|"+I+')*"""|"(?:'+/[^"\\\r\n#]|\\(?:\r\n|[\s\S])|#(?!\{)/.source+"|"+I+')*")'),lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:RegExp(I),inside:{punctuation:/^#\{|\}$/,expression:{pattern:/[\s\S]+/,inside:b.languages.tremor}}},string:/[\s\S]+/}},b.languages.troy=b.languages.tremor,b.languages.trickle=b.languages.tremor})(d)}},1689:function(J,C,d){"use strict";var b=d(24103),I=d(92784);J.exports=L,L.displayName="tsx",L.aliases=[];function L(B){B.register(b),B.register(I),function(V){var Q=V.util.clone(V.languages.typescript);V.languages.tsx=V.languages.extend("jsx",Q),delete V.languages.tsx.parameter,delete V.languages.tsx["literal-property"];var M=V.languages.tsx.tag;M.pattern=RegExp(/(^|[^\w$]|(?=<\/))/.source+"(?:"+M.pattern.source+")",M.pattern.flags),M.lookbehind=!0}(B)}},69210:function(J,C,d){"use strict";var b=d(51478);J.exports=I,I.displayName="tt2",I.aliases=[];function I(L){L.register(b),function(B){B.languages.tt2=B.languages.extend("clike",{comment:/#.*|\[%#[\s\S]*?%\]/,keyword:/\b(?:BLOCK|CALL|CASE|CATCH|CLEAR|DEBUG|DEFAULT|ELSE|ELSIF|END|FILTER|FINAL|FOREACH|GET|IF|IN|INCLUDE|INSERT|LAST|MACRO|META|NEXT|PERL|PROCESS|RAWPERL|RETURN|SET|STOP|SWITCH|TAGS|THROW|TRY|UNLESS|USE|WHILE|WRAPPER)\b/,punctuation:/[[\]{},()]/}),B.languages.insertBefore("tt2","number",{operator:/=[>=]?|!=?|<=?|>=?|&&|\|\|?|\b(?:and|not|or)\b/,variable:{pattern:/\b[a-z]\w*(?:\s*\.\s*(?:\d+|\$?[a-z]\w*))*\b/i}}),B.languages.insertBefore("tt2","keyword",{delimiter:{pattern:/^(?:\[%|%%)-?|-?%\]$/,alias:"punctuation"}}),B.languages.insertBefore("tt2","string",{"single-quoted-string":{pattern:/'[^\\']*(?:\\[\s\S][^\\']*)*'/,greedy:!0,alias:"string"},"double-quoted-string":{pattern:/"[^\\"]*(?:\\[\s\S][^\\"]*)*"/,greedy:!0,alias:"string",inside:{variable:{pattern:/\$(?:[a-z]\w*(?:\.(?:\d+|\$?[a-z]\w*))*)/i}}}}),delete B.languages.tt2.string,B.hooks.add("before-tokenize",function(V){var Q=/\[%[\s\S]+?%\]/g;B.languages["markup-templating"].buildPlaceholders(V,"tt2",Q)}),B.hooks.add("after-tokenize",function(V){B.languages["markup-templating"].tokenizePlaceholders(V,"tt2")})}(L)}},58710:function(J){"use strict";J.exports=C,C.displayName="turtle",C.aliases=[];function C(d){d.languages.turtle={comment:{pattern:/#.*/,greedy:!0},"multiline-string":{pattern:/"""(?:(?:""?)?(?:[^"\\]|\\.))*"""|'''(?:(?:''?)?(?:[^'\\]|\\.))*'''/,greedy:!0,alias:"string",inside:{comment:/#.*/}},string:{pattern:/"(?:[^\\"\r\n]|\\.)*"|'(?:[^\\'\r\n]|\\.)*'/,greedy:!0},url:{pattern:/<(?:[^\x00-\x20<>"{}|^`\\]|\\(?:u[\da-fA-F]{4}|U[\da-fA-F]{8}))*>/,greedy:!0,inside:{punctuation:/[<>]/}},function:{pattern:/(?:(?![-.\d\xB7])[-.\w\xB7\xC0-\uFFFD]+)?:(?:(?![-.])(?:[-.:\w\xC0-\uFFFD]|%[\da-f]{2}|\\.)+)?/i,inside:{"local-name":{pattern:/([^:]*:)[\s\S]+/,lookbehind:!0},prefix:{pattern:/[\s\S]+/,inside:{punctuation:/:/}}}},number:/[+-]?\b\d+(?:\.\d*)?(?:e[+-]?\d+)?/i,punctuation:/[{}.,;()[\]]|\^\^/,boolean:/\b(?:false|true)\b/,keyword:[/(?:\ba|@prefix|@base)\b|=/,/\b(?:base|graph|prefix)\b/i],tag:{pattern:/@[a-z]+(?:-[a-z\d]+)*/i,inside:{punctuation:/@/}}},d.languages.trig=d.languages.turtle}},60452:function(J,C,d){"use strict";var b=d(51478);J.exports=I,I.displayName="twig",I.aliases=[];function I(L){L.register(b),L.languages.twig={comment:/^\{#[\s\S]*?#\}$/,"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/}},keyword:/\b(?:even|if|odd)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/},L.hooks.add("before-tokenize",function(B){if(B.language==="twig"){var V=/\{(?:#[\s\S]*?#|%[\s\S]*?%|\{[\s\S]*?\})\}/g;L.languages["markup-templating"].buildPlaceholders(B,"twig",V)}}),L.hooks.add("after-tokenize",function(B){L.languages["markup-templating"].tokenizePlaceholders(B,"twig")})}},92784:function(J){"use strict";J.exports=C,C.displayName="typescript",C.aliases=["ts"];function C(d){(function(b){b.languages.typescript=b.languages.extend("javascript",{"class-name":{pattern:/(\b(?:class|extends|implements|instanceof|interface|new|type)\s+)(?!keyof\b)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?:\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>)?/,lookbehind:!0,greedy:!0,inside:null},builtin:/\b(?:Array|Function|Promise|any|boolean|console|never|number|string|symbol|unknown)\b/}),b.languages.typescript.keyword.push(/\b(?:abstract|declare|is|keyof|readonly|require)\b/,/\b(?:asserts|infer|interface|module|namespace|type)\b(?=\s*(?:[{_$a-zA-Z\xA0-\uFFFF]|$))/,/\btype\b(?=\s*(?:[\{*]|$))/),delete b.languages.typescript.parameter,delete b.languages.typescript["literal-property"];var I=b.languages.extend("typescript",{});delete I["class-name"],b.languages.typescript["class-name"].inside=I,b.languages.insertBefore("typescript","function",{decorator:{pattern:/@[$\w\xA0-\uFFFF]+/,inside:{at:{pattern:/^@/,alias:"operator"},function:/^[\s\S]+/}},"generic-function":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>(?=\s*\()/,greedy:!0,inside:{function:/^#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*/,generic:{pattern:/<[\s\S]+/,alias:"class-name",inside:I}}}}),b.languages.ts=b.languages.typescript})(d)}},36489:function(J){"use strict";J.exports=C,C.displayName="typoscript",C.aliases=["tsconfig"];function C(d){(function(b){var I=/\b(?:ACT|ACTIFSUB|CARRAY|CASE|CLEARGIF|COA|COA_INT|CONSTANTS|CONTENT|CUR|EDITPANEL|EFFECT|EXT|FILE|FLUIDTEMPLATE|FORM|FRAME|FRAMESET|GIFBUILDER|GMENU|GMENU_FOLDOUT|GMENU_LAYERS|GP|HMENU|HRULER|HTML|IENV|IFSUB|IMAGE|IMGMENU|IMGMENUITEM|IMGTEXT|IMG_RESOURCE|INCLUDE_TYPOSCRIPT|JSMENU|JSMENUITEM|LLL|LOAD_REGISTER|NO|PAGE|RECORDS|RESTORE_REGISTER|TEMPLATE|TEXT|TMENU|TMENUITEM|TMENU_LAYERS|USER|USER_INT|_GIFBUILDER|global|globalString|globalVar)\b/;b.languages.typoscript={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0},{pattern:/(^|[^\\:= \t]|(?:^|[^= \t])[ \t]+)\/\/.*/,lookbehind:!0,greedy:!0},{pattern:/(^|[^"'])#.*/,lookbehind:!0,greedy:!0}],function:[{pattern:/<INCLUDE_TYPOSCRIPT:\s*source\s*=\s*(?:"[^"\r\n]*"|'[^'\r\n]*')\s*>/,inside:{string:{pattern:/"[^"\r\n]*"|'[^'\r\n]*'/,inside:{keyword:I}},keyword:{pattern:/INCLUDE_TYPOSCRIPT/}}},{pattern:/@import\s*(?:"[^"\r\n]*"|'[^'\r\n]*')/,inside:{string:/"[^"\r\n]*"|'[^'\r\n]*'/}}],string:{pattern:/^([^=]*=[< ]?)(?:(?!\]\n).)*/,lookbehind:!0,inside:{function:/\{\$.*\}/,keyword:I,number:/^\d+$/,punctuation:/[,|:]/}},keyword:I,number:{pattern:/\b\d+\s*[.{=]/,inside:{operator:/[.{=]/}},tag:{pattern:/\.?[-\w\\]+\.?/,inside:{punctuation:/\./}},punctuation:/[{}[\];(),.:|]/,operator:/[<>]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/},b.languages.tsconfig=b.languages.typoscript})(d)}},78380:function(J){"use strict";J.exports=C,C.displayName="unrealscript",C.aliases=["uc","uscript"];function C(d){d.languages.unrealscript={comment:/\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,greedy:!0},category:{pattern:/(\b(?:(?:autoexpand|hide|show)categories|var)\s*\()[^()]+(?=\))/,lookbehind:!0,greedy:!0,alias:"property"},metadata:{pattern:/(\w\s*)<\s*\w+\s*=[^<>|=\r\n]+(?:\|\s*\w+\s*=[^<>|=\r\n]+)*>/,lookbehind:!0,greedy:!0,inside:{property:/\b\w+(?=\s*=)/,operator:/=/,punctuation:/[<>|]/}},macro:{pattern:/`\w+/,alias:"property"},"class-name":{pattern:/(\b(?:class|enum|extends|interface|state(?:\(\))?|struct|within)\s+)\w+/,lookbehind:!0},keyword:/\b(?:abstract|actor|array|auto|autoexpandcategories|bool|break|byte|case|class|classgroup|client|coerce|collapsecategories|config|const|continue|default|defaultproperties|delegate|dependson|deprecated|do|dontcollapsecategories|editconst|editinlinenew|else|enum|event|exec|export|extends|final|float|for|forcescriptorder|foreach|function|goto|guid|hidecategories|hidedropdown|if|ignores|implements|inherits|input|int|interface|iterator|latent|local|material|name|native|nativereplication|noexport|nontransient|noteditinlinenew|notplaceable|operator|optional|out|pawn|perobjectconfig|perobjectlocalized|placeable|postoperator|preoperator|private|protected|reliable|replication|return|server|showcategories|simulated|singular|state|static|string|struct|structdefault|structdefaultproperties|switch|texture|transient|travel|unreliable|until|var|vector|while|within)\b/,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/,number:/\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?/i,operator:/>>|<<|--|\+\+|\*\*|[-+*/~!=<>$@]=?|&&?|\|\|?|\^\^?|[?:%]|\b(?:ClockwiseFrom|Cross|Dot)\b/,punctuation:/[()[\]{};,.]/},d.languages.uc=d.languages.uscript=d.languages.unrealscript}},10409:function(J){"use strict";J.exports=C,C.displayName="uorazor",C.aliases=[];function C(d){d.languages.uorazor={"comment-hash":{pattern:/#.*/,alias:"comment",greedy:!0},"comment-slash":{pattern:/\/\/.*/,alias:"comment",greedy:!0},string:{pattern:/("|')(?:\\.|(?!\1)[^\\\r\n])*\1/,inside:{punctuation:/^['"]|['"]$/},greedy:!0},"source-layers":{pattern:/\b(?:arms|backpack|blue|bracelet|cancel|clear|cloak|criminal|earrings|enemy|facialhair|friend|friendly|gloves|gray|grey|ground|hair|head|innerlegs|innertorso|innocent|lefthand|middletorso|murderer|neck|nonfriendly|onehandedsecondary|outerlegs|outertorso|pants|red|righthand|ring|self|shirt|shoes|talisman|waist)\b/i,alias:"function"},"source-commands":{pattern:/\b(?:alliance|attack|cast|clearall|clearignore|clearjournal|clearlist|clearsysmsg|createlist|createtimer|dclick|dclicktype|dclickvar|dress|dressconfig|drop|droprelloc|emote|getlabel|guild|gumpclose|gumpresponse|hotkey|ignore|lasttarget|lift|lifttype|menu|menuresponse|msg|org|organize|organizer|overhead|pause|poplist|potion|promptresponse|pushlist|removelist|removetimer|rename|restock|say|scav|scavenger|script|setability|setlasttarget|setskill|settimer|setvar|sysmsg|target|targetloc|targetrelloc|targettype|undress|unignore|unsetvar|useobject|useonce|useskill|usetype|virtue|wait|waitforgump|waitformenu|waitforprompt|waitforstat|waitforsysmsg|waitfortarget|walk|wfsysmsg|wft|whisper|yell)\b/,alias:"function"},"tag-name":{pattern:/(^\{%-?\s*)\w+/,lookbehind:!0,alias:"keyword"},delimiter:{pattern:/^\{[{%]-?|-?[%}]\}$/,alias:"punctuation"},function:/\b(?:atlist|close|closest|count|counter|counttype|dead|dex|diffhits|diffmana|diffstam|diffweight|find|findbuff|finddebuff|findlayer|findtype|findtypelist|followers|gumpexists|hidden|hits|hp|hue|human|humanoid|ingump|inlist|insysmessage|insysmsg|int|invul|lhandempty|list|listexists|mana|maxhits|maxhp|maxmana|maxstam|maxweight|monster|mounted|name|next|noto|paralyzed|poisoned|position|prev|previous|queued|rand|random|rhandempty|skill|stam|str|targetexists|timer|timerexists|varexist|warmode|weight)\b/,keyword:/\b(?:and|as|break|continue|else|elseif|endfor|endif|endwhile|for|if|loop|not|or|replay|stop|while)\b/,boolean:/\b(?:false|null|true)\b/,number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,operator:[{pattern:/(\s)(?:and|b-and|b-or|b-xor|ends with|in|is|matches|not|or|same as|starts with)(?=\s)/,lookbehind:!0},/[=<>]=?|!=|\*\*?|\/\/?|\?:?|[-+~%|]/],punctuation:/[()\[\]{}:.,]/}}},6539:function(J){"use strict";J.exports=C,C.displayName="uri",C.aliases=["url"];function C(d){d.languages.uri={scheme:{pattern:/^[a-z][a-z0-9+.-]*:/im,greedy:!0,inside:{"scheme-delimiter":/:$/}},fragment:{pattern:/#[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"fragment-delimiter":/^#/}},query:{pattern:/\?[\w\-.~!$&'()*+,;=%:@/?]*/,inside:{"query-delimiter":{pattern:/^\?/,greedy:!0},"pair-delimiter":/[&;]/,pair:{pattern:/^[^=][\s\S]*/,inside:{key:/^[^=]+/,value:{pattern:/(^=)[\s\S]+/,lookbehind:!0}}}}},authority:{pattern:RegExp(/^\/\//.source+/(?:[\w\-.~!$&'()*+,;=%:]*@)?/.source+("(?:"+/\[(?:[0-9a-fA-F:.]{2,48}|v[0-9a-fA-F]+\.[\w\-.~!$&'()*+,;=]+)\]/.source+"|"+/[\w\-.~!$&'()*+,;=%]*/.source+")")+/(?::\d*)?/.source,"m"),inside:{"authority-delimiter":/^\/\//,"user-info-segment":{pattern:/^[\w\-.~!$&'()*+,;=%:]*@/,inside:{"user-info-delimiter":/@$/,"user-info":/^[\w\-.~!$&'()*+,;=%:]+/}},"port-segment":{pattern:/:\d*$/,inside:{"port-delimiter":/^:/,port:/^\d+/}},host:{pattern:/[\s\S]+/,inside:{"ip-literal":{pattern:/^\[[\s\S]+\]$/,inside:{"ip-literal-delimiter":/^\[|\]$/,"ipv-future":/^v[\s\S]+/,"ipv6-address":/^[\s\S]+/}},"ipv4-address":/^(?:(?:[03-9]\d?|[12]\d{0,2})\.){3}(?:[03-9]\d?|[12]\d{0,2})$/}}}},path:{pattern:/^[\w\-.~!$&'()*+,;=%:@/]+/m,inside:{"path-separator":/\//}}},d.languages.url=d.languages.uri}},82028:function(J){"use strict";J.exports=C,C.displayName="v",C.aliases=[];function C(d){(function(b){var I={pattern:/[\s\S]+/,inside:null};b.languages.v=b.languages.extend("clike",{string:{pattern:/r?(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,alias:"quoted-string",greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$(?:\{[^{}]*\}|\w+(?:\.\w+(?:\([^\(\)]*\))?|\[[^\[\]]+\])*)/,lookbehind:!0,inside:{"interpolation-variable":{pattern:/^\$\w[\s\S]*$/,alias:"variable"},"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},"interpolation-expression":I}}}},"class-name":{pattern:/(\b(?:enum|interface|struct|type)\s+)(?:C\.)?\w+/,lookbehind:!0},keyword:/(?:\b(?:__global|as|asm|assert|atomic|break|chan|const|continue|defer|else|embed|enum|fn|for|go(?:to)?|if|import|in|interface|is|lock|match|module|mut|none|or|pub|return|rlock|select|shared|sizeof|static|struct|type(?:of)?|union|unsafe)|\$(?:else|for|if)|#(?:flag|include))\b/,number:/\b(?:0x[a-f\d]+(?:_[a-f\d]+)*|0b[01]+(?:_[01]+)*|0o[0-7]+(?:_[0-7]+)*|\d+(?:_\d+)*(?:\.\d+(?:_\d+)*)?)\b/i,operator:/~|\?|[*\/%^!=]=?|\+[=+]?|-[=-]?|\|[=|]?|&(?:=|&|\^=?)?|>(?:>=?|=)?|<(?:<=?|=|-)?|:=|\.\.\.?/,builtin:/\b(?:any(?:_float|_int)?|bool|byte(?:ptr)?|charptr|f(?:32|64)|i(?:8|16|64|128|nt)|rune|size_t|string|u(?:16|32|64|128)|voidptr)\b/}),I.inside=b.languages.v,b.languages.insertBefore("v","string",{char:{pattern:/`(?:\\`|\\?[^`]{1,2})`/,alias:"rune"}}),b.languages.insertBefore("v","operator",{attribute:{pattern:/(^[\t ]*)\[(?:deprecated|direct_array_access|flag|inline|live|ref_only|typedef|unsafe_fn|windows_stdcall)\]/m,lookbehind:!0,alias:"annotation",inside:{punctuation:/[\[\]]/,keyword:/\w+/}},generic:{pattern:/<\w+>(?=\s*[\)\{])/,inside:{punctuation:/[<>]/,"class-name":/\w+/}}}),b.languages.insertBefore("v","function",{"generic-function":{pattern:/\b\w+\s*<\w+>(?=\()/,inside:{function:/^\w+/,generic:{pattern:/<\w+>/,inside:b.languages.v.generic.inside}}}})})(d)}},62282:function(J){"use strict";J.exports=C,C.displayName="vala",C.aliases=[];function C(d){d.languages.vala=d.languages.extend("clike",{"class-name":[{pattern:/\b[A-Z]\w*(?:\.\w+)*\b(?=(?:\?\s+|\*?\s+\*?)\w)/,inside:{punctuation:/\./}},{pattern:/(\[)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/(\b(?:class|interface)\s+[A-Z]\w*(?:\.\w+)*\s*:\s*)[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}},{pattern:/((?:\b(?:class|enum|interface|new|struct)\s+)|(?:catch\s+\())[A-Z]\w*(?:\.\w+)*\b/,lookbehind:!0,inside:{punctuation:/\./}}],keyword:/\b(?:abstract|as|assert|async|base|bool|break|case|catch|char|class|const|construct|continue|default|delegate|delete|do|double|dynamic|else|ensures|enum|errordomain|extern|finally|float|for|foreach|get|if|in|inline|int|int16|int32|int64|int8|interface|internal|is|lock|long|namespace|new|null|out|override|owned|params|private|protected|public|ref|requires|return|set|short|signal|sizeof|size_t|ssize_t|static|string|struct|switch|this|throw|throws|try|typeof|uchar|uint|uint16|uint32|uint64|uint8|ulong|unichar|unowned|ushort|using|value|var|virtual|void|volatile|weak|while|yield)\b/i,function:/\b\w+(?=\s*\()/,number:/(?:\b0x[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?:f|u?l?)?/i,operator:/\+\+|--|&&|\|\||<<=?|>>=?|=>|->|~|[+\-*\/%&^|=!<>]=?|\?\??|\.\.\./,punctuation:/[{}[\];(),.:]/,constant:/\b[A-Z0-9_]+\b/}),d.languages.insertBefore("vala","string",{"raw-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"template-string":{pattern:/@"[\s\S]*?"/,greedy:!0,inside:{interpolation:{pattern:/\$(?:\([^)]*\)|[a-zA-Z]\w*)/,inside:{delimiter:{pattern:/^\$\(?|\)$/,alias:"punctuation"},rest:d.languages.vala}},string:/[\s\S]+/}}}),d.languages.insertBefore("vala","keyword",{regex:{pattern:/\/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[imsx]{0,4}(?=\s*(?:$|[\r\n,.;})\]]))/,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:d.languages.regex},"regex-delimiter":/^\//,"regex-flags":/^[a-z]+$/}}})}},55686:function(J,C,d){"use strict";var b=d(51422);J.exports=I,I.displayName="vbnet",I.aliases=[];function I(L){L.register(b),L.languages.vbnet=L.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}},70889:function(J){"use strict";J.exports=C,C.displayName="velocity",C.aliases=[];function C(d){(function(b){b.languages.velocity=b.languages.extend("markup",{});var I={variable:{pattern:/(^|[^\\](?:\\\\)*)\$!?(?:[a-z][\w-]*(?:\([^)]*\))?(?:\.[a-z][\w-]*(?:\([^)]*\))?|\[[^\]]+\])*|\{[^}]+\})/i,lookbehind:!0,inside:{}},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},number:/\b\d+\b/,boolean:/\b(?:false|true)\b/,operator:/[=!<>]=?|[+*/%-]|&&|\|\||\.\.|\b(?:eq|g[et]|l[et]|n(?:e|ot))\b/,punctuation:/[(){}[\]:,.]/};I.variable.inside={string:I.string,function:{pattern:/([^\w-])[a-z][\w-]*(?=\()/,lookbehind:!0},number:I.number,boolean:I.boolean,punctuation:I.punctuation},b.languages.insertBefore("velocity","comment",{unparsed:{pattern:/(^|[^\\])#\[\[[\s\S]*?\]\]#/,lookbehind:!0,greedy:!0,inside:{punctuation:/^#\[\[|\]\]#$/}},"velocity-comment":[{pattern:/(^|[^\\])#\*[\s\S]*?\*#/,lookbehind:!0,greedy:!0,alias:"comment"},{pattern:/(^|[^\\])##.*/,lookbehind:!0,greedy:!0,alias:"comment"}],directive:{pattern:/(^|[^\\](?:\\\\)*)#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})(?:\s*\((?:[^()]|\([^()]*\))*\))?/i,lookbehind:!0,inside:{keyword:{pattern:/^#@?(?:[a-z][\w-]*|\{[a-z][\w-]*\})|\bin\b/,inside:{punctuation:/[{}]/}},rest:I}},variable:I.variable}),b.languages.velocity.tag.inside["attr-value"].inside.rest=b.languages.velocity})(d)}},37116:function(J){"use strict";J.exports=C,C.displayName="verilog",C.aliases=[];function C(d){d.languages.verilog={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0},"kernel-function":{pattern:/\B\$\w+\b/,alias:"property"},constant:/\B`\w+\b/,function:/\b\w+(?=\()/,keyword:/\b(?:alias|and|assert|assign|assume|automatic|before|begin|bind|bins|binsof|bit|break|buf|bufif0|bufif1|byte|case|casex|casez|cell|chandle|class|clocking|cmos|config|const|constraint|context|continue|cover|covergroup|coverpoint|cross|deassign|default|defparam|design|disable|dist|do|edge|else|end|endcase|endclass|endclocking|endconfig|endfunction|endgenerate|endgroup|endinterface|endmodule|endpackage|endprimitive|endprogram|endproperty|endsequence|endspecify|endtable|endtask|enum|event|expect|export|extends|extern|final|first_match|for|force|foreach|forever|fork|forkjoin|function|generate|genvar|highz0|highz1|if|iff|ifnone|ignore_bins|illegal_bins|import|incdir|include|initial|inout|input|inside|instance|int|integer|interface|intersect|join|join_any|join_none|large|liblist|library|local|localparam|logic|longint|macromodule|matches|medium|modport|module|nand|negedge|new|nmos|nor|noshowcancelled|not|notif0|notif1|null|or|output|package|packed|parameter|pmos|posedge|primitive|priority|program|property|protected|pull0|pull1|pulldown|pullup|pulsestyle_ondetect|pulsestyle_onevent|pure|rand|randc|randcase|randsequence|rcmos|real|realtime|ref|reg|release|repeat|return|rnmos|rpmos|rtran|rtranif0|rtranif1|scalared|sequence|shortint|shortreal|showcancelled|signed|small|solve|specify|specparam|static|string|strong0|strong1|struct|super|supply0|supply1|table|tagged|task|this|throughout|time|timeprecision|timeunit|tran|tranif0|tranif1|tri|tri0|tri1|triand|trior|trireg|type|typedef|union|unique|unsigned|use|uwire|var|vectored|virtual|void|wait|wait_order|wand|weak0|weak1|while|wildcard|wire|with|within|wor|xnor|xor)\b/,important:/\b(?:always|always_comb|always_ff|always_latch)\b(?: *@)?/,number:/\B##?\d+|(?:\b\d+)?'[odbh] ?[\da-fzx_?]+|\b(?:\d*[._])?\d+(?:e[-+]?\d+)?/i,operator:/[-+{}^~%*\/?=!<>&|]+/,punctuation:/[[\];(),.:]/}}},66963:function(J){"use strict";J.exports=C,C.displayName="vhdl",C.aliases=[];function C(d){d.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,constant:/\b(?:library|use)\b/i,keyword:/\b(?:'active|'ascending|'base|'delayed|'driving|'driving_value|'event|'high|'image|'instance_name|'last_active|'last_event|'last_value|'left|'leftof|'length|'low|'path_name|'pos|'pred|'quiet|'range|'reverse_range|'right|'rightof|'simple_name|'stable|'succ|'transaction|'val|'value|access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}},21078:function(J){"use strict";J.exports=C,C.displayName="vim",C.aliases=[];function C(d){d.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}},96198:function(J){"use strict";J.exports=C,C.displayName="visualBasic",C.aliases=[];function C(d){d.languages["visual-basic"]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:\b_[ \t]*(?:\r\n?|\n)|.)+/i,alias:"property",greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[ \t]*(?:\d+([/-])\d+\1\d+(?:[ \t]+(?:\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?))?|\d+[ \t]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[ \t]*(?:AM|PM))?)[ \t]*#/i,alias:"number"},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:[FRD]|U?[ILS])?/i,boolean:/\b(?:False|Nothing|True)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Until|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Xor)\b/i,operator:/[+\-*/\\^<=>&#@$%!]|\b_(?=[ \t]*[\r\n])/,punctuation:/[{}().,:?]/},d.languages.vb=d.languages["visual-basic"],d.languages.vba=d.languages["visual-basic"]}},17723:function(J){"use strict";J.exports=C,C.displayName="warpscript",C.aliases=[];function C(d){d.languages.warpscript={comment:/#.*|\/\/.*|\/\*[\s\S]*?\*\//,string:{pattern:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'|<'(?:[^\\']|'(?!>)|\\.)*'>/,greedy:!0},variable:/\$\S+/,macro:{pattern:/@\S+/,alias:"property"},keyword:/\b(?:BREAK|CHECKMACRO|CONTINUE|CUDF|DEFINED|DEFINEDMACRO|EVAL|FAIL|FOR|FOREACH|FORSTEP|IFT|IFTE|MSGFAIL|NRETURN|RETHROW|RETURN|SWITCH|TRY|UDF|UNTIL|WHILE)\b/,number:/[+-]?\b(?:NaN|Infinity|\d+(?:\.\d*)?(?:[Ee][+-]?\d+)?|0x[\da-fA-F]+|0b[01]+)\b/,boolean:/\b(?:F|T|false|true)\b/,punctuation:/<%|%>|[{}[\]()]/,operator:/==|&&?|\|\|?|\*\*?|>>>?|<<|[<>!~]=?|[-/%^]|\+!?|\b(?:AND|NOT|OR)\b/}}},67771:function(J){"use strict";J.exports=C,C.displayName="wasm",C.aliases=[];function C(d){d.languages.wasm={comment:[/\(;[\s\S]*?;\)/,{pattern:/;;.*/,greedy:!0}],string:{pattern:/"(?:\\[\s\S]|[^"\\])*"/,greedy:!0},keyword:[{pattern:/\b(?:align|offset)=/,inside:{operator:/=/}},{pattern:/\b(?:(?:f32|f64|i32|i64)(?:\.(?:abs|add|and|ceil|clz|const|convert_[su]\/i(?:32|64)|copysign|ctz|demote\/f64|div(?:_[su])?|eqz?|extend_[su]\/i32|floor|ge(?:_[su])?|gt(?:_[su])?|le(?:_[su])?|load(?:(?:8|16|32)_[su])?|lt(?:_[su])?|max|min|mul|neg?|nearest|or|popcnt|promote\/f32|reinterpret\/[fi](?:32|64)|rem_[su]|rot[lr]|shl|shr_[su]|sqrt|store(?:8|16|32)?|sub|trunc(?:_[su]\/f(?:32|64))?|wrap\/i64|xor))?|memory\.(?:grow|size))\b/,inside:{punctuation:/\./}},/\b(?:anyfunc|block|br(?:_if|_table)?|call(?:_indirect)?|data|drop|elem|else|end|export|func|get_(?:global|local)|global|if|import|local|loop|memory|module|mut|nop|offset|param|result|return|select|set_(?:global|local)|start|table|tee_local|then|type|unreachable)\b/],variable:/\$[\w!#$%&'*+\-./:<=>?@\\^`|~]+/,number:/[+-]?\b(?:\d(?:_?\d)*(?:\.\d(?:_?\d)*)?(?:[eE][+-]?\d(?:_?\d)*)?|0x[\da-fA-F](?:_?[\da-fA-F])*(?:\.[\da-fA-F](?:_?[\da-fA-D])*)?(?:[pP][+-]?\d(?:_?\d)*)?)\b|\binf\b|\bnan(?::0x[\da-fA-F](?:_?[\da-fA-D])*)?\b/,punctuation:/[()]/}}},30307:function(J){"use strict";J.exports=C,C.displayName="webIdl",C.aliases=[];function C(d){(function(b){var I=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,L="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+I+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,B={};b.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+I),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:B},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+L),lookbehind:!0,inside:B},{pattern:RegExp("("+/\bcallback\s+/.source+I+/\s*=\s*/.source+")"+L),lookbehind:!0,inside:B},{pattern:RegExp(/(\btypedef\b\s*)/.source+L),lookbehind:!0,inside:B},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+I),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+I),lookbehind:!0},RegExp(I+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+I),lookbehind:!0},{pattern:RegExp(L+"(?="+/\s*(?:\.{3}\s*)?/.source+I+/\s*[(),;=]/.source+")"),inside:B}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var V in b.languages["web-idl"])V!=="class-name"&&(B[V]=b.languages["web-idl"][V]);b.languages.webidl=b.languages["web-idl"]})(d)}},8921:function(J){"use strict";J.exports=C,C.displayName="wiki",C.aliases=[];function C(d){d.languages.wiki=d.languages.extend("markup",{"block-comment":{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0,alias:"comment"},heading:{pattern:/^(=+)[^=\r\n].*?\1/m,inside:{punctuation:/^=+|=+$/,important:/.+/}},emphasis:{pattern:/('{2,5}).+?\1/,inside:{"bold-italic":{pattern:/(''''').+?(?=\1)/,lookbehind:!0,alias:["bold","italic"]},bold:{pattern:/(''')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},italic:{pattern:/('')[^'](?:.*?[^'])?(?=\1)/,lookbehind:!0},punctuation:/^''+|''+$/}},hr:{pattern:/^-{4,}/m,alias:"punctuation"},url:[/ISBN +(?:97[89][ -]?)?(?:\d[ -]?){9}[\dx]\b|(?:PMID|RFC) +\d+/i,/\[\[.+?\]\]|\[.+?\]/],variable:[/__[A-Z]+__/,/\{{3}.+?\}{3}/,/\{\{.+?\}\}/],symbol:[/^#redirect/im,/~{3,5}/],"table-tag":{pattern:/((?:^|[|!])[|!])[^|\r\n]+\|(?!\|)/m,lookbehind:!0,inside:{"table-bar":{pattern:/\|$/,alias:"punctuation"},rest:d.languages.markup.tag.inside}},punctuation:/^(?:\{\||\|\}|\|-|[*#:;!|])|\|\||!!/m}),d.languages.insertBefore("wiki","tag",{nowiki:{pattern:/<(nowiki|pre|source)\b[^>]*>[\s\S]*?<\/\1>/i,inside:{tag:{pattern:/<(?:nowiki|pre|source)\b[^>]*>|<\/(?:nowiki|pre|source)>/i,inside:d.languages.markup.tag.inside}}}})}},13429:function(J){"use strict";J.exports=C,C.displayName="wolfram",C.aliases=["mathematica","wl","nb"];function C(d){d.languages.wolfram={comment:/\(\*(?:\(\*(?:[^*]|\*(?!\)))*\*\)|(?!\(\*)[\s\S])*?\*\)/,string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},keyword:/\b(?:Abs|AbsArg|Accuracy|Block|Do|For|Function|If|Manipulate|Module|Nest|NestList|None|Return|Switch|Table|Which|While)\b/,context:{pattern:/\b\w+`+\w*/,alias:"class-name"},blank:{pattern:/\b\w+_\b/,alias:"regex"},"global-variable":{pattern:/\$\w+/,alias:"variable"},boolean:/\b(?:False|True)\b/,number:/(?:\b(?=\d)|\B(?=\.))(?:0[bo])?(?:(?:\d|0x[\da-f])[\da-f]*(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?j?\b/i,operator:/\/\.|;|=\.|\^=|\^:=|:=|<<|>>|<\||\|>|:>|\|->|->|<-|@@@|@@|@|\/@|=!=|===|==|=|\+|-|\^|\[\/-+%=\]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},d.languages.mathematica=d.languages.wolfram,d.languages.wl=d.languages.wolfram,d.languages.nb=d.languages.wolfram}},65197:function(J){"use strict";J.exports=C,C.displayName="wren",C.aliases=[];function C(d){d.languages.wren={comment:[{pattern:/\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*)|\/\*(?:[^*/]|\*(?!\/)|\/(?!\*))*\*\/)*\*\/)*\*\//,greedy:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0,greedy:!0}],"triple-quoted-string":{pattern:/"""[\s\S]*?"""/,greedy:!0,alias:"string"},"string-literal":null,hashbang:{pattern:/^#!\/.+/,greedy:!0,alias:"comment"},attribute:{pattern:/#!?[ \t\u3000]*\w+/,alias:"keyword"},"class-name":[{pattern:/(\bclass\s+)\w+/,lookbehind:!0},/\b[A-Z][a-z\d_]*\b/],constant:/\b[A-Z][A-Z\d_]*\b/,null:{pattern:/\bnull\b/,alias:"keyword"},keyword:/\b(?:as|break|class|construct|continue|else|for|foreign|if|import|in|is|return|static|super|this|var|while)\b/,boolean:/\b(?:false|true)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,function:/\b[a-z_]\w*(?=\s*[({])/i,operator:/<<|>>|[=!<>]=?|&&|\|\||[-+*/%~^&|?:]|\.{2,3}/,punctuation:/[\[\](){}.,;]/},d.languages.wren["string-literal"]={pattern:/(^|[^\\"])"(?:[^\\"%]|\\[\s\S]|%(?!\()|%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\))*"/,lookbehind:!0,greedy:!0,inside:{interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)%\((?:[^()]|\((?:[^()]|\([^)]*\))*\))*\)/,lookbehind:!0,inside:{expression:{pattern:/^(%\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:d.languages.wren},"interpolation-punctuation":{pattern:/^%\(|\)$/,alias:"punctuation"}}},string:/[\s\S]+/}}}},88904:function(J){"use strict";J.exports=C,C.displayName="xeora",C.aliases=["xeoracube"];function C(d){(function(b){b.languages.xeora=b.languages.extend("markup",{constant:{pattern:/\$(?:DomainContents|PageRenderDuration)\$/,inside:{punctuation:{pattern:/\$/}}},variable:{pattern:/\$@?(?:#+|[-+*~=^])?[\w.]+\$/,inside:{punctuation:{pattern:/[$.]/},operator:{pattern:/#+|[-+*~=^@]/}}},"function-inline":{pattern:/\$F:[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\$/,inside:{variable:{pattern:/(?:[,|])@?(?:#+|[-+*~=^])?[\w.]+/,inside:{punctuation:{pattern:/[,.|]/},operator:{pattern:/#+|[-+*~=^@]/}}},punctuation:{pattern:/\$\w:|[$:?.,|]/}},alias:"function"},"function-block":{pattern:/\$XF:\{[-\w.]+\?[-\w.]+(?:,(?:(?:@[-#]*\w+\.[\w+.]\.*)*\|)*(?:(?:[\w+]|[-#*.~^]+[\w+]|=\S)(?:[^$=]|=+[^=])*=*|(?:@[-#]*\w+\.[\w+.]\.*)+(?:(?:[\w+]|[-#*~^][-#*.~^]*[\w+]|=\S)(?:[^$=]|=+[^=])*=*)?)?)?\}:XF\$/,inside:{punctuation:{pattern:/[$:{}?.,|]/}},alias:"function"},"directive-inline":{pattern:/\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\/\w.]+\$/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}}},alias:"function"},"directive-block-open":{pattern:/\$\w+:\{|\$\w(?:#\d+\+?)?(?:\[[-\w.]+\])?:[-\w.]+:\{(?:![A-Z]+)?/,inside:{punctuation:{pattern:/\$(?:\w:|C(?:\[|#\d))?|[:{[\]]/,inside:{tag:{pattern:/#\d/}}},attribute:{pattern:/![A-Z]+$/,inside:{punctuation:{pattern:/!/}},alias:"keyword"}},alias:"function"},"directive-block-separator":{pattern:/\}:[-\w.]+:\{/,inside:{punctuation:{pattern:/[:{}]/}},alias:"function"},"directive-block-close":{pattern:/\}:[-\w.]+\$/,inside:{punctuation:{pattern:/[:{}$]/}},alias:"function"}}),b.languages.insertBefore("inside","punctuation",{variable:b.languages.xeora["function-inline"].inside.variable},b.languages.xeora["function-block"]),b.languages.xeoracube=b.languages.xeora})(d)}},35:function(J){"use strict";J.exports=C,C.displayName="xmlDoc",C.aliases=[];function C(d){(function(b){function I(Q,M){b.languages[Q]&&b.languages.insertBefore(Q,"comment",{"doc-comment":M})}var L=b.languages.markup.tag,B={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:L}},V={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:L}};I("csharp",B),I("fsharp",B),I("vbnet",V)})(d)}},86095:function(J){"use strict";J.exports=C,C.displayName="xojo",C.aliases=[];function C(d){d.languages.xojo={comment:{pattern:/(?:'|\/\/|Rem\b).+/i,greedy:!0},string:{pattern:/"(?:""|[^"])*"/,greedy:!0},number:[/(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:E[+-]?\d+)?/i,/&[bchou][a-z\d]+/i],directive:{pattern:/#(?:Else|ElseIf|Endif|If|Pragma)\b/i,alias:"property"},keyword:/\b(?:AddHandler|App|Array|As(?:signs)?|Auto|Boolean|Break|By(?:Ref|Val)|Byte|Call|Case|Catch|CFStringRef|CGFloat|Class|Color|Const|Continue|CString|Currency|CurrentMethodName|Declare|Delegate|Dim|Do(?:uble|wnTo)?|Each|Else(?:If)?|End|Enumeration|Event|Exception|Exit|Extends|False|Finally|For|Function|Get|GetTypeInfo|Global|GOTO|If|Implements|In|Inherits|Int(?:8|16|32|64|eger|erface)?|Lib|Loop|Me|Module|Next|Nil|Object|Optional|OSType|ParamArray|Private|Property|Protected|PString|Ptr|Raise(?:Event)?|ReDim|RemoveHandler|Return|Select(?:or)?|Self|Set|Shared|Short|Single|Soft|Static|Step|String|Sub|Super|Text|Then|To|True|Try|Ubound|UInt(?:8|16|32|64|eger)?|Until|Using|Var(?:iant)?|Wend|While|WindowPtr|WString)\b/i,operator:/<[=>]?|>=?|[+\-*\/\\^=]|\b(?:AddressOf|And|Ctype|IsA?|Mod|New|Not|Or|WeakAddressOf|Xor)\b/i,punctuation:/[.,;:()]/}}},76998:function(J){"use strict";J.exports=C,C.displayName="xquery",C.aliases=[];function C(d){(function(b){b.languages.xquery=b.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),b.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,b.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,b.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,b.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:b.languages.xquery,alias:"language-xquery"};var I=function(B){return typeof B=="string"?B:typeof B.content=="string"?B.content:B.content.map(I).join("")},L=function(B){for(var V=[],Q=0;Q<B.length;Q++){var M=B[Q],de=!1;if(typeof M!="string"&&(M.type==="tag"&&M.content[0]&&M.content[0].type==="tag"?M.content[0].content[0].content==="</"?V.length>0&&V[V.length-1].tagName===I(M.content[0].content[1])&&V.pop():M.content[M.content.length-1].content==="/>"||V.push({tagName:I(M.content[0].content[1]),openedBraces:0}):V.length>0&&M.type==="punctuation"&&M.content==="{"&&(!B[Q+1]||B[Q+1].type!=="punctuation"||B[Q+1].content!=="{")&&(!B[Q-1]||B[Q-1].type!=="plain-text"||B[Q-1].content!=="{")?V[V.length-1].openedBraces++:V.length>0&&V[V.length-1].openedBraces>0&&M.type==="punctuation"&&M.content==="}"?V[V.length-1].openedBraces--:M.type!=="comment"&&(de=!0)),(de||typeof M=="string")&&V.length>0&&V[V.length-1].openedBraces===0){var he=I(M);Q<B.length-1&&(typeof B[Q+1]=="string"||B[Q+1].type==="plain-text")&&(he+=I(B[Q+1]),B.splice(Q+1,1)),Q>0&&(typeof B[Q-1]=="string"||B[Q-1].type==="plain-text")&&(he=I(B[Q-1])+he,B.splice(Q-1,1),Q--),/^\s+$/.test(he)?B[Q]=he:B[Q]=new b.Token("plain-text",he,null,he)}M.content&&typeof M.content!="string"&&L(M.content)}};b.hooks.add("after-tokenize",function(B){B.language==="xquery"&&L(B.tokens)})})(d)}},14409:function(J){"use strict";J.exports=C,C.displayName="yaml",C.aliases=["yml"];function C(d){(function(b){var I=/[*&][^\s[\]{},]+/,L=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,B="(?:"+L.source+"(?:[ ]+"+I.source+")?|"+I.source+"(?:[ ]+"+L.source+")?)",V=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-]<PLAIN>)(?:[ \t]*(?:(?![#:])<PLAIN>|:<PLAIN>))*/.source.replace(/<PLAIN>/g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),Q=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function M(de,he){he=(he||"").replace(/m/g,"")+"m";var re=/([:\-,[{]\s*(?:\s<<prop>>[ \t]+)?)(?:<<value>>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<<prop>>/g,function(){return B}).replace(/<<value>>/g,function(){return de});return RegExp(re,he)}b.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<<prop>>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<<prop>>/g,function(){return B})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<<prop>>[ \t]+)?)<<key>>(?=\s*:\s)/.source.replace(/<<prop>>/g,function(){return B}).replace(/<<key>>/g,function(){return"(?:"+V+"|"+Q+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:M(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:M(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:M(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:M(Q),lookbehind:!0,greedy:!0},number:{pattern:M(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:L,important:I,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},b.languages.yml=b.languages.yaml})(d)}},33460:function(J){"use strict";J.exports=C,C.displayName="yang",C.aliases=[];function C(d){d.languages.yang={comment:/\/\*[\s\S]*?\*\/|\/\/.*/,string:{pattern:/"(?:[^\\"]|\\.)*"|'[^']*'/,greedy:!0},keyword:{pattern:/(^|[{};\r\n][ \t]*)[a-z_][\w.-]*/i,lookbehind:!0},namespace:{pattern:/(\s)[a-z_][\w.-]*(?=:)/i,lookbehind:!0},boolean:/\b(?:false|true)\b/,operator:/\+/,punctuation:/[{};:]/}}},28108:function(J){"use strict";J.exports=C,C.displayName="zig",C.aliases=[];function C(d){(function(b){function I(he){return function(){return he}}var L=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,B="\\b(?!"+L.source+")(?!\\d)\\w+\\b",V=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,Q=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*<ALIGN>|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(/<ALIGN>/g,I(V)),M=/(?:\bpromise\b|(?:\berror\.)?<ID>(?:\.<ID>)*(?!\s+<ID>))/.source.replace(/<ID>/g,I(B)),de="(?!\\s)(?:!?\\s*(?:"+Q+"\\s*)*"+M+")+";b.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?[=;,)])|<TYPE>(?=\s*(?:<ALIGN>\s*)?\{)/.source.replace(/<TYPE>/g,I(de)).replace(/<ALIGN>/g,I(V))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)<TYPE>(?=\s*(?:<ALIGN>\s*)?;)/.source.replace(/<TYPE>/g,I(de)).replace(/<ALIGN>/g,I(V))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:L,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},b.languages.zig["class-name"].forEach(function(he){he.inside===null&&(he.inside=b.languages.zig)})})(d)}},49063:function(J,C){"use strict";var d;C.Q=B,d=V;var b="",I=" ",L=/[ \t\n\r\f]+/g;function B(Q){var M=String(Q||b).trim();return M===b?[]:M.split(L)}function V(Q){return Q.join(I).trim()}},58970:function(J,C,d){"use strict";var b=this&&this.__importDefault||function(B){return B&&B.__esModule?B:{default:B}};Object.defineProperty(C,"__esModule",{value:!0}),C.default=L;var I=b(d(93193));function L(B,V){var Q=null;if(!B||typeof B!="string")return Q;var M=(0,I.default)(B),de=typeof V=="function";return M.forEach(function(he){if(he.type==="declaration"){var re=he.property,De=he.value;de?V(re,De,he):De&&(Q=Q||{},Q[re]=De)}}),Q}},97270:function(J){J.exports=d;var C=Object.prototype.hasOwnProperty;function d(){for(var b={},I=0;I<arguments.length;I++){var L=arguments[I];for(var B in L)C.call(L,B)&&(b[B]=L[B])}return b}},90302:function(J,C,d){"use strict";d.d(C,{ZP:function(){return pe}});const b=-1,I=0,L=1,B=2,V=3,Q=4,M=5,de=6,he=7,re=8,De=typeof self=="object"?self:globalThis,ne=(Ne,te)=>{const Ae=($e,Qe)=>(Ne.set(Qe,$e),$e),Te=$e=>{if(Ne.has($e))return Ne.get($e);const[Qe,Je]=te[$e];switch(Qe){case I:case b:return Ae(Je,$e);case L:{const Ce=Ae([],$e);for(const dt of Je)Ce.push(Te(dt));return Ce}case B:{const Ce=Ae({},$e);for(const[dt,Xe]of Je)Ce[Te(dt)]=Te(Xe);return Ce}case V:return Ae(new Date(Je),$e);case Q:{const{source:Ce,flags:dt}=Je;return Ae(new RegExp(Ce,dt),$e)}case M:{const Ce=Ae(new Map,$e);for(const[dt,Xe]of Je)Ce.set(Te(dt),Te(Xe));return Ce}case de:{const Ce=Ae(new Set,$e);for(const dt of Je)Ce.add(Te(dt));return Ce}case he:{const{name:Ce,message:dt}=Je;return Ae(new De[Ce](dt),$e)}case re:return Ae(BigInt(Je),$e);case"BigInt":return Ae(Object(BigInt(Je)),$e);case"ArrayBuffer":return Ae(new Uint8Array(Je).buffer,Je);case"DataView":{const{buffer:Ce}=new Uint8Array(Je);return Ae(new DataView(Ce),Je)}}return Ae(new De[Qe](Je),$e)};return Te},it=Ne=>ne(new Map,Ne)(0),Ue="",{toString:Ie}={},{keys:Pe}=Object,ze=Ne=>{const te=typeof Ne;if(te!=="object"||!Ne)return[I,te];const Ae=Ie.call(Ne).slice(8,-1);switch(Ae){case"Array":return[L,Ue];case"Object":return[B,Ue];case"Date":return[V,Ue];case"RegExp":return[Q,Ue];case"Map":return[M,Ue];case"Set":return[de,Ue];case"DataView":return[L,Ae]}return Ae.includes("Array")?[L,Ae]:Ae.includes("Error")?[he,Ae]:[B,Ae]},Ee=([Ne,te])=>Ne===I&&(te==="function"||te==="symbol"),fe=(Ne,te,Ae,Te)=>{const $e=(Je,Ce)=>{const dt=Te.push(Je)-1;return Ae.set(Ce,dt),dt},Qe=Je=>{if(Ae.has(Je))return Ae.get(Je);let[Ce,dt]=ze(Je);switch(Ce){case I:{let $t=Je;switch(dt){case"bigint":Ce=re,$t=Je.toString();break;case"function":case"symbol":if(Ne)throw new TypeError("unable to serialize "+dt);$t=null;break;case"undefined":return $e([b],Je)}return $e([Ce,$t],Je)}case L:{if(dt){let At=Je;return dt==="DataView"?At=new Uint8Array(Je.buffer):dt==="ArrayBuffer"&&(At=new Uint8Array(Je)),$e([dt,[...At]],Je)}const $t=[],xt=$e([Ce,$t],Je);for(const At of Je)$t.push(Qe(At));return xt}case B:{if(dt)switch(dt){case"BigInt":return $e([dt,Je.toString()],Je);case"Boolean":case"Number":case"String":return $e([dt,Je.valueOf()],Je)}if(te&&"toJSON"in Je)return Qe(Je.toJSON());const $t=[],xt=$e([Ce,$t],Je);for(const At of Pe(Je))(Ne||!Ee(ze(Je[At])))&&$t.push([Qe(At),Qe(Je[At])]);return xt}case V:return $e([Ce,Je.toISOString()],Je);case Q:{const{source:$t,flags:xt}=Je;return $e([Ce,{source:$t,flags:xt}],Je)}case M:{const $t=[],xt=$e([Ce,$t],Je);for(const[At,St]of Je)(Ne||!(Ee(ze(At))||Ee(ze(St))))&&$t.push([Qe(At),Qe(St)]);return xt}case de:{const $t=[],xt=$e([Ce,$t],Je);for(const At of Je)(Ne||!Ee(ze(At)))&&$t.push(Qe(At));return xt}}const{message:Xe}=Je;return $e([Ce,{name:dt,message:Xe}],Je)};return Qe},we=(Ne,{json:te,lossy:Ae}={})=>{const Te=[];return fe(!(te||Ae),!!te,new Map,Te)(Ne),Te};var pe=typeof structuredClone=="function"?(Ne,te)=>te&&("json"in te||"lossy"in te)?it(we(Ne,te)):structuredClone(Ne):(Ne,te)=>it(we(Ne,te))},11630:function(J,C,d){"use strict";d.d(C,{P:function(){return I},Q:function(){return b}});function b(L){const B=[],V=String(L||"");let Q=V.indexOf(","),M=0,de=!1;for(;!de;){Q===-1&&(Q=V.length,de=!0);const he=V.slice(M,Q).trim();(he||!de)&&B.push(he),M=Q+1,Q=V.indexOf(",",M)}return B}function I(L,B){const V=B||{};return(L[L.length-1]===""?[...L,""]:L).join((V.padRight?" ":"")+","+(V.padLeft===!1?"":" ")).trim()}},87342:function(J,C,d){"use strict";d.d(C,{ok:function(){return L},t1:function(){return B}});function b(V){return V}function I(){}function L(){}function B(){}},74618:function(J,C,d){"use strict";d.d(C,{h:function(){return ze},s:function(){return Ee}});var b=d(54099),I=d(11630);const L=/[#.]/g;function B(fe,we){const pe=fe||"",Ne={};let te=0,Ae,Te;for(;te<pe.length;){L.lastIndex=te;const $e=L.exec(pe),Qe=pe.slice(te,$e?$e.index:pe.length);Qe&&(Ae?Ae==="#"?Ne.id=Qe:Array.isArray(Ne.className)?Ne.className.push(Qe):Ne.className=[Qe]:Te=Qe,te+=Qe.length),$e&&(Ae=$e[0],te++)}return{type:"element",tagName:Te||we||"div",properties:Ne,children:[]}}var V=d(52549),Q=d(69901),M=d(71523);const de={}.hasOwnProperty;function he(fe,we,pe){const Ne=pe&&Ie(pe);function te(Ae,Te,...$e){let Qe=-1,Je;if(Ae==null){Je={type:"root",children:[]};const Ce=Te;$e.unshift(Ce)}else if(Je=B(Ae,we),Je.tagName=Je.tagName.toLowerCase(),Ne&&de.call(Ne,Je.tagName)&&(Je.tagName=Ne[Je.tagName]),re(Te))$e.unshift(Te);else{let Ce;for(Ce in Te)de.call(Te,Ce)&&De(fe,Je.properties,Ce,Te[Ce])}for(;++Qe<$e.length;)ne(Je.children,$e[Qe]);return Je.type==="element"&&Je.tagName==="template"&&(Je.content={type:"root",children:Je.children},Je.children=[]),Je}return te}function re(fe){if(fe===null||typeof fe!="object"||Array.isArray(fe))return!0;if(typeof fe.type!="string")return!1;const we=fe,pe=Object.keys(fe);for(const Ne of pe){const te=we[Ne];if(te&&typeof te=="object"){if(!Array.isArray(te))return!0;const Ae=te;for(const Te of Ae)if(typeof Te!="number"&&typeof Te!="string")return!0}}return!!("children"in fe&&Array.isArray(fe.children))}function De(fe,we,pe,Ne){const te=(0,V.s)(fe,pe);let Ae=-1,Te;if(Ne!=null){if(typeof Ne=="number"){if(Number.isNaN(Ne))return;Te=Ne}else typeof Ne=="boolean"?Te=Ne:typeof Ne=="string"?te.spaceSeparated?Te=(0,M.Q)(Ne):te.commaSeparated?Te=(0,I.Q)(Ne):te.commaOrSpaceSeparated?Te=(0,M.Q)((0,I.Q)(Ne).join(" ")):Te=it(te,te.property,Ne):Array.isArray(Ne)?Te=Ne.concat():Te=te.property==="style"?Ue(Ne):String(Ne);if(Array.isArray(Te)){const $e=[];for(;++Ae<Te.length;){const Qe=it(te,te.property,Te[Ae]);$e[Ae]=Qe}Te=$e}if(te.property==="className"&&Array.isArray(we.className)){const $e=Te;Te=we.className.concat($e)}we[te.property]=Te}}function ne(fe,we){let pe=-1;if(we!=null)if(typeof we=="string"||typeof we=="number")fe.push({type:"text",value:String(we)});else if(Array.isArray(we))for(;++pe<we.length;)ne(fe,we[pe]);else if(typeof we=="object"&&"type"in we)we.type==="root"?ne(fe,we.children):fe.push(we);else throw new Error("Expected node, nodes, or string, got `"+we+"`")}function it(fe,we,pe){if(typeof pe=="string"){if(fe.number&&pe&&!Number.isNaN(Number(pe)))return Number(pe);if((fe.boolean||fe.overloadedBoolean)&&(pe===""||(0,Q.F)(pe)===(0,Q.F)(we)))return!0}return pe}function Ue(fe){const we=[];let pe;for(pe in fe)de.call(fe,pe)&&we.push([pe,fe[pe]].join(": "));return we.join("; ")}function Ie(fe){const we={};let pe=-1;for(;++pe<fe.length;)we[fe[pe].toLowerCase()]=fe[pe];return we}const Pe=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],ze=he(b.dy,"div"),Ee=he(b.YP,"g",Pe)},26735:function(J,C,d){"use strict";d.d(C,{f:function(){return I}});var b=d(80722);function I(L,B,V,Q){const M=Q?Q-1:Number.POSITIVE_INFINITY;let de=0;return he;function he(De){return(0,b.xz)(De)?(L.enter(V),re(De)):B(De)}function re(De){return(0,b.xz)(De)&&de++<M?(L.consume(De),re):(L.exit(V),B(De))}}},80722:function(J,C,d){"use strict";d.d(C,{AF:function(){return Q},Av:function(){return B},B8:function(){return ne},Ch:function(){return de},H$:function(){return I},Xh:function(){return De},jv:function(){return b},n9:function(){return L},pY:function(){return V},sR:function(){return M},xz:function(){return re},z3:function(){return he}});const b=it(/[A-Za-z]/),I=it(/[\dA-Za-z]/),L=it(/[#-'*+\--9=?A-Z^-~]/);function B(Ue){return Ue!==null&&(Ue<32||Ue===127)}const V=it(/\d/),Q=it(/[\dA-Fa-f]/),M=it(/[!-/:-@[-`{-~]/);function de(Ue){return Ue!==null&&Ue<-2}function he(Ue){return Ue!==null&&(Ue<0||Ue===32)}function re(Ue){return Ue===-2||Ue===-1||Ue===32}const De=it(new RegExp("\\p{P}|\\p{S}","u")),ne=it(/\s/);function it(Ue){return Ie;function Ie(Pe){return Pe!==null&&Pe>-1&&Ue.test(String.fromCharCode(Pe))}}},54099:function(J,C,d){"use strict";d.d(C,{dy:function(){return Pe},YP:function(){return ze}});class b{constructor(fe,we,pe){this.property=fe,this.normal=we,pe&&(this.space=pe)}}b.prototype.property={},b.prototype.normal={},b.prototype.space=null;function I(Ee,fe){const we={},pe={};let Ne=-1;for(;++Ne<Ee.length;)Object.assign(we,Ee[Ne].property),Object.assign(pe,Ee[Ne].normal);return new b(we,pe,fe)}var L=d(69901),B=d(32514);const V={}.hasOwnProperty;function Q(Ee){const fe={},we={};let pe;for(pe in Ee.properties)if(V.call(Ee.properties,pe)){const Ne=Ee.properties[pe],te=new B.I(pe,Ee.transform(Ee.attributes||{},pe),Ne,Ee.space);Ee.mustUseProperty&&Ee.mustUseProperty.includes(pe)&&(te.mustUseProperty=!0),fe[pe]=te,we[(0,L.F)(pe)]=pe,we[(0,L.F)(te.attribute)]=pe}return new b(fe,we,Ee.space)}const M=Q({space:"xlink",transform(Ee,fe){return"xlink:"+fe.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),de=Q({space:"xml",transform(Ee,fe){return"xml:"+fe.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function he(Ee,fe){return fe in Ee?Ee[fe]:fe}function re(Ee,fe){return he(Ee,fe.toLowerCase())}const De=Q({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:re,properties:{xmlns:null,xmlnsXLink:null}});var ne=d(9393);const it=Q({transform(Ee,fe){return fe==="role"?fe:"aria-"+fe.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:ne.booleanish,ariaAutoComplete:null,ariaBusy:ne.booleanish,ariaChecked:ne.booleanish,ariaColCount:ne.number,ariaColIndex:ne.number,ariaColSpan:ne.number,ariaControls:ne.spaceSeparated,ariaCurrent:null,ariaDescribedBy:ne.spaceSeparated,ariaDetails:null,ariaDisabled:ne.booleanish,ariaDropEffect:ne.spaceSeparated,ariaErrorMessage:null,ariaExpanded:ne.booleanish,ariaFlowTo:ne.spaceSeparated,ariaGrabbed:ne.booleanish,ariaHasPopup:null,ariaHidden:ne.booleanish,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:ne.spaceSeparated,ariaLevel:ne.number,ariaLive:null,ariaModal:ne.booleanish,ariaMultiLine:ne.booleanish,ariaMultiSelectable:ne.booleanish,ariaOrientation:null,ariaOwns:ne.spaceSeparated,ariaPlaceholder:null,ariaPosInSet:ne.number,ariaPressed:ne.booleanish,ariaReadOnly:ne.booleanish,ariaRelevant:null,ariaRequired:ne.booleanish,ariaRoleDescription:ne.spaceSeparated,ariaRowCount:ne.number,ariaRowIndex:ne.number,ariaRowSpan:ne.number,ariaSelected:ne.booleanish,ariaSetSize:ne.number,ariaSort:null,ariaValueMax:ne.number,ariaValueMin:ne.number,ariaValueNow:ne.number,ariaValueText:null,role:null}}),Ue=Q({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:re,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:ne.commaSeparated,acceptCharset:ne.spaceSeparated,accessKey:ne.spaceSeparated,action:null,allow:null,allowFullScreen:ne.boolean,allowPaymentRequest:ne.boolean,allowUserMedia:ne.boolean,alt:null,as:null,async:ne.boolean,autoCapitalize:null,autoComplete:ne.spaceSeparated,autoFocus:ne.boolean,autoPlay:ne.boolean,blocking:ne.spaceSeparated,capture:null,charSet:null,checked:ne.boolean,cite:null,className:ne.spaceSeparated,cols:ne.number,colSpan:null,content:null,contentEditable:ne.booleanish,controls:ne.boolean,controlsList:ne.spaceSeparated,coords:ne.number|ne.commaSeparated,crossOrigin:null,data:null,dateTime:null,decoding:null,default:ne.boolean,defer:ne.boolean,dir:null,dirName:null,disabled:ne.boolean,download:ne.overloadedBoolean,draggable:ne.booleanish,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:ne.boolean,formTarget:null,headers:ne.spaceSeparated,height:ne.number,hidden:ne.boolean,high:ne.number,href:null,hrefLang:null,htmlFor:ne.spaceSeparated,httpEquiv:ne.spaceSeparated,id:null,imageSizes:null,imageSrcSet:null,inert:ne.boolean,inputMode:null,integrity:null,is:null,isMap:ne.boolean,itemId:null,itemProp:ne.spaceSeparated,itemRef:ne.spaceSeparated,itemScope:ne.boolean,itemType:ne.spaceSeparated,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:ne.boolean,low:ne.number,manifest:null,max:null,maxLength:ne.number,media:null,method:null,min:null,minLength:ne.number,multiple:ne.boolean,muted:ne.boolean,name:null,nonce:null,noModule:ne.boolean,noValidate:ne.boolean,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:ne.boolean,optimum:ne.number,pattern:null,ping:ne.spaceSeparated,placeholder:null,playsInline:ne.boolean,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:ne.boolean,referrerPolicy:null,rel:ne.spaceSeparated,required:ne.boolean,reversed:ne.boolean,rows:ne.number,rowSpan:ne.number,sandbox:ne.spaceSeparated,scope:null,scoped:ne.boolean,seamless:ne.boolean,selected:ne.boolean,shadowRootClonable:ne.boolean,shadowRootDelegatesFocus:ne.boolean,shadowRootMode:null,shape:null,size:ne.number,sizes:null,slot:null,span:ne.number,spellCheck:ne.booleanish,src:null,srcDoc:null,srcLang:null,srcSet:null,start:ne.number,step:null,style:null,tabIndex:ne.number,target:null,title:null,translate:null,type:null,typeMustMatch:ne.boolean,useMap:null,value:ne.booleanish,width:ne.number,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:ne.spaceSeparated,axis:null,background:null,bgColor:null,border:ne.number,borderColor:null,bottomMargin:ne.number,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:ne.boolean,declare:ne.boolean,event:null,face:null,frame:null,frameBorder:null,hSpace:ne.number,leftMargin:ne.number,link:null,longDesc:null,lowSrc:null,marginHeight:ne.number,marginWidth:ne.number,noResize:ne.boolean,noHref:ne.boolean,noShade:ne.boolean,noWrap:ne.boolean,object:null,profile:null,prompt:null,rev:null,rightMargin:ne.number,rules:null,scheme:null,scrolling:ne.booleanish,standby:null,summary:null,text:null,topMargin:ne.number,valueType:null,version:null,vAlign:null,vLink:null,vSpace:ne.number,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:ne.boolean,disableRemotePlayback:ne.boolean,prefix:null,property:null,results:ne.number,security:null,unselectable:null}}),Ie=Q({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:he,properties:{about:ne.commaOrSpaceSeparated,accentHeight:ne.number,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:ne.number,amplitude:ne.number,arabicForm:null,ascent:ne.number,attributeName:null,attributeType:null,azimuth:ne.number,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:ne.number,by:null,calcMode:null,capHeight:ne.number,className:ne.spaceSeparated,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:ne.number,diffuseConstant:ne.number,direction:null,display:null,dur:null,divisor:ne.number,dominantBaseline:null,download:ne.boolean,dx:null,dy:null,edgeMode:null,editable:null,elevation:ne.number,enableBackground:null,end:null,event:null,exponent:ne.number,externalResourcesRequired:null,fill:null,fillOpacity:ne.number,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:ne.commaSeparated,g2:ne.commaSeparated,glyphName:ne.commaSeparated,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:ne.number,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:ne.number,horizOriginX:ne.number,horizOriginY:ne.number,id:null,ideographic:ne.number,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:ne.number,k:ne.number,k1:ne.number,k2:ne.number,k3:ne.number,k4:ne.number,kernelMatrix:ne.commaOrSpaceSeparated,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:ne.number,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:ne.number,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:ne.number,overlineThickness:ne.number,paintOrder:null,panose1:null,path:null,pathLength:ne.number,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:ne.spaceSeparated,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:ne.number,pointsAtY:ne.number,pointsAtZ:ne.number,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:ne.commaOrSpaceSeparated,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:ne.commaOrSpaceSeparated,rev:ne.commaOrSpaceSeparated,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:ne.commaOrSpaceSeparated,requiredFeatures:ne.commaOrSpaceSeparated,requiredFonts:ne.commaOrSpaceSeparated,requiredFormats:ne.commaOrSpaceSeparated,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:ne.number,specularExponent:ne.number,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:ne.number,strikethroughThickness:ne.number,string:null,stroke:null,strokeDashArray:ne.commaOrSpaceSeparated,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:ne.number,strokeOpacity:ne.number,strokeWidth:null,style:null,surfaceScale:ne.number,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:ne.commaOrSpaceSeparated,tabIndex:ne.number,tableValues:null,target:null,targetX:ne.number,targetY:ne.number,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:ne.commaOrSpaceSeparated,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:ne.number,underlineThickness:ne.number,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:ne.number,values:null,vAlphabetic:ne.number,vMathematical:ne.number,vectorEffect:null,vHanging:ne.number,vIdeographic:ne.number,version:null,vertAdvY:ne.number,vertOriginX:ne.number,vertOriginY:ne.number,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:ne.number,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),Pe=I([de,M,De,it,Ue],"html"),ze=I([de,M,De,it,Ie],"svg")},52549:function(J,C,d){"use strict";d.d(C,{s:function(){return M}});var b=d(69901),I=d(32514),L=d(8053);const B=/^data[-\w.:]+$/i,V=/-[a-z]/g,Q=/[A-Z]/g;function M(re,De){const ne=(0,b.F)(De);let it=De,Ue=L.k;if(ne in re.normal)return re.property[re.normal[ne]];if(ne.length>4&&ne.slice(0,4)==="data"&&B.test(De)){if(De.charAt(4)==="-"){const Ie=De.slice(5).replace(V,he);it="data"+Ie.charAt(0).toUpperCase()+Ie.slice(1)}else{const Ie=De.slice(4);if(!V.test(Ie)){let Pe=Ie.replace(Q,de);Pe.charAt(0)!=="-"&&(Pe="-"+Pe),De="data"+Pe}}Ue=I.I}return new Ue(it,De)}function de(re){return"-"+re.toLowerCase()}function he(re){return re.charAt(1).toUpperCase()}},69901:function(J,C,d){"use strict";d.d(C,{F:function(){return b}});function b(I){return I.toLowerCase()}},32514:function(J,C,d){"use strict";d.d(C,{I:function(){return B}});var b=d(8053),I=d(9393);const L=Object.keys(I);class B extends b.k{constructor(M,de,he,re){let De=-1;if(super(M,de),V(this,"space",re),typeof he=="number")for(;++De<L.length;){const ne=L[De];V(this,L[De],(he&I[ne])===I[ne])}}}B.prototype.defined=!0;function V(Q,M,de){de&&(Q[M]=de)}},8053:function(J,C,d){"use strict";d.d(C,{k:function(){return b}});class b{constructor(L,B){this.property=L,this.attribute=B}}b.prototype.space=null,b.prototype.boolean=!1,b.prototype.booleanish=!1,b.prototype.overloadedBoolean=!1,b.prototype.number=!1,b.prototype.commaSeparated=!1,b.prototype.spaceSeparated=!1,b.prototype.commaOrSpaceSeparated=!1,b.prototype.mustUseProperty=!1,b.prototype.defined=!1},9393:function(J,C,d){"use strict";d.r(C),d.d(C,{boolean:function(){return I},booleanish:function(){return L},commaOrSpaceSeparated:function(){return de},commaSeparated:function(){return M},number:function(){return V},overloadedBoolean:function(){return B},spaceSeparated:function(){return Q}});let b=0;const I=he(),L=he(),B=he(),V=he(),Q=he(),M=he(),de=he();function he(){return Ab(2,++b)}},19999:function(J,C,d){"use strict";d.d(C,{U:function(){return Rn}});var b={};d.r(b),d.d(b,{attentionMarkers:function(){return Da},contentInitial:function(){return xn},disable:function(){return Ia},document:function(){return gr},flow:function(){return vi},flowInitial:function(){return ur},insideSpan:function(){return oa},string:function(){return Bo},text:function(){return ys}});var I=d(87342),L=d(11630);const B=/[$_\p{ID_Start}]/u,V=/[$_\u{200C}\u{200D}\p{ID_Continue}]/u,Q=/[-$_\u{200C}\u{200D}\p{ID_Continue}]/u,M=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,de=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,he={};function re(E){return E?B.test(String.fromCodePoint(E)):!1}function De(E,P){const q=(P||he).jsx?Q:V;return E?q.test(String.fromCodePoint(E)):!1}function ne(E,P){return((P||he).jsx?de:M).test(E)}const it=/[ \t\n\f\r]/g;function Ue(E){return typeof E=="object"?E.type==="text"?Ie(E.value):!1:Ie(E)}function Ie(E){return E.replace(it,"")===""}var Pe=d(54099),ze=d(52549);const Ee={classId:"classID",dataType:"datatype",itemId:"itemID",strokeDashArray:"strokeDasharray",strokeDashOffset:"strokeDashoffset",strokeLineCap:"strokeLinecap",strokeLineJoin:"strokeLinejoin",strokeMiterLimit:"strokeMiterlimit",typeOf:"typeof",xLinkActuate:"xlinkActuate",xLinkArcRole:"xlinkArcrole",xLinkHref:"xlinkHref",xLinkRole:"xlinkRole",xLinkShow:"xlinkShow",xLinkTitle:"xlinkTitle",xLinkType:"xlinkType",xmlnsXLink:"xmlnsXlink"};var fe=d(71523),we=d(58970),pe=we.default||we,Ne=d(17970);function te(E){return!E||typeof E!="object"?"":"position"in E||"type"in E?Te(E.position):"start"in E||"end"in E?Te(E):"line"in E||"column"in E?Ae(E):""}function Ae(E){return $e(E&&E.line)+":"+$e(E&&E.column)}function Te(E){return Ae(E&&E.start)+"-"+Ae(E&&E.end)}function $e(E){return E&&typeof E=="number"?E:1}class Qe extends Error{constructor(P,U,q){super(),typeof U=="string"&&(q=U,U=void 0);let le="",ge={},Me=!1;if(U&&("line"in U&&"column"in U?ge={place:U}:"start"in U&&"end"in U?ge={place:U}:"type"in U?ge={ancestors:[U],place:U.position}:ge=Eo({},U)),typeof P=="string"?le=P:!ge.cause&&P&&(Me=!0,le=P.message,ge.cause=P),!ge.ruleId&&!ge.source&&typeof q=="string"){const zt=q.indexOf(":");zt===-1?ge.ruleId=q:(ge.source=q.slice(0,zt),ge.ruleId=q.slice(zt+1))}if(!ge.place&&ge.ancestors&&ge.ancestors){const zt=ge.ancestors[ge.ancestors.length-1];zt&&(ge.place=zt.position)}const et=ge.place&&"start"in ge.place?ge.place.start:ge.place;this.ancestors=ge.ancestors||void 0,this.cause=ge.cause||void 0,this.column=et?et.column:void 0,this.fatal=void 0,this.file,this.message=le,this.line=et?et.line:void 0,this.name=te(ge.place)||"1:1",this.place=ge.place||void 0,this.reason=this.message,this.ruleId=ge.ruleId||void 0,this.source=ge.source||void 0,this.stack=Me&&ge.cause&&typeof ge.cause.stack=="string"?ge.cause.stack:"",this.actual,this.expected,this.note,this.url}}Qe.prototype.file="",Qe.prototype.name="",Qe.prototype.reason="",Qe.prototype.message="",Qe.prototype.stack="",Qe.prototype.column=void 0,Qe.prototype.line=void 0,Qe.prototype.ancestors=void 0,Qe.prototype.cause=void 0,Qe.prototype.fatal=void 0,Qe.prototype.place=void 0,Qe.prototype.ruleId=void 0,Qe.prototype.source=void 0;const Je={}.hasOwnProperty,Ce=new Map,dt=/[A-Z]/g,Xe=/-([a-z])/g,$t=new Set(["table","tbody","thead","tfoot","tr"]),xt=new Set(["td","th"]),At="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function St(E,P){if(!P||P.Fragment===void 0)throw new TypeError("Expected `Fragment` in options");const U=P.filePath||void 0;let q;if(P.development){if(typeof P.jsxDEV!="function")throw new TypeError("Expected `jsxDEV` in options when `development: true`");q=yt(U,P.jsxDEV)}else{if(typeof P.jsx!="function")throw new TypeError("Expected `jsx` in production options");if(typeof P.jsxs!="function")throw new TypeError("Expected `jsxs` in production options");q=hi(U,P.jsx,P.jsxs)}const le={Fragment:P.Fragment,ancestors:[],components:P.components||{},create:q,elementAttributeNameCase:P.elementAttributeNameCase||"react",evaluater:P.createEvaluater?P.createEvaluater():void 0,filePath:U,ignoreInvalidStyle:P.ignoreInvalidStyle||!1,passKeys:P.passKeys!==!1,passNode:P.passNode||!1,schema:P.space==="svg"?Pe.YP:Pe.dy,stylePropertyNameCase:P.stylePropertyNameCase||"dom",tableCellAlignToStyle:P.tableCellAlignToStyle!==!1},ge=Cn(le,E,void 0);return ge&&typeof ge!="string"?ge:le.create(E,le.Fragment,{children:ge||void 0},void 0)}function Cn(E,P,U){if(P.type==="element")return Ye(E,P,U);if(P.type==="mdxFlowExpression"||P.type==="mdxTextExpression")return oe(E,P);if(P.type==="mdxJsxFlowElement"||P.type==="mdxJsxTextElement")return Ot(E,P,U);if(P.type==="mdxjsEsm")return H(E,P);if(P.type==="root")return Kt(E,P,U);if(P.type==="text")return vt(E,P)}function Ye(E,P,U){const q=E.schema;let le=q;P.tagName.toLowerCase()==="svg"&&q.space==="html"&&(le=Pe.YP,E.schema=le),E.ancestors.push(P);const ge=D(E,P.tagName,!1),Me=si(E,P);let et=ln(E,P);return $t.has(P.tagName)&&(et=et.filter(function(zt){return typeof zt=="string"?!Ue(zt):!0})),hn(E,Me,ge,P),Rt(Me,et),E.ancestors.pop(),E.schema=q,E.create(P,ge,Me,U)}function oe(E,P){if(P.data&&P.data.estree&&E.evaluater){const q=P.data.estree.body[0];return(0,I.ok)(q.type==="ExpressionStatement"),E.evaluater.evaluateExpression(q.expression)}k(E,P.position)}function H(E,P){if(P.data&&P.data.estree&&E.evaluater)return E.evaluater.evaluateProgram(P.data.estree);k(E,P.position)}function Ot(E,P,U){const q=E.schema;let le=q;P.name==="svg"&&q.space==="html"&&(le=Pe.YP,E.schema=le),E.ancestors.push(P);const ge=P.name===null?E.Fragment:D(E,P.name,!0),Me=qn(E,P),et=ln(E,P);return hn(E,Me,ge,P),Rt(Me,et),E.ancestors.pop(),E.schema=q,E.create(P,ge,Me,U)}function Kt(E,P,U){const q={};return Rt(q,ln(E,P)),E.create(P,E.Fragment,q,U)}function vt(E,P){return P.value}function hn(E,P,U,q){typeof U!="string"&&U!==E.Fragment&&E.passNode&&(P.node=q)}function Rt(E,P){if(P.length>0){const U=P.length>1?P:P[0];U&&(E.children=U)}}function hi(E,P,U){return q;function q(le,ge,Me,et){const Ft=Array.isArray(Me.children)?U:P;return et?Ft(ge,Me,et):Ft(ge,Me)}}function yt(E,P){return U;function U(q,le,ge,Me){const et=Array.isArray(ge.children),zt=(0,Ne.Pk)(q);return P(le,ge,Me,et,{columnNumber:zt?zt.column-1:void 0,fileName:E,lineNumber:zt?zt.line:void 0},void 0)}}function si(E,P){const U={};let q,le;for(le in P.properties)if(le!=="children"&&Je.call(P.properties,le)){const ge=Tn(E,le,P.properties[le]);if(ge){const[Me,et]=ge;E.tableCellAlignToStyle&&Me==="align"&&typeof et=="string"&&xt.has(P.tagName)?q=et:U[Me]=et}}if(q){const ge=U.style||(U.style={});ge[E.stylePropertyNameCase==="css"?"text-align":"textAlign"]=q}return U}function qn(E,P){const U={};for(const q of P.attributes)if(q.type==="mdxJsxExpressionAttribute")if(q.data&&q.data.estree&&E.evaluater){const ge=q.data.estree.body[0];(0,I.ok)(ge.type==="ExpressionStatement");const Me=ge.expression;(0,I.ok)(Me.type==="ObjectExpression");const et=Me.properties[0];(0,I.ok)(et.type==="SpreadElement"),Object.assign(U,E.evaluater.evaluateExpression(et.argument))}else k(E,P.position);else{const le=q.name;let ge;if(q.value&&typeof q.value=="object")if(q.value.data&&q.value.data.estree&&E.evaluater){const et=q.value.data.estree.body[0];(0,I.ok)(et.type==="ExpressionStatement"),ge=E.evaluater.evaluateExpression(et.expression)}else k(E,P.position);else ge=q.value===null?!0:q.value;U[le]=ge}return U}function ln(E,P){const U=[];let q=-1;const le=E.passKeys?new Map:Ce;for(;++q<P.children.length;){const ge=P.children[q];let Me;if(E.passKeys){const zt=ge.type==="element"?ge.tagName:ge.type==="mdxJsxFlowElement"||ge.type==="mdxJsxTextElement"?ge.name:void 0;if(zt){const Ft=le.get(zt)||0;Me=zt+"-"+Ft,le.set(zt,Ft+1)}}const et=Cn(E,ge,Me);et!==void 0&&U.push(et)}return U}function Tn(E,P,U){const q=(0,ze.s)(E.schema,P);if(!(U==null||typeof U=="number"&&Number.isNaN(U))){if(Array.isArray(U)&&(U=q.commaSeparated?(0,L.P)(U):(0,fe.P)(U)),q.property==="style"){let le=typeof U=="object"?U:xe(E,String(U));return E.stylePropertyNameCase==="css"&&(le=G(le)),["style",le]}return[E.elementAttributeNameCase==="react"&&q.space?Ee[q.property]||q.property:q.attribute,U]}}function xe(E,P){const U={};try{pe(P,q)}catch(le){if(!E.ignoreInvalidStyle){const ge=le,Me=new Qe("Cannot parse `style` attribute",{ancestors:E.ancestors,cause:ge,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw Me.file=E.filePath||void 0,Me.url=At+"#cannot-parse-style-attribute",Me}}return U;function q(le,ge){let Me=le;Me.slice(0,2)!=="--"&&(Me.slice(0,4)==="-ms-"&&(Me="ms-"+Me.slice(4)),Me=Me.replace(Xe,T)),U[Me]=ge}}function D(E,P,U){let q;if(!U)q={type:"Literal",value:P};else if(P.includes(".")){const le=P.split(".");let ge=-1,Me;for(;++ge<le.length;){const et=ne(le[ge])?{type:"Identifier",name:le[ge]}:{type:"Literal",value:le[ge]};Me=Me?{type:"MemberExpression",object:Me,property:et,computed:!!(ge&&et.type==="Literal"),optional:!1}:et}(0,I.ok)(Me,"always a result"),q=Me}else q=ne(P)&&!/^[a-z]/.test(P)?{type:"Identifier",name:P}:{type:"Literal",value:P};if(q.type==="Literal"){const le=q.value;return Je.call(E.components,le)?E.components[le]:le}if(E.evaluater)return E.evaluater.evaluateExpression(q);k(E)}function k(E,P){const U=new Qe("Cannot handle MDX estrees without `createEvaluater`",{ancestors:E.ancestors,place:P,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw U.file=E.filePath||void 0,U.url=At+"#cannot-handle-mdx-estrees-without-createevaluater",U}function G(E){const P={};let U;for(U in E)Je.call(E,U)&&(P[X(U)]=E[U]);return P}function X(E){let P=E.replace(dt,Re);return P.slice(0,3)==="ms-"&&(P="-"+P),P}function T(E,P){return P.toUpperCase()}function Re(E){return"-"+E.toLowerCase()}const mt={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]};var _e=d(37712);const Le={};function ct(E,P){const U=P||Le,q=typeof U.includeImageAlt=="boolean"?U.includeImageAlt:!0,le=typeof U.includeHtml=="boolean"?U.includeHtml:!0;return ot(E,q,le)}function ot(E,P,U){if(Et(E)){if("value"in E)return E.type==="html"&&!U?"":E.value;if(P&&"alt"in E&&E.alt)return E.alt;if("children"in E)return Ze(E.children,P,U)}return Array.isArray(E)?Ze(E,P,U):""}function Ze(E,P,U){const q=[];let le=-1;for(;++le<E.length;)q[le]=ot(E[le],P,U);return q.join("")}function Et(E){return!!(E&&typeof E=="object")}function Gt(E,P,U,q){const le=E.length;let ge=0,Me;if(P<0?P=-P>le?0:le+P:P=P>le?le:P,U=U>0?U:0,q.length<1e4)Me=Array.from(q),Me.unshift(P,U),E.splice(...Me);else for(U&&E.splice(P,U);ge<q.length;)Me=q.slice(ge,ge+1e4),Me.unshift(P,0),E.splice(...Me),ge+=1e4,P+=1e4}function Vt(E,P){return E.length>0?(Gt(E,E.length,0,P),E):P}class Pt{constructor(P){this.left=P?[...P]:[],this.right=[]}get(P){if(P<0||P>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+P+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return P<this.left.length?this.left[P]:this.right[this.right.length-P+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(P,U){const q=U==null?Number.POSITIVE_INFINITY:U;return q<this.left.length?this.left.slice(P,q):P>this.left.length?this.right.slice(this.right.length-q+this.left.length,this.right.length-P+this.left.length).reverse():this.left.slice(P).concat(this.right.slice(this.right.length-q+this.left.length).reverse())}splice(P,U,q){const le=U||0;this.setCursor(Math.trunc(P));const ge=this.right.splice(this.right.length-le,Number.POSITIVE_INFINITY);return q&&nn(this.left,q),ge.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(P){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(P)}pushMany(P){this.setCursor(Number.POSITIVE_INFINITY),nn(this.left,P)}unshift(P){this.setCursor(0),this.right.push(P)}unshiftMany(P){this.setCursor(0),nn(this.right,P.reverse())}setCursor(P){if(!(P===this.left.length||P>this.left.length&&this.right.length===0||P<0&&this.left.length===0))if(P<this.left.length){const U=this.left.splice(P,Number.POSITIVE_INFINITY);nn(this.right,U.reverse())}else{const U=this.right.splice(this.left.length+this.right.length-P,Number.POSITIVE_INFINITY);nn(this.left,U.reverse())}}}function nn(E,P){let U=0;if(P.length<1e4)E.push(...P);else for(;U<P.length;)E.push(...P.slice(U,U+1e4)),U+=1e4}function vn(E){const P={};let U=-1,q,le,ge,Me,et,zt,Ft;const gt=new Pt(E);for(;++U<gt.length;){for(;U in P;)U=P[U];if(q=gt.get(U),U&&q[1].type==="chunkFlow"&>.get(U-1)[1].type==="listItemPrefix"&&(zt=q[1]._tokenizer.events,ge=0,ge<zt.length&&zt[ge][1].type==="lineEndingBlank"&&(ge+=2),ge<zt.length&&zt[ge][1].type==="content"))for(;++ge<zt.length&&zt[ge][1].type!=="content";)zt[ge][1].type==="chunkText"&&(zt[ge][1]._isInFirstContentOfListItem=!0,ge++);if(q[0]==="enter")q[1].contentType&&(Object.assign(P,We(gt,U)),U=P[U],Ft=!0);else if(q[1]._container){for(ge=U,le=void 0;ge--;)if(Me=gt.get(ge),Me[1].type==="lineEnding"||Me[1].type==="lineEndingBlank")Me[0]==="enter"&&(le&&(gt.get(le)[1].type="lineEndingBlank"),Me[1].type="lineEnding",le=ge);else if(Me[1].type!=="linePrefix")break;le&&(q[1].end=Eo({},gt.get(le)[1].start),et=gt.slice(le,U),et.unshift(q),gt.splice(le,U-le+1,et))}}return Gt(E,0,Number.POSITIVE_INFINITY,gt.slice(0)),!Ft}function We(E,P){const U=E.get(P)[1],q=E.get(P)[2];let le=P-1;const ge=[],Me=U._tokenizer||q.parser[U.contentType](U.start),et=Me.events,zt=[],Ft={};let gt,en,un=-1,Ct=U,ai=0,ci=0;const ti=[ci];for(;Ct;){for(;E.get(++le)[1]!==Ct;);ge.push(le),Ct._tokenizer||(gt=q.sliceStream(Ct),Ct.next||gt.push(null),en&&Me.defineSkip(Ct.start),Ct._isInFirstContentOfListItem&&(Me._gfmTasklistFirstContentOfListItem=!0),Me.write(gt),Ct._isInFirstContentOfListItem&&(Me._gfmTasklistFirstContentOfListItem=void 0)),en=Ct,Ct=Ct.next}for(Ct=U;++un<et.length;)et[un][0]==="exit"&&et[un-1][0]==="enter"&&et[un][1].type===et[un-1][1].type&&et[un][1].start.line!==et[un][1].end.line&&(ci=un+1,ti.push(ci),Ct._tokenizer=void 0,Ct.previous=void 0,Ct=Ct.next);for(Me.events=[],Ct?(Ct._tokenizer=void 0,Ct.previous=void 0):ti.pop(),un=ti.length;un--;){const Xn=et.slice(ti[un],ti[un+1]),yi=ge.pop();zt.push([yi,yi+Xn.length-1]),E.splice(yi,2,Xn)}for(zt.reverse(),un=-1;++un<zt.length;)Ft[ai+zt[un][0]]=ai+zt[un][1],ai+=zt[un][1]-zt[un][0]-1;return Ft}function Dt(E){for(;!vn(E););return E}const Qt={}.hasOwnProperty;function bn(E){const P={};let U=-1;for(;++U<E.length;)$n(P,E[U]);return P}function $n(E,P){let U;for(U in P){const le=(Qt.call(E,U)?E[U]:void 0)||(E[U]={}),ge=P[U];let Me;if(ge)for(Me in ge){Qt.call(le,Me)||(le[Me]=[]);const et=ge[Me];Un(le[Me],Array.isArray(et)?et:et?[et]:[])}}}function Un(E,P){let U=-1;const q=[];for(;++U<P.length;)(P[U].add==="after"?E:q).push(P[U]);Gt(E,0,0,q)}function kt(E){const P={};let U=-1;for(;++U<E.length;)Hn(P,E[U]);return P}function Hn(E,P){let U;for(U in P){const le=(Qt.call(E,U)?E[U]:void 0)||(E[U]={}),ge=P[U];let Me;if(ge)for(Me in ge)le[Me]=ge[Me]}}var Jn=d(26735),tt=d(80722);const j={tokenize:Oi};function Oi(E){const P=E.attempt(this.parser.constructs.contentInitial,q,le);let U;return P;function q(et){if(et===null){E.consume(et);return}return E.enter("lineEnding"),E.consume(et),E.exit("lineEnding"),(0,Jn.f)(E,P,"linePrefix")}function le(et){return E.enter("paragraph"),ge(et)}function ge(et){const zt=E.enter("chunkText",{contentType:"text",previous:U});return U&&(U.next=zt),U=zt,Me(et)}function Me(et){if(et===null){E.exit("chunkText"),E.exit("paragraph"),E.consume(et);return}return(0,tt.Ch)(et)?(E.consume(et),E.exit("chunkText"),ge):(E.consume(et),Me)}}const tr={tokenize:Ti},Gn={tokenize:Er};function Ti(E){const P=this,U=[];let q=0,le,ge,Me;return et;function et(gi){if(q<U.length){const ji=U[q];return P.containerState=ji[1],E.attempt(ji[0].continuation,zt,Ft)(gi)}return Ft(gi)}function zt(gi){if(q++,P.containerState._closeFlow){P.containerState._closeFlow=void 0,le&&yi();const ji=P.events.length;let h=ji,m;for(;h--;)if(P.events[h][0]==="exit"&&P.events[h][1].type==="chunkFlow"){m=P.events[h][1].end;break}Xn(q);let W=ji;for(;W<P.events.length;)P.events[W][1].end=Eo({},m),W++;return Gt(P.events,h+1,0,P.events.slice(ji)),P.events.length=W,Ft(gi)}return et(gi)}function Ft(gi){if(q===U.length){if(!le)return un(gi);if(le.currentConstruct&&le.currentConstruct.concrete)return ai(gi);P.interrupt=!!(le.currentConstruct&&!le._gfmTableDynamicInterruptHack)}return P.containerState={},E.check(Gn,gt,en)(gi)}function gt(gi){return le&&yi(),Xn(q),un(gi)}function en(gi){return P.parser.lazy[P.now().line]=q!==U.length,Me=P.now().offset,ai(gi)}function un(gi){return P.containerState={},E.attempt(Gn,Ct,ai)(gi)}function Ct(gi){return q++,U.push([P.currentConstruct,P.containerState]),un(gi)}function ai(gi){if(gi===null){le&&yi(),Xn(0),E.consume(gi);return}return le=le||P.parser.flow(P.now()),E.enter("chunkFlow",{_tokenizer:le,contentType:"flow",previous:ge}),ci(gi)}function ci(gi){if(gi===null){ti(E.exit("chunkFlow"),!0),Xn(0),E.consume(gi);return}return(0,tt.Ch)(gi)?(E.consume(gi),ti(E.exit("chunkFlow")),q=0,P.interrupt=void 0,et):(E.consume(gi),ci)}function ti(gi,ji){const h=P.sliceStream(gi);if(ji&&h.push(null),gi.previous=ge,ge&&(ge.next=gi),ge=gi,le.defineSkip(gi.start),le.write(h),P.parser.lazy[gi.start.line]){let m=le.events.length;for(;m--;)if(le.events[m][1].start.offset<Me&&(!le.events[m][1].end||le.events[m][1].end.offset>Me))return;const W=P.events.length;let Ve=W,_t,Mn;for(;Ve--;)if(P.events[Ve][0]==="exit"&&P.events[Ve][1].type==="chunkFlow"){if(_t){Mn=P.events[Ve][1].end;break}_t=!0}for(Xn(q),m=W;m<P.events.length;)P.events[m][1].end=Eo({},Mn),m++;Gt(P.events,Ve+1,0,P.events.slice(W)),P.events.length=m}}function Xn(gi){let ji=U.length;for(;ji-- >gi;){const h=U[ji];P.containerState=h[1],h[0].exit.call(P,E)}U.length=gi}function yi(){le.write([null]),ge=void 0,le=void 0,P.containerState._closeFlow=void 0}}function Er(E,P,U){return(0,Jn.f)(E,E.attempt(this.parser.constructs.document,P,U),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}const Zi={partial:!0,tokenize:_};function _(E,P,U){return q;function q(ge){return(0,tt.xz)(ge)?(0,Jn.f)(E,le,"linePrefix")(ge):le(ge)}function le(ge){return ge===null||(0,tt.Ch)(ge)?P(ge):U(ge)}}const ht={resolve:Rr,tokenize:Ar},_i={partial:!0,tokenize:Yr};function Rr(E){return vn(E),E}function Ar(E,P){let U;return q;function q(et){return E.enter("content"),U=E.enter("chunkContent",{contentType:"content"}),le(et)}function le(et){return et===null?ge(et):(0,tt.Ch)(et)?E.check(_i,Me,ge)(et):(E.consume(et),le)}function ge(et){return E.exit("chunkContent"),E.exit("content"),P(et)}function Me(et){return E.consume(et),E.exit("chunkContent"),U.next=E.enter("chunkContent",{contentType:"content",previous:U}),U=U.next,le}}function Yr(E,P,U){const q=this;return le;function le(Me){return E.exit("chunkContent"),E.enter("lineEnding"),E.consume(Me),E.exit("lineEnding"),(0,Jn.f)(E,ge,"linePrefix")}function ge(Me){if(Me===null||(0,tt.Ch)(Me))return U(Me);const et=q.events[q.events.length-1];return!q.parser.constructs.disable.null.includes("codeIndented")&&et&&et[1].type==="linePrefix"&&et[2].sliceSerialize(et[1],!0).length>=4?P(Me):E.interrupt(q.parser.constructs.flow,U,P)(Me)}}const Dr={tokenize:Hr};function Hr(E){const P=this,U=E.attempt(Zi,q,E.attempt(this.parser.constructs.flowInitial,le,(0,Jn.f)(E,E.attempt(this.parser.constructs.flow,le,E.attempt(ht,le)),"linePrefix")));return U;function q(ge){if(ge===null){E.consume(ge);return}return E.enter("lineEndingBlank"),E.consume(ge),E.exit("lineEndingBlank"),P.currentConstruct=void 0,U}function le(ge){if(ge===null){E.consume(ge);return}return E.enter("lineEnding"),E.consume(ge),E.exit("lineEnding"),P.currentConstruct=void 0,U}}const dr={resolveAll:Fn()},Vi=at("string"),fi=at("text");function at(E){return{resolveAll:Fn(E==="text"?Qn:void 0),tokenize:P};function P(U){const q=this,le=this.parser.constructs[E],ge=U.attempt(le,Me,et);return Me;function Me(gt){return Ft(gt)?ge(gt):et(gt)}function et(gt){if(gt===null){U.consume(gt);return}return U.enter("data"),U.consume(gt),zt}function zt(gt){return Ft(gt)?(U.exit("data"),ge(gt)):(U.consume(gt),zt)}function Ft(gt){if(gt===null)return!0;const en=le[gt];let un=-1;if(en)for(;++un<en.length;){const Ct=en[un];if(!Ct.previous||Ct.previous.call(q,q.previous))return!0}return!1}}}function Fn(E){return P;function P(U,q){let le=-1,ge;for(;++le<=U.length;)ge===void 0?U[le]&&U[le][1].type==="data"&&(ge=le,le++):(!U[le]||U[le][1].type!=="data")&&(le!==ge+2&&(U[ge][1].end=U[le-1][1].end,U.splice(ge+2,le-ge-2),le=ge+2),ge=void 0);return E?E(U,q):U}}function Qn(E,P){let U=0;for(;++U<=E.length;)if((U===E.length||E[U][1].type==="lineEnding")&&E[U-1][1].type==="data"){const q=E[U-1][1],le=P.sliceStream(q);let ge=le.length,Me=-1,et=0,zt;for(;ge--;){const Ft=le[ge];if(typeof Ft=="string"){for(Me=Ft.length;Ft.charCodeAt(Me-1)===32;)et++,Me--;if(Me)break;Me=-1}else if(Ft===-2)zt=!0,et++;else if(Ft!==-1){ge++;break}}if(et){const Ft={type:U===E.length||zt||et<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:ge?Me:q.start._bufferIndex+Me,_index:q.start._index+ge,line:q.end.line,column:q.end.column-et,offset:q.end.offset-et},end:Eo({},q.end)};q.end=Eo({},Ft.start),q.start.offset===q.end.offset?Object.assign(q,Ft):(E.splice(U,0,["enter",Ft,P],["exit",Ft,P]),U+=2)}U++}return E}const ft={name:"thematicBreak",tokenize:je};function je(E,P,U){let q=0,le;return ge;function ge(Ft){return E.enter("thematicBreak"),Me(Ft)}function Me(Ft){return le=Ft,et(Ft)}function et(Ft){return Ft===le?(E.enter("thematicBreakSequence"),zt(Ft)):q>=3&&(Ft===null||(0,tt.Ch)(Ft))?(E.exit("thematicBreak"),P(Ft)):U(Ft)}function zt(Ft){return Ft===le?(E.consume(Ft),q++,zt):(E.exit("thematicBreakSequence"),(0,tt.xz)(Ft)?(0,Jn.f)(E,et,"whitespace")(Ft):et(Ft))}}const sn={continuation:{tokenize:ut},exit:rn,name:"list",tokenize:Kn},In={partial:!0,tokenize:Si},ni={partial:!0,tokenize:yn};function Kn(E,P,U){const q=this,le=q.events[q.events.length-1];let ge=le&&le[1].type==="linePrefix"?le[2].sliceSerialize(le[1],!0).length:0,Me=0;return et;function et(Ct){const ai=q.containerState.type||(Ct===42||Ct===43||Ct===45?"listUnordered":"listOrdered");if(ai==="listUnordered"?!q.containerState.marker||Ct===q.containerState.marker:(0,tt.pY)(Ct)){if(q.containerState.type||(q.containerState.type=ai,E.enter(ai,{_container:!0})),ai==="listUnordered")return E.enter("listItemPrefix"),Ct===42||Ct===45?E.check(ft,U,Ft)(Ct):Ft(Ct);if(!q.interrupt||Ct===49)return E.enter("listItemPrefix"),E.enter("listItemValue"),zt(Ct)}return U(Ct)}function zt(Ct){return(0,tt.pY)(Ct)&&++Me<10?(E.consume(Ct),zt):(!q.interrupt||Me<2)&&(q.containerState.marker?Ct===q.containerState.marker:Ct===41||Ct===46)?(E.exit("listItemValue"),Ft(Ct)):U(Ct)}function Ft(Ct){return E.enter("listItemMarker"),E.consume(Ct),E.exit("listItemMarker"),q.containerState.marker=q.containerState.marker||Ct,E.check(Zi,q.interrupt?U:gt,E.attempt(In,un,en))}function gt(Ct){return q.containerState.initialBlankLine=!0,ge++,un(Ct)}function en(Ct){return(0,tt.xz)(Ct)?(E.enter("listItemPrefixWhitespace"),E.consume(Ct),E.exit("listItemPrefixWhitespace"),un):U(Ct)}function un(Ct){return q.containerState.size=ge+q.sliceSerialize(E.exit("listItemPrefix"),!0).length,P(Ct)}}function ut(E,P,U){const q=this;return q.containerState._closeFlow=void 0,E.check(Zi,le,ge);function le(et){return q.containerState.furtherBlankLines=q.containerState.furtherBlankLines||q.containerState.initialBlankLine,(0,Jn.f)(E,P,"listItemIndent",q.containerState.size+1)(et)}function ge(et){return q.containerState.furtherBlankLines||!(0,tt.xz)(et)?(q.containerState.furtherBlankLines=void 0,q.containerState.initialBlankLine=void 0,Me(et)):(q.containerState.furtherBlankLines=void 0,q.containerState.initialBlankLine=void 0,E.attempt(ni,P,Me)(et))}function Me(et){return q.containerState._closeFlow=!0,q.interrupt=void 0,(0,Jn.f)(E,E.attempt(sn,P,U),"linePrefix",q.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(et)}}function yn(E,P,U){const q=this;return(0,Jn.f)(E,le,"listItemIndent",q.containerState.size+1);function le(ge){const Me=q.events[q.events.length-1];return Me&&Me[1].type==="listItemIndent"&&Me[2].sliceSerialize(Me[1],!0).length===q.containerState.size?P(ge):U(ge)}}function rn(E){E.exit(this.containerState.type)}function Si(E,P,U){const q=this;return(0,Jn.f)(E,le,"listItemPrefixWhitespace",q.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function le(ge){const Me=q.events[q.events.length-1];return!(0,tt.xz)(ge)&&Me&&Me[1].type==="listItemPrefixWhitespace"?P(ge):U(ge)}}const Zt={continuation:{tokenize:Mt},exit:Jt,name:"blockQuote",tokenize:_n};function _n(E,P,U){const q=this;return le;function le(Me){if(Me===62){const et=q.containerState;return et.open||(E.enter("blockQuote",{_container:!0}),et.open=!0),E.enter("blockQuotePrefix"),E.enter("blockQuoteMarker"),E.consume(Me),E.exit("blockQuoteMarker"),ge}return U(Me)}function ge(Me){return(0,tt.xz)(Me)?(E.enter("blockQuotePrefixWhitespace"),E.consume(Me),E.exit("blockQuotePrefixWhitespace"),E.exit("blockQuotePrefix"),P):(E.exit("blockQuotePrefix"),P(Me))}}function Mt(E,P,U){const q=this;return le;function le(Me){return(0,tt.xz)(Me)?(0,Jn.f)(E,ge,"linePrefix",q.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Me):ge(Me)}function ge(Me){return E.attempt(Zt,P,U)(Me)}}function Jt(E){E.exit("blockQuote")}function on(E,P,U,q,le,ge,Me,et,zt){const Ft=zt||Number.POSITIVE_INFINITY;let gt=0;return en;function en(Xn){return Xn===60?(E.enter(q),E.enter(le),E.enter(ge),E.consume(Xn),E.exit(ge),un):Xn===null||Xn===32||Xn===41||(0,tt.Av)(Xn)?U(Xn):(E.enter(q),E.enter(Me),E.enter(et),E.enter("chunkString",{contentType:"string"}),ci(Xn))}function un(Xn){return Xn===62?(E.enter(ge),E.consume(Xn),E.exit(ge),E.exit(le),E.exit(q),P):(E.enter(et),E.enter("chunkString",{contentType:"string"}),Ct(Xn))}function Ct(Xn){return Xn===62?(E.exit("chunkString"),E.exit(et),un(Xn)):Xn===null||Xn===60||(0,tt.Ch)(Xn)?U(Xn):(E.consume(Xn),Xn===92?ai:Ct)}function ai(Xn){return Xn===60||Xn===62||Xn===92?(E.consume(Xn),Ct):Ct(Xn)}function ci(Xn){return!gt&&(Xn===null||Xn===41||(0,tt.z3)(Xn))?(E.exit("chunkString"),E.exit(et),E.exit(Me),E.exit(q),P(Xn)):gt<Ft&&Xn===40?(E.consume(Xn),gt++,ci):Xn===41?(E.consume(Xn),gt--,ci):Xn===null||Xn===32||Xn===40||(0,tt.Av)(Xn)?U(Xn):(E.consume(Xn),Xn===92?ti:ci)}function ti(Xn){return Xn===40||Xn===41||Xn===92?(E.consume(Xn),ci):ci(Xn)}}function jt(E,P,U,q,le,ge){const Me=this;let et=0,zt;return Ft;function Ft(Ct){return E.enter(q),E.enter(le),E.consume(Ct),E.exit(le),E.enter(ge),gt}function gt(Ct){return et>999||Ct===null||Ct===91||Ct===93&&!zt||Ct===94&&!et&&"_hiddenFootnoteSupport"in Me.parser.constructs?U(Ct):Ct===93?(E.exit(ge),E.enter(le),E.consume(Ct),E.exit(le),E.exit(q),P):(0,tt.Ch)(Ct)?(E.enter("lineEnding"),E.consume(Ct),E.exit("lineEnding"),gt):(E.enter("chunkString",{contentType:"string"}),en(Ct))}function en(Ct){return Ct===null||Ct===91||Ct===93||(0,tt.Ch)(Ct)||et++>999?(E.exit("chunkString"),gt(Ct)):(E.consume(Ct),zt||(zt=!(0,tt.xz)(Ct)),Ct===92?un:en)}function un(Ct){return Ct===91||Ct===92||Ct===93?(E.consume(Ct),et++,en):en(Ct)}}function gn(E,P,U,q,le,ge){let Me;return et;function et(un){return un===34||un===39||un===40?(E.enter(q),E.enter(le),E.consume(un),E.exit(le),Me=un===40?41:un,zt):U(un)}function zt(un){return un===Me?(E.enter(le),E.consume(un),E.exit(le),E.exit(q),P):(E.enter(ge),Ft(un))}function Ft(un){return un===Me?(E.exit(ge),zt(Me)):un===null?U(un):(0,tt.Ch)(un)?(E.enter("lineEnding"),E.consume(un),E.exit("lineEnding"),(0,Jn.f)(E,Ft,"linePrefix")):(E.enter("chunkString",{contentType:"string"}),gt(un))}function gt(un){return un===Me||un===null||(0,tt.Ch)(un)?(E.exit("chunkString"),Ft(un)):(E.consume(un),un===92?en:gt)}function en(un){return un===Me||un===92?(E.consume(un),gt):gt(un)}}function fn(E,P){let U;return q;function q(le){return(0,tt.Ch)(le)?(E.enter("lineEnding"),E.consume(le),E.exit("lineEnding"),U=!0,q):(0,tt.xz)(le)?(0,Jn.f)(E,q,U?"linePrefix":"lineSuffix")(le):P(le)}}function En(E){return E.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Ln={name:"definition",tokenize:zn},Ai={partial:!0,tokenize:ki};function zn(E,P,U){const q=this;let le;return ge;function ge(Ct){return E.enter("definition"),Me(Ct)}function Me(Ct){return jt.call(q,E,et,U,"definitionLabel","definitionLabelMarker","definitionLabelString")(Ct)}function et(Ct){return le=En(q.sliceSerialize(q.events[q.events.length-1][1]).slice(1,-1)),Ct===58?(E.enter("definitionMarker"),E.consume(Ct),E.exit("definitionMarker"),zt):U(Ct)}function zt(Ct){return(0,tt.z3)(Ct)?fn(E,Ft)(Ct):Ft(Ct)}function Ft(Ct){return on(E,gt,U,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(Ct)}function gt(Ct){return E.attempt(Ai,en,en)(Ct)}function en(Ct){return(0,tt.xz)(Ct)?(0,Jn.f)(E,un,"whitespace")(Ct):un(Ct)}function un(Ct){return Ct===null||(0,tt.Ch)(Ct)?(E.exit("definition"),q.parser.defined.push(le),P(Ct)):U(Ct)}}function ki(E,P,U){return q;function q(et){return(0,tt.z3)(et)?fn(E,le)(et):U(et)}function le(et){return gn(E,ge,U,"definitionTitle","definitionTitleMarker","definitionTitleString")(et)}function ge(et){return(0,tt.xz)(et)?(0,Jn.f)(E,Me,"whitespace")(et):Me(et)}function Me(et){return et===null||(0,tt.Ch)(et)?P(et):U(et)}}const ir={name:"codeIndented",tokenize:qt},lr={partial:!0,tokenize:Ki};function qt(E,P,U){const q=this;return le;function le(Ft){return E.enter("codeIndented"),(0,Jn.f)(E,ge,"linePrefix",5)(Ft)}function ge(Ft){const gt=q.events[q.events.length-1];return gt&>[1].type==="linePrefix"&>[2].sliceSerialize(gt[1],!0).length>=4?Me(Ft):U(Ft)}function Me(Ft){return Ft===null?zt(Ft):(0,tt.Ch)(Ft)?E.attempt(lr,Me,zt)(Ft):(E.enter("codeFlowValue"),et(Ft))}function et(Ft){return Ft===null||(0,tt.Ch)(Ft)?(E.exit("codeFlowValue"),Me(Ft)):(E.consume(Ft),et)}function zt(Ft){return E.exit("codeIndented"),P(Ft)}}function Ki(E,P,U){const q=this;return le;function le(Me){return q.parser.lazy[q.now().line]?U(Me):(0,tt.Ch)(Me)?(E.enter("lineEnding"),E.consume(Me),E.exit("lineEnding"),le):(0,Jn.f)(E,ge,"linePrefix",5)(Me)}function ge(Me){const et=q.events[q.events.length-1];return et&&et[1].type==="linePrefix"&&et[2].sliceSerialize(et[1],!0).length>=4?P(Me):(0,tt.Ch)(Me)?le(Me):U(Me)}}const ee={name:"headingAtx",resolve:ue,tokenize:Zn};function ue(E,P){let U=E.length-2,q=3,le,ge;return E[q][1].type==="whitespace"&&(q+=2),U-2>q&&E[U][1].type==="whitespace"&&(U-=2),E[U][1].type==="atxHeadingSequence"&&(q===U-1||U-4>q&&E[U-2][1].type==="whitespace")&&(U-=q+1===U?2:4),U>q&&(le={type:"atxHeadingText",start:E[q][1].start,end:E[U][1].end},ge={type:"chunkText",start:E[q][1].start,end:E[U][1].end,contentType:"text"},Gt(E,q,U-q+1,[["enter",le,P],["enter",ge,P],["exit",ge,P],["exit",le,P]])),E}function Zn(E,P,U){let q=0;return le;function le(gt){return E.enter("atxHeading"),ge(gt)}function ge(gt){return E.enter("atxHeadingSequence"),Me(gt)}function Me(gt){return gt===35&&q++<6?(E.consume(gt),Me):gt===null||(0,tt.z3)(gt)?(E.exit("atxHeadingSequence"),et(gt)):U(gt)}function et(gt){return gt===35?(E.enter("atxHeadingSequence"),zt(gt)):gt===null||(0,tt.Ch)(gt)?(E.exit("atxHeading"),P(gt)):(0,tt.xz)(gt)?(0,Jn.f)(E,et,"whitespace")(gt):(E.enter("atxHeadingText"),Ft(gt))}function zt(gt){return gt===35?(E.consume(gt),zt):(E.exit("atxHeadingSequence"),et(gt))}function Ft(gt){return gt===null||gt===35||(0,tt.z3)(gt)?(E.exit("atxHeadingText"),et(gt)):(E.consume(gt),Ft)}}const Be={name:"setextUnderline",resolveTo:wt,tokenize:Ni};function wt(E,P){let U=E.length,q,le,ge;for(;U--;)if(E[U][0]==="enter"){if(E[U][1].type==="content"){q=U;break}E[U][1].type==="paragraph"&&(le=U)}else E[U][1].type==="content"&&E.splice(U,1),!ge&&E[U][1].type==="definition"&&(ge=U);const Me={type:"setextHeading",start:Eo({},E[le][1].start),end:Eo({},E[E.length-1][1].end)};return E[le][1].type="setextHeadingText",ge?(E.splice(le,0,["enter",Me,P]),E.splice(ge+1,0,["exit",E[q][1],P]),E[q][1].end=Eo({},E[ge][1].end)):E[q][1]=Me,E.push(["exit",Me,P]),E}function Ni(E,P,U){const q=this;let le;return ge;function ge(Ft){let gt=q.events.length,en;for(;gt--;)if(q.events[gt][1].type!=="lineEnding"&&q.events[gt][1].type!=="linePrefix"&&q.events[gt][1].type!=="content"){en=q.events[gt][1].type==="paragraph";break}return!q.parser.lazy[q.now().line]&&(q.interrupt||en)?(E.enter("setextHeadingLine"),le=Ft,Me(Ft)):U(Ft)}function Me(Ft){return E.enter("setextHeadingLineSequence"),et(Ft)}function et(Ft){return Ft===le?(E.consume(Ft),et):(E.exit("setextHeadingLineSequence"),(0,tt.xz)(Ft)?(0,Jn.f)(E,zt,"lineSuffix")(Ft):zt(Ft))}function zt(Ft){return Ft===null||(0,tt.Ch)(Ft)?(E.exit("setextHeadingLine"),P(Ft)):U(Ft)}}const Dn=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hr","html","iframe","legend","li","link","main","menu","menuitem","nav","noframes","ol","optgroup","option","p","param","search","section","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"],Gi=["pre","script","style","textarea"],Xt={concrete:!0,name:"htmlFlow",resolveTo:Wi,tokenize:Zr},Ii={partial:!0,tokenize:fo},Yt={partial:!0,tokenize:It};function Wi(E){let P=E.length;for(;P--&&!(E[P][0]==="enter"&&E[P][1].type==="htmlFlow"););return P>1&&E[P-2][1].type==="linePrefix"&&(E[P][1].start=E[P-2][1].start,E[P+1][1].start=E[P-2][1].start,E.splice(P-2,2)),E}function Zr(E,P,U){const q=this;let le,ge,Me,et,zt;return Ft;function Ft(Ut){return gt(Ut)}function gt(Ut){return E.enter("htmlFlow"),E.enter("htmlFlowData"),E.consume(Ut),en}function en(Ut){return Ut===33?(E.consume(Ut),un):Ut===47?(E.consume(Ut),ge=!0,ci):Ut===63?(E.consume(Ut),le=3,q.interrupt?P:Wt):(0,tt.jv)(Ut)?(E.consume(Ut),Me=String.fromCharCode(Ut),ti):U(Ut)}function un(Ut){return Ut===45?(E.consume(Ut),le=2,Ct):Ut===91?(E.consume(Ut),le=5,et=0,ai):(0,tt.jv)(Ut)?(E.consume(Ut),le=4,q.interrupt?P:Wt):U(Ut)}function Ct(Ut){return Ut===45?(E.consume(Ut),q.interrupt?P:Wt):U(Ut)}function ai(Ut){const Cr="CDATA[";return Ut===Cr.charCodeAt(et++)?(E.consume(Ut),et===Cr.length?q.interrupt?P:ri:ai):U(Ut)}function ci(Ut){return(0,tt.jv)(Ut)?(E.consume(Ut),Me=String.fromCharCode(Ut),ti):U(Ut)}function ti(Ut){if(Ut===null||Ut===47||Ut===62||(0,tt.z3)(Ut)){const Cr=Ut===47,eo=Me.toLowerCase();return!Cr&&!ge&&Gi.includes(eo)?(le=1,q.interrupt?P(Ut):ri(Ut)):Dn.includes(Me.toLowerCase())?(le=6,Cr?(E.consume(Ut),Xn):q.interrupt?P(Ut):ri(Ut)):(le=7,q.interrupt&&!q.parser.lazy[q.now().line]?U(Ut):ge?yi(Ut):gi(Ut))}return Ut===45||(0,tt.H$)(Ut)?(E.consume(Ut),Me+=String.fromCharCode(Ut),ti):U(Ut)}function Xn(Ut){return Ut===62?(E.consume(Ut),q.interrupt?P:ri):U(Ut)}function yi(Ut){return(0,tt.xz)(Ut)?(E.consume(Ut),yi):Mn(Ut)}function gi(Ut){return Ut===47?(E.consume(Ut),Mn):Ut===58||Ut===95||(0,tt.jv)(Ut)?(E.consume(Ut),ji):(0,tt.xz)(Ut)?(E.consume(Ut),gi):Mn(Ut)}function ji(Ut){return Ut===45||Ut===46||Ut===58||Ut===95||(0,tt.H$)(Ut)?(E.consume(Ut),ji):h(Ut)}function h(Ut){return Ut===61?(E.consume(Ut),m):(0,tt.xz)(Ut)?(E.consume(Ut),h):gi(Ut)}function m(Ut){return Ut===null||Ut===60||Ut===61||Ut===62||Ut===96?U(Ut):Ut===34||Ut===39?(E.consume(Ut),zt=Ut,W):(0,tt.xz)(Ut)?(E.consume(Ut),m):Ve(Ut)}function W(Ut){return Ut===zt?(E.consume(Ut),zt=null,_t):Ut===null||(0,tt.Ch)(Ut)?U(Ut):(E.consume(Ut),W)}function Ve(Ut){return Ut===null||Ut===34||Ut===39||Ut===47||Ut===60||Ut===61||Ut===62||Ut===96||(0,tt.z3)(Ut)?h(Ut):(E.consume(Ut),Ve)}function _t(Ut){return Ut===47||Ut===62||(0,tt.xz)(Ut)?gi(Ut):U(Ut)}function Mn(Ut){return Ut===62?(E.consume(Ut),li):U(Ut)}function li(Ut){return Ut===null||(0,tt.Ch)(Ut)?ri(Ut):(0,tt.xz)(Ut)?(E.consume(Ut),li):U(Ut)}function ri(Ut){return Ut===45&&le===2?(E.consume(Ut),Ur):Ut===60&&le===1?(E.consume(Ut),Co):Ut===62&&le===4?(E.consume(Ut),rr):Ut===63&&le===3?(E.consume(Ut),Wt):Ut===93&&le===5?(E.consume(Ut),fr):(0,tt.Ch)(Ut)&&(le===6||le===7)?(E.exit("htmlFlowData"),E.check(Ii,qr,Wn)(Ut)):Ut===null||(0,tt.Ch)(Ut)?(E.exit("htmlFlowData"),Wn(Ut)):(E.consume(Ut),ri)}function Wn(Ut){return E.check(Yt,Bi,qr)(Ut)}function Bi(Ut){return E.enter("lineEnding"),E.consume(Ut),E.exit("lineEnding"),cr}function cr(Ut){return Ut===null||(0,tt.Ch)(Ut)?Wn(Ut):(E.enter("htmlFlowData"),ri(Ut))}function Ur(Ut){return Ut===45?(E.consume(Ut),Wt):ri(Ut)}function Co(Ut){return Ut===47?(E.consume(Ut),Me="",yr):ri(Ut)}function yr(Ut){if(Ut===62){const Cr=Me.toLowerCase();return Gi.includes(Cr)?(E.consume(Ut),rr):ri(Ut)}return(0,tt.jv)(Ut)&&Me.length<8?(E.consume(Ut),Me+=String.fromCharCode(Ut),yr):ri(Ut)}function fr(Ut){return Ut===93?(E.consume(Ut),Wt):ri(Ut)}function Wt(Ut){return Ut===62?(E.consume(Ut),rr):Ut===45&&le===2?(E.consume(Ut),Wt):ri(Ut)}function rr(Ut){return Ut===null||(0,tt.Ch)(Ut)?(E.exit("htmlFlowData"),qr(Ut)):(E.consume(Ut),rr)}function qr(Ut){return E.exit("htmlFlow"),P(Ut)}}function It(E,P,U){const q=this;return le;function le(Me){return(0,tt.Ch)(Me)?(E.enter("lineEnding"),E.consume(Me),E.exit("lineEnding"),ge):U(Me)}function ge(Me){return q.parser.lazy[q.now().line]?U(Me):P(Me)}}function fo(E,P,U){return q;function q(le){return E.enter("lineEnding"),E.consume(le),E.exit("lineEnding"),E.attempt(Zi,P,U)}}const tn={partial:!0,tokenize:Nt},Fi={concrete:!0,name:"codeFenced",tokenize:Li};function Li(E,P,U){const q=this,le={partial:!0,tokenize:h};let ge=0,Me=0,et;return zt;function zt(m){return Ft(m)}function Ft(m){const W=q.events[q.events.length-1];return ge=W&&W[1].type==="linePrefix"?W[2].sliceSerialize(W[1],!0).length:0,et=m,E.enter("codeFenced"),E.enter("codeFencedFence"),E.enter("codeFencedFenceSequence"),gt(m)}function gt(m){return m===et?(Me++,E.consume(m),gt):Me<3?U(m):(E.exit("codeFencedFenceSequence"),(0,tt.xz)(m)?(0,Jn.f)(E,en,"whitespace")(m):en(m))}function en(m){return m===null||(0,tt.Ch)(m)?(E.exit("codeFencedFence"),q.interrupt?P(m):E.check(tn,ci,ji)(m)):(E.enter("codeFencedFenceInfo"),E.enter("chunkString",{contentType:"string"}),un(m))}function un(m){return m===null||(0,tt.Ch)(m)?(E.exit("chunkString"),E.exit("codeFencedFenceInfo"),en(m)):(0,tt.xz)(m)?(E.exit("chunkString"),E.exit("codeFencedFenceInfo"),(0,Jn.f)(E,Ct,"whitespace")(m)):m===96&&m===et?U(m):(E.consume(m),un)}function Ct(m){return m===null||(0,tt.Ch)(m)?en(m):(E.enter("codeFencedFenceMeta"),E.enter("chunkString",{contentType:"string"}),ai(m))}function ai(m){return m===null||(0,tt.Ch)(m)?(E.exit("chunkString"),E.exit("codeFencedFenceMeta"),en(m)):m===96&&m===et?U(m):(E.consume(m),ai)}function ci(m){return E.attempt(le,ji,ti)(m)}function ti(m){return E.enter("lineEnding"),E.consume(m),E.exit("lineEnding"),Xn}function Xn(m){return ge>0&&(0,tt.xz)(m)?(0,Jn.f)(E,yi,"linePrefix",ge+1)(m):yi(m)}function yi(m){return m===null||(0,tt.Ch)(m)?E.check(tn,ci,ji)(m):(E.enter("codeFlowValue"),gi(m))}function gi(m){return m===null||(0,tt.Ch)(m)?(E.exit("codeFlowValue"),yi(m)):(E.consume(m),gi)}function ji(m){return E.exit("codeFenced"),P(m)}function h(m,W,Ve){let _t=0;return Mn;function Mn(cr){return m.enter("lineEnding"),m.consume(cr),m.exit("lineEnding"),li}function li(cr){return m.enter("codeFencedFence"),(0,tt.xz)(cr)?(0,Jn.f)(m,ri,"linePrefix",q.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(cr):ri(cr)}function ri(cr){return cr===et?(m.enter("codeFencedFenceSequence"),Wn(cr)):Ve(cr)}function Wn(cr){return cr===et?(_t++,m.consume(cr),Wn):_t>=Me?(m.exit("codeFencedFenceSequence"),(0,tt.xz)(cr)?(0,Jn.f)(m,Bi,"whitespace")(cr):Bi(cr)):Ve(cr)}function Bi(cr){return cr===null||(0,tt.Ch)(cr)?(m.exit("codeFencedFence"),W(cr)):Ve(cr)}}}function Nt(E,P,U){const q=this;return le;function le(Me){return Me===null?U(Me):(E.enter("lineEnding"),E.consume(Me),E.exit("lineEnding"),ge)}function ge(Me){return q.parser.lazy[q.now().line]?U(Me):P(Me)}}const Nr=document.createElement("i");function ii(E){const P="&"+E+";";Nr.innerHTML=P;const U=Nr.textContent;return U.charCodeAt(U.length-1)===59&&E!=="semi"||U===P?!1:U}const ce={name:"characterReference",tokenize:br};function br(E,P,U){const q=this;let le=0,ge,Me;return et;function et(en){return E.enter("characterReference"),E.enter("characterReferenceMarker"),E.consume(en),E.exit("characterReferenceMarker"),zt}function zt(en){return en===35?(E.enter("characterReferenceMarkerNumeric"),E.consume(en),E.exit("characterReferenceMarkerNumeric"),Ft):(E.enter("characterReferenceValue"),ge=31,Me=tt.H$,gt(en))}function Ft(en){return en===88||en===120?(E.enter("characterReferenceMarkerHexadecimal"),E.consume(en),E.exit("characterReferenceMarkerHexadecimal"),E.enter("characterReferenceValue"),ge=6,Me=tt.AF,gt):(E.enter("characterReferenceValue"),ge=7,Me=tt.pY,gt(en))}function gt(en){if(en===59&&le){const un=E.exit("characterReferenceValue");return Me===tt.H$&&!ii(q.sliceSerialize(un))?U(en):(E.enter("characterReferenceMarker"),E.consume(en),E.exit("characterReferenceMarker"),E.exit("characterReference"),P)}return Me(en)&&le++<ge?(E.consume(en),gt):U(en)}}const to={name:"characterEscape",tokenize:mr};function mr(E,P,U){return q;function q(ge){return E.enter("characterEscape"),E.enter("escapeMarker"),E.consume(ge),E.exit("escapeMarker"),le}function le(ge){return(0,tt.sR)(ge)?(E.enter("characterEscapeValue"),E.consume(ge),E.exit("characterEscapeValue"),E.exit("characterEscape"),P):U(ge)}}const Xr={name:"lineEnding",tokenize:qi};function qi(E,P){return U;function U(q){return E.enter("lineEnding"),E.consume(q),E.exit("lineEnding"),(0,Jn.f)(E,P,"linePrefix")}}function zr(E,P,U){const q=[];let le=-1;for(;++le<E.length;){const ge=E[le].resolveAll;ge&&!q.includes(ge)&&(P=ge(P,U),q.push(ge))}return P}const Ri={name:"labelEnd",resolveAll:Br,resolveTo:no,tokenize:Po},$i={tokenize:mi},zi={tokenize:ws},Pr={tokenize:as};function Br(E){let P=-1;const U=[];for(;++P<E.length;){const q=E[P][1];if(U.push(E[P]),q.type==="labelImage"||q.type==="labelLink"||q.type==="labelEnd"){const le=q.type==="labelImage"?4:2;q.type="data",P+=le}}return E.length!==U.length&&Gt(E,0,E.length,U),E}function no(E,P){let U=E.length,q=0,le,ge,Me,et;for(;U--;)if(le=E[U][1],ge){if(le.type==="link"||le.type==="labelLink"&&le._inactive)break;E[U][0]==="enter"&&le.type==="labelLink"&&(le._inactive=!0)}else if(Me){if(E[U][0]==="enter"&&(le.type==="labelImage"||le.type==="labelLink")&&!le._balanced&&(ge=U,le.type!=="labelLink")){q=2;break}}else le.type==="labelEnd"&&(Me=U);const zt={type:E[ge][1].type==="labelLink"?"link":"image",start:Eo({},E[ge][1].start),end:Eo({},E[E.length-1][1].end)},Ft={type:"label",start:Eo({},E[ge][1].start),end:Eo({},E[Me][1].end)},gt={type:"labelText",start:Eo({},E[ge+q+2][1].end),end:Eo({},E[Me-2][1].start)};return et=[["enter",zt,P],["enter",Ft,P]],et=Vt(et,E.slice(ge+1,ge+q+3)),et=Vt(et,[["enter",gt,P]]),et=Vt(et,zr(P.parser.constructs.insideSpan.null,E.slice(ge+q+4,Me-3),P)),et=Vt(et,[["exit",gt,P],E[Me-2],E[Me-1],["exit",Ft,P]]),et=Vt(et,E.slice(Me+1)),et=Vt(et,[["exit",zt,P]]),Gt(E,ge,E.length,et),E}function Po(E,P,U){const q=this;let le=q.events.length,ge,Me;for(;le--;)if((q.events[le][1].type==="labelImage"||q.events[le][1].type==="labelLink")&&!q.events[le][1]._balanced){ge=q.events[le][1];break}return et;function et(un){return ge?ge._inactive?en(un):(Me=q.parser.defined.includes(En(q.sliceSerialize({start:ge.end,end:q.now()}))),E.enter("labelEnd"),E.enter("labelMarker"),E.consume(un),E.exit("labelMarker"),E.exit("labelEnd"),zt):U(un)}function zt(un){return un===40?E.attempt($i,gt,Me?gt:en)(un):un===91?E.attempt(zi,gt,Me?Ft:en)(un):Me?gt(un):en(un)}function Ft(un){return E.attempt(Pr,gt,en)(un)}function gt(un){return P(un)}function en(un){return ge._balanced=!0,U(un)}}function mi(E,P,U){return q;function q(en){return E.enter("resource"),E.enter("resourceMarker"),E.consume(en),E.exit("resourceMarker"),le}function le(en){return(0,tt.z3)(en)?fn(E,ge)(en):ge(en)}function ge(en){return en===41?gt(en):on(E,Me,et,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(en)}function Me(en){return(0,tt.z3)(en)?fn(E,zt)(en):gt(en)}function et(en){return U(en)}function zt(en){return en===34||en===39||en===40?gn(E,Ft,U,"resourceTitle","resourceTitleMarker","resourceTitleString")(en):gt(en)}function Ft(en){return(0,tt.z3)(en)?fn(E,gt)(en):gt(en)}function gt(en){return en===41?(E.enter("resourceMarker"),E.consume(en),E.exit("resourceMarker"),E.exit("resource"),P):U(en)}}function ws(E,P,U){const q=this;return le;function le(et){return jt.call(q,E,ge,Me,"reference","referenceMarker","referenceString")(et)}function ge(et){return q.parser.defined.includes(En(q.sliceSerialize(q.events[q.events.length-1][1]).slice(1,-1)))?P(et):U(et)}function Me(et){return U(et)}}function as(E,P,U){return q;function q(ge){return E.enter("reference"),E.enter("referenceMarker"),E.consume(ge),E.exit("referenceMarker"),le}function le(ge){return ge===93?(E.enter("referenceMarker"),E.consume(ge),E.exit("referenceMarker"),E.exit("reference"),P):U(ge)}}const Fo={name:"labelStartImage",resolveAll:Ri.resolveAll,tokenize:As};function As(E,P,U){const q=this;return le;function le(et){return E.enter("labelImage"),E.enter("labelImageMarker"),E.consume(et),E.exit("labelImageMarker"),ge}function ge(et){return et===91?(E.enter("labelMarker"),E.consume(et),E.exit("labelMarker"),E.exit("labelImage"),Me):U(et)}function Me(et){return et===94&&"_hiddenFootnoteSupport"in q.parser.constructs?U(et):P(et)}}function Xs(E){if(E===null||(0,tt.z3)(E)||(0,tt.B8)(E))return 1;if((0,tt.Xh)(E))return 2}const da={name:"attention",resolveAll:vs,tokenize:Ua};function vs(E,P){let U=-1,q,le,ge,Me,et,zt,Ft,gt;for(;++U<E.length;)if(E[U][0]==="enter"&&E[U][1].type==="attentionSequence"&&E[U][1]._close){for(q=U;q--;)if(E[q][0]==="exit"&&E[q][1].type==="attentionSequence"&&E[q][1]._open&&P.sliceSerialize(E[q][1]).charCodeAt(0)===P.sliceSerialize(E[U][1]).charCodeAt(0)){if((E[q][1]._close||E[U][1]._open)&&(E[U][1].end.offset-E[U][1].start.offset)%3&&!((E[q][1].end.offset-E[q][1].start.offset+E[U][1].end.offset-E[U][1].start.offset)%3))continue;zt=E[q][1].end.offset-E[q][1].start.offset>1&&E[U][1].end.offset-E[U][1].start.offset>1?2:1;const en=Eo({},E[q][1].end),un=Eo({},E[U][1].start);Ls(en,-zt),Ls(un,zt),Me={type:zt>1?"strongSequence":"emphasisSequence",start:en,end:Eo({},E[q][1].end)},et={type:zt>1?"strongSequence":"emphasisSequence",start:Eo({},E[U][1].start),end:un},ge={type:zt>1?"strongText":"emphasisText",start:Eo({},E[q][1].end),end:Eo({},E[U][1].start)},le={type:zt>1?"strong":"emphasis",start:Eo({},Me.start),end:Eo({},et.end)},E[q][1].end=Eo({},Me.start),E[U][1].start=Eo({},et.end),Ft=[],E[q][1].end.offset-E[q][1].start.offset&&(Ft=Vt(Ft,[["enter",E[q][1],P],["exit",E[q][1],P]])),Ft=Vt(Ft,[["enter",le,P],["enter",Me,P],["exit",Me,P],["enter",ge,P]]),Ft=Vt(Ft,zr(P.parser.constructs.insideSpan.null,E.slice(q+1,U),P)),Ft=Vt(Ft,[["exit",ge,P],["enter",et,P],["exit",et,P],["exit",le,P]]),E[U][1].end.offset-E[U][1].start.offset?(gt=2,Ft=Vt(Ft,[["enter",E[U][1],P],["exit",E[U][1],P]])):gt=0,Gt(E,q-1,U-q+3,Ft),U=q+Ft.length-gt-2;break}}for(U=-1;++U<E.length;)E[U][1].type==="attentionSequence"&&(E[U][1].type="data");return E}function Ua(E,P){const U=this.parser.constructs.attentionMarkers.null,q=this.previous,le=Xs(q);let ge;return Me;function Me(zt){return ge=zt,E.enter("attentionSequence"),et(zt)}function et(zt){if(zt===ge)return E.consume(zt),et;const Ft=E.exit("attentionSequence"),gt=Xs(zt),en=!gt||gt===2&&le||U.includes(zt),un=!le||le===2&>||U.includes(q);return Ft._open=!!(ge===42?en:en&&(le||!un)),Ft._close=!!(ge===42?un:un&&(gt||!en)),P(zt)}}function Ls(E,P){E.column+=P,E.offset+=P,E._bufferIndex+=P}const Ko={name:"autolink",tokenize:Ht};function Ht(E,P,U){let q=0;return le;function le(Ct){return E.enter("autolink"),E.enter("autolinkMarker"),E.consume(Ct),E.exit("autolinkMarker"),E.enter("autolinkProtocol"),ge}function ge(Ct){return(0,tt.jv)(Ct)?(E.consume(Ct),Me):Ct===64?U(Ct):Ft(Ct)}function Me(Ct){return Ct===43||Ct===45||Ct===46||(0,tt.H$)(Ct)?(q=1,et(Ct)):Ft(Ct)}function et(Ct){return Ct===58?(E.consume(Ct),q=0,zt):(Ct===43||Ct===45||Ct===46||(0,tt.H$)(Ct))&&q++<32?(E.consume(Ct),et):(q=0,Ft(Ct))}function zt(Ct){return Ct===62?(E.exit("autolinkProtocol"),E.enter("autolinkMarker"),E.consume(Ct),E.exit("autolinkMarker"),E.exit("autolink"),P):Ct===null||Ct===32||Ct===60||(0,tt.Av)(Ct)?U(Ct):(E.consume(Ct),zt)}function Ft(Ct){return Ct===64?(E.consume(Ct),gt):(0,tt.n9)(Ct)?(E.consume(Ct),Ft):U(Ct)}function gt(Ct){return(0,tt.H$)(Ct)?en(Ct):U(Ct)}function en(Ct){return Ct===46?(E.consume(Ct),q=0,gt):Ct===62?(E.exit("autolinkProtocol").type="autolinkEmail",E.enter("autolinkMarker"),E.consume(Ct),E.exit("autolinkMarker"),E.exit("autolink"),P):un(Ct)}function un(Ct){if((Ct===45||(0,tt.H$)(Ct))&&q++<63){const ai=Ct===45?un:en;return E.consume(Ct),ai}return U(Ct)}}const Ds={name:"htmlText",tokenize:wl};function wl(E,P,U){const q=this;let le,ge,Me;return et;function et(Wt){return E.enter("htmlText"),E.enter("htmlTextData"),E.consume(Wt),zt}function zt(Wt){return Wt===33?(E.consume(Wt),Ft):Wt===47?(E.consume(Wt),h):Wt===63?(E.consume(Wt),gi):(0,tt.jv)(Wt)?(E.consume(Wt),Ve):U(Wt)}function Ft(Wt){return Wt===45?(E.consume(Wt),gt):Wt===91?(E.consume(Wt),ge=0,ai):(0,tt.jv)(Wt)?(E.consume(Wt),yi):U(Wt)}function gt(Wt){return Wt===45?(E.consume(Wt),Ct):U(Wt)}function en(Wt){return Wt===null?U(Wt):Wt===45?(E.consume(Wt),un):(0,tt.Ch)(Wt)?(Me=en,Co(Wt)):(E.consume(Wt),en)}function un(Wt){return Wt===45?(E.consume(Wt),Ct):en(Wt)}function Ct(Wt){return Wt===62?Ur(Wt):Wt===45?un(Wt):en(Wt)}function ai(Wt){const rr="CDATA[";return Wt===rr.charCodeAt(ge++)?(E.consume(Wt),ge===rr.length?ci:ai):U(Wt)}function ci(Wt){return Wt===null?U(Wt):Wt===93?(E.consume(Wt),ti):(0,tt.Ch)(Wt)?(Me=ci,Co(Wt)):(E.consume(Wt),ci)}function ti(Wt){return Wt===93?(E.consume(Wt),Xn):ci(Wt)}function Xn(Wt){return Wt===62?Ur(Wt):Wt===93?(E.consume(Wt),Xn):ci(Wt)}function yi(Wt){return Wt===null||Wt===62?Ur(Wt):(0,tt.Ch)(Wt)?(Me=yi,Co(Wt)):(E.consume(Wt),yi)}function gi(Wt){return Wt===null?U(Wt):Wt===63?(E.consume(Wt),ji):(0,tt.Ch)(Wt)?(Me=gi,Co(Wt)):(E.consume(Wt),gi)}function ji(Wt){return Wt===62?Ur(Wt):gi(Wt)}function h(Wt){return(0,tt.jv)(Wt)?(E.consume(Wt),m):U(Wt)}function m(Wt){return Wt===45||(0,tt.H$)(Wt)?(E.consume(Wt),m):W(Wt)}function W(Wt){return(0,tt.Ch)(Wt)?(Me=W,Co(Wt)):(0,tt.xz)(Wt)?(E.consume(Wt),W):Ur(Wt)}function Ve(Wt){return Wt===45||(0,tt.H$)(Wt)?(E.consume(Wt),Ve):Wt===47||Wt===62||(0,tt.z3)(Wt)?_t(Wt):U(Wt)}function _t(Wt){return Wt===47?(E.consume(Wt),Ur):Wt===58||Wt===95||(0,tt.jv)(Wt)?(E.consume(Wt),Mn):(0,tt.Ch)(Wt)?(Me=_t,Co(Wt)):(0,tt.xz)(Wt)?(E.consume(Wt),_t):Ur(Wt)}function Mn(Wt){return Wt===45||Wt===46||Wt===58||Wt===95||(0,tt.H$)(Wt)?(E.consume(Wt),Mn):li(Wt)}function li(Wt){return Wt===61?(E.consume(Wt),ri):(0,tt.Ch)(Wt)?(Me=li,Co(Wt)):(0,tt.xz)(Wt)?(E.consume(Wt),li):_t(Wt)}function ri(Wt){return Wt===null||Wt===60||Wt===61||Wt===62||Wt===96?U(Wt):Wt===34||Wt===39?(E.consume(Wt),le=Wt,Wn):(0,tt.Ch)(Wt)?(Me=ri,Co(Wt)):(0,tt.xz)(Wt)?(E.consume(Wt),ri):(E.consume(Wt),Bi)}function Wn(Wt){return Wt===le?(E.consume(Wt),le=void 0,cr):Wt===null?U(Wt):(0,tt.Ch)(Wt)?(Me=Wn,Co(Wt)):(E.consume(Wt),Wn)}function Bi(Wt){return Wt===null||Wt===34||Wt===39||Wt===60||Wt===61||Wt===96?U(Wt):Wt===47||Wt===62||(0,tt.z3)(Wt)?_t(Wt):(E.consume(Wt),Bi)}function cr(Wt){return Wt===47||Wt===62||(0,tt.z3)(Wt)?_t(Wt):U(Wt)}function Ur(Wt){return Wt===62?(E.consume(Wt),E.exit("htmlTextData"),E.exit("htmlText"),P):U(Wt)}function Co(Wt){return E.exit("htmlTextData"),E.enter("lineEnding"),E.consume(Wt),E.exit("lineEnding"),yr}function yr(Wt){return(0,tt.xz)(Wt)?(0,Jn.f)(E,fr,"linePrefix",q.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(Wt):fr(Wt)}function fr(Wt){return E.enter("htmlTextData"),Me(Wt)}}const Cl={name:"labelStartLink",resolveAll:Ri.resolveAll,tokenize:Jr};function Jr(E,P,U){const q=this;return le;function le(Me){return E.enter("labelLink"),E.enter("labelMarker"),E.consume(Me),E.exit("labelMarker"),E.exit("labelLink"),ge}function ge(Me){return Me===94&&"_hiddenFootnoteSupport"in q.parser.constructs?U(Me):P(Me)}}const oo={name:"hardBreakEscape",tokenize:ts};function ts(E,P,U){return q;function q(ge){return E.enter("hardBreakEscape"),E.consume(ge),le}function le(ge){return(0,tt.Ch)(ge)?(E.exit("hardBreakEscape"),P(ge)):U(ge)}}const bo={name:"codeText",previous:po,resolve:Or,tokenize:va};function Or(E){let P=E.length-4,U=3,q,le;if((E[U][1].type==="lineEnding"||E[U][1].type==="space")&&(E[P][1].type==="lineEnding"||E[P][1].type==="space")){for(q=U;++q<P;)if(E[q][1].type==="codeTextData"){E[U][1].type="codeTextPadding",E[P][1].type="codeTextPadding",U+=2,P-=2;break}}for(q=U-1,P++;++q<=P;)le===void 0?q!==P&&E[q][1].type!=="lineEnding"&&(le=q):(q===P||E[q][1].type==="lineEnding")&&(E[le][1].type="codeTextData",q!==le+2&&(E[le][1].end=E[q-1][1].end,E.splice(le+2,q-le-2),P-=q-le-2,q=le+2),le=void 0);return E}function po(E){return E!==96||this.events[this.events.length-1][1].type==="characterEscape"}function va(E,P,U){const q=this;let le=0,ge,Me;return et;function et(un){return E.enter("codeText"),E.enter("codeTextSequence"),zt(un)}function zt(un){return un===96?(E.consume(un),le++,zt):(E.exit("codeTextSequence"),Ft(un))}function Ft(un){return un===null?U(un):un===32?(E.enter("space"),E.consume(un),E.exit("space"),Ft):un===96?(Me=E.enter("codeTextSequence"),ge=0,en(un)):(0,tt.Ch)(un)?(E.enter("lineEnding"),E.consume(un),E.exit("lineEnding"),Ft):(E.enter("codeTextData"),gt(un))}function gt(un){return un===null||un===32||un===96||(0,tt.Ch)(un)?(E.exit("codeTextData"),Ft(un)):(E.consume(un),gt)}function en(un){return un===96?(E.consume(un),ge++,en):ge===le?(E.exit("codeTextSequence"),E.exit("codeText"),P(un)):(Me.type="codeTextData",gt(un))}}const gr={42:sn,43:sn,45:sn,48:sn,49:sn,50:sn,51:sn,52:sn,53:sn,54:sn,55:sn,56:sn,57:sn,62:Zt},xn={91:Ln},ur={[-2]:ir,[-1]:ir,32:ir},vi={35:ee,42:ft,45:[Be,ft],60:Xt,61:Be,95:ft,96:Fi,126:Fi},Bo={38:ce,92:to},ys={[-5]:Xr,[-4]:Xr,[-3]:Xr,33:Fo,38:ce,42:da,60:[Ko,Ds],91:Cl,92:[oo,to],93:Ri,95:da,96:bo},oa={null:[da,dr]},Da={null:[42,95]},Ia={null:[]};function ui(E,P,U){let q={_bufferIndex:-1,_index:0,line:U&&U.line||1,column:U&&U.column||1,offset:U&&U.offset||0};const le={},ge=[];let Me=[],et=[],zt=!0;const Ft={attempt:_t(W),check:_t(Ve),consume:ji,enter:h,exit:m,interrupt:_t(Ve,{interrupt:!0})},gt={code:null,containerState:{},defineSkip:Xn,events:[],now:ti,parser:E,previous:null,sliceSerialize:ai,sliceStream:ci,write:Ct};let en=P.tokenize.call(gt,Ft),un;return P.resolveAll&&ge.push(P),gt;function Ct(Wn){return Me=Vt(Me,Wn),yi(),Me[Me.length-1]!==null?[]:(Mn(P,0),gt.events=zr(ge,gt.events,gt),gt.events)}function ai(Wn,Bi){return Yo(ci(Wn),Bi)}function ci(Wn){return Di(Me,Wn)}function ti(){const{_bufferIndex:Wn,_index:Bi,line:cr,column:Ur,offset:Co}=q;return{_bufferIndex:Wn,_index:Bi,line:cr,column:Ur,offset:Co}}function Xn(Wn){le[Wn.line]=Wn.column,ri()}function yi(){let Wn;for(;q._index<Me.length;){const Bi=Me[q._index];if(typeof Bi=="string")for(Wn=q._index,q._bufferIndex<0&&(q._bufferIndex=0);q._index===Wn&&q._bufferIndex<Bi.length;)gi(Bi.charCodeAt(q._bufferIndex));else gi(Bi)}}function gi(Wn){zt=void 0,un=Wn,en=en(Wn)}function ji(Wn){(0,tt.Ch)(Wn)?(q.line++,q.column=1,q.offset+=Wn===-3?2:1,ri()):Wn!==-1&&(q.column++,q.offset++),q._bufferIndex<0?q._index++:(q._bufferIndex++,q._bufferIndex===Me[q._index].length&&(q._bufferIndex=-1,q._index++)),gt.previous=Wn,zt=!0}function h(Wn,Bi){const cr=Bi||{};return cr.type=Wn,cr.start=ti(),gt.events.push(["enter",cr,gt]),et.push(cr),cr}function m(Wn){const Bi=et.pop();return Bi.end=ti(),gt.events.push(["exit",Bi,gt]),Bi}function W(Wn,Bi){Mn(Wn,Bi.from)}function Ve(Wn,Bi){Bi.restore()}function _t(Wn,Bi){return cr;function cr(Ur,Co,yr){let fr,Wt,rr,qr;return Array.isArray(Ur)?Cr(Ur):"tokenize"in Ur?Cr([Ur]):Ut(Ur);function Ut(Lo){return Ks;function Ks(co){const Rs=co!==null&&Lo[co],ms=co!==null&&Lo.null,$s=[...Array.isArray(Rs)?Rs:Rs?[Rs]:[],...Array.isArray(ms)?ms:ms?[ms]:[]];return Cr($s)(co)}}function Cr(Lo){return fr=Lo,Wt=0,Lo.length===0?yr:eo(Lo[Wt])}function eo(Lo){return Ks;function Ks(co){return qr=li(),rr=Lo,Lo.partial||(gt.currentConstruct=Lo),Lo.name&>.parser.constructs.disable.null.includes(Lo.name)?Vs(co):Lo.tokenize.call(Bi?Object.assign(Object.create(gt),Bi):gt,Ft,mo,Vs)(co)}}function mo(Lo){return zt=!0,Wn(rr,qr),Co}function Vs(Lo){return zt=!0,qr.restore(),++Wt<fr.length?eo(fr[Wt]):yr}}}function Mn(Wn,Bi){Wn.resolveAll&&!ge.includes(Wn)&&ge.push(Wn),Wn.resolve&&Gt(gt.events,Bi,gt.events.length-Bi,Wn.resolve(gt.events.slice(Bi),gt)),Wn.resolveTo&&(gt.events=Wn.resolveTo(gt.events,gt))}function li(){const Wn=ti(),Bi=gt.previous,cr=gt.currentConstruct,Ur=gt.events.length,Co=Array.from(et);return{from:Ur,restore:yr};function yr(){q=Wn,gt.previous=Bi,gt.currentConstruct=cr,gt.events.length=Ur,et=Co,ri()}}function ri(){q.line in le&&q.column<2&&(q.column=le[q.line],q.offset+=le[q.line]-1)}}function Di(E,P){const U=P.start._index,q=P.start._bufferIndex,le=P.end._index,ge=P.end._bufferIndex;let Me;if(U===le)Me=[E[U].slice(q,ge)];else{if(Me=E.slice(U,le),q>-1){const et=Me[0];typeof et=="string"?Me[0]=et.slice(q):Me.shift()}ge>0&&Me.push(E[le].slice(0,ge))}return Me}function Yo(E,P){let U=-1;const q=[];let le;for(;++U<E.length;){const ge=E[U];let Me;if(typeof ge=="string")Me=ge;else switch(ge){case-5:{Me="\r";break}case-4:{Me=`
|
|
|
`;break}case-3:{Me=`\r
|
|
|
`;break}case-2:{Me=P?" ":" ";break}case-1:{if(!P&&le)continue;Me=" ";break}default:Me=String.fromCharCode(ge)}le=ge===-2,q.push(Me)}return q.join("")}function ya(E){const q={constructs:bn([b,...(E||{}).extensions||[]]),content:le(j),defined:[],document:le(tr),flow:le(Dr),lazy:{},string:le(Vi),text:le(fi)};return q;function le(ge){return Me;function Me(et){return ui(q,ge,et)}}}const Go=/[\0\t\n\r]/g;function Us(){let E=1,P="",U=!0,q;return le;function le(ge,Me,et){const zt=[];let Ft,gt,en,un,Ct;for(ge=P+(typeof ge=="string"?ge.toString():new TextDecoder(Me||void 0).decode(ge)),en=0,P="",U&&(ge.charCodeAt(0)===65279&&en++,U=void 0);en<ge.length;){if(Go.lastIndex=en,Ft=Go.exec(ge),un=Ft&&Ft.index!==void 0?Ft.index:ge.length,Ct=ge.charCodeAt(un),!Ft){P=ge.slice(en);break}if(Ct===10&&en===un&&q)zt.push(-3),q=void 0;else switch(q&&(zt.push(-5),q=void 0),en<un&&(zt.push(ge.slice(en,un)),E+=un-en),Ct){case 0:{zt.push(65533),E++;break}case 9:{for(gt=Math.ceil(E/4)*4,zt.push(-2);E++<gt;)zt.push(-1);break}case 10:{zt.push(-4),E=1;break}default:q=!0,E=1}en=un+1}return et&&(q&&zt.push(-5),P&&zt.push(P),zt.push(null)),zt}}function vr(E,P){const U=Number.parseInt(E,P);return U<9||U===11||U>13&&U<32||U>126&&U<160||U>55295&&U<57344||U>64975&&U<65008||(U&65535)===65535||(U&65535)===65534||U>1114111?"\uFFFD":String.fromCodePoint(U)}const lu=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function wa(E){return E.replace(lu,Ca)}function Ca(E,P,U){if(P)return P;if(U.charCodeAt(0)===35){const le=U.charCodeAt(1),ge=le===120||le===88;return vr(U.slice(ge?2:1),ge?16:10)}return ii(U)||E}const Oo={}.hasOwnProperty;function ll(E,P,U){return typeof P!="string"&&(U=P,P=void 0),Tl(U)(Dt(ya(U).document().write(Us()(E,P,!0))))}function Tl(E){const P={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:ge(js),autolinkProtocol:_t,autolinkEmail:_t,atxHeading:ge(ko),blockQuote:ge(co),characterEscape:_t,characterReference:_t,codeFenced:ge(Rs),codeFencedFenceInfo:Me,codeFencedFenceMeta:Me,codeIndented:ge(Rs,Me),codeText:ge(ms,Me),codeTextData:_t,data:_t,codeFlowValue:_t,definition:ge($s),definitionDestinationString:Me,definitionLabelString:Me,definitionTitleString:Me,emphasis:ge(fu),hardBreakEscape:ge(Uo),hardBreakTrailing:ge(Uo),htmlFlow:ge(Jo,Me),htmlFlowData:_t,htmlText:ge(Jo,Me),htmlTextData:_t,image:ge(Ss),label:Me,link:ge(js),listItem:ge(cs),listItemValue:un,listOrdered:ge(ro,en),listUnordered:ge(ro),paragraph:ge(Js),reference:Ut,referenceString:Me,resourceDestinationString:Me,resourceTitleString:Me,setextHeading:ge(ko),strong:ge(Fa),thematicBreak:ge(_a)},exit:{atxHeading:zt(),atxHeadingSequence:h,autolink:zt(),autolinkEmail:Ks,autolinkProtocol:Lo,blockQuote:zt(),characterEscapeValue:Mn,characterReferenceMarkerHexadecimal:eo,characterReferenceMarkerNumeric:eo,characterReferenceValue:mo,characterReference:Vs,codeFenced:zt(ti),codeFencedFence:ci,codeFencedFenceInfo:Ct,codeFencedFenceMeta:ai,codeFlowValue:Mn,codeIndented:zt(Xn),codeText:zt(cr),codeTextData:Mn,data:Mn,definition:zt(),definitionDestinationString:ji,definitionLabelString:yi,definitionTitleString:gi,emphasis:zt(),hardBreakEscape:zt(ri),hardBreakTrailing:zt(ri),htmlFlow:zt(Wn),htmlFlowData:Mn,htmlText:zt(Bi),htmlTextData:Mn,image:zt(Co),label:fr,labelText:yr,lineEnding:li,link:zt(Ur),listItem:zt(),listOrdered:zt(),listUnordered:zt(),paragraph:zt(),referenceString:Cr,resourceDestinationString:Wt,resourceTitleString:rr,resource:qr,setextHeading:zt(Ve),setextHeadingLineSequence:W,setextHeadingText:m,strong:zt(),thematicBreak:zt()}};fa(P,(E||{}).mdastExtensions||[]);const U={};return q;function q(xi){let Qi={type:"root",children:[]};const $r={stack:[Qi],tokenStack:[],config:P,enter:et,exit:Ft,buffer:Me,resume:gt,data:U},wr=[];let go=-1;for(;++go<xi.length;)if(xi[go][1].type==="listOrdered"||xi[go][1].type==="listUnordered")if(xi[go][0]==="enter")wr.push(go);else{const Ho=wr.pop();go=le(xi,Ho,go)}for(go=-1;++go<xi.length;){const Ho=P[xi[go][0]];Oo.call(Ho,xi[go][1].type)&&Ho[xi[go][1].type].call(Object.assign({sliceSerialize:xi[go][2].sliceSerialize},$r),xi[go][1])}if($r.tokenStack.length>0){const Ho=$r.tokenStack[$r.tokenStack.length-1];(Ho[1]||Ao).call($r,void 0,Ho[0])}for(Qi.position={start:ks(xi.length>0?xi[0][1].start:{line:1,column:1,offset:0}),end:ks(xi.length>0?xi[xi.length-2][1].end:{line:1,column:1,offset:0})},go=-1;++go<P.transforms.length;)Qi=P.transforms[go](Qi)||Qi;return Qi}function le(xi,Qi,$r){let wr=Qi-1,go=-1,Ho=!1,Ro,Ys,Ml,za;for(;++wr<=$r;){const qs=xi[wr];switch(qs[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{qs[0]==="enter"?go++:go--,za=void 0;break}case"lineEndingBlank":{qs[0]==="enter"&&(Ro&&!za&&!go&&!Ml&&(Ml=wr),za=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:za=void 0}if(!go&&qs[0]==="enter"&&qs[1].type==="listItemPrefix"||go===-1&&qs[0]==="exit"&&(qs[1].type==="listUnordered"||qs[1].type==="listOrdered")){if(Ro){let Ka=wr;for(Ys=void 0;Ka--;){const Zs=xi[Ka];if(Zs[1].type==="lineEnding"||Zs[1].type==="lineEndingBlank"){if(Zs[0]==="exit")continue;Ys&&(xi[Ys][1].type="lineEndingBlank",Ho=!0),Zs[1].type="lineEnding",Ys=Ka}else if(!(Zs[1].type==="linePrefix"||Zs[1].type==="blockQuotePrefix"||Zs[1].type==="blockQuotePrefixWhitespace"||Zs[1].type==="blockQuoteMarker"||Zs[1].type==="listItemIndent"))break}Ml&&(!Ys||Ml<Ys)&&(Ro._spread=!0),Ro.end=Object.assign({},Ys?xi[Ys][1].start:qs[1].end),xi.splice(Ys||wr,0,["exit",Ro,qs[2]]),wr++,$r++}if(qs[1].type==="listItemPrefix"){const Ka={type:"listItem",_spread:!1,start:Object.assign({},qs[1].start),end:void 0};Ro=Ka,xi.splice(wr,0,["enter",Ka,qs[2]]),wr++,$r++,Ml=void 0,za=!0}}}return xi[Qi][1]._spread=Ho,$r}function ge(xi,Qi){return $r;function $r(wr){et.call(this,xi(wr),wr),Qi&&Qi.call(this,wr)}}function Me(){this.stack.push({type:"fragment",children:[]})}function et(xi,Qi,$r){this.stack[this.stack.length-1].children.push(xi),this.stack.push(xi),this.tokenStack.push([Qi,$r||void 0]),xi.position={start:ks(Qi.start),end:void 0}}function zt(xi){return Qi;function Qi($r){xi&&xi.call(this,$r),Ft.call(this,$r)}}function Ft(xi,Qi){const $r=this.stack.pop(),wr=this.tokenStack.pop();if(wr)wr[0].type!==xi.type&&(Qi?Qi.call(this,xi,wr[0]):(wr[1]||Ao).call(this,xi,wr[0]));else throw new Error("Cannot close `"+xi.type+"` ("+te({start:xi.start,end:xi.end})+"): it\u2019s not open");$r.position.end=ks(xi.end)}function gt(){return ct(this.stack.pop())}function en(){this.data.expectingFirstListItemValue=!0}function un(xi){if(this.data.expectingFirstListItemValue){const Qi=this.stack[this.stack.length-2];Qi.start=Number.parseInt(this.sliceSerialize(xi),10),this.data.expectingFirstListItemValue=void 0}}function Ct(){const xi=this.resume(),Qi=this.stack[this.stack.length-1];Qi.lang=xi}function ai(){const xi=this.resume(),Qi=this.stack[this.stack.length-1];Qi.meta=xi}function ci(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function ti(){const xi=this.resume(),Qi=this.stack[this.stack.length-1];Qi.value=xi.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function Xn(){const xi=this.resume(),Qi=this.stack[this.stack.length-1];Qi.value=xi.replace(/(\r?\n|\r)$/g,"")}function yi(xi){const Qi=this.resume(),$r=this.stack[this.stack.length-1];$r.label=Qi,$r.identifier=En(this.sliceSerialize(xi)).toLowerCase()}function gi(){const xi=this.resume(),Qi=this.stack[this.stack.length-1];Qi.title=xi}function ji(){const xi=this.resume(),Qi=this.stack[this.stack.length-1];Qi.url=xi}function h(xi){const Qi=this.stack[this.stack.length-1];if(!Qi.depth){const $r=this.sliceSerialize(xi).length;Qi.depth=$r}}function m(){this.data.setextHeadingSlurpLineEnding=!0}function W(xi){const Qi=this.stack[this.stack.length-1];Qi.depth=this.sliceSerialize(xi).codePointAt(0)===61?1:2}function Ve(){this.data.setextHeadingSlurpLineEnding=void 0}function _t(xi){const $r=this.stack[this.stack.length-1].children;let wr=$r[$r.length-1];(!wr||wr.type!=="text")&&(wr=Ba(),wr.position={start:ks(xi.start),end:void 0},$r.push(wr)),this.stack.push(wr)}function Mn(xi){const Qi=this.stack.pop();Qi.value+=this.sliceSerialize(xi),Qi.position.end=ks(xi.end)}function li(xi){const Qi=this.stack[this.stack.length-1];if(this.data.atHardBreak){const $r=Qi.children[Qi.children.length-1];$r.position.end=ks(xi.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&P.canContainEols.includes(Qi.type)&&(_t.call(this,xi),Mn.call(this,xi))}function ri(){this.data.atHardBreak=!0}function Wn(){const xi=this.resume(),Qi=this.stack[this.stack.length-1];Qi.value=xi}function Bi(){const xi=this.resume(),Qi=this.stack[this.stack.length-1];Qi.value=xi}function cr(){const xi=this.resume(),Qi=this.stack[this.stack.length-1];Qi.value=xi}function Ur(){const xi=this.stack[this.stack.length-1];if(this.data.inReference){const Qi=this.data.referenceType||"shortcut";xi.type+="Reference",xi.referenceType=Qi,delete xi.url,delete xi.title}else delete xi.identifier,delete xi.label;this.data.referenceType=void 0}function Co(){const xi=this.stack[this.stack.length-1];if(this.data.inReference){const Qi=this.data.referenceType||"shortcut";xi.type+="Reference",xi.referenceType=Qi,delete xi.url,delete xi.title}else delete xi.identifier,delete xi.label;this.data.referenceType=void 0}function yr(xi){const Qi=this.sliceSerialize(xi),$r=this.stack[this.stack.length-2];$r.label=wa(Qi),$r.identifier=En(Qi).toLowerCase()}function fr(){const xi=this.stack[this.stack.length-1],Qi=this.resume(),$r=this.stack[this.stack.length-1];if(this.data.inReference=!0,$r.type==="link"){const wr=xi.children;$r.children=wr}else $r.alt=Qi}function Wt(){const xi=this.resume(),Qi=this.stack[this.stack.length-1];Qi.url=xi}function rr(){const xi=this.resume(),Qi=this.stack[this.stack.length-1];Qi.title=xi}function qr(){this.data.inReference=void 0}function Ut(){this.data.referenceType="collapsed"}function Cr(xi){const Qi=this.resume(),$r=this.stack[this.stack.length-1];$r.label=Qi,$r.identifier=En(this.sliceSerialize(xi)).toLowerCase(),this.data.referenceType="full"}function eo(xi){this.data.characterReferenceType=xi.type}function mo(xi){const Qi=this.sliceSerialize(xi),$r=this.data.characterReferenceType;let wr;$r?(wr=vr(Qi,$r==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):wr=ii(Qi);const go=this.stack[this.stack.length-1];go.value+=wr}function Vs(xi){const Qi=this.stack.pop();Qi.position.end=ks(xi.end)}function Lo(xi){Mn.call(this,xi);const Qi=this.stack[this.stack.length-1];Qi.url=this.sliceSerialize(xi)}function Ks(xi){Mn.call(this,xi);const Qi=this.stack[this.stack.length-1];Qi.url="mailto:"+this.sliceSerialize(xi)}function co(){return{type:"blockquote",children:[]}}function Rs(){return{type:"code",lang:null,meta:null,value:""}}function ms(){return{type:"inlineCode",value:""}}function $s(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function fu(){return{type:"emphasis",children:[]}}function ko(){return{type:"heading",depth:0,children:[]}}function Uo(){return{type:"break"}}function Jo(){return{type:"html",value:""}}function Ss(){return{type:"image",title:null,url:"",alt:null}}function js(){return{type:"link",title:null,url:"",children:[]}}function ro(xi){return{type:"list",ordered:xi.type==="listOrdered",start:null,spread:xi._spread,children:[]}}function cs(xi){return{type:"listItem",spread:xi._spread,checked:null,children:[]}}function Js(){return{type:"paragraph",children:[]}}function Fa(){return{type:"strong",children:[]}}function Ba(){return{type:"text",value:""}}function _a(){return{type:"thematicBreak"}}}function ks(E){return{line:E.line,column:E.column,offset:E.offset}}function fa(E,P){let U=-1;for(;++U<P.length;){const q=P[U];Array.isArray(q)?fa(E,q):Nl(E,q)}}function Nl(E,P){let U;for(U in P)if(Oo.call(P,U))switch(U){case"canContainEols":{const q=P[U];q&&E[U].push(...q);break}case"transforms":{const q=P[U];q&&E[U].push(...q);break}case"enter":case"exit":{const q=P[U];q&&Object.assign(E[U],q);break}}}function Ao(E,P){throw E?new Error("Cannot close `"+E.type+"` ("+te({start:E.start,end:E.end})+"): a different token (`"+P.type+"`, "+te({start:P.start,end:P.end})+") is open"):new Error("Cannot close document, a token (`"+P.type+"`, "+te({start:P.start,end:P.end})+") is still open")}function zl(E){const P=this;P.parser=U;function U(q){return ll(q,cd(Eo(Eo({},P.data("settings")),E),{extensions:P.data("micromarkExtensions")||[],mdastExtensions:P.data("fromMarkdownExtensions")||[]}))}}var Ul=d(90302);function Eu(E,P){const U=encode(Cs(E||""));if(!P)return U;const q=U.indexOf(":"),le=U.indexOf("?"),ge=U.indexOf("#"),Me=U.indexOf("/");return q<0||Me>-1&&q>Me||le>-1&&q>le||ge>-1&&q>ge||P.test(U.slice(0,q))?U:""}function Cs(E){const P=[];let U=-1,q=0,le=0;for(;++U<E.length;){const ge=E.charCodeAt(U);let Me="";if(ge===37&&(0,tt.H$)(E.charCodeAt(U+1))&&(0,tt.H$)(E.charCodeAt(U+2)))le=2;else if(ge<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(ge))||(Me=String.fromCharCode(ge));else if(ge>55295&&ge<57344){const et=E.charCodeAt(U+1);ge<56320&&et>56319&&et<57344?(Me=String.fromCharCode(ge,et),le=1):Me="\uFFFD"}else Me=String.fromCharCode(ge);Me&&(P.push(E.slice(q,U),encodeURIComponent(Me)),q=U+le+1,Me=""),le&&(U+=le,le=0)}return P.join("")+E.slice(q)}function Zo(E,P){const U=[{type:"text",value:"\u21A9"}];return P>1&&U.push({type:"element",tagName:"sup",properties:{},children:[{type:"text",value:String(P)}]}),U}function Ha(E,P){return"Back to reference "+(E+1)+(P>1?"-"+P:"")}function Hi(E){const P=typeof E.options.clobberPrefix=="string"?E.options.clobberPrefix:"user-content-",U=E.options.footnoteBackContent||Zo,q=E.options.footnoteBackLabel||Ha,le=E.options.footnoteLabel||"Footnotes",ge=E.options.footnoteLabelTagName||"h2",Me=E.options.footnoteLabelProperties||{className:["sr-only"]},et=[];let zt=-1;for(;++zt<E.footnoteOrder.length;){const Ft=E.footnoteById.get(E.footnoteOrder[zt]);if(!Ft)continue;const gt=E.all(Ft),en=String(Ft.identifier).toUpperCase(),un=Cs(en.toLowerCase());let Ct=0;const ai=[],ci=E.footnoteCounts.get(en);for(;ci!==void 0&&++Ct<=ci;){ai.length>0&&ai.push({type:"text",value:" "});let yi=typeof U=="string"?U:U(zt,Ct);typeof yi=="string"&&(yi={type:"text",value:yi}),ai.push({type:"element",tagName:"a",properties:{href:"#"+P+"fnref-"+un+(Ct>1?"-"+Ct:""),dataFootnoteBackref:"",ariaLabel:typeof q=="string"?q:q(zt,Ct),className:["data-footnote-backref"]},children:Array.isArray(yi)?yi:[yi]})}const ti=gt[gt.length-1];if(ti&&ti.type==="element"&&ti.tagName==="p"){const yi=ti.children[ti.children.length-1];yi&&yi.type==="text"?yi.value+=" ":ti.children.push({type:"text",value:" "}),ti.children.push(...ai)}else gt.push(...ai);const Xn={type:"element",tagName:"li",properties:{id:P+"fn-"+un},children:E.wrap(gt,!0)};E.patch(Ft,Xn),et.push(Xn)}if(et.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:ge,properties:cd(Eo({},(0,Ul.ZP)(Me)),{id:"footnote-label"}),children:[{type:"text",value:le}]},{type:"text",value:`
|
|
|
`},{type:"element",tagName:"ol",properties:{},children:E.wrap(et,!0)},{type:"text",value:`
|
|
|
`}]}}var pa=d(10528);function Hl(E,P){const U={type:"element",tagName:"blockquote",properties:{},children:E.wrap(E.all(P),!0)};return E.patch(P,U),E.applyData(P,U)}function Lr(E,P){const U={type:"element",tagName:"br",properties:{},children:[]};return E.patch(P,U),[E.applyData(P,U),{type:"text",value:`
|
|
|
`}]}function so(E,P){const U=P.value?P.value+`
|
|
|
`:"",q={};P.lang&&(q.className=["language-"+P.lang]);let le={type:"element",tagName:"code",properties:q,children:[{type:"text",value:U}]};return P.meta&&(le.data={meta:P.meta}),E.patch(P,le),le=E.applyData(P,le),le={type:"element",tagName:"pre",properties:{},children:[le]},E.patch(P,le),le}function ns(E,P){const U={type:"element",tagName:"del",properties:{},children:E.all(P)};return E.patch(P,U),E.applyData(P,U)}function Xo(E,P){const U={type:"element",tagName:"em",properties:{},children:E.all(P)};return E.patch(P,U),E.applyData(P,U)}function jr(E,P){const U=typeof E.options.clobberPrefix=="string"?E.options.clobberPrefix:"user-content-",q=String(P.identifier).toUpperCase(),le=Cs(q.toLowerCase()),ge=E.footnoteOrder.indexOf(q);let Me,et=E.footnoteCounts.get(q);et===void 0?(et=0,E.footnoteOrder.push(q),Me=E.footnoteOrder.length):Me=ge+1,et+=1,E.footnoteCounts.set(q,et);const zt={type:"element",tagName:"a",properties:{href:"#"+U+"fn-"+le,id:U+"fnref-"+le+(et>1?"-"+et:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(Me)}]};E.patch(P,zt);const Ft={type:"element",tagName:"sup",properties:{},children:[zt]};return E.patch(P,Ft),E.applyData(P,Ft)}function Qo(E,P){const U={type:"element",tagName:"h"+P.depth,properties:{},children:E.all(P)};return E.patch(P,U),E.applyData(P,U)}function is(E,P){if(E.options.allowDangerousHtml){const U={type:"raw",value:P.value};return E.patch(P,U),E.applyData(P,U)}}function rs(E,P){const U=P.referenceType;let q="]";if(U==="collapsed"?q+="[]":U==="full"&&(q+="["+(P.label||P.identifier)+"]"),P.type==="imageReference")return[{type:"text",value:"!["+P.alt+q}];const le=E.all(P),ge=le[0];ge&&ge.type==="text"?ge.value="["+ge.value:le.unshift({type:"text",value:"["});const Me=le[le.length-1];return Me&&Me.type==="text"?Me.value+=q:le.push({type:"text",value:q}),le}function fs(E,P){const U=String(P.identifier).toUpperCase(),q=E.definitionById.get(U);if(!q)return rs(E,P);const le={src:Cs(q.url||""),alt:P.alt};q.title!==null&&q.title!==void 0&&(le.title=q.title);const ge={type:"element",tagName:"img",properties:le,children:[]};return E.patch(P,ge),E.applyData(P,ge)}function $l(E,P){const U={src:Cs(P.url)};P.alt!==null&&P.alt!==void 0&&(U.alt=P.alt),P.title!==null&&P.title!==void 0&&(U.title=P.title);const q={type:"element",tagName:"img",properties:U,children:[]};return E.patch(P,q),E.applyData(P,q)}function $a(E,P){const U={type:"text",value:P.value.replace(/\r?\n|\r/g," ")};E.patch(P,U);const q={type:"element",tagName:"code",properties:{},children:[U]};return E.patch(P,q),E.applyData(P,q)}function ls(E,P){const U=String(P.identifier).toUpperCase(),q=E.definitionById.get(U);if(!q)return rs(E,P);const le={href:Cs(q.url||"")};q.title!==null&&q.title!==void 0&&(le.title=q.title);const ge={type:"element",tagName:"a",properties:le,children:E.all(P)};return E.patch(P,ge),E.applyData(P,ge)}function ac(E,P){const U={href:Cs(P.url)};P.title!==null&&P.title!==void 0&&(U.title=P.title);const q={type:"element",tagName:"a",properties:U,children:E.all(P)};return E.patch(P,q),E.applyData(P,q)}function lc(E,P,U){const q=E.all(P),le=U?wu(U):er(P),ge={},Me=[];if(typeof P.checked=="boolean"){const gt=q[0];let en;gt&>.type==="element"&>.tagName==="p"?en=gt:(en={type:"element",tagName:"p",properties:{},children:[]},q.unshift(en)),en.children.length>0&&en.children.unshift({type:"text",value:" "}),en.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:P.checked,disabled:!0},children:[]}),ge.className=["task-list-item"]}let et=-1;for(;++et<q.length;){const gt=q[et];(le||et!==0||gt.type!=="element"||gt.tagName!=="p")&&Me.push({type:"text",value:`
|
|
|
`}),gt.type==="element"&>.tagName==="p"&&!le?Me.push(...gt.children):Me.push(gt)}const zt=q[q.length-1];zt&&(le||zt.type!=="element"||zt.tagName!=="p")&&Me.push({type:"text",value:`
|
|
|
`});const Ft={type:"element",tagName:"li",properties:ge,children:Me};return E.patch(P,Ft),E.applyData(P,Ft)}function wu(E){let P=!1;if(E.type==="list"){P=E.spread||!1;const U=E.children;let q=-1;for(;!P&&++q<U.length;)P=er(U[q])}return P}function er(E){const P=E.spread;return P==null?E.children.length>1:P}function ja(E,P){const U={},q=E.all(P);let le=-1;for(typeof P.start=="number"&&P.start!==1&&(U.start=P.start);++le<q.length;){const Me=q[le];if(Me.type==="element"&&Me.tagName==="li"&&Me.properties&&Array.isArray(Me.properties.className)&&Me.properties.className.includes("task-list-item")){U.className=["contains-task-list"];break}}const ge={type:"element",tagName:P.ordered?"ol":"ul",properties:U,children:E.wrap(q,!0)};return E.patch(P,ge),E.applyData(P,ge)}function Ke(E,P){const U={type:"element",tagName:"p",properties:{},children:E.all(P)};return E.patch(P,U),E.applyData(P,U)}function An(E,P){const U={type:"root",children:E.wrap(E.all(P))};return E.patch(P,U),E.applyData(P,U)}function Cu(E,P){const U={type:"element",tagName:"strong",properties:{},children:E.all(P)};return E.patch(P,U),E.applyData(P,U)}function jl(E,P){const U=E.all(P),q=U.shift(),le=[];if(q){const Me={type:"element",tagName:"thead",properties:{},children:E.wrap([q],!0)};E.patch(P.children[0],Me),le.push(Me)}if(U.length>0){const Me={type:"element",tagName:"tbody",properties:{},children:E.wrap(U,!0)},et=(0,Ne.Pk)(P.children[1]),zt=(0,Ne.rb)(P.children[P.children.length-1]);et&&zt&&(Me.position={start:et,end:zt}),le.push(Me)}const ge={type:"element",tagName:"table",properties:{},children:E.wrap(le,!0)};return E.patch(P,ge),E.applyData(P,ge)}function Pa(E,P,U){const q=U?U.children:void 0,ge=(q?q.indexOf(P):1)===0?"th":"td",Me=U&&U.type==="table"?U.align:void 0,et=Me?Me.length:P.children.length;let zt=-1;const Ft=[];for(;++zt<et;){const en=P.children[zt],un={},Ct=Me?Me[zt]:void 0;Ct&&(un.align=Ct);let ai={type:"element",tagName:ge,properties:un,children:[]};en&&(ai.children=E.all(en),E.patch(en,ai),ai=E.applyData(en,ai)),Ft.push(ai)}const gt={type:"element",tagName:"tr",properties:{},children:E.wrap(Ft,!0)};return E.patch(P,gt),E.applyData(P,gt)}function Ga(E,P){const U={type:"element",tagName:"td",properties:{},children:E.all(P)};return E.patch(P,U),E.applyData(P,U)}const Wa=9,Bu=32;function Al(E){const P=String(E),U=/\r?\n|\r/g;let q=U.exec(P),le=0;const ge=[];for(;q;)ge.push(us(P.slice(le,q.index),le>0,!0),q[0]),le=q.index+q[0].length,q=U.exec(P);return ge.push(us(P.slice(le),le>0,!1)),ge.join("")}function us(E,P,U){let q=0,le=E.length;if(P){let ge=E.codePointAt(q);for(;ge===Wa||ge===Bu;)q++,ge=E.codePointAt(q)}if(U){let ge=E.codePointAt(le-1);for(;ge===Wa||ge===Bu;)le--,ge=E.codePointAt(le-1)}return le>q?E.slice(q,le):""}function xr(E,P){const U={type:"text",value:Al(String(P.value))};return E.patch(P,U),E.applyData(P,U)}function Ta(E,P){const U={type:"element",tagName:"hr",properties:{},children:[]};return E.patch(P,U),E.applyData(P,U)}const Qs={blockquote:Hl,break:Lr,code:so,delete:ns,emphasis:Xo,footnoteReference:jr,heading:Qo,html:is,imageReference:fs,image:$l,inlineCode:$a,linkReference:ls,link:ac,listItem:lc,list:ja,paragraph:Ke,root:An,strong:Cu,table:jl,tableCell:Ga,tableRow:Pa,text:xr,thematicBreak:Ta,toml:Wo,yaml:Wo,definition:Wo,footnoteDefinition:Wo};function Wo(){}const Gr={}.hasOwnProperty,Ts={};function Na(E,P){const U=P||Ts,q=new Map,le=new Map,ge=new Map,Me=Eo(Eo({},Qs),U.handlers),et={all:Ft,applyData:Ma,definitionById:q,footnoteById:le,footnoteCounts:ge,footnoteOrder:[],handlers:Me,one:zt,options:U,patch:_o,wrap:uu};return(0,pa.Vn)(E,function(gt){if(gt.type==="definition"||gt.type==="footnoteDefinition"){const en=gt.type==="definition"?q:le,un=String(gt.identifier).toUpperCase();en.has(un)||en.set(un,gt)}}),et;function zt(gt,en){const un=gt.type,Ct=et.handlers[un];if(Gr.call(et.handlers,un)&&Ct)return Ct(et,gt,en);if(et.options.passThrough&&et.options.passThrough.includes(un)){if("children"in gt){const ci=gt,{children:ti}=ci,Xn=kb(ci,["children"]),yi=(0,Ul.ZP)(Xn);return yi.children=et.all(gt),yi}return(0,Ul.ZP)(gt)}return(et.options.unknownHandler||Hs)(et,gt,en)}function Ft(gt){const en=[];if("children"in gt){const un=gt.children;let Ct=-1;for(;++Ct<un.length;){const ai=et.one(un[Ct],gt);if(ai){if(Ct&&un[Ct-1].type==="break"&&(!Array.isArray(ai)&&ai.type==="text"&&(ai.value=uo(ai.value)),!Array.isArray(ai)&&ai.type==="element")){const ci=ai.children[0];ci&&ci.type==="text"&&(ci.value=uo(ci.value))}Array.isArray(ai)?en.push(...ai):en.push(ai)}}}return en}}function _o(E,P){E.position&&(P.position=(0,Ne.FK)(E))}function Ma(E,P){let U=P;if(E&&E.data){const q=E.data.hName,le=E.data.hChildren,ge=E.data.hProperties;if(typeof q=="string")if(U.type==="element")U.tagName=q;else{const Me="children"in U?U.children:[U];U={type:"element",tagName:q,properties:{},children:Me}}U.type==="element"&&ge&&Object.assign(U.properties,(0,Ul.ZP)(ge)),"children"in U&&U.children&&le!==null&&le!==void 0&&(U.children=le)}return U}function Hs(E,P){const U=P.data||{},q="value"in P&&!(Gr.call(U,"hProperties")||Gr.call(U,"hChildren"))?{type:"text",value:P.value}:{type:"element",tagName:"div",properties:{},children:E.all(P)};return E.patch(P,q),E.applyData(P,q)}function uu(E,P){const U=[];let q=-1;for(P&&U.push({type:"text",value:`
|
|
|
`});++q<E.length;)q&&U.push({type:"text",value:`
|
|
|
`}),U.push(E[q]);return P&&E.length>0&&U.push({type:"text",value:`
|
|
|
`}),U}function uo(E){let P=0,U=E.charCodeAt(P);for(;U===9||U===32;)P++,U=E.charCodeAt(P);return E.slice(P)}function sa(E,P){const U=Na(E,P),q=U.one(E,void 0),le=Hi(U),ge=Array.isArray(q)?{type:"root",children:q}:q||{type:"root",children:[]};return le&&((0,I.ok)("children"in ge),ge.children.push({type:"text",value:`
|
|
|
`},le)),ge}function io(E,P){return E&&"run"in E?function(U,q){return Ib(this,null,function*(){const le=sa(U,Eo({file:q},P));yield E.run(le,q)})}:function(U,q){return sa(U,Eo({file:q},E||P))}}function zo(E){if(E)throw E}var os=d(58847);function ps(E){if(typeof E!="object"||E===null)return!1;const P=Object.getPrototypeOf(E);return(P===null||P===Object.prototype||Object.getPrototypeOf(P)===null)&&!(Symbol.toStringTag in E)&&!(Symbol.iterator in E)}function wo(){const E=[],P={run:U,use:q};return P;function U(...le){let ge=-1;const Me=le.pop();if(typeof Me!="function")throw new TypeError("Expected function as last argument, not "+Me);et(null,...le);function et(zt,...Ft){const gt=E[++ge];let en=-1;if(zt){Me(zt);return}for(;++en<le.length;)(Ft[en]===null||Ft[en]===void 0)&&(Ft[en]=le[en]);le=Ft,gt?cu(gt,et)(...Ft):Me(null,...Ft)}}function q(le){if(typeof le!="function")throw new TypeError("Expected `middelware` to be a function, not "+le);return E.push(le),P}}function cu(E,P){let U;return q;function q(...Me){const et=E.length>Me.length;let zt;et&&Me.push(le);try{zt=E.apply(this,Me)}catch(Ft){const gt=Ft;if(et&&U)throw gt;return le(gt)}et||(zt&&zt.then&&typeof zt.then=="function"?zt.then(ge,le):zt instanceof Error?le(zt):ge(zt))}function le(Me,...et){U||(U=!0,P(Me,...et))}function ge(Me){le(null,Me)}}const or={basename:Tu,dirname:ao,extname:Vu,join:Ku,sep:"/"};function Tu(E,P){if(P!==void 0&&typeof P!="string")throw new TypeError('"ext" argument must be a string');el(E);let U=0,q=-1,le=E.length,ge;if(P===void 0||P.length===0||P.length>E.length){for(;le--;)if(E.codePointAt(le)===47){if(ge){U=le+1;break}}else q<0&&(ge=!0,q=le+1);return q<0?"":E.slice(U,q)}if(P===E)return"";let Me=-1,et=P.length-1;for(;le--;)if(E.codePointAt(le)===47){if(ge){U=le+1;break}}else Me<0&&(ge=!0,Me=le+1),et>-1&&(E.codePointAt(le)===P.codePointAt(et--)?et<0&&(q=le):(et=-1,q=Me));return U===q?q=Me:q<0&&(q=E.length),E.slice(U,q)}function ao(E){if(el(E),E.length===0)return".";let P=-1,U=E.length,q;for(;--U;)if(E.codePointAt(U)===47){if(q){P=U;break}}else q||(q=!0);return P<0?E.codePointAt(0)===47?"/":".":P===1&&E.codePointAt(0)===47?"//":E.slice(0,P)}function Vu(E){el(E);let P=E.length,U=-1,q=0,le=-1,ge=0,Me;for(;P--;){const et=E.codePointAt(P);if(et===47){if(Me){q=P+1;break}continue}U<0&&(Me=!0,U=P+1),et===46?le<0?le=P:ge!==1&&(ge=1):le>-1&&(ge=-1)}return le<0||U<0||ge===0||ge===1&&le===U-1&&le===q+1?"":E.slice(le,U)}function Ku(...E){let P=-1,U;for(;++P<E.length;)el(E[P]),E[P]&&(U=U===void 0?E[P]:U+"/"+E[P]);return U===void 0?".":Yu(U)}function Yu(E){el(E);const P=E.codePointAt(0)===47;let U=Sc(E,!P);return U.length===0&&!P&&(U="."),U.length>0&&E.codePointAt(E.length-1)===47&&(U+="/"),P?"/"+U:U}function Sc(E,P){let U="",q=0,le=-1,ge=0,Me=-1,et,zt;for(;++Me<=E.length;){if(Me<E.length)et=E.codePointAt(Me);else{if(et===47)break;et=47}if(et===47){if(!(le===Me-1||ge===1))if(le!==Me-1&&ge===2){if(U.length<2||q!==2||U.codePointAt(U.length-1)!==46||U.codePointAt(U.length-2)!==46){if(U.length>2){if(zt=U.lastIndexOf("/"),zt!==U.length-1){zt<0?(U="",q=0):(U=U.slice(0,zt),q=U.length-1-U.lastIndexOf("/")),le=Me,ge=0;continue}}else if(U.length>0){U="",q=0,le=Me,ge=0;continue}}P&&(U=U.length>0?U+"/..":"..",q=2)}else U.length>0?U+="/"+E.slice(le+1,Me):U=E.slice(le+1,Me),q=Me-le-1;le=Me,ge=0}else et===46&&ge>-1?ge++:ge=-1}return U}function el(E){if(typeof E!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(E))}const Gl={cwd:eu};function eu(){return"/"}function xo(E){return!!(E!==null&&typeof E=="object"&&"href"in E&&E.href&&"protocol"in E&&E.protocol&&E.auth===void 0)}function ul(E){if(typeof E=="string")E=new URL(E);else if(!xo(E)){const P=new TypeError('The "path" argument must be of type string or an instance of URL. Received `'+E+"`");throw P.code="ERR_INVALID_ARG_TYPE",P}if(E.protocol!=="file:"){const P=new TypeError("The URL must be of scheme file");throw P.code="ERR_INVALID_URL_SCHEME",P}return Ec(E)}function Ec(E){if(E.hostname!==""){const q=new TypeError('File URL host must be "localhost" or empty on darwin');throw q.code="ERR_INVALID_FILE_URL_HOST",q}const P=E.pathname;let U=-1;for(;++U<P.length;)if(P.codePointAt(U)===37&&P.codePointAt(U+1)===50){const q=P.codePointAt(U+2);if(q===70||q===102){const le=new TypeError("File URL path must not include encoded / characters");throw le.code="ERR_INVALID_FILE_URL_PATH",le}}return decodeURIComponent(P)}const Wl=["history","path","basename","stem","extname","dirname"];class hu{constructor(P){let U;P?xo(P)?U={path:P}:typeof P=="string"||kl(P)?U={value:P}:U=P:U={},this.cwd="cwd"in U?"":Gl.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let q=-1;for(;++q<Wl.length;){const ge=Wl[q];ge in U&&U[ge]!==void 0&&U[ge]!==null&&(this[ge]=ge==="history"?[...U[ge]]:U[ge])}let le;for(le in U)Wl.includes(le)||(this[le]=U[le])}get basename(){return typeof this.path=="string"?or.basename(this.path):void 0}set basename(P){Va(P,"basename"),tl(P,"basename"),this.path=or.join(this.dirname||"",P)}get dirname(){return typeof this.path=="string"?or.dirname(this.path):void 0}set dirname(P){du(this.basename,"dirname"),this.path=or.join(P||"",this.basename)}get extname(){return typeof this.path=="string"?or.extname(this.path):void 0}set extname(P){if(tl(P,"extname"),du(this.dirname,"extname"),P){if(P.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(P.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=or.join(this.dirname,this.stem+(P||""))}get path(){return this.history[this.history.length-1]}set path(P){xo(P)&&(P=ul(P)),Va(P,"path"),this.path!==P&&this.history.push(P)}get stem(){return typeof this.path=="string"?or.basename(this.path,this.extname):void 0}set stem(P){Va(P,"stem"),tl(P,"stem"),this.path=or.join(this.dirname||"",P+(this.extname||""))}fail(P,U,q){const le=this.message(P,U,q);throw le.fatal=!0,le}info(P,U,q){const le=this.message(P,U,q);return le.fatal=void 0,le}message(P,U,q){const le=new Qe(P,U,q);return this.path&&(le.name=this.path+":"+le.name,le.file=this.path),le.fatal=!1,this.messages.push(le),le}toString(P){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(P||void 0).decode(this.value)}}function tl(E,P){if(E&&E.includes(or.sep))throw new Error("`"+P+"` cannot be a path: did not expect `"+or.sep+"`")}function Va(E,P){if(!E)throw new Error("`"+P+"` cannot be empty")}function du(E,P){if(!E)throw new Error("Setting `"+P+"` requires `path` to be set too")}function kl(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}const Vl=function(E){const q=this.constructor.prototype,le=q[E],ge=function(){return le.apply(ge,arguments)};return Object.setPrototypeOf(ge,q),ge},uc={}.hasOwnProperty;class Zu extends Vl{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=wo()}copy(){const P=new Zu;let U=-1;for(;++U<this.attachers.length;){const q=this.attachers[U];P.use(...q)}return P.data(os(!0,{},this.namespace)),P}data(P,U){return typeof P=="string"?arguments.length===2?(Il("data",this.frozen),this.namespace[P]=U,this):uc.call(this.namespace,P)&&this.namespace[P]||void 0:P?(Il("data",this.frozen),this.namespace=P,this):this.namespace}freeze(){if(this.frozen)return this;const P=this;for(;++this.freezeIndex<this.attachers.length;){const[U,...q]=this.attachers[this.freezeIndex];if(q[0]===!1)continue;q[0]===!0&&(q[0]=void 0);const le=U.call(P,...q);typeof le=="function"&&this.transformers.use(le)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(P){this.freeze();const U=ke(P),q=this.parser||this.Parser;return cl("parse",q),q(String(U),U)}process(P,U){const q=this;return this.freeze(),cl("process",this.parser||this.Parser),aa("process",this.compiler||this.Compiler),U?le(void 0,U):new Promise(le);function le(ge,Me){const et=ke(P),zt=q.parse(et);q.run(zt,et,function(gt,en,un){if(gt||!en||!un)return Ft(gt);const Ct=en,ai=q.stringify(Ct,un);pt(ai)?un.value=ai:un.result=ai,Ft(gt,un)});function Ft(gt,en){gt||!en?Me(gt):ge?ge(en):((0,I.ok)(U,"`done` is defined if `resolve` is not"),U(void 0,en))}}}processSync(P){let U=!1,q;return this.freeze(),cl("processSync",this.parser||this.Parser),aa("processSync",this.compiler||this.Compiler),this.process(P,le),Se("processSync","process",U),(0,I.ok)(q,"we either bailed on an error or have a tree"),q;function le(ge,Me){U=!0,zo(ge),q=Me}}run(P,U,q){cc(P),this.freeze();const le=this.transformers;return!q&&typeof U=="function"&&(q=U,U=void 0),q?ge(void 0,q):new Promise(ge);function ge(Me,et){(0,I.ok)(typeof U!="function","`file` can\u2019t be a `done` anymore, we checked");const zt=ke(U);le.run(P,zt,Ft);function Ft(gt,en,un){const Ct=en||P;gt?et(gt):Me?Me(Ct):((0,I.ok)(q,"`done` is defined if `resolve` is not"),q(void 0,Ct,un))}}}runSync(P,U){let q=!1,le;return this.run(P,U,ge),Se("runSync","run",q),(0,I.ok)(le,"we either bailed on an error or have a tree"),le;function ge(Me,et){zo(Me),le=et,q=!0}}stringify(P,U){this.freeze();const q=ke(U),le=this.compiler||this.Compiler;return aa("stringify",le),cc(P),le(P,q)}use(P,...U){const q=this.attachers,le=this.namespace;if(Il("use",this.frozen),P!=null)if(typeof P=="function")zt(P,U);else if(typeof P=="object")Array.isArray(P)?et(P):Me(P);else throw new TypeError("Expected usable value, not `"+P+"`");return this;function ge(Ft){if(typeof Ft=="function")zt(Ft,[]);else if(typeof Ft=="object")if(Array.isArray(Ft)){const[gt,...en]=Ft;zt(gt,en)}else Me(Ft);else throw new TypeError("Expected usable value, not `"+Ft+"`")}function Me(Ft){if(!("plugins"in Ft)&&!("settings"in Ft))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");et(Ft.plugins),Ft.settings&&(le.settings=os(!0,le.settings,Ft.settings))}function et(Ft){let gt=-1;if(Ft!=null)if(Array.isArray(Ft))for(;++gt<Ft.length;){const en=Ft[gt];ge(en)}else throw new TypeError("Expected a list of plugins, not `"+Ft+"`")}function zt(Ft,gt){let en=-1,un=-1;for(;++en<q.length;)if(q[en][0]===Ft){un=en;break}if(un===-1)q.push([Ft,...gt]);else if(gt.length>0){let[Ct,...ai]=gt;const ci=q[un][1];ps(ci)&&ps(Ct)&&(Ct=os(!0,ci,Ct)),q[un]=[Ft,Ct,...ai]}}}}const Dc=new Zu().freeze();function cl(E,P){if(typeof P!="function")throw new TypeError("Cannot `"+E+"` without `parser`")}function aa(E,P){if(typeof P!="function")throw new TypeError("Cannot `"+E+"` without `compiler`")}function Il(E,P){if(P)throw new Error("Cannot call `"+E+"` on a frozen processor.\nCreate a new processor first, by calling it: use `processor()` instead of `processor`.")}function cc(E){if(!ps(E)||typeof E.type!="string")throw new TypeError("Expected node, got `"+E+"`")}function Se(E,P,U){if(!U)throw new Error("`"+E+"` finished async. Use `"+P+"` instead")}function ke(E){return st(E)?E:new hu(E)}function st(E){return!!(E&&typeof E=="object"&&"message"in E&&"messages"in E)}function pt(E){return typeof E=="string"||Lt(E)}function Lt(E){return!!(E&&typeof E=="object"&&"byteLength"in E&&"byteOffset"in E)}const Tt="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",me=[],dn={allowDangerousHtml:!0},an=/^(https?|ircs?|mailto|xmpp)$/i,Pn=[{from:"astPlugins",id:"remove-buggy-html-in-markdown-parser"},{from:"allowDangerousHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"allowNode",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowElement"},{from:"allowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"allowedElements"},{from:"disallowedTypes",id:"replace-allownode-allowedtypes-and-disallowedtypes",to:"disallowedElements"},{from:"escapeHtml",id:"remove-buggy-html-in-markdown-parser"},{from:"includeElementIndex",id:"#remove-includeelementindex"},{from:"includeNodeIndex",id:"change-includenodeindex-to-includeelementindex"},{from:"linkTarget",id:"remove-linktarget"},{from:"plugins",id:"change-plugins-to-remarkplugins",to:"remarkPlugins"},{from:"rawSourcePos",id:"#remove-rawsourcepos"},{from:"renderers",id:"change-renderers-to-components",to:"components"},{from:"source",id:"change-source-to-children",to:"children"},{from:"sourcePos",id:"#remove-sourcepos"},{from:"transformImageUri",id:"#add-urltransform",to:"urlTransform"},{from:"transformLinkUri",id:"#add-urltransform",to:"urlTransform"}];function Rn(E){const P=E.allowedElements,U=E.allowElement,q=E.children||"",le=E.className,ge=E.components,Me=E.disallowedElements,et=E.rehypePlugins||me,zt=E.remarkPlugins||me,Ft=E.remarkRehypeOptions?Eo(Eo({},E.remarkRehypeOptions),dn):dn,gt=E.skipHtml,en=E.unwrapDisallowed,un=E.urlTransform||Bn,Ct=Dc().use(zl).use(zt).use(io,Ft).use(et),ai=new hu;typeof q=="string"?ai.value=q:(0,I.t1)("Unexpected value `"+q+"` for `children` prop, expected `string`"),P&&Me&&(0,I.t1)("Unexpected combined `allowedElements` and `disallowedElements`, expected one or the other");for(const yi of Pn)Object.hasOwn(E,yi.from)&&(0,I.t1)("Unexpected `"+yi.from+"` prop, "+(yi.to?"use `"+yi.to+"` instead":"remove it")+" (see <"+Tt+"#"+yi.id+"> for more info)");const ci=Ct.parse(ai);let ti=Ct.runSync(ci,ai);return le&&(ti={type:"element",tagName:"div",properties:{className:le},children:ti.type==="root"?ti.children:[ti]}),(0,pa.Vn)(ti,Xn),St(ti,{Fragment:_e.Fragment,components:ge,ignoreInvalidStyle:!0,jsx:_e.jsx,jsxs:_e.jsxs,passKeys:!0,passNode:!0});function Xn(yi,gi,ji){if(yi.type==="raw"&&ji&&typeof gi=="number")return gt?ji.children.splice(gi,1):ji.children[gi]={type:"text",value:yi.value},gi;if(yi.type==="element"){let h;for(h in mt)if(Object.hasOwn(mt,h)&&Object.hasOwn(yi.properties,h)){const m=yi.properties[h],W=mt[h];(W===null||W.includes(yi.tagName))&&(yi.properties[h]=un(String(m||""),h,yi))}}if(yi.type==="element"){let h=P?!P.includes(yi.tagName):Me?Me.includes(yi.tagName):!1;if(!h&&U&&typeof gi=="number"&&(h=!U(yi,gi,ji)),h&&ji&&typeof gi=="number")return en&&yi.children?ji.children.splice(gi,1,...yi.children):ji.children.splice(gi,1),gi}}}function Bn(E){const P=E.indexOf(":"),U=E.indexOf("?"),q=E.indexOf("#"),le=E.indexOf("/");return P===-1||le!==-1&&P>le||U!==-1&&P>U||q!==-1&&P>q||an.test(E.slice(0,P))?E:""}},35328:function(J,C,d){"use strict";d.d(C,{Z:function(){return la}});var b=d(74618),I=d(43309);function L(A,g){return B(A,g||{})||{type:"root",children:[]}}function B(A,g){const S=V(A,g);return S&&g.afterTransform&&g.afterTransform(A,S),S}function V(A,g){switch(A.nodeType){case 1:return re(A,g);case 3:return de(A);case 8:return he(A);case 9:return Q(A,g);case 10:return M();case 11:return Q(A,g);default:return}}function Q(A,g){return{type:"root",children:De(A,g)}}function M(){return{type:"doctype"}}function de(A){return{type:"text",value:A.nodeValue||""}}function he(A){return{type:"comment",value:A.nodeValue||""}}function re(A,g){const S=A.namespaceURI,R=S===I.t.svg?b.s:b.h,Y=S===I.t.html?A.tagName.toLowerCase():A.tagName,se=S===I.t.html&&Y==="template"?A.content:A,Z=A.getAttributeNames(),rt={};let lt=-1;for(;++lt<Z.length;)rt[Z[lt]]=A.getAttribute(Z[lt])||"";return R(Y,rt,De(se,g))}function De(A,g){const S=A.childNodes,R=[];let Y=-1;for(;++Y<S.length;){const se=B(S[Y],g);se!==void 0&&R.push(se)}return R}const ne=new DOMParser;function it(A,g){const S=g!=null&&g.fragment?Ue(A):ne.parseFromString(A,"text/html");return L(S)}function Ue(A){const g=document.createElement("template");return g.innerHTML=A,g.content}var Ie=d(10502);const Pe=function(A,g,S){const R=(0,Ie.O)(S);if(!A||!A.type||!A.children)throw new Error("Expected parent node");if(typeof g=="number"){if(g<0||g===Number.POSITIVE_INFINITY)throw new Error("Expected positive finite number as index")}else if(g=A.children.indexOf(g),g<0)throw new Error("Expected child node or index");for(;++g<A.children.length;)if(R(A.children[g],g,A))return A.children[g]},ze=function(A,g,S,R,Y){const se=Ee(g);if(S!=null&&(typeof S!="number"||S<0||S===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite `index`");if(R!=null&&(!R.type||!R.children))throw new Error("Expected valid `parent`");if(S==null!=(R==null))throw new Error("Expected both `index` and `parent`");return te(A)?se.call(Y,A,S,R):!1},Ee=function(A){if(A==null)return Ne;if(typeof A=="string")return we(A);if(typeof A=="object")return fe(A);if(typeof A=="function")return pe(A);throw new Error("Expected function, string, or array as `test`")};function fe(A){const g=[];let S=-1;for(;++S<A.length;)g[S]=Ee(A[S]);return pe(R);function R(...Y){let se=-1;for(;++se<g.length;)if(g[se].apply(this,Y))return!0;return!1}}function we(A){return pe(g);function g(S){return S.tagName===A}}function pe(A){return g;function g(S,R,Y){return!!(te(S)&&A.call(this,S,typeof R=="number"?R:void 0,Y||void 0))}}function Ne(A){return!!(A&&typeof A=="object"&&"type"in A&&A.type==="element"&&"tagName"in A&&typeof A.tagName=="string")}function te(A){return A!==null&&typeof A=="object"&&"type"in A&&"tagName"in A}const Ae=/\n/g,Te=/[\t ]+/g,$e=Ee("br"),Qe=Ee(Ot),Je=Ee("p"),Ce=Ee("tr"),dt=Ee(["datalist","head","noembed","noframes","noscript","rp","script","style","template","title",H,Kt]),Xe=Ee(["address","article","aside","blockquote","body","caption","center","dd","dialog","dir","dl","dt","div","figure","figcaption","footer","form,","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","legend","li","listing","main","menu","nav","ol","p","plaintext","pre","section","ul","xmp"]);function $t(A,g){const S=g||{},R="children"in A?A.children:[],Y=Xe(A),se=oe(A,{whitespace:S.whitespace||"normal",breakBefore:!1,breakAfter:!1}),Z=[];(A.type==="text"||A.type==="comment")&&Z.push(...St(A,{whitespace:se,breakBefore:!0,breakAfter:!0}));let rt=-1;for(;++rt<R.length;)Z.push(...xt(R[rt],A,{whitespace:se,breakBefore:rt?void 0:Y,breakAfter:rt<R.length-1?$e(R[rt+1]):Y}));const lt=[];let pn;for(rt=-1;++rt<Z.length;){const On=Z[rt];typeof On=="number"?pn!==void 0&&On>pn&&(pn=On):On&&(pn!==void 0&&pn>-1&<.push(`
|
|
|
`.repeat(pn)||" "),pn=-1,lt.push(On))}return lt.join("")}function xt(A,g,S){return A.type==="element"?At(A,g,S):A.type==="text"?S.whitespace==="normal"?St(A,S):Cn(A):[]}function At(A,g,S){const R=oe(A,S),Y=A.children||[];let se=-1,Z=[];if(dt(A))return Z;let rt,lt;for($e(A)||Ce(A)&&Pe(g,A,Ce)?lt=`
|
|
|
`:Je(A)?(rt=2,lt=2):Xe(A)&&(rt=1,lt=1);++se<Y.length;)Z=Z.concat(xt(Y[se],A,{whitespace:R,breakBefore:se?void 0:rt,breakAfter:se<Y.length-1?$e(Y[se+1]):lt}));return Qe(A)&&Pe(g,A,Qe)&&Z.push(" "),rt&&Z.unshift(rt),lt&&Z.push(lt),Z}function St(A,g){const S=String(A.value),R=[],Y=[];let se=0;for(;se<=S.length;){Ae.lastIndex=se;const lt=Ae.exec(S),pn=lt&&"index"in lt?lt.index:S.length;R.push(Ye(S.slice(se,pn).replace(/[\u061C\u200E\u200F\u202A-\u202E\u2066-\u2069]/g,""),se===0?g.breakBefore:!0,pn===S.length?g.breakAfter:!0)),se=pn+1}let Z=-1,rt;for(;++Z<R.length;)R[Z].charCodeAt(R[Z].length-1)===8203||Z<R.length-1&&R[Z+1].charCodeAt(0)===8203?(Y.push(R[Z]),rt=void 0):R[Z]?(typeof rt=="number"&&Y.push(rt),Y.push(R[Z]),rt=0):(Z===0||Z===R.length-1)&&Y.push(0);return Y}function Cn(A){return[String(A.value)]}function Ye(A,g,S){const R=[];let Y=0,se;for(;Y<A.length;){Te.lastIndex=Y;const Z=Te.exec(A);se=Z?Z.index:A.length,!Y&&!se&&Z&&!g&&R.push(""),Y!==se&&R.push(A.slice(Y,se)),Y=Z?se+Z[0].length:se}return Y!==se&&!S&&R.push(""),R.join(" ")}function oe(A,g){if(A.type==="element"){const S=A.properties||{};switch(A.tagName){case"listing":case"plaintext":case"xmp":return"pre";case"nobr":return"nowrap";case"pre":return S.wrap?"pre-wrap":"pre";case"td":case"th":return S.noWrap?"nowrap":g.whitespace;case"textarea":return"pre-wrap";default:}}return g.whitespace}function H(A){return!!(A.properties||{}).hidden}function Ot(A){return A.tagName==="td"||A.tagName==="th"}function Kt(A){return A.tagName==="dialog"&&!(A.properties||{}).open}class vt{constructor(g,S,R){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=g,this.start=S,this.end=R}static range(g,S){return S?!g||!g.loc||!S.loc||g.loc.lexer!==S.loc.lexer?null:new vt(g.loc.lexer,g.loc.start,S.loc.end):g&&g.loc}}class hn{constructor(g,S){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=g,this.loc=S}range(g,S){return new hn(S,vt.range(this,g))}}class Rt{constructor(g,S){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var R="KaTeX parse error: "+g,Y,se,Z=S&&S.loc;if(Z&&Z.start<=Z.end){var rt=Z.lexer.input;Y=Z.start,se=Z.end,Y===rt.length?R+=" at end of input: ":R+=" at position "+(Y+1)+": ";var lt=rt.slice(Y,se).replace(/[^]/g,"$&\u0332"),pn;Y>15?pn="\u2026"+rt.slice(Y-15,Y):pn=rt.slice(0,Y);var On;se+15<rt.length?On=rt.slice(se,se+15)+"\u2026":On=rt.slice(se),R+=pn+lt+On}var Yn=new Error(R);return Yn.name="ParseError",Yn.__proto__=Rt.prototype,Yn.position=Y,Y!=null&&se!=null&&(Yn.length=se-Y),Yn.rawMessage=g,Yn}}Rt.prototype.__proto__=Error.prototype;var hi=function(g,S){return g.indexOf(S)!==-1},yt=function(g,S){return g===void 0?S:g},si=/([A-Z])/g,qn=function(g){return g.replace(si,"-$1").toLowerCase()},ln={"&":"&",">":">","<":"<",'"':""","'":"'"},Tn=/[&><"']/g;function xe(A){return String(A).replace(Tn,g=>ln[g])}var D=function A(g){return g.type==="ordgroup"||g.type==="color"?g.body.length===1?A(g.body[0]):g:g.type==="font"?A(g.body):g},k=function(g){var S=D(g);return S.type==="mathord"||S.type==="textord"||S.type==="atom"},G=function(g){if(!g)throw new Error("Expected non-null, but got "+String(g));return g},X=function(g){var S=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(g);return S?S[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(S[1])?null:S[1].toLowerCase():"_relative"},T={contains:hi,deflt:yt,escape:xe,hyphenate:qn,getBaseElem:D,isCharacterBox:k,protocolFromUrl:X},Re={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format <type>"},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color <color>",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:A=>"#"+A},macros:{type:"object",cli:"-m, --macro <def>",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(A,g)=>(g.push(A),g)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:A=>Math.max(0,A),cli:"--min-rule-thickness <size>",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:A=>Math.max(0,A),cli:"-s, --max-size <n>",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:A=>Math.max(0,A),cli:"-e, --max-expand <n>",cliProcessor:A=>A==="Infinity"?1/0:parseInt(A)},globalGroup:{type:"boolean",cli:!1}};function mt(A){if(A.default)return A.default;var g=A.type,S=Array.isArray(g)?g[0]:g;if(typeof S!="string")return S.enum[0];switch(S){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class _e{constructor(g){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,g=g||{};for(var S in Re)if(Re.hasOwnProperty(S)){var R=Re[S];this[S]=g[S]!==void 0?R.processor?R.processor(g[S]):g[S]:mt(R)}}reportNonstrict(g,S,R){var Y=this.strict;if(typeof Y=="function"&&(Y=Y(g,S,R)),!(!Y||Y==="ignore")){if(Y===!0||Y==="error")throw new Rt("LaTeX-incompatible input and strict mode is set to 'error': "+(S+" ["+g+"]"),R);Y==="warn"?typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(S+" ["+g+"]")):typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Y+"': "+S+" ["+g+"]"))}}useStrictBehavior(g,S,R){var Y=this.strict;if(typeof Y=="function")try{Y=Y(g,S,R)}catch(se){Y="error"}return!Y||Y==="ignore"?!1:Y===!0||Y==="error"?!0:Y==="warn"?(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(S+" ["+g+"]")),!1):(typeof console!="undefined"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+Y+"': "+S+" ["+g+"]")),!1)}isTrusted(g){if(g.url&&!g.protocol){var S=T.protocolFromUrl(g.url);if(S==null)return!1;g.protocol=S}var R=typeof this.trust=="function"?this.trust(g):this.trust;return!!R}}class Le{constructor(g,S,R){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=g,this.size=S,this.cramped=R}sup(){return vn[We[this.id]]}sub(){return vn[Dt[this.id]]}fracNum(){return vn[Qt[this.id]]}fracDen(){return vn[bn[this.id]]}cramp(){return vn[$n[this.id]]}text(){return vn[Un[this.id]]}isTight(){return this.size>=2}}var ct=0,ot=1,Ze=2,Et=3,Gt=4,Vt=5,Pt=6,nn=7,vn=[new Le(ct,0,!1),new Le(ot,0,!0),new Le(Ze,1,!1),new Le(Et,1,!0),new Le(Gt,2,!1),new Le(Vt,2,!0),new Le(Pt,3,!1),new Le(nn,3,!0)],We=[Gt,Vt,Gt,Vt,Pt,nn,Pt,nn],Dt=[Vt,Vt,Vt,Vt,nn,nn,nn,nn],Qt=[Ze,Et,Gt,Vt,Pt,nn,Pt,nn],bn=[Et,Et,Vt,Vt,nn,nn,nn,nn],$n=[ot,ot,Et,Et,Vt,Vt,nn,nn],Un=[ct,ot,Ze,Et,Ze,Et,Ze,Et],kt={DISPLAY:vn[ct],TEXT:vn[Ze],SCRIPT:vn[Gt],SCRIPTSCRIPT:vn[Pt]},Hn=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Jn(A){for(var g=0;g<Hn.length;g++)for(var S=Hn[g],R=0;R<S.blocks.length;R++){var Y=S.blocks[R];if(A>=Y[0]&&A<=Y[1])return S.name}return null}var tt=[];Hn.forEach(A=>A.blocks.forEach(g=>tt.push(...g)));function j(A){for(var g=0;g<tt.length;g+=2)if(A>=tt[g]&&A<=tt[g+1])return!0;return!1}var Oi=80,tr=function(g,S){return"M95,"+(622+g+S)+`
|
|
|
c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14
|
|
|
c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54
|
|
|
c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10
|
|
|
s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429
|
|
|
c69,-144,104.5,-217.7,106.5,-221
|
|
|
l`+g/2.075+" -"+g+`
|
|
|
c5.3,-9.3,12,-14,20,-14
|
|
|
H400000v`+(40+g)+`H845.2724
|
|
|
s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7
|
|
|
c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z
|
|
|
M`+(834+g)+" "+S+"h400000v"+(40+g)+"h-400000z"},Gn=function(g,S){return"M263,"+(601+g+S)+`c0.7,0,18,39.7,52,119
|
|
|
c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120
|
|
|
c340,-704.7,510.7,-1060.3,512,-1067
|
|
|
l`+g/2.084+" -"+g+`
|
|
|
c4.7,-7.3,11,-11,19,-11
|
|
|
H40000v`+(40+g)+`H1012.3
|
|
|
s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232
|
|
|
c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1
|
|
|
s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26
|
|
|
c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z
|
|
|
M`+(1001+g)+" "+S+"h400000v"+(40+g)+"h-400000z"},Ti=function(g,S){return"M983 "+(10+g+S)+`
|
|
|
l`+g/3.13+" -"+g+`
|
|
|
c4,-6.7,10,-10,18,-10 H400000v`+(40+g)+`
|
|
|
H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7
|
|
|
s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744
|
|
|
c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30
|
|
|
c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722
|
|
|
c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5
|
|
|
c53.7,-170.3,84.5,-266.8,92.5,-289.5z
|
|
|
M`+(1001+g)+" "+S+"h400000v"+(40+g)+"h-400000z"},Er=function(g,S){return"M424,"+(2398+g+S)+`
|
|
|
c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514
|
|
|
c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20
|
|
|
s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121
|
|
|
s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081
|
|
|
l`+g/4.223+" -"+g+`c4,-6.7,10,-10,18,-10 H400000
|
|
|
v`+(40+g)+`H1014.6
|
|
|
s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185
|
|
|
c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2z M`+(1001+g)+" "+S+`
|
|
|
h400000v`+(40+g)+"h-400000z"},Zi=function(g,S){return"M473,"+(2713+g+S)+`
|
|
|
c339.3,-1799.3,509.3,-2700,510,-2702 l`+g/5.298+" -"+g+`
|
|
|
c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+g)+`H1017.7
|
|
|
s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9
|
|
|
c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200
|
|
|
c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26
|
|
|
s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104,
|
|
|
606zM`+(1001+g)+" "+S+"h400000v"+(40+g)+"H1017.7z"},_=function(g){var S=g/2;return"M400000 "+g+" H0 L"+S+" 0 l65 45 L145 "+(g-80)+" H400000z"},ht=function(g,S,R){var Y=R-54-S-g;return"M702 "+(g+S)+"H400000"+(40+g)+`
|
|
|
H742v`+Y+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1
|
|
|
h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170
|
|
|
c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667
|
|
|
219 661 l218 661zM702 `+S+"H400000v"+(40+g)+"H742z"},_i=function(g,S,R){S=1e3*S;var Y="";switch(g){case"sqrtMain":Y=tr(S,Oi);break;case"sqrtSize1":Y=Gn(S,Oi);break;case"sqrtSize2":Y=Ti(S,Oi);break;case"sqrtSize3":Y=Er(S,Oi);break;case"sqrtSize4":Y=Zi(S,Oi);break;case"sqrtTall":Y=ht(S,Oi,R)}return Y},Rr=function(g,S){switch(g){case"\u239C":return"M291 0 H417 V"+S+" H291z M291 0 H417 V"+S+" H291z";case"\u2223":return"M145 0 H188 V"+S+" H145z M145 0 H188 V"+S+" H145z";case"\u2225":return"M145 0 H188 V"+S+" H145z M145 0 H188 V"+S+" H145z"+("M367 0 H410 V"+S+" H367z M367 0 H410 V"+S+" H367z");case"\u239F":return"M457 0 H583 V"+S+" H457z M457 0 H583 V"+S+" H457z";case"\u23A2":return"M319 0 H403 V"+S+" H319z M319 0 H403 V"+S+" H319z";case"\u23A5":return"M263 0 H347 V"+S+" H263z M263 0 H347 V"+S+" H263z";case"\u23AA":return"M384 0 H504 V"+S+" H384z M384 0 H504 V"+S+" H384z";case"\u23D0":return"M312 0 H355 V"+S+" H312z M312 0 H355 V"+S+" H312z";case"\u2016":return"M257 0 H300 V"+S+" H257z M257 0 H300 V"+S+" H257z"+("M478 0 H521 V"+S+" H478z M478 0 H521 V"+S+" H478z");default:return""}},Ar={doubleleftarrow:`M262 157
|
|
|
l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3
|
|
|
0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28
|
|
|
14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5
|
|
|
c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5
|
|
|
157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87
|
|
|
-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7
|
|
|
-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z
|
|
|
m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l
|
|
|
-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5
|
|
|
14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88
|
|
|
-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68
|
|
|
-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18
|
|
|
-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782
|
|
|
c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3
|
|
|
-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120
|
|
|
135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8
|
|
|
-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247
|
|
|
c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208
|
|
|
490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3
|
|
|
1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202
|
|
|
l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117
|
|
|
-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7
|
|
|
5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13
|
|
|
35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688
|
|
|
0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7
|
|
|
-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80
|
|
|
H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0
|
|
|
435 0h399565z`,leftgroupunder:`M400000 262
|
|
|
H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219
|
|
|
435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3
|
|
|
-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5
|
|
|
-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7
|
|
|
-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5
|
|
|
20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3
|
|
|
-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7
|
|
|
-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z
|
|
|
m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333
|
|
|
5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5
|
|
|
1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667
|
|
|
-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12
|
|
|
10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7
|
|
|
-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0
|
|
|
v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5
|
|
|
-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3
|
|
|
-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21
|
|
|
71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z
|
|
|
M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z
|
|
|
M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23
|
|
|
-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8
|
|
|
c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3
|
|
|
68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z
|
|
|
M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334
|
|
|
c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14
|
|
|
-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7
|
|
|
311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11
|
|
|
12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214
|
|
|
c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14
|
|
|
53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3
|
|
|
11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0
|
|
|
-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6
|
|
|
-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z
|
|
|
m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8
|
|
|
60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8
|
|
|
-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z
|
|
|
m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2
|
|
|
c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6
|
|
|
-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z
|
|
|
m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0
|
|
|
85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8
|
|
|
-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z
|
|
|
m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1
|
|
|
c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128
|
|
|
-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20
|
|
|
11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7
|
|
|
39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85
|
|
|
-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l
|
|
|
-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5
|
|
|
s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1
|
|
|
c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3
|
|
|
28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237
|
|
|
-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0
|
|
|
3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18
|
|
|
0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3
|
|
|
-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2
|
|
|
-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58
|
|
|
69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11
|
|
|
-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7
|
|
|
2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z
|
|
|
m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8
|
|
|
8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5
|
|
|
-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95
|
|
|
-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8
|
|
|
15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3
|
|
|
8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3
|
|
|
-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z
|
|
|
m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3
|
|
|
15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0
|
|
|
-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21
|
|
|
66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z
|
|
|
M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23
|
|
|
1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32
|
|
|
-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142
|
|
|
-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40
|
|
|
115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69
|
|
|
-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3
|
|
|
-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19
|
|
|
-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101
|
|
|
10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167
|
|
|
c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3
|
|
|
41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42
|
|
|
18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333
|
|
|
-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70
|
|
|
101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7
|
|
|
-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0
|
|
|
114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0
|
|
|
4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128
|
|
|
-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418
|
|
|
-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9
|
|
|
31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114
|
|
|
c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751
|
|
|
181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457
|
|
|
-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0
|
|
|
411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697
|
|
|
16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696
|
|
|
-338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345
|
|
|
-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409
|
|
|
177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9
|
|
|
14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409
|
|
|
-175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5
|
|
|
3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11
|
|
|
10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63
|
|
|
-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1
|
|
|
-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59
|
|
|
H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359
|
|
|
c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22
|
|
|
c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10
|
|
|
-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1,
|
|
|
-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10,
|
|
|
-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202
|
|
|
c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5
|
|
|
c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130
|
|
|
s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47
|
|
|
121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6
|
|
|
s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11
|
|
|
c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z
|
|
|
M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32
|
|
|
-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0
|
|
|
13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39
|
|
|
-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5
|
|
|
-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5
|
|
|
-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67
|
|
|
151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17
|
|
|
c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21
|
|
|
c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40
|
|
|
c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z
|
|
|
M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11
|
|
|
c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9,
|
|
|
1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7,
|
|
|
-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z
|
|
|
M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0
|
|
|
c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199,
|
|
|
-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6
|
|
|
c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z
|
|
|
M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Yr=function(g,S){switch(g){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+S+` v1759 h347 v-84
|
|
|
H403z M403 1759 V0 H319 V1759 v`+S+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+S+` v1759 H0 v84 H347z
|
|
|
M347 1759 V0 H263 V1759 v`+S+" v1759 h84z";case"vert":return"M145 15 v585 v"+S+` v585 c2.667,10,9.667,15,21,15
|
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-S+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+S+" v585 h43z";case"doublevert":return"M145 15 v585 v"+S+` v585 c2.667,10,9.667,15,21,15
|
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-S+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
|
c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+S+` v585 h43z
|
|
|
M367 15 v585 v`+S+` v585 c2.667,10,9.667,15,21,15
|
|
|
c10,0,16.667,-5,20,-15 v-585 v`+-S+` v-585 c-2.667,-10,-9.667,-15,-21,-15
|
|
|
c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+S+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+S+` v1715 h263 v84 H319z
|
|
|
MM319 602 V0 H403 V602 v`+S+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+S+` v1799 H0 v-84 H319z
|
|
|
MM319 602 V0 H403 V602 v`+S+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+S+` v602 h84z
|
|
|
M403 1759 V0 H319 V1759 v`+S+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+S+` v602 h84z
|
|
|
M347 1759 V0 h-84 V1759 v`+S+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1
|
|
|
c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349,
|
|
|
-36,557 l0,`+(S+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210,
|
|
|
949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9
|
|
|
c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5,
|
|
|
-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189
|
|
|
l0,-`+(S+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3,
|
|
|
-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3,
|
|
|
63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5
|
|
|
c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(S+9)+`
|
|
|
c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664
|
|
|
c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11
|
|
|
c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17
|
|
|
c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558
|
|
|
l0,-`+(S+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7,
|
|
|
-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};class Dr{constructor(g){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=g,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(g){return T.contains(this.classes,g)}toNode(){for(var g=document.createDocumentFragment(),S=0;S<this.children.length;S++)g.appendChild(this.children[S].toNode());return g}toMarkup(){for(var g="",S=0;S<this.children.length;S++)g+=this.children[S].toMarkup();return g}toText(){var g=S=>S.toText();return this.children.map(g).join("")}}var Hr={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},dr={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Vi={\u00C5:"A",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function fi(A,g){Hr[A]=g}function at(A,g,S){if(!Hr[g])throw new Error("Font metrics not found for font: "+g+".");var R=A.charCodeAt(0),Y=Hr[g][R];if(!Y&&A[0]in Vi&&(R=Vi[A[0]].charCodeAt(0),Y=Hr[g][R]),!Y&&S==="text"&&j(R)&&(Y=Hr[g][77]),Y)return{depth:Y[0],height:Y[1],italic:Y[2],skew:Y[3],width:Y[4]}}var Fn={};function Qn(A){var g;if(A>=5?g=0:A>=3?g=1:g=2,!Fn[g]){var S=Fn[g]={cssEmPerMu:dr.quad[g]/18};for(var R in dr)dr.hasOwnProperty(R)&&(S[R]=dr[R][g])}return Fn[g]}var ft=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],je=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],sn=function(g,S){return S.size<2?g:ft[g-1][S.size-1]};class In{constructor(g){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=g.style,this.color=g.color,this.size=g.size||In.BASESIZE,this.textSize=g.textSize||this.size,this.phantom=!!g.phantom,this.font=g.font||"",this.fontFamily=g.fontFamily||"",this.fontWeight=g.fontWeight||"",this.fontShape=g.fontShape||"",this.sizeMultiplier=je[this.size-1],this.maxSize=g.maxSize,this.minRuleThickness=g.minRuleThickness,this._fontMetrics=void 0}extend(g){var S={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var R in g)g.hasOwnProperty(R)&&(S[R]=g[R]);return new In(S)}havingStyle(g){return this.style===g?this:this.extend({style:g,size:sn(this.textSize,g)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(g){return this.size===g&&this.textSize===g?this:this.extend({style:this.style.text(),size:g,textSize:g,sizeMultiplier:je[g-1]})}havingBaseStyle(g){g=g||this.style.text();var S=sn(In.BASESIZE,g);return this.size===S&&this.textSize===In.BASESIZE&&this.style===g?this:this.extend({style:g,size:S})}havingBaseSizing(){var g;switch(this.style.id){case 4:case 5:g=3;break;case 6:case 7:g=1;break;default:g=6}return this.extend({style:this.style.text(),size:g})}withColor(g){return this.extend({color:g})}withPhantom(){return this.extend({phantom:!0})}withFont(g){return this.extend({font:g})}withTextFontFamily(g){return this.extend({fontFamily:g,font:""})}withTextFontWeight(g){return this.extend({fontWeight:g,font:""})}withTextFontShape(g){return this.extend({fontShape:g,font:""})}sizingClasses(g){return g.size!==this.size?["sizing","reset-size"+g.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==In.BASESIZE?["sizing","reset-size"+this.size,"size"+In.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=Qn(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}In.BASESIZE=6;var ni={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Kn={ex:!0,em:!0,mu:!0},ut=function(g){return typeof g!="string"&&(g=g.unit),g in ni||g in Kn||g==="ex"},yn=function(g,S){var R;if(g.unit in ni)R=ni[g.unit]/S.fontMetrics().ptPerEm/S.sizeMultiplier;else if(g.unit==="mu")R=S.fontMetrics().cssEmPerMu;else{var Y;if(S.style.isTight()?Y=S.havingStyle(S.style.text()):Y=S,g.unit==="ex")R=Y.fontMetrics().xHeight;else if(g.unit==="em")R=Y.fontMetrics().quad;else throw new Rt("Invalid unit: '"+g.unit+"'");Y!==S&&(R*=Y.sizeMultiplier/S.sizeMultiplier)}return Math.min(g.number*R,S.maxSize)},rn=function(g){return+g.toFixed(4)+"em"},Si=function(g){return g.filter(S=>S).join(" ")},Zt=function(g,S,R){if(this.classes=g||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=R||{},S){S.style.isTight()&&this.classes.push("mtight");var Y=S.getColor();Y&&(this.style.color=Y)}},_n=function(g){var S=document.createElement(g);S.className=Si(this.classes);for(var R in this.style)this.style.hasOwnProperty(R)&&(S.style[R]=this.style[R]);for(var Y in this.attributes)this.attributes.hasOwnProperty(Y)&&S.setAttribute(Y,this.attributes[Y]);for(var se=0;se<this.children.length;se++)S.appendChild(this.children[se].toNode());return S},Mt=/[\s"'>/=\x00-\x1f]/,Jt=function(g){var S="<"+g;this.classes.length&&(S+=' class="'+T.escape(Si(this.classes))+'"');var R="";for(var Y in this.style)this.style.hasOwnProperty(Y)&&(R+=T.hyphenate(Y)+":"+this.style[Y]+";");R&&(S+=' style="'+T.escape(R)+'"');for(var se in this.attributes)if(this.attributes.hasOwnProperty(se)){if(Mt.test(se))throw new Rt("Invalid attribute name '"+se+"'");S+=" "+se+'="'+T.escape(this.attributes[se])+'"'}S+=">";for(var Z=0;Z<this.children.length;Z++)S+=this.children[Z].toMarkup();return S+="</"+g+">",S};class on{constructor(g,S,R,Y){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Zt.call(this,g,R,Y),this.children=S||[]}setAttribute(g,S){this.attributes[g]=S}hasClass(g){return T.contains(this.classes,g)}toNode(){return _n.call(this,"span")}toMarkup(){return Jt.call(this,"span")}}class jt{constructor(g,S,R,Y){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Zt.call(this,S,Y),this.children=R||[],this.setAttribute("href",g)}setAttribute(g,S){this.attributes[g]=S}hasClass(g){return T.contains(this.classes,g)}toNode(){return _n.call(this,"a")}toMarkup(){return Jt.call(this,"a")}}class gn{constructor(g,S,R){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=S,this.src=g,this.classes=["mord"],this.style=R}hasClass(g){return T.contains(this.classes,g)}toNode(){var g=document.createElement("img");g.src=this.src,g.alt=this.alt,g.className="mord";for(var S in this.style)this.style.hasOwnProperty(S)&&(g.style[S]=this.style[S]);return g}toMarkup(){var g='<img src="'+T.escape(this.src)+'"'+(' alt="'+T.escape(this.alt)+'"'),S="";for(var R in this.style)this.style.hasOwnProperty(R)&&(S+=T.hyphenate(R)+":"+this.style[R]+";");return S&&(g+=' style="'+T.escape(S)+'"'),g+="'/>",g}}var fn={\u00EE:"\u0131\u0302",\u00EF:"\u0131\u0308",\u00ED:"\u0131\u0301",\u00EC:"\u0131\u0300"};class En{constructor(g,S,R,Y,se,Z,rt,lt){this.text=void 0,this.height=void 0,this.depth=void 0,this.italic=void 0,this.skew=void 0,this.width=void 0,this.maxFontSize=void 0,this.classes=void 0,this.style=void 0,this.text=g,this.height=S||0,this.depth=R||0,this.italic=Y||0,this.skew=se||0,this.width=Z||0,this.classes=rt||[],this.style=lt||{},this.maxFontSize=0;var pn=Jn(this.text.charCodeAt(0));pn&&this.classes.push(pn+"_fallback"),/[îïíì]/.test(this.text)&&(this.text=fn[this.text])}hasClass(g){return T.contains(this.classes,g)}toNode(){var g=document.createTextNode(this.text),S=null;this.italic>0&&(S=document.createElement("span"),S.style.marginRight=rn(this.italic)),this.classes.length>0&&(S=S||document.createElement("span"),S.className=Si(this.classes));for(var R in this.style)this.style.hasOwnProperty(R)&&(S=S||document.createElement("span"),S.style[R]=this.style[R]);return S?(S.appendChild(g),S):g}toMarkup(){var g=!1,S="<span";this.classes.length&&(g=!0,S+=' class="',S+=T.escape(Si(this.classes)),S+='"');var R="";this.italic>0&&(R+="margin-right:"+this.italic+"em;");for(var Y in this.style)this.style.hasOwnProperty(Y)&&(R+=T.hyphenate(Y)+":"+this.style[Y]+";");R&&(g=!0,S+=' style="'+T.escape(R)+'"');var se=T.escape(this.text);return g?(S+=">",S+=se,S+="</span>",S):se}}class Ln{constructor(g,S){this.children=void 0,this.attributes=void 0,this.children=g||[],this.attributes=S||{}}toNode(){var g="http://www.w3.org/2000/svg",S=document.createElementNS(g,"svg");for(var R in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,R)&&S.setAttribute(R,this.attributes[R]);for(var Y=0;Y<this.children.length;Y++)S.appendChild(this.children[Y].toNode());return S}toMarkup(){var g='<svg xmlns="http://www.w3.org/2000/svg"';for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&(g+=" "+S+'="'+T.escape(this.attributes[S])+'"');g+=">";for(var R=0;R<this.children.length;R++)g+=this.children[R].toMarkup();return g+="</svg>",g}}class Ai{constructor(g,S){this.pathName=void 0,this.alternate=void 0,this.pathName=g,this.alternate=S}toNode(){var g="http://www.w3.org/2000/svg",S=document.createElementNS(g,"path");return this.alternate?S.setAttribute("d",this.alternate):S.setAttribute("d",Ar[this.pathName]),S}toMarkup(){return this.alternate?'<path d="'+T.escape(this.alternate)+'"/>':'<path d="'+T.escape(Ar[this.pathName])+'"/>'}}class zn{constructor(g){this.attributes=void 0,this.attributes=g||{}}toNode(){var g="http://www.w3.org/2000/svg",S=document.createElementNS(g,"line");for(var R in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,R)&&S.setAttribute(R,this.attributes[R]);return S}toMarkup(){var g="<line";for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&(g+=" "+S+'="'+T.escape(this.attributes[S])+'"');return g+="/>",g}}function ki(A){if(A instanceof En)return A;throw new Error("Expected symbolNode but got "+String(A)+".")}function ir(A){if(A instanceof on)return A;throw new Error("Expected span<HtmlDomNode> but got "+String(A)+".")}var lr={bin:1,close:1,inner:1,open:1,punct:1,rel:1},qt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ki={math:{},text:{}};function ee(A,g,S,R,Y,se){Ki[A][Y]={font:g,group:S,replace:R},se&&R&&(Ki[A][R]=Ki[A][Y])}var ue="math",Zn="text",Be="main",wt="ams",Ni="accent-token",Dn="bin",Gi="close",Xt="inner",Ii="mathord",Yt="op-token",Wi="open",Zr="punct",It="rel",fo="spacing",tn="textord";ee(ue,Be,It,"\u2261","\\equiv",!0),ee(ue,Be,It,"\u227A","\\prec",!0),ee(ue,Be,It,"\u227B","\\succ",!0),ee(ue,Be,It,"\u223C","\\sim",!0),ee(ue,Be,It,"\u22A5","\\perp"),ee(ue,Be,It,"\u2AAF","\\preceq",!0),ee(ue,Be,It,"\u2AB0","\\succeq",!0),ee(ue,Be,It,"\u2243","\\simeq",!0),ee(ue,Be,It,"\u2223","\\mid",!0),ee(ue,Be,It,"\u226A","\\ll",!0),ee(ue,Be,It,"\u226B","\\gg",!0),ee(ue,Be,It,"\u224D","\\asymp",!0),ee(ue,Be,It,"\u2225","\\parallel"),ee(ue,Be,It,"\u22C8","\\bowtie",!0),ee(ue,Be,It,"\u2323","\\smile",!0),ee(ue,Be,It,"\u2291","\\sqsubseteq",!0),ee(ue,Be,It,"\u2292","\\sqsupseteq",!0),ee(ue,Be,It,"\u2250","\\doteq",!0),ee(ue,Be,It,"\u2322","\\frown",!0),ee(ue,Be,It,"\u220B","\\ni",!0),ee(ue,Be,It,"\u221D","\\propto",!0),ee(ue,Be,It,"\u22A2","\\vdash",!0),ee(ue,Be,It,"\u22A3","\\dashv",!0),ee(ue,Be,It,"\u220B","\\owns"),ee(ue,Be,Zr,".","\\ldotp"),ee(ue,Be,Zr,"\u22C5","\\cdotp"),ee(ue,Be,tn,"#","\\#"),ee(Zn,Be,tn,"#","\\#"),ee(ue,Be,tn,"&","\\&"),ee(Zn,Be,tn,"&","\\&"),ee(ue,Be,tn,"\u2135","\\aleph",!0),ee(ue,Be,tn,"\u2200","\\forall",!0),ee(ue,Be,tn,"\u210F","\\hbar",!0),ee(ue,Be,tn,"\u2203","\\exists",!0),ee(ue,Be,tn,"\u2207","\\nabla",!0),ee(ue,Be,tn,"\u266D","\\flat",!0),ee(ue,Be,tn,"\u2113","\\ell",!0),ee(ue,Be,tn,"\u266E","\\natural",!0),ee(ue,Be,tn,"\u2663","\\clubsuit",!0),ee(ue,Be,tn,"\u2118","\\wp",!0),ee(ue,Be,tn,"\u266F","\\sharp",!0),ee(ue,Be,tn,"\u2662","\\diamondsuit",!0),ee(ue,Be,tn,"\u211C","\\Re",!0),ee(ue,Be,tn,"\u2661","\\heartsuit",!0),ee(ue,Be,tn,"\u2111","\\Im",!0),ee(ue,Be,tn,"\u2660","\\spadesuit",!0),ee(ue,Be,tn,"\xA7","\\S",!0),ee(Zn,Be,tn,"\xA7","\\S"),ee(ue,Be,tn,"\xB6","\\P",!0),ee(Zn,Be,tn,"\xB6","\\P"),ee(ue,Be,tn,"\u2020","\\dag"),ee(Zn,Be,tn,"\u2020","\\dag"),ee(Zn,Be,tn,"\u2020","\\textdagger"),ee(ue,Be,tn,"\u2021","\\ddag"),ee(Zn,Be,tn,"\u2021","\\ddag"),ee(Zn,Be,tn,"\u2021","\\textdaggerdbl"),ee(ue,Be,Gi,"\u23B1","\\rmoustache",!0),ee(ue,Be,Wi,"\u23B0","\\lmoustache",!0),ee(ue,Be,Gi,"\u27EF","\\rgroup",!0),ee(ue,Be,Wi,"\u27EE","\\lgroup",!0),ee(ue,Be,Dn,"\u2213","\\mp",!0),ee(ue,Be,Dn,"\u2296","\\ominus",!0),ee(ue,Be,Dn,"\u228E","\\uplus",!0),ee(ue,Be,Dn,"\u2293","\\sqcap",!0),ee(ue,Be,Dn,"\u2217","\\ast"),ee(ue,Be,Dn,"\u2294","\\sqcup",!0),ee(ue,Be,Dn,"\u25EF","\\bigcirc",!0),ee(ue,Be,Dn,"\u2219","\\bullet",!0),ee(ue,Be,Dn,"\u2021","\\ddagger"),ee(ue,Be,Dn,"\u2240","\\wr",!0),ee(ue,Be,Dn,"\u2A3F","\\amalg"),ee(ue,Be,Dn,"&","\\And"),ee(ue,Be,It,"\u27F5","\\longleftarrow",!0),ee(ue,Be,It,"\u21D0","\\Leftarrow",!0),ee(ue,Be,It,"\u27F8","\\Longleftarrow",!0),ee(ue,Be,It,"\u27F6","\\longrightarrow",!0),ee(ue,Be,It,"\u21D2","\\Rightarrow",!0),ee(ue,Be,It,"\u27F9","\\Longrightarrow",!0),ee(ue,Be,It,"\u2194","\\leftrightarrow",!0),ee(ue,Be,It,"\u27F7","\\longleftrightarrow",!0),ee(ue,Be,It,"\u21D4","\\Leftrightarrow",!0),ee(ue,Be,It,"\u27FA","\\Longleftrightarrow",!0),ee(ue,Be,It,"\u21A6","\\mapsto",!0),ee(ue,Be,It,"\u27FC","\\longmapsto",!0),ee(ue,Be,It,"\u2197","\\nearrow",!0),ee(ue,Be,It,"\u21A9","\\hookleftarrow",!0),ee(ue,Be,It,"\u21AA","\\hookrightarrow",!0),ee(ue,Be,It,"\u2198","\\searrow",!0),ee(ue,Be,It,"\u21BC","\\leftharpoonup",!0),ee(ue,Be,It,"\u21C0","\\rightharpoonup",!0),ee(ue,Be,It,"\u2199","\\swarrow",!0),ee(ue,Be,It,"\u21BD","\\leftharpoondown",!0),ee(ue,Be,It,"\u21C1","\\rightharpoondown",!0),ee(ue,Be,It,"\u2196","\\nwarrow",!0),ee(ue,Be,It,"\u21CC","\\rightleftharpoons",!0),ee(ue,wt,It,"\u226E","\\nless",!0),ee(ue,wt,It,"\uE010","\\@nleqslant"),ee(ue,wt,It,"\uE011","\\@nleqq"),ee(ue,wt,It,"\u2A87","\\lneq",!0),ee(ue,wt,It,"\u2268","\\lneqq",!0),ee(ue,wt,It,"\uE00C","\\@lvertneqq"),ee(ue,wt,It,"\u22E6","\\lnsim",!0),ee(ue,wt,It,"\u2A89","\\lnapprox",!0),ee(ue,wt,It,"\u2280","\\nprec",!0),ee(ue,wt,It,"\u22E0","\\npreceq",!0),ee(ue,wt,It,"\u22E8","\\precnsim",!0),ee(ue,wt,It,"\u2AB9","\\precnapprox",!0),ee(ue,wt,It,"\u2241","\\nsim",!0),ee(ue,wt,It,"\uE006","\\@nshortmid"),ee(ue,wt,It,"\u2224","\\nmid",!0),ee(ue,wt,It,"\u22AC","\\nvdash",!0),ee(ue,wt,It,"\u22AD","\\nvDash",!0),ee(ue,wt,It,"\u22EA","\\ntriangleleft"),ee(ue,wt,It,"\u22EC","\\ntrianglelefteq",!0),ee(ue,wt,It,"\u228A","\\subsetneq",!0),ee(ue,wt,It,"\uE01A","\\@varsubsetneq"),ee(ue,wt,It,"\u2ACB","\\subsetneqq",!0),ee(ue,wt,It,"\uE017","\\@varsubsetneqq"),ee(ue,wt,It,"\u226F","\\ngtr",!0),ee(ue,wt,It,"\uE00F","\\@ngeqslant"),ee(ue,wt,It,"\uE00E","\\@ngeqq"),ee(ue,wt,It,"\u2A88","\\gneq",!0),ee(ue,wt,It,"\u2269","\\gneqq",!0),ee(ue,wt,It,"\uE00D","\\@gvertneqq"),ee(ue,wt,It,"\u22E7","\\gnsim",!0),ee(ue,wt,It,"\u2A8A","\\gnapprox",!0),ee(ue,wt,It,"\u2281","\\nsucc",!0),ee(ue,wt,It,"\u22E1","\\nsucceq",!0),ee(ue,wt,It,"\u22E9","\\succnsim",!0),ee(ue,wt,It,"\u2ABA","\\succnapprox",!0),ee(ue,wt,It,"\u2246","\\ncong",!0),ee(ue,wt,It,"\uE007","\\@nshortparallel"),ee(ue,wt,It,"\u2226","\\nparallel",!0),ee(ue,wt,It,"\u22AF","\\nVDash",!0),ee(ue,wt,It,"\u22EB","\\ntriangleright"),ee(ue,wt,It,"\u22ED","\\ntrianglerighteq",!0),ee(ue,wt,It,"\uE018","\\@nsupseteqq"),ee(ue,wt,It,"\u228B","\\supsetneq",!0),ee(ue,wt,It,"\uE01B","\\@varsupsetneq"),ee(ue,wt,It,"\u2ACC","\\supsetneqq",!0),ee(ue,wt,It,"\uE019","\\@varsupsetneqq"),ee(ue,wt,It,"\u22AE","\\nVdash",!0),ee(ue,wt,It,"\u2AB5","\\precneqq",!0),ee(ue,wt,It,"\u2AB6","\\succneqq",!0),ee(ue,wt,It,"\uE016","\\@nsubseteqq"),ee(ue,wt,Dn,"\u22B4","\\unlhd"),ee(ue,wt,Dn,"\u22B5","\\unrhd"),ee(ue,wt,It,"\u219A","\\nleftarrow",!0),ee(ue,wt,It,"\u219B","\\nrightarrow",!0),ee(ue,wt,It,"\u21CD","\\nLeftarrow",!0),ee(ue,wt,It,"\u21CF","\\nRightarrow",!0),ee(ue,wt,It,"\u21AE","\\nleftrightarrow",!0),ee(ue,wt,It,"\u21CE","\\nLeftrightarrow",!0),ee(ue,wt,It,"\u25B3","\\vartriangle"),ee(ue,wt,tn,"\u210F","\\hslash"),ee(ue,wt,tn,"\u25BD","\\triangledown"),ee(ue,wt,tn,"\u25CA","\\lozenge"),ee(ue,wt,tn,"\u24C8","\\circledS"),ee(ue,wt,tn,"\xAE","\\circledR"),ee(Zn,wt,tn,"\xAE","\\circledR"),ee(ue,wt,tn,"\u2221","\\measuredangle",!0),ee(ue,wt,tn,"\u2204","\\nexists"),ee(ue,wt,tn,"\u2127","\\mho"),ee(ue,wt,tn,"\u2132","\\Finv",!0),ee(ue,wt,tn,"\u2141","\\Game",!0),ee(ue,wt,tn,"\u2035","\\backprime"),ee(ue,wt,tn,"\u25B2","\\blacktriangle"),ee(ue,wt,tn,"\u25BC","\\blacktriangledown"),ee(ue,wt,tn,"\u25A0","\\blacksquare"),ee(ue,wt,tn,"\u29EB","\\blacklozenge"),ee(ue,wt,tn,"\u2605","\\bigstar"),ee(ue,wt,tn,"\u2222","\\sphericalangle",!0),ee(ue,wt,tn,"\u2201","\\complement",!0),ee(ue,wt,tn,"\xF0","\\eth",!0),ee(Zn,Be,tn,"\xF0","\xF0"),ee(ue,wt,tn,"\u2571","\\diagup"),ee(ue,wt,tn,"\u2572","\\diagdown"),ee(ue,wt,tn,"\u25A1","\\square"),ee(ue,wt,tn,"\u25A1","\\Box"),ee(ue,wt,tn,"\u25CA","\\Diamond"),ee(ue,wt,tn,"\xA5","\\yen",!0),ee(Zn,wt,tn,"\xA5","\\yen",!0),ee(ue,wt,tn,"\u2713","\\checkmark",!0),ee(Zn,wt,tn,"\u2713","\\checkmark"),ee(ue,wt,tn,"\u2136","\\beth",!0),ee(ue,wt,tn,"\u2138","\\daleth",!0),ee(ue,wt,tn,"\u2137","\\gimel",!0),ee(ue,wt,tn,"\u03DD","\\digamma",!0),ee(ue,wt,tn,"\u03F0","\\varkappa"),ee(ue,wt,Wi,"\u250C","\\@ulcorner",!0),ee(ue,wt,Gi,"\u2510","\\@urcorner",!0),ee(ue,wt,Wi,"\u2514","\\@llcorner",!0),ee(ue,wt,Gi,"\u2518","\\@lrcorner",!0),ee(ue,wt,It,"\u2266","\\leqq",!0),ee(ue,wt,It,"\u2A7D","\\leqslant",!0),ee(ue,wt,It,"\u2A95","\\eqslantless",!0),ee(ue,wt,It,"\u2272","\\lesssim",!0),ee(ue,wt,It,"\u2A85","\\lessapprox",!0),ee(ue,wt,It,"\u224A","\\approxeq",!0),ee(ue,wt,Dn,"\u22D6","\\lessdot"),ee(ue,wt,It,"\u22D8","\\lll",!0),ee(ue,wt,It,"\u2276","\\lessgtr",!0),ee(ue,wt,It,"\u22DA","\\lesseqgtr",!0),ee(ue,wt,It,"\u2A8B","\\lesseqqgtr",!0),ee(ue,wt,It,"\u2251","\\doteqdot"),ee(ue,wt,It,"\u2253","\\risingdotseq",!0),ee(ue,wt,It,"\u2252","\\fallingdotseq",!0),ee(ue,wt,It,"\u223D","\\backsim",!0),ee(ue,wt,It,"\u22CD","\\backsimeq",!0),ee(ue,wt,It,"\u2AC5","\\subseteqq",!0),ee(ue,wt,It,"\u22D0","\\Subset",!0),ee(ue,wt,It,"\u228F","\\sqsubset",!0),ee(ue,wt,It,"\u227C","\\preccurlyeq",!0),ee(ue,wt,It,"\u22DE","\\curlyeqprec",!0),ee(ue,wt,It,"\u227E","\\precsim",!0),ee(ue,wt,It,"\u2AB7","\\precapprox",!0),ee(ue,wt,It,"\u22B2","\\vartriangleleft"),ee(ue,wt,It,"\u22B4","\\trianglelefteq"),ee(ue,wt,It,"\u22A8","\\vDash",!0),ee(ue,wt,It,"\u22AA","\\Vvdash",!0),ee(ue,wt,It,"\u2323","\\smallsmile"),ee(ue,wt,It,"\u2322","\\smallfrown"),ee(ue,wt,It,"\u224F","\\bumpeq",!0),ee(ue,wt,It,"\u224E","\\Bumpeq",!0),ee(ue,wt,It,"\u2267","\\geqq",!0),ee(ue,wt,It,"\u2A7E","\\geqslant",!0),ee(ue,wt,It,"\u2A96","\\eqslantgtr",!0),ee(ue,wt,It,"\u2273","\\gtrsim",!0),ee(ue,wt,It,"\u2A86","\\gtrapprox",!0),ee(ue,wt,Dn,"\u22D7","\\gtrdot"),ee(ue,wt,It,"\u22D9","\\ggg",!0),ee(ue,wt,It,"\u2277","\\gtrless",!0),ee(ue,wt,It,"\u22DB","\\gtreqless",!0),ee(ue,wt,It,"\u2A8C","\\gtreqqless",!0),ee(ue,wt,It,"\u2256","\\eqcirc",!0),ee(ue,wt,It,"\u2257","\\circeq",!0),ee(ue,wt,It,"\u225C","\\triangleq",!0),ee(ue,wt,It,"\u223C","\\thicksim"),ee(ue,wt,It,"\u2248","\\thickapprox"),ee(ue,wt,It,"\u2AC6","\\supseteqq",!0),ee(ue,wt,It,"\u22D1","\\Supset",!0),ee(ue,wt,It,"\u2290","\\sqsupset",!0),ee(ue,wt,It,"\u227D","\\succcurlyeq",!0),ee(ue,wt,It,"\u22DF","\\curlyeqsucc",!0),ee(ue,wt,It,"\u227F","\\succsim",!0),ee(ue,wt,It,"\u2AB8","\\succapprox",!0),ee(ue,wt,It,"\u22B3","\\vartriangleright"),ee(ue,wt,It,"\u22B5","\\trianglerighteq"),ee(ue,wt,It,"\u22A9","\\Vdash",!0),ee(ue,wt,It,"\u2223","\\shortmid"),ee(ue,wt,It,"\u2225","\\shortparallel"),ee(ue,wt,It,"\u226C","\\between",!0),ee(ue,wt,It,"\u22D4","\\pitchfork",!0),ee(ue,wt,It,"\u221D","\\varpropto"),ee(ue,wt,It,"\u25C0","\\blacktriangleleft"),ee(ue,wt,It,"\u2234","\\therefore",!0),ee(ue,wt,It,"\u220D","\\backepsilon"),ee(ue,wt,It,"\u25B6","\\blacktriangleright"),ee(ue,wt,It,"\u2235","\\because",!0),ee(ue,wt,It,"\u22D8","\\llless"),ee(ue,wt,It,"\u22D9","\\gggtr"),ee(ue,wt,Dn,"\u22B2","\\lhd"),ee(ue,wt,Dn,"\u22B3","\\rhd"),ee(ue,wt,It,"\u2242","\\eqsim",!0),ee(ue,Be,It,"\u22C8","\\Join"),ee(ue,wt,It,"\u2251","\\Doteq",!0),ee(ue,wt,Dn,"\u2214","\\dotplus",!0),ee(ue,wt,Dn,"\u2216","\\smallsetminus"),ee(ue,wt,Dn,"\u22D2","\\Cap",!0),ee(ue,wt,Dn,"\u22D3","\\Cup",!0),ee(ue,wt,Dn,"\u2A5E","\\doublebarwedge",!0),ee(ue,wt,Dn,"\u229F","\\boxminus",!0),ee(ue,wt,Dn,"\u229E","\\boxplus",!0),ee(ue,wt,Dn,"\u22C7","\\divideontimes",!0),ee(ue,wt,Dn,"\u22C9","\\ltimes",!0),ee(ue,wt,Dn,"\u22CA","\\rtimes",!0),ee(ue,wt,Dn,"\u22CB","\\leftthreetimes",!0),ee(ue,wt,Dn,"\u22CC","\\rightthreetimes",!0),ee(ue,wt,Dn,"\u22CF","\\curlywedge",!0),ee(ue,wt,Dn,"\u22CE","\\curlyvee",!0),ee(ue,wt,Dn,"\u229D","\\circleddash",!0),ee(ue,wt,Dn,"\u229B","\\circledast",!0),ee(ue,wt,Dn,"\u22C5","\\centerdot"),ee(ue,wt,Dn,"\u22BA","\\intercal",!0),ee(ue,wt,Dn,"\u22D2","\\doublecap"),ee(ue,wt,Dn,"\u22D3","\\doublecup"),ee(ue,wt,Dn,"\u22A0","\\boxtimes",!0),ee(ue,wt,It,"\u21E2","\\dashrightarrow",!0),ee(ue,wt,It,"\u21E0","\\dashleftarrow",!0),ee(ue,wt,It,"\u21C7","\\leftleftarrows",!0),ee(ue,wt,It,"\u21C6","\\leftrightarrows",!0),ee(ue,wt,It,"\u21DA","\\Lleftarrow",!0),ee(ue,wt,It,"\u219E","\\twoheadleftarrow",!0),ee(ue,wt,It,"\u21A2","\\leftarrowtail",!0),ee(ue,wt,It,"\u21AB","\\looparrowleft",!0),ee(ue,wt,It,"\u21CB","\\leftrightharpoons",!0),ee(ue,wt,It,"\u21B6","\\curvearrowleft",!0),ee(ue,wt,It,"\u21BA","\\circlearrowleft",!0),ee(ue,wt,It,"\u21B0","\\Lsh",!0),ee(ue,wt,It,"\u21C8","\\upuparrows",!0),ee(ue,wt,It,"\u21BF","\\upharpoonleft",!0),ee(ue,wt,It,"\u21C3","\\downharpoonleft",!0),ee(ue,Be,It,"\u22B6","\\origof",!0),ee(ue,Be,It,"\u22B7","\\imageof",!0),ee(ue,wt,It,"\u22B8","\\multimap",!0),ee(ue,wt,It,"\u21AD","\\leftrightsquigarrow",!0),ee(ue,wt,It,"\u21C9","\\rightrightarrows",!0),ee(ue,wt,It,"\u21C4","\\rightleftarrows",!0),ee(ue,wt,It,"\u21A0","\\twoheadrightarrow",!0),ee(ue,wt,It,"\u21A3","\\rightarrowtail",!0),ee(ue,wt,It,"\u21AC","\\looparrowright",!0),ee(ue,wt,It,"\u21B7","\\curvearrowright",!0),ee(ue,wt,It,"\u21BB","\\circlearrowright",!0),ee(ue,wt,It,"\u21B1","\\Rsh",!0),ee(ue,wt,It,"\u21CA","\\downdownarrows",!0),ee(ue,wt,It,"\u21BE","\\upharpoonright",!0),ee(ue,wt,It,"\u21C2","\\downharpoonright",!0),ee(ue,wt,It,"\u21DD","\\rightsquigarrow",!0),ee(ue,wt,It,"\u21DD","\\leadsto"),ee(ue,wt,It,"\u21DB","\\Rrightarrow",!0),ee(ue,wt,It,"\u21BE","\\restriction"),ee(ue,Be,tn,"\u2018","`"),ee(ue,Be,tn,"$","\\$"),ee(Zn,Be,tn,"$","\\$"),ee(Zn,Be,tn,"$","\\textdollar"),ee(ue,Be,tn,"%","\\%"),ee(Zn,Be,tn,"%","\\%"),ee(ue,Be,tn,"_","\\_"),ee(Zn,Be,tn,"_","\\_"),ee(Zn,Be,tn,"_","\\textunderscore"),ee(ue,Be,tn,"\u2220","\\angle",!0),ee(ue,Be,tn,"\u221E","\\infty",!0),ee(ue,Be,tn,"\u2032","\\prime"),ee(ue,Be,tn,"\u25B3","\\triangle"),ee(ue,Be,tn,"\u0393","\\Gamma",!0),ee(ue,Be,tn,"\u0394","\\Delta",!0),ee(ue,Be,tn,"\u0398","\\Theta",!0),ee(ue,Be,tn,"\u039B","\\Lambda",!0),ee(ue,Be,tn,"\u039E","\\Xi",!0),ee(ue,Be,tn,"\u03A0","\\Pi",!0),ee(ue,Be,tn,"\u03A3","\\Sigma",!0),ee(ue,Be,tn,"\u03A5","\\Upsilon",!0),ee(ue,Be,tn,"\u03A6","\\Phi",!0),ee(ue,Be,tn,"\u03A8","\\Psi",!0),ee(ue,Be,tn,"\u03A9","\\Omega",!0),ee(ue,Be,tn,"A","\u0391"),ee(ue,Be,tn,"B","\u0392"),ee(ue,Be,tn,"E","\u0395"),ee(ue,Be,tn,"Z","\u0396"),ee(ue,Be,tn,"H","\u0397"),ee(ue,Be,tn,"I","\u0399"),ee(ue,Be,tn,"K","\u039A"),ee(ue,Be,tn,"M","\u039C"),ee(ue,Be,tn,"N","\u039D"),ee(ue,Be,tn,"O","\u039F"),ee(ue,Be,tn,"P","\u03A1"),ee(ue,Be,tn,"T","\u03A4"),ee(ue,Be,tn,"X","\u03A7"),ee(ue,Be,tn,"\xAC","\\neg",!0),ee(ue,Be,tn,"\xAC","\\lnot"),ee(ue,Be,tn,"\u22A4","\\top"),ee(ue,Be,tn,"\u22A5","\\bot"),ee(ue,Be,tn,"\u2205","\\emptyset"),ee(ue,wt,tn,"\u2205","\\varnothing"),ee(ue,Be,Ii,"\u03B1","\\alpha",!0),ee(ue,Be,Ii,"\u03B2","\\beta",!0),ee(ue,Be,Ii,"\u03B3","\\gamma",!0),ee(ue,Be,Ii,"\u03B4","\\delta",!0),ee(ue,Be,Ii,"\u03F5","\\epsilon",!0),ee(ue,Be,Ii,"\u03B6","\\zeta",!0),ee(ue,Be,Ii,"\u03B7","\\eta",!0),ee(ue,Be,Ii,"\u03B8","\\theta",!0),ee(ue,Be,Ii,"\u03B9","\\iota",!0),ee(ue,Be,Ii,"\u03BA","\\kappa",!0),ee(ue,Be,Ii,"\u03BB","\\lambda",!0),ee(ue,Be,Ii,"\u03BC","\\mu",!0),ee(ue,Be,Ii,"\u03BD","\\nu",!0),ee(ue,Be,Ii,"\u03BE","\\xi",!0),ee(ue,Be,Ii,"\u03BF","\\omicron",!0),ee(ue,Be,Ii,"\u03C0","\\pi",!0),ee(ue,Be,Ii,"\u03C1","\\rho",!0),ee(ue,Be,Ii,"\u03C3","\\sigma",!0),ee(ue,Be,Ii,"\u03C4","\\tau",!0),ee(ue,Be,Ii,"\u03C5","\\upsilon",!0),ee(ue,Be,Ii,"\u03D5","\\phi",!0),ee(ue,Be,Ii,"\u03C7","\\chi",!0),ee(ue,Be,Ii,"\u03C8","\\psi",!0),ee(ue,Be,Ii,"\u03C9","\\omega",!0),ee(ue,Be,Ii,"\u03B5","\\varepsilon",!0),ee(ue,Be,Ii,"\u03D1","\\vartheta",!0),ee(ue,Be,Ii,"\u03D6","\\varpi",!0),ee(ue,Be,Ii,"\u03F1","\\varrho",!0),ee(ue,Be,Ii,"\u03C2","\\varsigma",!0),ee(ue,Be,Ii,"\u03C6","\\varphi",!0),ee(ue,Be,Dn,"\u2217","*",!0),ee(ue,Be,Dn,"+","+"),ee(ue,Be,Dn,"\u2212","-",!0),ee(ue,Be,Dn,"\u22C5","\\cdot",!0),ee(ue,Be,Dn,"\u2218","\\circ",!0),ee(ue,Be,Dn,"\xF7","\\div",!0),ee(ue,Be,Dn,"\xB1","\\pm",!0),ee(ue,Be,Dn,"\xD7","\\times",!0),ee(ue,Be,Dn,"\u2229","\\cap",!0),ee(ue,Be,Dn,"\u222A","\\cup",!0),ee(ue,Be,Dn,"\u2216","\\setminus",!0),ee(ue,Be,Dn,"\u2227","\\land"),ee(ue,Be,Dn,"\u2228","\\lor"),ee(ue,Be,Dn,"\u2227","\\wedge",!0),ee(ue,Be,Dn,"\u2228","\\vee",!0),ee(ue,Be,tn,"\u221A","\\surd"),ee(ue,Be,Wi,"\u27E8","\\langle",!0),ee(ue,Be,Wi,"\u2223","\\lvert"),ee(ue,Be,Wi,"\u2225","\\lVert"),ee(ue,Be,Gi,"?","?"),ee(ue,Be,Gi,"!","!"),ee(ue,Be,Gi,"\u27E9","\\rangle",!0),ee(ue,Be,Gi,"\u2223","\\rvert"),ee(ue,Be,Gi,"\u2225","\\rVert"),ee(ue,Be,It,"=","="),ee(ue,Be,It,":",":"),ee(ue,Be,It,"\u2248","\\approx",!0),ee(ue,Be,It,"\u2245","\\cong",!0),ee(ue,Be,It,"\u2265","\\ge"),ee(ue,Be,It,"\u2265","\\geq",!0),ee(ue,Be,It,"\u2190","\\gets"),ee(ue,Be,It,">","\\gt",!0),ee(ue,Be,It,"\u2208","\\in",!0),ee(ue,Be,It,"\uE020","\\@not"),ee(ue,Be,It,"\u2282","\\subset",!0),ee(ue,Be,It,"\u2283","\\supset",!0),ee(ue,Be,It,"\u2286","\\subseteq",!0),ee(ue,Be,It,"\u2287","\\supseteq",!0),ee(ue,wt,It,"\u2288","\\nsubseteq",!0),ee(ue,wt,It,"\u2289","\\nsupseteq",!0),ee(ue,Be,It,"\u22A8","\\models"),ee(ue,Be,It,"\u2190","\\leftarrow",!0),ee(ue,Be,It,"\u2264","\\le"),ee(ue,Be,It,"\u2264","\\leq",!0),ee(ue,Be,It,"<","\\lt",!0),ee(ue,Be,It,"\u2192","\\rightarrow",!0),ee(ue,Be,It,"\u2192","\\to"),ee(ue,wt,It,"\u2271","\\ngeq",!0),ee(ue,wt,It,"\u2270","\\nleq",!0),ee(ue,Be,fo,"\xA0","\\ "),ee(ue,Be,fo,"\xA0","\\space"),ee(ue,Be,fo,"\xA0","\\nobreakspace"),ee(Zn,Be,fo,"\xA0","\\ "),ee(Zn,Be,fo,"\xA0"," "),ee(Zn,Be,fo,"\xA0","\\space"),ee(Zn,Be,fo,"\xA0","\\nobreakspace"),ee(ue,Be,fo,null,"\\nobreak"),ee(ue,Be,fo,null,"\\allowbreak"),ee(ue,Be,Zr,",",","),ee(ue,Be,Zr,";",";"),ee(ue,wt,Dn,"\u22BC","\\barwedge",!0),ee(ue,wt,Dn,"\u22BB","\\veebar",!0),ee(ue,Be,Dn,"\u2299","\\odot",!0),ee(ue,Be,Dn,"\u2295","\\oplus",!0),ee(ue,Be,Dn,"\u2297","\\otimes",!0),ee(ue,Be,tn,"\u2202","\\partial",!0),ee(ue,Be,Dn,"\u2298","\\oslash",!0),ee(ue,wt,Dn,"\u229A","\\circledcirc",!0),ee(ue,wt,Dn,"\u22A1","\\boxdot",!0),ee(ue,Be,Dn,"\u25B3","\\bigtriangleup"),ee(ue,Be,Dn,"\u25BD","\\bigtriangledown"),ee(ue,Be,Dn,"\u2020","\\dagger"),ee(ue,Be,Dn,"\u22C4","\\diamond"),ee(ue,Be,Dn,"\u22C6","\\star"),ee(ue,Be,Dn,"\u25C3","\\triangleleft"),ee(ue,Be,Dn,"\u25B9","\\triangleright"),ee(ue,Be,Wi,"{","\\{"),ee(Zn,Be,tn,"{","\\{"),ee(Zn,Be,tn,"{","\\textbraceleft"),ee(ue,Be,Gi,"}","\\}"),ee(Zn,Be,tn,"}","\\}"),ee(Zn,Be,tn,"}","\\textbraceright"),ee(ue,Be,Wi,"{","\\lbrace"),ee(ue,Be,Gi,"}","\\rbrace"),ee(ue,Be,Wi,"[","\\lbrack",!0),ee(Zn,Be,tn,"[","\\lbrack",!0),ee(ue,Be,Gi,"]","\\rbrack",!0),ee(Zn,Be,tn,"]","\\rbrack",!0),ee(ue,Be,Wi,"(","\\lparen",!0),ee(ue,Be,Gi,")","\\rparen",!0),ee(Zn,Be,tn,"<","\\textless",!0),ee(Zn,Be,tn,">","\\textgreater",!0),ee(ue,Be,Wi,"\u230A","\\lfloor",!0),ee(ue,Be,Gi,"\u230B","\\rfloor",!0),ee(ue,Be,Wi,"\u2308","\\lceil",!0),ee(ue,Be,Gi,"\u2309","\\rceil",!0),ee(ue,Be,tn,"\\","\\backslash"),ee(ue,Be,tn,"\u2223","|"),ee(ue,Be,tn,"\u2223","\\vert"),ee(Zn,Be,tn,"|","\\textbar",!0),ee(ue,Be,tn,"\u2225","\\|"),ee(ue,Be,tn,"\u2225","\\Vert"),ee(Zn,Be,tn,"\u2225","\\textbardbl"),ee(Zn,Be,tn,"~","\\textasciitilde"),ee(Zn,Be,tn,"\\","\\textbackslash"),ee(Zn,Be,tn,"^","\\textasciicircum"),ee(ue,Be,It,"\u2191","\\uparrow",!0),ee(ue,Be,It,"\u21D1","\\Uparrow",!0),ee(ue,Be,It,"\u2193","\\downarrow",!0),ee(ue,Be,It,"\u21D3","\\Downarrow",!0),ee(ue,Be,It,"\u2195","\\updownarrow",!0),ee(ue,Be,It,"\u21D5","\\Updownarrow",!0),ee(ue,Be,Yt,"\u2210","\\coprod"),ee(ue,Be,Yt,"\u22C1","\\bigvee"),ee(ue,Be,Yt,"\u22C0","\\bigwedge"),ee(ue,Be,Yt,"\u2A04","\\biguplus"),ee(ue,Be,Yt,"\u22C2","\\bigcap"),ee(ue,Be,Yt,"\u22C3","\\bigcup"),ee(ue,Be,Yt,"\u222B","\\int"),ee(ue,Be,Yt,"\u222B","\\intop"),ee(ue,Be,Yt,"\u222C","\\iint"),ee(ue,Be,Yt,"\u222D","\\iiint"),ee(ue,Be,Yt,"\u220F","\\prod"),ee(ue,Be,Yt,"\u2211","\\sum"),ee(ue,Be,Yt,"\u2A02","\\bigotimes"),ee(ue,Be,Yt,"\u2A01","\\bigoplus"),ee(ue,Be,Yt,"\u2A00","\\bigodot"),ee(ue,Be,Yt,"\u222E","\\oint"),ee(ue,Be,Yt,"\u222F","\\oiint"),ee(ue,Be,Yt,"\u2230","\\oiiint"),ee(ue,Be,Yt,"\u2A06","\\bigsqcup"),ee(ue,Be,Yt,"\u222B","\\smallint"),ee(Zn,Be,Xt,"\u2026","\\textellipsis"),ee(ue,Be,Xt,"\u2026","\\mathellipsis"),ee(Zn,Be,Xt,"\u2026","\\ldots",!0),ee(ue,Be,Xt,"\u2026","\\ldots",!0),ee(ue,Be,Xt,"\u22EF","\\@cdots",!0),ee(ue,Be,Xt,"\u22F1","\\ddots",!0),ee(ue,Be,tn,"\u22EE","\\varvdots"),ee(Zn,Be,tn,"\u22EE","\\varvdots"),ee(ue,Be,Ni,"\u02CA","\\acute"),ee(ue,Be,Ni,"\u02CB","\\grave"),ee(ue,Be,Ni,"\xA8","\\ddot"),ee(ue,Be,Ni,"~","\\tilde"),ee(ue,Be,Ni,"\u02C9","\\bar"),ee(ue,Be,Ni,"\u02D8","\\breve"),ee(ue,Be,Ni,"\u02C7","\\check"),ee(ue,Be,Ni,"^","\\hat"),ee(ue,Be,Ni,"\u20D7","\\vec"),ee(ue,Be,Ni,"\u02D9","\\dot"),ee(ue,Be,Ni,"\u02DA","\\mathring"),ee(ue,Be,Ii,"\uE131","\\@imath"),ee(ue,Be,Ii,"\uE237","\\@jmath"),ee(ue,Be,tn,"\u0131","\u0131"),ee(ue,Be,tn,"\u0237","\u0237"),ee(Zn,Be,tn,"\u0131","\\i",!0),ee(Zn,Be,tn,"\u0237","\\j",!0),ee(Zn,Be,tn,"\xDF","\\ss",!0),ee(Zn,Be,tn,"\xE6","\\ae",!0),ee(Zn,Be,tn,"\u0153","\\oe",!0),ee(Zn,Be,tn,"\xF8","\\o",!0),ee(Zn,Be,tn,"\xC6","\\AE",!0),ee(Zn,Be,tn,"\u0152","\\OE",!0),ee(Zn,Be,tn,"\xD8","\\O",!0),ee(Zn,Be,Ni,"\u02CA","\\'"),ee(Zn,Be,Ni,"\u02CB","\\`"),ee(Zn,Be,Ni,"\u02C6","\\^"),ee(Zn,Be,Ni,"\u02DC","\\~"),ee(Zn,Be,Ni,"\u02C9","\\="),ee(Zn,Be,Ni,"\u02D8","\\u"),ee(Zn,Be,Ni,"\u02D9","\\."),ee(Zn,Be,Ni,"\xB8","\\c"),ee(Zn,Be,Ni,"\u02DA","\\r"),ee(Zn,Be,Ni,"\u02C7","\\v"),ee(Zn,Be,Ni,"\xA8",'\\"'),ee(Zn,Be,Ni,"\u02DD","\\H"),ee(Zn,Be,Ni,"\u25EF","\\textcircled");var Fi={"--":!0,"---":!0,"``":!0,"''":!0};ee(Zn,Be,tn,"\u2013","--",!0),ee(Zn,Be,tn,"\u2013","\\textendash"),ee(Zn,Be,tn,"\u2014","---",!0),ee(Zn,Be,tn,"\u2014","\\textemdash"),ee(Zn,Be,tn,"\u2018","`",!0),ee(Zn,Be,tn,"\u2018","\\textquoteleft"),ee(Zn,Be,tn,"\u2019","'",!0),ee(Zn,Be,tn,"\u2019","\\textquoteright"),ee(Zn,Be,tn,"\u201C","``",!0),ee(Zn,Be,tn,"\u201C","\\textquotedblleft"),ee(Zn,Be,tn,"\u201D","''",!0),ee(Zn,Be,tn,"\u201D","\\textquotedblright"),ee(ue,Be,tn,"\xB0","\\degree",!0),ee(Zn,Be,tn,"\xB0","\\degree"),ee(Zn,Be,tn,"\xB0","\\textdegree",!0),ee(ue,Be,tn,"\xA3","\\pounds"),ee(ue,Be,tn,"\xA3","\\mathsterling",!0),ee(Zn,Be,tn,"\xA3","\\pounds"),ee(Zn,Be,tn,"\xA3","\\textsterling",!0),ee(ue,wt,tn,"\u2720","\\maltese"),ee(Zn,wt,tn,"\u2720","\\maltese");for(var Li='0123456789/@."',Nt=0;Nt<Li.length;Nt++){var Nr=Li.charAt(Nt);ee(ue,Be,tn,Nr,Nr)}for(var ii='0123456789!@*()-=+";:?/.,',ce=0;ce<ii.length;ce++){var br=ii.charAt(ce);ee(Zn,Be,tn,br,br)}for(var to="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",mr=0;mr<to.length;mr++){var Xr=to.charAt(mr);ee(ue,Be,Ii,Xr,Xr),ee(Zn,Be,tn,Xr,Xr)}ee(ue,wt,tn,"C","\u2102"),ee(Zn,wt,tn,"C","\u2102"),ee(ue,wt,tn,"H","\u210D"),ee(Zn,wt,tn,"H","\u210D"),ee(ue,wt,tn,"N","\u2115"),ee(Zn,wt,tn,"N","\u2115"),ee(ue,wt,tn,"P","\u2119"),ee(Zn,wt,tn,"P","\u2119"),ee(ue,wt,tn,"Q","\u211A"),ee(Zn,wt,tn,"Q","\u211A"),ee(ue,wt,tn,"R","\u211D"),ee(Zn,wt,tn,"R","\u211D"),ee(ue,wt,tn,"Z","\u2124"),ee(Zn,wt,tn,"Z","\u2124"),ee(ue,Be,Ii,"h","\u210E"),ee(Zn,Be,Ii,"h","\u210E");for(var qi="",zr=0;zr<to.length;zr++){var Ri=to.charAt(zr);qi=String.fromCharCode(55349,56320+zr),ee(ue,Be,Ii,Ri,qi),ee(Zn,Be,tn,Ri,qi),qi=String.fromCharCode(55349,56372+zr),ee(ue,Be,Ii,Ri,qi),ee(Zn,Be,tn,Ri,qi),qi=String.fromCharCode(55349,56424+zr),ee(ue,Be,Ii,Ri,qi),ee(Zn,Be,tn,Ri,qi),qi=String.fromCharCode(55349,56580+zr),ee(ue,Be,Ii,Ri,qi),ee(Zn,Be,tn,Ri,qi),qi=String.fromCharCode(55349,56684+zr),ee(ue,Be,Ii,Ri,qi),ee(Zn,Be,tn,Ri,qi),qi=String.fromCharCode(55349,56736+zr),ee(ue,Be,Ii,Ri,qi),ee(Zn,Be,tn,Ri,qi),qi=String.fromCharCode(55349,56788+zr),ee(ue,Be,Ii,Ri,qi),ee(Zn,Be,tn,Ri,qi),qi=String.fromCharCode(55349,56840+zr),ee(ue,Be,Ii,Ri,qi),ee(Zn,Be,tn,Ri,qi),qi=String.fromCharCode(55349,56944+zr),ee(ue,Be,Ii,Ri,qi),ee(Zn,Be,tn,Ri,qi),zr<26&&(qi=String.fromCharCode(55349,56632+zr),ee(ue,Be,Ii,Ri,qi),ee(Zn,Be,tn,Ri,qi),qi=String.fromCharCode(55349,56476+zr),ee(ue,Be,Ii,Ri,qi),ee(Zn,Be,tn,Ri,qi))}qi="\u{1D55C}",ee(ue,Be,Ii,"k",qi),ee(Zn,Be,tn,"k",qi);for(var $i=0;$i<10;$i++){var zi=$i.toString();qi=String.fromCharCode(55349,57294+$i),ee(ue,Be,Ii,zi,qi),ee(Zn,Be,tn,zi,qi),qi=String.fromCharCode(55349,57314+$i),ee(ue,Be,Ii,zi,qi),ee(Zn,Be,tn,zi,qi),qi=String.fromCharCode(55349,57324+$i),ee(ue,Be,Ii,zi,qi),ee(Zn,Be,tn,zi,qi),qi=String.fromCharCode(55349,57334+$i),ee(ue,Be,Ii,zi,qi),ee(Zn,Be,tn,zi,qi)}for(var Pr="\xD0\xDE\xFE",Br=0;Br<Pr.length;Br++){var no=Pr.charAt(Br);ee(ue,Be,Ii,no,no),ee(Zn,Be,tn,no,no)}var Po=[["mathbf","textbf","Main-Bold"],["mathbf","textbf","Main-Bold"],["mathnormal","textit","Math-Italic"],["mathnormal","textit","Math-Italic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["boldsymbol","boldsymbol","Main-BoldItalic"],["mathscr","textscr","Script-Regular"],["","",""],["","",""],["","",""],["mathfrak","textfrak","Fraktur-Regular"],["mathfrak","textfrak","Fraktur-Regular"],["mathbb","textbb","AMS-Regular"],["mathbb","textbb","AMS-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathboldfrak","textboldfrak","Fraktur-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathitsf","textitsf","SansSerif-Italic"],["mathitsf","textitsf","SansSerif-Italic"],["","",""],["","",""],["mathtt","texttt","Typewriter-Regular"],["mathtt","texttt","Typewriter-Regular"]],mi=[["mathbf","textbf","Main-Bold"],["","",""],["mathsf","textsf","SansSerif-Regular"],["mathboldsf","textboldsf","SansSerif-Bold"],["mathtt","texttt","Typewriter-Regular"]],ws=function(g,S){var R=g.charCodeAt(0),Y=g.charCodeAt(1),se=(R-55296)*1024+(Y-56320)+65536,Z=S==="math"?0:1;if(119808<=se&&se<120484){var rt=Math.floor((se-119808)/26);return[Po[rt][2],Po[rt][Z]]}else if(120782<=se&&se<=120831){var lt=Math.floor((se-120782)/10);return[mi[lt][2],mi[lt][Z]]}else{if(se===120485||se===120486)return[Po[0][2],Po[0][Z]];if(120486<se&&se<120782)return["",""];throw new Rt("Unsupported character: "+g)}},as=function(g,S,R){return Ki[R][g]&&Ki[R][g].replace&&(g=Ki[R][g].replace),{value:g,metrics:at(g,S,R)}},Fo=function(g,S,R,Y,se){var Z=as(g,S,R),rt=Z.metrics;g=Z.value;var lt;if(rt){var pn=rt.italic;(R==="text"||Y&&Y.font==="mathit")&&(pn=0),lt=new En(g,rt.height,rt.depth,pn,rt.skew,rt.width,se)}else typeof console!="undefined"&&console.warn("No character metrics "+("for '"+g+"' in style '"+S+"' and mode '"+R+"'")),lt=new En(g,0,0,0,0,0,se);if(Y){lt.maxFontSize=Y.sizeMultiplier,Y.style.isTight()&<.classes.push("mtight");var On=Y.getColor();On&&(lt.style.color=On)}return lt},As=function(g,S,R,Y){return Y===void 0&&(Y=[]),R.font==="boldsymbol"&&as(g,"Main-Bold",S).metrics?Fo(g,"Main-Bold",S,R,Y.concat(["mathbf"])):g==="\\"||Ki[S][g].font==="main"?Fo(g,"Main-Regular",S,R,Y):Fo(g,"AMS-Regular",S,R,Y.concat(["amsrm"]))},Xs=function(g,S,R,Y,se){return se!=="textord"&&as(g,"Math-BoldItalic",S).metrics?{fontName:"Math-BoldItalic",fontClass:"boldsymbol"}:{fontName:"Main-Bold",fontClass:"mathbf"}},da=function(g,S,R){var Y=g.mode,se=g.text,Z=["mord"],rt=Y==="math"||Y==="text"&&S.font,lt=rt?S.font:S.fontFamily,pn="",On="";if(se.charCodeAt(0)===55349&&([pn,On]=ws(se,Y)),pn.length>0)return Fo(se,pn,Y,S,Z.concat(On));if(lt){var Yn,wi;if(lt==="boldsymbol"){var Ci=Xs(se,Y,S,Z,R);Yn=Ci.fontName,wi=[Ci.fontClass]}else rt?(Yn=po[lt].fontName,wi=[lt]):(Yn=Or(lt,S.fontWeight,S.fontShape),wi=[lt,S.fontWeight,S.fontShape]);if(as(se,Yn,Y).metrics)return Fo(se,Yn,Y,S,Z.concat(wi));if(Fi.hasOwnProperty(se)&&Yn.slice(0,10)==="Typewriter"){for(var Pi=[],hr=0;hr<se.length;hr++)Pi.push(Fo(se[hr],Yn,Y,S,Z.concat(wi)));return Cl(Pi)}}if(R==="mathord")return Fo(se,"Math-Italic",Y,S,Z.concat(["mathnormal"]));if(R==="textord"){var kr=Ki[Y][se]&&Ki[Y][se].font;if(kr==="ams"){var Ir=Or("amsrm",S.fontWeight,S.fontShape);return Fo(se,Ir,Y,S,Z.concat("amsrm",S.fontWeight,S.fontShape))}else if(kr==="main"||!kr){var lo=Or("textrm",S.fontWeight,S.fontShape);return Fo(se,lo,Y,S,Z.concat(S.fontWeight,S.fontShape))}else{var No=Or(kr,S.fontWeight,S.fontShape);return Fo(se,No,Y,S,Z.concat(No,S.fontWeight,S.fontShape))}}else throw new Error("unexpected type: "+R+" in makeOrd")},vs=(A,g)=>{if(Si(A.classes)!==Si(g.classes)||A.skew!==g.skew||A.maxFontSize!==g.maxFontSize)return!1;if(A.classes.length===1){var S=A.classes[0];if(S==="mbin"||S==="mord")return!1}for(var R in A.style)if(A.style.hasOwnProperty(R)&&A.style[R]!==g.style[R])return!1;for(var Y in g.style)if(g.style.hasOwnProperty(Y)&&A.style[Y]!==g.style[Y])return!1;return!0},Ua=A=>{for(var g=0;g<A.length-1;g++){var S=A[g],R=A[g+1];S instanceof En&&R instanceof En&&vs(S,R)&&(S.text+=R.text,S.height=Math.max(S.height,R.height),S.depth=Math.max(S.depth,R.depth),S.italic=R.italic,A.splice(g+1,1),g--)}return A},Ls=function(g){for(var S=0,R=0,Y=0,se=0;se<g.children.length;se++){var Z=g.children[se];Z.height>S&&(S=Z.height),Z.depth>R&&(R=Z.depth),Z.maxFontSize>Y&&(Y=Z.maxFontSize)}g.height=S,g.depth=R,g.maxFontSize=Y},Ko=function(g,S,R,Y){var se=new on(g,S,R,Y);return Ls(se),se},Ht=(A,g,S,R)=>new on(A,g,S,R),Ds=function(g,S,R){var Y=Ko([g],[],S);return Y.height=Math.max(R||S.fontMetrics().defaultRuleThickness,S.minRuleThickness),Y.style.borderBottomWidth=rn(Y.height),Y.maxFontSize=1,Y},wl=function(g,S,R,Y){var se=new jt(g,S,R,Y);return Ls(se),se},Cl=function(g){var S=new Dr(g);return Ls(S),S},Jr=function(g,S){return g instanceof Dr?Ko([],[g],S):g},oo=function(g){if(g.positionType==="individualShift"){for(var S=g.children,R=[S[0]],Y=-S[0].shift-S[0].elem.depth,se=Y,Z=1;Z<S.length;Z++){var rt=-S[Z].shift-se-S[Z].elem.depth,lt=rt-(S[Z-1].elem.height+S[Z-1].elem.depth);se=se+rt,R.push({type:"kern",size:lt}),R.push(S[Z])}return{children:R,depth:Y}}var pn;if(g.positionType==="top"){for(var On=g.positionData,Yn=0;Yn<g.children.length;Yn++){var wi=g.children[Yn];On-=wi.type==="kern"?wi.size:wi.elem.height+wi.elem.depth}pn=On}else if(g.positionType==="bottom")pn=-g.positionData;else{var Ci=g.children[0];if(Ci.type!=="elem")throw new Error('First child must have type "elem".');if(g.positionType==="shift")pn=-Ci.elem.depth-g.positionData;else if(g.positionType==="firstBaseline")pn=-Ci.elem.depth;else throw new Error("Invalid positionType "+g.positionType+".")}return{children:g.children,depth:pn}},ts=function(g,S){for(var{children:R,depth:Y}=oo(g),se=0,Z=0;Z<R.length;Z++){var rt=R[Z];if(rt.type==="elem"){var lt=rt.elem;se=Math.max(se,lt.maxFontSize,lt.height)}}se+=2;var pn=Ko(["pstrut"],[]);pn.style.height=rn(se);for(var On=[],Yn=Y,wi=Y,Ci=Y,Pi=0;Pi<R.length;Pi++){var hr=R[Pi];if(hr.type==="kern")Ci+=hr.size;else{var kr=hr.elem,Ir=hr.wrapperClasses||[],lo=hr.wrapperStyle||{},No=Ko(Ir,[pn,kr],void 0,lo);No.style.top=rn(-se-Ci-kr.depth),hr.marginLeft&&(No.style.marginLeft=hr.marginLeft),hr.marginRight&&(No.style.marginRight=hr.marginRight),On.push(No),Ci+=kr.height+kr.depth}Yn=Math.min(Yn,Ci),wi=Math.max(wi,Ci)}var bs=Ko(["vlist"],On);bs.style.height=rn(wi);var Vo;if(Yn<0){var Io=Ko([],[]),ss=Ko(["vlist"],[Io]);ss.style.height=rn(-Yn);var ea=Ko(["vlist-s"],[new En("\u200B")]);Vo=[Ko(["vlist-r"],[bs,ea]),Ko(["vlist-r"],[ss])]}else Vo=[Ko(["vlist-r"],[bs])];var qo=Ko(["vlist-t"],Vo);return Vo.length===2&&qo.classes.push("vlist-t2"),qo.height=wi,qo.depth=-Yn,qo},bo=(A,g)=>{var S=Ko(["mspace"],[],g),R=yn(A,g);return S.style.marginRight=rn(R),S},Or=function(g,S,R){var Y="";switch(g){case"amsrm":Y="AMS";break;case"textrm":Y="Main";break;case"textsf":Y="SansSerif";break;case"texttt":Y="Typewriter";break;default:Y=g}var se;return S==="textbf"&&R==="textit"?se="BoldItalic":S==="textbf"?se="Bold":S==="textit"?se="Italic":se="Regular",Y+"-"+se},po={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathsfit:{variant:"sans-serif-italic",fontName:"SansSerif-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},va={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},gr=function(g,S){var[R,Y,se]=va[g],Z=new Ai(R),rt=new Ln([Z],{width:rn(Y),height:rn(se),style:"width:"+rn(Y),viewBox:"0 0 "+1e3*Y+" "+1e3*se,preserveAspectRatio:"xMinYMin"}),lt=Ht(["overlay"],[rt],S);return lt.height=se,lt.style.height=rn(se),lt.style.width=rn(Y),lt},xn={fontMap:po,makeSymbol:Fo,mathsym:As,makeSpan:Ko,makeSvgSpan:Ht,makeLineSpan:Ds,makeAnchor:wl,makeFragment:Cl,wrapFragment:Jr,makeVList:ts,makeOrd:da,makeGlue:bo,staticSvg:gr,svgData:va,tryCombineChars:Ua},ur={number:3,unit:"mu"},vi={number:4,unit:"mu"},Bo={number:5,unit:"mu"},ys={mord:{mop:ur,mbin:vi,mrel:Bo,minner:ur},mop:{mord:ur,mop:ur,mrel:Bo,minner:ur},mbin:{mord:vi,mop:vi,mopen:vi,minner:vi},mrel:{mord:Bo,mop:Bo,mopen:Bo,minner:Bo},mopen:{},mclose:{mop:ur,mbin:vi,mrel:Bo,minner:ur},mpunct:{mord:ur,mop:ur,mrel:Bo,mopen:ur,mclose:ur,mpunct:ur,minner:ur},minner:{mord:ur,mop:ur,mbin:vi,mrel:Bo,mopen:ur,mpunct:ur,minner:ur}},oa={mord:{mop:ur},mop:{mord:ur,mop:ur},mbin:{},mrel:{},mopen:{},mclose:{mop:ur},mpunct:{},minner:{mop:ur}},Da={},Ia={},ui={};function Di(A){for(var{type:g,names:S,props:R,handler:Y,htmlBuilder:se,mathmlBuilder:Z}=A,rt={type:g,numArgs:R.numArgs,argTypes:R.argTypes,allowedInArgument:!!R.allowedInArgument,allowedInText:!!R.allowedInText,allowedInMath:R.allowedInMath===void 0?!0:R.allowedInMath,numOptionalArgs:R.numOptionalArgs||0,infix:!!R.infix,primitive:!!R.primitive,handler:Y},lt=0;lt<S.length;++lt)Da[S[lt]]=rt;g&&(se&&(Ia[g]=se),Z&&(ui[g]=Z))}function Yo(A){var{type:g,htmlBuilder:S,mathmlBuilder:R}=A;Di({type:g,names:[],props:{numArgs:0},handler(){throw new Error("Should never be called.")},htmlBuilder:S,mathmlBuilder:R})}var ya=function(g){return g.type==="ordgroup"&&g.body.length===1?g.body[0]:g},Go=function(g){return g.type==="ordgroup"?g.body:[g]},Us=xn.makeSpan,vr=["leftmost","mbin","mopen","mrel","mop","mpunct"],lu=["rightmost","mrel","mclose","mpunct"],wa={display:kt.DISPLAY,text:kt.TEXT,script:kt.SCRIPT,scriptscript:kt.SCRIPTSCRIPT},Ca={mord:"mord",mop:"mop",mbin:"mbin",mrel:"mrel",mopen:"mopen",mclose:"mclose",mpunct:"mpunct",minner:"minner"},Oo=function(g,S,R,Y){Y===void 0&&(Y=[null,null]);for(var se=[],Z=0;Z<g.length;Z++){var rt=Ao(g[Z],S);if(rt instanceof Dr){var lt=rt.children;se.push(...lt)}else se.push(rt)}if(xn.tryCombineChars(se),!R)return se;var pn=S;if(g.length===1){var On=g[0];On.type==="sizing"?pn=S.havingSize(On.size):On.type==="styling"&&(pn=S.havingStyle(wa[On.style]))}var Yn=Us([Y[0]||"leftmost"],[],S),wi=Us([Y[1]||"rightmost"],[],S),Ci=R==="root";return ll(se,(Pi,hr)=>{var kr=hr.classes[0],Ir=Pi.classes[0];kr==="mbin"&&T.contains(lu,Ir)?hr.classes[0]="mord":Ir==="mbin"&&T.contains(vr,kr)&&(Pi.classes[0]="mord")},{node:Yn},wi,Ci),ll(se,(Pi,hr)=>{var kr=fa(hr),Ir=fa(Pi),lo=kr&&Ir?Pi.hasClass("mtight")?oa[kr][Ir]:ys[kr][Ir]:null;if(lo)return xn.makeGlue(lo,pn)},{node:Yn},wi,Ci),se},ll=function A(g,S,R,Y,se){Y&&g.push(Y);for(var Z=0;Z<g.length;Z++){var rt=g[Z],lt=Tl(rt);if(lt){A(lt.children,S,R,null,se);continue}var pn=!rt.hasClass("mspace");if(pn){var On=S(rt,R.node);On&&(R.insertAfter?R.insertAfter(On):(g.unshift(On),Z++))}pn?R.node=rt:se&&rt.hasClass("newline")&&(R.node=Us(["leftmost"])),R.insertAfter=(Yn=>wi=>{g.splice(Yn+1,0,wi),Z++})(Z)}Y&&g.pop()},Tl=function(g){return g instanceof Dr||g instanceof jt||g instanceof on&&g.hasClass("enclosing")?g:null},ks=function A(g,S){var R=Tl(g);if(R){var Y=R.children;if(Y.length){if(S==="right")return A(Y[Y.length-1],"right");if(S==="left")return A(Y[0],"left")}}return g},fa=function(g,S){return g?(S&&(g=ks(g,S)),Ca[g.classes[0]]||null):null},Nl=function(g,S){var R=["nulldelimiter"].concat(g.baseSizingClasses());return Us(S.concat(R))},Ao=function(g,S,R){if(!g)return Us();if(Ia[g.type]){var Y=Ia[g.type](g,S);if(R&&S.size!==R.size){Y=Us(S.sizingClasses(R),[Y],S);var se=S.sizeMultiplier/R.sizeMultiplier;Y.height*=se,Y.depth*=se}return Y}else throw new Rt("Got group of unknown type: '"+g.type+"'")};function zl(A,g){var S=Us(["base"],A,g),R=Us(["strut"]);return R.style.height=rn(S.height+S.depth),S.depth&&(R.style.verticalAlign=rn(-S.depth)),S.children.unshift(R),S}function Ul(A,g){var S=null;A.length===1&&A[0].type==="tag"&&(S=A[0].tag,A=A[0].body);var R=Oo(A,g,"root"),Y;R.length===2&&R[1].hasClass("tag")&&(Y=R.pop());for(var se=[],Z=[],rt=0;rt<R.length;rt++)if(Z.push(R[rt]),R[rt].hasClass("mbin")||R[rt].hasClass("mrel")||R[rt].hasClass("allowbreak")){for(var lt=!1;rt<R.length-1&&R[rt+1].hasClass("mspace")&&!R[rt+1].hasClass("newline");)rt++,Z.push(R[rt]),R[rt].hasClass("nobreak")&&(lt=!0);lt||(se.push(zl(Z,g)),Z=[])}else R[rt].hasClass("newline")&&(Z.pop(),Z.length>0&&(se.push(zl(Z,g)),Z=[]),se.push(R[rt]));Z.length>0&&se.push(zl(Z,g));var pn;S?(pn=zl(Oo(S,g,!0)),pn.classes=["tag"],se.push(pn)):Y&&se.push(Y);var On=Us(["katex-html"],se);if(On.setAttribute("aria-hidden","true"),pn){var Yn=pn.children[0];Yn.style.height=rn(On.height+On.depth),On.depth&&(Yn.style.verticalAlign=rn(-On.depth))}return On}function Eu(A){return new Dr(A)}class Cs{constructor(g,S,R){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=g,this.attributes={},this.children=S||[],this.classes=R||[]}setAttribute(g,S){this.attributes[g]=S}getAttribute(g){return this.attributes[g]}toNode(){var g=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&g.setAttribute(S,this.attributes[S]);this.classes.length>0&&(g.className=Si(this.classes));for(var R=0;R<this.children.length;R++)if(this.children[R]instanceof Zo&&this.children[R+1]instanceof Zo){for(var Y=this.children[R].toText()+this.children[++R].toText();this.children[R+1]instanceof Zo;)Y+=this.children[++R].toText();g.appendChild(new Zo(Y).toNode())}else g.appendChild(this.children[R].toNode());return g}toMarkup(){var g="<"+this.type;for(var S in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,S)&&(g+=" "+S+'="',g+=T.escape(this.attributes[S]),g+='"');this.classes.length>0&&(g+=' class ="'+T.escape(Si(this.classes))+'"'),g+=">";for(var R=0;R<this.children.length;R++)g+=this.children[R].toMarkup();return g+="</"+this.type+">",g}toText(){return this.children.map(g=>g.toText()).join("")}}class Zo{constructor(g){this.text=void 0,this.text=g}toNode(){return document.createTextNode(this.text)}toMarkup(){return T.escape(this.toText())}toText(){return this.text}}class Ha{constructor(g){this.width=void 0,this.character=void 0,this.width=g,g>=.05555&&g<=.05556?this.character="\u200A":g>=.1666&&g<=.1667?this.character="\u2009":g>=.2222&&g<=.2223?this.character="\u2005":g>=.2777&&g<=.2778?this.character="\u2005\u200A":g>=-.05556&&g<=-.05555?this.character="\u200A\u2063":g>=-.1667&&g<=-.1666?this.character="\u2009\u2063":g>=-.2223&&g<=-.2222?this.character="\u205F\u2063":g>=-.2778&&g<=-.2777?this.character="\u2005\u2063":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var g=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return g.setAttribute("width",rn(this.width)),g}toMarkup(){return this.character?"<mtext>"+this.character+"</mtext>":'<mspace width="'+rn(this.width)+'"/>'}toText(){return this.character?this.character:" "}}var Hi={MathNode:Cs,TextNode:Zo,SpaceNode:Ha,newDocumentFragment:Eu},pa=function(g,S,R){return Ki[S][g]&&Ki[S][g].replace&&g.charCodeAt(0)!==55349&&!(Fi.hasOwnProperty(g)&&R&&(R.fontFamily&&R.fontFamily.slice(4,6)==="tt"||R.font&&R.font.slice(4,6)==="tt"))&&(g=Ki[S][g].replace),new Hi.TextNode(g)},Hl=function(g){return g.length===1?g[0]:new Hi.MathNode("mrow",g)},Lr=function(g,S){if(S.fontFamily==="texttt")return"monospace";if(S.fontFamily==="textsf")return S.fontShape==="textit"&&S.fontWeight==="textbf"?"sans-serif-bold-italic":S.fontShape==="textit"?"sans-serif-italic":S.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(S.fontShape==="textit"&&S.fontWeight==="textbf")return"bold-italic";if(S.fontShape==="textit")return"italic";if(S.fontWeight==="textbf")return"bold";var R=S.font;if(!R||R==="mathnormal")return null;var Y=g.mode;if(R==="mathit")return"italic";if(R==="boldsymbol")return g.type==="textord"?"bold":"bold-italic";if(R==="mathbf")return"bold";if(R==="mathbb")return"double-struck";if(R==="mathsfit")return"sans-serif-italic";if(R==="mathfrak")return"fraktur";if(R==="mathscr"||R==="mathcal")return"script";if(R==="mathsf")return"sans-serif";if(R==="mathtt")return"monospace";var se=g.text;if(T.contains(["\\imath","\\jmath"],se))return null;Ki[Y][se]&&Ki[Y][se].replace&&(se=Ki[Y][se].replace);var Z=xn.fontMap[R].fontName;return at(se,Z,Y)?xn.fontMap[R].variant:null};function so(A){if(!A)return!1;if(A.type==="mi"&&A.children.length===1){var g=A.children[0];return g instanceof Zo&&g.text==="."}else if(A.type==="mo"&&A.children.length===1&&A.getAttribute("separator")==="true"&&A.getAttribute("lspace")==="0em"&&A.getAttribute("rspace")==="0em"){var S=A.children[0];return S instanceof Zo&&S.text===","}else return!1}var ns=function(g,S,R){if(g.length===1){var Y=jr(g[0],S);return R&&Y instanceof Cs&&Y.type==="mo"&&(Y.setAttribute("lspace","0em"),Y.setAttribute("rspace","0em")),[Y]}for(var se=[],Z,rt=0;rt<g.length;rt++){var lt=jr(g[rt],S);if(lt instanceof Cs&&Z instanceof Cs){if(lt.type==="mtext"&&Z.type==="mtext"&<.getAttribute("mathvariant")===Z.getAttribute("mathvariant")){Z.children.push(...lt.children);continue}else if(lt.type==="mn"&&Z.type==="mn"){Z.children.push(...lt.children);continue}else if(so(lt)&&Z.type==="mn"){Z.children.push(...lt.children);continue}else if(lt.type==="mn"&&so(Z))lt.children=[...Z.children,...lt.children],se.pop();else if((lt.type==="msup"||lt.type==="msub")&<.children.length>=1&&(Z.type==="mn"||so(Z))){var pn=lt.children[0];pn instanceof Cs&&pn.type==="mn"&&(pn.children=[...Z.children,...pn.children],se.pop())}else if(Z.type==="mi"&&Z.children.length===1){var On=Z.children[0];if(On instanceof Zo&&On.text==="\u0338"&&(lt.type==="mo"||lt.type==="mi"||lt.type==="mn")){var Yn=lt.children[0];Yn instanceof Zo&&Yn.text.length>0&&(Yn.text=Yn.text.slice(0,1)+"\u0338"+Yn.text.slice(1),se.pop())}}}se.push(lt),Z=lt}return se},Xo=function(g,S,R){return Hl(ns(g,S,R))},jr=function(g,S){if(!g)return new Hi.MathNode("mrow");if(ui[g.type]){var R=ui[g.type](g,S);return R}else throw new Rt("Got group of unknown type: '"+g.type+"'")};function Qo(A,g,S,R,Y){var se=ns(A,S),Z;se.length===1&&se[0]instanceof Cs&&T.contains(["mrow","mtable"],se[0].type)?Z=se[0]:Z=new Hi.MathNode("mrow",se);var rt=new Hi.MathNode("annotation",[new Hi.TextNode(g)]);rt.setAttribute("encoding","application/x-tex");var lt=new Hi.MathNode("semantics",[Z,rt]),pn=new Hi.MathNode("math",[lt]);pn.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),R&&pn.setAttribute("display","block");var On=Y?"katex":"katex-mathml";return xn.makeSpan([On],[pn])}var is=function(g){return new In({style:g.displayMode?kt.DISPLAY:kt.TEXT,maxSize:g.maxSize,minRuleThickness:g.minRuleThickness})},rs=function(g,S){if(S.displayMode){var R=["katex-display"];S.leqno&&R.push("leqno"),S.fleqn&&R.push("fleqn"),g=xn.makeSpan(R,[g])}return g},fs=function(g,S,R){var Y=is(R),se;if(R.output==="mathml")return Qo(g,S,Y,R.displayMode,!0);if(R.output==="html"){var Z=Ul(g,Y);se=xn.makeSpan(["katex"],[Z])}else{var rt=Qo(g,S,Y,R.displayMode,!1),lt=Ul(g,Y);se=xn.makeSpan(["katex"],[rt,lt])}return rs(se,R)},$l=function(g,S,R){var Y=is(R),se=Ul(g,Y),Z=xn.makeSpan(["katex"],[se]);return rs(Z,R)},$a={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xrightleftarrows:"\u21C4",xrightequilibrium:"\u21CC",xleftequilibrium:"\u21CB","\\cdrightarrow":"\u2192","\\cdleftarrow":"\u2190","\\cdlongequal":"="},ls=function(g){var S=new Hi.MathNode("mo",[new Hi.TextNode($a[g.replace(/^\\/,"")])]);return S.setAttribute("stretchy","true"),S},ac={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},lc=function(g){return g.type==="ordgroup"?g.body.length:1},wu=function(g,S){function R(){var rt=4e5,lt=g.label.slice(1);if(T.contains(["widehat","widecheck","widetilde","utilde"],lt)){var pn=g,On=lc(pn.base),Yn,wi,Ci;if(On>5)lt==="widehat"||lt==="widecheck"?(Yn=420,rt=2364,Ci=.42,wi=lt+"4"):(Yn=312,rt=2340,Ci=.34,wi="tilde4");else{var Pi=[1,1,2,2,3,3][On];lt==="widehat"||lt==="widecheck"?(rt=[0,1062,2364,2364,2364][Pi],Yn=[0,239,300,360,420][Pi],Ci=[0,.24,.3,.3,.36,.42][Pi],wi=lt+Pi):(rt=[0,600,1033,2339,2340][Pi],Yn=[0,260,286,306,312][Pi],Ci=[0,.26,.286,.3,.306,.34][Pi],wi="tilde"+Pi)}var hr=new Ai(wi),kr=new Ln([hr],{width:"100%",height:rn(Ci),viewBox:"0 0 "+rt+" "+Yn,preserveAspectRatio:"none"});return{span:xn.makeSvgSpan([],[kr],S),minWidth:0,height:Ci}}else{var Ir=[],lo=ac[lt],[No,bs,Vo]=lo,Io=Vo/1e3,ss=No.length,ea,qo;if(ss===1){var hl=lo[3];ea=["hide-tail"],qo=[hl]}else if(ss===2)ea=["halfarrow-left","halfarrow-right"],qo=["xMinYMin","xMaxYMin"];else if(ss===3)ea=["brace-left","brace-center","brace-right"],qo=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support
|
|
|
`+ss+" children.");for(var Oa=0;Oa<ss;Oa++){var ta=new Ai(No[Oa]),ba=new Ln([ta],{width:"400em",height:rn(Io),viewBox:"0 0 "+rt+" "+Vo,preserveAspectRatio:qo[Oa]+" slice"}),nl=xn.makeSvgSpan([ea[Oa]],[ba],S);if(ss===1)return{span:nl,minWidth:bs,height:Io};nl.style.height=rn(Io),Ir.push(nl)}return{span:xn.makeSpan(["stretchy"],Ir,S),minWidth:bs,height:Io}}}var{span:Y,minWidth:se,height:Z}=R();return Y.height=Z,Y.style.height=rn(Z),se>0&&(Y.style.minWidth=rn(se)),Y},er=function(g,S,R,Y,se){var Z,rt=g.height+g.depth+R+Y;if(/fbox|color|angl/.test(S)){if(Z=xn.makeSpan(["stretchy",S],[],se),S==="fbox"){var lt=se.color&&se.getColor();lt&&(Z.style.borderColor=lt)}}else{var pn=[];/^[bx]cancel$/.test(S)&&pn.push(new zn({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(S)&&pn.push(new zn({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var On=new Ln(pn,{width:"100%",height:rn(rt)});Z=xn.makeSvgSpan([],[On],se)}return Z.height=rt,Z.style.height=rn(rt),Z},ja={encloseSpan:er,mathMLnode:ls,svgSpan:wu};function Ke(A,g){if(!A||A.type!==g)throw new Error("Expected node of type "+g+", but got "+(A?"node of type "+A.type:String(A)));return A}function An(A){var g=Cu(A);if(!g)throw new Error("Expected node of symbol group type, but got "+(A?"node of type "+A.type:String(A)));return g}function Cu(A){return A&&(A.type==="atom"||qt.hasOwnProperty(A.type))?A:null}var jl=(A,g)=>{var S,R,Y;A&&A.type==="supsub"?(R=Ke(A.base,"accent"),S=R.base,A.base=S,Y=ir(Ao(A,g)),A.base=R):(R=Ke(A,"accent"),S=R.base);var se=Ao(S,g.havingCrampedStyle()),Z=R.isShifty&&T.isCharacterBox(S),rt=0;if(Z){var lt=T.getBaseElem(S),pn=Ao(lt,g.havingCrampedStyle());rt=ki(pn).skew}var On=R.label==="\\c",Yn=On?se.height+se.depth:Math.min(se.height,g.fontMetrics().xHeight),wi;if(R.isStretchy)wi=ja.svgSpan(R,g),wi=xn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:se},{type:"elem",elem:wi,wrapperClasses:["svg-align"],wrapperStyle:rt>0?{width:"calc(100% - "+rn(2*rt)+")",marginLeft:rn(2*rt)}:void 0}]},g);else{var Ci,Pi;R.label==="\\vec"?(Ci=xn.staticSvg("vec",g),Pi=xn.svgData.vec[1]):(Ci=xn.makeOrd({mode:R.mode,text:R.label},g,"textord"),Ci=ki(Ci),Ci.italic=0,Pi=Ci.width,On&&(Yn+=Ci.depth)),wi=xn.makeSpan(["accent-body"],[Ci]);var hr=R.label==="\\textcircled";hr&&(wi.classes.push("accent-full"),Yn=se.height);var kr=rt;hr||(kr-=Pi/2),wi.style.left=rn(kr),R.label==="\\textcircled"&&(wi.style.top=".2em"),wi=xn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:se},{type:"kern",size:-Yn},{type:"elem",elem:wi}]},g)}var Ir=xn.makeSpan(["mord","accent"],[wi],g);return Y?(Y.children[0]=Ir,Y.height=Math.max(Ir.height,Y.height),Y.classes[0]="mord",Y):Ir},Pa=(A,g)=>{var S=A.isStretchy?ja.mathMLnode(A.label):new Hi.MathNode("mo",[pa(A.label,A.mode)]),R=new Hi.MathNode("mover",[jr(A.base,g),S]);return R.setAttribute("accent","true"),R},Ga=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(A=>"\\"+A).join("|"));Di({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(A,g)=>{var S=ya(g[0]),R=!Ga.test(A.funcName),Y=!R||A.funcName==="\\widehat"||A.funcName==="\\widetilde"||A.funcName==="\\widecheck";return{type:"accent",mode:A.parser.mode,label:A.funcName,isStretchy:R,isShifty:Y,base:S}},htmlBuilder:jl,mathmlBuilder:Pa}),Di({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(A,g)=>{var S=g[0],R=A.parser.mode;return R==="math"&&(A.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+A.funcName+" works only in text mode"),R="text"),{type:"accent",mode:R,label:A.funcName,isStretchy:!1,isShifty:!0,base:S}},htmlBuilder:jl,mathmlBuilder:Pa}),Di({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(A,g)=>{var{parser:S,funcName:R}=A,Y=g[0];return{type:"accentUnder",mode:S.mode,label:R,base:Y}},htmlBuilder:(A,g)=>{var S=Ao(A.base,g),R=ja.svgSpan(A,g),Y=A.label==="\\utilde"?.12:0,se=xn.makeVList({positionType:"top",positionData:S.height,children:[{type:"elem",elem:R,wrapperClasses:["svg-align"]},{type:"kern",size:Y},{type:"elem",elem:S}]},g);return xn.makeSpan(["mord","accentunder"],[se],g)},mathmlBuilder:(A,g)=>{var S=ja.mathMLnode(A.label),R=new Hi.MathNode("munder",[jr(A.base,g),S]);return R.setAttribute("accentunder","true"),R}});var Wa=A=>{var g=new Hi.MathNode("mpadded",A?[A]:[]);return g.setAttribute("width","+0.6em"),g.setAttribute("lspace","0.3em"),g};Di({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(A,g,S){var{parser:R,funcName:Y}=A;return{type:"xArrow",mode:R.mode,label:Y,body:g[0],below:S[0]}},htmlBuilder(A,g){var S=g.style,R=g.havingStyle(S.sup()),Y=xn.wrapFragment(Ao(A.body,R,g),g),se=A.label.slice(0,2)==="\\x"?"x":"cd";Y.classes.push(se+"-arrow-pad");var Z;A.below&&(R=g.havingStyle(S.sub()),Z=xn.wrapFragment(Ao(A.below,R,g),g),Z.classes.push(se+"-arrow-pad"));var rt=ja.svgSpan(A,g),lt=-g.fontMetrics().axisHeight+.5*rt.height,pn=-g.fontMetrics().axisHeight-.5*rt.height-.111;(Y.depth>.25||A.label==="\\xleftequilibrium")&&(pn-=Y.depth);var On;if(Z){var Yn=-g.fontMetrics().axisHeight+Z.height+.5*rt.height+.111;On=xn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Y,shift:pn},{type:"elem",elem:rt,shift:lt},{type:"elem",elem:Z,shift:Yn}]},g)}else On=xn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:Y,shift:pn},{type:"elem",elem:rt,shift:lt}]},g);return On.children[0].children[0].children[1].classes.push("svg-align"),xn.makeSpan(["mrel","x-arrow"],[On],g)},mathmlBuilder(A,g){var S=ja.mathMLnode(A.label);S.setAttribute("minsize",A.label.charAt(0)==="x"?"1.75em":"3.0em");var R;if(A.body){var Y=Wa(jr(A.body,g));if(A.below){var se=Wa(jr(A.below,g));R=new Hi.MathNode("munderover",[S,se,Y])}else R=new Hi.MathNode("mover",[S,Y])}else if(A.below){var Z=Wa(jr(A.below,g));R=new Hi.MathNode("munder",[S,Z])}else R=Wa(),R=new Hi.MathNode("mover",[S,R]);return R}});var Bu=xn.makeSpan;function Al(A,g){var S=Oo(A.body,g,!0);return Bu([A.mclass],S,g)}function us(A,g){var S,R=ns(A.body,g);return A.mclass==="minner"?S=new Hi.MathNode("mpadded",R):A.mclass==="mord"?A.isCharacterBox?(S=R[0],S.type="mi"):S=new Hi.MathNode("mi",R):(A.isCharacterBox?(S=R[0],S.type="mo"):S=new Hi.MathNode("mo",R),A.mclass==="mbin"?(S.attributes.lspace="0.22em",S.attributes.rspace="0.22em"):A.mclass==="mpunct"?(S.attributes.lspace="0em",S.attributes.rspace="0.17em"):A.mclass==="mopen"||A.mclass==="mclose"?(S.attributes.lspace="0em",S.attributes.rspace="0em"):A.mclass==="minner"&&(S.attributes.lspace="0.0556em",S.attributes.width="+0.1111em")),S}Di({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(A,g){var{parser:S,funcName:R}=A,Y=g[0];return{type:"mclass",mode:S.mode,mclass:"m"+R.slice(5),body:Go(Y),isCharacterBox:T.isCharacterBox(Y)}},htmlBuilder:Al,mathmlBuilder:us});var xr=A=>{var g=A.type==="ordgroup"&&A.body.length?A.body[0]:A;return g.type==="atom"&&(g.family==="bin"||g.family==="rel")?"m"+g.family:"mord"};Di({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(A,g){var{parser:S}=A;return{type:"mclass",mode:S.mode,mclass:xr(g[0]),body:Go(g[1]),isCharacterBox:T.isCharacterBox(g[1])}}}),Di({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(A,g){var{parser:S,funcName:R}=A,Y=g[1],se=g[0],Z;R!=="\\stackrel"?Z=xr(Y):Z="mrel";var rt={type:"op",mode:Y.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:R!=="\\stackrel",body:Go(Y)},lt={type:"supsub",mode:se.mode,base:rt,sup:R==="\\underset"?null:se,sub:R==="\\underset"?se:null};return{type:"mclass",mode:S.mode,mclass:Z,body:[lt],isCharacterBox:T.isCharacterBox(lt)}},htmlBuilder:Al,mathmlBuilder:us}),Di({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(A,g){var{parser:S}=A;return{type:"pmb",mode:S.mode,mclass:xr(g[0]),body:Go(g[0])}},htmlBuilder(A,g){var S=Oo(A.body,g,!0),R=xn.makeSpan([A.mclass],S,g);return R.style.textShadow="0.02em 0.01em 0.04px",R},mathmlBuilder(A,g){var S=ns(A.body,g),R=new Hi.MathNode("mstyle",S);return R.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),R}});var Ta={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Qs=()=>({type:"styling",body:[],mode:"math",style:"display"}),Wo=A=>A.type==="textord"&&A.text==="@",Gr=(A,g)=>(A.type==="mathord"||A.type==="atom")&&A.text===g;function Ts(A,g,S){var R=Ta[A];switch(R){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return S.callFunction(R,[g[0]],[g[1]]);case"\\uparrow":case"\\downarrow":{var Y=S.callFunction("\\\\cdleft",[g[0]],[]),se={type:"atom",text:R,mode:"math",family:"rel"},Z=S.callFunction("\\Big",[se],[]),rt=S.callFunction("\\\\cdright",[g[1]],[]),lt={type:"ordgroup",mode:"math",body:[Y,Z,rt]};return S.callFunction("\\\\cdparent",[lt],[])}case"\\\\cdlongequal":return S.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var pn={type:"textord",text:"\\Vert",mode:"math"};return S.callFunction("\\Big",[pn],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Na(A){var g=[];for(A.gullet.beginGroup(),A.gullet.macros.set("\\cr","\\\\\\relax"),A.gullet.beginGroup();;){g.push(A.parseExpression(!1,"\\\\")),A.gullet.endGroup(),A.gullet.beginGroup();var S=A.fetch().text;if(S==="&"||S==="\\\\")A.consume();else if(S==="\\end"){g[g.length-1].length===0&&g.pop();break}else throw new Rt("Expected \\\\ or \\cr or \\end",A.nextToken)}for(var R=[],Y=[R],se=0;se<g.length;se++){for(var Z=g[se],rt=Qs(),lt=0;lt<Z.length;lt++)if(!Wo(Z[lt]))rt.body.push(Z[lt]);else{R.push(rt),lt+=1;var pn=An(Z[lt]).text,On=new Array(2);if(On[0]={type:"ordgroup",mode:"math",body:[]},On[1]={type:"ordgroup",mode:"math",body:[]},!("=|.".indexOf(pn)>-1))if("<>AV".indexOf(pn)>-1)for(var Yn=0;Yn<2;Yn++){for(var wi=!0,Ci=lt+1;Ci<Z.length;Ci++){if(Gr(Z[Ci],pn)){wi=!1,lt=Ci;break}if(Wo(Z[Ci]))throw new Rt("Missing a "+pn+" character to complete a CD arrow.",Z[Ci]);On[Yn].body.push(Z[Ci])}if(wi)throw new Rt("Missing a "+pn+" character to complete a CD arrow.",Z[lt])}else throw new Rt('Expected one of "<>AV=|." after @',Z[lt]);var Pi=Ts(pn,On,A),hr={type:"styling",body:[Pi],mode:"math",style:"display"};R.push(hr),rt=Qs()}se%2===0?R.push(rt):R.shift(),R=[],Y.push(R)}A.gullet.endGroup(),A.gullet.endGroup();var kr=new Array(Y[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:Y,arraystretch:1,addJot:!0,rowGaps:[null],cols:kr,colSeparationType:"CD",hLinesBeforeRow:new Array(Y.length+1).fill([])}}Di({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(A,g){var{parser:S,funcName:R}=A;return{type:"cdlabel",mode:S.mode,side:R.slice(4),label:g[0]}},htmlBuilder(A,g){var S=g.havingStyle(g.style.sup()),R=xn.wrapFragment(Ao(A.label,S,g),g);return R.classes.push("cd-label-"+A.side),R.style.bottom=rn(.8-R.depth),R.height=0,R.depth=0,R},mathmlBuilder(A,g){var S=new Hi.MathNode("mrow",[jr(A.label,g)]);return S=new Hi.MathNode("mpadded",[S]),S.setAttribute("width","0"),A.side==="left"&&S.setAttribute("lspace","-1width"),S.setAttribute("voffset","0.7em"),S=new Hi.MathNode("mstyle",[S]),S.setAttribute("displaystyle","false"),S.setAttribute("scriptlevel","1"),S}}),Di({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(A,g){var{parser:S}=A;return{type:"cdlabelparent",mode:S.mode,fragment:g[0]}},htmlBuilder(A,g){var S=xn.wrapFragment(Ao(A.fragment,g),g);return S.classes.push("cd-vert-arrow"),S},mathmlBuilder(A,g){return new Hi.MathNode("mrow",[jr(A.fragment,g)])}}),Di({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(A,g){for(var{parser:S}=A,R=Ke(g[0],"ordgroup"),Y=R.body,se="",Z=0;Z<Y.length;Z++){var rt=Ke(Y[Z],"textord");se+=rt.text}var lt=parseInt(se),pn;if(isNaN(lt))throw new Rt("\\@char has non-numeric argument "+se);if(lt<0||lt>=1114111)throw new Rt("\\@char with invalid code point "+se);return lt<=65535?pn=String.fromCharCode(lt):(lt-=65536,pn=String.fromCharCode((lt>>10)+55296,(lt&1023)+56320)),{type:"textord",mode:S.mode,text:pn}}});var _o=(A,g)=>{var S=Oo(A.body,g.withColor(A.color),!1);return xn.makeFragment(S)},Ma=(A,g)=>{var S=ns(A.body,g.withColor(A.color)),R=new Hi.MathNode("mstyle",S);return R.setAttribute("mathcolor",A.color),R};Di({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(A,g){var{parser:S}=A,R=Ke(g[0],"color-token").color,Y=g[1];return{type:"color",mode:S.mode,color:R,body:Go(Y)}},htmlBuilder:_o,mathmlBuilder:Ma}),Di({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(A,g){var{parser:S,breakOnTokenText:R}=A,Y=Ke(g[0],"color-token").color;S.gullet.macros.set("\\current@color",Y);var se=S.parseExpression(!0,R);return{type:"color",mode:S.mode,color:Y,body:se}},htmlBuilder:_o,mathmlBuilder:Ma}),Di({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(A,g,S){var{parser:R}=A,Y=R.gullet.future().text==="["?R.parseSizeGroup(!0):null,se=!R.settings.displayMode||!R.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:R.mode,newLine:se,size:Y&&Ke(Y,"size").value}},htmlBuilder(A,g){var S=xn.makeSpan(["mspace"],[],g);return A.newLine&&(S.classes.push("newline"),A.size&&(S.style.marginTop=rn(yn(A.size,g)))),S},mathmlBuilder(A,g){var S=new Hi.MathNode("mspace");return A.newLine&&(S.setAttribute("linebreak","newline"),A.size&&S.setAttribute("height",rn(yn(A.size,g)))),S}});var Hs={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},uu=A=>{var g=A.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(g))throw new Rt("Expected a control sequence",A);return g},uo=A=>{var g=A.gullet.popToken();return g.text==="="&&(g=A.gullet.popToken(),g.text===" "&&(g=A.gullet.popToken())),g},sa=(A,g,S,R)=>{var Y=A.gullet.macros.get(S.text);Y==null&&(S.noexpand=!0,Y={tokens:[S],numArgs:0,unexpandable:!A.gullet.isExpandable(S.text)}),A.gullet.macros.set(g,Y,R)};Di({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(A){var{parser:g,funcName:S}=A;g.consumeSpaces();var R=g.fetch();if(Hs[R.text])return(S==="\\global"||S==="\\\\globallong")&&(R.text=Hs[R.text]),Ke(g.parseFunction(),"internal");throw new Rt("Invalid token after macro prefix",R)}}),Di({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(A){var{parser:g,funcName:S}=A,R=g.gullet.popToken(),Y=R.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(Y))throw new Rt("Expected a control sequence",R);for(var se=0,Z,rt=[[]];g.gullet.future().text!=="{";)if(R=g.gullet.popToken(),R.text==="#"){if(g.gullet.future().text==="{"){Z=g.gullet.future(),rt[se].push("{");break}if(R=g.gullet.popToken(),!/^[1-9]$/.test(R.text))throw new Rt('Invalid argument number "'+R.text+'"');if(parseInt(R.text)!==se+1)throw new Rt('Argument number "'+R.text+'" out of order');se++,rt.push([])}else{if(R.text==="EOF")throw new Rt("Expected a macro definition");rt[se].push(R.text)}var{tokens:lt}=g.gullet.consumeArg();return Z&<.unshift(Z),(S==="\\edef"||S==="\\xdef")&&(lt=g.gullet.expandTokens(lt),lt.reverse()),g.gullet.macros.set(Y,{tokens:lt,numArgs:se,delimiters:rt},S===Hs[S]),{type:"internal",mode:g.mode}}}),Di({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(A){var{parser:g,funcName:S}=A,R=uu(g.gullet.popToken());g.gullet.consumeSpaces();var Y=uo(g);return sa(g,R,Y,S==="\\\\globallet"),{type:"internal",mode:g.mode}}}),Di({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(A){var{parser:g,funcName:S}=A,R=uu(g.gullet.popToken()),Y=g.gullet.popToken(),se=g.gullet.popToken();return sa(g,R,se,S==="\\\\globalfuture"),g.gullet.pushToken(se),g.gullet.pushToken(Y),{type:"internal",mode:g.mode}}});var io=function(g,S,R){var Y=Ki.math[g]&&Ki.math[g].replace,se=at(Y||g,S,R);if(!se)throw new Error("Unsupported symbol "+g+" and font size "+S+".");return se},zo=function(g,S,R,Y){var se=R.havingBaseStyle(S),Z=xn.makeSpan(Y.concat(se.sizingClasses(R)),[g],R),rt=se.sizeMultiplier/R.sizeMultiplier;return Z.height*=rt,Z.depth*=rt,Z.maxFontSize=se.sizeMultiplier,Z},os=function(g,S,R){var Y=S.havingBaseStyle(R),se=(1-S.sizeMultiplier/Y.sizeMultiplier)*S.fontMetrics().axisHeight;g.classes.push("delimcenter"),g.style.top=rn(se),g.height-=se,g.depth+=se},ps=function(g,S,R,Y,se,Z){var rt=xn.makeSymbol(g,"Main-Regular",se,Y),lt=zo(rt,S,Y,Z);return R&&os(lt,Y,S),lt},wo=function(g,S,R,Y){return xn.makeSymbol(g,"Size"+S+"-Regular",R,Y)},cu=function(g,S,R,Y,se,Z){var rt=wo(g,S,se,Y),lt=zo(xn.makeSpan(["delimsizing","size"+S],[rt],Y),kt.TEXT,Y,Z);return R&&os(lt,Y,kt.TEXT),lt},or=function(g,S,R){var Y;S==="Size1-Regular"?Y="delim-size1":Y="delim-size4";var se=xn.makeSpan(["delimsizinginner",Y],[xn.makeSpan([],[xn.makeSymbol(g,S,R)])]);return{type:"elem",elem:se}},Tu=function(g,S,R){var Y=Hr["Size4-Regular"][g.charCodeAt(0)]?Hr["Size4-Regular"][g.charCodeAt(0)][4]:Hr["Size1-Regular"][g.charCodeAt(0)][4],se=new Ai("inner",Rr(g,Math.round(1e3*S))),Z=new Ln([se],{width:rn(Y),height:rn(S),style:"width:"+rn(Y),viewBox:"0 0 "+1e3*Y+" "+Math.round(1e3*S),preserveAspectRatio:"xMinYMin"}),rt=xn.makeSvgSpan([],[Z],R);return rt.height=S,rt.style.height=rn(S),rt.style.width=rn(Y),{type:"elem",elem:rt}},ao=.008,Vu={type:"kern",size:-1*ao},Ku=["|","\\lvert","\\rvert","\\vert"],Yu=["\\|","\\lVert","\\rVert","\\Vert"],Sc=function(g,S,R,Y,se,Z){var rt,lt,pn,On,Yn="",wi=0;rt=pn=On=g,lt=null;var Ci="Size1-Regular";g==="\\uparrow"?pn=On="\u23D0":g==="\\Uparrow"?pn=On="\u2016":g==="\\downarrow"?rt=pn="\u23D0":g==="\\Downarrow"?rt=pn="\u2016":g==="\\updownarrow"?(rt="\\uparrow",pn="\u23D0",On="\\downarrow"):g==="\\Updownarrow"?(rt="\\Uparrow",pn="\u2016",On="\\Downarrow"):T.contains(Ku,g)?(pn="\u2223",Yn="vert",wi=333):T.contains(Yu,g)?(pn="\u2225",Yn="doublevert",wi=556):g==="["||g==="\\lbrack"?(rt="\u23A1",pn="\u23A2",On="\u23A3",Ci="Size4-Regular",Yn="lbrack",wi=667):g==="]"||g==="\\rbrack"?(rt="\u23A4",pn="\u23A5",On="\u23A6",Ci="Size4-Regular",Yn="rbrack",wi=667):g==="\\lfloor"||g==="\u230A"?(pn=rt="\u23A2",On="\u23A3",Ci="Size4-Regular",Yn="lfloor",wi=667):g==="\\lceil"||g==="\u2308"?(rt="\u23A1",pn=On="\u23A2",Ci="Size4-Regular",Yn="lceil",wi=667):g==="\\rfloor"||g==="\u230B"?(pn=rt="\u23A5",On="\u23A6",Ci="Size4-Regular",Yn="rfloor",wi=667):g==="\\rceil"||g==="\u2309"?(rt="\u23A4",pn=On="\u23A5",Ci="Size4-Regular",Yn="rceil",wi=667):g==="("||g==="\\lparen"?(rt="\u239B",pn="\u239C",On="\u239D",Ci="Size4-Regular",Yn="lparen",wi=875):g===")"||g==="\\rparen"?(rt="\u239E",pn="\u239F",On="\u23A0",Ci="Size4-Regular",Yn="rparen",wi=875):g==="\\{"||g==="\\lbrace"?(rt="\u23A7",lt="\u23A8",On="\u23A9",pn="\u23AA",Ci="Size4-Regular"):g==="\\}"||g==="\\rbrace"?(rt="\u23AB",lt="\u23AC",On="\u23AD",pn="\u23AA",Ci="Size4-Regular"):g==="\\lgroup"||g==="\u27EE"?(rt="\u23A7",On="\u23A9",pn="\u23AA",Ci="Size4-Regular"):g==="\\rgroup"||g==="\u27EF"?(rt="\u23AB",On="\u23AD",pn="\u23AA",Ci="Size4-Regular"):g==="\\lmoustache"||g==="\u23B0"?(rt="\u23A7",On="\u23AD",pn="\u23AA",Ci="Size4-Regular"):(g==="\\rmoustache"||g==="\u23B1")&&(rt="\u23AB",On="\u23A9",pn="\u23AA",Ci="Size4-Regular");var Pi=io(rt,Ci,se),hr=Pi.height+Pi.depth,kr=io(pn,Ci,se),Ir=kr.height+kr.depth,lo=io(On,Ci,se),No=lo.height+lo.depth,bs=0,Vo=1;if(lt!==null){var Io=io(lt,Ci,se);bs=Io.height+Io.depth,Vo=2}var ss=hr+No+bs,ea=Math.max(0,Math.ceil((S-ss)/(Vo*Ir))),qo=ss+ea*Vo*Ir,hl=Y.fontMetrics().axisHeight;R&&(hl*=Y.sizeMultiplier);var Oa=qo/2-hl,ta=[];if(Yn.length>0){var ba=qo-hr-No,nl=Math.round(qo*1e3),Kl=Yr(Yn,Math.round(ba*1e3)),Aa=new Ai(Yn,Kl),Nu=(wi/1e3).toFixed(3)+"em",Xu=(nl/1e3).toFixed(3)+"em",Pc=new Ln([Aa],{width:Nu,height:Xu,viewBox:"0 0 "+wi+" "+nl}),Ol=xn.makeSvgSpan([],[Pc],Y);Ol.height=nl/1e3,Ol.style.width=Nu,Ol.style.height=Xu,ta.push({type:"elem",elem:Ol})}else{if(ta.push(or(On,Ci,se)),ta.push(Vu),lt===null){var ua=qo-hr-No+2*ao;ta.push(Tu(pn,ua,Y))}else{var Ll=(qo-hr-No-bs)/2+2*ao;ta.push(Tu(pn,Ll,Y)),ta.push(Vu),ta.push(or(lt,Ci,se)),ta.push(Vu),ta.push(Tu(pn,Ll,Y))}ta.push(Vu),ta.push(or(rt,Ci,se))}var Ps=Y.havingBaseStyle(kt.TEXT),jo=xn.makeVList({positionType:"bottom",positionData:Oa,children:ta},Ps);return zo(xn.makeSpan(["delimsizing","mult"],[jo],Ps),kt.TEXT,Y,Z)},el=80,Gl=.08,eu=function(g,S,R,Y,se){var Z=_i(g,Y,R),rt=new Ai(g,Z),lt=new Ln([rt],{width:"400em",height:rn(S),viewBox:"0 0 400000 "+R,preserveAspectRatio:"xMinYMin slice"});return xn.makeSvgSpan(["hide-tail"],[lt],se)},xo=function(g,S){var R=S.havingBaseSizing(),Y=uc("\\surd",g*R.sizeMultiplier,kl,R),se=R.sizeMultiplier,Z=Math.max(0,S.minRuleThickness-S.fontMetrics().sqrtRuleThickness),rt,lt=0,pn=0,On=0,Yn;return Y.type==="small"?(On=1e3+1e3*Z+el,g<1?se=1:g<1.4&&(se=.7),lt=(1+Z+Gl)/se,pn=(1+Z)/se,rt=eu("sqrtMain",lt,On,Z,S),rt.style.minWidth="0.853em",Yn=.833/se):Y.type==="large"?(On=(1e3+el)*hu[Y.size],pn=(hu[Y.size]+Z)/se,lt=(hu[Y.size]+Z+Gl)/se,rt=eu("sqrtSize"+Y.size,lt,On,Z,S),rt.style.minWidth="1.02em",Yn=1/se):(lt=g+Z+Gl,pn=g+Z,On=Math.floor(1e3*g+Z)+el,rt=eu("sqrtTall",lt,On,Z,S),rt.style.minWidth="0.742em",Yn=1.056),rt.height=pn,rt.style.height=rn(lt),{span:rt,advanceWidth:Yn,ruleWidth:(S.fontMetrics().sqrtRuleThickness+Z)*se}},ul=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","\\surd"],Ec=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1"],Wl=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],hu=[0,1.2,1.8,2.4,3],tl=function(g,S,R,Y,se){if(g==="<"||g==="\\lt"||g==="\u27E8"?g="\\langle":(g===">"||g==="\\gt"||g==="\u27E9")&&(g="\\rangle"),T.contains(ul,g)||T.contains(Wl,g))return cu(g,S,!1,R,Y,se);if(T.contains(Ec,g))return Sc(g,hu[S],!1,R,Y,se);throw new Rt("Illegal delimiter: '"+g+"'")},Va=[{type:"small",style:kt.SCRIPTSCRIPT},{type:"small",style:kt.SCRIPT},{type:"small",style:kt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],du=[{type:"small",style:kt.SCRIPTSCRIPT},{type:"small",style:kt.SCRIPT},{type:"small",style:kt.TEXT},{type:"stack"}],kl=[{type:"small",style:kt.SCRIPTSCRIPT},{type:"small",style:kt.SCRIPT},{type:"small",style:kt.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],Vl=function(g){if(g.type==="small")return"Main-Regular";if(g.type==="large")return"Size"+g.size+"-Regular";if(g.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+g.type+"' here.")},uc=function(g,S,R,Y){for(var se=Math.min(2,3-Y.style.size),Z=se;Z<R.length&&R[Z].type!=="stack";Z++){var rt=io(g,Vl(R[Z]),"math"),lt=rt.height+rt.depth;if(R[Z].type==="small"){var pn=Y.havingBaseStyle(R[Z].style);lt*=pn.sizeMultiplier}if(lt>S)return R[Z]}return R[R.length-1]},Zu=function(g,S,R,Y,se,Z){g==="<"||g==="\\lt"||g==="\u27E8"?g="\\langle":(g===">"||g==="\\gt"||g==="\u27E9")&&(g="\\rangle");var rt;T.contains(Wl,g)?rt=Va:T.contains(ul,g)?rt=kl:rt=du;var lt=uc(g,S,rt,Y);return lt.type==="small"?ps(g,lt.style,R,Y,se,Z):lt.type==="large"?cu(g,lt.size,R,Y,se,Z):Sc(g,S,R,Y,se,Z)},Dc=function(g,S,R,Y,se,Z){var rt=Y.fontMetrics().axisHeight*Y.sizeMultiplier,lt=901,pn=5/Y.fontMetrics().ptPerEm,On=Math.max(S-rt,R+rt),Yn=Math.max(On/500*lt,2*On-pn);return Zu(g,Yn,!0,Y,se,Z)},cl={sqrtImage:xo,sizedDelim:tl,sizeToMaxHeight:hu,customSizedDelim:Zu,leftRightDelim:Dc},aa={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Il=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","\u230A","\u230B","\\lceil","\\rceil","\u2308","\u2309","<",">","\\langle","\u27E8","\\rangle","\u27E9","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","\u27EE","\u27EF","\\lmoustache","\\rmoustache","\u23B0","\u23B1","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function cc(A,g){var S=Cu(A);if(S&&T.contains(Il,S.text))return S;throw S?new Rt("Invalid delimiter '"+S.text+"' after '"+g.funcName+"'",A):new Rt("Invalid delimiter type '"+A.type+"'",A)}Di({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(A,g)=>{var S=cc(g[0],A);return{type:"delimsizing",mode:A.parser.mode,size:aa[A.funcName].size,mclass:aa[A.funcName].mclass,delim:S.text}},htmlBuilder:(A,g)=>A.delim==="."?xn.makeSpan([A.mclass]):cl.sizedDelim(A.delim,A.size,g,A.mode,[A.mclass]),mathmlBuilder:A=>{var g=[];A.delim!=="."&&g.push(pa(A.delim,A.mode));var S=new Hi.MathNode("mo",g);A.mclass==="mopen"||A.mclass==="mclose"?S.setAttribute("fence","true"):S.setAttribute("fence","false"),S.setAttribute("stretchy","true");var R=rn(cl.sizeToMaxHeight[A.size]);return S.setAttribute("minsize",R),S.setAttribute("maxsize",R),S}});function Se(A){if(!A.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}Di({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(A,g)=>{var S=A.parser.gullet.macros.get("\\current@color");if(S&&typeof S!="string")throw new Rt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:A.parser.mode,delim:cc(g[0],A).text,color:S}}}),Di({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(A,g)=>{var S=cc(g[0],A),R=A.parser;++R.leftrightDepth;var Y=R.parseExpression(!1);--R.leftrightDepth,R.expect("\\right",!1);var se=Ke(R.parseFunction(),"leftright-right");return{type:"leftright",mode:R.mode,body:Y,left:S.text,right:se.delim,rightColor:se.color}},htmlBuilder:(A,g)=>{Se(A);for(var S=Oo(A.body,g,!0,["mopen","mclose"]),R=0,Y=0,se=!1,Z=0;Z<S.length;Z++)S[Z].isMiddle?se=!0:(R=Math.max(S[Z].height,R),Y=Math.max(S[Z].depth,Y));R*=g.sizeMultiplier,Y*=g.sizeMultiplier;var rt;if(A.left==="."?rt=Nl(g,["mopen"]):rt=cl.leftRightDelim(A.left,R,Y,g,A.mode,["mopen"]),S.unshift(rt),se)for(var lt=1;lt<S.length;lt++){var pn=S[lt],On=pn.isMiddle;On&&(S[lt]=cl.leftRightDelim(On.delim,R,Y,On.options,A.mode,[]))}var Yn;if(A.right===".")Yn=Nl(g,["mclose"]);else{var wi=A.rightColor?g.withColor(A.rightColor):g;Yn=cl.leftRightDelim(A.right,R,Y,wi,A.mode,["mclose"])}return S.push(Yn),xn.makeSpan(["minner"],S,g)},mathmlBuilder:(A,g)=>{Se(A);var S=ns(A.body,g);if(A.left!=="."){var R=new Hi.MathNode("mo",[pa(A.left,A.mode)]);R.setAttribute("fence","true"),S.unshift(R)}if(A.right!=="."){var Y=new Hi.MathNode("mo",[pa(A.right,A.mode)]);Y.setAttribute("fence","true"),A.rightColor&&Y.setAttribute("mathcolor",A.rightColor),S.push(Y)}return Hl(S)}}),Di({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(A,g)=>{var S=cc(g[0],A);if(!A.parser.leftrightDepth)throw new Rt("\\middle without preceding \\left",S);return{type:"middle",mode:A.parser.mode,delim:S.text}},htmlBuilder:(A,g)=>{var S;if(A.delim===".")S=Nl(g,[]);else{S=cl.sizedDelim(A.delim,1,g,A.mode,[]);var R={delim:A.delim,options:g};S.isMiddle=R}return S},mathmlBuilder:(A,g)=>{var S=A.delim==="\\vert"||A.delim==="|"?pa("|","text"):pa(A.delim,A.mode),R=new Hi.MathNode("mo",[S]);return R.setAttribute("fence","true"),R.setAttribute("lspace","0.05em"),R.setAttribute("rspace","0.05em"),R}});var ke=(A,g)=>{var S=xn.wrapFragment(Ao(A.body,g),g),R=A.label.slice(1),Y=g.sizeMultiplier,se,Z=0,rt=T.isCharacterBox(A.body);if(R==="sout")se=xn.makeSpan(["stretchy","sout"]),se.height=g.fontMetrics().defaultRuleThickness/Y,Z=-.5*g.fontMetrics().xHeight;else if(R==="phase"){var lt=yn({number:.6,unit:"pt"},g),pn=yn({number:.35,unit:"ex"},g),On=g.havingBaseSizing();Y=Y/On.sizeMultiplier;var Yn=S.height+S.depth+lt+pn;S.style.paddingLeft=rn(Yn/2+lt);var wi=Math.floor(1e3*Yn*Y),Ci=_(wi),Pi=new Ln([new Ai("phase",Ci)],{width:"400em",height:rn(wi/1e3),viewBox:"0 0 400000 "+wi,preserveAspectRatio:"xMinYMin slice"});se=xn.makeSvgSpan(["hide-tail"],[Pi],g),se.style.height=rn(Yn),Z=S.depth+lt+pn}else{/cancel/.test(R)?rt||S.classes.push("cancel-pad"):R==="angl"?S.classes.push("anglpad"):S.classes.push("boxpad");var hr=0,kr=0,Ir=0;/box/.test(R)?(Ir=Math.max(g.fontMetrics().fboxrule,g.minRuleThickness),hr=g.fontMetrics().fboxsep+(R==="colorbox"?0:Ir),kr=hr):R==="angl"?(Ir=Math.max(g.fontMetrics().defaultRuleThickness,g.minRuleThickness),hr=4*Ir,kr=Math.max(0,.25-S.depth)):(hr=rt?.2:0,kr=hr),se=ja.encloseSpan(S,R,hr,kr,g),/fbox|boxed|fcolorbox/.test(R)?(se.style.borderStyle="solid",se.style.borderWidth=rn(Ir)):R==="angl"&&Ir!==.049&&(se.style.borderTopWidth=rn(Ir),se.style.borderRightWidth=rn(Ir)),Z=S.depth+kr,A.backgroundColor&&(se.style.backgroundColor=A.backgroundColor,A.borderColor&&(se.style.borderColor=A.borderColor))}var lo;if(A.backgroundColor)lo=xn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:se,shift:Z},{type:"elem",elem:S,shift:0}]},g);else{var No=/cancel|phase/.test(R)?["svg-align"]:[];lo=xn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:S,shift:0},{type:"elem",elem:se,shift:Z,wrapperClasses:No}]},g)}return/cancel/.test(R)&&(lo.height=S.height,lo.depth=S.depth),/cancel/.test(R)&&!rt?xn.makeSpan(["mord","cancel-lap"],[lo],g):xn.makeSpan(["mord"],[lo],g)},st=(A,g)=>{var S=0,R=new Hi.MathNode(A.label.indexOf("colorbox")>-1?"mpadded":"menclose",[jr(A.body,g)]);switch(A.label){case"\\cancel":R.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":R.setAttribute("notation","downdiagonalstrike");break;case"\\phase":R.setAttribute("notation","phasorangle");break;case"\\sout":R.setAttribute("notation","horizontalstrike");break;case"\\fbox":R.setAttribute("notation","box");break;case"\\angl":R.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(S=g.fontMetrics().fboxsep*g.fontMetrics().ptPerEm,R.setAttribute("width","+"+2*S+"pt"),R.setAttribute("height","+"+2*S+"pt"),R.setAttribute("lspace",S+"pt"),R.setAttribute("voffset",S+"pt"),A.label==="\\fcolorbox"){var Y=Math.max(g.fontMetrics().fboxrule,g.minRuleThickness);R.setAttribute("style","border: "+Y+"em solid "+String(A.borderColor))}break;case"\\xcancel":R.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return A.backgroundColor&&R.setAttribute("mathbackground",A.backgroundColor),R};Di({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(A,g,S){var{parser:R,funcName:Y}=A,se=Ke(g[0],"color-token").color,Z=g[1];return{type:"enclose",mode:R.mode,label:Y,backgroundColor:se,body:Z}},htmlBuilder:ke,mathmlBuilder:st}),Di({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(A,g,S){var{parser:R,funcName:Y}=A,se=Ke(g[0],"color-token").color,Z=Ke(g[1],"color-token").color,rt=g[2];return{type:"enclose",mode:R.mode,label:Y,backgroundColor:Z,borderColor:se,body:rt}},htmlBuilder:ke,mathmlBuilder:st}),Di({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(A,g){var{parser:S}=A;return{type:"enclose",mode:S.mode,label:"\\fbox",body:g[0]}}}),Di({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(A,g){var{parser:S,funcName:R}=A,Y=g[0];return{type:"enclose",mode:S.mode,label:R,body:Y}},htmlBuilder:ke,mathmlBuilder:st}),Di({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(A,g){var{parser:S}=A;return{type:"enclose",mode:S.mode,label:"\\angl",body:g[0]}}});var pt={};function Lt(A){for(var{type:g,names:S,props:R,handler:Y,htmlBuilder:se,mathmlBuilder:Z}=A,rt={type:g,numArgs:R.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:Y},lt=0;lt<S.length;++lt)pt[S[lt]]=rt;se&&(Ia[g]=se),Z&&(ui[g]=Z)}var Tt={};function me(A,g){Tt[A]=g}function dn(A){var g=[];A.consumeSpaces();var S=A.fetch().text;for(S==="\\relax"&&(A.consume(),A.consumeSpaces(),S=A.fetch().text);S==="\\hline"||S==="\\hdashline";)A.consume(),g.push(S==="\\hdashline"),A.consumeSpaces(),S=A.fetch().text;return g}var an=A=>{var g=A.parser.settings;if(!g.displayMode)throw new Rt("{"+A.envName+"} can be used only in display mode.")};function Pn(A){if(A.indexOf("ed")===-1)return A.indexOf("*")===-1}function Rn(A,g,S){var{hskipBeforeAndAfter:R,addJot:Y,cols:se,arraystretch:Z,colSeparationType:rt,autoTag:lt,singleRow:pn,emptySingleRow:On,maxNumCols:Yn,leqno:wi}=g;if(A.gullet.beginGroup(),pn||A.gullet.macros.set("\\cr","\\\\\\relax"),!Z){var Ci=A.gullet.expandMacroAsText("\\arraystretch");if(Ci==null)Z=1;else if(Z=parseFloat(Ci),!Z||Z<0)throw new Rt("Invalid \\arraystretch: "+Ci)}A.gullet.beginGroup();var Pi=[],hr=[Pi],kr=[],Ir=[],lo=lt!=null?[]:void 0;function No(){lt&&A.gullet.macros.set("\\@eqnsw","1",!0)}function bs(){lo&&(A.gullet.macros.get("\\df@tag")?(lo.push(A.subparse([new hn("\\df@tag")])),A.gullet.macros.set("\\df@tag",void 0,!0)):lo.push(!!lt&&A.gullet.macros.get("\\@eqnsw")==="1"))}for(No(),Ir.push(dn(A));;){var Vo=A.parseExpression(!1,pn?"\\end":"\\\\");A.gullet.endGroup(),A.gullet.beginGroup(),Vo={type:"ordgroup",mode:A.mode,body:Vo},S&&(Vo={type:"styling",mode:A.mode,style:S,body:[Vo]}),Pi.push(Vo);var Io=A.fetch().text;if(Io==="&"){if(Yn&&Pi.length===Yn){if(pn||rt)throw new Rt("Too many tab characters: &",A.nextToken);A.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}A.consume()}else if(Io==="\\end"){bs(),Pi.length===1&&Vo.type==="styling"&&Vo.body[0].body.length===0&&(hr.length>1||!On)&&hr.pop(),Ir.length<hr.length+1&&Ir.push([]);break}else if(Io==="\\\\"){A.consume();var ss=void 0;A.gullet.future().text!==" "&&(ss=A.parseSizeGroup(!0)),kr.push(ss?ss.value:null),bs(),Ir.push(dn(A)),Pi=[],hr.push(Pi),No()}else throw new Rt("Expected & or \\\\ or \\cr or \\end",A.nextToken)}return A.gullet.endGroup(),A.gullet.endGroup(),{type:"array",mode:A.mode,addJot:Y,arraystretch:Z,body:hr,cols:se,rowGaps:kr,hskipBeforeAndAfter:R,hLinesBeforeRow:Ir,colSeparationType:rt,tags:lo,leqno:wi}}function Bn(A){return A.slice(0,1)==="d"?"display":"text"}var E=function(g,S){var R,Y,se=g.body.length,Z=g.hLinesBeforeRow,rt=0,lt=new Array(se),pn=[],On=Math.max(S.fontMetrics().arrayRuleWidth,S.minRuleThickness),Yn=1/S.fontMetrics().ptPerEm,wi=5*Yn;if(g.colSeparationType&&g.colSeparationType==="small"){var Ci=S.havingStyle(kt.SCRIPT).sizeMultiplier;wi=.2778*(Ci/S.sizeMultiplier)}var Pi=g.colSeparationType==="CD"?yn({number:3,unit:"ex"},S):12*Yn,hr=3*Yn,kr=g.arraystretch*Pi,Ir=.7*kr,lo=.3*kr,No=0;function bs(hh){for(var dh=0;dh<hh.length;++dh)dh>0&&(No+=.25),pn.push({pos:No,isDashed:hh[dh]})}for(bs(Z[0]),R=0;R<g.body.length;++R){var Vo=g.body[R],Io=Ir,ss=lo;rt<Vo.length&&(rt=Vo.length);var ea=new Array(Vo.length);for(Y=0;Y<Vo.length;++Y){var qo=Ao(Vo[Y],S);ss<qo.depth&&(ss=qo.depth),Io<qo.height&&(Io=qo.height),ea[Y]=qo}var hl=g.rowGaps[R],Oa=0;hl&&(Oa=yn(hl,S),Oa>0&&(Oa+=lo,ss<Oa&&(ss=Oa),Oa=0)),g.addJot&&(ss+=hr),ea.height=Io,ea.depth=ss,No+=Io,ea.pos=No,No+=ss+Oa,lt[R]=ea,bs(Z[R+1])}var ta=No/2+S.fontMetrics().axisHeight,ba=g.cols||[],nl=[],Kl,Aa,Nu=[];if(g.tags&&g.tags.some(hh=>hh))for(R=0;R<se;++R){var Xu=lt[R],Pc=Xu.pos-ta,Ol=g.tags[R],ua=void 0;Ol===!0?ua=xn.makeSpan(["eqn-num"],[],S):Ol===!1?ua=xn.makeSpan([],[],S):ua=xn.makeSpan([],Oo(Ol,S,!0),S),ua.depth=Xu.depth,ua.height=Xu.height,Nu.push({type:"elem",elem:ua,shift:Pc})}for(Y=0,Aa=0;Y<rt||Aa<ba.length;++Y,++Aa){for(var Ll=ba[Aa]||{},Ps=!0;Ll.type==="separator";){if(Ps||(Kl=xn.makeSpan(["arraycolsep"],[]),Kl.style.width=rn(S.fontMetrics().doubleRuleSep),nl.push(Kl)),Ll.separator==="|"||Ll.separator===":"){var jo=Ll.separator==="|"?"solid":"dashed",hs=xn.makeSpan(["vertical-separator"],[],S);hs.style.height=rn(No),hs.style.borderRightWidth=rn(On),hs.style.borderRightStyle=jo,hs.style.margin="0 "+rn(-On/2);var La=No-ta;La&&(hs.style.verticalAlign=rn(-La)),nl.push(hs)}else throw new Rt("Invalid separator type: "+Ll.separator);Aa++,Ll=ba[Aa]||{},Ps=!1}if(!(Y>=rt)){var Ya=void 0;(Y>0||g.hskipBeforeAndAfter)&&(Ya=T.deflt(Ll.pregap,wi),Ya!==0&&(Kl=xn.makeSpan(["arraycolsep"],[]),Kl.style.width=rn(Ya),nl.push(Kl)));var Za=[];for(R=0;R<se;++R){var wc=lt[R],Au=wc[Y];if(Au){var Xc=wc.pos-ta;Au.depth=wc.depth,Au.height=wc.height,Za.push({type:"elem",elem:Au,shift:Xc})}}Za=xn.makeVList({positionType:"individualShift",children:Za},S),Za=xn.makeSpan(["col-align-"+(Ll.align||"c")],[Za]),nl.push(Za),(Y<rt-1||g.hskipBeforeAndAfter)&&(Ya=T.deflt(Ll.postgap,wi),Ya!==0&&(Kl=xn.makeSpan(["arraycolsep"],[]),Kl.style.width=rn(Ya),nl.push(Kl)))}}if(lt=xn.makeSpan(["mtable"],nl),pn.length>0){for(var pu=xn.makeLineSpan("hline",S,On),Qu=xn.makeLineSpan("hdashline",S,On),ch=[{type:"elem",elem:lt,shift:0}];pn.length>0;){var Bh=pn.pop(),_h=Bh.pos-ta;Bh.isDashed?ch.push({type:"elem",elem:Qu,shift:_h}):ch.push({type:"elem",elem:pu,shift:_h})}lt=xn.makeVList({positionType:"individualShift",children:ch},S)}if(Nu.length===0)return xn.makeSpan(["mord"],[lt],S);var Cc=xn.makeVList({positionType:"individualShift",children:Nu},S);return Cc=xn.makeSpan(["tag"],[Cc],S),xn.makeFragment([lt,Cc])},P={c:"center ",l:"left ",r:"right "},U=function(g,S){for(var R=[],Y=new Hi.MathNode("mtd",[],["mtr-glue"]),se=new Hi.MathNode("mtd",[],["mml-eqn-num"]),Z=0;Z<g.body.length;Z++){for(var rt=g.body[Z],lt=[],pn=0;pn<rt.length;pn++)lt.push(new Hi.MathNode("mtd",[jr(rt[pn],S)]));g.tags&&g.tags[Z]&&(lt.unshift(Y),lt.push(Y),g.leqno?lt.unshift(se):lt.push(se)),R.push(new Hi.MathNode("mtr",lt))}var On=new Hi.MathNode("mtable",R),Yn=g.arraystretch===.5?.1:.16+g.arraystretch-1+(g.addJot?.09:0);On.setAttribute("rowspacing",rn(Yn));var wi="",Ci="";if(g.cols&&g.cols.length>0){var Pi=g.cols,hr="",kr=!1,Ir=0,lo=Pi.length;Pi[0].type==="separator"&&(wi+="top ",Ir=1),Pi[Pi.length-1].type==="separator"&&(wi+="bottom ",lo-=1);for(var No=Ir;No<lo;No++)Pi[No].type==="align"?(Ci+=P[Pi[No].align],kr&&(hr+="none "),kr=!0):Pi[No].type==="separator"&&kr&&(hr+=Pi[No].separator==="|"?"solid ":"dashed ",kr=!1);On.setAttribute("columnalign",Ci.trim()),/[sd]/.test(hr)&&On.setAttribute("columnlines",hr.trim())}if(g.colSeparationType==="align"){for(var bs=g.cols||[],Vo="",Io=1;Io<bs.length;Io++)Vo+=Io%2?"0em ":"1em ";On.setAttribute("columnspacing",Vo.trim())}else g.colSeparationType==="alignat"||g.colSeparationType==="gather"?On.setAttribute("columnspacing","0em"):g.colSeparationType==="small"?On.setAttribute("columnspacing","0.2778em"):g.colSeparationType==="CD"?On.setAttribute("columnspacing","0.5em"):On.setAttribute("columnspacing","1em");var ss="",ea=g.hLinesBeforeRow;wi+=ea[0].length>0?"left ":"",wi+=ea[ea.length-1].length>0?"right ":"";for(var qo=1;qo<ea.length-1;qo++)ss+=ea[qo].length===0?"none ":ea[qo][0]?"dashed ":"solid ";return/[sd]/.test(ss)&&On.setAttribute("rowlines",ss.trim()),wi!==""&&(On=new Hi.MathNode("menclose",[On]),On.setAttribute("notation",wi.trim())),g.arraystretch&&g.arraystretch<1&&(On=new Hi.MathNode("mstyle",[On]),On.setAttribute("scriptlevel","1")),On},q=function(g,S){g.envName.indexOf("ed")===-1&&an(g);var R=[],Y=g.envName.indexOf("at")>-1?"alignat":"align",se=g.envName==="split",Z=Rn(g.parser,{cols:R,addJot:!0,autoTag:se?void 0:Pn(g.envName),emptySingleRow:!0,colSeparationType:Y,maxNumCols:se?2:void 0,leqno:g.parser.settings.leqno},"display"),rt,lt=0,pn={type:"ordgroup",mode:g.mode,body:[]};if(S[0]&&S[0].type==="ordgroup"){for(var On="",Yn=0;Yn<S[0].body.length;Yn++){var wi=Ke(S[0].body[Yn],"textord");On+=wi.text}rt=Number(On),lt=rt*2}var Ci=!lt;Z.body.forEach(function(Ir){for(var lo=1;lo<Ir.length;lo+=2){var No=Ke(Ir[lo],"styling"),bs=Ke(No.body[0],"ordgroup");bs.body.unshift(pn)}if(Ci)lt<Ir.length&&(lt=Ir.length);else{var Vo=Ir.length/2;if(rt<Vo)throw new Rt("Too many math in a row: "+("expected "+rt+", but got "+Vo),Ir[0])}});for(var Pi=0;Pi<lt;++Pi){var hr="r",kr=0;Pi%2===1?hr="l":Pi>0&&Ci&&(kr=1),R[Pi]={type:"align",align:hr,pregap:kr,postgap:0}}return Z.colSeparationType=Ci?"align":"alignat",Z};Lt({type:"array",names:["array","darray"],props:{numArgs:1},handler(A,g){var S=Cu(g[0]),R=S?[g[0]]:Ke(g[0],"ordgroup").body,Y=R.map(function(Z){var rt=An(Z),lt=rt.text;if("lcr".indexOf(lt)!==-1)return{type:"align",align:lt};if(lt==="|")return{type:"separator",separator:"|"};if(lt===":")return{type:"separator",separator:":"};throw new Rt("Unknown column alignment: "+lt,Z)}),se={cols:Y,hskipBeforeAndAfter:!0,maxNumCols:Y.length};return Rn(A.parser,se,Bn(A.envName))},htmlBuilder:E,mathmlBuilder:U}),Lt({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(A){var g={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[A.envName.replace("*","")],S="c",R={hskipBeforeAndAfter:!1,cols:[{type:"align",align:S}]};if(A.envName.charAt(A.envName.length-1)==="*"){var Y=A.parser;if(Y.consumeSpaces(),Y.fetch().text==="["){if(Y.consume(),Y.consumeSpaces(),S=Y.fetch().text,"lcr".indexOf(S)===-1)throw new Rt("Expected l or c or r",Y.nextToken);Y.consume(),Y.consumeSpaces(),Y.expect("]"),Y.consume(),R.cols=[{type:"align",align:S}]}}var se=Rn(A.parser,R,Bn(A.envName)),Z=Math.max(0,...se.body.map(rt=>rt.length));return se.cols=new Array(Z).fill({type:"align",align:S}),g?{type:"leftright",mode:A.mode,body:[se],left:g[0],right:g[1],rightColor:void 0}:se},htmlBuilder:E,mathmlBuilder:U}),Lt({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(A){var g={arraystretch:.5},S=Rn(A.parser,g,"script");return S.colSeparationType="small",S},htmlBuilder:E,mathmlBuilder:U}),Lt({type:"array",names:["subarray"],props:{numArgs:1},handler(A,g){var S=Cu(g[0]),R=S?[g[0]]:Ke(g[0],"ordgroup").body,Y=R.map(function(Z){var rt=An(Z),lt=rt.text;if("lc".indexOf(lt)!==-1)return{type:"align",align:lt};throw new Rt("Unknown column alignment: "+lt,Z)});if(Y.length>1)throw new Rt("{subarray} can contain only one column");var se={cols:Y,hskipBeforeAndAfter:!1,arraystretch:.5};if(se=Rn(A.parser,se,"script"),se.body.length>0&&se.body[0].length>1)throw new Rt("{subarray} can contain only one column");return se},htmlBuilder:E,mathmlBuilder:U}),Lt({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(A){var g={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},S=Rn(A.parser,g,Bn(A.envName));return{type:"leftright",mode:A.mode,body:[S],left:A.envName.indexOf("r")>-1?".":"\\{",right:A.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:E,mathmlBuilder:U}),Lt({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:q,htmlBuilder:E,mathmlBuilder:U}),Lt({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(A){T.contains(["gather","gather*"],A.envName)&&an(A);var g={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:Pn(A.envName),emptySingleRow:!0,leqno:A.parser.settings.leqno};return Rn(A.parser,g,"display")},htmlBuilder:E,mathmlBuilder:U}),Lt({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:q,htmlBuilder:E,mathmlBuilder:U}),Lt({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(A){an(A);var g={autoTag:Pn(A.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:A.parser.settings.leqno};return Rn(A.parser,g,"display")},htmlBuilder:E,mathmlBuilder:U}),Lt({type:"array",names:["CD"],props:{numArgs:0},handler(A){return an(A),Na(A.parser)},htmlBuilder:E,mathmlBuilder:U}),me("\\nonumber","\\gdef\\@eqnsw{0}"),me("\\notag","\\nonumber"),Di({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(A,g){throw new Rt(A.funcName+" valid only within array environment")}});var le=pt;Di({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(A,g){var{parser:S,funcName:R}=A,Y=g[0];if(Y.type!=="ordgroup")throw new Rt("Invalid environment name",Y);for(var se="",Z=0;Z<Y.body.length;++Z)se+=Ke(Y.body[Z],"textord").text;if(R==="\\begin"){if(!le.hasOwnProperty(se))throw new Rt("No such environment: "+se,Y);var rt=le[se],{args:lt,optArgs:pn}=S.parseArguments("\\begin{"+se+"}",rt),On={mode:S.mode,envName:se,parser:S},Yn=rt.handler(On,lt,pn);S.expect("\\end",!1);var wi=S.nextToken,Ci=Ke(S.parseFunction(),"environment");if(Ci.name!==se)throw new Rt("Mismatch: \\begin{"+se+"} matched by \\end{"+Ci.name+"}",wi);return Yn}return{type:"environment",mode:S.mode,name:se,nameGroup:Y}}});var ge=(A,g)=>{var S=A.font,R=g.withFont(S);return Ao(A.body,R)},Me=(A,g)=>{var S=A.font,R=g.withFont(S);return jr(A.body,R)},et={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};Di({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathsfit","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(A,g)=>{var{parser:S,funcName:R}=A,Y=ya(g[0]),se=R;return se in et&&(se=et[se]),{type:"font",mode:S.mode,font:se.slice(1),body:Y}},htmlBuilder:ge,mathmlBuilder:Me}),Di({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(A,g)=>{var{parser:S}=A,R=g[0],Y=T.isCharacterBox(R);return{type:"mclass",mode:S.mode,mclass:xr(R),body:[{type:"font",mode:S.mode,font:"boldsymbol",body:R}],isCharacterBox:Y}}}),Di({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(A,g)=>{var{parser:S,funcName:R,breakOnTokenText:Y}=A,{mode:se}=S,Z=S.parseExpression(!0,Y),rt="math"+R.slice(1);return{type:"font",mode:se,font:rt,body:{type:"ordgroup",mode:S.mode,body:Z}}},htmlBuilder:ge,mathmlBuilder:Me});var zt=(A,g)=>{var S=g;return A==="display"?S=S.id>=kt.SCRIPT.id?S.text():kt.DISPLAY:A==="text"&&S.size===kt.DISPLAY.size?S=kt.TEXT:A==="script"?S=kt.SCRIPT:A==="scriptscript"&&(S=kt.SCRIPTSCRIPT),S},Ft=(A,g)=>{var S=zt(A.size,g.style),R=S.fracNum(),Y=S.fracDen(),se;se=g.havingStyle(R);var Z=Ao(A.numer,se,g);if(A.continued){var rt=8.5/g.fontMetrics().ptPerEm,lt=3.5/g.fontMetrics().ptPerEm;Z.height=Z.height<rt?rt:Z.height,Z.depth=Z.depth<lt?lt:Z.depth}se=g.havingStyle(Y);var pn=Ao(A.denom,se,g),On,Yn,wi;A.hasBarLine?(A.barSize?(Yn=yn(A.barSize,g),On=xn.makeLineSpan("frac-line",g,Yn)):On=xn.makeLineSpan("frac-line",g),Yn=On.height,wi=On.height):(On=null,Yn=0,wi=g.fontMetrics().defaultRuleThickness);var Ci,Pi,hr;S.size===kt.DISPLAY.size||A.size==="display"?(Ci=g.fontMetrics().num1,Yn>0?Pi=3*wi:Pi=7*wi,hr=g.fontMetrics().denom1):(Yn>0?(Ci=g.fontMetrics().num2,Pi=wi):(Ci=g.fontMetrics().num3,Pi=3*wi),hr=g.fontMetrics().denom2);var kr;if(On){var lo=g.fontMetrics().axisHeight;Ci-Z.depth-(lo+.5*Yn)<Pi&&(Ci+=Pi-(Ci-Z.depth-(lo+.5*Yn))),lo-.5*Yn-(pn.height-hr)<Pi&&(hr+=Pi-(lo-.5*Yn-(pn.height-hr)));var No=-(lo-.5*Yn);kr=xn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:pn,shift:hr},{type:"elem",elem:On,shift:No},{type:"elem",elem:Z,shift:-Ci}]},g)}else{var Ir=Ci-Z.depth-(pn.height-hr);Ir<Pi&&(Ci+=.5*(Pi-Ir),hr+=.5*(Pi-Ir)),kr=xn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:pn,shift:hr},{type:"elem",elem:Z,shift:-Ci}]},g)}se=g.havingStyle(S),kr.height*=se.sizeMultiplier/g.sizeMultiplier,kr.depth*=se.sizeMultiplier/g.sizeMultiplier;var bs;S.size===kt.DISPLAY.size?bs=g.fontMetrics().delim1:S.size===kt.SCRIPTSCRIPT.size?bs=g.havingStyle(kt.SCRIPT).fontMetrics().delim2:bs=g.fontMetrics().delim2;var Vo,Io;return A.leftDelim==null?Vo=Nl(g,["mopen"]):Vo=cl.customSizedDelim(A.leftDelim,bs,!0,g.havingStyle(S),A.mode,["mopen"]),A.continued?Io=xn.makeSpan([]):A.rightDelim==null?Io=Nl(g,["mclose"]):Io=cl.customSizedDelim(A.rightDelim,bs,!0,g.havingStyle(S),A.mode,["mclose"]),xn.makeSpan(["mord"].concat(se.sizingClasses(g)),[Vo,xn.makeSpan(["mfrac"],[kr]),Io],g)},gt=(A,g)=>{var S=new Hi.MathNode("mfrac",[jr(A.numer,g),jr(A.denom,g)]);if(!A.hasBarLine)S.setAttribute("linethickness","0px");else if(A.barSize){var R=yn(A.barSize,g);S.setAttribute("linethickness",rn(R))}var Y=zt(A.size,g.style);if(Y.size!==g.style.size){S=new Hi.MathNode("mstyle",[S]);var se=Y.size===kt.DISPLAY.size?"true":"false";S.setAttribute("displaystyle",se),S.setAttribute("scriptlevel","0")}if(A.leftDelim!=null||A.rightDelim!=null){var Z=[];if(A.leftDelim!=null){var rt=new Hi.MathNode("mo",[new Hi.TextNode(A.leftDelim.replace("\\",""))]);rt.setAttribute("fence","true"),Z.push(rt)}if(Z.push(S),A.rightDelim!=null){var lt=new Hi.MathNode("mo",[new Hi.TextNode(A.rightDelim.replace("\\",""))]);lt.setAttribute("fence","true"),Z.push(lt)}return Hl(Z)}return S};Di({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(A,g)=>{var{parser:S,funcName:R}=A,Y=g[0],se=g[1],Z,rt=null,lt=null,pn="auto";switch(R){case"\\dfrac":case"\\frac":case"\\tfrac":Z=!0;break;case"\\\\atopfrac":Z=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":Z=!1,rt="(",lt=")";break;case"\\\\bracefrac":Z=!1,rt="\\{",lt="\\}";break;case"\\\\brackfrac":Z=!1,rt="[",lt="]";break;default:throw new Error("Unrecognized genfrac command")}switch(R){case"\\dfrac":case"\\dbinom":pn="display";break;case"\\tfrac":case"\\tbinom":pn="text";break}return{type:"genfrac",mode:S.mode,continued:!1,numer:Y,denom:se,hasBarLine:Z,leftDelim:rt,rightDelim:lt,size:pn,barSize:null}},htmlBuilder:Ft,mathmlBuilder:gt}),Di({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(A,g)=>{var{parser:S,funcName:R}=A,Y=g[0],se=g[1];return{type:"genfrac",mode:S.mode,continued:!0,numer:Y,denom:se,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}}),Di({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(A){var{parser:g,funcName:S,token:R}=A,Y;switch(S){case"\\over":Y="\\frac";break;case"\\choose":Y="\\binom";break;case"\\atop":Y="\\\\atopfrac";break;case"\\brace":Y="\\\\bracefrac";break;case"\\brack":Y="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:g.mode,replaceWith:Y,token:R}}});var en=["display","text","script","scriptscript"],un=function(g){var S=null;return g.length>0&&(S=g,S=S==="."?null:S),S};Di({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(A,g){var{parser:S}=A,R=g[4],Y=g[5],se=ya(g[0]),Z=se.type==="atom"&&se.family==="open"?un(se.text):null,rt=ya(g[1]),lt=rt.type==="atom"&&rt.family==="close"?un(rt.text):null,pn=Ke(g[2],"size"),On,Yn=null;pn.isBlank?On=!0:(Yn=pn.value,On=Yn.number>0);var wi="auto",Ci=g[3];if(Ci.type==="ordgroup"){if(Ci.body.length>0){var Pi=Ke(Ci.body[0],"textord");wi=en[Number(Pi.text)]}}else Ci=Ke(Ci,"textord"),wi=en[Number(Ci.text)];return{type:"genfrac",mode:S.mode,numer:R,denom:Y,continued:!1,hasBarLine:On,barSize:Yn,leftDelim:Z,rightDelim:lt,size:wi}},htmlBuilder:Ft,mathmlBuilder:gt}),Di({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(A,g){var{parser:S,funcName:R,token:Y}=A;return{type:"infix",mode:S.mode,replaceWith:"\\\\abovefrac",size:Ke(g[0],"size").value,token:Y}}}),Di({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(A,g)=>{var{parser:S,funcName:R}=A,Y=g[0],se=G(Ke(g[1],"infix").size),Z=g[2],rt=se.number>0;return{type:"genfrac",mode:S.mode,numer:Y,denom:Z,continued:!1,hasBarLine:rt,barSize:se,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:Ft,mathmlBuilder:gt});var Ct=(A,g)=>{var S=g.style,R,Y;A.type==="supsub"?(R=A.sup?Ao(A.sup,g.havingStyle(S.sup()),g):Ao(A.sub,g.havingStyle(S.sub()),g),Y=Ke(A.base,"horizBrace")):Y=Ke(A,"horizBrace");var se=Ao(Y.base,g.havingBaseStyle(kt.DISPLAY)),Z=ja.svgSpan(Y,g),rt;if(Y.isOver?(rt=xn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:se},{type:"kern",size:.1},{type:"elem",elem:Z}]},g),rt.children[0].children[0].children[1].classes.push("svg-align")):(rt=xn.makeVList({positionType:"bottom",positionData:se.depth+.1+Z.height,children:[{type:"elem",elem:Z},{type:"kern",size:.1},{type:"elem",elem:se}]},g),rt.children[0].children[0].children[0].classes.push("svg-align")),R){var lt=xn.makeSpan(["mord",Y.isOver?"mover":"munder"],[rt],g);Y.isOver?rt=xn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:lt},{type:"kern",size:.2},{type:"elem",elem:R}]},g):rt=xn.makeVList({positionType:"bottom",positionData:lt.depth+.2+R.height+R.depth,children:[{type:"elem",elem:R},{type:"kern",size:.2},{type:"elem",elem:lt}]},g)}return xn.makeSpan(["mord",Y.isOver?"mover":"munder"],[rt],g)},ai=(A,g)=>{var S=ja.mathMLnode(A.label);return new Hi.MathNode(A.isOver?"mover":"munder",[jr(A.base,g),S])};Di({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(A,g){var{parser:S,funcName:R}=A;return{type:"horizBrace",mode:S.mode,label:R,isOver:/^\\over/.test(R),base:g[0]}},htmlBuilder:Ct,mathmlBuilder:ai}),Di({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(A,g)=>{var{parser:S}=A,R=g[1],Y=Ke(g[0],"url").url;return S.settings.isTrusted({command:"\\href",url:Y})?{type:"href",mode:S.mode,href:Y,body:Go(R)}:S.formatUnsupportedCmd("\\href")},htmlBuilder:(A,g)=>{var S=Oo(A.body,g,!1);return xn.makeAnchor(A.href,[],S,g)},mathmlBuilder:(A,g)=>{var S=Xo(A.body,g);return S instanceof Cs||(S=new Cs("mrow",[S])),S.setAttribute("href",A.href),S}}),Di({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(A,g)=>{var{parser:S}=A,R=Ke(g[0],"url").url;if(!S.settings.isTrusted({command:"\\url",url:R}))return S.formatUnsupportedCmd("\\url");for(var Y=[],se=0;se<R.length;se++){var Z=R[se];Z==="~"&&(Z="\\textasciitilde"),Y.push({type:"textord",mode:"text",text:Z})}var rt={type:"text",mode:S.mode,font:"\\texttt",body:Y};return{type:"href",mode:S.mode,href:R,body:Go(rt)}}}),Di({type:"hbox",names:["\\hbox"],props:{numArgs:1,argTypes:["text"],allowedInText:!0,primitive:!0},handler(A,g){var{parser:S}=A;return{type:"hbox",mode:S.mode,body:Go(g[0])}},htmlBuilder(A,g){var S=Oo(A.body,g,!1);return xn.makeFragment(S)},mathmlBuilder(A,g){return new Hi.MathNode("mrow",ns(A.body,g))}}),Di({type:"html",names:["\\htmlClass","\\htmlId","\\htmlStyle","\\htmlData"],props:{numArgs:2,argTypes:["raw","original"],allowedInText:!0},handler:(A,g)=>{var{parser:S,funcName:R,token:Y}=A,se=Ke(g[0],"raw").string,Z=g[1];S.settings.strict&&S.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var rt,lt={};switch(R){case"\\htmlClass":lt.class=se,rt={command:"\\htmlClass",class:se};break;case"\\htmlId":lt.id=se,rt={command:"\\htmlId",id:se};break;case"\\htmlStyle":lt.style=se,rt={command:"\\htmlStyle",style:se};break;case"\\htmlData":{for(var pn=se.split(","),On=0;On<pn.length;On++){var Yn=pn[On].split("=");if(Yn.length!==2)throw new Rt("Error parsing key-value for \\htmlData");lt["data-"+Yn[0].trim()]=Yn[1].trim()}rt={command:"\\htmlData",attributes:lt};break}default:throw new Error("Unrecognized html command")}return S.settings.isTrusted(rt)?{type:"html",mode:S.mode,attributes:lt,body:Go(Z)}:S.formatUnsupportedCmd(R)},htmlBuilder:(A,g)=>{var S=Oo(A.body,g,!1),R=["enclosing"];A.attributes.class&&R.push(...A.attributes.class.trim().split(/\s+/));var Y=xn.makeSpan(R,S,g);for(var se in A.attributes)se!=="class"&&A.attributes.hasOwnProperty(se)&&Y.setAttribute(se,A.attributes[se]);return Y},mathmlBuilder:(A,g)=>Xo(A.body,g)}),Di({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(A,g)=>{var{parser:S}=A;return{type:"htmlmathml",mode:S.mode,html:Go(g[0]),mathml:Go(g[1])}},htmlBuilder:(A,g)=>{var S=Oo(A.html,g,!1);return xn.makeFragment(S)},mathmlBuilder:(A,g)=>Xo(A.mathml,g)});var ci=function(g){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(g))return{number:+g,unit:"bp"};var S=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(g);if(!S)throw new Rt("Invalid size: '"+g+"' in \\includegraphics");var R={number:+(S[1]+S[2]),unit:S[3]};if(!ut(R))throw new Rt("Invalid unit: '"+R.unit+"' in \\includegraphics.");return R};Di({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(A,g,S)=>{var{parser:R}=A,Y={number:0,unit:"em"},se={number:.9,unit:"em"},Z={number:0,unit:"em"},rt="";if(S[0])for(var lt=Ke(S[0],"raw").string,pn=lt.split(","),On=0;On<pn.length;On++){var Yn=pn[On].split("=");if(Yn.length===2){var wi=Yn[1].trim();switch(Yn[0].trim()){case"alt":rt=wi;break;case"width":Y=ci(wi);break;case"height":se=ci(wi);break;case"totalheight":Z=ci(wi);break;default:throw new Rt("Invalid key: '"+Yn[0]+"' in \\includegraphics.")}}}var Ci=Ke(g[0],"url").url;return rt===""&&(rt=Ci,rt=rt.replace(/^.*[\\/]/,""),rt=rt.substring(0,rt.lastIndexOf("."))),R.settings.isTrusted({command:"\\includegraphics",url:Ci})?{type:"includegraphics",mode:R.mode,alt:rt,width:Y,height:se,totalheight:Z,src:Ci}:R.formatUnsupportedCmd("\\includegraphics")},htmlBuilder:(A,g)=>{var S=yn(A.height,g),R=0;A.totalheight.number>0&&(R=yn(A.totalheight,g)-S);var Y=0;A.width.number>0&&(Y=yn(A.width,g));var se={height:rn(S+R)};Y>0&&(se.width=rn(Y)),R>0&&(se.verticalAlign=rn(-R));var Z=new gn(A.src,A.alt,se);return Z.height=S,Z.depth=R,Z},mathmlBuilder:(A,g)=>{var S=new Hi.MathNode("mglyph",[]);S.setAttribute("alt",A.alt);var R=yn(A.height,g),Y=0;if(A.totalheight.number>0&&(Y=yn(A.totalheight,g)-R,S.setAttribute("valign",rn(-Y))),S.setAttribute("height",rn(R+Y)),A.width.number>0){var se=yn(A.width,g);S.setAttribute("width",rn(se))}return S.setAttribute("src",A.src),S}}),Di({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(A,g){var{parser:S,funcName:R}=A,Y=Ke(g[0],"size");if(S.settings.strict){var se=R[1]==="m",Z=Y.value.unit==="mu";se?(Z||S.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+R+" supports only mu units, "+("not "+Y.value.unit+" units")),S.mode!=="math"&&S.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+R+" works only in math mode")):Z&&S.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+R+" doesn't support mu units")}return{type:"kern",mode:S.mode,dimension:Y.value}},htmlBuilder(A,g){return xn.makeGlue(A.dimension,g)},mathmlBuilder(A,g){var S=yn(A.dimension,g);return new Hi.SpaceNode(S)}}),Di({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(A,g)=>{var{parser:S,funcName:R}=A,Y=g[0];return{type:"lap",mode:S.mode,alignment:R.slice(5),body:Y}},htmlBuilder:(A,g)=>{var S;A.alignment==="clap"?(S=xn.makeSpan([],[Ao(A.body,g)]),S=xn.makeSpan(["inner"],[S],g)):S=xn.makeSpan(["inner"],[Ao(A.body,g)]);var R=xn.makeSpan(["fix"],[]),Y=xn.makeSpan([A.alignment],[S,R],g),se=xn.makeSpan(["strut"]);return se.style.height=rn(Y.height+Y.depth),Y.depth&&(se.style.verticalAlign=rn(-Y.depth)),Y.children.unshift(se),Y=xn.makeSpan(["thinbox"],[Y],g),xn.makeSpan(["mord","vbox"],[Y],g)},mathmlBuilder:(A,g)=>{var S=new Hi.MathNode("mpadded",[jr(A.body,g)]);if(A.alignment!=="rlap"){var R=A.alignment==="llap"?"-1":"-0.5";S.setAttribute("lspace",R+"width")}return S.setAttribute("width","0px"),S}}),Di({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(A,g){var{funcName:S,parser:R}=A,Y=R.mode;R.switchMode("math");var se=S==="\\("?"\\)":"$",Z=R.parseExpression(!1,se);return R.expect(se),R.switchMode(Y),{type:"styling",mode:R.mode,style:"text",body:Z}}}),Di({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(A,g){throw new Rt("Mismatched "+A.funcName)}});var ti=(A,g)=>{switch(g.style.size){case kt.DISPLAY.size:return A.display;case kt.TEXT.size:return A.text;case kt.SCRIPT.size:return A.script;case kt.SCRIPTSCRIPT.size:return A.scriptscript;default:return A.text}};Di({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(A,g)=>{var{parser:S}=A;return{type:"mathchoice",mode:S.mode,display:Go(g[0]),text:Go(g[1]),script:Go(g[2]),scriptscript:Go(g[3])}},htmlBuilder:(A,g)=>{var S=ti(A,g),R=Oo(S,g,!1);return xn.makeFragment(R)},mathmlBuilder:(A,g)=>{var S=ti(A,g);return Xo(S,g)}});var Xn=(A,g,S,R,Y,se,Z)=>{A=xn.makeSpan([],[A]);var rt=S&&T.isCharacterBox(S),lt,pn;if(g){var On=Ao(g,R.havingStyle(Y.sup()),R);pn={elem:On,kern:Math.max(R.fontMetrics().bigOpSpacing1,R.fontMetrics().bigOpSpacing3-On.depth)}}if(S){var Yn=Ao(S,R.havingStyle(Y.sub()),R);lt={elem:Yn,kern:Math.max(R.fontMetrics().bigOpSpacing2,R.fontMetrics().bigOpSpacing4-Yn.height)}}var wi;if(pn&<){var Ci=R.fontMetrics().bigOpSpacing5+lt.elem.height+lt.elem.depth+lt.kern+A.depth+Z;wi=xn.makeVList({positionType:"bottom",positionData:Ci,children:[{type:"kern",size:R.fontMetrics().bigOpSpacing5},{type:"elem",elem:lt.elem,marginLeft:rn(-se)},{type:"kern",size:lt.kern},{type:"elem",elem:A},{type:"kern",size:pn.kern},{type:"elem",elem:pn.elem,marginLeft:rn(se)},{type:"kern",size:R.fontMetrics().bigOpSpacing5}]},R)}else if(lt){var Pi=A.height-Z;wi=xn.makeVList({positionType:"top",positionData:Pi,children:[{type:"kern",size:R.fontMetrics().bigOpSpacing5},{type:"elem",elem:lt.elem,marginLeft:rn(-se)},{type:"kern",size:lt.kern},{type:"elem",elem:A}]},R)}else if(pn){var hr=A.depth+Z;wi=xn.makeVList({positionType:"bottom",positionData:hr,children:[{type:"elem",elem:A},{type:"kern",size:pn.kern},{type:"elem",elem:pn.elem,marginLeft:rn(se)},{type:"kern",size:R.fontMetrics().bigOpSpacing5}]},R)}else return A;var kr=[wi];if(lt&&se!==0&&!rt){var Ir=xn.makeSpan(["mspace"],[],R);Ir.style.marginRight=rn(se),kr.unshift(Ir)}return xn.makeSpan(["mop","op-limits"],kr,R)},yi=["\\smallint"],gi=(A,g)=>{var S,R,Y=!1,se;A.type==="supsub"?(S=A.sup,R=A.sub,se=Ke(A.base,"op"),Y=!0):se=Ke(A,"op");var Z=g.style,rt=!1;Z.size===kt.DISPLAY.size&&se.symbol&&!T.contains(yi,se.name)&&(rt=!0);var lt;if(se.symbol){var pn=rt?"Size2-Regular":"Size1-Regular",On="";if((se.name==="\\oiint"||se.name==="\\oiiint")&&(On=se.name.slice(1),se.name=On==="oiint"?"\\iint":"\\iiint"),lt=xn.makeSymbol(se.name,pn,"math",g,["mop","op-symbol",rt?"large-op":"small-op"]),On.length>0){var Yn=lt.italic,wi=xn.staticSvg(On+"Size"+(rt?"2":"1"),g);lt=xn.makeVList({positionType:"individualShift",children:[{type:"elem",elem:lt,shift:0},{type:"elem",elem:wi,shift:rt?.08:0}]},g),se.name="\\"+On,lt.classes.unshift("mop"),lt.italic=Yn}}else if(se.body){var Ci=Oo(se.body,g,!0);Ci.length===1&&Ci[0]instanceof En?(lt=Ci[0],lt.classes[0]="mop"):lt=xn.makeSpan(["mop"],Ci,g)}else{for(var Pi=[],hr=1;hr<se.name.length;hr++)Pi.push(xn.mathsym(se.name[hr],se.mode,g));lt=xn.makeSpan(["mop"],Pi,g)}var kr=0,Ir=0;return(lt instanceof En||se.name==="\\oiint"||se.name==="\\oiiint")&&!se.suppressBaseShift&&(kr=(lt.height-lt.depth)/2-g.fontMetrics().axisHeight,Ir=lt.italic),Y?Xn(lt,S,R,g,Z,Ir,kr):(kr&&(lt.style.position="relative",lt.style.top=rn(kr)),lt)},ji=(A,g)=>{var S;if(A.symbol)S=new Cs("mo",[pa(A.name,A.mode)]),T.contains(yi,A.name)&&S.setAttribute("largeop","false");else if(A.body)S=new Cs("mo",ns(A.body,g));else{S=new Cs("mi",[new Zo(A.name.slice(1))]);var R=new Cs("mo",[pa("\u2061","text")]);A.parentIsSupSub?S=new Cs("mrow",[S,R]):S=Eu([S,R])}return S},h={"\u220F":"\\prod","\u2210":"\\coprod","\u2211":"\\sum","\u22C0":"\\bigwedge","\u22C1":"\\bigvee","\u22C2":"\\bigcap","\u22C3":"\\bigcup","\u2A00":"\\bigodot","\u2A01":"\\bigoplus","\u2A02":"\\bigotimes","\u2A04":"\\biguplus","\u2A06":"\\bigsqcup"};Di({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","\u220F","\u2210","\u2211","\u22C0","\u22C1","\u22C2","\u22C3","\u2A00","\u2A01","\u2A02","\u2A04","\u2A06"],props:{numArgs:0},handler:(A,g)=>{var{parser:S,funcName:R}=A,Y=R;return Y.length===1&&(Y=h[Y]),{type:"op",mode:S.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:Y}},htmlBuilder:gi,mathmlBuilder:ji}),Di({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(A,g)=>{var{parser:S}=A,R=g[0];return{type:"op",mode:S.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:Go(R)}},htmlBuilder:gi,mathmlBuilder:ji});var m={"\u222B":"\\int","\u222C":"\\iint","\u222D":"\\iiint","\u222E":"\\oint","\u222F":"\\oiint","\u2230":"\\oiiint"};Di({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(A){var{parser:g,funcName:S}=A;return{type:"op",mode:g.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:S}},htmlBuilder:gi,mathmlBuilder:ji}),Di({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(A){var{parser:g,funcName:S}=A;return{type:"op",mode:g.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:S}},htmlBuilder:gi,mathmlBuilder:ji}),Di({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","\u222B","\u222C","\u222D","\u222E","\u222F","\u2230"],props:{numArgs:0},handler(A){var{parser:g,funcName:S}=A,R=S;return R.length===1&&(R=m[R]),{type:"op",mode:g.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:R}},htmlBuilder:gi,mathmlBuilder:ji});var W=(A,g)=>{var S,R,Y=!1,se;A.type==="supsub"?(S=A.sup,R=A.sub,se=Ke(A.base,"operatorname"),Y=!0):se=Ke(A,"operatorname");var Z;if(se.body.length>0){for(var rt=se.body.map(Yn=>{var wi=Yn.text;return typeof wi=="string"?{type:"textord",mode:Yn.mode,text:wi}:Yn}),lt=Oo(rt,g.withFont("mathrm"),!0),pn=0;pn<lt.length;pn++){var On=lt[pn];On instanceof En&&(On.text=On.text.replace(/\u2212/,"-").replace(/\u2217/,"*"))}Z=xn.makeSpan(["mop"],lt,g)}else Z=xn.makeSpan(["mop"],[],g);return Y?Xn(Z,S,R,g,g.style,0,0):Z},Ve=(A,g)=>{for(var S=ns(A.body,g.withFont("mathrm")),R=!0,Y=0;Y<S.length;Y++){var se=S[Y];if(!(se instanceof Hi.SpaceNode))if(se instanceof Hi.MathNode)switch(se.type){case"mi":case"mn":case"ms":case"mspace":case"mtext":break;case"mo":{var Z=se.children[0];se.children.length===1&&Z instanceof Hi.TextNode?Z.text=Z.text.replace(/\u2212/,"-").replace(/\u2217/,"*"):R=!1;break}default:R=!1}else R=!1}if(R){var rt=S.map(On=>On.toText()).join("");S=[new Hi.TextNode(rt)]}var lt=new Hi.MathNode("mi",S);lt.setAttribute("mathvariant","normal");var pn=new Hi.MathNode("mo",[pa("\u2061","text")]);return A.parentIsSupSub?new Hi.MathNode("mrow",[lt,pn]):Hi.newDocumentFragment([lt,pn])};Di({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(A,g)=>{var{parser:S,funcName:R}=A,Y=g[0];return{type:"operatorname",mode:S.mode,body:Go(Y),alwaysHandleSupSub:R==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:W,mathmlBuilder:Ve}),me("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@"),Yo({type:"ordgroup",htmlBuilder(A,g){return A.semisimple?xn.makeFragment(Oo(A.body,g,!1)):xn.makeSpan(["mord"],Oo(A.body,g,!0),g)},mathmlBuilder(A,g){return Xo(A.body,g,!0)}}),Di({type:"overline",names:["\\overline"],props:{numArgs:1},handler(A,g){var{parser:S}=A,R=g[0];return{type:"overline",mode:S.mode,body:R}},htmlBuilder(A,g){var S=Ao(A.body,g.havingCrampedStyle()),R=xn.makeLineSpan("overline-line",g),Y=g.fontMetrics().defaultRuleThickness,se=xn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S},{type:"kern",size:3*Y},{type:"elem",elem:R},{type:"kern",size:Y}]},g);return xn.makeSpan(["mord","overline"],[se],g)},mathmlBuilder(A,g){var S=new Hi.MathNode("mo",[new Hi.TextNode("\u203E")]);S.setAttribute("stretchy","true");var R=new Hi.MathNode("mover",[jr(A.body,g),S]);return R.setAttribute("accent","true"),R}}),Di({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(A,g)=>{var{parser:S}=A,R=g[0];return{type:"phantom",mode:S.mode,body:Go(R)}},htmlBuilder:(A,g)=>{var S=Oo(A.body,g.withPhantom(),!1);return xn.makeFragment(S)},mathmlBuilder:(A,g)=>{var S=ns(A.body,g);return new Hi.MathNode("mphantom",S)}}),Di({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(A,g)=>{var{parser:S}=A,R=g[0];return{type:"hphantom",mode:S.mode,body:R}},htmlBuilder:(A,g)=>{var S=xn.makeSpan([],[Ao(A.body,g.withPhantom())]);if(S.height=0,S.depth=0,S.children)for(var R=0;R<S.children.length;R++)S.children[R].height=0,S.children[R].depth=0;return S=xn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S}]},g),xn.makeSpan(["mord"],[S],g)},mathmlBuilder:(A,g)=>{var S=ns(Go(A.body),g),R=new Hi.MathNode("mphantom",S),Y=new Hi.MathNode("mpadded",[R]);return Y.setAttribute("height","0px"),Y.setAttribute("depth","0px"),Y}}),Di({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(A,g)=>{var{parser:S}=A,R=g[0];return{type:"vphantom",mode:S.mode,body:R}},htmlBuilder:(A,g)=>{var S=xn.makeSpan(["inner"],[Ao(A.body,g.withPhantom())]),R=xn.makeSpan(["fix"],[]);return xn.makeSpan(["mord","rlap"],[S,R],g)},mathmlBuilder:(A,g)=>{var S=ns(Go(A.body),g),R=new Hi.MathNode("mphantom",S),Y=new Hi.MathNode("mpadded",[R]);return Y.setAttribute("width","0px"),Y}}),Di({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(A,g){var{parser:S}=A,R=Ke(g[0],"size").value,Y=g[1];return{type:"raisebox",mode:S.mode,dy:R,body:Y}},htmlBuilder(A,g){var S=Ao(A.body,g),R=yn(A.dy,g);return xn.makeVList({positionType:"shift",positionData:-R,children:[{type:"elem",elem:S}]},g)},mathmlBuilder(A,g){var S=new Hi.MathNode("mpadded",[jr(A.body,g)]),R=A.dy.number+A.dy.unit;return S.setAttribute("voffset",R),S}}),Di({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(A){var{parser:g}=A;return{type:"internal",mode:g.mode}}}),Di({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["size","size","size"]},handler(A,g,S){var{parser:R}=A,Y=S[0],se=Ke(g[0],"size"),Z=Ke(g[1],"size");return{type:"rule",mode:R.mode,shift:Y&&Ke(Y,"size").value,width:se.value,height:Z.value}},htmlBuilder(A,g){var S=xn.makeSpan(["mord","rule"],[],g),R=yn(A.width,g),Y=yn(A.height,g),se=A.shift?yn(A.shift,g):0;return S.style.borderRightWidth=rn(R),S.style.borderTopWidth=rn(Y),S.style.bottom=rn(se),S.width=R,S.height=Y+se,S.depth=-se,S.maxFontSize=Y*1.125*g.sizeMultiplier,S},mathmlBuilder(A,g){var S=yn(A.width,g),R=yn(A.height,g),Y=A.shift?yn(A.shift,g):0,se=g.color&&g.getColor()||"black",Z=new Hi.MathNode("mspace");Z.setAttribute("mathbackground",se),Z.setAttribute("width",rn(S)),Z.setAttribute("height",rn(R));var rt=new Hi.MathNode("mpadded",[Z]);return Y>=0?rt.setAttribute("height",rn(Y)):(rt.setAttribute("height",rn(Y)),rt.setAttribute("depth",rn(-Y))),rt.setAttribute("voffset",rn(Y)),rt}});function _t(A,g,S){for(var R=Oo(A,g,!1),Y=g.sizeMultiplier/S.sizeMultiplier,se=0;se<R.length;se++){var Z=R[se].classes.indexOf("sizing");Z<0?Array.prototype.push.apply(R[se].classes,g.sizingClasses(S)):R[se].classes[Z+1]==="reset-size"+g.size&&(R[se].classes[Z+1]="reset-size"+S.size),R[se].height*=Y,R[se].depth*=Y}return xn.makeFragment(R)}var Mn=["\\tiny","\\sixptsize","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"],li=(A,g)=>{var S=g.havingSize(A.size);return _t(A.body,S,g)};Di({type:"sizing",names:Mn,props:{numArgs:0,allowedInText:!0},handler:(A,g)=>{var{breakOnTokenText:S,funcName:R,parser:Y}=A,se=Y.parseExpression(!1,S);return{type:"sizing",mode:Y.mode,size:Mn.indexOf(R)+1,body:se}},htmlBuilder:li,mathmlBuilder:(A,g)=>{var S=g.havingSize(A.size),R=ns(A.body,S),Y=new Hi.MathNode("mstyle",R);return Y.setAttribute("mathsize",rn(S.sizeMultiplier)),Y}}),Di({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(A,g,S)=>{var{parser:R}=A,Y=!1,se=!1,Z=S[0]&&Ke(S[0],"ordgroup");if(Z)for(var rt="",lt=0;lt<Z.body.length;++lt){var pn=Z.body[lt];if(rt=pn.text,rt==="t")Y=!0;else if(rt==="b")se=!0;else{Y=!1,se=!1;break}}else Y=!0,se=!0;var On=g[0];return{type:"smash",mode:R.mode,body:On,smashHeight:Y,smashDepth:se}},htmlBuilder:(A,g)=>{var S=xn.makeSpan([],[Ao(A.body,g)]);if(!A.smashHeight&&!A.smashDepth)return S;if(A.smashHeight&&(S.height=0,S.children))for(var R=0;R<S.children.length;R++)S.children[R].height=0;if(A.smashDepth&&(S.depth=0,S.children))for(var Y=0;Y<S.children.length;Y++)S.children[Y].depth=0;var se=xn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S}]},g);return xn.makeSpan(["mord"],[se],g)},mathmlBuilder:(A,g)=>{var S=new Hi.MathNode("mpadded",[jr(A.body,g)]);return A.smashHeight&&S.setAttribute("height","0px"),A.smashDepth&&S.setAttribute("depth","0px"),S}}),Di({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(A,g,S){var{parser:R}=A,Y=S[0],se=g[0];return{type:"sqrt",mode:R.mode,body:se,index:Y}},htmlBuilder(A,g){var S=Ao(A.body,g.havingCrampedStyle());S.height===0&&(S.height=g.fontMetrics().xHeight),S=xn.wrapFragment(S,g);var R=g.fontMetrics(),Y=R.defaultRuleThickness,se=Y;g.style.id<kt.TEXT.id&&(se=g.fontMetrics().xHeight);var Z=Y+se/4,rt=S.height+S.depth+Z+Y,{span:lt,ruleWidth:pn,advanceWidth:On}=cl.sqrtImage(rt,g),Yn=lt.height-pn;Yn>S.height+S.depth+Z&&(Z=(Z+Yn-S.height-S.depth)/2);var wi=lt.height-S.height-Z-pn;S.style.paddingLeft=rn(On);var Ci=xn.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:S,wrapperClasses:["svg-align"]},{type:"kern",size:-(S.height+wi)},{type:"elem",elem:lt},{type:"kern",size:pn}]},g);if(A.index){var Pi=g.havingStyle(kt.SCRIPTSCRIPT),hr=Ao(A.index,Pi,g),kr=.6*(Ci.height-Ci.depth),Ir=xn.makeVList({positionType:"shift",positionData:-kr,children:[{type:"elem",elem:hr}]},g),lo=xn.makeSpan(["root"],[Ir]);return xn.makeSpan(["mord","sqrt"],[lo,Ci],g)}else return xn.makeSpan(["mord","sqrt"],[Ci],g)},mathmlBuilder(A,g){var{body:S,index:R}=A;return R?new Hi.MathNode("mroot",[jr(S,g),jr(R,g)]):new Hi.MathNode("msqrt",[jr(S,g)])}});var ri={display:kt.DISPLAY,text:kt.TEXT,script:kt.SCRIPT,scriptscript:kt.SCRIPTSCRIPT};Di({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(A,g){var{breakOnTokenText:S,funcName:R,parser:Y}=A,se=Y.parseExpression(!0,S),Z=R.slice(1,R.length-5);return{type:"styling",mode:Y.mode,style:Z,body:se}},htmlBuilder(A,g){var S=ri[A.style],R=g.havingStyle(S).withFont("");return _t(A.body,R,g)},mathmlBuilder(A,g){var S=ri[A.style],R=g.havingStyle(S),Y=ns(A.body,R),se=new Hi.MathNode("mstyle",Y),Z={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},rt=Z[A.style];return se.setAttribute("scriptlevel",rt[0]),se.setAttribute("displaystyle",rt[1]),se}});var Wn=function(g,S){var R=g.base;if(R)if(R.type==="op"){var Y=R.limits&&(S.style.size===kt.DISPLAY.size||R.alwaysHandleSupSub);return Y?gi:null}else if(R.type==="operatorname"){var se=R.alwaysHandleSupSub&&(S.style.size===kt.DISPLAY.size||R.limits);return se?W:null}else{if(R.type==="accent")return T.isCharacterBox(R.base)?jl:null;if(R.type==="horizBrace"){var Z=!g.sub;return Z===R.isOver?Ct:null}else return null}else return null};Yo({type:"supsub",htmlBuilder(A,g){var S=Wn(A,g);if(S)return S(A,g);var{base:R,sup:Y,sub:se}=A,Z=Ao(R,g),rt,lt,pn=g.fontMetrics(),On=0,Yn=0,wi=R&&T.isCharacterBox(R);if(Y){var Ci=g.havingStyle(g.style.sup());rt=Ao(Y,Ci,g),wi||(On=Z.height-Ci.fontMetrics().supDrop*Ci.sizeMultiplier/g.sizeMultiplier)}if(se){var Pi=g.havingStyle(g.style.sub());lt=Ao(se,Pi,g),wi||(Yn=Z.depth+Pi.fontMetrics().subDrop*Pi.sizeMultiplier/g.sizeMultiplier)}var hr;g.style===kt.DISPLAY?hr=pn.sup1:g.style.cramped?hr=pn.sup3:hr=pn.sup2;var kr=g.sizeMultiplier,Ir=rn(.5/pn.ptPerEm/kr),lo=null;if(lt){var No=A.base&&A.base.type==="op"&&A.base.name&&(A.base.name==="\\oiint"||A.base.name==="\\oiiint");(Z instanceof En||No)&&(lo=rn(-Z.italic))}var bs;if(rt&<){On=Math.max(On,hr,rt.depth+.25*pn.xHeight),Yn=Math.max(Yn,pn.sub2);var Vo=pn.defaultRuleThickness,Io=4*Vo;if(On-rt.depth-(lt.height-Yn)<Io){Yn=Io-(On-rt.depth)+lt.height;var ss=.8*pn.xHeight-(On-rt.depth);ss>0&&(On+=ss,Yn-=ss)}var ea=[{type:"elem",elem:lt,shift:Yn,marginRight:Ir,marginLeft:lo},{type:"elem",elem:rt,shift:-On,marginRight:Ir}];bs=xn.makeVList({positionType:"individualShift",children:ea},g)}else if(lt){Yn=Math.max(Yn,pn.sub1,lt.height-.8*pn.xHeight);var qo=[{type:"elem",elem:lt,marginLeft:lo,marginRight:Ir}];bs=xn.makeVList({positionType:"shift",positionData:Yn,children:qo},g)}else if(rt)On=Math.max(On,hr,rt.depth+.25*pn.xHeight),bs=xn.makeVList({positionType:"shift",positionData:-On,children:[{type:"elem",elem:rt,marginRight:Ir}]},g);else throw new Error("supsub must have either sup or sub.");var hl=fa(Z,"right")||"mord";return xn.makeSpan([hl],[Z,xn.makeSpan(["msupsub"],[bs])],g)},mathmlBuilder(A,g){var S=!1,R,Y;A.base&&A.base.type==="horizBrace"&&(Y=!!A.sup,Y===A.base.isOver&&(S=!0,R=A.base.isOver)),A.base&&(A.base.type==="op"||A.base.type==="operatorname")&&(A.base.parentIsSupSub=!0);var se=[jr(A.base,g)];A.sub&&se.push(jr(A.sub,g)),A.sup&&se.push(jr(A.sup,g));var Z;if(S)Z=R?"mover":"munder";else if(A.sub)if(A.sup){var pn=A.base;pn&&pn.type==="op"&&pn.limits&&g.style===kt.DISPLAY||pn&&pn.type==="operatorname"&&pn.alwaysHandleSupSub&&(g.style===kt.DISPLAY||pn.limits)?Z="munderover":Z="msubsup"}else{var lt=A.base;lt&<.type==="op"&<.limits&&(g.style===kt.DISPLAY||lt.alwaysHandleSupSub)||lt&<.type==="operatorname"&<.alwaysHandleSupSub&&(lt.limits||g.style===kt.DISPLAY)?Z="munder":Z="msub"}else{var rt=A.base;rt&&rt.type==="op"&&rt.limits&&(g.style===kt.DISPLAY||rt.alwaysHandleSupSub)||rt&&rt.type==="operatorname"&&rt.alwaysHandleSupSub&&(rt.limits||g.style===kt.DISPLAY)?Z="mover":Z="msup"}return new Hi.MathNode(Z,se)}}),Yo({type:"atom",htmlBuilder(A,g){return xn.mathsym(A.text,A.mode,g,["m"+A.family])},mathmlBuilder(A,g){var S=new Hi.MathNode("mo",[pa(A.text,A.mode)]);if(A.family==="bin"){var R=Lr(A,g);R==="bold-italic"&&S.setAttribute("mathvariant",R)}else A.family==="punct"?S.setAttribute("separator","true"):(A.family==="open"||A.family==="close")&&S.setAttribute("stretchy","false");return S}});var Bi={mi:"italic",mn:"normal",mtext:"normal"};Yo({type:"mathord",htmlBuilder(A,g){return xn.makeOrd(A,g,"mathord")},mathmlBuilder(A,g){var S=new Hi.MathNode("mi",[pa(A.text,A.mode,g)]),R=Lr(A,g)||"italic";return R!==Bi[S.type]&&S.setAttribute("mathvariant",R),S}}),Yo({type:"textord",htmlBuilder(A,g){return xn.makeOrd(A,g,"textord")},mathmlBuilder(A,g){var S=pa(A.text,A.mode,g),R=Lr(A,g)||"normal",Y;return A.mode==="text"?Y=new Hi.MathNode("mtext",[S]):/[0-9]/.test(A.text)?Y=new Hi.MathNode("mn",[S]):A.text==="\\prime"?Y=new Hi.MathNode("mo",[S]):Y=new Hi.MathNode("mi",[S]),R!==Bi[Y.type]&&Y.setAttribute("mathvariant",R),Y}});var cr={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},Ur={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};Yo({type:"spacing",htmlBuilder(A,g){if(Ur.hasOwnProperty(A.text)){var S=Ur[A.text].className||"";if(A.mode==="text"){var R=xn.makeOrd(A,g,"textord");return R.classes.push(S),R}else return xn.makeSpan(["mspace",S],[xn.mathsym(A.text,A.mode,g)],g)}else{if(cr.hasOwnProperty(A.text))return xn.makeSpan(["mspace",cr[A.text]],[],g);throw new Rt('Unknown type of space "'+A.text+'"')}},mathmlBuilder(A,g){var S;if(Ur.hasOwnProperty(A.text))S=new Hi.MathNode("mtext",[new Hi.TextNode("\xA0")]);else{if(cr.hasOwnProperty(A.text))return new Hi.MathNode("mspace");throw new Rt('Unknown type of space "'+A.text+'"')}return S}});var Co=()=>{var A=new Hi.MathNode("mtd",[]);return A.setAttribute("width","50%"),A};Yo({type:"tag",mathmlBuilder(A,g){var S=new Hi.MathNode("mtable",[new Hi.MathNode("mtr",[Co(),new Hi.MathNode("mtd",[Xo(A.body,g)]),Co(),new Hi.MathNode("mtd",[Xo(A.tag,g)])])]);return S.setAttribute("width","100%"),S}});var yr={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},fr={"\\textbf":"textbf","\\textmd":"textmd"},Wt={"\\textit":"textit","\\textup":"textup"},rr=(A,g)=>{var S=A.font;if(S){if(yr[S])return g.withTextFontFamily(yr[S]);if(fr[S])return g.withTextFontWeight(fr[S]);if(S==="\\emph")return g.fontShape==="textit"?g.withTextFontShape("textup"):g.withTextFontShape("textit")}else return g;return g.withTextFontShape(Wt[S])};Di({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(A,g){var{parser:S,funcName:R}=A,Y=g[0];return{type:"text",mode:S.mode,body:Go(Y),font:R}},htmlBuilder(A,g){var S=rr(A,g),R=Oo(A.body,S,!0);return xn.makeSpan(["mord","text"],R,S)},mathmlBuilder(A,g){var S=rr(A,g);return Xo(A.body,S)}}),Di({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(A,g){var{parser:S}=A;return{type:"underline",mode:S.mode,body:g[0]}},htmlBuilder(A,g){var S=Ao(A.body,g),R=xn.makeLineSpan("underline-line",g),Y=g.fontMetrics().defaultRuleThickness,se=xn.makeVList({positionType:"top",positionData:S.height,children:[{type:"kern",size:Y},{type:"elem",elem:R},{type:"kern",size:3*Y},{type:"elem",elem:S}]},g);return xn.makeSpan(["mord","underline"],[se],g)},mathmlBuilder(A,g){var S=new Hi.MathNode("mo",[new Hi.TextNode("\u203E")]);S.setAttribute("stretchy","true");var R=new Hi.MathNode("munder",[jr(A.body,g),S]);return R.setAttribute("accentunder","true"),R}}),Di({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(A,g){var{parser:S}=A;return{type:"vcenter",mode:S.mode,body:g[0]}},htmlBuilder(A,g){var S=Ao(A.body,g),R=g.fontMetrics().axisHeight,Y=.5*(S.height-R-(S.depth+R));return xn.makeVList({positionType:"shift",positionData:Y,children:[{type:"elem",elem:S}]},g)},mathmlBuilder(A,g){return new Hi.MathNode("mpadded",[jr(A.body,g)],["vcenter"])}}),Di({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(A,g,S){throw new Rt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(A,g){for(var S=qr(A),R=[],Y=g.havingStyle(g.style.text()),se=0;se<S.length;se++){var Z=S[se];Z==="~"&&(Z="\\textasciitilde"),R.push(xn.makeSymbol(Z,"Typewriter-Regular",A.mode,Y,["mord","texttt"]))}return xn.makeSpan(["mord","text"].concat(Y.sizingClasses(g)),xn.tryCombineChars(R),Y)},mathmlBuilder(A,g){var S=new Hi.TextNode(qr(A)),R=new Hi.MathNode("mtext",[S]);return R.setAttribute("mathvariant","monospace"),R}});var qr=A=>A.body.replace(/ /g,A.star?"\u2423":"\xA0"),Ut=Da,Cr=`[ \r
|
|
|
]`,eo="\\\\[a-zA-Z@]+",mo="\\\\[^\uD800-\uDFFF]",Vs="("+eo+")"+Cr+"*",Lo=`\\\\(
|
|
|
|[ \r ]+
|
|
|
?)[ \r ]*`,Ks="[\u0300-\u036F]",co=new RegExp(Ks+"+$"),Rs="("+Cr+"+)|"+(Lo+"|")+"([!-\\[\\]-\u2027\u202A-\uD7FF\uF900-\uFFFF]"+(Ks+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(Ks+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+Vs)+("|"+mo+")");class ms{constructor(g,S){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=g,this.settings=S,this.tokenRegex=new RegExp(Rs,"g"),this.catcodes={"%":14,"~":13}}setCatcode(g,S){this.catcodes[g]=S}lex(){var g=this.input,S=this.tokenRegex.lastIndex;if(S===g.length)return new hn("EOF",new vt(this,S,S));var R=this.tokenRegex.exec(g);if(R===null||R.index!==S)throw new Rt("Unexpected character: '"+g[S]+"'",new hn(g[S],new vt(this,S,S+1)));var Y=R[6]||R[3]||(R[2]?"\\ ":" ");if(this.catcodes[Y]===14){var se=g.indexOf(`
|
|
|
`,this.tokenRegex.lastIndex);return se===-1?(this.tokenRegex.lastIndex=g.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=se+1,this.lex()}return new hn(Y,new vt(this,S,this.tokenRegex.lastIndex))}}class $s{constructor(g,S){g===void 0&&(g={}),S===void 0&&(S={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=S,this.builtins=g,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Rt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var g=this.undefStack.pop();for(var S in g)g.hasOwnProperty(S)&&(g[S]==null?delete this.current[S]:this.current[S]=g[S])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(g){return this.current.hasOwnProperty(g)||this.builtins.hasOwnProperty(g)}get(g){return this.current.hasOwnProperty(g)?this.current[g]:this.builtins[g]}set(g,S,R){if(R===void 0&&(R=!1),R){for(var Y=0;Y<this.undefStack.length;Y++)delete this.undefStack[Y][g];this.undefStack.length>0&&(this.undefStack[this.undefStack.length-1][g]=S)}else{var se=this.undefStack[this.undefStack.length-1];se&&!se.hasOwnProperty(g)&&(se[g]=this.current[g])}S==null?delete this.current[g]:this.current[g]=S}}var fu=Tt;me("\\noexpand",function(A){var g=A.popToken();return A.isExpandable(g.text)&&(g.noexpand=!0,g.treatAsRelax=!0),{tokens:[g],numArgs:0}}),me("\\expandafter",function(A){var g=A.popToken();return A.expandOnce(!0),{tokens:[g],numArgs:0}}),me("\\@firstoftwo",function(A){var g=A.consumeArgs(2);return{tokens:g[0],numArgs:0}}),me("\\@secondoftwo",function(A){var g=A.consumeArgs(2);return{tokens:g[1],numArgs:0}}),me("\\@ifnextchar",function(A){var g=A.consumeArgs(3);A.consumeSpaces();var S=A.future();return g[0].length===1&&g[0][0].text===S.text?{tokens:g[1],numArgs:0}:{tokens:g[2],numArgs:0}}),me("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}"),me("\\TextOrMath",function(A){var g=A.consumeArgs(2);return A.mode==="text"?{tokens:g[0],numArgs:0}:{tokens:g[1],numArgs:0}});var ko={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};me("\\char",function(A){var g=A.popToken(),S,R="";if(g.text==="'")S=8,g=A.popToken();else if(g.text==='"')S=16,g=A.popToken();else if(g.text==="`")if(g=A.popToken(),g.text[0]==="\\")R=g.text.charCodeAt(1);else{if(g.text==="EOF")throw new Rt("\\char` missing argument");R=g.text.charCodeAt(0)}else S=10;if(S){if(R=ko[g.text],R==null||R>=S)throw new Rt("Invalid base-"+S+" digit "+g.text);for(var Y;(Y=ko[A.future().text])!=null&&Y<S;)R*=S,R+=Y,A.popToken()}return"\\@char{"+R+"}"});var Uo=(A,g,S,R)=>{var Y=A.consumeArg().tokens;if(Y.length!==1)throw new Rt("\\newcommand's first argument must be a macro name");var se=Y[0].text,Z=A.isDefined(se);if(Z&&!g)throw new Rt("\\newcommand{"+se+"} attempting to redefine "+(se+"; use \\renewcommand"));if(!Z&&!S)throw new Rt("\\renewcommand{"+se+"} when command "+se+" does not yet exist; use \\newcommand");var rt=0;if(Y=A.consumeArg().tokens,Y.length===1&&Y[0].text==="["){for(var lt="",pn=A.expandNextToken();pn.text!=="]"&&pn.text!=="EOF";)lt+=pn.text,pn=A.expandNextToken();if(!lt.match(/^\s*[0-9]+\s*$/))throw new Rt("Invalid number of arguments: "+lt);rt=parseInt(lt),Y=A.consumeArg().tokens}return Z&&R||A.macros.set(se,{tokens:Y,numArgs:rt}),""};me("\\newcommand",A=>Uo(A,!1,!0,!1)),me("\\renewcommand",A=>Uo(A,!0,!1,!1)),me("\\providecommand",A=>Uo(A,!0,!0,!0)),me("\\message",A=>{var g=A.consumeArgs(1)[0];return console.log(g.reverse().map(S=>S.text).join("")),""}),me("\\errmessage",A=>{var g=A.consumeArgs(1)[0];return console.error(g.reverse().map(S=>S.text).join("")),""}),me("\\show",A=>{var g=A.popToken(),S=g.text;return console.log(g,A.macros.get(S),Ut[S],Ki.math[S],Ki.text[S]),""}),me("\\bgroup","{"),me("\\egroup","}"),me("~","\\nobreakspace"),me("\\lq","`"),me("\\rq","'"),me("\\aa","\\r a"),me("\\AA","\\r A"),me("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`\xA9}"),me("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}"),me("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`\xAE}"),me("\u212C","\\mathscr{B}"),me("\u2130","\\mathscr{E}"),me("\u2131","\\mathscr{F}"),me("\u210B","\\mathscr{H}"),me("\u2110","\\mathscr{I}"),me("\u2112","\\mathscr{L}"),me("\u2133","\\mathscr{M}"),me("\u211B","\\mathscr{R}"),me("\u212D","\\mathfrak{C}"),me("\u210C","\\mathfrak{H}"),me("\u2128","\\mathfrak{Z}"),me("\\Bbbk","\\Bbb{k}"),me("\xB7","\\cdotp"),me("\\llap","\\mathllap{\\textrm{#1}}"),me("\\rlap","\\mathrlap{\\textrm{#1}}"),me("\\clap","\\mathclap{\\textrm{#1}}"),me("\\mathstrut","\\vphantom{(}"),me("\\underbar","\\underline{\\text{#1}}"),me("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}'),me("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`\u2260}}"),me("\\ne","\\neq"),me("\u2260","\\neq"),me("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`\u2209}}"),me("\u2209","\\notin"),me("\u2258","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`\u2258}}"),me("\u2259","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`\u2258}}"),me("\u225A","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`\u225A}}"),me("\u225B","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`\u225B}}"),me("\u225D","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`\u225D}}"),me("\u225E","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`\u225E}}"),me("\u225F","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`\u225F}}"),me("\u27C2","\\perp"),me("\u203C","\\mathclose{!\\mkern-0.8mu!}"),me("\u220C","\\notni"),me("\u231C","\\ulcorner"),me("\u231D","\\urcorner"),me("\u231E","\\llcorner"),me("\u231F","\\lrcorner"),me("\xA9","\\copyright"),me("\xAE","\\textregistered"),me("\uFE0F","\\textregistered"),me("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}'),me("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}'),me("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}'),me("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}'),me("\\vdots","{\\varvdots\\rule{0pt}{15pt}}"),me("\u22EE","\\vdots"),me("\\varGamma","\\mathit{\\Gamma}"),me("\\varDelta","\\mathit{\\Delta}"),me("\\varTheta","\\mathit{\\Theta}"),me("\\varLambda","\\mathit{\\Lambda}"),me("\\varXi","\\mathit{\\Xi}"),me("\\varPi","\\mathit{\\Pi}"),me("\\varSigma","\\mathit{\\Sigma}"),me("\\varUpsilon","\\mathit{\\Upsilon}"),me("\\varPhi","\\mathit{\\Phi}"),me("\\varPsi","\\mathit{\\Psi}"),me("\\varOmega","\\mathit{\\Omega}"),me("\\substack","\\begin{subarray}{c}#1\\end{subarray}"),me("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax"),me("\\boxed","\\fbox{$\\displaystyle{#1}$}"),me("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;"),me("\\implies","\\DOTSB\\;\\Longrightarrow\\;"),me("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;"),me("\\dddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ...}}{#1}}"),me("\\ddddot","{\\overset{\\raisebox{-0.1ex}{\\normalsize ....}}{#1}}");var Jo={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};me("\\dots",function(A){var g="\\dotso",S=A.expandAfterFuture().text;return S in Jo?g=Jo[S]:(S.slice(0,4)==="\\not"||S in Ki.math&&T.contains(["bin","rel"],Ki.math[S].group))&&(g="\\dotsb"),g});var Ss={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};me("\\dotso",function(A){var g=A.future().text;return g in Ss?"\\ldots\\,":"\\ldots"}),me("\\dotsc",function(A){var g=A.future().text;return g in Ss&&g!==","?"\\ldots\\,":"\\ldots"}),me("\\cdots",function(A){var g=A.future().text;return g in Ss?"\\@cdots\\,":"\\@cdots"}),me("\\dotsb","\\cdots"),me("\\dotsm","\\cdots"),me("\\dotsi","\\!\\cdots"),me("\\dotsx","\\ldots\\,"),me("\\DOTSI","\\relax"),me("\\DOTSB","\\relax"),me("\\DOTSX","\\relax"),me("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax"),me("\\,","\\tmspace+{3mu}{.1667em}"),me("\\thinspace","\\,"),me("\\>","\\mskip{4mu}"),me("\\:","\\tmspace+{4mu}{.2222em}"),me("\\medspace","\\:"),me("\\;","\\tmspace+{5mu}{.2777em}"),me("\\thickspace","\\;"),me("\\!","\\tmspace-{3mu}{.1667em}"),me("\\negthinspace","\\!"),me("\\negmedspace","\\tmspace-{4mu}{.2222em}"),me("\\negthickspace","\\tmspace-{5mu}{.277em}"),me("\\enspace","\\kern.5em "),me("\\enskip","\\hskip.5em\\relax"),me("\\quad","\\hskip1em\\relax"),me("\\qquad","\\hskip2em\\relax"),me("\\tag","\\@ifstar\\tag@literal\\tag@paren"),me("\\tag@paren","\\tag@literal{({#1})}"),me("\\tag@literal",A=>{if(A.macros.get("\\df@tag"))throw new Rt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"}),me("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}"),me("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)"),me("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}"),me("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1"),me("\\newline","\\\\\\relax"),me("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var js=rn(Hr["Main-Regular"][84][1]-.7*Hr["Main-Regular"][65][1]);me("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+js+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}"),me("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+js+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}"),me("\\hspace","\\@ifstar\\@hspacer\\@hspace"),me("\\@hspace","\\hskip #1\\relax"),me("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax"),me("\\ordinarycolon",":"),me("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}"),me("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}'),me("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}'),me("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}'),me("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}'),me("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}'),me("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}'),me("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}'),me("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}'),me("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}'),me("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}'),me("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}'),me("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}'),me("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}'),me("\u2237","\\dblcolon"),me("\u2239","\\eqcolon"),me("\u2254","\\coloneqq"),me("\u2255","\\eqqcolon"),me("\u2A74","\\Coloneqq"),me("\\ratio","\\vcentcolon"),me("\\coloncolon","\\dblcolon"),me("\\colonequals","\\coloneqq"),me("\\coloncolonequals","\\Coloneqq"),me("\\equalscolon","\\eqqcolon"),me("\\equalscoloncolon","\\Eqqcolon"),me("\\colonminus","\\coloneq"),me("\\coloncolonminus","\\Coloneq"),me("\\minuscolon","\\eqcolon"),me("\\minuscoloncolon","\\Eqcolon"),me("\\coloncolonapprox","\\Colonapprox"),me("\\coloncolonsim","\\Colonsim"),me("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),me("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}"),me("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}"),me("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}"),me("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`\u220C}}"),me("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}"),me("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}"),me("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}"),me("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}"),me("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}"),me("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}"),me("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}"),me("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}"),me("\\gvertneqq","\\html@mathml{\\@gvertneqq}{\u2269}"),me("\\lvertneqq","\\html@mathml{\\@lvertneqq}{\u2268}"),me("\\ngeqq","\\html@mathml{\\@ngeqq}{\u2271}"),me("\\ngeqslant","\\html@mathml{\\@ngeqslant}{\u2271}"),me("\\nleqq","\\html@mathml{\\@nleqq}{\u2270}"),me("\\nleqslant","\\html@mathml{\\@nleqslant}{\u2270}"),me("\\nshortmid","\\html@mathml{\\@nshortmid}{\u2224}"),me("\\nshortparallel","\\html@mathml{\\@nshortparallel}{\u2226}"),me("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{\u2288}"),me("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{\u2289}"),me("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{\u228A}"),me("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{\u2ACB}"),me("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{\u228B}"),me("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{\u2ACC}"),me("\\imath","\\html@mathml{\\@imath}{\u0131}"),me("\\jmath","\\html@mathml{\\@jmath}{\u0237}"),me("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`\u27E6}}"),me("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`\u27E7}}"),me("\u27E6","\\llbracket"),me("\u27E7","\\rrbracket"),me("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`\u2983}}"),me("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`\u2984}}"),me("\u2983","\\lBrace"),me("\u2984","\\rBrace"),me("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`\u29B5}}"),me("\u29B5","\\minuso"),me("\\darr","\\downarrow"),me("\\dArr","\\Downarrow"),me("\\Darr","\\Downarrow"),me("\\lang","\\langle"),me("\\rang","\\rangle"),me("\\uarr","\\uparrow"),me("\\uArr","\\Uparrow"),me("\\Uarr","\\Uparrow"),me("\\N","\\mathbb{N}"),me("\\R","\\mathbb{R}"),me("\\Z","\\mathbb{Z}"),me("\\alef","\\aleph"),me("\\alefsym","\\aleph"),me("\\Alpha","\\mathrm{A}"),me("\\Beta","\\mathrm{B}"),me("\\bull","\\bullet"),me("\\Chi","\\mathrm{X}"),me("\\clubs","\\clubsuit"),me("\\cnums","\\mathbb{C}"),me("\\Complex","\\mathbb{C}"),me("\\Dagger","\\ddagger"),me("\\diamonds","\\diamondsuit"),me("\\empty","\\emptyset"),me("\\Epsilon","\\mathrm{E}"),me("\\Eta","\\mathrm{H}"),me("\\exist","\\exists"),me("\\harr","\\leftrightarrow"),me("\\hArr","\\Leftrightarrow"),me("\\Harr","\\Leftrightarrow"),me("\\hearts","\\heartsuit"),me("\\image","\\Im"),me("\\infin","\\infty"),me("\\Iota","\\mathrm{I}"),me("\\isin","\\in"),me("\\Kappa","\\mathrm{K}"),me("\\larr","\\leftarrow"),me("\\lArr","\\Leftarrow"),me("\\Larr","\\Leftarrow"),me("\\lrarr","\\leftrightarrow"),me("\\lrArr","\\Leftrightarrow"),me("\\Lrarr","\\Leftrightarrow"),me("\\Mu","\\mathrm{M}"),me("\\natnums","\\mathbb{N}"),me("\\Nu","\\mathrm{N}"),me("\\Omicron","\\mathrm{O}"),me("\\plusmn","\\pm"),me("\\rarr","\\rightarrow"),me("\\rArr","\\Rightarrow"),me("\\Rarr","\\Rightarrow"),me("\\real","\\Re"),me("\\reals","\\mathbb{R}"),me("\\Reals","\\mathbb{R}"),me("\\Rho","\\mathrm{P}"),me("\\sdot","\\cdot"),me("\\sect","\\S"),me("\\spades","\\spadesuit"),me("\\sub","\\subset"),me("\\sube","\\subseteq"),me("\\supe","\\supseteq"),me("\\Tau","\\mathrm{T}"),me("\\thetasym","\\vartheta"),me("\\weierp","\\wp"),me("\\Zeta","\\mathrm{Z}"),me("\\argmin","\\DOTSB\\operatorname*{arg\\,min}"),me("\\argmax","\\DOTSB\\operatorname*{arg\\,max}"),me("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits"),me("\\bra","\\mathinner{\\langle{#1}|}"),me("\\ket","\\mathinner{|{#1}\\rangle}"),me("\\braket","\\mathinner{\\langle{#1}\\rangle}"),me("\\Bra","\\left\\langle#1\\right|"),me("\\Ket","\\left|#1\\right\\rangle");var ro=A=>g=>{var S=g.consumeArg().tokens,R=g.consumeArg().tokens,Y=g.consumeArg().tokens,se=g.consumeArg().tokens,Z=g.macros.get("|"),rt=g.macros.get("\\|");g.macros.beginGroup();var lt=Yn=>wi=>{A&&(wi.macros.set("|",Z),Y.length&&wi.macros.set("\\|",rt));var Ci=Yn;if(!Yn&&Y.length){var Pi=wi.future();Pi.text==="|"&&(wi.popToken(),Ci=!0)}return{tokens:Ci?Y:R,numArgs:0}};g.macros.set("|",lt(!1)),Y.length&&g.macros.set("\\|",lt(!0));var pn=g.consumeArg().tokens,On=g.expandTokens([...se,...pn,...S]);return g.macros.endGroup(),{tokens:On.reverse(),numArgs:0}};me("\\bra@ket",ro(!1)),me("\\bra@set",ro(!0)),me("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}"),me("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}"),me("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}"),me("\\angln","{\\angl n}"),me("\\blue","\\textcolor{##6495ed}{#1}"),me("\\orange","\\textcolor{##ffa500}{#1}"),me("\\pink","\\textcolor{##ff00af}{#1}"),me("\\red","\\textcolor{##df0030}{#1}"),me("\\green","\\textcolor{##28ae7b}{#1}"),me("\\gray","\\textcolor{gray}{#1}"),me("\\purple","\\textcolor{##9d38bd}{#1}"),me("\\blueA","\\textcolor{##ccfaff}{#1}"),me("\\blueB","\\textcolor{##80f6ff}{#1}"),me("\\blueC","\\textcolor{##63d9ea}{#1}"),me("\\blueD","\\textcolor{##11accd}{#1}"),me("\\blueE","\\textcolor{##0c7f99}{#1}"),me("\\tealA","\\textcolor{##94fff5}{#1}"),me("\\tealB","\\textcolor{##26edd5}{#1}"),me("\\tealC","\\textcolor{##01d1c1}{#1}"),me("\\tealD","\\textcolor{##01a995}{#1}"),me("\\tealE","\\textcolor{##208170}{#1}"),me("\\greenA","\\textcolor{##b6ffb0}{#1}"),me("\\greenB","\\textcolor{##8af281}{#1}"),me("\\greenC","\\textcolor{##74cf70}{#1}"),me("\\greenD","\\textcolor{##1fab54}{#1}"),me("\\greenE","\\textcolor{##0d923f}{#1}"),me("\\goldA","\\textcolor{##ffd0a9}{#1}"),me("\\goldB","\\textcolor{##ffbb71}{#1}"),me("\\goldC","\\textcolor{##ff9c39}{#1}"),me("\\goldD","\\textcolor{##e07d10}{#1}"),me("\\goldE","\\textcolor{##a75a05}{#1}"),me("\\redA","\\textcolor{##fca9a9}{#1}"),me("\\redB","\\textcolor{##ff8482}{#1}"),me("\\redC","\\textcolor{##f9685d}{#1}"),me("\\redD","\\textcolor{##e84d39}{#1}"),me("\\redE","\\textcolor{##bc2612}{#1}"),me("\\maroonA","\\textcolor{##ffbde0}{#1}"),me("\\maroonB","\\textcolor{##ff92c6}{#1}"),me("\\maroonC","\\textcolor{##ed5fa6}{#1}"),me("\\maroonD","\\textcolor{##ca337c}{#1}"),me("\\maroonE","\\textcolor{##9e034e}{#1}"),me("\\purpleA","\\textcolor{##ddd7ff}{#1}"),me("\\purpleB","\\textcolor{##c6b9fc}{#1}"),me("\\purpleC","\\textcolor{##aa87ff}{#1}"),me("\\purpleD","\\textcolor{##7854ab}{#1}"),me("\\purpleE","\\textcolor{##543b78}{#1}"),me("\\mintA","\\textcolor{##f5f9e8}{#1}"),me("\\mintB","\\textcolor{##edf2df}{#1}"),me("\\mintC","\\textcolor{##e0e5cc}{#1}"),me("\\grayA","\\textcolor{##f6f7f7}{#1}"),me("\\grayB","\\textcolor{##f0f1f2}{#1}"),me("\\grayC","\\textcolor{##e3e5e6}{#1}"),me("\\grayD","\\textcolor{##d6d8da}{#1}"),me("\\grayE","\\textcolor{##babec2}{#1}"),me("\\grayF","\\textcolor{##888d93}{#1}"),me("\\grayG","\\textcolor{##626569}{#1}"),me("\\grayH","\\textcolor{##3b3e40}{#1}"),me("\\grayI","\\textcolor{##21242c}{#1}"),me("\\kaBlue","\\textcolor{##314453}{#1}"),me("\\kaGreen","\\textcolor{##71B307}{#1}");var cs={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class Js{constructor(g,S,R){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=S,this.expansionCount=0,this.feed(g),this.macros=new $s(fu,S.macros),this.mode=R,this.stack=[]}feed(g){this.lexer=new ms(g,this.settings)}switchMode(g){this.mode=g}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(g){this.stack.push(g)}pushTokens(g){this.stack.push(...g)}scanArgument(g){var S,R,Y;if(g){if(this.consumeSpaces(),this.future().text!=="[")return null;S=this.popToken(),{tokens:Y,end:R}=this.consumeArg(["]"])}else({tokens:Y,start:S,end:R}=this.consumeArg());return this.pushToken(new hn("EOF",R.loc)),this.pushTokens(Y),S.range(R,"")}consumeSpaces(){for(;;){var g=this.future();if(g.text===" ")this.stack.pop();else break}}consumeArg(g){var S=[],R=g&&g.length>0;R||this.consumeSpaces();var Y=this.future(),se,Z=0,rt=0;do{if(se=this.popToken(),S.push(se),se.text==="{")++Z;else if(se.text==="}"){if(--Z,Z===-1)throw new Rt("Extra }",se)}else if(se.text==="EOF")throw new Rt("Unexpected end of input in a macro argument, expected '"+(g&&R?g[rt]:"}")+"'",se);if(g&&R)if((Z===0||Z===1&&g[rt]==="{")&&se.text===g[rt]){if(++rt,rt===g.length){S.splice(-rt,rt);break}}else rt=0}while(Z!==0||R);return Y.text==="{"&&S[S.length-1].text==="}"&&(S.pop(),S.shift()),S.reverse(),{tokens:S,start:Y,end:se}}consumeArgs(g,S){if(S){if(S.length!==g+1)throw new Rt("The length of delimiters doesn't match the number of args!");for(var R=S[0],Y=0;Y<R.length;Y++){var se=this.popToken();if(R[Y]!==se.text)throw new Rt("Use of the macro doesn't match its definition",se)}}for(var Z=[],rt=0;rt<g;rt++)Z.push(this.consumeArg(S&&S[rt+1]).tokens);return Z}countExpansion(g){if(this.expansionCount+=g,this.expansionCount>this.settings.maxExpand)throw new Rt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(g){var S=this.popToken(),R=S.text,Y=S.noexpand?null:this._getExpansion(R);if(Y==null||g&&Y.unexpandable){if(g&&Y==null&&R[0]==="\\"&&!this.isDefined(R))throw new Rt("Undefined control sequence: "+R);return this.pushToken(S),!1}this.countExpansion(1);var se=Y.tokens,Z=this.consumeArgs(Y.numArgs,Y.delimiters);if(Y.numArgs){se=se.slice();for(var rt=se.length-1;rt>=0;--rt){var lt=se[rt];if(lt.text==="#"){if(rt===0)throw new Rt("Incomplete placeholder at end of macro body",lt);if(lt=se[--rt],lt.text==="#")se.splice(rt+1,1);else if(/^[1-9]$/.test(lt.text))se.splice(rt,2,...Z[+lt.text-1]);else throw new Rt("Not a valid argument number",lt)}}}return this.pushTokens(se),se.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var g=this.stack.pop();return g.treatAsRelax&&(g.text="\\relax"),g}throw new Error}expandMacro(g){return this.macros.has(g)?this.expandTokens([new hn(g)]):void 0}expandTokens(g){var S=[],R=this.stack.length;for(this.pushTokens(g);this.stack.length>R;)if(this.expandOnce(!0)===!1){var Y=this.stack.pop();Y.treatAsRelax&&(Y.noexpand=!1,Y.treatAsRelax=!1),S.push(Y)}return this.countExpansion(S.length),S}expandMacroAsText(g){var S=this.expandMacro(g);return S&&S.map(R=>R.text).join("")}_getExpansion(g){var S=this.macros.get(g);if(S==null)return S;if(g.length===1){var R=this.lexer.catcodes[g];if(R!=null&&R!==13)return}var Y=typeof S=="function"?S(this):S;if(typeof Y=="string"){var se=0;if(Y.indexOf("#")!==-1)for(var Z=Y.replace(/##/g,"");Z.indexOf("#"+(se+1))!==-1;)++se;for(var rt=new ms(Y,this.settings),lt=[],pn=rt.lex();pn.text!=="EOF";)lt.push(pn),pn=rt.lex();lt.reverse();var On={tokens:lt,numArgs:se};return On}return Y}isDefined(g){return this.macros.has(g)||Ut.hasOwnProperty(g)||Ki.math.hasOwnProperty(g)||Ki.text.hasOwnProperty(g)||cs.hasOwnProperty(g)}isExpandable(g){var S=this.macros.get(g);return S!=null?typeof S=="string"||typeof S=="function"||!S.unexpandable:Ut.hasOwnProperty(g)&&!Ut[g].primitive}}var Fa=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,Ba=Object.freeze({"\u208A":"+","\u208B":"-","\u208C":"=","\u208D":"(","\u208E":")","\u2080":"0","\u2081":"1","\u2082":"2","\u2083":"3","\u2084":"4","\u2085":"5","\u2086":"6","\u2087":"7","\u2088":"8","\u2089":"9","\u2090":"a","\u2091":"e","\u2095":"h","\u1D62":"i","\u2C7C":"j","\u2096":"k","\u2097":"l","\u2098":"m","\u2099":"n","\u2092":"o","\u209A":"p","\u1D63":"r","\u209B":"s","\u209C":"t","\u1D64":"u","\u1D65":"v","\u2093":"x","\u1D66":"\u03B2","\u1D67":"\u03B3","\u1D68":"\u03C1","\u1D69":"\u03D5","\u1D6A":"\u03C7","\u207A":"+","\u207B":"-","\u207C":"=","\u207D":"(","\u207E":")","\u2070":"0","\xB9":"1","\xB2":"2","\xB3":"3","\u2074":"4","\u2075":"5","\u2076":"6","\u2077":"7","\u2078":"8","\u2079":"9","\u1D2C":"A","\u1D2E":"B","\u1D30":"D","\u1D31":"E","\u1D33":"G","\u1D34":"H","\u1D35":"I","\u1D36":"J","\u1D37":"K","\u1D38":"L","\u1D39":"M","\u1D3A":"N","\u1D3C":"O","\u1D3E":"P","\u1D3F":"R","\u1D40":"T","\u1D41":"U","\u2C7D":"V","\u1D42":"W","\u1D43":"a","\u1D47":"b","\u1D9C":"c","\u1D48":"d","\u1D49":"e","\u1DA0":"f","\u1D4D":"g",\u02B0:"h","\u2071":"i",\u02B2:"j","\u1D4F":"k",\u02E1:"l","\u1D50":"m",\u207F:"n","\u1D52":"o","\u1D56":"p",\u02B3:"r",\u02E2:"s","\u1D57":"t","\u1D58":"u","\u1D5B":"v",\u02B7:"w",\u02E3:"x",\u02B8:"y","\u1DBB":"z","\u1D5D":"\u03B2","\u1D5E":"\u03B3","\u1D5F":"\u03B4","\u1D60":"\u03D5","\u1D61":"\u03C7","\u1DBF":"\u03B8"}),_a={"\u0301":{text:"\\'",math:"\\acute"},"\u0300":{text:"\\`",math:"\\grave"},"\u0308":{text:'\\"',math:"\\ddot"},"\u0303":{text:"\\~",math:"\\tilde"},"\u0304":{text:"\\=",math:"\\bar"},"\u0306":{text:"\\u",math:"\\breve"},"\u030C":{text:"\\v",math:"\\check"},"\u0302":{text:"\\^",math:"\\hat"},"\u0307":{text:"\\.",math:"\\dot"},"\u030A":{text:"\\r",math:"\\mathring"},"\u030B":{text:"\\H"},"\u0327":{text:"\\c"}},xi={\u00E1:"a\u0301",\u00E0:"a\u0300",\u00E4:"a\u0308",\u01DF:"a\u0308\u0304",\u00E3:"a\u0303",\u0101:"a\u0304",\u0103:"a\u0306",\u1EAF:"a\u0306\u0301",\u1EB1:"a\u0306\u0300",\u1EB5:"a\u0306\u0303",\u01CE:"a\u030C",\u00E2:"a\u0302",\u1EA5:"a\u0302\u0301",\u1EA7:"a\u0302\u0300",\u1EAB:"a\u0302\u0303",\u0227:"a\u0307",\u01E1:"a\u0307\u0304",\u00E5:"a\u030A",\u01FB:"a\u030A\u0301",\u1E03:"b\u0307",\u0107:"c\u0301",\u1E09:"c\u0327\u0301",\u010D:"c\u030C",\u0109:"c\u0302",\u010B:"c\u0307",\u00E7:"c\u0327",\u010F:"d\u030C",\u1E0B:"d\u0307",\u1E11:"d\u0327",\u00E9:"e\u0301",\u00E8:"e\u0300",\u00EB:"e\u0308",\u1EBD:"e\u0303",\u0113:"e\u0304",\u1E17:"e\u0304\u0301",\u1E15:"e\u0304\u0300",\u0115:"e\u0306",\u1E1D:"e\u0327\u0306",\u011B:"e\u030C",\u00EA:"e\u0302",\u1EBF:"e\u0302\u0301",\u1EC1:"e\u0302\u0300",\u1EC5:"e\u0302\u0303",\u0117:"e\u0307",\u0229:"e\u0327",\u1E1F:"f\u0307",\u01F5:"g\u0301",\u1E21:"g\u0304",\u011F:"g\u0306",\u01E7:"g\u030C",\u011D:"g\u0302",\u0121:"g\u0307",\u0123:"g\u0327",\u1E27:"h\u0308",\u021F:"h\u030C",\u0125:"h\u0302",\u1E23:"h\u0307",\u1E29:"h\u0327",\u00ED:"i\u0301",\u00EC:"i\u0300",\u00EF:"i\u0308",\u1E2F:"i\u0308\u0301",\u0129:"i\u0303",\u012B:"i\u0304",\u012D:"i\u0306",\u01D0:"i\u030C",\u00EE:"i\u0302",\u01F0:"j\u030C",\u0135:"j\u0302",\u1E31:"k\u0301",\u01E9:"k\u030C",\u0137:"k\u0327",\u013A:"l\u0301",\u013E:"l\u030C",\u013C:"l\u0327",\u1E3F:"m\u0301",\u1E41:"m\u0307",\u0144:"n\u0301",\u01F9:"n\u0300",\u00F1:"n\u0303",\u0148:"n\u030C",\u1E45:"n\u0307",\u0146:"n\u0327",\u00F3:"o\u0301",\u00F2:"o\u0300",\u00F6:"o\u0308",\u022B:"o\u0308\u0304",\u00F5:"o\u0303",\u1E4D:"o\u0303\u0301",\u1E4F:"o\u0303\u0308",\u022D:"o\u0303\u0304",\u014D:"o\u0304",\u1E53:"o\u0304\u0301",\u1E51:"o\u0304\u0300",\u014F:"o\u0306",\u01D2:"o\u030C",\u00F4:"o\u0302",\u1ED1:"o\u0302\u0301",\u1ED3:"o\u0302\u0300",\u1ED7:"o\u0302\u0303",\u022F:"o\u0307",\u0231:"o\u0307\u0304",\u0151:"o\u030B",\u1E55:"p\u0301",\u1E57:"p\u0307",\u0155:"r\u0301",\u0159:"r\u030C",\u1E59:"r\u0307",\u0157:"r\u0327",\u015B:"s\u0301",\u1E65:"s\u0301\u0307",\u0161:"s\u030C",\u1E67:"s\u030C\u0307",\u015D:"s\u0302",\u1E61:"s\u0307",\u015F:"s\u0327",\u1E97:"t\u0308",\u0165:"t\u030C",\u1E6B:"t\u0307",\u0163:"t\u0327",\u00FA:"u\u0301",\u00F9:"u\u0300",\u00FC:"u\u0308",\u01D8:"u\u0308\u0301",\u01DC:"u\u0308\u0300",\u01D6:"u\u0308\u0304",\u01DA:"u\u0308\u030C",\u0169:"u\u0303",\u1E79:"u\u0303\u0301",\u016B:"u\u0304",\u1E7B:"u\u0304\u0308",\u016D:"u\u0306",\u01D4:"u\u030C",\u00FB:"u\u0302",\u016F:"u\u030A",\u0171:"u\u030B",\u1E7D:"v\u0303",\u1E83:"w\u0301",\u1E81:"w\u0300",\u1E85:"w\u0308",\u0175:"w\u0302",\u1E87:"w\u0307",\u1E98:"w\u030A",\u1E8D:"x\u0308",\u1E8B:"x\u0307",\u00FD:"y\u0301",\u1EF3:"y\u0300",\u00FF:"y\u0308",\u1EF9:"y\u0303",\u0233:"y\u0304",\u0177:"y\u0302",\u1E8F:"y\u0307",\u1E99:"y\u030A",\u017A:"z\u0301",\u017E:"z\u030C",\u1E91:"z\u0302",\u017C:"z\u0307",\u00C1:"A\u0301",\u00C0:"A\u0300",\u00C4:"A\u0308",\u01DE:"A\u0308\u0304",\u00C3:"A\u0303",\u0100:"A\u0304",\u0102:"A\u0306",\u1EAE:"A\u0306\u0301",\u1EB0:"A\u0306\u0300",\u1EB4:"A\u0306\u0303",\u01CD:"A\u030C",\u00C2:"A\u0302",\u1EA4:"A\u0302\u0301",\u1EA6:"A\u0302\u0300",\u1EAA:"A\u0302\u0303",\u0226:"A\u0307",\u01E0:"A\u0307\u0304",\u00C5:"A\u030A",\u01FA:"A\u030A\u0301",\u1E02:"B\u0307",\u0106:"C\u0301",\u1E08:"C\u0327\u0301",\u010C:"C\u030C",\u0108:"C\u0302",\u010A:"C\u0307",\u00C7:"C\u0327",\u010E:"D\u030C",\u1E0A:"D\u0307",\u1E10:"D\u0327",\u00C9:"E\u0301",\u00C8:"E\u0300",\u00CB:"E\u0308",\u1EBC:"E\u0303",\u0112:"E\u0304",\u1E16:"E\u0304\u0301",\u1E14:"E\u0304\u0300",\u0114:"E\u0306",\u1E1C:"E\u0327\u0306",\u011A:"E\u030C",\u00CA:"E\u0302",\u1EBE:"E\u0302\u0301",\u1EC0:"E\u0302\u0300",\u1EC4:"E\u0302\u0303",\u0116:"E\u0307",\u0228:"E\u0327",\u1E1E:"F\u0307",\u01F4:"G\u0301",\u1E20:"G\u0304",\u011E:"G\u0306",\u01E6:"G\u030C",\u011C:"G\u0302",\u0120:"G\u0307",\u0122:"G\u0327",\u1E26:"H\u0308",\u021E:"H\u030C",\u0124:"H\u0302",\u1E22:"H\u0307",\u1E28:"H\u0327",\u00CD:"I\u0301",\u00CC:"I\u0300",\u00CF:"I\u0308",\u1E2E:"I\u0308\u0301",\u0128:"I\u0303",\u012A:"I\u0304",\u012C:"I\u0306",\u01CF:"I\u030C",\u00CE:"I\u0302",\u0130:"I\u0307",\u0134:"J\u0302",\u1E30:"K\u0301",\u01E8:"K\u030C",\u0136:"K\u0327",\u0139:"L\u0301",\u013D:"L\u030C",\u013B:"L\u0327",\u1E3E:"M\u0301",\u1E40:"M\u0307",\u0143:"N\u0301",\u01F8:"N\u0300",\u00D1:"N\u0303",\u0147:"N\u030C",\u1E44:"N\u0307",\u0145:"N\u0327",\u00D3:"O\u0301",\u00D2:"O\u0300",\u00D6:"O\u0308",\u022A:"O\u0308\u0304",\u00D5:"O\u0303",\u1E4C:"O\u0303\u0301",\u1E4E:"O\u0303\u0308",\u022C:"O\u0303\u0304",\u014C:"O\u0304",\u1E52:"O\u0304\u0301",\u1E50:"O\u0304\u0300",\u014E:"O\u0306",\u01D1:"O\u030C",\u00D4:"O\u0302",\u1ED0:"O\u0302\u0301",\u1ED2:"O\u0302\u0300",\u1ED6:"O\u0302\u0303",\u022E:"O\u0307",\u0230:"O\u0307\u0304",\u0150:"O\u030B",\u1E54:"P\u0301",\u1E56:"P\u0307",\u0154:"R\u0301",\u0158:"R\u030C",\u1E58:"R\u0307",\u0156:"R\u0327",\u015A:"S\u0301",\u1E64:"S\u0301\u0307",\u0160:"S\u030C",\u1E66:"S\u030C\u0307",\u015C:"S\u0302",\u1E60:"S\u0307",\u015E:"S\u0327",\u0164:"T\u030C",\u1E6A:"T\u0307",\u0162:"T\u0327",\u00DA:"U\u0301",\u00D9:"U\u0300",\u00DC:"U\u0308",\u01D7:"U\u0308\u0301",\u01DB:"U\u0308\u0300",\u01D5:"U\u0308\u0304",\u01D9:"U\u0308\u030C",\u0168:"U\u0303",\u1E78:"U\u0303\u0301",\u016A:"U\u0304",\u1E7A:"U\u0304\u0308",\u016C:"U\u0306",\u01D3:"U\u030C",\u00DB:"U\u0302",\u016E:"U\u030A",\u0170:"U\u030B",\u1E7C:"V\u0303",\u1E82:"W\u0301",\u1E80:"W\u0300",\u1E84:"W\u0308",\u0174:"W\u0302",\u1E86:"W\u0307",\u1E8C:"X\u0308",\u1E8A:"X\u0307",\u00DD:"Y\u0301",\u1EF2:"Y\u0300",\u0178:"Y\u0308",\u1EF8:"Y\u0303",\u0232:"Y\u0304",\u0176:"Y\u0302",\u1E8E:"Y\u0307",\u0179:"Z\u0301",\u017D:"Z\u030C",\u1E90:"Z\u0302",\u017B:"Z\u0307",\u03AC:"\u03B1\u0301",\u1F70:"\u03B1\u0300",\u1FB1:"\u03B1\u0304",\u1FB0:"\u03B1\u0306",\u03AD:"\u03B5\u0301",\u1F72:"\u03B5\u0300",\u03AE:"\u03B7\u0301",\u1F74:"\u03B7\u0300",\u03AF:"\u03B9\u0301",\u1F76:"\u03B9\u0300",\u03CA:"\u03B9\u0308",\u0390:"\u03B9\u0308\u0301",\u1FD2:"\u03B9\u0308\u0300",\u1FD1:"\u03B9\u0304",\u1FD0:"\u03B9\u0306",\u03CC:"\u03BF\u0301",\u1F78:"\u03BF\u0300",\u03CD:"\u03C5\u0301",\u1F7A:"\u03C5\u0300",\u03CB:"\u03C5\u0308",\u03B0:"\u03C5\u0308\u0301",\u1FE2:"\u03C5\u0308\u0300",\u1FE1:"\u03C5\u0304",\u1FE0:"\u03C5\u0306",\u03CE:"\u03C9\u0301",\u1F7C:"\u03C9\u0300",\u038E:"\u03A5\u0301",\u1FEA:"\u03A5\u0300",\u03AB:"\u03A5\u0308",\u1FE9:"\u03A5\u0304",\u1FE8:"\u03A5\u0306",\u038F:"\u03A9\u0301",\u1FFA:"\u03A9\u0300"};class Qi{constructor(g,S){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new Js(g,S,this.mode),this.settings=S,this.leftrightDepth=0}expect(g,S){if(S===void 0&&(S=!0),this.fetch().text!==g)throw new Rt("Expected '"+g+"', got '"+this.fetch().text+"'",this.fetch());S&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(g){this.mode=g,this.gullet.switchMode(g)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var g=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),g}finally{this.gullet.endGroups()}}subparse(g){var S=this.nextToken;this.consume(),this.gullet.pushToken(new hn("}")),this.gullet.pushTokens(g);var R=this.parseExpression(!1);return this.expect("}"),this.nextToken=S,R}parseExpression(g,S){for(var R=[];;){this.mode==="math"&&this.consumeSpaces();var Y=this.fetch();if(Qi.endOfExpression.indexOf(Y.text)!==-1||S&&Y.text===S||g&&Ut[Y.text]&&Ut[Y.text].infix)break;var se=this.parseAtom(S);if(se){if(se.type==="internal")continue}else break;R.push(se)}return this.mode==="text"&&this.formLigatures(R),this.handleInfixNodes(R)}handleInfixNodes(g){for(var S=-1,R,Y=0;Y<g.length;Y++)if(g[Y].type==="infix"){if(S!==-1)throw new Rt("only one infix operator per group",g[Y].token);S=Y,R=g[Y].replaceWith}if(S!==-1&&R){var se,Z,rt=g.slice(0,S),lt=g.slice(S+1);rt.length===1&&rt[0].type==="ordgroup"?se=rt[0]:se={type:"ordgroup",mode:this.mode,body:rt},lt.length===1&<[0].type==="ordgroup"?Z=lt[0]:Z={type:"ordgroup",mode:this.mode,body:lt};var pn;return R==="\\\\abovefrac"?pn=this.callFunction(R,[se,g[S],Z],[]):pn=this.callFunction(R,[se,Z],[]),[pn]}else return g}handleSupSubscript(g){var S=this.fetch(),R=S.text;this.consume(),this.consumeSpaces();var Y=this.parseGroup(g);if(!Y)throw new Rt("Expected group after '"+R+"'",S);return Y}formatUnsupportedCmd(g){for(var S=[],R=0;R<g.length;R++)S.push({type:"textord",mode:"text",text:g[R]});var Y={type:"text",mode:this.mode,body:S},se={type:"color",mode:this.mode,color:this.settings.errorColor,body:[Y]};return se}parseAtom(g){var S=this.parseGroup("atom",g);if(this.mode==="text")return S;for(var R,Y;;){this.consumeSpaces();var se=this.fetch();if(se.text==="\\limits"||se.text==="\\nolimits"){if(S&&S.type==="op"){var Z=se.text==="\\limits";S.limits=Z,S.alwaysHandleSupSub=!0}else if(S&&S.type==="operatorname")S.alwaysHandleSupSub&&(S.limits=se.text==="\\limits");else throw new Rt("Limit controls must follow a math operator",se);this.consume()}else if(se.text==="^"){if(R)throw new Rt("Double superscript",se);R=this.handleSupSubscript("superscript")}else if(se.text==="_"){if(Y)throw new Rt("Double subscript",se);Y=this.handleSupSubscript("subscript")}else if(se.text==="'"){if(R)throw new Rt("Double superscript",se);var rt={type:"textord",mode:this.mode,text:"\\prime"},lt=[rt];for(this.consume();this.fetch().text==="'";)lt.push(rt),this.consume();this.fetch().text==="^"&<.push(this.handleSupSubscript("superscript")),R={type:"ordgroup",mode:this.mode,body:lt}}else if(Ba[se.text]){var pn=Fa.test(se.text),On=[];for(On.push(new hn(Ba[se.text])),this.consume();;){var Yn=this.fetch().text;if(!Ba[Yn]||Fa.test(Yn)!==pn)break;On.unshift(new hn(Ba[Yn])),this.consume()}var wi=this.subparse(On);pn?Y={type:"ordgroup",mode:"math",body:wi}:R={type:"ordgroup",mode:"math",body:wi}}else break}return R||Y?{type:"supsub",mode:this.mode,base:S,sup:R,sub:Y}:S}parseFunction(g,S){var R=this.fetch(),Y=R.text,se=Ut[Y];if(!se)return null;if(this.consume(),S&&S!=="atom"&&!se.allowedInArgument)throw new Rt("Got function '"+Y+"' with no arguments"+(S?" as "+S:""),R);if(this.mode==="text"&&!se.allowedInText)throw new Rt("Can't use function '"+Y+"' in text mode",R);if(this.mode==="math"&&se.allowedInMath===!1)throw new Rt("Can't use function '"+Y+"' in math mode",R);var{args:Z,optArgs:rt}=this.parseArguments(Y,se);return this.callFunction(Y,Z,rt,R,g)}callFunction(g,S,R,Y,se){var Z={funcName:g,parser:this,token:Y,breakOnTokenText:se},rt=Ut[g];if(rt&&rt.handler)return rt.handler(Z,S,R);throw new Rt("No function handler for "+g)}parseArguments(g,S){var R=S.numArgs+S.numOptionalArgs;if(R===0)return{args:[],optArgs:[]};for(var Y=[],se=[],Z=0;Z<R;Z++){var rt=S.argTypes&&S.argTypes[Z],lt=Z<S.numOptionalArgs;(S.primitive&&rt==null||S.type==="sqrt"&&Z===1&&se[0]==null)&&(rt="primitive");var pn=this.parseGroupOfType("argument to '"+g+"'",rt,lt);if(lt)se.push(pn);else if(pn!=null)Y.push(pn);else throw new Rt("Null argument, please report this as a bug")}return{args:Y,optArgs:se}}parseGroupOfType(g,S,R){switch(S){case"color":return this.parseColorGroup(R);case"size":return this.parseSizeGroup(R);case"url":return this.parseUrlGroup(R);case"math":case"text":return this.parseArgumentGroup(R,S);case"hbox":{var Y=this.parseArgumentGroup(R,"text");return Y!=null?{type:"styling",mode:Y.mode,body:[Y],style:"text"}:null}case"raw":{var se=this.parseStringGroup("raw",R);return se!=null?{type:"raw",mode:"text",string:se.text}:null}case"primitive":{if(R)throw new Rt("A primitive argument cannot be optional");var Z=this.parseGroup(g);if(Z==null)throw new Rt("Expected group as "+g,this.fetch());return Z}case"original":case null:case void 0:return this.parseArgumentGroup(R);default:throw new Rt("Unknown group type as "+g,this.fetch())}}consumeSpaces(){for(;this.fetch().text===" ";)this.consume()}parseStringGroup(g,S){var R=this.gullet.scanArgument(S);if(R==null)return null;for(var Y="",se;(se=this.fetch()).text!=="EOF";)Y+=se.text,this.consume();return this.consume(),R.text=Y,R}parseRegexGroup(g,S){for(var R=this.fetch(),Y=R,se="",Z;(Z=this.fetch()).text!=="EOF"&&g.test(se+Z.text);)Y=Z,se+=Y.text,this.consume();if(se==="")throw new Rt("Invalid "+S+": '"+R.text+"'",R);return R.range(Y,se)}parseColorGroup(g){var S=this.parseStringGroup("color",g);if(S==null)return null;var R=/^(#[a-f0-9]{3}|#?[a-f0-9]{6}|[a-z]+)$/i.exec(S.text);if(!R)throw new Rt("Invalid color: '"+S.text+"'",S);var Y=R[0];return/^[0-9a-f]{6}$/i.test(Y)&&(Y="#"+Y),{type:"color-token",mode:this.mode,color:Y}}parseSizeGroup(g){var S,R=!1;if(this.gullet.consumeSpaces(),!g&&this.gullet.future().text!=="{"?S=this.parseRegexGroup(/^[-+]? *(?:$|\d+|\d+\.\d*|\.\d*) *[a-z]{0,2} *$/,"size"):S=this.parseStringGroup("size",g),!S)return null;!g&&S.text.length===0&&(S.text="0pt",R=!0);var Y=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(S.text);if(!Y)throw new Rt("Invalid size: '"+S.text+"'",S);var se={number:+(Y[1]+Y[2]),unit:Y[3]};if(!ut(se))throw new Rt("Invalid unit: '"+se.unit+"'",S);return{type:"size",mode:this.mode,value:se,isBlank:R}}parseUrlGroup(g){this.gullet.lexer.setCatcode("%",13),this.gullet.lexer.setCatcode("~",12);var S=this.parseStringGroup("url",g);if(this.gullet.lexer.setCatcode("%",14),this.gullet.lexer.setCatcode("~",13),S==null)return null;var R=S.text.replace(/\\([#$%&~_^{}])/g,"$1");return{type:"url",mode:this.mode,url:R}}parseArgumentGroup(g,S){var R=this.gullet.scanArgument(g);if(R==null)return null;var Y=this.mode;S&&this.switchMode(S),this.gullet.beginGroup();var se=this.parseExpression(!1,"EOF");this.expect("EOF"),this.gullet.endGroup();var Z={type:"ordgroup",mode:this.mode,loc:R.loc,body:se};return S&&this.switchMode(Y),Z}parseGroup(g,S){var R=this.fetch(),Y=R.text,se;if(Y==="{"||Y==="\\begingroup"){this.consume();var Z=Y==="{"?"}":"\\endgroup";this.gullet.beginGroup();var rt=this.parseExpression(!1,Z),lt=this.fetch();this.expect(Z),this.gullet.endGroup(),se={type:"ordgroup",mode:this.mode,loc:vt.range(R,lt),body:rt,semisimple:Y==="\\begingroup"||void 0}}else if(se=this.parseFunction(S,g)||this.parseSymbol(),se==null&&Y[0]==="\\"&&!cs.hasOwnProperty(Y)){if(this.settings.throwOnError)throw new Rt("Undefined control sequence: "+Y,R);se=this.formatUnsupportedCmd(Y),this.consume()}return se}formLigatures(g){for(var S=g.length-1,R=0;R<S;++R){var Y=g[R],se=Y.text;se==="-"&&g[R+1].text==="-"&&(R+1<S&&g[R+2].text==="-"?(g.splice(R,3,{type:"textord",mode:"text",loc:vt.range(Y,g[R+2]),text:"---"}),S-=2):(g.splice(R,2,{type:"textord",mode:"text",loc:vt.range(Y,g[R+1]),text:"--"}),S-=1)),(se==="'"||se==="`")&&g[R+1].text===se&&(g.splice(R,2,{type:"textord",mode:"text",loc:vt.range(Y,g[R+1]),text:se+se}),S-=1)}}parseSymbol(){var g=this.fetch(),S=g.text;if(/^\\verb[^a-zA-Z]/.test(S)){this.consume();var R=S.slice(5),Y=R.charAt(0)==="*";if(Y&&(R=R.slice(1)),R.length<2||R.charAt(0)!==R.slice(-1))throw new Rt(`\\verb assertion failed --
|
|
|
please report what input caused this bug`);return R=R.slice(1,-1),{type:"verb",mode:"text",body:R,star:Y}}xi.hasOwnProperty(S[0])&&!Ki[this.mode][S[0]]&&(this.settings.strict&&this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Accented Unicode text character "'+S[0]+'" used in math mode',g),S=xi[S[0]]+S.slice(1));var se=co.exec(S);se&&(S=S.substring(0,se.index),S==="i"?S="\u0131":S==="j"&&(S="\u0237"));var Z;if(Ki[this.mode][S]){this.settings.strict&&this.mode==="math"&&Pr.indexOf(S)>=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+S[0]+'" used in math mode',g);var rt=Ki[this.mode][S].group,lt=vt.range(g),pn;if(lr.hasOwnProperty(rt)){var On=rt;pn={type:"atom",mode:this.mode,family:On,loc:lt,text:S}}else pn={type:rt,mode:this.mode,loc:lt,text:S};Z=pn}else if(S.charCodeAt(0)>=128)this.settings.strict&&(j(S.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+S[0]+'" used in math mode',g):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+S[0]+'"'+(" ("+S.charCodeAt(0)+")"),g)),Z={type:"textord",mode:"text",loc:vt.range(g),text:S};else return null;if(this.consume(),se)for(var Yn=0;Yn<se[0].length;Yn++){var wi=se[0][Yn];if(!_a[wi])throw new Rt("Unknown accent ' "+wi+"'",g);var Ci=_a[wi][this.mode]||_a[wi].text;if(!Ci)throw new Rt("Accent "+wi+" unsupported in "+this.mode+" mode",g);Z={type:"accent",mode:this.mode,loc:vt.range(g),label:Ci,isStretchy:!1,isShifty:!0,base:Z}}return Z}}Qi.endOfExpression=["}","\\endgroup","\\end","\\right","&"];var $r=function(g,S){if(!(typeof g=="string"||g instanceof String))throw new TypeError("KaTeX can only parse string typed expression");var R=new Qi(g,S);delete R.gullet.macros.current["\\df@tag"];var Y=R.parse();if(delete R.gullet.macros.current["\\current@color"],delete R.gullet.macros.current["\\color"],R.gullet.macros.get("\\df@tag")){if(!S.displayMode)throw new Rt("\\tag works only in display equations");Y=[{type:"tag",mode:"text",body:Y,tag:R.subparse([new hn("\\df@tag")])}]}return Y},wr=function(g,S,R){S.textContent="";var Y=Ys(g,R).toNode();S.appendChild(Y)};typeof document!="undefined"&&document.compatMode!=="CSS1Compat"&&(typeof console!="undefined"&&console.warn("Warning: KaTeX doesn't work in quirks mode. Make sure your website has a suitable doctype."),wr=function(){throw new Rt("KaTeX doesn't work in quirks mode.")});var go=function(g,S){var R=Ys(g,S).toMarkup();return R},Ho=function(g,S){var R=new _e(S);return $r(g,R)},Ro=function(g,S,R){if(R.throwOnError||!(g instanceof Rt))throw g;var Y=xn.makeSpan(["katex-error"],[new En(S)]);return Y.setAttribute("title",g.toString()),Y.setAttribute("style","color:"+R.errorColor),Y},Ys=function(g,S){var R=new _e(S);try{var Y=$r(g,R);return fs(Y,g,R)}catch(se){return Ro(se,g,R)}},Ml=function(g,S){var R=new _e(S);try{var Y=$r(g,R);return $l(Y,g,R)}catch(se){return Ro(se,g,R)}},za="0.16.21",qs={Span:on,Anchor:jt,SymbolNode:En,SvgNode:Ln,PathNode:Ai,LineNode:zn},Ka={version:za,render:wr,renderToString:go,ParseError:Rt,SETTINGS_SCHEMA:Re,__parse:Ho,__renderToDomTree:Ys,__renderToHTMLTree:Ml,__setFontMetrics:fi,__defineSymbol:ee,__defineFunction:Di,__defineMacro:me,__domTree:qs},Zs=d(2348);const $o={},Es=[];function la(A){const g=A||$o;return function(S,R){(0,Zs.S4)(S,"element",function(Y,se){const Z=Array.isArray(Y.properties.className)?Y.properties.className:Es,rt=Z.includes("language-math"),lt=Z.includes("math-display"),pn=Z.includes("math-inline");let On=lt;if(!rt&&!lt&&!pn)return;let Yn=se[se.length-1],wi=Y;if(Y.tagName==="code"&&rt&&Yn&&Yn.type==="element"&&Yn.tagName==="pre"&&(wi=Yn,Yn=se[se.length-2],On=!0),!Yn)return;const Ci=$t(wi,{whitespace:"pre"});let Pi;try{Pi=Ka.renderToString(Ci,cd(Eo({},g),{displayMode:On,throwOnError:!0}))}catch(kr){const Ir=kr,lo=Ir.name.toLowerCase();R.message("Could not render math with KaTeX",{ancestors:[...se,Y],cause:Ir,place:Y.position,ruleId:lo,source:"rehype-katex"});try{Pi=Ka.renderToString(Ci,cd(Eo({},g),{displayMode:On,strict:"ignore",throwOnError:!1}))}catch(No){Pi=[{type:"element",tagName:"span",properties:{className:["katex-error"],style:"color:"+(g.errorColor||"#cc0000"),title:String(kr)},children:[{type:"text",value:Ci}]}]}}typeof Pi=="string"&&(Pi=it(Pi,{fragment:!0}).children);const hr=Yn.children.indexOf(wi);return Yn.children.splice(hr,1,...Pi),Zs.AM})}}},66422:function(J,C,d){"use strict";d.d(C,{Z:function(){return ji}});var b=d(90302),I=d(87342),L=d(74618),B=d(54099),V=d(52549);function Q(h){const m=String(h),W=[];return{toOffset:_t,toPoint:Ve};function Ve(Mn){if(typeof Mn=="number"&&Mn>-1&&Mn<=m.length){let li=0;for(;;){let ri=W[li];if(ri===void 0){const Wn=M(m,W[li-1]);ri=Wn===-1?m.length+1:Wn+1,W[li]=ri}if(ri>Mn)return{line:li+1,column:Mn-(li>0?W[li-1]:0)+1,offset:Mn};li++}}}function _t(Mn){if(Mn&&typeof Mn.line=="number"&&typeof Mn.column=="number"&&!Number.isNaN(Mn.line)&&!Number.isNaN(Mn.column)){for(;W.length<Mn.line;){const ri=W[W.length-1],Wn=M(m,ri),Bi=Wn===-1?m.length+1:Wn+1;if(ri===Bi)break;W.push(Bi)}const li=(Mn.line>1?W[Mn.line-2]:0)+Mn.column-1;if(li<W[Mn.line-1])return li}}}function M(h,m){const W=h.indexOf("\r",m),Ve=h.indexOf(`
|
|
|
`,m);return Ve===-1?W:W===-1||W+1===Ve?Ve:W<Ve?W:Ve}var de=d(43309);const he={}.hasOwnProperty,re=Object.prototype;function De(h,m){const W=m||{};return ne({file:W.file||void 0,location:!1,schema:W.space==="svg"?B.YP:B.dy,verbose:W.verbose||!1},h)}function ne(h,m){let W;switch(m.nodeName){case"#comment":{const Ve=m;return W={type:"comment",value:Ve.data},Ie(h,Ve,W),W}case"#document":case"#document-fragment":{const Ve=m,_t="mode"in Ve?Ve.mode==="quirks"||Ve.mode==="limited-quirks":!1;if(W={type:"root",children:it(h,m.childNodes),data:{quirksMode:_t}},h.file&&h.location){const Mn=String(h.file),li=Q(Mn),ri=li.toPoint(0),Wn=li.toPoint(Mn.length);(0,I.ok)(ri,"expected `start`"),(0,I.ok)(Wn,"expected `end`"),W.position={start:ri,end:Wn}}return W}case"#documentType":{const Ve=m;return W={type:"doctype"},Ie(h,Ve,W),W}case"#text":{const Ve=m;return W={type:"text",value:Ve.value},Ie(h,Ve,W),W}default:return W=Ue(h,m),W}}function it(h,m){let W=-1;const Ve=[];for(;++W<m.length;){const _t=ne(h,m[W]);Ve.push(_t)}return Ve}function Ue(h,m){const W=h.schema;h.schema=m.namespaceURI===de.t.svg?B.YP:B.dy;let Ve=-1;const _t={};for(;++Ve<m.attrs.length;){const ri=m.attrs[Ve],Wn=(ri.prefix?ri.prefix+":":"")+ri.name;he.call(re,Wn)||(_t[Wn]=ri.value)}const li=(h.schema.space==="svg"?L.s:L.h)(m.tagName,_t,it(h,m.childNodes));if(Ie(h,m,li),li.tagName==="template"){const ri=m,Wn=ri.sourceCodeLocation,Bi=Wn&&Wn.startTag&&ze(Wn.startTag),cr=Wn&&Wn.endTag&&ze(Wn.endTag),Ur=ne(h,ri.content);Bi&&cr&&h.file&&(Ur.position={start:Bi.end,end:cr.start}),li.content=Ur}return h.schema=W,li}function Ie(h,m,W){if("sourceCodeLocation"in m&&m.sourceCodeLocation&&h.file){const Ve=Pe(h,W,m.sourceCodeLocation);Ve&&(h.location=!0,W.position=Ve)}}function Pe(h,m,W){const Ve=ze(W);if(m.type==="element"){const _t=m.children[m.children.length-1];if(Ve&&!W.endTag&&_t&&_t.position&&_t.position.end&&(Ve.end=Object.assign({},_t.position.end)),h.verbose){const Mn={};let li;if(W.attrs)for(li in W.attrs)he.call(W.attrs,li)&&(Mn[(0,V.s)(h.schema,li).property]=ze(W.attrs[li]));(0,I.ok)(W.startTag,"a start tag should exist");const ri=ze(W.startTag),Wn=W.endTag?ze(W.endTag):void 0,Bi={opening:ri};Wn&&(Bi.closing=Wn),Bi.properties=Mn,m.data={position:Bi}}}return Ve}function ze(h){const m=Ee({line:h.startLine,column:h.startCol,offset:h.startOffset}),W=Ee({line:h.endLine,column:h.endCol,offset:h.endOffset});return m||W?{start:m,end:W}:void 0}function Ee(h){return h.line&&h.column?h:void 0}var fe=d(11630),we=d(71523);const pe={}.hasOwnProperty;function Ne(h,m){const W=m||{};function Ve(_t,...Mn){let li=Ve.invalid;const ri=Ve.handlers;if(_t&&pe.call(_t,h)){const Wn=String(_t[h]);li=pe.call(ri,Wn)?ri[Wn]:Ve.unknown}if(li)return li.call(this,_t,...Mn)}return Ve.handlers=W.handlers||{},Ve.invalid=W.invalid,Ve.unknown=W.unknown,Ve}const te={},Ae={}.hasOwnProperty,Te=Ne("type",{handlers:{root:Qe,element:$t,text:dt,comment:Xe,doctype:Ce}});function $e(h,m){const Ve=(m||te).space;return Te(h,Ve==="svg"?B.YP:B.dy)}function Qe(h,m){const W={nodeName:"#document",mode:(h.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return W.childNodes=At(h.children,W,m),St(h,W),W}function Je(h,m){const W={nodeName:"#document-fragment",childNodes:[]};return W.childNodes=At(h.children,W,m),St(h,W),W}function Ce(h){const m={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return St(h,m),m}function dt(h){const m={nodeName:"#text",value:h.value,parentNode:null};return St(h,m),m}function Xe(h){const m={nodeName:"#comment",data:h.value,parentNode:null};return St(h,m),m}function $t(h,m){const W=m;let Ve=W;h.type==="element"&&h.tagName.toLowerCase()==="svg"&&W.space==="html"&&(Ve=B.YP);const _t=[];let Mn;if(h.properties){for(Mn in h.properties)if(Mn!=="children"&&Ae.call(h.properties,Mn)){const Wn=xt(Ve,Mn,h.properties[Mn]);Wn&&_t.push(Wn)}}const li=Ve.space;(0,I.ok)(li);const ri={nodeName:h.tagName,tagName:h.tagName,attrs:_t,namespaceURI:de.t[li],childNodes:[],parentNode:null};return ri.childNodes=At(h.children,ri,Ve),St(h,ri),h.tagName==="template"&&h.content&&(ri.content=Je(h.content,Ve)),ri}function xt(h,m,W){const Ve=(0,V.s)(h,m);if(W===!1||W===null||W===void 0||typeof W=="number"&&Number.isNaN(W)||!W&&Ve.boolean)return;Array.isArray(W)&&(W=Ve.commaSeparated?(0,fe.P)(W):(0,we.P)(W));const _t={name:Ve.attribute,value:W===!0?"":String(W)};if(Ve.space&&Ve.space!=="html"&&Ve.space!=="svg"){const Mn=_t.name.indexOf(":");Mn<0?_t.prefix="":(_t.name=_t.name.slice(Mn+1),_t.prefix=Ve.attribute.slice(0,Mn)),_t.namespace=de.t[Ve.space]}return _t}function At(h,m,W){let Ve=-1;const _t=[];if(h)for(;++Ve<h.length;){const Mn=Te(h[Ve],W);Mn.parentNode=m,_t.push(Mn)}return _t}function St(h,m){const W=h.position;W&&W.start&&W.end&&((0,I.ok)(typeof W.start.offset=="number"),(0,I.ok)(typeof W.end.offset=="number"),m.sourceCodeLocation={startLine:W.start.line,startCol:W.start.column,startOffset:W.start.offset,endLine:W.end.line,endCol:W.end.column,endOffset:W.end.offset})}const Cn=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],Ye=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),oe="\uFFFD";var H;(function(h){h[h.EOF=-1]="EOF",h[h.NULL=0]="NULL",h[h.TABULATION=9]="TABULATION",h[h.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",h[h.LINE_FEED=10]="LINE_FEED",h[h.FORM_FEED=12]="FORM_FEED",h[h.SPACE=32]="SPACE",h[h.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",h[h.QUOTATION_MARK=34]="QUOTATION_MARK",h[h.AMPERSAND=38]="AMPERSAND",h[h.APOSTROPHE=39]="APOSTROPHE",h[h.HYPHEN_MINUS=45]="HYPHEN_MINUS",h[h.SOLIDUS=47]="SOLIDUS",h[h.DIGIT_0=48]="DIGIT_0",h[h.DIGIT_9=57]="DIGIT_9",h[h.SEMICOLON=59]="SEMICOLON",h[h.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",h[h.EQUALS_SIGN=61]="EQUALS_SIGN",h[h.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",h[h.QUESTION_MARK=63]="QUESTION_MARK",h[h.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",h[h.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",h[h.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",h[h.GRAVE_ACCENT=96]="GRAVE_ACCENT",h[h.LATIN_SMALL_A=97]="LATIN_SMALL_A",h[h.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(H||(H={}));const Ot={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function Kt(h){return h>=55296&&h<=57343}function vt(h){return h>=56320&&h<=57343}function hn(h,m){return(h-55296)*1024+9216+m}function Rt(h){return h!==32&&h!==10&&h!==13&&h!==9&&h!==12&&h>=1&&h<=31||h>=127&&h<=159}function hi(h){return h>=64976&&h<=65007||Ye.has(h)}var yt;(function(h){h.controlCharacterInInputStream="control-character-in-input-stream",h.noncharacterInInputStream="noncharacter-in-input-stream",h.surrogateInInputStream="surrogate-in-input-stream",h.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",h.endTagWithAttributes="end-tag-with-attributes",h.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",h.unexpectedSolidusInTag="unexpected-solidus-in-tag",h.unexpectedNullCharacter="unexpected-null-character",h.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",h.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",h.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",h.missingEndTagName="missing-end-tag-name",h.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",h.unknownNamedCharacterReference="unknown-named-character-reference",h.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",h.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",h.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",h.eofBeforeTagName="eof-before-tag-name",h.eofInTag="eof-in-tag",h.missingAttributeValue="missing-attribute-value",h.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",h.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",h.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",h.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",h.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",h.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",h.missingDoctypePublicIdentifier="missing-doctype-public-identifier",h.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",h.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",h.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",h.cdataInHtmlContent="cdata-in-html-content",h.incorrectlyOpenedComment="incorrectly-opened-comment",h.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",h.eofInDoctype="eof-in-doctype",h.nestedComment="nested-comment",h.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",h.eofInComment="eof-in-comment",h.incorrectlyClosedComment="incorrectly-closed-comment",h.eofInCdata="eof-in-cdata",h.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",h.nullCharacterReference="null-character-reference",h.surrogateCharacterReference="surrogate-character-reference",h.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",h.controlCharacterReference="control-character-reference",h.noncharacterCharacterReference="noncharacter-character-reference",h.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",h.missingDoctypeName="missing-doctype-name",h.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",h.duplicateAttribute="duplicate-attribute",h.nonConformingDoctype="non-conforming-doctype",h.missingDoctype="missing-doctype",h.misplacedDoctype="misplaced-doctype",h.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",h.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",h.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",h.openElementsLeftAfterEof="open-elements-left-after-eof",h.abandonedHeadElementChild="abandoned-head-element-child",h.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",h.nestedNoscriptInHead="nested-noscript-in-head",h.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(yt||(yt={}));const si=65536;class qn{constructor(m){this.handler=m,this.html="",this.pos=-1,this.lastGapPos=-2,this.gapStack=[],this.skipNextNewLine=!1,this.lastChunkWritten=!1,this.endOfChunkHit=!1,this.bufferWaterline=si,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(m,W){const{line:Ve,col:_t,offset:Mn}=this,li=_t+W,ri=Mn+W;return{code:m,startLine:Ve,endLine:Ve,startCol:li,endCol:li,startOffset:ri,endOffset:ri}}_err(m){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(m,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(m){if(this.pos!==this.html.length-1){const W=this.html.charCodeAt(this.pos+1);if(vt(W))return this.pos++,this._addGap(),hn(m,W)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,H.EOF;return this._err(yt.surrogateInInputStream),m}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(m,W){this.html.length>0?this.html+=m:this.html=m,this.endOfChunkHit=!1,this.lastChunkWritten=W}insertHtmlAtCurrentPos(m){this.html=this.html.substring(0,this.pos+1)+m+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(m,W){if(this.pos+m.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(W)return this.html.startsWith(m,this.pos);for(let Ve=0;Ve<m.length;Ve++)if((this.html.charCodeAt(this.pos+Ve)|32)!==m.charCodeAt(Ve))return!1;return!0}peek(m){const W=this.pos+m;if(W>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,H.EOF;const Ve=this.html.charCodeAt(W);return Ve===H.CARRIAGE_RETURN?H.LINE_FEED:Ve}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,H.EOF;let m=this.html.charCodeAt(this.pos);return m===H.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,H.LINE_FEED):m===H.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,Kt(m)&&(m=this._processSurrogate(m)),this.handler.onParseError===null||m>31&&m<127||m===H.LINE_FEED||m===H.CARRIAGE_RETURN||m>159&&m<64976||this._checkForProblematicCharacters(m),m)}_checkForProblematicCharacters(m){Rt(m)?this._err(yt.controlCharacterInInputStream):hi(m)&&this._err(yt.noncharacterInInputStream)}retreat(m){for(this.pos-=m;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var ln;(function(h){h[h.CHARACTER=0]="CHARACTER",h[h.NULL_CHARACTER=1]="NULL_CHARACTER",h[h.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",h[h.START_TAG=3]="START_TAG",h[h.END_TAG=4]="END_TAG",h[h.COMMENT=5]="COMMENT",h[h.DOCTYPE=6]="DOCTYPE",h[h.EOF=7]="EOF",h[h.HIBERNATION=8]="HIBERNATION"})(ln||(ln={}));function Tn(h,m){for(let W=h.attrs.length-1;W>=0;W--)if(h.attrs[W].name===m)return h.attrs[W].value;return null}var xe=new Uint16Array('\u1D41<\xD5\u0131\u028A\u049D\u057B\u05D0\u0675\u06DE\u07A2\u07D6\u080F\u0A4A\u0A91\u0DA1\u0E6D\u0F09\u0F26\u10CA\u1228\u12E1\u1415\u149D\u14C3\u14DF\u1525\0\0\0\0\0\0\u156B\u16CD\u198D\u1C12\u1DDD\u1F7E\u2060\u21B0\u228D\u23C0\u23FB\u2442\u2824\u2912\u2D08\u2E48\u2FCE\u3016\u32BA\u3639\u37AC\u38FE\u3A28\u3A71\u3AE0\u3B2E\u0800EMabcfglmnoprstu\\bfms\x7F\x84\x8B\x90\x95\x98\xA6\xB3\xB9\xC8\xCFlig\u803B\xC6\u40C6P\u803B&\u4026cute\u803B\xC1\u40C1reve;\u4102\u0100iyx}rc\u803B\xC2\u40C2;\u4410r;\uC000\u{1D504}rave\u803B\xC0\u40C0pha;\u4391acr;\u4100d;\u6A53\u0100gp\x9D\xA1on;\u4104f;\uC000\u{1D538}plyFunction;\u6061ing\u803B\xC5\u40C5\u0100cs\xBE\xC3r;\uC000\u{1D49C}ign;\u6254ilde\u803B\xC3\u40C3ml\u803B\xC4\u40C4\u0400aceforsu\xE5\xFB\xFE\u0117\u011C\u0122\u0127\u012A\u0100cr\xEA\xF2kslash;\u6216\u0176\xF6\xF8;\u6AE7ed;\u6306y;\u4411\u0180crt\u0105\u010B\u0114ause;\u6235noullis;\u612Ca;\u4392r;\uC000\u{1D505}pf;\uC000\u{1D539}eve;\u42D8c\xF2\u0113mpeq;\u624E\u0700HOacdefhilorsu\u014D\u0151\u0156\u0180\u019E\u01A2\u01B5\u01B7\u01BA\u01DC\u0215\u0273\u0278\u027Ecy;\u4427PY\u803B\xA9\u40A9\u0180cpy\u015D\u0162\u017Aute;\u4106\u0100;i\u0167\u0168\u62D2talDifferentialD;\u6145leys;\u612D\u0200aeio\u0189\u018E\u0194\u0198ron;\u410Cdil\u803B\xC7\u40C7rc;\u4108nint;\u6230ot;\u410A\u0100dn\u01A7\u01ADilla;\u40B8terDot;\u40B7\xF2\u017Fi;\u43A7rcle\u0200DMPT\u01C7\u01CB\u01D1\u01D6ot;\u6299inus;\u6296lus;\u6295imes;\u6297o\u0100cs\u01E2\u01F8kwiseContourIntegral;\u6232eCurly\u0100DQ\u0203\u020FoubleQuote;\u601Duote;\u6019\u0200lnpu\u021E\u0228\u0247\u0255on\u0100;e\u0225\u0226\u6237;\u6A74\u0180git\u022F\u0236\u023Aruent;\u6261nt;\u622FourIntegral;\u622E\u0100fr\u024C\u024E;\u6102oduct;\u6210nterClockwiseContourIntegral;\u6233oss;\u6A2Fcr;\uC000\u{1D49E}p\u0100;C\u0284\u0285\u62D3ap;\u624D\u0580DJSZacefios\u02A0\u02AC\u02B0\u02B4\u02B8\u02CB\u02D7\u02E1\u02E6\u0333\u048D\u0100;o\u0179\u02A5trahd;\u6911cy;\u4402cy;\u4405cy;\u440F\u0180grs\u02BF\u02C4\u02C7ger;\u6021r;\u61A1hv;\u6AE4\u0100ay\u02D0\u02D5ron;\u410E;\u4414l\u0100;t\u02DD\u02DE\u6207a;\u4394r;\uC000\u{1D507}\u0100af\u02EB\u0327\u0100cm\u02F0\u0322ritical\u0200ADGT\u0300\u0306\u0316\u031Ccute;\u40B4o\u0174\u030B\u030D;\u42D9bleAcute;\u42DDrave;\u4060ilde;\u42DCond;\u62C4ferentialD;\u6146\u0470\u033D\0\0\0\u0342\u0354\0\u0405f;\uC000\u{1D53B}\u0180;DE\u0348\u0349\u034D\u40A8ot;\u60DCqual;\u6250ble\u0300CDLRUV\u0363\u0372\u0382\u03CF\u03E2\u03F8ontourIntegra\xEC\u0239o\u0274\u0379\0\0\u037B\xBB\u0349nArrow;\u61D3\u0100eo\u0387\u03A4ft\u0180ART\u0390\u0396\u03A1rrow;\u61D0ightArrow;\u61D4e\xE5\u02CAng\u0100LR\u03AB\u03C4eft\u0100AR\u03B3\u03B9rrow;\u67F8ightArrow;\u67FAightArrow;\u67F9ight\u0100AT\u03D8\u03DErrow;\u61D2ee;\u62A8p\u0241\u03E9\0\0\u03EFrrow;\u61D1ownArrow;\u61D5erticalBar;\u6225n\u0300ABLRTa\u0412\u042A\u0430\u045E\u047F\u037Crrow\u0180;BU\u041D\u041E\u0422\u6193ar;\u6913pArrow;\u61F5reve;\u4311eft\u02D2\u043A\0\u0446\0\u0450ightVector;\u6950eeVector;\u695Eector\u0100;B\u0459\u045A\u61BDar;\u6956ight\u01D4\u0467\0\u0471eeVector;\u695Fector\u0100;B\u047A\u047B\u61C1ar;\u6957ee\u0100;A\u0486\u0487\u62A4rrow;\u61A7\u0100ct\u0492\u0497r;\uC000\u{1D49F}rok;\u4110\u0800NTacdfglmopqstux\u04BD\u04C0\u04C4\u04CB\u04DE\u04E2\u04E7\u04EE\u04F5\u0521\u052F\u0536\u0552\u055D\u0560\u0565G;\u414AH\u803B\xD0\u40D0cute\u803B\xC9\u40C9\u0180aiy\u04D2\u04D7\u04DCron;\u411Arc\u803B\xCA\u40CA;\u442Dot;\u4116r;\uC000\u{1D508}rave\u803B\xC8\u40C8ement;\u6208\u0100ap\u04FA\u04FEcr;\u4112ty\u0253\u0506\0\0\u0512mallSquare;\u65FBerySmallSquare;\u65AB\u0100gp\u0526\u052Aon;\u4118f;\uC000\u{1D53C}silon;\u4395u\u0100ai\u053C\u0549l\u0100;T\u0542\u0543\u6A75ilde;\u6242librium;\u61CC\u0100ci\u0557\u055Ar;\u6130m;\u6A73a;\u4397ml\u803B\xCB\u40CB\u0100ip\u056A\u056Fsts;\u6203onentialE;\u6147\u0280cfios\u0585\u0588\u058D\u05B2\u05CCy;\u4424r;\uC000\u{1D509}lled\u0253\u0597\0\0\u05A3mallSquare;\u65FCerySmallSquare;\u65AA\u0370\u05BA\0\u05BF\0\0\u05C4f;\uC000\u{1D53D}All;\u6200riertrf;\u6131c\xF2\u05CB\u0600JTabcdfgorst\u05E8\u05EC\u05EF\u05FA\u0600\u0612\u0616\u061B\u061D\u0623\u066C\u0672cy;\u4403\u803B>\u403Emma\u0100;d\u05F7\u05F8\u4393;\u43DCreve;\u411E\u0180eiy\u0607\u060C\u0610dil;\u4122rc;\u411C;\u4413ot;\u4120r;\uC000\u{1D50A};\u62D9pf;\uC000\u{1D53E}eater\u0300EFGLST\u0635\u0644\u064E\u0656\u065B\u0666qual\u0100;L\u063E\u063F\u6265ess;\u62DBullEqual;\u6267reater;\u6AA2ess;\u6277lantEqual;\u6A7Eilde;\u6273cr;\uC000\u{1D4A2};\u626B\u0400Aacfiosu\u0685\u068B\u0696\u069B\u069E\u06AA\u06BE\u06CARDcy;\u442A\u0100ct\u0690\u0694ek;\u42C7;\u405Eirc;\u4124r;\u610ClbertSpace;\u610B\u01F0\u06AF\0\u06B2f;\u610DizontalLine;\u6500\u0100ct\u06C3\u06C5\xF2\u06A9rok;\u4126mp\u0144\u06D0\u06D8ownHum\xF0\u012Fqual;\u624F\u0700EJOacdfgmnostu\u06FA\u06FE\u0703\u0707\u070E\u071A\u071E\u0721\u0728\u0744\u0778\u078B\u078F\u0795cy;\u4415lig;\u4132cy;\u4401cute\u803B\xCD\u40CD\u0100iy\u0713\u0718rc\u803B\xCE\u40CE;\u4418ot;\u4130r;\u6111rave\u803B\xCC\u40CC\u0180;ap\u0720\u072F\u073F\u0100cg\u0734\u0737r;\u412AinaryI;\u6148lie\xF3\u03DD\u01F4\u0749\0\u0762\u0100;e\u074D\u074E\u622C\u0100gr\u0753\u0758ral;\u622Bsection;\u62C2isible\u0100CT\u076C\u0772omma;\u6063imes;\u6062\u0180gpt\u077F\u0783\u0788on;\u412Ef;\uC000\u{1D540}a;\u4399cr;\u6110ilde;\u4128\u01EB\u079A\0\u079Ecy;\u4406l\u803B\xCF\u40CF\u0280cfosu\u07AC\u07B7\u07BC\u07C2\u07D0\u0100iy\u07B1\u07B5rc;\u4134;\u4419r;\uC000\u{1D50D}pf;\uC000\u{1D541}\u01E3\u07C7\0\u07CCr;\uC000\u{1D4A5}rcy;\u4408kcy;\u4404\u0380HJacfos\u07E4\u07E8\u07EC\u07F1\u07FD\u0802\u0808cy;\u4425cy;\u440Cppa;\u439A\u0100ey\u07F6\u07FBdil;\u4136;\u441Ar;\uC000\u{1D50E}pf;\uC000\u{1D542}cr;\uC000\u{1D4A6}\u0580JTaceflmost\u0825\u0829\u082C\u0850\u0863\u09B3\u09B8\u09C7\u09CD\u0A37\u0A47cy;\u4409\u803B<\u403C\u0280cmnpr\u0837\u083C\u0841\u0844\u084Dute;\u4139bda;\u439Bg;\u67EAlacetrf;\u6112r;\u619E\u0180aey\u0857\u085C\u0861ron;\u413Ddil;\u413B;\u441B\u0100fs\u0868\u0970t\u0500ACDFRTUVar\u087E\u08A9\u08B1\u08E0\u08E6\u08FC\u092F\u095B\u0390\u096A\u0100nr\u0883\u088FgleBracket;\u67E8row\u0180;BR\u0899\u089A\u089E\u6190ar;\u61E4ightArrow;\u61C6eiling;\u6308o\u01F5\u08B7\0\u08C3bleBracket;\u67E6n\u01D4\u08C8\0\u08D2eeVector;\u6961ector\u0100;B\u08DB\u08DC\u61C3ar;\u6959loor;\u630Aight\u0100AV\u08EF\u08F5rrow;\u6194ector;\u694E\u0100er\u0901\u0917e\u0180;AV\u0909\u090A\u0910\u62A3rrow;\u61A4ector;\u695Aiangle\u0180;BE\u0924\u0925\u0929\u62B2ar;\u69CFqual;\u62B4p\u0180DTV\u0937\u0942\u094CownVector;\u6951eeVector;\u6960ector\u0100;B\u0956\u0957\u61BFar;\u6958ector\u0100;B\u0965\u0966\u61BCar;\u6952ight\xE1\u039Cs\u0300EFGLST\u097E\u098B\u0995\u099D\u09A2\u09ADqualGreater;\u62DAullEqual;\u6266reater;\u6276ess;\u6AA1lantEqual;\u6A7Dilde;\u6272r;\uC000\u{1D50F}\u0100;e\u09BD\u09BE\u62D8ftarrow;\u61DAidot;\u413F\u0180npw\u09D4\u0A16\u0A1Bg\u0200LRlr\u09DE\u09F7\u0A02\u0A10eft\u0100AR\u09E6\u09ECrrow;\u67F5ightArrow;\u67F7ightArrow;\u67F6eft\u0100ar\u03B3\u0A0Aight\xE1\u03BFight\xE1\u03CAf;\uC000\u{1D543}er\u0100LR\u0A22\u0A2CeftArrow;\u6199ightArrow;\u6198\u0180cht\u0A3E\u0A40\u0A42\xF2\u084C;\u61B0rok;\u4141;\u626A\u0400acefiosu\u0A5A\u0A5D\u0A60\u0A77\u0A7C\u0A85\u0A8B\u0A8Ep;\u6905y;\u441C\u0100dl\u0A65\u0A6FiumSpace;\u605Flintrf;\u6133r;\uC000\u{1D510}nusPlus;\u6213pf;\uC000\u{1D544}c\xF2\u0A76;\u439C\u0480Jacefostu\u0AA3\u0AA7\u0AAD\u0AC0\u0B14\u0B19\u0D91\u0D97\u0D9Ecy;\u440Acute;\u4143\u0180aey\u0AB4\u0AB9\u0ABEron;\u4147dil;\u4145;\u441D\u0180gsw\u0AC7\u0AF0\u0B0Eative\u0180MTV\u0AD3\u0ADF\u0AE8ediumSpace;\u600Bhi\u0100cn\u0AE6\u0AD8\xEB\u0AD9eryThi\xEE\u0AD9ted\u0100GL\u0AF8\u0B06reaterGreate\xF2\u0673essLes\xF3\u0A48Line;\u400Ar;\uC000\u{1D511}\u0200Bnpt\u0B22\u0B28\u0B37\u0B3Areak;\u6060BreakingSpace;\u40A0f;\u6115\u0680;CDEGHLNPRSTV\u0B55\u0B56\u0B6A\u0B7C\u0BA1\u0BEB\u0C04\u0C5E\u0C84\u0CA6\u0CD8\u0D61\u0D85\u6AEC\u0100ou\u0B5B\u0B64ngruent;\u6262pCap;\u626DoubleVerticalBar;\u6226\u0180lqx\u0B83\u0B8A\u0B9Bement;\u6209ual\u0100;T\u0B92\u0B93\u6260ilde;\uC000\u2242\u0338ists;\u6204reater\u0380;EFGLST\u0BB6\u0BB7\u0BBD\u0BC9\u0BD3\u0BD8\u0BE5\u626Fqual;\u6271ullEqual;\uC000\u2267\u0338reater;\uC000\u226B\u0338ess;\u6279lantEqual;\uC000\u2A7E\u0338ilde;\u6275ump\u0144\u0BF2\u0BFDownHump;\uC000\u224E\u0338qual;\uC000\u224F\u0338e\u0100fs\u0C0A\u0C27tTriangle\u0180;BE\u0C1A\u0C1B\u0C21\u62EAar;\uC000\u29CF\u0338qual;\u62ECs\u0300;EGLST\u0C35\u0C36\u0C3C\u0C44\u0C4B\u0C58\u626Equal;\u6270reater;\u6278ess;\uC000\u226A\u0338lantEqual;\uC000\u2A7D\u0338ilde;\u6274ested\u0100GL\u0C68\u0C79reaterGreater;\uC000\u2AA2\u0338essLess;\uC000\u2AA1\u0338recedes\u0180;ES\u0C92\u0C93\u0C9B\u6280qual;\uC000\u2AAF\u0338lantEqual;\u62E0\u0100ei\u0CAB\u0CB9verseElement;\u620CghtTriangle\u0180;BE\u0CCB\u0CCC\u0CD2\u62EBar;\uC000\u29D0\u0338qual;\u62ED\u0100qu\u0CDD\u0D0CuareSu\u0100bp\u0CE8\u0CF9set\u0100;E\u0CF0\u0CF3\uC000\u228F\u0338qual;\u62E2erset\u0100;E\u0D03\u0D06\uC000\u2290\u0338qual;\u62E3\u0180bcp\u0D13\u0D24\u0D4Eset\u0100;E\u0D1B\u0D1E\uC000\u2282\u20D2qual;\u6288ceeds\u0200;EST\u0D32\u0D33\u0D3B\u0D46\u6281qual;\uC000\u2AB0\u0338lantEqual;\u62E1ilde;\uC000\u227F\u0338erset\u0100;E\u0D58\u0D5B\uC000\u2283\u20D2qual;\u6289ilde\u0200;EFT\u0D6E\u0D6F\u0D75\u0D7F\u6241qual;\u6244ullEqual;\u6247ilde;\u6249erticalBar;\u6224cr;\uC000\u{1D4A9}ilde\u803B\xD1\u40D1;\u439D\u0700Eacdfgmoprstuv\u0DBD\u0DC2\u0DC9\u0DD5\u0DDB\u0DE0\u0DE7\u0DFC\u0E02\u0E20\u0E22\u0E32\u0E3F\u0E44lig;\u4152cute\u803B\xD3\u40D3\u0100iy\u0DCE\u0DD3rc\u803B\xD4\u40D4;\u441Eblac;\u4150r;\uC000\u{1D512}rave\u803B\xD2\u40D2\u0180aei\u0DEE\u0DF2\u0DF6cr;\u414Cga;\u43A9cron;\u439Fpf;\uC000\u{1D546}enCurly\u0100DQ\u0E0E\u0E1AoubleQuote;\u601Cuote;\u6018;\u6A54\u0100cl\u0E27\u0E2Cr;\uC000\u{1D4AA}ash\u803B\xD8\u40D8i\u016C\u0E37\u0E3Cde\u803B\xD5\u40D5es;\u6A37ml\u803B\xD6\u40D6er\u0100BP\u0E4B\u0E60\u0100ar\u0E50\u0E53r;\u603Eac\u0100ek\u0E5A\u0E5C;\u63DEet;\u63B4arenthesis;\u63DC\u0480acfhilors\u0E7F\u0E87\u0E8A\u0E8F\u0E92\u0E94\u0E9D\u0EB0\u0EFCrtialD;\u6202y;\u441Fr;\uC000\u{1D513}i;\u43A6;\u43A0usMinus;\u40B1\u0100ip\u0EA2\u0EADncareplan\xE5\u069Df;\u6119\u0200;eio\u0EB9\u0EBA\u0EE0\u0EE4\u6ABBcedes\u0200;EST\u0EC8\u0EC9\u0ECF\u0EDA\u627Aqual;\u6AAFlantEqual;\u627Cilde;\u627Eme;\u6033\u0100dp\u0EE9\u0EEEuct;\u620Fortion\u0100;a\u0225\u0EF9l;\u621D\u0100ci\u0F01\u0F06r;\uC000\u{1D4AB};\u43A8\u0200Ufos\u0F11\u0F16\u0F1B\u0F1FOT\u803B"\u4022r;\uC000\u{1D514}pf;\u611Acr;\uC000\u{1D4AC}\u0600BEacefhiorsu\u0F3E\u0F43\u0F47\u0F60\u0F73\u0FA7\u0FAA\u0FAD\u1096\u10A9\u10B4\u10BEarr;\u6910G\u803B\xAE\u40AE\u0180cnr\u0F4E\u0F53\u0F56ute;\u4154g;\u67EBr\u0100;t\u0F5C\u0F5D\u61A0l;\u6916\u0180aey\u0F67\u0F6C\u0F71ron;\u4158dil;\u4156;\u4420\u0100;v\u0F78\u0F79\u611Cerse\u0100EU\u0F82\u0F99\u0100lq\u0F87\u0F8Eement;\u620Builibrium;\u61CBpEquilibrium;\u696Fr\xBB\u0F79o;\u43A1ght\u0400ACDFTUVa\u0FC1\u0FEB\u0FF3\u1022\u1028\u105B\u1087\u03D8\u0100nr\u0FC6\u0FD2gleBracket;\u67E9row\u0180;BL\u0FDC\u0FDD\u0FE1\u6192ar;\u61E5eftArrow;\u61C4eiling;\u6309o\u01F5\u0FF9\0\u1005bleBracket;\u67E7n\u01D4\u100A\0\u1014eeVector;\u695Dector\u0100;B\u101D\u101E\u61C2ar;\u6955loor;\u630B\u0100er\u102D\u1043e\u0180;AV\u1035\u1036\u103C\u62A2rrow;\u61A6ector;\u695Biangle\u0180;BE\u1050\u1051\u1055\u62B3ar;\u69D0qual;\u62B5p\u0180DTV\u1063\u106E\u1078ownVector;\u694FeeVector;\u695Cector\u0100;B\u1082\u1083\u61BEar;\u6954ector\u0100;B\u1091\u1092\u61C0ar;\u6953\u0100pu\u109B\u109Ef;\u611DndImplies;\u6970ightarrow;\u61DB\u0100ch\u10B9\u10BCr;\u611B;\u61B1leDelayed;\u69F4\u0680HOacfhimoqstu\u10E4\u10F1\u10F7\u10FD\u1119\u111E\u1151\u1156\u1161\u1167\u11B5\u11BB\u11BF\u0100Cc\u10E9\u10EEHcy;\u4429y;\u4428FTcy;\u442Ccute;\u415A\u0280;aeiy\u1108\u1109\u110E\u1113\u1117\u6ABCron;\u4160dil;\u415Erc;\u415C;\u4421r;\uC000\u{1D516}ort\u0200DLRU\u112A\u1134\u113E\u1149ownArrow\xBB\u041EeftArrow\xBB\u089AightArrow\xBB\u0FDDpArrow;\u6191gma;\u43A3allCircle;\u6218pf;\uC000\u{1D54A}\u0272\u116D\0\0\u1170t;\u621Aare\u0200;ISU\u117B\u117C\u1189\u11AF\u65A1ntersection;\u6293u\u0100bp\u118F\u119Eset\u0100;E\u1197\u1198\u628Fqual;\u6291erset\u0100;E\u11A8\u11A9\u6290qual;\u6292nion;\u6294cr;\uC000\u{1D4AE}ar;\u62C6\u0200bcmp\u11C8\u11DB\u1209\u120B\u0100;s\u11CD\u11CE\u62D0et\u0100;E\u11CD\u11D5qual;\u6286\u0100ch\u11E0\u1205eeds\u0200;EST\u11ED\u11EE\u11F4\u11FF\u627Bqual;\u6AB0lantEqual;\u627Dilde;\u627FTh\xE1\u0F8C;\u6211\u0180;es\u1212\u1213\u1223\u62D1rset\u0100;E\u121C\u121D\u6283qual;\u6287et\xBB\u1213\u0580HRSacfhiors\u123E\u1244\u1249\u1255\u125E\u1271\u1276\u129F\u12C2\u12C8\u12D1ORN\u803B\xDE\u40DEADE;\u6122\u0100Hc\u124E\u1252cy;\u440By;\u4426\u0100bu\u125A\u125C;\u4009;\u43A4\u0180aey\u1265\u126A\u126Fron;\u4164dil;\u4162;\u4422r;\uC000\u{1D517}\u0100ei\u127B\u1289\u01F2\u1280\0\u1287efore;\u6234a;\u4398\u0100cn\u128E\u1298kSpace;\uC000\u205F\u200ASpace;\u6009lde\u0200;EFT\u12AB\u12AC\u12B2\u12BC\u623Cqual;\u6243ullEqual;\u6245ilde;\u6248pf;\uC000\u{1D54B}ipleDot;\u60DB\u0100ct\u12D6\u12DBr;\uC000\u{1D4AF}rok;\u4166\u0AE1\u12F7\u130E\u131A\u1326\0\u132C\u1331\0\0\0\0\0\u1338\u133D\u1377\u1385\0\u13FF\u1404\u140A\u1410\u0100cr\u12FB\u1301ute\u803B\xDA\u40DAr\u0100;o\u1307\u1308\u619Fcir;\u6949r\u01E3\u1313\0\u1316y;\u440Eve;\u416C\u0100iy\u131E\u1323rc\u803B\xDB\u40DB;\u4423blac;\u4170r;\uC000\u{1D518}rave\u803B\xD9\u40D9acr;\u416A\u0100di\u1341\u1369er\u0100BP\u1348\u135D\u0100ar\u134D\u1350r;\u405Fac\u0100ek\u1357\u1359;\u63DFet;\u63B5arenthesis;\u63DDon\u0100;P\u1370\u1371\u62C3lus;\u628E\u0100gp\u137B\u137Fon;\u4172f;\uC000\u{1D54C}\u0400ADETadps\u1395\u13AE\u13B8\u13C4\u03E8\u13D2\u13D7\u13F3rrow\u0180;BD\u1150\u13A0\u13A4ar;\u6912ownArrow;\u61C5ownArrow;\u6195quilibrium;\u696Eee\u0100;A\u13CB\u13CC\u62A5rrow;\u61A5own\xE1\u03F3er\u0100LR\u13DE\u13E8eftArrow;\u6196ightArrow;\u6197i\u0100;l\u13F9\u13FA\u43D2on;\u43A5ing;\u416Ecr;\uC000\u{1D4B0}ilde;\u4168ml\u803B\xDC\u40DC\u0480Dbcdefosv\u1427\u142C\u1430\u1433\u143E\u1485\u148A\u1490\u1496ash;\u62ABar;\u6AEBy;\u4412ash\u0100;l\u143B\u143C\u62A9;\u6AE6\u0100er\u1443\u1445;\u62C1\u0180bty\u144C\u1450\u147Aar;\u6016\u0100;i\u144F\u1455cal\u0200BLST\u1461\u1465\u146A\u1474ar;\u6223ine;\u407Ceparator;\u6758ilde;\u6240ThinSpace;\u600Ar;\uC000\u{1D519}pf;\uC000\u{1D54D}cr;\uC000\u{1D4B1}dash;\u62AA\u0280cefos\u14A7\u14AC\u14B1\u14B6\u14BCirc;\u4174dge;\u62C0r;\uC000\u{1D51A}pf;\uC000\u{1D54E}cr;\uC000\u{1D4B2}\u0200fios\u14CB\u14D0\u14D2\u14D8r;\uC000\u{1D51B};\u439Epf;\uC000\u{1D54F}cr;\uC000\u{1D4B3}\u0480AIUacfosu\u14F1\u14F5\u14F9\u14FD\u1504\u150F\u1514\u151A\u1520cy;\u442Fcy;\u4407cy;\u442Ecute\u803B\xDD\u40DD\u0100iy\u1509\u150Drc;\u4176;\u442Br;\uC000\u{1D51C}pf;\uC000\u{1D550}cr;\uC000\u{1D4B4}ml;\u4178\u0400Hacdefos\u1535\u1539\u153F\u154B\u154F\u155D\u1560\u1564cy;\u4416cute;\u4179\u0100ay\u1544\u1549ron;\u417D;\u4417ot;\u417B\u01F2\u1554\0\u155BoWidt\xE8\u0AD9a;\u4396r;\u6128pf;\u6124cr;\uC000\u{1D4B5}\u0BE1\u1583\u158A\u1590\0\u15B0\u15B6\u15BF\0\0\0\0\u15C6\u15DB\u15EB\u165F\u166D\0\u1695\u169B\u16B2\u16B9\0\u16BEcute\u803B\xE1\u40E1reve;\u4103\u0300;Ediuy\u159C\u159D\u15A1\u15A3\u15A8\u15AD\u623E;\uC000\u223E\u0333;\u623Frc\u803B\xE2\u40E2te\u80BB\xB4\u0306;\u4430lig\u803B\xE6\u40E6\u0100;r\xB2\u15BA;\uC000\u{1D51E}rave\u803B\xE0\u40E0\u0100ep\u15CA\u15D6\u0100fp\u15CF\u15D4sym;\u6135\xE8\u15D3ha;\u43B1\u0100ap\u15DFc\u0100cl\u15E4\u15E7r;\u4101g;\u6A3F\u0264\u15F0\0\0\u160A\u0280;adsv\u15FA\u15FB\u15FF\u1601\u1607\u6227nd;\u6A55;\u6A5Clope;\u6A58;\u6A5A\u0380;elmrsz\u1618\u1619\u161B\u161E\u163F\u164F\u1659\u6220;\u69A4e\xBB\u1619sd\u0100;a\u1625\u1626\u6221\u0461\u1630\u1632\u1634\u1636\u1638\u163A\u163C\u163E;\u69A8;\u69A9;\u69AA;\u69AB;\u69AC;\u69AD;\u69AE;\u69AFt\u0100;v\u1645\u1646\u621Fb\u0100;d\u164C\u164D\u62BE;\u699D\u0100pt\u1654\u1657h;\u6222\xBB\xB9arr;\u637C\u0100gp\u1663\u1667on;\u4105f;\uC000\u{1D552}\u0380;Eaeiop\u12C1\u167B\u167D\u1682\u1684\u1687\u168A;\u6A70cir;\u6A6F;\u624Ad;\u624Bs;\u4027rox\u0100;e\u12C1\u1692\xF1\u1683ing\u803B\xE5\u40E5\u0180cty\u16A1\u16A6\u16A8r;\uC000\u{1D4B6};\u402Amp\u0100;e\u12C1\u16AF\xF1\u0288ilde\u803B\xE3\u40E3ml\u803B\xE4\u40E4\u0100ci\u16C2\u16C8onin\xF4\u0272nt;\u6A11\u0800Nabcdefiklnoprsu\u16ED\u16F1\u1730\u173C\u1743\u1748\u1778\u177D\u17E0\u17E6\u1839\u1850\u170D\u193D\u1948\u1970ot;\u6AED\u0100cr\u16F6\u171Ek\u0200ceps\u1700\u1705\u170D\u1713ong;\u624Cpsilon;\u43F6rime;\u6035im\u0100;e\u171A\u171B\u623Dq;\u62CD\u0176\u1722\u1726ee;\u62BDed\u0100;g\u172C\u172D\u6305e\xBB\u172Drk\u0100;t\u135C\u1737brk;\u63B6\u0100oy\u1701\u1741;\u4431quo;\u601E\u0280cmprt\u1753\u175B\u1761\u1764\u1768aus\u0100;e\u010A\u0109ptyv;\u69B0s\xE9\u170Cno\xF5\u0113\u0180ahw\u176F\u1771\u1773;\u43B2;\u6136een;\u626Cr;\uC000\u{1D51F}g\u0380costuvw\u178D\u179D\u17B3\u17C1\u17D5\u17DB\u17DE\u0180aiu\u1794\u1796\u179A\xF0\u0760rc;\u65EFp\xBB\u1371\u0180dpt\u17A4\u17A8\u17ADot;\u6A00lus;\u6A01imes;\u6A02\u0271\u17B9\0\0\u17BEcup;\u6A06ar;\u6605riangle\u0100du\u17CD\u17D2own;\u65BDp;\u65B3plus;\u6A04e\xE5\u1444\xE5\u14ADarow;\u690D\u0180ako\u17ED\u1826\u1835\u0100cn\u17F2\u1823k\u0180lst\u17FA\u05AB\u1802ozenge;\u69EBriangle\u0200;dlr\u1812\u1813\u1818\u181D\u65B4own;\u65BEeft;\u65C2ight;\u65B8k;\u6423\u01B1\u182B\0\u1833\u01B2\u182F\0\u1831;\u6592;\u65914;\u6593ck;\u6588\u0100eo\u183E\u184D\u0100;q\u1843\u1846\uC000=\u20E5uiv;\uC000\u2261\u20E5t;\u6310\u0200ptwx\u1859\u185E\u1867\u186Cf;\uC000\u{1D553}\u0100;t\u13CB\u1863om\xBB\u13CCtie;\u62C8\u0600DHUVbdhmptuv\u1885\u1896\u18AA\u18BB\u18D7\u18DB\u18EC\u18FF\u1905\u190A\u1910\u1921\u0200LRlr\u188E\u1890\u1892\u1894;\u6557;\u6554;\u6556;\u6553\u0280;DUdu\u18A1\u18A2\u18A4\u18A6\u18A8\u6550;\u6566;\u6569;\u6564;\u6567\u0200LRlr\u18B3\u18B5\u18B7\u18B9;\u655D;\u655A;\u655C;\u6559\u0380;HLRhlr\u18CA\u18CB\u18CD\u18CF\u18D1\u18D3\u18D5\u6551;\u656C;\u6563;\u6560;\u656B;\u6562;\u655Fox;\u69C9\u0200LRlr\u18E4\u18E6\u18E8\u18EA;\u6555;\u6552;\u6510;\u650C\u0280;DUdu\u06BD\u18F7\u18F9\u18FB\u18FD;\u6565;\u6568;\u652C;\u6534inus;\u629Flus;\u629Eimes;\u62A0\u0200LRlr\u1919\u191B\u191D\u191F;\u655B;\u6558;\u6518;\u6514\u0380;HLRhlr\u1930\u1931\u1933\u1935\u1937\u1939\u193B\u6502;\u656A;\u6561;\u655E;\u653C;\u6524;\u651C\u0100ev\u0123\u1942bar\u803B\xA6\u40A6\u0200ceio\u1951\u1956\u195A\u1960r;\uC000\u{1D4B7}mi;\u604Fm\u0100;e\u171A\u171Cl\u0180;bh\u1968\u1969\u196B\u405C;\u69C5sub;\u67C8\u016C\u1974\u197El\u0100;e\u1979\u197A\u6022t\xBB\u197Ap\u0180;Ee\u012F\u1985\u1987;\u6AAE\u0100;q\u06DC\u06DB\u0CE1\u19A7\0\u19E8\u1A11\u1A15\u1A32\0\u1A37\u1A50\0\0\u1AB4\0\0\u1AC1\0\0\u1B21\u1B2E\u1B4D\u1B52\0\u1BFD\0\u1C0C\u0180cpr\u19AD\u19B2\u19DDute;\u4107\u0300;abcds\u19BF\u19C0\u19C4\u19CA\u19D5\u19D9\u6229nd;\u6A44rcup;\u6A49\u0100au\u19CF\u19D2p;\u6A4Bp;\u6A47ot;\u6A40;\uC000\u2229\uFE00\u0100eo\u19E2\u19E5t;\u6041\xEE\u0693\u0200aeiu\u19F0\u19FB\u1A01\u1A05\u01F0\u19F5\0\u19F8s;\u6A4Don;\u410Ddil\u803B\xE7\u40E7rc;\u4109ps\u0100;s\u1A0C\u1A0D\u6A4Cm;\u6A50ot;\u410B\u0180dmn\u1A1B\u1A20\u1A26il\u80BB\xB8\u01ADptyv;\u69B2t\u8100\xA2;e\u1A2D\u1A2E\u40A2r\xE4\u01B2r;\uC000\u{1D520}\u0180cei\u1A3D\u1A40\u1A4Dy;\u4447ck\u0100;m\u1A47\u1A48\u6713ark\xBB\u1A48;\u43C7r\u0380;Ecefms\u1A5F\u1A60\u1A62\u1A6B\u1AA4\u1AAA\u1AAE\u65CB;\u69C3\u0180;el\u1A69\u1A6A\u1A6D\u42C6q;\u6257e\u0261\u1A74\0\0\u1A88rrow\u0100lr\u1A7C\u1A81eft;\u61BAight;\u61BB\u0280RSacd\u1A92\u1A94\u1A96\u1A9A\u1A9F\xBB\u0F47;\u64C8st;\u629Birc;\u629Aash;\u629Dnint;\u6A10id;\u6AEFcir;\u69C2ubs\u0100;u\u1ABB\u1ABC\u6663it\xBB\u1ABC\u02EC\u1AC7\u1AD4\u1AFA\0\u1B0Aon\u0100;e\u1ACD\u1ACE\u403A\u0100;q\xC7\xC6\u026D\u1AD9\0\0\u1AE2a\u0100;t\u1ADE\u1ADF\u402C;\u4040\u0180;fl\u1AE8\u1AE9\u1AEB\u6201\xEE\u1160e\u0100mx\u1AF1\u1AF6ent\xBB\u1AE9e\xF3\u024D\u01E7\u1AFE\0\u1B07\u0100;d\u12BB\u1B02ot;\u6A6Dn\xF4\u0246\u0180fry\u1B10\u1B14\u1B17;\uC000\u{1D554}o\xE4\u0254\u8100\xA9;s\u0155\u1B1Dr;\u6117\u0100ao\u1B25\u1B29rr;\u61B5ss;\u6717\u0100cu\u1B32\u1B37r;\uC000\u{1D4B8}\u0100bp\u1B3C\u1B44\u0100;e\u1B41\u1B42\u6ACF;\u6AD1\u0100;e\u1B49\u1B4A\u6AD0;\u6AD2dot;\u62EF\u0380delprvw\u1B60\u1B6C\u1B77\u1B82\u1BAC\u1BD4\u1BF9arr\u0100lr\u1B68\u1B6A;\u6938;\u6935\u0270\u1B72\0\0\u1B75r;\u62DEc;\u62DFarr\u0100;p\u1B7F\u1B80\u61B6;\u693D\u0300;bcdos\u1B8F\u1B90\u1B96\u1BA1\u1BA5\u1BA8\u622Arcap;\u6A48\u0100au\u1B9B\u1B9Ep;\u6A46p;\u6A4Aot;\u628Dr;\u6A45;\uC000\u222A\uFE00\u0200alrv\u1BB5\u1BBF\u1BDE\u1BE3rr\u0100;m\u1BBC\u1BBD\u61B7;\u693Cy\u0180evw\u1BC7\u1BD4\u1BD8q\u0270\u1BCE\0\0\u1BD2re\xE3\u1B73u\xE3\u1B75ee;\u62CEedge;\u62CFen\u803B\xA4\u40A4earrow\u0100lr\u1BEE\u1BF3eft\xBB\u1B80ight\xBB\u1BBDe\xE4\u1BDD\u0100ci\u1C01\u1C07onin\xF4\u01F7nt;\u6231lcty;\u632D\u0980AHabcdefhijlorstuwz\u1C38\u1C3B\u1C3F\u1C5D\u1C69\u1C75\u1C8A\u1C9E\u1CAC\u1CB7\u1CFB\u1CFF\u1D0D\u1D7B\u1D91\u1DAB\u1DBB\u1DC6\u1DCDr\xF2\u0381ar;\u6965\u0200glrs\u1C48\u1C4D\u1C52\u1C54ger;\u6020eth;\u6138\xF2\u1133h\u0100;v\u1C5A\u1C5B\u6010\xBB\u090A\u016B\u1C61\u1C67arow;\u690Fa\xE3\u0315\u0100ay\u1C6E\u1C73ron;\u410F;\u4434\u0180;ao\u0332\u1C7C\u1C84\u0100gr\u02BF\u1C81r;\u61CAtseq;\u6A77\u0180glm\u1C91\u1C94\u1C98\u803B\xB0\u40B0ta;\u43B4ptyv;\u69B1\u0100ir\u1CA3\u1CA8sht;\u697F;\uC000\u{1D521}ar\u0100lr\u1CB3\u1CB5\xBB\u08DC\xBB\u101E\u0280aegsv\u1CC2\u0378\u1CD6\u1CDC\u1CE0m\u0180;os\u0326\u1CCA\u1CD4nd\u0100;s\u0326\u1CD1uit;\u6666amma;\u43DDin;\u62F2\u0180;io\u1CE7\u1CE8\u1CF8\u40F7de\u8100\xF7;o\u1CE7\u1CF0ntimes;\u62C7n\xF8\u1CF7cy;\u4452c\u026F\u1D06\0\0\u1D0Arn;\u631Eop;\u630D\u0280lptuw\u1D18\u1D1D\u1D22\u1D49\u1D55lar;\u4024f;\uC000\u{1D555}\u0280;emps\u030B\u1D2D\u1D37\u1D3D\u1D42q\u0100;d\u0352\u1D33ot;\u6251inus;\u6238lus;\u6214quare;\u62A1blebarwedg\xE5\xFAn\u0180adh\u112E\u1D5D\u1D67ownarrow\xF3\u1C83arpoon\u0100lr\u1D72\u1D76ef\xF4\u1CB4igh\xF4\u1CB6\u0162\u1D7F\u1D85karo\xF7\u0F42\u026F\u1D8A\0\0\u1D8Ern;\u631Fop;\u630C\u0180cot\u1D98\u1DA3\u1DA6\u0100ry\u1D9D\u1DA1;\uC000\u{1D4B9};\u4455l;\u69F6rok;\u4111\u0100dr\u1DB0\u1DB4ot;\u62F1i\u0100;f\u1DBA\u1816\u65BF\u0100ah\u1DC0\u1DC3r\xF2\u0429a\xF2\u0FA6angle;\u69A6\u0100ci\u1DD2\u1DD5y;\u445Fgrarr;\u67FF\u0900Dacdefglmnopqrstux\u1E01\u1E09\u1E19\u1E38\u0578\u1E3C\u1E49\u1E61\u1E7E\u1EA5\u1EAF\u1EBD\u1EE1\u1F2A\u1F37\u1F44\u1F4E\u1F5A\u0100Do\u1E06\u1D34o\xF4\u1C89\u0100cs\u1E0E\u1E14ute\u803B\xE9\u40E9ter;\u6A6E\u0200aioy\u1E22\u1E27\u1E31\u1E36ron;\u411Br\u0100;c\u1E2D\u1E2E\u6256\u803B\xEA\u40EAlon;\u6255;\u444Dot;\u4117\u0100Dr\u1E41\u1E45ot;\u6252;\uC000\u{1D522}\u0180;rs\u1E50\u1E51\u1E57\u6A9Aave\u803B\xE8\u40E8\u0100;d\u1E5C\u1E5D\u6A96ot;\u6A98\u0200;ils\u1E6A\u1E6B\u1E72\u1E74\u6A99nters;\u63E7;\u6113\u0100;d\u1E79\u1E7A\u6A95ot;\u6A97\u0180aps\u1E85\u1E89\u1E97cr;\u4113ty\u0180;sv\u1E92\u1E93\u1E95\u6205et\xBB\u1E93p\u01001;\u1E9D\u1EA4\u0133\u1EA1\u1EA3;\u6004;\u6005\u6003\u0100gs\u1EAA\u1EAC;\u414Bp;\u6002\u0100gp\u1EB4\u1EB8on;\u4119f;\uC000\u{1D556}\u0180als\u1EC4\u1ECE\u1ED2r\u0100;s\u1ECA\u1ECB\u62D5l;\u69E3us;\u6A71i\u0180;lv\u1EDA\u1EDB\u1EDF\u43B5on\xBB\u1EDB;\u43F5\u0200csuv\u1EEA\u1EF3\u1F0B\u1F23\u0100io\u1EEF\u1E31rc\xBB\u1E2E\u0269\u1EF9\0\0\u1EFB\xED\u0548ant\u0100gl\u1F02\u1F06tr\xBB\u1E5Dess\xBB\u1E7A\u0180aei\u1F12\u1F16\u1F1Als;\u403Dst;\u625Fv\u0100;D\u0235\u1F20D;\u6A78parsl;\u69E5\u0100Da\u1F2F\u1F33ot;\u6253rr;\u6971\u0180cdi\u1F3E\u1F41\u1EF8r;\u612Fo\xF4\u0352\u0100ah\u1F49\u1F4B;\u43B7\u803B\xF0\u40F0\u0100mr\u1F53\u1F57l\u803B\xEB\u40EBo;\u60AC\u0180cip\u1F61\u1F64\u1F67l;\u4021s\xF4\u056E\u0100eo\u1F6C\u1F74ctatio\xEE\u0559nential\xE5\u0579\u09E1\u1F92\0\u1F9E\0\u1FA1\u1FA7\0\0\u1FC6\u1FCC\0\u1FD3\0\u1FE6\u1FEA\u2000\0\u2008\u205Allingdotse\xF1\u1E44y;\u4444male;\u6640\u0180ilr\u1FAD\u1FB3\u1FC1lig;\u8000\uFB03\u0269\u1FB9\0\0\u1FBDg;\u8000\uFB00ig;\u8000\uFB04;\uC000\u{1D523}lig;\u8000\uFB01lig;\uC000fj\u0180alt\u1FD9\u1FDC\u1FE1t;\u666Dig;\u8000\uFB02ns;\u65B1of;\u4192\u01F0\u1FEE\0\u1FF3f;\uC000\u{1D557}\u0100ak\u05BF\u1FF7\u0100;v\u1FFC\u1FFD\u62D4;\u6AD9artint;\u6A0D\u0100ao\u200C\u2055\u0100cs\u2011\u2052\u03B1\u201A\u2030\u2038\u2045\u2048\0\u2050\u03B2\u2022\u2025\u2027\u202A\u202C\0\u202E\u803B\xBD\u40BD;\u6153\u803B\xBC\u40BC;\u6155;\u6159;\u615B\u01B3\u2034\0\u2036;\u6154;\u6156\u02B4\u203E\u2041\0\0\u2043\u803B\xBE\u40BE;\u6157;\u615C5;\u6158\u01B6\u204C\0\u204E;\u615A;\u615D8;\u615El;\u6044wn;\u6322cr;\uC000\u{1D4BB}\u0880Eabcdefgijlnorstv\u2082\u2089\u209F\u20A5\u20B0\u20B4\u20F0\u20F5\u20FA\u20FF\u2103\u2112\u2138\u0317\u213E\u2152\u219E\u0100;l\u064D\u2087;\u6A8C\u0180cmp\u2090\u2095\u209Dute;\u41F5ma\u0100;d\u209C\u1CDA\u43B3;\u6A86reve;\u411F\u0100iy\u20AA\u20AErc;\u411D;\u4433ot;\u4121\u0200;lqs\u063E\u0642\u20BD\u20C9\u0180;qs\u063E\u064C\u20C4lan\xF4\u0665\u0200;cdl\u0665\u20D2\u20D5\u20E5c;\u6AA9ot\u0100;o\u20DC\u20DD\u6A80\u0100;l\u20E2\u20E3\u6A82;\u6A84\u0100;e\u20EA\u20ED\uC000\u22DB\uFE00s;\u6A94r;\uC000\u{1D524}\u0100;g\u0673\u061Bmel;\u6137cy;\u4453\u0200;Eaj\u065A\u210C\u210E\u2110;\u6A92;\u6AA5;\u6AA4\u0200Eaes\u211B\u211D\u2129\u2134;\u6269p\u0100;p\u2123\u2124\u6A8Arox\xBB\u2124\u0100;q\u212E\u212F\u6A88\u0100;q\u212E\u211Bim;\u62E7pf;\uC000\u{1D558}\u0100ci\u2143\u2146r;\u610Am\u0180;el\u066B\u214E\u2150;\u6A8E;\u6A90\u8300>;cdlqr\u05EE\u2160\u216A\u216E\u2173\u2179\u0100ci\u2165\u2167;\u6AA7r;\u6A7Aot;\u62D7Par;\u6995uest;\u6A7C\u0280adels\u2184\u216A\u2190\u0656\u219B\u01F0\u2189\0\u218Epro\xF8\u209Er;\u6978q\u0100lq\u063F\u2196les\xF3\u2088i\xED\u066B\u0100en\u21A3\u21ADrtneqq;\uC000\u2269\uFE00\xC5\u21AA\u0500Aabcefkosy\u21C4\u21C7\u21F1\u21F5\u21FA\u2218\u221D\u222F\u2268\u227Dr\xF2\u03A0\u0200ilmr\u21D0\u21D4\u21D7\u21DBrs\xF0\u1484f\xBB\u2024il\xF4\u06A9\u0100dr\u21E0\u21E4cy;\u444A\u0180;cw\u08F4\u21EB\u21EFir;\u6948;\u61ADar;\u610Firc;\u4125\u0180alr\u2201\u220E\u2213rts\u0100;u\u2209\u220A\u6665it\xBB\u220Alip;\u6026con;\u62B9r;\uC000\u{1D525}s\u0100ew\u2223\u2229arow;\u6925arow;\u6926\u0280amopr\u223A\u223E\u2243\u225E\u2263rr;\u61FFtht;\u623Bk\u0100lr\u2249\u2253eftarrow;\u61A9ightarrow;\u61AAf;\uC000\u{1D559}bar;\u6015\u0180clt\u226F\u2274\u2278r;\uC000\u{1D4BD}as\xE8\u21F4rok;\u4127\u0100bp\u2282\u2287ull;\u6043hen\xBB\u1C5B\u0AE1\u22A3\0\u22AA\0\u22B8\u22C5\u22CE\0\u22D5\u22F3\0\0\u22F8\u2322\u2367\u2362\u237F\0\u2386\u23AA\u23B4cute\u803B\xED\u40ED\u0180;iy\u0771\u22B0\u22B5rc\u803B\xEE\u40EE;\u4438\u0100cx\u22BC\u22BFy;\u4435cl\u803B\xA1\u40A1\u0100fr\u039F\u22C9;\uC000\u{1D526}rave\u803B\xEC\u40EC\u0200;ino\u073E\u22DD\u22E9\u22EE\u0100in\u22E2\u22E6nt;\u6A0Ct;\u622Dfin;\u69DCta;\u6129lig;\u4133\u0180aop\u22FE\u231A\u231D\u0180cgt\u2305\u2308\u2317r;\u412B\u0180elp\u071F\u230F\u2313in\xE5\u078Ear\xF4\u0720h;\u4131f;\u62B7ed;\u41B5\u0280;cfot\u04F4\u232C\u2331\u233D\u2341are;\u6105in\u0100;t\u2338\u2339\u621Eie;\u69DDdo\xF4\u2319\u0280;celp\u0757\u234C\u2350\u235B\u2361al;\u62BA\u0100gr\u2355\u2359er\xF3\u1563\xE3\u234Darhk;\u6A17rod;\u6A3C\u0200cgpt\u236F\u2372\u2376\u237By;\u4451on;\u412Ff;\uC000\u{1D55A}a;\u43B9uest\u803B\xBF\u40BF\u0100ci\u238A\u238Fr;\uC000\u{1D4BE}n\u0280;Edsv\u04F4\u239B\u239D\u23A1\u04F3;\u62F9ot;\u62F5\u0100;v\u23A6\u23A7\u62F4;\u62F3\u0100;i\u0777\u23AElde;\u4129\u01EB\u23B8\0\u23BCcy;\u4456l\u803B\xEF\u40EF\u0300cfmosu\u23CC\u23D7\u23DC\u23E1\u23E7\u23F5\u0100iy\u23D1\u23D5rc;\u4135;\u4439r;\uC000\u{1D527}ath;\u4237pf;\uC000\u{1D55B}\u01E3\u23EC\0\u23F1r;\uC000\u{1D4BF}rcy;\u4458kcy;\u4454\u0400acfghjos\u240B\u2416\u2422\u2427\u242D\u2431\u2435\u243Bppa\u0100;v\u2413\u2414\u43BA;\u43F0\u0100ey\u241B\u2420dil;\u4137;\u443Ar;\uC000\u{1D528}reen;\u4138cy;\u4445cy;\u445Cpf;\uC000\u{1D55C}cr;\uC000\u{1D4C0}\u0B80ABEHabcdefghjlmnoprstuv\u2470\u2481\u2486\u248D\u2491\u250E\u253D\u255A\u2580\u264E\u265E\u2665\u2679\u267D\u269A\u26B2\u26D8\u275D\u2768\u278B\u27C0\u2801\u2812\u0180art\u2477\u247A\u247Cr\xF2\u09C6\xF2\u0395ail;\u691Barr;\u690E\u0100;g\u0994\u248B;\u6A8Bar;\u6962\u0963\u24A5\0\u24AA\0\u24B1\0\0\0\0\0\u24B5\u24BA\0\u24C6\u24C8\u24CD\0\u24F9ute;\u413Amptyv;\u69B4ra\xEE\u084Cbda;\u43BBg\u0180;dl\u088E\u24C1\u24C3;\u6991\xE5\u088E;\u6A85uo\u803B\xAB\u40ABr\u0400;bfhlpst\u0899\u24DE\u24E6\u24E9\u24EB\u24EE\u24F1\u24F5\u0100;f\u089D\u24E3s;\u691Fs;\u691D\xEB\u2252p;\u61ABl;\u6939im;\u6973l;\u61A2\u0180;ae\u24FF\u2500\u2504\u6AABil;\u6919\u0100;s\u2509\u250A\u6AAD;\uC000\u2AAD\uFE00\u0180abr\u2515\u2519\u251Drr;\u690Crk;\u6772\u0100ak\u2522\u252Cc\u0100ek\u2528\u252A;\u407B;\u405B\u0100es\u2531\u2533;\u698Bl\u0100du\u2539\u253B;\u698F;\u698D\u0200aeuy\u2546\u254B\u2556\u2558ron;\u413E\u0100di\u2550\u2554il;\u413C\xEC\u08B0\xE2\u2529;\u443B\u0200cqrs\u2563\u2566\u256D\u257Da;\u6936uo\u0100;r\u0E19\u1746\u0100du\u2572\u2577har;\u6967shar;\u694Bh;\u61B2\u0280;fgqs\u258B\u258C\u0989\u25F3\u25FF\u6264t\u0280ahlrt\u2598\u25A4\u25B7\u25C2\u25E8rrow\u0100;t\u0899\u25A1a\xE9\u24F6arpoon\u0100du\u25AF\u25B4own\xBB\u045Ap\xBB\u0966eftarrows;\u61C7ight\u0180ahs\u25CD\u25D6\u25DErrow\u0100;s\u08F4\u08A7arpoon\xF3\u0F98quigarro\xF7\u21F0hreetimes;\u62CB\u0180;qs\u258B\u0993\u25FAlan\xF4\u09AC\u0280;cdgs\u09AC\u260A\u260D\u261D\u2628c;\u6AA8ot\u0100;o\u2614\u2615\u6A7F\u0100;r\u261A\u261B\u6A81;\u6A83\u0100;e\u2622\u2625\uC000\u22DA\uFE00s;\u6A93\u0280adegs\u2633\u2639\u263D\u2649\u264Bppro\xF8\u24C6ot;\u62D6q\u0100gq\u2643\u2645\xF4\u0989gt\xF2\u248C\xF4\u099Bi\xED\u09B2\u0180ilr\u2655\u08E1\u265Asht;\u697C;\uC000\u{1D529}\u0100;E\u099C\u2663;\u6A91\u0161\u2669\u2676r\u0100du\u25B2\u266E\u0100;l\u0965\u2673;\u696Alk;\u6584cy;\u4459\u0280;acht\u0A48\u2688\u268B\u2691\u2696r\xF2\u25C1orne\xF2\u1D08ard;\u696Bri;\u65FA\u0100io\u269F\u26A4dot;\u4140ust\u0100;a\u26AC\u26AD\u63B0che\xBB\u26AD\u0200Eaes\u26BB\u26BD\u26C9\u26D4;\u6268p\u0100;p\u26C3\u26C4\u6A89rox\xBB\u26C4\u0100;q\u26CE\u26CF\u6A87\u0100;q\u26CE\u26BBim;\u62E6\u0400abnoptwz\u26E9\u26F4\u26F7\u271A\u272F\u2741\u2747\u2750\u0100nr\u26EE\u26F1g;\u67ECr;\u61FDr\xEB\u08C1g\u0180lmr\u26FF\u270D\u2714eft\u0100ar\u09E6\u2707ight\xE1\u09F2apsto;\u67FCight\xE1\u09FDparrow\u0100lr\u2725\u2729ef\xF4\u24EDight;\u61AC\u0180afl\u2736\u2739\u273Dr;\u6985;\uC000\u{1D55D}us;\u6A2Dimes;\u6A34\u0161\u274B\u274Fst;\u6217\xE1\u134E\u0180;ef\u2757\u2758\u1800\u65CAnge\xBB\u2758ar\u0100;l\u2764\u2765\u4028t;\u6993\u0280achmt\u2773\u2776\u277C\u2785\u2787r\xF2\u08A8orne\xF2\u1D8Car\u0100;d\u0F98\u2783;\u696D;\u600Eri;\u62BF\u0300achiqt\u2798\u279D\u0A40\u27A2\u27AE\u27BBquo;\u6039r;\uC000\u{1D4C1}m\u0180;eg\u09B2\u27AA\u27AC;\u6A8D;\u6A8F\u0100bu\u252A\u27B3o\u0100;r\u0E1F\u27B9;\u601Arok;\u4142\u8400<;cdhilqr\u082B\u27D2\u2639\u27DC\u27E0\u27E5\u27EA\u27F0\u0100ci\u27D7\u27D9;\u6AA6r;\u6A79re\xE5\u25F2mes;\u62C9arr;\u6976uest;\u6A7B\u0100Pi\u27F5\u27F9ar;\u6996\u0180;ef\u2800\u092D\u181B\u65C3r\u0100du\u2807\u280Dshar;\u694Ahar;\u6966\u0100en\u2817\u2821rtneqq;\uC000\u2268\uFE00\xC5\u281E\u0700Dacdefhilnopsu\u2840\u2845\u2882\u288E\u2893\u28A0\u28A5\u28A8\u28DA\u28E2\u28E4\u0A83\u28F3\u2902Dot;\u623A\u0200clpr\u284E\u2852\u2863\u287Dr\u803B\xAF\u40AF\u0100et\u2857\u2859;\u6642\u0100;e\u285E\u285F\u6720se\xBB\u285F\u0100;s\u103B\u2868to\u0200;dlu\u103B\u2873\u2877\u287Bow\xEE\u048Cef\xF4\u090F\xF0\u13D1ker;\u65AE\u0100oy\u2887\u288Cmma;\u6A29;\u443Cash;\u6014asuredangle\xBB\u1626r;\uC000\u{1D52A}o;\u6127\u0180cdn\u28AF\u28B4\u28C9ro\u803B\xB5\u40B5\u0200;acd\u1464\u28BD\u28C0\u28C4s\xF4\u16A7ir;\u6AF0ot\u80BB\xB7\u01B5us\u0180;bd\u28D2\u1903\u28D3\u6212\u0100;u\u1D3C\u28D8;\u6A2A\u0163\u28DE\u28E1p;\u6ADB\xF2\u2212\xF0\u0A81\u0100dp\u28E9\u28EEels;\u62A7f;\uC000\u{1D55E}\u0100ct\u28F8\u28FDr;\uC000\u{1D4C2}pos\xBB\u159D\u0180;lm\u2909\u290A\u290D\u43BCtimap;\u62B8\u0C00GLRVabcdefghijlmoprstuvw\u2942\u2953\u297E\u2989\u2998\u29DA\u29E9\u2A15\u2A1A\u2A58\u2A5D\u2A83\u2A95\u2AA4\u2AA8\u2B04\u2B07\u2B44\u2B7F\u2BAE\u2C34\u2C67\u2C7C\u2CE9\u0100gt\u2947\u294B;\uC000\u22D9\u0338\u0100;v\u2950\u0BCF\uC000\u226B\u20D2\u0180elt\u295A\u2972\u2976ft\u0100ar\u2961\u2967rrow;\u61CDightarrow;\u61CE;\uC000\u22D8\u0338\u0100;v\u297B\u0C47\uC000\u226A\u20D2ightarrow;\u61CF\u0100Dd\u298E\u2993ash;\u62AFash;\u62AE\u0280bcnpt\u29A3\u29A7\u29AC\u29B1\u29CCla\xBB\u02DEute;\u4144g;\uC000\u2220\u20D2\u0280;Eiop\u0D84\u29BC\u29C0\u29C5\u29C8;\uC000\u2A70\u0338d;\uC000\u224B\u0338s;\u4149ro\xF8\u0D84ur\u0100;a\u29D3\u29D4\u666El\u0100;s\u29D3\u0B38\u01F3\u29DF\0\u29E3p\u80BB\xA0\u0B37mp\u0100;e\u0BF9\u0C00\u0280aeouy\u29F4\u29FE\u2A03\u2A10\u2A13\u01F0\u29F9\0\u29FB;\u6A43on;\u4148dil;\u4146ng\u0100;d\u0D7E\u2A0Aot;\uC000\u2A6D\u0338p;\u6A42;\u443Dash;\u6013\u0380;Aadqsx\u0B92\u2A29\u2A2D\u2A3B\u2A41\u2A45\u2A50rr;\u61D7r\u0100hr\u2A33\u2A36k;\u6924\u0100;o\u13F2\u13F0ot;\uC000\u2250\u0338ui\xF6\u0B63\u0100ei\u2A4A\u2A4Ear;\u6928\xED\u0B98ist\u0100;s\u0BA0\u0B9Fr;\uC000\u{1D52B}\u0200Eest\u0BC5\u2A66\u2A79\u2A7C\u0180;qs\u0BBC\u2A6D\u0BE1\u0180;qs\u0BBC\u0BC5\u2A74lan\xF4\u0BE2i\xED\u0BEA\u0100;r\u0BB6\u2A81\xBB\u0BB7\u0180Aap\u2A8A\u2A8D\u2A91r\xF2\u2971rr;\u61AEar;\u6AF2\u0180;sv\u0F8D\u2A9C\u0F8C\u0100;d\u2AA1\u2AA2\u62FC;\u62FAcy;\u445A\u0380AEadest\u2AB7\u2ABA\u2ABE\u2AC2\u2AC5\u2AF6\u2AF9r\xF2\u2966;\uC000\u2266\u0338rr;\u619Ar;\u6025\u0200;fqs\u0C3B\u2ACE\u2AE3\u2AEFt\u0100ar\u2AD4\u2AD9rro\xF7\u2AC1ightarro\xF7\u2A90\u0180;qs\u0C3B\u2ABA\u2AEAlan\xF4\u0C55\u0100;s\u0C55\u2AF4\xBB\u0C36i\xED\u0C5D\u0100;r\u0C35\u2AFEi\u0100;e\u0C1A\u0C25i\xE4\u0D90\u0100pt\u2B0C\u2B11f;\uC000\u{1D55F}\u8180\xAC;in\u2B19\u2B1A\u2B36\u40ACn\u0200;Edv\u0B89\u2B24\u2B28\u2B2E;\uC000\u22F9\u0338ot;\uC000\u22F5\u0338\u01E1\u0B89\u2B33\u2B35;\u62F7;\u62F6i\u0100;v\u0CB8\u2B3C\u01E1\u0CB8\u2B41\u2B43;\u62FE;\u62FD\u0180aor\u2B4B\u2B63\u2B69r\u0200;ast\u0B7B\u2B55\u2B5A\u2B5Flle\xEC\u0B7Bl;\uC000\u2AFD\u20E5;\uC000\u2202\u0338lint;\u6A14\u0180;ce\u0C92\u2B70\u2B73u\xE5\u0CA5\u0100;c\u0C98\u2B78\u0100;e\u0C92\u2B7D\xF1\u0C98\u0200Aait\u2B88\u2B8B\u2B9D\u2BA7r\xF2\u2988rr\u0180;cw\u2B94\u2B95\u2B99\u619B;\uC000\u2933\u0338;\uC000\u219D\u0338ghtarrow\xBB\u2B95ri\u0100;e\u0CCB\u0CD6\u0380chimpqu\u2BBD\u2BCD\u2BD9\u2B04\u0B78\u2BE4\u2BEF\u0200;cer\u0D32\u2BC6\u0D37\u2BC9u\xE5\u0D45;\uC000\u{1D4C3}ort\u026D\u2B05\0\0\u2BD6ar\xE1\u2B56m\u0100;e\u0D6E\u2BDF\u0100;q\u0D74\u0D73su\u0100bp\u2BEB\u2BED\xE5\u0CF8\xE5\u0D0B\u0180bcp\u2BF6\u2C11\u2C19\u0200;Ees\u2BFF\u2C00\u0D22\u2C04\u6284;\uC000\u2AC5\u0338et\u0100;e\u0D1B\u2C0Bq\u0100;q\u0D23\u2C00c\u0100;e\u0D32\u2C17\xF1\u0D38\u0200;Ees\u2C22\u2C23\u0D5F\u2C27\u6285;\uC000\u2AC6\u0338et\u0100;e\u0D58\u2C2Eq\u0100;q\u0D60\u2C23\u0200gilr\u2C3D\u2C3F\u2C45\u2C47\xEC\u0BD7lde\u803B\xF1\u40F1\xE7\u0C43iangle\u0100lr\u2C52\u2C5Ceft\u0100;e\u0C1A\u2C5A\xF1\u0C26ight\u0100;e\u0CCB\u2C65\xF1\u0CD7\u0100;m\u2C6C\u2C6D\u43BD\u0180;es\u2C74\u2C75\u2C79\u4023ro;\u6116p;\u6007\u0480DHadgilrs\u2C8F\u2C94\u2C99\u2C9E\u2CA3\u2CB0\u2CB6\u2CD3\u2CE3ash;\u62ADarr;\u6904p;\uC000\u224D\u20D2ash;\u62AC\u0100et\u2CA8\u2CAC;\uC000\u2265\u20D2;\uC000>\u20D2nfin;\u69DE\u0180Aet\u2CBD\u2CC1\u2CC5rr;\u6902;\uC000\u2264\u20D2\u0100;r\u2CCA\u2CCD\uC000<\u20D2ie;\uC000\u22B4\u20D2\u0100At\u2CD8\u2CDCrr;\u6903rie;\uC000\u22B5\u20D2im;\uC000\u223C\u20D2\u0180Aan\u2CF0\u2CF4\u2D02rr;\u61D6r\u0100hr\u2CFA\u2CFDk;\u6923\u0100;o\u13E7\u13E5ear;\u6927\u1253\u1A95\0\0\0\0\0\0\0\0\0\0\0\0\0\u2D2D\0\u2D38\u2D48\u2D60\u2D65\u2D72\u2D84\u1B07\0\0\u2D8D\u2DAB\0\u2DC8\u2DCE\0\u2DDC\u2E19\u2E2B\u2E3E\u2E43\u0100cs\u2D31\u1A97ute\u803B\xF3\u40F3\u0100iy\u2D3C\u2D45r\u0100;c\u1A9E\u2D42\u803B\xF4\u40F4;\u443E\u0280abios\u1AA0\u2D52\u2D57\u01C8\u2D5Alac;\u4151v;\u6A38old;\u69BClig;\u4153\u0100cr\u2D69\u2D6Dir;\u69BF;\uC000\u{1D52C}\u036F\u2D79\0\0\u2D7C\0\u2D82n;\u42DBave\u803B\xF2\u40F2;\u69C1\u0100bm\u2D88\u0DF4ar;\u69B5\u0200acit\u2D95\u2D98\u2DA5\u2DA8r\xF2\u1A80\u0100ir\u2D9D\u2DA0r;\u69BEoss;\u69BBn\xE5\u0E52;\u69C0\u0180aei\u2DB1\u2DB5\u2DB9cr;\u414Dga;\u43C9\u0180cdn\u2DC0\u2DC5\u01CDron;\u43BF;\u69B6pf;\uC000\u{1D560}\u0180ael\u2DD4\u2DD7\u01D2r;\u69B7rp;\u69B9\u0380;adiosv\u2DEA\u2DEB\u2DEE\u2E08\u2E0D\u2E10\u2E16\u6228r\xF2\u1A86\u0200;efm\u2DF7\u2DF8\u2E02\u2E05\u6A5Dr\u0100;o\u2DFE\u2DFF\u6134f\xBB\u2DFF\u803B\xAA\u40AA\u803B\xBA\u40BAgof;\u62B6r;\u6A56lope;\u6A57;\u6A5B\u0180clo\u2E1F\u2E21\u2E27\xF2\u2E01ash\u803B\xF8\u40F8l;\u6298i\u016C\u2E2F\u2E34de\u803B\xF5\u40F5es\u0100;a\u01DB\u2E3As;\u6A36ml\u803B\xF6\u40F6bar;\u633D\u0AE1\u2E5E\0\u2E7D\0\u2E80\u2E9D\0\u2EA2\u2EB9\0\0\u2ECB\u0E9C\0\u2F13\0\0\u2F2B\u2FBC\0\u2FC8r\u0200;ast\u0403\u2E67\u2E72\u0E85\u8100\xB6;l\u2E6D\u2E6E\u40B6le\xEC\u0403\u0269\u2E78\0\0\u2E7Bm;\u6AF3;\u6AFDy;\u443Fr\u0280cimpt\u2E8B\u2E8F\u2E93\u1865\u2E97nt;\u4025od;\u402Eil;\u6030enk;\u6031r;\uC000\u{1D52D}\u0180imo\u2EA8\u2EB0\u2EB4\u0100;v\u2EAD\u2EAE\u43C6;\u43D5ma\xF4\u0A76ne;\u660E\u0180;tv\u2EBF\u2EC0\u2EC8\u43C0chfork\xBB\u1FFD;\u43D6\u0100au\u2ECF\u2EDFn\u0100ck\u2ED5\u2EDDk\u0100;h\u21F4\u2EDB;\u610E\xF6\u21F4s\u0480;abcdemst\u2EF3\u2EF4\u1908\u2EF9\u2EFD\u2F04\u2F06\u2F0A\u2F0E\u402Bcir;\u6A23ir;\u6A22\u0100ou\u1D40\u2F02;\u6A25;\u6A72n\u80BB\xB1\u0E9Dim;\u6A26wo;\u6A27\u0180ipu\u2F19\u2F20\u2F25ntint;\u6A15f;\uC000\u{1D561}nd\u803B\xA3\u40A3\u0500;Eaceinosu\u0EC8\u2F3F\u2F41\u2F44\u2F47\u2F81\u2F89\u2F92\u2F7E\u2FB6;\u6AB3p;\u6AB7u\xE5\u0ED9\u0100;c\u0ECE\u2F4C\u0300;acens\u0EC8\u2F59\u2F5F\u2F66\u2F68\u2F7Eppro\xF8\u2F43urlye\xF1\u0ED9\xF1\u0ECE\u0180aes\u2F6F\u2F76\u2F7Approx;\u6AB9qq;\u6AB5im;\u62E8i\xED\u0EDFme\u0100;s\u2F88\u0EAE\u6032\u0180Eas\u2F78\u2F90\u2F7A\xF0\u2F75\u0180dfp\u0EEC\u2F99\u2FAF\u0180als\u2FA0\u2FA5\u2FAAlar;\u632Eine;\u6312urf;\u6313\u0100;t\u0EFB\u2FB4\xEF\u0EFBrel;\u62B0\u0100ci\u2FC0\u2FC5r;\uC000\u{1D4C5};\u43C8ncsp;\u6008\u0300fiopsu\u2FDA\u22E2\u2FDF\u2FE5\u2FEB\u2FF1r;\uC000\u{1D52E}pf;\uC000\u{1D562}rime;\u6057cr;\uC000\u{1D4C6}\u0180aeo\u2FF8\u3009\u3013t\u0100ei\u2FFE\u3005rnion\xF3\u06B0nt;\u6A16st\u0100;e\u3010\u3011\u403F\xF1\u1F19\xF4\u0F14\u0A80ABHabcdefhilmnoprstux\u3040\u3051\u3055\u3059\u30E0\u310E\u312B\u3147\u3162\u3172\u318E\u3206\u3215\u3224\u3229\u3258\u326E\u3272\u3290\u32B0\u32B7\u0180art\u3047\u304A\u304Cr\xF2\u10B3\xF2\u03DDail;\u691Car\xF2\u1C65ar;\u6964\u0380cdenqrt\u3068\u3075\u3078\u307F\u308F\u3094\u30CC\u0100eu\u306D\u3071;\uC000\u223D\u0331te;\u4155i\xE3\u116Emptyv;\u69B3g\u0200;del\u0FD1\u3089\u308B\u308D;\u6992;\u69A5\xE5\u0FD1uo\u803B\xBB\u40BBr\u0580;abcfhlpstw\u0FDC\u30AC\u30AF\u30B7\u30B9\u30BC\u30BE\u30C0\u30C3\u30C7\u30CAp;\u6975\u0100;f\u0FE0\u30B4s;\u6920;\u6933s;\u691E\xEB\u225D\xF0\u272El;\u6945im;\u6974l;\u61A3;\u619D\u0100ai\u30D1\u30D5il;\u691Ao\u0100;n\u30DB\u30DC\u6236al\xF3\u0F1E\u0180abr\u30E7\u30EA\u30EEr\xF2\u17E5rk;\u6773\u0100ak\u30F3\u30FDc\u0100ek\u30F9\u30FB;\u407D;\u405D\u0100es\u3102\u3104;\u698Cl\u0100du\u310A\u310C;\u698E;\u6990\u0200aeuy\u3117\u311C\u3127\u3129ron;\u4159\u0100di\u3121\u3125il;\u4157\xEC\u0FF2\xE2\u30FA;\u4440\u0200clqs\u3134\u3137\u313D\u3144a;\u6937dhar;\u6969uo\u0100;r\u020E\u020Dh;\u61B3\u0180acg\u314E\u315F\u0F44l\u0200;ips\u0F78\u3158\u315B\u109Cn\xE5\u10BBar\xF4\u0FA9t;\u65AD\u0180ilr\u3169\u1023\u316Esht;\u697D;\uC000\u{1D52F}\u0100ao\u3177\u3186r\u0100du\u317D\u317F\xBB\u047B\u0100;l\u1091\u3184;\u696C\u0100;v\u318B\u318C\u43C1;\u43F1\u0180gns\u3195\u31F9\u31FCht\u0300ahlrst\u31A4\u31B0\u31C2\u31D8\u31E4\u31EErrow\u0100;t\u0FDC\u31ADa\xE9\u30C8arpoon\u0100du\u31BB\u31BFow\xEE\u317Ep\xBB\u1092eft\u0100ah\u31CA\u31D0rrow\xF3\u0FEAarpoon\xF3\u0551ightarrows;\u61C9quigarro\xF7\u30CBhreetimes;\u62CCg;\u42DAingdotse\xF1\u1F32\u0180ahm\u320D\u3210\u3213r\xF2\u0FEAa\xF2\u0551;\u600Foust\u0100;a\u321E\u321F\u63B1che\xBB\u321Fmid;\u6AEE\u0200abpt\u3232\u323D\u3240\u3252\u0100nr\u3237\u323Ag;\u67EDr;\u61FEr\xEB\u1003\u0180afl\u3247\u324A\u324Er;\u6986;\uC000\u{1D563}us;\u6A2Eimes;\u6A35\u0100ap\u325D\u3267r\u0100;g\u3263\u3264\u4029t;\u6994olint;\u6A12ar\xF2\u31E3\u0200achq\u327B\u3280\u10BC\u3285quo;\u603Ar;\uC000\u{1D4C7}\u0100bu\u30FB\u328Ao\u0100;r\u0214\u0213\u0180hir\u3297\u329B\u32A0re\xE5\u31F8mes;\u62CAi\u0200;efl\u32AA\u1059\u1821\u32AB\u65B9tri;\u69CEluhar;\u6968;\u611E\u0D61\u32D5\u32DB\u32DF\u332C\u3338\u3371\0\u337A\u33A4\0\0\u33EC\u33F0\0\u3428\u3448\u345A\u34AD\u34B1\u34CA\u34F1\0\u3616\0\0\u3633cute;\u415Bqu\xEF\u27BA\u0500;Eaceinpsy\u11ED\u32F3\u32F5\u32FF\u3302\u330B\u330F\u331F\u3326\u3329;\u6AB4\u01F0\u32FA\0\u32FC;\u6AB8on;\u4161u\xE5\u11FE\u0100;d\u11F3\u3307il;\u415Frc;\u415D\u0180Eas\u3316\u3318\u331B;\u6AB6p;\u6ABAim;\u62E9olint;\u6A13i\xED\u1204;\u4441ot\u0180;be\u3334\u1D47\u3335\u62C5;\u6A66\u0380Aacmstx\u3346\u334A\u3357\u335B\u335E\u3363\u336Drr;\u61D8r\u0100hr\u3350\u3352\xEB\u2228\u0100;o\u0A36\u0A34t\u803B\xA7\u40A7i;\u403Bwar;\u6929m\u0100in\u3369\xF0nu\xF3\xF1t;\u6736r\u0100;o\u3376\u2055\uC000\u{1D530}\u0200acoy\u3382\u3386\u3391\u33A0rp;\u666F\u0100hy\u338B\u338Fcy;\u4449;\u4448rt\u026D\u3399\0\0\u339Ci\xE4\u1464ara\xEC\u2E6F\u803B\xAD\u40AD\u0100gm\u33A8\u33B4ma\u0180;fv\u33B1\u33B2\u33B2\u43C3;\u43C2\u0400;deglnpr\u12AB\u33C5\u33C9\u33CE\u33D6\u33DE\u33E1\u33E6ot;\u6A6A\u0100;q\u12B1\u12B0\u0100;E\u33D3\u33D4\u6A9E;\u6AA0\u0100;E\u33DB\u33DC\u6A9D;\u6A9Fe;\u6246lus;\u6A24arr;\u6972ar\xF2\u113D\u0200aeit\u33F8\u3408\u340F\u3417\u0100ls\u33FD\u3404lsetm\xE9\u336Ahp;\u6A33parsl;\u69E4\u0100dl\u1463\u3414e;\u6323\u0100;e\u341C\u341D\u6AAA\u0100;s\u3422\u3423\u6AAC;\uC000\u2AAC\uFE00\u0180flp\u342E\u3433\u3442tcy;\u444C\u0100;b\u3438\u3439\u402F\u0100;a\u343E\u343F\u69C4r;\u633Ff;\uC000\u{1D564}a\u0100dr\u344D\u0402es\u0100;u\u3454\u3455\u6660it\xBB\u3455\u0180csu\u3460\u3479\u349F\u0100au\u3465\u346Fp\u0100;s\u1188\u346B;\uC000\u2293\uFE00p\u0100;s\u11B4\u3475;\uC000\u2294\uFE00u\u0100bp\u347F\u348F\u0180;es\u1197\u119C\u3486et\u0100;e\u1197\u348D\xF1\u119D\u0180;es\u11A8\u11AD\u3496et\u0100;e\u11A8\u349D\xF1\u11AE\u0180;af\u117B\u34A6\u05B0r\u0165\u34AB\u05B1\xBB\u117Car\xF2\u1148\u0200cemt\u34B9\u34BE\u34C2\u34C5r;\uC000\u{1D4C8}tm\xEE\xF1i\xEC\u3415ar\xE6\u11BE\u0100ar\u34CE\u34D5r\u0100;f\u34D4\u17BF\u6606\u0100an\u34DA\u34EDight\u0100ep\u34E3\u34EApsilo\xEE\u1EE0h\xE9\u2EAFs\xBB\u2852\u0280bcmnp\u34FB\u355E\u1209\u358B\u358E\u0480;Edemnprs\u350E\u350F\u3511\u3515\u351E\u3523\u352C\u3531\u3536\u6282;\u6AC5ot;\u6ABD\u0100;d\u11DA\u351Aot;\u6AC3ult;\u6AC1\u0100Ee\u3528\u352A;\u6ACB;\u628Alus;\u6ABFarr;\u6979\u0180eiu\u353D\u3552\u3555t\u0180;en\u350E\u3545\u354Bq\u0100;q\u11DA\u350Feq\u0100;q\u352B\u3528m;\u6AC7\u0100bp\u355A\u355C;\u6AD5;\u6AD3c\u0300;acens\u11ED\u356C\u3572\u3579\u357B\u3326ppro\xF8\u32FAurlye\xF1\u11FE\xF1\u11F3\u0180aes\u3582\u3588\u331Bppro\xF8\u331Aq\xF1\u3317g;\u666A\u0680123;Edehlmnps\u35A9\u35AC\u35AF\u121C\u35B2\u35B4\u35C0\u35C9\u35D5\u35DA\u35DF\u35E8\u35ED\u803B\xB9\u40B9\u803B\xB2\u40B2\u803B\xB3\u40B3;\u6AC6\u0100os\u35B9\u35BCt;\u6ABEub;\u6AD8\u0100;d\u1222\u35C5ot;\u6AC4s\u0100ou\u35CF\u35D2l;\u67C9b;\u6AD7arr;\u697Bult;\u6AC2\u0100Ee\u35E4\u35E6;\u6ACC;\u628Blus;\u6AC0\u0180eiu\u35F4\u3609\u360Ct\u0180;en\u121C\u35FC\u3602q\u0100;q\u1222\u35B2eq\u0100;q\u35E7\u35E4m;\u6AC8\u0100bp\u3611\u3613;\u6AD4;\u6AD6\u0180Aan\u361C\u3620\u362Drr;\u61D9r\u0100hr\u3626\u3628\xEB\u222E\u0100;o\u0A2B\u0A29war;\u692Alig\u803B\xDF\u40DF\u0BE1\u3651\u365D\u3660\u12CE\u3673\u3679\0\u367E\u36C2\0\0\0\0\0\u36DB\u3703\0\u3709\u376C\0\0\0\u3787\u0272\u3656\0\0\u365Bget;\u6316;\u43C4r\xEB\u0E5F\u0180aey\u3666\u366B\u3670ron;\u4165dil;\u4163;\u4442lrec;\u6315r;\uC000\u{1D531}\u0200eiko\u3686\u369D\u36B5\u36BC\u01F2\u368B\0\u3691e\u01004f\u1284\u1281a\u0180;sv\u3698\u3699\u369B\u43B8ym;\u43D1\u0100cn\u36A2\u36B2k\u0100as\u36A8\u36AEppro\xF8\u12C1im\xBB\u12ACs\xF0\u129E\u0100as\u36BA\u36AE\xF0\u12C1rn\u803B\xFE\u40FE\u01EC\u031F\u36C6\u22E7es\u8180\xD7;bd\u36CF\u36D0\u36D8\u40D7\u0100;a\u190F\u36D5r;\u6A31;\u6A30\u0180eps\u36E1\u36E3\u3700\xE1\u2A4D\u0200;bcf\u0486\u36EC\u36F0\u36F4ot;\u6336ir;\u6AF1\u0100;o\u36F9\u36FC\uC000\u{1D565}rk;\u6ADA\xE1\u3362rime;\u6034\u0180aip\u370F\u3712\u3764d\xE5\u1248\u0380adempst\u3721\u374D\u3740\u3751\u3757\u375C\u375Fngle\u0280;dlqr\u3730\u3731\u3736\u3740\u3742\u65B5own\xBB\u1DBBeft\u0100;e\u2800\u373E\xF1\u092E;\u625Cight\u0100;e\u32AA\u374B\xF1\u105Aot;\u65ECinus;\u6A3Alus;\u6A39b;\u69CDime;\u6A3Bezium;\u63E2\u0180cht\u3772\u377D\u3781\u0100ry\u3777\u377B;\uC000\u{1D4C9};\u4446cy;\u445Brok;\u4167\u0100io\u378B\u378Ex\xF4\u1777head\u0100lr\u3797\u37A0eftarro\xF7\u084Fightarrow\xBB\u0F5D\u0900AHabcdfghlmoprstuw\u37D0\u37D3\u37D7\u37E4\u37F0\u37FC\u380E\u381C\u3823\u3834\u3851\u385D\u386B\u38A9\u38CC\u38D2\u38EA\u38F6r\xF2\u03EDar;\u6963\u0100cr\u37DC\u37E2ute\u803B\xFA\u40FA\xF2\u1150r\u01E3\u37EA\0\u37EDy;\u445Eve;\u416D\u0100iy\u37F5\u37FArc\u803B\xFB\u40FB;\u4443\u0180abh\u3803\u3806\u380Br\xF2\u13ADlac;\u4171a\xF2\u13C3\u0100ir\u3813\u3818sht;\u697E;\uC000\u{1D532}rave\u803B\xF9\u40F9\u0161\u3827\u3831r\u0100lr\u382C\u382E\xBB\u0957\xBB\u1083lk;\u6580\u0100ct\u3839\u384D\u026F\u383F\0\0\u384Arn\u0100;e\u3845\u3846\u631Cr\xBB\u3846op;\u630Fri;\u65F8\u0100al\u3856\u385Acr;\u416B\u80BB\xA8\u0349\u0100gp\u3862\u3866on;\u4173f;\uC000\u{1D566}\u0300adhlsu\u114B\u3878\u387D\u1372\u3891\u38A0own\xE1\u13B3arpoon\u0100lr\u3888\u388Cef\xF4\u382Digh\xF4\u382Fi\u0180;hl\u3899\u389A\u389C\u43C5\xBB\u13FAon\xBB\u389Aparrows;\u61C8\u0180cit\u38B0\u38C4\u38C8\u026F\u38B6\0\0\u38C1rn\u0100;e\u38BC\u38BD\u631Dr\xBB\u38BDop;\u630Eng;\u416Fri;\u65F9cr;\uC000\u{1D4CA}\u0180dir\u38D9\u38DD\u38E2ot;\u62F0lde;\u4169i\u0100;f\u3730\u38E8\xBB\u1813\u0100am\u38EF\u38F2r\xF2\u38A8l\u803B\xFC\u40FCangle;\u69A7\u0780ABDacdeflnoprsz\u391C\u391F\u3929\u392D\u39B5\u39B8\u39BD\u39DF\u39E4\u39E8\u39F3\u39F9\u39FD\u3A01\u3A20r\xF2\u03F7ar\u0100;v\u3926\u3927\u6AE8;\u6AE9as\xE8\u03E1\u0100nr\u3932\u3937grt;\u699C\u0380eknprst\u34E3\u3946\u394B\u3952\u395D\u3964\u3996app\xE1\u2415othin\xE7\u1E96\u0180hir\u34EB\u2EC8\u3959op\xF4\u2FB5\u0100;h\u13B7\u3962\xEF\u318D\u0100iu\u3969\u396Dgm\xE1\u33B3\u0100bp\u3972\u3984setneq\u0100;q\u397D\u3980\uC000\u228A\uFE00;\uC000\u2ACB\uFE00setneq\u0100;q\u398F\u3992\uC000\u228B\uFE00;\uC000\u2ACC\uFE00\u0100hr\u399B\u399Fet\xE1\u369Ciangle\u0100lr\u39AA\u39AFeft\xBB\u0925ight\xBB\u1051y;\u4432ash\xBB\u1036\u0180elr\u39C4\u39D2\u39D7\u0180;be\u2DEA\u39CB\u39CFar;\u62BBq;\u625Alip;\u62EE\u0100bt\u39DC\u1468a\xF2\u1469r;\uC000\u{1D533}tr\xE9\u39AEsu\u0100bp\u39EF\u39F1\xBB\u0D1C\xBB\u0D59pf;\uC000\u{1D567}ro\xF0\u0EFBtr\xE9\u39B4\u0100cu\u3A06\u3A0Br;\uC000\u{1D4CB}\u0100bp\u3A10\u3A18n\u0100Ee\u3980\u3A16\xBB\u397En\u0100Ee\u3992\u3A1E\xBB\u3990igzag;\u699A\u0380cefoprs\u3A36\u3A3B\u3A56\u3A5B\u3A54\u3A61\u3A6Airc;\u4175\u0100di\u3A40\u3A51\u0100bg\u3A45\u3A49ar;\u6A5Fe\u0100;q\u15FA\u3A4F;\u6259erp;\u6118r;\uC000\u{1D534}pf;\uC000\u{1D568}\u0100;e\u1479\u3A66at\xE8\u1479cr;\uC000\u{1D4CC}\u0AE3\u178E\u3A87\0\u3A8B\0\u3A90\u3A9B\0\0\u3A9D\u3AA8\u3AAB\u3AAF\0\0\u3AC3\u3ACE\0\u3AD8\u17DC\u17DFtr\xE9\u17D1r;\uC000\u{1D535}\u0100Aa\u3A94\u3A97r\xF2\u03C3r\xF2\u09F6;\u43BE\u0100Aa\u3AA1\u3AA4r\xF2\u03B8r\xF2\u09EBa\xF0\u2713is;\u62FB\u0180dpt\u17A4\u3AB5\u3ABE\u0100fl\u3ABA\u17A9;\uC000\u{1D569}im\xE5\u17B2\u0100Aa\u3AC7\u3ACAr\xF2\u03CEr\xF2\u0A01\u0100cq\u3AD2\u17B8r;\uC000\u{1D4CD}\u0100pt\u17D6\u3ADCr\xE9\u17D4\u0400acefiosu\u3AF0\u3AFD\u3B08\u3B0C\u3B11\u3B15\u3B1B\u3B21c\u0100uy\u3AF6\u3AFBte\u803B\xFD\u40FD;\u444F\u0100iy\u3B02\u3B06rc;\u4177;\u444Bn\u803B\xA5\u40A5r;\uC000\u{1D536}cy;\u4457pf;\uC000\u{1D56A}cr;\uC000\u{1D4CE}\u0100cm\u3B26\u3B29y;\u444El\u803B\xFF\u40FF\u0500acdefhiosw\u3B42\u3B48\u3B54\u3B58\u3B64\u3B69\u3B6D\u3B74\u3B7A\u3B80cute;\u417A\u0100ay\u3B4D\u3B52ron;\u417E;\u4437ot;\u417C\u0100et\u3B5D\u3B61tr\xE6\u155Fa;\u43B6r;\uC000\u{1D537}cy;\u4436grarr;\u61DDpf;\uC000\u{1D56B}cr;\uC000\u{1D4CF}\u0100jn\u3B85\u3B87;\u600Dj;\u600C'.split("").map(h=>h.charCodeAt(0))),D=new Uint16Array("\u0200aglq \x1B\u026D\0\0p;\u4026os;\u4027t;\u403Et;\u403Cuot;\u4022".split("").map(h=>h.charCodeAt(0))),k;const G=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]),X=(k=String.fromCodePoint)!==null&&k!==void 0?k:function(h){let m="";return h>65535&&(h-=65536,m+=String.fromCharCode(h>>>10&1023|55296),h=56320|h&1023),m+=String.fromCharCode(h),m};function T(h){var m;return h>=55296&&h<=57343||h>1114111?65533:(m=G.get(h))!==null&&m!==void 0?m:h}function Re(h){return X(T(h))}var mt;(function(h){h[h.NUM=35]="NUM",h[h.SEMI=59]="SEMI",h[h.EQUALS=61]="EQUALS",h[h.ZERO=48]="ZERO",h[h.NINE=57]="NINE",h[h.LOWER_A=97]="LOWER_A",h[h.LOWER_F=102]="LOWER_F",h[h.LOWER_X=120]="LOWER_X",h[h.LOWER_Z=122]="LOWER_Z",h[h.UPPER_A=65]="UPPER_A",h[h.UPPER_F=70]="UPPER_F",h[h.UPPER_Z=90]="UPPER_Z"})(mt||(mt={}));const _e=32;var Le;(function(h){h[h.VALUE_LENGTH=49152]="VALUE_LENGTH",h[h.BRANCH_LENGTH=16256]="BRANCH_LENGTH",h[h.JUMP_TABLE=127]="JUMP_TABLE"})(Le||(Le={}));function ct(h){return h>=mt.ZERO&&h<=mt.NINE}function ot(h){return h>=mt.UPPER_A&&h<=mt.UPPER_F||h>=mt.LOWER_A&&h<=mt.LOWER_F}function Ze(h){return h>=mt.UPPER_A&&h<=mt.UPPER_Z||h>=mt.LOWER_A&&h<=mt.LOWER_Z||ct(h)}function Et(h){return h===mt.EQUALS||Ze(h)}var Gt;(function(h){h[h.EntityStart=0]="EntityStart",h[h.NumericStart=1]="NumericStart",h[h.NumericDecimal=2]="NumericDecimal",h[h.NumericHex=3]="NumericHex",h[h.NamedEntity=4]="NamedEntity"})(Gt||(Gt={}));var Vt;(function(h){h[h.Legacy=0]="Legacy",h[h.Strict=1]="Strict",h[h.Attribute=2]="Attribute"})(Vt||(Vt={}));class Pt{constructor(m,W,Ve){this.decodeTree=m,this.emitCodePoint=W,this.errors=Ve,this.state=Gt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Vt.Strict}startEntity(m){this.decodeMode=m,this.state=Gt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(m,W){switch(this.state){case Gt.EntityStart:return m.charCodeAt(W)===mt.NUM?(this.state=Gt.NumericStart,this.consumed+=1,this.stateNumericStart(m,W+1)):(this.state=Gt.NamedEntity,this.stateNamedEntity(m,W));case Gt.NumericStart:return this.stateNumericStart(m,W);case Gt.NumericDecimal:return this.stateNumericDecimal(m,W);case Gt.NumericHex:return this.stateNumericHex(m,W);case Gt.NamedEntity:return this.stateNamedEntity(m,W)}}stateNumericStart(m,W){return W>=m.length?-1:(m.charCodeAt(W)|_e)===mt.LOWER_X?(this.state=Gt.NumericHex,this.consumed+=1,this.stateNumericHex(m,W+1)):(this.state=Gt.NumericDecimal,this.stateNumericDecimal(m,W))}addToNumericResult(m,W,Ve,_t){if(W!==Ve){const Mn=Ve-W;this.result=this.result*Math.pow(_t,Mn)+parseInt(m.substr(W,Mn),_t),this.consumed+=Mn}}stateNumericHex(m,W){const Ve=W;for(;W<m.length;){const _t=m.charCodeAt(W);if(ct(_t)||ot(_t))W+=1;else return this.addToNumericResult(m,Ve,W,16),this.emitNumericEntity(_t,3)}return this.addToNumericResult(m,Ve,W,16),-1}stateNumericDecimal(m,W){const Ve=W;for(;W<m.length;){const _t=m.charCodeAt(W);if(ct(_t))W+=1;else return this.addToNumericResult(m,Ve,W,10),this.emitNumericEntity(_t,2)}return this.addToNumericResult(m,Ve,W,10),-1}emitNumericEntity(m,W){var Ve;if(this.consumed<=W)return(Ve=this.errors)===null||Ve===void 0||Ve.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(m===mt.SEMI)this.consumed+=1;else if(this.decodeMode===Vt.Strict)return 0;return this.emitCodePoint(T(this.result),this.consumed),this.errors&&(m!==mt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(m,W){const{decodeTree:Ve}=this;let _t=Ve[this.treeIndex],Mn=(_t&Le.VALUE_LENGTH)>>14;for(;W<m.length;W++,this.excess++){const li=m.charCodeAt(W);if(this.treeIndex=vn(Ve,_t,this.treeIndex+Math.max(1,Mn),li),this.treeIndex<0)return this.result===0||this.decodeMode===Vt.Attribute&&(Mn===0||Et(li))?0:this.emitNotTerminatedNamedEntity();if(_t=Ve[this.treeIndex],Mn=(_t&Le.VALUE_LENGTH)>>14,Mn!==0){if(li===mt.SEMI)return this.emitNamedEntityData(this.treeIndex,Mn,this.consumed+this.excess);this.decodeMode!==Vt.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var m;const{result:W,decodeTree:Ve}=this,_t=(Ve[W]&Le.VALUE_LENGTH)>>14;return this.emitNamedEntityData(W,_t,this.consumed),(m=this.errors)===null||m===void 0||m.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(m,W,Ve){const{decodeTree:_t}=this;return this.emitCodePoint(W===1?_t[m]&~Le.VALUE_LENGTH:_t[m+1],Ve),W===3&&this.emitCodePoint(_t[m+2],Ve),Ve}end(){var m;switch(this.state){case Gt.NamedEntity:return this.result!==0&&(this.decodeMode!==Vt.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Gt.NumericDecimal:return this.emitNumericEntity(0,2);case Gt.NumericHex:return this.emitNumericEntity(0,3);case Gt.NumericStart:return(m=this.errors)===null||m===void 0||m.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Gt.EntityStart:return 0}}}function nn(h){let m="";const W=new Pt(h,Ve=>m+=X(Ve));return function(_t,Mn){let li=0,ri=0;for(;(ri=_t.indexOf("&",ri))>=0;){m+=_t.slice(li,ri),W.startEntity(Mn);const Bi=W.write(_t,ri+1);if(Bi<0){li=ri+W.end();break}li=ri+Bi,ri=Bi===0?li+1:li}const Wn=m+_t.slice(li);return m="",Wn}}function vn(h,m,W,Ve){const _t=(m&Le.BRANCH_LENGTH)>>7,Mn=m&Le.JUMP_TABLE;if(_t===0)return Mn!==0&&Ve===Mn?W:-1;if(Mn){const Wn=Ve-Mn;return Wn<0||Wn>=_t?-1:h[W+Wn]-1}let li=W,ri=li+_t-1;for(;li<=ri;){const Wn=li+ri>>>1,Bi=h[Wn];if(Bi<Ve)li=Wn+1;else if(Bi>Ve)ri=Wn-1;else return h[Wn+_t]}return-1}const We=nn(xe),Dt=nn(D);function Qt(h,m=Vt.Legacy){return We(h,m)}function bn(h){return We(h,Vt.Attribute)}function $n(h){return We(h,Vt.Strict)}function Un(h){return Dt(h,Vt.Strict)}var kt;(function(h){h.HTML="http://www.w3.org/1999/xhtml",h.MATHML="http://www.w3.org/1998/Math/MathML",h.SVG="http://www.w3.org/2000/svg",h.XLINK="http://www.w3.org/1999/xlink",h.XML="http://www.w3.org/XML/1998/namespace",h.XMLNS="http://www.w3.org/2000/xmlns/"})(kt||(kt={}));var Hn;(function(h){h.TYPE="type",h.ACTION="action",h.ENCODING="encoding",h.PROMPT="prompt",h.NAME="name",h.COLOR="color",h.FACE="face",h.SIZE="size"})(Hn||(Hn={}));var Jn;(function(h){h.NO_QUIRKS="no-quirks",h.QUIRKS="quirks",h.LIMITED_QUIRKS="limited-quirks"})(Jn||(Jn={}));var tt;(function(h){h.A="a",h.ADDRESS="address",h.ANNOTATION_XML="annotation-xml",h.APPLET="applet",h.AREA="area",h.ARTICLE="article",h.ASIDE="aside",h.B="b",h.BASE="base",h.BASEFONT="basefont",h.BGSOUND="bgsound",h.BIG="big",h.BLOCKQUOTE="blockquote",h.BODY="body",h.BR="br",h.BUTTON="button",h.CAPTION="caption",h.CENTER="center",h.CODE="code",h.COL="col",h.COLGROUP="colgroup",h.DD="dd",h.DESC="desc",h.DETAILS="details",h.DIALOG="dialog",h.DIR="dir",h.DIV="div",h.DL="dl",h.DT="dt",h.EM="em",h.EMBED="embed",h.FIELDSET="fieldset",h.FIGCAPTION="figcaption",h.FIGURE="figure",h.FONT="font",h.FOOTER="footer",h.FOREIGN_OBJECT="foreignObject",h.FORM="form",h.FRAME="frame",h.FRAMESET="frameset",h.H1="h1",h.H2="h2",h.H3="h3",h.H4="h4",h.H5="h5",h.H6="h6",h.HEAD="head",h.HEADER="header",h.HGROUP="hgroup",h.HR="hr",h.HTML="html",h.I="i",h.IMG="img",h.IMAGE="image",h.INPUT="input",h.IFRAME="iframe",h.KEYGEN="keygen",h.LABEL="label",h.LI="li",h.LINK="link",h.LISTING="listing",h.MAIN="main",h.MALIGNMARK="malignmark",h.MARQUEE="marquee",h.MATH="math",h.MENU="menu",h.META="meta",h.MGLYPH="mglyph",h.MI="mi",h.MO="mo",h.MN="mn",h.MS="ms",h.MTEXT="mtext",h.NAV="nav",h.NOBR="nobr",h.NOFRAMES="noframes",h.NOEMBED="noembed",h.NOSCRIPT="noscript",h.OBJECT="object",h.OL="ol",h.OPTGROUP="optgroup",h.OPTION="option",h.P="p",h.PARAM="param",h.PLAINTEXT="plaintext",h.PRE="pre",h.RB="rb",h.RP="rp",h.RT="rt",h.RTC="rtc",h.RUBY="ruby",h.S="s",h.SCRIPT="script",h.SEARCH="search",h.SECTION="section",h.SELECT="select",h.SOURCE="source",h.SMALL="small",h.SPAN="span",h.STRIKE="strike",h.STRONG="strong",h.STYLE="style",h.SUB="sub",h.SUMMARY="summary",h.SUP="sup",h.TABLE="table",h.TBODY="tbody",h.TEMPLATE="template",h.TEXTAREA="textarea",h.TFOOT="tfoot",h.TD="td",h.TH="th",h.THEAD="thead",h.TITLE="title",h.TR="tr",h.TRACK="track",h.TT="tt",h.U="u",h.UL="ul",h.SVG="svg",h.VAR="var",h.WBR="wbr",h.XMP="xmp"})(tt||(tt={}));var j;(function(h){h[h.UNKNOWN=0]="UNKNOWN",h[h.A=1]="A",h[h.ADDRESS=2]="ADDRESS",h[h.ANNOTATION_XML=3]="ANNOTATION_XML",h[h.APPLET=4]="APPLET",h[h.AREA=5]="AREA",h[h.ARTICLE=6]="ARTICLE",h[h.ASIDE=7]="ASIDE",h[h.B=8]="B",h[h.BASE=9]="BASE",h[h.BASEFONT=10]="BASEFONT",h[h.BGSOUND=11]="BGSOUND",h[h.BIG=12]="BIG",h[h.BLOCKQUOTE=13]="BLOCKQUOTE",h[h.BODY=14]="BODY",h[h.BR=15]="BR",h[h.BUTTON=16]="BUTTON",h[h.CAPTION=17]="CAPTION",h[h.CENTER=18]="CENTER",h[h.CODE=19]="CODE",h[h.COL=20]="COL",h[h.COLGROUP=21]="COLGROUP",h[h.DD=22]="DD",h[h.DESC=23]="DESC",h[h.DETAILS=24]="DETAILS",h[h.DIALOG=25]="DIALOG",h[h.DIR=26]="DIR",h[h.DIV=27]="DIV",h[h.DL=28]="DL",h[h.DT=29]="DT",h[h.EM=30]="EM",h[h.EMBED=31]="EMBED",h[h.FIELDSET=32]="FIELDSET",h[h.FIGCAPTION=33]="FIGCAPTION",h[h.FIGURE=34]="FIGURE",h[h.FONT=35]="FONT",h[h.FOOTER=36]="FOOTER",h[h.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",h[h.FORM=38]="FORM",h[h.FRAME=39]="FRAME",h[h.FRAMESET=40]="FRAMESET",h[h.H1=41]="H1",h[h.H2=42]="H2",h[h.H3=43]="H3",h[h.H4=44]="H4",h[h.H5=45]="H5",h[h.H6=46]="H6",h[h.HEAD=47]="HEAD",h[h.HEADER=48]="HEADER",h[h.HGROUP=49]="HGROUP",h[h.HR=50]="HR",h[h.HTML=51]="HTML",h[h.I=52]="I",h[h.IMG=53]="IMG",h[h.IMAGE=54]="IMAGE",h[h.INPUT=55]="INPUT",h[h.IFRAME=56]="IFRAME",h[h.KEYGEN=57]="KEYGEN",h[h.LABEL=58]="LABEL",h[h.LI=59]="LI",h[h.LINK=60]="LINK",h[h.LISTING=61]="LISTING",h[h.MAIN=62]="MAIN",h[h.MALIGNMARK=63]="MALIGNMARK",h[h.MARQUEE=64]="MARQUEE",h[h.MATH=65]="MATH",h[h.MENU=66]="MENU",h[h.META=67]="META",h[h.MGLYPH=68]="MGLYPH",h[h.MI=69]="MI",h[h.MO=70]="MO",h[h.MN=71]="MN",h[h.MS=72]="MS",h[h.MTEXT=73]="MTEXT",h[h.NAV=74]="NAV",h[h.NOBR=75]="NOBR",h[h.NOFRAMES=76]="NOFRAMES",h[h.NOEMBED=77]="NOEMBED",h[h.NOSCRIPT=78]="NOSCRIPT",h[h.OBJECT=79]="OBJECT",h[h.OL=80]="OL",h[h.OPTGROUP=81]="OPTGROUP",h[h.OPTION=82]="OPTION",h[h.P=83]="P",h[h.PARAM=84]="PARAM",h[h.PLAINTEXT=85]="PLAINTEXT",h[h.PRE=86]="PRE",h[h.RB=87]="RB",h[h.RP=88]="RP",h[h.RT=89]="RT",h[h.RTC=90]="RTC",h[h.RUBY=91]="RUBY",h[h.S=92]="S",h[h.SCRIPT=93]="SCRIPT",h[h.SEARCH=94]="SEARCH",h[h.SECTION=95]="SECTION",h[h.SELECT=96]="SELECT",h[h.SOURCE=97]="SOURCE",h[h.SMALL=98]="SMALL",h[h.SPAN=99]="SPAN",h[h.STRIKE=100]="STRIKE",h[h.STRONG=101]="STRONG",h[h.STYLE=102]="STYLE",h[h.SUB=103]="SUB",h[h.SUMMARY=104]="SUMMARY",h[h.SUP=105]="SUP",h[h.TABLE=106]="TABLE",h[h.TBODY=107]="TBODY",h[h.TEMPLATE=108]="TEMPLATE",h[h.TEXTAREA=109]="TEXTAREA",h[h.TFOOT=110]="TFOOT",h[h.TD=111]="TD",h[h.TH=112]="TH",h[h.THEAD=113]="THEAD",h[h.TITLE=114]="TITLE",h[h.TR=115]="TR",h[h.TRACK=116]="TRACK",h[h.TT=117]="TT",h[h.U=118]="U",h[h.UL=119]="UL",h[h.SVG=120]="SVG",h[h.VAR=121]="VAR",h[h.WBR=122]="WBR",h[h.XMP=123]="XMP"})(j||(j={}));const Oi=new Map([[tt.A,j.A],[tt.ADDRESS,j.ADDRESS],[tt.ANNOTATION_XML,j.ANNOTATION_XML],[tt.APPLET,j.APPLET],[tt.AREA,j.AREA],[tt.ARTICLE,j.ARTICLE],[tt.ASIDE,j.ASIDE],[tt.B,j.B],[tt.BASE,j.BASE],[tt.BASEFONT,j.BASEFONT],[tt.BGSOUND,j.BGSOUND],[tt.BIG,j.BIG],[tt.BLOCKQUOTE,j.BLOCKQUOTE],[tt.BODY,j.BODY],[tt.BR,j.BR],[tt.BUTTON,j.BUTTON],[tt.CAPTION,j.CAPTION],[tt.CENTER,j.CENTER],[tt.CODE,j.CODE],[tt.COL,j.COL],[tt.COLGROUP,j.COLGROUP],[tt.DD,j.DD],[tt.DESC,j.DESC],[tt.DETAILS,j.DETAILS],[tt.DIALOG,j.DIALOG],[tt.DIR,j.DIR],[tt.DIV,j.DIV],[tt.DL,j.DL],[tt.DT,j.DT],[tt.EM,j.EM],[tt.EMBED,j.EMBED],[tt.FIELDSET,j.FIELDSET],[tt.FIGCAPTION,j.FIGCAPTION],[tt.FIGURE,j.FIGURE],[tt.FONT,j.FONT],[tt.FOOTER,j.FOOTER],[tt.FOREIGN_OBJECT,j.FOREIGN_OBJECT],[tt.FORM,j.FORM],[tt.FRAME,j.FRAME],[tt.FRAMESET,j.FRAMESET],[tt.H1,j.H1],[tt.H2,j.H2],[tt.H3,j.H3],[tt.H4,j.H4],[tt.H5,j.H5],[tt.H6,j.H6],[tt.HEAD,j.HEAD],[tt.HEADER,j.HEADER],[tt.HGROUP,j.HGROUP],[tt.HR,j.HR],[tt.HTML,j.HTML],[tt.I,j.I],[tt.IMG,j.IMG],[tt.IMAGE,j.IMAGE],[tt.INPUT,j.INPUT],[tt.IFRAME,j.IFRAME],[tt.KEYGEN,j.KEYGEN],[tt.LABEL,j.LABEL],[tt.LI,j.LI],[tt.LINK,j.LINK],[tt.LISTING,j.LISTING],[tt.MAIN,j.MAIN],[tt.MALIGNMARK,j.MALIGNMARK],[tt.MARQUEE,j.MARQUEE],[tt.MATH,j.MATH],[tt.MENU,j.MENU],[tt.META,j.META],[tt.MGLYPH,j.MGLYPH],[tt.MI,j.MI],[tt.MO,j.MO],[tt.MN,j.MN],[tt.MS,j.MS],[tt.MTEXT,j.MTEXT],[tt.NAV,j.NAV],[tt.NOBR,j.NOBR],[tt.NOFRAMES,j.NOFRAMES],[tt.NOEMBED,j.NOEMBED],[tt.NOSCRIPT,j.NOSCRIPT],[tt.OBJECT,j.OBJECT],[tt.OL,j.OL],[tt.OPTGROUP,j.OPTGROUP],[tt.OPTION,j.OPTION],[tt.P,j.P],[tt.PARAM,j.PARAM],[tt.PLAINTEXT,j.PLAINTEXT],[tt.PRE,j.PRE],[tt.RB,j.RB],[tt.RP,j.RP],[tt.RT,j.RT],[tt.RTC,j.RTC],[tt.RUBY,j.RUBY],[tt.S,j.S],[tt.SCRIPT,j.SCRIPT],[tt.SEARCH,j.SEARCH],[tt.SECTION,j.SECTION],[tt.SELECT,j.SELECT],[tt.SOURCE,j.SOURCE],[tt.SMALL,j.SMALL],[tt.SPAN,j.SPAN],[tt.STRIKE,j.STRIKE],[tt.STRONG,j.STRONG],[tt.STYLE,j.STYLE],[tt.SUB,j.SUB],[tt.SUMMARY,j.SUMMARY],[tt.SUP,j.SUP],[tt.TABLE,j.TABLE],[tt.TBODY,j.TBODY],[tt.TEMPLATE,j.TEMPLATE],[tt.TEXTAREA,j.TEXTAREA],[tt.TFOOT,j.TFOOT],[tt.TD,j.TD],[tt.TH,j.TH],[tt.THEAD,j.THEAD],[tt.TITLE,j.TITLE],[tt.TR,j.TR],[tt.TRACK,j.TRACK],[tt.TT,j.TT],[tt.U,j.U],[tt.UL,j.UL],[tt.SVG,j.SVG],[tt.VAR,j.VAR],[tt.WBR,j.WBR],[tt.XMP,j.XMP]]);function tr(h){var m;return(m=Oi.get(h))!==null&&m!==void 0?m:j.UNKNOWN}const Gn=j,Ti={[kt.HTML]:new Set([Gn.ADDRESS,Gn.APPLET,Gn.AREA,Gn.ARTICLE,Gn.ASIDE,Gn.BASE,Gn.BASEFONT,Gn.BGSOUND,Gn.BLOCKQUOTE,Gn.BODY,Gn.BR,Gn.BUTTON,Gn.CAPTION,Gn.CENTER,Gn.COL,Gn.COLGROUP,Gn.DD,Gn.DETAILS,Gn.DIR,Gn.DIV,Gn.DL,Gn.DT,Gn.EMBED,Gn.FIELDSET,Gn.FIGCAPTION,Gn.FIGURE,Gn.FOOTER,Gn.FORM,Gn.FRAME,Gn.FRAMESET,Gn.H1,Gn.H2,Gn.H3,Gn.H4,Gn.H5,Gn.H6,Gn.HEAD,Gn.HEADER,Gn.HGROUP,Gn.HR,Gn.HTML,Gn.IFRAME,Gn.IMG,Gn.INPUT,Gn.LI,Gn.LINK,Gn.LISTING,Gn.MAIN,Gn.MARQUEE,Gn.MENU,Gn.META,Gn.NAV,Gn.NOEMBED,Gn.NOFRAMES,Gn.NOSCRIPT,Gn.OBJECT,Gn.OL,Gn.P,Gn.PARAM,Gn.PLAINTEXT,Gn.PRE,Gn.SCRIPT,Gn.SECTION,Gn.SELECT,Gn.SOURCE,Gn.STYLE,Gn.SUMMARY,Gn.TABLE,Gn.TBODY,Gn.TD,Gn.TEMPLATE,Gn.TEXTAREA,Gn.TFOOT,Gn.TH,Gn.THEAD,Gn.TITLE,Gn.TR,Gn.TRACK,Gn.UL,Gn.WBR,Gn.XMP]),[kt.MATHML]:new Set([Gn.MI,Gn.MO,Gn.MN,Gn.MS,Gn.MTEXT,Gn.ANNOTATION_XML]),[kt.SVG]:new Set([Gn.TITLE,Gn.FOREIGN_OBJECT,Gn.DESC]),[kt.XLINK]:new Set,[kt.XML]:new Set,[kt.XMLNS]:new Set},Er=new Set([Gn.H1,Gn.H2,Gn.H3,Gn.H4,Gn.H5,Gn.H6]),Zi=new Set([tt.STYLE,tt.SCRIPT,tt.XMP,tt.IFRAME,tt.NOEMBED,tt.NOFRAMES,tt.PLAINTEXT]);function _(h,m){return Zi.has(h)||m&&h===tt.NOSCRIPT}var ht;(function(h){h[h.DATA=0]="DATA",h[h.RCDATA=1]="RCDATA",h[h.RAWTEXT=2]="RAWTEXT",h[h.SCRIPT_DATA=3]="SCRIPT_DATA",h[h.PLAINTEXT=4]="PLAINTEXT",h[h.TAG_OPEN=5]="TAG_OPEN",h[h.END_TAG_OPEN=6]="END_TAG_OPEN",h[h.TAG_NAME=7]="TAG_NAME",h[h.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",h[h.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",h[h.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",h[h.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",h[h.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",h[h.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",h[h.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",h[h.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",h[h.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",h[h.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",h[h.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",h[h.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",h[h.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",h[h.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",h[h.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",h[h.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",h[h.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",h[h.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",h[h.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",h[h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",h[h.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",h[h.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",h[h.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",h[h.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",h[h.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",h[h.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",h[h.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",h[h.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",h[h.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",h[h.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",h[h.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",h[h.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",h[h.BOGUS_COMMENT=40]="BOGUS_COMMENT",h[h.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",h[h.COMMENT_START=42]="COMMENT_START",h[h.COMMENT_START_DASH=43]="COMMENT_START_DASH",h[h.COMMENT=44]="COMMENT",h[h.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",h[h.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",h[h.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",h[h.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",h[h.COMMENT_END_DASH=49]="COMMENT_END_DASH",h[h.COMMENT_END=50]="COMMENT_END",h[h.COMMENT_END_BANG=51]="COMMENT_END_BANG",h[h.DOCTYPE=52]="DOCTYPE",h[h.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",h[h.DOCTYPE_NAME=54]="DOCTYPE_NAME",h[h.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",h[h.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",h[h.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",h[h.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",h[h.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",h[h.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",h[h.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",h[h.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",h[h.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",h[h.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",h[h.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",h[h.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",h[h.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",h[h.CDATA_SECTION=68]="CDATA_SECTION",h[h.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",h[h.CDATA_SECTION_END=70]="CDATA_SECTION_END",h[h.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",h[h.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(ht||(ht={}));const _i={DATA:ht.DATA,RCDATA:ht.RCDATA,RAWTEXT:ht.RAWTEXT,SCRIPT_DATA:ht.SCRIPT_DATA,PLAINTEXT:ht.PLAINTEXT,CDATA_SECTION:ht.CDATA_SECTION};function Rr(h){return h>=H.DIGIT_0&&h<=H.DIGIT_9}function Ar(h){return h>=H.LATIN_CAPITAL_A&&h<=H.LATIN_CAPITAL_Z}function Yr(h){return h>=H.LATIN_SMALL_A&&h<=H.LATIN_SMALL_Z}function Dr(h){return Yr(h)||Ar(h)}function Hr(h){return Dr(h)||Rr(h)}function dr(h){return h+32}function Vi(h){return h===H.SPACE||h===H.LINE_FEED||h===H.TABULATION||h===H.FORM_FEED}function fi(h){return Vi(h)||h===H.SOLIDUS||h===H.GREATER_THAN_SIGN}function at(h){return h===H.NULL?yt.nullCharacterReference:h>1114111?yt.characterReferenceOutsideUnicodeRange:Kt(h)?yt.surrogateCharacterReference:hi(h)?yt.noncharacterCharacterReference:Rt(h)||h===H.CARRIAGE_RETURN?yt.controlCharacterReference:null}class Fn{constructor(m,W){this.options=m,this.handler=W,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ht.DATA,this.returnState=ht.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new qn(W),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new Pt(xe,(Ve,_t)=>{this.preprocessor.pos=this.entityStartPos+_t-1,this._flushCodePointConsumedAsCharacterReference(Ve)},W.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(yt.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:Ve=>{this._err(yt.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+Ve)},validateNumericCharacterReference:Ve=>{const _t=at(Ve);_t&&this._err(_t,1)}}:void 0)}_err(m,W=0){var Ve,_t;(_t=(Ve=this.handler).onParseError)===null||_t===void 0||_t.call(Ve,this.preprocessor.getError(m,W))}getCurrentLocation(m){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-m,startOffset:this.preprocessor.offset-m,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const m=this._consume();this._ensureHibernation()||this._callState(m)}this.inLoop=!1}}pause(){this.paused=!0}resume(m){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||m==null||m())}write(m,W,Ve){this.active=!0,this.preprocessor.write(m,W),this._runParsingLoop(),this.paused||Ve==null||Ve()}insertHtmlAtCurrentPos(m){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(m),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(m){this.consumedAfterSnapshot+=m;for(let W=0;W<m;W++)this.preprocessor.advance()}_consumeSequenceIfMatch(m,W){return this.preprocessor.startsWith(m,W)?(this._advanceBy(m.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:ln.START_TAG,tagName:"",tagID:j.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:ln.END_TAG,tagName:"",tagID:j.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(m){this.currentToken={type:ln.COMMENT,data:"",location:this.getCurrentLocation(m)}}_createDoctypeToken(m){this.currentToken={type:ln.DOCTYPE,name:m,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(m,W){this.currentCharacterToken={type:m,chars:W,location:this.currentLocation}}_createAttr(m){this.currentAttr={name:m,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var m,W;const Ve=this.currentToken;if(Tn(Ve,this.currentAttr.name)===null){if(Ve.attrs.push(this.currentAttr),Ve.location&&this.currentLocation){const _t=(m=(W=Ve.location).attrs)!==null&&m!==void 0?m:W.attrs=Object.create(null);_t[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(yt.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(m){this._emitCurrentCharacterToken(m.location),this.currentToken=null,m.location&&(m.location.endLine=this.preprocessor.line,m.location.endCol=this.preprocessor.col+1,m.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const m=this.currentToken;this.prepareToken(m),m.tagID=tr(m.tagName),m.type===ln.START_TAG?(this.lastStartTagName=m.tagName,this.handler.onStartTag(m)):(m.attrs.length>0&&this._err(yt.endTagWithAttributes),m.selfClosing&&this._err(yt.endTagWithTrailingSolidus),this.handler.onEndTag(m)),this.preprocessor.dropParsedChunk()}emitCurrentComment(m){this.prepareToken(m),this.handler.onComment(m),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(m){this.prepareToken(m),this.handler.onDoctype(m),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(m){if(this.currentCharacterToken){switch(m&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=m.startLine,this.currentCharacterToken.location.endCol=m.startCol,this.currentCharacterToken.location.endOffset=m.startOffset),this.currentCharacterToken.type){case ln.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case ln.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case ln.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const m=this.getCurrentLocation(0);m&&(m.endLine=m.startLine,m.endCol=m.startCol,m.endOffset=m.startOffset),this._emitCurrentCharacterToken(m),this.handler.onEof({type:ln.EOF,location:m}),this.active=!1}_appendCharToCurrentCharacterToken(m,W){if(this.currentCharacterToken)if(this.currentCharacterToken.type===m){this.currentCharacterToken.chars+=W;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(m,W)}_emitCodePoint(m){const W=Vi(m)?ln.WHITESPACE_CHARACTER:m===H.NULL?ln.NULL_CHARACTER:ln.CHARACTER;this._appendCharToCurrentCharacterToken(W,String.fromCodePoint(m))}_emitChars(m){this._appendCharToCurrentCharacterToken(ln.CHARACTER,m)}_startCharacterReference(){this.returnState=this.state,this.state=ht.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Vt.Attribute:Vt.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===ht.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ht.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ht.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(m){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(m):this._emitCodePoint(m)}_callState(m){switch(this.state){case ht.DATA:{this._stateData(m);break}case ht.RCDATA:{this._stateRcdata(m);break}case ht.RAWTEXT:{this._stateRawtext(m);break}case ht.SCRIPT_DATA:{this._stateScriptData(m);break}case ht.PLAINTEXT:{this._statePlaintext(m);break}case ht.TAG_OPEN:{this._stateTagOpen(m);break}case ht.END_TAG_OPEN:{this._stateEndTagOpen(m);break}case ht.TAG_NAME:{this._stateTagName(m);break}case ht.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(m);break}case ht.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(m);break}case ht.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(m);break}case ht.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(m);break}case ht.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(m);break}case ht.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(m);break}case ht.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(m);break}case ht.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(m);break}case ht.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(m);break}case ht.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(m);break}case ht.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(m);break}case ht.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(m);break}case ht.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(m);break}case ht.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(m);break}case ht.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(m);break}case ht.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(m);break}case ht.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(m);break}case ht.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(m);break}case ht.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(m);break}case ht.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(m);break}case ht.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(m);break}case ht.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(m);break}case ht.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(m);break}case ht.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(m);break}case ht.ATTRIBUTE_NAME:{this._stateAttributeName(m);break}case ht.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(m);break}case ht.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(m);break}case ht.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(m);break}case ht.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(m);break}case ht.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(m);break}case ht.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(m);break}case ht.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(m);break}case ht.BOGUS_COMMENT:{this._stateBogusComment(m);break}case ht.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(m);break}case ht.COMMENT_START:{this._stateCommentStart(m);break}case ht.COMMENT_START_DASH:{this._stateCommentStartDash(m);break}case ht.COMMENT:{this._stateComment(m);break}case ht.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(m);break}case ht.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(m);break}case ht.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(m);break}case ht.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(m);break}case ht.COMMENT_END_DASH:{this._stateCommentEndDash(m);break}case ht.COMMENT_END:{this._stateCommentEnd(m);break}case ht.COMMENT_END_BANG:{this._stateCommentEndBang(m);break}case ht.DOCTYPE:{this._stateDoctype(m);break}case ht.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(m);break}case ht.DOCTYPE_NAME:{this._stateDoctypeName(m);break}case ht.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(m);break}case ht.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(m);break}case ht.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(m);break}case ht.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(m);break}case ht.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(m);break}case ht.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(m);break}case ht.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(m);break}case ht.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(m);break}case ht.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(m);break}case ht.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(m);break}case ht.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(m);break}case ht.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(m);break}case ht.BOGUS_DOCTYPE:{this._stateBogusDoctype(m);break}case ht.CDATA_SECTION:{this._stateCdataSection(m);break}case ht.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(m);break}case ht.CDATA_SECTION_END:{this._stateCdataSectionEnd(m);break}case ht.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case ht.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(m);break}default:throw new Error("Unknown state")}}_stateData(m){switch(m){case H.LESS_THAN_SIGN:{this.state=ht.TAG_OPEN;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this._emitCodePoint(m);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(m)}}_stateRcdata(m){switch(m){case H.AMPERSAND:{this._startCharacterReference();break}case H.LESS_THAN_SIGN:{this.state=ht.RCDATA_LESS_THAN_SIGN;break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this._emitChars(oe);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(m)}}_stateRawtext(m){switch(m){case H.LESS_THAN_SIGN:{this.state=ht.RAWTEXT_LESS_THAN_SIGN;break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this._emitChars(oe);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(m)}}_stateScriptData(m){switch(m){case H.LESS_THAN_SIGN:{this.state=ht.SCRIPT_DATA_LESS_THAN_SIGN;break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this._emitChars(oe);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(m)}}_statePlaintext(m){switch(m){case H.NULL:{this._err(yt.unexpectedNullCharacter),this._emitChars(oe);break}case H.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(m)}}_stateTagOpen(m){if(Dr(m))this._createStartTagToken(),this.state=ht.TAG_NAME,this._stateTagName(m);else switch(m){case H.EXCLAMATION_MARK:{this.state=ht.MARKUP_DECLARATION_OPEN;break}case H.SOLIDUS:{this.state=ht.END_TAG_OPEN;break}case H.QUESTION_MARK:{this._err(yt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ht.BOGUS_COMMENT,this._stateBogusComment(m);break}case H.EOF:{this._err(yt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(yt.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ht.DATA,this._stateData(m)}}_stateEndTagOpen(m){if(Dr(m))this._createEndTagToken(),this.state=ht.TAG_NAME,this._stateTagName(m);else switch(m){case H.GREATER_THAN_SIGN:{this._err(yt.missingEndTagName),this.state=ht.DATA;break}case H.EOF:{this._err(yt.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(yt.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=ht.BOGUS_COMMENT,this._stateBogusComment(m)}}_stateTagName(m){const W=this.currentToken;switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=ht.BEFORE_ATTRIBUTE_NAME;break}case H.SOLIDUS:{this.state=ht.SELF_CLOSING_START_TAG;break}case H.GREATER_THAN_SIGN:{this.state=ht.DATA,this.emitCurrentTagToken();break}case H.NULL:{this._err(yt.unexpectedNullCharacter),W.tagName+=oe;break}case H.EOF:{this._err(yt.eofInTag),this._emitEOFToken();break}default:W.tagName+=String.fromCodePoint(Ar(m)?dr(m):m)}}_stateRcdataLessThanSign(m){m===H.SOLIDUS?this.state=ht.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=ht.RCDATA,this._stateRcdata(m))}_stateRcdataEndTagOpen(m){Dr(m)?(this.state=ht.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(m)):(this._emitChars("</"),this.state=ht.RCDATA,this._stateRcdata(m))}handleSpecialEndTag(m){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const W=this.currentToken;switch(W.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=ht.BEFORE_ATTRIBUTE_NAME,!1;case H.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=ht.SELF_CLOSING_START_TAG,!1;case H.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=ht.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(m){this.handleSpecialEndTag(m)&&(this._emitChars("</"),this.state=ht.RCDATA,this._stateRcdata(m))}_stateRawtextLessThanSign(m){m===H.SOLIDUS?this.state=ht.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=ht.RAWTEXT,this._stateRawtext(m))}_stateRawtextEndTagOpen(m){Dr(m)?(this.state=ht.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(m)):(this._emitChars("</"),this.state=ht.RAWTEXT,this._stateRawtext(m))}_stateRawtextEndTagName(m){this.handleSpecialEndTag(m)&&(this._emitChars("</"),this.state=ht.RAWTEXT,this._stateRawtext(m))}_stateScriptDataLessThanSign(m){switch(m){case H.SOLIDUS:{this.state=ht.SCRIPT_DATA_END_TAG_OPEN;break}case H.EXCLAMATION_MARK:{this.state=ht.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=ht.SCRIPT_DATA,this._stateScriptData(m)}}_stateScriptDataEndTagOpen(m){Dr(m)?(this.state=ht.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(m)):(this._emitChars("</"),this.state=ht.SCRIPT_DATA,this._stateScriptData(m))}_stateScriptDataEndTagName(m){this.handleSpecialEndTag(m)&&(this._emitChars("</"),this.state=ht.SCRIPT_DATA,this._stateScriptData(m))}_stateScriptDataEscapeStart(m){m===H.HYPHEN_MINUS?(this.state=ht.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=ht.SCRIPT_DATA,this._stateScriptData(m))}_stateScriptDataEscapeStartDash(m){m===H.HYPHEN_MINUS?(this.state=ht.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=ht.SCRIPT_DATA,this._stateScriptData(m))}_stateScriptDataEscaped(m){switch(m){case H.HYPHEN_MINUS:{this.state=ht.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=ht.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this._emitChars(oe);break}case H.EOF:{this._err(yt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(m)}}_stateScriptDataEscapedDash(m){switch(m){case H.HYPHEN_MINUS:{this.state=ht.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=ht.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this.state=ht.SCRIPT_DATA_ESCAPED,this._emitChars(oe);break}case H.EOF:{this._err(yt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ht.SCRIPT_DATA_ESCAPED,this._emitCodePoint(m)}}_stateScriptDataEscapedDashDash(m){switch(m){case H.HYPHEN_MINUS:{this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=ht.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case H.GREATER_THAN_SIGN:{this.state=ht.SCRIPT_DATA,this._emitChars(">");break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this.state=ht.SCRIPT_DATA_ESCAPED,this._emitChars(oe);break}case H.EOF:{this._err(yt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ht.SCRIPT_DATA_ESCAPED,this._emitCodePoint(m)}}_stateScriptDataEscapedLessThanSign(m){m===H.SOLIDUS?this.state=ht.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Dr(m)?(this._emitChars("<"),this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(m)):(this._emitChars("<"),this.state=ht.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(m))}_stateScriptDataEscapedEndTagOpen(m){Dr(m)?(this.state=ht.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(m)):(this._emitChars("</"),this.state=ht.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(m))}_stateScriptDataEscapedEndTagName(m){this.handleSpecialEndTag(m)&&(this._emitChars("</"),this.state=ht.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(m))}_stateScriptDataDoubleEscapeStart(m){if(this.preprocessor.startsWith(Ot.SCRIPT,!1)&&fi(this.preprocessor.peek(Ot.SCRIPT.length))){this._emitCodePoint(m);for(let W=0;W<Ot.SCRIPT.length;W++)this._emitCodePoint(this._consume());this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=ht.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(m))}_stateScriptDataDoubleEscaped(m){switch(m){case H.HYPHEN_MINUS:{this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this._emitChars(oe);break}case H.EOF:{this._err(yt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(m)}}_stateScriptDataDoubleEscapedDash(m){switch(m){case H.HYPHEN_MINUS:{this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(oe);break}case H.EOF:{this._err(yt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(m)}}_stateScriptDataDoubleEscapedDashDash(m){switch(m){case H.HYPHEN_MINUS:{this._emitChars("-");break}case H.LESS_THAN_SIGN:{this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case H.GREATER_THAN_SIGN:{this.state=ht.SCRIPT_DATA,this._emitChars(">");break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(oe);break}case H.EOF:{this._err(yt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(m)}}_stateScriptDataDoubleEscapedLessThanSign(m){m===H.SOLIDUS?(this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(m))}_stateScriptDataDoubleEscapeEnd(m){if(this.preprocessor.startsWith(Ot.SCRIPT,!1)&&fi(this.preprocessor.peek(Ot.SCRIPT.length))){this._emitCodePoint(m);for(let W=0;W<Ot.SCRIPT.length;W++)this._emitCodePoint(this._consume());this.state=ht.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=ht.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(m))}_stateBeforeAttributeName(m){switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.SOLIDUS:case H.GREATER_THAN_SIGN:case H.EOF:{this.state=ht.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(m);break}case H.EQUALS_SIGN:{this._err(yt.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=ht.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=ht.ATTRIBUTE_NAME,this._stateAttributeName(m)}}_stateAttributeName(m){switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:case H.SOLIDUS:case H.GREATER_THAN_SIGN:case H.EOF:{this._leaveAttrName(),this.state=ht.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(m);break}case H.EQUALS_SIGN:{this._leaveAttrName(),this.state=ht.BEFORE_ATTRIBUTE_VALUE;break}case H.QUOTATION_MARK:case H.APOSTROPHE:case H.LESS_THAN_SIGN:{this._err(yt.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(m);break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this.currentAttr.name+=oe;break}default:this.currentAttr.name+=String.fromCodePoint(Ar(m)?dr(m):m)}}_stateAfterAttributeName(m){switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.SOLIDUS:{this.state=ht.SELF_CLOSING_START_TAG;break}case H.EQUALS_SIGN:{this.state=ht.BEFORE_ATTRIBUTE_VALUE;break}case H.GREATER_THAN_SIGN:{this.state=ht.DATA,this.emitCurrentTagToken();break}case H.EOF:{this._err(yt.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=ht.ATTRIBUTE_NAME,this._stateAttributeName(m)}}_stateBeforeAttributeValue(m){switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.QUOTATION_MARK:{this.state=ht.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this.state=ht.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(yt.missingAttributeValue),this.state=ht.DATA,this.emitCurrentTagToken();break}default:this.state=ht.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(m)}}_stateAttributeValueDoubleQuoted(m){switch(m){case H.QUOTATION_MARK:{this.state=ht.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this.currentAttr.value+=oe;break}case H.EOF:{this._err(yt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(m)}}_stateAttributeValueSingleQuoted(m){switch(m){case H.APOSTROPHE:{this.state=ht.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this.currentAttr.value+=oe;break}case H.EOF:{this._err(yt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(m)}}_stateAttributeValueUnquoted(m){switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this._leaveAttrValue(),this.state=ht.BEFORE_ATTRIBUTE_NAME;break}case H.AMPERSAND:{this._startCharacterReference();break}case H.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ht.DATA,this.emitCurrentTagToken();break}case H.NULL:{this._err(yt.unexpectedNullCharacter),this.currentAttr.value+=oe;break}case H.QUOTATION_MARK:case H.APOSTROPHE:case H.LESS_THAN_SIGN:case H.EQUALS_SIGN:case H.GRAVE_ACCENT:{this._err(yt.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(m);break}case H.EOF:{this._err(yt.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(m)}}_stateAfterAttributeValueQuoted(m){switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this._leaveAttrValue(),this.state=ht.BEFORE_ATTRIBUTE_NAME;break}case H.SOLIDUS:{this._leaveAttrValue(),this.state=ht.SELF_CLOSING_START_TAG;break}case H.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=ht.DATA,this.emitCurrentTagToken();break}case H.EOF:{this._err(yt.eofInTag),this._emitEOFToken();break}default:this._err(yt.missingWhitespaceBetweenAttributes),this.state=ht.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(m)}}_stateSelfClosingStartTag(m){switch(m){case H.GREATER_THAN_SIGN:{const W=this.currentToken;W.selfClosing=!0,this.state=ht.DATA,this.emitCurrentTagToken();break}case H.EOF:{this._err(yt.eofInTag),this._emitEOFToken();break}default:this._err(yt.unexpectedSolidusInTag),this.state=ht.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(m)}}_stateBogusComment(m){const W=this.currentToken;switch(m){case H.GREATER_THAN_SIGN:{this.state=ht.DATA,this.emitCurrentComment(W);break}case H.EOF:{this.emitCurrentComment(W),this._emitEOFToken();break}case H.NULL:{this._err(yt.unexpectedNullCharacter),W.data+=oe;break}default:W.data+=String.fromCodePoint(m)}}_stateMarkupDeclarationOpen(m){this._consumeSequenceIfMatch(Ot.DASH_DASH,!0)?(this._createCommentToken(Ot.DASH_DASH.length+1),this.state=ht.COMMENT_START):this._consumeSequenceIfMatch(Ot.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(Ot.DOCTYPE.length+1),this.state=ht.DOCTYPE):this._consumeSequenceIfMatch(Ot.CDATA_START,!0)?this.inForeignNode?this.state=ht.CDATA_SECTION:(this._err(yt.cdataInHtmlContent),this._createCommentToken(Ot.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=ht.BOGUS_COMMENT):this._ensureHibernation()||(this._err(yt.incorrectlyOpenedComment),this._createCommentToken(2),this.state=ht.BOGUS_COMMENT,this._stateBogusComment(m))}_stateCommentStart(m){switch(m){case H.HYPHEN_MINUS:{this.state=ht.COMMENT_START_DASH;break}case H.GREATER_THAN_SIGN:{this._err(yt.abruptClosingOfEmptyComment),this.state=ht.DATA;const W=this.currentToken;this.emitCurrentComment(W);break}default:this.state=ht.COMMENT,this._stateComment(m)}}_stateCommentStartDash(m){const W=this.currentToken;switch(m){case H.HYPHEN_MINUS:{this.state=ht.COMMENT_END;break}case H.GREATER_THAN_SIGN:{this._err(yt.abruptClosingOfEmptyComment),this.state=ht.DATA,this.emitCurrentComment(W);break}case H.EOF:{this._err(yt.eofInComment),this.emitCurrentComment(W),this._emitEOFToken();break}default:W.data+="-",this.state=ht.COMMENT,this._stateComment(m)}}_stateComment(m){const W=this.currentToken;switch(m){case H.HYPHEN_MINUS:{this.state=ht.COMMENT_END_DASH;break}case H.LESS_THAN_SIGN:{W.data+="<",this.state=ht.COMMENT_LESS_THAN_SIGN;break}case H.NULL:{this._err(yt.unexpectedNullCharacter),W.data+=oe;break}case H.EOF:{this._err(yt.eofInComment),this.emitCurrentComment(W),this._emitEOFToken();break}default:W.data+=String.fromCodePoint(m)}}_stateCommentLessThanSign(m){const W=this.currentToken;switch(m){case H.EXCLAMATION_MARK:{W.data+="!",this.state=ht.COMMENT_LESS_THAN_SIGN_BANG;break}case H.LESS_THAN_SIGN:{W.data+="<";break}default:this.state=ht.COMMENT,this._stateComment(m)}}_stateCommentLessThanSignBang(m){m===H.HYPHEN_MINUS?this.state=ht.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=ht.COMMENT,this._stateComment(m))}_stateCommentLessThanSignBangDash(m){m===H.HYPHEN_MINUS?this.state=ht.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=ht.COMMENT_END_DASH,this._stateCommentEndDash(m))}_stateCommentLessThanSignBangDashDash(m){m!==H.GREATER_THAN_SIGN&&m!==H.EOF&&this._err(yt.nestedComment),this.state=ht.COMMENT_END,this._stateCommentEnd(m)}_stateCommentEndDash(m){const W=this.currentToken;switch(m){case H.HYPHEN_MINUS:{this.state=ht.COMMENT_END;break}case H.EOF:{this._err(yt.eofInComment),this.emitCurrentComment(W),this._emitEOFToken();break}default:W.data+="-",this.state=ht.COMMENT,this._stateComment(m)}}_stateCommentEnd(m){const W=this.currentToken;switch(m){case H.GREATER_THAN_SIGN:{this.state=ht.DATA,this.emitCurrentComment(W);break}case H.EXCLAMATION_MARK:{this.state=ht.COMMENT_END_BANG;break}case H.HYPHEN_MINUS:{W.data+="-";break}case H.EOF:{this._err(yt.eofInComment),this.emitCurrentComment(W),this._emitEOFToken();break}default:W.data+="--",this.state=ht.COMMENT,this._stateComment(m)}}_stateCommentEndBang(m){const W=this.currentToken;switch(m){case H.HYPHEN_MINUS:{W.data+="--!",this.state=ht.COMMENT_END_DASH;break}case H.GREATER_THAN_SIGN:{this._err(yt.incorrectlyClosedComment),this.state=ht.DATA,this.emitCurrentComment(W);break}case H.EOF:{this._err(yt.eofInComment),this.emitCurrentComment(W),this._emitEOFToken();break}default:W.data+="--!",this.state=ht.COMMENT,this._stateComment(m)}}_stateDoctype(m){switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=ht.BEFORE_DOCTYPE_NAME;break}case H.GREATER_THAN_SIGN:{this.state=ht.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(m);break}case H.EOF:{this._err(yt.eofInDoctype),this._createDoctypeToken(null);const W=this.currentToken;W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:this._err(yt.missingWhitespaceBeforeDoctypeName),this.state=ht.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(m)}}_stateBeforeDoctypeName(m){if(Ar(m))this._createDoctypeToken(String.fromCharCode(dr(m))),this.state=ht.DOCTYPE_NAME;else switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.NULL:{this._err(yt.unexpectedNullCharacter),this._createDoctypeToken(oe),this.state=ht.DOCTYPE_NAME;break}case H.GREATER_THAN_SIGN:{this._err(yt.missingDoctypeName),this._createDoctypeToken(null);const W=this.currentToken;W.forceQuirks=!0,this.emitCurrentDoctype(W),this.state=ht.DATA;break}case H.EOF:{this._err(yt.eofInDoctype),this._createDoctypeToken(null);const W=this.currentToken;W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(m)),this.state=ht.DOCTYPE_NAME}}_stateDoctypeName(m){const W=this.currentToken;switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=ht.AFTER_DOCTYPE_NAME;break}case H.GREATER_THAN_SIGN:{this.state=ht.DATA,this.emitCurrentDoctype(W);break}case H.NULL:{this._err(yt.unexpectedNullCharacter),W.name+=oe;break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:W.name+=String.fromCodePoint(Ar(m)?dr(m):m)}}_stateAfterDoctypeName(m){const W=this.currentToken;switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.GREATER_THAN_SIGN:{this.state=ht.DATA,this.emitCurrentDoctype(W);break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(Ot.PUBLIC,!1)?this.state=ht.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(Ot.SYSTEM,!1)?this.state=ht.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(yt.invalidCharacterSequenceAfterDoctypeName),W.forceQuirks=!0,this.state=ht.BOGUS_DOCTYPE,this._stateBogusDoctype(m))}}_stateAfterDoctypePublicKeyword(m){const W=this.currentToken;switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=ht.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case H.QUOTATION_MARK:{this._err(yt.missingWhitespaceAfterDoctypePublicKeyword),W.publicId="",this.state=ht.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this._err(yt.missingWhitespaceAfterDoctypePublicKeyword),W.publicId="",this.state=ht.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(yt.missingDoctypePublicIdentifier),W.forceQuirks=!0,this.state=ht.DATA,this.emitCurrentDoctype(W);break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:this._err(yt.missingQuoteBeforeDoctypePublicIdentifier),W.forceQuirks=!0,this.state=ht.BOGUS_DOCTYPE,this._stateBogusDoctype(m)}}_stateBeforeDoctypePublicIdentifier(m){const W=this.currentToken;switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.QUOTATION_MARK:{W.publicId="",this.state=ht.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{W.publicId="",this.state=ht.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(yt.missingDoctypePublicIdentifier),W.forceQuirks=!0,this.state=ht.DATA,this.emitCurrentDoctype(W);break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:this._err(yt.missingQuoteBeforeDoctypePublicIdentifier),W.forceQuirks=!0,this.state=ht.BOGUS_DOCTYPE,this._stateBogusDoctype(m)}}_stateDoctypePublicIdentifierDoubleQuoted(m){const W=this.currentToken;switch(m){case H.QUOTATION_MARK:{this.state=ht.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case H.NULL:{this._err(yt.unexpectedNullCharacter),W.publicId+=oe;break}case H.GREATER_THAN_SIGN:{this._err(yt.abruptDoctypePublicIdentifier),W.forceQuirks=!0,this.emitCurrentDoctype(W),this.state=ht.DATA;break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:W.publicId+=String.fromCodePoint(m)}}_stateDoctypePublicIdentifierSingleQuoted(m){const W=this.currentToken;switch(m){case H.APOSTROPHE:{this.state=ht.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case H.NULL:{this._err(yt.unexpectedNullCharacter),W.publicId+=oe;break}case H.GREATER_THAN_SIGN:{this._err(yt.abruptDoctypePublicIdentifier),W.forceQuirks=!0,this.emitCurrentDoctype(W),this.state=ht.DATA;break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:W.publicId+=String.fromCodePoint(m)}}_stateAfterDoctypePublicIdentifier(m){const W=this.currentToken;switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=ht.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case H.GREATER_THAN_SIGN:{this.state=ht.DATA,this.emitCurrentDoctype(W);break}case H.QUOTATION_MARK:{this._err(yt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),W.systemId="",this.state=ht.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this._err(yt.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),W.systemId="",this.state=ht.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:this._err(yt.missingQuoteBeforeDoctypeSystemIdentifier),W.forceQuirks=!0,this.state=ht.BOGUS_DOCTYPE,this._stateBogusDoctype(m)}}_stateBetweenDoctypePublicAndSystemIdentifiers(m){const W=this.currentToken;switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.GREATER_THAN_SIGN:{this.emitCurrentDoctype(W),this.state=ht.DATA;break}case H.QUOTATION_MARK:{W.systemId="",this.state=ht.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{W.systemId="",this.state=ht.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:this._err(yt.missingQuoteBeforeDoctypeSystemIdentifier),W.forceQuirks=!0,this.state=ht.BOGUS_DOCTYPE,this._stateBogusDoctype(m)}}_stateAfterDoctypeSystemKeyword(m){const W=this.currentToken;switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:{this.state=ht.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case H.QUOTATION_MARK:{this._err(yt.missingWhitespaceAfterDoctypeSystemKeyword),W.systemId="",this.state=ht.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{this._err(yt.missingWhitespaceAfterDoctypeSystemKeyword),W.systemId="",this.state=ht.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(yt.missingDoctypeSystemIdentifier),W.forceQuirks=!0,this.state=ht.DATA,this.emitCurrentDoctype(W);break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:this._err(yt.missingQuoteBeforeDoctypeSystemIdentifier),W.forceQuirks=!0,this.state=ht.BOGUS_DOCTYPE,this._stateBogusDoctype(m)}}_stateBeforeDoctypeSystemIdentifier(m){const W=this.currentToken;switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.QUOTATION_MARK:{W.systemId="",this.state=ht.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case H.APOSTROPHE:{W.systemId="",this.state=ht.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case H.GREATER_THAN_SIGN:{this._err(yt.missingDoctypeSystemIdentifier),W.forceQuirks=!0,this.state=ht.DATA,this.emitCurrentDoctype(W);break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:this._err(yt.missingQuoteBeforeDoctypeSystemIdentifier),W.forceQuirks=!0,this.state=ht.BOGUS_DOCTYPE,this._stateBogusDoctype(m)}}_stateDoctypeSystemIdentifierDoubleQuoted(m){const W=this.currentToken;switch(m){case H.QUOTATION_MARK:{this.state=ht.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case H.NULL:{this._err(yt.unexpectedNullCharacter),W.systemId+=oe;break}case H.GREATER_THAN_SIGN:{this._err(yt.abruptDoctypeSystemIdentifier),W.forceQuirks=!0,this.emitCurrentDoctype(W),this.state=ht.DATA;break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:W.systemId+=String.fromCodePoint(m)}}_stateDoctypeSystemIdentifierSingleQuoted(m){const W=this.currentToken;switch(m){case H.APOSTROPHE:{this.state=ht.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case H.NULL:{this._err(yt.unexpectedNullCharacter),W.systemId+=oe;break}case H.GREATER_THAN_SIGN:{this._err(yt.abruptDoctypeSystemIdentifier),W.forceQuirks=!0,this.emitCurrentDoctype(W),this.state=ht.DATA;break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:W.systemId+=String.fromCodePoint(m)}}_stateAfterDoctypeSystemIdentifier(m){const W=this.currentToken;switch(m){case H.SPACE:case H.LINE_FEED:case H.TABULATION:case H.FORM_FEED:break;case H.GREATER_THAN_SIGN:{this.emitCurrentDoctype(W),this.state=ht.DATA;break}case H.EOF:{this._err(yt.eofInDoctype),W.forceQuirks=!0,this.emitCurrentDoctype(W),this._emitEOFToken();break}default:this._err(yt.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=ht.BOGUS_DOCTYPE,this._stateBogusDoctype(m)}}_stateBogusDoctype(m){const W=this.currentToken;switch(m){case H.GREATER_THAN_SIGN:{this.emitCurrentDoctype(W),this.state=ht.DATA;break}case H.NULL:{this._err(yt.unexpectedNullCharacter);break}case H.EOF:{this.emitCurrentDoctype(W),this._emitEOFToken();break}default:}}_stateCdataSection(m){switch(m){case H.RIGHT_SQUARE_BRACKET:{this.state=ht.CDATA_SECTION_BRACKET;break}case H.EOF:{this._err(yt.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(m)}}_stateCdataSectionBracket(m){m===H.RIGHT_SQUARE_BRACKET?this.state=ht.CDATA_SECTION_END:(this._emitChars("]"),this.state=ht.CDATA_SECTION,this._stateCdataSection(m))}_stateCdataSectionEnd(m){switch(m){case H.GREATER_THAN_SIGN:{this.state=ht.DATA;break}case H.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=ht.CDATA_SECTION,this._stateCdataSection(m)}}_stateCharacterReference(){let m=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(m<0)if(this.preprocessor.lastChunkWritten)m=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}m===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(H.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Hr(this.preprocessor.peek(1))?ht.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(m){Hr(m)?this._flushCodePointConsumedAsCharacterReference(m):(m===H.SEMICOLON&&this._err(yt.unknownNamedCharacterReference),this.state=this.returnState,this._callState(m))}}const Qn=new Set([j.DD,j.DT,j.LI,j.OPTGROUP,j.OPTION,j.P,j.RB,j.RP,j.RT,j.RTC]),ft=new Set([...Qn,j.CAPTION,j.COLGROUP,j.TBODY,j.TD,j.TFOOT,j.TH,j.THEAD,j.TR]),je=new Set([j.APPLET,j.CAPTION,j.HTML,j.MARQUEE,j.OBJECT,j.TABLE,j.TD,j.TEMPLATE,j.TH]),sn=new Set([...je,j.OL,j.UL]),In=new Set([...je,j.BUTTON]),ni=new Set([j.ANNOTATION_XML,j.MI,j.MN,j.MO,j.MS,j.MTEXT]),Kn=new Set([j.DESC,j.FOREIGN_OBJECT,j.TITLE]),ut=new Set([j.TR,j.TEMPLATE,j.HTML]),yn=new Set([j.TBODY,j.TFOOT,j.THEAD,j.TEMPLATE,j.HTML]),rn=new Set([j.TABLE,j.TEMPLATE,j.HTML]),Si=new Set([j.TD,j.TH]);class Zt{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(m,W,Ve){this.treeAdapter=W,this.handler=Ve,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=j.UNKNOWN,this.current=m}_indexOf(m){return this.items.lastIndexOf(m,this.stackTop)}_isInTemplate(){return this.currentTagId===j.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===kt.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(m,W){this.stackTop++,this.items[this.stackTop]=m,this.current=m,this.tagIDs[this.stackTop]=W,this.currentTagId=W,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(m,W,!0)}pop(){const m=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(m,!0)}replace(m,W){const Ve=this._indexOf(m);this.items[Ve]=W,Ve===this.stackTop&&(this.current=W)}insertAfter(m,W,Ve){const _t=this._indexOf(m)+1;this.items.splice(_t,0,W),this.tagIDs.splice(_t,0,Ve),this.stackTop++,_t===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,_t===this.stackTop)}popUntilTagNamePopped(m){let W=this.stackTop+1;do W=this.tagIDs.lastIndexOf(m,W-1);while(W>0&&this.treeAdapter.getNamespaceURI(this.items[W])!==kt.HTML);this.shortenToLength(W<0?0:W)}shortenToLength(m){for(;this.stackTop>=m;){const W=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(W,this.stackTop<m)}}popUntilElementPopped(m){const W=this._indexOf(m);this.shortenToLength(W<0?0:W)}popUntilPopped(m,W){const Ve=this._indexOfTagNames(m,W);this.shortenToLength(Ve<0?0:Ve)}popUntilNumberedHeaderPopped(){this.popUntilPopped(Er,kt.HTML)}popUntilTableCellPopped(){this.popUntilPopped(Si,kt.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(m,W){for(let Ve=this.stackTop;Ve>=0;Ve--)if(m.has(this.tagIDs[Ve])&&this.treeAdapter.getNamespaceURI(this.items[Ve])===W)return Ve;return-1}clearBackTo(m,W){const Ve=this._indexOfTagNames(m,W);this.shortenToLength(Ve+1)}clearBackToTableContext(){this.clearBackTo(rn,kt.HTML)}clearBackToTableBodyContext(){this.clearBackTo(yn,kt.HTML)}clearBackToTableRowContext(){this.clearBackTo(ut,kt.HTML)}remove(m){const W=this._indexOf(m);W>=0&&(W===this.stackTop?this.pop():(this.items.splice(W,1),this.tagIDs.splice(W,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(m,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===j.BODY?this.items[1]:null}contains(m){return this._indexOf(m)>-1}getCommonAncestor(m){const W=this._indexOf(m)-1;return W>=0?this.items[W]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===j.HTML}hasInDynamicScope(m,W){for(let Ve=this.stackTop;Ve>=0;Ve--){const _t=this.tagIDs[Ve];switch(this.treeAdapter.getNamespaceURI(this.items[Ve])){case kt.HTML:{if(_t===m)return!0;if(W.has(_t))return!1;break}case kt.SVG:{if(Kn.has(_t))return!1;break}case kt.MATHML:{if(ni.has(_t))return!1;break}}}return!0}hasInScope(m){return this.hasInDynamicScope(m,je)}hasInListItemScope(m){return this.hasInDynamicScope(m,sn)}hasInButtonScope(m){return this.hasInDynamicScope(m,In)}hasNumberedHeaderInScope(){for(let m=this.stackTop;m>=0;m--){const W=this.tagIDs[m];switch(this.treeAdapter.getNamespaceURI(this.items[m])){case kt.HTML:{if(Er.has(W))return!0;if(je.has(W))return!1;break}case kt.SVG:{if(Kn.has(W))return!1;break}case kt.MATHML:{if(ni.has(W))return!1;break}}}return!0}hasInTableScope(m){for(let W=this.stackTop;W>=0;W--)if(this.treeAdapter.getNamespaceURI(this.items[W])===kt.HTML)switch(this.tagIDs[W]){case m:return!0;case j.TABLE:case j.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let m=this.stackTop;m>=0;m--)if(this.treeAdapter.getNamespaceURI(this.items[m])===kt.HTML)switch(this.tagIDs[m]){case j.TBODY:case j.THEAD:case j.TFOOT:return!0;case j.TABLE:case j.HTML:return!1}return!0}hasInSelectScope(m){for(let W=this.stackTop;W>=0;W--)if(this.treeAdapter.getNamespaceURI(this.items[W])===kt.HTML)switch(this.tagIDs[W]){case m:return!0;case j.OPTION:case j.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;Qn.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ft.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(m){for(;this.currentTagId!==m&&ft.has(this.currentTagId);)this.pop()}}const _n=3;var Mt;(function(h){h[h.Marker=0]="Marker",h[h.Element=1]="Element"})(Mt||(Mt={}));const Jt={type:Mt.Marker};class on{constructor(m){this.treeAdapter=m,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(m,W){const Ve=[],_t=W.length,Mn=this.treeAdapter.getTagName(m),li=this.treeAdapter.getNamespaceURI(m);for(let ri=0;ri<this.entries.length;ri++){const Wn=this.entries[ri];if(Wn.type===Mt.Marker)break;const{element:Bi}=Wn;if(this.treeAdapter.getTagName(Bi)===Mn&&this.treeAdapter.getNamespaceURI(Bi)===li){const cr=this.treeAdapter.getAttrList(Bi);cr.length===_t&&Ve.push({idx:ri,attrs:cr})}}return Ve}_ensureNoahArkCondition(m){if(this.entries.length<_n)return;const W=this.treeAdapter.getAttrList(m),Ve=this._getNoahArkConditionCandidates(m,W);if(Ve.length<_n)return;const _t=new Map(W.map(li=>[li.name,li.value]));let Mn=0;for(let li=0;li<Ve.length;li++){const ri=Ve[li];ri.attrs.every(Wn=>_t.get(Wn.name)===Wn.value)&&(Mn+=1,Mn>=_n&&this.entries.splice(ri.idx,1))}}insertMarker(){this.entries.unshift(Jt)}pushElement(m,W){this._ensureNoahArkCondition(m),this.entries.unshift({type:Mt.Element,element:m,token:W})}insertElementAfterBookmark(m,W){const Ve=this.entries.indexOf(this.bookmark);this.entries.splice(Ve,0,{type:Mt.Element,element:m,token:W})}removeEntry(m){const W=this.entries.indexOf(m);W>=0&&this.entries.splice(W,1)}clearToLastMarker(){const m=this.entries.indexOf(Jt);m>=0?this.entries.splice(0,m+1):this.entries.length=0}getElementEntryInScopeWithTagName(m){const W=this.entries.find(Ve=>Ve.type===Mt.Marker||this.treeAdapter.getTagName(Ve.element)===m);return W&&W.type===Mt.Element?W:null}getElementEntry(m){return this.entries.find(W=>W.type===Mt.Element&&W.element===m)}}const jt={createDocument(){return{nodeName:"#document",mode:Jn.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(h,m,W){return{nodeName:h,tagName:h,attrs:W,namespaceURI:m,childNodes:[],parentNode:null}},createCommentNode(h){return{nodeName:"#comment",data:h,parentNode:null}},createTextNode(h){return{nodeName:"#text",value:h,parentNode:null}},appendChild(h,m){h.childNodes.push(m),m.parentNode=h},insertBefore(h,m,W){const Ve=h.childNodes.indexOf(W);h.childNodes.splice(Ve,0,m),m.parentNode=h},setTemplateContent(h,m){h.content=m},getTemplateContent(h){return h.content},setDocumentType(h,m,W,Ve){const _t=h.childNodes.find(Mn=>Mn.nodeName==="#documentType");if(_t)_t.name=m,_t.publicId=W,_t.systemId=Ve;else{const Mn={nodeName:"#documentType",name:m,publicId:W,systemId:Ve,parentNode:null};jt.appendChild(h,Mn)}},setDocumentMode(h,m){h.mode=m},getDocumentMode(h){return h.mode},detachNode(h){if(h.parentNode){const m=h.parentNode.childNodes.indexOf(h);h.parentNode.childNodes.splice(m,1),h.parentNode=null}},insertText(h,m){if(h.childNodes.length>0){const W=h.childNodes[h.childNodes.length-1];if(jt.isTextNode(W)){W.value+=m;return}}jt.appendChild(h,jt.createTextNode(m))},insertTextBefore(h,m,W){const Ve=h.childNodes[h.childNodes.indexOf(W)-1];Ve&&jt.isTextNode(Ve)?Ve.value+=m:jt.insertBefore(h,jt.createTextNode(m),W)},adoptAttributes(h,m){const W=new Set(h.attrs.map(Ve=>Ve.name));for(let Ve=0;Ve<m.length;Ve++)W.has(m[Ve].name)||h.attrs.push(m[Ve])},getFirstChild(h){return h.childNodes[0]},getChildNodes(h){return h.childNodes},getParentNode(h){return h.parentNode},getAttrList(h){return h.attrs},getTagName(h){return h.tagName},getNamespaceURI(h){return h.namespaceURI},getTextNodeContent(h){return h.value},getCommentNodeContent(h){return h.data},getDocumentTypeNodeName(h){return h.name},getDocumentTypeNodePublicId(h){return h.publicId},getDocumentTypeNodeSystemId(h){return h.systemId},isTextNode(h){return h.nodeName==="#text"},isCommentNode(h){return h.nodeName==="#comment"},isDocumentTypeNode(h){return h.nodeName==="#documentType"},isElementNode(h){return Object.prototype.hasOwnProperty.call(h,"tagName")},setNodeSourceCodeLocation(h,m){h.sourceCodeLocation=m},getNodeSourceCodeLocation(h){return h.sourceCodeLocation},updateNodeSourceCodeLocation(h,m){h.sourceCodeLocation=Eo(Eo({},h.sourceCodeLocation),m)}},gn="html",fn="about:legacy-compat",En="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",Ln=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],Ai=[...Ln,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],zn=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),ki=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],ir=[...ki,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function lr(h,m){return m.some(W=>h.startsWith(W))}function qt(h){return h.name===gn&&h.publicId===null&&(h.systemId===null||h.systemId===fn)}function Ki(h){if(h.name!==gn)return Jn.QUIRKS;const{systemId:m}=h;if(m&&m.toLowerCase()===En)return Jn.QUIRKS;let{publicId:W}=h;if(W!==null){if(W=W.toLowerCase(),zn.has(W))return Jn.QUIRKS;let Ve=m===null?Ai:Ln;if(lr(W,Ve))return Jn.QUIRKS;if(Ve=m===null?ki:ir,lr(W,Ve))return Jn.LIMITED_QUIRKS}return Jn.NO_QUIRKS}const ee={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ue="definitionurl",Zn="definitionURL",Be=new Map(["attributeName","attributeType","baseFrequency","baseProfile","calcMode","clipPathUnits","diffuseConstant","edgeMode","filterUnits","glyphRef","gradientTransform","gradientUnits","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","limitingConeAngle","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","numOctaves","pathLength","patternContentUnits","patternTransform","patternUnits","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","refX","refY","repeatCount","repeatDur","requiredExtensions","requiredFeatures","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","surfaceScale","systemLanguage","tableValues","targetX","targetY","textLength","viewBox","viewTarget","xChannelSelector","yChannelSelector","zoomAndPan"].map(h=>[h.toLowerCase(),h])),wt=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:kt.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:kt.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:kt.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:kt.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:kt.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:kt.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:kt.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:kt.XML}],["xml:space",{prefix:"xml",name:"space",namespace:kt.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:kt.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:kt.XMLNS}]]),Ni=new Map(["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","textPath"].map(h=>[h.toLowerCase(),h])),Dn=new Set([j.B,j.BIG,j.BLOCKQUOTE,j.BODY,j.BR,j.CENTER,j.CODE,j.DD,j.DIV,j.DL,j.DT,j.EM,j.EMBED,j.H1,j.H2,j.H3,j.H4,j.H5,j.H6,j.HEAD,j.HR,j.I,j.IMG,j.LI,j.LISTING,j.MENU,j.META,j.NOBR,j.OL,j.P,j.PRE,j.RUBY,j.S,j.SMALL,j.SPAN,j.STRONG,j.STRIKE,j.SUB,j.SUP,j.TABLE,j.TT,j.U,j.UL,j.VAR]);function Gi(h){const m=h.tagID;return m===j.FONT&&h.attrs.some(({name:Ve})=>Ve===Hn.COLOR||Ve===Hn.SIZE||Ve===Hn.FACE)||Dn.has(m)}function Xt(h){for(let m=0;m<h.attrs.length;m++)if(h.attrs[m].name===ue){h.attrs[m].name=Zn;break}}function Ii(h){for(let m=0;m<h.attrs.length;m++){const W=Be.get(h.attrs[m].name);W!=null&&(h.attrs[m].name=W)}}function Yt(h){for(let m=0;m<h.attrs.length;m++){const W=wt.get(h.attrs[m].name);W&&(h.attrs[m].prefix=W.prefix,h.attrs[m].name=W.name,h.attrs[m].namespace=W.namespace)}}function Wi(h){const m=Ni.get(h.tagName);m!=null&&(h.tagName=m,h.tagID=tr(h.tagName))}function Zr(h,m){return m===kt.MATHML&&(h===j.MI||h===j.MO||h===j.MN||h===j.MS||h===j.MTEXT)}function It(h,m,W){if(m===kt.MATHML&&h===j.ANNOTATION_XML){for(let Ve=0;Ve<W.length;Ve++)if(W[Ve].name===Hn.ENCODING){const _t=W[Ve].value.toLowerCase();return _t===ee.TEXT_HTML||_t===ee.APPLICATION_XML}}return m===kt.SVG&&(h===j.FOREIGN_OBJECT||h===j.DESC||h===j.TITLE)}function fo(h,m,W,Ve){return(!Ve||Ve===kt.HTML)&&It(h,m,W)||(!Ve||Ve===kt.MATHML)&&Zr(h,m)}const tn="hidden",Fi=8,Li=3;var Nt;(function(h){h[h.INITIAL=0]="INITIAL",h[h.BEFORE_HTML=1]="BEFORE_HTML",h[h.BEFORE_HEAD=2]="BEFORE_HEAD",h[h.IN_HEAD=3]="IN_HEAD",h[h.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",h[h.AFTER_HEAD=5]="AFTER_HEAD",h[h.IN_BODY=6]="IN_BODY",h[h.TEXT=7]="TEXT",h[h.IN_TABLE=8]="IN_TABLE",h[h.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",h[h.IN_CAPTION=10]="IN_CAPTION",h[h.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",h[h.IN_TABLE_BODY=12]="IN_TABLE_BODY",h[h.IN_ROW=13]="IN_ROW",h[h.IN_CELL=14]="IN_CELL",h[h.IN_SELECT=15]="IN_SELECT",h[h.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",h[h.IN_TEMPLATE=17]="IN_TEMPLATE",h[h.AFTER_BODY=18]="AFTER_BODY",h[h.IN_FRAMESET=19]="IN_FRAMESET",h[h.AFTER_FRAMESET=20]="AFTER_FRAMESET",h[h.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",h[h.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(Nt||(Nt={}));const Nr={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},ii=new Set([j.TABLE,j.TBODY,j.TFOOT,j.THEAD,j.TR]),ce={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:jt,onParseError:null};class br{constructor(m,W,Ve=null,_t=null){this.fragmentContext=Ve,this.scriptHandler=_t,this.currentToken=null,this.stopped=!1,this.insertionMode=Nt.INITIAL,this.originalInsertionMode=Nt.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options=Eo(Eo({},ce),m),this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=W!=null?W:this.treeAdapter.createDocument(),this.tokenizer=new Fn(this.options,this),this.activeFormattingElements=new on(this.treeAdapter),this.fragmentContextID=Ve?tr(this.treeAdapter.getTagName(Ve)):j.UNKNOWN,this._setContextModes(Ve!=null?Ve:this.document,this.fragmentContextID),this.openElements=new Zt(this.document,this.treeAdapter,this)}static parse(m,W){const Ve=new this(W);return Ve.tokenizer.write(m,!0),Ve.document}static getFragmentParser(m,W){const Ve=Eo(Eo({},ce),W);m!=null||(m=Ve.treeAdapter.createElement(tt.TEMPLATE,kt.HTML,[]));const _t=Ve.treeAdapter.createElement("documentmock",kt.HTML,[]),Mn=new this(Ve,_t,m);return Mn.fragmentContextID===j.TEMPLATE&&Mn.tmplInsertionModeStack.unshift(Nt.IN_TEMPLATE),Mn._initTokenizerForFragmentParsing(),Mn._insertFakeRootElement(),Mn._resetInsertionMode(),Mn._findFormInFragmentContext(),Mn}getFragment(){const m=this.treeAdapter.getFirstChild(this.document),W=this.treeAdapter.createDocumentFragment();return this._adoptNodes(m,W),W}_err(m,W,Ve){var _t;if(!this.onParseError)return;const Mn=(_t=m.location)!==null&&_t!==void 0?_t:Nr,li={code:W,startLine:Mn.startLine,startCol:Mn.startCol,startOffset:Mn.startOffset,endLine:Ve?Mn.startLine:Mn.endLine,endCol:Ve?Mn.startCol:Mn.endCol,endOffset:Ve?Mn.startOffset:Mn.endOffset};this.onParseError(li)}onItemPush(m,W,Ve){var _t,Mn;(Mn=(_t=this.treeAdapter).onItemPush)===null||Mn===void 0||Mn.call(_t,m),Ve&&this.openElements.stackTop>0&&this._setContextModes(m,W)}onItemPop(m,W){var Ve,_t;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(m,this.currentToken),(_t=(Ve=this.treeAdapter).onItemPop)===null||_t===void 0||_t.call(Ve,m,this.openElements.current),W){let Mn,li;this.openElements.stackTop===0&&this.fragmentContext?(Mn=this.fragmentContext,li=this.fragmentContextID):{current:Mn,currentTagId:li}=this.openElements,this._setContextModes(Mn,li)}}_setContextModes(m,W){const Ve=m===this.document||this.treeAdapter.getNamespaceURI(m)===kt.HTML;this.currentNotInHTML=!Ve,this.tokenizer.inForeignNode=!Ve&&!this._isIntegrationPoint(W,m)}_switchToTextParsing(m,W){this._insertElement(m,kt.HTML),this.tokenizer.state=W,this.originalInsertionMode=this.insertionMode,this.insertionMode=Nt.TEXT}switchToPlaintextParsing(){this.insertionMode=Nt.TEXT,this.originalInsertionMode=Nt.IN_BODY,this.tokenizer.state=_i.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let m=this.fragmentContext;for(;m;){if(this.treeAdapter.getTagName(m)===tt.FORM){this.formElement=m;break}m=this.treeAdapter.getParentNode(m)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==kt.HTML))switch(this.fragmentContextID){case j.TITLE:case j.TEXTAREA:{this.tokenizer.state=_i.RCDATA;break}case j.STYLE:case j.XMP:case j.IFRAME:case j.NOEMBED:case j.NOFRAMES:case j.NOSCRIPT:{this.tokenizer.state=_i.RAWTEXT;break}case j.SCRIPT:{this.tokenizer.state=_i.SCRIPT_DATA;break}case j.PLAINTEXT:{this.tokenizer.state=_i.PLAINTEXT;break}default:}}_setDocumentType(m){const W=m.name||"",Ve=m.publicId||"",_t=m.systemId||"";if(this.treeAdapter.setDocumentType(this.document,W,Ve,_t),m.location){const li=this.treeAdapter.getChildNodes(this.document).find(ri=>this.treeAdapter.isDocumentTypeNode(ri));li&&this.treeAdapter.setNodeSourceCodeLocation(li,m.location)}}_attachElementToTree(m,W){if(this.options.sourceCodeLocationInfo){const Ve=W&&cd(Eo({},W),{startTag:W});this.treeAdapter.setNodeSourceCodeLocation(m,Ve)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(m);else{const Ve=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(Ve,m)}}_appendElement(m,W){const Ve=this.treeAdapter.createElement(m.tagName,W,m.attrs);this._attachElementToTree(Ve,m.location)}_insertElement(m,W){const Ve=this.treeAdapter.createElement(m.tagName,W,m.attrs);this._attachElementToTree(Ve,m.location),this.openElements.push(Ve,m.tagID)}_insertFakeElement(m,W){const Ve=this.treeAdapter.createElement(m,kt.HTML,[]);this._attachElementToTree(Ve,null),this.openElements.push(Ve,W)}_insertTemplate(m){const W=this.treeAdapter.createElement(m.tagName,kt.HTML,m.attrs),Ve=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(W,Ve),this._attachElementToTree(W,m.location),this.openElements.push(W,m.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ve,null)}_insertFakeRootElement(){const m=this.treeAdapter.createElement(tt.HTML,kt.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(m,null),this.treeAdapter.appendChild(this.openElements.current,m),this.openElements.push(m,j.HTML)}_appendCommentNode(m,W){const Ve=this.treeAdapter.createCommentNode(m.data);this.treeAdapter.appendChild(W,Ve),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(Ve,m.location)}_insertCharacters(m){let W,Ve;if(this._shouldFosterParentOnInsertion()?({parent:W,beforeElement:Ve}=this._findFosterParentingLocation(),Ve?this.treeAdapter.insertTextBefore(W,m.chars,Ve):this.treeAdapter.insertText(W,m.chars)):(W=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(W,m.chars)),!m.location)return;const _t=this.treeAdapter.getChildNodes(W),Mn=Ve?_t.lastIndexOf(Ve):_t.length,li=_t[Mn-1];if(this.treeAdapter.getNodeSourceCodeLocation(li)){const{endLine:Wn,endCol:Bi,endOffset:cr}=m.location;this.treeAdapter.updateNodeSourceCodeLocation(li,{endLine:Wn,endCol:Bi,endOffset:cr})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(li,m.location)}_adoptNodes(m,W){for(let Ve=this.treeAdapter.getFirstChild(m);Ve;Ve=this.treeAdapter.getFirstChild(m))this.treeAdapter.detachNode(Ve),this.treeAdapter.appendChild(W,Ve)}_setEndLocation(m,W){if(this.treeAdapter.getNodeSourceCodeLocation(m)&&W.location){const Ve=W.location,_t=this.treeAdapter.getTagName(m),Mn=W.type===ln.END_TAG&&_t===W.tagName?{endTag:Eo({},Ve),endLine:Ve.endLine,endCol:Ve.endCol,endOffset:Ve.endOffset}:{endLine:Ve.startLine,endCol:Ve.startCol,endOffset:Ve.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(m,Mn)}}shouldProcessStartTagTokenInForeignContent(m){if(!this.currentNotInHTML)return!1;let W,Ve;return this.openElements.stackTop===0&&this.fragmentContext?(W=this.fragmentContext,Ve=this.fragmentContextID):{current:W,currentTagId:Ve}=this.openElements,m.tagID===j.SVG&&this.treeAdapter.getTagName(W)===tt.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(W)===kt.MATHML?!1:this.tokenizer.inForeignNode||(m.tagID===j.MGLYPH||m.tagID===j.MALIGNMARK)&&!this._isIntegrationPoint(Ve,W,kt.HTML)}_processToken(m){switch(m.type){case ln.CHARACTER:{this.onCharacter(m);break}case ln.NULL_CHARACTER:{this.onNullCharacter(m);break}case ln.COMMENT:{this.onComment(m);break}case ln.DOCTYPE:{this.onDoctype(m);break}case ln.START_TAG:{this._processStartTag(m);break}case ln.END_TAG:{this.onEndTag(m);break}case ln.EOF:{this.onEof(m);break}case ln.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(m);break}}}_isIntegrationPoint(m,W,Ve){const _t=this.treeAdapter.getNamespaceURI(W),Mn=this.treeAdapter.getAttrList(W);return fo(m,_t,Mn,Ve)}_reconstructActiveFormattingElements(){const m=this.activeFormattingElements.entries.length;if(m){const W=this.activeFormattingElements.entries.findIndex(_t=>_t.type===Mt.Marker||this.openElements.contains(_t.element)),Ve=W<0?m-1:W-1;for(let _t=Ve;_t>=0;_t--){const Mn=this.activeFormattingElements.entries[_t];this._insertElement(Mn.token,this.treeAdapter.getNamespaceURI(Mn.element)),Mn.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Nt.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(j.P),this.openElements.popUntilTagNamePopped(j.P)}_resetInsertionMode(){for(let m=this.openElements.stackTop;m>=0;m--)switch(m===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[m]){case j.TR:{this.insertionMode=Nt.IN_ROW;return}case j.TBODY:case j.THEAD:case j.TFOOT:{this.insertionMode=Nt.IN_TABLE_BODY;return}case j.CAPTION:{this.insertionMode=Nt.IN_CAPTION;return}case j.COLGROUP:{this.insertionMode=Nt.IN_COLUMN_GROUP;return}case j.TABLE:{this.insertionMode=Nt.IN_TABLE;return}case j.BODY:{this.insertionMode=Nt.IN_BODY;return}case j.FRAMESET:{this.insertionMode=Nt.IN_FRAMESET;return}case j.SELECT:{this._resetInsertionModeForSelect(m);return}case j.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case j.HTML:{this.insertionMode=this.headElement?Nt.AFTER_HEAD:Nt.BEFORE_HEAD;return}case j.TD:case j.TH:{if(m>0){this.insertionMode=Nt.IN_CELL;return}break}case j.HEAD:{if(m>0){this.insertionMode=Nt.IN_HEAD;return}break}}this.insertionMode=Nt.IN_BODY}_resetInsertionModeForSelect(m){if(m>0)for(let W=m-1;W>0;W--){const Ve=this.openElements.tagIDs[W];if(Ve===j.TEMPLATE)break;if(Ve===j.TABLE){this.insertionMode=Nt.IN_SELECT_IN_TABLE;return}}this.insertionMode=Nt.IN_SELECT}_isElementCausesFosterParenting(m){return ii.has(m)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let m=this.openElements.stackTop;m>=0;m--){const W=this.openElements.items[m];switch(this.openElements.tagIDs[m]){case j.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(W)===kt.HTML)return{parent:this.treeAdapter.getTemplateContent(W),beforeElement:null};break}case j.TABLE:{const Ve=this.treeAdapter.getParentNode(W);return Ve?{parent:Ve,beforeElement:W}:{parent:this.openElements.items[m-1],beforeElement:null}}default:}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(m){const W=this._findFosterParentingLocation();W.beforeElement?this.treeAdapter.insertBefore(W.parent,m,W.beforeElement):this.treeAdapter.appendChild(W.parent,m)}_isSpecialElement(m,W){const Ve=this.treeAdapter.getNamespaceURI(m);return Ti[Ve].has(W)}onCharacter(m){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){xo(this,m);return}switch(this.insertionMode){case Nt.INITIAL:{mi(this,m);break}case Nt.BEFORE_HTML:{Fo(this,m);break}case Nt.BEFORE_HEAD:{da(this,m);break}case Nt.IN_HEAD:{Ko(this,m);break}case Nt.IN_HEAD_NO_SCRIPT:{wl(this,m);break}case Nt.AFTER_HEAD:{oo(this,m);break}case Nt.IN_BODY:case Nt.IN_CAPTION:case Nt.IN_CELL:case Nt.IN_TEMPLATE:{Or(this,m);break}case Nt.TEXT:case Nt.IN_SELECT:case Nt.IN_SELECT_IN_TABLE:{this._insertCharacters(m);break}case Nt.IN_TABLE:case Nt.IN_TABLE_BODY:case Nt.IN_ROW:{ls(this,m);break}case Nt.IN_TABLE_TEXT:{Bu(this,m);break}case Nt.IN_COLUMN_GROUP:{Gr(this,m);break}case Nt.AFTER_BODY:{Tu(this,m);break}case Nt.AFTER_AFTER_BODY:{el(this,m);break}default:}}onNullCharacter(m){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){eu(this,m);return}switch(this.insertionMode){case Nt.INITIAL:{mi(this,m);break}case Nt.BEFORE_HTML:{Fo(this,m);break}case Nt.BEFORE_HEAD:{da(this,m);break}case Nt.IN_HEAD:{Ko(this,m);break}case Nt.IN_HEAD_NO_SCRIPT:{wl(this,m);break}case Nt.AFTER_HEAD:{oo(this,m);break}case Nt.TEXT:{this._insertCharacters(m);break}case Nt.IN_TABLE:case Nt.IN_TABLE_BODY:case Nt.IN_ROW:{ls(this,m);break}case Nt.IN_COLUMN_GROUP:{Gr(this,m);break}case Nt.AFTER_BODY:{Tu(this,m);break}case Nt.AFTER_AFTER_BODY:{el(this,m);break}default:}}onComment(m){if(this.skipNextNewLine=!1,this.currentNotInHTML){zi(this,m);return}switch(this.insertionMode){case Nt.INITIAL:case Nt.BEFORE_HTML:case Nt.BEFORE_HEAD:case Nt.IN_HEAD:case Nt.IN_HEAD_NO_SCRIPT:case Nt.AFTER_HEAD:case Nt.IN_BODY:case Nt.IN_TABLE:case Nt.IN_CAPTION:case Nt.IN_COLUMN_GROUP:case Nt.IN_TABLE_BODY:case Nt.IN_ROW:case Nt.IN_CELL:case Nt.IN_SELECT:case Nt.IN_SELECT_IN_TABLE:case Nt.IN_TEMPLATE:case Nt.IN_FRAMESET:case Nt.AFTER_FRAMESET:{zi(this,m);break}case Nt.IN_TABLE_TEXT:{Al(this,m);break}case Nt.AFTER_BODY:{Pr(this,m);break}case Nt.AFTER_AFTER_BODY:case Nt.AFTER_AFTER_FRAMESET:{Br(this,m);break}default:}}onDoctype(m){switch(this.skipNextNewLine=!1,this.insertionMode){case Nt.INITIAL:{Po(this,m);break}case Nt.BEFORE_HEAD:case Nt.IN_HEAD:case Nt.IN_HEAD_NO_SCRIPT:case Nt.AFTER_HEAD:{this._err(m,yt.misplacedDoctype);break}case Nt.IN_TABLE_TEXT:{Al(this,m);break}default:}}onStartTag(m){this.skipNextNewLine=!1,this.currentToken=m,this._processStartTag(m),m.selfClosing&&!m.ackSelfClosing&&this._err(m,yt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(m){this.shouldProcessStartTagTokenInForeignContent(m)?Ec(this,m):this._startTagOutsideForeignContent(m)}_startTagOutsideForeignContent(m){switch(this.insertionMode){case Nt.INITIAL:{mi(this,m);break}case Nt.BEFORE_HTML:{ws(this,m);break}case Nt.BEFORE_HEAD:{As(this,m);break}case Nt.IN_HEAD:{vs(this,m);break}case Nt.IN_HEAD_NO_SCRIPT:{Ht(this,m);break}case Nt.AFTER_HEAD:{Cl(this,m);break}case Nt.IN_BODY:{Zo(this,m);break}case Nt.IN_TABLE:{jl(this,m);break}case Nt.IN_TABLE_TEXT:{Al(this,m);break}case Nt.IN_CAPTION:{xr(this,m);break}case Nt.IN_COLUMN_GROUP:{Qs(this,m);break}case Nt.IN_TABLE_BODY:{Ts(this,m);break}case Nt.IN_ROW:{_o(this,m);break}case Nt.IN_CELL:{Hs(this,m);break}case Nt.IN_SELECT:{uo(this,m);break}case Nt.IN_SELECT_IN_TABLE:{io(this,m);break}case Nt.IN_TEMPLATE:{os(this,m);break}case Nt.AFTER_BODY:{cu(this,m);break}case Nt.IN_FRAMESET:{ao(this,m);break}case Nt.AFTER_FRAMESET:{Ku(this,m);break}case Nt.AFTER_AFTER_BODY:{Sc(this,m);break}case Nt.AFTER_AFTER_FRAMESET:{Gl(this,m);break}default:}}onEndTag(m){this.skipNextNewLine=!1,this.currentToken=m,this.currentNotInHTML?Wl(this,m):this._endTagOutsideForeignContent(m)}_endTagOutsideForeignContent(m){switch(this.insertionMode){case Nt.INITIAL:{mi(this,m);break}case Nt.BEFORE_HTML:{as(this,m);break}case Nt.BEFORE_HEAD:{Xs(this,m);break}case Nt.IN_HEAD:{Ua(this,m);break}case Nt.IN_HEAD_NO_SCRIPT:{Ds(this,m);break}case Nt.AFTER_HEAD:{Jr(this,m);break}case Nt.IN_BODY:{rs(this,m);break}case Nt.TEXT:{$l(this,m);break}case Nt.IN_TABLE:{Pa(this,m);break}case Nt.IN_TABLE_TEXT:{Al(this,m);break}case Nt.IN_CAPTION:{Ta(this,m);break}case Nt.IN_COLUMN_GROUP:{Wo(this,m);break}case Nt.IN_TABLE_BODY:{Na(this,m);break}case Nt.IN_ROW:{Ma(this,m);break}case Nt.IN_CELL:{uu(this,m);break}case Nt.IN_SELECT:{sa(this,m);break}case Nt.IN_SELECT_IN_TABLE:{zo(this,m);break}case Nt.IN_TEMPLATE:{ps(this,m);break}case Nt.AFTER_BODY:{or(this,m);break}case Nt.IN_FRAMESET:{Vu(this,m);break}case Nt.AFTER_FRAMESET:{Yu(this,m);break}case Nt.AFTER_AFTER_BODY:{el(this,m);break}default:}}onEof(m){switch(this.insertionMode){case Nt.INITIAL:{mi(this,m);break}case Nt.BEFORE_HTML:{Fo(this,m);break}case Nt.BEFORE_HEAD:{da(this,m);break}case Nt.IN_HEAD:{Ko(this,m);break}case Nt.IN_HEAD_NO_SCRIPT:{wl(this,m);break}case Nt.AFTER_HEAD:{oo(this,m);break}case Nt.IN_BODY:case Nt.IN_TABLE:case Nt.IN_CAPTION:case Nt.IN_COLUMN_GROUP:case Nt.IN_TABLE_BODY:case Nt.IN_ROW:case Nt.IN_CELL:case Nt.IN_SELECT:case Nt.IN_SELECT_IN_TABLE:{fs(this,m);break}case Nt.TEXT:{$a(this,m);break}case Nt.IN_TABLE_TEXT:{Al(this,m);break}case Nt.IN_TEMPLATE:{wo(this,m);break}case Nt.AFTER_BODY:case Nt.IN_FRAMESET:case Nt.AFTER_FRAMESET:case Nt.AFTER_AFTER_BODY:case Nt.AFTER_AFTER_FRAMESET:{no(this,m);break}default:}}onWhitespaceCharacter(m){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,m.chars.charCodeAt(0)===H.LINE_FEED)){if(m.chars.length===1)return;m.chars=m.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(m);return}switch(this.insertionMode){case Nt.IN_HEAD:case Nt.IN_HEAD_NO_SCRIPT:case Nt.AFTER_HEAD:case Nt.TEXT:case Nt.IN_COLUMN_GROUP:case Nt.IN_SELECT:case Nt.IN_SELECT_IN_TABLE:case Nt.IN_FRAMESET:case Nt.AFTER_FRAMESET:{this._insertCharacters(m);break}case Nt.IN_BODY:case Nt.IN_CAPTION:case Nt.IN_CELL:case Nt.IN_TEMPLATE:case Nt.AFTER_BODY:case Nt.AFTER_AFTER_BODY:case Nt.AFTER_AFTER_FRAMESET:{bo(this,m);break}case Nt.IN_TABLE:case Nt.IN_TABLE_BODY:case Nt.IN_ROW:{ls(this,m);break}case Nt.IN_TABLE_TEXT:{Wa(this,m);break}default:}}}function to(h,m){let W=h.activeFormattingElements.getElementEntryInScopeWithTagName(m.tagName);return W?h.openElements.contains(W.element)?h.openElements.hasInScope(m.tagID)||(W=null):(h.activeFormattingElements.removeEntry(W),W=null):is(h,m),W}function mr(h,m){let W=null,Ve=h.openElements.stackTop;for(;Ve>=0;Ve--){const _t=h.openElements.items[Ve];if(_t===m.element)break;h._isSpecialElement(_t,h.openElements.tagIDs[Ve])&&(W=_t)}return W||(h.openElements.shortenToLength(Ve<0?0:Ve),h.activeFormattingElements.removeEntry(m)),W}function Xr(h,m,W){let Ve=m,_t=h.openElements.getCommonAncestor(m);for(let Mn=0,li=_t;li!==W;Mn++,li=_t){_t=h.openElements.getCommonAncestor(li);const ri=h.activeFormattingElements.getElementEntry(li),Wn=ri&&Mn>=Li;!ri||Wn?(Wn&&h.activeFormattingElements.removeEntry(ri),h.openElements.remove(li)):(li=qi(h,ri),Ve===m&&(h.activeFormattingElements.bookmark=ri),h.treeAdapter.detachNode(Ve),h.treeAdapter.appendChild(li,Ve),Ve=li)}return Ve}function qi(h,m){const W=h.treeAdapter.getNamespaceURI(m.element),Ve=h.treeAdapter.createElement(m.token.tagName,W,m.token.attrs);return h.openElements.replace(m.element,Ve),m.element=Ve,Ve}function zr(h,m,W){const Ve=h.treeAdapter.getTagName(m),_t=tr(Ve);if(h._isElementCausesFosterParenting(_t))h._fosterParentElement(W);else{const Mn=h.treeAdapter.getNamespaceURI(m);_t===j.TEMPLATE&&Mn===kt.HTML&&(m=h.treeAdapter.getTemplateContent(m)),h.treeAdapter.appendChild(m,W)}}function Ri(h,m,W){const Ve=h.treeAdapter.getNamespaceURI(W.element),{token:_t}=W,Mn=h.treeAdapter.createElement(_t.tagName,Ve,_t.attrs);h._adoptNodes(m,Mn),h.treeAdapter.appendChild(m,Mn),h.activeFormattingElements.insertElementAfterBookmark(Mn,_t),h.activeFormattingElements.removeEntry(W),h.openElements.remove(W.element),h.openElements.insertAfter(m,Mn,_t.tagID)}function $i(h,m){for(let W=0;W<Fi;W++){const Ve=to(h,m);if(!Ve)break;const _t=mr(h,Ve);if(!_t)break;h.activeFormattingElements.bookmark=Ve;const Mn=Xr(h,_t,Ve.element),li=h.openElements.getCommonAncestor(Ve.element);h.treeAdapter.detachNode(Mn),li&&zr(h,li,Mn),Ri(h,_t,Ve)}}function zi(h,m){h._appendCommentNode(m,h.openElements.currentTmplContentOrNode)}function Pr(h,m){h._appendCommentNode(m,h.openElements.items[0])}function Br(h,m){h._appendCommentNode(m,h.document)}function no(h,m){if(h.stopped=!0,m.location){const W=h.fragmentContext?0:2;for(let Ve=h.openElements.stackTop;Ve>=W;Ve--)h._setEndLocation(h.openElements.items[Ve],m);if(!h.fragmentContext&&h.openElements.stackTop>=0){const Ve=h.openElements.items[0],_t=h.treeAdapter.getNodeSourceCodeLocation(Ve);if(_t&&!_t.endTag&&(h._setEndLocation(Ve,m),h.openElements.stackTop>=1)){const Mn=h.openElements.items[1],li=h.treeAdapter.getNodeSourceCodeLocation(Mn);li&&!li.endTag&&h._setEndLocation(Mn,m)}}}}function Po(h,m){h._setDocumentType(m);const W=m.forceQuirks?Jn.QUIRKS:Ki(m);qt(m)||h._err(m,yt.nonConformingDoctype),h.treeAdapter.setDocumentMode(h.document,W),h.insertionMode=Nt.BEFORE_HTML}function mi(h,m){h._err(m,yt.missingDoctype,!0),h.treeAdapter.setDocumentMode(h.document,Jn.QUIRKS),h.insertionMode=Nt.BEFORE_HTML,h._processToken(m)}function ws(h,m){m.tagID===j.HTML?(h._insertElement(m,kt.HTML),h.insertionMode=Nt.BEFORE_HEAD):Fo(h,m)}function as(h,m){const W=m.tagID;(W===j.HTML||W===j.HEAD||W===j.BODY||W===j.BR)&&Fo(h,m)}function Fo(h,m){h._insertFakeRootElement(),h.insertionMode=Nt.BEFORE_HEAD,h._processToken(m)}function As(h,m){switch(m.tagID){case j.HTML:{Zo(h,m);break}case j.HEAD:{h._insertElement(m,kt.HTML),h.headElement=h.openElements.current,h.insertionMode=Nt.IN_HEAD;break}default:da(h,m)}}function Xs(h,m){const W=m.tagID;W===j.HEAD||W===j.BODY||W===j.HTML||W===j.BR?da(h,m):h._err(m,yt.endTagWithoutMatchingOpenElement)}function da(h,m){h._insertFakeElement(tt.HEAD,j.HEAD),h.headElement=h.openElements.current,h.insertionMode=Nt.IN_HEAD,h._processToken(m)}function vs(h,m){switch(m.tagID){case j.HTML:{Zo(h,m);break}case j.BASE:case j.BASEFONT:case j.BGSOUND:case j.LINK:case j.META:{h._appendElement(m,kt.HTML),m.ackSelfClosing=!0;break}case j.TITLE:{h._switchToTextParsing(m,_i.RCDATA);break}case j.NOSCRIPT:{h.options.scriptingEnabled?h._switchToTextParsing(m,_i.RAWTEXT):(h._insertElement(m,kt.HTML),h.insertionMode=Nt.IN_HEAD_NO_SCRIPT);break}case j.NOFRAMES:case j.STYLE:{h._switchToTextParsing(m,_i.RAWTEXT);break}case j.SCRIPT:{h._switchToTextParsing(m,_i.SCRIPT_DATA);break}case j.TEMPLATE:{h._insertTemplate(m),h.activeFormattingElements.insertMarker(),h.framesetOk=!1,h.insertionMode=Nt.IN_TEMPLATE,h.tmplInsertionModeStack.unshift(Nt.IN_TEMPLATE);break}case j.HEAD:{h._err(m,yt.misplacedStartTagForHeadElement);break}default:Ko(h,m)}}function Ua(h,m){switch(m.tagID){case j.HEAD:{h.openElements.pop(),h.insertionMode=Nt.AFTER_HEAD;break}case j.BODY:case j.BR:case j.HTML:{Ko(h,m);break}case j.TEMPLATE:{Ls(h,m);break}default:h._err(m,yt.endTagWithoutMatchingOpenElement)}}function Ls(h,m){h.openElements.tmplCount>0?(h.openElements.generateImpliedEndTagsThoroughly(),h.openElements.currentTagId!==j.TEMPLATE&&h._err(m,yt.closingOfElementWithOpenChildElements),h.openElements.popUntilTagNamePopped(j.TEMPLATE),h.activeFormattingElements.clearToLastMarker(),h.tmplInsertionModeStack.shift(),h._resetInsertionMode()):h._err(m,yt.endTagWithoutMatchingOpenElement)}function Ko(h,m){h.openElements.pop(),h.insertionMode=Nt.AFTER_HEAD,h._processToken(m)}function Ht(h,m){switch(m.tagID){case j.HTML:{Zo(h,m);break}case j.BASEFONT:case j.BGSOUND:case j.HEAD:case j.LINK:case j.META:case j.NOFRAMES:case j.STYLE:{vs(h,m);break}case j.NOSCRIPT:{h._err(m,yt.nestedNoscriptInHead);break}default:wl(h,m)}}function Ds(h,m){switch(m.tagID){case j.NOSCRIPT:{h.openElements.pop(),h.insertionMode=Nt.IN_HEAD;break}case j.BR:{wl(h,m);break}default:h._err(m,yt.endTagWithoutMatchingOpenElement)}}function wl(h,m){const W=m.type===ln.EOF?yt.openElementsLeftAfterEof:yt.disallowedContentInNoscriptInHead;h._err(m,W),h.openElements.pop(),h.insertionMode=Nt.IN_HEAD,h._processToken(m)}function Cl(h,m){switch(m.tagID){case j.HTML:{Zo(h,m);break}case j.BODY:{h._insertElement(m,kt.HTML),h.framesetOk=!1,h.insertionMode=Nt.IN_BODY;break}case j.FRAMESET:{h._insertElement(m,kt.HTML),h.insertionMode=Nt.IN_FRAMESET;break}case j.BASE:case j.BASEFONT:case j.BGSOUND:case j.LINK:case j.META:case j.NOFRAMES:case j.SCRIPT:case j.STYLE:case j.TEMPLATE:case j.TITLE:{h._err(m,yt.abandonedHeadElementChild),h.openElements.push(h.headElement,j.HEAD),vs(h,m),h.openElements.remove(h.headElement);break}case j.HEAD:{h._err(m,yt.misplacedStartTagForHeadElement);break}default:oo(h,m)}}function Jr(h,m){switch(m.tagID){case j.BODY:case j.HTML:case j.BR:{oo(h,m);break}case j.TEMPLATE:{Ls(h,m);break}default:h._err(m,yt.endTagWithoutMatchingOpenElement)}}function oo(h,m){h._insertFakeElement(tt.BODY,j.BODY),h.insertionMode=Nt.IN_BODY,ts(h,m)}function ts(h,m){switch(m.type){case ln.CHARACTER:{Or(h,m);break}case ln.WHITESPACE_CHARACTER:{bo(h,m);break}case ln.COMMENT:{zi(h,m);break}case ln.START_TAG:{Zo(h,m);break}case ln.END_TAG:{rs(h,m);break}case ln.EOF:{fs(h,m);break}default:}}function bo(h,m){h._reconstructActiveFormattingElements(),h._insertCharacters(m)}function Or(h,m){h._reconstructActiveFormattingElements(),h._insertCharacters(m),h.framesetOk=!1}function po(h,m){h.openElements.tmplCount===0&&h.treeAdapter.adoptAttributes(h.openElements.items[0],m.attrs)}function va(h,m){const W=h.openElements.tryPeekProperlyNestedBodyElement();W&&h.openElements.tmplCount===0&&(h.framesetOk=!1,h.treeAdapter.adoptAttributes(W,m.attrs))}function gr(h,m){const W=h.openElements.tryPeekProperlyNestedBodyElement();h.framesetOk&&W&&(h.treeAdapter.detachNode(W),h.openElements.popAllUpToHtmlElement(),h._insertElement(m,kt.HTML),h.insertionMode=Nt.IN_FRAMESET)}function xn(h,m){h.openElements.hasInButtonScope(j.P)&&h._closePElement(),h._insertElement(m,kt.HTML)}function ur(h,m){h.openElements.hasInButtonScope(j.P)&&h._closePElement(),Er.has(h.openElements.currentTagId)&&h.openElements.pop(),h._insertElement(m,kt.HTML)}function vi(h,m){h.openElements.hasInButtonScope(j.P)&&h._closePElement(),h._insertElement(m,kt.HTML),h.skipNextNewLine=!0,h.framesetOk=!1}function Bo(h,m){const W=h.openElements.tmplCount>0;(!h.formElement||W)&&(h.openElements.hasInButtonScope(j.P)&&h._closePElement(),h._insertElement(m,kt.HTML),W||(h.formElement=h.openElements.current))}function ys(h,m){h.framesetOk=!1;const W=m.tagID;for(let Ve=h.openElements.stackTop;Ve>=0;Ve--){const _t=h.openElements.tagIDs[Ve];if(W===j.LI&&_t===j.LI||(W===j.DD||W===j.DT)&&(_t===j.DD||_t===j.DT)){h.openElements.generateImpliedEndTagsWithExclusion(_t),h.openElements.popUntilTagNamePopped(_t);break}if(_t!==j.ADDRESS&&_t!==j.DIV&&_t!==j.P&&h._isSpecialElement(h.openElements.items[Ve],_t))break}h.openElements.hasInButtonScope(j.P)&&h._closePElement(),h._insertElement(m,kt.HTML)}function oa(h,m){h.openElements.hasInButtonScope(j.P)&&h._closePElement(),h._insertElement(m,kt.HTML),h.tokenizer.state=_i.PLAINTEXT}function Da(h,m){h.openElements.hasInScope(j.BUTTON)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(j.BUTTON)),h._reconstructActiveFormattingElements(),h._insertElement(m,kt.HTML),h.framesetOk=!1}function Ia(h,m){const W=h.activeFormattingElements.getElementEntryInScopeWithTagName(tt.A);W&&($i(h,m),h.openElements.remove(W.element),h.activeFormattingElements.removeEntry(W)),h._reconstructActiveFormattingElements(),h._insertElement(m,kt.HTML),h.activeFormattingElements.pushElement(h.openElements.current,m)}function ui(h,m){h._reconstructActiveFormattingElements(),h._insertElement(m,kt.HTML),h.activeFormattingElements.pushElement(h.openElements.current,m)}function Di(h,m){h._reconstructActiveFormattingElements(),h.openElements.hasInScope(j.NOBR)&&($i(h,m),h._reconstructActiveFormattingElements()),h._insertElement(m,kt.HTML),h.activeFormattingElements.pushElement(h.openElements.current,m)}function Yo(h,m){h._reconstructActiveFormattingElements(),h._insertElement(m,kt.HTML),h.activeFormattingElements.insertMarker(),h.framesetOk=!1}function ya(h,m){h.treeAdapter.getDocumentMode(h.document)!==Jn.QUIRKS&&h.openElements.hasInButtonScope(j.P)&&h._closePElement(),h._insertElement(m,kt.HTML),h.framesetOk=!1,h.insertionMode=Nt.IN_TABLE}function Go(h,m){h._reconstructActiveFormattingElements(),h._appendElement(m,kt.HTML),h.framesetOk=!1,m.ackSelfClosing=!0}function Us(h){const m=Tn(h,Hn.TYPE);return m!=null&&m.toLowerCase()===tn}function vr(h,m){h._reconstructActiveFormattingElements(),h._appendElement(m,kt.HTML),Us(m)||(h.framesetOk=!1),m.ackSelfClosing=!0}function lu(h,m){h._appendElement(m,kt.HTML),m.ackSelfClosing=!0}function wa(h,m){h.openElements.hasInButtonScope(j.P)&&h._closePElement(),h._appendElement(m,kt.HTML),h.framesetOk=!1,m.ackSelfClosing=!0}function Ca(h,m){m.tagName=tt.IMG,m.tagID=j.IMG,Go(h,m)}function Oo(h,m){h._insertElement(m,kt.HTML),h.skipNextNewLine=!0,h.tokenizer.state=_i.RCDATA,h.originalInsertionMode=h.insertionMode,h.framesetOk=!1,h.insertionMode=Nt.TEXT}function ll(h,m){h.openElements.hasInButtonScope(j.P)&&h._closePElement(),h._reconstructActiveFormattingElements(),h.framesetOk=!1,h._switchToTextParsing(m,_i.RAWTEXT)}function Tl(h,m){h.framesetOk=!1,h._switchToTextParsing(m,_i.RAWTEXT)}function ks(h,m){h._switchToTextParsing(m,_i.RAWTEXT)}function fa(h,m){h._reconstructActiveFormattingElements(),h._insertElement(m,kt.HTML),h.framesetOk=!1,h.insertionMode=h.insertionMode===Nt.IN_TABLE||h.insertionMode===Nt.IN_CAPTION||h.insertionMode===Nt.IN_TABLE_BODY||h.insertionMode===Nt.IN_ROW||h.insertionMode===Nt.IN_CELL?Nt.IN_SELECT_IN_TABLE:Nt.IN_SELECT}function Nl(h,m){h.openElements.currentTagId===j.OPTION&&h.openElements.pop(),h._reconstructActiveFormattingElements(),h._insertElement(m,kt.HTML)}function Ao(h,m){h.openElements.hasInScope(j.RUBY)&&h.openElements.generateImpliedEndTags(),h._insertElement(m,kt.HTML)}function zl(h,m){h.openElements.hasInScope(j.RUBY)&&h.openElements.generateImpliedEndTagsWithExclusion(j.RTC),h._insertElement(m,kt.HTML)}function Ul(h,m){h._reconstructActiveFormattingElements(),Xt(m),Yt(m),m.selfClosing?h._appendElement(m,kt.MATHML):h._insertElement(m,kt.MATHML),m.ackSelfClosing=!0}function Eu(h,m){h._reconstructActiveFormattingElements(),Ii(m),Yt(m),m.selfClosing?h._appendElement(m,kt.SVG):h._insertElement(m,kt.SVG),m.ackSelfClosing=!0}function Cs(h,m){h._reconstructActiveFormattingElements(),h._insertElement(m,kt.HTML)}function Zo(h,m){switch(m.tagID){case j.I:case j.S:case j.B:case j.U:case j.EM:case j.TT:case j.BIG:case j.CODE:case j.FONT:case j.SMALL:case j.STRIKE:case j.STRONG:{ui(h,m);break}case j.A:{Ia(h,m);break}case j.H1:case j.H2:case j.H3:case j.H4:case j.H5:case j.H6:{ur(h,m);break}case j.P:case j.DL:case j.OL:case j.UL:case j.DIV:case j.DIR:case j.NAV:case j.MAIN:case j.MENU:case j.ASIDE:case j.CENTER:case j.FIGURE:case j.FOOTER:case j.HEADER:case j.HGROUP:case j.DIALOG:case j.DETAILS:case j.ADDRESS:case j.ARTICLE:case j.SEARCH:case j.SECTION:case j.SUMMARY:case j.FIELDSET:case j.BLOCKQUOTE:case j.FIGCAPTION:{xn(h,m);break}case j.LI:case j.DD:case j.DT:{ys(h,m);break}case j.BR:case j.IMG:case j.WBR:case j.AREA:case j.EMBED:case j.KEYGEN:{Go(h,m);break}case j.HR:{wa(h,m);break}case j.RB:case j.RTC:{Ao(h,m);break}case j.RT:case j.RP:{zl(h,m);break}case j.PRE:case j.LISTING:{vi(h,m);break}case j.XMP:{ll(h,m);break}case j.SVG:{Eu(h,m);break}case j.HTML:{po(h,m);break}case j.BASE:case j.LINK:case j.META:case j.STYLE:case j.TITLE:case j.SCRIPT:case j.BGSOUND:case j.BASEFONT:case j.TEMPLATE:{vs(h,m);break}case j.BODY:{va(h,m);break}case j.FORM:{Bo(h,m);break}case j.NOBR:{Di(h,m);break}case j.MATH:{Ul(h,m);break}case j.TABLE:{ya(h,m);break}case j.INPUT:{vr(h,m);break}case j.PARAM:case j.TRACK:case j.SOURCE:{lu(h,m);break}case j.IMAGE:{Ca(h,m);break}case j.BUTTON:{Da(h,m);break}case j.APPLET:case j.OBJECT:case j.MARQUEE:{Yo(h,m);break}case j.IFRAME:{Tl(h,m);break}case j.SELECT:{fa(h,m);break}case j.OPTION:case j.OPTGROUP:{Nl(h,m);break}case j.NOEMBED:case j.NOFRAMES:{ks(h,m);break}case j.FRAMESET:{gr(h,m);break}case j.TEXTAREA:{Oo(h,m);break}case j.NOSCRIPT:{h.options.scriptingEnabled?ks(h,m):Cs(h,m);break}case j.PLAINTEXT:{oa(h,m);break}case j.COL:case j.TH:case j.TD:case j.TR:case j.HEAD:case j.FRAME:case j.TBODY:case j.TFOOT:case j.THEAD:case j.CAPTION:case j.COLGROUP:break;default:Cs(h,m)}}function Ha(h,m){if(h.openElements.hasInScope(j.BODY)&&(h.insertionMode=Nt.AFTER_BODY,h.options.sourceCodeLocationInfo)){const W=h.openElements.tryPeekProperlyNestedBodyElement();W&&h._setEndLocation(W,m)}}function Hi(h,m){h.openElements.hasInScope(j.BODY)&&(h.insertionMode=Nt.AFTER_BODY,or(h,m))}function pa(h,m){const W=m.tagID;h.openElements.hasInScope(W)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(W))}function Hl(h){const m=h.openElements.tmplCount>0,{formElement:W}=h;m||(h.formElement=null),(W||m)&&h.openElements.hasInScope(j.FORM)&&(h.openElements.generateImpliedEndTags(),m?h.openElements.popUntilTagNamePopped(j.FORM):W&&h.openElements.remove(W))}function Lr(h){h.openElements.hasInButtonScope(j.P)||h._insertFakeElement(tt.P,j.P),h._closePElement()}function so(h){h.openElements.hasInListItemScope(j.LI)&&(h.openElements.generateImpliedEndTagsWithExclusion(j.LI),h.openElements.popUntilTagNamePopped(j.LI))}function ns(h,m){const W=m.tagID;h.openElements.hasInScope(W)&&(h.openElements.generateImpliedEndTagsWithExclusion(W),h.openElements.popUntilTagNamePopped(W))}function Xo(h){h.openElements.hasNumberedHeaderInScope()&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilNumberedHeaderPopped())}function jr(h,m){const W=m.tagID;h.openElements.hasInScope(W)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(W),h.activeFormattingElements.clearToLastMarker())}function Qo(h){h._reconstructActiveFormattingElements(),h._insertFakeElement(tt.BR,j.BR),h.openElements.pop(),h.framesetOk=!1}function is(h,m){const W=m.tagName,Ve=m.tagID;for(let _t=h.openElements.stackTop;_t>0;_t--){const Mn=h.openElements.items[_t],li=h.openElements.tagIDs[_t];if(Ve===li&&(Ve!==j.UNKNOWN||h.treeAdapter.getTagName(Mn)===W)){h.openElements.generateImpliedEndTagsWithExclusion(Ve),h.openElements.stackTop>=_t&&h.openElements.shortenToLength(_t);break}if(h._isSpecialElement(Mn,li))break}}function rs(h,m){switch(m.tagID){case j.A:case j.B:case j.I:case j.S:case j.U:case j.EM:case j.TT:case j.BIG:case j.CODE:case j.FONT:case j.NOBR:case j.SMALL:case j.STRIKE:case j.STRONG:{$i(h,m);break}case j.P:{Lr(h);break}case j.DL:case j.UL:case j.OL:case j.DIR:case j.DIV:case j.NAV:case j.PRE:case j.MAIN:case j.MENU:case j.ASIDE:case j.BUTTON:case j.CENTER:case j.FIGURE:case j.FOOTER:case j.HEADER:case j.HGROUP:case j.DIALOG:case j.ADDRESS:case j.ARTICLE:case j.DETAILS:case j.SEARCH:case j.SECTION:case j.SUMMARY:case j.LISTING:case j.FIELDSET:case j.BLOCKQUOTE:case j.FIGCAPTION:{pa(h,m);break}case j.LI:{so(h);break}case j.DD:case j.DT:{ns(h,m);break}case j.H1:case j.H2:case j.H3:case j.H4:case j.H5:case j.H6:{Xo(h);break}case j.BR:{Qo(h);break}case j.BODY:{Ha(h,m);break}case j.HTML:{Hi(h,m);break}case j.FORM:{Hl(h);break}case j.APPLET:case j.OBJECT:case j.MARQUEE:{jr(h,m);break}case j.TEMPLATE:{Ls(h,m);break}default:is(h,m)}}function fs(h,m){h.tmplInsertionModeStack.length>0?wo(h,m):no(h,m)}function $l(h,m){var W;m.tagID===j.SCRIPT&&((W=h.scriptHandler)===null||W===void 0||W.call(h,h.openElements.current)),h.openElements.pop(),h.insertionMode=h.originalInsertionMode}function $a(h,m){h._err(m,yt.eofInElementThatCanContainOnlyText),h.openElements.pop(),h.insertionMode=h.originalInsertionMode,h.onEof(m)}function ls(h,m){if(ii.has(h.openElements.currentTagId))switch(h.pendingCharacterTokens.length=0,h.hasNonWhitespacePendingCharacterToken=!1,h.originalInsertionMode=h.insertionMode,h.insertionMode=Nt.IN_TABLE_TEXT,m.type){case ln.CHARACTER:{Bu(h,m);break}case ln.WHITESPACE_CHARACTER:{Wa(h,m);break}}else Ga(h,m)}function ac(h,m){h.openElements.clearBackToTableContext(),h.activeFormattingElements.insertMarker(),h._insertElement(m,kt.HTML),h.insertionMode=Nt.IN_CAPTION}function lc(h,m){h.openElements.clearBackToTableContext(),h._insertElement(m,kt.HTML),h.insertionMode=Nt.IN_COLUMN_GROUP}function wu(h,m){h.openElements.clearBackToTableContext(),h._insertFakeElement(tt.COLGROUP,j.COLGROUP),h.insertionMode=Nt.IN_COLUMN_GROUP,Qs(h,m)}function er(h,m){h.openElements.clearBackToTableContext(),h._insertElement(m,kt.HTML),h.insertionMode=Nt.IN_TABLE_BODY}function ja(h,m){h.openElements.clearBackToTableContext(),h._insertFakeElement(tt.TBODY,j.TBODY),h.insertionMode=Nt.IN_TABLE_BODY,Ts(h,m)}function Ke(h,m){h.openElements.hasInTableScope(j.TABLE)&&(h.openElements.popUntilTagNamePopped(j.TABLE),h._resetInsertionMode(),h._processStartTag(m))}function An(h,m){Us(m)?h._appendElement(m,kt.HTML):Ga(h,m),m.ackSelfClosing=!0}function Cu(h,m){!h.formElement&&h.openElements.tmplCount===0&&(h._insertElement(m,kt.HTML),h.formElement=h.openElements.current,h.openElements.pop())}function jl(h,m){switch(m.tagID){case j.TD:case j.TH:case j.TR:{ja(h,m);break}case j.STYLE:case j.SCRIPT:case j.TEMPLATE:{vs(h,m);break}case j.COL:{wu(h,m);break}case j.FORM:{Cu(h,m);break}case j.TABLE:{Ke(h,m);break}case j.TBODY:case j.TFOOT:case j.THEAD:{er(h,m);break}case j.INPUT:{An(h,m);break}case j.CAPTION:{ac(h,m);break}case j.COLGROUP:{lc(h,m);break}default:Ga(h,m)}}function Pa(h,m){switch(m.tagID){case j.TABLE:{h.openElements.hasInTableScope(j.TABLE)&&(h.openElements.popUntilTagNamePopped(j.TABLE),h._resetInsertionMode());break}case j.TEMPLATE:{Ls(h,m);break}case j.BODY:case j.CAPTION:case j.COL:case j.COLGROUP:case j.HTML:case j.TBODY:case j.TD:case j.TFOOT:case j.TH:case j.THEAD:case j.TR:break;default:Ga(h,m)}}function Ga(h,m){const W=h.fosterParentingEnabled;h.fosterParentingEnabled=!0,ts(h,m),h.fosterParentingEnabled=W}function Wa(h,m){h.pendingCharacterTokens.push(m)}function Bu(h,m){h.pendingCharacterTokens.push(m),h.hasNonWhitespacePendingCharacterToken=!0}function Al(h,m){let W=0;if(h.hasNonWhitespacePendingCharacterToken)for(;W<h.pendingCharacterTokens.length;W++)Ga(h,h.pendingCharacterTokens[W]);else for(;W<h.pendingCharacterTokens.length;W++)h._insertCharacters(h.pendingCharacterTokens[W]);h.insertionMode=h.originalInsertionMode,h._processToken(m)}const us=new Set([j.CAPTION,j.COL,j.COLGROUP,j.TBODY,j.TD,j.TFOOT,j.TH,j.THEAD,j.TR]);function xr(h,m){const W=m.tagID;us.has(W)?h.openElements.hasInTableScope(j.CAPTION)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(j.CAPTION),h.activeFormattingElements.clearToLastMarker(),h.insertionMode=Nt.IN_TABLE,jl(h,m)):Zo(h,m)}function Ta(h,m){const W=m.tagID;switch(W){case j.CAPTION:case j.TABLE:{h.openElements.hasInTableScope(j.CAPTION)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(j.CAPTION),h.activeFormattingElements.clearToLastMarker(),h.insertionMode=Nt.IN_TABLE,W===j.TABLE&&Pa(h,m));break}case j.BODY:case j.COL:case j.COLGROUP:case j.HTML:case j.TBODY:case j.TD:case j.TFOOT:case j.TH:case j.THEAD:case j.TR:break;default:rs(h,m)}}function Qs(h,m){switch(m.tagID){case j.HTML:{Zo(h,m);break}case j.COL:{h._appendElement(m,kt.HTML),m.ackSelfClosing=!0;break}case j.TEMPLATE:{vs(h,m);break}default:Gr(h,m)}}function Wo(h,m){switch(m.tagID){case j.COLGROUP:{h.openElements.currentTagId===j.COLGROUP&&(h.openElements.pop(),h.insertionMode=Nt.IN_TABLE);break}case j.TEMPLATE:{Ls(h,m);break}case j.COL:break;default:Gr(h,m)}}function Gr(h,m){h.openElements.currentTagId===j.COLGROUP&&(h.openElements.pop(),h.insertionMode=Nt.IN_TABLE,h._processToken(m))}function Ts(h,m){switch(m.tagID){case j.TR:{h.openElements.clearBackToTableBodyContext(),h._insertElement(m,kt.HTML),h.insertionMode=Nt.IN_ROW;break}case j.TH:case j.TD:{h.openElements.clearBackToTableBodyContext(),h._insertFakeElement(tt.TR,j.TR),h.insertionMode=Nt.IN_ROW,_o(h,m);break}case j.CAPTION:case j.COL:case j.COLGROUP:case j.TBODY:case j.TFOOT:case j.THEAD:{h.openElements.hasTableBodyContextInTableScope()&&(h.openElements.clearBackToTableBodyContext(),h.openElements.pop(),h.insertionMode=Nt.IN_TABLE,jl(h,m));break}default:jl(h,m)}}function Na(h,m){const W=m.tagID;switch(m.tagID){case j.TBODY:case j.TFOOT:case j.THEAD:{h.openElements.hasInTableScope(W)&&(h.openElements.clearBackToTableBodyContext(),h.openElements.pop(),h.insertionMode=Nt.IN_TABLE);break}case j.TABLE:{h.openElements.hasTableBodyContextInTableScope()&&(h.openElements.clearBackToTableBodyContext(),h.openElements.pop(),h.insertionMode=Nt.IN_TABLE,Pa(h,m));break}case j.BODY:case j.CAPTION:case j.COL:case j.COLGROUP:case j.HTML:case j.TD:case j.TH:case j.TR:break;default:Pa(h,m)}}function _o(h,m){switch(m.tagID){case j.TH:case j.TD:{h.openElements.clearBackToTableRowContext(),h._insertElement(m,kt.HTML),h.insertionMode=Nt.IN_CELL,h.activeFormattingElements.insertMarker();break}case j.CAPTION:case j.COL:case j.COLGROUP:case j.TBODY:case j.TFOOT:case j.THEAD:case j.TR:{h.openElements.hasInTableScope(j.TR)&&(h.openElements.clearBackToTableRowContext(),h.openElements.pop(),h.insertionMode=Nt.IN_TABLE_BODY,Ts(h,m));break}default:jl(h,m)}}function Ma(h,m){switch(m.tagID){case j.TR:{h.openElements.hasInTableScope(j.TR)&&(h.openElements.clearBackToTableRowContext(),h.openElements.pop(),h.insertionMode=Nt.IN_TABLE_BODY);break}case j.TABLE:{h.openElements.hasInTableScope(j.TR)&&(h.openElements.clearBackToTableRowContext(),h.openElements.pop(),h.insertionMode=Nt.IN_TABLE_BODY,Na(h,m));break}case j.TBODY:case j.TFOOT:case j.THEAD:{(h.openElements.hasInTableScope(m.tagID)||h.openElements.hasInTableScope(j.TR))&&(h.openElements.clearBackToTableRowContext(),h.openElements.pop(),h.insertionMode=Nt.IN_TABLE_BODY,Na(h,m));break}case j.BODY:case j.CAPTION:case j.COL:case j.COLGROUP:case j.HTML:case j.TD:case j.TH:break;default:Pa(h,m)}}function Hs(h,m){const W=m.tagID;us.has(W)?(h.openElements.hasInTableScope(j.TD)||h.openElements.hasInTableScope(j.TH))&&(h._closeTableCell(),_o(h,m)):Zo(h,m)}function uu(h,m){const W=m.tagID;switch(W){case j.TD:case j.TH:{h.openElements.hasInTableScope(W)&&(h.openElements.generateImpliedEndTags(),h.openElements.popUntilTagNamePopped(W),h.activeFormattingElements.clearToLastMarker(),h.insertionMode=Nt.IN_ROW);break}case j.TABLE:case j.TBODY:case j.TFOOT:case j.THEAD:case j.TR:{h.openElements.hasInTableScope(W)&&(h._closeTableCell(),Ma(h,m));break}case j.BODY:case j.CAPTION:case j.COL:case j.COLGROUP:case j.HTML:break;default:rs(h,m)}}function uo(h,m){switch(m.tagID){case j.HTML:{Zo(h,m);break}case j.OPTION:{h.openElements.currentTagId===j.OPTION&&h.openElements.pop(),h._insertElement(m,kt.HTML);break}case j.OPTGROUP:{h.openElements.currentTagId===j.OPTION&&h.openElements.pop(),h.openElements.currentTagId===j.OPTGROUP&&h.openElements.pop(),h._insertElement(m,kt.HTML);break}case j.HR:{h.openElements.currentTagId===j.OPTION&&h.openElements.pop(),h.openElements.currentTagId===j.OPTGROUP&&h.openElements.pop(),h._appendElement(m,kt.HTML),m.ackSelfClosing=!0;break}case j.INPUT:case j.KEYGEN:case j.TEXTAREA:case j.SELECT:{h.openElements.hasInSelectScope(j.SELECT)&&(h.openElements.popUntilTagNamePopped(j.SELECT),h._resetInsertionMode(),m.tagID!==j.SELECT&&h._processStartTag(m));break}case j.SCRIPT:case j.TEMPLATE:{vs(h,m);break}default:}}function sa(h,m){switch(m.tagID){case j.OPTGROUP:{h.openElements.stackTop>0&&h.openElements.currentTagId===j.OPTION&&h.openElements.tagIDs[h.openElements.stackTop-1]===j.OPTGROUP&&h.openElements.pop(),h.openElements.currentTagId===j.OPTGROUP&&h.openElements.pop();break}case j.OPTION:{h.openElements.currentTagId===j.OPTION&&h.openElements.pop();break}case j.SELECT:{h.openElements.hasInSelectScope(j.SELECT)&&(h.openElements.popUntilTagNamePopped(j.SELECT),h._resetInsertionMode());break}case j.TEMPLATE:{Ls(h,m);break}default:}}function io(h,m){const W=m.tagID;W===j.CAPTION||W===j.TABLE||W===j.TBODY||W===j.TFOOT||W===j.THEAD||W===j.TR||W===j.TD||W===j.TH?(h.openElements.popUntilTagNamePopped(j.SELECT),h._resetInsertionMode(),h._processStartTag(m)):uo(h,m)}function zo(h,m){const W=m.tagID;W===j.CAPTION||W===j.TABLE||W===j.TBODY||W===j.TFOOT||W===j.THEAD||W===j.TR||W===j.TD||W===j.TH?h.openElements.hasInTableScope(W)&&(h.openElements.popUntilTagNamePopped(j.SELECT),h._resetInsertionMode(),h.onEndTag(m)):sa(h,m)}function os(h,m){switch(m.tagID){case j.BASE:case j.BASEFONT:case j.BGSOUND:case j.LINK:case j.META:case j.NOFRAMES:case j.SCRIPT:case j.STYLE:case j.TEMPLATE:case j.TITLE:{vs(h,m);break}case j.CAPTION:case j.COLGROUP:case j.TBODY:case j.TFOOT:case j.THEAD:{h.tmplInsertionModeStack[0]=Nt.IN_TABLE,h.insertionMode=Nt.IN_TABLE,jl(h,m);break}case j.COL:{h.tmplInsertionModeStack[0]=Nt.IN_COLUMN_GROUP,h.insertionMode=Nt.IN_COLUMN_GROUP,Qs(h,m);break}case j.TR:{h.tmplInsertionModeStack[0]=Nt.IN_TABLE_BODY,h.insertionMode=Nt.IN_TABLE_BODY,Ts(h,m);break}case j.TD:case j.TH:{h.tmplInsertionModeStack[0]=Nt.IN_ROW,h.insertionMode=Nt.IN_ROW,_o(h,m);break}default:h.tmplInsertionModeStack[0]=Nt.IN_BODY,h.insertionMode=Nt.IN_BODY,Zo(h,m)}}function ps(h,m){m.tagID===j.TEMPLATE&&Ls(h,m)}function wo(h,m){h.openElements.tmplCount>0?(h.openElements.popUntilTagNamePopped(j.TEMPLATE),h.activeFormattingElements.clearToLastMarker(),h.tmplInsertionModeStack.shift(),h._resetInsertionMode(),h.onEof(m)):no(h,m)}function cu(h,m){m.tagID===j.HTML?Zo(h,m):Tu(h,m)}function or(h,m){var W;if(m.tagID===j.HTML){if(h.fragmentContext||(h.insertionMode=Nt.AFTER_AFTER_BODY),h.options.sourceCodeLocationInfo&&h.openElements.tagIDs[0]===j.HTML){h._setEndLocation(h.openElements.items[0],m);const Ve=h.openElements.items[1];Ve&&!(!((W=h.treeAdapter.getNodeSourceCodeLocation(Ve))===null||W===void 0)&&W.endTag)&&h._setEndLocation(Ve,m)}}else Tu(h,m)}function Tu(h,m){h.insertionMode=Nt.IN_BODY,ts(h,m)}function ao(h,m){switch(m.tagID){case j.HTML:{Zo(h,m);break}case j.FRAMESET:{h._insertElement(m,kt.HTML);break}case j.FRAME:{h._appendElement(m,kt.HTML),m.ackSelfClosing=!0;break}case j.NOFRAMES:{vs(h,m);break}default:}}function Vu(h,m){m.tagID===j.FRAMESET&&!h.openElements.isRootHtmlElementCurrent()&&(h.openElements.pop(),!h.fragmentContext&&h.openElements.currentTagId!==j.FRAMESET&&(h.insertionMode=Nt.AFTER_FRAMESET))}function Ku(h,m){switch(m.tagID){case j.HTML:{Zo(h,m);break}case j.NOFRAMES:{vs(h,m);break}default:}}function Yu(h,m){m.tagID===j.HTML&&(h.insertionMode=Nt.AFTER_AFTER_FRAMESET)}function Sc(h,m){m.tagID===j.HTML?Zo(h,m):el(h,m)}function el(h,m){h.insertionMode=Nt.IN_BODY,ts(h,m)}function Gl(h,m){switch(m.tagID){case j.HTML:{Zo(h,m);break}case j.NOFRAMES:{vs(h,m);break}default:}}function eu(h,m){m.chars=oe,h._insertCharacters(m)}function xo(h,m){h._insertCharacters(m),h.framesetOk=!1}function ul(h){for(;h.treeAdapter.getNamespaceURI(h.openElements.current)!==kt.HTML&&!h._isIntegrationPoint(h.openElements.currentTagId,h.openElements.current);)h.openElements.pop()}function Ec(h,m){if(Gi(m))ul(h),h._startTagOutsideForeignContent(m);else{const W=h._getAdjustedCurrentElement(),Ve=h.treeAdapter.getNamespaceURI(W);Ve===kt.MATHML?Xt(m):Ve===kt.SVG&&(Wi(m),Ii(m)),Yt(m),m.selfClosing?h._appendElement(m,Ve):h._insertElement(m,Ve),m.ackSelfClosing=!0}}function Wl(h,m){if(m.tagID===j.P||m.tagID===j.BR){ul(h),h._endTagOutsideForeignContent(m);return}for(let W=h.openElements.stackTop;W>0;W--){const Ve=h.openElements.items[W];if(h.treeAdapter.getNamespaceURI(Ve)===kt.HTML){h._endTagOutsideForeignContent(m);break}const _t=h.treeAdapter.getTagName(Ve);if(_t.toLowerCase()===m.tagName){m.tagName=_t,h.openElements.shortenToLength(W);break}}}const hu=/["&'<>$\x80-\uFFFF]/g,tl=new Map([[34,"""],[38,"&"],[39,"'"],[60,"<"],[62,">"]]),Va=String.prototype.codePointAt!=null?(h,m)=>h.codePointAt(m):(h,m)=>(h.charCodeAt(m)&64512)===55296?(h.charCodeAt(m)-55296)*1024+h.charCodeAt(m+1)-56320+65536:h.charCodeAt(m);function du(h){let m="",W=0,Ve;for(;(Ve=hu.exec(h))!==null;){const _t=Ve.index,Mn=h.charCodeAt(_t),li=tl.get(Mn);li!==void 0?(m+=h.substring(W,_t)+li,W=_t+1):(m+=`${h.substring(W,_t)}&#x${Va(h,_t).toString(16)};`,W=hu.lastIndex+=+((Mn&64512)===55296))}return m+h.substr(W)}const kl=null;function Vl(h,m){return function(Ve){let _t,Mn=0,li="";for(;_t=h.exec(Ve);)Mn!==_t.index&&(li+=Ve.substring(Mn,_t.index)),li+=m.get(_t[0].charCodeAt(0)),Mn=_t.index+1;return li+Ve.substring(Mn)}}const uc=Vl(/[&<>'"]/g,tl),Zu=Vl(/["&\u00A0]/g,new Map([[34,"""],[38,"&"],[160," "]])),Dc=Vl(/[&<>\u00A0]/g,new Map([[38,"&"],[60,"<"],[62,">"],[160," "]])),cl=new Set([tt.AREA,tt.BASE,tt.BASEFONT,tt.BGSOUND,tt.BR,tt.COL,tt.EMBED,tt.FRAME,tt.HR,tt.IMG,tt.INPUT,tt.KEYGEN,tt.LINK,tt.META,tt.PARAM,tt.SOURCE,tt.TRACK,tt.WBR]);function aa(h,m){return m.treeAdapter.isElementNode(h)&&m.treeAdapter.getNamespaceURI(h)===NS.HTML&&cl.has(m.treeAdapter.getTagName(h))}const Il={treeAdapter:jt,scriptingEnabled:!0};function cc(h,m){const W=Eo(Eo({},Il),m);return aa(h,W)?"":ke(h,W)}function Se(h,m){const W=Eo(Eo({},Il),m);return st(h,W)}function ke(h,m){let W="";const Ve=m.treeAdapter.isElementNode(h)&&m.treeAdapter.getTagName(h)===$.TEMPLATE&&m.treeAdapter.getNamespaceURI(h)===NS.HTML?m.treeAdapter.getTemplateContent(h):h,_t=m.treeAdapter.getChildNodes(Ve);if(_t)for(const Mn of _t)W+=st(Mn,m);return W}function st(h,m){return m.treeAdapter.isElementNode(h)?pt(h,m):m.treeAdapter.isTextNode(h)?Tt(h,m):m.treeAdapter.isCommentNode(h)?me(h,m):m.treeAdapter.isDocumentTypeNode(h)?dn(h,m):""}function pt(h,m){const W=m.treeAdapter.getTagName(h);return`<${W}${Lt(h,m)}>${aa(h,m)?"":`${ke(h,m)}</${W}>`}`}function Lt(h,{treeAdapter:m}){let W="";for(const Ve of m.getAttrList(h)){if(W+=" ",Ve.namespace)switch(Ve.namespace){case NS.XML:{W+=`xml:${Ve.name}`;break}case NS.XMLNS:{Ve.name!=="xmlns"&&(W+="xmlns:"),W+=Ve.name;break}case NS.XLINK:{W+=`xlink:${Ve.name}`;break}default:W+=`${Ve.prefix}:${Ve.name}`}else W+=Ve.name;W+=`="${escapeAttribute(Ve.value)}"`}return W}function Tt(h,m){const{treeAdapter:W}=m,Ve=W.getTextNodeContent(h),_t=W.getParentNode(h),Mn=_t&&W.isElementNode(_t)&&W.getTagName(_t);return Mn&&W.getNamespaceURI(_t)===NS.HTML&&hasUnescapedText(Mn,m.scriptingEnabled)?Ve:escapeText(Ve)}function me(h,{treeAdapter:m}){return`<!--${m.getCommentNodeContent(h)}-->`}function dn(h,{treeAdapter:m}){return`<!DOCTYPE ${m.getDocumentTypeNodeName(h)}>`}function an(h,m){return Parser.parse(h,m)}function Pn(h,m,W){typeof h=="string"&&(W=m,m=h,h=null);const Ve=Parser.getFragmentParser(h,W);return Ve.tokenizer.write(m,!0),Ve.getFragment()}var Rn=d(17970),Bn=d(10528);const E=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,P=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),U={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function q(h,m){const W=Xn(h),Ve=Ne("type",{handlers:{root:ge,element:Me,text:et,comment:gt,doctype:zt,raw:en},unknown:un}),_t={parser:W?new br(U):br.getFragmentParser(void 0,U),handle(ri){Ve(ri,_t)},stitches:!1,options:m||{}};Ve(h,_t),Ct(_t,(0,Rn.Pk)());const Mn=W?_t.parser.document:_t.parser.getFragment(),li=De(Mn,{file:_t.options.file});return _t.stitches&&(0,Bn.Vn)(li,"comment",function(ri,Wn,Bi){const cr=ri;if(cr.value.stitch&&Bi&&Wn!==void 0){const Ur=Bi.children;return Ur[Wn]=cr.value.stitch,Wn}}),li.type==="root"&&li.children.length===1&&li.children[0].type===h.type?li.children[0]:li}function le(h,m){let W=-1;if(h)for(;++W<h.length;)m.handle(h[W])}function ge(h,m){le(h.children,m)}function Me(h,m){ci(h,m),le(h.children,m),ti(h,m)}function et(h,m){m.parser.tokenizer.state>4&&(m.parser.tokenizer.state=0);const W={type:ln.CHARACTER,chars:h.value,location:yi(h)};Ct(m,(0,Rn.Pk)(h)),m.parser.currentToken=W,m.parser._processToken(m.parser.currentToken)}function zt(h,m){const W={type:ln.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:yi(h)};Ct(m,(0,Rn.Pk)(h)),m.parser.currentToken=W,m.parser._processToken(m.parser.currentToken)}function Ft(h,m){m.stitches=!0;const W=gi(h);if("children"in h&&"children"in W){const Ve=q({type:"root",children:h.children},m.options);W.children=Ve.children}gt({type:"comment",value:{stitch:W}},m)}function gt(h,m){const W=h.value,Ve={type:ln.COMMENT,data:W,location:yi(h)};Ct(m,(0,Rn.Pk)(h)),m.parser.currentToken=Ve,m.parser._processToken(m.parser.currentToken)}function en(h,m){if(m.parser.tokenizer.preprocessor.html="",m.parser.tokenizer.preprocessor.pos=-1,m.parser.tokenizer.preprocessor.lastGapPos=-2,m.parser.tokenizer.preprocessor.gapStack=[],m.parser.tokenizer.preprocessor.skipNextNewLine=!1,m.parser.tokenizer.preprocessor.lastChunkWritten=!1,m.parser.tokenizer.preprocessor.endOfChunkHit=!1,m.parser.tokenizer.preprocessor.isEol=!1,ai(m,(0,Rn.Pk)(h)),m.parser.tokenizer.write(m.options.tagfilter?h.value.replace(E,"<$1$2"):h.value,!1),m.parser.tokenizer._runParsingLoop(),m.parser.tokenizer.state===72||m.parser.tokenizer.state===78){m.parser.tokenizer.preprocessor.lastChunkWritten=!0;const W=m.parser.tokenizer._consume();m.parser.tokenizer._callState(W)}}function un(h,m){const W=h;if(m.options.passThrough&&m.options.passThrough.includes(W.type))Ft(W,m);else{let Ve="";throw P.has(W.type)&&(Ve=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+W.type+"` node"+Ve)}}function Ct(h,m){ai(h,m);const W=h.parser.tokenizer.currentCharacterToken;W&&W.location&&(W.location.endLine=h.parser.tokenizer.preprocessor.line,W.location.endCol=h.parser.tokenizer.preprocessor.col+1,W.location.endOffset=h.parser.tokenizer.preprocessor.offset+1,h.parser.currentToken=W,h.parser._processToken(h.parser.currentToken)),h.parser.tokenizer.paused=!1,h.parser.tokenizer.inLoop=!1,h.parser.tokenizer.active=!1,h.parser.tokenizer.returnState=_i.DATA,h.parser.tokenizer.charRefCode=-1,h.parser.tokenizer.consumedAfterSnapshot=-1,h.parser.tokenizer.currentLocation=null,h.parser.tokenizer.currentCharacterToken=null,h.parser.tokenizer.currentToken=null,h.parser.tokenizer.currentAttr={name:"",value:""}}function ai(h,m){if(m&&m.offset!==void 0){const W={startLine:m.line,startCol:m.column,startOffset:m.offset,endLine:-1,endCol:-1,endOffset:-1};h.parser.tokenizer.preprocessor.lineStartPos=-m.column+1,h.parser.tokenizer.preprocessor.droppedBufferSize=m.offset,h.parser.tokenizer.preprocessor.line=m.line,h.parser.tokenizer.currentLocation=W}}function ci(h,m){const W=h.tagName.toLowerCase();if(m.parser.tokenizer.state===_i.PLAINTEXT)return;Ct(m,(0,Rn.Pk)(h));const Ve=m.parser.openElements.current;let _t="namespaceURI"in Ve?Ve.namespaceURI:de.t.html;_t===de.t.html&&W==="svg"&&(_t=de.t.svg);const Mn=$e(cd(Eo({},h),{children:[]}),{space:_t===de.t.svg?"svg":"html"}),li={type:ln.START_TAG,tagName:W,tagID:tr(W),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in Mn?Mn.attrs:[],location:yi(h)};m.parser.currentToken=li,m.parser._processToken(m.parser.currentToken),m.parser.tokenizer.lastStartTagName=W}function ti(h,m){const W=h.tagName.toLowerCase();if(!m.parser.tokenizer.inForeignNode&&Cn.includes(W)||m.parser.tokenizer.state===_i.PLAINTEXT)return;Ct(m,(0,Rn.rb)(h));const Ve={type:ln.END_TAG,tagName:W,tagID:tr(W),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:yi(h)};m.parser.currentToken=Ve,m.parser._processToken(m.parser.currentToken),W===m.parser.tokenizer.lastStartTagName&&(m.parser.tokenizer.state===_i.RCDATA||m.parser.tokenizer.state===_i.RAWTEXT||m.parser.tokenizer.state===_i.SCRIPT_DATA)&&(m.parser.tokenizer.state=_i.DATA)}function Xn(h){const m=h.type==="root"?h.children[0]:h;return!!(m&&(m.type==="doctype"||m.type==="element"&&m.tagName.toLowerCase()==="html"))}function yi(h){const m=(0,Rn.Pk)(h)||{line:void 0,column:void 0,offset:void 0},W=(0,Rn.rb)(h)||{line:void 0,column:void 0,offset:void 0};return{startLine:m.line,startCol:m.column,startOffset:m.offset,endLine:W.line,endCol:W.column,endOffset:W.offset}}function gi(h){return"children"in h?(0,b.ZP)(cd(Eo({},h),{children:[]})):(0,b.ZP)(h)}function ji(h){return function(m,W){return q(m,cd(Eo({},h),{file:W}))}}},30084:function(J,C,d){"use strict";d.d(C,{Z:function(){return Pe}});var b=d(87342);function I(ze,Ee){const fe=String(ze);let we=fe.indexOf(Ee),pe=we,Ne=0,te=0;if(typeof Ee!="string")throw new TypeError("Expected substring");for(;we!==-1;)we===pe?++Ne>te&&(te=Ne):Ne=1,pe=we+Ee.length,we=fe.indexOf(Ee,pe);return te}function L(){return{enter:{mathFlow:ze,mathFlowFenceMeta:Ee,mathText:Ne},exit:{mathFlow:pe,mathFlowFence:we,mathFlowFenceMeta:fe,mathFlowValue:Ae,mathText:te,mathTextData:Ae}};function ze(Te){const $e={type:"element",tagName:"code",properties:{className:["language-math","math-display"]},children:[]};this.enter({type:"math",meta:null,value:"",data:{hName:"pre",hChildren:[$e]}},Te)}function Ee(){this.buffer()}function fe(){const Te=this.resume(),$e=this.stack[this.stack.length-1];(0,b.ok)($e.type==="math"),$e.meta=Te}function we(){this.data.mathFlowInside||(this.buffer(),this.data.mathFlowInside=!0)}function pe(Te){const $e=this.resume().replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),Qe=this.stack[this.stack.length-1];(0,b.ok)(Qe.type==="math"),this.exit(Te),Qe.value=$e;const Je=Qe.data.hChildren[0];(0,b.ok)(Je.type==="element"),(0,b.ok)(Je.tagName==="code"),Je.children.push({type:"text",value:$e}),this.data.mathFlowInside=void 0}function Ne(Te){this.enter({type:"inlineMath",value:"",data:{hName:"code",hProperties:{className:["language-math","math-inline"]},hChildren:[]}},Te),this.buffer()}function te(Te){const $e=this.resume(),Qe=this.stack[this.stack.length-1];(0,b.ok)(Qe.type==="inlineMath"),this.exit(Te),Qe.value=$e,Qe.data.hChildren.push({type:"text",value:$e})}function Ae(Te){this.config.enter.data.call(this,Te),this.config.exit.data.call(this,Te)}}function B(ze){let Ee=(ze||{}).singleDollarTextMath;return Ee==null&&(Ee=!0),we.peek=pe,{unsafe:[{character:"\r",inConstruct:"mathFlowMeta"},{character:`
|
|
|
`,inConstruct:"mathFlowMeta"},{character:"$",after:Ee?void 0:"\\$",inConstruct:"phrasing"},{character:"$",inConstruct:"mathFlowMeta"},{atBreak:!0,character:"$",after:"\\$"}],handlers:{math:fe,inlineMath:we}};function fe(Ne,te,Ae,Te){const $e=Ne.value||"",Qe=Ae.createTracker(Te),Je="$".repeat(Math.max(I($e,"$")+1,2)),Ce=Ae.enter("mathFlow");let dt=Qe.move(Je);if(Ne.meta){const Xe=Ae.enter("mathFlowMeta");dt+=Qe.move(Ae.safe(Ne.meta,Eo({after:`
|
|
|
`,before:dt,encode:["$"]},Qe.current()))),Xe()}return dt+=Qe.move(`
|
|
|
`),$e&&(dt+=Qe.move($e+`
|
|
|
`)),dt+=Qe.move(Je),Ce(),dt}function we(Ne,te,Ae){let Te=Ne.value||"",$e=1;for(Ee||$e++;new RegExp("(^|[^$])"+"\\$".repeat($e)+"([^$]|$)").test(Te);)$e++;const Qe="$".repeat($e);/[^ \r\n]/.test(Te)&&(/^[ \r\n]/.test(Te)&&/[ \r\n]$/.test(Te)||/^\$|\$$/.test(Te))&&(Te=" "+Te+" ");let Je=-1;for(;++Je<Ae.unsafe.length;){const Ce=Ae.unsafe[Je];if(!Ce.atBreak)continue;const dt=Ae.compilePattern(Ce);let Xe;for(;Xe=dt.exec(Te);){let $t=Xe.index;Te.codePointAt($t)===10&&Te.codePointAt($t-1)===13&&$t--,Te=Te.slice(0,$t)+" "+Te.slice(Xe.index+1)}}return Qe+Te+Qe}function pe(){return"$"}}var V=d(26735),Q=d(80722);const M={tokenize:he,concrete:!0,name:"mathFlow"},de={tokenize:re,partial:!0};function he(ze,Ee,fe){const we=this,pe=we.events[we.events.length-1],Ne=pe&&pe[1].type==="linePrefix"?pe[2].sliceSerialize(pe[1],!0).length:0;let te=0;return Ae;function Ae(St){return ze.enter("mathFlow"),ze.enter("mathFlowFence"),ze.enter("mathFlowFenceSequence"),Te(St)}function Te(St){return St===36?(ze.consume(St),te++,Te):te<2?fe(St):(ze.exit("mathFlowFenceSequence"),(0,V.f)(ze,$e,"whitespace")(St))}function $e(St){return St===null||(0,Q.Ch)(St)?Je(St):(ze.enter("mathFlowFenceMeta"),ze.enter("chunkString",{contentType:"string"}),Qe(St))}function Qe(St){return St===null||(0,Q.Ch)(St)?(ze.exit("chunkString"),ze.exit("mathFlowFenceMeta"),Je(St)):St===36?fe(St):(ze.consume(St),Qe)}function Je(St){return ze.exit("mathFlowFence"),we.interrupt?Ee(St):ze.attempt(de,Ce,xt)(St)}function Ce(St){return ze.attempt({tokenize:At,partial:!0},xt,dt)(St)}function dt(St){return(Ne?(0,V.f)(ze,Xe,"linePrefix",Ne+1):Xe)(St)}function Xe(St){return St===null?xt(St):(0,Q.Ch)(St)?ze.attempt(de,Ce,xt)(St):(ze.enter("mathFlowValue"),$t(St))}function $t(St){return St===null||(0,Q.Ch)(St)?(ze.exit("mathFlowValue"),Xe(St)):(ze.consume(St),$t)}function xt(St){return ze.exit("mathFlow"),Ee(St)}function At(St,Cn,Ye){let oe=0;return(0,V.f)(St,H,"linePrefix",we.parser.constructs.disable.null.includes("codeIndented")?void 0:4);function H(vt){return St.enter("mathFlowFence"),St.enter("mathFlowFenceSequence"),Ot(vt)}function Ot(vt){return vt===36?(oe++,St.consume(vt),Ot):oe<te?Ye(vt):(St.exit("mathFlowFenceSequence"),(0,V.f)(St,Kt,"whitespace")(vt))}function Kt(vt){return vt===null||(0,Q.Ch)(vt)?(St.exit("mathFlowFence"),Cn(vt)):Ye(vt)}}}function re(ze,Ee,fe){const we=this;return pe;function pe(te){return te===null?Ee(te):(ze.enter("lineEnding"),ze.consume(te),ze.exit("lineEnding"),Ne)}function Ne(te){return we.parser.lazy[we.now().line]?fe(te):Ee(te)}}function De(ze){let fe=(ze||{}).singleDollarTextMath;return fe==null&&(fe=!0),{tokenize:we,resolve:ne,previous:it,name:"mathText"};function we(pe,Ne,te){const Ae=this;let Te=0,$e,Qe;return Je;function Je(xt){return pe.enter("mathText"),pe.enter("mathTextSequence"),Ce(xt)}function Ce(xt){return xt===36?(pe.consume(xt),Te++,Ce):Te<2&&!fe?te(xt):(pe.exit("mathTextSequence"),dt(xt))}function dt(xt){return xt===null?te(xt):xt===36?(Qe=pe.enter("mathTextSequence"),$e=0,$t(xt)):xt===32?(pe.enter("space"),pe.consume(xt),pe.exit("space"),dt):(0,Q.Ch)(xt)?(pe.enter("lineEnding"),pe.consume(xt),pe.exit("lineEnding"),dt):(pe.enter("mathTextData"),Xe(xt))}function Xe(xt){return xt===null||xt===32||xt===36||(0,Q.Ch)(xt)?(pe.exit("mathTextData"),dt(xt)):(pe.consume(xt),Xe)}function $t(xt){return xt===36?(pe.consume(xt),$e++,$t):$e===Te?(pe.exit("mathTextSequence"),pe.exit("mathText"),Ne(xt)):(Qe.type="mathTextData",Xe(xt))}}}function ne(ze){let Ee=ze.length-4,fe=3,we,pe;if((ze[fe][1].type==="lineEnding"||ze[fe][1].type==="space")&&(ze[Ee][1].type==="lineEnding"||ze[Ee][1].type==="space")){for(we=fe;++we<Ee;)if(ze[we][1].type==="mathTextData"){ze[Ee][1].type="mathTextPadding",ze[fe][1].type="mathTextPadding",fe+=2,Ee-=2;break}}for(we=fe-1,Ee++;++we<=Ee;)pe===void 0?we!==Ee&&ze[we][1].type!=="lineEnding"&&(pe=we):(we===Ee||ze[we][1].type==="lineEnding")&&(ze[pe][1].type="mathTextData",we!==pe+2&&(ze[pe][1].end=ze[we-1][1].end,ze.splice(pe+2,we-pe-2),Ee-=we-pe-2,we=pe+2),pe=void 0);return ze}function it(ze){return ze!==36||this.events[this.events.length-1][1].type==="characterEscape"}function Ue(ze){return{flow:{36:M},text:{36:De(ze)}}}const Ie={};function Pe(ze){const Ee=this,fe=ze||Ie,we=Ee.data(),pe=we.micromarkExtensions||(we.micromarkExtensions=[]),Ne=we.fromMarkdownExtensions||(we.fromMarkdownExtensions=[]),te=we.toMarkdownExtensions||(we.toMarkdownExtensions=[]);pe.push(Ue(fe)),Ne.push(L()),te.push(B(fe))}},16722:function(J,C,d){"use strict";d.d(C,{Z:function(){return de}});const b=he=>typeof he=="object"&&he!=null&&he.nodeType===1,I=(he,re)=>(!re||he!=="hidden")&&he!=="visible"&&he!=="clip",L=(he,re)=>{if(he.clientHeight<he.scrollHeight||he.clientWidth<he.scrollWidth){const De=getComputedStyle(he,null);return I(De.overflowY,re)||I(De.overflowX,re)||(ne=>{const it=(Ue=>{if(!Ue.ownerDocument||!Ue.ownerDocument.defaultView)return null;try{return Ue.ownerDocument.defaultView.frameElement}catch(Ie){return null}})(ne);return!!it&&(it.clientHeight<ne.scrollHeight||it.clientWidth<ne.scrollWidth)})(he)}return!1},B=(he,re,De,ne,it,Ue,Ie,Pe)=>Ue<he&&Ie>re||Ue>he&&Ie<re?0:Ue<=he&&Pe<=De||Ie>=re&&Pe>=De?Ue-he-ne:Ie>re&&Pe<De||Ue<he&&Pe>De?Ie-re+it:0,V=he=>{const re=he.parentElement;return re==null?he.getRootNode().host||null:re},Q=(he,re)=>{var De,ne,it,Ue;if(typeof document=="undefined")return[];const{scrollMode:Ie,block:Pe,inline:ze,boundary:Ee,skipOverflowHiddenElements:fe}=re,we=typeof Ee=="function"?Ee:Kt=>Kt!==Ee;if(!b(he))throw new TypeError("Invalid target");const pe=document.scrollingElement||document.documentElement,Ne=[];let te=he;for(;b(te)&&we(te);){if(te=V(te),te===pe){Ne.push(te);break}te!=null&&te===document.body&&L(te)&&!L(document.documentElement)||te!=null&&L(te,fe)&&Ne.push(te)}const Ae=(ne=(De=window.visualViewport)==null?void 0:De.width)!=null?ne:innerWidth,Te=(Ue=(it=window.visualViewport)==null?void 0:it.height)!=null?Ue:innerHeight,{scrollX:$e,scrollY:Qe}=window,{height:Je,width:Ce,top:dt,right:Xe,bottom:$t,left:xt}=he.getBoundingClientRect(),{top:At,right:St,bottom:Cn,left:Ye}=(Kt=>{const vt=window.getComputedStyle(Kt);return{top:parseFloat(vt.scrollMarginTop)||0,right:parseFloat(vt.scrollMarginRight)||0,bottom:parseFloat(vt.scrollMarginBottom)||0,left:parseFloat(vt.scrollMarginLeft)||0}})(he);let oe=Pe==="start"||Pe==="nearest"?dt-At:Pe==="end"?$t+Cn:dt+Je/2-At+Cn,H=ze==="center"?xt+Ce/2-Ye+St:ze==="end"?Xe+St:xt-Ye;const Ot=[];for(let Kt=0;Kt<Ne.length;Kt++){const vt=Ne[Kt],{height:hn,width:Rt,top:hi,right:yt,bottom:si,left:qn}=vt.getBoundingClientRect();if(Ie==="if-needed"&&dt>=0&&xt>=0&&$t<=Te&&Xe<=Ae&&(vt===pe&&!L(vt)||dt>=hi&&$t<=si&&xt>=qn&&Xe<=yt))return Ot;const ln=getComputedStyle(vt),Tn=parseInt(ln.borderLeftWidth,10),xe=parseInt(ln.borderTopWidth,10),D=parseInt(ln.borderRightWidth,10),k=parseInt(ln.borderBottomWidth,10);let G=0,X=0;const T="offsetWidth"in vt?vt.offsetWidth-vt.clientWidth-Tn-D:0,Re="offsetHeight"in vt?vt.offsetHeight-vt.clientHeight-xe-k:0,mt="offsetWidth"in vt?vt.offsetWidth===0?0:Rt/vt.offsetWidth:0,_e="offsetHeight"in vt?vt.offsetHeight===0?0:hn/vt.offsetHeight:0;if(pe===vt)G=Pe==="start"?oe:Pe==="end"?oe-Te:Pe==="nearest"?B(Qe,Qe+Te,Te,xe,k,Qe+oe,Qe+oe+Je,Je):oe-Te/2,X=ze==="start"?H:ze==="center"?H-Ae/2:ze==="end"?H-Ae:B($e,$e+Ae,Ae,Tn,D,$e+H,$e+H+Ce,Ce),G=Math.max(0,G+Qe),X=Math.max(0,X+$e);else{G=Pe==="start"?oe-hi-xe:Pe==="end"?oe-si+k+Re:Pe==="nearest"?B(hi,si,hn,xe,k+Re,oe,oe+Je,Je):oe-(hi+hn/2)+Re/2,X=ze==="start"?H-qn-Tn:ze==="center"?H-(qn+Rt/2)+T/2:ze==="end"?H-yt+D+T:B(qn,yt,Rt,Tn,D+T,H,H+Ce,Ce);const{scrollLeft:Le,scrollTop:ct}=vt;G=_e===0?0:Math.max(0,Math.min(ct+G/_e,vt.scrollHeight-hn/_e+Re)),X=mt===0?0:Math.max(0,Math.min(Le+X/mt,vt.scrollWidth-Rt/mt+T)),oe+=ct-G,H+=Le-X}Ot.push({el:vt,top:G,left:X})}return Ot},M=he=>he===!1?{block:"end",inline:"nearest"}:(re=>re===Object(re)&&Object.keys(re).length!==0)(he)?he:{block:"start",inline:"nearest"};function de(he,re){if(!he.isConnected||!(it=>{let Ue=it;for(;Ue&&Ue.parentNode;){if(Ue.parentNode===document)return!0;Ue=Ue.parentNode instanceof ShadowRoot?Ue.parentNode.host:Ue.parentNode}return!1})(he))return;const De=(it=>{const Ue=window.getComputedStyle(it);return{top:parseFloat(Ue.scrollMarginTop)||0,right:parseFloat(Ue.scrollMarginRight)||0,bottom:parseFloat(Ue.scrollMarginBottom)||0,left:parseFloat(Ue.scrollMarginLeft)||0}})(he);if((it=>typeof it=="object"&&typeof it.behavior=="function")(re))return re.behavior(Q(he,re));const ne=typeof re=="boolean"||re==null?void 0:re.behavior;for(const{el:it,top:Ue,left:Ie}of Q(he,M(re))){const Pe=Ue-De.top+De.bottom,ze=Ie-De.left+De.right;it.scroll({top:Pe,left:ze,behavior:ne})}}},71523:function(J,C,d){"use strict";d.d(C,{P:function(){return I},Q:function(){return b}});function b(L){const B=String(L||"").trim();return B?B.split(/[ \t\n\r\f]+/g):[]}function I(L){return L.join(" ").trim()}},10502:function(J,C,d){"use strict";d.d(C,{O:function(){return I}});const b=function(he,re,De,ne,it){const Ue=I(re);if(De!=null&&(typeof De!="number"||De<0||De===Number.POSITIVE_INFINITY))throw new Error("Expected positive finite index");if(ne!=null&&(!b(ne)||!ne.children))throw new Error("Expected parent node");if(ne==null!=(De==null))throw new Error("Expected both parent and index");return de(he)?Ue.call(it,he,De,ne):!1},I=function(he){if(he==null)return M;if(typeof he=="function")return Q(he);if(typeof he=="object")return Array.isArray(he)?L(he):B(he);if(typeof he=="string")return V(he);throw new Error("Expected function, string, or object as test")};function L(he){const re=[];let De=-1;for(;++De<he.length;)re[De]=I(he[De]);return Q(ne);function ne(...it){let Ue=-1;for(;++Ue<re.length;)if(re[Ue].apply(this,it))return!0;return!1}}function B(he){const re=he;return Q(De);function De(ne){const it=ne;let Ue;for(Ue in he)if(it[Ue]!==re[Ue])return!1;return!0}}function V(he){return Q(re);function re(De){return De&&De.type===he}}function Q(he){return re;function re(De,ne,it){return!!(de(De)&&he.call(this,De,typeof ne=="number"?ne:void 0,it||void 0))}}function M(){return!0}function de(he){return he!==null&&typeof he=="object"&&"type"in he}},17970:function(J,C,d){"use strict";d.d(C,{FK:function(){return B},Pk:function(){return I},rb:function(){return b}});const b=L("end"),I=L("start");function L(V){return Q;function Q(M){const de=M&&M.position&&M.position[V]||{};if(typeof de.line=="number"&&de.line>0&&typeof de.column=="number"&&de.column>0)return{line:de.line,column:de.column,offset:typeof de.offset=="number"&&de.offset>-1?de.offset:void 0}}}function B(V){const Q=I(V),M=b(V);if(Q&&M)return{start:Q,end:M}}},2348:function(J,C,d){"use strict";d.d(C,{AM:function(){return Q},S4:function(){return M}});var b=d(10502);function I(he){return he}const L=[],B=!0,V=!1,Q="skip";function M(he,re,De,ne){let it;typeof re=="function"&&typeof De!="function"?(ne=De,De=re):it=re;const Ue=(0,b.O)(it),Ie=ne?-1:1;Pe(he,void 0,[])();function Pe(ze,Ee,fe){const we=ze&&typeof ze=="object"?ze:{};if(typeof we.type=="string"){const Ne=typeof we.tagName=="string"?we.tagName:typeof we.name=="string"?we.name:void 0;Object.defineProperty(pe,"name",{value:"node ("+(ze.type+(Ne?"<"+Ne+">":""))+")"})}return pe;function pe(){let Ne=L,te,Ae,Te;if((!re||Ue(ze,Ee,fe[fe.length-1]||void 0))&&(Ne=de(De(ze,fe)),Ne[0]===V))return Ne;if("children"in ze&&ze.children){const $e=ze;if($e.children&&Ne[0]!==Q)for(Ae=(ne?$e.children.length:-1)+Ie,Te=fe.concat($e);Ae>-1&&Ae<$e.children.length;){const Qe=$e.children[Ae];if(te=Pe(Qe,Ae,Te)(),te[0]===V)return te;Ae=typeof te[1]=="number"?te[1]:Ae+Ie}}return Ne}}}function de(he){return Array.isArray(he)?he:typeof he=="number"?[B,he]:he==null?L:[he]}},10528:function(J,C,d){"use strict";d.d(C,{Vn:function(){return I}});var b=d(2348);function I(L,B,V,Q){let M,de,he;typeof B=="function"&&typeof V!="function"?(de=void 0,he=B,M=V):(de=B,he=V,M=Q),(0,b.S4)(L,de,re,M);function re(De,ne){const it=ne[ne.length-1],Ue=it?it.children.indexOf(De):void 0;return he(De,Ue,it)}}},43309:function(J,C,d){"use strict";d.d(C,{t:function(){return b}});const b={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"}},47854:function(J){"use strict";J.exports=JSON.parse('{"AElig":"\xC6","AMP":"&","Aacute":"\xC1","Acirc":"\xC2","Agrave":"\xC0","Aring":"\xC5","Atilde":"\xC3","Auml":"\xC4","COPY":"\xA9","Ccedil":"\xC7","ETH":"\xD0","Eacute":"\xC9","Ecirc":"\xCA","Egrave":"\xC8","Euml":"\xCB","GT":">","Iacute":"\xCD","Icirc":"\xCE","Igrave":"\xCC","Iuml":"\xCF","LT":"<","Ntilde":"\xD1","Oacute":"\xD3","Ocirc":"\xD4","Ograve":"\xD2","Oslash":"\xD8","Otilde":"\xD5","Ouml":"\xD6","QUOT":"\\"","REG":"\xAE","THORN":"\xDE","Uacute":"\xDA","Ucirc":"\xDB","Ugrave":"\xD9","Uuml":"\xDC","Yacute":"\xDD","aacute":"\xE1","acirc":"\xE2","acute":"\xB4","aelig":"\xE6","agrave":"\xE0","amp":"&","aring":"\xE5","atilde":"\xE3","auml":"\xE4","brvbar":"\xA6","ccedil":"\xE7","cedil":"\xB8","cent":"\xA2","copy":"\xA9","curren":"\xA4","deg":"\xB0","divide":"\xF7","eacute":"\xE9","ecirc":"\xEA","egrave":"\xE8","eth":"\xF0","euml":"\xEB","frac12":"\xBD","frac14":"\xBC","frac34":"\xBE","gt":">","iacute":"\xED","icirc":"\xEE","iexcl":"\xA1","igrave":"\xEC","iquest":"\xBF","iuml":"\xEF","laquo":"\xAB","lt":"<","macr":"\xAF","micro":"\xB5","middot":"\xB7","nbsp":"\xA0","not":"\xAC","ntilde":"\xF1","oacute":"\xF3","ocirc":"\xF4","ograve":"\xF2","ordf":"\xAA","ordm":"\xBA","oslash":"\xF8","otilde":"\xF5","ouml":"\xF6","para":"\xB6","plusmn":"\xB1","pound":"\xA3","quot":"\\"","raquo":"\xBB","reg":"\xAE","sect":"\xA7","shy":"\xAD","sup1":"\xB9","sup2":"\xB2","sup3":"\xB3","szlig":"\xDF","thorn":"\xFE","times":"\xD7","uacute":"\xFA","ucirc":"\xFB","ugrave":"\xF9","uml":"\xA8","uuml":"\xFC","yacute":"\xFD","yen":"\xA5","yuml":"\xFF"}')},80501:function(J){"use strict";J.exports=JSON.parse('{"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}')}}]);
|
|
|
}()); |