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

3395 lines
2.2 MiB

This file contains invisible Unicode characters!

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

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

!(function(){var Sv=Object.defineProperty;var D1=Object.getOwnPropertySymbols;var Ev=Object.prototype.hasOwnProperty,_v=Object.prototype.propertyIsEnumerable;var wh=Math.pow,v1=(un,Tt,x)=>Tt in un?Sv(un,Tt,{enumerable:!0,configurable:!0,writable:!0,value:x}):un[Tt]=x,b1=(un,Tt)=>{for(var x in Tt||(Tt={}))Ev.call(Tt,x)&&v1(un,x,Tt[x]);if(D1)for(var x of D1(Tt))_v.call(Tt,x)&&v1(un,x,Tt[x]);return un};var zs=(un,Tt,x)=>v1(un,typeof Tt!="symbol"?Tt+"":Tt,x);var hp=(un,Tt,x)=>new Promise((me,Ae)=>{var P=V=>{try{te(x.next(V))}catch(S){Ae(S)}},De=V=>{try{te(x.throw(V))}catch(S){Ae(S)}},te=V=>V.done?me(V.value):Promise.resolve(V.value).then(P,De);te((x=x.apply(un,Tt)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3247],{89489:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},59477:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},40001:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},49198:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},84105:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},18785:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},73331:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},15277:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},52671:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},8657:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},56082:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},33853:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},15075:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},62772:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},43531:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},38819:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},47472:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},87395:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},De=P,te=x(7657),V=function(v,z){return Ae.createElement(te.Z,(0,me.Z)({},v,{ref:z,icon:De}))},S=Ae.forwardRef(V),g=S},96408:function(un,Tt){"use strict";Tt.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},6199:function(un,Tt,x){"use strict";var me=x(59301),Ae=Object.defineProperty,P=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,V=(I,v,z)=>v in I?Ae(I,v,{enumerable:!0,configurable:!0,writable:!0,value:z}):I[v]=z,S=(I,v)=>{for(var z in v||(v={}))De.call(v,z)&&V(I,z,v[z]);if(P)for(var z of P(v))te.call(v,z)&&V(I,z,v[z]);return I};const g=I=>React.createElement("svg",S({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},I),React.createElement("title",null,"\u9009\u62E9\u5907\u4EFD 2"),React.createElement("path",{d:"M6.74 0a6.74 6.74 0 1 0 0 13.48A6.74 6.74 0 0 0 6.74 0Zm3.636 5.017L5.817 9.576c-.09.09-.246.08-.348-.023l-.306-.305L3.12 7.204a.263.263 0 0 1 0-.372l.557-.557a.262.262 0 0 1 .372 0l1.605 1.606 3.794-3.793c.09-.09.246-.08.348.022l.557.557c.103.103.113.259.023.349Z",fill:"#68C79F",fillRule:"nonzero"}));Tt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="},70414:function(un,Tt,x){"use strict";var me=x(59301),Ae=Object.defineProperty,P=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,V=(I,v,z)=>v in I?Ae(I,v,{enumerable:!0,configurable:!0,writable:!0,value:z}):I[v]=z,S=(I,v)=>{for(var z in v||(v={}))De.call(v,z)&&V(I,z,v[z]);if(P)for(var z of P(v))te.call(v,z)&&V(I,z,v[z]);return I};const g=I=>React.createElement("svg",S({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},I),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Tt.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},96935:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return N}});var me=x(3113),Ae=x(59301),P=Object.defineProperty,De=Object.defineProperties,te=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,I=(T,L,ee)=>L in T?P(T,L,{enumerable:!0,configurable:!0,writable:!0,value:ee}):T[L]=ee,v=(T,L)=>{for(var ee in L||(L={}))S.call(L,ee)&&I(T,ee,L[ee]);if(V)for(var ee of V(L))g.call(L,ee)&&I(T,ee,L[ee]);return T},z=(T,L)=>De(T,te(L)),E=(T,L)=>{var ee={};for(var R in T)S.call(T,R)&&L.indexOf(R)<0&&(ee[R]=T[R]);if(T!=null&&V)for(var R of V(T))L.indexOf(R)<0&&g.call(T,R)&&(ee[R]=T[R]);return ee},M=(T,L,ee)=>new Promise((R,le)=>{var X=K=>{try{W(ee.next(K))}catch(se){le(se)}},q=K=>{try{W(ee.throw(K))}catch(se){le(se)}},W=K=>K.done?R(K.value):Promise.resolve(K.value).then(X,q);W((ee=ee.apply(T,L)).next())});const N=T=>{var L=T,{children:ee}=L,R=E(L,["children"]);const[le,X]=(0,Ae.useState)(!1);return Ae.createElement(me.ZP,z(v({},R),{loading:le,onClick:q=>M(void 0,null,function*(){try{X(!0),yield R.onClick(q),X(!1)}catch(W){console.error(W),X(!1)}})}),ee)}},27687:function(un,Tt,x){"use strict";var me=x(59301),Ae=x(96408),P=x(48136),De=x(99298),te=x(43418),V=x(59301);const S=(0,me.forwardRef)(({callback:g,width:I,onChange:v,disabled:z,readOnly:E,type:M="",value:N="",style:T={}},L)=>{const ee=(0,me.useRef)(),R=(0,me.useRef)(),[le,X]=(0,me.useState)(0),[q,W]=(0,me.useState)(0),[K,se]=(0,me.useState)(!1),fe=()=>{var J=document.createElement("div");J.innerHTML=ee.current.getValue();var ue=J.innerText;return g&&g(ue),ue};(0,me.useImperativeHandle)(L,()=>({getData:fe}));const Oe=J=>{J.preventDefault();const ue=J.clientX-le,D=J.clientY-q;document.body.onmousemove=Ve=>{let Me=Ve.clientX-ue,we=Ve.clientY-D;const Te=document.getElementsByClassName("markdown-popup-form")[0],ve=window.innerWidth-Te.offsetWidth,Fe=window.innerHeight-Te.offsetHeight;Me=Math.max(0,Math.min(Me,ve)),we=Math.max(0,Math.min(we,Fe)),Se(Ve.clientX,Ve.clientY,ue,D)&&(X(Me),W(we))},document.body.onmouseup=function(){document.body.onmousemove=null}},Se=(J,ue,D,Ve)=>{const Me=document.body.clientHeight,we=document.body.clientWidth;return J<20&&D>J||J>we-20&&D<J||ue<20&&Ve>ue||ue>Me-20&&Ve<ue?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,me.useEffect)(()=>{K&&setTimeout(()=>{const J=document.getElementsByClassName("markdown-popup-form")[0],ue=window.innerWidth/2-J.offsetWidth/2,D=window.innerHeight/2-J.offsetHeight/2;X(ue),W(D)},0)},[K]);const Ue=()=>{z||E||se(!0)};return V.createElement("div",{style:T},V.createElement("div",{style:{width:I||"100%",position:"relative"},className:`${Ae.Z.mathFillWrap} ${z||E?"cursorDefault":""}`,onClick:()=>Ue()},V.createElement("math-field",{disabled:z,locale:"zh_cn",class:`${Ae.Z.mathField} ${M}`,readOnly:E,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:ee,style:{width:"100%",fontSize:N?18:14},value:N||""})),V.createElement(te.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:le,top:q},title:V.createElement("div",{style:{cursor:"move"},onMouseDown:Oe},"\u8F93\u5165\u516C\u5F0F"),open:K,onOk:()=>{const J=R.current.getData();ee.current.setValue(J),v(J),se(!1)},onCancel:()=>{se(!1)},destroyOnClose:!0,className:"markdown-popup-form"},V.createElement(De.Z,{value:N,ref:R,onChange:v,showSaveButton:!1})))});Tt.Z=S},99298:function(un,Tt,x){"use strict";var me=x(59301),Ae=x(95237),P=x(43604),De=x(99313),te=x(3113),V=x(6339),S=x(96408),g=x(48136),I=x(59301);const v=(0,me.forwardRef)(({callback:z,showSaveButton:E,value:M=""},N)=>{const T=(0,me.useRef)(),L=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],ee=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
x=a + r\\text{cos}\\theta \\ \r
y=b + r\\text{sin}\\theta \r
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\left\\{\\begin{matrix} \r
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
\\end{matrix}\\right. \r
\\end{array} `},{value:`\\begin{array}{l} \r
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
a \\perp \\alpha \\ \r
b \\perp \\alpha \r
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
a \\parallel \\partial ,b \\parallel \\partial \r
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
a \\perp m,a \\perp n \r
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
a^{2}+b^{2}=c^{2} \r
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
a,b \\in R^{+} \\ \r
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
a,b \\in R \\ \r
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
\\end{array}`},{value:`\\begin{array}{c} \r
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
P \\left( \\emptyset \\right) =0 \\\\ \r
P \\left( S \\right) =1 \r
\\end{array}`},{value:`\\begin{array}{c} \r
\\forall A \\in S \\\\ \r
P \\left( A \\right) \\ge 0 \r
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
\\end{array}`},{value:`\\begin{array}{c} \r
P_{n}=n! \\\\ \r
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
\\end{array}`}]}]}],R=q=>{T.current.setValue(T.current.getValue()+" "+q.value+" ")},le=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:I.createElement(Ae.Z,{className:S.Z.lists,gutter:[10,10]},L.map((q,W)=>I.createElement(P.Z,{flex:"110px",className:S.Z.item},I.createElement("div",null,I.createElement(V.Z,{value:`$$${q.value}$$`}),q.name),I.createElement("div",{className:S.Z.children},q.children.map((K,se)=>I.createElement("div",{key:se},I.createElement("h1",null,K.name),I.createElement(Ae.Z,{gutter:[10,10]},K.data.map((fe,Oe)=>I.createElement(P.Z,{key:Oe,onClick:()=>R(fe),className:S.Z.diamond},I.createElement(V.Z,{value:"`$$"+fe.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:I.createElement(Ae.Z,{className:S.Z.lists,gutter:[10,10]},ee.map((q,W)=>I.createElement(P.Z,{flex:"110px",className:S.Z.item},I.createElement("div",null,I.createElement(V.Z,{value:"`$$"+q.value+"$$`"}),q.name),I.createElement("div",{className:S.Z.children},q.children.map((K,se)=>I.createElement("div",{key:se},K.name&&I.createElement("h1",null,K.name),I.createElement(Ae.Z,{gutter:[10,10]},K.data.map((fe,Oe)=>I.createElement(P.Z,{key:Oe,onClick:()=>R(fe),className:S.Z.diamond},I.createElement(V.Z,{value:"`$$"+fe.value+"$$`"}))))))))))}],X=()=>{var q=document.createElement("div");q.innerHTML=T.current.getValue();var W=q.innerText;return z&&z(W),W};return(0,me.useImperativeHandle)(N,()=>({getData:X})),I.createElement("div",{className:S.Z.mathWrap},I.createElement(De.default,{defaultActiveKey:"1",items:le}),I.createElement("math-field",{locale:"zh_cn",className:S.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:T,style:{width:800,marginTop:30,fontSize:18}},M||""),E&&I.createElement("div",{className:S.Z.button},I.createElement(te.ZP,{size:"large",onClick:X,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Tt.Z=v},61399:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return S}});var me=x(59301),Ae={sendToClass:"sendToClass___le_BX"},P="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu19CXQcx3nmV90zwOAGCBAgeN8ST0k8JFkWLVGyfMqJN7EVO4eP2Ov1Rkle7mSz2fVq3yZ2Nptdx95sNo6zvvISW5aP+PmQLVuSL52ULIo6KJHiJZ7gAeLGzHTVv++vrmrU9MwAM8CAuKbf4+Ngpru6u+qrv/7j+/8SqB5zugeIyD/ZjzXLm3FOCDEwp1/mCj28uEL3qd5mGnqAiLyLw9md54a9jZs7/O8LIc5Nw23mXZNV0M/RISWiGgA7+jNYN5qVorPB/6kQ4ugcfZ0r+thV0F/R7q7MzYiokQEvgZX7zwDXdAM+MAjgG0IIVZm7zN9WqqCfY2PLEj4AdgtgDSSwr0diV7fPbyF94EtV0E88oFXQT9xHs+aMV4nqlgPXAFgrAe/ikEQqCTTURKD/ihAiM2seeJY+SBX0s3Rg4o/FRiuA10iW8OZ4+ozEtk4fSY15kA88K4Q4MNlXOnWJVi5bJE5M9vq5cl0V9HNkpIhoSwa41gf0mEkAPf1AZwPgh6AHBTiZTIqHy30lVpmePY01K1qxYVGD+Ga518+186ugnwMjRkRLJXADgAb7uKf6w0/Lms0MABAEOJdKiQfKeSUi4hZ2Hrggu9c0QzbW+I8IIV4tp425dm4V9LN8xIiIgX6TBLrcRz0zFP7VnRr7lgjnksnSQU9ErWwUBxKdvaNStKd8qvHxvBDimVneLVN6vCrop9R903sxEfH4XCuBzTBqjVZtpMTFIaAtFenzkJAg4FKt7z8khBiZ6MkM4K8XwOIz/RBZKbGy2Yfy8VIS2CeEoInamKu/V0E/zsgRUR2ADgDJ+GlPngPWN48EfefqetasEaPTAQAiWiaBm+P3H8pIHL4IXNPpa92eNXx2zpOUwyqbfaSxsfHseM9DRE0S2AOgTQKCJxC31N7gs7+/B8ATQojL0/FOs6HNKugLjAIRtbG6HARoFQLdAGrtaRZkPzsDbGhHti5JJ4loWKWTp5qacB6ojIQ03prbjFozNk4SGJIS/aNsxLIFGwKe0U9AOq38J9rqxPFi4CKiRBbY4QEbePWQEjjbL7Gk2bcG8agPPCaEODkbADodz1AFvdOr995L/jvfiV0AVkipgR71Twj2Mal65DKwvAlgFzn/lpR+OvAxBB/P1EOTv8YumcTIEdFGCeyEDrZGt9YfnusBruoEPCPnlQyfgYCsHAn2tbamXil0S6MubZbAdttuVgIvXZTY2hndhl2fjwohjkzisefEJVXQm2EiopYjfdhVI7Cku6EQ2I04BTAwGoKsmY1IAzhntCnh+T2DWbzQXoczk4mQElEyAF4noFcZO9fMlAP2nZLYsSz33lIBkiB9z9/XkhKHioB+tQRe607mi6Oh7qbfxbyi7+NxIQq3MSdQPcFDVkHPEpJYuOE2KdH10kVgbStswCfSmd1+PGq03VVNIfjdw/7tSYxmoE6219c8Vi5QiKhdAm/S4HRuwB+HshJDGaAjFd5b/zNsGymhMsp/almzeCl+T55IGeCtPsC8neh45KTEDd1al48O38fzAJ6Zr8ZsFfTav01vBrCIQcagOtELrG/34fn5GkoWQL82/ELpaM/IOZOlbggh6h+k04eODzx9x65FfaWCf5TobQmJlrHz2TcTHi9fBLoboOkH+jvFOk2I/gygSOSDnid1ALCnZm2uFwh4sUdiU6cFfXgfj/yTiQR+NJlVqtR3nMnzFjzoiahbSu3JYKquPs4MSbCe3NnMevPYwd9lFHC4F7iqPSbhrbTlr6XGoj56R3XQqK+52X9mWf3EQR8t5SXuAJAImwrhbo1VtiW6GsKViH+x+jwbpAEgs5ngqXWLUy+7T0dE6zPATj/mheL3bGbujp/rBRLw+2t9fFsIEcwkOKfr3gsa9MZDch2Aq6W04f0Q8KzmrG8PwWUBx4PAoD/RD6xpdeSwC3gDRIN9rYpwA6laDI8m/KfWjuNZ0e1naLfngY1YYdcLe/+hLHR7TTXhM+npwBNRArwCKYlglPx9WzvFYft0RJSS0JPIWTnC6168yL55XjVCL5CeXOHkCRprfCavcbMFj48QebcC3mLAaxnC1ZSVa+D5dTLIEOD1JShxYHk7zn35y6C77pqaUV9p8C900LdJib0A6q0r0nYwqwxHLwJr2g23xRisL/QA6zsA3y4BDuDdyaE1Dgn0Z4EaD0jV+JQNZCbh+c8ua8LLKBD8YUpAEOA1QsjFWoqbh+F2+O+Tl0NwL28wurwBu8xq1QbZLDIqnX3ymtV1UTJJmmizD+yIgGP0JG7z8qgMDVir0I8Z5bKhxr+vEOiP9lJr0kdnguQOBXGDBJJE8EiBifwCnkdKKShF/PgKwj+qCN9OeDizbpEoWcWrNNDd9hY06I+co65USt7BQZm4Scojdob5LQroNgYrG4z7e4AdS8b0aatrs4S00t1+0EAdArqMZ4SvJ4ERqvF/vL5JcBAo5yCi1VIyk1L6dgJZY5Wfo2ckXGk6jD7PwB1VRtLzBJAY8cl/dMdKcZobZuMVwJ3ScnYcw4O9Nv2ZUNJHKpLVowiyuS4X9ERU3zOE10qpNsHzNktSgp9J8b/QXRquFOaDAkHDXv8mZEDyBUh6cMuSmhdn2kBe0KDvG6UNFwflDRdGgKs6QonsWXWGVY0scLIfaGuA1n17hkJ1p9lo/wUB74B/VALHL4feIE1yD9FBWemfOzaAJ97yHaQRhGbD0n6Ib/0GNrYnJdMOclyhWpVRwPkhoCnFz+iTLyXVJqH4HnolkMCwQl+y0f/hje1C09GIaJOhMVilPZqYzMXvzQJr7YQ2oM1mtR0j2xpC0PPEOd6X3Vbr+XeAsFIKJBjMDPbolRjojCQKX9ECXp8yZtTzA10KAvnT3mW19++dQXthwYKeAzUDAW5MCrmOAcNuSNaX17cBDYZ0ELoIgQujYSCK1Z3u5jF3ph7TAhLeZnGMZoHDF8IJZdUdI7npiy9AfuaAv0UQOPprD+F7ObZzfDHQf3sCtKoZfXfvlkfWt2BEe28ApLPU87o1iQdYkrJkBrBbAity3Z5hBJcN7GZe4HjK8WrhGMUEyK4G/77zQC0Nql9RCtslIcHnWukdSXgKbZzuRkDw70bc299DST82ISQpKch7IDjtf3PXruI2Q8EXr9CXCxr0owFu84TUASAGKKsPLMQZEG0poLUu1N2Z58KenKFRoN3owMXUGVf6sypyshdY3jYGegbcwYtIfewxcZXw0Lyug8YiYYwNoy5I0l4fZBmB7JZh9UUBAUt1BqkStKoFPX94PR3yAQpBS+duXZvU1GIiWiGBGxFGlo2ED5+OJ8kLF4HN7Y6f33icuB2SkDUZ/4eZRPZNwvO3KwHmIEWADyK1BQgION4LrNJTN1RpigHeqkGkqEd56t5dS2onnfAyFfwvZNB7aYm3CEjth4l0aAWwyjAigRMchPKA7jpg/zlgZRuwpi2U7qNZ9unDi4xNxyrQE8IYsYmkr9qTkjQjzcyI+4+LtodPe1tuWCFFqsZxi7J6wH5343tPs4EqWYJrI1VPzHQApNljo38T6jevpyfb6pBhICuis2/6fOLh5S1I/ug92NaYAqs3jqCXYSCLQMf7obYylc5MAmssawM6QF0yKdZ6QFtgyERanXFVGqO/H+sDljQQksawdyfEmLoT3seuEvqzoN4aP/HxrZ1iXHLcVMBd7NpZDXrjUuSgEbvbvHQaorZWd3362DGcnwq7kdtOS7yVIFssKhw7L5SMRh8dzYS6PfNsmuvgfWq/33VmALUjAWoX1au8PrQTgcG5vhl9b9tAZyK6ggTuPyG6LijauKQpNixlgJ5Bng3YXpBn3rHFP5yWoKzyj9/9HXhtKWy+tlstTQpPT0r7PFbHTnpKrWzC0M5u9N+0nHSBqAxHtljdUaIt6WONMsavBWohMA9ngd4RoLM+tF7tfcKVRrs+9XFhOFw5jSYVnUhER+El/nnXsiubojjrQG+Bns1ivRDwhdCAZ3hYJyFdHJHZ+gRdTCWQzhCl65PJ51hgleMVYD/zfwjwBlJSy7s8wJtRdNWV/WeR+Nuf+atf6cOSq5dI0VoPtOTQ0vJB3JIU5966nHSwyErTE8Oi9eUR2mpT/6KrJgH6pmQw+IFrEz8LCOroqP/If/8hbl69SO5ptaE2Vo8cD4tWPUiDkhbX0dCmxRh4/3ZxXAhk4aE2JcQWCDToBcHMGAteVze33i3PI3TUhyuU68Gx158ZDB0EWi30cg1gPTc8/GR3t//FKxkImz2gJxKXgOZmqQlRnMLGcsdhOY7Bkmu9sK+cDU7ua80uzNJ5yo48+1RTU18pngE2ZEdHcTM8ucoFfPTZ9b+zOiMh/vgHYs2+897Sd10nBdMAvAl6j5uohzh3Sye9bAHPAL+URd3BAXFVmihX1k8C9Gvb5Mk3r/GPZgjy7570v/ZSH96xcbHcw9wcK3EZkFptMYC3XJ0QqIJ2d6n0u7fh5OJ6b6kSYANY2xH2iFySkfQOdff+NFCbMP0QuSqNk0oBDHjuok5uMRLzuSsCgz2g9EdvXF5/xajMswL0nJjc34+VZwO5c12Ln5OwEQ8a8UAcvhzyT+qM7HdAS8qj434i8Yqh97orbp6KN5CmLQKSI7LRYVWaaLk2jT98UjT+0YPe1jdulMnVRhcupjO6YElBnHtteyjpI/1fAafTqu3EiFgfkBhL+CsD9IECNdeIy2/bSC8IggoUgr/7gf+vxwTesbFT3lwq6Nlg5m785S0Cb1jnAN1dHRxAh+oOgVWbVweAda2h1HHVKD7n1CC0ns+Adw1bewc3LUsIcXj3Mv+vJurPSv0+W0C/UUpcc6Iftc11QKvjMgxfdAzW7EFhQ5MjifkhpfBMj13W0j/dXIcnx+O1XximZSlf7i0m3d07f+eIaPnzR7D9XTsIjRFLZ/xhYCDUKtGzu51eTnrh6m8nFd+zLy0ahoBUQikOETUqeIP1KW9IR1jZmDX/97NLxXhXWI8PsgrC87KLG2mo3tOnioRHJzZ1Jxr/7EG1ZzigtkUlSnoGPR/bOoC7dwP1voh08bg6QybyxCAeJWjgt3BfOPo7A/7MAFCTDFUa159fCPB8rVRIJ8n/6K7V4kylgD1eOzMOeiJaLCVuZ4KVTmi4LLGm2dcswnxNO/Sn83ku98W+oAavw3AcDvzTL2bx9B1Fwt8DA9SpauTreZ7YJd8li0WTQQLfOCJa/n4/tt+5hVCXlzxYvIsvDNDIsqT38u5l1B9RgI1+z1cxrSApVHutl2wdzarhzgbqCUinwWrpOaKAIXalGoKZDkaZwBn3Q0eTaFzVjMUrmtD16EnP/+C34G3ukmgJVb9QCo+j3ljQ+wL4y9uBRakQElZ6R6PAgGeXqXnVVy4Bq02EwervfJ+e4fCEzsYxwLu9E0l4szqEN2MPq3zwNatq7533oHd57PZlOTzOQaLuBqmjo/awLsULTOtlL4pTBcCC3Z0m7DZkj8ugxKWr2/39HfXiVLxDLxG1iLS8xSM0a523QKDJeB9x/xHR8qkD2P62TYTaMkDP+acnLoiLH9hCBxNJKOvFsaF/fqakJ9oF0JYFVEsSPb6gQQYQC3j2jnDSSquhMTPQ2V0pPJVY1+53rG/DqoSHGnZr/sFDwJNs77QTakV5oOf+/R+3Ae31womshj3GEj7H904hHWNbp0NBiOvwcW9ODPk5HqXwtyfSh/3P7d07/czOGZX0o0QbEkyGkmOJ1yz5OH1tjWb/hb1hAc/r+Eu9Y0GVHBBbCe/Qeo/0h6vC+lZ/hCR+1tWCo66Hhz1F/cPYKT15lQV8NHGMRLXS/tuHRcunny8f9CwgT18W9NSravB9W+iljnovA1Z1nPZrINoHA7Q2snEML12flKcDQLGPntW5y5kwUMZSnp+zpsav2dOtNtXVgJ2FHq9+f/kocPASsGERobFW+9rLkvTcx391G7CoLoSEy50pxK852QcsbTHBNBVGrT2PV4p8CZ9TVsFRhdzxU6QOEiU/u2eV6J1uaT9joNcJylns9DxsyHUXhtTeAyZi6BAAdXDm3CgQZSzFPCyupOfPXBuG/c9MHRCEtJT+CysX4QUX+JfStBUK27NSRtR5SxmIAlYAHjg6OdDbAeRE7seO67oy2ZSvonqTDAhfIBEE8Nnw478DBebnhh5DY1DadvjL1lqvzveUz79dGg394NxPazsosnMmA/q/3AssqhcmiBST7kb48CTOmAAZT1I+BrPAYBporwOEgygX7JaIZoUYvwfHMZJ6orOfTpwPyPvcLSumP01xxkD/s15qXeHjlqZ67YPP0981C9AFuPHaMCtQ03odwOuOLKCasPTh05gsxkdAGCH4T6xvH0vmuHSJWiiF1wdK1rnS17ZpDU8G/WdeLF/S50ozo19bIBtkW3Bbw5EDQZaOwGDRfna7kpm/dbDI8cFzl+jz+Lswqlq2pP/oXjY+Q+ZYIeluVZK+ESDhAfVsNyjg2ACwpD60O6LJ6b54zLvDz8nGLgestOtX2xBqSPn02detqH12Pkv6zpd6OblBCnY/shPA6vDcuTxwzFBkwGr93WQsMSHMHm7gKK6W2LQ+DvPzJLFGZCAxnB0dfGj7qtZoGT3ZT3cSydbIG2RUJNfT8v2jouVzUwS9i4hIpw1C6a6BbydBmOQdfsefHf96ZJSac/UEscZqRUCfO8GsZLbPy5Oxl/3zXgjyE30h2cwUkdWvmKfOmHfg8bo4HPKJeJK41yiiASXV525ZN/18nBmT9FyfMSPlbaxzM7itR0QXJDWgZ3WGjVHmvDCtl/3yTZr6FB5x6a4ngdGVuV1Wb5g3Y9UVLQH1lf45RXjkmiVCF8f7+mFasbZR7lEKHrMqUzrpw3hMTHvfPyFa/mmeg/4vbgkNZg1cRzqHzMmxfufEGJbOPD58cFSa1Zo42Jkn1JcJg1eaNsFFfJpC3V9z8e046uwTOksi8dlbVk//biozCfp1GSlfY8HLHclemxEmVrFLsi0EP4N9SIaf2X/fUDcG9rh0t6DnzrS5rNyOPs9Kb809l1Ced3TX0gTXd1H79lGyYz1+bmBY1vFz2Kwo1lUHRsIV6JnzouWbR6em3sx2Sf9f97D3xuXFmwkQC/ExIY5dk+wxWsJSnukF5uX4t0vDoQ+fjVqeF9yf2kgvEJW1fnwBdVB489yQTafTm+D7O6P+tP5n88XlEYCToNkIHR0JO29jRz7gGcwW/JHhabKJOGuJVSetLjnWMntFNA1E+fuvX4UX2Mw93U9XjwRyp1LQCZ2ayhtWGNBLxcOvipYvH14AoGeh4gj2iD/vSHtWvZ5ml2VHKKTYdhoNOMrGjMsxm4tBzhx7vXKY6935YwGvTxB4/NwT/ueuRD7tjEn6NNEmJeXOogxH00kMQJb2/I8DUpGxZEBs3SCR39sYfDaKWVMzRvSKmI5WhwaGvKz/yI1rxbmT/dQ+NCpvIMIiblqv3DZn1ID+i/Mc9PfsYZflGHdmTKHJjaxyBhdHXG0GmR4qR7dxge2qRq46Y9vWSVeeUALeD163Stzn3nO6Ps8Y6EeJ1lNG3hipKHH/jeuO5CDNUKj2cGjb6vyuIauls71GAof7wwRqe7B0t4c1lFmkCc9/Nb0cP70VkC/1YpvMyK1ZEVXM03x2PhaCpP/IHqCNbaaYOuO6TQcyoerCzMqIcFfE9z4R4O0KQAIZTwafuGVdqmBltkqDf8ZAPzw8vEz5NVyJIDrikdV4wIiN2pQfurpyIqhGulsmI4/ZEc5YMhsWRJPDQb1dISSHwFWw77a1tS/v2/dUQnRvfRNEQnPsxwxf4EeTVG86kgFaE5SXA6hxZfQI672xEjNyVzqZVK57UnsrjcuSaQE5nHfjxjwxKHBqOFEyDYGb+083Gwqw6ad4jIDVmnODobHLjodC0j1e3zvi3sQmUkRD1qoNnbttdfI/VxrcxdqbMdAPDg52IZnieiz6sIB3A1V53hlDLWBpxBxtlxHpAn4kE1YJaOBz7ADa+ziJyvYa4SO9/5T/zd+7SYw81TO6HunEje51/PnHr4qWr5Sp3nTXBtjbMoqOZG74bTKDG8PMuE0w0F4Z8PGVY7V4/nKyJO6NC3o7IeP3vMyFq2AmRsz3bh9oIumeE7Cyol7R529bn/zpZPplMtfMGOgHiBaLjHy9ccwUDDZFUHFC9hy04kwmdm26BC6bHM3XHO0F2OneYNxvUcUiuyLYCWDC+uwqP3DJf+mPrsdTzwPJwdPBrZ4Sne51D58QLV8v03vza9396ErGZd9khmly13zxaA2+erQuEg6F+PSWcGZBz6uomxYYCSUCDl4Arl485t2JP5WbDlhMf3evCTls1EeU+PM71l25mjgzBnreAHgoHbxWktCFjSLNIx5ZdTKOrLF6kqmrHsDZQVYFiXz07J83mf5sbOlVxJXuMYajVmOkVoeG13f4T7xlgzj5kxO01IO8ngiN2lYA8MgkQP/r3f1YNIOg//qJGnzxlTrthdL9VCCJxAX9n9005qd3JTeDk9UadkEmdbHBXLU/mtYx37sL8DglIZwUahQQ971+bfLHk5vWk7tqJkHv9WVxnZByU45+HokWE1RyCGcWwKyPc5WBDrOzXpSVxAQt9vdLoE2HeHP564UYjvZaLuy0uJmOPnsm8fh/uRXy8ZPYFsgxo/Ynp0TLN8qU9FfXpfHmjlHm1lzx4+SQwKcP1eH5S6WrNy7oXZCy4do3Cixm49XxybtgtxMhslXMGxdSZ8bUJjUqyHvG8/x/2TtNu7kU6vgZGI6xx7iYTm8R8K9RnJ1pVQ5HEo/nneFAFhu2bKwy1dh6WVjv5N+4ZIfDrY8KIkWeG+uLN/9zdLGuFqq3d+j+D97UcumhhyhB6+RbVYAmXmEePS1avnm8fD99ylM6ZD+2lOV+1Cl7lltuy3+YF48oB9agNUaq5bUTq2dKs5VDmzjcjURL9N6Mh9HAC+kMJfDp+fo/vSmU5ny4hibTuTlxpsZIeXcViKtC1nDNM2hNo3nuTIISRJeGgssf+/mrF+sk9ek+ZhT0fX20KCPkzcrTObHRYQEc9727xip/5gpdWabdmoHiDue8TE5g4MMGliIVyKpOzkYKmnc/BHQauoJSdOZXr0n+gK+/9xAtzozKmxs8NDx1QbR8dxKgLziATgIFE8NmC/eGQa91enOwWmMrHnCQMAfs9hyDYjfQlAd4N2Ekzs0xE11BHPbgfe6N6/PLHVZ6Eswo6PllLozQ7VLK7oIMx5jvPQ5enhynDGA51M3JFVywiUEf6fhGArp2A18XSXxTodjWs1Ee0qj3f/ie9aLnnfeS/4tXYVNtjdz20HGx6NGe8iX9XAL9n9zkuCwNUI/2hdXdLDVjIu9MfJWwtW/cfohctHbCaK8lm170pbdsSP6w0iCPtzfjoO8ZpQ0DA3J3woenWZYOILUBGvOX61XAMXZZwnBiCZPSWC9n2gEfOS5HY6za7y0tgdtnI4+jt8zp4YvI80llsocbdyb33cX7RhGJb7yc3fX4GX/3907gmnIzp+Ya6NuiemjApZGQV1PvfKffx0rn8XzvBv32lBzpb6jSnGfL9k5EFRc0eDaR+I/vn2b9fsZBz2Qv6pbvqE/At+5IphJzppAbIIo4Nq5qYhDF/A9mVOr6KlZNcc7T88RmVFn3p9FzOZ1P1640XHC9CpA/SCk8dvfWsPrWRz5C3qs34I0HLqi3z2fQv3cbsJn5TUzDCMIEFVZ3tMfGkcoa9w7gxzdWw0Gy0n04HZZNZBuB1Sfm5CccFA7W+b9z14qJ98Gdymow46Dn+jMnh7BNZeR2ZjWyjs0Sn1PkuGDqIKfHcaIxVw7m2pIxukL/SFhAlBOo1zcBDWbDAivVNXHM9lAM8DxunIPKUV5uWE8sPsf3iSSe+c3rBe+9pI+lH6erli1SvzefQf9bO0KKMOvvA2mu1gAsMw4BI+BDQV8E8Po3R3+3RjVnSDHvnmkLujR4WIRWj2V8wgwvBNBzRx3ppVVCyRsDQtLlw7PU5cgqqx/skWG6sBbIhqJqA1JcvpqJaL28AZnx3WvQu6qRLXxqQMwTgVMJmc+jQW9rOho7goTfe3kY373HJCov+9+0cWmz+v35DPrf3x32Ma+yA1mgLRmm802kzrhgZy8YMy45UaTeD1MCua2mZCjV2dNmVaS8FULQqeF04mN3bRVROuVUJHqxa2dc0vODnSVqGLiAXVJI3r81AqALXFfS5JTSMCKdL7tsuPc6WusAXn820sllTzJdYcjQFazw4kHntkhABr7/7T/ZFUYKFwLo//jGUJXpGQz1bC7UxGoOAzgqKuukMkZiWoSAZmCzIBo2FZaba8cESrQ4mA95gA8Lgdx351WJH1RqA+pZDXp+uINnaU0AeUMgkIgM1Zj+HufnRLq6Y9hyXi13vKYgOPQFnXJnzjO1k/QkcWvRW8NZ+7w9rsVCR//kpuQjCwn0LXXAsV5gGdebN9lQVmWxRDgXTNxX/D1LT86btRGXeJBqPP89nyuEOE0I7vu5DTU6v2E6JLxtc1ZIevswB85l75BSdLl1HyMJ7/BmctyRjhrDIGfAs6Gkc2NNw1HWlLEH+G+O2nIFMQa9ngTWUDMbl4VLtn8pUPjRPXvF4EKQ9H/Ikt4LM6JaHH+9HZ+4dHZZlnxOzu9uFYfi0j1iapprsz7oS3deNb20hFkF+ud6BpdkgxTnzeoYpl0S42xKq/YUiq7yb0xFYAOVPTnWPWm0oChfVnttDLnK+v/5Rz0BzApB5GezKrP/o3trD04W9FzfiYGU19Gmyq9+Rycia5PAGQQ66dvEGXTk1vJn+BlNpJWU0hsjsLS1NGP+uy/tQaryIrK/f0PYDqs2vIOhe0zkoYn73l1hlTchTMPupInaJxqWQfqzv7C1cf90SftZBXr25Dx1GtcpJTfrTnOIYhH/3TAj+Xf7nd08OPrObKyg/e/O/lDWO8OGlZ5V8biAVU4H024AAB1FSURBVIecWIGAfyxxHk98ugeryzVkV9ZmcWfHcLjsl3jEXN/hVQW/HGuw0M+nhwU+f6gOL5ZBLf7t3eGK16XrFscSvc3teELFD5eyECV8O6W73fOjYsjmopxrdUK6IAHVo1Twj7+4ue54id1W1mmzCvT85I+82rfIFw2vCXgvJlelccBuA08RXcFKZ2eS2KAT4zppUgbt5sfs5qzjyWBAbyW72x5/1iqPQIZG/Qe/eByLygX9B7v70TqDLMuvHK/Bl4+UzrL84LUAB6dYyheS7PH5Fwf7RNLdrmoWoXnqUq4r9KmLQ/5n/t007Es160DPHfLYq7QhyMjdKgHP6u8uX15LdKd8n/XO2MlgqbT8vVZjbO0bLluhgBEGPQex7M583KDdk9WZQFY1UuQ//NUjqC8b9Mv60epPq002roT7MoP+ldL59D+/Htipd+DKB30x/d0arDmrTUzKa8eA02ghMlpOknhIwpNeyv8/v7Be8IYbFT1mJej5DR88nr1dSaGHwC12OpHvPfLYOK5PZgna0iGs6zczN8foRpbVYFUk/bfDdgzLj/jD3z2KFxa3qN8tx0/P6s3r20bQ6FNUFaCio1fAQLTS9sywwFeO1eHx86VTi397pykBYh7SBaoFdR6dwNW+Ys9jr7ETpiDY3eUjtpsJCTokKPGJSvvtZy3ov7ufGgZ9eXt97RgDMwJ8PLLquCLtKmA5PPy3raXD19vgiF0VooitLRLl8H24DQ5esRP1e0f9Z7ua1W+XA3q+N+fIdiXl2A7jZpBzVAM3iunuzscGqmO82s+6CacamgWndemmFfD8ZR89I+XlyP7O7jGWpRtZjUt+ff+Yd6YQoO1zFlo5bBuREHABbycd0SAR/cu7t9Xsq6SwmLWg55e8d//oVUMycV3fCBIccOJk5MhXbxJErApiJbY1Vvl7u2Exf8d1dPgcdmXaw1WDtAcnlmBuy2InPNDxQR/9Ur2uXNAXHKxZSi22oC8G+Dzfe2wCx4R2jo4UN1gjv72ZPIVSDvTEBr717q2JbywY0POLfvOF9NZA+NuDAB7v7K0TvjmcbXzuHPaOpLajCvF32k9vWJQs4a2k5w52I7P6s2nHTh5WqXhbTes5OTXiN/cHal6zLBn0TTFGZVHf+3iAj3lm3MlgvTt8ClMU9HahKsbjNwjn5BrPE68MjQ5/5td3NJ2vFPBntaTXyyKR+OrL2V0UeFdZfz1LHKYQaEls6MG2Q2yU1k4EK9j5bzZ+2V3JtSotuHkQGPRuQEx7eYzPnieOLmM3JFr61fzm07PLUu+WaEFnP0SJHlbvCP/P877EvizmneG+5UKuvHIzAJnC4G5aZyS8lTiZNKmPv29b6pUFA3p+0W8fotrBEezIQK6BMh4do7646owGtolY2cBVVOTJeGdYenMklivmWrCbBUELdcvX1+2Ybud2ewZEyxDmN+h/a6ehdMfSBV3fe96E4CBa7MtCYGcBxd9zZltDLfT2QGFd+jEo5xq8So+HEOy6T/71r2yuXN36WS/pbZd8/rtnGxJdXddlSK5SwtSb5A1/LbXA5oEaBI/ne9crBFOWObfWCi/Hfam3nNeVR8dWgPPDomVkAYCeuTeROuJMfKvmlSrd+VLmzjNdnIu3Mk2ZJbrdyCEeUOO/WZ2x+qT7exCov37vtSm9Q2MljjkDen7Zz/yMWqGCG7OeaOdCq9aVGXczWsBHjM2Y753bYvWIO5a5+7odW6zVqEuR+mOuvTAiWtLe/Jf0DPo833sB12iO792hVLC3i/eXZTHO1GIWLmyDJZ1S3i6g49J9DPZm8inFDoaFC3ruhk88Rs11SWzOKKzJkvR11NRJFLHqibVBNXjZWDIiwtX5uWiUPdyJY1Uil6h2aUS0BPMc9HfvdHR6xyUZl+7M+7GUY7Z52EXKSSesrvCkYYBrgVLAJRMBPpZswlfkSf+QvZlNiOT/etc2sbB0+viS9olvH6oN2pduI6q9OqILu+mBdhIYQ9e6NbmdOF+HM67skeP+dOvZc4ZVRrSoBQD6yHvj+M1DAluYeM9esPpEmCiSJqCWK8nZ2vNOVpWjqYypS1aV5P9NDMIlFkXBrJyVRZwSmcw//NquhortMTun1BsX/FyXZl8dNpOSW7IBfCvBIx3fqeoV9+ho/7wNaFnvj5su6BiwVlXqHxEtKjk59Savkx2XnvZX2wiwkX6at2624OF3DoKx7Xg0m9KplcPb2esmuCaOsSh10sck9pz68LUhpZjLfpwdCiPTnBTOu4/rJHoK7U4GuivFC4I1Jrajc3LcmeG3OeqOC3h+T0EPHLn0yNfv2bs3spenqtfPWdCHL07iv/0UK4VMb83IBO/DOrb9jlFrzFe5O5EY41efbyKwLtksohhbyaSAvhHRImrLA32Np7CtPotmn3f4jg1VXE+ObzVvni0Ci4MOHZmNuLxO5QdtDYYAPTLo4cAlH+dHEyUXe3rHxnCbzJziVHxfVlfG8b3n8WZciR777BqrLuBzkkysAS0wrFTw5V+/rl4n8lTqmOOgD7vhL56mxYOD2C4zUnN1LHdGMyVtpzvJIVpqme/1OeYkd5Xgn9k/r9vjiG7Gb0nWqrI2T97bNoydTVFaeqXGrKR2OGj3mVdSePB0bcmg//c7YhstTEQUK7Ddp324HOmt5ZP1608g3Z3JroiOjST7Pnn31s7Bkl66xJPmBej5Xd95L9Ws7MA2mZVrAgWd92ON2ci4ddyaGufORIhWiQLn8LkM+lSZoP+3y/rRMoMsy++cTOILh+p15NPSLOwWnRpbjgrFUPzwDqDFRPMm8r3b6w2ec3SU8bwzhYzVeBv6HAEpZPCF9+6of7RELJd82rwBvX3jD9xPi1ICO1UgF2cJXuS+tIMcSxSxkjyiMjgMy9Btycq+juS2pOrKk/S3tQ1jxwxJevawfO5QCt85WbqkZ9Azl16DroA6Y4RwTgkQPjnOq7Hn6WaK+N5tJli0MsRmgwAOHHn55U/dc9fWildGmHeg50780APUkkhjaRq4JitlwiaFx33vOd4aM1JjdoGfQ00YzKKlvkzQs06/oymNZbUxlqWrA8R1+7hhFweg1XdNGxFWnHbYUH/iQhIHen2cHipdp/+QAX0hwMeNVX378QDvqDMlS3fzTgTqlZI+/cGdqcMli+8yTpyXoLfv/56vUrsS2KY8uSRQSLjlRax6kxPYMiqPlu6QJlElTC9n0DeWCXr7HFGtHhfsDj04qivjUImtXZKzY7hTgVhfY4xWm1drpSd7d1in13ZtGVWLP8jqjanp78w1i+9Iwkd++9gEtJPF2NN6VsQBb7PhokadSc7nevCyStBX37898ZAQ01MVYV6D3mLsXV+j1UGAdYpkV+CoPBrj1hizSeHacA2B7kNqgzcjfeb0TBr0eUJollKLOV2Qa9XE5mbp6kypxmqR1YonE5H6xgevS32rDMFd9qkLAvTcK++8l+rSEm0K8iYF1LC+HyWeaz2fIT7m8rSeHC65ls34GFRoaWksT6cvOhpzAPSF1JlC2+u4VYm5/zwj2+O+92Krgz2Pu8TzvO++b5v/Dd7Qumwkl3HBggF91CcfIe9Nq7Eymwg2gBLtGZJ6qwGW5kZNHQO/MXpraiRGRv2WxnkO+g9wcKrWBLtiPsdCxqrur6j6mdKJOl1OHfu8mpcxF6ftb9LUevWtU1+rfeCee6YX8HzPhQd6g36uPX8ui7UygyUKWKFY8jvFoGyurR2YYAFIegY9l+Zz8V5Qups+ZHLZYJrVQKXVeaYM20ht3DsT0ZPNtWMSXlwCgu994Nq6h8oQ1lM6dcGC3pH8ic2dSDWmsC1DWOMpCMn/HANL8/QDtHQ0l6/eFFynjdjUBp9xiPNnvX2OQ0nQP7Ev3TFarW/dNVrZWNXUBHseX8Y0BDZ0jas2yrW1W/hYe8Z5lvduB5odQ1b3kfO7FQCca9AzADSmmC4cRptzuGWuR6qI/s6kS07lralJ3vdrm3AW02S0FpodVdCbXtn8EapJrcDKIINu8rGECLWhNyE8RgO0tE0C9L3DwMnL+V0f15mtRHXrRlqQRSF6S1Vwi6i6SeIuwA1gXYlrk7lD3/lYyW37LK9dBtgdGR28m5PH1B6uW89JOKwKbWhTWGSKQ9k2Xf09z10ZJobwa76YUeo7H77uyuwS7o5AFfQxPN76ECUuH8NyZNE6KrEuQbKOkT8U+JOS9M+dAU5cFuhuitcLKL5Cx0ETqQKOYu1OmoiLY1cn139uVo440KPanXZymBlmVwQ74fTPMWlvVRUWCNs6FW5fM6YnFwO8A/4hgB6HyjxYybzXcvSdKuiL9haJ5f8TqcYa1GcFtrPqs6RZ3VBONQQOEn3voMC6DsLVXSUOi+vZcepX8tW2fqXr67Z1LF0prlUgq1ZYFcewLvW+sY7KpFUsW3bEUYf0/Zw2rNqlv7KTioCuBuANG1TuBgvufrJjr817xp5P1iT+cfkmnN8rRMVYkyX2bHRaFfQl9thkCrhydbWHDgm84WoCbylU0jHHQH/DUoWrO82bFfLOKMXlKZ8iofa9ek39/num2R1ZSh9XQR/1Eglexr8MeIsfhsCtQNNTEAMp1NZ0oP7/PoFNBy+rXy5V0rPSev9BgeYa4Ka1lJPtP+7AzCHQMzfttSsVVrZEar/+QB5vsAAJIV71FB4PBi/v+8DNV2aP2Croi/TAvtNUn0qjWdahjgIkUauX+MXCR5cPLCeFpZwUxJfzxgTsznzmLPy/fUYlSwI9AS/1AE+eEPilayncwqbUYw6BnvX5a7ui3ZA0e1iA+kiI0wmo+2v92qOVLslXajeOd968l/S8M+Db78Y6X2GVJNR6CXhE6ABhuSewSBE4/3/Cfnj2PPDJpxVKAT1vKX//CwLbugmbTUHUkgdrjoCea9a8ca3SuwRq6Q46J4S/PxuMHmp5peH5u+7SXt9ZeUw42LPyqWMPxQWhDgM150/Ca66FrwjbILBDEVKCAS3QpgitZkO7Sb1zqaDnVLtvPS/Q0QjsWUNI2O1QSu3IOQB6DmHvWaHUsmZkhEfDmSz+xRM1F070ocduTFfq687EeZMCwEw8qHtPIvKePYcOobBC+kglPLSSwg0QWKSljoAnlI6wVuz9DpwHPjGBpGef/A8PC13fZc960hW8yj5mOeh5X9nbVgPLmqi/rT7xnWQNXri+E+eme5+osvtxnAsqBopKPlShtlhNeeeHsBwCm5FAIwHdAsyc1OrJtB/7zwN/s0/hzi2Fwcy7nvzkkNBJ1Xs3EtqdgE1ZDzeLQc+R1/dsE9jU4emgnRDoV8BRkjibSKI3Abx09WJxuqz3nYGTZy3onyOq6T8Jv6kOq32FN5BCF0dJ4WmQl6s0TLlreUfyjz8B7FgtdfjdHuy35iKkX3tG6MoBe9YR2hpyw/Jl3XwWgp4tVK5M9t7tAiubC2ygxb5/gUAAI8LHCBFOEeHr/Wn0vWY5smIGffKF+n5WgZ6Bjou4hiSSno9bBLCC6MoDvFBHcXDmgeMKB/sJazvCMzgwdLoXePyYQHcLsHMFhdv6TOWYZaDnTdduXg7cvEKghSvflnEIgUBJ8K7r+8nHpdZ2HFshxEgZTUzLqbMC9Af76aogjet8oBkC2xXvHD7LjkxW6dLdT/cAFyTvpE145BWBVy4Ca9qBmydjtBacXWMsR3dHQT71SkdkVzQBNywT2NHtTdk4EgLMQDomgHMDCo/MpB0wI6A/dIhqR5vR6nvYJQRu9jw0EulqcDPyPOPNLwZeWqqwHIgpssRl7E6lCSd0QSSBpE+5JeymMmENU5KbiNLuLPPS/mb5NIY0ps8zFdksrcDuAsgsTh3vN1lNzMbUNARDkokyx5zvmEz2xjXA5g6BZCLU3yt1EEHx5nUgjArgvnQChw+exNCV9OdfUZAdGaQuCrCNFNYpT6sxV1w3L2vwuD6O2afV4EZfblmPzCe3XJQIoI6yX4hhaH+OiFlxMpdBu5NRFKpS7oPHGtZ5sEVerNj3+n0K/LgoBXTUA7Xl7ANaVqfmniwE0orwjO/hlcDHc5uaxcUpNFfSpdMOeiLyj13GikDh9R6wjASWOIzdkh5ypk5iCe9m/Fvpq7ES5YOOleWzv4czI3xqpxBZDjc9zrnMoRo7YMy5PtYRxTYwm2x/8VK7tNkrnTIx2RsVuI4LtZLAWQGcHkzjS1/9O4xMVxbVtIH+0EVqTiSxNEjj3b6PDg4MmVKIFeyq6WsqoDAbyJXkLpAdgT6243eB3TlyMoYKbDWp54czA/LS8uJVxHJmVvgUrsCOPhdoc7ze8gWwvNlDYtoQUdpYaSqDQOB5eNQHHvebcXqpEMOlXV3aWRV/xVeJ6rK92CU8bIHCNXNFqrvdJZ11P0fNsFRbB/FxtcYF8HjX5tRuNO0VvdZBdh7Ai+zMnaO5jKP+cNOss3MiSHPN1A3W0mBX4lkCXFT6WXg4sLYZ+ypVEqRioH/uOappXIOtvsTtirAchFRFLaAS+2nKp2lLb0x6umpIHuDMljLFpG00dwqk3OW160youK6dd19Xiheg8xZ8/viEdTqKffAdjV7utp9T7sjKNSCAQVJ4mQL8aFU7DgshplQgdMqgZ9966wB2gnADgA1ESMxFsAvezMpKXKumOEDJqcxrzssBbt4mA0b1cMHm6Pk56hH/EZPGVrWKVwQ2p0aIMs6Y8G/XznAwZ1W0+D35HkkPWNrgIaFrQszeQ+fUEpTv4cVsGt+/cAyHd+2aHPinBPqjg7SkRuJWz8MeyWCfowfXatG72xXwpEQqSgFPR2R82kng6DN5vzniN0dyx9q1rsQ8aV1AUhdUkWKzIq5+xVelznreVKGSTsnpB4EncAEKz8tmfG0ywa5Jgf4sUYMYwmsBvB4Ezv6cW73mjIvwlJ6tLkgLufLcoXQ3F84xPJ1GXCzHPTCu7m7b1e04W1fGVSNXSru2Qs6cKWBz5N3buWFbDdBWPzeHTkt+hR7eavhiM57ZKkTJhV7LBv25y7TOq8HbFWHj9M/p6b1DguMkZszz0rYLAChP+roqhNNA3IDNUUEclObp9TZglDPD8nfqyPPwxNSj8ewF64JNJoCuet5OZ26C3naRx94eD494KTy8SIgTpSCmZNCzv/1iFjuFxBsBLKskbbeUB630OVygaLzhLqDN6EeIMiOcejXxZ4sHiyIVI9ZosdUlOs1Rt+xK4E68uK5uNZsc9SkWT9DP6gEchKrP23Kk0r18Zdpj4BPhWKDwra4GPDeRl6ck0BNR6vIofgmEXSQwVUrVlemJce6i6y2KiXWyOHgKNRlJVefkCMzFpHoBozcCcIF24quQpRXkqEbmD130ydWF3NXIfGZvTWvd3JbweWMhOI0C2VGFLyypw9PjMTsnBH0/UQel8W4ibCklrW7GET3uA4QG64QvbdrIU3msKDW/x1eDSK0pJNFjYI7aLuJDz6lL41Af8oDusjKddy9Ujo8N39oEwIkgfs5+l7N71Mp6Og5sCTyANH7cXITSMO74E1HdQAa/BcK6sm48K08usNnZZJ+zgO6jDcaCsySfF+MarfEaj8VUFP19gVUgUnfMb8WMZv6eB5sBXzvH9fiJho3CnVMPZmrx+cVCDMTPLwr6gQFajCTe7XnYPNf1d+2SnKinpvC7q5vHmV9xEBZyi+YsIPFCSQ6Yc7SWAn59dwLlVQwGkEoATWVy4qfQLTN9KfkChzJD+H+traLXfZiCoO/pocb6NnzIF9jI29HP9NNP7f4haqYT9PHniwRy3AMU4+bEA1KR1B5HqltgxwNj7rXxVYH/Zlf8AgJ8JB88YF8qia8JwdWRw6MgoAcH6XY/hbumBrbZcvXMzFrXmMzThopQB3JckUV0/ajQq+nevJLY9vtYoI2T1evmWBCqEggihQAC/1yfFD8tCvpRoo0I8GEINFTipjPXRjGn48w9Uamenhx1pwiIo3MKxBNy4gQAahJAne/lb+A8c11xZe9MGKYEPlknxJE8SU9EazIKv0rA8iv7VBW+20Qh1QrfbjLNFXMrRmpKIUqxMxsKeY6KBaUaaz1dqW0BH+QBLyU9fJJdmVFXcC0ZKfF2CLxhLrsm9X52Rbwos3XQi61JxVaGOPltPLWIVRpODlnwB6cp+vimD3w76o6REVpVU4M/IMzl4NPsU2lKBlsRHd59o5y57K4ERWIAnIup0/6qoNfDQMCr6RH8gyvpP6wUrp27Uj7MdJpvR54a47xkwZXAXMCxJ07wFlfUbzX7e9/z8GkNeiJaBuB3wCU45uih1PwEfd5wxGZ2TozAOTkpvMpVaJijmCjy2BkL+jcB+LmZqBw21f5ksC+0o9CK5kaDmWoxb2kGFRhswexJ3lsYwN4KtDcvm8iZVhPOsQlPqFgfFeMGiaqUH7ePGfStAN4HYFPFRqPa0LT1QDzaG94od6J585VMVqFeZdCvAHA3c5Eq1Ga1mWoPzOoeYNBvAPB7V5ieMqs7pfpw87sHGPTrAfwuMHcTu+f3EFXfrtI9wKBnysFvAGivdOPV9qo9MBt7gEHfCOBXAVw3Gx+w+kzVHqh0DzDomWr+i7qcR/Wo9sAC6AEbnLodwC9U9foFMOLVVwypSETEez7/KQD22VePag/M5x7ocQln7wdwfdV1OZ/Hu/puAP7eBT1L+Y8AmOxmkNUerfbAbO+B5wB83gU9f7bEsyuZRz3bO6r6fPOjB9IAviCEeDInvYCIeGucXwZw1fx4z+pbVHtA9wBz854F8KmcdEHbOUTEQSrm1ndWO6zaA/OkB84D+Gshwvo3BRPJiIgzqN4DzPWKCPNkyKqvMZUeeBXAPwkhjtlGioGeNy++E8CtXBhrKnesXlvtgRnsgX4A/yCEeNl9hqIpwya5hEHPGVVV4M/gyFVvPakeuADgH4WpdVMS6LX2T1z9GG8GcEs1cDWpjq9eNDM9wCrNl4QQhwrdfsLiEETE9ei5TDfTFKrG7cwMYvWupfUAe2lYpfkbIcSpYpdMCHrHq8PBqw8BWD0XE8hL67PqWXO4B9gPz8GnfxVCnBvvPUoGvVF3mKPD5DTW9WvncAdVH31+9QAD/isAnhBCjEz0amWB3gCfqycwT4d3A2cvT9ltTPRQ1d+rPVBiD7A6wxswMOB/NNFeU7bNSQOWiLYDuAPA2iolucQhqp5WyR5gwO8D8GAhD03F1Jt4Q0TUAehSgP+mCvxKjme1rQl64CyAn/C/UtSZeFuTlvSOgcttcMrh2wDsMizNKbdbHfZqD8R6gIv7DAHYD+BeVmtKVWcqDnq3QSLiDdluNNJ/ztbFrMJt1vXARQCPAnhGCME++CkdFZfIvCOhYWnuNOCvGrtTGqIFezFL9mEATwI4AOCFyUr2aZX0MamfMFWQ345wZ5Ouqt6/YAFczovz3tC83f3PjHQfFkJEG7WX01Cxcysu6QvdiIgY8Ozt4Wpq26opiZUYunnXRtbo60eNgTo6XW94RUDvGL2s53Oiyg6Tj8sUB14RruhzTFdnVtstqwesj53BzTv/cTT1nBBisKxWJnHyjIDN1NrhiC5zeq4GsMZMBp4A1WN+9wAHk1iac2LHY+azEkJcsRrnMwL6mO7Pz8Cg5+rJrAbt4V0g5/e4L8i3Yw8Mp+ydBMD89vOVMkzL7c0ZB30B47fJgJ6rrrEBzBOA97StJquXO7ozcz6rLSy1me3I/z8D4IcAmBPDRikbqjN6zCrQFzGClwJg9ycDf6X5x27Q6jG7eoB1c07JY0nOevmPr4R+PpkumPWgd4xglvQ8AbpN1JftAa7aUM3qmszIV+aaAQAvsQ/dSPLTQgimCMzqY86APt6LRMTSnhmfrP6wK5TpzlzJgScHTwT+N2ffbxahhtUVDhIxfZfVFZbk7G3hLedZVQlmg8pSTn/NO1AQEVdoYzoEJ7uwN4gnBq8IbCjPu/ctZ7BLPNcGhw4bkDPQn+eAkRCCPS9z/pj3IDB5vpzmyAkwfPBKsNFQJJglyivFvO+HAkhlCc7Sm7OM2HXI6XXWCL0shODE6nl5/H+Nzk1bCdOMdwAAAABJRU5ErkJggg==",De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu29C5hdR3Um+tfe5/T7qW6p1Xq/ZcmSbOthG2NhZAM2ARJuAh5ICCSBZJg4yeQxyZDc3CG+38yQTGAmCZnhJiEXDJkAxgbCxWDHYJuXjW3ZSJYty9b7rW6p1er3eeyqdb9Vu2p3nd3ndJ/TD/Xp1tn+/On0OXvX3rvqr1Xr8a9VApVjTvcAEfln+rF6WRO6hBADc/plrtLDi6t0n8ptZqAHiMjrGc7u6Br2Nmxu978rhOiagdvMuyYroJ+jQ0pEVQC292ewNpWVYlG9/2MhxPE5+jpX9bEroL+q3T09NyOiBga8BFbsPw/c0An4wCCAbwoh1PTcZf62UgH9HBtblvABsEsAqyGBvd0SOzt9fgvpA1+pgH7iAa2AfuI+KpszThPVLgNuALBGAl7PkERNEqivikD/sBAiUzYPXKYPUgF9mQ5M/LHYaAXwBskS3hwvnpfYushHUmMe5AMvCSEOTPaVzl6mFUsXiFOTvX6uXFcB/RwZKSK6PgPc6AN6zCSA7n5gUT3gh6AHBTiTTIqnSn0lVpleOofVy1uwfkG9+Fap18+18yugnwMjRkRLJHALgHr7uGf7w09Lm8wMABAE6KqpEY+X8kpExC3sOHBJdq5ugmyo8p8WQpwupY25dm4F9GU+YkTEQL9NAh3uo54fCv/qrBn9lghdyWTxoCeiFjaKA4lFvSkp2mp8qvLxihBiX5l3y5QerwL6KXXfzF5MRDw+N0pgM4xao1UbKdEzBLTWRPo8JCQIuFzt+08KIUYmejID+JsFsPB8P0RWSqxo8qF8vJYE9gohaKI25urvFdCPM3JEVAugHUAyftrzXcC6ppGgr6u2e/VqkZoJABDRUgncHr//UEbiSA9wwyJf6/as4bNznqQcVtns0w0NDRfGex4iapTAbgCtEhA8gbiltnqf/f3dAJ4TQlyZiXcqhzYroM8zCkTUyupyEKBFCHQCqLanWZD99Dywvg3Z2iSdIaJhlU6ebWzERWB6JKTx1txp1JrRcZLAkJToT7ERyxZsCHhGPwHptPKfa60VJwuBi4gSWWC7B6zn1UNK4EK/xOIm3xrEKR/4iRDiTDkAdCaeoQJ6p1cffJD8974XOwEsl1IDPeqfEOyjUvXYFWBZI8Aucv4tKf104GMIPvbVQZO/Ri+ZxMgR0QYJ7IAOtka31h9e7gY2LgI8I+eVDJ+BgKwcCfa2tNQczXdLoy5tlsA2225WAq/1SGxZFN2GXZ/PCCGOTeKx58QlFdCbYSKi5mN92FklsLizPh/YjTgFMJAKQdbERqQBnDPalPD87sEsDrbV4vxkIqRElAyANwnoVcbONTPlgL1nJbYvzb23VIAkSN/z9zbXiMMFQL9KAm90J3NPKtTd9LuYV/R9PCtE/jbmBKoneMgK6FlCEgs33CklOl7rAda0wAZ8Ip3Z7cfjRttd2RiC3z3s355EKgN1pq2u6ielAoWI2iRwjwancwP+OJSVGMoA7TXhvfX/hm0jJVRG+S8sbRKvxe/JEykDvMMHmLcTHU+fkbilU+vy0eH7eAXAvvlqzFZAr/3b9HYACxhkDKpTvcC6Nh+eP1ZDyQLo14ZfKB3tGTlnstQNIUT9g3Tu8MmBF9+6c0FfseBPEb0rIdE8ej77ZsLj9R6gsx6afqC/U6zThOjPAIrEWNDzpA4A9tSsyfUCAa92S2xaZEEf3scj/0wigR9MZpUq9h1n87xrHvRE1Cml9mQwVVcf54ckWE9e1MR68+jB32UUcKQX2NgWk/BW2vLXUmNRH70pHTTqa2ry9y2tmzjoo6W8xFsBJMKmQrhbY5VtiY76cCXiX6w+zwZpAMhsJnhh7cKa192nI6J1GWCHH/NC8Xs2MXfHz/UCCfj91T6+LYQIZhOcM3Xvaxr0xkNyE4DrpLTh/RDwrOasawvBZQHHg8CgP9UPrG5x5LALeANEg32tinADNdUYTiX8F9aM41nR7Wdol+eBjVhh1wt7/6EsdHuNVeEz6enAE1ECvAIpiSBF/t4ti8QR+3REVCOhJ5GzcoTXvdrDvnleNUIvkJ5c4eQJGqp8Jq9xs3mPjxN5bwa8hYDXPITrKCtXw/NrZZAhwOtLUOLAsjZ0ffWroHvvnZpRP93gv9ZB3yol9gCos65I28GsMhzvAVa3GW6LMVgPdgPr2gHfLgEO4N3JoTUOCfRngSoPqKnyKRvITMLzX1raiNeRJ/jDlIAgwBuEkAu1FDcPw+3w32euhOBeVm90eQN2mdWqDbJZZFQ6+/wNq2qjZJI00WYf2B4Bx+hJ3OaVlAwNWKvQjxrlsr7Kfygf6I/3UkvSx6IEye0K4hYJJIngkQIT+QU8j5RSUIr48RWEf1wRvp3wcH7tAlG0ijfdQHfbu6ZBf6yLOmpq5Fs5KBM3SXnEzjO/RQGdxmBlg3F/N7B98ag+bXVtlpBWutsPGqhDQIfxjPD1JDBCVf4P1zUKDgLlHES0SkpmUkrfTiBrrPJzdI+EK0270ecZuCllJD1PAIkRn/xntq8Q57hhNl4BvFNazo5jeLDXpj8TSvpIRbJ6FEE21eaCnojquofwRinVJnjeZklK8DMp/j90l4YrhfmgQNCw178JGZA8CElPXL+46tXZNpCvadD3pWh9z6C85dIIsLE9lMieVWdY1cgCZ/qB1npo3bd7KFR3moz2nxfwDvhTEjh5JfQGaZJ7iA7KSr/rxACe+5nvII0gNBuW9EM88pvY0JaUTDvIcYVqVUYBF4eAxhp+Rp98Kak6CcX30CuBBIYV+pIN/vdvbROajkZEmwyNwSrt0cRkLn5vFlhjJ7QBbTar7RjZWh+CnifOyb7s1mrPfysIK6RAgsHMYI9eiYHOSKLwFS3g9SmjRj0/0OUgkD/uXVr96J5ZtBeuWdBzoGYgwK1JIdcyYNgNyfryulag3pAOQhchcCkVBqJY3elsGnVn6jHNI+FtFkcqCxy5FE4oq+4YyU1fPgj5uQP+9YLA0V97CN/LsZ3ji4H+2xOglU3ou2+XPLauGSPaewMgnaXuN61OPM6SlCUzgF0SWJ7r9gwjuGxgN/ECx1OOVwvHKCZAdtT7D10EqmlQ/ZJS2CYJCT7XSu9IwlNo43Q2AIJ/N+Le/h5K+tEJIUlJQd7jwTn/Wzt3FrYZ8r74NH15TYM+FeBOT0gdAGKAsvrAQpwB0VoDtNSGujvzXNiTM5QC2owOXEidcaU/qyJneoFlraOgZ8Ad6kHNn/9EbBQemta202gkjLFh1AVJ2uuDLCOQ3TKsviggYKnOIFWCVjaj+w9vpsM+QCFoqevNa5KaWkxEyyVwK8LIspHw4dPxJDnYA2xuc/z8xuPE7ZCErMr4388ksvcIz9+mBJiDFAE+iNQWICDgZC+wUk/dUKUpBHirBpGibuWpB3curp50wstU8H8tg95LS/yMgNR+mEiHVgCrDCMSOMVBKA/orAX2dwErWoHVraF0T2XZpw8vMjYdq0BPCGPEJpK+aktK0ow0MyMePSlanzrnXX/Lcilqqhy3KKsH7Hc3vvc0G6iSJbg2UvXETAdAmj02+jehfutmer61FhkGsiK6cM8XEk8ta0byBx/E1oYasHrjCHoZBrIIdLIfagtT6cwksMayNqAD1CaTYo0HtAaGTKTVGVelMfr7iT5gcT0haQx7d0KMqjvhfewqoT8L6q3yE3+1ZZEYlxw3FXAXurasQW9cihw0Ynebl05DVFfrrk+fOIGLU2E3cttpiXcQZLNFhWPnhZLR6KOpTKjbM8+mqRbe3+/3O84PoHokQPWCOjWmD+1EYHCua0Lfu9bT+YiuIIFHT4mOS4o2LG6MDUsJoGeQZwO2F+T591zvH0lLUFb5J+/7DrzWGmy+sVMtSQpPT0r7PFbHTnpKrWjE0I5O9N+2jHSBqAxHtljdUaI16WO1MsavBWo+MA9ngd4RYFFdaL3a+4QrjXZ96uPScLhyGk0qOpGIjsNL/PPOpVc3RbHsQG+Bns1inRDwhdCAZ3hYJyH1jMhsXYJ6ahJIZ4jSdcnkyyywSvEKsJ/5jwO8jZTU8m4M4M0ouurK/gtI/M+f+quO9mHxdYulaKkDmnNoaWNB3JwUXe9YRjpYZKXpqWHR8voIbbGpf9FVkwB9YzIY/PCNiZ8GBHU85T/9376P21ctkLtbbKiN1SPHw6JVD9KgpIW1NLRpIQZ+dZs4KQSy8FBdI8T1EKjXC4KZMRa8rm5uvVueR2ivC1co14Njrz8/GDoItFro5RrAem54+NGuTv/LVzMQVj6gJxKXgaYmqQlRnMLGcsdhOY7Ckmu9sK+cDU7ua80uzNJFyo689EJjY18xngE2ZFMp3A5PrnQBH312/e+szkiI//g9sXrvRW/J+26SgmkA3gS9x03UQXTdsYhet4BngF/OovbQgNiYJsqV9ZMA/ZpWeebtq/3jGYL8zPP+11/rw3s2LJS7mZtjJS4DUqstBvCWqxMCVdCuDpV+/1acWVjnLVECbABrO8IekUsykt6h7t6fBqoTph8iV6VxUimAAc9dtIhbjMR87orAYA8o/Ylbl9VdNSpzWYCeE5P7+7HiQiB3rG32cxI24kEjHogjV0L+Sa2R/Q5oSXl00k8kjhp6r7vijlHxBtJ0vYDkiGx0WJUmWq5N40+dEQ1/9IS35e4NMrnK6MKFdEYXLDUQXW9sCyV9pP8r4FxatZ4aEesCEqMJfyWAPlCgpipx5V0b6KAgqEAh+Mz3/H85IfCeDYvk7cWCng1m7sZfvF7gbWsdoLurgwPoUN0hsGpzegBY2xJKHVeN4nPODkLr+Qx417C1d3DTsoQQR3Yt9f9yov6crt/LBfQbpMQNp/pR3VQLtDguw/BFR2HNHhQ2NDmSODakFJ7pscta+ueaavH8eLz2S8O0tMaXewpJd/fO3zkmmv/L09j2vu2EhoilM/4wMBCqleje1UavJ71w9beTiu/Zlxb1Q0BNQikOETUoeIN1Nd6QjrCyMWv+7WeXivGusB4fZBWE52UXNtBQnadPFQmPTm3qTDT86RNq93BArQuKlPQMej62tgP37QLqfBHp4nF1hkzkiUGcImjgN3NfOPo7A/78AFCVDFUa15+fD/B8rVRIJ8n/xM5V4vx0AXu8dmYd9ES0UErcxQQrndBwRWJ1k69ZhGM17dCfzue53Bf7ghq8DsNxOPDPvZrFi28tEP4eGKBFqkq+heeJXfJdslg0GSTwzWOi+e/2Y9s7ryfUjkkeLNzFlwZoZGnSe33XUuqPKMBGv+ermFaQFKqt2ku2pLJqeFE9dQek02C19BxRwBC7Ug3BTAejTOCM+6G9UTSsbMLC5Y3oeOaM53/kEXibOySaQ9UvlMLjqDcW9L4A/uIuYEFNCAkrvaNRYMCzy9S86tHLwCoTYbD6O9+nezg8YVHDKODd3okkvFkdwpuxh1U+8YaV1Q/Oe9C7PHb7shwe5yBRZ73U0VF7WJfiJab1shfFqQJgwe5OE3YbssdlUOLydW3+/vY6cTbeoZeJmkVa3uERmrTOmyfQZLyPePSYaP77A9j2rk2E6hJAz/mnpy6Jng9fT4cSSSjrxbGhf36mpCfaBNCaBVRzEt2+oEEGEAt49o5w0kqLoTEz0NldKTyVWNvmt69rxcqEhyp2a/6HJ4Hn2d5pI1SL0kDP/fvJO4G2OuFEVsMeYwmf43unkI6xdZFDQYjr8HFvTgz5OR6l8Lfn0kf8B/bsmXlm56xK+hTR+gSToeRo4jVLPk5fW63Zf2FvWMDzOv5a72hQJQfEVsI7tN5j/eGqsK7FHyGJn3Y047jr4WFPUf8wdkhPbrSAjyaOkahW2n/7iGj+7Culg54F5Lkrgl44rQZ/5Xp6rb3Oy4BVHaf9Koi2wQAtDWwcw0vXJeW5AFDso2d17komDJSxlOfnrKryq3Z3qk21VWBnocer3188Axy6DKxfQGio1r72kiQ99/Ff3gksqA0h4XJn8vFrzvQBS5pNME2FUWvP45VirITPKavgqELu+ClSh4iSn9+9UvTOtLSfNdDrBOUsdnge1ue6C0Nq7wETMXQIgDo405UCooylmIfFlfT8mWvDsP+ZqQOCkJbSP7hiAQ66wL+cpi1Q2JaVMqLOW8pAFLAC8PjxyYHeDiAncv/kpK4rk63xVVRvkgHhCySCAD4bfvx3oMD83NBjaAxK2w5/2VLt1fqe8vm3y6nQD879tKadIjtnMqD/iz3Agjphgkgx6W6ED0/ijAmQ8STlYzALDKaBtlpAOIhywW6JaFaI8XtwHCOpJzr76cTFgLwH7lg+82mKswb6n/ZSy3IfdzTWaR/8GP1dswBdgBuvDbMCNa3XAbzuyDyqCUsfPo3JYnwEhBGC/9y6ttFkjsuXqZlq8JZAyVpX+to2reHJoP/cq6VL+lxpZvRrC2SDbAtuazhyIMjSERgs2s9uVzLztw4WOT547hJ9Hn8XRlVLlvSf2MPGZ8gcyyfdrUrSNwIkPKCO7QYFnBgAFteFdkc0Od0Xj3l3+DnZ2OWAlXb9ahtCDSmfPv+m5dUvzWdJv+i1Xk5ukILdj+wEsDo8dy4PHDMUGbBafzcZS0wIs4cbOIqrJTatj8P8PEmsERlIDGdTg09uW9kSLaNn+umdRLIl8gYZFcn1tHz3uGh+YIqgdxER6bRBKN018O0kCJO8w+/4s+Nfj4xSc66eINZYnRbQ504wK5nt8/Jk7GX/vBeC/FRfSDYzRWT1K45RZ8w78Hj1DId8Ip4k7jWKaEBJ9cAda2eejzNrkp7rM2akvJN1bga39YjogqQG9KzOsDHKnBem9bJfvlFTn8IjLt31JDC6MrfL6g3zZqy6oiWgvtLvUoSnb1gsdHG8bxyh5Wsa5G6l4DGrskYnfRiPiWnvu6dE8z/Nc9D/1ztCg1kD15HOIXNytN85MYalM48PHxyVZrUmDnbmCfVlwuCVpk1wEZ/GUPfXXHw7jjr7hC6QSHz+jlUzv5vKbIJ+bUbKN1jwckey12aEiVXskmwNwc9gH5LhZ/bf19eOgj0u3S3ouTNtLiu3o8+z0ltzzyWU5x3fuSTB9V3U3r2UbF+Hnx0YlrX8HDYrinXVgZFwBdp3UTR/6/jU1Jtyl/T/92723ri8eDMBYiE+JsSxa5I9RotZyjO9wLwc/3Z5OPThs1HL84L7UxvpeaKy1o8voA4Jb54bsul0ehN8f0fUn9b/bL64MgJwEjQboamRsPM2tI8FPIPZgj8yPE02EWctseqk1SXHWmaviKaBKH//zStxkM3cc/103UggdygFndCpqbxhhQG9VDx1WjR/9cg1AHoWKo5gj/jzjrRn1etFdlm2h0KKbadUwFE2ZlyO2lwMcubY65XDXO/OHwt4fYLAs13P+Q9cjXzaWZP0aaJNSsodBRmOppMYgCzt+X8OSEXGkgGxdYNEfm9j8NkoZlXVKNErYjpaHRoY8rL+07euEV1n+qltKCVvIcICblqv3DZn1ID+y/Mc9PfvZpflKHdmVKHJjaxyBhdHXG0GmR4qR7dxge2qRq46Y9vWSVeeUALe9960Ujzk3nOmPs8a6FNE6ygjb41UlLj/xnVHcpBmKFR7OLRtdX7XkNXS2V4jgSP9YQK1PVi628MayizShOefTi/Dj98MyNd6sVVm5JasiCrmaT47H9eCpP/4bqCVbaaYOuO6TQcyoerCzMqIcFfA9z4R4O0KQAIZTwZ/c8famryV2aYb/LMG+uHh4aXKr+JKBNERj6zGA0Zs1Nb4oasrJ4JqpLtlMvKYHeOMJbNhQTQ5HNTbFUJyCFwFe+9cU/363r0vJETnlnsgEppjP2r4Aj+YpHrTngzQkqAxOYAaV0aPsN4bKzEjd6WTSeW6J7W30rgsmRaQw3k3bsxTgwJnhxNF0xC4uf/rdkMBNv0UjxGwWtM1GBq77HjIJ93j9b0j7k1sIkU0ZK3aUNedq5L/abrBXai9WQP94OBgB5I1XI9FHxbwbqBqjHfGUAtYGjFH22VEuoAfyYRVAur5HDuA9j5OorK9RvhI7z/rf+v3bxMjL3Sn1iGduNW9jj//8LRofrhE9aazOsCe5hTak7nht8kMbgwz4zbBQDs64OPhE9V45UqyKO6NC3o7IeP3vMKFq2AmRsz3bh9oIumeE7Cyol7RF+5cl/zxZPplMtfMGugHiBaKjHyLcczkDTZFUHFC9hy04kwmdm26BC6bHM3XHO8F2Oleb9xvUcUiuyLYCWDC+uwqP3DZf+2PbsYLrwDJwXPBmz0lFrnXPXVKNH+jRO/NL3f2oyMZl32TGabJXfPl41X42vHaSDjk49NbwpkFPa+iblpgJJQIOHQJuG7hqHcn/lRuOmAh/d29JuSwUR9R4r+8de3Vq4kza6DnDYCH0sEbJQld2CjSPOKRVSfjyBqrZ5i66gGcHWRVkMhHz/55k+nPxpZeRVzpHmM4ajVGanVoeF27/9zPrBdnfnSKlniQNxOhQdsKAJ6eBOh/rbMfC2YR9N84VYUvH63VXijdT3mSSFzQ/+lto356V3IzOFmtYRdkUhcbzFX7o2kd8727AI9TEsJJoVKAeOgta5I/nNy0ntxVswl6ry+Lm4SUm3L080i0mKCSQzizAGZ9nKsMtJud9aKsJCZosb9fAq06xJvLX8/HcLTXcmGnhU10/KXziWf/7M2Qz57B1kCOGrU/Oiuav1mipL+uNo23t6eYW3PVjzNDAp89XItXLhev3rigd0HKhmtfCljIxqvjk3fBbidCZKuYN86nzoyqTSolyNvnef6X9szQbi75On4WhmP0MXrS6esF/BsUZ2dalcORxON5ZziQxYYtG6tMNbZeFtY7+Tcu2eFw66OCSJHnxvrizb8cXaythurtHXr0I7c1X37ySUrQWvkOFaCRV5hnzonmb50s3U9f4ykdsh9dynI/6pQ9yy235T/Mi0eUA2vQGiPV8tqJ1TOl2cqhTRzuRqIlem/GQyrwQjpDEXx6vv5PbgulOR+uocl0bk6cqTJS3l0F4qqQNVzHGLSm0THuTIISRJeHgit//nPXLdRJ6jN9zCro+/poQUbI25Wnc2KjwwI47nt3jVX+zBW6sky7NQPFHc55mZzAwIcNLEUqkFWdnI0UNO9+CFhk6ApK0fkP3JD8Hl//4GFamEnJ2+s91L9wSTQ/NgnQ5x1AJ4GCiWHlwr1h0Gud3hys1tiKBxwkzAG7Pceg2A00jQG8mzAS5+aYia4gjnjwHrh73dhyh9M9CWYV9Pwyl0boLillZ16GY8z3HgcvT46zBrAc6ubkCi7YxKCPdHwjAV27ga+LJL6pUGzr2SgPadT53//gOtH93gfJ/4WN2FRdJbc+eVIseKa7dEk/l0D/sdscl6UB6vG+sLqbpWZM5J2JrxK29o3bD5GL1k4Y7bVk04u+8jPrk9+fbpDH25t10HenaP3AgNyV8OFplqUDSG2AxvzlehVwjF2WMJxYwqQ01suZdsBHjsvRGKv2e0tL4PbZyOPoLXN6+CLyfFKZ7JGGHcm99/K+UUTim69ndz573t/1r6dwQ6mZU3MN9K1RPTTg8kjIq6lzvtPvY6XzeL53g357So70N1RpzrNleyeiigsavJBI/J+/OsP6/ayDnsle1CnfU5eAb92RTCXmTCE3QBRxbFzVxCCK+R/MqNT1Vaya4pyn54nNqLLuT6Pncjqfrl1puOB6FSB/kGrwk/u2hNW3Pv5x8k7fgrsPXFLvns+g/9BWYDPzm5iGEYQJKqzuaI+NI5U17h3Aj2+shoNkpftwOiybyDYCq0/MyU84KBys9X/33uUT74M7ldVg1kHP9WfODGGryshtzGpkHZslPqfIccHUQU6P40RjrhzMtSVjdIX+kbCAKCdQr2sE6s2GBVaqa+KY7aEY4HncOAeVo7zcsJ5YfI7vE0ns+62bBe+9pI8lf0Ubly5Qvz+fQf/b20OKMOvvA2mu1gAsNQ4BI+BDQV8A8Po3R3+3RjVnSDHvnmkLujR4WIRWj2V8wgxfC6DnjjrWSyuFkrcGhKTLh2epy5FVVj/YI8N0YS2QDUXVBqS4fDUT0Xp5AzLju9egd1UjW/jUgJgnAqcSMp9Hg97WdDR2BAm/98owHrvfJCov/VvasKRJ/cF8Bv0f7Ar7mFfZgSzQmgzT+SZSZ1ywsxeMGZecKFLnhymB3FZjMpTq7GmzKtKYFULQ2eF04s/v3SKidMqpSPRC1866pOcHu0BUP3AJO6WQvH9rBEAXuK6kySmlYUQ6X3bFcO91tNYBvP5spJPLnmS6wpChK1jhxYPObZGADHz/2x/bGUYKrwXQ/8dbQ1WmezDUs7lQE6s5DOCoqKyTyhiJaRECmoHNgmjYVFhuqh4VKNHiYD6MAXxYCOShd25MfG+6NqAua9Dzwx26QKsDyFsCgURkqMb09zg/J9LVHcOW82q54zUFwaEv6JQ7c56pnaQniVuL3hrO2uftcS0WOv6x25JPX0ugb64FTvQCS7nevMmGsiqLJcK5YOK+4u9ZenLerI24xINU4/nv+VwhxDlC8NDPrq/S+Q0zIeFtm2Uh6e3DHOjKvlVK0eHWfYwkvMObyXFHOmoMg5wBz4aSzo01DUdZU8Ye4L85assVxBj0ehJYQ81sXBYu2f7lQOEH9+8Rg9eCpP9DlvRemBHV7Pjr7fjEpbPLsuRzcn53qzgUlu4RU9Ncm/VBX3nnxpmlJZQV6F/uHlycDWo4b1bHMO2SGGdTWrUnX3SVf2MqAhuo7Mmx7kmjBUX5stprY8hV1v/PP+oJYFYIIj+bVZn9n9hTfWiyoOf6TgykMR1tqvzqd3QisjYJnEGgk75NnEFHbi1/hp/RRFpJKb0xAktbSzPmv/vSHqQqLSL7B7eE7bBqwzsYusdEHpq4790VVmMmhGnYnTRR+0TDMkh//ue3NOyfKWlfVqBnT84L53CTUnKz7jSHKBbx3w0zkn+339nNg6PvzMYK2v/u7A9lvTNsWGw6QYsAACAASURBVOlZFY8LWHXIiRUI+CcSF/HcZ7uxqlRDdkV1Fu9sHw6X/SKPmOs7vCrvl6MN5vv53LDAFw7X4tUSqMW/sytc8Tp03eJYore5HU+o+OFSFqKEb6d0t3t+VAzZXJRzrU5IFySgupUK/vEXNteeLLLbSjqtrEDPT/706b4Fvqh/Q8B7MbkqjQN2G3iK6ApWOjuTxAadGNdJkzJoNz9mN2ctTwYDeivZ3fb4s1Z5BDKU8p/48kksKBX0H+nsR8sssiwfPlmFrx4rnmX5kRsBDk6xlM8n2ePzLw72iaS7XdUsQseoS7mu0Bd6hvzP/dsZ2Jeq7EDPHfKT07Q+yMhdKgHP6u8uX15LdKd8n/XO2MlgqbT8vVZjbO0bLluhgBEGPQex7M583KDdk9WZQFY1UuQ/9bVjqCsZ9Ev70eLPqE02roT7KoP+aPF8+p9bB+zQO3CNBX0h/d0arDmrTUzKa8eA02g+MlpOknhIwpNejf+/fn6d4A03pvUoS9DzGz5xMnuXkkIPgVvsdCLfe+SxcVyfzBK0pUNY129ibo7RjSyrwapI+m+H7RiWH/GHHzuOgwub1e+V4qdn9eYtrSNo8CmqCjCto5fHQLTS9vywwMMnavHsxeKpxb+zw5QAMQ/pAtWCegydwNW+Ys9jr7ETJi/Y3eUjtpsJCTosKPE30+23L1vQP7af6gd9eVdd9SgDMwJ8PLLquCLtKmA5PPy3raXD19vgiF0VooitLRLl8H24DQ5esRP1X4/7L3U0qd8pBfR8b86R7UjK0R3GzSDnqAZuFNPdnY8NVMd4tZ91E041NAtO69JNK+CVKz66R0rLkf3dXaMsSzeyGpf8+v4x70w+QNvnzLdy2DYiIeAC3k46okEi+tL7t1btnU5hUbag55d8cH9q45BM3NQ3ggQHnDgZOfLVmwQRq4JYiW2NVf7ebljM33EdHT6HXZn2cNUg7cGJJZjbstgJD3Ry0Ee/VG8qFfR5B6tMqcUW9IUAP8b3HpvAMaGdoyPFDdbIb28mT76UAz2xgUfevyXxzWsG9Pyi3zqY3hIIf1sQwOOdvXXCN4ezjc+dw96R1HZUIf5O++kNi5IlvJX03MFuZFZ/Nu3YycMqFW+raT0nZ0f8pv5AzWuWJYO+McaoLOh7Hw/wMc+MOxmsd4dPYYqC3i5UxXj8BuGcXON54uhQavhzv7a98eJ0Ab+sJb1eFonE117P7qTA22j99SxxmEKgJbGhB9sOsVFaOxGsYOe/2fhldyXXqrTg5kFg0LsBMe3lMT57nji6jN2QaO5X85tPzy5LvVuiBZ39ECV6WL0j/HeM9yX2ZSHvDPctF3LllZsByBQGd9M6I+GtxMmkSf3Vr2ytOXrNgJ5f9NuHqXpwBNszkKuhjEfHqC+uOqOBbSJWNnAVFXky3hmW3hyJ5Yq5FuxmQdBC3fL1dTum27nd7gHRPIT5Dfrf3mEo3bF0Qdf3PmZCcBAt9mU+sLOA4u85s62+Gnp7oLAu/SiUcw1epcdDCHbdJz/1S5unr2592Ut62yVfeOxCfaKj46YMyZVKgP+rEQIfALydQUBfGsrQ993I6ni+d71CMGWZc2ut8HLcl3rLeV15dHQFuDgsmkeuAdAz9yZSR5yJb9W8YqU7X8rceaaLc/FWpimzRLcbOcQDavw3qzNWn3R/DwL1qQ/dWKN3aJyOY86Anl/2cz+lFqjgVj/p3ez7+E1S6AhdjGJf74j6VGTUOpFVvi5SXxyPA6tHfD5z97VL1BZrNepSpP4Y1efSiGhOe/Nf0jPox/je87hGc3zvDqWCvV28vyyLcaYWs3BhGyzplPJ2AR2X7qOwN5NPKXYwXLugf/BB8sU2/BlIfUwSEtrLoGmvYn/XgPokd5NVT6zU1+BlY8mICFfn56JR9nD981Ylcolql0dEczDPQX/fDkendwREXLoz78dSjtnmYRcpJ52wusKThgGuBUoel0wE+FiyCV8xRvqH7M1sQiT/x/u2imtLp2dgPnJsZKVS1V/MStrNy6AkgmKWBhcPVWL/6V71yXy+d9bN7QqgJ4VBuQ1GccaVPXLcn249e86wyohmdQ2APvLeOH7zkMAWJt6zF6wuESaKpAmo5kpytva8k1XlaCqj6pJVJflfE4NwiUVRMCtnZRFnRSbzD7+8s37a9pidE+rNY6fofUGgPqMkWvSyahiGen+l8PNIQDgnlRjIKlxMBXR6KIXXe9J0Nu571+qOkygeeX/cdEHHgLW2Qf+IaFbJyak3YzrZcelpf7WdmEb6ad662YKHnzcIRrfj0WxKp1YOb2dv+8Ruba+TPiax59RHbwwpxVz248JQGJnmpHDefVwn0VNodzLQXSmeF6wxsR2dk+PODL/NUXdcwPN7Cnr82OWnv3H/nj2RvTxVvb6sQf+ji9SYGVF/G0j6YKjKiBDkGugEhVDS689G6vPv4UqgwXE5FYhnu4foyZ5BOp8jya2v3kRgXbJZRDG2kkkBfSOiWVSXBvoqT2FrXRZNPu/wHRuquJ4c32reoCECi4MOHZmNuLxO5QdtDYYAPTbo4cBlHxdTiaKLPb1nQ7hNZk5xKr4vqyvj+N7H8GZciR777BqrLuBzkkysAS0wrFTw1V+7qU4n8kzXUbag/9EZulWS+t9SYY2WZKYOo3LUGq3iKBFKOvd3ngy2bmM4CWgkEPvO9tOD3YN0Rkst04OaTWn0Ij0pnApr7J/nQ0d0M35zslqVtHnyntZh7GiM0tKna8yKaoeDdp87WoMnzlUXDfp/tz220cJERLE82326qmLO55g6U1C6O5NdEZ0YSfZ9+r4tiwaLeukiTypL0P/kAv17qdQnlQqNVQY3WSkfgdtIfCv5zb82CcMaubF/1ZW0eOzgJfXVkQBZLdEtMU2je7T2pZ0AlsDGoK8pEfS/vrQfzbPIsvzOmSS+eLhORz4tzUL3p5WkjgrFX310O9BsonkT+d41NmOqSF7Ax9SZfMYqX+faAPocASlk8MUPba97pkgsF31a2YF+30XakJHqkCSIUFqPqi72Mw8ad1II8Dy/GxUnHGD393CipCXOvNyN/35hkHRo243GugzL0G3Jyr6O5DbX1JYm6e9sHcb2WZL0rN49cLgG3zlTvKRn0DOXXoMujzpj1ZHJqjNx6R6nOLioFcCBY6+//vf337tl2isjlB3oD/TQ8rRUR6WiJEt3x1gN9ffo/1w93hZCjXT+nMkwygq0K0Gg0H+oB395rIdOxCkJoXT3cybDYBbNdSWCnnX67Y1pLK2OsSxdkRjX7eOGXRyAVkrH9WanHTbUn7uUxIFeH+eGitfpf8OAPh/g48aqvn0eZqSdGK53pmjpbt6JQL1S0mc/sqPmSNHiu4QTyw70/Ow/vRD8nPK8z0tFLaEkN0asIhCveznS25Hk1gtiVKC4azOaMIZNGSgM7uvCfz5xmc7mqjMhnS1MVAnTyxn0DSWC3o5DVKsntv5benBUV8ahEtsVx6oj1psTpVA6teYjlc6AkL07rNNru7aEqsUfYfXG1PR35prFd646E6Hb8b4Y0W3saT0r4oC32XBRo84k53M9eFkl6Gu/ui3xpBAzUxWhLEHPHfJiL62kLP2TVHR7CNaYmmK8N6M6fP7fRw1axy5wvD9ZiZ4nTuBPrwzRoC0NImUIdB9SG7wZ6TOnZ9KgHyOEypRazOmCXKsmNjdzKpoVK92dORHiO4/+n+OZMhoVkfrmR26qeaQEwV3yqWULen6TB4n8Nd3qTwj4T2zUjqouedScmIE75tw8BrA9ZyCD/d845IXBLbdIFOfXMvAzPgYVmpsbStPpC47GHAB9PnUm3/Y6blVi7j/PyPaC+nsB9Yy7xPO8x35lq/9N3tC6ZCSXcEFZg96+xwsX6FYF9b8VsGbUJx9K9jA4xT77UAXK69rM8enn8/oQjvT6f/fUCfwoR80xE6CqSmIk5Tc3zHPQf5iDU9Um2JWD2txNGlx8hTQQDvgpnajT4dSxH1PzMubitKtB6FtQj5z9evXj998/s4Dne84J0PODHrpIjYNK/a1U9MGxQSn6sQz83+QdeDkyHhCalJILSPirSal1ksQtiuh6vRt43NvDfv5w4PoeOuj94eUMRqJCrmZ0efyDa0DSM+i5NJ+L97zS3fQLk8sG06wGKm37MmXYRmptnR5XV4rNI/0TQVwGgn/98I21T5YgrKd06pwBvX3L5y/S+0iqz0hCi6UjkBCPvmmp9/bxeuLhE9QpMrgnUPRrKrITQqlvjcZTfeLh/++Q+LrkyeEYWJqnH6C5val09SbvOu0afMYhrlcq5pw7lAT9ExvdjtHqGrTcjKUk6H/teXwZ0xD43Yw+HeXaOn56266VuB/aBjQ5hqxBZaiTOwKAqRvdA0BDDdOFw2hzDresCP2dSZecyltVlXzolzfhAmbIaM2HiVkD/aPH5b+/Z7X/15OZsi+eG1kZ+NVfVIp2h4Er79HbJwC9e5+vvkq3KaK/kMRG8qgBnFXiygP7xXv7UmglQnXoTQiPVIDm1kmAvncYOHNl7FvGdWYrUfVEdjZE1pPBgshSFdwiqm6SuAvwUIzqa6P8VDOhQirAaLv2Wd64FLA7MprLRx/c2YiB69ZzEg6rQutbFRaY4lC2zcj/XkCdEeHi+mpGqe989Kars0u4OwKzBvrHjst9Qnj3v22V+PpkgM8041VvUn9EJN4rhfjkbYvFP5fUDpF48BB+XSr1PyShzrozA6Jf/9sX/e8ii5aUxNoEyVpG/lDgT0rSv3weOHVFoLMxXi+g8NPGQWNBacEaZTK5IHdWjxwPSwGgR1FZOzmMOLcrgivdo0liH9lJ5t66SOGu1aN6ciHAOyveEEDPQmWemM6811LGftZA//hJ+RmlcC8lvFvuWS5mJAhRTEd8+SBtIVKPKMIKvacqiUc/uI1VJRLL/jtqGqpQlxXYliGsXtykbimlGgIHif71kMDadsJ1HcU8Te7GxG79Sr7a1q90fd22jqUtyRH55a2XxKo4hnWp39FRmeyqErl2nRUgmhi23IhVc+zqQUBHPfC29WE0Ix/gHbDznrEXk1WJf1y2CRf3CDFtrMkiezY6bdZA/8TJ4IOS8ADBe1X54vZ7lrNBMzvHlw7REij1pFLYoAhZj7yOX9omet2nmUwBV66u9uRhgbddR+AthYo6XHemU7S1XEF/yxKF6xaZN8unzijF5SlfIKH2nr6hbv/9M+yOLKaPZw30jx2hRckqdU4SuP7XC0kl3rJntcij/RbzGlM/50sHaDk8xS7LFT68D3RsxlcaX4AYqEF1VTvq/p/nsOnQFfWLxUp6VpcePSTQVAXctoZysv3Hfdo5BHrmpr1xhcKK5vCNIjXM4w0WICHEaU/h2WDwyt4P33519ogtBgmzBnp+uKfOqCeUoj16aRXiFV+Kd9y1Rky6Ui2XCykmdL33HNXVpNEka1FLAZKo1q6EhX0Z3NY1qP5zbUK8srJZ6K0deWMCRfD2XYD/P/epZFGgJ+C1buD5UwL/5kYKt7Ap9phDoGd9/saOaDckTbcRoD4S4lwC6tFqv/r4dJfkK7YbxztvVkH/gzPyo4roMzYBRBF6yPM+cvcK8Y1SX+4f9tHHFNGfKaKHU8K77/duClcN3hnw3fdhra+wUhKqvQQ8IrSDsMwTWKAInP8f9UPPMG3sy2DzmpZcA/uli8CnX1QoBvS8pfyjBwW2dhI2m4KoRb/PHAE916y5e43SuwTyQaAuIfz92SB1uPlo/Sv33qu9vmV5zCro91+g+v5AnVaE1iiySoLF69elEn/89jXitWJ6jSX8516i70hFd2sSF+HCyhbv850NuMStQaBVEVrMhnYTvvOFYdq5uE7k1E8sFvScavfIKwLtDcDu1YSE3Q6lmBcJ0TPqEy9TnZ532Ny9XKmlTcgIj4YzWXzJE1WXTvWh225MV+zrzsZ5EwJgph/q6XP0XyWpP7b0ApswovMbSPyLVOJzqhZPvGuJGLbPQkTeS11oFwrLpY+ahIeWAxfVp0Yy2BgxKYVQbTVi38YFeCFK2pnCyxy4CPzNBJKeffLfPyJ0fZfd60hX8Cr5KHPQ876yd64CljZSf2td4jvJKhy8eRG6ZnqfqJL7cZwLZh30e89Re5rU6yzt82U7mUmQlkRPC4i9PuFKbZU3XO2hNeFhuRBIegJ09ArdOZShpTaYY9uq9kX3xgX0RGO11z+Vjtt/EfjrvQrvvD4/mHnXkx8dFjqpes8GQpsTsCnpvmUMeo68fnCrwKZ2TwfthEC/Ao6TxIVEEr0J4LXrFopzJb3vLJw866Dnd372vPwtSfg0S3up81tHOfQ5tOIYX75ASmAUtre/cw748ibvx6uaMOkqWbwj+V89B2xfJXX43R48ybgI6df3CV05YPdaQmt9bli+pHEtQ9CzysWVyT60TWBFU54NtNhBLxAIYET4GCHCWSJ8oz+NvjcsQ1bMok8+X9+XBeiJyH+um56UknZHtIBQv9G5sVH2VJxXH6uCMJZ3bxLHTXWEphpxdMtC8cMqLyp/UzQemSbw+EmFQ/2ENe3hZRwYOtcLPHtCoLMZ2LGcwm19pnKUGeh507XblwG3Lxdo5sq3JRxCIFASvOv6fvJxuaUNJ5YLMVJCEzNyalmA/lA/bcymcM+wUp+QCrV51RzOmnJLgMQSwkcpxSZyWeB3z8PgdW3eEwvrcKGUHs1klS7d/WI3cEnyTtqEp48KHO0BVrcBt0/GaM33AGUE+uWNwC1LBbZ3elOm4woB9qadEEDXgMLTs2kHzAroDx+m6lQTWnwPO4XA7Z6HBiIkJaFjMFDvsPmxY2jAmi/v5saOTQp3wW8nT5gsYs4NPSK0tFE8t6ldTLhtI7eXlkpzxjWnhcnfCjibJpzSBZEEkj7llrArZTbFzzVMSf5aUwTMB83zt79ZPo0tfcLnmYpsllZgdwGkwFQVNtY8szE1DcFwBizD1P2OyWR3rwY2twskE6H+Pl0HDwNvXgdCSgAPpRM4cugMhq6mP/+qgv7YIHVQgK2ksFZ5uIF0qYHcIyB0DgXqbqmoKvTfO8kirvSOwJ+bJphTDMqoRvGVw3JYdi3xHmyp0RIo/8HJEWafVj7BZSvy38wn11FIB4RRQwUYhvb3iKfiEsXsj8619rwcokqMr6z5NoVfoeDruVx5e9KCGqC9DqguZR/QKcwIIZBWhH2+h6OBj5c3NYmeKTRX1KUzDnrW109cwfJA4S0esJQEFjuM3bwPGQCtA1li7nuj5czH9fWcdMACtXDGO4d3r7tlqfflxioMFeoplvAuY9FKXw0w1w/qgDQCn8Mpj74bkzg9euccqrGDYMMPy/uI3CfuZCxqxMc5iQuvLmnyiqdMTPWGzvVcqJUELgjg3GAaX/naZzAyU1lUMwb6wz3UlEhiSZDG+30f7RwYMqUQi+oqRagalHRbShKTwJwKCGPr2ISGrjVa8//OK4Y06YSeJ1LrWsSTSxtwutDDBBRmA7mS3IrTnHotBnUR78RpMOdaM2PGXGtL9JnrotUkj9SPAB4T6+6f8QlW7KTwBbCsyUNixhBR1LCHVAaBwPPwjA886zfh3BIxGqMprpXxz5r2VzxNVJvtxU7h4Xoo3DCRVJ/oJVKKOgcD3JyV1KHVUZvplKf+TY4O75b5c9Sc2qQ4e12reKohWVjCS2fdzwGzpevGAJkDZOeP8a7NqQ5g2rOS264oOYCN3ztO8411ZM68GEf94ctYZ+dEkKaqqRusE41nSb8LcFHpl+DhwJom7C2GV1VM+9MG+pdfpqqG1djiS9ylCMtAqJlOCygj0TGQpU2pLK0KiKpC/jjXwMlTHsTNgzWuTwhPLqoVe9cuwPjGq7b0HMZgXHJbgPK/ZksZ9/yca2PiP1Jh8uzXZFcRa4i6gzdGkjsTy6YXxgd7zMqTZ9LYa9gH397g5W77WQx6rtI5AhgkhdcpwA9WtuGIEGJKBUKnDPqXiapaBrADhFsArCdCYjrBnqdfvaEMOkYULc5ILMgoNEqJmiyhTkpK5PP4+J64srZJPNFSi0uFxonLwFovhes1sSDOKWUXU0X0OY40zZH8LtgcPd9ZLMKPMWlsVat4Cb0c6W8mp6vS5MvPsmpW/J58btIDltR7SDChpowPnVNLUL6HV7NpfPfSCRzZuXNy4J8S6I8P0uIqiTd7HnbzziCz2WfH+9XbR7JYrlUgx7BtrBKvrm0Wz3je6H5g8efkWi16d7s8npRIYsb0aFeijznH9bW7EySfihJr17oSx6w241ybz8ZwAR6fCO4tF9XxpgrT6ZSceRR4Apeg8IpswtcnE+yaFOgvENWLIbwRwFtA4OzPWe81Bv1wgOW65J8mViLVWe/9YFEtTow3DMJTerbmqB55AJ6jbuSR6jnSNOaujHtgXN3dtuv643NUnBhi9aR2JlLOo+axOcbc27lhaxXQWjfrQzepWaIlv0I3bzXc04R9W4QoutBryaDvukJrvSq8WxE2TOppZ+iik/10z1CWVjCgqn1xdnmjeKomUdhY5cdI8PQwYz5GLcgDoDHS13mXgkaorSIwRp8Zuw+rXWlyiOixCZRT3cDty0LqlfPQdmJqtSYBdNTxdjpzE/T21T329nh42qvBUwuEOFUMvIoGPfvbe7LYISTuBsBsxqKvLeZBpnpO1xBtuZLGTU3V2N9ZL16aqD0uUDTecBcS9hEgnXo18XvFg0VxGyGO/7jx6uroFrN2JRijVsUeNN+qEk1oe64HcBCqbsyWIxP1Wnn+zsAnwolA4ZGOerw8kZenKOASUc2VFP4NCDtJYKqUqlnvOV1vUUysk+V4TfJZiLEKAGPA7DQQd2u6KkoEZFd3KeBB4nP1fHM9OE6P6qJPeVYVd7Kwt6aldm5L+DEgEpyqiGxK4YuLa/HieMzOCUHfT9ROabyfCNfPpTKA+WdWaLBO+NKOzjymnTx++DjG4uH9fN6TqJkCPvScujROWQ57r3zXu5M0Xzk+Vo2qEwAngvg5+13OuhyavgfgwJbA40jjh00FKA3jjj8R1Q5k8NsgrJ2+p5qtlvJsdjbZR8mj+2i1osBqED/dNVrdwk0uoPOtMoXqSrqTqpDRzN/zYDPgq+e4Hj/RsFG4c+qhTDW+sFCIgfj5BUE/MEALkcT7PQ+by01/n+il479rl2SpF5Vwvuv5iTO/4iDM5xbN0VbiPB7TeD63ZI5kN/pL9Cx5VKuaBNBYIie+hG4ot1PJFzicGcL/29KSW8MoL+i7u6mhrhW/4Qts4Eq/5fY2pT1POPozCfr480R4i3uAYpHYeEDK1bsLVgvOw+i0K0wh9YbbZVf8NQT4SOP0gL01SXxdiNFiYnkBPThId/k1uLc0cJXr2bMza11jcow2lId27Ep7fX4BXT8q9Gq6e0xJbPt9LNDGyeq1cywINR2IIoUAAv9clxQ/tu2NAX2KaAMCfBQC9dNx09lro5DTcfaeKJ9XJZ86kqPuFABxdE6eeELcM1SVAGp9b+wGzrPXFVf3zoRhSuDTtUIc4xvngJ6IVmcUPkDAsqv7VNN8t3zZEdN8i6k2V8itGKk4eaK6+p55qBL2mjF6v0F/Q7WnK7Vdwwd5wGtJD59mV2bUFVxLRkq8GwJvm8uuSb2fXQEvSrkOeqE1qdDKECe/2fPyqUWs0nByyDV/MDvFx7d84NtRd4yM0MqqKvwHwlwOPpWfSlM02Aro8GM8NLZBdyVwTuKPdhJwLqZO+6uA3i6Sp9Mj+AdX0n9UKdw4d6V8mOk03474NHZjAXlXAnMBx544wVtcVb9V+fe+5+GzGvREtBTA7wJw9oYr/xdwn1Cp+Qn6MaMQm9k5MQLn5KTwpq9Cw9yCwkRPm7GgvwfAz+r9gufYwWC/1o58K5q7AjDVYt7SDKZhsAWzJwG8F8CeaWhvXjaRM60mnGMTnjBtfZRXnePs+4qUH7ePGfQtAH4FwKZpG41KQzPWA/Fob3ij3InmzVcy2TT1KoN+OYD7mIs0TW1Wmqn0QFn3AIN+PYDfv8r0lLLulMrDze8eYNCvA/B7OnuuclR64BroAQY9Uw5+E0DbNfC+lVes9AAY9A0APgDgpkp/VHrgWugBBj1TzX9Bl/OoHJUeuAZ6wAan7gLw8xW9/hoY8corhlQkIuI9n/8EAPvsK0elB+ZzD3S7hLNfBXBzxXU5n8e78m4A/s4FPUv5jwOY7GaQlR6t9EC598DLAL7ggp4/W+LZ1cyjLveOqjzf/OiBNIAvCiGej6cL8tY4vwhg4/x4z8pbVHpA9wBz87jU49/npAvaziEiDlIxt35RpcMqPTBPeuAigE8JEda/yZtIRkScQfVBYK5XRJgnQ1Z5jan0AO8r9k9CiKhkeyHQJwG8E8CbATibwk/l3pVrKz1w1XugH8A/CCFed+9cMGXYJJcw6DmjqgL8qz5elRtOsQd4q6V/FKbWTVGg19o/70sPvB3AHZXA1RSHoHL51ewBVmm+IoQ4nO+mExaHICKuR89lupmmUDFur+bQVe5Vag+wl4ZVmr8WQpwtdPGEoHe8Ohy8+g0Aq+ZiAnmpvVc5f871APvhOfj0L0KIrvGevmjQG3WHOTpMTmNdv3rOdUvlgedrDzDgHwbwnBBiZKKXLAn0BvhcPYF5OrwbOHt5Sm5jooeq/F7pgSJ7gNUZ3oCBAf+Difaasm1OGrBEtA3AWwGsqVCSixyiymnT2QMM+L0AnsjnoZk29SbeEBG1A7oU4P9RAf50jmelrQl64AKAH/H/xagz8bYmLekdA5fb4JTDdwHYaViaU263MuyVHoj1ABf3GQKwH8CDrNYUq85MO+jdBomIN2S71Uj/OVsXswK3suuBHgDPANgnhGAf/JSOaZfIvCOhYWnuMOCvGLtTGqJr9mKW7MMAngdwAMDByUr2GZX0ManPdXRY2r8b4c4mHRW9/5oFcCkvzntD83b3PzXSfVgIEW3UXkpDhc6ddkmf70ZEyZkHzQAAAcRJREFUxIBnbw9XU9taSUmcjqGbd21kjb5+3BioqZl6w6sCesfoZcnPiSrbTT4uUxx4RbiqzzFTnVlpt6QesD52Bjfv/MfR1C4hxGBJrUzi5FkBm6m1wxFd5vRcB2C1mQyV0oKTGMQ5dgkHk1iac2LHT8xnJYS4ajXOZwX0Md2fn4FBz9WTWQ3ajTm979Ucg+DVe1z2wHDK3hkAzG+/OF2GaamvMOugz2P8NhrQc9U1NoBZBeI9bSvJ6qWO7uycz2oLS21mO/K/+wB8HwBzYtgoZUN1Vo+yAn0BI3gJAHZ/MvBXmP/ZDVo5yqsHWDfnlDyW5KyX//Bq6OeT6YKyB71jBLOk5wnQaaK+bA9w1YZKVtdkRn56rhkA8Br70I0kPyeEYIpAWR9zBvTxXiQilvbM+GT1h12hTHfmSg48OXgi8P9z9v3KCDWsrnCQiOm7rK6wJGdvC285z6pKUA4qSyn9Ne9AQURcoY3pEJzswt4gnhi8IrChPO/et5TBLvJcGxw6YkDOQH+FA0ZCCPa8zPlj3oPA5PlymiMnwPDBK8EGQ5FgliivFPO+H/IglSU4S2/OMmLXIafXWSP0ihCCE6vn5fH/AynvqKbJosiLAAAAAElFTkSuQmCC",te=x(3113),S=({createState:g,refreshLoading:I,onRefresh:v=()=>{},onCreate:z=()=>{}})=>me.createElement("div",{className:Ae.sendToClass},g?me.createElement(me.Fragment,null,me.createElement("img",{src:P,alt:"\u7A7A"}),me.createElement("div",null,"\u60A8\u8FD8\u6CA1\u6709\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF0C\u65E0\u6CD5\u5C06\u8BD5\u5377\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u3002"),me.createElement(te.ZP,{onClick:z,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):me.createElement(me.Fragment,null,me.createElement("img",{src:De,alt:"\u7A7A"}),me.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),me.createElement(te.ZP,{loading:I,onClick:v,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0")))},83028:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(59301),Ae={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},P=x(43418),De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",te="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",V=(I,v,z)=>new Promise((E,M)=>{var N=ee=>{try{L(z.next(ee))}catch(R){M(R)}},T=ee=>{try{L(z.throw(ee))}catch(R){M(R)}},L=ee=>ee.done?E(ee.value):Promise.resolve(ee.value).then(N,T);L((z=z.apply(I,v)).next())}),g=({type:I,resdata:v,onok:z,oktext:E,okloading:M})=>{const[N,T]=(0,me.useState)(!1),{can_copy_list:L,can_copy_num:ee,challenge_type:R,course_data_list:le,no_copy_list:X,no_copy_num:q,no_use_list:W,no_use_num:K,repeat_shixun_num:se,student_count:fe,total_num:Oe,use_num:Se}=v;let Ue=ee>0||I==="exercise";(0,me.useEffect)(()=>{(v==null?void 0:v.student_count)>0&&T(!0)},[v]),console.log("---11",M),(0,me.useEffect)(()=>{M||T(!1)},[M]);const J=()=>{if(I==="exercise"&&R===1)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",me.createElement("span",{className:Ae.orangeColor},Se),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(I==="exercise"&&R===2)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",me.createElement("span",{className:Ae.orangeColor},Se),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(I==="shixun"&&R===1)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(I==="shixun"&&R===2)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(I==="subject"&&R===1)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",me.createElement("span",{className:Ae.orangeColor},Se),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(I==="subject"&&R===2)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",me.createElement("span",{className:Ae.orangeColor},fe)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",me.createElement("span",{className:Ae.orangeColor},Se)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(I==="exercisepush")return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},fe),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",me.createElement("span",{className:Ae.orangeColor},Se),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(I==="shixunpush"&&R===1)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",me.createElement("span",{className:Ae.orangeColor},Se),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(I==="shixunpush"&&R===2)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},fe),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",me.createElement("span",{className:Ae.orangeColor},Se),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},ue=()=>{if(I==="exercise"||I==="subject"||I==="exercisepush"||I==="shixunpush")return me.createElement("div",{style:{marginTop:20}},q>0&&me.createElement("div",null,me.createElement("span",{className:Ae.flex},me.createElement("img",{src:te,style:{width:14}}),me.createElement("span",{className:Ae.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),me.createElement("div",{className:Ae.statusbody},I==="exercise"&&me.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ae.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(I==="subject"||I==="exercisepush")&&me.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ue&&me.createElement("span",{className:Ae.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),I==="shixunpush"&&me.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ue&&me.createElement("span",{className:Ae.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),me.createElement("div",null,X==null?void 0:X.map((D,Ve)=>me.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.name,"\u300B",Ve+1!==q&&"\u3001"))))),ee>0&&me.createElement("div",{style:{marginTop:20}},me.createElement("span",{className:Ae.flex},me.createElement("img",{src:De,style:{width:14}}),me.createElement("span",{className:Ae.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),me.createElement("div",{className:Ae.statusbody},I==="exercise"&&me.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(I==="subject"||I==="exercisepush")&&me.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),I==="shixunpush"&&me.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),me.createElement("div",null,L==null?void 0:L.map((D,Ve)=>me.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.name,"\u300B",Ve+1!==ee&&"\u3001"))))));if(I==="shixun")return me.createElement("div",{style:{marginTop:20}},ee>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return me.createElement(P.default,{open:N,onCancel:()=>{T(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Ue&&"none"}},zIndex:1003,confirmLoading:M,okText:Ue?E:"\u6211\u77E5\u9053\u4E86",onOk:()=>V(void 0,null,function*(){Ue?yield z([...L,...W]):T(!1)})},me.createElement("div",{style:{maxHeight:600,overflow:"auto"}},J(),ue()))}},33276:function(un,Tt,x){"use strict";var me=x(59301),Ae=x(43418),P=x(1710);const De=({dataSource:te,visible:V,onClose:S=()=>{},onSuccess:g=()=>{},text:I,okText:v})=>{var z;return me.createElement(Ae.default,{centered:!0,destroyOnClose:!0,open:!!V,title:"\u63D0\u793A",width:"600px",okText:v,cancelText:"\u53D6\u6D88",onCancel:S,onOk:g},V==="single"&&me.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",me.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},(z=te==null?void 0:te[0])==null?void 0:z.total_score),"\u5206\uFF0C\u8BF7\u786E\u8BA4",I),V==="multiple"&&me.createElement(me.Fragment,null,me.createElement("div",{className:"c-grey-333 mb10"},"\u4EE5\u4E0B\u8BD5\u5377\u603B\u5206\u5F02\u5E38\uFF0C\u8BF7\u786E\u8BA4",I),me.createElement(P.default,{columns:[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u603B\u5206",width:90,dataIndex:"total_score"}],dataSource:te,scroll:(te==null?void 0:te.length)>7?{y:300}:{},pagination:!1})))};Tt.Z=De},48595:function(un,Tt,x){"use strict";x.d(Tt,{B:function(){return I},F:function(){return g}});var me=x(44164),Ae=x.n(me),P=x(86129),De=x.n(P),te=(v,z,E)=>new Promise((M,N)=>{var T=R=>{try{ee(E.next(R))}catch(le){N(le)}},L=R=>{try{ee(E.throw(R))}catch(le){N(le)}},ee=R=>R.done?M(R.value):Promise.resolve(R.value).then(T,L);ee((E=E.apply(v,z)).next())});const V=()=>{document.body.scrollIntoView()},S=()=>{document.querySelectorAll("canvas").forEach(v=>{(!v.clientWidth||!v.clientHeight)&&v.remove()})},g=(v,z)=>te(void 0,null,function*(){V(),S();const E={margin:[0,1,0,0],image:{type:"png",quality:.95},html2canvas:{letterRendering:!0,useCORS:!0,allowTaint:!1,width:810},jsPDF:{unit:"in",format:"letter",orientation:"portrait"}};let M=Ae()();for(let T=0;T<v.length;T++)yield M.set(E).from(v[T]).toContainer().toCanvas().toPdf().get("pdf").then(L=>te(void 0,null,function*(){T<v.length-1&&(yield L.addPage())}));const N=new(De());N.file(`${z}.pdf`,M.output("blob"),{base64:!1}),N.generateAsync({type:"blob"}).then(function(T){const L=document.createElement("a");L.href=window.URL.createObjectURL(T),L.download=`${z}.zip`,document.body.appendChild(L);const ee=new MouseEvent("click");L.dispatchEvent(ee),document.body.removeChild(L)})}),I=(v,z)=>te(void 0,null,function*(){V(),S();const E={margin:[0,0],html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};let M=Ae()();for(let N=0;N<v.length;N++)yield M.set(E).from(v[N]).toContainer().toCanvas().toPdf().get("pdf").then(T=>te(void 0,null,function*(){N<v.length-1&&(yield T.addPage())}));M.save(`${z}.pdf`)})},79778:function(un,Tt,x){"use strict";x.r(Tt),x.d(Tt,{default:function(){return Je}});var me=x(59301),Ae=x(65582),P=x(92832),De=x(8591),te=x(1710),V=x(6848),S=x(95237),g=x(43604),I=x(5112),v=x(28103),z=x(71418),E=x(66104),M=x(3113),N=x(38854),T=x(43418),L={flex_box_center:"flex_box_center___maKAy",flex_space_between:"flex_space_between___vD_VZ",flex_box_vertical_center:"flex_box_vertical_center___kwkiV",flex_box_center_end:"flex_box_center_end___BdkbU",flex_box_column:"flex_box_column___meEQB",bg:"bg___vBzoO",wrap:"wrap___rrSkg",programTitle:"programTitle___kPWjL",btnWrapper:"btnWrapper___F_tyj",btn:"btn___ToWSe",titleForExport:"titleForExport___lhBnq",flexRow:"flexRow___cvXQo",flexColumn:"flexColumn___cTDFf",flexJustifyBetween:"flexJustifyBetween___vy_7r",relative:"relative____B_F8",questionNumber:"questionNumber___V4g28",score:"score___dNKpj",selectTopicButton:"selectTopicButton___NO9DO",line:"line___j553x",dragTip:"dragTip___AaESI",typeActive:"typeActive___dLHVW",mouseTypeActive:"mouseTypeActive___N_Yv8",typeName:"typeName___bdcw3",typeNumber:"typeNumber___B6Fic",typeAction:"typeAction___O3dpz",setScore:"setScore___GA5cK",delete:"delete___O2OvN",modal:"modal___0ENtb",table:"table___ZRr4b",glassSeal:"glassSeal___C7Vpa",export_type_modal:"export_type_modal___ldAtg",export_type_modal_con:"export_type_modal_con___Y9iST",type_item:"type_item___cWirW",img_warp:"img_warp___G7xtB",img_warp_active:"img_warp_active___rw33a",divname:"divname___RLHHc"},ee=x(41967),R=x(48595),le=x(29297),X=x(2337),q=x(84454),W=x(65862),K=x(87513),se=x(6339),fe=x(24334),Oe=x(40743),Se=x(27687),Ue=x(96935),J=x(38147),ue=x(59301),D=Object.defineProperty,Ve=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,we=Object.prototype.propertyIsEnumerable,Te=(et,Bt,Lt)=>Bt in et?D(et,Bt,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):et[Bt]=Lt,ve=(et,Bt)=>{for(var Lt in Bt||(Bt={}))Me.call(Bt,Lt)&&Te(et,Lt,Bt[Lt]);if(Ve)for(var Lt of Ve(Bt))we.call(Bt,Lt)&&Te(et,Lt,Bt[Lt]);return et},Fe=(et,Bt,Lt)=>new Promise((Nt,ur)=>{var ar=G=>{try{sr(Lt.next(G))}catch(ft){ur(ft)}},Cr=G=>{try{sr(Lt.throw(G))}catch(ft){ur(ft)}},sr=G=>G.done?Nt(G.value):Promise.resolve(G.value).then(ar,Cr);sr((Lt=Lt.apply(et,Bt)).next())});const{TextArea:de}=P.default,Ee={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898"},tt=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"],it=({newExercisePaper:et,isExportBlank:Bt=!1,paperlibrary:Lt,user:Nt,globalSetting:ur,loading:ar,dispatch:Cr})=>{var sr,G,ft,F,m,d,C,re,Be,H,ie,Qe,xe;const ye=(0,Ae.useLocation)(),je=(0,Ae.useParams)(),[xt]=(0,Ae.useSearchParams)(),[he,st]=(0,me.useState)(),Ye=(0,me.useRef)(),[Ie,Le]=(0,me.useState)(),[ct,Ut]=(0,me.useState)(),[kt,tr]=(0,me.useState)([]),[Dr,fr]=(0,me.useState)(!1),[Fr,Lr]=(0,me.useState)(""),[mr,cr]=(0,me.useState)(!1),[Kr,fn]=(0,me.useState)(!1),_n=xt.get("isIntelligentAssistant");(0,me.useEffect)(()=>(Cr({type:"globalSetting/footerToggle",payload:!1}),()=>{Cr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,me.useEffect)(()=>{Ye.current=je==null?void 0:je.id,st(xt.get("defaultActiveKey")||"0"),_r(),xn(),ln()},[je==null?void 0:je.id]),(0,me.useEffect)(()=>{var be;if((be=et.exerciseExportHeadData)!=null&&be.title){const Ne=et.exerciseExportHeadData;Le(ve({},Ne||{}));const{table:ke}=Ne||{};let Xe,Pt;(ke!=null&&ke.total_singles_scores||ke!=null&&ke.total_doubles_scores||ke!=null&&ke.total_nulls_scores||ke!=null&&ke.total_judges_scores||ke!=null&&ke.total_pros_scores||ke!=null&&ke.total_shixuns_scores||ke!=null&&ke.total_mains_scores||ke!=null&&ke.total_combination_scores||ke!=null&&ke.total_bpros_scores)&&(Xe=Number(ke==null?void 0:ke.total_singles_scores)+Number(ke==null?void 0:ke.total_doubles_scores)+Number(ke==null?void 0:ke.total_nulls_scores)+Number(ke==null?void 0:ke.total_judges_scores)+Number(ke==null?void 0:ke.total_pros_scores)+Number(ke==null?void 0:ke.total_shixuns_scores)+Number(ke==null?void 0:ke.total_mains_scores)+Number(ke==null?void 0:ke.total_combination_scores)+Number(ke==null?void 0:ke.total_bpros_scores)),(ke!=null&&ke.singles_scores||ke!=null&&ke.doubles_scores||ke!=null&&ke.nulls_scores||ke!=null&&ke.judges_scores||ke!=null&&ke.pros_scores||ke!=null&&ke.bpros_scores||ke!=null&&ke.shixuns_scores||ke!=null&&ke.mains_scores||ke!=null&&ke.combination_scores)&&(Pt=Number(ke==null?void 0:ke.singles_scores)+Number(ke==null?void 0:ke.doubles_scores)+Number(ke==null?void 0:ke.nulls_scores)+Number(ke==null?void 0:ke.judges_scores)+Number(ke==null?void 0:ke.pros_scores)+Number(ke==null?void 0:ke.bpros_scores)+Number(ke==null?void 0:ke.shixuns_scores)+Number(ke==null?void 0:ke.mains_scores)+Number(ke==null?void 0:ke.combination_scores));const Dt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:ke==null?void 0:ke.total_singles_scores,doubles_score:ke==null?void 0:ke.total_doubles_scores,nulls_score:ke==null?void 0:ke.total_nulls_scores,judges_score:ke==null?void 0:ke.total_judges_scores,pros_score:ke==null?void 0:ke.total_pros_scores,bpros_score:ke==null?void 0:ke.total_bpros_scores,shixuns_score:ke==null?void 0:ke.total_shixuns_scores,mains_score:ke==null?void 0:ke.total_mains_scores,combinations_score:ke==null?void 0:ke.total_combination_scores,total_score:Xe},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:ke==null?void 0:ke.singles_scores,doubles_score:ke==null?void 0:ke.doubles_scores,nulls_score:ke==null?void 0:ke.nulls_scores,judges_score:ke==null?void 0:ke.judges_scores,pros_score:ke==null?void 0:ke.pros_scores,bpros_score:ke==null?void 0:ke.bpros_scores,shixuns_score:ke==null?void 0:ke.shixuns_scores,mains_score:ke==null?void 0:ke.mains_scores,combinations_score:ke==null?void 0:ke.combination_scores,total_score:Pt},{key:"3",name:"\u8BC4\u5377\u4EBA"}],Er=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:ke==null?void 0:ke.total_singles_scores,doubles_score:ke==null?void 0:ke.total_doubles_scores,nulls_score:ke==null?void 0:ke.total_nulls_scores,judges_score:ke==null?void 0:ke.total_judges_scores,pros_score:ke==null?void 0:ke.total_pros_scores,bpros_score:ke==null?void 0:ke.total_bpros_scores,shixuns_score:ke==null?void 0:ke.total_shixuns_scores,mains_score:ke==null?void 0:ke.total_mains_scores,combinations_score:ke==null?void 0:ke.combination_scores,total_score:Xe},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Ut([...Bt?Er:Dt])}},[et.exerciseExportHeadData]);const ln=()=>Fe(void 0,null,function*(){var be;const Ne=yield(0,le.cV)({id:je.id});Ne.status==0&&tr(Ne.data),yield xn(),xt.get("exportPDF")&&((be=Lt.paperData)!=null&&be.questionList)&&(De.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,R.F)(mi.current.children,"\u5BFC\u51FA\u8BD5\u5377"))}),xn=()=>Fe(void 0,null,function*(){const be=yield(0,le.Dq)(je.id);Le(be||{});const{table:Ne}=be||{};let ke,Xe;(Ne!=null&&Ne.total_singles_scores||Ne!=null&&Ne.total_doubles_scores||Ne!=null&&Ne.total_nulls_scores||Ne!=null&&Ne.total_judges_scores||Ne!=null&&Ne.total_pros_scores||Ne!=null&&Ne.total_shixuns_scores||Ne!=null&&Ne.total_mains_scores||Ne!=null&&Ne.total_combination_scores||Ne!=null&&Ne.total_bpros_scores)&&(ke=Number(Ne==null?void 0:Ne.total_singles_scores)+Number(Ne==null?void 0:Ne.total_doubles_scores)+Number(Ne==null?void 0:Ne.total_nulls_scores)+Number(Ne==null?void 0:Ne.total_judges_scores)+Number(Ne==null?void 0:Ne.total_pros_scores)+Number(Ne==null?void 0:Ne.total_shixuns_scores)+Number(Ne==null?void 0:Ne.total_mains_scores)+Number(Ne==null?void 0:Ne.total_combination_scores)+Number(Ne==null?void 0:Ne.total_bpros_scores)),(Ne!=null&&Ne.singles_scores||Ne!=null&&Ne.doubles_scores||Ne!=null&&Ne.nulls_scores||Ne!=null&&Ne.judges_scores||Ne!=null&&Ne.pros_scores||Ne!=null&&Ne.bpros_scores||Ne!=null&&Ne.shixuns_scores||Ne!=null&&Ne.mains_scores||Ne!=null&&Ne.combinations_score)&&(Xe=Number(Ne==null?void 0:Ne.singles_scores)+Number(Ne==null?void 0:Ne.doubles_scores)+Number(Ne==null?void 0:Ne.nulls_scores)+Number(Ne==null?void 0:Ne.judges_scores)+Number(Ne==null?void 0:Ne.pros_scores)+Number(Ne==null?void 0:Ne.bpros_scores)+Number(Ne==null?void 0:Ne.shixuns_scores)+Number(Ne==null?void 0:Ne.mains_scores)+Number(Ne==null?void 0:Ne.combinations_score));const Pt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Ne==null?void 0:Ne.total_singles_scores,doubles_score:Ne==null?void 0:Ne.total_doubles_scores,nulls_score:Ne==null?void 0:Ne.total_nulls_scores,judges_score:Ne==null?void 0:Ne.total_judges_scores,pros_score:Ne==null?void 0:Ne.total_pros_scores,bpros_score:Ne==null?void 0:Ne.total_bpros_scores,shixuns_score:Ne==null?void 0:Ne.total_shixuns_scores,combinations_score:Ne==null?void 0:Ne.total_combination_scores,mains_score:Ne==null?void 0:Ne.total_mains_scores,total_score:ke},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Ne==null?void 0:Ne.singles_scores,doubles_score:Ne==null?void 0:Ne.doubles_scores,nulls_score:Ne==null?void 0:Ne.nulls_scores,judges_score:Ne==null?void 0:Ne.judges_scores,pros_score:Ne==null?void 0:Ne.pros_scores,bpros_score:Ne==null?void 0:Ne.bpros_scores,shixuns_score:Ne==null?void 0:Ne.shixuns_scores,mains_score:Ne==null?void 0:Ne.mains_scores,combinations_score:Ne==null?void 0:Ne.combination_scores,total_score:Xe},{key:"3",name:"\u8BC4\u5377\u4EBA"}];return Ut(Bt?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:Pt),be}),oi=[{width:"9%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:be=>ue.createElement("a",null,be)},{width:"9%",title:((sr=kt.find(be=>be.value==X.fw[0].nameType))==null?void 0:sr.name)||X.fw[0].name,align:"center",dataIndex:"singles_score",render:be=>ue.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((G=kt.find(be=>be.value==X.fw[1].nameType))==null?void 0:G.name)||X.fw[1].name,align:"center",dataIndex:"doubles_score",render:be=>ue.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((ft=kt.find(be=>be.value==X.fw[3].nameType))==null?void 0:ft.name)||X.fw[3].name,align:"center",dataIndex:"nulls_score",render:be=>ue.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((F=kt.find(be=>be.value==X.fw[2].nameType))==null?void 0:F.name)||X.fw[2].name,align:"center",dataIndex:"judges_score",render:be=>ue.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((m=kt.find(be=>be.value==X.fw[6].nameType))==null?void 0:m.name)||X.fw[6].name,align:"center",dataIndex:"pros_score",render:be=>ue.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((d=kt.find(be=>be.value==X.fw[5].nameType))==null?void 0:d.name)||X.fw[5].name,align:"center",dataIndex:"shixuns_score",render:be=>ue.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((C=kt.find(be=>be.value==X.fw[4].nameType))==null?void 0:C.name)||X.fw[4].name,align:"center",dataIndex:"mains_score",render:be=>ue.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((re=kt.find(be=>be.value==X.fw[7].nameType))==null?void 0:re.name)||X.fw[7].name,align:"center",dataIndex:"combinations_score",render:be=>ue.createElement("a",null,be==="0.0"?0:be)},{width:"10%",title:((Be=kt.find(be=>be.value==X.fw[8].nameType))==null?void 0:Be.name)||X.fw[8].name,align:"center",dataIndex:"bpros_score",render:be=>ue.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:be=>ue.createElement("a",null,be==="0.0"?0:be?parseFloat(be).toFixed(1):"")}],_r=be=>{Cr({type:"paperlibrary/getPaperData",payload:ve({id:Ye.current},be)})},Ai=(be,Ne)=>Fe(void 0,null,function*(){if(!be.destination||!be.source)return;const ke=Ne.questions[be.source.index].id,Xe=be.destination.index+1;(yield Cr({type:"paperlibrary/adjustPosition",payload:{id:Ye.current,itemId:ke,position:Xe}})).status!==-1&&_r()}),Oi=()=>{var be,Ne,ke,Xe;Cr({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:Ye.current,data:{is_random:!1},dataSource:[{name:(Ne=(be=Lt.paperData)==null?void 0:be.exam)==null?void 0:Ne.name,total_score:(Xe=(ke=Lt.paperData)==null?void 0:ke.exam)==null?void 0:Xe.all_score}],type:"single"}}})},mi=(0,me.useRef)(),[Wi,Gi]=(0,me.useState)(!0),ta=()=>Fe(void 0,null,function*(){Gi(!1),Lr(""),fr(!0)}),_o=()=>Fe(void 0,null,function*(){Gi(!0),Lr(""),fr(!0)}),ra=()=>Fe(void 0,null,function*(){var be;cr(!0);const Ne=yield(0,K.Mb)({categoryId:Ye.current});cr(!1),Ne!=null&&Ne.exercise_id&&(0,W.xg)(`/classrooms/coursesId/exercise/${Ne.exercise_id}/${(be=Nt.userInfo)==null?void 0:be.login}/initate_answer`)}),bi=(be,Ne,ke)=>{var Xe,Pt,Dt,Er,rr,Nr,Hr,an,jr,Rr,en,wn,on,On,Qn,di,Nn,Gn,Vt,Xt,Yt;return ue.createElement(ue.Fragment,null,!ke&&ue.createElement("div",{style:{display:"flex"},className:L.programTitle},ue.createElement("span",{style:{flexShrink:0},className:"font18"},Ne+1,"."),ue.createElement(se.Z,{style:{maxWidth:1100},value:be.name||(be==null?void 0:be.shixun_name)}),ue.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(be==null?void 0:be.question_type)===7?`\u5171${be==null?void 0:be.sub_count}\u5C0F\u9898`:""," ",be.score,"\u5206\uFF09")),(be==null?void 0:be.question_type)===8&&ue.createElement(se.Z,{showProgramFill:!0,disabledFill:!0,value:fe.Base64.decode(((Xe=be==null?void 0:be.program_attr)==null?void 0:Xe.code)||"")}),(be==null?void 0:be.question_type)===5&&ue.createElement("div",null,(Pt=be==null?void 0:be.examination_bank_shixun_challenges)==null?void 0:Pt.map((er,jt)=>ue.createElement("div",null,ue.createElement("div",{key:jt,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,marginBottom:10}},ue.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",jt+1,"\u5173 ",ue.createElement("span",{className:"ml10"},er.challenge_name))))),(be==null?void 0:be.question_type)===6&&ue.createElement("div",null,ue.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(Er=(Dt=be==null?void 0:be.program_attr)==null?void 0:Dt.languages)==null?void 0:Er.join("/")),((Nr=(rr=Lt==null?void 0:Lt.paperData)==null?void 0:rr.exam)==null?void 0:Nr.show_hack_sets)&&ue.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},ue.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},ue.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),ue.createElement(te.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(er,jt,or)=>or+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(er,jt,or)=>ue.createElement(V.Z,{title:ue.createElement("pre",null,er)},ue.createElement("div",{className:L.divname},er))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(er,jt,or)=>ue.createElement(V.Z,{title:ue.createElement("pre",null,er)}," ",ue.createElement("div",{className:L.divname},er))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(Hr=be==null?void 0:be.program_attr)==null?void 0:Hr.hack_sets})),((jr=(an=Lt==null?void 0:Lt.paperData)==null?void 0:an.exam)==null?void 0:jr.show_hack_description)&&ue.createElement("div",null,ue.createElement(se.Z,{className:L.content,value:((Rr=be==null?void 0:be.program_attr)==null?void 0:Rr.description)||"- -"}))),be.question_type===Oe.c.Single&&ue.createElement(ue.Fragment,null,(en=be.choices)==null?void 0:en.map(function(er,jt){return ue.createElement(S.Z,{key:jt},ue.createElement(g.Z,{flex:"1"},ue.createElement("div",{style:{display:"flex"}},ue.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},tt[jt]),ue.createElement(se.Z,{value:er.choice_text||""}))))})),be.question_type===Oe.c.Multiple&&ue.createElement(ue.Fragment,null,(wn=be.choices)==null?void 0:wn.map(function(er,jt){return ue.createElement(S.Z,{key:jt},ue.createElement(g.Z,{flex:"1"},ue.createElement("div",{style:{display:"flex"}},ue.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},tt[jt]),ue.createElement(se.Z,{value:er.choice_text||""}))))})),be.question_type===Oe.c.Judge&&ue.createElement("div",{className:L.flexRow},(on=be.choices)==null?void 0:on.map(function(er,jt){return ue.createElement(S.Z,{key:jt},ue.createElement(g.Z,{flex:"25px"},ue.createElement("div",{style:{width:25,overflow:"hidden"}},ue.createElement(I.ZP,{disabled:!0,style:{width:25,marginLeft:jt===1&&10}}))),ue.createElement(g.Z,{flex:"1",style:{marginLeft:jt===1&&10}},er.choice_text))})),be.question_type===Oe.c.Combine&&ue.createElement(ue.Fragment,null,(On=be.sub_questions)==null?void 0:On.map(function(er,jt){return ue.createElement("div",{style:{marginLeft:10}},ue.createElement("div",{style:{display:"flex"},className:L.programTitle},ue.createElement("span",{style:{flexShrink:0},className:"font18"},Ne+1,".",jt+1),ue.createElement(se.Z,{value:er.name||(er==null?void 0:er.shixun_name)}),ue.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",er.score,"\u5206\uFF09")),bi(er,jt,!0))})),Wi&&ue.createElement("div",{style:{marginTop:10}},(be==null?void 0:be.question_type)<3&&(be==null?void 0:be.standard_answer_show)&&ue.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",be==null?void 0:be.standard_answer_show),!!((Qn=be==null?void 0:be.standard_answer)!=null&&Qn.length)&&Wi&&(be==null?void 0:be.question_type)===3&&ue.createElement("div",null,(di=be==null?void 0:be.standard_answer)==null?void 0:di.map((er,jt)=>ue.createElement("div",null,ue.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",jt+1,"\uFF09:"),ue.createElement("div",null,er.answer_text.map(function(or,lr){return ue.createElement(g.Z,{span:24,key:lr},(er==null?void 0:er.model)===1?ue.createElement(de,{autoSize:!0,disabled:!0,value:or}):ue.createElement(Se.Z,{value:or,disabled:!0}))}))))),!!((Nn=be==null?void 0:be.standard_answer)!=null&&Nn.length)&&Wi&&(be==null?void 0:be.question_type)===8&&ue.createElement("div",null,(Gn=be==null?void 0:be.standard_answer)==null?void 0:Gn.map((er,jt)=>ue.createElement("div",null,ue.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",jt+1,"\uFF09:"),ue.createElement("div",null,ue.createElement(de,{autoSize:!0,disabled:!0,value:(er==null?void 0:er.answer_text)||""}))))),!!((Vt=be==null?void 0:be.answer_texts)!=null&&Vt.length)&&(be==null?void 0:be.question_type)===4&&ue.createElement("div",null,ue.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),ue.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},ue.createElement(se.Z,{value:(Xt=be==null?void 0:be.answer_texts)==null?void 0:Xt[0]}))),(be==null?void 0:be.question_type)===6&&ue.createElement("div",null,ue.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(be!=null&&be.answer_text)&&"\u6682\u65E0"),(be==null?void 0:be.answer_text)&&ue.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},ue.createElement(se.Z,{value:be==null?void 0:be.answer_text}))),(be==null?void 0:be.question_type)<=4&&((be==null?void 0:be.standard_answer_show)||((Yt=be==null?void 0:be.standard_answer)==null?void 0:Yt.length)>0)&&ue.createElement(S.Z,{style:{marginTop:14}},ue.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),ue.createElement(se.Z,{className:L.renderHtml,value:(be==null?void 0:be.analysis)||"\u6682\u65E0\u89E3\u6790"}))),!ke&&ue.createElement(v.Z,null))},Ki=(0,me.useCallback)(()=>{var be,Ne;return ue.createElement("div",null,ue.createElement("div",{className:L.titleForExport},(Ne=(be=Lt.paperData)==null?void 0:be.exam)==null?void 0:Ne.name),ue.createElement("div",{style:{textAlign:"center",fontSize:"15px"}},"\u5171:\u3010",Ie==null?void 0:Ie.large_counts,"\u5927\u9898\u3011\u3010",Ie==null?void 0:Ie.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",Ie==null?void 0:Ie.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(Ie==null?void 0:Ie.time)>-1?`${Ie==null?void 0:Ie.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),!!(Ie!=null&&Ie.exercise_description)&&ue.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},ue.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),Ie==null?void 0:Ie.exercise_description),ue.createElement(te.default,{style:{margin:"20px auto"},className:L.table,columns:oi,dataSource:[...ct||[]],bordered:!0,pagination:!1}))},[Lt.paperData]),sa=()=>Fe(void 0,null,function*(){const be=yield(0,J.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:je==null?void 0:je.id}});(be==null?void 0:be.status)===0&&Ae.history.replace("/paperlibrary")});return ue.createElement("section",{className:L.bg},ue.createElement(z.Z,{spinning:ar["paperlibrary/getPaperData"]},ue.createElement(S.Z,{className:"pt20",justify:"space-between"},ue.createElement(E.Z,{separator:">"},ue.createElement(E.Z.Item,{href:"/paperlibrary"},"\u8BD5\u5377\u5E93"),ue.createElement(E.Z.Item,{href:`/paperlibrary?defaultActiveKey=${he}`},he==="1"?"\u516C\u5F00":he==="2"?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684"),ue.createElement(E.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),ue.createElement("div",{className:L.btnWrapper},!_n&&ue.createElement(M.ZP,{onClick:Oi,className:L.btn,icon:ue.createElement("i",{className:"iconfont icon-fasongtongzhi font14"})},"\u53D1\u9001\u81F3\u8BFE\u5802"),ue.createElement(M.ZP,{onClick:()=>Ae.history.push(`/paperlibrary/add/${Ye.current}?type=2${_n?"&isIntelligentAssistant=true":""}`),className:L.btn,icon:ue.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),ue.createElement(M.ZP,{loading:mr,onClick:ra,className:L.btn,icon:ue.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),!_n&&ue.createElement(N.Z,{menu:{items:[{key:"1",label:ue.createElement("div",{onClick:_o},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848")},{key:"2",label:ue.createElement("div",{onClick:ta},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377")}]}},ue.createElement(M.ZP,{type:"primary",icon:ue.createElement("i",{className:"iconfont icon-daochu1 font14"})},"\u5BFC\u51FA")),_n&&ue.createElement(Ue.Z,{onClick:sa,type:"primary",icon:ue.createElement("i",{className:"iconfont icon-baocun1 font14"})},"\u4FDD\u5B58\u8BD5\u5377"))),ue.createElement("div",{className:`${L.wrap} pt20 pb20`,ref:mi,id:"paperDomRef"},!((ie=(H=Lt.paperData)==null?void 0:H.questionList)!=null&&ie.length)&&Ki(),(xe=(Qe=Lt.paperData)==null?void 0:Qe.questionList)==null?void 0:xe.map((be,Ne)=>{var ke;return ue.createElement(ue.Fragment,null,(ke=be.questions)==null?void 0:ke.map((Xe,Pt)=>{const Dt=Math.floor(Pt/10);return Pt%10===0?ue.createElement("div",{className:"abc",key:`group-${Dt}`},Ne===0&&Pt===0&&Ki(),Pt===0&&ue.createElement("div",null,ue.createElement("span",{className:"font16 c-light-primary"},be.number,"\u3001",be.name),ue.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",be.questions_count,"\u9898\uFF0C",(be==null?void 0:be.question_type)===7?`\u5305\u542B${be==null?void 0:be.sub_count}\u5C0F\u9898\uFF1B`:"","\u5171",be.questions_score,"\u5206\uFF09")),be.questions.slice(Pt,Pt+10).map((Er,rr)=>ue.createElement("div",{key:Er.id},bi(Er,Pt+rr)))):null}))}))),ue.createElement(ee.Z,null),ue.createElement(T.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:Dr,onCancel:()=>{if(Kr){De.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}fr(!1)},okButtonProps:{loading:Kr},onOk:()=>Fe(void 0,null,function*(){var be,Ne;if(fn(!0),Fr==""){fn(!1),De.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else Fr=="pdf"?yield(0,R.F)(mi.current.children,(Ne=(be=Lt.paperData)==null?void 0:be.exam)==null?void 0:Ne.name):Fr=="word"&&(0,q.ON)({id:Ye.current,middle_export:1,export_type:Wi?1:0});fn(!1),fr(!1)})},ue.createElement("div",{className:L.export_type_modal},ue.createElement("div",{className:L.export_type_modal_con},ue.createElement("div",{className:L.type_item},ue.createElement("div",{className:`${L.img_warp} ${Fr=="pdf"?L.img_warp_active:""}`,onClick:()=>Lr("pdf")},ue.createElement("img",{src:x(45614),width:70,height:70})),"pdf\u683C\u5F0F"),ue.createElement("div",{className:L.type_item},ue.createElement("div",{className:`${L.img_warp} ${Fr=="word"?L.img_warp_active:""}`,onClick:()=>Lr("word")},ue.createElement("img",{src:x(38347),width:70,height:70})),"word\u683C\u5F0F")))))};var Je=(0,Ae.connect)(({paperlibrary:et,user:Bt,loading:Lt,globalSetting:Nt,newExercisePaper:ur})=>({paperlibrary:et,user:Bt,globalSetting:Nt,loading:Lt.effects,newExercisePaper:ur}))(it)},41967:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ue}});var me=x(59301),Ae=x(65582),P=x(92832),De=x(8591),te=x(43418),V=x(5871),S=x(61621),g=x(1710),I=x(3113),v=x(70414),z=x(6199),E={flex_box_center:"flex_box_center___LsrKL",flex_space_between:"flex_space_between___sZBht",flex_box_vertical_center:"flex_box_vertical_center___QNt7D",flex_box_center_end:"flex_box_center_end___S9zs3",flex_box_column:"flex_box_column___Y5tcm",title:"title___t4qlt",tip:"tip___MtKbx",radioWrap:"radioWrap___fp3kY",row:"row___IoDN5",radio:"radio___vuEDI",colorFF0000:"colorFF0000____5DYm",pagination:"pagination___bvqCI",modalColumn:"modalColumn___szBPb",modalRow:"modalRow___mtd9M",sup:"sup___JDuYL",search:"search___wNY_F",bottom:"bottom___HvFhF",yes:"yes___xmznh",no:"no___vEJlu"},M=x(65862),N=x(61399),T=x(60979),L=x(96935),ee=x(89392),R=x(83028),le=x(33276),X=x(59301),q=Object.getOwnPropertySymbols,W=Object.prototype.hasOwnProperty,K=Object.prototype.propertyIsEnumerable,se=(J,ue)=>{var D={};for(var Ve in J)W.call(J,Ve)&&ue.indexOf(Ve)<0&&(D[Ve]=J[Ve]);if(J!=null&&q)for(var Ve of q(J))ue.indexOf(Ve)<0&&K.call(J,Ve)&&(D[Ve]=J[Ve]);return D},fe=(J,ue,D)=>new Promise((Ve,Me)=>{var we=Fe=>{try{ve(D.next(Fe))}catch(de){Me(de)}},Te=Fe=>{try{ve(D.throw(Fe))}catch(de){Me(de)}},ve=Fe=>Fe.done?Ve(Fe.value):Promise.resolve(Fe.value).then(we,Te);ve((D=D.apply(J,ue)).next())});const Oe=P.default.Search,Se=J=>{var ue=J,{paperlibrary:D,globalSetting:Ve,loading:Me,dispatch:we}=ue,Te=se(ue,["paperlibrary","globalSetting","loading","dispatch"]),ve,Fe,de,Ee;const[tt,it]=(0,me.useState)(""),[Je,et]=(0,me.useState)([]),[Bt,Lt]=(0,me.useState)([]),[Nt,ur]=(0,me.useState)(!1),[ar,Cr]=(0,me.useState)(!0),[sr,G]=(0,me.useState)(!0),[ft,F]=(0,me.useState)(!0),[m,d]=(0,me.useState)(!1),[C,re]=(0,me.useState)(!1),Be=(de=(Fe=(ve=D.actionTabs)==null?void 0:ve.params)==null?void 0:Fe.data)==null?void 0:de.is_random,[H,ie]=(0,me.useState)(!1),[Qe,xe]=(0,me.useState)({}),[ye,je]=(0,me.useState)(!1),[xt,he]=(0,me.useState)(!1),[st,Ye]=(0,me.useState)([]);(0,me.useEffect)(()=>{var fr;if(D.actionTabs.key==="Paperlibrary-SendToClass"){const{dataSource:Fr=[],type:Lr}=((fr=D.actionTabs)==null?void 0:fr.params)||{},mr=Fr.filter(cr=>![100,120,150].includes(cr.total_score));mr.length?(he(Lr),Ye(mr)):je(!0)}},[(Ee=D==null?void 0:D.actionTabs)==null?void 0:Ee.key]),(0,me.useEffect)(()=>{Le()},[]);const Ie=()=>{Lt([]),it(""),Le(!0),je(!1),he(!1),we({type:"paperlibrary/setActionTabs",payload:{}})},Le=fr=>fe(void 0,null,function*(){G(!0);const Fr=yield we({type:"paperlibrary/getCourseList",payload:{search:fr?"":tt}});Fr&&(et((Fr==null?void 0:Fr.courses)||[]),Cr(!0),d(!1)),G(!1),F(!1)}),ct=fr=>{const Fr=parseInt(fr);return(0,ee.isNaN)(Fr)?"":Fr},Ut=()=>fe(void 0,null,function*(){var fr,Fr,Lr,mr,cr,Kr,fn;if(!Bt.length){De.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),ur(!0);return}const _n=yield we({type:"paperlibrary/postExistCourse",payload:{course_id:Be?Bt==null?void 0:Bt[0]:Bt,examination_bank_ids:((Fr=(fr=D.actionTabs)==null?void 0:fr.params)==null?void 0:Fr.examination_bank_ids)||((mr=(Lr=D.actionTabs)==null?void 0:Lr.params)==null?void 0:mr.id)}}),ln=()=>fe(void 0,null,function*(){var xn,oi,_r,Ai,Oi,mi;re(!0);let Wi=yield(0,T.Tr)({id:(oi=(xn=D.actionTabs)==null?void 0:xn.params)==null?void 0:oi.id,course_id:Be?Bt==null?void 0:Bt[0]:Bt,type:(Ai=(_r=D.actionTabs)==null?void 0:_r.params)!=null&&Ai.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:(mi=(Oi=D.actionTabs)==null?void 0:Oi.params)==null?void 0:mi.examination_bank_ids});re(!1),(Wi==null?void 0:Wi.student_count)===0?yield kt([]):xe(Wi),yield new Promise(Gi=>setTimeout(()=>Gi(),1e3))});if(_n.status==0&&((cr=_n.data)==null?void 0:cr.count)>0){te.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,width:596,content:X.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(fn=(Kr=_n.data)==null?void 0:Kr.list)==null?void 0:fn.map((xn,oi)=>{var _r;return X.createElement(X.Fragment,null,X.createElement("span",{style:{color:"#FA6400"}},"\u300A",xn==null?void 0:xn.name,"\u300B"),oi!==((_r=_n.data)==null?void 0:_r.count)-1&&X.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>fe(void 0,null,function*(){yield ln()})}),yield new Promise(xn=>setTimeout(()=>xn(),1e3));return}yield ln()}),kt=fr=>fe(void 0,null,function*(){var Fr,Lr,mr,cr,Kr,fn;if(!Be){ie(!0);const oi=yield we({type:(Lr=(Fr=D.actionTabs)==null?void 0:Fr.params)!=null&&Lr.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:Be?Bt==null?void 0:Bt[0]:Bt,id:(cr=(mr=D.actionTabs)==null?void 0:mr.params)==null?void 0:cr.id,examination_bank_ids:(fn=(Kr=D.actionTabs)==null?void 0:Kr.params)==null?void 0:fn.examination_bank_ids,shixuns_info:fr.map(_r=>({shixun_id:_r.id,is_copy:_r.is_copy,is_use:_r.is_use,course_id:_r.course_id}))}});ie(!1),oi&&oi.status===0&&(je(!1),we({type:"paperlibrary/setActionTabs",payload:{}}),Lt([]),te.default.confirm({title:"\u63D0\u793A",okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",width:480,centered:!0,closable:!0,onOk:()=>{window.location.href=`${oi.data[0].first_category_url}`},content:X.createElement("p",null,"\u8BD5\u5377\u53D1\u9001\u6210\u529F\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u524D\u5F80\u6559\u5B66\u8BFE\u5802\u8FDB\u884C\u53D1\u5E03\uFF1F")}),De.ZP.success("\u53D1\u9001\u6210\u529F"));return}ie(!0),setTimeout(()=>{ie(!1)},500);const _n=Je.find(oi=>oi.course_id===(Bt==null?void 0:Bt[0]));let ln=1,xn=te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,maskClosable:!1,keyboard:!1,cancelButtonProps:{disabled:!1},title:"\u914D\u7F6E\u51FA\u5377\u6570\u91CF",content:X.createElement("div",{className:E.modalColumn},X.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},X.createElement("img",{style:{marginRight:5},src:v.Z}),"\u968F\u673A\u7EC4\u5377\u7C7B\u578B\u7684\u8BD5\u5377\u6309\u7167\u51FA\u5377\u6570\u91CF\u5BF9\u6307\u5B9A\u8BFE\u5802\u751F\u6210\u4E0D\u91CD\u590D\u7684\u8BD5\u5377\u3002"),X.createElement("div",{style:{paddingLeft:18}},"\u8BFE\u5802\u540D\u79F0: ",_n==null?void 0:_n.course_name),X.createElement("div",{style:{paddingLeft:9},className:E.modalRow},X.createElement("sup",{className:E.sup},"*"),X.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),X.createElement(V.Z,{parser:ct,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:ln,onChange:oi=>{ln=oi;const _r=document.getElementById("model_error");ln<1||ln>50?_r.style.display="block":_r.style.display="none"}})),X.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:Ie,onOk:()=>fe(void 0,null,function*(){var oi,_r;if(ln<1||ln>50){const Oi=document.getElementById("model_error");return Oi.style.display="block",Promise.reject()}xn.update({cancelButtonProps:{disabled:!0}});const Ai=yield we({type:"paperlibrary/sendToClass",payload:{course_id:Bt==null?void 0:Bt[0],id:(_r=(oi=D.actionTabs)==null?void 0:oi.params)==null?void 0:_r.id,num:ln,shixuns_info:fr.map(Oi=>({shixun_id:Oi.id,is_copy:Oi.is_copy,is_use:Oi.is_use}))}});xn.update({cancelButtonProps:{disabled:!1}}),Ai&&Ai.status===0&&(te.default.destroyAll(),te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:X.createElement("div",{className:E.modalColumn},X.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},X.createElement("img",{style:{marginRight:5},src:z.Z}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:()=>{Ie()},onOk:()=>{Ie(),setTimeout(()=>{var Oi,mi;const Wi=(mi=(Oi=Ai==null?void 0:Ai.first_category_url)==null?void 0:Oi.split("/"))==null?void 0:mi[2];(0,M.xg)(`/classrooms/${Wi}/exercise`)},1e3)}}))})})}),tr=()=>fe(void 0,null,function*(){d(!0),yield Le()}),Dr=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return X.createElement("div",null,X.createElement(te.default,{centered:!0,keyboard:!1,closable:!1,open:ye,title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Me["paperlibrary/sendToClass"]||C||!!Me["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:Ut,destroyOnClose:!0,onCancel:Ie},X.createElement("div",{className:E.wrap},X.createElement("div",{className:"mb10"},X.createElement(Oe,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:tt,className:E.search,onChange:fr=>{it(fr.target.value),fr.target.value||Le(!0)},onSearch:fr=>{it(fr),Le(),Lt([])}})),X.createElement(S.Z,{loading:ft},Je.length?X.createElement("div",{className:E.radioWrap},X.createElement(g.default,{bordered:!1,scroll:(Je==null?void 0:Je.length)<=7?{}:{y:350},loading:sr,rowKey:"course_id",pagination:!1,dataSource:Je,columns:Dr,onRow:fr=>({onClick:Fr=>{if(Be)Lt([fr==null?void 0:fr.course_id]);else{if(!Be&&!Bt.includes(fr.course_id)&&Bt.length>0)return;Bt!=null&&Bt.includes(fr==null?void 0:fr.course_id)?Lt(Bt==null?void 0:Bt.filter(Lr=>Lr!==(fr==null?void 0:fr.course_id))):Lt([...Bt,fr==null?void 0:fr.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:Bt,onChange:fr=>{Lt(fr),ur(!1)}}})):!tt&&!sr&&X.createElement(N.Z,{createState:ar,refreshLoading:m,onRefresh:tr,onCreate:()=>{Cr(!1),(0,M.xg)("/classrooms/new")}})),Nt&&X.createElement("div",{className:E.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),X.createElement("div",{className:E.bottom,style:{display:"flex",alignItems:"center"}},X.createElement("div",{style:{flex:1}},X.createElement("div",{className:E.title},X.createElement("img",{src:v.Z,style:{objectFit:"contain"}}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377")),X.createElement("div",null,X.createElement(I.ZP,{onClick:Ie,className:E.no,style:{marginRight:20}},"\u53D6\u6D88"),X.createElement(L.Z,{onClick:Ut,className:E.yes},"\u786E\u8BA4"))))),X.createElement(R.Z,{resdata:Qe,type:"exercise",okloading:H,oktext:(Qe==null?void 0:Qe.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:fr=>{kt(fr)}}),X.createElement(le.Z,{text:"\u662F\u5426\u7EE7\u7EED\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F",okText:"\u786E\u8BA4\u53D1\u9001",visible:xt,dataSource:st,onSuccess:()=>{he(!1),je(!0)},onClose:Ie}))};var Ue=(0,Ae.connect)(({paperlibrary:J,loading:ue,globalSetting:D})=>({paperlibrary:J,globalSetting:D,loading:ue.effects}))(Se)},40743:function(un,Tt,x){"use strict";x.d(Tt,{c:function(){return Ae}});var me=(P=>(P.FirstPage="firstPage",P.PrevPage="prevPage",P.NextPage="nextPage",P))(me||{}),Ae=(P=>(P[P.Single=0]="Single",P[P.Multiple=1]="Multiple",P[P.Judge=2]="Judge",P[P.Fill=3]="Fill",P[P.Subjective=4]="Subjective",P[P.Shixun=5]="Shixun",P[P.Program=6]="Program",P[P.Combine=7]="Combine",P))(Ae||{})},84454:function(un,Tt,x){"use strict";x.d(Tt,{AD:function(){return Ve},BA:function(){return ft},D9:function(){return de},Hp:function(){return K},IM:function(){return tt},Iy:function(){return se},KM:function(){return G},KU:function(){return Bt},MJ:function(){return fe},Ne:function(){return Ee},ON:function(){return Nt},Uj:function(){return Cr},VY:function(){return et},YO:function(){return ar},YX:function(){return ur},Zn:function(){return T},_g:function(){return X},_k:function(){return ve},c6:function(){return ue},cr:function(){return L},eV:function(){return D},fi:function(){return ee},gh:function(){return Ue},hS:function(){return it},iA:function(){return R},j6:function(){return q},je:function(){return Te},jj:function(){return W},kS:function(){return Lt},o6:function(){return J},pO:function(){return sr},rQ:function(){return Me},sA:function(){return Se},xm:function(){return Fe},xo:function(){return Je},y8:function(){return we},yd:function(){return le}});var me=x(33270),Ae=x(65582),P=x(65862),De=x(8591),te=x(74128),V=Object.defineProperty,S=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,v=(F,m,d)=>m in F?V(F,m,{enumerable:!0,configurable:!0,writable:!0,value:d}):F[m]=d,z=(F,m)=>{for(var d in m||(m={}))g.call(m,d)&&v(F,d,m[d]);if(S)for(var d of S(m))I.call(m,d)&&v(F,d,m[d]);return F},E=(F,m,d)=>new Promise((C,re)=>{var Be=Qe=>{try{ie(d.next(Qe))}catch(xe){re(xe)}},H=Qe=>{try{ie(d.throw(Qe))}catch(xe){re(xe)}},ie=Qe=>Qe.done?C(Qe.value):Promise.resolve(Qe.value).then(Be,H);ie((d=d.apply(F,m)).next())});const M=()=>{(0,Ae.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},N=()=>{(0,Ae.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},T=F=>E(void 0,null,function*(){M(),(yield(0,me.YR)(z({},F))).status===0&&(yield(0,P.QH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${F.coursesId}/export_couser_info.json`,query:F}))),N()}),L=F=>E(void 0,null,function*(){const m=yield(0,me.yS)(z({},F));if(m.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/course_member_act_score`);else{if(m.status===-2)return m;m.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/course_member_act_score`))}}),ee=F=>E(void 0,null,function*(){const m=yield(0,me.W0)(z({},F));if(m.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/course_total_score`);else{if(m.status===-4)return m;m.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/course_total_score`))}}),R=F=>E(void 0,null,function*(){const m=yield(0,me.Nl)(z({},F));if(m.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/course_total_exercise_and_other`);else{if(m.status===-4)return m;m.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/course_total_exercise_and_other`))}}),le=F=>E(void 0,null,function*(){const m=yield(0,me.IU)(z({},F));if(m.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/export_star_user`);else{if(m.status===-4)return m;m.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/export_star_user`))}}),X=F=>E(void 0,null,function*(){const m=yield(0,me.td)(z({},F));if(m.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/course_total_exercise_and_other`);else{if(m.status===-2)return m;if(m.status===-3)(0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/course_total_exercise_and_other`);else if(m.status===-4)return m}}),q=F=>E(void 0,null,function*(){const m=yield(0,me.QX)(z({},F));if(m.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/course_total_homework`);else{if(m.status===-4)return m;m.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/course_total_homework`))}}),W=(F,m)=>E(void 0,null,function*(){const d=yield(0,me.o_)(z({},F));d.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/${m}`)):d.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/${m}`))}),K=(F,m)=>E(void 0,null,function*(){const d=yield(0,me.ZL)(z({},F));d.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/${m}`)):d.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/${m}`))}),se=(F,m)=>E(void 0,null,function*(){const d=yield(0,me.aP)(z({},F));d.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/${m}`)):d.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/${m}`))}),fe=(F,m)=>E(void 0,null,function*(){const d=yield(0,me.vV)(z({},F));d.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/${m}`)):d.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/${m}`))}),Oe=F=>E(void 0,null,function*(){M(),(yield exportCourseWorkListAppendix(z({},F))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${F.categoryId}/works_list.zip`,query:F}))),N()}),Se=F=>E(void 0,null,function*(){M(),yield(0,P.QH)("",te.Z.API_SERVER+`/api/polls/${F.categoryId}/commit_result.xlsx`),N()}),Ue=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${F.coursesId}/attendances/export_xlsx_data.xlsx`,query:F}))}),J=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${F.coursesId}/video_study_statics.xlsx`,query:F}))}),ue=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${F.coursesId}/export_video_study.xlsx`,query:F}))}),D=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${F.coursesId}/export_course_students_info.xlsx`,query:F}))}),Ve=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/school_manages/students.xlsx",query:F}))}),Me=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/item_banks/export.xlsx",query:F}))}),we=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:F}))}),Te=F=>E(void 0,null,function*(){const m=yield(0,me.Uy)(z({},F));m.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/exercise_score,export_exercise_users`)):m.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${F.coursesId}/exportlist/exercise_score,export_exercise_users`))}),ve=F=>E(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/export_records/${F.id}.xlsx`,query:F}))}),Fe=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:F}))}),de=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${F==null?void 0:F.coursesId}/${F.menuKey}_statistic.xlsx?${F.checkedList.map(m=>`course_group_id[]=${m}`).join("&")}`,query:F}))}),Ee=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/ec_years/${F==null?void 0:F.ec_year_id}/ec_training_objectives.xlsx`,query:F}))}),tt=F=>E(void 0,null,function*(){yield(0,P.FH)(F==null?void 0:F.name,(0,P.NY)({url:te.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:F}))}),it=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/ec_years/${F==null?void 0:F.ec_year_id}/ec_courses.xlsx`,query:F}))}),Je=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/ec_years/${F==null?void 0:F.ec_year_id}/ec_graduation_requirements.xlsx`,query:F}))}),et=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:F}))}),Bt=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/exercises/${F.categoryId}/rank_list.xlsx`,query:F}))}),Lt=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:F}))}),Nt=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/examination_banks/${F.id}.json`,query:F}))}),ur=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/exercises/${F.categoryId}.json`,query:F}))}),ar=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/polls/${F==null?void 0:F.id}/commit_result.json`,query:F}))}),Cr=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/paths/get_task_pass.json",query:F}))}),sr=(F,m)=>E(void 0,null,function*(){yield(0,P.FH)(m||"",(0,P.NY)({url:te.Z.API_SERVER+`/api/exercises/${F==null?void 0:F.exercise_id}/consult_exercise.json`,query:F}))}),G=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/competitions/${F==null?void 0:F.identifier}/competition_commit_records/member_works.xlsx`,query:F}))}),ft=F=>E(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${F==null?void 0:F.coursesId}/group_homeworks/import_group_template.xlsx`,query:F}))})},50371:function(un,Tt){"use strict";function x(){const me=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ae=1;Ae<arguments.length;Ae++){const P=Ae<0||arguments.length<=Ae?void 0:arguments[Ae];P&&Object.keys(P).forEach(De=>{const te=P[De];te!==void 0&&(me[De]=te)})}return me}Tt.Z=x},13845:function(un,Tt,x){"use strict";x.d(Tt,{F:function(){return me},Z:function(){return Ae}});function me(P){return P!=null&&P===P.window}function Ae(P,De){var te,V;if(typeof window=="undefined")return 0;const S=De?"scrollTop":"scrollLeft";let g=0;return me(P)?g=P[De?"pageYOffset":"pageXOffset"]:P instanceof Document?g=P.documentElement[S]:(P instanceof HTMLElement||P)&&(g=P[S]),P&&!me(P)&&typeof g!="number"&&(g=(V=((te=P.ownerDocument)!==null&&te!==void 0?te:P).documentElement)===null||V===void 0?void 0:V[S]),g}},56762:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ae}});var me=x(59301);function Ae(){const[,P]=me.useReducer(De=>De+1,0);return P}},68031:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return De}});var me=x(16089);function Ae(te,V,S,g){const I=S-V;return te/=g/2,te<1?I/2*te*te*te+V:I/2*((te-=2)*te*te+2)+V}var P=x(13845);function De(te){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:S=()=>window,callback:g,duration:I=450}=V,v=S(),z=(0,P.Z)(v,!0),E=Date.now(),M=()=>{const T=Date.now()-E,L=Ae(T>I?I:T,z,te,I);(0,P.F)(v)?v.scrollTo(window.pageXOffset,L):v instanceof Document||v.constructor.name==="HTMLDocument"?v.documentElement.scrollTop=L:v.scrollTop=L,T<I?(0,me.Z)(M):typeof g=="function"&&g()};(0,me.Z)(M)}},19080:function(un,Tt,x){"use strict";x.d(Tt,{F:function(){return te},Z:function(){return De}});var me=x(92310),Ae=x.n(me);const P=null;function De(V,S,g){return Ae()({[`${V}-status-success`]:S==="success",[`${V}-status-warning`]:S==="warning",[`${V}-status-error`]:S==="error",[`${V}-status-validating`]:S==="validating",[`${V}-has-feedback`]:g})}const te=(V,S)=>S||V},66104:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ve}});var me=x(92310),Ae=x.n(me),P=x(11592),De=x(26112),te=x(59301),V=x(92343),S=x(36355),g=x(84105),I=x(91857);const v=Me=>{let{children:we}=Me;const{getPrefixCls:Te}=te.useContext(S.E_),ve=Te("breadcrumb");return te.createElement("li",{className:`${ve}-separator`,"aria-hidden":"true"},we===""?we:we||"/")};v.__ANT_BREADCRUMB_SEPARATOR=!0;var z=v,E=function(Me,we){var Te={};for(var ve in Me)Object.prototype.hasOwnProperty.call(Me,ve)&&we.indexOf(ve)<0&&(Te[ve]=Me[ve]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ve=Object.getOwnPropertySymbols(Me);Fe<ve.length;Fe++)we.indexOf(ve[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Me,ve[Fe])&&(Te[ve[Fe]]=Me[ve[Fe]]);return Te};function M(Me,we){if(Me.title===void 0||Me.title===null)return null;const Te=Object.keys(we).join("|");return typeof Me.title=="object"?Me.title:String(Me.title).replace(new RegExp(`:(${Te})`,"g"),(ve,Fe)=>we[Fe]||ve)}function N(Me,we,Te,ve){if(Te==null)return null;const{className:Fe,onClick:de}=we,Ee=E(we,["className","onClick"]),tt=Object.assign(Object.assign({},(0,De.Z)(Ee,{data:!0,aria:!0})),{onClick:de});return ve!==void 0?te.createElement("a",Object.assign({},tt,{className:Ae()(`${Me}-link`,Fe),href:ve}),Te):te.createElement("span",Object.assign({},tt,{className:Ae()(`${Me}-link`,Fe)}),Te)}function T(Me,we){return(ve,Fe,de,Ee,tt)=>{if(we)return we(ve,Fe,de,Ee);const it=M(ve,Fe);return N(Me,ve,it,tt)}}var L=function(Me,we){var Te={};for(var ve in Me)Object.prototype.hasOwnProperty.call(Me,ve)&&we.indexOf(ve)<0&&(Te[ve]=Me[ve]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ve=Object.getOwnPropertySymbols(Me);Fe<ve.length;Fe++)we.indexOf(ve[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Me,ve[Fe])&&(Te[ve[Fe]]=Me[ve[Fe]]);return Te};const ee=Me=>{const{prefixCls:we,separator:Te="/",children:ve,menu:Fe,overlay:de,dropdownProps:Ee,href:tt}=Me,Je=(et=>{if(Fe||de){const Bt=Object.assign({},Ee);if(Fe){const Lt=Fe||{},{items:Nt}=Lt,ur=L(Lt,["items"]);Bt.menu=Object.assign(Object.assign({},ur),{items:Nt==null?void 0:Nt.map((ar,Cr)=>{var{key:sr,title:G,label:ft,path:F}=ar,m=L(ar,["key","title","label","path"]);let d=ft!=null?ft:G;return F&&(d=te.createElement("a",{href:`${tt}${F}`},d)),Object.assign(Object.assign({},m),{key:sr!=null?sr:Cr,label:d})})})}else de&&(Bt.overlay=de);return te.createElement(I.Z,Object.assign({placement:"bottom"},Bt),te.createElement("span",{className:`${we}-overlay-link`},et,te.createElement(g.Z,null)))}return et})(ve);return Je!=null?te.createElement(te.Fragment,null,te.createElement("li",null,Je),Te&&te.createElement(z,null,Te)):null},R=Me=>{const{prefixCls:we,children:Te,href:ve}=Me,Fe=L(Me,["prefixCls","children","href"]),{getPrefixCls:de}=te.useContext(S.E_),Ee=de("breadcrumb",we);return te.createElement(ee,Object.assign({},Fe,{prefixCls:Ee}),N(Ee,Fe,Te,ve))};R.__ANT_BREADCRUMB_ITEM=!0;var le=R,X=x(17313),q=x(83116),W=x(37613);const K=Me=>{const{componentCls:we,iconCls:Te}=Me;return{[we]:Object.assign(Object.assign({},(0,X.Wf)(Me)),{color:Me.itemColor,fontSize:Me.fontSize,[Te]:{fontSize:Me.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Me.linkColor,transition:`color ${Me.motionDurationMid}`,padding:`0 ${Me.paddingXXS}px`,borderRadius:Me.borderRadiusSM,height:Me.lineHeight*Me.fontSize,display:"inline-block",marginInline:-Me.marginXXS,"&:hover":{color:Me.linkHoverColor,backgroundColor:Me.colorBgTextHover}},(0,X.Qy)(Me)),"li:last-child":{color:Me.lastItemColor},[`${we}-separator`]:{marginInline:Me.separatorMargin,color:Me.separatorColor},[`${we}-link`]:{[`
> ${Te} + span,
> ${Te} + a
`]:{marginInlineStart:Me.marginXXS}},[`${we}-overlay-link`]:{borderRadius:Me.borderRadiusSM,height:Me.lineHeight*Me.fontSize,display:"inline-block",padding:`0 ${Me.paddingXXS}px`,marginInline:-Me.marginXXS,[`> ${Te}`]:{marginInlineStart:Me.marginXXS,fontSize:Me.fontSizeIcon},"&:hover":{color:Me.linkHoverColor,backgroundColor:Me.colorBgTextHover,a:{color:Me.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Me.componentCls}-rtl`]:{direction:"rtl"}})}};var se=(0,q.Z)("Breadcrumb",Me=>{const we=(0,W.TS)(Me,{});return[K(we)]},Me=>({itemColor:Me.colorTextDescription,lastItemColor:Me.colorText,iconFontSize:Me.fontSize,linkColor:Me.colorTextDescription,linkHoverColor:Me.colorText,separatorColor:Me.colorTextDescription,separatorMargin:Me.marginXS})),fe=function(Me,we){var Te={};for(var ve in Me)Object.prototype.hasOwnProperty.call(Me,ve)&&we.indexOf(ve)<0&&(Te[ve]=Me[ve]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ve=Object.getOwnPropertySymbols(Me);Fe<ve.length;Fe++)we.indexOf(ve[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Me,ve[Fe])&&(Te[ve[Fe]]=Me[ve[Fe]]);return Te};function Oe(Me){const{breadcrumbName:we,children:Te}=Me,ve=fe(Me,["breadcrumbName","children"]),Fe=Object.assign({title:we},ve);return Te&&(Fe.menu={items:Te.map(de=>{var{breadcrumbName:Ee}=de,tt=fe(de,["breadcrumbName"]);return Object.assign(Object.assign({},tt),{title:Ee})})}),Fe}function Se(Me,we){return(0,te.useMemo)(()=>Me||(we?we.map(Oe):null),[Me,we])}var Ue=function(Me,we){var Te={};for(var ve in Me)Object.prototype.hasOwnProperty.call(Me,ve)&&we.indexOf(ve)<0&&(Te[ve]=Me[ve]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Fe=0,ve=Object.getOwnPropertySymbols(Me);Fe<ve.length;Fe++)we.indexOf(ve[Fe])<0&&Object.prototype.propertyIsEnumerable.call(Me,ve[Fe])&&(Te[ve[Fe]]=Me[ve[Fe]]);return Te};const J=(Me,we)=>{if(we===void 0)return we;let Te=(we||"").replace(/^\//,"");return Object.keys(Me).forEach(ve=>{Te=Te.replace(`:${ve}`,Me[ve])}),Te},ue=Me=>{const{prefixCls:we,separator:Te="/",style:ve,className:Fe,rootClassName:de,routes:Ee,items:tt,children:it,itemRender:Je,params:et={}}=Me,Bt=Ue(Me,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Lt,direction:Nt,breadcrumb:ur}=te.useContext(S.E_);let ar;const Cr=Lt("breadcrumb",we),[sr,G]=se(Cr),ft=Se(tt,Ee),F=T(Cr,Je);if(ft&&ft.length>0){const C=[],re=tt||Ee;ar=ft.map((Be,H)=>{const{path:ie,key:Qe,type:xe,menu:ye,overlay:je,onClick:xt,className:he,separator:st,dropdownProps:Ye}=Be,Ie=J(et,ie);Ie!==void 0&&C.push(Ie);const Le=Qe!=null?Qe:H;if(xe==="separator")return te.createElement(z,{key:Le},st);const ct={},Ut=H===ft.length-1;ye?ct.menu=ye:je&&(ct.overlay=je);let{href:kt}=Be;return C.length&&Ie!==void 0&&(kt=`#/${C.join("/")}`),te.createElement(ee,Object.assign({key:Le},ct,(0,De.Z)(Be,{data:!0,aria:!0}),{className:he,dropdownProps:Ye,href:kt,separator:Ut?"":Te,onClick:xt,prefixCls:Cr}),F(Be,et,re,C,kt))})}else if(it){const C=(0,P.Z)(it).length;ar=(0,P.Z)(it).map((re,Be)=>{if(!re)return re;const H=Be===C-1;return(0,V.Tm)(re,{separator:H?"":Te,key:Be})})}const m=Ae()(Cr,ur==null?void 0:ur.className,{[`${Cr}-rtl`]:Nt==="rtl"},Fe,de,G),d=Object.assign(Object.assign({},ur==null?void 0:ur.style),ve);return sr(te.createElement("nav",Object.assign({className:m,style:d},Bt),te.createElement("ol",null,ar)))};ue.Item=le,ue.Separator=z;var D=ue,Ve=D},24905:function(un,Tt,x){"use strict";x.d(Tt,{default:function(){return se}});var me=x(92310),Ae=x.n(me),P=x(5630),De=x(59301),te=x(36355),V=x(1684),S=x(32441),I=De.createContext(null),v=x(98447),z=x(14088),E=x(4572),M=function(fe,Oe){var Se={};for(var Ue in fe)Object.prototype.hasOwnProperty.call(fe,Ue)&&Oe.indexOf(Ue)<0&&(Se[Ue]=fe[Ue]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,Ue=Object.getOwnPropertySymbols(fe);J<Ue.length;J++)Oe.indexOf(Ue[J])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ue[J])&&(Se[Ue[J]]=fe[Ue[J]]);return Se};const N=(fe,Oe)=>{var Se;const{prefixCls:Ue,className:J,rootClassName:ue,children:D,indeterminate:Ve=!1,style:Me,onMouseEnter:we,onMouseLeave:Te,skipGroup:ve=!1,disabled:Fe}=fe,de=M(fe,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ee,direction:tt,checkbox:it}=De.useContext(te.E_),Je=De.useContext(I),{isFormItemInput:et}=De.useContext(S.aM),Bt=De.useContext(V.Z),Lt=(Se=(Je==null?void 0:Je.disabled)||Fe)!==null&&Se!==void 0?Se:Bt,Nt=De.useRef(de.value);De.useEffect(()=>{Je==null||Je.registerValue(de.value)},[]),De.useEffect(()=>{if(!ve)return de.value!==Nt.current&&(Je==null||Je.cancelValue(Nt.current),Je==null||Je.registerValue(de.value),Nt.current=de.value),()=>Je==null?void 0:Je.cancelValue(de.value)},[de.value]);const ur=Ee("checkbox",Ue),[ar,Cr]=(0,v.ZP)(ur),sr=Object.assign({},de);Je&&!ve&&(sr.onChange=function(){de.onChange&&de.onChange.apply(de,arguments),Je.toggleOption&&Je.toggleOption({label:D,value:de.value})},sr.name=Je.name,sr.checked=Je.value.includes(de.value));const G=Ae()(`${ur}-wrapper`,{[`${ur}-rtl`]:tt==="rtl",[`${ur}-wrapper-checked`]:sr.checked,[`${ur}-wrapper-disabled`]:Lt,[`${ur}-wrapper-in-form-item`]:et},it==null?void 0:it.className,J,ue,Cr),ft=Ae()({[`${ur}-indeterminate`]:Ve},E.A,Cr),F=Ve?"mixed":void 0;return ar(De.createElement(z.Z,{component:"Checkbox",disabled:Lt},De.createElement("label",{className:G,style:Object.assign(Object.assign({},it==null?void 0:it.style),Me),onMouseEnter:we,onMouseLeave:Te},De.createElement(P.Z,Object.assign({"aria-checked":F},sr,{prefixCls:ur,className:ft,disabled:Lt,ref:Oe})),D!==void 0&&De.createElement("span",null,D))))};var L=De.forwardRef(N),ee=x(94480),R=x(2738),le=function(fe,Oe){var Se={};for(var Ue in fe)Object.prototype.hasOwnProperty.call(fe,Ue)&&Oe.indexOf(Ue)<0&&(Se[Ue]=fe[Ue]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var J=0,Ue=Object.getOwnPropertySymbols(fe);J<Ue.length;J++)Oe.indexOf(Ue[J])<0&&Object.prototype.propertyIsEnumerable.call(fe,Ue[J])&&(Se[Ue[J]]=fe[Ue[J]]);return Se};const X=(fe,Oe)=>{const{defaultValue:Se,children:Ue,options:J=[],prefixCls:ue,className:D,rootClassName:Ve,style:Me,onChange:we}=fe,Te=le(fe,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ve,direction:Fe}=De.useContext(te.E_),[de,Ee]=De.useState(Te.value||Se||[]),[tt,it]=De.useState([]);De.useEffect(()=>{"value"in Te&&Ee(Te.value||[])},[Te.value]);const Je=De.useMemo(()=>J.map(m=>typeof m=="string"||typeof m=="number"?{label:m,value:m}:m),[J]),et=m=>{it(d=>d.filter(C=>C!==m))},Bt=m=>{it(d=>[].concat((0,ee.Z)(d),[m]))},Lt=m=>{const d=de.indexOf(m.value),C=(0,ee.Z)(de);d===-1?C.push(m.value):C.splice(d,1),"value"in Te||Ee(C),we==null||we(C.filter(re=>tt.includes(re)).sort((re,Be)=>{const H=Je.findIndex(Qe=>Qe.value===re),ie=Je.findIndex(Qe=>Qe.value===Be);return H-ie}))},Nt=ve("checkbox",ue),ur=`${Nt}-group`,[ar,Cr]=(0,v.ZP)(Nt),sr=(0,R.Z)(Te,["value","disabled"]),G=J.length?Je.map(m=>De.createElement(L,{prefixCls:Nt,key:m.value.toString(),disabled:"disabled"in m?m.disabled:Te.disabled,value:m.value,checked:de.includes(m.value),onChange:m.onChange,className:`${ur}-item`,style:m.style,title:m.title},m.label)):Ue,ft={toggleOption:Lt,value:de,disabled:Te.disabled,name:Te.name,registerValue:Bt,cancelValue:et},F=Ae()(ur,{[`${ur}-rtl`]:Fe==="rtl"},D,Ve,Cr);return ar(De.createElement("div",Object.assign({className:F,style:Me},sr,{ref:Oe}),De.createElement(I.Provider,{value:ft},G)))},q=De.forwardRef(X);var W=De.memo(q);const K=L;K.Group=W,K.__ANT_CHECKBOX=!0;var se=K},98447:function(un,Tt,x){"use strict";x.d(Tt,{C2:function(){return te}});var me=x(17313),Ae=x(37613),P=x(83116);const De=V=>{const{checkboxCls:S}=V,g=`${S}-wrapper`;return[{[`${S}-group`]:Object.assign(Object.assign({},(0,me.Wf)(V)),{display:"inline-flex",flexWrap:"wrap",columnGap:V.marginXS,[`> ${V.antCls}-row`]:{flex:1}}),[g]:Object.assign(Object.assign({},(0,me.Wf)(V)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${g}`]:{marginInlineStart:0},[`&${g}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[S]:Object.assign(Object.assign({},(0,me.Wf)(V)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:V.borderRadiusSM,alignSelf:"center",[`${S}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${S}-inner`]:Object.assign({},(0,me.oN)(V))},[`${S}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:V.checkboxSize,height:V.checkboxSize,direction:"ltr",backgroundColor:V.colorBgContainer,border:`${V.lineWidth}px ${V.lineType} ${V.colorBorder}`,borderRadius:V.borderRadiusSM,borderCollapse:"separate",transition:`all ${V.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:V.checkboxSize/14*5,height:V.checkboxSize/14*8,border:`${V.lineWidthBold}px solid ${V.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${V.motionDurationFast} ${V.motionEaseInBack}, opacity ${V.motionDurationFast}`}},"& + span":{paddingInlineStart:V.paddingXS,paddingInlineEnd:V.paddingXS}})},{[`
${g}:not(${g}-disabled),
${S}:not(${S}-disabled)
`]:{[`&:hover ${S}-inner`]:{borderColor:V.colorPrimary}},[`${g}:not(${g}-disabled)`]:{[`&:hover ${S}-checked:not(${S}-disabled) ${S}-inner`]:{backgroundColor:V.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${S}-checked:not(${S}-disabled):after`]:{borderColor:V.colorPrimaryHover}}},{[`${S}-checked`]:{[`${S}-inner`]:{backgroundColor:V.colorPrimary,borderColor:V.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${V.motionDurationMid} ${V.motionEaseOutBack} ${V.motionDurationFast}`}}},[`
${g}-checked:not(${g}-disabled),
${S}-checked:not(${S}-disabled)
`]:{[`&:hover ${S}-inner`]:{backgroundColor:V.colorPrimaryHover,borderColor:"transparent"}}},{[S]:{"&-indeterminate":{[`${S}-inner`]:{backgroundColor:V.colorBgContainer,borderColor:V.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:V.fontSizeLG/2,height:V.fontSizeLG/2,backgroundColor:V.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${g}-disabled`]:{cursor:"not-allowed"},[`${S}-disabled`]:{[`&, ${S}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${S}-inner`]:{background:V.colorBgContainerDisabled,borderColor:V.colorBorder,"&:after":{borderColor:V.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:V.colorTextDisabled},[`&${S}-indeterminate ${S}-inner::after`]:{background:V.colorTextDisabled}}}]};function te(V,S){const g=(0,Ae.TS)(S,{checkboxCls:`.${V}`,checkboxSize:S.controlInteractiveSize});return[De(g)]}Tt.ZP=(0,P.Z)("Checkbox",(V,S)=>{let{prefixCls:g}=S;return[te(g,V)]})},93891:function(un,Tt,x){"use strict";var me=x(59301),Ae=x(36355),P=x(64165);const De=te=>{const{componentName:V}=te,{getPrefixCls:S}=(0,me.useContext)(Ae.E_),g=S("empty");switch(V){case"Table":case"List":return me.createElement(P.Z,{image:P.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return me.createElement(P.Z,{image:P.Z.PRESENTED_IMAGE_SIMPLE,className:`${g}-small`});default:return me.createElement(P.Z,null)}};Tt.Z=De},28103:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return E}});var me=x(92310),Ae=x.n(me),P=x(59301),De=x(36355),te=x(17313),V=x(83116),S=x(37613);const g=M=>{const{componentCls:N,sizePaddingEdgeHorizontal:T,colorSplit:L,lineWidth:ee,textPaddingInline:R,orientationMargin:le,verticalMarginInline:X}=M;return{[N]:Object.assign(Object.assign({},(0,te.Wf)(M)),{borderBlockStart:`${ee}px solid ${L}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:X,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${ee}px solid ${L}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${M.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${N}-with-text`]:{display:"flex",alignItems:"center",margin:`${M.dividerHorizontalWithTextGutterMargin}px 0`,color:M.colorTextHeading,fontWeight:500,fontSize:M.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${L}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${ee}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${N}-with-text-left`]:{"&::before":{width:`${le*100}%`},"&::after":{width:`${100-le*100}%`}},[`&-horizontal${N}-with-text-right`]:{"&::before":{width:`${100-le*100}%`},"&::after":{width:`${le*100}%`}},[`${N}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:R},"&-dashed":{background:"none",borderColor:L,borderStyle:"dashed",borderWidth:`${ee}px 0 0`},[`&-horizontal${N}-with-text${N}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${N}-dashed`]:{borderInlineStartWidth:ee,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${N}-with-text`]:{color:M.colorText,fontWeight:"normal",fontSize:M.fontSize},[`&-horizontal${N}-with-text-left${N}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${N}-inner-text`]:{paddingInlineStart:T}},[`&-horizontal${N}-with-text-right${N}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${N}-inner-text`]:{paddingInlineEnd:T}}})}};var I=(0,V.Z)("Divider",M=>{const N=(0,S.TS)(M,{dividerHorizontalWithTextGutterMargin:M.margin,dividerHorizontalGutterMargin:M.marginLG,sizePaddingEdgeHorizontal:0});return[g(N)]},M=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:M.marginXS})),v=function(M,N){var T={};for(var L in M)Object.prototype.hasOwnProperty.call(M,L)&&N.indexOf(L)<0&&(T[L]=M[L]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,L=Object.getOwnPropertySymbols(M);ee<L.length;ee++)N.indexOf(L[ee])<0&&Object.prototype.propertyIsEnumerable.call(M,L[ee])&&(T[L[ee]]=M[L[ee]]);return T},E=M=>{const{getPrefixCls:N,direction:T,divider:L}=P.useContext(De.E_),{prefixCls:ee,type:R="horizontal",orientation:le="center",orientationMargin:X,className:q,rootClassName:W,children:K,dashed:se,plain:fe,style:Oe}=M,Se=v(M,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ue=N("divider",ee),[J,ue]=I(Ue),D=le.length>0?`-${le}`:le,Ve=!!K,Me=le==="left"&&X!=null,we=le==="right"&&X!=null,Te=Ae()(Ue,L==null?void 0:L.className,ue,`${Ue}-${R}`,{[`${Ue}-with-text`]:Ve,[`${Ue}-with-text${D}`]:Ve,[`${Ue}-dashed`]:!!se,[`${Ue}-plain`]:!!fe,[`${Ue}-rtl`]:T==="rtl",[`${Ue}-no-default-orientation-margin-left`]:Me,[`${Ue}-no-default-orientation-margin-right`]:we},q,W),ve=P.useMemo(()=>typeof X=="number"?X:/^\d+$/.test(X)?Number(X):X,[X]),Fe=Object.assign(Object.assign({},Me&&{marginLeft:ve}),we&&{marginRight:ve});return J(P.createElement("div",Object.assign({className:Te,style:Object.assign(Object.assign({},L==null?void 0:L.style),Oe)},Se,{role:"separator"}),K&&R!=="vertical"&&P.createElement("span",{className:`${Ue}-inner-text`,style:Fe},K)))}},91857:function(un,Tt,x){"use strict";var me=x(59301),Ae=x(38819),P=x(92310),De=x.n(P),te=x(31561),V=x(70425),S=x(18929),g=x(2738),I=x(79676),v=x(53487),z=x(92343),E=x(36355),M=x(20834),N=x(40875),T=x(88088),L=x(47211);const ee=null,R=W=>{const{menu:K,arrow:se,prefixCls:fe,children:Oe,trigger:Se,disabled:Ue,dropdownRender:J,getPopupContainer:ue,overlayClassName:D,rootClassName:Ve,open:Me,onOpenChange:we,visible:Te,onVisibleChange:ve,mouseEnterDelay:Fe=.15,mouseLeaveDelay:de=.1,autoAdjustOverflow:Ee=!0,placement:tt="",overlay:it,transitionName:Je}=W,{getPopupContainer:et,getPrefixCls:Bt,direction:Lt}=me.useContext(E.E_),Nt=me.useMemo(()=>{const ye=Bt();return Je!==void 0?Je:tt.includes("top")?`${ye}-slide-down`:`${ye}-slide-up`},[Bt,tt,Je]),ur=me.useMemo(()=>tt?tt.includes("Center")?tt.slice(0,tt.indexOf("Center")):tt:Lt==="rtl"?"bottomRight":"bottomLeft",[tt,Lt]),ar=Bt("dropdown",fe),[Cr,sr]=(0,L.Z)(ar),[,G]=(0,T.Z)(),ft=me.Children.only(Oe),F=(0,z.Tm)(ft,{className:De()(`${ar}-trigger`,{[`${ar}-rtl`]:Lt==="rtl"},ft.props.className),disabled:Ue}),m=Ue?[]:Se;let d;m&&m.includes("contextMenu")&&(d=!0);const[C,re]=(0,S.Z)(!1,{value:Me!=null?Me:Te}),Be=(0,V.useEvent)(ye=>{we==null||we(ye),ve==null||ve(ye),re(ye)}),H=De()(D,Ve,sr,{[`${ar}-rtl`]:Lt==="rtl"}),ie=(0,I.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:Ee,offset:G.marginXXS,arrowWidth:se?G.sizePopupArrow:0,borderRadius:G.borderRadius}),Qe=me.useCallback(()=>{re(!1)},[]),xe=()=>{let ye;return K!=null&&K.items?ye=me.createElement(M.default,Object.assign({},K)):typeof it=="function"?ye=it():ye=it,J&&(ye=J(ye)),ye=me.Children.only(typeof ye=="string"?me.createElement("span",null,ye):ye),me.createElement(N.J,{prefixCls:`${ar}-menu`,expandIcon:me.createElement("span",{className:`${ar}-menu-submenu-arrow`},me.createElement(Ae.Z,{className:`${ar}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Qe,validator:je=>{let{mode:xt}=je}},ye)};return Cr(me.createElement(te.Z,Object.assign({alignPoint:d},(0,g.Z)(W,["rootClassName"]),{mouseEnterDelay:Fe,mouseLeaveDelay:de,visible:C,builtinPlacements:ie,arrow:!!se,overlayClassName:H,prefixCls:ar,getPopupContainer:ue||et,transitionName:Nt,trigger:m,overlay:xe,placement:ur,onVisibleChange:Be}),F))};function le(W){return Object.assign(Object.assign({},W),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const X=(0,v.Z)(R,"dropdown",W=>W,le),q=W=>me.createElement(X,Object.assign({},W),me.createElement("span",null));R._InternalPanelDoNotUseOrYouWillBeFired=q,Tt.Z=R},38854:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return T}});var me=x(91857),Ae=x(92310),P=x.n(Ae),De=x(59301),te=x(18785),V=x(3113),S=x(36355),g=x(81327),I=x(33234),v=x(47211),z=function(L,ee){var R={};for(var le in L)Object.prototype.hasOwnProperty.call(L,le)&&ee.indexOf(le)<0&&(R[le]=L[le]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,le=Object.getOwnPropertySymbols(L);X<le.length;X++)ee.indexOf(le[X])<0&&Object.prototype.propertyIsEnumerable.call(L,le[X])&&(R[le[X]]=L[le[X]]);return R};const E=L=>{const{getPopupContainer:ee,getPrefixCls:R,direction:le}=De.useContext(S.E_),{prefixCls:X,type:q="default",danger:W,disabled:K,loading:se,onClick:fe,htmlType:Oe,children:Se,className:Ue,menu:J,arrow:ue,autoFocus:D,overlay:Ve,trigger:Me,align:we,open:Te,onOpenChange:ve,placement:Fe,getPopupContainer:de,href:Ee,icon:tt=De.createElement(te.Z,null),title:it,buttonsRender:Je=xe=>xe,mouseEnterDelay:et,mouseLeaveDelay:Bt,overlayClassName:Lt,overlayStyle:Nt,destroyPopupOnHide:ur,dropdownRender:ar}=L,Cr=z(L,["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"]),sr=R("dropdown",X),G=`${sr}-button`,[ft,F]=(0,v.Z)(sr),m={menu:J,arrow:ue,autoFocus:D,align:we,disabled:K,trigger:K?[]:Me,onOpenChange:ve,getPopupContainer:de||ee,mouseEnterDelay:et,mouseLeaveDelay:Bt,overlayClassName:Lt,overlayStyle:Nt,destroyPopupOnHide:ur,dropdownRender:ar},{compactSize:d,compactItemClassnames:C}=(0,I.ri)(sr,le),re=P()(G,C,Ue,F);"overlay"in L&&(m.overlay=Ve),"open"in L&&(m.open=Te),"placement"in L?m.placement=Fe:m.placement=le==="rtl"?"bottomLeft":"bottomRight";const Be=De.createElement(V.ZP,{type:q,danger:W,disabled:K,loading:se,onClick:fe,htmlType:Oe,href:Ee,title:it},Se),H=De.createElement(V.ZP,{type:q,danger:W,icon:tt}),[ie,Qe]=Je([Be,H]);return ft(De.createElement(g.Z.Compact,Object.assign({className:re,size:d,block:!0},Cr),ie,De.createElement(me.Z,Object.assign({},m),Qe)))};E.__ANT_BUTTON=!0;var M=E;const N=me.Z;N.Button=M;var T=N},47211:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return z}});var me=x(17313),Ae=x(13826),P=x(92899),De=x(29878),te=x(19447),V=x(83116),S=x(37613),I=E=>{const{componentCls:M,menuCls:N,colorError:T,colorTextLightSolid:L}=E,ee=`${N}-item`;return{[`${M}, ${M}-menu-submenu`]:{[`${N} ${ee}`]:{[`&${ee}-danger:not(${ee}-disabled)`]:{color:T,"&:hover":{color:L,backgroundColor:T}}}}}};const v=E=>{const{componentCls:M,menuCls:N,zIndexPopup:T,dropdownArrowDistance:L,sizePopupArrow:ee,antCls:R,iconCls:le,motionDurationMid:X,dropdownPaddingVertical:q,fontSize:W,dropdownEdgeChildPadding:K,colorTextDisabled:se,fontSizeIcon:fe,controlPaddingHorizontal:Oe,colorBgElevated:Se}=E;return[{[M]:Object.assign(Object.assign({},(0,me.Wf)(E)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:T,display:"block","&::before":{position:"absolute",insetBlock:-L+ee/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${R}-btn`]:{[`& > ${le}-down, & > ${R}-btn-icon > ${le}-down`]:{fontSize:fe}},[`${M}-wrap`]:{position:"relative",[`${R}-btn > ${le}-down`]:{fontSize:fe},[`${le}-down::before`]:{transition:`transform ${X}`}},[`${M}-wrap-open`]:{[`${le}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${R}-slide-down-enter${R}-slide-down-enter-active${M}-placement-bottomLeft,
&${R}-slide-down-appear${R}-slide-down-appear-active${M}-placement-bottomLeft,
&${R}-slide-down-enter${R}-slide-down-enter-active${M}-placement-bottom,
&${R}-slide-down-appear${R}-slide-down-appear-active${M}-placement-bottom,
&${R}-slide-down-enter${R}-slide-down-enter-active${M}-placement-bottomRight,
&${R}-slide-down-appear${R}-slide-down-appear-active${M}-placement-bottomRight`]:{animationName:Ae.fJ},[`&${R}-slide-up-enter${R}-slide-up-enter-active${M}-placement-topLeft,
&${R}-slide-up-appear${R}-slide-up-appear-active${M}-placement-topLeft,
&${R}-slide-up-enter${R}-slide-up-enter-active${M}-placement-top,
&${R}-slide-up-appear${R}-slide-up-appear-active${M}-placement-top,
&${R}-slide-up-enter${R}-slide-up-enter-active${M}-placement-topRight,
&${R}-slide-up-appear${R}-slide-up-appear-active${M}-placement-topRight`]:{animationName:Ae.Qt},[`&${R}-slide-down-leave${R}-slide-down-leave-active${M}-placement-bottomLeft,
&${R}-slide-down-leave${R}-slide-down-leave-active${M}-placement-bottom,
&${R}-slide-down-leave${R}-slide-down-leave-active${M}-placement-bottomRight`]:{animationName:Ae.Uw},[`&${R}-slide-up-leave${R}-slide-up-leave-active${M}-placement-topLeft,
&${R}-slide-up-leave${R}-slide-up-leave-active${M}-placement-top,
&${R}-slide-up-leave${R}-slide-up-leave-active${M}-placement-topRight`]:{animationName:Ae.ly}})},(0,te.ZP)(E,{colorBg:Se,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${M} ${N}`]:{position:"relative",margin:0},[`${N}-submenu-popup`]:{position:"absolute",zIndex:T,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${M}, ${M}-menu-submenu`]:{[N]:Object.assign(Object.assign({padding:K,listStyleType:"none",backgroundColor:Se,backgroundClip:"padding-box",borderRadius:E.borderRadiusLG,outline:"none",boxShadow:E.boxShadowSecondary},(0,me.Qy)(E)),{[`${N}-item-group-title`]:{padding:`${q}px ${Oe}px`,color:E.colorTextDescription,transition:`all ${X}`},[`${N}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${N}-item-icon`]:{minWidth:W,marginInlineEnd:E.marginXS,fontSize:E.fontSizeSM},[`${N}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${X}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${N}-item, ${N}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${q}px ${Oe}px`,color:E.colorText,fontWeight:"normal",fontSize:W,lineHeight:E.lineHeight,cursor:"pointer",transition:`all ${X}`,borderRadius:E.borderRadiusSM,"&:hover, &-active":{backgroundColor:E.controlItemBgHover}},(0,me.Qy)(E)),{"&-selected":{color:E.colorPrimary,backgroundColor:E.controlItemBgActive,"&:hover, &-active":{backgroundColor:E.controlItemBgActiveHover}},"&-disabled":{color:se,cursor:"not-allowed","&:hover":{color:se,backgroundColor:Se,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${E.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:E.colorSplit},[`${M}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:E.paddingXS,[`${M}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:E.colorTextDescription,fontSize:fe,fontStyle:"normal"}}}),[`${N}-item-group-list`]:{margin:`0 ${E.marginXS}px`,padding:0,listStyle:"none"},[`${N}-submenu-title`]:{paddingInlineEnd:Oe+E.fontSizeSM},[`${N}-submenu-vertical`]:{position:"relative"},[`${N}-submenu${N}-submenu-disabled ${M}-menu-submenu-title`]:{[`&, ${M}-menu-submenu-arrow-icon`]:{color:se,backgroundColor:Se,cursor:"not-allowed"}},[`${N}-submenu-selected ${M}-menu-submenu-title`]:{color:E.colorPrimary}})}},[(0,Ae.oN)(E,"slide-up"),(0,Ae.oN)(E,"slide-down"),(0,P.Fm)(E,"move-up"),(0,P.Fm)(E,"move-down"),(0,De._y)(E,"zoom-big")]]};var z=(0,V.Z)("Dropdown",(E,M)=>{let{rootPrefixCls:N}=M;const{marginXXS:T,sizePopupArrow:L,controlHeight:ee,fontSize:R,lineHeight:le,paddingXXS:X,componentCls:q,borderRadiusLG:W}=E,K=(ee-R*le)/2,{dropdownArrowOffset:se}=(0,te.fS)({contentRadius:W}),fe=(0,S.TS)(E,{menuCls:`${q}-menu`,rootPrefixCls:N,dropdownArrowDistance:L/2+T,dropdownArrowOffset:se,dropdownPaddingVertical:K,dropdownEdgeChildPadding:X});return[v(fe),I(fe)]},E=>({zIndexPopup:E.zIndexPopupBase+50}))},64165:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return X}});var me=x(92310),Ae=x.n(me),P=x(59301),De=x(36355),te=x(9763),V=x(64993),S=x(88088),I=()=>{const[,q]=(0,S.Z)(),K=new V.C(q.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return P.createElement("svg",{style:K,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},P.createElement("g",{fill:"none",fillRule:"evenodd"},P.createElement("g",{transform:"translate(24 31.67)"},P.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),P.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"}),P.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)"}),P.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"}),P.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"})),P.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"}),P.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},P.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),P.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},z=()=>{const[,q]=(0,S.Z)(),{colorFill:W,colorFillTertiary:K,colorFillQuaternary:se,colorBgContainer:fe}=q,{borderColor:Oe,shadowColor:Se,contentColor:Ue}=(0,P.useMemo)(()=>({borderColor:new V.C(W).onBackground(fe).toHexShortString(),shadowColor:new V.C(K).onBackground(fe).toHexShortString(),contentColor:new V.C(se).onBackground(fe).toHexShortString()}),[W,K,se,fe]);return P.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},P.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},P.createElement("ellipse",{fill:Se,cx:"32",cy:"33",rx:"32",ry:"7"}),P.createElement("g",{fillRule:"nonzero",stroke:Oe},P.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"}),P.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:Ue}))))},E=x(83116),M=x(37613);const N=q=>{const{componentCls:W,margin:K,marginXS:se,marginXL:fe,fontSize:Oe,lineHeight:Se}=q;return{[W]:{marginInline:se,fontSize:Oe,lineHeight:Se,textAlign:"center",[`${W}-image`]:{height:q.emptyImgHeight,marginBottom:se,opacity:q.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${W}-description`]:{color:q.colorText},[`${W}-footer`]:{marginTop:K},"&-normal":{marginBlock:fe,color:q.colorTextDisabled,[`${W}-description`]:{color:q.colorTextDisabled},[`${W}-image`]:{height:q.emptyImgHeightMD}},"&-small":{marginBlock:se,color:q.colorTextDisabled,[`${W}-image`]:{height:q.emptyImgHeightSM}}}}};var T=(0,E.Z)("Empty",q=>{const{componentCls:W,controlHeightLG:K}=q,se=(0,M.TS)(q,{emptyImgCls:`${W}-img`,emptyImgHeight:K*2.5,emptyImgHeightMD:K,emptyImgHeightSM:K*.875});return[N(se)]}),L=function(q,W){var K={};for(var se in q)Object.prototype.hasOwnProperty.call(q,se)&&W.indexOf(se)<0&&(K[se]=q[se]);if(q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var fe=0,se=Object.getOwnPropertySymbols(q);fe<se.length;fe++)W.indexOf(se[fe])<0&&Object.prototype.propertyIsEnumerable.call(q,se[fe])&&(K[se[fe]]=q[se[fe]]);return K};const ee=P.createElement(I,null),R=P.createElement(z,null),le=q=>{var{className:W,rootClassName:K,prefixCls:se,image:fe=ee,description:Oe,children:Se,imageStyle:Ue,style:J}=q,ue=L(q,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:D,direction:Ve,empty:Me}=P.useContext(De.E_),we=D("empty",se),[Te,ve]=T(we),[Fe]=(0,te.Z)("Empty"),de=typeof Oe!="undefined"?Oe:Fe==null?void 0:Fe.description,Ee=typeof de=="string"?de:"empty";let tt=null;return typeof fe=="string"?tt=P.createElement("img",{alt:Ee,src:fe}):tt=fe,Te(P.createElement("div",Object.assign({className:Ae()(ve,we,Me==null?void 0:Me.className,{[`${we}-normal`]:fe===R,[`${we}-rtl`]:Ve==="rtl"},W,K),style:Object.assign(Object.assign({},Me==null?void 0:Me.style),J)},ue),P.createElement("div",{className:`${we}-image`,style:Ue},tt),de&&P.createElement("div",{className:`${we}-description`},de),Se&&P.createElement("div",{className:`${we}-footer`},Se)))};le.PRESENTED_IMAGE_DEFAULT=ee,le.PRESENTED_IMAGE_SIMPLE=R;var X=le},8628:function(un,Tt,x){"use strict";var me=x(59301),Ae=x(34280),P=x(56762),De=x(69507);function te(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const S=(0,me.useRef)({}),g=(0,P.Z)(),I=(0,De.ZP)();return(0,Ae.Z)(()=>{const v=I.subscribe(z=>{S.current=z,V&&g()});return()=>I.unsubscribe(v)},[]),S.current}Tt.Z=te},5871:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ye}});var me=x(84105),Ae=x(87395),P=x(92310),De=x.n(P),te=x(54476),V=x(20068),S=x(76190),g=x(42978),I=x(75931),v=x(67732),z=x(83652);function E(){return typeof BigInt=="function"}function M(Ie){return!Ie&&Ie!==0&&!Number.isNaN(Ie)||!String(Ie).trim()}function N(Ie){var Le=Ie.trim(),ct=Le.startsWith("-");ct&&(Le=Le.slice(1)),Le=Le.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Le.startsWith(".")&&(Le="0".concat(Le));var Ut=Le||"0",kt=Ut.split("."),tr=kt[0]||"0",Dr=kt[1]||"0";tr==="0"&&Dr==="0"&&(ct=!1);var fr=ct?"-":"";return{negative:ct,negativeStr:fr,trimStr:Ut,integerStr:tr,decimalStr:Dr,fullStr:"".concat(fr).concat(Ut)}}function T(Ie){var Le=String(Ie);return!Number.isNaN(Number(Le))&&Le.includes("e")}function L(Ie){var Le=String(Ie);if(T(Ie)){var ct=Number(Le.slice(Le.indexOf("e-")+2)),Ut=Le.match(/\.(\d+)/);return Ut!=null&&Ut[1]&&(ct+=Ut[1].length),ct}return Le.includes(".")&&R(Le)?Le.length-Le.indexOf(".")-1:0}function ee(Ie){var Le=String(Ie);if(T(Ie)){if(Ie>Number.MAX_SAFE_INTEGER)return String(E()?BigInt(Ie).toString():Number.MAX_SAFE_INTEGER);if(Ie<Number.MIN_SAFE_INTEGER)return String(E()?BigInt(Ie).toString():Number.MIN_SAFE_INTEGER);Le=Ie.toFixed(L(Le))}return N(Le).fullStr}function R(Ie){return typeof Ie=="number"?!Number.isNaN(Ie):Ie?/^\s*-?\d+(\.\d+)?\s*$/.test(Ie)||/^\s*-?\d+\.\s*$/.test(Ie)||/^\s*-?\.\d+\s*$/.test(Ie):!1}var le=function(){function Ie(Le){if((0,v.Z)(this,Ie),(0,V.Z)(this,"origin",""),(0,V.Z)(this,"negative",void 0),(0,V.Z)(this,"integer",void 0),(0,V.Z)(this,"decimal",void 0),(0,V.Z)(this,"decimalLen",void 0),(0,V.Z)(this,"empty",void 0),(0,V.Z)(this,"nan",void 0),M(Le)){this.empty=!0;return}if(this.origin=String(Le),Le==="-"||Number.isNaN(Le)){this.nan=!0;return}var ct=Le;if(T(ct)&&(ct=Number(ct)),ct=typeof ct=="string"?ct:ee(ct),R(ct)){var Ut=N(ct);this.negative=Ut.negative;var kt=Ut.trimStr.split(".");this.integer=BigInt(kt[0]);var tr=kt[1]||"0";this.decimal=BigInt(tr),this.decimalLen=tr.length}else this.nan=!0}return(0,z.Z)(Ie,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(ct){var Ut="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(ct,"0"));return BigInt(Ut)}},{key:"negate",value:function(){var ct=new Ie(this.toString());return ct.negative=!ct.negative,ct}},{key:"cal",value:function(ct,Ut,kt){var tr=Math.max(this.getDecimalStr().length,ct.getDecimalStr().length),Dr=this.alignDecimal(tr),fr=ct.alignDecimal(tr),Fr=Ut(Dr,fr).toString(),Lr=kt(tr),mr=N(Fr),cr=mr.negativeStr,Kr=mr.trimStr,fn="".concat(cr).concat(Kr.padStart(Lr+1,"0"));return new Ie("".concat(fn.slice(0,-Lr),".").concat(fn.slice(-Lr)))}},{key:"add",value:function(ct){if(this.isInvalidate())return new Ie(ct);var Ut=new Ie(ct);return Ut.isInvalidate()?this:this.cal(Ut,function(kt,tr){return kt+tr},function(kt){return kt})}},{key:"multi",value:function(ct){var Ut=new Ie(ct);return this.isInvalidate()||Ut.isInvalidate()?new Ie(NaN):this.cal(Ut,function(kt,tr){return kt*tr},function(kt){return kt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(ct){return this.toString()===(ct==null?void 0:ct.toString())}},{key:"lessEquals",value:function(ct){return this.add(ct.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return ct?this.isInvalidate()?"":N("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ie}(),X=function(){function Ie(Le){if((0,v.Z)(this,Ie),(0,V.Z)(this,"origin",""),(0,V.Z)(this,"number",void 0),(0,V.Z)(this,"empty",void 0),M(Le)){this.empty=!0;return}this.origin=String(Le),this.number=Number(Le)}return(0,z.Z)(Ie,[{key:"negate",value:function(){return new Ie(-this.toNumber())}},{key:"add",value:function(ct){if(this.isInvalidate())return new Ie(ct);var Ut=Number(ct);if(Number.isNaN(Ut))return this;var kt=this.number+Ut;if(kt>Number.MAX_SAFE_INTEGER)return new Ie(Number.MAX_SAFE_INTEGER);if(kt<Number.MIN_SAFE_INTEGER)return new Ie(Number.MIN_SAFE_INTEGER);var tr=Math.max(L(this.number),L(Ut));return new Ie(kt.toFixed(tr))}},{key:"multi",value:function(ct){var Ut=Number(ct);if(this.isInvalidate()||Number.isNaN(Ut))return new Ie(NaN);var kt=this.number*Ut;if(kt>Number.MAX_SAFE_INTEGER)return new Ie(Number.MAX_SAFE_INTEGER);if(kt<Number.MIN_SAFE_INTEGER)return new Ie(Number.MIN_SAFE_INTEGER);var tr=Math.max(L(this.number),L(Ut));return new Ie(kt.toFixed(tr))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(ct){return this.toNumber()===(ct==null?void 0:ct.toNumber())}},{key:"lessEquals",value:function(ct){return this.add(ct.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return ct?this.isInvalidate()?"":ee(this.number):this.origin}}]),Ie}();function q(Ie){return E()?new le(Ie):new X(Ie)}function W(Ie,Le,ct){var Ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ie==="")return"";var kt=N(Ie),tr=kt.negativeStr,Dr=kt.integerStr,fr=kt.decimalStr,Fr="".concat(Le).concat(fr),Lr="".concat(tr).concat(Dr);if(ct>=0){var mr=Number(fr[ct]);if(mr>=5&&!Ut){var cr=q(Ie).add("".concat(tr,"0.").concat("0".repeat(ct)).concat(10-mr));return W(cr.toString(),Le,ct,Ut)}return ct===0?Lr:"".concat(Lr).concat(Le).concat(fr.padEnd(ct,"0").slice(0,ct))}return Fr===".0"?Lr:"".concat(Lr).concat(Fr)}var K=q,se=x(93681),fe=x(34280),Oe=x(8654),Se=x(59301),Ue=x(48736);function J(Ie,Le){var ct=(0,Se.useRef)(null);function Ut(){try{var tr=Ie.selectionStart,Dr=Ie.selectionEnd,fr=Ie.value,Fr=fr.substring(0,tr),Lr=fr.substring(Dr);ct.current={start:tr,end:Dr,value:fr,beforeTxt:Fr,afterTxt:Lr}}catch(mr){}}function kt(){if(Ie&&ct.current&&Le)try{var tr=Ie.value,Dr=ct.current,fr=Dr.beforeTxt,Fr=Dr.afterTxt,Lr=Dr.start,mr=tr.length;if(tr.endsWith(Fr))mr=tr.length-ct.current.afterTxt.length;else if(tr.startsWith(fr))mr=fr.length;else{var cr=fr[Lr-1],Kr=tr.indexOf(cr,Lr-1);Kr!==-1&&(mr=Kr+1)}Ie.setSelectionRange(mr,mr)}catch(fn){(0,Ue.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(fn.message))}}return[Ut,kt]}var ue=x(49658),D=function(){var Le=(0,Se.useState)(!1),ct=(0,g.Z)(Le,2),Ut=ct[0],kt=ct[1];return(0,fe.Z)(function(){kt((0,ue.Z)())},[]),Ut},Ve=D,Me=x(16089),we=200,Te=600;function ve(Ie){var Le=Ie.prefixCls,ct=Ie.upNode,Ut=Ie.downNode,kt=Ie.upDisabled,tr=Ie.downDisabled,Dr=Ie.onStep,fr=Se.useRef(),Fr=Se.useRef([]),Lr=Se.useRef();Lr.current=Dr;var mr=function(){clearTimeout(fr.current)},cr=function(Ai,Oi){Ai.preventDefault(),mr(),Lr.current(Oi);function mi(){Lr.current(Oi),fr.current=setTimeout(mi,we)}fr.current=setTimeout(mi,Te)};Se.useEffect(function(){return function(){mr(),Fr.current.forEach(function(_r){return Me.Z.cancel(_r)})}},[]);var Kr=Ve();if(Kr)return null;var fn="".concat(Le,"-handler"),_n=De()(fn,"".concat(fn,"-up"),(0,V.Z)({},"".concat(fn,"-up-disabled"),kt)),ln=De()(fn,"".concat(fn,"-down"),(0,V.Z)({},"".concat(fn,"-down-disabled"),tr)),xn=function(){return Fr.current.push((0,Me.Z)(mr))},oi={unselectable:"on",role:"button",onMouseUp:xn,onMouseLeave:xn};return Se.createElement("div",{className:"".concat(fn,"-wrap")},Se.createElement("span",(0,te.Z)({},oi,{onMouseDown:function(Ai){cr(Ai,!0)},"aria-label":"Increase Value","aria-disabled":kt,className:_n}),ct||Se.createElement("span",{unselectable:"on",className:"".concat(Le,"-handler-up-inner")})),Se.createElement("span",(0,te.Z)({},oi,{onMouseDown:function(Ai){cr(Ai,!1)},"aria-label":"Decrease Value","aria-disabled":tr,className:ln}),Ut||Se.createElement("span",{unselectable:"on",className:"".concat(Le,"-handler-down-inner")})))}function Fe(Ie){var Le=typeof Ie=="number"?ee(Ie):N(Ie).fullStr,ct=Le.includes(".");return ct?N(Le.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ie+"0"}var de=x(5643),Ee=function(){var Ie=(0,Se.useRef)(0),Le=function(){Me.Z.cancel(Ie.current)};return(0,Se.useEffect)(function(){return Le},[]),function(ct){Le(),Ie.current=(0,Me.Z)(function(){ct()})}},tt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],it=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],Je=function(Le,ct){return Le||ct.isEmpty()?ct.toString():ct.toNumber()},et=function(Le){var ct=K(Le);return ct.isInvalidate()?null:ct},Bt=Se.forwardRef(function(Ie,Le){var ct,Ut=Ie.prefixCls,kt=Ut===void 0?"rc-input-number":Ut,tr=Ie.className,Dr=Ie.style,fr=Ie.min,Fr=Ie.max,Lr=Ie.step,mr=Lr===void 0?1:Lr,cr=Ie.defaultValue,Kr=Ie.value,fn=Ie.disabled,_n=Ie.readOnly,ln=Ie.upHandler,xn=Ie.downHandler,oi=Ie.keyboard,_r=Ie.controls,Ai=_r===void 0?!0:_r,Oi=Ie.classNames,mi=Ie.stringMode,Wi=Ie.parser,Gi=Ie.formatter,ta=Ie.precision,_o=Ie.decimalSeparator,ra=Ie.onChange,bi=Ie.onInput,Ki=Ie.onPressEnter,sa=Ie.onStep,be=(0,I.Z)(Ie,tt),Ne="".concat(kt,"-input"),ke=Se.useRef(null),Xe=Se.useState(!1),Pt=(0,g.Z)(Xe,2),Dt=Pt[0],Er=Pt[1],rr=Se.useRef(!1),Nr=Se.useRef(!1),Hr=Se.useRef(!1),an=Se.useState(function(){return K(Kr!=null?Kr:cr)}),jr=(0,g.Z)(an,2),Rr=jr[0],en=jr[1];function wn(pn){Kr===void 0&&en(pn)}var on=Se.useCallback(function(pn,cn){if(!cn)return ta>=0?ta:Math.max(L(pn),L(mr))},[ta,mr]),On=Se.useCallback(function(pn){var cn=String(pn);if(Wi)return Wi(cn);var Xn=cn;return _o&&(Xn=Xn.replace(_o,".")),Xn.replace(/[^\w.-]+/g,"")},[Wi,_o]),Qn=Se.useRef(""),di=Se.useCallback(function(pn,cn){if(Gi)return Gi(pn,{userTyping:cn,input:String(Qn.current)});var Xn=typeof pn=="number"?ee(pn):pn;if(!cn){var Kn=on(Xn,cn);if(R(Xn)&&(_o||Kn>=0)){var fi=_o||".";Xn=W(Xn,fi,Kn)}}return Xn},[Gi,on,_o]),Nn=Se.useState(function(){var pn=cr!=null?cr:Kr;return Rr.isInvalidate()&&["string","number"].includes((0,S.Z)(pn))?Number.isNaN(pn)?"":pn:di(Rr.toString(),!1)}),Gn=(0,g.Z)(Nn,2),Vt=Gn[0],Xt=Gn[1];Qn.current=Vt;function Yt(pn,cn){Xt(di(pn.isInvalidate()?pn.toString(!1):pn.toString(!cn),cn))}var er=Se.useMemo(function(){return et(Fr)},[Fr,ta]),jt=Se.useMemo(function(){return et(fr)},[fr,ta]),or=Se.useMemo(function(){return!er||!Rr||Rr.isInvalidate()?!1:er.lessEquals(Rr)},[er,Rr]),lr=Se.useMemo(function(){return!jt||!Rr||Rr.isInvalidate()?!1:Rr.lessEquals(jt)},[jt,Rr]),Pr=J(ke.current,Dt),yn=(0,g.Z)(Pr,2),Bn=yn[0],li=yn[1],ti=function(cn){return er&&!cn.lessEquals(er)?er:jt&&!jt.lessEquals(cn)?jt:null},Si=function(cn){return!ti(cn)},Yn=function(cn,Xn){var Kn=cn,fi=Si(Kn)||Kn.isEmpty();if(!Kn.isEmpty()&&!Xn&&(Kn=ti(Kn)||Kn,fi=!0),!_n&&!fn&&fi){var Xi=Kn.toString(),Ii=on(Xi,Xn);return Ii>=0&&(Kn=K(W(Xi,".",Ii)),Si(Kn)||(Kn=K(W(Xi,".",Ii,!0)))),Kn.equals(Rr)||(wn(Kn),ra==null||ra(Kn.isEmpty()?null:Je(mi,Kn)),Kr===void 0&&Yt(Kn,Xn)),Kn}return Rr},jn=Ee(),wi=function pn(cn){if(Bn(),Qn.current=cn,Xt(cn),!Nr.current){var Xn=On(cn),Kn=K(Xn);Kn.isNaN()||Yn(Kn,!0)}bi==null||bi(cn),jn(function(){var fi=cn;Wi||(fi=cn.replace(/。/g,".")),fi!==cn&&pn(fi)})},yi=function(){Nr.current=!0},xi=function(){Nr.current=!1,wi(ke.current.value)},ci=function(cn){wi(cn.target.value)},Ci=function(cn){var Xn;if(!(cn&&or||!cn&&lr)){rr.current=!1;var Kn=K(Hr.current?Fe(mr):mr);cn||(Kn=Kn.negate());var fi=(Rr||K(0)).add(Kn.toString()),Xi=Yn(fi,!1);sa==null||sa(Je(mi,Xi),{offset:Hr.current?Fe(mr):mr,type:cn?"up":"down"}),(Xn=ke.current)===null||Xn===void 0||Xn.focus()}},$i=function(cn){var Xn=K(On(Vt)),Kn=Xn;Xn.isNaN()?Kn=Yn(Rr,cn):Kn=Yn(Xn,cn),Kr!==void 0?Yt(Rr,!1):Kn.isNaN()||Yt(Kn,!1)},ei=function(){rr.current=!0},Ni=function(cn){var Xn=cn.key,Kn=cn.shiftKey;rr.current=!0,Hr.current=Kn,Xn==="Enter"&&(Nr.current||(rr.current=!1),$i(!1),Ki==null||Ki(cn)),oi!==!1&&!Nr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Xn)&&(Ci(Xn==="Up"||Xn==="ArrowUp"),cn.preventDefault())},Ha=function(){rr.current=!1,Hr.current=!1},si=function(){$i(!1),Er(!1),rr.current=!1};return(0,fe.o)(function(){Rr.isInvalidate()||Yt(Rr,!1)},[ta]),(0,fe.o)(function(){var pn=K(Kr);en(pn);var cn=K(On(Vt));(!pn.equals(cn)||!rr.current||Gi)&&Yt(pn,rr.current)},[Kr]),(0,fe.o)(function(){Gi&&li()},[Vt]),Se.createElement("div",{className:De()(kt,Oi==null?void 0:Oi.input,tr,(ct={},(0,V.Z)(ct,"".concat(kt,"-focused"),Dt),(0,V.Z)(ct,"".concat(kt,"-disabled"),fn),(0,V.Z)(ct,"".concat(kt,"-readonly"),_n),(0,V.Z)(ct,"".concat(kt,"-not-a-number"),Rr.isNaN()),(0,V.Z)(ct,"".concat(kt,"-out-of-range"),!Rr.isInvalidate()&&!Si(Rr)),ct)),style:Dr,onFocus:function(){Er(!0)},onBlur:si,onKeyDown:Ni,onKeyUp:Ha,onCompositionStart:yi,onCompositionEnd:xi,onBeforeInput:ei},Ai&&Se.createElement(ve,{prefixCls:kt,upNode:ln,downNode:xn,upDisabled:or,downDisabled:lr,onStep:Ci}),Se.createElement("div",{className:"".concat(Ne,"-wrap")},Se.createElement("input",(0,te.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":fr,"aria-valuemax":Fr,"aria-valuenow":Rr.isInvalidate()?null:Rr.toString(),step:mr},be,{ref:(0,Oe.sQ)(ke,Le),className:Ne,value:Vt,onChange:ci,disabled:fn,readOnly:_n}))))}),Lt=Se.forwardRef(function(Ie,Le){var ct=Ie.disabled,Ut=Ie.style,kt=Ie.prefixCls,tr=Ie.value,Dr=Ie.prefix,fr=Ie.suffix,Fr=Ie.addonBefore,Lr=Ie.addonAfter,mr=Ie.classes,cr=Ie.className,Kr=Ie.classNames,fn=(0,I.Z)(Ie,it),_n=Se.useRef(null),ln=function(oi){_n.current&&(0,de.nH)(_n.current,oi)};return Se.createElement(se.BaseInput,{inputElement:Se.createElement(Bt,(0,te.Z)({prefixCls:kt,disabled:ct,classNames:Kr,ref:(0,Oe.sQ)(_n,Le)},fn)),className:cr,triggerFocus:ln,prefixCls:kt,value:tr,disabled:ct,style:Ut,prefix:Dr,suffix:fr,addonAfter:Lr,addonBefore:Fr,classes:mr,classNames:Kr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Lt.displayName="InputNumber";var Nt=Lt,ur=Nt,ar=x(19080),Cr=x(36355),sr=x(92736),G=x(1684),ft=x(19716),F=x(32441),m=x(33234),d=x(9937),C=x(17313),re=x(74207),Be=x(83116),H=x(37613);const ie=(Ie,Le)=>{let{componentCls:ct,borderRadiusSM:Ut,borderRadiusLG:kt}=Ie;const tr=Le==="lg"?kt:Ut;return{[`&-${Le}`]:{[`${ct}-handler-wrap`]:{borderStartEndRadius:tr,borderEndEndRadius:tr},[`${ct}-handler-up`]:{borderStartEndRadius:tr},[`${ct}-handler-down`]:{borderEndEndRadius:tr}}}},Qe=Ie=>{const{componentCls:Le,lineWidth:ct,lineType:Ut,colorBorder:kt,borderRadius:tr,fontSizeLG:Dr,controlHeightLG:fr,controlHeightSM:Fr,colorError:Lr,paddingInlineSM:mr,colorTextDescription:cr,motionDurationMid:Kr,handleHoverColor:fn,paddingInline:_n,paddingBlock:ln,handleBg:xn,handleActiveBg:oi,colorTextDisabled:_r,borderRadiusSM:Ai,borderRadiusLG:Oi,controlWidth:mi,handleVisible:Wi,handleBorderColor:Gi}=Ie;return[{[Le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Ie)),(0,d.ik)(Ie)),(0,d.bi)(Ie,Le)),{display:"inline-block",width:mi,margin:0,padding:0,border:`${ct}px ${Ut} ${kt}`,borderRadius:tr,"&-rtl":{direction:"rtl",[`${Le}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Dr,borderRadius:Oi,[`input${Le}-input`]:{height:fr-2*ct}},"&-sm":{padding:0,borderRadius:Ai,[`input${Le}-input`]:{height:Fr-2*ct,padding:`0 ${mr}px`}},"&:hover":Object.assign({},(0,d.pU)(Ie)),"&-focused":Object.assign({},(0,d.M1)(Ie)),"&-out-of-range":{[`${Le}-input-wrap`]:{input:{color:Lr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Ie)),(0,d.s7)(Ie)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Le}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Le}-group-addon`]:{borderRadius:Oi,fontSize:Ie.fontSizeLG}},"&-sm":{[`${Le}-group-addon`]:{borderRadius:Ai}},[`${Le}-wrapper-disabled > ${Le}-group-addon`]:Object.assign({},(0,d.Xy)(Ie))}}),[`&-disabled ${Le}-input`]:{cursor:"not-allowed"},[Le]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Ie)),{width:"100%",padding:`${ln}px ${_n}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:tr,outline:0,transition:`all ${Kr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,d.nz)(Ie.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Le]:Object.assign(Object.assign(Object.assign({[`&:hover ${Le}-handler-wrap, &-focused ${Le}-handler-wrap`]:{opacity:1},[`${Le}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ie.handleWidth,height:"100%",background:xn,borderStartStartRadius:0,borderStartEndRadius:tr,borderEndEndRadius:tr,borderEndStartRadius:0,opacity:Wi===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Kr} linear ${Kr}`,[`${Le}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Le}-handler-up-inner,
${Le}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Ie.handleFontSize}}},[`${Le}-handler`]:{height:"50%",overflow:"hidden",color:cr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ct}px ${Ut} ${Gi}`,transition:`all ${Kr} linear`,"&:active":{background:oi},"&:hover":{height:"60%",[`
${Le}-handler-up-inner,
${Le}-handler-down-inner
`]:{color:fn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,C.Ro)()),{color:cr,transition:`all ${Kr} linear`,userSelect:"none"})},[`${Le}-handler-up`]:{borderStartEndRadius:tr},[`${Le}-handler-down`]:{borderBlockStart:`${ct}px ${Ut} ${Gi}`,borderEndEndRadius:tr}},ie(Ie,"lg")),ie(Ie,"sm")),{"&-disabled, &-readonly":{[`${Le}-handler-wrap`]:{display:"none"},[`${Le}-input`]:{color:"inherit"}},[`
${Le}-handler-up-disabled,
${Le}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Le}-handler-up-disabled:hover &-handler-up-inner,
${Le}-handler-down-disabled:hover &-handler-down-inner
`]:{color:_r}})},{[`${Le}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Le}-handler-down`]:{borderBlockStartWidth:0}}}]},xe=Ie=>{const{componentCls:Le,paddingBlock:ct,paddingInline:Ut,inputAffixPadding:kt,controlWidth:tr,borderRadiusLG:Dr,borderRadiusSM:fr}=Ie;return{[`${Le}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,d.ik)(Ie)),(0,d.bi)(Ie,`${Le}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:tr,padding:0,paddingInlineStart:Ut,"&-lg":{borderRadius:Dr},"&-sm":{borderRadius:fr},[`&:not(${Le}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,d.pU)(Ie)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Le}-disabled`]:{background:"transparent"},[`> div${Le}`]:{width:"100%",border:"none",outline:"none",[`&${Le}-focused`]:{boxShadow:"none !important"}},[`input${Le}-input`]:{padding:`${ct}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Le}-handler-wrap`]:{zIndex:2},[Le]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:kt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Ut,marginInlineStart:kt}}})}};var ye=(0,Be.Z)("InputNumber",Ie=>{const Le=(0,H.TS)(Ie,(0,d.e5)(Ie));return[Qe(Le),xe(Le),(0,re.c)(Le)]},Ie=>Object.assign(Object.assign({},(0,d.TM)(Ie)),{controlWidth:90,handleWidth:Ie.controlHeightSM-Ie.lineWidth*2,handleFontSize:Ie.fontSize/2,handleVisible:"auto",handleActiveBg:Ie.colorFillAlter,handleBg:Ie.colorBgContainer,handleHoverColor:Ie.colorPrimary,handleBorderColor:Ie.colorBorder})),je=function(Ie,Le){var ct={};for(var Ut in Ie)Object.prototype.hasOwnProperty.call(Ie,Ut)&&Le.indexOf(Ut)<0&&(ct[Ut]=Ie[Ut]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Ut=Object.getOwnPropertySymbols(Ie);kt<Ut.length;kt++)Le.indexOf(Ut[kt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ut[kt])&&(ct[Ut[kt]]=Ie[Ut[kt]]);return ct};const xt=Se.forwardRef((Ie,Le)=>{const{getPrefixCls:ct,direction:Ut}=Se.useContext(Cr.E_),kt=Se.useRef(null);Se.useImperativeHandle(Le,()=>kt.current);const{className:tr,rootClassName:Dr,size:fr,disabled:Fr,prefixCls:Lr,addonBefore:mr,addonAfter:cr,prefix:Kr,bordered:fn=!0,readOnly:_n,status:ln,controls:xn}=Ie,oi=je(Ie,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),_r=ct("input-number",Lr),[Ai,Oi]=ye(_r),{compactSize:mi,compactItemClassnames:Wi}=(0,m.ri)(_r,Ut);let Gi=Se.createElement(Ae.Z,{className:`${_r}-handler-up-inner`}),ta=Se.createElement(me.Z,{className:`${_r}-handler-down-inner`});const _o=typeof xn=="boolean"?xn:void 0;typeof xn=="object"&&(Gi=typeof xn.upIcon=="undefined"?Gi:Se.createElement("span",{className:`${_r}-handler-up-inner`},xn.upIcon),ta=typeof xn.downIcon=="undefined"?ta:Se.createElement("span",{className:`${_r}-handler-down-inner`},xn.downIcon));const{hasFeedback:ra,status:bi,isFormItemInput:Ki,feedbackIcon:sa}=Se.useContext(F.aM),be=(0,ar.F)(bi,ln),Ne=(0,ft.Z)(rr=>{var Nr;return(Nr=fr!=null?fr:mi)!==null&&Nr!==void 0?Nr:rr}),ke=Se.useContext(G.Z),Xe=Fr!=null?Fr:ke,Pt=De()({[`${_r}-lg`]:Ne==="large",[`${_r}-sm`]:Ne==="small",[`${_r}-rtl`]:Ut==="rtl",[`${_r}-borderless`]:!fn,[`${_r}-in-form-item`]:Ki},(0,ar.Z)(_r,be),Wi,Oi),Dt=`${_r}-group`,Er=Se.createElement(ur,Object.assign({ref:kt,disabled:Xe,className:De()(tr,Dr),upHandler:Gi,downHandler:ta,prefixCls:_r,readOnly:_n,controls:_o,prefix:Kr,suffix:ra&&sa,addonAfter:cr&&Se.createElement(m.BR,null,Se.createElement(F.Ux,{override:!0,status:!0},cr)),addonBefore:mr&&Se.createElement(m.BR,null,Se.createElement(F.Ux,{override:!0,status:!0},mr)),classNames:{input:Pt},classes:{affixWrapper:De()((0,ar.Z)(`${_r}-affix-wrapper`,be,ra),{[`${_r}-affix-wrapper-sm`]:Ne==="small",[`${_r}-affix-wrapper-lg`]:Ne==="large",[`${_r}-affix-wrapper-rtl`]:Ut==="rtl",[`${_r}-affix-wrapper-borderless`]:!fn},Oi),wrapper:De()({[`${Dt}-rtl`]:Ut==="rtl",[`${_r}-wrapper-disabled`]:Xe},Oi),group:De()({[`${_r}-group-wrapper-sm`]:Ne==="small",[`${_r}-group-wrapper-lg`]:Ne==="large",[`${_r}-group-wrapper-rtl`]:Ut==="rtl"},(0,ar.Z)(`${_r}-group-wrapper`,be,ra),Oi)}},oi));return Ai(Er)}),he=xt,st=Ie=>Se.createElement(sr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Se.createElement(xt,Object.assign({},Ie)));he._InternalPanelDoNotUseOrYouWillBeFired=st;var Ye=he},9432:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return le},n:function(){return ee}});var me=x(19248),Ae=x(92310),P=x.n(Ae),De=x(93681),te=x(8654),V=x(59301),S=x(19080),g=x(36355),I=x(1684),v=x(19716),z=x(32441),E=x(33234),M=x(59412),N=x(9937);function T(X){return!!(X.prefix||X.suffix||X.allowClear)}var L=function(X,q){var W={};for(var K in X)Object.prototype.hasOwnProperty.call(X,K)&&q.indexOf(K)<0&&(W[K]=X[K]);if(X!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,K=Object.getOwnPropertySymbols(X);se<K.length;se++)q.indexOf(K[se])<0&&Object.prototype.propertyIsEnumerable.call(X,K[se])&&(W[K[se]]=X[K[se]]);return W};function ee(X,q){if(!X)return;X.focus(q);const{cursor:W}=q||{};if(W){const K=X.value.length;switch(W){case"start":X.setSelectionRange(0,0);break;case"end":X.setSelectionRange(K,K);break;default:X.setSelectionRange(0,K);break}}}var le=(0,V.forwardRef)((X,q)=>{var W;const{prefixCls:K,bordered:se=!0,status:fe,size:Oe,disabled:Se,onBlur:Ue,onFocus:J,suffix:ue,allowClear:D,addonAfter:Ve,addonBefore:Me,className:we,style:Te,styles:ve,rootClassName:Fe,onChange:de,classNames:Ee}=X,tt=L(X,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:it,direction:Je,input:et}=V.useContext(g.E_),Bt=it("input",K),Lt=(0,V.useRef)(null),[Nt,ur]=(0,N.ZP)(Bt),{compactSize:ar,compactItemClassnames:Cr}=(0,E.ri)(Bt,Je),sr=(0,v.Z)(xt=>{var he;return(he=Oe!=null?Oe:ar)!==null&&he!==void 0?he:xt}),G=V.useContext(I.Z),ft=Se!=null?Se:G,{status:F,hasFeedback:m,feedbackIcon:d}=(0,V.useContext)(z.aM),C=(0,S.F)(F,fe),re=T(X)||!!m,Be=(0,V.useRef)(re);(0,V.useEffect)(()=>{var xt;re&&Be.current,Be.current=re},[re]);const H=(0,M.Z)(Lt,!0),ie=xt=>{H(),Ue==null||Ue(xt)},Qe=xt=>{H(),J==null||J(xt)},xe=xt=>{H(),de==null||de(xt)},ye=(m||ue)&&V.createElement(V.Fragment,null,ue,m&&d);let je;return typeof D=="object"&&(D!=null&&D.clearIcon)?je=D:D&&(je={clearIcon:V.createElement(me.Z,null)}),Nt(V.createElement(De.default,Object.assign({ref:(0,te.sQ)(q,Lt),prefixCls:Bt,autoComplete:et==null?void 0:et.autoComplete},tt,{disabled:ft,onBlur:ie,onFocus:Qe,style:Object.assign(Object.assign({},et==null?void 0:et.style),Te),styles:Object.assign(Object.assign({},et==null?void 0:et.styles),ve),suffix:ye,allowClear:je,className:P()(we,Fe,Cr,et==null?void 0:et.className),onChange:xe,addonAfter:Ve&&V.createElement(E.BR,null,V.createElement(z.Ux,{override:!0,status:!0},Ve)),addonBefore:Me&&V.createElement(E.BR,null,V.createElement(z.Ux,{override:!0,status:!0},Me)),classNames:Object.assign(Object.assign(Object.assign({},Ee),et==null?void 0:et.classNames),{input:P()({[`${Bt}-sm`]:sr==="small",[`${Bt}-lg`]:sr==="large",[`${Bt}-rtl`]:Je==="rtl",[`${Bt}-borderless`]:!se},!re&&(0,S.Z)(Bt,C),Ee==null?void 0:Ee.input,(W=et==null?void 0:et.classNames)===null||W===void 0?void 0:W.input,ur)}),classes:{affixWrapper:P()({[`${Bt}-affix-wrapper-sm`]:sr==="small",[`${Bt}-affix-wrapper-lg`]:sr==="large",[`${Bt}-affix-wrapper-rtl`]:Je==="rtl",[`${Bt}-affix-wrapper-borderless`]:!se},(0,S.Z)(`${Bt}-affix-wrapper`,C,m),ur),wrapper:P()({[`${Bt}-group-rtl`]:Je==="rtl"},ur),group:P()({[`${Bt}-group-wrapper-sm`]:sr==="small",[`${Bt}-group-wrapper-lg`]:sr==="large",[`${Bt}-group-wrapper-rtl`]:Je==="rtl",[`${Bt}-group-wrapper-disabled`]:ft},(0,S.Z)(`${Bt}-group-wrapper`,C,m),ur)}})))})},1643:function(un,Tt,x){"use strict";var me=x(19248),Ae=x(92310),P=x.n(Ae),De=x(9296),te=x(59301),V=x(19080),S=x(36355),g=x(1684),I=x(19716),v=x(32441),z=x(9432),E=x(9937),M=function(T,L){var ee={};for(var R in T)Object.prototype.hasOwnProperty.call(T,R)&&L.indexOf(R)<0&&(ee[R]=T[R]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,R=Object.getOwnPropertySymbols(T);le<R.length;le++)L.indexOf(R[le])<0&&Object.prototype.propertyIsEnumerable.call(T,R[le])&&(ee[R[le]]=T[R[le]]);return ee};const N=(0,te.forwardRef)((T,L)=>{const{prefixCls:ee,bordered:R=!0,size:le,disabled:X,status:q,allowClear:W,showCount:K,classNames:se,rootClassName:fe,className:Oe}=T,Se=M(T,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ue,direction:J}=te.useContext(S.E_),ue=(0,I.Z)(le),D=te.useContext(g.Z),Ve=X!=null?X:D,{status:Me,hasFeedback:we,feedbackIcon:Te}=te.useContext(v.aM),ve=(0,V.F)(Me,q),Fe=te.useRef(null);te.useImperativeHandle(L,()=>{var Je;return{resizableTextArea:(Je=Fe.current)===null||Je===void 0?void 0:Je.resizableTextArea,focus:et=>{var Bt,Lt;(0,z.n)((Lt=(Bt=Fe.current)===null||Bt===void 0?void 0:Bt.resizableTextArea)===null||Lt===void 0?void 0:Lt.textArea,et)},blur:()=>{var et;return(et=Fe.current)===null||et===void 0?void 0:et.blur()}}});const de=Ue("input",ee);let Ee;typeof W=="object"&&(W!=null&&W.clearIcon)?Ee=W:W&&(Ee={clearIcon:te.createElement(me.Z,null)});const[tt,it]=(0,E.ZP)(de);return tt(te.createElement(De.default,Object.assign({},Se,{disabled:Ve,allowClear:Ee,className:P()(Oe,fe),classes:{affixWrapper:P()(`${de}-textarea-affix-wrapper`,{[`${de}-affix-wrapper-rtl`]:J==="rtl",[`${de}-affix-wrapper-borderless`]:!R,[`${de}-affix-wrapper-sm`]:ue==="small",[`${de}-affix-wrapper-lg`]:ue==="large",[`${de}-textarea-show-count`]:K},(0,V.Z)(`${de}-affix-wrapper`,ve),it)},classNames:Object.assign(Object.assign({},se),{textarea:P()({[`${de}-borderless`]:!R,[`${de}-sm`]:ue==="small",[`${de}-lg`]:ue==="large"},(0,V.Z)(de,ve),it,se==null?void 0:se.textarea)}),prefixCls:de,suffix:we&&te.createElement("span",{className:`${de}-textarea-suffix`},Te),showCount:K,ref:Fe})))});Tt.Z=N},59412:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ae}});var me=x(59301);function Ae(P,De){const te=(0,me.useRef)([]),V=()=>{te.current.push(setTimeout(()=>{var S,g,I,v;!((S=P.current)===null||S===void 0)&&S.input&&((g=P.current)===null||g===void 0?void 0:g.input.getAttribute("type"))==="password"&&(!((I=P.current)===null||I===void 0)&&I.input.hasAttribute("value"))&&((v=P.current)===null||v===void 0||v.input.removeAttribute("value"))}))};return(0,me.useEffect)(()=>(De&&V(),()=>te.current.forEach(S=>{S&&clearTimeout(S)})),[]),V}},92832:function(un,Tt,x){"use strict";x.d(Tt,{default:function(){return ue}});var me=x(92310),Ae=x.n(me),P=x(59301),De=x(36355),te=x(32441),V=x(9937),g=D=>{const{getPrefixCls:Ve,direction:Me}=(0,P.useContext)(De.E_),{prefixCls:we,className:Te}=D,ve=Ve("input-group",we),Fe=Ve("input"),[de,Ee]=(0,V.ZP)(Fe),tt=Ae()(ve,{[`${ve}-lg`]:D.size==="large",[`${ve}-sm`]:D.size==="small",[`${ve}-compact`]:D.compact,[`${ve}-rtl`]:Me==="rtl"},Ee,Te),it=(0,P.useContext)(te.aM),Je=(0,P.useMemo)(()=>Object.assign(Object.assign({},it),{isFormItemInput:!1}),[it]);return de(P.createElement("span",{className:tt,style:D.style,onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onFocus:D.onFocus,onBlur:D.onBlur},P.createElement(te.aM.Provider,{value:Je},D.children)))},I=x(9432),v=x(73331),z=x(15277),E=x(2738),M=x(8654),N=x(59412),T=function(D,Ve){var Me={};for(var we in D)Object.prototype.hasOwnProperty.call(D,we)&&Ve.indexOf(we)<0&&(Me[we]=D[we]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,we=Object.getOwnPropertySymbols(D);Te<we.length;Te++)Ve.indexOf(we[Te])<0&&Object.prototype.propertyIsEnumerable.call(D,we[Te])&&(Me[we[Te]]=D[we[Te]]);return Me};const L=D=>D?P.createElement(z.Z,null):P.createElement(v.Z,null),ee={click:"onClick",hover:"onMouseOver"};var le=P.forwardRef((D,Ve)=>{const{visibilityToggle:Me=!0}=D,we=typeof Me=="object"&&Me.visible!==void 0,[Te,ve]=(0,P.useState)(()=>we?Me.visible:!1),Fe=(0,P.useRef)(null);P.useEffect(()=>{we&&ve(Me.visible)},[we,Me]);const de=(0,N.Z)(Fe),Ee=()=>{const{disabled:ft}=D;ft||(Te&&de(),ve(F=>{var m;const d=!F;return typeof Me=="object"&&((m=Me.onVisibleChange)===null||m===void 0||m.call(Me,d)),d}))},tt=ft=>{const{action:F="click",iconRender:m=L}=D,d=ee[F]||"",C=m(Te),re={[d]:Ee,className:`${ft}-icon`,key:"passwordIcon",onMouseDown:Be=>{Be.preventDefault()},onMouseUp:Be=>{Be.preventDefault()}};return P.cloneElement(P.isValidElement(C)?C:P.createElement("span",null,C),re)},{className:it,prefixCls:Je,inputPrefixCls:et,size:Bt}=D,Lt=T(D,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Nt}=P.useContext(De.E_),ur=Nt("input",et),ar=Nt("input-password",Je),Cr=Me&&tt(ar),sr=Ae()(ar,it,{[`${ar}-${Bt}`]:!!Bt}),G=Object.assign(Object.assign({},(0,E.Z)(Lt,["suffix","iconRender","visibilityToggle"])),{type:Te?"text":"password",className:sr,prefixCls:ur,suffix:Cr});return Bt&&(G.size=Bt),P.createElement(I.Z,Object.assign({ref:(0,M.sQ)(Ve,Fe)},G))}),X=x(47472),q=x(92343),W=x(3113),K=x(19716),se=x(33234),fe=function(D,Ve){var Me={};for(var we in D)Object.prototype.hasOwnProperty.call(D,we)&&Ve.indexOf(we)<0&&(Me[we]=D[we]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,we=Object.getOwnPropertySymbols(D);Te<we.length;Te++)Ve.indexOf(we[Te])<0&&Object.prototype.propertyIsEnumerable.call(D,we[Te])&&(Me[we[Te]]=D[we[Te]]);return Me},Se=P.forwardRef((D,Ve)=>{const{prefixCls:Me,inputPrefixCls:we,className:Te,size:ve,suffix:Fe,enterButton:de=!1,addonAfter:Ee,loading:tt,disabled:it,onSearch:Je,onChange:et,onCompositionStart:Bt,onCompositionEnd:Lt}=D,Nt=fe(D,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:ur,direction:ar}=P.useContext(De.E_),Cr=P.useRef(!1),sr=ur("input-search",Me),G=ur("input",we),{compactSize:ft}=(0,se.ri)(sr,ar),F=(0,K.Z)(st=>{var Ye;return(Ye=ve!=null?ve:ft)!==null&&Ye!==void 0?Ye:st}),m=P.useRef(null),d=st=>{st&&st.target&&st.type==="click"&&Je&&Je(st.target.value,st,{source:"clear"}),et&&et(st)},C=st=>{var Ye;document.activeElement===((Ye=m.current)===null||Ye===void 0?void 0:Ye.input)&&st.preventDefault()},re=st=>{var Ye,Ie;Je&&Je((Ie=(Ye=m.current)===null||Ye===void 0?void 0:Ye.input)===null||Ie===void 0?void 0:Ie.value,st,{source:"input"})},Be=st=>{Cr.current||tt||re(st)},H=typeof de=="boolean"?P.createElement(X.Z,null):null,ie=`${sr}-button`;let Qe;const xe=de||{},ye=xe.type&&xe.type.__ANT_BUTTON===!0;ye||xe.type==="button"?Qe=(0,q.Tm)(xe,Object.assign({onMouseDown:C,onClick:st=>{var Ye,Ie;(Ie=(Ye=xe==null?void 0:xe.props)===null||Ye===void 0?void 0:Ye.onClick)===null||Ie===void 0||Ie.call(Ye,st),re(st)},key:"enterButton"},ye?{className:ie,size:F}:{})):Qe=P.createElement(W.ZP,{className:ie,type:de?"primary":void 0,size:F,disabled:it,key:"enterButton",onMouseDown:C,onClick:re,loading:tt,icon:H},de),Ee&&(Qe=[Qe,(0,q.Tm)(Ee,{key:"addonAfter"})]);const je=Ae()(sr,{[`${sr}-rtl`]:ar==="rtl",[`${sr}-${F}`]:!!F,[`${sr}-with-button`]:!!de},Te),xt=st=>{Cr.current=!0,Bt==null||Bt(st)},he=st=>{Cr.current=!1,Lt==null||Lt(st)};return P.createElement(I.Z,Object.assign({ref:(0,M.sQ)(m,Ve),onPressEnter:Be},Nt,{size:F,onCompositionStart:xt,onCompositionEnd:he,prefixCls:G,addonAfter:Qe,suffix:Fe,onChange:d,className:je,disabled:it}))}),Ue=x(1643);const J=I.Z;J.Group=g,J.Search=Se,J.TextArea=Ue.Z,J.Password=le;var ue=J},9937:function(un,Tt,x){"use strict";x.d(Tt,{M1:function(){return S},TM:function(){return q},Xy:function(){return g},bi:function(){return z},e5:function(){return X},ik:function(){return E},nz:function(){return te},pU:function(){return V},s7:function(){return M},x0:function(){return v}});var me=x(17313),Ae=x(74207),P=x(37613),De=x(83116);const te=W=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:W,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),V=W=>({borderColor:W.hoverBorderColor}),S=W=>({borderColor:W.activeBorderColor,boxShadow:W.activeShadow,outline:0}),g=W=>({color:W.colorTextDisabled,backgroundColor:W.colorBgContainerDisabled,borderColor:W.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},V((0,P.TS)(W,{hoverBorderColor:W.colorBorder})))}),I=W=>{const{paddingBlockLG:K,fontSizeLG:se,lineHeightLG:fe,borderRadiusLG:Oe,paddingInlineLG:Se}=W;return{padding:`${K}px ${Se}px`,fontSize:se,lineHeight:fe,borderRadius:Oe}},v=W=>({padding:`${W.paddingBlockSM}px ${W.paddingInlineSM}px`,borderRadius:W.borderRadiusSM}),z=(W,K)=>{const{componentCls:se,colorError:fe,colorWarning:Oe,errorActiveShadow:Se,warningActiveShadow:Ue,colorErrorBorderHover:J,colorWarningBorderHover:ue}=W;return{[`&-status-error:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:fe,"&:hover":{borderColor:J},"&:focus, &-focused":Object.assign({},S((0,P.TS)(W,{activeBorderColor:fe,activeShadow:Se}))),[`${se}-prefix, ${se}-suffix`]:{color:fe}},[`&-status-warning:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:Oe,"&:hover":{borderColor:ue},"&:focus, &-focused":Object.assign({},S((0,P.TS)(W,{activeBorderColor:Oe,activeShadow:Ue}))),[`${se}-prefix, ${se}-suffix`]:{color:Oe}}}},E=W=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${W.paddingBlock}px ${W.paddingInline}px`,color:W.colorText,fontSize:W.fontSize,lineHeight:W.lineHeight,backgroundColor:W.colorBgContainer,backgroundImage:"none",borderWidth:W.lineWidth,borderStyle:W.lineType,borderColor:W.colorBorder,borderRadius:W.borderRadius,transition:`all ${W.motionDurationMid}`},te(W.colorTextPlaceholder)),{"&:hover":Object.assign({},V(W)),"&:focus, &-focused":Object.assign({},S(W)),"&-disabled, &[disabled]":Object.assign({},g(W)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:W.controlHeight,lineHeight:W.lineHeight,verticalAlign:"bottom",transition:`all ${W.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},I(W)),"&-sm":Object.assign({},v(W)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),M=W=>{const{componentCls:K,antCls:se}=W;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:W.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${K}, &-lg > ${K}-group-addon`]:Object.assign({},I(W)),[`&-sm ${K}, &-sm > ${K}-group-addon`]:Object.assign({},v(W)),[`&-lg ${se}-select-single ${se}-select-selector`]:{height:W.controlHeightLG},[`&-sm ${se}-select-single ${se}-select-selector`]:{height:W.controlHeightSM},[`> ${K}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${K}-group`]:{"&-addon, &-wrap":{display:"table-cell",width:1,whiteSpace:"nowrap",verticalAlign:"middle","&:not(:first-child):not(:last-child)":{borderRadius:0}},"&-wrap > *":{display:"block !important"},"&-addon":{position:"relative",padding:`0 ${W.paddingInline}px`,color:W.colorText,fontWeight:"normal",fontSize:W.fontSize,textAlign:"center",backgroundColor:W.colorFillAlter,border:`${W.lineWidth}px ${W.lineType} ${W.colorBorder}`,borderRadius:W.borderRadius,transition:`all ${W.motionDurationSlow}`,lineHeight:1,[`${se}-select`]:{margin:`-${W.paddingBlock+1}px -${W.paddingInline}px`,[`&${se}-select-single:not(${se}-select-customize-input)`]:{[`${se}-select-selector`]:{backgroundColor:"inherit",border:`${W.lineWidth}px ${W.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${se}-select-selector`]:{color:W.colorPrimary}}},[`${se}-cascader-picker`]:{margin:`-9px -${W.paddingInline}px`,backgroundColor:"transparent",[`${se}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${K}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${K}-search-with-button &`]:{zIndex:0}}},[`> ${K}:first-child, ${K}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${se}-select ${se}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${K}-affix-wrapper`]:{[`&:not(:first-child) ${K}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${K}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${K}:last-child, ${K}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${se}-select ${se}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${K}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${K}-search &`]:{borderStartStartRadius:W.borderRadius,borderEndStartRadius:W.borderRadius}},[`&:not(:first-child), ${K}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${K}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,me.dF)()),{[`${K}-group-addon, ${K}-group-wrap, > ${K}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:W.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
& > ${K}-affix-wrapper,
& > ${K}-number-affix-wrapper,
& > ${se}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-W.lineWidth,borderInlineEndWidth:W.lineWidth},[`${K}`]:{float:"none"},[`& > ${se}-select > ${se}-select-selector,
& > ${se}-select-auto-complete ${K},
& > ${se}-cascader-picker ${K},
& > ${K}-group-wrapper ${K}`]:{borderInlineEndWidth:W.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${se}-select-focused`]:{zIndex:1},[`& > ${se}-select > ${se}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${se}-select:first-child > ${se}-select-selector,
& > ${se}-select-auto-complete:first-child ${K},
& > ${se}-cascader-picker:first-child ${K}`]:{borderStartStartRadius:W.borderRadius,borderEndStartRadius:W.borderRadius},[`& > *:last-child,
& > ${se}-select:last-child > ${se}-select-selector,
& > ${se}-cascader-picker:last-child ${K},
& > ${se}-cascader-picker-focused:last-child ${K}`]:{borderInlineEndWidth:W.lineWidth,borderStartEndRadius:W.borderRadius,borderEndEndRadius:W.borderRadius},[`& > ${se}-select-auto-complete ${K}`]:{verticalAlign:"top"},[`${K}-group-wrapper + ${K}-group-wrapper`]:{marginInlineStart:-W.lineWidth,[`${K}-affix-wrapper`]:{borderRadius:0}},[`${K}-group-wrapper:not(:last-child)`]:{[`&${K}-search > ${K}-group`]:{[`& > ${K}-group-addon > ${K}-search-button`]:{borderRadius:0},[`& > ${K}`]:{borderStartStartRadius:W.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:W.borderRadius}}}})}},N=W=>{const{componentCls:K,controlHeightSM:se,lineWidth:fe}=W,Se=(se-fe*2-16)/2;return{[K]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,me.Wf)(W)),E(W)),z(W,K)),{'&[type="color"]':{height:W.controlHeight,[`&${K}-lg`]:{height:W.controlHeightLG},[`&${K}-sm`]:{height:se,paddingTop:Se,paddingBottom:Se}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},T=W=>{const{componentCls:K}=W;return{[`${K}-clear-icon`]:{margin:0,color:W.colorTextQuaternary,fontSize:W.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${W.motionDurationSlow}`,"&:hover":{color:W.colorTextTertiary},"&:active":{color:W.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${W.inputAffixPadding}px`}}}},L=W=>{const{componentCls:K,inputAffixPadding:se,colorTextDescription:fe,motionDurationSlow:Oe,colorIcon:Se,colorIconHover:Ue,iconCls:J}=W;return{[`${K}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},E(W)),{display:"inline-flex",[`&:not(${K}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},V(W)),{zIndex:1,[`${K}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${K}[disabled]`]:{background:"transparent"}},[`> input${K}`]:{padding:0,fontSize:"inherit",border:"none",borderRadius:0,outline:"none","&::-ms-reveal":{display:"none"},"&:focus":{boxShadow:"none !important"}},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${K}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:W.paddingXS}},"&-show-count-suffix":{color:fe},"&-show-count-has-suffix":{marginInlineEnd:W.paddingXXS},"&-prefix":{marginInlineEnd:se},"&-suffix":{marginInlineStart:se}}}),T(W)),{[`${J}${K}-password-icon`]:{color:Se,cursor:"pointer",transition:`all ${Oe}`,"&:hover":{color:Ue}}}),z(W,`${K}-affix-wrapper`))}},ee=W=>{const{componentCls:K,colorError:se,colorWarning:fe,borderRadiusLG:Oe,borderRadiusSM:Se}=W;return{[`${K}-group`]:Object.assign(Object.assign(Object.assign({},(0,me.Wf)(W)),M(W)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${K}-group-addon`]:{borderRadius:Oe,fontSize:W.fontSizeLG}},"&-sm":{[`${K}-group-addon`]:{borderRadius:Se}},"&-status-error":{[`${K}-group-addon`]:{color:se,borderColor:se}},"&-status-warning":{[`${K}-group-addon`]:{color:fe,borderColor:fe}},"&-disabled":{[`${K}-group-addon`]:Object.assign({},g(W))},[`&:not(${K}-compact-first-item):not(${K}-compact-last-item)${K}-compact-item`]:{[`${K}, ${K}-group-addon`]:{borderRadius:0}},[`&:not(${K}-compact-last-item)${K}-compact-first-item`]:{[`${K}, ${K}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${K}-compact-first-item)${K}-compact-last-item`]:{[`${K}, ${K}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},R=W=>{const{componentCls:K,antCls:se}=W,fe=`${K}-search`;return{[fe]:{[`${K}`]:{"&:hover, &:focus":{borderColor:W.colorPrimaryHover,[`+ ${K}-group-addon ${fe}-button:not(${se}-btn-primary)`]:{borderInlineStartColor:W.colorPrimaryHover}}},[`${K}-affix-wrapper`]:{borderRadius:0},[`${K}-lg`]:{lineHeight:W.lineHeightLG-2e-4},[`> ${K}-group`]:{[`> ${K}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${fe}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:W.borderRadius,borderEndEndRadius:W.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${fe}-button:not(${se}-btn-primary)`]:{color:W.colorTextDescription,"&:hover":{color:W.colorPrimaryHover},"&:active":{color:W.colorPrimaryActive},[`&${se}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${fe}-button`]:{height:W.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${fe}-button`]:{height:W.controlHeightLG},[`&-small ${fe}-button`]:{height:W.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${K}-compact-item`]:{[`&:not(${K}-compact-last-item)`]:{[`${K}-group-addon`]:{[`${K}-search-button`]:{marginInlineEnd:-W.lineWidth,borderRadius:0}}},[`&:not(${K}-compact-first-item)`]:{[`${K},${K}-affix-wrapper`]:{borderRadius:0}},[`> ${K}-group-addon ${K}-search-button,
> ${K},
${K}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${K}-affix-wrapper-focused`]:{zIndex:2}}}}},le=W=>{const{componentCls:K,paddingLG:se}=W,fe=`${K}-textarea`;return{[fe]:{position:"relative","&-show-count":{[`> ${K}`]:{height:"100%"},[`${K}-data-count`]:{position:"absolute",bottom:-W.fontSize*W.lineHeight,insetInlineEnd:0,color:W.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${K}`]:{paddingInlineEnd:se}},[`&-affix-wrapper${fe}-has-feedback`]:{[`${K}`]:{paddingInlineEnd:se}},[`&-affix-wrapper${K}-affix-wrapper`]:{padding:0,[`> textarea${K}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${K}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${K}-clear-icon`]:{position:"absolute",insetInlineEnd:W.paddingXS,insetBlockStart:W.paddingXS},[`${fe}-suffix`]:{position:"absolute",top:0,insetInlineEnd:W.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function X(W){return(0,P.TS)(W,{inputAffixPadding:W.paddingXXS})}const q=W=>{const{controlHeight:K,fontSize:se,lineHeight:fe,lineWidth:Oe,controlHeightSM:Se,controlHeightLG:Ue,fontSizeLG:J,lineHeightLG:ue,paddingSM:D,controlPaddingHorizontalSM:Ve,controlPaddingHorizontal:Me,colorFillAlter:we,colorPrimaryHover:Te,controlOutlineWidth:ve,controlOutline:Fe,colorErrorOutline:de,colorWarningOutline:Ee}=W;return{paddingBlock:Math.max(Math.round((K-se*fe)/2*10)/10-Oe,3),paddingBlockSM:Math.max(Math.round((Se-se*fe)/2*10)/10-Oe,0),paddingBlockLG:Math.ceil((Ue-J*ue)/2*10)/10-Oe,paddingInline:D-Oe,paddingInlineSM:Ve-Oe,paddingInlineLG:Me-Oe,addonBg:we,activeBorderColor:Te,hoverBorderColor:Te,activeShadow:`0 0 0 ${ve}px ${Fe}`,errorActiveShadow:`0 0 0 ${ve}px ${de}`,warningActiveShadow:`0 0 0 ${ve}px ${Ee}`}};Tt.ZP=(0,De.Z)("Input",W=>{const K=(0,P.TS)(W,X(W));return[N(K),le(K),L(K),ee(K),R(K),(0,Ae.c)(K)]},q)},45818:function(un,Tt,x){"use strict";x.d(Tt,{D:function(){return X},Z:function(){return K}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(fe,Oe){return Ae.createElement(te.Z,(0,me.Z)({},fe,{ref:Oe,icon:De}))},S=Ae.forwardRef(V),g=S,I=x(33853),v=x(38819),z=x(92310),E=x.n(z),M=x(2738),T=se=>!isNaN(parseFloat(se))&&isFinite(se),L=x(36355),ee=x(84966),R=function(se,fe){var Oe={};for(var Se in se)Object.prototype.hasOwnProperty.call(se,Se)&&fe.indexOf(Se)<0&&(Oe[Se]=se[Se]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Se=Object.getOwnPropertySymbols(se);Ue<Se.length;Ue++)fe.indexOf(Se[Ue])<0&&Object.prototype.propertyIsEnumerable.call(se,Se[Ue])&&(Oe[Se[Ue]]=se[Se[Ue]]);return Oe};const le={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},X=Ae.createContext({}),q=(()=>{let se=0;return function(){let fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return se+=1,`${fe}${se}`}})();var K=Ae.forwardRef((se,fe)=>{const{prefixCls:Oe,className:Se,trigger:Ue,children:J,defaultCollapsed:ue=!1,theme:D="dark",style:Ve={},collapsible:Me=!1,reverseArrow:we=!1,width:Te=200,collapsedWidth:ve=80,zeroWidthTriggerStyle:Fe,breakpoint:de,onCollapse:Ee,onBreakpoint:tt}=se,it=R(se,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:Je}=(0,Ae.useContext)(ee.Gs),[et,Bt]=(0,Ae.useState)("collapsed"in se?se.collapsed:ue),[Lt,Nt]=(0,Ae.useState)(!1);(0,Ae.useEffect)(()=>{"collapsed"in se&&Bt(se.collapsed)},[se.collapsed]);const ur=(F,m)=>{"collapsed"in se||Bt(F),Ee==null||Ee(F,m)},ar=(0,Ae.useRef)();ar.current=F=>{Nt(F.matches),tt==null||tt(F.matches),et!==F.matches&&ur(F.matches,"responsive")},(0,Ae.useEffect)(()=>{function F(d){return ar.current(d)}let m;if(typeof window!="undefined"){const{matchMedia:d}=window;if(d&&de&&de in le){m=d(`(max-width: ${le[de]})`);try{m.addEventListener("change",F)}catch(C){m.addListener(F)}F(m)}}return()=>{try{m==null||m.removeEventListener("change",F)}catch(d){m==null||m.removeListener(F)}}},[de]),(0,Ae.useEffect)(()=>{const F=q("ant-sider-");return Je.addSider(F),()=>Je.removeSider(F)},[]);const Cr=()=>{ur(!et,"clickTrigger")},{getPrefixCls:sr}=(0,Ae.useContext)(L.E_),G=()=>{const F=sr("layout-sider",Oe),m=(0,M.Z)(it,["collapsed"]),d=et?ve:Te,C=T(d)?`${d}px`:String(d),re=parseFloat(String(ve||0))===0?Ae.createElement("span",{onClick:Cr,className:E()(`${F}-zero-width-trigger`,`${F}-zero-width-trigger-${we?"right":"left"}`),style:Fe},Ue||Ae.createElement(g,null)):null,ie={expanded:we?Ae.createElement(v.Z,null):Ae.createElement(I.Z,null),collapsed:we?Ae.createElement(I.Z,null):Ae.createElement(v.Z,null)}[et?"collapsed":"expanded"],Qe=Ue!==null?re||Ae.createElement("div",{className:`${F}-trigger`,onClick:Cr,style:{width:C}},Ue||ie):null,xe=Object.assign(Object.assign({},Ve),{flex:`0 0 ${C}`,maxWidth:C,minWidth:C,width:C}),ye=E()(F,`${F}-${D}`,{[`${F}-collapsed`]:!!et,[`${F}-has-trigger`]:Me&&Ue!==null&&!re,[`${F}-below`]:!!Lt,[`${F}-zero-width`]:parseFloat(C)===0},Se);return Ae.createElement("aside",Object.assign({className:ye},m,{style:xe,ref:fe}),Ae.createElement("div",{className:`${F}-children`},J),Me||Lt&&re?Qe:null)},ft=Ae.useMemo(()=>({siderCollapsed:et}),[et]);return Ae.createElement(X.Provider,{value:ft},G())})},84966:function(un,Tt,x){"use strict";x.d(Tt,{VY:function(){return X},$_:function(){return le},h4:function(){return R},Gs:function(){return M},ZP:function(){return q}});var me=x(94480),Ae=x(92310),P=x.n(Ae),De=x(2738),te=x(59301),V=x(36355),S=x(83116),I=W=>{const{componentCls:K,bodyBg:se,lightSiderBg:fe,lightTriggerBg:Oe,lightTriggerColor:Se}=W;return{[`${K}-sider-light`]:{background:fe,[`${K}-sider-trigger`]:{color:Se,background:Oe},[`${K}-sider-zero-width-trigger`]:{color:Se,background:Oe,border:`1px solid ${se}`,borderInlineStart:0}}}};const v=W=>{const{antCls:K,componentCls:se,colorText:fe,triggerColor:Oe,footerBg:Se,triggerBg:Ue,headerHeight:J,headerPadding:ue,headerColor:D,footerPadding:Ve,triggerHeight:Me,zeroTriggerHeight:we,zeroTriggerWidth:Te,motionDurationMid:ve,motionDurationSlow:Fe,fontSize:de,borderRadius:Ee,bodyBg:tt,headerBg:it,siderBg:Je}=W;return{[se]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:tt,"&, *":{boxSizing:"border-box"},[`&${se}-has-sider`]:{flexDirection:"row",[`> ${se}, > ${se}-content`]:{width:0}},[`${se}-header, &${se}-footer`]:{flex:"0 0 auto"},[`${se}-sider`]:{position:"relative",minWidth:0,background:Je,transition:`all ${ve}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${K}-menu${K}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Me},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Me,color:Oe,lineHeight:`${Me}px`,textAlign:"center",background:Ue,cursor:"pointer",transition:`all ${ve}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:J,insetInlineEnd:-Te,zIndex:1,width:Te,height:we,color:Oe,fontSize:W.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:Je,borderStartStartRadius:0,borderStartEndRadius:Ee,borderEndEndRadius:Ee,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Fe} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Fe}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Te,borderStartStartRadius:Ee,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ee}}}}},I(W)),{"&-rtl":{direction:"rtl"}}),[`${se}-header`]:{height:J,padding:ue,color:D,lineHeight:`${J}px`,background:it,[`${K}-menu`]:{lineHeight:"inherit"}},[`${se}-footer`]:{padding:Ve,color:fe,fontSize:de,background:Se},[`${se}-content`]:{flex:"auto",minHeight:0}}};var z=(0,S.Z)("Layout",W=>[v(W)],W=>{const{colorBgLayout:K,controlHeight:se,controlHeightLG:fe,colorText:Oe,controlHeightSM:Se,marginXXS:Ue,colorTextLightSolid:J,colorBgContainer:ue}=W,D=fe*1.25;return{colorBgHeader:"#001529",colorBgBody:K,colorBgTrigger:"#002140",bodyBg:K,headerBg:"#001529",headerHeight:se*2,headerPadding:`0 ${D}px`,headerColor:Oe,footerPadding:`${Se}px ${D}px`,footerBg:K,siderBg:"#001529",triggerHeight:fe+Ue*2,triggerBg:"#002140",triggerColor:J,zeroTriggerWidth:fe,zeroTriggerHeight:fe,lightSiderBg:ue,lightTriggerBg:ue,lightTriggerColor:Oe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),E=function(W,K){var se={};for(var fe in W)Object.prototype.hasOwnProperty.call(W,fe)&&K.indexOf(fe)<0&&(se[fe]=W[fe]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,fe=Object.getOwnPropertySymbols(W);Oe<fe.length;Oe++)K.indexOf(fe[Oe])<0&&Object.prototype.propertyIsEnumerable.call(W,fe[Oe])&&(se[fe[Oe]]=W[fe[Oe]]);return se};const M=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function N(W){let{suffixCls:K,tagName:se,displayName:fe}=W;return Oe=>te.forwardRef((Ue,J)=>te.createElement(Oe,Object.assign({ref:J,suffixCls:K,tagName:se},Ue)))}const T=te.forwardRef((W,K)=>{const{prefixCls:se,suffixCls:fe,className:Oe,tagName:Se}=W,Ue=E(W,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:J}=te.useContext(V.E_),ue=J("layout",se),[D,Ve]=z(ue),Me=fe?`${ue}-${fe}`:ue;return D(te.createElement(Se,Object.assign({className:P()(se||Me,Oe,Ve),ref:K},Ue)))}),L=te.forwardRef((W,K)=>{const{direction:se}=te.useContext(V.E_),[fe,Oe]=te.useState([]),{prefixCls:Se,className:Ue,rootClassName:J,children:ue,hasSider:D,tagName:Ve,style:Me}=W,we=E(W,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Te=(0,De.Z)(we,["suffixCls"]),{getPrefixCls:ve,layout:Fe}=te.useContext(V.E_),de=ve("layout",Se),[Ee,tt]=z(de),it=P()(de,{[`${de}-has-sider`]:typeof D=="boolean"?D:fe.length>0,[`${de}-rtl`]:se==="rtl"},Fe==null?void 0:Fe.className,Ue,J,tt),Je=te.useMemo(()=>({siderHook:{addSider:et=>{Oe(Bt=>[].concat((0,me.Z)(Bt),[et]))},removeSider:et=>{Oe(Bt=>Bt.filter(Lt=>Lt!==et))}}}),[]);return Ee(te.createElement(M.Provider,{value:Je},te.createElement(Ve,Object.assign({ref:K,className:it,style:Object.assign(Object.assign({},Fe==null?void 0:Fe.style),Me)},Te),ue)))}),ee=N({tagName:"div",displayName:"Layout"})(L),R=N({suffixCls:"header",tagName:"header",displayName:"Header"})(T),le=N({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(T),X=N({suffixCls:"content",tagName:"main",displayName:"Content"})(T);var q=ee},40875:function(un,Tt,x){"use strict";x.d(Tt,{J:function(){return V}});var me=x(59301),Ae=x(33234),P=x(70425),De=function(S,g){var I={};for(var v in S)Object.prototype.hasOwnProperty.call(S,v)&&g.indexOf(v)<0&&(I[v]=S[v]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var z=0,v=Object.getOwnPropertySymbols(S);z<v.length;z++)g.indexOf(v[z])<0&&Object.prototype.propertyIsEnumerable.call(S,v[z])&&(I[v[z]]=S[v[z]]);return I};const te=me.createContext(null),V=me.forwardRef((S,g)=>{const{children:I}=S,v=De(S,["children"]),z=me.useContext(te),E=me.useMemo(()=>Object.assign(Object.assign({},z),v),[z,v.prefixCls,v.mode,v.selectable]);return me.createElement(te.Provider,{value:E},me.createElement(Ae.BR,null,(0,P.supportNodeRef)(I)?me.cloneElement(I,{ref:g}):I))});Tt.Z=te},20834:function(un,Tt,x){"use strict";x.d(Tt,{default:function(){return ft}});var me=x(15285),Ae=x(59301),P=x(45818),De=x(92310),te=x.n(De),V=x(36355),S=function(F,m){var d={};for(var C in F)Object.prototype.hasOwnProperty.call(F,C)&&m.indexOf(C)<0&&(d[C]=F[C]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,C=Object.getOwnPropertySymbols(F);re<C.length;re++)m.indexOf(C[re])<0&&Object.prototype.propertyIsEnumerable.call(F,C[re])&&(d[C[re]]=F[C[re]]);return d},I=F=>{const{prefixCls:m,className:d,dashed:C}=F,re=S(F,["prefixCls","className","dashed"]),{getPrefixCls:Be}=Ae.useContext(V.E_),H=Be("menu",m),ie=te()({[`${H}-item-divider-dashed`]:!!C},d);return Ae.createElement(me.iz,Object.assign({className:ie},re))},v=x(11592),z=x(2738),E=x(6848),M=x(92343),T=(0,Ae.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),ee=F=>{var m;const{className:d,children:C,icon:re,title:Be,danger:H}=F,{prefixCls:ie,firstLevel:Qe,direction:xe,disableMenuItemTitleTooltip:ye,inlineCollapsed:je}=Ae.useContext(T),xt=ct=>{const Ut=Ae.createElement("span",{className:`${ie}-title-content`},C);return(!re||(0,M.l$)(C)&&C.type==="span")&&C&&ct&&Qe&&typeof C=="string"?Ae.createElement("div",{className:`${ie}-inline-collapsed-noicon`},C.charAt(0)):Ut},{siderCollapsed:he}=Ae.useContext(P.D);let st=Be;typeof Be=="undefined"?st=Qe?C:"":Be===!1&&(st="");const Ye={title:st};!he&&!je&&(Ye.title=null,Ye.open=!1);const Ie=(0,v.Z)(C).length;let Le=Ae.createElement(me.ck,Object.assign({},(0,z.Z)(F,["title","icon","danger"]),{className:te()({[`${ie}-item-danger`]:H,[`${ie}-item-only-child`]:(re?Ie+1:Ie)===1},d),title:typeof Be=="string"?Be:void 0}),(0,M.Tm)(re,{className:te()((0,M.l$)(re)?(m=re.props)===null||m===void 0?void 0:m.className:"",`${ie}-item-icon`)}),xt(je));return ye||(Le=Ae.createElement(E.Z,Object.assign({},Ye,{placement:xe==="rtl"?"left":"right",overlayClassName:`${ie}-inline-collapsed-tooltip`}),Le)),Le},le=F=>{var m;const{popupClassName:d,icon:C,title:re,theme:Be}=F,H=Ae.useContext(T),{prefixCls:ie,inlineCollapsed:Qe,theme:xe}=H,ye=(0,me.Xl)();let je;if(!C)je=Qe&&!ye.length&&re&&typeof re=="string"?Ae.createElement("div",{className:`${ie}-inline-collapsed-noicon`},re.charAt(0)):Ae.createElement("span",{className:`${ie}-title-content`},re);else{const he=(0,M.l$)(re)&&re.type==="span";je=Ae.createElement(Ae.Fragment,null,(0,M.Tm)(C,{className:te()((0,M.l$)(C)?(m=C.props)===null||m===void 0?void 0:m.className:"",`${ie}-item-icon`)}),he?re:Ae.createElement("span",{className:`${ie}-title-content`},re))}const xt=Ae.useMemo(()=>Object.assign(Object.assign({},H),{firstLevel:!1}),[H]);return Ae.createElement(T.Provider,{value:xt},Ae.createElement(me.Wd,Object.assign({},(0,z.Z)(F,["icon"]),{title:je,popupClassName:te()(ie,d,`${ie}-${Be||xe}`)})))},X=x(18785),q=x(70425),W=x(62892),K=x(40875),se=function(F,m){var d={};for(var C in F)Object.prototype.hasOwnProperty.call(F,C)&&m.indexOf(C)<0&&(d[C]=F[C]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,C=Object.getOwnPropertySymbols(F);re<C.length;re++)m.indexOf(C[re])<0&&Object.prototype.propertyIsEnumerable.call(F,C[re])&&(d[C[re]]=F[C[re]]);return d};function fe(F){return(F||[]).map((m,d)=>{if(m&&typeof m=="object"){const C=m,{label:re,children:Be,key:H,type:ie}=C,Qe=se(C,["label","children","key","type"]),xe=H!=null?H:`tmp-${d}`;return Be||ie==="group"?ie==="group"?Ae.createElement(me.BW,Object.assign({key:xe},Qe,{title:re}),fe(Be)):Ae.createElement(le,Object.assign({key:xe},Qe,{title:re}),fe(Be)):ie==="divider"?Ae.createElement(I,Object.assign({key:xe},Qe)):Ae.createElement(ee,Object.assign({key:xe},Qe),re)}return null}).filter(m=>m)}function Oe(F){return Ae.useMemo(()=>F&&fe(F),[F])}var Se=x(64993),Ue=x(17313),J=x(8378),ue=x(13826),D=x(29878),Ve=x(83116),Me=x(37613),Te=F=>{const{componentCls:m,motionDurationSlow:d,horizontalLineHeight:C,colorSplit:re,lineWidth:Be,lineType:H,itemPaddingInline:ie}=F;return{[`${m}-horizontal`]:{lineHeight:C,border:0,borderBottom:`${Be}px ${H} ${re}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${m}-item, ${m}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ie},[`> ${m}-item:hover,
> ${m}-item-active,
> ${m}-submenu ${m}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${m}-item, ${m}-submenu-title`]:{transition:[`border-color ${d}`,`background ${d}`].join(",")},[`${m}-submenu-arrow`]:{display:"none"}}}},Fe=F=>{let{componentCls:m,menuArrowOffset:d}=F;return{[`${m}-rtl`]:{direction:"rtl"},[`${m}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${m}-rtl${m}-vertical,
${m}-submenu-rtl ${m}-vertical`]:{[`${m}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${d})`},"&::after":{transform:`rotate(45deg) translateY(${d})`}}}}};const de=F=>Object.assign({},(0,Ue.oN)(F));var tt=(F,m)=>{const{componentCls:d,itemColor:C,itemSelectedColor:re,groupTitleColor:Be,itemBg:H,subMenuItemBg:ie,itemSelectedBg:Qe,activeBarHeight:xe,activeBarWidth:ye,activeBarBorderWidth:je,motionDurationSlow:xt,motionEaseInOut:he,motionEaseOut:st,itemPaddingInline:Ye,motionDurationMid:Ie,itemHoverColor:Le,lineType:ct,colorSplit:Ut,itemDisabledColor:kt,dangerItemColor:tr,dangerItemHoverColor:Dr,dangerItemSelectedColor:fr,dangerItemActiveBg:Fr,dangerItemSelectedBg:Lr,itemHoverBg:mr,itemActiveBg:cr,menuSubMenuBg:Kr,horizontalItemSelectedColor:fn,horizontalItemSelectedBg:_n,horizontalItemBorderRadius:ln,horizontalItemHoverBg:xn,popupBg:oi}=F;return{[`${d}-${m}, ${d}-${m} > ${d}`]:{color:C,background:H,[`&${d}-root:focus-visible`]:Object.assign({},de(F)),[`${d}-item-group-title`]:{color:Be},[`${d}-submenu-selected`]:{[`> ${d}-submenu-title`]:{color:re}},[`${d}-item-disabled, ${d}-submenu-disabled`]:{color:`${kt} !important`},[`${d}-item:not(${d}-item-selected):not(${d}-submenu-selected)`]:{[`&:hover, > ${d}-submenu-title:hover`]:{color:Le}},[`&:not(${d}-horizontal)`]:{[`${d}-item:not(${d}-item-selected)`]:{"&:hover":{backgroundColor:mr},"&:active":{backgroundColor:cr}},[`${d}-submenu-title`]:{"&:hover":{backgroundColor:mr},"&:active":{backgroundColor:cr}}},[`${d}-item-danger`]:{color:tr,[`&${d}-item:hover`]:{[`&:not(${d}-item-selected):not(${d}-submenu-selected)`]:{color:Dr}},[`&${d}-item:active`]:{background:Fr}},[`${d}-item a`]:{"&, &:hover":{color:"inherit"}},[`${d}-item-selected`]:{color:re,[`&${d}-item-danger`]:{color:fr},"a, a:hover":{color:"inherit"}},[`& ${d}-item-selected`]:{backgroundColor:Qe,[`&${d}-item-danger`]:{backgroundColor:Lr}},[`${d}-item, ${d}-submenu-title`]:{[`&:not(${d}-item-disabled):focus-visible`]:Object.assign({},de(F))},[`&${d}-submenu > ${d}`]:{backgroundColor:Kr},[`&${d}-popup > ${d}`]:{backgroundColor:oi},[`&${d}-horizontal`]:Object.assign(Object.assign({},m==="dark"?{borderBottom:0}:{}),{[`> ${d}-item, > ${d}-submenu`]:{top:je,marginTop:-je,marginBottom:0,borderRadius:ln,"&::after":{position:"absolute",insetInline:Ye,bottom:0,borderBottom:`${xe}px solid transparent`,transition:`border-color ${xt} ${he}`,content:'""'},"&:hover, &-active, &-open":{background:xn,"&::after":{borderBottomWidth:xe,borderBottomColor:fn}},"&-selected":{color:fn,backgroundColor:_n,"&:hover":{backgroundColor:_n},"&::after":{borderBottomWidth:xe,borderBottomColor:fn}}}}),[`&${d}-root`]:{[`&${d}-inline, &${d}-vertical`]:{borderInlineEnd:`${je}px ${ct} ${Ut}`}},[`&${d}-inline`]:{[`${d}-sub${d}-inline`]:{background:ie},[`${d}-item, ${d}-submenu-title`]:je&&ye?{width:`calc(100% + ${je}px)`}:{},[`${d}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ye}px solid ${re}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ie} ${st}`,`opacity ${Ie} ${st}`].join(","),content:'""'},[`&${d}-item-danger`]:{"&::after":{borderInlineEndColor:fr}}},[`${d}-selected, ${d}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ie} ${he}`,`opacity ${Ie} ${he}`].join(",")}}}}}};const it=F=>{const{componentCls:m,itemHeight:d,itemMarginInline:C,padding:re,menuArrowSize:Be,marginXS:H,itemMarginBlock:ie}=F,Qe=re+Be+H;return{[`${m}-item`]:{position:"relative",overflow:"hidden"},[`${m}-item, ${m}-submenu-title`]:{height:d,lineHeight:`${d}px`,paddingInline:re,overflow:"hidden",textOverflow:"ellipsis",marginInline:C,marginBlock:ie,width:`calc(100% - ${C*2}px)`},[`> ${m}-item,
> ${m}-submenu > ${m}-submenu-title`]:{height:d,lineHeight:`${d}px`},[`${m}-item-group-list ${m}-submenu-title,
${m}-submenu-title`]:{paddingInlineEnd:Qe}}};var et=F=>{const{componentCls:m,iconCls:d,itemHeight:C,colorTextLightSolid:re,dropdownWidth:Be,controlHeightLG:H,motionDurationMid:ie,motionEaseOut:Qe,paddingXL:xe,itemMarginInline:ye,fontSizeLG:je,motionDurationSlow:xt,paddingXS:he,boxShadowSecondary:st,collapsedWidth:Ye,collapsedIconSize:Ie}=F,Le={height:C,lineHeight:`${C}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[m]:{"&-inline, &-vertical":Object.assign({[`&${m}-root`]:{boxShadow:"none"}},it(F))},[`${m}-submenu-popup`]:{[`${m}-vertical`]:Object.assign(Object.assign({},it(F)),{boxShadow:st})}},{[`${m}-submenu-popup ${m}-vertical${m}-sub`]:{minWidth:Be,maxHeight:`calc(100vh - ${H*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${m}-inline`]:{width:"100%",[`&${m}-root`]:{[`${m}-item, ${m}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${xt}`,`background ${xt}`,`padding ${ie} ${Qe}`].join(","),[`> ${m}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${m}-sub${m}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${m}-submenu > ${m}-submenu-title`]:Le,[`& ${m}-item-group-title`]:{paddingInlineStart:xe}},[`${m}-item`]:Le}},{[`${m}-inline-collapsed`]:{width:Ye,[`&${m}-root`]:{[`${m}-item, ${m}-submenu ${m}-submenu-title`]:{[`> ${m}-inline-collapsed-noicon`]:{fontSize:je,textAlign:"center"}}},[`> ${m}-item,
> ${m}-item-group > ${m}-item-group-list > ${m}-item,
> ${m}-item-group > ${m}-item-group-list > ${m}-submenu > ${m}-submenu-title,
> ${m}-submenu > ${m}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${je/2}px - ${ye}px)`,textOverflow:"clip",[`
${m}-submenu-arrow,
${m}-submenu-expand-icon
`]:{opacity:0},[`${m}-item-icon, ${d}`]:{margin:0,fontSize:Ie,lineHeight:`${C}px`,"+ span":{display:"inline-block",opacity:0}}},[`${m}-item-icon, ${d}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${m}-item-icon, ${d}`]:{display:"none"},"a, a:hover":{color:re}},[`${m}-item-group-title`]:Object.assign(Object.assign({},Ue.vS),{paddingInline:he})}}]};const Bt=F=>{const{componentCls:m,motionDurationSlow:d,motionDurationMid:C,motionEaseInOut:re,motionEaseOut:Be,iconCls:H,iconSize:ie,iconMarginInlineEnd:Qe}=F;return{[`${m}-item, ${m}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${d}`,`background ${d}`,`padding ${d} ${re}`].join(","),[`${m}-item-icon, ${H}`]:{minWidth:ie,fontSize:ie,transition:[`font-size ${C} ${Be}`,`margin ${d} ${re}`,`color ${d}`].join(","),"+ span":{marginInlineStart:Qe,opacity:1,transition:[`opacity ${d} ${re}`,`margin ${d}`,`color ${d}`].join(",")}},[`${m}-item-icon`]:Object.assign({},(0,Ue.Ro)()),[`&${m}-item-only-child`]:{[`> ${H}, > ${m}-item-icon`]:{marginInlineEnd:0}}},[`${m}-item-disabled, ${m}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${m}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Lt=F=>{const{componentCls:m,motionDurationSlow:d,motionEaseInOut:C,borderRadius:re,menuArrowSize:Be,menuArrowOffset:H}=F;return{[`${m}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:F.margin,width:Be,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${d} ${C}, opacity ${d}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Be*.6,height:Be*.15,backgroundColor:"currentcolor",borderRadius:re,transition:[`background ${d} ${C}`,`transform ${d} ${C}`,`top ${d} ${C}`,`color ${d} ${C}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${H})`},"&::after":{transform:`rotate(-45deg) translateY(${H})`}}}}},Nt=F=>{const{antCls:m,componentCls:d,fontSize:C,motionDurationSlow:re,motionDurationMid:Be,motionEaseInOut:H,paddingXS:ie,padding:Qe,colorSplit:xe,lineWidth:ye,zIndexPopup:je,borderRadiusLG:xt,subMenuItemBorderRadius:he,menuArrowSize:st,menuArrowOffset:Ye,lineType:Ie,menuPanelMaskInset:Le,groupTitleLineHeight:ct,groupTitleFontSize:Ut}=F;return[{"":{[`${d}`]:Object.assign(Object.assign({},(0,Ue.dF)()),{"&-hidden":{display:"none"}})},[`${d}-submenu-hidden`]:{display:"none"}},{[d]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ue.Wf)(F)),(0,Ue.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:C,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",[`${d}-item`]:{flex:"none"}},[`${d}-item, ${d}-submenu, ${d}-submenu-title`]:{borderRadius:F.itemBorderRadius},[`${d}-item-group-title`]:{padding:`${ie}px ${Qe}px`,fontSize:Ut,lineHeight:ct,transition:`all ${re}`},[`&-horizontal ${d}-submenu`]:{transition:[`border-color ${re} ${H}`,`background ${re} ${H}`].join(",")},[`${d}-submenu, ${d}-submenu-inline`]:{transition:[`border-color ${re} ${H}`,`background ${re} ${H}`,`padding ${Be} ${H}`].join(",")},[`${d}-submenu ${d}-sub`]:{cursor:"initial",transition:[`background ${re} ${H}`,`padding ${re} ${H}`].join(",")},[`${d}-title-content`]:{transition:`color ${re}`},[`${d}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${d}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:xe,borderStyle:Ie,borderWidth:0,borderTopWidth:ye,marginBlock:ye,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Bt(F)),{[`${d}-item-group`]:{[`${d}-item-group-list`]:{margin:0,padding:0,[`${d}-item, ${d}-submenu-title`]:{paddingInline:`${C*2}px ${Qe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:je,borderRadius:xt,boxShadow:"none",transformOrigin:"0 0",[`&${d}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Le}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Le},"\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:F.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:F.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:F.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:F.paddingXS},[`> ${d}`]:Object.assign(Object.assign(Object.assign({borderRadius:xt},Bt(F)),Lt(F)),{[`${d}-item, ${d}-submenu > ${d}-submenu-title`]:{borderRadius:he},[`${d}-submenu-title::after`]:{transition:`transform ${re} ${H}`}})}}),Lt(F)),{[`&-inline-collapsed ${d}-submenu-arrow,
&-inline ${d}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Ye})`},"&::after":{transform:`rotate(45deg) translateX(-${Ye})`}},[`${d}-submenu-open${d}-submenu-inline > ${d}-submenu-title > ${d}-submenu-arrow`]:{transform:`translateY(-${st*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${Ye})`},"&::before":{transform:`rotate(45deg) translateX(${Ye})`}}})},{[`${m}-layout-header`]:{[d]:{lineHeight:"inherit"}}}]};var ur=(F,m)=>(0,Ve.Z)("Menu",C=>{if(m===!1)return[];const{colorBgElevated:re,colorPrimary:Be,colorTextLightSolid:H,controlHeightLG:ie,fontSize:Qe,darkItemColor:xe,darkDangerItemColor:ye,darkItemBg:je,darkSubMenuItemBg:xt,darkItemSelectedColor:he,darkItemSelectedBg:st,darkDangerItemSelectedBg:Ye,darkItemHoverBg:Ie,darkGroupTitleColor:Le,darkItemHoverColor:ct,darkItemDisabledColor:Ut,darkDangerItemHoverColor:kt,darkDangerItemSelectedColor:tr,darkDangerItemActiveBg:Dr}=C,fr=Qe/7*5,Fr=(0,Me.TS)(C,{menuArrowSize:fr,menuHorizontalHeight:ie*1.15,menuArrowOffset:`${fr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:re}),Lr=(0,Me.TS)(Fr,{itemColor:xe,itemHoverColor:ct,groupTitleColor:Le,itemSelectedColor:he,itemBg:je,popupBg:je,subMenuItemBg:xt,itemActiveBg:"transparent",itemSelectedBg:st,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ie,itemDisabledColor:Ut,dangerItemColor:ye,dangerItemHoverColor:kt,dangerItemSelectedColor:tr,dangerItemActiveBg:Dr,dangerItemSelectedBg:Ye,menuSubMenuBg:xt,horizontalItemSelectedColor:H,horizontalItemSelectedBg:Be});return[Nt(Fr),Te(Fr),et(Fr),tt(Fr,"light"),tt(Lr,"dark"),Fe(Fr),(0,J.Z)(Fr),(0,ue.oN)(Fr,"slide-up"),(0,ue.oN)(Fr,"slide-down"),(0,D._y)(Fr,"zoom-big")]},C=>{const{colorPrimary:re,colorError:Be,colorTextDisabled:H,colorErrorBg:ie,colorText:Qe,colorTextDescription:xe,colorBgContainer:ye,colorFillAlter:je,colorFillContent:xt,lineWidth:he,lineWidthBold:st,controlItemBgActive:Ye,colorBgTextHover:Ie,controlHeightLG:Le,lineHeight:ct,colorBgElevated:Ut,marginXXS:kt,padding:tr,fontSize:Dr,controlHeightSM:fr,fontSizeLG:Fr,colorTextLightSolid:Lr,colorErrorHover:mr}=C,cr=new Se.C(Lr).setAlpha(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:C.zIndexPopupBase+50,radiusItem:C.borderRadiusLG,itemBorderRadius:C.borderRadiusLG,radiusSubMenuItem:C.borderRadiusSM,subMenuItemBorderRadius:C.borderRadiusSM,colorItemText:Qe,itemColor:Qe,colorItemTextHover:Qe,itemHoverColor:Qe,colorItemTextHoverHorizontal:re,horizontalItemHoverColor:re,colorGroupTitle:xe,groupTitleColor:xe,colorItemTextSelected:re,itemSelectedColor:re,colorItemTextSelectedHorizontal:re,horizontalItemSelectedColor:re,colorItemBg:ye,itemBg:ye,colorItemBgHover:Ie,itemHoverBg:Ie,colorItemBgActive:xt,itemActiveBg:Ye,colorSubItemBg:je,subMenuItemBg:je,colorItemBgSelected:Ye,itemSelectedBg:Ye,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:st,activeBarHeight:st,colorActiveBarBorderSize:he,activeBarBorderWidth:he,colorItemTextDisabled:H,itemDisabledColor:H,colorDangerItemText:Be,dangerItemColor:Be,colorDangerItemTextHover:Be,dangerItemHoverColor:Be,colorDangerItemTextSelected:Be,dangerItemSelectedColor:Be,colorDangerItemBgActive:ie,dangerItemActiveBg:ie,colorDangerItemBgSelected:ie,dangerItemSelectedBg:ie,itemMarginInline:C.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Le,groupTitleLineHeight:ct,collapsedWidth:Le*2,popupBg:Ut,itemMarginBlock:kt,itemPaddingInline:tr,horizontalLineHeight:`${Le*1.15}px`,iconSize:Dr,iconMarginInlineEnd:fr-Dr,collapsedIconSize:Fr,groupTitleFontSize:Dr,darkItemDisabledColor:new Se.C(Lr).setAlpha(.25).toRgbString(),darkItemColor:cr,darkDangerItemColor:Be,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Lr,darkItemSelectedBg:re,darkDangerItemSelectedBg:Be,darkItemHoverBg:"transparent",darkGroupTitleColor:cr,darkItemHoverColor:Lr,darkDangerItemHoverColor:mr,darkDangerItemSelectedColor:Lr,darkDangerItemActiveBg:Be}},{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"]]})(F),ar=function(F,m){var d={};for(var C in F)Object.prototype.hasOwnProperty.call(F,C)&&m.indexOf(C)<0&&(d[C]=F[C]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var re=0,C=Object.getOwnPropertySymbols(F);re<C.length;re++)m.indexOf(C[re])<0&&Object.prototype.propertyIsEnumerable.call(F,C[re])&&(d[C[re]]=F[C[re]]);return d},sr=(0,Ae.forwardRef)((F,m)=>{var d,C;const re=Ae.useContext(K.Z),Be=re||{},{getPrefixCls:H,getPopupContainer:ie,direction:Qe,menu:xe}=Ae.useContext(V.E_),ye=H(),{prefixCls:je,className:xt,style:he,theme:st="light",expandIcon:Ye,_internalDisableMenuItemTitleTooltip:Ie,inlineCollapsed:Le,siderCollapsed:ct,items:Ut,children:kt,rootClassName:tr,mode:Dr,selectable:fr,onClick:Fr,overflowedIndicatorPopupClassName:Lr}=F,mr=ar(F,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),cr=(0,z.Z)(mr,["collapsedWidth"]),Kr=Oe(Ut)||kt;(d=Be.validator)===null||d===void 0||d.call(Be,{mode:Dr});const fn=(0,q.useEvent)(function(){var ta;Fr==null||Fr.apply(void 0,arguments),(ta=Be.onClick)===null||ta===void 0||ta.call(Be)}),_n=Be.mode||Dr,ln=fr!=null?fr:Be.selectable,xn=Ae.useMemo(()=>ct!==void 0?ct:Le,[Le,ct]),oi={horizontal:{motionName:`${ye}-slide-up`},inline:(0,W.Z)(ye),other:{motionName:`${ye}-zoom-big`}},_r=H("menu",je||Be.prefixCls),[Ai,Oi]=ur(_r,!re),mi=te()(`${_r}-${st}`,xe==null?void 0:xe.className,xt);let Wi;if(typeof Ye=="function")Wi=Ye;else if(Ye===null||Ye===!1)Wi=null;else if(Be.expandIcon===null||Be.expandIcon===!1)Wi=null;else{const ta=Ye!=null?Ye:Be.expandIcon;Wi=(0,M.Tm)(ta,{className:te()(`${_r}-submenu-expand-icon`,(0,M.l$)(ta)?(C=ta.props)===null||C===void 0?void 0:C.className:"")})}const Gi=Ae.useMemo(()=>({prefixCls:_r,inlineCollapsed:xn||!1,direction:Qe,firstLevel:!0,theme:st,mode:_n,disableMenuItemTitleTooltip:Ie}),[_r,xn,Qe,Ie,st]);return Ai(Ae.createElement(K.Z.Provider,{value:null},Ae.createElement(T.Provider,{value:Gi},Ae.createElement(me.ZP,Object.assign({getPopupContainer:ie,overflowedIndicator:Ae.createElement(X.Z,null),overflowedIndicatorPopupClassName:te()(_r,`${_r}-${st}`,Lr),mode:_n,selectable:ln,onClick:fn},cr,{inlineCollapsed:xn,style:Object.assign(Object.assign({},xe==null?void 0:xe.style),he),className:mi,prefixCls:_r,direction:Qe,defaultMotions:oi,expandIcon:Wi,ref:m,rootClassName:te()(tr,Oi)}),Kr))))});const G=(0,Ae.forwardRef)((F,m)=>{const d=(0,Ae.useRef)(null),C=Ae.useContext(P.D);return(0,Ae.useImperativeHandle)(m,()=>({menu:d.current,focus:re=>{var Be;(Be=d.current)===null||Be===void 0||Be.focus(re)}})),Ae.createElement(sr,Object.assign({ref:d},F,C))});G.Item=ee,G.SubMenu=le,G.Divider=I,G.ItemGroup=me.BW;var ft=G},58421:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Be}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(ie,Qe){return Ae.createElement(te.Z,(0,me.Z)({},ie,{ref:Qe,icon:De}))},S=Ae.forwardRef(V),g=S,I=x(49198),v=x(33853),z=x(38819),E=x(92310),M=x.n(E),N=x(20068),T=x(33885),L=x(67732),ee=x(83652),R=x(42403),le=x(158),X=x(26112),q={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},W=q,K=x(91735),se=function(H){(0,R.Z)(Qe,H);var ie=(0,le.Z)(Qe);function Qe(){var xe;(0,L.Z)(this,Qe);for(var ye=arguments.length,je=new Array(ye),xt=0;xt<ye;xt++)je[xt]=arguments[xt];return xe=ie.call.apply(ie,[this].concat(je)),xe.state={goInputText:""},xe.getValidValue=function(){var he=xe.state.goInputText;return!he||Number.isNaN(he)?void 0:Number(he)},xe.buildOptionText=function(he){return"".concat(he," ").concat(xe.props.locale.items_per_page)},xe.changeSize=function(he){xe.props.changeSize(Number(he))},xe.handleChange=function(he){xe.setState({goInputText:he.target.value})},xe.handleBlur=function(he){var st=xe.props,Ye=st.goButton,Ie=st.quickGo,Le=st.rootPrefixCls,ct=xe.state.goInputText;Ye||ct===""||(xe.setState({goInputText:""}),!(he.relatedTarget&&(he.relatedTarget.className.indexOf("".concat(Le,"-item-link"))>=0||he.relatedTarget.className.indexOf("".concat(Le,"-item"))>=0))&&Ie(xe.getValidValue()))},xe.go=function(he){var st=xe.state.goInputText;st!==""&&(he.keyCode===W.ENTER||he.type==="click")&&(xe.setState({goInputText:""}),xe.props.quickGo(xe.getValidValue()))},xe}return(0,ee.Z)(Qe,[{key:"getPageSizeOptions",value:function(){var ye=this.props,je=ye.pageSize,xt=ye.pageSizeOptions;return xt.some(function(he){return he.toString()===je.toString()})?xt:xt.concat([je.toString()]).sort(function(he,st){var Ye=Number.isNaN(Number(he))?0:Number(he),Ie=Number.isNaN(Number(st))?0:Number(st);return Ye-Ie})}},{key:"render",value:function(){var ye=this,je=this.props,xt=je.pageSize,he=je.locale,st=je.rootPrefixCls,Ye=je.changeSize,Ie=je.quickGo,Le=je.goButton,ct=je.selectComponentClass,Ut=je.buildOptionText,kt=je.selectPrefixCls,tr=je.disabled,Dr=this.state.goInputText,fr="".concat(st,"-options"),Fr=ct,Lr=null,mr=null,cr=null;if(!Ye&&!Ie)return null;var Kr=this.getPageSizeOptions();if(Ye&&Fr){var fn=Kr.map(function(_n,ln){return Ae.createElement(Fr.Option,{key:ln,value:_n.toString()},(Ut||ye.buildOptionText)(_n))});Lr=Ae.createElement(Fr,{disabled:tr,prefixCls:kt,showSearch:!1,className:"".concat(fr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(xt||Kr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(ln){return ln.parentNode},"aria-label":he.page_size,defaultOpen:!1},fn)}return Ie&&(Le&&(cr=typeof Le=="boolean"?Ae.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:tr,className:"".concat(fr,"-quick-jumper-button")},he.jump_to_confirm):Ae.createElement("span",{onClick:this.go,onKeyUp:this.go},Le)),mr=Ae.createElement("div",{className:"".concat(fr,"-quick-jumper")},he.jump_to,Ae.createElement("input",{disabled:tr,type:"text",value:Dr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":he.page}),he.page,cr)),Ae.createElement("li",{className:"".concat(fr)},Lr,mr)}}]),Qe}(Ae.Component);se.defaultProps={pageSizeOptions:["10","20","50","100"]};var fe=se,Oe=function(ie){var Qe,xe=ie.rootPrefixCls,ye=ie.page,je=ie.active,xt=ie.className,he=ie.showTitle,st=ie.onClick,Ye=ie.onKeyPress,Ie=ie.itemRender,Le="".concat(xe,"-item"),ct=M()(Le,"".concat(Le,"-").concat(ye),(Qe={},(0,N.Z)(Qe,"".concat(Le,"-active"),je),(0,N.Z)(Qe,"".concat(Le,"-disabled"),!ye),(0,N.Z)(Qe,ie.className,xt),Qe)),Ut=function(){st(ye)},kt=function(fr){Ye(fr,st,ye)},tr=Ie(ye,"page",Ae.createElement("a",{rel:"nofollow"},ye));return tr?Ae.createElement("li",{title:he?ye.toString():null,className:ct,onClick:Ut,onKeyPress:kt,tabIndex:0},tr):null},Se=Oe;function Ue(){}function J(H){var ie=Number(H);return typeof ie=="number"&&!Number.isNaN(ie)&&isFinite(ie)&&Math.floor(ie)===ie}var ue=function(ie,Qe,xe){return xe};function D(H,ie,Qe){var xe=typeof H=="undefined"?ie.pageSize:H;return Math.floor((Qe.total-1)/xe)+1}var Ve=function(H){(0,R.Z)(Qe,H);var ie=(0,le.Z)(Qe);function Qe(xe){var ye;(0,L.Z)(this,Qe),ye=ie.call(this,xe),ye.paginationNode=Ae.createRef(),ye.getJumpPrevPage=function(){return Math.max(1,ye.state.current-(ye.props.showLessItems?3:5))},ye.getJumpNextPage=function(){return Math.min(D(void 0,ye.state,ye.props),ye.state.current+(ye.props.showLessItems?3:5))},ye.getItemIcon=function(Ye,Ie){var Le=ye.props.prefixCls,ct=Ye||Ae.createElement("button",{type:"button","aria-label":Ie,className:"".concat(Le,"-item-link")});return typeof Ye=="function"&&(ct=Ae.createElement(Ye,(0,T.Z)({},ye.props))),ct},ye.isValid=function(Ye){var Ie=ye.props.total;return J(Ye)&&Ye!==ye.state.current&&J(Ie)&&Ie>0},ye.shouldDisplayQuickJumper=function(){var Ye=ye.props,Ie=Ye.showQuickJumper,Le=Ye.total,ct=ye.state.pageSize;return Le<=ct?!1:Ie},ye.handleKeyDown=function(Ye){(Ye.keyCode===W.ARROW_UP||Ye.keyCode===W.ARROW_DOWN)&&Ye.preventDefault()},ye.handleKeyUp=function(Ye){var Ie=ye.getValidValue(Ye),Le=ye.state.currentInputValue;Ie!==Le&&ye.setState({currentInputValue:Ie}),Ye.keyCode===W.ENTER?ye.handleChange(Ie):Ye.keyCode===W.ARROW_UP?ye.handleChange(Ie-1):Ye.keyCode===W.ARROW_DOWN&&ye.handleChange(Ie+1)},ye.handleBlur=function(Ye){var Ie=ye.getValidValue(Ye);ye.handleChange(Ie)},ye.changePageSize=function(Ye){var Ie=ye.state.current,Le=D(Ye,ye.state,ye.props);Ie=Ie>Le?Le:Ie,Le===0&&(Ie=ye.state.current),typeof Ye=="number"&&("pageSize"in ye.props||ye.setState({pageSize:Ye}),"current"in ye.props||ye.setState({current:Ie,currentInputValue:Ie})),ye.props.onShowSizeChange(Ie,Ye),"onChange"in ye.props&&ye.props.onChange&&ye.props.onChange(Ie,Ye)},ye.handleChange=function(Ye){var Ie=ye.props,Le=Ie.disabled,ct=Ie.onChange,Ut=ye.state,kt=Ut.pageSize,tr=Ut.current,Dr=Ut.currentInputValue;if(ye.isValid(Ye)&&!Le){var fr=D(void 0,ye.state,ye.props),Fr=Ye;return Ye>fr?Fr=fr:Ye<1&&(Fr=1),"current"in ye.props||ye.setState({current:Fr}),Fr!==Dr&&ye.setState({currentInputValue:Fr}),ct(Fr,kt),Fr}return tr},ye.prev=function(){ye.hasPrev()&&ye.handleChange(ye.state.current-1)},ye.next=function(){ye.hasNext()&&ye.handleChange(ye.state.current+1)},ye.jumpPrev=function(){ye.handleChange(ye.getJumpPrevPage())},ye.jumpNext=function(){ye.handleChange(ye.getJumpNextPage())},ye.hasPrev=function(){return ye.state.current>1},ye.hasNext=function(){return ye.state.current<D(void 0,ye.state,ye.props)},ye.runIfEnter=function(Ye,Ie){if(Ye.key==="Enter"||Ye.charCode===13){for(var Le=arguments.length,ct=new Array(Le>2?Le-2:0),Ut=2;Ut<Le;Ut++)ct[Ut-2]=arguments[Ut];Ie.apply(void 0,ct)}},ye.runIfEnterPrev=function(Ye){ye.runIfEnter(Ye,ye.prev)},ye.runIfEnterNext=function(Ye){ye.runIfEnter(Ye,ye.next)},ye.runIfEnterJumpPrev=function(Ye){ye.runIfEnter(Ye,ye.jumpPrev)},ye.runIfEnterJumpNext=function(Ye){ye.runIfEnter(Ye,ye.jumpNext)},ye.handleGoTO=function(Ye){(Ye.keyCode===W.ENTER||Ye.type==="click")&&ye.handleChange(ye.state.currentInputValue)},ye.renderPrev=function(Ye){var Ie=ye.props,Le=Ie.prevIcon,ct=Ie.itemRender,Ut=ct(Ye,"prev",ye.getItemIcon(Le,"prev page")),kt=!ye.hasPrev();return(0,Ae.isValidElement)(Ut)?(0,Ae.cloneElement)(Ut,{disabled:kt}):Ut},ye.renderNext=function(Ye){var Ie=ye.props,Le=Ie.nextIcon,ct=Ie.itemRender,Ut=ct(Ye,"next",ye.getItemIcon(Le,"next page")),kt=!ye.hasNext();return(0,Ae.isValidElement)(Ut)?(0,Ae.cloneElement)(Ut,{disabled:kt}):Ut};var je=xe.onChange!==Ue,xt="current"in xe;xt&&!je&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var he=xe.defaultCurrent;"current"in xe&&(he=xe.current);var st=xe.defaultPageSize;return"pageSize"in xe&&(st=xe.pageSize),he=Math.min(he,D(st,void 0,xe)),ye.state={current:he,currentInputValue:he,pageSize:st},ye}return(0,ee.Z)(Qe,[{key:"componentDidUpdate",value:function(ye,je){var xt=this.props.prefixCls;if(je.current!==this.state.current&&this.paginationNode.current){var he=this.paginationNode.current.querySelector(".".concat(xt,"-item-").concat(je.current));if(he&&document.activeElement===he){var st;he==null||(st=he.blur)===null||st===void 0||st.call(he)}}}},{key:"getValidValue",value:function(ye){var je=ye.target.value,xt=D(void 0,this.state,this.props),he=this.state.currentInputValue,st;return je===""?st=je:Number.isNaN(Number(je))?st=he:je>=xt?st=xt:st=Number(je),st}},{key:"getShowSizeChanger",value:function(){var ye=this.props,je=ye.showSizeChanger,xt=ye.total,he=ye.totalBoundaryShowSizeChanger;return typeof je!="undefined"?je:xt>he}},{key:"render",value:function(){var ye=this.props,je=ye.prefixCls,xt=ye.className,he=ye.style,st=ye.disabled,Ye=ye.hideOnSinglePage,Ie=ye.total,Le=ye.locale,ct=ye.showQuickJumper,Ut=ye.showLessItems,kt=ye.showTitle,tr=ye.showTotal,Dr=ye.simple,fr=ye.itemRender,Fr=ye.showPrevNextJumpers,Lr=ye.jumpPrevIcon,mr=ye.jumpNextIcon,cr=ye.selectComponentClass,Kr=ye.selectPrefixCls,fn=ye.pageSizeOptions,_n=this.state,ln=_n.current,xn=_n.pageSize,oi=_n.currentInputValue;if(Ye===!0&&Ie<=xn)return null;var _r=D(void 0,this.state,this.props),Ai=[],Oi=null,mi=null,Wi=null,Gi=null,ta=null,_o=ct&&ct.goButton,ra=Ut?1:2,bi=ln-1>0?ln-1:0,Ki=ln+1<_r?ln+1:_r,sa=(0,X.Z)(this.props,{aria:!0,data:!0}),be=tr&&Ae.createElement("li",{className:"".concat(je,"-total-text")},tr(Ie,[Ie===0?0:(ln-1)*xn+1,ln*xn>Ie?Ie:ln*xn]));if(Dr){_o&&(typeof _o=="boolean"?ta=Ae.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Le.jump_to_confirm):ta=Ae.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},_o),ta=Ae.createElement("li",{title:kt?"".concat(Le.jump_to).concat(ln,"/").concat(_r):null,className:"".concat(je,"-simple-pager")},ta));var Ne=this.renderPrev(bi);return Ae.createElement("ul",(0,me.Z)({className:M()(je,"".concat(je,"-simple"),(0,N.Z)({},"".concat(je,"-disabled"),st),xt),style:he,ref:this.paginationNode},sa),be,Ne?Ae.createElement("li",{title:kt?Le.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:M()("".concat(je,"-prev"),(0,N.Z)({},"".concat(je,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Ne):null,Ae.createElement("li",{title:kt?"".concat(ln,"/").concat(_r):null,className:"".concat(je,"-simple-pager")},Ae.createElement("input",{type:"text",value:oi,disabled:st,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ae.createElement("span",{className:"".concat(je,"-slash")},"/"),_r),Ae.createElement("li",{title:kt?Le.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:M()("".concat(je,"-next"),(0,N.Z)({},"".concat(je,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Ki)),ta)}if(_r<=3+ra*2){var ke={locale:Le,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:kt,itemRender:fr};_r||Ai.push(Ae.createElement(Se,(0,me.Z)({},ke,{key:"noPager",page:1,className:"".concat(je,"-item-disabled")})));for(var Xe=1;Xe<=_r;Xe+=1){var Pt=ln===Xe;Ai.push(Ae.createElement(Se,(0,me.Z)({},ke,{key:Xe,page:Xe,active:Pt})))}}else{var Dt=Ut?Le.prev_3:Le.prev_5,Er=Ut?Le.next_3:Le.next_5,rr=fr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Lr,"prev page")),Nr=fr(this.getJumpNextPage(),"jump-next",this.getItemIcon(mr,"next page"));Fr&&(Oi=rr?Ae.createElement("li",{title:kt?Dt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:M()("".concat(je,"-jump-prev"),(0,N.Z)({},"".concat(je,"-jump-prev-custom-icon"),!!Lr))},rr):null,mi=Nr?Ae.createElement("li",{title:kt?Er:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:M()("".concat(je,"-jump-next"),(0,N.Z)({},"".concat(je,"-jump-next-custom-icon"),!!mr))},Nr):null),Gi=Ae.createElement(Se,{locale:Le,last:!0,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:_r,page:_r,active:!1,showTitle:kt,itemRender:fr}),Wi=Ae.createElement(Se,{locale:Le,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:kt,itemRender:fr});var Hr=Math.max(1,ln-ra),an=Math.min(ln+ra,_r);ln-1<=ra&&(an=1+ra*2),_r-ln<=ra&&(Hr=_r-ra*2);for(var jr=Hr;jr<=an;jr+=1){var Rr=ln===jr;Ai.push(Ae.createElement(Se,{locale:Le,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jr,page:jr,active:Rr,showTitle:kt,itemRender:fr}))}ln-1>=ra*2&&ln!==3&&(Ai[0]=(0,Ae.cloneElement)(Ai[0],{className:"".concat(je,"-item-after-jump-prev")}),Ai.unshift(Oi)),_r-ln>=ra*2&&ln!==_r-2&&(Ai[Ai.length-1]=(0,Ae.cloneElement)(Ai[Ai.length-1],{className:"".concat(je,"-item-before-jump-next")}),Ai.push(mi)),Hr!==1&&Ai.unshift(Wi),an!==_r&&Ai.push(Gi)}var en=!this.hasPrev()||!_r,wn=!this.hasNext()||!_r,on=this.renderPrev(bi),On=this.renderNext(Ki);return Ae.createElement("ul",(0,me.Z)({className:M()(je,xt,(0,N.Z)({},"".concat(je,"-disabled"),st)),style:he,ref:this.paginationNode},sa),be,on?Ae.createElement("li",{title:kt?Le.prev_page:null,onClick:this.prev,tabIndex:en?null:0,onKeyPress:this.runIfEnterPrev,className:M()("".concat(je,"-prev"),(0,N.Z)({},"".concat(je,"-disabled"),en)),"aria-disabled":en},on):null,Ai,On?Ae.createElement("li",{title:kt?Le.next_page:null,onClick:this.next,tabIndex:wn?null:0,onKeyPress:this.runIfEnterNext,className:M()("".concat(je,"-next"),(0,N.Z)({},"".concat(je,"-disabled"),wn)),"aria-disabled":wn},On):null,Ae.createElement(fe,{disabled:st,locale:Le,rootPrefixCls:je,selectComponentClass:cr,selectPrefixCls:Kr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:ln,pageSize:xn,pageSizeOptions:fn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:_o}))}}],[{key:"getDerivedStateFromProps",value:function(ye,je){var xt={};if("current"in ye&&(xt.current=ye.current,ye.current!==je.current&&(xt.currentInputValue=xt.current)),"pageSize"in ye&&ye.pageSize!==je.pageSize){var he=je.current,st=D(ye.pageSize,je,ye);he=he>st?st:he,"current"in ye||(xt.current=he,xt.currentInputValue=he),xt.pageSize=ye.pageSize}return xt}}]),Qe}(Ae.Component);Ve.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Ue,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Ue,locale:K.Z,style:{},itemRender:ue,totalBoundaryShowSizeChanger:50};var Me=Ve,we=x(22075),Te=x(36355),ve=x(19716),Fe=x(8628),de=x(9763),Ee=x(57809);const tt=H=>Ae.createElement(Ee.default,Object.assign({},H,{showSearch:!0,size:"small"})),it=H=>Ae.createElement(Ee.default,Object.assign({},H,{showSearch:!0,size:"middle"}));tt.Option=Ee.default.Option,it.Option=Ee.default.Option;var Je=x(9937),et=x(17313),Bt=x(83116),Lt=x(37613);const Nt=H=>{const{componentCls:ie}=H;return{[`${ie}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ie}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ie}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}}},[`&${ie}-disabled`]:{cursor:"not-allowed",[`${ie}-item`]:{cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},a:{color:H.colorTextDisabled,backgroundColor:"transparent",border:"none",cursor:"not-allowed"},"&-active":{borderColor:H.colorBorder,backgroundColor:H.itemActiveBgDisabled,"&:hover, &:active":{backgroundColor:H.itemActiveBgDisabled},a:{color:H.itemActiveColorDisabled}}},[`${ie}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ie}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ie}-simple-pager`]:{color:H.colorTextDisabled},[`${ie}-jump-prev, ${ie}-jump-next`]:{[`${ie}-item-link-icon`]:{opacity:0},[`${ie}-item-ellipsis`]:{opacity:1}}},[`&${ie}-simple`]:{[`${ie}-prev, ${ie}-next`]:{[`&${ie}-disabled ${ie}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},ur=H=>{const{componentCls:ie}=H;return{[`&${ie}-mini ${ie}-total-text, &${ie}-mini ${ie}-simple-pager`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`},[`&${ie}-mini ${ie}-item`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM-2}px`},[`&${ie}-mini:not(${ie}-disabled) ${ie}-item:not(${ie}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},[`&${ie}-mini ${ie}-prev, &${ie}-mini ${ie}-next`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM}px`},[`&${ie}-mini:not(${ie}-disabled)`]:{[`${ie}-prev, ${ie}-next`]:{[`&:hover ${ie}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ie}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ie}-disabled:hover ${ie}-item-link`]:{backgroundColor:"transparent"}}},[`
&${ie}-mini ${ie}-prev ${ie}-item-link,
&${ie}-mini ${ie}-next ${ie}-item-link
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}},[`&${ie}-mini ${ie}-jump-prev, &${ie}-mini ${ie}-jump-next`]:{height:H.itemSizeSM,marginInlineEnd:0,lineHeight:`${H.itemSizeSM}px`},[`&${ie}-mini ${ie}-options`]:{marginInlineStart:H.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:H.miniOptionsSizeChangerTop},"&-quick-jumper":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,Je.x0)(H)),{width:H.paginationMiniQuickJumperInputWidth,height:H.controlHeightSM})}}}},ar=H=>{const{componentCls:ie}=H;return{[`
&${ie}-simple ${ie}-prev,
&${ie}-simple ${ie}-next
`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,verticalAlign:"top",[`${ie}-item-link`]:{height:H.itemSizeSM,backgroundColor:"transparent",border:0,"&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive},"&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}}},[`&${ie}-simple ${ie}-simple-pager`]:{display:"inline-block",height:H.itemSizeSM,marginInlineEnd:H.marginXS,input:{boxSizing:"border-box",height:"100%",marginInlineEnd:H.marginXS,padding:`0 ${H.paginationItemPaddingInline}px`,textAlign:"center",backgroundColor:H.itemInputBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,borderRadius:H.borderRadius,outline:"none",transition:`border-color ${H.motionDurationMid}`,color:"inherit","&:hover":{borderColor:H.colorPrimary},"&:focus":{borderColor:H.colorPrimaryHover,boxShadow:`${H.inputOutlineOffset}px 0 ${H.controlOutlineWidth}px ${H.controlOutline}`},"&[disabled]":{color:H.colorTextDisabled,backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,cursor:"not-allowed"}}}}},Cr=H=>{const{componentCls:ie}=H;return{[`${ie}-jump-prev, ${ie}-jump-next`]:{outline:0,[`${ie}-item-container`]:{position:"relative",[`${ie}-item-link-icon`]:{color:H.colorPrimary,fontSize:H.fontSizeSM,opacity:0,transition:`all ${H.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ie}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:H.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:H.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:H.paginationEllipsisTextIndent,opacity:1,transition:`all ${H.motionDurationMid}`}},"&:hover":{[`${ie}-item-link-icon`]:{opacity:1},[`${ie}-item-ellipsis`]:{opacity:0}}},[`
${ie}-prev,
${ie}-jump-prev,
${ie}-jump-next
`]:{marginInlineEnd:H.marginXS},[`
${ie}-prev,
${ie}-next,
${ie}-jump-prev,
${ie}-jump-next
`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,color:H.colorText,fontFamily:H.fontFamily,lineHeight:`${H.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:H.borderRadius,cursor:"pointer",transition:`all ${H.motionDurationMid}`},[`${ie}-prev, ${ie}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:H.colorText,cursor:"pointer",userSelect:"none"},[`${ie}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:H.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:"none",transition:`all ${H.motionDurationMid}`},[`&:hover ${ie}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ie}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ie}-disabled:hover`]:{[`${ie}-item-link`]:{backgroundColor:"transparent"}}},[`${ie}-slash`]:{marginInlineEnd:H.paginationSlashMarginInlineEnd,marginInlineStart:H.paginationSlashMarginInlineStart},[`${ie}-options`]:{display:"inline-block",marginInlineStart:H.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:H.controlHeight,marginInlineStart:H.marginXS,lineHeight:`${H.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,Je.ik)(H)),{width:H.controlHeightLG*1.25,height:H.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:H.marginXS,marginInlineEnd:H.marginXS})}}}},sr=H=>{const{componentCls:ie}=H;return{[`${ie}-item`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,marginInlineEnd:H.marginXS,fontFamily:H.fontFamily,lineHeight:`${H.itemSize-2}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${H.paginationItemPaddingInline}px`,color:H.colorText,"&:hover":{textDecoration:"none"}},[`&:not(${ie}-item-active)`]:{"&:hover":{transition:`all ${H.motionDurationMid}`,backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},"&-active":{fontWeight:H.fontWeightStrong,backgroundColor:H.itemActiveBg,borderColor:H.colorPrimary,a:{color:H.colorPrimary},"&:hover":{borderColor:H.colorPrimaryHover},"&:hover a":{color:H.colorPrimaryHover}}}}},G=H=>{const{componentCls:ie}=H;return{[ie]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,et.Wf)(H)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ie}-total-text`]:{display:"inline-block",height:H.itemSize,marginInlineEnd:H.marginXS,lineHeight:`${H.itemSize-2}px`,verticalAlign:"middle"}}),sr(H)),Cr(H)),ar(H)),ur(H)),Nt(H)),{[`@media only screen and (max-width: ${H.screenLG}px)`]:{[`${ie}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${H.screenSM}px)`]:{[`${ie}-options`]:{display:"none"}}}),[`&${H.componentCls}-rtl`]:{direction:"rtl"}}},ft=H=>{const{componentCls:ie}=H;return{[`${ie}${ie}-disabled:not(${ie}-mini)`]:{"&, &:hover":{[`${ie}-item-link`]:{borderColor:H.colorBorder}},"&:focus-visible":{[`${ie}-item-link`]:{borderColor:H.colorBorder}},[`${ie}-item, ${ie}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,[`&:hover:not(${ie}-item-active)`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,a:{color:H.colorTextDisabled}},[`&${ie}-item-active`]:{backgroundColor:H.itemActiveBgDisabled}},[`${ie}-prev, ${ie}-next`]:{"&:hover button":{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,color:H.colorTextDisabled},[`${ie}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder}}},[`${ie}:not(${ie}-mini)`]:{[`${ie}-prev, ${ie}-next`]:{"&:hover button":{borderColor:H.colorPrimaryHover,backgroundColor:H.itemBg},[`${ie}-item-link`]:{backgroundColor:H.itemLinkBg,borderColor:H.colorBorder},[`&:hover ${ie}-item-link`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,color:H.colorPrimary},[`&${ie}-disabled`]:{[`${ie}-item-link`]:{borderColor:H.colorBorder,color:H.colorTextDisabled}}},[`${ie}-item`]:{backgroundColor:H.itemBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,[`&:hover:not(${ie}-item-active)`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,a:{color:H.colorPrimary}},"&-active":{borderColor:H.colorPrimary}}}}},F=H=>{const{componentCls:ie}=H;return{[`${ie}:not(${ie}-disabled)`]:{[`${ie}-item`]:Object.assign({},(0,et.Qy)(H)),[`${ie}-jump-prev, ${ie}-jump-next`]:{"&:focus-visible":Object.assign({[`${ie}-item-link-icon`]:{opacity:1},[`${ie}-item-ellipsis`]:{opacity:0}},(0,et.oN)(H))},[`${ie}-prev, ${ie}-next`]:{[`&:focus-visible ${ie}-item-link`]:Object.assign({},(0,et.oN)(H))}}}};var m=(0,Bt.Z)("Pagination",H=>{const ie=(0,Lt.TS)(H,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:H.marginXXS/2,paginationMiniQuickJumperInputWidth:H.controlHeightLG*1.1,paginationItemPaddingInline:H.marginXXS*1.5,paginationEllipsisLetterSpacing:H.marginXXS/2,paginationSlashMarginInlineStart:H.marginXXS,paginationSlashMarginInlineEnd:H.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,Je.e5)(H),(0,Je.TM)(H));return[G(ie),F(ie),H.wireframe&&ft(ie)]},H=>({itemBg:H.colorBgContainer,itemSize:H.controlHeight,itemSizeSM:H.controlHeightSM,itemActiveBg:H.colorBgContainer,itemLinkBg:H.colorBgContainer,itemActiveColorDisabled:H.colorTextDisabled,itemActiveBgDisabled:H.controlItemBgActiveDisabled,itemInputBg:H.colorBgContainer,miniOptionsSizeChangerTop:0})),d=function(H,ie){var Qe={};for(var xe in H)Object.prototype.hasOwnProperty.call(H,xe)&&ie.indexOf(xe)<0&&(Qe[xe]=H[xe]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,xe=Object.getOwnPropertySymbols(H);ye<xe.length;ye++)ie.indexOf(xe[ye])<0&&Object.prototype.propertyIsEnumerable.call(H,xe[ye])&&(Qe[xe[ye]]=H[xe[ye]]);return Qe},re=H=>{const{prefixCls:ie,selectPrefixCls:Qe,className:xe,rootClassName:ye,style:je,size:xt,locale:he,selectComponentClass:st,responsive:Ye,showSizeChanger:Ie}=H,Le=d(H,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ct}=(0,Fe.Z)(Ye),{getPrefixCls:Ut,direction:kt,pagination:tr={}}=Ae.useContext(Te.E_),Dr=Ut("pagination",ie),[fr,Fr]=m(Dr),Lr=Ie!=null?Ie:tr.showSizeChanger,mr=Ae.useMemo(()=>{const _r=Ae.createElement("span",{className:`${Dr}-item-ellipsis`},"\u2022\u2022\u2022"),Ai=Ae.createElement("button",{className:`${Dr}-item-link`,type:"button",tabIndex:-1},kt==="rtl"?Ae.createElement(z.Z,null):Ae.createElement(v.Z,null)),Oi=Ae.createElement("button",{className:`${Dr}-item-link`,type:"button",tabIndex:-1},kt==="rtl"?Ae.createElement(v.Z,null):Ae.createElement(z.Z,null)),mi=Ae.createElement("a",{className:`${Dr}-item-link`},Ae.createElement("div",{className:`${Dr}-item-container`},kt==="rtl"?Ae.createElement(I.Z,{className:`${Dr}-item-link-icon`}):Ae.createElement(g,{className:`${Dr}-item-link-icon`}),_r)),Wi=Ae.createElement("a",{className:`${Dr}-item-link`},Ae.createElement("div",{className:`${Dr}-item-container`},kt==="rtl"?Ae.createElement(g,{className:`${Dr}-item-link-icon`}):Ae.createElement(I.Z,{className:`${Dr}-item-link-icon`}),_r));return{prevIcon:Ai,nextIcon:Oi,jumpPrevIcon:mi,jumpNextIcon:Wi}},[kt,Dr]),[cr]=(0,de.Z)("Pagination",we.Z),Kr=Object.assign(Object.assign({},cr),he),fn=(0,ve.Z)(xt),_n=fn==="small"||!!(ct&&!fn&&Ye),ln=Ut("select",Qe),xn=M()({[`${Dr}-mini`]:_n,[`${Dr}-rtl`]:kt==="rtl"},tr==null?void 0:tr.className,xe,ye,Fr),oi=Object.assign(Object.assign({},tr==null?void 0:tr.style),je);return fr(Ae.createElement(Me,Object.assign({},mr,Le,{style:oi,prefixCls:Dr,selectPrefixCls:ln,className:xn,selectComponentClass:st||(_n?tt:it),locale:Kr,showSizeChanger:Lr})))},Be=re},5112:function(un,Tt,x){"use strict";x.d(Tt,{ZP:function(){return Fe}});var me=x(92310),Ae=x.n(me),P=x(18929),De=x(26112),te=x(59301),V=x(36355),S=x(19716);const g=te.createContext(null),I=g.Provider;var v=g;const z=te.createContext(null),E=z.Provider;var M=x(5630),N=x(8654),T=x(1684),L=x(32441),ee=x(17313),R=x(83116),le=x(37613);const X=de=>{const{componentCls:Ee,antCls:tt}=de,it=`${Ee}-group`;return{[it]:Object.assign(Object.assign({},(0,ee.Wf)(de)),{display:"inline-block",fontSize:0,[`&${it}-rtl`]:{direction:"rtl"},[`${tt}-badge ${tt}-badge-count`]:{zIndex:1},[`> ${tt}-badge:not(:first-child) > ${tt}-button-wrapper`]:{borderInlineStart:"none"}})}},q=de=>{const{componentCls:Ee,wrapperMarginInlineEnd:tt,colorPrimary:it,radioSize:Je,motionDurationSlow:et,motionDurationMid:Bt,motionEaseInOutCirc:Lt,colorBgContainer:Nt,colorBorder:ur,lineWidth:ar,dotSize:Cr,colorBgContainerDisabled:sr,colorTextDisabled:G,paddingXS:ft,dotColorDisabled:F,lineType:m,radioDotDisabledSize:d,wireframe:C,colorWhite:re}=de,Be=`${Ee}-inner`;return{[`${Ee}-wrapper`]:Object.assign(Object.assign({},(0,ee.Wf)(de)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:tt,cursor:"pointer",[`&${Ee}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:de.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Ee}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${ar}px ${m} ${it}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Ee]:Object.assign(Object.assign({},(0,ee.Wf)(de)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Ee}-wrapper:hover &,
&:hover ${Be}`]:{borderColor:it},[`${Ee}-input:focus-visible + ${Be}`]:Object.assign({},(0,ee.oN)(de)),[`${Ee}:hover::after, ${Ee}-wrapper:hover &::after`]:{visibility:"visible"},[`${Ee}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:Je,height:Je,marginBlockStart:Je/-2,marginInlineStart:Je/-2,backgroundColor:C?it:re,borderBlockStart:0,borderInlineStart:0,borderRadius:Je,transform:"scale(0)",opacity:0,transition:`all ${et} ${Lt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:Je,height:Je,backgroundColor:Nt,borderColor:ur,borderStyle:"solid",borderWidth:ar,borderRadius:"50%",transition:`all ${Bt}`},[`${Ee}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Ee}-checked`]:{[Be]:{borderColor:it,backgroundColor:C?Nt:it,"&::after":{transform:`scale(${Cr/Je})`,opacity:1,transition:`all ${et} ${Lt}`}}},[`${Ee}-disabled`]:{cursor:"not-allowed",[Be]:{backgroundColor:sr,borderColor:ur,cursor:"not-allowed","&::after":{backgroundColor:F}},[`${Ee}-input`]:{cursor:"not-allowed"},[`${Ee}-disabled + span`]:{color:G,cursor:"not-allowed"},[`&${Ee}-checked`]:{[Be]:{"&::after":{transform:`scale(${d/Je})`}}}},[`span${Ee} + *`]:{paddingInlineStart:ft,paddingInlineEnd:ft}})}},W=de=>{const{buttonColor:Ee,controlHeight:tt,componentCls:it,lineWidth:Je,lineType:et,colorBorder:Bt,motionDurationSlow:Lt,motionDurationMid:Nt,buttonPaddingInline:ur,fontSize:ar,buttonBg:Cr,fontSizeLG:sr,controlHeightLG:G,controlHeightSM:ft,paddingXS:F,borderRadius:m,borderRadiusSM:d,borderRadiusLG:C,buttonCheckedBg:re,buttonSolidCheckedColor:Be,colorTextDisabled:H,colorBgContainerDisabled:ie,buttonCheckedBgDisabled:Qe,buttonCheckedColorDisabled:xe,colorPrimary:ye,colorPrimaryHover:je,colorPrimaryActive:xt,buttonSolidCheckedBg:he,buttonSolidCheckedHoverBg:st,buttonSolidCheckedActiveBg:Ye}=de;return{[`${it}-button-wrapper`]:{position:"relative",display:"inline-block",height:tt,margin:0,paddingInline:ur,paddingBlock:0,color:Ee,fontSize:ar,lineHeight:`${tt-Je*2}px`,background:Cr,border:`${Je}px ${et} ${Bt}`,borderBlockStartWidth:Je+.02,borderInlineStartWidth:0,borderInlineEndWidth:Je,cursor:"pointer",transition:[`color ${Nt}`,`background ${Nt}`,`box-shadow ${Nt}`].join(","),a:{color:Ee},[`> ${it}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-Je,insetInlineStart:-Je,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:Je,paddingInline:0,backgroundColor:Bt,transition:`background-color ${Lt}`,content:'""'}},"&:first-child":{borderInlineStart:`${Je}px ${et} ${Bt}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${it}-group-large &`]:{height:G,fontSize:sr,lineHeight:`${G-Je*2}px`,"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},[`${it}-group-small &`]:{height:ft,paddingInline:F-Je,paddingBlock:0,lineHeight:`${ft-Je*2}px`,"&:first-child":{borderStartStartRadius:d,borderEndStartRadius:d},"&:last-child":{borderStartEndRadius:d,borderEndEndRadius:d}},"&:hover":{position:"relative",color:ye},"&:has(:focus-visible)":Object.assign({},(0,ee.oN)(de)),[`${it}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${it}-button-wrapper-disabled)`]:{zIndex:1,color:ye,background:re,borderColor:ye,"&::before":{backgroundColor:ye},"&:first-child":{borderColor:ye},"&:hover":{color:je,borderColor:je,"&::before":{backgroundColor:je}},"&:active":{color:xt,borderColor:xt,"&::before":{backgroundColor:xt}}},[`${it}-group-solid &-checked:not(${it}-button-wrapper-disabled)`]:{color:Be,background:he,borderColor:he,"&:hover":{color:Be,background:st,borderColor:st},"&:active":{color:Be,background:Ye,borderColor:Ye}},"&-disabled":{color:H,backgroundColor:ie,borderColor:Bt,cursor:"not-allowed","&:first-child, &:hover":{color:H,backgroundColor:ie,borderColor:Bt}},[`&-disabled${it}-button-wrapper-checked`]:{color:xe,backgroundColor:Qe,borderColor:Bt,boxShadow:"none"}}}},K=de=>de-4*2;var se=(0,R.Z)("Radio",de=>{const{controlOutline:Ee,controlOutlineWidth:tt,radioSize:it}=de,Je=`0 0 0 ${tt}px ${Ee}`,et=Je,Bt=K(it),Lt=(0,le.TS)(de,{radioDotDisabledSize:Bt,radioFocusShadow:Je,radioButtonFocusShadow:et});return[X(Lt),q(Lt),W(Lt)]},de=>{const{wireframe:Ee,padding:tt,marginXS:it,lineWidth:Je,fontSizeLG:et,colorText:Bt,colorBgContainer:Lt,colorTextDisabled:Nt,controlItemBgActiveDisabled:ur,colorTextLightSolid:ar,colorPrimary:Cr,colorPrimaryHover:sr,colorPrimaryActive:G}=de,ft=4,F=et,m=Ee?K(F):F-(ft+Je)*2;return{radioSize:F,dotSize:m,dotColorDisabled:Nt,buttonSolidCheckedColor:ar,buttonSolidCheckedBg:Cr,buttonSolidCheckedHoverBg:sr,buttonSolidCheckedActiveBg:G,buttonBg:Lt,buttonCheckedBg:Lt,buttonColor:Bt,buttonCheckedBgDisabled:ur,buttonCheckedColorDisabled:Nt,buttonPaddingInline:tt-Je,wrapperMarginInlineEnd:it}}),fe=x(14088),Oe=x(4572),Se=function(de,Ee){var tt={};for(var it in de)Object.prototype.hasOwnProperty.call(de,it)&&Ee.indexOf(it)<0&&(tt[it]=de[it]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,it=Object.getOwnPropertySymbols(de);Je<it.length;Je++)Ee.indexOf(it[Je])<0&&Object.prototype.propertyIsEnumerable.call(de,it[Je])&&(tt[it[Je]]=de[it[Je]]);return tt};const Ue=(de,Ee)=>{var tt,it;const Je=te.useContext(v),et=te.useContext(z),{getPrefixCls:Bt,direction:Lt,radio:Nt}=te.useContext(V.E_),ur=te.useRef(null),ar=(0,N.sQ)(Ee,ur),{isFormItemInput:Cr}=te.useContext(L.aM),sr=xt=>{var he,st;(he=de.onChange)===null||he===void 0||he.call(de,xt),(st=Je==null?void 0:Je.onChange)===null||st===void 0||st.call(Je,xt)},{prefixCls:G,className:ft,rootClassName:F,children:m,style:d}=de,C=Se(de,["prefixCls","className","rootClassName","children","style"]),re=Bt("radio",G),Be=((Je==null?void 0:Je.optionType)||et)==="button",H=Be?`${re}-button`:re,[ie,Qe]=se(re),xe=Object.assign({},C),ye=te.useContext(T.Z);Je&&(xe.name=Je.name,xe.onChange=sr,xe.checked=de.value===Je.value,xe.disabled=(tt=xe.disabled)!==null&&tt!==void 0?tt:Je.disabled),xe.disabled=(it=xe.disabled)!==null&&it!==void 0?it:ye;const je=Ae()(`${H}-wrapper`,{[`${H}-wrapper-checked`]:xe.checked,[`${H}-wrapper-disabled`]:xe.disabled,[`${H}-wrapper-rtl`]:Lt==="rtl",[`${H}-wrapper-in-form-item`]:Cr},Nt==null?void 0:Nt.className,ft,F,Qe);return ie(te.createElement(fe.Z,{component:"Radio",disabled:xe.disabled},te.createElement("label",{className:je,style:Object.assign(Object.assign({},Nt==null?void 0:Nt.style),d),onMouseEnter:de.onMouseEnter,onMouseLeave:de.onMouseLeave},te.createElement(M.Z,Object.assign({},xe,{className:Ae()(xe.className,!Be&&Oe.A),type:"radio",prefixCls:H,ref:ar})),m!==void 0?te.createElement("span",null,m):null)))};var ue=te.forwardRef(Ue);const D=te.forwardRef((de,Ee)=>{const{getPrefixCls:tt,direction:it}=te.useContext(V.E_),[Je,et]=(0,P.Z)(de.defaultValue,{value:de.value}),Bt=he=>{const st=Je,Ye=he.target.value;"value"in de||et(Ye);const{onChange:Ie}=de;Ie&&Ye!==st&&Ie(he)},{prefixCls:Lt,className:Nt,rootClassName:ur,options:ar,buttonStyle:Cr="outline",disabled:sr,children:G,size:ft,style:F,id:m,onMouseEnter:d,onMouseLeave:C,onFocus:re,onBlur:Be}=de,H=tt("radio",Lt),ie=`${H}-group`,[Qe,xe]=se(H);let ye=G;ar&&ar.length>0&&(ye=ar.map(he=>typeof he=="string"||typeof he=="number"?te.createElement(ue,{key:he.toString(),prefixCls:H,disabled:sr,value:he,checked:Je===he},he):te.createElement(ue,{key:`radio-group-value-options-${he.value}`,prefixCls:H,disabled:he.disabled||sr,value:he.value,checked:Je===he.value,title:he.title,style:he.style},he.label)));const je=(0,S.Z)(ft),xt=Ae()(ie,`${ie}-${Cr}`,{[`${ie}-${je}`]:je,[`${ie}-rtl`]:it==="rtl"},Nt,ur,xe);return Qe(te.createElement("div",Object.assign({},(0,De.Z)(de,{aria:!0,data:!0}),{className:xt,style:F,onMouseEnter:d,onMouseLeave:C,onFocus:re,onBlur:Be,id:m,ref:Ee}),te.createElement(I,{value:{onChange:Bt,value:Je,disabled:de.disabled,name:de.name,optionType:de.optionType}},ye)))});var Ve=te.memo(D),Me=function(de,Ee){var tt={};for(var it in de)Object.prototype.hasOwnProperty.call(de,it)&&Ee.indexOf(it)<0&&(tt[it]=de[it]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,it=Object.getOwnPropertySymbols(de);Je<it.length;Je++)Ee.indexOf(it[Je])<0&&Object.prototype.propertyIsEnumerable.call(de,it[Je])&&(tt[it[Je]]=de[it[Je]]);return tt};const we=(de,Ee)=>{const{getPrefixCls:tt}=te.useContext(V.E_),{prefixCls:it}=de,Je=Me(de,["prefixCls"]),et=tt("radio",it);return te.createElement(E,{value:"button"},te.createElement(ue,Object.assign({prefixCls:et},Je,{type:"radio",ref:Ee})))};var Te=te.forwardRef(we);const ve=ue;ve.Button=Te,ve.Group=Ve,ve.__ANT_RADIO=!0;var Fe=ve},57809:function(un,Tt,x){"use strict";var me=x(92310),Ae=x.n(me),P=x(77861),De=x(2738),te=x(59301),V=x(53487),S=x(62892),g=x(19080),I=x(36355),v=x(1684),z=x(93891),E=x(19716),M=x(32441),N=x(33234),T=x(14154),L=x(58582),ee=x(84443),R=x(66339),le=function(se,fe){var Oe={};for(var Se in se)Object.prototype.hasOwnProperty.call(se,Se)&&fe.indexOf(Se)<0&&(Oe[Se]=se[Se]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Se=Object.getOwnPropertySymbols(se);Ue<Se.length;Ue++)fe.indexOf(Se[Ue])<0&&Object.prototype.propertyIsEnumerable.call(se,Se[Ue])&&(Oe[Se[Ue]]=se[Se[Ue]]);return Oe};const X="SECRET_COMBOBOX_MODE_DO_NOT_USE",q=(se,fe)=>{var Oe,{prefixCls:Se,bordered:Ue=!0,className:J,rootClassName:ue,getPopupContainer:D,popupClassName:Ve,dropdownClassName:Me,listHeight:we=256,placement:Te,listItemHeight:ve=24,size:Fe,disabled:de,notFoundContent:Ee,status:tt,builtinPlacements:it,dropdownMatchSelectWidth:Je,popupMatchSelectWidth:et,direction:Bt,style:Lt,allowClear:Nt}=se,ur=le(se,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:ar,getPrefixCls:Cr,renderEmpty:sr,direction:G,virtual:ft,popupMatchSelectWidth:F,popupOverflow:m,select:d}=te.useContext(I.E_),C=Cr("select",Se),re=Cr(),Be=Bt!=null?Bt:G,{compactSize:H,compactItemClassnames:ie}=(0,N.ri)(C,Be),[Qe,xe]=(0,T.Z)(C),ye=te.useMemo(()=>{const{mode:oi}=ur;if(oi!=="combobox")return oi===X?"combobox":oi},[ur.mode]),je=ye==="multiple"||ye==="tags",xt=(0,ee.Z)(ur.suffixIcon,ur.showArrow),he=(Oe=et!=null?et:Je)!==null&&Oe!==void 0?Oe:F,{status:st,hasFeedback:Ye,isFormItemInput:Ie,feedbackIcon:Le}=te.useContext(M.aM),ct=(0,g.F)(st,tt);let Ut;Ee!==void 0?Ut=Ee:ye==="combobox"?Ut=null:Ut=(sr==null?void 0:sr("Select"))||te.createElement(z.Z,{componentName:"Select"});const{suffixIcon:kt,itemIcon:tr,removeIcon:Dr,clearIcon:fr}=(0,R.Z)(Object.assign(Object.assign({},ur),{multiple:je,hasFeedback:Ye,feedbackIcon:Le,showSuffixIcon:xt,prefixCls:C,showArrow:ur.showArrow,componentName:"Select"})),Fr=Nt===!0?{clearIcon:fr}:Nt,Lr=(0,De.Z)(ur,["suffixIcon","itemIcon"]),mr=Ae()(Ve||Me,{[`${C}-dropdown-${Be}`]:Be==="rtl"},ue,xe),cr=(0,E.Z)(oi=>{var _r;return(_r=Fe!=null?Fe:H)!==null&&_r!==void 0?_r:oi}),Kr=te.useContext(v.Z),fn=de!=null?de:Kr,_n=Ae()({[`${C}-lg`]:cr==="large",[`${C}-sm`]:cr==="small",[`${C}-rtl`]:Be==="rtl",[`${C}-borderless`]:!Ue,[`${C}-in-form-item`]:Ie},(0,g.Z)(C,ct,Ye),ie,d==null?void 0:d.className,J,ue,xe),ln=te.useMemo(()=>Te!==void 0?Te:Be==="rtl"?"bottomRight":"bottomLeft",[Te,Be]),xn=(0,L.Z)(it,m);return Qe(te.createElement(P.ZP,Object.assign({ref:fe,virtual:ft,showSearch:d==null?void 0:d.showSearch},Lr,{style:Object.assign(Object.assign({},d==null?void 0:d.style),Lt),dropdownMatchSelectWidth:he,builtinPlacements:xn,transitionName:(0,S.m)(re,"slide-up",ur.transitionName),listHeight:we,listItemHeight:ve,mode:ye,prefixCls:C,placement:ln,direction:Be,suffixIcon:kt,menuItemSelectedIcon:tr,removeIcon:Dr,allowClear:Fr,notFoundContent:Ut,className:_n,getPopupContainer:D||ar,dropdownClassName:mr,disabled:fn})))},W=te.forwardRef(q),K=(0,V.Z)(W);W.SECRET_COMBOBOX_MODE_DO_NOT_USE=X,W.Option=P.Wx,W.OptGroup=P.Xo,W._InternalPanelDoNotUseOrYouWillBeFired=K,Tt.default=W},14154:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return W}});var me=x(17313),Ae=x(74207),P=x(37613),De=x(83116),te=x(13826),V=x(92899);const S=K=>{const{optionHeight:se,optionFontSize:fe,optionLineHeight:Oe,optionPadding:Se}=K;return{position:"relative",display:"block",minHeight:se,padding:Se,color:K.colorText,fontWeight:"normal",fontSize:fe,lineHeight:Oe,boxSizing:"border-box"}};var I=K=>{const{antCls:se,componentCls:fe}=K,Oe=`${fe}-item`,Se=`&${se}-slide-up-enter${se}-slide-up-enter-active`,Ue=`&${se}-slide-up-appear${se}-slide-up-appear-active`,J=`&${se}-slide-up-leave${se}-slide-up-leave-active`,ue=`${fe}-dropdown-placement-`;return[{[`${fe}-dropdown`]:Object.assign(Object.assign({},(0,me.Wf)(K)),{position:"absolute",top:-9999,zIndex:K.zIndexPopup,boxSizing:"border-box",padding:K.paddingXXS,overflow:"hidden",fontSize:K.fontSize,fontVariant:"initial",backgroundColor:K.colorBgElevated,borderRadius:K.borderRadiusLG,outline:"none",boxShadow:K.boxShadowSecondary,[`
${Se}${ue}bottomLeft,
${Ue}${ue}bottomLeft
`]:{animationName:te.fJ},[`
${Se}${ue}topLeft,
${Ue}${ue}topLeft,
${Se}${ue}topRight,
${Ue}${ue}topRight
`]:{animationName:te.Qt},[`${J}${ue}bottomLeft`]:{animationName:te.Uw},[`
${J}${ue}topLeft,
${J}${ue}topRight
`]:{animationName:te.ly},"&-hidden":{display:"none"},[`${Oe}`]:Object.assign(Object.assign({},S(K)),{cursor:"pointer",transition:`background ${K.motionDurationSlow} ease`,borderRadius:K.borderRadiusSM,"&-group":{color:K.colorTextDescription,fontSize:K.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},me.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Oe}-option-disabled)`]:{backgroundColor:K.optionActiveBg},[`&-selected:not(${Oe}-option-disabled)`]:{color:K.optionSelectedColor,fontWeight:K.optionSelectedFontWeight,backgroundColor:K.optionSelectedBg,[`${Oe}-option-state`]:{color:K.colorPrimary}},"&-disabled":{[`&${Oe}-option-selected`]:{backgroundColor:K.colorBgContainerDisabled},color:K.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:K.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,te.oN)(K,"slide-up"),(0,te.oN)(K,"slide-down"),(0,V.Fm)(K,"move-up"),(0,V.Fm)(K,"move-down")]};const v=2,z=K=>{let{controlHeightSM:se,controlHeight:fe,lineWidth:Oe}=K;const Se=(fe-se)/2-Oe,Ue=Math.ceil(Se/2);return[Se,Ue]};function E(K,se){const{componentCls:fe,iconCls:Oe}=K,Se=`${fe}-selection-overflow`,Ue=K.multipleSelectItemHeight,[J]=z(K),ue=se?`${fe}-${se}`:"";return{[`${fe}-multiple${ue}`]:{fontSize:K.fontSize,[Se]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${fe}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${J-v}px ${v*2}px`,borderRadius:K.borderRadius,[`${fe}-show-search&`]:{cursor:"text"},[`${fe}-disabled&`]:{background:K.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${v}px 0`,lineHeight:`${Ue}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${fe}-show-arrow ${fe}-selector,
&${fe}-allow-clear ${fe}-selector
`]:{paddingInlineEnd:K.fontSizeIcon+K.controlPaddingHorizontal},[`${fe}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ue,marginTop:v,marginBottom:v,lineHeight:`${Ue-K.lineWidth*2}px`,background:K.multipleItemBg,border:`${K.lineWidth}px ${K.lineType} ${K.multipleItemBorderColor}`,borderRadius:K.borderRadiusSM,cursor:"default",transition:`font-size ${K.motionDurationSlow}, line-height ${K.motionDurationSlow}, height ${K.motionDurationSlow}`,userSelect:"none",marginInlineEnd:v*2,paddingInlineStart:K.paddingXS,paddingInlineEnd:K.paddingXS/2,[`${fe}-disabled&`]:{color:K.multipleItemColorDisabled,borderColor:K.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:K.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,me.Ro)()),{display:"inline-flex",alignItems:"center",color:K.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Oe}`]:{verticalAlign:"-0.2em"},"&:hover":{color:K.colorIconHover}})},[`${Se}-item + ${Se}-item`]:{[`${fe}-selection-search`]:{marginInlineStart:0}},[`${fe}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:K.inputPaddingHorizontalBase-J,"\n &-input,\n &-mirror\n ":{height:Ue,fontFamily:K.fontFamily,lineHeight:`${Ue}px`,transition:`all ${K.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${fe}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:K.inputPaddingHorizontalBase,insetInlineEnd:K.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${K.motionDurationSlow}`}}}}var N=K=>{const{componentCls:se}=K,fe=(0,P.TS)(K,{controlHeight:K.controlHeightSM,multipleSelectItemHeight:K.controlHeightXS,borderRadius:K.borderRadiusSM,borderRadiusSM:K.borderRadiusXS}),Oe=(0,P.TS)(K,{fontSize:K.fontSizeLG,controlHeight:K.controlHeightLG,multipleSelectItemHeight:K.multipleItemHeightLG,borderRadius:K.borderRadiusLG,borderRadiusSM:K.borderRadius}),[,Se]=z(K);return[E(K),E(fe,"sm"),{[`${se}-multiple${se}-sm`]:{[`${se}-selection-placeholder`]:{insetInline:K.controlPaddingHorizontalSM-K.lineWidth},[`${se}-selection-search`]:{marginInlineStart:Se}}},E(Oe,"lg")]};function T(K,se){const{componentCls:fe,inputPaddingHorizontalBase:Oe,borderRadius:Se}=K,Ue=K.controlHeight-K.lineWidth*2,J=Math.ceil(K.fontSize*1.25),ue=se?`${fe}-${se}`:"";return{[`${fe}-single${ue}`]:{fontSize:K.fontSize,[`${fe}-selector`]:Object.assign(Object.assign({},(0,me.Wf)(K)),{display:"flex",borderRadius:Se,[`${fe}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Oe,insetInlineEnd:Oe,bottom:0,"&-input":{width:"100%"}},[`
${fe}-selection-item,
${fe}-selection-placeholder
`]:{padding:0,lineHeight:`${Ue}px`,transition:`all ${K.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ue}px`}},[`${fe}-selection-item`]:{position:"relative",userSelect:"none"},[`${fe}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${fe}-selection-item:after`,`${fe}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${fe}-show-arrow ${fe}-selection-item,
&${fe}-show-arrow ${fe}-selection-placeholder
`]:{paddingInlineEnd:J},[`&${fe}-open ${fe}-selection-item`]:{color:K.colorTextPlaceholder},[`&:not(${fe}-customize-input)`]:{[`${fe}-selector`]:{width:"100%",height:K.controlHeight,padding:`0 ${Oe}px`,[`${fe}-selection-search-input`]:{height:Ue},"&:after":{lineHeight:`${Ue}px`}}},[`&${fe}-customize-input`]:{[`${fe}-selector`]:{"&:after":{display:"none"},[`${fe}-selection-search`]:{position:"static",width:"100%"},[`${fe}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Oe}px`,"&:after":{display:"none"}}}}}}}function L(K){const{componentCls:se}=K,fe=K.controlPaddingHorizontalSM-K.lineWidth;return[T(K),T((0,P.TS)(K,{controlHeight:K.controlHeightSM,borderRadius:K.borderRadiusSM}),"sm"),{[`${se}-single${se}-sm`]:{[`&:not(${se}-customize-input)`]:{[`${se}-selection-search`]:{insetInlineStart:fe,insetInlineEnd:fe},[`${se}-selector`]:{padding:`0 ${fe}px`},[`&${se}-show-arrow ${se}-selection-search`]:{insetInlineEnd:fe+K.fontSize*1.5},[`
&${se}-show-arrow ${se}-selection-item,
&${se}-show-arrow ${se}-selection-placeholder
`]:{paddingInlineEnd:K.fontSize*1.5}}}},T((0,P.TS)(K,{controlHeight:K.singleItemHeightLG,fontSize:K.fontSizeLG,borderRadius:K.borderRadiusLG}),"lg")]}const ee=K=>{const{componentCls:se,selectorBg:fe}=K;return{position:"relative",backgroundColor:fe,border:`${K.lineWidth}px ${K.lineType} ${K.colorBorder}`,transition:`all ${K.motionDurationMid} ${K.motionEaseInOut}`,input:{cursor:"pointer"},[`${se}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${se}-disabled&`]:{color:K.colorTextDisabled,background:K.colorBgContainerDisabled,cursor:"not-allowed",[`${se}-multiple&`]:{background:K.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},R=function(K,se){let fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Oe,borderHoverColor:Se,outlineColor:Ue,antCls:J}=se,ue=fe?{[`${Oe}-selector`]:{borderColor:Se}}:{};return{[K]:{[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${J}-pagination-size-changer)`]:Object.assign(Object.assign({},ue),{[`${Oe}-focused& ${Oe}-selector`]:{borderColor:Se,boxShadow:`0 0 0 ${se.controlOutlineWidth}px ${Ue}`,outline:0},[`&:hover ${Oe}-selector`]:{borderColor:Se}})}}},le=K=>{const{componentCls:se}=K;return{[`${se}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},X=K=>{const{componentCls:se,inputPaddingHorizontalBase:fe,iconCls:Oe}=K;return{[se]:Object.assign(Object.assign({},(0,me.Wf)(K)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${se}-customize-input) ${se}-selector`]:Object.assign(Object.assign({},ee(K)),le(K)),[`${se}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},me.vS),[`${se}-selection-placeholder`]:Object.assign(Object.assign({},me.vS),{flex:1,color:K.colorTextPlaceholder,pointerEvents:"none"}),[`${se}-arrow`]:Object.assign(Object.assign({},(0,me.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:fe,height:K.fontSizeIcon,marginTop:-K.fontSizeIcon/2,color:K.colorTextQuaternary,fontSize:K.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Oe]:{verticalAlign:"top",transition:`transform ${K.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${se}-suffix)`]:{pointerEvents:"auto"}},[`${se}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${se}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:fe,zIndex:1,display:"inline-block",width:K.fontSizeIcon,height:K.fontSizeIcon,marginTop:-K.fontSizeIcon/2,color:K.colorTextQuaternary,fontSize:K.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:K.clearBg,cursor:"pointer",opacity:0,transition:`color ${K.motionDurationMid} ease, opacity ${K.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:K.colorTextTertiary}},"&:hover":{[`${se}-clear`]:{opacity:1}}}),[`${se}-has-feedback`]:{[`${se}-clear`]:{insetInlineEnd:fe+K.fontSize+K.paddingXS}}}},q=K=>{const{componentCls:se}=K;return[{[se]:{[`&-borderless ${se}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${se}-in-form-item`]:{width:"100%"}}},X(K),L(K),N(K),I(K),{[`${se}-rtl`]:{direction:"rtl"}},R(se,(0,P.TS)(K,{borderHoverColor:K.colorPrimaryHover,outlineColor:K.controlOutline})),R(`${se}-status-error`,(0,P.TS)(K,{borderHoverColor:K.colorErrorHover,outlineColor:K.colorErrorOutline}),!0),R(`${se}-status-warning`,(0,P.TS)(K,{borderHoverColor:K.colorWarningHover,outlineColor:K.colorWarningOutline}),!0),(0,Ae.c)(K,{borderElCls:`${se}-selector`,focusElCls:`${se}-focused`})]};var W=(0,De.Z)("Select",(K,se)=>{let{rootPrefixCls:fe}=se;const Oe=(0,P.TS)(K,{rootPrefixCls:fe,inputPaddingHorizontalBase:K.paddingSM-1,multipleSelectItemHeight:K.multipleItemHeight});return[q(Oe)]},K=>{const{fontSize:se,lineHeight:fe,controlHeight:Oe,controlPaddingHorizontal:Se,zIndexPopupBase:Ue,colorText:J,fontWeightStrong:ue,controlItemBgActive:D,controlItemBgHover:Ve,colorBgContainer:Me,colorFillSecondary:we,controlHeightLG:Te,controlHeightSM:ve,colorBgContainerDisabled:Fe,colorTextDisabled:de}=K;return{zIndexPopup:Ue+50,optionSelectedColor:J,optionSelectedFontWeight:ue,optionSelectedBg:D,optionActiveBg:Ve,optionPadding:`${(Oe-se*fe)/2}px ${Se}px`,optionFontSize:se,optionLineHeight:fe,optionHeight:Oe,selectorBg:Me,clearBg:Me,singleItemHeightLG:Te,multipleItemBg:we,multipleItemBorderColor:"transparent",multipleItemHeight:ve,multipleItemHeightLG:Oe,multipleSelectorBgDisabled:Fe,multipleItemColorDisabled:de,multipleItemBorderColorDisabled:"transparent"}})},58582:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ae}});const me=P=>{const te={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:P==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},te),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},te),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},te),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},te),{points:["br","tr"],offset:[0,-4]})}};function Ae(P,De){return P||me(De)}},84443:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return me}});function me(Ae,P){return P!==void 0?P:Ae!==null}},66339:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var me=x(40001),Ae=x(19248),P=x(99267),De=x(84105),te=x(58617),V=x(47472),S=x(59301);function g(I){let{suffixIcon:v,clearIcon:z,menuItemSelectedIcon:E,removeIcon:M,loading:N,multiple:T,hasFeedback:L,prefixCls:ee,showSuffixIcon:R,feedbackIcon:le,showArrow:X,componentName:q}=I;const W=z!=null?z:S.createElement(Ae.Z,null),K=Se=>v===null&&!L&&!X?null:S.createElement(S.Fragment,null,R!==!1&&Se,L&&le);let se=null;if(v!==void 0)se=K(v);else if(N)se=K(S.createElement(te.Z,{spin:!0}));else{const Se=`${ee}-suffix`;se=Ue=>{let{open:J,showSearch:ue}=Ue;return K(J&&ue?S.createElement(V.Z,{className:Se}):S.createElement(De.Z,{className:Se}))}}let fe=null;E!==void 0?fe=E:T?fe=S.createElement(me.Z,null):fe=null;let Oe=null;return M!==void 0?Oe=M:Oe=S.createElement(P.Z,null),{clearIcon:W,suffixIcon:se,itemIcon:fe,removeIcon:Oe}}},61621:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return m}});var me=x(92310),Ae=x.n(me),P=x(59301),De=x(36355),te=x(2738),S=d=>{const{prefixCls:C,className:re,style:Be,size:H,shape:ie}=d,Qe=Ae()({[`${C}-lg`]:H==="large",[`${C}-sm`]:H==="small"}),xe=Ae()({[`${C}-circle`]:ie==="circle",[`${C}-square`]:ie==="square",[`${C}-round`]:ie==="round"}),ye=P.useMemo(()=>typeof H=="number"?{width:H,height:H,lineHeight:`${H}px`}:{},[H]);return P.createElement("span",{className:Ae()(C,Qe,xe,re),style:Object.assign(Object.assign({},ye),Be)})},g=x(36237),I=x(83116),v=x(37613);const z=new g.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),E=d=>({height:d,lineHeight:`${d}px`}),M=d=>Object.assign({width:d},E(d)),N=d=>({background:d.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:z,animationDuration:d.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),T=d=>Object.assign({width:d*5,minWidth:d*5},E(d)),L=d=>{const{skeletonAvatarCls:C,gradientFromColor:re,controlHeight:Be,controlHeightLG:H,controlHeightSM:ie}=d;return{[`${C}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:re},M(Be)),[`${C}${C}-circle`]:{borderRadius:"50%"},[`${C}${C}-lg`]:Object.assign({},M(H)),[`${C}${C}-sm`]:Object.assign({},M(ie))}},ee=d=>{const{controlHeight:C,borderRadiusSM:re,skeletonInputCls:Be,controlHeightLG:H,controlHeightSM:ie,gradientFromColor:Qe}=d;return{[`${Be}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qe,borderRadius:re},T(C)),[`${Be}-lg`]:Object.assign({},T(H)),[`${Be}-sm`]:Object.assign({},T(ie))}},R=d=>Object.assign({width:d},E(d)),le=d=>{const{skeletonImageCls:C,imageSizeBase:re,gradientFromColor:Be,borderRadiusSM:H}=d;return{[`${C}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Be,borderRadius:H},R(re*2)),{[`${C}-path`]:{fill:"#bfbfbf"},[`${C}-svg`]:Object.assign(Object.assign({},R(re)),{maxWidth:re*4,maxHeight:re*4}),[`${C}-svg${C}-svg-circle`]:{borderRadius:"50%"}}),[`${C}${C}-circle`]:{borderRadius:"50%"}}},X=(d,C,re)=>{const{skeletonButtonCls:Be}=d;return{[`${re}${Be}-circle`]:{width:C,minWidth:C,borderRadius:"50%"},[`${re}${Be}-round`]:{borderRadius:C}}},q=d=>Object.assign({width:d*2,minWidth:d*2},E(d)),W=d=>{const{borderRadiusSM:C,skeletonButtonCls:re,controlHeight:Be,controlHeightLG:H,controlHeightSM:ie,gradientFromColor:Qe}=d;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${re}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qe,borderRadius:C,width:Be*2,minWidth:Be*2},q(Be))},X(d,Be,re)),{[`${re}-lg`]:Object.assign({},q(H))}),X(d,H,`${re}-lg`)),{[`${re}-sm`]:Object.assign({},q(ie))}),X(d,ie,`${re}-sm`))},K=d=>{const{componentCls:C,skeletonAvatarCls:re,skeletonTitleCls:Be,skeletonParagraphCls:H,skeletonButtonCls:ie,skeletonInputCls:Qe,skeletonImageCls:xe,controlHeight:ye,controlHeightLG:je,controlHeightSM:xt,gradientFromColor:he,padding:st,marginSM:Ye,borderRadius:Ie,titleHeight:Le,blockRadius:ct,paragraphLiHeight:Ut,controlHeightXS:kt,paragraphMarginTop:tr}=d;return{[`${C}`]:{display:"table",width:"100%",[`${C}-header`]:{display:"table-cell",paddingInlineEnd:st,verticalAlign:"top",[`${re}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:he},M(ye)),[`${re}-circle`]:{borderRadius:"50%"},[`${re}-lg`]:Object.assign({},M(je)),[`${re}-sm`]:Object.assign({},M(xt))},[`${C}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Be}`]:{width:"100%",height:Le,background:he,borderRadius:ct,[`+ ${H}`]:{marginBlockStart:xt}},[`${H}`]:{padding:0,"> li":{width:"100%",height:Ut,listStyle:"none",background:he,borderRadius:ct,"+ li":{marginBlockStart:kt}}},[`${H}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${C}-content`]:{[`${Be}, ${H} > li`]:{borderRadius:Ie}}},[`${C}-with-avatar ${C}-content`]:{[`${Be}`]:{marginBlockStart:Ye,[`+ ${H}`]:{marginBlockStart:tr}}},[`${C}${C}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},W(d)),L(d)),ee(d)),le(d)),[`${C}${C}-block`]:{width:"100%",[`${ie}`]:{width:"100%"},[`${Qe}`]:{width:"100%"}},[`${C}${C}-active`]:{[`
${Be},
${H} > li,
${re},
${ie},
${Qe},
${xe}
`]:Object.assign({},N(d))}}};var se=(0,I.Z)("Skeleton",d=>{const{componentCls:C}=d,re=(0,v.TS)(d,{skeletonAvatarCls:`${C}-avatar`,skeletonTitleCls:`${C}-title`,skeletonParagraphCls:`${C}-paragraph`,skeletonButtonCls:`${C}-button`,skeletonInputCls:`${C}-input`,skeletonImageCls:`${C}-image`,imageSizeBase:d.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${d.gradientFromColor} 25%, ${d.gradientToColor} 37%, ${d.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[K(re)]},d=>{const{colorFillContent:C,colorFill:re}=d,Be=C,H=re;return{color:Be,colorGradientEnd:H,gradientFromColor:Be,gradientToColor:H,titleHeight:d.controlHeight/2,blockRadius:d.borderRadiusSM,paragraphMarginTop:d.marginLG+d.marginXXS,paragraphLiHeight:d.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Oe=d=>{const{prefixCls:C,className:re,rootClassName:Be,active:H,shape:ie="circle",size:Qe="default"}=d,{getPrefixCls:xe}=P.useContext(De.E_),ye=xe("skeleton",C),[je,xt]=se(ye),he=(0,te.Z)(d,["prefixCls","className"]),st=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:H},re,Be,xt);return je(P.createElement("div",{className:st},P.createElement(S,Object.assign({prefixCls:`${ye}-avatar`,shape:ie,size:Qe},he))))},Ue=d=>{const{prefixCls:C,className:re,rootClassName:Be,active:H,block:ie=!1,size:Qe="default"}=d,{getPrefixCls:xe}=P.useContext(De.E_),ye=xe("skeleton",C),[je,xt]=se(ye),he=(0,te.Z)(d,["prefixCls"]),st=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:H,[`${ye}-block`]:ie},re,Be,xt);return je(P.createElement("div",{className:st},P.createElement(S,Object.assign({prefixCls:`${ye}-button`,size:Qe},he))))};const J="M365.714286 329.142857q0 45.714286-32.036571 77.677714t-77.677714 32.036571-77.677714-32.036571-32.036571-77.677714 32.036571-77.677714 77.677714-32.036571 77.677714 32.036571 32.036571 77.677714zM950.857143 548.571429l0 256-804.571429 0 0-109.714286 182.857143-182.857143 91.428571 91.428571 292.571429-292.571429zM1005.714286 146.285714l-914.285714 0q-7.460571 0-12.873143 5.412571t-5.412571 12.873143l0 694.857143q0 7.460571 5.412571 12.873143t12.873143 5.412571l914.285714 0q7.460571 0 12.873143-5.412571t5.412571-12.873143l0-694.857143q0-7.460571-5.412571-12.873143t-12.873143-5.412571zM1097.142857 164.571429l0 694.857143q0 37.741714-26.843429 64.585143t-64.585143 26.843429l-914.285714 0q-37.741714 0-64.585143-26.843429t-26.843429-64.585143l0-694.857143q0-37.741714 26.843429-64.585143t64.585143-26.843429l914.285714 0q37.741714 0 64.585143 26.843429t26.843429 64.585143z";var D=d=>{const{prefixCls:C,className:re,rootClassName:Be,style:H,active:ie}=d,{getPrefixCls:Qe}=P.useContext(De.E_),xe=Qe("skeleton",C),[ye,je]=se(xe),xt=Ae()(xe,`${xe}-element`,{[`${xe}-active`]:ie},re,Be,je);return ye(P.createElement("div",{className:xt},P.createElement("div",{className:Ae()(`${xe}-image`,re),style:H},P.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${xe}-image-svg`},P.createElement("path",{d:J,className:`${xe}-image-path`})))))},Me=d=>{const{prefixCls:C,className:re,rootClassName:Be,active:H,block:ie,size:Qe="default"}=d,{getPrefixCls:xe}=P.useContext(De.E_),ye=xe("skeleton",C),[je,xt]=se(ye),he=(0,te.Z)(d,["prefixCls"]),st=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:H,[`${ye}-block`]:ie},re,Be,xt);return je(P.createElement("div",{className:st},P.createElement(S,Object.assign({prefixCls:`${ye}-input`,size:Qe},he))))},we=x(54476),Te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ve=Te,Fe=x(7657),de=function(C,re){return P.createElement(Fe.Z,(0,we.Z)({},C,{ref:re,icon:ve}))},Ee=P.forwardRef(de),tt=Ee,Je=d=>{const{prefixCls:C,className:re,rootClassName:Be,style:H,active:ie,children:Qe}=d,{getPrefixCls:xe}=P.useContext(De.E_),ye=xe("skeleton",C),[je,xt]=se(ye),he=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:ie},xt,re,Be),st=Qe!=null?Qe:P.createElement(tt,null);return je(P.createElement("div",{className:he},P.createElement("div",{className:Ae()(`${ye}-image`,re),style:H},st)))},et=x(94480),Lt=d=>{const C=xe=>{const{width:ye,rows:je=2}=d;if(Array.isArray(ye))return ye[xe];if(je-1===xe)return ye},{prefixCls:re,className:Be,style:H,rows:ie}=d,Qe=(0,et.Z)(Array(ie)).map((xe,ye)=>P.createElement("li",{key:ye,style:{width:C(ye)}}));return P.createElement("ul",{className:Ae()(re,Be),style:H},Qe)},ur=d=>{let{prefixCls:C,className:re,width:Be,style:H}=d;return P.createElement("h3",{className:Ae()(C,re),style:Object.assign({width:Be},H)})};function ar(d){return d&&typeof d=="object"?d:{}}function Cr(d,C){return d&&!C?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function sr(d,C){return!d&&C?{width:"38%"}:d&&C?{width:"50%"}:{}}function G(d,C){const re={};return(!d||!C)&&(re.width="61%"),!d&&C?re.rows=3:re.rows=2,re}const ft=d=>{const{prefixCls:C,loading:re,className:Be,rootClassName:H,style:ie,children:Qe,avatar:xe=!1,title:ye=!0,paragraph:je=!0,active:xt,round:he}=d,{getPrefixCls:st,direction:Ye,skeleton:Ie}=P.useContext(De.E_),Le=st("skeleton",C),[ct,Ut]=se(Le);if(re||!("loading"in d)){const kt=!!xe,tr=!!ye,Dr=!!je;let fr;if(kt){const mr=Object.assign(Object.assign({prefixCls:`${Le}-avatar`},Cr(tr,Dr)),ar(xe));fr=P.createElement("div",{className:`${Le}-header`},P.createElement(S,Object.assign({},mr)))}let Fr;if(tr||Dr){let mr;if(tr){const Kr=Object.assign(Object.assign({prefixCls:`${Le}-title`},sr(kt,Dr)),ar(ye));mr=P.createElement(ur,Object.assign({},Kr))}let cr;if(Dr){const Kr=Object.assign(Object.assign({prefixCls:`${Le}-paragraph`},G(kt,tr)),ar(je));cr=P.createElement(Lt,Object.assign({},Kr))}Fr=P.createElement("div",{className:`${Le}-content`},mr,cr)}const Lr=Ae()(Le,{[`${Le}-with-avatar`]:kt,[`${Le}-active`]:xt,[`${Le}-rtl`]:Ye==="rtl",[`${Le}-round`]:he},Ie==null?void 0:Ie.className,Be,H,Ut);return ct(P.createElement("div",{className:Lr,style:Object.assign(Object.assign({},Ie==null?void 0:Ie.style),ie)},fr,Fr))}return typeof Qe!="undefined"?Qe:null};ft.Button=Ue,ft.Avatar=Oe,ft.Input=Me,ft.Image=D,ft.Node=Je;var F=ft,m=F},81327:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return ee}});var me=x(59301),Ae=x(92310),P=x.n(Ae),De=x(11592),te=x(36355),V=x(33234);const S=me.createContext({latestIndex:0}),g=S.Provider;var v=R=>{let{className:le,index:X,children:q,split:W,style:K}=R;const{latestIndex:se}=me.useContext(S);return q==null?null:me.createElement(me.Fragment,null,me.createElement("div",{className:le,style:K},q),X<se&&W&&me.createElement("span",{className:`${le}-split`},W))},z=x(2856);function E(R){return["small","middle","large"].includes(R)}function M(R){return R?typeof R=="number"&&!Number.isNaN(R):!1}var N=function(R,le){var X={};for(var q in R)Object.prototype.hasOwnProperty.call(R,q)&&le.indexOf(q)<0&&(X[q]=R[q]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,q=Object.getOwnPropertySymbols(R);W<q.length;W++)le.indexOf(q[W])<0&&Object.prototype.propertyIsEnumerable.call(R,q[W])&&(X[q[W]]=R[q[W]]);return X};const L=me.forwardRef((R,le)=>{var X,q;const{getPrefixCls:W,space:K,direction:se}=me.useContext(te.E_),{size:fe=(K==null?void 0:K.size)||"small",align:Oe,className:Se,rootClassName:Ue,children:J,direction:ue="horizontal",prefixCls:D,split:Ve,style:Me,wrap:we=!1,classNames:Te,styles:ve}=R,Fe=N(R,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[de,Ee]=Array.isArray(fe)?fe:[fe,fe],tt=E(Ee),it=E(de),Je=M(Ee),et=M(de),Bt=(0,De.Z)(J,{keepEmpty:!0}),Lt=Oe===void 0&&ue==="horizontal"?"center":Oe,Nt=W("space",D),[ur,ar]=(0,z.Z)(Nt),Cr=P()(Nt,K==null?void 0:K.className,ar,`${Nt}-${ue}`,{[`${Nt}-rtl`]:se==="rtl",[`${Nt}-align-${Lt}`]:Lt,[`${Nt}-gap-row-${Ee}`]:tt,[`${Nt}-gap-col-${de}`]:it},Se,Ue),sr=P()(`${Nt}-item`,(X=Te==null?void 0:Te.item)!==null&&X!==void 0?X:(q=K==null?void 0:K.classNames)===null||q===void 0?void 0:q.item);let G=0;const ft=Bt.map((d,C)=>{var re,Be;d!=null&&(G=C);const H=d&&d.key||`${sr}-${C}`;return me.createElement(v,{className:sr,key:H,index:C,split:Ve,style:(re=ve==null?void 0:ve.item)!==null&&re!==void 0?re:(Be=K==null?void 0:K.styles)===null||Be===void 0?void 0:Be.item},d)}),F=me.useMemo(()=>({latestIndex:G}),[G]);if(Bt.length===0)return null;const m={};return we&&(m.flexWrap="wrap"),!it&&et&&(m.columnGap=de),!tt&&Je&&(m.rowGap=Ee),ur(me.createElement("div",Object.assign({ref:le,className:Cr,style:Object.assign(Object.assign(Object.assign({},m),K==null?void 0:K.style),Me)},Fe),me.createElement(g,{value:F},ft)))});L.Compact=V.ZP;var ee=L},8378:function(un,Tt){"use strict";const x=me=>({[me.componentCls]:{[`${me.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${me.motionDurationMid} ${me.motionEaseInOut},
opacity ${me.motionDurationMid} ${me.motionEaseInOut} !important`}},[`${me.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${me.motionDurationMid} ${me.motionEaseInOut},
opacity ${me.motionDurationMid} ${me.motionEaseInOut} !important`}}});Tt.Z=x},92899:function(un,Tt,x){"use strict";x.d(Tt,{Fm:function(){return E}});var me=x(36237),Ae=x(95406);const P=new me.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),De=new me.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),te=new me.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),V=new me.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),S=new me.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new me.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),I=new me.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),v=new me.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),z={"move-up":{inKeyframes:I,outKeyframes:v},"move-down":{inKeyframes:P,outKeyframes:De},"move-left":{inKeyframes:te,outKeyframes:V},"move-right":{inKeyframes:S,outKeyframes:g}},E=(M,N)=>{const{antCls:T}=M,L=`${T}-${N}`,{inKeyframes:ee,outKeyframes:R}=z[N];return[(0,Ae.R)(L,ee,R,M.motionDurationMid),{[`
${L}-enter,
${L}-appear
`]:{opacity:0,animationTimingFunction:M.motionEaseOutCirc},[`${L}-leave`]:{animationTimingFunction:M.motionEaseInOutCirc}}]}},13826:function(un,Tt,x){"use strict";x.d(Tt,{Qt:function(){return te},Uw:function(){return De},fJ:function(){return P},ly:function(){return V},oN:function(){return E}});var me=x(36237),Ae=x(95406);const P=new me.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),De=new me.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),te=new me.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),V=new me.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),S=new me.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),g=new me.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),I=new me.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),v=new me.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),z={"slide-up":{inKeyframes:P,outKeyframes:De},"slide-down":{inKeyframes:te,outKeyframes:V},"slide-left":{inKeyframes:S,outKeyframes:g},"slide-right":{inKeyframes:I,outKeyframes:v}},E=(M,N)=>{const{antCls:T}=M,L=`${T}-${N}`,{inKeyframes:ee,outKeyframes:R}=z[N];return[(0,Ae.R)(L,ee,R,M.motionDurationMid),{[`
${L}-enter,
${L}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:M.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${L}-leave`]:{animationTimingFunction:M.motionEaseInQuint}}]}},15969:function(un,Tt,x){"use strict";x.d(Tt,{N:function(){return me}});const me=Ae=>({color:Ae.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Ae.motionDurationSlow}`,"&:focus, &:hover":{color:Ae.colorLinkHover},"&:active":{color:Ae.colorLinkActive}})},1710:function(un,Tt,x){"use strict";x.d(Tt,{default:function(){return B0}});var me={},Ae="rc-table-internal-hook",P=x(42978),De=x(6089),te=x(34280),V=x(13697),S=x(59301),g=x(4676);function I(pe){var Ce=S.createContext(void 0),Ge=function(Ct){var vt=Ct.value,$t=Ct.children,zt=S.useRef(vt);zt.current=vt;var Qt=S.useState(function(){return{getValue:function(){return zt.current},listeners:new Set}}),dr=(0,P.Z)(Qt,1),Ir=dr[0];return(0,te.Z)(function(){(0,g.unstable_batchedUpdates)(function(){Ir.listeners.forEach(function(gr){gr(vt)})})},[vt]),S.createElement(Ce.Provider,{value:Ir},$t)};return{Context:Ce,Provider:Ge,defaultValue:pe}}function v(pe,Ce){var Ge=(0,De.Z)(typeof Ce=="function"?Ce:function(gr){if(Ce===void 0)return gr;if(!Array.isArray(Ce))return gr[Ce];var tn={};return Ce.forEach(function(Vr){tn[Vr]=gr[Vr]}),tn}),lt=S.useContext(pe==null?void 0:pe.Context),Ct=lt||{},vt=Ct.listeners,$t=Ct.getValue,zt=S.useRef();zt.current=Ge(lt?$t():pe==null?void 0:pe.defaultValue);var Qt=S.useState({}),dr=(0,P.Z)(Qt,2),Ir=dr[1];return(0,te.Z)(function(){if(!lt)return;function gr(tn){var Vr=Ge(tn);(0,V.Z)(zt.current,Vr,!0)||Ir({})}return vt.add(gr),function(){vt.delete(gr)}},[lt]),zt.current}var z=x(54476),E=x(8654);function M(){var pe=S.createContext(null);function Ce(){return S.useContext(pe)}function Ge(Ct,vt){var $t=(0,E.Yr)(Ct),zt=function(dr,Ir){var gr=$t?{ref:Ir}:{},tn=S.useRef(0),Vr=S.useRef(dr),Yr=Ce();return Yr!==null?S.createElement(Ct,(0,z.Z)({},dr,gr)):((!vt||vt(Vr.current,dr))&&(tn.current+=1),Vr.current=dr,S.createElement(pe.Provider,{value:tn.current},S.createElement(Ct,(0,z.Z)({},dr,gr))))};return $t?S.forwardRef(zt):zt}function lt(Ct,vt){var $t=(0,E.Yr)(Ct),zt=function(dr,Ir){var gr=$t?{ref:Ir}:{};return Ce(),S.createElement(Ct,(0,z.Z)({},dr,gr))};return $t?S.memo(S.forwardRef(zt),vt):S.memo(zt,vt)}return{makeImmutable:Ge,responseImmutable:lt,useImmutableMark:Ce}}var N=M(),T=N.makeImmutable,L=N.responseImmutable,ee=N.useImmutableMark,R=M(),le=R.makeImmutable,X=R.responseImmutable,q=R.useImmutableMark,W=I(),K=W;function se(pe,Ce){var Ge=S.useRef(0);Ge.current+=1;var lt=S.useRef(pe),Ct=[];Object.keys(pe||{}).map(function($t){var zt;(pe==null?void 0:pe[$t])!==((zt=lt.current)===null||zt===void 0?void 0:zt[$t])&&Ct.push($t)}),lt.current=pe;var vt=S.useRef([]);return Ct.length&&(vt.current=Ct),S.useDebugValue(Ge.current),S.useDebugValue(vt.current.join(", ")),Ce&&console.log("".concat(Ce,":"),Ge.current,vt.current),Ge.current}var fe=null,Oe=S.memo(function(){var pe=se();return S.createElement("h1",null,"Render Times: ",pe)});Oe.displayName="RenderBlock";var Se=x(76190),Ue=x(33885),J=x(20068),ue=x(92310),D=x.n(ue),Ve=x(80547),Me=x(97938),we=x(48736),Te=S.createContext({renderWithProps:!1}),ve=Te,Fe="RC_TABLE_KEY";function de(pe){return pe==null?[]:Array.isArray(pe)?pe:[pe]}function Ee(pe){var Ce=[],Ge={};return pe.forEach(function(lt){for(var Ct=lt||{},vt=Ct.key,$t=Ct.dataIndex,zt=vt||de($t).join("-")||Fe;Ge[zt];)zt="".concat(zt,"_next");Ge[zt]=!0,Ce.push(zt)}),Ce}function tt(pe){return pe!=null}function it(pe){return pe&&(0,Se.Z)(pe)==="object"&&!Array.isArray(pe)&&!S.isValidElement(pe)}function Je(pe,Ce,Ge,lt,Ct,vt){var $t=S.useContext(ve),zt=q(),Qt=(0,Ve.Z)(function(){if(tt(lt))return[lt];var dr=Ce==null||Ce===""?[]:Array.isArray(Ce)?Ce:[Ce],Ir=(0,Me.Z)(pe,dr),gr=Ir,tn=void 0;if(Ct){var Vr=Ct(Ir,pe,Ge);it(Vr)?(gr=Vr.children,tn=Vr.props,$t.renderWithProps=!0):gr=Vr}return[gr,tn]},[zt,pe,lt,Ce,Ct,Ge],function(dr,Ir){if(vt){var gr=(0,P.Z)(dr,2),tn=gr[1],Vr=(0,P.Z)(Ir,2),Yr=Vr[1];return vt(Yr,tn)}return $t.renderWithProps?!0:!(0,V.Z)(dr,Ir,!0)});return Qt}function et(pe,Ce,Ge,lt){var Ct=pe+Ce-1;return pe<=lt&&Ct>=Ge}function Bt(pe,Ce){return v(K,function(Ge){var lt=et(pe,Ce||1,Ge.hoverStartRow,Ge.hoverEndRow);return[lt,Ge.onHover]})}var Lt=function(Ce){var Ge=Ce.ellipsis,lt=Ce.rowType,Ct=Ce.children,vt,$t=Ge===!0?{showTitle:!0}:Ge;return $t&&($t.showTitle||lt==="header")&&(typeof Ct=="string"||typeof Ct=="number"?vt=Ct.toString():S.isValidElement(Ct)&&typeof Ct.props.children=="string"&&(vt=Ct.props.children)),vt};function Nt(pe){var Ce,Ge,lt,Ct,vt,$t,zt,Qt,dr=pe.component,Ir=pe.children,gr=pe.ellipsis,tn=pe.scope,Vr=pe.prefixCls,Yr=pe.className,Pn=pe.align,Cn=pe.record,Ln=pe.render,Sn=pe.dataIndex,zn=pe.renderIndex,Pi=pe.shouldCellUpdate,Ri=pe.index,hi=pe.rowType,ea=pe.colSpan,wa=pe.rowSpan,Jn=pe.fixLeft,vi=pe.fixRight,ni=pe.firstFixLeft,Tn=pe.lastFixLeft,ii=pe.firstFixRight,Hi=pe.lastFixRight,Oa=pe.appendNode,pa=pe.additionalProps,ji=pa===void 0?{}:pa,_a=pe.isSticky,Qa="".concat(Vr,"-cell"),Yo=v(K,["supportSticky","allColumnsFixedLeft"]),so=Yo.supportSticky,vs=Yo.allColumnsFixedLeft,cs=Je(Cn,Sn,zn,Ir,Ln,Pi),ma=(0,P.Z)(cs,2),al=ma[0],po=ma[1],qo={},rs=typeof Jn=="number"&&so,xc=typeof vi=="number"&&so;rs&&(qo.position="sticky",qo.left=Jn),xc&&(qo.position="sticky",qo.right=vi);var ai=(Ce=(Ge=(lt=po==null?void 0:po.colSpan)!==null&&lt!==void 0?lt:ji.colSpan)!==null&&Ge!==void 0?Ge:ea)!==null&&Ce!==void 0?Ce:1,zi=(Ct=(vt=($t=po==null?void 0:po.rowSpan)!==null&&$t!==void 0?$t:ji.rowSpan)!==null&&vt!==void 0?vt:wa)!==null&&Ct!==void 0?Ct:1,Qi=Bt(Ri,zi),ki=(0,P.Z)(Qi,2),go=ki[0],Di=ki[1],ca=function(Hn){var dc;Cn&&Di(Ri,Ri+zi-1),ji==null||(dc=ji.onMouseEnter)===null||dc===void 0||dc.call(ji,Hn)},ja=function(Hn){var dc;Cn&&Di(-1,-1),ji==null||(dc=ji.onMouseLeave)===null||dc===void 0||dc.call(ji,Hn)};if(ai===0||zi===0)return null;var $a=(zt=ji.title)!==null&&zt!==void 0?zt:Lt({rowType:hi,ellipsis:gr,children:al}),Ml=D()(Qa,Yr,(Qt={},(0,J.Z)(Qt,"".concat(Qa,"-fix-left"),rs&&so),(0,J.Z)(Qt,"".concat(Qa,"-fix-left-first"),ni&&so),(0,J.Z)(Qt,"".concat(Qa,"-fix-left-last"),Tn&&so),(0,J.Z)(Qt,"".concat(Qa,"-fix-left-all"),Tn&&vs&&so),(0,J.Z)(Qt,"".concat(Qa,"-fix-right"),xc&&so),(0,J.Z)(Qt,"".concat(Qa,"-fix-right-first"),ii&&so),(0,J.Z)(Qt,"".concat(Qa,"-fix-right-last"),Hi&&so),(0,J.Z)(Qt,"".concat(Qa,"-ellipsis"),gr),(0,J.Z)(Qt,"".concat(Qa,"-with-append"),Oa),(0,J.Z)(Qt,"".concat(Qa,"-fix-sticky"),(rs||xc)&&_a&&so),(0,J.Z)(Qt,"".concat(Qa,"-row-hover"),!po&&go),Qt),ji.className,po==null?void 0:po.className),nl={};Pn&&(nl.textAlign=Pn);var Gc=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},qo),ji.style),nl),po==null?void 0:po.style),Us=al;return(0,Se.Z)(Us)==="object"&&!Array.isArray(Us)&&!S.isValidElement(Us)&&(Us=null),gr&&(Tn||ii)&&(Us=S.createElement("span",{className:"".concat(Qa,"-content")},Us)),S.createElement(dr,(0,z.Z)({},po,ji,{className:Ml,style:Gc,title:$a,scope:tn,onMouseEnter:ca,onMouseLeave:ja,colSpan:ai!==1?ai:null,rowSpan:zi!==1?zi:null}),Oa,Us)}var ur=S.memo(Nt);function ar(pe,Ce,Ge,lt,Ct,vt){var $t=Ge[pe]||{},zt=Ge[Ce]||{},Qt,dr;$t.fixed==="left"?Qt=lt.left[Ct==="rtl"?Ce:pe]:zt.fixed==="right"&&(dr=lt.right[Ct==="rtl"?pe:Ce]);var Ir=!1,gr=!1,tn=!1,Vr=!1,Yr=Ge[Ce+1],Pn=Ge[pe-1],Cn=!(vt!=null&&vt.children);if(Ct==="rtl"){if(Qt!==void 0){var Ln=Pn&&Pn.fixed==="left";Vr=!Ln&&Cn}else if(dr!==void 0){var Sn=Yr&&Yr.fixed==="right";tn=!Sn&&Cn}}else if(Qt!==void 0){var zn=Yr&&Yr.fixed==="left";Ir=!zn&&Cn}else if(dr!==void 0){var Pi=Pn&&Pn.fixed==="right";gr=!Pi&&Cn}return{fixLeft:Qt,fixRight:dr,lastFixLeft:Ir,firstFixRight:gr,lastFixRight:tn,firstFixLeft:Vr,isSticky:lt.isSticky}}var Cr=S.createContext({}),sr=Cr;function G(pe){var Ce=pe.className,Ge=pe.index,lt=pe.children,Ct=pe.colSpan,vt=Ct===void 0?1:Ct,$t=pe.rowSpan,zt=pe.align,Qt=v(K,["prefixCls","direction"]),dr=Qt.prefixCls,Ir=Qt.direction,gr=S.useContext(sr),tn=gr.scrollColumnIndex,Vr=gr.stickyOffsets,Yr=gr.flattenColumns,Pn=gr.columns,Cn=Ge+vt-1,Ln=Cn+1===tn?vt+1:vt,Sn=ar(Ge,Ge+Ln-1,Yr,Vr,Ir,Pn==null?void 0:Pn[Ge]);return S.createElement(ur,(0,z.Z)({className:Ce,index:Ge,component:"td",prefixCls:dr,record:null,dataIndex:null,align:zt,colSpan:Ln,rowSpan:$t,render:function(){return lt}},Sn))}var ft=x(75931),F=["children"];function m(pe){var Ce=pe.children,Ge=(0,ft.Z)(pe,F);return S.createElement("tr",Ge,Ce)}function d(pe){var Ce=pe.children;return Ce}d.Row=m,d.Cell=G;var C=d;function re(pe){var Ce=pe.children,Ge=pe.stickyOffsets,lt=pe.flattenColumns,Ct=pe.columns,vt=v(K,"prefixCls"),$t=lt.length-1,zt=lt[$t],Qt=S.useMemo(function(){return{stickyOffsets:Ge,flattenColumns:lt,scrollColumnIndex:zt!=null&&zt.scrollbar?$t:null,columns:Ct}},[zt,lt,$t,Ge,Ct]);return S.createElement(sr.Provider,{value:Qt},S.createElement("tfoot",{className:"".concat(vt,"-summary")},Ce))}var Be=X(re),H=C,ie=x(70425),Qe=x(29301),xe=x(29194),ye=x(3465),je=x(75152),xt=x(26112);function he(pe,Ce,Ge,lt,Ct,vt,$t){pe.push({record:Ce,indent:Ge,index:$t});var zt=vt(Ce),Qt=Ct==null?void 0:Ct.has(zt);if(Ce&&Array.isArray(Ce[lt])&&Qt)for(var dr=0;dr<Ce[lt].length;dr+=1)he(pe,Ce[lt][dr],Ge+1,lt,Ct,vt,dr)}function st(pe,Ce,Ge,lt){var Ct=S.useMemo(function(){if(Ge!=null&&Ge.size){for(var vt=[],$t=0;$t<(pe==null?void 0:pe.length);$t+=1){var zt=pe[$t];he(vt,zt,0,Ce,Ge,lt,$t)}return vt}return pe==null?void 0:pe.map(function(Qt,dr){return{record:Qt,indent:0,index:dr}})},[pe,Ce,Ge,lt]);return Ct}function Ye(pe){var Ce=pe.prefixCls,Ge=pe.children,lt=pe.component,Ct=pe.cellComponent,vt=pe.className,$t=pe.expanded,zt=pe.colSpan,Qt=pe.isEmpty,dr=v(K,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ir=dr.scrollbarSize,gr=dr.fixHeader,tn=dr.fixColumn,Vr=dr.componentWidth,Yr=dr.horizonScroll,Pn=Ge;return(Qt?Yr&&Vr:tn)&&(Pn=S.createElement("div",{style:{width:Vr-(gr?Ir:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ce,"-expanded-row-fixed")},Pn)),S.createElement(lt,{className:vt,style:{display:$t?null:"none"}},S.createElement(ur,{component:Ct,prefixCls:Ce,colSpan:zt},Pn))}var Ie=Ye;function Le(pe,Ce,Ge,lt){var Ct=v(K,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),vt=Ct.flattenColumns,$t=Ct.expandableType,zt=Ct.expandedKeys,Qt=Ct.childrenColumnName,dr=Ct.onTriggerExpand,Ir=Ct.rowExpandable,gr=Ct.onRow,tn=Ct.expandRowByClick,Vr=Ct.rowClassName,Yr=$t==="nest",Pn=$t==="row"&&(!Ir||Ir(pe)),Cn=Pn||Yr,Ln=zt&&zt.has(Ce),Sn=Qt&&pe&&pe[Qt],zn=(0,ie.useEvent)(dr),Pi=gr==null?void 0:gr(pe,Ge),Ri=Pi==null?void 0:Pi.onClick,hi=function(vi){tn&&Cn&&dr(pe,vi);for(var ni=arguments.length,Tn=new Array(ni>1?ni-1:0),ii=1;ii<ni;ii++)Tn[ii-1]=arguments[ii];Ri==null||Ri.apply(void 0,[vi].concat(Tn))},ea;typeof Vr=="string"?ea=Vr:typeof Vr=="function"&&(ea=Vr(pe,Ge,lt));var wa=Ee(vt);return(0,Ue.Z)((0,Ue.Z)({},Ct),{},{columnsKey:wa,nestExpandable:Yr,expanded:Ln,hasNestChildren:Sn,record:pe,onTriggerExpand:zn,rowSupportExpand:Pn,expandable:Cn,rowProps:(0,Ue.Z)((0,Ue.Z)({},Pi),{},{className:D()(ea,Pi==null?void 0:Pi.className),onClick:hi})})}function ct(pe,Ce,Ge,lt,Ct){var vt=pe.record,$t=pe.prefixCls,zt=pe.columnsKey,Qt=pe.fixedInfoList,dr=pe.expandIconColumnIndex,Ir=pe.nestExpandable,gr=pe.indentSize,tn=pe.expandIcon,Vr=pe.expanded,Yr=pe.hasNestChildren,Pn=pe.onTriggerExpand,Cn=zt[Ge],Ln=Qt[Ge],Sn;Ge===(dr||0)&&Ir&&(Sn=S.createElement(S.Fragment,null,S.createElement("span",{style:{paddingLeft:"".concat(gr*lt,"px")},className:"".concat($t,"-row-indent indent-level-").concat(lt)}),tn({prefixCls:$t,expanded:Vr,expandable:Yr,record:vt,onExpand:Pn})));var zn;return Ce.onCell&&(zn=Ce.onCell(vt,Ct)),{key:Cn,fixedInfo:Ln,appendCellNode:Sn,additionalCellProps:zn||{}}}function Ut(pe){var Ce=pe.className,Ge=pe.style,lt=pe.record,Ct=pe.index,vt=pe.renderIndex,$t=pe.rowKey,zt=pe.indent,Qt=zt===void 0?0:zt,dr=pe.rowComponent,Ir=pe.cellComponent,gr=pe.scopeCellComponent,tn=Le(lt,$t,Ct,Qt),Vr=tn.prefixCls,Yr=tn.flattenColumns,Pn=tn.expandedRowClassName,Cn=tn.expandedRowRender,Ln=tn.rowProps,Sn=tn.expanded,zn=tn.rowSupportExpand,Pi=S.useState(!1),Ri=(0,P.Z)(Pi,2),hi=Ri[0],ea=Ri[1];S.useEffect(function(){Sn&&ea(!0)},[Sn]);var wa=S.createElement(dr,(0,z.Z)({},Ln,{"data-row-key":$t,className:D()(Ce,"".concat(Vr,"-row"),"".concat(Vr,"-row-level-").concat(Qt),Ln==null?void 0:Ln.className),style:(0,Ue.Z)((0,Ue.Z)({},Ge),Ln==null?void 0:Ln.style)}),Yr.map(function(Tn,ii){var Hi=Tn.render,Oa=Tn.dataIndex,pa=Tn.className,ji=ct(tn,Tn,ii,Qt,Ct),_a=ji.key,Qa=ji.fixedInfo,Yo=ji.appendCellNode,so=ji.additionalCellProps;return S.createElement(ur,(0,z.Z)({className:pa,ellipsis:Tn.ellipsis,align:Tn.align,scope:Tn.rowScope,component:Tn.rowScope?gr:Ir,prefixCls:Vr,key:_a,record:lt,index:Ct,renderIndex:vt,dataIndex:Oa,render:Hi,shouldCellUpdate:Tn.shouldCellUpdate},Qa,{appendNode:Yo,additionalProps:so}))})),Jn;if(zn&&(hi||Sn)){var vi=Cn(lt,Ct,Qt+1,Sn),ni=Pn&&Pn(lt,Ct,Qt);Jn=S.createElement(Ie,{expanded:Sn,className:D()("".concat(Vr,"-expanded-row"),"".concat(Vr,"-expanded-row-level-").concat(Qt+1),ni),prefixCls:Vr,component:dr,cellComponent:Ir,colSpan:Yr.length,isEmpty:!1},vi)}return S.createElement(S.Fragment,null,wa,Jn)}Ut.displayName="BodyRow";var kt=X(Ut);function tr(pe){var Ce=pe.columnKey,Ge=pe.onColumnResize,lt=S.useRef();return S.useEffect(function(){lt.current&&Ge(Ce,lt.current.offsetWidth)},[]),S.createElement(Qe.Z,{data:Ce},S.createElement("td",{ref:lt,style:{padding:0,border:0,height:0}},S.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Dr(pe){var Ce=pe.prefixCls,Ge=pe.columnsKey,lt=pe.onColumnResize;return S.createElement("tr",{"aria-hidden":"true",className:"".concat(Ce,"-measure-row"),style:{height:0,fontSize:0}},S.createElement(Qe.Z.Collection,{onBatchResize:function(vt){vt.forEach(function($t){var zt=$t.data,Qt=$t.size;lt(zt,Qt.offsetWidth)})}},Ge.map(function(Ct){return S.createElement(tr,{key:Ct,columnKey:Ct,onColumnResize:lt})})))}function fr(pe){var Ce=pe.data,Ge=pe.measureColumnWidth,lt=v(K,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ct=lt.prefixCls,vt=lt.getComponent,$t=lt.onColumnResize,zt=lt.flattenColumns,Qt=lt.getRowKey,dr=lt.expandedKeys,Ir=lt.childrenColumnName,gr=lt.emptyNode,tn=st(Ce,Ir,dr,Qt),Vr=S.useRef({renderWithProps:!1}),Yr=vt(["body","wrapper"],"tbody"),Pn=vt(["body","row"],"tr"),Cn=vt(["body","cell"],"td"),Ln=vt(["body","cell"],"th"),Sn;Ce.length?Sn=tn.map(function(Pi,Ri){var hi=Pi.record,ea=Pi.indent,wa=Pi.index,Jn=Qt(hi,Ri);return S.createElement(kt,{key:Jn,rowKey:Jn,record:hi,index:Ri,renderIndex:wa,rowComponent:Pn,cellComponent:Cn,scopeCellComponent:Ln,getRowKey:Qt,indent:ea})}):Sn=S.createElement(Ie,{expanded:!0,className:"".concat(Ct,"-placeholder"),prefixCls:Ct,component:Pn,cellComponent:Cn,colSpan:zt.length,isEmpty:!0},gr);var zn=Ee(zt);return S.createElement(ve.Provider,{value:Vr.current},S.createElement(Yr,{className:"".concat(Ct,"-tbody")},Ge&&S.createElement(Dr,{prefixCls:Ct,columnsKey:zn,onColumnResize:$t}),Sn))}fr.displayName="Body";var Fr=X(fr),Lr=["expandable"],mr="RC_TABLE_INTERNAL_COL_DEFINE";function cr(pe){var Ce=pe.expandable,Ge=(0,ft.Z)(pe,Lr),lt;return"expandable"in pe?lt=(0,Ue.Z)((0,Ue.Z)({},Ge),Ce):lt=Ge,lt.showExpandColumn===!1&&(lt.expandIconColumnIndex=-1),lt}var Kr=["columnType"];function fn(pe){for(var Ce=pe.colWidths,Ge=pe.columns,lt=pe.columCount,Ct=[],vt=lt||Ge.length,$t=!1,zt=vt-1;zt>=0;zt-=1){var Qt=Ce[zt],dr=Ge&&Ge[zt],Ir=dr&&dr[mr];if(Qt||Ir||$t){var gr=Ir||{},tn=gr.columnType,Vr=(0,ft.Z)(gr,Kr);Ct.unshift(S.createElement("col",(0,z.Z)({key:zt,style:{width:Qt}},Vr))),$t=!0}}return S.createElement("colgroup",null,Ct)}var _n=fn,ln=x(94480),xn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function oi(pe,Ce){return(0,S.useMemo)(function(){for(var Ge=[],lt=0;lt<Ce;lt+=1){var Ct=pe[lt];if(Ct!==void 0)Ge[lt]=Ct;else return null}return Ge},[pe.join("_"),Ce])}var _r=S.forwardRef(function(pe,Ce){var Ge=pe.className,lt=pe.noData,Ct=pe.columns,vt=pe.flattenColumns,$t=pe.colWidths,zt=pe.columCount,Qt=pe.stickyOffsets,dr=pe.direction,Ir=pe.fixHeader,gr=pe.stickyTopOffset,tn=pe.stickyBottomOffset,Vr=pe.stickyClassName,Yr=pe.onScroll,Pn=pe.maxContentScroll,Cn=pe.children,Ln=(0,ft.Z)(pe,xn),Sn=v(K,["prefixCls","scrollbarSize","isSticky"]),zn=Sn.prefixCls,Pi=Sn.scrollbarSize,Ri=Sn.isSticky,hi=Ri&&!Ir?0:Pi,ea=S.useRef(null),wa=S.useCallback(function(pa){(0,E.mH)(Ce,pa),(0,E.mH)(ea,pa)},[]);S.useEffect(function(){var pa;function ji(_a){var Qa=_a,Yo=Qa.currentTarget,so=Qa.deltaX;so&&(Yr({currentTarget:Yo,scrollLeft:Yo.scrollLeft+so}),_a.preventDefault())}return(pa=ea.current)===null||pa===void 0||pa.addEventListener("wheel",ji),function(){var _a;(_a=ea.current)===null||_a===void 0||_a.removeEventListener("wheel",ji)}},[]);var Jn=S.useMemo(function(){return vt.every(function(pa){return pa.width})},[vt]),vi=vt[vt.length-1],ni={fixed:vi?vi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(zn,"-cell-scrollbar")}}},Tn=(0,S.useMemo)(function(){return hi?[].concat((0,ln.Z)(Ct),[ni]):Ct},[hi,Ct]),ii=(0,S.useMemo)(function(){return hi?[].concat((0,ln.Z)(vt),[ni]):vt},[hi,vt]),Hi=(0,S.useMemo)(function(){var pa=Qt.right,ji=Qt.left;return(0,Ue.Z)((0,Ue.Z)({},Qt),{},{left:dr==="rtl"?[].concat((0,ln.Z)(ji.map(function(_a){return _a+hi})),[0]):ji,right:dr==="rtl"?pa:[].concat((0,ln.Z)(pa.map(function(_a){return _a+hi})),[0]),isSticky:Ri})},[hi,Qt,Ri]),Oa=oi($t,zt);return S.createElement("div",{style:(0,Ue.Z)({overflow:"hidden"},Ri?{top:gr,bottom:tn}:{}),ref:wa,className:D()(Ge,(0,J.Z)({},Vr,!!Vr))},S.createElement("table",{style:{tableLayout:"fixed",visibility:lt||Oa?null:"hidden"}},(!lt||!Pn||Jn)&&S.createElement(_n,{colWidths:Oa?[].concat((0,ln.Z)(Oa),[hi]):[],columCount:zt+1,columns:ii}),Cn((0,Ue.Z)((0,Ue.Z)({},Ln),{},{stickyOffsets:Hi,columns:Tn,flattenColumns:ii}))))});_r.displayName="FixedHolder";var Ai=S.memo(_r);function Oi(pe){var Ce=pe.cells,Ge=pe.stickyOffsets,lt=pe.flattenColumns,Ct=pe.rowComponent,vt=pe.cellComponent,$t=pe.tdCellComponent,zt=pe.onHeaderRow,Qt=pe.index,dr=v(K,["prefixCls","direction"]),Ir=dr.prefixCls,gr=dr.direction,tn;zt&&(tn=zt(Ce.map(function(Yr){return Yr.column}),Qt));var Vr=Ee(Ce.map(function(Yr){return Yr.column}));return S.createElement(Ct,tn,Ce.map(function(Yr,Pn){var Cn=Yr.column,Ln=ar(Yr.colStart,Yr.colEnd,lt,Ge,gr,Cn),Sn;return Cn&&Cn.onHeaderCell&&(Sn=Yr.column.onHeaderCell(Cn)),S.createElement(ur,(0,z.Z)({},Yr,{scope:Cn.title?Yr.colSpan>1?"colgroup":"col":null,ellipsis:Cn.ellipsis,align:Cn.align,component:Cn.title?vt:$t,prefixCls:Ir,key:Vr[Pn]},Ln,{additionalProps:Sn,rowType:"header"}))}))}Oi.displayName="HeaderRow";var mi=Oi;function Wi(pe){var Ce=[];function Ge($t,zt){var Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ce[Qt]=Ce[Qt]||[];var dr=zt,Ir=$t.filter(Boolean).map(function(gr){var tn={key:gr.key,className:gr.className||"",children:gr.title,column:gr,colStart:dr},Vr=1,Yr=gr.children;return Yr&&Yr.length>0&&(Vr=Ge(Yr,dr,Qt+1).reduce(function(Pn,Cn){return Pn+Cn},0),tn.hasSubColumns=!0),"colSpan"in gr&&(Vr=gr.colSpan),"rowSpan"in gr&&(tn.rowSpan=gr.rowSpan),tn.colSpan=Vr,tn.colEnd=tn.colStart+Vr-1,Ce[Qt].push(tn),dr+=Vr,Vr});return Ir}Ge(pe,0);for(var lt=Ce.length,Ct=function(zt){Ce[zt].forEach(function(Qt){!("rowSpan"in Qt)&&!Qt.hasSubColumns&&(Qt.rowSpan=lt-zt)})},vt=0;vt<lt;vt+=1)Ct(vt);return Ce}function Gi(pe){var Ce=pe.stickyOffsets,Ge=pe.columns,lt=pe.flattenColumns,Ct=pe.onHeaderRow,vt=v(K,["prefixCls","getComponent"]),$t=vt.prefixCls,zt=vt.getComponent,Qt=S.useMemo(function(){return Wi(Ge)},[Ge]),dr=zt(["header","wrapper"],"thead"),Ir=zt(["header","row"],"tr"),gr=zt(["header","cell"],"th"),tn=zt(["header","cell"],"td");return S.createElement(dr,{className:"".concat($t,"-thead")},Qt.map(function(Vr,Yr){var Pn=S.createElement(mi,{key:Yr,flattenColumns:lt,cells:Vr,stickyOffsets:Ce,rowComponent:Ir,cellComponent:gr,tdCellComponent:tn,onHeaderRow:Ct,index:Yr});return Pn}))}var ta=X(Gi),_o=x(11592);function ra(pe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ce=="number"?Ce:Ce.endsWith("%")?pe*parseFloat(Ce)/100:null}function bi(pe,Ce){return S.useMemo(function(){if(Ce&&Ce>0){var Ge=0,lt=0;pe.forEach(function(dr){var Ir=ra(Ce,dr.width);Ir?Ge+=Ir:lt+=1});var Ct=Ce-Ge,vt=lt,$t=Ct/lt,zt=0,Qt=pe.map(function(dr){var Ir=(0,Ue.Z)({},dr),gr=ra(Ce,Ir.width);if(gr)Ir.width=gr;else{var tn=Math.floor($t);Ir.width=vt===1?Ct:tn,Ct-=tn,vt-=1}return zt+=Ir.width,Ir});return[Qt,zt]}return[pe,Ce]},[pe,Ce])}var Ki=["children"],sa=["fixed"];function be(pe){return(0,_o.Z)(pe).filter(function(Ce){return S.isValidElement(Ce)}).map(function(Ce){var Ge=Ce.key,lt=Ce.props,Ct=lt.children,vt=(0,ft.Z)(lt,Ki),$t=(0,Ue.Z)({key:Ge},vt);return Ct&&($t.children=be(Ct)),$t})}function Ne(pe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return pe.filter(function(Ge){return Ge&&(0,Se.Z)(Ge)==="object"}).reduce(function(Ge,lt,Ct){var vt=lt.fixed,$t=vt===!0?"left":vt,zt="".concat(Ce,"-").concat(Ct),Qt=lt.children;return Qt&&Qt.length>0?[].concat((0,ln.Z)(Ge),(0,ln.Z)(Ne(Qt,zt).map(function(dr){return(0,Ue.Z)({fixed:$t},dr)}))):[].concat((0,ln.Z)(Ge),[(0,Ue.Z)((0,Ue.Z)({key:zt},lt),{},{fixed:$t})])},[])}function ke(pe){for(var Ce=!0,Ge=0;Ge<pe.length;Ge+=1){var lt=pe[Ge];if(Ce&&lt.fixed!=="left")Ce=!1;else if(!Ce&&lt.fixed==="left"){warning(!1,"Index ".concat(Ge-1," of `columns` missing `fixed='left'` prop."));break}}for(var Ct=!0,vt=pe.length-1;vt>=0;vt-=1){var $t=pe[vt];if(Ct&&$t.fixed!=="right")Ct=!1;else if(!Ct&&$t.fixed==="right"){warning(!1,"Index ".concat(vt+1," of `columns` missing `fixed='right'` prop."));break}}}function Xe(pe){return pe.map(function(Ce){var Ge=Ce.fixed,lt=(0,ft.Z)(Ce,sa),Ct=Ge;return Ge==="left"?Ct="right":Ge==="right"&&(Ct="left"),(0,Ue.Z)({fixed:Ct},lt)})}function Pt(pe,Ce){var Ge=pe.prefixCls,lt=pe.columns,Ct=pe.children,vt=pe.expandable,$t=pe.expandedKeys,zt=pe.columnTitle,Qt=pe.getRowKey,dr=pe.onTriggerExpand,Ir=pe.expandIcon,gr=pe.rowExpandable,tn=pe.expandIconColumnIndex,Vr=pe.direction,Yr=pe.expandRowByClick,Pn=pe.columnWidth,Cn=pe.fixed,Ln=pe.scrollWidth,Sn=S.useMemo(function(){return lt||be(Ct)},[lt,Ct]),zn=S.useMemo(function(){if(vt){var vi,ni=Sn.slice();if(!ni.includes(me)){var Tn=tn||0;Tn>=0&&ni.splice(Tn,0,me)}var ii=ni.indexOf(me);ni=ni.filter(function(ji,_a){return ji!==me||_a===ii});var Hi=Sn[ii],Oa;(Cn==="left"||Cn)&&!tn?Oa="left":(Cn==="right"||Cn)&&tn===Sn.length?Oa="right":Oa=Hi?Hi.fixed:null;var pa=(vi={},(0,J.Z)(vi,mr,{className:"".concat(Ge,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,J.Z)(vi,"title",zt),(0,J.Z)(vi,"fixed",Oa),(0,J.Z)(vi,"className","".concat(Ge,"-row-expand-icon-cell")),(0,J.Z)(vi,"width",Pn),(0,J.Z)(vi,"render",function(_a,Qa,Yo){var so=Qt(Qa,Yo),vs=$t.has(so),cs=gr?gr(Qa):!0,ma=Ir({prefixCls:Ge,expanded:vs,expandable:cs,record:Qa,onExpand:dr});return Yr?S.createElement("span",{onClick:function(po){return po.stopPropagation()}},ma):ma}),vi);return ni.map(function(ji){return ji===me?pa:ji})}return Sn.filter(function(ji){return ji!==me})},[vt,Sn,Qt,$t,Ir,Vr]),Pi=S.useMemo(function(){var vi=zn;return Ce&&(vi=Ce(vi)),vi.length||(vi=[{render:function(){return null}}]),vi},[Ce,zn,Vr]),Ri=S.useMemo(function(){return Vr==="rtl"?Xe(Ne(Pi)):Ne(Pi)},[Pi,Vr,Ln]),hi=bi(Ri,Ln),ea=(0,P.Z)(hi,2),wa=ea[0],Jn=ea[1];return[Pi,wa,Jn]}var Dt=Pt;function Er(pe){var Ce,Ge=pe.prefixCls,lt=pe.record,Ct=pe.onExpand,vt=pe.expanded,$t=pe.expandable,zt="".concat(Ge,"-row-expand-icon");if(!$t)return S.createElement("span",{className:D()(zt,"".concat(Ge,"-row-spaced"))});var Qt=function(Ir){Ct(lt,Ir),Ir.stopPropagation()};return S.createElement("span",{className:D()(zt,(Ce={},(0,J.Z)(Ce,"".concat(Ge,"-row-expanded"),vt),(0,J.Z)(Ce,"".concat(Ge,"-row-collapsed"),!vt),Ce)),onClick:Qt})}function rr(pe,Ce,Ge){var lt=[];function Ct(vt){(vt||[]).forEach(function($t,zt){lt.push(Ce($t,zt)),Ct($t[Ge])})}return Ct(pe),lt}function Nr(pe,Ce,Ge){var lt=cr(pe),Ct=lt.expandIcon,vt=lt.expandedRowKeys,$t=lt.defaultExpandedRowKeys,zt=lt.defaultExpandAllRows,Qt=lt.expandedRowRender,dr=lt.onExpand,Ir=lt.onExpandedRowsChange,gr=lt.childrenColumnName,tn=Ct||Er,Vr=gr||"children",Yr=S.useMemo(function(){return Qt?"row":pe.expandable&&pe.internalHooks===Ae&&pe.expandable.__PARENT_RENDER_ICON__||Ce.some(function(Ri){return Ri&&(0,Se.Z)(Ri)==="object"&&Ri[Vr]})?"nest":!1},[!!Qt,Ce]),Pn=S.useState(function(){return $t||(zt?rr(Ce,Ge,Vr):[])}),Cn=(0,P.Z)(Pn,2),Ln=Cn[0],Sn=Cn[1],zn=S.useMemo(function(){return new Set(vt||Ln||[])},[vt,Ln]),Pi=S.useCallback(function(Ri){var hi=Ge(Ri,Ce.indexOf(Ri)),ea,wa=zn.has(hi);wa?(zn.delete(hi),ea=(0,ln.Z)(zn)):ea=[].concat((0,ln.Z)(zn),[hi]),Sn(ea),dr&&dr(!wa,Ri),Ir&&Ir(ea)},[Ge,zn,Ce,dr,Ir]);return[lt,Yr,zn,tn,Vr,Pi]}function Hr(pe,Ce,Ge,lt){var Ct=pe.map(function(vt,$t){return ar($t,$t,pe,Ce,Ge,lt==null?void 0:lt[$t])});return(0,Ve.Z)(function(){return Ct},[Ct],function(vt,$t){return!(0,V.Z)(vt,$t)})}function an(pe){var Ce=(0,S.useRef)(pe),Ge=(0,S.useState)({}),lt=(0,P.Z)(Ge,2),Ct=lt[1],vt=(0,S.useRef)(null),$t=(0,S.useRef)([]);function zt(Qt){$t.current.push(Qt);var dr=Promise.resolve();vt.current=dr,dr.then(function(){if(vt.current===dr){var Ir=$t.current,gr=Ce.current;$t.current=[],Ir.forEach(function(tn){Ce.current=tn(Ce.current)}),vt.current=null,gr!==Ce.current&&Ct({})}})}return(0,S.useEffect)(function(){return function(){vt.current=null}},[]),[Ce.current,zt]}function jr(pe){var Ce=(0,S.useRef)(pe||null),Ge=(0,S.useRef)();function lt(){window.clearTimeout(Ge.current)}function Ct($t){Ce.current=$t,lt(),Ge.current=window.setTimeout(function(){Ce.current=null,Ge.current=void 0},100)}function vt(){return Ce.current}return(0,S.useEffect)(function(){return lt},[]),[Ct,vt]}function Rr(){var pe=S.useState(-1),Ce=(0,P.Z)(pe,2),Ge=Ce[0],lt=Ce[1],Ct=S.useState(-1),vt=(0,P.Z)(Ct,2),$t=vt[0],zt=vt[1],Qt=S.useCallback(function(dr,Ir){lt(dr),zt(Ir)},[]);return[Ge,$t,Qt]}var en=x(47273),wn=(0,en.Z)()?window:null;function on(pe,Ce){var Ge=(0,Se.Z)(pe)==="object"?pe:{},lt=Ge.offsetHeader,Ct=lt===void 0?0:lt,vt=Ge.offsetSummary,$t=vt===void 0?0:vt,zt=Ge.offsetScroll,Qt=zt===void 0?0:zt,dr=Ge.getContainer,Ir=dr===void 0?function(){return wn}:dr,gr=Ir()||wn;return S.useMemo(function(){var tn=!!pe;return{isSticky:tn,stickyClassName:tn?"".concat(Ce,"-sticky-holder"):"",offsetHeader:Ct,offsetSummary:$t,offsetScroll:Qt,container:gr}},[Qt,Ct,$t,Ce,gr])}function On(pe,Ce,Ge){var lt=(0,S.useMemo)(function(){for(var Ct=[],vt=[],$t=0,zt=0,Qt=0;Qt<Ce;Qt+=1)if(Ge==="rtl"){vt[Qt]=zt,zt+=pe[Qt]||0;var dr=Ce-Qt-1;Ct[dr]=$t,$t+=pe[dr]||0}else{Ct[Qt]=$t,$t+=pe[Qt]||0;var Ir=Ce-Qt-1;vt[Ir]=zt,zt+=pe[Ir]||0}return{left:Ct,right:vt}},[pe,Ce,Ge]);return lt}var Qn=On;function di(pe){var Ce=pe.className,Ge=pe.children;return S.createElement("div",{className:Ce},Ge)}var Nn=di,Gn=x(8224),Vt=x(55468),Xt=function(Ce,Ge){var lt,Ct,vt=Ce.scrollBodyRef,$t=Ce.onScroll,zt=Ce.offsetScroll,Qt=Ce.container,dr=v(K,"prefixCls"),Ir=((lt=vt.current)===null||lt===void 0?void 0:lt.scrollWidth)||0,gr=((Ct=vt.current)===null||Ct===void 0?void 0:Ct.clientWidth)||0,tn=Ir&&gr*(gr/Ir),Vr=S.useRef(),Yr=an({scrollLeft:0,isHiddenScrollBar:!1}),Pn=(0,P.Z)(Yr,2),Cn=Pn[0],Ln=Pn[1],Sn=S.useRef({delta:0,x:0}),zn=S.useState(!1),Pi=(0,P.Z)(zn,2),Ri=Pi[0],hi=Pi[1],ea=function(){hi(!1)},wa=function(ii){ii.persist(),Sn.current.delta=ii.pageX-Cn.scrollLeft,Sn.current.x=0,hi(!0),ii.preventDefault()},Jn=function(ii){var Hi,Oa=ii||((Hi=window)===null||Hi===void 0?void 0:Hi.event),pa=Oa.buttons;if(!Ri||pa===0){Ri&&hi(!1);return}var ji=Sn.current.x+ii.pageX-Sn.current.x-Sn.current.delta;ji<=0&&(ji=0),ji+tn>=gr&&(ji=gr-tn),$t({scrollLeft:ji/gr*(Ir+2)}),Sn.current.x=ii.pageX},vi=function(){if(vt.current){var ii=(0,Vt.os)(vt.current).top,Hi=ii+vt.current.offsetHeight,Oa=Qt===window?document.documentElement.scrollTop+window.innerHeight:(0,Vt.os)(Qt).top+Qt.clientHeight;Hi-(0,je.Z)()<=Oa||ii>=Oa-zt?Ln(function(pa){return(0,Ue.Z)((0,Ue.Z)({},pa),{},{isHiddenScrollBar:!0})}):Ln(function(pa){return(0,Ue.Z)((0,Ue.Z)({},pa),{},{isHiddenScrollBar:!1})})}},ni=function(ii){Ln(function(Hi){return(0,Ue.Z)((0,Ue.Z)({},Hi),{},{scrollLeft:ii/Ir*gr||0})})};return S.useImperativeHandle(Ge,function(){return{setScrollLeft:ni}}),S.useEffect(function(){var Tn=(0,Gn.Z)(document.body,"mouseup",ea,!1),ii=(0,Gn.Z)(document.body,"mousemove",Jn,!1);return vi(),function(){Tn.remove(),ii.remove()}},[tn,Ri]),S.useEffect(function(){var Tn=(0,Gn.Z)(Qt,"scroll",vi,!1),ii=(0,Gn.Z)(window,"resize",vi,!1);return function(){Tn.remove(),ii.remove()}},[Qt]),S.useEffect(function(){Cn.isHiddenScrollBar||Ln(function(Tn){var ii=vt.current;return ii?(0,Ue.Z)((0,Ue.Z)({},Tn),{},{scrollLeft:ii.scrollLeft/ii.scrollWidth*ii.clientWidth}):Tn})},[Cn.isHiddenScrollBar]),Ir<=gr||!tn||Cn.isHiddenScrollBar?null:S.createElement("div",{style:{height:(0,je.Z)(),width:gr,bottom:zt},className:"".concat(dr,"-sticky-scroll")},S.createElement("div",{onMouseDown:wa,ref:Vr,className:D()("".concat(dr,"-sticky-scroll-bar"),(0,J.Z)({},"".concat(dr,"-sticky-scroll-bar-active"),Ri)),style:{width:"".concat(tn,"px"),transform:"translate3d(".concat(Cn.scrollLeft,"px, 0, 0)")}}))},Yt=S.forwardRef(Xt);function er(pe){return null}var jt=er;function or(pe){return null}var lr=or,Pr="rc-table",yn=[],Bn={};function li(){return"No Data"}function ti(pe){var Ce,Ge=(0,Ue.Z)({rowKey:"key",prefixCls:Pr,emptyText:li},pe),lt=Ge.prefixCls,Ct=Ge.className,vt=Ge.rowClassName,$t=Ge.style,zt=Ge.data,Qt=Ge.rowKey,dr=Ge.scroll,Ir=Ge.tableLayout,gr=Ge.direction,tn=Ge.title,Vr=Ge.footer,Yr=Ge.summary,Pn=Ge.caption,Cn=Ge.id,Ln=Ge.showHeader,Sn=Ge.components,zn=Ge.emptyText,Pi=Ge.onRow,Ri=Ge.onHeaderRow,hi=Ge.internalHooks,ea=Ge.transformColumns,wa=Ge.internalRefs,Jn=Ge.tailor,vi=Ge.sticky,ni=zt||yn,Tn=!!ni.length,ii=hi===Ae,Hi=S.useCallback(function(Ao,vo){return(0,Me.Z)(Sn,Ao)||vo},[Sn]),Oa=S.useMemo(function(){return typeof Qt=="function"?Qt:function(Ao){var vo=Ao&&Ao[Qt];return vo}},[Qt]),pa=Hi(["body"]),ji=Rr(),_a=(0,P.Z)(ji,3),Qa=_a[0],Yo=_a[1],so=_a[2],vs=Nr(Ge,ni,Oa),cs=(0,P.Z)(vs,6),ma=cs[0],al=cs[1],po=cs[2],qo=cs[3],rs=cs[4],xc=cs[5],ai=dr==null?void 0:dr.x,zi=S.useState(0),Qi=(0,P.Z)(zi,2),ki=Qi[0],go=Qi[1],Di=Dt((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Ge),ma),{},{expandable:!!ma.expandedRowRender,columnTitle:ma.columnTitle,expandedKeys:po,getRowKey:Oa,onTriggerExpand:xc,expandIcon:qo,expandIconColumnIndex:ma.expandIconColumnIndex,direction:gr,scrollWidth:ii&&Jn&&typeof ai=="number"?ai:null}),ii?ea:null),ca=(0,P.Z)(Di,3),ja=ca[0],$a=ca[1],Ml=ca[2],nl=Ml!=null?Ml:ai,Gc=S.useMemo(function(){return{columns:ja,flattenColumns:$a}},[ja,$a]),Us=S.useRef(),Uc=S.useRef(),Hn=S.useRef(),dc=S.useRef(),Fu=S.useRef(),lo=S.useState(!1),mn=(0,P.Z)(lo,2),Lo=mn[0],cl=mn[1],As=S.useState(!1),na=(0,P.Z)(As,2),Sl=na[0],Zl=na[1],Rc=an(new Map),Cc=(0,P.Z)(Rc,2),El=Cc[0],Al=Cc[1],au=Ee($a),Ll=au.map(function(Ao){return El.get(Ao)}),Rs=S.useMemo(function(){return Ll},[Ll.join("_")]),_l=Qn(Rs,$a.length,gr),il=dr&&tt(dr.y),Ms=dr&&tt(nl)||!!ma.fixed,Bc=Ms&&$a.some(function(Ao){var vo=Ao.fixed;return vo}),xA=S.useRef(),PA=on(vi,lt),CA=PA.isSticky,ff=PA.offsetHeader,zf=PA.offsetSummary,io=PA.offsetScroll,Zo=PA.stickyClassName,Vl=PA.container,us=S.useMemo(function(){return Yr==null?void 0:Yr(ni)},[Yr,ni]),kl=(il||CA)&&S.isValidElement(us)&&us.type===C&&us.props.fixed,Wl,Js,BA;il&&(Js={overflowY:"scroll",maxHeight:dr.y}),Ms&&(Wl={overflowX:"auto"},il||(Js={overflowY:"hidden"}),BA={width:nl===!0?"auto":nl,minWidth:"100%"});var hf=S.useCallback(function(Ao,vo){(0,xe.Z)(Us.current)&&Al(function(rA){if(rA.get(Ao)!==vo){var su=new Map(rA);return su.set(Ao,vo),su}return rA})},[]),pf=jr(null),id=(0,P.Z)(pf,2),co=id[0],Bs=id[1];function SA(Ao,vo){vo&&(typeof vo=="function"?vo(Ao):vo.scrollLeft!==Ao&&(vo.scrollLeft=Ao,vo.scrollLeft!==Ao&&setTimeout(function(){vo.scrollLeft=Ao},0)))}var EA=(0,De.Z)(function(Ao){var vo=Ao.currentTarget,rA=Ao.scrollLeft,su=gr==="rtl",WA=typeof rA=="number"?rA:vo.scrollLeft,S0=vo||Bn;if(!Bs()||Bs()===S0){var Dl;co(S0),SA(WA,Uc.current),SA(WA,Hn.current),SA(WA,Fu.current),SA(WA,(Dl=xA.current)===null||Dl===void 0?void 0:Dl.setScrollLeft)}var _A=vo||Uc.current;if(_A){var _h=_A.scrollWidth,Xf=_A.clientWidth;if(_h===Xf){cl(!1),Zl(!1);return}su?(cl(-WA<_h-Xf),Zl(-WA>0)):(cl(WA>0),Zl(WA<_h-Xf))}}),Gl=function(){Ms&&Hn.current?EA({currentTarget:Hn.current}):(cl(!1),Zl(!1))},$f=function(vo){var rA=vo.width;rA!==ki&&(Gl(),go(Us.current?Us.current.offsetWidth:rA))},TA=S.useRef(!1);S.useEffect(function(){TA.current&&Gl()},[Ms,zt,ja.length]),S.useEffect(function(){TA.current=!0},[]);var Zf=S.useState(0),Vf=(0,P.Z)(Zf,2),ad=Vf[0],Od=Vf[1],Nd=S.useState(!0),od=(0,P.Z)(Nd,2),zr=od[0],Pd=od[1];S.useEffect(function(){(!Jn||!ii)&&(Hn.current instanceof Element?Od((0,je.o)(Hn.current).width):Od((0,je.o)(dc.current).width)),Pd((0,ye.G)("position","sticky"))},[]),S.useEffect(function(){ii&&wa&&(wa.body.current=Hn.current)});var mf=S.useCallback(function(Ao){return S.createElement(S.Fragment,null,S.createElement(ta,Ao),kl==="top"&&S.createElement(Be,Ao,us))},[kl,us]),Wf=S.useCallback(function(Ao){return S.createElement(Be,Ao,us)},[us]),gf=Hi(["table"],"table"),Sh=S.useMemo(function(){return Ir||(Bc?nl==="max-content"?"auto":"fixed":il||CA||$a.some(function(Ao){var vo=Ao.ellipsis;return vo})?"fixed":"auto")},[il,Bc,$a,Ir,CA]),Eh,Gf={colWidths:Rs,columCount:$a.length,stickyOffsets:_l,onHeaderRow:Ri,fixHeader:il,scroll:dr},bl=S.useMemo(function(){return Tn?null:typeof zn=="function"?zn():zn},[Tn,zn]),Mu=S.createElement(Fr,{data:ni,measureColumnWidth:il||Ms||CA}),vf=S.createElement(_n,{colWidths:$a.map(function(Ao){var vo=Ao.width;return vo}),columns:$a}),sd=Pn!=null?S.createElement("caption",{className:"".concat(lt,"-caption")},Pn):void 0,bf=(0,xt.Z)(Ge,{data:!0}),UA=(0,xt.Z)(Ge,{aria:!0});if(il||CA){var ou;typeof pa=="function"?(ou=pa(ni,{scrollbarSize:ad,ref:Hn,onScroll:EA}),Gf.colWidths=$a.map(function(Ao,vo){var rA=Ao.width,su=vo===$a.length-1?rA-ad:rA;return typeof su=="number"&&!Number.isNaN(su)?su:0})):ou=S.createElement("div",{style:(0,Ue.Z)((0,Ue.Z)({},Wl),Js),onScroll:EA,ref:Hn,className:D()("".concat(lt,"-body"))},S.createElement(gf,(0,z.Z)({style:(0,Ue.Z)((0,Ue.Z)({},BA),{},{tableLayout:Sh})},UA),sd,vf,Mu,!kl&&us&&S.createElement(Be,{stickyOffsets:_l,flattenColumns:$a,columns:ja},us)));var ds=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({noData:!ni.length,maxContentScroll:Ms&&nl==="max-content"},Gf),Gc),{},{direction:gr,stickyClassName:Zo,onScroll:EA});Eh=S.createElement(S.Fragment,null,Ln!==!1&&S.createElement(Ai,(0,z.Z)({},ds,{stickyTopOffset:ff,className:"".concat(lt,"-header"),ref:Uc}),mf),ou,kl&&kl!=="top"&&S.createElement(Ai,(0,z.Z)({},ds,{stickyBottomOffset:zf,className:"".concat(lt,"-summary"),ref:Fu}),Wf),CA&&S.createElement(Yt,{ref:xA,offsetScroll:io,scrollBodyRef:Hn,onScroll:EA,container:Vl}))}else Eh=S.createElement("div",{style:(0,Ue.Z)((0,Ue.Z)({},Wl),Js),className:D()("".concat(lt,"-content")),onScroll:EA,ref:Hn},S.createElement(gf,(0,z.Z)({style:(0,Ue.Z)((0,Ue.Z)({},BA),{},{tableLayout:Sh})},UA),sd,vf,Ln!==!1&&S.createElement(ta,(0,z.Z)({},Gf,Gc)),Mu,us&&S.createElement(Be,{stickyOffsets:_l,flattenColumns:$a,columns:ja},us)));var Qc=S.createElement("div",(0,z.Z)({className:D()(lt,Ct,(Ce={},(0,J.Z)(Ce,"".concat(lt,"-rtl"),gr==="rtl"),(0,J.Z)(Ce,"".concat(lt,"-ping-left"),Lo),(0,J.Z)(Ce,"".concat(lt,"-ping-right"),Sl),(0,J.Z)(Ce,"".concat(lt,"-layout-fixed"),Ir==="fixed"),(0,J.Z)(Ce,"".concat(lt,"-fixed-header"),il),(0,J.Z)(Ce,"".concat(lt,"-fixed-column"),Bc),(0,J.Z)(Ce,"".concat(lt,"-scroll-horizontal"),Ms),(0,J.Z)(Ce,"".concat(lt,"-has-fix-left"),$a[0]&&$a[0].fixed),(0,J.Z)(Ce,"".concat(lt,"-has-fix-right"),$a[$a.length-1]&&$a[$a.length-1].fixed==="right"),Ce)),style:$t,id:Cn,ref:Us},bf),tn&&S.createElement(Nn,{className:"".concat(lt,"-title")},tn(ni)),S.createElement("div",{ref:dc,className:"".concat(lt,"-container")},Eh),Vr&&S.createElement(Nn,{className:"".concat(lt,"-footer")},Vr(ni)));Ms&&(Qc=S.createElement(Qe.Z,{onResize:$f},Qc));var Xl=Hr($a,_l,gr,ja),Lu=S.useMemo(function(){return{scrollX:nl,prefixCls:lt,getComponent:Hi,scrollbarSize:ad,direction:gr,fixedInfoList:Xl,isSticky:CA,supportSticky:zr,componentWidth:ki,fixHeader:il,fixColumn:Bc,horizonScroll:Ms,tableLayout:Sh,rowClassName:vt,expandedRowClassName:ma.expandedRowClassName,expandIcon:qo,expandableType:al,expandRowByClick:ma.expandRowByClick,expandedRowRender:ma.expandedRowRender,onTriggerExpand:xc,expandIconColumnIndex:ma.expandIconColumnIndex,indentSize:ma.indentSize,allColumnsFixedLeft:$a.every(function(Ao){return Ao.fixed==="left"}),emptyNode:bl,columns:ja,flattenColumns:$a,onColumnResize:hf,hoverStartRow:Qa,hoverEndRow:Yo,onHover:so,rowExpandable:ma.rowExpandable,onRow:Pi,getRowKey:Oa,expandedKeys:po,childrenColumnName:rs}},[nl,lt,Hi,ad,gr,Xl,CA,zr,ki,il,Bc,Ms,Sh,vt,ma.expandedRowClassName,qo,al,ma.expandRowByClick,ma.expandedRowRender,xc,ma.expandIconColumnIndex,ma.indentSize,bl,ja,$a,hf,Qa,Yo,so,ma.rowExpandable,Pi,Oa,po,rs]);return S.createElement(K.Provider,{value:Lu},Qc)}function Si(pe){return le(ti,pe)}var Yn=Si();Yn.EXPAND_COLUMN=me,Yn.INTERNAL_HOOKS=Ae,Yn.Column=jt,Yn.ColumnGroup=lr,Yn.Summary=H;var jn=Yn,wi=x(48911),yi=I(null),xi=I(null);function ci(pe,Ce,Ge){var lt=Ce||1;return Ge[pe+lt]-(Ge[pe]||0)}function Ci(pe){var Ce=pe.rowInfo,Ge=pe.column,lt=pe.colIndex,Ct=pe.indent,vt=pe.index,$t=pe.renderIndex,zt=pe.record,Qt=pe.style,dr=pe.className,Ir=pe.inverse,gr=pe.getHeight,tn=Ge.render,Vr=Ge.dataIndex,Yr=Ge.className,Pn=Ge.width,Cn=v(xi,["columnsOffset"]),Ln=Cn.columnsOffset,Sn=ct(Ce,Ge,lt,Ct,vt),zn=Sn.key,Pi=Sn.fixedInfo,Ri=Sn.appendCellNode,hi=Sn.additionalCellProps,ea=hi.style,wa=hi.colSpan,Jn=wa===void 0?1:wa,vi=hi.rowSpan,ni=vi===void 0?1:vi,Tn=lt-1,ii=ci(Tn,Jn,Ln),Hi=Jn>1?Pn-ii:0,Oa=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},ea),Qt),{},{flex:"0 0 ".concat(ii,"px"),width:"".concat(ii,"px"),marginRight:Hi,pointerEvents:"auto"}),pa=S.useMemo(function(){return Ir?ni<=1:Jn===0||ni===0||ni>1},[ni,Jn,Ir]);pa?Oa.visibility="hidden":Ir&&(Oa.height=gr==null?void 0:gr(ni));var ji=pa?function(){return null}:tn,_a={};return(ni===0||Jn===0)&&(_a.rowSpan=1,_a.colSpan=1),S.createElement(ur,(0,z.Z)({className:D()(Yr,dr),ellipsis:Ge.ellipsis,align:Ge.align,scope:Ge.rowScope,component:"div",prefixCls:Ce.prefixCls,key:zn,record:zt,index:vt,renderIndex:$t,dataIndex:Vr,render:ji,shouldCellUpdate:Ge.shouldCellUpdate},Pi,{appendNode:Ri,additionalProps:(0,Ue.Z)((0,Ue.Z)({},hi),{},{style:Oa},_a)}))}var $i=Ci,ei=["data","index","className","rowKey","style","extra","getHeight"],Ni=S.forwardRef(function(pe,Ce){var Ge=pe.data,lt=pe.index,Ct=pe.className,vt=pe.rowKey,$t=pe.style,zt=pe.extra,Qt=pe.getHeight,dr=(0,ft.Z)(pe,ei),Ir=Ge.record,gr=Ge.indent,tn=Ge.index,Vr=v(K,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Yr=Vr.scrollX,Pn=Vr.flattenColumns,Cn=Vr.prefixCls,Ln=Vr.fixColumn,Sn=Vr.componentWidth,zn=Le(Ir,vt,lt,gr),Pi=zn.rowSupportExpand,Ri=zn.expanded,hi=zn.rowProps,ea=zn.expandedRowRender,wa=zn.expandedRowClassName,Jn;if(Pi&&Ri){var vi=ea(Ir,lt,gr+1,Ri),ni=wa==null?void 0:wa(Ir,lt,gr),Tn={};Ln&&(Tn={style:(0,J.Z)({},"--virtual-width","".concat(Sn,"px"))});var ii="".concat(Cn,"-expanded-row-cell");Jn=S.createElement("div",{className:D()("".concat(Cn,"-expanded-row"),"".concat(Cn,"-expanded-row-level-").concat(gr+1),ni)},S.createElement(ur,{component:"div",prefixCls:Cn,className:D()(ii,(0,J.Z)({},"".concat(ii,"-fixed"),Ln)),additionalProps:Tn},vi))}var Hi=(0,Ue.Z)((0,Ue.Z)({},$t),{},{width:Yr});zt&&(Hi.position="absolute",Hi.pointerEvents="none");var Oa=S.createElement("div",(0,z.Z)({},hi,dr,{ref:Pi?null:Ce,className:D()(Ct,"".concat(Cn,"-row"),hi==null?void 0:hi.className,(0,J.Z)({},"".concat(Cn,"-row-extra"),zt)),style:(0,Ue.Z)((0,Ue.Z)({},Hi),hi==null?void 0:hi.style)}),Pn.map(function(pa,ji){return S.createElement($i,{key:ji,rowInfo:zn,column:pa,colIndex:ji,indent:gr,index:lt,renderIndex:tn,record:Ir,inverse:zt,getHeight:Qt})}));return Pi?S.createElement("div",{ref:Ce},Oa,Jn):Oa}),Ha=X(Ni),si=Ha,pn=S.forwardRef(function(pe,Ce){var Ge=pe.data,lt=pe.onScroll,Ct=v(K,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),vt=Ct.flattenColumns,$t=Ct.onColumnResize,zt=Ct.getRowKey,Qt=Ct.expandedKeys,dr=Ct.prefixCls,Ir=Ct.childrenColumnName,gr=Ct.emptyNode,tn=Ct.scrollX,Vr=v(yi),Yr=Vr.scrollY,Pn=Vr.listItemHeight,Cn=S.useRef(),Ln=st(Ge,Ir,Qt,zt),Sn=S.useMemo(function(){var Jn=0;return vt.map(function(vi){var ni=vi.width,Tn=vi.key;return Jn+=ni,[Tn,ni,Jn]})},[vt]),zn=S.useMemo(function(){return Sn.map(function(Jn){return Jn[2]})},[Sn]);S.useEffect(function(){Sn.forEach(function(Jn){var vi=(0,P.Z)(Jn,2),ni=vi[0],Tn=vi[1];$t(ni,Tn)})},[Sn]),S.useImperativeHandle(Ce,function(){var Jn={};return Object.defineProperty(Jn,"scrollLeft",{get:function(){var ni;return((ni=Cn.current)===null||ni===void 0?void 0:ni.getScrollInfo().x)||0},set:function(ni){var Tn;(Tn=Cn.current)===null||Tn===void 0||Tn.scrollTo({left:ni})}}),Jn});var Pi=function(vi,ni){var Tn,ii=(Tn=Ln[ni])===null||Tn===void 0?void 0:Tn.record,Hi=vi.onCell;if(Hi){var Oa,pa=Hi(ii,ni);return(Oa=pa==null?void 0:pa.rowSpan)!==null&&Oa!==void 0?Oa:1}return 1},Ri=function(vi){var ni=vi.start,Tn=vi.end,ii=vi.getSize,Hi=vi.offsetY;if(Tn<0)return null;for(var Oa=vt.filter(function(ai){return Pi(ai,ni)===0}),pa=ni,ji=function(zi){if(Oa=Oa.filter(function(Qi){return Pi(Qi,zi)===0}),!Oa.length)return pa=zi,"break"},_a=ni;_a>=0;_a-=1){var Qa=ji(_a);if(Qa==="break")break}for(var Yo=vt.filter(function(ai){return Pi(ai,Tn)!==1}),so=Tn,vs=function(zi){if(Yo=Yo.filter(function(Qi){return Pi(Qi,zi)!==1}),!Yo.length)return so=Math.max(zi-1,Tn),"break"},cs=Tn;cs<Ln.length;cs+=1){var ma=vs(cs);if(ma==="break")break}for(var al=[],po=function(zi){var Qi=Ln[zi];if(!Qi)return"continue";vt.some(function(ki){return Pi(ki,zi)>1})&&al.push(zi)},qo=pa;qo<=so;qo+=1)var rs=po(qo);var xc=al.map(function(ai){var zi=Ln[ai],Qi=zt(zi.record,ai),ki=function(ca){var ja=ai+ca-1,$a=zt(Ln[ja].record,ja),Ml=ii(Qi,$a);return Ml.bottom-Ml.top},go=ii(Qi);return S.createElement(si,{key:ai,data:zi,rowKey:Qi,index:ai,style:{top:-Hi+go.top},extra:!0,getHeight:ki})});return xc},hi=S.useMemo(function(){return{columnsOffset:zn}},[zn]),ea="".concat(dr,"-tbody"),wa;return Ln.length?wa=S.createElement(wi.Z,{fullHeight:!1,ref:Cn,className:D()(ea,"".concat(ea,"-virtual")),height:Yr,itemHeight:Pn||24,data:Ln,itemKey:function(vi){return zt(vi.record)},scrollWidth:tn,onVirtualScroll:function(vi){var ni=vi.x;lt({scrollLeft:ni})},extraRender:Ri},function(Jn,vi,ni){var Tn=zt(Jn.record,vi);return S.createElement(si,(0,z.Z)({data:Jn,rowKey:Tn,index:vi},ni))}):wa=S.createElement("div",{className:D()("".concat(dr,"-placeholder"))},S.createElement(ur,{component:"div",prefixCls:dr},gr)),S.createElement(xi.Provider,{value:hi},wa)}),cn=X(pn),Xn=cn,Kn=function(Ce,Ge){var lt=Ge.ref,Ct=Ge.onScroll;return S.createElement(Xn,{ref:lt,data:Ce,onScroll:Ct})},fi=100;function Xi(pe){var Ce=pe.columns,Ge=pe.scroll,lt=pe.prefixCls,Ct=lt===void 0?Pr:lt,vt=pe.className,$t=pe.listItemHeight,zt=Ge||{},Qt=zt.x,dr=zt.y;typeof Qt!="number"&&(Qt=((Ce||[]).length+1)*fi),typeof dr!="number"&&(dr=500);var Ir=S.useMemo(function(){return{scrollY:dr,listItemHeight:$t}},[dr,$t]);return S.createElement(yi.Provider,{value:Ir},S.createElement(jn,(0,z.Z)({},pe,{className:D()(vt,"".concat(Ct,"-virtual")),scroll:(0,Ue.Z)((0,Ue.Z)({},Ge),{},{x:Qt}),components:{body:Kn},columns:Ce,internalHooks:Ae,tailor:!0})))}function Ii(pe){return le(Xi,pe)}var Ua=Ii(),Aa=null;function Co(pe){return null}var Vn=Co;function Mn(pe){return null}var Li=Mn,Zi=x(2738),Fa=x(68031),Is=x(36355),za=x(93891),fa=x(19716),Io=x(8628),Bo=x(31724),Po=x(58421),Ns=x(71418),ho=x(88088);function bs(pe){return function(Ge){let{prefixCls:lt,onExpand:Ct,record:vt,expanded:$t,expandable:zt}=Ge;const Qt=`${lt}-row-expand-icon`;return S.createElement("button",{type:"button",onClick:dr=>{Ct(vt,dr),dr.stopPropagation()},className:D()(Qt,{[`${Qt}-spaced`]:!zt,[`${Qt}-expanded`]:zt&&$t,[`${Qt}-collapsed`]:zt&&!$t}),"aria-label":$t?pe.collapse:pe.expand,"aria-expanded":$t})}}var Ps=bs;function $s(pe,Ce){return"key"in pe&&pe.key!==void 0&&pe.key!==null?pe.key:pe.dataIndex?Array.isArray(pe.dataIndex)?pe.dataIndex.join("."):pe.dataIndex:Ce}function To(pe,Ce){return Ce?`${Ce}-${pe}`:`${pe}`}function Uo(pe,Ce){return typeof pe=="function"?pe(Ce):pe}function ys(pe,Ce){const Ge=Uo(pe,Ce);return Object.prototype.toString.call(Ge)==="[object Object]"?"":Ge}var el={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"},vl=el,ic=x(7657),ac=function(Ce,Ge){return S.createElement(ic.Z,(0,z.Z)({},Ce,{ref:Ge,icon:vl}))},Ql=S.forwardRef(ac),Zs=Ql,Dc=x(56762);function Kl(pe){const Ce=S.useRef(pe),Ge=(0,Dc.Z)();return[()=>Ce.current,lt=>{Ce.current=lt,Ge()}]}var Hl=x(3113),Vs=x(24905),as=x(38854),ri=x(64165),la=x(20834),Yi=x(40875),aa=x(5112),Da=x(17574),oo=x(47472),Ws=x(92832);function ws(pe){let{value:Ce,onChange:Ge,filterSearch:lt,tablePrefixCls:Ct,locale:vt}=pe;return lt?S.createElement("div",{className:`${Ct}-filter-dropdown-search`},S.createElement(Ws.default,{prefix:S.createElement(oo.Z,null),placeholder:vt.filterSearchPlaceholder,onChange:Ge,value:Ce,htmlSize:1,className:`${Ct}-filter-dropdown-search-input`})):null}var xs=ws,ms=x(10228);const qa=pe=>{const{keyCode:Ce}=pe;Ce===ms.Z.ENTER&&pe.stopPropagation()};var os=S.forwardRef((pe,Ce)=>S.createElement("div",{className:pe.className,onClick:Ge=>Ge.stopPropagation(),onKeyDown:qa,ref:Ce},pe.children));function ss(pe){let Ce=[];return(pe||[]).forEach(Ge=>{let{value:lt,children:Ct}=Ge;Ce.push(lt),Ct&&(Ce=[].concat((0,ln.Z)(Ce),(0,ln.Z)(ss(Ct))))}),Ce}function Fs(pe){return pe.some(Ce=>{let{children:Ge}=Ce;return Ge})}function Go(pe,Ce){return typeof Ce=="string"||typeof Ce=="number"?Ce==null?void 0:Ce.toString().toLowerCase().includes(pe.trim().toLowerCase()):!1}function Fo(pe){let{filters:Ce,prefixCls:Ge,filteredKeys:lt,filterMultiple:Ct,searchValue:vt,filterSearch:$t}=pe;return Ce.map((zt,Qt)=>{const dr=String(zt.value);if(zt.children)return{key:dr||Qt,label:zt.text,popupClassName:`${Ge}-dropdown-submenu`,children:Fo({filters:zt.children,prefixCls:Ge,filteredKeys:lt,filterMultiple:Ct,searchValue:vt,filterSearch:$t})};const Ir=Ct?Vs.default:aa.ZP,gr={key:zt.value!==void 0?dr:Qt,label:S.createElement(S.Fragment,null,S.createElement(Ir,{checked:lt.includes(dr)}),S.createElement("span",null,zt.text))};return vt.trim()?typeof $t=="function"?$t(vt,zt)?gr:null:Go(vt,zt.text)?gr:null:gr})}function pA(pe){var Ce,Ge;const{tablePrefixCls:lt,prefixCls:Ct,column:vt,dropdownPrefixCls:$t,columnKey:zt,filterMultiple:Qt,filterMode:dr="menu",filterSearch:Ir=!1,filterState:gr,triggerFilter:tn,locale:Vr,children:Yr,getPopupContainer:Pn}=pe,{filterDropdownOpen:Cn,onFilterDropdownOpenChange:Ln,filterResetToDefaultFilteredValue:Sn,defaultFilteredValue:zn,filterDropdownVisible:Pi,onFilterDropdownVisibleChange:Ri}=vt,[hi,ea]=S.useState(!1),wa=!!(gr&&(!((Ce=gr.filteredKeys)===null||Ce===void 0)&&Ce.length||gr.forceFiltered)),Jn=Di=>{ea(Di),Ln==null||Ln(Di),Ri==null||Ri(Di)},vi=(Ge=Cn!=null?Cn:Pi)!==null&&Ge!==void 0?Ge:hi,ni=gr==null?void 0:gr.filteredKeys,[Tn,ii]=Kl(ni||[]),Hi=Di=>{let{selectedKeys:ca}=Di;ii(ca)},Oa=(Di,ca)=>{let{node:ja,checked:$a}=ca;Hi(Qt?{selectedKeys:Di}:{selectedKeys:$a&&ja.key?[ja.key]:[]})};S.useEffect(()=>{hi&&Hi({selectedKeys:ni||[]})},[ni]);const[pa,ji]=S.useState([]),_a=Di=>{ji(Di)},[Qa,Yo]=S.useState(""),so=Di=>{const{value:ca}=Di.target;Yo(ca)};S.useEffect(()=>{hi||Yo("")},[hi]);const vs=Di=>{const ca=Di&&Di.length?Di:null;if(ca===null&&(!gr||!gr.filteredKeys)||(0,V.Z)(ca,gr==null?void 0:gr.filteredKeys,!0))return null;tn({column:vt,key:zt,filteredKeys:ca})},cs=()=>{Jn(!1),vs(Tn())},ma=function(){let{confirm:Di,closeDropdown:ca}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Di&&vs([]),ca&&Jn(!1),Yo(""),ii(Sn?(zn||[]).map(ja=>String(ja)):[])},al=function(){let{closeDropdown:Di}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Di&&Jn(!1),vs(Tn())},po=Di=>{Di&&ni!==void 0&&ii(ni||[]),Jn(Di),!Di&&!vt.filterDropdown&&cs()},qo=D()({[`${$t}-menu-without-submenu`]:!Fs(vt.filters||[])}),rs=Di=>{if(Di.target.checked){const ca=ss(vt==null?void 0:vt.filters).map(ja=>String(ja));ii(ca)}else ii([])},xc=Di=>{let{filters:ca}=Di;return(ca||[]).map((ja,$a)=>{const Ml=String(ja.value),nl={title:ja.text,key:ja.value!==void 0?Ml:$a};return ja.children&&(nl.children=xc({filters:ja.children})),nl})},ai=Di=>{var ca;return Object.assign(Object.assign({},Di),{text:Di.title,value:Di.key,children:((ca=Di.children)===null||ca===void 0?void 0:ca.map(ja=>ai(ja)))||[]})};let zi;if(typeof vt.filterDropdown=="function")zi=vt.filterDropdown({prefixCls:`${$t}-custom`,setSelectedKeys:Di=>Hi({selectedKeys:Di}),selectedKeys:Tn(),confirm:al,clearFilters:ma,filters:vt.filters,visible:vi,close:()=>{Jn(!1)}});else if(vt.filterDropdown)zi=vt.filterDropdown;else{const Di=Tn()||[],ca=()=>(vt.filters||[]).length===0?S.createElement(ri.Z,{image:ri.Z.PRESENTED_IMAGE_SIMPLE,description:Vr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):dr==="tree"?S.createElement(S.Fragment,null,S.createElement(xs,{filterSearch:Ir,value:Qa,onChange:so,tablePrefixCls:lt,locale:Vr}),S.createElement("div",{className:`${lt}-filter-dropdown-tree`},Qt?S.createElement(Vs.default,{checked:Di.length===ss(vt.filters).length,indeterminate:Di.length>0&&Di.length<ss(vt.filters).length,className:`${lt}-filter-dropdown-checkall`,onChange:rs},Vr.filterCheckall):null,S.createElement(Da.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Qt,checkStrictly:!Qt,className:`${$t}-menu`,onCheck:Oa,checkedKeys:Di,selectedKeys:Di,showIcon:!1,treeData:xc({filters:vt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Qa.trim()?$a=>typeof Ir=="function"?Ir(Qa,ai($a)):Go(Qa,$a.title):void 0}))):S.createElement(S.Fragment,null,S.createElement(xs,{filterSearch:Ir,value:Qa,onChange:so,tablePrefixCls:lt,locale:Vr}),S.createElement(la.default,{selectable:!0,multiple:Qt,prefixCls:`${$t}-menu`,className:qo,onSelect:Hi,onDeselect:Hi,selectedKeys:Di,getPopupContainer:Pn,openKeys:pa,onOpenChange:_a,items:Fo({filters:vt.filters||[],filterSearch:Ir,prefixCls:Ct,filteredKeys:Tn(),filterMultiple:Qt,searchValue:Qa})})),ja=()=>Sn?(0,V.Z)((zn||[]).map($a=>String($a)),Di,!0):Di.length===0;zi=S.createElement(S.Fragment,null,ca(),S.createElement("div",{className:`${Ct}-dropdown-btns`},S.createElement(Hl.ZP,{type:"link",size:"small",disabled:ja(),onClick:()=>ma()},Vr.filterReset),S.createElement(Hl.ZP,{type:"primary",size:"small",onClick:cs},Vr.filterConfirm)))}vt.filterDropdown&&(zi=S.createElement(Yi.J,{selectable:void 0},zi));const Qi=()=>S.createElement(os,{className:`${Ct}-dropdown`},zi);let ki;typeof vt.filterIcon=="function"?ki=vt.filterIcon(wa):vt.filterIcon?ki=vt.filterIcon:ki=S.createElement(Zs,null);const{direction:go}=S.useContext(Is.E_);return S.createElement("div",{className:`${Ct}-column`},S.createElement("span",{className:`${lt}-column-title`},Yr),S.createElement(as.Z,{dropdownRender:Qi,trigger:["click"],open:vi,onOpenChange:po,getPopupContainer:Pn,placement:go==="rtl"?"bottomLeft":"bottomRight"},S.createElement("span",{role:"button",tabIndex:-1,className:D()(`${Ct}-trigger`,{active:wa}),onClick:Di=>{Di.stopPropagation()}},ki)))}var tu=pA;function Ac(pe,Ce,Ge){let lt=[];return(pe||[]).forEach((Ct,vt)=>{var $t;const zt=To(vt,Ge);if(Ct.filters||"filterDropdown"in Ct||"onFilter"in Ct)if("filteredValue"in Ct){let Qt=Ct.filteredValue;"filterDropdown"in Ct||(Qt=($t=Qt==null?void 0:Qt.map(String))!==null&&$t!==void 0?$t:Qt),lt.push({column:Ct,key:$s(Ct,zt),filteredKeys:Qt,forceFiltered:Ct.filtered})}else lt.push({column:Ct,key:$s(Ct,zt),filteredKeys:Ce&&Ct.defaultFilteredValue?Ct.defaultFilteredValue:void 0,forceFiltered:Ct.filtered});"children"in Ct&&(lt=[].concat((0,ln.Z)(lt),(0,ln.Z)(Ac(Ct.children,Ce,zt))))}),lt}function mA(pe,Ce,Ge,lt,Ct,vt,$t,zt){return Ge.map((Qt,dr)=>{const Ir=To(dr,zt),{filterMultiple:gr=!0,filterMode:tn,filterSearch:Vr}=Qt;let Yr=Qt;if(Yr.filters||Yr.filterDropdown){const Pn=$s(Yr,Ir),Cn=lt.find(Ln=>{let{key:Sn}=Ln;return Pn===Sn});Yr=Object.assign(Object.assign({},Yr),{title:Ln=>S.createElement(tu,{tablePrefixCls:pe,prefixCls:`${pe}-filter`,dropdownPrefixCls:Ce,column:Yr,columnKey:Pn,filterState:Cn,filterMultiple:gr,filterMode:tn,filterSearch:Vr,triggerFilter:vt,locale:Ct,getPopupContainer:$t},Uo(Qt.title,Ln))})}return"children"in Yr&&(Yr=Object.assign(Object.assign({},Yr),{children:mA(pe,Ce,Yr.children,lt,Ct,vt,$t,Ir)})),Yr})}function ll(pe){const Ce={};return pe.forEach(Ge=>{let{key:lt,filteredKeys:Ct,column:vt}=Ge;const{filters:$t,filterDropdown:zt}=vt;if(zt)Ce[lt]=Ct||null;else if(Array.isArray(Ct)){const Qt=ss($t);Ce[lt]=Qt.filter(dr=>Ct.includes(String(dr)))}else Ce[lt]=null}),Ce}function gA(pe,Ce){return Ce.reduce((Ge,lt)=>{const{column:{onFilter:Ct,filters:vt},filteredKeys:$t}=lt;return Ct&&$t&&$t.length?Ge.filter(zt=>$t.some(Qt=>{const dr=ss(vt),Ir=dr.findIndex(tn=>String(tn)===String(Qt)),gr=Ir!==-1?dr[Ir]:Qt;return Ct(gr,zt)})):Ge},pe)}const tl=pe=>pe.flatMap(Ce=>"children"in Ce?[Ce].concat((0,ln.Z)(tl(Ce.children||[]))):[Ce]);function gs(pe){let{prefixCls:Ce,dropdownPrefixCls:Ge,mergedColumns:lt,onFilterChange:Ct,getPopupContainer:vt,locale:$t}=pe;const zt=S.useMemo(()=>tl(lt||[]),[lt]),[Qt,dr]=S.useState(()=>Ac(zt,!0)),Ir=S.useMemo(()=>{const Yr=Ac(zt,!1);if(Yr.length===0)return Yr;let Pn=!0,Cn=!0;if(Yr.forEach(Ln=>{let{filteredKeys:Sn}=Ln;Sn!==void 0?Pn=!1:Cn=!1}),Pn){const Ln=(zt||[]).map((Sn,zn)=>$s(Sn,To(zn)));return Qt.filter(Sn=>{let{key:zn}=Sn;return Ln.includes(zn)}).map(Sn=>{const zn=zt[Ln.findIndex(Pi=>Pi===Sn.key)];return Object.assign(Object.assign({},Sn),{column:Object.assign(Object.assign({},Sn.column),zn),forceFiltered:zn.filtered})})}return Yr},[zt,Qt]),gr=S.useMemo(()=>ll(Ir),[Ir]),tn=Yr=>{const Pn=Ir.filter(Cn=>{let{key:Ln}=Cn;return Ln!==Yr.key});Pn.push(Yr),dr(Pn),Ct(ll(Pn),Pn)};return[Yr=>mA(Ce,Ge,Yr,Ir,$t,tn,vt),Ir,gr]}var qc=gs;function Ts(pe,Ce,Ge){const lt=S.useRef({});function Ct(vt){if(!lt.current||lt.current.data!==pe||lt.current.childrenColumnName!==Ce||lt.current.getRowKey!==Ge){let zt=function(Qt){Qt.forEach((dr,Ir)=>{const gr=Ge(dr,Ir);$t.set(gr,dr),dr&&typeof dr=="object"&&Ce in dr&&zt(dr[Ce]||[])})};const $t=new Map;zt(pe),lt.current={data:pe,childrenColumnName:Ce,kvMap:$t,getRowKey:Ge}}return lt.current.kvMap.get(vt)}return[Ct]}var NA=x(50371),uc=function(pe,Ce){var Ge={};for(var lt in pe)Object.prototype.hasOwnProperty.call(pe,lt)&&Ce.indexOf(lt)<0&&(Ge[lt]=pe[lt]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,lt=Object.getOwnPropertySymbols(pe);Ct<lt.length;Ct++)Ce.indexOf(lt[Ct])<0&&Object.prototype.propertyIsEnumerable.call(pe,lt[Ct])&&(Ge[lt[Ct]]=pe[lt[Ct]]);return Ge};const jl=10;function eo(pe,Ce){const Ge={current:pe.current,pageSize:pe.pageSize};return Object.keys(Ce&&typeof Ce=="object"?Ce:{}).forEach(Ct=>{const vt=pe[Ct];typeof vt!="function"&&(Ge[Ct]=vt)}),Ge}function Gs(pe,Ce,Ge){const lt=Ge&&typeof Ge=="object"?Ge:{},{total:Ct=0}=lt,vt=uc(lt,["total"]),[$t,zt]=(0,S.useState)(()=>({current:"defaultCurrent"in vt?vt.defaultCurrent:1,pageSize:"defaultPageSize"in vt?vt.defaultPageSize:jl})),Qt=(0,NA.Z)($t,vt,{total:Ct>0?Ct:pe}),dr=Math.ceil((Ct||pe)/Qt.pageSize);Qt.current>dr&&(Qt.current=dr||1);const Ir=(tn,Vr)=>{zt({current:tn!=null?tn:1,pageSize:Vr||Qt.pageSize})},gr=(tn,Vr)=>{var Yr;Ge&&((Yr=Ge.onChange)===null||Yr===void 0||Yr.call(Ge,tn,Vr)),Ir(tn,Vr),Ce(tn,Vr||(Qt==null?void 0:Qt.pageSize))};return Ge===!1?[{},()=>{}]:[Object.assign(Object.assign({},Qt),{onChange:gr}),Ir]}var vA=Gs,Su=x(84105),ls=x(35654),Ca=x(90782),ya=x(71430),ts=x(18929);const mo={},jo="SELECT_ALL",zo="SELECT_INVERT",Oo="SELECT_NONE",Cs=[],oc=(pe,Ce)=>{let Ge=[];return(Ce||[]).forEach(lt=>{Ge.push(lt),lt&&typeof lt=="object"&&pe in lt&&(Ge=[].concat((0,ln.Z)(Ge),(0,ln.Z)(oc(pe,lt[pe]))))}),Ge};var Xs=(pe,Ce)=>{const{preserveSelectedRowKeys:Ge,selectedRowKeys:lt,defaultSelectedRowKeys:Ct,getCheckboxProps:vt,onChange:$t,onSelect:zt,onSelectAll:Qt,onSelectInvert:dr,onSelectNone:Ir,onSelectMultiple:gr,columnWidth:tn,type:Vr,selections:Yr,fixed:Pn,renderCell:Cn,hideSelectAll:Ln,checkStrictly:Sn=!0}=Ce||{},{prefixCls:zn,data:Pi,pageData:Ri,getRecordByKey:hi,getRowKey:ea,expandType:wa,childrenColumnName:Jn,locale:vi,getPopupContainer:ni}=pe,[Tn,ii]=(0,ts.Z)(lt||Ct||Cs,{value:lt}),Hi=S.useRef(new Map),Oa=(0,S.useCallback)(ai=>{if(Ge){const zi=new Map;ai.forEach(Qi=>{let ki=hi(Qi);!ki&&Hi.current.has(Qi)&&(ki=Hi.current.get(Qi)),zi.set(Qi,ki)}),Hi.current=zi}},[hi,Ge]);S.useEffect(()=>{Oa(Tn)},[Tn]);const{keyEntities:pa}=(0,S.useMemo)(()=>{if(Sn)return{keyEntities:null};let ai=Pi;if(Ge){const zi=new Set(Pi.map((ki,go)=>ea(ki,go))),Qi=Array.from(Hi.current).reduce((ki,go)=>{let[Di,ca]=go;return zi.has(Di)?ki:ki.concat(ca)},[]);ai=[].concat((0,ln.Z)(ai),(0,ln.Z)(Qi))}return(0,ya.I8)(ai,{externalGetKey:ea,childrenPropName:Jn})},[Pi,ea,Sn,Jn,Ge]),ji=(0,S.useMemo)(()=>oc(Jn,Ri),[Jn,Ri]),_a=(0,S.useMemo)(()=>{const ai=new Map;return ji.forEach((zi,Qi)=>{const ki=ea(zi,Qi),go=(vt?vt(zi):null)||{};ai.set(ki,go)}),ai},[ji,ea,vt]),Qa=(0,S.useCallback)(ai=>{var zi;return!!(!((zi=_a.get(ea(ai)))===null||zi===void 0)&&zi.disabled)},[_a,ea]),[Yo,so]=(0,S.useMemo)(()=>{if(Sn)return[Tn||[],[]];const{checkedKeys:ai,halfCheckedKeys:zi}=(0,Ca.S)(Tn,!0,pa,Qa);return[ai||[],zi]},[Tn,Sn,pa,Qa]),vs=(0,S.useMemo)(()=>{const ai=Vr==="radio"?Yo.slice(0,1):Yo;return new Set(ai)},[Yo,Vr]),cs=(0,S.useMemo)(()=>Vr==="radio"?new Set:new Set(so),[so,Vr]),[ma,al]=(0,S.useState)(null);S.useEffect(()=>{Ce||ii(Cs)},[!!Ce]);const po=(0,S.useCallback)((ai,zi)=>{let Qi,ki;Oa(ai),Ge?(Qi=ai,ki=ai.map(go=>Hi.current.get(go))):(Qi=[],ki=[],ai.forEach(go=>{const Di=hi(go);Di!==void 0&&(Qi.push(go),ki.push(Di))})),ii(Qi),$t==null||$t(Qi,ki,{type:zi})},[ii,hi,$t,Ge]),qo=(0,S.useCallback)((ai,zi,Qi,ki)=>{if(zt){const go=Qi.map(Di=>hi(Di));zt(hi(ai),zi,go,ki)}po(Qi,"single")},[zt,hi,po]),rs=(0,S.useMemo)(()=>!Yr||Ln?null:(Yr===!0?[jo,zo,Oo]:Yr).map(zi=>zi===jo?{key:"all",text:vi.selectionAll,onSelect(){po(Pi.map((Qi,ki)=>ea(Qi,ki)).filter(Qi=>{const ki=_a.get(Qi);return!(ki!=null&&ki.disabled)||vs.has(Qi)}),"all")}}:zi===zo?{key:"invert",text:vi.selectInvert,onSelect(){const Qi=new Set(vs);Ri.forEach((go,Di)=>{const ca=ea(go,Di),ja=_a.get(ca);ja!=null&&ja.disabled||(Qi.has(ca)?Qi.delete(ca):Qi.add(ca))});const ki=Array.from(Qi);dr&&dr(ki),po(ki,"invert")}}:zi===Oo?{key:"none",text:vi.selectNone,onSelect(){Ir==null||Ir(),po(Array.from(vs).filter(Qi=>{const ki=_a.get(Qi);return ki==null?void 0:ki.disabled}),"none")}}:zi).map(zi=>Object.assign(Object.assign({},zi),{onSelect:function(){for(var Qi,ki,go=arguments.length,Di=new Array(go),ca=0;ca<go;ca++)Di[ca]=arguments[ca];(ki=zi.onSelect)===null||ki===void 0||(Qi=ki).call.apply(Qi,[zi].concat(Di)),al(null)}})),[Yr,vs,Ri,ea,dr,po]);return[(0,S.useCallback)(ai=>{var zi;if(!Ce)return ai.filter(lo=>lo!==mo);let Qi=(0,ln.Z)(ai);const ki=new Set(vs),go=ji.map(ea).filter(lo=>!_a.get(lo).disabled),Di=go.every(lo=>ki.has(lo)),ca=go.some(lo=>ki.has(lo)),ja=()=>{const lo=[];Di?go.forEach(Lo=>{ki.delete(Lo),lo.push(Lo)}):go.forEach(Lo=>{ki.has(Lo)||(ki.add(Lo),lo.push(Lo))});const mn=Array.from(ki);Qt==null||Qt(!Di,mn.map(Lo=>hi(Lo)),lo.map(Lo=>hi(Lo))),po(mn,"all"),al(null)};let $a;if(Vr!=="radio"){let lo;if(rs){const na={getPopupContainer:ni,items:rs.map((Sl,Zl)=>{const{key:Rc,text:Cc,onSelect:El}=Sl;return{key:Rc!=null?Rc:Zl,onClick:()=>{El==null||El(go)},label:Cc}})};lo=S.createElement("div",{className:`${zn}-selection-extra`},S.createElement(as.Z,{menu:na,getPopupContainer:ni},S.createElement("span",null,S.createElement(Su.Z,null))))}const mn=ji.map((na,Sl)=>{const Zl=ea(na,Sl),Rc=_a.get(Zl)||{};return Object.assign({checked:ki.has(Zl)},Rc)}).filter(na=>{let{disabled:Sl}=na;return Sl}),Lo=!!mn.length&&mn.length===ji.length,cl=Lo&&mn.every(na=>{let{checked:Sl}=na;return Sl}),As=Lo&&mn.some(na=>{let{checked:Sl}=na;return Sl});$a=!Ln&&S.createElement("div",{className:`${zn}-selection`},S.createElement(Vs.default,{checked:Lo?cl:!!ji.length&&Di,indeterminate:Lo?!cl&&As:!Di&&ca,onChange:ja,disabled:ji.length===0||Lo,"aria-label":lo?"Custom selection":"Select all",skipGroup:!0}),lo)}let Ml;Vr==="radio"?Ml=(lo,mn,Lo)=>{const cl=ea(mn,Lo),As=ki.has(cl);return{node:S.createElement(aa.ZP,Object.assign({},_a.get(cl),{checked:As,onClick:na=>na.stopPropagation(),onChange:na=>{ki.has(cl)||qo(cl,!0,[cl],na.nativeEvent)}})),checked:As}}:Ml=(lo,mn,Lo)=>{var cl;const As=ea(mn,Lo),na=ki.has(As),Sl=cs.has(As),Zl=_a.get(As);let Rc;return wa==="nest"?Rc=Sl:Rc=(cl=Zl==null?void 0:Zl.indeterminate)!==null&&cl!==void 0?cl:Sl,{node:S.createElement(Vs.default,Object.assign({},Zl,{indeterminate:Rc,checked:na,skipGroup:!0,onClick:Cc=>Cc.stopPropagation(),onChange:Cc=>{let{nativeEvent:El}=Cc;const{shiftKey:Al}=El;let au=-1,Ll=-1;if(Al&&Sn){const Rs=new Set([ma,As]);go.some((_l,il)=>{if(Rs.has(_l))if(au===-1)au=il;else return Ll=il,!0;return!1})}if(Ll!==-1&&au!==Ll&&Sn){const Rs=go.slice(au,Ll+1),_l=[];na?Rs.forEach(Ms=>{ki.has(Ms)&&(_l.push(Ms),ki.delete(Ms))}):Rs.forEach(Ms=>{ki.has(Ms)||(_l.push(Ms),ki.add(Ms))});const il=Array.from(ki);gr==null||gr(!na,il.map(Ms=>hi(Ms)),_l.map(Ms=>hi(Ms))),po(il,"multiple")}else{const Rs=Yo;if(Sn){const _l=na?(0,ls._5)(Rs,As):(0,ls.L0)(Rs,As);qo(As,!na,_l,El)}else{const _l=(0,Ca.S)([].concat((0,ln.Z)(Rs),[As]),!0,pa,Qa),{checkedKeys:il,halfCheckedKeys:Ms}=_l;let Bc=il;if(na){const xA=new Set(il);xA.delete(As),Bc=(0,Ca.S)(Array.from(xA),{checked:!1,halfCheckedKeys:Ms},pa,Qa).checkedKeys}qo(As,!na,Bc,El)}}al(na?null:As)}})),checked:na}};const nl=(lo,mn,Lo)=>{const{node:cl,checked:As}=Ml(lo,mn,Lo);return Cn?Cn(As,mn,Lo,cl):cl};if(!Qi.includes(mo))if(Qi.findIndex(lo=>{var mn;return((mn=lo[mr])===null||mn===void 0?void 0:mn.columnType)==="EXPAND_COLUMN"})===0){const[lo,...mn]=Qi;Qi=[lo,mo].concat((0,ln.Z)(mn))}else Qi=[mo].concat((0,ln.Z)(Qi));const Gc=Qi.indexOf(mo);Qi=Qi.filter((lo,mn)=>lo!==mo||mn===Gc);const Us=Qi[Gc-1],Uc=Qi[Gc+1];let Hn=Pn;Hn===void 0&&((Uc==null?void 0:Uc.fixed)!==void 0?Hn=Uc.fixed:(Us==null?void 0:Us.fixed)!==void 0&&(Hn=Us.fixed)),Hn&&Us&&((zi=Us[mr])===null||zi===void 0?void 0:zi.columnType)==="EXPAND_COLUMN"&&Us.fixed===void 0&&(Us.fixed=Hn);const dc=D()(`${zn}-selection-col`,{[`${zn}-selection-col-with-dropdown`]:Yr&&Vr==="checkbox"}),Fu={fixed:Hn,width:tn,className:`${zn}-selection-column`,title:Ce.columnTitle||$a,render:nl,onCell:Ce.onCell,[mr]:{className:dc}};return Qi.map(lo=>lo===mo?Fu:lo)},[ea,ji,Ce,Yo,vs,cs,tn,rs,wa,ma,_a,gr,qo,Qa]),vs]},bA=x(89489),xl=x(59477),eA=x(6848);const rl="ascend",Id="descend";function ru(pe){return typeof pe.sorter=="object"&&typeof pe.sorter.multiple=="number"?pe.sorter.multiple:!1}function jA(pe){return typeof pe=="function"?pe:pe&&typeof pe=="object"&&pe.compare?pe.compare:!1}function cf(pe,Ce){return Ce?pe[pe.indexOf(Ce)+1]:pe[0]}function Wc(pe,Ce,Ge){let lt=[];function Ct(vt,$t){lt.push({column:vt,key:$s(vt,$t),multiplePriority:ru(vt),sortOrder:vt.sortOrder})}return(pe||[]).forEach((vt,$t)=>{const zt=To($t,Ge);vt.children?("sortOrder"in vt&&Ct(vt,zt),lt=[].concat((0,ln.Z)(lt),(0,ln.Z)(Wc(vt.children,Ce,zt)))):vt.sorter&&("sortOrder"in vt?Ct(vt,zt):Ce&&vt.defaultSortOrder&&lt.push({column:vt,key:$s(vt,zt),multiplePriority:ru(vt),sortOrder:vt.defaultSortOrder}))}),lt}function Yu(pe,Ce,Ge,lt,Ct,vt,$t,zt){return(Ce||[]).map((Qt,dr)=>{const Ir=To(dr,zt);let gr=Qt;if(gr.sorter){const tn=gr.sortDirections||Ct,Vr=gr.showSorterTooltip===void 0?$t:gr.showSorterTooltip,Yr=$s(gr,Ir),Pn=Ge.find(wa=>{let{key:Jn}=wa;return Jn===Yr}),Cn=Pn?Pn.sortOrder:null,Ln=cf(tn,Cn);let Sn;if(Qt.sortIcon)Sn=Qt.sortIcon({sortOrder:Cn});else{const wa=tn.includes(rl)&&S.createElement(xl.Z,{className:D()(`${pe}-column-sorter-up`,{active:Cn===rl})}),Jn=tn.includes(Id)&&S.createElement(bA.Z,{className:D()(`${pe}-column-sorter-down`,{active:Cn===Id})});Sn=S.createElement("span",{className:D()(`${pe}-column-sorter`,{[`${pe}-column-sorter-full`]:!!(wa&&Jn)})},S.createElement("span",{className:`${pe}-column-sorter-inner`,"aria-hidden":"true"},wa,Jn))}const{cancelSort:zn,triggerAsc:Pi,triggerDesc:Ri}=vt||{};let hi=zn;Ln===Id?hi=Ri:Ln===rl&&(hi=Pi);const ea=typeof Vr=="object"?Vr:{title:hi};gr=Object.assign(Object.assign({},gr),{className:D()(gr.className,{[`${pe}-column-sort`]:Cn}),title:wa=>{const Jn=S.createElement("div",{className:`${pe}-column-sorters`},S.createElement("span",{className:`${pe}-column-title`},Uo(Qt.title,wa)),Sn);return Vr?S.createElement(eA.Z,Object.assign({},ea),Jn):Jn},onHeaderCell:wa=>{const Jn=Qt.onHeaderCell&&Qt.onHeaderCell(wa)||{},vi=Jn.onClick,ni=Jn.onKeyDown;Jn.onClick=Hi=>{lt({column:Qt,key:Yr,sortOrder:Ln,multiplePriority:ru(Qt)}),vi==null||vi(Hi)},Jn.onKeyDown=Hi=>{Hi.keyCode===ms.Z.ENTER&&(lt({column:Qt,key:Yr,sortOrder:Ln,multiplePriority:ru(Qt)}),ni==null||ni(Hi))};const Tn=ys(Qt.title,{}),ii=Tn==null?void 0:Tn.toString();return Cn?Jn["aria-sort"]=Cn==="ascend"?"ascending":"descending":Jn["aria-label"]=ii||"",Jn.className=D()(Jn.className,`${pe}-column-has-sorters`),Jn.tabIndex=0,Qt.ellipsis&&(Jn.title=(Tn!=null?Tn:"").toString()),Jn}})}return"children"in gr&&(gr=Object.assign(Object.assign({},gr),{children:Yu(pe,gr.children,Ge,lt,Ct,vt,$t,Ir)})),gr})}function Oc(pe){const{column:Ce,sortOrder:Ge}=pe;return{column:Ce,order:Ge,field:Ce.dataIndex,columnKey:Ce.key}}function Fd(pe){const Ce=pe.filter(Ge=>{let{sortOrder:lt}=Ge;return lt}).map(Oc);return Ce.length===0&&pe.length?Object.assign(Object.assign({},Oc(pe[pe.length-1])),{column:void 0}):Ce.length<=1?Ce[0]||{}:Ce}function Xo(pe,Ce,Ge){const lt=Ce.slice().sort(($t,zt)=>zt.multiplePriority-$t.multiplePriority),Ct=pe.slice(),vt=lt.filter($t=>{let{column:{sorter:zt},sortOrder:Qt}=$t;return jA(zt)&&Qt});return vt.length?Ct.sort(($t,zt)=>{for(let Qt=0;Qt<vt.length;Qt+=1){const dr=vt[Qt],{column:{sorter:Ir},sortOrder:gr}=dr,tn=jA(Ir);if(tn&&gr){const Vr=tn($t,zt,gr);if(Vr!==0)return gr===rl?Vr:-Vr}}return 0}).map($t=>{const zt=$t[Ge];return zt?Object.assign(Object.assign({},$t),{[Ge]:Xo(zt,Ce,Ge)}):$t}):Ct}function No(pe){let{prefixCls:Ce,mergedColumns:Ge,onSorterChange:lt,sortDirections:Ct,tableLocale:vt,showSorterTooltip:$t}=pe;const[zt,Qt]=S.useState(Wc(Ge,!0)),dr=S.useMemo(()=>{let Yr=!0;const Pn=Wc(Ge,!1);if(!Pn.length)return zt;const Cn=[];function Ln(zn){Yr?Cn.push(zn):Cn.push(Object.assign(Object.assign({},zn),{sortOrder:null}))}let Sn=null;return Pn.forEach(zn=>{Sn===null?(Ln(zn),zn.sortOrder&&(zn.multiplePriority===!1?Yr=!1:Sn=!0)):(Sn&&zn.multiplePriority!==!1||(Yr=!1),Ln(zn))}),Cn},[Ge,zt]),Ir=S.useMemo(()=>{const Yr=dr.map(Pn=>{let{column:Cn,sortOrder:Ln}=Pn;return{column:Cn,order:Ln}});return{sortColumns:Yr,sortColumn:Yr[0]&&Yr[0].column,sortOrder:Yr[0]&&Yr[0].order}},[dr]);function gr(Yr){let Pn;Yr.multiplePriority===!1||!dr.length||dr[0].multiplePriority===!1?Pn=[Yr]:Pn=[].concat((0,ln.Z)(dr.filter(Cn=>{let{key:Ln}=Cn;return Ln!==Yr.key})),[Yr]),Qt(Pn),lt(Fd(Pn),Pn)}return[Yr=>Yu(Ce,Yr,dr,gr,Ct,vt,$t),dr,Ir,()=>Fd(dr)]}function Jo(pe,Ce){return pe.map(Ge=>{const lt=Object.assign({},Ge);return lt.title=Uo(Ge.title,Ce),"children"in lt&&(lt.children=Jo(lt.children,Ce)),lt})}function yc(pe){return[S.useCallback(Ge=>Jo(Ge,pe),[pe])]}var zl=Si((pe,Ce)=>{const{_renderTimes:Ge}=pe,{_renderTimes:lt}=Ce;return Ge!==lt}),qu=Ii((pe,Ce)=>{const{_renderTimes:Ge}=pe,{_renderTimes:lt}=Ce;return Ge!==lt}),yA=x(64993),zA=x(17313),Md=x(83116),Ld=x(37613),ZA=pe=>{const{componentCls:Ce}=pe,Ge=`${pe.lineWidth}px ${pe.lineType} ${pe.tableBorderColor}`,lt=(Ct,vt,$t)=>({[`&${Ce}-${Ct}`]:{[`> ${Ce}-container`]:{[`> ${Ce}-content, > ${Ce}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${vt}px -${$t+pe.lineWidth}px`}}}}}});return{[`${Ce}-wrapper`]:{[`${Ce}${Ce}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ce}-title`]:{border:Ge,borderBottom:0},[`> ${Ce}-container`]:{borderInlineStart:Ge,borderTop:Ge,[`
> ${Ce}-content,
> ${Ce}-header,
> ${Ce}-body,
> ${Ce}-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:Ge},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ge},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${Ce}-cell-fix-right-first::after`]:{borderInlineEnd:Ge}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${pe.tablePaddingVertical}px -${pe.tablePaddingHorizontal+pe.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:pe.lineWidth,bottom:0,borderInlineEnd:Ge,content:'""'}}}}}},[`&${Ce}-scroll-horizontal`]:{[`> ${Ce}-container > ${Ce}-body`]:{"> table > tbody":{[`
> tr${Ce}-expanded-row,
> tr${Ce}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},lt("middle",pe.tablePaddingVerticalMiddle,pe.tablePaddingHorizontalMiddle)),lt("small",pe.tablePaddingVerticalSmall,pe.tablePaddingHorizontalSmall)),{[`> ${Ce}-footer`]:{border:Ge,borderTop:0}}),[`${Ce}-cell`]:{[`${Ce}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${pe.lineWidth}px 0 ${pe.lineWidth}px ${pe.tableHeaderBg}`}},[`${Ce}-bordered ${Ce}-cell-scrollbar`]:{borderInlineEnd:Ge}}}},wA=pe=>{const{componentCls:Ce}=pe;return{[`${Ce}-wrapper`]:{[`${Ce}-cell-ellipsis`]:Object.assign(Object.assign({},zA.vS),{wordBreak:"keep-all",[`
&${Ce}-cell-fix-left-last,
&${Ce}-cell-fix-right-first
`]:{overflow:"visible",[`${Ce}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ce}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},y0=pe=>{const{componentCls:Ce}=pe;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody > tr${Ce}-placeholder`]:{textAlign:"center",color:pe.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:pe.colorBgContainer}}}}},nu=x(15969),Af=pe=>{const{componentCls:Ce,antCls:Ge,controlInteractiveSize:lt,motionDurationSlow:Ct,lineWidth:vt,paddingXS:$t,lineType:zt,tableBorderColor:Qt,tableExpandIconBg:dr,tableExpandColumnWidth:Ir,borderRadius:gr,fontSize:tn,fontSizeSM:Vr,lineHeight:Yr,tablePaddingVertical:Pn,tablePaddingHorizontal:Cn,tableExpandedRowBg:Ln,paddingXXS:Sn}=pe,zn=lt/2-vt,Pi=zn*2+vt*3,Ri=`${vt}px ${zt} ${Qt}`,hi=Sn-vt;return{[`${Ce}-wrapper`]:{[`${Ce}-expand-icon-col`]:{width:Ir},[`${Ce}-row-expand-icon-cell`]:{textAlign:"center",[`${Ce}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ce}-row-indent`]:{height:1,float:"left"},[`${Ce}-row-expand-icon`]:Object.assign(Object.assign({},(0,nu.N)(pe)),{position:"relative",float:"left",boxSizing:"border-box",width:Pi,height:Pi,padding:0,color:"inherit",lineHeight:`${Pi}px`,background:dr,border:Ri,borderRadius:gr,transform:`scale(${lt/Pi})`,transition:`all ${Ct}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Ct} ease-out`,content:'""'},"&::before":{top:zn,insetInlineEnd:hi,insetInlineStart:hi,height:vt},"&::after":{top:hi,bottom:hi,insetInlineStart:zn,width:vt,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"}}),[`${Ce}-row-indent + ${Ce}-row-expand-icon`]:{marginTop:(tn*Yr-vt*3)/2-Math.ceil((Vr*1.4-vt*3)/2),marginInlineEnd:$t},[`tr${Ce}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Ln}},[`${Ge}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ce}-expanded-row-fixed`]:{position:"relative",margin:`-${Pn}px -${Cn}px`,padding:`${Pn}px ${Cn}px`}}}},Kf=pe=>{const{componentCls:Ce,antCls:Ge,iconCls:lt,tableFilterDropdownWidth:Ct,tableFilterDropdownSearchWidth:vt,paddingXXS:$t,paddingXS:zt,colorText:Qt,lineWidth:dr,lineType:Ir,tableBorderColor:gr,tableHeaderIconColor:tn,fontSizeSM:Vr,tablePaddingHorizontal:Yr,borderRadius:Pn,motionDurationSlow:Cn,colorTextDescription:Ln,colorPrimary:Sn,tableHeaderFilterActiveBg:zn,colorTextDisabled:Pi,tableFilterDropdownBg:Ri,tableFilterDropdownHeight:hi,controlItemBgHover:ea,controlItemBgActive:wa,boxShadowSecondary:Jn,filterDropdownMenuBg:vi}=pe,ni=`${Ge}-dropdown`,Tn=`${Ce}-filter-dropdown`,ii=`${Ge}-tree`,Hi=`${dr}px ${Ir} ${gr}`;return[{[`${Ce}-wrapper`]:{[`${Ce}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ce}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-$t,marginInline:`${$t}px ${-Yr/2}px`,padding:`0 ${$t}px`,color:tn,fontSize:Vr,borderRadius:Pn,cursor:"pointer",transition:`all ${Cn}`,"&:hover":{color:Ln,background:zn},"&.active":{color:Sn}}}},{[`${Ge}-dropdown`]:{[Tn]:Object.assign(Object.assign({},(0,zA.Wf)(pe)),{minWidth:Ct,backgroundColor:Ri,borderRadius:Pn,boxShadow:Jn,overflow:"hidden",[`${ni}-menu`]:{maxHeight:hi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:vi,"&:empty::after":{display:"block",padding:`${zt}px 0`,color:Pi,fontSize:Vr,textAlign:"center",content:'"Not Found"'}},[`${Tn}-tree`]:{paddingBlock:`${zt}px 0`,paddingInline:zt,[ii]:{padding:0},[`${ii}-treenode ${ii}-node-content-wrapper:hover`]:{backgroundColor:ea},[`${ii}-treenode-checkbox-checked ${ii}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:wa}}},[`${Tn}-search`]:{padding:zt,borderBottom:Hi,"&-input":{input:{minWidth:vt},[lt]:{color:Pi}}},[`${Tn}-checkall`]:{width:"100%",marginBottom:$t,marginInlineStart:$t},[`${Tn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${zt-dr}px ${zt}px`,overflow:"hidden",borderTop:Hi}})}},{[`${Ge}-dropdown ${Tn}, ${Tn}-submenu`]:{[`${Ge}-checkbox-wrapper + span`]:{paddingInlineStart:zt,color:Qt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Eu=pe=>{const{componentCls:Ce,lineWidth:Ge,colorSplit:lt,motionDurationSlow:Ct,zIndexTableFixed:vt,tableBg:$t,zIndexTableSticky:zt}=pe,Qt=lt;return{[`${Ce}-wrapper`]:{[`
${Ce}-cell-fix-left,
${Ce}-cell-fix-right
`]:{position:"sticky !important",zIndex:vt,background:$t},[`
${Ce}-cell-fix-left-first::after,
${Ce}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ge,width:30,transform:"translateX(100%)",transition:`box-shadow ${Ct}`,content:'""',pointerEvents:"none"},[`${Ce}-cell-fix-left-all::after`]:{display:"none"},[`
${Ce}-cell-fix-right-first::after,
${Ce}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Ge,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Ct}`,content:'""',pointerEvents:"none"},[`${Ce}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:zt+1,width:30,transition:`box-shadow ${Ct}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ce}-ping-left`]:{[`&:not(${Ce}-has-fix-left) ${Ce}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Qt}`}},[`
${Ce}-cell-fix-left-first::after,
${Ce}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Qt}`},[`${Ce}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ce}-ping-right`]:{[`&:not(${Ce}-has-fix-right) ${Ce}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Qt}`}},[`
${Ce}-cell-fix-right-first::after,
${Ce}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Qt}`}}}}},Cl=pe=>{const{componentCls:Ce,antCls:Ge}=pe;return{[`${Ce}-wrapper`]:{[`${Ce}-pagination${Ge}-pagination`]:{margin:`${pe.margin}px 0`},[`${Ce}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:pe.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Nc=pe=>{const{componentCls:Ce,tableRadius:Ge}=pe;return{[`${Ce}-wrapper`]:{[Ce]:{[`${Ce}-title, ${Ce}-header`]:{borderRadius:`${Ge}px ${Ge}px 0 0`},[`${Ce}-title + ${Ce}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ce}-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:Ge,borderStartEndRadius:Ge,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ge},"> *:last-child":{borderStartEndRadius:Ge}}},"&-footer":{borderRadius:`0 0 ${Ge}px ${Ge}px`}}}}},w0=pe=>{const{componentCls:Ce}=pe;return{[`${Ce}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ce}-pagination-left`]:{justifyContent:"flex-end"},[`${Ce}-pagination-right`]:{justifyContent:"flex-start"},[`${Ce}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ce}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ce}-row-indent`]:{float:"right"}}}}},Bh=pe=>{const{componentCls:Ce,antCls:Ge,iconCls:lt,fontSizeIcon:Ct,padding:vt,paddingXS:$t,tableHeaderIconColor:zt,tableHeaderIconColorHover:Qt,tableSelectionColumnWidth:dr}=pe;return{[`${Ce}-wrapper`]:{[`${Ce}-selection-col`]:{width:dr,[`&${Ce}-selection-col-with-dropdown`]:{width:dr+Ct+vt/4}},[`${Ce}-bordered ${Ce}-selection-col`]:{width:dr+$t*2,[`&${Ce}-selection-col-with-dropdown`]:{width:dr+Ct+vt/4+$t*2}},[`
table tr th${Ce}-selection-column,
table tr td${Ce}-selection-column
`]:{paddingInlineEnd:pe.paddingXS,paddingInlineStart:pe.paddingXS,textAlign:"center",[`${Ge}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ce}-selection-column${Ce}-cell-fix-left`]:{zIndex:pe.zIndexTableFixed+1},[`table tr th${Ce}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ce}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ce}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${pe.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${pe.tablePaddingHorizontal/4}px`,[lt]:{color:zt,fontSize:Ct,verticalAlign:"baseline","&:hover":{color:Qt}}}}}},Dd=pe=>{const{componentCls:Ce}=pe,Ge=(lt,Ct,vt,$t)=>({[`${Ce}${Ce}-${lt}`]:{fontSize:$t,[`
${Ce}-title,
${Ce}-footer,
${Ce}-cell,
${Ce}-thead > tr > th,
${Ce}-tbody > tr > th,
${Ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Ct}px ${vt}px`},[`${Ce}-filter-trigger`]:{marginInlineEnd:`-${vt/2}px`},[`${Ce}-expanded-row-fixed`]:{margin:`-${Ct}px -${vt}px`},[`${Ce}-tbody`]:{[`${Ce}-wrapper:only-child ${Ce}`]:{marginBlock:`-${Ct}px`,marginInline:`${pe.tableExpandColumnWidth-vt}px -${vt}px`}},[`${Ce}-selection-column`]:{paddingInlineStart:`${vt/4}px`}}});return{[`${Ce}-wrapper`]:Object.assign(Object.assign({},Ge("middle",pe.tablePaddingVerticalMiddle,pe.tablePaddingHorizontalMiddle,pe.tableFontSizeMiddle)),Ge("small",pe.tablePaddingVerticalSmall,pe.tablePaddingHorizontalSmall,pe.tableFontSizeSmall))}},iu=pe=>{const{componentCls:Ce,marginXXS:Ge,fontSizeIcon:lt,tableHeaderIconColor:Ct,tableHeaderIconColorHover:vt}=pe;return{[`${Ce}-wrapper`]:{[`${Ce}-thead th${Ce}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${pe.motionDurationSlow}`,"&:hover":{background:pe.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:pe.colorPrimary},[`
&${Ce}-cell-fix-left:hover,
&${Ce}-cell-fix-right:hover
`]:{background:pe.tableFixedHeaderSortActiveBg}},[`${Ce}-thead th${Ce}-column-sort`]:{background:pe.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ce}-column-sort`]:{background:pe.tableBodySortBg},[`${Ce}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ce}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ce}-column-sorter`]:{marginInlineStart:Ge,color:Ct,fontSize:0,transition:`color ${pe.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:lt,"&.active":{color:pe.colorPrimary}},[`${Ce}-column-sorter-up + ${Ce}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ce}-column-sorters:hover ${Ce}-column-sorter`]:{color:vt}}}},wc=pe=>{const{componentCls:Ce,opacityLoading:Ge,tableScrollThumbBg:lt,tableScrollThumbBgHover:Ct,tableScrollThumbSize:vt,tableScrollBg:$t,zIndexTableSticky:zt,stickyScrollBarBorderRadius:Qt}=pe,dr=`${pe.lineWidth}px ${pe.lineType} ${pe.tableBorderColor}`;return{[`${Ce}-wrapper`]:{[`${Ce}-sticky`]:{"&-holder":{position:"sticky",zIndex:zt,background:pe.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${vt}px !important`,zIndex:zt,display:"flex",alignItems:"center",background:$t,borderTop:dr,opacity:Ge,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:vt,backgroundColor:lt,borderRadius:Qt,transition:`all ${pe.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ct}}}}}}},ed=pe=>{const{componentCls:Ce,lineWidth:Ge,tableBorderColor:lt}=pe,Ct=`${Ge}px ${pe.lineType} ${lt}`;return{[`${Ce}-wrapper`]:{[`${Ce}-summary`]:{position:"relative",zIndex:pe.zIndexTableFixed,background:pe.tableBg,"> tr":{"> th, > td":{borderBottom:Ct}}},[`div${Ce}-summary`]:{boxShadow:`0 -${Ge}px 0 ${lt}`}}}},jf=pe=>{const{componentCls:Ce}=pe,Ge=`${pe.lineWidth}px ${pe.lineType} ${pe.tableBorderColor}`,lt=`${Ce}-expanded-row-cell`;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody-virtual`]:{[`${Ce}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ce}-cell`]:{borderBottom:Ge},[`${Ce}-expanded-row`]:{[`${lt}${lt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${pe.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ce}-bordered`]:{[`${Ce}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ge,position:"absolute"},[`${Ce}-cell`]:{borderInlineEnd:Ge,[`&${Ce}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-pe.lineWidth,borderInlineStart:Ge}}}}}}};const Tc=pe=>{const{componentCls:Ce,fontWeightStrong:Ge,tablePaddingVertical:lt,tablePaddingHorizontal:Ct,lineWidth:vt,lineType:$t,tableBorderColor:zt,tableFontSize:Qt,tableBg:dr,tableRadius:Ir,tableHeaderTextColor:gr,motionDurationMid:tn,tableHeaderBg:Vr,tableHeaderCellSplitColor:Yr,tableRowHoverBg:Pn,tableSelectedRowBg:Cn,tableSelectedRowHoverBg:Ln,tableFooterTextColor:Sn,tableFooterBg:zn,paddingContentVerticalLG:Pi}=pe,Ri=`${vt}px ${$t} ${zt}`;return{[`${Ce}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,zA.dF)()),{[Ce]:Object.assign(Object.assign({},(0,zA.Wf)(pe)),{fontSize:Qt,background:dr,borderRadius:`${Ir}px ${Ir}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ir}px ${Ir}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Ce}-cell,
${Ce}-thead > tr > th,
${Ce}-tbody > tr > th,
${Ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Pi}px ${Ct}px`,overflowWrap:"break-word"},[`${Ce}-title`]:{padding:`${lt}px ${Ct}px`},[`${Ce}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:gr,fontWeight:Ge,textAlign:"start",background:Vr,borderBottom:Ri,transition:`background ${tn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ce}-selection-column):not(${Ce}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Yr,transform:"translateY(-50%)",transition:`background-color ${tn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ce}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${tn}, border-color ${tn}`,borderBottom:Ri,[`
> ${Ce}-wrapper:only-child,
> ${Ce}-expanded-row-fixed > ${Ce}-wrapper:only-child
`]:{[Ce]:{marginBlock:`-${lt}px`,marginInline:`${pe.tableExpandColumnWidth-Ct}px -${Ct}px`,[`${Ce}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:gr,fontWeight:Ge,textAlign:"start",background:Vr,borderBottom:Ri,transition:`background ${tn} ease`},[`
&${Ce}-row:hover > th,
&${Ce}-row:hover > td,
> th${Ce}-cell-row-hover,
> td${Ce}-cell-row-hover
`]:{background:Pn},[`&${Ce}-row-selected`]:{"> th, > td":{background:Cn},"&:hover > th, &:hover > td":{background:Ln}}}},[`${Ce}-footer`]:{padding:`${lt}px ${Ct}px`,color:Sn,background:zn}})}};var td=(0,Md.Z)("Table",pe=>{const{colorTextHeading:Ce,colorSplit:Ge,colorIcon:lt,colorIconHover:Ct,opacityLoading:vt,colorBgContainer:$t,controlInteractiveSize:zt,headerBg:Qt,headerColor:dr,headerSortActiveBg:Ir,headerSortHoverBg:gr,bodySortBg:tn,rowHoverBg:Vr,rowSelectedBg:Yr,rowSelectedHoverBg:Pn,rowExpandedBg:Cn,cellPaddingBlock:Ln,cellPaddingInline:Sn,cellPaddingBlockMD:zn,cellPaddingInlineMD:Pi,cellPaddingBlockSM:Ri,cellPaddingInlineSM:hi,borderColor:ea,footerBg:wa,footerColor:Jn,headerBorderRadius:vi,cellFontSize:ni,cellFontSizeMD:Tn,cellFontSizeSM:ii,headerSplitColor:Hi,fixedHeaderSortActiveBg:Oa,headerFilterHoverBg:pa,filterDropdownBg:ji,expandIconBg:_a,selectionColumnWidth:Qa,stickyScrollBarBg:Yo}=pe,so=new yA.C(lt),vs=new yA.C(Ct),cs=2,ma=(0,Ld.TS)(pe,{tableFontSize:ni,tableBg:$t,tableRadius:vi,tablePaddingVertical:Ln,tablePaddingHorizontal:Sn,tablePaddingVerticalMiddle:zn,tablePaddingHorizontalMiddle:Pi,tablePaddingVerticalSmall:Ri,tablePaddingHorizontalSmall:hi,tableBorderColor:ea,tableHeaderTextColor:dr,tableHeaderBg:Qt,tableFooterTextColor:Jn,tableFooterBg:wa,tableHeaderCellSplitColor:Hi,tableHeaderSortBg:Ir,tableHeaderSortHoverBg:gr,tableHeaderIconColor:so.clone().setAlpha(so.getAlpha()*vt).toRgbString(),tableHeaderIconColorHover:vs.clone().setAlpha(vs.getAlpha()*vt).toRgbString(),tableBodySortBg:tn,tableFixedHeaderSortActiveBg:Oa,tableHeaderFilterActiveBg:pa,tableFilterDropdownBg:ji,tableRowHoverBg:Vr,tableSelectedRowBg:Yr,tableSelectedRowHoverBg:Pn,zIndexTableFixed:cs,zIndexTableSticky:cs+1,tableFontSizeMiddle:Tn,tableFontSizeSmall:ii,tableSelectionColumnWidth:Qa,tableExpandIconBg:_a,tableExpandColumnWidth:zt+2*pe.padding,tableExpandedRowBg:Cn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Yo,tableScrollThumbBgHover:Ce,tableScrollBg:Ge});return[Tc(ma),Cl(ma),ed(ma),iu(ma),Kf(ma),ZA(ma),Nc(ma),Af(ma),ed(ma),y0(ma),Bh(ma),Eu(ma),wc(ma),wA(ma),Dd(ma),w0(ma),jf(ma)]},pe=>{const{colorFillAlter:Ce,colorBgContainer:Ge,colorTextHeading:lt,colorFillSecondary:Ct,colorFillContent:vt,controlItemBgActive:$t,controlItemBgActiveHover:zt,padding:Qt,paddingSM:dr,paddingXS:Ir,colorBorderSecondary:gr,borderRadiusLG:tn,fontSize:Vr,controlHeight:Yr,colorTextPlaceholder:Pn}=pe,Cn=new yA.C(Ct).onBackground(Ge).toHexShortString(),Ln=new yA.C(vt).onBackground(Ge).toHexShortString(),Sn=new yA.C(Ce).onBackground(Ge).toHexShortString();return{headerBg:Sn,headerColor:lt,headerSortActiveBg:Cn,headerSortHoverBg:Ln,bodySortBg:Sn,rowHoverBg:Sn,rowSelectedBg:$t,rowSelectedHoverBg:zt,rowExpandedBg:Ce,cellPaddingBlock:Qt,cellPaddingInline:Qt,cellPaddingBlockMD:dr,cellPaddingInlineMD:Ir,cellPaddingBlockSM:Ir,cellPaddingInlineSM:Ir,borderColor:gr,headerBorderRadius:tn,footerBg:Sn,footerColor:lt,cellFontSize:Vr,cellFontSizeMD:Vr,cellFontSizeSM:Vr,headerSplitColor:gr,fixedHeaderSortActiveBg:Cn,headerFilterHoverBg:vt,filterDropdownMenuBg:Ge,filterDropdownBg:Ge,expandIconBg:Ge,selectionColumnWidth:Yr,stickyScrollBarBg:Pn,stickyScrollBarBorderRadius:100}});const df=[],rd=(pe,Ce)=>{const{prefixCls:Ge,className:lt,rootClassName:Ct,style:vt,size:$t,bordered:zt,dropdownPrefixCls:Qt,dataSource:dr,pagination:Ir,rowSelection:gr,rowKey:tn="key",rowClassName:Vr,columns:Yr,children:Pn,childrenColumnName:Cn,onChange:Ln,getPopupContainer:Sn,loading:zn,expandIcon:Pi,expandable:Ri,expandedRowRender:hi,expandIconColumnIndex:ea,indentSize:wa,scroll:Jn,sortDirections:vi,locale:ni,showSorterTooltip:Tn=!0,virtual:ii}=pe,Hi=S.useMemo(()=>Yr||be(Pn),[Yr,Pn]),Oa=S.useMemo(()=>Hi.some(io=>io.responsive),[Hi]),pa=(0,Io.Z)(Oa),ji=S.useMemo(()=>{const io=new Set(Object.keys(pa).filter(Zo=>pa[Zo]));return Hi.filter(Zo=>!Zo.responsive||Zo.responsive.some(Vl=>io.has(Vl)))},[Hi,pa]),_a=(0,Zi.Z)(pe,["className","style","columns"]),{locale:Qa=Bo.Z,direction:Yo,table:so,renderEmpty:vs,getPrefixCls:cs,getPopupContainer:ma}=S.useContext(Is.E_),al=(0,fa.Z)($t),po=Object.assign(Object.assign({},Qa.Table),ni),qo=dr||df,rs=cs("table",Ge),xc=cs("dropdown",Qt),ai=Object.assign({childrenColumnName:Cn,expandIconColumnIndex:ea},Ri),{childrenColumnName:zi="children"}=ai,Qi=S.useMemo(()=>qo.some(io=>io==null?void 0:io[zi])?"nest":hi||Ri&&Ri.expandedRowRender?"row":null,[qo]),ki={body:S.useRef()},go=S.useMemo(()=>typeof tn=="function"?tn:io=>io==null?void 0:io[tn],[tn]),[Di]=Ts(qo,zi,go),ca={},ja=function(io,Zo){let Vl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var us,kl,Wl;const Js=Object.assign(Object.assign({},ca),io);Vl&&((us=ca.resetPagination)===null||us===void 0||us.call(ca),!((kl=Js.pagination)===null||kl===void 0)&&kl.current&&(Js.pagination.current=1),Ir&&Ir.onChange&&Ir.onChange(1,(Wl=Js.pagination)===null||Wl===void 0?void 0:Wl.pageSize)),Jn&&Jn.scrollToFirstRowOnChange!==!1&&ki.body.current&&(0,Fa.Z)(0,{getContainer:()=>ki.body.current}),Ln==null||Ln(Js.pagination,Js.filters,Js.sorter,{currentDataSource:gA(Xo(qo,Js.sorterStates,zi),Js.filterStates),action:Zo})},$a=(io,Zo)=>{ja({sorter:io,sorterStates:Zo},"sort",!1)},[Ml,nl,Gc,Us]=No({prefixCls:rs,mergedColumns:ji,onSorterChange:$a,sortDirections:vi||["ascend","descend"],tableLocale:po,showSorterTooltip:Tn}),Uc=S.useMemo(()=>Xo(qo,nl,zi),[qo,nl]);ca.sorter=Us(),ca.sorterStates=nl;const Hn=(io,Zo)=>{ja({filters:io,filterStates:Zo},"filter",!0)},[dc,Fu,lo]=qc({prefixCls:rs,locale:po,dropdownPrefixCls:xc,mergedColumns:ji,onFilterChange:Hn,getPopupContainer:Sn||ma}),mn=gA(Uc,Fu);ca.filters=lo,ca.filterStates=Fu;const Lo=S.useMemo(()=>{const io={};return Object.keys(lo).forEach(Zo=>{lo[Zo]!==null&&(io[Zo]=lo[Zo])}),Object.assign(Object.assign({},Gc),{filters:io})},[Gc,lo]),[cl]=yc(Lo),As=(io,Zo)=>{ja({pagination:Object.assign(Object.assign({},ca.pagination),{current:io,pageSize:Zo})},"paginate")},[na,Sl]=vA(mn.length,As,Ir);ca.pagination=Ir===!1?{}:eo(na,Ir),ca.resetPagination=Sl;const Zl=S.useMemo(()=>{if(Ir===!1||!na.pageSize)return mn;const{current:io=1,total:Zo,pageSize:Vl=jl}=na;return mn.length<Zo?mn.length>Vl?mn.slice((io-1)*Vl,io*Vl):mn:mn.slice((io-1)*Vl,io*Vl)},[!!Ir,mn,na&&na.current,na&&na.pageSize,na&&na.total]),[Rc,Cc]=Xs({prefixCls:rs,data:mn,pageData:Zl,getRowKey:go,getRecordByKey:Di,expandType:Qi,childrenColumnName:zi,locale:po,getPopupContainer:Sn||ma},gr),El=(io,Zo,Vl)=>{let us;return typeof Vr=="function"?us=D()(Vr(io,Zo,Vl)):us=D()(Vr),D()({[`${rs}-row-selected`]:Cc.has(go(io,Zo))},us)};ai.__PARENT_RENDER_ICON__=ai.expandIcon,ai.expandIcon=ai.expandIcon||Pi||Ps(po),Qi==="nest"&&ai.expandIconColumnIndex===void 0?ai.expandIconColumnIndex=gr?1:0:ai.expandIconColumnIndex>0&&gr&&(ai.expandIconColumnIndex-=1),typeof ai.indentSize!="number"&&(ai.indentSize=typeof wa=="number"?wa:15);const Al=S.useCallback(io=>cl(Rc(dc(Ml(io)))),[Ml,dc,Rc]);let au,Ll;if(Ir!==!1&&(na!=null&&na.total)){let io;na.size?io=na.size:io=al==="small"||al==="middle"?"small":void 0;const Zo=kl=>S.createElement(Po.Z,Object.assign({},na,{className:D()(`${rs}-pagination ${rs}-pagination-${kl}`,na.className),size:io})),Vl=Yo==="rtl"?"left":"right",{position:us}=na;if(us!==null&&Array.isArray(us)){const kl=us.find(BA=>BA.includes("top")),Wl=us.find(BA=>BA.includes("bottom")),Js=us.every(BA=>`${BA}`=="none");!kl&&!Wl&&!Js&&(Ll=Zo(Vl)),kl&&(au=Zo(kl.toLowerCase().replace("top",""))),Wl&&(Ll=Zo(Wl.toLowerCase().replace("bottom","")))}else Ll=Zo(Vl)}let Rs;typeof zn=="boolean"?Rs={spinning:zn}:typeof zn=="object"&&(Rs=Object.assign({spinning:!0},zn));const[_l,il]=td(rs),[,Ms]=(0,ho.Z)(),Bc=D()(`${rs}-wrapper`,so==null?void 0:so.className,{[`${rs}-wrapper-rtl`]:Yo==="rtl"},lt,Ct,il),xA=Object.assign(Object.assign({},so==null?void 0:so.style),vt),PA=ni&&ni.emptyText||(vs==null?void 0:vs("Table"))||S.createElement(za.Z,{componentName:"Table"}),CA=ii?qu:zl,ff={},zf=S.useMemo(()=>{const{fontSize:io,lineHeight:Zo,padding:Vl,paddingXS:us,paddingSM:kl}=Ms,Wl=Math.floor(io*Zo);switch(al){case"large":return Vl*2+Wl;case"small":return us*2+Wl;default:return kl*2+Wl}},[Ms,al]);return ii&&(ff.listItemHeight=zf),_l(S.createElement("div",{ref:Ce,className:Bc,style:xA},S.createElement(Ns.Z,Object.assign({spinning:!1},Rs),au,S.createElement(CA,Object.assign({},ff,_a,{columns:ji,direction:Yo,expandable:ai,prefixCls:rs,className:D()({[`${rs}-middle`]:al==="middle",[`${rs}-small`]:al==="small",[`${rs}-bordered`]:zt,[`${rs}-empty`]:qo.length===0}),data:Zl,rowKey:go,rowClassName:El,emptyText:PA,internalHooks:Ae,internalRefs:ki,transformColumns:Al})),Ll)))};var x0=S.forwardRef(rd);const C0=(pe,Ce)=>{const Ge=S.useRef(0);return Ge.current+=1,S.createElement(x0,Object.assign({},pe,{ref:Ce,_renderTimes:Ge.current}))},$l=S.forwardRef(C0);$l.SELECTION_COLUMN=mo,$l.EXPAND_COLUMN=me,$l.SELECTION_ALL=jo,$l.SELECTION_INVERT=zo,$l.SELECTION_NONE=Oo,$l.Column=Vn,$l.ColumnGroup=Li,$l.Summary=H;var nd=$l,B0=nd},99313:function(un,Tt,x){"use strict";x.d(Tt,{default:function(){return sa}});var me=x(99267),Ae=x(18785),P=x(62772),De=x(92310),te=x.n(De),V=x(54476),S=x(20068),g=x(33885),I=x(42978),v=x(76190),z=x(75931),E=x(59301),M=x(49658),N=x(18929),T=x(77900),L=(0,E.createContext)(null),ee=E.forwardRef(function(be,Ne){var ke=be.prefixCls,Xe=be.className,Pt=be.style,Dt=be.id,Er=be.active,rr=be.tabKey,Nr=be.children;return E.createElement("div",{id:Dt&&"".concat(Dt,"-panel-").concat(rr),role:"tabpanel",tabIndex:Er?0:-1,"aria-labelledby":Dt&&"".concat(Dt,"-tab-").concat(rr),"aria-hidden":!Er,style:Pt,className:te()(ke,Er&&"".concat(ke,"-active"),Xe),ref:Ne},Nr)}),R=ee,le=["key","forceRender","style","className"];function X(be){var Ne=be.id,ke=be.activeKey,Xe=be.animated,Pt=be.tabPosition,Dt=be.destroyInactiveTabPane,Er=E.useContext(L),rr=Er.prefixCls,Nr=Er.tabs,Hr=Xe.tabPane,an="".concat(rr,"-tabpane");return E.createElement("div",{className:te()("".concat(rr,"-content-holder"))},E.createElement("div",{className:te()("".concat(rr,"-content"),"".concat(rr,"-content-").concat(Pt),(0,S.Z)({},"".concat(rr,"-content-animated"),Hr))},Nr.map(function(jr){var Rr=jr.key,en=jr.forceRender,wn=jr.style,on=jr.className,On=(0,z.Z)(jr,le),Qn=Rr===ke;return E.createElement(T.default,(0,V.Z)({key:Rr,visible:Qn,forceRender:en,removeOnLeave:!!Dt,leavedClassName:"".concat(an,"-hidden")},Xe.tabPaneMotion),function(di,Nn){var Gn=di.style,Vt=di.className;return E.createElement(R,(0,V.Z)({},On,{prefixCls:an,id:Ne,tabKey:Rr,animated:Hr,active:Qn,style:(0,g.Z)((0,g.Z)({},wn),Gn),className:te()(on,Vt),ref:Nn}))})})))}var q=x(94480),W=x(29301),K=x(6089),se=x(8654),fe={width:0,height:0,left:0,top:0};function Oe(be,Ne,ke){return(0,E.useMemo)(function(){for(var Xe,Pt=new Map,Dt=Ne.get((Xe=be[0])===null||Xe===void 0?void 0:Xe.key)||fe,Er=Dt.left+Dt.width,rr=0;rr<be.length;rr+=1){var Nr=be[rr].key,Hr=Ne.get(Nr);if(!Hr){var an;Hr=Ne.get((an=be[rr-1])===null||an===void 0?void 0:an.key)||fe}var jr=Pt.get(Nr)||(0,g.Z)({},Hr);jr.right=Er-jr.left-jr.width,Pt.set(Nr,jr)}return Pt},[be.map(function(Xe){return Xe.key}).join("_"),Ne,ke])}function Se(be,Ne){var ke=E.useRef(be),Xe=E.useState({}),Pt=(0,I.Z)(Xe,2),Dt=Pt[1];function Er(rr){var Nr=typeof rr=="function"?rr(ke.current):rr;Nr!==ke.current&&Ne(Nr,ke.current),ke.current=Nr,Dt({})}return[ke.current,Er]}var Ue=.1,J=.01,ue=20,D=Math.pow(.995,ue);function Ve(be,Ne){var ke=(0,E.useState)(),Xe=(0,I.Z)(ke,2),Pt=Xe[0],Dt=Xe[1],Er=(0,E.useState)(0),rr=(0,I.Z)(Er,2),Nr=rr[0],Hr=rr[1],an=(0,E.useState)(0),jr=(0,I.Z)(an,2),Rr=jr[0],en=jr[1],wn=(0,E.useState)(),on=(0,I.Z)(wn,2),On=on[0],Qn=on[1],di=(0,E.useRef)();function Nn(jt){var or=jt.touches[0],lr=or.screenX,Pr=or.screenY;Dt({x:lr,y:Pr}),window.clearInterval(di.current)}function Gn(jt){if(Pt){jt.preventDefault();var or=jt.touches[0],lr=or.screenX,Pr=or.screenY;Dt({x:lr,y:Pr});var yn=lr-Pt.x,Bn=Pr-Pt.y;Ne(yn,Bn);var li=Date.now();Hr(li),en(li-Nr),Qn({x:yn,y:Bn})}}function Vt(){if(Pt&&(Dt(null),Qn(null),On)){var jt=On.x/Rr,or=On.y/Rr,lr=Math.abs(jt),Pr=Math.abs(or);if(Math.max(lr,Pr)<Ue)return;var yn=jt,Bn=or;di.current=window.setInterval(function(){if(Math.abs(yn)<J&&Math.abs(Bn)<J){window.clearInterval(di.current);return}yn*=D,Bn*=D,Ne(yn*ue,Bn*ue)},ue)}}var Xt=(0,E.useRef)();function Yt(jt){var or=jt.deltaX,lr=jt.deltaY,Pr=0,yn=Math.abs(or),Bn=Math.abs(lr);yn===Bn?Pr=Xt.current==="x"?or:lr:yn>Bn?(Pr=or,Xt.current="x"):(Pr=lr,Xt.current="y"),Ne(-Pr,-Pr)&&jt.preventDefault()}var er=(0,E.useRef)(null);er.current={onTouchStart:Nn,onTouchMove:Gn,onTouchEnd:Vt,onWheel:Yt},E.useEffect(function(){function jt(yn){er.current.onTouchStart(yn)}function or(yn){er.current.onTouchMove(yn)}function lr(yn){er.current.onTouchEnd(yn)}function Pr(yn){er.current.onWheel(yn)}return document.addEventListener("touchmove",or,{passive:!1}),document.addEventListener("touchend",lr,{passive:!1}),be.current.addEventListener("touchstart",jt,{passive:!1}),be.current.addEventListener("wheel",Pr),function(){document.removeEventListener("touchmove",or),document.removeEventListener("touchend",lr)}},[])}var Me=x(34280);function we(be){var Ne=(0,E.useState)(0),ke=(0,I.Z)(Ne,2),Xe=ke[0],Pt=ke[1],Dt=(0,E.useRef)(0),Er=(0,E.useRef)();return Er.current=be,(0,Me.o)(function(){var rr;(rr=Er.current)===null||rr===void 0||rr.call(Er)},[Xe]),function(){Dt.current===Xe&&(Dt.current+=1,Pt(Dt.current))}}function Te(be){var Ne=(0,E.useRef)([]),ke=(0,E.useState)({}),Xe=(0,I.Z)(ke,2),Pt=Xe[1],Dt=(0,E.useRef)(typeof be=="function"?be():be),Er=we(function(){var Nr=Dt.current;Ne.current.forEach(function(Hr){Nr=Hr(Nr)}),Ne.current=[],Dt.current=Nr,Pt({})});function rr(Nr){Ne.current.push(Nr),Er()}return[Dt.current,rr]}var ve={width:0,height:0,left:0,top:0,right:0};function Fe(be,Ne,ke,Xe,Pt,Dt,Er){var rr=Er.tabs,Nr=Er.tabPosition,Hr=Er.rtl,an,jr,Rr;return["top","bottom"].includes(Nr)?(an="width",jr=Hr?"right":"left",Rr=Math.abs(ke)):(an="height",jr="top",Rr=-ke),(0,E.useMemo)(function(){if(!rr.length)return[0,0];for(var en=rr.length,wn=en,on=0;on<en;on+=1){var On=be.get(rr[on].key)||ve;if(On[jr]+On[an]>Rr+Ne){wn=on-1;break}}for(var Qn=0,di=en-1;di>=0;di-=1){var Nn=be.get(rr[di].key)||ve;if(Nn[jr]<Rr){Qn=di+1;break}}return Qn>=wn?[0,0]:[Qn,wn]},[be,Ne,Xe,Pt,Dt,Rr,Nr,rr.map(function(en){return en.key}).join("_"),Hr])}function de(be){var Ne;return be instanceof Map?(Ne={},be.forEach(function(ke,Xe){Ne[Xe]=ke})):Ne=be,JSON.stringify(Ne)}var Ee="TABS_DQ";function tt(be){return String(be).replace(/"/g,Ee)}function it(be,Ne,ke,Xe){return!(!ke||Xe||be===!1||be===void 0&&(Ne===!1||Ne===null))}function Je(be,Ne){var ke=be.prefixCls,Xe=be.editable,Pt=be.locale,Dt=be.style;return!Xe||Xe.showAdd===!1?null:E.createElement("button",{ref:Ne,type:"button",className:"".concat(ke,"-nav-add"),style:Dt,"aria-label":(Pt==null?void 0:Pt.addAriaLabel)||"Add tab",onClick:function(rr){Xe.onEdit("add",{event:rr})}},Xe.addIcon||"+")}var et=E.forwardRef(Je),Bt=E.forwardRef(function(be,Ne){var ke=be.position,Xe=be.prefixCls,Pt=be.extra;if(!Pt)return null;var Dt,Er={};return(0,v.Z)(Pt)==="object"&&!E.isValidElement(Pt)?Er=Pt:Er.right=Pt,ke==="right"&&(Dt=Er.right),ke==="left"&&(Dt=Er.left),Dt?E.createElement("div",{className:"".concat(Xe,"-extra-content"),ref:Ne},Dt):null}),Lt=Bt,Nt=x(31561),ur=x(15285),ar=x(10228);function Cr(be,Ne){var ke=be.prefixCls,Xe=be.id,Pt=be.tabs,Dt=be.locale,Er=be.mobile,rr=be.moreIcon,Nr=rr===void 0?"More":rr,Hr=be.moreTransitionName,an=be.style,jr=be.className,Rr=be.editable,en=be.tabBarGutter,wn=be.rtl,on=be.removeAriaLabel,On=be.onTabClick,Qn=be.getPopupContainer,di=be.popupClassName,Nn=(0,E.useState)(!1),Gn=(0,I.Z)(Nn,2),Vt=Gn[0],Xt=Gn[1],Yt=(0,E.useState)(null),er=(0,I.Z)(Yt,2),jt=er[0],or=er[1],lr="".concat(Xe,"-more-popup"),Pr="".concat(ke,"-dropdown"),yn=jt!==null?"".concat(lr,"-").concat(jt):null,Bn=Dt==null?void 0:Dt.dropdownAriaLabel;function li(xi,ci){xi.preventDefault(),xi.stopPropagation(),Rr.onEdit("remove",{key:ci,event:xi})}var ti=E.createElement(ur.ZP,{onClick:function(ci){var Ci=ci.key,$i=ci.domEvent;On(Ci,$i),Xt(!1)},prefixCls:"".concat(Pr,"-menu"),id:lr,tabIndex:-1,role:"listbox","aria-activedescendant":yn,selectedKeys:[jt],"aria-label":Bn!==void 0?Bn:"expanded dropdown"},Pt.map(function(xi){var ci=xi.closable,Ci=xi.disabled,$i=xi.closeIcon,ei=xi.key,Ni=xi.label,Ha=it(ci,$i,Rr,Ci);return E.createElement(ur.sN,{key:ei,id:"".concat(lr,"-").concat(ei),role:"option","aria-controls":Xe&&"".concat(Xe,"-panel-").concat(ei),disabled:Ci},E.createElement("span",null,Ni),Ha&&E.createElement("button",{type:"button","aria-label":on||"remove",tabIndex:0,className:"".concat(Pr,"-menu-item-remove"),onClick:function(pn){pn.stopPropagation(),li(pn,ei)}},$i||Rr.removeIcon||"\xD7"))}));function Si(xi){for(var ci=Pt.filter(function(Ha){return!Ha.disabled}),Ci=ci.findIndex(function(Ha){return Ha.key===jt})||0,$i=ci.length,ei=0;ei<$i;ei+=1){Ci=(Ci+xi+$i)%$i;var Ni=ci[Ci];if(!Ni.disabled){or(Ni.key);return}}}function Yn(xi){var ci=xi.which;if(!Vt){[ar.Z.DOWN,ar.Z.SPACE,ar.Z.ENTER].includes(ci)&&(Xt(!0),xi.preventDefault());return}switch(ci){case ar.Z.UP:Si(-1),xi.preventDefault();break;case ar.Z.DOWN:Si(1),xi.preventDefault();break;case ar.Z.ESC:Xt(!1);break;case ar.Z.SPACE:case ar.Z.ENTER:jt!==null&&On(jt,xi);break}}(0,E.useEffect)(function(){var xi=document.getElementById(yn);xi&&xi.scrollIntoView&&xi.scrollIntoView(!1)},[jt]),(0,E.useEffect)(function(){Vt||or(null)},[Vt]);var jn=(0,S.Z)({},wn?"marginRight":"marginLeft",en);Pt.length||(jn.visibility="hidden",jn.order=1);var wi=te()((0,S.Z)({},"".concat(Pr,"-rtl"),wn)),yi=Er?null:E.createElement(Nt.Z,{prefixCls:Pr,overlay:ti,trigger:["hover"],visible:Pt.length?Vt:!1,transitionName:Hr,onVisibleChange:Xt,overlayClassName:te()(wi,di),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Qn},E.createElement("button",{type:"button",className:"".concat(ke,"-nav-more"),style:jn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":lr,id:"".concat(Xe,"-more"),"aria-expanded":Vt,onKeyDown:Yn},Nr));return E.createElement("div",{className:te()("".concat(ke,"-nav-operations"),jr),style:an,ref:Ne},yi,E.createElement(et,{prefixCls:ke,locale:Dt,editable:Rr}))}var sr=E.memo(E.forwardRef(Cr),function(be,Ne){return Ne.tabMoving});function G(be){var Ne,ke=be.prefixCls,Xe=be.id,Pt=be.active,Dt=be.tab,Er=Dt.key,rr=Dt.label,Nr=Dt.disabled,Hr=Dt.closeIcon,an=be.closable,jr=be.renderWrapper,Rr=be.removeAriaLabel,en=be.editable,wn=be.onClick,on=be.onFocus,On=be.style,Qn="".concat(ke,"-tab"),di=it(an,Hr,en,Nr);function Nn(Xt){Nr||wn(Xt)}function Gn(Xt){Xt.preventDefault(),Xt.stopPropagation(),en.onEdit("remove",{key:Er,event:Xt})}var Vt=E.createElement("div",{key:Er,"data-node-key":tt(Er),className:te()(Qn,(Ne={},(0,S.Z)(Ne,"".concat(Qn,"-with-remove"),di),(0,S.Z)(Ne,"".concat(Qn,"-active"),Pt),(0,S.Z)(Ne,"".concat(Qn,"-disabled"),Nr),Ne)),style:On,onClick:Nn},E.createElement("div",{role:"tab","aria-selected":Pt,id:Xe&&"".concat(Xe,"-tab-").concat(Er),className:"".concat(Qn,"-btn"),"aria-controls":Xe&&"".concat(Xe,"-panel-").concat(Er),"aria-disabled":Nr,tabIndex:Nr?null:0,onClick:function(Yt){Yt.stopPropagation(),Nn(Yt)},onKeyDown:function(Yt){[ar.Z.SPACE,ar.Z.ENTER].includes(Yt.which)&&(Yt.preventDefault(),Nn(Yt))},onFocus:on},rr),di&&E.createElement("button",{type:"button","aria-label":Rr||"remove",tabIndex:0,className:"".concat(Qn,"-remove"),onClick:function(Yt){Yt.stopPropagation(),Gn(Yt)}},Hr||en.removeIcon||"\xD7"));return jr?jr(Vt):Vt}var ft=G,F=x(16089),m=function(Ne){var ke=Ne.activeTabOffset,Xe=Ne.horizontal,Pt=Ne.rtl,Dt=Ne.indicatorSize,Er=(0,E.useState)(),rr=(0,I.Z)(Er,2),Nr=rr[0],Hr=rr[1],an=(0,E.useRef)(),jr=function(wn){return typeof Dt=="function"?Dt(wn):typeof Dt=="number"?Dt:wn};function Rr(){F.Z.cancel(an.current)}return(0,E.useEffect)(function(){var en={};return ke&&(Xe?(Pt?(en.right=ke.right+ke.width/2,en.transform="translateX(50%)"):(en.left=ke.left+ke.width/2,en.transform="translateX(-50%)"),en.width=jr(ke.width)):(en.top=ke.top+ke.height/2,en.transform="translateY(-50%)",en.height=jr(ke.height))),Rr(),an.current=(0,F.Z)(function(){Hr(en)}),Rr},[ke,Xe,Pt,Dt]),{style:Nr}},d=m,C=function(Ne){var ke=Ne.current||{},Xe=ke.offsetWidth,Pt=Xe===void 0?0:Xe,Dt=ke.offsetHeight,Er=Dt===void 0?0:Dt;return[Pt,Er]},re=function(Ne,ke){return Ne[ke?0:1]};function Be(be,Ne){var ke,Xe=E.useContext(L),Pt=Xe.prefixCls,Dt=Xe.tabs,Er=be.className,rr=be.style,Nr=be.id,Hr=be.animated,an=be.activeKey,jr=be.rtl,Rr=be.extra,en=be.editable,wn=be.locale,on=be.tabPosition,On=be.tabBarGutter,Qn=be.children,di=be.onTabClick,Nn=be.onTabScroll,Gn=be.indicatorSize,Vt=(0,E.useRef)(),Xt=(0,E.useRef)(),Yt=(0,E.useRef)(),er=(0,E.useRef)(),jt=(0,E.useRef)(),or=(0,E.useRef)(),lr=(0,E.useRef)(),Pr=on==="top"||on==="bottom",yn=Se(0,function(qa,Ra){Pr&&Nn&&Nn({direction:qa>Ra?"left":"right"})}),Bn=(0,I.Z)(yn,2),li=Bn[0],ti=Bn[1],Si=Se(0,function(qa,Ra){!Pr&&Nn&&Nn({direction:qa>Ra?"top":"bottom"})}),Yn=(0,I.Z)(Si,2),jn=Yn[0],wi=Yn[1],yi=(0,E.useState)([0,0]),xi=(0,I.Z)(yi,2),ci=xi[0],Ci=xi[1],$i=(0,E.useState)([0,0]),ei=(0,I.Z)($i,2),Ni=ei[0],Ha=ei[1],si=(0,E.useState)([0,0]),pn=(0,I.Z)(si,2),cn=pn[0],Xn=pn[1],Kn=(0,E.useState)([0,0]),fi=(0,I.Z)(Kn,2),Xi=fi[0],Ii=fi[1],Ua=Te(new Map),Aa=(0,I.Z)(Ua,2),Co=Aa[0],Vn=Aa[1],Mn=Oe(Dt,Co,Ni[0]),Li=re(ci,Pr),Zi=re(Ni,Pr),Fa=re(cn,Pr),Is=re(Xi,Pr),za=Li<Zi+Fa,fa=za?Li-Is:Li-Fa,Io="".concat(Pt,"-nav-operations-hidden"),Bo=0,Po=0;Pr&&jr?(Bo=0,Po=Math.max(0,Zi-fa)):(Bo=Math.min(0,fa-Zi),Po=0);function Ns(qa){return qa<Bo?Bo:qa>Po?Po:qa}var ho=(0,E.useRef)(),bs=(0,E.useState)(),Ps=(0,I.Z)(bs,2),$s=Ps[0],To=Ps[1];function Uo(){To(Date.now())}function ys(){window.clearTimeout(ho.current)}Ve(er,function(qa,Ra){function os(ss,Fs){ss(function(Go){var Fo=Ns(Go+Fs);return Fo})}return za?(Pr?os(ti,qa):os(wi,Ra),ys(),Uo(),!0):!1}),(0,E.useEffect)(function(){return ys(),$s&&(ho.current=window.setTimeout(function(){To(0)},100)),ys},[$s]);var el=Fe(Mn,fa,Pr?li:jn,Zi,Fa,Is,(0,g.Z)((0,g.Z)({},be),{},{tabs:Dt})),vl=(0,I.Z)(el,2),ic=vl[0],ac=vl[1],Ql=(0,K.Z)(function(){var qa=arguments.length>0&&arguments[0]!==void 0?arguments[0]:an,Ra=Mn.get(qa)||{width:0,height:0,left:0,right:0,top:0};if(Pr){var os=li;jr?Ra.right<li?os=Ra.right:Ra.right+Ra.width>li+fa&&(os=Ra.right+Ra.width-fa):Ra.left<-li?os=-Ra.left:Ra.left+Ra.width>-li+fa&&(os=-(Ra.left+Ra.width-fa)),wi(0),ti(Ns(os))}else{var ss=jn;Ra.top<-jn?ss=-Ra.top:Ra.top+Ra.height>-jn+fa&&(ss=-(Ra.top+Ra.height-fa)),ti(0),wi(Ns(ss))}}),Zs={};on==="top"||on==="bottom"?Zs[jr?"marginRight":"marginLeft"]=On:Zs.marginTop=On;var Dc=Dt.map(function(qa,Ra){var os=qa.key;return E.createElement(ft,{id:Nr,prefixCls:Pt,key:os,tab:qa,style:Ra===0?void 0:Zs,closable:qa.closable,editable:en,active:os===an,renderWrapper:Qn,removeAriaLabel:wn==null?void 0:wn.removeAriaLabel,onClick:function(Fs){di(os,Fs)},onFocus:function(){Ql(os),Uo(),er.current&&(jr||(er.current.scrollLeft=0),er.current.scrollTop=0)}})}),Kl=function(){return Vn(function(){var Ra=new Map;return Dt.forEach(function(os){var ss,Fs=os.key,Go=(ss=jt.current)===null||ss===void 0?void 0:ss.querySelector('[data-node-key="'.concat(tt(Fs),'"]'));Go&&Ra.set(Fs,{width:Go.offsetWidth,height:Go.offsetHeight,left:Go.offsetLeft,top:Go.offsetTop})}),Ra})};(0,E.useEffect)(function(){Kl()},[Dt.map(function(qa){return qa.key}).join("_")]);var Hl=we(function(){var qa=C(Vt),Ra=C(Xt),os=C(Yt);Ci([qa[0]-Ra[0]-os[0],qa[1]-Ra[1]-os[1]]);var ss=C(lr);Xn(ss);var Fs=C(or);Ii(Fs);var Go=C(jt);Ha([Go[0]-ss[0],Go[1]-ss[1]]),Kl()}),Vs=Dt.slice(0,ic),as=Dt.slice(ac+1),ri=[].concat((0,q.Z)(Vs),(0,q.Z)(as)),la=Mn.get(an),Yi=d({activeTabOffset:la,horizontal:Pr,rtl:jr,indicatorSize:Gn}),aa=Yi.style;(0,E.useEffect)(function(){Ql()},[an,Bo,Po,de(la),de(Mn),Pr]),(0,E.useEffect)(function(){Hl()},[jr]);var Da=!!ri.length,oo="".concat(Pt,"-nav-wrap"),Ws,ws,xs,ms;return Pr?jr?(ws=li>0,Ws=li!==Po):(Ws=li<0,ws=li!==Bo):(xs=jn<0,ms=jn!==Bo),E.createElement(W.Z,{onResize:Hl},E.createElement("div",{ref:(0,se.x1)(Ne,Vt),role:"tablist",className:te()("".concat(Pt,"-nav"),Er),style:rr,onKeyDown:function(){Uo()}},E.createElement(Lt,{ref:Xt,position:"left",extra:Rr,prefixCls:Pt}),E.createElement(W.Z,{onResize:Hl},E.createElement("div",{className:te()(oo,(ke={},(0,S.Z)(ke,"".concat(oo,"-ping-left"),Ws),(0,S.Z)(ke,"".concat(oo,"-ping-right"),ws),(0,S.Z)(ke,"".concat(oo,"-ping-top"),xs),(0,S.Z)(ke,"".concat(oo,"-ping-bottom"),ms),ke)),ref:er},E.createElement(W.Z,{onResize:Hl},E.createElement("div",{ref:jt,className:"".concat(Pt,"-nav-list"),style:{transform:"translate(".concat(li,"px, ").concat(jn,"px)"),transition:$s?"none":void 0}},Dc,E.createElement(et,{ref:lr,prefixCls:Pt,locale:wn,editable:en,style:(0,g.Z)((0,g.Z)({},Dc.length===0?void 0:Zs),{},{visibility:Da?"hidden":null})}),E.createElement("div",{className:te()("".concat(Pt,"-ink-bar"),(0,S.Z)({},"".concat(Pt,"-ink-bar-animated"),Hr.inkBar)),style:aa}))))),E.createElement(sr,(0,V.Z)({},be,{removeAriaLabel:wn==null?void 0:wn.removeAriaLabel,ref:or,prefixCls:Pt,tabs:ri,className:!Da&&Io,tabMoving:!!$s})),E.createElement(Lt,{ref:Yt,position:"right",extra:Rr,prefixCls:Pt})))}var H=E.forwardRef(Be),ie=["renderTabBar"],Qe=["label","key"];function xe(be){var Ne=be.renderTabBar,ke=(0,z.Z)(be,ie),Xe=E.useContext(L),Pt=Xe.tabs;if(Ne){var Dt=(0,g.Z)((0,g.Z)({},ke),{},{panes:Pt.map(function(Er){var rr=Er.label,Nr=Er.key,Hr=(0,z.Z)(Er,Qe);return E.createElement(R,(0,V.Z)({tab:rr,key:Nr,tabKey:Nr},Hr))})});return Ne(Dt,H)}return E.createElement(H,ke)}var ye=x(48736);function je(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Ne;return be===!1?Ne={inkBar:!1,tabPane:!1}:be===!0?Ne={inkBar:!0,tabPane:!1}:Ne=(0,g.Z)({inkBar:!0},(0,v.Z)(be)==="object"?be:{}),Ne.tabPaneMotion&&Ne.tabPane===void 0&&(Ne.tabPane=!0),!Ne.tabPaneMotion&&Ne.tabPane&&(Ne.tabPane=!1),Ne}var xt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],he=0;function st(be,Ne){var ke,Xe=be.id,Pt=be.prefixCls,Dt=Pt===void 0?"rc-tabs":Pt,Er=be.className,rr=be.items,Nr=be.direction,Hr=be.activeKey,an=be.defaultActiveKey,jr=be.editable,Rr=be.animated,en=be.tabPosition,wn=en===void 0?"top":en,on=be.tabBarGutter,On=be.tabBarStyle,Qn=be.tabBarExtraContent,di=be.locale,Nn=be.moreIcon,Gn=be.moreTransitionName,Vt=be.destroyInactiveTabPane,Xt=be.renderTabBar,Yt=be.onChange,er=be.onTabClick,jt=be.onTabScroll,or=be.getPopupContainer,lr=be.popupClassName,Pr=be.indicatorSize,yn=(0,z.Z)(be,xt),Bn=E.useMemo(function(){return(rr||[]).filter(function(Ii){return Ii&&(0,v.Z)(Ii)==="object"&&"key"in Ii})},[rr]),li=Nr==="rtl",ti=je(Rr),Si=(0,E.useState)(!1),Yn=(0,I.Z)(Si,2),jn=Yn[0],wi=Yn[1];(0,E.useEffect)(function(){wi((0,M.Z)())},[]);var yi=(0,N.Z)(function(){var Ii;return(Ii=Bn[0])===null||Ii===void 0?void 0:Ii.key},{value:Hr,defaultValue:an}),xi=(0,I.Z)(yi,2),ci=xi[0],Ci=xi[1],$i=(0,E.useState)(function(){return Bn.findIndex(function(Ii){return Ii.key===ci})}),ei=(0,I.Z)($i,2),Ni=ei[0],Ha=ei[1];(0,E.useEffect)(function(){var Ii=Bn.findIndex(function(Aa){return Aa.key===ci});if(Ii===-1){var Ua;Ii=Math.max(0,Math.min(Ni,Bn.length-1)),Ci((Ua=Bn[Ii])===null||Ua===void 0?void 0:Ua.key)}Ha(Ii)},[Bn.map(function(Ii){return Ii.key}).join("_"),ci,Ni]);var si=(0,N.Z)(null,{value:Xe}),pn=(0,I.Z)(si,2),cn=pn[0],Xn=pn[1];(0,E.useEffect)(function(){Xe||(Xn("rc-tabs-".concat(he)),he+=1)},[]);function Kn(Ii,Ua){er==null||er(Ii,Ua);var Aa=Ii!==ci;Ci(Ii),Aa&&(Yt==null||Yt(Ii))}var fi={id:cn,activeKey:ci,animated:ti,tabPosition:wn,rtl:li,mobile:jn},Xi=(0,g.Z)((0,g.Z)({},fi),{},{editable:jr,locale:di,moreIcon:Nn,moreTransitionName:Gn,tabBarGutter:on,onTabClick:Kn,onTabScroll:jt,extra:Qn,style:On,panes:null,getPopupContainer:or,popupClassName:lr,indicatorSize:Pr});return E.createElement(L.Provider,{value:{tabs:Bn,prefixCls:Dt}},E.createElement("div",(0,V.Z)({ref:Ne,id:Xe,className:te()(Dt,"".concat(Dt,"-").concat(wn),(ke={},(0,S.Z)(ke,"".concat(Dt,"-mobile"),jn),(0,S.Z)(ke,"".concat(Dt,"-editable"),jr),(0,S.Z)(ke,"".concat(Dt,"-rtl"),li),ke),Er)},yn),E.createElement(xe,(0,V.Z)({},Xi,{renderTabBar:Xt})),E.createElement(X,(0,V.Z)({destroyInactiveTabPane:Vt},fi,{animated:ti}))))}var Ye=E.forwardRef(st),Ie=Ye,Le=Ie,ct=x(36355),Ut=x(19716),tr=()=>null,Dr=x(62892);const fr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Fr(be){let Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},ke;return Ne===!1?ke={inkBar:!1,tabPane:!1}:Ne===!0?ke={inkBar:!0,tabPane:!0}:ke=Object.assign({inkBar:!0},typeof Ne=="object"?Ne:{}),ke.tabPane&&(ke.tabPaneMotion=Object.assign(Object.assign({},fr),{motionName:(0,Dr.m)(be,"switch")})),ke}var Lr=x(11592),mr=function(be,Ne){var ke={};for(var Xe in be)Object.prototype.hasOwnProperty.call(be,Xe)&&Ne.indexOf(Xe)<0&&(ke[Xe]=be[Xe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Xe=Object.getOwnPropertySymbols(be);Pt<Xe.length;Pt++)Ne.indexOf(Xe[Pt])<0&&Object.prototype.propertyIsEnumerable.call(be,Xe[Pt])&&(ke[Xe[Pt]]=be[Xe[Pt]]);return ke};function cr(be){return be.filter(Ne=>Ne)}function Kr(be,Ne){if(be)return be;const ke=(0,Lr.Z)(Ne).map(Xe=>{if(E.isValidElement(Xe)){const{key:Pt,props:Dt}=Xe,Er=Dt||{},{tab:rr}=Er,Nr=mr(Er,["tab"]);return Object.assign(Object.assign({key:String(Pt)},Nr),{label:rr})}return null});return cr(ke)}var fn=x(17313),_n=x(83116),ln=x(37613),xn=x(13826),_r=be=>{const{componentCls:Ne,motionDurationSlow:ke}=be;return[{[Ne]:{[`${Ne}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${ke}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${ke}`}}}}},[(0,xn.oN)(be,"slide-up"),(0,xn.oN)(be,"slide-down")]]};const Ai=be=>{const{componentCls:Ne,tabsCardPadding:ke,cardBg:Xe,cardGutter:Pt,colorBorderSecondary:Dt,itemSelectedColor:Er}=be;return{[`${Ne}-card`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{margin:0,padding:ke,background:Xe,border:`${be.lineWidth}px ${be.lineType} ${Dt}`,transition:`all ${be.motionDurationSlow} ${be.motionEaseInOut}`},[`${Ne}-tab-active`]:{color:Er,background:be.colorBgContainer},[`${Ne}-ink-bar`]:{visibility:"hidden"}},[`&${Ne}-top, &${Ne}-bottom`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab + ${Ne}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Pt}px`}}}},[`&${Ne}-top`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{borderRadius:`${be.borderRadiusLG}px ${be.borderRadiusLG}px 0 0`},[`${Ne}-tab-active`]:{borderBottomColor:be.colorBgContainer}}},[`&${Ne}-bottom`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{borderRadius:`0 0 ${be.borderRadiusLG}px ${be.borderRadiusLG}px`},[`${Ne}-tab-active`]:{borderTopColor:be.colorBgContainer}}},[`&${Ne}-left, &${Ne}-right`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab + ${Ne}-tab`]:{marginTop:`${Pt}px`}}},[`&${Ne}-left`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be.borderRadiusLG}px 0 0 ${be.borderRadiusLG}px`}},[`${Ne}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:be.colorBgContainer}}}},[`&${Ne}-right`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be.borderRadiusLG}px ${be.borderRadiusLG}px 0`}},[`${Ne}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:be.colorBgContainer}}}}}}},Oi=be=>{const{componentCls:Ne,itemHoverColor:ke,dropdownEdgeChildVerticalPadding:Xe}=be;return{[`${Ne}-dropdown`]:Object.assign(Object.assign({},(0,fn.Wf)(be)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:be.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Ne}-dropdown-menu`]:{maxHeight:be.tabsDropdownHeight,margin:0,padding:`${Xe}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:be.colorBgContainer,backgroundClip:"padding-box",borderRadius:be.borderRadiusLG,outline:"none",boxShadow:be.boxShadowSecondary,"&-item":Object.assign(Object.assign({},fn.vS),{display:"flex",alignItems:"center",minWidth:be.tabsDropdownWidth,margin:0,padding:`${be.paddingXXS}px ${be.paddingSM}px`,color:be.colorText,fontWeight:"normal",fontSize:be.fontSize,lineHeight:be.lineHeight,cursor:"pointer",transition:`all ${be.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:be.marginSM},color:be.colorTextDescription,fontSize:be.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:ke}},"&:hover":{background:be.controlItemBgHover},"&-disabled":{"&, &:hover":{color:be.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},mi=be=>{const{componentCls:Ne,margin:ke,colorBorderSecondary:Xe,horizontalMargin:Pt,verticalItemPadding:Dt,verticalItemMargin:Er}=be;return{[`${Ne}-top, ${Ne}-bottom`]:{flexDirection:"column",[`> ${Ne}-nav, > div > ${Ne}-nav`]:{margin:Pt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${be.lineWidth}px ${be.lineType} ${Xe}`,content:"''"},[`${Ne}-ink-bar`]:{height:be.lineWidthBold,"&-animated":{transition:`width ${be.motionDurationSlow}, left ${be.motionDurationSlow},
right ${be.motionDurationSlow}`}},[`${Ne}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:be.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:be.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:be.boxShadowTabsOverflowRight},[`&${Ne}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Ne}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Ne}-top`]:{[`> ${Ne}-nav,
> div > ${Ne}-nav`]:{"&::before":{bottom:0},[`${Ne}-ink-bar`]:{bottom:0}}},[`${Ne}-bottom`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{order:1,marginTop:`${ke}px`,marginBottom:0,"&::before":{top:0},[`${Ne}-ink-bar`]:{top:0}},[`> ${Ne}-content-holder, > div > ${Ne}-content-holder`]:{order:0}},[`${Ne}-left, ${Ne}-right`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{flexDirection:"column",minWidth:be.controlHeight*1.25,[`${Ne}-tab`]:{padding:Dt,textAlign:"center"},[`${Ne}-tab + ${Ne}-tab`]:{margin:Er},[`${Ne}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:be.controlHeight},"&::before":{top:0,boxShadow:be.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:be.boxShadowTabsOverflowBottom},[`&${Ne}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Ne}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Ne}-ink-bar`]:{width:be.lineWidthBold,"&-animated":{transition:`height ${be.motionDurationSlow}, top ${be.motionDurationSlow}`}},[`${Ne}-nav-list, ${Ne}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Ne}-left`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Ne}-content-holder, > div > ${Ne}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${be.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`},[`> ${Ne}-content > ${Ne}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:be.paddingLG}}}},[`${Ne}-right`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{order:1,[`${Ne}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Ne}-content-holder, > div > ${Ne}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-be.lineWidth},borderRight:{_skip_check_:!0,value:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`},[`> ${Ne}-content > ${Ne}-tabpane`]:{paddingRight:{_skip_check_:!0,value:be.paddingLG}}}}}},Wi=be=>{const{componentCls:Ne,cardPaddingSM:ke,cardPaddingLG:Xe,horizontalItemPaddingSM:Pt,horizontalItemPaddingLG:Dt}=be;return{[Ne]:{"&-small":{[`> ${Ne}-nav`]:{[`${Ne}-tab`]:{padding:Pt,fontSize:be.titleFontSizeSM}}},"&-large":{[`> ${Ne}-nav`]:{[`${Ne}-tab`]:{padding:Dt,fontSize:be.titleFontSizeLG}}}},[`${Ne}-card`]:{[`&${Ne}-small`]:{[`> ${Ne}-nav`]:{[`${Ne}-tab`]:{padding:ke}},[`&${Ne}-bottom`]:{[`> ${Ne}-nav ${Ne}-tab`]:{borderRadius:`0 0 ${be.borderRadius}px ${be.borderRadius}px`}},[`&${Ne}-top`]:{[`> ${Ne}-nav ${Ne}-tab`]:{borderRadius:`${be.borderRadius}px ${be.borderRadius}px 0 0`}},[`&${Ne}-right`]:{[`> ${Ne}-nav ${Ne}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be.borderRadius}px ${be.borderRadius}px 0`}}},[`&${Ne}-left`]:{[`> ${Ne}-nav ${Ne}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be.borderRadius}px 0 0 ${be.borderRadius}px`}}}},[`&${Ne}-large`]:{[`> ${Ne}-nav`]:{[`${Ne}-tab`]:{padding:Xe}}}}}},Gi=be=>{const{componentCls:Ne,itemActiveColor:ke,itemHoverColor:Xe,iconCls:Pt,tabsHorizontalItemMargin:Dt,horizontalItemPadding:Er,itemSelectedColor:rr,itemColor:Nr}=be,Hr=`${Ne}-tab`;return{[Hr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Er,fontSize:be.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Nr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:ke}},(0,fn.Qy)(be)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-be.marginXXS},marginLeft:{_skip_check_:!0,value:be.marginXS},color:be.colorTextDescription,fontSize:be.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${be.motionDurationSlow}`,"&:hover":{color:be.colorTextHeading}},"&:hover":{color:Xe},[`&${Hr}-active ${Hr}-btn`]:{color:rr,textShadow:be.tabsActiveTextShadow},[`&${Hr}-disabled`]:{color:be.colorTextDisabled,cursor:"not-allowed"},[`&${Hr}-disabled ${Hr}-btn, &${Hr}-disabled ${Ne}-remove`]:{"&:focus, &:active":{color:be.colorTextDisabled}},[`& ${Hr}-remove ${Pt}`]:{margin:0},[Pt]:{marginRight:{_skip_check_:!0,value:be.marginSM}}},[`${Hr} + ${Hr}`]:{margin:{_skip_check_:!0,value:Dt}}}},ta=be=>{const{componentCls:Ne,tabsHorizontalItemMarginRTL:ke,iconCls:Xe,cardGutter:Pt}=be;return{[`${Ne}-rtl`]:{direction:"rtl",[`${Ne}-nav`]:{[`${Ne}-tab`]:{margin:{_skip_check_:!0,value:ke},[`${Ne}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Xe]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${be.marginSM}px`}},[`${Ne}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${be.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${be.marginXXS}px`},[Xe]:{margin:0}}}},[`&${Ne}-left`]:{[`> ${Ne}-nav`]:{order:1},[`> ${Ne}-content-holder`]:{order:0}},[`&${Ne}-right`]:{[`> ${Ne}-nav`]:{order:0},[`> ${Ne}-content-holder`]:{order:1}},[`&${Ne}-card${Ne}-top, &${Ne}-card${Ne}-bottom`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-tab + ${Ne}-tab`]:{marginRight:{_skip_check_:!0,value:Pt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Ne}-dropdown-rtl`]:{direction:"rtl"},[`${Ne}-menu-item`]:{[`${Ne}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},_o=be=>{const{componentCls:Ne,tabsCardPadding:ke,cardHeight:Xe,cardGutter:Pt,itemHoverColor:Dt,itemActiveColor:Er,colorBorderSecondary:rr}=be;return{[Ne]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fn.Wf)(be)),{display:"flex",[`> ${Ne}-nav, > div > ${Ne}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Ne}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${be.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Ne}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${be.motionDurationSlow}`},[`${Ne}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Ne}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Ne}-nav-more`]:{position:"relative",padding:ke,background:"transparent",border:0,color:be.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:be.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Ne}-nav-add`]:Object.assign({minWidth:Xe,marginLeft:{_skip_check_:!0,value:Pt},padding:`0 ${be.paddingXS}px`,background:"transparent",border:`${be.lineWidth}px ${be.lineType} ${rr}`,borderRadius:`${be.borderRadiusLG}px ${be.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:be.colorText,transition:`all ${be.motionDurationSlow} ${be.motionEaseInOut}`,"&:hover":{color:Dt},"&:active, &:focus:not(:focus-visible)":{color:Er}},(0,fn.Qy)(be))},[`${Ne}-extra-content`]:{flex:"none"},[`${Ne}-ink-bar`]:{position:"absolute",background:be.inkBarColor,pointerEvents:"none"}}),Gi(be)),{[`${Ne}-content`]:{position:"relative",width:"100%"},[`${Ne}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Ne}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Ne}-centered`]:{[`> ${Ne}-nav, > div > ${Ne}-nav`]:{[`${Ne}-nav-wrap`]:{[`&:not([class*='${Ne}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var ra=(0,_n.Z)("Tabs",be=>{const Ne=(0,ln.TS)(be,{tabsCardPadding:be.cardPadding||`${(be.cardHeight-Math.round(be.fontSize*be.lineHeight))/2-be.lineWidth}px ${be.padding}px`,dropdownEdgeChildVerticalPadding:be.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${be.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${be.horizontalItemGutter}px`});return[Wi(Ne),ta(Ne),mi(Ne),Oi(Ne),Ai(Ne),_o(Ne),_r(Ne)]},be=>{const Ne=be.controlHeightLG;return{zIndexPopup:be.zIndexPopupBase+50,cardBg:be.colorFillAlter,cardHeight:Ne,cardPadding:"",cardPaddingSM:`${be.paddingXXS*1.5}px ${be.padding}px`,cardPaddingLG:`${be.paddingXS}px ${be.padding}px ${be.paddingXXS*1.5}px`,titleFontSize:be.fontSize,titleFontSizeLG:be.fontSizeLG,titleFontSizeSM:be.fontSize,inkBarColor:be.colorPrimary,horizontalMargin:`0 0 ${be.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${be.paddingSM}px 0`,horizontalItemPaddingSM:`${be.paddingXS}px 0`,horizontalItemPaddingLG:`${be.padding}px 0`,verticalItemPadding:`${be.paddingXS}px ${be.paddingLG}px`,verticalItemMargin:`${be.margin}px 0 0 0`,itemColor:be.colorText,itemSelectedColor:be.colorPrimary,itemHoverColor:be.colorPrimaryHover,itemActiveColor:be.colorPrimaryActive,cardGutter:be.marginXXS/2}}),bi=function(be,Ne){var ke={};for(var Xe in be)Object.prototype.hasOwnProperty.call(be,Xe)&&Ne.indexOf(Xe)<0&&(ke[Xe]=be[Xe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Xe=Object.getOwnPropertySymbols(be);Pt<Xe.length;Pt++)Ne.indexOf(Xe[Pt])<0&&Object.prototype.propertyIsEnumerable.call(be,Xe[Pt])&&(ke[Xe[Pt]]=be[Xe[Pt]]);return ke};const Ki=be=>{const{type:Ne,className:ke,rootClassName:Xe,size:Pt,onEdit:Dt,hideAdd:Er,centered:rr,addIcon:Nr,popupClassName:Hr,children:an,items:jr,animated:Rr,style:en,indicatorSize:wn}=be,on=bi(be,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:On,moreIcon:Qn=E.createElement(Ae.Z,null)}=on,{direction:di,tabs:Nn,getPrefixCls:Gn,getPopupContainer:Vt}=E.useContext(ct.E_),Xt=Gn("tabs",On),[Yt,er]=ra(Xt);let jt;Ne==="editable-card"&&(jt={onEdit:(li,ti)=>{let{key:Si,event:Yn}=ti;Dt==null||Dt(li==="add"?Yn:Si,li)},removeIcon:E.createElement(me.Z,null),addIcon:Nr||E.createElement(P.Z,null),showAdd:Er!==!0});const or=Gn(),lr=Kr(jr,an),Pr=Fr(Xt,Rr),yn=(0,Ut.Z)(Pt),Bn=Object.assign(Object.assign({},Nn==null?void 0:Nn.style),en);return Yt(E.createElement(Le,Object.assign({direction:di,getPopupContainer:Vt,moreTransitionName:`${or}-slide-up`},on,{items:lr,className:te()({[`${Xt}-${yn}`]:yn,[`${Xt}-card`]:["card","editable-card"].includes(Ne),[`${Xt}-editable-card`]:Ne==="editable-card",[`${Xt}-centered`]:rr},Nn==null?void 0:Nn.className,ke,Xe,er),popupClassName:te()(Hr,er),style:Bn,editable:jt,moreIcon:Qn,prefixCls:Xt,animated:Pr,indicatorSize:wn!=null?wn:Nn==null?void 0:Nn.indicatorSize})))};Ki.TabPane=tr;var sa=Ki},17574:function(un,Tt,x){"use strict";x.d(Tt,{default:function(){return Fe}});var me=x(60091),Ae=x(94480),P=x(52671),De=x(8657),te=x(54476),V=x(59301),S={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"},g=S,I=x(7657),v=function(Ee,tt){return V.createElement(I.Z,(0,te.Z)({},Ee,{ref:tt,icon:g}))},z=V.forwardRef(v),E=z,M=x(92310),N=x.n(M),T=x(35654),L=x(71430),ee=x(36355),R=x(56082),le=x(62892),X=x(20648);const q=4;function W(de){const{dropPosition:Ee,dropLevelOffset:tt,prefixCls:it,indent:Je,direction:et="ltr"}=de,Bt=et==="ltr"?"left":"right",Lt=et==="ltr"?"right":"left",Nt={[Bt]:-tt*Je+q,[Lt]:0};switch(Ee){case-1:Nt.top=-3;break;case 1:Nt.bottom=-3;break;default:Nt.bottom=-3,Nt[Bt]=Je+q;break}return V.createElement("div",{style:Nt,className:`${it}-drop-indicator`})}var K=x(71997),fe=V.forwardRef((de,Ee)=>{const{getPrefixCls:tt,direction:it,virtual:Je,tree:et}=V.useContext(ee.E_),{prefixCls:Bt,className:Lt,showIcon:Nt=!1,showLine:ur,switcherIcon:ar,blockNode:Cr=!1,children:sr,checkable:G=!1,selectable:ft=!0,draggable:F,motion:m,style:d}=de,C=tt("tree",Bt),re=tt(),Be=m!=null?m:Object.assign(Object.assign({},(0,le.Z)(re)),{motionAppear:!1}),H=Object.assign(Object.assign({},de),{checkable:G,selectable:ft,showIcon:Nt,motion:Be,blockNode:Cr,showLine:!!ur,dropIndicatorRender:W}),[ie,Qe]=(0,X.ZP)(C),xe=V.useMemo(()=>{if(!F)return!1;let je={};switch(typeof F){case"function":je.nodeDraggable=F;break;case"object":je=Object.assign({},F);break;default:break}return je.icon!==!1&&(je.icon=je.icon||V.createElement(R.Z,null)),je},[F]),ye=je=>V.createElement(K.Z,{prefixCls:C,switcherIcon:ar,treeNodeProps:je,showLine:ur});return ie(V.createElement(me.Z,Object.assign({itemHeight:20,ref:Ee,virtual:Je},H,{style:Object.assign(Object.assign({},et==null?void 0:et.style),d),prefixCls:C,className:N()({[`${C}-icon-hide`]:!Nt,[`${C}-block-node`]:Cr,[`${C}-unselectable`]:!ft,[`${C}-rtl`]:it==="rtl"},et==null?void 0:et.className,Lt,Qe),direction:it,checkable:G&&V.createElement("span",{className:`${C}-checkbox-inner`}),selectable:ft,switcherIcon:ye,draggable:xe}),sr))}),Oe;(function(de){de[de.None=0]="None",de[de.Start=1]="Start",de[de.End=2]="End"})(Oe||(Oe={}));function Se(de,Ee){function tt(it){const{key:Je,children:et}=it;Ee(Je,it)!==!1&&Se(et||[],Ee)}de.forEach(tt)}function Ue(de){let{treeData:Ee,expandedKeys:tt,startKey:it,endKey:Je}=de;const et=[];let Bt=Oe.None;if(it&&it===Je)return[it];if(!it||!Je)return[];function Lt(Nt){return Nt===it||Nt===Je}return Se(Ee,Nt=>{if(Bt===Oe.End)return!1;if(Lt(Nt)){if(et.push(Nt),Bt===Oe.None)Bt=Oe.Start;else if(Bt===Oe.Start)return Bt=Oe.End,!1}else Bt===Oe.Start&&et.push(Nt);return tt.includes(Nt)}),et}function J(de,Ee){const tt=(0,Ae.Z)(Ee),it=[];return Se(de,(Je,et)=>{const Bt=tt.indexOf(Je);return Bt!==-1&&(it.push(et),tt.splice(Bt,1)),!!tt.length}),it}var ue=function(de,Ee){var tt={};for(var it in de)Object.prototype.hasOwnProperty.call(de,it)&&Ee.indexOf(it)<0&&(tt[it]=de[it]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Je=0,it=Object.getOwnPropertySymbols(de);Je<it.length;Je++)Ee.indexOf(it[Je])<0&&Object.prototype.propertyIsEnumerable.call(de,it[Je])&&(tt[it[Je]]=de[it[Je]]);return tt};function D(de){const{isLeaf:Ee,expanded:tt}=de;return Ee?V.createElement(P.Z,null):tt?V.createElement(De.Z,null):V.createElement(E,null)}function Ve(de){let{treeData:Ee,children:tt}=de;return Ee||(0,L.zn)(tt)}const Me=(de,Ee)=>{var{defaultExpandAll:tt,defaultExpandParent:it,defaultExpandedKeys:Je}=de,et=ue(de,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Bt=V.useRef(),Lt=V.useRef(),Nt=()=>{const{keyEntities:xe}=(0,L.I8)(Ve(et));let ye;return tt?ye=Object.keys(xe):it?ye=(0,T.r7)(et.expandedKeys||Je||[],xe):ye=et.expandedKeys||Je,ye},[ur,ar]=V.useState(et.selectedKeys||et.defaultSelectedKeys||[]),[Cr,sr]=V.useState(()=>Nt());V.useEffect(()=>{"selectedKeys"in et&&ar(et.selectedKeys)},[et.selectedKeys]),V.useEffect(()=>{"expandedKeys"in et&&sr(et.expandedKeys)},[et.expandedKeys]);const G=(xe,ye)=>{var je;return"expandedKeys"in et||sr(xe),(je=et.onExpand)===null||je===void 0?void 0:je.call(et,xe,ye)},ft=(xe,ye)=>{var je;const{multiple:xt}=et,{node:he,nativeEvent:st}=ye,{key:Ye=""}=he,Ie=Ve(et),Le=Object.assign(Object.assign({},ye),{selected:!0}),ct=(st==null?void 0:st.ctrlKey)||(st==null?void 0:st.metaKey),Ut=st==null?void 0:st.shiftKey;let kt;xt&&ct?(kt=xe,Bt.current=Ye,Lt.current=kt,Le.selectedNodes=J(Ie,kt)):xt&&Ut?(kt=Array.from(new Set([].concat((0,Ae.Z)(Lt.current||[]),(0,Ae.Z)(Ue({treeData:Ie,expandedKeys:Cr,startKey:Ye,endKey:Bt.current}))))),Le.selectedNodes=J(Ie,kt)):(kt=[Ye],Bt.current=Ye,Lt.current=kt,Le.selectedNodes=J(Ie,kt)),(je=et.onSelect)===null||je===void 0||je.call(et,kt,Le),"selectedKeys"in et||ar(kt)},{getPrefixCls:F,direction:m}=V.useContext(ee.E_),{prefixCls:d,className:C,showIcon:re=!0,expandAction:Be="click"}=et,H=ue(et,["prefixCls","className","showIcon","expandAction"]),ie=F("tree",d),Qe=N()(`${ie}-directory`,{[`${ie}-directory-rtl`]:m==="rtl"},C);return V.createElement(fe,Object.assign({icon:D,ref:Ee,blockNode:!0},H,{showIcon:re,expandAction:Be,prefixCls:ie,className:Qe,expandedKeys:Cr,selectedKeys:ur,onSelect:ft,onExpand:G}))};var Te=V.forwardRef(Me);const ve=fe;ve.DirectoryTree=Te,ve.TreeNode=me.O;var Fe=ve},20648:function(un,Tt,x){"use strict";x.d(Tt,{TM:function(){return M},Yk:function(){return E}});var me=x(36237),Ae=x(98447),P=x(17313),De=x(8378),te=x(37613),V=x(83116);const S=new me.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),g=(N,T)=>({[`.${N}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${T.motionDurationSlow}`}}}),I=(N,T)=>({[`.${N}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:T.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${T.lineWidthBold}px solid ${T.colorPrimary}`,borderRadius:"50%",content:'""'}}}),v=(N,T)=>{const{treeCls:L,treeNodeCls:ee,treeNodePadding:R,titleHeight:le,nodeSelectedBg:X,nodeHoverBg:q}=T,W=T.paddingXS;return{[L]:Object.assign(Object.assign({},(0,P.Wf)(T)),{background:T.colorBgContainer,borderRadius:T.borderRadius,transition:`background-color ${T.motionDurationSlow}`,[`&${L}-rtl`]:{[`${L}-switcher`]:{"&_close":{[`${L}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${L}-active-focused)`]:Object.assign({},(0,P.oN)(T)),[`${L}-list-holder-inner`]:{alignItems:"flex-start"},[`&${L}-block-node`]:{[`${L}-list-holder-inner`]:{alignItems:"stretch",[`${L}-node-content-wrapper`]:{flex:"auto"},[`${ee}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:R,insetInlineStart:0,border:`1px solid ${T.colorPrimary}`,opacity:0,animationName:S,animationDuration:T.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${ee}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${R}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${L}-node-content-wrapper`]:{color:T.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${L}-node-content-wrapper`]:Object.assign({},(0,P.oN)(T)),[`&:not(${ee}-disabled).filter-node ${L}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${L}-draggable-icon`]:{flexShrink:0,width:le,lineHeight:`${le}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${T.motionDurationSlow}`,[`${ee}:hover &`]:{opacity:.45}},[`&${ee}-disabled`]:{[`${L}-draggable-icon`]:{visibility:"hidden"}}}},[`${L}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:le}},[`${L}-draggable-icon`]:{visibility:"hidden"},[`${L}-switcher`]:Object.assign(Object.assign({},g(N,T)),{position:"relative",flex:"none",alignSelf:"stretch",width:le,margin:0,lineHeight:`${le}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${L}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:T.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:le/2,bottom:-R,marginInlineStart:-1,borderInlineEnd:`1px solid ${T.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:le/2*.8,height:le/2,borderBottom:`1px solid ${T.colorBorder}`,content:'""'}}}),[`${L}-checkbox`]:{top:"initial",marginInlineEnd:W},[`${L}-node-content-wrapper, ${L}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:le,margin:0,padding:`0 ${T.paddingXS/2}px`,color:"inherit",lineHeight:`${le}px`,background:"transparent",borderRadius:T.borderRadius,cursor:"pointer",transition:`all ${T.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:q},[`&${L}-node-selected`]:{backgroundColor:X},[`${L}-iconEle`]:{display:"inline-block",width:le,height:le,lineHeight:`${le}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${L}-unselectable ${L}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${L}-node-content-wrapper`]:Object.assign({lineHeight:`${le}px`,userSelect:"none"},I(N,T)),[`${ee}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${T.colorPrimary}`}},"&-show-line":{[`${L}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:le/2,bottom:-R,borderInlineEnd:`1px solid ${T.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${L}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${ee}-leaf-last`]:{[`${L}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${le/2}px !important`}}}}})}},z=N=>{const{treeCls:T,treeNodeCls:L,treeNodePadding:ee,directoryNodeSelectedBg:R,directoryNodeSelectedColor:le}=N;return{[`${T}${T}-directory`]:{[L]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:ee,insetInlineStart:0,transition:`background-color ${N.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:N.controlItemBgHover}},"> *":{zIndex:1},[`${T}-switcher`]:{transition:`color ${N.motionDurationMid}`},[`${T}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${T}-node-selected`]:{color:le,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:R},[`${T}-switcher`]:{color:le},[`${T}-node-content-wrapper`]:{color:le,background:"transparent"}}}}}},E=(N,T)=>{const L=`.${N}`,ee=`${L}-treenode`,R=T.paddingXS/2,le=(0,te.TS)(T,{treeCls:L,treeNodeCls:ee,treeNodePadding:R});return[v(N,le),z(le)]},M=N=>{const{controlHeightSM:T}=N;return{titleHeight:T,nodeHoverBg:N.controlItemBgHover,nodeSelectedBg:N.controlItemBgActive}};Tt.ZP=(0,V.Z)("Tree",(N,T)=>{let{prefixCls:L}=T;return[{[N.componentCls]:(0,Ae.C2)(`${L}-checkbox`,N)},E(L,N),(0,De.Z)(N)]},N=>{const{colorTextLightSolid:T,colorPrimary:L}=N;return Object.assign(Object.assign({},M(N)),{directoryNodeSelectedColor:T,directoryNodeSelectedBg:L})})},71997:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return ee}});var me=x(54476),Ae=x(59301),P={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"},De=P,te=x(7657),V=function(le,X){return Ae.createElement(te.Z,(0,me.Z)({},le,{ref:X,icon:De}))},S=Ae.forwardRef(V),g=S,I=x(52671),v=x(58617),z=x(15075),E=x(43531),M=x(92310),N=x.n(M),T=x(92343),ee=R=>{const{prefixCls:le,switcherIcon:X,treeNodeProps:q,showLine:W}=R,{isLeaf:K,expanded:se,loading:fe}=q;if(fe)return Ae.createElement(v.Z,{className:`${le}-switcher-loading-icon`});let Oe;if(W&&typeof W=="object"&&(Oe=W.showLeafIcon),K){if(!W)return null;if(typeof Oe!="boolean"&&Oe){const J=typeof Oe=="function"?Oe(q):Oe,ue=`${le}-switcher-line-custom-icon`;return(0,T.l$)(J)?(0,T.Tm)(J,{className:N()(J.props.className||"",ue)}):J}return Oe?Ae.createElement(I.Z,{className:`${le}-switcher-line-icon`}):Ae.createElement("span",{className:`${le}-switcher-leaf-line`})}const Se=`${le}-switcher-icon`,Ue=typeof X=="function"?X(q):X;return(0,T.l$)(Ue)?(0,T.Tm)(Ue,{className:N()(Ue.props.className||"",Se)}):Ue!==void 0?Ue:W?se?Ae.createElement(z.Z,{className:`${le}-switcher-line-icon`}):Ae.createElement(E.Z,{className:`${le}-switcher-line-icon`}):Ae.createElement(g,{className:Se})}},86251:function(un,Tt){"use strict";Tt.byteLength=S,Tt.toByteArray=I,Tt.fromByteArray=E;for(var x=[],me=[],Ae=typeof Uint8Array!="undefined"?Uint8Array:Array,P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",De=0,te=P.length;De<te;++De)x[De]=P[De],me[P.charCodeAt(De)]=De;me[45]=62,me[95]=63;function V(M){var N=M.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=M.indexOf("=");T===-1&&(T=N);var L=T===N?0:4-T%4;return[T,L]}function S(M){var N=V(M),T=N[0],L=N[1];return(T+L)*3/4-L}function g(M,N,T){return(N+T)*3/4-T}function I(M){var N,T=V(M),L=T[0],ee=T[1],R=new Ae(g(M,L,ee)),le=0,X=ee>0?L-4:L,q;for(q=0;q<X;q+=4)N=me[M.charCodeAt(q)]<<18|me[M.charCodeAt(q+1)]<<12|me[M.charCodeAt(q+2)]<<6|me[M.charCodeAt(q+3)],R[le++]=N>>16&255,R[le++]=N>>8&255,R[le++]=N&255;return ee===2&&(N=me[M.charCodeAt(q)]<<2|me[M.charCodeAt(q+1)]>>4,R[le++]=N&255),ee===1&&(N=me[M.charCodeAt(q)]<<10|me[M.charCodeAt(q+1)]<<4|me[M.charCodeAt(q+2)]>>2,R[le++]=N>>8&255,R[le++]=N&255),R}function v(M){return x[M>>18&63]+x[M>>12&63]+x[M>>6&63]+x[M&63]}function z(M,N,T){for(var L,ee=[],R=N;R<T;R+=3)L=(M[R]<<16&16711680)+(M[R+1]<<8&65280)+(M[R+2]&255),ee.push(v(L));return ee.join("")}function E(M){for(var N,T=M.length,L=T%3,ee=[],R=16383,le=0,X=T-L;le<X;le+=R)ee.push(z(M,le,le+R>X?X:le+R));return L===1?(N=M[T-1],ee.push(x[N>>2]+x[N<<4&63]+"==")):L===2&&(N=(M[T-2]<<8)+M[T-1],ee.push(x[N>>10]+x[N>>4&63]+x[N<<2&63]+"=")),ee.join("")}},19208:function(un,Tt,x){"use strict";var me;var Ae=x(86251),P=x(67467),De=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Tt.lW=g,me=le,Tt.h2=50;var te=2147483647;me=te,g.TYPED_ARRAY_SUPPORT=V(),!g.TYPED_ARRAY_SUPPORT&&typeof console!="undefined"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function V(){try{var F=new Uint8Array(1),m={foo:function(){return 42}};return Object.setPrototypeOf(m,Uint8Array.prototype),Object.setPrototypeOf(F,m),F.foo()===42}catch(d){return!1}}Object.defineProperty(g.prototype,"parent",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.buffer}}),Object.defineProperty(g.prototype,"offset",{enumerable:!0,get:function(){if(g.isBuffer(this))return this.byteOffset}});function S(F){if(F>te)throw new RangeError('The value "'+F+'" is invalid for option "size"');var m=new Uint8Array(F);return Object.setPrototypeOf(m,g.prototype),m}function g(F,m,d){if(typeof F=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return E(F)}return I(F,m,d)}g.poolSize=8192;function I(F,m,d){if(typeof F=="string")return M(F,m);if(ArrayBuffer.isView(F))return T(F);if(F==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F);if(sr(F,ArrayBuffer)||F&&sr(F.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(sr(F,SharedArrayBuffer)||F&&sr(F.buffer,SharedArrayBuffer)))return L(F,m,d);if(typeof F=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var C=F.valueOf&&F.valueOf();if(C!=null&&C!==F)return g.from(C,m,d);var re=ee(F);if(re)return re;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof F[Symbol.toPrimitive]=="function")return g.from(F[Symbol.toPrimitive]("string"),m,d);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof F)}g.from=function(F,m,d){return I(F,m,d)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function v(F){if(typeof F!="number")throw new TypeError('"size" argument must be of type number');if(F<0)throw new RangeError('The value "'+F+'" is invalid for option "size"')}function z(F,m,d){return v(F),F<=0?S(F):m!==void 0?typeof d=="string"?S(F).fill(m,d):S(F).fill(m):S(F)}g.alloc=function(F,m,d){return z(F,m,d)};function E(F){return v(F),S(F<0?0:R(F)|0)}g.allocUnsafe=function(F){return E(F)},g.allocUnsafeSlow=function(F){return E(F)};function M(F,m){if((typeof m!="string"||m==="")&&(m="utf8"),!g.isEncoding(m))throw new TypeError("Unknown encoding: "+m);var d=X(F,m)|0,C=S(d),re=C.write(F,m);return re!==d&&(C=C.slice(0,re)),C}function N(F){for(var m=F.length<0?0:R(F.length)|0,d=S(m),C=0;C<m;C+=1)d[C]=F[C]&255;return d}function T(F){if(sr(F,Uint8Array)){var m=new Uint8Array(F);return L(m.buffer,m.byteOffset,m.byteLength)}return N(F)}function L(F,m,d){if(m<0||F.byteLength<m)throw new RangeError('"offset" is outside of buffer bounds');if(F.byteLength<m+(d||0))throw new RangeError('"length" is outside of buffer bounds');var C;return m===void 0&&d===void 0?C=new Uint8Array(F):d===void 0?C=new Uint8Array(F,m):C=new Uint8Array(F,m,d),Object.setPrototypeOf(C,g.prototype),C}function ee(F){if(g.isBuffer(F)){var m=R(F.length)|0,d=S(m);return d.length===0||F.copy(d,0,0,m),d}if(F.length!==void 0)return typeof F.length!="number"||G(F.length)?S(0):N(F);if(F.type==="Buffer"&&Array.isArray(F.data))return N(F.data)}function R(F){if(F>=te)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+te.toString(16)+" bytes");return F|0}function le(F){return+F!=F&&(F=0),g.alloc(+F)}g.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==g.prototype},g.compare=function(m,d){if(sr(m,Uint8Array)&&(m=g.from(m,m.offset,m.byteLength)),sr(d,Uint8Array)&&(d=g.from(d,d.offset,d.byteLength)),!g.isBuffer(m)||!g.isBuffer(d))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===d)return 0;for(var C=m.length,re=d.length,Be=0,H=Math.min(C,re);Be<H;++Be)if(m[Be]!==d[Be]){C=m[Be],re=d[Be];break}return C<re?-1:re<C?1:0},g.isEncoding=function(m){switch(String(m).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},g.concat=function(m,d){if(!Array.isArray(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return g.alloc(0);var C;if(d===void 0)for(d=0,C=0;C<m.length;++C)d+=m[C].length;var re=g.allocUnsafe(d),Be=0;for(C=0;C<m.length;++C){var H=m[C];if(sr(H,Uint8Array))Be+H.length>re.length?g.from(H).copy(re,Be):Uint8Array.prototype.set.call(re,H,Be);else if(g.isBuffer(H))H.copy(re,Be);else throw new TypeError('"list" argument must be an Array of Buffers');Be+=H.length}return re};function X(F,m){if(g.isBuffer(F))return F.length;if(ArrayBuffer.isView(F)||sr(F,ArrayBuffer))return F.byteLength;if(typeof F!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof F);var d=F.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&d===0)return 0;for(var re=!1;;)switch(m){case"ascii":case"latin1":case"binary":return d;case"utf8":case"utf-8":return Lt(F).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return d*2;case"hex":return d>>>1;case"base64":return ar(F).length;default:if(re)return C?-1:Lt(F).length;m=(""+m).toLowerCase(),re=!0}}g.byteLength=X;function q(F,m,d){var C=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((d===void 0||d>this.length)&&(d=this.length),d<=0)||(d>>>=0,m>>>=0,d<=m))return"";for(F||(F="utf8");;)switch(F){case"hex":return ve(this,m,d);case"utf8":case"utf-8":return D(this,m,d);case"ascii":return we(this,m,d);case"latin1":case"binary":return Te(this,m,d);case"base64":return ue(this,m,d);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Fe(this,m,d);default:if(C)throw new TypeError("Unknown encoding: "+F);F=(F+"").toLowerCase(),C=!0}}g.prototype._isBuffer=!0;function W(F,m,d){var C=F[m];F[m]=F[d],F[d]=C}g.prototype.swap16=function(){var m=this.length;if(m%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var d=0;d<m;d+=2)W(this,d,d+1);return this},g.prototype.swap32=function(){var m=this.length;if(m%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var d=0;d<m;d+=4)W(this,d,d+3),W(this,d+1,d+2);return this},g.prototype.swap64=function(){var m=this.length;if(m%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var d=0;d<m;d+=8)W(this,d,d+7),W(this,d+1,d+6),W(this,d+2,d+5),W(this,d+3,d+4);return this},g.prototype.toString=function(){var m=this.length;return m===0?"":arguments.length===0?D(this,0,m):q.apply(this,arguments)},g.prototype.toLocaleString=g.prototype.toString,g.prototype.equals=function(m){if(!g.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m?!0:g.compare(this,m)===0},g.prototype.inspect=function(){var m="",d=Tt.h2;return m=this.toString("hex",0,d).replace(/(.{2})/g,"$1 ").trim(),this.length>d&&(m+=" ... "),"<Buffer "+m+">"},De&&(g.prototype[De]=g.prototype.inspect),g.prototype.compare=function(m,d,C,re,Be){if(sr(m,Uint8Array)&&(m=g.from(m,m.offset,m.byteLength)),!g.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(d===void 0&&(d=0),C===void 0&&(C=m?m.length:0),re===void 0&&(re=0),Be===void 0&&(Be=this.length),d<0||C>m.length||re<0||Be>this.length)throw new RangeError("out of range index");if(re>=Be&&d>=C)return 0;if(re>=Be)return-1;if(d>=C)return 1;if(d>>>=0,C>>>=0,re>>>=0,Be>>>=0,this===m)return 0;for(var H=Be-re,ie=C-d,Qe=Math.min(H,ie),xe=this.slice(re,Be),ye=m.slice(d,C),je=0;je<Qe;++je)if(xe[je]!==ye[je]){H=xe[je],ie=ye[je];break}return H<ie?-1:ie<H?1:0};function K(F,m,d,C,re){if(F.length===0)return-1;if(typeof d=="string"?(C=d,d=0):d>2147483647?d=2147483647:d<-2147483648&&(d=-2147483648),d=+d,G(d)&&(d=re?0:F.length-1),d<0&&(d=F.length+d),d>=F.length){if(re)return-1;d=F.length-1}else if(d<0)if(re)d=0;else return-1;if(typeof m=="string"&&(m=g.from(m,C)),g.isBuffer(m))return m.length===0?-1:se(F,m,d,C,re);if(typeof m=="number")return m=m&255,typeof Uint8Array.prototype.indexOf=="function"?re?Uint8Array.prototype.indexOf.call(F,m,d):Uint8Array.prototype.lastIndexOf.call(F,m,d):se(F,[m],d,C,re);throw new TypeError("val must be string, number or Buffer")}function se(F,m,d,C,re){var Be=1,H=F.length,ie=m.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(F.length<2||m.length<2)return-1;Be=2,H/=2,ie/=2,d/=2}function Qe(he,st){return Be===1?he[st]:he.readUInt16BE(st*Be)}var xe;if(re){var ye=-1;for(xe=d;xe<H;xe++)if(Qe(F,xe)===Qe(m,ye===-1?0:xe-ye)){if(ye===-1&&(ye=xe),xe-ye+1===ie)return ye*Be}else ye!==-1&&(xe-=xe-ye),ye=-1}else for(d+ie>H&&(d=H-ie),xe=d;xe>=0;xe--){for(var je=!0,xt=0;xt<ie;xt++)if(Qe(F,xe+xt)!==Qe(m,xt)){je=!1;break}if(je)return xe}return-1}g.prototype.includes=function(m,d,C){return this.indexOf(m,d,C)!==-1},g.prototype.indexOf=function(m,d,C){return K(this,m,d,C,!0)},g.prototype.lastIndexOf=function(m,d,C){return K(this,m,d,C,!1)};function fe(F,m,d,C){d=Number(d)||0;var re=F.length-d;C?(C=Number(C),C>re&&(C=re)):C=re;var Be=m.length;C>Be/2&&(C=Be/2);for(var H=0;H<C;++H){var ie=parseInt(m.substr(H*2,2),16);if(G(ie))return H;F[d+H]=ie}return H}function Oe(F,m,d,C){return Cr(Lt(m,F.length-d),F,d,C)}function Se(F,m,d,C){return Cr(Nt(m),F,d,C)}function Ue(F,m,d,C){return Cr(ar(m),F,d,C)}function J(F,m,d,C){return Cr(ur(m,F.length-d),F,d,C)}g.prototype.write=function(m,d,C,re){if(d===void 0)re="utf8",C=this.length,d=0;else if(C===void 0&&typeof d=="string")re=d,C=this.length,d=0;else if(isFinite(d))d=d>>>0,isFinite(C)?(C=C>>>0,re===void 0&&(re="utf8")):(re=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Be=this.length-d;if((C===void 0||C>Be)&&(C=Be),m.length>0&&(C<0||d<0)||d>this.length)throw new RangeError("Attempt to write outside buffer bounds");re||(re="utf8");for(var H=!1;;)switch(re){case"hex":return fe(this,m,d,C);case"utf8":case"utf-8":return Oe(this,m,d,C);case"ascii":case"latin1":case"binary":return Se(this,m,d,C);case"base64":return Ue(this,m,d,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return J(this,m,d,C);default:if(H)throw new TypeError("Unknown encoding: "+re);re=(""+re).toLowerCase(),H=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function ue(F,m,d){return m===0&&d===F.length?Ae.fromByteArray(F):Ae.fromByteArray(F.slice(m,d))}function D(F,m,d){d=Math.min(F.length,d);for(var C=[],re=m;re<d;){var Be=F[re],H=null,ie=Be>239?4:Be>223?3:Be>191?2:1;if(re+ie<=d){var Qe,xe,ye,je;switch(ie){case 1:Be<128&&(H=Be);break;case 2:Qe=F[re+1],(Qe&192)===128&&(je=(Be&31)<<6|Qe&63,je>127&&(H=je));break;case 3:Qe=F[re+1],xe=F[re+2],(Qe&192)===128&&(xe&192)===128&&(je=(Be&15)<<12|(Qe&63)<<6|xe&63,je>2047&&(je<55296||je>57343)&&(H=je));break;case 4:Qe=F[re+1],xe=F[re+2],ye=F[re+3],(Qe&192)===128&&(xe&192)===128&&(ye&192)===128&&(je=(Be&15)<<18|(Qe&63)<<12|(xe&63)<<6|ye&63,je>65535&&je<1114112&&(H=je))}}H===null?(H=65533,ie=1):H>65535&&(H-=65536,C.push(H>>>10&1023|55296),H=56320|H&1023),C.push(H),re+=ie}return Me(C)}var Ve=4096;function Me(F){var m=F.length;if(m<=Ve)return String.fromCharCode.apply(String,F);for(var d="",C=0;C<m;)d+=String.fromCharCode.apply(String,F.slice(C,C+=Ve));return d}function we(F,m,d){var C="";d=Math.min(F.length,d);for(var re=m;re<d;++re)C+=String.fromCharCode(F[re]&127);return C}function Te(F,m,d){var C="";d=Math.min(F.length,d);for(var re=m;re<d;++re)C+=String.fromCharCode(F[re]);return C}function ve(F,m,d){var C=F.length;(!m||m<0)&&(m=0),(!d||d<0||d>C)&&(d=C);for(var re="",Be=m;Be<d;++Be)re+=ft[F[Be]];return re}function Fe(F,m,d){for(var C=F.slice(m,d),re="",Be=0;Be<C.length-1;Be+=2)re+=String.fromCharCode(C[Be]+C[Be+1]*256);return re}g.prototype.slice=function(m,d){var C=this.length;m=~~m,d=d===void 0?C:~~d,m<0?(m+=C,m<0&&(m=0)):m>C&&(m=C),d<0?(d+=C,d<0&&(d=0)):d>C&&(d=C),d<m&&(d=m);var re=this.subarray(m,d);return Object.setPrototypeOf(re,g.prototype),re};function de(F,m,d){if(F%1!==0||F<0)throw new RangeError("offset is not uint");if(F+m>d)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(m,d,C){m=m>>>0,d=d>>>0,C||de(m,d,this.length);for(var re=this[m],Be=1,H=0;++H<d&&(Be*=256);)re+=this[m+H]*Be;return re},g.prototype.readUintBE=g.prototype.readUIntBE=function(m,d,C){m=m>>>0,d=d>>>0,C||de(m,d,this.length);for(var re=this[m+--d],Be=1;d>0&&(Be*=256);)re+=this[m+--d]*Be;return re},g.prototype.readUint8=g.prototype.readUInt8=function(m,d){return m=m>>>0,d||de(m,1,this.length),this[m]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(m,d){return m=m>>>0,d||de(m,2,this.length),this[m]|this[m+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(m,d){return m=m>>>0,d||de(m,2,this.length),this[m]<<8|this[m+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(m,d){return m=m>>>0,d||de(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+this[m+3]*16777216},g.prototype.readUint32BE=g.prototype.readUInt32BE=function(m,d){return m=m>>>0,d||de(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},g.prototype.readIntLE=function(m,d,C){m=m>>>0,d=d>>>0,C||de(m,d,this.length);for(var re=this[m],Be=1,H=0;++H<d&&(Be*=256);)re+=this[m+H]*Be;return Be*=128,re>=Be&&(re-=Math.pow(2,8*d)),re},g.prototype.readIntBE=function(m,d,C){m=m>>>0,d=d>>>0,C||de(m,d,this.length);for(var re=d,Be=1,H=this[m+--re];re>0&&(Be*=256);)H+=this[m+--re]*Be;return Be*=128,H>=Be&&(H-=Math.pow(2,8*d)),H},g.prototype.readInt8=function(m,d){return m=m>>>0,d||de(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},g.prototype.readInt16LE=function(m,d){m=m>>>0,d||de(m,2,this.length);var C=this[m]|this[m+1]<<8;return C&32768?C|4294901760:C},g.prototype.readInt16BE=function(m,d){m=m>>>0,d||de(m,2,this.length);var C=this[m+1]|this[m]<<8;return C&32768?C|4294901760:C},g.prototype.readInt32LE=function(m,d){return m=m>>>0,d||de(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},g.prototype.readInt32BE=function(m,d){return m=m>>>0,d||de(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},g.prototype.readFloatLE=function(m,d){return m=m>>>0,d||de(m,4,this.length),P.read(this,m,!0,23,4)},g.prototype.readFloatBE=function(m,d){return m=m>>>0,d||de(m,4,this.length),P.read(this,m,!1,23,4)},g.prototype.readDoubleLE=function(m,d){return m=m>>>0,d||de(m,8,this.length),P.read(this,m,!0,52,8)},g.prototype.readDoubleBE=function(m,d){return m=m>>>0,d||de(m,8,this.length),P.read(this,m,!1,52,8)};function Ee(F,m,d,C,re,Be){if(!g.isBuffer(F))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>re||m<Be)throw new RangeError('"value" argument is out of bounds');if(d+C>F.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(m,d,C,re){if(m=+m,d=d>>>0,C=C>>>0,!re){var Be=Math.pow(2,8*C)-1;Ee(this,m,d,C,Be,0)}var H=1,ie=0;for(this[d]=m&255;++ie<C&&(H*=256);)this[d+ie]=m/H&255;return d+C},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(m,d,C,re){if(m=+m,d=d>>>0,C=C>>>0,!re){var Be=Math.pow(2,8*C)-1;Ee(this,m,d,C,Be,0)}var H=C-1,ie=1;for(this[d+H]=m&255;--H>=0&&(ie*=256);)this[d+H]=m/ie&255;return d+C},g.prototype.writeUint8=g.prototype.writeUInt8=function(m,d,C){return m=+m,d=d>>>0,C||Ee(this,m,d,1,255,0),this[d]=m&255,d+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(m,d,C){return m=+m,d=d>>>0,C||Ee(this,m,d,2,65535,0),this[d]=m&255,this[d+1]=m>>>8,d+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(m,d,C){return m=+m,d=d>>>0,C||Ee(this,m,d,2,65535,0),this[d]=m>>>8,this[d+1]=m&255,d+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(m,d,C){return m=+m,d=d>>>0,C||Ee(this,m,d,4,4294967295,0),this[d+3]=m>>>24,this[d+2]=m>>>16,this[d+1]=m>>>8,this[d]=m&255,d+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(m,d,C){return m=+m,d=d>>>0,C||Ee(this,m,d,4,4294967295,0),this[d]=m>>>24,this[d+1]=m>>>16,this[d+2]=m>>>8,this[d+3]=m&255,d+4},g.prototype.writeIntLE=function(m,d,C,re){if(m=+m,d=d>>>0,!re){var Be=Math.pow(2,8*C-1);Ee(this,m,d,C,Be-1,-Be)}var H=0,ie=1,Qe=0;for(this[d]=m&255;++H<C&&(ie*=256);)m<0&&Qe===0&&this[d+H-1]!==0&&(Qe=1),this[d+H]=(m/ie>>0)-Qe&255;return d+C},g.prototype.writeIntBE=function(m,d,C,re){if(m=+m,d=d>>>0,!re){var Be=Math.pow(2,8*C-1);Ee(this,m,d,C,Be-1,-Be)}var H=C-1,ie=1,Qe=0;for(this[d+H]=m&255;--H>=0&&(ie*=256);)m<0&&Qe===0&&this[d+H+1]!==0&&(Qe=1),this[d+H]=(m/ie>>0)-Qe&255;return d+C},g.prototype.writeInt8=function(m,d,C){return m=+m,d=d>>>0,C||Ee(this,m,d,1,127,-128),m<0&&(m=255+m+1),this[d]=m&255,d+1},g.prototype.writeInt16LE=function(m,d,C){return m=+m,d=d>>>0,C||Ee(this,m,d,2,32767,-32768),this[d]=m&255,this[d+1]=m>>>8,d+2},g.prototype.writeInt16BE=function(m,d,C){return m=+m,d=d>>>0,C||Ee(this,m,d,2,32767,-32768),this[d]=m>>>8,this[d+1]=m&255,d+2},g.prototype.writeInt32LE=function(m,d,C){return m=+m,d=d>>>0,C||Ee(this,m,d,4,2147483647,-2147483648),this[d]=m&255,this[d+1]=m>>>8,this[d+2]=m>>>16,this[d+3]=m>>>24,d+4},g.prototype.writeInt32BE=function(m,d,C){return m=+m,d=d>>>0,C||Ee(this,m,d,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[d]=m>>>24,this[d+1]=m>>>16,this[d+2]=m>>>8,this[d+3]=m&255,d+4};function tt(F,m,d,C,re,Be){if(d+C>F.length)throw new RangeError("Index out of range");if(d<0)throw new RangeError("Index out of range")}function it(F,m,d,C,re){return m=+m,d=d>>>0,re||tt(F,m,d,4,34028234663852886e22,-34028234663852886e22),P.write(F,m,d,C,23,4),d+4}g.prototype.writeFloatLE=function(m,d,C){return it(this,m,d,!0,C)},g.prototype.writeFloatBE=function(m,d,C){return it(this,m,d,!1,C)};function Je(F,m,d,C,re){return m=+m,d=d>>>0,re||tt(F,m,d,8,17976931348623157e292,-17976931348623157e292),P.write(F,m,d,C,52,8),d+8}g.prototype.writeDoubleLE=function(m,d,C){return Je(this,m,d,!0,C)},g.prototype.writeDoubleBE=function(m,d,C){return Je(this,m,d,!1,C)},g.prototype.copy=function(m,d,C,re){if(!g.isBuffer(m))throw new TypeError("argument should be a Buffer");if(C||(C=0),!re&&re!==0&&(re=this.length),d>=m.length&&(d=m.length),d||(d=0),re>0&&re<C&&(re=C),re===C||m.length===0||this.length===0)return 0;if(d<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(re<0)throw new RangeError("sourceEnd out of bounds");re>this.length&&(re=this.length),m.length-d<re-C&&(re=m.length-d+C);var Be=re-C;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(d,C,re):Uint8Array.prototype.set.call(m,this.subarray(C,re),d),Be},g.prototype.fill=function(m,d,C,re){if(typeof m=="string"){if(typeof d=="string"?(re=d,d=0,C=this.length):typeof C=="string"&&(re=C,C=this.length),re!==void 0&&typeof re!="string")throw new TypeError("encoding must be a string");if(typeof re=="string"&&!g.isEncoding(re))throw new TypeError("Unknown encoding: "+re);if(m.length===1){var Be=m.charCodeAt(0);(re==="utf8"&&Be<128||re==="latin1")&&(m=Be)}}else typeof m=="number"?m=m&255:typeof m=="boolean"&&(m=Number(m));if(d<0||this.length<d||this.length<C)throw new RangeError("Out of range index");if(C<=d)return this;d=d>>>0,C=C===void 0?this.length:C>>>0,m||(m=0);var H;if(typeof m=="number")for(H=d;H<C;++H)this[H]=m;else{var ie=g.isBuffer(m)?m:g.from(m,re),Qe=ie.length;if(Qe===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(H=0;H<C-d;++H)this[H+d]=ie[H%Qe]}return this};var et=/[^+/0-9A-Za-z-_]/g;function Bt(F){if(F=F.split("=")[0],F=F.trim().replace(et,""),F.length<2)return"";for(;F.length%4!==0;)F=F+"=";return F}function Lt(F,m){m=m||1/0;for(var d,C=F.length,re=null,Be=[],H=0;H<C;++H){if(d=F.charCodeAt(H),d>55295&&d<57344){if(!re){if(d>56319){(m-=3)>-1&&Be.push(239,191,189);continue}else if(H+1===C){(m-=3)>-1&&Be.push(239,191,189);continue}re=d;continue}if(d<56320){(m-=3)>-1&&Be.push(239,191,189),re=d;continue}d=(re-55296<<10|d-56320)+65536}else re&&(m-=3)>-1&&Be.push(239,191,189);if(re=null,d<128){if((m-=1)<0)break;Be.push(d)}else if(d<2048){if((m-=2)<0)break;Be.push(d>>6|192,d&63|128)}else if(d<65536){if((m-=3)<0)break;Be.push(d>>12|224,d>>6&63|128,d&63|128)}else if(d<1114112){if((m-=4)<0)break;Be.push(d>>18|240,d>>12&63|128,d>>6&63|128,d&63|128)}else throw new Error("Invalid code point")}return Be}function Nt(F){for(var m=[],d=0;d<F.length;++d)m.push(F.charCodeAt(d)&255);return m}function ur(F,m){for(var d,C,re,Be=[],H=0;H<F.length&&!((m-=2)<0);++H)d=F.charCodeAt(H),C=d>>8,re=d%256,Be.push(re),Be.push(C);return Be}function ar(F){return Ae.toByteArray(Bt(F))}function Cr(F,m,d,C){for(var re=0;re<C&&!(re+d>=m.length||re>=F.length);++re)m[re+d]=F[re];return re}function sr(F,m){return F instanceof m||F!=null&&F.constructor!=null&&F.constructor.name!=null&&F.constructor.name===m.name}function G(F){return F!==F}var ft=function(){for(var F="0123456789abcdef",m=new Array(256),d=0;d<16;++d)for(var C=d*16,re=0;re<16;++re)m[C+re]=F[d]+F[re];return m}()},64270:function(un){(function(Tt,x){un.exports=x()})(this,function(){"use strict";var Tt=function(b,f){return Tt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,y){w.__proto__=y}||function(w,y){for(var ne in y)Object.prototype.hasOwnProperty.call(y,ne)&&(w[ne]=y[ne])},Tt(b,f)};function x(b,f){if(typeof f!="function"&&f!==null)throw new TypeError("Class extends value "+String(f)+" is not a constructor or null");Tt(b,f);function w(){this.constructor=b}b.prototype=f===null?Object.create(f):(w.prototype=f.prototype,new w)}var me=function(){return me=Object.assign||function(f){for(var w,y=1,ne=arguments.length;y<ne;y++){w=arguments[y];for(var _e in w)Object.prototype.hasOwnProperty.call(w,_e)&&(f[_e]=w[_e])}return f},me.apply(this,arguments)};function Ae(b,f,w,y){function ne(_e){return _e instanceof w?_e:new w(function(Ze){Ze(_e)})}return new(w||(w=Promise))(function(_e,Ze){function ht(Ar){try{qt(y.next(Ar))}catch(pr){Ze(pr)}}function pt(Ar){try{qt(y.throw(Ar))}catch(pr){Ze(pr)}}function qt(Ar){Ar.done?_e(Ar.value):ne(Ar.value).then(ht,pt)}qt((y=y.apply(b,f||[])).next())})}function P(b,f){var w={label:0,sent:function(){if(_e[0]&1)throw _e[1];return _e[1]},trys:[],ops:[]},y,ne,_e,Ze;return Ze={next:ht(0),throw:ht(1),return:ht(2)},typeof Symbol=="function"&&(Ze[Symbol.iterator]=function(){return this}),Ze;function ht(qt){return function(Ar){return pt([qt,Ar])}}function pt(qt){if(y)throw new TypeError("Generator is already executing.");for(;w;)try{if(y=1,ne&&(_e=qt[0]&2?ne.return:qt[0]?ne.throw||((_e=ne.return)&&_e.call(ne),0):ne.next)&&!(_e=_e.call(ne,qt[1])).done)return _e;switch(ne=0,_e&&(qt=[qt[0]&2,_e.value]),qt[0]){case 0:case 1:_e=qt;break;case 4:return w.label++,{value:qt[1],done:!1};case 5:w.label++,ne=qt[1],qt=[0];continue;case 7:qt=w.ops.pop(),w.trys.pop();continue;default:if(_e=w.trys,!(_e=_e.length>0&&_e[_e.length-1])&&(qt[0]===6||qt[0]===2)){w=0;continue}if(qt[0]===3&&(!_e||qt[1]>_e[0]&&qt[1]<_e[3])){w.label=qt[1];break}if(qt[0]===6&&w.label<_e[1]){w.label=_e[1],_e=qt;break}if(_e&&w.label<_e[2]){w.label=_e[2],w.ops.push(qt);break}_e[2]&&w.ops.pop(),w.trys.pop();continue}qt=f.call(b,w)}catch(Ar){qt=[6,Ar],ne=0}finally{y=_e=0}if(qt[0]&5)throw qt[1];return{value:qt[0]?qt[1]:void 0,done:!0}}}function De(b,f,w){if(w||arguments.length===2)for(var y=0,ne=f.length,_e;y<ne;y++)(_e||!(y in f))&&(_e||(_e=Array.prototype.slice.call(f,0,y)),_e[y]=f[y]);return b.concat(_e||f)}for(var te=function(){function b(f,w,y,ne){this.left=f,this.top=w,this.width=y,this.height=ne}return b.prototype.add=function(f,w,y,ne){return new b(this.left+f,this.top+w,this.width+y,this.height+ne)},b.fromClientRect=function(f,w){return new b(w.left+f.windowBounds.left,w.top+f.windowBounds.top,w.width,w.height)},b.fromDOMRectList=function(f,w){var y=Array.from(w).find(function(ne){return ne.width!==0});return y?new b(y.left+f.windowBounds.left,y.top+f.windowBounds.top,y.width,y.height):b.EMPTY},b.EMPTY=new b(0,0,0,0),b}(),V=function(b,f){return te.fromClientRect(b,f.getBoundingClientRect())},S=function(b){var f=b.body,w=b.documentElement;if(!f||!w)throw new Error("Unable to get document size");var y=Math.max(Math.max(f.scrollWidth,w.scrollWidth),Math.max(f.offsetWidth,w.offsetWidth),Math.max(f.clientWidth,w.clientWidth)),ne=Math.max(Math.max(f.scrollHeight,w.scrollHeight),Math.max(f.offsetHeight,w.offsetHeight),Math.max(f.clientHeight,w.clientHeight));return new te(0,0,y,ne)},g=function(b){for(var f=[],w=0,y=b.length;w<y;){var ne=b.charCodeAt(w++);if(ne>=55296&&ne<=56319&&w<y){var _e=b.charCodeAt(w++);(_e&64512)===56320?f.push(((ne&1023)<<10)+(_e&1023)+65536):(f.push(ne),w--)}else f.push(ne)}return f},I=function(){for(var b=[],f=0;f<arguments.length;f++)b[f]=arguments[f];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var w=b.length;if(!w)return"";for(var y=[],ne=-1,_e="";++ne<w;){var Ze=b[ne];Ze<=65535?y.push(Ze):(Ze-=65536,y.push((Ze>>10)+55296,Ze%1024+56320)),(ne+1===w||y.length>16384)&&(_e+=String.fromCharCode.apply(String,y),y.length=0)}return _e},v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",z=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),E=0;E<v.length;E++)z[v.charCodeAt(E)]=E;for(var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),T=0;T<M.length;T++)N[M.charCodeAt(T)]=T;for(var L=function(b){var f=b.length*.75,w=b.length,y,ne=0,_e,Ze,ht,pt;b[b.length-1]==="="&&(f--,b[b.length-2]==="="&&f--);var qt=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(f):new Array(f),Ar=Array.isArray(qt)?qt:new Uint8Array(qt);for(y=0;y<w;y+=4)_e=N[b.charCodeAt(y)],Ze=N[b.charCodeAt(y+1)],ht=N[b.charCodeAt(y+2)],pt=N[b.charCodeAt(y+3)],Ar[ne++]=_e<<2|Ze>>4,Ar[ne++]=(Ze&15)<<4|ht>>2,Ar[ne++]=(ht&3)<<6|pt&63;return qt},ee=function(b){for(var f=b.length,w=[],y=0;y<f;y+=2)w.push(b[y+1]<<8|b[y]);return w},R=function(b){for(var f=b.length,w=[],y=0;y<f;y+=4)w.push(b[y+3]<<24|b[y+2]<<16|b[y+1]<<8|b[y]);return w},le=5,X=11,q=2,W=X-le,K=65536>>le,se=1<<le,fe=se-1,Oe=1024>>le,Se=K+Oe,Ue=Se,J=32,ue=Ue+J,D=65536>>X,Ve=1<<W,Me=Ve-1,we=function(b,f,w){return b.slice?b.slice(f,w):new Uint16Array(Array.prototype.slice.call(b,f,w))},Te=function(b,f,w){return b.slice?b.slice(f,w):new Uint32Array(Array.prototype.slice.call(b,f,w))},ve=function(b,f){var w=L(b),y=Array.isArray(w)?R(w):new Uint32Array(w),ne=Array.isArray(w)?ee(w):new Uint16Array(w),_e=24,Ze=we(ne,_e/2,y[4]/2),ht=y[5]===2?we(ne,(_e+y[4])/2):Te(y,Math.ceil((_e+y[4])/4));return new Fe(y[0],y[1],y[2],y[3],Ze,ht)},Fe=function(){function b(f,w,y,ne,_e,Ze){this.initialValue=f,this.errorValue=w,this.highStart=y,this.highValueIndex=ne,this.index=_e,this.data=Ze}return b.prototype.get=function(f){var w;if(f>=0){if(f<55296||f>56319&&f<=65535)return w=this.index[f>>le],w=(w<<q)+(f&fe),this.data[w];if(f<=65535)return w=this.index[K+(f-55296>>le)],w=(w<<q)+(f&fe),this.data[w];if(f<this.highStart)return w=ue-D+(f>>X),w=this.index[w],w+=f>>le&Me,w=this.index[w],w=(w<<q)+(f&fe),this.data[w];if(f<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b}(),de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ee=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),tt=0;tt<de.length;tt++)Ee[de.charCodeAt(tt)]=tt;var it="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Je=50,et=1,Bt=2,Lt=3,Nt=4,ur=5,ar=7,Cr=8,sr=9,G=10,ft=11,F=12,m=13,d=14,C=15,re=16,Be=17,H=18,ie=19,Qe=20,xe=21,ye=22,je=23,xt=24,he=25,st=26,Ye=27,Ie=28,Le=29,ct=30,Ut=31,kt=32,tr=33,Dr=34,fr=35,Fr=36,Lr=37,mr=38,cr=39,Kr=40,fn=41,_n=42,ln=43,xn=[9001,65288],oi="!",_r="\xD7",Ai="\xF7",Oi=ve(it),mi=[ct,Fr],Wi=[et,Bt,Lt,ur],Gi=[G,Cr],ta=[Ye,st],_o=Wi.concat(Gi),ra=[mr,cr,Kr,Dr,fr],bi=[C,m],Ki=function(b,f){f===void 0&&(f="strict");var w=[],y=[],ne=[];return b.forEach(function(_e,Ze){var ht=Oi.get(_e);if(ht>Je?(ne.push(!0),ht-=Je):ne.push(!1),["normal","auto","loose"].indexOf(f)!==-1&&[8208,8211,12316,12448].indexOf(_e)!==-1)return y.push(Ze),w.push(re);if(ht===Nt||ht===ft){if(Ze===0)return y.push(Ze),w.push(ct);var pt=w[Ze-1];return _o.indexOf(pt)===-1?(y.push(y[Ze-1]),w.push(pt)):(y.push(Ze),w.push(ct))}if(y.push(Ze),ht===Ut)return w.push(f==="strict"?xe:Lr);if(ht===_n||ht===Le)return w.push(ct);if(ht===ln)return _e>=131072&&_e<=196605||_e>=196608&&_e<=262141?w.push(Lr):w.push(ct);w.push(ht)}),[y,w,ne]},sa=function(b,f,w,y){var ne=y[w];if(Array.isArray(b)?b.indexOf(ne)!==-1:b===ne)for(var _e=w;_e<=y.length;){_e++;var Ze=y[_e];if(Ze===f)return!0;if(Ze!==G)break}if(ne===G)for(var _e=w;_e>0;){_e--;var ht=y[_e];if(Array.isArray(b)?b.indexOf(ht)!==-1:b===ht)for(var pt=w;pt<=y.length;){pt++;var Ze=y[pt];if(Ze===f)return!0;if(Ze!==G)break}if(ht!==G)break}return!1},be=function(b,f){for(var w=b;w>=0;){var y=f[w];if(y===G)w--;else return y}return 0},Ne=function(b,f,w,y,ne){if(w[y]===0)return _r;var _e=y-1;if(Array.isArray(ne)&&ne[_e]===!0)return _r;var Ze=_e-1,ht=_e+1,pt=f[_e],qt=Ze>=0?f[Ze]:0,Ar=f[ht];if(pt===Bt&&Ar===Lt)return _r;if(Wi.indexOf(pt)!==-1)return oi;if(Wi.indexOf(Ar)!==-1||Gi.indexOf(Ar)!==-1)return _r;if(be(_e,f)===Cr)return Ai;if(Oi.get(b[_e])===ft||(pt===kt||pt===tr)&&Oi.get(b[ht])===ft||pt===ar||Ar===ar||pt===sr||[G,m,C].indexOf(pt)===-1&&Ar===sr||[Be,H,ie,xt,Ie].indexOf(Ar)!==-1||be(_e,f)===ye||sa(je,ye,_e,f)||sa([Be,H],xe,_e,f)||sa(F,F,_e,f))return _r;if(pt===G)return Ai;if(pt===je||Ar===je)return _r;if(Ar===re||pt===re)return Ai;if([m,C,xe].indexOf(Ar)!==-1||pt===d||qt===Fr&&bi.indexOf(pt)!==-1||pt===Ie&&Ar===Fr||Ar===Qe||mi.indexOf(Ar)!==-1&&pt===he||mi.indexOf(pt)!==-1&&Ar===he||pt===Ye&&[Lr,kt,tr].indexOf(Ar)!==-1||[Lr,kt,tr].indexOf(pt)!==-1&&Ar===st||mi.indexOf(pt)!==-1&&ta.indexOf(Ar)!==-1||ta.indexOf(pt)!==-1&&mi.indexOf(Ar)!==-1||[Ye,st].indexOf(pt)!==-1&&(Ar===he||[ye,C].indexOf(Ar)!==-1&&f[ht+1]===he)||[ye,C].indexOf(pt)!==-1&&Ar===he||pt===he&&[he,Ie,xt].indexOf(Ar)!==-1)return _r;if([he,Ie,xt,Be,H].indexOf(Ar)!==-1)for(var pr=_e;pr>=0;){var qr=f[pr];if(qr===he)return _r;if([Ie,xt].indexOf(qr)!==-1)pr--;else break}if([Ye,st].indexOf(Ar)!==-1)for(var pr=[Be,H].indexOf(pt)!==-1?Ze:_e;pr>=0;){var qr=f[pr];if(qr===he)return _r;if([Ie,xt].indexOf(qr)!==-1)pr--;else break}if(mr===pt&&[mr,cr,Dr,fr].indexOf(Ar)!==-1||[cr,Dr].indexOf(pt)!==-1&&[cr,Kr].indexOf(Ar)!==-1||[Kr,fr].indexOf(pt)!==-1&&Ar===Kr||ra.indexOf(pt)!==-1&&[Qe,st].indexOf(Ar)!==-1||ra.indexOf(Ar)!==-1&&pt===Ye||mi.indexOf(pt)!==-1&&mi.indexOf(Ar)!==-1||pt===xt&&mi.indexOf(Ar)!==-1||mi.concat(he).indexOf(pt)!==-1&&Ar===ye&&xn.indexOf(b[ht])===-1||mi.concat(he).indexOf(Ar)!==-1&&pt===H)return _r;if(pt===fn&&Ar===fn){for(var Ti=w[_e],Un=1;Ti>0&&(Ti--,f[Ti]===fn);)Un++;if(Un%2!==0)return _r}return pt===kt&&Ar===tr?_r:Ai},ke=function(b,f){f||(f={lineBreak:"normal",wordBreak:"normal"});var w=Ki(b,f.lineBreak),y=w[0],ne=w[1],_e=w[2];(f.wordBreak==="break-all"||f.wordBreak==="break-word")&&(ne=ne.map(function(ht){return[he,ct,_n].indexOf(ht)!==-1?Lr:ht}));var Ze=f.wordBreak==="keep-all"?_e.map(function(ht,pt){return ht&&b[pt]>=19968&&b[pt]<=40959}):void 0;return[y,ne,Ze]},Xe=function(){function b(f,w,y,ne){this.codePoints=f,this.required=w===oi,this.start=y,this.end=ne}return b.prototype.slice=function(){return I.apply(void 0,this.codePoints.slice(this.start,this.end))},b}(),Pt=function(b,f){var w=g(b),y=ke(w,f),ne=y[0],_e=y[1],Ze=y[2],ht=w.length,pt=0,qt=0;return{next:function(){if(qt>=ht)return{done:!0,value:null};for(var Ar=_r;qt<ht&&(Ar=Ne(w,_e,ne,++qt,Ze))===_r;);if(Ar!==_r||qt===ht){var pr=new Xe(w,Ar,pt,qt);return pt=qt,{value:pr,done:!1}}return{done:!0,value:null}}}},Dt=1,Er=2,rr=4,Nr=8,Hr=10,an=47,jr=92,Rr=9,en=32,wn=34,on=61,On=35,Qn=36,di=37,Nn=39,Gn=40,Vt=41,Xt=95,Yt=45,er=33,jt=60,or=62,lr=64,Pr=91,yn=93,Bn=61,li=123,ti=63,Si=125,Yn=124,jn=126,wi=128,yi=65533,xi=42,ci=43,Ci=44,$i=58,ei=59,Ni=46,Ha=0,si=8,pn=11,cn=14,Xn=31,Kn=127,fi=-1,Xi=48,Ii=97,Ua=101,Aa=102,Co=117,Vn=122,Mn=65,Li=69,Zi=70,Fa=85,Is=90,za=function(b){return b>=Xi&&b<=57},fa=function(b){return b>=55296&&b<=57343},Io=function(b){return za(b)||b>=Mn&&b<=Zi||b>=Ii&&b<=Aa},Bo=function(b){return b>=Ii&&b<=Vn},Po=function(b){return b>=Mn&&b<=Is},Ns=function(b){return Bo(b)||Po(b)},ho=function(b){return b>=wi},bs=function(b){return b===Hr||b===Rr||b===en},Ps=function(b){return Ns(b)||ho(b)||b===Xt},$s=function(b){return Ps(b)||za(b)||b===Yt},To=function(b){return b>=Ha&&b<=si||b===pn||b>=cn&&b<=Xn||b===Kn},Uo=function(b,f){return b!==jr?!1:f!==Hr},ys=function(b,f,w){return b===Yt?Ps(f)||Uo(f,w):Ps(b)?!0:!!(b===jr&&Uo(b,f))},el=function(b,f,w){return b===ci||b===Yt?za(f)?!0:f===Ni&&za(w):za(b===Ni?f:b)},vl=function(b){var f=0,w=1;(b[f]===ci||b[f]===Yt)&&(b[f]===Yt&&(w=-1),f++);for(var y=[];za(b[f]);)y.push(b[f++]);var ne=y.length?parseInt(I.apply(void 0,y),10):0;b[f]===Ni&&f++;for(var _e=[];za(b[f]);)_e.push(b[f++]);var Ze=_e.length,ht=Ze?parseInt(I.apply(void 0,_e),10):0;(b[f]===Li||b[f]===Ua)&&f++;var pt=1;(b[f]===ci||b[f]===Yt)&&(b[f]===Yt&&(pt=-1),f++);for(var qt=[];za(b[f]);)qt.push(b[f++]);var Ar=qt.length?parseInt(I.apply(void 0,qt),10):0;return w*(ne+ht*Math.pow(10,-Ze))*Math.pow(10,pt*Ar)},ic={type:2},ac={type:3},Ql={type:4},Zs={type:13},Dc={type:8},Kl={type:21},Hl={type:9},Vs={type:10},as={type:11},ri={type:12},la={type:14},Yi={type:23},aa={type:1},Da={type:25},oo={type:24},Ws={type:26},ws={type:27},xs={type:28},ms={type:29},qa={type:31},Ra={type:32},os=function(){function b(){this._value=[]}return b.prototype.write=function(f){this._value=this._value.concat(g(f))},b.prototype.read=function(){for(var f=[],w=this.consumeToken();w!==Ra;)f.push(w),w=this.consumeToken();return f},b.prototype.consumeToken=function(){var f=this.consumeCodePoint();switch(f){case wn:return this.consumeStringToken(wn);case On:var w=this.peekCodePoint(0),y=this.peekCodePoint(1),ne=this.peekCodePoint(2);if($s(w)||Uo(y,ne)){var _e=ys(w,y,ne)?Er:Dt,Ze=this.consumeName();return{type:5,value:Ze,flags:_e}}break;case Qn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Zs;break;case Nn:return this.consumeStringToken(Nn);case Gn:return ic;case Vt:return ac;case xi:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),la;break;case ci:if(el(f,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(f),this.consumeNumericToken();break;case Ci:return Ql;case Yt:var ht=f,pt=this.peekCodePoint(0),qt=this.peekCodePoint(1);if(el(ht,pt,qt))return this.reconsumeCodePoint(f),this.consumeNumericToken();if(ys(ht,pt,qt))return this.reconsumeCodePoint(f),this.consumeIdentLikeToken();if(pt===Yt&&qt===or)return this.consumeCodePoint(),this.consumeCodePoint(),oo;break;case Ni:if(el(f,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(f),this.consumeNumericToken();break;case an:if(this.peekCodePoint(0)===xi)for(this.consumeCodePoint();;){var Ar=this.consumeCodePoint();if(Ar===xi&&(Ar=this.consumeCodePoint(),Ar===an))return this.consumeToken();if(Ar===fi)return this.consumeToken()}break;case $i:return Ws;case ei:return ws;case jt:if(this.peekCodePoint(0)===er&&this.peekCodePoint(1)===Yt&&this.peekCodePoint(2)===Yt)return this.consumeCodePoint(),this.consumeCodePoint(),Da;break;case lr:var pr=this.peekCodePoint(0),qr=this.peekCodePoint(1),Ti=this.peekCodePoint(2);if(ys(pr,qr,Ti)){var Ze=this.consumeName();return{type:7,value:Ze}}break;case Pr:return xs;case jr:if(Uo(f,this.peekCodePoint(0)))return this.reconsumeCodePoint(f),this.consumeIdentLikeToken();break;case yn:return ms;case Bn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Dc;break;case li:return as;case Si:return ri;case Co:case Fa:var Un=this.peekCodePoint(0),pi=this.peekCodePoint(1);return Un===ci&&(Io(pi)||pi===ti)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(f),this.consumeIdentLikeToken();case Yn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Hl;if(this.peekCodePoint(0)===Yn)return this.consumeCodePoint(),Kl;break;case jn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Vs;break;case fi:return Ra}return bs(f)?(this.consumeWhiteSpace(),qa):za(f)?(this.reconsumeCodePoint(f),this.consumeNumericToken()):Ps(f)?(this.reconsumeCodePoint(f),this.consumeIdentLikeToken()):{type:6,value:I(f)}},b.prototype.consumeCodePoint=function(){var f=this._value.shift();return typeof f=="undefined"?-1:f},b.prototype.reconsumeCodePoint=function(f){this._value.unshift(f)},b.prototype.peekCodePoint=function(f){return f>=this._value.length?-1:this._value[f]},b.prototype.consumeUnicodeRangeToken=function(){for(var f=[],w=this.consumeCodePoint();Io(w)&&f.length<6;)f.push(w),w=this.consumeCodePoint();for(var y=!1;w===ti&&f.length<6;)f.push(w),w=this.consumeCodePoint(),y=!0;if(y){var ne=parseInt(I.apply(void 0,f.map(function(pt){return pt===ti?Xi:pt})),16),_e=parseInt(I.apply(void 0,f.map(function(pt){return pt===ti?Zi:pt})),16);return{type:30,start:ne,end:_e}}var Ze=parseInt(I.apply(void 0,f),16);if(this.peekCodePoint(0)===Yt&&Io(this.peekCodePoint(1))){this.consumeCodePoint(),w=this.consumeCodePoint();for(var ht=[];Io(w)&&ht.length<6;)ht.push(w),w=this.consumeCodePoint();var _e=parseInt(I.apply(void 0,ht),16);return{type:30,start:Ze,end:_e}}else return{type:30,start:Ze,end:Ze}},b.prototype.consumeIdentLikeToken=function(){var f=this.consumeName();return f.toLowerCase()==="url"&&this.peekCodePoint(0)===Gn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Gn?(this.consumeCodePoint(),{type:19,value:f}):{type:20,value:f}},b.prototype.consumeUrlToken=function(){var f=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===fi)return{type:22,value:""};var w=this.peekCodePoint(0);if(w===Nn||w===wn){var y=this.consumeStringToken(this.consumeCodePoint());return y.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===fi||this.peekCodePoint(0)===Vt)?(this.consumeCodePoint(),{type:22,value:y.value}):(this.consumeBadUrlRemnants(),Yi)}for(;;){var ne=this.consumeCodePoint();if(ne===fi||ne===Vt)return{type:22,value:I.apply(void 0,f)};if(bs(ne))return this.consumeWhiteSpace(),this.peekCodePoint(0)===fi||this.peekCodePoint(0)===Vt?(this.consumeCodePoint(),{type:22,value:I.apply(void 0,f)}):(this.consumeBadUrlRemnants(),Yi);if(ne===wn||ne===Nn||ne===Gn||To(ne))return this.consumeBadUrlRemnants(),Yi;if(ne===jr)if(Uo(ne,this.peekCodePoint(0)))f.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Yi;else f.push(ne)}},b.prototype.consumeWhiteSpace=function(){for(;bs(this.peekCodePoint(0));)this.consumeCodePoint()},b.prototype.consumeBadUrlRemnants=function(){for(;;){var f=this.consumeCodePoint();if(f===Vt||f===fi)return;Uo(f,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},b.prototype.consumeStringSlice=function(f){for(var w=5e4,y="";f>0;){var ne=Math.min(w,f);y+=I.apply(void 0,this._value.splice(0,ne)),f-=ne}return this._value.shift(),y},b.prototype.consumeStringToken=function(f){var w="",y=0;do{var ne=this._value[y];if(ne===fi||ne===void 0||ne===f)return w+=this.consumeStringSlice(y),{type:0,value:w};if(ne===Hr)return this._value.splice(0,y),aa;if(ne===jr){var _e=this._value[y+1];_e!==fi&&_e!==void 0&&(_e===Hr?(w+=this.consumeStringSlice(y),y=-1,this._value.shift()):Uo(ne,_e)&&(w+=this.consumeStringSlice(y),w+=I(this.consumeEscapedCodePoint()),y=-1))}y++}while(!0)},b.prototype.consumeNumber=function(){var f=[],w=rr,y=this.peekCodePoint(0);for((y===ci||y===Yt)&&f.push(this.consumeCodePoint());za(this.peekCodePoint(0));)f.push(this.consumeCodePoint());y=this.peekCodePoint(0);var ne=this.peekCodePoint(1);if(y===Ni&&za(ne))for(f.push(this.consumeCodePoint(),this.consumeCodePoint()),w=Nr;za(this.peekCodePoint(0));)f.push(this.consumeCodePoint());y=this.peekCodePoint(0),ne=this.peekCodePoint(1);var _e=this.peekCodePoint(2);if((y===Li||y===Ua)&&((ne===ci||ne===Yt)&&za(_e)||za(ne)))for(f.push(this.consumeCodePoint(),this.consumeCodePoint()),w=Nr;za(this.peekCodePoint(0));)f.push(this.consumeCodePoint());return[vl(f),w]},b.prototype.consumeNumericToken=function(){var f=this.consumeNumber(),w=f[0],y=f[1],ne=this.peekCodePoint(0),_e=this.peekCodePoint(1),Ze=this.peekCodePoint(2);if(ys(ne,_e,Ze)){var ht=this.consumeName();return{type:15,number:w,flags:y,unit:ht}}return ne===di?(this.consumeCodePoint(),{type:16,number:w,flags:y}):{type:17,number:w,flags:y}},b.prototype.consumeEscapedCodePoint=function(){var f=this.consumeCodePoint();if(Io(f)){for(var w=I(f);Io(this.peekCodePoint(0))&&w.length<6;)w+=I(this.consumeCodePoint());bs(this.peekCodePoint(0))&&this.consumeCodePoint();var y=parseInt(w,16);return y===0||fa(y)||y>1114111?yi:y}return f===fi?yi:f},b.prototype.consumeName=function(){for(var f="";;){var w=this.consumeCodePoint();if($s(w))f+=I(w);else if(Uo(w,this.peekCodePoint(0)))f+=I(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(w),f}},b}(),ss=function(){function b(f){this._tokens=f}return b.create=function(f){var w=new os;return w.write(f),new b(w.read())},b.parseValue=function(f){return b.create(f).parseComponentValue()},b.parseValues=function(f){return b.create(f).parseComponentValues()},b.prototype.parseComponentValue=function(){for(var f=this.consumeToken();f.type===31;)f=this.consumeToken();if(f.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(f);var w=this.consumeComponentValue();do f=this.consumeToken();while(f.type===31);if(f.type===32)return w;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},b.prototype.parseComponentValues=function(){for(var f=[];;){var w=this.consumeComponentValue();if(w.type===32)return f;f.push(w),f.push()}},b.prototype.consumeComponentValue=function(){var f=this.consumeToken();switch(f.type){case 11:case 28:case 2:return this.consumeSimpleBlock(f.type);case 19:return this.consumeFunction(f)}return f},b.prototype.consumeSimpleBlock=function(f){for(var w={type:f,values:[]},y=this.consumeToken();;){if(y.type===32||gA(y,f))return w;this.reconsumeToken(y),w.values.push(this.consumeComponentValue()),y=this.consumeToken()}},b.prototype.consumeFunction=function(f){for(var w={name:f.value,values:[],type:18};;){var y=this.consumeToken();if(y.type===32||y.type===3)return w;this.reconsumeToken(y),w.values.push(this.consumeComponentValue())}},b.prototype.consumeToken=function(){var f=this._tokens.shift();return typeof f=="undefined"?Ra:f},b.prototype.reconsumeToken=function(f){this._tokens.unshift(f)},b}(),Fs=function(b){return b.type===15},Go=function(b){return b.type===17},Fo=function(b){return b.type===20},pA=function(b){return b.type===0},tu=function(b,f){return Fo(b)&&b.value===f},Ac=function(b){return b.type!==31},mA=function(b){return b.type!==31&&b.type!==4},ll=function(b){var f=[],w=[];return b.forEach(function(y){if(y.type===4){if(w.length===0)throw new Error("Error parsing function args, zero tokens for arg");f.push(w),w=[];return}y.type!==31&&w.push(y)}),w.length&&f.push(w),f},gA=function(b,f){return f===11&&b.type===12||f===28&&b.type===29?!0:f===2&&b.type===3},tl=function(b){return b.type===17||b.type===15},gs=function(b){return b.type===16||tl(b)},qc=function(b){return b.length>1?[b[0],b[1]]:[b[0]]},Ts={type:17,number:0,flags:rr},NA={type:16,number:50,flags:rr},uc={type:16,number:100,flags:rr},jl=function(b,f,w){var y=b[0],ne=b[1];return[eo(y,f),eo(typeof ne!="undefined"?ne:y,w)]},eo=function(b,f){if(b.type===16)return b.number/100*f;if(Fs(b))switch(b.unit){case"rem":case"em":return 16*b.number;case"px":default:return b.number}return b.number},Gs="deg",vA="grad",Su="rad",ls="turn",Ca={name:"angle",parse:function(b,f){if(f.type===15)switch(f.unit){case Gs:return Math.PI*f.number/180;case vA:return Math.PI/200*f.number;case Su:return f.number;case ls:return Math.PI*2*f.number}throw new Error("Unsupported angle type")}},ya=function(b){return b.type===15&&(b.unit===Gs||b.unit===vA||b.unit===Su||b.unit===ls)},ts=function(b){var f=b.filter(Fo).map(function(w){return w.value}).join(" ");switch(f){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Ts,Ts];case"to top":case"bottom":return mo(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ts,uc];case"to right":case"left":return mo(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[uc,uc];case"to bottom":case"top":return mo(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[uc,Ts];case"to left":case"right":return mo(270)}return 0},mo=function(b){return Math.PI*b/180},jo={name:"color",parse:function(b,f){if(f.type===18){var w=xl[f.name];if(typeof w=="undefined")throw new Error('Attempting to parse an unsupported color function "'+f.name+'"');return w(b,f.values)}if(f.type===5){if(f.value.length===3){var y=f.value.substring(0,1),ne=f.value.substring(1,2),_e=f.value.substring(2,3);return Cs(parseInt(y+y,16),parseInt(ne+ne,16),parseInt(_e+_e,16),1)}if(f.value.length===4){var y=f.value.substring(0,1),ne=f.value.substring(1,2),_e=f.value.substring(2,3),Ze=f.value.substring(3,4);return Cs(parseInt(y+y,16),parseInt(ne+ne,16),parseInt(_e+_e,16),parseInt(Ze+Ze,16)/255)}if(f.value.length===6){var y=f.value.substring(0,2),ne=f.value.substring(2,4),_e=f.value.substring(4,6);return Cs(parseInt(y,16),parseInt(ne,16),parseInt(_e,16),1)}if(f.value.length===8){var y=f.value.substring(0,2),ne=f.value.substring(2,4),_e=f.value.substring(4,6),Ze=f.value.substring(6,8);return Cs(parseInt(y,16),parseInt(ne,16),parseInt(_e,16),parseInt(Ze,16)/255)}}if(f.type===20){var ht=rl[f.value.toUpperCase()];if(typeof ht!="undefined")return ht}return rl.TRANSPARENT}},zo=function(b){return(255&b)===0},Oo=function(b){var f=255&b,w=255&b>>8,y=255&b>>16,ne=255&b>>24;return f<255?"rgba("+ne+","+y+","+w+","+f/255+")":"rgb("+ne+","+y+","+w+")"},Cs=function(b,f,w,y){return(b<<24|f<<16|w<<8|Math.round(y*255)<<0)>>>0},oc=function(b,f){if(b.type===17)return b.number;if(b.type===16){var w=f===3?1:255;return f===3?b.number/100*w:Math.round(b.number/100*w)}return 0},Vc=function(b,f){var w=f.filter(mA);if(w.length===3){var y=w.map(oc),ne=y[0],_e=y[1],Ze=y[2];return Cs(ne,_e,Ze,1)}if(w.length===4){var ht=w.map(oc),ne=ht[0],_e=ht[1],Ze=ht[2],pt=ht[3];return Cs(ne,_e,Ze,pt)}return 0};function Xs(b,f,w){return w<0&&(w+=1),w>=1&&(w-=1),w<1/6?(f-b)*w*6+b:w<1/2?f:w<2/3?(f-b)*6*(2/3-w)+b:b}var bA=function(b,f){var w=f.filter(mA),y=w[0],ne=w[1],_e=w[2],Ze=w[3],ht=(y.type===17?mo(y.number):Ca.parse(b,y))/(Math.PI*2),pt=gs(ne)?ne.number/100:0,qt=gs(_e)?_e.number/100:0,Ar=typeof Ze!="undefined"&&gs(Ze)?eo(Ze,1):1;if(pt===0)return Cs(qt*255,qt*255,qt*255,1);var pr=qt<=.5?qt*(pt+1):qt+pt-qt*pt,qr=qt*2-pr,Ti=Xs(qr,pr,ht+1/3),Un=Xs(qr,pr,ht),pi=Xs(qr,pr,ht-1/3);return Cs(Ti*255,Un*255,pi*255,Ar)},xl={hsl:bA,hsla:bA,rgb:Vc,rgba:Vc},eA=function(b,f){return jo.parse(b,ss.create(f).parseComponentValue())},rl={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Id={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(b,f){return f.map(function(w){if(Fo(w))switch(w.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ru={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},jA=function(b,f){var w=jo.parse(b,f[0]),y=f[1];return y&&gs(y)?{color:w,stop:y}:{color:w,stop:null}},cf=function(b,f){var w=b[0],y=b[b.length-1];w.stop===null&&(w.stop=Ts),y.stop===null&&(y.stop=uc);for(var ne=[],_e=0,Ze=0;Ze<b.length;Ze++){var ht=b[Ze].stop;if(ht!==null){var pt=eo(ht,f);pt>_e?ne.push(pt):ne.push(_e),_e=pt}else ne.push(null)}for(var qt=null,Ze=0;Ze<ne.length;Ze++){var Ar=ne[Ze];if(Ar===null)qt===null&&(qt=Ze);else if(qt!==null){for(var pr=Ze-qt,qr=ne[qt-1],Ti=(Ar-qr)/(pr+1),Un=1;Un<=pr;Un++)ne[qt+Un-1]=Ti*Un;qt=null}}return b.map(function(pi,Va){var Ji=pi.color;return{color:Ji,stop:Math.max(Math.min(1,ne[Va]/f),0)}})},Wc=function(b,f,w){var y=f/2,ne=w/2,_e=eo(b[0],f)-y,Ze=ne-eo(b[1],w);return(Math.atan2(Ze,_e)+Math.PI*2)%(Math.PI*2)},Yu=function(b,f,w){var y=typeof b=="number"?b:Wc(b,f,w),ne=Math.abs(f*Math.sin(y))+Math.abs(w*Math.cos(y)),_e=f/2,Ze=w/2,ht=ne/2,pt=Math.sin(y-Math.PI/2)*ht,qt=Math.cos(y-Math.PI/2)*ht;return[ne,_e-qt,_e+qt,Ze-pt,Ze+pt]},Oc=function(b,f){return Math.sqrt(b*b+f*f)},Fd=function(b,f,w,y,ne){var _e=[[0,0],[0,f],[b,0],[b,f]];return _e.reduce(function(Ze,ht){var pt=ht[0],qt=ht[1],Ar=Oc(w-pt,y-qt);return(ne?Ar<Ze.optimumDistance:Ar>Ze.optimumDistance)?{optimumCorner:ht,optimumDistance:Ar}:Ze},{optimumDistance:ne?1/0:-1/0,optimumCorner:null}).optimumCorner},Xo=function(b,f,w,y,ne){var _e=0,Ze=0;switch(b.size){case 0:b.shape===0?_e=Ze=Math.min(Math.abs(f),Math.abs(f-y),Math.abs(w),Math.abs(w-ne)):b.shape===1&&(_e=Math.min(Math.abs(f),Math.abs(f-y)),Ze=Math.min(Math.abs(w),Math.abs(w-ne)));break;case 2:if(b.shape===0)_e=Ze=Math.min(Oc(f,w),Oc(f,w-ne),Oc(f-y,w),Oc(f-y,w-ne));else if(b.shape===1){var ht=Math.min(Math.abs(w),Math.abs(w-ne))/Math.min(Math.abs(f),Math.abs(f-y)),pt=Fd(y,ne,f,w,!0),qt=pt[0],Ar=pt[1];_e=Oc(qt-f,(Ar-w)/ht),Ze=ht*_e}break;case 1:b.shape===0?_e=Ze=Math.max(Math.abs(f),Math.abs(f-y),Math.abs(w),Math.abs(w-ne)):b.shape===1&&(_e=Math.max(Math.abs(f),Math.abs(f-y)),Ze=Math.max(Math.abs(w),Math.abs(w-ne)));break;case 3:if(b.shape===0)_e=Ze=Math.max(Oc(f,w),Oc(f,w-ne),Oc(f-y,w),Oc(f-y,w-ne));else if(b.shape===1){var ht=Math.max(Math.abs(w),Math.abs(w-ne))/Math.max(Math.abs(f),Math.abs(f-y)),pr=Fd(y,ne,f,w,!1),qt=pr[0],Ar=pr[1];_e=Oc(qt-f,(Ar-w)/ht),Ze=ht*_e}break}return Array.isArray(b.size)&&(_e=eo(b.size[0],y),Ze=b.size.length===2?eo(b.size[1],ne):_e),[_e,Ze]},No=function(b,f){var w=mo(180),y=[];return ll(f).forEach(function(ne,_e){if(_e===0){var Ze=ne[0];if(Ze.type===20&&Ze.value==="to"){w=ts(ne);return}else if(ya(Ze)){w=Ca.parse(b,Ze);return}}var ht=jA(b,ne);y.push(ht)}),{angle:w,stops:y,type:1}},Jo=function(b,f){var w=mo(180),y=[];return ll(f).forEach(function(ne,_e){if(_e===0){var Ze=ne[0];if(Ze.type===20&&["top","left","right","bottom"].indexOf(Ze.value)!==-1){w=ts(ne);return}else if(ya(Ze)){w=(Ca.parse(b,Ze)+mo(270))%mo(360);return}}var ht=jA(b,ne);y.push(ht)}),{angle:w,stops:y,type:1}},yc=function(b,f){var w=mo(180),y=[],ne=1,_e=0,Ze=3,ht=[];return ll(f).forEach(function(pt,qt){var Ar=pt[0];if(qt===0){if(Fo(Ar)&&Ar.value==="linear"){ne=1;return}else if(Fo(Ar)&&Ar.value==="radial"){ne=2;return}}if(Ar.type===18){if(Ar.name==="from"){var pr=jo.parse(b,Ar.values[0]);y.push({stop:Ts,color:pr})}else if(Ar.name==="to"){var pr=jo.parse(b,Ar.values[0]);y.push({stop:uc,color:pr})}else if(Ar.name==="color-stop"){var qr=Ar.values.filter(mA);if(qr.length===2){var pr=jo.parse(b,qr[1]),Ti=qr[0];Go(Ti)&&y.push({stop:{type:16,number:Ti.number*100,flags:Ti.flags},color:pr})}}}}),ne===1?{angle:(w+mo(180))%mo(360),stops:y,type:ne}:{size:Ze,shape:_e,stops:y,position:ht,type:ne}},zl="closest-side",qu="farthest-side",yA="closest-corner",zA="farthest-corner",Md="circle",Ld="ellipse",$A="cover",ZA="contain",Mo=function(b,f){var w=0,y=3,ne=[],_e=[];return ll(f).forEach(function(Ze,ht){var pt=!0;if(ht===0){var qt=!1;pt=Ze.reduce(function(pr,qr){if(qt)if(Fo(qr))switch(qr.value){case"center":return _e.push(NA),pr;case"top":case"left":return _e.push(Ts),pr;case"right":case"bottom":return _e.push(uc),pr}else(gs(qr)||tl(qr))&&_e.push(qr);else if(Fo(qr))switch(qr.value){case Md:return w=0,!1;case Ld:return w=1,!1;case"at":return qt=!0,!1;case zl:return y=0,!1;case $A:case qu:return y=1,!1;case ZA:case yA:return y=2,!1;case zA:return y=3,!1}else if(tl(qr)||gs(qr))return Array.isArray(y)||(y=[]),y.push(qr),!1;return pr},pt)}if(pt){var Ar=jA(b,Ze);ne.push(Ar)}}),{size:y,shape:w,stops:ne,position:_e,type:2}},wA=function(b,f){var w=0,y=3,ne=[],_e=[];return ll(f).forEach(function(Ze,ht){var pt=!0;if(ht===0?pt=Ze.reduce(function(Ar,pr){if(Fo(pr))switch(pr.value){case"center":return _e.push(NA),!1;case"top":case"left":return _e.push(Ts),!1;case"right":case"bottom":return _e.push(uc),!1}else if(gs(pr)||tl(pr))return _e.push(pr),!1;return Ar},pt):ht===1&&(pt=Ze.reduce(function(Ar,pr){if(Fo(pr))switch(pr.value){case Md:return w=0,!1;case Ld:return w=1,!1;case ZA:case zl:return y=0,!1;case qu:return y=1,!1;case yA:return y=2,!1;case $A:case zA:return y=3,!1}else if(tl(pr)||gs(pr))return Array.isArray(y)||(y=[]),y.push(pr),!1;return Ar},pt)),pt){var qt=jA(b,Ze);ne.push(qt)}}),{size:y,shape:w,stops:ne,position:_e,type:2}},VA=function(b){return b.type===1},y0=function(b){return b.type===2},nu={name:"image",parse:function(b,f){if(f.type===22){var w={url:f.value,type:0};return b.cache.addImage(f.value),w}if(f.type===18){var y=Af[f.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported image function "'+f.name+'"');return y(b,f.values)}throw new Error("Unsupported image type "+f.type)}};function xh(b){return!(b.type===20&&b.value==="none")&&(b.type!==18||!!Af[b.name])}var Af={"linear-gradient":No,"-moz-linear-gradient":Jo,"-ms-linear-gradient":Jo,"-o-linear-gradient":Jo,"-webkit-linear-gradient":Jo,"radial-gradient":Mo,"-moz-radial-gradient":wA,"-ms-radial-gradient":wA,"-o-radial-gradient":wA,"-webkit-radial-gradient":wA,"-webkit-gradient":yc},kd={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(b,f){if(f.length===0)return[];var w=f[0];return w.type===20&&w.value==="none"?[]:f.filter(function(y){return mA(y)&&xh(y)}).map(function(y){return nu.parse(b,y)})}},Kf={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(b,f){return f.map(function(w){if(Fo(w))switch(w.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Ch={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(b,f){return ll(f).map(function(w){return w.filter(gs)}).map(qc)}},Eu={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(b,f){return ll(f).map(function(w){return w.filter(Fo).map(function(y){return y.value}).join(" ")}).map(uf)}},uf=function(b){switch(b){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},Cl;(function(b){b.AUTO="auto",b.CONTAIN="contain",b.COVER="cover"})(Cl||(Cl={}));var Bl={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(b,f){return ll(f).map(function(w){return w.filter(Nc)})}},Nc=function(b){return Fo(b)||gs(b)},Pc=function(b){return{name:"border-"+b+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},w0=Pc("top"),_u=Pc("right"),Bh=Pc("bottom"),Iu=Pc("left"),Dd=function(b){return{name:"border-radius-"+b,initialValue:"0 0",prefix:!1,type:1,parse:function(f,w){return qc(w.filter(gs))}}},Vp=Dd("top-left"),iu=Dd("top-right"),tA=Dd("bottom-right"),wc=Dd("bottom-left"),$o=function(b){return{name:"border-"+b+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(f,w){switch(w){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},ed=$o("top"),Hf=$o("right"),jf=$o("bottom"),Tc=$o("left"),td=function(b){return{name:"border-"+b+"-width",initialValue:"0",type:0,prefix:!1,parse:function(f,w){return Fs(w)?w.number:0}}},df=td("top"),rd=td("right"),x0=td("bottom"),C0=td("left"),$l={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},nd={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(b,f){switch(f){case"rtl":return 1;case"ltr":default:return 0}}},B0={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(b,f){return f.filter(Fo).reduce(function(w,y){return w|pe(y.value)},0)}},pe=function(b){switch(b){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Ce={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(b,f){switch(f){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ge={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(b,f){return f.type===20&&f.value==="normal"?0:f.type===17||f.type===15?f.number:0}},lt;(function(b){b.NORMAL="normal",b.STRICT="strict"})(lt||(lt={}));var Ct={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,f){switch(f){case"strict":return lt.STRICT;case"normal":default:return lt.NORMAL}}},vt={name:"line-height",initialValue:"normal",prefix:!1,type:4},$t=function(b,f){return Fo(b)&&b.value==="normal"?1.2*f:b.type===17?f*b.number:gs(b)?eo(b,f):f},zt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(b,f){return f.type===20&&f.value==="none"?null:nu.parse(b,f)}},Qt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(b,f){switch(f){case"inside":return 0;case"outside":default:return 1}}},dr={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(b,f){switch(f){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Ir=function(b){return{name:"margin-"+b,initialValue:"0",prefix:!1,type:4}},gr=Ir("top"),tn=Ir("right"),Vr=Ir("bottom"),Yr=Ir("left"),Pn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(b,f){return f.filter(Fo).map(function(w){switch(w.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},Cn={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(b,f){switch(f){case"break-word":return"break-word";case"normal":default:return"normal"}}},Ln=function(b){return{name:"padding-"+b,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Sn=Ln("top"),zn=Ln("right"),Pi=Ln("bottom"),Ri=Ln("left"),hi={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(b,f){switch(f){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},ea={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(b,f){switch(f){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},wa={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,f){return f.length===1&&tu(f[0],"none")?[]:ll(f).map(function(w){for(var y={color:rl.TRANSPARENT,offsetX:Ts,offsetY:Ts,blur:Ts},ne=0,_e=0;_e<w.length;_e++){var Ze=w[_e];tl(Ze)?(ne===0?y.offsetX=Ze:ne===1?y.offsetY=Ze:y.blur=Ze,ne++):y.color=jo.parse(b,Ze)}return y})}},Jn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(b,f){switch(f){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},vi={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(b,f){if(f.type===20&&f.value==="none")return null;if(f.type===18){var w=ii[f.name];if(typeof w=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+f.name+'"');return w(f.values)}return null}},ni=function(b){var f=b.filter(function(w){return w.type===17}).map(function(w){return w.number});return f.length===6?f:null},Tn=function(b){var f=b.filter(function(pt){return pt.type===17}).map(function(pt){return pt.number}),w=f[0],y=f[1];f[2],f[3];var ne=f[4],_e=f[5];f[6],f[7],f[8],f[9],f[10],f[11];var Ze=f[12],ht=f[13];return f[14],f[15],f.length===16?[w,y,ne,_e,Ze,ht]:null},ii={matrix:ni,matrix3d:Tn},Hi={type:16,number:50,flags:rr},Oa=[Hi,Hi],pa={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(b,f){var w=f.filter(gs);return w.length!==2?Oa:[w[0],w[1]]}},ji={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(b,f){switch(f){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},_a;(function(b){b.NORMAL="normal",b.BREAK_ALL="break-all",b.KEEP_ALL="keep-all"})(_a||(_a={}));for(var Qa={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,f){switch(f){case"break-all":return _a.BREAK_ALL;case"keep-all":return _a.KEEP_ALL;case"normal":default:return _a.NORMAL}}},Yo={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(b,f){if(f.type===20)return{auto:!0,order:0};if(Go(f))return{auto:!1,order:f.number};throw new Error("Invalid z-index number parsed")}},so={name:"time",parse:function(b,f){if(f.type===15)switch(f.unit.toLowerCase()){case"s":return 1e3*f.number;case"ms":return f.number}throw new Error("Unsupported time type")}},vs={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(b,f){return Go(f)?f.number:1}},cs={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ma={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(b,f){return f.filter(Fo).map(function(w){switch(w.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(w){return w!==0})}},al={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(b,f){var w=[],y=[];return f.forEach(function(ne){switch(ne.type){case 20:case 0:w.push(ne.value);break;case 17:w.push(ne.number.toString());break;case 4:y.push(w.join(" ")),w.length=0;break}}),w.length&&y.push(w.join(" ")),y.map(function(ne){return ne.indexOf(" ")===-1?ne:"'"+ne+"'"})}},po={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},qo={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(b,f){if(Go(f))return f.number;if(Fo(f))switch(f.value){case"bold":return 700;case"normal":default:return 400}return 400}},rs={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(b,f){return f.filter(Fo).map(function(w){return w.value})}},xc={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(b,f){switch(f){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},ai=function(b,f){return(b&f)!==0},zi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(b,f){if(f.length===0)return[];var w=f[0];return w.type===20&&w.value==="none"?[]:f}},Qi={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(b,f){if(f.length===0)return null;var w=f[0];if(w.type===20&&w.value==="none")return null;for(var y=[],ne=f.filter(Ac),_e=0;_e<ne.length;_e++){var Ze=ne[_e],ht=ne[_e+1];if(Ze.type===20){var pt=ht&&Go(ht)?ht.number:1;y.push({counter:Ze.value,increment:pt})}}return y}},ki={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(b,f){if(f.length===0)return[];for(var w=[],y=f.filter(Ac),ne=0;ne<y.length;ne++){var _e=y[ne],Ze=y[ne+1];if(Fo(_e)&&_e.value!=="none"){var ht=Ze&&Go(Ze)?Ze.number:0;w.push({counter:_e.value,reset:ht})}}return w}},go={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(b,f){return f.filter(Fs).map(function(w){return so.parse(b,w)})}},Di={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(b,f){if(f.length===0)return null;var w=f[0];if(w.type===20&&w.value==="none")return null;var y=[],ne=f.filter(pA);if(ne.length%2!==0)return null;for(var _e=0;_e<ne.length;_e+=2){var Ze=ne[_e].value,ht=ne[_e+1].value;y.push({open:Ze,close:ht})}return y}},ca=function(b,f,w){if(!b)return"";var y=b[Math.min(f,b.length-1)];return y?w?y.open:y.close:""},ja={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,f){return f.length===1&&tu(f[0],"none")?[]:ll(f).map(function(w){for(var y={color:255,offsetX:Ts,offsetY:Ts,blur:Ts,spread:Ts,inset:!1},ne=0,_e=0;_e<w.length;_e++){var Ze=w[_e];tu(Ze,"inset")?y.inset=!0:tl(Ze)?(ne===0?y.offsetX=Ze:ne===1?y.offsetY=Ze:ne===2?y.blur=Ze:y.spread=Ze,ne++):y.color=jo.parse(b,Ze)}return y})}},$a={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(b,f){var w=[0,1,2],y=[];return f.filter(Fo).forEach(function(ne){switch(ne.value){case"stroke":y.push(1);break;case"fill":y.push(0);break;case"markers":y.push(2);break}}),w.forEach(function(ne){y.indexOf(ne)===-1&&y.push(ne)}),y}},Ml={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},nl={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(b,f){return Fs(f)?f.number:0}},Gc=function(){function b(f,w){var y,ne;this.animationDuration=Hn(f,go,w.animationDuration),this.backgroundClip=Hn(f,Id,w.backgroundClip),this.backgroundColor=Hn(f,ru,w.backgroundColor),this.backgroundImage=Hn(f,kd,w.backgroundImage),this.backgroundOrigin=Hn(f,Kf,w.backgroundOrigin),this.backgroundPosition=Hn(f,Ch,w.backgroundPosition),this.backgroundRepeat=Hn(f,Eu,w.backgroundRepeat),this.backgroundSize=Hn(f,Bl,w.backgroundSize),this.borderTopColor=Hn(f,w0,w.borderTopColor),this.borderRightColor=Hn(f,_u,w.borderRightColor),this.borderBottomColor=Hn(f,Bh,w.borderBottomColor),this.borderLeftColor=Hn(f,Iu,w.borderLeftColor),this.borderTopLeftRadius=Hn(f,Vp,w.borderTopLeftRadius),this.borderTopRightRadius=Hn(f,iu,w.borderTopRightRadius),this.borderBottomRightRadius=Hn(f,tA,w.borderBottomRightRadius),this.borderBottomLeftRadius=Hn(f,wc,w.borderBottomLeftRadius),this.borderTopStyle=Hn(f,ed,w.borderTopStyle),this.borderRightStyle=Hn(f,Hf,w.borderRightStyle),this.borderBottomStyle=Hn(f,jf,w.borderBottomStyle),this.borderLeftStyle=Hn(f,Tc,w.borderLeftStyle),this.borderTopWidth=Hn(f,df,w.borderTopWidth),this.borderRightWidth=Hn(f,rd,w.borderRightWidth),this.borderBottomWidth=Hn(f,x0,w.borderBottomWidth),this.borderLeftWidth=Hn(f,C0,w.borderLeftWidth),this.boxShadow=Hn(f,ja,w.boxShadow),this.color=Hn(f,$l,w.color),this.direction=Hn(f,nd,w.direction),this.display=Hn(f,B0,w.display),this.float=Hn(f,Ce,w.cssFloat),this.fontFamily=Hn(f,al,w.fontFamily),this.fontSize=Hn(f,po,w.fontSize),this.fontStyle=Hn(f,xc,w.fontStyle),this.fontVariant=Hn(f,rs,w.fontVariant),this.fontWeight=Hn(f,qo,w.fontWeight),this.letterSpacing=Hn(f,Ge,w.letterSpacing),this.lineBreak=Hn(f,Ct,w.lineBreak),this.lineHeight=Hn(f,vt,w.lineHeight),this.listStyleImage=Hn(f,zt,w.listStyleImage),this.listStylePosition=Hn(f,Qt,w.listStylePosition),this.listStyleType=Hn(f,dr,w.listStyleType),this.marginTop=Hn(f,gr,w.marginTop),this.marginRight=Hn(f,tn,w.marginRight),this.marginBottom=Hn(f,Vr,w.marginBottom),this.marginLeft=Hn(f,Yr,w.marginLeft),this.opacity=Hn(f,vs,w.opacity);var _e=Hn(f,Pn,w.overflow);this.overflowX=_e[0],this.overflowY=_e[_e.length>1?1:0],this.overflowWrap=Hn(f,Cn,w.overflowWrap),this.paddingTop=Hn(f,Sn,w.paddingTop),this.paddingRight=Hn(f,zn,w.paddingRight),this.paddingBottom=Hn(f,Pi,w.paddingBottom),this.paddingLeft=Hn(f,Ri,w.paddingLeft),this.paintOrder=Hn(f,$a,w.paintOrder),this.position=Hn(f,ea,w.position),this.textAlign=Hn(f,hi,w.textAlign),this.textDecorationColor=Hn(f,cs,(y=w.textDecorationColor)!==null&&y!==void 0?y:w.color),this.textDecorationLine=Hn(f,ma,(ne=w.textDecorationLine)!==null&&ne!==void 0?ne:w.textDecoration),this.textShadow=Hn(f,wa,w.textShadow),this.textTransform=Hn(f,Jn,w.textTransform),this.transform=Hn(f,vi,w.transform),this.transformOrigin=Hn(f,pa,w.transformOrigin),this.visibility=Hn(f,ji,w.visibility),this.webkitTextStrokeColor=Hn(f,Ml,w.webkitTextStrokeColor),this.webkitTextStrokeWidth=Hn(f,nl,w.webkitTextStrokeWidth),this.wordBreak=Hn(f,Qa,w.wordBreak),this.zIndex=Hn(f,Yo,w.zIndex)}return b.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},b.prototype.isTransparent=function(){return zo(this.backgroundColor)},b.prototype.isTransformed=function(){return this.transform!==null},b.prototype.isPositioned=function(){return this.position!==0},b.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},b.prototype.isFloating=function(){return this.float!==0},b.prototype.isInlineLevel=function(){return ai(this.display,4)||ai(this.display,33554432)||ai(this.display,268435456)||ai(this.display,536870912)||ai(this.display,67108864)||ai(this.display,134217728)},b}(),Us=function(){function b(f,w){this.content=Hn(f,zi,w.content),this.quotes=Hn(f,Di,w.quotes)}return b}(),Uc=function(){function b(f,w){this.counterIncrement=Hn(f,Qi,w.counterIncrement),this.counterReset=Hn(f,ki,w.counterReset)}return b}(),Hn=function(b,f,w){var y=new os,ne=w!==null&&typeof w!="undefined"?w.toString():f.initialValue;y.write(ne);var _e=new ss(y.read());switch(f.type){case 2:var Ze=_e.parseComponentValue();return f.parse(b,Fo(Ze)?Ze.value:f.initialValue);case 0:return f.parse(b,_e.parseComponentValue());case 1:return f.parse(b,_e.parseComponentValues());case 4:return _e.parseComponentValue();case 3:switch(f.format){case"angle":return Ca.parse(b,_e.parseComponentValue());case"color":return jo.parse(b,_e.parseComponentValue());case"image":return nu.parse(b,_e.parseComponentValue());case"length":var ht=_e.parseComponentValue();return tl(ht)?ht:Ts;case"length-percentage":var pt=_e.parseComponentValue();return gs(pt)?pt:Ts;case"time":return so.parse(b,_e.parseComponentValue())}break}},dc="data-html2canvas-debug",Fu=function(b){var f=b.getAttribute(dc);switch(f){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},lo=function(b,f){var w=Fu(b);return w===1||f===w},mn=function(){function b(f,w){if(this.context=f,this.textNodes=[],this.elements=[],this.flags=0,lo(w,3))debugger;this.styles=new Gc(f,window.getComputedStyle(w,null)),k0(w)&&(this.styles.animationDuration.some(function(y){return y>0})&&(w.style.animationDuration="0s"),this.styles.transform!==null&&(w.style.transform="none")),this.bounds=V(this.context,w),lo(w,4)&&(this.flags|=16)}return b}(),Lo="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",cl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",As=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),na=0;na<cl.length;na++)As[cl.charCodeAt(na)]=na;for(var Sl=function(b){var f=b.length*.75,w=b.length,y,ne=0,_e,Ze,ht,pt;b[b.length-1]==="="&&(f--,b[b.length-2]==="="&&f--);var qt=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(f):new Array(f),Ar=Array.isArray(qt)?qt:new Uint8Array(qt);for(y=0;y<w;y+=4)_e=As[b.charCodeAt(y)],Ze=As[b.charCodeAt(y+1)],ht=As[b.charCodeAt(y+2)],pt=As[b.charCodeAt(y+3)],Ar[ne++]=_e<<2|Ze>>4,Ar[ne++]=(Ze&15)<<4|ht>>2,Ar[ne++]=(ht&3)<<6|pt&63;return qt},Zl=function(b){for(var f=b.length,w=[],y=0;y<f;y+=2)w.push(b[y+1]<<8|b[y]);return w},Rc=function(b){for(var f=b.length,w=[],y=0;y<f;y+=4)w.push(b[y+3]<<24|b[y+2]<<16|b[y+1]<<8|b[y]);return w},Cc=5,El=11,Al=2,au=El-Cc,Ll=65536>>Cc,Rs=1<<Cc,_l=Rs-1,il=1024>>Cc,Ms=Ll+il,Bc=Ms,xA=32,PA=Bc+xA,CA=65536>>El,ff=1<<au,zf=ff-1,io=function(b,f,w){return b.slice?b.slice(f,w):new Uint16Array(Array.prototype.slice.call(b,f,w))},Zo=function(b,f,w){return b.slice?b.slice(f,w):new Uint32Array(Array.prototype.slice.call(b,f,w))},Vl=function(b,f){var w=Sl(b),y=Array.isArray(w)?Rc(w):new Uint32Array(w),ne=Array.isArray(w)?Zl(w):new Uint16Array(w),_e=24,Ze=io(ne,_e/2,y[4]/2),ht=y[5]===2?io(ne,(_e+y[4])/2):Zo(y,Math.ceil((_e+y[4])/4));return new us(y[0],y[1],y[2],y[3],Ze,ht)},us=function(){function b(f,w,y,ne,_e,Ze){this.initialValue=f,this.errorValue=w,this.highStart=y,this.highValueIndex=ne,this.index=_e,this.data=Ze}return b.prototype.get=function(f){var w;if(f>=0){if(f<55296||f>56319&&f<=65535)return w=this.index[f>>Cc],w=(w<<Al)+(f&_l),this.data[w];if(f<=65535)return w=this.index[Ll+(f-55296>>Cc)],w=(w<<Al)+(f&_l),this.data[w];if(f<this.highStart)return w=PA-CA+(f>>El),w=this.index[w],w+=f>>Cc&zf,w=this.index[w],w=(w<<Al)+(f&_l),this.data[w];if(f<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b}(),kl="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Js=0;Js<kl.length;Js++)Wl[kl.charCodeAt(Js)]=Js;var BA=1,hf=2,pf=3,id=4,co=5,Bs=7,SA=8,EA=9,Gl=10,$f=11,TA=12,Zf=13,Vf=14,ad=15,Od=function(b){for(var f=[],w=0,y=b.length;w<y;){var ne=b.charCodeAt(w++);if(ne>=55296&&ne<=56319&&w<y){var _e=b.charCodeAt(w++);(_e&64512)===56320?f.push(((ne&1023)<<10)+(_e&1023)+65536):(f.push(ne),w--)}else f.push(ne)}return f},Nd=function(){for(var b=[],f=0;f<arguments.length;f++)b[f]=arguments[f];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var w=b.length;if(!w)return"";for(var y=[],ne=-1,_e="";++ne<w;){var Ze=b[ne];Ze<=65535?y.push(Ze):(Ze-=65536,y.push((Ze>>10)+55296,Ze%1024+56320)),(ne+1===w||y.length>16384)&&(_e+=String.fromCharCode.apply(String,y),y.length=0)}return _e},od=Vl(Lo),zr="\xD7",Pd="\xF7",mf=function(b){return od.get(b)},Wf=function(b,f,w){var y=w-2,ne=f[y],_e=f[w-1],Ze=f[w];if(_e===hf&&Ze===pf)return zr;if(_e===hf||_e===pf||_e===id||Ze===hf||Ze===pf||Ze===id)return Pd;if(_e===SA&&[SA,EA,$f,TA].indexOf(Ze)!==-1||(_e===$f||_e===EA)&&(Ze===EA||Ze===Gl)||(_e===TA||_e===Gl)&&Ze===Gl||Ze===Zf||Ze===co||Ze===Bs||_e===BA)return zr;if(_e===Zf&&Ze===Vf){for(;ne===co;)ne=f[--y];if(ne===Vf)return zr}if(_e===ad&&Ze===ad){for(var ht=0;ne===ad;)ht++,ne=f[--y];if(ht%2===0)return zr}return Pd},gf=function(b){var f=Od(b),w=f.length,y=0,ne=0,_e=f.map(mf);return{next:function(){if(y>=w)return{done:!0,value:null};for(var Ze=zr;y<w&&(Ze=Wf(f,_e,++y))===zr;);if(Ze!==zr||y===w){var ht=Nd.apply(null,f.slice(ne,y));return ne=y,{value:ht,done:!1}}return{done:!0,value:null}}}},Sh=function(b){for(var f=gf(b),w=[],y;!(y=f.next()).done;)y.value&&w.push(y.value.slice());return w},Eh=function(b){var f=123;if(b.createRange){var w=b.createRange();if(w.getBoundingClientRect){var y=b.createElement("boundtest");y.style.height=f+"px",y.style.display="block",b.body.appendChild(y),w.selectNode(y);var ne=w.getBoundingClientRect(),_e=Math.round(ne.height);if(b.body.removeChild(y),_e===f)return!0}}return!1},Gf=function(b){var f=b.createElement("boundtest");f.style.width="50px",f.style.display="block",f.style.fontSize="12px",f.style.letterSpacing="0px",f.style.wordSpacing="0px",b.body.appendChild(f);var w=b.createRange();f.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var y=f.firstChild,ne=g(y.data).map(function(pt){return I(pt)}),_e=0,Ze={},ht=ne.every(function(pt,qt){w.setStart(y,_e),w.setEnd(y,_e+pt.length);var Ar=w.getBoundingClientRect();_e+=pt.length;var pr=Ar.x>Ze.x||Ar.y>Ze.y;return Ze=Ar,qt===0?!0:pr});return b.body.removeChild(f),ht},bl=function(){return typeof new Image().crossOrigin!="undefined"},Mu=function(){return typeof new XMLHttpRequest().responseType=="string"},vf=function(b){var f=new Image,w=b.createElement("canvas"),y=w.getContext("2d");if(!y)return!1;f.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{y.drawImage(f,0,0),w.toDataURL()}catch(ne){return!1}return!0},sd=function(b){return b[0]===0&&b[1]===255&&b[2]===0&&b[3]===255},bf=function(b){var f=b.createElement("canvas"),w=100;f.width=w,f.height=w;var y=f.getContext("2d");if(!y)return Promise.reject(!1);y.fillStyle="rgb(0, 255, 0)",y.fillRect(0,0,w,w);var ne=new Image,_e=f.toDataURL();ne.src=_e;var Ze=UA(w,w,0,0,ne);return y.fillStyle="red",y.fillRect(0,0,w,w),ou(Ze).then(function(ht){y.drawImage(ht,0,0);var pt=y.getImageData(0,0,w,w).data;y.fillStyle="red",y.fillRect(0,0,w,w);var qt=b.createElement("div");return qt.style.backgroundImage="url("+_e+")",qt.style.height=w+"px",sd(pt)?ou(UA(w,w,0,0,qt)):Promise.reject(!1)}).then(function(ht){return y.drawImage(ht,0,0),sd(y.getImageData(0,0,w,w).data)}).catch(function(){return!1})},UA=function(b,f,w,y,ne){var _e="http://www.w3.org/2000/svg",Ze=document.createElementNS(_e,"svg"),ht=document.createElementNS(_e,"foreignObject");return Ze.setAttributeNS(null,"width",b.toString()),Ze.setAttributeNS(null,"height",f.toString()),ht.setAttributeNS(null,"width","100%"),ht.setAttributeNS(null,"height","100%"),ht.setAttributeNS(null,"x",w.toString()),ht.setAttributeNS(null,"y",y.toString()),ht.setAttributeNS(null,"externalResourcesRequired","true"),Ze.appendChild(ht),ht.appendChild(ne),Ze},ou=function(b){return new Promise(function(f,w){var y=new Image;y.onload=function(){return f(y)},y.onerror=w,y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},ds={get SUPPORT_RANGE_BOUNDS(){var b=Eh(document);return Object.defineProperty(ds,"SUPPORT_RANGE_BOUNDS",{value:b}),b},get SUPPORT_WORD_BREAKING(){var b=ds.SUPPORT_RANGE_BOUNDS&&Gf(document);return Object.defineProperty(ds,"SUPPORT_WORD_BREAKING",{value:b}),b},get SUPPORT_SVG_DRAWING(){var b=vf(document);return Object.defineProperty(ds,"SUPPORT_SVG_DRAWING",{value:b}),b},get SUPPORT_FOREIGNOBJECT_DRAWING(){var b=typeof Array.from=="function"&&typeof window.fetch=="function"?bf(document):Promise.resolve(!1);return Object.defineProperty(ds,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:b}),b},get SUPPORT_CORS_IMAGES(){var b=bl();return Object.defineProperty(ds,"SUPPORT_CORS_IMAGES",{value:b}),b},get SUPPORT_RESPONSE_TYPE(){var b=Mu();return Object.defineProperty(ds,"SUPPORT_RESPONSE_TYPE",{value:b}),b},get SUPPORT_CORS_XHR(){var b="withCredentials"in new XMLHttpRequest;return Object.defineProperty(ds,"SUPPORT_CORS_XHR",{value:b}),b},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var b=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(ds,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:b}),b}},Qc=function(){function b(f,w){this.text=f,this.bounds=w}return b}(),Xl=function(b,f,w,y){var ne=su(f,w),_e=[],Ze=0;return ne.forEach(function(ht){if(w.textDecorationLine.length||ht.trim().length>0)if(ds.SUPPORT_RANGE_BOUNDS){var pt=Ao(y,Ze,ht.length).getClientRects();if(pt.length>1){var qt=vo(ht),Ar=0;qt.forEach(function(qr){_e.push(new Qc(qr,te.fromDOMRectList(b,Ao(y,Ar+Ze,qr.length).getClientRects()))),Ar+=qr.length})}else _e.push(new Qc(ht,te.fromDOMRectList(b,pt)))}else{var pr=y.splitText(ht.length);_e.push(new Qc(ht,Lu(b,y))),y=pr}else ds.SUPPORT_RANGE_BOUNDS||(y=y.splitText(ht.length));Ze+=ht.length}),_e},Lu=function(b,f){var w=f.ownerDocument;if(w){var y=w.createElement("html2canvaswrapper");y.appendChild(f.cloneNode(!0));var ne=f.parentNode;if(ne){ne.replaceChild(y,f);var _e=V(b,y);return y.firstChild&&ne.replaceChild(y.firstChild,y),_e}}return te.EMPTY},Ao=function(b,f,w){var y=b.ownerDocument;if(!y)throw new Error("Node has no owner document");var ne=y.createRange();return ne.setStart(b,f),ne.setEnd(b,f+w),ne},vo=function(b){if(ds.SUPPORT_NATIVE_TEXT_SEGMENTATION){var f=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(f.segment(b)).map(function(w){return w.segment})}return Sh(b)},rA=function(b,f){if(ds.SUPPORT_NATIVE_TEXT_SEGMENTATION){var w=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(w.segment(b)).map(function(y){return y.segment})}return S0(b,f)},su=function(b,f){return f.letterSpacing!==0?vo(b):rA(b,f)},WA=[32,160,4961,65792,65793,4153,4241],S0=function(b,f){for(var w=Pt(b,{lineBreak:f.lineBreak,wordBreak:f.overflowWrap==="break-word"?"break-word":f.wordBreak}),y=[],ne,_e=function(){if(ne.value){var Ze=ne.value.slice(),ht=g(Ze),pt="";ht.forEach(function(qt){WA.indexOf(qt)===-1?pt+=I(qt):(pt.length&&y.push(pt),y.push(I(qt)),pt="")}),pt.length&&y.push(pt)}};!(ne=w.next()).done;)_e();return y},Dl=function(){function b(f,w,y){this.text=_A(w.data,y.textTransform),this.textBounds=Xl(f,this.text,y,w)}return b}(),_A=function(b,f){switch(f){case 1:return b.toLowerCase();case 3:return b.replace(_h,Xf);case 2:return b.toUpperCase();default:return b}},_h=/(^|\s|:|-|\(|\))([a-z])/g,Xf=function(b,f,w){return b.length>0?f+w.toUpperCase():b},E0=function(b){x(f,b);function f(w,y){var ne=b.call(this,w,y)||this;return ne.src=y.currentSrc||y.src,ne.intrinsicWidth=y.naturalWidth,ne.intrinsicHeight=y.naturalHeight,ne.context.cache.addImage(ne.src),ne}return f}(mn),So=function(b){x(f,b);function f(w,y){var ne=b.call(this,w,y)||this;return ne.canvas=y,ne.intrinsicWidth=y.width,ne.intrinsicHeight=y.height,ne}return f}(mn),yf=function(b){x(f,b);function f(w,y){var ne=b.call(this,w,y)||this,_e=new XMLSerializer,Ze=V(w,y);return y.setAttribute("width",Ze.width+"px"),y.setAttribute("height",Ze.height+"px"),ne.svg="data:image/svg+xml,"+encodeURIComponent(_e.serializeToString(y)),ne.intrinsicWidth=y.width.baseVal.value,ne.intrinsicHeight=y.height.baseVal.value,ne.context.cache.addImage(ne.svg),ne}return f}(mn),Td=function(b){x(f,b);function f(w,y){var ne=b.call(this,w,y)||this;return ne.value=y.value,ne}return f}(mn),Jf=function(b){x(f,b);function f(w,y){var ne=b.call(this,w,y)||this;return ne.start=y.start,ne.reversed=typeof y.reversed=="boolean"&&y.reversed===!0,ne}return f}(mn),Ur=[{type:15,flags:0,unit:"px",number:3}],Dm=[{type:16,flags:0,number:50}],Om=function(b){return b.width>b.height?new te(b.left+(b.width-b.height)/2,b.top,b.height,b.height):b.width<b.height?new te(b.left,b.top+(b.height-b.width)/2,b.width,b.width):b},_0=function(b){var f=b.type===Ih?new Array(b.value.length+1).join("\u2022"):b.value;return f.length===0?b.placeholder||"":f},I0="checkbox",Ud="radio",Ih="password",F0=707406591,Jl=function(b){x(f,b);function f(w,y){var ne=b.call(this,w,y)||this;switch(ne.type=y.type.toLowerCase(),ne.checked=y.checked,ne.value=_0(y),(ne.type===I0||ne.type===Ud)&&(ne.styles.backgroundColor=3739148031,ne.styles.borderTopColor=ne.styles.borderRightColor=ne.styles.borderBottomColor=ne.styles.borderLeftColor=2779096575,ne.styles.borderTopWidth=ne.styles.borderRightWidth=ne.styles.borderBottomWidth=ne.styles.borderLeftWidth=1,ne.styles.borderTopStyle=ne.styles.borderRightStyle=ne.styles.borderBottomStyle=ne.styles.borderLeftStyle=1,ne.styles.backgroundClip=[0],ne.styles.backgroundOrigin=[0],ne.bounds=Om(ne.bounds)),ne.type){case I0:ne.styles.borderTopRightRadius=ne.styles.borderTopLeftRadius=ne.styles.borderBottomRightRadius=ne.styles.borderBottomLeftRadius=Ur;break;case Ud:ne.styles.borderTopRightRadius=ne.styles.borderTopLeftRadius=ne.styles.borderBottomRightRadius=ne.styles.borderBottomLeftRadius=Dm;break}return ne}return f}(mn),ld=function(b){x(f,b);function f(w,y){var ne=b.call(this,w,y)||this,_e=y.options[y.selectedIndex||0];return ne.value=_e&&_e.text||"",ne}return f}(mn),Yf=function(b){x(f,b);function f(w,y){var ne=b.call(this,w,y)||this;return ne.value=y.value,ne}return f}(mn),Fh=function(b){x(f,b);function f(w,y){var ne=b.call(this,w,y)||this;ne.src=y.src,ne.width=parseInt(y.width,10)||0,ne.height=parseInt(y.height,10)||0,ne.backgroundColor=ne.styles.backgroundColor;try{if(y.contentWindow&&y.contentWindow.document&&y.contentWindow.document.documentElement){ne.tree=pp(w,y.contentWindow.document.documentElement);var _e=y.contentWindow.document.documentElement?eA(w,getComputedStyle(y.contentWindow.document.documentElement).backgroundColor):rl.TRANSPARENT,Ze=y.contentWindow.document.body?eA(w,getComputedStyle(y.contentWindow.document.body).backgroundColor):rl.TRANSPARENT;ne.backgroundColor=zo(_e)?zo(Ze)?ne.styles.backgroundColor:Ze:_e}}catch(ht){}return ne}return f}(mn),Mh=["OL","UL","MENU"],qf=function(b,f,w,y){for(var ne=f.firstChild,_e=void 0;ne;ne=_e)if(_e=ne.nextSibling,Rd(ne)&&ne.data.trim().length>0)w.textNodes.push(new Dl(b,ne,w.styles));else if(wf(ne))if(nh(ne)&&ne.assignedNodes)ne.assignedNodes().forEach(function(ht){return qf(b,ht,w,y)});else{var Ze=M0(b,ne);Ze.styles.isVisible()&&(L0(ne,Ze,y)?Ze.flags|=4:nA(Ze.styles)&&(Ze.flags|=2),Mh.indexOf(ne.tagName)!==-1&&(Ze.flags|=8),w.elements.push(Ze),ne.slot,ne.shadowRoot?qf(b,ne.shadowRoot,Ze,y):!rh(ne)&&!mp(ne)&&!Lh(ne)&&qf(b,ne,Ze,y))}},M0=function(b,f){return cd(f)?new E0(b,f):Wp(f)?new So(b,f):mp(f)?new yf(b,f):Nm(f)?new Td(b,f):Pm(f)?new Jf(b,f):Tm(f)?new Jl(b,f):Lh(f)?new ld(b,f):rh(f)?new Yf(b,f):Xp(f)?new Fh(b,f):new mn(b,f)},pp=function(b,f){var w=M0(b,f);return w.flags|=4,qf(b,f,w,w),w},L0=function(b,f,w){return f.styles.isPositionedWithZIndex()||f.styles.opacity<1||f.styles.isTransformed()||Ls(b)&&w.styles.isTransparent()},nA=function(b){return b.isPositioned()||b.isFloating()},Rd=function(b){return b.nodeType===Node.TEXT_NODE},wf=function(b){return b.nodeType===Node.ELEMENT_NODE},k0=function(b){return wf(b)&&typeof b.style!="undefined"&&!eh(b)},eh=function(b){return typeof b.className=="object"},Nm=function(b){return b.tagName==="LI"},Pm=function(b){return b.tagName==="OL"},Tm=function(b){return b.tagName==="INPUT"},Um=function(b){return b.tagName==="HTML"},mp=function(b){return b.tagName==="svg"},Ls=function(b){return b.tagName==="BODY"},Wp=function(b){return b.tagName==="CANVAS"},Gp=function(b){return b.tagName==="VIDEO"},cd=function(b){return b.tagName==="IMG"},Xp=function(b){return b.tagName==="IFRAME"},th=function(b){return b.tagName==="STYLE"},gp=function(b){return b.tagName==="SCRIPT"},rh=function(b){return b.tagName==="TEXTAREA"},Lh=function(b){return b.tagName==="SELECT"},nh=function(b){return b.tagName==="SLOT"},Jp=function(b){return b.tagName.indexOf("-")>0},Rm=function(){function b(){this.counters={}}return b.prototype.getCounterValue=function(f){var w=this.counters[f];return w&&w.length?w[w.length-1]:1},b.prototype.getCounterValues=function(f){var w=this.counters[f];return w||[]},b.prototype.pop=function(f){var w=this;f.forEach(function(y){return w.counters[y].pop()})},b.prototype.parse=function(f){var w=this,y=f.counterIncrement,ne=f.counterReset,_e=!0;y!==null&&y.forEach(function(ht){var pt=w.counters[ht.counter];pt&&ht.increment!==0&&(_e=!1,pt.length||pt.push(1),pt[Math.max(0,pt.length-1)]+=ht.increment)});var Ze=[];return _e&&ne.forEach(function(ht){var pt=w.counters[ht.counter];Ze.push(ht.counter),pt||(pt=w.counters[ht.counter]=[]),pt.push(ht.reset)}),Ze},b}(),kh={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},D0={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Qm={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},Yp={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},xf=function(b,f,w,y,ne,_e){return b<f||b>w?Kd(b,ne,_e.length>0):y.integers.reduce(function(Ze,ht,pt){for(;b>=ht;)b-=ht,Ze+=y.values[pt];return Ze},"")+_e},Km=function(b,f,w,y){var ne="";do w||b--,ne=y(b)+ne,b/=f;while(b*f>=f);return ne},Ol=function(b,f,w,y,ne){var _e=w-f+1;return(b<0?"-":"")+(Km(Math.abs(b),_e,y,function(Ze){return I(Math.floor(Ze%_e)+f)})+ne)},Qd=function(b,f,w){w===void 0&&(w=". ");var y=f.length;return Km(Math.abs(b),y,!1,function(ne){return f[Math.floor(ne%y)]})+w},Cf=1,Ad=2,Xc=4,lu=8,IA=function(b,f,w,y,ne,_e){if(b<-9999||b>9999)return Kd(b,4,ne.length>0);var Ze=Math.abs(b),ht=ne;if(Ze===0)return f[0]+ht;for(var pt=0;Ze>0&&pt<=4;pt++){var qt=Ze%10;qt===0&&ai(_e,Cf)&&ht!==""?ht=f[qt]+ht:qt>1||qt===1&&pt===0||qt===1&&pt===1&&ai(_e,Ad)||qt===1&&pt===1&&ai(_e,Xc)&&b>100||qt===1&&pt>1&&ai(_e,lu)?ht=f[qt]+(pt>0?w[pt-1]:"")+ht:qt===1&&pt>0&&(ht=w[pt-1]+ht),Ze=Math.floor(Ze/10)}return(b<0?y:"")+ht},ku="\u5341\u767E\u5343\u842C",ud="\u62FE\u4F70\u4EDF\u842C",dd="\u30DE\u30A4\u30CA\u30B9",ih="\uB9C8\uC774\uB108\uC2A4",Kd=function(b,f,w){var y=w?". ":"",ne=w?"\u3001":"",_e=w?", ":"",Ze=w?" ":"";switch(f){case 0:return"\u2022"+Ze;case 1:return"\u25E6"+Ze;case 2:return"\u25FE"+Ze;case 5:var ht=Ol(b,48,57,!0,y);return ht.length<4?"0"+ht:ht;case 4:return Qd(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ne);case 6:return xf(b,1,3999,kh,3,y).toLowerCase();case 7:return xf(b,1,3999,kh,3,y);case 8:return Ol(b,945,969,!1,y);case 9:return Ol(b,97,122,!1,y);case 10:return Ol(b,65,90,!1,y);case 11:return Ol(b,1632,1641,!0,y);case 12:case 49:return xf(b,1,9999,D0,3,y);case 35:return xf(b,1,9999,D0,3,y).toLowerCase();case 13:return Ol(b,2534,2543,!0,y);case 14:case 30:return Ol(b,6112,6121,!0,y);case 15:return Qd(b,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",ne);case 16:return Qd(b,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",ne);case 17:case 48:return IA(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ku,"\u8CA0",ne,Ad|Xc|lu);case 47:return IA(b,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ud,"\u8CA0",ne,Cf|Ad|Xc|lu);case 42:return IA(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ku,"\u8D1F",ne,Ad|Xc|lu);case 41:return IA(b,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ud,"\u8D1F",ne,Cf|Ad|Xc|lu);case 26:return IA(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",dd,ne,0);case 25:return IA(b,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",dd,ne,Cf|Ad|Xc);case 31:return IA(b,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",ih,_e,Cf|Ad|Xc);case 33:return IA(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",ih,_e,0);case 32:return IA(b,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",ih,_e,Cf|Ad|Xc);case 18:return Ol(b,2406,2415,!0,y);case 20:return xf(b,1,19999,Yp,3,y);case 21:return Ol(b,2790,2799,!0,y);case 22:return Ol(b,2662,2671,!0,y);case 22:return xf(b,1,10999,Qm,3,y);case 23:return Qd(b,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return Qd(b,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return Ol(b,3302,3311,!0,y);case 28:return Qd(b,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",ne);case 29:return Qd(b,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",ne);case 34:return Ol(b,3792,3801,!0,y);case 37:return Ol(b,6160,6169,!0,y);case 38:return Ol(b,4160,4169,!0,y);case 39:return Ol(b,2918,2927,!0,y);case 40:return Ol(b,1776,1785,!0,y);case 43:return Ol(b,3046,3055,!0,y);case 44:return Ol(b,3174,3183,!0,y);case 45:return Ol(b,3664,3673,!0,y);case 46:return Ol(b,3872,3881,!0,y);case 3:default:return Ol(b,48,57,!0,y)}},Dh="data-html2canvas-ignore",O0=function(){function b(f,w,y){if(this.context=f,this.options=y,this.scrolledElements=[],this.referenceElement=w,this.counters=new Rm,this.quoteDepth=0,!w.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(w.ownerDocument.documentElement,!1)}return b.prototype.toIFrame=function(f,w){var y=this,ne=qp(f,w);if(!ne.contentWindow)return Promise.reject("Unable to find iframe window");var _e=f.defaultView.pageXOffset,Ze=f.defaultView.pageYOffset,ht=ne.contentWindow,pt=ht.document,qt=Nh(ne).then(function(){return Ae(y,void 0,void 0,function(){var Ar,pr;return P(this,function(qr){switch(qr.label){case 0:return this.scrolledElements.forEach(rm),ht&&(ht.scrollTo(w.left,w.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(ht.scrollY!==w.top||ht.scrollX!==w.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(ht.scrollX-w.left,ht.scrollY-w.top,0,0))),Ar=this.options.onclone,pr=this.clonedReferenceElement,typeof pr=="undefined"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:pt.fonts&&pt.fonts.ready?[4,pt.fonts.ready]:[3,2];case 1:qr.sent(),qr.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,em(pt)]:[3,4];case 3:qr.sent(),qr.label=4;case 4:return typeof Ar=="function"?[2,Promise.resolve().then(function(){return Ar(pt,pr)}).then(function(){return ne})]:[2,ne]}})})});return pt.open(),pt.write(jm(document.doctype)+"<html></html>"),tm(this.referenceElement.ownerDocument,_e,Ze),pt.replaceChild(pt.adoptNode(this.documentElement),pt.documentElement),pt.close(),qt},b.prototype.createElementClone=function(f){if(lo(f,2))debugger;if(Wp(f))return this.createCanvasClone(f);if(Gp(f))return this.createVideoClone(f);if(th(f))return this.createStyleClone(f);var w=f.cloneNode(!1);return cd(w)&&(cd(f)&&f.currentSrc&&f.currentSrc!==f.src&&(w.src=f.currentSrc,w.srcset=""),w.loading==="lazy"&&(w.loading="eager")),Jp(w)?this.createCustomElementClone(w):w},b.prototype.createCustomElementClone=function(f){var w=document.createElement("html2canvascustomelement");return N0(f.style,w),w},b.prototype.createStyleClone=function(f){try{var w=f.sheet;if(w&&w.cssRules){var y=[].slice.call(w.cssRules,0).reduce(function(_e,Ze){return Ze&&typeof Ze.cssText=="string"?_e+Ze.cssText:_e},""),ne=f.cloneNode(!1);return ne.textContent=y,ne}}catch(_e){if(this.context.logger.error("Unable to access cssRules property",_e),_e.name!=="SecurityError")throw _e}return f.cloneNode(!1)},b.prototype.createCanvasClone=function(f){var w;if(this.options.inlineImages&&f.ownerDocument){var y=f.ownerDocument.createElement("img");try{return y.src=f.toDataURL(),y}catch(qt){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",f)}}var ne=f.cloneNode(!1);try{ne.width=f.width,ne.height=f.height;var _e=f.getContext("2d"),Ze=ne.getContext("2d");if(Ze)if(!this.options.allowTaint&&_e)Ze.putImageData(_e.getImageData(0,0,f.width,f.height),0,0);else{var ht=(w=f.getContext("webgl2"))!==null&&w!==void 0?w:f.getContext("webgl");if(ht){var pt=ht.getContextAttributes();(pt==null?void 0:pt.preserveDrawingBuffer)===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",f)}Ze.drawImage(f,0,0)}return ne}catch(qt){this.context.logger.info("Unable to clone canvas as it is tainted",f)}return ne},b.prototype.createVideoClone=function(f){var w=f.ownerDocument.createElement("canvas");w.width=f.offsetWidth,w.height=f.offsetHeight;var y=w.getContext("2d");try{return y&&(y.drawImage(f,0,0,w.width,w.height),this.options.allowTaint||y.getImageData(0,0,w.width,w.height)),w}catch(_e){this.context.logger.info("Unable to clone video as it is tainted",f)}var ne=f.ownerDocument.createElement("canvas");return ne.width=f.offsetWidth,ne.height=f.offsetHeight,ne},b.prototype.appendChildNode=function(f,w,y){(!wf(w)||!gp(w)&&!w.hasAttribute(Dh)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(w)))&&(!this.options.copyStyles||!wf(w)||!th(w))&&f.appendChild(this.cloneNode(w,y))},b.prototype.cloneChildNodes=function(f,w,y){for(var ne=this,_e=f.shadowRoot?f.shadowRoot.firstChild:f.firstChild;_e;_e=_e.nextSibling)if(wf(_e)&&nh(_e)&&typeof _e.assignedNodes=="function"){var Ze=_e.assignedNodes();Ze.length&&Ze.forEach(function(ht){return ne.appendChildNode(w,ht,y)})}else this.appendChildNode(w,_e,y)},b.prototype.cloneNode=function(f,w){if(Rd(f))return document.createTextNode(f.data);if(!f.ownerDocument)return f.cloneNode(!1);var y=f.ownerDocument.defaultView;if(y&&wf(f)&&(k0(f)||eh(f))){var ne=this.createElementClone(f);ne.style.transitionProperty="none";var _e=y.getComputedStyle(f),Ze=y.getComputedStyle(f,":before"),ht=y.getComputedStyle(f,":after");this.referenceElement===f&&k0(ne)&&(this.clonedReferenceElement=ne),Ls(ne)&&oh(ne);var pt=this.counters.parse(new Uc(this.context,_e)),qt=this.resolvePseudoContent(f,ne,Ze,Oh.BEFORE);Jp(f)&&(w=!0),Gp(f)||this.cloneChildNodes(f,ne,w),qt&&ne.insertBefore(qt,ne.firstChild);var Ar=this.resolvePseudoContent(f,ne,ht,Oh.AFTER);return Ar&&ne.appendChild(Ar),this.counters.pop(pt),(_e&&(this.options.copyStyles||eh(f))&&!Xp(f)||w)&&N0(_e,ne),(f.scrollTop!==0||f.scrollLeft!==0)&&this.scrolledElements.push([ne,f.scrollLeft,f.scrollTop]),(rh(f)||Lh(f))&&(rh(ne)||Lh(ne))&&(ne.value=f.value),ne}return f.cloneNode(!1)},b.prototype.resolvePseudoContent=function(f,w,y,ne){var _e=this;if(y){var Ze=y.content,ht=w.ownerDocument;if(!(!ht||!Ze||Ze==="none"||Ze==="-moz-alt-content"||y.display==="none")){this.counters.parse(new Uc(this.context,y));var pt=new Us(this.context,y),qt=ht.createElement("html2canvaspseudoelement");N0(y,qt),pt.content.forEach(function(pr){if(pr.type===0)qt.appendChild(ht.createTextNode(pr.value));else if(pr.type===22){var qr=ht.createElement("img");qr.src=pr.value,qr.style.opacity="1",qt.appendChild(qr)}else if(pr.type===18){if(pr.name==="attr"){var Ti=pr.values.filter(Fo);Ti.length&&qt.appendChild(ht.createTextNode(f.getAttribute(Ti[0].value)||""))}else if(pr.name==="counter"){var Un=pr.values.filter(mA),pi=Un[0],Va=Un[1];if(pi&&Fo(pi)){var Ji=_e.counters.getCounterValue(pi.value),Vi=Va&&Fo(Va)?dr.parse(_e.context,Va.value):3;qt.appendChild(ht.createTextNode(Kd(Ji,Vi,!1)))}}else if(pr.name==="counters"){var Na=pr.values.filter(mA),pi=Na[0],ao=Na[1],Va=Na[2];if(pi&&Fo(pi)){var Ia=_e.counters.getCounterValues(pi.value),Mi=Va&&Fo(Va)?dr.parse(_e.context,Va.value):3,ko=ao&&ao.type===0?ao.value:"",Xa=Ia.map(function(Ec){return Kd(Ec,Mi,!1)}).join(ko);qt.appendChild(ht.createTextNode(Xa))}}}else if(pr.type===20)switch(pr.value){case"open-quote":qt.appendChild(ht.createTextNode(ca(pt.quotes,_e.quoteDepth++,!0)));break;case"close-quote":qt.appendChild(ht.createTextNode(ca(pt.quotes,--_e.quoteDepth,!1)));break;default:qt.appendChild(ht.createTextNode(pr.value))}}),qt.className=bp+" "+Bf;var Ar=ne===Oh.BEFORE?" "+bp:" "+Bf;return eh(w)?w.className.baseValue+=Ar:w.className+=Ar,qt}}},b.destroy=function(f){return f.parentNode?(f.parentNode.removeChild(f),!0):!1},b}(),Oh;(function(b){b[b.BEFORE=0]="BEFORE",b[b.AFTER=1]="AFTER"})(Oh||(Oh={}));var qp=function(b,f){var w=b.createElement("iframe");return w.className="html2canvas-container",w.style.visibility="hidden",w.style.position="fixed",w.style.left="-10000px",w.style.top="0px",w.style.border="0",w.width=f.width.toString(),w.height=f.height.toString(),w.scrolling="no",w.setAttribute(Dh,"true"),b.body.appendChild(w),w},vp=function(b){return new Promise(function(f){if(b.complete){f();return}if(!b.src){f();return}b.onload=f,b.onerror=f})},em=function(b){return Promise.all([].slice.call(b.images,0).map(vp))},Nh=function(b){return new Promise(function(f,w){var y=b.contentWindow;if(!y)return w("No window assigned for iframe");var ne=y.document;y.onload=b.onload=function(){y.onload=b.onload=null;var _e=setInterval(function(){ne.body.childNodes.length>0&&ne.readyState==="complete"&&(clearInterval(_e),f(b))},50)}})},Hm=["all","d","content"],N0=function(b,f){for(var w=b.length-1;w>=0;w--){var y=b.item(w);Hm.indexOf(y)===-1&&f.style.setProperty(y,b.getPropertyValue(y))}return f},jm=function(b){var f="";return b&&(f+="<!DOCTYPE ",b.name&&(f+=b.name),b.internalSubset&&(f+=b.internalSubset),b.publicId&&(f+='"'+b.publicId+'"'),b.systemId&&(f+='"'+b.systemId+'"'),f+=">"),f},tm=function(b,f,w){b&&b.defaultView&&(f!==b.defaultView.pageXOffset||w!==b.defaultView.pageYOffset)&&b.defaultView.scrollTo(f,w)},rm=function(b){var f=b[0],w=b[1],y=b[2];f.scrollLeft=w,f.scrollTop=y},nm=":before",im=":after",bp="___html2canvas___pseudoelement_before",Bf="___html2canvas___pseudoelement_after",ah=`{
content: "" !important;
display: none !important;
}`,oh=function(b){Du(b,"."+bp+nm+ah+`
.`+Bf+im+ah)},Du=function(b,f){var w=b.ownerDocument;if(w){var y=w.createElement("style");y.textContent=f,b.appendChild(y)}},yp=function(){function b(){}return b.getOrigin=function(f){var w=b._link;return w?(w.href=f,w.href=w.href,w.protocol+w.hostname+w.port):"about:blank"},b.isSameOrigin=function(f){return b.getOrigin(f)===b._origin},b.setContext=function(f){b._link=f.document.createElement("a"),b._origin=b.getOrigin(f.location.href)},b._origin="about:blank",b}(),FA=function(){function b(f,w){this.context=f,this._options=w,this._cache={}}return b.prototype.addImage=function(f){var w=Promise.resolve();return this.has(f)||(xp(f)||Ph(f))&&(this._cache[f]=this.loadImage(f)).catch(function(){}),w},b.prototype.match=function(f){return this._cache[f]},b.prototype.loadImage=function(f){return Ae(this,void 0,void 0,function(){var w,y,ne,_e,Ze=this;return P(this,function(ht){switch(ht.label){case 0:return w=yp.isSameOrigin(f),y=!Th(f)&&this._options.useCORS===!0&&ds.SUPPORT_CORS_IMAGES&&!w,ne=!Th(f)&&!w&&!xp(f)&&typeof this._options.proxy=="string"&&ds.SUPPORT_CORS_XHR&&!y,!w&&this._options.allowTaint===!1&&!Th(f)&&!xp(f)&&!ne&&!y?[2]:(_e=f,ne?[4,this.proxy(_e)]:[3,2]);case 1:_e=ht.sent(),ht.label=2;case 2:return this.context.logger.debug("Added image "+f.substring(0,256)),[4,new Promise(function(pt,qt){var Ar=new Image;Ar.onload=function(){return pt(Ar)},Ar.onerror=qt,(zm(_e)||y)&&(Ar.crossOrigin="anonymous"),Ar.src=_e,Ar.complete===!0&&setTimeout(function(){return pt(Ar)},500),Ze._options.imageTimeout>0&&setTimeout(function(){return qt("Timed out ("+Ze._options.imageTimeout+"ms) loading image")},Ze._options.imageTimeout)})];case 3:return[2,ht.sent()]}})})},b.prototype.has=function(f){return typeof this._cache[f]!="undefined"},b.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},b.prototype.proxy=function(f){var w=this,y=this._options.proxy;if(!y)throw new Error("No proxy defined");var ne=f.substring(0,256);return new Promise(function(_e,Ze){var ht=ds.SUPPORT_RESPONSE_TYPE?"blob":"text",pt=new XMLHttpRequest;pt.onload=function(){if(pt.status===200)if(ht==="text")_e(pt.response);else{var pr=new FileReader;pr.addEventListener("load",function(){return _e(pr.result)},!1),pr.addEventListener("error",function(qr){return Ze(qr)},!1),pr.readAsDataURL(pt.response)}else Ze("Failed to proxy resource "+ne+" with status code "+pt.status)},pt.onerror=Ze;var qt=y.indexOf("?")>-1?"&":"?";if(pt.open("GET",""+y+qt+"url="+encodeURIComponent(f)+"&responseType="+ht),ht!=="text"&&pt instanceof XMLHttpRequest&&(pt.responseType=ht),w._options.imageTimeout){var Ar=w._options.imageTimeout;pt.timeout=Ar,pt.ontimeout=function(){return Ze("Timed out ("+Ar+"ms) proxying "+ne)}}pt.send()})},b}(),P0=/^data:image\/svg\+xml/i,am=/^data:image\/.*;base64,/i,wp=/^data:image\/.*/i,Ph=function(b){return ds.SUPPORT_SVG_DRAWING||!fs(b)},Th=function(b){return wp.test(b)},zm=function(b){return am.test(b)},xp=function(b){return b.substr(0,4)==="blob"},fs=function(b){return b.substr(-3).toLowerCase()==="svg"||P0.test(b)},Fi=function(){function b(f,w){this.type=0,this.x=f,this.y=w}return b.prototype.add=function(f,w){return new b(this.x+f,this.y+w)},b}(),Ou=function(b,f,w){return new Fi(b.x+(f.x-b.x)*w,b.y+(f.y-b.y)*w)},T0=function(){function b(f,w,y,ne){this.type=1,this.start=f,this.startControl=w,this.endControl=y,this.end=ne}return b.prototype.subdivide=function(f,w){var y=Ou(this.start,this.startControl,f),ne=Ou(this.startControl,this.endControl,f),_e=Ou(this.endControl,this.end,f),Ze=Ou(y,ne,f),ht=Ou(ne,_e,f),pt=Ou(Ze,ht,f);return w?new b(this.start,y,Ze,pt):new b(pt,ht,_e,this.end)},b.prototype.add=function(f,w){return new b(this.start.add(f,w),this.startControl.add(f,w),this.endControl.add(f,w),this.end.add(f,w))},b.prototype.reverse=function(){return new b(this.end,this.endControl,this.startControl,this.start)},b}(),fc=function(b){return b.type===1},om=function(){function b(f){var w=f.styles,y=f.bounds,ne=jl(w.borderTopLeftRadius,y.width,y.height),_e=ne[0],Ze=ne[1],ht=jl(w.borderTopRightRadius,y.width,y.height),pt=ht[0],qt=ht[1],Ar=jl(w.borderBottomRightRadius,y.width,y.height),pr=Ar[0],qr=Ar[1],Ti=jl(w.borderBottomLeftRadius,y.width,y.height),Un=Ti[0],pi=Ti[1],Va=[];Va.push((_e+pt)/y.width),Va.push((Un+pr)/y.width),Va.push((Ze+pi)/y.height),Va.push((qt+qr)/y.height);var Ji=Math.max.apply(Math,Va);Ji>1&&(_e/=Ji,Ze/=Ji,pt/=Ji,qt/=Ji,pr/=Ji,qr/=Ji,Un/=Ji,pi/=Ji);var Vi=y.width-pt,Na=y.height-qr,ao=y.width-pr,Ia=y.height-pi,Mi=w.borderTopWidth,ko=w.borderRightWidth,Xa=w.borderBottomWidth,Pa=w.borderLeftWidth,qn=eo(w.paddingTop,f.bounds.width),Ec=eo(w.paddingRight,f.bounds.width),oA=eo(w.paddingBottom,f.bounds.width),bo=eo(w.paddingLeft,f.bounds.width);this.topLeftBorderDoubleOuterBox=_e>0||Ze>0?ol(y.left+Pa/3,y.top+Mi/3,_e-Pa/3,Ze-Mi/3,Vo.TOP_LEFT):new Fi(y.left+Pa/3,y.top+Mi/3),this.topRightBorderDoubleOuterBox=_e>0||Ze>0?ol(y.left+Vi,y.top+Mi/3,pt-ko/3,qt-Mi/3,Vo.TOP_RIGHT):new Fi(y.left+y.width-ko/3,y.top+Mi/3),this.bottomRightBorderDoubleOuterBox=pr>0||qr>0?ol(y.left+ao,y.top+Na,pr-ko/3,qr-Xa/3,Vo.BOTTOM_RIGHT):new Fi(y.left+y.width-ko/3,y.top+y.height-Xa/3),this.bottomLeftBorderDoubleOuterBox=Un>0||pi>0?ol(y.left+Pa/3,y.top+Ia,Un-Pa/3,pi-Xa/3,Vo.BOTTOM_LEFT):new Fi(y.left+Pa/3,y.top+y.height-Xa/3),this.topLeftBorderDoubleInnerBox=_e>0||Ze>0?ol(y.left+Pa*2/3,y.top+Mi*2/3,_e-Pa*2/3,Ze-Mi*2/3,Vo.TOP_LEFT):new Fi(y.left+Pa*2/3,y.top+Mi*2/3),this.topRightBorderDoubleInnerBox=_e>0||Ze>0?ol(y.left+Vi,y.top+Mi*2/3,pt-ko*2/3,qt-Mi*2/3,Vo.TOP_RIGHT):new Fi(y.left+y.width-ko*2/3,y.top+Mi*2/3),this.bottomRightBorderDoubleInnerBox=pr>0||qr>0?ol(y.left+ao,y.top+Na,pr-ko*2/3,qr-Xa*2/3,Vo.BOTTOM_RIGHT):new Fi(y.left+y.width-ko*2/3,y.top+y.height-Xa*2/3),this.bottomLeftBorderDoubleInnerBox=Un>0||pi>0?ol(y.left+Pa*2/3,y.top+Ia,Un-Pa*2/3,pi-Xa*2/3,Vo.BOTTOM_LEFT):new Fi(y.left+Pa*2/3,y.top+y.height-Xa*2/3),this.topLeftBorderStroke=_e>0||Ze>0?ol(y.left+Pa/2,y.top+Mi/2,_e-Pa/2,Ze-Mi/2,Vo.TOP_LEFT):new Fi(y.left+Pa/2,y.top+Mi/2),this.topRightBorderStroke=_e>0||Ze>0?ol(y.left+Vi,y.top+Mi/2,pt-ko/2,qt-Mi/2,Vo.TOP_RIGHT):new Fi(y.left+y.width-ko/2,y.top+Mi/2),this.bottomRightBorderStroke=pr>0||qr>0?ol(y.left+ao,y.top+Na,pr-ko/2,qr-Xa/2,Vo.BOTTOM_RIGHT):new Fi(y.left+y.width-ko/2,y.top+y.height-Xa/2),this.bottomLeftBorderStroke=Un>0||pi>0?ol(y.left+Pa/2,y.top+Ia,Un-Pa/2,pi-Xa/2,Vo.BOTTOM_LEFT):new Fi(y.left+Pa/2,y.top+y.height-Xa/2),this.topLeftBorderBox=_e>0||Ze>0?ol(y.left,y.top,_e,Ze,Vo.TOP_LEFT):new Fi(y.left,y.top),this.topRightBorderBox=pt>0||qt>0?ol(y.left+Vi,y.top,pt,qt,Vo.TOP_RIGHT):new Fi(y.left+y.width,y.top),this.bottomRightBorderBox=pr>0||qr>0?ol(y.left+ao,y.top+Na,pr,qr,Vo.BOTTOM_RIGHT):new Fi(y.left+y.width,y.top+y.height),this.bottomLeftBorderBox=Un>0||pi>0?ol(y.left,y.top+Ia,Un,pi,Vo.BOTTOM_LEFT):new Fi(y.left,y.top+y.height),this.topLeftPaddingBox=_e>0||Ze>0?ol(y.left+Pa,y.top+Mi,Math.max(0,_e-Pa),Math.max(0,Ze-Mi),Vo.TOP_LEFT):new Fi(y.left+Pa,y.top+Mi),this.topRightPaddingBox=pt>0||qt>0?ol(y.left+Math.min(Vi,y.width-ko),y.top+Mi,Vi>y.width+ko?0:Math.max(0,pt-ko),Math.max(0,qt-Mi),Vo.TOP_RIGHT):new Fi(y.left+y.width-ko,y.top+Mi),this.bottomRightPaddingBox=pr>0||qr>0?ol(y.left+Math.min(ao,y.width-Pa),y.top+Math.min(Na,y.height-Xa),Math.max(0,pr-ko),Math.max(0,qr-Xa),Vo.BOTTOM_RIGHT):new Fi(y.left+y.width-ko,y.top+y.height-Xa),this.bottomLeftPaddingBox=Un>0||pi>0?ol(y.left+Pa,y.top+Math.min(Ia,y.height-Xa),Math.max(0,Un-Pa),Math.max(0,pi-Xa),Vo.BOTTOM_LEFT):new Fi(y.left+Pa,y.top+y.height-Xa),this.topLeftContentBox=_e>0||Ze>0?ol(y.left+Pa+bo,y.top+Mi+qn,Math.max(0,_e-(Pa+bo)),Math.max(0,Ze-(Mi+qn)),Vo.TOP_LEFT):new Fi(y.left+Pa+bo,y.top+Mi+qn),this.topRightContentBox=pt>0||qt>0?ol(y.left+Math.min(Vi,y.width+Pa+bo),y.top+Mi+qn,Vi>y.width+Pa+bo?0:pt-Pa+bo,qt-(Mi+qn),Vo.TOP_RIGHT):new Fi(y.left+y.width-(ko+Ec),y.top+Mi+qn),this.bottomRightContentBox=pr>0||qr>0?ol(y.left+Math.min(ao,y.width-(Pa+bo)),y.top+Math.min(Na,y.height+Mi+qn),Math.max(0,pr-(ko+Ec)),qr-(Xa+oA),Vo.BOTTOM_RIGHT):new Fi(y.left+y.width-(ko+Ec),y.top+y.height-(Xa+oA)),this.bottomLeftContentBox=Un>0||pi>0?ol(y.left+Pa+bo,y.top+Ia,Math.max(0,Un-(Pa+bo)),pi-(Xa+oA),Vo.BOTTOM_LEFT):new Fi(y.left+Pa+bo,y.top+y.height-(Xa+oA))}return b}(),Vo;(function(b){b[b.TOP_LEFT=0]="TOP_LEFT",b[b.TOP_RIGHT=1]="TOP_RIGHT",b[b.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",b[b.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Vo||(Vo={}));var ol=function(b,f,w,y,ne){var _e=4*((Math.sqrt(2)-1)/3),Ze=w*_e,ht=y*_e,pt=b+w,qt=f+y;switch(ne){case Vo.TOP_LEFT:return new T0(new Fi(b,qt),new Fi(b,qt-ht),new Fi(pt-Ze,f),new Fi(pt,f));case Vo.TOP_RIGHT:return new T0(new Fi(b,f),new Fi(b+Ze,f),new Fi(pt,qt-ht),new Fi(pt,qt));case Vo.BOTTOM_RIGHT:return new T0(new Fi(pt,f),new Fi(pt,f+ht),new Fi(b+Ze,qt),new Fi(b,qt));case Vo.BOTTOM_LEFT:default:return new T0(new Fi(pt,qt),new Fi(pt-Ze,qt),new Fi(b,f+ht),new Fi(b,f))}},Ys=function(b){return[b.topLeftBorderBox,b.topRightBorderBox,b.bottomRightBorderBox,b.bottomLeftBorderBox]},$m=function(b){return[b.topLeftContentBox,b.topRightContentBox,b.bottomRightContentBox,b.bottomLeftContentBox]},U0=function(b){return[b.topLeftPaddingBox,b.topRightPaddingBox,b.bottomRightPaddingBox,b.bottomLeftPaddingBox]},Za=function(){function b(f,w,y){this.offsetX=f,this.offsetY=w,this.matrix=y,this.type=0,this.target=6}return b}(),Sf=function(){function b(f,w){this.path=f,this.target=w,this.type=1}return b}(),ks=function(){function b(f){this.opacity=f,this.type=2,this.target=6}return b}(),Hd=function(b){return b.type===0},R0=function(b){return b.type===1},hc=function(b){return b.type===2},fd=function(b,f){return b.length===f.length?b.some(function(w,y){return w===f[y]}):!1},Cp=function(b,f,w,y,ne){return b.map(function(_e,Ze){switch(Ze){case 0:return _e.add(f,w);case 1:return _e.add(f+y,w);case 2:return _e.add(f+y,w+ne);case 3:return _e.add(f,w+ne)}return _e})},vn=function(){function b(f){this.element=f,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return b}(),Qs=function(){function b(f,w){if(this.container=f,this.parent=w,this.effects=[],this.curves=new om(this.container),this.container.styles.opacity<1&&this.effects.push(new ks(this.container.styles.opacity)),this.container.styles.transform!==null){var y=this.container.bounds.left+this.container.styles.transformOrigin[0].number,ne=this.container.bounds.top+this.container.styles.transformOrigin[1].number,_e=this.container.styles.transform;this.effects.push(new Za(y,ne,_e))}if(this.container.styles.overflowX!==0){var Ze=Ys(this.curves),ht=U0(this.curves);fd(Ze,ht)?this.effects.push(new Sf(Ze,6)):(this.effects.push(new Sf(Ze,2)),this.effects.push(new Sf(ht,4)))}}return b.prototype.getEffects=function(f){for(var w=[2,3].indexOf(this.container.styles.position)===-1,y=this.parent,ne=this.effects.slice(0);y;){var _e=y.effects.filter(function(pt){return!R0(pt)});if(w||y.container.styles.position!==0||!y.parent){if(ne.unshift.apply(ne,_e),w=[2,3].indexOf(y.container.styles.position)===-1,y.container.styles.overflowX!==0){var Ze=Ys(y.curves),ht=U0(y.curves);fd(Ze,ht)||ne.unshift(new Sf(ht,6))}}else ne.unshift.apply(ne,_e);y=y.parent}return ne.filter(function(pt){return ai(pt.target,f)})},b}(),Q0=function(b,f,w,y){b.container.elements.forEach(function(ne){var _e=ai(ne.flags,4),Ze=ai(ne.flags,2),ht=new Qs(ne,b);ai(ne.styles.display,2048)&&y.push(ht);var pt=ai(ne.flags,8)?[]:y;if(_e||Ze){var qt=_e||ne.styles.isPositioned()?w:f,Ar=new vn(ht);if(ne.styles.isPositioned()||ne.styles.opacity<1||ne.styles.isTransformed()){var pr=ne.styles.zIndex.order;if(pr<0){var qr=0;qt.negativeZIndex.some(function(Un,pi){return pr>Un.element.container.styles.zIndex.order?(qr=pi,!1):qr>0}),qt.negativeZIndex.splice(qr,0,Ar)}else if(pr>0){var Ti=0;qt.positiveZIndex.some(function(Un,pi){return pr>=Un.element.container.styles.zIndex.order?(Ti=pi+1,!1):Ti>0}),qt.positiveZIndex.splice(Ti,0,Ar)}else qt.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ar)}else ne.styles.isFloating()?qt.nonPositionedFloats.push(Ar):qt.nonPositionedInlineLevel.push(Ar);Q0(ht,Ar,_e?Ar:w,pt)}else ne.styles.isInlineLevel()?f.inlineLevel.push(ht):f.nonInlineLevel.push(ht),Q0(ht,f,w,pt);ai(ne.flags,8)&&K0(ne,pt)})},K0=function(b,f){for(var w=b instanceof Jf?b.start:1,y=b instanceof Jf?b.reversed:!1,ne=0;ne<f.length;ne++){var _e=f[ne];_e.container instanceof Td&&typeof _e.container.value=="number"&&_e.container.value!==0&&(w=_e.container.value),_e.listValue=Kd(w,_e.container.styles.listStyleType,!0),w+=y?-1:1}},Kc=function(b){var f=new Qs(b,null),w=new vn(f),y=[];return Q0(f,w,w,y),K0(f.container,y),w},Sc=function(b,f){switch(f){case 0:return MA(b.topLeftBorderBox,b.topLeftPaddingBox,b.topRightBorderBox,b.topRightPaddingBox);case 1:return MA(b.topRightBorderBox,b.topRightPaddingBox,b.bottomRightBorderBox,b.bottomRightPaddingBox);case 2:return MA(b.bottomRightBorderBox,b.bottomRightPaddingBox,b.bottomLeftBorderBox,b.bottomLeftPaddingBox);case 3:default:return MA(b.bottomLeftBorderBox,b.bottomLeftPaddingBox,b.topLeftBorderBox,b.topLeftPaddingBox)}},sc=function(b,f){switch(f){case 0:return MA(b.topLeftBorderBox,b.topLeftBorderDoubleOuterBox,b.topRightBorderBox,b.topRightBorderDoubleOuterBox);case 1:return MA(b.topRightBorderBox,b.topRightBorderDoubleOuterBox,b.bottomRightBorderBox,b.bottomRightBorderDoubleOuterBox);case 2:return MA(b.bottomRightBorderBox,b.bottomRightBorderDoubleOuterBox,b.bottomLeftBorderBox,b.bottomLeftBorderDoubleOuterBox);case 3:default:return MA(b.bottomLeftBorderBox,b.bottomLeftBorderDoubleOuterBox,b.topLeftBorderBox,b.topLeftBorderDoubleOuterBox)}},pc=function(b,f){switch(f){case 0:return MA(b.topLeftBorderDoubleInnerBox,b.topLeftPaddingBox,b.topRightBorderDoubleInnerBox,b.topRightPaddingBox);case 1:return MA(b.topRightBorderDoubleInnerBox,b.topRightPaddingBox,b.bottomRightBorderDoubleInnerBox,b.bottomRightPaddingBox);case 2:return MA(b.bottomRightBorderDoubleInnerBox,b.bottomRightPaddingBox,b.bottomLeftBorderDoubleInnerBox,b.bottomLeftPaddingBox);case 3:default:return MA(b.bottomLeftBorderDoubleInnerBox,b.bottomLeftPaddingBox,b.topLeftBorderDoubleInnerBox,b.topLeftPaddingBox)}},sm=function(b,f){switch(f){case 0:return H0(b.topLeftBorderStroke,b.topRightBorderStroke);case 1:return H0(b.topRightBorderStroke,b.bottomRightBorderStroke);case 2:return H0(b.bottomRightBorderStroke,b.bottomLeftBorderStroke);case 3:default:return H0(b.bottomLeftBorderStroke,b.topLeftBorderStroke)}},H0=function(b,f){var w=[];return fc(b)?w.push(b.subdivide(.5,!1)):w.push(b),fc(f)?w.push(f.subdivide(.5,!0)):w.push(f),w},MA=function(b,f,w,y){var ne=[];return fc(b)?ne.push(b.subdivide(.5,!1)):ne.push(b),fc(w)?ne.push(w.subdivide(.5,!0)):ne.push(w),fc(y)?ne.push(y.subdivide(.5,!0).reverse()):ne.push(y),fc(f)?ne.push(f.subdivide(.5,!1).reverse()):ne.push(f),ne},Ef=function(b){var f=b.bounds,w=b.styles;return f.add(w.borderLeftWidth,w.borderTopWidth,-(w.borderRightWidth+w.borderLeftWidth),-(w.borderTopWidth+w.borderBottomWidth))},Nl=function(b){var f=b.styles,w=b.bounds,y=eo(f.paddingLeft,w.width),ne=eo(f.paddingRight,w.width),_e=eo(f.paddingTop,w.width),Ze=eo(f.paddingBottom,w.width);return w.add(y+f.borderLeftWidth,_e+f.borderTopWidth,-(f.borderRightWidth+f.borderLeftWidth+y+ne),-(f.borderTopWidth+f.borderBottomWidth+_e+Ze))},_f=function(b,f){return b===0?f.bounds:b===2?Nl(f):Ef(f)},Bp=function(b,f){return b===0?f.bounds:b===2?Nl(f):Ef(f)},Jc=function(b,f,w){var y=_f(iA(b.styles.backgroundOrigin,f),b),ne=Bp(iA(b.styles.backgroundClip,f),b),_e=Nu(iA(b.styles.backgroundSize,f),w,y),Ze=_e[0],ht=_e[1],pt=jl(iA(b.styles.backgroundPosition,f),y.width-Ze,y.height-ht),qt=Sp(iA(b.styles.backgroundRepeat,f),pt,_e,y,ne),Ar=Math.round(y.left+pt[0]),pr=Math.round(y.top+pt[1]);return[qt,Ar,pr,Ze,ht]},mc=function(b){return Fo(b)&&b.value===Cl.AUTO},Uh=function(b){return typeof b=="number"},Nu=function(b,f,w){var y=f[0],ne=f[1],_e=f[2],Ze=b[0],ht=b[1];if(!Ze)return[0,0];if(gs(Ze)&&ht&&gs(ht))return[eo(Ze,w.width),eo(ht,w.height)];var pt=Uh(_e);if(Fo(Ze)&&(Ze.value===Cl.CONTAIN||Ze.value===Cl.COVER)){if(Uh(_e)){var qt=w.width/w.height;return qt<_e!=(Ze.value===Cl.COVER)?[w.width,w.width/_e]:[w.height*_e,w.height]}return[w.width,w.height]}var Ar=Uh(y),pr=Uh(ne),qr=Ar||pr;if(mc(Ze)&&(!ht||mc(ht))){if(Ar&&pr)return[y,ne];if(!pt&&!qr)return[w.width,w.height];if(qr&&pt){var Ti=Ar?y:ne*_e,Un=pr?ne:y/_e;return[Ti,Un]}var pi=Ar?y:w.width,Va=pr?ne:w.height;return[pi,Va]}if(pt){var Ji=0,Vi=0;return gs(Ze)?Ji=eo(Ze,w.width):gs(ht)&&(Vi=eo(ht,w.height)),mc(Ze)?Ji=Vi*_e:(!ht||mc(ht))&&(Vi=Ji/_e),[Ji,Vi]}var Na=null,ao=null;if(gs(Ze)?Na=eo(Ze,w.width):ht&&gs(ht)&&(ao=eo(ht,w.height)),Na!==null&&(!ht||mc(ht))&&(ao=Ar&&pr?Na/y*ne:w.height),ao!==null&&mc(Ze)&&(Na=Ar&&pr?ao/ne*y:w.width),Na!==null&&ao!==null)return[Na,ao];throw new Error("Unable to calculate background-size for element")},iA=function(b,f){var w=b[f];return typeof w=="undefined"?b[0]:w},Sp=function(b,f,w,y,ne){var _e=f[0],Ze=f[1],ht=w[0],pt=w[1];switch(b){case 2:return[new Fi(Math.round(y.left),Math.round(y.top+Ze)),new Fi(Math.round(y.left+y.width),Math.round(y.top+Ze)),new Fi(Math.round(y.left+y.width),Math.round(pt+y.top+Ze)),new Fi(Math.round(y.left),Math.round(pt+y.top+Ze))];case 3:return[new Fi(Math.round(y.left+_e),Math.round(y.top)),new Fi(Math.round(y.left+_e+ht),Math.round(y.top)),new Fi(Math.round(y.left+_e+ht),Math.round(y.height+y.top)),new Fi(Math.round(y.left+_e),Math.round(y.height+y.top))];case 1:return[new Fi(Math.round(y.left+_e),Math.round(y.top+Ze)),new Fi(Math.round(y.left+_e+ht),Math.round(y.top+Ze)),new Fi(Math.round(y.left+_e+ht),Math.round(y.top+Ze+pt)),new Fi(Math.round(y.left+_e),Math.round(y.top+Ze+pt))];default:return[new Fi(Math.round(ne.left),Math.round(ne.top)),new Fi(Math.round(ne.left+ne.width),Math.round(ne.top)),new Fi(Math.round(ne.left+ne.width),Math.round(ne.height+ne.top)),new Fi(Math.round(ne.left),Math.round(ne.height+ne.top))]}},Rh="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",sh="Hidden Text",jd=function(){function b(f){this._data={},this._document=f}return b.prototype.parseMetrics=function(f,w){var y=this._document.createElement("div"),ne=this._document.createElement("img"),_e=this._document.createElement("span"),Ze=this._document.body;y.style.visibility="hidden",y.style.fontFamily=f,y.style.fontSize=w,y.style.margin="0",y.style.padding="0",y.style.whiteSpace="nowrap",Ze.appendChild(y),ne.src=Rh,ne.width=1,ne.height=1,ne.style.margin="0",ne.style.padding="0",ne.style.verticalAlign="baseline",_e.style.fontFamily=f,_e.style.fontSize=w,_e.style.margin="0",_e.style.padding="0",_e.appendChild(this._document.createTextNode(sh)),y.appendChild(_e),y.appendChild(ne);var ht=ne.offsetTop-_e.offsetTop+2;y.removeChild(_e),y.appendChild(this._document.createTextNode(sh)),y.style.lineHeight="normal",ne.style.verticalAlign="super";var pt=ne.offsetTop-y.offsetTop+2;return Ze.removeChild(y),{baseline:ht,middle:pt}},b.prototype.getMetrics=function(f,w){var y=f+" "+w;return typeof this._data[y]=="undefined"&&(this._data[y]=this.parseMetrics(f,w)),this._data[y]},b}(),zd=function(){function b(f,w){this.context=f,this.options=w}return b}(),ua=1e4,sl=function(b){x(f,b);function f(w,y){var ne=b.call(this,w,y)||this;return ne._activeEffects=[],ne.canvas=y.canvas?y.canvas:document.createElement("canvas"),ne.ctx=ne.canvas.getContext("2d"),y.canvas||(ne.canvas.width=Math.floor(y.width*y.scale),ne.canvas.height=Math.floor(y.height*y.scale),ne.canvas.style.width=y.width+"px",ne.canvas.style.height=y.height+"px"),ne.fontMetrics=new jd(document),ne.ctx.scale(ne.options.scale,ne.options.scale),ne.ctx.translate(-y.x,-y.y),ne.ctx.textBaseline="bottom",ne._activeEffects=[],ne.context.logger.debug("Canvas renderer initialized ("+y.width+"x"+y.height+") with scale "+y.scale),ne}return f.prototype.applyEffects=function(w){for(var y=this;this._activeEffects.length;)this.popEffect();w.forEach(function(ne){return y.applyEffect(ne)})},f.prototype.applyEffect=function(w){this.ctx.save(),hc(w)&&(this.ctx.globalAlpha=w.opacity),Hd(w)&&(this.ctx.translate(w.offsetX,w.offsetY),this.ctx.transform(w.matrix[0],w.matrix[1],w.matrix[2],w.matrix[3],w.matrix[4],w.matrix[5]),this.ctx.translate(-w.offsetX,-w.offsetY)),R0(w)&&(this.path(w.path),this.ctx.clip()),this._activeEffects.push(w)},f.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},f.prototype.renderStack=function(w){return Ae(this,void 0,void 0,function(){var y;return P(this,function(ne){switch(ne.label){case 0:return y=w.element.container.styles,y.isVisible()?[4,this.renderStackContent(w)]:[3,2];case 1:ne.sent(),ne.label=2;case 2:return[2]}})})},f.prototype.renderNode=function(w){return Ae(this,void 0,void 0,function(){return P(this,function(y){switch(y.label){case 0:if(ai(w.container.flags,16))debugger;return w.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(w)]:[3,3];case 1:return y.sent(),[4,this.renderNodeContent(w)];case 2:y.sent(),y.label=3;case 3:return[2]}})})},f.prototype.renderTextWithLetterSpacing=function(w,y,ne){var _e=this;if(y===0)this.ctx.fillText(w.text,w.bounds.left,w.bounds.top+ne);else{var Ze=vo(w.text);Ze.reduce(function(ht,pt){return _e.ctx.fillText(pt,ht,w.bounds.top+ne),ht+_e.ctx.measureText(pt).width},w.bounds.left)}},f.prototype.createFontStyle=function(w){var y=w.fontVariant.filter(function(Ze){return Ze==="normal"||Ze==="small-caps"}).join(""),ne=$d(w.fontFamily).join(", "),_e=Fs(w.fontSize)?""+w.fontSize.number+w.fontSize.unit:w.fontSize.number+"px";return[[w.fontStyle,y,w.fontWeight,_e,ne].join(" "),ne,_e]},f.prototype.renderTextNode=function(w,y){return Ae(this,void 0,void 0,function(){var ne,_e,Ze,ht,pt,qt,Ar,pr,qr=this;return P(this,function(Ti){return ne=this.createFontStyle(y),_e=ne[0],Ze=ne[1],ht=ne[2],this.ctx.font=_e,this.ctx.direction=y.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",pt=this.fontMetrics.getMetrics(Ze,ht),qt=pt.baseline,Ar=pt.middle,pr=y.paintOrder,w.textBounds.forEach(function(Un){pr.forEach(function(pi){switch(pi){case 0:qr.ctx.fillStyle=Oo(y.color),qr.renderTextWithLetterSpacing(Un,y.letterSpacing,qt);var Va=y.textShadow;Va.length&&Un.text.trim().length&&(Va.slice(0).reverse().forEach(function(Ji){qr.ctx.shadowColor=Oo(Ji.color),qr.ctx.shadowOffsetX=Ji.offsetX.number*qr.options.scale,qr.ctx.shadowOffsetY=Ji.offsetY.number*qr.options.scale,qr.ctx.shadowBlur=Ji.blur.number,qr.renderTextWithLetterSpacing(Un,y.letterSpacing,qt)}),qr.ctx.shadowColor="",qr.ctx.shadowOffsetX=0,qr.ctx.shadowOffsetY=0,qr.ctx.shadowBlur=0),y.textDecorationLine.length&&(qr.ctx.fillStyle=Oo(y.textDecorationColor||y.color),y.textDecorationLine.forEach(function(Ji){switch(Ji){case 1:qr.ctx.fillRect(Un.bounds.left,Math.round(Un.bounds.top+qt),Un.bounds.width,1);break;case 2:qr.ctx.fillRect(Un.bounds.left,Math.round(Un.bounds.top),Un.bounds.width,1);break;case 3:qr.ctx.fillRect(Un.bounds.left,Math.ceil(Un.bounds.top+Ar),Un.bounds.width,1);break}}));break;case 1:y.webkitTextStrokeWidth&&Un.text.trim().length&&(qr.ctx.strokeStyle=Oo(y.webkitTextStrokeColor),qr.ctx.lineWidth=y.webkitTextStrokeWidth,qr.ctx.lineJoin=window.chrome?"miter":"round",qr.ctx.strokeText(Un.text,Un.bounds.left,Un.bounds.top+qt)),qr.ctx.strokeStyle="",qr.ctx.lineWidth=0,qr.ctx.lineJoin="miter";break}})}),[2]})})},f.prototype.renderReplacedElement=function(w,y,ne){if(ne&&w.intrinsicWidth>0&&w.intrinsicHeight>0){var _e=Nl(w),Ze=U0(y);this.path(Ze),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(ne,0,0,w.intrinsicWidth,w.intrinsicHeight,_e.left,_e.top,_e.width,_e.height),this.ctx.restore()}},f.prototype.renderNodeContent=function(w){return Ae(this,void 0,void 0,function(){var y,ne,_e,Ze,ht,pt,Vi,Vi,qt,Ar,pr,qr,ao,Ti,Un,Ia,pi,Va,Ji,Vi,Na,ao,Ia;return P(this,function(Mi){switch(Mi.label){case 0:this.applyEffects(w.getEffects(4)),y=w.container,ne=w.curves,_e=y.styles,Ze=0,ht=y.textNodes,Mi.label=1;case 1:return Ze<ht.length?(pt=ht[Ze],[4,this.renderTextNode(pt,_e)]):[3,4];case 2:Mi.sent(),Mi.label=3;case 3:return Ze++,[3,1];case 4:if(!(y instanceof E0))return[3,8];Mi.label=5;case 5:return Mi.trys.push([5,7,,8]),[4,this.context.cache.match(y.src)];case 6:return Vi=Mi.sent(),this.renderReplacedElement(y,ne,Vi),[3,8];case 7:return Mi.sent(),this.context.logger.error("Error loading image "+y.src),[3,8];case 8:if(y instanceof So&&this.renderReplacedElement(y,ne,y.canvas),!(y instanceof yf))return[3,12];Mi.label=9;case 9:return Mi.trys.push([9,11,,12]),[4,this.context.cache.match(y.svg)];case 10:return Vi=Mi.sent(),this.renderReplacedElement(y,ne,Vi),[3,12];case 11:return Mi.sent(),this.context.logger.error("Error loading svg "+y.svg.substring(0,255)),[3,12];case 12:return y instanceof Fh&&y.tree?(qt=new f(this.context,{scale:this.options.scale,backgroundColor:y.backgroundColor,x:0,y:0,width:y.width,height:y.height}),[4,qt.render(y.tree)]):[3,14];case 13:Ar=Mi.sent(),y.width&&y.height&&this.ctx.drawImage(Ar,0,0,y.width,y.height,y.bounds.left,y.bounds.top,y.bounds.width,y.bounds.height),Mi.label=14;case 14:if(y instanceof Jl&&(pr=Math.min(y.bounds.width,y.bounds.height),y.type===I0?y.checked&&(this.ctx.save(),this.path([new Fi(y.bounds.left+pr*.39363,y.bounds.top+pr*.79),new Fi(y.bounds.left+pr*.16,y.bounds.top+pr*.5549),new Fi(y.bounds.left+pr*.27347,y.bounds.top+pr*.44071),new Fi(y.bounds.left+pr*.39694,y.bounds.top+pr*.5649),new Fi(y.bounds.left+pr*.72983,y.bounds.top+pr*.23),new Fi(y.bounds.left+pr*.84,y.bounds.top+pr*.34085),new Fi(y.bounds.left+pr*.39363,y.bounds.top+pr*.79)]),this.ctx.fillStyle=Oo(F0),this.ctx.fill(),this.ctx.restore()):y.type===Ud&&y.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(y.bounds.left+pr/2,y.bounds.top+pr/2,pr/4,0,Math.PI*2,!0),this.ctx.fillStyle=Oo(F0),this.ctx.fill(),this.ctx.restore())),If(y)&&y.value.length){switch(qr=this.createFontStyle(_e),ao=qr[0],Ti=qr[1],Un=this.fontMetrics.getMetrics(ao,Ti).baseline,this.ctx.font=ao,this.ctx.fillStyle=Oo(_e.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=GA(y.styles.textAlign),Ia=Nl(y),pi=0,y.styles.textAlign){case 1:pi+=Ia.width/2;break;case 2:pi+=Ia.width;break}Va=Ia.add(pi,0,0,-Ia.height/2+1),this.ctx.save(),this.path([new Fi(Ia.left,Ia.top),new Fi(Ia.left+Ia.width,Ia.top),new Fi(Ia.left+Ia.width,Ia.top+Ia.height),new Fi(Ia.left,Ia.top+Ia.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Qc(y.value,Va),_e.letterSpacing,Un),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!ai(y.styles.display,2048))return[3,20];if(y.styles.listStyleImage===null)return[3,19];if(Ji=y.styles.listStyleImage,Ji.type!==0)return[3,18];Vi=void 0,Na=Ji.url,Mi.label=15;case 15:return Mi.trys.push([15,17,,18]),[4,this.context.cache.match(Na)];case 16:return Vi=Mi.sent(),this.ctx.drawImage(Vi,y.bounds.left-(Vi.width+10),y.bounds.top),[3,18];case 17:return Mi.sent(),this.context.logger.error("Error loading list-style-image "+Na),[3,18];case 18:return[3,20];case 19:w.listValue&&y.styles.listStyleType!==-1&&(ao=this.createFontStyle(_e)[0],this.ctx.font=ao,this.ctx.fillStyle=Oo(_e.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Ia=new te(y.bounds.left,y.bounds.top+eo(y.styles.paddingTop,y.bounds.width),y.bounds.width,$t(_e.lineHeight,_e.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Qc(w.listValue,Ia),_e.letterSpacing,$t(_e.lineHeight,_e.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Mi.label=20;case 20:return[2]}})})},f.prototype.renderStackContent=function(w){return Ae(this,void 0,void 0,function(){var y,ne,Ji,_e,Ze,Ji,ht,pt,Ji,qt,Ar,Ji,pr,qr,Ji,Ti,Un,Ji,pi,Va,Ji;return P(this,function(Vi){switch(Vi.label){case 0:if(ai(w.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(w.element)];case 1:Vi.sent(),y=0,ne=w.negativeZIndex,Vi.label=2;case 2:return y<ne.length?(Ji=ne[y],[4,this.renderStack(Ji)]):[3,5];case 3:Vi.sent(),Vi.label=4;case 4:return y++,[3,2];case 5:return[4,this.renderNodeContent(w.element)];case 6:Vi.sent(),_e=0,Ze=w.nonInlineLevel,Vi.label=7;case 7:return _e<Ze.length?(Ji=Ze[_e],[4,this.renderNode(Ji)]):[3,10];case 8:Vi.sent(),Vi.label=9;case 9:return _e++,[3,7];case 10:ht=0,pt=w.nonPositionedFloats,Vi.label=11;case 11:return ht<pt.length?(Ji=pt[ht],[4,this.renderStack(Ji)]):[3,14];case 12:Vi.sent(),Vi.label=13;case 13:return ht++,[3,11];case 14:qt=0,Ar=w.nonPositionedInlineLevel,Vi.label=15;case 15:return qt<Ar.length?(Ji=Ar[qt],[4,this.renderStack(Ji)]):[3,18];case 16:Vi.sent(),Vi.label=17;case 17:return qt++,[3,15];case 18:pr=0,qr=w.inlineLevel,Vi.label=19;case 19:return pr<qr.length?(Ji=qr[pr],[4,this.renderNode(Ji)]):[3,22];case 20:Vi.sent(),Vi.label=21;case 21:return pr++,[3,19];case 22:Ti=0,Un=w.zeroOrAutoZIndexOrTransformedOrOpacity,Vi.label=23;case 23:return Ti<Un.length?(Ji=Un[Ti],[4,this.renderStack(Ji)]):[3,26];case 24:Vi.sent(),Vi.label=25;case 25:return Ti++,[3,23];case 26:pi=0,Va=w.positiveZIndex,Vi.label=27;case 27:return pi<Va.length?(Ji=Va[pi],[4,this.renderStack(Ji)]):[3,30];case 28:Vi.sent(),Vi.label=29;case 29:return pi++,[3,27];case 30:return[2]}})})},f.prototype.mask=function(w){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(w.slice(0).reverse()),this.ctx.closePath()},f.prototype.path=function(w){this.ctx.beginPath(),this.formatPath(w),this.ctx.closePath()},f.prototype.formatPath=function(w){var y=this;w.forEach(function(ne,_e){var Ze=fc(ne)?ne.start:ne;_e===0?y.ctx.moveTo(Ze.x,Ze.y):y.ctx.lineTo(Ze.x,Ze.y),fc(ne)&&y.ctx.bezierCurveTo(ne.startControl.x,ne.startControl.y,ne.endControl.x,ne.endControl.y,ne.end.x,ne.end.y)})},f.prototype.renderRepeat=function(w,y,ne,_e){this.path(w),this.ctx.fillStyle=y,this.ctx.translate(ne,_e),this.ctx.fill(),this.ctx.translate(-ne,-_e)},f.prototype.resizeImage=function(w,y,ne){var _e;if(w.width===y&&w.height===ne)return w;var Ze=(_e=this.canvas.ownerDocument)!==null&&_e!==void 0?_e:document,ht=Ze.createElement("canvas");ht.width=Math.max(1,y),ht.height=Math.max(1,ne);var pt=ht.getContext("2d");return pt.drawImage(w,0,0,w.width,w.height,0,0,y,ne),ht},f.prototype.renderBackgroundImage=function(w){return Ae(this,void 0,void 0,function(){var y,ne,_e,Ze,ht,pt;return P(this,function(qt){switch(qt.label){case 0:y=w.styles.backgroundImage.length-1,ne=function(Ar){var pr,qr,Ti,qn,Yc,sA,bo,_c,Xa,Un,qn,Yc,sA,bo,_c,pi,Va,Ji,Vi,Na,ao,Ia,Mi,ko,Xa,Pa,qn,Ec,oA,bo,_c,pd,Yc,sA,Au,XA,uu,Pu,LA,Tu,Zd,JA;return P(this,function(md){switch(md.label){case 0:if(Ar.type!==0)return[3,5];pr=void 0,qr=Ar.url,md.label=1;case 1:return md.trys.push([1,3,,4]),[4,_e.context.cache.match(qr)];case 2:return pr=md.sent(),[3,4];case 3:return md.sent(),_e.context.logger.error("Error loading background-image "+qr),[3,4];case 4:return pr&&(Ti=Jc(w,y,[pr.width,pr.height,pr.width/pr.height]),qn=Ti[0],Yc=Ti[1],sA=Ti[2],bo=Ti[3],_c=Ti[4],Xa=_e.ctx.createPattern(_e.resizeImage(pr,bo,_c),"repeat"),_e.renderRepeat(qn,Xa,Yc,sA)),[3,6];case 5:VA(Ar)?(Un=Jc(w,y,[null,null,null]),qn=Un[0],Yc=Un[1],sA=Un[2],bo=Un[3],_c=Un[4],pi=Yu(Ar.angle,bo,_c),Va=pi[0],Ji=pi[1],Vi=pi[2],Na=pi[3],ao=pi[4],Ia=document.createElement("canvas"),Ia.width=bo,Ia.height=_c,Mi=Ia.getContext("2d"),ko=Mi.createLinearGradient(Ji,Na,Vi,ao),cf(Ar.stops,Va).forEach(function(Hc){return ko.addColorStop(Hc.stop,Oo(Hc.color))}),Mi.fillStyle=ko,Mi.fillRect(0,0,bo,_c),bo>0&&_c>0&&(Xa=_e.ctx.createPattern(Ia,"repeat"),_e.renderRepeat(qn,Xa,Yc,sA))):y0(Ar)&&(Pa=Jc(w,y,[null,null,null]),qn=Pa[0],Ec=Pa[1],oA=Pa[2],bo=Pa[3],_c=Pa[4],pd=Ar.position.length===0?[NA]:Ar.position,Yc=eo(pd[0],bo),sA=eo(pd[pd.length-1],_c),Au=Xo(Ar,Yc,sA,bo,_c),XA=Au[0],uu=Au[1],XA>0&&uu>0&&(Pu=_e.ctx.createRadialGradient(Ec+Yc,oA+sA,0,Ec+Yc,oA+sA,XA),cf(Ar.stops,XA*2).forEach(function(Hc){return Pu.addColorStop(Hc.stop,Oo(Hc.color))}),_e.path(qn),_e.ctx.fillStyle=Pu,XA!==uu?(LA=w.bounds.left+.5*w.bounds.width,Tu=w.bounds.top+.5*w.bounds.height,Zd=uu/XA,JA=1/Zd,_e.ctx.save(),_e.ctx.translate(LA,Tu),_e.ctx.transform(1,0,0,Zd,0,0),_e.ctx.translate(-LA,-Tu),_e.ctx.fillRect(Ec,JA*(oA-Tu)+Tu,bo,_c*JA),_e.ctx.restore()):_e.ctx.fill())),md.label=6;case 6:return y--,[2]}})},_e=this,Ze=0,ht=w.styles.backgroundImage.slice(0).reverse(),qt.label=1;case 1:return Ze<ht.length?(pt=ht[Ze],[5,ne(pt)]):[3,4];case 2:qt.sent(),qt.label=3;case 3:return Ze++,[3,1];case 4:return[2]}})})},f.prototype.renderSolidBorder=function(w,y,ne){return Ae(this,void 0,void 0,function(){return P(this,function(_e){return this.path(Sc(ne,y)),this.ctx.fillStyle=Oo(w),this.ctx.fill(),[2]})})},f.prototype.renderDoubleBorder=function(w,y,ne,_e){return Ae(this,void 0,void 0,function(){var Ze,ht;return P(this,function(pt){switch(pt.label){case 0:return y<3?[4,this.renderSolidBorder(w,ne,_e)]:[3,2];case 1:return pt.sent(),[2];case 2:return Ze=sc(_e,ne),this.path(Ze),this.ctx.fillStyle=Oo(w),this.ctx.fill(),ht=pc(_e,ne),this.path(ht),this.ctx.fill(),[2]}})})},f.prototype.renderNodeBackgroundAndBorders=function(w){return Ae(this,void 0,void 0,function(){var y,ne,_e,Ze,ht,pt,qt,Ar,pr=this;return P(this,function(qr){switch(qr.label){case 0:return this.applyEffects(w.getEffects(2)),y=w.container.styles,ne=!zo(y.backgroundColor)||y.backgroundImage.length,_e=[{style:y.borderTopStyle,color:y.borderTopColor,width:y.borderTopWidth},{style:y.borderRightStyle,color:y.borderRightColor,width:y.borderRightWidth},{style:y.borderBottomStyle,color:y.borderBottomColor,width:y.borderBottomWidth},{style:y.borderLeftStyle,color:y.borderLeftColor,width:y.borderLeftWidth}],Ze=hd(iA(y.backgroundClip,0),w.curves),ne||y.boxShadow.length?(this.ctx.save(),this.path(Ze),this.ctx.clip(),zo(y.backgroundColor)||(this.ctx.fillStyle=Oo(y.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(w.container)]):[3,2];case 1:qr.sent(),this.ctx.restore(),y.boxShadow.slice(0).reverse().forEach(function(Ti){pr.ctx.save();var Un=Ys(w.curves),pi=Ti.inset?0:ua,Va=Cp(Un,-pi+(Ti.inset?1:-1)*Ti.spread.number,(Ti.inset?1:-1)*Ti.spread.number,Ti.spread.number*(Ti.inset?-2:2),Ti.spread.number*(Ti.inset?-2:2));Ti.inset?(pr.path(Un),pr.ctx.clip(),pr.mask(Va)):(pr.mask(Un),pr.ctx.clip(),pr.path(Va)),pr.ctx.shadowOffsetX=Ti.offsetX.number+pi,pr.ctx.shadowOffsetY=Ti.offsetY.number,pr.ctx.shadowColor=Oo(Ti.color),pr.ctx.shadowBlur=Ti.blur.number,pr.ctx.fillStyle=Ti.inset?Oo(Ti.color):"rgba(0,0,0,1)",pr.ctx.fill(),pr.ctx.restore()}),qr.label=2;case 2:ht=0,pt=0,qt=_e,qr.label=3;case 3:return pt<qt.length?(Ar=qt[pt],Ar.style!==0&&!zo(Ar.color)&&Ar.width>0?Ar.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Ar.color,Ar.width,ht,w.curves,2)]:[3,11]):[3,13];case 4:return qr.sent(),[3,11];case 5:return Ar.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Ar.color,Ar.width,ht,w.curves,3)];case 6:return qr.sent(),[3,11];case 7:return Ar.style!==4?[3,9]:[4,this.renderDoubleBorder(Ar.color,Ar.width,ht,w.curves)];case 8:return qr.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Ar.color,ht,w.curves)];case 10:qr.sent(),qr.label=11;case 11:ht++,qr.label=12;case 12:return pt++,[3,3];case 13:return[2]}})})},f.prototype.renderDashedDottedBorder=function(w,y,ne,_e,Ze){return Ae(this,void 0,void 0,function(){var ht,pt,qt,Ar,pr,qr,Ti,Un,pi,Va,Ji,Vi,Na,ao,Ia,Mi,Ia,Mi;return P(this,function(ko){return this.ctx.save(),ht=sm(_e,ne),pt=Sc(_e,ne),Ze===2&&(this.path(pt),this.ctx.clip()),fc(pt[0])?(qt=pt[0].start.x,Ar=pt[0].start.y):(qt=pt[0].x,Ar=pt[0].y),fc(pt[1])?(pr=pt[1].end.x,qr=pt[1].end.y):(pr=pt[1].x,qr=pt[1].y),ne===0||ne===2?Ti=Math.abs(qt-pr):Ti=Math.abs(Ar-qr),this.ctx.beginPath(),Ze===3?this.formatPath(ht):this.formatPath(pt.slice(0,2)),Un=y<3?y*3:y*2,pi=y<3?y*2:y,Ze===3&&(Un=y,pi=y),Va=!0,Ti<=Un*2?Va=!1:Ti<=Un*2+pi?(Ji=Ti/(2*Un+pi),Un*=Ji,pi*=Ji):(Vi=Math.floor((Ti+pi)/(Un+pi)),Na=(Ti-Vi*Un)/(Vi-1),ao=(Ti-(Vi+1)*Un)/Vi,pi=ao<=0||Math.abs(pi-Na)<Math.abs(pi-ao)?Na:ao),Va&&(Ze===3?this.ctx.setLineDash([0,Un+pi]):this.ctx.setLineDash([Un,pi])),Ze===3?(this.ctx.lineCap="round",this.ctx.lineWidth=y):this.ctx.lineWidth=y*2+1.1,this.ctx.strokeStyle=Oo(w),this.ctx.stroke(),this.ctx.setLineDash([]),Ze===2&&(fc(pt[0])&&(Ia=pt[3],Mi=pt[0],this.ctx.beginPath(),this.formatPath([new Fi(Ia.end.x,Ia.end.y),new Fi(Mi.start.x,Mi.start.y)]),this.ctx.stroke()),fc(pt[1])&&(Ia=pt[1],Mi=pt[2],this.ctx.beginPath(),this.formatPath([new Fi(Ia.end.x,Ia.end.y),new Fi(Mi.start.x,Mi.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},f.prototype.render=function(w){return Ae(this,void 0,void 0,function(){var y;return P(this,function(ne){switch(ne.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Oo(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),y=Kc(w),[4,this.renderStack(y)];case 1:return ne.sent(),this.applyEffects([]),[2,this.canvas]}})})},f}(zd),If=function(b){return b instanceof Yf||b instanceof ld?!0:b instanceof Jl&&b.type!==Ud&&b.type!==I0},hd=function(b,f){switch(b){case 0:return Ys(f);case 2:return $m(f);case 1:default:return U0(f)}},GA=function(b){switch(b){case 1:return"center";case 2:return"right";case 0:default:return"left"}},La=["-apple-system","system-ui"],$d=function(b){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?b.filter(function(f){return La.indexOf(f)===-1}):b},aA=function(b){x(f,b);function f(w,y){var ne=b.call(this,w,y)||this;return ne.canvas=y.canvas?y.canvas:document.createElement("canvas"),ne.ctx=ne.canvas.getContext("2d"),ne.options=y,ne.canvas.width=Math.floor(y.width*y.scale),ne.canvas.height=Math.floor(y.height*y.scale),ne.canvas.style.width=y.width+"px",ne.canvas.style.height=y.height+"px",ne.ctx.scale(ne.options.scale,ne.options.scale),ne.ctx.translate(-y.x,-y.y),ne.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+y.width+"x"+y.height+" at "+y.x+","+y.y+") with scale "+y.scale),ne}return f.prototype.render=function(w){return Ae(this,void 0,void 0,function(){var y,ne;return P(this,function(_e){switch(_e.label){case 0:return y=UA(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,w),[4,j0(y)];case 1:return ne=_e.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Oo(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(ne,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},f}(zd),j0=function(b){return new Promise(function(f,w){var y=new Image;y.onload=function(){f(y)},y.onerror=w,y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},cu=function(){function b(f){var w=f.id,y=f.enabled;this.id=w,this.enabled=y,this.start=Date.now()}return b.prototype.debug=function(){for(var f=[],w=0;w<arguments.length;w++)f[w]=arguments[w];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,De([this.id,this.getTime()+"ms"],f)):this.info.apply(this,f))},b.prototype.getTime=function(){return Date.now()-this.start},b.prototype.info=function(){for(var f=[],w=0;w<arguments.length;w++)f[w]=arguments[w];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,De([this.id,this.getTime()+"ms"],f))},b.prototype.warn=function(){for(var f=[],w=0;w<arguments.length;w++)f[w]=arguments[w];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,De([this.id,this.getTime()+"ms"],f)):this.info.apply(this,f))},b.prototype.error=function(){for(var f=[],w=0;w<arguments.length;w++)f[w]=arguments[w];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,De([this.id,this.getTime()+"ms"],f)):this.info.apply(this,f))},b.instances={},b}(),Zm=function(){function b(f,w){var y;this.windowBounds=w,this.instanceName="#"+b.instanceCount++,this.logger=new cu({id:this.instanceName,enabled:f.logging}),this.cache=(y=f.cache)!==null&&y!==void 0?y:new FA(this,f)}return b.instanceCount=1,b}(),Vm=function(b,f){return f===void 0&&(f={}),Wm(b,f)};typeof window!="undefined"&&yp.setContext(window);var Wm=function(b,f){return Ae(void 0,void 0,void 0,function(){var w,y,ne,_e,Ze,ht,pt,qt,Ar,pr,qr,Ti,Un,pi,Va,Ji,Vi,Na,ao,Ia,ko,Mi,ko,Xa,Pa,qn,Ec,oA,bo,_c,pd,Yc,sA,Au,XA,uu,Pu,LA,Tu,Zd;return P(this,function(JA){switch(JA.label){case 0:if(!b||typeof b!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(w=b.ownerDocument,!w)throw new Error("Element is not attached to a Document");if(y=w.defaultView,!y)throw new Error("Document is not attached to a Window");return ne={allowTaint:(Xa=f.allowTaint)!==null&&Xa!==void 0?Xa:!1,imageTimeout:(Pa=f.imageTimeout)!==null&&Pa!==void 0?Pa:15e3,proxy:f.proxy,useCORS:(qn=f.useCORS)!==null&&qn!==void 0?qn:!1},_e=me({logging:(Ec=f.logging)!==null&&Ec!==void 0?Ec:!0,cache:f.cache},ne),Ze={windowWidth:(oA=f.windowWidth)!==null&&oA!==void 0?oA:y.innerWidth,windowHeight:(bo=f.windowHeight)!==null&&bo!==void 0?bo:y.innerHeight,scrollX:(_c=f.scrollX)!==null&&_c!==void 0?_c:y.pageXOffset,scrollY:(pd=f.scrollY)!==null&&pd!==void 0?pd:y.pageYOffset},ht=new te(Ze.scrollX,Ze.scrollY,Ze.windowWidth,Ze.windowHeight),pt=new Zm(_e,ht),qt=(Yc=f.foreignObjectRendering)!==null&&Yc!==void 0?Yc:!1,Ar={allowTaint:(sA=f.allowTaint)!==null&&sA!==void 0?sA:!1,onclone:f.onclone,ignoreElements:f.ignoreElements,inlineImages:qt,copyStyles:qt},pt.logger.debug("Starting document clone with size "+ht.width+"x"+ht.height+" scrolled to "+-ht.left+","+-ht.top),pr=new O0(pt,b,Ar),qr=pr.clonedReferenceElement,qr?[4,pr.toIFrame(w,ht)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Ti=JA.sent(),Un=Ls(qr)||Um(qr)?S(qr.ownerDocument):V(pt,qr),pi=Un.width,Va=Un.height,Ji=Un.left,Vi=Un.top,Na=Yl(pt,qr,f.backgroundColor),ao={canvas:f.canvas,backgroundColor:Na,scale:(XA=(Au=f.scale)!==null&&Au!==void 0?Au:y.devicePixelRatio)!==null&&XA!==void 0?XA:1,x:((uu=f.x)!==null&&uu!==void 0?uu:0)+Ji,y:((Pu=f.y)!==null&&Pu!==void 0?Pu:0)+Vi,width:(LA=f.width)!==null&&LA!==void 0?LA:Math.ceil(pi),height:(Tu=f.height)!==null&&Tu!==void 0?Tu:Math.ceil(Va)},qt?(pt.logger.debug("Document cloned, using foreign object rendering"),ko=new aA(pt,ao),[4,ko.render(qr)]):[3,3];case 2:return Ia=JA.sent(),[3,5];case 3:return pt.logger.debug("Document cloned, element located at "+Ji+","+Vi+" with size "+pi+"x"+Va+" using computed rendering"),pt.logger.debug("Starting DOM parsing"),Mi=pp(pt,qr),Na===Mi.styles.backgroundColor&&(Mi.styles.backgroundColor=rl.TRANSPARENT),pt.logger.debug("Starting renderer for element at "+ao.x+","+ao.y+" with size "+ao.width+"x"+ao.height),ko=new sl(pt,ao),[4,ko.render(Mi)];case 4:Ia=JA.sent(),JA.label=5;case 5:return(!((Zd=f.removeContainer)!==null&&Zd!==void 0)||Zd)&&(O0.destroy(Ti)||pt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),pt.logger.debug("Finished rendering"),[2,Ia]}})})},Yl=function(b,f,w){var y=f.ownerDocument,ne=y.documentElement?eA(b,getComputedStyle(y.documentElement).backgroundColor):rl.TRANSPARENT,_e=y.body?eA(b,getComputedStyle(y.body).backgroundColor):rl.TRANSPARENT,Ze=typeof w=="string"?eA(b,w):w===null?rl.TRANSPARENT:4294967295;return f===y.documentElement?zo(ne)?zo(_e)?Ze:_e:ne:Ze};return Vm})},44164:function(un,Tt,x){var me=x(97671);(function(P,De){un.exports=De(x(65355),x(64270))})(self,function(Ae,P){return function(){var De={"./src/plugin/hyperlinks.js":function(g,I,v){"use strict";v.r(I);var z=v("./node_modules/core-js/modules/web.dom-collections.for-each.js"),E=v.n(z),M=v("./node_modules/core-js/modules/es.string.link.js"),N=v.n(M),T=v("./src/worker.js"),L=v("./src/utils.js"),ee=[],R={toContainer:T.default.prototype.toContainer,toPdf:T.default.prototype.toPdf};T.default.prototype.toContainer=function(){return R.toContainer.call(this).then(function(){if(this.opt.enableLinks){var q=this.prop.container,W=q.querySelectorAll("a"),K=(0,L.unitConvert)(q.getBoundingClientRect(),this.prop.pageSize.k);ee=[],Array.prototype.forEach.call(W,function(se){for(var fe=se.getClientRects(),Oe=0;Oe<fe.length;Oe++){var Se=(0,L.unitConvert)(fe[Oe],this.prop.pageSize.k);Se.left-=K.left,Se.top-=K.top;var Ue=Math.floor(Se.top/this.prop.pageSize.inner.height)+1,J=this.opt.margin[0]+Se.top%this.prop.pageSize.inner.height,ue=this.opt.margin[1]+Se.left;ee.push({page:Ue,top:J,left:ue,clientRect:Se,link:se})}},this)}})},T.default.prototype.toPdf=function(){return R.toPdf.call(this).then(function(){if(this.opt.enableLinks){ee.forEach(function(W){this.prop.pdf.setPage(W.page),this.prop.pdf.link(W.left,W.top,W.clientRect.width,W.clientRect.height,{url:W.link.href})},this);var q=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(q)}})}},"./src/plugin/jspdf-plugin.js":function(g,I,v){"use strict";v.r(I);var z=v("./node_modules/core-js/modules/es.symbol.js"),E=v.n(z),M=v("./node_modules/core-js/modules/es.symbol.description.js"),N=v.n(M),T=v("./node_modules/core-js/modules/es.object.to-string.js"),L=v.n(T),ee=v("./node_modules/core-js/modules/es.symbol.iterator.js"),R=v.n(ee),le=v("./node_modules/core-js/modules/es.array.iterator.js"),X=v.n(le),q=v("./node_modules/core-js/modules/es.string.iterator.js"),W=v.n(q),K=v("./node_modules/core-js/modules/web.dom-collections.iterator.js"),se=v.n(K),fe=v("jspdf"),Oe=v.n(fe);function Se(Ue){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Se=function(ue){return typeof ue}:Se=function(ue){return ue&&typeof Symbol=="function"&&ue.constructor===Symbol&&ue!==Symbol.prototype?"symbol":typeof ue},Se(Ue)}fe.jsPDF.getPageSize=function(Ue,J,ue){if(Se(Ue)==="object"){var D=Ue;Ue=D.orientation,J=D.unit||J,ue=D.format||ue}J=J||"mm",ue=ue||"a4",Ue=(""+(Ue||"P")).toLowerCase();var Ve=(""+ue).toLowerCase(),Me={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(J){case"pt":var we=1;break;case"mm":var we=72/25.4;break;case"cm":var we=72/2.54;break;case"in":var we=72;break;case"px":var we=72/96;break;case"pc":var we=12;break;case"em":var we=12;break;case"ex":var we=6;break;default:throw"Invalid unit: "+J}if(Me.hasOwnProperty(Ve))var Te=Me[Ve][1]/we,ve=Me[Ve][0]/we;else try{var Te=ue[1],ve=ue[0]}catch(Ee){throw new Error("Invalid format: "+ue)}if(Ue==="p"||Ue==="portrait"){if(Ue="p",ve>Te){var Fe=ve;ve=Te,Te=Fe}}else if(Ue==="l"||Ue==="landscape"){if(Ue="l",Te>ve){var Fe=ve;ve=Te,Te=Fe}}else throw"Invalid orientation: "+Ue;var de={width:ve,height:Te,unit:J,k:we};return de},I.default=fe.jsPDF},"./src/plugin/pagebreaks.js":function(g,I,v){"use strict";v.r(I);var z=v("./node_modules/core-js/modules/es.array.concat.js"),E=v.n(z),M=v("./node_modules/core-js/modules/es.array.slice.js"),N=v.n(M),T=v("./node_modules/core-js/modules/es.array.join.js"),L=v.n(T),ee=v("./node_modules/core-js/modules/web.dom-collections.for-each.js"),R=v.n(ee),le=v("./node_modules/core-js/modules/es.object.keys.js"),X=v.n(le),q=v("./src/worker.js"),W=v("./src/utils.js"),K={toContainer:q.default.prototype.toContainer};q.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},q.default.prototype.toContainer=function(){return K.toContainer.call(this).then(function(){var Oe=this.prop.container,Se=this.prop.pageSize.inner.px.height,Ue=[].concat(this.opt.pagebreak.mode),J={avoidAll:Ue.indexOf("avoid-all")!==-1,css:Ue.indexOf("css")!==-1,legacy:Ue.indexOf("legacy")!==-1},ue={},D=this;["before","after","avoid"].forEach(function(we){var Te=J.avoidAll&&we==="avoid";ue[we]=Te?[]:[].concat(D.opt.pagebreak[we]||[]),ue[we].length>0&&(ue[we]=Array.prototype.slice.call(Oe.querySelectorAll(ue[we].join(", "))))});var Ve=Oe.querySelectorAll(".html2pdf__page-break");Ve=Array.prototype.slice.call(Ve);var Me=Oe.querySelectorAll("*");Array.prototype.forEach.call(Me,function(Te){var ve={before:!1,after:J.legacy&&Ve.indexOf(Te)!==-1,avoid:J.avoidAll};if(J.css){var Fe=window.getComputedStyle(Te),de=["always","page","left","right"],Ee=["avoid","avoid-page"];ve={before:ve.before||de.indexOf(Fe.breakBefore||Fe.pageBreakBefore)!==-1,after:ve.after||de.indexOf(Fe.breakAfter||Fe.pageBreakAfter)!==-1,avoid:ve.avoid||Ee.indexOf(Fe.breakInside||Fe.pageBreakInside)!==-1}}Object.keys(ve).forEach(function(Lt){ve[Lt]=ve[Lt]||ue[Lt].indexOf(Te)!==-1});var tt=Te.getBoundingClientRect();if(ve.avoid&&!ve.before){var it=Math.floor(tt.top/Se),Je=Math.floor(tt.bottom/Se),et=Math.abs(tt.bottom-tt.top)/Se;Je!==it&&et<=1&&(ve.before=!0)}if(ve.before){var Bt=(0,W.createElement)("div",{style:{display:"block",height:Se-tt.top%Se+"px"}});Te.parentNode.insertBefore(Bt,Te)}if(ve.after){var Bt=(0,W.createElement)("div",{style:{display:"block",height:Se-tt.bottom%Se+"px"}});Te.parentNode.insertBefore(Bt,Te.nextSibling)}})})}},"./src/utils.js":function(g,I,v){"use strict";v.r(I),v.d(I,{objType:function(){return Ue},createElement:function(){return J},cloneNode:function(){return ue},unitConvert:function(){return D},toPx:function(){return Ve}});var z=v("./node_modules/core-js/modules/es.number.constructor.js"),E=v.n(z),M=v("./node_modules/core-js/modules/es.symbol.js"),N=v.n(M),T=v("./node_modules/core-js/modules/es.symbol.description.js"),L=v.n(T),ee=v("./node_modules/core-js/modules/es.object.to-string.js"),R=v.n(ee),le=v("./node_modules/core-js/modules/es.symbol.iterator.js"),X=v.n(le),q=v("./node_modules/core-js/modules/es.array.iterator.js"),W=v.n(q),K=v("./node_modules/core-js/modules/es.string.iterator.js"),se=v.n(K),fe=v("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Oe=v.n(fe);function Se(Me){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Se=function(Te){return typeof Te}:Se=function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},Se(Me)}var Ue=function(we){var Te=Se(we);return Te==="undefined"?"undefined":Te==="string"||we instanceof String?"string":Te==="number"||we instanceof Number?"number":Te==="function"||we instanceof Function?"function":we&&we.constructor===Array?"array":we&&we.nodeType===1?"element":Te==="object"?"object":"unknown"},J=function(we,Te){var ve=document.createElement(we);if(Te.className&&(ve.className=Te.className),Te.innerHTML){ve.innerHTML=Te.innerHTML;for(var Fe=ve.getElementsByTagName("script"),de=Fe.length;de-- >0;null)Fe[de].parentNode.removeChild(Fe[de])}for(var Ee in Te.style)ve.style[Ee]=Te.style[Ee];return ve},ue=function Me(we,Te){for(var ve=we.nodeType===3?document.createTextNode(we.nodeValue):we.cloneNode(!1),Fe=we.firstChild;Fe;Fe=Fe.nextSibling)(Te===!0||Fe.nodeType!==1||Fe.nodeName!=="SCRIPT")&&ve.appendChild(Me(Fe,Te));return we.nodeType===1&&(we.nodeName==="CANVAS"?(ve.width=we.width,ve.height=we.height,ve.getContext("2d").drawImage(we,0,0)):(we.nodeName==="TEXTAREA"||we.nodeName==="SELECT")&&(ve.value=we.value),ve.addEventListener("load",function(){ve.scrollTop=we.scrollTop,ve.scrollLeft=we.scrollLeft},!0)),ve},D=function(we,Te){if(Ue(we)==="number")return we*72/96/Te;var ve={};for(var Fe in we)ve[Fe]=we[Fe]*72/96/Te;return ve},Ve=function(we,Te){return Math.floor(we*Te/72*96)}},"./src/worker.js":function(g,I,v){"use strict";v.r(I);var z=v("./node_modules/core-js/modules/es.object.assign.js"),E=v.n(z),M=v("./node_modules/core-js/modules/es.array.map.js"),N=v.n(M),T=v("./node_modules/core-js/modules/es.object.keys.js"),L=v.n(T),ee=v("./node_modules/core-js/modules/es.array.concat.js"),R=v.n(ee),le=v("./node_modules/core-js/modules/es.object.to-string.js"),X=v.n(le),q=v("./node_modules/core-js/modules/es.regexp.to-string.js"),W=v.n(q),K=v("./node_modules/core-js/modules/es.function.name.js"),se=v.n(K),fe=v("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Oe=v.n(fe),Se=v("jspdf"),Ue=v.n(Se),J=v("html2canvas"),ue=v.n(J),D=v("./src/utils.js"),Ve=v("./node_modules/es6-promise/dist/es6-promise.js"),Me=v.n(Ve),we=Me().Promise,Te=function ve(Fe){var de=Object.assign(ve.convert(we.resolve()),JSON.parse(JSON.stringify(ve.template))),Ee=ve.convert(we.resolve(),de);return Ee=Ee.setProgress(1,ve,1,[ve]),Ee=Ee.set(Fe),Ee};Te.prototype=Object.create(we.prototype),Te.prototype.constructor=Te,Te.convert=function(Fe,de){return Fe.__proto__=de||Te.prototype,Fe},Te.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],image:{type:"jpeg",quality:.95},enableLinks:!0,html2canvas:{},jsPDF:{}}},Te.prototype.from=function(Fe,de){function Ee(tt){switch((0,D.objType)(tt)){case"string":return"string";case"element":return tt.nodeName.toLowerCase&&tt.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(de=de||Ee(Fe),de){case"string":return this.set({src:(0,D.createElement)("div",{innerHTML:Fe})});case"element":return this.set({src:Fe});case"canvas":return this.set({canvas:Fe});case"img":return this.set({img:Fe});default:return this.error("Unknown source type.")}})},Te.prototype.to=function(Fe){switch(Fe){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},Te.prototype.toContainer=function(){var Fe=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Fe).then(function(){var Ee={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},tt={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Ee.opacity=0;var it=(0,D.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,D.createElement)("div",{className:"html2pdf__overlay",style:Ee}),this.prop.container=(0,D.createElement)("div",{className:"html2pdf__container",style:tt}),this.prop.container.appendChild(it),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},Te.prototype.toCanvas=function(){var Fe=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Fe).then(function(){var Ee=Object.assign({},this.opt.html2canvas);return delete Ee.onrendered,J(this.prop.container,Ee)}).then(function(Ee){var tt=this.opt.html2canvas.onrendered||function(){};tt(Ee),this.prop.canvas=Ee,document.body.removeChild(this.prop.overlay)})},Te.prototype.toImg=function(){var Fe=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(Fe).then(function(){var Ee=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Ee})},Te.prototype.toPdf=function(){var Fe=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Fe).then(function(){var Ee=this.prop.canvas,tt=this.opt,it=Ee.height,Je=Math.floor(Ee.width*this.prop.pageSize.inner.ratio),et=Math.ceil(it/Je),Bt=this.prop.pageSize.inner.height,Lt=document.createElement("canvas"),Nt=Lt.getContext("2d");Lt.width=Ee.width,Lt.height=Je,this.prop.pdf=this.prop.pdf||new Se.jsPDF(tt.jsPDF);for(var ur=0;ur<et;ur++){ur===et-1&&it%Je!==0&&(Lt.height=it%Je,Bt=Lt.height*this.prop.pageSize.inner.width/Lt.width);var ar=Lt.width,Cr=Lt.height;Nt.fillStyle="white",Nt.fillRect(0,0,ar,Cr),Nt.drawImage(Ee,0,ur*Je,ar,Cr,0,0,ar,Cr),ur&&this.prop.pdf.addPage();var sr=Lt.toDataURL("image/"+tt.image.type,tt.image.quality);this.prop.pdf.addImage(sr,tt.image.type,tt.margin[1],tt.margin[0],this.prop.pageSize.inner.width,Bt)}})},Te.prototype.output=function(Fe,de,Ee){return Ee=Ee||"pdf",Ee.toLowerCase()==="img"||Ee.toLowerCase()==="image"?this.outputImg(Fe,de):this.outputPdf(Fe,de)},Te.prototype.outputPdf=function(Fe,de){var Ee=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Ee).then(function(){return this.prop.pdf.output(Fe,de)})},Te.prototype.outputImg=function(Fe,de){var Ee=[function(){return this.prop.img||this.toImg()}];return this.thenList(Ee).then(function(){switch(Fe){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+Fe+'" is not supported.'}})},Te.prototype.save=function(Fe){var de=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(de).set(Fe?{filename:Fe}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Te.prototype.set=function(Fe){if((0,D.objType)(Fe)!=="object")return this;var de=Object.keys(Fe||{}).map(function(Ee){switch(Ee){case"margin":return this.setMargin.bind(this,Fe.margin);case"jsPDF":return function(){return this.opt.jsPDF=Fe.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Fe.pageSize);default:return Ee in Te.template.prop?function(){this.prop[Ee]=Fe[Ee]}:function(){this.opt[Ee]=Fe[Ee]}}},this);return this.then(function(){return this.thenList(de)})},Te.prototype.get=function(Fe,de){return this.then(function(){var tt=Fe in Te.template.prop?this.prop[Fe]:this.opt[Fe];return de?de(tt):tt})},Te.prototype.setMargin=function(Fe){return this.then(function(){switch((0,D.objType)(Fe)){case"number":Fe=[Fe,Fe,Fe,Fe];case"array":if(Fe.length===2&&(Fe=[Fe[0],Fe[1],Fe[0],Fe[1]]),Fe.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Fe}).then(this.setPageSize)},Te.prototype.setPageSize=function(Fe){return this.then(function(){Fe=Fe||Se.jsPDF.getPageSize(this.opt.jsPDF),Fe.hasOwnProperty("inner")||(Fe.inner={width:Fe.width-this.opt.margin[1]-this.opt.margin[3],height:Fe.height-this.opt.margin[0]-this.opt.margin[2]},Fe.inner.px={width:(0,D.toPx)(Fe.inner.width,Fe.k),height:(0,D.toPx)(Fe.inner.height,Fe.k)},Fe.inner.ratio=Fe.inner.height/Fe.inner.width),this.prop.pageSize=Fe})},Te.prototype.setProgress=function(Fe,de,Ee,tt){return Fe!=null&&(this.progress.val=Fe),de!=null&&(this.progress.state=de),Ee!=null&&(this.progress.n=Ee),tt!=null&&(this.progress.stack=tt),this.progress.ratio=this.progress.val/this.progress.state,this},Te.prototype.updateProgress=function(Fe,de,Ee,tt){return this.setProgress(Fe?this.progress.val+Fe:null,de||null,Ee?this.progress.n+Ee:null,tt?this.progress.stack.concat(tt):null)},Te.prototype.then=function(Fe,de){var Ee=this;return this.thenCore(Fe,de,function(it,Je){return Ee.updateProgress(null,null,1,[it]),we.prototype.then.call(this,function(Bt){return Ee.updateProgress(null,it),Bt}).then(it,Je).then(function(Bt){return Ee.updateProgress(1),Bt})})},Te.prototype.thenCore=function(Fe,de,Ee){Ee=Ee||we.prototype.then;var tt=this;Fe&&(Fe=Fe.bind(tt)),de&&(de=de.bind(tt));var it=we.toString().indexOf("[native code]")!==-1&&we.name==="Promise",Je=it?tt:Te.convert(Object.assign({},tt),we.prototype),et=Ee.call(Je,Fe,de);return Te.convert(et,tt.__proto__)},Te.prototype.thenExternal=function(Fe,de){return we.prototype.then.call(this,Fe,de)},Te.prototype.thenList=function(Fe){var de=this;return Fe.forEach(function(tt){de=de.thenCore(tt)}),de},Te.prototype.catch=function(ve){ve&&(ve=ve.bind(this));var Fe=we.prototype.catch.call(this,ve);return Te.convert(Fe,this)},Te.prototype.catchExternal=function(Fe){return we.prototype.catch.call(this,Fe)},Te.prototype.error=function(Fe){return this.then(function(){throw new Error(Fe)})},Te.prototype.using=Te.prototype.set,Te.prototype.saveAs=Te.prototype.save,Te.prototype.export=Te.prototype.output,Te.prototype.run=Te.prototype.then,I.default=Te},"./node_modules/core-js/internals/a-function.js":function(g){g.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},"./node_modules/core-js/internals/a-possible-prototype.js":function(g,I,v){var z=v("./node_modules/core-js/internals/is-object.js");g.exports=function(E){if(!z(E)&&E!==null)throw TypeError("Can't set "+String(E)+" as a prototype");return E}},"./node_modules/core-js/internals/add-to-unscopables.js":function(g,I,v){var z=v("./node_modules/core-js/internals/well-known-symbol.js"),E=v("./node_modules/core-js/internals/object-create.js"),M=v("./node_modules/core-js/internals/object-define-property.js"),N=z("unscopables"),T=Array.prototype;T[N]==null&&M.f(T,N,{configurable:!0,value:E(null)}),g.exports=function(L){T[N][L]=!0}},"./node_modules/core-js/internals/an-object.js":function(g,I,v){var z=v("./node_modules/core-js/internals/is-object.js");g.exports=function(E){if(!z(E))throw TypeError(String(E)+" is not an object");return E}},"./node_modules/core-js/internals/array-for-each.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/array-iteration.js").forEach,E=v("./node_modules/core-js/internals/array-method-is-strict.js"),M=E("forEach");g.exports=M?[].forEach:function(T){return z(this,T,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(g,I,v){var z=v("./node_modules/core-js/internals/to-indexed-object.js"),E=v("./node_modules/core-js/internals/to-length.js"),M=v("./node_modules/core-js/internals/to-absolute-index.js"),N=function(T){return function(L,ee,R){var le=z(L),X=E(le.length),q=M(R,X),W;if(T&&ee!=ee){for(;X>q;)if(W=le[q++],W!=W)return!0}else for(;X>q;q++)if((T||q in le)&&le[q]===ee)return T||q||0;return!T&&-1}};g.exports={includes:N(!0),indexOf:N(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(g,I,v){var z=v("./node_modules/core-js/internals/function-bind-context.js"),E=v("./node_modules/core-js/internals/indexed-object.js"),M=v("./node_modules/core-js/internals/to-object.js"),N=v("./node_modules/core-js/internals/to-length.js"),T=v("./node_modules/core-js/internals/array-species-create.js"),L=[].push,ee=function(R){var le=R==1,X=R==2,q=R==3,W=R==4,K=R==6,se=R==7,fe=R==5||K;return function(Oe,Se,Ue,J){for(var ue=M(Oe),D=E(ue),Ve=z(Se,Ue,3),Me=N(D.length),we=0,Te=J||T,ve=le?Te(Oe,Me):X||se?Te(Oe,0):void 0,Fe,de;Me>we;we++)if((fe||we in D)&&(Fe=D[we],de=Ve(Fe,we,ue),R))if(le)ve[we]=de;else if(de)switch(R){case 3:return!0;case 5:return Fe;case 6:return we;case 2:L.call(ve,Fe)}else switch(R){case 4:return!1;case 7:L.call(ve,Fe)}return K?-1:q||W?W:ve}};g.exports={forEach:ee(0),map:ee(1),filter:ee(2),some:ee(3),every:ee(4),find:ee(5),findIndex:ee(6),filterReject:ee(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(g,I,v){var z=v("./node_modules/core-js/internals/fails.js"),E=v("./node_modules/core-js/internals/well-known-symbol.js"),M=v("./node_modules/core-js/internals/engine-v8-version.js"),N=E("species");g.exports=function(T){return M>=51||!z(function(){var L=[],ee=L.constructor={};return ee[N]=function(){return{foo:1}},L[T](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/fails.js");g.exports=function(E,M){var N=[][E];return!!N&&z(function(){N.call(null,M||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(g,I,v){var z=v("./node_modules/core-js/internals/is-object.js"),E=v("./node_modules/core-js/internals/is-array.js"),M=v("./node_modules/core-js/internals/well-known-symbol.js"),N=M("species");g.exports=function(T){var L;return E(T)&&(L=T.constructor,typeof L=="function"&&(L===Array||E(L.prototype))?L=void 0:z(L)&&(L=L[N],L===null&&(L=void 0))),L===void 0?Array:L}},"./node_modules/core-js/internals/array-species-create.js":function(g,I,v){var z=v("./node_modules/core-js/internals/array-species-constructor.js");g.exports=function(E,M){return new(z(E))(M===0?0:M)}},"./node_modules/core-js/internals/classof-raw.js":function(g){var I={}.toString;g.exports=function(v){return I.call(v).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(g,I,v){var z=v("./node_modules/core-js/internals/to-string-tag-support.js"),E=v("./node_modules/core-js/internals/classof-raw.js"),M=v("./node_modules/core-js/internals/well-known-symbol.js"),N=M("toStringTag"),T=E(function(){return arguments}())=="Arguments",L=function(ee,R){try{return ee[R]}catch(le){}};g.exports=z?E:function(ee){var R,le,X;return ee===void 0?"Undefined":ee===null?"Null":typeof(le=L(R=Object(ee),N))=="string"?le:T?E(R):(X=E(R))=="Object"&&typeof R.callee=="function"?"Arguments":X}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(g,I,v){var z=v("./node_modules/core-js/internals/has.js"),E=v("./node_modules/core-js/internals/own-keys.js"),M=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),N=v("./node_modules/core-js/internals/object-define-property.js");g.exports=function(T,L){for(var ee=E(L),R=N.f,le=M.f,X=0;X<ee.length;X++){var q=ee[X];z(T,q)||R(T,q,le(L,q))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(g,I,v){var z=v("./node_modules/core-js/internals/fails.js");g.exports=!z(function(){function E(){}return E.prototype.constructor=null,Object.getPrototypeOf(new E)!==E.prototype})},"./node_modules/core-js/internals/create-html.js":function(g,I,v){var z=v("./node_modules/core-js/internals/require-object-coercible.js"),E=v("./node_modules/core-js/internals/to-string.js"),M=/"/g;g.exports=function(N,T,L,ee){var R=E(z(N)),le="<"+T;return L!==""&&(le+=" "+L+'="'+E(ee).replace(M,"&quot;")+'"'),le+">"+R+"</"+T+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,E=v("./node_modules/core-js/internals/object-create.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js"),N=v("./node_modules/core-js/internals/set-to-string-tag.js"),T=v("./node_modules/core-js/internals/iterators.js"),L=function(){return this};g.exports=function(ee,R,le){var X=R+" Iterator";return ee.prototype=E(z,{next:M(1,le)}),N(ee,X,!1,!0),T[X]=L,ee}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(g,I,v){var z=v("./node_modules/core-js/internals/descriptors.js"),E=v("./node_modules/core-js/internals/object-define-property.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js");g.exports=z?function(N,T,L){return E.f(N,T,M(1,L))}:function(N,T,L){return N[T]=L,N}},"./node_modules/core-js/internals/create-property-descriptor.js":function(g){g.exports=function(I,v){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:v}}},"./node_modules/core-js/internals/create-property.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/to-property-key.js"),E=v("./node_modules/core-js/internals/object-define-property.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js");g.exports=function(N,T,L){var ee=z(T);ee in N?E.f(N,ee,M(0,L)):N[ee]=L}},"./node_modules/core-js/internals/define-iterator.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/export.js"),E=v("./node_modules/core-js/internals/create-iterator-constructor.js"),M=v("./node_modules/core-js/internals/object-get-prototype-of.js"),N=v("./node_modules/core-js/internals/object-set-prototype-of.js"),T=v("./node_modules/core-js/internals/set-to-string-tag.js"),L=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),ee=v("./node_modules/core-js/internals/redefine.js"),R=v("./node_modules/core-js/internals/well-known-symbol.js"),le=v("./node_modules/core-js/internals/is-pure.js"),X=v("./node_modules/core-js/internals/iterators.js"),q=v("./node_modules/core-js/internals/iterators-core.js"),W=q.IteratorPrototype,K=q.BUGGY_SAFARI_ITERATORS,se=R("iterator"),fe="keys",Oe="values",Se="entries",Ue=function(){return this};g.exports=function(J,ue,D,Ve,Me,we,Te){E(D,ue,Ve);var ve=function(Nt){if(Nt===Me&&it)return it;if(!K&&Nt in Ee)return Ee[Nt];switch(Nt){case fe:return function(){return new D(this,Nt)};case Oe:return function(){return new D(this,Nt)};case Se:return function(){return new D(this,Nt)}}return function(){return new D(this)}},Fe=ue+" Iterator",de=!1,Ee=J.prototype,tt=Ee[se]||Ee["@@iterator"]||Me&&Ee[Me],it=!K&&tt||ve(Me),Je=ue=="Array"&&Ee.entries||tt,et,Bt,Lt;if(Je&&(et=M(Je.call(new J)),W!==Object.prototype&&et.next&&(!le&&M(et)!==W&&(N?N(et,W):typeof et[se]!="function"&&L(et,se,Ue)),T(et,Fe,!0,!0),le&&(X[Fe]=Ue))),Me==Oe&&tt&&tt.name!==Oe&&(de=!0,it=function(){return tt.call(this)}),(!le||Te)&&Ee[se]!==it&&L(Ee,se,it),X[ue]=it,Me)if(Bt={values:ve(Oe),keys:we?it:ve(fe),entries:ve(Se)},Te)for(Lt in Bt)(K||de||!(Lt in Ee))&&ee(Ee,Lt,Bt[Lt]);else z({target:ue,proto:!0,forced:K||de},Bt);return Bt}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(g,I,v){var z=v("./node_modules/core-js/internals/path.js"),E=v("./node_modules/core-js/internals/has.js"),M=v("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),N=v("./node_modules/core-js/internals/object-define-property.js").f;g.exports=function(T){var L=z.Symbol||(z.Symbol={});E(L,T)||N(L,T,{value:M.f(T)})}},"./node_modules/core-js/internals/descriptors.js":function(g,I,v){var z=v("./node_modules/core-js/internals/fails.js");g.exports=!z(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(g,I,v){var z=v("./node_modules/core-js/internals/global.js"),E=v("./node_modules/core-js/internals/is-object.js"),M=z.document,N=E(M)&&E(M.createElement);g.exports=function(T){return N?M.createElement(T):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(g){g.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},"./node_modules/core-js/internals/engine-user-agent.js":function(g,I,v){var z=v("./node_modules/core-js/internals/get-built-in.js");g.exports=z("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(g,I,v){var z=v("./node_modules/core-js/internals/global.js"),E=v("./node_modules/core-js/internals/engine-user-agent.js"),M=z.process,N=z.Deno,T=M&&M.versions||N&&N.version,L=T&&T.v8,ee,R;L?(ee=L.split("."),R=ee[0]<4?1:ee[0]+ee[1]):E&&(ee=E.match(/Edge\/(\d+)/),(!ee||ee[1]>=74)&&(ee=E.match(/Chrome\/(\d+)/),ee&&(R=ee[1]))),g.exports=R&&+R},"./node_modules/core-js/internals/enum-bug-keys.js":function(g){g.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(g,I,v){var z=v("./node_modules/core-js/internals/global.js"),E=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,M=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),N=v("./node_modules/core-js/internals/redefine.js"),T=v("./node_modules/core-js/internals/set-global.js"),L=v("./node_modules/core-js/internals/copy-constructor-properties.js"),ee=v("./node_modules/core-js/internals/is-forced.js");g.exports=function(R,le){var X=R.target,q=R.global,W=R.stat,K,se,fe,Oe,Se,Ue;if(q?se=z:W?se=z[X]||T(X,{}):se=(z[X]||{}).prototype,se)for(fe in le){if(Se=le[fe],R.noTargetGet?(Ue=E(se,fe),Oe=Ue&&Ue.value):Oe=se[fe],K=ee(q?fe:X+(W?".":"#")+fe,R.forced),!K&&Oe!==void 0){if(typeof Se==typeof Oe)continue;L(Se,Oe)}(R.sham||Oe&&Oe.sham)&&M(Se,"sham",!0),N(se,fe,Se,R)}}},"./node_modules/core-js/internals/fails.js":function(g){g.exports=function(I){try{return!!I()}catch(v){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(g,I,v){var z=v("./node_modules/core-js/internals/a-function.js");g.exports=function(E,M,N){if(z(E),M===void 0)return E;switch(N){case 0:return function(){return E.call(M)};case 1:return function(T){return E.call(M,T)};case 2:return function(T,L){return E.call(M,T,L)};case 3:return function(T,L,ee){return E.call(M,T,L,ee)}}return function(){return E.apply(M,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(g,I,v){var z=v("./node_modules/core-js/internals/global.js"),E=function(M){return typeof M=="function"?M:void 0};g.exports=function(M,N){return arguments.length<2?E(z[M]):z[M]&&z[M][N]}},"./node_modules/core-js/internals/global.js":function(g){var I=function(v){return v&&v.Math==Math&&v};g.exports=I(typeof globalThis=="object"&&globalThis)||I(typeof window=="object"&&window)||I(typeof self=="object"&&self)||I(typeof x.g=="object"&&x.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(g,I,v){var z=v("./node_modules/core-js/internals/to-object.js"),E={}.hasOwnProperty;g.exports=Object.hasOwn||function(N,T){return E.call(z(N),T)}},"./node_modules/core-js/internals/hidden-keys.js":function(g){g.exports={}},"./node_modules/core-js/internals/html.js":function(g,I,v){var z=v("./node_modules/core-js/internals/get-built-in.js");g.exports=z("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(g,I,v){var z=v("./node_modules/core-js/internals/descriptors.js"),E=v("./node_modules/core-js/internals/fails.js"),M=v("./node_modules/core-js/internals/document-create-element.js");g.exports=!z&&!E(function(){return Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(g,I,v){var z=v("./node_modules/core-js/internals/fails.js"),E=v("./node_modules/core-js/internals/classof-raw.js"),M="".split;g.exports=z(function(){return!Object("z").propertyIsEnumerable(0)})?function(N){return E(N)=="String"?M.call(N,""):Object(N)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(g,I,v){var z=v("./node_modules/core-js/internals/is-object.js"),E=v("./node_modules/core-js/internals/object-set-prototype-of.js");g.exports=function(M,N,T){var L,ee;return E&&typeof(L=N.constructor)=="function"&&L!==T&&z(ee=L.prototype)&&ee!==T.prototype&&E(M,ee),M}},"./node_modules/core-js/internals/inspect-source.js":function(g,I,v){var z=v("./node_modules/core-js/internals/shared-store.js"),E=Function.toString;typeof z.inspectSource!="function"&&(z.inspectSource=function(M){return E.call(M)}),g.exports=z.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(g,I,v){var z=v("./node_modules/core-js/internals/native-weak-map.js"),E=v("./node_modules/core-js/internals/global.js"),M=v("./node_modules/core-js/internals/is-object.js"),N=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),T=v("./node_modules/core-js/internals/has.js"),L=v("./node_modules/core-js/internals/shared-store.js"),ee=v("./node_modules/core-js/internals/shared-key.js"),R=v("./node_modules/core-js/internals/hidden-keys.js"),le="Object already initialized",X=E.WeakMap,q,W,K,se=function(D){return K(D)?W(D):q(D,{})},fe=function(D){return function(Ve){var Me;if(!M(Ve)||(Me=W(Ve)).type!==D)throw TypeError("Incompatible receiver, "+D+" required");return Me}};if(z||L.state){var Oe=L.state||(L.state=new X),Se=Oe.get,Ue=Oe.has,J=Oe.set;q=function(D,Ve){if(Ue.call(Oe,D))throw new TypeError(le);return Ve.facade=D,J.call(Oe,D,Ve),Ve},W=function(D){return Se.call(Oe,D)||{}},K=function(D){return Ue.call(Oe,D)}}else{var ue=ee("state");R[ue]=!0,q=function(D,Ve){if(T(D,ue))throw new TypeError(le);return Ve.facade=D,N(D,ue,Ve),Ve},W=function(D){return T(D,ue)?D[ue]:{}},K=function(D){return T(D,ue)}}g.exports={set:q,get:W,has:K,enforce:se,getterFor:fe}},"./node_modules/core-js/internals/is-array.js":function(g,I,v){var z=v("./node_modules/core-js/internals/classof-raw.js");g.exports=Array.isArray||function(M){return z(M)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(g,I,v){var z=v("./node_modules/core-js/internals/fails.js"),E=/#|\.prototype\./,M=function(R,le){var X=T[N(R)];return X==ee?!0:X==L?!1:typeof le=="function"?z(le):!!le},N=M.normalize=function(R){return String(R).replace(E,".").toLowerCase()},T=M.data={},L=M.NATIVE="N",ee=M.POLYFILL="P";g.exports=M},"./node_modules/core-js/internals/is-object.js":function(g){g.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},"./node_modules/core-js/internals/is-pure.js":function(g){g.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(g,I,v){var z=v("./node_modules/core-js/internals/get-built-in.js"),E=v("./node_modules/core-js/internals/use-symbol-as-uid.js");g.exports=E?function(M){return typeof M=="symbol"}:function(M){var N=z("Symbol");return typeof N=="function"&&Object(M)instanceof N}},"./node_modules/core-js/internals/iterators-core.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/fails.js"),E=v("./node_modules/core-js/internals/object-get-prototype-of.js"),M=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),N=v("./node_modules/core-js/internals/has.js"),T=v("./node_modules/core-js/internals/well-known-symbol.js"),L=v("./node_modules/core-js/internals/is-pure.js"),ee=T("iterator"),R=!1,le=function(){return this},X,q,W;[].keys&&(W=[].keys(),"next"in W?(q=E(E(W)),q!==Object.prototype&&(X=q)):R=!0);var K=X==null||z(function(){var se={};return X[ee].call(se)!==se});K&&(X={}),(!L||K)&&!N(X,ee)&&M(X,ee,le),g.exports={IteratorPrototype:X,BUGGY_SAFARI_ITERATORS:R}},"./node_modules/core-js/internals/iterators.js":function(g){g.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(g,I,v){var z=v("./node_modules/core-js/internals/engine-v8-version.js"),E=v("./node_modules/core-js/internals/fails.js");g.exports=!!Object.getOwnPropertySymbols&&!E(function(){var M=Symbol();return!String(M)||!(Object(M)instanceof Symbol)||!Symbol.sham&&z&&z<41})},"./node_modules/core-js/internals/native-weak-map.js":function(g,I,v){var z=v("./node_modules/core-js/internals/global.js"),E=v("./node_modules/core-js/internals/inspect-source.js"),M=z.WeakMap;g.exports=typeof M=="function"&&/native code/.test(E(M))},"./node_modules/core-js/internals/object-assign.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/descriptors.js"),E=v("./node_modules/core-js/internals/fails.js"),M=v("./node_modules/core-js/internals/object-keys.js"),N=v("./node_modules/core-js/internals/object-get-own-property-symbols.js"),T=v("./node_modules/core-js/internals/object-property-is-enumerable.js"),L=v("./node_modules/core-js/internals/to-object.js"),ee=v("./node_modules/core-js/internals/indexed-object.js"),R=Object.assign,le=Object.defineProperty;g.exports=!R||E(function(){if(z&&R({b:1},R(le({},"a",{enumerable:!0,get:function(){le(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var X={},q={},W=Symbol(),K="abcdefghijklmnopqrst";return X[W]=7,K.split("").forEach(function(se){q[se]=se}),R({},X)[W]!=7||M(R({},q)).join("")!=K})?function(q,W){for(var K=L(q),se=arguments.length,fe=1,Oe=N.f,Se=T.f;se>fe;)for(var Ue=ee(arguments[fe++]),J=Oe?M(Ue).concat(Oe(Ue)):M(Ue),ue=J.length,D=0,Ve;ue>D;)Ve=J[D++],(!z||Se.call(Ue,Ve))&&(K[Ve]=Ue[Ve]);return K}:R},"./node_modules/core-js/internals/object-create.js":function(g,I,v){var z=v("./node_modules/core-js/internals/an-object.js"),E=v("./node_modules/core-js/internals/object-define-properties.js"),M=v("./node_modules/core-js/internals/enum-bug-keys.js"),N=v("./node_modules/core-js/internals/hidden-keys.js"),T=v("./node_modules/core-js/internals/html.js"),L=v("./node_modules/core-js/internals/document-create-element.js"),ee=v("./node_modules/core-js/internals/shared-key.js"),R=">",le="<",X="prototype",q="script",W=ee("IE_PROTO"),K=function(){},se=function(J){return le+q+R+J+le+"/"+q+R},fe=function(J){J.write(se("")),J.close();var ue=J.parentWindow.Object;return J=null,ue},Oe=function(){var J=L("iframe"),ue="java"+q+":",D;if(J.style)return J.style.display="none",T.appendChild(J),J.src=String(ue),D=J.contentWindow.document,D.open(),D.write(se("document.F=Object")),D.close(),D.F},Se,Ue=function(){try{Se=new ActiveXObject("htmlfile")}catch(ue){}Ue=document.domain&&Se?fe(Se):Oe()||fe(Se);for(var J=M.length;J--;)delete Ue[X][M[J]];return Ue()};N[W]=!0,g.exports=Object.create||function(ue,D){var Ve;return ue!==null?(K[X]=z(ue),Ve=new K,K[X]=null,Ve[W]=ue):Ve=Ue(),D===void 0?Ve:E(Ve,D)}},"./node_modules/core-js/internals/object-define-properties.js":function(g,I,v){var z=v("./node_modules/core-js/internals/descriptors.js"),E=v("./node_modules/core-js/internals/object-define-property.js"),M=v("./node_modules/core-js/internals/an-object.js"),N=v("./node_modules/core-js/internals/object-keys.js");g.exports=z?Object.defineProperties:function(L,ee){M(L);for(var R=N(ee),le=R.length,X=0,q;le>X;)E.f(L,q=R[X++],ee[q]);return L}},"./node_modules/core-js/internals/object-define-property.js":function(g,I,v){var z=v("./node_modules/core-js/internals/descriptors.js"),E=v("./node_modules/core-js/internals/ie8-dom-define.js"),M=v("./node_modules/core-js/internals/an-object.js"),N=v("./node_modules/core-js/internals/to-property-key.js"),T=Object.defineProperty;I.f=z?T:function(ee,R,le){if(M(ee),R=N(R),M(le),E)try{return T(ee,R,le)}catch(X){}if("get"in le||"set"in le)throw TypeError("Accessors not supported");return"value"in le&&(ee[R]=le.value),ee}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(g,I,v){var z=v("./node_modules/core-js/internals/descriptors.js"),E=v("./node_modules/core-js/internals/object-property-is-enumerable.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js"),N=v("./node_modules/core-js/internals/to-indexed-object.js"),T=v("./node_modules/core-js/internals/to-property-key.js"),L=v("./node_modules/core-js/internals/has.js"),ee=v("./node_modules/core-js/internals/ie8-dom-define.js"),R=Object.getOwnPropertyDescriptor;I.f=z?R:function(X,q){if(X=N(X),q=T(q),ee)try{return R(X,q)}catch(W){}if(L(X,q))return M(!E.f.call(X,q),X[q])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(g,I,v){var z=v("./node_modules/core-js/internals/to-indexed-object.js"),E=v("./node_modules/core-js/internals/object-get-own-property-names.js").f,M={}.toString,N=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function(L){try{return E(L)}catch(ee){return N.slice()}};g.exports.f=function(ee){return N&&M.call(ee)=="[object Window]"?T(ee):E(z(ee))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(g,I,v){var z=v("./node_modules/core-js/internals/object-keys-internal.js"),E=v("./node_modules/core-js/internals/enum-bug-keys.js"),M=E.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(T){return z(T,M)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(g,I){I.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(g,I,v){var z=v("./node_modules/core-js/internals/has.js"),E=v("./node_modules/core-js/internals/to-object.js"),M=v("./node_modules/core-js/internals/shared-key.js"),N=v("./node_modules/core-js/internals/correct-prototype-getter.js"),T=M("IE_PROTO"),L=Object.prototype;g.exports=N?Object.getPrototypeOf:function(ee){return ee=E(ee),z(ee,T)?ee[T]:typeof ee.constructor=="function"&&ee instanceof ee.constructor?ee.constructor.prototype:ee instanceof Object?L:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(g,I,v){var z=v("./node_modules/core-js/internals/has.js"),E=v("./node_modules/core-js/internals/to-indexed-object.js"),M=v("./node_modules/core-js/internals/array-includes.js").indexOf,N=v("./node_modules/core-js/internals/hidden-keys.js");g.exports=function(T,L){var ee=E(T),R=0,le=[],X;for(X in ee)!z(N,X)&&z(ee,X)&&le.push(X);for(;L.length>R;)z(ee,X=L[R++])&&(~M(le,X)||le.push(X));return le}},"./node_modules/core-js/internals/object-keys.js":function(g,I,v){var z=v("./node_modules/core-js/internals/object-keys-internal.js"),E=v("./node_modules/core-js/internals/enum-bug-keys.js");g.exports=Object.keys||function(N){return z(N,E)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(g,I){"use strict";var v={}.propertyIsEnumerable,z=Object.getOwnPropertyDescriptor,E=z&&!v.call({1:2},1);I.f=E?function(N){var T=z(this,N);return!!T&&T.enumerable}:v},"./node_modules/core-js/internals/object-set-prototype-of.js":function(g,I,v){var z=v("./node_modules/core-js/internals/an-object.js"),E=v("./node_modules/core-js/internals/a-possible-prototype.js");g.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var M=!1,N={},T;try{T=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,T.call(N,[]),M=N instanceof Array}catch(L){}return function(ee,R){return z(ee),E(R),M?T.call(ee,R):ee.__proto__=R,ee}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/to-string-tag-support.js"),E=v("./node_modules/core-js/internals/classof.js");g.exports=z?{}.toString:function(){return"[object "+E(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(g,I,v){var z=v("./node_modules/core-js/internals/is-object.js");g.exports=function(E,M){var N,T;if(M==="string"&&typeof(N=E.toString)=="function"&&!z(T=N.call(E))||typeof(N=E.valueOf)=="function"&&!z(T=N.call(E))||M!=="string"&&typeof(N=E.toString)=="function"&&!z(T=N.call(E)))return T;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(g,I,v){var z=v("./node_modules/core-js/internals/get-built-in.js"),E=v("./node_modules/core-js/internals/object-get-own-property-names.js"),M=v("./node_modules/core-js/internals/object-get-own-property-symbols.js"),N=v("./node_modules/core-js/internals/an-object.js");g.exports=z("Reflect","ownKeys")||function(L){var ee=E.f(N(L)),R=M.f;return R?ee.concat(R(L)):ee}},"./node_modules/core-js/internals/path.js":function(g,I,v){var z=v("./node_modules/core-js/internals/global.js");g.exports=z},"./node_modules/core-js/internals/redefine.js":function(g,I,v){var z=v("./node_modules/core-js/internals/global.js"),E=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),M=v("./node_modules/core-js/internals/has.js"),N=v("./node_modules/core-js/internals/set-global.js"),T=v("./node_modules/core-js/internals/inspect-source.js"),L=v("./node_modules/core-js/internals/internal-state.js"),ee=L.get,R=L.enforce,le=String(String).split("String");(g.exports=function(X,q,W,K){var se=K?!!K.unsafe:!1,fe=K?!!K.enumerable:!1,Oe=K?!!K.noTargetGet:!1,Se;if(typeof W=="function"&&(typeof q=="string"&&!M(W,"name")&&E(W,"name",q),Se=R(W),Se.source||(Se.source=le.join(typeof q=="string"?q:""))),X===z){fe?X[q]=W:N(q,W);return}else se?!Oe&&X[q]&&(fe=!0):delete X[q];fe?X[q]=W:E(X,q,W)})(Function.prototype,"toString",function(){return typeof this=="function"&&ee(this).source||T(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/an-object.js");g.exports=function(){var E=z(this),M="";return E.global&&(M+="g"),E.ignoreCase&&(M+="i"),E.multiline&&(M+="m"),E.dotAll&&(M+="s"),E.unicode&&(M+="u"),E.sticky&&(M+="y"),M}},"./node_modules/core-js/internals/require-object-coercible.js":function(g){g.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},"./node_modules/core-js/internals/set-global.js":function(g,I,v){var z=v("./node_modules/core-js/internals/global.js");g.exports=function(E,M){try{Object.defineProperty(z,E,{value:M,configurable:!0,writable:!0})}catch(N){z[E]=M}return M}},"./node_modules/core-js/internals/set-to-string-tag.js":function(g,I,v){var z=v("./node_modules/core-js/internals/object-define-property.js").f,E=v("./node_modules/core-js/internals/has.js"),M=v("./node_modules/core-js/internals/well-known-symbol.js"),N=M("toStringTag");g.exports=function(T,L,ee){T&&!E(T=ee?T:T.prototype,N)&&z(T,N,{configurable:!0,value:L})}},"./node_modules/core-js/internals/shared-key.js":function(g,I,v){var z=v("./node_modules/core-js/internals/shared.js"),E=v("./node_modules/core-js/internals/uid.js"),M=z("keys");g.exports=function(N){return M[N]||(M[N]=E(N))}},"./node_modules/core-js/internals/shared-store.js":function(g,I,v){var z=v("./node_modules/core-js/internals/global.js"),E=v("./node_modules/core-js/internals/set-global.js"),M="__core-js_shared__",N=z[M]||E(M,{});g.exports=N},"./node_modules/core-js/internals/shared.js":function(g,I,v){var z=v("./node_modules/core-js/internals/is-pure.js"),E=v("./node_modules/core-js/internals/shared-store.js");(g.exports=function(M,N){return E[M]||(E[M]=N!==void 0?N:{})})("versions",[]).push({version:"3.16.0",mode:z?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(g,I,v){var z=v("./node_modules/core-js/internals/fails.js");g.exports=function(E){return z(function(){var M=""[E]('"');return M!==M.toLowerCase()||M.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(g,I,v){var z=v("./node_modules/core-js/internals/to-integer.js"),E=v("./node_modules/core-js/internals/to-string.js"),M=v("./node_modules/core-js/internals/require-object-coercible.js"),N=function(T){return function(L,ee){var R=E(M(L)),le=z(ee),X=R.length,q,W;return le<0||le>=X?T?"":void 0:(q=R.charCodeAt(le),q<55296||q>56319||le+1===X||(W=R.charCodeAt(le+1))<56320||W>57343?T?R.charAt(le):q:T?R.slice(le,le+2):(q-55296<<10)+(W-56320)+65536)}};g.exports={codeAt:N(!1),charAt:N(!0)}},"./node_modules/core-js/internals/string-trim.js":function(g,I,v){var z=v("./node_modules/core-js/internals/require-object-coercible.js"),E=v("./node_modules/core-js/internals/to-string.js"),M=v("./node_modules/core-js/internals/whitespaces.js"),N="["+M+"]",T=RegExp("^"+N+N+"*"),L=RegExp(N+N+"*$"),ee=function(R){return function(le){var X=E(z(le));return R&1&&(X=X.replace(T,"")),R&2&&(X=X.replace(L,"")),X}};g.exports={start:ee(1),end:ee(2),trim:ee(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(g,I,v){var z=v("./node_modules/core-js/internals/to-integer.js"),E=Math.max,M=Math.min;g.exports=function(N,T){var L=z(N);return L<0?E(L+T,0):M(L,T)}},"./node_modules/core-js/internals/to-indexed-object.js":function(g,I,v){var z=v("./node_modules/core-js/internals/indexed-object.js"),E=v("./node_modules/core-js/internals/require-object-coercible.js");g.exports=function(M){return z(E(M))}},"./node_modules/core-js/internals/to-integer.js":function(g){var I=Math.ceil,v=Math.floor;g.exports=function(z){return isNaN(z=+z)?0:(z>0?v:I)(z)}},"./node_modules/core-js/internals/to-length.js":function(g,I,v){var z=v("./node_modules/core-js/internals/to-integer.js"),E=Math.min;g.exports=function(M){return M>0?E(z(M),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(g,I,v){var z=v("./node_modules/core-js/internals/require-object-coercible.js");g.exports=function(E){return Object(z(E))}},"./node_modules/core-js/internals/to-primitive.js":function(g,I,v){var z=v("./node_modules/core-js/internals/is-object.js"),E=v("./node_modules/core-js/internals/is-symbol.js"),M=v("./node_modules/core-js/internals/ordinary-to-primitive.js"),N=v("./node_modules/core-js/internals/well-known-symbol.js"),T=N("toPrimitive");g.exports=function(L,ee){if(!z(L)||E(L))return L;var R=L[T],le;if(R!==void 0){if(ee===void 0&&(ee="default"),le=R.call(L,ee),!z(le)||E(le))return le;throw TypeError("Can't convert object to primitive value")}return ee===void 0&&(ee="number"),M(L,ee)}},"./node_modules/core-js/internals/to-property-key.js":function(g,I,v){var z=v("./node_modules/core-js/internals/to-primitive.js"),E=v("./node_modules/core-js/internals/is-symbol.js");g.exports=function(M){var N=z(M,"string");return E(N)?N:String(N)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(g,I,v){var z=v("./node_modules/core-js/internals/well-known-symbol.js"),E=z("toStringTag"),M={};M[E]="z",g.exports=String(M)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(g,I,v){var z=v("./node_modules/core-js/internals/is-symbol.js");g.exports=function(E){if(z(E))throw TypeError("Cannot convert a Symbol value to a string");return String(E)}},"./node_modules/core-js/internals/uid.js":function(g){var I=0,v=Math.random();g.exports=function(z){return"Symbol("+String(z===void 0?"":z)+")_"+(++I+v).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(g,I,v){var z=v("./node_modules/core-js/internals/native-symbol.js");g.exports=z&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(g,I,v){var z=v("./node_modules/core-js/internals/well-known-symbol.js");I.f=z},"./node_modules/core-js/internals/well-known-symbol.js":function(g,I,v){var z=v("./node_modules/core-js/internals/global.js"),E=v("./node_modules/core-js/internals/shared.js"),M=v("./node_modules/core-js/internals/has.js"),N=v("./node_modules/core-js/internals/uid.js"),T=v("./node_modules/core-js/internals/native-symbol.js"),L=v("./node_modules/core-js/internals/use-symbol-as-uid.js"),ee=E("wks"),R=z.Symbol,le=L?R:R&&R.withoutSetter||N;g.exports=function(X){return(!M(ee,X)||!(T||typeof ee[X]=="string"))&&(T&&M(R,X)?ee[X]=R[X]:ee[X]=le("Symbol."+X)),ee[X]}},"./node_modules/core-js/internals/whitespaces.js":function(g){g.exports=`
\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`},"./node_modules/core-js/modules/es.array.concat.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/export.js"),E=v("./node_modules/core-js/internals/fails.js"),M=v("./node_modules/core-js/internals/is-array.js"),N=v("./node_modules/core-js/internals/is-object.js"),T=v("./node_modules/core-js/internals/to-object.js"),L=v("./node_modules/core-js/internals/to-length.js"),ee=v("./node_modules/core-js/internals/create-property.js"),R=v("./node_modules/core-js/internals/array-species-create.js"),le=v("./node_modules/core-js/internals/array-method-has-species-support.js"),X=v("./node_modules/core-js/internals/well-known-symbol.js"),q=v("./node_modules/core-js/internals/engine-v8-version.js"),W=X("isConcatSpreadable"),K=9007199254740991,se="Maximum allowed index exceeded",fe=q>=51||!E(function(){var J=[];return J[W]=!1,J.concat()[0]!==J}),Oe=le("concat"),Se=function(J){if(!N(J))return!1;var ue=J[W];return ue!==void 0?!!ue:M(J)},Ue=!fe||!Oe;z({target:"Array",proto:!0,forced:Ue},{concat:function(ue){var D=T(this),Ve=R(D,0),Me=0,we,Te,ve,Fe,de;for(we=-1,ve=arguments.length;we<ve;we++)if(de=we===-1?D:arguments[we],Se(de)){if(Fe=L(de.length),Me+Fe>K)throw TypeError(se);for(Te=0;Te<Fe;Te++,Me++)Te in de&&ee(Ve,Me,de[Te])}else{if(Me>=K)throw TypeError(se);ee(Ve,Me++,de)}return Ve.length=Me,Ve}})},"./node_modules/core-js/modules/es.array.iterator.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/to-indexed-object.js"),E=v("./node_modules/core-js/internals/add-to-unscopables.js"),M=v("./node_modules/core-js/internals/iterators.js"),N=v("./node_modules/core-js/internals/internal-state.js"),T=v("./node_modules/core-js/internals/define-iterator.js"),L="Array Iterator",ee=N.set,R=N.getterFor(L);g.exports=T(Array,"Array",function(le,X){ee(this,{type:L,target:z(le),index:0,kind:X})},function(){var le=R(this),X=le.target,q=le.kind,W=le.index++;return!X||W>=X.length?(le.target=void 0,{value:void 0,done:!0}):q=="keys"?{value:W,done:!1}:q=="values"?{value:X[W],done:!1}:{value:[W,X[W]],done:!1}},"values"),M.Arguments=M.Array,E("keys"),E("values"),E("entries")},"./node_modules/core-js/modules/es.array.join.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/export.js"),E=v("./node_modules/core-js/internals/indexed-object.js"),M=v("./node_modules/core-js/internals/to-indexed-object.js"),N=v("./node_modules/core-js/internals/array-method-is-strict.js"),T=[].join,L=E!=Object,ee=N("join",",");z({target:"Array",proto:!0,forced:L||!ee},{join:function(le){return T.call(M(this),le===void 0?",":le)}})},"./node_modules/core-js/modules/es.array.map.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/export.js"),E=v("./node_modules/core-js/internals/array-iteration.js").map,M=v("./node_modules/core-js/internals/array-method-has-species-support.js"),N=M("map");z({target:"Array",proto:!0,forced:!N},{map:function(L){return E(this,L,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/export.js"),E=v("./node_modules/core-js/internals/is-object.js"),M=v("./node_modules/core-js/internals/is-array.js"),N=v("./node_modules/core-js/internals/to-absolute-index.js"),T=v("./node_modules/core-js/internals/to-length.js"),L=v("./node_modules/core-js/internals/to-indexed-object.js"),ee=v("./node_modules/core-js/internals/create-property.js"),R=v("./node_modules/core-js/internals/well-known-symbol.js"),le=v("./node_modules/core-js/internals/array-method-has-species-support.js"),X=le("slice"),q=R("species"),W=[].slice,K=Math.max;z({target:"Array",proto:!0,forced:!X},{slice:function(fe,Oe){var Se=L(this),Ue=T(Se.length),J=N(fe,Ue),ue=N(Oe===void 0?Ue:Oe,Ue),D,Ve,Me;if(M(Se)&&(D=Se.constructor,typeof D=="function"&&(D===Array||M(D.prototype))?D=void 0:E(D)&&(D=D[q],D===null&&(D=void 0)),D===Array||D===void 0))return W.call(Se,J,ue);for(Ve=new(D===void 0?Array:D)(K(ue-J,0)),Me=0;J<ue;J++,Me++)J in Se&&ee(Ve,Me,Se[J]);return Ve.length=Me,Ve}})},"./node_modules/core-js/modules/es.function.name.js":function(g,I,v){var z=v("./node_modules/core-js/internals/descriptors.js"),E=v("./node_modules/core-js/internals/object-define-property.js").f,M=Function.prototype,N=M.toString,T=/^\s*function ([^ (]*)/,L="name";z&&!(L in M)&&E(M,L,{configurable:!0,get:function(){try{return N.call(this).match(T)[1]}catch(ee){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/descriptors.js"),E=v("./node_modules/core-js/internals/global.js"),M=v("./node_modules/core-js/internals/is-forced.js"),N=v("./node_modules/core-js/internals/redefine.js"),T=v("./node_modules/core-js/internals/has.js"),L=v("./node_modules/core-js/internals/classof-raw.js"),ee=v("./node_modules/core-js/internals/inherit-if-required.js"),R=v("./node_modules/core-js/internals/is-symbol.js"),le=v("./node_modules/core-js/internals/to-primitive.js"),X=v("./node_modules/core-js/internals/fails.js"),q=v("./node_modules/core-js/internals/object-create.js"),W=v("./node_modules/core-js/internals/object-get-own-property-names.js").f,K=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,se=v("./node_modules/core-js/internals/object-define-property.js").f,fe=v("./node_modules/core-js/internals/string-trim.js").trim,Oe="Number",Se=E[Oe],Ue=Se.prototype,J=L(q(Ue))==Oe,ue=function(Te){if(R(Te))throw TypeError("Cannot convert a Symbol value to a number");var ve=le(Te,"number"),Fe,de,Ee,tt,it,Je,et,Bt;if(typeof ve=="string"&&ve.length>2){if(ve=fe(ve),Fe=ve.charCodeAt(0),Fe===43||Fe===45){if(de=ve.charCodeAt(2),de===88||de===120)return NaN}else if(Fe===48){switch(ve.charCodeAt(1)){case 66:case 98:Ee=2,tt=49;break;case 79:case 111:Ee=8,tt=55;break;default:return+ve}for(it=ve.slice(2),Je=it.length,et=0;et<Je;et++)if(Bt=it.charCodeAt(et),Bt<48||Bt>tt)return NaN;return parseInt(it,Ee)}}return+ve};if(M(Oe,!Se(" 0o1")||!Se("0b1")||Se("+0x1"))){for(var D=function(ve){var Fe=arguments.length<1?0:ve,de=this;return de instanceof D&&(J?X(function(){Ue.valueOf.call(de)}):L(de)!=Oe)?ee(new Se(ue(Fe)),de,D):ue(Fe)},Ve=z?W(Se):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Me=0,we;Ve.length>Me;Me++)T(Se,we=Ve[Me])&&!T(D,we)&&se(D,we,K(Se,we));D.prototype=Ue,Ue.constructor=D,N(E,Oe,D)}},"./node_modules/core-js/modules/es.object.assign.js":function(g,I,v){var z=v("./node_modules/core-js/internals/export.js"),E=v("./node_modules/core-js/internals/object-assign.js");z({target:"Object",stat:!0,forced:Object.assign!==E},{assign:E})},"./node_modules/core-js/modules/es.object.keys.js":function(g,I,v){var z=v("./node_modules/core-js/internals/export.js"),E=v("./node_modules/core-js/internals/to-object.js"),M=v("./node_modules/core-js/internals/object-keys.js"),N=v("./node_modules/core-js/internals/fails.js"),T=N(function(){M(1)});z({target:"Object",stat:!0,forced:T},{keys:function(ee){return M(E(ee))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(g,I,v){var z=v("./node_modules/core-js/internals/to-string-tag-support.js"),E=v("./node_modules/core-js/internals/redefine.js"),M=v("./node_modules/core-js/internals/object-to-string.js");z||E(Object.prototype,"toString",M,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/redefine.js"),E=v("./node_modules/core-js/internals/an-object.js"),M=v("./node_modules/core-js/internals/to-string.js"),N=v("./node_modules/core-js/internals/fails.js"),T=v("./node_modules/core-js/internals/regexp-flags.js"),L="toString",ee=RegExp.prototype,R=ee[L],le=N(function(){return R.call({source:"a",flags:"b"})!="/a/b"}),X=R.name!=L;(le||X)&&z(RegExp.prototype,L,function(){var W=E(this),K=M(W.source),se=W.flags,fe=M(se===void 0&&W instanceof RegExp&&!("flags"in ee)?T.call(W):se);return"/"+K+"/"+fe},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/string-multibyte.js").charAt,E=v("./node_modules/core-js/internals/to-string.js"),M=v("./node_modules/core-js/internals/internal-state.js"),N=v("./node_modules/core-js/internals/define-iterator.js"),T="String Iterator",L=M.set,ee=M.getterFor(T);N(String,"String",function(R){L(this,{type:T,string:E(R),index:0})},function(){var le=ee(this),X=le.string,q=le.index,W;return q>=X.length?{value:void 0,done:!0}:(W=z(X,q),le.index+=W.length,{value:W,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/export.js"),E=v("./node_modules/core-js/internals/create-html.js"),M=v("./node_modules/core-js/internals/string-html-forced.js");z({target:"String",proto:!0,forced:M("link")},{link:function(T){return E(this,"a","href",T)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/export.js"),E=v("./node_modules/core-js/internals/descriptors.js"),M=v("./node_modules/core-js/internals/global.js"),N=v("./node_modules/core-js/internals/has.js"),T=v("./node_modules/core-js/internals/is-object.js"),L=v("./node_modules/core-js/internals/object-define-property.js").f,ee=v("./node_modules/core-js/internals/copy-constructor-properties.js"),R=M.Symbol;if(E&&typeof R=="function"&&(!("description"in R.prototype)||R().description!==void 0)){var le={},X=function(){var Oe=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Se=this instanceof X?new R(Oe):Oe===void 0?R():R(Oe);return Oe===""&&(le[Se]=!0),Se};ee(X,R);var q=X.prototype=R.prototype;q.constructor=X;var W=q.toString,K=String(R("test"))=="Symbol(test)",se=/^Symbol\((.*)\)[^)]+$/;L(q,"description",{configurable:!0,get:function(){var Oe=T(this)?this.valueOf():this,Se=W.call(Oe);if(N(le,Oe))return"";var Ue=K?Se.slice(7,-1):Se.replace(se,"$1");return Ue===""?void 0:Ue}}),z({global:!0,forced:!0},{Symbol:X})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(g,I,v){var z=v("./node_modules/core-js/internals/define-well-known-symbol.js");z("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(g,I,v){"use strict";var z=v("./node_modules/core-js/internals/export.js"),E=v("./node_modules/core-js/internals/global.js"),M=v("./node_modules/core-js/internals/get-built-in.js"),N=v("./node_modules/core-js/internals/is-pure.js"),T=v("./node_modules/core-js/internals/descriptors.js"),L=v("./node_modules/core-js/internals/native-symbol.js"),ee=v("./node_modules/core-js/internals/fails.js"),R=v("./node_modules/core-js/internals/has.js"),le=v("./node_modules/core-js/internals/is-array.js"),X=v("./node_modules/core-js/internals/is-object.js"),q=v("./node_modules/core-js/internals/is-symbol.js"),W=v("./node_modules/core-js/internals/an-object.js"),K=v("./node_modules/core-js/internals/to-object.js"),se=v("./node_modules/core-js/internals/to-indexed-object.js"),fe=v("./node_modules/core-js/internals/to-property-key.js"),Oe=v("./node_modules/core-js/internals/to-string.js"),Se=v("./node_modules/core-js/internals/create-property-descriptor.js"),Ue=v("./node_modules/core-js/internals/object-create.js"),J=v("./node_modules/core-js/internals/object-keys.js"),ue=v("./node_modules/core-js/internals/object-get-own-property-names.js"),D=v("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Ve=v("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Me=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),we=v("./node_modules/core-js/internals/object-define-property.js"),Te=v("./node_modules/core-js/internals/object-property-is-enumerable.js"),ve=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),Fe=v("./node_modules/core-js/internals/redefine.js"),de=v("./node_modules/core-js/internals/shared.js"),Ee=v("./node_modules/core-js/internals/shared-key.js"),tt=v("./node_modules/core-js/internals/hidden-keys.js"),it=v("./node_modules/core-js/internals/uid.js"),Je=v("./node_modules/core-js/internals/well-known-symbol.js"),et=v("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Bt=v("./node_modules/core-js/internals/define-well-known-symbol.js"),Lt=v("./node_modules/core-js/internals/set-to-string-tag.js"),Nt=v("./node_modules/core-js/internals/internal-state.js"),ur=v("./node_modules/core-js/internals/array-iteration.js").forEach,ar=Ee("hidden"),Cr="Symbol",sr="prototype",G=Je("toPrimitive"),ft=Nt.set,F=Nt.getterFor(Cr),m=Object[sr],d=E.Symbol,C=M("JSON","stringify"),re=Me.f,Be=we.f,H=D.f,ie=Te.f,Qe=de("symbols"),xe=de("op-symbols"),ye=de("string-to-symbol-registry"),je=de("symbol-to-string-registry"),xt=de("wks"),he=E.QObject,st=!he||!he[sr]||!he[sr].findChild,Ye=T&&ee(function(){return Ue(Be({},"a",{get:function(){return Be(this,"a",{value:7}).a}})).a!=7})?function(Lr,mr,cr){var Kr=re(m,mr);Kr&&delete m[mr],Be(Lr,mr,cr),Kr&&Lr!==m&&Be(m,mr,Kr)}:Be,Ie=function(Lr,mr){var cr=Qe[Lr]=Ue(d[sr]);return ft(cr,{type:Cr,tag:Lr,description:mr}),T||(cr.description=mr),cr},Le=function(mr,cr,Kr){mr===m&&Le(xe,cr,Kr),W(mr);var fn=fe(cr);return W(Kr),R(Qe,fn)?(Kr.enumerable?(R(mr,ar)&&mr[ar][fn]&&(mr[ar][fn]=!1),Kr=Ue(Kr,{enumerable:Se(0,!1)})):(R(mr,ar)||Be(mr,ar,Se(1,{})),mr[ar][fn]=!0),Ye(mr,fn,Kr)):Be(mr,fn,Kr)},ct=function(mr,cr){W(mr);var Kr=se(cr),fn=J(Kr).concat(fr(Kr));return ur(fn,function(_n){(!T||kt.call(Kr,_n))&&Le(mr,_n,Kr[_n])}),mr},Ut=function(mr,cr){return cr===void 0?Ue(mr):ct(Ue(mr),cr)},kt=function(mr){var cr=fe(mr),Kr=ie.call(this,cr);return this===m&&R(Qe,cr)&&!R(xe,cr)?!1:Kr||!R(this,cr)||!R(Qe,cr)||R(this,ar)&&this[ar][cr]?Kr:!0},tr=function(mr,cr){var Kr=se(mr),fn=fe(cr);if(!(Kr===m&&R(Qe,fn)&&!R(xe,fn))){var _n=re(Kr,fn);return _n&&R(Qe,fn)&&!(R(Kr,ar)&&Kr[ar][fn])&&(_n.enumerable=!0),_n}},Dr=function(mr){var cr=H(se(mr)),Kr=[];return ur(cr,function(fn){!R(Qe,fn)&&!R(tt,fn)&&Kr.push(fn)}),Kr},fr=function(mr){var cr=mr===m,Kr=H(cr?xe:se(mr)),fn=[];return ur(Kr,function(_n){R(Qe,_n)&&(!cr||R(m,_n))&&fn.push(Qe[_n])}),fn};if(L||(d=function(){if(this instanceof d)throw TypeError("Symbol is not a constructor");var mr=!arguments.length||arguments[0]===void 0?void 0:Oe(arguments[0]),cr=it(mr),Kr=function(fn){this===m&&Kr.call(xe,fn),R(this,ar)&&R(this[ar],cr)&&(this[ar][cr]=!1),Ye(this,cr,Se(1,fn))};return T&&st&&Ye(m,cr,{configurable:!0,set:Kr}),Ie(cr,mr)},Fe(d[sr],"toString",function(){return F(this).tag}),Fe(d,"withoutSetter",function(Lr){return Ie(it(Lr),Lr)}),Te.f=kt,we.f=Le,Me.f=tr,ue.f=D.f=Dr,Ve.f=fr,et.f=function(Lr){return Ie(Je(Lr),Lr)},T&&(Be(d[sr],"description",{configurable:!0,get:function(){return F(this).description}}),N||Fe(m,"propertyIsEnumerable",kt,{unsafe:!0}))),z({global:!0,wrap:!0,forced:!L,sham:!L},{Symbol:d}),ur(J(xt),function(Lr){Bt(Lr)}),z({target:Cr,stat:!0,forced:!L},{for:function(Lr){var mr=Oe(Lr);if(R(ye,mr))return ye[mr];var cr=d(mr);return ye[mr]=cr,je[cr]=mr,cr},keyFor:function(mr){if(!q(mr))throw TypeError(mr+" is not a symbol");if(R(je,mr))return je[mr]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),z({target:"Object",stat:!0,forced:!L,sham:!T},{create:Ut,defineProperty:Le,defineProperties:ct,getOwnPropertyDescriptor:tr}),z({target:"Object",stat:!0,forced:!L},{getOwnPropertyNames:Dr,getOwnPropertySymbols:fr}),z({target:"Object",stat:!0,forced:ee(function(){Ve.f(1)})},{getOwnPropertySymbols:function(mr){return Ve.f(K(mr))}}),C){var Fr=!L||ee(function(){var Lr=d();return C([Lr])!="[null]"||C({a:Lr})!="{}"||C(Object(Lr))!="{}"});z({target:"JSON",stat:!0,forced:Fr},{stringify:function(mr,cr,Kr){for(var fn=[mr],_n=1,ln;arguments.length>_n;)fn.push(arguments[_n++]);if(ln=cr,!(!X(cr)&&mr===void 0||q(mr)))return le(cr)||(cr=function(xn,oi){if(typeof ln=="function"&&(oi=ln.call(this,xn,oi)),!q(oi))return oi}),fn[1]=cr,C.apply(null,fn)}})}d[sr][G]||ve(d[sr],G,d[sr].valueOf),Lt(d,Cr),tt[ar]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(g,I,v){var z=v("./node_modules/core-js/internals/global.js"),E=v("./node_modules/core-js/internals/dom-iterables.js"),M=v("./node_modules/core-js/internals/array-for-each.js"),N=v("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var T in E){var L=z[T],ee=L&&L.prototype;if(ee&&ee.forEach!==M)try{N(ee,"forEach",M)}catch(R){ee.forEach=M}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(g,I,v){var z=v("./node_modules/core-js/internals/global.js"),E=v("./node_modules/core-js/internals/dom-iterables.js"),M=v("./node_modules/core-js/modules/es.array.iterator.js"),N=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),T=v("./node_modules/core-js/internals/well-known-symbol.js"),L=T("iterator"),ee=T("toStringTag"),R=M.values;for(var le in E){var X=z[le],q=X&&X.prototype;if(q){if(q[L]!==R)try{N(q,L,R)}catch(K){q[L]=R}if(q[ee]||N(q,ee,le),E[le]){for(var W in M)if(q[W]!==M[W])try{N(q,W,M[W])}catch(K){q[W]=M[W]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(g){(function(I,v){g.exports=v()})(this,function(){"use strict";function I(he){var st=typeof he;return he!==null&&(st==="object"||st==="function")}function v(he){return typeof he=="function"}var z=void 0;Array.isArray?z=Array.isArray:z=function(he){return Object.prototype.toString.call(he)==="[object Array]"};var E=z,M=0,N=void 0,T=void 0,L=function(st,Ye){J[M]=st,J[M+1]=Ye,M+=2,M===2&&(T?T(ue):Ve())};function ee(he){T=he}function R(he){L=he}var le=typeof window!="undefined"?window:void 0,X=le||{},q=X.MutationObserver||X.WebKitMutationObserver,W=typeof self=="undefined"&&typeof me!="undefined"&&{}.toString.call(me)==="[object process]",K=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function se(){return function(){return me.nextTick(ue)}}function fe(){return typeof N!="undefined"?function(){N(ue)}:Ue()}function Oe(){var he=0,st=new q(ue),Ye=document.createTextNode("");return st.observe(Ye,{characterData:!0}),function(){Ye.data=he=++he%2}}function Se(){var he=new MessageChannel;return he.port1.onmessage=ue,function(){return he.port2.postMessage(0)}}function Ue(){var he=setTimeout;return function(){return he(ue,1)}}var J=new Array(1e3);function ue(){for(var he=0;he<M;he+=2){var st=J[he],Ye=J[he+1];st(Ye),J[he]=void 0,J[he+1]=void 0}M=0}function D(){try{var he=Function("return this")().require("vertx");return N=he.runOnLoop||he.runOnContext,fe()}catch(st){return Ue()}}var Ve=void 0;W?Ve=se():q?Ve=Oe():K?Ve=Se():le===void 0?Ve=D():Ve=Ue();function Me(he,st){var Ye=this,Ie=new this.constructor(ve);Ie[Te]===void 0&&C(Ie);var Le=Ye._state;if(Le){var ct=arguments[Le-1];L(function(){return ft(Le,Ie,ct,Ye._result)})}else sr(Ye,Ie,he,st);return Ie}function we(he){var st=this;if(he&&typeof he=="object"&&he.constructor===st)return he;var Ye=new st(ve);return Nt(Ye,he),Ye}var Te=Math.random().toString(36).substring(2);function ve(){}var Fe=void 0,de=1,Ee=2;function tt(){return new TypeError("You cannot resolve a promise with itself")}function it(){return new TypeError("A promises callback cannot return that same promise.")}function Je(he,st,Ye,Ie){try{he.call(st,Ye,Ie)}catch(Le){return Le}}function et(he,st,Ye){L(function(Ie){var Le=!1,ct=Je(Ye,st,function(Ut){Le||(Le=!0,st!==Ut?Nt(Ie,Ut):ar(Ie,Ut))},function(Ut){Le||(Le=!0,Cr(Ie,Ut))},"Settle: "+(Ie._label||" unknown promise"));!Le&&ct&&(Le=!0,Cr(Ie,ct))},he)}function Bt(he,st){st._state===de?ar(he,st._result):st._state===Ee?Cr(he,st._result):sr(st,void 0,function(Ye){return Nt(he,Ye)},function(Ye){return Cr(he,Ye)})}function Lt(he,st,Ye){st.constructor===he.constructor&&Ye===Me&&st.constructor.resolve===we?Bt(he,st):Ye===void 0?ar(he,st):v(Ye)?et(he,st,Ye):ar(he,st)}function Nt(he,st){if(he===st)Cr(he,tt());else if(I(st)){var Ye=void 0;try{Ye=st.then}catch(Ie){Cr(he,Ie);return}Lt(he,st,Ye)}else ar(he,st)}function ur(he){he._onerror&&he._onerror(he._result),G(he)}function ar(he,st){he._state===Fe&&(he._result=st,he._state=de,he._subscribers.length!==0&&L(G,he))}function Cr(he,st){he._state===Fe&&(he._state=Ee,he._result=st,L(ur,he))}function sr(he,st,Ye,Ie){var Le=he._subscribers,ct=Le.length;he._onerror=null,Le[ct]=st,Le[ct+de]=Ye,Le[ct+Ee]=Ie,ct===0&&he._state&&L(G,he)}function G(he){var st=he._subscribers,Ye=he._state;if(st.length!==0){for(var Ie=void 0,Le=void 0,ct=he._result,Ut=0;Ut<st.length;Ut+=3)Ie=st[Ut],Le=st[Ut+Ye],Ie?ft(Ye,Ie,Le,ct):Le(ct);he._subscribers.length=0}}function ft(he,st,Ye,Ie){var Le=v(Ye),ct=void 0,Ut=void 0,kt=!0;if(Le){try{ct=Ye(Ie)}catch(tr){kt=!1,Ut=tr}if(st===ct){Cr(st,it());return}}else ct=Ie;st._state!==Fe||(Le&&kt?Nt(st,ct):kt===!1?Cr(st,Ut):he===de?ar(st,ct):he===Ee&&Cr(st,ct))}function F(he,st){try{st(function(Ie){Nt(he,Ie)},function(Ie){Cr(he,Ie)})}catch(Ye){Cr(he,Ye)}}var m=0;function d(){return m++}function C(he){he[Te]=m++,he._state=void 0,he._result=void 0,he._subscribers=[]}function re(){return new Error("Array Methods must be provided an Array")}var Be=function(){function he(st,Ye){this._instanceConstructor=st,this.promise=new st(ve),this.promise[Te]||C(this.promise),E(Ye)?(this.length=Ye.length,this._remaining=Ye.length,this._result=new Array(this.length),this.length===0?ar(this.promise,this._result):(this.length=this.length||0,this._enumerate(Ye),this._remaining===0&&ar(this.promise,this._result))):Cr(this.promise,re())}return he.prototype._enumerate=function(Ye){for(var Ie=0;this._state===Fe&&Ie<Ye.length;Ie++)this._eachEntry(Ye[Ie],Ie)},he.prototype._eachEntry=function(Ye,Ie){var Le=this._instanceConstructor,ct=Le.resolve;if(ct===we){var Ut=void 0,kt=void 0,tr=!1;try{Ut=Ye.then}catch(fr){tr=!0,kt=fr}if(Ut===Me&&Ye._state!==Fe)this._settledAt(Ye._state,Ie,Ye._result);else if(typeof Ut!="function")this._remaining--,this._result[Ie]=Ye;else if(Le===je){var Dr=new Le(ve);tr?Cr(Dr,kt):Lt(Dr,Ye,Ut),this._willSettleAt(Dr,Ie)}else this._willSettleAt(new Le(function(fr){return fr(Ye)}),Ie)}else this._willSettleAt(ct(Ye),Ie)},he.prototype._settledAt=function(Ye,Ie,Le){var ct=this.promise;ct._state===Fe&&(this._remaining--,Ye===Ee?Cr(ct,Le):this._result[Ie]=Le),this._remaining===0&&ar(ct,this._result)},he.prototype._willSettleAt=function(Ye,Ie){var Le=this;sr(Ye,void 0,function(ct){return Le._settledAt(de,Ie,ct)},function(ct){return Le._settledAt(Ee,Ie,ct)})},he}();function H(he){return new Be(this,he).promise}function ie(he){var st=this;return E(he)?new st(function(Ye,Ie){for(var Le=he.length,ct=0;ct<Le;ct++)st.resolve(he[ct]).then(Ye,Ie)}):new st(function(Ye,Ie){return Ie(new TypeError("You must pass an array to race."))})}function Qe(he){var st=this,Ye=new st(ve);return Cr(Ye,he),Ye}function xe(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ye(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var je=function(){function he(st){this[Te]=d(),this._result=this._state=void 0,this._subscribers=[],ve!==st&&(typeof st!="function"&&xe(),this instanceof he?F(this,st):ye())}return he.prototype.catch=function(Ye){return this.then(null,Ye)},he.prototype.finally=function(Ye){var Ie=this,Le=Ie.constructor;return v(Ye)?Ie.then(function(ct){return Le.resolve(Ye()).then(function(){return ct})},function(ct){return Le.resolve(Ye()).then(function(){throw ct})}):Ie.then(Ye,Ye)},he}();je.prototype.then=Me,je.all=H,je.race=ie,je.resolve=we,je.reject=Qe,je._setScheduler=ee,je._setAsap=R,je._asap=L;function xt(){var he=void 0;if(typeof x.g!="undefined")he=x.g;else if(typeof self!="undefined")he=self;else try{he=Function("return this")()}catch(Ie){throw new Error("polyfill failed because global object is unavailable in this environment")}var st=he.Promise;if(st){var Ye=null;try{Ye=Object.prototype.toString.call(st.resolve())}catch(Ie){}if(Ye==="[object Promise]"&&!st.cast)return}he.Promise=je}return je.polyfill=xt,je.Promise=je,je})},html2canvas:function(g){"use strict";g.exports=P},jspdf:function(g){"use strict";g.exports=Ae}},te={};function V(g){var I=te[g];if(I!==void 0)return I.exports;var v=te[g]={exports:{}};return De[g].call(v.exports,v,v.exports,V),v.exports}(function(){V.n=function(g){var I=g&&g.__esModule?function(){return g.default}:function(){return g};return V.d(I,{a:I}),I}})(),function(){V.d=function(g,I){for(var v in I)V.o(I,v)&&!V.o(g,v)&&Object.defineProperty(g,v,{enumerable:!0,get:I[v]})}}(),function(){V.o=function(g,I){return Object.prototype.hasOwnProperty.call(g,I)}}(),function(){V.r=function(g){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(g,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(g,"__esModule",{value:!0})}}();var S={};return function(){"use strict";V.r(S);var g=V("./src/worker.js"),I=V("./src/plugin/jspdf-plugin.js"),v=V("./src/plugin/pagebreaks.js"),z=V("./src/plugin/hyperlinks.js"),E=function M(N,T){var L=new M.Worker(T);return N?L.from(N).save():L};E.Worker=g.default,S.default=E}(),S=S.default,S}()})},67467:function(un,Tt){Tt.read=function(x,me,Ae,P,De){var te,V,S=De*8-P-1,g=(1<<S)-1,I=g>>1,v=-7,z=Ae?De-1:0,E=Ae?-1:1,M=x[me+z];for(z+=E,te=M&(1<<-v)-1,M>>=-v,v+=S;v>0;te=te*256+x[me+z],z+=E,v-=8);for(V=te&(1<<-v)-1,te>>=-v,v+=P;v>0;V=V*256+x[me+z],z+=E,v-=8);if(te===0)te=1-I;else{if(te===g)return V?NaN:(M?-1:1)*(1/0);V=V+Math.pow(2,P),te=te-I}return(M?-1:1)*V*Math.pow(2,te-P)},Tt.write=function(x,me,Ae,P,De,te){var V,S,g,I=te*8-De-1,v=(1<<I)-1,z=v>>1,E=De===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=P?0:te-1,N=P?1:-1,T=me<0||me===0&&1/me<0?1:0;for(me=Math.abs(me),isNaN(me)||me===1/0?(S=isNaN(me)?1:0,V=v):(V=Math.floor(Math.log(me)/Math.LN2),me*(g=Math.pow(2,-V))<1&&(V--,g*=2),V+z>=1?me+=E/g:me+=E*Math.pow(2,1-z),me*g>=2&&(V++,g/=2),V+z>=v?(S=0,V=v):V+z>=1?(S=(me*g-1)*Math.pow(2,De),V=V+z):(S=me*Math.pow(2,z-1)*Math.pow(2,De),V=0));De>=8;x[Ae+M]=S&255,M+=N,S/=256,De-=8);for(V=V<<De|S,I+=De;I>0;x[Ae+M]=V&255,M+=N,V/=256,I-=8);x[Ae+M-N]|=T*128}},24334:function(un,Tt,x){var me,Ae;(function(P,De){un.exports=De(P)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:this,function(P){"use strict";P=P||{};var De=P.Base64,te="2.6.4",V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=function(D){for(var Ve={},Me=0,we=D.length;Me<we;Me++)Ve[D.charAt(Me)]=Me;return Ve}(V),g=String.fromCharCode,I=function(D){if(D.length<2){var Ve=D.charCodeAt(0);return Ve<128?D:Ve<2048?g(192|Ve>>>6)+g(128|Ve&63):g(224|Ve>>>12&15)+g(128|Ve>>>6&63)+g(128|Ve&63)}else{var Ve=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return g(240|Ve>>>18&7)+g(128|Ve>>>12&63)+g(128|Ve>>>6&63)+g(128|Ve&63)}},v=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,z=function(D){return D.replace(v,I)},E=function(D){var Ve=[0,2,1][D.length%3],Me=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),we=[V.charAt(Me>>>18),V.charAt(Me>>>12&63),Ve>=2?"=":V.charAt(Me>>>6&63),Ve>=1?"=":V.charAt(Me&63)];return we.join("")},M=P.btoa&&typeof P.btoa=="function"?function(D){return P.btoa(D)}:function(D){if(D.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return D.replace(/[\s\S]{1,3}/g,E)},N=function(D){return M(z(String(D)))},T=function(D){return D.replace(/[+\/]/g,function(Ve){return Ve=="+"?"-":"_"}).replace(/=/g,"")},L=function(D,Ve){return Ve?T(N(D)):N(D)},ee=function(D){return L(D,!0)},R;P.Uint8Array&&(R=function(D,Ve){for(var Me="",we=0,Te=D.length;we<Te;we+=3){var ve=D[we],Fe=D[we+1],de=D[we+2],Ee=ve<<16|Fe<<8|de;Me+=V.charAt(Ee>>>18)+V.charAt(Ee>>>12&63)+(typeof Fe!="undefined"?V.charAt(Ee>>>6&63):"=")+(typeof de!="undefined"?V.charAt(Ee&63):"=")}return Ve?T(Me):Me});var le=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,X=function(D){switch(D.length){case 4:var Ve=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),Me=Ve-65536;return g((Me>>>10)+55296)+g((Me&1023)+56320);case 3:return g((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return g((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},q=function(D){return D.replace(le,X)},W=function(D){var Ve=D.length,Me=Ve%4,we=(Ve>0?S[D.charAt(0)]<<18:0)|(Ve>1?S[D.charAt(1)]<<12:0)|(Ve>2?S[D.charAt(2)]<<6:0)|(Ve>3?S[D.charAt(3)]:0),Te=[g(we>>>16),g(we>>>8&255),g(we&255)];return Te.length-=[0,0,2,1][Me],Te.join("")},K=P.atob&&typeof P.atob=="function"?function(D){return P.atob(D)}:function(D){return D.replace(/\S{1,4}/g,W)},se=function(D){return K(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},fe=function(D){return q(K(D))},Oe=function(D){return String(D).replace(/[-_]/g,function(Ve){return Ve=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Se=function(D){return fe(Oe(D))},Ue;P.Uint8Array&&(Ue=function(D){return Uint8Array.from(se(Oe(D)),function(Ve){return Ve.charCodeAt(0)})});var J=function(){var D=P.Base64;return P.Base64=De,D};if(P.Base64={VERSION:te,atob:se,btoa:M,fromBase64:Se,toBase64:L,utob:z,encode:L,encodeURI:ee,btou:q,decode:Se,noConflict:J,fromUint8Array:R,toUint8Array:Ue},typeof Object.defineProperty=="function"){var ue=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};P.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",ue(function(){return Se(this)})),Object.defineProperty(String.prototype,"toBase64",ue(function(D){return L(this,D)})),Object.defineProperty(String.prototype,"toBase64URI",ue(function(){return L(this,!0)}))}}return P.Meteor&&(Base64=P.Base64),un.exports?un.exports.Base64=P.Base64:(me=[],Ae=function(){return P.Base64}.apply(Tt,me),Ae!==void 0&&(un.exports=Ae)),{Base64:P.Base64}})},65355:function(un,Tt,x){"use strict";x.r(Tt),x.d(Tt,{AcroForm:function(){return oA},AcroFormAppearance:function(){return qn},AcroFormButton:function(){return Na},AcroFormCheckBox:function(){return ko},AcroFormChoiceField:function(){return pi},AcroFormComboBox:function(){return Ji},AcroFormEditBox:function(){return Vi},AcroFormListBox:function(){return Va},AcroFormPasswordField:function(){return Pa},AcroFormPushButton:function(){return ao},AcroFormRadioButton:function(){return Ia},AcroFormTextField:function(){return Xa},GState:function(){return Rh},ShadingPattern:function(){return jd},TilingPattern:function(){return zd},default:function(){return ua},jsPDF:function(){return ua}});var me=x(76190),Ae={},P=function(n,o,a,l,A){var p=new Worker(Ae[o]||(Ae[o]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return p.onmessage=function(O){var _=O.data,U=_.$e$;if(U){var Z=new Error(U[0]);Z.code=U[1],Z.stack=U[2],A(Z,null)}else A(null,_)},p.postMessage(a,l),p},De=Uint8Array,te=Uint16Array,V=Int32Array,S=new De([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),g=new De([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),I=new De([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),v=function(n,o){for(var a=new te(31),l=0;l<31;++l)a[l]=o+=1<<n[l-1];for(var A=new V(a[30]),l=1;l<30;++l)for(var p=a[l];p<a[l+1];++p)A[p]=p-a[l]<<5|l;return{b:a,r:A}},z=v(S,2),E=z.b,M=z.r;E[28]=258,M[258]=28;for(var N=v(g,0),T=N.b,L=N.r,ee=new te(32768),R=0;R<32768;++R){var le=(R&43690)>>1|(R&21845)<<1;le=(le&52428)>>2|(le&13107)<<2,le=(le&61680)>>4|(le&3855)<<4,ee[R]=((le&65280)>>8|(le&255)<<8)>>1}for(var X=function(n,o,a){for(var l=n.length,A=0,p=new te(o);A<l;++A)n[A]&&++p[n[A]-1];var O=new te(o);for(A=1;A<o;++A)O[A]=O[A-1]+p[A-1]<<1;var _;if(a){_=new te(1<<o);var U=15-o;for(A=0;A<l;++A)if(n[A])for(var Z=A<<4|n[A],oe=o-n[A],Re=O[n[A]-1]++<<oe,ze=Re|(1<<oe)-1;Re<=ze;++Re)_[ee[Re]>>U]=Z}else for(_=new te(l),A=0;A<l;++A)n[A]&&(_[A]=ee[O[n[A]-1]++]>>15-n[A]);return _},q=new De(288),R=0;R<144;++R)q[R]=8;for(var R=144;R<256;++R)q[R]=9;for(var R=256;R<280;++R)q[R]=7;for(var R=280;R<288;++R)q[R]=8;for(var W=new De(32),R=0;R<32;++R)W[R]=5;var K=X(q,9,0),se=null,fe=X(W,5,0),Oe=null,Se=function(n){for(var o=n[0],a=1;a<n.length;++a)n[a]>o&&(o=n[a]);return o},Ue=function(n,o,a){var l=o/8|0;return(n[l]|n[l+1]<<8)>>(o&7)&a},J=function(n,o){var a=o/8|0;return(n[a]|n[a+1]<<8|n[a+2]<<16)>>(o&7)},ue=function(n){return(n+7)/8|0},D=function(n,o,a){return(o==null||o<0)&&(o=0),(a==null||a>n.length)&&(a=n.length),new De(n.subarray(o,a))},Ve={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Me=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],we=function(n,o,a){var l=new Error(o||Me[n]);if(l.code=n,Error.captureStackTrace&&Error.captureStackTrace(l,we),!a)throw l;return l},Te=function(n,o,a,l){var A=n.length,p=l?l.length:0;if(!A||o.f&&!o.l)return a||new De(0);var O=!a,_=O||o.i!=2,U=o.i;O&&(a=new De(A*3));var Z=function(Rn){var gi=a.length;if(Rn>gi){var Ei=new De(Math.max(gi*2,Rn));Ei.set(a),a=Ei}},oe=o.f||0,Re=o.p||0,ze=o.b||0,ae=o.l,mt=o.d,ut=o.m,bt=o.n,ot=A*8;do{if(!ae){oe=Ue(n,Re,1);var Gt=Ue(n,Re+1,3);if(Re+=3,Gt)if(Gt==1)ae=se,mt=Oe,ut=9,bt=5;else if(Gt==2){var rn=Ue(n,Re,31)+257,Wr=Ue(n,Re+10,15)+4,ir=rn+Ue(n,Re+5,31)+1;Re+=14;for(var Mt=new De(ir),xr=new De(19),nt=0;nt<Wr;++nt)xr[I[nt]]=Ue(n,Re+nt*3,7);Re+=Wr*3;for(var yt=Se(xr),Wt=(1<<yt)-1,Ht=X(xr,yt,1),nt=0;nt<ir;){var Tr=Ht[Ue(n,Re,Wt)];Re+=Tr&15;var Rt=Tr>>4;if(Rt<16)Mt[nt++]=Rt;else{var Zr=0,Jr=0;for(Rt==16?(Jr=3+Ue(n,Re,3),Re+=2,Zr=Mt[nt-1]):Rt==17?(Jr=3+Ue(n,Re,7),Re+=3):Rt==18&&(Jr=11+Ue(n,Re,127),Re+=7);Jr--;)Mt[nt++]=Zr}}var Or=Mt.subarray(0,rn),Gr=Mt.subarray(rn);ut=Se(Or),bt=Se(Gr),ae=X(Or,ut,1),mt=X(Gr,bt,1)}else we(1);else{var Rt=ue(Re)+4,It=n[Rt-4]|n[Rt-3]<<8,kr=Rt+It;if(kr>A){U&&we(0);break}_&&Z(ze+It),a.set(n.subarray(Rt,kr),ze),o.b=ze+=It,o.p=Re=kr*8,o.f=oe;continue}if(Re>ot){U&&we(0);break}}_&&Z(ze+131072);for(var $n=(1<<ut)-1,En=(1<<bt)-1,qe=Re;;qe=Re){var Zr=ae[J(n,Re)&$n],_t=Zr>>4;if(Re+=Zr&15,Re>ot){U&&we(0);break}if(Zr||we(2),_t<256)a[ze++]=_t;else if(_t==256){qe=Re,ae=null;break}else{var Ot=_t-254;if(_t>264){var nt=_t-257,Jt=S[nt];Ot=Ue(n,Re,(1<<Jt)-1)+E[nt],Re+=Jt}var hr=mt[J(n,Re)&En],Mr=hr>>4;hr||we(3),Re+=hr&15;var Gr=T[Mr];if(Mr>3){var Jt=g[Mr];Gr+=J(n,Re)&(1<<Jt)-1,Re+=Jt}if(Re>ot){U&&we(0);break}_&&Z(ze+131072);var $r=ze+Ot;if(ze<Gr){var Qr=p-Gr,gn=Math.min(Gr,$r);for(Qr+ze<0&&we(3);ze<gn;++ze)a[ze]=l[Qr+ze]}for(;ze<$r;++ze)a[ze]=a[ze-Gr]}}o.l=ae,o.p=qe,o.b=ze,o.f=oe,ae&&(oe=1,o.m=ut,o.d=mt,o.n=bt)}while(!oe);return ze!=a.length&&O?D(a,0,ze):a.subarray(0,ze)},ve=function(n,o,a){a<<=o&7;var l=o/8|0;n[l]|=a,n[l+1]|=a>>8},Fe=function(n,o,a){a<<=o&7;var l=o/8|0;n[l]|=a,n[l+1]|=a>>8,n[l+2]|=a>>16},de=function(n,o){for(var a=[],l=0;l<n.length;++l)n[l]&&a.push({s:l,f:n[l]});var A=a.length,p=a.slice();if(!A)return{t:Lt,l:0};if(A==1){var O=new De(a[0].s+1);return O[a[0].s]=1,{t:O,l:1}}a.sort(function(kr,rn){return kr.f-rn.f}),a.push({s:-1,f:25001});var _=a[0],U=a[1],Z=0,oe=1,Re=2;for(a[0]={s:-1,f:_.f+U.f,l:_,r:U};oe!=A-1;)_=a[a[Z].f<a[Re].f?Z++:Re++],U=a[Z!=oe&&a[Z].f<a[Re].f?Z++:Re++],a[oe++]={s:-1,f:_.f+U.f,l:_,r:U};for(var ze=p[0].s,l=1;l<A;++l)p[l].s>ze&&(ze=p[l].s);var ae=new te(ze+1),mt=Ee(a[oe-1],ae,0);if(mt>o){var l=0,ut=0,bt=mt-o,ot=1<<bt;for(p.sort(function(rn,Wr){return ae[Wr.s]-ae[rn.s]||rn.f-Wr.f});l<A;++l){var Gt=p[l].s;if(ae[Gt]>o)ut+=ot-(1<<mt-ae[Gt]),ae[Gt]=o;else break}for(ut>>=bt;ut>0;){var Rt=p[l].s;ae[Rt]<o?ut-=1<<o-ae[Rt]++-1:++l}for(;l>=0&&ut;--l){var It=p[l].s;ae[It]==o&&(--ae[It],++ut)}mt=o}return{t:new De(ae),l:mt}},Ee=function(n,o,a){return n.s==-1?Math.max(Ee(n.l,o,a+1),Ee(n.r,o,a+1)):o[n.s]=a},tt=function(n){for(var o=n.length;o&&!n[--o];);for(var a=new te(++o),l=0,A=n[0],p=1,O=function(U){a[l++]=U},_=1;_<=o;++_)if(n[_]==A&&_!=o)++p;else{if(!A&&p>2){for(;p>138;p-=138)O(32754);p>2&&(O(p>10?p-11<<5|28690:p-3<<5|12305),p=0)}else if(p>3){for(O(A),--p;p>6;p-=6)O(8304);p>2&&(O(p-3<<5|8208),p=0)}for(;p--;)O(A);p=1,A=n[_]}return{c:a.subarray(0,l),n:o}},it=function(n,o){for(var a=0,l=0;l<o.length;++l)a+=n[l]*o[l];return a},Je=function(n,o,a){var l=a.length,A=ue(o+2);n[A]=l&255,n[A+1]=l>>8,n[A+2]=n[A]^255,n[A+3]=n[A+1]^255;for(var p=0;p<l;++p)n[A+p+4]=a[p];return(A+4+l)*8},et=function(n,o,a,l,A,p,O,_,U,Z,oe){ve(o,oe++,a),++A[256];for(var Re=de(A,15),ze=Re.t,ae=Re.l,mt=de(p,15),ut=mt.t,bt=mt.l,ot=tt(ze),Gt=ot.c,Rt=ot.n,It=tt(ut),kr=It.c,rn=It.n,Wr=new te(19),ir=0;ir<Gt.length;++ir)++Wr[Gt[ir]&31];for(var ir=0;ir<kr.length;++ir)++Wr[kr[ir]&31];for(var Mt=de(Wr,7),xr=Mt.t,nt=Mt.l,yt=19;yt>4&&!xr[I[yt-1]];--yt);var Wt=Z+5<<3,Ht=it(A,q)+it(p,W)+O,Tr=it(A,ze)+it(p,ut)+O+14+3*yt+it(Wr,xr)+2*Wr[16]+3*Wr[17]+7*Wr[18];if(U>=0&&Wt<=Ht&&Wt<=Tr)return Je(o,oe,n.subarray(U,U+Z));var Zr,Jr,Or,Gr;if(ve(o,oe,1+(Tr<Ht)),oe+=2,Tr<Ht){Zr=X(ze,ae,0),Jr=ze,Or=X(ut,bt,0),Gr=ut;var $n=X(xr,nt,0);ve(o,oe,Rt-257),ve(o,oe+5,rn-1),ve(o,oe+10,yt-4),oe+=14;for(var ir=0;ir<yt;++ir)ve(o,oe+3*ir,xr[I[ir]]);oe+=3*yt;for(var En=[Gt,kr],qe=0;qe<2;++qe)for(var _t=En[qe],ir=0;ir<_t.length;++ir){var Ot=_t[ir]&31;ve(o,oe,$n[Ot]),oe+=xr[Ot],Ot>15&&(ve(o,oe,_t[ir]>>5&127),oe+=_t[ir]>>12)}}else Zr=K,Jr=q,Or=fe,Gr=W;for(var ir=0;ir<_;++ir){var Jt=l[ir];if(Jt>255){var Ot=Jt>>18&31;Fe(o,oe,Zr[Ot+257]),oe+=Jr[Ot+257],Ot>7&&(ve(o,oe,Jt>>23&31),oe+=S[Ot]);var hr=Jt&31;Fe(o,oe,Or[hr]),oe+=Gr[hr],hr>3&&(Fe(o,oe,Jt>>5&8191),oe+=g[hr])}else Fe(o,oe,Zr[Jt]),oe+=Jr[Jt]}return Fe(o,oe,Zr[256]),oe+Jr[256]},Bt=new V([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Lt=new De(0),Nt=function(n,o,a,l,A,p){var O=p.z||n.length,_=new De(l+O+5*(1+Math.ceil(O/7e3))+A),U=_.subarray(l,_.length-A),Z=p.l,oe=(p.r||0)&7;if(o){oe&&(U[0]=p.r>>3);for(var Re=Bt[o-1],ze=Re>>13,ae=Re&8191,mt=(1<<a)-1,ut=p.p||new te(32768),bt=p.h||new te(mt+1),ot=Math.ceil(a/3),Gt=2*ot,Rt=function(sn){return(n[sn]^n[sn+1]<<ot^n[sn+2]<<Gt)&mt},It=new V(25e3),kr=new te(288),rn=new te(32),Wr=0,ir=0,Mt=p.i||0,xr=0,nt=p.w||0,yt=0;Mt+2<O;++Mt){var Wt=Rt(Mt),Ht=Mt&32767,Tr=bt[Wt];if(ut[Ht]=Tr,bt[Wt]=Ht,nt<=Mt){var Zr=O-Mt;if((Wr>7e3||xr>24576)&&(Zr>423||!Z)){oe=et(n,U,0,It,kr,rn,ir,xr,yt,Mt-yt,oe),xr=Wr=ir=0,yt=Mt;for(var Jr=0;Jr<286;++Jr)kr[Jr]=0;for(var Jr=0;Jr<30;++Jr)rn[Jr]=0}var Or=2,Gr=0,$n=ae,En=Ht-Tr&32767;if(Zr>2&&Wt==Rt(Mt-En))for(var qe=Math.min(ze,Zr)-1,_t=Math.min(32767,Mt),Ot=Math.min(258,Zr);En<=_t&&--$n&&Ht!=Tr;){if(n[Mt+Or]==n[Mt+Or-En]){for(var Jt=0;Jt<Ot&&n[Mt+Jt]==n[Mt+Jt-En];++Jt);if(Jt>Or){if(Or=Jt,Gr=En,Jt>qe)break;for(var hr=Math.min(En,Jt-2),Mr=0,Jr=0;Jr<hr;++Jr){var $r=Mt-En+Jr&32767,Qr=ut[$r],gn=$r-Qr&32767;gn>Mr&&(Mr=gn,Tr=$r)}}}Ht=Tr,Tr=ut[Ht],En+=Ht-Tr&32767}if(Gr){It[xr++]=268435456|M[Or]<<18|L[Gr];var Rn=M[Or]&31,gi=L[Gr]&31;ir+=S[Rn]+g[gi],++kr[257+Rn],++rn[gi],nt=Mt+Or,++Wr}else It[xr++]=n[Mt],++kr[n[Mt]]}}for(Mt=Math.max(Mt,nt);Mt<O;++Mt)It[xr++]=n[Mt],++kr[n[Mt]];oe=et(n,U,Z,It,kr,rn,ir,xr,yt,Mt-yt,oe),Z||(p.r=oe&7|U[oe/8|0]<<3,oe-=7,p.h=bt,p.p=ut,p.i=Mt,p.w=nt)}else{for(var Mt=p.w||0;Mt<O+Z;Mt+=65535){var Ei=Mt+65535;Ei>=O&&(U[oe/8|0]=Z,Ei=O),oe=Je(U,oe+1,n.subarray(Mt,Ei))}p.i=O}return D(_,0,l+ue(oe)+A)},ur=null,ar=function(){var n=-1;return{p:function(o){for(var a=n,l=0;l<o.length;++l)a=ur[a&255^o[l]]^a>>>8;n=a},d:function(){return~n}}},Cr=function(){var n=1,o=0;return{p:function(a){for(var l=n,A=o,p=a.length|0,O=0;O!=p;){for(var _=Math.min(O+2655,p);O<_;++O)A+=l+=a[O];l=(l&65535)+15*(l>>16),A=(A&65535)+15*(A>>16)}n=l,o=A},d:function(){return n%=65521,o%=65521,(n&255)<<24|(n&65280)<<8|(o&255)<<8|o>>8}}},sr=function(n,o,a,l,A){if(!A&&(A={l:1},o.dictionary)){var p=o.dictionary.subarray(-32768),O=new De(p.length+n.length);O.set(p),O.set(n,p.length),n=O,A.w=p.length}return Nt(n,o.level==null?6:o.level,o.mem==null?A.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+o.mem,a,l,A)},G=function(n,o){var a={};for(var l in n)a[l]=n[l];for(var l in o)a[l]=o[l];return a},ft=function(n,o,a){for(var l=n(),A=n.toString(),p=A.slice(A.indexOf("[")+1,A.lastIndexOf("]")).replace(/\s+/g,"").split(","),O=0;O<l.length;++O){var _=l[O],U=p[O];if(typeof _=="function"){o+=";"+U+"=";var Z=_.toString();if(_.prototype)if(Z.indexOf("[native code]")!=-1){var oe=Z.indexOf(" ",8)+1;o+=Z.slice(oe,Z.indexOf("(",oe))}else{o+=Z;for(var Re in _.prototype)o+=";"+U+".prototype."+Re+"="+_.prototype[Re].toString()}else o+=Z}else a[U]=_}return o},F=null,m=function(n){var o=[];for(var a in n)n[a].buffer&&o.push((n[a]=new n[a].constructor(n[a])).buffer);return o},d=function(n,o,a,l){if(!F[a]){for(var A="",p={},O=n.length-1,_=0;_<O;++_)A=ft(n[_],A,p);F[a]={c:ft(n[O],A,p),e:p}}var U=G({},F[a].e);return P(F[a].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+o.toString()+"}",a,U,m(U),l)},C=function(){return[De,te,V,S,g,I,E,T,se,Oe,ee,Me,X,Se,Ue,J,ue,D,we,Te,xn,xe,ye]},re=function(){return[De,te,V,S,g,I,M,L,K,q,fe,W,ee,Bt,Lt,X,ve,Fe,de,Ee,tt,it,Je,et,ue,D,Nt,sr,Kr,xe]},Be=function(){return[ct,tr,Le,ar,ur]},H=function(){return[Ut,kt]},ie=function(){return[Dr,Le,Cr]},Qe=function(){return[fr]},xe=function(n){return postMessage(n,[n.buffer])},ye=function(n){return n&&{out:n.size&&new De(n.size),dictionary:n.dictionary}},je=function(n,o,a,l,A,p){var O=d(a,l,A,function(_,U){O.terminate(),p(_,U)});return O.postMessage([n,o],o.consume?[n.buffer]:[]),function(){O.terminate()}},xt=function(n){return n.ondata=function(o,a){return postMessage([o,a],[o.buffer])},function(o){o.data.length?(n.push(o.data[0],o.data[1]),postMessage([o.data[0].length])):n.flush()}},he=function(n,o,a,l,A,p,O){var _,U=d(n,l,A,function(Z,oe){Z?(U.terminate(),o.ondata.call(o,Z)):Array.isArray(oe)?oe.length==1?(o.queuedSize-=oe[0],o.ondrain&&o.ondrain(oe[0])):(oe[1]&&U.terminate(),o.ondata.call(o,Z,oe[0],oe[1])):O(oe)});U.postMessage(a),o.queuedSize=0,o.push=function(Z,oe){o.ondata||we(5),_&&o.ondata(we(4,0,1),null,!!oe),o.queuedSize+=Z.length,U.postMessage([Z,_=oe],[Z.buffer])},o.terminate=function(){U.terminate()},p&&(o.flush=function(){U.postMessage([])})},st=function(n,o){return n[o]|n[o+1]<<8},Ye=function(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16|n[o+3]<<24)>>>0},Ie=function(n,o){return Ye(n,o)+Ye(n,o+4)*4294967296},Le=function(n,o,a){for(;a;++o)n[o]=a,a>>>=8},ct=function(n,o){var a=o.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=o.level<2?4:o.level==9?2:0,n[9]=3,o.mtime!=0&&Le(n,4,Math.floor(new Date(o.mtime||Date.now())/1e3)),a){n[3]=8;for(var l=0;l<=a.length;++l)n[l+10]=a.charCodeAt(l)}},Ut=function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&we(6,"invalid gzip data");var o=n[3],a=10;o&4&&(a+=(n[10]|n[11]<<8)+2);for(var l=(o>>3&1)+(o>>4&1);l>0;l-=!n[a++]);return a+(o&2)},kt=function(n){var o=n.length;return(n[o-4]|n[o-3]<<8|n[o-2]<<16|n[o-1]<<24)>>>0},tr=function(n){return 10+(n.filename?n.filename.length+1:0)},Dr=function(n,o){var a=o.level,l=a==0?0:a<6?1:a==9?3:2;if(n[0]=120,n[1]=l<<6|(o.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,o.dictionary){var A=Cr();A.p(o.dictionary),Le(n,2,A.d())}},fr=function(n,o){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&we(6,"invalid zlib data"),(n[1]>>5&1)==+!o&&we(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2};function Fr(n,o){return typeof n=="function"&&(o=n,n={}),this.ondata=o,n}var Lr=null,mr=null;function cr(n,o,a){return a||(a=o,o={}),typeof a!="function"&&we(7),je(n,o,[re],function(l){return xe(Kr(l.data[0],l.data[1]))},0,a)}function Kr(n,o){return sr(n,o||{},0,0)}var fn=null,_n=null;function ln(n,o,a){return a||(a=o,o={}),typeof a!="function"&&we(7),je(n,o,[C],function(l){return xe(xn(l.data[0],ye(l.data[1])))},1,a)}function xn(n,o){return Te(n,{i:2},o&&o.out,o&&o.dictionary)}var oi=null,_r=null;function Ai(n,o,a){return a||(a=o,o={}),typeof a!="function"&&we(7),je(n,o,[re,Be,function(){return[Oi]}],function(l){return xe(Oi(l.data[0],l.data[1]))},2,a)}function Oi(n,o){o||(o={});var a=ar(),l=n.length;a.p(n);var A=sr(n,o,tr(o),8),p=A.length;return ct(A,o),Le(A,p-8,a.d()),Le(A,p-4,l),A}var mi=null,Wi=null;function Gi(n,o,a){return a||(a=o,o={}),typeof a!="function"&&we(7),je(n,o,[C,H,function(){return[ta]}],function(l){return xe(ta(l.data[0],l.data[1]))},3,a)}function ta(n,o){var a=Ut(n);return a+8>n.length&&we(6,"invalid gzip data"),Te(n.subarray(a,-8),{i:2},o&&o.out||new De(kt(n)),o&&o.dictionary)}var _o=null,ra=null;function bi(n,o,a){return a||(a=o,o={}),typeof a!="function"&&we(7),je(n,o,[re,ie,function(){return[Ki]}],function(l){return xe(Ki(l.data[0],l.data[1]))},4,a)}function Ki(n,o){o||(o={});var a=Cr();a.p(n);var l=sr(n,o,o.dictionary?6:2,4);return Dr(l,o),Le(l,l.length-4,a.d()),l}var sa=null,be=null;function Ne(n,o,a){return a||(a=o,o={}),typeof a!="function"&&we(7),je(n,o,[C,Qe,function(){return[ke]}],function(l){return xe(ke(l.data[0],ye(l.data[1])))},5,a)}function ke(n,o){return Te(n.subarray(fr(n,o&&o.dictionary),-4),{i:2},o&&o.out,o&&o.dictionary)}var Xe=null,Pt=null;function Dt(n,o,a){return a||(a=o,o={}),typeof a!="function"&&we(7),n[0]==31&&n[1]==139&&n[2]==8?Gi(n,o,a):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?ln(n,o,a):Ne(n,o,a)}function Er(n,o){return n[0]==31&&n[1]==139&&n[2]==8?ta(n,o):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?xn(n,o):ke(n,o)}var rr=function(n,o,a,l){for(var A in n){var p=n[A],O=o+A,_=l;Array.isArray(p)&&(_=G(l,p[1]),p=p[0]),p instanceof De?a[O]=[p,_]:(a[O+="/"]=[new De(0),_],rr(p,O,a,l))}},Nr=typeof TextEncoder!="undefined"&&new TextEncoder,Hr=typeof TextDecoder!="undefined"&&new TextDecoder,an=0;try{Hr.decode(Lt,{stream:!0}),an=1}catch(n){}var jr=function(n){for(var o="",a=0;;){var l=n[a++],A=(l>127)+(l>223)+(l>239);if(a+A>n.length)return{s:o,r:D(n,a-1)};A?A==3?(l=((l&15)<<18|(n[a++]&63)<<12|(n[a++]&63)<<6|n[a++]&63)-65536,o+=String.fromCharCode(55296|l>>10,56320|l&1023)):A&1?o+=String.fromCharCode((l&31)<<6|n[a++]&63):o+=String.fromCharCode((l&15)<<12|(n[a++]&63)<<6|n[a++]&63):o+=String.fromCharCode(l)}},Rr=null,en=null;function wn(n,o){if(o){for(var a=new De(n.length),l=0;l<n.length;++l)a[l]=n.charCodeAt(l);return a}if(Nr)return Nr.encode(n);for(var A=n.length,p=new De(n.length+(n.length>>1)),O=0,_=function(oe){p[O++]=oe},l=0;l<A;++l){if(O+5>p.length){var U=new De(O+8+(A-l<<1));U.set(p),p=U}var Z=n.charCodeAt(l);Z<128||o?_(Z):Z<2048?(_(192|Z>>6),_(128|Z&63)):Z>55295&&Z<57344?(Z=65536+(Z&1047552)|n.charCodeAt(++l)&1023,_(240|Z>>18),_(128|Z>>12&63),_(128|Z>>6&63),_(128|Z&63)):(_(224|Z>>12),_(128|Z>>6&63),_(128|Z&63))}return D(p,0,O)}function on(n,o){if(o){for(var a="",l=0;l<n.length;l+=16384)a+=String.fromCharCode.apply(null,n.subarray(l,l+16384));return a}else{if(Hr)return Hr.decode(n);var A=jr(n),p=A.s,a=A.r;return a.length&&we(8),p}}var On=function(n){return n==1?3:n<6?2:n==9?1:0},Qn=function(n,o){return o+30+st(n,o+26)+st(n,o+28)},di=function(n,o,a){var l=st(n,o+28),A=on(n.subarray(o+46,o+46+l),!(st(n,o+8)&2048)),p=o+46+l,O=Ye(n,o+20),_=a&&O==4294967295?Nn(n,p):[O,Ye(n,o+24),Ye(n,o+42)],U=_[0],Z=_[1],oe=_[2];return[st(n,o+10),U,Z,A,p+st(n,o+30)+st(n,o+32),oe]},Nn=function(n,o){for(;st(n,o)!=1;o+=4+st(n,o+2));return[Ie(n,o+12),Ie(n,o+4),Ie(n,o+20)]},Gn=function(n){var o=0;if(n)for(var a in n){var l=n[a].length;l>65535&&we(9),o+=l+4}return o},Vt=function(n,o,a,l,A,p,O,_){var U=l.length,Z=a.extra,oe=_&&_.length,Re=Gn(Z);Le(n,o,O!=null?33639248:67324752),o+=4,O!=null&&(n[o++]=20,n[o++]=a.os),n[o]=20,o+=2,n[o++]=a.flag<<1|(p<0&&8),n[o++]=A&&8,n[o++]=a.compression&255,n[o++]=a.compression>>8;var ze=new Date(a.mtime==null?Date.now():a.mtime),ae=ze.getFullYear()-1980;if((ae<0||ae>119)&&we(10),Le(n,o,ae<<25|ze.getMonth()+1<<21|ze.getDate()<<16|ze.getHours()<<11|ze.getMinutes()<<5|ze.getSeconds()>>1),o+=4,p!=-1&&(Le(n,o,a.crc),Le(n,o+4,p<0?-p-2:p),Le(n,o+8,a.size)),Le(n,o+12,U),Le(n,o+14,Re),o+=16,O!=null&&(Le(n,o,oe),Le(n,o+6,a.attrs),Le(n,o+10,O),o+=14),n.set(l,o),o+=U,Re)for(var mt in Z){var ut=Z[mt],bt=ut.length;Le(n,o,+mt),Le(n,o+2,bt),n.set(ut,o+4),o+=4+bt}return oe&&(n.set(_,o),o+=oe),o},Xt=function(n,o,a,l,A){Le(n,o,101010256),Le(n,o+8,a),Le(n,o+10,a),Le(n,o+12,l),Le(n,o+16,A)},Yt=null,er=null,jt=null,or=null;function lr(n,o,a){a||(a=o,o={}),typeof a!="function"&&we(7);var l={};rr(n,"",l,o);var A=Object.keys(l),p=A.length,O=0,_=0,U=p,Z=new Array(p),oe=[],Re=function(){for(var bt=0;bt<oe.length;++bt)oe[bt]()},ze=function(bt,ot){Si(function(){a(bt,ot)})};Si(function(){ze=a});var ae=function(){var bt=new De(_+22),ot=O,Gt=_-O;_=0;for(var Rt=0;Rt<U;++Rt){var It=Z[Rt];try{var kr=It.c.length;Vt(bt,_,It,It.f,It.u,kr);var rn=30+It.f.length+Gn(It.extra),Wr=_+rn;bt.set(It.c,Wr),Vt(bt,O,It,It.f,It.u,kr,_,It.m),O+=16+rn+(It.m?It.m.length:0),_=Wr+kr}catch(ir){return ze(ir,null)}}Xt(bt,O,Z.length,Gt,ot),ze(null,bt)};p||ae();for(var mt=function(bt){var ot=A[bt],Gt=l[ot],Rt=Gt[0],It=Gt[1],kr=ar(),rn=Rt.length;kr.p(Rt);var Wr=wn(ot),ir=Wr.length,Mt=It.comment,xr=Mt&&wn(Mt),nt=xr&&xr.length,yt=Gn(It.extra),Wt=It.level==0?0:8,Ht=function(Tr,Zr){if(Tr)Re(),ze(Tr,null);else{var Jr=Zr.length;Z[bt]=G(It,{size:rn,crc:kr.d(),c:Zr,f:Wr,m:xr,u:ir!=ot.length||xr&&Mt.length!=nt,compression:Wt}),O+=30+ir+yt+Jr,_+=76+2*(ir+yt)+(nt||0)+Jr,--p||ae()}};if(ir>65535&&Ht(we(11,0,1),null),!Wt)Ht(null,Rt);else if(rn<16e4)try{Ht(null,Kr(Rt,It))}catch(Tr){Ht(Tr,null)}else oe.push(cr(Rt,It,Ht))},ut=0;ut<U;++ut)mt(ut);return Re}function Pr(n,o){o||(o={});var a={},l=[];rr(n,"",a,o);var A=0,p=0;for(var O in a){var _=a[O],U=_[0],Z=_[1],oe=Z.level==0?0:8,Re=wn(O),ze=Re.length,ae=Z.comment,mt=ae&&wn(ae),ut=mt&&mt.length,bt=Gn(Z.extra);ze>65535&&we(11);var ot=oe?Kr(U,Z):U,Gt=ot.length,Rt=ar();Rt.p(U),l.push(G(Z,{size:U.length,crc:Rt.d(),c:ot,f:Re,m:mt,u:ze!=O.length||mt&&ae.length!=ut,o:A,compression:oe})),A+=30+ze+bt+Gt,p+=76+2*(ze+bt)+(ut||0)+Gt}for(var It=new De(p+22),kr=A,rn=p-A,Wr=0;Wr<l.length;++Wr){var Re=l[Wr];Vt(It,Re.o,Re,Re.f,Re.u,Re.c.length);var ir=30+Re.f.length+Gn(Re.extra);It.set(Re.c,Re.o+ir),Vt(It,A,Re,Re.f,Re.u,Re.c.length,Re.o,Re.m),A+=16+ir+(Re.m?Re.m.length:0)}return Xt(It,A,l.length,rn,kr),It}var yn=null,Bn=null,li=null,ti=null,Si=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function Yn(n,o,a){a||(a=o,o={}),typeof a!="function"&&we(7);var l=[],A=function(){for(var bt=0;bt<l.length;++bt)l[bt]()},p={},O=function(bt,ot){Si(function(){a(bt,ot)})};Si(function(){O=a});for(var _=n.length-22;Ye(n,_)!=101010256;--_)if(!_||n.length-_>65558)return O(we(13,0,1),null),A;var U=st(n,_+8);if(U){var Z=U,oe=Ye(n,_+16),Re=oe==4294967295||Z==65535;if(Re){var ze=Ye(n,_-12);Re=Ye(n,ze)==101075792,Re&&(Z=U=Ye(n,ze+32),oe=Ye(n,ze+48))}for(var ae=o&&o.filter,mt=function(bt){var ot=di(n,oe,Re),Gt=ot[0],Rt=ot[1],It=ot[2],kr=ot[3],rn=ot[4],Wr=ot[5],ir=Qn(n,Wr);oe=rn;var Mt=function(nt,yt){nt?(A(),O(nt,null)):(yt&&(p[kr]=yt),--U||O(null,p))};if(!ae||ae({name:kr,size:Rt,originalSize:It,compression:Gt}))if(!Gt)Mt(null,D(n,ir,ir+Rt));else if(Gt==8){var xr=n.subarray(ir,ir+Rt);if(It<524288||Rt>.8*It)try{Mt(null,xn(xr,{out:new De(It)}))}catch(nt){Mt(nt,null)}else l.push(ln(xr,{size:It},Mt))}else Mt(we(14,"unknown compression type "+Gt,1),null);else Mt(null,null)},ut=0;ut<Z;++ut)mt(ut)}else O(null,{});return A}function jn(n,o){for(var a={},l=n.length-22;Ye(n,l)!=101010256;--l)(!l||n.length-l>65558)&&we(13);var A=st(n,l+8);if(!A)return{};var p=Ye(n,l+16),O=p==4294967295||A==65535;if(O){var _=Ye(n,l-12);O=Ye(n,_)==101075792,O&&(A=Ye(n,_+32),p=Ye(n,_+48))}for(var U=o&&o.filter,Z=0;Z<A;++Z){var oe=di(n,p,O),Re=oe[0],ze=oe[1],ae=oe[2],mt=oe[3],ut=oe[4],bt=oe[5],ot=Qn(n,bt);p=ut,(!U||U({name:mt,size:ze,originalSize:ae,compression:Re}))&&(Re?Re==8?a[mt]=xn(n.subarray(ot,ot+ze),{out:new De(ae)}):we(14,"unknown compression type "+Re):a[mt]=D(n,ot,ot+ze))}return a}var wi=x(42978);function yi(n,o="utf8"){return new TextDecoder(o).decode(n)}const xi=new TextEncoder;function ci(n){return xi.encode(n)}const Ci=1024*8,$i=(()=>{const n=new Uint8Array(4),o=new Uint32Array(n.buffer);return!((o[0]=1)&n[0])})(),ei={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Ni{constructor(o=Ci,a={}){zs(this,"buffer");zs(this,"byteLength");zs(this,"byteOffset");zs(this,"length");zs(this,"offset");zs(this,"lastWrittenByte");zs(this,"littleEndian");zs(this,"_data");zs(this,"_mark");zs(this,"_marks");let l=!1;typeof o=="number"?o=new ArrayBuffer(o):(l=!0,this.lastWrittenByte=o.byteLength);const A=a.offset?a.offset>>>0:0,p=o.byteLength-A;let O=A;(ArrayBuffer.isView(o)||o instanceof Ni)&&(o.byteLength!==o.buffer.byteLength&&(O=o.byteOffset+A),o=o.buffer),l?this.lastWrittenByte=p:this.lastWrittenByte=0,this.buffer=o,this.length=p,this.byteLength=p,this.byteOffset=O,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,O,p),this._mark=0,this._marks=[]}available(o=1){return this.offset+o<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(o=1){return this.offset+=o,this}back(o=1){return this.offset-=o,this}seek(o){return this.offset=o,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const o=this._marks.pop();if(o===void 0)throw new Error("Mark stack empty");return this.seek(o),this}rewind(){return this.offset=0,this}ensureAvailable(o=1){if(!this.available(o)){const l=(this.offset+o)*2,A=new Uint8Array(l);A.set(new Uint8Array(this.buffer)),this.buffer=A.buffer,this.length=l,this.byteLength=l,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(o=1){return this.readArray(o,"uint8")}readArray(o,a){const l=ei[a].BYTES_PER_ELEMENT*o,A=this.byteOffset+this.offset,p=this.buffer.slice(A,A+l);if(this.littleEndian===$i&&a!=="uint8"&&a!=="int8"){const _=new Uint8Array(this.buffer.slice(A,A+l));_.reverse();const U=new ei[a](_.buffer);return this.offset+=l,U.reverse(),U}const O=new ei[a](p);return this.offset+=l,O}readInt16(){const o=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,o}readUint16(){const o=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,o}readInt32(){const o=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,o}readUint32(){const o=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,o}readFloat32(){const o=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,o}readFloat64(){const o=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,o}readBigInt64(){const o=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,o}readBigUint64(){const o=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,o}readChar(){return String.fromCharCode(this.readInt8())}readChars(o=1){let a="";for(let l=0;l<o;l++)a+=this.readChar();return a}readUtf8(o=1){return yi(this.readBytes(o))}decodeText(o=1,a="utf8"){return yi(this.readBytes(o),a)}writeBoolean(o){return this.writeUint8(o?255:0),this}writeInt8(o){return this.ensureAvailable(1),this._data.setInt8(this.offset++,o),this._updateLastWrittenByte(),this}writeUint8(o){return this.ensureAvailable(1),this._data.setUint8(this.offset++,o),this._updateLastWrittenByte(),this}writeByte(o){return this.writeUint8(o)}writeBytes(o){this.ensureAvailable(o.length);for(let a=0;a<o.length;a++)this._data.setUint8(this.offset++,o[a]);return this._updateLastWrittenByte(),this}writeInt16(o){return this.ensureAvailable(2),this._data.setInt16(this.offset,o,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(o){return this.ensureAvailable(2),this._data.setUint16(this.offset,o,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(o){return this.ensureAvailable(4),this._data.setInt32(this.offset,o,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(o){return this.ensureAvailable(4),this._data.setUint32(this.offset,o,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(o){return this.ensureAvailable(4),this._data.setFloat32(this.offset,o,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(o){return this.ensureAvailable(8),this._data.setFloat64(this.offset,o,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(o){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,o,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(o){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,o,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(o){return this.writeUint8(o.charCodeAt(0))}writeChars(o){for(let a=0;a<o.length;a++)this.writeUint8(o.charCodeAt(a));return this}writeUtf8(o){return this.writeBytes(ci(o))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const Ha=4,si=0,pn=1,cn=2;function Xn(n){let o=n.length;for(;--o>=0;)n[o]=0}const Kn=0,fi=1,Xi=2,Ii=3,Ua=258,Aa=29,Co=256,Vn=Co+1+Aa,Mn=30,Li=19,Zi=2*Vn+1,Fa=15,Is=16,za=7,fa=256,Io=16,Bo=17,Po=18,Ns=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),ho=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),bs=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Ps=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$s=512,To=new Array((Vn+2)*2);Xn(To);const Uo=new Array(Mn*2);Xn(Uo);const ys=new Array($s);Xn(ys);const el=new Array(Ua-Ii+1);Xn(el);const vl=new Array(Aa);Xn(vl);const ic=new Array(Mn);Xn(ic);function ac(n,o,a,l,A){this.static_tree=n,this.extra_bits=o,this.extra_base=a,this.elems=l,this.max_length=A,this.has_stree=n&&n.length}let Ql,Zs,Dc;function Kl(n,o){this.dyn_tree=n,this.max_code=0,this.stat_desc=o}const Hl=n=>n<256?ys[n]:ys[256+(n>>>7)],Vs=(n,o)=>{n.pending_buf[n.pending++]=o&255,n.pending_buf[n.pending++]=o>>>8&255},as=(n,o,a)=>{n.bi_valid>Is-a?(n.bi_buf|=o<<n.bi_valid&65535,Vs(n,n.bi_buf),n.bi_buf=o>>Is-n.bi_valid,n.bi_valid+=a-Is):(n.bi_buf|=o<<n.bi_valid&65535,n.bi_valid+=a)},ri=(n,o,a)=>{as(n,a[o*2],a[o*2+1])},la=(n,o)=>{let a=0;do a|=n&1,n>>>=1,a<<=1;while(--o>0);return a>>>1},Yi=n=>{n.bi_valid===16?(Vs(n,n.bi_buf),n.bi_buf=0,n.bi_valid=0):n.bi_valid>=8&&(n.pending_buf[n.pending++]=n.bi_buf&255,n.bi_buf>>=8,n.bi_valid-=8)},aa=(n,o)=>{const a=o.dyn_tree,l=o.max_code,A=o.stat_desc.static_tree,p=o.stat_desc.has_stree,O=o.stat_desc.extra_bits,_=o.stat_desc.extra_base,U=o.stat_desc.max_length;let Z,oe,Re,ze,ae,mt,ut=0;for(ze=0;ze<=Fa;ze++)n.bl_count[ze]=0;for(a[n.heap[n.heap_max]*2+1]=0,Z=n.heap_max+1;Z<Zi;Z++)oe=n.heap[Z],ze=a[a[oe*2+1]*2+1]+1,ze>U&&(ze=U,ut++),a[oe*2+1]=ze,!(oe>l)&&(n.bl_count[ze]++,ae=0,oe>=_&&(ae=O[oe-_]),mt=a[oe*2],n.opt_len+=mt*(ze+ae),p&&(n.static_len+=mt*(A[oe*2+1]+ae)));if(ut!==0){do{for(ze=U-1;n.bl_count[ze]===0;)ze--;n.bl_count[ze]--,n.bl_count[ze+1]+=2,n.bl_count[U]--,ut-=2}while(ut>0);for(ze=U;ze!==0;ze--)for(oe=n.bl_count[ze];oe!==0;)Re=n.heap[--Z],!(Re>l)&&(a[Re*2+1]!==ze&&(n.opt_len+=(ze-a[Re*2+1])*a[Re*2],a[Re*2+1]=ze),oe--)}},Da=(n,o,a)=>{const l=new Array(Fa+1);let A=0,p,O;for(p=1;p<=Fa;p++)A=A+a[p-1]<<1,l[p]=A;for(O=0;O<=o;O++){let _=n[O*2+1];_!==0&&(n[O*2]=la(l[_]++,_))}},oo=()=>{let n,o,a,l,A;const p=new Array(Fa+1);for(a=0,l=0;l<Aa-1;l++)for(vl[l]=a,n=0;n<1<<Ns[l];n++)el[a++]=l;for(el[a-1]=l,A=0,l=0;l<16;l++)for(ic[l]=A,n=0;n<1<<ho[l];n++)ys[A++]=l;for(A>>=7;l<Mn;l++)for(ic[l]=A<<7,n=0;n<1<<ho[l]-7;n++)ys[256+A++]=l;for(o=0;o<=Fa;o++)p[o]=0;for(n=0;n<=143;)To[n*2+1]=8,n++,p[8]++;for(;n<=255;)To[n*2+1]=9,n++,p[9]++;for(;n<=279;)To[n*2+1]=7,n++,p[7]++;for(;n<=287;)To[n*2+1]=8,n++,p[8]++;for(Da(To,Vn+1,p),n=0;n<Mn;n++)Uo[n*2+1]=5,Uo[n*2]=la(n,5);Ql=new ac(To,Ns,Co+1,Vn,Fa),Zs=new ac(Uo,ho,0,Mn,Fa),Dc=new ac(new Array(0),bs,0,Li,za)},Ws=n=>{let o;for(o=0;o<Vn;o++)n.dyn_ltree[o*2]=0;for(o=0;o<Mn;o++)n.dyn_dtree[o*2]=0;for(o=0;o<Li;o++)n.bl_tree[o*2]=0;n.dyn_ltree[fa*2]=1,n.opt_len=n.static_len=0,n.sym_next=n.matches=0},ws=n=>{n.bi_valid>8?Vs(n,n.bi_buf):n.bi_valid>0&&(n.pending_buf[n.pending++]=n.bi_buf),n.bi_buf=0,n.bi_valid=0},xs=(n,o,a,l)=>{const A=o*2,p=a*2;return n[A]<n[p]||n[A]===n[p]&&l[o]<=l[a]},ms=(n,o,a)=>{const l=n.heap[a];let A=a<<1;for(;A<=n.heap_len&&(A<n.heap_len&&xs(o,n.heap[A+1],n.heap[A],n.depth)&&A++,!xs(o,l,n.heap[A],n.depth));)n.heap[a]=n.heap[A],a=A,A<<=1;n.heap[a]=l},qa=(n,o,a)=>{let l,A,p=0,O,_;if(n.sym_next!==0)do l=n.pending_buf[n.sym_buf+p++]&255,l+=(n.pending_buf[n.sym_buf+p++]&255)<<8,A=n.pending_buf[n.sym_buf+p++],l===0?ri(n,A,o):(O=el[A],ri(n,O+Co+1,o),_=Ns[O],_!==0&&(A-=vl[O],as(n,A,_)),l--,O=Hl(l),ri(n,O,a),_=ho[O],_!==0&&(l-=ic[O],as(n,l,_)));while(p<n.sym_next);ri(n,fa,o)},Ra=(n,o)=>{const a=o.dyn_tree,l=o.stat_desc.static_tree,A=o.stat_desc.has_stree,p=o.stat_desc.elems;let O,_,U=-1,Z;for(n.heap_len=0,n.heap_max=Zi,O=0;O<p;O++)a[O*2]!==0?(n.heap[++n.heap_len]=U=O,n.depth[O]=0):a[O*2+1]=0;for(;n.heap_len<2;)Z=n.heap[++n.heap_len]=U<2?++U:0,a[Z*2]=1,n.depth[Z]=0,n.opt_len--,A&&(n.static_len-=l[Z*2+1]);for(o.max_code=U,O=n.heap_len>>1;O>=1;O--)ms(n,a,O);Z=p;do O=n.heap[1],n.heap[1]=n.heap[n.heap_len--],ms(n,a,1),_=n.heap[1],n.heap[--n.heap_max]=O,n.heap[--n.heap_max]=_,a[Z*2]=a[O*2]+a[_*2],n.depth[Z]=(n.depth[O]>=n.depth[_]?n.depth[O]:n.depth[_])+1,a[O*2+1]=a[_*2+1]=Z,n.heap[1]=Z++,ms(n,a,1);while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],aa(n,o),Da(a,U,n.bl_count)},os=(n,o,a)=>{let l,A=-1,p,O=o[0*2+1],_=0,U=7,Z=4;for(O===0&&(U=138,Z=3),o[(a+1)*2+1]=65535,l=0;l<=a;l++)p=O,O=o[(l+1)*2+1],!(++_<U&&p===O)&&(_<Z?n.bl_tree[p*2]+=_:p!==0?(p!==A&&n.bl_tree[p*2]++,n.bl_tree[Io*2]++):_<=10?n.bl_tree[Bo*2]++:n.bl_tree[Po*2]++,_=0,A=p,O===0?(U=138,Z=3):p===O?(U=6,Z=3):(U=7,Z=4))},ss=(n,o,a)=>{let l,A=-1,p,O=o[0*2+1],_=0,U=7,Z=4;for(O===0&&(U=138,Z=3),l=0;l<=a;l++)if(p=O,O=o[(l+1)*2+1],!(++_<U&&p===O)){if(_<Z)do ri(n,p,n.bl_tree);while(--_!==0);else p!==0?(p!==A&&(ri(n,p,n.bl_tree),_--),ri(n,Io,n.bl_tree),as(n,_-3,2)):_<=10?(ri(n,Bo,n.bl_tree),as(n,_-3,3)):(ri(n,Po,n.bl_tree),as(n,_-11,7));_=0,A=p,O===0?(U=138,Z=3):p===O?(U=6,Z=3):(U=7,Z=4)}},Fs=n=>{let o;for(os(n,n.dyn_ltree,n.l_desc.max_code),os(n,n.dyn_dtree,n.d_desc.max_code),Ra(n,n.bl_desc),o=Li-1;o>=3&&n.bl_tree[Ps[o]*2+1]===0;o--);return n.opt_len+=3*(o+1)+5+5+4,o},Go=(n,o,a,l)=>{let A;for(as(n,o-257,5),as(n,a-1,5),as(n,l-4,4),A=0;A<l;A++)as(n,n.bl_tree[Ps[A]*2+1],3);ss(n,n.dyn_ltree,o-1),ss(n,n.dyn_dtree,a-1)},Fo=n=>{let o=4093624447,a;for(a=0;a<=31;a++,o>>>=1)if(o&1&&n.dyn_ltree[a*2]!==0)return si;if(n.dyn_ltree[9*2]!==0||n.dyn_ltree[10*2]!==0||n.dyn_ltree[13*2]!==0)return pn;for(a=32;a<Co;a++)if(n.dyn_ltree[a*2]!==0)return pn;return si};let pA=!1;const tu=n=>{pA||(oo(),pA=!0),n.l_desc=new Kl(n.dyn_ltree,Ql),n.d_desc=new Kl(n.dyn_dtree,Zs),n.bl_desc=new Kl(n.bl_tree,Dc),n.bi_buf=0,n.bi_valid=0,Ws(n)},Ac=(n,o,a,l)=>{as(n,(Kn<<1)+(l?1:0),3),ws(n),Vs(n,a),Vs(n,~a),a&&n.pending_buf.set(n.window.subarray(o,o+a),n.pending),n.pending+=a},mA=n=>{as(n,fi<<1,3),ri(n,fa,To),Yi(n)},ll=(n,o,a,l)=>{let A,p,O=0;n.level>0?(n.strm.data_type===cn&&(n.strm.data_type=Fo(n)),Ra(n,n.l_desc),Ra(n,n.d_desc),O=Fs(n),A=n.opt_len+3+7>>>3,p=n.static_len+3+7>>>3,p<=A&&(A=p)):A=p=a+5,a+4<=A&&o!==-1?Ac(n,o,a,l):n.strategy===Ha||p===A?(as(n,(fi<<1)+(l?1:0),3),qa(n,To,Uo)):(as(n,(Xi<<1)+(l?1:0),3),Go(n,n.l_desc.max_code+1,n.d_desc.max_code+1,O+1),qa(n,n.dyn_ltree,n.dyn_dtree)),Ws(n),l&&ws(n)},gA=(n,o,a)=>(n.pending_buf[n.sym_buf+n.sym_next++]=o,n.pending_buf[n.sym_buf+n.sym_next++]=o>>8,n.pending_buf[n.sym_buf+n.sym_next++]=a,o===0?n.dyn_ltree[a*2]++:(n.matches++,o--,n.dyn_ltree[(el[a]+Co+1)*2]++,n.dyn_dtree[Hl(o)*2]++),n.sym_next===n.sym_end);var tl=tu,gs=Ac,qc=ll,Ts=gA,NA=mA,uc={_tr_init:tl,_tr_stored_block:gs,_tr_flush_block:qc,_tr_tally:Ts,_tr_align:NA},eo=(n,o,a,l)=>{let A=n&65535|0,p=n>>>16&65535|0,O=0;for(;a!==0;){O=a>2e3?2e3:a,a-=O;do A=A+o[l++]|0,p=p+A|0;while(--O);A%=65521,p%=65521}return A|p<<16|0};const Gs=()=>{let n,o=[];for(var a=0;a<256;a++){n=a;for(var l=0;l<8;l++)n=n&1?3988292384^n>>>1:n>>>1;o[a]=n}return o},vA=new Uint32Array(Gs());var ls=(n,o,a,l)=>{const A=vA,p=l+a;n^=-1;for(let O=l;O<p;O++)n=n>>>8^A[(n^o[O])&255];return n^-1},Ca={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ya={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8};const{_tr_init:ts,_tr_stored_block:mo,_tr_flush_block:jo,_tr_tally:zo,_tr_align:Oo}=uc,{Z_NO_FLUSH:Cs,Z_PARTIAL_FLUSH:oc,Z_FULL_FLUSH:Vc,Z_FINISH:Xs,Z_BLOCK:bA,Z_OK:xl,Z_STREAM_END:eA,Z_STREAM_ERROR:rl,Z_DATA_ERROR:Id,Z_BUF_ERROR:ru,Z_DEFAULT_COMPRESSION:jA,Z_FILTERED:cf,Z_HUFFMAN_ONLY:Wc,Z_RLE:Yu,Z_FIXED:Oc,Z_DEFAULT_STRATEGY:Fd,Z_UNKNOWN:Xo,Z_DEFLATED:No}=ya,Jo=9,yc=15,zl=8,zA=256+1+29,Md=30,Ld=19,$A=2*zA+1,ZA=15,Mo=3,wA=258,VA=wA+Mo+1,y0=32,nu=42,xh=57,Af=69,kd=73,Kf=91,Ch=103,Eu=113,uf=666,Cl=1,Bl=2,Nc=3,Pc=4,w0=3,_u=(n,o)=>(n.msg=Ca[o],o),Bh=n=>n*2-(n>4?9:0),Iu=n=>{let o=n.length;for(;--o>=0;)n[o]=0},Dd=n=>{let o,a,l,A=n.w_size;o=n.hash_size,l=o;do a=n.head[--l],n.head[l]=a>=A?a-A:0;while(--o);o=A,l=o;do a=n.prev[--l],n.prev[l]=a>=A?a-A:0;while(--o)};let iu=(n,o,a)=>(o<<n.hash_shift^a)&n.hash_mask;const tA=n=>{const o=n.state;let a=o.pending;a>n.avail_out&&(a=n.avail_out),a!==0&&(n.output.set(o.pending_buf.subarray(o.pending_out,o.pending_out+a),n.next_out),n.next_out+=a,o.pending_out+=a,n.total_out+=a,n.avail_out-=a,o.pending-=a,o.pending===0&&(o.pending_out=0))},wc=(n,o)=>{jo(n,n.block_start>=0?n.block_start:-1,n.strstart-n.block_start,o),n.block_start=n.strstart,tA(n.strm)},$o=(n,o)=>{n.pending_buf[n.pending++]=o},ed=(n,o)=>{n.pending_buf[n.pending++]=o>>>8&255,n.pending_buf[n.pending++]=o&255},Hf=(n,o,a,l)=>{let A=n.avail_in;return A>l&&(A=l),A===0?0:(n.avail_in-=A,o.set(n.input.subarray(n.next_in,n.next_in+A),a),n.state.wrap===1?n.adler=eo(n.adler,o,A,a):n.state.wrap===2&&(n.adler=ls(n.adler,o,A,a)),n.next_in+=A,n.total_in+=A,A)},jf=(n,o)=>{let a=n.max_chain_length,l=n.strstart,A,p,O=n.prev_length,_=n.nice_match;const U=n.strstart>n.w_size-VA?n.strstart-(n.w_size-VA):0,Z=n.window,oe=n.w_mask,Re=n.prev,ze=n.strstart+wA;let ae=Z[l+O-1],mt=Z[l+O];n.prev_length>=n.good_match&&(a>>=2),_>n.lookahead&&(_=n.lookahead);do if(A=o,!(Z[A+O]!==mt||Z[A+O-1]!==ae||Z[A]!==Z[l]||Z[++A]!==Z[l+1])){l+=2,A++;do;while(Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&Z[++l]===Z[++A]&&l<ze);if(p=wA-(ze-l),l=ze-wA,p>O){if(n.match_start=o,O=p,p>=_)break;ae=Z[l+O-1],mt=Z[l+O]}}while((o=Re[o&oe])>U&&--a!==0);return O<=n.lookahead?O:n.lookahead},Tc=n=>{const o=n.w_size;let a,l,A;do{if(l=n.window_size-n.lookahead-n.strstart,n.strstart>=o+(o-VA)&&(n.window.set(n.window.subarray(o,o+o-l),0),n.match_start-=o,n.strstart-=o,n.block_start-=o,n.insert>n.strstart&&(n.insert=n.strstart),Dd(n),l+=o),n.strm.avail_in===0)break;if(a=Hf(n.strm,n.window,n.strstart+n.lookahead,l),n.lookahead+=a,n.lookahead+n.insert>=Mo)for(A=n.strstart-n.insert,n.ins_h=n.window[A],n.ins_h=iu(n,n.ins_h,n.window[A+1]);n.insert&&(n.ins_h=iu(n,n.ins_h,n.window[A+Mo-1]),n.prev[A&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=A,A++,n.insert--,!(n.lookahead+n.insert<Mo)););}while(n.lookahead<VA&&n.strm.avail_in!==0)},td=(n,o)=>{let a=n.pending_buf_size-5>n.w_size?n.w_size:n.pending_buf_size-5,l,A,p,O=0,_=n.strm.avail_in;do{if(l=65535,p=n.bi_valid+42>>3,n.strm.avail_out<p||(p=n.strm.avail_out-p,A=n.strstart-n.block_start,l>A+n.strm.avail_in&&(l=A+n.strm.avail_in),l>p&&(l=p),l<a&&(l===0&&o!==Xs||o===Cs||l!==A+n.strm.avail_in)))break;O=o===Xs&&l===A+n.strm.avail_in?1:0,mo(n,0,0,O),n.pending_buf[n.pending-4]=l,n.pending_buf[n.pending-3]=l>>8,n.pending_buf[n.pending-2]=~l,n.pending_buf[n.pending-1]=~l>>8,tA(n.strm),A&&(A>l&&(A=l),n.strm.output.set(n.window.subarray(n.block_start,n.block_start+A),n.strm.next_out),n.strm.next_out+=A,n.strm.avail_out-=A,n.strm.total_out+=A,n.block_start+=A,l-=A),l&&(Hf(n.strm,n.strm.output,n.strm.next_out,l),n.strm.next_out+=l,n.strm.avail_out-=l,n.strm.total_out+=l)}while(O===0);return _-=n.strm.avail_in,_&&(_>=n.w_size?(n.matches=2,n.window.set(n.strm.input.subarray(n.strm.next_in-n.w_size,n.strm.next_in),0),n.strstart=n.w_size,n.insert=n.strstart):(n.window_size-n.strstart<=_&&(n.strstart-=n.w_size,n.window.set(n.window.subarray(n.w_size,n.w_size+n.strstart),0),n.matches<2&&n.matches++,n.insert>n.strstart&&(n.insert=n.strstart)),n.window.set(n.strm.input.subarray(n.strm.next_in-_,n.strm.next_in),n.strstart),n.strstart+=_,n.insert+=_>n.w_size-n.insert?n.w_size-n.insert:_),n.block_start=n.strstart),n.high_water<n.strstart&&(n.high_water=n.strstart),O?Pc:o!==Cs&&o!==Xs&&n.strm.avail_in===0&&n.strstart===n.block_start?Bl:(p=n.window_size-n.strstart,n.strm.avail_in>p&&n.block_start>=n.w_size&&(n.block_start-=n.w_size,n.strstart-=n.w_size,n.window.set(n.window.subarray(n.w_size,n.w_size+n.strstart),0),n.matches<2&&n.matches++,p+=n.w_size,n.insert>n.strstart&&(n.insert=n.strstart)),p>n.strm.avail_in&&(p=n.strm.avail_in),p&&(Hf(n.strm,n.window,n.strstart,p),n.strstart+=p,n.insert+=p>n.w_size-n.insert?n.w_size-n.insert:p),n.high_water<n.strstart&&(n.high_water=n.strstart),p=n.bi_valid+42>>3,p=n.pending_buf_size-p>65535?65535:n.pending_buf_size-p,a=p>n.w_size?n.w_size:p,A=n.strstart-n.block_start,(A>=a||(A||o===Xs)&&o!==Cs&&n.strm.avail_in===0&&A<=p)&&(l=A>p?p:A,O=o===Xs&&n.strm.avail_in===0&&l===A?1:0,mo(n,n.block_start,l,O),n.block_start+=l,tA(n.strm)),O?Nc:Cl)},df=(n,o)=>{let a,l;for(;;){if(n.lookahead<VA){if(Tc(n),n.lookahead<VA&&o===Cs)return Cl;if(n.lookahead===0)break}if(a=0,n.lookahead>=Mo&&(n.ins_h=iu(n,n.ins_h,n.window[n.strstart+Mo-1]),a=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),a!==0&&n.strstart-a<=n.w_size-VA&&(n.match_length=jf(n,a)),n.match_length>=Mo)if(l=zo(n,n.strstart-n.match_start,n.match_length-Mo),n.lookahead-=n.match_length,n.match_length<=n.max_lazy_match&&n.lookahead>=Mo){n.match_length--;do n.strstart++,n.ins_h=iu(n,n.ins_h,n.window[n.strstart+Mo-1]),a=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart;while(--n.match_length!==0);n.strstart++}else n.strstart+=n.match_length,n.match_length=0,n.ins_h=n.window[n.strstart],n.ins_h=iu(n,n.ins_h,n.window[n.strstart+1]);else l=zo(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++;if(l&&(wc(n,!1),n.strm.avail_out===0))return Cl}return n.insert=n.strstart<Mo-1?n.strstart:Mo-1,o===Xs?(wc(n,!0),n.strm.avail_out===0?Nc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?Cl:Bl},rd=(n,o)=>{let a,l,A;for(;;){if(n.lookahead<VA){if(Tc(n),n.lookahead<VA&&o===Cs)return Cl;if(n.lookahead===0)break}if(a=0,n.lookahead>=Mo&&(n.ins_h=iu(n,n.ins_h,n.window[n.strstart+Mo-1]),a=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart),n.prev_length=n.match_length,n.prev_match=n.match_start,n.match_length=Mo-1,a!==0&&n.prev_length<n.max_lazy_match&&n.strstart-a<=n.w_size-VA&&(n.match_length=jf(n,a),n.match_length<=5&&(n.strategy===cf||n.match_length===Mo&&n.strstart-n.match_start>4096)&&(n.match_length=Mo-1)),n.prev_length>=Mo&&n.match_length<=n.prev_length){A=n.strstart+n.lookahead-Mo,l=zo(n,n.strstart-1-n.prev_match,n.prev_length-Mo),n.lookahead-=n.prev_length-1,n.prev_length-=2;do++n.strstart<=A&&(n.ins_h=iu(n,n.ins_h,n.window[n.strstart+Mo-1]),a=n.prev[n.strstart&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=n.strstart);while(--n.prev_length!==0);if(n.match_available=0,n.match_length=Mo-1,n.strstart++,l&&(wc(n,!1),n.strm.avail_out===0))return Cl}else if(n.match_available){if(l=zo(n,0,n.window[n.strstart-1]),l&&wc(n,!1),n.strstart++,n.lookahead--,n.strm.avail_out===0)return Cl}else n.match_available=1,n.strstart++,n.lookahead--}return n.match_available&&(l=zo(n,0,n.window[n.strstart-1]),n.match_available=0),n.insert=n.strstart<Mo-1?n.strstart:Mo-1,o===Xs?(wc(n,!0),n.strm.avail_out===0?Nc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?Cl:Bl},x0=(n,o)=>{let a,l,A,p;const O=n.window;for(;;){if(n.lookahead<=wA){if(Tc(n),n.lookahead<=wA&&o===Cs)return Cl;if(n.lookahead===0)break}if(n.match_length=0,n.lookahead>=Mo&&n.strstart>0&&(A=n.strstart-1,l=O[A],l===O[++A]&&l===O[++A]&&l===O[++A])){p=n.strstart+wA;do;while(l===O[++A]&&l===O[++A]&&l===O[++A]&&l===O[++A]&&l===O[++A]&&l===O[++A]&&l===O[++A]&&l===O[++A]&&A<p);n.match_length=wA-(p-A),n.match_length>n.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>=Mo?(a=zo(n,1,n.match_length-Mo),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(a=zo(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),a&&(wc(n,!1),n.strm.avail_out===0))return Cl}return n.insert=0,o===Xs?(wc(n,!0),n.strm.avail_out===0?Nc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?Cl:Bl},C0=(n,o)=>{let a;for(;;){if(n.lookahead===0&&(Tc(n),n.lookahead===0)){if(o===Cs)return Cl;break}if(n.match_length=0,a=zo(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++,a&&(wc(n,!1),n.strm.avail_out===0))return Cl}return n.insert=0,o===Xs?(wc(n,!0),n.strm.avail_out===0?Nc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?Cl:Bl};function $l(n,o,a,l,A){this.good_length=n,this.max_lazy=o,this.nice_length=a,this.max_chain=l,this.func=A}const nd=[new $l(0,0,0,0,td),new $l(4,4,8,4,df),new $l(4,5,16,8,df),new $l(4,6,32,32,df),new $l(4,4,16,16,rd),new $l(8,16,32,32,rd),new $l(8,16,128,128,rd),new $l(8,32,128,256,rd),new $l(32,128,258,1024,rd),new $l(32,258,258,4096,rd)],B0=n=>{n.window_size=2*n.w_size,Iu(n.head),n.max_lazy_match=nd[n.level].max_lazy,n.good_match=nd[n.level].good_length,n.nice_match=nd[n.level].nice_length,n.max_chain_length=nd[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=Mo-1,n.match_available=0,n.ins_h=0};function pe(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=No,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array($A*2),this.dyn_dtree=new Uint16Array((2*Md+1)*2),this.bl_tree=new Uint16Array((2*Ld+1)*2),Iu(this.dyn_ltree),Iu(this.dyn_dtree),Iu(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(ZA+1),this.heap=new Uint16Array(2*zA+1),Iu(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*zA+1),Iu(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ce=n=>{if(!n)return 1;const o=n.state;return!o||o.strm!==n||o.status!==nu&&o.status!==xh&&o.status!==Af&&o.status!==kd&&o.status!==Kf&&o.status!==Ch&&o.status!==Eu&&o.status!==uf?1:0},Ge=n=>{if(Ce(n))return _u(n,rl);n.total_in=n.total_out=0,n.data_type=Xo;const o=n.state;return o.pending=0,o.pending_out=0,o.wrap<0&&(o.wrap=-o.wrap),o.status=o.wrap===2?xh:o.wrap?nu:Eu,n.adler=o.wrap===2?0:1,o.last_flush=-2,ts(o),xl},lt=n=>{const o=Ge(n);return o===xl&&B0(n.state),o},Ct=(n,o)=>Ce(n)||n.state.wrap!==2?rl:(n.state.gzhead=o,xl),vt=(n,o,a,l,A,p)=>{if(!n)return rl;let O=1;if(o===jA&&(o=6),l<0?(O=0,l=-l):l>15&&(O=2,l-=16),A<1||A>Jo||a!==No||l<8||l>15||o<0||o>9||p<0||p>Oc||l===8&&O!==1)return _u(n,rl);l===8&&(l=9);const _=new pe;return n.state=_,_.strm=n,_.status=nu,_.wrap=O,_.gzhead=null,_.w_bits=l,_.w_size=1<<_.w_bits,_.w_mask=_.w_size-1,_.hash_bits=A+7,_.hash_size=1<<_.hash_bits,_.hash_mask=_.hash_size-1,_.hash_shift=~~((_.hash_bits+Mo-1)/Mo),_.window=new Uint8Array(_.w_size*2),_.head=new Uint16Array(_.hash_size),_.prev=new Uint16Array(_.w_size),_.lit_bufsize=1<<A+6,_.pending_buf_size=_.lit_bufsize*4,_.pending_buf=new Uint8Array(_.pending_buf_size),_.sym_buf=_.lit_bufsize,_.sym_end=(_.lit_bufsize-1)*3,_.level=o,_.strategy=p,_.method=a,lt(n)},$t=(n,o)=>vt(n,o,No,yc,zl,Fd),zt=(n,o)=>{if(Ce(n)||o>bA||o<0)return n?_u(n,rl):rl;const a=n.state;if(!n.output||n.avail_in!==0&&!n.input||a.status===uf&&o!==Xs)return _u(n,n.avail_out===0?ru:rl);const l=a.last_flush;if(a.last_flush=o,a.pending!==0){if(tA(n),n.avail_out===0)return a.last_flush=-1,xl}else if(n.avail_in===0&&Bh(o)<=Bh(l)&&o!==Xs)return _u(n,ru);if(a.status===uf&&n.avail_in!==0)return _u(n,ru);if(a.status===nu&&a.wrap===0&&(a.status=Eu),a.status===nu){let A=No+(a.w_bits-8<<4)<<8,p=-1;if(a.strategy>=Wc||a.level<2?p=0:a.level<6?p=1:a.level===6?p=2:p=3,A|=p<<6,a.strstart!==0&&(A|=y0),A+=31-A%31,ed(a,A),a.strstart!==0&&(ed(a,n.adler>>>16),ed(a,n.adler&65535)),n.adler=1,a.status=Eu,tA(n),a.pending!==0)return a.last_flush=-1,xl}if(a.status===xh){if(n.adler=0,$o(a,31),$o(a,139),$o(a,8),a.gzhead)$o(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),$o(a,a.gzhead.time&255),$o(a,a.gzhead.time>>8&255),$o(a,a.gzhead.time>>16&255),$o(a,a.gzhead.time>>24&255),$o(a,a.level===9?2:a.strategy>=Wc||a.level<2?4:0),$o(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&($o(a,a.gzhead.extra.length&255),$o(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(n.adler=ls(n.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=Af;else if($o(a,0),$o(a,0),$o(a,0),$o(a,0),$o(a,0),$o(a,a.level===9?2:a.strategy>=Wc||a.level<2?4:0),$o(a,w0),a.status=Eu,tA(n),a.pending!==0)return a.last_flush=-1,xl}if(a.status===Af){if(a.gzhead.extra){let A=a.pending,p=(a.gzhead.extra.length&65535)-a.gzindex;for(;a.pending+p>a.pending_buf_size;){let _=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+_),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>A&&(n.adler=ls(n.adler,a.pending_buf,a.pending-A,A)),a.gzindex+=_,tA(n),a.pending!==0)return a.last_flush=-1,xl;A=0,p-=_}let O=new Uint8Array(a.gzhead.extra);a.pending_buf.set(O.subarray(a.gzindex,a.gzindex+p),a.pending),a.pending+=p,a.gzhead.hcrc&&a.pending>A&&(n.adler=ls(n.adler,a.pending_buf,a.pending-A,A)),a.gzindex=0}a.status=kd}if(a.status===kd){if(a.gzhead.name){let A=a.pending,p;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>A&&(n.adler=ls(n.adler,a.pending_buf,a.pending-A,A)),tA(n),a.pending!==0)return a.last_flush=-1,xl;A=0}a.gzindex<a.gzhead.name.length?p=a.gzhead.name.charCodeAt(a.gzindex++)&255:p=0,$o(a,p)}while(p!==0);a.gzhead.hcrc&&a.pending>A&&(n.adler=ls(n.adler,a.pending_buf,a.pending-A,A)),a.gzindex=0}a.status=Kf}if(a.status===Kf){if(a.gzhead.comment){let A=a.pending,p;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>A&&(n.adler=ls(n.adler,a.pending_buf,a.pending-A,A)),tA(n),a.pending!==0)return a.last_flush=-1,xl;A=0}a.gzindex<a.gzhead.comment.length?p=a.gzhead.comment.charCodeAt(a.gzindex++)&255:p=0,$o(a,p)}while(p!==0);a.gzhead.hcrc&&a.pending>A&&(n.adler=ls(n.adler,a.pending_buf,a.pending-A,A))}a.status=Ch}if(a.status===Ch){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(tA(n),a.pending!==0))return a.last_flush=-1,xl;$o(a,n.adler&255),$o(a,n.adler>>8&255),n.adler=0}if(a.status=Eu,tA(n),a.pending!==0)return a.last_flush=-1,xl}if(n.avail_in!==0||a.lookahead!==0||o!==Cs&&a.status!==uf){let A=a.level===0?td(a,o):a.strategy===Wc?C0(a,o):a.strategy===Yu?x0(a,o):nd[a.level].func(a,o);if((A===Nc||A===Pc)&&(a.status=uf),A===Cl||A===Nc)return n.avail_out===0&&(a.last_flush=-1),xl;if(A===Bl&&(o===oc?Oo(a):o!==bA&&(mo(a,0,0,!1),o===Vc&&(Iu(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),tA(n),n.avail_out===0))return a.last_flush=-1,xl}return o!==Xs?xl:a.wrap<=0?eA:(a.wrap===2?($o(a,n.adler&255),$o(a,n.adler>>8&255),$o(a,n.adler>>16&255),$o(a,n.adler>>24&255),$o(a,n.total_in&255),$o(a,n.total_in>>8&255),$o(a,n.total_in>>16&255),$o(a,n.total_in>>24&255)):(ed(a,n.adler>>>16),ed(a,n.adler&65535)),tA(n),a.wrap>0&&(a.wrap=-a.wrap),a.pending!==0?xl:eA)},Qt=n=>{if(Ce(n))return rl;const o=n.state.status;return n.state=null,o===Eu?_u(n,Id):xl},dr=(n,o)=>{let a=o.length;if(Ce(n))return rl;const l=n.state,A=l.wrap;if(A===2||A===1&&l.status!==nu||l.lookahead)return rl;if(A===1&&(n.adler=eo(n.adler,o,a,0)),l.wrap=0,a>=l.w_size){A===0&&(Iu(l.head),l.strstart=0,l.block_start=0,l.insert=0);let U=new Uint8Array(l.w_size);U.set(o.subarray(a-l.w_size,a),0),o=U,a=l.w_size}const p=n.avail_in,O=n.next_in,_=n.input;for(n.avail_in=a,n.next_in=0,n.input=o,Tc(l);l.lookahead>=Mo;){let U=l.strstart,Z=l.lookahead-(Mo-1);do l.ins_h=iu(l,l.ins_h,l.window[U+Mo-1]),l.prev[U&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=U,U++;while(--Z);l.strstart=U,l.lookahead=Mo-1,Tc(l)}return l.strstart+=l.lookahead,l.block_start=l.strstart,l.insert=l.lookahead,l.lookahead=0,l.match_length=l.prev_length=Mo-1,l.match_available=0,n.next_in=O,n.input=_,n.avail_in=p,l.wrap=A,xl};var Ir=$t,gr=vt,tn=lt,Vr=Ge,Yr=Ct,Pn=zt,Cn=Qt,Ln=dr,Sn="pako deflate (from Nodeca project)",zn={deflateInit:Ir,deflateInit2:gr,deflateReset:tn,deflateResetKeep:Vr,deflateSetHeader:Yr,deflate:Pn,deflateEnd:Cn,deflateSetDictionary:Ln,deflateInfo:Sn};const Pi=(n,o)=>Object.prototype.hasOwnProperty.call(n,o);var Ri=function(n){const o=Array.prototype.slice.call(arguments,1);for(;o.length;){const a=o.shift();if(a){if(typeof a!="object")throw new TypeError(a+"must be non-object");for(const l in a)Pi(a,l)&&(n[l]=a[l])}}return n},hi=n=>{let o=0;for(let l=0,A=n.length;l<A;l++)o+=n[l].length;const a=new Uint8Array(o);for(let l=0,A=0,p=n.length;l<p;l++){let O=n[l];a.set(O,A),A+=O.length}return a},ea={assign:Ri,flattenChunks:hi};let wa=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(n){wa=!1}const Jn=new Uint8Array(256);for(let n=0;n<256;n++)Jn[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;Jn[254]=Jn[254]=1;var vi=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let o,a,l,A,p,O=n.length,_=0;for(A=0;A<O;A++)a=n.charCodeAt(A),(a&64512)===55296&&A+1<O&&(l=n.charCodeAt(A+1),(l&64512)===56320&&(a=65536+(a-55296<<10)+(l-56320),A++)),_+=a<128?1:a<2048?2:a<65536?3:4;for(o=new Uint8Array(_),p=0,A=0;p<_;A++)a=n.charCodeAt(A),(a&64512)===55296&&A+1<O&&(l=n.charCodeAt(A+1),(l&64512)===56320&&(a=65536+(a-55296<<10)+(l-56320),A++)),a<128?o[p++]=a:a<2048?(o[p++]=192|a>>>6,o[p++]=128|a&63):a<65536?(o[p++]=224|a>>>12,o[p++]=128|a>>>6&63,o[p++]=128|a&63):(o[p++]=240|a>>>18,o[p++]=128|a>>>12&63,o[p++]=128|a>>>6&63,o[p++]=128|a&63);return o};const ni=(n,o)=>{if(o<65534&&n.subarray&&wa)return String.fromCharCode.apply(null,n.length===o?n:n.subarray(0,o));let a="";for(let l=0;l<o;l++)a+=String.fromCharCode(n[l]);return a};var Tn=(n,o)=>{const a=o||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,o));let l,A;const p=new Array(a*2);for(A=0,l=0;l<a;){let O=n[l++];if(O<128){p[A++]=O;continue}let _=Jn[O];if(_>4){p[A++]=65533,l+=_-1;continue}for(O&=_===2?31:_===3?15:7;_>1&&l<a;)O=O<<6|n[l++]&63,_--;if(_>1){p[A++]=65533;continue}O<65536?p[A++]=O:(O-=65536,p[A++]=55296|O>>10&1023,p[A++]=56320|O&1023)}return ni(p,A)},ii=(n,o)=>{o=o||n.length,o>n.length&&(o=n.length);let a=o-1;for(;a>=0&&(n[a]&192)===128;)a--;return a<0||a===0?o:a+Jn[n[a]]>o?a:o},Hi={string2buf:vi,buf2string:Tn,utf8border:ii};function Oa(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var pa=Oa;const ji=Object.prototype.toString,{Z_NO_FLUSH:_a,Z_SYNC_FLUSH:Qa,Z_FULL_FLUSH:Yo,Z_FINISH:so,Z_OK:vs,Z_STREAM_END:cs,Z_DEFAULT_COMPRESSION:ma,Z_DEFAULT_STRATEGY:al,Z_DEFLATED:po}=ya;function qo(n){this.options=ea.assign({level:ma,method:po,chunkSize:16384,windowBits:15,memLevel:8,strategy:al},n||{});let o=this.options;o.raw&&o.windowBits>0?o.windowBits=-o.windowBits:o.gzip&&o.windowBits>0&&o.windowBits<16&&(o.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new pa,this.strm.avail_out=0;let a=zn.deflateInit2(this.strm,o.level,o.method,o.windowBits,o.memLevel,o.strategy);if(a!==vs)throw new Error(Ca[a]);if(o.header&&zn.deflateSetHeader(this.strm,o.header),o.dictionary){let l;if(typeof o.dictionary=="string"?l=Hi.string2buf(o.dictionary):ji.call(o.dictionary)==="[object ArrayBuffer]"?l=new Uint8Array(o.dictionary):l=o.dictionary,a=zn.deflateSetDictionary(this.strm,l),a!==vs)throw new Error(Ca[a]);this._dict_set=!0}}qo.prototype.push=function(n,o){const a=this.strm,l=this.options.chunkSize;let A,p;if(this.ended)return!1;for(o===~~o?p=o:p=o===!0?so:_a,typeof n=="string"?a.input=Hi.string2buf(n):ji.call(n)==="[object ArrayBuffer]"?a.input=new Uint8Array(n):a.input=n,a.next_in=0,a.avail_in=a.input.length;;){if(a.avail_out===0&&(a.output=new Uint8Array(l),a.next_out=0,a.avail_out=l),(p===Qa||p===Yo)&&a.avail_out<=6){this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;continue}if(A=zn.deflate(a,p),A===cs)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),A=zn.deflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===vs;if(a.avail_out===0){this.onData(a.output);continue}if(p>0&&a.next_out>0){this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;continue}if(a.avail_in===0)break}return!0},qo.prototype.onData=function(n){this.chunks.push(n)},qo.prototype.onEnd=function(n){n===vs&&(this.result=ea.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function rs(n,o){const a=new qo(o);if(a.push(n,!0),a.err)throw a.msg||Ca[a.err];return a.result}function xc(n,o){return o=o||{},o.raw=!0,rs(n,o)}function ai(n,o){return o=o||{},o.gzip=!0,rs(n,o)}var zi=qo,Qi=rs,ki=xc,go=ai,Di=ya,ca={Deflate:zi,deflate:Qi,deflateRaw:ki,gzip:go,constants:Di};const ja=16209,$a=16191;var Ml=function(o,a){let l,A,p,O,_,U,Z,oe,Re,ze,ae,mt,ut,bt,ot,Gt,Rt,It,kr,rn,Wr,ir,Mt,xr;const nt=o.state;l=o.next_in,Mt=o.input,A=l+(o.avail_in-5),p=o.next_out,xr=o.output,O=p-(a-o.avail_out),_=p+(o.avail_out-257),U=nt.dmax,Z=nt.wsize,oe=nt.whave,Re=nt.wnext,ze=nt.window,ae=nt.hold,mt=nt.bits,ut=nt.lencode,bt=nt.distcode,ot=(1<<nt.lenbits)-1,Gt=(1<<nt.distbits)-1;e:do{mt<15&&(ae+=Mt[l++]<<mt,mt+=8,ae+=Mt[l++]<<mt,mt+=8),Rt=ut[ae&ot];t:for(;;){if(It=Rt>>>24,ae>>>=It,mt-=It,It=Rt>>>16&255,It===0)xr[p++]=Rt&65535;else if(It&16){kr=Rt&65535,It&=15,It&&(mt<It&&(ae+=Mt[l++]<<mt,mt+=8),kr+=ae&(1<<It)-1,ae>>>=It,mt-=It),mt<15&&(ae+=Mt[l++]<<mt,mt+=8,ae+=Mt[l++]<<mt,mt+=8),Rt=bt[ae&Gt];r:for(;;){if(It=Rt>>>24,ae>>>=It,mt-=It,It=Rt>>>16&255,It&16){if(rn=Rt&65535,It&=15,mt<It&&(ae+=Mt[l++]<<mt,mt+=8,mt<It&&(ae+=Mt[l++]<<mt,mt+=8)),rn+=ae&(1<<It)-1,rn>U){o.msg="invalid distance too far back",nt.mode=ja;break e}if(ae>>>=It,mt-=It,It=p-O,rn>It){if(It=rn-It,It>oe&&nt.sane){o.msg="invalid distance too far back",nt.mode=ja;break e}if(Wr=0,ir=ze,Re===0){if(Wr+=Z-It,It<kr){kr-=It;do xr[p++]=ze[Wr++];while(--It);Wr=p-rn,ir=xr}}else if(Re<It){if(Wr+=Z+Re-It,It-=Re,It<kr){kr-=It;do xr[p++]=ze[Wr++];while(--It);if(Wr=0,Re<kr){It=Re,kr-=It;do xr[p++]=ze[Wr++];while(--It);Wr=p-rn,ir=xr}}}else if(Wr+=Re-It,It<kr){kr-=It;do xr[p++]=ze[Wr++];while(--It);Wr=p-rn,ir=xr}for(;kr>2;)xr[p++]=ir[Wr++],xr[p++]=ir[Wr++],xr[p++]=ir[Wr++],kr-=3;kr&&(xr[p++]=ir[Wr++],kr>1&&(xr[p++]=ir[Wr++]))}else{Wr=p-rn;do xr[p++]=xr[Wr++],xr[p++]=xr[Wr++],xr[p++]=xr[Wr++],kr-=3;while(kr>2);kr&&(xr[p++]=xr[Wr++],kr>1&&(xr[p++]=xr[Wr++]))}}else if(It&64){o.msg="invalid distance code",nt.mode=ja;break e}else{Rt=bt[(Rt&65535)+(ae&(1<<It)-1)];continue r}break}}else if(It&64)if(It&32){nt.mode=$a;break e}else{o.msg="invalid literal/length code",nt.mode=ja;break e}else{Rt=ut[(Rt&65535)+(ae&(1<<It)-1)];continue t}break}}while(l<A&&p<_);kr=mt>>3,l-=kr,mt-=kr<<3,ae&=(1<<mt)-1,o.next_in=l,o.next_out=p,o.avail_in=l<A?5+(A-l):5-(l-A),o.avail_out=p<_?257+(_-p):257-(p-_),nt.hold=ae,nt.bits=mt};const nl=15,Gc=852,Us=592,Uc=0,Hn=1,dc=2,Fu=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),lo=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),mn=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Lo=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]);var As=(n,o,a,l,A,p,O,_)=>{const U=_.bits;let Z=0,oe=0,Re=0,ze=0,ae=0,mt=0,ut=0,bt=0,ot=0,Gt=0,Rt,It,kr,rn,Wr,ir=null,Mt;const xr=new Uint16Array(nl+1),nt=new Uint16Array(nl+1);let yt=null,Wt,Ht,Tr;for(Z=0;Z<=nl;Z++)xr[Z]=0;for(oe=0;oe<l;oe++)xr[o[a+oe]]++;for(ae=U,ze=nl;ze>=1&&xr[ze]===0;ze--);if(ae>ze&&(ae=ze),ze===0)return A[p++]=1<<24|64<<16|0,A[p++]=1<<24|64<<16|0,_.bits=1,0;for(Re=1;Re<ze&&xr[Re]===0;Re++);for(ae<Re&&(ae=Re),bt=1,Z=1;Z<=nl;Z++)if(bt<<=1,bt-=xr[Z],bt<0)return-1;if(bt>0&&(n===Uc||ze!==1))return-1;for(nt[1]=0,Z=1;Z<nl;Z++)nt[Z+1]=nt[Z]+xr[Z];for(oe=0;oe<l;oe++)o[a+oe]!==0&&(O[nt[o[a+oe]]++]=oe);if(n===Uc?(ir=yt=O,Mt=20):n===Hn?(ir=Fu,yt=lo,Mt=257):(ir=mn,yt=Lo,Mt=0),Gt=0,oe=0,Z=Re,Wr=p,mt=ae,ut=0,kr=-1,ot=1<<ae,rn=ot-1,n===Hn&&ot>Gc||n===dc&&ot>Us)return 1;for(;;){Wt=Z-ut,O[oe]+1<Mt?(Ht=0,Tr=O[oe]):O[oe]>=Mt?(Ht=yt[O[oe]-Mt],Tr=ir[O[oe]-Mt]):(Ht=96,Tr=0),Rt=1<<Z-ut,It=1<<mt,Re=It;do It-=Rt,A[Wr+(Gt>>ut)+It]=Wt<<24|Ht<<16|Tr|0;while(It!==0);for(Rt=1<<Z-1;Gt&Rt;)Rt>>=1;if(Rt!==0?(Gt&=Rt-1,Gt+=Rt):Gt=0,oe++,--xr[Z]===0){if(Z===ze)break;Z=o[a+O[oe]]}if(Z>ae&&(Gt&rn)!==kr){for(ut===0&&(ut=ae),Wr+=Re,mt=Z-ut,bt=1<<mt;mt+ut<ze&&(bt-=xr[mt+ut],!(bt<=0));)mt++,bt<<=1;if(ot+=1<<mt,n===Hn&&ot>Gc||n===dc&&ot>Us)return 1;kr=Gt&rn,A[kr]=ae<<24|mt<<16|Wr-p|0}}return Gt!==0&&(A[Wr+Gt]=Z-ut<<24|64<<16|0),_.bits=ae,0};const na=0,Sl=1,Zl=2,{Z_FINISH:Rc,Z_BLOCK:Cc,Z_TREES:El,Z_OK:Al,Z_STREAM_END:au,Z_NEED_DICT:Ll,Z_STREAM_ERROR:Rs,Z_DATA_ERROR:_l,Z_MEM_ERROR:il,Z_BUF_ERROR:Ms,Z_DEFLATED:Bc}=ya,xA=16180,PA=16181,CA=16182,ff=16183,zf=16184,io=16185,Zo=16186,Vl=16187,us=16188,kl=16189,Wl=16190,Js=16191,BA=16192,hf=16193,pf=16194,id=16195,co=16196,Bs=16197,SA=16198,EA=16199,Gl=16200,$f=16201,TA=16202,Zf=16203,Vf=16204,ad=16205,Od=16206,Nd=16207,od=16208,zr=16209,Pd=16210,mf=16211,Wf=852,gf=592,Eh=15,Gf=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function bl(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Mu=n=>{if(!n)return 1;const o=n.state;return!o||o.strm!==n||o.mode<xA||o.mode>mf?1:0},vf=n=>{if(Mu(n))return Rs;const o=n.state;return n.total_in=n.total_out=o.total=0,n.msg="",o.wrap&&(n.adler=o.wrap&1),o.mode=xA,o.last=0,o.havedict=0,o.flags=-1,o.dmax=32768,o.head=null,o.hold=0,o.bits=0,o.lencode=o.lendyn=new Int32Array(Wf),o.distcode=o.distdyn=new Int32Array(gf),o.sane=1,o.back=-1,Al},sd=n=>{if(Mu(n))return Rs;const o=n.state;return o.wsize=0,o.whave=0,o.wnext=0,vf(n)},bf=(n,o)=>{let a;if(Mu(n))return Rs;const l=n.state;return o<0?(a=0,o=-o):(a=(o>>4)+5,o<48&&(o&=15)),o&&(o<8||o>15)?Rs:(l.window!==null&&l.wbits!==o&&(l.window=null),l.wrap=a,l.wbits=o,sd(n))},UA=(n,o)=>{if(!n)return Rs;const a=new bl;n.state=a,a.strm=n,a.window=null,a.mode=xA;const l=bf(n,o);return l!==Al&&(n.state=null),l},ou=n=>UA(n,Eh);let ds=!0,Qc,Xl;const Lu=n=>{if(ds){Qc=new Int32Array(512),Xl=new Int32Array(32);let o=0;for(;o<144;)n.lens[o++]=8;for(;o<256;)n.lens[o++]=9;for(;o<280;)n.lens[o++]=7;for(;o<288;)n.lens[o++]=8;for(As(Sl,n.lens,0,288,Qc,0,n.work,{bits:9}),o=0;o<32;)n.lens[o++]=5;As(Zl,n.lens,0,32,Xl,0,n.work,{bits:5}),ds=!1}n.lencode=Qc,n.lenbits=9,n.distcode=Xl,n.distbits=5},Ao=(n,o,a,l)=>{let A;const p=n.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new Uint8Array(p.wsize)),l>=p.wsize?(p.window.set(o.subarray(a-p.wsize,a),0),p.wnext=0,p.whave=p.wsize):(A=p.wsize-p.wnext,A>l&&(A=l),p.window.set(o.subarray(a-l,a-l+A),p.wnext),l-=A,l?(p.window.set(o.subarray(a-l,a),0),p.wnext=l,p.whave=p.wsize):(p.wnext+=A,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=A))),0},vo=(n,o)=>{let a,l,A,p,O,_,U,Z,oe,Re,ze,ae,mt,ut,bt=0,ot,Gt,Rt,It,kr,rn,Wr,ir;const Mt=new Uint8Array(4);let xr,nt;const yt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Mu(n)||!n.output||!n.input&&n.avail_in!==0)return Rs;a=n.state,a.mode===Js&&(a.mode=BA),O=n.next_out,A=n.output,U=n.avail_out,p=n.next_in,l=n.input,_=n.avail_in,Z=a.hold,oe=a.bits,Re=_,ze=U,ir=Al;e:for(;;)switch(a.mode){case xA:if(a.wrap===0){a.mode=BA;break}for(;oe<16;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}if(a.wrap&2&&Z===35615){a.wbits===0&&(a.wbits=15),a.check=0,Mt[0]=Z&255,Mt[1]=Z>>>8&255,a.check=ls(a.check,Mt,2,0),Z=0,oe=0,a.mode=PA;break}if(a.head&&(a.head.done=!1),!(a.wrap&1)||(((Z&255)<<8)+(Z>>8))%31){n.msg="incorrect header check",a.mode=zr;break}if((Z&15)!==Bc){n.msg="unknown compression method",a.mode=zr;break}if(Z>>>=4,oe-=4,Wr=(Z&15)+8,a.wbits===0&&(a.wbits=Wr),Wr>15||Wr>a.wbits){n.msg="invalid window size",a.mode=zr;break}a.dmax=1<<a.wbits,a.flags=0,n.adler=a.check=1,a.mode=Z&512?kl:Js,Z=0,oe=0;break;case PA:for(;oe<16;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}if(a.flags=Z,(a.flags&255)!==Bc){n.msg="unknown compression method",a.mode=zr;break}if(a.flags&57344){n.msg="unknown header flags set",a.mode=zr;break}a.head&&(a.head.text=Z>>8&1),a.flags&512&&a.wrap&4&&(Mt[0]=Z&255,Mt[1]=Z>>>8&255,a.check=ls(a.check,Mt,2,0)),Z=0,oe=0,a.mode=CA;case CA:for(;oe<32;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}a.head&&(a.head.time=Z),a.flags&512&&a.wrap&4&&(Mt[0]=Z&255,Mt[1]=Z>>>8&255,Mt[2]=Z>>>16&255,Mt[3]=Z>>>24&255,a.check=ls(a.check,Mt,4,0)),Z=0,oe=0,a.mode=ff;case ff:for(;oe<16;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}a.head&&(a.head.xflags=Z&255,a.head.os=Z>>8),a.flags&512&&a.wrap&4&&(Mt[0]=Z&255,Mt[1]=Z>>>8&255,a.check=ls(a.check,Mt,2,0)),Z=0,oe=0,a.mode=zf;case zf:if(a.flags&1024){for(;oe<16;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}a.length=Z,a.head&&(a.head.extra_len=Z),a.flags&512&&a.wrap&4&&(Mt[0]=Z&255,Mt[1]=Z>>>8&255,a.check=ls(a.check,Mt,2,0)),Z=0,oe=0}else a.head&&(a.head.extra=null);a.mode=io;case io:if(a.flags&1024&&(ae=a.length,ae>_&&(ae=_),ae&&(a.head&&(Wr=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(l.subarray(p,p+ae),Wr)),a.flags&512&&a.wrap&4&&(a.check=ls(a.check,l,ae,p)),_-=ae,p+=ae,a.length-=ae),a.length))break e;a.length=0,a.mode=Zo;case Zo:if(a.flags&2048){if(_===0)break e;ae=0;do Wr=l[p+ae++],a.head&&Wr&&a.length<65536&&(a.head.name+=String.fromCharCode(Wr));while(Wr&&ae<_);if(a.flags&512&&a.wrap&4&&(a.check=ls(a.check,l,ae,p)),_-=ae,p+=ae,Wr)break e}else a.head&&(a.head.name=null);a.length=0,a.mode=Vl;case Vl:if(a.flags&4096){if(_===0)break e;ae=0;do Wr=l[p+ae++],a.head&&Wr&&a.length<65536&&(a.head.comment+=String.fromCharCode(Wr));while(Wr&&ae<_);if(a.flags&512&&a.wrap&4&&(a.check=ls(a.check,l,ae,p)),_-=ae,p+=ae,Wr)break e}else a.head&&(a.head.comment=null);a.mode=us;case us:if(a.flags&512){for(;oe<16;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}if(a.wrap&4&&Z!==(a.check&65535)){n.msg="header crc mismatch",a.mode=zr;break}Z=0,oe=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),n.adler=a.check=0,a.mode=Js;break;case kl:for(;oe<32;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}n.adler=a.check=Gf(Z),Z=0,oe=0,a.mode=Wl;case Wl:if(a.havedict===0)return n.next_out=O,n.avail_out=U,n.next_in=p,n.avail_in=_,a.hold=Z,a.bits=oe,Ll;n.adler=a.check=1,a.mode=Js;case Js:if(o===Cc||o===El)break e;case BA:if(a.last){Z>>>=oe&7,oe-=oe&7,a.mode=Od;break}for(;oe<3;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}switch(a.last=Z&1,Z>>>=1,oe-=1,Z&3){case 0:a.mode=hf;break;case 1:if(Lu(a),a.mode=EA,o===El){Z>>>=2,oe-=2;break e}break;case 2:a.mode=co;break;case 3:n.msg="invalid block type",a.mode=zr}Z>>>=2,oe-=2;break;case hf:for(Z>>>=oe&7,oe-=oe&7;oe<32;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}if((Z&65535)!==(Z>>>16^65535)){n.msg="invalid stored block lengths",a.mode=zr;break}if(a.length=Z&65535,Z=0,oe=0,a.mode=pf,o===El)break e;case pf:a.mode=id;case id:if(ae=a.length,ae){if(ae>_&&(ae=_),ae>U&&(ae=U),ae===0)break e;A.set(l.subarray(p,p+ae),O),_-=ae,p+=ae,U-=ae,O+=ae,a.length-=ae;break}a.mode=Js;break;case co:for(;oe<14;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}if(a.nlen=(Z&31)+257,Z>>>=5,oe-=5,a.ndist=(Z&31)+1,Z>>>=5,oe-=5,a.ncode=(Z&15)+4,Z>>>=4,oe-=4,a.nlen>286||a.ndist>30){n.msg="too many length or distance symbols",a.mode=zr;break}a.have=0,a.mode=Bs;case Bs:for(;a.have<a.ncode;){for(;oe<3;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}a.lens[yt[a.have++]]=Z&7,Z>>>=3,oe-=3}for(;a.have<19;)a.lens[yt[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,xr={bits:a.lenbits},ir=As(na,a.lens,0,19,a.lencode,0,a.work,xr),a.lenbits=xr.bits,ir){n.msg="invalid code lengths set",a.mode=zr;break}a.have=0,a.mode=SA;case SA:for(;a.have<a.nlen+a.ndist;){for(;bt=a.lencode[Z&(1<<a.lenbits)-1],ot=bt>>>24,Gt=bt>>>16&255,Rt=bt&65535,!(ot<=oe);){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}if(Rt<16)Z>>>=ot,oe-=ot,a.lens[a.have++]=Rt;else{if(Rt===16){for(nt=ot+2;oe<nt;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}if(Z>>>=ot,oe-=ot,a.have===0){n.msg="invalid bit length repeat",a.mode=zr;break}Wr=a.lens[a.have-1],ae=3+(Z&3),Z>>>=2,oe-=2}else if(Rt===17){for(nt=ot+3;oe<nt;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}Z>>>=ot,oe-=ot,Wr=0,ae=3+(Z&7),Z>>>=3,oe-=3}else{for(nt=ot+7;oe<nt;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}Z>>>=ot,oe-=ot,Wr=0,ae=11+(Z&127),Z>>>=7,oe-=7}if(a.have+ae>a.nlen+a.ndist){n.msg="invalid bit length repeat",a.mode=zr;break}for(;ae--;)a.lens[a.have++]=Wr}}if(a.mode===zr)break;if(a.lens[256]===0){n.msg="invalid code -- missing end-of-block",a.mode=zr;break}if(a.lenbits=9,xr={bits:a.lenbits},ir=As(Sl,a.lens,0,a.nlen,a.lencode,0,a.work,xr),a.lenbits=xr.bits,ir){n.msg="invalid literal/lengths set",a.mode=zr;break}if(a.distbits=6,a.distcode=a.distdyn,xr={bits:a.distbits},ir=As(Zl,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,xr),a.distbits=xr.bits,ir){n.msg="invalid distances set",a.mode=zr;break}if(a.mode=EA,o===El)break e;case EA:a.mode=Gl;case Gl:if(_>=6&&U>=258){n.next_out=O,n.avail_out=U,n.next_in=p,n.avail_in=_,a.hold=Z,a.bits=oe,Ml(n,ze),O=n.next_out,A=n.output,U=n.avail_out,p=n.next_in,l=n.input,_=n.avail_in,Z=a.hold,oe=a.bits,a.mode===Js&&(a.back=-1);break}for(a.back=0;bt=a.lencode[Z&(1<<a.lenbits)-1],ot=bt>>>24,Gt=bt>>>16&255,Rt=bt&65535,!(ot<=oe);){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}if(Gt&&!(Gt&240)){for(It=ot,kr=Gt,rn=Rt;bt=a.lencode[rn+((Z&(1<<It+kr)-1)>>It)],ot=bt>>>24,Gt=bt>>>16&255,Rt=bt&65535,!(It+ot<=oe);){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}Z>>>=It,oe-=It,a.back+=It}if(Z>>>=ot,oe-=ot,a.back+=ot,a.length=Rt,Gt===0){a.mode=ad;break}if(Gt&32){a.back=-1,a.mode=Js;break}if(Gt&64){n.msg="invalid literal/length code",a.mode=zr;break}a.extra=Gt&15,a.mode=$f;case $f:if(a.extra){for(nt=a.extra;oe<nt;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}a.length+=Z&(1<<a.extra)-1,Z>>>=a.extra,oe-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=TA;case TA:for(;bt=a.distcode[Z&(1<<a.distbits)-1],ot=bt>>>24,Gt=bt>>>16&255,Rt=bt&65535,!(ot<=oe);){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}if(!(Gt&240)){for(It=ot,kr=Gt,rn=Rt;bt=a.distcode[rn+((Z&(1<<It+kr)-1)>>It)],ot=bt>>>24,Gt=bt>>>16&255,Rt=bt&65535,!(It+ot<=oe);){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}Z>>>=It,oe-=It,a.back+=It}if(Z>>>=ot,oe-=ot,a.back+=ot,Gt&64){n.msg="invalid distance code",a.mode=zr;break}a.offset=Rt,a.extra=Gt&15,a.mode=Zf;case Zf:if(a.extra){for(nt=a.extra;oe<nt;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}a.offset+=Z&(1<<a.extra)-1,Z>>>=a.extra,oe-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){n.msg="invalid distance too far back",a.mode=zr;break}a.mode=Vf;case Vf:if(U===0)break e;if(ae=ze-U,a.offset>ae){if(ae=a.offset-ae,ae>a.whave&&a.sane){n.msg="invalid distance too far back",a.mode=zr;break}ae>a.wnext?(ae-=a.wnext,mt=a.wsize-ae):mt=a.wnext-ae,ae>a.length&&(ae=a.length),ut=a.window}else ut=A,mt=O-a.offset,ae=a.length;ae>U&&(ae=U),U-=ae,a.length-=ae;do A[O++]=ut[mt++];while(--ae);a.length===0&&(a.mode=Gl);break;case ad:if(U===0)break e;A[O++]=a.length,U--,a.mode=Gl;break;case Od:if(a.wrap){for(;oe<32;){if(_===0)break e;_--,Z|=l[p++]<<oe,oe+=8}if(ze-=U,n.total_out+=ze,a.total+=ze,a.wrap&4&&ze&&(n.adler=a.check=a.flags?ls(a.check,A,ze,O-ze):eo(a.check,A,ze,O-ze)),ze=U,a.wrap&4&&(a.flags?Z:Gf(Z))!==a.check){n.msg="incorrect data check",a.mode=zr;break}Z=0,oe=0}a.mode=Nd;case Nd:if(a.wrap&&a.flags){for(;oe<32;){if(_===0)break e;_--,Z+=l[p++]<<oe,oe+=8}if(a.wrap&4&&Z!==(a.total&4294967295)){n.msg="incorrect length check",a.mode=zr;break}Z=0,oe=0}a.mode=od;case od:ir=au;break e;case zr:ir=_l;break e;case Pd:return il;case mf:default:return Rs}return n.next_out=O,n.avail_out=U,n.next_in=p,n.avail_in=_,a.hold=Z,a.bits=oe,(a.wsize||ze!==n.avail_out&&a.mode<zr&&(a.mode<Od||o!==Rc))&&Ao(n,n.output,n.next_out,ze-n.avail_out),Re-=n.avail_in,ze-=n.avail_out,n.total_in+=Re,n.total_out+=ze,a.total+=ze,a.wrap&4&&ze&&(n.adler=a.check=a.flags?ls(a.check,A,ze,n.next_out-ze):eo(a.check,A,ze,n.next_out-ze)),n.data_type=a.bits+(a.last?64:0)+(a.mode===Js?128:0)+(a.mode===EA||a.mode===pf?256:0),(Re===0&&ze===0||o===Rc)&&ir===Al&&(ir=Ms),ir},rA=n=>{if(Mu(n))return Rs;let o=n.state;return o.window&&(o.window=null),n.state=null,Al},su=(n,o)=>{if(Mu(n))return Rs;const a=n.state;return a.wrap&2?(a.head=o,o.done=!1,Al):Rs},WA=(n,o)=>{const a=o.length;let l,A,p;return Mu(n)||(l=n.state,l.wrap!==0&&l.mode!==Wl)?Rs:l.mode===Wl&&(A=1,A=eo(A,o,a,0),A!==l.check)?_l:(p=Ao(n,o,a,a),p?(l.mode=Pd,il):(l.havedict=1,Al))};var S0=sd,Dl=bf,_A=vf,_h=ou,Xf=UA,E0=vo,So=rA,yf=su,Td=WA,Jf="pako inflate (from Nodeca project)",Ur={inflateReset:S0,inflateReset2:Dl,inflateResetKeep:_A,inflateInit:_h,inflateInit2:Xf,inflate:E0,inflateEnd:So,inflateGetHeader:yf,inflateSetDictionary:Td,inflateInfo:Jf};function Dm(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Om=Dm;const _0=Object.prototype.toString,{Z_NO_FLUSH:I0,Z_FINISH:Ud,Z_OK:Ih,Z_STREAM_END:F0,Z_NEED_DICT:Jl,Z_STREAM_ERROR:ld,Z_DATA_ERROR:Yf,Z_MEM_ERROR:Fh}=ya;function Mh(n){this.options=ea.assign({chunkSize:1024*64,windowBits:15,to:""},n||{});const o=this.options;o.raw&&o.windowBits>=0&&o.windowBits<16&&(o.windowBits=-o.windowBits,o.windowBits===0&&(o.windowBits=-15)),o.windowBits>=0&&o.windowBits<16&&!(n&&n.windowBits)&&(o.windowBits+=32),o.windowBits>15&&o.windowBits<48&&(o.windowBits&15||(o.windowBits|=15)),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new pa,this.strm.avail_out=0;let a=Ur.inflateInit2(this.strm,o.windowBits);if(a!==Ih)throw new Error(Ca[a]);if(this.header=new Om,Ur.inflateGetHeader(this.strm,this.header),o.dictionary&&(typeof o.dictionary=="string"?o.dictionary=Hi.string2buf(o.dictionary):_0.call(o.dictionary)==="[object ArrayBuffer]"&&(o.dictionary=new Uint8Array(o.dictionary)),o.raw&&(a=Ur.inflateSetDictionary(this.strm,o.dictionary),a!==Ih)))throw new Error(Ca[a])}Mh.prototype.push=function(n,o){const a=this.strm,l=this.options.chunkSize,A=this.options.dictionary;let p,O,_;if(this.ended)return!1;for(o===~~o?O=o:O=o===!0?Ud:I0,_0.call(n)==="[object ArrayBuffer]"?a.input=new Uint8Array(n):a.input=n,a.next_in=0,a.avail_in=a.input.length;;){for(a.avail_out===0&&(a.output=new Uint8Array(l),a.next_out=0,a.avail_out=l),p=Ur.inflate(a,O),p===Jl&&A&&(p=Ur.inflateSetDictionary(a,A),p===Ih?p=Ur.inflate(a,O):p===Yf&&(p=Jl));a.avail_in>0&&p===F0&&a.state.wrap>0&&n[a.next_in]!==0;)Ur.inflateReset(a),p=Ur.inflate(a,O);switch(p){case ld:case Yf:case Jl:case Fh:return this.onEnd(p),this.ended=!0,!1}if(_=a.avail_out,a.next_out&&(a.avail_out===0||p===F0))if(this.options.to==="string"){let U=Hi.utf8border(a.output,a.next_out),Z=a.next_out-U,oe=Hi.buf2string(a.output,U);a.next_out=Z,a.avail_out=l-Z,Z&&a.output.set(a.output.subarray(U,U+Z),0),this.onData(oe)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(!(p===Ih&&_===0)){if(p===F0)return p=Ur.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,!0;if(a.avail_in===0)break}}return!0},Mh.prototype.onData=function(n){this.chunks.push(n)},Mh.prototype.onEnd=function(n){n===Ih&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=ea.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function qf(n,o){const a=new Mh(o);if(a.push(n),a.err)throw a.msg||Ca[a.err];return a.result}function M0(n,o){return o=o||{},o.raw=!0,qf(n,o)}var pp=Mh,L0=qf,nA=M0,Rd=qf,wf=ya,k0={Inflate:pp,inflate:L0,inflateRaw:nA,ungzip:Rd,constants:wf};const{Deflate:eh,deflate:Nm,deflateRaw:Pm,gzip:Tm}=ca,{Inflate:Um,inflate:mp,inflateRaw:Ls,ungzip:Wp}=k0;var Gp=eh,cd=Nm,Xp=Pm,th=Tm,gp=Um,rh=mp,Lh=Ls,nh=Wp,Jp=ya,Rm={Deflate:Gp,deflate:cd,deflateRaw:Xp,gzip:th,Inflate:gp,inflate:rh,inflateRaw:Lh,ungzip:nh,constants:Jp};const kh=[];for(let n=0;n<256;n++){let o=n;for(let a=0;a<8;a++)o&1?o=3988292384^o>>>1:o=o>>>1;kh[n]=o}const D0=4294967295;function Qm(n,o,a){let l=n;for(let A=0;A<a;A++)l=kh[(l^o[A])&255]^l>>>8;return l}function Yp(n,o){return(Qm(D0,n,o)^D0)>>>0}function xf(n,o,a){const l=n.readUint32(),A=Yp(new Uint8Array(n.buffer,n.byteOffset+n.offset-o-4,o),o);if(A!==l)throw new Error(`CRC mismatch for chunk ${a}. Expected ${l}, found ${A}`)}function Km(n,o){n.writeUint32(Yp(new Uint8Array(n.buffer,n.byteOffset+n.offset-o,o),o))}function Ol(n,o,a){for(let l=0;l<a;l++)o[l]=n[l]}function Qd(n,o,a,l){let A=0;for(;A<l;A++)o[A]=n[A];for(;A<a;A++)o[A]=n[A]+o[A-l]&255}function Cf(n,o,a,l){let A=0;if(a.length===0)for(;A<l;A++)o[A]=n[A];else for(;A<l;A++)o[A]=n[A]+a[A]&255}function Ad(n,o,a,l,A){let p=0;if(a.length===0){for(;p<A;p++)o[p]=n[p];for(;p<l;p++)o[p]=n[p]+(o[p-A]>>1)&255}else{for(;p<A;p++)o[p]=n[p]+(a[p]>>1)&255;for(;p<l;p++)o[p]=n[p]+(o[p-A]+a[p]>>1)&255}}function Xc(n,o,a,l,A){let p=0;if(a.length===0){for(;p<A;p++)o[p]=n[p];for(;p<l;p++)o[p]=n[p]+o[p-A]&255}else{for(;p<A;p++)o[p]=n[p]+a[p]&255;for(;p<l;p++)o[p]=n[p]+lu(o[p-A],a[p],a[p-A])&255}}function lu(n,o,a){const l=n+o-a,A=Math.abs(l-n),p=Math.abs(l-o),O=Math.abs(l-a);return A<=p&&A<=O?n:p<=O?o:a}function IA(n,o,a,l,A,p){switch(n){case 0:Ol(o,a,A);break;case 1:Qd(o,a,A,p);break;case 2:Cf(o,a,l,A);break;case 3:Ad(o,a,l,A,p);break;case 4:Xc(o,a,l,A,p);break;default:throw new Error(`Unsupported filter: ${n}`)}}const ku=new Uint16Array([255]),dd=new Uint8Array(ku.buffer)[0]===255;function ih(n){const{data:o,width:a,height:l,channels:A,depth:p}=n,O=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],_=Math.ceil(p/8)*A,U=new Uint8Array(l*a*_);let Z=0;for(let oe=0;oe<7;oe++){const Re=O[oe],ze=Math.ceil((a-Re.x)/Re.xStep),ae=Math.ceil((l-Re.y)/Re.yStep);if(ze<=0||ae<=0)continue;const mt=ze*_,ut=new Uint8Array(mt);for(let bt=0;bt<ae;bt++){const ot=o[Z++],Gt=o.subarray(Z,Z+mt);Z+=mt;const Rt=new Uint8Array(mt);IA(ot,Gt,Rt,ut,mt,_),ut.set(Rt);for(let It=0;It<ze;It++){const kr=Re.x+It*Re.xStep,rn=Re.y+bt*Re.yStep;if(!(kr>=a||rn>=l))for(let Wr=0;Wr<_;Wr++)U[(rn*a+kr)*_+Wr]=Rt[It*_+Wr]}}}if(p===16){const oe=new Uint16Array(U.buffer);if(dd)for(let Re=0;Re<oe.length;Re++)oe[Re]=Kd(oe[Re]);return oe}else return U}function Kd(n){return(n&255)<<8|n>>8&255}const Dh=new Uint16Array([255]),Oh=new Uint8Array(Dh.buffer)[0]===255,qp=new Uint8Array(0);function vp(n){const{data:o,width:a,height:l,channels:A,depth:p}=n,O=Math.ceil(p/8)*A,_=Math.ceil(p/8*A*a),U=new Uint8Array(l*_);let Z=qp,oe=0,Re,ze;for(let ae=0;ae<l;ae++){switch(Re=o.subarray(oe+1,oe+1+_),ze=U.subarray(ae*_,(ae+1)*_),o[oe]){case 0:Ol(Re,ze,_);break;case 1:Qd(Re,ze,_,O);break;case 2:Cf(Re,ze,Z,_);break;case 3:Ad(Re,ze,Z,_,O);break;case 4:Xc(Re,ze,Z,_,O);break;default:throw new Error(`Unsupported filter: ${o[oe]}`)}Z=ze,oe+=_+1}if(p===16){const ae=new Uint16Array(U.buffer);if(Oh)for(let mt=0;mt<ae.length;mt++)ae[mt]=em(ae[mt]);return ae}else return U}function em(n){return(n&255)<<8|n>>8&255}const Nh=Uint8Array.of(137,80,78,71,13,10,26,10);function Hm(n){n.writeBytes(Nh)}function N0(n){if(!jm(n.readBytes(Nh.length)))throw new Error("wrong PNG signature")}function jm(n){if(n.length<Nh.length)return!1;for(let o=0;o<Nh.length;o++)if(n[o]!==Nh[o])return!1;return!0}const tm="tEXt",rm=0,nm=new TextDecoder("latin1");function im(n){if(Bf(n),n.length===0||n.length>79)throw new Error("keyword length must be between 1 and 79")}const bp=/^[\u0000-\u00FF]*$/;function Bf(n){if(!bp.test(n))throw new Error("invalid latin1 text")}function ah(n,o,a){const l=Du(o);n[l]=yp(o,a-l.length-1)}function oh(n,o,a){im(o),Bf(a);const l=o.length+1+a.length;n.writeUint32(l),n.writeChars(tm),n.writeChars(o),n.writeByte(rm),n.writeChars(a),writeCrc(n,l+4)}function Du(n){for(n.mark();n.readByte()!==rm;);const o=n.offset;n.reset();const a=nm.decode(n.readBytes(o-n.offset-1));return n.skip(1),im(a),a}function yp(n,o){return nm.decode(n.readBytes(o))}const FA={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},P0={UNKNOWN:-1,DEFLATE:0},am={UNKNOWN:-1,ADAPTIVE:0},wp={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Ph={NONE:0,BACKGROUND:1,PREVIOUS:2},Th={SOURCE:0,OVER:1};class zm extends Ni{constructor(a,l={}){super(a);zs(this,"_checkCrc");zs(this,"_inflator");zs(this,"_png");zs(this,"_apng");zs(this,"_end");zs(this,"_hasPalette");zs(this,"_palette");zs(this,"_hasTransparency");zs(this,"_transparency");zs(this,"_compressionMethod");zs(this,"_filterMethod");zs(this,"_interlaceMethod");zs(this,"_colorType");zs(this,"_isAnimated");zs(this,"_numberOfFrames");zs(this,"_numberOfPlays");zs(this,"_frames");zs(this,"_writingDataChunks");const{checkCrc:A=!1}=l;this._checkCrc=A,this._inflator=new gp,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=P0.UNKNOWN,this._filterMethod=am.UNKNOWN,this._interlaceMethod=wp.UNKNOWN,this._colorType=FA.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(N0(this);!this._end;){const a=this.readUint32(),l=this.readChars(4);this.decodeChunk(a,l)}return this.decodeImage(),this._png}decodeApng(){for(N0(this);!this._end;){const a=this.readUint32(),l=this.readChars(4);this.decodeApngChunk(a,l)}return this.decodeApngImage(),this._apng}decodeChunk(a,l){const A=this.offset;switch(l){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(a);break;case"IDAT":this.decodeIDAT(a);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(a);break;case"iCCP":this.decodeiCCP(a);break;case tm:ah(this._png.text,this,a);break;case"pHYs":this.decodepHYs();break;default:this.skip(a);break}if(this.offset-A!==a)throw new Error(`Length mismatch while decoding chunk ${l}`);this._checkCrc?xf(this,a+4,l):this.skip(4)}decodeApngChunk(a,l){const A=this.offset;switch(l!=="fdAT"&&l!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),l){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(a);break;default:this.decodeChunk(a,l),this.offset=A+a;break}if(this.offset-A!==a)throw new Error(`Length mismatch while decoding chunk ${l}`);this._checkCrc?xf(this,a+4,l):this.skip(4)}decodeIHDR(){const a=this._png;a.width=this.readUint32(),a.height=this.readUint32(),a.depth=xp(this.readUint8());const l=this.readUint8();this._colorType=l;let A;switch(l){case FA.GREYSCALE:A=1;break;case FA.TRUECOLOUR:A=3;break;case FA.INDEXED_COLOUR:A=1;break;case FA.GREYSCALE_ALPHA:A=2;break;case FA.TRUECOLOUR_ALPHA:A=4;break;case FA.UNKNOWN:default:throw new Error(`Unknown color type: ${l}`)}if(this._png.channels=A,this._compressionMethod=this.readUint8(),this._compressionMethod!==P0.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const a={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(a)}decodePLTE(a){if(a%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${a}`);const l=a/3;this._hasPalette=!0;const A=[];this._palette=A;for(let p=0;p<l;p++)A.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(a){this._writingDataChunks=!0;const l=a,A=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,A,l)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(a)}decodeFDAT(a){this._writingDataChunks=!0;let l=a,A=this.offset+this.byteOffset;if(A+=4,l-=4,this._inflator.push(new Uint8Array(this.buffer,A,l)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(a)}decodetRNS(a){switch(this._colorType){case FA.GREYSCALE:case FA.TRUECOLOUR:{if(a%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${a}`);if(a/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${a/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(a/2);for(let l=0;l<a/2;l++)this._transparency[l]=this.readUint16();break}case FA.INDEXED_COLOUR:{if(a>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${a} vs ${this._palette.length})`);let l=0;for(;l<a;l++){const A=this.readByte();this._palette[l].push(A)}for(;l<this._palette.length;l++)this._palette[l].push(255);break}case FA.UNKNOWN:case FA.GREYSCALE_ALPHA:case FA.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(a){const l=Du(this),A=this.readUint8();if(A!==P0.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${A}`);const p=this.readBytes(a-l.length-2);this._png.iccEmbeddedProfile={name:l,profile:rh(p)}}decodepHYs(){const a=this.readUint32(),l=this.readUint32(),A=this.readByte();this._png.resolution={x:a,y:l,unit:A}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let a=0;a<this._numberOfFrames;a++){const l={sequenceNumber:this._frames[a].sequenceNumber,delayNumber:this._frames[a].delayNumber,delayDenominator:this._frames[a].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},A=this._frames.at(a);if(A){if(A.data=vp({data:A.data,width:A.width,height:A.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),a===0||A.xOffset===0&&A.yOffset===0&&A.width===this._png.width&&A.height===this._png.height)l.data=A.data;else{const p=this._apng.frames.at(a-1);this.disposeFrame(A,p,l),this.addFrameDataToCanvas(l,A)}this._apng.frames.push(l)}}return this._apng}disposeFrame(a,l,A){switch(a.disposeOp){case Ph.NONE:break;case Ph.BACKGROUND:for(let p=0;p<this._png.height;p++)for(let O=0;O<this._png.width;O++){const _=(p*a.width+O)*this._png.channels;for(let U=0;U<this._png.channels;U++)A.data[_+U]=0}break;case Ph.PREVIOUS:A.data.set(l.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(a,l){const A=1<<this._png.depth,p=(O,_)=>{const U=((O+l.yOffset)*this._png.width+l.xOffset+_)*this._png.channels,Z=(O*l.width+_)*this._png.channels;return{index:U,frameIndex:Z}};switch(l.blendOp){case Th.SOURCE:for(let O=0;O<l.height;O++)for(let _=0;_<l.width;_++){const{index:U,frameIndex:Z}=p(O,_);for(let oe=0;oe<this._png.channels;oe++)a.data[U+oe]=l.data[Z+oe]}break;case Th.OVER:for(let O=0;O<l.height;O++)for(let _=0;_<l.width;_++){const{index:U,frameIndex:Z}=p(O,_);for(let oe=0;oe<this._png.channels;oe++){const Re=l.data[Z+this._png.channels-1]/A,ze=oe%(this._png.channels-1)===0?1:l.data[Z+oe],ae=Math.floor(Re*ze+(1-Re)*a.data[U+oe]);a.data[U+oe]+=ae}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var l;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const a=this._isAnimated?((l=this._frames)==null?void 0:l.at(0)).data:this._inflator.result;if(this._filterMethod!==am.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===wp.NO_INTERLACE)this._png.data=vp({data:a,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===wp.ADAM7)this._png.data=ih({data:a,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const a=this._inflator.result,l=this._frames.at(-1);l?l.data=a:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Ph.NONE,blendOp:Th.SOURCE,data:a}),this._inflator=new gp,this._writingDataChunks=!1}}function xp(n){if(n!==1&&n!==2&&n!==4&&n!==8&&n!==16)throw new Error(`invalid bit depth: ${n}`);return n}const fs={level:3};class Fi extends null{constructor(a,l={}){var A;super();zs(this,"_png");zs(this,"_zlibOptions");zs(this,"_colorType");zs(this,"_interlaceMethod");this._colorType=ColorType.UNKNOWN,this._zlibOptions=b1(b1({},fs),l.zlib),this._png=this._checkData(a),this._interlaceMethod=(A=l.interlace==="Adam7"?InterlaceMethod.ADAM7:InterlaceMethod.NO_INTERLACE)!=null?A:InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if(writeSignature(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),this._png.palette[0].length===4&&this.encodeTRNS()),this.encodeData(),this._png.text)for(const[a,l]of Object.entries(this._png.text))encodetEXt(this,a,l);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars("IHDR"),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(CompressionMethod.DEFLATE),this.writeByte(FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),writeCrc(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars("IEND"),writeCrc(this,4)}encodePLTE(){var l;const a=((l=this._png.palette)==null?void 0:l.length)*3;this.writeUint32(a),this.writeChars("PLTE");for(const A of this._png.palette)this.writeByte(A[0]),this.writeByte(A[1]),this.writeByte(A[2]);writeCrc(this,4+a)}encodeTRNS(){const a=this._png.palette.filter(l=>l.at(-1)!==255);this.writeUint32(a.length),this.writeChars("tRNS");for(const l of a)this.writeByte(l.at(-1));writeCrc(this,4+a.length)}encodeIDAT(a){this.writeUint32(a.length),this.writeChars("IDAT"),this.writeBytes(a),writeCrc(this,a.length+4)}encodeData(){const{width:a,height:l,channels:A,depth:p,data:O}=this._png,_=p<=8?Math.ceil(a*p/8)*A:Math.ceil(a*p/8*A/2),U=new IOBuffer().setBigEndian();let Z=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let ze=0;ze<l;ze++)U.writeByte(0),p===16?Z=Vo(O,U,_,Z):Z=fc(O,U,_,Z);else this._interlaceMethod===InterlaceMethod.ADAM7&&(Z=om(this._png,O,U,Z));const oe=U.toArray(),Re=deflate(oe,this._zlibOptions);this.encodeIDAT(Re)}_checkData(a){const{colorType:l,channels:A,depth:p}=T0(a,a.palette),O={width:Ou(a.width,"width"),height:Ou(a.height,"height"),channels:A,data:a.data,depth:p,text:a.text,palette:a.palette};this._colorType=l;const _=p<8?Math.ceil(O.width*p/8)*O.height*A:O.width*O.height*A;if(O.data.length!==_)throw new RangeError(`wrong data size. Found ${O.data.length}, expected ${_}`);return O}}function Ou(n,o){if(Number.isInteger(n)&&n>0)return n;throw new TypeError(`${o} must be a positive integer`)}function T0(n,o){const{channels:a=4,depth:l=8}=n;if(a!==4&&a!==3&&a!==2&&a!==1)throw new RangeError(`unsupported number of channels: ${a}`);const A={channels:a,depth:l,colorType:ColorType.UNKNOWN};switch(a){case 4:A.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:A.colorType=ColorType.TRUECOLOUR;break;case 1:o?A.colorType=ColorType.INDEXED_COLOUR:A.colorType=ColorType.GREYSCALE;break;case 2:A.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return A}function fc(n,o,a,l){for(let A=0;A<a;A++)o.writeByte(n[l++]);return l}function om(n,o,a,l){const A=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:p,height:O,channels:_,depth:U}=n;let Z=0;U===16?Z=_*U/8/2:Z=_*U/8;for(let oe=0;oe<7;oe++){const Re=A[oe],ze=Math.floor((p-Re.x+Re.xStep-1)/Re.xStep),ae=Math.floor((O-Re.y+Re.yStep-1)/Re.yStep);if(ze<=0||ae<=0)continue;const mt=ze*Z;for(let ut=0;ut<ae;ut++){const bt=Re.y+ut*Re.yStep,ot=U<=8?new Uint8Array(mt):new Uint16Array(mt);let Gt=0;for(let Rt=0;Rt<ze;Rt++){const It=Re.x+Rt*Re.xStep;if(It<p&&bt<O){const kr=(bt*p+It)*Z;for(let rn=0;rn<Z;rn++)ot[Gt++]=o[kr+rn]}}if(a.writeByte(0),U===8)a.writeBytes(ot);else if(U===16)for(const Rt of ot)a.writeByte(Rt>>8&255),a.writeByte(Rt&255)}}return l}function Vo(n,o,a,l){for(let A=0;A<a;A++)o.writeUint16(n[l++]);return l}var ol;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.METRE=1]="METRE"})(ol||(ol={}));function Ys(n,o){return new zm(n,o).decode()}function $m(n,o){return new PngEncoder(n,o).encode()}function U0(n,o){return new PngDecoder(n,o).decodeApng()}var Za=function(){return typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:this}();function Sf(){Za.console&&typeof Za.console.log=="function"&&Za.console.log.apply(Za.console,arguments)}var ks={log:Sf,warn:function(n){Za.console&&(typeof Za.console.warn=="function"?Za.console.warn.apply(Za.console,arguments):Sf.call(null,arguments))},error:function(n){Za.console&&(typeof Za.console.error=="function"?Za.console.error.apply(Za.console,arguments):Sf(n))}};function Hd(n,o,a){var l=new XMLHttpRequest;l.open("GET",n),l.responseType="blob",l.onload=function(){fd(l.response,o,a)},l.onerror=function(){ks.error("could not download file")},l.send()}function R0(n){var o=new XMLHttpRequest;o.open("HEAD",n,!1);try{o.send()}catch(a){}return o.status>=200&&o.status<=299}function hc(n){try{n.dispatchEvent(new MouseEvent("click"))}catch(a){var o=document.createEvent("MouseEvents");o.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(o)}}var fd=Za.saveAs||((typeof window=="undefined"?"undefined":(0,me.Z)(window))!=="object"||window!==Za?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(n,o,a){var l=Za.URL||Za.webkitURL,A=document.createElement("a");o=o||n.name||"download",A.download=o,A.rel="noopener",typeof n=="string"?(A.href=n,A.origin!==location.origin?R0(A.href)?Hd(n,o,a):hc(A,A.target="_blank"):hc(A)):(A.href=l.createObjectURL(n),setTimeout(function(){l.revokeObjectURL(A.href)},4e4),setTimeout(function(){hc(A)},0))}:"msSaveOrOpenBlob"in navigator?function(n,o,a){if(o=o||n.name||"download",typeof n=="string")if(R0(n))Hd(n,o,a);else{var l=document.createElement("a");l.href=n,l.target="_blank",setTimeout(function(){hc(l)})}else navigator.msSaveOrOpenBlob(function(A,p){return p===void 0?p={autoBom:!1}:(0,me.Z)(p)!=="object"&&(ks.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob(["\uFEFF",A],{type:A.type}):A}(n,a),o)}:function(n,o,a,l){if((l=l||open("","_blank"))&&(l.document.title=l.document.body.innerText="downloading..."),typeof n=="string")return Hd(n,o,a);var A=n.type==="application/octet-stream",p=/constructor/i.test(Za.HTMLElement)||Za.safari,O=/CriOS\/[\d]+/.test(navigator.userAgent);if((O||A&&p)&&(typeof FileReader=="undefined"?"undefined":(0,me.Z)(FileReader))==="object"){var _=new FileReader;_.onloadend=function(){var oe=_.result;oe=O?oe:oe.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=oe:location=oe,l=null},_.readAsDataURL(n)}else{var U=Za.URL||Za.webkitURL,Z=U.createObjectURL(n);l?l.location=Z:location.href=Z,l=null,setTimeout(function(){U.revokeObjectURL(Z)},4e4)}});function Cp(n){var o;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var a=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(_){return[parseInt(_[1]),parseInt(_[2]),parseInt(_[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(_){return[parseInt(_[1],16),parseInt(_[2],16),parseInt(_[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(_){return[parseInt(_[1]+_[1],16),parseInt(_[2]+_[2],16),parseInt(_[3]+_[3],16)]}}],l=0;l<a.length;l++){var A=a[l].re,p=a[l].process,O=A.exec(n);O&&(o=p(O),this.r=o[0],this.g=o[1],this.b=o[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var _=this.r.toString(16),U=this.g.toString(16),Z=this.b.toString(16);return _.length==1&&(_="0"+_),U.length==1&&(U="0"+U),Z.length==1&&(Z="0"+Z),"#"+_+U+Z}}var vn=Za.atob.bind(Za),Qs=Za.btoa.bind(Za);function Q0(n,o){var a=n[0],l=n[1],A=n[2],p=n[3];a=Kc(a,l,A,p,o[0],7,-680876936),p=Kc(p,a,l,A,o[1],12,-389564586),A=Kc(A,p,a,l,o[2],17,606105819),l=Kc(l,A,p,a,o[3],22,-1044525330),a=Kc(a,l,A,p,o[4],7,-176418897),p=Kc(p,a,l,A,o[5],12,1200080426),A=Kc(A,p,a,l,o[6],17,-1473231341),l=Kc(l,A,p,a,o[7],22,-45705983),a=Kc(a,l,A,p,o[8],7,1770035416),p=Kc(p,a,l,A,o[9],12,-1958414417),A=Kc(A,p,a,l,o[10],17,-42063),l=Kc(l,A,p,a,o[11],22,-1990404162),a=Kc(a,l,A,p,o[12],7,1804603682),p=Kc(p,a,l,A,o[13],12,-40341101),A=Kc(A,p,a,l,o[14],17,-1502002290),a=Sc(a,l=Kc(l,A,p,a,o[15],22,1236535329),A,p,o[1],5,-165796510),p=Sc(p,a,l,A,o[6],9,-1069501632),A=Sc(A,p,a,l,o[11],14,643717713),l=Sc(l,A,p,a,o[0],20,-373897302),a=Sc(a,l,A,p,o[5],5,-701558691),p=Sc(p,a,l,A,o[10],9,38016083),A=Sc(A,p,a,l,o[15],14,-660478335),l=Sc(l,A,p,a,o[4],20,-405537848),a=Sc(a,l,A,p,o[9],5,568446438),p=Sc(p,a,l,A,o[14],9,-1019803690),A=Sc(A,p,a,l,o[3],14,-187363961),l=Sc(l,A,p,a,o[8],20,1163531501),a=Sc(a,l,A,p,o[13],5,-1444681467),p=Sc(p,a,l,A,o[2],9,-51403784),A=Sc(A,p,a,l,o[7],14,1735328473),a=sc(a,l=Sc(l,A,p,a,o[12],20,-1926607734),A,p,o[5],4,-378558),p=sc(p,a,l,A,o[8],11,-2022574463),A=sc(A,p,a,l,o[11],16,1839030562),l=sc(l,A,p,a,o[14],23,-35309556),a=sc(a,l,A,p,o[1],4,-1530992060),p=sc(p,a,l,A,o[4],11,1272893353),A=sc(A,p,a,l,o[7],16,-155497632),l=sc(l,A,p,a,o[10],23,-1094730640),a=sc(a,l,A,p,o[13],4,681279174),p=sc(p,a,l,A,o[0],11,-358537222),A=sc(A,p,a,l,o[3],16,-722521979),l=sc(l,A,p,a,o[6],23,76029189),a=sc(a,l,A,p,o[9],4,-640364487),p=sc(p,a,l,A,o[12],11,-421815835),A=sc(A,p,a,l,o[15],16,530742520),a=pc(a,l=sc(l,A,p,a,o[2],23,-995338651),A,p,o[0],6,-198630844),p=pc(p,a,l,A,o[7],10,1126891415),A=pc(A,p,a,l,o[14],15,-1416354905),l=pc(l,A,p,a,o[5],21,-57434055),a=pc(a,l,A,p,o[12],6,1700485571),p=pc(p,a,l,A,o[3],10,-1894986606),A=pc(A,p,a,l,o[10],15,-1051523),l=pc(l,A,p,a,o[1],21,-2054922799),a=pc(a,l,A,p,o[8],6,1873313359),p=pc(p,a,l,A,o[15],10,-30611744),A=pc(A,p,a,l,o[6],15,-1560198380),l=pc(l,A,p,a,o[13],21,1309151649),a=pc(a,l,A,p,o[4],6,-145523070),p=pc(p,a,l,A,o[11],10,-1120210379),A=pc(A,p,a,l,o[2],15,718787259),l=pc(l,A,p,a,o[9],21,-343485551),n[0]=Jc(a,n[0]),n[1]=Jc(l,n[1]),n[2]=Jc(A,n[2]),n[3]=Jc(p,n[3])}function K0(n,o,a,l,A,p){return o=Jc(Jc(o,n),Jc(l,p)),Jc(o<<A|o>>>32-A,a)}function Kc(n,o,a,l,A,p,O){return K0(o&a|~o&l,n,o,A,p,O)}function Sc(n,o,a,l,A,p,O){return K0(o&l|a&~l,n,o,A,p,O)}function sc(n,o,a,l,A,p,O){return K0(o^a^l,n,o,A,p,O)}function pc(n,o,a,l,A,p,O){return K0(a^(o|~l),n,o,A,p,O)}function sm(n){var o,a=n.length,l=[1732584193,-271733879,-1732584194,271733878];for(o=64;o<=n.length;o+=64)Q0(l,H0(n.substring(o-64,o)));n=n.substring(o-64);var A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(o=0;o<n.length;o++)A[o>>2]|=n.charCodeAt(o)<<(o%4<<3);if(A[o>>2]|=128<<(o%4<<3),o>55)for(Q0(l,A),o=0;o<16;o++)A[o]=0;return A[14]=8*a,Q0(l,A),l}function H0(n){var o,a=[];for(o=0;o<64;o+=4)a[o>>2]=n.charCodeAt(o)+(n.charCodeAt(o+1)<<8)+(n.charCodeAt(o+2)<<16)+(n.charCodeAt(o+3)<<24);return a}var MA="0123456789abcdef".split("");function Ef(n){for(var o="",a=0;a<4;a++)o+=MA[n>>8*a+4&15]+MA[n>>8*a&15];return o}function Nl(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function _f(n){return sm(n).map(Nl).join("")}var Bp=function(n){for(var o=0;o<n.length;o++)n[o]=Ef(n[o]);return n.join("")}(sm("hello"))!="5d41402abc4b2a76b9719d911017c592";function Jc(n,o){if(Bp){var a=(65535&n)+(65535&o);return(n>>16)+(o>>16)+(a>>16)<<16|65535&a}return n+o&4294967295}function mc(n,o){var a,l,A,p;if(n!==a){for(var O=(A=n,p=1+(256/n.length|0),new Array(p+1).join(A)),_=[],U=0;U<256;U++)_[U]=U;var Z=0;for(U=0;U<256;U++){var oe=_[U];Z=(Z+oe+O.charCodeAt(U))%256,_[U]=_[Z],_[Z]=oe}a=n,l=_}else _=l;var Re=o.length,ze=0,ae=0,mt="";for(U=0;U<Re;U++)ae=(ae+(oe=_[ze=(ze+1)%256]))%256,_[ze]=_[ae],_[ae]=oe,O=_[(_[ze]+_[ae])%256],mt+=String.fromCharCode(o.charCodeAt(U)^O);return mt}var Uh={print:4,modify:8,copy:16,"annot-forms":32};function Nu(n,o,a,l){this.v=1,this.r=2;var A=192;n.forEach(function(_){if(Uh.perm!==void 0)throw new Error("Invalid permission: "+_);A+=Uh[_]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var p=(o+this.padding).substr(0,32),O=(a+this.padding).substr(0,32);this.O=this.processOwnerPassword(p,O),this.P=-(1+(255^A)),this.encryptionKey=_f(p+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(l)).substr(0,5),this.U=mc(this.encryptionKey,this.padding)}function iA(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var o="",a=n.length,l=0;l<a;l++){var A=n.charCodeAt(l);o+=A<33||A===35||A===37||A===40||A===41||A===47||A===60||A===62||A===91||A===93||A===123||A===125||A>126?"#"+("0"+A.toString(16)).slice(-2):n[l]}return o}function Sp(n){if((0,me.Z)(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var o={};this.subscribe=function(a,l,A){if(A=A||!1,typeof a!="string"||typeof l!="function"||typeof A!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");o.hasOwnProperty(a)||(o[a]={});var p=Math.random().toString(35);return o[a][p]=[l,!!A],p},this.unsubscribe=function(a){for(var l in o)if(o[l][a])return delete o[l][a],Object.keys(o[l]).length===0&&delete o[l],!0;return!1},this.publish=function(a){if(o.hasOwnProperty(a)){var l=Array.prototype.slice.call(arguments,1),A=[];for(var p in o[a]){var O=o[a][p];try{O[0].apply(n,l)}catch(_){Za.console&&ks.error("jsPDF PubSub Error",_.message,_)}O[1]&&A.push(p)}A.length&&A.forEach(this.unsubscribe)}},this.getTopics=function(){return o}}function Rh(n){if(!(this instanceof Rh))return new Rh(n);var o="opacity,stroke-opacity".split(",");for(var a in n)n.hasOwnProperty(a)&&o.indexOf(a)>=0&&(this[a]=n[a]);this.id="",this.objectNumber=-1}function sh(n,o){this.gState=n,this.matrix=o,this.id="",this.objectNumber=-1}function jd(n,o,a,l,A){if(!(this instanceof jd))return new jd(n,o,a,l,A);this.type=n==="axial"?2:3,this.coords=o,this.colors=a,sh.call(this,l,A)}function zd(n,o,a,l,A){if(!(this instanceof zd))return new zd(n,o,a,l,A);this.boundingBox=n,this.xStep=o,this.yStep=a,this.stream="",this.cloneIndex=0,sh.call(this,l,A)}function ua(n){var o,a=typeof arguments[0]=="string"?arguments[0]:"p",l=arguments[1],A=arguments[2],p=arguments[3],O=[],_=1,U=16,Z="S",oe=null;(0,me.Z)(n=n||{})==="object"&&(a=n.orientation,l=n.unit||l,A=n.format||A,p=n.compress||n.compressPdf||p,(oe=n.encryption||null)!==null&&(oe.userPassword=oe.userPassword||"",oe.ownerPassword=oe.ownerPassword||"",oe.userPermissions=oe.userPermissions||[]),_=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(o=n.precision),n.floatPrecision!==void 0&&(U=n.floatPrecision),Z=n.defaultPathOperation||"S"),O=n.filters||(p===!0?["FlateEncode"]:O),l=l||"mm",a=(""+(a||"P")).toLowerCase();var Re=n.putOnlyUsedFonts||!1,ze={},ae={internal:{},__private__:{}};ae.__private__.PubSub=Sp;var mt="1.3",ut=ae.__private__.getPdfVersion=function(){return mt};ae.__private__.setPdfVersion=function($){mt=$};var bt={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};ae.__private__.getPageFormats=function(){return bt};var ot=ae.__private__.getPageFormat=function($){return bt[$]};A=A||"a4";var Gt="compat",Rt="advanced",It=Gt;function kr(){this.saveGraphicsState(),Ft(new Ka(to,0,0,-to,0,dh()*to).toString()+" cm"),this.setFontSize(this.getFontSize()/to),Z="n",It=Rt}function rn(){this.restoreGraphicsState(),Z="S",It=Gt}var Wr=ae.__private__.combineFontStyleAndFontWeight=function($,He){if($=="bold"&&He=="normal"||$=="bold"&&He==400||$=="normal"&&He=="italic"||$=="bold"&&He=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return He&&($=He==400||He==="normal"?$==="italic"?"italic":"normal":He!=700&&He!=="bold"||$!=="normal"?(He==700?"bold":He)+""+$:"bold"),$};ae.advancedAPI=function($){var He=It===Gt;return He&&kr.call(this),typeof $!="function"||($(this),He&&rn.call(this)),this},ae.compatAPI=function($){var He=It===Rt;return He&&rn.call(this),typeof $!="function"||($(this),He&&kr.call(this)),this},ae.isAdvancedAPI=function(){return It===Rt};var ir,Mt=function($){if(It!==Rt)throw new Error($+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},xr=ae.roundToPrecision=ae.__private__.roundToPrecision=function($,He){var St=o||He;if(isNaN($)||isNaN(St))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return $.toFixed(St).replace(/0+$/,"")};ir=ae.hpf=ae.__private__.hpf=typeof U=="number"?function($){if(isNaN($))throw new Error("Invalid argument passed to jsPDF.hpf");return xr($,U)}:U==="smart"?function($){if(isNaN($))throw new Error("Invalid argument passed to jsPDF.hpf");return xr($,$>-1&&$<1?16:5)}:function($){if(isNaN($))throw new Error("Invalid argument passed to jsPDF.hpf");return xr($,16)};var nt=ae.f2=ae.__private__.f2=function($){if(isNaN($))throw new Error("Invalid argument passed to jsPDF.f2");return xr($,2)},yt=ae.__private__.f3=function($){if(isNaN($))throw new Error("Invalid argument passed to jsPDF.f3");return xr($,3)},Wt=ae.scale=ae.__private__.scale=function($){if(isNaN($))throw new Error("Invalid argument passed to jsPDF.scale");return It===Gt?$*to:It===Rt?$:void 0},Ht=function($){return Wt(function(He){return It===Gt?dh()-He:It===Rt?He:void 0}($))};ae.__private__.setPrecision=ae.setPrecision=function($){typeof parseInt($,10)=="number"&&(o=parseInt($,10))};var Tr,Zr="00000000000000000000000000000000",Jr=ae.__private__.getFileId=function(){return Zr},Or=ae.__private__.setFileId=function($){return Zr=$!==void 0&&/^[a-fA-F0-9]{32}$/.test($)?$.toUpperCase():Zr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),oe!==null&&(gc=new Nu(oe.userPermissions,oe.userPassword,oe.ownerPassword,Zr)),Zr};ae.setFileId=function($){return Or($),this},ae.getFileId=function(){return Jr()};var Gr=ae.__private__.convertDateToPDFDate=function($){var He=$.getTimezoneOffset(),St=He<0?"+":"-",Zt=Math.floor(Math.abs(He/60)),br=Math.abs(He%60),hn=[St,Ot(Zt),"'",Ot(br),"'"].join("");return["D:",$.getFullYear(),Ot($.getMonth()+1),Ot($.getDate()),Ot($.getHours()),Ot($.getMinutes()),Ot($.getSeconds()),hn].join("")},$n=ae.__private__.convertPDFDateToDate=function($){var He=parseInt($.substr(2,4),10),St=parseInt($.substr(6,2),10)-1,Zt=parseInt($.substr(8,2),10),br=parseInt($.substr(10,2),10),hn=parseInt($.substr(12,2),10),Fn=parseInt($.substr(14,2),10);return new Date(He,St,Zt,br,hn,Fn,0)},En=ae.__private__.setCreationDate=function($){var He;if($===void 0&&($=new Date),$ instanceof Date)He=Gr($);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test($))throw new Error("Invalid argument passed to jsPDF.setCreationDate");He=$}return Tr=He},qe=ae.__private__.getCreationDate=function($){var He=Tr;return $==="jsDate"&&(He=$n(Tr)),He};ae.setCreationDate=function($){return En($),this},ae.getCreationDate=function($){return qe($)};var _t,Ot=ae.__private__.padd2=function($){return("0"+parseInt($)).slice(-2)},Jt=ae.__private__.padd2Hex=function($){return("00"+($=$.toString())).substr($.length)},hr=0,Mr=[],$r=[],Qr=0,gn=[],Rn=[],gi=!1,Ei=$r;ae.__private__.setCustomOutputDestination=function($){gi=!0,Ei=$};var sn=function($){gi||(Ei=$)};ae.__private__.resetCustomOutputDestination=function(){gi=!1,Ei=$r};var Ft=ae.__private__.out=function($){return $=$.toString(),Qr+=$.length+1,Ei.push($),Ei},Wo=ae.__private__.write=function($){return Ft(arguments.length===1?$.toString():Array.prototype.join.call(arguments," "))},Eo=ae.__private__.getArrayBuffer=function($){for(var He=$.length,St=new ArrayBuffer(He),Zt=new Uint8Array(St);He--;)Zt[He]=$.charCodeAt(He);return St},Ta=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];ae.__private__.getStandardFonts=function(){return Ta};var Wn=n.fontSize||16;ae.__private__.setFontSize=ae.setFontSize=function($){return Wn=It===Rt?$/to:$,this};var xa,ui=ae.__private__.getFontSize=ae.getFontSize=function(){return It===Gt?Wn:Wn*to},Ja=n.R2L||!1;ae.__private__.setR2L=ae.setR2L=function($){return Ja=$,this},ae.__private__.getR2L=ae.getR2L=function(){return Ja};var Ma,es=ae.__private__.setZoomMode=function($){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test($))xa=$;else if(isNaN($)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf($)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+$+'" is not recognized.');xa=$}else xa=parseInt($,10)};ae.__private__.getZoomMode=function(){return xa};var yo,Wa=ae.__private__.setPageMode=function($){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf($)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+$+'" is not recognized.');Ma=$};ae.__private__.getPageMode=function(){return Ma};var Ks=ae.__private__.setLayoutMode=function($){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf($)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+$+'" is not recognized.');yo=$};ae.__private__.getLayoutMode=function(){return yo},ae.__private__.setDisplayMode=ae.setDisplayMode=function($,He,St){return es($),Ks(He),Wa(St),this};var uo={title:"",subject:"",author:"",keywords:"",creator:""};ae.__private__.getDocumentProperty=function($){if(Object.keys(uo).indexOf($)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return uo[$]},ae.__private__.getDocumentProperties=function(){return uo},ae.__private__.setDocumentProperties=ae.setProperties=ae.setDocumentProperties=function($){for(var He in uo)uo.hasOwnProperty(He)&&$[He]&&(uo[He]=$[He]);return this},ae.__private__.setDocumentProperty=function($,He){if(Object.keys(uo).indexOf($)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return uo[$]=He};var Ba,to,Sa,yl,Ds,ga={},wo={},ul=[],ka={},ns={},xo={},ql={},Pl=null,is=0,Ya=[],Hs=new Sp(ae),zh=n.hotfixes||[],jc={},Ff={},Vd=[],Ka=function $(He,St,Zt,br,hn,Fn){if(!(this instanceof $))return new $(He,St,Zt,br,hn,Fn);isNaN(He)&&(He=1),isNaN(St)&&(St=0),isNaN(Zt)&&(Zt=0),isNaN(br)&&(br=1),isNaN(hn)&&(hn=0),isNaN(Fn)&&(Fn=0),this._matrix=[He,St,Zt,br,hn,Fn]};Object.defineProperty(Ka.prototype,"sx",{get:function(){return this._matrix[0]},set:function($){this._matrix[0]=$}}),Object.defineProperty(Ka.prototype,"shy",{get:function(){return this._matrix[1]},set:function($){this._matrix[1]=$}}),Object.defineProperty(Ka.prototype,"shx",{get:function(){return this._matrix[2]},set:function($){this._matrix[2]=$}}),Object.defineProperty(Ka.prototype,"sy",{get:function(){return this._matrix[3]},set:function($){this._matrix[3]=$}}),Object.defineProperty(Ka.prototype,"tx",{get:function(){return this._matrix[4]},set:function($){this._matrix[4]=$}}),Object.defineProperty(Ka.prototype,"ty",{get:function(){return this._matrix[5]},set:function($){this._matrix[5]=$}}),Object.defineProperty(Ka.prototype,"a",{get:function(){return this._matrix[0]},set:function($){this._matrix[0]=$}}),Object.defineProperty(Ka.prototype,"b",{get:function(){return this._matrix[1]},set:function($){this._matrix[1]=$}}),Object.defineProperty(Ka.prototype,"c",{get:function(){return this._matrix[2]},set:function($){this._matrix[2]=$}}),Object.defineProperty(Ka.prototype,"d",{get:function(){return this._matrix[3]},set:function($){this._matrix[3]=$}}),Object.defineProperty(Ka.prototype,"e",{get:function(){return this._matrix[4]},set:function($){this._matrix[4]=$}}),Object.defineProperty(Ka.prototype,"f",{get:function(){return this._matrix[5]},set:function($){this._matrix[5]=$}}),Object.defineProperty(Ka.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ka.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ka.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ka.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ka.prototype.join=function($){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ir).join($)},Ka.prototype.multiply=function($){var He=$.sx*this.sx+$.shy*this.shx,St=$.sx*this.shy+$.shy*this.sy,Zt=$.shx*this.sx+$.sy*this.shx,br=$.shx*this.shy+$.sy*this.sy,hn=$.tx*this.sx+$.ty*this.shx+this.tx,Fn=$.tx*this.shy+$.ty*this.sy+this.ty;return new Ka(He,St,Zt,br,hn,Fn)},Ka.prototype.decompose=function(){var $=this.sx,He=this.shy,St=this.shx,Zt=this.sy,br=this.tx,hn=this.ty,Fn=Math.sqrt($*$+He*He),ia=($/=Fn)*St+(He/=Fn)*Zt;St-=$*ia,Zt-=He*ia;var ha=Math.sqrt(St*St+Zt*Zt);return ia/=ha,$*(Zt/=ha)<He*(St/=ha)&&($=-$,He=-He,ia=-ia,Fn=-Fn),{scale:new Ka(Fn,0,0,ha,0,0),translate:new Ka(1,0,0,1,br,hn),rotate:new Ka($,He,-He,$,0,0),skew:new Ka(1,0,ia,1,0,0)}},Ka.prototype.toString=function($){return this.join(" ")},Ka.prototype.inversed=function(){var $=this.sx,He=this.shy,St=this.shx,Zt=this.sy,br=this.tx,hn=this.ty,Fn=1/($*Zt-He*St),ia=Zt*Fn,ha=-He*Fn,Ga=-St*Fn,ro=$*Fn;return new Ka(ia,ha,Ga,ro,-ia*br-Ga*hn,-ha*br-ro*hn)},Ka.prototype.applyToPoint=function($){var He=$.x*this.sx+$.y*this.shx+this.tx,St=$.x*this.shy+$.y*this.sy+this.ty;return new r0(He,St)},Ka.prototype.applyToRectangle=function($){var He=this.applyToPoint($),St=this.applyToPoint(new r0($.x+$.w,$.y+$.h));return new Yd(He.x,He.y,St.x-He.x,St.y-He.y)},Ka.prototype.clone=function(){var $=this.sx,He=this.shy,St=this.shx,Zt=this.sy,br=this.tx,hn=this.ty;return new Ka($,He,St,Zt,br,hn)},ae.Matrix=Ka;var Mf=ae.matrixMult=function($,He){return He.multiply($)},Lf=new Ka(1,0,0,1,0,0);ae.unitMatrix=ae.identityMatrix=Lf;var pu=function($,He){if(!ns[$]){var St=(He instanceof jd?"Sh":"P")+(Object.keys(ka).length+1).toString(10);He.id=St,ns[$]=St,ka[St]=He,Hs.publish("addPattern",He)}};ae.ShadingPattern=jd,ae.TilingPattern=zd,ae.addShadingPattern=function($,He){return Mt("addShadingPattern()"),pu($,He),this},ae.beginTilingPattern=function($){Mt("beginTilingPattern()"),n0($.boundingBox[0],$.boundingBox[1],$.boundingBox[2]-$.boundingBox[0],$.boundingBox[3]-$.boundingBox[1],$.matrix)},ae.endTilingPattern=function($,He){Mt("endTilingPattern()"),He.stream=Rn[_t].join(`
`),pu($,He),Hs.publish("endTilingPattern",He),Vd.pop().restore()};var mu,lc=ae.__private__.newObject=function(){var $=Ss();return dl($,!0),$},Ss=ae.__private__.newObjectDeferred=function(){return hr++,Mr[hr]=function(){return Qr},hr},dl=function($,He){return He=typeof He=="boolean"&&He,Mr[$]=Qr,He&&Ft($+" 0 obj"),$},Wd=ae.__private__.newAdditionalObject=function(){var $={objId:Ss(),content:""};return gn.push($),$},Gd=Ss(),Uu=Ss(),gu=ae.__private__.decodeColorString=function($){var He=$.split(" ");if(He.length!==2||He[1]!=="g"&&He[1]!=="G")He.length!==5||He[4]!=="k"&&He[4]!=="K"||(He=[(1-He[0])*(1-He[3]),(1-He[1])*(1-He[3]),(1-He[2])*(1-He[3]),"r"]);else{var St=parseFloat(He[0]);He=[St,St,St,"r"]}for(var Zt="#",br=0;br<3;br++)Zt+=("0"+Math.floor(255*parseFloat(He[br])).toString(16)).slice(-2);return Zt},lA=ae.__private__.encodeColorString=function($){var He;typeof $=="string"&&($={ch1:$});var St=$.ch1,Zt=$.ch2,br=$.ch3,hn=$.ch4,Fn=$.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof St=="string"&&St.charAt(0)!=="#"){var ia=new Cp(St);if(ia.ok)St=ia.toHex();else if(!/^\d*\.?\d*$/.test(St))throw new Error('Invalid color "'+St+'" passed to jsPDF.encodeColorString.')}if(typeof St=="string"&&/^#[0-9A-Fa-f]{3}$/.test(St)&&(St="#"+St[1]+St[1]+St[2]+St[2]+St[3]+St[3]),typeof St=="string"&&/^#[0-9A-Fa-f]{6}$/.test(St)){var ha=parseInt(St.substr(1),16);St=ha>>16&255,Zt=ha>>8&255,br=255&ha}if(Zt===void 0||hn===void 0&&St===Zt&&Zt===br)He=typeof St=="string"?St+" "+Fn[0]:$.precision===2?nt(St/255)+" "+Fn[0]:yt(St/255)+" "+Fn[0];else if(hn===void 0||(0,me.Z)(hn)==="object"){if(hn&&!isNaN(hn.a)&&hn.a===0)return["1.","1.","1.",Fn[1]].join(" ");He=typeof St=="string"?[St,Zt,br,Fn[1]].join(" "):$.precision===2?[nt(St/255),nt(Zt/255),nt(br/255),Fn[1]].join(" "):[yt(St/255),yt(Zt/255),yt(br/255),Fn[1]].join(" ")}else He=typeof St=="string"?[St,Zt,br,hn,Fn[2]].join(" "):$.precision===2?[nt(St),nt(Zt),nt(br),nt(hn),Fn[2]].join(" "):[yt(St),yt(Zt),yt(br),yt(hn),Fn[2]].join(" ");return He},vu=ae.__private__.getFilters=function(){return O},Ru=ae.__private__.putStream=function($){var He=($=$||{}).data||"",St=$.filters||vu(),Zt=$.alreadyAppliedFilters||[],br=$.addLength1||!1,hn=He.length,Fn=$.objectId,ia=function(fl){return fl};if(oe!==null&&Fn===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");oe!==null&&(ia=gc.encryptor(Fn,0));var ha={};St===!0&&(St=["FlateEncode"]);var Ga=$.additionalKeyValues||[],ro=(ha=ua.API.processDataByFilters!==void 0?ua.API.processDataByFilters(He,St):{data:He,reverseChain:[]}).reverseChain+(Array.isArray(Zt)?Zt.join(" "):Zt.toString());if(ha.data.length!==0&&(Ga.push({key:"Length",value:ha.data.length}),br===!0&&Ga.push({key:"Length1",value:hn})),ro.length!=0)if(ro.split("/").length-1==1)Ga.push({key:"Filter",value:ro});else{Ga.push({key:"Filter",value:"["+ro+"]"});for(var da=0;da<Ga.length;da+=1)if(Ga[da].key==="DecodeParms"){for(var tc=[],Ic=0;Ic<ha.reverseChain.split("/").length-1;Ic+=1)tc.push("null");tc.push(Ga[da].value),Ga[da].value="["+tc.join(" ")+"]"}}Ft("<<");for(var wl=0;wl<Ga.length;wl++)Ft("/"+Ga[wl].key+" "+Ga[wl].value);Ft(">>"),ha.data.length!==0&&(Ft("stream"),Ft(ia(ha.data)),Ft("endstream"))},$h=ae.__private__.putPage=function($){var He=$.number,St=$.data,Zt=$.objId,br=$.contentsObjId;dl(Zt,!0),Ft("<</Type /Page"),Ft("/Parent "+$.rootDictionaryObjId+" 0 R"),Ft("/Resources "+$.resourceDictionaryObjId+" 0 R"),Ft("/MediaBox ["+parseFloat(ir($.mediaBox.bottomLeftX))+" "+parseFloat(ir($.mediaBox.bottomLeftY))+" "+ir($.mediaBox.topRightX)+" "+ir($.mediaBox.topRightY)+"]"),$.cropBox!==null&&Ft("/CropBox ["+ir($.cropBox.bottomLeftX)+" "+ir($.cropBox.bottomLeftY)+" "+ir($.cropBox.topRightX)+" "+ir($.cropBox.topRightY)+"]"),$.bleedBox!==null&&Ft("/BleedBox ["+ir($.bleedBox.bottomLeftX)+" "+ir($.bleedBox.bottomLeftY)+" "+ir($.bleedBox.topRightX)+" "+ir($.bleedBox.topRightY)+"]"),$.trimBox!==null&&Ft("/TrimBox ["+ir($.trimBox.bottomLeftX)+" "+ir($.trimBox.bottomLeftY)+" "+ir($.trimBox.topRightX)+" "+ir($.trimBox.topRightY)+"]"),$.artBox!==null&&Ft("/ArtBox ["+ir($.artBox.bottomLeftX)+" "+ir($.artBox.bottomLeftY)+" "+ir($.artBox.topRightX)+" "+ir($.artBox.topRightY)+"]"),typeof $.userUnit=="number"&&$.userUnit!==1&&Ft("/UserUnit "+$.userUnit),Hs.publish("putPage",{objId:Zt,pageContext:Ya[He],pageNumber:He,page:St}),Ft("/Contents "+br+" 0 R"),Ft(">>"),Ft("endobj");var hn=St.join(`
`);return It===Rt&&(hn+=`
Q`),dl(br,!0),Ru({data:hn,filters:vu(),objectId:br}),Ft("endobj"),Zt},Xd=ae.__private__.putPages=function(){var $,He,St=[];for($=1;$<=is;$++)Ya[$].objId=Ss(),Ya[$].contentsObjId=Ss();for($=1;$<=is;$++)St.push($h({number:$,data:Rn[$],objId:Ya[$].objId,contentsObjId:Ya[$].contentsObjId,mediaBox:Ya[$].mediaBox,cropBox:Ya[$].cropBox,bleedBox:Ya[$].bleedBox,trimBox:Ya[$].trimBox,artBox:Ya[$].artBox,userUnit:Ya[$].userUnit,rootDictionaryObjId:Gd,resourceDictionaryObjId:Uu}));dl(Gd,!0),Ft("<</Type /Pages");var Zt="/Kids [";for(He=0;He<is;He++)Zt+=St[He]+" 0 R ";Ft(Zt+"]"),Ft("/Count "+is),Ft(">>"),Ft("endobj"),Hs.publish("postPutPages")},Zh=function($){Hs.publish("putFont",{font:$,out:Ft,newObject:lc,putStream:Ru}),$.isAlreadyPutted!==!0&&($.objectNumber=lc(),Ft("<<"),Ft("/Type /Font"),Ft("/BaseFont /"+iA($.postScriptName)),Ft("/Subtype /Type1"),typeof $.encoding=="string"&&Ft("/Encoding /"+$.encoding),Ft("/FirstChar 32"),Ft("/LastChar 255"),Ft(">>"),Ft("endobj"))},Vh=function($){$.objectNumber=lc();var He=[];He.push({key:"Type",value:"/XObject"}),He.push({key:"Subtype",value:"/Form"}),He.push({key:"BBox",value:"["+[ir($.x),ir($.y),ir($.x+$.width),ir($.y+$.height)].join(" ")+"]"}),He.push({key:"Matrix",value:"["+$.matrix.toString()+"]"});var St=$.pages[1].join(`
`);Ru({data:St,additionalKeyValues:He,objectId:$.objectNumber}),Ft("endobj")},$0=function($,He){He||(He=21);var St=lc(),Zt=function(Fn,ia){var ha,Ga=[],ro=1/(ia-1);for(ha=0;ha<1;ha+=ro)Ga.push(ha);if(Ga.push(1),Fn[0].offset!=0){var da={offset:0,color:Fn[0].color};Fn.unshift(da)}if(Fn[Fn.length-1].offset!=1){var tc={offset:1,color:Fn[Fn.length-1].color};Fn.push(tc)}for(var Ic="",wl=0,fl=0;fl<Ga.length;fl++){for(ha=Ga[fl];ha>Fn[wl+1].offset;)wl++;var Fc=Fn[wl].offset,uA=(ha-Fc)/(Fn[wl+1].offset-Fc),Ku=Fn[wl].color,qA=Fn[wl+1].color;Ic+=Jt(Math.round((1-uA)*Ku[0]+uA*qA[0]).toString(16))+Jt(Math.round((1-uA)*Ku[1]+uA*qA[1]).toString(16))+Jt(Math.round((1-uA)*Ku[2]+uA*qA[2]).toString(16))}return Ic.trim()}($.colors,He),br=[];br.push({key:"FunctionType",value:"0"}),br.push({key:"Domain",value:"[0.0 1.0]"}),br.push({key:"Size",value:"["+He+"]"}),br.push({key:"BitsPerSample",value:"8"}),br.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),br.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ru({data:Zt,additionalKeyValues:br,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:St}),Ft("endobj"),$.objectNumber=lc(),Ft("<< /ShadingType "+$.type),Ft("/ColorSpace /DeviceRGB");var hn="/Coords ["+ir(parseFloat($.coords[0]))+" "+ir(parseFloat($.coords[1]))+" ";$.type===2?hn+=ir(parseFloat($.coords[2]))+" "+ir(parseFloat($.coords[3])):hn+=ir(parseFloat($.coords[2]))+" "+ir(parseFloat($.coords[3]))+" "+ir(parseFloat($.coords[4]))+" "+ir(parseFloat($.coords[5])),Ft(hn+="]"),$.matrix&&Ft("/Matrix ["+$.matrix.toString()+"]"),Ft("/Function "+St+" 0 R"),Ft("/Extend [true true]"),Ft(">>"),Ft("endobj")},Wh=function($,He){var St=Ss(),Zt=lc();He.push({resourcesOid:St,objectOid:Zt}),$.objectNumber=Zt;var br=[];br.push({key:"Type",value:"/Pattern"}),br.push({key:"PatternType",value:"1"}),br.push({key:"PaintType",value:"1"}),br.push({key:"TilingType",value:"1"}),br.push({key:"BBox",value:"["+$.boundingBox.map(ir).join(" ")+"]"}),br.push({key:"XStep",value:ir($.xStep)}),br.push({key:"YStep",value:ir($.yStep)}),br.push({key:"Resources",value:St+" 0 R"}),$.matrix&&br.push({key:"Matrix",value:"["+$.matrix.toString()+"]"}),Ru({data:$.stream,additionalKeyValues:br,objectId:$.objectNumber}),Ft("endobj")},Fp=function($){for(var He in $.objectNumber=lc(),Ft("<<"),$)switch(He){case"opacity":Ft("/ca "+nt($[He]));break;case"stroke-opacity":Ft("/CA "+nt($[He]))}Ft(">>"),Ft("endobj")},Mp=function($){dl($.resourcesOid,!0),Ft("<<"),Ft("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var He in Ft("/Font <<"),ga)ga.hasOwnProperty(He)&&(Re===!1||Re===!0&&ze.hasOwnProperty(He))&&Ft("/"+He+" "+ga[He].objectNumber+" 0 R");Ft(">>")}(),function(){if(Object.keys(ka).length>0){for(var He in Ft("/Shading <<"),ka)ka.hasOwnProperty(He)&&ka[He]instanceof jd&&ka[He].objectNumber>=0&&Ft("/"+He+" "+ka[He].objectNumber+" 0 R");Hs.publish("putShadingPatternDict"),Ft(">>")}}(),function(He){if(Object.keys(ka).length>0){for(var St in Ft("/Pattern <<"),ka)ka.hasOwnProperty(St)&&ka[St]instanceof ae.TilingPattern&&ka[St].objectNumber>=0&&ka[St].objectNumber<He&&Ft("/"+St+" "+ka[St].objectNumber+" 0 R");Hs.publish("putTilingPatternDict"),Ft(">>")}}($.objectOid),function(){if(Object.keys(xo).length>0){var He;for(He in Ft("/ExtGState <<"),xo)xo.hasOwnProperty(He)&&xo[He].objectNumber>=0&&Ft("/"+He+" "+xo[He].objectNumber+" 0 R");Hs.publish("putGStateDict"),Ft(">>")}}(),function(){for(var He in Ft("/XObject <<"),jc)jc.hasOwnProperty(He)&&jc[He].objectNumber>=0&&Ft("/"+He+" "+jc[He].objectNumber+" 0 R");Hs.publish("putXobjectDict"),Ft(">>")}(),Ft(">>"),Ft("endobj")},pm=function($){wo[$.fontName]=wo[$.fontName]||{},wo[$.fontName][$.fontStyle]=$.id},mm=function($,He,St,Zt,br){var hn={id:"F"+(Object.keys(ga).length+1).toString(10),postScriptName:$,fontName:He,fontStyle:St,encoding:Zt,isStandardFont:br||!1,metadata:{}};return Hs.publish("addFont",{font:hn,instance:this}),ga[hn.id]=hn,pm(hn),hn.id},YA=ae.__private__.pdfEscape=ae.pdfEscape=function($,He){return function(St,Zt){var br,hn,Fn,ia,ha,Ga,ro,da,tc;if(Fn=(Zt=Zt||{}).sourceEncoding||"Unicode",ha=Zt.outputEncoding,(Zt.autoencode||ha)&&ga[Ba].metadata&&ga[Ba].metadata[Fn]&&ga[Ba].metadata[Fn].encoding&&(ia=ga[Ba].metadata[Fn].encoding,!ha&&ga[Ba].encoding&&(ha=ga[Ba].encoding),!ha&&ia.codePages&&(ha=ia.codePages[0]),typeof ha=="string"&&(ha=ia[ha]),ha)){for(ro=!1,Ga=[],br=0,hn=St.length;br<hn;br++)(da=ha[St.charCodeAt(br)])?Ga.push(String.fromCharCode(da)):Ga.push(St[br]),Ga[br].charCodeAt(0)>>8&&(ro=!0);St=Ga.join("")}for(br=St.length;ro===void 0&&br!==0;)St.charCodeAt(br-1)>>8&&(ro=!0),br--;if(!ro)return St;for(Ga=Zt.noBOM?[]:[254,255],br=0,hn=St.length;br<hn;br++){if((tc=(da=St.charCodeAt(br))>>8)>>8)throw new Error("Character at position "+br+" of string '"+St+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ga.push(tc),Ga.push(da-(tc<<8))}return String.fromCharCode.apply(void 0,Ga)}($,He).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Gh=ae.__private__.beginPage=function($){Rn[++is]=[],Ya[is]={objId:0,contentsObjId:0,userUnit:Number(_),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number($[0]),topRightY:Number($[1])}},Z0(is),sn(Rn[_t])},Lp=function($,He){var St,Zt,br;switch(a=He||a,typeof $=="string"&&(St=ot($.toLowerCase()),Array.isArray(St)&&(Zt=St[0],br=St[1])),Array.isArray($)&&(Zt=$[0]*to,br=$[1]*to),isNaN(Zt)&&(Zt=A[0],br=A[1]),(Zt>14400||br>14400)&&(ks.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Zt=Math.min(14400,Zt),br=Math.min(14400,br)),A=[Zt,br],a.substr(0,1)){case"l":br>Zt&&(A=[br,Zt]);break;case"p":Zt>br&&(A=[br,Zt])}Gh(A),ig(q0),Ft(ep),e0!==0&&Ft(e0+" J"),Pp!==0&&Ft(Pp+" j"),Hs.publish("addPage",{pageNumber:is})},kp=function($){$>0&&$<=is&&(Rn.splice($,1),Ya.splice($,1),is--,_t>is&&(_t=is),this.setPage(_t))},Z0=function($){$>0&&$<=is&&(_t=$)},V0=ae.__private__.getNumberOfPages=ae.getNumberOfPages=function(){return Rn.length-1},Dp=function($,He,St){var Zt,br=void 0;return St=St||{},$=$!==void 0?$:ga[Ba].fontName,He=He!==void 0?He:ga[Ba].fontStyle,Zt=$.toLowerCase(),wo[Zt]!==void 0&&wo[Zt][He]!==void 0?br=wo[Zt][He]:wo[$]!==void 0&&wo[$][He]!==void 0?br=wo[$][He]:St.disableWarning===!1&&ks.warn("Unable to look up font label for font '"+$+"', '"+He+"'. Refer to getFontList() for available fonts."),br||St.noFallback||(br=wo.times[He])==null&&(br=wo.times.normal),br},Qu=ae.__private__.putInfo=function(){var $=lc(),He=function(Zt){return Zt};for(var St in oe!==null&&(He=gc.encryptor($,0)),Ft("<<"),Ft("/Producer ("+YA(He("jsPDF "+ua.version))+")"),uo)uo.hasOwnProperty(St)&&uo[St]&&Ft("/"+St.substr(0,1).toUpperCase()+St.substr(1)+" ("+YA(He(uo[St]))+")");Ft("/CreationDate ("+YA(He(Tr))+")"),Ft(">>"),Ft("endobj")},Xh=ae.__private__.putCatalog=function($){var He=($=$||{}).rootDictionaryObjId||Gd;switch(lc(),Ft("<<"),Ft("/Type /Catalog"),Ft("/Pages "+He+" 0 R"),xa||(xa="fullwidth"),xa){case"fullwidth":Ft("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Ft("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Ft("/OpenAction [3 0 R /Fit]");break;case"original":Ft("/OpenAction [3 0 R /XYZ null null 1]");break;default:var St=""+xa;St.substr(St.length-1)==="%"&&(xa=parseInt(xa)/100),typeof xa=="number"&&Ft("/OpenAction [3 0 R /XYZ null null "+nt(xa)+"]")}switch(yo||(yo="continuous"),yo){case"continuous":Ft("/PageLayout /OneColumn");break;case"single":Ft("/PageLayout /SinglePage");break;case"two":case"twoleft":Ft("/PageLayout /TwoColumnLeft");break;case"tworight":Ft("/PageLayout /TwoColumnRight")}Ma&&Ft("/PageMode /"+Ma),Hs.publish("putCatalog"),Ft(">>"),Ft("endobj")},ec=ae.__private__.putTrailer=function(){Ft("trailer"),Ft("<<"),Ft("/Size "+(hr+1)),Ft("/Root "+hr+" 0 R"),Ft("/Info "+(hr-1)+" 0 R"),oe!==null&&Ft("/Encrypt "+gc.oid+" 0 R"),Ft("/ID [ <"+Zr+"> <"+Zr+"> ]"),Ft(">>")},W0=ae.__private__.putHeader=function(){Ft("%PDF-"+mt),Ft("%\xBA\xDF\xAC\xE0")},Op=ae.__private__.putXRef=function(){var $="0000000000";Ft("xref"),Ft("0 "+(hr+1)),Ft("0000000000 65535 f ");for(var He=1;He<=hr;He++)typeof Mr[He]=="function"?Ft(($+Mr[He]()).slice(-10)+" 00000 n "):Mr[He]!==void 0?Ft(($+Mr[He]).slice(-10)+" 00000 n "):Ft("0000000000 00000 n ")},kf=ae.__private__.buildDocument=function(){var $;hr=0,Qr=0,$r=[],Mr=[],gn=[],Gd=Ss(),Uu=Ss(),sn($r),Hs.publish("buildDocument"),W0(),Xd(),function(){Hs.publish("putAdditionalObjects");for(var St=0;St<gn.length;St++){var Zt=gn[St];dl(Zt.objId,!0),Ft(Zt.content),Ft("endobj")}Hs.publish("postPutAdditionalObjects")}(),$=[],function(){for(var St in ga)ga.hasOwnProperty(St)&&(Re===!1||Re===!0&&ze.hasOwnProperty(St))&&Zh(ga[St])}(),function(){var St;for(St in xo)xo.hasOwnProperty(St)&&Fp(xo[St])}(),function(){for(var St in jc)jc.hasOwnProperty(St)&&Vh(jc[St])}(),function(St){var Zt;for(Zt in ka)ka.hasOwnProperty(Zt)&&(ka[Zt]instanceof jd?$0(ka[Zt]):ka[Zt]instanceof zd&&Wh(ka[Zt],St))}($),Hs.publish("putResources"),$.forEach(Mp),Mp({resourcesOid:Uu,objectOid:Number.MAX_SAFE_INTEGER}),Hs.publish("postPutResources"),oe!==null&&(gc.oid=lc(),Ft("<<"),Ft("/Filter /Standard"),Ft("/V "+gc.v),Ft("/R "+gc.r),Ft("/U <"+gc.toHexString(gc.U)+">"),Ft("/O <"+gc.toHexString(gc.O)+">"),Ft("/P "+gc.P),Ft(">>"),Ft("endobj")),Qu(),Xh();var He=Qr;return Op(),ec(),Ft("startxref"),Ft(""+He),Ft("%%EOF"),sn(Rn[_t]),$r.join(`
`)},ch=ae.__private__.getBlob=function($){return new Blob([Eo($)],{type:"application/pdf"})},gd=ae.output=ae.__private__.output=(mu=function($,He){switch(typeof(He=He||{})=="string"?He={filename:He}:He.filename=He.filename||"generated.pdf",$){case void 0:return kf();case"save":ae.save(He.filename);break;case"arraybuffer":return Eo(kf());case"blob":return ch(kf());case"bloburi":case"bloburl":if(Za.URL!==void 0&&typeof Za.URL.createObjectURL=="function")return Za.URL&&Za.URL.createObjectURL(ch(kf()))||void 0;ks.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var St="",Zt=kf();try{St=Qs(Zt)}catch(Ic){St=Qs(unescape(encodeURIComponent(Zt)))}return"data:application/pdf;filename="+He.filename+";base64,"+St;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Za)==="[object Window]"){var br="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",hn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';He.pdfObjectUrl&&(br=He.pdfObjectUrl,hn="");var Fn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+br+'"'+hn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(He)+");<\/script></body></html>",ia=Za.open();return ia!==null&&ia.document.write(Fn),ia}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Za)==="[object Window]"){var ha='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(He.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+He.filename+'" width="500px" height="400px" /></body></html>',Ga=Za.open();if(Ga!==null){Ga.document.write(ha);var ro=this;Ga.document.documentElement.querySelector("#pdfViewer").onload=function(){Ga.document.title=He.filename,Ga.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ro.output("bloburl"))}}return Ga}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Za)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var da='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",He)+'"></iframe></body></html>',tc=Za.open();if(tc!==null&&(tc.document.write(da),tc.document.title=He.filename),tc||typeof safari=="undefined")return tc;break;case"datauri":case"dataurl":return Za.document.location.href=this.output("datauristring",He);default:return null}},mu.foo=function(){try{return mu.apply(this,arguments)}catch(St){var $=St.stack||"";~$.indexOf(" at ")&&($=$.split(" at ")[1]);var He="Error in function "+$.split(`
`)[0].split("<")[0]+": "+St.message;if(!Za.console)throw new Error(He);Za.console.error(He,St),Za.alert&&alert(He)}},mu.foo.bar=mu,mu.foo),vd=function($){return Array.isArray(zh)===!0&&zh.indexOf($)>-1};switch(l){case"pt":to=1;break;case"mm":to=72/25.4;break;case"cm":to=72/2.54;break;case"in":to=72;break;case"px":to=vd("px_scaling")==1?.75:96/72;break;case"pc":case"em":to=12;break;case"ex":to=6;break;default:if(typeof l!="number")throw new Error("Invalid unit: "+l);to=l}var gc=null;En(),Or();var G0=ae.__private__.getPageInfo=ae.getPageInfo=function($){if(isNaN($)||$%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ya[$].objId,pageNumber:$,pageContext:Ya[$]}},tg=ae.__private__.getPageInfoByObjId=function($){if(isNaN($)||$%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var He in Ya)if(Ya[He].objId===$)break;return G0(He)},X0=ae.__private__.getCurrentPageInfo=ae.getCurrentPageInfo=function(){return{objId:Ya[_t].objId,pageNumber:_t,pageContext:Ya[_t]}};ae.addPage=function(){return Lp.apply(this,arguments),this},ae.setPage=function(){return Z0.apply(this,arguments),sn.call(this,Rn[_t]),this},ae.insertPage=function($){return this.addPage(),this.movePage(_t,$),this},ae.movePage=function($,He){var St,Zt;if($>He){St=Rn[$],Zt=Ya[$];for(var br=$;br>He;br--)Rn[br]=Rn[br-1],Ya[br]=Ya[br-1];Rn[He]=St,Ya[He]=Zt,this.setPage(He)}else if($<He){St=Rn[$],Zt=Ya[$];for(var hn=$;hn<He;hn++)Rn[hn]=Rn[hn+1],Ya[hn]=Ya[hn+1];Rn[He]=St,Ya[He]=Zt,this.setPage(He)}return this},ae.deletePage=function(){return kp.apply(this,arguments),this},ae.__private__.text=ae.text=function($,He,St,Zt,br){var hn,Fn,ia,ha,Ga,ro,da,tc,Ic,wl=(Zt=Zt||{}).scope||this;if(typeof $=="number"&&typeof He=="number"&&(typeof St=="string"||Array.isArray(St))){var fl=St;St=He,He=$,$=fl}if(arguments[3]instanceof Ka==0?(ia=arguments[4],ha=arguments[5],(0,me.Z)(da=arguments[3])==="object"&&da!==null||(typeof ia=="string"&&(ha=ia,ia=null),typeof da=="string"&&(ha=da,da=null),typeof da=="number"&&(ia=da,da=null),Zt={flags:da,angle:ia,align:ha})):(Mt("The transform parameter of text() with a Matrix value"),Ic=br),isNaN(He)||isNaN(St)||$==null)throw new Error("Invalid arguments passed to jsPDF.text");if($.length===0)return wl;var Fc,uA="",Ku=typeof Zt.lineHeightFactor=="number"?Zt.lineHeightFactor:Jh,qA=wl.internal.scaleFactor;function Ro(qs){return qs=qs.split(" ").join(Array(Zt.TabLen||9).join(" ")),YA(qs,da)}function Hu(qs){for(var pl,vc=qs.concat(),zc=[],Tf=vc.length;Tf--;)typeof(pl=vc.shift())=="string"?zc.push(pl):Array.isArray(qs)&&(pl.length===1||pl[1]===void 0&&pl[2]===void 0)?zc.push(pl[0]):zc.push([pl[0],pl[1],pl[2]]);return zc}function ju(qs,pl){var vc;if(typeof qs=="string")vc=pl(qs)[0];else if(Array.isArray(qs)){for(var zc,Tf,Kp=qs.concat(),Wu=[],Bm=Kp.length;Bm--;)typeof(zc=Kp.shift())=="string"?Wu.push(pl(zc)[0]):Array.isArray(zc)&&typeof zc[0]=="string"&&(Tf=pl(zc[0],zc[1],zc[2]),Wu.push([Tf[0],Tf[1],Tf[2]]));vc=Wu}return vc}var tf=!1,zu=!0;if(typeof $=="string")tf=!0;else if(Array.isArray($)){var Nf=$.concat();Fn=[];for(var i0,Mc=Nf.length;Mc--;)(typeof(i0=Nf.shift())!="string"||Array.isArray(i0)&&typeof i0[0]!="string")&&(zu=!1);tf=zu}if(tf===!1)throw new Error('Type of text must be string or Array. "'+$+'" is not recognized.');typeof $=="string"&&($=$.match(/[\r?\n]/)?$.split(/\r\n|\r|\n/g):[$]);var a0=Wn/wl.internal.scaleFactor,fh=a0*(Ku-1);switch(Zt.baseline){case"bottom":St-=fh;break;case"top":St+=a0-fh;break;case"hanging":St+=a0-2*fh;break;case"middle":St+=a0/2-fh}if((ro=Zt.maxWidth||0)>0&&(typeof $=="string"?$=wl.splitTextToSize($,ro):Object.prototype.toString.call($)==="[object Array]"&&($=$.reduce(function(qs,pl){return qs.concat(wl.splitTextToSize(pl,ro))},[]))),hn={text:$,x:He,y:St,options:Zt,mutex:{pdfEscape:YA,activeFontKey:Ba,fonts:ga,activeFontSize:Wn}},Hs.publish("preProcessText",hn),$=hn.text,ia=(Zt=hn.options).angle,Ic instanceof Ka==0&&ia&&typeof ia=="number"){ia*=Math.PI/180,Zt.rotationDirection===0&&(ia=-ia),It===Rt&&(ia=-ia);var Rp=Math.cos(ia),no=Math.sin(ia);Ic=new Ka(Rp,no,-no,Rp,0,0)}else ia&&ia instanceof Ka&&(Ic=ia);It!==Rt||Ic||(Ic=Lf),(Ga=Zt.charSpace||qh)!==void 0&&(uA+=ir(Wt(Ga))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(tc=Zt.horizontalScale)!==void 0&&(uA+=ir(100*tc)+` Tz
`),Zt.lang;var hl=-1,bu=Zt.renderingMode!==void 0?Zt.renderingMode:Zt.stroke,rf=wl.internal.getCurrentPageInfo().pageContext;switch(bu){case 0:case!1:case"fill":hl=0;break;case 1:case!0:case"stroke":hl=1;break;case 2:case"fillThenStroke":hl=2;break;case 3:case"invisible":hl=3;break;case 4:case"fillAndAddForClipping":hl=4;break;case 5:case"strokeAndAddPathForClipping":hl=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":hl=6;break;case 7:case"addToPathForClipping":hl=7}var wm=rf.usedRenderingMode!==void 0?rf.usedRenderingMode:-1;hl!==-1?uA+=hl+` Tr
`:wm!==-1&&(uA+=`0 Tr
`),hl!==-1&&(rf.usedRenderingMode=hl),ha=Zt.align||"left";var hs,o0=Wn*Ku,Ul=wl.internal.pageSize.getWidth(),xm=ga[Ba];Ga=Zt.charSpace||qh,ro=Zt.maxWidth||0,da=Object.assign({autoencode:!0,noBOM:!0},Zt.flags);var hh=[],s0=function(qs){return wl.getStringUnitWidth(qs,{font:xm,charSpace:Ga,fontSize:Wn,doKerning:!1})*Wn/qA};if(Object.prototype.toString.call($)==="[object Array]"){var DA;Fn=Hu($),ha!=="left"&&(hs=Fn.map(s0));var yu,l0=0;if(ha==="right"){He-=hs[0],$=[],Mc=Fn.length;for(var ph=0;ph<Mc;ph++)ph===0?(yu=yd(He),DA=wd(St)):(yu=Wt(l0-hs[ph]),DA=-o0),$.push([Fn[ph],yu,DA]),l0=hs[ph]}else if(ha==="center"){He-=hs[0]/2,$=[],Mc=Fn.length;for(var nf=0;nf<Mc;nf++)nf===0?(yu=yd(He),DA=wd(St)):(yu=Wt((l0-hs[nf])/2),DA=-o0),$.push([Fn[nf],yu,DA]),l0=hs[nf]}else if(ha==="left"){$=[],Mc=Fn.length;for(var af=0;af<Mc;af++)$.push(Fn[af])}else if(ha==="justify"&&xm.encoding==="Identity-H"){$=[],Mc=Fn.length,ro=ro!==0?ro:Ul;for(var np=0,rc=0;rc<Mc;rc++)if(DA=rc===0?wd(St):-o0,yu=rc===0?yd(He):np,rc<Mc-1){var Cm=Wt((ro-hs[rc])/(Fn[rc].split(" ").length-1)),$u=Fn[rc].split(" ");$.push([$u[0]+" ",yu,DA]),np=0;for(var Zu=1;Zu<$u.length;Zu++){var c0=(s0($u[Zu-1]+" "+$u[Zu])-s0($u[Zu]))*qA+Cm;Zu==$u.length-1?$.push([$u[Zu],c0,0]):$.push([$u[Zu]+" ",c0,0]),np-=c0}}else $.push([Fn[rc],yu,DA]);$.push(["",np,0])}else{if(ha!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for($=[],Mc=Fn.length,ro=ro!==0?ro:Ul,rc=0;rc<Mc;rc++){DA=rc===0?wd(St):-o0,yu=rc===0?yd(He):0;var ip=Fn[rc].split(" ").length-1,Qp=ip>0?(ro-hs[rc])/ip:0;rc<Mc-1?hh.push(ir(Wt(Qp))):hh.push(0),$.push([Fn[rc],yu,DA])}}}(typeof Zt.R2L=="boolean"?Zt.R2L:Ja)===!0&&($=ju($,function(qs,pl,vc){return[qs.split("").reverse().join(""),pl,vc]})),hn={text:$,x:He,y:St,options:Zt,mutex:{pdfEscape:YA,activeFontKey:Ba,fonts:ga,activeFontSize:Wn}},Hs.publish("postProcessText",hn),$=hn.text,Fc=hn.mutex.isHex||!1;var ap=ga[Ba].encoding;ap!=="WinAnsiEncoding"&&ap!=="StandardEncoding"||($=ju($,function(qs,pl,vc){return[Ro(qs),pl,vc]})),Fn=Hu($),$=[];for(var Pf,mh,ps,gh=Array.isArray(Fn[0])?1:0,vh="",A0=function(qs,pl,vc){var zc="";return vc instanceof Ka?(vc=typeof Zt.angle=="number"?Mf(vc,new Ka(1,0,0,1,qs,pl)):Mf(new Ka(1,0,0,1,qs,pl),vc),It===Rt&&(vc=Mf(new Ka(1,0,0,-1,0,0),vc)),zc=vc.join(" ")+` Tm
`):zc=ir(qs)+" "+ir(pl)+` Td
`,zc},Vu=0;Vu<Fn.length;Vu++){switch(vh="",gh){case 1:ps=(Fc?"<":"(")+Fn[Vu][0]+(Fc?">":")"),Pf=parseFloat(Fn[Vu][1]),mh=parseFloat(Fn[Vu][2]);break;case 0:ps=(Fc?"<":"(")+Fn[Vu]+(Fc?">":")"),Pf=yd(He),mh=wd(St)}hh!==void 0&&hh[Vu]!==void 0&&(vh=hh[Vu]+` Tw
`),Vu===0?$.push(vh+A0(Pf,mh,Ic)+ps):gh===0?$.push(vh+ps):gh===1&&$.push(vh+A0(Pf,mh,Ic)+ps)}$=gh===0?$.join(` Tj
T* `):$.join(` Tj
`),$+=` Tj
`;var of=`BT
/`;return of+=Ba+" "+Wn+` Tf
`,of+=ir(Wn*Ku)+` TL
`,of+=Yh+`
`,of+=uA,of+=$,Ft(of+="ET"),ze[Ba]=!0,wl};var rg=ae.__private__.clip=ae.clip=function($){return Ft($==="evenodd"?"W*":"W"),this};ae.clipEvenOdd=function(){return rg("evenodd")},ae.__private__.discardPath=ae.discardPath=function(){return Ft("n"),this};var bd=ae.__private__.isValidStyle=function($){var He=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf($)!==-1&&(He=!0),He};ae.__private__.setDefaultPathOperation=ae.setDefaultPathOperation=function($){return bd($)&&(Z=$),this};var gm=ae.__private__.getStyle=ae.getStyle=function($){var He=Z;switch($){case"D":case"S":He="S";break;case"F":He="f";break;case"FD":case"DF":He="B";break;case"f":case"f*":case"B":case"B*":He=$}return He},vm=ae.close=function(){return Ft("h"),this};ae.stroke=function(){return Ft("S"),this},ae.fill=function($){return cA("f",$),this},ae.fillEvenOdd=function($){return cA("f*",$),this},ae.fillStroke=function($){return cA("B",$),this},ae.fillStrokeEvenOdd=function($){return cA("B*",$),this};var cA=function($,He){(0,me.Z)(He)==="object"?Tl(He,$):Ft($)},Es=function($){$===null||It===Rt&&$===void 0||($=gm($),Ft($))};function AA($,He,St,Zt,br){var hn=new zd(He||this.boundingBox,St||this.xStep,Zt||this.yStep,this.gState,br||this.matrix);hn.stream=this.stream;var Fn=$+"$$"+this.cloneIndex+++"$$";return pu(Fn,hn),hn}var Tl=function($,He){var St=ns[$.key],Zt=ka[St];if(Zt instanceof jd)Ft("q"),Ft(J0(He)),Zt.gState&&ae.setGState(Zt.gState),Ft($.matrix.toString()+" cm"),Ft("/"+St+" sh"),Ft("Q");else if(Zt instanceof zd){var br=new Ka(1,0,0,-1,0,dh());$.matrix&&(br=br.multiply($.matrix||Lf),St=AA.call(Zt,$.key,$.boundingBox,$.xStep,$.yStep,br).id),Ft("q"),Ft("/Pattern cs"),Ft("/"+St+" scn"),Zt.gState&&ae.setGState(Zt.gState),Ft(He),Ft("Q")}},J0=function($){switch($){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Y0=ae.moveTo=function($,He){return Ft(ir(Wt($))+" "+ir(Ht(He))+" m"),this},Jd=ae.lineTo=function($,He){return Ft(ir(Wt($))+" "+ir(Ht(He))+" l"),this},Ah=ae.curveTo=function($,He,St,Zt,br,hn){return Ft([ir(Wt($)),ir(Ht(He)),ir(Wt(St)),ir(Ht(Zt)),ir(Wt(br)),ir(Ht(hn)),"c"].join(" ")),this};ae.__private__.line=ae.line=function($,He,St,Zt,br){if(isNaN($)||isNaN(He)||isNaN(St)||isNaN(Zt)||!bd(br))throw new Error("Invalid arguments passed to jsPDF.line");return It===Gt?this.lines([[St-$,Zt-He]],$,He,[1,1],br||"S"):this.lines([[St-$,Zt-He]],$,He,[1,1]).stroke()},ae.__private__.lines=ae.lines=function($,He,St,Zt,br,hn){var Fn,ia,ha,Ga,ro,da,tc,Ic,wl,fl,Fc,uA;if(typeof $=="number"&&(uA=St,St=He,He=$,$=uA),Zt=Zt||[1,1],hn=hn||!1,isNaN(He)||isNaN(St)||!Array.isArray($)||!Array.isArray(Zt)||!bd(br)||typeof hn!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Y0(He,St),Fn=Zt[0],ia=Zt[1],Ga=$.length,fl=He,Fc=St,ha=0;ha<Ga;ha++)(ro=$[ha]).length===2?(fl=ro[0]*Fn+fl,Fc=ro[1]*ia+Fc,Jd(fl,Fc)):(da=ro[0]*Fn+fl,tc=ro[1]*ia+Fc,Ic=ro[2]*Fn+fl,wl=ro[3]*ia+Fc,fl=ro[4]*Fn+fl,Fc=ro[5]*ia+Fc,Ah(da,tc,Ic,wl,fl,Fc));return hn&&vm(),Es(br),this},ae.path=function($){for(var He=0;He<$.length;He++){var St=$[He],Zt=St.c;switch(St.op){case"m":Y0(Zt[0],Zt[1]);break;case"l":Jd(Zt[0],Zt[1]);break;case"c":Ah.apply(this,Zt);break;case"h":vm()}}return this},ae.__private__.rect=ae.rect=function($,He,St,Zt,br){if(isNaN($)||isNaN(He)||isNaN(St)||isNaN(Zt)||!bd(br))throw new Error("Invalid arguments passed to jsPDF.rect");return It===Gt&&(Zt=-Zt),Ft([ir(Wt($)),ir(Ht(He)),ir(Wt(St)),ir(Wt(Zt)),"re"].join(" ")),Es(br),this},ae.__private__.triangle=ae.triangle=function($,He,St,Zt,br,hn,Fn){if(isNaN($)||isNaN(He)||isNaN(St)||isNaN(Zt)||isNaN(br)||isNaN(hn)||!bd(Fn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[St-$,Zt-He],[br-St,hn-Zt],[$-br,He-hn]],$,He,[1,1],Fn,!0),this},ae.__private__.roundedRect=ae.roundedRect=function($,He,St,Zt,br,hn,Fn){if(isNaN($)||isNaN(He)||isNaN(St)||isNaN(Zt)||isNaN(br)||isNaN(hn)||!bd(Fn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var ia=4/3*(Math.SQRT2-1);return br=Math.min(br,.5*St),hn=Math.min(hn,.5*Zt),this.lines([[St-2*br,0],[br*ia,0,br,hn-hn*ia,br,hn],[0,Zt-2*hn],[0,hn*ia,-br*ia,hn,-br,hn],[2*br-St,0],[-br*ia,0,-br,-hn*ia,-br,-hn],[0,2*hn-Zt],[0,-hn*ia,br*ia,-hn,br,-hn]],$+br,He,[1,1],Fn,!0),this},ae.__private__.ellipse=ae.ellipse=function($,He,St,Zt,br){if(isNaN($)||isNaN(He)||isNaN(St)||isNaN(Zt)||!bd(br))throw new Error("Invalid arguments passed to jsPDF.ellipse");var hn=4/3*(Math.SQRT2-1)*St,Fn=4/3*(Math.SQRT2-1)*Zt;return Y0($+St,He),Ah($+St,He-Fn,$+hn,He-Zt,$,He-Zt),Ah($-hn,He-Zt,$-St,He-Fn,$-St,He),Ah($-St,He+Fn,$-hn,He+Zt,$,He+Zt),Ah($+hn,He+Zt,$+St,He+Fn,$+St,He),Es(br),this},ae.__private__.circle=ae.circle=function($,He,St,Zt){if(isNaN($)||isNaN(He)||isNaN(St)||!bd(Zt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse($,He,St,St,Zt)},ae.setFont=function($,He,St){return St&&(He=Wr(He,St)),Ba=Dp($,He,{disableWarning:!1}),this};var ng=ae.__private__.getFont=ae.getFont=function(){return ga[Dp.apply(ae,arguments)]};ae.__private__.getFontList=ae.getFontList=function(){var $,He,St={};for($ in wo)if(wo.hasOwnProperty($))for(He in St[$]=[],wo[$])wo[$].hasOwnProperty(He)&&St[$].push(He);return St},ae.addFont=function($,He,St,Zt,br){var hn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&hn.indexOf(arguments[3])!==-1?br=arguments[3]:arguments[3]&&hn.indexOf(arguments[3])==-1&&(St=Wr(St,Zt)),mm.call(this,$,He,St,br=br||"Identity-H")};var Jh,q0=n.lineWidth||.200025,fo=ae.__private__.getLineWidth=ae.getLineWidth=function(){return q0},ig=ae.__private__.setLineWidth=ae.setLineWidth=function($){return q0=$,Ft(ir(Wt($))+" w"),this};ae.__private__.setLineDash=ua.API.setLineDash=ua.API.setLineDashPattern=function($,He){if($=$||[],He=He||0,isNaN(He)||!Array.isArray($))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return $=$.map(function(St){return ir(Wt(St))}).join(" "),He=ir(Wt(He)),Ft("["+$+"] "+He+" d"),this};var ag=ae.__private__.getLineHeight=ae.getLineHeight=function(){return Wn*Jh};ae.__private__.getLineHeight=ae.getLineHeight=function(){return Wn*Jh};var og=ae.__private__.setLineHeightFactor=ae.setLineHeightFactor=function($){return typeof($=$||1.15)=="number"&&(Jh=$),this},sg=ae.__private__.getLineHeightFactor=ae.getLineHeightFactor=function(){return Jh};og(n.lineHeight);var yd=ae.__private__.getHorizontalCoordinate=function($){return Wt($)},wd=ae.__private__.getVerticalCoordinate=function($){return It===Rt?$:Ya[_t].mediaBox.topRightY-Ya[_t].mediaBox.bottomLeftY-Wt($)},lg=ae.__private__.getHorizontalCoordinateString=ae.getHorizontalCoordinateString=function($){return ir(yd($))},Np=ae.__private__.getVerticalCoordinateString=ae.getVerticalCoordinateString=function($){return ir(wd($))},ep=n.strokeColor||"0 G";ae.__private__.getStrokeColor=ae.getDrawColor=function(){return gu(ep)},ae.__private__.setStrokeColor=ae.setDrawColor=function($,He,St,Zt){return ep=lA({ch1:$,ch2:He,ch3:St,ch4:Zt,pdfColorType:"draw",precision:2}),Ft(ep),this};var uh=n.fillColor||"0 g";ae.__private__.getFillColor=ae.getFillColor=function(){return gu(uh)},ae.__private__.setFillColor=ae.setFillColor=function($,He,St,Zt){return uh=lA({ch1:$,ch2:He,ch3:St,ch4:Zt,pdfColorType:"fill",precision:2}),Ft(uh),this};var Yh=n.textColor||"0 g",tp=ae.__private__.getTextColor=ae.getTextColor=function(){return gu(Yh)};ae.__private__.setTextColor=ae.setTextColor=function($,He,St,Zt){return Yh=lA({ch1:$,ch2:He,ch3:St,ch4:Zt,pdfColorType:"text",precision:3}),this};var qh=n.charSpace,bm=ae.__private__.getCharSpace=ae.getCharSpace=function(){return parseFloat(qh||0)};ae.__private__.setCharSpace=ae.setCharSpace=function($){if(isNaN($))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return qh=$,this};var e0=0;ae.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},ae.__private__.setLineCap=ae.setLineCap=function($){var He=ae.CapJoinStyles[$];if(He===void 0)throw new Error("Line cap style of '"+$+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return e0=He,Ft(He+" J"),this};var Pp=0;ae.__private__.setLineJoin=ae.setLineJoin=function($){var He=ae.CapJoinStyles[$];if(He===void 0)throw new Error("Line join style of '"+$+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Pp=He,Ft(He+" j"),this},ae.__private__.setLineMiterLimit=ae.__private__.setMiterLimit=ae.setLineMiterLimit=ae.setMiterLimit=function($){if($=$||0,isNaN($))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Ft(ir(Wt($))+" M"),this},ae.GState=Rh,ae.setGState=function($){($=typeof $=="string"?xo[ql[$]]:t0(null,$)).equals(Pl)||(Ft("/"+$.id+" gs"),Pl=$)};var t0=function($,He){if(!$||!ql[$]){var St=!1;for(var Zt in xo)if(xo.hasOwnProperty(Zt)&&xo[Zt].equals(He)){St=!0;break}if(St)He=xo[Zt];else{var br="GS"+(Object.keys(xo).length+1).toString(10);xo[br]=He,He.id=br}return $&&(ql[$]=He.id),Hs.publish("addGState",He),He}};ae.addGState=function($,He){return t0($,He),this},ae.saveGraphicsState=function(){return Ft("q"),ul.push({key:Ba,size:Wn,color:Yh}),this},ae.restoreGraphicsState=function(){Ft("Q");var $=ul.pop();return Ba=$.key,Wn=$.size,Yh=$.color,Pl=null,this},ae.setCurrentTransformationMatrix=function($){return Ft($.toString()+" cm"),this},ae.comment=function($){return Ft("#"+$),this};var r0=function($,He){var St=$||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return St},set:function(hn){isNaN(hn)||(St=parseFloat(hn))}});var Zt=He||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Zt},set:function(hn){isNaN(hn)||(Zt=parseFloat(hn))}});var br="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return br},set:function(hn){br=hn.toString()}}),this},Yd=function($,He,St,Zt){r0.call(this,$,He),this.type="rect";var br=St||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return br},set:function(Fn){isNaN(Fn)||(br=parseFloat(Fn))}});var hn=Zt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return hn},set:function(Fn){isNaN(Fn)||(hn=parseFloat(Fn))}}),this},RA=function(){this.page=is,this.currentPage=_t,this.pages=Rn.slice(0),this.pagesContext=Ya.slice(0),this.x=Sa,this.y=yl,this.matrix=Ds,this.width=Tp(_t),this.height=qd(_t),this.outputDestination=Ei,this.id="",this.objectNumber=-1};RA.prototype.restore=function(){is=this.page,_t=this.currentPage,Ya=this.pagesContext,Rn=this.pages,Sa=this.x,yl=this.y,Ds=this.matrix,rp(_t,this.width),ef(_t,this.height),Ei=this.outputDestination};var n0=function($,He,St,Zt,br){Vd.push(new RA),is=_t=0,Rn=[],Sa=$,yl=He,Ds=br,Gh([St,Zt])};for(var Df in ae.beginFormObject=function($,He,St,Zt,br){return n0($,He,St,Zt,br),this},ae.endFormObject=function($){return function(He){if(Ff[He])Vd.pop().restore();else{var St=new RA,Zt="Xo"+(Object.keys(jc).length+1).toString(10);St.id=Zt,Ff[He]=Zt,jc[Zt]=St,Hs.publish("addFormObject",St),Vd.pop().restore()}}($),this},ae.doFormObject=function($,He){var St=jc[Ff[$]];return Ft("q"),Ft(He.toString()+" cm"),Ft("/"+St.id+" Do"),Ft("Q"),this},ae.getFormObject=function($){var He=jc[Ff[$]];return{x:He.x,y:He.y,width:He.width,height:He.height,matrix:He.matrix}},ae.save=function($,He){return $=$||"generated.pdf",(He=He||{}).returnPromise=He.returnPromise||!1,He.returnPromise===!1?(fd(ch(kf()),$),typeof fd.unload=="function"&&Za.setTimeout&&setTimeout(fd.unload,911),this):new Promise(function(St,Zt){try{var br=fd(ch(kf()),$);typeof fd.unload=="function"&&Za.setTimeout&&setTimeout(fd.unload,911),St(br)}catch(hn){Zt(hn.message)}})},ua.API)ua.API.hasOwnProperty(Df)&&(Df==="events"&&ua.API.events.length?function($,He){var St,Zt,br;for(br=He.length-1;br!==-1;br--)St=He[br][0],Zt=He[br][1],$.subscribe.apply($,[St].concat(typeof Zt=="function"?[Zt]:Zt))}(Hs,ua.API.events):ae[Df]=ua.API[Df]);function Tp($){return Ya[$].mediaBox.topRightX-Ya[$].mediaBox.bottomLeftX}function rp($,He){Ya[$].mediaBox.topRightX=He+Ya[$].mediaBox.bottomLeftX}function qd($){return Ya[$].mediaBox.topRightY-Ya[$].mediaBox.bottomLeftY}function ef($,He){Ya[$].mediaBox.topRightY=He+Ya[$].mediaBox.bottomLeftY}var ym=ae.getPageWidth=function($){return Tp($=$||_t)/to},Of=ae.setPageWidth=function($,He){rp($,He*to)},dh=ae.getPageHeight=function($){return qd($=$||_t)/to},Up=ae.setPageHeight=function($,He){ef($,He*to)};return ae.internal={pdfEscape:YA,getStyle:gm,getFont:ng,getFontSize:ui,getCharSpace:bm,getTextColor:tp,getLineHeight:ag,getLineHeightFactor:sg,getLineWidth:fo,write:Wo,getHorizontalCoordinate:yd,getVerticalCoordinate:wd,getCoordinateString:lg,getVerticalCoordinateString:Np,collections:{},newObject:lc,newAdditionalObject:Wd,newObjectDeferred:Ss,newObjectDeferredBegin:dl,getFilters:vu,putStream:Ru,events:Hs,scaleFactor:to,pageSize:{getWidth:function(){return ym(_t)},setWidth:function($){Of(_t,$)},getHeight:function(){return dh(_t)},setHeight:function($){Up(_t,$)}},encryptionOptions:oe,encryption:gc,getEncryptor:function($){return oe!==null?gc.encryptor($,0):function(He){return He}},output:gd,getNumberOfPages:V0,pages:Rn,out:Ft,f2:nt,f3:yt,getPageInfo:G0,getPageInfoByObjId:tg,getCurrentPageInfo:X0,getPDFVersion:ut,Point:r0,Rectangle:Yd,Matrix:Ka,hasHotfix:vd},Object.defineProperty(ae.internal.pageSize,"width",{get:function(){return ym(_t)},set:function($){Of(_t,$)},enumerable:!0,configurable:!0}),Object.defineProperty(ae.internal.pageSize,"height",{get:function(){return dh(_t)},set:function($){Up(_t,$)},enumerable:!0,configurable:!0}),function($){for(var He=0,St=Ta.length;He<St;He++){var Zt=mm.call(this,$[He][0],$[He][1],$[He][2],Ta[He][3],!0);Re===!1&&(ze[Zt]=!0);var br=$[He][0].split("-");pm({id:Zt,fontName:br[0],fontStyle:br[1]||""})}Hs.publish("addFonts",{fonts:ga,dictionary:wo})}.call(ae,Ta),Ba="F1",Lp(A,a),Hs.publish("initialized"),ae}Nu.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},Nu.prototype.toHexString=function(n){return n.split("").map(function(o){return("0"+(255&o.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Nu.prototype.hexToBytes=function(n){for(var o=[],a=0;a<n.length;a+=2)o.push(String.fromCharCode(parseInt(n.substr(a,2),16)));return o.join("")},Nu.prototype.processOwnerPassword=function(n,o){return mc(_f(o).substr(0,5),n)},Nu.prototype.encryptor=function(n,o){var a=_f(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&o,o>>8&255)).substr(0,10);return function(l){return mc(a,l)}},Rh.prototype.equals=function(n){var o,a="id,objectNumber,equals";if(!n||(0,me.Z)(n)!==(0,me.Z)(this))return!1;var l=0;for(o in this)if(!(a.indexOf(o)>=0)){if(this.hasOwnProperty(o)&&!n.hasOwnProperty(o)||this[o]!==n[o])return!1;l++}for(o in n)n.hasOwnProperty(o)&&a.indexOf(o)<0&&l--;return l===0},ua.API={events:[]},ua.version="3.0.3";var sl=ua.API,If=1,hd=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},GA=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},La=function(n){return n.toFixed(2)},$d=function(n){return n.toFixed(5)};sl.__acroform__={};var aA=function(n,o){n.prototype=Object.create(o.prototype),n.prototype.constructor=n},j0=function(n){return n*If},cu=function(n){var o=new qr,a=qn.internal.getHeight(n)||0,l=qn.internal.getWidth(n)||0;return o.BBox=[0,0,Number(La(l)),Number(La(a))],o},Zm=sl.__acroform__.setBit=function(n,o){if(n=n||0,o=o||0,isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|1<<o},Vm=sl.__acroform__.clearBit=function(n,o){if(n=n||0,o=o||0,isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&~(1<<o)},Wm=sl.__acroform__.getBit=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return n&1<<o?1:0},Yl=sl.__acroform__.getBitForPdf=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Wm(n,o-1)},b=sl.__acroform__.setBitForPdf=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Zm(n,o-1)},f=sl.__acroform__.clearBitForPdf=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Vm(n,o-1)},w=sl.__acroform__.calculateCoordinates=function(n,o){var a=o.internal.getHorizontalCoordinate,l=o.internal.getVerticalCoordinate,A=n[0],p=n[1],O=n[2],_=n[3],U={};return U.lowerLeft_X=a(A)||0,U.lowerLeft_Y=l(p+_)||0,U.upperRight_X=a(A+O)||0,U.upperRight_Y=l(p)||0,[Number(La(U.lowerLeft_X)),Number(La(U.lowerLeft_Y)),Number(La(U.upperRight_X)),Number(La(U.upperRight_Y))]},y=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var o=[],a=n._V||n.DV,l=ne(n,a),A=n.scope.internal.getFont(n.fontName,n.fontStyle).id;o.push("/Tx BMC"),o.push("q"),o.push("BT"),o.push(n.scope.__private__.encodeColorString(n.color)),o.push("/"+A+" "+La(l.fontSize)+" Tf"),o.push("1 0 0 1 0 0 Tm"),o.push(l.text),o.push("ET"),o.push("Q"),o.push("EMC");var p=cu(n);return p.scope=n.scope,p.stream=o.join(`
`),p}},ne=function(n,o){var a=n.fontSize===0?n.maxFontSize:n.fontSize,l={text:"",fontSize:""},A=(o=(o=o.substr(0,1)=="("?o.substr(1):o).substr(o.length-1)==")"?o.substr(0,o.length-1):o).split(" ");A=n.multiline?A.map(function(nt){return nt.split(`
`)}):A.map(function(nt){return[nt]});var p=a,O=qn.internal.getHeight(n)||0;O=O<0?-O:O;var _=qn.internal.getWidth(n)||0;_=_<0?-_:_;var U=function(nt,yt,Wt){if(nt+1<A.length){var Ht=yt+" "+A[nt+1][0];return _e(Ht,n,Wt).width<=_-4}return!1};p++;e:for(;p>0;){o="",p--;var Z,oe,Re=_e("3",n,p).height,ze=n.multiline?O-p:(O-Re)/2,ae=ze+=2,mt=0,ut=0,bt=0;if(p<=0){o=`(...) Tj
`,o+="% Width of Text: "+_e(o,n,p=12).width+", FieldWidth:"+_+`
`;break}for(var ot="",Gt=0,Rt=0;Rt<A.length;Rt++)if(A.hasOwnProperty(Rt)){var It=!1;if(A[Rt].length!==1&&bt!==A[Rt].length-1){if((Re+2)*(Gt+2)+2>O)continue e;ot+=A[Rt][bt],It=!0,ut=Rt,Rt--}else{ot=(ot+=A[Rt][bt]+" ").substr(ot.length-1)==" "?ot.substr(0,ot.length-1):ot;var kr=parseInt(Rt),rn=U(kr,ot,p),Wr=Rt>=A.length-1;if(rn&&!Wr){ot+=" ",bt=0;continue}if(rn||Wr){if(Wr)ut=kr;else if(n.multiline&&(Re+2)*(Gt+2)+2>O)continue e}else{if(!n.multiline||(Re+2)*(Gt+2)+2>O)continue e;ut=kr}}for(var ir="",Mt=mt;Mt<=ut;Mt++){var xr=A[Mt];if(n.multiline){if(Mt===ut){ir+=xr[bt]+" ",bt=(bt+1)%xr.length;continue}if(Mt===mt){ir+=xr[xr.length-1]+" ";continue}}ir+=xr[0]+" "}switch(ir=ir.substr(ir.length-1)==" "?ir.substr(0,ir.length-1):ir,oe=_e(ir,n,p).width,n.textAlign){case"right":Z=_-oe-2;break;case"center":Z=(_-oe)/2;break;default:Z=2}o+=La(Z)+" "+La(ae)+` Td
`,o+="("+hd(ir)+`) Tj
`,o+=-La(Z)+` 0 Td
`,ae=-(p+2),oe=0,mt=It?ut:ut+1,Gt++,ot=""}break}return l.text=o,l.fontSize=p,l},_e=function(n,o,a){var l=o.scope.internal.getFont(o.fontName,o.fontStyle),A=o.scope.getStringUnitWidth(n,{font:l,fontSize:parseFloat(a),charSpace:0})*parseFloat(a);return{height:o.scope.getStringUnitWidth("3",{font:l,fontSize:parseFloat(a),charSpace:0})*parseFloat(a)*1.5,width:A}},Ze={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ht=function(n,o){var a={type:"reference",object:n};o.internal.getPageInfo(n.page).pageContext.annotations.find(function(l){return l.type===a.type&&l.object===a.object})===void 0&&o.internal.getPageInfo(n.page).pageContext.annotations.push(a)},pt=function(n,o){if(o.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(Un.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify(Ze)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");If=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new Ti,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",function(){(function(a){a.internal.events.unsubscribe(a.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete a.internal.acroformPlugin.acroFormDictionaryRoot._eventID,a.internal.acroformPlugin.printedOut=!0})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(a){a.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var l=a.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var A in l)if(l.hasOwnProperty(A)){var p=l[A];p.objId=void 0,p.hasAnnotation&&ht(p,a)}})(n)}),n.internal.events.subscribe("putCatalog",function(){(function(a){if(a.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");a.internal.write("/AcroForm "+a.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)}),n.internal.events.subscribe("postPutPages",function(a){(function(l,A){var p=!l;for(var O in l||(A.internal.newObjectDeferredBegin(A.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),A.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),l=l||A.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(l.hasOwnProperty(O)){var _=l[O],U=[],Z=_.Rect;if(_.Rect&&(_.Rect=w(_.Rect,A)),A.internal.newObjectDeferredBegin(_.objId,!0),_.DA=qn.createDefaultAppearanceStream(_),(0,me.Z)(_)==="object"&&typeof _.getKeyValueListForStream=="function"&&(U=_.getKeyValueListForStream()),_.Rect=Z,_.hasAppearanceStream&&!_.appearanceStreamContent){var oe=y(_);U.push({key:"AP",value:"<</N "+oe+">>"}),A.internal.acroformPlugin.xForms.push(oe)}if(_.appearanceStreamContent){var Re="";for(var ze in _.appearanceStreamContent)if(_.appearanceStreamContent.hasOwnProperty(ze)){var ae=_.appearanceStreamContent[ze];if(Re+="/"+ze+" ",Re+="<<",Object.keys(ae).length>=1||Array.isArray(ae)){for(var O in ae)if(ae.hasOwnProperty(O)){var mt=ae[O];typeof mt=="function"&&(mt=mt.call(A,_)),Re+="/"+O+" "+mt+" ",A.internal.acroformPlugin.xForms.indexOf(mt)>=0||A.internal.acroformPlugin.xForms.push(mt)}}else typeof(mt=ae)=="function"&&(mt=mt.call(A,_)),Re+="/"+O+" "+mt,A.internal.acroformPlugin.xForms.indexOf(mt)>=0||A.internal.acroformPlugin.xForms.push(mt);Re+=">>"}U.push({key:"AP",value:`<<
`+Re+">>"})}A.internal.putStream({additionalKeyValues:U,objectId:_.objId}),A.internal.out("endobj")}p&&function(ut,bt){for(var ot in ut)if(ut.hasOwnProperty(ot)){var Gt=ot,Rt=ut[ot];bt.internal.newObjectDeferredBegin(Rt.objId,!0),(0,me.Z)(Rt)==="object"&&typeof Rt.putStream=="function"&&Rt.putStream(),delete ut[Gt]}}(A.internal.acroformPlugin.xForms,A)})(a,n)}),n.internal.acroformPlugin.isInitialized=!0}},qt=sl.__acroform__.arrayToPdfArray=function(n,o,a){var l=function(O){return O};if(Array.isArray(n)){for(var A="[",p=0;p<n.length;p++)switch(p!==0&&(A+=" "),(0,me.Z)(n[p])){case"boolean":case"number":case"object":A+=n[p].toString();break;case"string":n[p].substr(0,1)!=="/"?(o!==void 0&&a&&(l=a.internal.getEncryptor(o)),A+="("+hd(l(n[p].toString()))+")"):A+=n[p].toString()}return A+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Ar=function(n,o,a){var l=function(A){return A};return o!==void 0&&a&&(l=a.internal.getEncryptor(o)),(n=n||"").toString(),"("+hd(l(n))+")"},pr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};pr.prototype.toString=function(){return this.objId+" 0 R"},pr.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},pr.prototype.getKeyValueListForStream=function(){var n=[],o=Object.getOwnPropertyNames(this).filter(function(p){return p!="content"&&p!="appearanceStreamContent"&&p!="scope"&&p!="objId"&&p.substring(0,1)!="_"});for(var a in o)if(Object.getOwnPropertyDescriptor(this,o[a]).configurable===!1){var l=o[a],A=this[l];A&&(Array.isArray(A)?n.push({key:l,value:qt(A,this.objId,this.scope)}):A instanceof pr?(A.scope=this.scope,n.push({key:l,value:A.objId+" 0 R"})):typeof A!="function"&&n.push({key:l,value:A}))}return n};var qr=function(){pr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var n,o=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return o},set:function(a){o=a}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(a){n=a.trim()},get:function(){return n||null}})};aA(qr,pr);var Ti=function(){pr.call(this);var n,o=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return o.length>0?o:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return o}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(n){var a=function(l){return l};return this.scope&&(a=this.scope.internal.getEncryptor(this.objId)),"("+hd(a(n))+")"}},set:function(a){n=a}})};aA(Ti,pr);var Un=function n(){pr.call(this);var o=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return o},set:function(ot){if(isNaN(ot))throw new Error('Invalid value "'+ot+'" for attribute F supplied.');o=ot}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Yl(o,3)},set:function(ot){ot?this.F=b(o,3):this.F=f(o,3)}});var a=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return a},set:function(ot){if(isNaN(ot))throw new Error('Invalid value "'+ot+'" for attribute Ff supplied.');a=ot}});var l=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(l.length!==0)return l},set:function(ot){l=ot!==void 0?ot:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[0])?0:l[0]},set:function(ot){l[0]=ot}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[1])?0:l[1]},set:function(ot){l[1]=ot}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[2])?0:l[2]},set:function(ot){l[2]=ot}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[3])?0:l[3]},set:function(ot){l[3]=ot}});var A="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return A},set:function(ot){switch(ot){case"/Btn":case"/Tx":case"/Ch":case"/Sig":A=ot;break;default:throw new Error('Invalid value "'+ot+'" for attribute FT supplied.')}}});var p=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!p||p.length<1){if(this instanceof Mi)return;p="FieldObject"+n.FieldNum++}var ot=function(Gt){return Gt};return this.scope&&(ot=this.scope.internal.getEncryptor(this.objId)),"("+hd(ot(p))+")"},set:function(ot){p=ot.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return p},set:function(ot){p=ot}});var O="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return O},set:function(ot){O=ot}});var _="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return _},set:function(ot){_=ot}});var U=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return U},set:function(ot){U=ot}});var Z=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Z===void 0?50/If:Z},set:function(ot){Z=ot}});var oe="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return oe},set:function(ot){oe=ot}});var Re="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Re||this instanceof Mi||this instanceof Xa))return Ar(Re,this.objId,this.scope)},set:function(ot){ot=ot.toString(),Re=ot}});var ze=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(ze)return this instanceof Na==0?Ar(ze,this.objId,this.scope):ze},set:function(ot){ot=ot.toString(),ze=this instanceof Na==0?ot.substr(0,1)==="("?GA(ot.substr(1,ot.length-2)):GA(ot):ot}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Na==1?GA(ze.substr(1,ze.length-1)):ze},set:function(ot){ot=ot.toString(),ze=this instanceof Na==1?"/"+ot:ot}});var ae=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(ae)return ae},set:function(ot){this.V=ot}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(ae)return this instanceof Na==0?Ar(ae,this.objId,this.scope):ae},set:function(ot){ot=ot.toString(),ae=this instanceof Na==0?ot.substr(0,1)==="("?GA(ot.substr(1,ot.length-2)):GA(ot):ot}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Na==1?GA(ae.substr(1,ae.length-1)):ae},set:function(ot){ot=ot.toString(),ae=this instanceof Na==1?"/"+ot:ot}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var mt,ut=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return ut},set:function(ot){ot=!!ot,ut=ot}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(mt)return mt},set:function(ot){mt=ot}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,1)},set:function(ot){ot?this.Ff=b(this.Ff,1):this.Ff=f(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,2)},set:function(ot){ot?this.Ff=b(this.Ff,2):this.Ff=f(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,3)},set:function(ot){ot?this.Ff=b(this.Ff,3):this.Ff=f(this.Ff,3)}});var bt=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(bt!==null)return bt},set:function(ot){if([0,1,2].indexOf(ot)===-1)throw new Error('Invalid value "'+ot+'" for attribute Q supplied.');bt=ot}}),Object.defineProperty(this,"textAlign",{get:function(){var ot;switch(bt){case 0:default:ot="left";break;case 1:ot="center";break;case 2:ot="right"}return ot},configurable:!0,enumerable:!0,set:function(ot){switch(ot){case"right":case 2:bt=2;break;case"center":case 1:bt=1;break;default:bt=0}}})};aA(Un,pr);var pi=function(){Un.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(a){n=a}});var o=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return qt(o,this.objId,this.scope)},set:function(a){var l,A;A=[],typeof(l=a)=="string"&&(A=function(p,O,_){_||(_=1);for(var U,Z=[];U=O.exec(p);)Z.push(U[_]);return Z}(l,/\((.*?)\)/g)),o=A}}),this.getOptions=function(){return o},this.setOptions=function(a){o=a,this.sort&&o.sort()},this.addOption=function(a){a=(a=a||"").toString(),o.push(a),this.sort&&o.sort()},this.removeOption=function(a,l){for(l=l||!1,a=(a=a||"").toString();o.indexOf(a)!==-1&&(o.splice(o.indexOf(a),1),l!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,18)},set:function(a){a?this.Ff=b(this.Ff,18):this.Ff=f(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,19)},set:function(a){this.combo===!0&&(a?this.Ff=b(this.Ff,19):this.Ff=f(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,20)},set:function(a){a?(this.Ff=b(this.Ff,20),o.sort()):this.Ff=f(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,22)},set:function(a){a?this.Ff=b(this.Ff,22):this.Ff=f(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,23)},set:function(a){a?this.Ff=b(this.Ff,23):this.Ff=f(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,27)},set:function(a){a?this.Ff=b(this.Ff,27):this.Ff=f(this.Ff,27)}}),this.hasAppearanceStream=!1};aA(pi,Un);var Va=function(){pi.call(this),this.fontName="helvetica",this.combo=!1};aA(Va,pi);var Ji=function(){Va.call(this),this.combo=!0};aA(Ji,Va);var Vi=function(){Ji.call(this),this.edit=!0};aA(Vi,Ji);var Na=function(){Un.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,15)},set:function(a){a?this.Ff=b(this.Ff,15):this.Ff=f(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,16)},set:function(a){a?this.Ff=b(this.Ff,16):this.Ff=f(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,17)},set:function(a){a?this.Ff=b(this.Ff,17):this.Ff=f(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,26)},set:function(a){a?this.Ff=b(this.Ff,26):this.Ff=f(this.Ff,26)}});var n,o={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(p){return p};if(this.scope&&(a=this.scope.internal.getEncryptor(this.objId)),Object.keys(o).length!==0){var l,A=[];for(l in A.push("<<"),o)A.push("/"+l+" ("+hd(a(o[l]))+")");return A.push(">>"),A.join(`
`)}},set:function(a){(0,me.Z)(a)==="object"&&(o=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return o.CA||""},set:function(a){typeof a=="string"&&(o.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(a){n="/"+a}})};aA(Na,Un);var ao=function(){Na.call(this),this.pushButton=!0};aA(ao,Na);var Ia=function(){Na.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(o){n=o!==void 0?o:[]}})};aA(Ia,Na);var Mi=function(){var n,o;Un.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(A){n=A}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(A){o=A}});var a,l={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(_){return _};this.scope&&(A=this.scope.internal.getEncryptor(this.objId));var p,O=[];for(p in O.push("<<"),l)O.push("/"+p+" ("+hd(A(l[p]))+")");return O.push(">>"),O.join(`
`)},set:function(A){(0,me.Z)(A)==="object"&&(l=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return l.CA||""},set:function(A){typeof A=="string"&&(l.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return a},set:function(A){a=A}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return a.substr(1,a.length-1)},set:function(A){a="/"+A}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=qn.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};aA(Mi,Un),Ia.prototype.setAppearance=function(n){if(!("createAppearanceStream"in n)||!("getCA"in n))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var o in this.Kids)if(this.Kids.hasOwnProperty(o)){var a=this.Kids[o];a.appearanceStreamContent=n.createAppearanceStream(a.optionName),a.caption=n.getCA()}},Ia.prototype.createOption=function(n){var o=new Mi;return o.Parent=this,o.optionName=n,this.Kids.push(o),Ec.call(this.scope,o),o};var ko=function(){Na.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=qn.CheckBox.createAppearanceStream()};aA(ko,Na);var Xa=function(){Un.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,13)},set:function(o){o?this.Ff=b(this.Ff,13):this.Ff=f(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,21)},set:function(o){o?this.Ff=b(this.Ff,21):this.Ff=f(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,23)},set:function(o){o?this.Ff=b(this.Ff,23):this.Ff=f(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,24)},set:function(o){o?this.Ff=b(this.Ff,24):this.Ff=f(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,25)},set:function(o){o?this.Ff=b(this.Ff,25):this.Ff=f(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,26)},set:function(o){o?this.Ff=b(this.Ff,26):this.Ff=f(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(o){n=o}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(o){Number.isInteger(o)&&(n=o)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};aA(Xa,Un);var Pa=function(){Xa.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,14)},set:function(n){n?this.Ff=b(this.Ff,14):this.Ff=f(this.Ff,14)}}),this.password=!0};aA(Pa,Xa);var qn={CheckBox:{createAppearanceStream:function(){return{N:{On:qn.CheckBox.YesNormal},D:{On:qn.CheckBox.YesPushDown,Off:qn.CheckBox.OffPushDown}}},YesPushDown:function(n){var o=cu(n);o.scope=n.scope;var a=[],l=n.scope.internal.getFont(n.fontName,n.fontStyle).id,A=n.scope.__private__.encodeColorString(n.color),p=ne(n,n.caption);return a.push("0.749023 g"),a.push("0 0 "+La(qn.internal.getWidth(n))+" "+La(qn.internal.getHeight(n))+" re"),a.push("f"),a.push("BMC"),a.push("q"),a.push("0 0 1 rg"),a.push("/"+l+" "+La(p.fontSize)+" Tf "+A),a.push("BT"),a.push(p.text),a.push("ET"),a.push("Q"),a.push("EMC"),o.stream=a.join(`
`),o},YesNormal:function(n){var o=cu(n);o.scope=n.scope;var a=n.scope.internal.getFont(n.fontName,n.fontStyle).id,l=n.scope.__private__.encodeColorString(n.color),A=[],p=qn.internal.getHeight(n),O=qn.internal.getWidth(n),_=ne(n,n.caption);return A.push("1 g"),A.push("0 0 "+La(O)+" "+La(p)+" re"),A.push("f"),A.push("q"),A.push("0 0 1 rg"),A.push("0 0 "+La(O-1)+" "+La(p-1)+" re"),A.push("W"),A.push("n"),A.push("0 g"),A.push("BT"),A.push("/"+a+" "+La(_.fontSize)+" Tf "+l),A.push(_.text),A.push("ET"),A.push("Q"),o.stream=A.join(`
`),o},OffPushDown:function(n){var o=cu(n);o.scope=n.scope;var a=[];return a.push("0.749023 g"),a.push("0 0 "+La(qn.internal.getWidth(n))+" "+La(qn.internal.getHeight(n))+" re"),a.push("f"),o.stream=a.join(`
`),o}},RadioButton:{Circle:{createAppearanceStream:function(n){var o={D:{Off:qn.RadioButton.Circle.OffPushDown},N:{}};return o.N[n]=qn.RadioButton.Circle.YesNormal,o.D[n]=qn.RadioButton.Circle.YesPushDown,o},getCA:function(){return"l"},YesNormal:function(n){var o=cu(n);o.scope=n.scope;var a=[],l=qn.internal.getWidth(n)<=qn.internal.getHeight(n)?qn.internal.getWidth(n)/4:qn.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=qn.internal.Bezier_C,p=Number((l*A).toFixed(5));return a.push("q"),a.push("1 0 0 1 "+$d(qn.internal.getWidth(n)/2)+" "+$d(qn.internal.getHeight(n)/2)+" cm"),a.push(l+" 0 m"),a.push(l+" "+p+" "+p+" "+l+" 0 "+l+" c"),a.push("-"+p+" "+l+" -"+l+" "+p+" -"+l+" 0 c"),a.push("-"+l+" -"+p+" -"+p+" -"+l+" 0 -"+l+" c"),a.push(p+" -"+l+" "+l+" -"+p+" "+l+" 0 c"),a.push("f"),a.push("Q"),o.stream=a.join(`
`),o},YesPushDown:function(n){var o=cu(n);o.scope=n.scope;var a=[],l=qn.internal.getWidth(n)<=qn.internal.getHeight(n)?qn.internal.getWidth(n)/4:qn.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=Number((2*l).toFixed(5)),p=Number((A*qn.internal.Bezier_C).toFixed(5)),O=Number((l*qn.internal.Bezier_C).toFixed(5));return a.push("0.749023 g"),a.push("q"),a.push("1 0 0 1 "+$d(qn.internal.getWidth(n)/2)+" "+$d(qn.internal.getHeight(n)/2)+" cm"),a.push(A+" 0 m"),a.push(A+" "+p+" "+p+" "+A+" 0 "+A+" c"),a.push("-"+p+" "+A+" -"+A+" "+p+" -"+A+" 0 c"),a.push("-"+A+" -"+p+" -"+p+" -"+A+" 0 -"+A+" c"),a.push(p+" -"+A+" "+A+" -"+p+" "+A+" 0 c"),a.push("f"),a.push("Q"),a.push("0 g"),a.push("q"),a.push("1 0 0 1 "+$d(qn.internal.getWidth(n)/2)+" "+$d(qn.internal.getHeight(n)/2)+" cm"),a.push(l+" 0 m"),a.push(l+" "+O+" "+O+" "+l+" 0 "+l+" c"),a.push("-"+O+" "+l+" -"+l+" "+O+" -"+l+" 0 c"),a.push("-"+l+" -"+O+" -"+O+" -"+l+" 0 -"+l+" c"),a.push(O+" -"+l+" "+l+" -"+O+" "+l+" 0 c"),a.push("f"),a.push("Q"),o.stream=a.join(`
`),o},OffPushDown:function(n){var o=cu(n);o.scope=n.scope;var a=[],l=qn.internal.getWidth(n)<=qn.internal.getHeight(n)?qn.internal.getWidth(n)/4:qn.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=Number((2*l).toFixed(5)),p=Number((A*qn.internal.Bezier_C).toFixed(5));return a.push("0.749023 g"),a.push("q"),a.push("1 0 0 1 "+$d(qn.internal.getWidth(n)/2)+" "+$d(qn.internal.getHeight(n)/2)+" cm"),a.push(A+" 0 m"),a.push(A+" "+p+" "+p+" "+A+" 0 "+A+" c"),a.push("-"+p+" "+A+" -"+A+" "+p+" -"+A+" 0 c"),a.push("-"+A+" -"+p+" -"+p+" -"+A+" 0 -"+A+" c"),a.push(p+" -"+A+" "+A+" -"+p+" "+A+" 0 c"),a.push("f"),a.push("Q"),o.stream=a.join(`
`),o}},Cross:{createAppearanceStream:function(n){var o={D:{Off:qn.RadioButton.Cross.OffPushDown},N:{}};return o.N[n]=qn.RadioButton.Cross.YesNormal,o.D[n]=qn.RadioButton.Cross.YesPushDown,o},getCA:function(){return"8"},YesNormal:function(n){var o=cu(n);o.scope=n.scope;var a=[],l=qn.internal.calculateCross(n);return a.push("q"),a.push("1 1 "+La(qn.internal.getWidth(n)-2)+" "+La(qn.internal.getHeight(n)-2)+" re"),a.push("W"),a.push("n"),a.push(La(l.x1.x)+" "+La(l.x1.y)+" m"),a.push(La(l.x2.x)+" "+La(l.x2.y)+" l"),a.push(La(l.x4.x)+" "+La(l.x4.y)+" m"),a.push(La(l.x3.x)+" "+La(l.x3.y)+" l"),a.push("s"),a.push("Q"),o.stream=a.join(`
`),o},YesPushDown:function(n){var o=cu(n);o.scope=n.scope;var a=qn.internal.calculateCross(n),l=[];return l.push("0.749023 g"),l.push("0 0 "+La(qn.internal.getWidth(n))+" "+La(qn.internal.getHeight(n))+" re"),l.push("f"),l.push("q"),l.push("1 1 "+La(qn.internal.getWidth(n)-2)+" "+La(qn.internal.getHeight(n)-2)+" re"),l.push("W"),l.push("n"),l.push(La(a.x1.x)+" "+La(a.x1.y)+" m"),l.push(La(a.x2.x)+" "+La(a.x2.y)+" l"),l.push(La(a.x4.x)+" "+La(a.x4.y)+" m"),l.push(La(a.x3.x)+" "+La(a.x3.y)+" l"),l.push("s"),l.push("Q"),o.stream=l.join(`
`),o},OffPushDown:function(n){var o=cu(n);o.scope=n.scope;var a=[];return a.push("0.749023 g"),a.push("0 0 "+La(qn.internal.getWidth(n))+" "+La(qn.internal.getHeight(n))+" re"),a.push("f"),o.stream=a.join(`
`),o}}},createDefaultAppearanceStream:function(n){var o=n.scope.internal.getFont(n.fontName,n.fontStyle).id,a=n.scope.__private__.encodeColorString(n.color);return"/"+o+" "+n.fontSize+" Tf "+a}};qn.internal={Bezier_C:.551915024494,calculateCross:function(n){var o=qn.internal.getWidth(n),a=qn.internal.getHeight(n),l=Math.min(o,a);return{x1:{x:(o-l)/2,y:(a-l)/2+l},x2:{x:(o-l)/2+l,y:(a-l)/2},x3:{x:(o-l)/2,y:(a-l)/2},x4:{x:(o-l)/2+l,y:(a-l)/2+l}}}},qn.internal.getWidth=function(n){var o=0;return(0,me.Z)(n)==="object"&&(o=j0(n.Rect[2])),o},qn.internal.getHeight=function(n){var o=0;return(0,me.Z)(n)==="object"&&(o=j0(n.Rect[3])),o};var Ec=sl.addField=function(n){if(pt(this,n),!(n instanceof Un))throw new Error("Invalid argument passed to jsPDF.addField.");var o;return(o=n).scope.internal.acroformPlugin.printedOut&&(o.scope.internal.acroformPlugin.printedOut=!1,o.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),o.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(o),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};sl.AcroFormChoiceField=pi,sl.AcroFormListBox=Va,sl.AcroFormComboBox=Ji,sl.AcroFormEditBox=Vi,sl.AcroFormButton=Na,sl.AcroFormPushButton=ao,sl.AcroFormRadioButton=Ia,sl.AcroFormCheckBox=ko,sl.AcroFormTextField=Xa,sl.AcroFormPasswordField=Pa,sl.AcroFormAppearance=qn,sl.AcroForm={ChoiceField:pi,ListBox:Va,ComboBox:Ji,EditBox:Vi,Button:Na,PushButton:ao,RadioButton:Ia,CheckBox:ko,TextField:Xa,PasswordField:Pa,Appearance:qn},ua.AcroForm={ChoiceField:pi,ListBox:Va,ComboBox:Ji,EditBox:Vi,Button:Na,PushButton:ao,RadioButton:Ia,CheckBox:ko,TextField:Xa,PasswordField:Pa,Appearance:qn};var oA=ua.AcroForm;function bo(n){return n.reduce(function(o,a,l){return o[a]=l,o},{})}(function(n){var o="addImage_";n.__addimage__={};var a="UNKNOWN",l={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},A=n.__addimage__.getImageFileTypeByImageData=function(nt,yt){var Wt,Ht,Tr,Zr,Jr,Or=a;if((yt=yt||a)==="RGBA"||nt.data!==void 0&&nt.data instanceof Uint8ClampedArray&&"height"in nt&&"width"in nt)return"RGBA";if(rn(nt))for(Jr in l)for(Tr=l[Jr],Wt=0;Wt<Tr.length;Wt+=1){for(Zr=!0,Ht=0;Ht<Tr[Wt].length;Ht+=1)if(Tr[Wt][Ht]!==void 0&&Tr[Wt][Ht]!==nt[Ht]){Zr=!1;break}if(Zr===!0){Or=Jr;break}}else for(Jr in l)for(Tr=l[Jr],Wt=0;Wt<Tr.length;Wt+=1){for(Zr=!0,Ht=0;Ht<Tr[Wt].length;Ht+=1)if(Tr[Wt][Ht]!==void 0&&Tr[Wt][Ht]!==nt.charCodeAt(Ht)){Zr=!1;break}if(Zr===!0){Or=Jr;break}}return Or===a&&yt!==a&&(Or=yt),Or},p=function nt(yt){for(var Wt=this.internal.write,Ht=this.internal.putStream,Tr=(0,this.internal.getFilters)();Tr.indexOf("FlateEncode")!==-1;)Tr.splice(Tr.indexOf("FlateEncode"),1);yt.objectId=this.internal.newObject();var Zr=[];if(Zr.push({key:"Type",value:"/XObject"}),Zr.push({key:"Subtype",value:"/Image"}),Zr.push({key:"Width",value:yt.width}),Zr.push({key:"Height",value:yt.height}),yt.colorSpace===ot.INDEXED?Zr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(yt.palette.length/3-1)+" "+("sMask"in yt&&yt.sMask!==void 0?yt.objectId+2:yt.objectId+1)+" 0 R]"}):(Zr.push({key:"ColorSpace",value:"/"+yt.colorSpace}),yt.colorSpace===ot.DEVICE_CMYK&&Zr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Zr.push({key:"BitsPerComponent",value:yt.bitsPerComponent}),"decodeParameters"in yt&&yt.decodeParameters!==void 0&&Zr.push({key:"DecodeParms",value:"<<"+yt.decodeParameters+">>"}),"transparency"in yt&&Array.isArray(yt.transparency)&&yt.transparency.length>0){for(var Jr="",Or=0,Gr=yt.transparency.length;Or<Gr;Or++)Jr+=yt.transparency[Or]+" "+yt.transparency[Or]+" ";Zr.push({key:"Mask",value:"["+Jr+"]"})}yt.sMask!==void 0&&Zr.push({key:"SMask",value:yt.objectId+1+" 0 R"});var $n=yt.filter!==void 0?["/"+yt.filter]:void 0;if(Ht({data:yt.data,additionalKeyValues:Zr,alreadyAppliedFilters:$n,objectId:yt.objectId}),Wt("endobj"),"sMask"in yt&&yt.sMask!==void 0){var En,qe=(En=yt.sMaskBitsPerComponent)!==null&&En!==void 0?En:yt.bitsPerComponent,_t={width:yt.width,height:yt.height,colorSpace:"DeviceGray",bitsPerComponent:qe,data:yt.sMask};"filter"in yt&&(_t.decodeParameters="/Predictor ".concat(yt.predictor," /Colors 1 /BitsPerComponent ").concat(qe," /Columns ").concat(yt.width),_t.filter=yt.filter),nt.call(this,_t)}if(yt.colorSpace===ot.INDEXED){var Ot=this.internal.newObject();Ht({data:ir(new Uint8Array(yt.palette)),objectId:Ot}),Wt("endobj")}},O=function(){var nt=this.internal.collections[o+"images"];for(var yt in nt)p.call(this,nt[yt])},_=function(){var nt,yt=this.internal.collections[o+"images"],Wt=this.internal.write;for(var Ht in yt)Wt("/I"+(nt=yt[Ht]).index,nt.objectId,"0","R")},U=function(){this.internal.collections[o+"images"]||(this.internal.collections[o+"images"]={},this.internal.events.subscribe("putResources",O),this.internal.events.subscribe("putXobjectDict",_))},Z=function(){var nt=this.internal.collections[o+"images"];return U.call(this),nt},oe=function(){return Object.keys(this.internal.collections[o+"images"]).length},Re=function(nt){return typeof n["process"+nt.toUpperCase()]=="function"},ze=function(nt){return(0,me.Z)(nt)==="object"&&nt.nodeType===1},ae=function(nt,yt){if(nt.nodeName==="IMG"&&nt.hasAttribute("src")){var Wt=""+nt.getAttribute("src");if(Wt.indexOf("data:image/")===0)return vn(unescape(Wt).split("base64,").pop());var Ht=n.loadFile(Wt,!0);if(Ht!==void 0)return Ht}if(nt.nodeName==="CANVAS"){if(nt.width===0||nt.height===0)throw new Error("Given canvas must have data. Canvas width: "+nt.width+", height: "+nt.height);var Tr;switch(yt){case"PNG":Tr="image/png";break;case"WEBP":Tr="image/webp";break;default:Tr="image/jpeg"}return vn(nt.toDataURL(Tr,1).split("base64,").pop())}},mt=function(nt){var yt=this.internal.collections[o+"images"];if(yt){for(var Wt in yt)if(nt===yt[Wt].alias)return yt[Wt]}},ut=function(nt,yt,Wt){return nt||yt||(nt=-96,yt=-96),nt<0&&(nt=-1*Wt.width*72/nt/this.internal.scaleFactor),yt<0&&(yt=-1*Wt.height*72/yt/this.internal.scaleFactor),nt===0&&(nt=yt*Wt.width/Wt.height),yt===0&&(yt=nt*Wt.height/Wt.width),[nt,yt]},bt=function(nt,yt,Wt,Ht,Tr,Zr){var Jr=ut.call(this,Wt,Ht,Tr),Or=this.internal.getCoordinateString,Gr=this.internal.getVerticalCoordinateString,$n=Z.call(this);if(Wt=Jr[0],Ht=Jr[1],$n[Tr.index]=Tr,Zr){Zr*=Math.PI/180;var En=Math.cos(Zr),qe=Math.sin(Zr),_t=function(Jt){return Jt.toFixed(4)},Ot=[_t(En),_t(qe),_t(-1*qe),_t(En),0,0,"cm"]}this.internal.write("q"),Zr?(this.internal.write([1,"0","0",1,Or(nt),Gr(yt+Ht),"cm"].join(" ")),this.internal.write(Ot.join(" ")),this.internal.write([Or(Wt),"0","0",Or(Ht),"0","0","cm"].join(" "))):this.internal.write([Or(Wt),"0","0",Or(Ht),Or(nt),Gr(yt+Ht),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Tr.index+" Do"),this.internal.write("Q")},ot=n.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};n.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var Gt=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Rt=n.__addimage__.sHashCode=function(nt){var yt,Wt,Ht=0;if(typeof nt=="string")for(Wt=nt.length,yt=0;yt<Wt;yt++)Ht=(Ht<<5)-Ht+nt.charCodeAt(yt),Ht|=0;else if(rn(nt))for(Wt=nt.byteLength/2,yt=0;yt<Wt;yt++)Ht=(Ht<<5)-Ht+nt[yt],Ht|=0;return Ht},It=n.__addimage__.validateStringAsBase64=function(nt){(nt=nt||"").toString().trim();var yt=!0;return nt.length===0&&(yt=!1),nt.length%4!=0&&(yt=!1),/^[A-Za-z0-9+/]+$/.test(nt.substr(0,nt.length-2))===!1&&(yt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(nt.substr(-2))===!1&&(yt=!1),yt},kr=n.__addimage__.extractImageFromDataUrl=function(nt){if(nt==null||!(nt=nt.trim()).startsWith("data:"))return null;var yt=nt.indexOf(",");return yt<0?null:nt.substring(0,yt).trim().endsWith("base64")?nt.substring(yt+1):null};n.__addimage__.isArrayBuffer=function(nt){return nt instanceof ArrayBuffer};var rn=n.__addimage__.isArrayBufferView=function(nt){return nt instanceof Int8Array||nt instanceof Uint8Array||nt instanceof Uint8ClampedArray||nt instanceof Int16Array||nt instanceof Uint16Array||nt instanceof Int32Array||nt instanceof Uint32Array||nt instanceof Float32Array||nt instanceof Float64Array},Wr=n.__addimage__.binaryStringToUint8Array=function(nt){for(var yt=nt.length,Wt=new Uint8Array(yt),Ht=0;Ht<yt;Ht++)Wt[Ht]=nt.charCodeAt(Ht);return Wt},ir=n.__addimage__.arrayBufferToBinaryString=function(nt){for(var yt="",Wt=rn(nt)?nt:new Uint8Array(nt),Ht=0;Ht<Wt.length;Ht+=8192)yt+=String.fromCharCode.apply(null,Wt.subarray(Ht,Ht+8192));return yt};n.addImage=function(){var nt,yt,Wt,Ht,Tr,Zr,Jr,Or,Gr;if(typeof arguments[1]=="number"?(yt=a,Wt=arguments[1],Ht=arguments[2],Tr=arguments[3],Zr=arguments[4],Jr=arguments[5],Or=arguments[6],Gr=arguments[7]):(yt=arguments[1],Wt=arguments[2],Ht=arguments[3],Tr=arguments[4],Zr=arguments[5],Jr=arguments[6],Or=arguments[7],Gr=arguments[8]),(0,me.Z)(nt=arguments[0])==="object"&&!ze(nt)&&"imageData"in nt){var $n=nt;nt=$n.imageData,yt=$n.format||yt||a,Wt=$n.x||Wt||0,Ht=$n.y||Ht||0,Tr=$n.w||$n.width||Tr,Zr=$n.h||$n.height||Zr,Jr=$n.alias||Jr,Or=$n.compression||Or,Gr=$n.rotation||$n.angle||Gr}var En=this.internal.getFilters();if(Or===void 0&&En.indexOf("FlateEncode")!==-1&&(Or="SLOW"),isNaN(Wt)||isNaN(Ht))throw new Error("Invalid coordinates passed to jsPDF.addImage");U.call(this);var qe=Mt.call(this,nt,yt,Jr,Or);return bt.call(this,Wt,Ht,Tr,Zr,qe,Gr),this};var Mt=function(nt,yt,Wt,Ht){var Tr,Zr,Jr;if(typeof nt=="string"&&A(nt)===a){nt=unescape(nt);var Or=xr(nt,!1);(Or!==""||(Or=n.loadFile(nt,!0))!==void 0)&&(nt=Or)}if(ze(nt)&&(nt=ae(nt,yt)),yt=A(nt,yt),!Re(yt))throw new Error("addImage does not support files of type '"+yt+"', please ensure that a plugin for '"+yt+"' support is added.");if(((Jr=Wt)==null||Jr.length===0)&&(Wt=function(Gr){return typeof Gr=="string"||rn(Gr)?Rt(Gr):rn(Gr.data)?Rt(Gr.data):null}(nt)),(Tr=mt.call(this,Wt))||(nt instanceof Uint8Array||yt==="RGBA"||(Zr=nt,nt=Wr(nt)),Tr=this["process"+yt.toUpperCase()](nt,oe.call(this),Wt,function(Gr){return Gr&&typeof Gr=="string"&&(Gr=Gr.toUpperCase()),Gr in n.image_compression?Gr:Gt.NONE}(Ht),Zr)),!Tr)throw new Error("An unknown error occurred whilst processing the image.");return Tr},xr=n.__addimage__.convertBase64ToBinaryString=function(nt,yt){yt=typeof yt!="boolean"||yt;var Wt,Ht="";if(typeof nt=="string"){var Tr;Wt=(Tr=kr(nt))!==null&&Tr!==void 0?Tr:nt;try{Ht=vn(Wt)}catch(Zr){if(yt)throw It(Wt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Zr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return Ht};n.getImageProperties=function(nt){var yt,Wt,Ht="";if(ze(nt)&&(nt=ae(nt)),typeof nt=="string"&&A(nt)===a&&((Ht=xr(nt,!1))===""&&(Ht=n.loadFile(nt)||""),nt=Ht),Wt=A(nt),!Re(Wt))throw new Error("addImage does not support files of type '"+Wt+"', please ensure that a plugin for '"+Wt+"' support is added.");if(nt instanceof Uint8Array||(nt=Wr(nt)),!(yt=this["process"+Wt.toUpperCase()](nt)))throw new Error("An unknown error occurred whilst processing the image");return yt.fileType=Wt,yt}})(ua.API),function(n){var o=function(a){if(a!==void 0&&a!="")return!0};ua.API.events.push(["addPage",function(a){this.internal.getPageInfo(a.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(a){for(var l,A,p,O=this.internal.getCoordinateString,_=this.internal.getVerticalCoordinateString,U=this.internal.getPageInfoByObjId(a.objId),Z=a.pageContext.annotations,oe=!1,Re=0;Re<Z.length&&!oe;Re++)switch((l=Z[Re]).type){case"link":(o(l.options.url)||o(l.options.pageNumber))&&(oe=!0);break;case"reference":case"text":case"freetext":oe=!0}if(oe!=0){this.internal.write("/Annots [");for(var ze=0;ze<Z.length;ze++){l=Z[ze];var ae=this.internal.pdfEscape,mt=this.internal.getEncryptor(a.objId);switch(l.type){case"reference":this.internal.write(" "+l.object.objId+" 0 R ");break;case"text":var ut=this.internal.newAdditionalObject(),bt=this.internal.newAdditionalObject(),ot=this.internal.getEncryptor(ut.objId),Gt=l.title||"Note";p="<</Type /Annot /Subtype /Text "+(A="/Rect ["+O(l.bounds.x)+" "+_(l.bounds.y+l.bounds.h)+" "+O(l.bounds.x+l.bounds.w)+" "+_(l.bounds.y)+"] ")+"/Contents ("+ae(ot(l.contents))+")",p+=" /Popup "+bt.objId+" 0 R",p+=" /P "+U.objId+" 0 R",p+=" /T ("+ae(ot(Gt))+") >>",ut.content=p;var Rt=ut.objId+" 0 R";p="<</Type /Annot /Subtype /Popup "+(A="/Rect ["+O(l.bounds.x+30)+" "+_(l.bounds.y+l.bounds.h)+" "+O(l.bounds.x+l.bounds.w+30)+" "+_(l.bounds.y)+"] ")+" /Parent "+Rt,l.open&&(p+=" /Open true"),p+=" >>",bt.content=p,this.internal.write(ut.objId,"0 R",bt.objId,"0 R");break;case"freetext":A="/Rect ["+O(l.bounds.x)+" "+_(l.bounds.y)+" "+O(l.bounds.x+l.bounds.w)+" "+_(l.bounds.y+l.bounds.h)+"] ";var It=l.color||"#000000";p="<</Type /Annot /Subtype /FreeText "+A+"/Contents ("+ae(mt(l.contents))+")",p+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+It+")",p+=" /Border [0 0 0]",p+=" >>",this.internal.write(p);break;case"link":if(l.options.name){var kr=this.annotations._nameMap[l.options.name];l.options.pageNumber=kr.page,l.options.top=kr.y}else l.options.top||(l.options.top=0);if(A="/Rect ["+l.finalBounds.x+" "+l.finalBounds.y+" "+l.finalBounds.w+" "+l.finalBounds.h+"] ",p="",l.options.url)p="<</Type /Annot /Subtype /Link "+A+"/Border [0 0 0] /A <</S /URI /URI ("+ae(mt(l.options.url))+") >>";else if(l.options.pageNumber)switch(p="<</Type /Annot /Subtype /Link "+A+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(l.options.pageNumber).objId+" 0 R",l.options.magFactor=l.options.magFactor||"XYZ",l.options.magFactor){case"Fit":p+=" /Fit]";break;case"FitH":p+=" /FitH "+l.options.top+"]";break;case"FitV":l.options.left=l.options.left||0,p+=" /FitV "+l.options.left+"]";break;default:var rn=_(l.options.top);l.options.left=l.options.left||0,l.options.zoom===void 0&&(l.options.zoom=0),p+=" /XYZ "+l.options.left+" "+rn+" "+l.options.zoom+"]"}p!=""&&(p+=" >>",this.internal.write(p))}}this.internal.write("]")}}]),n.createAnnotation=function(a){var l=this.internal.getCurrentPageInfo();switch(a.type){case"link":this.link(a.bounds.x,a.bounds.y,a.bounds.w,a.bounds.h,a);break;case"text":case"freetext":l.pageContext.annotations.push(a)}},n.link=function(a,l,A,p,O){var _=this.internal.getCurrentPageInfo(),U=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString;_.pageContext.annotations.push({finalBounds:{x:U(a),y:Z(l),w:U(a+A),h:Z(l+p)},options:O,type:"link"})},n.textWithLink=function(a,l,A,p){var O,_,U=this.getTextWidth(a),Z=this.internal.getLineHeight()/this.internal.scaleFactor;if(p.maxWidth!==void 0){_=p.maxWidth;var oe=this.splitTextToSize(a,_).length;O=Math.ceil(Z*oe)}else _=U,O=Z;return this.text(a,l,A,p),A+=.2*Z,p.align==="center"&&(l-=U/2),p.align==="right"&&(l-=U),this.link(l,A-Z,_,O,p),U},n.getTextWidth=function(a){var l=this.internal.getFontSize();return this.getStringUnitWidth(a)*l/this.internal.scaleFactor}}(ua.API),function(n){var o={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},a={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},l={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},A=[1570,1571,1573,1575];n.__arabicParser__={};var p=n.__arabicParser__.isInArabicSubstitutionA=function(ut){return o[ut.charCodeAt(0)]!==void 0},O=n.__arabicParser__.isArabicLetter=function(ut){return typeof ut=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(ut)},_=n.__arabicParser__.isArabicEndLetter=function(ut){return O(ut)&&p(ut)&&o[ut.charCodeAt(0)].length<=2},U=n.__arabicParser__.isArabicAlfLetter=function(ut){return O(ut)&&A.indexOf(ut.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(ut){return O(ut)&&p(ut)&&o[ut.charCodeAt(0)].length>=1};var Z=n.__arabicParser__.arabicLetterHasFinalForm=function(ut){return O(ut)&&p(ut)&&o[ut.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(ut){return O(ut)&&p(ut)&&o[ut.charCodeAt(0)].length>=3};var oe=n.__arabicParser__.arabicLetterHasMedialForm=function(ut){return O(ut)&&p(ut)&&o[ut.charCodeAt(0)].length==4},Re=n.__arabicParser__.resolveLigatures=function(ut){var bt=0,ot=a,Gt="",Rt=0;for(bt=0;bt<ut.length;bt+=1)ot[ut.charCodeAt(bt)]!==void 0?(Rt++,typeof(ot=ot[ut.charCodeAt(bt)])=="number"&&(Gt+=String.fromCharCode(ot),ot=a,Rt=0),bt===ut.length-1&&(ot=a,Gt+=ut.charAt(bt-(Rt-1)),bt-=Rt-1,Rt=0)):(ot=a,Gt+=ut.charAt(bt-Rt),bt-=Rt,Rt=0);return Gt};n.__arabicParser__.isArabicDiacritic=function(ut){return ut!==void 0&&l[ut.charCodeAt(0)]!==void 0};var ze=n.__arabicParser__.getCorrectForm=function(ut,bt,ot){return O(ut)?p(ut)===!1?-1:!Z(ut)||!O(bt)&&!O(ot)||!O(ot)&&_(bt)||_(ut)&&!O(bt)||_(ut)&&U(bt)||_(ut)&&_(bt)?0:oe(ut)&&O(bt)&&!_(bt)&&O(ot)&&Z(ot)?3:_(ut)||!O(ot)?1:2:-1},ae=function(ut){var bt=0,ot=0,Gt=0,Rt="",It="",kr="",rn=(ut=ut||"").split("\\s+"),Wr=[];for(bt=0;bt<rn.length;bt+=1){for(Wr.push(""),ot=0;ot<rn[bt].length;ot+=1)Rt=rn[bt][ot],It=rn[bt][ot-1],kr=rn[bt][ot+1],O(Rt)?(Gt=ze(Rt,It,kr),Wr[bt]+=Gt!==-1?String.fromCharCode(o[Rt.charCodeAt(0)][Gt]):Rt):Wr[bt]+=Rt;Wr[bt]=Re(Wr[bt])}return Wr.join(" ")},mt=n.__arabicParser__.processArabic=n.processArabic=function(){var ut,bt=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,ot=[];if(Array.isArray(bt)){var Gt=0;for(ot=[],Gt=0;Gt<bt.length;Gt+=1)Array.isArray(bt[Gt])?ot.push([ae(bt[Gt][0]),bt[Gt][1],bt[Gt][2]]):ot.push([ae(bt[Gt])]);ut=ot}else ut=ae(bt);return typeof arguments[0]=="string"?ut:(arguments[0].text=ut,arguments[0])};n.events.push(["preProcessText",mt])}(ua.API),ua.API.autoPrint=function(n){var o;return(n=n||{}).variant=n.variant||"non-conform",n.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){o=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+o+" 0 R")})),this},function(n){var o=function(){var a=void 0;Object.defineProperty(this,"pdf",{get:function(){return a},set:function(_){a=_}});var l=150;Object.defineProperty(this,"width",{get:function(){return l},set:function(_){l=isNaN(_)||Number.isInteger(_)===!1||_<0?150:_,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=l+1)}});var A=300;Object.defineProperty(this,"height",{get:function(){return A},set:function(_){A=isNaN(_)||Number.isInteger(_)===!1||_<0?300:_,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=A+1)}});var p=[];Object.defineProperty(this,"childNodes",{get:function(){return p},set:function(_){p=_}});var O={};Object.defineProperty(this,"style",{get:function(){return O},set:function(_){O=_}}),Object.defineProperty(this,"parentNode",{})};o.prototype.getContext=function(a,l){var A;if((a=a||"2d")!=="2d")return null;for(A in l)this.pdf.context2d.hasOwnProperty(A)&&(this.pdf.context2d[A]=l[A]);return this.pdf.context2d._canvas=this,this.pdf.context2d},o.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new o,this.canvas.pdf=this}])}(ua.API),function(n){var o={left:0,top:0,bottom:0,right:0},a=!1,l=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},o),this.internal.__cell__.margins.width=this.getPageWidth(),A.call(this))},A=function(){this.internal.__cell__.lastCell=new p,this.internal.__cell__.pages=1},p=function(){var U=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return U},set:function(ut){U=ut}});var Z=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Z},set:function(ut){Z=ut}});var oe=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return oe},set:function(ut){oe=ut}});var Re=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Re},set:function(ut){Re=ut}});var ze=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return ze},set:function(ut){ze=ut}});var ae=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return ae},set:function(ut){ae=ut}});var mt=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return mt},set:function(ut){mt=ut}}),this};p.prototype.clone=function(){return new p(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},p.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(U){return l.call(this),this.internal.__cell__.headerFunction=typeof U=="function"?U:void 0,this},n.getTextDimensions=function(U,Z){l.call(this);var oe=(Z=Z||{}).fontSize||this.getFontSize(),Re=Z.font||this.getFont(),ze=Z.scaleFactor||this.internal.scaleFactor,ae=0,mt=0,ut=0,bt=this;if(!Array.isArray(U)&&typeof U!="string"){if(typeof U!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");U=String(U)}var ot=Z.maxWidth;ot>0?typeof U=="string"?U=this.splitTextToSize(U,ot):Object.prototype.toString.call(U)==="[object Array]"&&(U=U.reduce(function(Rt,It){return Rt.concat(bt.splitTextToSize(It,ot))},[])):U=Array.isArray(U)?U:[U];for(var Gt=0;Gt<U.length;Gt++)ae<(ut=this.getStringUnitWidth(U[Gt],{font:Re})*oe)&&(ae=ut);return ae!==0&&(mt=U.length),{w:ae/=ze,h:Math.max((mt*oe*this.getLineHeightFactor()-oe*(this.getLineHeightFactor()-1))/ze,0)}},n.cellAddPage=function(){l.call(this),this.addPage();var U=this.internal.__cell__.margins||o;return this.internal.__cell__.lastCell=new p(U.left,U.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var O=n.cell=function(){var U;U=arguments[0]instanceof p?arguments[0]:new p(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),l.call(this);var Z=this.internal.__cell__.lastCell,oe=this.internal.__cell__.padding,Re=this.internal.__cell__.margins||o,ze=this.internal.__cell__.tableHeaderRow,ae=this.internal.__cell__.printHeaders;return Z.lineNumber!==void 0&&(Z.lineNumber===U.lineNumber?(U.x=(Z.x||0)+(Z.width||0),U.y=Z.y||0):Z.y+Z.height+U.height+Re.bottom>this.getPageHeight()?(this.cellAddPage(),U.y=Re.top,ae&&ze&&(this.printHeaderRow(U.lineNumber,!0),U.y+=ze[0].height)):U.y=Z.y+Z.height||U.y),U.text[0]!==void 0&&(this.rect(U.x,U.y,U.width,U.height,a===!0?"FD":void 0),U.align==="right"?this.text(U.text,U.x+U.width-oe,U.y+oe,{align:"right",baseline:"top"}):U.align==="center"?this.text(U.text,U.x+U.width/2,U.y+oe,{align:"center",baseline:"top",maxWidth:U.width-oe-oe}):this.text(U.text,U.x+oe,U.y+oe,{align:"left",baseline:"top",maxWidth:U.width-oe-oe})),this.internal.__cell__.lastCell=U,this};n.table=function(U,Z,oe,Re,ze){if(l.call(this),!oe)throw new Error("No data for PDF table.");var ae,mt,ut,bt,ot=[],Gt=[],Rt=[],It={},kr={},rn=[],Wr=[],ir=(ze=ze||{}).autoSize||!1,Mt=ze.printHeaders!==!1,xr=ze.css&&ze.css["font-size"]!==void 0?16*ze.css["font-size"]:ze.fontSize||12,nt=ze.margins||Object.assign({width:this.getPageWidth()},o),yt=typeof ze.padding=="number"?ze.padding:3,Wt=ze.headerBackgroundColor||"#c8c8c8",Ht=ze.headerTextColor||"#000";if(A.call(this),this.internal.__cell__.printHeaders=Mt,this.internal.__cell__.margins=nt,this.internal.__cell__.table_font_size=xr,this.internal.__cell__.padding=yt,this.internal.__cell__.headerBackgroundColor=Wt,this.internal.__cell__.headerTextColor=Ht,this.setFontSize(xr),Re==null)Gt=ot=Object.keys(oe[0]),Rt=ot.map(function(){return"left"});else if(Array.isArray(Re)&&(0,me.Z)(Re[0])==="object")for(ot=Re.map(function($n){return $n.name}),Gt=Re.map(function($n){return $n.prompt||$n.name||""}),Rt=Re.map(function($n){return $n.align||"left"}),ae=0;ae<Re.length;ae+=1)kr[Re[ae].name]=.7499990551181103*Re[ae].width;else Array.isArray(Re)&&typeof Re[0]=="string"&&(Gt=ot=Re,Rt=ot.map(function(){return"left"}));if(ir||Array.isArray(Re)&&typeof Re[0]=="string")for(ae=0;ae<ot.length;ae+=1){for(It[bt=ot[ae]]=oe.map(function($n){return $n[bt]}),this.setFont(void 0,"bold"),rn.push(this.getTextDimensions(Gt[ae],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),mt=It[bt],this.setFont(void 0,"normal"),ut=0;ut<mt.length;ut+=1)rn.push(this.getTextDimensions(mt[ut],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);kr[bt]=Math.max.apply(null,rn)+yt+yt,rn=[]}if(Mt){var Tr={};for(ae=0;ae<ot.length;ae+=1)Tr[ot[ae]]={},Tr[ot[ae]].text=Gt[ae],Tr[ot[ae]].align=Rt[ae];var Zr=_.call(this,Tr,kr);Wr=ot.map(function($n){return new p(U,Z,kr[$n],Zr,Tr[$n].text,void 0,Tr[$n].align)}),this.setTableHeaderRow(Wr),this.printHeaderRow(1,!1)}var Jr=Re.reduce(function($n,En){return $n[En.name]=En.align,$n},{});for(ae=0;ae<oe.length;ae+=1){"rowStart"in ze&&ze.rowStart instanceof Function&&ze.rowStart({row:ae,data:oe[ae]},this);var Or=_.call(this,oe[ae],kr);for(ut=0;ut<ot.length;ut+=1){var Gr=oe[ae][ot[ut]];"cellStart"in ze&&ze.cellStart instanceof Function&&ze.cellStart({row:ae,col:ut,data:Gr},this),O.call(this,new p(U,Z,kr[ot[ut]],Or,Gr,ae+2,Jr[ot[ut]]))}}return this.internal.__cell__.table_x=U,this.internal.__cell__.table_y=Z,this};var _=function(U,Z){var oe=this.internal.__cell__.padding,Re=this.internal.__cell__.table_font_size,ze=this.internal.scaleFactor;return Object.keys(U).map(function(ae){var mt=U[ae];return this.splitTextToSize(mt.hasOwnProperty("text")?mt.text:mt,Z[ae]-oe-oe)},this).map(function(ae){return this.getLineHeightFactor()*ae.length*Re/ze+oe+oe},this).reduce(function(ae,mt){return Math.max(ae,mt)},0)};n.setTableHeaderRow=function(U){l.call(this),this.internal.__cell__.tableHeaderRow=U},n.printHeaderRow=function(U,Z){if(l.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var oe;if(a=!0,typeof this.internal.__cell__.headerFunction=="function"){var Re=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new p(Re[0],Re[1],Re[2],Re[3],void 0,-1)}this.setFont(void 0,"bold");for(var ze=[],ae=0;ae<this.internal.__cell__.tableHeaderRow.length;ae+=1){oe=this.internal.__cell__.tableHeaderRow[ae].clone(),Z&&(oe.y=this.internal.__cell__.margins.top||0,ze.push(oe)),oe.lineNumber=U;var mt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),O.call(this,oe),this.setTextColor(mt)}ze.length>0&&this.setTableHeaderRow(ze),this.setFont(void 0,"normal"),a=!1}}(ua.API);var _c={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},pd=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Yc=bo(pd),sA=[100,200,300,400,500,600,700,800,900],Au=bo(sA);function XA(n){var o=n.family.replace(/"|'/g,"").toLowerCase(),a=function(p){return _c[p=p||"normal"]?p:"normal"}(n.style),l=function(p){return p?typeof p=="number"?p>=100&&p<=900&&p%100==0?p:400:/^\d00$/.test(p)?parseInt(p):p==="bold"?700:400:400}(n.weight),A=function(p){return typeof Yc[p=p||"normal"]=="number"?p:"normal"}(n.stretch);return{family:o,style:a,weight:l,stretch:A,src:n.src||[],ref:n.ref||{name:o,style:[A,a,l].join(" ")}}}function uu(n,o,a,l){var A;for(A=a;A>=0&&A<o.length;A+=l)if(n[o[A]])return n[o[A]];for(A=a;A>=0&&A<o.length;A-=l)if(n[o[A]])return n[o[A]]}var Pu={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},LA={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Tu(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function Zd(n){return n.trimLeft()}function JA(n,o){for(var a=0;a<n.length;){if(n.charAt(a)===o)return[n.substring(0,a),n.substring(a+1)];a+=1}return null}function md(n){var o=n.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return o===null?null:[o[0],n.substring(o[0].length)]}var Hc,vg,Qh,Kh,lm,bg,Gm,yg,Xm=["times"];function cm(n,o,a,l,A){var p=4,O=xg;switch(A){case ua.API.image_compression.FAST:p=1,O=wg;break;case ua.API.image_compression.MEDIUM:p=6,O=z0;break;case ua.API.image_compression.SLOW:p=9,O=Jm}n=function(U,Z,oe,Re){for(var ze,ae=U.length/Z,mt=new Uint8Array(U.length+ae),ut=[Jg,wg,xg,z0,Jm],bt=0;bt<ae;bt+=1){var ot=bt*Z,Gt=U.subarray(ot,ot+Z);if(Re)mt.set(Re(Gt,oe,ze),ot+bt);else{for(var Rt=ut.length,It=[],kr=0;kr<Rt;kr+=1)It[kr]=ut[kr](Gt,oe,ze);var rn=Ep(It.concat());mt.set(It[rn],ot+bt)}ze=Gt}return mt}(n,o,Math.ceil(a*l/8),O);var _=Ki(n,{level:p});return ua.API.__addimage__.arrayBufferToBinaryString(_)}function Jg(n){var o=Array.apply([],n);return o.unshift(0),o}function wg(n,o){var a=n.length,l=[];l[0]=1;for(var A=0;A<a;A+=1){var p=n[A-o]||0;l[A+1]=n[A]-p+256&255}return l}function xg(n,o,a){var l=n.length,A=[];A[0]=2;for(var p=0;p<l;p+=1){var O=a&&a[p]||0;A[p+1]=n[p]-O+256&255}return A}function z0(n,o,a){var l=n.length,A=[];A[0]=3;for(var p=0;p<l;p+=1){var O=n[p-o]||0,_=a&&a[p]||0;A[p+1]=n[p]+256-(O+_>>>1)&255}return A}function Jm(n,o,a){var l=n.length,A=[];A[0]=4;for(var p=0;p<l;p+=1){var O=Am(n[p-o]||0,a&&a[p]||0,a&&a[p-o]||0);A[p+1]=n[p]-O+256&255}return A}function Am(n,o,a){if(n===o&&o===a)return n;var l=Math.abs(o-a),A=Math.abs(n-a),p=Math.abs(n+o-a-a);return l<=A&&l<=p?n:A<=p?o:a}function Ep(n){var o=n.map(function(a){return a.reduce(function(l,A){return l+Math.abs(A)},0)});return o.indexOf(Math.min.apply(null,o))}function um(n,o,a){var l=o*a,A=Math.floor(l/8),p=16-(l-8*A+a),O=(1<<a)-1;return _p(n,A)>>p&O}function Hh(n,o,a,l){var A=a*l,p=Math.floor(A/8),O=16-(A-8*p+l),_=(1<<l)-1,U=(o&_)<<O;(function(Z,oe,Re){if(oe+1<Z.byteLength)Z.setUint16(oe,Re,!1);else{var ze=Re>>8&255;Z.setUint8(oe,ze)}})(n,p,_p(n,p)&~(_<<O)&65535|U)}function _p(n,o){return o+1<n.byteLength?n.getUint16(o,!1):n.getUint8(o)<<8}function Ym(n){var o=0;if(n[o++]!==71||n[o++]!==73||n[o++]!==70||n[o++]!==56||(n[o++]+1&253)!=56||n[o++]!==97)throw new Error("Invalid GIF 87a/89a header.");var a=n[o++]|n[o++]<<8,l=n[o++]|n[o++]<<8,A=n[o++],p=A>>7,O=1<<1+(7&A);n[o++],n[o++];var _=null,U=null;p&&(_=o,U=O,o+=3*O);var Z=!0,oe=[],Re=0,ze=null,ae=0,mt=null;for(this.width=a,this.height=l;Z&&o<n.length;)switch(n[o++]){case 33:switch(n[o++]){case 255:if(n[o]!==11||n[o+1]==78&&n[o+2]==69&&n[o+3]==84&&n[o+4]==83&&n[o+5]==67&&n[o+6]==65&&n[o+7]==80&&n[o+8]==69&&n[o+9]==50&&n[o+10]==46&&n[o+11]==48&&n[o+12]==3&&n[o+13]==1&&n[o+16]==0)o+=14,mt=n[o++]|n[o++]<<8,o++;else for(o+=12;;){if(!((nt=n[o++])>=0))throw Error("Invalid block size");if(nt===0)break;o+=nt}break;case 249:if(n[o++]!==4||n[o+4]!==0)throw new Error("Invalid graphics extension block.");var ut=n[o++];Re=n[o++]|n[o++]<<8,ze=n[o++],1&ut||(ze=null),ae=ut>>2&7,o++;break;case 254:for(;;){if(!((nt=n[o++])>=0))throw Error("Invalid block size");if(nt===0)break;o+=nt}break;default:throw new Error("Unknown graphic control label: 0x"+n[o-1].toString(16))}break;case 44:var bt=n[o++]|n[o++]<<8,ot=n[o++]|n[o++]<<8,Gt=n[o++]|n[o++]<<8,Rt=n[o++]|n[o++]<<8,It=n[o++],kr=It>>6&1,rn=1<<1+(7&It),Wr=_,ir=U,Mt=!1;It>>7&&(Mt=!0,Wr=o,ir=rn,o+=3*rn);var xr=o;for(o++;;){var nt;if(!((nt=n[o++])>=0))throw Error("Invalid block size");if(nt===0)break;o+=nt}oe.push({x:bt,y:ot,width:Gt,height:Rt,has_local_palette:Mt,palette_offset:Wr,palette_size:ir,data_offset:xr,data_length:o-xr,transparent_index:ze,interlaced:!!kr,delay:Re,disposal:ae});break;case 59:Z=!1;break;default:throw new Error("Unknown gif block: 0x"+n[o-1].toString(16))}this.numFrames=function(){return oe.length},this.loopCount=function(){return mt},this.frameInfo=function(yt){if(yt<0||yt>=oe.length)throw new Error("Frame index out of range.");return oe[yt]},this.decodeAndBlitFrameBGRA=function(yt,Wt){var Ht=this.frameInfo(yt),Tr=Ht.width*Ht.height,Zr=new Uint8Array(Tr);Cg(n,Ht.data_offset,Zr,Tr);var Jr=Ht.palette_offset,Or=Ht.transparent_index;Or===null&&(Or=256);var Gr=Ht.width,$n=a-Gr,En=Gr,qe=4*(Ht.y*a+Ht.x),_t=4*((Ht.y+Ht.height)*a+Ht.x),Ot=qe,Jt=4*$n;Ht.interlaced===!0&&(Jt+=4*a*7);for(var hr=8,Mr=0,$r=Zr.length;Mr<$r;++Mr){var Qr=Zr[Mr];if(En===0&&(En=Gr,(Ot+=Jt)>=_t&&(Jt=4*$n+4*a*(hr-1),Ot=qe+(Gr+$n)*(hr<<1),hr>>=1)),Qr===Or)Ot+=4;else{var gn=n[Jr+3*Qr],Rn=n[Jr+3*Qr+1],gi=n[Jr+3*Qr+2];Wt[Ot++]=gi,Wt[Ot++]=Rn,Wt[Ot++]=gn,Wt[Ot++]=255}--En}},this.decodeAndBlitFrameRGBA=function(yt,Wt){var Ht=this.frameInfo(yt),Tr=Ht.width*Ht.height,Zr=new Uint8Array(Tr);Cg(n,Ht.data_offset,Zr,Tr);var Jr=Ht.palette_offset,Or=Ht.transparent_index;Or===null&&(Or=256);var Gr=Ht.width,$n=a-Gr,En=Gr,qe=4*(Ht.y*a+Ht.x),_t=4*((Ht.y+Ht.height)*a+Ht.x),Ot=qe,Jt=4*$n;Ht.interlaced===!0&&(Jt+=4*a*7);for(var hr=8,Mr=0,$r=Zr.length;Mr<$r;++Mr){var Qr=Zr[Mr];if(En===0&&(En=Gr,(Ot+=Jt)>=_t&&(Jt=4*$n+4*a*(hr-1),Ot=qe+(Gr+$n)*(hr<<1),hr>>=1)),Qr===Or)Ot+=4;else{var gn=n[Jr+3*Qr],Rn=n[Jr+3*Qr+1],gi=n[Jr+3*Qr+2];Wt[Ot++]=gn,Wt[Ot++]=Rn,Wt[Ot++]=gi,Wt[Ot++]=255}--En}}}function Cg(n,o,a,l){for(var A=n[o++],p=1<<A,O=p+1,_=O+1,U=A+1,Z=(1<<U)-1,oe=0,Re=0,ze=0,ae=n[o++],mt=new Int32Array(4096),ut=null;;){for(;oe<16&&ae!==0;)Re|=n[o++]<<oe,oe+=8,ae===1?ae=n[o++]:--ae;if(oe<U)break;var bt=Re&Z;if(Re>>=U,oe-=U,bt!==p){if(bt===O)break;for(var ot=bt<_?bt:ut,Gt=0,Rt=ot;Rt>p;)Rt=mt[Rt]>>8,++Gt;var It=Rt;if(ze+Gt+(ot!==bt?1:0)>l)return void ks.log("Warning, gif stream longer than expected.");a[ze++]=It;var kr=ze+=Gt;for(ot!==bt&&(a[ze++]=It),Rt=ot;Gt--;)Rt=mt[Rt],a[--kr]=255&Rt,Rt>>=8;ut!==null&&_<4096&&(mt[_++]=ut<<8|It,_>=Z+1&&U<12&&(++U,Z=Z<<1|1)),ut=bt}else _=O+1,Z=(1<<(U=A+1))-1,ut=null}return ze!==l&&ks.log("Warning, gif stream shorter than expected."),a}function qm(n){var o,a,l,A,p,O=Math.floor,_=new Array(64),U=new Array(64),Z=new Array(64),oe=new Array(64),Re=new Array(65535),ze=new Array(65535),ae=new Array(64),mt=new Array(64),ut=[],bt=0,ot=7,Gt=new Array(64),Rt=new Array(64),It=new Array(64),kr=new Array(256),rn=new Array(2048),Wr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],ir=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Mt=[0,1,2,3,4,5,6,7,8,9,10,11],xr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],nt=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],yt=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],Wt=[0,1,2,3,4,5,6,7,8,9,10,11],Ht=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Tr=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function Zr(qe,_t){for(var Ot=0,Jt=0,hr=new Array,Mr=1;Mr<=16;Mr++){for(var $r=1;$r<=qe[Mr];$r++)hr[_t[Jt]]=[],hr[_t[Jt]][0]=Ot,hr[_t[Jt]][1]=Mr,Jt++,Ot++;Ot*=2}return hr}function Jr(qe){for(var _t=qe[0],Ot=qe[1]-1;Ot>=0;)_t&1<<Ot&&(bt|=1<<ot),Ot--,--ot<0&&(bt==255?(Or(255),Or(0)):Or(bt),ot=7,bt=0)}function Or(qe){ut.push(qe)}function Gr(qe){Or(qe>>8&255),Or(255&qe)}function $n(qe,_t,Ot,Jt,hr){for(var Mr,$r=hr[0],Qr=hr[240],gn=function(Wn,xa){var ui,Ja,Ma,es,yo,Wa,Ks,uo,Ba,to,Sa=0;for(Ba=0;Ba<8;++Ba){ui=Wn[Sa],Ja=Wn[Sa+1],Ma=Wn[Sa+2],es=Wn[Sa+3],yo=Wn[Sa+4],Wa=Wn[Sa+5],Ks=Wn[Sa+6];var yl=ui+(uo=Wn[Sa+7]),Ds=ui-uo,ga=Ja+Ks,wo=Ja-Ks,ul=Ma+Wa,ka=Ma-Wa,ns=es+yo,xo=es-yo,ql=yl+ns,Pl=yl-ns,is=ga+ul,Ya=ga-ul;Wn[Sa]=ql+is,Wn[Sa+4]=ql-is;var Hs=.707106781*(Ya+Pl);Wn[Sa+2]=Pl+Hs,Wn[Sa+6]=Pl-Hs;var zh=.382683433*((ql=xo+ka)-(Ya=wo+Ds)),jc=.5411961*ql+zh,Ff=1.306562965*Ya+zh,Vd=.707106781*(is=ka+wo),Ka=Ds+Vd,Mf=Ds-Vd;Wn[Sa+5]=Mf+jc,Wn[Sa+3]=Mf-jc,Wn[Sa+1]=Ka+Ff,Wn[Sa+7]=Ka-Ff,Sa+=8}for(Sa=0,Ba=0;Ba<8;++Ba){ui=Wn[Sa],Ja=Wn[Sa+8],Ma=Wn[Sa+16],es=Wn[Sa+24],yo=Wn[Sa+32],Wa=Wn[Sa+40],Ks=Wn[Sa+48];var Lf=ui+(uo=Wn[Sa+56]),pu=ui-uo,mu=Ja+Ks,lc=Ja-Ks,Ss=Ma+Wa,dl=Ma-Wa,Wd=es+yo,Gd=es-yo,Uu=Lf+Wd,gu=Lf-Wd,lA=mu+Ss,vu=mu-Ss;Wn[Sa]=Uu+lA,Wn[Sa+32]=Uu-lA;var Ru=.707106781*(vu+gu);Wn[Sa+16]=gu+Ru,Wn[Sa+48]=gu-Ru;var $h=.382683433*((Uu=Gd+dl)-(vu=lc+pu)),Xd=.5411961*Uu+$h,Zh=1.306562965*vu+$h,Vh=.707106781*(lA=dl+lc),$0=pu+Vh,Wh=pu-Vh;Wn[Sa+40]=Wh+Xd,Wn[Sa+24]=Wh-Xd,Wn[Sa+8]=$0+Zh,Wn[Sa+56]=$0-Zh,Sa++}for(Ba=0;Ba<64;++Ba)to=Wn[Ba]*xa[Ba],ae[Ba]=to>0?to+.5|0:to-.5|0;return ae}(qe,_t),Rn=0;Rn<64;++Rn)mt[Wr[Rn]]=gn[Rn];var gi=mt[0]-Ot;Ot=mt[0],gi==0?Jr(Jt[0]):(Jr(Jt[ze[Mr=32767+gi]]),Jr(Re[Mr]));for(var Ei=63;Ei>0&&mt[Ei]==0;)Ei--;if(Ei==0)return Jr($r),Ot;for(var sn,Ft=1;Ft<=Ei;){for(var Wo=Ft;mt[Ft]==0&&Ft<=Ei;)++Ft;var Eo=Ft-Wo;if(Eo>=16){sn=Eo>>4;for(var Ta=1;Ta<=sn;++Ta)Jr(Qr);Eo&=15}Mr=32767+mt[Ft],Jr(hr[(Eo<<4)+ze[Mr]]),Jr(Re[Mr]),Ft++}return Ei!=63&&Jr($r),Ot}function En(qe){qe=Math.min(Math.max(qe,1),100),p!=qe&&(function(_t){for(var Ot=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],Jt=0;Jt<64;Jt++){var hr=O((Ot[Jt]*_t+50)/100);hr=Math.min(Math.max(hr,1),255),_[Wr[Jt]]=hr}for(var Mr=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],$r=0;$r<64;$r++){var Qr=O((Mr[$r]*_t+50)/100);Qr=Math.min(Math.max(Qr,1),255),U[Wr[$r]]=Qr}for(var gn=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Rn=0,gi=0;gi<8;gi++)for(var Ei=0;Ei<8;Ei++)Z[Rn]=1/(_[Wr[Rn]]*gn[gi]*gn[Ei]*8),oe[Rn]=1/(U[Wr[Rn]]*gn[gi]*gn[Ei]*8),Rn++}(qe<50?Math.floor(5e3/qe):Math.floor(200-2*qe)),p=qe)}this.encode=function(qe,_t){_t&&En(_t),ut=new Array,bt=0,ot=7,Gr(65496),Gr(65504),Gr(16),Or(74),Or(70),Or(73),Or(70),Or(0),Or(1),Or(1),Or(0),Gr(1),Gr(1),Or(0),Or(0),function(){Gr(65499),Gr(132),Or(0);for(var Ja=0;Ja<64;Ja++)Or(_[Ja]);Or(1);for(var Ma=0;Ma<64;Ma++)Or(U[Ma])}(),function(Ja,Ma){Gr(65472),Gr(17),Or(8),Gr(Ma),Gr(Ja),Or(3),Or(1),Or(17),Or(0),Or(2),Or(17),Or(1),Or(3),Or(17),Or(1)}(qe.width,qe.height),function(){Gr(65476),Gr(418),Or(0);for(var Ja=0;Ja<16;Ja++)Or(ir[Ja+1]);for(var Ma=0;Ma<=11;Ma++)Or(Mt[Ma]);Or(16);for(var es=0;es<16;es++)Or(xr[es+1]);for(var yo=0;yo<=161;yo++)Or(nt[yo]);Or(1);for(var Wa=0;Wa<16;Wa++)Or(yt[Wa+1]);for(var Ks=0;Ks<=11;Ks++)Or(Wt[Ks]);Or(17);for(var uo=0;uo<16;uo++)Or(Ht[uo+1]);for(var Ba=0;Ba<=161;Ba++)Or(Tr[Ba])}(),Gr(65498),Gr(12),Or(3),Or(1),Or(0),Or(2),Or(17),Or(3),Or(17),Or(0),Or(63),Or(0);var Ot=0,Jt=0,hr=0;bt=0,ot=7,this.encode.displayName="_encode_";for(var Mr,$r,Qr,gn,Rn,gi,Ei,sn,Ft,Wo=qe.data,Eo=qe.width,Ta=qe.height,Wn=4*Eo,xa=0;xa<Ta;){for(Mr=0;Mr<Wn;){for(Rn=Wn*xa+Mr,Ei=-1,sn=0,Ft=0;Ft<64;Ft++)gi=Rn+(sn=Ft>>3)*Wn+(Ei=4*(7&Ft)),xa+sn>=Ta&&(gi-=Wn*(xa+1+sn-Ta)),Mr+Ei>=Wn&&(gi-=Mr+Ei-Wn+4),$r=Wo[gi++],Qr=Wo[gi++],gn=Wo[gi++],Gt[Ft]=(rn[$r]+rn[Qr+256|0]+rn[gn+512|0]>>16)-128,Rt[Ft]=(rn[$r+768|0]+rn[Qr+1024|0]+rn[gn+1280|0]>>16)-128,It[Ft]=(rn[$r+1280|0]+rn[Qr+1536|0]+rn[gn+1792|0]>>16)-128;Ot=$n(Gt,Z,Ot,o,l),Jt=$n(Rt,oe,Jt,a,A),hr=$n(It,oe,hr,a,A),Mr+=32}xa+=8}if(ot>=0){var ui=[];ui[1]=ot+1,ui[0]=(1<<ot+1)-1,Jr(ui)}return Gr(65497),new Uint8Array(ut)},n=n||50,function(){for(var qe=String.fromCharCode,_t=0;_t<256;_t++)kr[_t]=qe(_t)}(),o=Zr(ir,Mt),a=Zr(yt,Wt),l=Zr(xr,nt),A=Zr(Ht,Tr),function(){for(var qe=1,_t=2,Ot=1;Ot<=15;Ot++){for(var Jt=qe;Jt<_t;Jt++)ze[32767+Jt]=Ot,Re[32767+Jt]=[],Re[32767+Jt][1]=Ot,Re[32767+Jt][0]=Jt;for(var hr=-(_t-1);hr<=-qe;hr++)ze[32767+hr]=Ot,Re[32767+hr]=[],Re[32767+hr][1]=Ot,Re[32767+hr][0]=_t-1+hr;qe<<=1,_t<<=1}}(),function(){for(var qe=0;qe<256;qe++)rn[qe]=19595*qe,rn[qe+256|0]=38470*qe,rn[qe+512|0]=7471*qe+32768,rn[qe+768|0]=-11059*qe,rn[qe+1024|0]=-21709*qe,rn[qe+1280|0]=32768*qe+8421375,rn[qe+1536|0]=-27439*qe,rn[qe+1792|0]=-5329*qe}(),En(n)}function du(n,o){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.buffer),this.is_with_alpha=!!o,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Ip(n){function o(Mt){if(!Mt)throw Error("assert :P")}function a(Mt,xr,nt){for(var yt=0;4>yt;yt++)if(Mt[xr+yt]!=nt.charCodeAt(yt))return!0;return!1}function l(Mt,xr,nt,yt,Wt){for(var Ht=0;Ht<Wt;Ht++)Mt[xr+Ht]=nt[yt+Ht]}function A(Mt,xr,nt,yt){for(var Wt=0;Wt<yt;Wt++)Mt[xr+Wt]=nt}function p(Mt){return new Int32Array(Mt)}function O(Mt,xr){for(var nt=[],yt=0;yt<Mt;yt++)nt.push(new xr);return nt}function _(Mt,xr){var nt=[];return function yt(Wt,Ht,Tr){for(var Zr=Tr[Ht],Jr=0;Jr<Zr&&(Wt.push(Tr.length>Ht+1?[]:new xr),!(Tr.length<Ht+1));Jr++)yt(Wt[Jr],Ht+1,Tr)}(nt,0,Mt),nt}var U=function(){var Mt=this;function xr(h,B){for(var Q=1<<B-1>>>0;h&Q;)Q>>>=1;return Q?(h&Q-1)+Q:h}function nt(h,B,Q,ge,Ke){o(!(ge%Q));do h[B+(ge-=Q)]=Ke;while(0<ge)}function yt(h,B,Q,ge,Ke){if(o(2328>=Ke),512>=Ke)var $e=p(512);else if(($e=p(Ke))==null)return 0;return function(We,at,At,dt,Kt,yr){var wt,nr,vr=at,Xr=1<<At,Sr=p(16),An=p(16);for(o(Kt!=0),o(dt!=null),o(We!=null),o(0<At),nr=0;nr<Kt;++nr){if(15<dt[nr])return 0;++Sr[dt[nr]]}if(Sr[0]==Kt)return 0;for(An[1]=0,wt=1;15>wt;++wt){if(Sr[wt]>1<<wt)return 0;An[wt+1]=An[wt]+Sr[wt]}for(nr=0;nr<Kt;++nr)wt=dt[nr],0<dt[nr]&&(yr[An[wt]++]=nr);if(An[15]==1)return(dt=new Wt).g=0,dt.value=yr[0],nt(We,vr,1,Xr,dt),Xr;var bn,Zn=-1,Dn=Xr-1,Ea=0,oa=1,Ko=1,va=1<<At;for(nr=0,wt=1,Kt=2;wt<=At;++wt,Kt<<=1){if(oa+=Ko<<=1,0>(Ko-=Sr[wt]))return 0;for(;0<Sr[wt];--Sr[wt])(dt=new Wt).g=wt,dt.value=yr[nr++],nt(We,vr+Ea,Kt,va,dt),Ea=xr(Ea,wt)}for(wt=At+1,Kt=2;15>=wt;++wt,Kt<<=1){if(oa+=Ko<<=1,0>(Ko-=Sr[wt]))return 0;for(;0<Sr[wt];--Sr[wt]){if(dt=new Wt,(Ea&Dn)!=Zn){for(vr+=va,bn=1<<(Zn=wt)-At;15>Zn&&!(0>=(bn-=Sr[Zn]));)++Zn,bn<<=1;Xr+=va=1<<(bn=Zn-At),We[at+(Zn=Ea&Dn)].g=bn+At,We[at+Zn].value=vr-at-Zn}dt.g=wt-At,dt.value=yr[nr++],nt(We,vr+(Ea>>At),Kt,va,dt),Ea=xr(Ea,wt)}}return oa!=2*An[15]-1?0:Xr}(h,B,Q,ge,Ke,$e)}function Wt(){this.value=this.g=0}function Ht(){this.value=this.g=0}function Tr(){this.G=O(5,Wt),this.H=p(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=O(s0,Ht)}function Zr(h,B,Q,ge){o(h!=null),o(B!=null),o(2147483648>ge),h.Ca=254,h.I=0,h.b=-8,h.Ka=0,h.oa=B,h.pa=Q,h.Jd=B,h.Yc=Q+ge,h.Zc=4<=ge?Q+ge-4+1:Q,$r(h)}function Jr(h,B){for(var Q=0;0<B--;)Q|=gn(h,128)<<B;return Q}function Or(h,B){var Q=Jr(h,B);return Qr(h)?-Q:Q}function Gr(h,B,Q,ge){var Ke,$e=0;for(o(h!=null),o(B!=null),o(4294967288>ge),h.Sb=ge,h.Ra=0,h.u=0,h.h=0,4<ge&&(ge=4),Ke=0;Ke<ge;++Ke)$e+=B[Q+Ke]<<8*Ke;h.Ra=$e,h.bb=ge,h.oa=B,h.pa=Q}function $n(h){for(;8<=h.u&&h.bb<h.Sb;)h.Ra>>>=8,h.Ra+=h.oa[h.pa+h.bb]<<l0-8>>>0,++h.bb,h.u-=8;Jt(h)&&(h.h=1,h.u=0)}function En(h,B){if(o(0<=B),!h.h&&B<=yu){var Q=Ot(h)&DA[B];return h.u+=B,$n(h),Q}return h.h=1,h.u=0}function qe(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function _t(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Ot(h){return h.Ra>>>(h.u&l0-1)>>>0}function Jt(h){return o(h.bb<=h.Sb),h.h||h.bb==h.Sb&&h.u>l0}function hr(h,B){h.u=B,h.h=Jt(h)}function Mr(h){h.u>=ph&&(o(h.u>=ph),$n(h))}function $r(h){o(h!=null&&h.oa!=null),h.pa<h.Zc?(h.I=(h.oa[h.pa++]|h.I<<8)>>>0,h.b+=8):(o(h!=null&&h.oa!=null),h.pa<h.Yc?(h.b+=8,h.I=h.oa[h.pa++]|h.I<<8):h.Ka?h.b=0:(h.I<<=8,h.b+=8,h.Ka=1))}function Qr(h){return Jr(h,1)}function gn(h,B){var Q=h.Ca;0>h.b&&$r(h);var ge=h.b,Ke=Q*B>>>8,$e=(h.I>>>ge>Ke)+0;for($e?(Q-=Ke,h.I-=Ke+1<<ge>>>0):Q=Ke+1,ge=Q,Ke=0;256<=ge;)Ke+=8,ge>>=8;return ge=7^Ke+nf[ge],h.b-=ge,h.Ca=(Q<<ge)-1,$e}function Rn(h,B,Q){h[B+0]=Q>>24&255,h[B+1]=Q>>16&255,h[B+2]=Q>>8&255,h[B+3]=255&Q}function gi(h,B){return h[B+0]|h[B+1]<<8}function Ei(h,B){return gi(h,B)|h[B+2]<<16}function sn(h,B){return gi(h,B)|gi(h,B+2)<<16}function Ft(h,B){var Q=1<<B;return o(h!=null),o(0<B),h.X=p(Q),h.X==null?0:(h.Mb=32-B,h.Xa=B,1)}function Wo(h,B){o(h!=null),o(B!=null),o(h.Xa==B.Xa),l(B.X,0,h.X,0,1<<B.Xa)}function Eo(){this.X=[],this.Xa=this.Mb=0}function Ta(h,B,Q,ge){o(Q!=null),o(ge!=null);var Ke=Q[0],$e=ge[0];return Ke==0&&(Ke=(h*$e+B/2)/B),$e==0&&($e=(B*Ke+h/2)/h),0>=Ke||0>=$e?0:(Q[0]=Ke,ge[0]=$e,1)}function Wn(h,B){return h+(1<<B)-1>>>B}function xa(h,B){return((4278255360&h)+(4278255360&B)>>>0&4278255360)+((16711935&h)+(16711935&B)>>>0&16711935)>>>0}function ui(h,B){Mt[B]=function(Q,ge,Ke,$e,We,at,At){var dt;for(dt=0;dt<We;++dt){var Kt=Mt[h](at[At+dt-1],Ke,$e+dt);at[At+dt]=xa(Q[ge+dt],Kt)}}}function Ja(){this.ud=this.hd=this.jd=0}function Ma(h,B){return((4278124286&(h^B))>>>1)+(h&B)>>>0}function es(h){return 0<=h&&256>h?h:0>h?0:255<h?255:void 0}function yo(h,B){return es(h+(h-B+.5>>1))}function Wa(h,B,Q){return Math.abs(B-Q)-Math.abs(h-Q)}function Ks(h,B,Q,ge,Ke,$e,We){for(ge=$e[We-1],Q=0;Q<Ke;++Q)$e[We+Q]=ge=xa(h[B+Q],ge)}function uo(h,B,Q,ge,Ke){var $e;for($e=0;$e<Q;++$e){var We=h[B+$e],at=We>>8&255,At=16711935&(At=(At=16711935&We)+((at<<16)+at));ge[Ke+$e]=(4278255360&We)+At>>>0}}function Ba(h,B){B.jd=255&h,B.hd=h>>8&255,B.ud=h>>16&255}function to(h,B,Q,ge,Ke,$e){var We;for(We=0;We<ge;++We){var at=B[Q+We],At=at>>>8,dt=at,Kt=255&(Kt=(Kt=at>>>16)+((h.jd<<24>>24)*(At<<24>>24)>>>5));dt=255&(dt=(dt+=(h.hd<<24>>24)*(At<<24>>24)>>>5)+((h.ud<<24>>24)*(Kt<<24>>24)>>>5)),Ke[$e+We]=(4278255360&at)+(Kt<<16)+dt}}function Sa(h,B,Q,ge,Ke){Mt[B]=function($e,We,at,At,dt,Kt,yr,wt,nr){for(At=yr;At<wt;++At)for(yr=0;yr<nr;++yr)dt[Kt++]=Ke(at[ge($e[We++])])},Mt[h]=function($e,We,at,At,dt,Kt,yr){var wt=8>>$e.b,nr=$e.Ea,vr=$e.K[0],Xr=$e.w;if(8>wt)for($e=(1<<$e.b)-1,Xr=(1<<wt)-1;We<at;++We){var Sr,An=0;for(Sr=0;Sr<nr;++Sr)Sr&$e||(An=ge(At[dt++])),Kt[yr++]=Ke(vr[An&Xr]),An>>=wt}else Mt["VP8LMapColor"+Q](At,dt,vr,Xr,Kt,yr,We,at,nr)}}function yl(h,B,Q,ge,Ke){for(Q=B+Q;B<Q;){var $e=h[B++];ge[Ke++]=$e>>16&255,ge[Ke++]=$e>>8&255,ge[Ke++]=255&$e}}function Ds(h,B,Q,ge,Ke){for(Q=B+Q;B<Q;){var $e=h[B++];ge[Ke++]=$e>>16&255,ge[Ke++]=$e>>8&255,ge[Ke++]=255&$e,ge[Ke++]=$e>>24&255}}function ga(h,B,Q,ge,Ke){for(Q=B+Q;B<Q;){var $e=(We=h[B++])>>16&240|We>>12&15,We=240&We|We>>28&15;ge[Ke++]=$e,ge[Ke++]=We}}function wo(h,B,Q,ge,Ke){for(Q=B+Q;B<Q;){var $e=(We=h[B++])>>16&248|We>>13&7,We=We>>5&224|We>>3&31;ge[Ke++]=$e,ge[Ke++]=We}}function ul(h,B,Q,ge,Ke){for(Q=B+Q;B<Q;){var $e=h[B++];ge[Ke++]=255&$e,ge[Ke++]=$e>>8&255,ge[Ke++]=$e>>16&255}}function ka(h,B,Q,ge,Ke,$e){if($e==0)for(Q=B+Q;B<Q;)Rn(ge,(($e=h[B++])[0]>>24|$e[1]>>8&65280|$e[2]<<8&16711680|$e[3]<<24)>>>0),Ke+=32;else l(ge,Ke,h,B,Q)}function ns(h,B){Mt[B][0]=Mt[h+"0"],Mt[B][1]=Mt[h+"1"],Mt[B][2]=Mt[h+"2"],Mt[B][3]=Mt[h+"3"],Mt[B][4]=Mt[h+"4"],Mt[B][5]=Mt[h+"5"],Mt[B][6]=Mt[h+"6"],Mt[B][7]=Mt[h+"7"],Mt[B][8]=Mt[h+"8"],Mt[B][9]=Mt[h+"9"],Mt[B][10]=Mt[h+"10"],Mt[B][11]=Mt[h+"11"],Mt[B][12]=Mt[h+"12"],Mt[B][13]=Mt[h+"13"],Mt[B][14]=Mt[h+"0"],Mt[B][15]=Mt[h+"0"]}function xo(h){return h==dg||h==sf||h==cc||h==f0}function ql(){this.eb=[],this.size=this.A=this.fb=0}function Pl(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function is(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ql,this.f.kb=new Pl,this.sd=null}function Ya(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function Hs(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function zh(h){return alert("todo:WebPSamplerProcessPlane"),h.T}function jc(h,B){var Q=h.T,ge=B.ba.f.RGBA,Ke=ge.eb,$e=ge.fb+h.ka*ge.A,We=Gu[B.ba.S],at=h.y,At=h.O,dt=h.f,Kt=h.N,yr=h.ea,wt=h.W,nr=B.cc,vr=B.dc,Xr=B.Mc,Sr=B.Nc,An=h.ka,bn=h.ka+h.T,Zn=h.U,Dn=Zn+1>>1;for(An==0?We(at,At,null,null,dt,Kt,yr,wt,dt,Kt,yr,wt,Ke,$e,null,null,Zn):(We(B.ec,B.fc,at,At,nr,vr,Xr,Sr,dt,Kt,yr,wt,Ke,$e-ge.A,Ke,$e,Zn),++Q);An+2<bn;An+=2)nr=dt,vr=Kt,Xr=yr,Sr=wt,Kt+=h.Rc,wt+=h.Rc,$e+=2*ge.A,We(at,(At+=2*h.fa)-h.fa,at,At,nr,vr,Xr,Sr,dt,Kt,yr,wt,Ke,$e-ge.A,Ke,$e,Zn);return At+=h.fa,h.j+bn<h.o?(l(B.ec,B.fc,at,At,Zn),l(B.cc,B.dc,dt,Kt,Dn),l(B.Mc,B.Nc,yr,wt,Dn),Q--):1&bn||We(at,At,null,null,dt,Kt,yr,wt,dt,Kt,yr,wt,Ke,$e+ge.A,null,null,Zn),Q}function Ff(h,B,Q){var ge=h.F,Ke=[h.J];if(ge!=null){var $e=h.U,We=B.ba.S,at=We==sp||We==cc;B=B.ba.f.RGBA;var At=[0],dt=h.ka;At[0]=h.T,h.Kb&&(dt==0?--At[0]:(--dt,Ke[0]-=h.width),h.j+h.ka+h.T==h.o&&(At[0]=h.o-h.j-dt));var Kt=B.eb;dt=B.fb+dt*B.A,h=cg(ge,Ke[0],h.width,$e,At,Kt,dt+(at?0:3),B.A),o(Q==At),h&&xo(We)&&Hp(Kt,dt,at,$e,At,B.A)}return 0}function Vd(h){var B=h.ma,Q=B.ba.S,ge=11>Q,Ke=Q==Mm||Q==jp||Q==sp||Q==ug||Q==12||xo(Q);if(B.memory=null,B.Ib=null,B.Jb=null,B.Nd=null,!Ul(B.Oa,h,Ke?11:12))return 0;if(Ke&&xo(Q)&&Ro(),h.da)alert("todo:use_scaling");else{if(ge){if(B.Ib=zh,h.Kb){if(Q=h.U+1>>1,B.memory=p(h.U+2*Q),B.memory==null)return 0;B.ec=B.memory,B.fc=0,B.cc=B.ec,B.dc=B.fc+h.U,B.Mc=B.cc,B.Nc=B.dc+Q,B.Ib=jc,Ro()}}else alert("todo:EmitYUV");Ke&&(B.Jb=Ff,ge&&Ku())}if(ge&&!rt){for(h=0;256>h;++h)gt[h]=89858*(h-128)+k>>u,In[h]=-22014*(h-128)+k,Br[h]=-45773*(h-128),Et[h]=113618*(h-128)+k>>u;for(h=j;h<Y;++h)B=76283*(h-16)+k>>u,wr[h-j]=hl(B,255),nn[h-j]=hl(B+8>>4,15);rt=1}return 1}function Ka(h){var B=h.ma,Q=h.U,ge=h.T;return o(!(1&h.ka)),0>=Q||0>=ge?0:(Q=B.Ib(h,B),B.Jb!=null&&B.Jb(h,B,Q),B.Dc+=Q,1)}function Mf(h){h.ma.memory=null}function Lf(h,B,Q,ge){return En(h,8)!=47?0:(B[0]=En(h,14)+1,Q[0]=En(h,14)+1,ge[0]=En(h,1),En(h,3)!=0?0:!h.h)}function pu(h,B){if(4>h)return h+1;var Q=h-2>>1;return(2+(1&h)<<Q)+En(B,Q)+1}function mu(h,B){return 120<B?B-120:1<=(Q=((Q=Rg[B-1])>>4)*h+(8-(15&Q)))?Q:1;var Q}function lc(h,B,Q){var ge=Ot(Q),Ke=h[B+=255&ge].g-8;return 0<Ke&&(hr(Q,Q.u+8),ge=Ot(Q),B+=h[B].value,B+=ge&(1<<Ke)-1),hr(Q,Q.u+h[B].g),h[B].value}function Ss(h,B,Q){return Q.g+=h.g,Q.value+=h.value<<B>>>0,o(8>=Q.g),h.g}function dl(h,B,Q){var ge=h.xc;return o((B=ge==0?0:h.vc[h.md*(Q>>ge)+(B>>ge)])<h.Wb),h.Ya[B]}function Wd(h,B,Q,ge){var Ke=h.ab,$e=h.c*B,We=h.C;B=We+B;var at=Q,At=ge;for(ge=h.Ta,Q=h.Ua;0<Ke--;){var dt=h.gc[Ke],Kt=We,yr=B,wt=at,nr=At,vr=(At=ge,at=Q,dt.Ea);switch(o(Kt<yr),o(yr<=dt.nc),dt.hc){case 2:rc(wt,nr,(yr-Kt)*vr,At,at);break;case 0:var Xr=Kt,Sr=yr,An=At,bn=at,Zn=(va=dt).Ea;Xr==0&&(af(wt,nr,null,null,1,An,bn),Ks(wt,nr+1,0,0,Zn-1,An,bn+1),nr+=Zn,bn+=Zn,++Xr);for(var Dn=1<<va.b,Ea=Dn-1,oa=Wn(Zn,va.b),Ko=va.K,va=va.w+(Xr>>va.b)*oa;Xr<Sr;){var _s=Ko,dA=va,Ho=1;for(np(wt,nr,An,bn-Zn,1,An,bn);Ho<Zn;){var ba=(Ho&~Ea)+Dn;ba>Zn&&(ba=Zn),(0,ip[_s[dA++]>>8&15])(wt,nr+ +Ho,An,bn+Ho-Zn,ba-Ho,An,bn+Ho),Ho=ba}nr+=Zn,bn+=Zn,++Xr&Ea||(va+=oa)}yr!=dt.nc&&l(At,at-vr,At,at+(yr-Kt-1)*vr,vr);break;case 1:for(vr=wt,Sr=nr,Zn=(wt=dt.Ea)-(bn=wt&~(An=(nr=1<<dt.b)-1)),Xr=Wn(wt,dt.b),Dn=dt.K,dt=dt.w+(Kt>>dt.b)*Xr;Kt<yr;){for(Ea=Dn,oa=dt,Ko=new Ja,va=Sr+bn,_s=Sr+wt;Sr<va;)Ba(Ea[oa++],Ko),Qp(Ko,vr,Sr,nr,At,at),Sr+=nr,at+=nr;Sr<_s&&(Ba(Ea[oa++],Ko),Qp(Ko,vr,Sr,Zn,At,at),Sr+=Zn,at+=Zn),++Kt&An||(dt+=Xr)}break;case 3:if(wt==At&&nr==at&&0<dt.b){for(Sr=At,wt=vr=at+(yr-Kt)*vr-(bn=(yr-Kt)*Wn(dt.Ea,dt.b)),nr=At,An=at,Xr=[],bn=(Zn=bn)-1;0<=bn;--bn)Xr[bn]=nr[An+bn];for(bn=Zn-1;0<=bn;--bn)Sr[wt+bn]=Xr[bn];Cm(dt,Kt,yr,At,vr,At,at)}else Cm(dt,Kt,yr,wt,nr,At,at)}at=ge,At=Q}At!=Q&&l(ge,Q,at,At,$e)}function Gd(h,B){var Q=h.V,ge=h.Ba+h.c*h.C,Ke=B-h.C;if(o(B<=h.l.o),o(16>=Ke),0<Ke){var $e=h.l,We=h.Ta,at=h.Ua,At=$e.width;if(Wd(h,Ke,Q,ge),Ke=at=[at],o((Q=h.C)<(ge=B)),o($e.v<$e.va),ge>$e.o&&(ge=$e.o),Q<$e.j){var dt=$e.j-Q;Q=$e.j,Ke[0]+=dt*At}if(Q>=ge?Q=0:(Ke[0]+=4*$e.v,$e.ka=Q-$e.j,$e.U=$e.va-$e.v,$e.T=ge-Q,Q=1),Q){if(at=at[0],11>(Q=h.ca).S){var Kt=Q.f.RGBA,yr=(ge=Q.S,Ke=$e.U,$e=$e.T,dt=Kt.eb,Kt.A),wt=$e;for(Kt=Kt.fb+h.Ma*Kt.A;0<wt--;){var nr=We,vr=at,Xr=Ke,Sr=dt,An=Kt;switch(ge){case Fm:ap(nr,vr,Xr,Sr,An);break;case Mm:Pf(nr,vr,Xr,Sr,An);break;case dg:Pf(nr,vr,Xr,Sr,An),Hp(Sr,An,0,Xr,1,0);break;case Pg:gh(nr,vr,Xr,Sr,An);break;case jp:ka(nr,vr,Xr,Sr,An,1);break;case sf:ka(nr,vr,Xr,Sr,An,1),Hp(Sr,An,0,Xr,1,0);break;case sp:ka(nr,vr,Xr,Sr,An,0);break;case cc:ka(nr,vr,Xr,Sr,An,0),Hp(Sr,An,1,Xr,1,0);break;case ug:mh(nr,vr,Xr,Sr,An);break;case f0:mh(nr,vr,Xr,Sr,An),Lg(Sr,An,Xr,1,0);break;case Qo:ps(nr,vr,Xr,Sr,An);break;default:o(0)}at+=At,Kt+=yr}h.Ma+=$e}else alert("todo:EmitRescaledRowsYUVA");o(h.Ma<=Q.height)}}h.C=B,o(h.C<=h.i)}function Uu(h){var B;if(0<h.ua)return 0;for(B=0;B<h.Wb;++B){var Q=h.Ya[B].G,ge=h.Ya[B].H;if(0<Q[1][ge[1]+0].g||0<Q[2][ge[2]+0].g||0<Q[3][ge[3]+0].g)return 0}return 1}function gu(h,B,Q,ge,Ke,$e){if(h.Z!=0){var We=h.qd,at=h.rd;for(o(yh[h.Z]!=null);B<Q;++B)yh[h.Z](We,at,ge,Ke,ge,Ke,$e),We=ge,at=Ke,Ke+=$e;h.qd=We,h.rd=at}}function lA(h,B){var Q=h.l.ma,ge=Q.Z==0||Q.Z==1?h.l.j:h.C;if(ge=h.C<ge?ge:h.C,o(B<=h.l.o),B>ge){var Ke=h.l.width,$e=Q.ca,We=Q.tb+Ke*ge,at=h.V,At=h.Ba+h.c*ge,dt=h.gc;o(h.ab==1),o(dt[0].hc==3),Zu(dt[0],ge,B,at,At,$e,We),gu(Q,ge,B,$e,We,Ke)}h.C=h.Ma=B}function vu(h,B,Q,ge,Ke,$e,We){var at=h.$/ge,At=h.$%ge,dt=h.m,Kt=h.s,yr=Q+h.$,wt=yr;Ke=Q+ge*Ke;var nr=Q+ge*$e,vr=280+Kt.ua,Xr=h.Pb?at:16777216,Sr=0<Kt.ua?Kt.Wa:null,An=Kt.wc,bn=yr<nr?dl(Kt,At,at):null;o(h.C<$e),o(nr<=Ke);var Zn=!1;e:for(;;){for(;Zn||yr<nr;){var Dn=0;if(at>=Xr){var Ea=yr-Q;o((Xr=h).Pb),Xr.wd=Xr.m,Xr.xd=Ea,0<Xr.s.ua&&Wo(Xr.s.Wa,Xr.s.vb),Xr=at+Kg}if(At&An||(bn=dl(Kt,At,at)),o(bn!=null),bn.Qb&&(B[yr]=bn.qb,Zn=!0),!Zn)if(Mr(dt),bn.jc){Dn=dt,Ea=B;var oa=yr,Ko=bn.pd[Ot(Dn)&s0-1];o(bn.jc),256>Ko.g?(hr(Dn,Dn.u+Ko.g),Ea[oa]=Ko.value,Dn=0):(hr(Dn,Dn.u+Ko.g-256),o(256<=Ko.value),Dn=Ko.value),Dn==0&&(Zn=!0)}else Dn=lc(bn.G[0],bn.H[0],dt);if(dt.h)break;if(Zn||256>Dn){if(!Zn)if(bn.nd)B[yr]=(bn.qb|Dn<<8)>>>0;else{if(Mr(dt),Zn=lc(bn.G[1],bn.H[1],dt),Mr(dt),Ea=lc(bn.G[2],bn.H[2],dt),oa=lc(bn.G[3],bn.H[3],dt),dt.h)break;B[yr]=(oa<<24|Zn<<16|Dn<<8|Ea)>>>0}if(Zn=!1,++yr,++At>=ge&&(At=0,++at,We!=null&&at<=$e&&!(at%16)&&We(h,at),Sr!=null))for(;wt<yr;)Dn=B[wt++],Sr.X[(506832829*Dn&4294967295)>>>Sr.Mb]=Dn}else if(280>Dn){if(Dn=pu(Dn-256,dt),Ea=lc(bn.G[4],bn.H[4],dt),Mr(dt),Ea=mu(ge,Ea=pu(Ea,dt)),dt.h)break;if(yr-Q<Ea||Ke-yr<Dn)break e;for(oa=0;oa<Dn;++oa)B[yr+oa]=B[yr+oa-Ea];for(yr+=Dn,At+=Dn;At>=ge;)At-=ge,++at,We!=null&&at<=$e&&!(at%16)&&We(h,at);if(o(yr<=Ke),At&An&&(bn=dl(Kt,At,at)),Sr!=null)for(;wt<yr;)Dn=B[wt++],Sr.X[(506832829*Dn&4294967295)>>>Sr.Mb]=Dn}else{if(!(Dn<vr))break e;for(Zn=Dn-280,o(Sr!=null);wt<yr;)Dn=B[wt++],Sr.X[(506832829*Dn&4294967295)>>>Sr.Mb]=Dn;Dn=yr,o(!(Zn>>>(Ea=Sr).Xa)),B[Dn]=Ea.X[Zn],Zn=!0}Zn||o(dt.h==Jt(dt))}if(h.Pb&&dt.h&&yr<Ke)o(h.m.h),h.a=5,h.m=h.wd,h.$=h.xd,0<h.s.ua&&Wo(h.s.vb,h.s.Wa);else{if(dt.h)break e;We!=null&&We(h,at>$e?$e:at),h.a=0,h.$=yr-Q}return 1}return h.a=3,0}function Ru(h){o(h!=null),h.vc=null,h.yc=null,h.Ya=null;var B=h.Wa;B!=null&&(B.X=null),h.vb=null,o(h!=null)}function $h(){var h=new ha;return h==null?null:(h.a=0,h.xb=c1,ns("Predictor","VP8LPredictors"),ns("Predictor","VP8LPredictors_C"),ns("PredictorAdd","VP8LPredictorsAdd"),ns("PredictorAdd","VP8LPredictorsAdd_C"),rc=uo,Qp=to,ap=yl,Pf=Ds,mh=ga,ps=wo,gh=ul,Mt.VP8LMapColor32b=$u,Mt.VP8LMapColor8b=c0,h)}function Xd(h,B,Q,ge,Ke){var $e=1,We=[h],at=[B],At=ge.m,dt=ge.s,Kt=null,yr=0;e:for(;;){if(Q)for(;$e&&En(At,1);){var wt=We,nr=at,vr=ge,Xr=1,Sr=vr.m,An=vr.gc[vr.ab],bn=En(Sr,2);if(vr.Oc&1<<bn)$e=0;else{switch(vr.Oc|=1<<bn,An.hc=bn,An.Ea=wt[0],An.nc=nr[0],An.K=[null],++vr.ab,o(4>=vr.ab),bn){case 0:case 1:An.b=En(Sr,3)+2,Xr=Xd(Wn(An.Ea,An.b),Wn(An.nc,An.b),0,vr,An.K),An.K=An.K[0];break;case 3:var Zn,Dn=En(Sr,8)+1,Ea=16<Dn?0:4<Dn?1:2<Dn?2:3;if(wt[0]=Wn(An.Ea,Ea),An.b=Ea,Zn=Xr=Xd(Dn,1,0,vr,An.K)){var oa,Ko=Dn,va=An,_s=1<<(8>>va.b),dA=p(_s);if(dA==null)Zn=0;else{var Ho=va.K[0],ba=va.w;for(dA[0]=va.K[0][0],oa=1;oa<1*Ko;++oa)dA[oa]=xa(Ho[ba+oa],dA[oa-1]);for(;oa<4*_s;++oa)dA[oa]=0;va.K[0]=null,va.K[0]=dA,Zn=1}}Xr=Zn;break;case 2:break;default:o(0)}$e=Xr}}if(We=We[0],at=at[0],$e&&En(At,1)&&!($e=1<=(yr=En(At,4))&&11>=yr)){ge.a=3;break e}var _i;if(_i=$e)t:{var $c,Do,Os,nc=ge,QA=We,xu=at,Lc=yr,eu=Q,Cu=nc.m,fA=nc.s,js=[null],ml=1,kc=0,gl=Qg[Lc];r:for(;;){if(eu&&En(Cu,1)){var KA=En(Cu,3)+2,Rf=Wn(QA,KA),Zc=Wn(xu,KA),Xu=Rf*Zc;if(!Xd(Rf,Zc,0,nc,js))break r;for(js=js[0],fA.xc=KA,$c=0;$c<Xu;++$c){var Fl=js[$c]>>8&65535;js[$c]=Fl,Fl>=ml&&(ml=Fl+1)}}if(Cu.h)break r;for(Do=0;5>Do;++Do){var hA=h0[Do];!Do&&0<Lc&&(hA+=1<<Lc),kc<hA&&(kc=hA)}var Cd=O(ml*gl,Wt),Bu=ml,Bd=O(Bu,Tr);if(Bd==null)var Sd=null;else o(65536>=Bu),Sd=Bd;var Ju=p(kc);if(Sd==null||Ju==null||Cd==null){nc.a=1;break r}var Ed=Cd;for($c=Os=0;$c<ml;++$c){var Rl=Sd[$c],_d=Rl.G,Qf=Rl.H,$p=0,m0=1,HA=0;for(Do=0;5>Do;++Do){hA=h0[Do],_d[Do]=Ed,Qf[Do]=Os,!Do&&0<Lc&&(hA+=1<<Lc);i:{var jg,A1=hA,zg=nc,hg=Ju,hv=Ed,pv=Os,u1=0,Ap=zg.m,mv=En(Ap,1);if(A(hg,0,0,A1),mv){var gv=En(Ap,1)+1,vv=En(Ap,1),x1=En(Ap,vv==0?1:8);hg[x1]=1,gv==2&&(hg[x1=En(Ap,8)]=1);var $g=1}else{var C1=p(19),B1=En(Ap,4)+4;if(19<B1){zg.a=3;var Zg=0;break i}for(jg=0;jg<B1;++jg)C1[Ug[jg]]=En(Ap,3);var d1=void 0,pg=void 0,S1=zg,bv=C1,Vg=A1,E1=hg,f1=0,up=S1.m,_1=8,I1=O(128,Wt);n:for(;yt(I1,0,7,bv,19);){if(En(up,1)){var yv=2+2*En(up,3);if((d1=2+En(up,yv))>Vg)break n}else d1=Vg;for(pg=0;pg<Vg&&d1--;){Mr(up);var F1=I1[0+(127&Ot(up))];hr(up,up.u+F1.g);var Lm=F1.value;if(16>Lm)E1[pg++]=Lm,Lm!=0&&(_1=Lm);else{var wv=Lm==16,M1=Lm-16,xv=zp[M1],L1=En(up,Uf[M1])+xv;if(pg+L1>Vg)break n;for(var Cv=wv?_1:0;0<L1--;)E1[pg++]=Cv}}f1=1;break n}f1||(S1.a=3),$g=f1}($g=$g&&!Ap.h)&&(u1=yt(hv,pv,8,hg,A1)),$g&&u1!=0?Zg=u1:(zg.a=3,Zg=0)}if(Zg==0)break r;if(m0&&Tg[Do]==1&&(m0=Ed[Os].g==0),$p+=Ed[Os].g,Os+=Zg,3>=Do){var mg,h1=Ju[0];for(mg=1;mg<hA;++mg)Ju[mg]>h1&&(h1=Ju[mg]);HA+=h1}}if(Rl.nd=m0,Rl.Qb=0,m0&&(Rl.qb=(_d[3][Qf[3]+0].value<<24|_d[1][Qf[1]+0].value<<16|_d[2][Qf[2]+0].value)>>>0,$p==0&&256>_d[0][Qf[0]+0].value&&(Rl.Qb=1,Rl.qb+=_d[0][Qf[0]+0].value<<8)),Rl.jc=!Rl.Qb&&6>HA,Rl.jc){var Wg,g0=Rl;for(Wg=0;Wg<s0;++Wg){var dp=Wg,fp=g0.pd[dp],Gg=g0.G[0][g0.H[0]+dp];256<=Gg.value?(fp.g=Gg.g+256,fp.value=Gg.value):(fp.g=0,fp.value=0,dp>>=Ss(Gg,8,fp),dp>>=Ss(g0.G[1][g0.H[1]+dp],16,fp),dp>>=Ss(g0.G[2][g0.H[2]+dp],0,fp),Ss(g0.G[3][g0.H[3]+dp],24,fp))}}}fA.vc=js,fA.Wb=ml,fA.Ya=Sd,fA.yc=Cd,_i=1;break t}_i=0}if(!($e=_i)){ge.a=3;break e}if(0<yr){if(dt.ua=1<<yr,!Ft(dt.Wa,yr)){ge.a=1,$e=0;break e}}else dt.ua=0;var p1=ge,k1=We,Bv=at,m1=p1.s,g1=m1.xc;if(p1.c=k1,p1.i=Bv,m1.md=Wn(k1,g1),m1.wc=g1==0?-1:(1<<g1)-1,Q){ge.xb=y1;break e}if((Kt=p(We*at))==null){ge.a=1,$e=0;break e}$e=($e=vu(ge,Kt,0,We,at,at,null))&&!At.h;break e}return $e?(Ke!=null?Ke[0]=Kt:(o(Kt==null),o(Q)),ge.$=0,Q||Ru(dt)):Ru(dt),$e}function Zh(h,B){var Q=h.c*h.i,ge=Q+B+16*B;return o(h.c<=B),h.V=p(ge),h.V==null?(h.Ta=null,h.Ua=0,h.a=1,0):(h.Ta=h.V,h.Ua=h.Ba+Q+B,1)}function Vh(h,B){var Q=h.C,ge=B-Q,Ke=h.V,$e=h.Ba+h.c*Q;for(o(B<=h.l.o);0<ge;){var We=16<ge?16:ge,at=h.l.ma,At=h.l.width,dt=At*We,Kt=at.ca,yr=at.tb+At*Q,wt=h.Ta,nr=h.Ua;Wd(h,We,Ke,$e),kg(wt,nr,Kt,yr,dt),gu(at,Q,Q+We,Kt,yr,At),ge-=We,Ke+=We*h.c,Q+=We}o(Q==B),h.C=h.Ma=B}function $0(){this.ub=this.yd=this.td=this.Rb=0}function Wh(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Fp(){this.Fb=this.Bb=this.Cb=0,this.Zb=p(4),this.Lb=p(4)}function Mp(){this.Yb=function(){var h=[];return function B(Q,ge,Ke){for(var $e=Ke[ge],We=0;We<$e&&(Q.push(Ke.length>ge+1?[]:0),!(Ke.length<ge+1));We++)B(Q[We],ge+1,Ke)}(h,0,[3,11]),h}()}function pm(){this.jb=p(3),this.Wc=_([4,8],Mp),this.Xc=_([4,17],Mp)}function mm(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new p(4),this.od=new p(4)}function YA(){this.ld=this.La=this.dd=this.tc=0}function Gh(){this.Na=this.la=0}function Lp(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function kp(){this.ad=p(384),this.Za=0,this.Ob=p(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Z0(){this.uc=this.M=this.Nb=0,this.wa=Array(new YA),this.Y=0,this.ya=Array(new kp),this.aa=0,this.l=new Qu}function V0(){this.y=p(16),this.f=p(8),this.ea=p(8)}function Dp(){this.cb=this.a=0,this.sc="",this.m=new qe,this.Od=new $0,this.Kc=new Wh,this.ed=new mm,this.Qa=new Fp,this.Ic=this.$c=this.Aa=0,this.D=new Z0,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=O(8,qe),this.ia=0,this.pb=O(4,Lp),this.Pa=new pm,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new V0),this.Hd=0,this.rb=Array(new Gh),this.sb=0,this.wa=Array(new YA),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new kp),this.L=this.aa=0,this.gd=_([4,2],YA),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Qu(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Xh(){var h=new Dp;return h!=null&&(h.a=0,h.sc="OK",h.cb=0,h.Xb=0,cp||(cp=kf)),h}function ec(h,B,Q){return h.a==0&&(h.a=B,h.sc=Q,h.cb=0),0}function W0(h,B,Q){return 3<=Q&&h[B+0]==157&&h[B+1]==1&&h[B+2]==42}function Op(h,B){if(h==null)return 0;if(h.a=0,h.sc="OK",B==null)return ec(h,2,"null VP8Io passed to VP8GetHeaders()");var Q=B.data,ge=B.w,Ke=B.ha;if(4>Ke)return ec(h,7,"Truncated header.");var $e=Q[ge+0]|Q[ge+1]<<8|Q[ge+2]<<16,We=h.Od;if(We.Rb=!(1&$e),We.td=$e>>1&7,We.yd=$e>>4&1,We.ub=$e>>5,3<We.td)return ec(h,3,"Incorrect keyframe parameters.");if(!We.yd)return ec(h,4,"Frame not displayable.");ge+=3,Ke-=3;var at=h.Kc;if(We.Rb){if(7>Ke)return ec(h,7,"cannot parse picture header");if(!W0(Q,ge,Ke))return ec(h,3,"Bad code word");at.c=16383&(Q[ge+4]<<8|Q[ge+3]),at.Td=Q[ge+4]>>6,at.i=16383&(Q[ge+6]<<8|Q[ge+5]),at.Ud=Q[ge+6]>>6,ge+=7,Ke-=7,h.za=at.c+15>>4,h.Ub=at.i+15>>4,B.width=at.c,B.height=at.i,B.Da=0,B.j=0,B.v=0,B.va=B.width,B.o=B.height,B.da=0,B.ib=B.width,B.hb=B.height,B.U=B.width,B.T=B.height,A(($e=h.Pa).jb,0,255,$e.jb.length),o(($e=h.Qa)!=null),$e.Cb=0,$e.Bb=0,$e.Fb=1,A($e.Zb,0,0,$e.Zb.length),A($e.Lb,0,0,$e.Lb)}if(We.ub>Ke)return ec(h,7,"bad partition length");Zr($e=h.m,Q,ge,We.ub),ge+=We.ub,Ke-=We.ub,We.Rb&&(at.Ld=Qr($e),at.Kd=Qr($e)),at=h.Qa;var At,dt=h.Pa;if(o($e!=null),o(at!=null),at.Cb=Qr($e),at.Cb){if(at.Bb=Qr($e),Qr($e)){for(at.Fb=Qr($e),At=0;4>At;++At)at.Zb[At]=Qr($e)?Or($e,7):0;for(At=0;4>At;++At)at.Lb[At]=Qr($e)?Or($e,6):0}if(at.Bb)for(At=0;3>At;++At)dt.jb[At]=Qr($e)?Jr($e,8):255}else at.Bb=0;if($e.Ka)return ec(h,3,"cannot parse segment header");if((at=h.ed).zd=Qr($e),at.Tb=Jr($e,6),at.wb=Jr($e,3),at.Pc=Qr($e),at.Pc&&Qr($e)){for(dt=0;4>dt;++dt)Qr($e)&&(at.vd[dt]=Or($e,6));for(dt=0;4>dt;++dt)Qr($e)&&(at.od[dt]=Or($e,6))}if(h.L=at.Tb==0?0:at.zd?1:2,$e.Ka)return ec(h,3,"cannot parse filter header");var Kt=Ke;if(Ke=At=ge,ge=At+Kt,at=Kt,h.Xb=(1<<Jr(h.m,2))-1,Kt<3*(dt=h.Xb))Q=7;else{for(At+=3*dt,at-=3*dt,Kt=0;Kt<dt;++Kt){var yr=Q[Ke+0]|Q[Ke+1]<<8|Q[Ke+2]<<16;yr>at&&(yr=at),Zr(h.Jc[+Kt],Q,At,yr),At+=yr,at-=yr,Ke+=3}Zr(h.Jc[+dt],Q,At,at),Q=At<ge?0:5}if(Q!=0)return ec(h,Q,"cannot parse partitions");for(Q=Jr(At=h.m,7),Ke=Qr(At)?Or(At,4):0,ge=Qr(At)?Or(At,4):0,at=Qr(At)?Or(At,4):0,dt=Qr(At)?Or(At,4):0,At=Qr(At)?Or(At,4):0,Kt=h.Qa,yr=0;4>yr;++yr){if(Kt.Cb){var wt=Kt.Zb[yr];Kt.Fb||(wt+=Q)}else{if(0<yr){h.pb[yr]=h.pb[0];continue}wt=Q}var nr=h.pb[yr];nr.Sc[0]=fg[hl(wt+Ke,127)],nr.Sc[1]=lp[hl(wt+0,127)],nr.Eb[0]=2*fg[hl(wt+ge,127)],nr.Eb[1]=101581*lp[hl(wt+at,127)]>>16,8>nr.Eb[1]&&(nr.Eb[1]=8),nr.Qc[0]=fg[hl(wt+dt,117)],nr.Qc[1]=lp[hl(wt+At,127)],nr.lc=wt+At}if(!We.Rb)return ec(h,4,"Not a key frame.");for(Qr($e),We=h.Pa,Q=0;4>Q;++Q){for(Ke=0;8>Ke;++Ke)for(ge=0;3>ge;++ge)for(at=0;11>at;++at)dt=gn($e,s1[Q][Ke][ge][at])?Jr($e,8):o1[Q][Ke][ge][at],We.Wc[Q][Ke].Yb[ge][at]=dt;for(Ke=0;17>Ke;++Ke)We.Xc[Q][Ke]=We.Wc[Q][l1[Ke]]}return h.kc=Qr($e),h.kc&&(h.Bd=Jr($e,8)),h.cb=1}function kf(h,B,Q,ge,Ke,$e,We){var at=B[Ke].Yb[Q];for(Q=0;16>Ke;++Ke){if(!gn(h,at[Q+0]))return Ke;for(;!gn(h,at[Q+1]);)if(at=B[++Ke].Yb[0],Q=0,Ke==16)return 16;var At=B[Ke+1].Yb;if(gn(h,at[Q+2])){var dt=h,Kt=0;if(gn(dt,(wt=at)[(yr=Q)+3]))if(gn(dt,wt[yr+6])){for(at=0,yr=2*(Kt=gn(dt,wt[yr+8]))+(wt=gn(dt,wt[yr+9+Kt])),Kt=0,wt=i1[yr];wt[at];++at)Kt+=Kt+gn(dt,wt[at]);Kt+=3+(8<<yr)}else gn(dt,wt[yr+7])?(Kt=7+2*gn(dt,165),Kt+=gn(dt,145)):Kt=5+gn(dt,159);else Kt=gn(dt,wt[yr+4])?3+gn(dt,wt[yr+5]):2;at=At[2]}else Kt=1,at=At[1];At=We+a1[Ke],0>(dt=h).b&&$r(dt);var yr,wt=dt.b,nr=(yr=dt.Ca>>1)-(dt.I>>wt)>>31;--dt.b,dt.Ca+=nr,dt.Ca|=1,dt.I-=(yr+1&nr)<<wt,$e[At]=((Kt^nr)-nr)*ge[(0<Ke)+0]}return 16}function ch(h){var B=h.rb[h.sb-1];B.la=0,B.Na=0,A(h.zc,0,0,h.zc.length),h.ja=0}function gd(h,B,Q,ge,Ke){Ke=h[B+Q+32*ge]+(Ke>>3),h[B+Q+32*ge]=-256&Ke?0>Ke?0:255:Ke}function vd(h,B,Q,ge,Ke,$e){gd(h,B,0,Q,ge+Ke),gd(h,B,1,Q,ge+$e),gd(h,B,2,Q,ge-$e),gd(h,B,3,Q,ge-Ke)}function gc(h){return(20091*h>>16)+h}function G0(h,B,Q,ge){var Ke,$e=0,We=p(16);for(Ke=0;4>Ke;++Ke){var at=h[B+0]+h[B+8],At=h[B+0]-h[B+8],dt=(35468*h[B+4]>>16)-gc(h[B+12]),Kt=gc(h[B+4])+(35468*h[B+12]>>16);We[$e+0]=at+Kt,We[$e+1]=At+dt,We[$e+2]=At-dt,We[$e+3]=at-Kt,$e+=4,B++}for(Ke=$e=0;4>Ke;++Ke)at=(h=We[$e+0]+4)+We[$e+8],At=h-We[$e+8],dt=(35468*We[$e+4]>>16)-gc(We[$e+12]),gd(Q,ge,0,0,at+(Kt=gc(We[$e+4])+(35468*We[$e+12]>>16))),gd(Q,ge,1,0,At+dt),gd(Q,ge,2,0,At-dt),gd(Q,ge,3,0,at-Kt),$e++,ge+=32}function tg(h,B,Q,ge){var Ke=h[B+0]+4,$e=35468*h[B+4]>>16,We=gc(h[B+4]),at=35468*h[B+1]>>16;vd(Q,ge,0,Ke+We,h=gc(h[B+1]),at),vd(Q,ge,1,Ke+$e,h,at),vd(Q,ge,2,Ke-$e,h,at),vd(Q,ge,3,Ke-We,h,at)}function X0(h,B,Q,ge,Ke){G0(h,B,Q,ge),Ke&&G0(h,B+16,Q,ge+4)}function rg(h,B,Q,ge){A0(h,B+0,Q,ge,1),A0(h,B+32,Q,ge+128,1)}function bd(h,B,Q,ge){var Ke;for(h=h[B+0]+4,Ke=0;4>Ke;++Ke)for(B=0;4>B;++B)gd(Q,ge,B,Ke,h)}function gm(h,B,Q,ge){h[B+0]&&qs(h,B+0,Q,ge),h[B+16]&&qs(h,B+16,Q,ge+4),h[B+32]&&qs(h,B+32,Q,ge+128),h[B+48]&&qs(h,B+48,Q,ge+128+4)}function vm(h,B,Q,ge){var Ke,$e=p(16);for(Ke=0;4>Ke;++Ke){var We=h[B+0+Ke]+h[B+12+Ke],at=h[B+4+Ke]+h[B+8+Ke],At=h[B+4+Ke]-h[B+8+Ke],dt=h[B+0+Ke]-h[B+12+Ke];$e[0+Ke]=We+at,$e[8+Ke]=We-at,$e[4+Ke]=dt+At,$e[12+Ke]=dt-At}for(Ke=0;4>Ke;++Ke)We=(h=$e[0+4*Ke]+3)+$e[3+4*Ke],at=$e[1+4*Ke]+$e[2+4*Ke],At=$e[1+4*Ke]-$e[2+4*Ke],dt=h-$e[3+4*Ke],Q[ge+0]=We+at>>3,Q[ge+16]=dt+At>>3,Q[ge+32]=We-at>>3,Q[ge+48]=dt-At>>3,ge+=64}function cA(h,B,Q){var ge,Ke=B-32,$e=wu,We=255-h[Ke-1];for(ge=0;ge<Q;++ge){var at,At=$e,dt=We+h[B-1];for(at=0;at<Q;++at)h[B+at]=At[dt+h[Ke+at]];B+=32}}function Es(h,B){cA(h,B,4)}function AA(h,B){cA(h,B,8)}function Tl(h,B){cA(h,B,16)}function J0(h,B){var Q;for(Q=0;16>Q;++Q)l(h,B+32*Q,h,B-32,16)}function Y0(h,B){var Q;for(Q=16;0<Q;--Q)A(h,B,h[B-1],16),B+=32}function Jd(h,B,Q){var ge;for(ge=0;16>ge;++ge)A(B,Q+32*ge,h,16)}function Ah(h,B){var Q,ge=16;for(Q=0;16>Q;++Q)ge+=h[B-1+32*Q]+h[B+Q-32];Jd(ge>>5,h,B)}function ng(h,B){var Q,ge=8;for(Q=0;16>Q;++Q)ge+=h[B-1+32*Q];Jd(ge>>4,h,B)}function Jh(h,B){var Q,ge=8;for(Q=0;16>Q;++Q)ge+=h[B+Q-32];Jd(ge>>4,h,B)}function q0(h,B){Jd(128,h,B)}function fo(h,B,Q){return h+2*B+Q+2>>2}function ig(h,B){var Q,ge=B-32;for(ge=new Uint8Array([fo(h[ge-1],h[ge+0],h[ge+1]),fo(h[ge+0],h[ge+1],h[ge+2]),fo(h[ge+1],h[ge+2],h[ge+3]),fo(h[ge+2],h[ge+3],h[ge+4])]),Q=0;4>Q;++Q)l(h,B+32*Q,ge,0,ge.length)}function ag(h,B){var Q=h[B-1],ge=h[B-1+32],Ke=h[B-1+64],$e=h[B-1+96];Rn(h,B+0,16843009*fo(h[B-1-32],Q,ge)),Rn(h,B+32,16843009*fo(Q,ge,Ke)),Rn(h,B+64,16843009*fo(ge,Ke,$e)),Rn(h,B+96,16843009*fo(Ke,$e,$e))}function og(h,B){var Q,ge=4;for(Q=0;4>Q;++Q)ge+=h[B+Q-32]+h[B-1+32*Q];for(ge>>=3,Q=0;4>Q;++Q)A(h,B+32*Q,ge,4)}function sg(h,B){var Q=h[B-1+0],ge=h[B-1+32],Ke=h[B-1+64],$e=h[B-1-32],We=h[B+0-32],at=h[B+1-32],At=h[B+2-32],dt=h[B+3-32];h[B+0+96]=fo(ge,Ke,h[B-1+96]),h[B+1+96]=h[B+0+64]=fo(Q,ge,Ke),h[B+2+96]=h[B+1+64]=h[B+0+32]=fo($e,Q,ge),h[B+3+96]=h[B+2+64]=h[B+1+32]=h[B+0+0]=fo(We,$e,Q),h[B+3+64]=h[B+2+32]=h[B+1+0]=fo(at,We,$e),h[B+3+32]=h[B+2+0]=fo(At,at,We),h[B+3+0]=fo(dt,At,at)}function yd(h,B){var Q=h[B+1-32],ge=h[B+2-32],Ke=h[B+3-32],$e=h[B+4-32],We=h[B+5-32],at=h[B+6-32],At=h[B+7-32];h[B+0+0]=fo(h[B+0-32],Q,ge),h[B+1+0]=h[B+0+32]=fo(Q,ge,Ke),h[B+2+0]=h[B+1+32]=h[B+0+64]=fo(ge,Ke,$e),h[B+3+0]=h[B+2+32]=h[B+1+64]=h[B+0+96]=fo(Ke,$e,We),h[B+3+32]=h[B+2+64]=h[B+1+96]=fo($e,We,at),h[B+3+64]=h[B+2+96]=fo(We,at,At),h[B+3+96]=fo(at,At,At)}function wd(h,B){var Q=h[B-1+0],ge=h[B-1+32],Ke=h[B-1+64],$e=h[B-1-32],We=h[B+0-32],at=h[B+1-32],At=h[B+2-32],dt=h[B+3-32];h[B+0+0]=h[B+1+64]=$e+We+1>>1,h[B+1+0]=h[B+2+64]=We+at+1>>1,h[B+2+0]=h[B+3+64]=at+At+1>>1,h[B+3+0]=At+dt+1>>1,h[B+0+96]=fo(Ke,ge,Q),h[B+0+64]=fo(ge,Q,$e),h[B+0+32]=h[B+1+96]=fo(Q,$e,We),h[B+1+32]=h[B+2+96]=fo($e,We,at),h[B+2+32]=h[B+3+96]=fo(We,at,At),h[B+3+32]=fo(at,At,dt)}function lg(h,B){var Q=h[B+0-32],ge=h[B+1-32],Ke=h[B+2-32],$e=h[B+3-32],We=h[B+4-32],at=h[B+5-32],At=h[B+6-32],dt=h[B+7-32];h[B+0+0]=Q+ge+1>>1,h[B+1+0]=h[B+0+64]=ge+Ke+1>>1,h[B+2+0]=h[B+1+64]=Ke+$e+1>>1,h[B+3+0]=h[B+2+64]=$e+We+1>>1,h[B+0+32]=fo(Q,ge,Ke),h[B+1+32]=h[B+0+96]=fo(ge,Ke,$e),h[B+2+32]=h[B+1+96]=fo(Ke,$e,We),h[B+3+32]=h[B+2+96]=fo($e,We,at),h[B+3+64]=fo(We,at,At),h[B+3+96]=fo(at,At,dt)}function Np(h,B){var Q=h[B-1+0],ge=h[B-1+32],Ke=h[B-1+64],$e=h[B-1+96];h[B+0+0]=Q+ge+1>>1,h[B+2+0]=h[B+0+32]=ge+Ke+1>>1,h[B+2+32]=h[B+0+64]=Ke+$e+1>>1,h[B+1+0]=fo(Q,ge,Ke),h[B+3+0]=h[B+1+32]=fo(ge,Ke,$e),h[B+3+32]=h[B+1+64]=fo(Ke,$e,$e),h[B+3+64]=h[B+2+64]=h[B+0+96]=h[B+1+96]=h[B+2+96]=h[B+3+96]=$e}function ep(h,B){var Q=h[B-1+0],ge=h[B-1+32],Ke=h[B-1+64],$e=h[B-1+96],We=h[B-1-32],at=h[B+0-32],At=h[B+1-32],dt=h[B+2-32];h[B+0+0]=h[B+2+32]=Q+We+1>>1,h[B+0+32]=h[B+2+64]=ge+Q+1>>1,h[B+0+64]=h[B+2+96]=Ke+ge+1>>1,h[B+0+96]=$e+Ke+1>>1,h[B+3+0]=fo(at,At,dt),h[B+2+0]=fo(We,at,At),h[B+1+0]=h[B+3+32]=fo(Q,We,at),h[B+1+32]=h[B+3+64]=fo(ge,Q,We),h[B+1+64]=h[B+3+96]=fo(Ke,ge,Q),h[B+1+96]=fo($e,Ke,ge)}function uh(h,B){var Q;for(Q=0;8>Q;++Q)l(h,B+32*Q,h,B-32,8)}function Yh(h,B){var Q;for(Q=0;8>Q;++Q)A(h,B,h[B-1],8),B+=32}function tp(h,B,Q){var ge;for(ge=0;8>ge;++ge)A(B,Q+32*ge,h,8)}function qh(h,B){var Q,ge=8;for(Q=0;8>Q;++Q)ge+=h[B+Q-32]+h[B-1+32*Q];tp(ge>>4,h,B)}function bm(h,B){var Q,ge=4;for(Q=0;8>Q;++Q)ge+=h[B+Q-32];tp(ge>>3,h,B)}function e0(h,B){var Q,ge=4;for(Q=0;8>Q;++Q)ge+=h[B-1+32*Q];tp(ge>>3,h,B)}function Pp(h,B){tp(128,h,B)}function t0(h,B,Q){var ge=h[B-Q],Ke=h[B+0],$e=3*(Ke-ge)+d0[1020+h[B-2*Q]-h[B+Q]],We=Im[112+($e+4>>3)];h[B-Q]=wu[255+ge+Im[112+($e+3>>3)]],h[B+0]=wu[255+Ke-We]}function r0(h,B,Q,ge){var Ke=h[B+0],$e=h[B+Q];return bc[255+h[B-2*Q]-h[B-Q]]>ge||bc[255+$e-Ke]>ge}function Yd(h,B,Q,ge){return 4*bc[255+h[B-Q]-h[B+0]]+bc[255+h[B-2*Q]-h[B+Q]]<=ge}function RA(h,B,Q,ge,Ke){var $e=h[B-3*Q],We=h[B-2*Q],at=h[B-Q],At=h[B+0],dt=h[B+Q],Kt=h[B+2*Q],yr=h[B+3*Q];return 4*bc[255+at-At]+bc[255+We-dt]>ge?0:bc[255+h[B-4*Q]-$e]<=Ke&&bc[255+$e-We]<=Ke&&bc[255+We-at]<=Ke&&bc[255+yr-Kt]<=Ke&&bc[255+Kt-dt]<=Ke&&bc[255+dt-At]<=Ke}function n0(h,B,Q,ge){var Ke=2*ge+1;for(ge=0;16>ge;++ge)Yd(h,B+ge,Q,Ke)&&t0(h,B+ge,Q)}function Df(h,B,Q,ge){var Ke=2*ge+1;for(ge=0;16>ge;++ge)Yd(h,B+ge*Q,1,Ke)&&t0(h,B+ge*Q,1)}function Tp(h,B,Q,ge){var Ke;for(Ke=3;0<Ke;--Ke)n0(h,B+=4*Q,Q,ge)}function rp(h,B,Q,ge){var Ke;for(Ke=3;0<Ke;--Ke)Df(h,B+=4,Q,ge)}function qd(h,B,Q,ge,Ke,$e,We,at){for($e=2*$e+1;0<Ke--;){if(RA(h,B,Q,$e,We))if(r0(h,B,Q,at))t0(h,B,Q);else{var At=h,dt=B,Kt=Q,yr=At[dt-2*Kt],wt=At[dt-Kt],nr=At[dt+0],vr=At[dt+Kt],Xr=At[dt+2*Kt],Sr=27*(bn=d0[1020+3*(nr-wt)+d0[1020+yr-vr]])+63>>7,An=18*bn+63>>7,bn=9*bn+63>>7;At[dt-3*Kt]=wu[255+At[dt-3*Kt]+bn],At[dt-2*Kt]=wu[255+yr+An],At[dt-Kt]=wu[255+wt+Sr],At[dt+0]=wu[255+nr-Sr],At[dt+Kt]=wu[255+vr-An],At[dt+2*Kt]=wu[255+Xr-bn]}B+=ge}}function ef(h,B,Q,ge,Ke,$e,We,at){for($e=2*$e+1;0<Ke--;){if(RA(h,B,Q,$e,We))if(r0(h,B,Q,at))t0(h,B,Q);else{var At=h,dt=B,Kt=Q,yr=At[dt-Kt],wt=At[dt+0],nr=At[dt+Kt],vr=Im[112+(4+(Xr=3*(wt-yr))>>3)],Xr=Im[112+(Xr+3>>3)],Sr=vr+1>>1;At[dt-2*Kt]=wu[255+At[dt-2*Kt]+Sr],At[dt-Kt]=wu[255+yr+Xr],At[dt+0]=wu[255+wt-vr],At[dt+Kt]=wu[255+nr-Sr]}B+=ge}}function ym(h,B,Q,ge,Ke,$e){qd(h,B,Q,1,16,ge,Ke,$e)}function Of(h,B,Q,ge,Ke,$e){qd(h,B,1,Q,16,ge,Ke,$e)}function dh(h,B,Q,ge,Ke,$e){var We;for(We=3;0<We;--We)ef(h,B+=4*Q,Q,1,16,ge,Ke,$e)}function Up(h,B,Q,ge,Ke,$e){var We;for(We=3;0<We;--We)ef(h,B+=4,1,Q,16,ge,Ke,$e)}function $(h,B,Q,ge,Ke,$e,We,at){qd(h,B,Ke,1,8,$e,We,at),qd(Q,ge,Ke,1,8,$e,We,at)}function He(h,B,Q,ge,Ke,$e,We,at){qd(h,B,1,Ke,8,$e,We,at),qd(Q,ge,1,Ke,8,$e,We,at)}function St(h,B,Q,ge,Ke,$e,We,at){ef(h,B+4*Ke,Ke,1,8,$e,We,at),ef(Q,ge+4*Ke,Ke,1,8,$e,We,at)}function Zt(h,B,Q,ge,Ke,$e,We,at){ef(h,B+4,1,Ke,8,$e,We,at),ef(Q,ge+4,1,Ke,8,$e,We,at)}function br(){this.ba=new is,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new Hs,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function hn(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function Fn(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ia(){this.ua=0,this.Wa=new Eo,this.vb=new Eo,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Tr,this.yc=new Wt}function ha(){this.xb=this.a=0,this.l=new Qu,this.ca=new is,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new _t,this.Pb=0,this.wd=new _t,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ia,this.ab=0,this.gc=O(4,Fn),this.Oc=0}function Ga(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Qu,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ro(h,B,Q,ge,Ke,$e,We){for(h=h==null?0:h[B+0],B=0;B<We;++B)Ke[$e+B]=h+Q[ge+B]&255,h=Ke[$e+B]}function da(h,B,Q,ge,Ke,$e,We){var at;if(h==null)ro(null,null,Q,ge,Ke,$e,We);else for(at=0;at<We;++at)Ke[$e+at]=h[B+at]+Q[ge+at]&255}function tc(h,B,Q,ge,Ke,$e,We){if(h==null)ro(null,null,Q,ge,Ke,$e,We);else{var at,At=h[B+0],dt=At,Kt=At;for(at=0;at<We;++at)dt=Kt+(At=h[B+at])-dt,Kt=Q[ge+at]+(-256&dt?0>dt?0:255:dt)&255,dt=At,Ke[$e+at]=Kt}}function Ic(h,B,Q,ge){var Ke=B.width,$e=B.o;if(o(h!=null&&B!=null),0>Q||0>=ge||Q+ge>$e)return null;if(!h.Cc){if(h.ga==null){var We;if(h.ga=new Ga,(We=h.ga==null)||(We=B.width*B.o,o(h.Gb.length==0),h.Gb=p(We),h.Uc=0,h.Gb==null?We=0:(h.mb=h.Gb,h.nb=h.Uc,h.rc=null,We=1),We=!We),!We){We=h.ga;var at=h.Fa,At=h.P,dt=h.qc,Kt=h.mb,yr=h.nb,wt=At+1,nr=dt-1,vr=We.l;if(o(at!=null&&Kt!=null&&B!=null),yh[0]=null,yh[1]=ro,yh[2]=da,yh[3]=tc,We.ca=Kt,We.tb=yr,We.c=B.width,We.i=B.height,o(0<We.c&&0<We.i),1>=dt)B=0;else if(We.$a=3&at[At+0],We.Z=at[At+0]>>2&3,We.Lc=at[At+0]>>4&3,At=at[At+0]>>6&3,0>We.$a||1<We.$a||4<=We.Z||1<We.Lc||At)B=0;else if(vr.put=Ka,vr.ac=Vd,vr.bc=Mf,vr.ma=We,vr.width=B.width,vr.height=B.height,vr.Da=B.Da,vr.v=B.v,vr.va=B.va,vr.j=B.j,vr.o=B.o,We.$a)e:{o(We.$a==1),B=$h();t:for(;;){if(B==null){B=0;break e}if(o(We!=null),We.mc=B,B.c=We.c,B.i=We.i,B.l=We.l,B.l.ma=We,B.l.width=We.c,B.l.height=We.i,B.a=0,Gr(B.m,at,wt,nr),!Xd(We.c,We.i,1,B,null)||(B.ab==1&&B.gc[0].hc==3&&Uu(B.s)?(We.ic=1,at=B.c*B.i,B.Ta=null,B.Ua=0,B.V=p(at),B.Ba=0,B.V==null?(B.a=1,B=0):B=1):(We.ic=0,B=Zh(B,We.c)),!B))break t;B=1;break e}We.mc=null,B=0}else B=nr>=We.c*We.i;We=!B}if(We)return null;h.ga.Lc!=1?h.Ga=0:ge=$e-Q}o(h.ga!=null),o(Q+ge<=$e);e:{if(B=(at=h.ga).c,$e=at.l.o,at.$a==0){if(wt=h.rc,nr=h.Vc,vr=h.Fa,At=h.P+1+Q*B,dt=h.mb,Kt=h.nb+Q*B,o(At<=h.P+h.qc),at.Z!=0)for(o(yh[at.Z]!=null),We=0;We<ge;++We)yh[at.Z](wt,nr,vr,At,dt,Kt,B),wt=dt,nr=Kt,Kt+=B,At+=B;else for(We=0;We<ge;++We)l(dt,Kt,vr,At,B),wt=dt,nr=Kt,Kt+=B,At+=B;h.rc=wt,h.Vc=nr}else{if(o(at.mc!=null),B=Q+ge,o((We=at.mc)!=null),o(B<=We.i),We.C>=B)B=1;else if(at.ic||Ku(),at.ic){at=We.V,wt=We.Ba,nr=We.c;var Xr=We.i,Sr=(vr=1,At=We.$/nr,dt=We.$%nr,Kt=We.m,yr=We.s,We.$),An=nr*Xr,bn=nr*B,Zn=yr.wc,Dn=Sr<bn?dl(yr,dt,At):null;o(Sr<=An),o(B<=Xr),o(Uu(yr));t:for(;;){for(;!Kt.h&&Sr<bn;){if(dt&Zn||(Dn=dl(yr,dt,At)),o(Dn!=null),Mr(Kt),256>(Xr=lc(Dn.G[0],Dn.H[0],Kt)))at[wt+Sr]=Xr,++Sr,++dt>=nr&&(dt=0,++At<=B&&!(At%16)&&lA(We,At));else{if(!(280>Xr)){vr=0;break t}Xr=pu(Xr-256,Kt);var Ea,oa=lc(Dn.G[4],Dn.H[4],Kt);if(Mr(Kt),!(Sr>=(oa=mu(nr,oa=pu(oa,Kt)))&&An-Sr>=Xr)){vr=0;break t}for(Ea=0;Ea<Xr;++Ea)at[wt+Sr+Ea]=at[wt+Sr+Ea-oa];for(Sr+=Xr,dt+=Xr;dt>=nr;)dt-=nr,++At<=B&&!(At%16)&&lA(We,At);Sr<bn&&dt&Zn&&(Dn=dl(yr,dt,At))}o(Kt.h==Jt(Kt))}lA(We,At>B?B:At);break t}!vr||Kt.h&&Sr<An?(vr=0,We.a=Kt.h?5:3):We.$=Sr,B=vr}else B=vu(We,We.V,We.Ba,We.c,We.i,B,Vh);if(!B){ge=0;break e}}Q+ge>=$e&&(h.Cc=1),ge=1}if(!ge)return null;if(h.Cc&&((ge=h.ga)!=null&&(ge.mc=null),h.ga=null,0<h.Ga))return alert("todo:WebPDequantizeLevels"),null}return h.nb+Q*Ke}function wl(h,B,Q,ge,Ke,$e){for(;0<Ke--;){var We,at=h,At=B+(Q?1:0),dt=h,Kt=B+(Q?0:3);for(We=0;We<ge;++We){var yr=dt[Kt+4*We];yr!=255&&(yr*=32897,at[At+4*We+0]=at[At+4*We+0]*yr>>23,at[At+4*We+1]=at[At+4*We+1]*yr>>23,at[At+4*We+2]=at[At+4*We+2]*yr>>23)}B+=$e}}function fl(h,B,Q,ge,Ke){for(;0<ge--;){var $e;for($e=0;$e<Q;++$e){var We=h[B+2*$e+0],at=15&(dt=h[B+2*$e+1]),At=4369*at,dt=(240&dt|dt>>4)*At>>16;h[B+2*$e+0]=(240&We|We>>4)*At>>16&240|(15&We|We<<4)*At>>16>>4&15,h[B+2*$e+1]=240&dt|at}B+=Ke}}function Fc(h,B,Q,ge,Ke,$e,We,at){var At,dt,Kt=255;for(dt=0;dt<Ke;++dt){for(At=0;At<ge;++At){var yr=h[B+At];$e[We+4*At]=yr,Kt&=yr}B+=Q,We+=at}return Kt!=255}function uA(h,B,Q,ge,Ke){var $e;for($e=0;$e<Ke;++$e)Q[ge+$e]=h[B+$e]>>8}function Ku(){Hp=wl,Lg=fl,cg=Fc,kg=uA}function qA(h,B,Q){Mt[h]=function(ge,Ke,$e,We,at,At,dt,Kt,yr,wt,nr,vr,Xr,Sr,An,bn,Zn){var Dn,Ea=Zn-1>>1,oa=at[At+0]|dt[Kt+0]<<16,Ko=yr[wt+0]|nr[vr+0]<<16;o(ge!=null);var va=3*oa+Ko+131074>>2;for(B(ge[Ke+0],255&va,va>>16,Xr,Sr),$e!=null&&(va=3*Ko+oa+131074>>2,B($e[We+0],255&va,va>>16,An,bn)),Dn=1;Dn<=Ea;++Dn){var _s=at[At+Dn]|dt[Kt+Dn]<<16,dA=yr[wt+Dn]|nr[vr+Dn]<<16,Ho=oa+_s+Ko+dA+524296,ba=Ho+2*(_s+Ko)>>3;va=ba+oa>>1,oa=(Ho=Ho+2*(oa+dA)>>3)+_s>>1,B(ge[Ke+2*Dn-1],255&va,va>>16,Xr,Sr+(2*Dn-1)*Q),B(ge[Ke+2*Dn-0],255&oa,oa>>16,Xr,Sr+(2*Dn-0)*Q),$e!=null&&(va=Ho+Ko>>1,oa=ba+dA>>1,B($e[We+2*Dn-1],255&va,va>>16,An,bn+(2*Dn-1)*Q),B($e[We+2*Dn+0],255&oa,oa>>16,An,bn+(2*Dn+0)*Q)),oa=_s,Ko=dA}1&Zn||(va=3*oa+Ko+131074>>2,B(ge[Ke+Zn-1],255&va,va>>16,Xr,Sr+(Zn-1)*Q),$e!=null&&(va=3*Ko+oa+131074>>2,B($e[We+Zn-1],255&va,va>>16,An,bn+(Zn-1)*Q)))}}function Ro(){Gu[Fm]=w1,Gu[Mm]=t,Gu[Pg]=e,Gu[jp]=r,Gu[sp]=i,Gu[ug]=s,Gu[Qo]=c,Gu[dg]=t,Gu[sf]=r,Gu[cc]=i,Gu[f0]=s}function Hu(h){return h&~Pe?0>h?0:255:h>>ce}function ju(h,B){return Hu((19077*h>>8)+(26149*B>>8)-14234)}function tf(h,B,Q){return Hu((19077*h>>8)-(6419*B>>8)-(13320*Q>>8)+8708)}function zu(h,B){return Hu((19077*h>>8)+(33050*B>>8)-17685)}function Nf(h,B,Q,ge,Ke){ge[Ke+0]=ju(h,Q),ge[Ke+1]=tf(h,B,Q),ge[Ke+2]=zu(h,B)}function i0(h,B,Q,ge,Ke){ge[Ke+0]=zu(h,B),ge[Ke+1]=tf(h,B,Q),ge[Ke+2]=ju(h,Q)}function Mc(h,B,Q,ge,Ke){var $e=tf(h,B,Q);B=$e<<3&224|zu(h,B)>>3,ge[Ke+0]=248&ju(h,Q)|$e>>5,ge[Ke+1]=B}function a0(h,B,Q,ge,Ke){var $e=240&zu(h,B)|15;ge[Ke+0]=240&ju(h,Q)|tf(h,B,Q)>>4,ge[Ke+1]=$e}function fh(h,B,Q,ge,Ke){ge[Ke+0]=255,Nf(h,B,Q,ge,Ke+1)}function Rp(h,B,Q,ge,Ke){i0(h,B,Q,ge,Ke),ge[Ke+3]=255}function no(h,B,Q,ge,Ke){Nf(h,B,Q,ge,Ke),ge[Ke+3]=255}function hl(h,B){return 0>h?0:h>B?B:h}function bu(h,B,Q){Mt[h]=function(ge,Ke,$e,We,at,At,dt,Kt,yr){for(var wt=Kt+(-2&yr)*Q;Kt!=wt;)B(ge[Ke+0],$e[We+0],at[At+0],dt,Kt),B(ge[Ke+1],$e[We+0],at[At+0],dt,Kt+Q),Ke+=2,++We,++At,Kt+=2*Q;1&yr&&B(ge[Ke+0],$e[We+0],at[At+0],dt,Kt)}}function rf(h,B,Q){return Q==0?h==0?B==0?6:5:B==0?4:0:Q}function wm(h,B,Q,ge,Ke){switch(h>>>30){case 3:A0(B,Q,ge,Ke,0);break;case 2:Vu(B,Q,ge,Ke);break;case 1:qs(B,Q,ge,Ke)}}function hs(h,B){var Q,ge,Ke=B.M,$e=B.Nb,We=h.oc,at=h.pc+40,At=h.oc,dt=h.pc+584,Kt=h.oc,yr=h.pc+600;for(Q=0;16>Q;++Q)We[at+32*Q-1]=129;for(Q=0;8>Q;++Q)At[dt+32*Q-1]=129,Kt[yr+32*Q-1]=129;for(0<Ke?We[at-1-32]=At[dt-1-32]=Kt[yr-1-32]=129:(A(We,at-32-1,127,21),A(At,dt-32-1,127,9),A(Kt,yr-32-1,127,9)),ge=0;ge<h.za;++ge){var wt=B.ya[B.aa+ge];if(0<ge){for(Q=-1;16>Q;++Q)l(We,at+32*Q-4,We,at+32*Q+12,4);for(Q=-1;8>Q;++Q)l(At,dt+32*Q-4,At,dt+32*Q+4,4),l(Kt,yr+32*Q-4,Kt,yr+32*Q+4,4)}var nr=h.Gd,vr=h.Hd+ge,Xr=wt.ad,Sr=wt.Hc;if(0<Ke&&(l(We,at-32,nr[vr].y,0,16),l(At,dt-32,nr[vr].f,0,8),l(Kt,yr-32,nr[vr].ea,0,8)),wt.Za){var An=We,bn=at-32+16;for(0<Ke&&(ge>=h.za-1?A(An,bn,nr[vr].y[15],4):l(An,bn,nr[vr+1].y,0,4)),Q=0;4>Q;Q++)An[bn+128+Q]=An[bn+256+Q]=An[bn+384+Q]=An[bn+0+Q];for(Q=0;16>Q;++Q,Sr<<=2)An=We,bn=at+kn[Q],xd[wt.Ob[Q]](An,bn),wm(Sr,Xr,16*+Q,An,bn)}else if(An=rf(ge,Ke,wt.Ob[0]),bh[An](We,at),Sr!=0)for(Q=0;16>Q;++Q,Sr<<=2)wm(Sr,Xr,16*+Q,We,at+kn[Q]);for(Q=wt.Gc,An=rf(ge,Ke,wt.Dd),OA[An](At,dt),OA[An](Kt,yr),Sr=Xr,An=At,bn=dt,255&(wt=0|Q)&&(170&wt?of(Sr,256,An,bn):pl(Sr,256,An,bn)),wt=Kt,Sr=yr,255&(Q>>=8)&&(170&Q?of(Xr,320,wt,Sr):pl(Xr,320,wt,Sr)),Ke<h.Ub-1&&(l(nr[vr].y,0,We,at+480,16),l(nr[vr].f,0,At,dt+224,8),l(nr[vr].ea,0,Kt,yr+224,8)),Q=8*$e*h.B,nr=h.sa,vr=h.ta+16*ge+16*$e*h.R,Xr=h.qa,wt=h.ra+8*ge+Q,Sr=h.Ha,An=h.Ia+8*ge+Q,Q=0;16>Q;++Q)l(nr,vr+Q*h.R,We,at+32*Q,16);for(Q=0;8>Q;++Q)l(Xr,wt+Q*h.B,At,dt+32*Q,8),l(Sr,An+Q*h.B,Kt,yr+32*Q,8)}}function o0(h,B,Q,ge,Ke,$e,We,at,At){var dt=[0],Kt=[0],yr=0,wt=At!=null?At.kd:0,nr=At!=null?At:new hn;if(h==null||12>Q)return 7;nr.data=h,nr.w=B,nr.ha=Q,B=[B],Q=[Q],nr.gb=[nr.gb];e:{var vr=B,Xr=Q,Sr=nr.gb;if(o(h!=null),o(Xr!=null),o(Sr!=null),Sr[0]=0,12<=Xr[0]&&!a(h,vr[0],"RIFF")){if(a(h,vr[0]+8,"WEBP")){Sr=3;break e}var An=sn(h,vr[0]+4);if(12>An||4294967286<An){Sr=3;break e}if(wt&&An>Xr[0]-8){Sr=7;break e}Sr[0]=An,vr[0]+=12,Xr[0]-=12}Sr=0}if(Sr!=0)return Sr;for(An=0<nr.gb[0],Q=Q[0];;){e:{var bn=h;Xr=B,Sr=Q;var Zn=dt,Dn=Kt,Ea=vr=[0];if((va=yr=[yr])[0]=0,8>Sr[0])Sr=7;else{if(!a(bn,Xr[0],"VP8X")){if(sn(bn,Xr[0]+4)!=10){Sr=3;break e}if(18>Sr[0]){Sr=7;break e}var oa=sn(bn,Xr[0]+8),Ko=1+Ei(bn,Xr[0]+12);if(2147483648<=Ko*(bn=1+Ei(bn,Xr[0]+15))){Sr=3;break e}Ea!=null&&(Ea[0]=oa),Zn!=null&&(Zn[0]=Ko),Dn!=null&&(Dn[0]=bn),Xr[0]+=18,Sr[0]-=18,va[0]=1}Sr=0}}if(yr=yr[0],vr=vr[0],Sr!=0)return Sr;if(Xr=!!(2&vr),!An&&yr)return 3;if($e!=null&&($e[0]=!!(16&vr)),We!=null&&(We[0]=Xr),at!=null&&(at[0]=0),We=dt[0],vr=Kt[0],yr&&Xr&&At==null){Sr=0;break}if(4>Q){Sr=7;break}if(An&&yr||!An&&!yr&&!a(h,B[0],"ALPH")){Q=[Q],nr.na=[nr.na],nr.P=[nr.P],nr.Sa=[nr.Sa];e:{oa=h,Sr=B,An=Q;var va=nr.gb;Zn=nr.na,Dn=nr.P,Ea=nr.Sa,Ko=22,o(oa!=null),o(An!=null),bn=Sr[0];var _s=An[0];for(o(Zn!=null),o(Ea!=null),Zn[0]=null,Dn[0]=null,Ea[0]=0;;){if(Sr[0]=bn,An[0]=_s,8>_s){Sr=7;break e}var dA=sn(oa,bn+4);if(4294967286<dA){Sr=3;break e}var Ho=8+dA+1&-2;if(Ko+=Ho,0<va&&Ko>va){Sr=3;break e}if(!a(oa,bn,"VP8 ")||!a(oa,bn,"VP8L")){Sr=0;break e}if(_s[0]<Ho){Sr=7;break e}a(oa,bn,"ALPH")||(Zn[0]=oa,Dn[0]=bn+8,Ea[0]=dA),bn+=Ho,_s-=Ho}}if(Q=Q[0],nr.na=nr.na[0],nr.P=nr.P[0],nr.Sa=nr.Sa[0],Sr!=0)break}Q=[Q],nr.Ja=[nr.Ja],nr.xa=[nr.xa];e:if(va=h,Sr=B,An=Q,Zn=nr.gb[0],Dn=nr.Ja,Ea=nr.xa,oa=Sr[0],bn=!a(va,oa,"VP8 "),Ko=!a(va,oa,"VP8L"),o(va!=null),o(An!=null),o(Dn!=null),o(Ea!=null),8>An[0])Sr=7;else{if(bn||Ko){if(va=sn(va,oa+4),12<=Zn&&va>Zn-12){Sr=3;break e}if(wt&&va>An[0]-8){Sr=7;break e}Dn[0]=va,Sr[0]+=8,An[0]-=8,Ea[0]=Ko}else Ea[0]=5<=An[0]&&va[oa+0]==47&&!(va[oa+4]>>5),Dn[0]=An[0];Sr=0}if(Q=Q[0],nr.Ja=nr.Ja[0],nr.xa=nr.xa[0],B=B[0],Sr!=0)break;if(4294967286<nr.Ja)return 3;if(at==null||Xr||(at[0]=nr.xa?2:1),We=[We],vr=[vr],nr.xa){if(5>Q){Sr=7;break}at=We,wt=vr,Xr=$e,h==null||5>Q?h=0:5<=Q&&h[B+0]==47&&!(h[B+4]>>5)?(An=[0],va=[0],Zn=[0],Gr(Dn=new _t,h,B,Q),Lf(Dn,An,va,Zn)?(at!=null&&(at[0]=An[0]),wt!=null&&(wt[0]=va[0]),Xr!=null&&(Xr[0]=Zn[0]),h=1):h=0):h=0}else{if(10>Q){Sr=7;break}at=vr,h==null||10>Q||!W0(h,B+3,Q-3)?h=0:(wt=h[B+0]|h[B+1]<<8|h[B+2]<<16,Xr=16383&(h[B+7]<<8|h[B+6]),h=16383&(h[B+9]<<8|h[B+8]),1&wt||3<(wt>>1&7)||!(wt>>4&1)||wt>>5>=nr.Ja||!Xr||!h?h=0:(We&&(We[0]=Xr),at&&(at[0]=h),h=1))}if(!h||(We=We[0],vr=vr[0],yr&&(dt[0]!=We||Kt[0]!=vr)))return 3;At!=null&&(At[0]=nr,At.offset=B-At.w,o(4294967286>B-At.w),o(At.offset==At.ha-Q));break}return Sr==0||Sr==7&&yr&&At==null?($e!=null&&($e[0]|=nr.na!=null&&0<nr.na.length),ge!=null&&(ge[0]=We),Ke!=null&&(Ke[0]=vr),0):Sr}function Ul(h,B,Q){var ge=B.width,Ke=B.height,$e=0,We=0,at=ge,At=Ke;if(B.Da=h!=null&&0<h.Da,B.Da&&(at=h.cd,At=h.bd,$e=h.v,We=h.j,11>Q||($e&=-2,We&=-2),0>$e||0>We||0>=at||0>=At||$e+at>ge||We+At>Ke))return 0;if(B.v=$e,B.j=We,B.va=$e+at,B.o=We+At,B.U=at,B.T=At,B.da=h!=null&&0<h.da,B.da){if(!Ta(at,At,Q=[h.ib],$e=[h.hb]))return 0;B.ib=Q[0],B.hb=$e[0]}return B.ob=h!=null&&h.ob,B.Kb=h==null||!h.Sd,B.da&&(B.ob=B.ib<3*ge/4&&B.hb<3*Ke/4,B.Kb=0),1}function xm(h){if(h==null)return 2;if(11>h.S){var B=h.f.RGBA;B.fb+=(h.height-1)*B.A,B.A=-B.A}else B=h.f.kb,h=h.height,B.O+=(h-1)*B.fa,B.fa=-B.fa,B.N+=(h-1>>1)*B.Ab,B.Ab=-B.Ab,B.W+=(h-1>>1)*B.Db,B.Db=-B.Db,B.F!=null&&(B.J+=(h-1)*B.lb,B.lb=-B.lb);return 0}function hh(h,B,Q,ge){if(ge==null||0>=h||0>=B)return 2;if(Q!=null){if(Q.Da){var Ke=Q.cd,$e=Q.bd,We=-2&Q.v,at=-2&Q.j;if(0>We||0>at||0>=Ke||0>=$e||We+Ke>h||at+$e>B)return 2;h=Ke,B=$e}if(Q.da){if(!Ta(h,B,Ke=[Q.ib],$e=[Q.hb]))return 2;h=Ke[0],B=$e[0]}}ge.width=h,ge.height=B;e:{var At=ge.width,dt=ge.height;if(h=ge.S,0>=At||0>=dt||!(h>=Fm&&13>h))h=2;else{if(0>=ge.Rd&&ge.sd==null){We=$e=Ke=B=0;var Kt=(at=At*Ui[h])*dt;if(11>h||($e=(dt+1)/2*(B=(At+1)/2),h==12&&(We=(Ke=At)*dt)),(dt=p(Kt+2*$e+We))==null){h=1;break e}ge.sd=dt,11>h?((At=ge.f.RGBA).eb=dt,At.fb=0,At.A=at,At.size=Kt):((At=ge.f.kb).y=dt,At.O=0,At.fa=at,At.Fd=Kt,At.f=dt,At.N=0+Kt,At.Ab=B,At.Cd=$e,At.ea=dt,At.W=0+Kt+$e,At.Db=B,At.Ed=$e,h==12&&(At.F=dt,At.J=0+Kt+2*$e),At.Tc=We,At.lb=Ke)}if(B=1,Ke=ge.S,$e=ge.width,We=ge.height,Ke>=Fm&&13>Ke)if(11>Ke)h=ge.f.RGBA,B&=(at=Math.abs(h.A))*(We-1)+$e<=h.size,B&=at>=$e*Ui[Ke],B&=h.eb!=null;else{h=ge.f.kb,at=($e+1)/2,Kt=(We+1)/2,At=Math.abs(h.fa),dt=Math.abs(h.Ab);var yr=Math.abs(h.Db),wt=Math.abs(h.lb),nr=wt*(We-1)+$e;B&=At*(We-1)+$e<=h.Fd,B&=dt*(Kt-1)+at<=h.Cd,B=(B&=yr*(Kt-1)+at<=h.Ed)&At>=$e&dt>=at&yr>=at,B&=h.y!=null,B&=h.f!=null,B&=h.ea!=null,Ke==12&&(B&=wt>=$e,B&=nr<=h.Tc,B&=h.F!=null)}else B=0;h=B?0:2}}return h!=0||Q!=null&&Q.fd&&(h=xm(ge)),h}var s0=64,DA=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],yu=24,l0=32,ph=8,nf=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];ui("Predictor0","PredictorAdd0"),Mt.Predictor0=function(){return 4278190080},Mt.Predictor1=function(h){return h},Mt.Predictor2=function(h,B,Q){return B[Q+0]},Mt.Predictor3=function(h,B,Q){return B[Q+1]},Mt.Predictor4=function(h,B,Q){return B[Q-1]},Mt.Predictor5=function(h,B,Q){return Ma(Ma(h,B[Q+1]),B[Q+0])},Mt.Predictor6=function(h,B,Q){return Ma(h,B[Q-1])},Mt.Predictor7=function(h,B,Q){return Ma(h,B[Q+0])},Mt.Predictor8=function(h,B,Q){return Ma(B[Q-1],B[Q+0])},Mt.Predictor9=function(h,B,Q){return Ma(B[Q+0],B[Q+1])},Mt.Predictor10=function(h,B,Q){return Ma(Ma(h,B[Q-1]),Ma(B[Q+0],B[Q+1]))},Mt.Predictor11=function(h,B,Q){var ge=B[Q+0];return 0>=Wa(ge>>24&255,h>>24&255,(B=B[Q-1])>>24&255)+Wa(ge>>16&255,h>>16&255,B>>16&255)+Wa(ge>>8&255,h>>8&255,B>>8&255)+Wa(255&ge,255&h,255&B)?ge:h},Mt.Predictor12=function(h,B,Q){var ge=B[Q+0];return(es((h>>24&255)+(ge>>24&255)-((B=B[Q-1])>>24&255))<<24|es((h>>16&255)+(ge>>16&255)-(B>>16&255))<<16|es((h>>8&255)+(ge>>8&255)-(B>>8&255))<<8|es((255&h)+(255&ge)-(255&B)))>>>0},Mt.Predictor13=function(h,B,Q){var ge=B[Q-1];return(yo((h=Ma(h,B[Q+0]))>>24&255,ge>>24&255)<<24|yo(h>>16&255,ge>>16&255)<<16|yo(h>>8&255,ge>>8&255)<<8|yo(255&h,255&ge))>>>0};var af=Mt.PredictorAdd0;Mt.PredictorAdd1=Ks,ui("Predictor2","PredictorAdd2"),ui("Predictor3","PredictorAdd3"),ui("Predictor4","PredictorAdd4"),ui("Predictor5","PredictorAdd5"),ui("Predictor6","PredictorAdd6"),ui("Predictor7","PredictorAdd7"),ui("Predictor8","PredictorAdd8"),ui("Predictor9","PredictorAdd9"),ui("Predictor10","PredictorAdd10"),ui("Predictor11","PredictorAdd11"),ui("Predictor12","PredictorAdd12"),ui("Predictor13","PredictorAdd13");var np=Mt.PredictorAdd2;Sa("ColorIndexInverseTransform","MapARGB","32b",function(h){return h>>8&255},function(h){return h}),Sa("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(h){return h},function(h){return h>>8&255});var rc,Cm=Mt.ColorIndexInverseTransform,$u=Mt.MapARGB,Zu=Mt.VP8LColorIndexInverseTransformAlpha,c0=Mt.MapAlpha,ip=Mt.VP8LPredictorsAdd=[];ip.length=16,(Mt.VP8LPredictors=[]).length=16,(Mt.VP8LPredictorsAdd_C=[]).length=16,(Mt.VP8LPredictors_C=[]).length=16;var Qp,ap,Pf,mh,ps,gh,vh,A0,Vu,of,qs,pl,vc,zc,Tf,Kp,Wu,Bm,Fg,op,Mg,Sm,Em,u0,Hp,Lg,cg,kg,Dg=p(511),Og=p(2041),Ng=p(225),Ag=p(767),_m=0,d0=Og,Im=Ng,wu=Ag,bc=Dg,Fm=0,Mm=1,Pg=2,jp=3,sp=4,ug=5,Qo=6,dg=7,sf=8,cc=9,f0=10,Uf=[2,3,7],zp=[3,3,11],h0=[280,256,256,256,40],Tg=[0,1,1,1,0],Ug=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Rg=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],Qg=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Kg=8,fg=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],lp=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],cp=null,i1=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],a1=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],p0=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],o1=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Hg=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],s1=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],l1=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],bh=[],xd=[],OA=[],y1=1,c1=2,yh=[],Gu=[];qA("UpsampleRgbLinePair",Nf,3),qA("UpsampleBgrLinePair",i0,3),qA("UpsampleRgbaLinePair",no,4),qA("UpsampleBgraLinePair",Rp,4),qA("UpsampleArgbLinePair",fh,4),qA("UpsampleRgba4444LinePair",a0,2),qA("UpsampleRgb565LinePair",Mc,2);var w1=Mt.UpsampleRgbLinePair,e=Mt.UpsampleBgrLinePair,t=Mt.UpsampleRgbaLinePair,r=Mt.UpsampleBgraLinePair,i=Mt.UpsampleArgbLinePair,s=Mt.UpsampleRgba4444LinePair,c=Mt.UpsampleRgb565LinePair,u=16,k=1<<u-1,j=-227,Y=482,ce=6,Pe=(256<<ce)-1,rt=0,gt=p(256),Et=p(256),Br=p(256),In=p(256),wr=p(Y-j),nn=p(Y-j);bu("YuvToRgbRow",Nf,3),bu("YuvToBgrRow",i0,3),bu("YuvToRgbaRow",no,4),bu("YuvToBgraRow",Rp,4),bu("YuvToArgbRow",fh,4),bu("YuvToRgba4444Row",a0,2),bu("YuvToRgb565Row",Mc,2);var kn=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],dn=[0,2,8],Bi=[8,7,6,4,4,2,2,2,1,1,1,1],qi=1;this.WebPDecodeRGBA=function(h,B,Q,ge,Ke){var $e=Mm,We=new br,at=new is;We.ba=at,at.S=$e,at.width=[at.width],at.height=[at.height];var At=at.width,dt=at.height,Kt=new Ya;if(Kt==null||h==null)var yr=2;else o(Kt!=null),yr=o0(h,B,Q,Kt.width,Kt.height,Kt.Pd,Kt.Qd,Kt.format,null);if(yr!=0?At=0:(At!=null&&(At[0]=Kt.width[0]),dt!=null&&(dt[0]=Kt.height[0]),At=1),At){at.width=at.width[0],at.height=at.height[0],ge!=null&&(ge[0]=at.width),Ke!=null&&(Ke[0]=at.height);e:{if(ge=new Qu,(Ke=new hn).data=h,Ke.w=B,Ke.ha=Q,Ke.kd=1,B=[0],o(Ke!=null),((h=o0(Ke.data,Ke.w,Ke.ha,null,null,null,B,null,Ke))==0||h==7)&&B[0]&&(h=4),(B=h)==0){if(o(We!=null),ge.data=Ke.data,ge.w=Ke.w+Ke.offset,ge.ha=Ke.ha-Ke.offset,ge.put=Ka,ge.ac=Vd,ge.bc=Mf,ge.ma=We,Ke.xa){if((h=$h())==null){We=1;break e}if(function(wt,nr){var vr=[0],Xr=[0],Sr=[0];t:for(;;){if(wt==null)return 0;if(nr==null)return wt.a=2,0;if(wt.l=nr,wt.a=0,Gr(wt.m,nr.data,nr.w,nr.ha),!Lf(wt.m,vr,Xr,Sr)){wt.a=3;break t}if(wt.xb=c1,nr.width=vr[0],nr.height=Xr[0],!Xd(vr[0],Xr[0],1,wt,null))break t;return 1}return o(wt.a!=0),0}(h,ge)){if(ge=(B=hh(ge.width,ge.height,We.Oa,We.ba))==0){t:{ge=h;r:for(;;){if(ge==null){ge=0;break t}if(o(ge.s.yc!=null),o(ge.s.Ya!=null),o(0<ge.s.Wb),o((Q=ge.l)!=null),o((Ke=Q.ma)!=null),ge.xb!=0){if(ge.ca=Ke.ba,ge.tb=Ke.tb,o(ge.ca!=null),!Ul(Ke.Oa,Q,jp)){ge.a=2;break r}if(!Zh(ge,Q.width)||Q.da)break r;if((Q.da||xo(ge.ca.S))&&Ku(),11>ge.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),ge.ca.f.kb.F!=null&&Ku()),ge.Pb&&0<ge.s.ua&&ge.s.vb.X==null&&!Ft(ge.s.vb,ge.s.Wa.Xa)){ge.a=1;break r}ge.xb=0}if(!vu(ge,ge.V,ge.Ba,ge.c,ge.i,Q.o,Gd))break r;Ke.Dc=ge.Ma,ge=1;break t}o(ge.a!=0),ge=0}ge=!ge}ge&&(B=h.a)}else B=h.a}else{if((h=new Xh)==null){We=1;break e}if(h.Fa=Ke.na,h.P=Ke.P,h.qc=Ke.Sa,Op(h,ge)){if((B=hh(ge.width,ge.height,We.Oa,We.ba))==0){if(h.Aa=0,Q=We.Oa,o((Ke=h)!=null),Q!=null){if(0<(At=0>(At=Q.Md)?0:100<At?255:255*At/100)){for(dt=Kt=0;4>dt;++dt)12>(yr=Ke.pb[dt]).lc&&(yr.ia=At*Bi[0>yr.lc?0:yr.lc]>>3),Kt|=yr.ia;Kt&&(alert("todo:VP8InitRandom"),Ke.ia=1)}Ke.Ga=Q.Id,100<Ke.Ga?Ke.Ga=100:0>Ke.Ga&&(Ke.Ga=0)}(function(wt,nr){if(wt==null)return 0;if(nr==null)return ec(wt,2,"NULL VP8Io parameter in VP8Decode().");if(!wt.cb&&!Op(wt,nr))return 0;if(o(wt.cb),nr.ac==null||nr.ac(nr)){nr.ob&&(wt.L=0);var vr=dn[wt.L];if(wt.L==2?(wt.yb=0,wt.zb=0):(wt.yb=nr.v-vr>>4,wt.zb=nr.j-vr>>4,0>wt.yb&&(wt.yb=0),0>wt.zb&&(wt.zb=0)),wt.Va=nr.o+15+vr>>4,wt.Hb=nr.va+15+vr>>4,wt.Hb>wt.za&&(wt.Hb=wt.za),wt.Va>wt.Ub&&(wt.Va=wt.Ub),0<wt.L){var Xr=wt.ed;for(vr=0;4>vr;++vr){var Sr;if(wt.Qa.Cb){var An=wt.Qa.Lb[vr];wt.Qa.Fb||(An+=Xr.Tb)}else An=Xr.Tb;for(Sr=0;1>=Sr;++Sr){var bn=wt.gd[vr][Sr],Zn=An;if(Xr.Pc&&(Zn+=Xr.vd[0],Sr&&(Zn+=Xr.od[0])),0<(Zn=0>Zn?0:63<Zn?63:Zn)){var Dn=Zn;0<Xr.wb&&(Dn=4<Xr.wb?Dn>>2:Dn>>1)>9-Xr.wb&&(Dn=9-Xr.wb),1>Dn&&(Dn=1),bn.dd=Dn,bn.tc=2*Zn+Dn,bn.ld=40<=Zn?2:15<=Zn?1:0}else bn.tc=0;bn.La=Sr}}}vr=0}else ec(wt,6,"Frame setup failed"),vr=wt.a;if(vr=vr==0){if(vr){wt.$c=0,0<wt.Aa||(wt.Ic=qi);t:{vr=wt.Ic,Xr=4*(Dn=wt.za);var Ea=32*Dn,oa=Dn+1,Ko=0<wt.L?Dn*(0<wt.Aa?2:1):0,va=(wt.Aa==2?2:1)*Dn;if((bn=Xr+832+(Sr=3*(16*vr+dn[wt.L])/2*Ea)+(An=wt.Fa!=null&&0<wt.Fa.length?wt.Kc.c*wt.Kc.i:0))!=bn)vr=0;else{if(bn>wt.Vb){if(wt.Vb=0,wt.Ec=p(bn),wt.Fc=0,wt.Ec==null){vr=ec(wt,1,"no memory during frame initialization.");break t}wt.Vb=bn}bn=wt.Ec,Zn=wt.Fc,wt.Ac=bn,wt.Bc=Zn,Zn+=Xr,wt.Gd=O(Ea,V0),wt.Hd=0,wt.rb=O(oa+1,Gh),wt.sb=1,wt.wa=Ko?O(Ko,YA):null,wt.Y=0,wt.D.Nb=0,wt.D.wa=wt.wa,wt.D.Y=wt.Y,0<wt.Aa&&(wt.D.Y+=Dn),o(!0),wt.oc=bn,wt.pc=Zn,Zn+=832,wt.ya=O(va,kp),wt.aa=0,wt.D.ya=wt.ya,wt.D.aa=wt.aa,wt.Aa==2&&(wt.D.aa+=Dn),wt.R=16*Dn,wt.B=8*Dn,Dn=(Ea=dn[wt.L])*wt.R,Ea=Ea/2*wt.B,wt.sa=bn,wt.ta=Zn+Dn,wt.qa=wt.sa,wt.ra=wt.ta+16*vr*wt.R+Ea,wt.Ha=wt.qa,wt.Ia=wt.ra+8*vr*wt.B+Ea,wt.$c=0,Zn+=Sr,wt.mb=An?bn:null,wt.nb=An?Zn:null,o(Zn+An<=wt.Fc+wt.Vb),ch(wt),A(wt.Ac,wt.Bc,0,Xr),vr=1}}if(vr){if(nr.ka=0,nr.y=wt.sa,nr.O=wt.ta,nr.f=wt.qa,nr.N=wt.ra,nr.ea=wt.Ha,nr.Vd=wt.Ia,nr.fa=wt.R,nr.Rc=wt.B,nr.F=null,nr.J=0,!_m){for(vr=-255;255>=vr;++vr)Dg[255+vr]=0>vr?-vr:vr;for(vr=-1020;1020>=vr;++vr)Og[1020+vr]=-128>vr?-128:127<vr?127:vr;for(vr=-112;112>=vr;++vr)Ng[112+vr]=-16>vr?-16:15<vr?15:vr;for(vr=-255;510>=vr;++vr)Ag[255+vr]=0>vr?0:255<vr?255:vr;_m=1}vh=vm,A0=X0,of=rg,qs=bd,pl=gm,Vu=tg,vc=ym,zc=Of,Tf=$,Kp=He,Wu=dh,Bm=Up,Fg=St,op=Zt,Mg=n0,Sm=Df,Em=Tp,u0=rp,xd[0]=og,xd[1]=Es,xd[2]=ig,xd[3]=ag,xd[4]=sg,xd[5]=wd,xd[6]=yd,xd[7]=lg,xd[8]=ep,xd[9]=Np,bh[0]=Ah,bh[1]=Tl,bh[2]=J0,bh[3]=Y0,bh[4]=ng,bh[5]=Jh,bh[6]=q0,OA[0]=qh,OA[1]=AA,OA[2]=uh,OA[3]=Yh,OA[4]=e0,OA[5]=bm,OA[6]=Pp,vr=1}else vr=0}vr&&(vr=function(_s,dA){for(_s.M=0;_s.M<_s.Va;++_s.M){var Ho,ba=_s.Jc[_s.M&_s.Xb],_i=_s.m,$c=_s;for(Ho=0;Ho<$c.za;++Ho){var Do=_i,Os=$c,nc=Os.Ac,QA=Os.Bc+4*Ho,xu=Os.zc,Lc=Os.ya[Os.aa+Ho];if(Os.Qa.Bb?Lc.$b=gn(Do,Os.Pa.jb[0])?2+gn(Do,Os.Pa.jb[2]):gn(Do,Os.Pa.jb[1]):Lc.$b=0,Os.kc&&(Lc.Ad=gn(Do,Os.Bd)),Lc.Za=!gn(Do,145)+0,Lc.Za){var eu=Lc.Ob,Cu=0;for(Os=0;4>Os;++Os){var fA,js=xu[0+Os];for(fA=0;4>fA;++fA){js=Hg[nc[QA+fA]][js];for(var ml=p0[gn(Do,js[0])];0<ml;)ml=p0[2*ml+gn(Do,js[ml])];js=-ml,nc[QA+fA]=js}l(eu,Cu,nc,QA,4),Cu+=4,xu[0+Os]=js}}else js=gn(Do,156)?gn(Do,128)?1:3:gn(Do,163)?2:0,Lc.Ob[0]=js,A(nc,QA,js,4),A(xu,0,js,4);Lc.Dd=gn(Do,142)?gn(Do,114)?gn(Do,183)?1:3:2:0}if($c.m.Ka)return ec(_s,7,"Premature end-of-partition0 encountered.");for(;_s.ja<_s.za;++_s.ja){if($c=ba,Do=(_i=_s).rb[_i.sb-1],nc=_i.rb[_i.sb+_i.ja],Ho=_i.ya[_i.aa+_i.ja],QA=_i.kc?Ho.Ad:0)Do.la=nc.la=0,Ho.Za||(Do.Na=nc.Na=0),Ho.Hc=0,Ho.Gc=0,Ho.ia=0;else{var kc,gl;if(Do=nc,nc=$c,QA=_i.Pa.Xc,xu=_i.ya[_i.aa+_i.ja],Lc=_i.pb[xu.$b],Os=xu.ad,eu=0,Cu=_i.rb[_i.sb-1],js=fA=0,A(Os,eu,0,384),xu.Za)var KA=0,Rf=QA[3];else{ml=p(16);var Zc=Do.Na+Cu.Na;if(Zc=cp(nc,QA[1],Zc,Lc.Eb,0,ml,0),Do.Na=Cu.Na=(0<Zc)+0,1<Zc)vh(ml,0,Os,eu);else{var Xu=ml[0]+3>>3;for(ml=0;256>ml;ml+=16)Os[eu+ml]=Xu}KA=1,Rf=QA[0]}var Fl=15&Do.la,hA=15&Cu.la;for(ml=0;4>ml;++ml){var Cd=1&hA;for(Xu=gl=0;4>Xu;++Xu)Fl=Fl>>1|(Cd=(Zc=cp(nc,Rf,Zc=Cd+(1&Fl),Lc.Sc,KA,Os,eu))>KA)<<7,gl=gl<<2|(3<Zc?3:1<Zc?2:Os[eu+0]!=0),eu+=16;Fl>>=4,hA=hA>>1|Cd<<7,fA=(fA<<8|gl)>>>0}for(Rf=Fl,KA=hA>>4,kc=0;4>kc;kc+=2){for(gl=0,Fl=Do.la>>4+kc,hA=Cu.la>>4+kc,ml=0;2>ml;++ml){for(Cd=1&hA,Xu=0;2>Xu;++Xu)Zc=Cd+(1&Fl),Fl=Fl>>1|(Cd=0<(Zc=cp(nc,QA[2],Zc,Lc.Qc,0,Os,eu)))<<3,gl=gl<<2|(3<Zc?3:1<Zc?2:Os[eu+0]!=0),eu+=16;Fl>>=2,hA=hA>>1|Cd<<5}js|=gl<<4*kc,Rf|=Fl<<4<<kc,KA|=(240&hA)<<kc}Do.la=Rf,Cu.la=KA,xu.Hc=fA,xu.Gc=js,xu.ia=43690&js?0:Lc.ia,QA=!(fA|js)}if(0<_i.L&&(_i.wa[_i.Y+_i.ja]=_i.gd[Ho.$b][Ho.Za],_i.wa[_i.Y+_i.ja].La|=!QA),$c.Ka)return ec(_s,7,"Premature end-of-file encountered.")}if(ch(_s),_i=dA,$c=1,Ho=(ba=_s).D,Do=0<ba.L&&ba.M>=ba.zb&&ba.M<=ba.Va,ba.Aa==0)t:{if(Ho.M=ba.M,Ho.uc=Do,hs(ba,Ho),$c=1,Ho=(gl=ba.D).Nb,Do=(js=dn[ba.L])*ba.R,nc=js/2*ba.B,ml=16*Ho*ba.R,Xu=8*Ho*ba.B,QA=ba.sa,xu=ba.ta-Do+ml,Lc=ba.qa,Os=ba.ra-nc+Xu,eu=ba.Ha,Cu=ba.Ia-nc+Xu,hA=(Fl=gl.M)==0,fA=Fl>=ba.Va-1,ba.Aa==2&&hs(ba,gl),gl.uc)for(Cd=(Zc=ba).D.M,o(Zc.D.uc),gl=Zc.yb;gl<Zc.Hb;++gl){KA=gl,Rf=Cd;var Bu=(Bd=(HA=Zc).D).Nb;kc=HA.R;var Bd=Bd.wa[Bd.Y+KA],Sd=HA.sa,Ju=HA.ta+16*Bu*kc+16*KA,Ed=Bd.dd,Rl=Bd.tc;if(Rl!=0)if(o(3<=Rl),HA.L==1)0<KA&&Sm(Sd,Ju,kc,Rl+4),Bd.La&&u0(Sd,Ju,kc,Rl),0<Rf&&Mg(Sd,Ju,kc,Rl+4),Bd.La&&Em(Sd,Ju,kc,Rl);else{var _d=HA.B,Qf=HA.qa,$p=HA.ra+8*Bu*_d+8*KA,m0=HA.Ha,HA=HA.Ia+8*Bu*_d+8*KA;Bu=Bd.ld,0<KA&&(zc(Sd,Ju,kc,Rl+4,Ed,Bu),Kp(Qf,$p,m0,HA,_d,Rl+4,Ed,Bu)),Bd.La&&(Bm(Sd,Ju,kc,Rl,Ed,Bu),op(Qf,$p,m0,HA,_d,Rl,Ed,Bu)),0<Rf&&(vc(Sd,Ju,kc,Rl+4,Ed,Bu),Tf(Qf,$p,m0,HA,_d,Rl+4,Ed,Bu)),Bd.La&&(Wu(Sd,Ju,kc,Rl,Ed,Bu),Fg(Qf,$p,m0,HA,_d,Rl,Ed,Bu))}}if(ba.ia&&alert("todo:DitherRow"),_i.put!=null){if(gl=16*Fl,Fl=16*(Fl+1),hA?(_i.y=ba.sa,_i.O=ba.ta+ml,_i.f=ba.qa,_i.N=ba.ra+Xu,_i.ea=ba.Ha,_i.W=ba.Ia+Xu):(gl-=js,_i.y=QA,_i.O=xu,_i.f=Lc,_i.N=Os,_i.ea=eu,_i.W=Cu),fA||(Fl-=js),Fl>_i.o&&(Fl=_i.o),_i.F=null,_i.J=null,ba.Fa!=null&&0<ba.Fa.length&&gl<Fl&&(_i.J=Ic(ba,_i,gl,Fl-gl),_i.F=ba.mb,_i.F==null&&_i.F.length==0)){$c=ec(ba,3,"Could not decode alpha data.");break t}gl<_i.j&&(js=_i.j-gl,gl=_i.j,o(!(1&js)),_i.O+=ba.R*js,_i.N+=ba.B*(js>>1),_i.W+=ba.B*(js>>1),_i.F!=null&&(_i.J+=_i.width*js)),gl<Fl&&(_i.O+=_i.v,_i.N+=_i.v>>1,_i.W+=_i.v>>1,_i.F!=null&&(_i.J+=_i.v),_i.ka=gl-_i.j,_i.U=_i.va-_i.v,_i.T=Fl-gl,$c=_i.put(_i))}Ho+1!=ba.Ic||fA||(l(ba.sa,ba.ta-Do,QA,xu+16*ba.R,Do),l(ba.qa,ba.ra-nc,Lc,Os+8*ba.B,nc),l(ba.Ha,ba.Ia-nc,eu,Cu+8*ba.B,nc))}if(!$c)return ec(_s,6,"Output aborted.")}return 1}(wt,nr)),nr.bc!=null&&nr.bc(nr),vr&=1}return vr?(wt.cb=0,vr):0})(h,ge)||(B=h.a)}}else B=h.a}B==0&&We.Oa!=null&&We.Oa.fd&&(B=xm(We.ba))}We=B}$e=We!=0?null:11>$e?at.f.RGBA.eb:at.f.kb.y}else $e=null;return $e};var Ui=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Z(Mt,xr){for(var nt="",yt=0;yt<4;yt++)nt+=String.fromCharCode(Mt[xr++]);return nt}function oe(Mt,xr){return Mt[xr+0]|Mt[xr+1]<<8}function Re(Mt,xr){return(Mt[xr+0]|Mt[xr+1]<<8|Mt[xr+2]<<16)>>>0}function ze(Mt,xr){return(Mt[xr+0]|Mt[xr+1]<<8|Mt[xr+2]<<16|Mt[xr+3]<<24)>>>0}new U;var ae=[0],mt=[0],ut=[],bt=new U,ot=n,Gt=function(Mt,xr){var nt={},yt=0,Wt=!1,Ht=0,Tr=0;if(nt.frames=[],!function(qe,_t){for(var Ot=0;Ot<4;Ot++)if(qe[_t+Ot]!="RIFF".charCodeAt(Ot))return!0;return!1}(Mt,xr)){for(ze(Mt,xr+=4),xr+=8;xr<Mt.length;){var Zr=Z(Mt,xr),Jr=ze(Mt,xr+=4);xr+=4;var Or=Jr+(1&Jr);switch(Zr){case"VP8 ":case"VP8L":nt.frames[yt]===void 0&&(nt.frames[yt]={}),(En=nt.frames[yt]).src_off=Wt?Tr:xr-8,En.src_size=Ht+Jr+8,yt++,Wt&&(Wt=!1,Ht=0,Tr=0);break;case"VP8X":(En=nt.header={}).feature_flags=Mt[xr];var Gr=xr+4;En.canvas_width=1+Re(Mt,Gr),Gr+=3,En.canvas_height=1+Re(Mt,Gr),Gr+=3;break;case"ALPH":Wt=!0,Ht=Or+8,Tr=xr-8;break;case"ANIM":(En=nt.header).bgcolor=ze(Mt,xr),Gr=xr+4,En.loop_count=oe(Mt,Gr),Gr+=2;break;case"ANMF":var $n,En;(En=nt.frames[yt]={}).offset_x=2*Re(Mt,xr),xr+=3,En.offset_y=2*Re(Mt,xr),xr+=3,En.width=1+Re(Mt,xr),xr+=3,En.height=1+Re(Mt,xr),xr+=3,En.duration=Re(Mt,xr),xr+=3,$n=Mt[xr++],En.dispose=1&$n,En.blend=$n>>1&1}Zr!="ANMF"&&(xr+=Or)}return nt}}(ot,0);Gt.response=ot,Gt.rgbaoutput=!0,Gt.dataurl=!1;var Rt=Gt.header?Gt.header:null,It=Gt.frames?Gt.frames:null;if(Rt){Rt.loop_counter=Rt.loop_count,ae=[Rt.canvas_height],mt=[Rt.canvas_width];for(var kr=0;kr<It.length&&It[kr].blend!=0;kr++);}var rn=It[0],Wr=bt.WebPDecodeRGBA(ot,rn.src_off,rn.src_size,mt,ae);rn.rgba=Wr,rn.imgwidth=mt[0],rn.imgheight=ae[0];for(var ir=0;ir<mt[0]*ae[0]*4;ir++)ut[ir]=Wr[ir];return this.width=mt,this.height=ae,this.data=ut,this}(function(n){var o,a,l,A,p,O,_,U,Z,oe=function(qe){return qe=qe||{},this.isStrokeTransparent=qe.isStrokeTransparent||!1,this.strokeOpacity=qe.strokeOpacity||1,this.strokeStyle=qe.strokeStyle||"#000000",this.fillStyle=qe.fillStyle||"#000000",this.isFillTransparent=qe.isFillTransparent||!1,this.fillOpacity=qe.fillOpacity||1,this.font=qe.font||"10px sans-serif",this.textBaseline=qe.textBaseline||"alphabetic",this.textAlign=qe.textAlign||"left",this.lineWidth=qe.lineWidth||1,this.lineJoin=qe.lineJoin||"miter",this.lineCap=qe.lineCap||"butt",this.path=qe.path||[],this.transform=qe.transform!==void 0?qe.transform.clone():new U,this.globalCompositeOperation=qe.globalCompositeOperation||"normal",this.globalAlpha=qe.globalAlpha||1,this.clip_path=qe.clip_path||[],this.currentPoint=qe.currentPoint||new O,this.miterLimit=qe.miterLimit||10,this.lastPoint=qe.lastPoint||new O,this.lineDashOffset=qe.lineDashOffset||0,this.lineDash=qe.lineDash||[],this.margin=qe.margin||[0,0,0,0],this.prevPageLastElemOffset=qe.prevPageLastElemOffset||0,this.ignoreClearRect=typeof qe.ignoreClearRect!="boolean"||qe.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new Re(this),o=this.internal.f2,a=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,A=this.internal.getHorizontalCoordinate,p=this.internal.getVerticalCoordinate,O=this.internal.Point,_=this.internal.Rectangle,U=this.internal.Matrix,Z=new oe}]);var Re=function(qe){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var _t=qe;Object.defineProperty(this,"pdf",{get:function(){return _t}});var Ot=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Ot},set:function(sn){Ot=!!sn}});var Jt=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Jt},set:function(sn){Jt=!!sn}});var hr=0;Object.defineProperty(this,"posX",{get:function(){return hr},set:function(sn){isNaN(sn)||(hr=sn)}});var Mr=0;Object.defineProperty(this,"posY",{get:function(){return Mr},set:function(sn){isNaN(sn)||(Mr=sn)}}),Object.defineProperty(this,"margin",{get:function(){return Z.margin},set:function(sn){var Ft;typeof sn=="number"?Ft=[sn,sn,sn,sn]:((Ft=new Array(4))[0]=sn[0],Ft[1]=sn.length>=2?sn[1]:Ft[0],Ft[2]=sn.length>=3?sn[2]:Ft[0],Ft[3]=sn.length>=4?sn[3]:Ft[1]),Z.margin=Ft}});var $r=!1;Object.defineProperty(this,"autoPaging",{get:function(){return $r},set:function(sn){$r=sn}});var Qr=0;Object.defineProperty(this,"lastBreak",{get:function(){return Qr},set:function(sn){Qr=sn}});var gn=[];Object.defineProperty(this,"pageBreaks",{get:function(){return gn},set:function(sn){gn=sn}}),Object.defineProperty(this,"ctx",{get:function(){return Z},set:function(sn){sn instanceof oe&&(Z=sn)}}),Object.defineProperty(this,"path",{get:function(){return Z.path},set:function(sn){Z.path=sn}});var Rn=[];Object.defineProperty(this,"ctxStack",{get:function(){return Rn},set:function(sn){Rn=sn}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(sn){var Ft;Ft=ze(sn),this.ctx.fillStyle=Ft.style,this.ctx.isFillTransparent=Ft.a===0,this.ctx.fillOpacity=Ft.a,this.pdf.setFillColor(Ft.r,Ft.g,Ft.b,{a:Ft.a}),this.pdf.setTextColor(Ft.r,Ft.g,Ft.b,{a:Ft.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(sn){var Ft=ze(sn);this.ctx.strokeStyle=Ft.style,this.ctx.isStrokeTransparent=Ft.a===0,this.ctx.strokeOpacity=Ft.a,Ft.a===0?this.pdf.setDrawColor(255,255,255):(Ft.a,this.pdf.setDrawColor(Ft.r,Ft.g,Ft.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(sn){["butt","round","square"].indexOf(sn)!==-1&&(this.ctx.lineCap=sn,this.pdf.setLineCap(sn))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(sn){isNaN(sn)||(this.ctx.lineWidth=sn,this.pdf.setLineWidth(sn))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(sn){["bevel","round","miter"].indexOf(sn)!==-1&&(this.ctx.lineJoin=sn,this.pdf.setLineJoin(sn))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(sn){isNaN(sn)||(this.ctx.miterLimit=sn,this.pdf.setMiterLimit(sn))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(sn){this.ctx.textBaseline=sn}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(sn){["right","end","center","left","start"].indexOf(sn)!==-1&&(this.ctx.textAlign=sn)}});var gi=null,Ei=null;Object.defineProperty(this,"fontFaces",{get:function(){return Ei},set:function(sn){gi=null,Ei=sn}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(sn){var Ft;if(this.ctx.font=sn,(Ft=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(sn))!==null){var Wo=Ft[1];Ft[2];var Eo=Ft[3],Ta=Ft[4];Ft[5];var Wn=Ft[6],xa=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ta)[2];Ta=Math.floor(xa==="px"?parseFloat(Ta)*this.pdf.internal.scaleFactor:xa==="em"?parseFloat(Ta)*this.pdf.getFontSize():parseFloat(Ta)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ta);var ui=function(to){var Sa,yl,Ds=[],ga=to.trim();if(ga==="")return Xm;if(ga in LA)return[LA[ga]];for(;ga!=="";){switch(yl=null,Sa=(ga=Zd(ga)).charAt(0)){case'"':case"'":yl=JA(ga.substring(1),Sa);break;default:yl=md(ga)}if(yl===null||(Ds.push(yl[0]),(ga=Zd(yl[1]))!==""&&ga.charAt(0)!==","))return Xm;ga=ga.replace(/^,/,"")}return Ds}(Wn);if(this.fontFaces){var Ja=function(to,Sa){if(gi===null){var yl=function(Ds){var ga=[];return Object.keys(Ds).forEach(function(wo){Ds[wo].forEach(function(ul){var ka=null;switch(ul){case"bold":ka={family:wo,weight:"bold"};break;case"italic":ka={family:wo,style:"italic"};break;case"bolditalic":ka={family:wo,weight:"bold",style:"italic"};break;case"":case"normal":ka={family:wo}}ka!==null&&(ka.ref={name:wo,style:ul},ga.push(ka))})}),ga}(to.getFontList());gi=function(Ds){for(var ga={},wo=0;wo<Ds.length;++wo){var ul=XA(Ds[wo]),ka=ul.family,ns=ul.stretch,xo=ul.style,ql=ul.weight;ga[ka]=ga[ka]||{},ga[ka][ns]=ga[ka][ns]||{},ga[ka][ns][xo]=ga[ka][ns][xo]||{},ga[ka][ns][xo][ql]=ul}return ga}(yl.concat(Sa))}return gi}(this.pdf,this.fontFaces),Ma=ui.map(function(to){return{family:to,stretch:"normal",weight:Eo,style:Wo}}),es=function(to,Sa,yl){for(var Ds=(yl=yl||{}).defaultFontFamily||"times",ga=Object.assign({},Pu,yl.genericFontFamilies||{}),wo=null,ul=null,ka=0;ka<Sa.length;++ka)if(ga[(wo=XA(Sa[ka])).family]&&(wo.family=ga[wo.family]),to.hasOwnProperty(wo.family)){ul=to[wo.family];break}if(!(ul=ul||to[Ds]))throw new Error("Could not find a font-family for the rule '"+Tu(wo)+"' and default family '"+Ds+"'.");if(ul=function(ns,xo){if(xo[ns])return xo[ns];var ql=Yc[ns],Pl=ql<=Yc.normal?-1:1,is=uu(xo,pd,ql,Pl);if(!is)throw new Error("Could not find a matching font-stretch value for "+ns);return is}(wo.stretch,ul),ul=function(ns,xo){if(xo[ns])return xo[ns];for(var ql=_c[ns],Pl=0;Pl<ql.length;++Pl)if(xo[ql[Pl]])return xo[ql[Pl]];throw new Error("Could not find a matching font-style for "+ns)}(wo.style,ul),!(ul=function(ns,xo){if(xo[ns])return xo[ns];if(ns===400&&xo[500])return xo[500];if(ns===500&&xo[400])return xo[400];var ql=Au[ns],Pl=uu(xo,sA,ql,ns<400?-1:1);if(!Pl)throw new Error("Could not find a matching font-weight for value "+ns);return Pl}(wo.weight,ul)))throw new Error("Failed to resolve a font for the rule '"+Tu(wo)+"'.");return ul}(Ja,Ma);this.pdf.setFont(es.ref.name,es.ref.style)}else{var yo="";(Eo==="bold"||parseInt(Eo,10)>=700||Wo==="bold")&&(yo="bold"),Wo==="italic"&&(yo+="italic"),yo.length===0&&(yo="normal");for(var Wa="",Ks={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},uo=0;uo<ui.length;uo++){if(this.pdf.internal.getFont(ui[uo],yo,{noFallback:!0,disableWarning:!0})!==void 0){Wa=ui[uo];break}if(yo==="bolditalic"&&this.pdf.internal.getFont(ui[uo],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Wa=ui[uo],yo="bold";else if(this.pdf.internal.getFont(ui[uo],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Wa=ui[uo],yo="normal";break}}if(Wa===""){for(var Ba=0;Ba<ui.length;Ba++)if(Ks[ui[Ba]]){Wa=Ks[ui[Ba]];break}}Wa=Wa===""?"Times":Wa,this.pdf.setFont(Wa,yo)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(sn){this.ctx.globalCompositeOperation=sn}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(sn){this.ctx.globalAlpha=sn}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(sn){this.ctx.lineDashOffset=sn,En.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(sn){this.ctx.lineDash=sn,En.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(sn){this.ctx.ignoreClearRect=!!sn}})};Re.prototype.setLineDash=function(qe){this.lineDash=qe},Re.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Re.prototype.fill=function(){It.call(this,"fill",!1)},Re.prototype.stroke=function(){It.call(this,"stroke",!1)},Re.prototype.beginPath=function(){this.path=[{type:"begin"}]},Re.prototype.moveTo=function(qe,_t){if(isNaN(qe)||isNaN(_t))throw ks.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Ot=this.ctx.transform.applyToPoint(new O(qe,_t));this.path.push({type:"mt",x:Ot.x,y:Ot.y}),this.ctx.lastPoint=new O(qe,_t)},Re.prototype.closePath=function(){var qe=new O(0,0),_t=0;for(_t=this.path.length-1;_t!==-1;_t--)if(this.path[_t].type==="begin"&&(0,me.Z)(this.path[_t+1])==="object"&&typeof this.path[_t+1].x=="number"){qe=new O(this.path[_t+1].x,this.path[_t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new O(qe.x,qe.y)},Re.prototype.lineTo=function(qe,_t){if(isNaN(qe)||isNaN(_t))throw ks.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Ot=this.ctx.transform.applyToPoint(new O(qe,_t));this.path.push({type:"lt",x:Ot.x,y:Ot.y}),this.ctx.lastPoint=new O(Ot.x,Ot.y)},Re.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),It.call(this,null,!0)},Re.prototype.quadraticCurveTo=function(qe,_t,Ot,Jt){if(isNaN(Ot)||isNaN(Jt)||isNaN(qe)||isNaN(_t))throw ks.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var hr=this.ctx.transform.applyToPoint(new O(Ot,Jt)),Mr=this.ctx.transform.applyToPoint(new O(qe,_t));this.path.push({type:"qct",x1:Mr.x,y1:Mr.y,x:hr.x,y:hr.y}),this.ctx.lastPoint=new O(hr.x,hr.y)},Re.prototype.bezierCurveTo=function(qe,_t,Ot,Jt,hr,Mr){if(isNaN(hr)||isNaN(Mr)||isNaN(qe)||isNaN(_t)||isNaN(Ot)||isNaN(Jt))throw ks.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var $r=this.ctx.transform.applyToPoint(new O(hr,Mr)),Qr=this.ctx.transform.applyToPoint(new O(qe,_t)),gn=this.ctx.transform.applyToPoint(new O(Ot,Jt));this.path.push({type:"bct",x1:Qr.x,y1:Qr.y,x2:gn.x,y2:gn.y,x:$r.x,y:$r.y}),this.ctx.lastPoint=new O($r.x,$r.y)},Re.prototype.arc=function(qe,_t,Ot,Jt,hr,Mr){if(isNaN(qe)||isNaN(_t)||isNaN(Ot)||isNaN(Jt)||isNaN(hr))throw ks.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Mr=!!Mr,!this.ctx.transform.isIdentity){var $r=this.ctx.transform.applyToPoint(new O(qe,_t));qe=$r.x,_t=$r.y;var Qr=this.ctx.transform.applyToPoint(new O(0,Ot)),gn=this.ctx.transform.applyToPoint(new O(0,0));Ot=Math.sqrt(Math.pow(Qr.x-gn.x,2)+Math.pow(Qr.y-gn.y,2))}Math.abs(hr-Jt)>=2*Math.PI&&(Jt=0,hr=2*Math.PI),this.path.push({type:"arc",x:qe,y:_t,radius:Ot,startAngle:Jt,endAngle:hr,counterclockwise:Mr})},Re.prototype.arcTo=function(qe,_t,Ot,Jt,hr){throw new Error("arcTo not implemented.")},Re.prototype.rect=function(qe,_t,Ot,Jt){if(isNaN(qe)||isNaN(_t)||isNaN(Ot)||isNaN(Jt))throw ks.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(qe,_t),this.lineTo(qe+Ot,_t),this.lineTo(qe+Ot,_t+Jt),this.lineTo(qe,_t+Jt),this.lineTo(qe,_t),this.lineTo(qe+Ot,_t),this.lineTo(qe,_t)},Re.prototype.fillRect=function(qe,_t,Ot,Jt){if(isNaN(qe)||isNaN(_t)||isNaN(Ot)||isNaN(Jt))throw ks.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!ae.call(this)){var hr={};this.lineCap!=="butt"&&(hr.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(hr.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(qe,_t,Ot,Jt),this.fill(),hr.hasOwnProperty("lineCap")&&(this.lineCap=hr.lineCap),hr.hasOwnProperty("lineJoin")&&(this.lineJoin=hr.lineJoin)}},Re.prototype.strokeRect=function(qe,_t,Ot,Jt){if(isNaN(qe)||isNaN(_t)||isNaN(Ot)||isNaN(Jt))throw ks.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");mt.call(this)||(this.beginPath(),this.rect(qe,_t,Ot,Jt),this.stroke())},Re.prototype.clearRect=function(qe,_t,Ot,Jt){if(isNaN(qe)||isNaN(_t)||isNaN(Ot)||isNaN(Jt))throw ks.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(qe,_t,Ot,Jt))},Re.prototype.save=function(qe){qe=typeof qe!="boolean"||qe;for(var _t=this.pdf.internal.getCurrentPageInfo().pageNumber,Ot=0;Ot<this.pdf.internal.getNumberOfPages();Ot++)this.pdf.setPage(Ot+1),this.pdf.internal.out("q");if(this.pdf.setPage(_t),qe){this.ctx.fontSize=this.pdf.internal.getFontSize();var Jt=new oe(this.ctx);this.ctxStack.push(this.ctx),this.ctx=Jt}},Re.prototype.restore=function(qe){qe=typeof qe!="boolean"||qe;for(var _t=this.pdf.internal.getCurrentPageInfo().pageNumber,Ot=0;Ot<this.pdf.internal.getNumberOfPages();Ot++)this.pdf.setPage(Ot+1),this.pdf.internal.out("Q");this.pdf.setPage(_t),qe&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Re.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var ze=function(qe){var _t,Ot,Jt,hr;if(qe.isCanvasGradient===!0&&(qe=qe.getColor()),!qe)return{r:0,g:0,b:0,a:0,style:qe};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(qe))_t=0,Ot=0,Jt=0,hr=0;else{var Mr=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(qe);if(Mr!==null)_t=parseInt(Mr[1]),Ot=parseInt(Mr[2]),Jt=parseInt(Mr[3]),hr=1;else if((Mr=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(qe))!==null)_t=parseInt(Mr[1]),Ot=parseInt(Mr[2]),Jt=parseInt(Mr[3]),hr=parseFloat(Mr[4]);else{if(hr=1,typeof qe=="string"&&qe.charAt(0)!=="#"){var $r=new Cp(qe);qe=$r.ok?$r.toHex():"#000000"}qe.length===4?(_t=qe.substring(1,2),_t+=_t,Ot=qe.substring(2,3),Ot+=Ot,Jt=qe.substring(3,4),Jt+=Jt):(_t=qe.substring(1,3),Ot=qe.substring(3,5),Jt=qe.substring(5,7)),_t=parseInt(_t,16),Ot=parseInt(Ot,16),Jt=parseInt(Jt,16)}}return{r:_t,g:Ot,b:Jt,a:hr,style:qe}},ae=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},mt=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Re.prototype.fillText=function(qe,_t,Ot,Jt){if(isNaN(_t)||isNaN(Ot)||typeof qe!="string")throw ks.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(Jt=isNaN(Jt)?void 0:Jt,!ae.call(this)){var hr=Or(this.ctx.transform.rotation),Mr=this.ctx.transform.scaleX;yt.call(this,{text:qe,x:_t,y:Ot,scale:Mr,angle:hr,align:this.textAlign,maxWidth:Jt})}},Re.prototype.strokeText=function(qe,_t,Ot,Jt){if(isNaN(_t)||isNaN(Ot)||typeof qe!="string")throw ks.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!mt.call(this)){Jt=isNaN(Jt)?void 0:Jt;var hr=Or(this.ctx.transform.rotation),Mr=this.ctx.transform.scaleX;yt.call(this,{text:qe,x:_t,y:Ot,scale:Mr,renderingMode:"stroke",angle:hr,align:this.textAlign,maxWidth:Jt})}},Re.prototype.measureText=function(qe){if(typeof qe!="string")throw ks.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _t=this.pdf,Ot=this.pdf.internal.scaleFactor,Jt=_t.internal.getFontSize(),hr=_t.getStringUnitWidth(qe)*Jt/_t.internal.scaleFactor;return new function(Mr){var $r=(Mr=Mr||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return $r}}),this}({width:hr*=Math.round(96*Ot/72*1e4)/1e4})},Re.prototype.scale=function(qe,_t){if(isNaN(qe)||isNaN(_t))throw ks.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Ot=new U(qe,0,0,_t,0,0);this.ctx.transform=this.ctx.transform.multiply(Ot)},Re.prototype.rotate=function(qe){if(isNaN(qe))throw ks.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _t=new U(Math.cos(qe),Math.sin(qe),-Math.sin(qe),Math.cos(qe),0,0);this.ctx.transform=this.ctx.transform.multiply(_t)},Re.prototype.translate=function(qe,_t){if(isNaN(qe)||isNaN(_t))throw ks.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Ot=new U(1,0,0,1,qe,_t);this.ctx.transform=this.ctx.transform.multiply(Ot)},Re.prototype.transform=function(qe,_t,Ot,Jt,hr,Mr){if(isNaN(qe)||isNaN(_t)||isNaN(Ot)||isNaN(Jt)||isNaN(hr)||isNaN(Mr))throw ks.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var $r=new U(qe,_t,Ot,Jt,hr,Mr);this.ctx.transform=this.ctx.transform.multiply($r)},Re.prototype.setTransform=function(qe,_t,Ot,Jt,hr,Mr){qe=isNaN(qe)?1:qe,_t=isNaN(_t)?0:_t,Ot=isNaN(Ot)?0:Ot,Jt=isNaN(Jt)?1:Jt,hr=isNaN(hr)?0:hr,Mr=isNaN(Mr)?0:Mr,this.ctx.transform=new U(qe,_t,Ot,Jt,hr,Mr)};var ut=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Re.prototype.drawImage=function(qe,_t,Ot,Jt,hr,Mr,$r,Qr,gn){var Rn=this.pdf.getImageProperties(qe),gi=1,Ei=1,sn=1,Ft=1;Jt!==void 0&&Qr!==void 0&&(sn=Qr/Jt,Ft=gn/hr,gi=Rn.width/Jt*Qr/Jt,Ei=Rn.height/hr*gn/hr),Mr===void 0&&(Mr=_t,$r=Ot,_t=0,Ot=0),Jt!==void 0&&Qr===void 0&&(Qr=Jt,gn=hr),Jt===void 0&&Qr===void 0&&(Qr=Rn.width,gn=Rn.height);for(var Wo,Eo=this.ctx.transform.decompose(),Ta=Or(Eo.rotate.shx),Wn=new U,xa=(Wn=(Wn=(Wn=Wn.multiply(Eo.translate)).multiply(Eo.skew)).multiply(Eo.scale)).applyToRectangle(new _(Mr-_t*sn,$r-Ot*Ft,Jt*gi,hr*Ei)),ui=bt.call(this,xa),Ja=[],Ma=0;Ma<ui.length;Ma+=1)Ja.indexOf(ui[Ma])===-1&&Ja.push(ui[Ma]);if(Rt(Ja),this.autoPaging)for(var es=Ja[0],yo=Ja[Ja.length-1],Wa=es;Wa<yo+1;Wa++){this.pdf.setPage(Wa);var Ks=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],uo=Wa===1?this.posY+this.margin[0]:this.margin[0],Ba=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],to=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Sa=Wa===1?0:Ba+(Wa-2)*to;if(this.ctx.clip_path.length!==0){var yl=this.path;Wo=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(Wo,this.posX+this.margin[3],-Sa+uo+this.ctx.prevPageLastElemOffset),kr.call(this,"fill",!0),this.path=yl}var Ds=JSON.parse(JSON.stringify(xa));Ds=Gt([Ds],this.posX+this.margin[3],-Sa+uo+this.ctx.prevPageLastElemOffset)[0];var ga=(Wa>es||Wa<yo)&&ut.call(this);ga&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ks,to,null).clip().discardPath()),this.pdf.addImage(qe,"JPEG",Ds.x,Ds.y,Ds.w,Ds.h,null,null,Ta),ga&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(qe,"JPEG",xa.x,xa.y,xa.w,xa.h,null,null,Ta)};var bt=function(qe,_t,Ot){var Jt=[];_t=_t||this.pdf.internal.pageSize.width,Ot=Ot||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var hr=this.posY+this.ctx.prevPageLastElemOffset;switch(qe.type){default:case"mt":case"lt":Jt.push(Math.floor((qe.y+hr)/Ot)+1);break;case"arc":Jt.push(Math.floor((qe.y+hr-qe.radius)/Ot)+1),Jt.push(Math.floor((qe.y+hr+qe.radius)/Ot)+1);break;case"qct":var Mr=Gr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,qe.x1,qe.y1,qe.x,qe.y);Jt.push(Math.floor((Mr.y+hr)/Ot)+1),Jt.push(Math.floor((Mr.y+Mr.h+hr)/Ot)+1);break;case"bct":var $r=$n(this.ctx.lastPoint.x,this.ctx.lastPoint.y,qe.x1,qe.y1,qe.x2,qe.y2,qe.x,qe.y);Jt.push(Math.floor(($r.y+hr)/Ot)+1),Jt.push(Math.floor(($r.y+$r.h+hr)/Ot)+1);break;case"rect":Jt.push(Math.floor((qe.y+hr)/Ot)+1),Jt.push(Math.floor((qe.y+qe.h+hr)/Ot)+1)}for(var Qr=0;Qr<Jt.length;Qr+=1)for(;this.pdf.internal.getNumberOfPages()<Jt[Qr];)ot.call(this);return Jt},ot=function(){var qe=this.fillStyle,_t=this.strokeStyle,Ot=this.font,Jt=this.lineCap,hr=this.lineWidth,Mr=this.lineJoin;this.pdf.addPage(),this.fillStyle=qe,this.strokeStyle=_t,this.font=Ot,this.lineCap=Jt,this.lineWidth=hr,this.lineJoin=Mr},Gt=function(qe,_t,Ot){for(var Jt=0;Jt<qe.length;Jt++)switch(qe[Jt].type){case"bct":qe[Jt].x2+=_t,qe[Jt].y2+=Ot;case"qct":qe[Jt].x1+=_t,qe[Jt].y1+=Ot;default:qe[Jt].x+=_t,qe[Jt].y+=Ot}return qe},Rt=function(qe){return qe.sort(function(_t,Ot){return _t-Ot})},It=function(qe,_t){for(var Ot,Jt,hr=this.fillStyle,Mr=this.strokeStyle,$r=this.lineCap,Qr=this.lineWidth,gn=Math.abs(Qr*this.ctx.transform.scaleX),Rn=this.lineJoin,gi=JSON.parse(JSON.stringify(this.path)),Ei=JSON.parse(JSON.stringify(this.path)),sn=[],Ft=0;Ft<Ei.length;Ft++)if(Ei[Ft].x!==void 0)for(var Wo=bt.call(this,Ei[Ft]),Eo=0;Eo<Wo.length;Eo+=1)sn.indexOf(Wo[Eo])===-1&&sn.push(Wo[Eo]);for(var Ta=0;Ta<sn.length;Ta++)for(;this.pdf.internal.getNumberOfPages()<sn[Ta];)ot.call(this);if(Rt(sn),this.autoPaging)for(var Wn=sn[0],xa=sn[sn.length-1],ui=Wn;ui<xa+1;ui++){this.pdf.setPage(ui),this.fillStyle=hr,this.strokeStyle=Mr,this.lineCap=$r,this.lineWidth=gn,this.lineJoin=Rn;var Ja=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ma=ui===1?this.posY+this.margin[0]:this.margin[0],es=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],yo=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Wa=ui===1?0:es+(ui-2)*yo;if(this.ctx.clip_path.length!==0){var Ks=this.path;Ot=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(Ot,this.posX+this.margin[3],-Wa+Ma+this.ctx.prevPageLastElemOffset),kr.call(this,qe,!0),this.path=Ks}if(Jt=JSON.parse(JSON.stringify(gi)),this.path=Gt(Jt,this.posX+this.margin[3],-Wa+Ma+this.ctx.prevPageLastElemOffset),_t===!1||ui===0){var uo=(ui>Wn||ui<xa)&&ut.call(this);uo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ja,yo,null).clip().discardPath()),kr.call(this,qe,_t),uo&&this.pdf.restoreGraphicsState()}this.lineWidth=Qr}else this.lineWidth=gn,kr.call(this,qe,_t),this.lineWidth=Qr;this.path=gi},kr=function(qe,_t){if((qe!=="stroke"||_t||!mt.call(this))&&(qe==="stroke"||_t||!ae.call(this))){for(var Ot,Jt,hr=[],Mr=this.path,$r=0;$r<Mr.length;$r++){var Qr=Mr[$r];switch(Qr.type){case"begin":hr.push({begin:!0});break;case"close":hr.push({close:!0});break;case"mt":hr.push({start:Qr,deltas:[],abs:[]});break;case"lt":var gn=hr.length;if(Mr[$r-1]&&!isNaN(Mr[$r-1].x)&&(Ot=[Qr.x-Mr[$r-1].x,Qr.y-Mr[$r-1].y],gn>0)){for(;gn>=0;gn--)if(hr[gn-1].close!==!0&&hr[gn-1].begin!==!0){hr[gn-1].deltas.push(Ot),hr[gn-1].abs.push(Qr);break}}break;case"bct":Ot=[Qr.x1-Mr[$r-1].x,Qr.y1-Mr[$r-1].y,Qr.x2-Mr[$r-1].x,Qr.y2-Mr[$r-1].y,Qr.x-Mr[$r-1].x,Qr.y-Mr[$r-1].y],hr[hr.length-1].deltas.push(Ot);break;case"qct":var Rn=Mr[$r-1].x+2/3*(Qr.x1-Mr[$r-1].x),gi=Mr[$r-1].y+2/3*(Qr.y1-Mr[$r-1].y),Ei=Qr.x+2/3*(Qr.x1-Qr.x),sn=Qr.y+2/3*(Qr.y1-Qr.y),Ft=Qr.x,Wo=Qr.y;Ot=[Rn-Mr[$r-1].x,gi-Mr[$r-1].y,Ei-Mr[$r-1].x,sn-Mr[$r-1].y,Ft-Mr[$r-1].x,Wo-Mr[$r-1].y],hr[hr.length-1].deltas.push(Ot);break;case"arc":hr.push({deltas:[],abs:[],arc:!0}),Array.isArray(hr[hr.length-1].abs)&&hr[hr.length-1].abs.push(Qr)}}Jt=_t?null:qe==="stroke"?"stroke":"fill";for(var Eo=!1,Ta=0;Ta<hr.length;Ta++)if(hr[Ta].arc)for(var Wn=hr[Ta].abs,xa=0;xa<Wn.length;xa++){var ui=Wn[xa];ui.type==="arc"?ir.call(this,ui.x,ui.y,ui.radius,ui.startAngle,ui.endAngle,ui.counterclockwise,void 0,_t,!Eo):Wt.call(this,ui.x,ui.y),Eo=!0}else if(hr[Ta].close===!0)this.pdf.internal.out("h"),Eo=!1;else if(hr[Ta].begin!==!0){var Ja=hr[Ta].start.x,Ma=hr[Ta].start.y;Ht.call(this,hr[Ta].deltas,Ja,Ma),Eo=!0}Jt&&Mt.call(this,Jt),_t&&xr.call(this)}},rn=function(qe){var _t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Ot=_t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return qe-Ot;case"top":return qe+_t-Ot;case"hanging":return qe+_t-2*Ot;case"middle":return qe+_t/2-Ot;default:return qe}},Wr=function(qe){return qe+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Re.prototype.createLinearGradient=function(){var qe=function(){};return qe.colorStops=[],qe.addColorStop=function(_t,Ot){this.colorStops.push([_t,Ot])},qe.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},qe.isCanvasGradient=!0,qe},Re.prototype.createPattern=function(){return this.createLinearGradient()},Re.prototype.createRadialGradient=function(){return this.createLinearGradient()};var ir=function(qe,_t,Ot,Jt,hr,Mr,$r,Qr,gn){for(var Rn=Zr.call(this,Ot,Jt,hr,Mr),gi=0;gi<Rn.length;gi++){var Ei=Rn[gi];gi===0&&(gn?nt.call(this,Ei.x1+qe,Ei.y1+_t):Wt.call(this,Ei.x1+qe,Ei.y1+_t)),Tr.call(this,qe,_t,Ei.x2,Ei.y2,Ei.x3,Ei.y3,Ei.x4,Ei.y4)}Qr?xr.call(this):Mt.call(this,$r)},Mt=function(qe){switch(qe){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},xr=function(){this.pdf.clip(),this.pdf.discardPath()},nt=function(qe,_t){this.pdf.internal.out(a(qe)+" "+l(_t)+" m")},yt=function(qe){var _t;switch(qe.align){case"right":case"end":_t="right";break;case"center":_t="center";break;default:_t="left"}var Ot=this.pdf.getTextDimensions(qe.text),Jt=rn.call(this,qe.y),hr=Wr.call(this,Jt)-Ot.h,Mr=this.ctx.transform.applyToPoint(new O(qe.x,Jt)),$r=this.ctx.transform.decompose(),Qr=new U;Qr=(Qr=(Qr=Qr.multiply($r.translate)).multiply($r.skew)).multiply($r.scale);for(var gn,Rn,gi,Ei=this.ctx.transform.applyToRectangle(new _(qe.x,Jt,Ot.w,Ot.h)),sn=Qr.applyToRectangle(new _(qe.x,hr,Ot.w,Ot.h)),Ft=bt.call(this,sn),Wo=[],Eo=0;Eo<Ft.length;Eo+=1)Wo.indexOf(Ft[Eo])===-1&&Wo.push(Ft[Eo]);if(Rt(Wo),this.autoPaging)for(var Ta=Wo[0],Wn=Wo[Wo.length-1],xa=Ta;xa<Wn+1;xa++){this.pdf.setPage(xa);var ui=xa===1?this.posY+this.margin[0]:this.margin[0],Ja=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ma=this.pdf.internal.pageSize.height-this.margin[2],es=Ma-this.margin[0],yo=this.pdf.internal.pageSize.width-this.margin[1],Wa=yo-this.margin[3],Ks=xa===1?0:Ja+(xa-2)*es;if(this.ctx.clip_path.length!==0){var uo=this.path;gn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(gn,this.posX+this.margin[3],-1*Ks+ui),kr.call(this,"fill",!0),this.path=uo}var Ba=Gt([JSON.parse(JSON.stringify(sn))],this.posX+this.margin[3],-Ks+ui+this.ctx.prevPageLastElemOffset)[0];qe.scale>=.01&&(Rn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Rn*qe.scale),gi=this.lineWidth,this.lineWidth=gi*qe.scale);var to=this.autoPaging!=="text";if(to||Ba.y+Ba.h<=Ma){if(to||Ba.y>=ui&&Ba.x<=yo){var Sa=to?qe.text:this.pdf.splitTextToSize(qe.text,qe.maxWidth||yo-Ba.x)[0],yl=Gt([JSON.parse(JSON.stringify(Ei))],this.posX+this.margin[3],-Ks+ui+this.ctx.prevPageLastElemOffset)[0],Ds=to&&(xa>Ta||xa<Wn)&&ut.call(this);Ds&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Wa,es,null).clip().discardPath()),this.pdf.text(Sa,yl.x,yl.y,{angle:qe.angle,align:_t,renderingMode:qe.renderingMode}),Ds&&this.pdf.restoreGraphicsState()}}else Ba.y<Ma&&(this.ctx.prevPageLastElemOffset+=Ma-Ba.y);qe.scale>=.01&&(this.pdf.setFontSize(Rn),this.lineWidth=gi)}else qe.scale>=.01&&(Rn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Rn*qe.scale),gi=this.lineWidth,this.lineWidth=gi*qe.scale),this.pdf.text(qe.text,Mr.x+this.posX,Mr.y+this.posY,{angle:qe.angle,align:_t,renderingMode:qe.renderingMode,maxWidth:qe.maxWidth}),qe.scale>=.01&&(this.pdf.setFontSize(Rn),this.lineWidth=gi)},Wt=function(qe,_t,Ot,Jt){Ot=Ot||0,Jt=Jt||0,this.pdf.internal.out(a(qe+Ot)+" "+l(_t+Jt)+" l")},Ht=function(qe,_t,Ot){return this.pdf.lines(qe,_t,Ot,null,null)},Tr=function(qe,_t,Ot,Jt,hr,Mr,$r,Qr){this.pdf.internal.out([o(A(Ot+qe)),o(p(Jt+_t)),o(A(hr+qe)),o(p(Mr+_t)),o(A($r+qe)),o(p(Qr+_t)),"c"].join(" "))},Zr=function(qe,_t,Ot,Jt){for(var hr=2*Math.PI,Mr=Math.PI/2;_t>Ot;)_t-=hr;var $r=Math.abs(Ot-_t);$r<hr&&Jt&&($r=hr-$r);for(var Qr=[],gn=Jt?-1:1,Rn=_t;$r>1e-5;){var gi=Rn+gn*Math.min($r,Mr);Qr.push(Jr.call(this,qe,Rn,gi)),$r-=Math.abs(gi-Rn),Rn=gi}return Qr},Jr=function(qe,_t,Ot){var Jt=(Ot-_t)/2,hr=qe*Math.cos(Jt),Mr=qe*Math.sin(Jt),$r=hr,Qr=-Mr,gn=$r*$r+Qr*Qr,Rn=gn+$r*hr+Qr*Mr,gi=4/3*(Math.sqrt(2*gn*Rn)-Rn)/($r*Mr-Qr*hr),Ei=$r-gi*Qr,sn=Qr+gi*$r,Ft=Ei,Wo=-sn,Eo=Jt+_t,Ta=Math.cos(Eo),Wn=Math.sin(Eo);return{x1:qe*Math.cos(_t),y1:qe*Math.sin(_t),x2:Ei*Ta-sn*Wn,y2:Ei*Wn+sn*Ta,x3:Ft*Ta-Wo*Wn,y3:Ft*Wn+Wo*Ta,x4:qe*Math.cos(Ot),y4:qe*Math.sin(Ot)}},Or=function(qe){return 180*qe/Math.PI},Gr=function(qe,_t,Ot,Jt,hr,Mr){var $r=qe+.5*(Ot-qe),Qr=_t+.5*(Jt-_t),gn=hr+.5*(Ot-hr),Rn=Mr+.5*(Jt-Mr),gi=Math.min(qe,hr,$r,gn),Ei=Math.max(qe,hr,$r,gn),sn=Math.min(_t,Mr,Qr,Rn),Ft=Math.max(_t,Mr,Qr,Rn);return new _(gi,sn,Ei-gi,Ft-sn)},$n=function(qe,_t,Ot,Jt,hr,Mr,$r,Qr){var gn,Rn,gi,Ei,sn,Ft,Wo,Eo,Ta,Wn,xa,ui,Ja,Ma,es=Ot-qe,yo=Jt-_t,Wa=hr-Ot,Ks=Mr-Jt,uo=$r-hr,Ba=Qr-Mr;for(Rn=0;Rn<41;Rn++)Ta=(Wo=(gi=qe+(gn=Rn/40)*es)+gn*((sn=Ot+gn*Wa)-gi))+gn*(sn+gn*(hr+gn*uo-sn)-Wo),Wn=(Eo=(Ei=_t+gn*yo)+gn*((Ft=Jt+gn*Ks)-Ei))+gn*(Ft+gn*(Mr+gn*Ba-Ft)-Eo),Rn==0?(xa=Ta,ui=Wn,Ja=Ta,Ma=Wn):(xa=Math.min(xa,Ta),ui=Math.min(ui,Wn),Ja=Math.max(Ja,Ta),Ma=Math.max(Ma,Wn));return new _(Math.round(xa),Math.round(ui),Math.round(Ja-xa),Math.round(Ma-ui))},En=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var qe,_t,Ot=(qe=this.ctx.lineDash,_t=this.ctx.lineDashOffset,JSON.stringify({lineDash:qe,lineDashOffset:_t}));this.prevLineDash!==Ot&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Ot)}}})(ua.API),function(n){var o=function(O){var _,U,Z,oe,Re,ze,ae,mt,ut,bt;for(/[^\x00-\xFF]/.test(O),U=[],Z=0,oe=(O+=_="\0\0\0\0".slice(O.length%4||4)).length;oe>Z;Z+=4)(Re=(O.charCodeAt(Z)<<24)+(O.charCodeAt(Z+1)<<16)+(O.charCodeAt(Z+2)<<8)+O.charCodeAt(Z+3))!==0?(ze=(Re=((Re=((Re=((Re=(Re-(bt=Re%85))/85)-(ut=Re%85))/85)-(mt=Re%85))/85)-(ae=Re%85))/85)%85,U.push(ze+33,ae+33,mt+33,ut+33,bt+33)):U.push(122);return function(ot,Gt){for(var Rt=Gt;Rt>0;Rt--)ot.pop()}(U,_.length),String.fromCharCode.apply(String,U)+"~>"},a=function(O){var _,U,Z,oe,Re,ze=String,ae="length",mt=255,ut="charCodeAt",bt="slice",ot="replace";for(O[bt](-2),O=O[bt](0,-2)[ot](/\s/g,"")[ot]("z","!!!!!"),Z=[],oe=0,Re=(O+=_="uuuuu"[bt](O[ae]%5||5))[ae];Re>oe;oe+=5)U=52200625*(O[ut](oe)-33)+614125*(O[ut](oe+1)-33)+7225*(O[ut](oe+2)-33)+85*(O[ut](oe+3)-33)+(O[ut](oe+4)-33),Z.push(mt&U>>24,mt&U>>16,mt&U>>8,mt&U);return function(Gt,Rt){for(var It=Rt;It>0;It--)Gt.pop()}(Z,_[ae]),ze.fromCharCode.apply(ze,Z)},l=function(O){return O.split("").map(function(_){return("0"+_.charCodeAt().toString(16)).slice(-2)}).join("")+">"},A=function(O){var _=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((O=O.replace(/\s/g,"")).indexOf(">")!==-1&&(O=O.substr(0,O.indexOf(">"))),O.length%2&&(O+="0"),_.test(O)===!1)return"";for(var U="",Z=0;Z<O.length;Z+=2)U+=String.fromCharCode("0x"+(O[Z]+O[Z+1]));return U},p=function(O){for(var _=new Uint8Array(O.length),U=O.length;U--;)_[U]=O.charCodeAt(U);return(_=Ki(_)).reduce(function(Z,oe){return Z+String.fromCharCode(oe)},"")};n.processDataByFilters=function(O,_){var U=0,Z=O||"",oe=[];for(typeof(_=_||[])=="string"&&(_=[_]),U=0;U<_.length;U+=1)switch(_[U]){case"ASCII85Decode":case"/ASCII85Decode":Z=a(Z),oe.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Z=o(Z),oe.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Z=A(Z),oe.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Z=l(Z),oe.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Z=p(Z),oe.push("/FlateDecode");break;default:throw new Error('The filter: "'+_[U]+'" is not implemented')}return{data:Z,reverseChain:oe.reverse().join(" ")}}}(ua.API),function(n){n.loadFile=function(o,a,l){return function(A,p,O){p=p!==!1,O=typeof O=="function"?O:function(){};var _=void 0;try{_=function(U,Z,oe){var Re=new XMLHttpRequest,ze=0,ae=function(mt){var ut=mt.length,bt=[],ot=String.fromCharCode;for(ze=0;ze<ut;ze+=1)bt.push(ot(255&mt.charCodeAt(ze)));return bt.join("")};if(Re.open("GET",U,!Z),Re.overrideMimeType("text/plain; charset=x-user-defined"),Z===!1&&(Re.onload=function(){Re.status===200?oe(ae(this.responseText)):oe(void 0)}),Re.send(null),Z&&Re.status===200)return ae(Re.responseText)}(A,p,O)}catch(U){}return _}(o,a,l)},n.loadImageFile=n.loadFile}(ua.API),function(n){function o(){return(Za.html2canvas?Promise.resolve(Za.html2canvas):Promise.resolve().then(x.t.bind(x,64270,23))).catch(function(_){return Promise.reject(new Error("Could not load html2canvas: "+_))}).then(function(_){return _.default?_.default:_})}function a(){return(Za.DOMPurify?Promise.resolve(Za.DOMPurify):x.e(7573).then(x.bind(x,7573))).catch(function(_){return Promise.reject(new Error("Could not load dompurify: "+_))}).then(function(_){return _.default?_.default:_})}var l=function(_){var U=(0,me.Z)(_);return U==="undefined"?"undefined":U==="string"||_ instanceof String?"string":U==="number"||_ instanceof Number?"number":U==="function"||_ instanceof Function?"function":_&&_.constructor===Array?"array":_&&_.nodeType===1?"element":U==="object"?"object":"unknown"},A=function(_,U){var Z=document.createElement(_);for(var oe in U.className&&(Z.className=U.className),U.innerHTML&&U.dompurify&&(Z.innerHTML=U.dompurify.sanitize(U.innerHTML)),U.style)Z.style[oe]=U.style[oe];return Z},p=function _(U,Z){for(var oe=U.nodeType===3?document.createTextNode(U.nodeValue):U.cloneNode(!1),Re=U.firstChild;Re;Re=Re.nextSibling)Z!==!0&&Re.nodeType===1&&Re.nodeName==="SCRIPT"||oe.appendChild(_(Re,Z));return U.nodeType===1&&(U.nodeName==="CANVAS"?(oe.width=U.width,oe.height=U.height,oe.getContext("2d").drawImage(U,0,0)):U.nodeName!=="TEXTAREA"&&U.nodeName!=="SELECT"||(oe.value=U.value),oe.addEventListener("load",function(){oe.scrollTop=U.scrollTop,oe.scrollLeft=U.scrollLeft},!0)),oe},O=function _(U){var Z=Object.assign(_.convert(Promise.resolve()),JSON.parse(JSON.stringify(_.template))),oe=_.convert(Promise.resolve(),Z);return(oe=oe.setProgress(1,_,1,[_])).set(U)};(O.prototype=Object.create(Promise.prototype)).constructor=O,O.convert=function(_,U){return _.__proto__=U||O.prototype,_},O.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},O.prototype.from=function(_,U){return this.then(function(){switch(U=U||function(Z){switch(l(Z)){case"string":return"string";case"element":return Z.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(_),U){case"string":return this.then(a).then(function(Z){return this.set({src:A("div",{innerHTML:_,dompurify:Z})})});case"element":return this.set({src:_});case"canvas":return this.set({canvas:_});case"img":return this.set({img:_});default:return this.error("Unknown source type.")}})},O.prototype.to=function(_){switch(_){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},O.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var _={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},U=p(this.prop.src,this.opt.html2canvas.javascriptEnabled);U.tagName==="BODY"&&(_.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=A("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=A("div",{className:"html2pdf__container",style:_}),this.prop.container.appendChild(U),this.prop.container.firstChild.appendChild(A("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},O.prototype.toCanvas=function(){var _=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(_).then(o).then(function(U){var Z=Object.assign({},this.opt.html2canvas);return delete Z.onrendered,U(this.prop.container,Z)}).then(function(U){(this.opt.html2canvas.onrendered||function(){})(U),this.prop.canvas=U,document.body.removeChild(this.prop.overlay)})},O.prototype.toContext2d=function(){var _=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(_).then(o).then(function(U){var Z=this.opt.jsPDF,oe=this.opt.fontFaces,Re=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,ze=Object.assign({async:!0,allowTaint:!0,scale:Re,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete ze.onrendered,Z.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Z.context2d.posX=this.opt.x,Z.context2d.posY=this.opt.y,Z.context2d.margin=this.opt.margin,Z.context2d.fontFaces=oe,oe)for(var ae=0;ae<oe.length;++ae){var mt=oe[ae],ut=mt.src.find(function(bt){return bt.format==="truetype"});ut&&Z.addFont(ut.url,mt.ref.name,mt.ref.style)}return ze.windowHeight=ze.windowHeight||0,ze.windowHeight=ze.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):ze.windowHeight,Z.context2d.save(!0),U(this.prop.container,ze)}).then(function(U){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(U),this.prop.canvas=U,document.body.removeChild(this.prop.overlay)})},O.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var _=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=_})},O.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},O.prototype.output=function(_,U,Z){return(Z=Z||"pdf").toLowerCase()==="img"||Z.toLowerCase()==="image"?this.outputImg(_,U):this.outputPdf(_,U)},O.prototype.outputPdf=function(_,U){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(_,U)})},O.prototype.outputImg=function(_){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(_){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+_+'" is not supported.'}})},O.prototype.save=function(_){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(_?{filename:_}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},O.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},O.prototype.set=function(_){if(l(_)!=="object")return this;var U=Object.keys(_||{}).map(function(Z){if(Z in O.template.prop)return function(){this.prop[Z]=_[Z]};switch(Z){case"margin":return this.setMargin.bind(this,_.margin);case"jsPDF":return function(){return this.opt.jsPDF=_.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,_.pageSize);default:return function(){this.opt[Z]=_[Z]}}},this);return this.then(function(){return this.thenList(U)})},O.prototype.get=function(_,U){return this.then(function(){var Z=_ in O.template.prop?this.prop[_]:this.opt[_];return U?U(Z):Z})},O.prototype.setMargin=function(_){return this.then(function(){switch(l(_)){case"number":_=[_,_,_,_];case"array":if(_.length===2&&(_=[_[0],_[1],_[0],_[1]]),_.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=_}).then(this.setPageSize)},O.prototype.setPageSize=function(_){function U(Z,oe){return Math.floor(Z*oe/72*96)}return this.then(function(){(_=_||ua.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(_.inner={width:_.width-this.opt.margin[1]-this.opt.margin[3],height:_.height-this.opt.margin[0]-this.opt.margin[2]},_.inner.px={width:U(_.inner.width,_.k),height:U(_.inner.height,_.k)},_.inner.ratio=_.inner.height/_.inner.width),this.prop.pageSize=_})},O.prototype.setProgress=function(_,U,Z,oe){return _!=null&&(this.progress.val=_),U!=null&&(this.progress.state=U),Z!=null&&(this.progress.n=Z),oe!=null&&(this.progress.stack=oe),this.progress.ratio=this.progress.val/this.progress.state,this},O.prototype.updateProgress=function(_,U,Z,oe){return this.setProgress(_?this.progress.val+_:null,U||null,Z?this.progress.n+Z:null,oe?this.progress.stack.concat(oe):null)},O.prototype.then=function(_,U){var Z=this;return this.thenCore(_,U,function(oe,Re){return Z.updateProgress(null,null,1,[oe]),Promise.prototype.then.call(this,function(ze){return Z.updateProgress(null,oe),ze}).then(oe,Re).then(function(ze){return Z.updateProgress(1),ze})})},O.prototype.thenCore=function(_,U,Z){Z=Z||Promise.prototype.then;var oe=this;_&&(_=_.bind(oe)),U&&(U=U.bind(oe));var Re=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?oe:O.convert(Object.assign({},oe),Promise.prototype),ze=Z.call(Re,_,U);return O.convert(ze,oe.__proto__)},O.prototype.thenExternal=function(_,U){return Promise.prototype.then.call(this,_,U)},O.prototype.thenList=function(_){var U=this;return _.forEach(function(Z){U=U.thenCore(Z)}),U},O.prototype.catch=function(_){_&&(_=_.bind(this));var U=Promise.prototype.catch.call(this,_);return O.convert(U,this)},O.prototype.catchExternal=function(_){return Promise.prototype.catch.call(this,_)},O.prototype.error=function(_){return this.then(function(){throw new Error(_)})},O.prototype.using=O.prototype.set,O.prototype.saveAs=O.prototype.save,O.prototype.export=O.prototype.output,O.prototype.run=O.prototype.then,ua.getPageSize=function(_,U,Z){if((0,me.Z)(_)==="object"){var oe=_;_=oe.orientation,U=oe.unit||U,Z=oe.format||Z}U=U||"mm",Z=Z||"a4",_=(""+(_||"P")).toLowerCase();var Re,ze=(""+Z).toLowerCase(),ae={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(U){case"pt":Re=1;break;case"mm":Re=72/25.4;break;case"cm":Re=72/2.54;break;case"in":Re=72;break;case"px":Re=.75;break;case"pc":case"em":Re=12;break;case"ex":Re=6;break;default:throw"Invalid unit: "+U}var mt,ut=0,bt=0;if(ae.hasOwnProperty(ze))ut=ae[ze][1]/Re,bt=ae[ze][0]/Re;else try{ut=Z[1],bt=Z[0]}catch(ot){throw new Error("Invalid format: "+Z)}if(_==="p"||_==="portrait")_="p",bt>ut&&(mt=bt,bt=ut,ut=mt);else{if(_!=="l"&&_!=="landscape")throw"Invalid orientation: "+_;_="l",ut>bt&&(mt=bt,bt=ut,ut=mt)}return{width:bt,height:ut,unit:U,k:Re,orientation:_}},n.html=function(_,U){(U=U||{}).callback=U.callback||function(){},U.html2canvas=U.html2canvas||{},U.html2canvas.canvas=U.html2canvas.canvas||this.canvas,U.jsPDF=U.jsPDF||this,U.fontFaces=U.fontFaces?U.fontFaces.map(XA):null;var Z=new O(U);return U.worker?Z:Z.from(_).doCallback()}}(ua.API),ua.API.addJS=function(n){return Qh=n,this.internal.events.subscribe("postPutResources",function(){Hc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Hc+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),vg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Qh+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Hc!==void 0&&vg!==void 0&&this.internal.out("/Names <</JavaScript "+Hc+" 0 R>>")}),this},function(n){var o;n.events.push(["postPutResources",function(){var a=this,l=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var A=a.outline.render().split(/\r\n/),p=0;p<A.length;p++){var O=A[p],_=l.exec(O);if(_!=null){var U=_[1];a.internal.newObjectDeferredBegin(U,!1)}a.internal.write(O)}if(this.outline.createNamedDestinations){var Z=this.internal.pages.length,oe=[];for(p=0;p<Z;p++){var Re=a.internal.newObject();oe.push(Re);var ze=a.internal.getPageInfo(p+1);a.internal.write("<< /D["+ze.objId+" 0 R /XYZ null null null]>> endobj")}var ae=a.internal.newObject();for(a.internal.write("<< /Names [ "),p=0;p<oe.length;p++)a.internal.write("(page_"+(p+1)+")"+oe[p]+" 0 R");a.internal.write(" ] >>","endobj"),o=a.internal.newObject(),a.internal.write("<< /Dests "+ae+" 0 R"),a.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var a=this;a.outline.root.children.length>0&&(a.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&a.internal.write("/Names "+o+" 0 R"))}]),n.events.push(["initialized",function(){var a=this;a.outline={createNamedDestinations:!1,root:{children:[]}},a.outline.add=function(l,A,p){var O={title:A,options:p,children:[]};return l==null&&(l=this.root),l.children.push(O),O},a.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=a,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},a.outline.genIds_r=function(l){l.id=a.internal.newObjectDeferred();for(var A=0;A<l.children.length;A++)this.genIds_r(l.children[A])},a.outline.renderRoot=function(l){this.objStart(l),this.line("/Type /Outlines"),l.children.length>0&&(this.line("/First "+this.makeRef(l.children[0])),this.line("/Last "+this.makeRef(l.children[l.children.length-1]))),this.line("/Count "+this.count_r({count:0},l)),this.objEnd()},a.outline.renderItems=function(l){for(var A=this.ctx.pdf.internal.getVerticalCoordinateString,p=0;p<l.children.length;p++){var O=l.children[p];this.objStart(O),this.line("/Title "+this.makeString(O.title)),this.line("/Parent "+this.makeRef(l)),p>0&&this.line("/Prev "+this.makeRef(l.children[p-1])),p<l.children.length-1&&this.line("/Next "+this.makeRef(l.children[p+1])),O.children.length>0&&(this.line("/First "+this.makeRef(O.children[0])),this.line("/Last "+this.makeRef(O.children[O.children.length-1])));var _=this.count=this.count_r({count:0},O);if(_>0&&this.line("/Count "+_),O.options&&O.options.pageNumber){var U=a.internal.getPageInfo(O.options.pageNumber);this.line("/Dest ["+U.objId+" 0 R /XYZ 0 "+A(0)+" 0]")}this.objEnd()}for(var Z=0;Z<l.children.length;Z++)this.renderItems(l.children[Z])},a.outline.line=function(l){this.ctx.val+=l+`\r
`},a.outline.makeRef=function(l){return l.id+" 0 R"},a.outline.makeString=function(l){return"("+a.internal.pdfEscape(l)+")"},a.outline.objStart=function(l){this.ctx.val+=`\r
`+l.id+` 0 obj\r
<<\r
`},a.outline.objEnd=function(){this.ctx.val+=`>> \r
endobj\r
`},a.outline.count_r=function(l,A){for(var p=0;p<A.children.length;p++)l.count++,this.count_r(l,A.children[p]);return l.count}}])}(ua.API),function(n){var o=[192,193,194,195,196,197,198,199];n.processJPEG=function(a,l,A,p,O,_){var U,Z=this.decode.DCT_DECODE,oe=null;if(typeof a=="string"||this.__addimage__.isArrayBuffer(a)||this.__addimage__.isArrayBufferView(a)){switch(a=O||a,a=this.__addimage__.isArrayBuffer(a)?new Uint8Array(a):a,U=function(Re){for(var ze,ae=256*Re.charCodeAt(4)+Re.charCodeAt(5),mt=Re.length,ut={width:0,height:0,numcomponents:1},bt=4;bt<mt;bt+=2){if(bt+=ae,o.indexOf(Re.charCodeAt(bt+1))!==-1){ze=256*Re.charCodeAt(bt+5)+Re.charCodeAt(bt+6),ut={width:256*Re.charCodeAt(bt+7)+Re.charCodeAt(bt+8),height:ze,numcomponents:Re.charCodeAt(bt+9)};break}ae=256*Re.charCodeAt(bt+2)+Re.charCodeAt(bt+3)}return ut}(a=this.__addimage__.isArrayBufferView(a)?this.__addimage__.arrayBufferToBinaryString(a):a),U.numcomponents){case 1:_=this.color_spaces.DEVICE_GRAY;break;case 4:_=this.color_spaces.DEVICE_CMYK;break;case 3:_=this.color_spaces.DEVICE_RGB}oe={data:a,width:U.width,height:U.height,colorSpace:_,bitsPerComponent:8,filter:Z,index:l,alias:A}}return oe}}(ua.API),ua.API.processPNG=function(n,o,a,l){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var A,p=Ys(n,{checkCrc:!0}),O=p.width,_=p.height,U=p.channels,Z=p.palette,oe=p.depth;A=Z&&U===1?function(ir){for(var Mt=ir.width,xr=ir.height,nt=ir.data,yt=ir.palette,Wt=ir.depth,Ht=!1,Tr=[],Zr=[],Jr=void 0,Or=!1,Gr=0,$n=0;$n<yt.length;$n++){var En=(0,wi.Z)(yt[$n],4),qe=En[0],_t=En[1],Ot=En[2],Jt=En[3];Tr.push(qe,_t,Ot),Jt!=null&&(Jt===0?(Gr++,Zr.length<1&&Zr.push($n)):Jt<255&&(Or=!0))}if(Or||Gr>1){Ht=!0,Zr=void 0;var hr=Mt*xr;Jr=new Uint8Array(hr);for(var Mr=new DataView(nt.buffer),$r=0;$r<hr;$r++){var Qr=um(Mr,$r,Wt),gn=(0,wi.Z)(yt[Qr],4)[3];Jr[$r]=gn}}else Gr===0&&(Zr=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:Ht?8:void 0,colorBytes:nt,alphaBytes:Jr,needSMask:Ht,palette:Tr,mask:Zr}}(p):U===2||U===4?function(ir){for(var Mt=ir.data,xr=ir.width,nt=ir.height,yt=ir.channels,Wt=ir.depth,Ht=yt===2?"DeviceGray":"DeviceRGB",Tr=yt-1,Zr=xr*nt,Jr=Tr,Or=Zr*Jr,Gr=1*Zr,$n=Math.ceil(Or*Wt/8),En=Math.ceil(Gr*Wt/8),qe=new Uint8Array($n),_t=new Uint8Array(En),Ot=new DataView(Mt.buffer),Jt=new DataView(qe.buffer),hr=new DataView(_t.buffer),Mr=!1,$r=0;$r<Zr;$r++){for(var Qr=$r*yt,gn=0;gn<Jr;gn++)Hh(Jt,um(Ot,Qr+gn,Wt),$r*Jr+gn,Wt);var Rn=um(Ot,Qr+Jr,Wt);Rn<(1<<Wt)-1&&(Mr=!0),Hh(hr,Rn,1*$r,Wt)}return{colorSpace:Ht,colorsPerPixel:Tr,sMaskBitsPerComponent:Mr?Wt:void 0,colorBytes:qe,alphaBytes:_t,needSMask:Mr}}(p):function(ir){var Mt=ir.data,xr=ir.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:xr,colorsPerPixel:xr==="DeviceGray"?1:3,colorBytes:Mt instanceof Uint16Array?function(nt){for(var yt=nt.length,Wt=new Uint8Array(2*yt),Ht=new DataView(Wt.buffer,Wt.byteOffset,Wt.byteLength),Tr=0;Tr<yt;Tr++)Ht.setUint16(2*Tr,nt[Tr],!1);return Wt}(Mt):Mt,needSMask:!1}}(p);var Re,ze,ae,mt=A,ut=mt.colorSpace,bt=mt.colorsPerPixel,ot=mt.sMaskBitsPerComponent,Gt=mt.colorBytes,Rt=mt.alphaBytes,It=mt.needSMask,kr=mt.palette,rn=mt.mask,Wr=null;return l!==ua.API.image_compression.NONE&&typeof Ki=="function"?(Wr=function(ir){var Mt;switch(ir){case ua.API.image_compression.FAST:Mt=11;break;case ua.API.image_compression.MEDIUM:Mt=13;break;case ua.API.image_compression.SLOW:Mt=14;break;default:Mt=12}return Mt}(l),Re=this.decode.FLATE_DECODE,ze="/Predictor ".concat(Wr," /Colors ").concat(bt," /BitsPerComponent ").concat(oe," /Columns ").concat(O),n=cm(Gt,Math.ceil(O*bt*oe/8),bt,oe,l),It&&(ae=cm(Rt,Math.ceil(O*ot/8),1,ot,l))):(Re=void 0,ze=void 0,n=Gt,It&&(ae=Rt)),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(ae&&this.__addimage__.isArrayBuffer(ae)||this.__addimage__.isArrayBufferView(ae))&&(ae=this.__addimage__.arrayBufferToBinaryString(ae)),{alias:a,data:n,index:o,filter:Re,decodeParameters:ze,transparency:rn,palette:kr,sMask:ae,predictor:Wr,width:O,height:_,bitsPerComponent:oe,sMaskBitsPerComponent:ot,colorSpace:ut}}},function(n){n.processGIF89A=function(o,a,l,A){var p=new Ym(o),O=p.width,_=p.height,U=[];p.decodeAndBlitFrameRGBA(0,U);var Z={data:U,width:O,height:_},oe=new qm(100).encode(Z,100);return n.processJPEG.call(this,oe,a,l,A)},n.processGIF87A=n.processGIF89A}(ua.API),du.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var o=0;o<n;o++){var a=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),p=this.datav.getUint8(this.pos++,!0);this.palette[o]={red:A,green:l,blue:a,quad:p}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},du.prototype.parseBGR=function(){this.pos=this.offset;try{var n="bit"+this.bitPP,o=this.width*this.height*4;this.data=new Uint8Array(o),this[n]()}catch(a){ks.log("bit decode error:"+a)}},du.prototype.bit1=function(){var n,o=Math.ceil(this.width/8),a=o%4;for(n=this.height-1;n>=0;n--){for(var l=this.bottom_up?n:this.height-1-n,A=0;A<o;A++)for(var p=this.datav.getUint8(this.pos++,!0),O=l*this.width*4+8*A*4,_=0;_<8&&8*A+_<this.width;_++){var U=this.palette[p>>7-_&1];this.data[O+4*_]=U.blue,this.data[O+4*_+1]=U.green,this.data[O+4*_+2]=U.red,this.data[O+4*_+3]=255}a!==0&&(this.pos+=4-a)}},du.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),o=n%4,a=this.height-1;a>=0;a--){for(var l=this.bottom_up?a:this.height-1-a,A=0;A<n;A++){var p=this.datav.getUint8(this.pos++,!0),O=l*this.width*4+2*A*4,_=p>>4,U=15&p,Z=this.palette[_];if(this.data[O]=Z.blue,this.data[O+1]=Z.green,this.data[O+2]=Z.red,this.data[O+3]=255,2*A+1>=this.width)break;Z=this.palette[U],this.data[O+4]=Z.blue,this.data[O+4+1]=Z.green,this.data[O+4+2]=Z.red,this.data[O+4+3]=255}o!==0&&(this.pos+=4-o)}},du.prototype.bit8=function(){for(var n=this.width%4,o=this.height-1;o>=0;o--){for(var a=this.bottom_up?o:this.height-1-o,l=0;l<this.width;l++){var A=this.datav.getUint8(this.pos++,!0),p=a*this.width*4+4*l;if(A<this.palette.length){var O=this.palette[A];this.data[p]=O.red,this.data[p+1]=O.green,this.data[p+2]=O.blue,this.data[p+3]=255}else this.data[p]=255,this.data[p+1]=255,this.data[p+2]=255,this.data[p+3]=255}n!==0&&(this.pos+=4-n)}},du.prototype.bit15=function(){for(var n=this.width%3,o=parseInt("11111",2),a=this.height-1;a>=0;a--){for(var l=this.bottom_up?a:this.height-1-a,A=0;A<this.width;A++){var p=this.datav.getUint16(this.pos,!0);this.pos+=2;var O=(p&o)/o*255|0,_=(p>>5&o)/o*255|0,U=(p>>10&o)/o*255|0,Z=p>>15?255:0,oe=l*this.width*4+4*A;this.data[oe]=U,this.data[oe+1]=_,this.data[oe+2]=O,this.data[oe+3]=Z}this.pos+=n}},du.prototype.bit16=function(){for(var n=this.width%3,o=parseInt("11111",2),a=parseInt("111111",2),l=this.height-1;l>=0;l--){for(var A=this.bottom_up?l:this.height-1-l,p=0;p<this.width;p++){var O=this.datav.getUint16(this.pos,!0);this.pos+=2;var _=(O&o)/o*255|0,U=(O>>5&a)/a*255|0,Z=(O>>11)/o*255|0,oe=A*this.width*4+4*p;this.data[oe]=Z,this.data[oe+1]=U,this.data[oe+2]=_,this.data[oe+3]=255}this.pos+=n}},du.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var o=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var l=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),p=this.datav.getUint8(this.pos++,!0),O=o*this.width*4+4*a;this.data[O]=p,this.data[O+1]=A,this.data[O+2]=l,this.data[O+3]=255}this.pos+=this.width%4}},du.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var o=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var l=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),p=this.datav.getUint8(this.pos++,!0),O=this.datav.getUint8(this.pos++,!0),_=o*this.width*4+4*a;this.data[_]=p,this.data[_+1]=A,this.data[_+2]=l,this.data[_+3]=O}},du.prototype.getData=function(){return this.data},function(n){n.processBMP=function(o,a,l,A){var p=new du(o,!1),O=p.width,_=p.height,U={data:p.getData(),width:O,height:_},Z=new qm(100).encode(U,100);return n.processJPEG.call(this,Z,a,l,A)}}(ua.API),Ip.prototype.getData=function(){return this.data},function(n){n.processWEBP=function(o,a,l,A){var p=new Ip(o),O=p.width,_=p.height,U={data:p.getData(),width:O,height:_},Z=new qm(100).encode(U,100);return n.processJPEG.call(this,Z,a,l,A)}}(ua.API),ua.API.processRGBA=function(n,o,a){for(var l=n.data,A=l.length,p=new Uint8Array(A/4*3),O=new Uint8Array(A/4),_=0,U=0,Z=0;Z<A;Z+=4){var oe=l[Z],Re=l[Z+1],ze=l[Z+2],ae=l[Z+3];p[_++]=oe,p[_++]=Re,p[_++]=ze,O[U++]=ae}var mt=this.__addimage__.arrayBufferToBinaryString(p);return{alpha:this.__addimage__.arrayBufferToBinaryString(O),data:mt,index:o,alias:a,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},ua.API.setLanguage=function(n){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[n]!==void 0&&(this.internal.languageSettings.languageCode=n,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},Kh=ua.API,lm=Kh.getCharWidthsArray=function(n,o){var a,l,A=(o=o||{}).font||this.internal.getFont(),p=o.fontSize||this.internal.getFontSize(),O=o.charSpace||this.internal.getCharSpace(),_=o.widths?o.widths:A.metadata.Unicode.widths,U=_.fof?_.fof:1,Z=o.kerning?o.kerning:A.metadata.Unicode.kerning,oe=Z.fof?Z.fof:1,Re=o.doKerning!==!1,ze=0,ae=n.length,mt=0,ut=_[0]||U,bt=[];for(a=0;a<ae;a++)l=n.charCodeAt(a),typeof A.metadata.widthOfString=="function"?bt.push((A.metadata.widthOfGlyph(A.metadata.characterToGlyph(l))+O*(1e3/p)||0)/1e3):(ze=Re&&(0,me.Z)(Z[l])==="object"&&!isNaN(parseInt(Z[l][mt],10))?Z[l][mt]/oe:0,bt.push((_[l]||ut)/U+ze)),mt=l;return bt},bg=Kh.getStringUnitWidth=function(n,o){var a=(o=o||{}).fontSize||this.internal.getFontSize(),l=o.font||this.internal.getFont(),A=o.charSpace||this.internal.getCharSpace();return Kh.processArabic&&(n=Kh.processArabic(n)),typeof l.metadata.widthOfString=="function"?l.metadata.widthOfString(n,a,A)/a:lm.apply(this,arguments).reduce(function(p,O){return p+O},0)},Gm=function(n,o,a,l){for(var A=[],p=0,O=n.length,_=0;p!==O&&_+o[p]<a;)_+=o[p],p++;A.push(n.slice(0,p));var U=p;for(_=0;p!==O;)_+o[p]>l&&(A.push(n.slice(U,p)),_=0,U=p),_+=o[p],p++;return U!==p&&A.push(n.slice(U,p)),A},yg=function(n,o,a){a||(a={});var l,A,p,O,_,U,Z,oe=[],Re=[oe],ze=a.textIndent||0,ae=0,mt=0,ut=n.split(" "),bt=lm.apply(this,[" ",a])[0];if(U=a.lineIndent===-1?ut[0].length+2:a.lineIndent||0){var ot=Array(U).join(" "),Gt=[];ut.map(function(It){(It=It.split(/\s*\n/)).length>1?Gt=Gt.concat(It.map(function(kr,rn){return(rn&&kr.length?`
`:"")+kr})):Gt.push(It[0])}),ut=Gt,U=bg.apply(this,[ot,a])}for(p=0,O=ut.length;p<O;p++){var Rt=0;if(l=ut[p],U&&l[0]==`
`&&(l=l.substr(1),Rt=1),ze+ae+(mt=(A=lm.apply(this,[l,a])).reduce(function(It,kr){return It+kr},0))>o||Rt){if(mt>o){for(_=Gm.apply(this,[l,A,o-(ze+ae),o]),oe.push(_.shift()),oe=[_.pop()];_.length;)Re.push([_.shift()]);mt=A.slice(l.length-(oe[0]?oe[0].length:0)).reduce(function(It,kr){return It+kr},0)}else oe=[l];Re.push(oe),ze=mt+U,ae=bt}else oe.push(l),ze+=ae+mt,ae=bt}return Z=U?function(It,kr){return(kr?ot:"")+It.join(" ")}:function(It){return It.join(" ")},Re.map(Z)},Kh.splitTextToSize=function(n,o,a){var l,A=(a=a||{}).fontSize||this.internal.getFontSize(),p=function(oe){if(oe.widths&&oe.kerning)return{widths:oe.widths,kerning:oe.kerning};var Re=this.internal.getFont(oe.fontName,oe.fontStyle),ze="Unicode";return Re.metadata[ze]?{widths:Re.metadata[ze].widths||{0:1},kerning:Re.metadata[ze].kerning||{}}:{font:Re.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,a);l=Array.isArray(n)?n:String(n).split(/\r?\n/);var O=1*this.internal.scaleFactor*o/A;p.textIndent=a.textIndent?1*a.textIndent*this.internal.scaleFactor/A:0,p.lineIndent=a.lineIndent;var _,U,Z=[];for(_=0,U=l.length;_<U;_++)Z=Z.concat(yg.apply(this,[l[_],O,p]));return Z},function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var o="0123456789abcdef",a="klmnopqrstuvwxyz",l={},A={},p=0;p<16;p++)l[a[p]]=o[p],A[o[p]]=a[p];var O=function(ze){return"0x"+parseInt(ze,10).toString(16)},_=n.__fontmetrics__.compress=function(ze){var ae,mt,ut,bt,ot=["{"];for(var Gt in ze){if(ae=ze[Gt],isNaN(parseInt(Gt,10))?mt="'"+Gt+"'":(Gt=parseInt(Gt,10),mt=(mt=O(Gt).slice(2)).slice(0,-1)+A[mt.slice(-1)]),typeof ae=="number")ae<0?(ut=O(ae).slice(3),bt="-"):(ut=O(ae).slice(2),bt=""),ut=bt+ut.slice(0,-1)+A[ut.slice(-1)];else{if((0,me.Z)(ae)!=="object")throw new Error("Don't know what to do with value type "+(0,me.Z)(ae)+".");ut=_(ae)}ot.push(mt+ut)}return ot.push("}"),ot.join("")},U=n.__fontmetrics__.uncompress=function(ze){if(typeof ze!="string")throw new Error("Invalid argument passed to uncompress.");for(var ae,mt,ut,bt,ot={},Gt=1,Rt=ot,It=[],kr="",rn="",Wr=ze.length-1,ir=1;ir<Wr;ir+=1)(bt=ze[ir])=="'"?ae?(ut=ae.join(""),ae=void 0):ae=[]:ae?ae.push(bt):bt=="{"?(It.push([Rt,ut]),Rt={},ut=void 0):bt=="}"?((mt=It.pop())[0][mt[1]]=Rt,ut=void 0,Rt=mt[0]):bt=="-"?Gt=-1:ut===void 0?l.hasOwnProperty(bt)?(kr+=l[bt],ut=parseInt(kr,16)*Gt,Gt=1,kr=""):kr+=bt:l.hasOwnProperty(bt)?(rn+=l[bt],Rt[ut]=parseInt(rn,16)*Gt,Gt=1,ut=void 0,rn=""):rn+=bt;return ot},Z={codePages:["WinAnsiEncoding"],WinAnsiEncoding:U("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},oe={Unicode:{Courier:Z,"Courier-Bold":Z,"Courier-BoldOblique":Z,"Courier-Oblique":Z,Helvetica:Z,"Helvetica-Bold":Z,"Helvetica-BoldOblique":Z,"Helvetica-Oblique":Z,"Times-Roman":Z,"Times-Bold":Z,"Times-BoldItalic":Z,"Times-Italic":Z}},Re={Unicode:{"Courier-Oblique":U("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":U("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":U("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:U("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":U("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":U("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:U("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:U("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":U("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:U("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":U("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":U("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":U("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":U("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};n.events.push(["addFont",function(ze){var ae=ze.font,mt=Re.Unicode[ae.postScriptName];mt&&(ae.metadata.Unicode={},ae.metadata.Unicode.widths=mt.widths,ae.metadata.Unicode.kerning=mt.kerning);var ut=oe.Unicode[ae.postScriptName];ut&&(ae.metadata.Unicode.encoding=ut,ae.encoding=ut.codePages[0])}])}(ua.API),function(n){var o=function(a){for(var l=a.length,A=new Uint8Array(l),p=0;p<l;p++)A[p]=a.charCodeAt(p);return A};n.API.events.push(["addFont",function(a){var l=void 0,A=a.font,p=a.instance;if(!A.isStandardFont){if(p===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+A.postScriptName+"').");if(typeof(l=p.existsFileInVFS(A.postScriptName)===!1?p.loadFile(A.postScriptName):p.getFileFromVFS(A.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+A.postScriptName+"').");(function(O,_){_=/^\x00\x01\x00\x00/.test(_)?o(_):o(vn(_)),O.metadata=n.API.TTFFont.open(_),O.metadata.Unicode=O.metadata.Unicode||{encoding:{},kerning:{},widths:[]},O.metadata.glyIdsUsed=[0]})(A,l)}}])}(ua),ua.API.addSvgAsImage=function(n,o,a,l,A,p,O,_){if(isNaN(o)||isNaN(a))throw ks.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(l)||isNaN(A))throw ks.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var U=document.createElement("canvas");U.width=l,U.height=A;var Z=U.getContext("2d");Z.fillStyle="#fff",Z.fillRect(0,0,U.width,U.height);var oe={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Re=this;return(Za.canvg?Promise.resolve(Za.canvg):x.e(3754).then(x.bind(x,63754))).catch(function(ze){return Promise.reject(new Error("Could not load canvg: "+ze))}).then(function(ze){return ze.default?ze.default:ze}).then(function(ze){return ze.fromString(Z,n,oe)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(ze){return ze.render(oe)}).then(function(){Re.addImage(U.toDataURL("image/jpeg",1),o,a,l,A,O,_)})},ua.API.putTotalPages=function(n){var o,a=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(o=new RegExp(n,"g"),a=this.internal.getNumberOfPages()):(o=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),a=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var l=1;l<=this.internal.getNumberOfPages();l++)for(var A=0;A<this.internal.pages[l].length;A++)this.internal.pages[l][A]=this.internal.pages[l][A].replace(o,a);return this},ua.API.viewerPreferences=function(n,o){var a;n=n||{},o=o||!1;var l,A,p,O={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},_=Object.keys(O),U=[],Z=0,oe=0,Re=0;function ze(mt,ut){var bt,ot=!1;for(bt=0;bt<mt.length;bt+=1)mt[bt]===ut&&(ot=!0);return ot}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(O)),this.internal.viewerpreferences.isSubscribed=!1),a=this.internal.viewerpreferences.configuration,n==="reset"||o===!0){var ae=_.length;for(Re=0;Re<ae;Re+=1)a[_[Re]].value=a[_[Re]].defaultValue,a[_[Re]].explicitSet=!1}if((0,me.Z)(n)==="object"){for(A in n)if(p=n[A],ze(_,A)&&p!==void 0){if(a[A].type==="boolean"&&typeof p=="boolean")a[A].value=p;else if(a[A].type==="name"&&ze(a[A].valueSet,p))a[A].value=p;else if(a[A].type==="integer"&&Number.isInteger(p))a[A].value=p;else if(a[A].type==="array"){for(Z=0;Z<p.length;Z+=1)if(l=!0,p[Z].length===1&&typeof p[Z][0]=="number")U.push(String(p[Z]-1));else if(p[Z].length>1){for(oe=0;oe<p[Z].length;oe+=1)typeof p[Z][oe]!="number"&&(l=!1);l===!0&&U.push([p[Z][0]-1,p[Z][1]-1].join(" "))}a[A].value="["+U.join(" ")+"]"}else a[A].value=a[A].defaultValue;a[A].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var mt,ut=[];for(mt in a)a[mt].explicitSet===!0&&(a[mt].type==="name"?ut.push("/"+mt+" /"+a[mt].value):ut.push("/"+mt+" "+a[mt].value));ut.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+ut.join(`
`)+`
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=a,this},function(n){var o=function(){var l='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',A=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),p=unescape(encodeURIComponent(l)),O=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),_=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),U=unescape(encodeURIComponent("</x:xmpmeta>")),Z=p.length+O.length+_.length+A.length+U.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+Z+" >>"),this.internal.write("stream"),this.internal.write(A+p+O+_+U),this.internal.write("endstream"),this.internal.write("endobj")},a=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};n.addMetadata=function(l,A){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:l,namespaceuri:A||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",a),this.internal.events.subscribe("postPutResources",o)),this}}(ua.API),function(n){var o=n.API,a=o.pdfEscape16=function(p,O){for(var _,U=O.metadata.Unicode.widths,Z=["","0","00","000","0000"],oe=[""],Re=0,ze=p.length;Re<ze;++Re){if(_=O.metadata.characterToGlyph(p.charCodeAt(Re)),O.metadata.glyIdsUsed.push(_),O.metadata.toUnicode[_]=p.charCodeAt(Re),U.indexOf(_)==-1&&(U.push(_),U.push([parseInt(O.metadata.widthOfGlyph(_),10)])),_=="0")return oe.join("");_=_.toString(16),oe.push(Z[4-_.length],_)}return oe.join("")},l=function(p){var O,_,U,Z,oe,Re,ze;for(oe=`/CIDInit /ProcSet findresource begin
12 dict begin
begincmap
/CIDSystemInfo <<
/Registry (Adobe)
/Ordering (UCS)
/Supplement 0
>> def
/CMapName /Adobe-Identity-UCS def
/CMapType 2 def
1 begincodespacerange
<0000><ffff>
endcodespacerange`,U=[],Re=0,ze=(_=Object.keys(p).sort(function(ae,mt){return ae-mt})).length;Re<ze;Re++)O=_[Re],U.length>=100&&(oe+=`
`+U.length+` beginbfchar
`+U.join(`
`)+`
endbfchar`,U=[]),p[O]!==void 0&&p[O]!==null&&typeof p[O].toString=="function"&&(Z=("0000"+p[O].toString(16)).slice(-4),O=("0000"+(+O).toString(16)).slice(-4),U.push("<"+O+"><"+Z+">"));return U.length&&(oe+=`
`+U.length+` beginbfchar
`+U.join(`
`)+`
endbfchar
`),oe+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};o.events.push(["putFont",function(p){(function(O){var _=O.font,U=O.out,Z=O.newObject,oe=O.putStream;if(_.metadata instanceof n.API.TTFFont&&_.encoding==="Identity-H"){for(var Re=_.metadata.Unicode.widths,ze=_.metadata.subset.encode(_.metadata.glyIdsUsed,1),ae="",mt=0;mt<ze.length;mt++)ae+=String.fromCharCode(ze[mt]);var ut=Z();oe({data:ae,addLength1:!0,objectId:ut}),U("endobj");var bt=Z();oe({data:l(_.metadata.toUnicode),addLength1:!0,objectId:bt}),U("endobj");var ot=Z();U("<<"),U("/Type /FontDescriptor"),U("/FontName /"+iA(_.fontName)),U("/FontFile2 "+ut+" 0 R"),U("/FontBBox "+n.API.PDFObject.convert(_.metadata.bbox)),U("/Flags "+_.metadata.flags),U("/StemV "+_.metadata.stemV),U("/ItalicAngle "+_.metadata.italicAngle),U("/Ascent "+_.metadata.ascender),U("/Descent "+_.metadata.decender),U("/CapHeight "+_.metadata.capHeight),U(">>"),U("endobj");var Gt=Z();U("<<"),U("/Type /Font"),U("/BaseFont /"+iA(_.fontName)),U("/FontDescriptor "+ot+" 0 R"),U("/W "+n.API.PDFObject.convert(Re)),U("/CIDToGIDMap /Identity"),U("/DW 1000"),U("/Subtype /CIDFontType2"),U("/CIDSystemInfo"),U("<<"),U("/Supplement 0"),U("/Registry (Adobe)"),U("/Ordering ("+_.encoding+")"),U(">>"),U(">>"),U("endobj"),_.objectNumber=Z(),U("<<"),U("/Type /Font"),U("/Subtype /Type0"),U("/ToUnicode "+bt+" 0 R"),U("/BaseFont /"+iA(_.fontName)),U("/Encoding /"+_.encoding),U("/DescendantFonts ["+Gt+" 0 R]"),U(">>"),U("endobj"),_.isAlreadyPutted=!0}})(p)}]),o.events.push(["putFont",function(p){(function(O){var _=O.font,U=O.out,Z=O.newObject,oe=O.putStream;if(_.metadata instanceof n.API.TTFFont&&_.encoding==="WinAnsiEncoding"){for(var Re=_.metadata.rawData,ze="",ae=0;ae<Re.length;ae++)ze+=String.fromCharCode(Re[ae]);var mt=Z();oe({data:ze,addLength1:!0,objectId:mt}),U("endobj");var ut=Z();oe({data:l(_.metadata.toUnicode),addLength1:!0,objectId:ut}),U("endobj");var bt=Z();U("<<"),U("/Descent "+_.metadata.decender),U("/CapHeight "+_.metadata.capHeight),U("/StemV "+_.metadata.stemV),U("/Type /FontDescriptor"),U("/FontFile2 "+mt+" 0 R"),U("/Flags 96"),U("/FontBBox "+n.API.PDFObject.convert(_.metadata.bbox)),U("/FontName /"+iA(_.fontName)),U("/ItalicAngle "+_.metadata.italicAngle),U("/Ascent "+_.metadata.ascender),U(">>"),U("endobj"),_.objectNumber=Z();for(var ot=0;ot<_.metadata.hmtx.widths.length;ot++)_.metadata.hmtx.widths[ot]=parseInt(_.metadata.hmtx.widths[ot]*(1e3/_.metadata.head.unitsPerEm));U("<</Subtype/TrueType/Type/Font/ToUnicode "+ut+" 0 R/BaseFont/"+iA(_.fontName)+"/FontDescriptor "+bt+" 0 R/Encoding/"+_.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(_.metadata.hmtx.widths)+">>"),U("endobj"),_.isAlreadyPutted=!0}})(p)}]);var A=function(p){var O,_=p.text||"",U=p.x,Z=p.y,oe=p.options||{},Re=p.mutex||{},ze=Re.pdfEscape,ae=Re.activeFontKey,mt=Re.fonts,ut=ae,bt="",ot=0,Gt="",Rt=mt[ut].encoding;if(mt[ut].encoding!=="Identity-H")return{text:_,x:U,y:Z,options:oe,mutex:Re};for(Gt=_,ut=ae,Array.isArray(_)&&(Gt=_[0]),ot=0;ot<Gt.length;ot+=1)mt[ut].metadata.hasOwnProperty("cmap")&&(O=mt[ut].metadata.cmap.unicode.codeMap[Gt[ot].charCodeAt(0)]),O||Gt[ot].charCodeAt(0)<256&&mt[ut].metadata.hasOwnProperty("Unicode")?bt+=Gt[ot]:bt+="";var It="";return parseInt(ut.slice(1))<14||Rt==="WinAnsiEncoding"?It=ze(bt,ut).split("").map(function(kr){return kr.charCodeAt(0).toString(16)}).join(""):Rt==="Identity-H"&&(It=a(bt,mt[ut])),Re.isHex=!0,{text:It,x:U,y:Z,options:oe,mutex:Re}};o.events.push(["postProcessText",function(p){var O=p.text||"",_=[],U={text:O,x:p.x,y:p.y,options:p.options,mutex:p.mutex};if(Array.isArray(O)){var Z=0;for(Z=0;Z<O.length;Z+=1)Array.isArray(O[Z])&&O[Z].length===3?_.push([A(Object.assign({},U,{text:O[Z][0]})).text,O[Z][1],O[Z][2]]):_.push(A(Object.assign({},U,{text:O[Z]})).text);p.text=_}else p.text=A(Object.assign({},U,{text:O})).text}])}(ua),function(n){var o=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(a){return o.call(this),this.internal.vFS[a]!==void 0},n.addFileToVFS=function(a,l){return o.call(this),this.internal.vFS[a]=l,this},n.getFileFromVFS=function(a){return o.call(this),this.internal.vFS[a]!==void 0?this.internal.vFS[a]:null}}(ua.API),function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(l){var A,p,O,_,U,Z,oe,Re=o,ze=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],ae=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],mt={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},ut={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},bt=["(",")","(","<",">","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],ot=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Gt=!1,Rt=0;this.__bidiEngine__={};var It=function(nt){var yt=nt.charCodeAt(),Wt=yt>>8,Ht=ut[Wt];return Ht!==void 0?Re[256*Ht+(255&yt)]:Wt===252||Wt===253?"AL":ot.test(Wt)?"L":Wt===8?"R":"N"},kr=function(nt){for(var yt,Wt=0;Wt<nt.length;Wt++){if((yt=It(nt.charAt(Wt)))==="L")return!1;if(yt==="R")return!0}return!1},rn=function(nt,yt,Wt,Ht){var Tr,Zr,Jr,Or,Gr=yt[Ht];switch(Gr){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Gt=!1;break;case"N":case"AN":break;case"EN":Gt&&(Gr="AN");break;case"AL":Gt=!0,Gr="R";break;case"WS":case"BN":Gr="N";break;case"CS":Ht<1||Ht+1>=yt.length||(Tr=Wt[Ht-1])!=="EN"&&Tr!=="AN"||(Zr=yt[Ht+1])!=="EN"&&Zr!=="AN"?Gr="N":Gt&&(Zr="AN"),Gr=Zr===Tr?Zr:"N";break;case"ES":Gr=(Tr=Ht>0?Wt[Ht-1]:"B")==="EN"&&Ht+1<yt.length&&yt[Ht+1]==="EN"?"EN":"N";break;case"ET":if(Ht>0&&Wt[Ht-1]==="EN"){Gr="EN";break}if(Gt){Gr="N";break}for(Jr=Ht+1,Or=yt.length;Jr<Or&&yt[Jr]==="ET";)Jr++;Gr=Jr<Or&&yt[Jr]==="EN"?"EN":"N";break;case"NSM":if(O&&!_){for(Or=yt.length,Jr=Ht+1;Jr<Or&&yt[Jr]==="NSM";)Jr++;if(Jr<Or){var $n=nt[Ht],En=$n>=1425&&$n<=2303||$n===64286;if(Tr=yt[Jr],En&&(Tr==="R"||Tr==="AL")){Gr="R";break}}}Gr=Ht<1||(Tr=yt[Ht-1])==="B"?"N":Wt[Ht-1];break;case"B":Gt=!1,A=!0,Gr=Rt;break;case"S":p=!0,Gr="N"}return Gr},Wr=function(nt,yt,Wt){var Ht=nt.split("");return Wt&&ir(Ht,Wt,{hiLevel:Rt}),Ht.reverse(),yt&&yt.reverse(),Ht.join("")},ir=function(nt,yt,Wt){var Ht,Tr,Zr,Jr,Or,Gr=-1,$n=nt.length,En=0,qe=[],_t=Rt?ae:ze,Ot=[];for(Gt=!1,A=!1,p=!1,Tr=0;Tr<$n;Tr++)Ot[Tr]=It(nt[Tr]);for(Zr=0;Zr<$n;Zr++){if(Or=En,qe[Zr]=rn(nt,Ot,qe,Zr),Ht=240&(En=_t[Or][mt[qe[Zr]]]),En&=15,yt[Zr]=Jr=_t[En][5],Ht>0)if(Ht===16){for(Tr=Gr;Tr<Zr;Tr++)yt[Tr]=1;Gr=-1}else Gr=-1;if(_t[En][6])Gr===-1&&(Gr=Zr);else if(Gr>-1){for(Tr=Gr;Tr<Zr;Tr++)yt[Tr]=Jr;Gr=-1}Ot[Zr]==="B"&&(yt[Zr]=0),Wt.hiLevel|=Jr}p&&function(Jt,hr,Mr){for(var $r=0;$r<Mr;$r++)if(Jt[$r]==="S"){hr[$r]=Rt;for(var Qr=$r-1;Qr>=0&&Jt[Qr]==="WS";Qr--)hr[Qr]=Rt}}(Ot,yt,$n)},Mt=function(nt,yt,Wt,Ht,Tr){if(!(Tr.hiLevel<nt)){if(nt===1&&Rt===1&&!A)return yt.reverse(),void(Wt&&Wt.reverse());for(var Zr,Jr,Or,Gr,$n=yt.length,En=0;En<$n;){if(Ht[En]>=nt){for(Or=En+1;Or<$n&&Ht[Or]>=nt;)Or++;for(Gr=En,Jr=Or-1;Gr<Jr;Gr++,Jr--)Zr=yt[Gr],yt[Gr]=yt[Jr],yt[Jr]=Zr,Wt&&(Zr=Wt[Gr],Wt[Gr]=Wt[Jr],Wt[Jr]=Zr);En=Or}En++}}},xr=function(nt,yt,Wt){var Ht=nt.split(""),Tr={hiLevel:Rt};return Wt||(Wt=[]),ir(Ht,Wt,Tr),function(Zr,Jr,Or){if(Or.hiLevel!==0&&oe)for(var Gr,$n=0;$n<Zr.length;$n++)Jr[$n]===1&&(Gr=bt.indexOf(Zr[$n]))>=0&&(Zr[$n]=bt[Gr+1])}(Ht,Wt,Tr),Mt(2,Ht,yt,Wt,Tr),Mt(1,Ht,yt,Wt,Tr),Ht.join("")};return this.__bidiEngine__.doBidiReorder=function(nt,yt,Wt){if(function(Tr,Zr){if(Zr)for(var Jr=0;Jr<Tr.length;Jr++)Zr[Jr]=Jr;_===void 0&&(_=kr(Tr)),Z===void 0&&(Z=kr(Tr))}(nt,yt),O||!U||Z)if(O&&U&&_^Z)Rt=_?1:0,nt=Wr(nt,yt,Wt);else if(!O&&U&&Z)Rt=_?1:0,nt=xr(nt,yt,Wt),nt=Wr(nt,yt);else if(!O||_||U||Z){if(O&&!U&&_^Z)nt=Wr(nt,yt),_?(Rt=0,nt=xr(nt,yt,Wt)):(Rt=1,nt=xr(nt,yt,Wt),nt=Wr(nt,yt));else if(O&&_&&!U&&Z)Rt=1,nt=xr(nt,yt,Wt),nt=Wr(nt,yt);else if(!O&&!U&&_^Z){var Ht=oe;_?(Rt=1,nt=xr(nt,yt,Wt),Rt=0,oe=!1,nt=xr(nt,yt,Wt),oe=Ht):(Rt=0,nt=xr(nt,yt,Wt),nt=Wr(nt,yt),Rt=1,oe=!1,nt=xr(nt,yt,Wt),oe=Ht,nt=Wr(nt,yt))}}else Rt=0,nt=xr(nt,yt,Wt);else Rt=_?1:0,nt=xr(nt,yt,Wt);return nt},this.__bidiEngine__.setOptions=function(nt){nt&&(O=nt.isInputVisual,U=nt.isOutputVisual,_=nt.isInputRtl,Z=nt.isOutputRtl,oe=nt.isSymmetricSwapping)},this.__bidiEngine__.setOptions(l),this.__bidiEngine__};var o=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],a=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(l){var A=l.text;l.x,l.y;var p=l.options||{};l.mutex,p.lang;var O=[];if(p.isInputVisual=typeof p.isInputVisual!="boolean"||p.isInputVisual,a.setOptions(p),Object.prototype.toString.call(A)==="[object Array]"){var _=0;for(O=[],_=0;_<A.length;_+=1)Object.prototype.toString.call(A[_])==="[object Array]"?O.push([a.doBidiReorder(A[_][0]),A[_][1],A[_][2]]):O.push([a.doBidiReorder(A[_])]);l.text=O}else l.text=a.doBidiReorder(A);a.setOptions({isInputVisual:!0})}])}(ua),ua.API.TTFFont=function(){function n(o){var a;if(this.rawData=o,a=this.contents=new lh(o),this.contents.pos=4,a.readString(4)==="ttcf")throw new Error("TTCF not supported.");a.pos=0,this.parse(),this.subset=new Ig(this),this.registerTTF()}return n.open=function(o){return new n(o)},n.prototype.parse=function(){return this.directory=new Yg(this.contents),this.head=new Bg(this),this.name=new fm(this),this.cmap=new dm(this),this.toUnicode={},this.hhea=new Sg(this),this.maxp=new r1(this),this.hmtx=new Il(this),this.post=new hu(this),this.os2=new e1(this),this.loca=new n1(this),this.glyf=new _g(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},n.prototype.registerTTF=function(){var o,a,l,A,p;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var O,_,U,Z;for(Z=[],O=0,_=(U=this.bbox).length;O<_;O++)o=U[O],Z.push(Math.round(o*this.scaleFactor));return Z}.call(this),this.stemV=0,this.post.exists?(l=255&(A=this.post.italic_angle),32768&(a=A>>16)&&(a=-(1+(65535^a))),this.italicAngle=+(a+"."+l)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(p=this.familyClass)===1||p===2||p===3||p===4||p===5||p===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},n.prototype.characterToGlyph=function(o){var a;return((a=this.cmap.unicode)!=null?a.codeMap[o]:void 0)||0},n.prototype.widthOfGlyph=function(o){var a;return a=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(o).advance*a},n.prototype.widthOfString=function(o,a,l){var A,p,O,_;for(O=0,p=0,_=(o=""+o).length;0<=_?p<_:p>_;p=0<=_?++p:--p)A=o.charCodeAt(p),O+=this.widthOfGlyph(this.characterToGlyph(A))+l*(1e3/a)||0;return O*(a/1e3)},n.prototype.lineHeight=function(o,a){var l;return a==null&&(a=!1),l=a?this.lineGap:0,(this.ascender+l-this.decender)/1e3*o},n}();var kA,lh=function(){function n(o){this.data=o!=null?o:[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(o){return this.data[this.pos++]=o},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(o){return this.writeByte(o>>>24&255),this.writeByte(o>>16&255),this.writeByte(o>>8&255),this.writeByte(255&o)},n.prototype.readInt32=function(){var o;return(o=this.readUInt32())>=2147483648?o-4294967296:o},n.prototype.writeInt32=function(o){return o<0&&(o+=4294967296),this.writeUInt32(o)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(o){return this.writeByte(o>>8&255),this.writeByte(255&o)},n.prototype.readInt16=function(){var o;return(o=this.readUInt16())>=32768?o-65536:o},n.prototype.writeInt16=function(o){return o<0&&(o+=65536),this.writeUInt16(o)},n.prototype.readString=function(o){var a,l;for(l=[],a=0;0<=o?a<o:a>o;a=0<=o?++a:--a)l[a]=String.fromCharCode(this.readByte());return l.join("")},n.prototype.writeString=function(o){var a,l,A;for(A=[],a=0,l=o.length;0<=l?a<l:a>l;a=0<=l?++a:--a)A.push(this.writeByte(o.charCodeAt(a)));return A},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(o){return this.writeInt16(o)},n.prototype.readLongLong=function(){var o,a,l,A,p,O,_,U;return o=this.readByte(),a=this.readByte(),l=this.readByte(),A=this.readByte(),p=this.readByte(),O=this.readByte(),_=this.readByte(),U=this.readByte(),128&o?-1*(72057594037927940*(255^o)+281474976710656*(255^a)+1099511627776*(255^l)+4294967296*(255^A)+16777216*(255^p)+65536*(255^O)+256*(255^_)+(255^U)+1):72057594037927940*o+281474976710656*a+1099511627776*l+4294967296*A+16777216*p+65536*O+256*_+U},n.prototype.writeLongLong=function(o){var a,l;return a=Math.floor(o/4294967296),l=4294967295&o,this.writeByte(a>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a),this.writeByte(l>>24&255),this.writeByte(l>>16&255),this.writeByte(l>>8&255),this.writeByte(255&l)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(o){return this.writeInt32(o)},n.prototype.read=function(o){var a,l;for(a=[],l=0;0<=o?l<o:l>o;l=0<=o?++l:--l)a.push(this.readByte());return a},n.prototype.write=function(o){var a,l,A,p;for(p=[],l=0,A=o.length;l<A;l++)a=o[l],p.push(this.writeByte(a));return p},n}(),Yg=function(){var n;function o(a){var l,A,p;for(this.scalarType=a.readInt(),this.tableCount=a.readShort(),this.searchRange=a.readShort(),this.entrySelector=a.readShort(),this.rangeShift=a.readShort(),this.tables={},A=0,p=this.tableCount;0<=p?A<p:A>p;A=0<=p?++A:--A)l={tag:a.readString(4),checksum:a.readInt(),offset:a.readInt(),length:a.readInt()},this.tables[l.tag]=l}return o.prototype.encode=function(a){var l,A,p,O,_,U,Z,oe,Re,ze,ae,mt,ut;for(ut in ae=Object.keys(a).length,U=Math.log(2),Re=16*Math.floor(Math.log(ae)/U),O=Math.floor(Re/U),oe=16*ae-Re,(A=new lh).writeInt(this.scalarType),A.writeShort(ae),A.writeShort(Re),A.writeShort(O),A.writeShort(oe),p=16*ae,Z=A.pos+p,_=null,mt=[],a)for(ze=a[ut],A.writeString(ut),A.writeInt(n(ze)),A.writeInt(Z),A.writeInt(ze.length),mt=mt.concat(ze),ut==="head"&&(_=Z),Z+=ze.length;Z%4;)mt.push(0),Z++;return A.write(mt),l=2981146554-n(A.data),A.pos=_+8,A.writeUInt32(l),A.data},n=function(a){var l,A,p,O;for(a=Eg.call(a);a.length%4;)a.push(0);for(p=new lh(a),A=0,l=0,O=a.length;l<O;l=l+=4)A+=p.readUInt32();return 4294967295&A},o}(),qg={}.hasOwnProperty,fu=function(n,o){for(var a in o)qg.call(o,a)&&(n[a]=o[a]);function l(){this.constructor=n}return l.prototype=o.prototype,n.prototype=new l,n.__super__=o.prototype,n};kA=function(){function n(o){var a;this.file=o,a=this.file.directory.tables[this.tag],this.exists=!!a,a&&(this.offset=a.offset,this.length=a.length,this.parse(this.file.contents))}return n.prototype.parse=function(){},n.prototype.encode=function(){},n.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},n}();var Bg=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="head",n.prototype.parse=function(o){return o.pos=this.offset,this.version=o.readInt(),this.revision=o.readInt(),this.checkSumAdjustment=o.readInt(),this.magicNumber=o.readInt(),this.flags=o.readShort(),this.unitsPerEm=o.readShort(),this.created=o.readLongLong(),this.modified=o.readLongLong(),this.xMin=o.readShort(),this.yMin=o.readShort(),this.xMax=o.readShort(),this.yMax=o.readShort(),this.macStyle=o.readShort(),this.lowestRecPPEM=o.readShort(),this.fontDirectionHint=o.readShort(),this.indexToLocFormat=o.readShort(),this.glyphDataFormat=o.readShort()},n.prototype.encode=function(o){var a;return(a=new lh).writeInt(this.version),a.writeInt(this.revision),a.writeInt(this.checkSumAdjustment),a.writeInt(this.magicNumber),a.writeShort(this.flags),a.writeShort(this.unitsPerEm),a.writeLongLong(this.created),a.writeLongLong(this.modified),a.writeShort(this.xMin),a.writeShort(this.yMin),a.writeShort(this.xMax),a.writeShort(this.yMax),a.writeShort(this.macStyle),a.writeShort(this.lowestRecPPEM),a.writeShort(this.fontDirectionHint),a.writeShort(o),a.writeShort(this.glyphDataFormat),a.data},n}(),eg=function(){function n(o,a){var l,A,p,O,_,U,Z,oe,Re,ze,ae,mt,ut,bt,ot,Gt,Rt;switch(this.platformID=o.readUInt16(),this.encodingID=o.readShort(),this.offset=a+o.readInt(),Re=o.pos,o.pos=this.offset,this.format=o.readUInt16(),this.length=o.readUInt16(),this.language=o.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(U=0;U<256;++U)this.codeMap[U]=o.readByte();break;case 4:for(ae=o.readUInt16(),ze=ae/2,o.pos+=6,p=function(){var It,kr;for(kr=[],U=It=0;0<=ze?It<ze:It>ze;U=0<=ze?++It:--It)kr.push(o.readUInt16());return kr}(),o.pos+=2,ut=function(){var It,kr;for(kr=[],U=It=0;0<=ze?It<ze:It>ze;U=0<=ze?++It:--It)kr.push(o.readUInt16());return kr}(),Z=function(){var It,kr;for(kr=[],U=It=0;0<=ze?It<ze:It>ze;U=0<=ze?++It:--It)kr.push(o.readUInt16());return kr}(),oe=function(){var It,kr;for(kr=[],U=It=0;0<=ze?It<ze:It>ze;U=0<=ze?++It:--It)kr.push(o.readUInt16());return kr}(),A=(this.length-o.pos+this.offset)/2,_=function(){var It,kr;for(kr=[],U=It=0;0<=A?It<A:It>A;U=0<=A?++It:--It)kr.push(o.readUInt16());return kr}(),U=ot=0,Rt=p.length;ot<Rt;U=++ot)for(bt=p[U],l=Gt=mt=ut[U];mt<=bt?Gt<=bt:Gt>=bt;l=mt<=bt?++Gt:--Gt)oe[U]===0?O=l+Z[U]:(O=_[oe[U]/2+(l-mt)-(ze-U)]||0)!==0&&(O+=Z[U]),this.codeMap[l]=65535&O}o.pos=Re}return n.encode=function(o,a){var l,A,p,O,_,U,Z,oe,Re,ze,ae,mt,ut,bt,ot,Gt,Rt,It,kr,rn,Wr,ir,Mt,xr,nt,yt,Wt,Ht,Tr,Zr,Jr,Or,Gr,$n,En,qe,_t,Ot,Jt,hr,Mr,$r,Qr,gn,Rn,gi;switch(Ht=new lh,O=Object.keys(o).sort(function(Ei,sn){return Ei-sn}),a){case"macroman":for(ut=0,bt=function(){var Ei=[];for(mt=0;mt<256;++mt)Ei.push(0);return Ei}(),Gt={0:0},p={},Tr=0,Gr=O.length;Tr<Gr;Tr++)Gt[Qr=o[A=O[Tr]]]==null&&(Gt[Qr]=++ut),p[A]={old:o[A],new:Gt[o[A]]},bt[A]=Gt[o[A]];return Ht.writeUInt16(1),Ht.writeUInt16(0),Ht.writeUInt32(12),Ht.writeUInt16(0),Ht.writeUInt16(262),Ht.writeUInt16(0),Ht.write(bt),{charMap:p,subtable:Ht.data,maxGlyphID:ut+1};case"unicode":for(yt=[],Re=[],Rt=0,Gt={},l={},ot=Z=null,Zr=0,$n=O.length;Zr<$n;Zr++)Gt[kr=o[A=O[Zr]]]==null&&(Gt[kr]=++Rt),l[A]={old:kr,new:Gt[kr]},_=Gt[kr]-A,ot!=null&&_===Z||(ot&&Re.push(ot),yt.push(A),Z=_),ot=A;for(ot&&Re.push(ot),Re.push(65535),yt.push(65535),xr=2*(Mt=yt.length),ir=2*Math.pow(Math.log(Mt)/Math.LN2,2),ze=Math.log(ir/2)/Math.LN2,Wr=2*Mt-ir,U=[],rn=[],ae=[],mt=Jr=0,En=yt.length;Jr<En;mt=++Jr){if(nt=yt[mt],oe=Re[mt],nt===65535){U.push(0),rn.push(0);break}if(nt-(Wt=l[nt].new)>=32768)for(U.push(0),rn.push(2*(ae.length+Mt-mt)),A=Or=nt;nt<=oe?Or<=oe:Or>=oe;A=nt<=oe?++Or:--Or)ae.push(l[A].new);else U.push(Wt-nt),rn.push(0)}for(Ht.writeUInt16(3),Ht.writeUInt16(1),Ht.writeUInt32(12),Ht.writeUInt16(4),Ht.writeUInt16(16+8*Mt+2*ae.length),Ht.writeUInt16(0),Ht.writeUInt16(xr),Ht.writeUInt16(ir),Ht.writeUInt16(ze),Ht.writeUInt16(Wr),Mr=0,qe=Re.length;Mr<qe;Mr++)A=Re[Mr],Ht.writeUInt16(A);for(Ht.writeUInt16(0),$r=0,_t=yt.length;$r<_t;$r++)A=yt[$r],Ht.writeUInt16(A);for(gn=0,Ot=U.length;gn<Ot;gn++)_=U[gn],Ht.writeUInt16(_);for(Rn=0,Jt=rn.length;Rn<Jt;Rn++)It=rn[Rn],Ht.writeUInt16(It);for(gi=0,hr=ae.length;gi<hr;gi++)ut=ae[gi],Ht.writeUInt16(ut);return{charMap:l,subtable:Ht.data,maxGlyphID:Rt+1}}},n}(),dm=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="cmap",n.prototype.parse=function(o){var a,l,A;for(o.pos=this.offset,this.version=o.readUInt16(),A=o.readUInt16(),this.tables=[],this.unicode=null,l=0;0<=A?l<A:l>A;l=0<=A?++l:--l)a=new eg(o,this.offset),this.tables.push(a),a.isUnicode&&this.unicode==null&&(this.unicode=a);return!0},n.encode=function(o,a){var l,A;return a==null&&(a="macroman"),l=eg.encode(o,a),(A=new lh).writeUInt16(0),A.writeUInt16(1),l.table=A.data.concat(l.subtable),l},n}(),Sg=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="hhea",n.prototype.parse=function(o){return o.pos=this.offset,this.version=o.readInt(),this.ascender=o.readShort(),this.decender=o.readShort(),this.lineGap=o.readShort(),this.advanceWidthMax=o.readShort(),this.minLeftSideBearing=o.readShort(),this.minRightSideBearing=o.readShort(),this.xMaxExtent=o.readShort(),this.caretSlopeRise=o.readShort(),this.caretSlopeRun=o.readShort(),this.caretOffset=o.readShort(),o.pos+=8,this.metricDataFormat=o.readShort(),this.numberOfMetrics=o.readUInt16()},n}(),e1=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="OS/2",n.prototype.parse=function(o){if(o.pos=this.offset,this.version=o.readUInt16(),this.averageCharWidth=o.readShort(),this.weightClass=o.readUInt16(),this.widthClass=o.readUInt16(),this.type=o.readShort(),this.ySubscriptXSize=o.readShort(),this.ySubscriptYSize=o.readShort(),this.ySubscriptXOffset=o.readShort(),this.ySubscriptYOffset=o.readShort(),this.ySuperscriptXSize=o.readShort(),this.ySuperscriptYSize=o.readShort(),this.ySuperscriptXOffset=o.readShort(),this.ySuperscriptYOffset=o.readShort(),this.yStrikeoutSize=o.readShort(),this.yStrikeoutPosition=o.readShort(),this.familyClass=o.readShort(),this.panose=function(){var a,l;for(l=[],a=0;a<10;++a)l.push(o.readByte());return l}(),this.charRange=function(){var a,l;for(l=[],a=0;a<4;++a)l.push(o.readInt());return l}(),this.vendorID=o.readString(4),this.selection=o.readShort(),this.firstCharIndex=o.readShort(),this.lastCharIndex=o.readShort(),this.version>0&&(this.ascent=o.readShort(),this.descent=o.readShort(),this.lineGap=o.readShort(),this.winAscent=o.readShort(),this.winDescent=o.readShort(),this.codePageRange=function(){var a,l;for(l=[],a=0;a<2;a=++a)l.push(o.readInt());return l}(),this.version>1))return this.xHeight=o.readShort(),this.capHeight=o.readShort(),this.defaultChar=o.readShort(),this.breakChar=o.readShort(),this.maxContext=o.readShort()},n}(),hu=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="post",n.prototype.parse=function(o){var a,l,A;switch(o.pos=this.offset,this.format=o.readInt(),this.italicAngle=o.readInt(),this.underlinePosition=o.readShort(),this.underlineThickness=o.readShort(),this.isFixedPitch=o.readInt(),this.minMemType42=o.readInt(),this.maxMemType42=o.readInt(),this.minMemType1=o.readInt(),this.maxMemType1=o.readInt(),this.format){case 65536:case 196608:break;case 131072:var p;for(l=o.readUInt16(),this.glyphNameIndex=[],p=0;0<=l?p<l:p>l;p=0<=l?++p:--p)this.glyphNameIndex.push(o.readUInt16());for(this.names=[],A=[];o.pos<this.offset+this.length;)a=o.readByte(),A.push(this.names.push(o.readString(a)));return A;case 151552:return l=o.readUInt16(),this.offsets=o.read(l);case 262144:return this.map=function(){var O,_,U;for(U=[],p=O=0,_=this.file.maxp.numGlyphs;0<=_?O<_:O>_;p=0<=_?++O:--O)U.push(o.readUInt32());return U}.call(this)}},n}(),t1=function(n,o){this.raw=n,this.length=n.length,this.platformID=o.platformID,this.encodingID=o.encodingID,this.languageID=o.languageID},fm=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="name",n.prototype.parse=function(o){var a,l,A,p,O,_,U,Z,oe,Re,ze;for(o.pos=this.offset,o.readShort(),a=o.readShort(),_=o.readShort(),l=[],p=0;0<=a?p<a:p>a;p=0<=a?++p:--p)l.push({platformID:o.readShort(),encodingID:o.readShort(),languageID:o.readShort(),nameID:o.readShort(),length:o.readShort(),offset:this.offset+_+o.readShort()});for(U={},p=oe=0,Re=l.length;oe<Re;p=++oe)A=l[p],o.pos=A.offset,Z=o.readString(A.length),O=new t1(Z,A),U[ze=A.nameID]==null&&(U[ze]=[]),U[A.nameID].push(O);this.strings=U,this.copyright=U[0],this.fontFamily=U[1],this.fontSubfamily=U[2],this.uniqueSubfamily=U[3],this.fontName=U[4],this.version=U[5];try{this.postscriptName=U[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(ae){this.postscriptName=U[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=U[7],this.manufacturer=U[8],this.designer=U[9],this.description=U[10],this.vendorUrl=U[11],this.designerUrl=U[12],this.license=U[13],this.licenseUrl=U[14],this.preferredFamily=U[15],this.preferredSubfamily=U[17],this.compatibleFull=U[18],this.sampleText=U[19]},n}(),r1=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="maxp",n.prototype.parse=function(o){return o.pos=this.offset,this.version=o.readInt(),this.numGlyphs=o.readUInt16(),this.maxPoints=o.readUInt16(),this.maxContours=o.readUInt16(),this.maxCompositePoints=o.readUInt16(),this.maxComponentContours=o.readUInt16(),this.maxZones=o.readUInt16(),this.maxTwilightPoints=o.readUInt16(),this.maxStorage=o.readUInt16(),this.maxFunctionDefs=o.readUInt16(),this.maxInstructionDefs=o.readUInt16(),this.maxStackElements=o.readUInt16(),this.maxSizeOfInstructions=o.readUInt16(),this.maxComponentElements=o.readUInt16(),this.maxComponentDepth=o.readUInt16()},n}(),Il=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="hmtx",n.prototype.parse=function(o){var a,l,A,p,O,_,U;for(o.pos=this.offset,this.metrics=[],a=0,_=this.file.hhea.numberOfMetrics;0<=_?a<_:a>_;a=0<=_?++a:--a)this.metrics.push({advance:o.readUInt16(),lsb:o.readInt16()});for(A=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Z,oe;for(oe=[],a=Z=0;0<=A?Z<A:Z>A;a=0<=A?++Z:--Z)oe.push(o.readInt16());return oe}(),this.widths=function(){var Z,oe,Re,ze;for(ze=[],Z=0,oe=(Re=this.metrics).length;Z<oe;Z++)p=Re[Z],ze.push(p.advance);return ze}.call(this),l=this.widths[this.widths.length-1],U=[],a=O=0;0<=A?O<A:O>A;a=0<=A?++O:--O)U.push(this.widths.push(l));return U},n.prototype.forGlyph=function(o){return o in this.metrics?this.metrics[o]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[o-this.metrics.length]}},n}(),Eg=[].slice,_g=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(o){var a,l,A,p,O,_,U,Z,oe,Re;return o in this.cache?this.cache[o]:(p=this.file.loca,a=this.file.contents,l=p.indexOf(o),(A=p.lengthOf(o))===0?this.cache[o]=null:(a.pos=this.offset+l,O=(_=new lh(a.read(A))).readShort(),Z=_.readShort(),Re=_.readShort(),U=_.readShort(),oe=_.readShort(),this.cache[o]=O===-1?new hm(_,Z,Re,U,oe):new jh(_,O,Z,Re,U,oe),this.cache[o]))},n.prototype.encode=function(o,a,l){var A,p,O,_,U;for(O=[],p=[],_=0,U=a.length;_<U;_++)A=o[a[_]],p.push(O.length),A&&(O=O.concat(A.encode(l)));return p.push(O.length),{table:O,offsets:p}},n}(),jh=function(){function n(o,a,l,A,p,O){this.raw=o,this.numberOfContours=a,this.xMin=l,this.yMin=A,this.xMax=p,this.yMax=O,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n}(),hm=function(){function n(o,a,l,A,p){var O,_;for(this.raw=o,this.xMin=a,this.yMin=l,this.xMax=A,this.yMax=p,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],O=this.raw;_=O.readShort(),this.glyphOffsets.push(O.pos),this.glyphIDs.push(O.readUInt16()),32&_;)O.pos+=1&_?4:2,128&_?O.pos+=8:64&_?O.pos+=4:8&_&&(O.pos+=2)}return n.prototype.encode=function(){var o,a,l;for(a=new lh(Eg.call(this.raw.data)),o=0,l=this.glyphIDs.length;o<l;++o)a.pos=this.glyphOffsets[o];return a.data},n}(),n1=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return fu(n,kA),n.prototype.tag="loca",n.prototype.parse=function(o){var a,l;return o.pos=this.offset,a=this.file.head.indexToLocFormat,this.offsets=a===0?function(){var A,p;for(p=[],l=0,A=this.length;l<A;l+=2)p.push(2*o.readUInt16());return p}.call(this):function(){var A,p;for(p=[],l=0,A=this.length;l<A;l+=4)p.push(o.readUInt32());return p}.call(this)},n.prototype.indexOf=function(o){return this.offsets[o]},n.prototype.lengthOf=function(o){return this.offsets[o+1]-this.offsets[o]},n.prototype.encode=function(o,a){for(var l=new Uint32Array(this.offsets.length),A=0,p=0,O=0;O<l.length;++O)if(l[O]=A,p<a.length&&a[p]==O){++p,l[O]=A;var _=this.offsets[O],U=this.offsets[O+1]-_;U>0&&(A+=U)}for(var Z=new Array(4*l.length),oe=0;oe<l.length;++oe)Z[4*oe+3]=255&l[oe],Z[4*oe+2]=(65280&l[oe])>>8,Z[4*oe+1]=(16711680&l[oe])>>16,Z[4*oe]=(4278190080&l[oe])>>24;return Z},n}(),Ig=function(){function n(o){this.font=o,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var o,a,l,A,p;for(a in A=this.font.cmap.tables[0].codeMap,o={},p=this.subset)l=p[a],o[a]=A[l];return o},n.prototype.glyphsFor=function(o){var a,l,A,p,O,_,U;for(A={},O=0,_=o.length;O<_;O++)A[p=o[O]]=this.font.glyf.glyphFor(p);for(p in a=[],A)(l=A[p])!=null&&l.compound&&a.push.apply(a,l.glyphIDs);if(a.length>0)for(p in U=this.glyphsFor(a))l=U[p],A[p]=l;return A},n.prototype.encode=function(o,a){var l,A,p,O,_,U,Z,oe,Re,ze,ae,mt,ut,bt,ot;for(A in l=dm.encode(this.generateCmap(),"unicode"),O=this.glyphsFor(o),ae={0:0},ot=l.charMap)ae[(U=ot[A]).old]=U.new;for(mt in ze=l.maxGlyphID,O)mt in ae||(ae[mt]=ze++);return oe=function(Gt){var Rt,It;for(Rt in It={},Gt)It[Gt[Rt]]=Rt;return It}(ae),Re=Object.keys(oe).sort(function(Gt,Rt){return Gt-Rt}),ut=function(){var Gt,Rt,It;for(It=[],Gt=0,Rt=Re.length;Gt<Rt;Gt++)_=Re[Gt],It.push(oe[_]);return It}(),p=this.font.glyf.encode(O,ut,ae),Z=this.font.loca.encode(p.offsets,ut),bt={cmap:this.font.cmap.raw(),glyf:p.table,loca:Z,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(a)},this.font.os2.exists&&(bt["OS/2"]=this.font.os2.raw()),this.font.directory.encode(bt)},n}();ua.API.PDFObject=function(){var n;function o(){}return n=function(a,l){return(Array(l+1).join("0")+a).slice(-l)},o.convert=function(a){var l,A,p,O;if(Array.isArray(a))return"["+function(){var _,U,Z;for(Z=[],_=0,U=a.length;_<U;_++)l=a[_],Z.push(o.convert(l));return Z}().join(" ")+"]";if(typeof a=="string")return"/"+a;if(a!=null&&a.isString)return"("+a+")";if(a instanceof Date)return"(D:"+n(a.getUTCFullYear(),4)+n(a.getUTCMonth(),2)+n(a.getUTCDate(),2)+n(a.getUTCHours(),2)+n(a.getUTCMinutes(),2)+n(a.getUTCSeconds(),2)+"Z)";if({}.toString.call(a)==="[object Object]"){for(A in p=["<<"],a)O=a[A],p.push("/"+A+" "+o.convert(O));return p.push(">>"),p.join(`
`)}return""+a},o}()},86129:function(un,Tt,x){var me=x(19208).lW,Ae=x(97671);(function(P){un.exports=P()})(function(){return function P(De,te,V){function S(v,z){if(!te[v]){if(!De[v]){var E=void 0;if(!z&&E)return require(v,!0);if(g)return g(v,!0);var M=new Error("Cannot find module '"+v+"'");throw M.code="MODULE_NOT_FOUND",M}var N=te[v]={exports:{}};De[v][0].call(N.exports,function(T){var L=De[v][1][T];return S(L||T)},N,N.exports,P,De,te,V)}return te[v].exports}for(var g=void 0,I=0;I<V.length;I++)S(V[I]);return S}({1:[function(P,De,te){"use strict";var V=P("./utils"),S=P("./support"),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";te.encode=function(I){for(var v,z,E,M,N,T,L,ee=[],R=0,le=I.length,X=le,q=V.getTypeOf(I)!=="string";R<I.length;)X=le-R,E=q?(v=I[R++],z=R<le?I[R++]:0,R<le?I[R++]:0):(v=I.charCodeAt(R++),z=R<le?I.charCodeAt(R++):0,R<le?I.charCodeAt(R++):0),M=v>>2,N=(3&v)<<4|z>>4,T=1<X?(15&z)<<2|E>>6:64,L=2<X?63&E:64,ee.push(g.charAt(M)+g.charAt(N)+g.charAt(T)+g.charAt(L));return ee.join("")},te.decode=function(I){var v,z,E,M,N,T,L=0,ee=0,R="data:";if(I.substr(0,R.length)===R)throw new Error("Invalid base64 input, it looks like a data url.");var le,X=3*(I=I.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(I.charAt(I.length-1)===g.charAt(64)&&X--,I.charAt(I.length-2)===g.charAt(64)&&X--,X%1!=0)throw new Error("Invalid base64 input, bad content length.");for(le=S.uint8array?new Uint8Array(0|X):new Array(0|X);L<I.length;)v=g.indexOf(I.charAt(L++))<<2|(M=g.indexOf(I.charAt(L++)))>>4,z=(15&M)<<4|(N=g.indexOf(I.charAt(L++)))>>2,E=(3&N)<<6|(T=g.indexOf(I.charAt(L++))),le[ee++]=v,N!==64&&(le[ee++]=z),T!==64&&(le[ee++]=E);return le}},{"./support":30,"./utils":32}],2:[function(P,De,te){"use strict";var V=P("./external"),S=P("./stream/DataWorker"),g=P("./stream/Crc32Probe"),I=P("./stream/DataLengthProbe");function v(z,E,M,N,T){this.compressedSize=z,this.uncompressedSize=E,this.crc32=M,this.compression=N,this.compressedContent=T}v.prototype={getContentWorker:function(){var z=new S(V.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new I("data_length")),E=this;return z.on("end",function(){if(this.streamInfo.data_length!==E.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),z},getCompressedWorker:function(){return new S(V.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},v.createWorkerFrom=function(z,E,M){return z.pipe(new g).pipe(new I("uncompressedSize")).pipe(E.compressWorker(M)).pipe(new I("compressedSize")).withStreamInfo("compression",E)},De.exports=v},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(P,De,te){"use strict";var V=P("./stream/GenericWorker");te.STORE={magic:"\0\0",compressWorker:function(){return new V("STORE compression")},uncompressWorker:function(){return new V("STORE decompression")}},te.DEFLATE=P("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(P,De,te){"use strict";var V=P("./utils"),S=function(){for(var g,I=[],v=0;v<256;v++){g=v;for(var z=0;z<8;z++)g=1&g?3988292384^g>>>1:g>>>1;I[v]=g}return I}();De.exports=function(g,I){return g!==void 0&&g.length?V.getTypeOf(g)!=="string"?function(v,z,E,M){var N=S,T=M+E;v^=-1;for(var L=M;L<T;L++)v=v>>>8^N[255&(v^z[L])];return-1^v}(0|I,g,g.length,0):function(v,z,E,M){var N=S,T=M+E;v^=-1;for(var L=M;L<T;L++)v=v>>>8^N[255&(v^z.charCodeAt(L))];return-1^v}(0|I,g,g.length,0):0}},{"./utils":32}],5:[function(P,De,te){"use strict";te.base64=!1,te.binary=!1,te.dir=!1,te.createFolders=!0,te.date=null,te.compression=null,te.compressionOptions=null,te.comment=null,te.unixPermissions=null,te.dosPermissions=null},{}],6:[function(P,De,te){"use strict";var V=null;V=typeof Promise!="undefined"?Promise:P("lie"),De.exports={Promise:V}},{lie:37}],7:[function(P,De,te){"use strict";var V=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",S=P("pako"),g=P("./utils"),I=P("./stream/GenericWorker"),v=V?"uint8array":"array";function z(E,M){I.call(this,"FlateWorker/"+E),this._pako=null,this._pakoAction=E,this._pakoOptions=M,this.meta={}}te.magic="\b\0",g.inherits(z,I),z.prototype.processChunk=function(E){this.meta=E.meta,this._pako===null&&this._createPako(),this._pako.push(g.transformTo(v,E.data),!1)},z.prototype.flush=function(){I.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},z.prototype.cleanUp=function(){I.prototype.cleanUp.call(this),this._pako=null},z.prototype._createPako=function(){this._pako=new S[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var E=this;this._pako.onData=function(M){E.push({data:M,meta:E.meta})}},te.compressWorker=function(E){return new z("Deflate",E)},te.uncompressWorker=function(){return new z("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(P,De,te){"use strict";function V(N,T){var L,ee="";for(L=0;L<T;L++)ee+=String.fromCharCode(255&N),N>>>=8;return ee}function S(N,T,L,ee,R,le){var X,q,W=N.file,K=N.compression,se=le!==v.utf8encode,fe=g.transformTo("string",le(W.name)),Oe=g.transformTo("string",v.utf8encode(W.name)),Se=W.comment,Ue=g.transformTo("string",le(Se)),J=g.transformTo("string",v.utf8encode(Se)),ue=Oe.length!==W.name.length,D=J.length!==Se.length,Ve="",Me="",we="",Te=W.dir,ve=W.date,Fe={crc32:0,compressedSize:0,uncompressedSize:0};T&&!L||(Fe.crc32=N.crc32,Fe.compressedSize=N.compressedSize,Fe.uncompressedSize=N.uncompressedSize);var de=0;T&&(de|=8),se||!ue&&!D||(de|=2048);var Ee=0,tt=0;Te&&(Ee|=16),R==="UNIX"?(tt=798,Ee|=function(Je,et){var Bt=Je;return Je||(Bt=et?16893:33204),(65535&Bt)<<16}(W.unixPermissions,Te)):(tt=20,Ee|=function(Je){return 63&(Je||0)}(W.dosPermissions)),X=ve.getUTCHours(),X<<=6,X|=ve.getUTCMinutes(),X<<=5,X|=ve.getUTCSeconds()/2,q=ve.getUTCFullYear()-1980,q<<=4,q|=ve.getUTCMonth()+1,q<<=5,q|=ve.getUTCDate(),ue&&(Me=V(1,1)+V(z(fe),4)+Oe,Ve+="up"+V(Me.length,2)+Me),D&&(we=V(1,1)+V(z(Ue),4)+J,Ve+="uc"+V(we.length,2)+we);var it="";return it+=`
\0`,it+=V(de,2),it+=K.magic,it+=V(X,2),it+=V(q,2),it+=V(Fe.crc32,4),it+=V(Fe.compressedSize,4),it+=V(Fe.uncompressedSize,4),it+=V(fe.length,2),it+=V(Ve.length,2),{fileRecord:E.LOCAL_FILE_HEADER+it+fe+Ve,dirRecord:E.CENTRAL_FILE_HEADER+V(tt,2)+it+V(Ue.length,2)+"\0\0\0\0"+V(Ee,4)+V(ee,4)+fe+Ve+Ue}}var g=P("../utils"),I=P("../stream/GenericWorker"),v=P("../utf8"),z=P("../crc32"),E=P("../signature");function M(N,T,L,ee){I.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=L,this.encodeFileName=ee,this.streamFiles=N,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(M,I),M.prototype.push=function(N){var T=N.meta.percent||0,L=this.entriesCount,ee=this._sources.length;this.accumulate?this.contentBuffer.push(N):(this.bytesWritten+=N.data.length,I.prototype.push.call(this,{data:N.data,meta:{currentFile:this.currentFile,percent:L?(T+100*(L-ee-1))/L:100}}))},M.prototype.openedSource=function(N){this.currentSourceOffset=this.bytesWritten,this.currentFile=N.file.name;var T=this.streamFiles&&!N.file.dir;if(T){var L=S(N,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:L.fileRecord,meta:{percent:0}})}else this.accumulate=!0},M.prototype.closedSource=function(N){this.accumulate=!1;var T=this.streamFiles&&!N.file.dir,L=S(N,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(L.dirRecord),T)this.push({data:function(ee){return E.DATA_DESCRIPTOR+V(ee.crc32,4)+V(ee.compressedSize,4)+V(ee.uncompressedSize,4)}(N),meta:{percent:100}});else for(this.push({data:L.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},M.prototype.flush=function(){for(var N=this.bytesWritten,T=0;T<this.dirRecords.length;T++)this.push({data:this.dirRecords[T],meta:{percent:100}});var L=this.bytesWritten-N,ee=function(R,le,X,q,W){var K=g.transformTo("string",W(q));return E.CENTRAL_DIRECTORY_END+"\0\0\0\0"+V(R,2)+V(R,2)+V(le,4)+V(X,4)+V(K.length,2)+K}(this.dirRecords.length,L,N,this.zipComment,this.encodeFileName);this.push({data:ee,meta:{percent:100}})},M.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},M.prototype.registerPrevious=function(N){this._sources.push(N);var T=this;return N.on("data",function(L){T.processChunk(L)}),N.on("end",function(){T.closedSource(T.previous.streamInfo),T._sources.length?T.prepareNextSource():T.end()}),N.on("error",function(L){T.error(L)}),this},M.prototype.resume=function(){return!!I.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},M.prototype.error=function(N){var T=this._sources;if(!I.prototype.error.call(this,N))return!1;for(var L=0;L<T.length;L++)try{T[L].error(N)}catch(ee){}return!0},M.prototype.lock=function(){I.prototype.lock.call(this);for(var N=this._sources,T=0;T<N.length;T++)N[T].lock()},De.exports=M},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(P,De,te){"use strict";var V=P("../compressions"),S=P("./ZipFileWorker");te.generateWorker=function(g,I,v){var z=new S(I.streamFiles,v,I.platform,I.encodeFileName),E=0;try{g.forEach(function(M,N){E++;var T=function(le,X){var q=le||X,W=V[q];if(!W)throw new Error(q+" is not a valid compression method !");return W}(N.options.compression,I.compression),L=N.options.compressionOptions||I.compressionOptions||{},ee=N.dir,R=N.date;N._compressWorker(T,L).withStreamInfo("file",{name:M,dir:ee,date:R,comment:N.comment||"",unixPermissions:N.unixPermissions,dosPermissions:N.dosPermissions}).pipe(z)}),z.entriesCount=E}catch(M){z.error(M)}return z}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(P,De,te){"use strict";function V(){if(!(this instanceof V))return new V;if(arguments.length)throw new Error("The constructor with parameters has been removed in JSZip 3.0, please check the upgrade guide.");this.files=Object.create(null),this.comment=null,this.root="",this.clone=function(){var S=new V;for(var g in this)typeof this[g]!="function"&&(S[g]=this[g]);return S}}(V.prototype=P("./object")).loadAsync=P("./load"),V.support=P("./support"),V.defaults=P("./defaults"),V.version="3.10.1",V.loadAsync=function(S,g){return new V().loadAsync(S,g)},V.external=P("./external"),De.exports=V},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(P,De,te){"use strict";var V=P("./utils"),S=P("./external"),g=P("./utf8"),I=P("./zipEntries"),v=P("./stream/Crc32Probe"),z=P("./nodejsUtils");function E(M){return new S.Promise(function(N,T){var L=M.decompressed.getContentWorker().pipe(new v);L.on("error",function(ee){T(ee)}).on("end",function(){L.streamInfo.crc32!==M.decompressed.crc32?T(new Error("Corrupted zip : CRC32 mismatch")):N()}).resume()})}De.exports=function(M,N){var T=this;return N=V.extend(N||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),z.isNode&&z.isStream(M)?S.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):V.prepareContent("the loaded zip file",M,!0,N.optimizedBinaryString,N.base64).then(function(L){var ee=new I(N);return ee.load(L),ee}).then(function(L){var ee=[S.Promise.resolve(L)],R=L.files;if(N.checkCRC32)for(var le=0;le<R.length;le++)ee.push(E(R[le]));return S.Promise.all(ee)}).then(function(L){for(var ee=L.shift(),R=ee.files,le=0;le<R.length;le++){var X=R[le],q=X.fileNameStr,W=V.resolve(X.fileNameStr);T.file(W,X.decompressed,{binary:!0,optimizedBinaryString:!0,date:X.date,dir:X.dir,comment:X.fileCommentStr.length?X.fileCommentStr:null,unixPermissions:X.unixPermissions,dosPermissions:X.dosPermissions,createFolders:N.createFolders}),X.dir||(T.file(W).unsafeOriginalName=q)}return ee.zipComment.length&&(T.comment=ee.zipComment),T})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(P,De,te){"use strict";var V=P("../utils"),S=P("../stream/GenericWorker");function g(I,v){S.call(this,"Nodejs stream input adapter for "+I),this._upstreamEnded=!1,this._bindStream(v)}V.inherits(g,S),g.prototype._bindStream=function(I){var v=this;(this._stream=I).pause(),I.on("data",function(z){v.push({data:z,meta:{percent:0}})}).on("error",function(z){v.isPaused?this.generatedError=z:v.error(z)}).on("end",function(){v.isPaused?v._upstreamEnded=!0:v.end()})},g.prototype.pause=function(){return!!S.prototype.pause.call(this)&&(this._stream.pause(),!0)},g.prototype.resume=function(){return!!S.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},De.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(P,De,te){"use strict";var V=P("readable-stream").Readable;function S(g,I,v){V.call(this,I),this._helper=g;var z=this;g.on("data",function(E,M){z.push(E)||z._helper.pause(),v&&v(M)}).on("error",function(E){z.emit("error",E)}).on("end",function(){z.push(null)})}P("../utils").inherits(S,V),S.prototype._read=function(){this._helper.resume()},De.exports=S},{"../utils":32,"readable-stream":16}],14:[function(P,De,te){"use strict";De.exports={isNode:typeof me!="undefined",newBufferFrom:function(V,S){if(me.from&&me.from!==Uint8Array.from)return me.from(V,S);if(typeof V=="number")throw new Error('The "data" argument must not be a number');return new me(V,S)},allocBuffer:function(V){if(me.alloc)return me.alloc(V);var S=new me(V);return S.fill(0),S},isBuffer:function(V){return me.isBuffer(V)},isStream:function(V){return V&&typeof V.on=="function"&&typeof V.pause=="function"&&typeof V.resume=="function"}}},{}],15:[function(P,De,te){"use strict";function V(W,K,se){var fe,Oe=g.getTypeOf(K),Se=g.extend(se||{},z);Se.date=Se.date||new Date,Se.compression!==null&&(Se.compression=Se.compression.toUpperCase()),typeof Se.unixPermissions=="string"&&(Se.unixPermissions=parseInt(Se.unixPermissions,8)),Se.unixPermissions&&16384&Se.unixPermissions&&(Se.dir=!0),Se.dosPermissions&&16&Se.dosPermissions&&(Se.dir=!0),Se.dir&&(W=R(W)),Se.createFolders&&(fe=ee(W))&&le.call(this,fe,!0);var Ue=Oe==="string"&&Se.binary===!1&&Se.base64===!1;se&&se.binary!==void 0||(Se.binary=!Ue),(K instanceof E&&K.uncompressedSize===0||Se.dir||!K||K.length===0)&&(Se.base64=!1,Se.binary=!0,K="",Se.compression="STORE",Oe="string");var J=null;J=K instanceof E||K instanceof I?K:T.isNode&&T.isStream(K)?new L(W,K):g.prepareContent(W,K,Se.binary,Se.optimizedBinaryString,Se.base64);var ue=new M(W,J,Se);this.files[W]=ue}var S=P("./utf8"),g=P("./utils"),I=P("./stream/GenericWorker"),v=P("./stream/StreamHelper"),z=P("./defaults"),E=P("./compressedObject"),M=P("./zipObject"),N=P("./generate"),T=P("./nodejsUtils"),L=P("./nodejs/NodejsStreamInputAdapter"),ee=function(W){W.slice(-1)==="/"&&(W=W.substring(0,W.length-1));var K=W.lastIndexOf("/");return 0<K?W.substring(0,K):""},R=function(W){return W.slice(-1)!=="/"&&(W+="/"),W},le=function(W,K){return K=K!==void 0?K:z.createFolders,W=R(W),this.files[W]||V.call(this,W,null,{dir:!0,createFolders:K}),this.files[W]};function X(W){return Object.prototype.toString.call(W)==="[object RegExp]"}var q={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(W){var K,se,fe;for(K in this.files)fe=this.files[K],(se=K.slice(this.root.length,K.length))&&K.slice(0,this.root.length)===this.root&&W(se,fe)},filter:function(W){var K=[];return this.forEach(function(se,fe){W(se,fe)&&K.push(fe)}),K},file:function(W,K,se){if(arguments.length!==1)return W=this.root+W,V.call(this,W,K,se),this;if(X(W)){var fe=W;return this.filter(function(Se,Ue){return!Ue.dir&&fe.test(Se)})}var Oe=this.files[this.root+W];return Oe&&!Oe.dir?Oe:null},folder:function(W){if(!W)return this;if(X(W))return this.filter(function(Oe,Se){return Se.dir&&W.test(Oe)});var K=this.root+W,se=le.call(this,K),fe=this.clone();return fe.root=se.name,fe},remove:function(W){W=this.root+W;var K=this.files[W];if(K||(W.slice(-1)!=="/"&&(W+="/"),K=this.files[W]),K&&!K.dir)delete this.files[W];else for(var se=this.filter(function(Oe,Se){return Se.name.slice(0,W.length)===W}),fe=0;fe<se.length;fe++)delete this.files[se[fe].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(W){var K,se={};try{if((se=g.extend(W||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:S.utf8encode})).type=se.type.toLowerCase(),se.compression=se.compression.toUpperCase(),se.type==="binarystring"&&(se.type="string"),!se.type)throw new Error("No output type specified.");g.checkSupport(se.type),se.platform!=="darwin"&&se.platform!=="freebsd"&&se.platform!=="linux"&&se.platform!=="sunos"||(se.platform="UNIX"),se.platform==="win32"&&(se.platform="DOS");var fe=se.comment||this.comment||"";K=N.generateWorker(this,se,fe)}catch(Oe){(K=new I("error")).error(Oe)}return new v(K,se.type||"string",se.mimeType)},generateAsync:function(W,K){return this.generateInternalStream(W).accumulate(K)},generateNodeStream:function(W,K){return(W=W||{}).type||(W.type="nodebuffer"),this.generateInternalStream(W).toNodejsStream(K)}};De.exports=q},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(P,De,te){"use strict";De.exports=P("stream")},{stream:void 0}],17:[function(P,De,te){"use strict";var V=P("./DataReader");function S(g){V.call(this,g);for(var I=0;I<this.data.length;I++)g[I]=255&g[I]}P("../utils").inherits(S,V),S.prototype.byteAt=function(g){return this.data[this.zero+g]},S.prototype.lastIndexOfSignature=function(g){for(var I=g.charCodeAt(0),v=g.charCodeAt(1),z=g.charCodeAt(2),E=g.charCodeAt(3),M=this.length-4;0<=M;--M)if(this.data[M]===I&&this.data[M+1]===v&&this.data[M+2]===z&&this.data[M+3]===E)return M-this.zero;return-1},S.prototype.readAndCheckSignature=function(g){var I=g.charCodeAt(0),v=g.charCodeAt(1),z=g.charCodeAt(2),E=g.charCodeAt(3),M=this.readData(4);return I===M[0]&&v===M[1]&&z===M[2]&&E===M[3]},S.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var I=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,I},De.exports=S},{"../utils":32,"./DataReader":18}],18:[function(P,De,te){"use strict";var V=P("../utils");function S(g){this.data=g,this.length=g.length,this.index=0,this.zero=0}S.prototype={checkOffset:function(g){this.checkIndex(this.index+g)},checkIndex:function(g){if(this.length<this.zero+g||g<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+g+"). Corrupted zip ?")},setIndex:function(g){this.checkIndex(g),this.index=g},skip:function(g){this.setIndex(this.index+g)},byteAt:function(){},readInt:function(g){var I,v=0;for(this.checkOffset(g),I=this.index+g-1;I>=this.index;I--)v=(v<<8)+this.byteAt(I);return this.index+=g,v},readString:function(g){return V.transformTo("string",this.readData(g))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var g=this.readInt(4);return new Date(Date.UTC(1980+(g>>25&127),(g>>21&15)-1,g>>16&31,g>>11&31,g>>5&63,(31&g)<<1))}},De.exports=S},{"../utils":32}],19:[function(P,De,te){"use strict";var V=P("./Uint8ArrayReader");function S(g){V.call(this,g)}P("../utils").inherits(S,V),S.prototype.readData=function(g){this.checkOffset(g);var I=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,I},De.exports=S},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(P,De,te){"use strict";var V=P("./DataReader");function S(g){V.call(this,g)}P("../utils").inherits(S,V),S.prototype.byteAt=function(g){return this.data.charCodeAt(this.zero+g)},S.prototype.lastIndexOfSignature=function(g){return this.data.lastIndexOf(g)-this.zero},S.prototype.readAndCheckSignature=function(g){return g===this.readData(4)},S.prototype.readData=function(g){this.checkOffset(g);var I=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,I},De.exports=S},{"../utils":32,"./DataReader":18}],21:[function(P,De,te){"use strict";var V=P("./ArrayReader");function S(g){V.call(this,g)}P("../utils").inherits(S,V),S.prototype.readData=function(g){if(this.checkOffset(g),g===0)return new Uint8Array(0);var I=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,I},De.exports=S},{"../utils":32,"./ArrayReader":17}],22:[function(P,De,te){"use strict";var V=P("../utils"),S=P("../support"),g=P("./ArrayReader"),I=P("./StringReader"),v=P("./NodeBufferReader"),z=P("./Uint8ArrayReader");De.exports=function(E){var M=V.getTypeOf(E);return V.checkSupport(M),M!=="string"||S.uint8array?M==="nodebuffer"?new v(E):S.uint8array?new z(V.transformTo("uint8array",E)):new g(V.transformTo("array",E)):new I(E)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(P,De,te){"use strict";te.LOCAL_FILE_HEADER="PK",te.CENTRAL_FILE_HEADER="PK",te.CENTRAL_DIRECTORY_END="PK",te.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",te.ZIP64_CENTRAL_DIRECTORY_END="PK",te.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(P,De,te){"use strict";var V=P("./GenericWorker"),S=P("../utils");function g(I){V.call(this,"ConvertWorker to "+I),this.destType=I}S.inherits(g,V),g.prototype.processChunk=function(I){this.push({data:S.transformTo(this.destType,I.data),meta:I.meta})},De.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(P,De,te){"use strict";var V=P("./GenericWorker"),S=P("../crc32");function g(){V.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}P("../utils").inherits(g,V),g.prototype.processChunk=function(I){this.streamInfo.crc32=S(I.data,this.streamInfo.crc32||0),this.push(I)},De.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(P,De,te){"use strict";var V=P("../utils"),S=P("./GenericWorker");function g(I){S.call(this,"DataLengthProbe for "+I),this.propName=I,this.withStreamInfo(I,0)}V.inherits(g,S),g.prototype.processChunk=function(I){if(I){var v=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=v+I.data.length}S.prototype.processChunk.call(this,I)},De.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(P,De,te){"use strict";var V=P("../utils"),S=P("./GenericWorker");function g(I){S.call(this,"DataWorker");var v=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,I.then(function(z){v.dataIsReady=!0,v.data=z,v.max=z&&z.length||0,v.type=V.getTypeOf(z),v.isPaused||v._tickAndRepeat()},function(z){v.error(z)})}V.inherits(g,S),g.prototype.cleanUp=function(){S.prototype.cleanUp.call(this),this.data=null},g.prototype.resume=function(){return!!S.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,V.delay(this._tickAndRepeat,[],this)),!0)},g.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(V.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},g.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var I=null,v=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":I=this.data.substring(this.index,v);break;case"uint8array":I=this.data.subarray(this.index,v);break;case"array":case"nodebuffer":I=this.data.slice(this.index,v)}return this.index=v,this.push({data:I,meta:{percent:this.max?this.index/this.max*100:0}})},De.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(P,De,te){"use strict";function V(S){this.name=S||"default",this.streamInfo={},this.generatedError=null,this.extraStreamInfo={},this.isPaused=!0,this.isFinished=!1,this.isLocked=!1,this._listeners={data:[],end:[],error:[]},this.previous=null}V.prototype={push:function(S){this.emit("data",S)},end:function(){if(this.isFinished)return!1;this.flush();try{this.emit("end"),this.cleanUp(),this.isFinished=!0}catch(S){this.emit("error",S)}return!0},error:function(S){return!this.isFinished&&(this.isPaused?this.generatedError=S:(this.isFinished=!0,this.emit("error",S),this.previous&&this.previous.error(S),this.cleanUp()),!0)},on:function(S,g){return this._listeners[S].push(g),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(S,g){if(this._listeners[S])for(var I=0;I<this._listeners[S].length;I++)this._listeners[S][I].call(this,g)},pipe:function(S){return S.registerPrevious(this)},registerPrevious:function(S){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.streamInfo=S.streamInfo,this.mergeStreamInfo(),this.previous=S;var g=this;return S.on("data",function(I){g.processChunk(I)}),S.on("end",function(){g.end()}),S.on("error",function(I){g.error(I)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var S=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),S=!0),this.previous&&this.previous.resume(),!S},flush:function(){},processChunk:function(S){this.push(S)},withStreamInfo:function(S,g){return this.extraStreamInfo[S]=g,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var S in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,S)&&(this.streamInfo[S]=this.extraStreamInfo[S])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var S="Worker "+this.name;return this.previous?this.previous+" -> "+S:S}},De.exports=V},{}],29:[function(P,De,te){"use strict";var V=P("../utils"),S=P("./ConvertWorker"),g=P("./GenericWorker"),I=P("../base64"),v=P("../support"),z=P("../external"),E=null;if(v.nodestream)try{E=P("../nodejs/NodejsStreamOutputAdapter")}catch(T){}function M(T,L){return new z.Promise(function(ee,R){var le=[],X=T._internalType,q=T._outputType,W=T._mimeType;T.on("data",function(K,se){le.push(K),L&&L(se)}).on("error",function(K){le=[],R(K)}).on("end",function(){try{var K=function(se,fe,Oe){switch(se){case"blob":return V.newBlob(V.transformTo("arraybuffer",fe),Oe);case"base64":return I.encode(fe);default:return V.transformTo(se,fe)}}(q,function(se,fe){var Oe,Se=0,Ue=null,J=0;for(Oe=0;Oe<fe.length;Oe++)J+=fe[Oe].length;switch(se){case"string":return fe.join("");case"array":return Array.prototype.concat.apply([],fe);case"uint8array":for(Ue=new Uint8Array(J),Oe=0;Oe<fe.length;Oe++)Ue.set(fe[Oe],Se),Se+=fe[Oe].length;return Ue;case"nodebuffer":return me.concat(fe);default:throw new Error("concat : unsupported type '"+se+"'")}}(X,le),W);ee(K)}catch(se){R(se)}le=[]}).resume()})}function N(T,L,ee){var R=L;switch(L){case"blob":case"arraybuffer":R="uint8array";break;case"base64":R="string"}try{this._internalType=R,this._outputType=L,this._mimeType=ee,V.checkSupport(R),this._worker=T.pipe(new S(R)),T.lock()}catch(le){this._worker=new g("error"),this._worker.error(le)}}N.prototype={accumulate:function(T){return M(this,T)},on:function(T,L){var ee=this;return T==="data"?this._worker.on(T,function(R){L.call(ee,R.data,R.meta)}):this._worker.on(T,function(){V.delay(L,arguments,ee)}),this},resume:function(){return V.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(T){if(V.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new E(this,{objectMode:this._outputType!=="nodebuffer"},T)}},De.exports=N},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(P,De,te){"use strict";if(te.base64=!0,te.array=!0,te.string=!0,te.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",te.nodebuffer=typeof me!="undefined",te.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")te.blob=!1;else{var V=new ArrayBuffer(0);try{te.blob=new Blob([V],{type:"application/zip"}).size===0}catch(g){try{var S=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);S.append(V),te.blob=S.getBlob("application/zip").size===0}catch(I){te.blob=!1}}}try{te.nodestream=!!P("readable-stream").Readable}catch(g){te.nodestream=!1}},{"readable-stream":16}],31:[function(P,De,te){"use strict";for(var V=P("./utils"),S=P("./support"),g=P("./nodejsUtils"),I=P("./stream/GenericWorker"),v=new Array(256),z=0;z<256;z++)v[z]=252<=z?6:248<=z?5:240<=z?4:224<=z?3:192<=z?2:1;v[254]=v[254]=1;function E(){I.call(this,"utf-8 decode"),this.leftOver=null}function M(){I.call(this,"utf-8 encode")}te.utf8encode=function(N){return S.nodebuffer?g.newBufferFrom(N,"utf-8"):function(T){var L,ee,R,le,X,q=T.length,W=0;for(le=0;le<q;le++)(64512&(ee=T.charCodeAt(le)))==55296&&le+1<q&&(64512&(R=T.charCodeAt(le+1)))==56320&&(ee=65536+(ee-55296<<10)+(R-56320),le++),W+=ee<128?1:ee<2048?2:ee<65536?3:4;for(L=S.uint8array?new Uint8Array(W):new Array(W),le=X=0;X<W;le++)(64512&(ee=T.charCodeAt(le)))==55296&&le+1<q&&(64512&(R=T.charCodeAt(le+1)))==56320&&(ee=65536+(ee-55296<<10)+(R-56320),le++),ee<128?L[X++]=ee:(ee<2048?L[X++]=192|ee>>>6:(ee<65536?L[X++]=224|ee>>>12:(L[X++]=240|ee>>>18,L[X++]=128|ee>>>12&63),L[X++]=128|ee>>>6&63),L[X++]=128|63&ee);return L}(N)},te.utf8decode=function(N){return S.nodebuffer?V.transformTo("nodebuffer",N).toString("utf-8"):function(T){var L,ee,R,le,X=T.length,q=new Array(2*X);for(L=ee=0;L<X;)if((R=T[L++])<128)q[ee++]=R;else if(4<(le=v[R]))q[ee++]=65533,L+=le-1;else{for(R&=le===2?31:le===3?15:7;1<le&&L<X;)R=R<<6|63&T[L++],le--;1<le?q[ee++]=65533:R<65536?q[ee++]=R:(R-=65536,q[ee++]=55296|R>>10&1023,q[ee++]=56320|1023&R)}return q.length!==ee&&(q.subarray?q=q.subarray(0,ee):q.length=ee),V.applyFromCharCode(q)}(N=V.transformTo(S.uint8array?"uint8array":"array",N))},V.inherits(E,I),E.prototype.processChunk=function(N){var T=V.transformTo(S.uint8array?"uint8array":"array",N.data);if(this.leftOver&&this.leftOver.length){if(S.uint8array){var L=T;(T=new Uint8Array(L.length+this.leftOver.length)).set(this.leftOver,0),T.set(L,this.leftOver.length)}else T=this.leftOver.concat(T);this.leftOver=null}var ee=function(le,X){var q;for((X=X||le.length)>le.length&&(X=le.length),q=X-1;0<=q&&(192&le[q])==128;)q--;return q<0||q===0?X:q+v[le[q]]>X?q:X}(T),R=T;ee!==T.length&&(S.uint8array?(R=T.subarray(0,ee),this.leftOver=T.subarray(ee,T.length)):(R=T.slice(0,ee),this.leftOver=T.slice(ee,T.length))),this.push({data:te.utf8decode(R),meta:N.meta})},E.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:te.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},te.Utf8DecodeWorker=E,V.inherits(M,I),M.prototype.processChunk=function(N){this.push({data:te.utf8encode(N.data),meta:N.meta})},te.Utf8EncodeWorker=M},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(P,De,te){"use strict";var V=P("./support"),S=P("./base64"),g=P("./nodejsUtils"),I=P("./external");function v(L){return L}function z(L,ee){for(var R=0;R<L.length;++R)ee[R]=255&L.charCodeAt(R);return ee}P("setimmediate"),te.newBlob=function(L,ee){te.checkSupport("blob");try{return new Blob([L],{type:ee})}catch(le){try{var R=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return R.append(L),R.getBlob(ee)}catch(X){throw new Error("Bug : can't construct the Blob.")}}};var E={stringifyByChunk:function(L,ee,R){var le=[],X=0,q=L.length;if(q<=R)return String.fromCharCode.apply(null,L);for(;X<q;)ee==="array"||ee==="nodebuffer"?le.push(String.fromCharCode.apply(null,L.slice(X,Math.min(X+R,q)))):le.push(String.fromCharCode.apply(null,L.subarray(X,Math.min(X+R,q)))),X+=R;return le.join("")},stringifyByChar:function(L){for(var ee="",R=0;R<L.length;R++)ee+=String.fromCharCode(L[R]);return ee},applyCanBeUsed:{uint8array:function(){try{return V.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(L){return!1}}(),nodebuffer:function(){try{return V.nodebuffer&&String.fromCharCode.apply(null,g.allocBuffer(1)).length===1}catch(L){return!1}}()}};function M(L){var ee=65536,R=te.getTypeOf(L),le=!0;if(R==="uint8array"?le=E.applyCanBeUsed.uint8array:R==="nodebuffer"&&(le=E.applyCanBeUsed.nodebuffer),le)for(;1<ee;)try{return E.stringifyByChunk(L,R,ee)}catch(X){ee=Math.floor(ee/2)}return E.stringifyByChar(L)}function N(L,ee){for(var R=0;R<L.length;R++)ee[R]=L[R];return ee}te.applyFromCharCode=M;var T={};T.string={string:v,array:function(L){return z(L,new Array(L.length))},arraybuffer:function(L){return T.string.uint8array(L).buffer},uint8array:function(L){return z(L,new Uint8Array(L.length))},nodebuffer:function(L){return z(L,g.allocBuffer(L.length))}},T.array={string:M,array:v,arraybuffer:function(L){return new Uint8Array(L).buffer},uint8array:function(L){return new Uint8Array(L)},nodebuffer:function(L){return g.newBufferFrom(L)}},T.arraybuffer={string:function(L){return M(new Uint8Array(L))},array:function(L){return N(new Uint8Array(L),new Array(L.byteLength))},arraybuffer:v,uint8array:function(L){return new Uint8Array(L)},nodebuffer:function(L){return g.newBufferFrom(new Uint8Array(L))}},T.uint8array={string:M,array:function(L){return N(L,new Array(L.length))},arraybuffer:function(L){return L.buffer},uint8array:v,nodebuffer:function(L){return g.newBufferFrom(L)}},T.nodebuffer={string:M,array:function(L){return N(L,new Array(L.length))},arraybuffer:function(L){return T.nodebuffer.uint8array(L).buffer},uint8array:function(L){return N(L,new Uint8Array(L.length))},nodebuffer:v},te.transformTo=function(L,ee){if(ee=ee||"",!L)return ee;te.checkSupport(L);var R=te.getTypeOf(ee);return T[R][L](ee)},te.resolve=function(L){for(var ee=L.split("/"),R=[],le=0;le<ee.length;le++){var X=ee[le];X==="."||X===""&&le!==0&&le!==ee.length-1||(X===".."?R.pop():R.push(X))}return R.join("/")},te.getTypeOf=function(L){return typeof L=="string"?"string":Object.prototype.toString.call(L)==="[object Array]"?"array":V.nodebuffer&&g.isBuffer(L)?"nodebuffer":V.uint8array&&L instanceof Uint8Array?"uint8array":V.arraybuffer&&L instanceof ArrayBuffer?"arraybuffer":void 0},te.checkSupport=function(L){if(!V[L.toLowerCase()])throw new Error(L+" is not supported by this platform")},te.MAX_VALUE_16BITS=65535,te.MAX_VALUE_32BITS=-1,te.pretty=function(L){var ee,R,le="";for(R=0;R<(L||"").length;R++)le+="\\x"+((ee=L.charCodeAt(R))<16?"0":"")+ee.toString(16).toUpperCase();return le},te.delay=function(L,ee,R){setImmediate(function(){L.apply(R||null,ee||[])})},te.inherits=function(L,ee){function R(){}R.prototype=ee.prototype,L.prototype=new R},te.extend=function(){var L,ee,R={};for(L=0;L<arguments.length;L++)for(ee in arguments[L])Object.prototype.hasOwnProperty.call(arguments[L],ee)&&R[ee]===void 0&&(R[ee]=arguments[L][ee]);return R},te.prepareContent=function(L,ee,R,le,X){return I.Promise.resolve(ee).then(function(q){return V.blob&&(q instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(q))!==-1)&&typeof FileReader!="undefined"?new I.Promise(function(W,K){var se=new FileReader;se.onload=function(fe){W(fe.target.result)},se.onerror=function(fe){K(fe.target.error)},se.readAsArrayBuffer(q)}):q}).then(function(q){var W=te.getTypeOf(q);return W?(W==="arraybuffer"?q=te.transformTo("uint8array",q):W==="string"&&(X?q=S.decode(q):R&&le!==!0&&(q=function(K){return z(K,V.uint8array?new Uint8Array(K.length):new Array(K.length))}(q))),q):I.Promise.reject(new Error("Can't read the data of '"+L+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(P,De,te){"use strict";var V=P("./reader/readerFor"),S=P("./utils"),g=P("./signature"),I=P("./zipEntry"),v=P("./support");function z(E){this.files=[],this.loadOptions=E}z.prototype={checkSignature:function(E){if(!this.reader.readAndCheckSignature(E)){this.reader.index-=4;var M=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+S.pretty(M)+", expected "+S.pretty(E)+")")}},isSignature:function(E,M){var N=this.reader.index;this.reader.setIndex(E);var T=this.reader.readString(4)===M;return this.reader.setIndex(N),T},readBlockEndOfCentral:function(){this.diskNumber=this.reader.readInt(2),this.diskWithCentralDirStart=this.reader.readInt(2),this.centralDirRecordsOnThisDisk=this.reader.readInt(2),this.centralDirRecords=this.reader.readInt(2),this.centralDirSize=this.reader.readInt(4),this.centralDirOffset=this.reader.readInt(4),this.zipCommentLength=this.reader.readInt(2);var E=this.reader.readData(this.zipCommentLength),M=v.uint8array?"uint8array":"array",N=S.transformTo(M,E);this.zipComment=this.loadOptions.decodeFileName(N)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var E,M,N,T=this.zip64EndOfCentralSize-44;0<T;)E=this.reader.readInt(2),M=this.reader.readInt(4),N=this.reader.readData(M),this.zip64ExtensibleData[E]={id:E,length:M,value:N}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var E,M;for(E=0;E<this.files.length;E++)M=this.files[E],this.reader.setIndex(M.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),M.readLocalPart(this.reader),M.handleUTF8(),M.processAttributes()},readCentralDir:function(){var E;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(E=new I({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(E);if(this.centralDirRecords!==this.files.length&&this.centralDirRecords!==0&&this.files.length===0)throw new Error("Corrupted zip or bug: expected "+this.centralDirRecords+" records in central dir, got "+this.files.length)},readEndOfCentral:function(){var E=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(E<0)throw this.isSignature(0,g.LOCAL_FILE_HEADER)?new Error("Corrupted zip: can't find end of central directory"):new Error("Can't find end of central directory : is this a zip file ? If it is, see https://stuk.github.io/jszip/documentation/howto/read_zip.html");this.reader.setIndex(E);var M=E;if(this.checkSignature(g.CENTRAL_DIRECTORY_END),this.readBlockEndOfCentral(),this.diskNumber===S.MAX_VALUE_16BITS||this.diskWithCentralDirStart===S.MAX_VALUE_16BITS||this.centralDirRecordsOnThisDisk===S.MAX_VALUE_16BITS||this.centralDirRecords===S.MAX_VALUE_16BITS||this.centralDirSize===S.MAX_VALUE_32BITS||this.centralDirOffset===S.MAX_VALUE_32BITS){if(this.zip64=!0,(E=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR))<0)throw new Error("Corrupted zip: can't find the ZIP64 end of central directory locator");if(this.reader.setIndex(E),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,g.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.relativeOffsetEndOfZip64CentralDir<0))throw new Error("Corrupted zip: can't find the ZIP64 end of central directory");this.reader.setIndex(this.relativeOffsetEndOfZip64CentralDir),this.checkSignature(g.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var N=this.centralDirOffset+this.centralDirSize;this.zip64&&(N+=20,N+=12+this.zip64EndOfCentralSize);var T=M-N;if(0<T)this.isSignature(M,g.CENTRAL_FILE_HEADER)||(this.reader.zero=T);else if(T<0)throw new Error("Corrupted zip: missing "+Math.abs(T)+" bytes.")},prepareReader:function(E){this.reader=V(E)},load:function(E){this.prepareReader(E),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},De.exports=z},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(P,De,te){"use strict";var V=P("./reader/readerFor"),S=P("./utils"),g=P("./compressedObject"),I=P("./crc32"),v=P("./utf8"),z=P("./compressions"),E=P("./support");function M(N,T){this.options=N,this.loadOptions=T}M.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(N){var T,L;if(N.skip(22),this.fileNameLength=N.readInt(2),L=N.readInt(2),this.fileName=N.readData(this.fileNameLength),N.skip(L),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((T=function(ee){for(var R in z)if(Object.prototype.hasOwnProperty.call(z,R)&&z[R].magic===ee)return z[R];return null}(this.compressionMethod))===null)throw new Error("Corrupted zip : compression "+S.pretty(this.compressionMethod)+" unknown (inner file : "+S.transformTo("string",this.fileName)+")");this.decompressed=new g(this.compressedSize,this.uncompressedSize,this.crc32,T,N.readData(this.compressedSize))},readCentralPart:function(N){this.versionMadeBy=N.readInt(2),N.skip(2),this.bitFlag=N.readInt(2),this.compressionMethod=N.readString(2),this.date=N.readDate(),this.crc32=N.readInt(4),this.compressedSize=N.readInt(4),this.uncompressedSize=N.readInt(4);var T=N.readInt(2);if(this.extraFieldsLength=N.readInt(2),this.fileCommentLength=N.readInt(2),this.diskNumberStart=N.readInt(2),this.internalFileAttributes=N.readInt(2),this.externalFileAttributes=N.readInt(4),this.localHeaderOffset=N.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");N.skip(T),this.readExtraFields(N),this.parseZIP64ExtraField(N),this.fileComment=N.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var N=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),N==0&&(this.dosPermissions=63&this.externalFileAttributes),N==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var N=V(this.extraFields[1].value);this.uncompressedSize===S.MAX_VALUE_32BITS&&(this.uncompressedSize=N.readInt(8)),this.compressedSize===S.MAX_VALUE_32BITS&&(this.compressedSize=N.readInt(8)),this.localHeaderOffset===S.MAX_VALUE_32BITS&&(this.localHeaderOffset=N.readInt(8)),this.diskNumberStart===S.MAX_VALUE_32BITS&&(this.diskNumberStart=N.readInt(4))}},readExtraFields:function(N){var T,L,ee,R=N.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});N.index+4<R;)T=N.readInt(2),L=N.readInt(2),ee=N.readData(L),this.extraFields[T]={id:T,length:L,value:ee};N.setIndex(R)},handleUTF8:function(){var N=E.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=v.utf8decode(this.fileName),this.fileCommentStr=v.utf8decode(this.fileComment);else{var T=this.findExtraFieldUnicodePath();if(T!==null)this.fileNameStr=T;else{var L=S.transformTo(N,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(L)}var ee=this.findExtraFieldUnicodeComment();if(ee!==null)this.fileCommentStr=ee;else{var R=S.transformTo(N,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(R)}}},findExtraFieldUnicodePath:function(){var N=this.extraFields[28789];if(N){var T=V(N.value);return T.readInt(1)!==1||I(this.fileName)!==T.readInt(4)?null:v.utf8decode(T.readData(N.length-5))}return null},findExtraFieldUnicodeComment:function(){var N=this.extraFields[25461];if(N){var T=V(N.value);return T.readInt(1)!==1||I(this.fileComment)!==T.readInt(4)?null:v.utf8decode(T.readData(N.length-5))}return null}},De.exports=M},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(P,De,te){"use strict";function V(T,L,ee){this.name=T,this.dir=ee.dir,this.date=ee.date,this.comment=ee.comment,this.unixPermissions=ee.unixPermissions,this.dosPermissions=ee.dosPermissions,this._data=L,this._dataBinary=ee.binary,this.options={compression:ee.compression,compressionOptions:ee.compressionOptions}}var S=P("./stream/StreamHelper"),g=P("./stream/DataWorker"),I=P("./utf8"),v=P("./compressedObject"),z=P("./stream/GenericWorker");V.prototype={internalStream:function(T){var L=null,ee="string";try{if(!T)throw new Error("No output type specified.");var R=(ee=T.toLowerCase())==="string"||ee==="text";ee!=="binarystring"&&ee!=="text"||(ee="string"),L=this._decompressWorker();var le=!this._dataBinary;le&&!R&&(L=L.pipe(new I.Utf8EncodeWorker)),!le&&R&&(L=L.pipe(new I.Utf8DecodeWorker))}catch(X){(L=new z("error")).error(X)}return new S(L,ee,"")},async:function(T,L){return this.internalStream(T).accumulate(L)},nodeStream:function(T,L){return this.internalStream(T||"nodebuffer").toNodejsStream(L)},_compressWorker:function(T,L){if(this._data instanceof v&&this._data.compression.magic===T.magic)return this._data.getCompressedWorker();var ee=this._decompressWorker();return this._dataBinary||(ee=ee.pipe(new I.Utf8EncodeWorker)),v.createWorkerFrom(ee,T,L)},_decompressWorker:function(){return this._data instanceof v?this._data.getContentWorker():this._data instanceof z?this._data:new g(this._data)}};for(var E=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],M=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},N=0;N<E.length;N++)V.prototype[E[N]]=M;De.exports=V},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(P,De,te){(function(V){"use strict";var S,g,I=V.MutationObserver||V.WebKitMutationObserver;if(I){var v=0,z=new I(T),E=V.document.createTextNode("");z.observe(E,{characterData:!0}),S=function(){E.data=v=++v%2}}else if(V.setImmediate||V.MessageChannel===void 0)S="document"in V&&"onreadystatechange"in V.document.createElement("script")?function(){var L=V.document.createElement("script");L.onreadystatechange=function(){T(),L.onreadystatechange=null,L.parentNode.removeChild(L),L=null},V.document.documentElement.appendChild(L)}:function(){setTimeout(T,0)};else{var M=new V.MessageChannel;M.port1.onmessage=T,S=function(){M.port2.postMessage(0)}}var N=[];function T(){var L,ee;g=!0;for(var R=N.length;R;){for(ee=N,N=[],L=-1;++L<R;)ee[L]();R=N.length}g=!1}De.exports=function(L){N.push(L)!==1||g||S()}}).call(this,typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(P,De,te){"use strict";var V=P("immediate");function S(){}var g={},I=["REJECTED"],v=["FULFILLED"],z=["PENDING"];function E(R){if(typeof R!="function")throw new TypeError("resolver must be a function");this.state=z,this.queue=[],this.outcome=void 0,R!==S&&L(this,R)}function M(R,le,X){this.promise=R,typeof le=="function"&&(this.onFulfilled=le,this.callFulfilled=this.otherCallFulfilled),typeof X=="function"&&(this.onRejected=X,this.callRejected=this.otherCallRejected)}function N(R,le,X){V(function(){var q;try{q=le(X)}catch(W){return g.reject(R,W)}q===R?g.reject(R,new TypeError("Cannot resolve promise with itself")):g.resolve(R,q)})}function T(R){var le=R&&R.then;if(R&&(typeof R=="object"||typeof R=="function")&&typeof le=="function")return function(){le.apply(R,arguments)}}function L(R,le){var X=!1;function q(se){X||(X=!0,g.reject(R,se))}function W(se){X||(X=!0,g.resolve(R,se))}var K=ee(function(){le(W,q)});K.status==="error"&&q(K.value)}function ee(R,le){var X={};try{X.value=R(le),X.status="success"}catch(q){X.status="error",X.value=q}return X}(De.exports=E).prototype.finally=function(R){if(typeof R!="function")return this;var le=this.constructor;return this.then(function(X){return le.resolve(R()).then(function(){return X})},function(X){return le.resolve(R()).then(function(){throw X})})},E.prototype.catch=function(R){return this.then(null,R)},E.prototype.then=function(R,le){if(typeof R!="function"&&this.state===v||typeof le!="function"&&this.state===I)return this;var X=new this.constructor(S);return this.state!==z?N(X,this.state===v?R:le,this.outcome):this.queue.push(new M(X,R,le)),X},M.prototype.callFulfilled=function(R){g.resolve(this.promise,R)},M.prototype.otherCallFulfilled=function(R){N(this.promise,this.onFulfilled,R)},M.prototype.callRejected=function(R){g.reject(this.promise,R)},M.prototype.otherCallRejected=function(R){N(this.promise,this.onRejected,R)},g.resolve=function(R,le){var X=ee(T,le);if(X.status==="error")return g.reject(R,X.value);var q=X.value;if(q)L(R,q);else{R.state=v,R.outcome=le;for(var W=-1,K=R.queue.length;++W<K;)R.queue[W].callFulfilled(le)}return R},g.reject=function(R,le){R.state=I,R.outcome=le;for(var X=-1,q=R.queue.length;++X<q;)R.queue[X].callRejected(le);return R},E.resolve=function(R){return R instanceof this?R:g.resolve(new this(S),R)},E.reject=function(R){var le=new this(S);return g.reject(le,R)},E.all=function(R){var le=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var X=R.length,q=!1;if(!X)return this.resolve([]);for(var W=new Array(X),K=0,se=-1,fe=new this(S);++se<X;)Oe(R[se],se);return fe;function Oe(Se,Ue){le.resolve(Se).then(function(J){W[Ue]=J,++K!==X||q||(q=!0,g.resolve(fe,W))},function(J){q||(q=!0,g.reject(fe,J))})}},E.race=function(R){var le=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var X=R.length,q=!1;if(!X)return this.resolve([]);for(var W=-1,K=new this(S);++W<X;)se=R[W],le.resolve(se).then(function(fe){q||(q=!0,g.resolve(K,fe))},function(fe){q||(q=!0,g.reject(K,fe))});var se;return K}},{immediate:36}],38:[function(P,De,te){"use strict";var V={};(0,P("./lib/utils/common").assign)(V,P("./lib/deflate"),P("./lib/inflate"),P("./lib/zlib/constants")),De.exports=V},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(P,De,te){"use strict";var V=P("./zlib/deflate"),S=P("./utils/common"),g=P("./utils/strings"),I=P("./zlib/messages"),v=P("./zlib/zstream"),z=Object.prototype.toString,E=0,M=-1,N=0,T=8;function L(R){if(!(this instanceof L))return new L(R);this.options=S.assign({level:M,method:T,chunkSize:16384,windowBits:15,memLevel:8,strategy:N,to:""},R||{});var le=this.options;le.raw&&0<le.windowBits?le.windowBits=-le.windowBits:le.gzip&&0<le.windowBits&&le.windowBits<16&&(le.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var X=V.deflateInit2(this.strm,le.level,le.method,le.windowBits,le.memLevel,le.strategy);if(X!==E)throw new Error(I[X]);if(le.header&&V.deflateSetHeader(this.strm,le.header),le.dictionary){var q;if(q=typeof le.dictionary=="string"?g.string2buf(le.dictionary):z.call(le.dictionary)==="[object ArrayBuffer]"?new Uint8Array(le.dictionary):le.dictionary,(X=V.deflateSetDictionary(this.strm,q))!==E)throw new Error(I[X]);this._dict_set=!0}}function ee(R,le){var X=new L(le);if(X.push(R,!0),X.err)throw X.msg||I[X.err];return X.result}L.prototype.push=function(R,le){var X,q,W=this.strm,K=this.options.chunkSize;if(this.ended)return!1;q=le===~~le?le:le===!0?4:0,typeof R=="string"?W.input=g.string2buf(R):z.call(R)==="[object ArrayBuffer]"?W.input=new Uint8Array(R):W.input=R,W.next_in=0,W.avail_in=W.input.length;do{if(W.avail_out===0&&(W.output=new S.Buf8(K),W.next_out=0,W.avail_out=K),(X=V.deflate(W,q))!==1&&X!==E)return this.onEnd(X),!(this.ended=!0);W.avail_out!==0&&(W.avail_in!==0||q!==4&&q!==2)||(this.options.to==="string"?this.onData(g.buf2binstring(S.shrinkBuf(W.output,W.next_out))):this.onData(S.shrinkBuf(W.output,W.next_out)))}while((0<W.avail_in||W.avail_out===0)&&X!==1);return q===4?(X=V.deflateEnd(this.strm),this.onEnd(X),this.ended=!0,X===E):q!==2||(this.onEnd(E),!(W.avail_out=0))},L.prototype.onData=function(R){this.chunks.push(R)},L.prototype.onEnd=function(R){R===E&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=S.flattenChunks(this.chunks)),this.chunks=[],this.err=R,this.msg=this.strm.msg},te.Deflate=L,te.deflate=ee,te.deflateRaw=function(R,le){return(le=le||{}).raw=!0,ee(R,le)},te.gzip=function(R,le){return(le=le||{}).gzip=!0,ee(R,le)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(P,De,te){"use strict";var V=P("./zlib/inflate"),S=P("./utils/common"),g=P("./utils/strings"),I=P("./zlib/constants"),v=P("./zlib/messages"),z=P("./zlib/zstream"),E=P("./zlib/gzheader"),M=Object.prototype.toString;function N(L){if(!(this instanceof N))return new N(L);this.options=S.assign({chunkSize:16384,windowBits:0,to:""},L||{});var ee=this.options;ee.raw&&0<=ee.windowBits&&ee.windowBits<16&&(ee.windowBits=-ee.windowBits,ee.windowBits===0&&(ee.windowBits=-15)),!(0<=ee.windowBits&&ee.windowBits<16)||L&&L.windowBits||(ee.windowBits+=32),15<ee.windowBits&&ee.windowBits<48&&!(15&ee.windowBits)&&(ee.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new z,this.strm.avail_out=0;var R=V.inflateInit2(this.strm,ee.windowBits);if(R!==I.Z_OK)throw new Error(v[R]);this.header=new E,V.inflateGetHeader(this.strm,this.header)}function T(L,ee){var R=new N(ee);if(R.push(L,!0),R.err)throw R.msg||v[R.err];return R.result}N.prototype.push=function(L,ee){var R,le,X,q,W,K,se=this.strm,fe=this.options.chunkSize,Oe=this.options.dictionary,Se=!1;if(this.ended)return!1;le=ee===~~ee?ee:ee===!0?I.Z_FINISH:I.Z_NO_FLUSH,typeof L=="string"?se.input=g.binstring2buf(L):M.call(L)==="[object ArrayBuffer]"?se.input=new Uint8Array(L):se.input=L,se.next_in=0,se.avail_in=se.input.length;do{if(se.avail_out===0&&(se.output=new S.Buf8(fe),se.next_out=0,se.avail_out=fe),(R=V.inflate(se,I.Z_NO_FLUSH))===I.Z_NEED_DICT&&Oe&&(K=typeof Oe=="string"?g.string2buf(Oe):M.call(Oe)==="[object ArrayBuffer]"?new Uint8Array(Oe):Oe,R=V.inflateSetDictionary(this.strm,K)),R===I.Z_BUF_ERROR&&Se===!0&&(R=I.Z_OK,Se=!1),R!==I.Z_STREAM_END&&R!==I.Z_OK)return this.onEnd(R),!(this.ended=!0);se.next_out&&(se.avail_out!==0&&R!==I.Z_STREAM_END&&(se.avail_in!==0||le!==I.Z_FINISH&&le!==I.Z_SYNC_FLUSH)||(this.options.to==="string"?(X=g.utf8border(se.output,se.next_out),q=se.next_out-X,W=g.buf2string(se.output,X),se.next_out=q,se.avail_out=fe-q,q&&S.arraySet(se.output,se.output,X,q,0),this.onData(W)):this.onData(S.shrinkBuf(se.output,se.next_out)))),se.avail_in===0&&se.avail_out===0&&(Se=!0)}while((0<se.avail_in||se.avail_out===0)&&R!==I.Z_STREAM_END);return R===I.Z_STREAM_END&&(le=I.Z_FINISH),le===I.Z_FINISH?(R=V.inflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===I.Z_OK):le!==I.Z_SYNC_FLUSH||(this.onEnd(I.Z_OK),!(se.avail_out=0))},N.prototype.onData=function(L){this.chunks.push(L)},N.prototype.onEnd=function(L){L===I.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=S.flattenChunks(this.chunks)),this.chunks=[],this.err=L,this.msg=this.strm.msg},te.Inflate=N,te.inflate=T,te.inflateRaw=function(L,ee){return(ee=ee||{}).raw=!0,T(L,ee)},te.ungzip=T},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(P,De,te){"use strict";var V=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";te.assign=function(I){for(var v=Array.prototype.slice.call(arguments,1);v.length;){var z=v.shift();if(z){if(typeof z!="object")throw new TypeError(z+"must be non-object");for(var E in z)z.hasOwnProperty(E)&&(I[E]=z[E])}}return I},te.shrinkBuf=function(I,v){return I.length===v?I:I.subarray?I.subarray(0,v):(I.length=v,I)};var S={arraySet:function(I,v,z,E,M){if(v.subarray&&I.subarray)I.set(v.subarray(z,z+E),M);else for(var N=0;N<E;N++)I[M+N]=v[z+N]},flattenChunks:function(I){var v,z,E,M,N,T;for(v=E=0,z=I.length;v<z;v++)E+=I[v].length;for(T=new Uint8Array(E),v=M=0,z=I.length;v<z;v++)N=I[v],T.set(N,M),M+=N.length;return T}},g={arraySet:function(I,v,z,E,M){for(var N=0;N<E;N++)I[M+N]=v[z+N]},flattenChunks:function(I){return[].concat.apply([],I)}};te.setTyped=function(I){I?(te.Buf8=Uint8Array,te.Buf16=Uint16Array,te.Buf32=Int32Array,te.assign(te,S)):(te.Buf8=Array,te.Buf16=Array,te.Buf32=Array,te.assign(te,g))},te.setTyped(V)},{}],42:[function(P,De,te){"use strict";var V=P("./common"),S=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch(E){S=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(E){g=!1}for(var I=new V.Buf8(256),v=0;v<256;v++)I[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;function z(E,M){if(M<65537&&(E.subarray&&g||!E.subarray&&S))return String.fromCharCode.apply(null,V.shrinkBuf(E,M));for(var N="",T=0;T<M;T++)N+=String.fromCharCode(E[T]);return N}I[254]=I[254]=1,te.string2buf=function(E){var M,N,T,L,ee,R=E.length,le=0;for(L=0;L<R;L++)(64512&(N=E.charCodeAt(L)))==55296&&L+1<R&&(64512&(T=E.charCodeAt(L+1)))==56320&&(N=65536+(N-55296<<10)+(T-56320),L++),le+=N<128?1:N<2048?2:N<65536?3:4;for(M=new V.Buf8(le),L=ee=0;ee<le;L++)(64512&(N=E.charCodeAt(L)))==55296&&L+1<R&&(64512&(T=E.charCodeAt(L+1)))==56320&&(N=65536+(N-55296<<10)+(T-56320),L++),N<128?M[ee++]=N:(N<2048?M[ee++]=192|N>>>6:(N<65536?M[ee++]=224|N>>>12:(M[ee++]=240|N>>>18,M[ee++]=128|N>>>12&63),M[ee++]=128|N>>>6&63),M[ee++]=128|63&N);return M},te.buf2binstring=function(E){return z(E,E.length)},te.binstring2buf=function(E){for(var M=new V.Buf8(E.length),N=0,T=M.length;N<T;N++)M[N]=E.charCodeAt(N);return M},te.buf2string=function(E,M){var N,T,L,ee,R=M||E.length,le=new Array(2*R);for(N=T=0;N<R;)if((L=E[N++])<128)le[T++]=L;else if(4<(ee=I[L]))le[T++]=65533,N+=ee-1;else{for(L&=ee===2?31:ee===3?15:7;1<ee&&N<R;)L=L<<6|63&E[N++],ee--;1<ee?le[T++]=65533:L<65536?le[T++]=L:(L-=65536,le[T++]=55296|L>>10&1023,le[T++]=56320|1023&L)}return z(le,T)},te.utf8border=function(E,M){var N;for((M=M||E.length)>E.length&&(M=E.length),N=M-1;0<=N&&(192&E[N])==128;)N--;return N<0||N===0?M:N+I[E[N]]>M?N:M}},{"./common":41}],43:[function(P,De,te){"use strict";De.exports=function(V,S,g,I){for(var v=65535&V|0,z=V>>>16&65535|0,E=0;g!==0;){for(g-=E=2e3<g?2e3:g;z=z+(v=v+S[I++]|0)|0,--E;);v%=65521,z%=65521}return v|z<<16|0}},{}],44:[function(P,De,te){"use strict";De.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(P,De,te){"use strict";var V=function(){for(var S,g=[],I=0;I<256;I++){S=I;for(var v=0;v<8;v++)S=1&S?3988292384^S>>>1:S>>>1;g[I]=S}return g}();De.exports=function(S,g,I,v){var z=V,E=v+I;S^=-1;for(var M=v;M<E;M++)S=S>>>8^z[255&(S^g[M])];return-1^S}},{}],46:[function(P,De,te){"use strict";var V,S=P("../utils/common"),g=P("./trees"),I=P("./adler32"),v=P("./crc32"),z=P("./messages"),E=0,M=4,N=0,T=-2,L=-1,ee=4,R=2,le=8,X=9,q=286,W=30,K=19,se=2*q+1,fe=15,Oe=3,Se=258,Ue=Se+Oe+1,J=42,ue=113,D=1,Ve=2,Me=3,we=4;function Te(G,ft){return G.msg=z[ft],ft}function ve(G){return(G<<1)-(4<G?9:0)}function Fe(G){for(var ft=G.length;0<=--ft;)G[ft]=0}function de(G){var ft=G.state,F=ft.pending;F>G.avail_out&&(F=G.avail_out),F!==0&&(S.arraySet(G.output,ft.pending_buf,ft.pending_out,F,G.next_out),G.next_out+=F,ft.pending_out+=F,G.total_out+=F,G.avail_out-=F,ft.pending-=F,ft.pending===0&&(ft.pending_out=0))}function Ee(G,ft){g._tr_flush_block(G,0<=G.block_start?G.block_start:-1,G.strstart-G.block_start,ft),G.block_start=G.strstart,de(G.strm)}function tt(G,ft){G.pending_buf[G.pending++]=ft}function it(G,ft){G.pending_buf[G.pending++]=ft>>>8&255,G.pending_buf[G.pending++]=255&ft}function Je(G,ft){var F,m,d=G.max_chain_length,C=G.strstart,re=G.prev_length,Be=G.nice_match,H=G.strstart>G.w_size-Ue?G.strstart-(G.w_size-Ue):0,ie=G.window,Qe=G.w_mask,xe=G.prev,ye=G.strstart+Se,je=ie[C+re-1],xt=ie[C+re];G.prev_length>=G.good_match&&(d>>=2),Be>G.lookahead&&(Be=G.lookahead);do if(ie[(F=ft)+re]===xt&&ie[F+re-1]===je&&ie[F]===ie[C]&&ie[++F]===ie[C+1]){C+=2,F++;do;while(ie[++C]===ie[++F]&&ie[++C]===ie[++F]&&ie[++C]===ie[++F]&&ie[++C]===ie[++F]&&ie[++C]===ie[++F]&&ie[++C]===ie[++F]&&ie[++C]===ie[++F]&&ie[++C]===ie[++F]&&C<ye);if(m=Se-(ye-C),C=ye-Se,re<m){if(G.match_start=ft,Be<=(re=m))break;je=ie[C+re-1],xt=ie[C+re]}}while((ft=xe[ft&Qe])>H&&--d!=0);return re<=G.lookahead?re:G.lookahead}function et(G){var ft,F,m,d,C,re,Be,H,ie,Qe,xe=G.w_size;do{if(d=G.window_size-G.lookahead-G.strstart,G.strstart>=xe+(xe-Ue)){for(S.arraySet(G.window,G.window,xe,xe,0),G.match_start-=xe,G.strstart-=xe,G.block_start-=xe,ft=F=G.hash_size;m=G.head[--ft],G.head[ft]=xe<=m?m-xe:0,--F;);for(ft=F=xe;m=G.prev[--ft],G.prev[ft]=xe<=m?m-xe:0,--F;);d+=xe}if(G.strm.avail_in===0)break;if(re=G.strm,Be=G.window,H=G.strstart+G.lookahead,ie=d,Qe=void 0,Qe=re.avail_in,ie<Qe&&(Qe=ie),F=Qe===0?0:(re.avail_in-=Qe,S.arraySet(Be,re.input,re.next_in,Qe,H),re.state.wrap===1?re.adler=I(re.adler,Be,Qe,H):re.state.wrap===2&&(re.adler=v(re.adler,Be,Qe,H)),re.next_in+=Qe,re.total_in+=Qe,Qe),G.lookahead+=F,G.lookahead+G.insert>=Oe)for(C=G.strstart-G.insert,G.ins_h=G.window[C],G.ins_h=(G.ins_h<<G.hash_shift^G.window[C+1])&G.hash_mask;G.insert&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[C+Oe-1])&G.hash_mask,G.prev[C&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=C,C++,G.insert--,!(G.lookahead+G.insert<Oe)););}while(G.lookahead<Ue&&G.strm.avail_in!==0)}function Bt(G,ft){for(var F,m;;){if(G.lookahead<Ue){if(et(G),G.lookahead<Ue&&ft===E)return D;if(G.lookahead===0)break}if(F=0,G.lookahead>=Oe&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Oe-1])&G.hash_mask,F=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),F!==0&&G.strstart-F<=G.w_size-Ue&&(G.match_length=Je(G,F)),G.match_length>=Oe)if(m=g._tr_tally(G,G.strstart-G.match_start,G.match_length-Oe),G.lookahead-=G.match_length,G.match_length<=G.max_lazy_match&&G.lookahead>=Oe){for(G.match_length--;G.strstart++,G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Oe-1])&G.hash_mask,F=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart,--G.match_length!=0;);G.strstart++}else G.strstart+=G.match_length,G.match_length=0,G.ins_h=G.window[G.strstart],G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+1])&G.hash_mask;else m=g._tr_tally(G,0,G.window[G.strstart]),G.lookahead--,G.strstart++;if(m&&(Ee(G,!1),G.strm.avail_out===0))return D}return G.insert=G.strstart<Oe-1?G.strstart:Oe-1,ft===M?(Ee(G,!0),G.strm.avail_out===0?Me:we):G.last_lit&&(Ee(G,!1),G.strm.avail_out===0)?D:Ve}function Lt(G,ft){for(var F,m,d;;){if(G.lookahead<Ue){if(et(G),G.lookahead<Ue&&ft===E)return D;if(G.lookahead===0)break}if(F=0,G.lookahead>=Oe&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Oe-1])&G.hash_mask,F=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),G.prev_length=G.match_length,G.prev_match=G.match_start,G.match_length=Oe-1,F!==0&&G.prev_length<G.max_lazy_match&&G.strstart-F<=G.w_size-Ue&&(G.match_length=Je(G,F),G.match_length<=5&&(G.strategy===1||G.match_length===Oe&&4096<G.strstart-G.match_start)&&(G.match_length=Oe-1)),G.prev_length>=Oe&&G.match_length<=G.prev_length){for(d=G.strstart+G.lookahead-Oe,m=g._tr_tally(G,G.strstart-1-G.prev_match,G.prev_length-Oe),G.lookahead-=G.prev_length-1,G.prev_length-=2;++G.strstart<=d&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Oe-1])&G.hash_mask,F=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),--G.prev_length!=0;);if(G.match_available=0,G.match_length=Oe-1,G.strstart++,m&&(Ee(G,!1),G.strm.avail_out===0))return D}else if(G.match_available){if((m=g._tr_tally(G,0,G.window[G.strstart-1]))&&Ee(G,!1),G.strstart++,G.lookahead--,G.strm.avail_out===0)return D}else G.match_available=1,G.strstart++,G.lookahead--}return G.match_available&&(m=g._tr_tally(G,0,G.window[G.strstart-1]),G.match_available=0),G.insert=G.strstart<Oe-1?G.strstart:Oe-1,ft===M?(Ee(G,!0),G.strm.avail_out===0?Me:we):G.last_lit&&(Ee(G,!1),G.strm.avail_out===0)?D:Ve}function Nt(G,ft,F,m,d){this.good_length=G,this.max_lazy=ft,this.nice_length=F,this.max_chain=m,this.func=d}function ur(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=le,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new S.Buf16(2*se),this.dyn_dtree=new S.Buf16(2*(2*W+1)),this.bl_tree=new S.Buf16(2*(2*K+1)),Fe(this.dyn_ltree),Fe(this.dyn_dtree),Fe(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S.Buf16(fe+1),this.heap=new S.Buf16(2*q+1),Fe(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S.Buf16(2*q+1),Fe(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function ar(G){var ft;return G&&G.state?(G.total_in=G.total_out=0,G.data_type=R,(ft=G.state).pending=0,ft.pending_out=0,ft.wrap<0&&(ft.wrap=-ft.wrap),ft.status=ft.wrap?J:ue,G.adler=ft.wrap===2?0:1,ft.last_flush=E,g._tr_init(ft),N):Te(G,T)}function Cr(G){var ft=ar(G);return ft===N&&function(F){F.window_size=2*F.w_size,Fe(F.head),F.max_lazy_match=V[F.level].max_lazy,F.good_match=V[F.level].good_length,F.nice_match=V[F.level].nice_length,F.max_chain_length=V[F.level].max_chain,F.strstart=0,F.block_start=0,F.lookahead=0,F.insert=0,F.match_length=F.prev_length=Oe-1,F.match_available=0,F.ins_h=0}(G.state),ft}function sr(G,ft,F,m,d,C){if(!G)return T;var re=1;if(ft===L&&(ft=6),m<0?(re=0,m=-m):15<m&&(re=2,m-=16),d<1||X<d||F!==le||m<8||15<m||ft<0||9<ft||C<0||ee<C)return Te(G,T);m===8&&(m=9);var Be=new ur;return(G.state=Be).strm=G,Be.wrap=re,Be.gzhead=null,Be.w_bits=m,Be.w_size=1<<Be.w_bits,Be.w_mask=Be.w_size-1,Be.hash_bits=d+7,Be.hash_size=1<<Be.hash_bits,Be.hash_mask=Be.hash_size-1,Be.hash_shift=~~((Be.hash_bits+Oe-1)/Oe),Be.window=new S.Buf8(2*Be.w_size),Be.head=new S.Buf16(Be.hash_size),Be.prev=new S.Buf16(Be.w_size),Be.lit_bufsize=1<<d+6,Be.pending_buf_size=4*Be.lit_bufsize,Be.pending_buf=new S.Buf8(Be.pending_buf_size),Be.d_buf=1*Be.lit_bufsize,Be.l_buf=3*Be.lit_bufsize,Be.level=ft,Be.strategy=C,Be.method=F,Cr(G)}V=[new Nt(0,0,0,0,function(G,ft){var F=65535;for(F>G.pending_buf_size-5&&(F=G.pending_buf_size-5);;){if(G.lookahead<=1){if(et(G),G.lookahead===0&&ft===E)return D;if(G.lookahead===0)break}G.strstart+=G.lookahead,G.lookahead=0;var m=G.block_start+F;if((G.strstart===0||G.strstart>=m)&&(G.lookahead=G.strstart-m,G.strstart=m,Ee(G,!1),G.strm.avail_out===0)||G.strstart-G.block_start>=G.w_size-Ue&&(Ee(G,!1),G.strm.avail_out===0))return D}return G.insert=0,ft===M?(Ee(G,!0),G.strm.avail_out===0?Me:we):(G.strstart>G.block_start&&(Ee(G,!1),G.strm.avail_out),D)}),new Nt(4,4,8,4,Bt),new Nt(4,5,16,8,Bt),new Nt(4,6,32,32,Bt),new Nt(4,4,16,16,Lt),new Nt(8,16,32,32,Lt),new Nt(8,16,128,128,Lt),new Nt(8,32,128,256,Lt),new Nt(32,128,258,1024,Lt),new Nt(32,258,258,4096,Lt)],te.deflateInit=function(G,ft){return sr(G,ft,le,15,8,0)},te.deflateInit2=sr,te.deflateReset=Cr,te.deflateResetKeep=ar,te.deflateSetHeader=function(G,ft){return G&&G.state?G.state.wrap!==2?T:(G.state.gzhead=ft,N):T},te.deflate=function(G,ft){var F,m,d,C;if(!G||!G.state||5<ft||ft<0)return G?Te(G,T):T;if(m=G.state,!G.output||!G.input&&G.avail_in!==0||m.status===666&&ft!==M)return Te(G,G.avail_out===0?-5:T);if(m.strm=G,F=m.last_flush,m.last_flush=ft,m.status===J)if(m.wrap===2)G.adler=0,tt(m,31),tt(m,139),tt(m,8),m.gzhead?(tt(m,(m.gzhead.text?1:0)+(m.gzhead.hcrc?2:0)+(m.gzhead.extra?4:0)+(m.gzhead.name?8:0)+(m.gzhead.comment?16:0)),tt(m,255&m.gzhead.time),tt(m,m.gzhead.time>>8&255),tt(m,m.gzhead.time>>16&255),tt(m,m.gzhead.time>>24&255),tt(m,m.level===9?2:2<=m.strategy||m.level<2?4:0),tt(m,255&m.gzhead.os),m.gzhead.extra&&m.gzhead.extra.length&&(tt(m,255&m.gzhead.extra.length),tt(m,m.gzhead.extra.length>>8&255)),m.gzhead.hcrc&&(G.adler=v(G.adler,m.pending_buf,m.pending,0)),m.gzindex=0,m.status=69):(tt(m,0),tt(m,0),tt(m,0),tt(m,0),tt(m,0),tt(m,m.level===9?2:2<=m.strategy||m.level<2?4:0),tt(m,3),m.status=ue);else{var re=le+(m.w_bits-8<<4)<<8;re|=(2<=m.strategy||m.level<2?0:m.level<6?1:m.level===6?2:3)<<6,m.strstart!==0&&(re|=32),re+=31-re%31,m.status=ue,it(m,re),m.strstart!==0&&(it(m,G.adler>>>16),it(m,65535&G.adler)),G.adler=1}if(m.status===69)if(m.gzhead.extra){for(d=m.pending;m.gzindex<(65535&m.gzhead.extra.length)&&(m.pending!==m.pending_buf_size||(m.gzhead.hcrc&&m.pending>d&&(G.adler=v(G.adler,m.pending_buf,m.pending-d,d)),de(G),d=m.pending,m.pending!==m.pending_buf_size));)tt(m,255&m.gzhead.extra[m.gzindex]),m.gzindex++;m.gzhead.hcrc&&m.pending>d&&(G.adler=v(G.adler,m.pending_buf,m.pending-d,d)),m.gzindex===m.gzhead.extra.length&&(m.gzindex=0,m.status=73)}else m.status=73;if(m.status===73)if(m.gzhead.name){d=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>d&&(G.adler=v(G.adler,m.pending_buf,m.pending-d,d)),de(G),d=m.pending,m.pending===m.pending_buf_size)){C=1;break}C=m.gzindex<m.gzhead.name.length?255&m.gzhead.name.charCodeAt(m.gzindex++):0,tt(m,C)}while(C!==0);m.gzhead.hcrc&&m.pending>d&&(G.adler=v(G.adler,m.pending_buf,m.pending-d,d)),C===0&&(m.gzindex=0,m.status=91)}else m.status=91;if(m.status===91)if(m.gzhead.comment){d=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>d&&(G.adler=v(G.adler,m.pending_buf,m.pending-d,d)),de(G),d=m.pending,m.pending===m.pending_buf_size)){C=1;break}C=m.gzindex<m.gzhead.comment.length?255&m.gzhead.comment.charCodeAt(m.gzindex++):0,tt(m,C)}while(C!==0);m.gzhead.hcrc&&m.pending>d&&(G.adler=v(G.adler,m.pending_buf,m.pending-d,d)),C===0&&(m.status=103)}else m.status=103;if(m.status===103&&(m.gzhead.hcrc?(m.pending+2>m.pending_buf_size&&de(G),m.pending+2<=m.pending_buf_size&&(tt(m,255&G.adler),tt(m,G.adler>>8&255),G.adler=0,m.status=ue)):m.status=ue),m.pending!==0){if(de(G),G.avail_out===0)return m.last_flush=-1,N}else if(G.avail_in===0&&ve(ft)<=ve(F)&&ft!==M)return Te(G,-5);if(m.status===666&&G.avail_in!==0)return Te(G,-5);if(G.avail_in!==0||m.lookahead!==0||ft!==E&&m.status!==666){var Be=m.strategy===2?function(H,ie){for(var Qe;;){if(H.lookahead===0&&(et(H),H.lookahead===0)){if(ie===E)return D;break}if(H.match_length=0,Qe=g._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,Qe&&(Ee(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ie===M?(Ee(H,!0),H.strm.avail_out===0?Me:we):H.last_lit&&(Ee(H,!1),H.strm.avail_out===0)?D:Ve}(m,ft):m.strategy===3?function(H,ie){for(var Qe,xe,ye,je,xt=H.window;;){if(H.lookahead<=Se){if(et(H),H.lookahead<=Se&&ie===E)return D;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=Oe&&0<H.strstart&&(xe=xt[ye=H.strstart-1])===xt[++ye]&&xe===xt[++ye]&&xe===xt[++ye]){je=H.strstart+Se;do;while(xe===xt[++ye]&&xe===xt[++ye]&&xe===xt[++ye]&&xe===xt[++ye]&&xe===xt[++ye]&&xe===xt[++ye]&&xe===xt[++ye]&&xe===xt[++ye]&&ye<je);H.match_length=Se-(je-ye),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=Oe?(Qe=g._tr_tally(H,1,H.match_length-Oe),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(Qe=g._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),Qe&&(Ee(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ie===M?(Ee(H,!0),H.strm.avail_out===0?Me:we):H.last_lit&&(Ee(H,!1),H.strm.avail_out===0)?D:Ve}(m,ft):V[m.level].func(m,ft);if(Be!==Me&&Be!==we||(m.status=666),Be===D||Be===Me)return G.avail_out===0&&(m.last_flush=-1),N;if(Be===Ve&&(ft===1?g._tr_align(m):ft!==5&&(g._tr_stored_block(m,0,0,!1),ft===3&&(Fe(m.head),m.lookahead===0&&(m.strstart=0,m.block_start=0,m.insert=0))),de(G),G.avail_out===0))return m.last_flush=-1,N}return ft!==M?N:m.wrap<=0?1:(m.wrap===2?(tt(m,255&G.adler),tt(m,G.adler>>8&255),tt(m,G.adler>>16&255),tt(m,G.adler>>24&255),tt(m,255&G.total_in),tt(m,G.total_in>>8&255),tt(m,G.total_in>>16&255),tt(m,G.total_in>>24&255)):(it(m,G.adler>>>16),it(m,65535&G.adler)),de(G),0<m.wrap&&(m.wrap=-m.wrap),m.pending!==0?N:1)},te.deflateEnd=function(G){var ft;return G&&G.state?(ft=G.state.status)!==J&&ft!==69&&ft!==73&&ft!==91&&ft!==103&&ft!==ue&&ft!==666?Te(G,T):(G.state=null,ft===ue?Te(G,-3):N):T},te.deflateSetDictionary=function(G,ft){var F,m,d,C,re,Be,H,ie,Qe=ft.length;if(!G||!G.state||(C=(F=G.state).wrap)===2||C===1&&F.status!==J||F.lookahead)return T;for(C===1&&(G.adler=I(G.adler,ft,Qe,0)),F.wrap=0,Qe>=F.w_size&&(C===0&&(Fe(F.head),F.strstart=0,F.block_start=0,F.insert=0),ie=new S.Buf8(F.w_size),S.arraySet(ie,ft,Qe-F.w_size,F.w_size,0),ft=ie,Qe=F.w_size),re=G.avail_in,Be=G.next_in,H=G.input,G.avail_in=Qe,G.next_in=0,G.input=ft,et(F);F.lookahead>=Oe;){for(m=F.strstart,d=F.lookahead-(Oe-1);F.ins_h=(F.ins_h<<F.hash_shift^F.window[m+Oe-1])&F.hash_mask,F.prev[m&F.w_mask]=F.head[F.ins_h],F.head[F.ins_h]=m,m++,--d;);F.strstart=m,F.lookahead=Oe-1,et(F)}return F.strstart+=F.lookahead,F.block_start=F.strstart,F.insert=F.lookahead,F.lookahead=0,F.match_length=F.prev_length=Oe-1,F.match_available=0,G.next_in=Be,G.input=H,G.avail_in=re,F.wrap=C,N},te.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(P,De,te){"use strict";De.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(P,De,te){"use strict";De.exports=function(V,S){var g,I,v,z,E,M,N,T,L,ee,R,le,X,q,W,K,se,fe,Oe,Se,Ue,J,ue,D,Ve;g=V.state,I=V.next_in,D=V.input,v=I+(V.avail_in-5),z=V.next_out,Ve=V.output,E=z-(S-V.avail_out),M=z+(V.avail_out-257),N=g.dmax,T=g.wsize,L=g.whave,ee=g.wnext,R=g.window,le=g.hold,X=g.bits,q=g.lencode,W=g.distcode,K=(1<<g.lenbits)-1,se=(1<<g.distbits)-1;e:do{X<15&&(le+=D[I++]<<X,X+=8,le+=D[I++]<<X,X+=8),fe=q[le&K];t:for(;;){if(le>>>=Oe=fe>>>24,X-=Oe,(Oe=fe>>>16&255)===0)Ve[z++]=65535&fe;else{if(!(16&Oe)){if(!(64&Oe)){fe=q[(65535&fe)+(le&(1<<Oe)-1)];continue t}if(32&Oe){g.mode=12;break e}V.msg="invalid literal/length code",g.mode=30;break e}Se=65535&fe,(Oe&=15)&&(X<Oe&&(le+=D[I++]<<X,X+=8),Se+=le&(1<<Oe)-1,le>>>=Oe,X-=Oe),X<15&&(le+=D[I++]<<X,X+=8,le+=D[I++]<<X,X+=8),fe=W[le&se];r:for(;;){if(le>>>=Oe=fe>>>24,X-=Oe,!(16&(Oe=fe>>>16&255))){if(!(64&Oe)){fe=W[(65535&fe)+(le&(1<<Oe)-1)];continue r}V.msg="invalid distance code",g.mode=30;break e}if(Ue=65535&fe,X<(Oe&=15)&&(le+=D[I++]<<X,(X+=8)<Oe&&(le+=D[I++]<<X,X+=8)),N<(Ue+=le&(1<<Oe)-1)){V.msg="invalid distance too far back",g.mode=30;break e}if(le>>>=Oe,X-=Oe,(Oe=z-E)<Ue){if(L<(Oe=Ue-Oe)&&g.sane){V.msg="invalid distance too far back",g.mode=30;break e}if(ue=R,(J=0)===ee){if(J+=T-Oe,Oe<Se){for(Se-=Oe;Ve[z++]=R[J++],--Oe;);J=z-Ue,ue=Ve}}else if(ee<Oe){if(J+=T+ee-Oe,(Oe-=ee)<Se){for(Se-=Oe;Ve[z++]=R[J++],--Oe;);if(J=0,ee<Se){for(Se-=Oe=ee;Ve[z++]=R[J++],--Oe;);J=z-Ue,ue=Ve}}}else if(J+=ee-Oe,Oe<Se){for(Se-=Oe;Ve[z++]=R[J++],--Oe;);J=z-Ue,ue=Ve}for(;2<Se;)Ve[z++]=ue[J++],Ve[z++]=ue[J++],Ve[z++]=ue[J++],Se-=3;Se&&(Ve[z++]=ue[J++],1<Se&&(Ve[z++]=ue[J++]))}else{for(J=z-Ue;Ve[z++]=Ve[J++],Ve[z++]=Ve[J++],Ve[z++]=Ve[J++],2<(Se-=3););Se&&(Ve[z++]=Ve[J++],1<Se&&(Ve[z++]=Ve[J++]))}break}}break}}while(I<v&&z<M);I-=Se=X>>3,le&=(1<<(X-=Se<<3))-1,V.next_in=I,V.next_out=z,V.avail_in=I<v?v-I+5:5-(I-v),V.avail_out=z<M?M-z+257:257-(z-M),g.hold=le,g.bits=X}},{}],49:[function(P,De,te){"use strict";var V=P("../utils/common"),S=P("./adler32"),g=P("./crc32"),I=P("./inffast"),v=P("./inftrees"),z=1,E=2,M=0,N=-2,T=1,L=852,ee=592;function R(J){return(J>>>24&255)+(J>>>8&65280)+((65280&J)<<8)+((255&J)<<24)}function le(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new V.Buf16(320),this.work=new V.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function X(J){var ue;return J&&J.state?(ue=J.state,J.total_in=J.total_out=ue.total=0,J.msg="",ue.wrap&&(J.adler=1&ue.wrap),ue.mode=T,ue.last=0,ue.havedict=0,ue.dmax=32768,ue.head=null,ue.hold=0,ue.bits=0,ue.lencode=ue.lendyn=new V.Buf32(L),ue.distcode=ue.distdyn=new V.Buf32(ee),ue.sane=1,ue.back=-1,M):N}function q(J){var ue;return J&&J.state?((ue=J.state).wsize=0,ue.whave=0,ue.wnext=0,X(J)):N}function W(J,ue){var D,Ve;return J&&J.state?(Ve=J.state,ue<0?(D=0,ue=-ue):(D=1+(ue>>4),ue<48&&(ue&=15)),ue&&(ue<8||15<ue)?N:(Ve.window!==null&&Ve.wbits!==ue&&(Ve.window=null),Ve.wrap=D,Ve.wbits=ue,q(J))):N}function K(J,ue){var D,Ve;return J?(Ve=new le,(J.state=Ve).window=null,(D=W(J,ue))!==M&&(J.state=null),D):N}var se,fe,Oe=!0;function Se(J){if(Oe){var ue;for(se=new V.Buf32(512),fe=new V.Buf32(32),ue=0;ue<144;)J.lens[ue++]=8;for(;ue<256;)J.lens[ue++]=9;for(;ue<280;)J.lens[ue++]=7;for(;ue<288;)J.lens[ue++]=8;for(v(z,J.lens,0,288,se,0,J.work,{bits:9}),ue=0;ue<32;)J.lens[ue++]=5;v(E,J.lens,0,32,fe,0,J.work,{bits:5}),Oe=!1}J.lencode=se,J.lenbits=9,J.distcode=fe,J.distbits=5}function Ue(J,ue,D,Ve){var Me,we=J.state;return we.window===null&&(we.wsize=1<<we.wbits,we.wnext=0,we.whave=0,we.window=new V.Buf8(we.wsize)),Ve>=we.wsize?(V.arraySet(we.window,ue,D-we.wsize,we.wsize,0),we.wnext=0,we.whave=we.wsize):(Ve<(Me=we.wsize-we.wnext)&&(Me=Ve),V.arraySet(we.window,ue,D-Ve,Me,we.wnext),(Ve-=Me)?(V.arraySet(we.window,ue,D-Ve,Ve,0),we.wnext=Ve,we.whave=we.wsize):(we.wnext+=Me,we.wnext===we.wsize&&(we.wnext=0),we.whave<we.wsize&&(we.whave+=Me))),0}te.inflateReset=q,te.inflateReset2=W,te.inflateResetKeep=X,te.inflateInit=function(J){return K(J,15)},te.inflateInit2=K,te.inflate=function(J,ue){var D,Ve,Me,we,Te,ve,Fe,de,Ee,tt,it,Je,et,Bt,Lt,Nt,ur,ar,Cr,sr,G,ft,F,m,d=0,C=new V.Buf8(4),re=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!J||!J.state||!J.output||!J.input&&J.avail_in!==0)return N;(D=J.state).mode===12&&(D.mode=13),Te=J.next_out,Me=J.output,Fe=J.avail_out,we=J.next_in,Ve=J.input,ve=J.avail_in,de=D.hold,Ee=D.bits,tt=ve,it=Fe,ft=M;e:for(;;)switch(D.mode){case T:if(D.wrap===0){D.mode=13;break}for(;Ee<16;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}if(2&D.wrap&&de===35615){C[D.check=0]=255&de,C[1]=de>>>8&255,D.check=g(D.check,C,2,0),Ee=de=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&de)<<8)+(de>>8))%31){J.msg="incorrect header check",D.mode=30;break}if((15&de)!=8){J.msg="unknown compression method",D.mode=30;break}if(Ee-=4,G=8+(15&(de>>>=4)),D.wbits===0)D.wbits=G;else if(G>D.wbits){J.msg="invalid window size",D.mode=30;break}D.dmax=1<<G,J.adler=D.check=1,D.mode=512&de?10:12,Ee=de=0;break;case 2:for(;Ee<16;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}if(D.flags=de,(255&D.flags)!=8){J.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){J.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=de>>8&1),512&D.flags&&(C[0]=255&de,C[1]=de>>>8&255,D.check=g(D.check,C,2,0)),Ee=de=0,D.mode=3;case 3:for(;Ee<32;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}D.head&&(D.head.time=de),512&D.flags&&(C[0]=255&de,C[1]=de>>>8&255,C[2]=de>>>16&255,C[3]=de>>>24&255,D.check=g(D.check,C,4,0)),Ee=de=0,D.mode=4;case 4:for(;Ee<16;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}D.head&&(D.head.xflags=255&de,D.head.os=de>>8),512&D.flags&&(C[0]=255&de,C[1]=de>>>8&255,D.check=g(D.check,C,2,0)),Ee=de=0,D.mode=5;case 5:if(1024&D.flags){for(;Ee<16;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}D.length=de,D.head&&(D.head.extra_len=de),512&D.flags&&(C[0]=255&de,C[1]=de>>>8&255,D.check=g(D.check,C,2,0)),Ee=de=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(ve<(Je=D.length)&&(Je=ve),Je&&(D.head&&(G=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),V.arraySet(D.head.extra,Ve,we,Je,G)),512&D.flags&&(D.check=g(D.check,Ve,Je,we)),ve-=Je,we+=Je,D.length-=Je),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(ve===0)break e;for(Je=0;G=Ve[we+Je++],D.head&&G&&D.length<65536&&(D.head.name+=String.fromCharCode(G)),G&&Je<ve;);if(512&D.flags&&(D.check=g(D.check,Ve,Je,we)),ve-=Je,we+=Je,G)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(ve===0)break e;for(Je=0;G=Ve[we+Je++],D.head&&G&&D.length<65536&&(D.head.comment+=String.fromCharCode(G)),G&&Je<ve;);if(512&D.flags&&(D.check=g(D.check,Ve,Je,we)),ve-=Je,we+=Je,G)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;Ee<16;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}if(de!==(65535&D.check)){J.msg="header crc mismatch",D.mode=30;break}Ee=de=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),J.adler=D.check=0,D.mode=12;break;case 10:for(;Ee<32;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}J.adler=D.check=R(de),Ee=de=0,D.mode=11;case 11:if(D.havedict===0)return J.next_out=Te,J.avail_out=Fe,J.next_in=we,J.avail_in=ve,D.hold=de,D.bits=Ee,2;J.adler=D.check=1,D.mode=12;case 12:if(ue===5||ue===6)break e;case 13:if(D.last){de>>>=7&Ee,Ee-=7&Ee,D.mode=27;break}for(;Ee<3;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}switch(D.last=1&de,Ee-=1,3&(de>>>=1)){case 0:D.mode=14;break;case 1:if(Se(D),D.mode=20,ue!==6)break;de>>>=2,Ee-=2;break e;case 2:D.mode=17;break;case 3:J.msg="invalid block type",D.mode=30}de>>>=2,Ee-=2;break;case 14:for(de>>>=7&Ee,Ee-=7&Ee;Ee<32;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}if((65535&de)!=(de>>>16^65535)){J.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&de,Ee=de=0,D.mode=15,ue===6)break e;case 15:D.mode=16;case 16:if(Je=D.length){if(ve<Je&&(Je=ve),Fe<Je&&(Je=Fe),Je===0)break e;V.arraySet(Me,Ve,we,Je,Te),ve-=Je,we+=Je,Fe-=Je,Te+=Je,D.length-=Je;break}D.mode=12;break;case 17:for(;Ee<14;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}if(D.nlen=257+(31&de),de>>>=5,Ee-=5,D.ndist=1+(31&de),de>>>=5,Ee-=5,D.ncode=4+(15&de),de>>>=4,Ee-=4,286<D.nlen||30<D.ndist){J.msg="too many length or distance symbols",D.mode=30;break}D.have=0,D.mode=18;case 18:for(;D.have<D.ncode;){for(;Ee<3;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}D.lens[re[D.have++]]=7&de,de>>>=3,Ee-=3}for(;D.have<19;)D.lens[re[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,F={bits:D.lenbits},ft=v(0,D.lens,0,19,D.lencode,0,D.work,F),D.lenbits=F.bits,ft){J.msg="invalid code lengths set",D.mode=30;break}D.have=0,D.mode=19;case 19:for(;D.have<D.nlen+D.ndist;){for(;Nt=(d=D.lencode[de&(1<<D.lenbits)-1])>>>16&255,ur=65535&d,!((Lt=d>>>24)<=Ee);){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}if(ur<16)de>>>=Lt,Ee-=Lt,D.lens[D.have++]=ur;else{if(ur===16){for(m=Lt+2;Ee<m;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}if(de>>>=Lt,Ee-=Lt,D.have===0){J.msg="invalid bit length repeat",D.mode=30;break}G=D.lens[D.have-1],Je=3+(3&de),de>>>=2,Ee-=2}else if(ur===17){for(m=Lt+3;Ee<m;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}Ee-=Lt,G=0,Je=3+(7&(de>>>=Lt)),de>>>=3,Ee-=3}else{for(m=Lt+7;Ee<m;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}Ee-=Lt,G=0,Je=11+(127&(de>>>=Lt)),de>>>=7,Ee-=7}if(D.have+Je>D.nlen+D.ndist){J.msg="invalid bit length repeat",D.mode=30;break}for(;Je--;)D.lens[D.have++]=G}}if(D.mode===30)break;if(D.lens[256]===0){J.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,F={bits:D.lenbits},ft=v(z,D.lens,0,D.nlen,D.lencode,0,D.work,F),D.lenbits=F.bits,ft){J.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,F={bits:D.distbits},ft=v(E,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,F),D.distbits=F.bits,ft){J.msg="invalid distances set",D.mode=30;break}if(D.mode=20,ue===6)break e;case 20:D.mode=21;case 21:if(6<=ve&&258<=Fe){J.next_out=Te,J.avail_out=Fe,J.next_in=we,J.avail_in=ve,D.hold=de,D.bits=Ee,I(J,it),Te=J.next_out,Me=J.output,Fe=J.avail_out,we=J.next_in,Ve=J.input,ve=J.avail_in,de=D.hold,Ee=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;Nt=(d=D.lencode[de&(1<<D.lenbits)-1])>>>16&255,ur=65535&d,!((Lt=d>>>24)<=Ee);){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}if(Nt&&!(240&Nt)){for(ar=Lt,Cr=Nt,sr=ur;Nt=(d=D.lencode[sr+((de&(1<<ar+Cr)-1)>>ar)])>>>16&255,ur=65535&d,!(ar+(Lt=d>>>24)<=Ee);){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}de>>>=ar,Ee-=ar,D.back+=ar}if(de>>>=Lt,Ee-=Lt,D.back+=Lt,D.length=ur,Nt===0){D.mode=26;break}if(32&Nt){D.back=-1,D.mode=12;break}if(64&Nt){J.msg="invalid literal/length code",D.mode=30;break}D.extra=15&Nt,D.mode=22;case 22:if(D.extra){for(m=D.extra;Ee<m;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}D.length+=de&(1<<D.extra)-1,de>>>=D.extra,Ee-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;Nt=(d=D.distcode[de&(1<<D.distbits)-1])>>>16&255,ur=65535&d,!((Lt=d>>>24)<=Ee);){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}if(!(240&Nt)){for(ar=Lt,Cr=Nt,sr=ur;Nt=(d=D.distcode[sr+((de&(1<<ar+Cr)-1)>>ar)])>>>16&255,ur=65535&d,!(ar+(Lt=d>>>24)<=Ee);){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}de>>>=ar,Ee-=ar,D.back+=ar}if(de>>>=Lt,Ee-=Lt,D.back+=Lt,64&Nt){J.msg="invalid distance code",D.mode=30;break}D.offset=ur,D.extra=15&Nt,D.mode=24;case 24:if(D.extra){for(m=D.extra;Ee<m;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}D.offset+=de&(1<<D.extra)-1,de>>>=D.extra,Ee-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){J.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(Fe===0)break e;if(Je=it-Fe,D.offset>Je){if((Je=D.offset-Je)>D.whave&&D.sane){J.msg="invalid distance too far back",D.mode=30;break}et=Je>D.wnext?(Je-=D.wnext,D.wsize-Je):D.wnext-Je,Je>D.length&&(Je=D.length),Bt=D.window}else Bt=Me,et=Te-D.offset,Je=D.length;for(Fe<Je&&(Je=Fe),Fe-=Je,D.length-=Je;Me[Te++]=Bt[et++],--Je;);D.length===0&&(D.mode=21);break;case 26:if(Fe===0)break e;Me[Te++]=D.length,Fe--,D.mode=21;break;case 27:if(D.wrap){for(;Ee<32;){if(ve===0)break e;ve--,de|=Ve[we++]<<Ee,Ee+=8}if(it-=Fe,J.total_out+=it,D.total+=it,it&&(J.adler=D.check=D.flags?g(D.check,Me,it,Te-it):S(D.check,Me,it,Te-it)),it=Fe,(D.flags?de:R(de))!==D.check){J.msg="incorrect data check",D.mode=30;break}Ee=de=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;Ee<32;){if(ve===0)break e;ve--,de+=Ve[we++]<<Ee,Ee+=8}if(de!==(4294967295&D.total)){J.msg="incorrect length check",D.mode=30;break}Ee=de=0}D.mode=29;case 29:ft=1;break e;case 30:ft=-3;break e;case 31:return-4;case 32:default:return N}return J.next_out=Te,J.avail_out=Fe,J.next_in=we,J.avail_in=ve,D.hold=de,D.bits=Ee,(D.wsize||it!==J.avail_out&&D.mode<30&&(D.mode<27||ue!==4))&&Ue(J,J.output,J.next_out,it-J.avail_out)?(D.mode=31,-4):(tt-=J.avail_in,it-=J.avail_out,J.total_in+=tt,J.total_out+=it,D.total+=it,D.wrap&&it&&(J.adler=D.check=D.flags?g(D.check,Me,it,J.next_out-it):S(D.check,Me,it,J.next_out-it)),J.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(tt==0&&it===0||ue===4)&&ft===M&&(ft=-5),ft)},te.inflateEnd=function(J){if(!J||!J.state)return N;var ue=J.state;return ue.window&&(ue.window=null),J.state=null,M},te.inflateGetHeader=function(J,ue){var D;return J&&J.state&&2&(D=J.state).wrap?((D.head=ue).done=!1,M):N},te.inflateSetDictionary=function(J,ue){var D,Ve=ue.length;return J&&J.state?(D=J.state).wrap!==0&&D.mode!==11?N:D.mode===11&&S(1,ue,Ve,0)!==D.check?-3:Ue(J,ue,Ve,Ve)?(D.mode=31,-4):(D.havedict=1,M):N},te.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(P,De,te){"use strict";var V=P("../utils/common"),S=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],g=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],I=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],v=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];De.exports=function(z,E,M,N,T,L,ee,R){var le,X,q,W,K,se,fe,Oe,Se,Ue=R.bits,J=0,ue=0,D=0,Ve=0,Me=0,we=0,Te=0,ve=0,Fe=0,de=0,Ee=null,tt=0,it=new V.Buf16(16),Je=new V.Buf16(16),et=null,Bt=0;for(J=0;J<=15;J++)it[J]=0;for(ue=0;ue<N;ue++)it[E[M+ue]]++;for(Me=Ue,Ve=15;1<=Ve&&it[Ve]===0;Ve--);if(Ve<Me&&(Me=Ve),Ve===0)return T[L++]=20971520,T[L++]=20971520,R.bits=1,0;for(D=1;D<Ve&&it[D]===0;D++);for(Me<D&&(Me=D),J=ve=1;J<=15;J++)if(ve<<=1,(ve-=it[J])<0)return-1;if(0<ve&&(z===0||Ve!==1))return-1;for(Je[1]=0,J=1;J<15;J++)Je[J+1]=Je[J]+it[J];for(ue=0;ue<N;ue++)E[M+ue]!==0&&(ee[Je[E[M+ue]]++]=ue);if(se=z===0?(Ee=et=ee,19):z===1?(Ee=S,tt-=257,et=g,Bt-=257,256):(Ee=I,et=v,-1),J=D,K=L,Te=ue=de=0,q=-1,W=(Fe=1<<(we=Me))-1,z===1&&852<Fe||z===2&&592<Fe)return 1;for(;;){for(fe=J-Te,Se=ee[ue]<se?(Oe=0,ee[ue]):ee[ue]>se?(Oe=et[Bt+ee[ue]],Ee[tt+ee[ue]]):(Oe=96,0),le=1<<J-Te,D=X=1<<we;T[K+(de>>Te)+(X-=le)]=fe<<24|Oe<<16|Se|0,X!==0;);for(le=1<<J-1;de&le;)le>>=1;if(le!==0?(de&=le-1,de+=le):de=0,ue++,--it[J]==0){if(J===Ve)break;J=E[M+ee[ue]]}if(Me<J&&(de&W)!==q){for(Te===0&&(Te=Me),K+=D,ve=1<<(we=J-Te);we+Te<Ve&&!((ve-=it[we+Te])<=0);)we++,ve<<=1;if(Fe+=1<<we,z===1&&852<Fe||z===2&&592<Fe)return 1;T[q=de&W]=Me<<24|we<<16|K-L|0}}return de!==0&&(T[K+de]=J-Te<<24|64<<16|0),R.bits=Me,0}},{"../utils/common":41}],51:[function(P,De,te){"use strict";De.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(P,De,te){"use strict";var V=P("../utils/common"),S=0,g=1;function I(d){for(var C=d.length;0<=--C;)d[C]=0}var v=0,z=29,E=256,M=E+1+z,N=30,T=19,L=2*M+1,ee=15,R=16,le=7,X=256,q=16,W=17,K=18,se=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],fe=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],Oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],Se=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ue=new Array(2*(M+2));I(Ue);var J=new Array(2*N);I(J);var ue=new Array(512);I(ue);var D=new Array(256);I(D);var Ve=new Array(z);I(Ve);var Me,we,Te,ve=new Array(N);function Fe(d,C,re,Be,H){this.static_tree=d,this.extra_bits=C,this.extra_base=re,this.elems=Be,this.max_length=H,this.has_stree=d&&d.length}function de(d,C){this.dyn_tree=d,this.max_code=0,this.stat_desc=C}function Ee(d){return d<256?ue[d]:ue[256+(d>>>7)]}function tt(d,C){d.pending_buf[d.pending++]=255&C,d.pending_buf[d.pending++]=C>>>8&255}function it(d,C,re){d.bi_valid>R-re?(d.bi_buf|=C<<d.bi_valid&65535,tt(d,d.bi_buf),d.bi_buf=C>>R-d.bi_valid,d.bi_valid+=re-R):(d.bi_buf|=C<<d.bi_valid&65535,d.bi_valid+=re)}function Je(d,C,re){it(d,re[2*C],re[2*C+1])}function et(d,C){for(var re=0;re|=1&d,d>>>=1,re<<=1,0<--C;);return re>>>1}function Bt(d,C,re){var Be,H,ie=new Array(ee+1),Qe=0;for(Be=1;Be<=ee;Be++)ie[Be]=Qe=Qe+re[Be-1]<<1;for(H=0;H<=C;H++){var xe=d[2*H+1];xe!==0&&(d[2*H]=et(ie[xe]++,xe))}}function Lt(d){var C;for(C=0;C<M;C++)d.dyn_ltree[2*C]=0;for(C=0;C<N;C++)d.dyn_dtree[2*C]=0;for(C=0;C<T;C++)d.bl_tree[2*C]=0;d.dyn_ltree[2*X]=1,d.opt_len=d.static_len=0,d.last_lit=d.matches=0}function Nt(d){8<d.bi_valid?tt(d,d.bi_buf):0<d.bi_valid&&(d.pending_buf[d.pending++]=d.bi_buf),d.bi_buf=0,d.bi_valid=0}function ur(d,C,re,Be){var H=2*C,ie=2*re;return d[H]<d[ie]||d[H]===d[ie]&&Be[C]<=Be[re]}function ar(d,C,re){for(var Be=d.heap[re],H=re<<1;H<=d.heap_len&&(H<d.heap_len&&ur(C,d.heap[H+1],d.heap[H],d.depth)&&H++,!ur(C,Be,d.heap[H],d.depth));)d.heap[re]=d.heap[H],re=H,H<<=1;d.heap[re]=Be}function Cr(d,C,re){var Be,H,ie,Qe,xe=0;if(d.last_lit!==0)for(;Be=d.pending_buf[d.d_buf+2*xe]<<8|d.pending_buf[d.d_buf+2*xe+1],H=d.pending_buf[d.l_buf+xe],xe++,Be===0?Je(d,H,C):(Je(d,(ie=D[H])+E+1,C),(Qe=se[ie])!==0&&it(d,H-=Ve[ie],Qe),Je(d,ie=Ee(--Be),re),(Qe=fe[ie])!==0&&it(d,Be-=ve[ie],Qe)),xe<d.last_lit;);Je(d,X,C)}function sr(d,C){var re,Be,H,ie=C.dyn_tree,Qe=C.stat_desc.static_tree,xe=C.stat_desc.has_stree,ye=C.stat_desc.elems,je=-1;for(d.heap_len=0,d.heap_max=L,re=0;re<ye;re++)ie[2*re]!==0?(d.heap[++d.heap_len]=je=re,d.depth[re]=0):ie[2*re+1]=0;for(;d.heap_len<2;)ie[2*(H=d.heap[++d.heap_len]=je<2?++je:0)]=1,d.depth[H]=0,d.opt_len--,xe&&(d.static_len-=Qe[2*H+1]);for(C.max_code=je,re=d.heap_len>>1;1<=re;re--)ar(d,ie,re);for(H=ye;re=d.heap[1],d.heap[1]=d.heap[d.heap_len--],ar(d,ie,1),Be=d.heap[1],d.heap[--d.heap_max]=re,d.heap[--d.heap_max]=Be,ie[2*H]=ie[2*re]+ie[2*Be],d.depth[H]=(d.depth[re]>=d.depth[Be]?d.depth[re]:d.depth[Be])+1,ie[2*re+1]=ie[2*Be+1]=H,d.heap[1]=H++,ar(d,ie,1),2<=d.heap_len;);d.heap[--d.heap_max]=d.heap[1],function(xt,he){var st,Ye,Ie,Le,ct,Ut,kt=he.dyn_tree,tr=he.max_code,Dr=he.stat_desc.static_tree,fr=he.stat_desc.has_stree,Fr=he.stat_desc.extra_bits,Lr=he.stat_desc.extra_base,mr=he.stat_desc.max_length,cr=0;for(Le=0;Le<=ee;Le++)xt.bl_count[Le]=0;for(kt[2*xt.heap[xt.heap_max]+1]=0,st=xt.heap_max+1;st<L;st++)mr<(Le=kt[2*kt[2*(Ye=xt.heap[st])+1]+1]+1)&&(Le=mr,cr++),kt[2*Ye+1]=Le,tr<Ye||(xt.bl_count[Le]++,ct=0,Lr<=Ye&&(ct=Fr[Ye-Lr]),Ut=kt[2*Ye],xt.opt_len+=Ut*(Le+ct),fr&&(xt.static_len+=Ut*(Dr[2*Ye+1]+ct)));if(cr!==0){do{for(Le=mr-1;xt.bl_count[Le]===0;)Le--;xt.bl_count[Le]--,xt.bl_count[Le+1]+=2,xt.bl_count[mr]--,cr-=2}while(0<cr);for(Le=mr;Le!==0;Le--)for(Ye=xt.bl_count[Le];Ye!==0;)tr<(Ie=xt.heap[--st])||(kt[2*Ie+1]!==Le&&(xt.opt_len+=(Le-kt[2*Ie+1])*kt[2*Ie],kt[2*Ie+1]=Le),Ye--)}}(d,C),Bt(ie,je,d.bl_count)}function G(d,C,re){var Be,H,ie=-1,Qe=C[1],xe=0,ye=7,je=4;for(Qe===0&&(ye=138,je=3),C[2*(re+1)+1]=65535,Be=0;Be<=re;Be++)H=Qe,Qe=C[2*(Be+1)+1],++xe<ye&&H===Qe||(xe<je?d.bl_tree[2*H]+=xe:H!==0?(H!==ie&&d.bl_tree[2*H]++,d.bl_tree[2*q]++):xe<=10?d.bl_tree[2*W]++:d.bl_tree[2*K]++,ie=H,je=(xe=0)===Qe?(ye=138,3):H===Qe?(ye=6,3):(ye=7,4))}function ft(d,C,re){var Be,H,ie=-1,Qe=C[1],xe=0,ye=7,je=4;for(Qe===0&&(ye=138,je=3),Be=0;Be<=re;Be++)if(H=Qe,Qe=C[2*(Be+1)+1],!(++xe<ye&&H===Qe)){if(xe<je)for(;Je(d,H,d.bl_tree),--xe!=0;);else H!==0?(H!==ie&&(Je(d,H,d.bl_tree),xe--),Je(d,q,d.bl_tree),it(d,xe-3,2)):xe<=10?(Je(d,W,d.bl_tree),it(d,xe-3,3)):(Je(d,K,d.bl_tree),it(d,xe-11,7));ie=H,je=(xe=0)===Qe?(ye=138,3):H===Qe?(ye=6,3):(ye=7,4)}}I(ve);var F=!1;function m(d,C,re,Be){it(d,(v<<1)+(Be?1:0),3),function(H,ie,Qe,xe){Nt(H),xe&&(tt(H,Qe),tt(H,~Qe)),V.arraySet(H.pending_buf,H.window,ie,Qe,H.pending),H.pending+=Qe}(d,C,re,!0)}te._tr_init=function(d){F||(function(){var C,re,Be,H,ie,Qe=new Array(ee+1);for(H=Be=0;H<z-1;H++)for(Ve[H]=Be,C=0;C<1<<se[H];C++)D[Be++]=H;for(D[Be-1]=H,H=ie=0;H<16;H++)for(ve[H]=ie,C=0;C<1<<fe[H];C++)ue[ie++]=H;for(ie>>=7;H<N;H++)for(ve[H]=ie<<7,C=0;C<1<<fe[H]-7;C++)ue[256+ie++]=H;for(re=0;re<=ee;re++)Qe[re]=0;for(C=0;C<=143;)Ue[2*C+1]=8,C++,Qe[8]++;for(;C<=255;)Ue[2*C+1]=9,C++,Qe[9]++;for(;C<=279;)Ue[2*C+1]=7,C++,Qe[7]++;for(;C<=287;)Ue[2*C+1]=8,C++,Qe[8]++;for(Bt(Ue,M+1,Qe),C=0;C<N;C++)J[2*C+1]=5,J[2*C]=et(C,5);Me=new Fe(Ue,se,E+1,M,ee),we=new Fe(J,fe,0,N,ee),Te=new Fe(new Array(0),Oe,0,T,le)}(),F=!0),d.l_desc=new de(d.dyn_ltree,Me),d.d_desc=new de(d.dyn_dtree,we),d.bl_desc=new de(d.bl_tree,Te),d.bi_buf=0,d.bi_valid=0,Lt(d)},te._tr_stored_block=m,te._tr_flush_block=function(d,C,re,Be){var H,ie,Qe=0;0<d.level?(d.strm.data_type===2&&(d.strm.data_type=function(xe){var ye,je=4093624447;for(ye=0;ye<=31;ye++,je>>>=1)if(1&je&&xe.dyn_ltree[2*ye]!==0)return S;if(xe.dyn_ltree[18]!==0||xe.dyn_ltree[20]!==0||xe.dyn_ltree[26]!==0)return g;for(ye=32;ye<E;ye++)if(xe.dyn_ltree[2*ye]!==0)return g;return S}(d)),sr(d,d.l_desc),sr(d,d.d_desc),Qe=function(xe){var ye;for(G(xe,xe.dyn_ltree,xe.l_desc.max_code),G(xe,xe.dyn_dtree,xe.d_desc.max_code),sr(xe,xe.bl_desc),ye=T-1;3<=ye&&xe.bl_tree[2*Se[ye]+1]===0;ye--);return xe.opt_len+=3*(ye+1)+5+5+4,ye}(d),H=d.opt_len+3+7>>>3,(ie=d.static_len+3+7>>>3)<=H&&(H=ie)):H=ie=re+5,re+4<=H&&C!==-1?m(d,C,re,Be):d.strategy===4||ie===H?(it(d,2+(Be?1:0),3),Cr(d,Ue,J)):(it(d,4+(Be?1:0),3),function(xe,ye,je,xt){var he;for(it(xe,ye-257,5),it(xe,je-1,5),it(xe,xt-4,4),he=0;he<xt;he++)it(xe,xe.bl_tree[2*Se[he]+1],3);ft(xe,xe.dyn_ltree,ye-1),ft(xe,xe.dyn_dtree,je-1)}(d,d.l_desc.max_code+1,d.d_desc.max_code+1,Qe+1),Cr(d,d.dyn_ltree,d.dyn_dtree)),Lt(d),Be&&Nt(d)},te._tr_tally=function(d,C,re){return d.pending_buf[d.d_buf+2*d.last_lit]=C>>>8&255,d.pending_buf[d.d_buf+2*d.last_lit+1]=255&C,d.pending_buf[d.l_buf+d.last_lit]=255&re,d.last_lit++,C===0?d.dyn_ltree[2*re]++:(d.matches++,C--,d.dyn_ltree[2*(D[re]+E+1)]++,d.dyn_dtree[2*Ee(C)]++),d.last_lit===d.lit_bufsize-1},te._tr_align=function(d){it(d,2,3),Je(d,X,Ue),function(C){C.bi_valid===16?(tt(C,C.bi_buf),C.bi_buf=0,C.bi_valid=0):8<=C.bi_valid&&(C.pending_buf[C.pending++]=255&C.bi_buf,C.bi_buf>>=8,C.bi_valid-=8)}(d)}},{"../utils/common":41}],53:[function(P,De,te){"use strict";De.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(P,De,te){(function(V){(function(S,g){"use strict";if(!S.setImmediate){var I,v,z,E,M=1,N={},T=!1,L=S.document,ee=Object.getPrototypeOf&&Object.getPrototypeOf(S);ee=ee&&ee.setTimeout?ee:S,I={}.toString.call(S.process)==="[object process]"?function(q){Ae.nextTick(function(){le(q)})}:function(){if(S.postMessage&&!S.importScripts){var q=!0,W=S.onmessage;return S.onmessage=function(){q=!1},S.postMessage("","*"),S.onmessage=W,q}}()?(E="setImmediate$"+Math.random()+"$",S.addEventListener?S.addEventListener("message",X,!1):S.attachEvent("onmessage",X),function(q){S.postMessage(E+q,"*")}):S.MessageChannel?((z=new MessageChannel).port1.onmessage=function(q){le(q.data)},function(q){z.port2.postMessage(q)}):L&&"onreadystatechange"in L.createElement("script")?(v=L.documentElement,function(q){var W=L.createElement("script");W.onreadystatechange=function(){le(q),W.onreadystatechange=null,v.removeChild(W),W=null},v.appendChild(W)}):function(q){setTimeout(le,0,q)},ee.setImmediate=function(q){typeof q!="function"&&(q=new Function(""+q));for(var W=new Array(arguments.length-1),K=0;K<W.length;K++)W[K]=arguments[K+1];var se={callback:q,args:W};return N[M]=se,I(M),M++},ee.clearImmediate=R}function R(q){delete N[q]}function le(q){if(T)setTimeout(le,0,q);else{var W=N[q];if(W){T=!0;try{(function(K){var se=K.callback,fe=K.args;switch(fe.length){case 0:se();break;case 1:se(fe[0]);break;case 2:se(fe[0],fe[1]);break;case 3:se(fe[0],fe[1],fe[2]);break;default:se.apply(g,fe)}})(W)}finally{R(q),T=!1}}}}function X(q){q.source===S&&typeof q.data=="string"&&q.data.indexOf(E)===0&&le(+q.data.slice(E.length))}})(typeof self=="undefined"?V===void 0?this:V:self)}).call(this,typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},5630:function(un,Tt,x){"use strict";var me=x(54476),Ae=x(33885),P=x(20068),De=x(42978),te=x(75931),V=x(92310),S=x.n(V),g=x(18929),I=x(59301),v=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],z=(0,I.forwardRef)(function(E,M){var N,T=E.prefixCls,L=T===void 0?"rc-checkbox":T,ee=E.className,R=E.style,le=E.checked,X=E.disabled,q=E.defaultChecked,W=q===void 0?!1:q,K=E.type,se=K===void 0?"checkbox":K,fe=E.title,Oe=E.onChange,Se=(0,te.Z)(E,v),Ue=(0,I.useRef)(null),J=(0,g.Z)(W,{value:le}),ue=(0,De.Z)(J,2),D=ue[0],Ve=ue[1];(0,I.useImperativeHandle)(M,function(){return{focus:function(){var ve;(ve=Ue.current)===null||ve===void 0||ve.focus()},blur:function(){var ve;(ve=Ue.current)===null||ve===void 0||ve.blur()},input:Ue.current}});var Me=S()(L,ee,(N={},(0,P.Z)(N,"".concat(L,"-checked"),D),(0,P.Z)(N,"".concat(L,"-disabled"),X),N)),we=function(ve){X||("checked"in E||Ve(ve.target.checked),Oe==null||Oe({target:(0,Ae.Z)((0,Ae.Z)({},E),{},{type:se,checked:ve.target.checked}),stopPropagation:function(){ve.stopPropagation()},preventDefault:function(){ve.preventDefault()},nativeEvent:ve.nativeEvent}))};return I.createElement("span",{className:Me,title:fe,style:R},I.createElement("input",(0,me.Z)({},Se,{className:"".concat(L,"-input"),ref:Ue,onChange:we,disabled:X,checked:!!D,type:se})),I.createElement("span",{className:"".concat(L,"-inner")}))});Tt.Z=z},31561:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return se}});var me=x(54476),Ae=x(20068),P=x(42978),De=x(75931),te=x(35593),V=x(92310),S=x.n(V),g=x(8654),I=x(59301),v=x(10228),z=x(16089),E=v.Z.ESC,M=v.Z.TAB;function N(fe){var Oe=fe.visible,Se=fe.triggerRef,Ue=fe.onVisibleChange,J=fe.autoFocus,ue=fe.overlayRef,D=I.useRef(!1),Ve=function(){if(Oe){var ve,Fe;(ve=Se.current)===null||ve===void 0||(Fe=ve.focus)===null||Fe===void 0||Fe.call(ve),Ue==null||Ue(!1)}},Me=function(){var ve;return(ve=ue.current)!==null&&ve!==void 0&&ve.focus?(ue.current.focus(),D.current=!0,!0):!1},we=function(ve){switch(ve.keyCode){case E:Ve();break;case M:{var Fe=!1;D.current||(Fe=Me()),Fe?ve.preventDefault():Ve();break}}};I.useEffect(function(){return Oe?(window.addEventListener("keydown",we),J&&(0,z.Z)(Me,3),function(){window.removeEventListener("keydown",we),D.current=!1}):function(){D.current=!1}},[Oe])}var T=(0,I.forwardRef)(function(fe,Oe){var Se=fe.overlay,Ue=fe.arrow,J=fe.prefixCls,ue=(0,I.useMemo)(function(){var Ve;return typeof Se=="function"?Ve=Se():Ve=Se,Ve},[Se]),D=(0,g.sQ)(Oe,ue==null?void 0:ue.ref);return I.createElement(I.Fragment,null,Ue&&I.createElement("div",{className:"".concat(J,"-arrow")}),I.cloneElement(ue,{ref:(0,g.Yr)(ue)?D:void 0}))}),L=T,ee={adjustX:1,adjustY:1},R=[0,0],le={topLeft:{points:["bl","tl"],overflow:ee,offset:[0,-4],targetOffset:R},top:{points:["bc","tc"],overflow:ee,offset:[0,-4],targetOffset:R},topRight:{points:["br","tr"],overflow:ee,offset:[0,-4],targetOffset:R},bottomLeft:{points:["tl","bl"],overflow:ee,offset:[0,4],targetOffset:R},bottom:{points:["tc","bc"],overflow:ee,offset:[0,4],targetOffset:R},bottomRight:{points:["tr","br"],overflow:ee,offset:[0,4],targetOffset:R}},X=le,q=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function W(fe,Oe){var Se,Ue=fe.arrow,J=Ue===void 0?!1:Ue,ue=fe.prefixCls,D=ue===void 0?"rc-dropdown":ue,Ve=fe.transitionName,Me=fe.animation,we=fe.align,Te=fe.placement,ve=Te===void 0?"bottomLeft":Te,Fe=fe.placements,de=Fe===void 0?X:Fe,Ee=fe.getPopupContainer,tt=fe.showAction,it=fe.hideAction,Je=fe.overlayClassName,et=fe.overlayStyle,Bt=fe.visible,Lt=fe.trigger,Nt=Lt===void 0?["hover"]:Lt,ur=fe.autoFocus,ar=fe.overlay,Cr=fe.children,sr=fe.onVisibleChange,G=(0,De.Z)(fe,q),ft=I.useState(),F=(0,P.Z)(ft,2),m=F[0],d=F[1],C="visible"in fe?Bt:m,re=I.useRef(null),Be=I.useRef(null),H=I.useRef(null);I.useImperativeHandle(Oe,function(){return re.current});var ie=function(Ie){d(Ie),sr==null||sr(Ie)};N({visible:C,triggerRef:H,onVisibleChange:ie,autoFocus:ur,overlayRef:Be});var Qe=function(Ie){var Le=fe.onOverlayClick;d(!1),Le&&Le(Ie)},xe=function(){return I.createElement(L,{ref:Be,overlay:ar,prefixCls:D,arrow:J})},ye=function(){return typeof ar=="function"?xe:xe()},je=function(){var Ie=fe.minOverlayWidthMatchTrigger,Le=fe.alignPoint;return"minOverlayWidthMatchTrigger"in fe?Ie:!Le},xt=function(){var Ie=fe.openClassName;return Ie!==void 0?Ie:"".concat(D,"-open")},he=I.cloneElement(Cr,{className:S()((Se=Cr.props)===null||Se===void 0?void 0:Se.className,C&&xt()),ref:(0,g.Yr)(Cr)?(0,g.sQ)(H,Cr.ref):void 0}),st=it;return!st&&Nt.indexOf("contextMenu")!==-1&&(st=["click"]),I.createElement(te.Z,(0,me.Z)({builtinPlacements:de},G,{prefixCls:D,ref:re,popupClassName:S()(Je,(0,Ae.Z)({},"".concat(D,"-show-arrow"),J)),popupStyle:et,action:Nt,showAction:tt,hideAction:st,popupPlacement:ve,popupAlign:we,popupTransitionName:Ve,popupAnimation:Me,popupVisible:C,stretch:je()?"minWidth":"",popup:ye(),onPopupVisibleChange:ie,onPopupClick:Qe,getPopupContainer:Ee}),he)}var K=I.forwardRef(W),se=K},93681:function(un,Tt,x){"use strict";x.r(Tt),x.d(Tt,{BaseInput:function(){return v},default:function(){return le}});var me=x(54476),Ae=x(33885),P=x(20068),De=x(76190),te=x(92310),V=x.n(te),S=x(59301),g=x(5643),I=function(q){var W,K,se=q.inputElement,fe=q.prefixCls,Oe=q.prefix,Se=q.suffix,Ue=q.addonBefore,J=q.addonAfter,ue=q.className,D=q.style,Ve=q.disabled,Me=q.readOnly,we=q.focused,Te=q.triggerFocus,ve=q.allowClear,Fe=q.value,de=q.handleReset,Ee=q.hidden,tt=q.classes,it=q.classNames,Je=q.dataAttrs,et=q.styles,Bt=q.components,Lt=(Bt==null?void 0:Bt.affixWrapper)||"span",Nt=(Bt==null?void 0:Bt.groupWrapper)||"span",ur=(Bt==null?void 0:Bt.wrapper)||"span",ar=(Bt==null?void 0:Bt.groupAddon)||"span",Cr=(0,S.useRef)(null),sr=function(xe){var ye;(ye=Cr.current)!==null&&ye!==void 0&&ye.contains(xe.target)&&(Te==null||Te())},G=function(){var xe;if(!ve)return null;var ye=!Ve&&!Me&&Fe,je="".concat(fe,"-clear-icon"),xt=(0,De.Z)(ve)==="object"&&ve!==null&&ve!==void 0&&ve.clearIcon?ve.clearIcon:"\u2716";return S.createElement("span",{onClick:de,onMouseDown:function(st){return st.preventDefault()},className:V()(je,(xe={},(0,P.Z)(xe,"".concat(je,"-hidden"),!ye),(0,P.Z)(xe,"".concat(je,"-has-suffix"),!!Se),xe)),role:"button",tabIndex:-1},xt)},ft=(0,S.cloneElement)(se,{value:Fe,hidden:Ee,className:V()((W=se.props)===null||W===void 0?void 0:W.className,!(0,g.X3)(q)&&!(0,g.He)(q)&&ue)||null,style:(0,Ae.Z)((0,Ae.Z)({},(K=se.props)===null||K===void 0?void 0:K.style),!(0,g.X3)(q)&&!(0,g.He)(q)?D:{})});if((0,g.X3)(q)){var F,m="".concat(fe,"-affix-wrapper"),d=V()(m,(F={},(0,P.Z)(F,"".concat(m,"-disabled"),Ve),(0,P.Z)(F,"".concat(m,"-focused"),we),(0,P.Z)(F,"".concat(m,"-readonly"),Me),(0,P.Z)(F,"".concat(m,"-input-with-clear-btn"),Se&&ve&&Fe),F),!(0,g.He)(q)&&ue,tt==null?void 0:tt.affixWrapper,it==null?void 0:it.affixWrapper),C=(Se||ve)&&S.createElement("span",{className:V()("".concat(fe,"-suffix"),it==null?void 0:it.suffix),style:et==null?void 0:et.suffix},G(),Se);ft=S.createElement(Lt,(0,me.Z)({className:d,style:(0,Ae.Z)((0,Ae.Z)({},(0,g.He)(q)?void 0:D),et==null?void 0:et.affixWrapper),hidden:!(0,g.He)(q)&&Ee,onClick:sr},Je==null?void 0:Je.affixWrapper,{ref:Cr}),Oe&&S.createElement("span",{className:V()("".concat(fe,"-prefix"),it==null?void 0:it.prefix),style:et==null?void 0:et.prefix},Oe),(0,S.cloneElement)(se,{value:Fe,hidden:null}),C)}if((0,g.He)(q)){var re="".concat(fe,"-group"),Be="".concat(re,"-addon"),H=V()("".concat(fe,"-wrapper"),re,tt==null?void 0:tt.wrapper),ie=V()("".concat(fe,"-group-wrapper"),ue,tt==null?void 0:tt.group);return S.createElement(Nt,{className:ie,style:D,hidden:Ee},S.createElement(ur,{className:H},Ue&&S.createElement(ar,{className:Be},Ue),(0,S.cloneElement)(ft,{hidden:null}),J&&S.createElement(ar,{className:Be},J)))}return ft},v=I,z=x(94480),E=x(42978),M=x(75931),N=x(18929),T=x(2738),L=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],ee=(0,S.forwardRef)(function(X,q){var W=X.autoComplete,K=X.onChange,se=X.onFocus,fe=X.onBlur,Oe=X.onPressEnter,Se=X.onKeyDown,Ue=X.prefixCls,J=Ue===void 0?"rc-input":Ue,ue=X.disabled,D=X.htmlSize,Ve=X.className,Me=X.maxLength,we=X.suffix,Te=X.showCount,ve=X.type,Fe=ve===void 0?"text":ve,de=X.classes,Ee=X.classNames,tt=X.styles,it=(0,M.Z)(X,L),Je=(0,N.Z)(X.defaultValue,{value:X.value}),et=(0,E.Z)(Je,2),Bt=et[0],Lt=et[1],Nt=(0,S.useState)(!1),ur=(0,E.Z)(Nt,2),ar=ur[0],Cr=ur[1],sr=(0,S.useRef)(null),G=function(ie){sr.current&&(0,g.nH)(sr.current,ie)};(0,S.useImperativeHandle)(q,function(){return{focus:G,blur:function(){var ie;(ie=sr.current)===null||ie===void 0||ie.blur()},setSelectionRange:function(ie,Qe,xe){var ye;(ye=sr.current)===null||ye===void 0||ye.setSelectionRange(ie,Qe,xe)},select:function(){var ie;(ie=sr.current)===null||ie===void 0||ie.select()},input:sr.current}}),(0,S.useEffect)(function(){Cr(function(H){return H&&ue?!1:H})},[ue]);var ft=function(ie){X.value===void 0&&Lt(ie.target.value),sr.current&&(0,g.rJ)(sr.current,ie,K)},F=function(ie){Oe&&ie.key==="Enter"&&Oe(ie),Se==null||Se(ie)},m=function(ie){Cr(!0),se==null||se(ie)},d=function(ie){Cr(!1),fe==null||fe(ie)},C=function(ie){Lt(""),G(),sr.current&&(0,g.rJ)(sr.current,ie,K)},re=function(){var ie=(0,T.Z)(X,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return S.createElement("input",(0,me.Z)({autoComplete:W},ie,{onChange:ft,onFocus:m,onBlur:d,onKeyDown:F,className:V()(J,(0,P.Z)({},"".concat(J,"-disabled"),ue),Ee==null?void 0:Ee.input),style:tt==null?void 0:tt.input,ref:sr,size:D,type:Fe}))},Be=function(){var ie=Number(Me)>0;if(we||Te){var Qe=(0,g.D7)(Bt),xe=(0,z.Z)(Qe).length,ye=(0,De.Z)(Te)==="object"?Te.formatter({value:Qe,count:xe,maxLength:Me}):"".concat(xe).concat(ie?" / ".concat(Me):"");return S.createElement(S.Fragment,null,!!Te&&S.createElement("span",{className:V()("".concat(J,"-show-count-suffix"),(0,P.Z)({},"".concat(J,"-show-count-has-suffix"),!!we),Ee==null?void 0:Ee.count),style:(0,Ae.Z)({},tt==null?void 0:tt.count)},ye),we)}return null};return S.createElement(v,(0,me.Z)({},it,{prefixCls:J,className:Ve,inputElement:re(),handleReset:C,value:(0,g.D7)(Bt),focused:ar,triggerFocus:G,suffix:Be(),disabled:ue,classes:de,classNames:Ee,styles:tt}))}),R=ee,le=R},5643:function(un,Tt,x){"use strict";x.d(Tt,{D7:function(){return te},He:function(){return me},X3:function(){return Ae},nH:function(){return De},rJ:function(){return P}});function me(V){return!!(V.addonBefore||V.addonAfter)}function Ae(V){return!!(V.prefix||V.suffix||V.allowClear)}function P(V,S,g,I){if(g){var v=S;if(S.type==="click"){var z=V.cloneNode(!0);v=Object.create(S,{target:{value:z},currentTarget:{value:z}}),z.value="",g(v);return}if(I!==void 0){v=Object.create(S,{target:{value:V},currentTarget:{value:V}}),V.value=I,g(v);return}g(v)}}function De(V,S){if(V){V.focus(S);var g=S||{},I=g.cursor;if(I){var v=V.value.length;switch(I){case"start":V.setSelectionRange(0,0);break;case"end":V.setSelectionRange(v,v);break;default:V.setSelectionRange(0,v)}}}}function te(V){return typeof V=="undefined"||V===null?"":String(V)}},15285:function(un,Tt,x){"use strict";x.d(Tt,{iz:function(){return jr},ck:function(){return ln},BW:function(){return an},sN:function(){return ln},Wd:function(){return Dt},ZP:function(){return Gn},Xl:function(){return Se}});var me=x(54476),Ae=x(20068),P=x(33885),De=x(94480),te=x(42978),V=x(75931),S=x(92310),g=x.n(S),I=x(83836),v=x(18929),z=x(13697),E=x(48736),M=x(59301),N=x(4676),T=M.createContext(null);function L(Vt,Xt){return Vt===void 0?null:"".concat(Vt,"-").concat(Xt)}function ee(Vt){var Xt=M.useContext(T);return L(Xt,Vt)}var R=x(80547),le=["children","locked"],X=M.createContext(null);function q(Vt,Xt){var Yt=(0,P.Z)({},Vt);return Object.keys(Xt).forEach(function(er){var jt=Xt[er];jt!==void 0&&(Yt[er]=jt)}),Yt}function W(Vt){var Xt=Vt.children,Yt=Vt.locked,er=(0,V.Z)(Vt,le),jt=M.useContext(X),or=(0,R.Z)(function(){return q(jt,er)},[jt,er],function(lr,Pr){return!Yt&&(lr[0]!==Pr[0]||!(0,z.Z)(lr[1],Pr[1],!0))});return M.createElement(X.Provider,{value:or},Xt)}var K=[],se=M.createContext(null);function fe(){return M.useContext(se)}var Oe=M.createContext(K);function Se(Vt){var Xt=M.useContext(Oe);return M.useMemo(function(){return Vt!==void 0?[].concat((0,De.Z)(Xt),[Vt]):Xt},[Xt,Vt])}var Ue=M.createContext(null),J=M.createContext({}),ue=J,D=x(29194);function Ve(Vt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,D.Z)(Vt)){var Yt=Vt.nodeName.toLowerCase(),er=["input","select","textarea","button"].includes(Yt)||Vt.isContentEditable||Yt==="a"&&!!Vt.getAttribute("href"),jt=Vt.getAttribute("tabindex"),or=Number(jt),lr=null;return jt&&!Number.isNaN(or)?lr=or:er&&lr===null&&(lr=0),er&&Vt.disabled&&(lr=null),lr!==null&&(lr>=0||Xt&&lr<0)}return!1}function Me(Vt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=(0,De.Z)(Vt.querySelectorAll("*")).filter(function(er){return Ve(er,Xt)});return Ve(Vt,Xt)&&Yt.unshift(Vt),Yt}var we=null;function Te(){we=document.activeElement}function ve(){we=null}function Fe(){if(we)try{we.focus()}catch(Vt){}}function de(Vt,Xt){if(Xt.keyCode===9){var Yt=Me(Vt),er=Yt[Xt.shiftKey?0:Yt.length-1],jt=er===document.activeElement||Vt===document.activeElement;if(jt){var or=Yt[Xt.shiftKey?Yt.length-1:0];or.focus(),Xt.preventDefault()}}}var Ee=x(10228),tt=x(16089),it=Ee.Z.LEFT,Je=Ee.Z.RIGHT,et=Ee.Z.UP,Bt=Ee.Z.DOWN,Lt=Ee.Z.ENTER,Nt=Ee.Z.ESC,ur=Ee.Z.HOME,ar=Ee.Z.END,Cr=[et,Bt,it,Je];function sr(Vt,Xt,Yt,er){var jt,or,lr,Pr,yn="prev",Bn="next",li="children",ti="parent";if(Vt==="inline"&&er===Lt)return{inlineTrigger:!0};var Si=(jt={},(0,Ae.Z)(jt,et,yn),(0,Ae.Z)(jt,Bt,Bn),jt),Yn=(or={},(0,Ae.Z)(or,it,Yt?Bn:yn),(0,Ae.Z)(or,Je,Yt?yn:Bn),(0,Ae.Z)(or,Bt,li),(0,Ae.Z)(or,Lt,li),or),jn=(lr={},(0,Ae.Z)(lr,et,yn),(0,Ae.Z)(lr,Bt,Bn),(0,Ae.Z)(lr,Lt,li),(0,Ae.Z)(lr,Nt,ti),(0,Ae.Z)(lr,it,Yt?li:ti),(0,Ae.Z)(lr,Je,Yt?ti:li),lr),wi={inline:Si,horizontal:Yn,vertical:jn,inlineSub:Si,horizontalSub:jn,verticalSub:jn},yi=(Pr=wi["".concat(Vt).concat(Xt?"":"Sub")])===null||Pr===void 0?void 0:Pr[er];switch(yi){case yn:return{offset:-1,sibling:!0};case Bn:return{offset:1,sibling:!0};case ti:return{offset:-1,sibling:!1};case li:return{offset:1,sibling:!1};default:return null}}function G(Vt){for(var Xt=Vt;Xt;){if(Xt.getAttribute("data-menu-list"))return Xt;Xt=Xt.parentElement}return null}function ft(Vt,Xt){for(var Yt=Vt||document.activeElement;Yt;){if(Xt.has(Yt))return Yt;Yt=Yt.parentElement}return null}function F(Vt,Xt){var Yt=Me(Vt,!0);return Yt.filter(function(er){return Xt.has(er)})}function m(Vt,Xt,Yt){var er=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Vt)return null;var jt=F(Vt,Xt),or=jt.length,lr=jt.findIndex(function(Pr){return Yt===Pr});return er<0?lr===-1?lr=or-1:lr-=1:er>0&&(lr+=1),lr=(lr+or)%or,jt[lr]}var d=function(Xt,Yt){var er=new Set,jt=new Map,or=new Map;return Xt.forEach(function(lr){var Pr=document.querySelector("[data-menu-id='".concat(L(Yt,lr),"']"));Pr&&(er.add(Pr),or.set(Pr,lr),jt.set(lr,Pr))}),{elements:er,key2element:jt,element2key:or}};function C(Vt,Xt,Yt,er,jt,or,lr,Pr,yn,Bn){var li=M.useRef(),ti=M.useRef();ti.current=Xt;var Si=function(){tt.Z.cancel(li.current)};return M.useEffect(function(){return function(){Si()}},[]),function(Yn){var jn=Yn.which;if([].concat(Cr,[Lt,Nt,ur,ar]).includes(jn)){var wi=or(),yi=d(wi,er),xi=yi,ci=xi.elements,Ci=xi.key2element,$i=xi.element2key,ei=Ci.get(Xt),Ni=ft(ei,ci),Ha=$i.get(Ni),si=sr(Vt,lr(Ha,!0).length===1,Yt,jn);if(!si&&jn!==ur&&jn!==ar)return;(Cr.includes(jn)||[ur,ar].includes(jn))&&Yn.preventDefault();var pn=function(Aa){if(Aa){var Co=Aa,Vn=Aa.querySelector("a");Vn!=null&&Vn.getAttribute("href")&&(Co=Vn);var Mn=$i.get(Aa);Pr(Mn),Si(),li.current=(0,tt.Z)(function(){ti.current===Mn&&Co.focus()})}};if([ur,ar].includes(jn)||si.sibling||!Ni){var cn;!Ni||Vt==="inline"?cn=jt.current:cn=G(Ni);var Xn,Kn=F(cn,ci);jn===ur?Xn=Kn[0]:jn===ar?Xn=Kn[Kn.length-1]:Xn=m(cn,ci,Ni,si.offset),pn(Xn)}else if(si.inlineTrigger)yn(Ha);else if(si.offset>0)yn(Ha,!0),Si(),li.current=(0,tt.Z)(function(){yi=d(wi,er);var Ua=Ni.getAttribute("aria-controls"),Aa=document.getElementById(Ua),Co=m(Aa,yi.elements);pn(Co)},5);else if(si.offset<0){var fi=lr(Ha,!0),Xi=fi[fi.length-2],Ii=Ci.get(Xi);yn(Xi,!1),pn(Ii)}}Bn==null||Bn(Yn)}}function re(Vt){Promise.resolve().then(Vt)}var Be="__RC_UTIL_PATH_SPLIT__",H=function(Xt){return Xt.join(Be)},ie=function(Xt){return Xt.split(Be)},Qe="rc-menu-more";function xe(){var Vt=M.useState({}),Xt=(0,te.Z)(Vt,2),Yt=Xt[1],er=(0,M.useRef)(new Map),jt=(0,M.useRef)(new Map),or=M.useState([]),lr=(0,te.Z)(or,2),Pr=lr[0],yn=lr[1],Bn=(0,M.useRef)(0),li=(0,M.useRef)(!1),ti=function(){li.current||Yt({})},Si=(0,M.useCallback)(function(Ci,$i){var ei=H($i);jt.current.set(ei,Ci),er.current.set(Ci,ei),Bn.current+=1;var Ni=Bn.current;re(function(){Ni===Bn.current&&ti()})},[]),Yn=(0,M.useCallback)(function(Ci,$i){var ei=H($i);jt.current.delete(ei),er.current.delete(Ci)},[]),jn=(0,M.useCallback)(function(Ci){yn(Ci)},[]),wi=(0,M.useCallback)(function(Ci,$i){var ei=er.current.get(Ci)||"",Ni=ie(ei);return $i&&Pr.includes(Ni[0])&&Ni.unshift(Qe),Ni},[Pr]),yi=(0,M.useCallback)(function(Ci,$i){return Ci.some(function(ei){var Ni=wi(ei,!0);return Ni.includes($i)})},[wi]),xi=function(){var $i=(0,De.Z)(er.current.keys());return Pr.length&&$i.push(Qe),$i},ci=(0,M.useCallback)(function(Ci){var $i="".concat(er.current.get(Ci)).concat(Be),ei=new Set;return(0,De.Z)(jt.current.keys()).forEach(function(Ni){Ni.startsWith($i)&&ei.add(jt.current.get(Ni))}),ei},[]);return M.useEffect(function(){return function(){li.current=!0}},[]),{registerPath:Si,unregisterPath:Yn,refreshOverflowKeys:jn,isSubPathKey:yi,getKeyPath:wi,getKeys:xi,getSubPathKeys:ci}}function ye(Vt){var Xt=M.useRef(Vt);Xt.current=Vt;var Yt=M.useCallback(function(){for(var er,jt=arguments.length,or=new Array(jt),lr=0;lr<jt;lr++)or[lr]=arguments[lr];return(er=Xt.current)===null||er===void 0?void 0:er.call.apply(er,[Xt].concat(or))},[]);return Vt?Yt:void 0}var je=Math.random().toFixed(5).toString().slice(2),xt=0;function he(Vt){var Xt=(0,v.Z)(Vt,{value:Vt}),Yt=(0,te.Z)(Xt,2),er=Yt[0],jt=Yt[1];return M.useEffect(function(){xt+=1;var or="".concat(je,"-").concat(xt);jt("rc-menu-uuid-".concat(or))},[]),er}var st=x(67732),Ye=x(83652),Ie=x(42403),Le=x(158),ct=x(2738),Ut=x(8654);function kt(Vt,Xt,Yt,er){var jt=M.useContext(X),or=jt.activeKey,lr=jt.onActive,Pr=jt.onInactive,yn={active:or===Vt};return Xt||(yn.onMouseEnter=function(Bn){Yt==null||Yt({key:Vt,domEvent:Bn}),lr(Vt)},yn.onMouseLeave=function(Bn){er==null||er({key:Vt,domEvent:Bn}),Pr(Vt)}),yn}function tr(Vt){var Xt=M.useContext(X),Yt=Xt.mode,er=Xt.rtl,jt=Xt.inlineIndent;if(Yt!=="inline")return null;var or=Vt;return er?{paddingRight:or*jt}:{paddingLeft:or*jt}}function Dr(Vt){var Xt=Vt.icon,Yt=Vt.props,er=Vt.children,jt;return Xt===null||Xt===!1?null:(typeof Xt=="function"?jt=M.createElement(Xt,(0,P.Z)({},Yt)):typeof Xt!="boolean"&&(jt=Xt),jt||er||null)}var fr=["item"];function Fr(Vt){var Xt=Vt.item,Yt=(0,V.Z)(Vt,fr);return Object.defineProperty(Yt,"item",{get:function(){return(0,E.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Xt}}),Yt}var Lr=["title","attribute","elementRef"],mr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],cr=["active"],Kr=function(Vt){(0,Ie.Z)(Yt,Vt);var Xt=(0,Le.Z)(Yt);function Yt(){return(0,st.Z)(this,Yt),Xt.apply(this,arguments)}return(0,Ye.Z)(Yt,[{key:"render",value:function(){var jt=this.props,or=jt.title,lr=jt.attribute,Pr=jt.elementRef,yn=(0,V.Z)(jt,Lr),Bn=(0,ct.Z)(yn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,E.ZP)(!lr,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),M.createElement(I.Z.Item,(0,me.Z)({},lr,{title:typeof or=="string"?or:void 0},Bn,{ref:Pr}))}}]),Yt}(M.Component),fn=M.forwardRef(function(Vt,Xt){var Yt,er=Vt.style,jt=Vt.className,or=Vt.eventKey,lr=Vt.warnKey,Pr=Vt.disabled,yn=Vt.itemIcon,Bn=Vt.children,li=Vt.role,ti=Vt.onMouseEnter,Si=Vt.onMouseLeave,Yn=Vt.onClick,jn=Vt.onKeyDown,wi=Vt.onFocus,yi=(0,V.Z)(Vt,mr),xi=ee(or),ci=M.useContext(X),Ci=ci.prefixCls,$i=ci.onItemClick,ei=ci.disabled,Ni=ci.overflowDisabled,Ha=ci.itemIcon,si=ci.selectedKeys,pn=ci.onActive,cn=M.useContext(ue),Xn=cn._internalRenderMenuItem,Kn="".concat(Ci,"-item"),fi=M.useRef(),Xi=M.useRef(),Ii=ei||Pr,Ua=(0,Ut.x1)(Xt,Xi),Aa=Se(or),Co=function(ho){return{key:or,keyPath:(0,De.Z)(Aa).reverse(),item:fi.current,domEvent:ho}},Vn=yn||Ha,Mn=kt(or,Ii,ti,Si),Li=Mn.active,Zi=(0,V.Z)(Mn,cr),Fa=si.includes(or),Is=tr(Aa.length),za=function(ho){if(!Ii){var bs=Co(ho);Yn==null||Yn(Fr(bs)),$i(bs)}},fa=function(ho){if(jn==null||jn(ho),ho.which===Ee.Z.ENTER){var bs=Co(ho);Yn==null||Yn(Fr(bs)),$i(bs)}},Io=function(ho){pn(or),wi==null||wi(ho)},Bo={};Vt.role==="option"&&(Bo["aria-selected"]=Fa);var Po=M.createElement(Kr,(0,me.Z)({ref:fi,elementRef:Ua,role:li===null?"none":li||"menuitem",tabIndex:Pr?null:-1,"data-menu-id":Ni&&xi?null:xi},yi,Zi,Bo,{component:"li","aria-disabled":Pr,style:(0,P.Z)((0,P.Z)({},Is),er),className:g()(Kn,(Yt={},(0,Ae.Z)(Yt,"".concat(Kn,"-active"),Li),(0,Ae.Z)(Yt,"".concat(Kn,"-selected"),Fa),(0,Ae.Z)(Yt,"".concat(Kn,"-disabled"),Ii),Yt),jt),onClick:za,onKeyDown:fa,onFocus:Io}),Bn,M.createElement(Dr,{props:(0,P.Z)((0,P.Z)({},Vt),{},{isSelected:Fa}),icon:Vn}));return Xn&&(Po=Xn(Po,Vt,{selected:Fa})),Po});function _n(Vt,Xt){var Yt=Vt.eventKey,er=fe(),jt=Se(Yt);return M.useEffect(function(){if(er)return er.registerPath(Yt,jt),function(){er.unregisterPath(Yt,jt)}},[jt]),er?null:M.createElement(fn,(0,me.Z)({},Vt,{ref:Xt}))}var ln=M.forwardRef(_n),xn=["className","children"],oi=function(Xt,Yt){var er=Xt.className,jt=Xt.children,or=(0,V.Z)(Xt,xn),lr=M.useContext(X),Pr=lr.prefixCls,yn=lr.mode,Bn=lr.rtl;return M.createElement("ul",(0,me.Z)({className:g()(Pr,Bn&&"".concat(Pr,"-rtl"),"".concat(Pr,"-sub"),"".concat(Pr,"-").concat(yn==="inline"?"inline":"vertical"),er),role:"menu"},or,{"data-menu-list":!0,ref:Yt}),jt)},_r=M.forwardRef(oi);_r.displayName="SubMenuList";var Ai=_r,Oi=x(11592);function mi(Vt,Xt){return(0,Oi.Z)(Vt).map(function(Yt,er){if(M.isValidElement(Yt)){var jt,or,lr=Yt.key,Pr=(jt=(or=Yt.props)===null||or===void 0?void 0:or.eventKey)!==null&&jt!==void 0?jt:lr,yn=Pr==null;yn&&(Pr="tmp_key-".concat([].concat((0,De.Z)(Xt),[er]).join("-")));var Bn={key:Pr,eventKey:Pr};return M.cloneElement(Yt,Bn)}return Yt})}var Wi=x(35593),Gi={adjustX:1,adjustY:1},ta={topLeft:{points:["bl","tl"],overflow:Gi},topRight:{points:["br","tr"],overflow:Gi},bottomLeft:{points:["tl","bl"],overflow:Gi},bottomRight:{points:["tr","br"],overflow:Gi},leftTop:{points:["tr","tl"],overflow:Gi},leftBottom:{points:["br","bl"],overflow:Gi},rightTop:{points:["tl","tr"],overflow:Gi},rightBottom:{points:["bl","br"],overflow:Gi}},_o={topLeft:{points:["bl","tl"],overflow:Gi},topRight:{points:["br","tr"],overflow:Gi},bottomLeft:{points:["tl","bl"],overflow:Gi},bottomRight:{points:["tr","br"],overflow:Gi},rightTop:{points:["tr","tl"],overflow:Gi},rightBottom:{points:["br","bl"],overflow:Gi},leftTop:{points:["tl","tr"],overflow:Gi},leftBottom:{points:["bl","br"],overflow:Gi}},ra=null;function bi(Vt,Xt,Yt){if(Xt)return Xt;if(Yt)return Yt[Vt]||Yt.other}var Ki={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function sa(Vt){var Xt=Vt.prefixCls,Yt=Vt.visible,er=Vt.children,jt=Vt.popup,or=Vt.popupStyle,lr=Vt.popupClassName,Pr=Vt.popupOffset,yn=Vt.disabled,Bn=Vt.mode,li=Vt.onVisibleChange,ti=M.useContext(X),Si=ti.getPopupContainer,Yn=ti.rtl,jn=ti.subMenuOpenDelay,wi=ti.subMenuCloseDelay,yi=ti.builtinPlacements,xi=ti.triggerSubMenuAction,ci=ti.forceSubMenuRender,Ci=ti.rootClassName,$i=ti.motion,ei=ti.defaultMotions,Ni=M.useState(!1),Ha=(0,te.Z)(Ni,2),si=Ha[0],pn=Ha[1],cn=Yn?(0,P.Z)((0,P.Z)({},_o),yi):(0,P.Z)((0,P.Z)({},ta),yi),Xn=Ki[Bn],Kn=bi(Bn,$i,ei),fi=M.useRef(Kn);Bn!=="inline"&&(fi.current=Kn);var Xi=(0,P.Z)((0,P.Z)({},fi.current),{},{leavedClassName:"".concat(Xt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Ii=M.useRef();return M.useEffect(function(){return Ii.current=(0,tt.Z)(function(){pn(Yt)}),function(){tt.Z.cancel(Ii.current)}},[Yt]),M.createElement(Wi.Z,{prefixCls:Xt,popupClassName:g()("".concat(Xt,"-popup"),(0,Ae.Z)({},"".concat(Xt,"-rtl"),Yn),lr,Ci),stretch:Bn==="horizontal"?"minWidth":null,getPopupContainer:Si,builtinPlacements:cn,popupPlacement:Xn,popupVisible:si,popup:jt,popupStyle:or,popupAlign:Pr&&{offset:Pr},action:yn?[]:[xi],mouseEnterDelay:jn,mouseLeaveDelay:wi,onPopupVisibleChange:li,forceRender:ci,popupMotion:Xi,fresh:!0},er)}var be=x(77900);function Ne(Vt){var Xt=Vt.id,Yt=Vt.open,er=Vt.keyPath,jt=Vt.children,or="inline",lr=M.useContext(X),Pr=lr.prefixCls,yn=lr.forceSubMenuRender,Bn=lr.motion,li=lr.defaultMotions,ti=lr.mode,Si=M.useRef(!1);Si.current=ti===or;var Yn=M.useState(!Si.current),jn=(0,te.Z)(Yn,2),wi=jn[0],yi=jn[1],xi=Si.current?Yt:!1;M.useEffect(function(){Si.current&&yi(!1)},[ti]);var ci=(0,P.Z)({},bi(or,Bn,li));er.length>1&&(ci.motionAppear=!1);var Ci=ci.onVisibleChanged;return ci.onVisibleChanged=function($i){return!Si.current&&!$i&&yi(!0),Ci==null?void 0:Ci($i)},wi?null:M.createElement(W,{mode:or,locked:!Si.current},M.createElement(be.default,(0,me.Z)({visible:xi},ci,{forceRender:yn,removeOnLeave:!1,leavedClassName:"".concat(Pr,"-hidden")}),function($i){var ei=$i.className,Ni=$i.style;return M.createElement(Ai,{id:Xt,className:ei,style:Ni},jt)}))}var ke=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Xe=["active"],Pt=function(Xt){var Yt,er=Xt.style,jt=Xt.className,or=Xt.title,lr=Xt.eventKey,Pr=Xt.warnKey,yn=Xt.disabled,Bn=Xt.internalPopupClose,li=Xt.children,ti=Xt.itemIcon,Si=Xt.expandIcon,Yn=Xt.popupClassName,jn=Xt.popupOffset,wi=Xt.popupStyle,yi=Xt.onClick,xi=Xt.onMouseEnter,ci=Xt.onMouseLeave,Ci=Xt.onTitleClick,$i=Xt.onTitleMouseEnter,ei=Xt.onTitleMouseLeave,Ni=(0,V.Z)(Xt,ke),Ha=ee(lr),si=M.useContext(X),pn=si.prefixCls,cn=si.mode,Xn=si.openKeys,Kn=si.disabled,fi=si.overflowDisabled,Xi=si.activeKey,Ii=si.selectedKeys,Ua=si.itemIcon,Aa=si.expandIcon,Co=si.onItemClick,Vn=si.onOpenChange,Mn=si.onActive,Li=M.useContext(ue),Zi=Li._internalRenderSubMenuItem,Fa=M.useContext(Ue),Is=Fa.isSubPathKey,za=Se(),fa="".concat(pn,"-submenu"),Io=Kn||yn,Bo=M.useRef(),Po=M.useRef(),Ns=ti!=null?ti:Ua,ho=Si!=null?Si:Aa,bs=Xn.includes(lr),Ps=!fi&&bs,$s=Is(Ii,lr),To=kt(lr,Io,$i,ei),Uo=To.active,ys=(0,V.Z)(To,Xe),el=M.useState(!1),vl=(0,te.Z)(el,2),ic=vl[0],ac=vl[1],Ql=function(xs){Io||ac(xs)},Zs=function(xs){Ql(!0),xi==null||xi({key:lr,domEvent:xs})},Dc=function(xs){Ql(!1),ci==null||ci({key:lr,domEvent:xs})},Kl=M.useMemo(function(){return Uo||(cn!=="inline"?ic||Is([Xi],lr):!1)},[cn,Uo,Xi,ic,lr,Is]),Hl=tr(za.length),Vs=function(xs){Io||(Ci==null||Ci({key:lr,domEvent:xs}),cn==="inline"&&Vn(lr,!bs))},as=ye(function(ws){yi==null||yi(Fr(ws)),Co(ws)}),ri=function(xs){cn!=="inline"&&Vn(lr,xs)},la=function(){Mn(lr)},Yi=Ha&&"".concat(Ha,"-popup"),aa=M.createElement("div",(0,me.Z)({role:"menuitem",style:Hl,className:"".concat(fa,"-title"),tabIndex:Io?null:-1,ref:Bo,title:typeof or=="string"?or:null,"data-menu-id":fi&&Ha?null:Ha,"aria-expanded":Ps,"aria-haspopup":!0,"aria-controls":Yi,"aria-disabled":Io,onClick:Vs,onFocus:la},ys),or,M.createElement(Dr,{icon:cn!=="horizontal"?ho:void 0,props:(0,P.Z)((0,P.Z)({},Xt),{},{isOpen:Ps,isSubMenu:!0})},M.createElement("i",{className:"".concat(fa,"-arrow")}))),Da=M.useRef(cn);if(cn!=="inline"&&za.length>1?Da.current="vertical":Da.current=cn,!fi){var oo=Da.current;aa=M.createElement(sa,{mode:oo,prefixCls:fa,visible:!Bn&&Ps&&cn!=="inline",popupClassName:Yn,popupOffset:jn,popupStyle:wi,popup:M.createElement(W,{mode:oo==="horizontal"?"vertical":oo},M.createElement(Ai,{id:Yi,ref:Po},li)),disabled:Io,onVisibleChange:ri},aa)}var Ws=M.createElement(I.Z.Item,(0,me.Z)({role:"none"},Ni,{component:"li",style:er,className:g()(fa,"".concat(fa,"-").concat(cn),jt,(Yt={},(0,Ae.Z)(Yt,"".concat(fa,"-open"),Ps),(0,Ae.Z)(Yt,"".concat(fa,"-active"),Kl),(0,Ae.Z)(Yt,"".concat(fa,"-selected"),$s),(0,Ae.Z)(Yt,"".concat(fa,"-disabled"),Io),Yt)),onMouseEnter:Zs,onMouseLeave:Dc}),aa,!fi&&M.createElement(Ne,{id:Yi,open:Ps,keyPath:za},li));return Zi&&(Ws=Zi(Ws,Xt,{selected:$s,active:Kl,open:Ps,disabled:Io})),M.createElement(W,{onItemClick:as,mode:cn==="horizontal"?"vertical":cn,itemIcon:Ns,expandIcon:ho},Ws)};function Dt(Vt){var Xt=Vt.eventKey,Yt=Vt.children,er=Se(Xt),jt=mi(Yt,er),or=fe();M.useEffect(function(){if(or)return or.registerPath(Xt,er),function(){or.unregisterPath(Xt,er)}},[er]);var lr;return or?lr=jt:lr=M.createElement(Pt,Vt,jt),M.createElement(Oe.Provider,{value:er},lr)}var Er=x(76190),rr=["className","title","eventKey","children"],Nr=["children"],Hr=function(Xt){var Yt=Xt.className,er=Xt.title,jt=Xt.eventKey,or=Xt.children,lr=(0,V.Z)(Xt,rr),Pr=M.useContext(X),yn=Pr.prefixCls,Bn="".concat(yn,"-item-group");return M.createElement("li",(0,me.Z)({role:"presentation"},lr,{onClick:function(ti){return ti.stopPropagation()},className:g()(Bn,Yt)}),M.createElement("div",{role:"presentation",className:"".concat(Bn,"-title"),title:typeof er=="string"?er:void 0},er),M.createElement("ul",{role:"group",className:"".concat(Bn,"-list")},or))};function an(Vt){var Xt=Vt.children,Yt=(0,V.Z)(Vt,Nr),er=Se(Yt.eventKey),jt=mi(Xt,er),or=fe();return or?jt:M.createElement(Hr,(0,ct.Z)(Yt,["warnKey"]),jt)}function jr(Vt){var Xt=Vt.className,Yt=Vt.style,er=M.useContext(X),jt=er.prefixCls,or=fe();return or?null:M.createElement("li",{role:"separator",className:g()("".concat(jt,"-item-divider"),Xt),style:Yt})}var Rr=["label","children","key","type"];function en(Vt){return(Vt||[]).map(function(Xt,Yt){if(Xt&&(0,Er.Z)(Xt)==="object"){var er=Xt,jt=er.label,or=er.children,lr=er.key,Pr=er.type,yn=(0,V.Z)(er,Rr),Bn=lr!=null?lr:"tmp-".concat(Yt);return or||Pr==="group"?Pr==="group"?M.createElement(an,(0,me.Z)({key:Bn},yn,{title:jt}),en(or)):M.createElement(Dt,(0,me.Z)({key:Bn},yn,{title:jt}),en(or)):Pr==="divider"?M.createElement(jr,(0,me.Z)({key:Bn},yn)):M.createElement(ln,(0,me.Z)({key:Bn},yn),jt)}return null}).filter(function(Xt){return Xt})}function wn(Vt,Xt,Yt){var er=Vt;return Xt&&(er=en(Xt)),mi(er,Yt)}var on=["prefixCls","rootClassName","style","className","tabIndex","items","children","direction","id","mode","inlineCollapsed","disabled","disabledOverflow","subMenuOpenDelay","subMenuCloseDelay","forceSubMenuRender","defaultOpenKeys","openKeys","activeKey","defaultActiveFirst","selectable","multiple","defaultSelectedKeys","selectedKeys","onSelect","onDeselect","inlineIndent","motion","defaultMotions","triggerSubMenuAction","builtinPlacements","itemIcon","expandIcon","overflowedIndicator","overflowedIndicatorPopupClassName","getPopupContainer","onClick","onOpenChange","onKeyDown","openAnimation","openTransitionName","_internalRenderMenuItem","_internalRenderSubMenuItem"],On=[],Qn=M.forwardRef(function(Vt,Xt){var Yt,er,jt=Vt,or=jt.prefixCls,lr=or===void 0?"rc-menu":or,Pr=jt.rootClassName,yn=jt.style,Bn=jt.className,li=jt.tabIndex,ti=li===void 0?0:li,Si=jt.items,Yn=jt.children,jn=jt.direction,wi=jt.id,yi=jt.mode,xi=yi===void 0?"vertical":yi,ci=jt.inlineCollapsed,Ci=jt.disabled,$i=jt.disabledOverflow,ei=jt.subMenuOpenDelay,Ni=ei===void 0?.1:ei,Ha=jt.subMenuCloseDelay,si=Ha===void 0?.1:Ha,pn=jt.forceSubMenuRender,cn=jt.defaultOpenKeys,Xn=jt.openKeys,Kn=jt.activeKey,fi=jt.defaultActiveFirst,Xi=jt.selectable,Ii=Xi===void 0?!0:Xi,Ua=jt.multiple,Aa=Ua===void 0?!1:Ua,Co=jt.defaultSelectedKeys,Vn=jt.selectedKeys,Mn=jt.onSelect,Li=jt.onDeselect,Zi=jt.inlineIndent,Fa=Zi===void 0?24:Zi,Is=jt.motion,za=jt.defaultMotions,fa=jt.triggerSubMenuAction,Io=fa===void 0?"hover":fa,Bo=jt.builtinPlacements,Po=jt.itemIcon,Ns=jt.expandIcon,ho=jt.overflowedIndicator,bs=ho===void 0?"...":ho,Ps=jt.overflowedIndicatorPopupClassName,$s=jt.getPopupContainer,To=jt.onClick,Uo=jt.onOpenChange,ys=jt.onKeyDown,el=jt.openAnimation,vl=jt.openTransitionName,ic=jt._internalRenderMenuItem,ac=jt._internalRenderSubMenuItem,Ql=(0,V.Z)(jt,on),Zs=M.useMemo(function(){return wn(Yn,Si,On)},[Yn,Si]),Dc=M.useState(!1),Kl=(0,te.Z)(Dc,2),Hl=Kl[0],Vs=Kl[1],as=M.useRef(),ri=he(wi),la=jn==="rtl",Yi=(0,v.Z)(cn,{value:Xn,postState:function(No){return No||On}}),aa=(0,te.Z)(Yi,2),Da=aa[0],oo=aa[1],Ws=function(No){var Jo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function yc(){oo(No),Uo==null||Uo(No)}Jo?(0,N.flushSync)(yc):yc()},ws=M.useState(Da),xs=(0,te.Z)(ws,2),ms=xs[0],qa=xs[1],Ra=M.useRef(!1),os=M.useMemo(function(){return(xi==="inline"||xi==="vertical")&&ci?["vertical",ci]:[xi,!1]},[xi,ci]),ss=(0,te.Z)(os,2),Fs=ss[0],Go=ss[1],Fo=Fs==="inline",pA=M.useState(Fs),tu=(0,te.Z)(pA,2),Ac=tu[0],mA=tu[1],ll=M.useState(Go),gA=(0,te.Z)(ll,2),tl=gA[0],gs=gA[1];M.useEffect(function(){mA(Fs),gs(Go),Ra.current&&(Fo?oo(ms):Ws(On))},[Fs,Go]);var qc=M.useState(0),Ts=(0,te.Z)(qc,2),NA=Ts[0],uc=Ts[1],jl=NA>=Zs.length-1||Ac!=="horizontal"||$i;M.useEffect(function(){Fo&&qa(Da)},[Da]),M.useEffect(function(){return Ra.current=!0,function(){Ra.current=!1}},[]);var eo=xe(),Gs=eo.registerPath,vA=eo.unregisterPath,Su=eo.refreshOverflowKeys,ls=eo.isSubPathKey,Ca=eo.getKeyPath,ya=eo.getKeys,ts=eo.getSubPathKeys,mo=M.useMemo(function(){return{registerPath:Gs,unregisterPath:vA}},[Gs,vA]),jo=M.useMemo(function(){return{isSubPathKey:ls}},[ls]);M.useEffect(function(){Su(jl?On:Zs.slice(NA+1).map(function(Xo){return Xo.key}))},[NA,jl]);var zo=(0,v.Z)(Kn||fi&&((Yt=Zs[0])===null||Yt===void 0?void 0:Yt.key),{value:Kn}),Oo=(0,te.Z)(zo,2),Cs=Oo[0],oc=Oo[1],Vc=ye(function(Xo){oc(Xo)}),Xs=ye(function(){oc(void 0)});(0,M.useImperativeHandle)(Xt,function(){return{list:as.current,focus:function(No){var Jo,yc=ya(),zl=d(yc,ri),qu=zl.elements,yA=zl.key2element,zA=zl.element2key,Md=F(as.current,qu),Ld=Cs!=null?Cs:Md[0]?zA.get(Md[0]):(Jo=Zs.find(function(Mo){return!Mo.props.disabled}))===null||Jo===void 0?void 0:Jo.key,$A=yA.get(Ld);if(Ld&&$A){var ZA;$A==null||(ZA=$A.focus)===null||ZA===void 0||ZA.call($A,No)}}}});var bA=(0,v.Z)(Co||[],{value:Vn,postState:function(No){return Array.isArray(No)?No:No==null?On:[No]}}),xl=(0,te.Z)(bA,2),eA=xl[0],rl=xl[1],Id=function(No){if(Ii){var Jo=No.key,yc=eA.includes(Jo),zl;Aa?yc?zl=eA.filter(function(yA){return yA!==Jo}):zl=[].concat((0,De.Z)(eA),[Jo]):zl=[Jo],rl(zl);var qu=(0,P.Z)((0,P.Z)({},No),{},{selectedKeys:zl});yc?Li==null||Li(qu):Mn==null||Mn(qu)}!Aa&&Da.length&&Ac!=="inline"&&Ws(On)},ru=ye(function(Xo){To==null||To(Fr(Xo)),Id(Xo)}),jA=ye(function(Xo,No){var Jo=Da.filter(function(zl){return zl!==Xo});if(No)Jo.push(Xo);else if(Ac!=="inline"){var yc=ts(Xo);Jo=Jo.filter(function(zl){return!yc.has(zl)})}(0,z.Z)(Da,Jo,!0)||Ws(Jo,!0)}),cf=function(No,Jo){var yc=Jo!=null?Jo:!Da.includes(No);jA(No,yc)},Wc=C(Ac,Cs,la,ri,as,ya,Ca,oc,cf,ys);M.useEffect(function(){Vs(!0)},[]);var Yu=M.useMemo(function(){return{_internalRenderMenuItem:ic,_internalRenderSubMenuItem:ac}},[ic,ac]),Oc=Ac!=="horizontal"||$i?Zs:Zs.map(function(Xo,No){return M.createElement(W,{key:Xo.key,overflowDisabled:No>NA},Xo)}),Fd=M.createElement(I.Z,(0,me.Z)({id:wi,ref:as,prefixCls:"".concat(lr,"-overflow"),component:"ul",itemComponent:ln,className:g()(lr,"".concat(lr,"-root"),"".concat(lr,"-").concat(Ac),Bn,(er={},(0,Ae.Z)(er,"".concat(lr,"-inline-collapsed"),tl),(0,Ae.Z)(er,"".concat(lr,"-rtl"),la),er),Pr),dir:jn,style:yn,role:"menu",tabIndex:ti,data:Oc,renderRawItem:function(No){return No},renderRawRest:function(No){var Jo=No.length,yc=Jo?Zs.slice(-Jo):null;return M.createElement(Dt,{eventKey:Qe,title:bs,disabled:jl,internalPopupClose:Jo===0,popupClassName:Ps},yc)},maxCount:Ac!=="horizontal"||$i?I.Z.INVALIDATE:I.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(No){uc(No)},onKeyDown:Wc},Ql));return M.createElement(ue.Provider,{value:Yu},M.createElement(T.Provider,{value:ri},M.createElement(W,{prefixCls:lr,rootClassName:Pr,mode:Ac,openKeys:Da,rtl:la,disabled:Ci,motion:Hl?Is:null,defaultMotions:Hl?za:null,activeKey:Cs,onActive:Vc,onInactive:Xs,selectedKeys:eA,inlineIndent:Fa,subMenuOpenDelay:Ni,subMenuCloseDelay:si,forceSubMenuRender:pn,builtinPlacements:Bo,triggerSubMenuAction:Io,getPopupContainer:$s,itemIcon:Po,expandIcon:Ns,onItemClick:ru,onOpenChange:jA},M.createElement(Ue.Provider,{value:jo},Fd),M.createElement("div",{style:{display:"none"},"aria-hidden":!0},M.createElement(se.Provider,{value:mo},Zs)))))}),di=Qn,Nn=di;Nn.Item=ln,Nn.SubMenu=Dt,Nn.ItemGroup=an,Nn.Divider=jr;var Gn=Nn},83836:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Te}});var me=x(54476),Ae=x(33885),P=x(42978),De=x(75931),te=x(59301),V=x(92310),S=x.n(V),g=x(29301),I=x(34280),v=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],z=void 0;function E(ve,Fe){var de=ve.prefixCls,Ee=ve.invalidate,tt=ve.item,it=ve.renderItem,Je=ve.responsive,et=ve.responsiveDisabled,Bt=ve.registerSize,Lt=ve.itemKey,Nt=ve.className,ur=ve.style,ar=ve.children,Cr=ve.display,sr=ve.order,G=ve.component,ft=G===void 0?"div":G,F=(0,De.Z)(ve,v),m=Je&&!Cr;function d(ie){Bt(Lt,ie)}te.useEffect(function(){return function(){d(null)}},[]);var C=it&&tt!==z?it(tt,{index:sr}):ar,re;Ee||(re={opacity:m?0:1,height:m?0:z,overflowY:m?"hidden":z,order:Je?sr:z,pointerEvents:m?"none":z,position:m?"absolute":z});var Be={};m&&(Be["aria-hidden"]=!0);var H=te.createElement(ft,(0,me.Z)({className:S()(!Ee&&de,Nt),style:(0,Ae.Z)((0,Ae.Z)({},re),ur)},Be,F,{ref:Fe}),C);return Je&&(H=te.createElement(g.Z,{onResize:function(Qe){var xe=Qe.offsetWidth;d(xe)},disabled:et},H)),H}var M=te.forwardRef(E);M.displayName="Item";var N=M,T=x(6089),L=x(4676),ee=x(16089);function R(ve){if(typeof MessageChannel=="undefined")(0,ee.Z)(ve);else{var Fe=new MessageChannel;Fe.port1.onmessage=function(){return ve()},Fe.port2.postMessage(void 0)}}function le(){var ve=te.useRef(null),Fe=function(Ee){ve.current||(ve.current=[],R(function(){(0,L.unstable_batchedUpdates)(function(){ve.current.forEach(function(tt){tt()}),ve.current=null})})),ve.current.push(Ee)};return Fe}function X(ve,Fe){var de=te.useState(Fe),Ee=(0,P.Z)(de,2),tt=Ee[0],it=Ee[1],Je=(0,T.Z)(function(et){ve(function(){it(et)})});return[tt,Je]}var q=te.createContext(null),W=["component"],K=["className"],se=["className"],fe=function(Fe,de){var Ee=te.useContext(q);if(!Ee){var tt=Fe.component,it=tt===void 0?"div":tt,Je=(0,De.Z)(Fe,W);return te.createElement(it,(0,me.Z)({},Je,{ref:de}))}var et=Ee.className,Bt=(0,De.Z)(Ee,K),Lt=Fe.className,Nt=(0,De.Z)(Fe,se);return te.createElement(q.Provider,{value:null},te.createElement(N,(0,me.Z)({ref:de,className:S()(et,Lt)},Bt,Nt)))},Oe=te.forwardRef(fe);Oe.displayName="RawItem";var Se=Oe,Ue=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],J="responsive",ue="invalidate";function D(ve){return"+ ".concat(ve.length," ...")}function Ve(ve,Fe){var de=ve.prefixCls,Ee=de===void 0?"rc-overflow":de,tt=ve.data,it=tt===void 0?[]:tt,Je=ve.renderItem,et=ve.renderRawItem,Bt=ve.itemKey,Lt=ve.itemWidth,Nt=Lt===void 0?10:Lt,ur=ve.ssr,ar=ve.style,Cr=ve.className,sr=ve.maxCount,G=ve.renderRest,ft=ve.renderRawRest,F=ve.prefix,m=ve.suffix,d=ve.component,C=d===void 0?"div":d,re=ve.itemComponent,Be=ve.onVisibleChange,H=(0,De.Z)(ve,Ue),ie=ur==="full",Qe=le(),xe=X(Qe,null),ye=(0,P.Z)(xe,2),je=ye[0],xt=ye[1],he=je||0,st=X(Qe,new Map),Ye=(0,P.Z)(st,2),Ie=Ye[0],Le=Ye[1],ct=X(Qe,0),Ut=(0,P.Z)(ct,2),kt=Ut[0],tr=Ut[1],Dr=X(Qe,0),fr=(0,P.Z)(Dr,2),Fr=fr[0],Lr=fr[1],mr=X(Qe,0),cr=(0,P.Z)(mr,2),Kr=cr[0],fn=cr[1],_n=X(Qe,0),ln=(0,P.Z)(_n,2),xn=ln[0],oi=ln[1],_r=(0,te.useState)(null),Ai=(0,P.Z)(_r,2),Oi=Ai[0],mi=Ai[1],Wi=(0,te.useState)(null),Gi=(0,P.Z)(Wi,2),ta=Gi[0],_o=Gi[1],ra=te.useMemo(function(){return ta===null&&ie?Number.MAX_SAFE_INTEGER:ta||0},[ta,je]),bi=(0,te.useState)(!1),Ki=(0,P.Z)(bi,2),sa=Ki[0],be=Ki[1],Ne="".concat(Ee,"-item"),ke=Math.max(kt,Fr),Xe=sr===J,Pt=it.length&&Xe,Dt=sr===ue,Er=Pt||typeof sr=="number"&&it.length>sr,rr=(0,te.useMemo)(function(){var or=it;return Pt?je===null&&ie?or=it:or=it.slice(0,Math.min(it.length,he/Nt)):typeof sr=="number"&&(or=it.slice(0,sr)),or},[it,Nt,je,sr,Pt]),Nr=(0,te.useMemo)(function(){return Pt?it.slice(ra+1):it.slice(rr.length)},[it,rr,Pt,ra]),Hr=(0,te.useCallback)(function(or,lr){var Pr;return typeof Bt=="function"?Bt(or):(Pr=Bt&&(or==null?void 0:or[Bt]))!==null&&Pr!==void 0?Pr:lr},[Bt]),an=(0,te.useCallback)(Je||function(or){return or},[Je]);function jr(or,lr,Pr){ta===or&&(lr===void 0||lr===Oi)||(_o(or),Pr||(be(or<it.length-1),Be==null||Be(or)),lr!==void 0&&mi(lr))}function Rr(or,lr){xt(lr.clientWidth)}function en(or,lr){Le(function(Pr){var yn=new Map(Pr);return lr===null?yn.delete(or):yn.set(or,lr),yn})}function wn(or,lr){Lr(lr),tr(Fr)}function on(or,lr){fn(lr)}function On(or,lr){oi(lr)}function Qn(or){return Ie.get(Hr(rr[or],or))}(0,I.Z)(function(){if(he&&typeof ke=="number"&&rr){var or=Kr+xn,lr=rr.length,Pr=lr-1;if(!lr){jr(0,null);return}for(var yn=0;yn<lr;yn+=1){var Bn=Qn(yn);if(ie&&(Bn=Bn||0),Bn===void 0){jr(yn-1,void 0,!0);break}if(or+=Bn,Pr===0&&or<=he||yn===Pr-1&&or+Qn(Pr)<=he){jr(Pr,null);break}else if(or+ke>he){jr(yn-1,or-Bn-xn+Fr);break}}m&&Qn(0)+xn>he&&mi(null)}},[he,Ie,Fr,Kr,xn,Hr,rr]);var di=sa&&!!Nr.length,Nn={};Oi!==null&&Pt&&(Nn={position:"absolute",left:Oi,top:0});var Gn={prefixCls:Ne,responsive:Pt,component:re,invalidate:Dt},Vt=et?function(or,lr){var Pr=Hr(or,lr);return te.createElement(q.Provider,{key:Pr,value:(0,Ae.Z)((0,Ae.Z)({},Gn),{},{order:lr,item:or,itemKey:Pr,registerSize:en,display:lr<=ra})},et(or,lr))}:function(or,lr){var Pr=Hr(or,lr);return te.createElement(N,(0,me.Z)({},Gn,{order:lr,key:Pr,item:or,renderItem:an,itemKey:Pr,registerSize:en,display:lr<=ra}))},Xt={order:di?ra:Number.MAX_SAFE_INTEGER,className:"".concat(Ne,"-rest"),registerSize:wn,display:di},Yt=G||D,er=ft?te.createElement(q.Provider,{value:(0,Ae.Z)((0,Ae.Z)({},Gn),Xt)},ft(Nr)):te.createElement(N,(0,me.Z)({},Gn,Xt),typeof Yt=="function"?Yt(Nr):Yt),jt=te.createElement(C,(0,me.Z)({className:S()(!Dt&&Ee,Cr),style:ar,ref:Fe},H),F&&te.createElement(N,(0,me.Z)({},Gn,{responsive:Xe,responsiveDisabled:!Pt,order:-1,className:"".concat(Ne,"-prefix"),registerSize:on,display:!0}),F),rr.map(Vt),Er?er:null,m&&te.createElement(N,(0,me.Z)({},Gn,{responsive:Xe,responsiveDisabled:!Pt,order:ra,className:"".concat(Ne,"-suffix"),registerSize:On,display:!0,style:Nn}),m));return Xe?te.createElement(g.Z,{onResize:Rr,disabled:!Pt},jt):jt}var Me=te.forwardRef(Ve);Me.displayName="Overflow",Me.Item=Se,Me.RESPONSIVE=J,Me.INVALIDATE=ue;var we=Me,Te=we},17115:function(un,Tt,x){"use strict";x.d(Tt,{ZP:function(){return S}});var me=x(42978),Ae=x(59301),P=x(47273),De=0,te=(0,P.Z)();function V(){var g;return te?(g=De,De+=1):g="TEST_OR_SSR",g}function S(g){var I=Ae.useState(),v=(0,me.Z)(I,2),z=v[0],E=v[1];return Ae.useEffect(function(){E("rc_select_".concat(V()))},[]),g||z}},77861:function(un,Tt,x){"use strict";x.d(Tt,{Ac:function(){return je},Xo:function(){return Fr},Wx:function(){return mr},ZP:function(){return Ne},lk:function(){return q}});var me=x(54476),Ae=x(94480),P=x(20068),De=x(33885),te=x(42978),V=x(75931),S=x(76190),g=x(18929),I=x(48736),v=x(59301),z=x(92310),E=x.n(z),M=x(34280),N=x(49658),T=x(10228),L=x(8654),ee=function(Xe){var Pt=Xe.className,Dt=Xe.customizeIcon,Er=Xe.customizeIconProps,rr=Xe.onMouseDown,Nr=Xe.onClick,Hr=Xe.children,an;return typeof Dt=="function"?an=Dt(Er):an=Dt,v.createElement("span",{className:Pt,onMouseDown:function(Rr){Rr.preventDefault(),rr&&rr(Rr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Nr,"aria-hidden":!0},an!==void 0?an:v.createElement("span",{className:E()(Pt.split(/\s+/).map(function(jr){return"".concat(jr,"-icon")}))},Hr))},R=ee;function le(ke,Xe,Pt,Dt,Er){var rr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Nr=arguments.length>6?arguments[6]:void 0,Hr=arguments.length>7?arguments[7]:void 0,an=v.useMemo(function(){if((0,S.Z)(Dt)==="object")return Dt.clearIcon;if(Er)return Er},[Dt,Er]),jr=v.useMemo(function(){return!!(!rr&&Dt&&(Pt.length||Nr)&&!(Hr==="combobox"&&Nr===""))},[Dt,rr,Pt.length,Nr,Hr]);return{allowClear:jr,clearIcon:v.createElement(R,{className:"".concat(ke,"-clear"),onMouseDown:Xe,customizeIcon:an},"\xD7")}}var X=v.createContext(null);function q(){return v.useContext(X)}function W(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Xe=v.useState(!1),Pt=(0,te.Z)(Xe,2),Dt=Pt[0],Er=Pt[1],rr=v.useRef(null),Nr=function(){window.clearTimeout(rr.current)};v.useEffect(function(){return Nr},[]);var Hr=function(jr,Rr){Nr(),rr.current=window.setTimeout(function(){Er(jr),Rr&&Rr()},ke)};return[Dt,Hr,Nr]}function K(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Xe=v.useRef(null),Pt=v.useRef(null);v.useEffect(function(){return function(){window.clearTimeout(Pt.current)}},[]);function Dt(Er){(Er||Xe.current===null)&&(Xe.current=Er),window.clearTimeout(Pt.current),Pt.current=window.setTimeout(function(){Xe.current=null},ke)}return[function(){return Xe.current},Dt]}function se(ke,Xe,Pt,Dt){var Er=v.useRef(null);Er.current={open:Xe,triggerOpen:Pt,customizedTrigger:Dt},v.useEffect(function(){function rr(Nr){var Hr;if(!((Hr=Er.current)!==null&&Hr!==void 0&&Hr.customizedTrigger)){var an=Nr.target;an.shadowRoot&&Nr.composed&&(an=Nr.composedPath()[0]||an),Er.current.open&&ke().filter(function(jr){return jr}).every(function(jr){return!jr.contains(an)&&jr!==an})&&Er.current.triggerOpen(!1)}}return window.addEventListener("mousedown",rr),function(){return window.removeEventListener("mousedown",rr)}},[])}var fe=x(26112),Oe=x(83836),Se=function(Xe,Pt){var Dt,Er,rr=Xe.prefixCls,Nr=Xe.id,Hr=Xe.inputElement,an=Xe.disabled,jr=Xe.tabIndex,Rr=Xe.autoFocus,en=Xe.autoComplete,wn=Xe.editable,on=Xe.activeDescendantId,On=Xe.value,Qn=Xe.maxLength,di=Xe.onKeyDown,Nn=Xe.onMouseDown,Gn=Xe.onChange,Vt=Xe.onPaste,Xt=Xe.onCompositionStart,Yt=Xe.onCompositionEnd,er=Xe.open,jt=Xe.attrs,or=Hr||v.createElement("input",null),lr=or,Pr=lr.ref,yn=lr.props,Bn=yn.onKeyDown,li=yn.onChange,ti=yn.onMouseDown,Si=yn.onCompositionStart,Yn=yn.onCompositionEnd,jn=yn.style;return(0,I.Kp)(!("maxLength"in or.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),or=v.cloneElement(or,(0,De.Z)((0,De.Z)((0,De.Z)({type:"search"},yn),{},{id:Nr,ref:(0,L.sQ)(Pt,Pr),disabled:an,tabIndex:jr,autoComplete:en||"off",autoFocus:Rr,className:E()("".concat(rr,"-selection-search-input"),(Dt=or)===null||Dt===void 0||(Er=Dt.props)===null||Er===void 0?void 0:Er.className),role:"combobox","aria-label":"Search","aria-expanded":er||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Nr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Nr,"_list"),"aria-activedescendant":er?on:void 0},jt),{},{value:wn?On:"",maxLength:Qn,readOnly:!wn,unselectable:wn?null:"on",style:(0,De.Z)((0,De.Z)({},jn),{},{opacity:wn?null:0}),onKeyDown:function(yi){di(yi),Bn&&Bn(yi)},onMouseDown:function(yi){Nn(yi),ti&&ti(yi)},onChange:function(yi){Gn(yi),li&&li(yi)},onCompositionStart:function(yi){Xt(yi),Si&&Si(yi)},onCompositionEnd:function(yi){Yt(yi),Yn&&Yn(yi)},onPaste:Vt})),or},Ue=v.forwardRef(Se);Ue.displayName="Input";var J=Ue;function ue(ke){return Array.isArray(ke)?ke:ke!==void 0?[ke]:[]}var D=typeof window!="undefined"&&window.document&&window.document.documentElement,Ve=D;function Me(ke){return ke!=null}function we(ke){return!ke&&ke!==0}function Te(ke){return["string","number"].includes((0,S.Z)(ke))}function ve(ke){var Xe=void 0;return ke&&(Te(ke.title)?Xe=ke.title.toString():Te(ke.label)&&(Xe=ke.label.toString())),Xe}function Fe(ke,Xe){Ve?v.useLayoutEffect(ke,Xe):v.useEffect(ke,Xe)}function de(ke){var Xe;return(Xe=ke.key)!==null&&Xe!==void 0?Xe:ke.value}var Ee=function(Xe){Xe.preventDefault(),Xe.stopPropagation()},tt=function(Xe){var Pt=Xe.id,Dt=Xe.prefixCls,Er=Xe.values,rr=Xe.open,Nr=Xe.searchValue,Hr=Xe.autoClearSearchValue,an=Xe.inputRef,jr=Xe.placeholder,Rr=Xe.disabled,en=Xe.mode,wn=Xe.showSearch,on=Xe.autoFocus,On=Xe.autoComplete,Qn=Xe.activeDescendantId,di=Xe.tabIndex,Nn=Xe.removeIcon,Gn=Xe.maxTagCount,Vt=Xe.maxTagTextLength,Xt=Xe.maxTagPlaceholder,Yt=Xt===void 0?function(Xi){return"+ ".concat(Xi.length," ...")}:Xt,er=Xe.tagRender,jt=Xe.onToggleOpen,or=Xe.onRemove,lr=Xe.onInputChange,Pr=Xe.onInputPaste,yn=Xe.onInputKeyDown,Bn=Xe.onInputMouseDown,li=Xe.onInputCompositionStart,ti=Xe.onInputCompositionEnd,Si=v.useRef(null),Yn=(0,v.useState)(0),jn=(0,te.Z)(Yn,2),wi=jn[0],yi=jn[1],xi=(0,v.useState)(!1),ci=(0,te.Z)(xi,2),Ci=ci[0],$i=ci[1],ei="".concat(Dt,"-selection"),Ni=rr||en==="multiple"&&Hr===!1||en==="tags"?Nr:"",Ha=en==="tags"||en==="multiple"&&Hr===!1||wn&&(rr||Ci);Fe(function(){yi(Si.current.scrollWidth)},[Ni]);function si(Xi,Ii,Ua,Aa,Co){return v.createElement("span",{className:E()("".concat(ei,"-item"),(0,P.Z)({},"".concat(ei,"-item-disabled"),Ua)),title:ve(Xi)},v.createElement("span",{className:"".concat(ei,"-item-content")},Ii),Aa&&v.createElement(R,{className:"".concat(ei,"-item-remove"),onMouseDown:Ee,onClick:Co,customizeIcon:Nn},"\xD7"))}function pn(Xi,Ii,Ua,Aa,Co){var Vn=function(Li){Ee(Li),jt(!rr)};return v.createElement("span",{onMouseDown:Vn},er({label:Ii,value:Xi,disabled:Ua,closable:Aa,onClose:Co}))}function cn(Xi){var Ii=Xi.disabled,Ua=Xi.label,Aa=Xi.value,Co=!Rr&&!Ii,Vn=Ua;if(typeof Vt=="number"&&(typeof Ua=="string"||typeof Ua=="number")){var Mn=String(Vn);Mn.length>Vt&&(Vn="".concat(Mn.slice(0,Vt),"..."))}var Li=function(Fa){Fa&&Fa.stopPropagation(),or(Xi)};return typeof er=="function"?pn(Aa,Vn,Ii,Co,Li):si(Xi,Vn,Ii,Co,Li)}function Xn(Xi){var Ii=typeof Yt=="function"?Yt(Xi):Yt;return si({title:Ii},Ii,!1)}var Kn=v.createElement("div",{className:"".concat(ei,"-search"),style:{width:wi},onFocus:function(){$i(!0)},onBlur:function(){$i(!1)}},v.createElement(J,{ref:an,open:rr,prefixCls:Dt,id:Pt,inputElement:null,disabled:Rr,autoFocus:on,autoComplete:On,editable:Ha,activeDescendantId:Qn,value:Ni,onKeyDown:yn,onMouseDown:Bn,onChange:lr,onPaste:Pr,onCompositionStart:li,onCompositionEnd:ti,tabIndex:di,attrs:(0,fe.Z)(Xe,!0)}),v.createElement("span",{ref:Si,className:"".concat(ei,"-search-mirror"),"aria-hidden":!0},Ni,"\xA0")),fi=v.createElement(Oe.Z,{prefixCls:"".concat(ei,"-overflow"),data:Er,renderItem:cn,renderRest:Xn,suffix:Kn,itemKey:de,maxCount:Gn});return v.createElement(v.Fragment,null,fi,!Er.length&&!Ni&&v.createElement("span",{className:"".concat(ei,"-placeholder")},jr))},it=tt,Je=function(Xe){var Pt=Xe.inputElement,Dt=Xe.prefixCls,Er=Xe.id,rr=Xe.inputRef,Nr=Xe.disabled,Hr=Xe.autoFocus,an=Xe.autoComplete,jr=Xe.activeDescendantId,Rr=Xe.mode,en=Xe.open,wn=Xe.values,on=Xe.placeholder,On=Xe.tabIndex,Qn=Xe.showSearch,di=Xe.searchValue,Nn=Xe.activeValue,Gn=Xe.maxLength,Vt=Xe.onInputKeyDown,Xt=Xe.onInputMouseDown,Yt=Xe.onInputChange,er=Xe.onInputPaste,jt=Xe.onInputCompositionStart,or=Xe.onInputCompositionEnd,lr=Xe.title,Pr=v.useState(!1),yn=(0,te.Z)(Pr,2),Bn=yn[0],li=yn[1],ti=Rr==="combobox",Si=ti||Qn,Yn=wn[0],jn=di||"";ti&&Nn&&!Bn&&(jn=Nn),v.useEffect(function(){ti&&li(!1)},[ti,Nn]);var wi=Rr!=="combobox"&&!en&&!Qn?!1:!!jn,yi=lr===void 0?ve(Yn):lr,xi=function(){if(Yn)return null;var Ci=wi?{visibility:"hidden"}:void 0;return v.createElement("span",{className:"".concat(Dt,"-selection-placeholder"),style:Ci},on)};return v.createElement(v.Fragment,null,v.createElement("span",{className:"".concat(Dt,"-selection-search")},v.createElement(J,{ref:rr,prefixCls:Dt,id:Er,open:en,inputElement:Pt,disabled:Nr,autoFocus:Hr,autoComplete:an,editable:Si,activeDescendantId:jr,value:jn,onKeyDown:Vt,onMouseDown:Xt,onChange:function(Ci){li(!0),Yt(Ci)},onPaste:er,onCompositionStart:jt,onCompositionEnd:or,tabIndex:On,attrs:(0,fe.Z)(Xe,!0),maxLength:ti?Gn:void 0})),!ti&&Yn?v.createElement("span",{className:"".concat(Dt,"-selection-item"),title:yi,style:wi?{visibility:"hidden"}:void 0},Yn.label):null,xi())},et=Je;function Bt(ke){return![T.Z.ESC,T.Z.SHIFT,T.Z.BACKSPACE,T.Z.TAB,T.Z.WIN_KEY,T.Z.ALT,T.Z.META,T.Z.WIN_KEY_RIGHT,T.Z.CTRL,T.Z.SEMICOLON,T.Z.EQUALS,T.Z.CAPS_LOCK,T.Z.CONTEXT_MENU,T.Z.F1,T.Z.F2,T.Z.F3,T.Z.F4,T.Z.F5,T.Z.F6,T.Z.F7,T.Z.F8,T.Z.F9,T.Z.F10,T.Z.F11,T.Z.F12].includes(ke)}var Lt=function(Xe,Pt){var Dt=(0,v.useRef)(null),Er=(0,v.useRef)(!1),rr=Xe.prefixCls,Nr=Xe.open,Hr=Xe.mode,an=Xe.showSearch,jr=Xe.tokenWithEnter,Rr=Xe.autoClearSearchValue,en=Xe.onSearch,wn=Xe.onSearchSubmit,on=Xe.onToggleOpen,On=Xe.onInputKeyDown,Qn=Xe.domRef;v.useImperativeHandle(Pt,function(){return{focus:function(){Dt.current.focus()},blur:function(){Dt.current.blur()}}});var di=K(0),Nn=(0,te.Z)(di,2),Gn=Nn[0],Vt=Nn[1],Xt=function(jn){var wi=jn.which;(wi===T.Z.UP||wi===T.Z.DOWN)&&jn.preventDefault(),On&&On(jn),wi===T.Z.ENTER&&Hr==="tags"&&!Er.current&&!Nr&&(wn==null||wn(jn.target.value)),Bt(wi)&&on(!0)},Yt=function(){Vt(!0)},er=(0,v.useRef)(null),jt=function(jn){en(jn,!0,Er.current)!==!1&&on(!0)},or=function(){Er.current=!0},lr=function(jn){Er.current=!1,Hr!=="combobox"&&jt(jn.target.value)},Pr=function(jn){var wi=jn.target.value;if(jr&&er.current&&/[\r\n]/.test(er.current)){var yi=er.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");wi=wi.replace(yi,er.current)}er.current=null,jt(wi)},yn=function(jn){var wi=jn.clipboardData,yi=wi.getData("text");er.current=yi},Bn=function(jn){var wi=jn.target;if(wi!==Dt.current){var yi=document.body.style.msTouchAction!==void 0;yi?setTimeout(function(){Dt.current.focus()}):Dt.current.focus()}},li=function(jn){var wi=Gn();jn.target!==Dt.current&&!wi&&Hr!=="combobox"&&jn.preventDefault(),(Hr!=="combobox"&&(!an||!wi)||!Nr)&&(Nr&&Rr!==!1&&en("",!0,!1),on())},ti={inputRef:Dt,onInputKeyDown:Xt,onInputMouseDown:Yt,onInputChange:Pr,onInputPaste:yn,onInputCompositionStart:or,onInputCompositionEnd:lr},Si=Hr==="multiple"||Hr==="tags"?v.createElement(it,(0,me.Z)({},Xe,ti)):v.createElement(et,(0,me.Z)({},Xe,ti));return v.createElement("div",{ref:Qn,className:"".concat(rr,"-selector"),onClick:Bn,onMouseDown:li},Si)},Nt=v.forwardRef(Lt);Nt.displayName="Selector";var ur=Nt,ar=x(35593),Cr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],sr=function(Xe){var Pt=Xe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Pt,adjustY:1},htmlRegion:"scroll"}}},G=function(Xe,Pt){var Dt=Xe.prefixCls,Er=Xe.disabled,rr=Xe.visible,Nr=Xe.children,Hr=Xe.popupElement,an=Xe.animation,jr=Xe.transitionName,Rr=Xe.dropdownStyle,en=Xe.dropdownClassName,wn=Xe.direction,on=wn===void 0?"ltr":wn,On=Xe.placement,Qn=Xe.builtinPlacements,di=Xe.dropdownMatchSelectWidth,Nn=Xe.dropdownRender,Gn=Xe.dropdownAlign,Vt=Xe.getPopupContainer,Xt=Xe.empty,Yt=Xe.getTriggerDOMNode,er=Xe.onPopupVisibleChange,jt=Xe.onPopupMouseEnter,or=(0,V.Z)(Xe,Cr),lr="".concat(Dt,"-dropdown"),Pr=Hr;Nn&&(Pr=Nn(Hr));var yn=v.useMemo(function(){return Qn||sr(di)},[Qn,di]),Bn=an?"".concat(lr,"-").concat(an):jr,li=typeof di=="number",ti=v.useMemo(function(){return li?null:di===!1?"minWidth":"width"},[di,li]),Si=Rr;li&&(Si=(0,De.Z)((0,De.Z)({},Si),{},{width:di}));var Yn=v.useRef(null);return v.useImperativeHandle(Pt,function(){return{getPopupElement:function(){return Yn.current}}}),v.createElement(ar.Z,(0,me.Z)({},or,{showAction:er?["click"]:[],hideAction:er?["click"]:[],popupPlacement:On||(on==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:yn,prefixCls:lr,popupTransitionName:Bn,popup:v.createElement("div",{ref:Yn,onMouseEnter:jt},Pr),stretch:ti,popupAlign:Gn,popupVisible:rr,getPopupContainer:Vt,popupClassName:E()(en,(0,P.Z)({},"".concat(lr,"-empty"),Xt)),popupStyle:Si,getTriggerDOMNode:Yt,onPopupVisibleChange:er}),Nr)},ft=v.forwardRef(G);ft.displayName="SelectTrigger";var F=ft,m=x(66712);function d(ke,Xe){var Pt=ke.key,Dt;return"value"in ke&&(Dt=ke.value),Pt!=null?Pt:Dt!==void 0?Dt:"rc-index-key-".concat(Xe)}function C(ke,Xe){var Pt=ke||{},Dt=Pt.label,Er=Pt.value,rr=Pt.options,Nr=Pt.groupLabel,Hr=Dt||(Xe?"children":"label");return{label:Hr,value:Er||"value",options:rr||"options",groupLabel:Nr||Hr}}function re(ke){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pt=Xe.fieldNames,Dt=Xe.childrenAsData,Er=[],rr=C(Pt,!1),Nr=rr.label,Hr=rr.value,an=rr.options,jr=rr.groupLabel;function Rr(en,wn){en.forEach(function(on){if(wn||!(an in on)){var On=on[Hr];Er.push({key:d(on,Er.length),groupOption:wn,data:on,label:on[Nr],value:On})}else{var Qn=on[jr];Qn===void 0&&Dt&&(Qn=on.label),Er.push({key:d(on,Er.length),group:!0,data:on,label:Qn}),Rr(on[an],!0)}})}return Rr(ke,!1),Er}function Be(ke){var Xe=(0,De.Z)({},ke);return"props"in Xe||Object.defineProperty(Xe,"props",{get:function(){return(0,I.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Xe}}),Xe}function H(ke,Xe){if(!Xe||!Xe.length)return null;var Pt=!1;function Dt(rr,Nr){var Hr=(0,m.Z)(Nr),an=Hr[0],jr=Hr.slice(1);if(!an)return[rr];var Rr=rr.split(an);return Pt=Pt||Rr.length>1,Rr.reduce(function(en,wn){return[].concat((0,Ae.Z)(en),(0,Ae.Z)(Dt(wn,jr)))},[]).filter(function(en){return en})}var Er=Dt(ke,Xe);return Pt?Er:null}var ie=["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"],Qe=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"];function xe(ke){return ke==="tags"||ke==="multiple"}var ye=v.forwardRef(function(ke,Xe){var Pt,Dt,Er=ke.id,rr=ke.prefixCls,Nr=ke.className,Hr=ke.showSearch,an=ke.tagRender,jr=ke.direction,Rr=ke.omitDomProps,en=ke.displayValues,wn=ke.onDisplayValuesChange,on=ke.emptyOptions,On=ke.notFoundContent,Qn=On===void 0?"Not Found":On,di=ke.onClear,Nn=ke.mode,Gn=ke.disabled,Vt=ke.loading,Xt=ke.getInputElement,Yt=ke.getRawInputElement,er=ke.open,jt=ke.defaultOpen,or=ke.onDropdownVisibleChange,lr=ke.activeValue,Pr=ke.onActiveValueChange,yn=ke.activeDescendantId,Bn=ke.searchValue,li=ke.autoClearSearchValue,ti=ke.onSearch,Si=ke.onSearchSplit,Yn=ke.tokenSeparators,jn=ke.allowClear,wi=ke.suffixIcon,yi=ke.clearIcon,xi=ke.OptionList,ci=ke.animation,Ci=ke.transitionName,$i=ke.dropdownStyle,ei=ke.dropdownClassName,Ni=ke.dropdownMatchSelectWidth,Ha=ke.dropdownRender,si=ke.dropdownAlign,pn=ke.placement,cn=ke.builtinPlacements,Xn=ke.getPopupContainer,Kn=ke.showAction,fi=Kn===void 0?[]:Kn,Xi=ke.onFocus,Ii=ke.onBlur,Ua=ke.onKeyUp,Aa=ke.onKeyDown,Co=ke.onMouseDown,Vn=(0,V.Z)(ke,ie),Mn=xe(Nn),Li=(Hr!==void 0?Hr:Mn)||Nn==="combobox",Zi=(0,De.Z)({},Vn);Qe.forEach(function(Ca){delete Zi[Ca]}),Rr==null||Rr.forEach(function(Ca){delete Zi[Ca]});var Fa=v.useState(!1),Is=(0,te.Z)(Fa,2),za=Is[0],fa=Is[1];v.useEffect(function(){fa((0,N.Z)())},[]);var Io=v.useRef(null),Bo=v.useRef(null),Po=v.useRef(null),Ns=v.useRef(null),ho=v.useRef(null),bs=W(),Ps=(0,te.Z)(bs,3),$s=Ps[0],To=Ps[1],Uo=Ps[2];v.useImperativeHandle(Xe,function(){var Ca,ya;return{focus:(Ca=Ns.current)===null||Ca===void 0?void 0:Ca.focus,blur:(ya=Ns.current)===null||ya===void 0?void 0:ya.blur,scrollTo:function(mo){var jo;return(jo=ho.current)===null||jo===void 0?void 0:jo.scrollTo(mo)}}});var ys=v.useMemo(function(){var Ca;if(Nn!=="combobox")return Bn;var ya=(Ca=en[0])===null||Ca===void 0?void 0:Ca.value;return typeof ya=="string"||typeof ya=="number"?String(ya):""},[Bn,Nn,en]),el=Nn==="combobox"&&typeof Xt=="function"&&Xt()||null,vl=typeof Yt=="function"&&Yt(),ic=(0,L.x1)(Bo,vl==null||(Pt=vl.props)===null||Pt===void 0?void 0:Pt.ref),ac=v.useState(!1),Ql=(0,te.Z)(ac,2),Zs=Ql[0],Dc=Ql[1];(0,M.Z)(function(){Dc(!0)},[]);var Kl=(0,g.Z)(!1,{defaultValue:jt,value:er}),Hl=(0,te.Z)(Kl,2),Vs=Hl[0],as=Hl[1],ri=Zs?Vs:!1,la=!Qn&&on;(Gn||la&&ri&&Nn==="combobox")&&(ri=!1);var Yi=la?!1:ri,aa=v.useCallback(function(Ca){var ya=Ca!==void 0?Ca:!ri;Gn||(as(ya),ri!==ya&&(or==null||or(ya)))},[Gn,ri,as,or]),Da=v.useMemo(function(){return(Yn||[]).some(function(Ca){return[`
`,`\r
`].includes(Ca)})},[Yn]),oo=function(ya,ts,mo){var jo=!0,zo=ya;Pr==null||Pr(null);var Oo=mo?null:H(ya,Yn);return Nn!=="combobox"&&Oo&&(zo="",Si==null||Si(Oo),aa(!1),jo=!1),ti&&ys!==zo&&ti(zo,{source:ts?"typing":"effect"}),jo},Ws=function(ya){!ya||!ya.trim()||ti(ya,{source:"submit"})};v.useEffect(function(){!ri&&!Mn&&Nn!=="combobox"&&oo("",!1,!1)},[ri]),v.useEffect(function(){Vs&&Gn&&as(!1),Gn&&To(!1)},[Gn]);var ws=K(),xs=(0,te.Z)(ws,2),ms=xs[0],qa=xs[1],Ra=function(ya){var ts=ms(),mo=ya.which;if(mo===T.Z.ENTER&&(Nn!=="combobox"&&ya.preventDefault(),ri||aa(!0)),qa(!!ys),mo===T.Z.BACKSPACE&&!ts&&Mn&&!ys&&en.length){for(var jo=(0,Ae.Z)(en),zo=null,Oo=jo.length-1;Oo>=0;Oo-=1){var Cs=jo[Oo];if(!Cs.disabled){jo.splice(Oo,1),zo=Cs;break}}zo&&wn(jo,{type:"remove",values:[zo]})}for(var oc=arguments.length,Vc=new Array(oc>1?oc-1:0),Xs=1;Xs<oc;Xs++)Vc[Xs-1]=arguments[Xs];if(ri&&ho.current){var bA;(bA=ho.current).onKeyDown.apply(bA,[ya].concat(Vc))}Aa==null||Aa.apply(void 0,[ya].concat(Vc))},os=function(ya){for(var ts=arguments.length,mo=new Array(ts>1?ts-1:0),jo=1;jo<ts;jo++)mo[jo-1]=arguments[jo];if(ri&&ho.current){var zo;(zo=ho.current).onKeyUp.apply(zo,[ya].concat(mo))}Ua==null||Ua.apply(void 0,[ya].concat(mo))},ss=function(ya){var ts=en.filter(function(mo){return mo!==ya});wn(ts,{type:"remove",values:[ya]})},Fs=v.useRef(!1),Go=function(){To(!0),Gn||(Xi&&!Fs.current&&Xi.apply(void 0,arguments),fi.includes("focus")&&aa(!0)),Fs.current=!0},Fo=function(){To(!1,function(){Fs.current=!1,aa(!1)}),!Gn&&(ys&&(Nn==="tags"?ti(ys,{source:"submit"}):Nn==="multiple"&&ti("",{source:"blur"})),Ii&&Ii.apply(void 0,arguments))},pA=[];v.useEffect(function(){return function(){pA.forEach(function(Ca){return clearTimeout(Ca)}),pA.splice(0,pA.length)}},[]);var tu=function(ya){var ts,mo=ya.target,jo=(ts=Po.current)===null||ts===void 0?void 0:ts.getPopupElement();if(jo&&jo.contains(mo)){var zo=setTimeout(function(){var Vc=pA.indexOf(zo);if(Vc!==-1&&pA.splice(Vc,1),Uo(),!za&&!jo.contains(document.activeElement)){var Xs;(Xs=Ns.current)===null||Xs===void 0||Xs.focus()}});pA.push(zo)}for(var Oo=arguments.length,Cs=new Array(Oo>1?Oo-1:0),oc=1;oc<Oo;oc++)Cs[oc-1]=arguments[oc];Co==null||Co.apply(void 0,[ya].concat(Cs))},Ac=v.useState({}),mA=(0,te.Z)(Ac,2),ll=mA[1];function gA(){ll({})}var tl;vl&&(tl=function(ya){aa(ya)}),se(function(){var Ca;return[Io.current,(Ca=Po.current)===null||Ca===void 0?void 0:Ca.getPopupElement()]},Yi,aa,!!vl);var gs=v.useMemo(function(){return(0,De.Z)((0,De.Z)({},ke),{},{notFoundContent:Qn,open:ri,triggerOpen:Yi,id:Er,showSearch:Li,multiple:Mn,toggleOpen:aa})},[ke,Qn,Yi,ri,Er,Li,Mn,aa]),qc=!!wi||Vt,Ts;qc&&(Ts=v.createElement(R,{className:E()("".concat(rr,"-arrow"),(0,P.Z)({},"".concat(rr,"-arrow-loading"),Vt)),customizeIcon:wi,customizeIconProps:{loading:Vt,searchValue:ys,open:ri,focused:$s,showSearch:Li}}));var NA=function(){var ya;di==null||di(),(ya=Ns.current)===null||ya===void 0||ya.focus(),wn([],{type:"clear",values:en}),oo("",!1,!1)},uc=le(rr,NA,en,jn,yi,Gn,ys,Nn),jl=uc.allowClear,eo=uc.clearIcon,Gs=v.createElement(xi,{ref:ho}),vA=E()(rr,Nr,(Dt={},(0,P.Z)(Dt,"".concat(rr,"-focused"),$s),(0,P.Z)(Dt,"".concat(rr,"-multiple"),Mn),(0,P.Z)(Dt,"".concat(rr,"-single"),!Mn),(0,P.Z)(Dt,"".concat(rr,"-allow-clear"),jn),(0,P.Z)(Dt,"".concat(rr,"-show-arrow"),qc),(0,P.Z)(Dt,"".concat(rr,"-disabled"),Gn),(0,P.Z)(Dt,"".concat(rr,"-loading"),Vt),(0,P.Z)(Dt,"".concat(rr,"-open"),ri),(0,P.Z)(Dt,"".concat(rr,"-customize-input"),el),(0,P.Z)(Dt,"".concat(rr,"-show-search"),Li),Dt)),Su=v.createElement(F,{ref:Po,disabled:Gn,prefixCls:rr,visible:Yi,popupElement:Gs,animation:ci,transitionName:Ci,dropdownStyle:$i,dropdownClassName:ei,direction:jr,dropdownMatchSelectWidth:Ni,dropdownRender:Ha,dropdownAlign:si,placement:pn,builtinPlacements:cn,getPopupContainer:Xn,empty:on,getTriggerDOMNode:function(){return Bo.current},onPopupVisibleChange:tl,onPopupMouseEnter:gA},vl?v.cloneElement(vl,{ref:ic}):v.createElement(ur,(0,me.Z)({},ke,{domRef:Bo,prefixCls:rr,inputElement:el,ref:Ns,id:Er,showSearch:Li,autoClearSearchValue:li,mode:Nn,activeDescendantId:yn,tagRender:an,values:en,open:ri,onToggleOpen:aa,activeValue:lr,searchValue:ys,onSearch:oo,onSearchSubmit:Ws,onRemove:ss,tokenWithEnter:Da}))),ls;return vl?ls=Su:ls=v.createElement("div",(0,me.Z)({className:vA},Zi,{ref:Io,onMouseDown:tu,onKeyDown:Ra,onKeyUp:os,onFocus:Go,onBlur:Fo}),$s&&!ri&&v.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(en.map(function(Ca){var ya=Ca.label,ts=Ca.value;return["number","string"].includes((0,S.Z)(ya))?ya:ts}).join(", "))),Su,Ts,jl&&eo),v.createElement(X.Provider,{value:gs},ls)}),je=ye,xt=function(ke,Xe){var Pt=v.useRef({values:new Map,options:new Map}),Dt=v.useMemo(function(){var rr=Pt.current,Nr=rr.values,Hr=rr.options,an=ke.map(function(en){if(en.label===void 0){var wn;return(0,De.Z)((0,De.Z)({},en),{},{label:(wn=Nr.get(en.value))===null||wn===void 0?void 0:wn.label})}return en}),jr=new Map,Rr=new Map;return an.forEach(function(en){jr.set(en.value,en),Rr.set(en.value,Xe.get(en.value)||Hr.get(en.value))}),Pt.current.values=jr,Pt.current.options=Rr,an},[ke,Xe]),Er=v.useCallback(function(rr){return Xe.get(rr)||Pt.current.options.get(rr)},[Xe]);return[Dt,Er]};function he(ke,Xe){return ue(ke).join("").toUpperCase().includes(Xe)}var st=function(ke,Xe,Pt,Dt,Er){return v.useMemo(function(){if(!Pt||Dt===!1)return ke;var rr=Xe.options,Nr=Xe.label,Hr=Xe.value,an=[],jr=typeof Dt=="function",Rr=Pt.toUpperCase(),en=jr?Dt:function(on,On){return Er?he(On[Er],Rr):On[rr]?he(On[Nr!=="children"?Nr:"label"],Rr):he(On[Hr],Rr)},wn=jr?function(on){return Be(on)}:function(on){return on};return ke.forEach(function(on){if(on[rr]){var On=en(Pt,wn(on));if(On)an.push(on);else{var Qn=on[rr].filter(function(di){return en(Pt,wn(di))});Qn.length&&an.push((0,De.Z)((0,De.Z)({},on),{},(0,P.Z)({},rr,Qn)))}return}en(Pt,wn(on))&&an.push(on)}),an},[ke,Dt,Er,Pt,Xe])},Ye=x(17115),Ie=x(11592),Le=["children","value"],ct=["children"];function Ut(ke){var Xe=ke,Pt=Xe.key,Dt=Xe.props,Er=Dt.children,rr=Dt.value,Nr=(0,V.Z)(Dt,Le);return(0,De.Z)({key:Pt,value:rr!==void 0?rr:Pt,children:Er},Nr)}function kt(ke){var Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ie.Z)(ke).map(function(Pt,Dt){if(!v.isValidElement(Pt)||!Pt.type)return null;var Er=Pt,rr=Er.type.isSelectOptGroup,Nr=Er.key,Hr=Er.props,an=Hr.children,jr=(0,V.Z)(Hr,ct);return Xe||!rr?Ut(Pt):(0,De.Z)((0,De.Z)({key:"__RC_SELECT_GRP__".concat(Nr===null?Dt:Nr,"__"),label:Nr},jr),{},{options:kt(an)})}).filter(function(Pt){return Pt})}function tr(ke,Xe,Pt,Dt,Er){return v.useMemo(function(){var rr=ke,Nr=!ke;Nr&&(rr=kt(Xe));var Hr=new Map,an=new Map,jr=function(wn,on,On){On&&typeof On=="string"&&wn.set(on[On],on)};function Rr(en){for(var wn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on<en.length;on+=1){var On=en[on];!On[Pt.options]||wn?(Hr.set(On[Pt.value],On),jr(an,On,Pt.label),jr(an,On,Dt),jr(an,On,Er)):Rr(On[Pt.options],!0)}}return Rr(rr),{options:rr,valueOptions:Hr,labelOptions:an}},[ke,Xe,Pt,Dt,Er])}function Dr(ke){var Xe=v.useRef();Xe.current=ke;var Pt=v.useCallback(function(){return Xe.current.apply(Xe,arguments)},[]);return Pt}var fr=function(){return null};fr.isSelectOptGroup=!0;var Fr=fr,Lr=function(){return null};Lr.isSelectOption=!0;var mr=Lr,cr=x(80547),Kr=x(2738),fn=x(48911),_n=v.createContext(null),ln=_n;function xn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var oi=["disabled","title","children","style","className"];function _r(ke){return typeof ke=="string"||typeof ke=="number"}var Ai=function(Xe,Pt){var Dt=q(),Er=Dt.prefixCls,rr=Dt.id,Nr=Dt.open,Hr=Dt.multiple,an=Dt.mode,jr=Dt.searchValue,Rr=Dt.toggleOpen,en=Dt.notFoundContent,wn=Dt.onPopupScroll,on=v.useContext(ln),On=on.flattenOptions,Qn=on.onActiveValue,di=on.defaultActiveFirstOption,Nn=on.onSelect,Gn=on.menuItemSelectedIcon,Vt=on.rawValues,Xt=on.fieldNames,Yt=on.virtual,er=on.direction,jt=on.listHeight,or=on.listItemHeight,lr="".concat(Er,"-item"),Pr=(0,cr.Z)(function(){return On},[Nr,On],function(si,pn){return pn[0]&&si[1]!==pn[1]}),yn=v.useRef(null),Bn=function(pn){pn.preventDefault()},li=function(pn){yn.current&&yn.current.scrollTo(typeof pn=="number"?{index:pn}:pn)},ti=function(pn){for(var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xn=Pr.length,Kn=0;Kn<Xn;Kn+=1){var fi=(pn+Kn*cn+Xn)%Xn,Xi=Pr[fi],Ii=Xi.group,Ua=Xi.data;if(!Ii&&!Ua.disabled)return fi}return-1},Si=v.useState(function(){return ti(0)}),Yn=(0,te.Z)(Si,2),jn=Yn[0],wi=Yn[1],yi=function(pn){var cn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;wi(pn);var Xn={source:cn?"keyboard":"mouse"},Kn=Pr[pn];if(!Kn){Qn(null,-1,Xn);return}Qn(Kn.value,pn,Xn)};(0,v.useEffect)(function(){yi(di!==!1?ti(0):-1)},[Pr.length,jr]);var xi=v.useCallback(function(si){return Vt.has(si)&&an!=="combobox"},[an,(0,Ae.Z)(Vt).toString(),Vt.size]);(0,v.useEffect)(function(){var si=setTimeout(function(){if(!Hr&&Nr&&Vt.size===1){var cn=Array.from(Vt)[0],Xn=Pr.findIndex(function(Kn){var fi=Kn.data;return fi.value===cn});Xn!==-1&&(yi(Xn),li(Xn))}});if(Nr){var pn;(pn=yn.current)===null||pn===void 0||pn.scrollTo(void 0)}return function(){return clearTimeout(si)}},[Nr,jr,On.length]);var ci=function(pn){pn!==void 0&&Nn(pn,{selected:!Vt.has(pn)}),Hr||Rr(!1)};if(v.useImperativeHandle(Pt,function(){return{onKeyDown:function(pn){var cn=pn.which,Xn=pn.ctrlKey;switch(cn){case T.Z.N:case T.Z.P:case T.Z.UP:case T.Z.DOWN:{var Kn=0;if(cn===T.Z.UP?Kn=-1:cn===T.Z.DOWN?Kn=1:xn()&&Xn&&(cn===T.Z.N?Kn=1:cn===T.Z.P&&(Kn=-1)),Kn!==0){var fi=ti(jn+Kn,Kn);li(fi),yi(fi,!0)}break}case T.Z.ENTER:{var Xi=Pr[jn];Xi&&!Xi.data.disabled?ci(Xi.value):ci(void 0),Nr&&pn.preventDefault();break}case T.Z.ESC:Rr(!1),Nr&&pn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(pn){li(pn)}}}),Pr.length===0)return v.createElement("div",{role:"listbox",id:"".concat(rr,"_list"),className:"".concat(lr,"-empty"),onMouseDown:Bn},en);var Ci=Object.keys(Xt).map(function(si){return Xt[si]}),$i=function(pn){return pn.label};function ei(si,pn){var cn=si.group;return{role:cn?"presentation":"option",id:"".concat(rr,"_list_").concat(pn)}}var Ni=function(pn){var cn=Pr[pn];if(!cn)return null;var Xn=cn.data||{},Kn=Xn.value,fi=cn.group,Xi=(0,fe.Z)(Xn,!0),Ii=$i(cn);return cn?v.createElement("div",(0,me.Z)({"aria-label":typeof Ii=="string"&&!fi?Ii:null},Xi,{key:pn},ei(cn,pn),{"aria-selected":xi(Kn)}),Kn):null},Ha={role:"listbox",id:"".concat(rr,"_list")};return v.createElement(v.Fragment,null,Yt&&v.createElement("div",(0,me.Z)({},Ha,{style:{height:0,width:0,overflow:"hidden"}}),Ni(jn-1),Ni(jn),Ni(jn+1)),v.createElement(fn.Z,{itemKey:"key",ref:yn,data:Pr,height:jt,itemHeight:or,fullHeight:!1,onMouseDown:Bn,onScroll:wn,virtual:Yt,direction:er,innerProps:Yt?null:Ha},function(si,pn){var cn,Xn=si.group,Kn=si.groupOption,fi=si.data,Xi=si.label,Ii=si.value,Ua=fi.key;if(Xn){var Aa,Co=(Aa=fi.title)!==null&&Aa!==void 0?Aa:_r(Xi)?Xi.toString():void 0;return v.createElement("div",{className:E()(lr,"".concat(lr,"-group")),title:Co},Xi!==void 0?Xi:Ua)}var Vn=fi.disabled,Mn=fi.title,Li=fi.children,Zi=fi.style,Fa=fi.className,Is=(0,V.Z)(fi,oi),za=(0,Kr.Z)(Is,Ci),fa=xi(Ii),Io="".concat(lr,"-option"),Bo=E()(lr,Io,Fa,(cn={},(0,P.Z)(cn,"".concat(Io,"-grouped"),Kn),(0,P.Z)(cn,"".concat(Io,"-active"),jn===pn&&!Vn),(0,P.Z)(cn,"".concat(Io,"-disabled"),Vn),(0,P.Z)(cn,"".concat(Io,"-selected"),fa),cn)),Po=$i(si),Ns=!Gn||typeof Gn=="function"||fa,ho=typeof Po=="number"?Po:Po||Ii,bs=_r(ho)?ho.toString():void 0;return Mn!==void 0&&(bs=Mn),v.createElement("div",(0,me.Z)({},(0,fe.Z)(za),Yt?{}:ei(si,pn),{"aria-selected":fa,className:Bo,title:bs,onMouseMove:function(){jn===pn||Vn||yi(pn)},onClick:function(){Vn||ci(Ii)},style:Zi}),v.createElement("div",{className:"".concat(Io,"-content")},ho),v.isValidElement(Gn)||fa,Ns&&v.createElement(R,{className:"".concat(lr,"-option-state"),customizeIcon:Gn,customizeIconProps:{isSelected:fa}},fa?"\u2713":null))}))},Oi=v.forwardRef(Ai);Oi.displayName="OptionList";var mi=Oi;function Wi(ke){var Xe=ke.mode,Pt=ke.options,Dt=ke.children,Er=ke.backfill,rr=ke.allowClear,Nr=ke.placeholder,Hr=ke.getInputElement,an=ke.showSearch,jr=ke.onSearch,Rr=ke.defaultOpen,en=ke.autoFocus,wn=ke.labelInValue,on=ke.value,On=ke.inputValue,Qn=ke.optionLabelProp,di=isMultiple(Xe),Nn=an!==void 0?an:di||Xe==="combobox",Gn=Pt||convertChildrenToData(Dt);if(warning(Xe!=="tags"||Gn.every(function(er){return!er.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Xe==="tags"||Xe==="combobox"){var Vt=Gn.some(function(er){return er.options?er.options.some(function(jt){return typeof("value"in jt?jt.value:jt.key)=="number"}):typeof("value"in er?er.value:er.key)=="number"});warning(!Vt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Xe!=="combobox"||!Qn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Xe==="combobox"||!Er,"`backfill` only works with `combobox` mode."),warning(Xe==="combobox"||!Hr,"`getInputElement` only work with `combobox` mode."),noteOnce(Xe!=="combobox"||!Hr||!rr||!Nr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),jr&&!Nn&&Xe!=="combobox"&&Xe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Rr||en,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),on!=null){var Xt=toArray(on);warning(!wn||Xt.every(function(er){return _typeof(er)==="object"&&("key"in er||"value"in er)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!di||Array.isArray(on),"`value` should be array when `mode` is `multiple` or `tags`")}if(Dt){var Yt=null;toNodeArray(Dt).some(function(er){if(!React.isValidElement(er)||!er.type)return!1;var jt=er,or=jt.type;if(or.isSelectOption)return!1;if(or.isSelectOptGroup){var lr=toNodeArray(er.props.children).every(function(Pr){return!React.isValidElement(Pr)||!er.type||Pr.type.isSelectOption?!0:(Yt=Pr.type,!1)});return!lr}return Yt=or,!0}),Yt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Yt.displayName||Yt.name||Yt,"`.")),warning(On===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Gi(ke,Xe){if(ke){var Pt=function Dt(Er){for(var rr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nr=0;Nr<Er.length;Nr++){var Hr=Er[Nr];if(Hr[Xe==null?void 0:Xe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!rr&&Array.isArray(Hr[Xe==null?void 0:Xe.options])&&Dt(Hr[Xe==null?void 0:Xe.options],!0))break}};Pt(ke)}}var ta=null,_o=["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"],ra=["inputValue"];function bi(ke){return!ke||(0,S.Z)(ke)!=="object"}var Ki=v.forwardRef(function(ke,Xe){var Pt=ke.id,Dt=ke.mode,Er=ke.prefixCls,rr=Er===void 0?"rc-select":Er,Nr=ke.backfill,Hr=ke.fieldNames,an=ke.inputValue,jr=ke.searchValue,Rr=ke.onSearch,en=ke.autoClearSearchValue,wn=en===void 0?!0:en,on=ke.onSelect,On=ke.onDeselect,Qn=ke.dropdownMatchSelectWidth,di=Qn===void 0?!0:Qn,Nn=ke.filterOption,Gn=ke.filterSort,Vt=ke.optionFilterProp,Xt=ke.optionLabelProp,Yt=ke.options,er=ke.children,jt=ke.defaultActiveFirstOption,or=ke.menuItemSelectedIcon,lr=ke.virtual,Pr=ke.direction,yn=ke.listHeight,Bn=yn===void 0?200:yn,li=ke.listItemHeight,ti=li===void 0?20:li,Si=ke.value,Yn=ke.defaultValue,jn=ke.labelInValue,wi=ke.onChange,yi=(0,V.Z)(ke,_o),xi=(0,Ye.ZP)(Pt),ci=xe(Dt),Ci=!!(!Yt&&er),$i=v.useMemo(function(){return Nn===void 0&&Dt==="combobox"?!1:Nn},[Nn,Dt]),ei=v.useMemo(function(){return C(Hr,Ci)},[JSON.stringify(Hr),Ci]),Ni=(0,g.Z)("",{value:jr!==void 0?jr:an,postState:function(la){return la||""}}),Ha=(0,te.Z)(Ni,2),si=Ha[0],pn=Ha[1],cn=tr(Yt,er,ei,Vt,Xt),Xn=cn.valueOptions,Kn=cn.labelOptions,fi=cn.options,Xi=v.useCallback(function(ri){var la=ue(ri);return la.map(function(Yi){var aa,Da,oo,Ws,ws;if(bi(Yi))aa=Yi;else{var xs;oo=Yi.key,Da=Yi.label,aa=(xs=Yi.value)!==null&&xs!==void 0?xs:oo}var ms=Xn.get(aa);if(ms){var qa;if(Da===void 0&&(Da=ms==null?void 0:ms[Xt||ei.label]),oo===void 0&&(oo=(qa=ms==null?void 0:ms.key)!==null&&qa!==void 0?qa:aa),Ws=ms==null?void 0:ms.disabled,ws=ms==null?void 0:ms.title,0)var Ra}return{label:Da,value:aa,key:oo,disabled:Ws,title:ws}})},[ei,Xt,Xn]),Ii=(0,g.Z)(Yn,{value:Si}),Ua=(0,te.Z)(Ii,2),Aa=Ua[0],Co=Ua[1],Vn=v.useMemo(function(){var ri,la=Xi(Aa);return Dt==="combobox"&&we((ri=la[0])===null||ri===void 0?void 0:ri.value)?[]:la},[Aa,Xi,Dt]),Mn=xt(Vn,Xn),Li=(0,te.Z)(Mn,2),Zi=Li[0],Fa=Li[1],Is=v.useMemo(function(){if(!Dt&&Zi.length===1){var ri=Zi[0];if(ri.value===null&&(ri.label===null||ri.label===void 0))return[]}return Zi.map(function(la){var Yi;return(0,De.Z)((0,De.Z)({},la),{},{label:(Yi=la.label)!==null&&Yi!==void 0?Yi:la.value})})},[Dt,Zi]),za=v.useMemo(function(){return new Set(Zi.map(function(ri){return ri.value}))},[Zi]);v.useEffect(function(){if(Dt==="combobox"){var ri,la=(ri=Zi[0])===null||ri===void 0?void 0:ri.value;pn(Me(la)?String(la):"")}},[Zi]);var fa=Dr(function(ri,la){var Yi,aa=la!=null?la:ri;return Yi={},(0,P.Z)(Yi,ei.value,ri),(0,P.Z)(Yi,ei.label,aa),Yi}),Io=v.useMemo(function(){if(Dt!=="tags")return fi;var ri=(0,Ae.Z)(fi),la=function(aa){return Xn.has(aa)};return(0,Ae.Z)(Zi).sort(function(Yi,aa){return Yi.value<aa.value?-1:1}).forEach(function(Yi){var aa=Yi.value;la(aa)||ri.push(fa(aa,Yi.label))}),ri},[fa,fi,Xn,Zi,Dt]),Bo=st(Io,ei,si,$i,Vt),Po=v.useMemo(function(){return Dt!=="tags"||!si||Bo.some(function(ri){return ri[Vt||"value"]===si})||Bo.some(function(ri){return ri[ei.value]===si})?Bo:[fa(si)].concat((0,Ae.Z)(Bo))},[fa,Vt,Dt,Bo,si,ei]),Ns=v.useMemo(function(){return Gn?(0,Ae.Z)(Po).sort(function(ri,la){return Gn(ri,la)}):Po},[Po,Gn]),ho=v.useMemo(function(){return re(Ns,{fieldNames:ei,childrenAsData:Ci})},[Ns,ei,Ci]),bs=function(la){var Yi=Xi(la);if(Co(Yi),wi&&(Yi.length!==Zi.length||Yi.some(function(oo,Ws){var ws;return((ws=Zi[Ws])===null||ws===void 0?void 0:ws.value)!==(oo==null?void 0:oo.value)}))){var aa=jn?Yi:Yi.map(function(oo){return oo.value}),Da=Yi.map(function(oo){return Be(Fa(oo.value))});wi(ci?aa:aa[0],ci?Da:Da[0])}},Ps=v.useState(null),$s=(0,te.Z)(Ps,2),To=$s[0],Uo=$s[1],ys=v.useState(0),el=(0,te.Z)(ys,2),vl=el[0],ic=el[1],ac=jt!==void 0?jt:Dt!=="combobox",Ql=v.useCallback(function(ri,la){var Yi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},aa=Yi.source,Da=aa===void 0?"keyboard":aa;ic(la),Nr&&Dt==="combobox"&&ri!==null&&Da==="keyboard"&&Uo(String(ri))},[Nr,Dt]),Zs=function(la,Yi,aa){var Da=function(){var Fs,Go=Fa(la);return[jn?{label:Go==null?void 0:Go[ei.label],value:la,key:(Fs=Go==null?void 0:Go.key)!==null&&Fs!==void 0?Fs:la}:la,Be(Go)]};if(Yi&&on){var oo=Da(),Ws=(0,te.Z)(oo,2),ws=Ws[0],xs=Ws[1];on(ws,xs)}else if(!Yi&&On&&aa!=="clear"){var ms=Da(),qa=(0,te.Z)(ms,2),Ra=qa[0],os=qa[1];On(Ra,os)}},Dc=Dr(function(ri,la){var Yi,aa=ci?la.selected:!0;aa?Yi=ci?[].concat((0,Ae.Z)(Zi),[ri]):[ri]:Yi=Zi.filter(function(Da){return Da.value!==ri}),bs(Yi),Zs(ri,aa),Dt==="combobox"?Uo(""):(!xe||wn)&&(pn(""),Uo(""))}),Kl=function(la,Yi){bs(la);var aa=Yi.type,Da=Yi.values;(aa==="remove"||aa==="clear")&&Da.forEach(function(oo){Zs(oo.value,!1,aa)})},Hl=function(la,Yi){if(pn(la),Uo(null),Yi.source==="submit"){var aa=(la||"").trim();if(aa){var Da=Array.from(new Set([].concat((0,Ae.Z)(za),[aa])));bs(Da),Zs(aa,!0),pn("")}return}Yi.source!=="blur"&&(Dt==="combobox"&&bs(la),Rr==null||Rr(la))},Vs=function(la){var Yi=la;Dt!=="tags"&&(Yi=la.map(function(Da){var oo=Kn.get(Da);return oo==null?void 0:oo.value}).filter(function(Da){return Da!==void 0}));var aa=Array.from(new Set([].concat((0,Ae.Z)(za),(0,Ae.Z)(Yi))));bs(aa),aa.forEach(function(Da){Zs(Da,!0)})},as=v.useMemo(function(){var ri=lr!==!1&&di!==!1;return(0,De.Z)((0,De.Z)({},cn),{},{flattenOptions:ho,onActiveValue:Ql,defaultActiveFirstOption:ac,onSelect:Dc,menuItemSelectedIcon:or,rawValues:za,fieldNames:ei,virtual:ri,direction:Pr,listHeight:Bn,listItemHeight:ti,childrenAsData:Ci})},[cn,ho,Ql,ac,Dc,or,za,ei,lr,di,Bn,ti,Ci]);return v.createElement(ln.Provider,{value:as},v.createElement(je,(0,me.Z)({},yi,{id:xi,prefixCls:rr,ref:Xe,omitDomProps:ra,mode:Dt,displayValues:Is,onDisplayValuesChange:Kl,direction:Pr,searchValue:si,onSearch:Hl,autoClearSearchValue:wn,onSearchSplit:Vs,dropdownMatchSelectWidth:di,OptionList:mi,emptyOptions:!ho.length,activeValue:To,activeDescendantId:"".concat(xi,"_list_").concat(vl)})))}),sa=Ki;sa.Option=mr,sa.OptGroup=Fr;var be=sa,Ne=be},9296:function(un,Tt,x){"use strict";x.r(Tt),x.d(Tt,{ResizableTextArea:function(){return Ue},default:function(){return we}});var me=x(54476),Ae=x(33885),P=x(20068),De=x(76190),te=x(42978),V=x(75931),S=x(94480),g=x(92310),I=x.n(g),v=x(93681),z=x(5643),E=x(18929),M=x(59301),N=x(29301),T=x(34280),L=x(16089),ee=`
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;
`,R=["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"],le={},X;function q(Te){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fe=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(ve&&le[Fe])return le[Fe];var de=window.getComputedStyle(Te),Ee=de.getPropertyValue("box-sizing")||de.getPropertyValue("-moz-box-sizing")||de.getPropertyValue("-webkit-box-sizing"),tt=parseFloat(de.getPropertyValue("padding-bottom"))+parseFloat(de.getPropertyValue("padding-top")),it=parseFloat(de.getPropertyValue("border-bottom-width"))+parseFloat(de.getPropertyValue("border-top-width")),Je=R.map(function(Bt){return"".concat(Bt,":").concat(de.getPropertyValue(Bt))}).join(";"),et={sizingStyle:Je,paddingSize:tt,borderSize:it,boxSizing:Ee};return ve&&Fe&&(le[Fe]=et),et}function W(Te){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Fe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,de=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;X||(X=document.createElement("textarea"),X.setAttribute("tab-index","-1"),X.setAttribute("aria-hidden","true"),document.body.appendChild(X)),Te.getAttribute("wrap")?X.setAttribute("wrap",Te.getAttribute("wrap")):X.removeAttribute("wrap");var Ee=q(Te,ve),tt=Ee.paddingSize,it=Ee.borderSize,Je=Ee.boxSizing,et=Ee.sizingStyle;X.setAttribute("style","".concat(et,";").concat(ee)),X.value=Te.value||Te.placeholder||"";var Bt=void 0,Lt=void 0,Nt,ur=X.scrollHeight;if(Je==="border-box"?ur+=it:Je==="content-box"&&(ur-=tt),Fe!==null||de!==null){X.value=" ";var ar=X.scrollHeight-tt;Fe!==null&&(Bt=ar*Fe,Je==="border-box"&&(Bt=Bt+tt+it),ur=Math.max(Bt,ur)),de!==null&&(Lt=ar*de,Je==="border-box"&&(Lt=Lt+tt+it),Nt=ur>Lt?"":"hidden",ur=Math.min(Lt,ur))}var Cr={height:ur,overflowY:Nt,resize:"none"};return Bt&&(Cr.minHeight=Bt),Lt&&(Cr.maxHeight=Lt),Cr}var K=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],se=0,fe=1,Oe=2,Se=M.forwardRef(function(Te,ve){var Fe=Te,de=Fe.prefixCls,Ee=Fe.onPressEnter,tt=Fe.defaultValue,it=Fe.value,Je=Fe.autoSize,et=Fe.onResize,Bt=Fe.className,Lt=Fe.style,Nt=Fe.disabled,ur=Fe.onChange,ar=Fe.onInternalAutoSize,Cr=(0,V.Z)(Fe,K),sr=(0,E.Z)(tt,{value:it,postState:function(Fr){return Fr!=null?Fr:""}}),G=(0,te.Z)(sr,2),ft=G[0],F=G[1],m=function(Fr){F(Fr.target.value),ur==null||ur(Fr)},d=M.useRef();M.useImperativeHandle(ve,function(){return{textArea:d.current}});var C=M.useMemo(function(){return Je&&(0,De.Z)(Je)==="object"?[Je.minRows,Je.maxRows]:[]},[Je]),re=(0,te.Z)(C,2),Be=re[0],H=re[1],ie=!!Je,Qe=function(){try{if(document.activeElement===d.current){var Fr=d.current,Lr=Fr.selectionStart,mr=Fr.selectionEnd,cr=Fr.scrollTop;d.current.setSelectionRange(Lr,mr),d.current.scrollTop=cr}}catch(Kr){}},xe=M.useState(Oe),ye=(0,te.Z)(xe,2),je=ye[0],xt=ye[1],he=M.useState(),st=(0,te.Z)(he,2),Ye=st[0],Ie=st[1],Le=function(){xt(se)};(0,T.Z)(function(){ie&&Le()},[it,Be,H,ie]),(0,T.Z)(function(){if(je===se)xt(fe);else if(je===fe){var fr=W(d.current,!1,Be,H);xt(Oe),Ie(fr)}else Qe()},[je]);var ct=M.useRef(),Ut=function(){L.Z.cancel(ct.current)},kt=function(Fr){je===Oe&&(et==null||et(Fr),Je&&(Ut(),ct.current=(0,L.Z)(function(){Le()})))};M.useEffect(function(){return Ut},[]);var tr=ie?Ye:null,Dr=(0,Ae.Z)((0,Ae.Z)({},Lt),tr);return(je===se||je===fe)&&(Dr.overflowY="hidden",Dr.overflowX="hidden"),M.createElement(N.Z,{onResize:kt,disabled:!(Je||et)},M.createElement("textarea",(0,me.Z)({},Cr,{ref:d,style:Dr,className:I()(de,Bt,(0,P.Z)({},"".concat(de,"-disabled"),Nt)),disabled:Nt,value:ft,onChange:m})))}),Ue=Se,J=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function ue(Te,ve){return(0,S.Z)(Te||"").slice(0,ve).join("")}function D(Te,ve,Fe,de){var Ee=Fe;return Te?Ee=ue(Fe,de):(0,S.Z)(ve||"").length<Fe.length&&(0,S.Z)(Fe||"").length>de&&(Ee=ve),Ee}var Ve=M.forwardRef(function(Te,ve){var Fe,de=Te.defaultValue,Ee=Te.value,tt=Te.onFocus,it=Te.onBlur,Je=Te.onChange,et=Te.allowClear,Bt=Te.maxLength,Lt=Te.onCompositionStart,Nt=Te.onCompositionEnd,ur=Te.suffix,ar=Te.prefixCls,Cr=ar===void 0?"rc-textarea":ar,sr=Te.classes,G=Te.showCount,ft=Te.className,F=Te.style,m=Te.disabled,d=Te.hidden,C=Te.classNames,re=Te.styles,Be=Te.onResize,H=(0,V.Z)(Te,J),ie=(0,E.Z)(de,{value:Ee,defaultValue:de}),Qe=(0,te.Z)(ie,2),xe=Qe[0],ye=Qe[1],je=(0,M.useRef)(null),xt=M.useState(!1),he=(0,te.Z)(xt,2),st=he[0],Ye=he[1],Ie=M.useState(!1),Le=(0,te.Z)(Ie,2),ct=Le[0],Ut=Le[1],kt=M.useRef(),tr=M.useRef(0),Dr=M.useState(null),fr=(0,te.Z)(Dr,2),Fr=fr[0],Lr=fr[1],mr=function(){var bi;(bi=je.current)===null||bi===void 0||bi.textArea.focus()};(0,M.useImperativeHandle)(ve,function(){return{resizableTextArea:je.current,focus:mr,blur:function(){var bi;(bi=je.current)===null||bi===void 0||bi.textArea.blur()}}}),(0,M.useEffect)(function(){Ye(function(ra){return!m&&ra})},[m]);var cr=Number(Bt)>0,Kr=function(bi){Ut(!0),kt.current=xe,tr.current=bi.currentTarget.selectionStart,Lt==null||Lt(bi)},fn=function(bi){Ut(!1);var Ki=bi.currentTarget.value;if(cr){var sa,be=tr.current>=Bt+1||tr.current===((sa=kt.current)===null||sa===void 0?void 0:sa.length);Ki=D(be,kt.current,Ki,Bt)}Ki!==xe&&(ye(Ki),(0,z.rJ)(bi.currentTarget,bi,Je,Ki)),Nt==null||Nt(bi)},_n=function(bi){var Ki=bi.target.value;if(!ct&&cr){var sa=bi.target.selectionStart>=Bt+1||bi.target.selectionStart===Ki.length||!bi.target.selectionStart;Ki=D(sa,xe,Ki,Bt)}ye(Ki),(0,z.rJ)(bi.currentTarget,bi,Je,Ki)},ln=function(bi){var Ki=H.onPressEnter,sa=H.onKeyDown;bi.key==="Enter"&&Ki&&Ki(bi),sa==null||sa(bi)},xn=function(bi){Ye(!0),tt==null||tt(bi)},oi=function(bi){Ye(!1),it==null||it(bi)},_r=function(bi){var Ki;ye(""),mr(),(0,z.rJ)((Ki=je.current)===null||Ki===void 0?void 0:Ki.textArea,bi,Je)},Ai=(0,z.D7)(xe);!ct&&cr&&Ee==null&&(Ai=ue(Ai,Bt));var Oi=ur,mi;if(G){var Wi=(0,S.Z)(Ai).length;(0,De.Z)(G)==="object"?mi=G.formatter({value:Ai,count:Wi,maxLength:Bt}):mi="".concat(Wi).concat(cr?" / ".concat(Bt):""),Oi=M.createElement(M.Fragment,null,Oi,M.createElement("span",{className:I()("".concat(Cr,"-data-count"),C==null?void 0:C.count),style:re==null?void 0:re.count},mi))}var Gi=function(bi){var Ki;Be==null||Be(bi),(Ki=je.current)!==null&&Ki!==void 0&&Ki.textArea.style.height&&Lr(!0)},ta=!H.autoSize&&!G&&!et,_o=M.createElement(v.BaseInput,{value:Ai,allowClear:et,handleReset:_r,suffix:Oi,prefixCls:Cr,classes:{affixWrapper:I()(sr==null?void 0:sr.affixWrapper,(Fe={},(0,P.Z)(Fe,"".concat(Cr,"-show-count"),G),(0,P.Z)(Fe,"".concat(Cr,"-textarea-allow-clear"),et),Fe))},disabled:m,focused:st,className:ft,style:(0,Ae.Z)((0,Ae.Z)({},F),Fr&&!ta?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof mi=="string"?mi:void 0}},hidden:d,inputElement:M.createElement(Ue,(0,me.Z)({},H,{onKeyDown:ln,onChange:_n,onFocus:xn,onBlur:oi,onCompositionStart:Kr,onCompositionEnd:fn,className:C==null?void 0:C.textarea,style:(0,Ae.Z)((0,Ae.Z)({},re==null?void 0:re.textarea),{},{resize:F==null?void 0:F.resize}),disabled:m,prefixCls:Cr,onResize:Gi,ref:je}))});return _o}),Me=Ve,we=Me},39417:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return fe}});var me=x(54476),Ae=x(20068),P=x(75931),De=x(33885),te=x(67732),V=x(83652),S=x(31226),g=x(42403),I=x(158),v=x(92310),z=x.n(v),E=x(26112),M=x(59301),N=x(39378),T=function(Se){for(var Ue=Se.prefixCls,J=Se.level,ue=Se.isStart,D=Se.isEnd,Ve="".concat(Ue,"-indent-unit"),Me=[],we=0;we<J;we+=1){var Te;Me.push(M.createElement("span",{key:we,className:z()(Ve,(Te={},(0,Ae.Z)(Te,"".concat(Ve,"-start"),ue[we]),(0,Ae.Z)(Te,"".concat(Ve,"-end"),D[we]),Te))}))}return M.createElement("span",{"aria-hidden":"true",className:"".concat(Ue,"-indent")},Me)},L=M.memo(T),ee=x(67841),R=x(71430),le=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],X="open",q="close",W="---",K=function(Oe){(0,g.Z)(Ue,Oe);var Se=(0,I.Z)(Ue);function Ue(){var J;(0,te.Z)(this,Ue);for(var ue=arguments.length,D=new Array(ue),Ve=0;Ve<ue;Ve++)D[Ve]=arguments[Ve];return J=Se.call.apply(Se,[this].concat(D)),J.state={dragNodeHighlight:!1},J.selectHandle=void 0,J.cacheIndent=void 0,J.onSelectorClick=function(Me){var we=J.props.context.onNodeClick;we(Me,(0,R.F)(J.props)),J.isSelectable()?J.onSelect(Me):J.onCheck(Me)},J.onSelectorDoubleClick=function(Me){var we=J.props.context.onNodeDoubleClick;we(Me,(0,R.F)(J.props))},J.onSelect=function(Me){if(!J.isDisabled()){var we=J.props.context.onNodeSelect;we(Me,(0,R.F)(J.props))}},J.onCheck=function(Me){if(!J.isDisabled()){var we=J.props,Te=we.disableCheckbox,ve=we.checked,Fe=J.props.context.onNodeCheck;if(!(!J.isCheckable()||Te)){var de=!ve;Fe(Me,(0,R.F)(J.props),de)}}},J.onMouseEnter=function(Me){var we=J.props.context.onNodeMouseEnter;we(Me,(0,R.F)(J.props))},J.onMouseLeave=function(Me){var we=J.props.context.onNodeMouseLeave;we(Me,(0,R.F)(J.props))},J.onContextMenu=function(Me){var we=J.props.context.onNodeContextMenu;we(Me,(0,R.F)(J.props))},J.onDragStart=function(Me){var we=J.props.context.onNodeDragStart;Me.stopPropagation(),J.setState({dragNodeHighlight:!0}),we(Me,(0,S.Z)(J));try{Me.dataTransfer.setData("text/plain","")}catch(Te){}},J.onDragEnter=function(Me){var we=J.props.context.onNodeDragEnter;Me.preventDefault(),Me.stopPropagation(),we(Me,(0,S.Z)(J))},J.onDragOver=function(Me){var we=J.props.context.onNodeDragOver;Me.preventDefault(),Me.stopPropagation(),we(Me,(0,S.Z)(J))},J.onDragLeave=function(Me){var we=J.props.context.onNodeDragLeave;Me.stopPropagation(),we(Me,(0,S.Z)(J))},J.onDragEnd=function(Me){var we=J.props.context.onNodeDragEnd;Me.stopPropagation(),J.setState({dragNodeHighlight:!1}),we(Me,(0,S.Z)(J))},J.onDrop=function(Me){var we=J.props.context.onNodeDrop;Me.preventDefault(),Me.stopPropagation(),J.setState({dragNodeHighlight:!1}),we(Me,(0,S.Z)(J))},J.onExpand=function(Me){var we=J.props,Te=we.loading,ve=we.context.onNodeExpand;Te||ve(Me,(0,R.F)(J.props))},J.setSelectHandle=function(Me){J.selectHandle=Me},J.getNodeState=function(){var Me=J.props.expanded;return J.isLeaf()?null:Me?X:q},J.hasChildren=function(){var Me=J.props.eventKey,we=J.props.context.keyEntities,Te=(0,ee.Z)(we,Me)||{},ve=Te.children;return!!(ve||[]).length},J.isLeaf=function(){var Me=J.props,we=Me.isLeaf,Te=Me.loaded,ve=J.props.context.loadData,Fe=J.hasChildren();return we===!1?!1:we||!ve&&!Fe||ve&&Te&&!Fe},J.isDisabled=function(){var Me=J.props.disabled,we=J.props.context.disabled;return!!(we||Me)},J.isCheckable=function(){var Me=J.props.checkable,we=J.props.context.checkable;return!we||Me===!1?!1:we},J.syncLoadData=function(Me){var we=Me.expanded,Te=Me.loading,ve=Me.loaded,Fe=J.props.context,de=Fe.loadData,Ee=Fe.onNodeLoad;Te||de&&we&&!J.isLeaf()&&!J.hasChildren()&&!ve&&Ee((0,R.F)(J.props))},J.isDraggable=function(){var Me=J.props,we=Me.data,Te=Me.context.draggable;return!!(Te&&(!Te.nodeDraggable||Te.nodeDraggable(we)))},J.renderDragHandler=function(){var Me=J.props.context,we=Me.draggable,Te=Me.prefixCls;return we!=null&&we.icon?M.createElement("span",{className:"".concat(Te,"-draggable-icon")},we.icon):null},J.renderSwitcherIconDom=function(Me){var we=J.props.switcherIcon,Te=J.props.context.switcherIcon,ve=we||Te;return typeof ve=="function"?ve((0,De.Z)((0,De.Z)({},J.props),{},{isLeaf:Me})):ve},J.renderSwitcher=function(){var Me=J.props.expanded,we=J.props.context.prefixCls;if(J.isLeaf()){var Te=J.renderSwitcherIconDom(!0);return Te!==!1?M.createElement("span",{className:z()("".concat(we,"-switcher"),"".concat(we,"-switcher-noop"))},Te):null}var ve=z()("".concat(we,"-switcher"),"".concat(we,"-switcher_").concat(Me?X:q)),Fe=J.renderSwitcherIconDom(!1);return Fe!==!1?M.createElement("span",{onClick:J.onExpand,className:ve},Fe):null},J.renderCheckbox=function(){var Me=J.props,we=Me.checked,Te=Me.halfChecked,ve=Me.disableCheckbox,Fe=J.props.context.prefixCls,de=J.isDisabled(),Ee=J.isCheckable();if(!Ee)return null;var tt=typeof Ee!="boolean"?Ee:null;return M.createElement("span",{className:z()("".concat(Fe,"-checkbox"),we&&"".concat(Fe,"-checkbox-checked"),!we&&Te&&"".concat(Fe,"-checkbox-indeterminate"),(de||ve)&&"".concat(Fe,"-checkbox-disabled")),onClick:J.onCheck},tt)},J.renderIcon=function(){var Me=J.props.loading,we=J.props.context.prefixCls;return M.createElement("span",{className:z()("".concat(we,"-iconEle"),"".concat(we,"-icon__").concat(J.getNodeState()||"docu"),Me&&"".concat(we,"-icon_loading"))})},J.renderSelector=function(){var Me=J.state.dragNodeHighlight,we=J.props,Te=we.title,ve=Te===void 0?W:Te,Fe=we.selected,de=we.icon,Ee=we.loading,tt=we.data,it=J.props.context,Je=it.prefixCls,et=it.showIcon,Bt=it.icon,Lt=it.loadData,Nt=it.titleRender,ur=J.isDisabled(),ar="".concat(Je,"-node-content-wrapper"),Cr;if(et){var sr=de||Bt;Cr=sr?M.createElement("span",{className:z()("".concat(Je,"-iconEle"),"".concat(Je,"-icon__customize"))},typeof sr=="function"?sr(J.props):sr):J.renderIcon()}else Lt&&Ee&&(Cr=J.renderIcon());var G;typeof ve=="function"?G=ve(tt):Nt?G=Nt(tt):G=ve;var ft=M.createElement("span",{className:"".concat(Je,"-title")},G);return M.createElement("span",{ref:J.setSelectHandle,title:typeof ve=="string"?ve:"",className:z()("".concat(ar),"".concat(ar,"-").concat(J.getNodeState()||"normal"),!ur&&(Fe||Me)&&"".concat(Je,"-node-selected")),onMouseEnter:J.onMouseEnter,onMouseLeave:J.onMouseLeave,onContextMenu:J.onContextMenu,onClick:J.onSelectorClick,onDoubleClick:J.onSelectorDoubleClick},Cr,ft,J.renderDropIndicator())},J.renderDropIndicator=function(){var Me=J.props,we=Me.disabled,Te=Me.eventKey,ve=J.props.context,Fe=ve.draggable,de=ve.dropLevelOffset,Ee=ve.dropPosition,tt=ve.prefixCls,it=ve.indent,Je=ve.dropIndicatorRender,et=ve.dragOverNodeKey,Bt=ve.direction,Lt=!!Fe,Nt=!we&&Lt&&et===Te,ur=it!=null?it:J.cacheIndent;return J.cacheIndent=it,Nt?Je({dropPosition:Ee,dropLevelOffset:de,indent:ur,prefixCls:tt,direction:Bt}):null},J}return(0,V.Z)(Ue,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var ue=this.props.selectable,D=this.props.context.selectable;return typeof ue=="boolean"?ue:D}},{key:"render",value:function(){var ue,D=this.props,Ve=D.eventKey,Me=D.className,we=D.style,Te=D.dragOver,ve=D.dragOverGapTop,Fe=D.dragOverGapBottom,de=D.isLeaf,Ee=D.isStart,tt=D.isEnd,it=D.expanded,Je=D.selected,et=D.checked,Bt=D.halfChecked,Lt=D.loading,Nt=D.domRef,ur=D.active,ar=D.data,Cr=D.onMouseMove,sr=D.selectable,G=(0,P.Z)(D,le),ft=this.props.context,F=ft.prefixCls,m=ft.filterTreeNode,d=ft.keyEntities,C=ft.dropContainerKey,re=ft.dropTargetKey,Be=ft.draggingNodeKey,H=this.isDisabled(),ie=(0,E.Z)(G,{aria:!0,data:!0}),Qe=(0,ee.Z)(d,Ve)||{},xe=Qe.level,ye=tt[tt.length-1],je=this.isDraggable(),xt=!H&&je,he=Be===Ve,st=sr!==void 0?{"aria-selected":!!sr}:void 0;return M.createElement("div",(0,me.Z)({ref:Nt,className:z()(Me,"".concat(F,"-treenode"),(ue={},(0,Ae.Z)(ue,"".concat(F,"-treenode-disabled"),H),(0,Ae.Z)(ue,"".concat(F,"-treenode-switcher-").concat(it?"open":"close"),!de),(0,Ae.Z)(ue,"".concat(F,"-treenode-checkbox-checked"),et),(0,Ae.Z)(ue,"".concat(F,"-treenode-checkbox-indeterminate"),Bt),(0,Ae.Z)(ue,"".concat(F,"-treenode-selected"),Je),(0,Ae.Z)(ue,"".concat(F,"-treenode-loading"),Lt),(0,Ae.Z)(ue,"".concat(F,"-treenode-active"),ur),(0,Ae.Z)(ue,"".concat(F,"-treenode-leaf-last"),ye),(0,Ae.Z)(ue,"".concat(F,"-treenode-draggable"),je),(0,Ae.Z)(ue,"dragging",he),(0,Ae.Z)(ue,"drop-target",re===Ve),(0,Ae.Z)(ue,"drop-container",C===Ve),(0,Ae.Z)(ue,"drag-over",!H&&Te),(0,Ae.Z)(ue,"drag-over-gap-top",!H&&ve),(0,Ae.Z)(ue,"drag-over-gap-bottom",!H&&Fe),(0,Ae.Z)(ue,"filter-node",m&&m((0,R.F)(this.props))),ue)),style:we,draggable:xt,"aria-grabbed":he,onDragStart:xt?this.onDragStart:void 0,onDragEnter:je?this.onDragEnter:void 0,onDragOver:je?this.onDragOver:void 0,onDragLeave:je?this.onDragLeave:void 0,onDrop:je?this.onDrop:void 0,onDragEnd:je?this.onDragEnd:void 0,onMouseMove:Cr},st,ie),M.createElement(L,{prefixCls:F,level:xe,isStart:Ee,isEnd:tt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ue}(M.Component),se=function(Se){return M.createElement(N.k.Consumer,null,function(Ue){return M.createElement(K,(0,me.Z)({},Se,{context:Ue}))})};se.displayName="TreeNode",se.isTreeNode=1;var fe=se},39378:function(un,Tt,x){"use strict";x.d(Tt,{k:function(){return Ae}});var me=x(59301),Ae=me.createContext(null)},60091:function(un,Tt,x){"use strict";x.d(Tt,{O:function(){return fe.Z},Z:function(){return ft}});var me=x(54476),Ae=x(20068),P=x(76190),De=x(33885),te=x(94480),V=x(67732),S=x(83652),g=x(31226),I=x(42403),v=x(158),z=x(92310),E=x.n(z),M=x(10228),N=x(26112),T=x(48736),L=x(59301),ee=x(39378);function R(F){var m=F.dropPosition,d=F.dropLevelOffset,C=F.indent,re={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(m){case-1:re.top=0,re.left=-d*C;break;case 1:re.bottom=0,re.left=-d*C;break;case 0:re.bottom=0,re.left=C;break}return L.createElement("div",{style:re})}function le(F){if(F==null)throw new TypeError("Cannot destructure "+F)}var X=x(42978),q=x(75931),W=x(34280),K=x(48911),se=x(77900),fe=x(39417);function Oe(F,m){var d=L.useState(!1),C=(0,X.Z)(d,2),re=C[0],Be=C[1];L.useLayoutEffect(function(){if(re)return F(),function(){m()}},[re]),L.useLayoutEffect(function(){return Be(!0),function(){Be(!1)}},[])}var Se=x(71430),Ue=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],J=function(m,d){var C=m.className,re=m.style,Be=m.motion,H=m.motionNodes,ie=m.motionType,Qe=m.onMotionStart,xe=m.onMotionEnd,ye=m.active,je=m.treeNodeRequiredProps,xt=(0,q.Z)(m,Ue),he=L.useState(!0),st=(0,X.Z)(he,2),Ye=st[0],Ie=st[1],Le=L.useContext(ee.k),ct=Le.prefixCls,Ut=H&&ie!=="hide";(0,W.Z)(function(){H&&Ut!==Ye&&Ie(Ut)},[H]);var kt=function(){H&&Qe()},tr=L.useRef(!1),Dr=function(){H&&!tr.current&&(tr.current=!0,xe())};Oe(kt,Dr);var fr=function(Lr){Ut===Lr&&Dr()};return H?L.createElement(se.default,(0,me.Z)({ref:d,visible:Ye},Be,{motionAppear:ie==="show",onVisibleChanged:fr}),function(Fr,Lr){var mr=Fr.className,cr=Fr.style;return L.createElement("div",{ref:Lr,className:E()("".concat(ct,"-treenode-motion"),mr),style:cr},H.map(function(Kr){var fn=(0,me.Z)({},(le(Kr.data),Kr.data)),_n=Kr.title,ln=Kr.key,xn=Kr.isStart,oi=Kr.isEnd;delete fn.children;var _r=(0,Se.H8)(ln,je);return L.createElement(fe.Z,(0,me.Z)({},fn,_r,{title:_n,active:ye,data:Kr.data,key:ln,isStart:xn,isEnd:oi}))}))}):L.createElement(fe.Z,(0,me.Z)({domRef:d,className:C,style:re},xt,{active:ye}))};J.displayName="MotionTreeNode";var ue=L.forwardRef(J),D=ue;function Ve(){var F=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],d=F.length,C=m.length;if(Math.abs(d-C)!==1)return{add:!1,key:null};function re(Be,H){var ie=new Map;Be.forEach(function(xe){ie.set(xe,!0)});var Qe=H.filter(function(xe){return!ie.has(xe)});return Qe.length===1?Qe[0]:null}return d<C?{add:!0,key:re(F,m)}:{add:!1,key:re(m,F)}}function Me(F,m,d){var C=F.findIndex(function(ie){return ie.key===d}),re=F[C+1],Be=m.findIndex(function(ie){return ie.key===d});if(re){var H=m.findIndex(function(ie){return ie.key===re.key});return m.slice(Be+1,H)}return m.slice(Be+1)}var we=["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"],Te={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ve=function(){},Fe="RC_TREE_MOTION_".concat(Math.random()),de={key:Fe},Ee={key:Fe,level:0,index:0,pos:"0",node:de,nodes:[de]},tt={parent:null,children:[],pos:Ee.pos,data:de,title:null,key:Fe,isStart:[],isEnd:[]};function it(F,m,d,C){return m===!1||!d?F:F.slice(0,Math.ceil(d/C)+1)}function Je(F){var m=F.key,d=F.pos;return(0,Se.km)(m,d)}function et(F){for(var m=String(F.data.key),d=F;d.parent;)d=d.parent,m="".concat(d.data.key," > ").concat(m);return m}var Bt=L.forwardRef(function(F,m){var d=F.prefixCls,C=F.data,re=F.selectable,Be=F.checkable,H=F.expandedKeys,ie=F.selectedKeys,Qe=F.checkedKeys,xe=F.loadedKeys,ye=F.loadingKeys,je=F.halfCheckedKeys,xt=F.keyEntities,he=F.disabled,st=F.dragging,Ye=F.dragOverNodeKey,Ie=F.dropPosition,Le=F.motion,ct=F.height,Ut=F.itemHeight,kt=F.virtual,tr=F.focusable,Dr=F.activeItem,fr=F.focused,Fr=F.tabIndex,Lr=F.onKeyDown,mr=F.onFocus,cr=F.onBlur,Kr=F.onActiveChange,fn=F.onListChangeStart,_n=F.onListChangeEnd,ln=(0,q.Z)(F,we),xn=L.useRef(null),oi=L.useRef(null);L.useImperativeHandle(m,function(){return{scrollTo:function(en){xn.current.scrollTo(en)},getIndentWidth:function(){return oi.current.offsetWidth}}});var _r=L.useState(H),Ai=(0,X.Z)(_r,2),Oi=Ai[0],mi=Ai[1],Wi=L.useState(C),Gi=(0,X.Z)(Wi,2),ta=Gi[0],_o=Gi[1],ra=L.useState(C),bi=(0,X.Z)(ra,2),Ki=bi[0],sa=bi[1],be=L.useState([]),Ne=(0,X.Z)(be,2),ke=Ne[0],Xe=Ne[1],Pt=L.useState(null),Dt=(0,X.Z)(Pt,2),Er=Dt[0],rr=Dt[1],Nr=L.useRef(C);Nr.current=C;function Hr(){var Rr=Nr.current;_o(Rr),sa(Rr),Xe([]),rr(null),_n()}(0,W.Z)(function(){mi(H);var Rr=Ve(Oi,H);if(Rr.key!==null)if(Rr.add){var en=ta.findIndex(function(Nn){var Gn=Nn.key;return Gn===Rr.key}),wn=it(Me(ta,C,Rr.key),kt,ct,Ut),on=ta.slice();on.splice(en+1,0,tt),sa(on),Xe(wn),rr("show")}else{var On=C.findIndex(function(Nn){var Gn=Nn.key;return Gn===Rr.key}),Qn=it(Me(C,ta,Rr.key),kt,ct,Ut),di=C.slice();di.splice(On+1,0,tt),sa(di),Xe(Qn),rr("hide")}else ta!==C&&(_o(C),sa(C))},[H,C]),L.useEffect(function(){st||Hr()},[st]);var an=Le?Ki:C,jr={expandedKeys:H,selectedKeys:ie,loadedKeys:xe,loadingKeys:ye,checkedKeys:Qe,halfCheckedKeys:je,dragOverNodeKey:Ye,dropPosition:Ie,keyEntities:xt};return L.createElement(L.Fragment,null,fr&&Dr&&L.createElement("span",{style:Te,"aria-live":"assertive"},et(Dr)),L.createElement("div",null,L.createElement("input",{style:Te,disabled:tr===!1||he,tabIndex:tr!==!1?Fr:null,onKeyDown:Lr,onFocus:mr,onBlur:cr,value:"",onChange:ve,"aria-label":"for screen reader"})),L.createElement("div",{className:"".concat(d,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},L.createElement("div",{className:"".concat(d,"-indent")},L.createElement("div",{ref:oi,className:"".concat(d,"-indent-unit")}))),L.createElement(K.Z,(0,me.Z)({},ln,{data:an,itemKey:Je,height:ct,fullHeight:!1,virtual:kt,itemHeight:Ut,prefixCls:"".concat(d,"-list"),ref:xn,onVisibleChange:function(en,wn){var on=new Set(en),On=wn.filter(function(Qn){return!on.has(Qn)});On.some(function(Qn){return Je(Qn)===Fe})&&Hr()}}),function(Rr){var en=Rr.pos,wn=(0,me.Z)({},(le(Rr.data),Rr.data)),on=Rr.title,On=Rr.key,Qn=Rr.isStart,di=Rr.isEnd,Nn=(0,Se.km)(On,en);delete wn.key,delete wn.children;var Gn=(0,Se.H8)(Nn,jr);return L.createElement(D,(0,me.Z)({},wn,Gn,{title:on,active:!!Dr&&On===Dr.key,pos:en,data:Rr.data,isStart:Qn,isEnd:di,motion:Le,motionNodes:On===Fe?ke:null,motionType:Er,onMotionStart:fn,onMotionEnd:Hr,treeNodeRequiredProps:jr,onMouseMove:function(){Kr(null)}}))}))});Bt.displayName="NodeList";var Lt=Bt,Nt=x(35654),ur=x(90782),ar=x(67841),Cr=10,sr=function(F){(0,I.Z)(d,F);var m=(0,v.Z)(d);function d(){var C;(0,V.Z)(this,d);for(var re=arguments.length,Be=new Array(re),H=0;H<re;H++)Be[H]=arguments[H];return C=m.call.apply(m,[this].concat(Be)),C.destroyed=!1,C.delayedDragEnterLogic=void 0,C.loadingRetryTimes={},C.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,Se.w$)()},C.dragStartMousePosition=null,C.dragNode=void 0,C.currentMouseOverDroppableNodeKey=null,C.listRef=L.createRef(),C.onNodeDragStart=function(ie,Qe){var xe=C.state,ye=xe.expandedKeys,je=xe.keyEntities,xt=C.props.onDragStart,he=Qe.props.eventKey;C.dragNode=Qe,C.dragStartMousePosition={x:ie.clientX,y:ie.clientY};var st=(0,Nt._5)(ye,he);C.setState({draggingNodeKey:he,dragChildrenKeys:(0,Nt.wA)(he,je),indent:C.listRef.current.getIndentWidth()}),C.setExpandedKeys(st),window.addEventListener("dragend",C.onWindowDragEnd),xt==null||xt({event:ie,node:(0,Se.F)(Qe.props)})},C.onNodeDragEnter=function(ie,Qe){var xe=C.state,ye=xe.expandedKeys,je=xe.keyEntities,xt=xe.dragChildrenKeys,he=xe.flattenNodes,st=xe.indent,Ye=C.props,Ie=Ye.onDragEnter,Le=Ye.onExpand,ct=Ye.allowDrop,Ut=Ye.direction,kt=Qe.props,tr=kt.pos,Dr=kt.eventKey,fr=(0,g.Z)(C),Fr=fr.dragNode;if(C.currentMouseOverDroppableNodeKey!==Dr&&(C.currentMouseOverDroppableNodeKey=Dr),!Fr){C.resetDragState();return}var Lr=(0,Nt.OM)(ie,Fr,Qe,st,C.dragStartMousePosition,ct,he,je,ye,Ut),mr=Lr.dropPosition,cr=Lr.dropLevelOffset,Kr=Lr.dropTargetKey,fn=Lr.dropContainerKey,_n=Lr.dropTargetPos,ln=Lr.dropAllowed,xn=Lr.dragOverNodeKey;if(xt.indexOf(Kr)!==-1||!ln){C.resetDragState();return}if(C.delayedDragEnterLogic||(C.delayedDragEnterLogic={}),Object.keys(C.delayedDragEnterLogic).forEach(function(oi){clearTimeout(C.delayedDragEnterLogic[oi])}),Fr.props.eventKey!==Qe.props.eventKey&&(ie.persist(),C.delayedDragEnterLogic[tr]=window.setTimeout(function(){if(C.state.draggingNodeKey!==null){var oi=(0,te.Z)(ye),_r=(0,ar.Z)(je,Qe.props.eventKey);_r&&(_r.children||[]).length&&(oi=(0,Nt.L0)(ye,Qe.props.eventKey)),"expandedKeys"in C.props||C.setExpandedKeys(oi),Le==null||Le(oi,{node:(0,Se.F)(Qe.props),expanded:!0,nativeEvent:ie.nativeEvent})}},800)),Fr.props.eventKey===Kr&&cr===0){C.resetDragState();return}C.setState({dragOverNodeKey:xn,dropPosition:mr,dropLevelOffset:cr,dropTargetKey:Kr,dropContainerKey:fn,dropTargetPos:_n,dropAllowed:ln}),Ie==null||Ie({event:ie,node:(0,Se.F)(Qe.props),expandedKeys:ye})},C.onNodeDragOver=function(ie,Qe){var xe=C.state,ye=xe.dragChildrenKeys,je=xe.flattenNodes,xt=xe.keyEntities,he=xe.expandedKeys,st=xe.indent,Ye=C.props,Ie=Ye.onDragOver,Le=Ye.allowDrop,ct=Ye.direction,Ut=(0,g.Z)(C),kt=Ut.dragNode;if(kt){var tr=(0,Nt.OM)(ie,kt,Qe,st,C.dragStartMousePosition,Le,je,xt,he,ct),Dr=tr.dropPosition,fr=tr.dropLevelOffset,Fr=tr.dropTargetKey,Lr=tr.dropContainerKey,mr=tr.dropAllowed,cr=tr.dropTargetPos,Kr=tr.dragOverNodeKey;ye.indexOf(Fr)!==-1||!mr||(kt.props.eventKey===Fr&&fr===0?C.state.dropPosition===null&&C.state.dropLevelOffset===null&&C.state.dropTargetKey===null&&C.state.dropContainerKey===null&&C.state.dropTargetPos===null&&C.state.dropAllowed===!1&&C.state.dragOverNodeKey===null||C.resetDragState():Dr===C.state.dropPosition&&fr===C.state.dropLevelOffset&&Fr===C.state.dropTargetKey&&Lr===C.state.dropContainerKey&&cr===C.state.dropTargetPos&&mr===C.state.dropAllowed&&Kr===C.state.dragOverNodeKey||C.setState({dropPosition:Dr,dropLevelOffset:fr,dropTargetKey:Fr,dropContainerKey:Lr,dropTargetPos:cr,dropAllowed:mr,dragOverNodeKey:Kr}),Ie==null||Ie({event:ie,node:(0,Se.F)(Qe.props)}))}},C.onNodeDragLeave=function(ie,Qe){C.currentMouseOverDroppableNodeKey===Qe.props.eventKey&&!ie.currentTarget.contains(ie.relatedTarget)&&(C.resetDragState(),C.currentMouseOverDroppableNodeKey=null);var xe=C.props.onDragLeave;xe==null||xe({event:ie,node:(0,Se.F)(Qe.props)})},C.onWindowDragEnd=function(ie){C.onNodeDragEnd(ie,null,!0),window.removeEventListener("dragend",C.onWindowDragEnd)},C.onNodeDragEnd=function(ie,Qe){var xe=C.props.onDragEnd;C.setState({dragOverNodeKey:null}),C.cleanDragState(),xe==null||xe({event:ie,node:(0,Se.F)(Qe.props)}),C.dragNode=null,window.removeEventListener("dragend",C.onWindowDragEnd)},C.onNodeDrop=function(ie,Qe){var xe,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,je=C.state,xt=je.dragChildrenKeys,he=je.dropPosition,st=je.dropTargetKey,Ye=je.dropTargetPos,Ie=je.dropAllowed;if(Ie){var Le=C.props.onDrop;if(C.setState({dragOverNodeKey:null}),C.cleanDragState(),st!==null){var ct=(0,De.Z)((0,De.Z)({},(0,Se.H8)(st,C.getTreeNodeRequiredProps())),{},{active:((xe=C.getActiveItem())===null||xe===void 0?void 0:xe.key)===st,data:(0,ar.Z)(C.state.keyEntities,st).node}),Ut=xt.indexOf(st)!==-1;(0,T.ZP)(!Ut,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var kt=(0,Nt.yx)(Ye),tr={event:ie,node:(0,Se.F)(ct),dragNode:C.dragNode?(0,Se.F)(C.dragNode.props):null,dragNodesKeys:[C.dragNode.props.eventKey].concat(xt),dropToGap:he!==0,dropPosition:he+Number(kt[kt.length-1])};ye||Le==null||Le(tr),C.dragNode=null}}},C.cleanDragState=function(){var ie=C.state.draggingNodeKey;ie!==null&&C.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),C.dragStartMousePosition=null,C.currentMouseOverDroppableNodeKey=null},C.triggerExpandActionExpand=function(ie,Qe){var xe=C.state,ye=xe.expandedKeys,je=xe.flattenNodes,xt=Qe.expanded,he=Qe.key,st=Qe.isLeaf;if(!(st||ie.shiftKey||ie.metaKey||ie.ctrlKey)){var Ye=je.filter(function(Le){return Le.key===he})[0],Ie=(0,Se.F)((0,De.Z)((0,De.Z)({},(0,Se.H8)(he,C.getTreeNodeRequiredProps())),{},{data:Ye.data}));C.setExpandedKeys(xt?(0,Nt._5)(ye,he):(0,Nt.L0)(ye,he)),C.onNodeExpand(ie,Ie)}},C.onNodeClick=function(ie,Qe){var xe=C.props,ye=xe.onClick,je=xe.expandAction;je==="click"&&C.triggerExpandActionExpand(ie,Qe),ye==null||ye(ie,Qe)},C.onNodeDoubleClick=function(ie,Qe){var xe=C.props,ye=xe.onDoubleClick,je=xe.expandAction;je==="doubleClick"&&C.triggerExpandActionExpand(ie,Qe),ye==null||ye(ie,Qe)},C.onNodeSelect=function(ie,Qe){var xe=C.state.selectedKeys,ye=C.state,je=ye.keyEntities,xt=ye.fieldNames,he=C.props,st=he.onSelect,Ye=he.multiple,Ie=Qe.selected,Le=Qe[xt.key],ct=!Ie;ct?Ye?xe=(0,Nt.L0)(xe,Le):xe=[Le]:xe=(0,Nt._5)(xe,Le);var Ut=xe.map(function(kt){var tr=(0,ar.Z)(je,kt);return tr?tr.node:null}).filter(function(kt){return kt});C.setUncontrolledState({selectedKeys:xe}),st==null||st(xe,{event:"select",selected:ct,node:Qe,selectedNodes:Ut,nativeEvent:ie.nativeEvent})},C.onNodeCheck=function(ie,Qe,xe){var ye=C.state,je=ye.keyEntities,xt=ye.checkedKeys,he=ye.halfCheckedKeys,st=C.props,Ye=st.checkStrictly,Ie=st.onCheck,Le=Qe.key,ct,Ut={event:"check",node:Qe,checked:xe,nativeEvent:ie.nativeEvent};if(Ye){var kt=xe?(0,Nt.L0)(xt,Le):(0,Nt._5)(xt,Le),tr=(0,Nt._5)(he,Le);ct={checked:kt,halfChecked:tr},Ut.checkedNodes=kt.map(function(cr){return(0,ar.Z)(je,cr)}).filter(function(cr){return cr}).map(function(cr){return cr.node}),C.setUncontrolledState({checkedKeys:kt})}else{var Dr=(0,ur.S)([].concat((0,te.Z)(xt),[Le]),!0,je),fr=Dr.checkedKeys,Fr=Dr.halfCheckedKeys;if(!xe){var Lr=new Set(fr);Lr.delete(Le);var mr=(0,ur.S)(Array.from(Lr),{checked:!1,halfCheckedKeys:Fr},je);fr=mr.checkedKeys,Fr=mr.halfCheckedKeys}ct=fr,Ut.checkedNodes=[],Ut.checkedNodesPositions=[],Ut.halfCheckedKeys=Fr,fr.forEach(function(cr){var Kr=(0,ar.Z)(je,cr);if(Kr){var fn=Kr.node,_n=Kr.pos;Ut.checkedNodes.push(fn),Ut.checkedNodesPositions.push({node:fn,pos:_n})}}),C.setUncontrolledState({checkedKeys:fr},!1,{halfCheckedKeys:Fr})}Ie==null||Ie(ct,Ut)},C.onNodeLoad=function(ie){var Qe=ie.key,xe=new Promise(function(ye,je){C.setState(function(xt){var he=xt.loadedKeys,st=he===void 0?[]:he,Ye=xt.loadingKeys,Ie=Ye===void 0?[]:Ye,Le=C.props,ct=Le.loadData,Ut=Le.onLoad;if(!ct||st.indexOf(Qe)!==-1||Ie.indexOf(Qe)!==-1)return null;var kt=ct(ie);return kt.then(function(){var tr=C.state.loadedKeys,Dr=(0,Nt.L0)(tr,Qe);Ut==null||Ut(Dr,{event:"load",node:ie}),C.setUncontrolledState({loadedKeys:Dr}),C.setState(function(fr){return{loadingKeys:(0,Nt._5)(fr.loadingKeys,Qe)}}),ye()}).catch(function(tr){if(C.setState(function(fr){return{loadingKeys:(0,Nt._5)(fr.loadingKeys,Qe)}}),C.loadingRetryTimes[Qe]=(C.loadingRetryTimes[Qe]||0)+1,C.loadingRetryTimes[Qe]>=Cr){var Dr=C.state.loadedKeys;(0,T.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),C.setUncontrolledState({loadedKeys:(0,Nt.L0)(Dr,Qe)}),ye()}je(tr)}),{loadingKeys:(0,Nt.L0)(Ie,Qe)}})});return xe.catch(function(){}),xe},C.onNodeMouseEnter=function(ie,Qe){var xe=C.props.onMouseEnter;xe==null||xe({event:ie,node:Qe})},C.onNodeMouseLeave=function(ie,Qe){var xe=C.props.onMouseLeave;xe==null||xe({event:ie,node:Qe})},C.onNodeContextMenu=function(ie,Qe){var xe=C.props.onRightClick;xe&&(ie.preventDefault(),xe({event:ie,node:Qe}))},C.onFocus=function(){var ie=C.props.onFocus;C.setState({focused:!0});for(var Qe=arguments.length,xe=new Array(Qe),ye=0;ye<Qe;ye++)xe[ye]=arguments[ye];ie==null||ie.apply(void 0,xe)},C.onBlur=function(){var ie=C.props.onBlur;C.setState({focused:!1}),C.onActiveChange(null);for(var Qe=arguments.length,xe=new Array(Qe),ye=0;ye<Qe;ye++)xe[ye]=arguments[ye];ie==null||ie.apply(void 0,xe)},C.getTreeNodeRequiredProps=function(){var ie=C.state,Qe=ie.expandedKeys,xe=ie.selectedKeys,ye=ie.loadedKeys,je=ie.loadingKeys,xt=ie.checkedKeys,he=ie.halfCheckedKeys,st=ie.dragOverNodeKey,Ye=ie.dropPosition,Ie=ie.keyEntities;return{expandedKeys:Qe||[],selectedKeys:xe||[],loadedKeys:ye||[],loadingKeys:je||[],checkedKeys:xt||[],halfCheckedKeys:he||[],dragOverNodeKey:st,dropPosition:Ye,keyEntities:Ie}},C.setExpandedKeys=function(ie){var Qe=C.state,xe=Qe.treeData,ye=Qe.fieldNames,je=(0,Se.oH)(xe,ie,ye);C.setUncontrolledState({expandedKeys:ie,flattenNodes:je},!0)},C.onNodeExpand=function(ie,Qe){var xe=C.state.expandedKeys,ye=C.state,je=ye.listChanging,xt=ye.fieldNames,he=C.props,st=he.onExpand,Ye=he.loadData,Ie=Qe.expanded,Le=Qe[xt.key];if(!je){var ct=xe.indexOf(Le),Ut=!Ie;if((0,T.ZP)(Ie&&ct!==-1||!Ie&&ct===-1,"Expand state not sync with index check"),Ut?xe=(0,Nt.L0)(xe,Le):xe=(0,Nt._5)(xe,Le),C.setExpandedKeys(xe),st==null||st(xe,{node:Qe,expanded:Ut,nativeEvent:ie.nativeEvent}),Ut&&Ye){var kt=C.onNodeLoad(Qe);kt&&kt.then(function(){var tr=(0,Se.oH)(C.state.treeData,xe,xt);C.setUncontrolledState({flattenNodes:tr})}).catch(function(){var tr=C.state.expandedKeys,Dr=(0,Nt._5)(tr,Le);C.setExpandedKeys(Dr)})}}},C.onListChangeStart=function(){C.setUncontrolledState({listChanging:!0})},C.onListChangeEnd=function(){setTimeout(function(){C.setUncontrolledState({listChanging:!1})})},C.onActiveChange=function(ie){var Qe=C.state.activeKey,xe=C.props.onActiveChange;Qe!==ie&&(C.setState({activeKey:ie}),ie!==null&&C.scrollTo({key:ie}),xe==null||xe(ie))},C.getActiveItem=function(){var ie=C.state,Qe=ie.activeKey,xe=ie.flattenNodes;return Qe===null?null:xe.find(function(ye){var je=ye.key;return je===Qe})||null},C.offsetActiveKey=function(ie){var Qe=C.state,xe=Qe.flattenNodes,ye=Qe.activeKey,je=xe.findIndex(function(st){var Ye=st.key;return Ye===ye});je===-1&&ie<0&&(je=xe.length),je=(je+ie+xe.length)%xe.length;var xt=xe[je];if(xt){var he=xt.key;C.onActiveChange(he)}else C.onActiveChange(null)},C.onKeyDown=function(ie){var Qe=C.state,xe=Qe.activeKey,ye=Qe.expandedKeys,je=Qe.checkedKeys,xt=Qe.fieldNames,he=C.props,st=he.onKeyDown,Ye=he.checkable,Ie=he.selectable;switch(ie.which){case M.Z.UP:{C.offsetActiveKey(-1),ie.preventDefault();break}case M.Z.DOWN:{C.offsetActiveKey(1),ie.preventDefault();break}}var Le=C.getActiveItem();if(Le&&Le.data){var ct=C.getTreeNodeRequiredProps(),Ut=Le.data.isLeaf===!1||!!(Le.data[xt.children]||[]).length,kt=(0,Se.F)((0,De.Z)((0,De.Z)({},(0,Se.H8)(xe,ct)),{},{data:Le.data,active:!0}));switch(ie.which){case M.Z.LEFT:{Ut&&ye.includes(xe)?C.onNodeExpand({},kt):Le.parent&&C.onActiveChange(Le.parent.key),ie.preventDefault();break}case M.Z.RIGHT:{Ut&&!ye.includes(xe)?C.onNodeExpand({},kt):Le.children&&Le.children.length&&C.onActiveChange(Le.children[0].key),ie.preventDefault();break}case M.Z.ENTER:case M.Z.SPACE:{Ye&&!kt.disabled&&kt.checkable!==!1&&!kt.disableCheckbox?C.onNodeCheck({},kt,!je.includes(xe)):!Ye&&Ie&&!kt.disabled&&kt.selectable!==!1&&C.onNodeSelect({},kt);break}}}st==null||st(ie)},C.setUncontrolledState=function(ie){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,xe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!C.destroyed){var ye=!1,je=!0,xt={};Object.keys(ie).forEach(function(he){if(he in C.props){je=!1;return}ye=!0,xt[he]=ie[he]}),ye&&(!Qe||je)&&C.setState((0,De.Z)((0,De.Z)({},xt),xe))}},C.scrollTo=function(ie){C.listRef.current.scrollTo(ie)},C}return(0,S.Z)(d,[{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,Be=this.state,H=Be.focused,ie=Be.flattenNodes,Qe=Be.keyEntities,xe=Be.draggingNodeKey,ye=Be.activeKey,je=Be.dropLevelOffset,xt=Be.dropContainerKey,he=Be.dropTargetKey,st=Be.dropPosition,Ye=Be.dragOverNodeKey,Ie=Be.indent,Le=this.props,ct=Le.prefixCls,Ut=Le.className,kt=Le.style,tr=Le.showLine,Dr=Le.focusable,fr=Le.tabIndex,Fr=fr===void 0?0:fr,Lr=Le.selectable,mr=Le.showIcon,cr=Le.icon,Kr=Le.switcherIcon,fn=Le.draggable,_n=Le.checkable,ln=Le.checkStrictly,xn=Le.disabled,oi=Le.motion,_r=Le.loadData,Ai=Le.filterTreeNode,Oi=Le.height,mi=Le.itemHeight,Wi=Le.virtual,Gi=Le.titleRender,ta=Le.dropIndicatorRender,_o=Le.onContextMenu,ra=Le.onScroll,bi=Le.direction,Ki=Le.rootClassName,sa=Le.rootStyle,be=(0,N.Z)(this.props,{aria:!0,data:!0}),Ne;return fn&&((0,P.Z)(fn)==="object"?Ne=fn:typeof fn=="function"?Ne={nodeDraggable:fn}:Ne={}),L.createElement(ee.k.Provider,{value:{prefixCls:ct,selectable:Lr,showIcon:mr,icon:cr,switcherIcon:Kr,draggable:Ne,draggingNodeKey:xe,checkable:_n,checkStrictly:ln,disabled:xn,keyEntities:Qe,dropLevelOffset:je,dropContainerKey:xt,dropTargetKey:he,dropPosition:st,dragOverNodeKey:Ye,indent:Ie,direction:bi,dropIndicatorRender:ta,loadData:_r,filterTreeNode:Ai,titleRender:Gi,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}},L.createElement("div",{role:"tree",className:E()(ct,Ut,Ki,(re={},(0,Ae.Z)(re,"".concat(ct,"-show-line"),tr),(0,Ae.Z)(re,"".concat(ct,"-focused"),H),(0,Ae.Z)(re,"".concat(ct,"-active-focused"),ye!==null),re)),style:sa},L.createElement(Lt,(0,me.Z)({ref:this.listRef,prefixCls:ct,style:kt,data:ie,disabled:xn,selectable:Lr,checkable:!!_n,motion:oi,dragging:xe!==null,height:Oi,itemHeight:mi,virtual:Wi,focusable:Dr,focused:H,tabIndex:Fr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:_o,onScroll:ra},this.getTreeNodeRequiredProps(),be))))}}],[{key:"getDerivedStateFromProps",value:function(re,Be){var H=Be.prevProps,ie={prevProps:re};function Qe(Dr){return!H&&Dr in re||H&&H[Dr]!==re[Dr]}var xe,ye=Be.fieldNames;if(Qe("fieldNames")&&(ye=(0,Se.w$)(re.fieldNames),ie.fieldNames=ye),Qe("treeData")?xe=re.treeData:Qe("children")&&((0,T.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),xe=(0,Se.zn)(re.children)),xe){ie.treeData=xe;var je=(0,Se.I8)(xe,{fieldNames:ye});ie.keyEntities=(0,De.Z)((0,Ae.Z)({},Fe,Ee),je.keyEntities)}var xt=ie.keyEntities||Be.keyEntities;if(Qe("expandedKeys")||H&&Qe("autoExpandParent"))ie.expandedKeys=re.autoExpandParent||!H&&re.defaultExpandParent?(0,Nt.r7)(re.expandedKeys,xt):re.expandedKeys;else if(!H&&re.defaultExpandAll){var he=(0,De.Z)({},xt);delete he[Fe],ie.expandedKeys=Object.keys(he).map(function(Dr){return he[Dr].key})}else!H&&re.defaultExpandedKeys&&(ie.expandedKeys=re.autoExpandParent||re.defaultExpandParent?(0,Nt.r7)(re.defaultExpandedKeys,xt):re.defaultExpandedKeys);if(ie.expandedKeys||delete ie.expandedKeys,xe||ie.expandedKeys){var st=(0,Se.oH)(xe||Be.treeData,ie.expandedKeys||Be.expandedKeys,ye);ie.flattenNodes=st}if(re.selectable&&(Qe("selectedKeys")?ie.selectedKeys=(0,Nt.BT)(re.selectedKeys,re):!H&&re.defaultSelectedKeys&&(ie.selectedKeys=(0,Nt.BT)(re.defaultSelectedKeys,re))),re.checkable){var Ye;if(Qe("checkedKeys")?Ye=(0,Nt.E6)(re.checkedKeys)||{}:!H&&re.defaultCheckedKeys?Ye=(0,Nt.E6)(re.defaultCheckedKeys)||{}:xe&&(Ye=(0,Nt.E6)(re.checkedKeys)||{checkedKeys:Be.checkedKeys,halfCheckedKeys:Be.halfCheckedKeys}),Ye){var Ie=Ye,Le=Ie.checkedKeys,ct=Le===void 0?[]:Le,Ut=Ie.halfCheckedKeys,kt=Ut===void 0?[]:Ut;if(!re.checkStrictly){var tr=(0,ur.S)(ct,!0,xt);ct=tr.checkedKeys,kt=tr.halfCheckedKeys}ie.checkedKeys=ct,ie.halfCheckedKeys=kt}}return Qe("loadedKeys")&&(ie.loadedKeys=re.loadedKeys),ie}}]),d}(L.Component);sr.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:R,allowDrop:function(){return!0},expandAction:!1},sr.TreeNode=fe.Z;var G=sr,ft=G},35654:function(un,Tt,x){"use strict";x.d(Tt,{BT:function(){return L},E6:function(){return le},L0:function(){return v},OM:function(){return T},_5:function(){return I},r7:function(){return X},wA:function(){return E},yx:function(){return z}});var me=x(94480),Ae=x(76190),P=x(48736),De=x(59301),te=x(39417),V=x(67841),S=x(71430),g=null;function I(q,W){if(!q)return[];var K=q.slice(),se=K.indexOf(W);return se>=0&&K.splice(se,1),K}function v(q,W){var K=(q||[]).slice();return K.indexOf(W)===-1&&K.push(W),K}function z(q){return q.split("-")}function E(q,W){var K=[],se=(0,V.Z)(W,q);function fe(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Oe.forEach(function(Se){var Ue=Se.key,J=Se.children;K.push(Ue),fe(J)})}return fe(se.children),K}function M(q){if(q.parent){var W=z(q.pos);return Number(W[W.length-1])===q.parent.children.length-1}return!1}function N(q){var W=z(q.pos);return Number(W[W.length-1])===0}function T(q,W,K,se,fe,Oe,Se,Ue,J,ue){var D,Ve=q.clientX,Me=q.clientY,we=q.target.getBoundingClientRect(),Te=we.top,ve=we.height,Fe=(ue==="rtl"?-1:1)*(((fe==null?void 0:fe.x)||0)-Ve),de=(Fe-12)/se,Ee=(0,V.Z)(Ue,K.props.eventKey);if(Me<Te+ve/2){var tt=Se.findIndex(function(ft){return ft.key===Ee.key}),it=tt<=0?0:tt-1,Je=Se[it].key;Ee=(0,V.Z)(Ue,Je)}var et=Ee.key,Bt=Ee,Lt=Ee.key,Nt=0,ur=0;if(!J.includes(et))for(var ar=0;ar<de&&M(Ee);ar+=1)Ee=Ee.parent,ur+=1;var Cr=W.props.data,sr=Ee.node,G=!0;return N(Ee)&&Ee.level===0&&Me<Te+ve/2&&Oe({dragNode:Cr,dropNode:sr,dropPosition:-1})&&Ee.key===K.props.eventKey?Nt=-1:(Bt.children||[]).length&&J.includes(Lt)?Oe({dragNode:Cr,dropNode:sr,dropPosition:0})?Nt=0:G=!1:ur===0?de>-1.5?Oe({dragNode:Cr,dropNode:sr,dropPosition:1})?Nt=1:G=!1:Oe({dragNode:Cr,dropNode:sr,dropPosition:0})?Nt=0:Oe({dragNode:Cr,dropNode:sr,dropPosition:1})?Nt=1:G=!1:Oe({dragNode:Cr,dropNode:sr,dropPosition:1})?Nt=1:G=!1,{dropPosition:Nt,dropLevelOffset:ur,dropTargetKey:Ee.key,dropTargetPos:Ee.pos,dragOverNodeKey:Lt,dropContainerKey:Nt===0?null:((D=Ee.parent)===null||D===void 0?void 0:D.key)||null,dropAllowed:G}}function L(q,W){if(q){var K=W.multiple;return K?q.slice():q.length?[q[0]]:q}}var ee=function(W){return W};function R(q,W){if(!q)return[];var K=W||{},se=K.processProps,fe=se===void 0?ee:se,Oe=Array.isArray(q)?q:[q];return Oe.map(function(Se){var Ue=Se.children,J=_objectWithoutProperties(Se,g),ue=R(Ue,W);return React.createElement(TreeNode,_extends({key:J.key},fe(J)),ue)})}function le(q){if(!q)return null;var W;if(Array.isArray(q))W={checkedKeys:q,halfCheckedKeys:void 0};else if((0,Ae.Z)(q)==="object")W={checkedKeys:q.checked||void 0,halfCheckedKeys:q.halfChecked||void 0};else return(0,P.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return W}function X(q,W){var K=new Set;function se(fe){if(!K.has(fe)){var Oe=(0,V.Z)(W,fe);if(Oe){K.add(fe);var Se=Oe.parent,Ue=Oe.node;Ue.disabled||Se&&se(Se.key)}}}return(q||[]).forEach(function(fe){se(fe)}),(0,me.Z)(K)}},90782:function(un,Tt,x){"use strict";x.d(Tt,{S:function(){return S}});var me=x(48736),Ae=x(67841);function P(g,I){var v=new Set;return g.forEach(function(z){I.has(z)||v.add(z)}),v}function De(g){var I=g||{},v=I.disabled,z=I.disableCheckbox,E=I.checkable;return!!(v||z)||E===!1}function te(g,I,v,z){for(var E=new Set(g),M=new Set,N=0;N<=v;N+=1){var T=I.get(N)||new Set;T.forEach(function(le){var X=le.key,q=le.node,W=le.children,K=W===void 0?[]:W;E.has(X)&&!z(q)&&K.filter(function(se){return!z(se.node)}).forEach(function(se){E.add(se.key)})})}for(var L=new Set,ee=v;ee>=0;ee-=1){var R=I.get(ee)||new Set;R.forEach(function(le){var X=le.parent,q=le.node;if(!(z(q)||!le.parent||L.has(le.parent.key))){if(z(le.parent.node)){L.add(X.key);return}var W=!0,K=!1;(X.children||[]).filter(function(se){return!z(se.node)}).forEach(function(se){var fe=se.key,Oe=E.has(fe);W&&!Oe&&(W=!1),!K&&(Oe||M.has(fe))&&(K=!0)}),W&&E.add(X.key),K&&M.add(X.key),L.add(X.key)}})}return{checkedKeys:Array.from(E),halfCheckedKeys:Array.from(P(M,E))}}function V(g,I,v,z,E){for(var M=new Set(g),N=new Set(I),T=0;T<=z;T+=1){var L=v.get(T)||new Set;L.forEach(function(X){var q=X.key,W=X.node,K=X.children,se=K===void 0?[]:K;!M.has(q)&&!N.has(q)&&!E(W)&&se.filter(function(fe){return!E(fe.node)}).forEach(function(fe){M.delete(fe.key)})})}N=new Set;for(var ee=new Set,R=z;R>=0;R-=1){var le=v.get(R)||new Set;le.forEach(function(X){var q=X.parent,W=X.node;if(!(E(W)||!X.parent||ee.has(X.parent.key))){if(E(X.parent.node)){ee.add(q.key);return}var K=!0,se=!1;(q.children||[]).filter(function(fe){return!E(fe.node)}).forEach(function(fe){var Oe=fe.key,Se=M.has(Oe);K&&!Se&&(K=!1),!se&&(Se||N.has(Oe))&&(se=!0)}),K||M.delete(q.key),se&&N.add(q.key),ee.add(q.key)}})}return{checkedKeys:Array.from(M),halfCheckedKeys:Array.from(P(N,M))}}function S(g,I,v,z){var E=[],M;z?M=z:M=De;var N=new Set(g.filter(function(R){var le=!!(0,Ae.Z)(v,R);return le||E.push(R),le})),T=new Map,L=0;Object.keys(v).forEach(function(R){var le=v[R],X=le.level,q=T.get(X);q||(q=new Set,T.set(X,q)),q.add(le),L=Math.max(L,X)}),(0,me.ZP)(!E.length,"Tree missing follow keys: ".concat(E.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var ee;return I===!0?ee=te(N,T,L,M):ee=V(N,I.halfCheckedKeys,T,L,M),ee}},67841:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return me}});function me(Ae,P){return Ae[P]}},71430:function(un,Tt,x){"use strict";x.d(Tt,{F:function(){return X},H8:function(){return le},I8:function(){return R},km:function(){return E},oH:function(){return L},w$:function(){return M},zn:function(){return T}});var me=x(76190),Ae=x(94480),P=x(33885),De=x(75931),te=x(11592),V=x(2738),S=x(48736),g=x(67841),I=["children"];function v(q,W){return"".concat(q,"-").concat(W)}function z(q){return q&&q.type&&q.type.isTreeNode}function E(q,W){return q!=null?q:W}function M(q){var W=q||{},K=W.title,se=W._title,fe=W.key,Oe=W.children,Se=K||"title";return{title:Se,_title:se||[Se],key:fe||"key",children:Oe||"children"}}function N(q,W){var K=new Map;function se(fe){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(fe||[]).forEach(function(Se){var Ue=Se[W.key],J=Se[W.children];warning(Ue!=null,"Tree node must have a certain key: [".concat(Oe).concat(Ue,"]"));var ue=String(Ue);warning(!K.has(ue)||Ue===null||Ue===void 0,"Same 'key' exist in the Tree: ".concat(ue)),K.set(ue,!0),se(J,"".concat(Oe).concat(ue," > "))})}se(q)}function T(q){function W(K){var se=(0,te.Z)(K);return se.map(function(fe){if(!z(fe))return(0,S.ZP)(!fe,"Tree/TreeNode can only accept TreeNode as children."),null;var Oe=fe.key,Se=fe.props,Ue=Se.children,J=(0,De.Z)(Se,I),ue=(0,P.Z)({key:Oe},J),D=W(Ue);return D.length&&(ue.children=D),ue}).filter(function(fe){return fe})}return W(q)}function L(q,W,K){var se=M(K),fe=se._title,Oe=se.key,Se=se.children,Ue=new Set(W===!0?[]:W),J=[];function ue(D){var Ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(Me,we){for(var Te=v(Ve?Ve.pos:"0",we),ve=E(Me[Oe],Te),Fe,de=0;de<fe.length;de+=1){var Ee=fe[de];if(Me[Ee]!==void 0){Fe=Me[Ee];break}}var tt=(0,P.Z)((0,P.Z)({},(0,V.Z)(Me,[].concat((0,Ae.Z)(fe),[Oe,Se]))),{},{title:Fe,key:ve,parent:Ve,pos:Te,children:null,data:Me,isStart:[].concat((0,Ae.Z)(Ve?Ve.isStart:[]),[we===0]),isEnd:[].concat((0,Ae.Z)(Ve?Ve.isEnd:[]),[we===D.length-1])});return J.push(tt),W===!0||Ue.has(ve)?tt.children=ue(Me[Se]||[],tt):tt.children=[],tt})}return ue(q),J}function ee(q,W,K){var se={};(0,me.Z)(K)==="object"?se=K:se={externalGetKey:K},se=se||{};var fe=se,Oe=fe.childrenPropName,Se=fe.externalGetKey,Ue=fe.fieldNames,J=M(Ue),ue=J.key,D=J.children,Ve=Oe||D,Me;Se?typeof Se=="string"?Me=function(ve){return ve[Se]}:typeof Se=="function"&&(Me=function(ve){return Se(ve)}):Me=function(ve,Fe){return E(ve[ue],Fe)};function we(Te,ve,Fe,de){var Ee=Te?Te[Ve]:q,tt=Te?v(Fe.pos,ve):"0",it=Te?[].concat((0,Ae.Z)(de),[Te]):[];if(Te){var Je=Me(Te,tt),et={node:Te,index:ve,pos:tt,key:Je,parentPos:Fe.node?Fe.pos:null,level:Fe.level+1,nodes:it};W(et)}Ee&&Ee.forEach(function(Bt,Lt){we(Bt,Lt,{node:Te,pos:tt,level:Fe?Fe.level+1:-1},it)})}we(null)}function R(q){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=W.initWrapper,se=W.processEntity,fe=W.onProcessFinished,Oe=W.externalGetKey,Se=W.childrenPropName,Ue=W.fieldNames,J=arguments.length>2?arguments[2]:void 0,ue=Oe||J,D={},Ve={},Me={posEntities:D,keyEntities:Ve};return K&&(Me=K(Me)||Me),ee(q,function(we){var Te=we.node,ve=we.index,Fe=we.pos,de=we.key,Ee=we.parentPos,tt=we.level,it=we.nodes,Je={node:Te,nodes:it,index:ve,key:de,pos:Fe,level:tt},et=E(de,Fe);D[Fe]=Je,Ve[et]=Je,Je.parent=D[Ee],Je.parent&&(Je.parent.children=Je.parent.children||[],Je.parent.children.push(Je)),se&&se(Je,Me)},{externalGetKey:ue,childrenPropName:Se,fieldNames:Ue}),fe&&fe(Me),Me}function le(q,W){var K=W.expandedKeys,se=W.selectedKeys,fe=W.loadedKeys,Oe=W.loadingKeys,Se=W.checkedKeys,Ue=W.halfCheckedKeys,J=W.dragOverNodeKey,ue=W.dropPosition,D=W.keyEntities,Ve=(0,g.Z)(D,q),Me={eventKey:q,expanded:K.indexOf(q)!==-1,selected:se.indexOf(q)!==-1,loaded:fe.indexOf(q)!==-1,loading:Oe.indexOf(q)!==-1,checked:Se.indexOf(q)!==-1,halfChecked:Ue.indexOf(q)!==-1,pos:String(Ve?Ve.pos:""),dragOver:J===q&&ue===0,dragOverGapTop:J===q&&ue===-1,dragOverGapBottom:J===q&&ue===1};return Me}function X(q){var W=q.data,K=q.expanded,se=q.selected,fe=q.checked,Oe=q.loaded,Se=q.loading,Ue=q.halfChecked,J=q.dragOver,ue=q.dragOverGapTop,D=q.dragOverGapBottom,Ve=q.pos,Me=q.active,we=q.eventKey,Te=(0,P.Z)((0,P.Z)({},W),{},{expanded:K,selected:se,checked:fe,loaded:Oe,loading:Se,halfChecked:Ue,dragOver:J,dragOverGapTop:ue,dragOverGapBottom:D,pos:Ve,active:Me,key:we});return"props"in Te||Object.defineProperty(Te,"props",{get:function(){return(0,S.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),q}}),Te}},8224:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ae}});var me=x(4676);function Ae(P,De,te,V){var S=me.unstable_batchedUpdates?function(I){me.unstable_batchedUpdates(te,I)}:te;return P!=null&&P.addEventListener&&P.addEventListener(De,S,V),{remove:function(){P!=null&&P.removeEventListener&&P.removeEventListener(De,S,V)}}}},55468:function(un,Tt,x){"use strict";x.d(Tt,{g1:function(){return z},os:function(){return M}});var me=/margin|padding|width|height|max|min|offset/,Ae={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function De(N){return N.nodeType===1?N.ownerDocument.defaultView.getComputedStyle(N,null):{}}function te(N,T,L){if(T=T.toLowerCase(),L==="auto"){if(T==="height")return N.offsetHeight;if(T==="width")return N.offsetWidth}return T in Ae||(Ae[T]=me.test(T)),Ae[T]?parseFloat(L)||0:L}function V(N,T){var L=arguments.length,ee=De(N);return T=P[T]?"cssFloat"in N.style?"cssFloat":"styleFloat":T,L===1?ee:te(N,T,ee[T]||N.style[T])}function S(N,T,L){var ee=arguments.length;if(T=P[T]?"cssFloat"in N.style?"cssFloat":"styleFloat":T,ee===3)return typeof L=="number"&&me.test(T)&&(L="".concat(L,"px")),N.style[T]=L,L;for(var R in T)T.hasOwnProperty(R)&&S(N,R,T[R]);return De(N)}function g(N){return N===document.body?document.documentElement.clientWidth:N.offsetWidth}function I(N){return N===document.body?window.innerHeight||document.documentElement.clientHeight:N.offsetHeight}function v(){var N=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),T=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:N,height:T}}function z(){var N=document.documentElement.clientWidth,T=window.innerHeight||document.documentElement.clientHeight;return{width:N,height:T}}function E(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function M(N){var T=N.getBoundingClientRect(),L=document.documentElement;return{left:T.left+(window.pageXOffset||L.scrollLeft)-(L.clientLeft||document.body.clientLeft||0),top:T.top+(window.pageYOffset||L.scrollTop)-(L.clientTop||document.body.clientTop||0)}}},3465:function(un,Tt,x){"use strict";x.d(Tt,{G:function(){return De}});var me=x(47273),Ae=function(V){if((0,me.Z)()&&window.document.documentElement){var S=Array.isArray(V)?V:[V],g=window.document.documentElement;return S.some(function(I){return I in g.style})}return!1},P=function(V,S){if(!Ae(V))return!1;var g=document.createElement("div"),I=g.style[V];return g.style[V]=S,g.style[V]!==I};function De(te,V){return!Array.isArray(te)&&V!==void 0?P(te,V):Ae(te)}},48911:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return sr}});var me=x(54476),Ae=x(76190),P=x(33885),De=x(20068),te=x(42978),V=x(75931),S=x(92310),g=x.n(S),I=x(29301),v=x(70425),z=x(34280),E=x(59301),M=x(4676),N=E.forwardRef(function(G,ft){var F=G.height,m=G.offsetY,d=G.offsetX,C=G.children,re=G.prefixCls,Be=G.onInnerResize,H=G.innerProps,ie=G.rtl,Qe=G.extra,xe={},ye={display:"flex",flexDirection:"column"};return m!==void 0&&(xe={height:F,position:"relative",overflow:"hidden"},ye=(0,P.Z)((0,P.Z)({},ye),{},(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({transform:"translateY(".concat(m,"px)")},ie?"marginRight":"marginLeft",-d),"position","absolute"),"left",0),"right",0),"top",0))),E.createElement("div",{style:xe},E.createElement(I.Z,{onResize:function(xt){var he=xt.offsetHeight;he&&Be&&Be()}},E.createElement("div",(0,me.Z)({style:ye,className:g()((0,De.Z)({},"".concat(re,"-holder-inner"),re)),ref:ft},H),C,Qe)))});N.displayName="Filler";var T=N;function L(G){var ft=G.children,F=G.setRef,m=E.useCallback(function(d){F(d)},[]);return E.cloneElement(ft,{ref:m})}function ee(G,ft,F,m,d,C,re,Be){var H=Be.getKey;return G.slice(ft,F+1).map(function(ie,Qe){var xe=ft+Qe,ye=re(ie,xe,{style:{width:m},offsetX:d}),je=H(ie);return E.createElement(L,{key:je,setRef:function(he){return C(ie,he)}},ye)})}function R(G,ft,F,m){var d=F-G,C=ft-F,re=Math.min(d,C)*2;if(m<=re){var Be=Math.floor(m/2);return m%2?F+Be+1:F-Be}return d>C?F-(m-C):F+(m-d)}function le(G,ft,F){var m=G.length,d=ft.length,C,re;if(m===0&&d===0)return null;m<d?(C=G,re=ft):(C=ft,re=G);var Be={__EMPTY_ITEM__:!0};function H(xt){return xt!==void 0?F(xt):Be}for(var ie=null,Qe=Math.abs(m-d)!==1,xe=0;xe<re.length;xe+=1){var ye=H(C[xe]),je=H(re[xe]);if(ye!==je){ie=xe,Qe=Qe||ye!==H(re[xe+1]);break}}return ie===null?null:{index:ie,multiple:Qe}}function X(G,ft,F){var m=E.useState(G),d=(0,te.Z)(m,2),C=d[0],re=d[1],Be=E.useState(null),H=(0,te.Z)(Be,2),ie=H[0],Qe=H[1];return E.useEffect(function(){var xe=le(C||[],G||[],ft);(xe==null?void 0:xe.index)!==void 0&&(F==null||F(xe.index),Qe(G[xe.index])),re(G)},[G]),[ie]}var q=x(16089),W=(typeof navigator=="undefined"?"undefined":(0,Ae.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),K=W,se=function(G,ft,F,m){var d=(0,E.useRef)(!1),C=(0,E.useRef)(null);function re(){clearTimeout(C.current),d.current=!0,C.current=setTimeout(function(){d.current=!1},50)}var Be=(0,E.useRef)({top:G,bottom:ft,left:F,right:m});return Be.current.top=G,Be.current.bottom=ft,Be.current.left=F,Be.current.right=m,function(H,ie){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,xe=H?ie<0&&Be.current.left||ie>0&&Be.current.right:ie<0&&Be.current.top||ie>0&&Be.current.bottom;return Qe&&xe?(clearTimeout(C.current),d.current=!1):(!xe||d.current)&&re(),!d.current&&xe}};function fe(G,ft,F,m,d,C,re){var Be=(0,E.useRef)(0),H=(0,E.useRef)(null),ie=(0,E.useRef)(null),Qe=(0,E.useRef)(!1),xe=se(ft,F,m,d);function ye(Ie,Le){if(q.Z.cancel(H.current),!xe(!1,Le)){var ct=Ie;if(!ct._virtualHandled)ct._virtualHandled=!0;else return;Be.current+=Le,ie.current=Le,K||ct.preventDefault(),H.current=(0,q.Z)(function(){var Ut=Qe.current?10:1;re(Be.current*Ut,!1),Be.current=0})}}function je(Ie,Le){re(Le,!0),K||Ie.preventDefault()}var xt=(0,E.useRef)(null),he=(0,E.useRef)(null);function st(Ie){if(G){q.Z.cancel(he.current),he.current=(0,q.Z)(function(){xt.current=null},2);var Le=Ie.deltaX,ct=Ie.deltaY,Ut=Ie.shiftKey,kt=Le,tr=ct;(xt.current==="sx"||!xt.current&&Ut&&ct&&!Le)&&(kt=ct,tr=0,xt.current="sx");var Dr=Math.abs(kt),fr=Math.abs(tr);xt.current===null&&(xt.current=C&&Dr>fr?"x":"y"),xt.current==="y"?ye(Ie,tr):je(Ie,kt)}}function Ye(Ie){G&&(Qe.current=Ie.detail===ie.current)}return[st,Ye]}function Oe(G,ft,F,m){var d=E.useMemo(function(){return[new Map,[]]},[G,F.id,m]),C=(0,te.Z)(d,2),re=C[0],Be=C[1],H=function(Qe){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe,ye=re.get(Qe),je=re.get(xe);if(ye===void 0||je===void 0)for(var xt=G.length,he=Be.length;he<xt;he+=1){var st,Ye=G[he],Ie=ft(Ye);re.set(Ie,he);var Le=(st=F.get(Ie))!==null&&st!==void 0?st:m;if(Be[he]=(Be[he-1]||0)+Le,Ie===Qe&&(ye=he),Ie===xe&&(je=he),ye!==void 0&&je!==void 0)break}return{top:Be[ye-1]||0,bottom:Be[je]}};return H}var Se=x(67732),Ue=x(83652),J=function(){function G(){(0,Se.Z)(this,G),(0,De.Z)(this,"maps",void 0),(0,De.Z)(this,"id",0),(0,De.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ue.Z)(G,[{key:"set",value:function(F,m){this.diffRecords.set(F,this.maps[F]),this.maps[F]=m,this.id+=1}},{key:"get",value:function(F){return this.maps[F]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),G}(),ue=J;function D(G){var ft=parseFloat(G);return isNaN(ft)?0:ft}function Ve(G,ft,F){var m=E.useState(0),d=(0,te.Z)(m,2),C=d[0],re=d[1],Be=(0,E.useRef)(new Map),H=(0,E.useRef)(new ue),ie=(0,E.useRef)(0);function Qe(){ie.current+=1}function xe(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Qe();var xt=function(){var Ye=!1;Be.current.forEach(function(Ie,Le){if(Ie&&Ie.offsetParent){var ct=Ie.offsetHeight,Ut=getComputedStyle(Ie),kt=Ut.marginTop,tr=Ut.marginBottom,Dr=D(kt),fr=D(tr),Fr=ct+Dr+fr;H.current.get(Le)!==Fr&&(H.current.set(Le,Fr),Ye=!0)}}),Ye&&re(function(Ie){return Ie+1})};if(je)xt();else{ie.current+=1;var he=ie.current;Promise.resolve().then(function(){he===ie.current&&xt()})}}function ye(je,xt){var he=G(je),st=Be.current.get(he);xt?(Be.current.set(he,xt),xe()):Be.current.delete(he),!st!=!xt&&(xt?ft==null||ft(je):F==null||F(je))}return(0,E.useEffect)(function(){return Qe},[]),[ye,xe,H.current,C]}var Me=14/15;function we(G,ft,F){var m=(0,E.useRef)(!1),d=(0,E.useRef)(0),C=(0,E.useRef)(0),re=(0,E.useRef)(null),Be=(0,E.useRef)(null),H,ie=function(je){if(m.current){var xt=Math.ceil(je.touches[0].pageX),he=Math.ceil(je.touches[0].pageY),st=d.current-xt,Ye=C.current-he,Ie=Math.abs(st)>Math.abs(Ye);Ie?d.current=xt:C.current=he;var Le=F(Ie,Ie?st:Ye,!1,je);Le&&je.preventDefault(),clearInterval(Be.current),Le&&(Be.current=setInterval(function(){Ie?st*=Me:Ye*=Me;var ct=Math.floor(Ie?st:Ye);(!F(Ie,ct,!0)||Math.abs(ct)<=.1)&&clearInterval(Be.current)},16))}},Qe=function(){m.current=!1,H()},xe=function(je){H(),je.touches.length===1&&!m.current&&(m.current=!0,d.current=Math.ceil(je.touches[0].pageX),C.current=Math.ceil(je.touches[0].pageY),re.current=je.target,re.current.addEventListener("touchmove",ie,{passive:!1}),re.current.addEventListener("touchend",Qe,{passive:!0}))};H=function(){re.current&&(re.current.removeEventListener("touchmove",ie),re.current.removeEventListener("touchend",Qe))},(0,z.Z)(function(){return G&&ft.current.addEventListener("touchstart",xe,{passive:!0}),function(){var ye;(ye=ft.current)===null||ye===void 0||ye.removeEventListener("touchstart",xe),H(),clearInterval(Be.current)}},[G])}function Te(G){return Math.floor(Math.pow(G,.5))}function ve(G,ft){var F="touches"in G?G.touches[0]:G;return F[ft?"pageX":"pageY"]-window[ft?"scrollX":"scrollY"]}function Fe(G,ft,F){E.useEffect(function(){var m=ft.current;if(G&&m){var d=!1,C,re,Be=function(){q.Z.cancel(C)},H=function ye(){Be(),C=(0,q.Z)(function(){F(re),ye()})},ie=function(){d=!1,Be()},Qe=function(je){if(!(je.target.draggable||je.button!==0)){var xt=je;xt._virtualHandled||(xt._virtualHandled=!0,d=!0)}},xe=function(je){if(d){var xt=ve(je,!1),he=m.getBoundingClientRect(),st=he.top,Ye=he.bottom;if(xt<=st){var Ie=st-xt;re=-Te(Ie),H()}else if(xt>=Ye){var Le=xt-Ye;re=Te(Le),H()}else Be()}};return m.addEventListener("mousedown",Qe),m.ownerDocument.addEventListener("mouseup",ie),m.ownerDocument.addEventListener("mousemove",xe),m.ownerDocument.addEventListener("dragend",ie),function(){m.removeEventListener("mousedown",Qe),m.ownerDocument.removeEventListener("mouseup",ie),m.ownerDocument.removeEventListener("mousemove",xe),m.ownerDocument.removeEventListener("dragend",ie),Be()}}},[G])}var de=10;function Ee(G,ft,F,m,d,C,re,Be){var H=E.useRef(),ie=E.useState(null),Qe=(0,te.Z)(ie,2),xe=Qe[0],ye=Qe[1];return(0,z.Z)(function(){if(xe&&xe.times<de){if(!G.current){ye(function(oi){return(0,P.Z)({},oi)});return}C();var je=xe.targetAlign,xt=xe.originAlign,he=xe.index,st=xe.offset,Ye=G.current.clientHeight,Ie=!1,Le=je,ct=null;if(Ye){for(var Ut=je||xt,kt=0,tr=0,Dr=0,fr=Math.min(ft.length-1,he),Fr=0;Fr<=fr;Fr+=1){var Lr=d(ft[Fr]);tr=kt;var mr=F.get(Lr);Dr=tr+(mr===void 0?m:mr),kt=Dr}for(var cr=Ut==="top"?st:Ye-st,Kr=fr;Kr>=0;Kr-=1){var fn=d(ft[Kr]),_n=F.get(fn);if(_n===void 0){Ie=!0;break}if(cr-=_n,cr<=0)break}switch(Ut){case"top":ct=tr-st;break;case"bottom":ct=Dr-Ye+st;break;default:{var ln=G.current.scrollTop,xn=ln+Ye;tr<ln?Le="top":Dr>xn&&(Le="bottom")}}ct!==null&&re(ct),ct!==xe.lastTop&&(Ie=!0)}Ie&&ye((0,P.Z)((0,P.Z)({},xe),{},{times:xe.times+1,targetAlign:Le,lastTop:ct}))}},[xe,G.current]),function(je){if(je==null){Be();return}if(q.Z.cancel(H.current),typeof je=="number")re(je);else if(je&&(0,Ae.Z)(je)==="object"){var xt,he=je.align;"index"in je?xt=je.index:xt=ft.findIndex(function(Ie){return d(Ie)===je.key});var st=je.offset,Ye=st===void 0?0:st;ye({times:0,index:xt,offset:Ye,originAlign:he})}}}var tt=E.forwardRef(function(G,ft){var F=G.prefixCls,m=G.rtl,d=G.scrollOffset,C=G.scrollRange,re=G.onStartMove,Be=G.onStopMove,H=G.onScroll,ie=G.horizontal,Qe=G.spinSize,xe=G.containerSize,ye=G.style,je=G.thumbStyle,xt=G.showScrollBar,he=E.useState(!1),st=(0,te.Z)(he,2),Ye=st[0],Ie=st[1],Le=E.useState(null),ct=(0,te.Z)(Le,2),Ut=ct[0],kt=ct[1],tr=E.useState(null),Dr=(0,te.Z)(tr,2),fr=Dr[0],Fr=Dr[1],Lr=!m,mr=E.useRef(),cr=E.useRef(),Kr=E.useState(xt),fn=(0,te.Z)(Kr,2),_n=fn[0],ln=fn[1],xn=E.useRef(),oi=function(){xt===!0||xt===!1||(clearTimeout(xn.current),ln(!0),xn.current=setTimeout(function(){ln(!1)},3e3))},_r=C-xe||0,Ai=xe-Qe||0,Oi=E.useMemo(function(){if(d===0||_r===0)return 0;var sa=d/_r;return sa*Ai},[d,_r,Ai]),mi=function(be){be.stopPropagation(),be.preventDefault()},Wi=E.useRef({top:Oi,dragging:Ye,pageY:Ut,startTop:fr});Wi.current={top:Oi,dragging:Ye,pageY:Ut,startTop:fr};var Gi=function(be){Ie(!0),kt(ve(be,ie)),Fr(Wi.current.top),re(),be.stopPropagation(),be.preventDefault()};E.useEffect(function(){var sa=function(Xe){Xe.preventDefault()},be=mr.current,Ne=cr.current;return be.addEventListener("touchstart",sa,{passive:!1}),Ne.addEventListener("touchstart",Gi,{passive:!1}),function(){be.removeEventListener("touchstart",sa),Ne.removeEventListener("touchstart",Gi)}},[]);var ta=E.useRef();ta.current=_r;var _o=E.useRef();_o.current=Ai,E.useEffect(function(){if(Ye){var sa,be=function(Xe){var Pt=Wi.current,Dt=Pt.dragging,Er=Pt.pageY,rr=Pt.startTop;q.Z.cancel(sa);var Nr=mr.current.getBoundingClientRect(),Hr=xe/(ie?Nr.width:Nr.height);if(Dt){var an=(ve(Xe,ie)-Er)*Hr,jr=rr;!Lr&&ie?jr-=an:jr+=an;var Rr=ta.current,en=_o.current,wn=en?jr/en:0,on=Math.ceil(wn*Rr);on=Math.max(on,0),on=Math.min(on,Rr),sa=(0,q.Z)(function(){H(on,ie)})}},Ne=function(){Ie(!1),Be()};return window.addEventListener("mousemove",be,{passive:!0}),window.addEventListener("touchmove",be,{passive:!0}),window.addEventListener("mouseup",Ne,{passive:!0}),window.addEventListener("touchend",Ne,{passive:!0}),function(){window.removeEventListener("mousemove",be),window.removeEventListener("touchmove",be),window.removeEventListener("mouseup",Ne),window.removeEventListener("touchend",Ne),q.Z.cancel(sa)}}},[Ye]),E.useEffect(function(){return oi(),function(){clearTimeout(xn.current)}},[d]),E.useImperativeHandle(ft,function(){return{delayHidden:oi}});var ra="".concat(F,"-scrollbar"),bi={position:"absolute",visibility:_n?null:"hidden"},Ki={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ie?(Object.assign(bi,{height:8,left:0,right:0,bottom:0}),Object.assign(Ki,(0,De.Z)({height:"100%",width:Qe},Lr?"left":"right",Oi))):(Object.assign(bi,(0,De.Z)({width:8,top:0,bottom:0},Lr?"right":"left",0)),Object.assign(Ki,{width:"100%",height:Qe,top:Oi})),E.createElement("div",{ref:mr,className:g()(ra,(0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(ra,"-horizontal"),ie),"".concat(ra,"-vertical"),!ie),"".concat(ra,"-visible"),_n)),style:(0,P.Z)((0,P.Z)({},bi),ye),onMouseDown:mi,onMouseMove:oi},E.createElement("div",{ref:cr,className:g()("".concat(ra,"-thumb"),(0,De.Z)({},"".concat(ra,"-thumb-moving"),Ye)),style:(0,P.Z)((0,P.Z)({},Ki),je),onMouseDown:Gi}))}),it=tt,Je=20;function et(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,F=G/ft*G;return isNaN(F)&&(F=0),F=Math.max(F,Je),Math.floor(F)}var Bt=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Lt=[],Nt={overflowY:"auto",overflowAnchor:"none"};function ur(G,ft){var F=G.prefixCls,m=F===void 0?"rc-virtual-list":F,d=G.className,C=G.height,re=G.itemHeight,Be=G.fullHeight,H=Be===void 0?!0:Be,ie=G.style,Qe=G.data,xe=G.children,ye=G.itemKey,je=G.virtual,xt=G.direction,he=G.scrollWidth,st=G.component,Ye=st===void 0?"div":st,Ie=G.onScroll,Le=G.onVirtualScroll,ct=G.onVisibleChange,Ut=G.innerProps,kt=G.extraRender,tr=G.styles,Dr=G.showScrollBar,fr=Dr===void 0?"optional":Dr,Fr=(0,V.Z)(G,Bt),Lr=E.useCallback(function(Vn){return typeof ye=="function"?ye(Vn):Vn==null?void 0:Vn[ye]},[ye]),mr=Ve(Lr,null,null),cr=(0,te.Z)(mr,4),Kr=cr[0],fn=cr[1],_n=cr[2],ln=cr[3],xn=!!(je!==!1&&C&&re),oi=E.useMemo(function(){return Object.values(_n.maps).reduce(function(Vn,Mn){return Vn+Mn},0)},[_n.id,_n.maps]),_r=xn&&Qe&&(Math.max(re*Qe.length,oi)>C||!!he),Ai=xt==="rtl",Oi=g()(m,(0,De.Z)({},"".concat(m,"-rtl"),Ai),d),mi=Qe||Lt,Wi=(0,E.useRef)(),Gi=(0,E.useRef)(),ta=(0,E.useRef)(),_o=(0,E.useState)(0),ra=(0,te.Z)(_o,2),bi=ra[0],Ki=ra[1],sa=(0,E.useState)(0),be=(0,te.Z)(sa,2),Ne=be[0],ke=be[1],Xe=(0,E.useState)(!1),Pt=(0,te.Z)(Xe,2),Dt=Pt[0],Er=Pt[1],rr=function(){Er(!0)},Nr=function(){Er(!1)},Hr={getKey:Lr};function an(Vn){Ki(function(Mn){var Li;typeof Vn=="function"?Li=Vn(Mn):Li=Vn;var Zi=ti(Li);return Wi.current.scrollTop=Zi,Zi})}var jr=(0,E.useRef)({start:0,end:mi.length}),Rr=(0,E.useRef)(),en=X(mi,Lr),wn=(0,te.Z)(en,1),on=wn[0];Rr.current=on;var On=E.useMemo(function(){if(!xn)return{scrollHeight:void 0,start:0,end:mi.length-1,offset:void 0};if(!_r){var Vn;return{scrollHeight:((Vn=Gi.current)===null||Vn===void 0?void 0:Vn.offsetHeight)||0,start:0,end:mi.length-1,offset:void 0}}for(var Mn=0,Li,Zi,Fa,Is=mi.length,za=0;za<Is;za+=1){var fa=mi[za],Io=Lr(fa),Bo=_n.get(Io),Po=Mn+(Bo===void 0?re:Bo);Po>=bi&&Li===void 0&&(Li=za,Zi=Mn),Po>bi+C&&Fa===void 0&&(Fa=za),Mn=Po}return Li===void 0&&(Li=0,Zi=0,Fa=Math.ceil(C/re)),Fa===void 0&&(Fa=mi.length-1),Fa=Math.min(Fa+1,mi.length-1),{scrollHeight:Mn,start:Li,end:Fa,offset:Zi}},[_r,xn,bi,mi,ln,C]),Qn=On.scrollHeight,di=On.start,Nn=On.end,Gn=On.offset;jr.current.start=di,jr.current.end=Nn,E.useLayoutEffect(function(){var Vn=_n.getRecord();if(Vn.size===1){var Mn=Array.from(Vn.keys())[0],Li=Vn.get(Mn),Zi=mi[di];if(Zi&&Li===void 0){var Fa=Lr(Zi);if(Fa===Mn){var Is=_n.get(Mn),za=Is-re;an(function(fa){return fa+za})}}}_n.resetRecord()},[Qn]);var Vt=E.useState({width:0,height:C}),Xt=(0,te.Z)(Vt,2),Yt=Xt[0],er=Xt[1],jt=function(Mn){er({width:Mn.offsetWidth,height:Mn.offsetHeight})},or=(0,E.useRef)(),lr=(0,E.useRef)(),Pr=E.useMemo(function(){return et(Yt.width,he)},[Yt.width,he]),yn=E.useMemo(function(){return et(Yt.height,Qn)},[Yt.height,Qn]),Bn=Qn-C,li=(0,E.useRef)(Bn);li.current=Bn;function ti(Vn){var Mn=Vn;return Number.isNaN(li.current)||(Mn=Math.min(Mn,li.current)),Mn=Math.max(Mn,0),Mn}var Si=bi<=0,Yn=bi>=Bn,jn=Ne<=0,wi=Ne>=he,yi=se(Si,Yn,jn,wi),xi=function(){return{x:Ai?-Ne:Ne,y:bi}},ci=(0,E.useRef)(xi()),Ci=(0,v.useEvent)(function(Vn){if(Le){var Mn=(0,P.Z)((0,P.Z)({},xi()),Vn);(ci.current.x!==Mn.x||ci.current.y!==Mn.y)&&(Le(Mn),ci.current=Mn)}});function $i(Vn,Mn){var Li=Vn;Mn?((0,M.flushSync)(function(){ke(Li)}),Ci()):an(Li)}function ei(Vn){var Mn=Vn.currentTarget.scrollTop;Mn!==bi&&an(Mn),Ie==null||Ie(Vn),Ci()}var Ni=function(Mn){var Li=Mn,Zi=he?he-Yt.width:0;return Li=Math.max(Li,0),Li=Math.min(Li,Zi),Li},Ha=(0,v.useEvent)(function(Vn,Mn){Mn?((0,M.flushSync)(function(){ke(function(Li){var Zi=Li+(Ai?-Vn:Vn);return Ni(Zi)})}),Ci()):an(function(Li){var Zi=Li+Vn;return Zi})}),si=fe(xn,Si,Yn,jn,wi,!!he,Ha),pn=(0,te.Z)(si,2),cn=pn[0],Xn=pn[1];we(xn,Wi,function(Vn,Mn,Li,Zi){var Fa=Zi;return yi(Vn,Mn,Li)?!1:!Fa||!Fa._virtualHandled?(Fa&&(Fa._virtualHandled=!0),cn({preventDefault:function(){},deltaX:Vn?Mn:0,deltaY:Vn?0:Mn}),!0):!1}),Fe(_r,Wi,function(Vn){an(function(Mn){return Mn+Vn})}),(0,z.Z)(function(){function Vn(Li){var Zi=Si&&Li.detail<0,Fa=Yn&&Li.detail>0;xn&&!Zi&&!Fa&&Li.preventDefault()}var Mn=Wi.current;return Mn.addEventListener("wheel",cn,{passive:!1}),Mn.addEventListener("DOMMouseScroll",Xn,{passive:!0}),Mn.addEventListener("MozMousePixelScroll",Vn,{passive:!1}),function(){Mn.removeEventListener("wheel",cn),Mn.removeEventListener("DOMMouseScroll",Xn),Mn.removeEventListener("MozMousePixelScroll",Vn)}},[xn,Si,Yn]),(0,z.Z)(function(){if(he){var Vn=Ni(Ne);ke(Vn),Ci({x:Vn})}},[Yt.width,he]);var Kn=function(){var Mn,Li;(Mn=or.current)===null||Mn===void 0||Mn.delayHidden(),(Li=lr.current)===null||Li===void 0||Li.delayHidden()},fi=Ee(Wi,mi,_n,re,Lr,function(){return fn(!0)},an,Kn);E.useImperativeHandle(ft,function(){return{nativeElement:ta.current,getScrollInfo:xi,scrollTo:function(Mn){function Li(Zi){return Zi&&(0,Ae.Z)(Zi)==="object"&&("left"in Zi||"top"in Zi)}Li(Mn)?(Mn.left!==void 0&&ke(Ni(Mn.left)),fi(Mn.top)):fi(Mn)}}}),(0,z.Z)(function(){if(ct){var Vn=mi.slice(di,Nn+1);ct(Vn,mi)}},[di,Nn,mi]);var Xi=Oe(mi,Lr,_n,re),Ii=kt==null?void 0:kt({start:di,end:Nn,virtual:_r,offsetX:Ne,offsetY:Gn,rtl:Ai,getSize:Xi}),Ua=ee(mi,di,Nn,he,Ne,Kr,xe,Hr),Aa=null;C&&(Aa=(0,P.Z)((0,De.Z)({},H?"height":"maxHeight",C),Nt),xn&&(Aa.overflowY="hidden",he&&(Aa.overflowX="hidden"),Dt&&(Aa.pointerEvents="none")));var Co={};return Ai&&(Co.dir="rtl"),E.createElement("div",(0,me.Z)({ref:ta,style:(0,P.Z)((0,P.Z)({},ie),{},{position:"relative"}),className:Oi},Co,Fr),E.createElement(I.Z,{onResize:jt},E.createElement(Ye,{className:"".concat(m,"-holder"),style:Aa,ref:Wi,onScroll:ei,onMouseEnter:Kn},E.createElement(T,{prefixCls:m,height:Qn,offsetX:Ne,offsetY:Gn,scrollWidth:he,onInnerResize:fn,ref:Gi,innerProps:Ut,rtl:Ai,extra:Ii},Ua))),_r&&Qn>C&&E.createElement(it,{ref:or,prefixCls:m,scrollOffset:bi,scrollRange:Qn,rtl:Ai,onScroll:$i,onStartMove:rr,onStopMove:Nr,spinSize:yn,containerSize:Yt.height,style:tr==null?void 0:tr.verticalScrollBar,thumbStyle:tr==null?void 0:tr.verticalScrollBarThumb,showScrollBar:fr}),_r&&he>Yt.width&&E.createElement(it,{ref:lr,prefixCls:m,scrollOffset:Ne,scrollRange:he,rtl:Ai,onScroll:$i,onStartMove:rr,onStopMove:Nr,spinSize:Pr,containerSize:Yt.width,horizontal:!0,style:tr==null?void 0:tr.horizontalScrollBar,thumbStyle:tr==null?void 0:tr.horizontalScrollBarThumb,showScrollBar:fr}))}var ar=E.forwardRef(ur);ar.displayName="List";var Cr=ar,sr=Cr},45614:function(un){"use strict";un.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAB9KADAAQAAAABAAAB9AAAAAB3bs6AAAA90UlEQVR4Ae3dB5xU5b3/8d+ACAgKCKIg3YqoIKJiA1FUjCUaY4yxkehVo9FrTPzHkhtJYqJpNz3mplyNV2NsicaoiCgiKIoiFhArxYJ0BKQI7s7/97AB2d2Z2ZnZ55zzlM95vTbuzjnnKe/fhu+emVNywlJUIH/AiAHSaqv9pLa2v+Ra9Je89JJ8vovu0EVyuXZFd2QFAgiEIfDZY6bLVd8cksvlasOYELMIWWCrkCdX6dzy+xzWSdq1PVVDe5TuO1xDu4ts/L9xC9Ewr1tyuUqbZXsEEPBVoFfP/eS3N83K5/N7aqhv+lfA19kw7sAFok+n/L7HtJM2+ZNEas+QFi2O1XpvHXjNmR4CCJQrcOl5Ih22E5k79w1Zsqh/bswYjtTLtWO71AX00DPOJS/7t8oPPeZc2ab2GWkhf9UwP1ElCPM4fx2YNQKlBfr02V26dJ2VHzMm2n8zSwOx1gWBKH8584ccM0wO6vicvo9+i0hubxcKwRgQQMBxAULd8QIxvKgCPb/vET3yB428R2rzE/Ukt4GUHwEEEKhIgFCviIuN0xWIJtDzAw7eXrZpdaee6HZqusT0hgACQQkQ6kGVM6TJRBHo+SEj9pDt2k/Twh0SUvGYCwIIZCRAqGcET7elBIIP9PzgEftLi5aT9LKzPqUgWIcAAghUJECoV8TFxskLBB3o+YOPGiWtWj4pLXI7JE9JDwggEJ0AoR5dyV2ecLCBnh967Eipyd2nn5lv43IBGBsCCHguQKh7XsBwhh9koG8M89qaf+mReetwSsVMEEDAWQFC3dnSxDSw4AI9f/BpbSVX+0fCPKZfY+aKgAMChLoDRYh7CMEFuuQ/vIkT4OL+pWb2CGQmQKhnRk/Hojc9DWjJDz7qcJ3OuQFNiakggIBvAoS6bxULZrzBBLq5N7u0yv05mMowEQQQ8FeAUPe3dh6PPJhAl0M6X6tntO/mcS0YOgIIhCRAqIdUTS/mEkSg5/sc0UafYX6BF+IMEgEE4hEg1OOptQMzDSLQZcetLtIT4bo54MkQEEAAgfoChHp9D35KTCCMQG8hFyUmRMMIIIBAcwUI9eYKsn8ZAt4Hen7QEYMkn9ujjLmyCQIIIJCdAKGenX0kPXsf6NK21ehIasU0EUDAdwFC3fcKOj1+/wO9Nn+y08IMDgEEENhSgFDfUoPvLQp4Hej5oaP66KVqvS160BQCCCCQvAChnrxxhD14HegiNUdEWDOmjAACIQgQ6iFU0ak5+B3oORnklCaDQQABBCoRINQr0WLbJgT8DnSRPZuYH6sRQAABtwUIdbfr49Ho/A702jxH6B79sjFUBBAoIkCoF4Hh5UoE/A70vHSsZLJsiwACCDgrQKg7WxpfBuZtoG+8f3uLXGtfoBknAggg0KQAod4kERsUF/A20GUHjs6Ll5U1CCDgrQCh7m3psh64v4FeuzVvt2f920P/CCCQjAChnoxr4K36G+itWqwLvDZMDwEEYhYg1GOuflVz9zfQq5ouOyGAAAIeCRDqHhUr+6ES6NnXgBEggAACxQUI9eI2rKknQKDX4+AHBBBAwEEBQt3Borg3JALdvZowIgQQQKCxAKHe2IRX6gkQ6PU4+AEBBBBwWIBQd7g42Q+NQM++BowAAQQQKF+AUC/fKrItCfTICs50EUAgAAFCPYAi2p8CgW7flBYRQACB5AUI9eSNPeuBQPesYAwXAQQQ2CxAqG+m4BsRAp3fAgQQQMBnAULd5+pZHTuBbpWTxhBAAIEMBAj1DNDd65JAd68mjAgBBBCoXIBQr9wssD0I9MAKynQQQCBiAUI94uLzGXrUxWfyCCAQoAChHmBRy5sSR+jlObEVAggg4I8Aoe5PrSyOlEC3iElTCCCAgDMChLozpUhrIAR6WtL0gwACCKQtQKinLZ5pfwR6pvx0jgACCCQsQKgnDOxO8wS6O7VgJAgggEAyAoR6Mq6OtUqgO1YQhoMAAggkIkCoJ8LqUqMEukvVYCwIIIBAkgKEepK6mbdNoGdeAgaAAAIIpChAqKeInW5XBHq63vSGAAIIZC9AqGdfgwRGQKAngEqTCCCAgPMChLrzJap0gAR6pWJsjwACCIQiQKiHUsmN8yDQgyonk0EAAQQqFCDUKwRzd3MC3d3aMDIEEEAgHQFCPR3nhHsh0BMGpnkEEEDACwFC3YsylRokgV5Kh3UIIIBATAKEutfVJtC9Lh+DRwABBCwLEOqWQdNrjkBPz5qeEEAAAT8ECHU/6tRglAR6AxB+RAABBBBQAULdu18DAt27kjFgBBBAICUBQj0laDvdEOh2HGkFAQQQCFOAUPemrgS6N6VioAgggEBGAoR6RvCVdUugV+bF1ggggECcAoS683Un0J0vEQNEAAEEHBEg1B0pROFhEOiFXXgVAQQQQKCQAKFeSMWJ1wh0J8rAIBBAAAGPBAh1J4tFoDtZFgaFAAIIOC5AqDtXIALduZIwIAQQQMATAULdqUIR6E6Vg8EggAACngkQ6s4UjEB3phQMBAEEEPBUgFB3onAEuhNlYBAIIICA5wKEeuYFJNAzLwEDQAABBAIRINQzLSSBnik/nSOAAAKBCRDqmRWUQM+Mno4RQACBQAUI9UwKS6Bnwk6nCCCAQOAChHrqBSbQUyenQwQQQCASAUI91UIT6Kly0xkCCCAQmQChnlrBCfTUqOkIAQQQiFSAUE+l8AR6Ksx0ggACCEQuQKgn/gtAoCdOTAcIIIAAAhsFCPVEfxEI9ER5aRwBBBBAoJ4AoV6Pw+YPBLpNTdpCAAEEEGhagFBv2qiKLQj0KtDYBQEEEECgmQKEejMBG+9OoDc24RUEEEAAgTQECHWrygS6VU4aQwABBBCoSIBQr4ir1MYEeikd1iGAAAIIJC9AqFsxJtCtMNIIAggggECzBAj1ZvGZnQn0ZhPSAAIIIICAFQFCvVmMBHqz+NgZAQSCFqipCXp6Tk6OUK+6LAR61XTsiAACwQusXx/8FJ2cIKFeVVkI9KrY2AkBBKIQ2LAhimk6OUlCveKyEOgVk7EDAghEI7ByVTRTdXKihHpFZSHQK+JiYwQQiEpg6bKopuvkZAn1sstCoJdNxYYIIBCdwNLl0U3ZyQkT6mWVhUAvi4mNEEAgSoEFi6KctpOTJtSbLAuB3iQRGyCAQLQCS1eIrFgZ7fSdmzihXrIkBHpJHlYigED0Au+9Hz2BUwCEetFyEOhFaViBAAIIqMAbb8PgmgChXrAiBHpBFl5EAAEE/i3wmgb6mjVwuCZAqDeqCIHeiIQXEEAAgS0EampF3uQofQsRd74l1OvVgkCvx8EPCCCAQAGBF2eI5PMFVvBS5gKE+uYSEOibKfgGAQQQKCLw7gKR2XOKrOTlzAUI9Y0lINAz/01kAAgg4IXA0895McxoB7kp1EVysRoQ6LFWnnkjgEBlAvPmi8ycVdk+bJ2ugAn13/zutfyYMVFmW5STTvc3jN4QQCAYgXFPiKxbF8x0gpzIpiP1CEOdQA/yN5pJIYBAIgKrNcwnPJlI0zRqUWBTqEf29juBbvF3iKYQQCACgWkzeevdhzJH+PY7ge7DLyZjRAABtwQeflzkQ73PO4vbApEdqRPobv86MjoEEHBRYN16kTvu5cEtLtam4ZgiOlIn0BsWn58RQACBcgTMk9j+eg9H6uVYZb1NJEfq3l6vlx86qo9IDXd6yPr/KPSPQOwC7duKnPE5kR27xi7h/vznzn1DlizqnxszRu/nG97CEXp4NWVGCCCQpsBHa0X+cqfI3Hlp9kpf1QgEfqTOEXo1vxTsgwACCDQUaKH/nB5/lMjAfRqu4WfXBAI9UucI3bVfNMaDAAJ+CtTqw1seGC/y2EQ/xx/TqAM9UucIPaZfYuaKAALpCOzQSeTIw0R22zWd/uilOoHAjtS3qk6BvRBAAAEEigosXi5y5wMiu/QUGTpEpG+fopuyIkMBc6QuMkvfW9lTj271P34vHKH7XT9GjwACPgjs1FnkoP1Fdtcj9tatfRhxXGOc984bcslF3oc6gR7Xry2zRQCBrAX20lDfrZ9Izx4iHTtkPRr63yQQQKgT6JuKyX8RQACBtAU6thfZuZtI1y4i2+vn7h23E2m7jX614Ug+7VqY/jwPdQI9i18a+kQAAQQQcFSgZd/cM2PnOjq4ksPisrWSPKxEAAEEEEDADwEC3Y86MUoEEEAAAQRKChDoJXlYiQACCCCAgB8CBLofdWKUCCCAAAIIlBQg0EvysBIBBBBAAAE/BAh0P+rEKBFAAAEEECgpQKCX5GElAggggAACfggQ6H7UiVEigAACCCBQUoBAL8nDSgQQQAABBPwQIND9qBOjRAABBBBAoKQAgV6Sh5UIIIAAAgj4IUCg+1EnRokAAggggEBJAQK9JA8rEUAAAQQQ8EOAQPejTowSAQQQQACBkgIEekkeViKAAAIIIOCHAIHuR50YJQIIIIAAAiUFCPSSPKxEAAEEEEDADwEC3Y86MUoEEEAAAQRKChDoJXlYiQACCCCAgB8CBLofdWKUCCCAAAIIlBQg0EvysBIBBBBAAAE/BAh0P+rEKBFAAAEEECgpQKCX5GElAggggAACfggQ6H7UiVEigAACCCBQUoBAL8nDSgQQQAABBPwQIND9qBOjRAABBBBAoKQAgV6Sh5UIIIAAAgj4IUCg+1EnRokAAggggEBJAQK9JA8rEUAAAQQQ8EOAQPejTowSAQQQQACBkgIEekkeViKAAAIIIOCHAIHuR50YJQIIIIAAAiUFCPSSPKxEAAEEEEDADwEC3Y86MUoEEEAAAQRKChDoJXlYiQACCCCAgB8CBLofdWKUCCCAAAIIlBQg0EvysBIBBBBAAAE/BAh0P+rEKBFAAAEEECgpQKCX5GElAggggAACfggQ6H7UiVEigAACCCBQUoBAL8nDSgQQQAABBPwQIND9qBOjRAABBBBAoKTAViXXshIBBNwQ2KGTSBf96tBBJJcTWbtWZOFikQ+WuDE+RoEAApkLEOiZl4ABINBAoLOG9vBDRAb0F9l1F5Hdd2uwQYMflyzVcF8oMm26yLjHRd5+t8EG/IgAAjEIEOgxVJk5+iEw/CCRM08X2WfvysbbpbMevevXgL1EzjlTZMZMkbvuFXl0cmXtsDUCCHgtQKB7XT4GH4TAAD0Cv/RCkYH72pnO3gNEzNf574j85XaRhybYaZdWEEDAaQEC3enyMLigBcxb65ddIHLM0clMs1cvkf+6WuSE40SuvV5k+cpk+qFVBBBwQoCz3J0oA4OITqDPziJ/+GVyYb4l6H6DRG65SWTPvlu+yvcIIBCYAIEeWEGZjgcC/ftpmP9apHv39AbbdQeRm/QPiIMHp9cnPSGAQKoCBHqq3HQWvYC5/OxnN4ps2z59ijZtRH70fZH+euY8CwIIBCdAoAdXUibktMAvbhDp1DG7IbZqJXLDd/V69nbZjYGeEUAgEQECPRFWGkWggMBF54j007fbs1527Cpy9RVZj4L+EUDAsgCBbhmU5hAoKNBbPy8/96yCqzJ5cfjhevMave6dBQEEghEg0IMpJRNxWuB8PTp3bbnsq66NiPEggEAzBAj0ZuCxKwJlCfTcSfIjhpe1aaobmbPsTxyZapd0hgACyQkQ6MnZ0jICdQJnny65li3d1DC3mmVBAIEgBAj0IMrIJJwVMHeDO/F4Z4cnvXvrLWf3dHd8jAwBBMoWINDLpmJDBKoQGHZwFTulvMuRw1LukO4QQCAJAQI9CVXaRGCTwCFDN33n7n+H6RnvLAgg4L0Age59CZmAswJb67OPDtjf2eFtHthOO4rs0nPzj3yDAAJ+ChDoftaNUfsgcKA+FKV1ax9GKnIg93j3o1CMEoHiAjw+tbgNaxBonkBfPeHM5jJnjshTz4jk83WtHjhEZI/d7fQwaKDIHffbaYtWEEAgEwECPRN2Oo1CoIc+ItXWsuojkS9dWL+1xUvsBfqu/eq3zU8IIOCdAG+5e1cyBuyNQM8e9oY6e3bjtqa92Pi1al8xN5kxn/mzIICAtwIEurelY+DOC/SwGOhvvd14urPfE1m2vPHr1b6yB0fp1dKxHwIuCBDoLlSBMYQpsEMXe/N6q8ARuml9usWj9B56lM6CAALeChDo3paOgUclMGde4ekWOnIvvGXTr3bevult2AIBBJwVINCdLQ0D81qgQzu7w1+6rHB7b+uZ77aWLp1ttUQ7CCCQgQCBngE6XUYg0LaN3UkuXFq4vTcKfLZeeMumX92+U9PbsAUCCDgrQKA7WxoG5rVAG4uBbi5Z21BTmGOhHrmvXl14XaWvtmtf6R5sjwACDgkQ6A4Vg6EEJLB+vb3JNBXYCxfa6av11nbaoRUEEMhEgEDPhJ1OgxdYZemo2UDlcqW5ln9Yen25a325TW2582E7BCITINAjKzjTTUlg1ZqUOtJulhU5Ya7SEWzNEXqlZGyPgEsCBLpL1WAsYQmsXZvOfGzdXKYl/xykUzB6QSAZAf4fnIwrrSIg8pGlt91btiytue7j0uvLXbvhk3K3ZDsEEHBQgEB3sCgMKRCBRYvsTKTDdqXb2WDpBLyaImfSl+6dtQgg4IgAge5IIRhGgAILLQV6q1YipW5UY+vImkAP8JeQKcUkQKDHVG3mmq7ABwvs9delxG1ZP7H0VrnNS+3szZyWEECgTAECvUwoNkOgYgFbR+im4647FO/e1uVmtj7zLz5S1iCAQIICBHqCuDQducD8D+wB9C7xKNZttrHTz6pVdtqhFQQQyESAQM+EnU6jEJj5ur1p9uldvK12lgKdI/TixqxBwAMBAt2DIjFETwU+1HuwLynyUJVKp9S7V/E9bAX6ypXF+2ANAgg4L0CgO18iBui1wJtv2Rl+v37F29m+xAlzxfdqvMbWDWoat8wrCCCQggCBngIyXUQs8PZsO5PfbluRXYscpXfvZqePRUvstEMrCCCQiQCBngk7nUYjYOsI3YANGVSYrXv3wq9X+uoCS9fNV9ov2yOAgBUBAt0KI40gUERg2stFVlTx8r77NN6pX4mz3xtvXfqVdy2elV+6J9YigEACAgR6Aqg0icBmgaUrRObN2/xjs74ZNLDx7rv1a/xaNa98qOOsqa1mT/ZBAAFHBAh0RwrBMAIWeHmGncl16igycM/6bQ3oX//nan/6gKPzaunYDwFXBAh0VyrBOMIVsBXoRmjYofWd9rIU6O+9V79dfkIAAe8ECHTvSsaAvROYOt3ekA8dWr+t3Xat/3O1P73PEXq1dOyHgCsCBLorlWAc4QosWiYy29Lla731jnG79KyzOnBfka23tuP2zrt22qEVBBDITIBAz4yejqMSmPq8vel+/rN1bR04xF6b77xvry1aQgCBTAQI9EzY6TQ6gSlT7U35mJEi7drodemDrbSZr9Wz29+w9A6ClRHRCAIIVCNAoFejxj4IVCowVa9HX7Om0r0Kb2+ernbG50T22L3w+gpfzZkT4jbUVLgXmyOAgGsCBLprFWE84QrYfNv9vNH2nOZYuk7e3ohoCQEEqhAg0KtAYxcEqhKY9FRVuyW+05y5iXdBBwggkLwAgZ68MT0gUCcw4Wl9a3uDexq2HiDj3swYEQJRCRDoUZWbyWYqsPZjkedfyHQIBTt/7c2CL/MiAgj4JUCg+1UvRuu7gGtvu69YKfIeT1nz/deK8SNgBAh0fg8QSFPgCX3b3aXl9dddGg1jQQCBZggQ6M3AY1cEKhZYrkfEU56teLfEdnjtjcSapmEEEEhXgEBP15veEBAZN94dBQLdnVowEgSaKUCgNxOQ3RGoWGDsRJG1ayveLZEdZryWSLM0igAC6QsQ6Omb0yMCIhM01LNezB3iFi/PehT0jwAClgQIdEuQNINARQJjH61o80Q2fumVRJqlUQQQyEaAQM/GnV5jF3hOw9QcIWe5EOhZ6tM3AtYFCHTrpDSIQJkC/3q4zA0T2myqgze5SWiqNItADAIEegxVZo5uCtz3kMgnn2QztvnzRRYuy6ZvekUAgUQECPREWGkUgTIEVqwWyerOcS/q41xZEEAgKAECPahyMhnvBO57IJshT38pm37pFQEEEhMg0BOjpWEEyhCYqkfK8zJ4Hvlkh+5WVwYTmyCAQNMCBHrTRmyBQLIC//hnsu03bH3OHJEPP2r4Kj8jgIDnAgS65wVk+AEI/HOcyJo16U3khRfT64ueEEAgNQECPTVqOkKgiIB5TvrDjxRZmcDLz3G5WgKqNIlA5gIEeuYlYAAIqMDd96fHMJUj9PSw6QmB9AQI9PSs6QmB4gLz9LrwySk8K/2VGfpgGH1HgAUBBIITINCDKykT8lbgnn8kP/Rp05Pvgx4QQCATAQI9E3Y6RaCAwLN6bfgbbxZYYfGl5/n83KImTSHglACB7lQ5GEz0An+9MzmCdetEps1Mrn1aRgCBTAUI9Ez56RyBBgKPPJncU9i4XK0BNj8iEJYAgR5WPZlNCAJ33J3MLKbxdnsysLSKgBsCBLobdWAUCHwq8Hd9rOrCRZ/+bOu7j9fbaol2EEDAQQEC3cGiMCQE5LY77COMPlukzdb226VFBBBwQoBAd6IMDAKBBgL3PCiy/MMGLzbzxy6dRc76fDMbYXcEEHBVgEB3tTKMK26B9m1Ftm1v3+DML4p02s5+u7SIAAKZCxDomZeAASBQQOCow0W22qrAima+1KaNyEWjm9kIuyOAgIsCBLqLVWFMCBwxLDGD/PHHiezSM7H2aRgBBLIRINCzcadXBIoLmLfbhwwuvr6Za3ItW4pcckEzW2F3BBBwTYBAd60ijAeBkXp0nsTb7VvKHnyQyGFDtnyF7xFAwHMBAt3zAjL8AAWOHJ7OpK64VGTrBD6nT2f09IIAAg0ECPQGIPyIQKYCHdtLfvB+6QyhWzeR889Kpy96QQCBxAUI9MSJ6QCBCgSOGiYbP+OuYJdmbXrGF0R6d29WE+yMAAJuCBDobtSBUSBQJzAiubPbCxKbz+qvvqLgKl5EAAG/BAh0v+rFaEMWMDd82T+5s9uL0g3cV+Sko4uuZgUCCPghQKD7USdGGYPAqBHZzfLiC0X083sWBBDwV4BA97d2jDw0gaMyDPQO+u7AFReHJsp8EIhKgECPqtxM1lmB7juIDNgr2+EdPVJkuF6fzoIAAl4KEOhelo1BBydwwrFuTOlb3+DhLW5UglEgULEAgV4xGTsgkIDAKEdOSuvUUeRaDXUWBBDwToBA965kDDg4gX12FzE3eXFlOfRgkZMdecfAFRPGgYAHAgS6B0ViiIELHHuUexO89KsiO3V2b1yMCAEEigoQ6EVpWIFASgIjjkipowq62WYbkeuuqmAHNkUAgawFCPSsK0D/cQscur/I9p3cNBg0UOS8L7o5NkaFAAKNBAj0RiS8gECKAsccmWJnVXR1/ldEBvWvYkd2QQCBtAUI9LTF6Q+BTQLt2ogMO3zTT+7+97prRMxYWRBAwGkBAt3p8jC4oAVG6dF5Gw+CcqcdRa7hAS5B/y4yuSAECPQgysgkvBQ4fpQ/wz7yCC5l86dajDRSAQI90sIz7YwFdukp0n/PjAdRYff/eYlIL4eul69w+GyOQOgCBHroFWZ+bgqccoKb4yo1KvPxwI1jRNq2LrUV6xBAICMBAj0jeLqNWKBVS5GRDt5MppyS9O0r8r2ry9mSbRBAIGUBAj1lcLpDQI46TMQ8rtTX5bBDRM49zdfRM24EghUg0IMtLRNzVsCnk+GKIOYvOE/kwH2LrOVlBBDIQoBAz0KdPuMVMM89H6J3h0tiee+9JFot2Gauhf7Tcf0YTpIrqMOLCGQjQKBn406vsQqcdFwyM//t70V++FORBx5Mpv1CrW7bXuSG6zhJrpANryGQgQCBngE6XUYscHwCgf7BByK3/V1k+qsiv/wfEfNzWku/fiLf5SEuaXHTDwKlBAj0UjqsQ8CmwNF6MlyXBB5J+uDDn45y9ToN2BskX1v76WtJf3f4oSJXX5Z0L7SPAAJNCBDoTQCxGgFrAp+1f+15vqZG5L4tAt0M9qXXJHf3vdaGXVZDJ+ncLjy7rE3ZCAEEkhEg0JNxpVUE6gv06Cr5wfvVf83CT7lJT4ksXdG4pd/dLPLOO41fT/KV0Rrop34myR5oGwEESggQ6CVwWIWANYEvnCK5XM5ac5sb+udDm7+t9836T/St9xtl4xF8vRXJ/pC/Qt96P0qvU2dBAIHUBQj01MnpMDqBrbcSOfYY+9OeP19kygvF2331Lcn95bbi6xNYs/FytuuuFTlgnwRap0kEECglQKCX0mEdAjYEjjtSZLttbbRUv41/lnGJ2h9vF3l1Vv39kv6pVSuRH/9AZKBnD59J2oX2EUhYgEBPGJjmEZCTjrePsGGDyN/LCHTT81VjRJZ/aH8MpVo0D3L52Q0iu/cutRXrEEDAogCBbhGTphBoJLBHH5G9+jd6udkvPDlZZNWa8ppZvFzk2jGpf54u7drpdfF6s5t+PcobJ1shgECzBAj0ZvGxMwJNCHz+5CY2qHL1fQ9UtqPedCb3hz9Xto+NrTt2EPn1z7hFrA1L2kCgCQECvQkgViNQtUCn7fRkuKOr3r3ojuZytOdnFF1ddMWt94hMfrro6sRWbN9JQ12P1HdK4KY6iQ2ahhHwT4BA969mjNgXgVP1ZivmBDHby11/r77FMTemf326GW1XfSjNbzTUd9BwZ0EAgUQECPREWGk0eoEWes25uXua7WXlKn0Ay7jqWzW3hr1KH6iydm31bVS75847i/zhVxypV+vHfgg0IaAXyLIggIB1gVFH6NFoF+vNysNjRcxNY5qzzHlfn5L2E5Hvfac5rVS37047aqj/WuTSb4rM0+vok17athbp3lXvob993bsEnfW/5n76nfXLfL7fWtdvre+ibKX/FJp3U7bSr43/1Z/N62a9WcwfQGv1j6G1eiLiGv1+jf53mZ5suGSJyOJ/f81fIPLy63Xb878IZCBAoGeATpcRCJxyUjKTvPt+O+0+OlkvKbtD5Kwz7LRXSSvmD53f/Vzkim+JvD63kj0Lb9urm0ifnnrinZ5N3918r5fKbQrtbbYpvE+lr7Ztq4+J1S8p4yODOXNE5up5Dub6//ETRRYsrbQ3tkegKoEE7kVZ1Tgq3ik/dFQfkRr9fw4LAo4J7LuHyP/oUajtxZzQduUYu63+WN9+N09Ly2IxHx9ccZXIzDeb7r29hulufetCu6cGt/nqtpO+tmvT+2a9xUsvizz2hMgE/SNqScr3A8h67l7237Jv7pmxc30cOoHuY9UYs9sC39eQGnmk/TGa8Ct1q9dqejRvSf/+v/Vofbdq9m7+Puat6/93rci0mXVtmWvWe+6s1673Edm5u0gP/b6nHn2bM+VDWGboPM0fZg8+Srg7W08CPfXScISeOjkdliNgLs36h76VbXuZN0/ki/9hu9W69syY//ibZJ7VXs6I160TWbRIj757lbN1GNuYP2TuvEfk/+7Wz+U/DmNOwczC30DnLPdgfgmZiBMCpyb02XmlN5KpBMN8xnuVniC3fn0le9nb1twmNqYwN3Lms/0vnyNy1y08nc7eb1L0LRHo0f8KAGBNwLx9/dkTrTW3uSFzNHf/I5t/TOQb8zn2929IpGkaLSFgTt67fozIj/QPqo7tS2zIKgSaFiDQmzZiCwTKEzhVH8KybQL/KD80Np23Zcc/pZeUZXB72PJ0w95q2GF6IuUv9LyBrmHPk9klKkCgJ8pL41EJnH5aMtP9WzPuDFfpiG6+U2ScnrDFkr6A+djBXKPPw2zStw+kRwI9kEIyjYwFThmVzEllTzwp8r6eMJbm8j19mMqzU9Pskb42CZiz+X/+I26Ru8mD/1YkQKBXxMXGCBQROPP0Iiua+fIdehZ02ktNrcjl3xZ58aW0e6Y/I2Due//T67FAoGIBAr1iMnZAoIHAscP0s0+9Xtr2Yq5ZzvJWoldoqM981fasaK8cAXNfgMsTukyxnP7ZxksBAt3LsjFopwTO/GIyw7nr3mTaLbdVc3305VeLzJ5d7h5sZ1Egf9qpInv2s9giTYUuQKCHXmHml6zAYUOSuf3ofH1wibnfetbLR/ogksv0nuvmGewsqQrkWug/zxefn2qfdOa3AIHud/0YfdYCSX12fu99Wc/s0/6XrhD52pUiH3zw6Wt8l47AAfoHYw8uZUsH2/9eCHT/a8gMshIwD2EZNNB+7+ahJf942H67zWlxsT4q9D/1SH2J3lWOJV2BUSPT7Y/evBUg0L0tHQPPXOC8c5IZwr8eSudGMpWMvp3envWir4h8rPddZ0lX4KAD0u2P3rwV2MrbkTNwBLIUMEfnByb0D+3djrzdfuC+IoMHieyn70Lsu0+W2nH3vfcAfRZ7a/f+yIu7Kk7OnkB3siwMynmBpI7OzV3azMNSslj220tkiAb4QA3yffYW2XrrLEaRfp9r9cS/j1aLrP5IZJV+5fP1x9BWn8Xevp0+UEW/OmxXf11aP/XVR8i++lZavdGPpwIEuqeFY9gZCgzcM7mj81v/lt7EzLsMg/Xo2xyFmwA3Tz0LcXlTg3DuXL38Tr/e0kvwVqwUWanBbULcnPBX6dJeA75TB32Yioa7ebjK7ruK7LqL/jE0ODnDbnpiHIFeaaWi255Aj67kTLjZAuee2ewmCjbw5GSRt98tuMrKi3v0Edlfw3vwfnVvoSfxIBkrA7XYiDn6fvkVfUzpfXrp3Qd2GjaX8pmvdxfUtTdhSt1/zdvinzlKxFz50K2bnb42tWIet8qCQBMCBHoTQKxGoJ6AOao9+KB6L1n74dY7rDW1saE+eve6AzS899cv8zZ6Rz2qjG0xb5efekrd15Rn9eqBf4pMei4ZBXMjnnv1hEbz9e2vixx/nL1+WusfCywINCFAoDcBxGoE6gmMPqvej9Z+eO55vc3qm81v7mB923fYIfpHx1CRHfVtWpZPBcwfYuZr0WINdX03ZNLT+hCalz5db/O7638usks/vdOb/gFoY2kdyfkMNqwiboNAj7j4TL1CgX12T/Do/K8VDmaLzQ/dX0P8UJEjhotst+0WK/i2oIB5+Mmmo/YPV4hM1ufAv/CiyCz9g2ru+wV3qerFqfpHmq1AX6dH/ywINCFAoDcBxGoENgskdXRuPuN9fsbmbsr6xtxy9ojDRQ4/jBAvC6zIRuZjiBM+U/dlNlmtJ8q9OkvkdQ13cyS/cJHeTGeZ/le/L3UCXYd2enmfXto3oP+/v/SKAZtXCXykJ/GxINCEAIHeBBCrEdgoMEj/oT5E38ZOYrn9zvJaHXagyMgjRIbqOHw6oe3tt/XjBA3JF18Wma5/vIzUdxIuuai8Oae9VTsNZnO7VfPVcFm/Xk+E05MWV6+pv8b8UdCrV/3XbP9kzshnQaAJAQK9CSBWI7BR4KvnJwNhLql6cmrxtk2ID9ej8OF6NG7CxofFPPb1JQ3ul2dogOvXqgYBeNvf646Av39ddtd1V+Nojrh30cvTslgW6DsFLAg0IUCgNwHEagTEhGpSd0q7vcB154cf8Onb6T4cib+ioW0+g542XeQ5DfJyFrPd6AtFbhhj73Pmcvr1cZs1+gdRkpcz+mjCmAsKEOgFWXgRgS0ELtR7mCexmM9rjz1a5JEnRTZ9Jj5Mj8RdD3HzFroJ8Oc1wKfp2+irq7y/u7kj3pcvFbn6MpGTTkhCOIw2X3s9jHkwi8QFCPTEienAa4ET9EYh/fTyoyQW8xa6uYxqnL4F7XKIL1io4T2tLsSnaoiXOjmsGqcbflV3dP91DfYYr5VvymzGq01twXoENgoQ6PwiIFBMoFVLkfNGF1tr73XXwtw8vvUlPfJ+QcP7GQ1ym5dyFVMbN6nuaP/rF4scNaLYVnG+/tCjcc6bWVcsQKBXTMYO0Qh84SSRnXYMf7rm7O2ZehRo3kZ/7gWRV/Qt3toGDyhJQ8Ec+X/7BpFHHxe5Uu+01nn7NHp1uw9z0uS8+W6PkdE5I0CgO1MKBuKUgHkAx1lfcmpIVgez6YYq5m5pz+nd0sxtS11ZJj6rl7idJ3KxfsX+2fpDY12pCuPwQIBA96BIDDEDgbO/EN7nuYuX1N0VbeJkDXF9Sz2Lo/ByS7lCTxg0n63f9Q+RizTYD9Pb2ca2mJMP7/5XbLNmvs0QINCbgceuAQqYO359Ts+4Pv3zYUxuvr5dO1mPwp/QEJ/u4clV5nKtK8foXdj0zmuXXKB3YdP/xrL86OciNbWxzJZ5WhAg0C0g0kQAAjt11rfY9ajcPCHL9+eCz5tX9+CRCZPCeYa2+WPk/Mv1hDk9Uv/KOcldeeDKr/JNf9BzGd5wZTSMwxMBAt2TQjHMhAT26CPypdNEjtHrwX1ezMlTT00RGf9E2DcheUzfbTBf5uY753xJZO8BPlet8Ngn6cNibr2n8DpeRaCEAIFeAodVAQuYu7+ddoo+K3ywSC7n30Tzehb6rNf0SFz/8X9Mb0zz7gL/5tCcEZtnmpuv/TXQzz2z8L3Xm9N+Vvs++LDIT3+bVe/067kAge55ARl+hQKfP17k8yeL9O5d4Y6ObP7++yIPP6Jfj4nMX+zIoDIcxrSZev36NSL99eY/x+m7LCOOEOmiH5/4tqzTu+39RD8zf2iCbyNnvA4JeHhoUqeXHzqqj54xMschS4biqsC22+hJbhrin9OvTh1dHWXxcZl7eU+YKPKgBrmPJ7YVn1kya8xR+4hh+kAb/fIh3M1NfMbo9ffmVrgsDgi07Jt7ZuxcBwZS8RAI9IrJ2MEbgR066efjp9Zdy7yNhrpvi3lO+kMa4uM0zF26TtwnxwP20cfe6u11Dxzi3ol05t2WP95cdy9/n0yDH6u/gc5b7sH/ckY4QRPk550l8tkT/Zv8wkV6pzR9O/0BvaHIOx/4N37XRmye6rbxCXB/Eum6vciheu6Eea79/vuJtNWbB6W9mNvqTn1OZKJegTBez39gQcCiAIFuEZOmMhYwQT76DJETPiNinl3t0/KEntj2oIb45Od9GrVfY120TOQfamy+zNKvh371FumjX730+5496763edmiua3uW3qDGPNo2SlT+cikTp7/TUiAQE8IlmZTFDBBbu7sZo7IfQry19/Qt1v1wRsPjRcxd0ZjSVdg9nsi5ksaHCl30fMsuus9/HfqKrKjfpnP4bt1E+mwXfHxrV6jT6HTz8CXLdcv/cNhqX69N1/ktTnF92ENApYFCHTLoDSXooC5Gcw5X6y7GYwvQb5ipcjjE/Qtdb08adbsFLHoqmyBJR+KmK+XXy97FzZEwAUBAt2FKjCGygTMEdSFo+veWq9sz+y2Ns8TN2+pj9UT3FgQQACBBAQI9ARQaTIhAfN88rP0Hutn6efkPpy1/oGe1PaIvp1uTnDjmvGEfiloFgEENgkQ6Jsk+K/bAiMOrns4x847uz1OcxKUeRiKudzsKT0qZ0EAAQRSEiDQU4KmmyoFzB3ALr1In7Y1qMoGUtrNHI3fcbe+pf64yCo9QYoFAQQQSFmAQE8ZnO7KFDDXDF/8FZFjjylzh4w3u/a7nOSWcQnoHoHYBQj02H8DXJt/C7154ZdOEfnyOX58Tm78HniQMHft94jxIBChAIEeYdGdnfKQvUW+cZne3KOPs0NsNLDVev34TTc3epkXEEAAgbQFCPS0xemvsUD3HUS+doE+UGN443Wuv3LL/4ks12vLWRBAAIGMBQj0jAsQffdfPVdvDqPPs/Zxefddkdv+7uPIGTMCCAQoQKAHWFQvptS7u8gP/ktkl128GG7BQf5Yn1/NggACCDgiQKA7UoiohnHaCfoWu16K5svtWgsV56kpIs/PKLSG1xBAAIFMBAj0TNgj7dQ8RGXMVSKD9/MbYMMGkV/81u85MHoEEAhOgEAPrqSOTmjkoSL/7xsi27Z3dIAVDOu2O/RJWvrcchYEEEDAIQEC3aFiBDkUc//1yy8U+dzJYUzP3BHuZg10FgQQQMAxAQLdsYIENZx+PUSu1xPf+vYNZ1o//oXIhppw5sNMEEAgGAECPZhSOjaRU0bpW+xXODaoZg7HnAj3zPRmNsLuCCCAQDICBHoyrnG3euHZIqP1K6RljT5w5ae/CmlGzAUBBAITINADK2jm07lab916kl6WFtry65tEFiwNbVbMBwEEAhIg0AMqZqZTaddG5IbviBwwJNNhJNL5lGdF7tPnm7MggAACDgu0cHhsDM0XgfZt9brsG7IN89mzk9EyD1+5kTvCJYNLqwggYFOAQLepGWNbbVvXhfneA9Kf/fIPRczDUU7Ve8G3S+j69h//t8iiZenPjR4RQACBCgV4y71CMDZvIHCjvs0+YK8GLyb84wp9utmtt4n89b66jr71NZEdu9rvdMJEkXGT7LdLiwgggEACAgR6AqjRNHmjXmN+4AHpTXf9epG79elmf/mbyCo969wsBw0UOfmkuu9t/u+y5SI/+bXNFmkLAQQQSFSAQE+UN+DGL/myyPDD05vgK/oglO//WOTdBZ/2ae4Nf921n/5s87sf/YznnNv0pC0EEEhcgEBPnDjADobsLXLWGelMbN06kT/+76dvr2/Z6w/17f5OHbd8xc734x8XeXKqnbZoBQEEEEhJgEBPCTqYbjrqyWdJHRU3RHr3XZFrvivy1jsN14j8l96FLokT8cxb7T/lrfbG4LyCAAKuCxDorlfItfF97xqRLp2TH9VEPRnt+p+KfLS2cV+X/4fIZ/TWskks5qz2FXqpGgsCCCDgmQCB7lnBMh3uiIPTudb8T/oW+5/1xLdCy5dPFzn9tEJrmv/a7drnRL2JDAsCCCDgoQCB7mHRMhlyi5zIxXpknORi7pd+3fUik58v3MvZp4pccF7hdc191Zx097ubm9sK+yOAAAKZCRDomdF71vHhB4r00MehJrWsXCXyn98UeW1O4R7O1aPyixL6g2KJ3qP9av2svjZfuG9eRQABBDwQINA9KJITQzzxM8kNw1xffqV+Nl8szM1n5km9zW5m9Z3viyxdkdz8aBkBBBBIQYBATwHZ+y46tJP8IUNF33S3v2zYIPItvUHNy683bnsnPfnuh9eJ9N+z8Tpbr5jrzae/aqs12kEAAQQyEyDQM6P3qONDDpBcLpE418DWm8U8M70xhjkB71vfEOmwXeN1tl554EGeombLknYQQCBzAQI98xJ4MIB+fZMZ5B/+LDJ2Yv22zZPbvnmJyLHH1H/d9k/mJLgf/tJ2q7SHAAIIZCZAoGdG71HH3bvZH+xDY0VuvrN+uycfK3LuWSI77Vj/dds/LVqsN6z5nu1WaQ8BBBDIVIBAz5Tfk87bt7M70Fdn6X3Z9QYum5aTjtYg10egdu++6ZXk/mtuJXu1fi6/RB+9yoIAAggEJECgB1TMxKYyS09Ys/VUtVUfiXxbzyrvp5fAfe5EkZFHJfs5eUOU790g8upbDV/lZwQQQMB7AQLd+xKmMIEVFi/pev99kV/cKNKrVwoDb9DF7/5HZMKUBi/yIwIIIBCGAIEeRh2TncWKlfba33MPe21V0tK/HhL5v3sr2YNtEUAAAa8EWng1WgabjcDsudn0a6vXp58R+cEvbLVGOwgggICTAgS6k2VxbFBvzBX5+GPHBlXmcF7Qa9yv5oz2MrXYDAEEPBYg0D0uXmpDN/c4nzEzte6sdfTSy3pN+3dE1n9irUkaQgABBFwVINBdrYxr43pikmsjKj0ec2ncN/WWsms9fWeh9OxYiwACCDQSINAbkfBCQYHHPAr05/Txq5d9S+SjtQWnwosIIIBAiAIEeohVTWJOy/VM9/sfSKJlu20+/oTI178tslpvIMOCAAIIRCRAoEdU7GZP9Za/6ufR+qhTV5fb/yZy7Q9FampdHSHjQgABBBITINATow2w4QVLRW69zbmJ5Wtq6p7a9pv/dW5sDAgBBBBIS4BAT0s6lH5uuUvktdfdmY3e9CZ3+ZUiD4x3Z0yMBAEEEMhAgEDPAN3rLs3b2d/VW7euXJX9NN7Ue7JfcKnI8/ooVBYEEEAgcgECPfJfgKqmP1fvx/6Nq0TMk8uyWGr1jwrzefl5GubvfJDFCOgTAQQQcE6AQHeuJJ4MaMabIldeI7J4SboDnj9fL0n7hoj5vHyDfnbOggACCCCwUYBA5xehegHzVvfZ/6FPMJtYfRvl7mkeEPPr34mcOlpkmod3rSt3nmyHAAIIVCnA09aqhGO3fwusWC1yzQ9EDh+n139/TaRbN7s05m39e+8T+Yu+xb5qjd22aQ0BBBAISIBAD6iYmU5l0nMik84VOf9L+tn26OYPZdVHInffI3LX/SLmjwYWBBBAAIGSAgR6SR5WVizwJ735zMN6Cdm5Z+hR+2EiHTuU38RqDe6nntY/DPRr/FPl78eWCCCAAAJCoPNLYF/g/UV6o5dfarv6NWRvkQH9RXbfTaRL57q+zFnq5rK35ctFlujNaubOE5ltvt6zPxZaRAABBCIRINAjKXRm0zQnznGdeGb8dIwAAvEIcJZ7PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQjQKDHU2tmigACCCAQsACBHnBxmRoCCCCAQDwCBHo8tWamCCCAAAIBCxDoAReXqSGAAAIIxCNAoMdTa2aKAAIIIBCwAIEecHGZGgIIIIBAPAIEejy1ZqYIIIAAAgELEOgBF5epIYAAAgjEI0Cgx1NrZooAAgggELAAgR5wcZkaAggggEA8AgR6PLVmpggggAACAQsQ6AEXl6khgAACCMQj4G+g16xbF0+ZmCkCCCCAQCoCHmeLv4G+WD5Mpbh0ggACCCAQj4DH2eJtoOfmPsERejz/F2OmCCCAQPICtfmPfc4WbwN9Y2Xz+XnJV5geEEAAAQSiEMjJAp/n6Xegt8i95jM+Y0cAAQQQcEjA80zxO9BFCHSH/r/AUBBAAAHPBbzOFL8DPS8vev7Lw/ARQAABBFwR8DxT/A50afmEK78HjAMBBBBAwHcBvzMl5zt//qCRcyWX6+37PBg/AggggECGArn867kp4/fMcATN7trzI3Sdf4vcfc1WoAEEEEAAgcgFcmN9B/A/0NduuMX3IjB+BBBAAIGMBQLIEu8DPffiEy+KvlWS8a8C3SOAAAII+Cpg3m43WeL54n2gb/Svld97XgeGjwACCCCQlUAgGRJGoC/85PeSk/lZ/S7QLwIIIICApwI5+UBMhgSwBBHoG++9m6/5VQD1YAoIIIAAAmkK1OR/4vP927ekCiLQN06oZ+ef81n6lqXlewQQQACBkgL5/JsydflvSm7j0cpgAj13993rRXIXemTPUBFAAAEEshTYkD8vJ9M2ZDkEm30HE+gGJTfl0YmSz/+vTSDaQgABBBAIUKC29k+5Fx6bFNLMggr0jYX5pO2lIvkZIRWJuSCAAAIIWBTIy0xpuf1lFlt0oinvb/1aSDF/4IiBkmv5jN4Stk2h9byGAAIIIBCpQD6/TvI1Q3NTJ7wUmkB4R+haoY2F2lBzsr79vi60gjEfBBBAAIEqBWrzH+vB3okhhrkRCTLQzcRyL0x4ROpCfY35mQUBBBBAIGKBfH6N5FqcmHvmkfGhKgT5lvuWxcoPHrG/bNXyYX2Iyw5bvs73CCCAAAKRCNTmF8snNcfpgd60kGccfKCb4uX3PnIXadfiUf1MvW/IxWRuCCCAAAINBPL5ObK69ujcjMffbrAmuB+jCHRTtfyAg7eXbds/oN8eElwVmRACCCCAQCGBp2XVRyfmZk5ZVmhlaK9FE+ibCpc/6Ji/6B3lztn0M/9FAAEEEAhQIJ+7NffsuHMDnFnRKQV7UlyxGW8scIvccMnXBnfJQrE58zoCCCAQjYD5t13/jY8tzE19oztC3/KXOn/Q0Wfref5XSV722vJ1vkcAAQQQ8EwgJ69KPvfD3DPjbvds5NaGG3Wgb1LMHzTys3rN+nnSosWJm17jvwgggAACPgjk/6UHZX/KPTv+fh9Gm+QYCfQtdPP7HNZJ2rU9VcN9lL48XM+K77LFar5FAAEEEMhaIJ9fokOYqP8+j5XVa+/NvTJ5edZDcqV/Ar1EJfIHjBggrbbaT2pr++sNCfrrX4G9NOxNyHfRX6Z2JXZlFQIIIIBAtQL5/GrddYn+O6tf8o6e8zRL30GdJRs+mZ57bsLMapsNfb//DwIfBeAbAeL/AAAAAElFTkSuQmCC"},38347:function(un){"use strict";un.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADICAYAAACtWK6eAAAAAXNSR0IArs4c6QAAAERlWElmTU0AKgAAAAgAAYdpAAQAAAABAAAAGgAAAAAAA6ABAAMAAAABAAEAAKACAAQAAAABAAAAyKADAAQAAAABAAAAyAAAAACbWz2VAAAW0ElEQVR4Ae1d7W8cSV6u7hnHsRM7cV42TmLHduJ4Yjvju9N+OFg4dBJIdyuxfNg77x0SCHaFhBAfkE4n8QHB3v4DK4EAsbCX5VjQanMHQsDpPh4IEKDdbF7tvDkvTrJ7Sey8J+t47enm9xu7vONO93RVd3XPdM9Tkt3T1VXVVU/101W/l6q2BELTILB98gd7O2wxIdxK2RbuRMWyywXXnYhSwWtHX7Oi5EOe9QgU15/iLBUEJt/sGHS2TiwXRdkmAriuXbYsJkJlm3BlDSxB5JAnODYIARAkYeAPTL47/Kn9dKLNFUSEAhGBRgghhp2CEHb1+bcEkSPhWqD4qAiAIFGR8+Trm3yb3v40ChSKZT4SEcr03I8uiaXuNpfYQIHiEDKGAAgSocP6vvE3E6LYRkRwJgquKLuWGKViBgUTQE6LMChEQLb5soAgdfrEKzSTfDBGE6ISEaKTyFHNSb8RcowACMKd6xGaaWo05lpWiYTmvlqhmUcIDAw5ZoNP01qOILVCsxCFsQoRgbRFJRKa26XQjFHB50lp0ajcEqRWaC467mF66EuucEskNPdKoZn7HKrUFn3yFZudC4KsCc3CPVxwHSKCVSIJoWSTKYGFZmdNTlj7oQgPkrU6ApkiiBSaHbF8uE3YJZemRnaVDO7ONaG5qkoiG0Or9yzabwSB5iRIjdBMAnOJ3vv059LIUBlhKZlIQYcVcdmB2GzkQUAh/gg0nCCfC80FIoAgzdEKIUho7lkRmlcqTtMm/xYgFggkiEBqBJFCs10gIlRHBVajVoXmA1JoBgUS7GkUHQmBRAjCQrNdsA/x1IhHBde1SuRmMUKDQDfPiFaIsDJFilRrZAICKSEQiyAsNLdbldG2qnzAQjNpjvi3JQa4/pIC8EFKqTdxG+MIqBGEhOY99tbRDa5N6tNKVWhmA5vtVlhm6FyRD+g/DQ2SFMZrigKBQAMQeIYguyb/bqhDfLZiRyBVqmO5RAKLtUd9jmD/I9YgSVftBtQYtwQCKSJg7Zt85zfJmlai1Ws0PXKqxKD7b0ixDrhVIghU3kik2BiF2m7BqVgOvWULZLut8HvWcVzLKVj05iW9/TI9gAU6p5kInbsuX7NW45YsWk3D52T3dWyL3tV03XacIsVRSZRn5bpjV6jMoiPo3HKdavqK3eYUnSXXonyLlJ7W5lSv08W5bmfx6tQPf/9xULOsfa8cwawoCB3EtwYCrnuZ5IOpoiX++vL7r/1bbaNhcK5FA79bEwHL2k8Nf2nZFf9KA8a/1IIAgtSigd9AgIgy8Mr3z0sgQBCJBI5AYBUB0seO9E8e+RafQgbBYwEE/BF41GaLcYwg/uAgFgh0kUzyu8/YQYBLPhD4zje/lI+GpNCKN3903PcupCjeDoL4QpP9yD+Y/GL2G5FSC4IIQn4h2zHFSqkTcJtMItADgmSy31DpNBAg10KS0xGAABDwRYDdb0EQX2gQCQQIAZc8FAEEEAACAQiQdyMIEoANooEADSEgCB4DIBCEALnbgyBB4CAeCNA6FRAEjwEQqIcAZJB66OBaSyNAyw4xgrT0E4DG10fAgpBeHyBcbWkEiB8YQVr6CUDjQxDACBICEC63MgK0EaIFd/ecPgH/N30zpy3zb9aXx3r9L8SIpe/LgCAx8GvqrK+88ZOmrp/Jyh19/UWTxa2VRfthQQZZQwM/gIAHAdqkDgTxYIJTILCGAG3CDoKsoYEfQMCDAKZYHkBwCgTWIUC7NsDVZB0iOAECnyNQsGAo/BwN/AICPghgBPEBBVFAgBGg7zRgioVHAQgEIcBaLFjSg9DJeHxSxrOMw6JVfbaDgCBakGUncRKuF9lpvbGaYoplDEoUlDsE6DtxIEjuehUNMoZAAa4mxrBEQblEAIbCXHYrGmUGAawoNIMjSskpApBBctqxaJYxBCCkG4MSBeUPATgr5q9P0SJzCJCrIkYQc3CipLwh4NLm1bCk561XV9uDTRvMdCwIYgbHpisFmzbE7xKH1oOAIBFw/Ep5j+jq2CA2d7atHbvpvKuT44qrcXTe0baaho8bxMt/9GNxbOZ2hDsiSyMQsEhIB0EiIP/Sz+8X3/rlg1o5z1+7J6av3dXKg8SNRYA+4pldgnS2F8UvjO+uvpm7q2/uNiHf4l38Zqe4lb+V3/y253Rf++4/i3PX78VCfqC3Szv/OSLIwmfL2vmQoaEIZJcgY/t6xNt/+Cva6I30bY1FkLZiQUQliHZlkaGhCBgdQb7zzS+Jzo1tomNjUWxq52Nh9cjnxWp8Z038d//yv8Q//udMZABK+7ZFyjvS3yPE/1yJlJcz7e/tFru3b9LOf4FGEIRsIcDb/hiTQT44d0v8/R9/TRmB/bu7ldP6JSzRCBIlHKQRJE4YjDC9mn/wVJyF/BEH9gblNbiryYcX9LQzgw0iyEj/VvpuEA2eEcPAri3aOaeu3hEf33minQ8ZGo2AQXd3XQE0zgiyu6dTlHiqFCHs37NFjEWcnvHtoowgrMFCyCQC5qZY3PyTM3PiC8M7lZAYohFkR/dGMf/wqVL62kQ8verpaq+N0vrNgvrU7B2tPDJxFAH9wmz6BJl9/1VZZRwjImB88+oPzqlPszpIoB/pizYKHIoof0iceJoVJfDUbIhGIN1wFiOILmRNkb5iek36hySo64QoDxuXX+qPpsGSdRuOKKgPkQZr7w49DdZ5Gj0goEvks3WkXRXNevOevDSvhUBUOeTQvmgjgKwcjyA2fT5IN0SRP05dviMq9C0vhAwiYHo9yCd39TQ1UQgysnerKA3EG0EGaSQY37ddu8cGI2iw2IKOkFEEaEptfG/eSx8/UEYjiqqXBfRChLe/t1JR5JAoAvp52D+80Gfp3OwUi1uuI6hLTZYOYociqne994hCEN0p1pOFJcgfXuCzdZ4EQdS/rspaIV1N1khMDZbsH1b16oZDmvaT4xfnIqmxdeuF9EkhYNCSLqt4VlPnr/OgdpBP12hM+UPW8yCNRIWC+gxz33Ndond7p8yudDxBdiGE7CJg0ZJb9SdEsZ26BrhhDZvEGKl3+5/brFiT+sm4nHGNEWFwVzQX9/q1wNVmRiCxbxTevPupcrsPaBjeojooBlVmVGO6NtirbyCEi0kQ8pmJN+tqIpvNnr0vvTAkT+seWVBXDSoEYc/ZHVs2KhXJ0yzVoKvBmr35UFz4+L5q8cbTYdMGI5AmQ5CTF+eVCcJrK1R9slRcTM7N3hW/OLFHCR0dTdZBjakg35wF9EYGbNpgBH3zMghXa1rTEVBFk9W7tVMcUhDQdZQEvDakqCioj2rIK4zBCXpJIGQegaQIorc5gYomi6dXWzdvCEX8LI0gqmEP+VWND4Rb1HmUe66nQ7XYajpeA4KQbQScJLRYDMm9x4vi8aefKaOjoslStUHounaMDYTLIUO71OUkbnSl4gjdeiiDhYSpIWDT0jrjal5Zex2LusoIoiJ/LNKuIaxmfvBkSVYj9Fhdox6Sin23dMLxmXnxcEH9BaFTNtKmh4Dx9SC1VdeZYgwrrAsZVXjTT19dcQzU8X9SEdQP7NVT8Z5osIBe2w/4HR0B/gx0YiPI2avqssD27naxrStYNXtwD3vwhk+Fzq1a8XXkEBbUeSufekFl9KrN32gNVm1d8DsOAgl488rqTGkIy5znQB17CAvotsJGC3JhkiSKrEu9465tnSSo13efV9Ge1d7j1GVosGrxyO7vBLcevUKGMpcWCqnuILJ/9xbxQcDOKKpv8LOr6mW2heiEMSLIiUv+doudWzqUDY98z1vkRXDt9iOd2yeS9oWx3YmU22KFJmMolCB+dGFePF9S3MShjsvJIYXpFd9zanWKdfLKvHhKAvvGDWrbftWz0PMyW53QLNOr917/uk61kdYHAVpzmpwMwvfTeZMHuZzwQ65ipJu5cV88ebqivao4Lt1b3c2jnqCuu6gLHrw+T1pGoxJzVpR4TGsI6kHLb0dp/XmfggfvtGdapUPOg6RF29DmL6irkFO2l4/NMoLU1gm/IyOQ7Aiio00a2uM/lRlVXDvuJaPOVjs7t24MtKjrrj85BhVv5KexCTMmS5DTGj5ZrGr1U/WquqR7yXia5BCdEGRRV1Evy/ucuXJHLC1X5CmOOUAgMTsIY/PZUkXobOLAnzTwBtUdTLyqXd5uxyFZRDX4TaV6NrN9Rn0HxxMX/DVhqnVAuuZDIFGCcHOnNZz2vG4fu0jFemggfO04q1Zv3l+/SIvf5DrTLL+17rqLpI4FqKmbr9tRI1UEEifI6cvqNolBsoXUBp7ebNkU/gb3Tq9kGbyroWpgf7AOj1pYdXon7wGCSCTyc0ycIGc0ZIH9HkE9qoAuu4dlAtXQQ+4uXn+vevYRb7lz9xfEbBMYCL31wnk8BBInyJSGqtdrC1HVIHk1WBISHXJynjGPxkz1/pz3I8gfDEPuQuIEuf9kUfD6bJXQt3P9jiWjCvIHlxvk98WCuk7wjiAq8o8sHwK6RCJfRzVfjJhtPk0P6oCiywZ/mfYRLbYaJnlE5TuEC2Q9v/yzB7415I/6sIVddTf3Wo3ZZvrGuYr8I2987ILezvYyX1LHP/3hiaSKbrpyf268V3x5rDeReqVCEJYFflVxl5NxUvX+L+2KwtMbBQfeNf+rIHSm6N6qBBnp3yL489KfLi7Tjo/h2jN5T16o9cFF9W+jyHxJHt/80fEki2+qso+Ov5hYfRKfYnHNz2hMdUZX14irOigGyR8SsTNX1LVoPGJIucMrj8jy/I68UEvH5uJXBuKaE4FUCKKzP5R8QP0Md34Qhi3M0hfUV9aGeOURv3vLuOPYYlRCkbtjKgS5dY/WSNxSWyPB+0+x46DqCBKmymX5RydIgtbKI2H5P4KBMAyizF5PhSCMTtiDLBFkVS9vxbPXo9GS12uPy7R7yKkQO8sjEuIvkqCuGiQxdTRYIIgqutlLlxpBphTf5Pz12iDHQS+8qlb64xo2ihFyr99EHxjt6gjfg4vrc5G2F8U30L09k5/z1Ahy/rq624eq/HEqYJmst3t01mgwMfycJr1lyvMwGUimwzGbCKRGkAs3/G0VfrCpupifpP2nVIKuj5TUpKmUfXJGT8ZRKRNpmgeB1Agye/uhuDH3WKnlUg4IS3xK8au652/cE480NnLT0WDpki+sTbjeXAikYiiUTWZ7iNedRF6rPXaTNT0ssHPgxU/Uhe8TtIHEV76gtuu76jY/t+4tiOMzzWUglLjNvv+q/IljDARSG0G4jt514zHqLXQ/TqOjaVL9DvtZjbUucdqKvI1DIFWCXNJQt4ZBomvfUJ2O8X07SYulEsKs+CplIE1zI5AqQS5qfEM9DDadB57L0lldGHZveV23DjIfjtlBIFWCsMvJJ/NPjKBzXFHFK2/28Z3HWgZDmS/ouEAOjR/Cgh4ET27iUyUIb0WqalGvh/DF6/fFz+7oE03HYFjv/nyNHRTnHiyEJcP1jCOQKkEYK16fETecu6buoVt7LxPklOXpfmZO5sMxWwikTxADckhUeSIqsfy6FBZ0P1TyF9cAgsQfQaYV/bq83cWfRdMxGHrz155DQK9FI7+/UycIC+o376zfw0oH3ge0xv24ogXdW+4DWsrLBsO4gb2DT8MGEhfGTORPnSCs/bmg4bjoRfH8tfuCN4KIGkzYLkyUEbX+yJcuAqm6msimsT3kl764V55qHXU2g/MrWMer2C8/x8lvIQZdb4Z4bNpgphcaQpBLNM2KGuRn1qLmN/F55umr8adpUeuvmg+bNqgiVT9d6lMsrk4cVW98gtyNZTC8SfsA6+63Vb8LcLWZEWgIQVhQn3/wVBuX2ZuPxGmN7UT9blAhY6Wuo2NtOazejSMD1ZaF382PQEMIcu/xIn0W4b6YpoedN3O492hR8PrysMB2jKXl8HRh5cSRQyCgh6Gbr+sNkUEYwlfe+MkzSHbTcteuzjaxmY6b6dhFuxvyEljebZF3OuQ/EyHOCGLSZd9EW1BGsgg0jCB+zXpIq/74Twh9Pyu/8oLiWFA/dv624A0iero2Vo9BaWvjT126I6Zg/6iFJPe/m4ogaaHNnyl4+U9+vO52A7u6xQB9LLSfjru2dqy7dvryvDhPDpLX5tT29lqXGSeZRqAlCeLXY7O3Hgr+E6c/8buMuBZFoCFCeotijWZnEAGMIBnsNJUqY9MGFZTC02AECccIKVoYARCkhTsfTQ9HAAQJxwgpWhgBEKSFOx9ND0cABAnHCClaGAEQpIU7H00PRwAECccIKVoYARCkhTsfTQ9HAAQJxwgpWhgBEKSFOx9ND0cAribhGGUyBTZtMNNtIIgZHJuuFGzaYKZLMMUygyNKySkCIEhOOxbNMoMACGIGR5SSUwRAkJx2LJplBgEQxAyOKCWnCIAgOe1YNMsMAiCIGRxRSk4RgB0kpx37wtjunLYs3WaBIOnindrd3nv966ndK883whQrz72LtsVGAASJDSEKyDMCIEieexdti40ACBIbQhSQZwRAkDz3LtoWGwEQJDaEKCDPCIAgee5dtC02AiBIbAhRQJ4RAEHy3LtoW1wEHBAkLoTIn2cEFkCQPHcv2hYXARAkLoLIn2sEQJBcdy8aFwsB2xVPMcWKBSEy5xmBinAxguS5g9G2eAjYwgJB4kGI3HlGwAFB8ty9aFtsBCz3MlYUxkaxOQtopb15E+sBV4AgiYHb4IJbaW/eBKGegRYrQXRRdKYRmG+vbPhvECTTfYjKJ4WAK+y/nfmn37gBgiSFMMrNMgLLwlr+ATcABMlyN6LuSSBwybHE711//3fOcOHQYiUBMcrMGgK3LOH+1BH2f1w/+upf1Va+6Frizy1hjTjCLZHvyUDtRfzOLgKua/17dmtvvuYFSyxVLHfOcq3brhBzNDLMLfOxYF++8t5vnQq6o7V24bff2Ti04JQqwh5x3UrJEnZJEHGIWSUqcMtaOvzIBALXjr72ed9mosbNWclQEAcn/6K3YrWPFEWhtExkoQyrpLFGmrNJqBUjAIKYeQ5CCRJ0mz2T75baRaW0RH8Fy6JRx6mOOjRley4oD+LTQwAEMYN1ZIL43f75l97qvLWprey6bqlI0zPXtUu2cEoOjTqUvt0vD+KSQQAEMYOrUYIEVWnHt9/bs9l5VF622kaEK4g0VbmGpmpiX1AexMdDAASJh5/MnQpB5M28x32TR8aEZR+2aJpGioCqUoDS0FF0e9PiXA8BEEQPr6DUDSWIX6VKv/b9rqedVtmuiMOsehaiQCMNTdMscdAvPeL8EQBB/HHRjW06ggQ14MC3j/QvOlZZCPfwilLAZdmGpmtiZ1CeVo4HQcz0fmYIEtTcvsl3ygUhysJyxsnBjEYch/5sUgq4G4LytEI8CGKmlzNPED8Ynp98a8s9USw/td2JNtcaZ8WAS6poStvvlz6PcSCImV7NJUGCoBl6+R8GrLbF8rIrymSvOVwh9XORyEPpu4LyZDUeBDHTcy1FEF/Ivvc9e+hsf7nikmKApmqusGiqxsoBMeybPiORIIiZjgJBAnDsm3x7G8ky5TYizZItyjZP1VaIsyMgS1NFgyBmugME0cRx5BtH9i8USSngOmXygi6Td+g4TddYviEuNU8AQcz0BQhiAMevfvWnxSu918qWU5kguYbIQ8Sx3DEqus9A8ZGKAEEiwfZMJhDkGUjMRXT9+ls7tlWKLNeUC647UbGIPMJi4mw2dxf/kkAQf1x0Y0EQXcQMpD8w+e7wonDKtu3SaCNoqlaZIBLxNM1YAEHMQAmCmMExdinDL/5Zu9O5qbxUJG+BKml4tKn+7YpSOAgSBbVn8/w/X3ocIiWuzzoAAAAASUVORK5CYII="},48136:function(un,Tt,x){"use strict";var me=Object.defineProperty,Ae=Object.defineProperties,P=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,S=(e,t,r)=>t in e?me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,g=(e,t)=>{for(var r in t||(t={}))te.call(t,r)&&S(e,r,t[r]);if(De)for(var r of De(t))V.call(t,r)&&S(e,r,t[r]);return e},I=(e,t)=>Ae(e,P(t)),v=e=>typeof e=="symbol"?e:e+"",z=(e,t)=>{var r={};for(var i in e)te.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&De)for(var i of De(e))t.indexOf(i)<0&&V.call(e,i)&&(r[i]=e[i]);return r};function E(e){return Array.isArray(e)}var M={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function N(){return"window"in globalThis&&"document"in globalThis}function T(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function L(){return typeof navigator.vibrate=="function"}function ee(){var e,t;if(!N())return"other";const r=(t=(e=navigator.userAgentData)==null?void 0:e.platform)!=null?t:navigator.platform;return/^mac/i.test(r)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(r)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function R(){if(!N())return!0;if(/firefox/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/firefox\/(\d+)/i);return e?parseInt(e[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/edg\/(\d+)/i);return e?parseInt(e[1])>=79:!1}return!0}function le(){return HTMLElement.prototype.hasOwnProperty("popover")}var X={strings:M,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return X._locale||(X._locale=N()?navigator.language.slice(0,5):"en-US"),X._locale},set locale(e){X._locale=e,X._numberFormatter=void 0,X.dirty=!0},get numberFormatter(){return X._numberFormatter||(X._numberFormatter=new Intl.NumberFormat(X.locale)),X._numberFormatter},merge(e,t){if(typeof e=="string"&&t)X.strings[e]=g(g({},X.strings[e]),t),X.dirty=!0;else for(const r of Object.keys(e))X.merge(r,e[r])},get dirty(){return X._dirty},set dirty(e){X._dirty||X._dirty===e||(X._dirty=!0,setTimeout(()=>{X._dirty=!1,this._subscribers.forEach(t=>t==null?void 0:t())},0))},subscribe(e){return X._subscribers.push(e),X._subscribers.length-1},unsubscribe(e){e<0||e>=X._subscribers.length||(X._subscribers[e]=void 0)},update(e){let t=e.querySelectorAll("[data-l10n-tooltip]");for(const r of t){const i=r.getAttribute("data-l10n-tooltip");if(i){const s=q(i);s&&r.setAttribute("data-tooltip",s)}}t=e.querySelectorAll("[data-l10n-arial-label]");for(const r of t){const i=r.getAttribute("data-l10n-arial-label");if(i){const s=q(i);s&&r.setAttribute("aria-label",s)}}}};function q(e,...t){if(e===void 0)return;let r="";const i=X.locale;X.strings[i]&&(r=X.strings[i][e]);const s=i.slice(0,2);if(!r&&X.strings[s]&&(r=X.strings[s][e]),r||(r=X.strings.en[e]),!r)return;const c=/(%@|%([0-9]+)\$@)/g;let u=c.exec(r),k=0;for(;u;){if(t[k++]){const Y=u[2]?parseInt(u[2],10)-1:k-1;let ce=t[Y];typeof ce=="number"&&(ce=X.numberFormatter.format(ce)),r=r.replace(u[1],ce)}u=c.exec(r)}return r=r.replace(/%%/g,"%"),r}var W={m0:"#3F3D99",m1:"#993D71",m2:"#998B3D",m3:"#3D9956",m4:"#3D5A99",m5:"#993D90",m6:"#996D3D",m7:"#43993D",m8:"#3D7999",m9:"#843D99"},K={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},se={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},fe={red:"#d7170b",orange:"#fe8a2b",yellow:"#ffc02b",lime:"#63b215",green:"#21ba3a",teal:"#17cfcf",cyan:"#13a7ec",blue:"#0d80f2",indigo:"#63c",purple:"#a219e6",magenta:"#eb4799",black:"#000","dark-grey":"#666",grey:"#A6A6A6","light-grey":"#d4d5d2",white:"#ffffff"},Oe={Red:"red",Orange:"orange",Yellow:"yellow",LimeGreen:"lime",Green:"green",TealBlue:"teal",Blue:"blue",Violet:"indigo",Purple:"purple",Magenta:"magenta",Black:"black",Gray:"grey",White:"white"},Se={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function Ue(e){var t,r,i,s,c,u;const k=e.split("!");let j,Y,ce,Pe=255,rt=255,gt=255,Et=-1;const Br=k.length>0&&k[0].startsWith("-");Br&&(k[0]=k[0].slice(1));for(let In=0;In<k.length;In++){j=Pe,Y=rt,ce=gt;const wr=(t=k[In].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:t[1],nn=wr==null?void 0:wr.toLowerCase(),kn=wr&&(u=(c=(s=(i=(r=fe[nn])!=null?r:fe[Oe[wr]])!=null?i:K[wr])!=null?s:Se[wr])!=null?c:W[wr])!=null?u:k[In].trim();let dn=kn.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(dn!=null&&dn[1]&&dn[2]&&dn[3])Pe=Math.max(0,Math.min(255,Number.parseInt(dn[1],16))),rt=Math.max(0,Math.min(255,Number.parseInt(dn[2],16))),gt=Math.max(0,Math.min(255,Number.parseInt(dn[3],16)));else if(dn=kn.match(/^#([\da-f]{3})$/i),dn!=null&&dn[1]){const Bi=Number.parseInt(dn[1][0],16),qi=Number.parseInt(dn[1][1],16),Ui=Number.parseInt(dn[1][2],16);Pe=Math.max(0,Math.min(255,Bi*16+Bi)),rt=Math.max(0,Math.min(255,qi*16+qi)),gt=Math.max(0,Math.min(255,Ui*16+Ui))}else if(dn=kn.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),dn!=null&&dn[1]&&dn[2]&&dn[3])Pe=Math.max(0,Math.min(255,Number.parseInt(dn[1]))),rt=Math.max(0,Math.min(255,Number.parseInt(dn[2]))),gt=Math.max(0,Math.min(255,Number.parseInt(dn[3])));else return;Et>=0&&(Pe=(1-Et)*Pe+Et*j,rt=(1-Et)*rt+Et*Y,gt=(1-Et)*gt+Et*ce,Et=-1),In+1<k.length&&(Et=Math.max(0,Math.min(100,Number.parseInt(k[++In])))/100)}return Et>=0&&(Pe=Et*Pe+(1-Et)*j,rt=Et*rt+(1-Et)*Y,gt=Et*gt+(1-Et)*ce),Br&&(Pe=255-Pe,rt=255-rt,gt=255-gt),"#"+("00"+Math.round(Pe).toString(16)).slice(-2)+("00"+Math.round(rt).toString(16)).slice(-2)+("00"+Math.round(gt).toString(16)).slice(-2)}function J(e){var t,r;return e=e.trim(),(r=(t=se[e.toLowerCase()])!=null?t:se[Oe[e]])!=null?r:Ue(e)}function ue(e){if(!e||e[0]!=="#")return;e=e.slice(1);let t;return e.length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},e.length===4&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},e.length===8&&(t.a=parseInt(e[6]+e[7],16)/255)),t&&t.a===void 0&&(t.a=1),t}function D(e,t,r){return r<0&&(r+=6),r>=6&&(r-=6),r<1?(t-e)*r+e:r<3?t:r<4?(t-e)*(4-r)+e:e}function Ve(e){let[t,r,i]=[e.h,e.s,e.l];t=(t+360)%360/60,i=Math.max(0,Math.min(i,1)),r=Math.max(0,Math.min(r,1));const s=i<=.5?i*(r+1):i+r-i*r,c=i*2-s;return{r:Math.round(255*D(c,s,t+2)),g:Math.round(255*D(c,s,t)),b:Math.round(255*D(c,s,t-2))}}function Me(e){return e<0?0:e>255?255:Math.round(e)}function we(e){const{r:t,g:r,b:i}=e;let s=((1<<24)+(Me(t)<<16)+(Me(r)<<8)+Me(i)).toString(16).slice(1);return s[0]===s[1]&&s[2]===s[3]&&s[4]===s[5]&&s[6]===s[7]&&(s=s[0]+s[2]+s[4]),"#"+s}function Te(e){let{r:t,g:r,b:i}=e;t=t/255,r=r/255,i=i/255;const s=Math.min(t,r,i),c=Math.max(t,r,i),u=c-s;let k,j;c===s?k=0:t===c?k=(r-i)/u:r===c?k=2+(i-t)/u:i===c&&(k=4+(t-r)/u),k=Math.min(k*60,360),k<0&&(k+=360);const Y=(s+c)/2;return c===s?j=0:Y<=.5?j=u/(c+s):j=u/(2-c-s),{h:k,s:j,l:Y}}function ve(e){let t=ue(e);if(!t)return e;let{h:r,s:i,l:s}=Te(t);return i+=.1,s-=.1,we(Ve({h:r,s:i,l:s}))}var Fe={60:"\\lt",62:"\\gt",111:"o",38:"\\&",123:"\\lbrace",125:"\\rbrace",91:"\\lbrack",93:"\\rbrack",58:"\\colon",160:"~",172:"\\neg",183:"\\cdot",188:"\\frac{1}{4}",189:"\\frac{1}{2}",190:"\\frac{3}{4}",8304:"^{0}",8305:"^{i}",185:"^{1}",178:"^{2}",179:"^{3}",8224:"\\dagger",8225:"\\ddagger",8230:"\\ldots",8308:"^{4}",8309:"^{5}",8310:"^{6}",8311:"^{7}",8312:"^{8}",8313:"^{9}",8314:"^{+}",8315:"^{-}",8316:"^{=}",8319:"^{n}",8320:"_{0}",8321:"_{1}",8322:"_{2}",8323:"_{3}",8324:"_{4}",8325:"_{5}",8326:"_{6}",8327:"_{7}",8328:"_{8}",8329:"_{9}",8330:"_{+}",8331:"_{-}",8332:"_{=}",8336:"_{a}",8337:"_{e}",8338:"_{o}",8339:"_{x}",8242:"\\prime",39:"\\prime",8592:"\\gets",8594:"\\to",9651:"\\triangle",9661:"\\triangledown",8715:"\\owns",8727:"\\ast",8739:"\\vert",8741:"\\Vert",8743:"\\land",8744:"\\lor",8901:"\\cdot",8904:"\\bowtie",8800:"\\ne",8804:"\\le",8805:"\\ge",8869:"\\bot",10231:"\\biconditional",10232:"\\impliedby",10233:"\\implies",10234:"\\iff",8450:"\\mathbb{C}",8469:"\\mathbb{N}",8473:"\\mathbb{P}",8474:"\\mathbb{Q}",8477:"\\mathbb{R}",8484:"\\mathbb{Z}",8461:"\\mathbb{H}",8476:"\\Re",8465:"\\Im",42:"\\ast",11036:"\\square",9633:"\\square",8720:"\\coprod",8716:"\\not\\ni",9671:"\\diamond",8846:"\\uplus",8851:"\\sqcap",8852:"\\sqcup",8768:"\\wr",8750:"\\oint",8226:"\\textbullet",8722:"-",978:"\\Upsilon"},de={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},Ee=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function tt(e,t,r){if(!/[A-Za-z\d]/.test(e)||(r==="up"&&(r=void 0),!t&&!r))return e;const i=e.codePointAt(0);if(i===void 0)return e;for(const s of Ee)if((!t||s.variant===t)&&(!r||s.style===r)&&i>=s.offset&&i<s.offset+s.len){const c=s.start+i-s.offset;return String.fromCodePoint(de[c]||c)}return e}function it(e){var t;if((e<119808||e>120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const r in de)if(de[r]===e){e=(t=r.codePointAt(0))!=null?t:0;break}for(const r of Ee)if(e>=r.start&&e<r.start+r.len)return{char:String.fromCodePoint(e-r.start+r.offset),variant:r.variant,style:r.style};return{char:String.fromCodePoint(e)}}function Je(e){var t;let r="";for(const i of e){if("{}<>[]$&#^_%:'\u02DC".includes(i)){r+=i;continue}const s=(t=i.codePointAt(0))!=null?t:0;let c=Fe[s];if(c)c.startsWith("\\")?r+=c+" ":r+=c;else{const{char:u,variant:k,style:j}=it(s);switch(c=u,k){case"double-struck":c=`\\mathbb{${c}}`;break;case"fraktur":c=`\\mathfrak{${c}}`;break;case"script":c=`\\mathscr{${c}}`;break;case"sans-serif":c=`\\mathsf{${c}}`;break;case"monospace":c=`\\mathtt{${c}}`;break;case"calligraphic":c=`\\mathcal{${c}}`;break}switch(j){case"bold":c=`\\mathbf{${c}}`;break;case"italic":c=`\\mathit{${c}}`;break;case"bolditalic":c=`\\mathbfit{${c}}`;break}r+=c}}return r}function et(e){return e?Array.isArray(e)?e:typeof e=="object"&&"group"in e?e.group:[]:[]}var Bt={},Lt=g({},Fe),Nt={},ur={},ar={darr:"\\downarrow",dArr:"\\Downarrow",Darr:"\\Downarrow",lang:"\\langle",rang:"\\rangle",uarr:"\\uparrow",uArr:"\\Uparrow",Uarr:"\\Uparrow",N:"\\mathbb{N}",R:"\\mathbb{R}",Z:"\\mathbb{Z}",alef:"\\aleph",alefsym:"\\aleph",Alpha:"\\mathrm{A}",Beta:"\\mathrm{B}",bull:"\\bullet",Chi:"\\mathrm{X}",clubs:"\\clubsuit",cnums:"\\mathbb{C}",Complex:"\\mathbb{C}",Dagger:"\\ddagger",diamonds:"\\diamondsuit",empty:"\\emptyset",Epsilon:"\\mathrm{E}",Eta:"\\mathrm{H}",exist:"\\exists",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",Harr:"\\Leftrightarrow",hearts:"\\heartsuit",image:"\\Im",infin:"\\infty",Iota:"\\mathrm{I}",isin:"\\in",Kappa:"\\mathrm{K}",larr:"\\leftarrow",lArr:"\\Leftarrow",Larr:"\\Leftarrow",lrarr:"\\leftrightarrow",lrArr:"\\Leftrightarrow",Lrarr:"\\Leftrightarrow",Mu:"\\mathrm{M}",natnums:"\\mathbb{N}",Nu:"\\mathrm{N}",Omicron:"\\mathrm{O}",plusmn:"\\pm",rarr:"\\rightarrow",rArr:"\\Rightarrow",Rarr:"\\Rightarrow",real:"\\Re",reals:"\\mathbb{R}",Reals:"\\mathbb{R}",Rho:"\\mathrm{P}",sdot:"\\cdot",sect:"\\S",spades:"\\spadesuit",sub:"\\subset",sube:"\\subseteq",supe:"\\supseteq",Tau:"\\mathrm{T}",thetasym:"\\vartheta",weierp:"\\wp",Zeta:"\\mathrm{Z}"},Cr={varGamma:"\\mathit{\\Gamma}",varDelta:"\\mathit{\\Delta}",varTheta:"\\mathit{\\Theta}",varLambda:"\\mathit{\\Lambda}",varXi:"\\mathit{\\Xi}",varPi:"\\mathit{\\Pi}",varSigma:"\\mathit{\\Sigma}",varUpsilon:"\\mathit{\\Upsilon}",varPhi:"\\mathit{\\Phi}",varPsi:"\\mathit{\\Psi}",varOmega:"\\mathit{\\Omega}",pmod:{def:"\\quad(\\operatorname{mod}\\ #1)",args:1,expand:!1,captureSelection:!1},mod:{def:"\\quad\\operatorname{mod}\\,\\,#1",args:1,expand:!1},bmod:{def:"\\;\\mathbin{\\operatorname{mod }}",expand:!1}},sr={bra:{def:"\\mathinner{\\langle{#1}|}",args:1,captureSelection:!1},ket:{def:"\\mathinner{|{#1}\\rangle}",args:1,captureSelection:!1},braket:{def:"\\mathinner{\\langle{#1}\\rangle}",args:1,captureSelection:!1},set:{def:"\\mathinner{\\lbrace #1 \\rbrace}",args:1,captureSelection:!1},Bra:{def:"\\left\\langle #1\\right|",args:1,captureSelection:!1},Ket:{def:"\\left|#1\\right\\rangle",args:1,captureSelection:!1},Braket:{def:"\\left\\langle{#1}\\right\\rangle",args:1,captureSelection:!1},Set:{def:"\\left\\lbrace #1 \\right\\rbrace",args:1,captureSelection:!1}},G={iff:{primitive:!0,captureSelection:!0,def:"\\;\u27FA\\;"},nicefrac:"^{#1}\\!\\!/\\!_{#2}",phase:{def:"\\enclose{phasorangle}{#1}",args:1,captureSelection:!1},rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}",mathstrut:{def:"\\vphantom{(}",primitive:!0},angl:"\\enclose{actuarial}{#1}",angln:"\\enclose{actuarial}{n}",anglr:"\\enclose{actuarial}{r}",anglk:"\\enclose{actuarial}{k}",mathtools:{primitive:!0,package:{ordinarycolon:":",vcentcolon:"\\mathrel{\\mathop\\ordinarycolon}",dblcolon:'{\\mathop{\\char"2237}}',coloneqq:'{\\mathop{\\char"2254}}',Coloneqq:'{\\mathop{\\char"2237\\char"3D}}',coloneq:'{\\mathop{\\char"3A\\char"2212}}',Coloneq:'{\\mathop{\\char"2237\\char"2212}}',eqqcolon:'{\\mathop{\\char"2255}}',Eqqcolon:'{\\mathop{\\char"3D\\char"2237}}',eqcolon:'{\\mathop{\\char"2239}}',Eqcolon:'{\\mathop{\\char"2212\\char"2237}}',colonapprox:'{\\mathop{\\char"003A\\char"2248}}',Colonapprox:'{\\mathop{\\char"2237\\char"2248}}',colonsim:'{\\mathop{\\char"3A\\char"223C}}',Colonsim:'{\\mathop{\\char"2237\\char"223C}}',colondash:"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",Colondash:"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"}},ratio:"\\vcentcolon",coloncolon:"\\dblcolon",colonequals:"\\coloneq",coloncolonequals:"\\Coloneq",equalscolon:"\\eqcolon",equalscoloncolon:"\\Eqcolon",colonminus:"\\colondash",coloncolonminus:"\\Colondash",minuscolon:"\\dashcolon",minuscoloncolon:"\\Dashcolon",coloncolonapprox:"\\Colonapprox",coloncolonsim:"\\Colonsim",simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",simcoloncolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcoloncolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",notni:"\\mathrel{\\char`\u220C}",limsup:"\\operatorname*{lim\\,sup}",liminf:"\\operatorname*{lim\\,inf}",injlim:"\\operatorname*{inj\\,lim}",projlim:"\\operatorname*{proj\\,lim}",varlimsup:"\\operatorname*{\\overline{lim}}",varliminf:"\\operatorname*{\\underline{lim}}",varinjlim:"\\operatorname*{\\underrightarrow{lim}}",varprojlim:"\\operatorname*{\\underleftarrow{lim}}",argmin:"\\operatorname*{arg\\,min}",argmax:"\\operatorname*{arg\\,max}",plim:"\\mathop{\\operatorname{plim}}\\limits",tripledash:{def:"\\vphantom{-}\\raise{4mu}{\\mkern1.5mu\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2mu}}",expand:!0},"braket.sty":{package:sr},"amsmath.sty":{package:Cr,primitive:!0},"texvc.sty":{package:ar,primitive:!1}},ft={" ":32,"\\!":33,"\\#":35,"\\$":36,"\\%":37,"\\&":38,"-":45,"\\textunderscore":95,"\\euro":8364,"\\maltese":10016,"\\{":123,"\\}":125,"\\textbraceleft":123,"\\textbraceright":125,"\\lbrace":123,"\\rbrace":125,"\\lbrack":91,"\\rbrack":93,"\\nobreakspace":160,"\\ldots":8230,"\\textellipsis":8230,"\\backslash":92,"`":8216,"'":8217,"``":8220,"''":8221,"\\degree":176,"\\textasciicircum":94,"\\textasciitilde":126,"\\textasteriskcentered":42,"\\textbackslash":92,"\\textbullet":8226,"\\textdollar":36,"\\textsterling":163,"\\textdagger":8224,"\\textdaggerdbl":8225,"\u2013":8211,"\u2014":8212,"\u2018":8216,"\u2019":8217,"\u201C":8220,"\u201D":8221,'"':8221,"\\ss":223,"\\ae":230,"\\oe":339,"\\AE":198,"\\OE":338,"\\O":216,"\\i":305,"\\j":567,"\\aa":229,"\\AA":197},F=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,m,d;R()?(m=new RegExp("\\p{Letter}","u"),d=new RegExp("[0-9\\p{Letter}]","u")):(m=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,d=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function C(e,t,r="mord",i){t!==void 0&&(Bt[e]={definitionType:"symbol",type:r,variant:i,codepoint:t},Lt[t]||(Lt[t]=e))}function re(e,t,r){if(typeof e=="string"){for(let i=0;i<e.length;i++){const s=e.charAt(i);C(s,s.codePointAt(0))}return}for(const[i,s,c,u]of e)C(i,s,c!=null?c:t,u!=null?u:r)}function Be(e,t){for(let r=e;r<=t;r++)C(String.fromCodePoint(r),r)}function H(e){var t;return(t=ur[e])!=null?t:null}function ie(e,t){var r,i;if(t.length===0||t==="\\"||!t.startsWith("\\"))return[];const s=[];for(const u in Nt)u.startsWith(t)&&!Nt[u].infix&&s.push({match:u,frequency:(r=Nt[u].frequency)!=null?r:0});for(const u in Bt)u.startsWith(t)&&s.push({match:u,frequency:(i=Bt[u].frequency)!=null?i:0});const c=t.substring(1);for(const u of Object.keys(e.options.macros))u.startsWith(c)&&s.push({match:"\\"+u,frequency:0});return s.sort((u,k)=>{var j,Y;return u.frequency===k.frequency?u.match.length===k.match.length?u.match<k.match?-1:1:u.match.length-k.match.length:((j=k.frequency)!=null?j:0)-((Y=u.frequency)!=null?Y:0)}),s.map(u=>u.match)}function Qe(e){let t="auto";const r=e.match(/:([^=]+)/);return r&&(t=r[1].trim()),t}function xe(e){if(!e)return[];const t=[];let r=e.split("]");if(r[0].startsWith("[")){t.push({isOptional:!0,type:Qe(r[0].slice(1))});for(let i=1;i<=r.length;i++)t.push(...xe(r[i]))}else if(r=e.split("}"),r[0].startsWith("{")){t.push({isOptional:!1,type:Qe(r[0].slice(1))});for(let i=1;i<=r.length;i++)t.push(...xe(r[i]))}return t}function ye(e){if(!e)return"";let t="",r=!0;for(const i of e)typeof i.value=="string"?t+=i.value:r=!1;return r?t:""}function je(e,t){typeof e=="string"&&(e=[e]);const r={tabular:!1,params:[],createAtom:t};for(const i of e)ur[i]=r}function xt(e,t,r){typeof e=="string"&&(e=[e]);const s={tabular:!0,params:xe(t),createAtom:r};for(const c of e)ur[c]=s}function he(e,t,r){var i,s;r||(r={});const c={definitionType:"function",params:xe(t),ifMode:r.ifMode,isFunction:(i=r.isFunction)!=null?i:!1,applyMode:r.applyMode,infix:(s=r.infix)!=null?s:!1,parse:r.parse,createAtom:r.createAtom,applyStyle:r.applyStyle,serialize:r.serialize,render:r.render};if(typeof e=="string")Nt["\\"+e]=c;else for(const u of e)Nt["\\"+u]=c}var st;function Ye(e){return st||(st=Le(G)),e?Le(g(g({},st),e)):st}function Ie(e,t){var r,i,s,c;if(typeof e=="string"){let u=0;const k=e;return/(^|[^\\])#1/.test(k)&&(u=1),/(^|[^\\])#2/.test(k)&&(u=2),/(^|[^\\])#3/.test(k)&&(u=3),/(^|[^\\])#4/.test(k)&&(u=4),/(^|[^\\])#5/.test(k)&&(u=5),/(^|[^\\])#6/.test(k)&&(u=6),/(^|[^\\])#7/.test(k)&&(u=7),/(^|[^\\])#8/.test(k)&&(u=8),/(^|[^\\])#9/.test(k)&&(u=9),{expand:(r=t==null?void 0:t.expand)!=null?r:!0,captureSelection:(i=t==null?void 0:t.captureSelection)!=null?i:!0,args:u,def:k}}return g({expand:(s=t==null?void 0:t.expand)!=null?s:!0,captureSelection:(c=t==null?void 0:t.captureSelection)!=null?c:!0,args:0},e)}function Le(e){if(!e)return{};const t={};for(const r of Object.keys(e)){const i=e[r];if(i==null)delete t[r];else if(typeof i=="object"&&"package"in i)for(const s of Object.keys(i.package))t[s]=Ie(i.package[s],{expand:!i.primitive,captureSelection:i.captureSelection});else t[r]=Ie(i)}return t}function ct(e,t="math"){if(!e||e.length===0)return null;let r=null;if(e.startsWith("\\")){if(r=Nt[e],r)return!r.ifMode||r.ifMode===t?r:null;t==="math"?r=Bt[e]:ft[e]&&(r={definitionType:"symbol",type:"mord",codepoint:ft[e]})}else if(t==="math"){if(r=Bt[e],!r&&e.length===1){const i=kt("math",e.codePointAt(0));return i.startsWith("\\")?I(g({},ct(i,"math")),{command:i}):null}}else ft[e]?r={definitionType:"symbol",type:"mord",codepoint:ft[e]}:t==="text"&&(r={definitionType:"symbol",type:"mord",codepoint:e.codePointAt(0)});return r!=null?r:null}function Ut(e,t){if(!e.startsWith("\\"))return null;const r=e.slice(1);return t[r]}function kt(e,t){if(t===void 0)return"";if(e==="math"&&Lt[t])return Lt[t];if(e==="text"){const r=Object.keys(ft).find(i=>ft[i]===t);return r||String.fromCodePoint(t)}return String.fromCodePoint(t)}var tr=[0,.68889,0,0,.72222],Dr=[0,.68889,0,0,.66667],fr=[0,.68889,0,0,.77778],Fr=[0,.68889,0,0,.61111],Lr=[.16667,.68889,0,0,.77778],mr=[0,.68889,0,0,.55556],cr=[0,0,0,0,.25],Kr=[0,.825,0,0,2.33334],fn=[0,.9,0,0,2.33334],_n=[0,.68889,0,0,.54028],ln=[-.03598,.46402,0,0,.5],xn=[-.13313,.36687,0,0,1],oi=[.01354,.52239,0,0,1],_r=[.01354,.52239,0,0,1.11111],Ai=[0,.54986,0,0,1],Oi=[0,.69224,0,0,.5],mi=[0,.43056,0,0,1],Wi=[.08198,.58198,0,0,.77778],Gi=[.19444,.69224,0,0,.41667],ta=[.1808,.675,0,0,1],_o=[.19444,.69224,0,0,.83334],ra=[.13667,.63667,0,0,1],bi=[-.064,.437,0,0,1.334],Ki=[.08167,.58167,0,0,.77778],sa=[0,.69224,0,0,.72222],be=[0,.69224,0,0,.66667],Ne=[-.13313,.36687,0,0,.77778],ke=[.06062,.54986,0,0,.77778],Xe=[0,.69224,0,0,.77778],Pt=[.25583,.75583,0,0,.77778],Dt=[.25142,.75726,0,0,.77778],Er=[.20576,.70576,0,0,.77778],rr=[.30274,.79383,0,0,.77778],Nr=[.22958,.72958,0,0,.77778],Hr=[.1808,.675,0,0,.77778],an=[.13667,.63667,0,0,.77778],jr=[.13597,.63597,0,0,.77778],Rr=[.03517,.54986,0,0,.77778],en=[0,.675,0,0,.77778],wn=[.19444,.69224,0,0,.61111],on=[0,.54986,0,0,.76042],On=[0,.54986,0,0,.66667],Qn=[.0391,.5391,0,0,.77778],di=[.03517,.54986,0,0,1.33334],Nn=[.38569,.88569,0,0,.77778],Gn=[.23222,.74111,0,0,.77778],Vt=[.19444,.69224,0,0,.77778],Xt=[0,.37788,0,0,.5],Yt=[0,.54986,0,0,.72222],er=[0,.69224,0,0,.83334],jt=[.11111,.69224,0,0,.66667],or=[.26167,.75726,0,0,.77778],lr=[.48256,.98256,0,0,.77778],Pr=[.28481,.79383,0,0,.77778],yn=[.08167,.58167,0,0,.22222],Bn=[.08167,.58167,0,0,.38889],li=[0,.43056,.04028,0,.66667],ti=[.41951,.91951,0,0,.77778],Si=[.24982,.74947,0,0,.38865],Yn=[.08319,.58283,0,0,.75623],jn=[0,.10803,0,0,.27764],wi=[0,.47534,0,0,.50181],yi=[.18906,.47534,0,0,.50181],xi=[0,.69141,0,0,.50181],ci=[.24982,.74947,0,0,.27764],Ci=[0,.69141,0,0,.21471],$i=[.25,.75,0,0,.44722],ei=[0,.64444,0,0,.575],Ni=[.08556,.58556,0,0,.89444],Ha=[0,.69444,0,0,.89444],si=[0,.68611,0,0,.9],pn=[0,.68611,0,0,.86944],cn=[.25,.75,0,0,.575],Xn=[.25,.75,0,0,.31944],Kn=[0,.69444,0,0,.63889],fi=[0,.69444,0,0,.31944],Xi=[0,.44444,0,0,.63889],Ii=[0,.44444,0,0,.51111],Ua=[0,.69444,0,0,.575],Aa=[.13333,.63333,0,0,.89444],Co=[0,.44444,0,0,.31944],Vn=[0,.69444,0,0,.86944],Mn=[0,.68611,0,0,.69166],Li=[0,.68611,0,0,.83055],Zi=[0,.68611,0,0,.89444],Fa=[0,.69444,0,0,.60278],Is=[.19444,.69444,0,0,.51111],za=[0,.69444,0,0,.83055],fa=[-.10889,.39111,0,0,1.14999],Io=[.19444,.69444,0,0,.575],Bo=[.19444,.69444,0,0,1.14999],Po=[.19444,.69444,0,0,.70277],Ns=[.05556,.75,0,0,.575],ho=[0,.68611,0,0,.95833],bs=[.08556,.58556,0,0,.76666],Ps=[-.02639,.47361,0,0,.575],$s=[0,.44444,0,0,.89444],To=[0,.55556,0,0,.76666],Uo=[-.10889,.39111,0,0,.89444],ys=[.00222,.50222,0,0,.89444],el=[.19667,.69667,0,0,.89444],vl=[.08556,.58556,0,0,1.14999],ic=[0,.69444,0,0,.70277],ac=[-.02778,.47222,0,0,.575],Ql=[.25,.75,0,0,.51111],Zs=[-.13889,.36111,0,0,1.14999],Dc=[.19444,.69444,0,0,1.02222],Kl=[.12963,.69444,0,0,.89444],Hl=[.19444,.69444,0,0,.44722],Vs=[0,.64444,.13167,0,.59111],as=[.19444,.64444,.13167,0,.59111],ri=[0,.68611,.17208,0,.8961],la=[.19444,.44444,.105,0,.53222],Yi=[0,.44444,.085,0,.82666],aa=[0,.69444,.06709,0,.59111],Da=[0,.69444,.12945,0,.35555],oo=[0,.69444,0,0,.94888],Ws=[0,.69444,.11472,0,.59111],ws=[0,.68611,.10778,0,.88555],xs=[0,.69444,.07939,0,.62055],ms=[0,.69444,.12417,0,.30667],qa=[0,.64444,.13556,0,.51111],Ra=[.19444,.64444,.13556,0,.51111],os=[0,.68333,.16389,0,.74333],ss=[.19444,.43056,.08847,0,.46],Fs=[0,.43056,.07514,0,.71555],Go=[0,.69444,.06646,0,.51111],Fo=[0,.69444,0,0,.83129],pA=[0,.69444,.1225,0,.51111],tu=[0,.68333,.09403,0,.76666],Ac=[0,.68333,.11111,0,.76666],mA=[0,.69444,.06961,0,.51444],ll=[0,.69444,0,0,.27778],gA=[.25,.75,0,0,.38889],tl=[0,.64444,0,0,.5],gs=[0,.69444,0,0,.77778],qc=[0,.68333,0,0,.75],Ts=[0,.68333,0,0,.77778],NA=[0,.68333,0,0,.68056],uc=[0,.68333,0,0,.72222],jl=[.25,.75,0,0,.5],eo=[.25,.75,0,0,.27778],Gs=[0,.69444,0,0,.5],vA=[0,.69444,0,0,.55556],Su=[0,.43056,0,0,.44445],ls=[0,.43056,0,0,.5],Ca=[.19444,.43056,0,0,.55556],ya=[0,.43056,0,0,.55556],ts=[.08333,.58333,0,0,.77778],mo=[0,.43056,0,0,.27778],jo=[0,.66786,0,0,.27778],zo=[0,.69444,0,0,.75],Oo=[0,.66786,0,0,.5],Cs=[0,.68333,0,0,.625],oc=[.19444,.69444,0,0,.44445],Vc=[0,.69444,0,0,.72222],Xs=[.19444,.69444,0,0,.5],bA=[.19444,.69444,0,0,1],xl=[.011,.511,0,0,1.126],eA=[.19444,.69444,0,0,.61111],rl=[.05556,.75,0,0,.5],Id=[0,.68333,0,0,.83334],ru=[.0391,.5391,0,0,.66667],jA=[-.05555,.44445,0,0,.5],cf=[0,.43056,0,0,.77778],Wc=[0,.55556,0,0,.66667],Yu=[-.03625,.46375,0,0,.77778],Oc=[-.01688,.48312,0,0,.77778],Fd=[.0391,.5391,0,0,1],Xo=[0,.69444,0,0,.61111],No=[-.03472,.46528,0,0,.5],Jo=[.25,.75,0,0,.44445],yc=[-.14236,.35764,0,0,1],zl=[.244,.744,0,0,.412],qu=[.19444,.69444,0,0,.88889],yA=[.12963,.69444,0,0,.77778],zA=[.19444,.69444,0,0,.38889],Md=[.011,.511,0,0,1.638],Ld=[.19444,.69444,0,0,0],$A=[0,.44444,0,0,.575],ZA=[.19444,.44444,0,0,.575],Mo=[0,.68611,0,0,.75555],wA=[0,.69444,0,0,.66759],VA=[0,.68611,0,0,.80555],y0=[0,.68611,.08229,0,.98229],nu=[0,.68611,0,0,.76666],xh=[0,.44444,0,0,.58472],Af=[.19444,.44444,0,0,.6118],kd=[.19444,.43056,0,0,.5],Kf=[0,.68333,.02778,.08334,.76278],Ch=[0,.68333,.08125,.05556,.83125],Eu=[0,.43056,0,.05556,.48472],uf=[.19444,.43056,0,.08334,.51702],Cl=[.25,.75,0,0,.42778],Bl=[0,.69444,0,0,.55],Nc=[0,.69444,0,0,.73334],Pc=[0,.69444,0,0,.79445],w0=[0,.69444,0,0,.51945],_u=[0,.69444,0,0,.70278],Bh=[0,.69444,0,0,.76389],Iu=[.25,.75,0,0,.34306],Dd=[0,.69444,0,0,.56111],Vp=[0,.69444,0,0,.25556],iu=[.19444,.45833,0,0,.56111],tA=[0,.45833,0,0,.56111],wc=[0,.69444,0,0,.30556],$o=[0,.69444,0,0,.58056],ed=[0,.69444,0,0,.67223],Hf=[0,.69444,0,0,.85556],jf=[0,.69444,0,0,.55834],Tc=[0,.65556,.11156,0,.5],td=[0,.69444,.08094,0,.70834],df=[.17014,0,0,0,.44445],rd=[0,.69444,.0799,0,.5],x0=[0,.69444,0,0,.73752],C0=[0,.69444,.09205,0,.5],$l=[0,.69444,.09031,0,.77778],nd=[0,.69444,.07816,0,.27778],B0=[0,.69444,.00316,0,.5],pe=[.19444,.69444,0,0,.83334],Ce=[.05556,.75,0,0,.83334],Ge=[0,.75,0,0,.5],lt=[.125,.08333,0,0,.27778],Ct=[0,.08333,0,0,.27778],vt=[0,.65556,0,0,.5],$t=[0,.69444,0,0,.47222],zt=[0,.69444,0,0,.66667],Qt=[0,.69444,0,0,.59722],dr=[0,.69444,0,0,.54167],Ir=[0,.69444,0,0,.70834],gr=[.25,.75,0,0,.28889],tn=[0,.69444,0,0,.51667],Vr=[0,.44444,0,0,.44445],Yr=[.19444,.44444,0,0,.51667],Pn=[0,.44444,0,0,.38333],Cn=[0,.44444,0,0,.51667],Ln=[0,.69444,0,0,.83334],Sn=[.35001,.85,0,0,.45834],zn=[.35001,.85,0,0,.57778],Pi=[.35001,.85,0,0,.41667],Ri=[.35001,.85,0,0,.58334],hi=[0,.72222,0,0,.55556],ea=[1e-5,.6,0,0,.66667],wa=[1e-5,.6,0,0,.77778],Jn=[.25001,.75,0,0,.94445],vi=[.306,.805,.19445,0,.47222],ni=[.30612,.805,.19445,0,.47222],Tn=[.25001,.75,0,0,.83334],ii=[.35001,.85,0,0,.47222],Hi=[.25001,.75,0,0,1.11111],Oa=[.65002,1.15,0,0,.59722],pa=[.65002,1.15,0,0,.81111],ji=[.65002,1.15,0,0,.47222],_a=[.65002,1.15,0,0,.66667],Qa=[0,.75,0,0,1],Yo=[.55001,1.05,0,0,1.27778],so=[.862,1.36,.44445,0,.55556],vs=[.86225,1.36,.44445,0,.55556],cs=[.55001,1.05,0,0,1.11111],ma=[.65002,1.15,0,0,.52778],al=[.65002,1.15,0,0,.61111],po=[.55001,1.05,0,0,1.51112],qo=[.95003,1.45,0,0,.73611],rs=[.95003,1.45,0,0,1.04445],xc=[.95003,1.45,0,0,.52778],ai=[.95003,1.45,0,0,.75],zi=[0,.75,0,0,1.44445],Qi=[.95003,1.45,0,0,.58334],ki=[1.25003,1.75,0,0,.79167],go=[1.25003,1.75,0,0,1.27778],Di=[1.25003,1.75,0,0,.58334],ca=[1.25003,1.75,0,0,.80556],ja=[0,.825,0,0,1.8889],$a=[1.25003,1.75,0,0,.63889],Ml=[.64502,1.155,0,0,.875],nl=[1e-5,.6,0,0,.875],Gc=[-99e-5,.601,0,0,.66667],Us=[.64502,1.155,0,0,.66667],Uc=[1e-5,.9,0,0,.88889],Hn=[.65002,1.15,0,0,.88889],dc=[.90001,0,0,0,.88889],Fu=[-.00499,.605,0,0,1.05556],lo=[0,.12,0,0,.45],mn=[0,.61111,0,0,.525],Lo=[.08333,.69444,0,0,.525],cl=[-.08056,.53055,0,0,.525],As=[-.05556,.55556,0,0,.525],na=[0,.43056,0,0,.525],Sl=[.22222,.43056,0,0,.525],Zl=[0,0,0,0,.525],Rc={"AMS-Regular":{32:cr,65:tr,66:Dr,67:tr,68:tr,69:Dr,70:Fr,71:fr,72:fr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:fr,76:Dr,77:[0,.68889,0,0,.94445],78:tr,79:Lr,80:Fr,81:Lr,82:tr,83:mr,84:Dr,85:tr,86:tr,87:[0,.68889,0,0,1],88:tr,89:tr,90:Dr,107:mr,160:cr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:mr,295:_n,710:Kr,732:fn,770:Kr,771:fn,989:Ki,1008:li,8245:[0,.54986,0,0,.275],8463:_n,8487:tr,8498:mr,8502:Dr,8503:[0,.68889,0,0,.44445],8504:Dr,8513:[0,.68889,0,0,.63889],8592:ln,8594:ln,8602:xn,8603:xn,8606:oi,8608:oi,8610:_r,8611:_r,8619:Ai,8620:Ai,8621:[-.13313,.37788,0,0,1.38889],8622:xn,8624:Oi,8625:Oi,8630:mi,8631:mi,8634:Wi,8635:Wi,8638:Gi,8639:Gi,8642:Gi,8643:Gi,8644:ta,8646:ta,8647:ta,8648:_o,8649:ta,8650:_o,8651:oi,8652:oi,8653:xn,8654:xn,8655:xn,8666:ra,8667:ra,8669:[-.13313,.37788,0,0,1],8672:bi,8674:bi,8705:[0,.825,0,0,.5],8708:mr,8709:Ki,8717:[0,.43056,0,0,.42917],8722:ln,8724:[.08198,.69224,0,0,.77778],8726:Ki,8733:Xe,8736:sa,8737:sa,8738:[.03517,.52239,0,0,.72222],8739:yn,8740:[.25142,.74111,0,0,.27778],8741:Bn,8742:[.25142,.74111,0,0,.5],8756:be,8757:be,8764:Ne,8765:[-.13313,.37788,0,0,.77778],8769:Ne,8770:Yu,8774:rr,8776:Oc,8778:Ki,8782:ke,8783:ke,8785:Wi,8786:Wi,8787:Wi,8790:Xe,8791:Nr,8796:[.08198,.91667,0,0,.77778],8806:Pt,8807:Pt,8808:Dt,8809:Dt,8812:[.25583,.75583,0,0,.5],8814:Er,8815:Er,8816:rr,8817:rr,8818:Nr,8819:Nr,8822:Hr,8823:Hr,8828:an,8829:an,8830:Nr,8831:Nr,8832:Er,8833:Er,8840:rr,8841:rr,8842:jr,8843:jr,8847:Rr,8848:Rr,8858:Wi,8859:Wi,8861:Wi,8862:en,8863:en,8864:en,8865:en,8872:[0,.69224,0,0,.61111],8873:sa,8874:[0,.69224,0,0,.88889],8876:Fr,8877:Fr,8878:tr,8879:tr,8882:Rr,8883:Rr,8884:an,8885:an,8888:[0,.54986,0,0,1.11111],8890:Ca,8891:wn,8892:wn,8901:[0,.54986,0,0,.27778],8903:Ki,8905:Ki,8906:Ki,8907:Xe,8908:Xe,8909:[-.03598,.46402,0,0,.77778],8910:on,8911:on,8912:Rr,8913:Rr,8914:On,8915:On,8916:be,8918:Qn,8919:Qn,8920:di,8921:di,8922:Nn,8923:Nn,8926:an,8927:an,8928:rr,8929:rr,8934:Gn,8935:Gn,8936:Gn,8937:Gn,8938:Er,8939:Er,8940:rr,8941:rr,8994:Vt,8995:Vt,9416:[.15559,.69224,0,0,.90222],9484:Oi,9488:Oi,9492:Xt,9496:Xt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:en,9633:en,9650:Yt,9651:Yt,9654:Rr,9660:Yt,9661:Yt,9664:Rr,9674:jt,9733:[.19444,.69224,0,0,.94445],10003:er,10016:er,10731:jt,10846:[.19444,.75583,0,0,.61111],10877:an,10878:an,10885:Pt,10886:Pt,10887:jr,10888:jr,10889:or,10890:or,10891:lr,10892:lr,10901:an,10902:an,10933:Dt,10934:Dt,10935:or,10936:or,10937:or,10938:or,10949:Pt,10950:Pt,10955:Pr,10956:Pr,57350:yn,57351:Bn,57352:Ki,57353:li,57356:Dt,57357:Dt,57358:ti,57359:rr,57360:rr,57361:ti,57366:Dt,57367:Dt,57368:Dt,57369:Dt,57370:jr,57371:jr},"Caligraphic-Regular":{32:cr,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:cr},"Fraktur-Regular":{32:cr,33:[0,.69141,0,0,.29574],34:Ci,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Si,41:Si,42:[0,.62119,0,0,.27764],43:Yn,44:jn,45:Yn,46:jn,47:[.24982,.74947,0,0,.50181],48:wi,49:wi,50:wi,51:yi,52:yi,53:yi,54:xi,55:yi,56:xi,57:yi,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:ci,93:ci,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:cr,8216:Ci,8217:Ci,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:cr,33:[0,.69444,0,0,.35],34:Fa,35:[.19444,.69444,0,0,.95833],36:Ns,37:[.05556,.75,0,0,.95833],38:Ha,39:fi,40:$i,41:$i,42:[0,.75,0,0,.575],43:Aa,44:[.19444,.15556,0,0,.31944],45:Pn,46:[0,.15556,0,0,.31944],47:cn,48:ei,49:ei,50:ei,51:ei,52:ei,53:ei,54:ei,55:ei,56:ei,57:ei,58:Co,59:[.19444,.44444,0,0,.31944],60:Ni,61:Uo,62:Ni,63:[0,.69444,0,0,.54305],64:Ha,65:pn,66:[0,.68611,0,0,.81805],67:Li,68:[0,.68611,0,0,.88194],69:Mo,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:si,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:Mn,77:[0,.68611,0,0,1.09166],78:si,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:pn,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Xn,92:cn,93:Xn,94:Ua,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Kn,99:Ii,100:Kn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Kn,105:fi,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:fi,109:[0,.44444,0,0,.95833],110:Xi,111:$A,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:Xi,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:Ii,123:cn,124:Xn,125:cn,126:[.35,.34444,0,0,.575],160:cr,163:[0,.69444,0,0,.86853],168:Ua,172:[0,.44444,0,0,.76666],176:Vn,177:Aa,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Aa,216:[.04861,.73472,0,0,.89444],223:Qt,230:[0,.44444,0,0,.83055],247:Aa,248:[.09722,.54167,0,0,.575],305:Co,338:[0,.68611,0,0,1.16944],339:$s,567:[.19444,.44444,0,0,.35139],710:Ua,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Ua,715:Ua,728:Ua,729:fi,730:Vn,732:Ua,733:Ua,915:Mn,916:ho,920:Zi,923:VA,926:nu,928:si,931:Li,933:Zi,934:Li,936:Zi,937:Li,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:fi,8217:fi,8220:Fa,8221:Fa,8224:Is,8225:Is,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:wA,8465:za,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:za,8501:ic,8592:fa,8593:Io,8594:fa,8595:Io,8596:fa,8597:cn,8598:Bo,8599:Bo,8600:Bo,8601:Bo,8636:fa,8637:fa,8640:fa,8641:fa,8656:fa,8657:Po,8658:fa,8659:Po,8660:fa,8661:[.25,.75,0,0,.70277],8704:Kn,8706:[0,.69444,.06389,0,.62847],8707:Kn,8709:Ns,8711:ho,8712:bs,8715:bs,8722:Aa,8723:Aa,8725:cn,8726:cn,8727:ac,8728:Ps,8729:Ps,8730:[.18,.82,0,0,.95833],8733:$s,8734:[0,.44444,0,0,1.14999],8736:sa,8739:Xn,8741:cn,8743:To,8744:To,8745:To,8746:To,8747:[.19444,.69444,.12778,0,.56875],8764:Uo,8768:[.19444,.69444,0,0,.31944],8771:ys,8776:[.02444,.52444,0,0,.89444],8781:ys,8801:ys,8804:el,8805:el,8810:vl,8811:vl,8826:Ni,8827:Ni,8834:Ni,8835:Ni,8838:el,8839:el,8846:To,8849:el,8850:el,8851:To,8852:To,8853:Aa,8854:Aa,8855:Aa,8856:Aa,8857:Aa,8866:ic,8867:ic,8868:Ha,8869:Ha,8900:Ps,8901:[-.02639,.47361,0,0,.31944],8902:ac,8968:Ql,8969:Ql,8970:Ql,8971:Ql,8994:Zs,8995:Zs,9651:Dc,9657:ac,9661:Dc,9667:ac,9711:Bo,9824:Kl,9825:Kl,9826:Kl,9827:Kl,9837:[0,.75,0,0,.44722],9838:Hl,9839:Hl,10216:$i,10217:$i,10815:si,10927:el,10928:el,57376:Ld},"Main-BoldItalic":{32:cr,33:[0,.69444,.11417,0,.38611],34:xs,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:Da,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:Vs,49:Vs,50:Vs,51:Vs,52:as,53:Vs,54:Vs,55:as,56:Vs,57:Vs,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Ws,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:ri,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:ri,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:aa,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:la,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:la,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:cr,168:[0,.69444,.11473,0,.59111],176:oo,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:Yi,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Yi,567:[.19444,.44444,.04611,0,.385],710:aa,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:Da,730:oo,732:Ws,733:Ws,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:ri,931:[0,.68611,.11431,0,.82666],933:ws,934:[0,.68611,.05632,0,.82666],936:ws,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:Da,8217:Da,8220:[0,.69444,.16772,0,.62055],8221:xs},"Main-Italic":{32:cr,33:ms,34:mA,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:ms,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:qa,49:qa,50:qa,51:qa,52:Ra,53:qa,54:qa,55:Ra,56:qa,57:qa,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:pA,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:os,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:os,79:tu,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:os,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:Go,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:ss,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:ss,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:cr,168:[0,.66786,.10474,0,.51111],176:Fo,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:Fs,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Fs,710:Go,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:Fo,732:[0,.66786,.11585,0,.51111],733:pA,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:tu,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:os,931:[0,.68333,.12028,0,.71555],933:Ac,934:[0,.68333,.05986,0,.71555],936:Ac,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:ms,8217:ms,8220:[0,.69444,.1685,0,.51444],8221:mA,8463:_n},"Main-Regular":{32:cr,33:ll,34:Gs,35:pe,36:rl,37:Ce,38:gs,39:ll,40:gA,41:gA,42:Ge,43:ts,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:jl,48:tl,49:tl,50:tl,51:tl,52:tl,53:tl,54:tl,55:tl,56:tl,57:tl,58:mo,59:[.19444,.43056,0,0,.27778],60:Qn,61:Ne,62:Qn,63:$t,64:gs,65:qc,66:[0,.68333,0,0,.70834],67:uc,68:[0,.68333,0,0,.76389],69:NA,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:qc,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Ts,76:Cs,77:[0,.68333,0,0,.91667],78:qc,79:Ts,80:NA,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:uc,85:qc,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:qc,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:eo,92:jl,93:eo,94:Gs,95:[.31,.12056,.02778,0,.5],97:ls,98:vA,99:Su,100:vA,101:Su,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:vA,105:jo,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:ll,109:[0,.43056,0,0,.83334],110:ya,111:ls,112:Ca,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:ya,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:Su,123:jl,124:eo,125:jl,126:[.35,.31786,0,0,.5],160:cr,163:[0,.69444,0,0,.76909],167:oc,168:Oo,172:[0,.43056,0,0,.66667],176:zo,177:ts,182:eA,184:df,198:[0,.68333,0,0,.90278],215:ts,216:[.04861,.73194,0,0,.77778],223:Gs,230:[0,.43056,0,0,.72222],247:ts,248:[.09722,.52778,0,0,.5],305:mo,338:[0,.68333,0,0,1.01389],339:cf,567:[.19444,.43056,0,0,.30556],710:Gs,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Gs,715:Gs,728:Gs,729:jo,730:zo,732:Oo,733:Gs,915:Cs,916:Id,920:Ts,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:qc,931:uc,933:Ts,934:uc,936:Ts,937:uc,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:ll,8217:ll,8220:Gs,8221:Gs,8224:oc,8225:oc,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:_n,8465:Vc,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Vc,8501:Xo,8592:xn,8593:Xs,8594:xn,8595:Xs,8596:xn,8597:jl,8598:bA,8599:bA,8600:bA,8601:bA,8614:[.011,.511,0,0,1],8617:xl,8618:xl,8636:xn,8637:xn,8640:xn,8641:xn,8652:[.011,.671,0,0,1],8656:xn,8657:eA,8658:xn,8659:eA,8660:xn,8661:[.25,.75,0,0,.61111],8704:vA,8706:[0,.69444,.05556,.08334,.5309],8707:vA,8709:rl,8711:Id,8712:ru,8715:ru,8722:ts,8723:ts,8725:jl,8726:jl,8727:No,8728:jA,8729:jA,8730:[.2,.8,0,0,.83334],8733:cf,8734:mi,8736:sa,8739:eo,8741:jl,8743:Wc,8744:Wc,8745:Wc,8746:Wc,8747:[.19444,.69444,.11111,0,.41667],8764:Ne,8768:[.19444,.69444,0,0,.27778],8771:Yu,8773:[-.022,.589,0,0,1],8776:Oc,8781:Yu,8784:[-.133,.67,0,0,.778],8801:Yu,8804:jr,8805:jr,8810:Fd,8811:Fd,8826:Qn,8827:Qn,8834:Qn,8835:Qn,8838:jr,8839:jr,8846:Wc,8849:jr,8850:jr,8851:Wc,8852:Wc,8853:ts,8854:ts,8855:ts,8856:ts,8857:ts,8866:Xo,8867:Xo,8868:gs,8869:gs,8872:[.249,.75,0,0,.867],8900:jA,8901:[-.05555,.44445,0,0,.27778],8902:No,8904:[.005,.505,0,0,.9],8942:[.03,.9,0,0,.278],8943:[-.19,.31,0,0,1.172],8945:[-.1,.82,0,0,1.282],8968:Jo,8969:Jo,8970:Jo,8971:Jo,8994:yc,8995:yc,9136:zl,9137:zl,9651:qu,9657:No,9661:qu,9667:No,9711:bA,9824:yA,9825:yA,9826:yA,9827:yA,9837:[0,.75,0,0,.38889],9838:zA,9839:zA,10216:gA,10217:gA,10222:zl,10223:zl,10229:[.011,.511,0,0,1.609],10230:Md,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:Md,10815:qc,10927:jr,10928:jr,57376:Ld},"Math-BoldItalic":{32:cr,48:$A,49:$A,50:$A,51:ZA,52:ZA,53:ZA,54:ei,55:ZA,56:ei,57:ZA,65:pn,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:y0,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Mo,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:wA,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:xh,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:cr,915:[0,.68611,.15972,0,.65694],916:ho,920:[0,.68611,.03194,0,.86722],923:VA,926:[0,.68611,.07458,0,.84125],928:y0,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:nu,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:xh,960:[0,.44444,.03704,0,.68241],961:Af,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:Af,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:cr,48:ls,49:ls,50:ls,51:kd,52:kd,53:kd,54:tl,55:kd,56:tl,57:kd,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:Ch,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:Kf,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:Eu,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:cr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Kf,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Ch,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:Eu,960:[0,.43056,.03588,0,.57003],961:uf,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:uf,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:cr,33:[0,.69444,0,0,.36667],34:jf,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:wc,40:Cl,41:Cl,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:Bl,49:Bl,50:Bl,51:Bl,52:Bl,53:Bl,54:Bl,55:Bl,56:Bl,57:Bl,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:w0,64:Nc,65:Nc,66:Nc,67:_u,68:Pc,69:[0,.69444,0,0,.64167],70:Xo,71:Nc,72:Pc,73:[0,.69444,0,0,.33056],74:w0,75:Bh,76:$o,77:[0,.69444,0,0,.97778],78:Pc,79:Pc,80:_u,81:[.10556,.69444,0,0,.79445],82:_u,83:Xo,84:Nc,85:Bh,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Nc,89:[0,.69444,.0275,0,.73334],90:ed,91:Iu,93:Iu,94:Bl,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:Dd,99:[0,.45833,0,0,.48889],100:Dd,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:Dd,105:Vp,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:Vp,109:[0,.45833,0,0,.86667],110:tA,111:[0,.45833,0,0,.55],112:iu,113:iu,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:tA,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:cr,168:Bl,176:Nc,180:Bl,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Bl,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Bl,729:wc,730:Nc,732:Bl,733:Bl,915:$o,916:[0,.69444,0,0,.91667],920:Hf,923:ed,926:Nc,928:Pc,931:Pc,933:Hf,934:Pc,936:Hf,937:Pc,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:wc,8217:wc,8220:jf,8221:jf},"SansSerif-Italic":{32:cr,33:[0,.69444,.05733,0,.31945],34:B0,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:nd,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:lt,45:[0,.44444,.01946,0,.33333],46:Ct,47:[.25,.75,.13164,0,.5],48:Tc,49:Tc,50:Tc,51:Tc,52:Tc,53:Tc,54:Tc,55:Tc,56:Tc,57:Tc,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:zt,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:td,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:dr,77:[0,.69444,.08094,0,.875],78:td,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:rd,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:cr,168:[0,.67937,.06385,0,.5],176:x0,184:df,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:rd,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:C0,715:Gs,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:x0,732:[0,.67659,.08826,0,.5],733:C0,915:[0,.69444,.13372,0,.54167],916:Ln,920:[0,.69444,.07555,0,.77778],923:Xo,926:[0,.69444,.12816,0,.66667],928:td,931:[0,.69444,.11983,0,.72222],933:$l,934:[0,.69444,.04603,0,.72222],936:$l,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:nd,8217:nd,8220:[0,.69444,.14205,0,.5],8221:B0},"SansSerif-Regular":{32:cr,33:[0,.69444,0,0,.31945],34:Gs,35:pe,36:rl,37:Ce,38:[0,.69444,0,0,.75834],39:ll,40:gA,41:gA,42:Ge,43:ts,44:lt,45:[0,.44444,0,0,.33333],46:Ct,47:jl,48:vt,49:vt,50:vt,51:vt,52:vt,53:vt,54:vt,55:vt,56:vt,57:vt,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:$t,64:zt,65:zt,66:zt,67:Kn,68:[0,.69444,0,0,.72223],69:Qt,70:[0,.69444,0,0,.56945],71:zt,72:Ir,73:ll,74:$t,75:[0,.69444,0,0,.69445],76:dr,77:[0,.69444,0,0,.875],78:Ir,79:[0,.69444,0,0,.73611],80:Kn,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:vA,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:zt,89:[0,.69444,.025,0,.66667],90:Xo,91:gr,93:gr,94:Gs,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:tn,99:Vr,100:tn,101:Vr,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:tn,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:Cn,111:[0,.44444,0,0,.5],112:Yr,113:Yr,114:[0,.44444,.01389,0,.34167],115:Pn,116:[0,.57143,0,0,.36111],117:Cn,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:cr,168:[0,.67937,0,0,.5],176:zt,184:df,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Gs,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Gs,715:Gs,728:Gs,729:[0,.67937,0,0,.27778],730:zt,732:[0,.67659,0,0,.5],733:Gs,915:dr,916:Ln,920:gs,923:Xo,926:zt,928:Ir,931:Vc,933:gs,934:Vc,936:gs,937:Vc,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:ll,8217:ll,8220:Gs,8221:Gs},"Script-Regular":{32:cr,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:cr},"Size1-Regular":{32:cr,40:Sn,41:Sn,47:zn,91:Pi,92:zn,93:Pi,123:Ri,125:Ri,160:cr,710:hi,732:hi,770:hi,771:hi,8214:[-99e-5,.601,0,0,.77778],8593:ea,8595:ea,8657:wa,8659:wa,8719:Jn,8720:Jn,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:ni,8748:vi,8749:vi,8750:ni,8896:Tn,8897:Tn,8898:Tn,8899:Tn,8968:ii,8969:ii,8970:ii,8971:ii,9168:Gc,10216:ii,10217:ii,10752:Hi,10753:Hi,10754:Hi,10756:Tn,10758:Tn},"Size2-Regular":{32:cr,40:Oa,41:Oa,47:pa,91:ji,92:pa,93:ji,123:_a,125:_a,160:cr,710:Qa,732:Qa,770:Qa,771:Qa,8719:Yo,8720:Yo,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:vs,8748:so,8749:so,8750:vs,8896:cs,8897:cs,8898:cs,8899:cs,8968:ma,8969:ma,8970:ma,8971:ma,10216:al,10217:al,10752:po,10753:po,10754:po,10756:cs,10758:cs},"Size3-Regular":{32:cr,40:qo,41:qo,47:rs,91:xc,92:rs,93:xc,123:ai,125:ai,160:cr,710:zi,732:zi,770:zi,771:zi,8730:[.95003,1.45,0,0,1],8968:Qi,8969:Qi,8970:Qi,8971:Qi,10216:ai,10217:ai},"Size4-Regular":{32:cr,40:ki,41:ki,47:go,91:Di,92:go,93:Di,123:ca,125:ca,160:cr,710:ja,732:ja,770:ja,771:ja,8730:[1.25003,1.75,0,0,1],8968:$a,8969:$a,8970:$a,8971:$a,9115:Ml,9116:nl,9117:Ml,9118:Ml,9119:nl,9120:Ml,9121:Us,9122:Gc,9123:Us,9124:Us,9125:Gc,9126:Us,9127:Uc,9128:Hn,9129:dc,9130:[0,.3,0,0,.88889],9131:Uc,9132:Hn,9133:dc,9143:[.88502,.915,0,0,1.05556],10216:ca,10217:ca,57344:Fu,57345:Fu,57680:lo,57681:lo,57682:lo,57683:lo},"Typewriter-Regular":{32:Zl,33:mn,34:mn,35:mn,36:Lo,37:Lo,38:mn,39:mn,40:Lo,41:Lo,42:[0,.52083,0,0,.525],43:cl,44:[.13889,.125,0,0,.525],45:cl,46:[0,.125,0,0,.525],47:Lo,48:mn,49:mn,50:mn,51:mn,52:mn,53:mn,54:mn,55:mn,56:mn,57:mn,58:na,59:[.13889,.43056,0,0,.525],60:As,61:[-.19549,.41562,0,0,.525],62:As,63:mn,64:mn,65:mn,66:mn,67:mn,68:mn,69:mn,70:mn,71:mn,72:mn,73:mn,74:mn,75:mn,76:mn,77:mn,78:mn,79:mn,80:mn,81:[.13889,.61111,0,0,.525],82:mn,83:mn,84:mn,85:mn,86:mn,87:mn,88:mn,89:mn,90:mn,91:Lo,92:Lo,93:Lo,94:mn,95:[.09514,0,0,0,.525],96:mn,97:na,98:mn,99:na,100:mn,101:na,102:mn,103:Sl,104:mn,105:mn,106:[.22222,.61111,0,0,.525],107:mn,108:mn,109:na,110:na,111:na,112:Sl,113:Sl,114:na,115:na,116:[0,.55358,0,0,.525],117:na,118:na,119:na,120:na,121:Sl,122:na,123:Lo,124:Lo,125:Lo,126:mn,127:mn,160:Zl,176:mn,184:[.19445,0,0,0,.525],305:na,567:Sl,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:mn,715:mn,728:mn,730:mn,770:mn,771:mn,776:mn,915:mn,916:mn,920:mn,923:mn,926:mn,928:mn,931:mn,933:mn,934:mn,936:mn,937:mn,8216:mn,8217:mn,8242:mn,9251:[.11111,.21944,0,0,.525]}},Cc=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,El=10,Al=.25,au=1.2,Ll=.431,Rs={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[Ll,Ll,Ll],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.5,.732,.925],num2:[.394,.384,.5],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:[Al,Al,Al],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]},_l=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],il=5,Ms={"\xA0":" ","\u200B":" ",\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\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 Bc(e,t){e===void 0&&(e=77);const r=Rc[t][e];if(r)return{defaultMetrics:!1,depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]};if(e===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const i=String.fromCodePoint(e);if(i in Ms)e=Ms[i].codePointAt(0);else if(Cc.test(i))return e=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var xA={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"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["leftarrow"],1.469,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"],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],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["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],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},PA={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},CA={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`,overarc:"M529 0c179 0 524 115 524 115 5 1 9 5 9 10 0 1-1 2-1 3l-4 22c-1 5-5 9-11 9h-2s-338-93-512-92c-174 0-513 92-513 92h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13 0 0 342-115 520-115z",underarc:`m 529 160
c -179 0 -524 -115 -524 -115
c -5 -1 -9 -5 -9 -10
c 0 -1 1 -2 1 -3
l 4 -22
c 1 -5 5 -9 11 -9
h 2
s 338 93 512 92
c 174 0 513 -92 513 -92
h 2
c 5 0 9 4 11 9
l 5 22
c 1 6 -2 12 -8 13
c 0 0 -342 115 -520 115
z
`,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`,widetilde1:`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`,widetilde2:`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`,widetilde3:`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`,widetilde4:`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`};function ff(e){if(PA[e]){const[Y,ce,Pe]=PA[e],rt=`<span class="stretchy" style="height:${Pe}em"><svg width="100%" height="${Pe}em" viewBox="0 0 ${Y} ${ce}" preserveAspectRatio="none" ><path fill="currentcolor" d="${CA[e]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Pe/2)/100}em;min-width:0">${rt}</span>`}const[t,r,i,s]=xA[e];let c,u;const k=i/1e3;t.length===3?(c=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],u=["xMinYMin","xMidYMin","xMaxYMin"]):t.length===2?(c=["slice-1-of-2","slice-2-of-2"],u=["xMinYMin","xMaxYMin"]):(c=["slice-1-of-1"],u=[s]);const j=t.map((Y,ce)=>`<span class="${c[ce]}" style=height:${k}em><svg width=400em height=${k}em viewBox="0 0 400000 ${i}" preserveAspectRatio="${u[ce]} slice"><path fill="currentcolor" d="${CA[Y]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${k}em;min-width:${r}em;">${j}</span>`}function zf(e){return xA[e]?xA[e][2]/1e3:PA[e][2]}function io(e){const t=[];for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i===13&&e.charCodeAt(r+1)===10&&(i=10,r++),(i===13||i===12)&&(i=10),i===0&&(i=65533),i>=55296&&i<=56319){const s=e.charCodeAt(r+1);if(s>=56320&&s<=57343){const c=i-55296,u=s-56320;i=wh(2,16)+c*wh(2,10)+u,r++}}t.push(i)}return t}var Zo=8205,Vl=[[Zo,1],[65038,2],[127995,5],[129456,4],[917536,96]],us,kl=[127462,127487];function Wl(e){var t;if(us===void 0){us={};for(const r of Vl)for(let i=r[0];i<=r[0]+r[1]-1;i++)us[i]=!0}return(t=us[e])!=null?t:!1}function Js(e){return e>=kl[0]&&e<=kl[1]}function BA(e){if(/^[\u0020-\u00FF]*$/.test(e))return e;const t=[],r=io(e);let i=0;for(;i<r.length;){const s=r[i++],c=r[i];if(c===Zo){const u=i-1;for(i+=2;r[i]===Zo;)i+=2;t.push(String.fromCodePoint(...r.slice(u,i-u+1)))}else if(Wl(c)){const u=i-1;for(;Wl(r[i]);)i+=r[i]===Zo?2:1;t.push(String.fromCodePoint(...r.slice(u,2*i-u-1)))}else Js(s)?(i+=1,t.push(String.fromCodePoint(...r.slice(i-2,2)))):t.push(String.fromCodePoint(s))}return t}var hf=class{constructor(e){this.obeyspaces=!1,this.pos=0,this.s=BA(e)}end(){return this.pos>=this.s.length}get(){return this.pos<this.s.length?this.s[this.pos++]:""}peek(){return this.s[this.pos]}match(e){const t=typeof this.s=="string"?e.exec(this.s.slice(this.pos)):e.exec(this.s.slice(this.pos).join(""));return t!=null&&t[0]?(this.pos+=t[0].length,t[0]):""}next(){if(this.end())return null;if(!this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]+/)||this.obeyspaces&&this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]/))return"<space>";const e=this.get();if(e==="\\"){if(!this.end()){let t=this.match(/^[a-zA-Z\*]+/);return t?this.match(/^[ \f\n\r\t\v\u00A0\u2028\u2029]*/):t=this.get(),"\\"+t}}else{if(e==="{")return"<{>";if(e==="}")return"<}>";if(e==="^"){if(this.peek()==="^"){this.get();const t=this.match(/^(\^(\^(\^(\^[\da-f])?[\da-f])?[\da-f])?[\da-f])?[\da-f]{2}/);if(t)return String.fromCodePoint(Number.parseInt(t.slice(t.lastIndexOf("^")+1),16))}return e}else if(e==="#"){if(!this.end()){let t=!1;if(/[\d?@]/.test(this.peek())&&(t=!0,this.pos+1<this.s.length)){const r=this.s[this.pos+1];t=/[^\dA-Za-z]/.test(r)}return t?"#"+this.get():"#"}}else if(e==="$")return this.peek()==="$"?(this.get(),"<$$>"):"<$>"}return e}};function pf(e,t){var r,i,s,c;const u=[];let k=e.next();if(k&&k!=="\\relax"){if(k==="\\noexpand")k=e.next(),k&&u.push(k);else if(k==="\\obeyspaces")e.obeyspaces=!0;else if(k==="\\bgroup")u.push("<{>");else if(k==="\\egroup")u.push("<}>");else if(k==="\\string"){if(k=e.next(),k)if(k.startsWith("\\"))for(const j of k)u.push(j==="\\"?"\\backslash":j);else k==="<{>"?u.push("\\{"):k==="<space>"?u.push("~"):k==="<}>"&&u.push("\\}")}else if(k==="\\csname"){for(;e.peek()==="<space>";)e.next();let j="",Y=!1,ce=[];do{if(ce.length===0)if(/^#[\d?@]$/.test(e.peek())){const Pe=e.get().slice(1);ce=id((i=(r=t==null?void 0:t(Pe))!=null?r:t==null?void 0:t("?"))!=null?i:"\\placeholder{}",t),k=ce[0]}else k=e.next(),ce=k?[k]:[];Y=ce.length===0,!Y&&k==="\\endcsname"&&(Y=!0,ce.shift()),Y||(Y=k==="<$>"||k==="<$$>"||k==="<{>"||k==="<}>"||typeof k=="string"&&k.length>1&&k.startsWith("\\")),Y||(j+=ce.shift())}while(!Y);j&&u.push("\\"+j),u.push(...ce)}else if(k!=="\\endcsname")if(k.length>1&&k.startsWith("#")){const j=k.slice(1);u.push(...id((c=(s=t==null?void 0:t(j))!=null?s:t==null?void 0:t("?"))!=null?c:"\\placeholder{}",t))}else u.push(k)}return u}function id(e,t=null){const r=[];let i="";for(const u of e.toString().split(/\r?\n/)){i&&r.push(i),i=" ";const k=u.match(/((?:\\%)|[^%])*/);k!==null&&r.push(k[0])}const s=new hf(Je(r.join(""))),c=[];do c.push(...pf(s,t));while(!s.end());return c}function co(e){let t="";const r=[];for(const i of e)i&&(t&&/^[a-zA-Z\*]/.test(i)&&r.push(t),r.push(i),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(i)&&r.push(" "),t=/\\[a-zA-Z]+\*?$/.test(i)?" ":"");return r.join("")}function Bs(e,...t){return console.assert(e.startsWith("\\")),t.length===0?e:co([e,...t.map(r=>`{${r}}`)])}function SA(e){return co(e.map(t=>{var r;return(r={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[t])!=null?r:t}))}var EA=class gg{constructor(t){gg._registry[t]=this}static createAtom(t,r,i){return gg._registry[t].createAtom(r,ct(r,t),i)}static serialize(t,r){var i;if(!t||t.length===0)return"";if((i=r.skipStyles)!=null&&i){const s=[];for(const c of $f(t)){const u=gg._registry[c[0].mode];s.push(...u.serialize(c,r))}return co(s)}return co(ad(t,r))}static getFont(t,r,i){return gg._registry[t].getFont(r,i)}};EA._registry={};var Gl=EA;function $f(e){const t=[];let r=[],i="NONE";for(const s of e)s.type!=="first"&&(s.mode!==i?(r.length>0&&t.push(r),r=[s],i=s.mode):r.push(s));return r.length>0&&t.push(r),t}function TA(e,t){const r=[];let i=[],s;for(const c of e)if(c.type!=="first"&&c.style){let u;t==="variant"?(u=c.style.variant,c.style.variantStyle&&c.style.variantStyle!=="up"&&(u+="-"+c.style.variantStyle)):u=c.style[t],u===s?i.push(c):(i.length>0&&r.push(i),i=[c],s=u)}return i.length>0&&r.push(i),r}function Zf(e,t){var r;const{parent:i}=e[0],s=i==null?void 0:i.computedStyle.color,c=[];for(const u of $f(e)){const k=t.defaultMode;for(const j of TA(u,"color")){const Y=j[0].computedStyle,ce=Gl._registry[j[0].mode].serialize(j,I(g({},t),{defaultMode:k==="text"?"text":"math"}));!t.skipStyles&&Y.color&&Y.color!=="none"&&(!i||s!==Y.color)?c.push(Bs("\\textcolor",(r=Y.verbatimColor)!=null?r:Y.color,co(ce))):c.push(co(ce))}}return c}function Vf(e,t){const{parent:r}=e[0],i=r==null?void 0:r.computedStyle.backgroundColor;return TA(e,"backgroundColor").map(s=>{var c;if(s.length>0||s[0].type!=="box"){const u=s[0].computedStyle;if(u.backgroundColor&&u.backgroundColor!=="none"&&(!r||i!==u.backgroundColor))return Bs("\\colorbox",(c=u.verbatimBackgroundColor)!=null?c:u.backgroundColor,co(Zf(s,I(g({},t),{defaultMode:"text"}))))}return co(Zf(s,t))})}function ad(e,t){if(e.length===0)return[];const{parent:r}=e[0],i=r==null?void 0:r.computedStyle.fontSize,s=[];for(const c of TA(e,"fontSize")){const u=c[0].computedStyle.fontSize,k=Vf(c,t);k&&(u&&u!=="auto"&&(!r||i!==u)?s.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][u],...k):s.push(...k))}return s}function Od(e){return e?{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[e]:void 0}function Nd(e){if(e.length===0)return"ord";const t=Od(e[0].type),r=Od(e[e.length-1].type);return t&&t===r?t:"ord"}function od(e,t){if(typeof e=="string")return e;if(typeof e=="number"){console.assert(Number.isFinite(e));const r=Math.ceil(100*e)/100;return r===0?"0":r.toString()+(t!=null?t:"")}return""}var zr=class O1{constructor(t,r){var i,s,c,u,k;if(typeof t=="number"?this.value=String.fromCodePoint(t):typeof t=="string"?this.value=t:E(t)?this.children=t.filter(Y=>Y!==null):t&&t instanceof O1&&(this.children=[t]),this.children)for(const Y of this.children)Y.parent=this;this.type=(i=r==null?void 0:r.type)!=null?i:"ignore",this.isSelected=(r==null?void 0:r.isSelected)===!0,r!=null&&r.caret&&(this.caret=r.caret),this.classes=(s=r==null?void 0:r.classes)!=null?s:"",this.isTight=(c=r==null?void 0:r.isTight)!=null?c:!1,r!=null&&r.attributes&&(this.attributes=r.attributes);let j=r==null?void 0:r.fontFamily;r!=null&&r.style&&this.value&&(j=(k=Gl.getFont((u=r.mode)!=null?u:"math",this,I(g({variant:"normal"},r.style),{letterShapeStyle:r.letterShapeStyle})))!=null?k:void 0),j||(j="Main-Regular"),this._height=0,this._depth=0,this._width=0,this.hasExplicitWidth=!1,this.skew=0,this.italic=0,this.maxFontSize=0,this.scale=1,(r==null?void 0:r.maxFontSize)!==void 0&&(this.maxFontSize=r.maxFontSize),Sh(this,j)}set atomID(t){t===void 0||t.length===0||(this.id=t)}selected(t){if(this.isSelected!==t&&(this.isSelected=t,this.children))for(const r of this.children)r.selected(t)}setStyle(t,r,i){if(r===void 0)return;const s=od(r,i);s.length>0&&(this.cssProperties||(this.cssProperties={}),this.cssProperties[t]=s)}setTop(t){Number.isFinite(t)&&Math.abs(t)>.01&&(this.cssProperties||(this.cssProperties={}),this.cssProperties.top=od(t,"em"),this.height-=t,this.depth+=t)}get left(){var t;return(t=this.cssProperties)!=null&&t["margin-left"]?Number.parseFloat(this.cssProperties["margin-left"]):0}set left(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-left"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-left"]=od(t,"em")))}set right(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-right"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-right"]=od(t,"em")))}set bottom(t){Number.isFinite(t)&&(t===0?this.cssProperties&&delete this.cssProperties["margin-bottom"]:(this.cssProperties||(this.cssProperties={}),this.cssProperties["margin-bottom"]=od(t,"em")))}get width(){return this._width*this.scale}set width(t){this._width=t,this.hasExplicitWidth=!0}set softWidth(t){}get height(){return this._height*this.scale}set height(t){this._height=t}get depth(){return this._depth*this.scale}set depth(t){this._depth=t}wrap(t){const r=t.parent;if(!r)return this;t.isPhantom&&this.setStyle("opacity",0);const i=t.color;i&&i!==r.color&&this.setStyle("color",i);let s=t.backgroundColor;this.isSelected&&(s=ve(s)),s&&s!==r.backgroundColor&&(this.setStyle("background-color",s),this.setStyle("display","inline-block"));const c=t.scalingFactor;return this.scale=c,this.skew*=c,this.italic*=c,this}toMarkup(){var t,r,i,s;let c=(t=this.value)!=null?t:"";if(this.children)for(const gt of this.children)c+=gt.toMarkup();let u="";if(this.svgBody)u=ff(this.svgBody);else if(this.svgOverlay){u='<span style="',u+="display: inline-block;",u+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,u+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,u+='">',u+=c,u+="</span>",u+='<svg style="position:absolute;overflow:visible;',u+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const gt=(r=this.cssProperties)==null?void 0:r.padding;gt?(u+=`top:${gt};`,u+=`left:${gt};`,u+=`width:calc(100% - 2 * ${gt} );`):u+="top:0;left:0;width:100%;",u+="z-index:2;",u+='"',this.svgStyle&&(u+=this.svgStyle),u+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,u+=`>${this.svgOverlay}</svg>`}let k="";const j=this.classes.split(" ");j.push((i={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?i:""),this.caret==="latex"&&j.push("ML__latex-caret"),this.isSelected&&j.push("ML__selected");const Y=j.length===1?j[0]:j.filter((gt,Et,Br)=>gt.length>0&&Br.indexOf(gt)===Et).join(" ");if(Y.length>0&&(k+=` class="${Y}"`),this.id&&(k+=` data-atom-id=${this.id}`),this.cssId&&(k+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(k+=" "+Object.keys(this.attributes).map(gt=>`${gt}="${this.attributes[gt]}"`).join(" ")),this.htmlData){const gt=this.htmlData.split(",");for(const Et of gt){const Br=Et.match(/([^=]+)=(.+$)/);if(Br){const In=Br[1].trim().replace(/ /g,"-");In&&(k+=` data-${In}="${Br[2]}" `)}else{const In=Et.trim().replace(/ /g,"-");In&&(k+=` data-${In} `)}}}const ce=(s=this.cssProperties)!=null?s:{};this.hasExplicitWidth&&ce.width===void 0&&(ce.width=`${Math.ceil(this._width*100)/100}em`);const Pe=Object.keys(ce).map(gt=>`${gt}:${ce[gt]}`);if(this.scale!==void 0&&this.scale!==1&&(c.length>0||u.length>0)&&Pe.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const gt=this.htmlStyle.split(";");let Et="";for(const Br of gt){const In=Br.match(/([^=]+):(.+$)/);if(In){const wr=In[1].trim().replace(/ /g,"-");wr&&(Et+=`${wr}:${In[2]};`)}}Et&&(k+=` style="${Et}"`)}Pe.length>0&&(k+=` style="${Pe.join(";")}"`);let rt="";return k.length>0||u.length>0?rt=`<span${k}>${c}${u}</span>`:rt=c,this.caret==="text"?rt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(rt+='<span class="ML__caret"></span>'),rt}tryCoalesceWith(t){if(this.svgBody||!this.value||t.svgBody||!t.value)return!1;const r=this.children&&this.children.length>0,i=t.children&&t.children.length>0;if(r||i)return!1;if(t.cssProperties||this.cssProperties){for(const j of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(t.cssProperties&&j in t.cssProperties||this.cssProperties&&j in this.cssProperties)return!1}const s=this.cssProperties?Object.keys(this.cssProperties).length:0,c=t.cssProperties?Object.keys(t.cssProperties).length:0;if(s!==c)return!1;if(s>0){for(const j of Object.keys(this.cssProperties))if(this.cssProperties[j]!==t.cssProperties[j])return!1}const u=this.classes.trim().replace(/\s+/g," ").split(" "),k=t.classes.trim().replace(/\s+/g," ").split(" ");if(u.length!==k.length)return!1;u.sort(),k.sort();for(const[j,Y]of u.entries())if(Y==="vertical-separator"||Y!==k[j])return!1;return this.value+=t.value,this.height=Math.max(this.height,t.height),this.depth=Math.max(this.depth,t.depth),this._width=this._width+t._width,this.maxFontSize=Math.max(this.maxFontSize,t.maxFontSize),this.italic=t.italic,!0}};function Pd(e){if(!e||e.length===0)return[];e[0].children=Pd(e[0].children);const t=[e[0]];for(let r=1;r<e.length;r++)t[t.length-1].tryCoalesceWith(e[r])||(e[r].children=Pd(e[r].children),t.push(e[r]));return t}function mf(e){return e.children&&(e.children=Pd(e.children)),e}function Wf(e,t){if(!e)return new zr(null,t);const r=new zr(null,{classes:"ML__strut",type:"ignore"});r.setStyle("height",Math.max(0,e.height),"em");const i=[r];if(e.depth!==0){const s=new zr(null,{classes:"ML__strut--bottom",type:"ignore"});s.setStyle("height",e.height+e.depth,"em"),s.setStyle("vertical-align",-e.depth,"em"),i.push(s)}return i.push(e),new zr(i,I(g({},t),{type:"lift"}))}function gf(e){const t=zf(e)/2,r=new zr(null,{maxFontSize:0});return r.height=t+.166,r.depth=t-.166,r.svgBody=e,r}function Sh(e,t){var r;if(e.type==="latex"){e.height=.9,e.depth=.2,e._width=1;return}if(e.value){e.height=-1/0,e.depth=-1/0,e._width=0,e.skew=-1/0,e.italic=-1/0;for(let i=0;i<e.value.length;i++){const s=Bc(e.value.codePointAt(i),t);e.height=Math.max(e.height,s.height),e.depth=Math.max(e.depth,s.depth),e._width+=s.width,e.skew=s.skew,e.italic=s.italic}return}if(e.children&&e.children.length>0){let i=-1/0,s=-1/0,c=0;for(const u of e.children)u.height>i&&(i=u.height),u.depth>s&&(s=u.depth),c=Math.max(c,(r=u.maxFontSize)!=null?r:0);e.height=i,e.depth=s,e._width=e.children.reduce((u,k)=>u+k.width,0),e.maxFontSize=c}}function Eh(e){if("individualShift"in e){const t=e.individualShift;let r=t[0];const i=[r],s=-r.shift-r.box.depth;let c=s;for(let u=1;u<t.length;u++){const k=t[u],j=-k.shift-c-k.box.depth,Y=j-(r.box.height+r.box.depth);c=c+j,i.push(Y),i.push(k),r=k}return[i,s]}if("top"in e){let t=e.top;for(const r of e.children)t-=typeof r=="number"?r:r.box.height+r.box.depth;return[e.children,t]}else{if("bottom"in e)return[e.children,-e.bottom];if("firstBaseline"in e){const t=e.firstBaseline[0];if(typeof t=="number")throw new Error("First child must be an element.");return[e.firstBaseline,-t.box.depth]}else if("shift"in e){const t=e.children[0];if(typeof t=="number")throw new Error("First child must be an element.");return[e.children,-t.box.depth-e.shift]}}return[null,0]}function Gf(e){var t;const[r,i]=Eh(e);if(!r)return[[],0,0];const s=new zr(null,{classes:"pstrut"});let c=0;for(const Et of r)if(typeof Et!="number"){const Br=Et.box;c=Math.max(c,Br.maxFontSize,Br.height)}c+=2,s.height=c,s.setStyle("height",c,"em");const u=[];let k=i,j=i,Y=i,ce=0;for(const Et of r){if(typeof Et=="number")Y+=Et;else{const Br=Et.box,In=(t=Et.classes)!=null?t:[],wr=new zr([s,Br],{classes:In.join(" "),style:Et.style});Br.setStyle("height",Br.height+Br.depth,"em"),Br.setStyle("display","inline-block"),wr.setStyle("top",-c-Y-Br.depth,"em"),Et.marginLeft&&wr.setStyle("margin-left",Et.marginLeft,"em"),Et.marginRight&&wr.setStyle("margin-right",Et.marginRight,"em"),u.push(wr),Y+=Br.height+Br.depth,ce=Math.max(ce,wr.width)}k=Math.min(k,Y),j=Math.max(j,Y)}u.forEach(Et=>{Et.softWidth=ce});const Pe=new zr(u,{classes:"vlist"});if(Pe.softWidth=ce,Pe.height=j,Pe.setStyle("height",j,"em"),k>=0)return[[new zr(Pe,{classes:"vlist-r"})],j,-k];const rt=new zr(new zr(null),{classes:"vlist"});rt.height=-k,rt.setStyle("height",-k,"em");const gt=new zr(8203,{classes:"vlist-s",maxFontSize:0});return gt.softWidth=0,gt.height=0,gt.depth=0,[[new zr([Pe,gt],{classes:"vlist-r"}),new zr(rt,{classes:"vlist-r"})],j,-k]}var bl=class extends zr{constructor(e,t){var r;const[i,s,c]=Gf(e);super(i.length===1?i[0]:i,{type:t==null?void 0:t.type,classes:((r=t==null?void 0:t.classes)!=null?r:"")+" vlist-t"+(i.length===2?" vlist-t2":"")}),this.height=s,this.depth=c,this.softWidth=i.reduce((u,k)=>Math.max(u,k.width),0)}};function Mu(e,t){var r,i,s,c,u;const k=e.metrics,j=new zr(t.base),Y=(r=t.baseShift)!=null?r:0,ce=(i=t.slant)!=null?i:0;let Pe=0,rt=0;t.above&&(Pe=(s=t.aboveShift)!=null?s:Math.max(k.bigOpSpacing1,k.bigOpSpacing3-t.above.depth)),t.below&&(rt=(c=t.belowShift)!=null?c:Math.max(k.bigOpSpacing2,k.bigOpSpacing4-t.below.height));let gt=null;if(t.below&&t.above){const Et=k.bigOpSpacing5+t.below.height+t.below.depth+rt+j.depth+Y;gt=new bl({bottom:Et,children:[k.bigOpSpacing5,{box:t.below,marginLeft:-ce,classes:["ML__center"]},rt,{box:j,classes:["ML__center"]},Pe,{box:t.above,marginLeft:ce,classes:["ML__center"]},k.bigOpSpacing5]}).wrap(e)}else if(t.below&&!t.above)gt=new bl({top:j.height-Y,children:[k.bigOpSpacing5,{box:t.below,marginLeft:-ce,classes:["ML__center"]},rt,{box:j,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const Et=j.depth+Y;gt=new bl({bottom:Et,children:[{box:j,classes:["ML__center"]},Pe,{box:t.above,marginLeft:ce,classes:["ML__center"]},k.bigOpSpacing5]}).wrap(e)}else{const Et=j.depth+Y;gt=new bl({bottom:Et,children:[{box:j},k.bigOpSpacing5]}).wrap(e)}return new zr(gt,{type:(u=t.type)!=null?u:"op"})}var vf=7,sd=6,bf=5,UA=4,ou=3,ds=2,Qc=1,Xl=0,Lu=class{constructor(e,t,r){this.id=e,this.sizeDelta=t,this.cramped=r;const i={"-4":2,"-3":1,0:0}[t];this.metrics=Object.keys(Rs).reduce((s,c)=>I(g({},s),{[c]:Rs[c][i]}),{})}getFontSize(e){return Math.max(1,e+this.sizeDelta)}get sup(){return vo[[Xl,Qc,Xl,Qc,ds,ou,ds,ou][this.id]]}get sub(){return vo[[Xl,Xl,Xl,Xl,ds,ds,ds,ds][this.id]]}get fracNum(){return vo[[Xl,Qc,Xl,Qc,ds,ou,UA,bf][this.id]]}get fracDen(){return vo[[Xl,Xl,Xl,Xl,ds,ds,UA,UA][this.id]]}get cramp(){return vo[[Xl,Xl,ds,ds,UA,UA,sd,sd][this.id]]}get isTight(){return this.sizeDelta<0}},Ao={7:new Lu(vf,0,!1),6:new Lu(sd,0,!0),5:new Lu(bf,0,!1),4:new Lu(UA,0,!0),3:new Lu(ou,-3,!1),2:new Lu(ds,-3,!0),1:new Lu(Qc,-4,!1),0:new Lu(Xl,-4,!0)},vo=I(g({},Ao),{displaystyle:Ao[vf],textstyle:Ao[bf],scriptstyle:Ao[ou],scriptscriptstyle:Ao[Qc]});function rA(e,t){var r;if(!e)return 0;const i={pt:1,mm:7227/2540,cm:7227/254,ex:35271/8192,px:3/4,em:El,bp:803/800,dd:1238/1157,pc:12,in:72.27,mu:10/18}[(r=e.unit)!=null?r:"pt"];if(Number.isFinite(t)){const s=wh(10,t);return Math.round(e.dimension/El*i*s)/s}return e.dimension*i}function su(e,t){if(e===null)return 0;const r=rA(e)/El;if(Number.isFinite(t)){const i=wh(10,t);return Math.round(r*i)/i}return r}function WA(e){var t;return`${e.dimension}${(t=e.unit)!=null?t:"pt"}`}function S0(e){let t=WA(e.glue);return e.grow&&e.grow.dimension!==0&&(t+=` plus ${WA(e.grow)}`),e.shrink&&e.shrink.dimension!==0&&(t+=` minus ${WA(e.shrink)}`),t}function Dl(e){var t,r;if(e==null)return null;let i="";if("dimension"in e&&(i=`${e.dimension}${(t=e.unit)!=null?t:"pt"}`),"glue"in e&&(i=S0(e)),"number"in e)if(!("base"in e)||e.base==="decimal")i=Number(e.number).toString();else if(e.base==="alpha")i=`\`${String.fromCodePoint(e.number)}`;else{const s=Math.round(e.number)>>>0;e.base==="hexadecimal"?(i=Number(s).toString(16).toUpperCase(),s<=255?i=i.padStart(2,"0"):s<=65535?i=i.padStart(4,"0"):s<=16777215?i=i.padStart(6,"0"):i=i.padStart(8,"0"),i=`"${i}`):e.base==="octal"&&(i=Number(s).toString(8),s<=63?i=i.padStart(2,"0"):s<=30583?i=i.padStart(4,"0"):i=i.padStart(8,"0"),i=`'${i}`)}return"register"in e&&("factor"in e&&(e.factor===-1?i="-":e.factor!==1&&(i=Number(e.factor).toString())),"global"in e&&e.global&&(i+="\\global"),i+=`\\${e.register}`),"string"in e&&(i=e.string),(r=e.relax)!=null&&r&&(i+="\\relax"),i}function _A(e,t){return e==null?null:"number"in e?I(g({},e),{number:e.number*t}):"register"in e?"factor"in e&&e.factor?I(g({},e),{factor:e.factor*t}):I(g({},e),{factor:t}):"dimension"in e?I(g({},e),{dimension:e.dimension*t}):"glue"in e?e.shrink&&e.grow?{glue:_A(e.glue,t),shrink:_A(e.shrink,t),grow:_A(e.grow,t)}:e.shrink?{glue:_A(e.glue,t),shrink:_A(e.shrink,t)}:e.grow?{glue:_A(e.glue,t),grow:_A(e.grow,t)}:{glue:_A(e.glue,t)}:null}var _h={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:new Date().getMonth()+1,day:new Date().getDate(),year:new Date().getFullYear()};function Xf(){return g({},_h)}function E0(){return{registers:Xf(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:X.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Ue,backgroundColorMap:J,getMacro:e=>Ut(e,Ye())}}var So=class N1{constructor(t,r){var i,s,c,u,k,j,Y,ce,Pe,rt,gt,Et,Br,In,wr;let nn;t!=null&&t.parent?(this.parent=t.parent,nn=t.parent,this.registers={}):(nn=g(g({},E0()),(i=t==null?void 0:t.from)!=null?i:{}),this.registers=nn.registers),nn.atomIdsSettings&&(this.atomIdsSettings=g({},nn.atomIdsSettings)),this.renderPlaceholder=nn.renderPlaceholder,this.isPhantom=(u=(c=t==null?void 0:t.isPhantom)!=null?c:(s=this.parent)==null?void 0:s.isPhantom)!=null?u:!1,this.letterShapeStyle=nn.letterShapeStyle,this.minFontScale=nn.minFontScale,r!=null&&r.color&&r.color!=="none"?this.color=r.color:this.color=(j=(k=this.parent)==null?void 0:k.color)!=null?j:"",r!=null&&r.backgroundColor&&r.backgroundColor!=="none"?this.backgroundColor=r.backgroundColor:this.backgroundColor=(ce=(Y=this.parent)==null?void 0:Y.backgroundColor)!=null?ce:"",r!=null&&r.fontSize&&r.fontSize!=="auto"&&r.fontSize!==((Pe=this.parent)==null?void 0:Pe.size)?this.size=r.fontSize:this.size=(gt=(rt=this.parent)==null?void 0:rt.size)!=null?gt:il;let kn=(Br=(Et=this.parent)==null?void 0:Et.mathstyle)!=null?Br:vo.displaystyle;if(typeof(t==null?void 0:t.mathstyle)=="string"){if(nn instanceof N1)switch(t.mathstyle){case"cramp":kn=kn.cramp;break;case"superscript":kn=kn.sup;break;case"subscript":kn=kn.sub;break;case"numerator":kn=kn.fracNum;break;case"denominator":kn=kn.fracDen;break}switch(t.mathstyle){case"textstyle":kn=vo.textstyle;break;case"displaystyle":kn=vo.displaystyle;break;case"scriptstyle":kn=vo.scriptstyle;break;case"scriptscriptstyle":kn=vo.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=kn,this.smartFence=nn.smartFence,this.placeholderSymbol=nn.placeholderSymbol,this.colorMap=(In=nn.colorMap)!=null?In:dn=>dn,this.backgroundColorMap=(wr=nn.backgroundColorMap)!=null?wr:dn=>dn,this.getMacro=nn.getMacro,console.assert(this.parent!==void 0||this.registers!==void 0)}makeID(){if(!this.atomIdsSettings)return;if(this.atomIdsSettings.overrideID)return this.atomIdsSettings.overrideID;if(typeof this.atomIdsSettings.seed!="number")return`${Date.now().toString(36).slice(-2)}${Math.floor(Math.random()*1e5).toString(36)}`;const t=this.atomIdsSettings.seed.toString(36);return this.atomIdsSettings.seed+=1,t}scale(t){return t*this.effectiveFontSize}get scalingFactor(){return this.parent?this.effectiveFontSize/this.parent.effectiveFontSize:1}get isDisplayStyle(){return this.mathstyle.id===vf||this.mathstyle.id===sd}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(_l[Math.max(1,this.size+this.mathstyle.sizeDelta)],this.minFontScale)}getRegister(t){var r;if((r=this.registers)!=null&&r[t])return this.registers[t];if(this.parent)return this.parent.getRegister(t)}getRegisterAsNumber(t){const r=this.getRegister(t);if(typeof r=="number")return r;if(typeof r=="string")return Number(r)}getRegisterAsGlue(t){var r;if((r=this.registers)!=null&&r[t]){const i=this.registers[t];return typeof i=="object"&&"glue"in i?i:typeof i=="object"&&"dimension"in i?{glue:{dimension:i.dimension}}:typeof i=="number"?{glue:{dimension:i}}:void 0}if(this.parent)return this.parent.getRegisterAsGlue(t)}getRegisterAsEm(t,r){return su(this.getRegisterAsDimension(t),r)}getRegisterAsDimension(t){var r;if((r=this.registers)!=null&&r[t]){const i=this.registers[t];return typeof i=="object"&&"glue"in i?i.glue:typeof i=="object"&&"dimension"in i?i:typeof i=="number"?{dimension:i}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(t)}setRegister(t,r){if(r===void 0){delete this.registers[t];return}this.registers[t]=r}evaluate(t){if(!t||!("register"in t))return t;let r=this;if("global"in t&&t.global)for(;r.parent;)r=r.parent;let i=1;"factor"in t&&t.factor!==1&&t.factor!==void 0&&(i=t.factor);const s=r.getRegister(t.register);if(s===void 0)return;if(typeof s=="string")return{string:Number(s).toString()+s};if(typeof s=="number")return{number:i*s};const c=r.evaluate(s);if(c!==void 0)return"string"in c?{string:Number(s).toString()+c.string}:"number"in c?{number:i*c.number}:"dimension"in c?I(g({},c),{dimension:i*c.dimension}):"glue"in c?I(g({},c),{glue:I(g({},c.glue),{dimension:i*c.glue.dimension}),shrink:c.shrink?I(g({},c.shrink),{dimension:i*c.shrink.dimension}):void 0,grow:c.grow?I(g({},c.grow),{dimension:i*c.grow.dimension}):void 0}):t}toDimension(t){const r=this.evaluate(t);return r===void 0?null:"dimension"in r?r:"glue"in r?r.glue:"number"in r?{dimension:r.number}:null}toEm(t,r){if(t===null)return 0;const i=this.toDimension(t);return i===null?0:rA(i,r)/El}toNumber(t){if(t===null)return null;const r=this.evaluate(t);return r===void 0?null:"number"in r?r.number:"dimension"in r?r.dimension:"glue"in r?r.glue.dimension:"string"in r?Number(r.string):null}toColor(t){var r,i;if(t===null)return null;const s=this.evaluate(t);return s===void 0?null:"string"in s?(i=(r=this.colorMap)==null?void 0:r.call(this,s.string))!=null?i:s.string:null}toBackgroundColor(t){var r,i;if(t===null)return null;const s=this.evaluate(t);return s===void 0?null:"string"in s?(i=(r=this.backgroundColorMap)==null?void 0:r.call(this,s.string))!=null?i:s.string:null}},yf=["body","above","below","superscript","subscript"];function Td(e){return typeof e=="string"&&yf.includes(e)}function Jf(e){return e!==void 0&&Array.isArray(e)&&e.length===2}var Ur=class v0{constructor(t){var r,i,s,c,u,k;this.type=t.type,typeof t.value=="string"&&(this.value=t.value),this.command=(i=(r=t.command)!=null?r:this.value)!=null?i:"",this.mode=(s=t.mode)!=null?s:"math",t.isFunction&&(this.isFunction=!0),t.limits&&(this.subsupPlacement=t.limits),this.style=g({},t.style),this.displayContainsHighlight=(c=t.displayContainsHighlight)!=null?c:!1,this.captureSelection=(u=t.captureSelection)!=null?u:!1,this.skipBoundary=(k=t.skipBoundary)!=null?k:!1,t.verbatimLatex!==void 0&&t.verbatimLatex!==null&&(this.verbatimLatex=t.verbatimLatex),t.args&&(this.args=t.args),t.body&&(this.body=t.body),this._changeCounter=0}static createBox(t,r,i){var s;if(!r)return null;const c=Dm(r),u=[];for(const j of c){const Y=j[0].style,ce=Om(t,j,{style:{color:Y.color,backgroundColor:Y.backgroundColor,fontSize:Y.fontSize}});ce&&u.push(ce)}if(u.length===0)return null;const k=((s=i==null?void 0:i.classes)!=null?s:"").trim();return u.length===1&&!k&&!(i!=null&&i.type)?u[0].wrap(t):new zr(u,{classes:k,type:i==null?void 0:i.type}).wrap(t)}static serialize(t,r){return Gl.serialize(t,r)}static commonAncestor(t,r){if(t===r||t.parent===r.parent)return t.parent;const i=new WeakSet;let{parent:s}=t;for(;s;)i.add(s),s=s.parent;for(s=r.parent;s;){if(i.has(s))return s;s=s.parent}console.assert(!!s)}static fromJson(t){return typeof t=="string"?new v0({type:"mord",value:t,mode:"math"}):new v0(t)}get latexMode(){return this.mode==="math"?"math":"text"}toJson(){const t={};if(this.type&&(t.type=this.type),this.mode!=="math"&&(t.mode=this.mode),this.command&&this.command!==this.value&&(t.command=this.command),this.value!==void 0&&(t.value=this.value),this.style&&Object.keys(this.style).length>0&&(t.style=g({},this.style)),this.verbatimLatex!==void 0&&(t.verbatimLatex=this.verbatimLatex),this.subsupPlacement&&(t.subsupPlacement=this.subsupPlacement),this.explicitSubsupPlacement&&(t.explicitSubsupPlacement=!0),this.isFunction&&(t.isFunction=!0),this.displayContainsHighlight&&(t.displayContainsHighlight=!0),this.isExtensibleSymbol&&(t.isExtensibleSymbol=!0),this.skipBoundary&&(t.skipBoundary=!0),this.captureSelection&&(t.captureSelection=!0),this.args&&(t.args=I0(this.args)),this._branches)for(const r of Object.keys(this._branches))this._branches[r]&&(t[r]=this._branches[r].filter(i=>i.type!=="first").map(i=>i.toJson()));return t.type==="mord"&&Object.keys(t).length===2&&"value"in t?t.value:t}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(t){if(t){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:r}=this;for(;r;)r.parent||r._changeCounter++,"verbatimLatex"in r&&(r.verbatimLatex=void 0),r._children=void 0,r=r.parent}}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):this.body&&this.command?co([Bs(this.command,this.bodyToLatex(t)),this.supsubToLatex(t)]):this.body?co([this.bodyToLatex(t),this.supsubToLatex(t)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(t){var r;return Gl.serialize(this.body,I(g({},t),{defaultMode:(r=t.defaultMode)!=null?r:this.latexMode}))}aboveToLatex(t){return Gl.serialize(this.above,t)}belowToLatex(t){return Gl.serialize(this.below,t)}supsubToLatex(t){let r="";if(t=I(g({},t),{defaultMode:"math"}),this.branch("subscript")!==void 0){const i=Gl.serialize(this.subscript,t);i.length===0?r+="_{}":i.length===1?/^[0-9]$/.test(i)?r+=`_${i}`:r+=`_{${i}}`:r+=`_{${i}}`}if(this.branch("superscript")!==void 0){const i=Gl.serialize(this.superscript,t);i.length===0?r+="^{}":i.length===1?i==="\u2032"?r+="^\\prime ":i==="\u2033"?r+="^\\doubleprime ":/^[0-9]$/.test(i)?r+=`^${i}`:r+=`^{${i}}`:r+=`^{${i}}`}return r}get treeDepth(){let t=1,r=this.parent;for(;r;)r=r.parent,t+=1;return t}get inCaptureSelection(){let t=this;for(;t;){if(t.captureSelection)return!0;t=t.parent}return!1}get parentPrompt(){let t=this.parent;for(;t;){if(t.type==="prompt"&&!t.captureSelection)return t;t=t.parent}return null}branch(t){if(Td(t)&&this._branches)return this._branches[t]}get branches(){if(!this._branches)return[];const t=[];for(const r of yf)this._branches[r]&&t.push(r);return t}createBranch(t){return console.assert(Td(t)),Td(t)?(this._branches?this._branches[t]||(this._branches[t]=[this.makeFirstAtom(t)]):this._branches={[t]:[this.makeFirstAtom(t)]},this.isDirty=!0,this._branches[t]):[]}get row(){return Jf(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Jf(this.parentBranch)?this.parentBranch[1]:-1}get body(){var t;return(t=this._branches)==null?void 0:t.body}set body(t){this.setChildren(t,"body")}get superscript(){var t;return(t=this._branches)==null?void 0:t.superscript}set superscript(t){this.setChildren(t,"superscript")}get subscript(){var t;return(t=this._branches)==null?void 0:t.subscript}set subscript(t){this.setChildren(t,"subscript")}get above(){var t;return(t=this._branches)==null?void 0:t.above}set above(t){this.setChildren(t,"above")}get below(){var t;return(t=this._branches)==null?void 0:t.below}set below(t){this.setChildren(t,"below")}get computedStyle(){var t,r;const i=typeof this.style.verbatimColor=="string",s=typeof this.style.verbatimBackgroundColor=="string",c=g(g({},(r=(t=this.parent)==null?void 0:t.computedStyle)!=null?r:{}),this.style);return delete c.variant,delete c.variantStyle,s||delete c.verbatimBackgroundColor,i||delete c.verbatimColor,c}applyStyle(t){this.isDirty=!0,this.style=g(g({},this.style),t),this.style.fontFamily==="none"&&delete this.style.fontFamily,this.style.fontShape==="auto"&&delete this.style.fontShape,this.style.fontSeries==="auto"&&delete this.style.fontSeries,this.style.color==="none"&&(delete this.style.color,delete this.style.verbatimColor),this.style.backgroundColor==="none"&&(delete this.style.backgroundColor,delete this.style.verbatimBackgroundColor),this.style.fontSize==="auto"&&delete this.style.fontSize;for(const r of this.children)r.applyStyle(t)}getInitialBaseElement(){var t,r,i;return this.hasEmptyBranch("body")?this:(console.assert(((t=this.body)==null?void 0:t[0].type)==="first"),(i=(r=this.body[1])==null?void 0:r.getInitialBaseElement())!=null?i:this)}getFinalBaseElement(){return this.hasEmptyBranch("body")?this:this.body[this.body.length-1].getFinalBaseElement()}isCharacterBox(){return this.type==="leftright"||this.type==="genfrac"||this.type==="subsup"||this.type==="delim"||this.type==="array"||this.type==="surd"?!1:this.getFinalBaseElement().type==="mord"}hasEmptyBranch(t){const r=this.branch(t);return r?(console.assert(r.length>0),console.assert(r[0].type==="first"),r.length===1):!0}setChildren(t,r){var i;if(!t||(console.assert(Td(r)),!Td(r)))return;console.assert(((i=t[0])==null?void 0:i.type)!=="first");const s=[this.makeFirstAtom(r),...t];this._branches?this._branches[r]=s:this._branches={[r]:s};for(const c of t)c.parent=this,c.parentBranch=r;this.isDirty=!0}makeFirstAtom(t){const r=new v0({type:"first",mode:this.mode});return r.parent=this,r.parentBranch=t,r}addChild(t,r){console.assert(t.type!=="first"),this.createBranch(r).push(t),this.isDirty=!0,t.parent=this,t.parentBranch=r}addChildBefore(t,r){console.assert(r.parentBranch!==void 0);const i=this.createBranch(r.parentBranch);i.splice(i.indexOf(r),0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildAfter(t,r){console.assert(r.parentBranch!==void 0);const i=this.createBranch(r.parentBranch);i.splice(i.indexOf(r)+1,0,t),this.isDirty=!0,t.parent=this,t.parentBranch=r.parentBranch}addChildren(t,r){const i=this.createBranch(r);for(const s of t)s.parent=this,s.parentBranch=r,i.push(s);this.isDirty=!0}addChildrenAfter(t,r){console.assert(t.length===0||t[0].type!=="first"),console.assert(r.parentBranch!==void 0);const i=this.createBranch(r.parentBranch);i.splice(i.indexOf(r)+1,0,...t),this.isDirty=!0;for(const s of t)s.parent=this,s.parentBranch=r.parentBranch;return t[t.length-1]}removeBranch(t){const r=this.branch(t);if(Td(t)&&(this._branches[t]=void 0),!r)return[];for(const i of r)i.parent=void 0,i.parentBranch=void 0;return console.assert(r[0].type==="first"),r.shift(),this.isDirty=!0,r}removeChild(t){if(console.assert(t.parent===this),t.type==="first")return;const r=this.branch(t.parentBranch),i=r.indexOf(t);console.assert(i>=0),r.splice(i,1),this.isDirty=!0,t.parent=void 0,t.parentBranch=void 0}get siblings(){return this.parent?this.parent.branch(this.parentBranch):[]}get firstSibling(){return this.siblings[0]}get lastSibling(){const{siblings:t}=this;return t[t.length-1]}get isFirstSibling(){return this===this.firstSibling}get isLastSibling(){return this===this.lastSibling}get hasNoSiblings(){return this.siblings.length===1}get leftSibling(){console.assert(this.parent!==void 0);const t=this.parent.branch(this.parentBranch);return t[t.indexOf(this)-1]}get rightSibling(){console.assert(this.parent!==void 0);const t=this.parent.branch(this.parentBranch);return t[t.indexOf(this)+1]}get hasChildren(){return!!(this._branches&&this.children.length>0)}get firstChild(){return console.assert(this.hasChildren),this.children[0]}get lastChild(){console.assert(this.hasChildren);const{children:t}=this;return t[t.length-1]}get children(){if(this._children)return this._children;if(!this._branches)return[];const t=[];for(const r of yf)if(this._branches[r])for(const i of this._branches[r])t.push(...i.children),t.push(i);return this._children=t,t}render(t){if(this.type==="first"&&!t.atomIdsSettings)return null;const r=ct(this.command,this.mode);if(r!=null&&r.render)return r.render(this,t);const i=new So({parent:t},this.style);let s=this.createBox(i,{classes:this.parent?"":"ML__base"});return s?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(s=this.attachSupsub(i,{base:s})),s.wrap(i)):null}attachSupsub(t,r){var i;const s=r.base,c=this.superscript,u=this.subscript;if(!c&&!u)return s;let k=null,j=null;const Y=(i=r.isCharacterBox)!=null?i:this.isCharacterBox();let ce=0;if(c){const Br=new So({parent:t,mathstyle:"superscript"});k=v0.createBox(Br,c),Y||(ce=s.height-t.metrics.supDrop*Br.scalingFactor)}let Pe=0;if(u){const Br=new So({parent:t,mathstyle:"subscript"});j=v0.createBox(Br,u),Y||(Pe=s.depth+t.metrics.subDrop*Br.scalingFactor)}let rt;t.isDisplayStyle?rt=t.metrics.sup1:t.isCramped?rt=t.metrics.sup3:rt=t.metrics.sup2;const gt=.5/El/t.scalingFactor;let Et=null;if(j&&k){ce=Math.max(ce,rt,k.depth+.25*t.metrics.xHeight),Pe=Math.max(Pe,t.metrics.sub2);const Br=t.metrics.defaultRuleThickness;if(ce-k.depth-(j.height-Pe)<4*Br){Pe=4*Br-(ce-k.depth)+j.height;const wr=.8*t.metrics.xHeight-(ce-k.depth);wr>0&&(ce+=wr,Pe-=wr)}const In=this.isExtensibleSymbol&&s.italic?-s.italic:0;Et=new bl({individualShift:[{box:j,shift:Pe,marginLeft:In},{box:k,shift:-ce}]}).wrap(t)}else j&&!k?(Pe=Math.max(Pe,t.metrics.sub1,j.height-.8*Ll),Et=new bl({shift:Pe,children:[{box:j,marginRight:gt,marginLeft:this.isCharacterBox()?-s.italic:0}]})):!j&&k&&(ce=Math.max(ce,rt,k.depth+.25*Ll),Et=new bl({shift:-ce,children:[{box:k,marginRight:gt}]}));return new zr([s,new zr(Et,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:r.type})}attachLimits(t,r){const i=this.superscript?v0.createBox(new So({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,s=this.subscript?v0.createBox(new So({parent:t,mathstyle:"subscript"},this.style),this.subscript):null;return!i&&!s?r.base.wrap(t):Mu(t,I(g({},r),{above:i,below:s}))}bind(t,r){if(!r||t.isPhantom||this.value==="\u200B")return r;let i=this.parent;for(;i&&!i.captureSelection;)i=i.parent;return i!=null&&i.captureSelection||(this.id||(this.id=t.makeID()),r.atomID=this.id),r}createBox(t,r){var i,s,c,u;const k=(i=this.value)!=null?i:this.body,j=(s=r==null?void 0:r.boxType)!=null?s:Od(this.type);let Y=(c=r==null?void 0:r.classes)!=null?c:"";this.mode==="text"&&(Y+=" ML__text");const ce=typeof k=="string"||k===void 0?new zr(k!=null?k:null,{type:j,isSelected:this.isSelected,mode:this.mode,maxFontSize:t.scalingFactor,style:I(g({variant:"normal"},this.style),{fontSize:Math.max(1,t.size+t.mathstyle.sizeDelta)}),letterShapeStyle:t.letterShapeStyle,classes:Y}):(u=v0.createBox(t,k,{type:j,classes:Y}))!=null?u:new zr(null);return t.isTight&&(ce.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(ce.italic=0),ce.right=ce.italic,this.bind(t,ce),this.caret&&!this.superscript&&!this.subscript&&(ce.caret=this.caret),ce}isDigit(){var t;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((t=this.body)==null?void 0:t.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var t;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((t=this.body)==null?void 0:t.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function Dm(e){let t;const r=[];let i=[];for(const s of e)if(!t&&!s.style)i.push(s);else{const c=s.computedStyle;t&&c.color===t.color&&c.backgroundColor===t.backgroundColor&&c.fontSize===t.fontSize?i.push(s):(i.length>0&&r.push(i),i=[s],t=c)}return i.length>0&&r.push(i),r}function Om(e,t,r){var i,s,c,u,k;if(!t||t.length===0)return null;const j=new So({parent:e},r.style),Y=!((i=j.atomIdsSettings)!=null&&i.groupNumbers);let ce=[];if(t.length===1){const rt=t[0],gt=rt.render(j);gt&&(Y&&rt.isSelected&&gt.selected(!0),ce=[gt])}else{let rt="",gt=!0;for(const Et of t){(s=j.atomIdsSettings)!=null&&s.groupNumbers&&rt&&(gt&&Et.isDigit()||!gt&&_0(Et))&&(j.atomIdsSettings.overrideID=rt);const Br=Et.render(j);j.atomIdsSettings&&(j.atomIdsSettings.overrideID=void 0),Br&&((c=j.atomIdsSettings)!=null&&c.groupNumbers&&((Et.isDigit()||_0(Et))&&(!rt||gt!==Et.isDigit())&&(gt=Et.isDigit(),rt=(u=Et.id)!=null?u:""),rt&&(!(Et.isDigit()||_0(Et))||!Et.hasEmptyBranch("superscript")||!Et.hasEmptyBranch("subscript"))&&(rt="")),Y&&Et.isSelected&&Br.selected(!0),ce.push(Br))}}if(ce.length===0)return null;const Pe=new zr(ce,I(g({isTight:j.isTight},r),{type:(k=r.type)!=null?k:"lift"}));return Pe.isSelected=ce.every(rt=>rt.isSelected),Pe.wrap(j)}function _0(e){return e.mode==="text"}function I0(e){return e.map(t=>t===null?"<null>":Array.isArray(t)&&t[0]instanceof Ur?{atoms:t.map(r=>r.toJson())}:typeof t=="object"&&"group"in t?{group:t.group.map(r=>r.toJson())}:t)}var Ud=class P1 extends Ur{constructor(t,r,i){super({type:"text",command:t,mode:"text",displayContainsHighlight:!0}),this.value=r,this.verbatimLatex=r,this.applyStyle(i)}static fromJson(t){return new P1(t.command,t.value,t.style)}render(t){const r=this.createBox(t);return this.caret&&(r.caret=this.caret),r}_serialize(t){var r;return(r=this.verbatimLatex)!=null?r:kt("text",this.value.codePointAt(0))}};function Ih(e,t){if(e.direction===t.direction){const r=e.ranges.length;if(t.ranges.length===r){let i=0;for(;i<r&&F0(e.ranges[i],t.ranges[i])==="equal";)i++;return i===r?"equal":"different"}}return"different"}function F0(e,t){return e[0]===t[0]&&e[1]===t[1]?"equal":"different"}function Jl(e){let t=1/0,r=-1/0;for(const i of e.ranges)t=Math.min(t,i[0],i[1]),r=Math.max(r,i[0],i[1]);return[t,r]}function ld(e){return typeof e=="number"&&!Number.isNaN(e)}function Yf(e){return Array.isArray(e)&&e.length===2}function Fh(e){return e!=null&&typeof e=="object"&&"ranges"in e&&Array.isArray(e.ranges)}function Mh(e,t){const r=e.at(t);let i;if(r){i=r.mode;let s=r.parent;for(;!i&&s;)s&&(i=s.mode),s=s.parent}return i}function qf(e,t){if(!t)return"";if(typeof t=="string")return t;if(!e||t.after===void 0)return t.value;let r=!1,i=!1,s=!1,c=!1,u=!1,k=!1,j=!1,Y=!1,ce=!1,Pe=!1,rt=!1,gt=!1,Et=!1,Br=!1,In=!1,wr=e[0],nn=0;for(;wr!=null&&wr.type&&/^(subsup|placeholder)$/.test(wr.type);)nn+=1,wr=e[nn];return r=!wr||wr.type==="first",wr&&(Br=wr.mode==="text",i=!Br&&wr.type==="mord"&&m.test(wr.value),s=!Br&&wr.type==="mord"&&/\d+$/.test(wr.value),c=!Br&&wr.isFunction,u=wr.type==="genfrac",k=wr.type==="surd",j=wr.type==="mbin",Y=wr.type==="mrel",ce=wr.type==="mop"||wr.type==="operator"||wr.type==="extensible-symbol",Pe=wr.type==="mpunct"||wr.type==="minner",rt=wr.type==="array",gt=wr.type==="mopen",Et=wr.type==="mclose"||wr.type==="leftright",In=wr.type==="space"),t.after.includes("nothing")&&r||t.after.includes("letter")&&i||t.after.includes("digit")&&s||t.after.includes("function")&&c||t.after.includes("frac")&&u||t.after.includes("surd")&&k||t.after.includes("binop")&&j||t.after.includes("relop")&&Y||t.after.includes("operator")&&ce||t.after.includes("punct")&&Pe||t.after.includes("array")&&rt||t.after.includes("openfence")&&gt||t.after.includes("closefence")&&Et||t.after.includes("text")&&Br||t.after.includes("space")&&In?t.value:""}function M0(e,t,r){return r?qf(e,r[t]):""}var pp={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\doubleprime}","'''":"^{\\prime\\prime\\prime}","''''":"^{\\prime\\prime\\prime\\prime}",alpha:"\\alpha",delta:"\\delta",Delta:"\\Delta",pi:"\\pi",Pi:"\\Pi",theta:"\\theta",Theta:"\\Theta",ii:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryI"},jj:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\imaginaryJ"},ee:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\exponentialE"},nabla:"\\nabla",grad:"\\nabla",del:"\\partial",deg:{after:"digit+space",value:"\\degree"},infty:"\\infty","\u221E":"\\infty",oo:{after:"nothing+digit+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\infty"},"\u2211":"\\sum",sum:"\\sum_{#?}^{#?}",int:"\\int_{#?}^{#?}",prod:"\\prod_{#?}^{#?}",sqrt:"\\sqrt{#?}","\u2206":"\\differentialD","\u2202":"\\differentialD",arcsin:"\\arcsin",arccos:"\\arccos",arctan:"\\arctan",arcsec:"\\arcsec",arccsc:"\\arccsc",arsinh:"\\arsinh",arcosh:"\\arcosh",artanh:"\\artanh",arcsech:"\\arcsech",arccsch:"\\arccsch",arg:"\\arg",ch:"\\ch",cosec:"\\cosec",cosh:"\\cosh",cot:"\\cot",cotg:"\\cotg",coth:"\\coth",csc:"\\csc",ctg:"\\ctg",cth:"\\cth",sec:"\\sec",sinh:"\\sinh",sh:"\\sh",tanh:"\\tanh",tg:"\\tg",th:"\\th",sin:"\\sin",cos:"\\cos",tan:"\\tan",lg:"\\lg",lb:"\\lb",log:"\\log",ln:"\\ln",exp:"\\exp",lim:"\\lim_{#?}",dx:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD x"},dy:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD y"},dt:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\differentialD t"},AA:"\\forall",EE:"\\exists","!EE":"\\nexists","&&":"\\land",xin:{after:"nothing+text+relop+punct+openfence+space",value:"x \\in"},sint:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\sin t"},in:{after:"nothing+letter+closefence",value:"\\in"},"!in":"\\notin",NN:"\\mathbb{N}",ZZ:"\\Z",QQ:"\\Q",RR:"\\R",CC:"\\C",xx:"\\times","+-":"\\pm","\u2260":"\\ne","!=":"\\ne","\u2265":"\\ge",">=":"\\ge","\u2264":"\\le","<=":"\\le","<<":"\\ll",">>":"\\gg","~~":"\\approx","\u2248":"\\approx","?=":"\\questeq","\xF7":"\\div","\xAC":"\\neg",":=":"\\coloneq","::":"\\Colon","(:":"\\langle",":)":"\\rangle",beta:"\\beta",chi:"\\chi",epsilon:"\\epsilon",varepsilon:"\\varepsilon",eta:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\eta"},gamma:"\\gamma",Gamma:"\\Gamma",iota:"\\iota",kappa:"\\kappa",lambda:"\\lambda",Lambda:"\\Lambda",mu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\mu"},nu:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\nu"},\u00B5:"\\mu",phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\phi"},Phi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Phi"},varphi:"\\varphi",psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\psi"},Psi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Psi"},rho:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\rho"},sigma:"\\sigma",Sigma:"\\Sigma",tau:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\tau"},vartheta:"\\vartheta",upsilon:"\\upsilon",xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space",value:"\\xi"},Xi:{after:"nothing+digit+function+frac+surd+binop+relop+punct+array+openfence+closefence+space+text",value:"\\Xi"},zeta:"\\zeta",omega:"\\omega",Omega:"\\Omega",\u03A9:"\\omega",forall:"\\forall",exists:"\\exists","!exists":"\\nexists",":.":"\\therefore",liminf:"\\liminf_{#?}",limsup:"\\limsup_{#?}",argmin:"\\operatorname*{arg~min}_{#?}",argmax:"\\operatorname*{arg~max}_{#?}",det:"\\det",mod:"\\bmod{#?}","(mod":"\\pmod{#?}",max:"\\max",min:"\\min",erf:"\\operatorname{erf}",erfc:"\\operatorname{erfc}",bessel:"\\operatorname{bessel}",mean:"\\operatorname{mean}",median:"\\operatorname{median}",fft:"\\operatorname{fft}",lcm:"\\operatorname{lcm}",gcd:"\\operatorname{gcd}",randomReal:"\\operatorname{randomReal}",randomInteger:"\\operatorname{randomInteger}",Re:"\\operatorname{Re}",Im:"\\operatorname{Im}",mm:{after:"nothing+digit+operator",value:"\\operatorname{mm}"},cm:{after:"nothing+digit+operator",value:"\\operatorname{cm}"},km:{after:"nothing+digit+operator",value:"\\operatorname{km}"},kg:{after:"nothing+digit+operator",value:"\\operatorname{kg}"},"...":"\\ldots","+...":"+\\cdots","-...":"-\\cdots","->...":"\\to\\cdots","-->...":"\\longrightarrow\\cdots","->":"\\to","|->":"\\mapsto","-->":"\\longrightarrow","<--":"\\longleftarrow","=>":"\\Rightarrow","==>":"\\Longrightarrow","<=>":"\\Leftrightarrow","<->":"\\leftrightarrow","(.)":"\\odot","(+)":"\\oplus","(/)":"\\oslash","(*)":"\\otimes","(-)":"\\ominus","||":"\\Vert","*":"\\cdot","**":"\\star","***":"\\ast","//":"\\slash","\\\\":"\\backslash",setminus:"\\backslash","|><":"\\ltimes","><|":"\\rtimes","|><|":"\\bowtie","-:":"\\div",divide:"\\div","@":"\\circ","^^":"\\wedge","^^^":"\\bigwedge",vv:"\\vee",vvv:"\\bigvee",nn:"\\cap",nnn:"\\bigcap",uu:"\\cup",uuu:"\\bigcup","-=":"\\equiv","~=":"\\cong",lt:"<","lt=":"\\leq",gt:">","gt=":"\\geq","-<":"\\prec","-lt":"\\prec","-<=":"\\preceq",">-=":"\\succeq",prop:"\\propto",diamond:"\\diamond",square:"\\square",iff:"\\iff",sub:"\\subset",sup:"\\supset",sube:"\\subseteq",supe:"\\supseteq",uarr:"\\uparrow",darr:"\\downarrow",rarr:"\\rightarrow",rArr:"\\Rightarrow",larr:"\\leftarrow",lArr:"\\Leftarrow",harr:"\\leftrightarrow",hArr:"\\Leftrightarrow",aleph:"\\aleph",and:"\\land",or:"\\lor",not:"\\neg","_|_":"\\bot",TT:"\\top","|--":"\\vdash","|==":"\\models","|__":"\\lfloor","__|":"\\rfloor","|~":"\\lceil","~|":"\\rceil",">->":"\\rightarrowtail","->>":"\\twoheadrightarrow",">->>":"\\twoheadrightarrowtail",frac:"\\frac{#?}{#?}",cbrt:"\\sqrt[3]{#?}",nthroot:"\\sqrt[#?]{#?}"};function L0(e,t){var r;let i=(r=t==null?void 0:t.format)!=null?r:"auto";return i==="auto"&&([i,e]=Nm(e)),i==="ascii-math"?(e=e.replace(/\u2061/gu,""),e=e.replace(/\u3016/gu,"{"),e=e.replace(/\u3017/gu,"}"),e=e.replace(/([^\\])sinx/g,"$1\\sin x"),e=e.replace(/([^\\])cosx/g,"$1\\cos x "),e=e.replace(/\u2013/g,"-"),["ascii-math",nA(e,{inlineShortcuts:t==null?void 0:t.inlineShortcuts})]):["latex",e]}function nA(e,t){var r,i,s;if(!e)return"";let c=!1,u;const k=(r=t.inlineShortcuts)!=null?r:pp;if(!c&&(e.startsWith("^")||e.startsWith("_"))&&(u=Rd(e.slice(1),{inlineShortcuts:k,noWrap:!0}),e=e[0]+"{"+u.match+"}",e+=nA(u.rest,t),c=!0),c||(u=e.match(/^(sqrt|\u221A)(.*)/),u&&(u=Rd(u[2],{inlineShortcuts:k,noWrap:!0}),e="\\sqrt{"+((i=u.match)!=null?i:"\\placeholder{}")+"}",e+=nA(u.rest,t),c=!0)),c||(u=e.match(/^(\\cbrt|\u221B)(.*)/),u&&(u=Rd(u[2],{inlineShortcuts:k,noWrap:!0}),e="\\sqrt[3]{"+((s=u.match)!=null?s:"\\placeholder{}")+"}",e+=nA(u.rest,t),c=!0)),c||(u=e.match(/^abs(.*)/),u&&(u=Rd(u[1],{inlineShortcuts:k,noWrap:!0}),e="\\left|"+u.match+"\\right|",e+=nA(u.rest,t),c=!0)),c||(u=e.match(/^["”“](.*?)["”“](.*)/),u&&(e="\\text{"+u[1]+"}",e+=nA(u[2],t),c=!0)),c||(u=e.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),u&&(e=wf(u[1],k),e+=nA(u[2],t),c=!0)),!c&&/^([fgh])[^a-zA-Z]/.test(e)&&(u=Rd(e.slice(1),{inlineShortcuts:k,noWrap:!0}),e=e[1]==="("?e[0]+"\\left("+u.match+"\\right)":e[0]+u.match,e+=nA(u.rest,t),c=!0),c||(u=e.match(/^([a-zA-Z]+)(.*)/),u&&(e=wf(u[1],k),e+=nA(u[2],t),c=!0)),!c)if(u=Rd(e,{inlineShortcuts:k,noWrap:!0}),u.match&&u.rest[0]==="/"){const j=Rd(u.rest.slice(1),{inlineShortcuts:k,noWrap:!0});j.match&&(e="\\frac{"+u.match+"}{"+j.match+"}"+nA(j.rest,t)),c=!0}else u.match&&(e=e.startsWith("(")?"\\left("+u.match+"\\right)"+nA(u.rest,t):u.match+nA(u.rest,t),c=!0);return c||(u=e.match(/^(\s+)(.*)$/),u&&(e=" "+nA(u[2],t),c=!0)),e}function Rd(e,t){let r="";e=e.trim();let i=e,s=e.charAt(0),c={"(":")","{":"}","[":"]"}[s];if(c){let u=1,k=1;for(;k<e.length&&u>0;)e[k]===s&&u++,e[k]===c&&u--,k++;u===0?(t.noWrap&&s==="("?r=nA(e.substring(1,k-1),t):(s==="{"&&c==="}"&&(s="\\{",c="\\}"),r="\\left"+s+nA(e.substring(1,k-1),t)+"\\right"+c),i=e.slice(Math.max(0,k))):(r=e.substring(1,k),i="")}else{let u=e.match(/^([a-zA-Z]+)/);if(u){let k=M0(null,e,t.inlineShortcuts);if(k)return k=k.replace("_{#?}",""),k=k.replace("^{#?}",""),{match:k,rest:e.slice(k.length)}}if(u=e.match(/^([a-zA-Z])/),u)return{match:u[1],rest:e.slice(1)};if(u=e.match(/^(-)?\d+(\.\d*)?/),u)return{match:u[0],rest:e.slice(u[0].length)};/^\\(left|right)/.test(e)||(u=e.match(/^(\\[a-zA-Z]+)/),u&&(i=e.slice(u[1].length),r=u[1]))}return{match:r,rest:i}}function wf(e,t){let r=M0(null,e,t);return r?(r=r.replace("_{#?}",""),r=r.replace("^{#?}",""),r+=" "):r=e,r}var k0=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function eh(e){const t=e.trim();for(const r of k0)if(t.startsWith(r[0])&&t.endsWith(r[1]))return[!0,t.substring(r[0].length,t.length-r[1].length)];return[!1,e]}function Nm(e){if(e=e.trim(),e.length<=1)return["latex",e];let t;return[t,e]=eh(e),t?["latex",e]:e.startsWith("`")&&e.endsWith("`")?(e=e.substring(1,e.length-1),["ascii-math",e]):e.includes("\\")?["latex",e]:/\$.+\$/.test(e)?["latex",`\\text{${e}}`]:[void 0,e]}var Pm="$$",Tm="$$",Um=(e,t,r)=>(k0.some(i=>t.startsWith(i[0])&&t.endsWith(i[1]))||(t=`${Pm} ${t} ${Tm}`),t),mp=class Xg{constructor(t){Xg._modes[t]=this}static onPaste(t,r,i){var s;if(!r.contentEditable&&r.userSelect==="none")return r.model.announce("plonk"),!1;if(typeof i=="string"){const u=new DataTransfer;u.setData("text/plain",i),i=u}const c=new ClipboardEvent("paste",{clipboardData:i,cancelable:!0});return(s=r.host)!=null&&s.dispatchEvent(c)?Xg._modes[t].onPaste(r,i):!1}static copyToClipboard(t,r){if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const i=t.model,s=i.selectionIsCollapsed?[0,i.lastOffset]:Jl(i.selection),c=i.getValue(s,r);navigator.clipboard.writeText(c).then(()=>{},()=>t.model.announce("plonk"))}static onCopy(t,r){var i;if(!r.clipboardData)return;if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const s=t.model,c=s.selectionIsCollapsed?[0,s.lastOffset]:Jl(s.selection);let u=s.getAtoms(c);if(u.every(k=>k.mode==="text"||!k.mode))r.clipboardData.setData("text/plain",u.filter(k=>k instanceof Ud).map(k=>k.value).join(""));else if(u.every(k=>k.mode==="latex"))r.clipboardData.setData("text/plain",s.getAtoms(c,{includeChildren:!0}).map(k=>{var j;return(j=k.value)!=null?j:""}).join(""));else{let k;u.length===1&&u[0].verbatimLatex!==void 0?k=u[0].verbatimLatex:k=s.getValue(c,"latex-expanded"),r.clipboardData.setData("application/x-latex",k);try{r.clipboardData.setData("text/plain",t.options.onExport(t,k,c))}catch(j){}if(u.length===1){const j=u[0];(j.type==="root"||j.type==="group")&&(u=j.body.filter(Y=>Y.type!=="first"))}try{r.clipboardData.setData("application/json+mathlive",JSON.stringify(u.map(j=>j.toJson())))}catch(j){}if((i=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&i.ComputeEngine){const j=window.MathfieldElement.computeEngine;if(j)try{const Y=j.jsonSerializationOptions;j.jsonSerializationOptions={metadata:["latex"]};const ce=j.parse(s.getValue(c,"latex-unstyled"));j.jsonSerializationOptions=Y;const Pe=JSON.stringify(ce.json);Pe&&r.clipboardData.setData("application/json",Pe)}catch(Y){}}}r.preventDefault()}static insert(t,r,i={}){var s;const c=i.mode==="auto"?t.mode:(s=i.mode)!=null?s:t.mode;return Xg._modes[c].insert(t,r,i)}onPaste(t,r){return!1}insert(t,r,i){return!1}};mp._modes={};var Ls=mp,Wp=[{key:"left",command:"moveToPreviousChar"},{key:"right",command:"moveToNextChar"},{key:"up",command:"moveUp"},{key:"down",command:"moveDown"},{key:"shift+[ArrowLeft]",command:"extendSelectionBackward"},{key:"shift+[ArrowRight]",command:"extendSelectionForward"},{key:"shift+[ArrowUp]",command:"extendSelectionUpward"},{key:"shift+[ArrowDown]",command:"extendSelectionDownward"},{key:"[Backspace]",command:"deleteBackward"},{key:"alt+[Delete]",command:"deleteBackward"},{key:"[Delete]",command:"deleteForward"},{key:"alt+[Backspace]",command:"deleteForward"},{key:"alt+[ArrowLeft]",command:"moveToPreviousWord"},{key:"alt+[ArrowRight]",command:"moveToNextWord"},{key:"shift+alt+[ArrowLeft]",command:"extendToPreviousWord"},{key:"shift+alt+[ArrowRight]",command:"extendToNextWord"},{key:"ctrl+[ArrowLeft]",command:"moveToGroupStart"},{key:"ctrl+[ArrowRight]",command:"moveToGroupEnd"},{key:"shift+ctrl+[ArrowLeft]",command:"extendToGroupStart"},{key:"shift+ctrl+[ArrowRight]",command:"extendToGroupEnd"},{key:"[Home]",command:"moveToMathfieldStart"},{key:"cmd+[ArrowLeft]",command:"moveToMathfieldStart"},{key:"shift+[Home]",command:"extendToMathFieldStart"},{key:"shift+cmd+[ArrowLeft]",command:"extendToMathFieldStart"},{key:"[End]",command:"moveToMathfieldEnd"},{key:"cmd+[ArrowRight]",command:"moveToMathfieldEnd"},{key:"shift+[End]",command:"extendToMathFieldEnd"},{key:"shift+cmd+[ArrowRight]",command:"extendToMathFieldEnd"},{key:"[Pageup]",command:"moveToGroupStart"},{key:"[Pagedown]",command:"moveToGroupEnd"},{key:"[Tab]",command:"moveToNextGroup"},{key:"shift+[Tab]",command:"moveToPreviousGroup"},{key:"[Escape]",ifMode:"math",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"text",command:["switchMode","latex"]},{key:"[Escape]",ifMode:"latex",command:["complete","complete",{selectItem:"true"}]},{key:"\\",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[IntlBackslash]",ifMode:"math",command:["switchMode","latex","\\"]},{key:"[Tab]",ifMode:"latex",command:["complete","accept-suggestion"]},{key:"[Return]",ifMode:"latex",command:"complete"},{key:"[Enter]",ifMode:"latex",command:"complete"},{key:"shift+[Escape]",ifMode:"latex",command:["complete","reject"]},{key:"[ArrowDown]",ifMode:"latex",command:"nextSuggestion"},{key:"[ArrowUp]",ifMode:"latex",command:"previousSuggestion"},{key:"ctrl+a",ifPlatform:"!macos",command:"selectAll"},{key:"cmd+a",command:"selectAll"},{key:"[Cut]",command:"cutToClipboard"},{key:"[Copy]",command:"copyToClipboard"},{key:"[Paste]",command:"pasteFromClipboard"},{key:"[Clear]",command:"deleteBackward"},{key:"[Undo]",command:"undo"},{key:"[Redo]",command:"redo"},{key:"[EraseEof]",command:"deleteToGroupEnd"},{key:"ctrl+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"cmd+x",ifPlatform:"ios",command:"cutToClipboard"},{key:"ctrl+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"cmd+c",ifPlatform:"ios",command:"copyToClipboard"},{key:"ctrl+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"cmd+v",ifPlatform:"ios",command:"pasteFromClipboard"},{key:"ctrl+z",ifPlatform:"!macos",command:"undo"},{key:"cmd+z",command:"undo"},{key:"ctrl+y",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+y",command:"redo"},{key:"shift+ctrl+z",ifPlatform:"!macos",command:"redo"},{key:"shift+cmd+z",command:"redo"},{key:"ctrl+b",ifPlatform:"macos",command:"moveToPreviousChar"},{key:"ctrl+f",ifPlatform:"macos",command:"moveToNextChar"},{key:"ctrl+p",ifPlatform:"macos",command:"moveUp"},{key:"ctrl+n",ifPlatform:"macos",command:"moveDown"},{key:"ctrl+a",ifPlatform:"macos",command:"moveToMathfieldStart"},{key:"ctrl+e",ifPlatform:"macos",command:"moveToMathfieldEnd"},{key:"shift+ctrl+b",ifPlatform:"macos",command:"extendSelectionBackward"},{key:"shift+ctrl+f",ifPlatform:"macos",command:"extendSelectionForward"},{key:"shift+ctrl+p",ifPlatform:"macos",command:"extendSelectionUpward"},{key:"shift+ctrl+n",ifPlatform:"macos",command:"extendSelectionDownward"},{key:"shift+ctrl+a",ifPlatform:"macos",command:"extendToMathFieldStart"},{key:"shift+ctrl+e",ifPlatform:"macos",command:"extendToMathFieldEnd"},{key:"alt+ctrl+b",ifPlatform:"macos",command:"moveToPreviousWord"},{key:"alt+ctrl+f",ifPlatform:"macos",command:"moveToNextWord"},{key:"shift+alt+ctrl+b",ifPlatform:"macos",command:"extendToPreviousWord"},{key:"shift+alt+ctrl+f",ifPlatform:"macos",command:"extendToNextWord"},{key:"ctrl+h",ifPlatform:"macos",command:"deleteBackward"},{key:"ctrl+d",ifPlatform:"macos",command:"deleteForward"},{key:"ctrl+l",ifPlatform:"macos",command:"scrollIntoView"},{key:"ctrl+[Digit2]",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"ctrl+[Digit5]",ifMode:"math",command:"moveToOpposite"},{key:"ctrl+[Digit6]",ifMode:"math",command:"moveToSuperscript"},{key:"ctrl+[Return]",ifMode:"math",command:"addRowAfter"},{key:"ctrl+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Return]",ifMode:"math",command:"addRowAfter"},{key:"cmd+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"alt+p",ifMode:"math",command:["insert","\\pi"]},{key:"alt+v",ifMode:"math",command:["insert","\\sqrt{#0}"]},{key:"alt+o",ifMode:"math",command:["insert","\\emptyset"]},{key:"alt+d",ifMode:"math",command:["insert","\\differentialD"]},{key:"shift+alt+o",ifMode:"math",command:["insert","\\varnothing"]},{key:"shift+alt+d",ifMode:"math",command:["insert","\\partial"]},{key:"alt+[Backslash]",ifMode:"math",command:["insert","\\backslash"]},{key:"[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+[NumpadDivide]",ifMode:"math",command:["insert","\\frac{#?}{#@}"]},{key:"shift+alt+k",command:"toggleKeystrokeCaption"},{key:"alt+[Space]",command:"toggleContextMenu"},{key:"alt+shift+[Space]",command:"toggleVirtualKeyboard"},{key:"alt+ctrl+[ArrowUp]",command:["speak","all",{withHighlighting:!1}]},{key:"alt+ctrl+[ArrowDown]",command:["speak","selection",{withHighlighting:!1}]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["switchMode","text","",""]},{key:"shift+alt+[KeyT]",ifMode:"math",command:["switchMode","text","",""]},{key:"shift+[Quote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"text",command:["switchMode","math","",""]},{key:"shift+alt+[KeyT]",ifMode:"text",command:["switchMode","math","",""]},{key:"/",ifMode:"math",command:["insert","\\frac{#@}{#?}"]},{key:"alt+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+shift+/",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","/"]},{key:"alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrack #0 \\right\\rbrack"]},{key:"ctrl+[Minus]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"moveToSubscript"},{key:"shift+alt+[BracketLeft]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\left\\lbrace #0 \\right\\rbrace"]},{key:"ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowAfter"},{key:"shift+ctrl+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"shift+cmd+;",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:"addRowBefore"},{key:"ctrl+[Backspace]",ifMode:"math",command:"removeRow"},{key:"cmd+[Backspace]",ifMode:"math",command:"removeRow"},{key:"alt+[Tab]",ifMode:"math",command:"addColumnAfter"},{key:"shift+alt+[Tab]",ifMode:"math",command:"addColumnBefore"},{key:"alt+[Enter]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Enter]",ifMode:"math",command:"addRowBefore"},{key:"alt+[Return]",ifMode:"math",command:"addRowAfter"},{key:"shift+alt+[Return]",ifMode:"math",command:"addRowBefore"},{key:"shift+[Backspace]",ifMode:"math",command:"removeColumn"},{key:"alt+[Digit5]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","$\\infty"]},{key:"alt+[Digit9]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","("]},{key:"alt+[Digit0]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert",")"]},{key:"alt+|",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","|"]},{key:"shift+[Backquote]",ifLayout:["apple.en-intl","windows.en-intl","linux.en"],ifMode:"math",command:["insert","\\~"]},{key:"[Backquote]",ifLayout:["windows.french","linux.french"],ifMode:"math",command:["insert","^2"]},{key:"[Backquote]",ifLayout:["windows.german","linux.german"],ifMode:"math",command:["insert","^"]},{key:"[IntlBackslash]",ifLayout:["apple.german"],ifMode:"math",command:["insert","^"]}],Gp={"\\sqrt":["alt+v","ctrl+[Digit2]"],"\\pi":"alt+p","\\infty":"alt+[Digit5]","\\differentialD":"alt+d","\\partial":"shift+alt+d","\\frac":"Slash","\\emptyset":"alt+o","\\varnothing":"shift+alt+o","\\~":"~"};function cd(e){var t;return((t=e.element)==null?void 0:t.mathfield)===e}function Xp(e){var t,r;return(r=(t=e.querySelector(".ML__caret"))!=null?t:e.querySelector(".ML__text-caret"))!=null?r:e.querySelector(".ML__latex-caret")}function th(e){const t=Xp(e);if(!t)return null;const r=t.getBoundingClientRect();return{x:r.right,y:r.bottom,height:r.height}}function gp(e){var t;if(!e.parent)return"root";let r=(t=e.parent.id)!=null?t:"";return r+=typeof e.parentBranch=="string"?"-"+e.parentBranch:`-${e.parentBranch[0]}/${e.parentBranch[0]}`,r}function rh(e,t,r){if(!t)return null;const i=e.field.getBoundingClientRect(),s=t.right-t.left,c=t.bottom-t.top,u=Math.ceil(t.left-i.left+e.field.scrollLeft*r),k=Math.ceil(t.top-i.top);return{left:u,right:u+s,top:k,bottom:k+c}}function Lh(e){const t=e.getBoundingClientRect(),r=parseInt(getComputedStyle(e).marginRight),i={top:t.top-1,bottom:t.bottom,left:t.left,right:t.right-1+r};if(e.children.length===0||e.tagName.toUpperCase()==="SVG")return i;for(const s of e.children)if(s.nodeType===1&&"atomId"in s.dataset&&!s.classList.contains("pstrut")){const c=Lh(s);i.left=Math.min(i.left,c.left),i.right=Math.max(i.right,c.right),i.top=Math.min(i.top,c.top),i.bottom=Math.max(i.bottom,c.bottom)}return i}function nh(e,t){var r,i;if(!t.id)return null;let s=(i=(r=e.atomBoundsCache)==null?void 0:r.get(t.id))!=null?i:null;if(s!==null)return s;const c=e.field.querySelector(`[data-atom-id="${t.id}"]`);return s=c?Lh(c):null,e.atomBoundsCache&&(s?e.atomBoundsCache.set(t.id,s):e.atomBoundsCache.delete(t.id)),s!=null?s:null}function Jp(e,t,r){const i=new Map;for(const s of e.model.getAtoms(t,{includeChildren:!0})){if(r!=null&&r.excludeAtomsWithBackground&&s.style.backgroundColor)continue;const c=e.field,u=c.offsetWidth;let j=Math.floor(c.getBoundingClientRect().width)/u;j=isNaN(j)?1:j;const Y=rh(e,nh(e,s),j);if(Y){const ce=gp(s);if(i.has(ce)){const Pe=i.get(ce);i.set(ce,{left:Math.min(Pe.left,Y.left),right:Math.max(Pe.right,Y.right),top:Math.min(Pe.top,Y.top),bottom:Math.max(Pe.bottom,Y.bottom)})}else i.set(ce,Y)}}return[...i.values()]}function Rm(e,t){return e.model.selection.ranges.reduce((r,i)=>r.concat(...Jp(e,i,t)),[])}function kh(e,t){return e==="*"||t==="none"?!0:t==="same-origin"?!window.origin||e===window.origin:typeof t=="function"?t(e):!1}function D0(e){let t=0,r=0;const i=e.offsetWidth,s=e.offsetHeight;for(;e instanceof HTMLElement;)t+=e.offsetTop,r+=e.offsetLeft,e=e.offsetParent;return new DOMRect(r,t,i,s)}var Qm=`@keyframes ML__caret-blink {
0%,
100% {
opacity: 1;
}
50% {
opacity: 0;
}
}
.ML__container {
display: inline-flex;
flex-flow: row;
justify-content: space-between;
align-items: flex-end;
min-height: 39px;
/* Need some room for the virtual keyboard toggle */
width: 100%;
/* Encourage browsers to consider allocating a hardware accelerated
layer for this element. */
isolation: isolate;
/* Prevent the browser from trying to interpret touch gestures in the field */
/* "Disabling double-tap to zoom removes the need for browsers to
delay the generation of click events when the user taps the screen." */
touch-action: none;
--_caret-color: var(--caret-color, hsl(var(--_hue), 40%, 49%));
--_selection-color: var(--selection-color, #000);
--_selection-background-color: var(--selection-background-color, hsl(var(--_hue), 70%, 85%));
--_text-highlight-background-color: var(--highlight-text, hsla(var(--_hue), 40%, 50%, 0.1));
--_contains-highlight-background-color: var(--contains-highlight-background-color, hsl(var(--_hue), 40%, 95%));
--_smart-fence-color: var(--smart-fence-color, currentColor);
--_smart-fence-opacity: var(--smart-fence-opacity, 0.5);
--_latex-color: var(--latex-color, hsl(var(--_hue), 80%, 40%));
--_correct-color: var(--correct-color, #10a000);
--_incorrect-color: var(--incorrect-color, #a01b00);
--_composition-background-color: var(--composition-background-color, #fff1c2);
--_composition-text-color: var(--composition-text-color, black);
--_composition-underline-color: var(--composition-underline-color, transparent);
}
/* This is the actual field content (formula) */
.ML__content {
display: flex;
align-items: center;
align-self: center;
position: relative;
overflow: hidden;
padding: 2px 3px 2px 1px;
width: 100%;
}
.ML__virtual-keyboard-toggle,
.ML__menu-toggle {
box-sizing: border-box;
display: flex;
align-self: center;
align-items: center;
flex-shrink: 0;
flex-direction: column;
justify-content: center;
width: 34px;
height: 34px;
padding: 0;
margin-right: 4px;
cursor: pointer;
/* Avoid some weird blinking with :hover */
border-radius: 8px;
border: 1px solid transparent;
transition: background 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
color: hsl(var(--_hue), 40%, 50%);
fill: currentColor;
background: transparent;
}
.ML__virtual-keyboard-toggle:hover,
.ML__menu-toggle:hover {
background: hsla(0, 0%, 70%, 0.3);
color: #333;
fill: currentColor;
}
.ML__virtual-keyboard-toggle > span,
.ML__menu-toggle > span {
display: flex;
align-self: center;
align-items: center;
}
/* The invisible element used to capture keyboard events. We're just trying
really hard to make sure it doesn't show. */
.ML__keyboard-sink {
display: inline-block;
resize: none;
outline: none;
border: none;
/* Need these for Microsoft Edge */
position: fixed;
clip: rect(0 0 0 0);
/* Need this to prevent iOS Safari from auto-zooming */
font-size: 1em;
font-family: KaTeX_Main;
line-height: 0.5;
/* On Chromium, if this is 0, no keyboard events are received */
}
[part="placeholder"] {
color: var(--neutral-400);
}
.ML__composition {
background: var(--_composition-background-color);
color: var(--_composition-text-color);
text-decoration: underline var(--_composition-underline-color);
}
.ML__caret::after {
content: '';
visibility: hidden;
width: 0;
display: inline-block;
height: 0.76em;
--_caret-width: clamp(2px, 0.08em, 10px);
border: none;
border-radius: calc(var(--_caret-width) / 2);
border-right: var(--_caret-width) solid var(--_caret-color);
margin-right: calc(-1 * var(--_caret-width));
position: relative;
left: -0.045em;
bottom: -0.05em;
animation: ML__caret-blink 1.05s step-end forwards infinite;
}
.ML__text-caret::after {
content: '';
visibility: hidden;
width: 0;
display: inline-block;
height: 0.76em;
--_caret-width: clamp(2px, 0.08em, 10px);
border: none;
border-radius: calc(var(--_caret-width) / 2);
border-right: var(--_caret-width) solid var(--_caret-color);
margin-right: calc(-1 * var(--_caret-width));
position: relative;
left: -0.045em;
bottom: -0.05em;
animation: ML__caret-blink 1.05s step-end forwards infinite;
}
.ML__latex-caret::after {
content: '';
visibility: hidden;
--_caret-width: clamp(2px, 0.08em, 10px);
border: none;
border-radius: calc(var(--_caret-width) / 2);
border-right: var(--_caret-width) solid var(--_latex-color);
margin-right: calc(-1 * var(--_caret-width));
position: relative;
left: -0.019em;
animation: ML__caret-blink 1.05s step-end forwards infinite;
}
.ML__focused .ML__latex-caret::after,
.ML__focused .ML__text-caret::after,
.ML__focused .ML__caret::after {
visibility: visible;
}
.ML__focused .ML__text {
background: var(--_text-highlight-background-color);
}
/* When using smartFence, the anticipated closing fence is displayed
with this style */
.ML__smart-fence__close {
opacity: var(--_smart-fence-opacity);
color: var(--_smart-fence-color);
}
.ML__selected,
.ML__focused .ML__selected .ML__contains-caret,
.ML__focused .ML__selected .ML__smart-fence__close,
.ML__focused .ML__selected .ML__placeholder {
color: var(--_selection-color);
opacity: 1;
}
.ML__selection {
box-sizing: border-box;
background: var(--_selection-background-color) !important;
}
.ML__contains-caret.ML__close,
.ML__contains-caret.ML__open,
.ML__contains-caret > .ML__close,
.ML__contains-caret > .ML__open,
.ML__contains-caret .ML__sqrt-sign,
.ML__contains-caret .ML__sqrt-line {
color: var(--_caret-color);
}
.ML__contains-highlight {
box-sizing: border-box;
background: transparent;
}
.ML__focused .ML__contains-highlight {
background: var(--_contains-highlight-background-color);
}
.ML__raw-latex {
font-family: 'Berkeley Mono', 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
font-weight: 400;
font-size: 0.8em;
letter-spacing: -0.05em;
color: var(--_latex-color);
}
.ML__suggestion {
color: var(--neutral-500);
}
.ML__virtual-keyboard-toggle.is-visible.is-pressed:hover {
background: hsl(var(--_hue), 25%, 35%);
color: #fafafa;
fill: currentColor;
}
.ML__virtual-keyboard-toggle:focus {
outline: none;
border-radius: 8px;
border: 2px solid hsl(var(--_hue), 40%, 50%);
}
.ML__virtual-keyboard-toggle.is-pressed,
.ML__virtual-keyboard-toggle.is-active:hover,
.ML__virtual-keyboard-toggle.is-active {
background: hsl(var(--_hue), 25%, 35%);
color: #fafafa;
fill: currentColor;
}
/* Add an attribute 'data-tooltip' to automatically show a
tooltip over a element on hover.
*/
[data-tooltip] {
position: relative;
}
[data-tooltip]::after {
content: attr(data-tooltip);
position: absolute;
display: block;
z-index: 2;
pointer-events: none;
right: auto;
top: calc(-100% - 4px);
width: max-content;
max-width: 200px;
padding: 8px 8px;
border-radius: 4px;
background: #616161;
color: #fff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
text-align: center;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-style: normal;
font-weight: 400;
font-size: 13px;
/* Phone */
opacity: 0;
transform: scale(0.5);
}
@media only screen and (max-width: 767px) {
[data-tooltip]::after {
padding: 8px 16px;
font-size: 16px;
}
}
menu [data-tooltip]::after {
left: 100%;
top: 0%;
}
menu .ML__base {
cursor: default;
}
/** Don't display if we're tracking, i.e. have the pointer down */
.tracking [data-tooltip]:hover::after {
/* Use visibility, not display. Display will remove the after from the DOM, and the override below will not work */
visibility: hidden;
}
/** But do display if tracking and inside a menu */
.tracking menu li[data-tooltip]:hover::after,
[data-tooltip]:hover::after {
visibility: visible;
opacity: 1;
transform: scale(1);
transition-property: opacity, scale;
transition-duration: 0.15s;
transition-delay: 1s;
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ML__prompt {
border-radius: 2px;
}
.ML__editablePromptBox {
outline: 1px solid #acacac;
border-radius: 2px;
z-index: -1;
}
.ML__focusedPromptBox {
outline: highlight auto 1px;
}
.ML__lockedPromptBox {
background-color: rgba(142, 142, 141, 0.4);
z-index: -1;
}
.ML__correctPromptBox {
outline: 1px solid var(--_correct-color);
box-shadow: 0 0 5px var(--_correct-color);
}
.ML__incorrectPromptBox {
outline: 1px solid var(--_incorrect-color);
box-shadow: 0 0 5px var(--_incorrect-color);
}
.variant-submenu {
display: flex;
flex-direction: column;
padding: 8px;
}
.variant-submenu [part=menu-item] {
font-size: 2rem;
text-align: center;
margin: 0;
}
.insert-matrix-submenu {
display: grid;
padding: 8px;
align-content: center;
justify-content: center;
grid-template-columns: repeat(5, minmax(0, 1fr));
}
.insert-matrix-submenu [part=menu-item] {
font-size: 21px;
border: none;
border-radius: 0;
line-height: 21px;
text-align: center;
padding: 0;
margin: 0;
}
.border-submenu [part=menu-item] {
font-size: 2rem;
line-height: 1.2;
text-align: center;
}
.swatches-submenu {
--_swatch-size: 2rem;
--_columns: 4;
display: flex;
flex-flow: wrap;
padding: 8px;
max-width: calc(var(--_columns) * (var(--_swatch-size) + 18px) + 16px);
box-sizing: border-box;
}
.menu-swatch {
display: flex;
align-items: center;
justify-content: center;
box-sizing: border-box;
width: fit-content;
height: fit-content;
margin: 2px;
padding: 0;
background: var(--neutral-200);
}
.menu-swatch > .label {
padding: 0;
margin: 0;
line-height: 0;
}
.menu-swatch > .label > span {
display: inline-block;
margin: 6px;
min-width: var(--_swatch-size);
min-height: var(--_swatch-size);
border-radius: 50%;
}
.menu-swatch.active {
background: var(--neutral-100);
scale: 1.4;
}
.menu-swatch.active > .label > span {
border-radius: 2px;
}
.menu-swatch .ui-checkmark,
.menu-swatch .ui-mixedmark {
position: absolute;
margin: 0;
padding: 0;
color: white;
}
.menu-swatch.dark-contrast .ui-checkmark,
.menu-swatch.dark-contrast .ui-mixedmark {
color: #000;
}
`,Yp=`.ML__container {
min-height: auto !important;
--_hue: var(--hue, 212);
--_placeholder-color: var(--placeholder-color, hsl(var(--_hue), 40%, 49%));
--_placeholder-opacity: var(--placeholder-opacity, 0.4);
--_text-font-family: var(--text-font-family, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif);
}
.ML__sr-only {
position: absolute;
width: 1px;
height: 1px;
margin: -1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
clip-path: inset(50%);
white-space: nowrap;
border: 0;
}
.ML__is-inline {
display: inline-block;
}
.ML__base {
visibility: inherit;
display: inline-block;
position: relative;
cursor: text;
padding: 0;
margin: 0;
box-sizing: content-box;
border: 0;
outline: 0;
vertical-align: baseline;
font-weight: inherit;
font-family: inherit;
font-style: inherit;
text-decoration: none;
width: min-content;
}
.ML__strut,
.ML__strut--bottom {
display: inline-block;
min-height: 0.5em;
}
.ML__small-delim {
font-family: KaTeX_Main;
}
/* Text mode */
.ML__text {
font-family: var(--_text-font-family);
white-space: pre;
}
/* Use cmr for 'math upright' */
.ML__cmr {
font-family: KaTeX_Main;
font-style: normal;
}
.ML__mathit {
font-family: KaTeX_Math;
/* The KaTeX_Math font is italic by default, so the font-style below is only
useful when a fallback font is used
*/
font-style: italic;
}
.ML__mathbf {
font-family: KaTeX_Main;
font-weight: bold;
}
/* Lowercase greek symbols should stick to math font when \\mathbf is applied
to match TeX idiosyncratic behavior */
.lcGreek.ML__mathbf {
font-family: KaTeX_Math;
font-weight: normal;
}
.ML__mathbfit {
font-family: KaTeX_Math;
font-weight: bold;
font-style: italic;
}
.ML__ams {
font-family: KaTeX_AMS;
}
/* Blackboard */
.ML__bb {
font-family: KaTeX_AMS;
}
.ML__cal {
font-family: KaTeX_Caligraphic;
}
.ML__frak {
font-family: KaTeX_Fraktur;
}
.ML__tt {
font-family: KaTeX_Typewriter;
}
.ML__script {
font-family: KaTeX_Script;
}
.ML__sans {
font-family: KaTeX_SansSerif;
}
.ML__series_ul {
font-weight: 100;
}
.ML__series_el {
font-weight: 100;
}
.ML__series_l {
font-weight: 200;
}
.ML__series_sl {
font-weight: 300;
}
.ML__series_sb {
font-weight: 500;
}
.ML__bold,
.ML__boldsymbol {
font-weight: 700;
}
.ML__series_eb {
font-weight: 800;
}
.ML__series_ub {
font-weight: 900;
}
.ML__series_uc {
font-stretch: ultra-condensed;
}
.ML__series_ec {
font-stretch: extra-condensed;
}
.ML__series_c {
font-stretch: condensed;
}
.ML__series_sc {
font-stretch: semi-condensed;
}
.ML__series_sx {
font-stretch: semi-expanded;
}
.ML__series_x {
font-stretch: expanded;
}
.ML__series_ex {
font-stretch: extra-expanded;
}
.ML__series_ux {
font-stretch: ultra-expanded;
}
.ML__it {
font-style: italic;
}
.ML__shape_ol {
-webkit-text-stroke: 1px black;
text-stroke: 1px black;
color: transparent;
}
.ML__shape_sc {
font-variant: small-caps;
}
.ML__shape_sl {
font-style: oblique;
}
/* First level emphasis */
.ML__emph {
color: #bc2612;
}
/* Second level emphasis */
.ML__emph .ML__emph {
color: #0c7f99;
}
.ML__highlight {
color: #007cb2;
background: #edd1b0;
}
.ML__center {
text-align: center;
}
.ML__label_padding {
padding: 0 0.5em;
}
.ML__frac-line {
width: 100%;
min-height: 1px;
}
.ML__frac-line:after {
content: '';
display: block;
margin-top: max(-1px, -0.04em);
min-height: max(1px, 0.04em);
/* Ensure the line is visible when printing even if "turn off background images" is on*/
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
/* There's a bug since Chrome 62 where
sub-pixel border lines don't draw at some zoom
levels (110%, 90%).
Setting the min-height used to work around it, but that workaround
broke in Chrome 84 or so.
Setting the background (and the min-height) seems to work for now.
*/
background: currentColor;
box-sizing: content-box;
/* Vuetify sets the box-sizing to inherit
causes the fraction line to not draw at all sizes (see #26) */
/* On some versions of Firefox on Windows, the line fails to
draw at some zoom levels, but setting the transform triggers
the hardware accelerated path, which works */
transform: translate(0, 0);
}
.ML__sqrt {
display: inline-block;
}
.ML__sqrt-sign {
display: inline-block;
position: relative;
}
.ML__sqrt-line {
display: inline-block;
height: max(1px, 0.04em);
width: 100%;
}
.ML__sqrt-line:before {
content: '';
display: block;
margin-top: min(-1px, -0.04em);
min-height: max(1px, 0.04em);
/* Ensure the line is visible when printing even if "turn off background images" is on*/
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
background: currentColor;
/* On some versions of Firefox on Windows, the line fails to
draw at some zoom levels, but setting the transform triggers
the hardware accelerated path, which works */
transform: translate(0, 0);
}
.ML__sqrt-line:after {
border-bottom-width: 1px;
content: ' ';
display: block;
margin-top: -0.1em;
}
.ML__sqrt-index {
margin-left: 0.27777778em;
margin-right: -0.55555556em;
}
.ML__delim-size1 {
font-family: KaTeX_Size1;
}
.ML__delim-size2 {
font-family: KaTeX_Size2;
}
.ML__delim-size3 {
font-family: KaTeX_Size3;
}
.ML__delim-size4 {
font-family: KaTeX_Size4;
}
.ML__delim-mult .delim-size1 > span {
font-family: KaTeX_Size1;
}
.ML__delim-mult .delim-size4 > span {
font-family: KaTeX_Size4;
}
.ML__accent-body > span {
font-family: KaTeX_Main;
width: 0;
}
.ML__accent-vec {
position: relative;
left: 0.24em;
}
/** The markup for a LaTeX formula, either in an editable mathfield or
in a static display.
*/
.ML__latex {
display: inline-block;
direction: ltr;
text-align: left;
text-indent: 0;
text-rendering: auto;
font-family: KaTeX_Main, 'Times New Roman', serif;
font-style: normal;
font-size-adjust: none;
font-stretch: normal;
font-variant-caps: normal;
letter-spacing: normal;
line-height: 1.2;
word-wrap: normal;
word-spacing: normal;
white-space: nowrap;
text-shadow: none;
-webkit-user-select: none;
user-select: none;
width: min-content;
}
.ML__latex .style-wrap {
position: relative;
}
.ML__latex .mfrac {
display: inline-block;
}
.ML__latex .left-right {
display: inline-block;
}
.ML__latex .vlist-t {
display: inline-table;
table-layout: fixed;
border-collapse: collapse;
}
.ML__latex .vlist-r {
display: table-row;
}
.ML__latex .vlist {
display: table-cell;
vertical-align: bottom;
position: relative;
}
.ML__latex .vlist > span {
display: block;
height: 0;
position: relative;
}
.ML__latex .vlist > span > span {
display: inline-block;
}
.ML__latex .vlist > span > .pstrut {
overflow: hidden;
width: 0;
}
.ML__latex .vlist-t2 {
margin-right: -2px;
}
.ML__latex .vlist-s {
display: table-cell;
vertical-align: bottom;
font-size: 1px;
width: 2px;
min-width: 2px;
}
.ML__latex .msubsup {
text-align: left;
}
.ML__latex .negativethinspace {
display: inline-block;
margin-left: -0.16667em;
height: 0.71em;
}
.ML__latex .thinspace {
display: inline-block;
width: 0.16667em;
height: 0.71em;
}
.ML__latex .mediumspace {
display: inline-block;
width: 0.22222em;
height: 0.71em;
}
.ML__latex .thickspace {
display: inline-block;
width: 0.27778em;
height: 0.71em;
}
.ML__latex .enspace {
display: inline-block;
width: 0.5em;
height: 0.71em;
}
.ML__latex .quad {
display: inline-block;
width: 1em;
height: 0.71em;
}
.ML__latex .qquad {
display: inline-block;
width: 2em;
height: 0.71em;
}
.ML__latex .llap,
.ML__latex .rlap {
width: 0;
position: relative;
display: inline-block;
}
.ML__latex .llap > .inner,
.ML__latex .rlap > .inner {
position: absolute;
}
.ML__latex .llap > .fix,
.ML__latex .rlap > .fix {
display: inline-block;
}
.ML__latex .llap > .inner {
right: 0;
}
.ML__latex .rlap > .inner {
left: 0;
}
.ML__latex .rule {
display: inline-block;
border: solid 0;
position: relative;
box-sizing: border-box;
}
.ML__latex .overline .overline-line,
.ML__latex .underline .underline-line {
width: 100%;
}
.ML__latex .overline .overline-line:before,
.ML__latex .underline .underline-line:before {
content: '';
border-bottom-style: solid;
border-bottom-width: max(1px, 0.04em);
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
display: block;
}
.ML__latex .overline .overline-line:after,
.ML__latex .underline .underline-line:after {
border-bottom-style: solid;
border-bottom-width: max(1px, 0.04em);
-webkit-print-color-adjust: exact;
print-color-adjust: exact;
content: '';
display: block;
margin-top: -1px;
}
.ML__latex .stretchy {
display: block;
position: absolute;
width: 100%;
left: 0;
overflow: hidden;
}
.ML__latex .stretchy:before,
.ML__latex .stretchy:after {
content: '';
}
.ML__latex .stretchy svg {
display: block;
position: absolute;
width: 100%;
height: inherit;
fill: currentColor;
stroke: currentColor;
fill-rule: nonzero;
fill-opacity: 1;
stroke-width: 1;
stroke-linecap: butt;
stroke-linejoin: miter;
stroke-miterlimit: 4;
stroke-dasharray: none;
stroke-dashoffset: 0;
stroke-opacity: 1;
}
.ML__latex .slice-1-of-2 {
display: inline-flex;
position: absolute;
left: 0;
width: 50.2%;
overflow: hidden;
}
.ML__latex .slice-2-of-2 {
display: inline-flex;
position: absolute;
right: 0;
width: 50.2%;
overflow: hidden;
}
.ML__latex .slice-1-of-3 {
display: inline-flex;
position: absolute;
left: 0;
width: 25.1%;
overflow: hidden;
}
.ML__latex .slice-2-of-3 {
display: inline-flex;
position: absolute;
left: 25%;
width: 50%;
overflow: hidden;
}
.ML__latex .slice-3-of-3 {
display: inline-flex;
position: absolute;
right: 0;
width: 25.1%;
overflow: hidden;
}
.ML__latex .slice-1-of-1 {
display: inline-flex;
position: absolute;
width: 100%;
left: 0;
overflow: hidden;
}
.ML__latex .nulldelimiter {
display: inline-block;
}
.ML__latex .op-group {
display: inline-block;
}
.ML__latex .op-symbol {
position: relative;
}
.ML__latex .op-symbol.small-op {
font-family: KaTeX_Size1;
}
.ML__latex .op-symbol.large-op {
font-family: KaTeX_Size2;
}
.ML__latex .mtable .vertical-separator {
display: inline-block;
min-width: 1px;
box-sizing: border-box;
}
.ML__latex .mtable .arraycolsep {
display: inline-block;
}
.ML__latex .mtable .col-align-m > .vlist-t {
text-align: center;
}
.ML__latex .mtable .col-align-c > .vlist-t {
text-align: center;
}
.ML__latex .mtable .col-align-l > .vlist-t {
text-align: left;
}
.ML__latex .mtable .col-align-r > .vlist-t {
text-align: right;
}
.ML__error {
display: inline-block;
background-image: radial-gradient(ellipse at center, hsl(341, 100%, 40%), rgba(0, 0, 0, 0) 70%);
background-color: hsla(341, 100%, 40%, 0.1);
background-repeat: repeat-x;
background-size: 3px 3px;
padding-bottom: 3px;
background-position: 0 100%;
}
.ML__error > .ML__error {
background: transparent;
padding: 0;
}
.ML__placeholder {
color: var(--_placeholder-color);
opacity: var(--_placeholder-opacity);
padding-left: 0.4ex;
padding-right: 0.4ex;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}
.ML__notation {
position: absolute;
box-sizing: border-box;
line-height: 0;
}
/* This class is used to implement the \`\\mathtip\` and \`\\texttip\` commands
For UI elements, see \`[data-ML__tooltip]\`
*/
.ML__tooltip-container {
position: relative;
transform: scale(0);
}
.ML__tooltip-container .ML__tooltip-content {
position: fixed;
display: inline-table;
visibility: hidden;
z-index: 2;
width: max-content;
max-width: 400px;
padding: 12px 12px;
border-radius: 8px;
background: #616161;
--_selection-color: #fff;
color: #fff;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
opacity: 0;
transition: opacity 0.15s cubic-bezier(0.4, 0, 1, 1);
}
.ML__tooltip-container .ML__tooltip-content .ML__text {
white-space: normal;
}
.ML__tooltip-container .ML__tooltip-content .ML__base {
display: contents;
}
.ML__tooltip-container:hover .ML__tooltip-content {
visibility: visible;
opacity: 1;
font-size: 0.75em;
transform: scale(1) translate(0, 3em);
}
`,xf=`#mathlive-environment-popover.is-visible {
visibility: visible;
}
#mathlive-environment-popover {
--_environment-panel-height: var(--environment-panel-height, 70px);
--_accent-color: var(--accent-color, #aaa);
--_background: var(--environment-panel-background, #fff);
--_button-background: var(--environment-panel-button-background, white);
--_button-background-hover: var(--environment-panel-button-background-hover, #f5f5f7);
--_button-background-active: var(--environment-panel-button-background-active, #f5f5f7);
--_button-text: var(--environment-panel-button-text, #e3e4e8);
position: absolute;
width: calc(var(--_environment-panel-height) * 2);
height: var(--_environment-panel-height);
border-radius: 4px;
border: 1.5px solid var(--_accent-color);
background-color: var(--_background);
box-shadow: 0 0 30px 0 var(--environment-shadow, rgba(0, 0, 0, 0.4));
pointer-events: all;
visibility: hidden;
}
#mathlive-environment-popover .MLEP__array-buttons {
height: calc(var(--_environment-panel-height) * 5/4);
width: calc(var(--_environment-panel-height) * 5/4);
margin-left: calc(0px - var(--_environment-panel-height) * 0.16);
margin-top: calc(0px - var(--_environment-panel-height) * 0.19);
}
#mathlive-environment-popover .MLEP__array-buttons .font {
fill: white;
}
#mathlive-environment-popover .MLEP__array-buttons circle {
fill: #7f7f7f;
transition: fill 300ms;
}
#mathlive-environment-popover .MLEP__array-buttons .MLEP__array-insert-background {
fill-opacity: 1;
fill: var(--_background);
stroke: var(--_accent-color);
stroke-width: 3px;
}
#mathlive-environment-popover .MLEP__array-buttons line {
stroke: var(--_accent-color);
stroke-opacity: 0;
stroke-width: 40;
pointer-events: none;
transition: stroke-opacity 300ms;
stroke-linecap: round;
}
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover circle {
fill: var(--_accent-color);
}
#mathlive-environment-popover .MLEP__array-buttons g[data-command]:hover line {
stroke-opacity: 1;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls {
height: 100%;
width: 50%;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options {
width: var(--_environment-panel-height);
height: var(--_environment-panel-height);
display: flex;
flex-wrap: wrap;
flex-direction: row;
justify-content: space-around;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg {
pointer-events: all;
margin-top: 2px;
width: calc(var(--_environment-panel-height) / 3 * 28 / 24);
height: calc(var(--_environment-panel-height) / 3 - 2px);
border-radius: calc(var(--_environment-panel-height) / 25);
background-color: var(--_button-background);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg:hover {
background-color: var(--_button-background-hover);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg line {
stroke: var(--_button-text);
stroke-width: 2;
stroke-linecap: round;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg rect,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg path {
fill-opacity: 0;
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active {
pointer-events: none;
background-color: var(--_button-background-active);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active path,
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active line {
stroke: var(--_accent-color);
}
#mathlive-environment-popover .MLEP__environment-delimiter-controls .MLEP__array-delimiter-options svg.active circle {
fill: var(--_accent-color);
}
`,Km=`/* The element that display info while in latex mode */
#mathlive-suggestion-popover {
background-color: rgba(97, 97, 97);
color: #fff;
text-align: center;
border-radius: 8px;
position: fixed;
z-index: 1;
display: none;
flex-direction: column;
justify-content: center;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}
#mathlive-suggestion-popover.top-tip::after {
content: '';
position: absolute;
top: -15px;
left: calc(50% - 15px);
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-bottom: 15px solid rgba(97, 97, 97);
font-size: 1rem;
}
#mathlive-suggestion-popover.bottom-tip::after {
content: '';
position: absolute;
bottom: -15px;
left: calc(50% - 15px);
width: 0;
height: 0;
border-left: 15px solid transparent;
border-right: 15px solid transparent;
border-top: 15px solid rgba(97, 97, 97);
font-size: 1rem;
}
#mathlive-suggestion-popover.is-animated {
transition: all 0.2s cubic-bezier(0.64, 0.09, 0.08, 1);
animation: ML__fade-in cubic-bezier(0, 0, 0.2, 1) 0.15s;
}
#mathlive-suggestion-popover.is-visible {
display: flex;
}
@keyframes ML__fade-in {
from {
opacity: 0;
}
to {
opacity: 1;
}
}
/* The wrapper class for the entire content of the popover panel */
#mathlive-suggestion-popover ul {
display: flex;
flex-flow: column;
list-style: none;
margin: 0;
padding: 0;
align-items: flex-start;
max-height: 400px;
overflow-y: auto;
}
#mathlive-suggestion-popover li {
display: flex;
flex-direction: row;
justify-content: space-between;
margin: 8px;
padding: 8px;
width: calc(100% - 16px - 16px);
column-gap: 1em;
border-radius: 8px;
cursor: pointer;
/* Since the content can be clicked on, provide feedback on hover */
}
#mathlive-suggestion-popover li a {
color: #5ea6fd;
padding-top: 0.3em;
margin-top: 0.4em;
display: block;
}
#mathlive-suggestion-popover li a:hover {
color: #5ea6fd;
text-decoration: underline;
}
#mathlive-suggestion-popover li:hover,
#mathlive-suggestion-popover li.is-pressed,
#mathlive-suggestion-popover li.is-active {
background: rgba(255, 255, 255, 0.1);
}
/* The command inside a popover (inside a #mathlive-suggestion-popover) */
.ML__popover__command {
font-size: 1.6rem;
font-family: KaTeX_Main;
}
.ML__popover__current {
background: #5ea6fd;
color: #fff;
}
.ML__popover__latex {
font-family: 'IBM Plex Mono', 'Source Code Pro', Consolas, 'Roboto Mono', Menlo, 'Bitstream Vera Sans Mono', 'DejaVu Sans Mono', Monaco, Courier, monospace;
align-self: center;
}
/* The keyboard shortcuts for a symbol as displayed in the popover */
.ML__popover__keybinding {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 0.8em;
opacity: 0.7;
}
/* Style for the character that joins the modifiers of a keyboard shortcut
(usually a "+" sign)*/
.ML__shortcut-join {
opacity: 0.5;
}
`,Ol=`/* The element that displays the keys as the user type them */
#mathlive-keystroke-caption-panel {
visibility: hidden;
/*min-width: 160px;*/
/*background-color: rgba(97, 97, 200, .95);*/
background: var(--secondary, hsl(var(--_hue), 19%, 26%));
border-color: var(--secondary-border, hsl(0, 0%, 91%));
box-shadow: 0 3px 6px rgba(0, 0, 0, 0.16), 0 3px 6px rgba(0, 0, 0, 0.23);
text-align: center;
border-radius: 6px;
padding: 16px;
position: absolute;
z-index: 1;
display: flex;
flex-direction: row-reverse;
justify-content: center;
--keystroke: white;
--on-keystroke: #555;
--keystroke-border: #f7f7f7;
}
@media (prefers-color-scheme: dark) {
body:not([theme='light']) #mathlive-keystroke-caption-panel {
--keystroke: hsl(var(--_hue), 50%, 30%);
--on-keystroke: hsl(0, 0%, 98%);
--keystroke-border: hsl(var(--_hue), 50%, 25%);
}
}
body[theme='dark'] #mathlive-keystroke-caption-panel {
--keystroke: hsl(var(--_hue), 50%, 30%);
--on-keystroke: hsl(0, 0%, 98%);
--keystroke-border: hsl(var(--_hue), 50%, 25%);
}
#mathlive-keystroke-caption-panel > span {
min-width: 14px;
/*height: 8px;*/
margin: 0 8px 0 0;
padding: 4px;
background-color: var(--keystroke);
color: var(--on-keystroke);
fill: currentColor;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 1em;
border-radius: 6px;
border: 2px solid var(--keystroke-border);
/*box-shadow: 0 7px 14px rgba(0,0,0,0.25), 0 5px 5px rgba(0,0,0,0.22);*/
}
`,Qd=`.ML__keyboard {
--_keyboard-height: 0;
--_keyboard-zindex: var(--keyboard-zindex, 105);
--_accent-color: var(--keyboard-accent-color, #0c75d8);
--_background: var(--keyboard-background, #cacfd7);
--_border: var(--keyboard-border, #ddd);
--_padding-horizontal: var(--keyboard-padding-horizontal, 0px);
--_padding-top: var(--keyboard-padding-top, 5px);
--_padding-bottom: var(--keyboard-padding-bottom, 0px);
--_row-padding-left: var(--keyboard-row-padding-left, 0px);
--_row-padding-right: var(--keyboard-row-padding-right, 0px);
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
--_toolbar-text-active: var(--keyboard-toolbar-text-active, var(--_accent-color));
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
--_toolbar-font-size: var(--keyboard-toolbar-font-size, '135%');
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
--_keycap-background: var(--keycap-background, white);
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
--_keycap-border: var(--keycap-border, #e5e6e9);
--_keycap-border-bottom: var(--keycap-border-bottom, #8d8f92);
--_keycap-text: var(--keycap-text, #000);
--_keycap-text-active: var(--keycap-text-active, #fff);
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
--_keycap-primary-background: var(--keycap-primary-background, var(--_accent-color));
--_keycap-primary-text: var(--keycap-primary-text, #ddd);
--_keycap-primary-background-hover: var(--keycap-primary-background-hover, #0d80f2);
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
--_keycap-height: var(--keycap-height, 60px);
/* Keycap width (incl. margin) */
--_keycap-max-width: var(--keycap-max-width, 100px);
--_keycap-gap: var(--keycap-gap, 8px);
--_keycap-font-size: var(--keycap-font-size, clamp(16px, 4cqw, 24px));
--_keycap-small-font-size: var(--keycap-small-font-size, calc(var(--keycap-font-size) * 0.8));
--_keycap-extra-small-font-size: var(--keycap-extra-small-font-size, calc(var(--keycap-font-size) / 1.42));
--_variant-panel-background: var(--variant-panel-background, #fff);
--_variant-keycap-text: var(--variant-keycap-text, var(--_keycap-text));
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
--_variant-keycap-length: var(--variant-keycap-length, 70px);
--_variant-keycap-font-size: var(--variant-keycap-font-size, 30px);
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 12px);
--_keycap-shift-font-size: var(--keycap-shift-font-size, 16px);
--_keycap-shift-color: var(--keycap-shift-color, var(--_accent-color));
--_box-placeholder-color: var(--box-placeholder-color, var(--_accent-color));
--_box-placeholder-pressed-color: var(--box-placeholder-pressed-color, var(--keycap-text-pressed));
}
.is-math-mode .MLK__rows .if-text-mode,
.is-text-mode .MLK__rows .if-math-mode {
display: none;
}
.if-can-undo,
.if-can-redo,
.if-can-copy,
.if-can-cut,
.if-can-paste {
opacity: 0.4;
pointer-events: none;
}
.can-undo .if-can-undo,
.can-redo .if-can-redo,
.can-copy .if-can-copy,
.can-cut .if-can-cut,
.can-paste .if-can-paste {
opacity: 1;
pointer-events: all;
}
body > .ML__keyboard {
position: fixed;
--_padding-bottom: calc(var(--keyboard-padding-bottom, 0px) + env(safe-area-inset-bottom, 0));
}
body > .ML__keyboard.is-visible > .MLK__backdrop {
box-shadow: 0 -5px 6px rgba(0, 0, 0, 0.08);
border-top: 1px solid var(--_border);
}
body > .ML__keyboard.backdrop-is-transparent.is-visible > .MLK__backdrop {
box-shadow: none;
border: none;
}
body > .ML__keyboard.is-visible.animate > .MLK__backdrop {
transition: 0.28s cubic-bezier(0, 0, 0.2, 1);
transition-property: transform, opacity;
transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}
.ML__keyboard {
position: relative;
overflow: hidden;
top: 0;
left: 0;
height: 100%;
width: 100%;
z-index: var(--_keyboard-zindex);
box-sizing: border-box;
outline: none;
border: none;
margin: 0;
padding: 0;
line-height: 1;
overflow-wrap: unset;
text-align: left;
vertical-align: baseline;
cursor: auto;
white-space: pre;
box-shadow: none;
opacity: 1;
transform: none;
pointer-events: none;
}
.ML__keyboard :where(div) {
box-sizing: border-box;
outline: none;
border: none;
margin: 0;
padding: 0;
line-height: 1;
overflow-wrap: unset;
text-align: left;
vertical-align: baseline;
cursor: auto;
white-space: pre;
box-shadow: none;
transform: none;
}
.MLK__backdrop {
position: absolute;
bottom: calc(-1 * var(--_keyboard-height));
width: 100%;
height: var(--_keyboard-height);
box-sizing: border-box;
padding-top: var(--_padding-top);
padding-bottom: var(--_padding-bottom);
padding-left: var(--_padding-horizontal);
padding-right: var(--_padding-horizontal);
opacity: 0;
visibility: hidden;
transform: translate(0, 0);
background: var(--_background);
}
.backdrop-is-transparent .MLK__backdrop {
background: transparent;
}
/* If a custom layout has a custom container/backdrop
(backdrop-is-transparent), make sure to let pointer event go through. */
.backdrop-is-transparent .MLK__plate {
background: transparent;
pointer-events: none;
}
/* If a custom layout has a custom container/backdrop, make sure to
allow pointer events on it. */
.backdrop-is-transparent .MLK__layer > div > div {
pointer-events: all;
}
.ML__keyboard.is-visible > .MLK__backdrop {
transform: translate(0, calc(-1 * var(--_keyboard-height)));
opacity: 1;
visibility: visible;
}
.caps-lock-indicator {
display: none;
width: 8px;
height: 8px;
background: #0cbc0c;
box-shadow: inset 0 0 4px 0 #13ca13, 0 0 4px 0 #a9ef48;
border-radius: 8px;
right: 8px;
top: 8px;
position: absolute;
}
.ML__keyboard.is-caps-lock .caps-lock-indicator {
display: block;
}
.ML__keyboard.is-caps-lock .shift {
background: var(--_keycap-background-active);
color: var(--_keycap-text-active);
}
.MLK__plate {
position: absolute;
top: var(--_padding-top);
left: var(--_padding-horizontal);
width: calc(100% - 2 * var(--_padding-horizontal));
margin: 0;
padding: 0;
box-sizing: border-box;
container-type: inline-size;
touch-action: none;
-webkit-user-select: none;
user-select: none;
pointer-events: all;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 16px;
/* Size of toolbar labels */
font-weight: 400;
text-shadow: none;
}
.ML__box-placeholder {
color: var(--_box-placeholder-color);
}
.MLK__tex {
font-family: KaTeX_Main, KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__tex-math {
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
font-style: italic;
}
.MLK__layer {
display: none;
outline: none;
}
.MLK__layer.is-visible {
display: flex;
flex-flow: column;
}
/* Keyboard layouts are made or rows of keys... */
.MLK__rows {
--_keycap-width: min(var(--_keycap-max-width), 10cqw);
display: flex;
flex-flow: column;
align-items: center;
border-collapse: separate;
clear: both;
border: 0;
margin: 0;
margin-bottom: var(--_keycap-gap);
gap: var(--_keycap-gap);
/* If the styling include, e.g., some shadows, they will be
cut off by the overflow. In that case, set the padding to
compensate. */
padding-left: var(--_row-padding-left);
padding-right: var(--_row-padding-right);
overflow: visible;
touch-action: none;
}
.MLK__rows > .MLK__row {
display: flex;
flex-flow: row;
justify-content: center;
width: 100%;
gap: var(--_keycap-gap);
margin: 0;
padding: 0;
/* For the alignment of the text on some modifiers (e.g. shift) */
/* Extra spacing between two adjacent keys */
}
.MLK__rows > .MLK__row .tex {
font-family: KaTeX_Math, KaTeX_Main, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__rows > .MLK__row .tex-math {
font-family: KaTeX_Math, 'Cambria Math', 'Asana Math', OpenSymbol, Symbola, STIX, Times, serif !important;
}
.MLK__rows > .MLK__row .big-op {
font-size: calc(1.25 * var(--_keycap-font-size));
}
.MLK__rows > .MLK__row .small {
font-size: var(--_keycap-small-font-size);
}
.MLK__rows > .MLK__row .bottom {
justify-content: flex-end;
}
.MLK__rows > .MLK__row .left {
align-items: flex-start;
padding-left: 12px;
}
.MLK__rows > .MLK__row .right {
align-items: flex-end;
padding-right: 12px;
}
.MLK__rows > .MLK__row .w0 {
width: 0;
}
.MLK__rows > .MLK__row .w5 {
width: calc(0.5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w15 {
width: calc(1.5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w20 {
width: calc(2 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w40 {
width: calc(4 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .w50 {
width: calc(5 * var(--_keycap-width) - var(--_keycap-gap));
}
.MLK__rows > .MLK__row .MLK__keycap.w50 {
font-size: 80%;
padding-top: 10px;
font-weight: 100;
}
.MLK__rows > .MLK__row .separator {
background: transparent;
border: none;
pointer-events: none;
}
.MLK__rows > .MLK__row .horizontal-rule {
height: 6px;
margin-top: 3px;
margin-bottom: 0;
width: 100%;
border-radius: 0;
border-top: var(--_horizontal-rule);
}
.MLK__rows > .MLK__row .ghost {
background: var(--_toolbar-background);
border: none;
color: var(--_toolbar-text);
}
.MLK__rows > .MLK__row .ghost:hover {
background: var(--_toolbar-background-hover);
}
.MLK__rows > .MLK__row .bigfnbutton {
font-size: var(--_keycap-extra-small-font-size);
}
.MLK__rows > .MLK__row .shift,
.MLK__rows > .MLK__row .action {
color: var(--_keycap-secondary-text);
background: var(--_keycap-secondary-background);
border-color: var(--_keycap-secondary-border);
border-bottom-color: var(--_keycap-secondary-border-bottom);
line-height: 0.8;
font-size: min(1rem, var(--_keycap-small-font-size));
font-weight: 600;
padding: 8px 12px 8px 12px;
}
.MLK__rows > .MLK__row .shift:hover,
.MLK__rows > .MLK__row .action:hover {
background: var(--_keycap-secondary-background-hover);
}
.MLK__rows > .MLK__row .action.primary {
background: var(--_keycap-primary-background);
color: var(--_keycap-primary-text);
}
.MLK__rows > .MLK__row .action.primary:hover {
background: var(--_keycap-primary-background-hover);
color: var(--_keycap-primary-text);
}
.MLK__rows > .MLK__row .shift.selected,
.MLK__rows > .MLK__row .action.selected {
color: var(--_toolbar-text-active);
}
.MLK__rows > .MLK__row .shift.selected.is-pressed,
.MLK__rows > .MLK__row .action.selected.is-pressed,
.MLK__rows > .MLK__row .shift.selected.is-active,
.MLK__rows > .MLK__row .action.selected.is-active {
color: white;
}
.MLK__rows > .MLK__row .warning {
background: #cd0030;
color: white;
}
.MLK__rows > .MLK__row .warning svg.svg-glyph {
width: 24px;
height: 24px;
min-height: 24px;
}
/** A regular keycap
* Use the :where() pseudo-class to give it a very low specifity,
* so that it can be overriden by custom style.
*/
:where(.MLK__rows > .MLK__row div) {
display: flex;
flex-flow: column;
align-items: center;
justify-content: space-evenly;
width: calc(var(--_keycap-width) - var(--_keycap-gap));
height: var(--_keycap-height);
box-sizing: border-box;
padding: 0;
vertical-align: top;
text-align: center;
float: left;
color: var(--_keycap-text);
fill: currentColor;
font-size: var(--_keycap-font-size);
background: var(--_keycap-background);
border: 1px solid var(--_keycap-border);
border-bottom-color: var(--_keycap-border-bottom);
border-radius: 6px;
cursor: pointer;
touch-action: none;
/* Keys with a variants panel */
position: relative;
overflow: hidden;
-webkit-user-select: none;
user-select: none;
-webkit-tap-highlight-color: transparent;
}
:where(.MLK__rows > .MLK__row div):hover {
overflow: visible;
background: var(--_keycap-background-hover);
}
:where(.MLK__rows > .MLK__row div) .ML__latex {
pointer-events: none;
touch-action: none;
}
:where(.MLK__rows > .MLK__row div) svg.svg-glyph {
margin: 8px 0;
width: 20px;
height: 20px;
min-height: 20px;
}
:where(.MLK__rows > .MLK__row div) svg.svg-glyph-lg {
margin: 8px 0;
width: 24px;
height: 24px;
min-height: 24px;
}
:where(.MLK__rows > .MLK__row div).MLK__tex-math {
font-size: 25px;
}
:where(.MLK__rows > .MLK__row div).is-pressed {
background: var(--_keycap-background-pressed);
color: var(--_keycap-text-pressed);
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
:where(.MLK__rows > .MLK__row div).action.is-active,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
:where(.MLK__rows > .MLK__row div).action.is-pressed {
z-index: calc(var(--_keyboard-zindex) - 5);
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active aside,
:where(.MLK__rows > .MLK__row div).action.is-active aside,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed aside,
:where(.MLK__rows > .MLK__row div).action.is-pressed aside {
display: none;
}
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active .MLK__shift,
:where(.MLK__rows > .MLK__row div).action.is-active .MLK__shift,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed .MLK__shift,
:where(.MLK__rows > .MLK__row div).action.is-pressed .MLK__shift {
display: none;
}
:where(.MLK__rows > .MLK__row div).shift.is-pressed,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-pressed,
:where(.MLK__rows > .MLK__row div).action.is-pressed {
background: var(--_keycap-background-pressed);
color: var(--_keycap-text-pressed);
}
:where(.MLK__rows > .MLK__row div).shift.is-active,
:where(.MLK__rows > .MLK__row div).MLK__keycap.is-active,
:where(.MLK__rows > .MLK__row div).action.is-active {
background: var(--_keycap-background-active);
color: var(--_keycap-text-active);
--_box-placeholder-color: var(--_box-placeholder-pressed-color);
}
:where(.MLK__rows > .MLK__row div) small {
color: var(--_keycap-secondary-text);
}
:where(.MLK__rows > .MLK__row div) aside {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-size: 10px;
line-height: 10px;
color: var(--_keycap-secondary-text);
}
/* Add an attribute 'data-tooltip' to display a tooltip on hover.
Note there are a different set of tooltip rules for the keyboard toggle
(it's in a different CSS tree) */
.ML__keyboard [data-tooltip] {
position: relative;
}
.ML__keyboard [data-tooltip]::after {
position: absolute;
display: inline-table;
content: attr(data-tooltip);
top: inherit;
bottom: 100%;
width: max-content;
max-width: 200px;
padding: 8px 8px;
background: #616161;
color: #fff;
text-align: center;
z-index: 2;
box-shadow: 0 2px 2px 0 rgba(0, 0, 0, 0.14), 0 1px 5px 0 rgba(0, 0, 0, 0.12), 0 3px 1px -2px rgba(0, 0, 0, 0.2);
border-radius: 2px;
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
font-weight: 400;
font-size: 12px;
transition: all 0.15s cubic-bezier(0.4, 0, 1, 1) 1s;
opacity: 0;
transform: scale(0.5);
}
.ML__keyboard [data-tooltip]:hover {
position: relative;
}
.ML__keyboard [data-tooltip]:hover::after {
opacity: 1;
transform: scale(1);
}
.MLK__toolbar {
align-self: center;
display: flex;
flex-flow: row;
justify-content: space-between;
width: 100%;
max-width: 996px;
min-height: 32px;
/* Icons for undo/redo, etc. */
}
.MLK__toolbar svg {
height: 20px;
width: 20px;
}
.MLK__toolbar > .left {
position: relative;
display: flex;
justify-content: flex-start;
flex-flow: row;
}
.MLK__toolbar > .right {
display: flex;
justify-content: flex-end;
flex-flow: row;
}
.MLK__toolbar > div > div {
/* "button" in the toolbar */
display: flex;
align-items: center;
justify-content: center;
color: var(--_toolbar-text);
fill: currentColor;
background: var(--_toolbar-background);
font-size: var(--_toolbar-font-size);
padding: 4px 15px;
cursor: pointer;
width: max-content;
min-width: 42px;
min-height: 34px;
border: none;
padding-left: 10px;
padding-right: 10px;
padding-bottom: 8px;
padding-top: 8px;
margin-top: 0;
margin-bottom: 4px;
margin-left: 4px;
margin-right: 4px;
border-radius: 8px;
box-shadow: none;
border-bottom: 2px solid transparent;
}
.MLK__toolbar > div > div:not(.disabled):not(.selected):hover {
background: var(--_toolbar-background-hover);
}
.MLK__toolbar > div > div.disabled svg,
.MLK__toolbar > div > div.disabled:hover svg,
.MLK__toolbar > div > div.disabled.is-pressed svg {
color: var(--_toolbar-text);
opacity: 0.2;
}
.MLK__toolbar > div > div:hover,
.MLK__toolbar > div > div:active,
.MLK__toolbar > div > div.is-pressed,
.MLK__toolbar > div > div.is-active {
color: var(--_toolbar-text-active);
}
.MLK__toolbar > div > div.selected {
color: var(--_toolbar-text-active);
background: var(--_toolbar-background-selected);
border-radius: 0;
border-bottom-color: var(--_toolbar-text-active);
padding-bottom: 4px;
margin-bottom: 8px;
}
/* This is the element that displays variants on press+hold */
.MLK__variant-panel {
visibility: hidden;
position: fixed;
display: flex;
flex-flow: row wrap-reverse;
justify-content: center;
align-content: center;
margin: 0;
padding: 0;
bottom: auto;
top: 0;
box-sizing: content-box;
transform: none;
z-index: calc(var(--_keyboard-zindex) + 1);
touch-action: none;
max-width: 350px;
background: var(--_variant-panel-background);
text-align: center;
border-radius: 6px;
padding: 6px;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
transition: none;
}
.MLK__variant-panel.is-visible {
visibility: visible;
}
.MLK__variant-panel.compact {
--_variant-keycap-length: var(--variant-keycap-length, 50px);
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-aside-font-size: var(--variant-keycap-aside-font-size, 10px);
}
.MLK__variant-panel .item {
display: flex;
flex-flow: column;
align-items: center;
justify-content: center;
font-size: var(--_variant-keycap-font-size);
height: var(--_variant-keycap-length);
width: var(--_variant-keycap-length);
margin: 0;
box-sizing: border-box;
border-radius: 5px;
border: 1px solid transparent;
background: transparent;
pointer-events: all;
cursor: pointer;
color: var(--_variant-keycap-text);
fill: currentColor;
}
@media (max-height: 412px) {
.MLK__variant-panel .item {
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-length: var(--variant-keycap-length, 50px);
}
}
.MLK__variant-panel .item .ML__latex {
pointer-events: none;
}
.MLK__variant-panel .item.is-active {
background: var(--_variant-keycap-background-active);
color: var(--_variant-keycap-text-active);
}
.MLK__variant-panel .item.is-pressed {
background: var(--_variant-keycap-background-pressed);
color: var(--_variant-keycap-text-pressed);
}
.MLK__variant-panel .item.small {
font-size: var(--_keycap-small-font-size);
}
.MLK__variant-panel .item.swatch-button {
box-sizing: border-box;
background: #fbfbfb;
}
.MLK__variant-panel .item.swatch-button > span {
display: inline-block;
margin: 6px;
width: calc(100% - 12px);
height: calc(100% - 12px);
border-radius: 50%;
}
.MLK__variant-panel .item.swatch-button:hover {
background: #f0f0f0;
}
.MLK__variant-panel .item.swatch-button:hover > span {
border-radius: 2px;
}
.MLK__variant-panel .item.box > div,
.MLK__variant-panel .item.box > span {
border: 1px dashed rgba(0, 0, 0, 0.24);
}
.MLK__variant-panel .item .warning {
min-height: 60px;
min-width: 60px;
background: #cd0030;
color: white;
padding: 5px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 5px;
}
.MLK__variant-panel .item .warning.is-pressed,
.MLK__variant-panel .item .warning.is-active {
background: red;
}
.MLK__variant-panel .item .warning svg.svg-glyph {
width: 50px;
height: 50px;
}
.MLK__variant-panel .item aside {
font-size: var(--_variant-keycap-aside-font-size);
line-height: 12px;
opacity: 0.78;
padding-top: 2px;
}
.MLK__keycap {
position: relative;
}
.MLK__shift {
display: block;
position: absolute;
right: 4px;
top: 4px;
font-size: var(--_keycap-shift-font-size);
color: var(--_keycap-shift-color);
}
.hide-shift .MLK__shift {
display: none;
}
@media (max-width: 414px) {
.MLK__variant-panel {
max-width: 350px;
--_variant-keycap-font-size: var(--variant-keycap-font-size, 24px);
--_variant-keycap-length: var(--variant-keycap-length, 50px);
}
}
/* @xs breakpoint: iPhone 5 */
@container (max-width: 414px) {
.MLK__rows {
--_keycap-gap: max(var(--_keycap-gap, 2px), 2px);
--_keycap-height: max(var(--_keycap-height), 42px);
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
}
.MLK__toolbar > div > div {
font-size: 100%;
margin-left: 2px;
margin-right: 2px;
}
.MLK__rows .shift,
.MLK__rows .action {
font-size: 65%;
}
.MLK__rows .warning svg.svg-glyph {
width: 14px;
height: 14px;
min-height: 14px;
}
}
@container (max-width: 744px) {
.MLK__rows {
--_keycap-gap: max(var(--keycap-gap, 2px), 2px);
--_keycap-height: max(var(--keycap-height, 52px), 52px);
--_keycap-width: min(min(var(--_keycap-max-width), 10cqw), 62px);
}
.MLK__toolbar > div > div {
padding-left: 0;
padding-right: 0;
}
.MLK__tooltip::after {
padding: 8px 16px;
font-size: 16px;
}
.MLK__rows > .MLK__row > div.fnbutton {
font-size: 16px;
}
.MLK__rows > .MLK__row > div.bigfnbutton {
font-size: calc(var(--_keycap-extra-small-font-size) / 1.55);
}
.MLK__rows > .MLK__row > div.small {
font-size: 13px;
}
.MLK__rows > .MLK__row > div > aside {
display: none;
}
.MLK__shift {
display: none;
}
}
/* Medium breakpoint: larger phones */
@container (max-width: 768px) {
.MLK__rows {
--_keycap-height: max(var(--keycap-height, 42px), 42px);
}
.MLK__rows > .MLK__row > div > small {
font-size: 14px;
}
}
@media (max-height: 768px) {
.MLK__rows {
--_keycap-height: max(var(--keycap-height, 42px), 42px);
}
.MLK__rows > .MLK__row > div > small {
font-size: 14px;
}
}
@container (max-width: 1444px) {
.MLK__rows .if-wide {
display: none;
}
}
@media (prefers-color-scheme: dark) {
.ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
--_background: var(--keyboard-background, #151515);
--_border: var(--keyboard-border, transparent);
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
--keyboard-toolbar-background-hover: #303030;
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
--_keycap-background: var(--keycap-background, #1f2022);
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
--_keycap-border: var(--_keycap-border, transparent);
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
--_keycap-text: var(--keycap-text, #e3e4e8);
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
--keycap-secondary-border: transparent;
--keycap-secondary-border-bottom: transparent;
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
--_variant-panel-background: var(--variant-panel-background, #303030);
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
}
}
/* Same as the media query, but with a class */
[theme='dark'] .ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0b5c9c);
--_background: var(--keyboard-background, #151515);
--_border: var(--keyboard-border, transparent);
--_toolbar-text: var(--keyboard-toolbar-text, #e3e4e8);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #303030);
--keyboard-toolbar-background-hover: #303030;
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #303030);
--_keycap-background: var(--keycap-background, #1f2022);
--_keycap-background-hover: var(--keycap-background-hover, #2f3032);
--_keycap-border: var(--_keycap-border, transparent);
--_keycap-border-bottom: var(--_keycap-border-bottom, transparent);
--_keycap-text: var(--keycap-text, #e3e4e8);
--_keycap-secondary-background: var(--keycap-secondary-background, #3d4144);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #4d5154);
--_keycap-secondary-text: var(--keycap-secondary-text, #e7ebee);
--keycap-secondary-border: transparent;
--keycap-secondary-border-bottom: transparent;
--_keycap-secondary-border: var(--keycap-secondary-border, transparent);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, transparent);
--_variant-panel-background: var(--variant-panel-background, #303030);
--_variant-keycap-text-active: var(--variant-keycap-text-active, #fff);
}
[theme='light'] .ML__keyboard {
--_accent-color: var(--keyboard-accent-color, #0c75d8);
--_background: var(--keyboard-background, #cacfd7);
--_border: var(--keyboard-border, #ddd);
--_toolbar-text: var(--keyboard-toolbar-text, #2c2e2f);
--_toolbar-background: var(--keyboard-toolbar-background, transparent);
--_toolbar-background-hover: var(--keyboard-toolbar-background-hover, #eee);
--_toolbar-background-selected: var(--keyboard-toolbar-background-selected, transparent);
--_horizontal-rule: var(--keyboard-horizontal-rule, 1px solid #fff);
--_keycap-background: var(--keycap-background, white);
--_keycap-background-hover: var(--keycap-background-hover, #f5f5f7);
--_keycap-background-active: var(--keycap-background-active, var(--_accent-color));
--_keycap-background-pressed: var(--keycap-background-pressed, var(--_accent-color));
--_keycap-border: var(--_keycap-border, #e5e6e9);
--_keycap-border-bottom: var(--_keycap-border-bottom, #8d8f92);
--_keycap-text: var(--keycap-text, #000);
--_keycap-text-active: var(--keycap-text-active, #fff);
--_keycap-text-hover: var(--keycap-text-hover, var(--_keycap-text));
--_keycap-text-pressed: var(--keycap-text-pressed, #fff);
--_keycap-shift-text: var(--keycap-shift-text, var(--_accent-color));
--_keycap-secondary-background: var(--keycap-secondary-background, #a0a9b8);
--_keycap-secondary-background-hover: var(--keycap-secondary-background-hover, #7d8795);
--_keycap-secondary-text: var(--keycap-secondary-text, #060707);
--_keycap-secondary-border: var(--keycap-secondary-border, #c5c9d0);
--_keycap-secondary-border-bottom: var(--keycap-secondary-border-bottom, #989da6);
--_variant-panel-background: var(--variant-panel-background, #fff);
--_variant-keycap-text: var(--variant-keycap-textvar, var(--_keycap-text));
--_variant-keycap-text-active: var(--variant-keycap-text-active, var(--_keycap-text-active));
--_variant-keycap-background-active: var(--variant-keycap-background-active, var(--_accent-color));
}
`,Cf=`:host {
--primary-color: #5898ff;
--primary-color-dimmed: #c0c0f0;
--primary-color-dark: var(--blue-500);
--primary-color-light: var(--blue-100);
--primary-color-reverse: #ffffff;
--secondary-color: #ff8a65;
--secondary-color-dimmed: #f0d5c5;
--secondary-color-dark: var(--orange-500);
--secondary-color-light: var(--orange-100);
--secondary-color-reverse: #ffffff;
--link-color: #5898ff;
--link-color-dimmed: #c5c5c5;
--link-color-dark: #121212;
--link-color-light: #e2e2e2;
--link-color-reverse: #ffffff;
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--neutral-100: #f5f5f5;
--neutral-200: #eeeeee;
--neutral-300: #e0e0e0;
--neutral-400: #bdbdbd;
--neutral-500: #9e9e9e;
--neutral-600: #757575;
--neutral-700: #616161;
--neutral-800: #424242;
--neutral-900: #212121;
--red-25: #fff8f7;
--red-50: #fff1ef;
--red-100: #ffeae6;
--red-200: #ffcac1;
--red-300: #ffa495;
--red-400: #ff7865;
--red-500: #f21c0d;
--red-600: #e50018;
--red-700: #d30024;
--red-800: #bd002c;
--red-900: #a1002f;
--orange-25: #fffbf8;
--orange-50: #fff7f1;
--orange-100: #fff3ea;
--orange-200: #ffe1c9;
--orange-300: #ffcca2;
--orange-400: #ffb677;
--orange-500: #fe9310;
--orange-600: #f58700;
--orange-700: #ea7c00;
--orange-800: #dc6d00;
--orange-900: #ca5b00;
--brown-25: #fff8ef;
--brown-50: #fff1df;
--brown-100: #ffe9ce;
--brown-200: #ebcca6;
--brown-300: #cdaf8a;
--brown-400: #af936f;
--brown-500: #856a47;
--brown-600: #7f5e34;
--brown-700: #78511f;
--brown-800: #6e4200;
--brown-900: #593200;
--yellow-25: #fffdf9;
--yellow-50: #fffcf2;
--yellow-100: #fffaec;
--yellow-200: #fff2ce;
--yellow-300: #ffe8ab;
--yellow-400: #ffdf85;
--yellow-500: #ffcf33;
--yellow-600: #f1c000;
--yellow-700: #dfb200;
--yellow-800: #c9a000;
--yellow-900: #ad8a00;
--lime-25: #f4ffee;
--lime-50: #e9ffdd;
--lime-100: #ddffca;
--lime-200: #a8fb6f;
--lime-300: #94e659;
--lime-400: #80d142;
--lime-500: #63b215;
--lime-600: #45a000;
--lime-700: #268e00;
--lime-800: #007417;
--lime-900: #005321;
--green-25: #f5fff5;
--green-50: #ebffea;
--green-100: #e0ffdf;
--green-200: #a7ffa7;
--green-300: #5afa65;
--green-400: #45e953;
--green-500: #17cf36;
--green-600: #00b944;
--green-700: #00a34a;
--green-800: #008749;
--green-900: #00653e;
--teal-25: #f3ffff;
--teal-50: #e6fffe;
--teal-100: #d9fffe;
--teal-200: #8dfffe;
--teal-300: #57f4f4;
--teal-400: #43e5e5;
--teal-500: #17cfcf;
--teal-600: #00c2c0;
--teal-700: #00b5b1;
--teal-800: #00a49e;
--teal-900: #009087;
--cyan-25: #f7fcff;
--cyan-50: #eff8ff;
--cyan-100: #e7f5ff;
--cyan-200: #c2e6ff;
--cyan-300: #95d5ff;
--cyan-400: #61c4ff;
--cyan-500: #13a7ec;
--cyan-600: #069eda;
--cyan-700: #0095c9;
--cyan-800: #0088b2;
--cyan-900: #0a7897;
--blue-25: #f7faff;
--blue-50: #eef5ff;
--blue-100: #e5f1ff;
--blue-200: #bfdbff;
--blue-300: #92c2ff;
--blue-400: #63a8ff;
--blue-500: #0d80f2;
--blue-600: #0077db;
--blue-700: #006dc4;
--blue-800: #0060a7;
--blue-900: #005086;
--indigo-25: #f8f7ff;
--indigo-50: #f1efff;
--indigo-100: #eae7ff;
--indigo-200: #ccc3ff;
--indigo-300: #ac99ff;
--indigo-400: #916aff;
--indigo-500: #63c;
--indigo-600: #5a21b2;
--indigo-700: #4e0b99;
--indigo-800: #3b0071;
--indigo-900: #220040;
--purple-25: #fbf7ff;
--purple-50: #f8f0ff;
--purple-100: #f4e8ff;
--purple-200: #e4c4ff;
--purple-300: #d49aff;
--purple-400: #c36aff;
--purple-500: #a219e6;
--purple-600: #9000c4;
--purple-700: #7c009f;
--purple-800: #600073;
--purple-900: #3d0043;
--magenta-25: #fff8fb;
--magenta-50: #fff2f6;
--magenta-100: #ffebf2;
--magenta-200: #ffcddf;
--magenta-300: #ffa8cb;
--magenta-400: #ff7fb7;
--magenta-500: #eb4799;
--magenta-600: #da3689;
--magenta-700: #c82179;
--magenta-800: #b00065;
--magenta-900: #8a004c;
}
@media (prefers-color-scheme: dark) {
:host {
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--semantic-bg-blue: var(--blue-25);
--semantic-bg-red: var(--red-25);
--semantic-bg-orange: var(--orange-25);
--semantic-bg-green: var(--green-25);
--neutral-100: #121212;
--neutral-200: #424242;
--neutral-300: #616161;
--neutral-400: #757575;
--neutral-500: #9e9e9e;
--neutral-600: #bdbdbd;
--neutral-700: #e0e0e0;
--neutral-800: #eeeeee;
--neutral-900: #f5f5f5;
}
}
:host([theme='dark']) {
--semantic-blue: var(--blue-700);
--semantic-red: var(--red-400);
--semantic-orange: var(--orange-400);
--semantic-green: var(--green-700);
--semantic-bg-blue: var(--blue-25);
--semantic-bg-red: var(--red-25);
--semantic-bg-orange: var(--orange-25);
--semantic-bg-green: var(--green-25);
--neutral-100: #121212;
--neutral-200: #424242;
--neutral-300: #616161;
--neutral-400: #757575;
--neutral-500: #9e9e9e;
--neutral-600: #bdbdbd;
--neutral-700: #e0e0e0;
--neutral-800: #eeeeee;
--neutral-900: #f5f5f5;
}
/* @media (prefers-color-scheme: dark) {
:host {
--label-color: #fff;
--active-label-color: #000;
--menu-bg: #525252;
--active-bg: #5898ff;
--active-bg-dimmed: #5c5c5c;
}
} */
:host {
--ui-font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont,
'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji',
'Segoe UI Emoji', 'Segoe UI Symbol';
--ui-font-size: 14px;
--ui-line-height: 1.5;
--ui-letter-spacing: 0.007em;
--mono-font-family: 'Berkeley Mono', 'JetBrains Mono', 'IBM Plex Mono',
'Source Code Pro', Menlo, Monaco, 'Courier New', monospace;
--ui-layer-1: var(--neutral-100);
--ui-layer-2: var(--neutral-200);
--ui-layer-3: var(--neutral-300);
--ui-layer-4: var(--neutral-400);
--ui-layer-5: var(--neutral-500);
--ui-layer-6: var(--neutral-600);
--ui-border-color: var(--primary-color);
--ui-border-radius: 4px;
--ui-text: var(--neutral-900);
--ui-text-secondary: var(--neutral-700);
--ui-text-placeholder: var(--neutral-500);
--ui-text-muted: var(--neutral-300);
/** A field is a UI element in which a user can type data, for
* example an input or textarea element.
*/
--ui-field-bg: var(--neutral-100);
--ui-field-bg-hover: var(--neutral-100);
--ui-field-bg-disabled: var(--neutral-300);
--ui-field-bg-invalid: var(--red-100);
--ui-field-bg-focus: var(--neutral-100);
--ui-field-border: 0.5px solid var(--border-color);
--ui-field-border-hover: 0.5px solid var(--border-color);
--ui-field-border-disabled: 0.5px solid var(--border-color);
--ui-field-border-invalid: 0.5px solid var(--border-color);
--ui-field-border-focus: 0.5px solid var(--border-color);
--ui-menu-bg: var(--neutral-100);
--ui-menu-text: var(--neutral-900);
--ui-menu-bg-hover: var(--neutral-200);
--ui-menu-text-hover: var(--neutral-900);
/** The \`active\` state is used for the state of menu items
* when they are selected.
*/
--ui-menu-bg-active: var(--primary-color);
--ui-menu-text-active: var(--primary-color-reverse);
/** The \`active-muted\` set is used for the state of
* submenus when they are open.
*/
--ui-menu-bg-active-muted: var(--neutral-300);
--ui-menu-text-active-muted: var(--neutral-900);
/* --ui-menu-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.302),
0 2px 6px 2px rgba(60, 64, 67, 0.149); */
--ui-menu-shadow: 0 0 2px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.2);
--ui-menu-divider: 0.5px solid #c7c7c7;
/* var(--neutral-300); */
--ui-menu-z-index: 10000;
--page-bg: var(--neutral-100);
--content-bg: var(--neutral-200);
}
@media (prefers-color-scheme: dark) {
:host {
--ui-menu-bg: var(--neutral-200);
}
}
:host([theme='dark']) {
--ui-menu-bg: var(--neutral-200);
}
/* PingFang SC is a macOS font. Microsoft Yahei is a Windows font.
Noto is a Linux/Android font.
*/
:lang(zh-cn),
:lang(zh-sg),
:lang(zh-my),
:lang(zh) {
--ui-font-family: -apple-system, system-ui, 'PingFang SC', 'Hiragino Sans GB',
'Noto Sans CJK SC', 'Noto Sans SC', 'Noto Sans', 'Microsoft Yahei UI',
'Microsoft YaHei New', 'Microsoft Yahei', '\u5FAE\u8F6F\u96C5\u9ED1', SimSun, '\u5B8B\u4F53',
STXihei, '\u534E\u6587\u7EC6\u9ED1', sans-serif;
}
:lang(zh-tw),
:lang(zh-hk),
:lang(zh-mo) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans',
'Microsoft JhengHei UI', 'Microsoft JhengHei', '\u5FAE\u8EDF\u6B63\u9ED1\u9AD4', '\u65B0\u7D30\u660E\u9AD4',
'PMingLiU', '\u7D30\u660E\u9AD4', 'MingLiU', sans-serif;
}
:lang(ja),
:lang(ja-jp),
:lang(ja-jp-mac) {
--ui-font-family: -apple-system, system-ui, 'Hiragino Sans',
'Hiragino Kaku Gothic ProN', 'Noto Sans CJK JP', 'Noto Sans JP', 'Noto Sans',
'\u6E38\u30B4\u30B7\u30C3\u30AF', '\u6E38\u30B4\u30B7\u30C3\u30AF\u4F53', YuGothic, 'Yu Gothic', '\u30E1\u30A4\u30EA\u30AA', Meiryo,
'\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF', 'MS PGothic', sans-serif;
}
:lang(ko),
:lang(ko-kr),
:lang(ko-kr-std) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
'Noto Sans', 'Malgun Gothic', '\uB9D1\uC740 \uACE0\uB515', 'Apple SD Gothic Neo',
'\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo', 'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
}
:lang(ko-kr-apple) {
--ui-font-family: -apple-system, system-ui, 'Noto Sans CJK KR', 'Noto Sans KR',
'Noto Sans', 'Apple SD Gothic Neo', '\uC560\uD50C SD \uC0B0\uB3CC\uACE0\uB515 Neo',
'Apple SD \uC0B0\uB3CC\uACE0\uB515 Neo', '\uB3CB\uC6C0', Dotum, sans-serif;
}
:lang(zh-cn),
:lang(zh-sg),
:lang(zh-my),
:lang(zh),
:lang(zh-tw),
:lang(zh-hk),
:lang(zh-mo),
:lang(ja),
:lang(ja-jp),
:lang(ja-jp-mac),
:lang(ko),
:lang(ko-kr),
:lang(ko-kr-std),
:lang(ko-kr-apple) {
--ui-font-size: 1rem;
--ui-line-height: 1.7;
--ui-letter-spacing: 0;
}
:dir(rtl) {
--ui-line-height: auto;
--ui-letter-spacing: 0;
}
`,Ad=`.ui-menu *,
.ui-menu ::before,
.ui-menu ::after {
box-sizing: border-box;
}
.ui-menu {
display: none;
color-scheme: light dark;
-webkit-user-select: none;
/* Important: Safari iOS doesn't respect user-select */
user-select: none;
cursor: default;
-webkit-touch-callout: none;
-webkit-tap-highlight-color: rgba(0 0 0 0);
--active-label-color: #fff;
/* ui-menu-text-active */
--label-color: #121212;
/* ui-menu-text */
--menu-bg: #e2e2e2;
/* ui-menu-background */
--active-bg: #5898ff;
/* ui-menu-background-active */
--active-bg-dimmed: #c5c5c5;
/* ui-menu-background-active-muted */
}
/** Use the :where pseudo selector to make the specificity of the
* selector 0, so that it can be overridden by the user.
*/
:where(.ui-menu-container) {
position: absolute;
overflow: visible;
width: auto;
height: auto;
z-index: 10000;
border-radius: 8px;
background: var(--ui-menu-bg);
box-shadow: var(--ui-menu-shadow);
list-style: none;
padding: 6px 0 6px 0;
margin: 0;
user-select: none;
cursor: default;
color: var(--ui-menu-text);
font-weight: normal;
font-style: normal;
text-shadow: none;
text-transform: none;
letter-spacing: 0;
outline: none;
opacity: 1;
/* The [popover] elements have a 1px solid black border. Ugh. */
border: none;
width: fit-content;
height: fit-content;
}
:where(.ui-menu-container > li) {
display: flex;
flex-flow: row;
align-items: center;
padding: 1px 7px 1px 7px;
margin-top: 0;
margin-left: 6px;
margin-right: 6px;
border-radius: 4px;
white-space: nowrap;
position: relative;
outline: none;
fill: currentColor;
user-select: none;
cursor: default;
text-align: left;
color: inherit;
font-family: var(--ui-font-family);
font-size: var(--ui-font-size);
line-height: var(--ui-line-height);
letter-spacing: var(--ui-letter-spacing);
}
:where(.ui-menu-container > li > .label) {
appearance: none;
background: none;
outline: none;
width: 100%;
margin: 0;
padding: 1px 2px 1px 1px;
overflow: visible;
border: 1px solid transparent;
white-space: nowrap;
text-align: start;
}
:where(.ui-menu-container > li:has(.heading)) {
margin-top: 0.5em;
}
:where(.ui-menu-container > li > .label.heading) {
font-weight: bold;
opacity: 0.4;
}
:where(.ui-menu-container > li.indent > .label) {
margin-inline-start: 12px;
}
:where(.ui-menu-container > li > .label.indent) {
margin-inline-start: 12px;
}
:where(.ui-menu-container > li[role='divider']) {
border-bottom: 1px solid var(--ui-menu-divider);
border-radius: 0;
padding: 0;
margin-left: 15px;
margin-right: 15px;
padding-top: 5px;
margin-bottom: 5px;
width: calc(100% - 30px);
/** 100% - (margin-left + margin-right) */
}
:where(.ui-menu-container > li[aria-disabled='true']) {
opacity: 0.5;
}
:where(.ui-menu-container > li.active) {
background: var(--ui-menu-bg-active);
background: -apple-system-control-accent;
color: var(--ui-menu-text-active);
}
:where(.ui-menu-container > li.active.is-submenu-open) {
background: var(--ui-menu-bg-active-muted);
color: inherit;
}
:where(.ui-menu-container > li[aria-haspopup='true'] > .label) {
padding-inline-end: 0;
}
:where(.ui-menu-container > li[aria-haspopup='true'].active::after) {
color: var(--ui-menu-text-active);
}
/** Keyboard shortcut */
:where(.ui-menu-container > li > kbd) {
font-family: var(--ui-font-family);
margin-inline-start: 12px;
opacity: 0.4;
}
:where(.ui-menu-container > li.active > kbd) {
opacity: 0.85;
}
.ui-trailing-chevron {
display: flex;
margin-inline-start: 24px;
width: 10px;
height: 10px;
margin-bottom: 4px;
}
.ui-trailing-chevron:dir(rtl) {
transform: scaleX(-1);
}
.ui-checkmark {
display: flex;
margin-inline-end: -11px;
margin-inline-start: -4px;
margin-top: 2px;
width: 16px;
height: 16px;
}
.ui-mixedmark {
display: flex;
margin-inline-end: -11px;
margin-inline-start: -4px;
margin-top: 2px;
width: 16px;
height: 16px;
}
`,Xc;function lu(e){let t="";switch(e){case"mathfield-element":t=`
:host { display: inline-block; background-color: field; color: fieldtext; border-width: 1px; border-style: solid; border-color: #acacac; border-radius: 2px; padding:4px;}
:host([hidden]) { display: none; }
:host([disabled]), :host([disabled]:focus), :host([disabled]:focus-within) { outline: none; opacity: .5; }
:host(:focus), :host(:focus-within) {
outline: Highlight auto 1px; /* For Firefox */
outline: -webkit-focus-ring-color auto 1px;
}
:host([readonly]:focus), :host([readonly]:focus-within),
:host([read-only]:focus), :host([read-only]:focus-within) {
outline: none;
}
@media (hover: none) and (pointer: coarse) {
:host(:not(:focus)) :first-child { pointer-events: none !important; }
}`;break;case"core":t=Yp;break;case"mathfield":t=Qm;break;case"environment-popover":t=xf;break;case"suggestion-popover":t=Km;break;case"keystroke-caption":t=Ol;break;case"virtual-keyboard":t=Qd;break;case"ui":t=Cf;break;case"menu":t=Ad;break;default:debugger}return t}function IA(e){return Xc||(Xc={}),Xc[e]||(Xc[e]=new CSSStyleSheet,Xc[e].replaceSync(lu(e))),Xc[e]}var ku;function ud(e){var t;if(!("adoptedStyleSheets"in document)){if(window.document.getElementById(`mathlive-style-${e}`))return;const r=window.document.createElement("style");r.id=`mathlive-style-${e}`,r.append(window.document.createTextNode(lu(e))),window.document.head.appendChild(r);return}if(ku||(ku={}),((t=ku[e])!=null?t:0)!==0)ku[e]+=1;else{const r=IA(e);document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],ku[e]=1}}function dd(e){if("adoptedStyleSheets"in document&&ku!=null&&ku[e]&&(ku[e]-=1,ku[e]<=0)){const t=Xc[e];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r!==t)}}var ih=class T1 extends Ur{constructor(t){var r;super(I(g({},t),{type:"accent",body:(r=t.body)!=null?r:void 0})),t.accentChar?this.accent=t.accentChar:this.svgAccent=t==null?void 0:t.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(t){return new T1(t)}toJson(){return I(g({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(t){var r;const i=new So({parent:t,mathstyle:"cramp"},this.style),s=(r=Ur.createBox(i,this.body))!=null?r:new zr("\u25A2",{style:this.style});let c=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(c=s.skew);let u=Math.min(s.height,Ll),k;if(this.svgAccent)k=gf(this.svgAccent),u=i.metrics.bigOpSpacing1-u;else if(this.accent){const Y=new zr(this.accent,{fontFamily:"Main-Regular"});Y.italic=0;const ce=this.accent===8407?" ML__accent-vec":"";k=new zr(new zr(Y),{classes:"ML__accent-body"+ce})}k=new bl({shift:0,children:[{box:new zr(s)},-u,{box:k,marginLeft:s.left+2*c,classes:["ML__center"]}]});const j=new zr(k,{type:"lift"});return this.caret&&(j.caret=this.caret),this.bind(i,j.wrap(i)),this.attachSupsub(i,{base:j})}},Kd={"(":")","{":"}","[":"]","|":"|","\\lbrace":"\\rbrace","\\lparen":"\\rparen","\\{":"\\}","\\langle":"\\rangle","\\lfloor":"\\rfloor","\\lceil":"\\rceil","\\vert":"\\vert","\\lvert":"\\rvert","\\Vert":"\\Vert","\\lVert":"\\rVert","\\lbrack":"\\rbrack","\\ulcorner":"\\urcorner","\\llcorner":"\\lrcorner","\\lgroup":"\\rgroup","\\lmoustache":"\\rmoustache"},Dh=Object.fromEntries(Object.entries(Kd).map(([e,t])=>[t,e]));function O0(e){var t;return(t={"[":91,"]":93,"(":40,")":41,"\\mid":8739,"|":8739,"\u2223":8739,"\u2225":8741,"\\|":8739,"\\{":123,"\\}":125,"\\lbrace":123,"\\rbrace":125,"\\lparen":40,"\\rparen":41,"\\lbrack":91,"\\rbrack":93,"\\vert":8739,"\\lvert":8739,"\\mvert":8739,"\\rvert":8739,"\\Vert":8741,"\\lVert":8741,"\\mVert":8741,"\\rVert":8741,"\\parallel":8741,"\\shortparallel":8741,"\\langle":10216,"\\rangle":10217,"\\lfloor":8970,"\\rfloor":8971,"\\lceil":8968,"\\rceil":8969,"\\ulcorner":9484,"\\urcorner":9488,"\\llcorner":9492,"\\lrcorner":9496,"\\lgroup":10222,"\\rgroup":10223,"\\lmoustache":9136,"\\rmoustache":9137,"\\surd":8730}[e])!=null?t:e.codePointAt(0)}function Oh(e,t,r,i){var s;const u=new zr(O0(e),{fontFamily:"Main-Regular",isSelected:i.isSelected,classes:"ML__small-delim "+((s=i.classes)!=null?s:"")}).wrap(t);return r&&u.setTop((1-t.scalingFactor)*Al),u}function qp(e,t,r,i,s){var c,u;const k=new So({parent:i,mathstyle:"textstyle"},s==null?void 0:s.style),j=new zr(O0(e),{fontFamily:`Size${t}-Regular`,isSelected:s.isSelected,classes:((c=s.classes)!=null?c:"")+` ML__delim-size${t}`,type:(u=s.type)!=null?u:"ignore"}).wrap(k);return r&&j.setTop((1-k.scalingFactor)*Al),j}function vp(e,t,r,i,s){var c;let u,k,j,Y;u=j=Y=O0(e),k=null;let ce="Size1-Regular";e==="\\vert"||e==="\\lvert"||e==="\\rvert"||e==="\\mvert"||e==="\\mid"?j=u=Y=8739:e==="\\Vert"||e==="\\lVert"||e==="\\rVert"||e==="\\mVert"||e==="\\|"?j=u=Y=8741:e==="\\uparrow"?j=Y=9168:e==="\\Uparrow"?j=Y=8214:e==="\\downarrow"?u=j=9168:e==="\\Downarrow"?u=j=8214:e==="\\updownarrow"?(u=8593,j=9168,Y=8595):e==="\\Updownarrow"?(u=8657,j=8214,Y=8659):e==="["||e==="\\lbrack"?(u=9121,j=9122,Y=9123,ce="Size4-Regular"):e==="]"||e==="\\rbrack"?(u=9124,j=9125,Y=9126,ce="Size4-Regular"):e==="\\lfloor"||e==="\u230A"?(j=u=9122,Y=9123,ce="Size4-Regular"):e==="\\lceil"||e==="\u2308"?(u=9121,j=Y=9122,ce="Size4-Regular"):e==="\\rfloor"||e==="\u230B"?(j=u=9125,Y=9126,ce="Size4-Regular"):e==="\\rceil"||e==="\u2309"?(u=9124,j=Y=9125,ce="Size4-Regular"):e==="("||e==="\\lparen"?(u=9115,j=9116,Y=9117,ce="Size4-Regular"):e===")"||e==="\\rparen"?(u=9118,j=9119,Y=9120,ce="Size4-Regular"):e==="\\{"||e==="\\lbrace"?(u=9127,k=9128,Y=9129,j=9130,ce="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(u=9131,k=9132,Y=9133,j=9130,ce="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(u=9127,Y=9129,j=9130,ce="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(u=9131,Y=9133,j=9130,ce="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(u=9127,Y=9133,j=9130,ce="Size4-Regular"):e==="\\rmoustache"||e==="\u23B1"?(u=9131,Y=9129,j=9130,ce="Size4-Regular"):e==="\\surd"?(u=57345,Y=9143,j=57344,ce="Size4-Regular"):e==="\\ulcorner"?(u=9484,j=Y=32):e==="\\urcorner"?(u=9488,j=Y=32):e==="\\llcorner"?(Y=9492,j=u=32):e==="\\lrcorner"&&(u=9496,j=u=32);const Pe=Bc(u,ce),rt=Pe.height+Pe.depth,gt=Bc(j,ce),Et=gt.height+gt.depth,Br=Bc(Y,ce),In=Br.height+Br.depth;let wr=0,nn=1;if(k!==null){const We=Bc(k,ce);wr=We.height+We.depth,nn=2}const kn=rt+In+wr,dn=Math.max(0,Math.ceil((t-kn)/(nn*Et))),Bi=kn+dn*nn*Et;let qi=Al;r&&(qi=qi*i.scalingFactor);const Ui=Bi/2-qi,h=.008,B=[];B.push({box:new zr(Y,{fontFamily:ce})}),B.push(-h);const Q=new zr(j,{fontFamily:ce});if(k===null)for(let We=0;We<dn;We++)B.push({box:Q});else{for(let We=0;We<dn;We++)B.push({box:Q});B.push(-h),B.push({box:new zr(k,{fontFamily:ce})}),B.push(-h);for(let We=0;We<dn;We++)B.push({box:Q})}B.push(-h),B.push({box:new zr(u,{fontFamily:ce})});let ge="";ce==="Size1-Regular"?ge=" delim-size1":ce==="Size4-Regular"&&(ge=" delim-size4");const Ke=new bl({bottom:Ui,children:B},{classes:ge});return new zr(Ke,I(g({},s!=null?s:{}),{classes:((c=s==null?void 0:s.classes)!=null?c:"")+" ML__delim-mult"}))}var em=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),Nh=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Hm=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),N0=[0,1.2,1.8,2.4,3];function jm(e,t,r,i){return e===void 0||e==="."?oh(r,i.classes):(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),em.has(e)||Hm.has(e)?qp(e,t,!1,r,i):Nh.has(e)?vp(e,N0[t],!1,r,i):(console.assert(!1,"Unknown delimiter '"+e+"'"),null))}var tm=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],rm=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],nm=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}];function im(e){return e.type==="small"?"Main-Regular":e.type==="large"?"Size"+e.size+"-Regular":(console.assert(e.type==="stack"),"Size4-Regular")}function bp(e,t,r,i){const s={"-4":0,"-3":1,0:2}[i.mathstyle.sizeDelta];for(let c=s;c<r.length&&r[c].type!=="stack";c++){const u=Bc(e,im(r[c]));if(u.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let k=u.height+u.depth;if(r[c].type==="small"&&(r[c].mathstyle==="scriptscriptstyle"?k*=Math.max(_l[Math.max(1,i.size-2)],i.minFontScale):r[c].mathstyle==="scriptstyle"&&(k*=Math.max(_l[Math.max(1,i.size-1)],i.minFontScale))),k>t)return r[c]}return r[r.length-1]}function Bf(e,t,r,i,s,c){if(!t||t.length===0||t===".")return oh(s);t==="<"||t==="\\lt"?t="\\langle":(t===">"||t==="\\gt")&&(t="\\rangle");let u;Hm.has(t)?u=tm:em.has(t)?u=nm:u=rm;const k=bp(O0(t),r,u,s),j=new So({parent:s,mathstyle:k.mathstyle},c==null?void 0:c.style);return k.type==="small"?Oh(t,j,i,I(g({},c),{type:e})):k.type==="large"?qp(t,k.size,i,j,I(g({},c),{type:e})):(console.assert(k.type==="stack"),vp(t,r,i,j,I(g({},c),{type:e})))}function ah(e,t,r,i,s,c){if(t===".")return oh(s,c==null?void 0:c.classes);const u=Al*s.scalingFactor,k=901,j=5/El,Y=Math.max(r-u,i+u),ce=Math.max(Y/500*k,2*Y-j);return Bf(e,t,ce,!0,s,c)}function oh(e,t){const r=new zr(null,{classes:" nulldelimiter "+(t!=null?t:""),type:"ignore"});return r.width=e.getRegisterAsEm("nulldelimiterspace"),r.wrap(new So({parent:e,mathstyle:"textstyle"}))}var Du=class U1 extends Ur{constructor(t){var r;super({type:"placeholder",command:"\\placeholder",mode:(r=t==null?void 0:t.mode)!=null?r:"math",style:t==null?void 0:t.style}),this.captureSelection=!0}static fromJson(t){return new U1(t)}toJson(){return super.toJson()}render(t){let r;return this.value=t.placeholderSymbol,typeof t.renderPlaceholder=="function"?r=t.renderPlaceholder(t):r=this.createBox(t),this.caret&&(r.classes+=" ML__placeholder-selected"),r}_serialize(t){return t.skipPlaceholders?"":"\\placeholder{}"}},yp=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],FA=["cases","dcases","rcases"],P0=["align","align*","aligned","gather","gathered","split"],am=["array","subequations","eqnarray"];function wp(e){return am.concat(P0).concat(FA).concat(yp).includes(e)}function Ph(e){return yp.includes(e)}function Th(e){return FA.includes(e)}function zm(e){return P0.includes(e)}function xp(e,t,r){let i=0;for(const Y of r)"align"in Y&&(i+=1);let s=0;const c=[];for(const Y of t){let ce=0;for(s=Math.max(s,Math.min(Y.length,i));ce<Y.length;){const Pe=[],rt=Math.min(Y.length,ce+i);for(;ce<rt;){const gt=Y[ce];gt.length===0?Pe.push([new Ur({type:"first",mode:e.mode})]):gt[0].type!=="first"?Pe.push([new Ur({type:"first",mode:e.mode}),...gt]):(console.assert(!gt.slice(1).some(Et=>Et.type==="first")),Pe.push(gt)),ce+=1}c.push(Pe)}}c.length>0&&c[c.length-1].length===1&&c[c.length-1][0].length===1&&c[c.length-1][0][0].type==="first"&&c.pop();const u=[];for(const Y of c){if(Y.length!==s)for(let ce=Y.length;ce<s;ce++)Y.push([new Ur({type:"first",mode:e.mode}),new Du]);u.push(Y)}let k=0,j=0;for(const Y of u){j=0;for(const ce of Y){for(const Pe of ce)Pe.parent=e,Pe.parentBranch=[k,j];j+=1}k+=1}return e.isDirty=!0,u}var fs=class R1 extends Ur{constructor(t,r,i,s={}){var c;super({type:"array"}),this.environmentName=t,this.rowGaps=i,s.mathstyleName&&(this.mathstyleName=s.mathstyleName),s.columns&&(s.columns.length===0?this.colFormat=[{align:"l"}]:this.colFormat=s.columns),this.colFormat||(this.colFormat=[{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"},{align:"l"}]),this.array=xp(this,r,this.colFormat),s.leftDelim&&(this.leftDelim=s.leftDelim),s.rightDelim&&(this.rightDelim=s.rightDelim),s.arraycolsep!==void 0&&(this.arraycolsep=s.arraycolsep),this.colSeparationType=s.colSeparationType,s.arraystretch!==void 0&&(this.arraystretch=s.arraystretch),this.minColumns=(c=s.minColumns)!=null?c:1}static fromJson(t){return new R1(t.environmentName,t.array,t.rowGaps,t)}toJson(){const t=I(g({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(r=>r.map(i=>i.map(s=>s.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(t.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(t.arraycolsep=this.arraycolsep),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}branch(t){var r;if(Jf(t))return(r=this.array[t[0]][t[1]])!=null?r:void 0}createBranch(t){var r;return Jf(t)?(this.isDirty=!0,(r=this.branch(t))!=null?r:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(t=>!!t.align).length}removeBranch(t){if(Td(t))return super.removeBranch(t);const r=this.branch(t);return this.array[t[0]][t[1]]=void 0,r.forEach(i=>{i.parent=void 0,i.parentBranch=void 0}),console.assert(r[0].type==="first"),r.shift(),this.isDirty=!0,r}get hasChildren(){return this.children.length>0}get children(){const t=[];for(const r of this.array)for(const i of r)if(i)for(const s of i)t.push(...s.children),t.push(s);return[...t,...super.children]}render(t){var r,i,s,c,u,k;const j=new So({parent:t,mathstyle:this.mathstyleName},this.style),Y=j.getRegisterAsEm("arrayrulewidth"),ce=j.getRegisterAsEm("arraycolsep"),Pe=j.getRegisterAsEm("doublerulesep"),rt=(i=(r=this.arraystretch)!=null?r:j.getRegisterAsNumber("arraystretch"))!=null?i:1;let gt=typeof this.arraycolsep=="number"?this.arraycolsep:ce;this.colSeparationType==="small"&&(gt=.2778*(new So({parent:t,mathstyle:"scriptstyle"}).scalingFactor/t.scalingFactor));const Et=rt*au,Br=.7*Et,In=.3*Et;let wr=0;const nn=[];let kn=0;const dn=this.array.length;for(let dt=0;dt<dn;++dt){const Kt=this.array[dt];kn=Math.max(kn,Kt.length);const yr=new So({parent:j,mathstyle:this.mathstyleName},this.style);let wt=Br/yr.scalingFactor,nr=In/yr.scalingFactor;const vr={cells:[],height:0,depth:0,pos:0};for(const Sr of Kt){const An=(s=Ur.createBox(yr,Sr,{type:"ignore"}))!=null?s:new zr(null,{type:"ignore"});nr=Math.max(nr,An.depth),wt=Math.max(wt,An.height),vr.cells.push(An)}let Xr=(c=su(this.rowGaps[dt]))!=null?c:0;Xr>0&&(Xr+=In,nr=Math.max(nr,Xr),Xr=0),dt<dn-1&&!Ph(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(nr+=j.getRegisterAsEm("jot")),vr.height=wt,vr.depth=nr,wr+=wt,vr.pos=wr,wr+=nr+Xr,nn.push(vr)}const Bi=wr/2+Al,qi=[];for(let dt=0;dt<kn;dt++){const Kt=[];for(const yr of nn){const wt=yr.cells[dt];wt.depth=yr.depth,wt.height=yr.height,Kt.push({box:wt,shift:yr.pos-Bi})}Kt.length>0&&qi.push(new bl({individualShift:Kt}))}const Ui=[];let h=!1,B=!1,Q=0,ge=!this.leftDelim;const{colFormat:Ke}=this;for(const dt of Ke){if("align"in dt&&Q>=qi.length)break;if("align"in dt)h?Ui.push(Ou(2*gt)):(B||ge)&&Ui.push(Ou(gt)),Ui.push(new zr(qi[Q],{classes:"col-align-"+dt.align})),Q++,h=!0,B=!1,ge=!1;else if("gap"in dt){if(typeof dt.gap=="number")Ui.push(Ou(dt.gap));else{const Kt=T0(t,nn,Bi,dt.gap);Kt&&Ui.push(Kt)}h=!1,B=!1,ge=!1}else if("separator"in dt){const Kt=new zr(null,{classes:"vertical-separator"});Kt.height=wr,Kt.setStyle("height",wr,"em"),Kt.setStyle("border-right",`${Y}em ${dt.separator} currentColor`),Kt.setStyle("vertical-align",-(wr-Bi),"em");let yr=0;B?yr=Pe-Y:h&&(yr=gt-Y),Kt.left=yr,Ui.push(Kt),h=!1,B=!0,ge=!1}}h&&!this.rightDelim&&Ui.push(Ou(gt));const $e=new zr(Ui,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&($e.caret=this.caret),this.bind(t,$e);const We=$e.height,at=$e.depth,At=this.bind(t,new zr([this.bind(t,ah("open",(u=this.leftDelim)!=null?u:".",We,at,j,{isSelected:this.isSelected})),$e,this.bind(t,ah("close",(k=this.rightDelim)!=null?k:".",We,at,j,{isSelected:this.isSelected}))],{type:"ord"}));return At?(At.setStyle("display","inline-block"),this.caret&&(At.caret=this.caret),this.bind(t,this.attachSupsub(t,{base:At}))):null}_serialize(t){var r;const i=[];if(this.environmentName==="lines"?i.push("{\\displaylines"):i.push(`\\begin{${this.environmentName}}`),this.environmentName==="array"){if(i.push("{"),this.colFormat!==void 0)for(const s of this.colFormat)"align"in s&&typeof s.align=="string"?i.push(s.align):"separator"in s&&s.separator==="solid"?i.push("|"):"separator"in s&&s.separator==="dashed"&&i.push(":");i.push("}")}for(let s=0;s<this.array.length;s++){for(let c=0;c<this.array[s].length;c++)c>0&&i.push(" & "),i.push(Ur.serialize(this.array[s][c],t));if(s<this.array.length-1){const c=this.rowGaps[s];c!=null&&c.dimension?i.push(`\\\\[${c.dimension} ${(r=c.unit)!=null?r:"pt"}] `):i.push("\\\\ ")}}return this.environmentName==="lines"?i.push("}"):i.push(`\\end{${this.environmentName}}`),co(i)}getCell(t,r){return this.array[t][r]}setCell(t,r,i){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[t][r]!==void 0);for(const c of this.array[t][r])c.parent=void 0,c.parentBranch=void 0;let s=i;(i.length===0||i[0].type!=="first")&&(s=[new Ur({type:"first",mode:this.mode}),...i]),this.array[t][r]=s;for(const c of s)c.parent=this,c.parentBranch=[t,r];this.isDirty=!0}addRowBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let i=0;i<this.colCount;i++)r.push(Fi(this));this.array.splice(t,0,r);for(let i=t;i<this.rowCount;i++)for(let s=0;s<this.colCount;s++){const c=this.array[i][s];if(c)for(const u of c)u.parentBranch=[i,s]}this.isDirty=!0}addRowAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let i=0;i<this.colCount;i++)r.push(Fi(this));this.array.splice(t+1,0,r);for(let i=t+1;i<this.rowCount;i++)for(let s=0;s<this.colCount;s++){const c=this.array[i][s];if(c)for(const u of c)u.parentBranch=[i,s]}this.isDirty=!0}removeRow(t){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>t);const r=this.array.splice(t,1);for(const i of r)for(const s of i)if(s)for(const c of s)c.parent=void 0,c.parentBranch=void 0;for(let i=t;i<this.rowCount;i++)for(let s=0;s<this.colCount;s++){const c=this.array[i][s];if(c)for(const u of c)u.parentBranch=[i,s]}this.isDirty=!0}addColumnBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t,0,Fi(this));for(let r=0;r<this.rowCount;r++)for(let i=t;i<this.colCount;i++){const s=this.array[r][i];if(s)for(const c of s)c.parentBranch=[r,i]}this.isDirty=!0}addColumnAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t+1,0,Fi(this));for(let r=0;r<this.rowCount;r++)for(let i=t+1;i<this.colCount;i++){const s=this.array[r][i];if(s)for(const c of s)c.parentBranch=[r,i]}this.isDirty=!0}addColumn(){this.addColumnAfter(this.colCount-1)}removeColumn(t){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.colCount>t);for(const r of this.array){const i=r.splice(t,1);for(const s of i)if(s)for(const c of s)c.parent=void 0,c.parentBranch=void 0}for(let r=0;r<this.rowCount;r++)for(let i=t;i<this.colCount;i++){const s=this.array[r][i];if(s)for(const c of s)c.parentBranch=[r,i]}this.isDirty=!0}get cells(){const t=[];for(const r of this.array)for(const i of r)i&&t.push(i.filter(s=>s.type!=="first"));return t}};function Fi(e){const t=new Ur({type:"first",mode:e.mode});t.parent=e;const r=new Du;return r.parent=e,[t,r]}function Ou(e){const t=new zr(null,{classes:"arraycolsep"});return t.width=e,t}function T0(e,t,r,i){if(!i)return null;const s=[];for(const c of t){const u=Ur.createBox(e,i,{type:"ignore"});u&&(u.depth=c.depth,u.height=c.height,s.push({box:u,shift:c.pos-r}))}return new bl({individualShift:s}).wrap(e)}var fc=class Q1 extends Ur{constructor(t){super({mode:t.mode,command:t.command,style:t.style,body:t.body,type:"box"}),this.framecolor=t.framecolor,this.backgroundcolor=t.backgroundcolor,this.padding=t.padding,this.offset=t.offset,this.border=t.border}static fromJson(t){return new Q1(t)}toJson(){return I(g({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(t){var r,i,s,c;const u=Ur.createBox(t,this.body,{type:"lift"});if(!u)return null;const k=t.toEm((r=this.offset)!=null?r:{dimension:0});u.depth+=k,u.setStyle("display","inline-block"),u.setStyle("position","relative"),u.setStyle("height",Math.floor(100*u.height+u.depth)/100,"em"),u.setStyle("vertical-align",-Math.floor(100*u.height)/100,"em");const j=new So({parent:t},this.style),Y=j.toEm((i=this.padding)!=null?i:{register:"fboxsep"}),ce=new zr(null,{classes:"ML__box"});ce.height=u.height+Y,ce.depth=u.depth+Y,ce.setStyle("box-sizing","border-box"),ce.setStyle("position","absolute"),ce.setStyle("top",-Y+.3,"em"),ce.setStyle("left",0),ce.setStyle("height",ce.height+ce.depth,"em"),ce.setStyle("width","100%"),this.backgroundcolor&&ce.setStyle("background-color",(s=j.toColor(this.backgroundcolor))!=null?s:"transparent"),this.framecolor&&ce.setStyle("border",`${j.getRegisterAsEm("fboxrule",2)}em solid ${(c=j.toColor(this.framecolor))!=null?c:"black"}`),this.border&&ce.setStyle("border",this.border);const Pe=new zr([ce,u],{type:"lift"});return Pe.setStyle("display","inline-block"),Pe.setStyle("position","relative"),Pe.setStyle("line-height",0),Pe.height=u.height+Y+(k>0?k:0),Pe.depth=u.depth+Y+(k<0?-k:0),Pe.setStyle("padding-left",Y,"em"),Pe.setStyle("padding-right",Y,"em"),Pe.setStyle("height",Math.floor(100*(u.height+u.depth+2*Y+Math.abs(k)))/100,"em"),Pe.setStyle("margin-top",-Y,"em"),Pe.setStyle("top",Math.floor(100*(u.depth-u.height+2*Y-k))/100,"em"),Pe.setStyle("vertical-align",Math.floor(100*(u.depth+2*Y))/100,"em"),this.caret&&(Pe.caret=this.caret),this.attachSupsub(t,{base:Pe})}_serialize(t){return t.skipStyles?co([this.bodyToLatex(t),this.supsubToLatex(t)]):super._serialize(t)}},om=class K1 extends Ur{constructor(t,r){var i;super({type:"composition",mode:(i=r==null?void 0:r.mode)!=null?i:"math",value:t})}static fromJson(t){return new K1(t.value,t)}toJson(){return super.toJson()}get computedStyle(){return{}}render(t){const r=new zr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(t,r),this.caret&&(r.caret=this.caret),r}_serialize(t){return""}},Vo=class H1 extends Ur{constructor(t){super({type:"error",value:t,command:t,mode:"math"}),this.verbatimLatex=t}static fromJson(t){return new H1(t.command)}toJson(){return super.toJson()}render(t){const r=this.createBox(t,{classes:"ML__error"});return this.caret&&(r.caret=this.caret),r}},ol=class j1 extends Ur{constructor(t,r,i){super({type:"group",mode:r,style:i}),this.body=t,this.boxType=t.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,t&&t.length===1&&t[0].command===","&&(this.captureSelection=!0)}static fromJson(t){return new j1(t.body,t.mode,t.style)}render(t){const r=Ur.createBox(t,this.body,{type:this.boxType});return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):`{${this.bodyToLatex(t)}}`}},Ys=class z1 extends Ur{constructor(t,r,i){super({type:"leftright",style:i.style,displayContainsHighlight:!0}),this.variant=t,this.body=r,this.leftDelim=i.leftDelim,this.rightDelim=i.rightDelim}static fromJson(t){var r;return new z1((r=t.variant)!=null?r:"",t.body,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}_serialize(t){var r,i;const s=this.matchingRightDelim();return this.variant==="left...right"?co(["\\left",(r=this.leftDelim)!=null?r:".",this.bodyToLatex(t),"\\right",s]):this.variant==="mleft...mright"?co(["\\mleft",(i=this.leftDelim)!=null?i:".",this.bodyToLatex(t),"\\mright",s]):co([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(t),s])}matchingRightDelim(){var t,r;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const i=(t=this.leftDelim)!=null?t:".";return(r=Kd[i])!=null?r:i}render(t){var r,i;const s=new So({parent:t},this.style);console.assert(this.body!==void 0);const c=new So({parent:t,mathstyle:"textstyle"},this.style),u=(r=Ur.createBox(s,this.body,{type:"inner"}))!=null?r:new zr(null,{type:"inner"}),k=u.height/c.scalingFactor,j=u.depth/c.scalingFactor,Y=[];if(this.leftDelim&&Y.push(this.bind(c,ah("open",this.leftDelim,k,j,c,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),u&&($m(u.children,this,s,k,j),Y.push(u)),this.rightDelim){let gt=this.containsCaret?" ML__contains-caret":"",Et=this.rightDelim;Et==="?"&&(s.smartFence?(Et=this.matchingRightDelim(),gt+=" ML__smart-fence__close"):Et="."),Y.push(this.bind(c,ah("close",Et,k,j,c,{isSelected:this.isSelected,classes:gt+" ML__close",mode:this.mode,style:this.style})))}let ce=this.variant==="mleft...mright";const Pe=this.leftSibling;Pe&&(!ce&&Pe.isFunction&&(ce=!0),!ce&&Pe.type==="subsup"&&((i=Pe.leftSibling)!=null&&i.isFunction)&&(ce=!0));const rt=new zr(Y,{type:ce?"close":"inner",classes:"left-right"});return rt.setStyle("margin-top",`${-u.depth}em`),rt.setStyle("height",`${u.height+u.depth}em`),this.caret&&(rt.caret=this.caret),this.bind(s,rt.wrap(s))}};function $m(e,t,r,i,s){if(e)for(let c=0;c<e.length;c++){const u=e[c];u.type==="middle"?(e[c]=t.bind(r,ah("inner",u.value,i,s,r,{isSelected:t.isSelected})),e[c].caret=u.caret,e[c].isSelected=u.isSelected,e[c].cssId=u.cssId,e[c].htmlData=u.htmlData,e[c].htmlStyle=u.htmlStyle,e[c].attributes=u.attributes,e[c].cssProperties=u.cssProperties):u.children&&$m(u.children,t,r,i,s)}}var U0=class $1 extends Ur{constructor(t,r){var i;super({type:"macro",command:t,style:r.style}),this.body=r.body,r.captureSelection===void 0?r.args?this.captureSelection=!1:this.captureSelection=!0:this.captureSelection=r.captureSelection,this.macroArgs=r.args,this.expand=(i=r.expand)!=null?i:!1}static fromJson(t){return new $1(t.command,t)}toJson(){const t=super.toJson();return this.expand&&(t.expand=!0),this.captureSelection!==void 0&&(t.captureSelection=this.captureSelection),this.macroArgs&&(t.args=this.macroArgs),t}_serialize(t){var r;return t.expandMacro&&this.expand?this.bodyToLatex(t):this.command+((r=this.macroArgs)!=null?r:"")}render(t){const r=Ur.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},Za=class Z1 extends Ur{constructor(){super({type:"macro-argument"})}static fromJson(t){return new Z1}toJson(){return super.toJson()}_serialize(t){return""}render(t){return null}},Sf=class V1 extends Ur{constructor(t,r,i=!1,s,c){var u;super({type:"prompt",mode:(u=c==null?void 0:c.mode)!=null?u:"math",style:c==null?void 0:c.style,command:"\\placeholder"}),this.body=s,this.correctness=r,this.placeholderId=t,this.locked=i,this.captureSelection=this.locked}static fromJson(t){return new V1(t.placeholderId,t.correctness,t.locked,t.body,t)}toJson(){const t=super.toJson();return this.placeholderId&&(t.placeholderId=this.placeholderId),this.body||delete t.body,this.body&&(t.body=this.body.filter(r=>r.type!=="first").map(r=>r.toJson())),this.correctness&&(t.correctness=this.correctness),t.locked=this.locked,t}render(t){const r=new So({parent:t}),i=r.getRegisterAsEm("fboxsep"),s=i,c=i,u=Ur.createBox(t,this.body);if(!u)return null;u.height||(u.height=r.metrics.xHeight),u.setStyle("vertical-align",-u.height,"em"),this.correctness==="correct"?u.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&u.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const k=new zr(u,{type:"ord"});k.setStyle("display","inline-block"),k.setStyle("height",u.height+u.depth,"em"),k.setStyle("vertical-align",-c,"em");let j="ML__prompt ";this.locked?j+=" ML__lockedPromptBox ":j+=" ML__editablePromptBox ",this.correctness==="correct"?j+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(j+=" ML__incorrectPromptBox "),this.containsCaret&&(j+=" ML__focusedPromptBox ");const Y=new zr(null,{classes:j,attributes:{part:"prompt"}});Y.height=k.height+c,Y.depth=k.depth+c,Y.width=k.width+2*s,Y.setStyle("box-sizing","border-box"),Y.setStyle("position","absolute"),Y.setStyle("height",k.height+k.depth+2*c,"em"),s===0&&Y.setStyle("width","100%"),s!==0&&(Y.setStyle("width",`calc(100% + ${2*s}em)`),Y.setStyle("top",i,"em"),Y.setStyle("left",-s,"em")),(!this.body||this.body.length===1)&&(Y.width=3*s,Y.setStyle("width",`calc(100% + ${3*s}em)`),Y.setStyle("left",-1.5*s,"em"));let ce="";this.correctness==="incorrect"&&(ce+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),ce&&(Y.svgOverlay=ce);const Pe=new zr([Y,k],{classes:"ML__prompt-atom"});return Pe.setStyle("position","relative"),Pe.setStyle("display","inline-block"),Pe.setStyle("line-height",0),Pe.height=k.height+c+.2,Pe.depth=k.depth+c,Pe.left=s,Pe.right=s,Pe.setStyle("height",k.height+c,"em"),Pe.setStyle("top",k.depth-k.height,"em"),Pe.setStyle("vertical-align",k.depth+c,"em"),Pe.setStyle("margin-left",.5,"em"),Pe.setStyle("margin-right",.5,"em"),this.caret&&(Pe.caret=this.caret),this.bind(r,this.attachSupsub(t,{base:Pe}))}_serialize(t){var r;const i=(r=this.bodyToLatex(t))!=null?r:"";if(t.skipPlaceholders)return i;let s="\\placeholder";return this.placeholderId&&(s+=`[${this.placeholderId}]`),this.correctness==="correct"?s+="[correct]":this.correctness==="incorrect"&&(s+="[incorrect]"),this.locked&&(s+="[locked]"),Bs(s,i)}},ks=class W1 extends Ur{constructor(t){super({type:"subsup",style:t==null?void 0:t.style}),this.subsupPlacement="auto"}static fromJson(t){const r=new W1(t);for(const i of yf)t[i]&&r.setChildren(t[i],i);return r}render(t){var r;const i=new So({parent:t,isPhantom:!0}),s=this.leftSibling,c=(r=s.render(i))!=null?r:new zr(null),u=new zr(null);return u.height=c.height,u.depth=c.depth,this.attachSupsub(t,{base:u,isCharacterBox:s.isCharacterBox(),type:"ignore"})}_serialize(t){return this.supsubToLatex(t)}};function Hd(e){return e?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(e):!1}var R0=class{constructor(e,t,r){this.errors=[],this.index=0,this.endCount=0;var i,s,c,u;r!=null||(r={}),this.tokens=e,this.context=t instanceof So&&!(r!=null&&r.parseMode)&&!r.mathstyle?t:new So({from:t,mathstyle:r.mathstyle},r.style),this.args=(i=r.args)!=null?i:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(s=r.style)!=null?s:{},parseMode:(c=r.parseMode)!=null?c:"math",mathstyle:(u=r.mathstyle)!=null?u:"displaystyle",tabular:!1}}beginContext(e){var t,r,i;const s=this.parsingContext,c={parent:s,mathlist:[],style:g({},s.style),parseMode:(t=e==null?void 0:e.mode)!=null?t:s.parseMode,mathstyle:(r=e==null?void 0:e.mathstyle)!=null?r:s.mathstyle,tabular:(i=e==null?void 0:e.tabular)!=null?i:!1};this.parsingContext=c}endContext(){this.parsingContext=this.parsingContext.parent}onError(e){this.errors.push(g({before:SA(this.tokens.slice(this.index,this.index+10)),after:SA(this.tokens.slice(Math.max(0,this.index-10),this.index))},e))}get mathlist(){return this.parsingContext.mathlist}set mathlist(e){this.parsingContext.mathlist=e}get parseMode(){return this.parsingContext.parseMode}set parseMode(e){this.parsingContext.parseMode=e}get tabularMode(){return this.parsingContext.tabular}get style(){let e=this.parsingContext;for(;e;){if(e.style)return g({},e.style);e=e.parent}return{}}set style(e){this.parsingContext.style=e}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(e){return this.tokens[this.index]===e?(this.index++,!0):!1}lastSubsupAtom(){let e;return this.mathlist.length>0&&(e=this.mathlist[this.mathlist.length-1],e.type==="subsup"||e.subsupPlacement!==void 0)||(e=new ks({style:this.style}),this.mathlist.push(e)),e}hasPattern(e){return e.test(this.tokens[this.index])}hasInfixCommand(){var e;const{index:t}=this;if(t<this.tokens.length&&this.tokens[t].startsWith("\\")){const r=ct(this.tokens[t],this.parseMode);return!r||r.definitionType==="symbol"||r.ifMode&&!r.ifMode.includes(this.parseMode)?!1:(e=r.infix)!=null?e:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const e=this.peek();return e!=="\\\\"&&e!=="\\cr"&&e!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var e;const t=(e=this.args)==null?void 0:e.call(this,"?");return t?hc(t,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Du({mode:this.parseMode,style:this.style})]}skipWhitespace(){for(;this.match("<space>"););}skipUntilToken(e){let t=this.tokens[this.index];for(;t&&t!==e;)t=this.tokens[++this.index];t===e&&this.index++}skipFiller(){for(;this.match("\\relax")||this.match("<space>"););}matchKeyword(e){const t=this.index;let r=this.end(),i="";for(;!r;){const c=this.get();Hd(c)?(i+=c,r=this.end()||i.length>=e.length):r=!0}const s=e.toUpperCase()===i.toUpperCase();return s||(this.index=t),s}scanString(){let e="";for(;!this.end();){const t=this.peek();if(t==="]")return e;if(t==="<space>")e+=" ";else if(t.startsWith("\\"))this.onError({code:"unexpected-command-in-string"}),e+=t.substring(1);else if(Hd(t))e+=t;else return e;this.next()}return e}scanBalancedString(){let e="",t=this.end(),r=1;for(;!t;){const i=this.get();i==="<space>"?e+=" ":i==="<{>"?(e+="{",r+=1):i==="<}>"?(r-=1,r>0?e+="}":this.index-=1):i==="<$>"?e+="$":i==="<$$>"?e+="$$":e+=i,t=r===0||this.end()}return e}scanLiteralGroup(){var e;if(!this.match("<{>"))return"";let t="",r=1;for(;r>0&&!this.end();){const i=this.get();i==="<}>"?(r-=1,r>0&&(t+="}")):i==="<{>"?(r+=1,t+="{"):(/\\[a-zA-Z]+$/.test(t)&&/^[a-zA-Z]/.test(i)&&(t+=" "),t+=(e={"<space>":" ","<$$>":"$$","<$>":"$"}[i])!=null?e:i)}return t}scanNumber(e=!0){var t,r;let i=!1,s=this.peek();for(;s==="<space>"||s==="+"||s==="-";)this.get(),s==="-"&&(i=!i),s=this.peek();e=!!e;let c=10,u=/\d/;if(this.match("'"))c=8,u=/[0-7]/,e=!0;else if(this.match('"'))c=16,u=/[\dA-F]/,e=!0;else if(this.match("x"))c=16,u=/[\dA-Fa-f]/,e=!0;else if(this.match("`"))return s=this.get(),s?s.length===2&&s.startsWith("\\")?{number:(i?-1:1)*((t=s.codePointAt(1))!=null?t:0),base:"alpha"}:{number:(i?-1:1)*((r=s.codePointAt(0))!=null?r:0),base:"alpha"}:null;let k="";for(;this.hasPattern(u);)k+=this.get();if(!e&&(this.match(".")||this.match(",")))for(k+=".";this.hasPattern(u);)k+=this.get();const j=e?Number.parseInt(k,c):Number.parseFloat(k);return Number.isNaN(j)?null:{number:i?-j:j,base:c===16?"hexadecimal":c===8?"octal":"decimal"}}scanRegister(){var e;const t=this.index,r=this.scanNumber(!1);if(this.skipWhitespace(),this.match("\\relax"))return r;let i=!1;if(r===null)for(;;){const c=this.peek();if(c==="-")i=!i;else if(c!=="+")break;this.next(),this.skipWhitespace()}if(this.match("\\global")){this.skipWhitespace();const c=this.get();return c.startsWith("\\")?r?{register:c,global:!0,factor:(i?-1:1)*r.number}:i?{register:c,global:!0,factor:-1}:{register:c,global:!0}:(this.index=t,null)}let s=this.get();return s!=null&&s.startsWith("\\")?(s=s.substring(1),this.context.registers[s]?!i||r!==null?{register:s,factor:(i?-1:1)*((e=r==null?void 0:r.number)!=null?e:1)}:{register:s}:(this.index=t,null)):(this.index=t,null)}scanValue(){const e=this.scanRegister();if(e)return e;const t=this.index,r=this.scanGlueOrDimen();if(r&&("unit"in r||"glue"in r&&"unit"in r.glue))return r;this.index=t;const i=this.scanNumber();if(i)return i;if(this.end()||!Hd(this.peek()))return null;const s=this.scanString();return s.length>0?{string:s}:null}scanDimen(){const e=this.scanNumber(!1);if(e===null)return null;const t=e.number;this.skipWhitespace(),this.matchKeyword("true"),this.skipWhitespace();let r;return this.matchKeyword("pt")?r="pt":this.matchKeyword("mm")?r="mm":this.matchKeyword("cm")?r="cm":this.matchKeyword("ex")?r="ex":this.matchKeyword("px")?r="px":this.matchKeyword("em")?r="em":this.matchKeyword("bp")?r="bp":this.matchKeyword("dd")?r="dd":this.matchKeyword("pc")?r="pc":this.matchKeyword("in")?r="in":this.matchKeyword("mu")&&(r="mu"),r?{dimension:t,unit:r}:{dimension:t}}scanGlueOrDimen(){const e=this.scanDimen();if(e===null)return null;if(this.skipWhitespace(),this.match("\\relax"))return e;const t={glue:e};if(this.matchKeyword("plus")){const r=this.scanDimen();if(r)t.grow=r;else return t}if(this.skipWhitespace(),this.match("\\relax"))return t;if(this.skipWhitespace(),this.matchKeyword("minus")){const r=this.scanDimen();if(r)t.shrink=r;else return t}return!t.grow&&!t.shrink?e:t}scanColspec(){this.skipWhitespace();const e=[];for(;!this.end()&&!(this.peek()==="<}>"||this.peek()==="]");){const t=this.get();t==="c"||t==="r"||t==="l"?e.push({align:t}):t==="|"?e.push({separator:"solid"}):t===":"?e.push({separator:"dashed"}):t==="@"&&(this.match("<{>")&&(this.beginContext({mode:"math"}),e.push({gap:this.scan(r=>r==="<}>")}),this.endContext()),this.match("<}>")||this.onError({code:"unbalanced-braces"}))}return e}scanModeSet(){let e;if(this.match("\\(")&&(e="textstyle"),!e&&this.match("\\[")&&(e="displaystyle"),!e)return null;this.beginContext({mode:"math",mathstyle:e});const t=this.scan(r=>r===(e==="displaystyle"?"\\]":"\\)"));return this.match(e==="displaystyle"?"\\]":"\\)")||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanModeShift(){let e="";if(this.match("<$>")&&(e="<$>"),!e&&this.match("<$$>")&&(e="<$$>"),!e)return null;this.beginContext({mode:"math",mathstyle:"textstyle"});const t=this.scan(r=>r===e);return this.match(e)||this.onError({code:"unbalanced-mode-shift"}),this.endContext(),t}scanEnvironment(){if(!this.match("\\begin"))return null;const e=this.scanArgument("string");if(!e)return null;const t=H(e);if(!t)return this.onError({code:"unknown-environment",arg:e}),null;const r=[];if(t.params)for(const k of t.params)if(k.isOptional)r.push(this.scanOptionalArgument(k.type));else{const j=this.scanArgument(k.type);j||this.onError({code:"missing-argument",arg:e}),r.push(j)}this.beginContext({tabular:t.tabular});const i=[],s=[];let c=[],u=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),u=!0),!u&&this.match("\\end")&&(this.scanArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),u=!0),!u)if(this.matchColumnSeparator())c.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){c.push(this.mathlist),this.mathlist=[];let k=null;this.skipWhitespace(),this.match("[")&&(k=this.scanDimen(),this.skipWhitespace(),this.match("]")),s.push(k!=null?k:{dimension:0}),i.push(c),c=[]}else this.mathlist.push(...this.scan(k=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(k)));while(!u);return c.push(this.mathlist),c.length>0&&i.push(c),this.endContext(),t.createAtom(e,i,s,r)}scanExpression(){const e=this.mathlist;if(this.mathlist=[],this.parseExpression()){const t=this.mathlist;return this.mathlist=e,t}return this.mathlist=e,null}scan(e){this.beginContext(),e||(e=u=>u==="<}>");let t="",r=null,i=[],s=null;for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!t?(t=this.get(),r=ct(t,"math"),r&&(i=this.scanArguments(r)[1]),s=this.mathlist,this.mathlist=[]):this.parseExpression();let c;return t?(console.assert(!!r),i.unshift(this.mathlist),s&&i.unshift(s),c=[r.createAtom({command:t,args:i,style:this.style,mode:this.parseMode})]):c=this.mathlist,this.endContext(),c}scanGroup(){const e=this.index;if(!this.match("<{>"))return null;const t=this.scan(i=>i==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const r=new ol(t,this.parseMode,this.style);return r.verbatimLatex=SA(this.tokens.slice(e,this.index)),r}scanSmartFence(){if(this.skipWhitespace(),!this.match("("))return null;this.beginContext();let e=1;for(;!this.end()&&e!==0;)this.match("(")&&(e+=1),this.match(")")&&(e-=1),e!==0&&this.parseExpression();const t=new Ys("",this.mathlist,{leftDelim:"(",rightDelim:e===0?")":"?"});return this.endContext(),t}scanDelim(){this.skipWhitespace();const e=this.peek();if(!e)return this.onError({code:"unexpected-end-of-string"}),null;if(!Hd(e)&&!e.startsWith("\\"))return null;this.next();const t=ct(e,"math");return t?t.definitionType==="function"&&t.ifMode&&!t.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:e}),null):t.definitionType==="symbol"&&(t.type==="mopen"||t.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(e)?e:(this.onError({code:"unexpected-delimiter",arg:e}),null):(this.onError({code:"unknown-command",arg:e}),null)}scanLeftRight(){var e;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new Vo("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Vo("\\mright");let t="\\right";if(!this.match("\\left")){if(!this.match("\\mleft"))return null;t="\\mright"}const r=this.scanDelim();if(!r)return this.onError({code:"unexpected-delimiter"}),new Vo(t==="\\right"?"\\left":"\\mleft");for(this.beginContext();!this.end()&&!this.match(t);)this.parseExpression();const i=this.mathlist;this.endContext();const s=(e=this.scanDelim())!=null?e:".";return new Ys(t==="\\right"?"left...right":"mleft...mright",i,{leftDelim:r,rightDelim:s,style:this.style})}parseSupSub(){if(this.parseMode!=="math")return!1;let e=this.peek();if(e!=="^"&&e!=="_"&&e!=="'")return!1;const t=this.lastSubsupAtom();for(;e==="^"||e==="_"||e==="'";)this.match("'")?this.match("'")?t.addChild(new Ur({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):t.addChild(new Ur({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&t.addChildren(et(this.scanArgument("expression")),e==="_"?"subscript":"superscript"),e=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const e=this.match("\\limits"),t=!e&&this.match("\\nolimits"),r=!t&&!e&&this.match("\\displaylimits");if(!e&&!t&&!r)return!1;const i=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return i===null?!1:(i.explicitSubsupPlacement=!0,e&&(i.subsupPlacement="over-under"),t&&(i.subsupPlacement="adjacent"),r&&(i.subsupPlacement="auto"),!0)}scanArguments(e){if(!(e!=null&&e.params))return[void 0,[]];let t;const r=[];let i=e.infix?2:0;for(;i<e.params.length;){const s=e.params[i];s.type==="rest"?r.push(this.scan(c=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(c))):s.isOptional?r.push(this.scanOptionalArgument(s.type)):s.type.endsWith("*")?t=s.type.slice(0,-1):r.push(this.scanArgument(s.type)),i+=1}return[t,r]}scanSymbolOrLiteral(){const e=this.peek();if(!e)return null;this.next();let t;if(Hd(e)){const r=Gl.createAtom(this.parseMode,e,g({},this.style));return r?[r]:null}if(t=this.scanMacro(e),t)return[t];if(e.startsWith("\\")){const r=ct(e,this.parseMode);if(!r)return this.onError({code:"unknown-command",arg:e}),[new Vo(e)];if(r.definitionType==="symbol"){const i=g({},this.style);r.variant&&(i.variant=r.variant),t=new Ur({type:r.type,command:e,style:i,value:String.fromCodePoint(r.codepoint),mode:this.parseMode,verbatimLatex:e})}else{if(r.applyMode||r.applyStyle||r.infix)return this.onError({code:"invalid-command",arg:e}),[new Vo(e)];r.createAtom&&(t=r.createAtom({command:e,args:[],style:this.style,mode:this.parseMode}))}}return t?[t]:null}scanArgument(e){var t;this.skipFiller();const r=this.parseMode;if(e==="auto"&&(e=r),!this.match("<{>")){if(e==="string")return this.scanString();if(e==="value")return this.scanValue();if(e==="delim")return(t=this.scanDelim())!=null?t:".";if(e==="expression")return this.scanExpression();if(e==="math"){e!==r&&this.beginContext({mode:"math"});const s=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),s}if(e==="text"){e!==r&&this.beginContext({mode:"text"});const s=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),s}return e==="balanced-string"||console.assert(!1),null}if(e==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const s=this.mathlist;return this.endContext(),{group:s}}if(e==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const s=this.mathlist;return this.endContext(),{group:s}}let i=null;if(e==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const s=this.mathlist;return this.endContext(),{group:s}}return e==="string"?i=this.scanString():e==="balanced-string"?i=this.scanBalancedString():e==="colspec"?i=this.scanColspec():e==="value"&&(i=this.scanValue()),this.skipUntilToken("<}>"),i}scanOptionalArgument(e){if(e=e==="auto"?this.parseMode:e,this.skipFiller(),!this.match("["))return null;let t=null;for(;!this.end()&&!this.match("]");)if(e==="string")t=this.scanString();else if(e==="value")t=this.scanValue();else if(e==="colspec")t=this.scanColspec();else if(e==="bbox"){const r={},i=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const s of i){const c=s.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(c)r.padding={dimension:parseInt(c[1]),unit:c[2]};else{const u=s.match(/^\s*border\s*:\s*(.*)/);u?r.border=u[1]:r.backgroundcolor={string:s}}}t=r}else e==="math"&&(this.beginContext({mode:"math"}),t=this.mathlist.concat(this.scan(r=>r==="]")),this.endContext());return t}scanSymbolOrCommand(e){var t,r,i;if(e==="\\placeholder"){const k=this.scanOptionalArgument("string"),j=this.scanOptionalArgument("math"),Y=Ur.serialize(j,{defaultMode:"math"});let ce=[],Pe;!Pe&&Y==="correct"?Pe="correct":!Pe&&Y==="incorrect"?Pe="incorrect":Y!==""&&(ce=j);const rt=this.scanOptionalArgument("string")==="locked",gt=this.scanArgument("auto");let Et;return gt&&Array.isArray(gt)&&gt.length>0?Et=gt:gt&&typeof gt=="object"&&"group"in gt?Et=gt.group:Et=ce,k?[new Sf(k,Pe,rt,Et!=null?Et:ce,{mode:this.parseMode,style:this.style})]:[new Du({mode:this.parseMode,style:this.style})]}if(e==="\\renewcommand"||e==="\\newcommand"||e==="\\providecommand"||e==="\\def"){const k=this.index,j=this.scanLiteralGroup()||this.next();if(!j)return null;if(this.context.registers[j.substring(1)]){const Y=this.scanArgument("string");Y!==null&&(this.context.registers[j.substring(1)]=Y);const ce=co([e,SA(this.tokens.slice(k,this.index))]);return[new Ur({type:"text",value:"",verbatimLatex:ce})]}}let s=this.scanMacro(e);if(s)return[s];const c=ct(e,this.parseMode);if(!c)return this.parseMode==="text"?(/[a-zA-Z]/.test((t=this.peek())!=null?t:"")&&(e+=" "),[...e].map(k=>new Ur({type:"text",value:k,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:e}),[new Vo(e)]);const u=this.index;if(c.definitionType==="symbol"){const k=g({},this.style);c.variant&&(k.variant=c.variant),s=new Ur({type:c.type,command:e,style:k,value:String.fromCodePoint(c.codepoint),mode:this.parseMode})}else{if(c.ifMode&&!c.ifMode.includes(this.parseMode))return[];const k=this.parseMode;c.applyMode&&(this.parseMode=c.applyMode);let j,Y=[];if(c.parse?Y=c.parse(this):[j,Y]=this.scanArguments(c),this.parseMode=k,c.applyMode&&!c.applyStyle&&!c.createAtom)return et(Y[0]);if(c.infix)return this.onError({code:"too-many-infix-commands",arg:e}),null;if(typeof c.createAtom=="function")s=c.createAtom({command:e,args:Y,style:this.style,mode:this.parseMode}),j&&(s.body=et(this.scanArgument(j)));else if(typeof c.applyStyle=="function"){const ce=g(g({},this.style),c.applyStyle(e,Y,this.context)),Pe=this.parseMode;if(c.applyMode&&(this.parseMode=c.applyMode),j){const rt=this.style;this.style=ce;const gt=this.scanArgument(j);return this.style=rt,this.parseMode=Pe,et(gt)}this.style=ce}else s=new Ur({type:"mord",command:(r=c.command)!=null?r:e,style:g({},this.style),value:e,mode:(i=c.applyMode)!=null?i:this.parseMode})}if(!s)return null;if(s instanceof Ur&&s.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(e)){const k=co([e,SA(this.tokens.slice(u,this.index))]);k&&(s.verbatimLatex=k)}if(s.verbatimLatex===null&&(s.verbatimLatex=void 0),s.isFunction&&this.smartFence){const k=this.scanSmartFence();if(k)return[s,k]}return[s]}scanSymbolCommandOrLiteral(){const e=this.get();if(!e)return null;if(Hd(e)){const t=Gl.createAtom(this.parseMode,e,g({},this.style));if(!t)return null;if(t.isFunction&&this.smartFence){const r=this.scanSmartFence();if(r)return[t,r]}return[t]}return e.startsWith("\\")?this.scanSymbolOrCommand(e):e==="<space>"?this.parseMode==="text"?[new Ud(" "," ",this.style)]:null:(e==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:e}),null)}scanMacro(e){var t;const r=this.context.getMacro(e);if(!r)return null;const i=this.index,s=r.args,c={"?":(t=this.args)==null?void 0:t.call(this,"?")};for(let u=1;u<=s;u++){let k=this.scanLiteralGroup();if(!k){const j=this.index;this.scanExpression(),k=SA(this.tokens.slice(j,this.index))}c[u]=k}return new U0(e,{expand:r.expand,captureSelection:r.captureSelection,args:i===this.index?null:SA(this.tokens.slice(i,this.index)),style:this.parsingContext.style,body:hc(r.def,{context:this.context,parseMode:this.parseMode,args:u=>c[u],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var e,t,r,i;let s=(i=(r=(t=(e=this.scanEnvironment())!=null?e:this.scanModeShift())!=null?t:this.scanModeSet())!=null?r:this.scanGroup())!=null?i:this.scanLeftRight();if(s===null){if(this.parseSupSub()||this.parseLimits())return!0;s=this.scanSymbolCommandOrLiteral()}return s?(Array.isArray(s)?this.mathlist.push(...s):this.mathlist.push(s),!0):!1}};function hc(e,t){var r,i,s,c;const u=(r=t==null?void 0:t.args)!=null?r:void 0,k=new R0(id(e,u),t==null?void 0:t.context,{args:u,mathstyle:(i=t==null?void 0:t.mathstyle)!=null?i:"displaystyle",parseMode:(s=t==null?void 0:t.parseMode)!=null?s:"math",style:(c=t==null?void 0:t.style)!=null?c:{}}),j=[];for(;!k.end();)j.push(...k.scan(()=>!1));return j}function fd(e,t){var r;const i=new R0(id(e,null),t==null?void 0:t.context,{mathstyle:"displaystyle",parseMode:(r=t==null?void 0:t.parseMode)!=null?r:"math"});for(;!i.end();)i.scan();return i.errors}var Cp=class G1 extends Ur{constructor(t,r){super({type:"chem"},{command:t,mode:"math"});const i=Qs.go(vn.go(r,t==="\\pu"?"pu":"ce"),!1);this.body=hc(i),this._verbatimLatex=t+"{"+r+"}",this.arg=r,this.captureSelection=!0}static fromJson(t){return new G1(t.command,t.arg)}set verbatimLatex(t){}get verbatimLatex(){return this._verbatimLatex}toJson(){return I(g({},super.toJson()),{arg:this.arg})}render(t){const r=Ur.createBox(t,this.body,{type:"inner"});return this.caret&&(r.caret=this.caret),this.bind(t,r)}_serialize(t){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};he(["ce","pu"],"{chemformula:balanced-string}",{createAtom:e=>{var t;return new Cp(e.command,(t=e.args[0])!=null?t:"")}});var vn={go:function(e,t){if(!e)return[];t===void 0&&(t="ce");var r="0",i={};i.parenthesisLevel=0,e=e.replace(/\n/g," "),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),e=e.replace(/[\u2026]/g,"...");for(var s,c=10,u=[];;){s!==e?(c=10,s=e):c--;var k=vn.stateMachines[t],j=k.transitions[r]||k.transitions["*"];e:for(var Y=0;Y<j.length;Y++){var ce=vn.patterns.match_(j[Y].pattern,e);if(ce){for(var Pe=j[Y].task,rt=0;rt<Pe.action_.length;rt++){var gt;if(k.actions[Pe.action_[rt].type_])gt=k.actions[Pe.action_[rt].type_](i,ce.match_,Pe.action_[rt].option);else if(vn.actions[Pe.action_[rt].type_])gt=vn.actions[Pe.action_[rt].type_](i,ce.match_,Pe.action_[rt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Pe.action_[rt].type_+")"];vn.concatArray(u,gt)}if(r=Pe.nextState||r,e.length>0){if(Pe.revisit||(e=ce.remainder),!Pe.toContinue)break e}else return u}}if(c<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Object.prototype.toString.call(t)==="[object Array]")for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"(-)(9)^(-9)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"state of aggregation $":function(e){var t=vn.patterns.findObserveGroups(e,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(t&&t.remainder.match(/^($|[\s,;\)\]\}])/))return t;var r=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r?{match_:r[0],remainder:e.substr(r[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(e){return vn.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return vn.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return vn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return vn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return vn.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return vn.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return vn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return vn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(e){return vn.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return vn.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return vn.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$":function(e){return vn.patterns.findObserveGroups(e,"${","","","}$")},"$(...)$":function(e){return vn.patterns.findObserveGroups(e,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return vn.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return vn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return vn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return vn.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return vn.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return vn.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),t)return{match_:t[0],remainder:e.substr(t[0].length)};var r=vn.patterns.findObserveGroups(e,"","$","$","");return r&&(t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),t)?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,i,s,c,u,k,j,Y){var ce=function(wr,nn){if(typeof nn=="string")return wr.indexOf(nn)!==0?null:nn;var kn=wr.match(nn);return kn?kn[0]:null},Pe=function(wr,nn,kn){for(var dn=0;nn<wr.length;){var Bi=wr.charAt(nn),qi=ce(wr.substr(nn),kn);if(qi!==null&&dn===0)return{endMatchBegin:nn,endMatchEnd:nn+qi.length};if(Bi==="{")dn++;else if(Bi==="}"){if(dn===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];dn--}nn++}return dn>0,null},rt=ce(e,t);if(rt===null||(e=e.substr(rt.length),rt=ce(e,r),rt===null))return null;var gt=Pe(e,rt.length,i||s);if(gt===null)return null;var Et=e.substring(0,i?gt.endMatchEnd:gt.endMatchBegin);if(c||u){var Br=this.findObserveGroups(e.substr(gt.endMatchEnd),c,u,k,j);if(Br===null)return null;var In=[Et,Br.match_];return{match_:Y?In.join(""):In,remainder:Br.remainder}}else return{match_:Et,remainder:e.substr(gt.endMatchEnd)}},match_:function(e,t){var r=vn.patterns.patterns[e];if(r===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if(typeof r=="function")return vn.patterns.patterns[e](t);var i=t.match(r);if(i){var s;return i[2]?s=[i[1],i[2]]:i[1]?s=i[1]:s=i[0],{match_:s,remainder:t.substr(i[0].length)}}return null}},actions:{"a=":function(e,t){e.a=(e.a||"")+t},"b=":function(e,t){e.b=(e.b||"")+t},"p=":function(e,t){e.p=(e.p||"")+t},"o=":function(e,t){e.o=(e.o||"")+t},"q=":function(e,t){e.q=(e.q||"")+t},"d=":function(e,t){e.d=(e.d||"")+t},"rm=":function(e,t){e.rm=(e.rm||"")+t},"text=":function(e,t){e.text_=(e.text_||"")+t},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},rm:function(e,t){return{type_:"rm",p1:t||""}},text:function(e,t){return vn.go(t,"text")},"{text}":function(e,t){var r=["{"];return vn.concatArray(r,vn.go(t,"text")),r.push("}"),r},"tex-math":function(e,t){return vn.go(t,"tex-math")},"tex-math tight":function(e,t){return vn.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t[0]}},ce:function(e,t){return vn.go(t)},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var i=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return i[1]=i[1].replace(/\$/g,""),r.push({type_:"frac",p1:i[1],p2:i[2]}),i[3]&&(i[3]=i[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:i[3]})),r},"9,9":function(e,t){return vn.go(t,"9,9")}},createTransitions:function(e){var t,r,i,s,c={};for(t in e)for(r in e[t])for(i=r.split("|"),e[t][r].stateArray=i,s=0;s<i.length;s++)c[i[s]]=[];for(t in e)for(r in e[t])for(i=e[t][r].stateArray||[],s=0;s<i.length;s++){var u=e[t][r];if(u.action_){u.action_=[].concat(u.action_);for(var k=0;k<u.action_.length;k++)typeof u.action_[k]=="string"&&(u.action_[k]={type_:u.action_[k]})}else u.action_=[];for(var j=t.split("|"),Y=0;Y<j.length;Y++)if(i[s]==="*")for(var ce in c)c[ce].push({pattern:j[Y],task:u});else c[i[s]].push({pattern:j[Y],task:u})}return c},stateMachines:{}};vn.stateMachines={ce:{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[0-9]+$/)){var i=e.d;e.d=void 0,r=this.output(e),e.b=i}else r=this.output(e);return vn.actions["o="](e,t),r},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var r=[];return vn.concatArray(r,this.output(e)),vn.concatArray(r,vn.actions.bond(e,t,"-")),r}else e.d=t},"- after o/d":function(e,t,r){var i=vn.patterns.match_("orbital",e.o||""),s=vn.patterns.match_("one lowercase greek letter $",e.o||""),c=vn.patterns.match_("one lowercase latin letter $",e.o||""),u=vn.patterns.match_("$one lowercase latin letter$ $",e.o||""),k=t==="-"&&(i&&i.remainder===""||s||c||u);k&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!i&&c&&(e.o="$"+e.o+"$");var j=[];return k?(vn.concatArray(j,this.output(e)),j.push({type_:"hyphen"})):(i=vn.patterns.match_("digits",e.d||""),r&&i&&i.remainder===""?(vn.concatArray(j,vn.actions["d="](e,t)),vn.concatArray(j,this.output(e))):(vn.concatArray(j,this.output(e)),vn.concatArray(j,vn.actions.bond(e,t,"-")))),j},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:vn.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,""),i=r!==t;return i&&e.parenthesisLevel===0?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var i;if(!e.r)i=[],!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r||(e.sb&&i.push({type_:"entitySkip"}),!e.o&&!e.q&&!e.d&&!e.b&&!e.p&&r!==2?(e.o=e.a,e.a=void 0):!e.o&&!e.q&&!e.d&&(e.b||e.p)?(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):e.o&&e.dType==="kv"&&vn.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&e.dType==="kv"&&!e.q&&(e.dType=void 0),i.push({type_:"chemfive",a:vn.go(e.a,"a"),b:vn.go(e.b,"bd"),p:vn.go(e.p,"pq"),o:vn.go(e.o,"o"),q:vn.go(e.q,"pq"),d:vn.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType}));else{var s;e.rdt==="M"?s=vn.go(e.rd,"tex-math"):e.rdt==="T"?s=[{type_:"text",p1:e.rd||""}]:s=vn.go(e.rd);var c;e.rqt==="M"?c=vn.go(e.rq,"tex-math"):e.rqt==="T"?c=[{type_:"text",p1:e.rq||""}]:c=vn.go(e.rq),i={type_:"arrow",r:e.r,rd:s,rq:c}}for(var u in e)u!=="parenthesisLevel"&&u!=="beginsWithBond"&&delete e[u];return i},"oxidation-output":function(e,t){var r=["{"];return vn.concatArray(r,vn.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:vn.go(t[0]),p2:vn.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:vn.go(t[0]),p2:vn.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:vn.go(t[0]),p2:vn.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:vn.go(t[0]),p2:vn.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:vn.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:vn.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:vn.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e)delete e[r];return t}}}},pq:{transitions:vn.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:vn.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:vn.go(t[1],"pq")}}}},bd:{transitions:vn.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:vn.go(t[1],"bd")}}}},oxidation:{transitions:vn.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"tex-math tight":{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"9,9":{transitions:vn.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),t[1]&&(vn.concatArray(r,vn.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?vn.concatArray(r,vn.go(t[2],"pu-9,9")):r.push(t[2])),(t[3]||t[4])&&(t[3]==="e"||t[4]==="*"?r.push({type_:"cdot"}):r.push({type_:"times"}))),t[5]&&r.push("10^{"+t[5]+"}"),r},"number^":function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),vn.concatArray(r,vn.go(t[1],"pu-9,9")),r.push("^{"+t[2]+"}"),r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,r=vn.patterns.match_("{(...)}",e.d||"");r&&r.remainder===""&&(e.d=r.match_);var i=vn.patterns.match_("{(...)}",e.q||"");if(i&&i.remainder===""&&(e.q=i.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var s={d:vn.go(e.d,"pu"),q:vn.go(e.q,"pu")};e.o==="//"?t={type_:"pu-frac",p1:s.d,p2:s.q}:(t=s.d,s.d.length>1||s.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),vn.concatArray(t,s.q))}else t=vn.go(e.d,"pu-2");for(var c in e)delete e[c];return t}}},"pu-2":{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=vn.patterns.match_("{(...)}",e.rm||"");r&&r.remainder===""?t=vn.go(r.match_,"pu"):t={type_:"rm",p1:e.rm}}for(var i in e)delete e[i];return t}}},"pu-9,9":{transitions:vn.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length%3;r===0&&(r=3);for(var i=e.text_.length-3;i>0;i-=3)t.push(e.text_.substr(i,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var s in e)delete e[s];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var r=e.text_.length-3,i=0;i<r;i+=3)t.push(e.text_.substr(i,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(i))}else t.push(e.text_);for(var s in e)delete e[s];return t}}}};var Qs={go:function(e,t){if(!e)return"";for(var r="",i=!1,s=0;s<e.length;s++){var c=e[s];typeof c=="string"?r+=c:(r+=Qs._go2(c),c.type_==="1st-level escape"&&(i=!0))}return!t&&!i&&r&&(r="{"+r+"}"),r},_goInner:function(e){return e&&Qs.go(e,!0)},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:Qs._goInner(e.a),b:Qs._goInner(e.b),p:Qs._goInner(e.p),o:Qs._goInner(e.o),q:Qs._goInner(e.q),d:Qs._goInner(e.d)};r.a&&(r.a.match(/^[+\-]/)&&(r.a="{"+r.a+"}"),t+=r.a+"\\,"),(r.b||r.p)&&(t+="{\\vphantom{X}}",t+="^{\\hphantom{"+(r.b||"")+"}}_{\\hphantom{"+(r.p||"")+"}}",t+="{\\vphantom{X}}",t+="^{\\smash[t]{\\vphantom{2}}\\llap{"+(r.b||"")+"}}",t+="_{\\vphantom{2}\\llap{\\smash[t]{"+(r.p||"")+"}}}"),r.o&&(r.o.match(/^[+\-]/)&&(r.o="{"+r.o+"}"),t+=r.o),e.dType==="kv"?((r.d||r.q)&&(t+="{\\vphantom{X}}"),r.d&&(t+="^{"+r.d+"}"),r.q&&(t+="_{\\smash[t]{"+r.q+"}}")):e.dType==="oxidation"?(r.d&&(t+="{\\vphantom{X}}",t+="^{"+r.d+"}"),r.q&&(t+="{\\vphantom{X}}",t+="_{\\smash[t]{"+r.q+"}}")):(r.q&&(t+="{\\vphantom{X}}",t+="_{\\smash[t]{"+r.q+"}}"),r.d&&(t+="{\\vphantom{X}}",t+="^{"+r.d+"}"));break;case"rm":t="\\mathrm{"+e.p1+"}";break;case"text":e.p1.match(/[\^_]/)?(e.p1=e.p1.replace(" ","~").replace("-","\\text{-}"),t="\\mathrm{"+e.p1+"}"):t="\\text{"+e.p1+"}";break;case"roman numeral":t="\\mathrm{"+e.p1+"}";break;case"state of aggregation":t="\\mskip2mu "+Qs._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+Qs._goInner(e.p1);break;case"bond":if(t=Qs._getBond(e.kind_),!t)throw["MhchemErrorBond","mhchem Error. Unknown bond type ("+e.kind_+")"];break;case"frac":var i="\\frac{"+e.p1+"}{"+e.p2+"}";t="\\mathchoice{\\textstyle"+i+"}{"+i+"}{"+i+"}{"+i+"}";break;case"pu-frac":var s="\\frac{"+Qs._goInner(e.p1)+"}{"+Qs._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+s+"}{"+s+"}{"+s+"}{"+s+"}";break;case"tex-math":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+Qs._goInner(e.p1)+"}{"+Qs._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+Qs._goInner(e.p1)+"}{"+Qs._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+Qs._goInner(e.p1)+"}{"+Qs._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+Qs._goInner(e.p1)+"}_{"+Qs._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+Qs._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var c={rd:Qs._goInner(e.rd),rq:Qs._goInner(e.rq)},u=Qs._getArrow(e.r);c.rd||c.rq?e.r==="<=>"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<-->"?(u="\\long"+u,c.rd&&(u="\\overset{"+c.rd+"}{"+u+"}"),c.rq&&(e.r==="<-->"?u="\\underset{\\lower2mu{"+c.rq+"}}{"+u+"}":u="\\underset{\\lower6mu{"+c.rq+"}}{"+u+"}"),u=" {}\\mathrel{"+u+"}{} "):(c.rq&&(u+="[{"+c.rq+"}]"),u+="{"+c.rd+"}",u=" {}\\mathrel{\\x"+u+"}{} "):u=" {}\\mathrel{\\long"+u+"}{} ",t=u;break;case"operator":t=Qs._getOperator(e.kind_);break;case"1st-level escape":t=e.p1+" ";break;case"space":t=" ";break;case"entitySkip":t="~";break;case"pu-space-1":t="~";break;case"pu-space-2":t="\\mkern3mu ";break;case"1000 separator":t="\\mkern2mu ";break;case"commaDecimal":t="{,}";break;case"comma enumeration L":t="{"+e.p1+"}\\mkern6mu ";break;case"comma enumeration M":t="{"+e.p1+"}\\mkern3mu ";break;case"comma enumeration S":t="{"+e.p1+"}\\mkern1mu ";break;case"hyphen":t="\\text{-}";break;case"addition compound":t="\\,{\\cdot}\\,";break;case"electron dot":t="\\mkern1mu \\bullet\\mkern1mu ";break;case"KV x":t="{\\times}";break;case"prime":t="\\prime ";break;case"cdot":t="\\cdot ";break;case"tight cdot":t="\\mkern1mu{\\cdot}\\mkern1mu ";break;case"times":t="\\times ";break;case"circa":t="{\\sim}";break;case"^":t="uparrow";break;case"v":t="downarrow";break;case"ellipsis":t="\\ldots ";break;case"/":t="/";break;case" / ":t="\\,/\\,";break;default:throw["MhchemBugT","mhchem bug T. Please report."]}return t},_getArrow:function(e){switch(e){case"->":return"rightarrow";case"\u2192":return"rightarrow";case"\u27F6":return"rightarrow";case"<-":return"leftarrow";case"<->":return"leftrightarrow";case"<-->":return"leftrightarrows";case"<=>":return"rightleftharpoons";case"\u21CC":return"rightleftharpoons";case"<=>>":return"Rightleftharpoons";case"<<=>":return"Leftrightharpoons";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getBond:function(e){switch(e){case"-":return"{-}";case"1":return"{-}";case"=":return"{=}";case"2":return"{=}";case"#":return"{\\equiv}";case"3":return"{\\equiv}";case"~":return"{\\tripledash}";case"~-":return"{\\rlap{\\lower.1em{-}}\\raise.1em{\\tripledash}}";case"~=":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"~--":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{\\tripledash}}-}";case"-~-":return"{\\rlap{\\lower.2em{-}}\\rlap{\\raise.2em{-}}\\tripledash}";case"...":return"{{\\cdot}{\\cdot}{\\cdot}}";case"....":return"{{\\cdot}{\\cdot}{\\cdot}{\\cdot}}";case"->":return"{\\rightarrow}";case"<-":return"{\\leftarrow}";case"<":return"{<}";case">":return"{>}";default:throw["MhchemBugT","mhchem bug T. Please report."]}},_getOperator:function(e){switch(e){case"+":return" {}+{} ";case"-":return" {}-{} ";case"=":return" {}={} ";case"<":return" {}<{} ";case">":return" {}>{} ";case"<<":return" {}\\ll{} ";case">>":return" {}\\gg{} ";case"\\pm":return" {}\\pm{} ";case"\\approx":return" {}\\approx{} ";case"$\\approx$":return" {}\\approx{} ";case"v":return" \\downarrow{} ";case"(v)":return" \\downarrow{} ";case"^":return" \\uparrow{} ";case"(^)":return" \\uparrow{} ";default:throw["MhchemBugT","mhchem bug T. Please report."]}}};function Q0(e){}function K0(e){}var Kc=class X1 extends Ur{constructor(t){super(I(g({},t),{type:"delim"})),this.value=t.delim,this.size=t.size}static fromJson(t){return new X1(t)}toJson(){return I(g({},super.toJson()),{delim:this.value,size:this.size})}render(t){return new zr(this.value,{type:"middle"})}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):Bs(this.command,this.value)}},Sc=class J1 extends Ur{constructor(t){super(I(g({},t),{type:"sizeddelim",value:t.delim})),this.delimType=t.delimType,this.size=t.size}static fromJson(t){return new J1(t)}toJson(){return I(g({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(t){let r=jm(this.value,this.size,t,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return r?(r=this.bind(t,r),this.caret&&(r.caret=this.caret),r):null}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):Bs(this.command,this.value)}},sc=class Y1 extends Ur{constructor(t,r,i,s){var c,u;super({type:"enclose",command:t,style:s.style}),this.body=r,this.backgroundcolor=s.backgroundcolor,i.updiagonalarrow&&(i.updiagonalstrike=!1),i.box&&(i.left=!1,i.right=!1,i.bottom=!1,i.top=!1),this.notation=i,this.shadow=(c=s.shadow)!=null?c:"none",this.strokeWidth=(u=s.strokeWidth)!=null?u:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=s.strokeStyle,this.svgStrokeStyle=s.svgStrokeStyle,this.strokeColor=s.strokeColor,this.borderStyle=s.borderStyle,this.padding=s.padding,this.captureSelection=!1}static fromJson(t){return new Y1(t.command,t.body,t.notation,t)}toJson(){return I(g({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(t){var r;if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const i=ct(this.command,this.mode);if(i!=null&&i.serialize)return i.serialize(this,t);let s=(r=this.command)!=null?r:"";if(this.command==="\\enclose"){s+="{"+Object.keys(this.notation).join(" ")+"}";let c="",u="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(c+=u+'mathbackground="'+this.backgroundcolor+'"',u=","),this.shadow&&this.shadow!=="auto"&&(c+=u+'shadow="'+this.shadow+'"',u=","),this.strokeWidth||this.strokeStyle!=="solid"?(c+=u+this.borderStyle,u=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(c+=u+'mathcolor="'+this.strokeColor+'"',u=","),c&&(s+=`[${c}]`)}return Bs(s,this.bodyToLatex(t))}render(t){const r=new So({parent:t},this.style),i=Ur.createBox(r,this.body);if(!i)return null;const s=sm(this.borderStyle),c=r.toEm(!this.padding||this.padding==="auto"?{register:"fboxsep"}:{string:this.padding});i.setStyle("position","relative"),i.setStyle("display","inline-block"),i.setStyle("top",c,"em"),i.setStyle("height",i.height+i.depth,"em"),i.setStyle("width",i.width,"em");const u=new zr(null,{classes:"ML__notation"});let k=i.height+i.depth+2*c;const j=i.width+2*c;let Y="";if(this.notation.horizontalstrike&&(Y+=this.line(3,50,97,50)),this.notation.verticalstrike&&(Y+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(Y+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(Y+=this.line(3,3,97,97)),this.notation.updiagonalarrow){Y+=this.line(c.toString(),(c+i.depth+i.height).toString(),(c+i.width).toString(),c.toString());const Et=.03*Math.sqrt(j*j+k*k)*1,Br=i.width*Et,In=(i.depth+i.height)*Et,wr=c+i.width;let nn=c;nn+In-.4*Br<0&&(nn=.4*Br-In),Y+='<polygon points="',Y+=`${wr},${nn} ${wr-Br-.4*In},${nn+In-.4*Br} `,Y+=`${wr-.7*Br},${nn+.7*In} ${wr-Br+.4*In},${nn+In+.4*Br} `,Y+=`${wr},${nn}`,Y+=`" stroke='none' fill="${this.strokeColor}"`,Y+="/>"}let ce=0;if(this.notation.phasorangle){const rt=MA(r),gt=(i.height+i.depth+2*rt+c).toString(),Et=(i.height+i.depth)/2;Y+=this.line(c.toString(),gt,(c+Et+i.width).toString(),gt),Y+=this.line(c.toString(),gt,(c+Et).toString(),(c-rt).toString()),k+=rt,ce=Et,i.left+=k/2-c}if(this.notation.longdiv){const rt=MA(r);k+=rt,Y+=this.line(c.toString(),c.toString(),(c+i.width).toString(),c.toString());const gt=.3;ce=gt+rt,i.left+=gt+rt,i.setTop(c+rt),Y+='<path d="',Y+=`M ${c} ${c} a${gt} ${(i.depth+i.height+2*rt)/2}, 0, 1, 1, 0 ${i.depth+i.height+2*rt} "`,Y+=` stroke-width="${H0(r)}" stroke="${this.strokeColor}" fill="none"`,Y+="/>"}if(u.width=i.width+2*c+ce,u.height=i.height+c,u.depth=i.depth+c,u.setStyle("box-sizing","border-box"),u.setStyle("left",`calc(-${s} / 2 )`),u.setStyle("height",`${Math.floor(100*k)/100}em`),u.setStyle("top",`calc(${s} / 2 )`),this.backgroundcolor&&u.setStyle("background-color",this.backgroundcolor),this.notation.box&&u.setStyle("border","1px solid red"),this.notation.actuarial&&(u.setStyle("border-top",this.borderStyle),u.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(u.setStyle("border-bottom",this.borderStyle),u.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(u.setStyle("border-radius","8px"),u.setStyle("border",this.borderStyle)),this.notation.circle&&(u.setStyle("border-radius","50%"),u.setStyle("border",this.borderStyle)),this.notation.top&&u.setStyle("border-top",this.borderStyle),this.notation.left&&u.setStyle("border-left",this.borderStyle),this.notation.right&&u.setStyle("border-right",this.borderStyle),this.notation.bottom&&u.setStyle("border-bottom",this.borderStyle),Y){let rt="";this.shadow==="auto"&&(rt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(rt+=`filter: drop-shadow(${this.shadow})`),rt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,rt+=' stroke-linecap="round"',this.svgStrokeStyle&&(rt+=` stroke-dasharray="${this.svgStrokeStyle}"`),u.svgStyle=rt,u.svgOverlay=Y}const Pe=new zr([u,i]);return Pe.setStyle("position","relative"),Pe.setStyle("vertical-align",c,"em"),Pe.setStyle("height",`${Math.floor(100*(i.height+i.depth+2*c))/100}em`),Pe.setStyle("display","inline-block"),Pe.height=u.height,Pe.depth=u.depth,Pe.width=u.width-2*c,Pe.left=c,Pe.right=c,this.caret&&(Pe.caret=this.caret),Pe.wrap(r)}line(t,r,i,s){return`<line x1="${pc(t)}" y1="${pc(r)}" x2="${pc(i)}" y2="${pc(s)}" vector-effect="non-scaling-stroke"></line>`}};function pc(e){return typeof e=="number"?`${Math.floor(100*e)/100}%`:e}function sm(e){if(!e)return"1px";const t=e.match(/([0-9][a-zA-Z\%]+)/);return t===null?"1px":t[1]}function H0(e){return(Math.floor(100*e.metrics.sqrtRuleThickness/e.scalingFactor)/100/10).toString()+"em"}function MA(e){const t=e.isDisplayStyle?Ll:e.metrics.defaultRuleThickness;return e.metrics.defaultRuleThickness+e.scalingFactor*t/4}var Ef=class q1 extends Ur{constructor(t,r,i){var s,c;super(I(g({},i),{type:"genfrac",displayContainsHighlight:!0})),this.above=t,this.below=r,this.hasBarLine=(s=i==null?void 0:i.hasBarLine)!=null?s:!0,this.continuousFraction=(c=i==null?void 0:i.continuousFraction)!=null?c:!1,this.numerPrefix=i==null?void 0:i.numerPrefix,this.denomPrefix=i==null?void 0:i.denomPrefix,this.mathstyleName=i==null?void 0:i.mathstyleName,this.leftDelim=i==null?void 0:i.leftDelim,this.rightDelim=i==null?void 0:i.rightDelim,this.fractionNavigationOrder=i==null?void 0:i.fractionNavigationOrder}static fromJson(t){return new q1(t.above,t.below,t)}toJson(){const t={};return this.continuousFraction&&(t.continuousFraction=!0),this.numerPrefix&&(t.numerPrefix=this.numerPrefix),this.denomPrefix&&(t.denomPrefix=this.denomPrefix),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),this.hasBarLine||(t.hasBarLine=!1),this.mathstyleName&&(t.mathstyleName=this.mathstyleName),this.fractionNavigationOrder&&(t.fractionNavigationOrder=this.fractionNavigationOrder),g(g({},super.toJson()),t)}get children(){if(this._children)return this._children;const t=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const r of this.below)t.push(...r.children),t.push(r);for(const r of this.above)t.push(...r.children),t.push(r)}else{for(const r of this.above)t.push(...r.children),t.push(r);for(const r of this.below)t.push(...r.children),t.push(r)}return this._children=t,t}render(t){var r,i;const s=new So({parent:t,mathstyle:this.mathstyleName},this.style),c=s.metrics,u=new So({parent:s,mathstyle:this.continuousFraction?"":"numerator"},this.style),k=this.numerPrefix?new zr([new zr(this.numerPrefix),Ur.createBox(u,this.above)],{isTight:u.isTight,type:"ignore"}):(r=Ur.createBox(u,this.above,{type:"ignore"}))!=null?r:new zr(null,{type:"ignore"}),j=new So({parent:s,mathstyle:this.continuousFraction?"":"denominator"},this.style),Y=this.denomPrefix?new zr([new zr(this.denomPrefix),Ur.createBox(j,this.below,{type:"ignore"})]):(i=Ur.createBox(j,this.below,{type:"ignore"}))!=null?i:new zr(null,{type:"ignore"}),ce=this.hasBarLine?c.defaultRuleThickness:0;let Pe,rt=0,gt;s.isDisplayStyle?(Pe=u.metrics.num1,rt=ce>0?3*ce:7*ce,gt=j.metrics.denom1):(ce>0?(Pe=u.metrics.num2,rt=ce):(Pe=u.metrics.num3,rt=3*c.defaultRuleThickness),gt=j.metrics.denom2);const Et=[];this.isSelected&&Et.push("ML__selected");const Br=k.depth,In=Y.height;let wr;if(ce<=0){const Ui=Pe-Br-(In-gt);Ui<rt&&(Pe+=(rt-Ui)/2,gt+=(rt-Ui)/2),wr=new bl({individualShift:[{box:k,shift:-Pe,classes:[...Et,"ML__center"]},{box:Y,shift:gt,classes:[...Et,"ML__center"]}]}).wrap(s)}else{const Ui=new zr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Ui.softWidth=Math.max(k.width,Y.width),Ui.height=ce/2,Ui.depth=ce/2;const h=Al+ce/2;Pe<rt+Br+h&&(Pe=rt+Br+h);const B=Al-ce/2;gt<rt+In-B&&(gt=rt+In-B),wr=new bl({individualShift:[{box:Y,shift:gt,classes:[...Et,"ML__center"]},{box:Ui,shift:-B,classes:Et},{box:k,shift:-Pe,classes:[...Et,"ML__center"]}]}).wrap(s)}const nn=s.isDisplayStyle?c.delim1:c.delim2,kn=this.leftDelim?this.bind(t,Bf("open",this.leftDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):oh(s,"open");let dn=null;this.continuousFraction?dn=new zr(null,{type:"close"}):this.rightDelim?dn=this.bind(t,Bf("close",this.rightDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):dn=oh(s,"close");const Bi=new zr([kn,wr,dn],{isTight:s.isTight,type:"inner",classes:"mfrac"}),qi=this.bind(t,Bi);return this.caret&&(qi.caret=this.caret),this.attachSupsub(t,{base:qi})}},Nl=class ev extends Ur{constructor(t,r){var i;super({type:"latex",value:t,mode:"latex"}),this.isSuggestion=(i=r==null?void 0:r.isSuggestion)!=null?i:!1,this.isError=!1}static fromJson(t){const r=new ev(t.value);return t.isSuggestion&&(r.isSuggestion=!0),t.isError&&(r.isError=!0),r}toJson(){const t={};return this.isSuggestion&&(t.isSuggestion=!0),this.isError&&(t.isError=!0),g({type:"latex",value:this.value},t)}get computedStyle(){return{}}render(t){const r=new zr(this.value,{classes:this.isSuggestion?"ML__suggestion":this.isError?"ML__error":"",type:"latex",maxFontSize:1});return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},_f=class tv extends Ur{constructor(t){super({type:"latexgroup",mode:"latex"}),this.body=[...t].map(r=>new Nl(r)),this.skipBoundary=!1}static fromJson(t){return new tv("")}toJson(){return super.toJson()}render(t){const r=Ur.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){var r,i;return(i=(r=this.body)==null?void 0:r.map(s=>s.value).join(""))!=null?i:""}},Bp=class rv extends Ur{constructor(t,r){super(I(g({},r),{type:"extensible-symbol",isFunction:r==null?void 0:r.isFunction})),this.value=t,this.variant=r==null?void 0:r.variant,this.subsupPlacement=r==null?void 0:r.limits}static fromJson(t){return new rv(t.symbol,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.subsupPlacement&&(t.limits=this.subsupPlacement),this.isExtensibleSymbol&&(t.isExtensibleSymbol=!0),this.value&&(t.symbol=this.value),t}render(t){var r;const i=t.isDisplayStyle&&this.value!=="\\smallint",s=new zr(this.value,{fontFamily:i?"Size2-Regular":"Size1-Regular",classes:"op-symbol "+(i?"large-op":"small-op"),type:"op",maxFontSize:t.scalingFactor,isSelected:this.isSelected});if(!s)return null;s.right=s.italic;const c=(s.height-s.depth)/2-Al*t.scalingFactor,u=s.italic;s.setTop(c);let k=s;if(this.superscript||this.subscript){const j=(r=this.subsupPlacement)!=null?r:"auto";k=j==="over-under"||j==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:s,baseShift:c,slant:u}):this.attachSupsub(t,{base:s})}return new zr(this.bind(t,k),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=[];return i.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&i.push("\\limits"),this.subsupPlacement==="adjacent"&&i.push("\\nolimits"),this.subsupPlacement==="auto"&&i.push("\\displaylimits")),i.push(this.supsubToLatex(t)),co(i)}},Jc=class nv extends Ur{constructor(t){const r=t.body;super(I(g({},t),{type:"overlap",body:typeof r=="string"?[new Ur({value:r})]:r,style:t==null?void 0:t.style})),this.skipBoundary=!0,this.align=t==null?void 0:t.align,this.boxType=t==null?void 0:t.boxType}static fromJson(t){return new nv(t)}toJson(){const t={};return this.align&&(t.align=this.align),this.boxType&&(t.boxType=this.boxType),g(g({},super.toJson()),t)}render(t){const r=Ur.createBox(t,this.body,{classes:"inner"});return r?(this.caret&&(r.caret=this.caret),this.bind(t,new zr([r,new zr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},mc=class iv extends Ur{constructor(t){var r,i,s,c;super({type:"overunder",command:t.command,style:t.style,mode:t.mode,body:t.body,skipBoundary:(r=t.skipBoundary)!=null?r:!0}),this.subsupPlacement=t.supsubPlacement,this.svgAbove=t.svgAbove,this.svgBelow=t.svgBelow,this.svgBody=t.svgBody,this.above=t.above,this.below=t.below,this.boxType=(i=t.boxType)!=null?i:"ord",this.paddedBody=(s=t.paddedBody)!=null?s:!1,this.paddedLabels=(c=t.paddedLabels)!=null?c:!1}static fromJson(t){return new iv(t)}toJson(){const t=super.toJson();return this.skipBoundary||(t.skipBoundary=!1),this.subsupPlacement&&(t.subsupPlacement=this.subsupPlacement),this.svgAbove&&(t.svgAbove=this.svgAbove),this.svgBelow&&(t.svgBelow=this.svgBelow),this.svgBody&&(t.svgBody=this.svgBody),this.boxType!=="ord"&&(t.boxType=this.boxType),this.paddedBody&&(t.paddedBody=!0),this.paddedLabels&&(t.paddedLabels=!0),t}render(t){let r=this.svgBody?gf(this.svgBody):Ur.createBox(t,this.body,{type:"ignore"});const i=new So({parent:t,mathstyle:"scriptstyle"},this.style);let s=null;this.svgAbove?s=gf(this.svgAbove):this.above&&(s=Ur.createBox(i,this.above,{type:"ignore"}));let c=null;this.svgBelow?c=gf(this.svgBelow):this.below&&(c=Ur.createBox(i,this.below,{type:"ignore"})),this.paddedBody&&(r=new zr([oh(t,"open"),r,oh(t,"close")],{type:"ignore"}));let u=Uh(t,{base:r,above:s,below:c,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return u?(this.subsupPlacement==="over-under"?u=this.attachLimits(t,{base:u,type:u.type}):u=this.attachSupsub(t,{base:u}),this.caret&&(u.caret=this.caret),this.bind(t,u)):null}};function Uh(e,t){if(!t.base)return null;if(!t.above&&!t.below){const k=new zr(t.base,{type:t.type});return k.setStyle("position","relative"),k}let r=0;t.above&&(r=e.metrics.bigOpSpacing5);let i=null;const s=t.base,c=0,u=["ML__center"];if(t.paddedAboveBelow&&u.push("ML__label_padding"),t.below&&t.above){const k=e.metrics.bigOpSpacing5+t.below.height+t.below.depth+s.depth+c;i=new bl({bottom:k,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:u},{box:s,classes:["ML__center"]},r,{box:t.above,classes:u},e.metrics.bigOpSpacing5]})}else t.below?i=new bl({top:s.height-c,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:u},{box:s,classes:["ML__center"]}]}):t.above&&(i=new bl({bottom:s.depth+c,children:[{box:s,classes:["ML__center"]},r,{box:t.above,classes:u},e.metrics.bigOpSpacing5]}));return new zr(i,{type:t.type})}var Nu=class av extends Ur{constructor(t){var r,i,s,c;super(I(g({},t),{type:"phantom"})),this.captureSelection=!0,this.isInvisible=(r=t.isInvisible)!=null?r:!1,this.smashDepth=(i=t.smashDepth)!=null?i:!1,this.smashHeight=(s=t.smashHeight)!=null?s:!1,this.smashWidth=(c=t.smashWidth)!=null?c:!1}static fromJson(t){return new av(t)}toJson(){const t={};return this.isInvisible&&(t.isInvisible=!0),this.smashDepth&&(t.smashDepth=!0),this.smashHeight&&(t.smashHeight=!0),this.smashWidth&&(t.smashWidth=!0),g(g({},super.toJson()),t)}render(t){const r=new So({parent:t,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Ur.createBox(r,this.body,{classes:"inner"});const i=Ur.createBox(this.isInvisible?r:t,this.body);if(!i)return null;if(this.smashWidth){const s=new zr(null,{classes:"fix"});return new zr([i,s],{classes:"rlap"}).wrap(t)}if(!this.smashHeight&&!this.smashDepth)return i;if(this.smashHeight&&(i.height=0),this.smashDepth&&(i.depth=0),i.children)for(const s of i.children)this.smashHeight&&(s.height=0),this.smashDepth&&(s.depth=0);return new bl({firstBaseline:[{box:i}]},{type:i.type}).wrap(t)}},iA=class ov extends Ur{constructor(t){var r;super(g({type:"spacing"},t)),this.width=t==null?void 0:t.width,this._braced=(r=t==null?void 0:t.braced)!=null?r:!1}static fromJson(t){return new ov(t)}toJson(){const t=super.toJson();return this.width!==void 0&&(t.width=this.width),this._braced&&(t.braced=!0),t}render(t){var r;if(this.command==="space")return new zr(this.mode==="math"?null:" ");let i;if(this.width!==void 0)i=new zr(null,{classes:"mspace"}),i.left=t.toEm(this.width);else{const s=(r={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?r:"mediumspace";i=new zr(null,{classes:s})}return i=this.bind(t,i),this.caret&&(i.caret=this.caret),i}_serialize(t){var r;if(!t.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const i=ct(this.command,this.mode);if(i!=null&&i.serialize)return i.serialize(this,t);const s=(r=this.command)!=null?r:"";return this.width===void 0?s:this._braced&&!("register"in this.width)?`${s}{${Dl(this.width)}}`:`${s}${Dl(this.width)}`}},Sp=class sv extends Ur{constructor(t){var r;super(I(g({},t),{type:"surd",mode:(r=t.mode)!=null?r:"math",style:t.style,displayContainsHighlight:!0,body:t.body})),this.above=t.index}static fromJson(t){return new sv(I(g({},t),{index:t.above}))}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=this.command,s=this.bodyToLatex(t);return this.above&&!this.hasEmptyBranch("above")?Bs(`${i}[${this.aboveToLatex(t)}]`,s):/^[0-9]$/.test(s)?`${i}${s}`:Bs(i,s)}get children(){if(this._children)return this._children;const t=[];if(this.above)for(const r of this.above)t.push(...r.children),t.push(r);if(this.body)for(const r of this.body)t.push(...r.children),t.push(r);return this._children=t,t}render(t){var r;const i=new So({parent:t,mathstyle:"cramp"},this.style),s=(r=Ur.createBox(i,this.body,{type:"inner"}))!=null?r:new zr(null),c=i.scalingFactor,u=i.metrics.defaultRuleThickness/c,k=t.isDisplayStyle?Ll:u,j=new zr(null,{classes:"ML__sqrt-line",style:this.style});j.height=u,j.softWidth=s.width;let Y=c*(u+k/4);const Pe=Math.max(c*2*k,s.height+s.depth)+Y+u,rt=new So({parent:t},this.style),gt=this.bind(rt,new zr(Bf("inner","\\surd",Pe,!1,rt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!gt)return null;const Et=gt.height+gt.depth-u;Et>s.height+s.depth+Y&&(Y=(Y+Et-(s.height+s.depth))/2),gt.setTop(gt.height-s.height-Y);const Br=this.bind(t,new bl({firstBaseline:[{box:new zr(s)},Y-2*u,{box:j},u]})),In=Ur.createBox(new So({parent:t,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!In){const kn=new zr([gt,Br],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return kn.setStyle("display","inline-block"),kn.setStyle("height",kn.height+kn.depth,"em"),this.caret&&(kn.caret=this.caret),this.bind(t,kn)}const wr=new bl({shift:-.6*(Math.max(gt.height,Br.height)-Math.max(gt.depth,Br.depth)),children:[{box:In}]}),nn=new zr([new zr(wr,{classes:"ML__sqrt-index",type:"ignore"}),gt,Br],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return nn.height=gt.height,nn.depth=gt.depth,this.caret&&(nn.caret=this.caret),this.bind(t,nn)}},Rh=class extends zr{constructor(e){super(null,{type:"skip"}),this._width=e}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function sh(e,t){if(!e.parent)return;const r=e.parent.children,i=r.indexOf(e);let s=i-1;for(;s>=0&&r[s].type==="ignore";)s-=1;if(s<0&&e.parent.parent&&e.parent.type==="lift"){sh(e.parent,t);return}i>0&&r[i-1].type==="skip"?r[i-1].width+=t:r.splice(i,0,new Rh(t))}var jd={ord:{op:3,bin:4,rel:5,inner:3},op:{ord:3,op:3,rel:5,inner:3},bin:{ord:4,op:4,open:4,inner:4},rel:{ord:5,op:5,open:5,inner:5},close:{op:3,bin:4,rel:5,inner:3},punct:{ord:3,op:3,rel:3,open:3,punct:3,inner:3},inner:{ord:3,op:3,bin:4,rel:5,open:3,punct:3,inner:3}},zd={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function ua(e){If(e,(t,r)=>{r.type==="bin"&&(!t||/^(middle|bin|op|rel|open|punct)$/.test(t.type))&&(r.type="ord"),(t==null?void 0:t.type)==="bin"&&/^(rel|close|punct)$/.test(r.type)&&(t.type="ord"),r.type!=="ignore"&&(t=r)})}function sl(e,t){if(!e.children)return e;const r=e.children;ua(r);const i=t.getRegisterAsEm("thinmuskip"),s=t.getRegisterAsEm("medmuskip"),c=t.getRegisterAsEm("thickmuskip");return If(r,(u,k)=>{var j,Y,ce;if(!u)return;const Pe=u.type,rt=k.isTight?(j=zd[Pe])!=null?j:null:(Y=jd[Pe])!=null?Y:null,gt=(ce=rt==null?void 0:rt[k.type])!=null?ce:null;gt===3&&sh(k,i),gt===4&&sh(k,s),gt===5&&sh(k,c)}),e}function If(e,t,r=void 0){if(!e)return r;e=[...e];for(const i of e)i.type==="lift"?r=If(i.children,t,r):i.type==="ignore"?If(i.children,t):(t(r,i),If(i.children,t),r=i);return r}var hd=class lv extends Ur{constructor(t){super({type:"tooltip",command:t.command,mode:t.mode,style:t.style,body:t.body,displayContainsHighlight:!0}),this.tooltip=new Ur({type:"root",mode:t.content,body:t.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(t){return new lv(I(g({},t),{tooltip:La(t.tooltip)}))}toJson(){var t;const r=(t=this.tooltip.body)==null?void 0:t.filter(i=>i.type!=="first").map(i=>i.toJson());return I(g({},super.toJson()),{tooltip:r})}render(t){const r=Ur.createBox(new So,this.body);if(!r)return null;const i=new So({parent:t,mathstyle:"displaystyle"},{fontSize:il}),s=mf(sl(new zr(this.tooltip.render(i),{classes:"ML__tooltip-content"}),i)),c=new zr([s,r],{classes:"ML__tooltip-container"});return this.caret&&(c.caret=this.caret),this.bind(t,c)}},GA=class cv extends Ur{constructor(t,r){super(I(g({},r),{type:"operator",isFunction:r==null?void 0:r.isFunction})),this.value=t,this.variant=r==null?void 0:r.variant,this.variantStyle=r==null?void 0:r.variantStyle,this.subsupPlacement=r==null?void 0:r.limits}static fromJson(t){return new cv(t.symbol,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.variantStyle&&(t.variantStyle=this.variantStyle),this.subsupPlacement&&(t.limits=this.subsupPlacement),this.value&&(t.symbol=this.value),t}render(t){var r;const i=new zr(this.value,{type:"op",mode:"math",maxFontSize:t.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:t.letterShapeStyle});let s=i;if(this.superscript||this.subscript){const c=(r=this.subsupPlacement)!=null?r:"auto";s=c==="over-under"||c==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:i}):this.attachSupsub(t,{base:i})}return new zr(this.bind(t,s),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&i.push("\\limits"),this.subsupPlacement==="adjacent"&&i.push("\\nolimits"),this.subsupPlacement==="auto"&&i.push("\\displaylimits")),i.push(this.supsubToLatex(t)),co(i)}};function La(e){if(E(e))return e.map(i=>La(i));if(typeof e=="string")return Ur.fromJson(e);e=g({},e);for(const i of yf)e[i]&&(e[i]=La(e[i]));e.args&&(e.args=$d(e.args)),e.array&&(e.array=La(e.array));const t=e.type;let r;t==="accent"&&(r=ih.fromJson(e)),t==="array"&&(r=fs.fromJson(e)),t==="box"&&(r=fc.fromJson(e)),t==="chem"&&(r=Cp.fromJson(e)),t==="composition"&&(r=om.fromJson(e)),t==="delim"&&(r=Kc.fromJson(e)),t==="enclose"&&(r=sc.fromJson(e)),t==="error"&&(r=Vo.fromJson(e)),t==="extensible-symbol"&&(r=Bp.fromJson(e)),t==="genfrac"&&(r=Ef.fromJson(e)),t==="group"&&(r=ol.fromJson(e)),t==="latex"&&(r=Nl.fromJson(e)),t==="latexgroup"&&(r=_f.fromJson(e)),t==="leftright"&&(r=Ys.fromJson(e)),t==="macro"&&(r=U0.fromJson(e)),t==="macro-argument"&&(r=Za.fromJson(e)),t==="operator"&&(r=GA.fromJson(e)),t==="overlap"&&(r=Jc.fromJson(e)),t==="overunder"&&(r=mc.fromJson(e)),t==="placeholder"&&(r=Du.fromJson(e)),t==="prompt"&&(r=Sf.fromJson(e)),t==="phantom"&&(r=Nu.fromJson(e)),t==="sizeddelim"&&(r=Sc.fromJson(e)),t==="spacing"&&(r=iA.fromJson(e)),t==="subsup"&&(r=ks.fromJson(e)),t==="surd"&&(r=Sp.fromJson(e)),t==="text"&&(r=Ud.fromJson(e)),t==="tooltip"&&(r=hd.fromJson(e)),r||(console.assert(!t||["first","mbin","mrel","mclose","minner","mop","mopen","mord","mpunct","root","space"].includes(t),`MathLive 0.98.5: an unexpected atom type "${t}" was encountered. Add new atom constructors to \`fromJson()\` in "atom.ts"`),r=Ur.fromJson(e));for(const i of yf)e[i]&&r.setChildren(e[i],i);return e.verbatimLatex!==void 0&&(r.verbatimLatex=e.verbatimLatex),e.subsupPlacement&&(r.subsupPlacement=e.subsupPlacement),e.explicitSubsupPlacement&&(r.explicitSubsupPlacement=!0),e.isFunction&&(r.isFunction=!0),e.isExtensibleSymbol&&(r.isExtensibleSymbol=!0),e.skipBoundary&&(r.skipBoundary=!0),e.captureSelection&&(r.captureSelection=!0),r}function $d(e){if(e&&Array.isArray(e))return e.map(t=>t==="<null>"?null:typeof t=="object"&&"group"in t?{group:t.group.map(r=>La(r))}:typeof t=="object"&&"atoms"in t?t.atoms.map(r=>La(r)):t)}var aA={main:["Main-Regular","ML__cmr"],"main-italic":["Main-Italic","ML__cmr ML__it"],"main-bold":["Main-Bold","ML__cmr ML__bold"],"main-bolditalic":["Main-BoldItalic","ML__cmr ML__bold ML__it"],normal:["Main-Regular","ML__cmr"],"normal-bold":["Main-Bold","ML__mathbf"],"normal-italic":["Math-Italic","ML__mathit"],"normal-bolditalic":["Math-BoldItalic","ML__mathbfit"],ams:["AMS-Regular","ML__ams"],"ams-bold":["AMS-Regular","ML__ams"],"ams-italic":["AMS-Regular","ML__ams"],"ams-bolditalic":["AMS-Regular","ML__ams"],"sans-serif":["SansSerif-Regular","ML__sans"],"sans-serif-bold":["SansSerif-Regular","ML__sans ML__bold"],"sans-serif-italic":["SansSerif-Regular","ML__sans"],"sans-serif-bolditalic":["SansSerif-Regular","ML__sans"],calligraphic:["Caligraphic-Regular","ML__cal"],"calligraphic-bold":["Caligraphic-Regular","ML__cal ML__bold"],"calligraphic-italic":["Caligraphic-Regular","ML__cal ML__it"],"calligraphic-bolditalic":["Caligraphic-Regular","ML__cal ML__bold ML__it"],script:["Script-Regular","ML__script"],"script-bold":["Script-Regular","ML__script ML__bold"],"script-italic":["Script-Regular","ML__script ML__it"],"script-bolditalic":["Script-Regular","ML__script ML__bold ML__it"],fraktur:["Fraktur-Regular","ML__frak"],"fraktur-bold":["Fraktur-Regular","ML__frak"],"fraktur-italic":["Fraktur-Regular","ML__frak"],"fraktur-bolditalic":["Fraktur-Regular","ML__frak"],monospace:["Typewriter-Regular","ML__tt"],"monospace-bold":["Typewriter-Regular","ML__tt ML__bold"],"monospace-italic":["Typewriter-Regular","ML__tt ML__it"],"monospace-bolditalic":["Typewriter-Regular","ML__tt ML__bold ML__it"],"double-struck":["AMS-Regular","ML__bb"],"double-struck-bold":["AMS-Regular","ML__bb"],"double-struck-italic":["AMS-Regular","ML__bb"],"double-struck-bolditalic":["AMS-Regular","ML__bb"]},j0={"double-struck":/^[A-Z ]$/,script:/^[A-Z ]$/,calligraphic:/^[\dA-Z ]$/,fraktur:/^[\dA-Za-z ]$|^[!"#$%&'()*+,\-./:;=?[]^]$/,monospace:/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/,"sans-serif":/^[\dA-Za-z ]$|^[!"&'()*+,\-./:;=?@[\]^_~\u0131\u0237\u0393\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A8\u03A9]$/},cu=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,Zm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,Vm=[/^[a-z]$/,/^[A-Z]$/,cu,Zm],Wm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},Yl=class extends Gl{constructor(){super("math")}createAtom(e,t,r){var i,s,c,u;if(t===null)return new Ur({type:"mord",mode:"math",command:e,value:e,style:r});const k=window.MathfieldElement.isFunction((i=t.command)!=null?i:e);if(t.definitionType==="symbol"){const Y=new Ur({type:(s=t.type)!=null?s:"mord",mode:"math",command:(c=t.command)!=null?c:e,value:String.fromCodePoint(t.codepoint),style:r});return k&&(Y.isFunction=!0),e.startsWith("\\")&&(Y.verbatimLatex=e),Y}const j=new Ur({type:"mord",mode:"math",command:(u=t.command)!=null?u:e,value:e,style:r});return k&&(j.isFunction=!0),e.startsWith("\\")&&(j.verbatimLatex=e),j}serialize(e,t){const r=b(e,I(g({},t),{defaultMode:"math"}));return r.length===0||t.defaultMode!=="text"?r:["$ ",...r," $"]}getFont(e,t){console.assert(t.variant!==void 0);let{variant:r}=t,{variantStyle:i}=t;r==="normal"&&!i&&/[\u00A3\u0131\u0237]/.test(e.value)&&(r="main",i="italic"),r==="normal"&&!i&&e.value.length===1&&Vm.forEach((k,j)=>{var Y;k.test(e.value)&&Wm[(Y=t.letterShapeStyle)!=null?Y:"tex"][j]==="it"&&(i="italic")}),i==="up"&&(i=void 0);const s=i?r+"-"+i:r;console.assert(aA[s]!==void 0);const[c,u]=aA[s];return j0[r]&&!j0[r].test(e.value)?(e.value=tt(e.value,r,i),null):(cu.test(e.value)&&(e.classes+=" lcGreek"),u&&(e.classes+=" "+u),c)}};function b(e,t){const{parent:r}=e[0],i=f(r);return TA(e,"variant").map(s=>{const c=f(s[0]);let u="";c&&c!==i&&(u={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[c],console.assert(u!==void 0));const k=co(s.map(j=>j._serialize(t)));return u?Bs(u,k):k})}function f(e){if(!e)return"";const{style:t}=e;if(t.variant===void 0)return"";let r=t.variant;return!["calligraphic","fraktur","double-struck","script","monospace","sans-serif"].includes(t.variant)&&t.variantStyle&&t.variantStyle!=="up"&&(r+="-"+t.variantStyle),r}new Yl;function w(e,t){return e.map(r=>r._serialize(t))}function y(e,t){return TA(e,"fontShape").map(r=>{const i=w(r,t),{fontShape:s}=r[0].style;let c="";return s==="it"&&(c="\\textit"),s==="sl"&&(c="\\textsl"),s==="sc"&&(c="\\textsc"),s==="n"&&(c="\\textup"),!c&&s?`{${Bs("\\fontshape",s)}${co(i)}}`:c?Bs(c,co(i)):co(i)})}function ne(e,t){return TA(e,"fontSeries").map(r=>{const i=y(r,t),{fontSeries:s}=r[0].style;let c="";return s==="b"&&(c="\\textbf"),s==="l"&&(c="\\textlf"),s==="m"&&(c="\\textmd"),s&&!c?`{${Bs("\\fontseries",s)}${co(i)}}`:c?Bs(c,co(i)):co(i)})}function _e(e,t){return TA(e,"fontSize").map(r=>{var i,s;const c=ne(r,t),u=(s=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(i=r[0].style.fontSize)!=null?i:""])!=null?s:"";return u?`${u} ${co(c)}`:co(c)})}function Ze(e,t,r){return TA(e,"fontFamily").map(i=>{var s,c;const u=_e(i,t),k=(c={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(s=i[0].style.fontFamily)!=null?s:""])!=null?c:"";return k?`\\${k}{${co(u)}}`:i[0].style.fontFamily?`{\\fontfamily{${i[0].style.fontFamily}} ${co(u)}}`:r?`\\text{${co(u)}}`:co(u)})}var ht={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},pt=class extends Gl{constructor(){super("text")}createAtom(e,t,r){return t&&t.definitionType==="symbol"?new Ud(e,String.fromCodePoint(t.codepoint),r!=null?r:{}):null}serialize(e,t){return Ze(e,I(g({},t),{defaultMode:"text"}),t.defaultMode!=="text")}getFont(e,t){var r,i,s,c,u;const{fontFamily:k}=t;if(ht[k]?e.classes+=" "+ht[k]:k&&e.setStyle("font-family",k),t.fontShape&&(e.classes+=" ",e.classes+=(r={it:"ML__it",sl:"ML__shape_sl",sc:"ML__shape_sc",ol:"ML__shape_ol"}[t.fontShape])!=null?r:""),t.fontSeries){const j=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);j&&(e.classes+=" ",e.classes+=(s={ul:"ML__series_ul",el:"ML__series_el",l:"ML__series_l",sl:"ML__series_sl",m:"",sb:"ML__series_sb",b:"ML__bold",eb:"ML__series_eb",ub:"ML__series_ub"}[(i=j[1])!=null?i:""])!=null?s:"",e.classes+=" ",e.classes+=(u={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(c=j[2])!=null?c:""])!=null?u:"")}return"Main-Regular"}};new pt;var qt=class extends Gl{constructor(){super("latex")}createAtom(e){return new Nl(e)}serialize(e,t){return e.filter(r=>r instanceof Nl&&!r.isSuggestion).map(r=>r.value)}getFont(){return null}};new qt;var Ar={id:"dvorak",locale:"en",displayName:"Dvorak",virtualLayout:"dvorak",platform:"",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["x","X","\u2248","\u02DB"],KeyC:["j","J","\u2206","\xD4"],KeyD:["e","E","\xB4","\xB4"],KeyE:[".",">","\u2265","\u02D8"],KeyF:["u","U","\xA8","\xA8"],KeyG:["i","I","\u02C6","\u02C6"],KeyH:["d","D","\u2202","\xCE"],KeyI:["c","C","\xE7","\xC7"],KeyJ:["h","H","\u02D9","\xD3"],KeyK:["t","T","\u2020","\u02C7"],KeyL:["n","N","\u02DC","\u02DC"],KeyM:["m","M","\xB5","\xC2"],KeyN:["b","B","\u222B","\u0131"],KeyO:["r","R","\xAE","\u2030"],KeyP:["l","L","\xAC","\xD2"],KeyQ:["'",'"',"\xE6","\xC6"],KeyR:["p","P","\u03C0","\u220F"],KeyS:["o","O","\xF8","\xD8"],KeyT:["y","Y","\xA5","\xC1"],KeyU:["g","G","\xA9","\u02DD"],KeyV:["k","K","\u02DA","\uF8FF"],KeyW:[",","<","\u2264","\xAF"],KeyX:["q","Q","\u0153","\u0152"],KeyY:["f","F","\u0192","\xCF"],KeyZ:[";",":","\u2026","\xDA"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["[","{","\u201C","\u201D"],Equal:["]","}","\u2018","\u2019"],BracketLeft:["/","?","\xF7","\xBF"],BracketRight:["=","+","\u2260","\xB1"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:["s","S","\xDF","\xCD"],Quote:["-","_","\u2013","\u2014"],Backquote:["`","~","`","`"],Comma:["w","W","\u2211","\u201E"],Period:["v","V","\u221A","\u25CA"],Slash:["z","Z","\u03A9","\xB8"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},pr={id:"apple.en-intl",displayName:"English (international)",virtualLayout:"qwerty",platform:"apple",locale:"en",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u0131"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\xCE"],KeyE:["e","E","\xB4","\xB4"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\u02DD"],KeyH:["h","H","\u02D9","\xD3"],KeyI:["i","I","\u02C6","\u02C6"],KeyJ:["j","J","\u2206","\xD4"],KeyK:["k","K","\u02DA","\uF8FF"],KeyL:["l","L","\xAC","\xD2"],KeyM:["m","M","\xB5","\xC2"],KeyN:["n","N","\u02DC","\u02DC"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE","\u2030"],KeyS:["s","S","\xDF","\xCD"],KeyT:["t","T","\u2020","\u02C7"],KeyU:["u","U","\xA8","\xA8"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\u02DB"],KeyY:["y","Y","\xA5","\xC1"],KeyZ:["z","Z","\u03A9","\xB8"],Digit1:["1","!","\xA1","\u2044"],Digit2:["2","@","\u2122","\u20AC"],Digit3:["3","#","\xA3","\u2039"],Digit4:["4","$","\xA2","\u203A"],Digit5:["5","%","\u221E","\uFB01"],Digit6:["6","^","\xA7","\uFB02"],Digit7:["7","&","\xB6","\u2021"],Digit8:["8","*","\u2022","\xB0"],Digit9:["9","(","\xAA","\xB7"],Digit0:["0",")","\xBA","\u201A"],Space:[" "," "," "," "],Minus:["-","_","\u2013","\u2014"],Equal:["=","+","\u2260","\xB1"],BracketLeft:["[","{","\u201C","\u201D"],BracketRight:["]","}","\u2018","\u2019"],Backslash:["\\","|","\xAB","\xBB"],Semicolon:[";",":","\u2026","\xDA"],Quote:["'",'"',"\xE6","\xC6"],Backquote:["`","\u02DC","`","`"],Comma:[",","<","\u2264","\xAF"],Period:[".",">","\u2265","\u02D8"],Slash:["/","?","\xF7","\xBF"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[".",".",".","."],IntlBackslash:["\xA7","\xB1","\xA7","\xB1"],NumpadEqual:["=","=","=","="],AudioVolumeUp:["","=","","="]}},qr={id:"windows.en-intl",displayName:"English (international)",platform:"windows",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","\xE1","\xC1"],KeyB:["b","B","",""],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\xE9","\xC9"],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","\xED","\xCD"],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","\xF8","\xD8"],KeyM:["m","M","\xB5",""],KeyN:["n","N","\xF1","\xD1"],KeyO:["o","O","\xF3","\xD3"],KeyP:["p","P","\xF6","\xD6"],KeyQ:["q","Q","\xE4","\xC4"],KeyR:["r","R","\xAE",""],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\xFE","\xDE"],KeyU:["u","U","\xFA","\xDA"],KeyV:["v","V","",""],KeyW:["w","W","\xE5","\xC5"],KeyX:["x","X","",""],KeyY:["y","Y","\xFC","\xDC"],KeyZ:["z","Z","\xE6","\xC6"],Digit1:["1","!","\xA1","\xB9"],Digit2:["2","@","\xB2",""],Digit3:["3","#","\xB3",""],Digit4:["4","$","\xA4","\xA3"],Digit5:["5","%","\u20AC",""],Digit6:["6","^","\xBC",""],Digit7:["7","&","\xBD",""],Digit8:["8","*","\xBE",""],Digit9:["9","(","\u2018",""],Digit0:["0",")","\u2019",""],Space:[" "," ","",""],Minus:["-","_","\xA5",""],Equal:["=","+","\xD7","\xF7"],BracketLeft:["[","{","\xAB",""],BracketRight:["]","}","\xBB",""],Backslash:["\\","|","\xAC","\xA6"],Semicolon:[";",":","\xB6","\xB0"],Quote:["'",'"',"\xB4","\xA8"],Backquote:["`","~","",""],Comma:[",","<","\xE7","\xC7"],Period:[".",">","",""],Slash:["/","?","\xBF",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["\\","|","",""]}},Ti={id:"linux.en",displayName:"English",platform:"linux",virtualLayout:"qwerty",locale:"en",score:0,mapping:{KeyA:["a","A","a","A"],KeyB:["b","B","b","B"],KeyC:["c","C","c","C"],KeyD:["d","D","d","D"],KeyE:["e","E","e","E"],KeyF:["f","F","f","F"],KeyG:["g","G","g","G"],KeyH:["h","H","h","H"],KeyI:["i","I","i","I"],KeyJ:["j","J","j","J"],KeyK:["k","K","k","K"],KeyL:["l","L","l","L"],KeyM:["m","M","m","M"],KeyN:["n","N","n","N"],KeyO:["o","O","o","O"],KeyP:["p","P","p","P"],KeyQ:["q","Q","q","Q"],KeyR:["r","R","r","R"],KeyS:["s","S","s","S"],KeyT:["t","T","t","T"],KeyU:["u","U","u","U"],KeyV:["v","V","v","V"],KeyW:["w","W","w","W"],KeyX:["x","X","x","X"],KeyY:["y","Y","y","Y"],KeyZ:["z","Z","z","Z"],Digit1:["1","!","1","!"],Digit2:["2","@","2","@"],Digit3:["3","#","3","#"],Digit4:["4","$","4","$"],Digit5:["5","%","5","%"],Digit6:["6","^","6","^"],Digit7:["7","&","7","&"],Digit8:["8","*","8","*"],Digit9:["9","(","9","("],Digit0:["0",")","0",")"],Space:[" "," "," "," "],Minus:["-","_","-","_"],Equal:["=","+","=","+"],BracketLeft:["[","{","[","{"],BracketRight:["]","}","]","}"],Backslash:["\\","|","\\","|"],Semicolon:[";",":",";",":"],Quote:["'",'"',"'",'"'],Backquote:["`","~","`","~"],Comma:[",","<",",","<"],Period:[".",">",".",">"],Slash:["/","?","/","?"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}},Un={id:"apple.french",locale:"fr",displayName:"French",platform:"apple",virtualLayout:"azerty",score:0,mapping:{KeyA:["q","Q","\u2021","\u03A9"],KeyB:["b","B","\xDF","\u222B"],KeyC:["c","C","\xA9","\xA2"],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\xEA","\xCA"],KeyF:["f","F","\u0192","\xB7"],KeyG:["g","G","\uFB01","\uFB02"],KeyH:["h","H","\xCC","\xCE"],KeyI:["i","I","\xEE","\xEF"],KeyJ:["j","J","\xCF","\xCD"],KeyK:["k","K","\xC8","\xCB"],KeyL:["l","L","\xAC","|"],KeyM:[",","?","\u221E","\xBF"],KeyN:["n","N","~","\u0131"],KeyO:["o","O","\u0153","\u0152"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xAE","\u201A"],KeyS:["s","S","\xD2","\u2211"],KeyT:["t","T","\u2020","\u2122"],KeyU:["u","U","\xBA","\xAA"],KeyV:["v","V","\u25CA","\u221A"],KeyW:["z","Z","\xC2","\xC5"],KeyX:["x","X","\u2248","\u2044"],KeyY:["y","Y","\xDA","\u0178"],KeyZ:["w","W","\u2039","\u203A"],Digit1:["&","1","\uF8FF","\xB4"],Digit2:["\xE9","2","\xEB","\u201E"],Digit3:['"',"3","\u201C","\u201D"],Digit4:["'","4","\u2018","\u2019"],Digit5:["(","5","{","["],Digit6:["\xA7","6","\xB6","\xE5"],Digit7:["\xE8","7","\xAB","\xBB"],Digit8:["!","8","\xA1","\xDB"],Digit9:["\xE7","9","\xC7","\xC1"],Digit0:["\xE0","0","\xF8","\xD8"],Space:[" "," "," "," "],Minus:[")","\xB0","}","]"],Equal:["-","_","\u2014","\u2013"],BracketLeft:["^","\xA8","\xF4","\xD4"],BracketRight:["$","*","\u20AC","\xA5"],Backslash:["`","\xA3","@","#"],Semicolon:["m","M","\xB5","\xD3"],Quote:["\xF9","%","\xD9","\u2030"],Backquote:["<",">","\u2264","\u2265"],Comma:[";",".","\u2026","\u2022"],Period:[":","/","\xF7","\\"],Slash:["=","+","\u2260","\xB1"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",".",",","."],IntlBackslash:["@","#","\u2022","\u0178"],NumpadEqual:["=","=","=","="]}},pi={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Va={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},Ji={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},Vi={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},Na={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},ao={id:"apple.spanish",locale:"es",displayName:"Spanish ISO",platform:"apple",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\xDF",""],KeyC:["c","C","\xA9"," "],KeyD:["d","D","\u2202","\u2206"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0192","\uFB01"],KeyG:["g","G","\uF8FF","\uFB02"],KeyH:["h","H","\u2122"," "],KeyI:["i","I"," "," "],KeyJ:["j","J","\xB6","\xAF"],KeyK:["k","K","\xA7","\u02C7"],KeyL:["l","L"," ","\u02D8"],KeyM:["m","M","\xB5","\u02DA"],KeyN:["n","N"," ","\u02D9"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\u0153","\u0152"],KeyR:["r","R","\xAE"," "],KeyS:["s","S","\u222B"," "],KeyT:["t","T","\u2020","\u2021"],KeyU:["u","U"," "," "],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\xE6","\xC6"],KeyX:["x","X","\u2211","\u203A"],KeyY:["y","Y","\xA5"," "],KeyZ:["z","Z","\u03A9","\u2039"],Digit1:["1","!","|","\u0131"],Digit2:["2",'"',"@","\u02DD"],Digit3:["3","\xB7","#","\u2022"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","\u221E","\u2030"],Digit6:["6","&","\xAC"," "],Digit7:["7","/","\xF7","\u2044"],Digit8:["8","(","\u201C","\u2018"],Digit9:["9",")","\u201D","\u2019"],Digit0:["0","=","\u2260","\u2248"],Space:[" "," "," "," "],Minus:["'","?","\xB4","\xB8"],Equal:["\xA1","\xBF","\u201A","\u02DB"],BracketLeft:["`","^","[","\u02C6"],BracketRight:["+","*","]","\xB1"],Backslash:["\xE7","\xC7","}","\xBB"],Semicolon:["\xF1","\xD1","~","\u02DC"],Quote:["\xB4","\xA8","{","\xAB"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u201E",""],Period:[".",":","\u2026","\u2026"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["1","1","1","1"],Numpad2:["2","2","2","2"],Numpad3:["3","3","3","3"],Numpad4:["4","4","4","4"],Numpad5:["5","5","5","5"],Numpad6:["6","6","6","6"],Numpad7:["7","7","7","7"],Numpad8:["8","8","8","8"],Numpad9:["9","9","9","9"],Numpad0:["0","0","0","0"],NumpadDecimal:[",",",",",",","],IntlBackslash:["\xBA","\xAA","\\","\xB0"]}},Ia={id:"windows.spanish",locale:"es",displayName:"Spanish",platform:"windows",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["z","Z","",""],Digit1:["1","!","|",""],Digit2:["2",'"',"@",""],Digit3:["3","\xB7","#",""],Digit4:["4","$","~",""],Digit5:["5","%","\u20AC",""],Digit6:["6","&","\xAC",""],Digit7:["7","/","",""],Digit8:["8","(","",""],Digit9:["9",")","",""],Digit0:["0","=","",""],Space:[" "," ","",""],Minus:["'","?","",""],Equal:["\xA1","\xBF","",""],BracketLeft:["`","^","[",""],BracketRight:["+","*","]",""],Backslash:["\xE7","\xC7","}",""],Semicolon:["\xF1","\xD1","",""],Quote:["\xB4","\xA8","{",""],Backquote:["\xBA","\xAA","\\",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Mi={id:"linux.spanish",locale:"es",displayName:"Spanish",platform:"linux",virtualLayout:"qwerty",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["z","Z","\xAB","<"],Digit1:["1","!","|","\xA1"],Digit2:["2",'"',"@","\u215B"],Digit3:["3","\xB7","#","\xA3"],Digit4:["4","$","~","$"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["'","?","\\","\xBF"],Equal:["\xA1","\xBF","\u0303","~"],BracketLeft:["\u0300","\u0302","[","\u030A"],BracketRight:["+","*","]","\u0304"],Backslash:["\xE7","\xC7","}","\u0306"],Semicolon:["\xF1","\xD1","~","\u030B"],Quote:["\u0301","\u0308","{","{"],Backquote:["\xBA","\xAA","\\","\\"],Comma:[",",";","\u2500","\xD7"],Period:[".",":","\xB7","\xF7"],Slash:["-","_","\u0323","\u0307"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadEnter:["\r","\r","\r","\r"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"],NumpadEqual:["=","=","=","="],NumpadComma:[".",".",".","."],NumpadParenLeft:["(","(","(","("],NumpadParenRight:[")",")",")",")"]}};function ko(e){const t=e.split("+"),r={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:t.pop()};return t.includes("shift")&&(r.shift=!0),t.includes("alt")&&(r.alt=!0),t.includes("ctrl")&&(r.ctrl=!0),t.includes("cmd")&&(r.cmd=!0),t.includes("win")&&(r.win=!0),t.includes("meta")&&(r.meta=!0),r}function Xa(e){let t="";return e.shift&&(t+="shift+"),e.alt&&(t+="alt+"),e.ctrl&&(t+="ctrl+"),e.cmd&&(t+="cmd+"),e.win&&(t+="win+"),e.meta&&(t+="meta+"),t+e.key}var Pa={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},qn=[],Ec;function oA(){switch(ee()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function bo(e){(!e.platform||e.platform===oA())&&qn.push(e)}function _c(e,t){var r;const i={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!e)return i;for(const[s,c]of Object.entries(t.mapping)){if(c[0]===e)return i.key=`[${s}]`,i;if(c[1]===e)return i.shift=!0,i.key=`[${s}]`,i;if(c[2]===e)return i.alt=!0,i.key=`[${s}]`,i;if(c[3]===e)return i.shift=!0,i.alt=!0,i.key=`[${s}]`,i}return i.key=(r=Pa[e])!=null?r:"",i}function pd(e){if(e.code)return e;const t=Object.entries(Au().mapping);let r=!1,i=!1,s="";for(let c=0;c<4;c++){for(const[u,k]of t)if(k[c]===e.key){s=u,c===3?(r=!0,i=!0):c===2?r=!0:c===1&&(i=!0);break}if(s)break}return new KeyboardEvent(e.type,I(g({},e),{altKey:r,shiftKey:i,code:s}))}function Yc(e){var t,r;if(!e||e.key==="Unidentified"||e.key==="Dead")return;const i=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;for(const s of qn)((t=s.mapping[e.code])==null?void 0:t[i])===e.key?s.score+=1:(r=s.mapping[e.code])!=null&&r[i]&&(s.score=0);qn.sort((s,c)=>c.score-s.score)}function sA(e){Ec=qn.find(t=>e.startsWith(t.locale))}function Au(){return Ec!=null?Ec:qn[0]}function XA(){switch(oA()){case"apple":return pr;case"windows":return qr;case"linux":return Ti}return pr}switch(oA()){case"apple":bo(pr),bo(Un),bo(ao),bo(Ji);break;case"windows":bo(qr),bo(pi),bo(Ia),bo(Vi);break;case"linux":bo(Ti),bo(Va),bo(Mi),bo(Na);break}bo(Ar);function uu(e){var t;const r=/macos|ios/.test(ee()),i=e.split("+");let s="";for(const c of i)s&&(s+=r?"\u2009":'<span class="ML__shortcut-join">+</span>'),c.startsWith("[Key")?s+=c.slice(4,5):c.startsWith("Key")?s+=c.slice(3,4):c.startsWith("[Digit")?s+=c.slice(6,7):c.startsWith("Digit")?s+=c.slice(5,6):s+=(t={cmd:"\u2318",meta:r?"\u2318":"Ctrl",shift:r?"\u21E7":"Shift",alt:r?"\u2325":"Alt",ctrl:r?"\u2303":"Ctrl","\n":r?"\u23CE":"Return","[return]":r?"\u23CE":"Return","[enter]":r?"\u2324":"Enter","[tab]":r?"\u21E5":"Tab","[escape]":"Esc","[backspace]":r?"\u232B":"Backspace","[delete]":r?"\u2326":"Del","[pageup]":r?"\u21DE":"Page Up","[pagedown]":r?"\u21DF":"Page Down","[home]":r?"\u2912":"Home","[end]":r?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* &#128290;",numpaddivide:"/ &#128290;",numpadsubtract:"- &#128290;",numpadadd:"+ &#128290;",numpaddecimal:". &#128290;",numpadcomma:", &#128290;",help:"help",left:"\u21E0",up:"\u21E1",right:"\u21E2",down:"\u21E3","[arrowleft]":"\u21E0","[arrowup]":"\u21E1","[arrowright]":"\u21E2","[arrowdown]":"\u21E3"}[c.toLowerCase()])!=null?t:c.toUpperCase();return s}function Pu(e){if(e instanceof MouseEvent||e instanceof PointerEvent)return{x:e.clientX,y:e.clientY};if(e instanceof TouchEvent){const t=[...e.touches].reduce((i,s)=>({x:i.x+s.clientX,y:i.y+s.clientY}),{x:0,y:0}),r=e.touches.length;return{x:t.x/r,y:t.y/r}}}function LA(e){const t={alt:!1,control:!1,shift:!1,meta:!1};return(e instanceof MouseEvent||e instanceof PointerEvent||e instanceof TouchEvent||e instanceof KeyboardEvent)&&(e.altKey&&(t.alt=!0),e.ctrlKey&&(t.control=!0),e.metaKey&&(t.meta=!0),e.shiftKey&&(t.shift=!0)),t}function Tu(e,t){return!e&&t||e&&!t?!1:!e||!t?!0:e.alt===t.alt&&e.control===t.control&&e.shift===t.shift&&e.meta===t.meta}var Zd=new Set(["Backquote","Digit0","Digit1","Digit2","Digit3","Digit4","Digit5","Digit6","Digit7","Digit8","Digit9","Minus","Equal","IntlYen","KeyQ","KeyW","KeyE","KeyR","KeyT","KeyY","KeyU","KeyI","KeyO","KeyP","BracketLeft","BracketRight","Backslash","KeyA","KeyS","KeyD","KeyF","KeyG","KeyH","KeyJ","KeyK","KeyL","Semicolon","Quote","IntlBackslash","KeyZ","KeyX","KeyC","KeyV","KeyB","KeyN","KeyM","Comma","Period","Slash","IntlRo","Space","Numpad0","Numpad1","Numpad2","Numpad3","Numpad4","Numpad5","Numpad6","Numpad7","Numpad8","Numpad9","NumpadAdd","NumpadComma","NumpadDecimal","NumpadDivide","NumpadEqual","NumpadHash","NumpadMultiply","NumpadParenLeft","NumpadParenRight","NumpadStar","NumpadSubstract"]);function JA(e){return e.ctrlKey||e.metaKey||["Dead","Process"].includes(e.key)?!1:e.code===""?!0:Zd.has(e.code)}function md(){var e;let t=document.activeElement;for(;(e=t==null?void 0:t.shadowRoot)!=null&&e.activeElement;)t=t.shadowRoot.activeElement;return t}var Hc=class b0{static get scrim(){return b0._scrim||(b0._scrim=new b0),b0._scrim}static open(t){b0.scrim.open(t)}static close(){b0.scrim.close()}static get state(){return b0.scrim.state}static get element(){return b0.scrim.element}constructor(t){var r,i;this.lightDismiss=(r=t==null?void 0:t.lightDismiss)!=null?r:!0,this.translucent=(i=t==null?void 0:t.translucent)!=null?i:!1,this.state="closed"}get element(){if(this._element)return this._element;const t=document.createElement("div");return t.setAttribute("role","presentation"),t.style.position="fixed",t.style.contain="content",t.style.top="0",t.style.left="0",t.style.right="0",t.style.bottom="0",t.style.zIndex="var(--scrim-zindex, 10099)",t.style.outline="none",this.translucent?(t.style.background="rgba(255, 255, 255, .2)",t.style.backdropFilter="contrast(40%)"):t.style.background="transparent",this._element=t,t}open(t){var r;if(this.state!=="closed")return;this.state="opening",this.onDismiss=t==null?void 0:t.onDismiss,this.savedActiveElement=md();const{element:i}=this;((r=t==null?void 0:t.root)!=null?r:document.body).appendChild(i),i.addEventListener("click",this),document.addEventListener("touchmove",this,!1),document.addEventListener("scroll",this,!1);const s=window.innerWidth-document.documentElement.clientWidth;this.savedMarginRight=document.body.style.marginRight,this.savedOverflow=document.body.style.overflow,document.body.style.overflow="hidden";const c=Number.parseFloat(getComputedStyle(document.body).marginRight);document.body.style.marginRight=`${c+s}px`,t!=null&&t.child&&i.append(t.child),this.state="open"}close(){var t,r,i,s;if(this.state!=="open"){console.assert(this.element.parentElement!==null);return}this.state="closing",typeof this.onDismiss=="function"&&this.onDismiss(),this.onDismiss=void 0;const{element:c}=this;c.removeEventListener("click",this),document.removeEventListener("touchmove",this,!1),document.removeEventListener("scroll",this,!1),c.remove(),document.body.style.overflow=(t=this.savedOverflow)!=null?t:"",document.body.style.marginRight=(r=this.savedMarginRight)!=null?r:"",md()!==this.savedActiveElement&&((s=(i=this.savedActiveElement)==null?void 0:i.focus)==null||s.call(i)),c.innerHTML="",this.state="closed"}handleEvent(t){this.lightDismiss&&(t.target===this._element&&t.type==="click"?(this.close(),t.preventDefault(),t.stopPropagation()):t.target===document&&(t.type==="touchmove"||t.type==="scroll")&&(this.close(),t.preventDefault(),t.stopPropagation()))}};function vg(e,t,r){let i=null,s=null,c=!1,u=!1,k=!1;const j=new AbortController,Y=j.signal;return e.addEventListener("keydown",ce=>{if(c||ce.key==="Process"||ce.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(ce.code)){i=null;return}i=ce,s=null,r.onKeystroke(ce)?e.textContent="":i=null},{capture:!0,signal:Y}),e.addEventListener("keypress",ce=>{c||(i&&s&&r.onKeystroke(i),s=ce)},{capture:!0,signal:Y}),e.addEventListener("compositionstart",ce=>{e.textContent="",c=!0,r.onCompositionStart(ce.data)},{capture:!0,signal:Y}),e.addEventListener("compositionupdate",ce=>{c&&r.onCompositionUpdate(ce.data)},{capture:!0,signal:Y}),e.addEventListener("compositionend",ce=>{e.textContent="",c&&(c=!1,r.onCompositionEnd(ce.data))},{capture:!0,signal:Y}),e.addEventListener("beforeinput",ce=>ce.stopImmediatePropagation(),{signal:Y}),e.addEventListener("input",ce=>{var Pe;if(!c&&(e.textContent="",ce.inputType!=="insertCompositionText")){if(ce.inputType==="insertFromPaste"){ce.preventDefault(),ce.stopPropagation();return}r.onInput((Pe=ce.data)!=null?Pe:""),ce.preventDefault(),ce.stopPropagation()}},{signal:Y}),e.addEventListener("paste",ce=>{e.focus({preventScroll:!0}),e.textContent="",r.onPaste(ce)||ce.preventDefault(),ce.stopImmediatePropagation()},{signal:Y}),e.addEventListener("cut",ce=>r.onCut(ce),{capture:!0,signal:Y}),e.addEventListener("copy",ce=>r.onCopy(ce),{capture:!0,signal:Y}),e.addEventListener("blur",ce=>{var Pe,rt;if(((rt=(Pe=ce.relatedTarget)==null?void 0:Pe._mathfield)==null?void 0:rt.element)===t){e.focus({preventScroll:!0}),ce.preventDefault(),ce.stopPropagation();return}const gt=Hc.state;if(gt==="open"||gt==="opening"){ce.preventDefault(),ce.stopPropagation();return}if(ce.relatedTarget===ce.target.getRootNode().host){ce.preventDefault(),ce.stopPropagation();return}k||u||(k=!0,i=null,s=null,r.onBlur(),k=!1)},{capture:!0,signal:Y}),e.addEventListener("focus",ce=>{k||u||(u=!0,r.onFocus(),u=!1)},{capture:!0,signal:Y}),{dispose:()=>j.abort(),cancelComposition:()=>{c&&(e.blur(),requestAnimationFrame(()=>e.focus({preventScroll:!0})))},blur:()=>{typeof e.blur=="function"&&e.blur()},focus:()=>{!u&&typeof e.focus=="function"&&e.focus({preventScroll:!0})},hasFocus:()=>md()===e,setAriaLabel:ce=>e.setAttribute("aria-label",ce),setValue:ce=>{var Pe;e.textContent=ce,e.style.left="-1000px",(Pe=window.getSelection())==null||Pe.selectAllChildren(e)},moveTo:(ce,Pe)=>{e.style.top=`${Pe}px`,e.style.left=`${ce}px`}}}function Qh(e){var t;if(!e||!JA(e))return"";let r;return e.key==="Unidentified"&&e.target&&(r=e.target.value),r=(t=r!=null?r:e.key)!=null?t:e.code,/^(Dead|Return|Enter|Tab|Escape|Delete|PageUp|PageDown|Home|End|Help|ArrowLeft|ArrowRight|ArrowUp|ArrowDown)$/.test(r)&&(r=""),r}function Kh(e){e=pd(e);const t=[];return e.ctrlKey&&t.push("ctrl"),e.metaKey&&t.push("meta"),e.altKey&&t.push("alt"),e.shiftKey&&t.push("shift"),t.length===0?`[${e.code}]`:(t.push(`[${e.code}]`),t.join("+"))}function lm(e){if(N()){const t=ee(),r=e.startsWith("!"),i=e.endsWith(t);if(r&&!i||!r&&i)return!0}return e==="!other"?!1:e==="other"}function bg(e,t,r){if(e.length===0)return"";const i=Xa(ko(Kh(r))),s=Xa({key:r.key,shift:r.shiftKey,alt:r.altKey,ctrl:r.ctrlKey,meta:r.metaKey||r.ctrlKey&&/macos|ios/.test(ee()),cmd:!1,win:!1});for(let c=e.length-1;c>=0;c--)if((e[c].key===i||e[c].key===s)&&(!e[c].ifMode||e[c].ifMode===t))return e[c].command;return""}function Gm(e){let t=e;return E(t)&&(t=t.length>0?t[0]+"("+t.slice(1).join("")+")":""),t}function yg(e,t){let r=[];if(typeof t=="string"){const c=Gp[t];E(c)?r=c.slice():c&&r.push(c)}const i=Gm(t),s=new RegExp("^"+i.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const c of e)s.test(Gm(c.command))&&r.push(c.key);return r.map(uu)}function Xm(e,t){if(e.ifPlatform&&!/^!?(macos|windows|android|ios|chromeos|other)$/.test(e.ifPlatform))throw new Error(`Unexpected platform "${e.ifPlatform}" for keybinding ${e.key}`);if(e.ifLayout!==void 0&&(t.score===0||!e.ifLayout.includes(t.id)))return;const r=ko(e.key);let i=e.ifPlatform;if(r.cmd){if(i&&i!=="macos"&&i!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+i+`"
"cmd" modifier can only be used with macOS or iOS platform.`);i||(i=ee()==="ios"?"ios":"macos"),r.win=!1,r.cmd=!1,r.meta=!0}if(r.win){if(i&&i!=="windows")throw new Error('Unexpected "win" modifier with platform "'+i+`"
"win" modifier can only be used with Windows platform.`);i="windows",r.win=!1,r.cmd=!1,r.meta=!0}if(i&&!lm(i))return;if(/^\[.+\]$/.test(r.key))return I(g({},e),{key:Xa(r)});const s=_c(r.key,t);if(!s)return I(g({},e),{key:Xa(r)});if(s.shift&&r.shift||s.alt&&r.alt)throw new Error(`The keybinding ${e.key} (${cm(e.command)}) is conflicting with the key combination ${Xa(s)} using the ${t.displayName} keyboard layout`);return s.shift=s.shift||r.shift,s.alt=s.alt||r.alt,s.meta=r.meta,s.ctrl=r.ctrl,I(g({},e),{key:Xa(s)})}function cm(e){if(Array.isArray(e)){const t=[...e];return t.shift()+"("+t.map(r=>typeof r=="string"?`"${r}"`:r.toString()).join(", ")+")"}return e}function Jg(e,t){const r=[],i=[];for(const s of e)try{const c=Xm(s,t);if(!c)continue;const u=i.find(k=>k.key===c.key&&k.ifMode===c.ifMode);if(u)throw new Error(`Ambiguous key binding ${s.key} (${cm(s.command)}) matches ${u.key} (${cm(u.command)}) with the ${t.displayName} keyboard layout`);i.push(c)}catch(c){c instanceof Error&&r.push(c.message)}return[i,r]}var wg=class extends Ls{constructor(){super("latex")}createAtom(e){return new Nl(e)}onPaste(e,t){if(!t)return!1;const r=typeof t=="string"?t:t.getData("application/x-latex")||t.getData("text/plain");return r&&e.model.contentWillChange({inputType:"insertFromPaste",data:r})?(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r)&&(e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),Il(e)),e.startRecording(),!0):!1}insert(e,t,r){if(!e.contentWillChange({data:t,inputType:"insertText"}))return!1;r||(r={}),r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder");const{silenceNotifications:i}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const s=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Jl(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward");const c=[];for(const j of t)F.test(j)&&c.push(new Nl(j));let u=e.at(e.position);if(u instanceof _f&&(u=u.lastChild),!(u.parent instanceof _f)){const j=new _f("");u.parent.addChildAfter(j,u),u=j.firstChild}const k=u.parent.addChildrenAfter(c,u);return e.silenceNotifications=s,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(k)):k&&(e.position=e.offsetOf(k))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=i,!0}};function xg(e){return e.atoms.find(t=>t.type==="latexgroup")}function z0(e){var t,r;const i=e.atoms.find(s=>s.type==="latexgroup");return i?(r=(t=i.body)==null?void 0:t.filter(s=>s.type==="latex"))!=null?r:[]:[]}function Jm(e,t){var r;let i=0,s=!1;const c=Number.isFinite(t==null?void 0:t.before)?(r=t==null?void 0:t.before)!=null?r:0:e.lastOffset;for(;i<=c&&!s;){const j=e.at(i);s=j instanceof Nl&&j.isSuggestion,s||i++}if(!s)return[void 0,void 0];let u=i,k=!1;for(;u<=c&&!k;){const j=e.at(u);k=!(j instanceof Nl&&j.isSuggestion),k||u++}return[i-1,u-1]}new wg;function Am(e){const t=z0(e.model).filter(r=>r.isSuggestion);if(t.length!==0){e.model.position=e.model.offsetOf(t[0].leftSibling);for(const r of t)r.parent.removeChild(r)}}function Ep(e,t){var r;const{model:i}=e;Am(e);for(const ce of z0(i))ce.isError=!1;if(!i.selectionIsCollapsed||e.options.popoverPolicy==="off"){kA(e);return}const s=[];let c=i.at(i.position);for(;c&&c instanceof Nl&&/^[a-zA-Z\*]$/.test(c.value);)c=c.leftSibling;if(c&&c instanceof Nl&&c.value==="\\")for(s.push(c),c=c.rightSibling;c&&c instanceof Nl&&/^[a-zA-Z\*]$/.test(c.value);)s.push(c),c=c.rightSibling;const u=s.map(ce=>ce.value).join(""),k=ie(e,u);if(k.length===0){if(/^\\[a-zA-Z\*]+$/.test(u))for(const ce of s)ce.isError=!0;kA(e);return}const j=(r=t==null?void 0:t.atIndex)!=null?r:0;e.suggestionIndex=j<0?k.length-1:j%k.length;const Y=k[e.suggestionIndex];if(Y!==u){const ce=s[s.length-1];ce.parent.addChildrenAfter([...Y.slice(u.length-Y.length)].map(Pe=>new Nl(Pe,{isSuggestion:!0})),ce),jh(e,{interactive:!0})}qm(e,k)}function um(e){const[t,r]=Jm(e,{before:e.position});if(t===void 0||r===void 0)return!1;let i=!1;return e.getAtoms([t,r]).forEach(s=>{s.isSuggestion&&(s.isSuggestion=!1,i=!0)}),i}function Hh(e,t="accept",r){var i,s;kA(e);const c=xg(e.model);if(!c)return!1;if(t==="accept-suggestion"||t==="accept-all"){const Y=z0(e.model).filter(ce=>ce.isSuggestion);if(Y.length!==0){for(const ce of Y)ce.isSuggestion=!1;e.model.position=e.model.offsetOf(Y[Y.length-1])}if(t==="accept-suggestion")return Y.length!==0}const k=z0(e.model).filter(Y=>!Y.isSuggestion).map(Y=>Y.value).join(""),j=c.leftSibling;return c.parent.removeChild(c),e.model.position=e.model.offsetOf(j),e.switchMode((i=r==null?void 0:r.mode)!=null?i:"math"),t==="reject"||(Ls.insert(e.model,k,{selectionMode:(s=r==null?void 0:r.selectItem)!=null&&s?"item":"placeholder",format:"latex",mode:"math"}),e.snapshot(),e.model.announce("replacement"),e.switchMode("math")),!0}function _p(e){var t;let r=document.getElementById(e);return r?r.dataset.refcount=Number(Number.parseInt((t=r.dataset.refcount)!=null?t:"0")+1).toString():(r=document.createElement("div"),r.setAttribute("aria-hidden","true"),r.dataset.refcount="1",r.id=e,document.body.append(r)),r}function Ym(e){var t;const r=document.getElementById(e);if(!r)return;const i=Number.parseInt((t=r.getAttribute("data-refcount"))!=null?t:"0");i<=1?r.remove():r.dataset.refcount=Number(i-1).toString()}function Cg(e,t){const r=new So({from:e.context}),i=new Ur({mode:"math",type:"root",body:hc(t,{context:r})}),s=mf(sl(new zr(i.render(r),{classes:"ML__base"}),r));return Wf(s,{classes:"ML__latex"}).toMarkup()}function qm(e,t){var r;if(t.length===0){kA(e);return}let i="";for(const[c,u]of t.entries()){const k=u,j=Cg(e,u),Y=yg(e.keybindings,k).join("<br>");i+=`<li role="button" data-command="${k}" ${c===e.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${k}</span><span class="ML__popover__command">${j}</span>`,Y&&(i+=`<span class="ML__popover__keybinding">${Y}</span>`),i+="</li>"}const s=lh(e,`<ul>${i}</ul>`);du()&&((r=s.querySelector(".ML__popover__current"))==null||r.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var c;s&&!du()&&(s.classList.add("is-visible"),Ip(e),(c=s.querySelector(".ML__popover__current"))==null||c.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function du(){const e=document.getElementById("mathlive-suggestion-popover");return e?e.classList.contains("is-visible"):!1}function Ip(e,t){var r;if(!e.element||e.element.mathfield!==e||!du())return;if(((r=e.model.at(e.model.position))==null?void 0:r.type)!=="latex"){kA(e);return}if(t!=null&&t.deferred){setTimeout(()=>Ip(e),32);return}const i=th(e.field);if(!i)return;const s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerWidth-document.documentElement.clientWidth,k=window.innerHeight-document.documentElement.clientHeight,j=window.mathVirtualKeyboard.boundingRect.height,Y=document.getElementById("mathlive-suggestion-popover");i.x+Y.offsetWidth/2>c-u?Y.style.left=`${c-Y.offsetWidth-u}px`:i.x-Y.offsetWidth/2<0?Y.style.left="0":Y.style.left=`${i.x-Y.offsetWidth/2}px`;const ce=i.y-i.height;s-k-j-i.y<ce?(Y.classList.add("ML__popover--reverse-direction"),Y.classList.remove("top-tip"),Y.classList.add("bottom-tip"),Y.style.top=`${i.y-i.height-Y.offsetHeight-15}px`):(Y.classList.remove("ML__popover--reverse-direction"),Y.classList.add("top-tip"),Y.classList.remove("bottom-tip"),Y.style.top=`${i.y+15}px`)}function kA(e){e.suggestionIndex=0;const t=document.getElementById("mathlive-suggestion-popover");t&&(t.classList.remove("is-visible"),t.innerHTML="")}function lh(e,t){let r=document.getElementById("mathlive-suggestion-popover");return r||(r=_p("mathlive-suggestion-popover"),ud("suggestion-popover"),ud("core"),r.addEventListener("pointerdown",i=>i.preventDefault()),r.addEventListener("click",i=>{let s=i.target;for(;s&&!s.dataset.command;)s=s.parentElement;s&&(Hh(e,"reject"),Ls.insert(e.model,s.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),e.dirty=!0,e.focus())})),r.innerHTML=window.MathfieldElement.createHTML(t),r}function Yg(){document.getElementById("mathlive-suggestion-popover")&&(Ym("mathlive-suggestion-popover"),dd("suggestion-popover"),dd("core"))}function qg(){const e=String(new Error().stack).replace(/^Error.*\n/,"").split(`
`);if(e.length===0)return console.error(`Can't use relative paths to specify assets location because the sourcefile location could not be determined (unexpected stack trace format "${new Error().stack}").`),"";let t=e[1],r=t.match(/http.*\.ts[\?:]/);return r&&(t=e[2]),r=t.match(/(https?:.*):[0-9]+:[0-9]+/),r||(r=t.match(/at (.*(\.ts))[\?:]/),r||(r=t.match(/at (.*(\.mjs|\.js))[\?:]/))),r?r[1]:(console.error(e),console.error(`Can't use relative paths to specify assets location because the source file location could not be determined (unexpected location "${t}").`),"")}var fu=null,Bg,eg,dm=((eg=(Bg=globalThis==null?void 0:globalThis.document)==null?void 0:Bg.currentScript)==null?void 0:eg.src)||qg();function Sg(e){return hp(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(e))return new URL(e).href;if(fu===null)try{const t=yield fetch(dm,{method:"HEAD"});t.status===200&&(fu=t.url)}catch(t){console.error(`Invalid URL "${e}" (relative to "${dm}")`)}return new URL(e,fu!=null?fu:dm).href})}function e1(e,t,r={}){return new FontFace(e,`url(${t}.woff2) format('woff2')`,r)}var hu="not-loaded";function t1(){return hp(this,null,function*(){return hu="not-loaded",fm()})}function fm(){return hp(this,null,function*(){var e;if(hu!=="not-loaded")return;if(hu="loading",(e=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?e:!1){hu="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const r=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],i=Array.from(document.fonts).map(u=>u.family);if(r.every(u=>i.includes(u))){hu="ready";return}if(!window.MathfieldElement.fontsDirectory){hu="not-loaded";return}const s=yield Sg(window.MathfieldElement.fontsDirectory);if(!s){document.body.classList.add("ML__fonts-did-not-load"),hu="error";return}const c=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(u=>e1(u[0].replace(/-[a-zA-Z]+$/,""),`${s}/${u[0]}`,u[1]));try{(yield Promise.all(c.map(k=>{try{return k.load()}catch(j){}}))).forEach(k=>document.fonts.add(k)),hu="ready";return}catch(u){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${s}"`,{cause:u}),document.body.classList.add("ML__fonts-did-not-load")}hu="error"}})}function r1(e){let t=0;for(let r=0;r<e.length;r++)t=t*31+e.charCodeAt(r),t=t|0;return Math.abs(t)}function Il(e,t){e&&(e.dirty||(e.dirty=!0,requestAnimationFrame(()=>{cd(e)&&e.dirty&&(e.atomBoundsCache=new Map,jh(e,t),e.atomBoundsCache=void 0)})))}function Eg(e,t){var r;t=t!=null?t:{};const i=new So({from:I(g({},e.context),{atomIdsSettings:{seed:t.forHighlighting?r1(Ur.serialize([e.model.root],{expandMacro:!1,defaultMode:e.options.defaultMode})):"random",groupNumbers:(r=t.forHighlighting)!=null?r:!1},letterShapeStyle:e.options.letterShapeStyle}),mathstyle:e.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),s=e.model.root.render(i);return Wf(sl(s,i),{classes:e.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function _g(e,t){const{model:r}=e;r.root.caret=void 0,r.root.isSelected=!1,r.root.containsCaret=!0;for(const s of r.atoms)s.caret=void 0,s.isSelected=!1,s.containsCaret=!1;if(r.selectionIsCollapsed){const s=r.at(r.position);s.caret=e.model.mode;let c=s.parent;for(;c;)c.containsCaret=!0,c=c.parent}else{const s=r.getAtoms(r.selection,{includeChildren:!0});for(const c of s)c.isSelected=!0}return Eg(e,t).toMarkup()}function jh(e,t){if(!cd(e))return;t!=null||(t={});const r=e.element.querySelector("[part=virtual-keyboard-toggle]");r&&(r.style.display=e.hasEditableContent?"":"none");const i=e.field;if(!i)return;const s=e.isSelectionEditable&&e.hasFocus(),c=i.classList.contains("ML__focused");c&&!s?i.classList.remove("ML__focused"):!c&&s&&i.classList.add("ML__focused");let u=_g(e,t);const k=e.element.querySelector("[part=menu-toggle]");if(k&&(e.model.atoms.length<=1||e.disabled||e.readOnly&&!e.hasEditableContent||e.userSelect==="none"?k.style.display="none":k.style.display=""),e.model.atoms.length<=1){const j=e.options.contentPlaceholder;j&&(u+=`<span part=placeholder class="ML__content-placeholder">${Ul(j)}</span>`)}i.innerHTML=window.MathfieldElement.createHTML(u),hm(e,t.interactive),e.dirty=!1}function hm(e,t){const r=e.field;if(!r)return;for(const k of r.querySelectorAll(".ML__selection, .ML__contains-highlight"))k.remove();!(t!=null&&t)&&hu!=="error"&&hu!=="ready"&&setTimeout(()=>{hu==="ready"?hm(e):setTimeout(()=>hm(e),128)},32);const i=e.model,s=r.offsetWidth,c=r.getBoundingClientRect().width;let u=Math.floor(c)/s;if(u=isNaN(u)?1:u,i.selectionIsCollapsed){Ip(e,{deferred:!0});let k=i.at(i.position);for(;k&&k.type!=="prompt"&&!(k.containsCaret&&k.displayContainsHighlight);)k=k.parent;if(k!=null&&k.containsCaret&&k.displayContainsHighlight){const j=rh(e,nh(e,k),u);if(j){j.left/=u,j.right/=u,j.top/=u,j.bottom/=u;const Y=document.createElement("div");Y.classList.add("ML__contains-highlight"),Y.style.position="absolute",Y.style.left=`${j.left+1}px`,Y.style.top=`${Math.ceil(j.top)}px`,Y.style.width=`${Math.ceil(j.right-j.left)}px`,Y.style.height=`${Math.ceil(j.bottom-j.top)}px`,r.insertBefore(Y,r.childNodes[0])}}return}for(const k of n1(Rm(e,{excludeAtomsWithBackground:!0}))){k.left/=u,k.right/=u,k.top/=u,k.bottom/=u;const j=document.createElement("div");j.classList.add("ML__selection"),j.style.position="absolute",j.style.left=`${k.left}px`,j.style.top=`${k.top}px`,j.style.width=`${Math.ceil(k.right-k.left)}px`,j.style.height=`${Math.ceil(k.bottom-k.top-1)}px`,r.insertBefore(j,r.childNodes[0])}}function n1(e){let t=[];for(const r of e){let i=!1;for(const s of t)if(r.left===s.left&&r.right===s.right&&r.top===s.top&&r.bottom===s.bottom){i=!0;break}i||t.push(r)}e=t,t=[];for(const r of e){let i=0;for(const s of e)if(r.left>=s.left&&r.right<=s.right&&r.top>=s.top&&r.bottom<=s.bottom&&(i+=1,i>1))break;i===1&&t.push(r)}return t}var Ig=3,n;function o(e,t){t=g({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},t!=null?t:{}),n||(n={});for(const r of Object.keys(e))console.assert(!n[r],"Selector already defined: ",r),n[r]=I(g({},t),{fn:e[r]})}function a(e){let t;if(Array.isArray(e)){if(e[0]==="performWithFeedback")return a(e[1]);t=e[0]}else t=e;return t=t.replace(/-\w/g,r=>r[1].toUpperCase()),n[t]}function l(e){var t;return(t=a(e))==null?void 0:t.target}function A(e,t){var r;if(!t)return!1;let i,s=[],c=!1,u=!1;E(t)?(i=t[0],s=t.slice(1)):i=t,i=i.replace(/-\w/g,Y=>Y[1].toUpperCase());const k=n[i],j=k==null?void 0:k.target;if(j==="model"){if(!e.isSelectionEditable&&(k!=null&&k.changeContent))return e.model.announce("plonk"),!1;/^(delete|add)/.test(i)&&(i!=="deleteBackward"&&e.flushInlineShortcutBuffer(),e.snapshot(i)),/^complete/.test(i)||Am(e),n[i].fn(e.model,...s),Ep(e),u=!0,c=!0}else if(j==="virtual-keyboard")u=(r=window.mathVirtualKeyboard.executeCommand(t))!=null?r:!1,c=!0;else if(n[i]){if(!e.isSelectionEditable&&(k!=null&&k.changeContent))return e.model.announce("plonk"),!1;/^(undo|redo)/.test(i)&&e.flushInlineShortcutBuffer(),u=n[i].fn(e,...s),c=!0}else throw new Error(`Unknown command "${i}"`);return j!=="virtual-keyboard"&&(!e.model.selectionIsCollapsed||k!=null&&k.changeSelection&&t!=="deleteBackward")&&(e.flushInlineShortcutBuffer(),k!=null&&k.changeContent||e.stopCoalescingUndo(),e.defaultStyle={}),u&&Il(e),c}function p(e,t){var r;if(!e)return!1;e.focus(),Tg.keypressVibration&&L()&&navigator.vibrate(Ig);const i=a(t);window.MathfieldElement.playSound((r=i==null?void 0:i.audioFeedback)!=null?r:"keypress");const s=e.executeCommand(t);return e.scrollIntoView(),s}o({performWithFeedback:(e,t)=>p(e,t)});function O(e){return Ep(e,{atIndex:e.suggestionIndex+1}),!1}function _(e){return Ep(e,{atIndex:e.suggestionIndex-1}),!1}o({complete:Hh},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),o({nextSuggestion:O,previousSuggestion:_},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var U="mathlive#virtual-keyboard-message";function Z(e){var t;return e.type!=="message"?!1:((t=e.data)==null?void 0:t.type)===U}var oe=class Av{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new Av),this._singleton}set alphabeticLayout(t){this.sendMessage("update-setting",{alphabeticLayout:t})}set layouts(t){this.sendMessage("update-setting",{layouts:t})}get normalizedLayouts(){return[]}set editToolbar(t){this.sendMessage("update-setting",{editToolbar:t})}set actionKeycap(t){this.sendMessage("update-setting",{actionKeycap:t})}set shiftKeycap(t){this.sendMessage("update-setting",{shiftKeycap:t})}set backspaceKeycap(t){this.sendMessage("update-setting",{backspaceKeycap:t})}set tabKeycap(t){this.sendMessage("update-setting",{tabKeycap:t})}set container(t){throw new Error("Container inside an iframe cannot be changed")}show(t){this.sendMessage("show",t)}hide(t){this.sendMessage("hide",t)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(t){t?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(t){return this.sendMessage("execute-command",{command:t}),!0}updateToolbar(t){this.sendMessage("update-toolbar",t)}update(t){this.sendMessage("update-setting",t)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(t,r,i){this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].has(r)||this.listeners[t].add(r)}dispatchEvent(t){return!this.listeners[t.type]||this.listeners[t.type].size===0?!0:(this.listeners[t.type].forEach(r=>{typeof r=="function"?r(t):r==null||r.handleEvent(t)}),!t.defaultPrevented)}removeEventListener(t,r,i){this.listeners[t]&&this.listeners[t].delete(r)}handleEvent(t){if(Z(t)){if(!kh(t.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${t.origin}) cannot be handled`,"SecurityError");this.handleMessage(t.data)}}handleMessage(t){const{action:r}=t;if(r==="execute-command"){const{command:i}=t;l(i)==="virtual-keyboard"&&this.executeCommand(i);return}if(r==="synchronize-proxy"){this._boundingRect=t.boundingRect,this._isShifted=t.isShifted;return}if(r==="geometry-changed"){this._boundingRect=t.boundingRect,this.dispatchEvent(new Event("geometrychange"));return}}sendMessage(t,r={}){if(!window.top)throw new DOMException("A frame does not have access to the top window and can\u2018t communicate with the keyboard. Review virtualKeyboardTargetOrigin and originValidator on mathfields embedded in an iframe","SecurityError");window.top.postMessage(g({type:U,action:t},r),this.targetOrigin)}},Re={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"&alpha;&beta;&gamma;",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>&#x03c6;</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>&#x03c2;</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>&#x03f5;</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>&rho;</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>&tau;</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>&upsilon;</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>&theta;</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>&iota;</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>&omicron;</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>&pi;</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>&alpha;</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>&sigma;</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>&delta;</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>&gamma;</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>&eta;</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>&xi;</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>&kappa;</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>&lambda;</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>&zeta;</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>&chi;</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>&psi;</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>&omega;</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>&beta;</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>&nu;</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>&mu;</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>&#x03b5;</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>&#x03d1;</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>&#x3f0;</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>&#x03d6;</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>&#x03f1;</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"&infin;\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
.minimalist-backdrop {
display: flex;
justify-content: center;
}
.minimalist-container {
--keycap-height: 40px;
--keycap-max-width: 53px;
--keycap-small-font-size: 12px;
background: var(--keyboard-background);
padding: 20px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border: 1px solid var(--keyboard-border);
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
}
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},ze={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},ae;function mt(e,t){var r,i,s;const c=Qr.singleton;if(!c)return;const u=Mr(e),k=(i=(r=c.getKeycap(u==null?void 0:u.id))==null?void 0:r.variants)!=null?i:"";if(typeof k=="string"&&!ot(k)||Array.isArray(k)&&k.length===0){t==null||t();return}const j={};let Y="";for(const Br of Gt(k)){const In=En(Br),wr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);j[wr]=In;const[nn,kn]=Gr(In);Y+=`<div id=${wr} class="item ${kn}">${nn}</div>`}const ce=document.createElement("div");ce.setAttribute("aria-hidden","true"),ce.className="MLK__variant-panel",ce.style.height="auto";const Pe=Object.keys(j).length;let rt=5;Pe===1?rt=1:Pe===2||Pe===4?rt=2:Pe===3||Pe===5||Pe===6?rt=3:Pe>=7&&Pe<14&&(rt=4),ce.style.width=`calc(var(--variant-keycap-length) * ${rt} + 12px)`,ce.innerHTML=Tg.createHTML(Y),Hc.open({root:(s=c==null?void 0:c.container)==null?void 0:s.querySelector(".ML__keyboard"),child:ce}),ae=new AbortController;const{signal:gt}=ae,Et=e==null?void 0:e.getBoundingClientRect();if(Et){Et.top-ce.clientHeight<0&&(ce.style.width="auto",Pe<=6?ce.style.height="56px":Pe<=12?ce.style.height="108px":Pe<=18?ce.style.height="205px":ce.classList.add("compact"));const Br=Math.max(0,Math.min(window.innerWidth-ce.offsetWidth,(Et.left+Et.right-ce.offsetWidth)/2)),In=Et.top-ce.clientHeight+5;ce.style.transform=`translate(${Br}px, ${In}px)`,ce.classList.add("is-visible"),requestAnimationFrame(()=>{ce.addEventListener("pointerup",wr=>{const nn=Mr(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||(Jt(j[nn.id]),ut(),t==null||t(),wr.preventDefault())},{capture:!0,passive:!1,signal:gt}),ce.addEventListener("pointerenter",wr=>{const nn=Mr(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||nn.classList.add("is-active")},{capture:!0,signal:gt}),ce.addEventListener("pointerleave",wr=>{const nn=Mr(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||nn.classList.remove("is-active")},{capture:!0,signal:gt}),window.addEventListener("pointercancel",()=>{ut(),t==null||t()},{signal:gt}),window.addEventListener("pointerup",()=>{ut(),t==null||t()},{signal:gt})})}}function ut(){ae==null||ae.abort(),ae=null,Hc.state==="open"&&Hc.close()}function bt(e){if(e==="foreground-color"){const t=[];for(const r of Object.keys(fe))t.push({class:"swatch-button",label:'<span style="border: 3px solid '+fe[r]+'"></span>',command:["applyStyle",{color:r}]});return t}if(e==="background-color"){const t=[];for(const r of Object.keys(se))t.push({class:"swatch-button",label:'<span style="background:'+se[r]+'"></span>',command:["applyStyle",{backgroundColor:r}]});return t}}function ot(e){return ze[e]!==void 0}function Gt(e){var t;return typeof e!="string"?e:(ze[e]||(ze[e]=(t=bt(e))!=null?t:[]),ze[e])}function Rt(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r} !important`).join(";")}function It(e){return Object.keys(e).map(t=>`${t} {${Rt(e[t])}}`).join("")}function kr(e){if(!e)return"";const t=new So,r=new Ur({mode:"math",type:"root",body:hc(e,{context:t,args:s=>s==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),i=mf(sl(new zr(r.render(t),{classes:"ML__base"}),t));return Wf(i,{classes:"ML__latex"}).toMarkup()}function rn(e){var t;if(Array.isArray(e))return e.map(i=>rn(i)).flat();const r=typeof e=="string"?{markup:e}:e;return"rows"in r&&Array.isArray(r.rows)&&(r.rows=r.rows.map(i=>i.map(s=>En(s)))),(t=r.id)!=null||(r.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[r]}function Wr(){var e,t;let i=window.mathVirtualKeyboard.alphabeticLayout;if(i==="auto"){const k=Au();k&&(i=k.virtualLayout),(!i||i==="auto")&&(i=(e={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[X.locale.slice(0,2)])!=null?e:"qwerty")}const s={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},c=(t=s[i])!=null?t:s.qwerty,u=i==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const k of c){const j=[];for(const Y of k)/[a-z]/.test(Y)?j.push({label:Y,class:"hide-shift",shift:{label:Y.toUpperCase()},variants:ot(Y)?Y:void 0}):Y==="~"?i!=="dvorak"?j.push("[backspace]"):j.push({label:"[backspace]",width:1}):Y==="^"?j.push("[shift]"):Y===" "&&j.push("[separator-5]");u.push(j)}return u.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:rn({rows:u})}}function ir(e){if(e==="alphabetic")return Wr();if(typeof e=="string")return console.assert(Re[e]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${e}"`),ir(Re[e]);let t;if("rows"in e&&Array.isArray(e.rows)){console.assert(!("layers"in e||"markup"in e),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const s=e,{rows:c}=s,u=z(s,["rows"]);t=I(g({},u),{layers:rn({rows:e.rows})})}else if("markup"in e&&typeof e.markup=="string"){const s=e,{markup:c}=s,u=z(s,["markup"]);t=I(g({},u),{layers:rn(e.markup)})}else t=g({},e),"layers"in e?t.layers=rn(e.layers):console.error('MathLive 0.98.5: provide either a "rows", "markup" or "layers" property');let r=!1,i=!1;for(const s of t.layers)if(s.rows)for(const c of s.rows.flat()){$r(c)&&(r=!0);const u=c.command;typeof u=="string"&&["undo","redo","cut","copy","paste"].includes(u)&&(i=!0)}return(!("displayShiftedKeycaps"in e)||e.displayShiftedKeycaps===void 0)&&(t.displayShiftedKeycaps=r),(!("displayEditToolbar"in e)||e.displayEditToolbar===void 0)&&(t.displayEditToolbar=!i),t}function Mt(e,t){var r,i;let s='<div class="left">';if(e.normalizedLayouts.length>1)for(const[c,u]of e.normalizedLayouts.entries()){const k=u,j=[c===t?"selected":"layer-switch"];k.tooltip&&j.push("MLK__tooltip"),k.labelClass&&j.push(...k.labelClass.split(" ")),s+=`<div class="${j.join(" ")}"`,k.tooltip&&(s+=" data-tooltip='"+((r=q(k.tooltip))!=null?r:k.tooltip)+"' "),c!==t&&(s+=`data-layer="${k.layers[0].id}"`),s+=`>${(i=k.label)!=null?i:"untitled"}</div>`}return s+="</div>",s}function xr(e,t){let r="";if(e.editToolbar==="none")return"";const s=[];t.selectionIsCollapsed?s.push("undo","redo","pasteFromClipboard"):s.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const c={undo:`<div class='action ${t.canUndo===!1?"disabled":""}'
data-command='"undo"'
data-tooltip='${q("tooltip.undo")}'>
<svg><use xlink:href='#svg-undo' /></svg>
</div>`,redo:`<div class='action ${t.canRedo===!1?"disabled":""}'
data-command='"redo"'
data-tooltip='${q("tooltip.redo")}'>
<svg><use xlink:href='#svg-redo' /></svg>
</div>`,cutToClipboard:`
<div class='action'
data-command='"cutToClipboard"'
data-tooltip='${q("tooltip.cut to clipboard")}'>
<svg><use xlink:href='#svg-cut' /></svg>
</div>
`,copyToClipboard:`
<div class='action'
data-command='"copyToClipboard"'
data-tooltip='${q("tooltip.copy to clipboard")}'>
<svg><use xlink:href='#svg-copy' /></svg>
</div>
`,pasteFromClipboard:`
<div class='action'
data-command='"pasteFromClipboard"'
data-tooltip='${q("tooltip.paste from clipboard")}'>
<svg><use xlink:href='#svg-paste' /></svg>
</div>
`};return r+=s.map(u=>c[u]).join(""),r}function nt(e){for(const t of e)yt(t)}function yt(e){const t=Qr.singleton;if(!t)return;const r={};if(!e.id){if(e.hasAttribute("data-label")&&(r.label=e.dataset.label),e.hasAttribute("data-latex")&&(r.latex=e.dataset.latex),e.hasAttribute("data-key")&&(r.key=e.dataset.key),e.hasAttribute("data-insert")&&(r.insert=e.dataset.insert),e.hasAttribute("data-variants")&&(r.variants=e.dataset.variants),e.hasAttribute("data-aside")&&(r.aside=e.dataset.aside),e.className&&(r.class=e.className),!r.label&&!r.latex&&!r.key&&!r.insert&&(r.latex=e.innerText,r.label=e.innerHTML),e.hasAttribute("data-command"))try{r.command=JSON.parse(e.dataset.command)}catch(i){}e.id=t.registerKeycap(r)}if(!e.innerHTML){const[i,s]=Gr(r);e.innerHTML=window.MathfieldElement.createHTML(i)}}function Wt(){ud("virtual-keyboard"),ud("core"),fm()}function Ht(){dd("core"),dd("virtual-keyboard")}var Tr=`<svg xmlns="http://www.w3.org/2000/svg" style="display: none;">
<symbol id="svg-delete-backward" viewBox="0 0 576 512">
<path d="M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z"/>
</symbol>
<symbol id="svg-shift" viewBox="0 0 384 512">
<path d="M2.438 252.3C7.391 264.2 19.06 272 32 272h80v160c0 26.51 21.49 48 48 48h64C250.5 480 272 458.5 272 432v-160H352c12.94 0 24.61-7.797 29.56-19.75c4.953-11.97 2.219-25.72-6.938-34.88l-160-176C208.4 35.13 200.2 32 192 32S175.6 35.13 169.4 41.38l-160 176C.2188 226.5-2.516 240.3 2.438 252.3zM192 86.63L313.4 224H224v208H160V224H70.63L192 86.63z"/>
</symbol>
<symbol id="svg-commit" viewBox="0 0 512 512">
<path d="M135 432.1l-128-128C2.344 300.3 0 294.2 0 288s2.344-12.28 7.031-16.97l128-128c9.375-9.375 24.56-9.375 33.94 0s9.375 24.56 0 33.94L81.94 264H464v-208C464 42.75 474.8 32 488 32S512 42.75 512 56V288c0 13.25-10.75 24-24 24H81.94l87.03 87.03c9.375 9.375 9.375 24.56 0 33.94S144.4 442.3 135 432.1z"/>
</symbol>
<symbol id="circle-plus" viewBox="0 0 512 512"><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344c0 13.3 10.7 24 24 24s24-10.7 24-24V280h64c13.3 0 24-10.7 24-24s-10.7-24-24-24H280V168c0-13.3-10.7-24-24-24s-24 10.7-24 24v64H168c-13.3 0-24 10.7-24 24s10.7 24 24 24h64v64z"/></symbol>
<symbol id="svg-command" viewBox="0 0 640 512">
<path d="M34.495 36.465l211.051 211.05c4.686 4.686 4.686 12.284 0 16.971L34.495 475.535c-4.686 4.686-12.284 4.686-16.97 0l-7.071-7.07c-4.686-4.686-4.686-12.284 0-16.971L205.947 256 10.454 60.506c-4.686-4.686-4.686-12.284 0-16.971l7.071-7.07c4.686-4.687 12.284-4.687 16.97 0zM640 468v-10c0-6.627-5.373-12-12-12H300c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h328c6.627 0 12-5.373 12-12z"/>
</symbol>
<symbol id="svg-undo" viewBox="0 0 512 512">
<path d="M20 8h10c6.627 0 12 5.373 12 12v110.625C85.196 57.047 165.239 7.715 256.793 8.001 393.18 8.428 504.213 120.009 504 256.396 503.786 393.181 392.834 504 256 504c-63.926 0-122.202-24.187-166.178-63.908-5.113-4.618-5.354-12.561-.482-17.433l7.069-7.069c4.503-4.503 11.749-4.714 16.482-.454C150.782 449.238 200.935 470 256 470c117.744 0 214-95.331 214-214 0-117.744-95.331-214-214-214-82.862 0-154.737 47.077-190.289 116H180c6.627 0 12 5.373 12 12v10c0 6.627-5.373 12-12 12H20c-6.627 0-12-5.373-12-12V20c0-6.627 5.373-12 12-12z"/>
</symbol>
<symbol id="svg-redo" viewBox="0 0 512 512">
<path d="M492 8h-10c-6.627 0-12 5.373-12 12v110.625C426.804 57.047 346.761 7.715 255.207 8.001 118.82 8.428 7.787 120.009 8 256.396 8.214 393.181 119.166 504 256 504c63.926 0 122.202-24.187 166.178-63.908 5.113-4.618 5.354-12.561.482-17.433l-7.069-7.069c-4.503-4.503-11.749-4.714-16.482-.454C361.218 449.238 311.065 470 256 470c-117.744 0-214-95.331-214-214 0-117.744 95.331-214 214-214 82.862 0 154.737 47.077 190.289 116H332c-6.627 0-12 5.373-12 12v10c0 6.627 5.373 12 12 12h160c6.627 0 12-5.373 12-12V20c0-6.627-5.373-12-12-12z"/>
</symbol>
<symbol id="svg-arrow-left" viewBox="0 0 320 512">
<path d="M206.7 464.6l-183.1-191.1C18.22 267.1 16 261.1 16 256s2.219-11.97 6.688-16.59l183.1-191.1c9.152-9.594 24.34-9.906 33.9-.7187c9.625 9.125 9.938 24.37 .7187 33.91L73.24 256l168 175.4c9.219 9.5 8.906 24.78-.7187 33.91C231 474.5 215.8 474.2 206.7 464.6z"/>
</symbol>
<symbol id="svg-arrow-right" viewBox="0 0 320 512">
<path d="M113.3 47.41l183.1 191.1c4.469 4.625 6.688 10.62 6.688 16.59s-2.219 11.97-6.688 16.59l-183.1 191.1c-9.152 9.594-24.34 9.906-33.9 .7187c-9.625-9.125-9.938-24.38-.7187-33.91l168-175.4L78.71 80.6c-9.219-9.5-8.906-24.78 .7187-33.91C88.99 37.5 104.2 37.82 113.3 47.41z"/>
</symbol>
<symbol id="svg-tab" viewBox="0 0 448 512">
<path d="M32 217.1c0-8.8 7.2-16 16-16h144v-93.9c0-7.1 8.6-10.7 13.6-5.7l143.5 143.1c6.3 6.3 6.3 16.4 0 22.7L205.6 410.4c-5 5-13.6 1.5-13.6-5.7v-93.9H48c-8.8 0-16-7.2-16-16v-77.7m-32 0v77.7c0 26.5 21.5 48 48 48h112v61.9c0 35.5 43 53.5 68.2 28.3l143.6-143c18.8-18.8 18.8-49.2 0-68L228.2 78.9c-25.1-25.1-68.2-7.3-68.2 28.3v61.9H48c-26.5 0-48 21.6-48 48zM436 64h-8c-6.6 0-12 5.4-12 12v360c0 6.6 5.4 12 12 12h8c6.6 0 12-5.4 12-12V76c0-6.6-5.4-12-12-12z"/>
</symbol>
<symbol id="svg-paste" viewBox="0 0 512 512"><path d="M160 32c11.6 0 21.3 8.2 23.5 19.2C185 58.6 191.6 64 199.2 64H208c8.8 0 16 7.2 16 16V96H96V80c0-8.8 7.2-16 16-16h8.8c7.6 0 14.2-5.4 15.7-12.8C138.7 40.2 148.4 32 160 32zM64 64h2.7C65 69 64 74.4 64 80V96c0 17.7 14.3 32 32 32H224c17.7 0 32-14.3 32-32V80c0-5.6-1-11-2.7-16H256c17.7 0 32 14.3 32 32h32c0-35.3-28.7-64-64-64H210.6c-9-18.9-28.3-32-50.6-32s-41.6 13.1-50.6 32H64C28.7 32 0 60.7 0 96V384c0 35.3 28.7 64 64 64H192V416H64c-17.7 0-32-14.3-32-32V96c0-17.7 14.3-32 32-32zM288 480c-17.7 0-32-14.3-32-32V192c0-17.7 14.3-32 32-32h96v56c0 22.1 17.9 40 40 40h56V448c0 17.7-14.3 32-32 32H288zM416 165.3L474.7 224H424c-4.4 0-8-3.6-8-8V165.3zM448 512c35.3 0 64-28.7 64-64V235.9c0-12.7-5.1-24.9-14.1-33.9l-59.9-59.9c-9-9-21.2-14.1-33.9-14.1H288c-35.3 0-64 28.7-64 64V448c0 35.3 28.7 64 64 64H448z"/></symbol>
<symbol id="svg-cut" viewBox="0 0 512 512"><path d="M485.6 444.2L333.6 314.9C326.9 309.2 326.1 299.1 331.8 292.4C337.5 285.6 347.6 284.8 354.4 290.5L506.4 419.8C513.1 425.5 513.9 435.6 508.2 442.4C502.5 449.1 492.4 449.9 485.6 444.2zM485.7 67.76C492.5 62.07 502.5 62.94 508.2 69.69C513.9 76.45 513.1 86.55 506.3 92.24L208.5 343.1C218.3 359.7 224 379.2 224 400C224 461.9 173.9 512 112 512C50.14 512 0 461.9 0 400C0 338.1 50.14 288 112 288C141.5 288 168.4 299.4 188.4 318.1L262.2 256L188.4 193.9C168.4 212.6 141.5 224 112 224C50.14 224 0 173.9 0 112C0 50.14 50.14 0 112 0C173.9 0 224 50.14 224 112C224 132.8 218.3 152.3 208.5 168.9L287 235.1L485.7 67.76zM32 112C32 156.2 67.82 192 112 192C156.2 192 192 156.2 192 112C192 67.82 156.2 32 112 32C67.82 32 32 67.82 32 112zM112 480C156.2 480 192 444.2 192 400C192 355.8 156.2 320 112 320C67.82 320 32 355.8 32 400C32 444.2 67.82 480 112 480z"/></symbol>
<symbol id="svg-copy" viewBox="0 0 512 512"><path d="M272 416C263.2 416 256 423.2 256 432V448c0 17.67-14.33 32-32 32H64c-17.67 0-32-14.33-32-32V192c0-17.67 14.33-32 32-32h112C184.8 160 192 152.8 192 144C192 135.2 184.8 128 176 128H63.99c-35.35 0-64 28.65-64 64l.0098 256C0 483.3 28.65 512 64 512h160c35.35 0 64-28.65 64-64v-16C288 423.2 280.8 416 272 416zM502.6 86.63l-77.25-77.25C419.4 3.371 411.2 0 402.7 0H288C252.7 0 224 28.65 224 64v256c0 35.35 28.65 64 64 64h160c35.35 0 64-28.65 64-64V109.3C512 100.8 508.6 92.63 502.6 86.63zM416 45.25L466.7 96H416V45.25zM480 320c0 17.67-14.33 32-32 32h-160c-17.67 0-32-14.33-32-32V64c0-17.67 14.33-32 32-32h96l.0026 64c0 17.67 14.33 32 32 32H480V320z"/>
</symbol>
<symbol id="svg-angle-double-right" viewBox="0 0 512 512"><path d="M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"/>
</symbol>
<symbol id="svg-angle-double-left" viewBox="0 0 512 512"><path d="M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"/>
</symbol>
<symbol id="svg-trash" viewBox="0 0 448 512">
<path d="M336 64l-33.6-44.8C293.3 7.1 279.1 0 264 0h-80c-15.1 0-29.3 7.1-38.4 19.2L112 64H24C10.7 64 0 74.7 0 88v2c0 3.3 2.7 6 6 6h26v368c0 26.5 21.5 48 48 48h288c26.5 0 48-21.5 48-48V96h26c3.3 0 6-2.7 6-6v-2c0-13.3-10.7-24-24-24h-88zM184 32h80c5 0 9.8 2.4 12.8 6.4L296 64H152l19.2-25.6c3-4 7.8-6.4 12.8-6.4zm200 432c0 8.8-7.2 16-16 16H80c-8.8 0-16-7.2-16-16V96h320v368zm-176-44V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm-80 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12zm160 0V156c0-6.6 5.4-12 12-12h8c6.6 0 12 5.4 12 12v264c0 6.6-5.4 12-12 12h-8c-6.6 0-12-5.4-12-12z"/>
</symbol>
<symbol id="svg-keyboard-down" viewBox="0 0 576 512"><path d="M64 48c-8.8 0-16 7.2-16 16V240c0 8.8 7.2 16 16 16H512c8.8 0 16-7.2 16-16V64c0-8.8-7.2-16-16-16H64zM0 64C0 28.7 28.7 0 64 0H512c35.3 0 64 28.7 64 64V240c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64zM159 359c9.4-9.4 24.6-9.4 33.9 0l95 95 95-95c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9L305 505c-4.5 4.5-10.6 7-17 7s-12.5-2.5-17-7L159 393c-9.4-9.4-9.4-24.6 0-33.9zm1-167c0-8.8 7.2-16 16-16H400c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H176c-8.8 0-16-7.2-16-16V192zM120 88h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H120c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H200c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H280c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16zm64 16c0-8.8 7.2-16 16-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H360c-8.8 0-16-7.2-16-16V104zm96-16h16c8.8 0 16 7.2 16 16v16c0 8.8-7.2 16-16 16H440c-8.8 0-16-7.2-16-16V104c0-8.8 7.2-16 16-16z"/></symbol>
</svg>`;function Zr(e){e.resetKeycapRegistry(),Wt();const t=document.createElement("div");t.className="ML__keyboard";const r=document.createElement("div");r.className="MLK__plate",r.innerHTML=window.MathfieldElement.createHTML(Tr+e.normalizedLayouts.map((u,k)=>Jr(e,u,k)).join(""));const i=document.createElement("div");i.className="MLK__backdrop",i.appendChild(r),t.appendChild(i),t.addEventListener("pointerdown",_t,{passive:!1});const s=t.querySelectorAll(".ML__edit-toolbar");if(s)for(const u of s)u.addEventListener("click",k=>{var j,Y;let ce=k.target,Pe="";for(;ce&&!Pe;)Pe=(j=ce==null?void 0:ce.getAttribute("data-command"))!=null?j:"",ce=(Y=ce==null?void 0:ce.parentElement)!=null?Y:null;Pe&&e.executeCommand(JSON.parse(Pe))});nt(t.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const c=t.querySelectorAll(".MLK__layer");console.assert(c.length>0,"No virtual keyboards available");for(const u of c)u.addEventListener("pointerdown",k=>k.preventDefault());return e.currentLayer=e.latentLayer,t}function Jr(e,t,r){const i=[];if(!("layers"in t))return"";for(const s of t.layers)i.push(`<div tabindex="-1" class="MLK__layer" id="${s.id}">`),(e.normalizedLayouts.length>1||t.displayEditToolbar)&&(i.push("<div class='MLK__toolbar' role='toolbar'>"),i.push(Mt(e,r)),t.displayEditToolbar&&i.push('<div class="ML__edit-toolbar right"></div>'),i.push("</div>")),i.push(Or(e,s)),i.push("</div>");return i.join("")}function Or(e,t){if(typeof t=="string")return t;let r="";if(typeof t.style=="string"?r+=`<style>${t.style}</style>`:typeof t.style=="object"&&(r+=`<style>${It(t.style)}</style>`),t.backdrop&&(r+=`<div class='${t.backdrop}'>`),t.container&&(r+=`<div class='${t.container}'>`),t.rows){r+="<div class=MLK__rows>";for(const i of t.rows){r+="<div dir='ltr' class=MLK__row>";for(const s of i)if(s){const c=e.registerKeycap(s),[u,k]=Gr(s);/(^|\s)separator/.test(k)?r+=`<div class="${k}"`:r+=`<div tabindex="-1" id="${c}" class="${k}"`,s.tooltip&&(r+=` data-tooltip="${s.tooltip}"`),r+=`>${u}</div>`}r+="</div>"}r+="</div>"}else t.markup&&(r+=t.markup);return t.container&&(r+="</div>"),t.backdrop&&(r+="</div>"),r}function Gr(e,t={shifted:!1}){var r,i,s,c,u,k,j;let Y="",ce=(r=e.class)!=null?r:"";if(t.shifted&&$r(e)&&(ce+=" is-active"),t.shifted&&"shift"in e)typeof e.shift=="string"?Y=kr(e.shift):typeof e.shift=="object"&&(Y=e.shift.label?e.shift.label:(i=kr(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?i:""),typeof e.shift=="object"&&(ce=(c=(s=e.shift.class)!=null?s:e.class)!=null?c:"");else{if(Y=e.label?e.label:(u=kr(e.latex||e.insert||"")||e.key)!=null?u:"",e.shift){let Pe;typeof e.shift=="string"?Pe=kr(e.shift):e.shift.label?Pe=e.shift.label:Pe=(k=kr(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?k:"",Y+=`<span class="MLK__shift">${Pe}</span>`}e.aside&&(Y+=`<aside>${e.aside}</aside>`)}return e.layer&&!/layer-switch/.test(ce)&&(ce+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(ce)||(ce+=" MLK__keycap"),!/\bw[0-9]+\b/.test(ce)&&e.width&&(ce+=(j={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[e.width])!=null?j:""),[Y,ce||"MLK__keycap"]}var $n={"[left]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-left /></svg>",command:["performWithFeedback","moveToPreviousChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-left /></svg>",command:["performWithFeedback","extendSelectionBackward"]}},"[right]":{class:"action hide-shift",label:"<svg class=svg-glyph><use xlink:href=#svg-arrow-right /></svg>",command:["performWithFeedback","moveToNextChar"],shift:{label:"<svg class=svg-glyph><use xlink:href=#svg-angle-double-right /></svg>",command:["performWithFeedback","extendSelectionForward"]}},"[up]":{class:"action hide-shift",label:"\u2191",command:["performWithFeedback","moveUp"],shift:{label:"\u219F",command:["performWithFeedback","extendSelectionUpward"]}},"[down]":{class:"action hide-shift",label:"\u2193",command:["performWithFeedback","moveDown"],shift:{label:"\u21A1",command:["performWithFeedback","extendSelectionDownward"]}},"[return]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[action]":{class:"action hide-shift",command:["performWithFeedback","commit"],shift:{label:"<svg class=svg-glyph><use xlink:href=#circle-plus /></svg>",command:["performWithFeedback","addRowAfter"]},width:1.5,label:"<svg class=svg-glyph><use xlink:href=#svg-commit /></svg>"},"[hr]":{class:"separator horizontal-rule"},"[hide-keyboard]":{class:"action",command:["hideVirtualKeyboard"],width:1.5,label:"<svg class=svg-glyph-lg><use xlink:href=#svg-keyboard-down /></svg>"},"[.]":{variants:".",command:["performWithFeedback","insertDecimalSeparator"],shift:",",class:"big-op hide-shift",label:"."},"[,]":{variants:",",command:["performWithFeedback","insertDecimalSeparator"],shift:".",class:"big-op hide-shift",label:","},"[+]":{variants:[{latex:"\\sum_{#0}^{#0}",class:"small"},"\\oplus"],latex:"+",label:"+",class:"big-op hide-shift",shift:{latex:"\\sum",insert:"\\sum",class:"small"}},"[-]":{variants:["\\pm","\\ominus"],latex:"-",label:"&#x2212;",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"&divide;"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"&times;",shift:{latex:"\\times"},class:"big-op hide-shift"},"[=]":{variants:["\\neq","\\equiv","\\varpropto","\\thickapprox","\\lt","\\gt","\\le","\\ge"],latex:"=",label:"=",shift:{label:"\u2260",latex:"\\ne"},class:"big-op hide-shift"},"[backspace]":{class:"action bottom right hide-shift",width:1.5,command:["performWithFeedback","deleteBackward"],label:"<svg class=svg-glyph><use xlink:href=#svg-delete-backward /></svg>",shift:{class:"action warning",label:"<svg class=svg-glyph><use xlink:href=#svg-trash /></svg>",command:"deleteAll"}},"[undo]":{class:"ghost if-can-undo",command:"undo",label:"<svg class=svg-glyph><use xlink:href=#svg-undo /></svg>",tooltip:"tooltip.undo"},"[redo]":{class:"ghost if-can-redo",command:"redo",label:"<svg class=svg-glyph><use xlink:href=#svg-redo /></svg>",tooltip:"tooltip.redo"},"[(]":{variants:[{latex:"\\lbrack",key:"["},"\\langle","\\lfloor","\\lceil",{latex:"\\lbrace",key:"{"}],key:"(",label:"(",shift:{label:"[",key:"["},class:"hide-shift"},"[)]":{variants:[{latex:"\\rbrack",key:"]"},"\\rangle","\\rfloor","\\rceil",{latex:"\\rbrace",key:"]"}],key:")",label:")",shift:{label:"]",latex:"\\rbrack"},class:"hide-shift"},"[0]":{variants:"0",latex:"0",label:"0",shift:"\\infty",class:"hide-shift"},"[1]":{variants:"1",latex:"1",label:"1",shift:"#@^{-1}",class:"hide-shift"},"[2]":{variants:"2",latex:"2",label:"2",shift:"#@^2",class:"hide-shift"},"[3]":{variants:"3",latex:"3",label:"3",shift:"#@^3",class:"hide-shift"},"[4]":{variants:"4",latex:"4",label:"4",shift:"#@^4",class:"hide-shift"},"[5]":{variants:"5",latex:"5",label:"5",shift:"#@^5",class:"hide-shift"},"[6]":{variants:"6",latex:"6",label:"6",shift:"#@^6",class:"hide-shift"},"[7]":{variants:"7",latex:"7",label:"7",shift:"#@^7",class:"hide-shift"},"[8]":{variants:"8",latex:"8",label:"8",shift:"#@^8",class:"hide-shift"},"[9]":{variants:"9",latex:"9",label:"9",shift:"#@^9",class:"hide-shift"},"[separator-5]":{class:"separator",width:.5},"[separator]":{class:"separator"},"[separator-10]":{class:"separator"},"[separator-15]":{class:"separator",width:1.5},"[separator-20]":{class:"separator",width:2},"[separator-50]":{class:"separator",width:5},"[shift]":{class:"shift bottom left",width:1.5,label:"<span class=caps-lock-indicator></span><svg class=svg-glyph><use xlink:href=#svg-shift /></svg>"},"[foreground-color]":{variants:"foreground-color",command:["applyStyle",{color:"red"}],label:"<span style='border-radius: 50%;width:22px;height:22px; border: 3px solid #cc2428; box-sizing: border-box'>"},"[background-color]":{variants:"background-color",command:["applyStyle",{backgroundColor:"yellow"}],label:"<span style='border-radius: 50%;width:22px;height:22px; background:#fff590; box-sizing: border-box'></span>"}};function En(e){var t;if(typeof e=="string"){if(e==="[.]"&&window.MathfieldElement.decimalSeparator===","&&(e="[,]"),!$n[e])return{latex:e};e={label:e}}let r;return"label"in e&&e.label&&$n[e.label]&&(r=I(g(g({},$n[e.label]),e),{label:$n[e.label].label})),"key"in e&&e.key&&$n[e.key]&&(r=I(g(g({},$n[e.key]),e),{key:$n[e.key].key})),r?(r.command==="insertDecimalSeparator"&&(r.label=(t=window.MathfieldElement.decimalSeparator)!=null?t:"."),e.label==="[action]"&&(r=g(g({},r),window.mathVirtualKeyboard.actionKeycap)),e.label==="[shift]"&&(r=g(g({},r),window.mathVirtualKeyboard.shiftKeycap)),e.label==="[backspace]"&&(r=g(g({},r),window.mathVirtualKeyboard.backspaceKeycap)),e.label==="[tab]"&&(r=g(g({},r),window.mathVirtualKeyboard.tabKeycap)),r):e}var qe;function _t(e){var t;if(e.button!==0)return;const r=Qr.singleton;if(!r)return;let i=e.target;for(;i&&!i.getAttribute("data-layer");)i=i.parentElement;if(i){r.currentLayer=(t=i.getAttribute("data-layer"))!=null?t:"",e.preventDefault();return}const s=Mr(e.target);if(!(s!=null&&s.id))return;const c=r.getKeycap(s.id);if(!c)return;console.assert(e.type==="pointerdown");const u=new AbortController,k=u.signal;s.classList.add("is-pressed"),s.addEventListener("pointerenter",Ot(u),{capture:!0,signal:k}),s.addEventListener("pointerleave",Ot(u),{capture:!0,signal:k}),s.addEventListener("pointercancel",Ot(u),{signal:k}),s.addEventListener("pointerup",Ot(u),{signal:k}),$r(c)&&(s.classList.add("is-active"),r.shiftPressCount++),c.variants&&(qe&&clearTimeout(qe),qe=setTimeout(()=>{s.classList.contains("is-pressed")&&(s.classList.remove("is-pressed"),s.classList.add("is-active"),e.target&&"releasePointerCapture"in e.target&&e.target.releasePointerCapture(e.pointerId),mt(s,()=>{u.abort(),s==null||s.classList.remove("is-active")}))},300)),e.preventDefault()}function Ot(e){return t=>{const r=Mr(t.target);if(!(r!=null&&r.id))return;const i=Qr.singleton;if(!i)return;const s=i.getKeycap(r.id);if(s){if(t.type==="pointerenter"&&t.target===r&&t.isPrimary&&r.classList.add("is-pressed"),t.type==="pointercancel"){r.classList.remove("is-pressed"),$r(s)&&(i.shiftPressCount--,r.classList.toggle("is-active",i.isShifted)),e.abort();return}if(t.type==="pointerleave"&&t.target===r){r.classList.remove("is-pressed"),$r(s)&&(i.shiftPressCount--,r.classList.toggle("is-active",i.isShifted));return}if(t.type==="pointerup"){qe&&clearTimeout(qe),$r(s)?r.classList.toggle("is-active",i.isShifted):r.classList.contains("is-pressed")&&(r.classList.remove("is-pressed"),i.isShifted&&s.shift?typeof s.shift=="string"?i.executeCommand(["insert",s.shift,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]):Jt(s.shift):Jt(s),i.shiftPressCount===1&&!t.shiftKey&&(i.shiftPressCount=0)),e.abort(),t.preventDefault();return}}}}function Jt(e){var t;let r=e.command;!r&&e.insert&&(r=["insert",e.insert,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),!r&&e.key&&(r=["typedText",e.key,{focus:!0,feedback:!0,simulateKeystroke:!0}]),!r&&e.latex&&(r=["insert",e.latex,{focus:!0,feedback:!0,scrollIntoView:!0,mode:"math",format:"latex"}]),r||(r=["typedText",e.label,{focus:!0,feedback:!0,simulateKeystroke:!0}]),(t=Qr.singleton)==null||t.executeCommand(r)}function hr(e){if(e.nodeType!==1)return!1;const t=e.classList;return t.contains("MLK__keycap")||t.contains("shift")||t.contains("action")||t.contains("fnbutton")||t.contains("bigfnbutton")}function Mr(e){if(!e)return;let t=e;for(;t&&!hr(t);)t=t.parentElement;return t!=null?t:void 0}function $r(e){return!!e.class&&/(^|\s)shift($|\s)/.test(e.class)}var Qr=class uv{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var t,r,i;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(r=(t=window.document)==null?void 0:t.body)!=null?r:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(s=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(i=window.top)==null||i.addEventListener("message",this)}catch(s){window.addEventListener("message",this)}document.body.addEventListener("focusin",s=>{const c=s.target;c!=null&&c.isConnected&&setTimeout(()=>{const u=gn();u&&!u.readOnly&&u.mathVirtualKeyboardPolicy==="auto"&&T()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",s=>{s.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{gn()||this.hide()},300)})}get currentLayer(){var t,r,i;return(i=(r=(t=this._element)==null?void 0:t.querySelector(".MLK__layer.is-visible"))==null?void 0:r.id)!=null?i:""}set currentLayer(t){var r;if(!this._element){this.latentLayer=t;return}let i=t?this._element.querySelector(`#${t}.MLK__layer`):null;i||(i=this._element.querySelector(".MLK__layer")),i&&((r=this._element.querySelector(".MLK__layer.is-visible"))==null||r.classList.remove("is-visible"),i.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(t){var r;this._shiftPressCount=t>2||t<0?0:t,(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(t){const r="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[r]=t,r}getKeycap(t){return t?this.keycapRegistry[t]:void 0}getLayer(t){const r=this.normalizedLayouts;for(const i of r)for(const s of i.layers)if(s.id===t)return s}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(t){this._alphabeticLayout=t,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(t){this._actionKeycap=typeof t=="string"?{label:t}:t}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(t){this._shiftKeycap=typeof t=="string"?{label:t}:t}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(t){this._backspaceKeycap=typeof t=="string"?{label:t}:t}get tabKeycap(){return this._tabKeycap}set tabKeycap(t){this._tabKeycap=typeof t=="string"?{label:t}:t}get layouts(){return this._layouts}set layouts(t){this.updateNormalizedLayouts(t),this.rebuild()}updateNormalizedLayouts(t){const r=Array.isArray(t)?[...t]:[t],i=r.findIndex(s=>s==="default");i>=0&&r.splice(i,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(r),this._normalizedLayouts=r.map(s=>ir(s))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(t){this._editToolbar=t,this.rebuild()}get container(){return this._container}set container(t){this._container=t,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new uv}catch(t){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(t,r,i){this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].has(r)||this.listeners[t].add(r)}dispatchEvent(t){return!this.listeners[t.type]||this.listeners[t.type].size===0?!0:(this.listeners[t.type].forEach(r=>{typeof r=="function"?r(t):r==null||r.handleEvent(t)}),!t.defaultPrevented)}removeEventListener(t,r,i){this.listeners[t]&&this.listeners[t].delete(r)}get element(){return this._element}set element(t){var r;this._element!==t&&((r=this._element)==null||r.remove(),this._element=t)}get visible(){return this._visible}set visible(t){t?this.show():this.hide()}get boundingRect(){var t;if(!this._visible)return new DOMRect;const r=(t=this._element)==null?void 0:t.getElementsByClassName("MLK__plate")[0];return r?r.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var t,r;const i=this.boundingRect.height;if(this.container===document.body){(t=this._element)==null||t.style.setProperty("--_keyboard-height",`calc(${i}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const s=i-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${s}px)`:`${s}px`}else(r=this._element)==null||r.style.setProperty("--_keyboard-height",`${i}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const t=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=t,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const t=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(t&&(t.backdrop||t.container)));const r=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(r)for(const i of r){const s=this.getKeycap(i.id);if(s){const[c,u]=Gr(s,{shifted:this.isShifted});i.innerHTML=window.MathfieldElement.createHTML(c),i.className=u}}}show(t){var r;if(this._visible)return;const i=this.container;if(i&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const s=this._element.getElementsByClassName("MLK__plate")[0];if(s&&this.observer.observe(s),i===window.document.body){const c=i.style.paddingBottom;this.originalContainerBottomPadding=c;const u=s.offsetHeight-1;i.style.paddingBottom=c?`calc(${c} + ${u}px)`:`${u}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,t!=null&&t.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var s;return(s=this._element)==null?void 0:s.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(t){var r;const i=this.container;if(i&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const s=this._element.getElementsByClassName("MLK__plate")[0];s&&this.observer.unobserve(s),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),ut(),Ht(),(r=this._element)==null||r.remove(),this._element=void 0,this.originalContainerBottomPadding!==null&&(i.style.paddingBottom=this.originalContainerBottomPadding)}this.stateChanged()}}get height(){var t,r;return(r=(t=this.element)==null?void 0:t.offsetHeight)!=null?r:0}buildAndAttachElement(){var t;console.assert(!this.element),this.element=Zr(this),window.addEventListener("contextmenu",this,{capture:!0}),this.element.addEventListener("contextmenu",r=>{r.shiftKey||((r.ctrlKey||r.button===2)&&mt(r.target),r.preventDefault(),r.stopPropagation())},{capture:!0}),(t=this.container)==null||t.appendChild(this.element)}handleEvent(t){if(Z(t)){if(!kh(t.origin,this.originValidator))throw new DOMException(`Message from unknown origin (${t.origin}) cannot be handled`,"SecurityError");t.data.action==="disconnect"?this.connectedMathfieldWindow=void 0:t.data.action!=="update-setting"&&t.data.action!=="proxy-created"&&t.data.action!=="execute-command"&&(console.assert(t.source!==void 0),this.connectedMathfieldWindow=t.source),this.handleMessage(t.data,t.source)}if(this._element)switch(t.type){case"mouseup":case"blur":document.body.style.userSelect="",this.shiftPressCount=0;break;case"contextmenu":t.button!==2&&t.preventDefault();break;case"keydown":{t.key==="Shift"&&!t.repeat&&(this.shiftPressCount=1);break}case"keyup":{(t.key==="Shift"||!t.getModifierState("Shift")&&this.shiftPressCount!==2)&&(this.shiftPressCount=0);break}}}handleMessage(t,r){const{action:i}=t;if(i==="execute-command"){const{command:s}=t,c=l(s);if(window.top!==void 0&&c!=="virtual-keyboard")return;this.executeCommand(s);return}if((i==="connect"||i==="show")&&this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r),i!=="disconnect"&&window===window.top){if(i==="show"){typeof t.animate!="undefined"?this.show({animate:t.animate}):this.show();return}if(i==="hide"){typeof t.animate!="undefined"?this.hide({animate:t.animate}):this.hide();return}if(i==="update-setting"){t.alphabeticLayout&&(this.alphabeticLayout=t.alphabeticLayout),t.layouts&&(this.layouts=t.layouts),t.editToolbar&&(this.editToolbar=t.editToolbar);return}if(i==="proxy-created"){this.sendMessage("synchronize-proxy",{boundingRect:this.boundingRect,alphabeticLayout:this._alphabeticLayout,layouts:this._layouts,editToolbar:this._editToolbar},r);return}}}sendMessage(t,r,i){if(i||(i=this.connectedMathfieldWindow),this.targetOrigin===null||this.targetOrigin==="null"||i===window){window.dispatchEvent(new MessageEvent("message",{source:window,data:g({type:U,action:t},r)}));return}if(i)i.postMessage(g({type:U,action:t},r),{targetOrigin:this.targetOrigin});else if(r.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:r.command})),t==="execute-command"&&Array.isArray(r.command)&&r.command[0]==="insert"){const s=r.command[1].split("");for(const c of s)this.dispatchEvent(new KeyboardEvent("keydown",{key:c,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:c,bubbles:!0}))}}stateWillChange(t){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:t},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(t){const r=this._element;if(!r)return;r.classList.toggle("is-math-mode",t.mode==="math"),r.classList.toggle("is-text-mode",t.mode==="text"),r.classList.toggle("can-undo",t.canUndo),r.classList.toggle("can-redo",t.canRedo),r.classList.toggle("can-copy",!t.selectionIsCollapsed),r.classList.toggle("can-copy",!t.selectionIsCollapsed),r.classList.toggle("can-paste",!0);const i=r.querySelectorAll(".ML__edit-toolbar");if(i)for(const s of i)s.innerHTML=xr(this,t)}update(t){this._style=t.style,this.updateToolbar(t)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(t){let r,i=[],s=l(t);return E(t)?(r=t[0],r==="performWithFeedback"&&(t=t.slice(1),s=l(t)),i=t.slice(1)):r=t,r=r.replace(/-\w/g,c=>c[1].toUpperCase()),s==="virtual-keyboard"?n[r].fn(void 0,...i):(this.sendMessage("execute-command",{command:t}),!1)}dispose(){window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("message",this)}};function gn(){var e,t;let r=md(),i=null;for(;r;){if("host"in r&&((t=(e=r.host)==null?void 0:e.tagName)==null?void 0:t.toLowerCase())==="math-field"){i=r.host;break}r=r.parentNode}return i}if(N()&&!("mathVirtualKeyboard"in window))if(window===window.top){const e=Qr.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>oe.singleton,configurable:!0});function Rn(e){const t={};for(const r of Object.keys(e))switch(r){case"scriptDepth":const i=e.scriptDepth;if(E(i))t.scriptDepth=[i[0],i[1]];else if(typeof i=="number")t.scriptDepth=[i,i];else if(typeof i=="string"){const[c,u]=i.split(",").map(k=>parseInt(k.trim()));t.scriptDepth=[c,u]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let s=e.mathVirtualKeyboardPolicy.toLowerCase();if(s==="sandboxed"){if(window!==window.top){const c=Qr.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>c})}s="manual"}t.mathVirtualKeyboardPolicy=s;break;case"letterShapeStyle":e.letterShapeStyle==="auto"?X.locale.startsWith("fr")?t.letterShapeStyle="french":t.letterShapeStyle="tex":t.letterShapeStyle=e.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(e.defaultMode)?t.defaultMode=e.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),t.defaultMode="math");break;case"macros":t.macros=Le(e.macros);break;default:E(e[r])?t[r]=[...e[r]]:typeof e[r]=="object"&&!(e[r]instanceof Element)&&r!=="computeEngine"?t[r]=g({},e[r]):t[r]=e[r]}return t}function gi(e,t){let r;typeof t=="string"?r=[t]:t===void 0?r=Object.keys(e):r=t;const i={};for(const s of r)e[s]===null?i[s]=null:E(e[s])?i[s]=[...e[s]]:typeof e[s]=="object"&&!(e[s]instanceof Element)&&s!=="computeEngine"?i[s]=g({},e[s]):i[s]=e[s];return typeof t=="string"?i[t]:i}function Ei(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Ue,backgroundColorMap:J,letterShapeStyle:X.locale.startsWith("fr")?"french":"tex",minFontScale:0,smartMode:!1,smartFence:!0,smartSuperscript:!0,scriptDepth:[1/0,1/0],removeExtraneousParentheses:!0,isImplicitFunction:e=>["\\sin","\\cos","\\tan","\\arcsin","\\arccos","\\arctan","\\arcsec","\\arccsc","\\arsinh","\\arcosh","\\artanh","\\arcsech","\\arccsch","\\arg","\\ch","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\sec","\\sinh","\\sh","\\tanh","\\tg","\\th","\\lg","\\lb","\\log","\\ln"].includes(e),mathModeSpace:"",placeholderSymbol:"\u25A2",contentPlaceholder:"",popoverPolicy:"auto",environmentPopoverPolicy:"off",keybindings:Wp,inlineShortcuts:pp,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:Um,value:""}}function sn(e){return e.defaultMode==="inline-math"?"math":e.defaultMode}function Ft(e,t){!e||!t||(E(e)?e.forEach(r=>Ft(r,t)):typeof e=="object"&&!e.style.color&&!e.style.backgroundColor&&!e.style.fontFamily&&!e.style.fontShape&&!e.style.fontSeries&&!e.style.fontSize&&!e.style.variant&&!e.style.variantStyle&&(e.applyStyle(t),Ft(e.body,t),Ft(e.above,t),Ft(e.below,t),Ft(e.subscript,t),Ft(e.superscript,t)))}function Wo(e,t,r,i){function s(u,k){for(const j of c)if(j.style[u]!==k)return!1;return!0}if(t=e.normalizeRange(t),t[0]===t[1])return!1;const c=e.getAtoms(t,{includeChildren:!0});i.operation==="toggle"&&(r.color&&s("color",r.color)&&(r.color="none",delete r.verbatimColor),r.backgroundColor&&s("backgroundColor",r.backgroundColor)&&(r.backgroundColor="none",delete r.verbatimBackgroundColor),r.fontFamily&&s("fontFamily",r.fontFamily)&&(r.fontFamily="none"),r.fontSeries&&s("fontSeries",r.fontSeries)&&(r.fontSeries="auto"),r.fontShape&&s("fontShape",r.fontShape)&&(r.fontShape="auto"),r.fontSize&&s("fontSize",r.fontSize)&&(r.fontSize=il),r.variant&&s("variant",r.variant)&&(r.variant="normal"),r.variantStyle&&s("variantStyle",r.variantStyle)&&(r.variantStyle=""));for(const u of c)u.applyStyle(r);return!0}function Eo(e,t){const r=e.at(e.position);if(r.type==="composition")r.value=t;else{const{caret:i}=r;r.caret=void 0;const s=new om(t,{mode:r.mode});s.caret=i,r.parent.addChildAfter(s,r),e.position+=1}}function Ta(e){const t=e.at(e.position);t.type==="composition"&&(t.parent.removeChild(t),e.position-=1)}je(["math","displaymath"],ui),je("center",ui),he("displaylines","",{parse:e=>{const t=[];let r=[];e.beginContext({tabular:!0});do{if(e.end()||e.match("<}>"))break;e.matchColumnSeparator()||e.matchRowSeparator()?(t.push([r]),r=[]):r.push(...e.scan(i=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(i)))}while(!0);return e.endContext(),t.push([r]),t},createAtom:e=>new fs("lines",e.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),xt("array","{columns:colspec}",(e,t,r,i)=>new fs(e,xa(t),r,{columns:i[0],mathstyleName:"textstyle"})),xt(["equation","equation*","subequations"],"",(e,t,r)=>new fs(e,xa(t),r,{columns:[{align:"c"}]})),xt(["multline","multline*"],"",ui),xt(["align","align*","aligned","eqnarray"],"",ui),xt("split","",ui),xt(["gather","gathered"],"",ui),xt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",ui),xt(["smallmatrix","smallmatrix*"],"[columns:colspec]",ui),xt(["cases","dcases","rcases"],"",ui);function Wn(e){for(const t of e)for(const r of t)if(r.length>0)return!1;return!0}function xa(e,t=1){return Wn(e)?Array(t).fill([[new Ur({type:"first"}),new Du]]):e.map(r=>r.length===0?[[new Ur({type:"first"})]]:r.map(i=>i.length===0?[new Ur({type:"first"})]:(i[0].type!=="first"&&i.unshift(new Ur({type:"first"})),i)))}function ui(e,t=[[[]]],r=[],i=[]){switch(t=xa(t,["split","align","align*","aligned","eqnarray"].includes(e)?2:1),e){case"math":return new fs(e,t,r,{mathstyleName:"textstyle"});case"displaymath":return new fs(e,t,r,{mathstyleName:"textstyle"});case"center":return new fs(e,t,r,{columns:[{align:"c"}]});case"multline":case"multline*":return new fs(e,t,r,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new fs(e,t,r,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new fs(e,t,r,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:Ja(i[0])});case"bmatrix":case"bmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Ja(i[0])});case"Bmatrix":case"Bmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Ja(i[0])});case"vmatrix":case"vmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Ja(i[0])});case"Vmatrix":case"Vmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Ja(i[0])});case"matrix":case"matrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Ja(i==null?void 0:i[0])});case"smallmatrix":case"smallmatrix*":return new fs(e,t,r,{mathstyleName:"scriptstyle",columns:Ja(i==null?void 0:i[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new fs(e,t,r,{mathstyleName:e==="dcases"?"displaystyle":"textstyle",arraystretch:1.2,leftDelim:"\\lbrace",rightDelim:".",columns:[{align:"l"},{gap:1},{align:"l"}]});case"rcases":return new fs(e,t,r,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new fs(e,t,r,{leftDelim:".",rightDelim:".",columns:[{align:"l"}]});case"align":case"align*":case"aligned":case"eqnarray":{let s=0;for(const k of t)s=Math.max(s,k.length);const c=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let u=2;for(;u<s;)c.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),u+=2;return c.push({gap:0}),new fs(e,t,r,{arraycolsep:0,columns:c,minColumns:2})}}return new fs(e,t,r,{mathstyleName:"textstyle"})}function Ja(e){return e!=null?e:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Ma(e,t){let r=e.at(e.position);for(;r&&!(r.parent instanceof fs);)r=r.parent;if(r&&r.type==="array"&&r.environmentName,!r||!(r.parent instanceof fs)){const i=e.at(e.position);if(r=i,!r.parent.parent){let s=e.extractAtoms([e.position,e.lastOffset]),c=e.extractAtoms([0,e.position]);c.length===0&&(c=ka()),s.length===0&&(s=ka());let u;return t.endsWith("column")?(u=ui("split",[[c,s]]),e.root=u,es(u,0,0)?Wa(e,u,0,0):es(u,0,1)?Wa(e,u,0,1):e.position=e.offsetOf(i)):(u=ui("lines",[[c],[s]]),e.root=u,es(u,0,0)?Wa(e,u,0,0):es(u,1,0)?Wa(e,u,1,0):e.position=e.offsetOf(i)),[void 0,[0,0]]}if(r.parent instanceof Ys){const s=r.parent;let c=e.extractAtoms([e.position,e.offsetOf(s.lastChild)]),u=e.extractAtoms([e.offsetOf(s.firstChild),e.position]);u.length===0&&(u=ka()),c.length===0&&(c=ka());let k="pmatrix";const j=s.leftDelim,Y=s.rightDelim;j==="("&&(Y===")"||Y==="?")?k="pmatrix":(j==="["||j==="\\lbrack")&&(Y==="]"||Y==="\\rbrack"||Y==="?")?k="bmatrix":j==="\\vert"&&Y==="\\vert"?k="vmatrix":j==="\\Vert"&&Y==="\\Vert"?k="Vmatrix":(j==="{"||j==="\\lbrace")&&(Y==="."||Y==="?")&&(k="cases");const ce=ui(k,t.endsWith("column")?[[u,c]]:[[u],[c]]);return s.parent.addChildBefore(ce,s),s.parent.removeChild(s),es(ce,0,0)?Wa(e,ce,0,0):t.endsWith("column")?es(ce,0,1)?Wa(e,ce,0,1):e.position=e.offsetOf(r):es(ce,1,0)?Wa(e,ce,1,0):e.position=e.offsetOf(r),[void 0,[0,0]]}}return r&&r.parent instanceof fs?[r.parent,r.parentBranch]:[void 0,[0,0]]}function es(e,t,r){const i=e.getCell(t,r);return!i||i.length!==2?!1:i[1].type==="placeholder"}function yo(e,t,r,i){const s=t.getCell(r,i);return s?[e.offsetOf(s[0]),e.offsetOf(s[s.length-1])]:-1}function Wa(e,t,r,i){const s=yo(e,t,r,i);typeof s!="number"&&e.setSelection(s)}function Ks(e,t,r,i,s){const c=t.getCell(r,i);c&&e.setPositionHandlingPlaceholder(e.offsetOf(c[s==="start"?0:c.length-1]))}function uo(e,t){const[r,[i,s]]=Ma(e,t);if(r)switch(t){case"after row":r.addRowAfter(i),Ks(e,r,i+1,0,"end");break;case"after column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnAfter(s),Ks(e,r,i,s+1,"end");break;case"before row":r.addRowBefore(i),Ks(e,r,i,0,"start");break;case"before column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnBefore(s),Ks(e,r,i,s,"start");break}}function Ba(e){return e.contentWillChange({inputType:"insertText"})?(uo(e,"after row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function to(e){return e.contentWillChange({inputType:"insertText"})?(uo(e,"before row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Sa(e){return e.contentWillChange({inputType:"insertText"})?(uo(e,"after column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function yl(e){return e.contentWillChange({inputType:"insertText"})?(uo(e,"before column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Ds(e,t){if(!e.contentWillChange({}))return!1;e.mathfield.snapshot();let r=".",i=".";switch(t){case"pmatrix":case"pmatrix*":r="(",i=")";break;case"bmatrix":case"bmatrix*":r="[",i="]";break;case"Bmatrix":case"Bmatrix*":r="\\lbrace",i="\\rbrace";break;case"vmatrix":case"vmatrix*":r="\\vert",i="\\vert";break;case"Vmatrix":case"Vmatrix*":r="\\Vert",i="\\Vert";break;case"matrix":case"matrix*":r=".",i=".";break;case"cases":case"dcases":r="\\lbrace";break;case"rcases":i="\\rbrace";break}const s=e.at(e.position),c=s.type==="array"?s:e.parentEnvironment;return c.environmentName=t,c.leftDelim=r,c.rightDelim=i,e.contentDidChange({}),!0}function ga(e,t){let r=e.at(e.position);for(;r&&!(Array.isArray(r.parentBranch)&&r.parent instanceof fs);)r=r.parent;if(Array.isArray(r==null?void 0:r.parentBranch)&&(r==null?void 0:r.parent)instanceof fs){const i=r.parent,s=r.parentBranch;let c;switch(t){case"row":if(i.rowCount>1){i.removeRow(s[0]);const u=i.getCell(Math.max(0,s[0]-1),s[1]);c=e.offsetOf(u[u.length-1])}break;case"column":if(i.colCount>i.minColumns){i.removeColumn(s[1]);const u=i.getCell(s[0],Math.max(0,s[1]-1));c=e.offsetOf(u[u.length-1])}break}c&&e.setPositionHandlingPlaceholder(c)}}function wo(e){return e.contentWillChange({inputType:"deleteContent"})?(ga(e,"row"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}function ul(e){return e.contentWillChange({inputType:"deleteContent"})?(ga(e,"column"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}o({addRowAfter:Ba,addColumnAfter:Sa,addRowBefore:to,addColumnBefore:yl,removeRow:wo,removeColumn:ul,setEnvironment:Ds},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function ka(){return[new Du]}var ns=class dv{constructor(t){this.recording=!1,this.model=t,this.reset()}reset(){this.stack=[],this.index=-1,this.lastOp=""}startRecording(){this.recording=!0}stopRecording(){this.recording=!1}canUndo(){return this.index-1>=0}canRedo(){return this.stack.length-1>this.index}stopCoalescing(t){t&&this.index>=0&&(this.stack[this.index].selection=t),this.lastOp=""}undo(){return this.canUndo()?(this.model.setState(this.stack[this.index-1],{silenceNotifications:!1,type:"undo"}),this.index-=1,this.lastOp="",!0):!1}redo(){return this.canRedo()?(this.index+=1,this.model.setState(this.stack[this.index],{silenceNotifications:!1,type:"redo"}),this.lastOp="",!0):!1}pop(){this.canUndo()&&(this.stack.splice(this.index,this.stack.length-this.index),this.index-=1)}snapshot(t){return this.recording?(t&&t===this.lastOp&&this.pop(),this.stack.splice(this.index+1,this.stack.length-this.index-1),this.stack.push(this.model.getState()),this.index+=1,this.stack.length>dv.maximumDepth&&(this.stack.shift(),this.index-=1),this.lastOp=t!=null?t:"",!0):!1}};ns.maximumDepth=1e3;var xo=ns;function ql(e,t,r){if(e.at(t).mode!=="text")return t;const i=r==="backward"?-1:1;let s;if(d.test(e.at(t).value)){let c=t,u;do u=e.at(c).mode==="text"&&d.test(e.at(c).value),c+=i;while(e.at(c)&&u);s=e.at(c)?c-2*i:c-i}else if(/\s/.test(e.at(t).value)){let c=t;for(;e.at(c)&&e.at(c).mode==="text"&&/\s/.test(e.at(c).value);)c+=i;if(!e.at(c))s=c-i;else{let u=!0;do u=e.at(c).mode==="text"&&!/\s/.test(e.at(c).value),c+=i;while(e.at(c)&&u);s=e.at(c)?c-2*i:c-i}}else{let c=t;for(;e.at(c)&&e.at(c).mode==="text"&&!/\s/.test(e.at(c).value);)c+=i;s=e.at(c)?c:c-i;let u=!0;for(;e.at(c)&&u;)u=e.at(c).mode==="text"&&/\s/.test(e.at(c).value),u&&(s=c),c+=i;s=e.at(c)?c-2*i:c-i}return s-(i>0?0:1)}function Pl(e,t,r){var i,s,c,u,k,j,Y;const ce=e.position;(i=r==null?void 0:r.extend)!=null&&i||e.collapseSelection(t);let Pe=e.at(e.position);if(t==="forward"&&(Pe.type==="subsup"?(Pe=Pe.rightSibling,Pe||(Pe=e.at(e.position+1))):Pe=e.at(e.position+1)),!Pe)return e.announce("plonk"),!1;let rt=e.offsetOf(Pe);if(Pe instanceof Ud)rt=ql(e,rt,t);else if(Pe instanceof Nl)if(Pe.isSuggestion)for(console.assert(t==="forward");Pe&&Pe instanceof Nl;)Pe.isSuggestion=!1,rt=e.offsetOf(Pe),Pe=Pe.rightSibling;else if(t==="forward"){if(Pe=Pe.rightSibling,!Pe||!(Pe instanceof Nl))return e.announce("plonk"),!1;for(;Pe&&Pe instanceof Nl&&/[a-zA-Z\*]/.test(Pe.value);)rt=e.offsetOf(Pe),Pe=Pe.rightSibling}else{if(Pe=Pe.leftSibling,!Pe||!(Pe instanceof Nl))return e.announce("plonk"),!1;for(;Pe&&Pe instanceof Nl&&/[a-zA-Z\*]/.test(Pe.value);)rt=e.offsetOf(Pe),Pe=Pe.leftSibling}else if(t==="forward"&&Pe.type==="mopen"){let gt=0;do Pe.type==="mopen"?gt+=1:Pe.type==="mclose"&&(gt-=1),Pe=Pe.rightSibling;while(!Pe.isLastSibling&&gt!==0);rt=e.offsetOf(Pe.leftSibling)}else if(t==="backward"&&Pe.type==="mclose"){let gt=0;do Pe.type==="mopen"?gt+=1:Pe.type==="mclose"&&(gt-=1),Pe=Pe.leftSibling;while(!Pe.isFirstSibling&&gt!==0);rt=e.offsetOf(Pe)}else if(t==="backward")if(Pe.type==="first")for(;rt>0&&Pe.type==="first";)rt-=1,Pe=e.at(rt);else{const gt=Pe.type;Pe.type==="subsup"&&(rt=e.offsetOf(e.at(rt).leftSibling)),rt-=1;let Et=(s=e.at(rt))==null?void 0:s.type;for(;rt>=0&&Et===gt;)((c=e.at(rt))==null?void 0:c.type)==="subsup"?rt=e.offsetOf(e.at(rt).leftSibling):rt-=1,Et=e.at(rt).type}else{const{type:gt}=Pe;let Et=(u=e.at(rt))==null?void 0:u.type;const{lastOffset:Br}=e;for(;rt<=Br&&(Et===gt||Et==="subsup");){for(;((k=e.at(rt).rightSibling)==null?void 0:k.type)==="subsup";)rt=e.offsetOf(e.at(rt).rightSibling);rt+=1,Et=(j=e.at(rt))==null?void 0:j.type}rt-=1}if((Y=r==null?void 0:r.extend)!=null&&Y){if(!e.setSelection(e.anchor,rt))return e.announce("plonk"),!1}else{if(rt===e.position)return e.announce("plonk"),!1;e.position=rt}return e.announce("move",ce),e.mathfield.stopCoalescingUndo(),!0}function is(e,t,r){var i,s;if(r=r!=null?r:{extend:!1},e.mathfield.adoptStyle=t==="backward"?"right":"left",t!=="forward"){const[k,j]=Jm(e);k!==void 0&&j!==void 0&&e.deleteAtoms([k,j])}if(t==="upward")return Ff(e,r);if(t==="downward")return Vd(e,r);if(r.extend){let k=Ya(e,e.position,t);k<0&&(k=0),k>e.lastOffset&&(k=e.lastOffset);const j=e.setSelection(e.anchor,k);return e.mathfield.stopCoalescingUndo(),j}if(e.selectionIsPlaceholder){e.collapseSelection(t);const k=is(e,t);return e.mathfield.stopCoalescingUndo(),k}let c=e.position;const u=c;if(e.collapseSelection(t)?(c=e.position,Hs(e,c)||(c=Ya(e,c,t))):c=Ya(e,c,t),c<0||c>e.lastOffset){let k=!0;return e.silenceNotifications||(k=(s=(i=e.mathfield.host)==null?void 0:i.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))!=null?s:!0),k&&e.announce("plonk"),k}return e.setPositionHandlingPlaceholder(c),e.mathfield.stopCoalescingUndo(),e.announce("move",u),!0}function Ya(e,t,r){return t=t+(r==="forward"?1:-1),t<0||t>e.lastOffset||Hs(e,t)?t:Ya(e,t,r)}function Hs(e,t){var r;const i=e.at(t);let s=i.parent;for(;s&&!s.inCaptureSelection;)s=s.parent;return!(s!=null&&s.inCaptureSelection||(r=i.parent)!=null&&r.skipBoundary&&(!i.isFirstSibling&&i.isLastSibling||i.type==="first")||e.mathfield.hasEditablePrompts&&!i.parentPrompt)}function zh(e,t,r){let i=1/0,s=0;for(;s<t.length;s++){const c=D0(e.getHTMLElement(t[s])).right,u=Math.abs(r-c);if(u<=i)i=u;else break}return t[s-1]}function jc(e,t,r,i,s){const c=e.mathfield.hasEditablePrompts,u=c?r.filter(Y=>Y.type==="prompt"&&!Y.captureSelection):r,k=D0(e.mathfield.getHTMLElement(t)).right,j=e.offsetOf(zh(e.mathfield,u,k))-(c?1:0);if(i){const[Y,ce]=e.selection.ranges[0];let Pe;j<(s==="up"?Y:ce)?Pe={ranges:[[j,ce]],direction:"backward"}:Pe={ranges:[[Y,j]],direction:"forward"},e.setSelection(Pe)}else e.setPositionHandlingPlaceholder(j);e.announce(`move ${s}`)}function Ff(e,t){var r,i;const s=(r=t==null?void 0:t.extend)!=null?r:!1;s||e.collapseSelection("backward");const c=()=>{var j,Y;let ce=!0;return e.silenceNotifications||(ce=(Y=(j=e.mathfield.host)==null?void 0:j.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Y:!0),e.announce(ce?"plonk":"line"),ce},u=e.at(e.position);let k=u;for(;k&&k.parentBranch!=="below"&&!(Array.isArray(k.parentBranch)&&k.parent instanceof fs);)k=k.parent;if(Array.isArray(k==null?void 0:k.parentBranch)&&k.parent instanceof fs){const j=k.parent;if(k.parentBranch[0]<1)return c();const Y=k.parentBranch[0]-1,ce=j.array[Y][k.parentBranch[1]];if(!ce.some(rt=>rt.type==="prompt"&&!rt.captureSelection)&&e.mathfield.hasEditablePrompts)return c();jc(e,u,ce,s,"up")}else if(k){const j=(i=k.parent.branch("above"))!=null?i:k.parent.createBranch("above");if(!j.some(ce=>ce.type==="prompt"&&ce.placeholderId)&&e.mathfield.hasEditablePrompts)return c();jc(e,u,j,s,"up")}else return c();return e.mathfield.stopCoalescingUndo(),!0}function Vd(e,t){var r,i;const s=(r=t==null?void 0:t.extend)!=null?r:!1;s||e.collapseSelection("forward");const c=()=>{var j,Y;let ce=!0;return e.silenceNotifications||(ce=(Y=(j=e.mathfield.host)==null?void 0:j.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?Y:!0),e.announce(ce?"plonk":"line"),ce},u=e.at(e.position);let k=u;for(;k&&k.parentBranch!=="above"&&!(Array.isArray(k.parentBranch)&&k.parent instanceof fs);)k=k.parent;if(Array.isArray(k==null?void 0:k.parentBranch)&&k.parent instanceof fs){const j=k.parent;if(k.parentBranch[0]+1>j.array.length-1)return c();const Y=k.parentBranch[0]+1,ce=j.array[Y][k.parentBranch[1]];if(!ce.some(rt=>rt.type==="prompt"&&!rt.captureSelection)&&e.mathfield.hasEditablePrompts)return c();jc(e,u,ce,s,"down")}else if(k){const j=(i=k.parent.branch("below"))!=null?i:k.parent.createBranch("below");if(!j.some(ce=>ce.type==="prompt")&&e.mathfield.hasEditablePrompts)return c();jc(e,u,j,s,"down")}else return c();return!0}function Ka(e){const t=e.position,r=e.at(t).parent;return r!=null&&r.parent?(e.position=e.offsetOf(r),e.mathfield.stopCoalescingUndo(),e.announce("move",t),!0):(e.announce("plonk"),!1)}function Mf(e){let t=0,r=e.at(e.position),i=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(i=!1):i=!0,r=r.parent;return i?t:0}function Lf(e){let t=0,r=e.at(e.position),i=!1;for(;r;)(!r.hasEmptyBranch("superscript")||!r.hasEmptyBranch("subscript"))&&(t+=1),r.hasEmptyBranch("superscript")?r.hasEmptyBranch("subscript")||(i=!0):i=!1,r=r.parent;return i?t:0}function pu(e){var t;if(e.collapseSelection(),Mf(e)>=e.mathfield.options.scriptDepth[1])return e.announce("plonk"),!1;let r=e.at(e.position);return r.subsupPlacement===void 0&&(((t=r.rightSibling)==null?void 0:t.type)!=="subsup"&&r.parent.addChildAfter(new ks({style:r.computedStyle}),r),r=r.rightSibling),r.createBranch("superscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.superscript[0]))),!0}function mu(e){var t;if(e.collapseSelection(),Lf(e)>=e.mathfield.options.scriptDepth[0])return e.announce("plonk"),!1;let r=e.at(e.position);return r.subsupPlacement===void 0&&(((t=e.at(e.position+1))==null?void 0:t.type)!=="subsup"&&r.parent.addChildAfter(new ks({style:e.at(e.position).computedStyle}),r),r=e.at(e.position+1)),r.createBranch("subscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.subscript[0]))),!0}function lc(){function e(j){const Y=[],ce=[];return[...j.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(t).forEach((rt,gt)=>{const Et=i(rt);Et===0?Y.push(rt):ce.push({documentOrder:gt,tabIndex:Et,node:rt})}),ce.sort((rt,gt)=>rt.tabIndex===gt.tabIndex?rt.documentOrder-gt.documentOrder:rt.tabIndex-gt.tabIndex).map(rt=>rt.node).concat(Y)}function t(j){return!(!r(j)||s(j)||i(j)<0)}function r(j){return!(j.disabled||j.type==="hidden"&&j.tagName.toUpperCase()==="INPUT"||k(j))}function i(j){var Y;const ce=Number.parseInt((Y=j.getAttribute("tabindex"))!=null?Y:"NaN",10);return Number.isNaN(ce)?j.contentEditable==="true"||(j.nodeName==="AUDIO"||j.nodeName==="VIDEO")&&j.getAttribute("tabindex")===null?0:j.tabIndex:ce}function s(j){return j.tagName.toUpperCase()==="INPUT"&&j.type==="radio"&&!u(j)}function c(j,Y){for(const ce of j)if(ce.checked&&ce.form===Y)return ce;return null}function u(j){var Y;if(!j.name)return!0;const Pe=((Y=j.form)!=null?Y:j.ownerDocument).querySelectorAll('input[type="radio"][name="'+j.name+'"]'),rt=c(Pe,j.form);return!rt||rt===j}function k(j){if(!N()||j===document.activeElement||j.contains(document.activeElement))return!1;if(getComputedStyle(j).visibility==="hidden")return!0;const Y=j.getBoundingClientRect();if(Y.width===0||Y.height===0)return!0;for(;j;){if(getComputedStyle(j).display==="none")return!0;j=j.parentElement}return!1}return N()?e(document.body):[]}function Ss(e,t,r="forward"){const i=e.position;if(Array.isArray(t)){const s=e.offsetOf(t[0]),c=e.offsetOf(t[t.length-1]);return r==="forward"?e.setSelection(s,c):e.setSelection(c,s),e.announce("move",i),e.mathfield.stopCoalescingUndo(),!0}return r==="forward"?Ss(e,[t.leftSibling,t]):Ss(e,[t,t.leftSibling])}function dl(e,t){const r=e.position;if(typeof t=="number"&&(t=e.at(t)),t.type==="prompt")e.setSelection(e.offsetOf(t.firstChild),e.offsetOf(t.lastChild));else{const i=e.offsetOf(t);t.type==="placeholder"?e.setSelection(i-1,i):e.position=i}return e.announce("move",r),e.mathfield.stopCoalescingUndo(),!0}function Wd(e,t,r=!0){var i,s;const c=t==="forward"?1:-1;e.at(e.anchor).type==="placeholder"&&is(e,t);let u;const k=e.at(e.anchor).parentPrompt;k?t==="forward"?u=e.offsetOf(k)+1:u=e.offsetOf(k.leftSibling):u=Math.max(e.position+c,0);const j=Gd(e,u,t);if(!j||t==="forward"&&e.offsetOf(j)<u||t==="backward"&&e.offsetOf(j)>u){if(!r||!((s=(i=e.mathfield.host)==null?void 0:i.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))==null||s))return e.announce("plonk"),!1;const ce=lc();if(!document.activeElement||ce.length<=1)return e.announce("plonk"),!1;let Pe=ce.indexOf(document.activeElement)+c;return Pe<0&&(Pe=ce.length-1),Pe>=ce.length&&(Pe=0),ce[Pe].focus(),e.mathfield.stopCoalescingUndo(),!0}return dl(e,j),!0}function Gd(e,t=0,r="forward"){return e.findAtom(i=>i.type==="placeholder"||i.type==="prompt"||!e.mathfield.readOnly&&i.treeDepth>2&&i.isFirstSibling&&i.isLastSibling,t,r)}o({moveToOpposite:e=>{const t={superscript:"subscript",subscript:"superscript",above:"below",below:"above"},r=e.at(e.position),{parent:i}=r;if(!i)return e.announce("plonk"),!1;const s=r.parentBranch;let c;if(typeof s=="string"&&(c=t[s]),!c){const k=r.subsupPlacement?mu(e):pu(e);return e.mathfield.stopCoalescingUndo(),k}i.branch(c)||i.createBranch(c);const u=e.setSelection(e.getBranchRange(e.offsetOf(i),c));return e.mathfield.stopCoalescingUndo(),u},moveBeforeParent:e=>{const{parent:t}=e.at(e.position);return t?(e.position=e.offsetOf(t),e.mathfield.stopCoalescingUndo(),!0):(e.announce("plonk"),!1)},moveAfterParent:e=>Ka(e),moveToNextChar:e=>is(e,"forward"),moveToPreviousChar:e=>is(e,"backward"),moveUp:e=>is(e,"upward"),moveDown:e=>is(e,"downward"),moveToNextWord:e=>Pl(e,"forward"),moveToPreviousWord:e=>Pl(e,"backward"),moveToGroupStart:e=>{const t=e.offsetOf(e.at(e.position).firstSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToGroupEnd:e=>{const t=e.offsetOf(e.at(e.position).lastSibling);return t===e.position?(e.announce("plonk"),!1):(e.position=t,e.mathfield.stopCoalescingUndo(),!0)},moveToNextGroup:e=>{var t,r,i,s;if(e.position===e.lastOffset&&e.anchor===e.lastOffset)return Wd(e,"forward");const c=e.at(e.position);if(c.mode==="text"){if(e.selectionIsCollapsed){let rt=c;for(;rt&&rt.mode==="text";)rt=rt.leftSibling;let gt=c;for(;((t=gt.rightSibling)==null?void 0:t.mode)==="text";)gt=gt.rightSibling;if(rt&&gt)return Ss(e,[rt,gt])}if(c.rightSibling.mode==="text"){let rt=c;for(;rt&&rt.mode==="text";)rt=rt.rightSibling;return rt?(dl(e,(r=rt.leftSibling)!=null?r:rt),e.mathfield.switchMode("math"),!0):dl(e,e.lastOffset)}}const k=e.at(e.anchor).parentPrompt,j=k?e.offsetOf(k)+1:Math.max(e.position+1,0),Y=Gd(e,j,"forward");if(Y)return dl(e,Y);const ce=Uu(e,c,rt=>rt.type==="leftright"||rt.type==="text","forward");if(ce){if(ce.mode==="text"){let rt=ce;for(;rt&&rt.mode==="text";)rt=rt.rightSibling;return Ss(e,[(i=ce.leftSibling)!=null?i:ce,(s=rt.leftSibling)!=null?s:rt])}return Ss(e,ce)}const Pe=c.parent;if(Pe){if(Pe.type==="leftright"||Pe.type==="surd")return Ss(e,Pe);if(c.parentBranch==="superscript"&&Pe.subscript)return Ss(e,Pe.subscript);if(c.parentBranch==="above"&&Pe.below)return Ss(e,Pe.below);if(c.parentBranch==="superscript"||c.parentBranch==="subscript")return dl(e,Pe);if(c.parentBranch==="above"||c.parentBranch==="below")return Ss(e,Pe)}return dl(e,e.lastOffset)},moveToPreviousGroup:e=>{var t;if(e.position===0&&e.anchor===0)return Wd(e,"backward");let r=e.at(e.position);const i=r.mode;if(i==="text"){if(e.selectionIsCollapsed){let k=r;for(;k&&k.mode==="text";)k=k.leftSibling;let j=r;for(;((t=j.rightSibling)==null?void 0:t.mode)==="text";)j=j.rightSibling;if(k&&j)return Ss(e,[k,j])}for(;r&&r.mode==="text";)r=r.leftSibling;return r?dl(e,r):dl(e,0)}const s=e.at(e.anchor).parentPrompt,c=s?e.offsetOf(s.leftSibling):Math.max(e.position-1,0),u=Gd(e,c,"backward");if(u)return dl(e,u);if(i==="math"){const k=Uu(e,r,Y=>Y.type==="leftright"||Y.type==="text","backward");if(k){if(k.mode==="text"){let Y=k;for(;Y&&Y.mode==="text";)Y=Y.leftSibling;return Ss(e,[k,Y])}return Ss(e,k)}const j=r.parent;if(j){if(j.type==="leftright"||j.type==="surd")return Ss(e,j);if(r.parentBranch==="subscript"&&j.superscript)return Ss(e,j.superscript);if(r.parentBranch==="below"&&j.above)return Ss(e,j.above);if(r.parentBranch==="superscript"||r.parentBranch==="subscript")return dl(e,j);if(r.parentBranch==="above"||r.parentBranch==="below")return Ss(e,j)}return dl(e,0)}return!1},moveToMathfieldStart:e=>e.selectionIsCollapsed&&e.position===0?(e.announce("plonk"),!1):(e.position=0,e.mathfield.stopCoalescingUndo(),!0),moveToMathfieldEnd:e=>e.selectionIsCollapsed&&e.position===e.lastOffset?(e.announce("plonk"),!1):(e.position=e.lastOffset,e.mathfield.stopCoalescingUndo(),!0),moveToSuperscript:pu,moveToSubscript:mu},{target:"model",changeSelection:!0}),o({moveToNextPlaceholder:e=>Wd(e,"forward"),moveToPreviousPlaceholder:e=>Wd(e,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function Uu(e,t,r,i){if(i==="forward"){let c=t.rightSibling;for(;c&&!r(c);)c=c.rightSibling;return c}let s=t.leftSibling;for(;s&&!r(s);)s=s.leftSibling;return s}function gu(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let i=e.position,s=!1,c="";for(;!s;){const u=e.at(i);s=t===0||u===void 0||u.type==="first"||u.mode!=="math"||!(u.type&&/mord|mpunct|operator/.test(u.type)||u.type==="mop"&&/[a-zA-Z ]+/.test(u.value))||!u.hasEmptyBranch("superscript")||!u.hasEmptyBranch("subscript")||typeof r=="function"&&!r(u),s||(u.mode="text",u.command=u.value,u.verbatimLatex=void 0,c+=u.value),i-=1,t-=1}e.contentDidChange({data:c,inputType:"insertText"})}function lA(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let i=e.position,s=!1;const c=[];for(;!s;){const u=e.at(i);s=t===0||!u||u.type==="first"||u.isFirstSibling||u.mode!=="text"||u.value===" "||typeof r=="function"&&!r(u),s||(c.push(Ur.serialize([u],{defaultMode:"math"})),u.mode="math"),i-=1,t-=1}vu(e),e.contentDidChange({data:co(c),inputType:"insertText"})}function vu(e){var t;let r=e.position-1;for(;r>=0&&((t=e.at(r))==null?void 0:t.mode)==="math";)r-=1;if(!(r<0)&&e.at(r).mode==="text"&&e.at(r).value===" "&&e.at(r-1).mode==="math"){e.at(r-1).parent.removeChild(e.at(r-1));const i=e.silenceNotifications;e.silenceNotifications=!0,e.position-=1,e.silenceNotifications=i,e.contentDidChange({inputType:"deleteContent"})}}function Ru(e){let t="",r=e.position,i=!1;for(;!i;){const s=e.at(r);i=!(s&&(s.mode==="text"||s.mode==="math"&&s.type&&/mord|mpunct/.test(s.type))),i||(t=s.value+t),r-=1}return t}function $h(e,t,r){const{model:i}=e;if(i.mode==="latex"||!i.at(i.position).isLastSibling||!r||!JA(r))return!1;const s=Qh(r);if(!i.selectionIsCollapsed)return!!(e.model.mode==="text"&&/[/_^]/.test(s));const c=Ru(i)+s;if(e.model.mode==="text"){if(t==="Esc"||/[/\\]/.test(s))return!0;if(/[\^_]/.test(s))return/(^|\s)[a-zA-Z][^_]$/.test(c)&&lA(i,1),!0;const u={")":"(","}":"{","]":"["}[s],{parent:k}=i.at(i.position);if(u&&k instanceof Ys&&k.leftDelim===u)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(c))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(s))return!0;if(/(^|[^a-zA-Z'])[a-zA-Z] $/.test(c))return lA(i,1),!1;if(/\D\.[^\d\s]$/.test(c)){lA(i,1);const j=i.at(i.position);return j.value="\u22C5",j.style.variant="normal",j.command="\\cdot",j.verbatimLatex=void 0,i.contentDidChange({data:"\\cdot",inputType:"insertText"}),!0}if(/(^|\s)[a-zA-Z][^a-zA-Z]$/.test(c)||/\.\d$/.test(c)||/\([\d+\-.]$/.test(c))return lA(i,1),!0;if(/\([a-z][,;]$/.test(c))return lA(i,2),!0;if(/[\d+\-=><*|]$/.test(s))return vu(i),!0}else{if(t==="[Space]")return gu(i,void 0,u=>/[a-z][:,;.]$/.test(u.value)),!0;if(/[a-zA-Z]{3,}$/.test(c)&&!/(dxd|abc|xyz|uvw)$/.test(c))return gu(i,void 0,u=>/[a-zA-Z]/.test(u.value)),!0;if(/(^|\W)(if)$/i.test(c))return gu(i,1),!0;if(/(\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5){3,}$/u.test(c)&&!/(αβγ)$/.test(c))return gu(i,void 0,u=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(u.value)),!0;if(s==="?"||s==="."&&!/[\d-+]\.$/.test(c))return!0}return!1}function Xd(e,t){if(!e.isSelectionEditable||!e.keystrokeCaptionVisible)return;const r=Vh(),i=e.element.getBoundingClientRect();r.style.left=`${i.left}px`,r.style.top=`${i.top-64}px`,r.innerHTML=window.MathfieldElement.createHTML("<span>"+(uu(t)||t)+"</span>"+r.innerHTML),r.style.visibility="visible",setTimeout(()=>{r.childNodes.length>0&&r.childNodes[r.childNodes.length-1].remove(),r.childNodes.length===0&&(r.style.visibility="hidden")},3e3)}function Zh(e){if(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaptionVisible){const t=Vh();t.innerHTML=""}else{const t=_p("mathlive-keystroke-caption-panel");t.style.visibility="hidden"}return!1}function Vh(){const e=document.getElementById("mathlive-keystroke-caption-panel");return e||(ud("keystroke-caption"),ud("core"),_p("mathlive-keystroke-caption-panel"))}function $0(){document.getElementById("mathlive-keystroke-caption-panel")&&(Ym("mathlive-keystroke-caption-panel"),dd("core"),dd("keystroke-caption"))}function Wh(e,t){var r,i,s;const{model:c}=e,u=Kh(t);if(t.isTrusted){Yc(t);const gt=Au();e.keyboardLayout!==gt.id&&(e.keyboardLayout=gt.id,e._keybindings=void 0)}if(clearTimeout(e.inlineShortcutBufferFlushTimer),e.inlineShortcutBufferFlushTimer=0,Xd(e,u),t.isTrusted&&t.defaultPrevented)return e.flushInlineShortcutBuffer(),!1;let k,j="",Y;const ce=e.inlineShortcutBuffer;if(e.isSelectionEditable){if(c.mode==="math")if(u==="[Backspace]")ce.pop();else if(!JA(t))e.flushInlineShortcutBuffer();else{const gt=Qh(t),Et=[...(i=(r=ce[ce.length-1])==null?void 0:r.keystrokes)!=null?i:[],gt];ce.push({state:c.getState(),keystrokes:Et,leftSiblings:Mp(e)});let Br=0,In="";for(;!k&&Br<Et.length;)Y=ce.length-(Et.length-Br),In=Et.slice(Br).join(""),k=M0(ce[Y].leftSiblings,In,e.options.inlineShortcuts),!k&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(In)&&(k=e.options.onInlineShortcut(e,In)),Br+=1;e.flushInlineShortcutBuffer({defer:!0})}e.options.smartMode&&(k?e.switchMode("math"):$h(e,u,t)&&(e.switchMode({math:"text",text:"math"}[c.mode]),j=""))}if(!k){if(j||(j=bg(e.keybindings,c.mode,t)),!j&&(u==="[Enter]"||u==="[Return]")){let gt=!1;return c.contentWillChange({inputType:"insertLineBreak"})&&(e.host&&(gt=!e.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),gt||t.preventDefault&&(t.preventDefault(),t.stopPropagation()),c.contentDidChange({inputType:"insertLineBreak"})),gt}if((!j||u==="[Space]")&&c.mode==="math"){if(u==="[Space]"){if(e.adoptStyle="none",e.flushInlineShortcutBuffer(),e.options.mathModeSpace)return Ls.insert(c,e.options.mathModeSpace,{format:"latex",mode:"math"}),e.snapshot("insert-space"),j="",e.dirty=!0,e.scrollIntoView(),t.preventDefault&&(t.preventDefault(),t.stopPropagation()),!1;const gt=c.at(c.position+1),Et=c.at(c.position-1);if((gt==null?void 0:gt.mode)==="text"||(Et==null?void 0:Et.mode)==="text")return Ls.insert(c," ",{mode:"text"}),e.snapshot("insert-space"),e.dirty=!0,e.scrollIntoView(),!1}(s=c.at(c.position))!=null&&s.isDigit()&&window.MathfieldElement.decimalSeparator===","&&Qh(t)===","&&(j="insertDecimalSeparator")}}if(!k&&!j){if(c.mathfield.smartFence){if(YA(c,Qh(t),e.effectiveStyle))return e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}else{const{parent:gt}=c.at(c.position);if(gt instanceof Ys&&gt.rightDelim==="?"&&c.at(c.position).isLastSibling&&/^[)}\]|]$/.test(u))return e.snapshot(),gt.isDirty=!0,gt.rightDelim=u,c.position+=1,c.selectionDidChange(),c.contentDidChange({data:Qh(t),inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1;if(!c.selectionIsCollapsed){const Et=Qh(t);if(Et==="("||Et==="{"||Et==="["){const Br={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Et],In={"(":")","{":"\\rbrace","[":"\\rbrack"}[Et],[wr,nn]=Jl(c.selection);return e.snapshot(),c.position=nn,Ls.insert(c,In,{format:"latex"}),c.position=wr,Ls.insert(c,Br,{format:"latex"}),c.setSelection(wr+1,nn+1),c.contentDidChange({data:Et,inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}}}return!0}const Pe=c.at(Math.max(c.position,c.anchor)),{parent:rt}=Pe;if(j==="moveAfterParent"&&(rt==null?void 0:rt.type)==="leftright"&&Pe.isLastSibling&&e.options.smartFence&&YA(c,".",e.defaultStyle)&&(j="",Il(e)),e.keyboardDelegate.cancelComposition(),j)e.executeCommand(j);else if(k){const gt=e.effectiveStyle;c.setState(ce[Y].state);const Et=ce[ce.length-1].keystrokes;for(const Br of Et)Ls.insert(c,Br,{silenceNotifications:!0,style:gt});e.snapshot("insert-shortcut"),c.setState(ce[Y].state),c.deferNotifications({content:!0,selection:!0,data:k,type:"insertText"},()=>(Ls.insert(c,k,{format:"latex",style:gt}),vu(e.model),k.endsWith(" ")&&(e.switchMode("text"),Ls.insert(c," ",{style:gt,mode:"text"})),e.snapshot(),c.selectionIsCollapsed||e.flushInlineShortcutBuffer(),!0)),e.dirty=!0,c.announce("replacement")}return e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}function Fp(e,t,r){const{model:i}=e;if(!e.isSelectionEditable){i.announce("plonk");return}r!=null||(r={}),r.focus&&e.focus(),r.feedback&&window.MathfieldElement.playSound("keypress"),typeof r.mode=="string"&&(e.switchMode(r.mode),e.snapshot());let s=BA(t);const c=window.mathVirtualKeyboard;if(c!=null&&c.isShifted&&(s=typeof s=="string"?s.toUpperCase():s.map(j=>j.toUpperCase())),r.simulateKeystroke){let j=!0;for(const Y of s)Wh(e,new KeyboardEvent("keypress",{key:Y}))&&(j=!1);if(j)return}const u=i.at(i.position),k=g(g({},u.computedStyle),e.defaultStyle);if(i.selectionIsCollapsed||(i.deleteAtoms(Jl(i.selection)),e.snapshot("delete")),i.mode==="latex")i.deferNotifications({content:!0,selection:!0,data:t,type:"insertText"},()=>{Am(e);for(const j of s)Ls.insert(i,j);e.snapshot("insert-latex"),Ep(e)});else if(i.mode==="text"){for(const j of s)Ls.insert(i,j,{style:k});e.snapshot("insert-text")}else if(i.mode==="math")for(const j of s)pm(e,j,k,u);e.dirty=!0,e.scrollIntoView()}function Mp(e){const t=e.model,r=[];let i=t.at(Math.min(t.position,t.anchor));for(;i.type!=="first";)r.push(i),i=i.leftSibling;return r}function pm(e,t,r,i){const s=e.model;let c={"^":"moveToSuperscript",_:"moveToSubscript"," ":"moveAfterParent"}[t];if(t===" "&&e.options.mathModeSpace&&(c=["insert",e.options.mathModeSpace]),c){e.executeCommand(c);return}if(/\d/.test(t)&&e.options.smartSuperscript&&i.parentBranch==="superscript"&&i.parent.type!=="mop"&&i.parent.type!=="operator"&&i.parent.type!=="extensible-symbol"&&i.hasNoSiblings){mm(s),Ls.insert(s,t,{style:r}),e.snapshot(),Ka(s),e.snapshot();return}if(/[a-zA-Z0-9]/.test(t)&&e.adoptStyle!=="none"){const u=e.adoptStyle==="left"?i:i.parent?i.rightSibling:null;(u==null?void 0:u.type)==="mord"&&/[a-zA-Z0-9]/.test(u.value)&&(r=g({},r),u.style.variant&&(r.variant=u.style.variant),u.style.variantStyle&&(r.variantStyle=u.style.variantStyle))}Ls.insert(s,t,{style:r}),e.snapshot(`insert-${s.at(s.position).type}`)}function mm(e){e.selectionIsCollapsed||(e.deleteAtoms(Jl(e.selection)),e.mathfield.snapshot("delete"))}function YA(e,t,r){if(!t||e.mode!=="math")return!1;const i=e.at(e.position),{parent:s}=i,c={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[t];if(!c)return!1;const u=Dh[c],k=Kd[c];if(!e.selectionIsCollapsed){e.mathfield.snapshot();const[j,Y]=Jl(e.selection),ce=e.extractAtoms([j,Y]),Pe=s.addChildrenAfter([new Ys("left...right",ce,{leftDelim:c,rightDelim:k})],e.at(j));return e.setSelection(e.offsetOf(Pe.firstChild),e.offsetOf(Pe.lastChild)),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:c,inputType:"insertText"}),!0}if(c==="|"){const j=s instanceof Ys?s.leftDelim+s.rightDelim:"";if(j==="\\lbrace\\rbrace"||j==="\\{\\}"||j==="\\lbrace?")return e.mathfield.snapshot(),Ls.insert(e,"\\,\\middle\\vert\\,",{format:"latex",style:r}),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:c,inputType:"insertText"}),!0}if(k){if(s instanceof Ys&&s.firstChild===i&&(s.leftDelim==="?"||s.leftDelim==="."))return s.leftDelim=c,s.isDirty=!0,e.mathfield.snapshot(),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(!(s instanceof Ys)){let Pe=i;for(;Pe&&!(Pe.type==="mclose"&&Pe.value===k);)Pe=Pe.rightSibling;if(Pe){e.mathfield.snapshot();const rt=e.extractAtoms([e.offsetOf(i),e.offsetOf(Pe)]);return rt.pop(),s.addChildrenAfter([new Ys("left...right",rt,{leftDelim:c,rightDelim:k})],i),e.position=e.offsetOf(s.firstChild)+1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}}const j=e.offsetOf(i.lastSibling);let Y;for(Y=e.position;Y<=j;Y++){const Pe=e.at(Y);if(Pe instanceof Ys&&(Pe.leftDelim==="?"||Pe.leftDelim===".")&&Lp(c,Pe.rightDelim))break}const ce=e.at(Y);if(Y<=j&&ce instanceof Ys){ce.leftDelim=c,e.mathfield.snapshot();let Pe=e.extractAtoms([e.position,Y-1]);return Pe=Pe.filter(rt=>rt.type!=="first"),ce.addChildren(Pe,ce.parentBranch),e.position+=1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(s instanceof Ys&&(s.leftDelim==="?"||s.leftDelim===".")&&Lp(c,s.rightDelim)){s.isDirty=!0,s.leftDelim=c,e.mathfield.snapshot();const Pe=e.extractAtoms([e.offsetOf(i.firstSibling),e.position]);for(const rt of Pe)s.parent.addChildBefore(rt,s);return e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(!(s instanceof Ys&&s.leftDelim==="|")){if(e.mathfield.snapshot(),Ls.insert(e,`\\left${c}\\right?`,{format:"latex",style:r}),i.lastSibling.type!=="first"){const Pe=e.offsetOf(i.lastSibling),rt=e.extractAtoms([e.position,Pe]);e.at(e.position).body=rt,e.position-=1}return e.mathfield.snapshot("insert-fence"),!0}}if(u){let j=i;for(;j;){if(j.type==="mopen"&&j.value===u){e.mathfield.snapshot();const gt=j.leftSibling,Et=e.extractAtoms([e.offsetOf(j.leftSibling),e.offsetOf(i)]);Et.shift();const Br=new Ys("left...right",Et,{leftDelim:u,rightDelim:c});return s.addChildrenAfter([Br],gt),e.position=e.offsetOf(Br),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}j=j.leftSibling}if(s instanceof Ys&&i.isLastSibling&&Gh(s.leftDelim,c))return e.mathfield.snapshot(),s.isDirty=!0,s.rightDelim=c,e.position+=1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const Y=e.offsetOf(i.firstSibling);let ce;for(ce=e.position;ce>=Y;ce--){const gt=e.at(ce);if(gt instanceof Ys&&(gt.rightDelim==="?"||gt.rightDelim===".")&&Gh(gt.leftDelim,c))break}const Pe=e.at(ce);if(ce>=Y&&Pe instanceof Ys)return e.mathfield.snapshot(),Pe.rightDelim=c,Pe.addChildren(e.extractAtoms([ce,e.position]),Pe.parentBranch),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(s instanceof Ys&&(s.rightDelim==="?"||s.rightDelim===".")&&Gh(s.leftDelim,c))return e.mathfield.snapshot(),s.isDirty=!0,s.rightDelim=c,s.parent.addChildren(e.extractAtoms([e.position,e.offsetOf(i.lastSibling)]),s.parentBranch),e.position=e.offsetOf(s),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const rt=s.parent;return rt instanceof Ys&&(rt.rightDelim==="?"||rt.rightDelim===".")&&e.at(e.position).isLastSibling?(e.position=e.offsetOf(rt),YA(e,c,r)):!1}return!1}function Gh(e,t){return e?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t):Kd[e]===t:!0}function Lp(e,t){return t?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e):Dh[t]===e:!0}o({undo:e=>(e.undo(),!0),redo:e=>(e.redo(),!0),scrollIntoView:e=>(e.scrollIntoView(),!0),scrollToStart:e=>(e.field.scroll(0,0),!0),scrollToEnd:e=>{const t=e.field.getBoundingClientRect();return e.field.scroll(t.left-window.scrollX,0),!0},toggleKeystrokeCaption:Zh,toggleContextMenu:e=>{const t=e.toggleContextMenu();return t||e.model.announce("plonk"),t},plonk:e=>(e.model.announce("plonk"),!0),switchMode:(e,t,r,i)=>(e.switchMode(t,r,i),!0),insert:(e,t,r)=>e.insert(t,r),typedText:(e,t,r)=>(Fp(e,t,r),!0),insertDecimalSeparator:e=>{const t=e.model;return t.mode==="math"&&window.MathfieldElement.decimalSeparator===","&&t.at(Math.max(t.position,t.anchor)).isDigit()?(e.insert("{,}",{format:"latex"}),e.snapshot("insert-mord"),!0):(e.insert("."),!0)},commit:e=>{var t;return e.model.contentWillChange({inputType:"insertLineBreak"})&&((t=e.host)==null||t.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),e.model.contentDidChange({inputType:"insertLineBreak"})),!0},insertPrompt:(e,t,r)=>{const i=e.getPrompts();let s="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),c=0;for(;i.includes(s)&&c<100;){if(c===99)return console.error("could not find a unique ID after 100 tries"),!1;s="prompt-"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36),c++}return e.insert(`\\placeholder[${t!=null?t:s}]{}`,r),!0}}),o({copyToClipboard:e=>(e.focus(),e.model.selectionIsCollapsed&&e.select(),"queryCommandSupported"in document&&document.queryCommandSupported("copy")?document.execCommand("copy"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("copy",{bubbles:!0,composed:!0})),!1)},{target:"mathfield"}),o({cutToClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("cut")?document.execCommand("cut"):e.element.querySelector(".ML__keyboard-sink").dispatchEvent(new ClipboardEvent("cut",{bubbles:!0,composed:!0})),!0),pasteFromClipboard:e=>(e.focus(),"queryCommandSupported"in document&&document.queryCommandSupported("paste")?(document.execCommand("paste"),!0):(navigator.clipboard.readText().then(t=>{t&&e.model.contentWillChange({inputType:"insertFromPaste",data:t})?(e.stopCoalescingUndo(),e.stopRecording(),e.insert(t,{mode:e.model.mode})&&(Ep(e),e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),Il(e))):e.model.announce("plonk"),e.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function kp(e,t){e.flushInlineShortcutBuffer(),e.stopCoalescingUndo();const r=Z0(e,t),{model:i}=e;return i.selectionIsCollapsed?(e.defaultStyle.fontSeries&&r.fontSeries===e.defaultStyle.fontSeries&&(r.fontSeries="auto"),r.fontShape&&r.fontShape===e.defaultStyle.fontShape&&(r.fontShape="auto"),r.color&&r.color===e.defaultStyle.color&&(r.color="none"),r.backgroundColor&&r.backgroundColor===e.defaultStyle.backgroundColor&&(r.backgroundColor="none"),r.fontSize&&r.fontSize===e.defaultStyle.fontSize&&(r.fontSize="auto"),e.defaultStyle=g(g({},e.defaultStyle),r)):e.model.deferNotifications({content:!0,type:"insertText"},()=>{i.selection.ranges.forEach(s=>Wo(i,s,r,{operation:"toggle"})),e.snapshot("style-change")}),!0}o({applyStyle:kp},{target:"mathfield",canUndo:!0,changeContent:!0});function Z0(e,t){var r,i,s,c,u,k,j,Y,ce,Pe;const rt={};if(typeof t.color=="string"){const Et=(i=e.colorMap((r=t.color)!=null?r:t.verbatimColor))!=null?i:"none";Et!==t.color&&(rt.verbatimColor=(s=t.verbatimColor)!=null?s:t.color),rt.color=Et}if(typeof t.backgroundColor=="string"){const Et=(u=e.backgroundColorMap((c=t.backgroundColor)!=null?c:t.verbatimBackgroundColor))!=null?u:"none";Et!==t.backgroundColor&&(rt.verbatimBackgroundColor=(k=t.verbatimBackgroundColor)!=null?k:t.backgroundColor),rt.backgroundColor=Et}typeof t.fontFamily=="string"&&(rt.fontFamily=t.fontFamily),typeof t.series=="string"&&(rt.fontSeries=t.series),typeof t.fontSeries=="string"&&(rt.fontSeries=t.fontSeries.toLowerCase()),rt.fontSeries&&(rt.fontSeries=(j={bold:"b",medium:"m",normal:"m"}[rt.fontSeries])!=null?j:rt.fontSeries),typeof t.shape=="string"&&(rt.fontShape=t.shape),typeof t.fontShape=="string"&&(rt.fontShape=t.fontShape.toLowerCase()),rt.fontShape&&(rt.fontShape=(Y={italic:"it",up:"n",upright:"n",normal:"n"}[rt.fontShape])!=null?Y:rt.fontShape),t.variant&&(rt.variant=t.variant.toLowerCase()),t.variantStyle&&(rt.variantStyle=t.variantStyle.toLowerCase());const gt=(ce=t.size)!=null?ce:t.fontSize;return typeof gt=="number"?rt.fontSize=Math.max(1,Math.min(10,gt)):typeof gt=="string"&&(rt.fontSize=(Pe={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[gt.toLowerCase()])!=null?Pe:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[gt]),rt}function V0(e){let[t,r]=Jl(e.selection);if(t=Dp(e,t,"backward"),r=Dp(e,r,"forward"),t===r){const i=e.at(t);if(i.type==="leftright")return e.setSelection(e.offsetOf(i.firstChild)-1,r);if(i.type==="first"&&(i.parent.type==="leftright"||i.parent.type==="surd"))return e.setSelection(t-1,e.offsetOf(i.parent.lastChild)+1);e.setSelection(t-1,r)}else e.setSelection(t,r);return!0}function Dp(e,t,r){var i,s,c;let u=e.at(t);if(!u)return t;const k=r==="forward"?1:-1;if(u.mode==="text"){for(;u&&!(u.mode!=="text"||!d.test(u.value));)t+=k,u=e.at(t);return r==="backward"?t-1:t}if(u.mode==="latex"){if(/[a-zA-Z\*]/.test(u.value))if(r==="backward")for(;u&&u.mode==="latex"&&u.value!=="\\"&&/[a-zA-Z]/.test(u.value);)t+=k,u=e.at(t);else for(;u&&u.mode==="latex"&&/[a-zA-Z\*]/.test(u.value);)t+=k,u=e.at(t);else if(u.value==="{"){if(r==="forward"){for(;u&&u.mode==="latex"&&u.value!=="}";)t+=k,u=e.at(t);return t}return t-1}else if(u.value==="}"){if(r==="backward"){for(;u&&u.mode==="latex"&&u.value!=="{";)t+=k,u=e.at(t);return t-1}return t}return t-1}if(u.mode==="math"){if(u.isDigit()){for(;(i=e.at(t+k))!=null&&i.isDigit();)t+=k;return r==="backward"?t-1:t}if(u.style.variant||u.style.variantStyle){let j=(s=e.at(t))==null?void 0:s.style;for(;j&&j.variant===u.style.variant&&j.variantStyle===u.style.variantStyle;)j=(c=e.at(t+k))==null?void 0:c.style,t+=k;return r==="backward"?t-1:t}return t}return t}o({selectGroup:e=>{const t=V0(e);return t||e.announce("plonk"),t},selectAll:e=>e.setSelection(0,e.lastOffset),extendSelectionForward:e=>is(e,"forward",{extend:!0}),extendSelectionBackward:e=>is(e,"backward",{extend:!0}),extendToNextWord:e=>Pl(e,"forward",{extend:!0}),extendToPreviousWord:e=>Pl(e,"backward",{extend:!0}),extendSelectionUpward:e=>is(e,"upward",{extend:!0}),extendSelectionDownward:e=>is(e,"downward",{extend:!0}),extendToNextBoundary:e=>Pl(e,"forward",{extend:!0}),extendToPreviousBoundary:e=>Pl(e,"backward",{extend:!0}),extendToGroupStart:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).firstSibling));return t||e.announce("plonk"),t},extendToGroupEnd:e=>{const t=e.setSelection(e.anchor,e.offsetOf(e.at(e.position).lastSibling));return t||e.announce("plonk"),t},extendToMathFieldStart:e=>{const t=e.setSelection(e.anchor,0);return t||e.announce("plonk"),t},extendToMathFieldEnd:e=>{const t=e.setSelection(e.anchor,e.lastOffset);return t||e.announce("plonk"),t}},{target:"model",changeSelection:!0});var Qu=null,Xh=0,ec=class lf{static start(t,r,i,s){var c;lf.element=t,(c=lf.controller)==null||c.abort(),lf.controller=new AbortController;const u={signal:lf.controller.signal};"PointerEvent"in window?(t.addEventListener("pointermove",i,u),t.addEventListener("pointerup",s,u),t.addEventListener("pointercancel",s,u),W0(r)&&(lf.pointerId=r.pointerId,t.setPointerCapture(r.pointerId))):(window.addEventListener("mousemove",i,u),window.addEventListener("blur",s,u),window.addEventListener("mouseup",s,u))}static stop(){var t;(t=lf.controller)==null||t.abort(),lf.controller=void 0,typeof lf.pointerId=="number"&&(lf.element.releasePointerCapture(lf.pointerId),lf.pointerId=void 0)}};function W0(e){return e!==null&&globalThis.PointerEvent!==void 0&&e instanceof PointerEvent}function Op(e,t){var r;if(t.buttons>1)return;e.atomBoundsCache=new Map;const i=e;let s,c=!1,u=!1,k="none",j=!1,Y=!1;const ce=t.clientX,Pe=t.clientY,rt=Date.now(),gt=i.field,Et=setInterval(()=>{j?gt.scroll({top:0,left:gt.scrollLeft-16}):Y&&gt.scroll({top:0,left:gt.scrollLeft+16})},32);function Br(){ec.stop(),c=!1,clearInterval(Et),e.element.classList.remove("tracking"),t&&t.preventDefault()}function In(nn){if(!i.hasFocus()){Br();return}const kn=nn.clientX,dn=nn.clientY,Bi=W0(nn)&&nn.pointerType==="touch"?20:5;if(Date.now()<rt+500&&Math.abs(ce-kn)<Bi&&Math.abs(Pe-dn)<Bi){nn.preventDefault(),nn.stopPropagation();return}const qi=gt.getBoundingClientRect();Y=kn>qi.right,j=kn<qi.left;let Ui=s;W0(nn)&&(nn.isPrimary||(Ui=vd(i,nn.clientX,nn.clientY,{bias:0})));const h=vd(i,kn,dn,{bias:kn<=ce?kn===ce?0:-1:1});Ui>=0&&h>=0&&(i.model.extendSelectionTo(Ui,h),Il(e)),u&&V0(i.model)}Qu&&Math.abs(Qu.x-ce)<5&&Math.abs(Qu.y-Pe)<5&&Date.now()<Qu.time+500?(Xh+=1,Qu.time=rt):(Qu={x:ce,y:Pe,time:rt},Xh=1);const wr=gt.getBoundingClientRect();if(ce>=wr.left&&ce<=wr.right&&Pe>=wr.top&&Pe<=wr.bottom){if(e.flushInlineShortcutBuffer(),e.adoptStyle="left",s=vd(e,ce,Pe,{bias:0}),s>=0){if(e.element.classList.add("tracking"),t.shiftKey){const nn=e.model.selectionIsCollapsed;e.model.extendSelectionTo(e.model.anchor,s),um(e.model)||nn?k="all":k="selection"}else e.model.at(s).type==="placeholder"?(e.model.setSelection(s-1,s),k="selection"):((r=e.model.at(s).rightSibling)==null?void 0:r.type)==="placeholder"?(e.model.setSelection(s,s+1),k="selection"):(e.model.position=s,um(e.model)?k="all":k="selection");e.defaultStyle={},t.detail===3||Xh>2?(Br(),(t.detail===3||Xh===3)&&(e.model.selection={ranges:[[0,e.model.lastOffset]]},k="all")):c||(c=!0,ec.start(gt,t,In,Br),(t.detail===2||Xh===2)&&(u=!0,V0(e.model),k="all"))}e.hasFocus()||(k="none",e.focus({preventScroll:!0}))}else Qu=null;e.stopCoalescingUndo(),k!=="none"&&(e.model.selectionIsCollapsed&&(k="all"),Il(e)),t.preventDefault()}function kf(e,t,r){if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom)return 0;const i=e-(r.left+r.right)/2,s=t-(r.top+r.bottom)/2;return i*i+s*s}function ch(e,t,r,i,s){if(!r.id)return[1/0,null];if(t.has(r.id))return t.get(r.id);const c=nh(e,r);if(!c)return[1/0,null];let u=[1/0,null];if(r.hasChildren&&!r.captureSelection&&i>=c.left&&i<=c.right)for(const k of r.children){const j=ch(e,t,k,i,s);j[0]<=u[0]&&(u=j)}return u[1]||(u=[kf(i,s,c),r]),t.set(r.id,u),u}function gd(e,t,r){const[,i]=ch(e,new Map,e.model.root,t,r);return i}function vd(e,t,r,i){var s;const c=e.field.querySelector(".ML__latex").getBoundingClientRect();if(!c)return 0;if(t>c.right||r>c.bottom+8)return e.model.lastOffset;if(t<c.left||r<c.top-8)return 0;i=i!=null?i:{},i.bias=(s=i.bias)!=null?s:0;let u=gd(e,t,r);const k=[];let j=u;for(;j;)k.unshift(j),j=j.parent;for(const ce of k)if(ce.captureSelection){u=ce;break}let Y=e.model.offsetOf(u);if(Y<0)return-1;if(u.leftSibling)if(i.bias===0&&u.type!=="placeholder"){const ce=nh(e,u);ce&&t<(ce.left+ce.right)/2&&(Y=e.model.offsetOf(u.leftSibling))}else i.bias<0&&(Y=e.model.offsetOf(u.leftSibling));return Y}var gc=class extends Ls{constructor(){super("math")}onPaste(e,t){if(!t||!e.model.contentWillChange({data:typeof t=="string"?t:null,dataTransfer:typeof t=="string"?null:t,inputType:"insertFromPaste"}))return!1;let r="",i="auto",s=typeof t!="string"?t.getData("application/json+mathlive"):"";if(s)try{const c=JSON.parse(s);if(c&&Array.isArray(c)){e.snapshot();const u=La(c),{model:k}=e;k.selectionIsCollapsed||k.deleteAtoms(Jl(k.selection));const j=k.at(k.position);if(j.parent instanceof fs){console.assert(j.parentBranch!==void 0);const Y=[];let ce=[];u[0].type==="first"&&u.shift(),u[u.length-1].type==="first"&&u.pop();for(const Et of u)Et.type==="first"&&ce.length>0?(Y.push(ce),ce=[Et]):ce.push(Et);ce.length>0&&Y.push(ce);let Pe=Number(j.parentBranch[0]),rt=Number(j.parentBranch[1]);const gt=j.parent.maxColumns;for(;j.parent.colCount-rt<Y.length&&j.parent.colCount<gt;)j.parent.addColumn();j.parent.addChildrenAfter(Y[0],j);for(let Et=1;Et<Y.length;Et++)rt++,rt>=gt&&(rt=0,j.parent.addRowAfter(Pe),Pe++),j.parent.setCell(Pe,rt,Y[Et])}else j.parent.addChildrenAfter(u.filter(Y=>Y.type!=="first"),j);return k.position=k.offsetOf(u[u.length-1]),k.contentDidChange({inputType:"insertFromPaste"}),Il(e),!0}}catch(c){}if(s=typeof t!="string"?t.getData("application/json"):"",s&&window.MathfieldElement.computeEngine)try{const c=JSON.parse(s);if(typeof c=="object"&&"latex"in c&&c.latex&&(r=c.latex),!r){const u=window.MathfieldElement.computeEngine.box(c);u&&!u.has("Error")&&(r=u.latex)}r||(i="latex")}catch(c){}if(!r&&typeof t!="string"&&(r=t.getData("application/x-latex"),r&&(i="latex")),r||(r=typeof t=="string"?t:t.getData("text/plain")),r){let c;return[c,r]=eh(r),i==="auto"&&c&&(i="latex"),e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r,{format:i})&&(e.startRecording(),e.snapshot("paste"),Il(e)),e.startRecording(),!0}return!1}insert(e,t,r){var i,s;const c=typeof t=="string"?t:(s=(i=window.MathfieldElement.computeEngine)==null?void 0:i.box(t).latex)!=null?s:"";if(!r.silenceNotifications&&!e.contentWillChange({data:c,inputType:"insertText"}))return!1;r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder"),r.format||(r.format="auto");const{silenceNotifications:u}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const k=e.silenceNotifications;e.silenceNotifications=!0;const j={"?":"\\placeholder{}","@":"\\placeholder{}"};j[0]=r.insertionMode==="replaceAll"?"":e.getValue(e.selection,"latex-unstyled"),r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Jl(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward"),!e.at(e.position).isLastSibling&&e.at(e.position+1).type==="placeholder"?e.deleteAtoms([e.position,e.position+1]):e.at(e.position).type==="placeholder"&&e.deleteAtoms([e.position-1,e.position]);let Y=-1;j[0]?j["@"]=j[0]:typeof t=="string"&&/(^|[^\\])#@/.test(t)&&(Y=rg(e),Y>=0&&(j["@"]=e.getValue(Y,e.position,"latex"))),j[0]||(j[0]=j["?"]);let ce=!1;const Pe=kn=>(ce=!0,j[kn]);let[rt,gt]=G0(e,t,Pe,r);if(!gt)return!1;const Et=gt.length===1&&gt[0].type==="genfrac";Et&&Y>=0&&typeof e.mathfield.options.isImplicitFunction=="function"&&e.mathfield.options.isImplicitFunction(e.at(e.position).command)?(j["@"]=j["?"],ce=!1,[rt,gt]=G0(e,t,Pe,r)):Y>=0&&e.deleteAtoms([Y,e.position]);const{parent:Br}=e.at(e.position),In=Br.hasEmptyBranch("body");if(Et&&rt!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&Br instanceof Ys&&Br.leftDelim==="("&&In){const kn=Br.parent,dn=Br.parentBranch;kn.removeChild(Br),kn.setChildren(gt,dn)}const wr=e.at(e.position);wr.parent.addChildrenAfter(gt,wr),rt==="latex"&&typeof t=="string"&&(Br==null?void 0:Br.type)==="root"&&In&&!ce&&(Br.verbatimLatex=t),e.silenceNotifications=k;const nn=gt[gt.length-1];if(r.selectionMode==="placeholder"){const kn=gt.flatMap(dn=>[dn,...dn.children]).find(dn=>dn.type==="placeholder");if(kn){const dn=e.offsetOf(kn);e.setSelection(dn-1,dn),e.announce("move")}else nn&&(e.position=e.offsetOf(nn))}else r.selectionMode==="before"||(r.selectionMode==="after"?nn&&(e.position=e.offsetOf(nn)):r.selectionMode==="item"&&e.setSelection(e.anchor,e.offsetOf(nn)));return e.contentDidChange({data:c,inputType:"insertText"}),e.silenceNotifications=u,!0}};function G0(e,t,r,i){var s;let c,u=[];if(typeof t!="string"||i.format==="math-json"){const k=window.MathfieldElement.computeEngine;if(!k)return["math-json",[]];[c,t]=["latex",k.box(t).latex],u=hc(t,{context:e.mathfield.context})}else typeof t=="string"&&i.format==="ascii-math"?([c,t]=L0(t,{format:"ascii-math",inlineShortcuts:e.mathfield.options.inlineShortcuts}),u=hc(t,{context:e.mathfield.context}),c!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&X0(u)):(i.format==="auto"||(s=i.format)!=null&&s.startsWith("latex"))&&(i.format==="auto"&&([c,t]=L0(t,{format:"auto",inlineShortcuts:e.mathfield.options.inlineShortcuts})),i.format==="latex"&&([,t]=eh(t)),u=hc(t,{context:e.mathfield.context,args:r}),i.format!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&X0(u));return Ft(u,i.style),[c!=null?c:"latex",u]}function tg(e){if(!e||(console.assert(e[0].type==="first"),e.length>1))return null;const t=e[0];return t instanceof Ys&&t.leftDelim==="("&&t.rightDelim===")"?t.removeBranch("body"):null}function X0(e){if(e){for(let t=0;e[t];t++){const r=e[t];if(r instanceof Ys&&r.leftDelim==="("){let i=0,s=0,c=0;for(let u=0;r.body[u];u++)r.body[u].type==="genfrac"&&(i++,s=u),c++;c===0&&i===1&&(e[t]=r.body[s])}}for(const t of e){for(const r of t.branches)if(!t.hasEmptyBranch(r)){X0(t.branch(r));const i=tg(t.branch(r));i&&t.setChildren(i,r)}if(t instanceof fs)for(const r of t.cells)X0(r)}}}function rg(e){let t=e.at(e.position);if(t.mode==="text"){for(;!t.isFirstSibling&&t.mode==="text";)t=t.leftSibling;return e.offsetOf(t)}const r=t;let i=!1;if(t.type==="mclose"){const s=Dh[t.value];for(;!t.isFirstSibling&&!(t.type==="mopen"&&t.value===s);)t=t.leftSibling;t.isFirstSibling||(t=t.leftSibling),i=!0}else t.type==="leftright"&&(t=t.leftSibling,i=!0);if(i)for(;!t.isFirstSibling&&(t.isFunction||bd(t));)t=t.leftSibling;else{const s=[];for(;!t.isFirstSibling&&(bd(t)||s.length>0);)t.type==="mclose"&&s.unshift(t.value),t.type==="mopen"&&s.length>0&&t.value===Dh[s[0]]&&s.shift(),t=t.leftSibling}return r===t?-1:e.offsetOf(t)}function bd(e){return e.isDigit()?!0:e.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(e.type)?!e.isExtensibleSymbol:!1}new gc;var gm=class extends Ls{constructor(){super("text")}onPaste(e,t){if(!t)return!1;const r=typeof t=="string"?t:t.getData("text/plain");return r&&e.model.contentWillChange({inputType:"insertFromPaste",data:r})?(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r)&&(e.model.contentDidChange({inputType:"insertFromPaste"}),e.startRecording(),e.snapshot("paste"),Il(e)),e.startRecording(),!0):!1}insert(e,t,r={}){if(!e.contentWillChange({data:t,inputType:"insertText"}))return!1;r.insertionMode||(r.insertionMode="replaceSelection"),r.selectionMode||(r.selectionMode="placeholder"),r.format||(r.format="auto");const{silenceNotifications:i}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const s=e.silenceNotifications;e.silenceNotifications=!0,r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Jl(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward");const c=vm(t,e.mathfield.context);if(Ft(c,r.style),!c)return!1;const u=e.at(e.position),k=u.parent.addChildrenAfter(c,u);return e.silenceNotifications=s,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(k)):k&&(e.position=e.offsetOf(k))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=i,!0}};function vm(e,t){return e=e.replace(/\\/g,"\\textbackslash "),e=e.replace(/#/g,"\\#"),e=e.replace(/\$/g,"\\$"),e=e.replace(/%/g,"\\%"),e=e.replace(/&/g,"\\&"),e=e.replace(/_/g,"\\_"),e=e.replace(/{/g,"\\textbraceleft "),e=e.replace(/}/g,"\\textbraceright "),e=e.replace(/lbrace/g,"\\textbraceleft "),e=e.replace(/rbrace/g,"\\textbraceright "),e=e.replace(/\^/g,"\\textasciicircum "),e=e.replace(/~/g,"\\textasciitilde "),e=e.replace(/£/g,"\\textsterling "),hc(e,{context:t,parseMode:"text"})}new gm;function cA(e){return{value:e.model.getValue(),selectionIsCollapsed:e.model.selectionIsCollapsed,canUndo:e.canUndo(),canRedo:e.canRedo(),style:e.selectionStyle,mode:e.model.mode}}var Es=4,AA=20,Tl=2*(AA+Es),J0=(e,t)=>`
<line x1="${e+AA}" y1="${t+AA}"
x2="${e>t?e+AA:7*AA+10*Es}"
y2="${e<t?t+AA:7*AA+10*Es}"/>
<svg id="plus" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<path class="font" d="m33.33,20c0,1.84-1.49,3.34-3.33,3.34h-6.67v6.66c0,1.84-1.49,3.34-3.33,3.34s-3.34-1.5-3.34-3.34v-6.66h-6.66c-1.84,0-3.34-1.5-3.34-3.34s1.5-3.33,3.34-3.33h6.66v-6.67c0-1.84,1.5-3.33,3.34-3.33s3.33,1.49,3.33,3.33v6.67h6.67c1.84,0,3.33,1.49,3.33,3.33Z"/>
</svg>`,Y0=(e,t)=>`
<line x1="${e+AA}" y1="${t+AA}"
x2="${e>t?e+AA:7*AA+10*Es}"
y2="${e<t?t+AA:7*AA+10*Es}"/>
<svg id="minus" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<path class="font" d="m33.33,20c0,1.84-1.49,3.33-3.33,3.33H10c-1.84,0-3.34-1.49-3.34-3.33s1.5-3.34,3.34-3.34h20c1.84,0,3.33,1.5,3.33,3.34Z"/>
</svg>`,Jd=(e,t,r)=>`
<svg id="arrow" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
<circle class="cls-2" cx="20" cy="20" r="20"/>
<g transform="rotate(${r})" transform-origin="20 20">
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
</g>
</svg>`,Ah=`
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox=
"-2 -2 ${8*AA+10*Es+5} ${8*AA+10*Es+5}">
<rect
class="MLEP__array-insert-background rows"
x="0"
y="${Tl+Es}"
height="${3*Tl}"
width="${Tl}"
rx="${Tl/2}"/>
<rect
class="MLEP__array-insert-background columns"
x="${Tl+Es}"
y="0"
height="${Tl}"
width="${3*Tl}"
rx="${Tl/2}"/>
<g data-command='"moveDown"'>
${Jd(2*(Es+Tl),2*Es+3*Tl,0)}
</g>
<g data-command='"moveUp"'>
${Jd(2*(Es+Tl),2*Es+Tl,180)}
</g>
<g data-command='"moveToNextWord"'>
${Jd(2*Es+3*Tl,2*(Es+Tl),-90)}
</g>
<g data-command='"moveToPreviousWord"'>
${Jd(2*Es+Tl,2*(Es+Tl),90)}
</g>
<g>
<g data-command='"addColumnBefore"'>
${J0(2*Es+Tl,Es)}
</g>
<g data-command='"removeColumn"'>
${Y0(2*Es+2*Tl,Es)}
</g>
<g data-command='"addColumnAfter"'>
${J0(2*Es+3*Tl,Es)}
</g>
<g data-command='"addRowBefore"'>
${J0(Es,2*Es+Tl)}
</g>
<g data-command='"removeRow"'>
${Y0(Es,2*Es+2*Tl)}
</g>
<g data-command='"addRowAfter"'>
${J0(Es,2*Es+3*Tl)}
</g>
</svg>`,ng=e=>`
<svg id="matrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","matrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,Jh=e=>`
<svg id="pmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","pmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-3.96,4.6-3.96,11.4,0,16"/>
<path class="cls-2" d="m22,4c3.96,4.6,3.96,11.4,0,16"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/></svg>`,q0=e=>`
<svg id="Bmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","Bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,fo=e=>`
<svg id="bmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","bmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m6,4h-3v16h3"/>
<path class="cls-2" d="m22,4h3v16h-3"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
</svg>`,ig=e=>`
<svg id="vmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="4" y1="4" x2="4" y2="20"/>
<line class="cls-2" x1="24" y1="4" x2="24" y2="20"/>
</svg>`,ag=e=>`
<svg id="Vmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="-3.5 -3 35 30"
data-command='["setEnvironment","Vmatrix"]'>
<rect class="cls-1" width="28" height="24"/>
<circle cx="10" cy="8" r="1"/>
<circle cx="14" cy="12" r="1"/>
<circle cx="18" cy="16" r="1"/>
<line class="cls-2" x1="6" y1="4" x2="6" y2="20"/>
<line class="cls-2" x1="22" y1="4" x2="22" y2="20"/>
<line class="cls-2" x1="2" y1="4" x2="2" y2="20"/>
<line class="cls-2" x1="26" y1="4" x2="26" y2="20"/>
</svg>`,og=e=>`
<svg id="cases" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","cases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m10,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
<circle cx="13" cy="8" r="1"/>
<circle cx="13" cy="16" r="1"/>
<circle cx="21" cy="8" r="1"/>
<circle cx="21" cy="16" r="1"/>
</svg>`,sg=e=>`
<svg id="rcases" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
data-command='["setEnvironment","rcases"]'>
<rect class="cls-1" width="28" height="24"/>
<path class="cls-2" d="m18,20c1.1,0,2-.9,2-2v-3c0-1.66.9-3,2-3-1.1,0-2-1.34-2-3v-3c0-1.1-.9-2-2-2"/>
<circle cx="15" cy="8" r="1"/>
<circle cx="15" cy="16" r="1"/>
<circle cx="7" cy="8" r="1"/>
<circle cx="7" cy="16" r="1"/>
</svg>`,yd={matrix:ng,pmatrix:Jh,bmatrix:fo,Bmatrix:q0,vmatrix:ig,Vmatrix:ag},wd={cases:og,rcases:sg,Bmatrix:q0};function lg(e){var t,r;const i=(t=e.model.parentEnvironment)==null?void 0:t.array;if(!i)return;let s=0;i.forEach(Et=>{(!s||Et.length>s)&&(s=Et.length)});let c=document.getElementById("mathlive-environment-popover");c||(c=_p("mathlive-environment-popover"),ud("environment-popover"),ud("core"),c.setAttribute("aria-hidden","true"));let u;const k=c.querySelector(".MLEP__environment-controls");k?u=k:(u=document.createElement("div"),c.innerHTML="",c.appendChild(u)),u.className="MLEP__environment-controls",u.style.display="flex",u.style.width="100%",u.style.height="100%",u.style.boxSizing="border-box",u.innerHTML=Ah;let j=[],Y="";const ce=e.model.parentEnvironment.environmentName;if(Ph(ce)){const Et=Yh(ce);Y=yd[Et]("active");const Br=yd,{[Et]:In}=Br,wr=z(Br,[v(Et)]);j=Object.values(wr).map(nn=>nn("inactive"))}else if(Th(ce)){const Et=tp(ce);Y=wd[Et]("active");const Br=wd,{[Et]:In}=Br,wr=z(Br,[v(Et)]);j=Object.values(wr).map(nn=>nn("inactive"))}else zm(ce)&&(Y=yd.matrix("active"),j=Object.values(wd).map(Et=>Et("inactive")));const Pe=document.createElement("div");Pe.className="MLEP__environment-delimiter-controls",Pe.style.display="flex",Pe.style.flexDirection="column",Pe.innerHTML=`
<div class='MLEP__array-delimiter-options'>
${Y}
${j.join("")}
</div>`,Y&&u.appendChild(Pe),u.querySelectorAll("[data-command]").forEach(Et=>{const Br=Et.dataset.command;let In=Br;try{In=JSON.parse(Br)}catch(wr){}Et.addEventListener("mousedown",wr=>wr.preventDefault()),In&&Et.addEventListener("click",()=>e.executeCommand(In))});const gt=(r=e.field)==null?void 0:r.getBoundingClientRect();gt&&(c.style.top=`${window.scrollY+(gt.top-c.clientHeight-15)}px`,c.style.left=`${gt.left+20}px`,c.classList.add("is-visible"))}function Np(){const e=document.getElementById("mathlive-environment-popover");e==null||e.classList.remove("is-visible")}function ep(){document.getElementById("mathlive-environment-popover")&&(Ym("mathlive-environment-popover"),dd("environment-popover"),dd("core"))}function uh(e){if(!e.hasFocus())return;let t=!1;if(e.model.mode==="math"){const r=e.model.parentEnvironment;if(r!=null&&r.array&&wp(r.environmentName)){const i=e.options.environmentPopoverPolicy;t=i==="auto"||i==="on"}}t?lg(e):Np()}function Yh(e){return e.replace("*","")}function tp(e){return e==="dcases"?"cases":e}function qh(e){const t=getComputedStyle(e).direction;return t==="ltr"||t==="rtl"?t:"ltr"}function bm(e,t,r){return t==="left"||t==="leading"&&r==="ltr"||t==="trailing"&&r==="rtl"?e.left:e.right}function e0(e,t,r,i){return r==="middle"?e-t/2:r==="start"&&i==="rtl"||r==="end"&&i==="ltr"||r==="top"||r==="right"?Math.max(0,e-t):e}function Pp(e,t,r,i){return r==="middle"?e-t/2:r==="start"&&i==="ltr"||r==="end"&&i==="rtl"||r==="top"||r==="right"?e:e-t}function t0(e,t){var r,i,s;const c=(r=qh(e))!=null?r:"ltr";e.style.position="fixed",e.style.left="",e.style.top="",e.style.right="",e.style.bottom="",e.style.height="",e.style.width="";const u=e.getBoundingClientRect(),k=Number.isFinite(t.maxHeight)?Math.min(t.maxHeight,window.innerHeight):window.innerHeight;let j=Math.min(k,(i=t.height)!=null?i:u.height),Y=e0(t.location.y,j,t.verticalPos,c);Y+j>window.innerHeight-8&&(t.alternateLocation?(Y=e0(t.alternateLocation.y,j,t.verticalPos,c),Y+j>window.innerHeight-8&&(Y=void 0)):Y=void 0),Number.isFinite(Y)||(Y=Math.max(8,window.innerHeight-8-j),8+j>window.innerHeight-8&&(e.style.bottom="8px")),j=Math.min(Y+j,window.innerHeight-8)-Y;const ce=Number.isFinite(t.maxWidth)?Math.min(t.maxWidth,window.innerWidth):window.innerWidth;let Pe=Math.min(ce,(s=t.width)!=null?s:u.width),rt=e0(t.location.x,Pe,t.horizontalPos,c);rt+Pe>window.innerWidth-8&&(t.alternateLocation?(rt=Pp(t.alternateLocation.x,Pe,t.verticalPos,c),rt+Pe>window.innerWidth-8&&(rt=void 0)):rt=void 0),Number.isFinite(rt)||(rt=Math.max(8,window.innerWidth-8-Pe),8+Pe>window.innerWidth-8&&(e.style.right="8px")),Pe=Math.min(rt+Pe,window.innerWidth-8)-rt,c==="rtl"?e.style.right=`${Math.ceil(window.innerWidth-rt-Pe).toString()}px`:e.style.left=`${Math.ceil(rt).toString()}px`,e.style.top=`${Math.ceil(Y).toString()}px`,j!==u.height&&(e.style.height=`${Math.ceil(j).toString()}px`),Pe!==u.width&&(e.style.width=`${Math.ceil(Pe).toString()}px`)}function r0(e,t){return Math.hypot(t.x-e.x,t.y-e.y)}function Yd(e){return"submenu"in e}function RA(e){return"type"in e&&e.type==="command"||"onMenuSelect"in e||"id"in e}function n0(e){return"type"in e&&e.type==="divider"}function Df(e){return"type"in e&&e.type==="heading"}var Tp={};function rp(e){let t=Tp[e];if(!t){let r;switch(e){case"checkmark":r=`<span aria-hidden="true" class="ui-checkmark"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="currentColor" d="M435.848 83.466L172.804 346.51l-96.652-96.652c-4.686-4.686-12.284-4.686-16.971 0l-28.284 28.284c-4.686 4.686-4.686 12.284 0 16.971l133.421 133.421c4.686 4.686 12.284 4.686 16.971 0l299.813-299.813c4.686-4.686 4.686-12.284 0-16.971l-28.284-28.284c-4.686-4.686-12.284-4.686-16.97 0z"></path></svg>
</span>`;break;case"trailing-chevron":r='<span aria-hidden="true" class="ui-trailing-chevron"><svg focusable="false" role="img" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 320 512"><path fill="currentColor" d="M285.476 272.971L91.132 467.314c-9.373 9.373-24.569 9.373-33.941 0l-22.667-22.667c-9.357-9.357-9.375-24.522-.04-33.901L188.505 256 34.484 101.255c-9.335-9.379-9.317-24.544.04-33.901l22.667-22.667c9.373-9.373 24.569-9.373 33.941 0L285.475 239.03c9.373 9.372 9.373 24.568.001 33.941z"></path></svg></span>';break;case"mixedmark":r='<span aria-hidden="true" class="ui-mixedmark"><svg xmlns="http://www.w3.org/2000/svg" width="16" viewBox="0 0 512 512"><path fill="currentColor" d="M0 256c0-13.3 10.7-24 24-24H488c13.3 0 24 10.7 24 24s-10.7 24-24 24H24c-13.3 0-24-10.7-24-24z"/></svg></span>'}if(r){const i=document.createElement("template");i.innerHTML=r,Tp[e]=i,t=i}}if(t){if("content"in t)return t.content.cloneNode(!0);const r=document.createElement("svg");return r.innerHTML=t.innerHTML,r}}var qd=80,ef=class{constructor(e,t){this._element=null;var r;this.parentMenu=t,this._declaration=e,Yd(e)?(this.type="submenu",this.submenu=new dh(e.submenu,{parentMenu:t,submenuClass:e.submenuClass,columnCount:e.columnCount})):this.type=(r=e.type)!=null?r:"command",this.hasCheck=RA(e)&&e.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var e,t;(e=this._abortController)==null||e.abort(),this._abortController=void 0,(t=this._element)==null||t.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var e;return(e=this._label)!=null?e:""}set label(e){e===void 0&&(e=""),e!==this._label&&(this._label=e,this.dirty=!0)}get visible(){return this._visible}set visible(e){e!==this._visible&&(this._visible=e,this.dirty=!0)}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.element&&(e?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(e){this._checked=e,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(e){e!==this._tooltip&&(this._tooltip=e,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){e!==this._ariaLabel&&(this._ariaLabel=e,this.dirty=!0)}get active(){var e,t;return(t=(e=this.element)==null?void 0:e.classList.contains("active"))!=null?t:!1}set active(e){this.element&&this.element.classList.toggle("active",e)}updateState(e){var t,r,i;const s=this._declaration;if(n0(s)){this.enabled=!1,this.checked=!1;return}Df(s)&&(this.enabled=!1,this.checked=!1,this.visible=!0),RA(s)&&(this.checked=RA(s)&&((t=Of(s.checked,e))!=null?t:!1)),(RA(s)||Yd(s))&&(this.enabled=(r=Of(s.enabled,e))!=null?r:!0,this.visible=(i=Of(s.visible,e))!=null?i:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(e),this.submenu.visible||(this.visible=!1))),(RA(s)||Df(s)||Yd(s))&&(this.label=Of(s.label,e),this.tooltip=Of(s.tooltip,e),this.ariaLabel=Of(s.ariaLabel,e)),this._element&&this.updateElement()}set dirty(e){console.assert(e===!0),e&&this.parentMenu&&(this.parentMenu.dirty=!0)}updateElement(){if(!this.visible||!this.element)return;const e=this.element;e.textContent="",this.enabled?e.removeAttribute("aria-disabled"):e.setAttribute("aria-disabled","true"),this.checked===!0?(e.setAttribute("aria-checked","true"),e.append(rp("checkmark"))):this.checked==="mixed"?(e.setAttribute("aria-checked","mixed"),e.append(rp("mixedmark"))):e.removeAttribute("aria-checked"),this.ariaLabel&&e.setAttribute("aria-label",this.ariaLabel);const t=document.createElement("span");if(t.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&t.classList.add("heading"),t.innerHTML=this.label,e.append(t),this._tooltip&&e.setAttribute("data-tooltip",this._tooltip),RA(this._declaration)&&this._declaration.keyboardShortcut){const r=document.createElement("kbd");r.innerHTML=uu(this._declaration.keyboardShortcut),e.append(r)}this.type==="submenu"&&e.append(rp("trailing-chevron"))}get element(){if(this._element)return this._element;if(n0(this._declaration)){const r=document.createElement("li");return r.setAttribute("part","menu-divider"),r.setAttribute("role","divider"),this._element=r,r}const e=document.createElement("li");this._element=e,(RA(this._declaration)||Df(this._declaration)||Yd(this._declaration))&&this._declaration.class&&(e.className=this._declaration.class),e.setAttribute("part","menu-item"),e.setAttribute("tabindex","-1"),this.hasCheck?e.setAttribute("role","menuitemcheckbox"):e.setAttribute("role","menuitem"),this.type==="submenu"&&(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"));const t=this.abortController.signal;return e.addEventListener("pointerenter",this,{signal:t}),e.addEventListener("pointerleave",this,{signal:t}),e.addEventListener("pointerup",this,{signal:t}),e.addEventListener("click",this,{signal:t}),this._element}dispatchSelect(){if(!RA(this._declaration))return;const e=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(e)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(e){var t;if(!(!this.visible||!this.enabled)){if(e.type==="click"){this.rootMenu.state==="modal"&&this.select(),e.stopPropagation(),e.preventDefault();return}if(e.type==="pointerenter"){const r=e;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((t=this.parentMenu.activeMenuItem)!=null&&t.movingTowardSubmenu(r))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(e.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(e.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),e.stopPropagation(),e.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},qd)},qd)}openSubmenu(e){var t;if(this.type!=="submenu"||!this.element)return;if((t=e==null?void 0:e.withDelay)!=null&&t){this.rootMenu.scheduleOperation(()=>this.openSubmenu());return}const r=this.element.getBoundingClientRect(),i=qh(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:bm(r,"trailing",i),y:r.top-4},alternateLocation:{x:bm(r,"leading",i),y:r.top-4}})}movingTowardSubmenu(e){if(!this.element||this.type!=="submenu")return!1;const t=this.rootMenu.lastMoveEvent;if(!t)return!1;const r=e.timeStamp-t.timeStamp;if(r>500)return!1;const i=e.clientX-t.clientX;if(ym(i,t.clientY-e.clientY,r)<=.2)return!1;let c="right";if(this.submenu.element){const u=this.submenu.element.getBoundingClientRect(),k=this.element.getBoundingClientRect();u.left<k.left+k.width/2&&(c="left")}return c==="right"?i>0:i<0}};function ym(e,t,r){return Math.hypot(e,t)/r}function Of(e,t){return e===void 0||typeof e!="function"?e:(t!=null||(t={alt:!1,control:!1,shift:!1,meta:!1}),e(t))}var dh=class km{constructor(t,r){this._element=null,this._activeMenuItem=null,this._dirty=!0;var i,s;this.parentMenu=(i=r==null?void 0:r.parentMenu)!=null?i:null,this._submenuClass=r==null?void 0:r.submenuClass,this.columnCount=(s=r==null?void 0:r.columnCount)!=null?s:1,this.isSubmenuOpen=!1,this.menuItems=t}get children(){return this._menuItems}set menuItems(t){const r=this.parentMenu;this.dispose(),this.parentMenu=r,t=[...t],this._menuItems=t.map(i=>i.onCreate?i.onCreate(i,this):new ef(i,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var t;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(t=this._menuItems)==null||t.forEach(r=>r.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(t){if(t.type==="wheel"&&this._element){const r=t;this._element.scrollBy(0,r.deltaY),t.stopPropagation()}}dispatchEvent(t){return this.rootMenu.dispatchEvent(t)}get rootMenu(){return this.parentMenu.rootMenu}updateState(t){var r,i,s;this._menuItems.forEach(Y=>Y.updateState(t));const c=this.hasCheck;this.hasCheck=this._menuItems.some(Y=>Y.visible&&Y.hasCheck),this.hasCheck!==c&&this._menuItems.forEach(Y=>Y.updateState(t));let u,k=0;for(const Y of this._menuItems)Y.type==="heading"?(u&&k===0&&(u.visible=!1),u=Y,k=0):Y.type==="divider"&&u?(u.visible=k>0,u=void 0,k=0):u&&Y.visible&&(k+=1);u&&(u.visible=k>0);let j=!0;for(const Y of this._menuItems)Y.type==="divider"?(Y.visible=!j,j=!0):Y.visible&&(j=!1);(r=this.activeMenuItem)!=null&&r.visible||(this.activeMenuItem=null),!((i=this.activeMenuItem)!=null&&i.enabled)&&((s=this.activeMenuItem)==null?void 0:s.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(t=>t.type!=="divider"&&t.visible&&t.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(t=>t.type!=="divider"&&t.visible)}set dirty(t){console.assert(t===!0),this._dirty!==t&&t&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var t;if(this._element){this._element.textContent="";for(const{element:r,visible:i}of this._menuItems)r&&i&&this._element.append(r);(t=this._element.querySelector("li:first-of-type"))==null||t.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const t=document.createElement("menu");t.setAttribute("role","menu"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-orientation","vertical"),t.setAttribute("part","ui-menu-container"),this._submenuClass&&t.classList.add(this._submenuClass),t.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const r=this._abortController.signal;return t.addEventListener("focus",this,{signal:r}),t.addEventListener("wheel",this,{passive:!0,signal:r}),this._element=t,this.updateElement(),t}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(t){var r,i,s,c;if(this.rootMenu.cancelDelayedOperation(),t!==this._activeMenuItem){if(this.activeMenuItem){const u=this.activeMenuItem;u.active=!1,(r=u.submenu)==null||r.hide()}if(!((i=t==null?void 0:t.visible)==null||i)){this._activeMenuItem=null;return}this._activeMenuItem=t,t&&(t.active=!0)}t?(s=t.element)==null||s.focus({preventScroll:!0}):(c=this._element)==null||c.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let t=0,r=!1;const i=this._menuItems;for(;!r&&t<=i.length-1;){const s=i[t];r=s.type!=="divider"&&s.visible&&s.enabled,t+=1}return r?i[t-1]:null}get lastMenuItem(){this.updateIfDirty();const t=this._menuItems;let r=t.length-1,i=!1;for(;!i&&r>=0;){const s=t[r];i=s.type!=="divider"&&s.visible&&s.enabled,r-=1}return i?t[r+1]:null}nextMenuItem(t){if(t===0)return this._activeMenuItem;if(!this._activeMenuItem)return t>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const r=this._menuItems.indexOf(this.firstMenuItem),i=this._menuItems.indexOf(this.lastMenuItem);let s=this._menuItems.indexOf(this._activeMenuItem),c=1;for(;s>=r&&s<=i;){s+=t>0?1:-1;const u=this._menuItems[s];if(!u)break;if(u.visible&&u.enabled){if(c===Math.abs(t))return this._menuItems[s];c+=1}}return t>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(t){this.updateIfDirty();const i=this._menuItems.filter(s=>s.visible&&s.enabled).indexOf(t);return i<0?-1:i%this.columnCount}static get collator(){return km._collator||(km._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),km._collator}findMenuItem(t){var r;this.updateIfDirty();const i=this._menuItems.filter(k=>k.type!=="divider"&&k.visible&&k.enabled);if(i.length===0)return null;const s=Math.max(...i.map(k=>k.label.length))-t.length;if(s<0)return null;let c=null,u=0;for(;u<s&&!c;)c=(r=i.find(k=>km.collator.compare(t,k.label.substring(u,t.length))===0))!=null?r:null,u++;return c}show(t){return!this.visible||!t.container?!1:(this.updateElement(),t.container.appendChild(this.element),le()&&(this.element.popover="manual",this.element.showPopover()),t.location&&t0(this.element,{location:t.location,alternateLocation:t.alternateLocation,verticalPos:"bottom",horizontalPos:"start"}),this.element.focus({preventScroll:!0}),this.parentMenu&&(this.parentMenu.openSubmenu=this),!0)}hide(){var t,r,i,s,c;this.openSubmenu=null,this.activeMenuItem=null,this.parentMenu&&(this.parentMenu.openSubmenu=null),le()&&((t=this._element)!=null&&t.popover)&&this.element.hidePopover(),(i=(r=this.parentMenu)==null?void 0:r.element)==null||i.focus(),(c=(s=this._element)==null?void 0:s.parentNode)==null||c.removeChild(this._element)}set openSubmenu(t){var r,i,s,c;const u=t!==null;((r=this.activeMenuItem)==null?void 0:r.type)==="submenu"&&((i=this.activeMenuItem.element)==null||i.setAttribute("aria-expanded",u.toString())),(c=(s=this.activeMenuItem)==null?void 0:s.element)==null||c.classList.toggle("is-submenu-open",u),this.isSubmenuOpen=u}},Up=class fv extends dh{constructor(t,r){var i;super(t),this.state="closed",this.typingBufferResetTimer=0,this.hysteresisTimer=0,this._updating=!1,this._host=(i=r==null?void 0:r.host)!=null?i:null,this.isDynamic=t.some(He),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(t){Tu(this._modifiers,t)||(this._modifiers=t,this.dirty=!0)}get activeSubmenu(){let t=this;for(;t.isSubmenuOpen;)t=t.activeMenuItem.submenu;return t}set dirty(t){this._updating||(console.assert(t===!0),this._dirty!==t&&(this._dirty=!0,t&&setTimeout(()=>{this.updateState(this.modifiers),this.updateElement()})))}updateState(t){this._updating=!0,this.modifiers=t!=null?t:this.modifiers,super.updateState(this.modifiers),this._updating=!1}handleKeyupEvent(t){this.isDynamic&&(this.modifiers=LA(t)),t.stopImmediatePropagation()}handleKeydownEvent(t){var r,i,s;if(t.key==="Tab"||t.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=LA(t));let c=!0;const u=this.activeSubmenu,k=u.activeMenuItem;switch(t.key){case" ":case"Space":case"Return":case"Enter":k==null||k.select(LA(t));break;case"ArrowRight":if((k==null?void 0:k.type)==="submenu")k.select(LA(t)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!k)u.activeMenuItem=u.firstMenuItem;else{const j=(r=u.getMenuItemColumn(k))!=null?r:-1;if(j>=0&&j<((i=u.columnCount)!=null?i:1)-1){const Y=u.nextMenuItem(1);Y&&(u.activeMenuItem=Y)}}break;case"ArrowLeft":if(u===this.rootMenu)k||(u.activeMenuItem=u.firstMenuItem);else if((k&&(s=u.getMenuItemColumn(k))!=null?s:-1)<=0||!k){u.hide();const Y=u.parentMenu.activeMenuItem;if(Y){const{element:ce}=Y;ce==null||ce.focus(),ce==null||ce.classList.remove("is-submenu-open")}}else{const Y=u.nextMenuItem(-1);Y&&(u.activeMenuItem=Y)}break;case"ArrowDown":u.activeMenuItem=u.nextMenuItem(u.columnCount);break;case"ArrowUp":u.activeMenuItem=u.nextMenuItem(-u.columnCount);break;case"Home":case"PageUp":u.activeMenuItem=u.firstMenuItem;break;case"End":case"PageDown":u.activeMenuItem=u.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const j=u.findMenuItem(this.typingBuffer);j&&(u.activeMenuItem=j),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(JA(t)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=t.key;const j=u.findMenuItem(this.typingBuffer);j&&(u.activeMenuItem=j),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else c=!1}c&&(t.preventDefault(),t.stopPropagation())}handleEvent(t){if(t.type==="keydown")this.handleKeydownEvent(t);else if(t.type==="keyup")this.handleKeyupEvent(t);else if(t.type==="pointermove")this.lastMoveEvent=t;else if(t.type==="pointerup"&&t.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(t.type==="contextmenu"){t.preventDefault(),t.stopPropagation();return}super.handleEvent(t)}dispatchEvent(t){return this._host?this._host.dispatchEvent(t):!0}get scrim(){return Hc.element}connectScrim(t){const r=this.scrim;r.addEventListener("pointerup",this),r.addEventListener("contextmenu",this),r.addEventListener("keydown",this),r.addEventListener("keyup",this),r.addEventListener("pointermove",this),Hc.open({root:t,onDismiss:()=>this.hide()})}disconnectScrim(){const t=this.scrim;t.removeEventListener("pointerup",this),t.removeEventListener("contextmenu",this),t.removeEventListener("keydown",this),t.removeEventListener("keyup",this),t.removeEventListener("pointermove",this),Hc.state==="open"&&Hc.scrim.close()}get rootMenu(){return this}show(t){return this._onDismiss=t==null?void 0:t.onDismiss,t!=null&&t.modifiers&&(this.modifiers=t.modifiers),this.updateState(),this.connectScrim(t==null?void 0:t.target),super.show(I(g({},t),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),this.state!==void 0&&(this.state!=="closed"&&(this.activeMenuItem=null,Hc.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(t){this.cancelDelayedOperation();const r=fv.SUBMENU_DELAY;if(r<=0){t();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,t()},r)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};Up.SUBMENU_DELAY=120;var $=Up;function He(e){return n0(e)?!1:typeof e.label=="function"||typeof e.ariaLabel=="function"||typeof e.tooltip=="function"||(RA(e)||Yd(e))&&(typeof e.enabled=="function"||typeof e.visible=="function")||RA(e)&&typeof e.checked=="function"?!0:Yd(e)?e.submenu.some(He):!1}var St=class{};St.DELAY=300,St.MAX_DISTANCE=10;function Zt(e){return new Promise((t,r)=>{const i=Pu(e);i||t(!1);let s=i;const c=setTimeout(()=>{u.abort(),t(r0(s,i)<St.MAX_DISTANCE)},St.DELAY),u=new AbortController,k=u.signal;for(const j of["pointermove","pointerup","pointercancel"])window.addEventListener(j,Y=>{if(Y.type==="pointerup"||Y.type==="pointercancel")clearTimeout(c),u.abort(),t(!1);else if(Y.type==="pointermove"){const ce=Pu(Y);ce&&(s=ce)}},{passive:!0,signal:k})})}function br(e,t,r){return hp(this,null,function*(){if(e.type==="contextmenu"){const i=e;if(r.show({target:t,location:Pu(i),modifiers:LA(i)}))return e.preventDefault(),e.stopPropagation(),!0}if(e.type==="keydown"){const i=e;if(i.code==="ContextMenu"||i.code==="F10"&&i.shiftKey){const s=t==null?void 0:t.getBoundingClientRect();if(s&&r.show({target:t,location:{x:Math.ceil(s.left+s.width/2),y:Math.ceil(s.top+s.height/2)},modifiers:LA(i)}))return e.preventDefault(),e.stopPropagation(),!0}}if(e.type==="pointerdown"&&e.pointerType!=="mouse"&&e.button===0){let i=e.target;for(;i&&t!==i;)i=i.parentNode;if(!i||!r.visible)return!1;const s=Pu(e);if(yield Zt(e))return r.state!=="closed"?!1:(r.show({target:t,location:s}),!0)}return!1})}var hn={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};he(Object.keys(hn),"{body:auto}",{createAtom:e=>new ih(I(g({},e),{body:et(e.args[0]),accentChar:hn[e.command.slice(1)]}))}),he(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=ye(et(e.args[0]));return new ih(I(g({},e),{body:et(e.args[0]),svgAccent:e.command.slice(1)+(t.length>5?"4":["1","1","2","2","3","3"][t.length])}))}}),he(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:e=>new ih(I(g({},e),{body:et(e.args[0]),svgAccent:"overarc"}))}),he(["underarc","underparen"],"{body:auto}",{createAtom:e=>new mc(I(g({},e),{body:et(e.args[0]),svgBelow:"underarc"}))}),he("utilde","{body:auto}",{createAtom:e=>{const t=et(e.args[0]),r=ye(t),i="widetilde"+(r.length>5?"4":["1","1","2","2","3","3"][r.length]);return new mc(I(g({},e),{body:t,svgBelow:i,boxType:Nd(t)}))}}),he("^","{:string}",{createAtom:e=>{var t;return new Ur(I(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[e.args[0]])!=null?t:"^"}))}}),he("`","{:string}",{createAtom:e=>{var t;return new Ur(I(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[e.args[0]])!=null?t:"`"}))}}),he("'","{:string}",{createAtom:e=>{var t;return new Ur(I(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[e.args[0]])!=null?t:"'"}))}}),he('"',"{:string}",{createAtom:e=>{var t,r;return new Ur(I(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[e.args[0]])!=null?r:'"'+e.args[0]:'"'}))}}),he(".","{:string}",{createAtom:e=>{var t,r;return new Ur(I(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[e.args[0]])!=null?r:"."+e.args[0]:"."}))}}),he("=","{:string}",{createAtom:e=>{var t,r;return new Ur(I(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[e.args[0]])!=null?r:"="+e.args[0]:"="}))}}),he("~","{:string}",{createAtom:e=>{var t;return new Ur(I(g({type:"mord"},e),{isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[e.args[0]])!=null?t:"\xB4"}))}}),he("c","{:string}",{createAtom:e=>{var t;return new Ur(I(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={c:"\xE7",C:"\xC7"}[e.args[0]])!=null?t:""}))}}),he("enclose","{notation:string}[style:string]{body:auto}",{createAtom:e=>{var t,r;const i=e.args,s={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(t=e.style)!=null?t:{}};if(i[1]){const u=i[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const k of u){const j=k.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(j)s.strokeWidth=j[1],s.strokeStyle=j[2],s.strokeColor=j[3];else{const Y=k.match(/\s*([a-z]*)\s*=\s*"(.*)"/);Y&&(Y[1]==="mathbackground"?s.backgroundcolor=Y[2]:Y[1]==="mathcolor"?s.strokeColor=Y[2]:Y[1]==="padding"?s.padding=Y[2]:Y[1]==="shadow"&&(s.shadow=Y[2]))}}s.strokeStyle==="dashed"?s.svgStrokeStyle="5,5":s.strokeStyle==="dotted"&&(s.svgStrokeStyle="1,5")}s.borderStyle=`${s.strokeWidth} ${s.strokeStyle} ${s.strokeColor}`;const c={};return((r=i[0])!=null?r:"").split(/[, ]/).filter(u=>u.length>0).forEach(u=>{c[u.toLowerCase()]=!0}),new sc(e.command,et(i[2]),c,s)}}),he("cancel","{body:auto}",{createAtom:e=>{var t;return new sc(e.command,et(e.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),he("bcancel","{body:auto}",{createAtom:e=>{var t;return new sc(e.command,et(e.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),he("xcancel","{body:auto}",{createAtom:e=>{var t;return new sc(e.command,et(e.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),he(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:e=>{var t;return new mc(I(g({},e),{body:et((t=e.args)==null?void 0:t[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:e.command.slice(1)}))}}),he("overbrace","{:auto}",{createAtom:e=>new mc(I(g({},e),{body:et(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:e.command.slice(1)}))}),he(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:e=>new mc(I(g({},e),{body:et(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:e.command.slice(1)}))}),he(["underbrace"],"{:auto}",{createAtom:e=>new mc(I(g({},e),{body:et(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:e.command.slice(1)}))}),he(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:e=>{var t,r,i,s,c;return new mc(I(g({},e),{svgBody:e.command.slice(1),above:((r=et((t=e.args)==null?void 0:t[1]))==null?void 0:r.length)===0?void 0:et((i=e.args)==null?void 0:i[1]),below:(c=et((s=e.args)==null?void 0:s[0]))!=null?c:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(e,t)=>e.command+(e.hasEmptyBranch("below")?"":`[${e.belowToLatex(t)}]`)+`{${e.aboveToLatex(t)}}${e.supsubToLatex(t)}`}),he(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:e=>new GA(e.command.slice(1),I(g({},e),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),he(["liminf","limsup"],"",{ifMode:"math",createAtom:e=>new GA({"\\liminf":"lim inf","\\limsup":"lim sup"}[e.command],I(g({},e),{limits:"over-under",variant:"main"}))}),he(["lim","mod"],"",{ifMode:"math",createAtom:e=>new GA(e.command.slice(1),I(g({},e),{limits:"over-under",variant:"main"}))}),he(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:e=>new GA(e.command.slice(1),I(g({},e),{limits:"over-under",isFunction:!0,variant:"main"}))}),he(["ang"],"{:math}",{ifMode:"math",createAtom:e=>new Ur(I(g({},e),{body:et(e.args[0])})),serialize:(e,t)=>`\\ang{${e.bodyToLatex(t)}}`,render:(e,t)=>{const r=e.createBox(t),i=r.caret;r.caret=void 0;const s=new zr("\xB0",{style:I(g({},e.style),{variant:"normal",variantStyle:"up"})});return new zr([r,s],{type:"inner",isSelected:e.isSelected,caret:i})}}),he("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:e=>new Sp(I(g({},e),{body:et(e.args[1]),index:e.args[0]?et(e.args[0]):void 0}))}),he(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:e=>{const t=g({},e),r=e.command,i=e.args;switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":t.hasBarLine=!0;break;case"\\atopfrac":t.hasBarLine=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":t.hasBarLine=!1,t.leftDelim="(",t.rightDelim=")";break;case"\\cfrac":t.hasBarLine=!0,t.continuousFraction=!0;break;default:}switch(r){case"\\dfrac":case"\\dbinom":t.mathstyleName="displaystyle";break;case"\\tfrac":case"\\tbinom":t.mathstyleName="textstyle";break;default:}return new Ef(i[0]?et(i[0]):[new Du],i[1]?et(i[1]):[new Du],t)},serialize:(e,t)=>{const r=e.aboveToLatex(t),i=e.belowToLatex(t);return/^[0-9]$/.test(r)&&/^[0-9]$/.test(i)?`${e.command}${r}${i}`:Bs(e.command,r,i)}}),he(["brace","brack"],"",{infix:!0,createAtom:e=>new Ef(et(e.args[0]),et(e.args[1]),I(g({},e),{hasBarLine:!1,leftDelim:e.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:e.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(e,t)=>co([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),he(["over","atop","choose"],"",{infix:!0,createAtom:e=>{let t,r;const i=e.args;return e.command==="\\choose"&&(t="(",r=")"),new Ef(et(i[0]),et(i[1]),I(g({},e),{hasBarLine:e.command==="\\over",leftDelim:t,rightDelim:r}))},serialize:(e,t)=>co([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),he(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:e=>{var t,r;const i=e.args;return new Ef(et(i[0]),et(i[1]),I(g({},e),{leftDelim:(t=i[2])!=null?t:".",rightDelim:(r=i[3])!=null?r:".",hasBarLine:!1}))},serialize:(e,t)=>`${e.aboveToLatex(t)} ${e.command}${e.leftDelim}${e.rightDelim}${e.belowToLatex(t)}`}),he("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:e=>new Ef(et(e.args[0]),et(e.args[1]),I(g({},e),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),he(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:e=>new Bp({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[e.command.slice(1)],I(g({},e),{limits:"auto",variant:"main"}))}),he("smallint","",{ifMode:"math",createAtom:e=>new GA("\u222B",I(g({},e),{limits:"adjacent",variant:"main"}))});var Fn={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};he(Object.keys(Fn),"",{ifMode:"math",createAtom:e=>{const t=e.command,r=Fn[t.slice(1)];return new Bp(r,I(g({},e),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[r]}))}}),he(["Re","Im"],"",{ifMode:"math",createAtom:e=>new GA({"\\Re":"\u211C","\\Im":"\u2111"}[e.command],I(g({},e),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),he("middle","{:delim}",{ifMode:"math",createAtom:e=>{var t;return new Kc(I(g({},e),{delim:(t=e.args[0])!=null?t:"|",size:1}))}}),he("the","{:value}",{createAtom:e=>new Ur(I(g({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var r;const i=new So({parent:t},e.style);let s="";e.isSelected&&(s+=" ML__selected");const c=i.evaluate(e.args[0]);return new zr(((r=Dl(c))!=null?r:"").split("").map(u=>new zr(u,{type:"ord",classes:s,mode:e.mode,isSelected:e.isSelected,style:g({variant:"main"},e.style)})),{type:"lift",style:e.style,caret:e.caret,isSelected:e.isSelected,classes:s}).wrap(i)},serialize:e=>{var t;return`\\the${(t=Dl(e.args[0]))!=null?t:"\\relax"}`}}),he("mathtip","{:auto}{:math}",{createAtom:e=>new hd(I(g({},e),{body:et(e.args[0]),tooltip:et(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Ur.serialize([e.tooltip],I(g({},t),{defaultMode:"math"}))}}`}),he("texttip","{:auto}{:text}",{createAtom:e=>new hd(I(g({},e),{body:et(e.args[0]),tooltip:et(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Ur.serialize([e.tooltip],I(g({},t),{defaultMode:"text"}))}}`}),he("error","{:math}",{createAtom:e=>new Ur(I(g({},e),{body:et(e.args[0])})),serialize:(e,t)=>`\\error{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__error"})}),he("ensuremath","{:math}",{createAtom:e=>new Ur(I(g({},e),{body:et(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(I(g({},t),{defaultMode:"math"}))}}`}),he("color","{:value}",{applyStyle:(e,t,r)=>{var i,s;return{verbatimColor:(i=Dl(t[0]))!=null?i:void 0,color:r.toColor((s=t[0])!=null?s:{string:"red"})}}}),he("textcolor","{:value}{content:auto*}",{applyStyle:(e,t,r)=>{var i,s;return{verbatimColor:(i=Dl(t[0]))!=null?i:void 0,color:r.toColor((s=t[0])!=null?s:{string:"red"})}}}),he("boxed","{content:math}",{createAtom:e=>new fc(I(g({},e),{body:et(e.args[0]),framecolor:{string:"black"}}))}),he("colorbox","{:value}{:text*}",{applyStyle:(e,t,r)=>{var i,s;return{verbatimBackgroundColor:(i=Dl(t[0]))!=null?i:void 0,backgroundColor:r.toBackgroundColor((s=t[0])!=null?s:{string:"yellow"})}}}),he("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:e=>{var t,r;return new fc(I(g({},e),{body:et(e.args[2]),framecolor:(t=e.args[0])!=null?t:{string:"blue"},backgroundcolor:(r=e.args[1])!=null?r:{string:"yellow"}}))},serialize:(e,t)=>{var r,i;return t.skipStyles?e.bodyToLatex(I(g({},t),{defaultMode:"text"})):Bs(e.command,(r=Dl(e.framecolor))!=null?r:"",(i=Dl(e.backgroundcolor))!=null?i:"",e.bodyToLatex(I(g({},t),{defaultMode:"text"})))}}),he("bbox","[:bbox]{body:auto}",{createAtom:e=>{var t;const r=e.args[0],i=et(e.args[1]);return r?new fc(I(g({},e),{body:i,padding:r.padding,border:r.border,backgroundcolor:(t=r.backgroundcolor)!=null?t:void 0})):new fc(I(g({},e),{body:i}))},serialize:(e,t)=>{var r,i;if(t.skipStyles)return e.bodyToLatex(t);let s=e.command;if(Number.isFinite(e.padding)||e.border!==void 0||e.backgroundcolor!==void 0){const c=[];e.padding&&c.push((r=Dl(e.padding))!=null?r:""),e.border&&c.push(`border: ${e.border}`),e.backgroundcolor&&c.push((i=Dl(e.backgroundcolor))!=null?i:""),s+=`[${c.join(",")}]`}return Bs(s,e.bodyToLatex(t))}}),he(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new Ur(I(g({},e),{body:et(e.args[0])})),render:(e,t)=>{const r=new So({parent:t,mathstyle:e.command.slice(1)},e.style),i=Ur.createBox(r,e.body,{type:"lift"});return e.caret&&(i.caret=e.caret),e.bind(t,i)},serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{${co([e.command,e.bodyToLatex(t)])}}`}),he(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:e=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[e]})}),he("fontseries","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontSeries:(r=t[0])!=null?r:"auto"}}}),he("fontshape","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontShape:(r=t[0])!=null?r:"auto"}}}),he("fontfamily","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontFamily:(r=t[0])!=null?r:"roman"}}}),he("selectfont","",{ifMode:"text",applyStyle:()=>({})}),he("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),he(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:e=>new Ur(I(g({},e),{body:et(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__boldsymbol"})}),he("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),he("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),he("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),he("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),he("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),he("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),he("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),he("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),he("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),he("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),he("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),he("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),he("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),he("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),he("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),he("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),he("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),he("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),he("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),he("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),he("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),he("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),he("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),he("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),he("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),he("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),he("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),he(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),he(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),he("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),he("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),he("mbox","{:text}",{ifMode:"math",createAtom:e=>new Ur(I(g({},e),{type:"mord",body:et(e.args[0]),mode:"math"})),serialize:(e,t)=>Bs("\\mbox",e.bodyToLatex(I(g({},t),{defaultMode:"text"})))}),he("text","{:text}",{ifMode:"math",applyMode:"text"}),he(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:e=>new Ur(I(g({},e),{body:et(e.args[1])})),serialize:(e,t)=>!e.args[0]||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`,render:(e,t)=>{var r;return e.createBox(t,{classes:(r=e.args[0])!=null?r:""})}}),he(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:e=>new Ur(I(g({},e),{body:et(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const i=e.createBox(t);return i.cssId=(r=e.args[0])!=null?r:"",i}}),he("htmlData","{data:string}{content:auto}",{createAtom:e=>new Ur(I(g({},e),{body:et(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`\\htmlData{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const i=e.createBox(t);return i.htmlData=(r=e.args[0])!=null?r:"",i}}),he(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:e=>new Ur(I(g({},e),{body:et(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const i=e.createBox(t);return i.htmlStyle=(r=e.args[0])!=null?r:"",i}}),he("em","{:rest}",{createAtom:e=>new Ur(I(g({},e),{body:et(e.args[0])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{\\em ${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})}),he("emph","{:auto}",{createAtom:e=>new Ur(I(g({},e),{body:et(e.args[1])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\emph{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})});var ia={"\\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}};he(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:e=>{var t;return new Sc(I(g({},e),{delim:(t=e.args[0])!=null?t:".",size:ia[e.command].size,delimType:ia[e.command].mclass}))}}),he(["hspace","hspace*"],"{width:value}",{createAtom:e=>{var t;return new iA(I(g({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),he(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:e=>{var t;return new iA(I(g({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),he("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:e=>new Ur(e),render:(e,t)=>{let r=0;const i=t.mathstyle.id;(i===bf||i===UA)&&(r=1),(i===ou||i===ds)&&(r=2),(i===Qc||i===Xl)&&(r=3);const s=et(e.args[r]);return Ur.createBox(t,s)},serialize:(e,t)=>`\\mathchoice{${Ur.serialize(e.args[0],t)}}{${Ur.serialize(e.args[1],t)}}{${Ur.serialize(e.args[2],t)}}{${Ur.serialize(e.args[3],t)}}`}),he("mathop","{:auto}",{createAtom:e=>new Ur(I(g({},e),{type:"mop",body:et(e.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(e,t)=>{var r;let i=Ur.createBox(t,e.body);if(e.superscript||e.subscript){const s=(r=e.subsupPlacement)!=null?r:"auto";i=s==="over-under"||s==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:i}):e.attachSupsub(t,{base:i})}return new zr(e.bind(t,i),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[Bs(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&(e.subsupPlacement==="over-under"&&r.push("\\limits"),e.subsupPlacement==="adjacent"&&r.push("\\nolimits"),e.subsupPlacement==="auto"&&r.push("\\displaylimits")),r.push(e.supsubToLatex(t)),co(r)}}),he(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:e=>new Ur(I(g({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:et(e.args[0])}))}),he(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=et(e.args[0]).map(r=>{var i;return r.type!=="first"&&(r.type="mord",r.value=(i={"\u2217":"*","\u2212":"-"}[r.value])!=null?i:r.value,r.isFunction=!1,!r.style.variant&&!r.style.variantStyle&&(r.style.variant="main",r.style.variantStyle="up")),r});return new Ur(I(g({},e),{type:"mop",body:t,isFunction:!0,limits:e.command==="\\operatorname"?"adjacent":"over-under"}))},render:(e,t)=>{var r;let i=Ur.createBox(t,e.body);if(e.superscript||e.subscript){const s=(r=e.subsupPlacement)!=null?r:"auto";i=s==="over-under"||s==="auto"&&t.isDisplayStyle?e.attachLimits(t,{base:i}):e.attachSupsub(t,{base:i})}return e.caret&&(i.caret=e.caret),new zr(e.bind(t,i),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[Bs(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&(e.subsupPlacement==="over-under"&&r.push("\\limits"),e.subsupPlacement==="adjacent"&&r.push("\\nolimits"),e.subsupPlacement==="auto"&&r.push("\\displaylimits")),r.push(e.supsubToLatex(t)),co(r)}}),he(["char","unicode"],"{charcode:value}",{createAtom:e=>new Ur(I(g({},e),{type:e.mode==="text"?"text":"mord"})),serialize:e=>{var t;return`${e.command}${Dl((t=e.args[0])!=null?t:{number:10067,base:"hexadecimal"})}`},render:(e,t)=>{let r=t.evaluate(e.args[0]);return(!r||!("number"in r))&&(r={number:10067,base:"hexadecimal"}),e.value=String.fromCodePoint(r.number),e.createBox(t)}}),he("rule","[raise:value]{width:value}{thickness:value}",{createAtom:e=>new Ur(e),render:(e,t)=>{var r,i,s;const c=new So({parent:t,mathstyle:"textstyle"},e.style),u=c.toEm((r=e.args[0])!=null?r:{dimension:0}),k=c.toEm((i=e.args[1])!=null?i:{dimension:10}),j=c.toEm((s=e.args[2])!=null?s:{dimension:10}),Y=new zr(null,{classes:"rule",type:"ord"});return Y.width=k,Y.height=j+u,Y.depth=-u,Y.setStyle("border-right-width",k,"em"),Y.setStyle("border-top-width",j,"em"),Y.setStyle("border-color",e.style.color),Y.setStyle("vertical-align",u,"em"),e.isSelected&&Y.setStyle("opacity","50%"),e.bind(c,Y),e.caret&&(Y.caret=e.caret),Y.wrap(t)},serialize:e=>`\\rule${e.args[0]?`[${Dl(e.args[0])}]`:""}{${Dl(e.args[1])}}{${Dl(e.args[2])}}`}),he(["overline","underline"],"{:auto}",{createAtom:e=>new Ur(I(g({},e),{body:et(e.args[0])})),render:(e,t)=>{const r=e.command.substring(1),i=new So({parent:t,mathstyle:"cramp"},e.style),s=Ur.createBox(i,e.body);if(!s)return null;const c=i.metrics.defaultRuleThickness/i.scalingFactor,u=new zr(null,{classes:r+"-line"});u.height=c,u.maxFontSize=c*1.125*i.scalingFactor;let k;return r==="overline"?k=new bl({shift:0,children:[{box:s},3*c,{box:u},c]}):k=new bl({top:s.height,children:[c,{box:u},3*c,{box:s}]}),e.caret&&(k.caret=e.caret),new zr(k,{classes:r,type:"ignore"})}}),he("overset","{:auto}{base:auto}",{createAtom:e=>{const t=et(e.args[1]);return new mc(I(g({},e),{above:et(e.args[0]),body:t,skipBoundary:!1,boxType:Nd(t)}))},serialize:(e,t)=>Bs(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),he("underset","{:auto}{base:auto}",{createAtom:e=>{const t=et(e.args[1]);return new mc(I(g({},e),{below:et(e.args[0]),body:t,skipBoundary:!1,boxType:Nd(t)}))},serialize:(e,t)=>Bs(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),he("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=et(e.args[2]);return new mc(I(g({},e),{above:et(e.args[0]),below:et(e.args[1]),body:t,skipBoundary:!1,boxType:Nd(t)}))},serialize:(e,t)=>Bs(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),he(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:e=>new mc(I(g({},e),{body:et(e.args[2]),above:et(e.args[1]),below:et(e.args[0]),skipBoundary:!1,boxType:e.command==="\\stackrel"?"rel":"bin"})),serialize:(e,t)=>Bs(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),he("smash","[:string]{:auto}",{createAtom:e=>{var t,r,i,s;return new Nu(I(g({},e),{body:et(e.args[1]),smashHeight:(r=(t=e.args[0])==null?void 0:t.includes("t"))!=null?r:!0,smashDepth:(s=(i=e.args[0])==null?void 0:i.includes("b"))!=null?s:!0}))}}),he(["vphantom"],"{:auto}",{createAtom:e=>new Nu(I(g({},e),{body:et(e.args[0]),isInvisible:!0,smashWidth:!0}))}),he(["hphantom"],"{:auto}",{createAtom:e=>new Nu(I(g({},e),{body:et(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),he(["phantom"],"{:auto}",{createAtom:e=>new Nu(I(g({},e),{body:et(e.args[0]),isInvisible:!0}))}),he("not","{:math}",{createAtom:e=>{const t=et(e.args[0]);return t.length===0?new Ur(I(g({},e),{type:"mrel",value:"\uE020"})):new Ur(I(g({},e),{body:[new Jc(I(g({},e),{body:"\uE020",align:"right"})),...t],captureSelection:!0}))},serialize:(e,t)=>{const r=e.args[0],i=r&&typeof r=="object"&&"group"in r;return e.value!=="\uE020"?i?`\\not{${Ur.serialize(r.group,t)}}`:`\\not${Ur.serialize(r,t)}`:i?"\\not{}":"\\not"},render:(e,t)=>{if(e.value)return e.createBox(t);const i=e.args[0]&&typeof e.args[0]=="object"&&"group"in e.args[0]?"ord":Nd(et(e.args[0])),s=Ur.createBox(t,e.body,{type:i});return e.caret&&(s.caret=e.caret),e.bind(t,s)}}),he(["ne","neq"],"",{createAtom:e=>new Ur(I(g({},e),{type:"mrel",body:[new Jc(I(g({},e),{body:"\uE020",align:"right",boxType:"rel"})),new Ur(I(g({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),he("rlap","{:auto}",{createAtom:e=>new Jc(I(g({},e),{body:et(e.args[0]),align:"right"}))}),he("llap","{:auto}",{createAtom:e=>new Jc(I(g({},e),{body:et(e.args[0]),align:"left"}))}),he("mathrlap","{:math}",{createAtom:e=>new Jc(I(g({},e),{body:et(e.args[0]),align:"left"}))}),he("mathllap","{:math}",{createAtom:e=>new Jc(I(g({},e),{body:et(e.args[0]),align:"left"}))}),he("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new fc(I(g({},e),{body:et(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return Bs("\\raisebox",(r=Dl(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),he("raise","{:value}{:auto}",{createAtom:e=>{var t;return new fc(I(g({},e),{body:et(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return Bs("\\raise",(r=Dl(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),he("lower","{:value}{:auto}",{createAtom:e=>{var t;return new fc(I(g({},e),{body:et(e.args[1]),padding:{dimension:0},offset:(t=_A(e.args[0],-1))!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r,i;return Bs("\\lower",(i=Dl(_A((r=e.offset)!=null?r:{dimension:0},-1)))!=null?i:"0pt",e.bodyToLatex(t))}}),re("0123456789/@.?!"),Be(65,90),Be(97,122),re([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),re([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),re([["\\backslash",92],["\\nabla",8711],["\\partial",8706],["\\ell",8467],["\\hbar",8463],["\\Q",81,"mord","double-struck"],["\\C",67,"mord","double-struck"],["\\P",80,"mord","double-struck"],["\\pounds",163],["\\euro",8364]]),re([["\\rightarrow",8594],["\\to",8594],["\\leftarrow",8592],["\\gets",8592],["\\Rightarrow",8658],["\\Leftarrow",8656],["\\longrightarrow",10230],["\\longleftarrow",10229],["\\Longrightarrow",10233],["\\implies",10233],["\\Longleftarrow",10232],["\\impliedby",10232],["\\longleftrightarrow",10231],["\\biconditional",10231],["\\Longleftrightarrow",10234],["\\mapsto",8614],["\\longmapsto",10236],["\\uparrow",8593],["\\downarrow",8595],["\\Uparrow",8657],["\\Downarrow",8659],["\\updownarrow",8597],["\\Updownarrow",8661],["\\hookrightarrow",8618],["\\hookleftarrow",8617],["\\rightharpoonup",8640],["\\leftharpoonup",8636],["\\rightharpoondown",8641],["\\leftharpoondown",8637],["\\searrow",8600],["\\nearrow",8599],["\\swarrow",8601],["\\nwarrow",8598],["\\originalof",8886],["\\laplace",8886],["\\imageof",8887],["\\Laplace",8887]],"mrel"),re([["\\mapsfrom",8612,"mrel"],["\\Mapsfrom",10502,"mrel"],["\\MapsTo",10503,"mrel"],["\\Yup",8516,"mord"],["\\lightning",8623,"mrel"],["\\leftarrowtriangle",8701,"mrel"],["\\rightarrowtriangle",8702,"mrel"],["\\leftrightarrowtriangle",8703,"mrel"],["\\boxdot",8865,"mbin"],["\\bigtriangleup",9651,"mbin"],["\\bigtriangledown",9661,"mbin"],["\\boxbar",9707,"mbin"],["\\Lbag",10181,"mopen"],["\\Rbag",10182,"mclose"],["\\llbracket",10214,"mopen"],["\\rrbracket",10215,"mclose"],["\\longmapsfrom",10235,"mrel"],["\\Longmapsfrom",10237,"mrel"],["\\Longmapsto",10238,"mrel"],["\\boxslash",10692,"mbin"],["\\boxbslash",10693,"mbin"],["\\boxast",10694,"mbin"],["\\boxcircle",10695,"mbin"],["\\boxbox",10696,"mbin"],["\\fatsemi",10783,"mop"],["\\leftslice",10918,"mrel"],["\\rightslice",10919,"mrel"],["\\interleave",10996,"mbin"],["\\biginterleave",11004,"mop"],["\\sslash",11005,"mbin"],["\\talloblong",11006,"mbin"]]),re([["\\lbrace",123,"mopen"],["\\rbrace",125,"mclose"],["\\lparen",40,"mopen"],["\\rparen",41,"mclose"],["\\langle",10216,"mopen"],["\\rangle",10217,"mclose"],["\\lfloor",8970,"mopen"],["\\rfloor",8971,"mclose"],["\\lceil",8968,"mopen"],["\\rceil",8969,"mclose"],["\\vert",8739],["\\lvert",8739,"mopen"],["\\rvert",8739,"mclose"],["\\|",8741],["\\Vert",8741],["\\mVert",8741],["\\lVert",8741,"mopen"],["\\rVert",8741,"mclose"],["\\lbrack",91,"mopen"],["\\rbrack",93,"mclose"],["\\{",123,"mopen"],["\\}",125,"mclose"],["(",40,"mopen"],[")",41,"mclose"],["[",91,"mopen"],["]",93,"mclose"],["\\ulcorner",9484,"mopen","ams"],["\\urcorner",9488,"mclose","ams"],["\\llcorner",9492,"mopen","ams"],["\\lrcorner",9496,"mclose","ams"],["\\lgroup",10222,"mopen"],["\\rgroup",10223,"mclose"],["\\lmoustache",9136,"mopen"],["\\rmoustache",9137,"mclose"]]),re([["\\dashrightarrow",8674],["\\dashleftarrow",8672],["\\Rrightarrow",8667],["\\Lleftarrow",8666],["\\leftrightarrows",8646],["\\rightleftarrows",8644],["\\curvearrowright",8631],["\\curvearrowleft",8630],["\\rightrightarrows",8649],["\\leftleftarrows",8647],["\\upuparrows",8648],["\\downdownarrows",8650],["\\vartriangle",9651],["\\triangleq",8796],["\\vartriangleleft",8882],["\\trianglelefteq",8884],["\\ntriangleleft",8938],["\\ntrianglelefteq",8940],["\\vartriangleright",8883],["\\trianglerighteq",8885],["\\ntriangleright",8939],["\\ntrianglerighteq",8941],["\\blacktriangleleft",9664],["\\blacktriangleright",9654],["\\leftarrowtail",8610],["\\rightarrowtail",8611],["\\looparrowright",8620],["\\looparrowleft",8619],["\\twoheadleftarrow",8606],["\\twoheadrightarrow",8608],["\\twoheadrightarrowtail",10518],["\\rightleftharpoons",8652],["\\leftrightharpoons",8651],["\\Rsh",8625],["\\Lsh",8624],["\\circlearrowright",8635],["\\circlearrowleft",8634],["\\restriction",8638],["\\upharpoonright",8638],["\\upharpoonleft",8639],["\\downharpoonright",8642],["\\downharpoonleft",8643],["\\rightsquigarrow",8669],["\\leadsto",8669],["\\leftrightsquigarrow",8621],["\\multimap",8888],["\\nleftarrow",8602],["\\nrightarrow",8603],["\\nRightarrow",8655],["\\nLeftarrow",8653],["\\nleftrightarrow",8622],["\\nLeftrightarrow",8654],["\\nvrightarrow",8696],["\\nvtwoheadrightarrow",10496],["\\nvrightarrowtail",10516],["\\nvtwoheadrightarrowtail",10519],["\\shortparallel",8741],["\\nless",8814],["\\nleqslant",57360],["\\lneq",10887],["\\lneqq",8808],["\\nleqq",57361],["\\lvertneqq",57356],["\\lnsim",8934],["\\lnapprox",10889],["\\nprec",8832],["\\npreceq",8928],["\\precnsim",8936],["\\precnapprox",10937],["\\nsim",8769],["\\nshortmid",57350],["\\nmid",8740],["\\nvdash",8876],["\\nvDash",8877],["\\ngtr",8815],["\\ngeqslant",57359],["\\ngeqq",57358],["\\gneq",10888],["\\gneqq",8809],["\\gvertneqq",57357],["\\gnsim",8935],["\\gnapprox",10890],["\\nsucc",8833],["\\nsucceq",8929],["\\succnsim",8937],["\\succnapprox",10938],["\\ncong",8774],["\\nshortparallel",57351],["\\nparallel",8742],["\\nVDash",8879],["\\nsupseteqq",57368],["\\supsetneq",8843],["\\varsupsetneq",57371],["\\supsetneqq",10956],["\\varsupsetneqq",57369],["\\nVdash",8878],["\\precneqq",10933],["\\succneqq",10934],["\\nsubseteqq",57366],["\\leqslant",10877],["\\geqslant",10878],["\\gtrsim",8819],["\\approxeq",8778],["\\thickapprox",8776],["\\lessapprox",10885],["\\gtrapprox",10886],["\\precapprox",10935],["\\succapprox",10936],["\\thicksim",8764],["\\succsim",8831],["\\precsim",8830],["\\backsim",8765],["\\eqsim",8770],["\\backsimeq",8909],["\\lesssim",8818],["\\nleq",8816],["\\ngeq",8817],["\\smallsmile",8995],["\\smallfrown",8994],["\\leqq",8806],["\\eqslantless",10901],["\\lll",8920],["\\lessgtr",8822],["\\lesseqgtr",8922],["\\lesseqqgtr",10891],["\\risingdotseq",8787],["\\fallingdotseq",8786],["\\subseteqq",10949],["\\Subset",8912],["\\sqsubset",8847],["\\preccurlyeq",8828],["\\curlyeqprec",8926],["\\vDash",8872],["\\Vvdash",8874],["\\bumpeq",8783],["\\Bumpeq",8782],["\\geqq",8807],["\\eqslantgtr",10902],["\\ggg",8921],["\\gtrless",8823],["\\gtreqless",8923],["\\gtreqqless",10892],["\\supseteqq",10950],["\\Supset",8913],["\\sqsupset",8848],["\\succcurlyeq",8829],["\\curlyeqsucc",8927],["\\Vdash",8873],["\\shortmid",8739],["\\between",8812],["\\pitchfork",8916],["\\varpropto",8733],["\\backepsilon",8717],["\\llless",8920],["\\gggtr",8921],["\\doteqdot",8785],["\\Doteq",8785],["\\eqcirc",8790],["\\circeq",8791],["\\therefore",8756],["\\because",8757]],"mrel","ams"),re([["+",43],["-",8722],["\u2212",8722],["\\pm",177],["\\mp",8723],["*",8727],["\\times",215],["\\div",247],["\\divides",8739],["\\cdot",8901],["\\cap",8745],["\\cup",8746],["\\setminus",8726],["\\land",8743],["\\wedge",8743],["\\lor",8744],["\\vee",8744],["\\circ",8728],["\\bigcirc",9711],["\\bullet",8729],["\\oplus",8853],["\\ominus",8854],["\\otimes",8855],["\\odot",8857],["\\oslash",8856],["\\bigtriangleup",9651],["\\bigtriangledown",9661],["\\triangleleft",9667],["\\triangleright",9657],["\\And",38],["\\dagger",8224],["\\dag",8224],["\\ddag",8225],["\\ddagger",8225],["\\ast",8727],["\\star",8902],["\\bigstar",9733],["\\diamond",8900]],"mbin"),re([["\\lhd",8882],["\\rhd",8883],["\\lessdot",8918],["\\gtrdot",8919],["\\ltimes",8905],["\\rtimes",8906],["\\leftthreetimes",8907],["\\rightthreetimes",8908],["\\intercal",8890],["\\dotplus",8724],["\\doublebarwedge",10846],["\\divideontimes",8903],["\\centerdot",8901],["\\smallsetminus",8726],["\\barwedge",8892],["\\veebar",8891],["\\nor",8891],["\\curlywedge",8911],["\\curlyvee",8910],["\\boxminus",8863],["\\boxplus",8862],["\\boxtimes",8864],["\\boxdot",8865],["\\circleddash",8861],["\\circledast",8859],["\\circledcirc",8858],["\\unlhd",8884],["\\unrhd",8885]],"mbin","ams"),re([["\\surd",8730],["\\infty",8734],["\\prime",8242],["\\doubleprime",8243],["\\angle",8736],["`",8216],["\\$",36],["\\%",37],["\\_",95],["\\alpha",945],["\\beta",946],["\\gamma",947],["\\delta",948],["\\epsilon",1013],["\\varepsilon",949],["\\zeta",950],["\\eta",951],["\\theta",952],["\\vartheta",977],["\\iota",953],["\\kappa",954],["\\varkappa",1008,"mord","ams"],["\\lambda",955],["\\mu",956],["\\nu",957],["\\xi",958],["\\omicron",111],["\\pi",960],["\\varpi",982],["\\rho",961],["\\varrho",1009],["\\sigma",963],["\\varsigma",962],["\\tau",964],["\\phi",981],["\\varphi",966],["\\upsilon",965],["\\chi",967],["\\psi",968],["\\omega",969],["\\Gamma",915],["\\Delta",916],["\\Theta",920],["\\Lambda",923],["\\Xi",926],["\\Pi",928],["\\Sigma",931],["\\Upsilon",933],["\\Phi",934],["\\Psi",936],["\\Omega",937],["\\digamma",989,"mord","ams"],["\\emptyset",8709]]),re([["=",61],["<",60],["\\lt",60],[">",62],["\\gt",62],["\\le",8804],["\\leq",8804],["\\ge",8805],["\\geq",8805],["\\ll",8810],["\\gg",8811],["\\coloneq",8788],["\\coloneqq",8788],["\\colonequals",8788],["\\measeq",8797],["\\eqdef",8798],["\\questeq",8799],[":",58],["\\cong",8773],["\\equiv",8801],["\\prec",8826],["\\preceq",10927],["\\succ",8827],["\\succeq",10928],["\\perp",8869],["\\propto",8733],["\\Colon",8759],["\\smile",8995],["\\frown",8994],["\\sim",8764],["\\doteq",8784],["\\bowtie",8904],["\\Join",8904],["\\asymp",8781],["\\sqsubseteq",8849],["\\sqsupseteq",8850],["\\approx",8776],["\\~",126],["\\leftrightarrow",8596],["\\Leftrightarrow",8660],["\\models",8872],["\\vdash",8866],["\\dashv",8867],["\\roundimplies",10608],["\\in",8712],["\\notin",8713],["\\ni",8715],["\\owns",8715],["\\subset",8834],["\\supset",8835],["\\subseteq",8838],["\\supseteq",8839],["\\differencedelta",8710],["\\mvert",8739],["\\parallel",8741],["\\simeq",8771]],"mrel"),re([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),re([["\\wp",8472],["\\aleph",8501]]),re([["\\blacktriangle",9650],["\\hslash",8463],["\\Finv",8498],["\\Game",8513],["\\eth",240],["\\mho",8487],["\\Bbbk",107],["\\yen",165],["\\square",9633],["\\Box",9633],["\\blacksquare",9632],["\\circledS",9416],["\\circledR",174],["\\triangledown",9661],["\\blacktriangledown",9660],["\\checkmark",10003],["\\diagup",9585],["\\measuredangle",8737],["\\sphericalangle",8738],["\\backprime",8245],["\\backdoubleprime",8246],["\\Diamond",9674],["\\lozenge",9674],["\\blacklozenge",10731],["\\varnothing",8709],["\\complement",8705],["\\maltese",10016],["\\beth",8502],["\\daleth",8504],["\\gimel",8503]],"mord","ams"),re([["\\ ",160],["~",160]],"space"),he(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new iA(e)}),he("space","",{createAtom:e=>new iA(e)}),re([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),re([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),re([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var ha="<mo>&#x2061;</mo>",Ga="<mo>&#8290;</mo>";function ro(e){return e.replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function da(e,t){return!e||!t.generateID?"":` extid="${e}"`}function tc(e,t,r){var i,s,c,u,k,j,Y,ce,Pe,rt,gt;let Et=!1;t=t!=null?t:e.atoms.length;let Br="",In="",wr=e.atoms[e.index];const nn=(s=(i=wr.style)==null?void 0:i.variant)!=null?s:"",kn=(u=(c=wr.style)==null?void 0:c.variantStyle)!=null?u:"";let dn="";if(nn||kn){const qi=tt(wr.value,(k=wr.style)==null?void 0:k.variant,(j=wr.style)==null?void 0:j.variantStyle);if(qi!==wr.value)return e.index+=1,Br=`<mi${da(wr.id,r)}>${qi}</mi>`,fl(Br,e,r)||(e.mathML+=Br,e.lastType="mi"),!0;dn=(Y={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[kn+nn])!=null?Y:"",dn=` mathvariant="${dn}"`}const Bi={"\\exponentialE":"&#x02147;","\\imaginaryI":"&#x2148;","\\differentialD":"&#x2146;","\\capitalDifferentialD":"&#x2145;","\\alpha":"&#x03b1;","\\pi":"&#x03c0;","\\infty":"&#x221e;","\\forall":"&#x2200;","\\nexists":"&#x2204;","\\exists":"&#x2203;","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(wr.command==="!")return e.index+=1,Br="<mo>!</mo>",fl(Br,e,r)||(e.mathML+=Br,e.lastType="mo"),!0;if(Bi[wr.command]){e.index+=1;let qi=`<mi${da(wr.id,r)}${dn}>${Bi[wr.command]}</mi>`;return(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mtext"||e.lastType==="fence")&&(qi=Ga+qi),fl(qi,e,r)||(e.mathML+=qi,e.lastType="mi"),!0}if(wr.command==="\\operatorname")In=ju(wr.body),e.index+=1;else if(nn||kn)for(;e.index<t&&(wr.type==="mord"||wr.type==="macro")&&!wr.isDigit()&&nn===((Pe=(ce=wr.style)==null?void 0:ce.variant)!=null?Pe:"")&&kn===((gt=(rt=wr.style)==null?void 0:rt.variantStyle)!=null?gt:"");)In+=ju([wr]),e.index+=1,wr=e.atoms[e.index];else(wr.type==="mord"||wr.type==="macro")&&!wr.isDigit()&&(In+=ju([wr]),e.index+=1);if(In.length>0){Et=!0,Br=`<mi${dn}>${In}</mi>`;const qi=e.lastType;Br.endsWith(">f</mi>")||Br.endsWith(">g</mi>")?(Br+=ha,e.lastType="applyfunction"):e.lastType=/^<mo>(.*)<\/mo>$/.test(Br)?"mo":"mi",fl(Br,e,r)||((qi==="mi"||qi==="mn"||qi==="mtext"||qi==="fence")&&(Br=Ga+Br),e.mathML+=Br)}return Et}function Ic(e){return e.index<e.atoms.length&&e.atoms[e.index].superscript&&e.atoms[e.index].type==="subsup"}function wl(e){let t=-1,r=e.index,i=!1,s=!1;for(;r<e.atoms.length&&!i&&!s;){const c=e.atoms[r];i=!c.isDigit(),s=!i&&c.superscript!==void 0,r++}return s&&(t=r-1),t}function fl(e,t,r){var i;let s=t.atoms[t.index-1];if(!s)return!1;if(!s.superscript&&!s.subscript)if(((i=t.atoms[t.index])==null?void 0:i.type)==="subsup")s=t.atoms[t.index],t.index+=1;else return!1;const c=t.lastType;t.lastType="";const u=Ro(s.superscript,r);t.lastType="";const k=Ro(s.subscript,r);if(t.lastType=c,!u&&!k)return!1;let j="";return u&&k?j=`<msubsup>${e}${k}${u}</msubsup>`:u?j=`<msup>${e}${u}</msup>`:k&&(j=`<msub>${e}${k}</msub>`),t.mathML+=j,t.lastType="",!0}function Fc(e,t,r){t=t!=null?t:e.atoms.length;const i=e.index;let s="";for(;e.index<t&&e.atoms[e.index].mode==="text";)s+=e.atoms[e.index].value?e.atoms[e.index].value:" ",e.index+=1;return s.length>0?(e.mathML+=`<mtext ${da(e.atoms[i].id,r)}>${s}</mtext>`,e.lastType="mtext",!0):!1}function uA(e,t,r){t=t!=null?t:e.atoms.length;const i=e.index;let s="",c=wl(e);for(c>=0&&c<t&&(t=c);e.index<t&&e.atoms[e.index].isDigit();)s+=e.atoms[e.index].asDigit(),e.index+=1;return s.length<=0?!1:(s="<mn"+da(e.atoms[i].id,r)+">"+s+"</mn>",c<0&&Ic(e)&&(c=e.index,e.index+=1),fl(s,e,r)||(e.mathML+=s,e.lastType="mn"),!0)}function Ku(e,t,r){let i=!1;t=t!=null?t:e.atoms.length;let s="",c="";if(e.index<t&&e.atoms[e.index].type==="mopen"){let u=!1,k=0;const j=e.index;let Y=-1,ce=j+1;for(;ce<t&&!u;)e.atoms[ce].type==="mopen"?k+=1:e.atoms[ce].type==="mclose"&&(k-=1),k===-1&&(u=!0,Y=ce),ce+=1;u&&(s="<mrow>",s+=Hu(e.atoms[j],r),s+=Ro(e.atoms,r,j+1,Y),s+=Hu(e.atoms[Y],r),s+="</mrow>",e.index=Y+1,(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mfrac"||e.lastType==="fence")&&(e.mathML+=Ga),fl(s,e,r)&&(i=!0,e.lastType="",s=""),c="fence")}return s.length>0&&(i=!0,e.mathML+=s,e.lastType=c),i}function qA(e,t,r){let i=!1;t=t!=null?t:e.atoms.length;let s="",c="";const u=e.atoms[e.index];if(!u)return!1;const k={"\\ne":"&ne;","\\neq":"&neq;","\\pm":"&#177;","\\times":"&#215;","\\colon":":","\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lbrack":"[","\\rbrack":"]","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"};if(k[u.command]){e.index+=1;const j=`<mo${da(u.id,r)}>${k[u.command]}</mo>`;return fl(j,e,r)||(e.mathML+=j,e.lastType="mo"),!0}if(e.index<t&&(u.type==="mbin"||u.type==="mrel"))s+=tf(e.atoms[e.index],r),e.index+=1,c="mo";else if(e.index<t&&(u.type==="mop"||u.type==="operator"||u.type==="extensible-symbol")){if(u.subsupPlacement==="over-under"&&(u.superscript||u.subscript)){const j=Hu(u,r);return u.superscript&&u.subscript?(s+="<munderover>"+j,s+=Ro(u.subscript,r),s+=Ro(u.superscript,r),s+="</munderover>"):u.superscript?(s+="<mover>"+j,s+=Ro(u.superscript,r),s+="</mover>"):u.subscript&&(s+="<munder>"+j,s+=Ro(u.subscript,r),s+="</munder>"),e.mathML+=s,e.lastType="mo",e.index+=1,!0}{const j=e.atoms[e.index],Y=j.value==="\\operatorname",ce=Y?'<mi class="MathML-Unit"'+da(j.id,r)+">"+ju(j.value)+"</mi>":Hu(j,r);s+=ce,!Y&&!/^<mo>(.*)<\/mo>$/.test(ce)?(s+=ha,c="applyfunction"):c=Y?"mi":"mo"}(e.lastType==="mi"||e.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(s)&&(s=Ga+s),e.index+=1}return s.length>0&&(i=!0,fl(s,e,r)||(e.mathML+=s,e.lastType=c)),i}function Ro(e,t,r,i){t!=null||(t={});const s={atoms:[],index:r!=null?r:0,mathML:"",lastType:""};if(typeof e=="number"||typeof e=="boolean")s.mathML=e.toString();else if(typeof e=="string")s.mathML=e;else if(e instanceof Ur)s.mathML=tf(e,t);else if(Array.isArray(e)){s.atoms=e;let c=0;for(i=i||(e?e.length:0);s.index<i;)if(Fc(s,i,t)||uA(s,i,t)||tc(s,i,t)||qA(s,i,t)||Ku(s,i,t))c+=1;else if(s.index<i){let u=tf(s.atoms[s.index],t);s.lastType==="mn"&&u.length>0&&s.atoms[s.index].type==="genfrac"&&(u="<mo>&#x2064;</mo>"+u),s.atoms[s.index].type==="genfrac"?s.lastType="mfrac":s.lastType="",s.index+=1,fl(u,s,t)?c+=1:u.length>0&&(s.mathML+=u,c+=1)}c>1&&(s.mathML="<mrow>"+s.mathML+"</mrow>")}return s.mathML}function Hu(e,t){let r="";const i=ju(e.value);return i&&(r="<mo"+da(e.id,t)+">"+i+"</mo>"),r}function ju(e){if(!e)return"";if(typeof e=="string")return ro(e);if(!Array.isArray(e)&&typeof e.body=="string")return ro(e.body);let t="";for(const r of e)typeof r.value=="string"&&(t+=r.value);return ro(t)}function tf(e,t){var r,i,s,c,u,k,j,Y,ce,Pe,rt,gt,Et,Br,In,wr,nn,kn,dn,Bi,qi,Ui;if(e.mode==="text")return`<mi${da(e.id,t)}>${e.value}</mi>`;const h={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",longleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",longrightarrow:"\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",longrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xleftrightarrows:"\u21C4",xRightleftharpoons:"\u21CC",longRightleftharpoons:"\u21CC",xLeftrightharpoons:"\u21CB",longLeftrightharpoons:"\u21CB"},B={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let Q="",ge="",Ke,$e,We,at,At,dt;const{command:Kt}=e;if(e.command==="\\error")return`<merror${da(e.id,t)}>${Ro(e.body,t)}</merror>`;const yr={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},wt={"\\vec":"&#x20d7;","\\acute":"&#x00b4;","\\grave":"&#x0060;","\\dot":"&#x02d9;","\\ddot":"&#x00a8;","\\tilde":"&#x007e;","\\bar":"&#x00af;","\\breve":"&#x02d8;","\\check":"&#x02c7;","\\hat":"&#x005e;"};switch(e.type){case"first":break;case"group":case"root":Q=Ro(e.body,t);break;case"array":if((e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(Q+="<mrow>",e.leftDelim&&e.leftDelim!=="."&&(Q+="<mo>"+(yr[e.leftDelim]||e.leftDelim)+"</mo>")),Q+="<mtable",e.colFormat){for(Q+=' columnalign="',We=0;We<e.colFormat.length;We++)e.colFormat[We].align&&(Q+={l:"left",c:"center",r:"right"}[e.colFormat[We].align]+" ");Q+='"'}for(Q+=">",$e=0;$e<e.array.length;$e++){for(Q+="<mtr>",Ke=0;Ke<e.array[$e].length;Ke++)Q+="<mtd>"+Ro(e.array[$e][Ke],t)+"</mtd>";Q+="</mtr>"}Q+="</mtable>",(e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(e.rightDelim&&e.rightDelim!=="."&&(Q+="<mo>"+(yr[e.leftDelim]||e.rightDelim)+"</mo>"),Q+="</mrow>");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(Q+="<mrow>"),e.leftDelim&&e.leftDelim!=="."&&(Q+="<mo"+da(e.id,t)+">"+(yr[e.leftDelim]||e.leftDelim)+"</mo>"),e.hasBarLine?(Q+="<mfrac>",Q+=Ro(e.above,t)||"<mi>&nbsp;</mi>",Q+=Ro(e.below,t)||"<mi>&nbsp;</mi>",Q+="</mfrac>"):(Q+="<mtable"+da(e.id,t)+">",Q+="<mtr>"+Ro(e.above,t)+"</mtr>",Q+="<mtr>"+Ro(e.below,t)+"</mtr>",Q+="</mtable>"),e.rightDelim&&e.rightDelim!=="."&&(Q+="<mo"+da(e.id,t)+">"+(yr[e.rightDelim]||e.rightDelim)+"</mo>"),(e.leftDelim||e.rightDelim)&&(Q+="</mrow>");break;case"surd":e.hasEmptyBranch("above")?(Q+="<msqrt"+da(e.id,t)+">",Q+=Ro(e.body,t),Q+="</msqrt>"):(Q+="<mroot"+da(e.id,t)+">",Q+=Ro(e.body,t),Q+=Ro(e.above,t),Q+="</mroot>");break;case"leftright":const nr=e,vr=nr.leftDelim;Q="<mrow>",vr&&vr!=="."&&(Q+=`<mo${da(e.id,t)}>${(r=yr[vr])!=null?r:vr}</mo>`),e.body&&(Q+=Ro(e.body,t));const Xr=nr.matchingRightDelim();Xr&&Xr!=="."&&(Q+=`<mo${da(e.id,t)}>${(i=yr[Xr])!=null?i:Xr}</mo>`),Q+="</mrow>";break;case"sizeddelim":case"delim":Q+=`<mo${da(e.id,t)}>${yr[e.value]||e.value}</mo>`;break;case"accent":Q+='<mover accent="true"'+da(e.id,t)+">",Q+=Ro(e.body,t),Q+="<mo>"+(wt[Kt]||e.accent)+"</mo>",Q+="</mover>";break;case"line":case"overlap":break;case"overunder":At=e.above,at=e.below,(e.svgAbove||At)&&(e.svgBelow||at)?dt=e.body:At&&At.length>0?(dt=e.body,(c=(s=e.body)==null?void 0:s[0])!=null&&c.below?(at=e.body[0].below,dt=e.body[0].body):((k=(u=e.body)==null?void 0:u[0])==null?void 0:k.type)==="first"&&((Y=(j=e.body)==null?void 0:j[1])!=null&&Y.below)&&(at=e.body[1].below,dt=e.body[1].body)):at&&at.length>0&&(dt=e.body,(Pe=(ce=e.body)==null?void 0:ce[0])!=null&&Pe.above?(At=e.body[0].above,dt=e.body[0].body):((gt=(rt=e.body)==null?void 0:rt[0])==null?void 0:gt.type)==="first"&&((Br=(Et=e.body)==null?void 0:Et[1])!=null&&Br.above)&&(At=e.body[1].overscript,dt=e.body[1].body)),(e.svgAbove||At)&&(e.svgBelow||at)?(Q+=`<munderover ${da(e.id,t)}>`,Q+=(In=h[e.svgBody])!=null?In:Ro(dt,t),Q+=(wr=h[e.svgBelow])!=null?wr:Ro(at,t),Q+=(nn=h[e.svgAbove])!=null?nn:Ro(At,t),Q+="</munderover>"):e.svgAbove||At?(Q+=`<mover ${da(e.id,t)}>`+((kn=h[e.svgBody])!=null?kn:Ro(dt,t)),Q+=(dn=h[e.svgAbove])!=null?dn:Ro(At,t),Q+="</mover>"):(e.svgBelow||at)&&(Q+=`<munder ${da(e.id,t)}>`+((Bi=h[e.svgBody])!=null?Bi:Ro(dt,t)),Q+=(qi=h[e.svgBelow])!=null?qi:Ro(at,t),Q+="</munder>");break;case"placeholder":Q+="?";break;case"mord":{Q=typeof e.value=="string"?e.value:Kt,Kt==="\\char"?Q="&#x"+("000000"+e.args[0].number.toString(16)).slice(-4)+";":Q.length>0&&Q.startsWith("\\")&&(typeof e.value=="string"&&e.value.charCodeAt(0)>255?Q="&#x"+("000000"+e.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof e.value=="string"?Q=e.value.charAt(0):(console.error("Did not expect this"),Q=""));const Sr=/\d/.test(Q)?"mn":"mi";Q=`<${Sr}${da(e.id,t)}>${ro(Q)}</${Sr}>`;break}case"mbin":case"mrel":case"minner":Q=Hu(e,t);break;case"mpunct":Q='<mo separator="true"'+da(e.id,t)+">"+Kt+"</mo>";break;case"mop":case"operator":case"extensible-symbol":e.body!=="\u200B"&&(Q="<mo"+da(e.id,t)+">",Q+=Kt==="\\operatorname"?e.body:Kt||e.body,Q+="</mo>");break;case"box":Q='<menclose notation="box"',e.backgroundcolor&&(Q+=' mathbackground="'+e.backgroundcolor+'"'),Q+=da(e.id,t)+">"+Ro(e.body,t)+"</menclose>";break;case"spacing":Q+='<mspace width="'+((Ui=B[Kt])!=null?Ui:0)+'em"/>';break;case"enclose":Q='<menclose notation="';for(const Sr in e.notation)Object.prototype.hasOwnProperty.call(e.notation,Sr)&&e.notation[Sr]&&(Q+=ge+Sr,ge=" ");Q+=da(e.id,t)+'">'+Ro(e.body,t)+"</menclose>";break;case"prompt":Q='<menclose notation="roundexbox""">'+Ro(e.body,t)+"</menclose>";break;case"space":Q+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":Q+=Hu(e,t);break;case"mclose":Q+=Hu(e,t);break;case"macro":{const Sr=e.command+ju(e.macroArgs);Sr&&(Q+=`<mo ${da(e.id,t)}>${Sr}</mo>`)}break;case"latexgroup":Q+=Ro(e.body,t);break;case"latex":Q+="<mtext"+da(e.id,t)+">"+e.value+"</mtext>";break;case"tooltip":Q+=Ro(e.body,t);break;case"text":Q+=`<mtext ${da(e.id,t)}x>${e.value}</mtext>`;break;default:if(e.command==="\\displaystyle")return`<mrow ${da(e.id,t)} displaystyle="true">${Ro(e.body,t)}</mrow>`;if(e.command==="\\textstyle")return`<mrow ${da(e.id,t)} displaystyle="false">${Ro(e.body,t)}</mrow>`;console.info("Unexpected element in conversion to MathML:",e)}return Q}var zu={"\\alpha":"alpha ","\\mu":"mew ","\\sigma":"sigma ","\\pi":"pie ","\\imaginaryI":"imaginary eye ","\\imaginaryJ":"imaginary jay ","\\sum":"Summation ","\\prod":"Product ","+":"plus ","-":"minus ",";":'<break time="150ms"/> semi-colon <break time="150ms"/>',",":'<break time="150ms"/> comma <break time="150ms"/>',"|":'<break time="150ms"/>Vertical bar<break time="150ms"/>',"(":'<break time="150ms"/>Open paren. <break time="150ms"/>',")":'<break time="150ms"/> Close paren. <break time="150ms"/>',"=":"equals ","<":"is less than ","\\lt":"is less than ","<=":"is less than or equal to ","\\le":"is less than or equal to ","\\gt":"is greater than ",">":"is greater than ","\\pm":"plus or minus","\\mp":"minus or plus","\\ge":"is greater than or equal to ","\\geq":"is greater than or equal to ","\\leq":"is less than or equal to ","\\ne":"is not equal to ","\\neq":"is not equal to ","!":"factorial ","\\sin":"sine ","\\cos":"cosine ","\u200B":"","\u2212":"minus ",":":'<break time="150ms"/> such that <break time="200ms"/> ',"\\colon":'<break time="150ms"/> such that <break time="200ms"/> ',"\\hbar":"etch bar ","\\iff":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\Longleftrightarrow":'<break time="200ms"/>if, and only if, <break time="200ms"/>',"\\land":"and ","\\lor":"or ","\\neg":"not ","\\div":"divided by ","\\forall":"for all ","\\exists":"there exists ","\\nexists":"there does not exists ","\\in":"element of ","\\N":'the set <break time="150ms"/><say-as interpret-as="character">n</say-as>',"\\C":'the set <break time="150ms"/><say-as interpret-as="character">c</say-as>',"\\Z":'the set <break time="150ms"/><say-as interpret-as="character">z</say-as>',"\\Q":'the set <break time="150ms"/><say-as interpret-as="character">q</say-as>',"\\infty":"infinity ","\\nabla":"nabla ","\\partial":"partial derivative of ","\\cdot":"times ","\\cdots":"dot dot dot ","\\Rightarrow":"implies ","\\lparen":'<break time="150ms"/>open paren<break time="150ms"/>',"\\rparen":'<break time="150ms"/>close paren<break time="150ms"/>',"\\lbrace":'<break time="150ms"/>open brace<break time="150ms"/>',"\\{":'<break time="150ms"/>open brace<break time="150ms"/>',"\\rbrace":'<break time="150ms"/>close brace<break time="150ms"/>',"\\}":'<break time="150ms"/>close brace<break time="150ms"/>',"\\langle":'<break time="150ms"/>left angle bracket<break time="150ms"/>',"\\rangle":'<break time="150ms"/>right angle bracket<break time="150ms"/>',"\\lfloor":'<break time="150ms"/>open floor<break time="150ms"/>',"\\rfloor":'<break time="150ms"/>close floor<break time="150ms"/>',"\\lceil":'<break time="150ms"/>open ceiling<break time="150ms"/>',"\\rceil":'<break time="150ms"/>close ceiling<break time="150ms"/>',"\\vert":'<break time="150ms"/>vertical bar<break time="150ms"/>',"\\mvert":'<break time="150ms"/>divides<break time="150ms"/>',"\\lvert":'<break time="150ms"/>left vertical bar<break time="150ms"/>',"\\rvert":'<break time="150ms"/>right vertical bar<break time="150ms"/>',"\\lbrack":'<break time="150ms"/> open square bracket <break time="150ms"/>',"\\rbrack":'<break time="150ms"/> close square bracket <break time="150ms"/>',mm:"millimeters",cm:"centimeters",km:"kilometers",kg:"kilograms"},Nf={array:"array",matrix:"matrix",pmatrix:"parenthesis matrix",bmatrix:"square brackets matrix",Bmatrix:"braces matrix",vmatrix:"bars matrix",Vmatrix:"double bars matrix","matrix*":"matrix",smallmatrix:"small matrix"};function i0(e){let t="";return e.startsWith("\\")&&(t=" "+e.replace("\\","")+" "),t}function Mc(e){let t=0;if(E(e))for(const r of e)r.type!=="first"&&(t+=1);return t===1}function a0(e){if(E(e)){for(const t of e)if(t.type!=="first"&&t.id)return t.id.toString()}return""}function fh(e){let t="";if(E(e))for(const r of e)r.type!=="first"&&typeof r.value=="string"&&(t+=r.value);return t}function Rp(e){return e?e.map(t=>t.value).join(""):""}function no(e,t){var r,i,s,c,u;function k(ce){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(ce)?` <say-as interpret-as="character">${ce}</say-as>`:/[A-Z]/.test(ce)?`capital <say-as interpret-as="character">${ce.toLowerCase()}</say-as>`:ce:/[a-z]/.test(ce)?" '"+ce.toUpperCase()+"'":/[A-Z]/.test(ce)?" 'capital "+ce.toUpperCase()+"'":ce}function j(ce){return"<emphasis>"+ce+"</emphasis>"}if(!t)return"";let Y="";if(E(t)){let ce=!1,Pe=!1;for(let rt=0;rt<t.length;rt++)t[rt].type!=="first"&&(t[rt].mode!=="text"&&(Pe=!1),rt<t.length-2&&t[rt].type==="mopen"&&t[rt+2].type==="mclose"&&t[rt+1].type==="mord"?(Y+=" of ",Y+=j(no(e,t[rt+1])),rt+=2):t[rt].mode==="text"?Pe?Y+=(r=t[rt].value)!=null?r:" ":(Pe=!0,Y+=no("text",t[rt])):t[rt].isDigit()?ce?Y+=t[rt].asDigit():(ce=!0,Y+=no(e,t[rt])):(ce=!1,Y+=no(e,t[rt])))}else if(t.mode==="text")t.id&&e==="math"&&(Y+='<mark name="'+t.id.toString()+'"/>'),Y+=t.value;else{t.id&&e==="math"&&(Y+='<mark name="'+t.id.toString()+'"/>');let ce="",Pe="",rt="",gt=!1;const{command:Et}=t;switch(Et){case"\\vec":return"vector "+no(e,t.body);case"\\acute":return no(e,t.body)+" acute";case"\\grave":return no(e,t.body)+" grave";case"\\dot":return"dot over"+no(e,t.body);case"\\ddot":return"double dot over"+no(e,t.body);case"\\mathring":return"ring over"+no(e,t.body);case"\\tilde":case"\\widetilde":return"tilde over"+no(e,t.body);case"\\bar":return no(e,t.body)+" bar";case"\\breve":return no(e,t.body)+" breve";case"\\check":case"\\widecheck":return"check over "+no(e,t.body);case"\\hat":case"\\widehat":return"hat over"+no(e,t.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+no(e,t.body);case"\\underarc":case"\\underparen":return"arc under "+no(e,t.body)}switch(t.type){case"prompt":const Br=t.body.length>1?'start input . <break time="500ms"/> '+no(e,t.body)+'. <break time="500ms"/> end input':"blank";Y+=' <break time="300ms"/> '+Br+'. <break time="700ms"/>'+((i=t.correctness)!=null?i:"")+' . <break time="700ms"/> ';break;case"array":const In=t.array,wr=t.environmentName;if(Object.keys(Nf).includes(wr)){Y+=` begin ${Nf[wr]} `;for(let dn=0;dn<In.length;dn++){dn>0&&(Y+=","),Y+=` row ${dn+1} `;for(let Bi=0;Bi<In[dn].length;Bi++)Bi>0&&(Y+=","),Y+=` column ${Bi+1}: `,Y+=no("math",In[dn][Bi])}Y+=` end ${Nf[wr]} `}break;case"group":Et==="\\ne"?Y+=" not equal ":(Et==="\\not"&&(Y+=" not "),Y+=no("math",t.body));break;case"root":Y+=no("math",t.body);break;case"genfrac":if(ce=no("math",t.above),Pe=no("math",t.below),Mc(t.above)&&Mc(t.below)){const Bi={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[fh(t.above)+"/"+fh(t.below)];Bi?Y=Bi:Y+=ce+" over "+Pe}else Y+=' the fraction <break time="150ms"/>'+ce+' over <break time="150ms"/>'+Pe+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(rt=no("math",t.body),t.hasEmptyBranch("above"))Y+=Mc(t.body)?" the square root of "+rt+" , ":' the square root of <break time="200ms"/>'+rt+'. <break time="200ms"/> End square root';else{let dn=no("math",t.above);dn=dn.trim();const Bi=dn.replace(/<mark([^/]*)\/>/g,"");Bi==="3"?Y+=' the cube root of <break time="200ms"/>'+rt+'. <break time="200ms"/> End cube root':Bi==="n"?Y+=' the nth root of <break time="200ms"/>'+rt+'. <break time="200ms"/> End root':Y+=' the root with index: <break time="200ms"/>'+dn+', of <break time="200ms"/>'+rt+'. <break time="200ms"/> End root'}break;case"leftright":{const dn=t;Y+=(s=dn.leftDelim?zu[dn.leftDelim]:void 0)!=null?s:dn.leftDelim,Y+=no("math",t.body),Y+=(c=dn.rightDelim?zu[dn.rightDelim]:void 0)!=null?c:dn.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const nn=Et.replace(/^\\/g,""),kn=Ye()[nn];kn&&(kn!=null&&kn.expand?Y+=no("math",t.body):Y+=`${nn} `);break;case"placeholder":Y+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Et==="\\mathbin"||Et==="\\mathrel"||Et==="\\mathopen"||Et==="\\mathclose"||Et==="\\mathpunct"||Et==="\\mathord"||Et==="\\mathinner"){Y=no(e,t.body);break}let dn=t.isDigit()?t.asDigit():t.value,Bi=t.command;if((t.type==="delim"||t.type==="sizeddelim")&&(Bi=t.value,dn=Bi),e==="text")Y+=dn;else{if(t.type==="mbin"&&(Y+='<break time="150ms"/>'),dn){const qi=zu[dn]||(Bi?zu[Bi.trim()]:"");if(qi)Y+=" "+qi;else{const Ui=Bi?i0(Bi.trim()):"";Y+=Ui||k(dn)}}else Y+=no("math",t.body);t.type==="mbin"&&(Y+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(t.value!=="\u200B"){const dn=t.command;if(dn==="\\sum")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Bi=no("math",t.superscript);Bi=Bi.trim();let qi=no("math",t.subscript);qi=qi.trim(),Y+=' the summation from <break time="200ms"/>'+qi+'<break time="200ms"/> to <break time="200ms"/>'+Bi+'<break time="200ms"/> of <break time="150ms"/>',gt=!0}else if(t.hasEmptyBranch("subscript"))Y+=" the summation of";else{let Bi=no("math",t.subscript);Bi=Bi.trim(),Y+=' the summation from <break time="200ms"/>'+Bi+'<break time="200ms"/> of <break time="150ms"/>',gt=!0}else if(dn==="\\prod")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Bi=no("math",t.superscript);Bi=Bi.trim();let qi=no("math",t.subscript);qi=qi.trim(),Y+=' the product from <break time="200ms"/>'+qi+'<break time="200ms"/> to <break time="200ms"/>'+Bi+'<break time="200ms"/> of <break time="150ms"/>',gt=!0}else if(t.hasEmptyBranch("subscript"))Y+=" the product of ";else{let Bi=no("math",t.subscript);Bi=Bi.trim(),Y+=' the product from <break time="200ms"/>'+Bi+'<break time="200ms"/> of <break time="150ms"/>',gt=!0}else if(dn==="\\int")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Bi=no("math",t.superscript);Bi=Bi.trim();let qi=no("math",t.subscript);qi=qi.trim(),Y+=' the integral from <break time="200ms"/>'+j(qi)+'<break time="200ms"/> to <break time="200ms"/>'+j(Bi)+' <break time="200ms"/> of ',gt=!0}else Y+=' the integral of <break time="200ms"/> ';else if(typeof t.value=="string"){const Bi=(u=zu[t.value])!=null?u:t.command?zu[t.command]:void 0;Y+=Bi||" "+t.value}else t.command&&(t.command==="\\mathop"?Y+=no("math",t.body):t.command==="\\operatorname"?Y+=Rp(t.body):Y+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":rt=no("math",t.body),Y+=" crossed out "+rt+". End crossed out.";break;case"space":case"spacing":break}if(!gt&&!t.hasEmptyBranch("superscript")){let Br=no(e,t.superscript);Br=Br.trim();const In=Br.replace(/<[^>]*>/g,"");if(Mc(t.superscript)){if(e==="math"){const wr=a0(t.superscript);wr&&(Y+='<mark name="'+wr+'"/>')}In==="\u2032"?Y+=" prime ":In==="2"?Y+=" squared ":In==="3"?Y+=" cubed ":Number.isNaN(Number.parseInt(In))?Y+=" to the "+Br+"; ":Y+=' to the <say-as interpret-as="ordinal">'+In+"</say-as> power; "}else Number.isNaN(Number.parseInt(In))?Y+=" raised to the "+Br+"; ":Y+=' raised to the <say-as interpret-as="ordinal">'+In+"</say-as> power; "}if(!gt&&!t.hasEmptyBranch("subscript")){let Br=no("math",t.subscript);Br=Br.trim(),Y+=Mc(t.subscript)?" sub "+Br:" subscript "+Br+". End subscript. "}}return Y}function hl(e){var t,r;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const s=Ro(e);if(s){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(t=window.MathfieldElement.textToSpeechRulesOptions)!=null?t:{},window.MathfieldElement.textToSpeechRulesOptions=I(g({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=I(g({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=I(g({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const c=(r=window.SRE)!=null?r:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&c.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let u="";try{u=c.toSpeech(s)}catch(k){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",k)}return u}return""}let i=no("math",e);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let s="";window.MathfieldElement.speechEngineRate&&(s='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),i='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+s+"<p><s>"+i+"</s></p>"+(s?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&ee()==="macos"?i=i.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):i=i.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return i}var bu={"\\ne":"\u2260","\\neq":"\u2260","\u2212":"-","-":"-","\\alpha":"alpha","\\beta":"beta","\\gamma":"gamma","\\delta":"delta","\\epsilon":"epsilon","\\varepsilon":"varepsilon","\\zeta":"zeta","\\eta":"eta","\\theta":"theta","\\vartheta":"vartheta","\\iota":"iota","\\kappa":"kappa","\\lambda":"lambda","\\mu":"mu","\\nu":"nu","\\xi":"xi","\\pi":"pi","\\rho":"rho","\\sigma":"sigma","\\tau":"tau","\\upsilon":"upsilon","\\phi":"phi","\\varphi":"varphi","\\chi":"chi","\\psi":"psi","\\omega":"omega","\\Gamma":"Gamma","\\Delta":"Delta","\\Theta":"Theta","\\Lambda":"Lambda","\\Xi":"Xi","\\Pi":"Pi","\\Sigma":"Sigma","\\Phi":"Phi","\\Psi":"Psi","\\Omega":"Omega","\\exponentialE":"e","\\imaginaryI":"i","\\imaginaryJ":"j","\\!":" ","\\,":" ","\\:":" ","\\>":" ","\\;":" ","\\enskip":" ","\\enspace":" ","\\qquad":" ","\\quad":" ","\\infty":"oo"},rf={"\\pm":"+-","\\colon":":","\\vert":"|","\\Vert":"||","\\mid":"|","\\lbrack":"[","\\rbrack":"]","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"(:","\\rangle":":)","\\sum":" sum ","\\prod":" prod ","\\bigcap":" nnn ","\\bigcup":" uuu ","\\int":" int ","\\oint":" oint ","\\ge":">=","\\le":"<=","\\ne":"!=","\\neq":"!=","\\lt":"<","\\gt":">","\\gets":"<-","\\to":"->","\\land":" and ","\\lor":" or ","\\lnot":" not ","\\forall":" AA ","\\exists":" EE ","\\in":" in ","\\notin":" !in ","\\mapsto":"|->","\\implies":"=>","\\iff":"<=>","\\cdot":"*","\\ast":"**","\\star":"***","\\times":"xx","\\div":"-:","\\ltimes":"|><","\\rtimes":"><|","\\bowtie":"|><|","\\circ":"@"};function wm(e){let t="";for(const r of e){const i=t[t.length-1];i!==void 0&&/\d/.test(i)&&/^\d/.test(r)&&(t+=" "),t+=r}return t}function hs(e){var t,r,i,s,c,u,k,j,Y,ce,Pe,rt,gt;if(!e)return"";if(E(e)){if(e.length===0)return"";if(e[0].mode==="latex")return e.map(hs).join("");if(e[0].mode==="text"){let kn=0,dn="";for(;((t=e[kn])==null?void 0:t.mode)==="text";)dn+=e[kn].body?hs(e[kn].body):e[kn].value,kn++;return`"${dn}" ${hs(e.slice(kn))}`}let wr=0;const nn=[];for(;e[wr]&&e[wr].mode==="math";){let kn="";for(;e[wr]&&e[wr].type==="mord"&&/\d/.test(e[wr].value);)kn+=e[wr++].value;kn?nn.push(kn):nn.push(hs(e[wr++]))}return nn.push(hs(e.slice(wr))),wm(nn)}if(e.mode==="text")return`"${e.value}"`;let Et="";const{command:Br}=e;let In;if(Br==="\\placeholder")return`(${hs(e.body)})`;switch(e.type){case"accent":const wr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[Br];Et=`${wr!=null?wr:""} ${hs(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map(Ui=>Ui.value).join("");case"group":case"root":Et=(r=bu[Br])!=null?r:hs(e.body);break;case"genfrac":{const Ui=e;(Ui.leftDelim||Ui.rightDelim)&&(Et=Ui.leftDelim==="."||!Ui.leftDelim?"{:":Ui.leftDelim),Ui.hasBarLine?(Et+="(",Et+=hs(Ui.above),Et+=")/(",Et+=hs(Ui.below),Et+=")"):(Et+="("+hs(Ui.above)+"),",Et+="("+hs(Ui.below)+")"),(Ui.leftDelim||Ui.rightDelim)&&(Et+=Ui.rightDelim==="."||!Ui.rightDelim?"{:":Ui.rightDelim)}break;case"surd":Et+=e.hasEmptyBranch("above")?"sqrt("+hs(e.body)+")":"root("+hs(e.above)+")("+hs(e.body)+")";break;case"latex":Et=e.value;break;case"leftright":{const Ui=e,h=Ui.leftDelim;Et+=h==="."||!h?"{:":h,Et+=hs(Ui.body);const B=Ui.matchingRightDelim();Et+=B==="."||!B?":}":B}break;case"sizeddelim":case"delim":Et=e.value;break;case"overlap":break;case"overunder":break;case"mord":Et=(s=(i=bu[Br])!=null?i:Br)!=null?s:typeof e.value=="string"?e.value:"",Et.startsWith("\\")&&(Et+=" "),In=Br?Br.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,In?Et=String.fromCodePoint(Number.parseInt("0x"+In[1])):Et.length>0&&Et.startsWith("\\")&&(Et=typeof e.value=="string"?e.value.charAt(0):e.command),Et=o0(Et,e.style);break;case"mbin":case"mrel":case"minner":Et=(u=(c=bu[Br])!=null?c:rf[Br])!=null?u:e.value;break;case"mopen":case"mclose":Et=e.value;break;case"mpunct":Et=(k=rf[Br])!=null?k:Br;break;case"mop":case"operator":case"extensible-symbol":e.value!=="\u200B"&&(rf[Br]?Et=rf[Br]:Et=Br==="\\operatorname"?hs(e.body):(j=e.value)!=null?j:Br,Et+=" ");break;case"array":const nn=e.array,kn=e.environmentName,dn=(Y={bmatrix:["[","]"],"bmatrix*":["[","]"]}[kn])!=null?Y:["(",")"],Bi=[];for(const Ui of nn){const h=[];for(const B of Ui)h.push(dn[0]+hs(B)+dn[1]);Bi.push(h.join(","))}const qi=(ce={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[kn])!=null?ce:["(",")"];Et=qi[0]+Bi.join(",")+qi[1];break;case"box":break;case"spacing":Et=(Pe=bu[Br])!=null?Pe:" ";break;case"enclose":Et="("+hs(e.body)+")";break;case"space":Et=" ";break;case"subsup":Et="";break;case"macro":Et=(gt=(rt=bu[Br])!=null?rt:rf[Br])!=null?gt:hs(e.body);break}if(!e.hasEmptyBranch("subscript")){Et+="_";const wr=hs(e.subscript);Et+=wr.length!==1?`(${wr})`:wr}if(!e.hasEmptyBranch("superscript")){Et+="^";const wr=hs(e.superscript);Et+=wr.length!==1?`(${wr})`:wr}return Et}function o0(e,t){if(!t)return e;let r=e;return t.variant==="double-struck"&&(r=`bbb "${r}"`),t.variant==="script"&&(r=`cc "${r}"`),t.variant==="fraktur"&&(r=`fr "${r}"`),t.variant==="sans-serif"&&(r=`sf "${r}"`),t.variant==="monospace"&&(r=`tt "${r}"`),t.variantStyle==="bold"&&(r=`bb "${r}"`),t.color?`color({${t.color}})(${r})`:r}function Ul(e,t){var r,i;t!=null||(t={}),t.mathstyle=(r=t.mathstyle)!=null?r:"displaystyle";const s=new So({from:I(g({},E0()),{renderPlaceholder:()=>new zr(160,{maxFontSize:1}),letterShapeStyle:(i=t==null?void 0:t.letterShapeStyle)!=null?i:"tex"}),mathstyle:t.mathstyle}),u=new Ur({mode:"math",type:"root",body:hc(e,{context:s,parseMode:"math",mathstyle:t.mathstyle})}).render(s);return u?(mf(sl(u,s)),Wf(u,{classes:"ML__latex"}).toMarkup()):""}function xm(e){return fd(e,{context:E0()})}function hh(e,t={}){return Ro(hc(e,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),t)}function s0(e){const t=hc(e,{parseMode:"math",mathstyle:"displaystyle"});return hl(t)}var DA;function yu(e){var t,r;if(!DA){const i=(t=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;i?DA=new i:console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}return(r=DA==null?void 0:DA.box(e).latex)!=null?r:""}function l0(e,t="math"){return hs(new Ur({type:"root",body:hc(e,{parseMode:t})}))}function ph(e){return L0(e,{format:"ascii-math"})[1]}function nf(e){if(typeof e=="string"){const t=np(e);if(!t)throw new Error(`Invalid color: ${e}`);return t}return"C"in e?Qp(e):"a"in e?ip(e):e}function af(e){return e<0?0:e>255?255:Math.round(e)}function np(e){if(!e||e[0]!=="#")return;e=e.slice(1);let t;return e.length<=4?(t={r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16)},e.length===4&&(t.a=parseInt(e[3]+e[3],16)/255)):(t={r:parseInt(e[0]+e[1],16),g:parseInt(e[2]+e[3],16),b:parseInt(e[4]+e[5],16)},e.length===8&&(t.a=parseInt(e[6]+e[7],16)/255)),t&&typeof t.a=="undefined"&&(t.a=1),t}function rc(e){const[t,r,i]=[e.L,e.C,e.H],s=i*Math.PI/180,c={L:t,a:r*Math.cos(s),b:r*Math.sin(s)};return e.alpha!==void 0&&(c.alpha=e.alpha),c}function Cm(e){const[t,r,i]=[e.L,e.a,e.b],s=Math.sqrt(r*r+i*i),u=Math.atan2(i,r)*180/Math.PI,k={L:t,C:s,H:u};return e.alpha!==void 0&&(k.alpha=e.alpha),k}function $u(e){const[t,r,i]=[e.L,e.a,e.b],s=Math.pow(.9999999984505198*t+.39633779217376786*r+.2158037580607588*i,3),c=Math.pow(1.00000000888176*t-.10556134232365635*r-.0638541747717059*i,3),u=Math.pow(t*1.000000054672411-.0894841820949657*r-1.2914855378640917*i,3),k=4.076741661347994*s-3.307711590408193*c+.230969928729428*u,j=-1.2684380040921763*s+2.6097574006633715*c-.3413193963102197*u,Y=-.004196086541837188*s-.7034186144594493*c+1.7076147009309444*u,ce=Pe=>{const rt=Math.abs(Pe);return rt<=.0031308?Pe*12.92:(Math.sign(Pe)||1)*(1.055*Math.pow(rt,1/2.4)-.055)};return[ce(k),ce(j),ce(Y)]}function Zu(e){const[t,r,i]=e;return t>=0&&t<=1&&r>=0&&r<=1&&i>=0&&i<=1}function c0(e,t){let[r,i,s]=e;return r=af(r*255),i=af(i*255),s=af(s*255),t!==void 0?{r,g:i,b:s,alpha:t}:{r,g:i,b:s}}function ip(e){let[t,r,i]=$u(e);if(Zu([t,r,i]))return c0([t,r,i],e.alpha);const s=Cm(e);if(s.C=0,[t,r,i]=$u(rc(s)),!Zu([t,r,i]))return c0([t,r,i],e.alpha);let c=0,u=e.L,k=(c+u)/2;s.C=k;const j=.36/Math.pow(2,12);for(;u-c>j;)k=(c+u)/2,s.C=k,[t,r,i]=$u(rc(s)),Zu([t,r,i])?c=k:u=k;return c0([t,r,i],e.alpha)}function Qp(e){return ip(rc(e))}function ap(e,t){const r=nf(e),i=nf(t),s=.56,c=.57,u=.62,k=.65,j=.022,Y=1.414,ce=.1,Pe=5e-4,rt=1.14,gt=.027,Et=1.14,Br=.027;function In(Ui){return Ui>=j?Ui:Ui+wh(j-Ui,Y)}function wr(Ui){return(Ui<0?-1:1)*Math.pow(Math.abs(Ui),2.4)}const nn=In(wr(i.r/255)*.2126729+wr(i.g/255)*.7151522+wr(i.b/255)*.072175),kn=In(wr(r.r/255)*.2126729+wr(r.g/255)*.7151522+wr(r.b/255)*.072175);let dn,Bi,qi;return Math.abs(kn-nn)<Pe?Bi=0:kn>nn?(dn=wh(kn,s)-wh(nn,c),Bi=dn*rt):(dn=wh(kn,k)-wh(nn,u),Bi=dn*Et),Math.abs(Bi)<ce?qi=0:Bi>0?qi=Bi-Br:qi=Bi+gt,qi*100}function Pf(e,t,r){r!=null||(r="#fff"),t!=null||(t="#000");const i=ap(e,r),s=ap(e,t);return Math.abs(i)>Math.abs(s)?r:t}function mh(e){const t=nf(e);let r=((1<<24)+(af(t.r)<<16)+(af(t.g)<<8)+af(t.b)).toString(16).slice(1);return t.alpha!==void 0&&t.alpha<1&&(r+=("00"+Math.round(t.alpha*255).toString(16)).slice(-2)),r[0]===r[1]&&r[2]===r[3]&&r[4]===r[5]&&r[6]===r[7]&&(r=r[0]+r[2]+r[4]+(t.alpha!==void 0&&t.alpha<1?r[6]:"")),"#"+r}function ps(e){const t=gh(e);let r="";for(const i of t){if(typeof i.value!="string")return"";r+=i.value}return r}function gh(e){const r=e.model.selection.ranges;return r.length!==1?[]:e.model.getAtoms(r[0])}function vh(e,t){const r=gh(e);if(r.length!==1)return!1;const i=j0[t];return i?!!i.test(r[0].value):!1}function A0(e,t){return ps(e).length>0}function Vu(e){return[Sm(e,"double-struck","mathbb","tooltip.blackboard"),Sm(e,"fraktur","mathfrak","tooltip.fraktur"),Sm(e,"calligraphic","mathcal","tooltip.caligraphic"),Em(e,"up","mathrm","tooltip.roman-upright"),Em(e,"bold","mathbf","tooltip.bold"),Em(e,"italic","mathit","tooltip.italic")]}function of(e){return[{label:()=>Ul(`\\vec{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\overrightarrow{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\overleftarrow{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\dot{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\ddot{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\bar{${ps(e)}}`),visible:()=>ps(e).length===1,onMenuSelect:()=>e.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\overline{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\overgroup{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\overbrace{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\underline{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\undergroup{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\underbrace{${ps(e)}}`),visible:()=>ps(e).length>0,onMenuSelect:()=>e.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function qs(e){return[{label:()=>Ul(`\\boxed{${e.getValue(e.model.selection)}}}`),onMenuSelect:()=>e.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\bbox[5px, border: 2px solid red]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Ul(`\\bbox[5px, border: 2px dashed black]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function pl(e){const t=[];for(const r of Object.keys(se))t.push({class:(mh(Pf(se[r]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${se[r]} "></span>`,ariaLabel:()=>{var i;return(i=q(r))!=null?i:r},checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({backgroundColor:r}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({backgroundColor:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}function vc(e){const t=[];for(const r of Object.keys(fe))t.push({class:(Pf(fe[r])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${fe[r]} "></span>`,ariaLabel:()=>{var i;return(i=q(r))!=null?i:r},checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({color:r}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({color:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}var zc=class extends ef{constructor(e,t,r,i){super(e,t),this.row=r,this.col=i}set active(e){const t=this.parentMenu.children;if(e)for(const r of t)r.element.classList.toggle("active",r.row<=this.row&&r.col<=this.col);else for(const r of t)r.element.classList.remove("active")}};function Tf(e){const t=[];for(let r=1;r<=5;r++)for(let i=1;i<=5;i++)t.push({onCreate:(s,c)=>new zc(s,c,r,i),label:"\u2610",tooltip:()=>q("tooltip.row-by-col",r,i),data:{row:r,col:i},onMenuSelect:()=>{e.insert(`\\begin{pmatrix}${Array(r).fill(Array(i).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return t}function Kp(e){return[{label:()=>q("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>e.executeCommand("addRowBefore"),visible:()=>Wu(e)},{label:()=>q("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>e.executeCommand("addRowAfter"),visible:()=>Wu(e)},{label:()=>q("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>e.executeCommand("addColumnBefore"),visible:()=>Wu(e),enabled:()=>{const t=e.model.parentEnvironment;if(!t)return!1;const[r,i]=Fg(e);return r<t.maxColumns}},{label:()=>q("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>e.executeCommand("addColumnAfter"),visible:()=>Wu(e)},{type:"divider"},{label:()=>q("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>e.executeCommand("removeRow"),visible:()=>Wu(e)},{label:()=>q("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>e.executeCommand("removeColumn"),visible:()=>Wu(e)},{type:"divider"},{label:()=>q("menu.borders"),visible:()=>(Bm(e)||Wu(e))&&e.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>op(e,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>op(e,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>op(e,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>op(e,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>op(e,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>q("menu.insert matrix"),id:"insert-matrix",visible:()=>e.isSelectionEditable,submenu:Tf(e),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>q("menu.mode"),id:"mode",visible:()=>e.isSelectionEditable&&e.model.selectionIsCollapsed,submenu:[{label:()=>q("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Hh(e,"accept-all"),e.executeCommand(["switchMode","math"])},checked:()=>e.model.mode==="math"},{label:()=>q("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Hh(e,"accept-all"),e.executeCommand(["switchMode","text"])},checked:()=>e.model.mode==="text"},{label:()=>q("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>e.executeCommand(["switchMode","latex"]),checked:()=>e.model.mode==="latex"}]},{type:"divider"},{label:()=>q("menu.font-style"),id:"variant",visible:()=>e.isSelectionEditable,submenu:Vu(e),submenuClass:"variant-submenu"},{label:()=>q("menu.color"),id:"color",visible:()=>e.isSelectionEditable,submenu:vc(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>q("menu.background-color"),id:"background-color",visible:()=>e.isSelectionEditable,submenu:pl(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>q("menu.accent"),id:"accent",visible:()=>e.isSelectionEditable,submenu:of(e),submenuClass:"variant-submenu"},{label:()=>q("menu.decoration"),id:"decoration",visible:()=>e.isSelectionEditable&&ps(e).length>0,submenu:qs(e),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>q("menu.evaluate"),id:"ce-evaluate",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const t=Mg(e);if(!t){e.model.announce("plonk");return}e.model.selectionIsCollapsed?(e.model.position=e.model.lastOffset,e.insert(`=${t}`,{insertionMode:"insertAfter",selectionMode:"item"})):e.insert(t,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>q("menu.simplify"),id:"ce-simplify",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var t,r;if(e.model.selectionIsCollapsed){const i=(t=e.expression)==null?void 0:t.simplify();if(e.model.position=e.model.lastOffset,!i){e.model.announce("plonk");return}e.insert(`=${i.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const i=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection)).simplify();if(!i){e.model.announce("plonk");return}e.insert(i.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var t;if(window.MathfieldElement.computeEngine===null)return"";const r=(t=e.expression)==null?void 0:t.unknowns[0];return r?q("menu.solve-for",Ul(r)):q("menu.solve")},id:"ce-solve",visible:()=>{var t;return e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((t=e.expression)==null?void 0:t.unknowns.length)===1&&e.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var t;const r=e.expression,i=r==null?void 0:r.unknowns[0],s=(t=r.solve(i))==null?void 0:t.map(c=>{var u;return(u=c.simplify().latex)!=null?u:""});if(!s){e.model.announce("plonk");return}e.insert(`${i}=${s.length===1?s[0]:"\\left\\lbrace"+(s==null?void 0:s.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>q("menu.cut"),onMenuSelect:()=>e.executeCommand("cutToClipboard"),visible:()=>!e.options.readOnly&&e.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>q("menu.copy"),id:"copy",submenu:[{label:()=>q("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Ls.copyToClipboard(e,"latex"),keyboardShortcut:"meta+C"},{label:()=>q("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Ls.copyToClipboard(e,"ascii-math")},{label:()=>q("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Ls.copyToClipboard(e,"math-ml")}]},{label:()=>q("menu.paste"),id:"paste",onMenuSelect:()=>e.executeCommand("pasteFromClipboard"),visible:()=>e.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>q("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>e.executeCommand("selectAll")}]}function Wu(e){var t;return!!((t=e.model.parentEnvironment)!=null&&t.array)}function Bm(e){return e.model.at(e.model.position).type==="array"}function Fg(e){var t;const r=(t=e.model.parentEnvironment)==null?void 0:t.array;return r?[r.length,r.reduce((i,s)=>Math.max(i,s.length),0)]:[0,0]}function op(e,t){Am(e),e.flushInlineShortcutBuffer(),Ds(e.model,t),Il(e)}function Mg(e){var t,r;let i;if(e.model.selectionIsCollapsed?i=(t=window.MathfieldElement.computeEngine)==null?void 0:t.parse(e.getValue(),{canonical:!1}):i=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection),{canonical:!1}),!i)return"";let s=i.evaluate();return s.isSame(i)&&(s=i.N()),s.latex}function Sm(e,t,r,i){return{label:()=>Ul(`\\${r}{${ps(e)}}`),tooltip:()=>{var s;return(s=q(i))!=null?s:i},visible:()=>vh(e,t),checked:()=>{var s;return{some:"mixed",all:!0}[(s=e.queryStyle({variant:t}))!=null?s:!1]},onMenuSelect:()=>{e.applyStyle({variant:t},{operation:"toggle"}),e.adoptStyle="none"}}}function Em(e,t,r,i){return{label:()=>Ul(`\\${r}{${ps(e)}}`),tooltip:()=>{var s;return(s=q(i))!=null?s:i},visible:()=>A0(e,t),checked:()=>{var s;return{some:"mixed",all:!0}[(s=e.queryStyle({variantStyle:t}))!=null?s:!1]},onMenuSelect:()=>{e.applyStyle({variantStyle:t},{operation:"toggle"}),e.adoptStyle="none"}}}function u0(e,t){return e+hl(t)}o({speak:(e,t,r)=>Hp(e,t,r)},{target:"mathfield"});function Hp(e,t,r){var i,s;r=r!=null?r:{withHighlighting:!1};const{model:c}=e;function u(ce){let Pe=null;switch(ce){case"all":Pe=c.root;break;case"selection":Pe=c.getAtoms(c.selection);break;case"left":{Pe=c.getAtoms(c.offsetOf(c.at(c.position).leftSibling),c.position);break}case"right":{Pe=c.getAtoms(c.position,c.offsetOf(c.at(c.position).rightSibling));break}case"group":Pe=c.getAtoms(c.getSiblingsRange(c.position));break;case"parent":{const{parent:rt}=c.at(c.position);rt!=null&&rt.parent?Pe=rt:Pe=c.root;break}default:Pe=c.root}return Pe}function k(ce){let Pe="";switch(ce){case"all":console.log("Internal failure: speak all failed");break;case"selection":Pe="no selection";break;case"left":Pe="at start";break;case"right":Pe="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Pe="no parent";break;default:console.log('unknown speak_ param value: "'+ce+'"');break}return Pe}const j=u(t);if(j===null)return(s=(i=window.MathfieldElement).speakHook)==null||s.call(i,k(t)),!1;(r.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const Y=hl(j);return N()&&r.withHighlighting?(OA().readAloudMathfield=e,jh(e,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(e.field,Y)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(Y),!1}function Lg(e){var t,r;if(!N()){console.log("Speak:",e);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const i=new SpeechSynthesisUtterance(e);window.speechSynthesis.speak(i)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),s={OutputFormat:"mp3",VoiceId:(t=window.MathfieldElement.speechEngineVoice)!=null?t:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna")?"neural":"standard",Text:e,TextType:"ssml"};i.synthesizeSpeech(s,(c,u)=>{if(c)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${c}`);else if(u!=null&&u.AudioStream){const k=new Uint8Array(u.AudioStream),j=new Blob([k.buffer],{type:"audio/mpeg"}),Y=URL.createObjectURL(j);new Audio(Y).play().catch(Pe=>console.log(Pe))}else console.log("polly.synthesizeSpeech():",u)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function cg(e){var t;let r;if(e.parent.type==="prompt")e.parentBranch==="body"&&(r="prompt");else if(e.parentBranch==="body")r=e.type&&(t={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[e.type])!=null?t:"parent";else if(e.parent.type==="genfrac"){if(e.parentBranch==="above")return"numerator";if(e.parentBranch==="below")return"denominator"}else e.parent.type==="surd"?e.parentBranch==="above"&&(r="index"):e.parentBranch==="superscript"?r="superscript":e.parentBranch==="subscript"&&(r="subscript");return r||console.log("unknown relationship"),r!=null?r:"parent"}function kg(e,t,r,i){let s="";if(t==="plonk")window.MathfieldElement.playSound("plonk"),e.flushInlineShortcutBuffer();else if(t==="delete")s=u0("deleted: ",i);else if(t==="focus"||t.includes("move"))s=Dg(e.model,r)+(e.model.selectionIsCollapsed?"":"selected: ")+Og(e.model);else if(t==="replacement")s=u0("",e.model.at(e.model.position));else if(t==="line"){const c=u0("",e.model.root);e.keyboardDelegate.setAriaLabel(c)}else s=i?u0(t+" ",i):t;if(s){const c=e.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";e.ariaLiveText.textContent=s+c}}function Dg(e,t){if(Number.isNaN(t))return"";const r=e.at(t);if(!r||r.treeDepth<=e.at(e.position).treeDepth)return"";let i="",s=r.parent;const c=e.at(e.position).parent;for(;s!==e.root&&s!==c;)i+=`out of ${cg(s)};`,s=s.parent;return i}function Og(e){if(!e.selectionIsCollapsed)return u0("",e.getAtoms(e.selection));let t="";const r=e.at(e.position),i=cg(r);return r.isFirstSibling&&(t=(i?"start of "+i:"unknown")+": "),r.isLastSibling?r.isFirstSibling||(t+=i?"end of "+i:"unknown"):t+=u0("",r),t}var Ng=class{constructor(e,t,r){this.mathfield=e,this.mode=t,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=r}dispose(){this.mathfield=void 0}getState(){const e={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(e.direction=this.selection.direction),{content:this.root.toJson(),selection:e,mode:this.mode}}setState(e,t){var r;const i=this.silenceNotifications;this.silenceNotifications=(r=t==null?void 0:t.silenceNotifications)!=null?r:!0;let s={};if((t==null?void 0:t.type)==="undo"&&(s={inputType:"historyUndo"}),(t==null?void 0:t.type)==="redo"&&(s={inputType:"historyRedo"}),this.contentWillChange(s)){const c=this.silenceNotifications;this.silenceNotifications=!0,this.mode=e.mode,this.root=La(e.content),this.selection=e.selection,this.silenceNotifications=c,this.contentDidChange(s)}this.silenceNotifications=i}get atoms(){return this.root.children}get selection(){return this._selection}set selection(e){this.setSelection(e)}setSelection(e,t){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var r,i,s;const c=this.normalizeSelection(e,t);if(c===void 0)throw new TypeError("Invalid selection");if(c.ranges.length===1&&c.ranges[0][0]===c.ranges[0][1]){const ce=c.ranges[0][0];if(!this.mathfield.dirty&&!((r=this.at(ce))!=null&&r.parentPrompt)&&this.mathfield.hasEditablePrompts){if((i=this.at(ce-1))!=null&&i.parentPrompt){this._anchor=this.normalizeOffset(ce-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((s=this.at(ce+1))!=null&&s.parentPrompt){this._anchor=this.normalizeOffset(ce+1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}this._anchor=0,this._position=0,this._selection={ranges:[[0,0]]};return}this._anchor=ce,this._position=ce,this._selection=c;return}const u=Jl(c);c.direction==="backward"?[this._position,this._anchor]=u:[this._anchor,this._position]=u;const k=this.at(u[0]+1),j=this.at(u[1]),Y=Ur.commonAncestor(k,j);(Y==null?void 0:Y.type)==="array"&&k.parent===Y&&j.parent===Y?this._selection={ranges:[u],direction:c.direction}:this._selection={ranges:[u],direction:c.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(e){var t;const r=this.at(e);(r==null?void 0:r.type)==="placeholder"?this.setSelection(e-1,e):((t=r==null?void 0:r.rightSibling)==null?void 0:t.type)==="placeholder"?this.setSelection(e,e+1):this.position=e,r instanceof Nl&&r.isSuggestion&&(r.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(e){this.setSelection(e,e)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(e="forward"){return this._anchor===this._position?!1:(e==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(e){return this.atoms[e]}offsetOf(e){return this.atoms.indexOf(e)}getSiblingsRange(e){const t=this.at(e),{parent:r}=t;if(!r)return[0,this.lastOffset];const i=t.parent.branch(t.parentBranch);return[this.offsetOf(i[0]),this.offsetOf(i[i.length-1])]}getBranchRange(e,t){const r=this.at(e).branch(t);return[this.offsetOf(r[0]),this.offsetOf(r[r.length-1])]}getAtoms(e,t,r){let i=r!=null?r:{};if(Fh(e)){if(i=t!=null?t:{},e.ranges.length>1)return e.ranges.reduce((Y,ce)=>[...Y,...this.getAtoms(ce,i)],[]);e=e.ranges[0]}let s,c;if(ld(e)){if(s=e,!ld(t))return[];c=t}else[s,c]=e,i=t!=null?t:{};if(!Number.isFinite(s))return[];i.includeChildren===void 0&&(i.includeChildren=!1),s<0&&(s=this.lastOffset-s+1),c<0&&(c=this.lastOffset-c+1);const u=Math.min(s,c)+1,k=Math.max(s,c);if(!i.includeChildren&&u===1&&k===this.lastOffset)return[this.root];let j=[];for(let Y=u;Y<=k;Y++){const ce=this.atoms[Y];Ag(this,ce,u,k)&&j.push(ce)}return i.includeChildren||(j=j.filter(Y=>{let ce=!1,{parent:Pe}=Y;for(;Pe&&!ce;)ce=Ag(this,Pe,u,k),Pe=Pe.parent;return!ce})),j}getAllAtoms(e=0){const t=[],r=this.lastOffset;for(let i=e;i<=r;i++)t.push(this.atoms[i]);for(let i=0;i<e;i++)t.push(this.atoms[i]);return t}findAtom(e,t=0,r="forward"){let i;const s=this.lastOffset;if(r==="forward"){for(let c=t;c<=s;c++)if(i=this.atoms[c],e(i))return i;for(let c=0;c<t;c++)if(i=this.atoms[c],e(i))return i;return}for(let c=t;c>=0;c--)if(i=this.atoms[c],e(i))return i;for(let c=s;c>t;c--)if(i=this.atoms[c],e(i))return i}extractAtoms(e){let t=this.getAtoms(e);if(t.length===1&&!t[0].parent)if(t[0].type==="root")t=[...t[0].body],t.shift();else return t=this.root.cells.flat(),this.root=new Ur({type:"root",body:[]}),t;for(const r of t)r.parent.removeChild(r);return t}deleteAtoms(e){this.extractAtoms(e),this.position=e[0]}atomToString(e,t){const r=t!=null?t:"latex";if(r.startsWith("latex"))return Ur.serialize([e],{expandMacro:r==="latex-expanded",skipStyles:r==="latex-unstyled",skipPlaceholders:r==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode});if(r==="math-ml")return Ro(e);if(r==="spoken")return hl(e);if(r==="spoken-text"){const i=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const s=hl(e);return window.MathfieldElement.textToSpeechMarkup=i,s}if(r==="spoken-ssml"||r==="spoken-ssml-with-highlighting"){const i=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="ssml";const s=hl(e);return window.MathfieldElement.textToSpeechMarkup=i,s}return r==="ascii-math"?hs(e):(console.error(`MathLive 0.98.5: Unexpected format "${r}`),"")}getValue(e,t,r){if(e===void 0)return this.atomToString(this.root,"latex");if(typeof e=="string"&&e!=="math-json")return this.atomToString(this.root,e);let i,s;if(ld(e)&&ld(t)?(i=[this.normalizeRange([e,t])],s=r):Yf(e)?(i=[this.normalizeRange(e)],s=t):Fh(e)?(i=e.ranges,s=t):(i=[this.normalizeRange([0,-1])],s=e),s!=null||(s="latex"),s==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const c=this.getValue({ranges:i},"latex-unstyled");try{const u=window.MathfieldElement.computeEngine.parse(c);return JSON.stringify(u.json)}catch(u){return JSON.stringify(["Error",`'${u.toString()}'`])}}if(s.startsWith("latex")){const c={expandMacro:s==="latex-expanded",skipStyles:s==="latex-unstyled",skipPlaceholders:s==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return co(i.map(u=>Ur.serialize(this.getAtoms(u),c)))}return i.map(c=>this.getAtoms(c).map(u=>this.atomToString(u,s)).join("")).join("")}extendSelectionTo(e,t){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const r=this.normalizeRange([e,t]);let[i,s]=r,{parent:c}=this.at(s);if(c&&(c.type==="genfrac"||c.type==="subsup"))for(;c!==this.root&&_m(this,c,[i,s]);)s=this.offsetOf(c),c=c.parent;for(c=this.at(i).parent;c!==this.root&&_m(this,c,[i,s]);)i=this.offsetOf(c.leftSibling),c=c.parent;if(c=this.at(s).parent,(c==null?void 0:c.type)==="genfrac")for(;c!==this.root&&_m(this,c,[i,s]);)s=this.offsetOf(c),console.assert(s>=0),c=c.parent;this._position=this.normalizeOffset(t),this._selection={ranges:[[i,s]],direction:"none"}})}announce(e,t,r=[]){var i,s;((s=(i=this.mathfield.host)==null?void 0:i.dispatchEvent(new CustomEvent("announce",{detail:{command:e,previousPosition:t,atoms:r},cancelable:!0,bubbles:!0,composed:!0})))!=null?s:!0)&&kg(this.mathfield,e,t,r)}deferNotifications(e,t){const r=this._selection,i=this._anchor,s=this._position,c=this.silenceNotifications;this.silenceNotifications=!0;const u=this.root.changeCounter;t();const k=this.root.changeCounter!==u,j=i!==this._anchor||s!==this._position||Ih(this._selection,r)==="different";return this.silenceNotifications=c,e.content&&k&&this.contentDidChange({inputType:e.type}),e.selection&&j&&this.selectionDidChange(),k||j}normalizeOffset(e){return e>0?e=Math.min(e,this.lastOffset):e<0&&(e=this.lastOffset+e+1),e}normalizeRange(e){let[t,r]=e;return t=this.normalizeOffset(t),r=this.normalizeOffset(r),t<r?[t,r]:[r,t]}normalizeSelection(e,t){var r;let i;if(ld(e)){const s=this.normalizeOffset(e);if(ld(t)){const c=this.normalizeOffset(t);i=s<=c?{ranges:[[s,c]],direction:"none"}:{ranges:[[c,s]],direction:"backward"}}else i={ranges:[[s,s]],direction:"none"}}else if(Yf(e)){const s=this.normalizeOffset(e[0]),c=this.normalizeOffset(e[1]);i=s<=c?{ranges:[[s,c]],direction:"none"}:{ranges:[[c,s]],direction:"backward"}}else Fh(e)&&(i={ranges:e.ranges.map(s=>this.normalizeRange(s)),direction:(r=e.direction)!=null?r:"none"});return console.assert(i!==void 0),i}get parentEnvironment(){let e=this.at(this.position).parent;if(e){for(;e.parent&&e.type!=="array";)e=e.parent;if(e.type==="array")return e}}get cell(){var e;let t=this.at(this.position);if(t){for(;t&&((e=t.parent)==null?void 0:e.type)!=="array";)t=t.parent;if(!(!(t!=null&&t.parent)||t.parent.type!=="array"))return t.parentBranch}}contentWillChange(e={}){if(this.silenceNotifications||!this.mathfield)return!0;const t=this.silenceNotifications;this.silenceNotifications=!0;const r=this.mathfield.onContentWillChange(e);return this.silenceNotifications=t,r}contentDidChange(e){var t;if(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(cA(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const r=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",I(g({},e),{data:e.data?e.data:(t=e.inputType)!=null?t:"",bubbles:!0,composed:!0}))),this.silenceNotifications=r}selectionDidChange(){if(!this.mathfield||(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(cA(this.mathfield)),this.silenceNotifications))return;const e=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=e}};function Ag(e,t,r,i){const s=e.offsetOf(t);if(s<r||s>i)return!1;if(!t.hasChildren)return!0;const c=e.offsetOf(t.firstChild);if(c>=r&&c<=i){const u=e.offsetOf(t.lastChild);if(u>=r&&u<=i)return!0}return!1}function _m(e,t,r){if(!(t!=null&&t.hasChildren))return!1;const[i,s]=r,c=e.offsetOf(t.firstChild),u=e.offsetOf(t.lastChild);return c>=i&&c<=s&&u>=c&&u<=s}function d0(e,t,r,i){var s,c,u,k,j,Y;const ce=r.parent;if(ce&&r instanceof Ys){const Pe=!i&&t==="forward"||i==="body"&&t==="backward";let rt=Pe?e.offsetOf(r.firstChild):e.offsetOf(r.lastChild);return Pe?r.rightDelim!=="?"&&r.rightDelim!=="."?(r.leftDelim=".",r.isDirty=!0):(ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),rt--):r.leftDelim!=="?"&&r.leftDelim!=="."?(r.rightDelim=".",r.isDirty=!0):(ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),rt--),e.position=rt,!0}if(ce&&r.type==="surd"){if(t==="forward"&&!i||t==="backward"&&i==="body"){const Pe=r.leftSibling;r.hasChildren&&ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),e.position=e.offsetOf(Pe)}else t==="forward"&&i==="body"?e.position=e.offsetOf(r):!i&&t==="backward"?r.hasChildren?e.position=e.offsetOf(r.lastChild):(e.position=Math.max(0,e.offsetOf(r)-1),ce.removeChild(r)):i==="above"&&(r.hasEmptyBranch("above")&&r.removeBranch("above"),t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r.body[0]));return!0}if(ce&&(r.type==="box"||r.type==="enclose")){const Pe=i&&t==="backward"||!i&&t==="forward"?r.leftSibling:r.lastChild;return ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),e.position=e.offsetOf(Pe),!0}if(r.type==="genfrac"||r.type==="overunder"){if(!i)return r.type==="overunder"&&r.hasEmptyBranch("body")||r.type==="genfrac"&&r.hasEmptyBranch("below")&&r.hasEmptyBranch("above")?!1:(e.position=e.offsetOf(t==="forward"?r.firstChild:r.lastChild),!0);const Pe=f0.fractionNavigationOrder==="numerator-denominator"?"above":"below",rt=Pe==="above"?"below":"above";if(ce&&(t==="forward"&&i===Pe||t==="backward"&&i===rt)){const gt=r.removeBranch(Pe),Et=r.removeBranch(rt);return ce.addChildrenAfter([...gt,...Et],r),ce.removeChild(r),e.position=e.offsetOf(gt.length>0?gt[gt.length-1]:Et[0]),!0}return t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r),!0}if(r.isExtensibleSymbol||r.type==="subsup"){if(!i&&t==="forward")return!1;if(!i){if(r.subscript||r.superscript){const Pe=t==="forward"?(u=(s=r.superscript)==null?void 0:s[0])!=null?u:(c=r.subscript)==null?void 0:c[0]:(Y=(k=r.subscript)==null?void 0:k[0].lastSibling)!=null?Y:(j=r.superscript)==null?void 0:j[0].lastSibling;return Pe&&(e.position=e.offsetOf(Pe)),!0}return!1}if(!r.hasChildren&&r.type==="subsup"){const Pe=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);return r.parent.removeChild(r),e.position=Pe,!0}if(i==="superscript")if(t==="backward"){const Pe=e.offsetOf(r.firstChild)-1;console.assert(Pe>=0),e.position=Pe}else r.subscript?e.position=e.offsetOf(r.subscript[0]):e.position=e.offsetOf(r);else i==="subscript"&&(t==="backward"&&r.superscript?e.position=e.offsetOf(r.superscript[0].lastSibling):t==="backward"?e.position=e.offsetOf(r.firstChild)-1:e.position=e.offsetOf(r));if(i&&r.hasEmptyBranch(i)&&(r.removeBranch(i),r.type==="subsup"&&!r.subscript&&!r.superscript)){const Pe=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);r.parent.removeChild(r),e.position=Pe}return!0}if((ce==null?void 0:ce.type)==="genfrac"&&!i&&r.type!=="first"){let Pe=e.offsetOf(r.leftSibling);return ce.removeChild(r),ce.hasEmptyBranch("above")&&ce.hasEmptyBranch("below")?(Pe=e.offsetOf(ce.leftSibling),ce.parent.removeChild(ce),e.announce("delete",void 0,[ce]),e.position=Pe,!0):(e.announce("delete",void 0,[r]),e.position=Pe,!0)}if(t==="backward"&&((ce==null?void 0:ce.command)==="\\ln"||(ce==null?void 0:ce.command)==="\\log")&&r.parentBranch!=="body"){const Pe=e.offsetOf(ce.leftSibling);return ce.parent.removeChild(ce),e.announce("delete",void 0,[ce]),e.position=Pe,!0}return!1}function Im(e){return!e.mathfield.isSelectionEditable||!e.contentWillChange({inputType:"deleteContentBackward"})?!1:e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentBackward"},()=>{let t=e.at(e.position);if(!(t&&d0(e,"backward",t))){if(t!=null&&t.isFirstSibling){if(d0(e,"backward",t.parent,t.parentBranch))return;t=null}if(!t){e.announce("plonk");return}e.position=e.offsetOf(t.leftSibling),t.parent.removeChild(t),e.announce("delete",void 0,[t])}}):bc(e,Jl(e.selection),"deleteContentBackward")}function wu(e){return!e.mathfield.isSelectionEditable||!e.contentWillChange({inputType:"deleteContentForward"})?!1:e.selectionIsCollapsed?e.deferNotifications({content:!0,selection:!0,type:"deleteContentForward"},()=>{var t,r;let i=e.at(e.position).rightSibling;if(i&&d0(e,"forward",i))return;if(i){if(e.at(e.position).isLastSibling&&d0(e,"forward",i.parent,i.parentBranch))return}else{if(i=e.at(e.position),i.isLastSibling&&d0(e,"forward",i.parent,i.parentBranch))return;i=void 0}if(e.position===e.lastOffset||!i){e.announce("plonk");return}i.parent.removeChild(i);let s=(t=e.at(e.position))==null?void 0:t.rightSibling;for(;(s==null?void 0:s.type)==="subsup";)s.parent.removeChild(s),s=(r=e.at(e.position))==null?void 0:r.rightSibling;e.announce("delete",void 0,[i])}):bc(e,Jl(e.selection),"deleteContentForward")}function bc(e,t,r){const i=e.getAtoms(t);if(i.length>0&&i[0].parent){let s=i[0].parent.firstChild;s.type==="first"&&(s=s.rightSibling);const c=i[i.length-1].parent.lastChild;let u=i[0];u.type==="first"&&(u=u.rightSibling);const k=i[i.length-1];if(u===s&&k===c){const j=i[0].parent;j.parent&&j.type!=="prompt"&&(t=[e.offsetOf(j.leftSibling),e.offsetOf(j)])}if(i.length===1&&i[0].type==="placeholder"&&i[0].parent.type==="genfrac"){const j=i[0].parent,Y=i[0].parentBranch==="below"?"above":"below",ce=e.offsetOf(j.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:r},()=>{var Pe,rt;const gt=j.removeBranch(Y);if(gt.length===1&&gt[0].type==="placeholder")(rt=j.parent)==null||rt.removeChild(j),e.position=Math.max(0,ce);else{const Et=j.parent.addChildrenAfter(gt,j);(Pe=j.parent)==null||Pe.removeChild(j),e.position=e.offsetOf(Et)}})}}return e.deferNotifications({content:!0,selection:!0,type:r},()=>e.deleteAtoms(t))}o({deleteAll:e=>e.contentWillChange({inputType:"deleteContent"})&&bc(e,[0,-1],"deleteContent"),deleteForward:e=>wu(e),deleteBackward:e=>Im(e),deleteNextWord:e=>e.contentWillChange({inputType:"deleteWordForward"})&&bc(e,[e.anchor,ql(e,e.position,"forward")],"deleteWordForward"),deletePreviousWord:e=>e.contentWillChange({inputType:"deleteWordBackward"})&&bc(e,[e.anchor,ql(e,e.position,"backward")],"deleteWordBackward"),deleteToGroupStart:e=>e.contentWillChange({inputType:"deleteSoftLineBackward"})&&bc(e,[e.anchor,e.offsetOf(e.at(e.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:e=>e.contentWillChange({inputType:"deleteSoftLineForward"})&&bc(e,[e.anchor,e.offsetOf(e.at(e.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:e=>e.contentWillChange({inputType:"deleteHardLineBackward"})&&bc(e,[e.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:e=>e.contentWillChange({inputType:"deleteHardLineForward"})&&bc(e,[e.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var Fm=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${q("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,Mm=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${q("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,Pg=class{constructor(e,t){this.focusBlurInProgress=!1;var r,i,s;this.options=g(I(g({},Ei()),{macros:Ye(),registers:Xf()}),Rn(t)),this.eventController=new AbortController;const c=this.eventController.signal;t.eventSink&&(this.host=t.eventSink),this.element=e,e.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let u=(i=(r=t.value)!=null?r:this.element.textContent)!=null?i:"";u=u.trim();const k=sn(this.options),j=new Ur({type:"root",mode:k,body:hc(u,{context:this.context})});this.model=new Ng(this,k,j),this.undoManager=new xo(this.model);const Y=[];if(Y.push("<span contenteditable=true aria-multiline=false part=keyboard-sink class=ML__keyboard-sink autocapitalize=off autocomplete=off autocorrect=off spellcheck=false inputmode=none tabindex=0></span>"),Y.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),Y.push("<span part=content class=ML__content>"),Y.push(_g(this)),Y.push("</span>"),window.mathVirtualKeyboard&&(Y.push(`<div part=virtual-keyboard-toggle class=ML__virtual-keyboard-toggle role=button ${this.hasEditableContent?"":'style="display:none;"'} data-l10n-tooltip="tooltip.toggle virtual keyboard">`),Y.push(Fm),Y.push("</div>")),Y.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),Y.push(Mm),Y.push("</div>"),Y.push("</span>"),Y.push("<span class=ML__sr-only>"),Y.push("<span role=status aria-live=assertive aria-atomic=true></span>"),Y.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(Y.join("")),!this.element.children){console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");return}this._l10Subscription=X.subscribe(()=>X.update(this.element)),X.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Pe=>Pe.stopImmediatePropagation(),{capture:!1,signal:c}),this.field.addEventListener("wheel",this,{passive:!1,signal:c}),"PointerEvent"in window?this.field.addEventListener("pointerdown",this,{signal:c}):this.field.addEventListener("mousedown",this,{signal:c}),(s=this.element.querySelector("[part=virtual-keyboard-toggle]"))==null||s.addEventListener("click",()=>{window.mathVirtualKeyboard.visible?window.mathVirtualKeyboard.hide():(window.mathVirtualKeyboard.show({animate:!0}),window.mathVirtualKeyboard.update(cA(this)))},{signal:c}),this._menu=new $(Kp(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:c});const ce=this.element.querySelector("[part=menu-toggle]");ce==null||ce.addEventListener("pointerdown",Pe=>{if(Pe.currentTarget!==ce||this._menu.state!=="closed")return;this.element.classList.add("tracking");const rt=ce.getBoundingClientRect();this._menu.modifiers=LA(Pe),this._menu.show({target:ce,location:{x:rt.left,y:rt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Pe.preventDefault(),Pe.stopPropagation()},{signal:c}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(ce.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=vg(this.element.querySelector(".ML__keyboard-sink"),this.element,this),window.addEventListener("resize",this,{signal:c}),document.addEventListener("scroll",this,{signal:c}),this.resizeObserver=new ResizeObserver(()=>Il(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:c}),Ec&&!X.locale.startsWith(Ec.locale)&&sA(X.locale),hu!=="ready"&&document.fonts.ready.then(()=>hm(this)),e.querySelector("[part=container]").style.removeProperty("visibility"),this.undoManager.startRecording(),this.undoManager.snapshot("set-value")}get defaultStyle(){return this._defaultStyle}set defaultStyle(e){this._defaultStyle=e}get effectiveStyle(){if(this.adoptStyle==="none")return this.defaultStyle;const e=this.model.at(this.model.position),t=this.adoptStyle==="right"?e.rightSibling:e;if(!t)return this.defaultStyle;if(t.type==="group"){const r=t.branch("body");return!r||r.length<2?{}:this.adoptStyle==="right"?r[1].computedStyle:r[r.length-1].computedStyle}return t.computedStyle}connectToVirtualKeyboard(){this.connectedToVirtualKeyboard||(this.connectedToVirtualKeyboard=!0,window.addEventListener("message",this,{signal:this.eventController.signal}),window.mathVirtualKeyboard.connect(),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(cA(this)),uh(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,Np())}showMenu(e){var t,r;const i=(r=(t=e==null?void 0:e.location)!=null?t:th(this.field))!=null?r:void 0,s=e==null?void 0:e.modifiers,c=this.element.querySelector("[part=container]");return this._menu.show({target:c,location:i,modifiers:s})}get colorMap(){return e=>{var t,r,i;return(i=(r=(t=this.options).colorMap)==null?void 0:r.call(t,e))!=null?i:Ue(e)}}get backgroundColorMap(){return e=>{var t,r,i,s,c,u;return(u=(c=(r=(t=this.options).backgroundColorMap)==null?void 0:r.call(t,e))!=null?c:(s=(i=this.options).colorMap)==null?void 0:s.call(i,e))!=null?u:J(e)}}get smartFence(){var e;return(e=this.options.smartFence)!=null?e:!1}get readOnly(){var e;return(e=this.options.readOnly)!=null?e:!1}get disabled(){var e,t;return(t=(e=this.host)==null?void 0:e.disabled)!=null?t:!1}get contentEditable(){return this.host?this.host.getAttribute("contenteditable")!=="false":!1}get userSelect(){if(!this.host)return"";const e=getComputedStyle(this.host);return e.getPropertyValue("user-select")||e.getPropertyValue("-webkit-user-select")}get hasEditableContent(){return this.disabled||!this.contentEditable?!1:!this.readOnly||this.hasEditablePrompts}get hasEditablePrompts(){return this.readOnly&&!this.disabled&&this.contentEditable&&this.model.findAtom(e=>e.type==="prompt"&&!e.locked)!==void 0}get isSelectionEditable(){if(this.disabled||!this.contentEditable)return!1;if(!this.readOnly)return!0;const e=this.model.at(this.model.anchor),t=this.model.at(this.model.position),r=Ur.commonAncestor(e,t);return!!((r==null?void 0:r.type)==="prompt"||r!=null&&r.parentPrompt)}get letterShapeStyle(){var e;return(e=this.options.letterShapeStyle)!=null?e:"tex"}get minFontScale(){return this.options.minFontScale}get selectionStyle(){if(this.model.selectionIsCollapsed)return this.effectiveStyle;const e=this.model.getAtoms(this.model.selection);if(e.length===0)return{};const t=g({},e[0].style);for(const r of e)for(const[i,s]of Object.entries(r.style))t[i]!==s&&delete t[i];return t}queryStyle(e){const t=Z0(this,e);"verbatimColor"in t&&delete t.verbatimColor,"verbatimBackgroundColor"in t&&delete t.verbatimBackgroundColor;const r=Object.keys(t).length;if(r===0)return"all";if(r>1){for(const j of Object.keys(t)){const Y=this.queryStyle({[j]:t[j]});if(Y==="none")return"none";if(Y==="some")return"some"}return"all"}const i=Object.keys(t)[0],s=t[i];if(this.model.selectionIsCollapsed)return this.effectiveStyle[i]===s?"all":"none";const c=this.model.getAtoms(this.model.selection,{includeChildren:!0});let u=c.length;if(u===0)return"none";let k=0;for(const j of c){if(j.type==="first"){u-=1;continue}j.style[i]===s&&(k+=1)}return k===0?"none":k===u?"all":"some"}get keybindings(){var e,t;if(this._keybindings)return this._keybindings;const[r,i]=Jg(this.options.keybindings,(e=Au())!=null?e:XA());return((t=Au())==null?void 0:t.score)>0&&(this._keybindings=r,i.length>0&&console.error("MathLive 0.98.5: Invalid keybindings for current keyboard layout",i)),r}get menu(){return this._menu}setOptions(e){var t;this.options=g(g({},this.options),Rn(e)),this._keybindings=void 0,this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline");let r=this.options.defaultMode;r==="inline-math"&&(r="math"),((t=this.model.root.firstChild)==null?void 0:t.mode)!==r&&(this.model.root.firstChild.mode=r),this.options.readOnly&&this.hasFocus()&&window.mathVirtualKeyboard.visible&&this.executeCommand("hideVirtualKeyboard");const i=Ur.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in e||this.model.getValue()!==i)&&Ls.insert(this.model,i,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in e||"macros"in e||"registers"in e||"colorMap"in e||"backgroundColorMap"in e||"letterShapeStyle"in e||"minFontScale"in e||"readOnly"in e||"placeholderSymbol"in e)&&Il(this)}getOptions(e){return gi(this.options,e)}getOption(e){return gi(this.options,e)}handleEvent(e){return hp(this,null,function*(){var t;if(cd(this)){if(Z(e)){if(!kh(e.origin,(t=this.options.originValidator)!=null?t:"none"))throw new DOMException(`Message from unknown origin (${e.origin}) cannot be handled`,"SecurityError");const{action:r}=e.data;if(r==="execute-command"){const i=e.data.command;if(l(i)==="virtual-keyboard")return;this.executeCommand(i)}else r==="update-state"||(r==="focus"?this.focus({preventScroll:!0}):r==="blur"&&this.blur());return}switch(e.type){case"focus":this.onFocus();break;case"blur":this.onBlur();break;case"mousedown":this.userSelect!=="none"&&Op(this,e);break;case"pointerdown":this.userSelect!=="none"&&(Op(this,e),e.shiftKey===!1&&(yield br(e,this.element.querySelector("[part=container]"),this._menu))&&ec.stop());break;case"contextmenu":this.userSelect!=="none"&&e.shiftKey===!1&&(yield br(e,this.element.querySelector("[part=container]"),this._menu))&&ec.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&uh(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>cd(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>cd(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(e);break;default:console.warn("Unexpected event type",e.type)}}})}dispose(){if(!cd(this))return;X.unsubscribe(this._l10Subscription),this.keyboardDelegate.dispose(),this.keyboardDelegate=void 0,this.eventController.abort(),this.eventController=void 0,this.resizeObserver.disconnect(),window.mathVirtualKeyboard.removeEventListener("virtual-keyboard-toggle",this),this.disconnectFromVirtualKeyboard(),this.model.dispose();const e=this.element;delete e.mathfield,this.element=void 0,this.host=void 0,this.field=void 0,this.ariaLiveText=void 0,$0(),Yg(),ep()}flushInlineShortcutBuffer(e){if(e!=null||(e={defer:!1}),!e.defer){this.inlineShortcutBuffer=[],clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=0;return}this.options.inlineShortcutTimeout>0&&(clearTimeout(this.inlineShortcutBufferFlushTimer),this.inlineShortcutBufferFlushTimer=setTimeout(()=>this.flushInlineShortcutBuffer(),this.options.inlineShortcutTimeout))}executeCommand(e){return l(e)==="virtual-keyboard"?(this.focus({preventScroll:!0}),window.mathVirtualKeyboard.executeCommand(e),requestAnimationFrame(()=>window.mathVirtualKeyboard.update(cA(this))),!1):A(this,e)}get errors(){return fd(this.model.getValue(),{context:this.context})}getValue(e,t,r){return this.model.getValue(e,t,r)}setValue(e,t){var r;t=t!=null?t:{mode:"math"},t.insertionMode===void 0&&(t.insertionMode="replaceAll"),(t.format===void 0||t.format==="auto")&&(t.format="latex"),(t.mode===void 0||t.mode==="auto")&&(t.mode=(r=Mh(this.model,this.model.position))!=null?r:"math");const i=this.undoManager.canUndo();Ls.insert(this.model,e,t)&&(Il(this),i||this.undoManager.reset(),this.undoManager.snapshot("set-value"))}get expression(){const e=window.MathfieldElement.computeEngine;return e?e.box(e.parse(this.model.getValue("latex-unstyled"))):(console.error("MathLive 0.98.5: no compute engine available. Make sure the Compute Engine library is loaded."),null)}scrollIntoView(){var e;if(!this.element)return;if(this.host){if(this.options.onScrollIntoView)this.options.onScrollIntoView(this);else if(this.host.scrollIntoView({block:"nearest",inline:"nearest"}),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.container===window.document.body){const i=window.mathVirtualKeyboard.boundingRect,s=this.host.getBoundingClientRect();s.bottom>i.top&&((e=window.document.scrollingElement)==null||e.scrollBy(0,s.bottom-i.top+8))}}this.dirty&&jh(this,{interactive:!0});const t=this.field.getBoundingClientRect();let r=null;if(this.model.selectionIsCollapsed)r=th(this.field);else{const i=Rm(this);if(i.length>0){let s=-1/0,c=-1/0;for(const u of i)u.right>s&&(s=u.right),u.top<c&&(c=u.top);r={x:s+t.left-this.field.scrollLeft,y:c+t.top-this.field.scrollTop,height:0}}}if(this.host&&r){const i=this.host.getBoundingClientRect(),s=r.y;let c=this.host.scrollTop;s<i.top?c=s-i.top+this.host.scrollTop:s>i.bottom&&(c=s-i.bottom+this.host.scrollTop+r.height),this.host.scroll({top:c,left:0})}if(r){const i=r.x-window.scrollX;let s=this.field.scrollLeft;i<t.left?s=i-t.left+this.field.scrollLeft-20:i>t.right&&(s=i-t.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:s})}}insert(e,t){return typeof e!="string"||e.length===0&&((t==null?void 0:t.insertionMode)==="insertBefore"||(t==null?void 0:t.insertionMode)==="insertAfter")||e.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),t=t!=null?t:{mode:"math"},t.focus&&this.focus(),t.feedback&&(window.MathfieldElement.keypressVibration&&L()&&navigator.vibrate(Ig),window.MathfieldElement.playSound("keypress")),e==="\\\\"?Ba(this.model):e==="&"?Sa(this.model):this.model.selectionIsCollapsed?Ls.insert(this.model,e,g({style:this.model.at(this.model.position).computedStyle},t)):Ls.insert(this.model,e,t),this.snapshot(`insert-${this.model.at(this.model.position).type}`),Il(this),t.scrollIntoView&&this.scrollIntoView(),!0)}switchMode(e,t="",r=""){var i;if(this.model.mode===e||!this.hasEditableContent||!this.contentEditable||this.disabled)return;const s=this.model.mode;if(this.model.mode=e,!((i=this.host)!=null&&i.dispatchEvent(new Event("mode-change",{bubbles:!0,composed:!0,cancelable:!0})))){this.model.mode=s;return}const c=this.model.mode,{model:u}=this;u.deferNotifications({content:!!r||!!t,selection:!0,type:"insertText"},()=>{let k=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),t&&e!=="latex"){const j=hc(t,{context:this.context,parseMode:e});u.collapseSelection("forward");const Y=u.at(u.position);u.position=u.offsetOf(Y.parent.addChildrenAfter(j,Y)),k=!0}if(this.model.mode=e,e==="latex"){let j=u.selectionIsCollapsed;Hh(this,"accept");let Y,ce=u.at(u.position);if(j)Y="\\";else{const rt=Jl(u.selection);Y=this.model.getValue(rt,"latex");const gt=this.model.extractAtoms(rt);gt.length===1&&gt[0].type==="placeholder"&&(Y=t,j=!0),ce=u.at(rt[0])}const Pe=new _f(Y);ce.parent.addChildAfter(Pe,ce),j?u.position=u.offsetOf(Pe.lastChild):u.setSelection(u.offsetOf(Pe.firstChild),u.offsetOf(Pe.lastChild))}else z0(u).forEach(j=>{j.isError=!1});if(r){const j=hc(r,{context:this.context,parseMode:c});u.collapseSelection("forward");const Y=u.at(u.position);u.position=u.offsetOf(Y.parent.addChildrenAfter(j,Y)),k=!0}return Il(this),this.undoManager.snapshot(e==="latex"?"insert-latex":"insert"),k}),this.model.mode=e,window.mathVirtualKeyboard.update(cA(this))}hasFocus(){return!this.blurred}focus(e){var t;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(t=e==null?void 0:e.preventScroll)!=null&&t||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(e,t={}){var r,i;const s={operation:"set",silenceNotifications:!1};Yf(t)?s.range=t:(t.operation==="toggle"&&(s.operation="toggle"),s.range=t.range,s.silenceNotifications=(r=t.silenceNotifications)!=null?r:!1);const c=Z0(this,e),u=(i=s.operation)!=null?i:"set";if(s.range===void 0&&this.model.selectionIsCollapsed){if(u==="set"){this.defaultStyle=g(g({},this.defaultStyle),c);return}const k=g({},this.defaultStyle);for(const j of Object.keys(c))k[j]===c[j]?(j==="color"&&delete k.verbatimColor,j==="backgroundColor"&&delete k.verbatimBackgroundColor,delete k[j]):k[j]=c[j];this.defaultStyle=k;return}this.model.deferNotifications({content:!s.silenceNotifications,type:"insertText"},()=>{if(s.range===void 0)for(const k of this.model.selection.ranges)Wo(this.model,k,c,{operation:u});else Wo(this.model,s.range,c,{operation:u})}),Il(this)}toggleContextMenu(){var e;return this._menu.visible?this._menu.state==="open"?(this._menu.hide(),!0):(this._menu.show({target:this.element.querySelector("[part=container]"),location:(e=this.getCaretPoint())!=null?e:void 0,onDismiss:()=>{var t;return(t=this.element)==null?void 0:t.focus()}}),!0):!1}getCaretPoint(){const e=th(this.field);return e?{x:e.x,y:e.y}:null}setCaretPoint(e,t){const r=vd(this,e,t,{bias:0});if(r<0)return!1;const i=this.model.position;return this.model.position=r,this.model.announce("move",i),Il(this),!0}getPrompt(e){const t=this.model.findAtom(r=>r.type==="prompt"&&r.placeholderId===e);return console.assert(t!==void 0,"MathLive 0.98.5: no prompts with matching ID found"),t}getPromptValue(e,t){const r=this.getPrompt(e);if(!r)return"";const i=this.model.offsetOf(r.firstChild),s=this.model.offsetOf(r.lastChild);return this.model.getValue(i,s,t)}getPrompts(e){return this.model.getAllAtoms().filter(t=>t.type!=="prompt"?!1:e?!(e.id&&t.placeholderId!==e.id||e.locked&&t.locked!==e.locked||e.correctness==="undefined"&&t.correctness||e.correctness&&t.correctness!==e.correctness):!0).map(t=>t.placeholderId)}setPromptValue(e,t,r){if(t!==void 0){const i=this.getPrompt(e);if(!i){console.error(`MathLive 0.98.5: unknown prompt ${e}`);return}const s=this.model.getBranchRange(this.model.offsetOf(i),"body");this.model.setSelection(s),this.insert(t,I(g({},r),{insertionMode:"replaceSelection"}))}r!=null&&r.silenceNotifications&&(this.valueOnFocus=this.getValue()),Il(this)}setPromptState(e,t,r){const i=this.getPrompt(e);if(!i){console.error(`MathLive 0.98.5: unknown prompt ${e}`);return}t==="undefined"?i.correctness=void 0:typeof t=="string"&&(i.correctness=t),typeof r=="boolean"&&(i.locked=r,i.captureSelection=r),Il(this)}getPromptState(e){const t=this.getPrompt(e);return t?[t.correctness,t.locked]:(console.error(`MathLive 0.98.5: unknown prompt ${e}`),[void 0,!0])}getPromptRange(e){const t=this.getPrompt(e);return t?this.model.getBranchRange(this.model.offsetOf(t),"body"):(console.error(`MathLive 0.98.5: unknown prompt ${e}`),[0,0])}canUndo(){return this.undoManager.canUndo()}canRedo(){return this.undoManager.canRedo()}popUndoStack(){this.undoManager.pop()}snapshot(e){var t;this.undoManager.snapshot(e)&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(cA(this)),(t=this.host)==null||t.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"snapshot"}})))}stopCoalescingUndo(){this.undoManager.stopCoalescing(this.model.selection)}stopRecording(){this.undoManager.stopRecording()}startRecording(){this.undoManager.startRecording()}undo(){var e;this.undoManager.undo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(cA(this)),(e=this.host)==null||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}redo(){var e;this.undoManager.redo()&&(window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(cA(this)),(e=this.host)==null||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var e;(e=this.undoManager)==null||e.reset()}onSelectionDidChange(){var e,t;const r=this.model;this.keyboardDelegate.setValue(r.getValue(this.model.selection,"latex-expanded"));{const i=r.at(r.position),s=(e=i.mode)!=null?e:sn(this.options);this.model.mode!==s&&(this.model.mode==="latex"?(Hh(this,"accept",{mode:s}),r.position=r.offsetOf(i)):this.switchMode(s))}(t=this.host)==null||t.dispatchEvent(new Event("selection-change",{bubbles:!0,composed:!0})),window.mathVirtualKeyboard.visible&&window.mathVirtualKeyboard.update(cA(this)),uh(this)}onContentWillChange(e){var t,r,i;return(i=(r=this.host)==null?void 0:r.dispatchEvent(new InputEvent("beforeinput",I(g({},e),{data:e.data?e.data:(t=e.inputType)!=null?t:"",cancelable:!0,bubbles:!0,composed:!0}))))!=null?i:!0}onFocus(){this.focusBlurInProgress||!this.blurred||(this.focusBlurInProgress=!0,this.blurred=!1,this.keyboardDelegate.focus(),this.stopCoalescingUndo(),jh(this,{interactive:!0}),this.valueOnFocus=this.model.getValue(),this.hasEditablePrompts&&!this.model.at(this.model.anchor).parentPrompt&&this.executeCommand("moveToNextPlaceholder"),this.focusBlurInProgress=!1)}onBlur(){var e,t,r;if(this.focusBlurInProgress||this.blurred)return;this.focusBlurInProgress=!0,this.stopCoalescingUndo(),this.blurred=!0,this.ariaLiveText.textContent="",kA(this),this.model.getValue()!==this.valueOnFocus&&((e=this.host)==null||e.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),this.disconnectFromVirtualKeyboard(),(t=this.host)==null||t.dispatchEvent(new Event("blur",{bubbles:!1,composed:!0})),(r=this.host)==null||r.dispatchEvent(new UIEvent("focusout",{bubbles:!0,composed:!0})),Il(this),this.focusBlurInProgress=!1,Np();const i=new AbortController,s=i.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{cd(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:s})},{once:!0,signal:s}),setTimeout(()=>i.abort(),100)}onInput(e){Fp(this,e)}onKeystroke(e){return Wh(this,e)}onCompositionStart(e){this.model.deleteAtoms(Jl(this.model.selection));const t=th(this.field);t&&requestAnimationFrame(()=>{jh(this),this.keyboardDelegate.moveTo(t.x,t.y-t.height)})}onCompositionUpdate(e){Eo(this.model,e),Il(this)}onCompositionEnd(e){Ta(this.model),Fp(this,e,{simulateKeystroke:!0})}onCut(e){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Ls.onCopy(this,e),bc(this.model,Jl(this.model.selection),"deleteByCut"),this.snapshot("cut"),Il(this))}onCopy(e){Ls.onCopy(this,e)}onPaste(e){let t=this.isSelectionEditable;return t&&(t=Ls.onPaste(this.model.at(this.model.position).mode,this,e.clipboardData)),t||this.model.announce("plonk"),e.preventDefault(),e.stopPropagation(),t}onGeometryChange(){this._menu.hide(),Ip(this),uh(this)}onWheel(e){const t=5*e.deltaX;if(!Number.isFinite(t)||t===0)return;const r=this.field;t<0&&r.scrollLeft===0||t>0&&r.offsetWidth+r.scrollLeft>=r.scrollWidth||(r.scrollBy({top:0,left:t}),e.preventDefault(),e.stopPropagation())}getHTMLElement(e){let t=e;for(;!t.id&&t.hasChildren;)t=e.children[0];return this.field.querySelector(`[data-atom-id="${t.id}"]`)}get context(){var e,t;return{registers:(e=this.options.registers)!=null?e:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(t=this.options.placeholderSymbol)!=null?t:"\u25A2",colorMap:r=>this.colorMap(r),backgroundColorMap:r=>this.backgroundColorMap(r),getMacro:r=>Ut(r,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function jp(e){if(e&&(e.classList.remove("ML__highlight"),e.children))for(const t of e.children)jp(t)}function sp(e,t){var r;e&&(!t||((r=e.dataset)==null?void 0:r.atomId)===t?(e.classList.add("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(i=>{i instanceof HTMLElement&&sp(i)})):(e.classList.remove("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(i=>{i instanceof HTMLElement&&sp(i,t)})))}function ug(e,t){var r;if(!N())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(t);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),s={OutputFormat:"json",VoiceId:(r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna",Engine:"standard",Text:t,TextType:"ssml",SpeechMarkTypes:["ssml"]};OA().readAloudElement=e,i.synthesizeSpeech(s,(c,u)=>{if(c){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${c}`);return}if(!(u!=null&&u.AudioStream)){console.log("polly.synthesizeSpeech():",u);return}const k=new TextDecoder("utf-8").decode(new Uint8Array(u.AudioStream));OA().readAloudMarks=k.split(`
`).map(j=>j?JSON.parse(j):{}),OA().readAloudTokens=[];for(const j of OA().readAloudMarks)j.value&&OA().readAloudTokens.push(j.value);OA().readAloudCurrentMark="",s.OutputFormat="mp3",s.SpeechMarkTypes=[],i.synthesizeSpeech(s,(j,Y)=>{if(j){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${j}`);return}if(!(Y!=null&&Y.AudioStream))return;const ce=new Uint8Array(Y.AudioStream),Pe=new Blob([ce.buffer],{type:"audio/mpeg"}),rt=URL.createObjectURL(Pe),gt=OA();gt.readAloudAudio?gt.readAloudAudio.pause():(gt.readAloudAudio=new Audio,gt.readAloudAudio.addEventListener("ended",()=>{const Et=gt.readAloudMathfield;gt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Et?(jh(Et),gt.readAloudElement=null,gt.readAloudMathfield=null,gt.readAloudTokens=[],gt.readAloudMarks=[],gt.readAloudCurrentMark=""):jp(gt.readAloudElement)}),gt.readAloudAudio.addEventListener("timeupdate",()=>{let Et="";const Br=gt.readAloudAudio.currentTime*1e3+100;for(const In of gt.readAloudMarks)In.time<Br&&(Et=In.value);gt.readAloudCurrentMark!==Et&&(gt.readAloudCurrentToken=Et,Et&&Et===gt.readAloudFinalToken?gt.readAloudAudio.pause():(gt.readAloudCurrentMark=Et,sp(gt.readAloudElement,gt.readAloudCurrentMark)))})),gt.readAloudAudio.src=rt,gt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),gt.readAloudAudio.play()})})}N()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var Qo=new WeakMap,dg=.5,sf={letterShapeStyle:"mf.letterShapeStyle = ...",horizontalSpacingScale:'Removed. Use `"thinmuskip"`, `"medmuskip"`, and `"thickmuskip"` registers ',macros:"mf.macros = ...",registers:"mf.registers = ...",backgroundColorMap:"mf.backgroundColorMap = ...",colorMap:"mf.colorMap = ...",enablePopover:"mf.popoverPolicy = ...",mathModeSpace:"mf.mathModeSpace = ...",placeholderSymbol:"mf.placeholderSymbol = ...",readOnly:"mf.readOnly = ...",removeExtraneousParentheses:"mf.removeExtraneousParentheses = ...",scriptDepth:"mf.scriptDepth = ...",smartFence:"mf.smartFence = ...",smartMode:"mf.smartMode = ...",smartSuperscript:"mf.smartSuperscript = ...",inlineShortcutTimeout:"mf.inlineShortcutTimeout = ...",inlineShortcuts:"mf.inlineShortcuts = ...",keybindings:"mf.keybindings = ...",virtualKeyboardMode:"mf.mathVirtualKeyboardPolicy = ...",customVirtualKeyboardLayers:"mathVirtualKeyboard.layers = ...",customVirtualKeyboards:"mathVirtualKeyboard.layouts = ...",keypressSound:"mathVirtualKeyboard.keypressSound = ...",keypressVibration:"mathVirtualKeyboard.keypressVibration = ...",plonkSound:"mathVirtualKeyboard.plonkSound = ...",virtualKeyboardContainer:"mathVirtualKeyboard.container = ...",virtualKeyboardLayout:"mathVirtualKeyboard.alphabeticLayout = ...",virtualKeyboardTheme:"No longer supported",virtualKeyboardToggleGlyph:"No longer supported",virtualKeyboardToolbar:"mathVirtualKeyboard.editToolbar = ...",virtualKeyboards:"Use `mathVirtualKeyboard.layouts`",speechEngine:"`MathfieldElement.speechEngine`",speechEngineRate:"`MathfieldElement.speechEngineRate`",speechEngineVoice:"`MathfieldElement.speechEngineVoice`",textToSpeechMarkup:"`MathfieldElement.textToSpeechMarkup`",textToSpeechRules:"`MathfieldElement.textToSpeechRules`",textToSpeechRulesOptions:"`MathfieldElement.textToSpeechRulesOptions`",readAloudHook:"`MathfieldElement.readAloudHook`",speakHook:"`MathfieldElement.speakHook`",computeEngine:"`MathfieldElement.computeEngine`",fontsDirectory:"`MathfieldElement.fontsDirectory`",soundsDirectory:"`MathfieldElement.soundsDirectory`",createHTML:"`MathfieldElement.createHTML`",onExport:"`MathfieldElement.onExport`",onInlineShortcut:"`MathfieldElement.onInlineShortcut`",onScrollIntoView:"`MathfieldElement.onScrollIntoView`",locale:"MathfieldElement.locale = ...",strings:"MathfieldElement.strings = ...",decimalSeparator:"MathfieldElement.decimalSeparator = ...",fractionNavigationOrder:"MathfieldElement.fractionNavigationOrder = ..."},cc=class Zp extends HTMLElement{static get formAssociated(){return h0()}static get optionsAttributes(){return{"default-mode":"string","letter-shape-style":"string","min-font-scale":"number","popover-policy":"string","math-mode-space":"string","read-only":"boolean","remove-extraneous-parentheses":"on/off","smart-fence":"on/off","smart-mode":"on/off","smart-superscript":"on/off","inline-shortcut-timeout":"string","script-depth":"string",placeholder:"string","virtual-keyboard-target-origin":"string","math-virtual-keyboard-policy":"string"}}static get observedAttributes(){return[...Object.keys(this.optionsAttributes),"contenteditable","disabled","readonly","read-only"]}static get fontsDirectory(){return this._fontsDirectory}static set fontsDirectory(t){t!==this._fontsDirectory&&(this._fontsDirectory=t,t1())}get fontsDirectory(){throw new Error("Use MathfieldElement.fontsDirectory instead")}set fontsDirectory(t){throw new Error("Use MathfieldElement.fontsDirectory instead")}static get soundsDirectory(){return this._soundsDirectory}static set soundsDirectory(t){this._soundsDirectory=t,this.audioBuffers={}}get soundsDirectory(){throw new Error("Use MathfieldElement.soundsDirectory instead")}set soundsDirectory(t){throw new Error("Use MathfieldElement.soundsDirectory instead")}static get keypressSound(){return this._keypressSound}static set keypressSound(t){var r,i,s;this.audioBuffers={},t===null?this._keypressSound={spacebar:null,return:null,delete:null,default:null}:typeof t=="string"?this._keypressSound={spacebar:t,return:t,delete:t,default:t}:typeof t=="object"&&"default"in t&&(this._keypressSound={spacebar:(r=t.spacebar)!=null?r:t.default,return:(i=t.return)!=null?i:t.default,delete:(s=t.delete)!=null?s:t.default,default:t.default})}static get plonkSound(){return this._plonkSound}static set plonkSound(t){this.audioBuffers={},this._plonkSound=t}static get audioContext(){return this._audioContext||(this._audioContext=new AudioContext),this._audioContext}static get speechEngine(){return this._speechEngine}static set speechEngine(t){this._speechEngine=t}static get speechEngineRate(){return this._speechEngineRate}static set speechEngineRate(t){this._speechEngineRate=t}static get speechEngineVoice(){return this._speechEngineVoice}static set speechEngineVoice(t){this._speechEngineVoice=t}static get textToSpeechMarkup(){return this._textToSpeechMarkup}static set textToSpeechMarkup(t){this._textToSpeechMarkup=t}static get textToSpeechRules(){return this._textToSpeechRules}static set textToSpeechRules(t){this._textToSpeechRules=t}static get textToSpeechRulesOptions(){return this._textToSpeechRulesOptions}static set textToSpeechRulesOptions(t){this._textToSpeechRulesOptions=t}static get locale(){return X.locale}static set locale(t){t==="auto"&&(t=navigator.language.slice(0,5)),X.locale=t}get locale(){throw new Error("Use MathfieldElement.locale instead")}set locale(t){throw new Error("Use MathfieldElement.locale instead")}static get strings(){return X.strings}static set strings(t){X.merge(t)}get strings(){throw new Error("Use MathfieldElement.strings instead")}set strings(t){throw new Error("Use MathfieldElement.strings instead")}static get decimalSeparator(){return this._decimalSeparator}static set decimalSeparator(t){this._decimalSeparator=t,this._computeEngine&&(this._computeEngine.latexOptions.decimalMarker=this.decimalSeparator===","?"{,}":".")}get decimalSeparator(){throw new Error("Use MathfieldElement.decimalSeparator instead")}set decimalSeparator(t){throw new Error("Use MathfieldElement.decimalSeparator instead")}static get computeEngine(){var t,r;if(this._computeEngine===void 0){const i=(t=window[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;if(!i)return null;this._computeEngine=new i,this._computeEngine&&this.decimalSeparator===","&&(this._computeEngine.latexOptions.decimalMarker="{,}")}return(r=this._computeEngine)!=null?r:null}static set computeEngine(t){this._computeEngine=t}get computeEngine(){throw new Error("Use MathfieldElement.computeEngine instead")}set computeEngine(t){throw new Error("Use MathfieldElement.computeEngine instead")}static get isFunction(){return typeof this._isFunction!="function"?()=>!1:this._isFunction}static set isFunction(t){this._isFunction=t}static loadSound(t){return hp(this,null,function*(){delete this.audioBuffers[t];let r="";switch(t){case"keypress":r=this._keypressSound.default;break;case"return":r=this._keypressSound.return;break;case"spacebar":r=this._keypressSound.spacebar;break;case"delete":r=this._keypressSound.delete;break;case"plonk":r=this.plonkSound;break}if(typeof r!="string")return;r=r.trim();const i=this.soundsDirectory;if(!(i==null||i==="null"||r==="none"||r==="null"))try{const c=yield(yield fetch(yield Sg(`${i}/${r}`))).arrayBuffer(),u=yield this.audioContext.decodeAudioData(c);this.audioBuffers[t]=u}catch(s){}})}static playSound(t){return hp(this,null,function*(){if((this.audioContext.state==="suspended"||this.audioContext.state==="interrupted")&&(yield this.audioContext.resume()),this.audioBuffers[t]||(yield this.loadSound(t)),!this.audioBuffers[t])return;const r=this.audioContext.createBufferSource();r.buffer=this.audioBuffers[t];const i=this.audioContext.createGain();i.gain.value=dg,r.connect(i).connect(this.audioContext.destination),r.start()})}constructor(t){if(super(),t){const r=[];for(const i of Object.keys(t))if(sf[i])if(sf[i].startsWith("mf."))if(sf[i].startsWith(`mf.${i}`))r.push(`Option \`${i}\` cannot be used as a constructor option. Use ${sf[i]}`);else{const s=sf[i].match(/([a-zA-Z]+) =/);r.push(`Option \`${i}\` has been renamed \`${s[1]}\``)}else r.push(`Option \`${i}\` cannot be used as a constructor option. Use ${sf[i]}`);if(r.length>0){console.group("%cMathLive 0.98.5: %cInvalid Options","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn("Some of the options passed to `new MathfieldElement(...)` are invalid. \n See https://cortexjs.io/mathlive/changelog/ for details.");for(const i of r)console.warn(i);console.groupEnd()}}if(h0()&&(this._internals=this.attachInternals(),this._internals.role="math",this._internals.ariaLabel="math input field",this._internals.ariaMultiLine="false"),this.attachShadow({mode:"open",delegatesFocus:!0}),this.shadowRoot&&"adoptedStyleSheets"in this.shadowRoot){this.shadowRoot.adoptedStyleSheets=[IA("core"),IA("mathfield"),IA("mathfield-element"),IA("ui"),IA("menu")],this.shadowRoot.appendChild(document.createElement("span"));const r=document.createElement("slot");r.style.display="none",this.shadowRoot.appendChild(r)}else this.shadowRoot.innerHTML="<style>"+lu("core")+lu("mathfield")+lu("mathfield-element")+lu("ui")+lu("menu")+'</style><span></span><slot style="display:none"></slot>';t&&this._setOptions(t),this.shadowRoot.addEventListener("slotchange",()=>{var r;const i=this.shadowRoot.querySelector("slot:not([name])");this.value=(r=i==null?void 0:i.assignedNodes().map(s=>s.nodeType===3?s.textContent:"").join("").trim())!=null?r:""})}showMenu(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.showMenu(t))!=null?i:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",t=>{var r;t.target===this&&!((r=this._mathfield)!=null&&r.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:t.altKey,button:t.button,buttons:t.buttons,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,metaKey:t.metaKey,movementX:t.movementX,movementY:t.movementY,relatedTarget:t.relatedTarget,screenX:t.screenX,screenY:t.screenY,shiftKey:t.shiftKey}))},{once:!0})}getPromptValue(t,r){var i,s;return(s=(i=this._mathfield)==null?void 0:i.getPromptValue(t,r))!=null?s:""}setPromptValue(t,r,i){var s;(s=this._mathfield)==null||s.setPromptValue(t,r,i)}getPromptRange(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.getPromptRange(t))!=null?i:null}getPrompts(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.getPrompts(t))!=null?i:[]}get form(){var t;return(t=this._internals)==null?void 0:t.form}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}get type(){return this.localName}get mode(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.mode)!=null?r:this.defaultMode==="text"?"text":"math"}set mode(t){var r;(r=this._mathfield)==null||r.switchMode(t)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(t){var r,i;if(!this._mathfield)return;const s=(i=(r=Zp.computeEngine)==null?void 0:r.box(t).latex)!=null?i:null;s!==null&&this._mathfield.setValue(s),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.errors)!=null?r:[]}_getOptions(t){return this._mathfield?gi(this._mathfield.options,t):Qo.has(this)?g({},gi(g(g({},Ei()),Rn(Qo.get(this).options)),t)):null}getOptions(t){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?gi(this._mathfield.options,t):Qo.has(this)?gi(g(g({},Ei()),Rn(Qo.get(this).options)),t):null}reflectAttributes(){const t=Ei(),r=this._getOptions();Object.keys(Zp.optionsAttributes).forEach(i=>{const s=Uf(i);Zp.optionsAttributes[i]==="on/off"?t[s]!==r[s]?this.setAttribute(i,r[s]?"on":"off"):this.removeAttribute(i):t[s]!==r[s]&&(Zp.optionsAttributes[i]==="boolean"?r[s]?this.setAttribute(i,""):this.removeAttribute(i):(typeof r[s]=="string"||typeof r[s]=="number")&&this.setAttribute(i,r[s].toString()))})}getOption(t){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([t])[t]}_getOption(t){return this._getOptions([t])[t]}_setOptions(t){if(this._mathfield)this._mathfield.setOptions(t);else if(Qo.has(this)){const r=g(g({},Qo.get(this).options),t);Qo.set(this,I(g({},Qo.get(this)),{selection:{ranges:r.readOnly?[[0,0]]:[[0,-1]]},options:r}))}else Qo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:t,menuItems:void 0});this.reflectAttributes()}setOptions(t){console.group("%cMathLive 0.98.5: %cDeprecated Usage","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),console.warn(" `mf.setOptions()` is deprecated. Set the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.");for(const r of Object.keys(t))sf[r]&&console.warn(`\`mf.setOptions({${r}:...})\` -> ${sf[r]}`);console.groupEnd(),this._setOptions(t)}executeCommand(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.executeCommand(t))!=null?i:!1}getValue(t,r,i){var s,c;if(this._mathfield)return this._mathfield.model.getValue(t,r,i);if(Qo.has(this)){let u,k,j;if(Fh(t)?([u,k]=t.ranges[0],j=r):Yf(t)?([u,k]=t,j=r):ld(t)&&ld(r)?(u=t,k=r,j=i):(u=0,k=-1,j=t),(j===void 0||j==="latex")&&u===0&&k===-1)return(c=(s=Qo.get(this).value)!=null?s:this.textContent)!=null?c:""}return""}setValue(t,r){if(this._mathfield&&t!==void 0){r!=null||(r={silenceNotifications:!0,mode:"math"}),this._mathfield.setValue(t,r);return}if(Qo.has(this)){const s=Qo.get(this).options;Qo.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:s,menuItems:void 0});return}const i=zp(this);Qo.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:i,menuItems:void 0})}hasFocus(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.hasFocus())!=null?r:!1}focus(){var t;(t=this._mathfield)==null||t.focus()}blur(){var t;(t=this._mathfield)==null||t.blur()}select(){var t;(t=this._mathfield)==null||t.select()}insert(t,r){var i,s;return(s=(i=this._mathfield)==null?void 0:i.insert(t,r))!=null?s:!1}applyStyle(t,r){var i;return(i=this._mathfield)==null?void 0:i.applyStyle(t,r)}queryStyle(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.queryStyle(t))!=null?i:"none"}get caretPoint(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.getCaretPoint())!=null?r:null}set caretPoint(t){var r;t&&((r=this._mathfield)==null||r.setCaretPoint(t.x,t.y))}setCaretPoint(t,r){var i,s;return(s=(i=this._mathfield)==null?void 0:i.setCaretPoint(t,r))!=null?s:!1}offsetFromPoint(t,r,i){return this._mathfield?vd(this._mathfield,t,r,i):-1}hitboxFromOffset(t){if(!this._mathfield)return null;const r=this._mathfield.model.at(t);if(!r)return null;const i=nh(this._mathfield,r);return i?new DOMRect(i.left,i.top,i.right-i.left,i.bottom-i.top):null}resetUndo(){var t;(t=this._mathfield)==null||t.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(t){var r,i,s,c;Hc.state==="closed"&&((i=(r=this._mathfield)==null?void 0:r.menu)==null?void 0:i.state)==="closed"&&(t.type==="pointerdown"&&this.onPointerDown(),t.type==="focus"&&((s=this._mathfield)==null||s.focus()),t.type==="blur"&&((c=this._mathfield)==null||c.blur()))}connectedCallback(){var t,r,i,s;const c=window.getComputedStyle(this),u=this.shadowRoot,k=c.userSelect!=="none";if(k)u.host.addEventListener("pointerdown",this,!0);else{const ce=u.querySelector("span");ce.style.pointerEvents="none"}u.host.addEventListener("focus",this,!0),u.host.addEventListener("blur",this,!0),h0()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),k&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const j=u.querySelector("slot:not([name])");if(j)try{this._style=j.assignedElements().filter(ce=>ce.tagName.toLowerCase()==="style").map(ce=>ce.textContent).join("")}catch(ce){console.error(ce)}if(this._style){const ce=document.createElement("style");ce.textContent=this._style,u.appendChild(ce)}let Y="";if(this.hasAttribute("value")?Y=this.getAttribute("value"):Y=(t=j==null?void 0:j.assignedNodes().map(ce=>ce.nodeType===3?ce.textContent:"").join("").trim())!=null?t:"",this._mathfield=new Pg(u.querySelector(":host > span"),I(g({},(i=(r=Qo.get(this))==null?void 0:r.options)!=null?i:zp(this)),{eventSink:this,value:Y})),!Qo.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const ce of Object.keys(Zp.optionsAttributes))this.upgradeProperty(Uf(ce))}if(!((s=this._mathfield)!=null&&s.model)){this._mathfield=null;return}if(Qo.has(this)){const ce=this._mathfield,Pe=Qo.get(this),rt=Pe.menuItems;ce.model.deferNotifications({content:!1,selection:!1},()=>{const gt=Pe.value;gt!==void 0&&ce.setValue(gt),ce.model.selection=Pe.selection,Qo.delete(this)}),rt&&(this.menuItems=rt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),fm()}disconnectedCallback(){var t,r;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const i=gi(this._mathfield.options,Object.keys(Zp.optionsAttributes).map(s=>Uf(s)));Qo.set(this,{value:this._mathfield.getValue(),selection:this._mathfield.model.selection,menuItems:(r=(t=this._mathfield.menu)==null?void 0:t.menuItems)!=null?r:void 0,options:i}),this._mathfield.dispose(),this._mathfield=null}upgradeProperty(t){if(this.hasOwnProperty(t)){const r=this[t];delete this[t],(t==="readonly"||t==="read-only")&&(t="readOnly"),this[t]=r}}attributeChangedCallback(t,r,i){if(r===i)return;const s=i!==null;switch(t){case"contenteditable":Il(this._mathfield);break;case"disabled":this.disabled=s;break;case"read-only":case"readonly":this.readOnly=s;break;default:}}get readonly(){return this.hasAttribute("readonly")||this.hasAttribute("read-only")}set readonly(t){const r=!!t;r?(this.setAttribute("readonly",""),h0()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(h0()?this._internals.ariaReadOnly="false":this.removeAttribute("aria-readonly"),this.removeAttribute("readonly"),this.removeAttribute("read-only")),this._setOptions({readOnly:r})}get disabled(){return this.hasAttribute("disabled")}set disabled(t){var r;const i=!!t;i?this.setAttribute("disabled",""):this.removeAttribute("disabled"),h0()?this._internals.ariaDisabled=i?"true":"false":this.setAttribute("aria-disabled",i?"true":"false"),i&&((r=this._mathfield)!=null&&r.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(t){this.setValue(t)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(t){this._setOptions({defaultMode:t})}get macros(){return this._getOption("macros")}set macros(t){this._setOptions({macros:t})}get registers(){const t=this;return new Proxy({},{get:(r,i)=>{if(typeof i=="string")return t._getOption("registers")[i]},set(r,i,s){return typeof i!="string"?!1:(t._setOptions({registers:I(g({},t._getOption("registers")),{[i]:s})}),!0)}})}set registers(t){this._setOptions({registers:t})}get colorMap(){return this._getOption("colorMap")}set colorMap(t){this._setOptions({colorMap:t})}get backgroundColorMap(){return this._getOption("backgroundColorMap")}set backgroundColorMap(t){this._setOptions({backgroundColorMap:t})}get letterShapeStyle(){return this._getOption("letterShapeStyle")}set letterShapeStyle(t){this._setOptions({letterShapeStyle:t})}get minFontScale(){return this._getOption("minFontScale")}set minFontScale(t){this._setOptions({minFontScale:t})}get smartMode(){return this._getOption("smartMode")}set smartMode(t){this._setOptions({smartMode:t})}get smartFence(){return this._getOption("smartFence")}set smartFence(t){this._setOptions({smartFence:t})}get smartSuperscript(){return this._getOption("smartSuperscript")}set smartSuperscript(t){this._setOptions({smartSuperscript:t})}get scriptDepth(){return this._getOption("scriptDepth")}set scriptDepth(t){this._setOptions({scriptDepth:t})}get removeExtraneousParentheses(){return this._getOption("removeExtraneousParentheses")}set removeExtraneousParentheses(t){this._setOptions({removeExtraneousParentheses:t})}get mathModeSpace(){return this._getOption("mathModeSpace")}set mathModeSpace(t){this._setOptions({mathModeSpace:t})}get placeholderSymbol(){return this._getOption("placeholderSymbol")}set placeholderSymbol(t){this._setOptions({placeholderSymbol:t})}get popoverPolicy(){return this._getOption("popoverPolicy")}set popoverPolicy(t){this._setOptions({popoverPolicy:t})}get environmentPopoverPolicy(){return this._getOption("environmentPopoverPolicy")}set environmentPopoverPolicy(t){this._setOptions({environmentPopoverPolicy:t})}get menuItems(){var t,r,i;return this._mathfield?(t=this._mathfield.menu._menuItems.map(s=>s.menuItem))!=null?t:[]:(i=(r=Qo.get(this))==null?void 0:r.menuItems)!=null?i:[]}set menuItems(t){var r;if(this._mathfield){const i=(r=this._mathfield.element)==null?void 0:r.querySelector("[part=menu-toggle]");i&&(i.style.display=t.length===0?"none":""),this._mathfield.menu.menuItems=t}Qo.has(this)?Qo.set(this,I(g({},Qo.get(this)),{menuItems:t})):Qo.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:zp(this),menuItems:t})}get mathVirtualKeyboardPolicy(){return this._getOption("mathVirtualKeyboardPolicy")}set mathVirtualKeyboardPolicy(t){this._setOptions({mathVirtualKeyboardPolicy:t})}get inlineShortcuts(){return this._getOption("inlineShortcuts")}set inlineShortcuts(t){this._setOptions({inlineShortcuts:t})}get inlineShortcutTimeout(){return this._getOption("inlineShortcutTimeout")}set inlineShortcutTimeout(t){this._setOptions({inlineShortcutTimeout:t})}get keybindings(){return this._getOption("keybindings")}set keybindings(t){this._setOptions({keybindings:t})}get onInlineShortcut(){return this._getOption("onInlineShortcut")}set onInlineShortcut(t){this._setOptions({onInlineShortcut:t})}get onScrollIntoView(){return this._getOption("onScrollIntoView")}set onScrollIntoView(t){this._setOptions({onScrollIntoView:t})}get onExport(){return this._getOption("onExport")}set onExport(t){this._setOptions({onExport:t})}get readOnly(){return this._getOption("readOnly")}set readOnly(t){this._setOptions({readOnly:t})}get isSelectionEditable(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.isSelectionEditable)!=null?r:!1}setPromptState(t,r,i){var s;(s=this._mathfield)==null||s.setPromptState(t,r,i)}getPromptState(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.getPromptState(t))!=null?i:[void 0,!0]}get virtualKeyboardTargetOrigin(){return this._getOption("virtualKeyboardTargetOrigin")}set virtualKeyboardTargetOrigin(t){this._setOptions({virtualKeyboardTargetOrigin:t})}get selection(){return this._mathfield?this._mathfield.model.selection:Qo.has(this)?Qo.get(this).selection:{ranges:[[0,0]],direction:"forward"}}set selection(t){if(typeof t=="number"&&(t={ranges:[[t,t]]}),this._mathfield){this._mathfield.model.selection=t,Il(this._mathfield);return}if(Qo.has(this)){Qo.set(this,I(g({},Qo.get(this)),{selection:t}));return}Qo.set(this,{value:void 0,selection:t,options:zp(this),menuItems:void 0})}get selectionIsCollapsed(){const t=this.selection;return t.ranges.length===1&&t.ranges[0][0]===t.ranges[0][1]}get position(){return this._mathfield?this._mathfield.model.position:Qo.has(this)?Qo.get(this).selection.ranges[0][0]:0}set position(t){if(this._mathfield&&(this._mathfield.model.position=t,Il(this._mathfield)),Qo.has(this)){Qo.set(this,I(g({},Qo.get(this)),{selection:{ranges:[[t,t]]}}));return}Qo.set(this,{value:void 0,selection:{ranges:[[t,t]]},options:zp(this),menuItems:void 0})}getOffsetDepth(t){var r,i;return this._mathfield?((i=(r=this._mathfield.model.at(t))==null?void 0:r.treeDepth)!=null?i:2)-2:0}get lastOffset(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.lastOffset)!=null?r:-1}};cc.version="0.98.5",cc._fontsDirectory="./fonts",cc._soundsDirectory="./sounds",cc.keypressVibration=!0,cc._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},cc._plonkSound="plonk.wav",cc.audioBuffers={},cc.createHTML=e=>e,cc._speechEngineRate="100%",cc._speechEngineVoice="Joanna",cc._textToSpeechMarkup="",cc._textToSpeechRules="mathlive",cc._textToSpeechRulesOptions={},cc.speakHook=Lg,cc.readAloudHook=ug,cc._decimalSeparator=".",cc.fractionNavigationOrder="numerator-denominator",cc._isFunction=e=>{var t,r;const i=window.MathfieldElement.computeEngine;return(r=(t=i==null?void 0:i.parse(e).domain)==null?void 0:t.isFunction)!=null?r:!1};var f0=cc;function Uf(e){return e.replace(/[^a-zA-Z\d]+(.)/g,(t,r)=>r.toUpperCase())}function zp(e){const t={readOnly:!1},r=f0.optionsAttributes;return Object.keys(r).forEach(i=>{if(e.hasAttribute(i)){const s=e.getAttribute(i);i==="placeholder"?t.contentPlaceholder=s!=null?s:"":r[i]==="boolean"?t[Uf(i)]=!0:r[i]==="on/off"?s==="on"?t[Uf(i)]=!0:s==="off"?t[Uf(i)]=!1:t[Uf(i)]=void 0:r[i]==="number"?t[Uf(i)]=Number.parseFloat(s!=null?s:"0"):t[Uf(i)]=s}}),t}function h0(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var Tg=f0,Ug,Rg,Qg,Kg;if(N()&&!((Ug=window.customElements)!=null&&Ug.get("math-field"))){(Qg=window[Rg=Symbol.for("io.cortexjs.mathlive")])!=null||(window[Rg]={});const e=window[Symbol.for("io.cortexjs.mathlive")];e.version="0.98.5",window.MathfieldElement=f0,(Kg=window.customElements)==null||Kg.define("math-field",f0)}function fg(e,t,r){let i=r,s=0;const c=e.length;for(;i<t.length;){const u=t[i];if(s<=0&&t.slice(i,i+c)===e)return i;u==="\\"?i++:u==="{"?s++:u==="}"&&s--,i++}return-1}function lp(e,t,r,i,s="latex"){const c=[];for(const u of e)if(u.type==="text"){const k=u.data;let j=!0,Y=0,ce;ce=k.indexOf(t),ce!==-1&&(Y=ce,Y>0&&c.push({type:"text",data:k.slice(0,Y)}),j=!1);let Pe=!1;for(;!Pe;){if(j){if(ce=k.indexOf(t,Y),ce===-1){Pe=!0;break}Y!==ce&&c.push({type:"text",data:k.slice(Y,ce)}),Y=ce}else{if(ce=fg(r,k,Y+t.length),ce===-1){Pe=!0;break}let rt=k.slice(Y+t.length,ce);s==="ascii-math"&&([,rt]=L0(rt,{format:"ascii-math"})),c.push({type:"math",data:rt,rawData:k.slice(Y,ce+r.length),mathstyle:i}),Y=ce+r.length}j=!j}Y<k.length&&c.push({type:"text",data:k.slice(Y)})}else c.push(u);return c}function cp(e,t,r){let i=[{type:"text",data:e}];return t!=null&&t.inline&&t.inline.forEach(([s,c])=>{i=lp(i,s,c,"textstyle")}),t!=null&&t.display&&t.display.forEach(([s,c])=>{i=lp(i,s,c,"displaystyle")}),r!=null&&r.inline&&r.inline.forEach(([s,c])=>{i=lp(i,s,c,"textstyle","ascii-math")}),r!=null&&r.display&&r.display.forEach(([s,c])=>{i=lp(i,s,c,"displaystyle","ascii-math")}),i}function i1(e,t){const r=document.createElement("span");r.setAttribute("translate","no");try{const i="<math xmlns='http://www.w3.org/1998/Math/MathML'>"+t.renderToMathML(e)+"</math>";r.innerHTML=window.MathfieldElement.createHTML(i)}catch(i){console.error(`MathLive 0.98.5: Could not convert "${e}"' to MathML with ${i}`),r.textContent=e}return r.className="ML__sr-only",r}function a1(e,t,r,i){try{const s=t.renderToMarkup(e,{mathstyle:r,format:"html"}),c=document.createElement("span");return c.dataset.latex=e,c.style.display=r==="displaystyle"?"flex":"inline-flex",c.setAttribute("aria-hidden","true"),c.setAttribute("translate","no"),c.innerHTML=window.MathfieldElement.createHTML(s),c}catch(s){if(console.error("Could not parse'"+e+"' with ",s),i)return document.createTextNode(e)}return null}function p0(e,t,r,i){var s;const c=a1(e,r,t||"textstyle",i),u=(s=r.renderAccessibleContent)!=null?s:"";if(c&&/\b(mathml|speakable-text)\b/i.test(u)){const k=document.createElement("span");if(/\bmathml\b/i.test(u)&&r.renderToMathML&&k.append(i1(e,r)),/\bspeakable-text\b/i.test(u)&&r.renderToSpeakableText){const j=document.createElement("span");j.setAttribute("translate","no");const Y=r.renderToSpeakableText(e);j.innerHTML=window.MathfieldElement.createHTML(Y),j.className="ML__sr-only",k.append(j)}return k.append(c),k}return c}function o1(e,t){var r,i,s;let c=null;if((r=t.TeX)!=null&&r.processEnvironments&&/^\s*\\begin/.test(e)){c=document.createDocumentFragment();const u=p0(e,"",t,!0);u&&c.appendChild(u)}else{if(!e.trim())return null;const u=cp(e,(i=t.TeX)==null?void 0:i.delimiters,(s=t.asciiMath)==null?void 0:s.delimiters);if(u.length===1&&u[0].type==="text")return null;c=document.createDocumentFragment();for(const k of u)if(k.type==="text")c.appendChild(document.createTextNode(k.data));else{const j=p0(k.data,k.mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);j&&c.appendChild(j)}}return c}function Hg(e,t){var r,i,s,c,u,k,j,Y,ce,Pe,rt,gt,Et,Br,In,wr;if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const nn=(r=e.childNodes[0].textContent)!=null?r:"";if((i=t.TeX)!=null&&i.processEnvironments&&/^\s*\\begin/.test(nn)){e.textContent="";const dn=p0(nn,"",t,!0);dn&&e.append(dn);return}const kn=cp(nn,(s=t.TeX)==null?void 0:s.delimiters,(c=t.asciiMath)==null?void 0:c.delimiters);if(kn.length===1&&kn[0].type==="math"){e.textContent="";const dn=p0(kn[0].data,kn[0].mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);dn&&e.append(dn);return}if(kn.length===1&&kn[0].type==="text")return}for(let nn=e.childNodes.length-1;nn>=0;nn--){const kn=e.childNodes[nn];if(kn.nodeType===3){const dn=o1((u=kn.textContent)!=null?u:"",t);dn&&(nn+=dn.childNodes.length-1,kn.replaceWith(dn))}else if(kn.nodeType===1){const dn=kn,Bi=kn.nodeName.toLowerCase();if(Bi==="script"){const qi=kn;let Ui;if((k=t.processScriptTypePattern)!=null&&k.test(qi.type))Ui=(j=qi.textContent)!=null?j:"";else if((Y=t.processMathJSONScriptTypePattern)!=null&&Y.test(qi.type))try{Ui=(Pe=t.serializeToLatex)==null?void 0:Pe.call(t,JSON.parse((ce=qi.textContent)!=null?ce:""))}catch(h){console.error(h)}if(Ui){let h="textstyle";for(const Q of qi.type.split(";")){const[ge,Ke]=Q.toLowerCase().split("=");ge.trim()==="mode"&&(h=Ke.trim()==="display"?"displaystyle":"textstyle")}const B=p0(Ui,h,t,!0);B&&qi.parentNode.replaceChild(B,qi)}}else if(((gt=(rt=t.processClassPattern)==null?void 0:rt.test(dn.className))!=null?gt:!1)||!((Br=(Et=t.skipTags)==null?void 0:Et.includes(Bi))!=null&&Br||(wr=(In=t.ignoreClassPattern)==null?void 0:In.test(dn.className))!=null&&wr))if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const Ui=e.textContent;e.textContent="";const h=p0(Ui!=null?Ui:"","displaystyle",t,!0);h&&e.append(h)}else Hg(dn,t)}}}var s1={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function l1(e,t){var r,i,s,c;try{const u=g(g({},s1),t);u.ignoreClassPattern=new RegExp((r=u.ignoreClass)!=null?r:""),u.processClassPattern=new RegExp((i=u.processClass)!=null?i:""),u.processScriptTypePattern=new RegExp((s=u.processScriptType)!=null?s:""),u.processMathJSONScriptTypePattern=new RegExp((c=u.processMathJSONScriptType)!=null?c:""),fm(),ud("core"),Hg(e,u)}catch(u){u instanceof Error?console.error("renderMathInElement(): "+u.message):console.error("renderMathInElement(): Could not render math for element",e)}}function bh(e,t){const r=Qr.singleton;return r?(r.show(),ut(),r.currentLayer=t,r.render(),r.focus(),!0):!1}function xd(){const e=window.mathVirtualKeyboard;return e.visible?e.hide({animate:!0}):e.show({animate:!0}),!1}o({switchKeyboardLayer:bh,toggleVirtualKeyboard:xd,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function OA(){var e,t;return(t=globalThis[e=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[e]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function y1(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function c1(e){Gu(document.body,e)}function yh(e){if(typeof e=="string"){const t=document.getElementById(e);if(t===null)throw new Error(`The element with ID "${e}" could not be found.`);return t}return typeof e=="string"?null:e}function Gu(e,t){var r,i,s,c;const u=yh(e);if(!u)return;const k=t!=null?t:{};(r=k.renderToMarkup)!=null||(k.renderToMarkup=Ul),(i=k.renderToMathML)!=null||(k.renderToMathML=hh),(s=k.renderToSpeakableText)!=null||(k.renderToSpeakableText=s0),(c=k.serializeToLatex)!=null||(k.serializeToLatex=yu),l1(u,k)}var w1={mathlive:"0.98.5"}}}]);
}());