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((pe,Ae)=>{var P=V=>{try{te(x.next(V))}catch(S){Ae(S)}},Ne=V=>{try{te(x.throw(V))}catch(S){Ae(S)}},te=V=>V.done?pe(V.value):Promise.resolve(V.value).then(P,Ne);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 pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},59477:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},40001:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},49198:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},84105:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},18785:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},73331:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},15277:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},52671:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},8657:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},56082:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},33853:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},15075:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},62772:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},43531:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},38819:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},47472:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},S=Ae.forwardRef(V),g=S},87395:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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"},Ne=P,te=x(7657),V=function(v,$){return Ae.createElement(te.Z,(0,pe.Z)({},v,{ref:$,icon:Ne}))},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"}},70414:function(un,Tt,x){"use strict";var pe=x(59301),Ae=Object.defineProperty,P=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,V=(F,v,$)=>v in F?Ae(F,v,{enumerable:!0,configurable:!0,writable:!0,value:$}):F[v]=$,S=(F,v)=>{for(var $ in v||(v={}))Ne.call(v,$)&&V(F,$,v[$]);if(P)for(var $ of P(v))te.call(v,$)&&V(F,$,v[$]);return F};const g=F=>React.createElement("svg",S({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},F),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 O}});var pe=x(3113),Ae=x(59301),P=Object.defineProperty,Ne=Object.defineProperties,te=Object.getOwnPropertyDescriptors,V=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,g=Object.prototype.propertyIsEnumerable,F=(T,L,Y)=>L in T?P(T,L,{enumerable:!0,configurable:!0,writable:!0,value:Y}):T[L]=Y,v=(T,L)=>{for(var Y in L||(L={}))S.call(L,Y)&&F(T,Y,L[Y]);if(V)for(var Y of V(L))g.call(L,Y)&&F(T,Y,L[Y]);return T},$=(T,L)=>Ne(T,te(L)),_=(T,L)=>{var Y={};for(var R in T)S.call(T,R)&&L.indexOf(R)<0&&(Y[R]=T[R]);if(T!=null&&V)for(var R of V(T))L.indexOf(R)<0&&g.call(T,R)&&(Y[R]=T[R]);return Y},M=(T,L,Y)=>new Promise((R,se)=>{var ne=K=>{try{W(Y.next(K))}catch(le){se(le)}},J=K=>{try{W(Y.throw(K))}catch(le){se(le)}},W=K=>K.done?R(K.value):Promise.resolve(K.value).then(ne,J);W((Y=Y.apply(T,L)).next())});const O=T=>{var L=T,{children:Y}=L,R=_(L,["children"]);const[se,ne]=(0,Ae.useState)(!1);return Ae.createElement(pe.ZP,$(v({},R),{loading:se,onClick:J=>M(void 0,null,function*(){try{ne(!0),yield R.onClick(J),ne(!1)}catch(W){console.error(W),ne(!1)}})}),Y)}},27687:function(un,Tt,x){"use strict";var pe=x(59301),Ae=x(96408),P=x(48136),Ne=x(99298),te=x(43418),V=x(59301);const S=(0,pe.forwardRef)(({callback:g,width:F,onChange:v,disabled:$,readOnly:_,type:M="",value:O="",style:T={}},L)=>{const Y=(0,pe.useRef)(),R=(0,pe.useRef)(),[se,ne]=(0,pe.useState)(0),[J,W]=(0,pe.useState)(0),[K,le]=(0,pe.useState)(!1),me=()=>{var ee=document.createElement("div");ee.innerHTML=Y.current.getValue();var fe=ee.innerText;return g&&g(fe),fe};(0,pe.useImperativeHandle)(L,()=>({getData:me}));const Oe=ee=>{ee.preventDefault();const fe=ee.clientX-se,D=ee.clientY-J;document.body.onmousemove=Ye=>{let Le=Ye.clientX-fe,Ce=Ye.clientY-D;const Te=document.getElementsByClassName("markdown-popup-form")[0],be=window.innerWidth-Te.offsetWidth,ke=window.innerHeight-Te.offsetHeight;Le=Math.max(0,Math.min(Le,be)),Ce=Math.max(0,Math.min(Ce,ke)),Be(Ye.clientX,Ye.clientY,fe,D)&&(ne(Le),W(Ce))},document.body.onmouseup=function(){document.body.onmousemove=null}},Be=(ee,fe,D,Ye)=>{const Le=document.body.clientHeight,Ce=document.body.clientWidth;return ee<20&&D>ee||ee>Ce-20&&D<ee||fe<20&&Ye>fe||fe>Le-20&&Ye<fe?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,pe.useEffect)(()=>{K&&setTimeout(()=>{const ee=document.getElementsByClassName("markdown-popup-form")[0],fe=window.innerWidth/2-ee.offsetWidth/2,D=window.innerHeight/2-ee.offsetHeight/2;ne(fe),W(D)},0)},[K]);const Ue=()=>{$||_||le(!0)};return V.createElement("div",{style:T},V.createElement("div",{style:{width:F||"100%",position:"relative"},className:`${Ae.Z.mathFillWrap} ${$||_?"cursorDefault":""}`,onClick:()=>Ue()},V.createElement("math-field",{disabled:$,locale:"zh_cn",class:`${Ae.Z.mathField} ${M}`,readOnly:_,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Y,style:{width:"100%",fontSize:O?18:14},value:O||""})),V.createElement(te.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:se,top:J},title:V.createElement("div",{style:{cursor:"move"},onMouseDown:Oe},"\u8F93\u5165\u516C\u5F0F"),open:K,onOk:()=>{const ee=R.current.getData();Y.current.setValue(ee),v(ee),le(!1)},onCancel:()=>{le(!1)},destroyOnClose:!0,className:"markdown-popup-form"},V.createElement(Ne.Z,{value:O,ref:R,onChange:v,showSaveButton:!1})))});Tt.Z=S},99298:function(un,Tt,x){"use strict";var pe=x(59301),Ae=x(95237),P=x(43604),Ne=x(99313),te=x(3113),V=x(6339),S=x(96408),g=x(48136),F=x(59301);const v=(0,pe.forwardRef)(({callback:$,showSaveButton:_,value:M=""},O)=>{const T=(0,pe.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 "}]}]}],Y=[{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=J=>{T.current.setValue(T.current.getValue()+" "+J.value+" ")},se=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:F.createElement(Ae.Z,{className:S.Z.lists,gutter:[10,10]},L.map((J,W)=>F.createElement(P.Z,{flex:"110px",className:S.Z.item},F.createElement("div",null,F.createElement(V.Z,{value:`$$${J.value}$$`}),J.name),F.createElement("div",{className:S.Z.children},J.children.map((K,le)=>F.createElement("div",{key:le},F.createElement("h1",null,K.name),F.createElement(Ae.Z,{gutter:[10,10]},K.data.map((me,Oe)=>F.createElement(P.Z,{key:Oe,onClick:()=>R(me),className:S.Z.diamond},F.createElement(V.Z,{value:"`$$"+me.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:F.createElement(Ae.Z,{className:S.Z.lists,gutter:[10,10]},Y.map((J,W)=>F.createElement(P.Z,{flex:"110px",className:S.Z.item},F.createElement("div",null,F.createElement(V.Z,{value:"`$$"+J.value+"$$`"}),J.name),F.createElement("div",{className:S.Z.children},J.children.map((K,le)=>F.createElement("div",{key:le},K.name&&F.createElement("h1",null,K.name),F.createElement(Ae.Z,{gutter:[10,10]},K.data.map((me,Oe)=>F.createElement(P.Z,{key:Oe,onClick:()=>R(me),className:S.Z.diamond},F.createElement(V.Z,{value:"`$$"+me.value+"$$`"}))))))))))}],ne=()=>{var J=document.createElement("div");J.innerHTML=T.current.getValue();var W=J.innerText;return $&&$(W),W};return(0,pe.useImperativeHandle)(O,()=>({getData:ne})),F.createElement("div",{className:S.Z.mathWrap},F.createElement(Ne.default,{defaultActiveKey:"1",items:se}),F.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||""),_&&F.createElement("div",{className:S.Z.button},F.createElement(te.ZP,{size:"large",onClick:ne,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Tt.Z=v},83028:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=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),Ne="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=(F,v,$)=>new Promise((_,M)=>{var O=Y=>{try{L($.next(Y))}catch(R){M(R)}},T=Y=>{try{L($.throw(Y))}catch(R){M(R)}},L=Y=>Y.done?_(Y.value):Promise.resolve(Y.value).then(O,T);L(($=$.apply(F,v)).next())}),g=({type:F,resdata:v,onok:$,oktext:_,okloading:M})=>{const[O,T]=(0,pe.useState)(!1),{can_copy_list:L,can_copy_num:Y,challenge_type:R,course_data_list:se,no_copy_list:ne,no_copy_num:J,no_use_list:W,no_use_num:K,repeat_shixun_num:le,student_count:me,total_num:Oe,use_num:Be}=v;let Ue=Y>0||F==="exercise";(0,pe.useEffect)(()=>{(v==null?void 0:v.student_count)>0&&T(!0)},[v]),console.log("---11",M),(0,pe.useEffect)(()=>{M||T(!1)},[M]);const ee=()=>{if(F==="exercise"&&R===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.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(F==="exercise"&&R===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Be),"\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",pe.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(F==="shixun"&&R===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.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(F==="shixun"&&R===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\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",pe.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(F==="subject"&&R===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.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(F==="subject"&&R===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",pe.createElement("span",{className:Ae.orangeColor},me)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",pe.createElement("span",{className:Ae.orangeColor},Be)," \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",pe.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(F==="exercisepush")return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",pe.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(F==="shixunpush"&&R===1)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",pe.createElement("span",{className:Ae.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.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(F==="shixunpush"&&R===2)return pe.createElement(pe.Fragment,null,"\u8BFE\u5802\u5185\u6709",pe.createElement("span",{className:Ae.orangeColor},me),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",pe.createElement("span",{className:Ae.orangeColor},Be),"\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",pe.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"))},fe=()=>{if(F==="exercise"||F==="subject"||F==="exercisepush"||F==="shixunpush")return pe.createElement("div",{style:{marginTop:20}},J>0&&pe.createElement("div",null,pe.createElement("span",{className:Ae.flex},pe.createElement("img",{src:te,style:{width:14}}),pe.createElement("span",{className:Ae.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),pe.createElement("div",{className:Ae.statusbody},F==="exercise"&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",pe.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"),(F==="subject"||F==="exercisepush")&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ue&&pe.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"),F==="shixunpush"&&pe.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Ue&&pe.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"),pe.createElement("div",null,ne==null?void 0:ne.map((D,Ye)=>pe.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.name,"\u300B",Ye+1!==J&&"\u3001"))))),Y>0&&pe.createElement("div",{style:{marginTop:20}},pe.createElement("span",{className:Ae.flex},pe.createElement("img",{src:Ne,style:{width:14}}),pe.createElement("span",{className:Ae.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),pe.createElement("div",{className:Ae.statusbody},F==="exercise"&&pe.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"),(F==="subject"||F==="exercisepush")&&pe.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"),F==="shixunpush"&&pe.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"),pe.createElement("div",null,L==null?void 0:L.map((D,Ye)=>pe.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.name,"\u300B",Ye+1!==Y&&"\u3001"))))));if(F==="shixun")return pe.createElement("div",{style:{marginTop:20}},Y>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 pe.createElement(P.default,{open:O,onCancel:()=>{T(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Ue&&"none"}},zIndex:1003,confirmLoading:M,okText:Ue?_:"\u6211\u77E5\u9053\u4E86",onOk:()=>V(void 0,null,function*(){Ue?yield $([...L,...W]):T(!1)})},pe.createElement("div",{style:{maxHeight:600,overflow:"auto"}},ee(),fe()))}},33276:function(un,Tt,x){"use strict";var pe=x(59301),Ae=x(43418),P=x(1710);const Ne=({dataSource:te,visible:V,onClose:S=()=>{},onSuccess:g=()=>{},text:F,okText:v})=>{var $;return pe.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"&&pe.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",pe.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},($=te==null?void 0:te[0])==null?void 0:$.total_score),"\u5206\uFF0C\u8BF7\u786E\u8BA4",F),V==="multiple"&&pe.createElement(pe.Fragment,null,pe.createElement("div",{className:"c-grey-333 mb10"},"\u4EE5\u4E0B\u8BD5\u5377\u603B\u5206\u5F02\u5E38\uFF0C\u8BF7\u786E\u8BA4",F),pe.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=Ne},48595:function(un,Tt,x){"use strict";x.d(Tt,{B:function(){return F},F:function(){return g}});var pe=x(44164),Ae=x.n(pe),P=x(86129),Ne=x.n(P),te=(v,$,_)=>new Promise((M,O)=>{var T=R=>{try{Y(_.next(R))}catch(se){O(se)}},L=R=>{try{Y(_.throw(R))}catch(se){O(se)}},Y=R=>R.done?M(R.value):Promise.resolve(R.value).then(T,L);Y((_=_.apply(v,$)).next())});const V=()=>{document.body.scrollIntoView()},S=()=>{document.querySelectorAll("canvas").forEach(v=>{(!v.clientWidth||!v.clientHeight)&&v.remove()})},g=(v,$)=>te(void 0,null,function*(){V(),S();const _={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(_).from(v[T]).toContainer().toCanvas().toPdf().get("pdf").then(L=>te(void 0,null,function*(){T<v.length-1&&(yield L.addPage())}));const O=new(Ne());O.file(`${$}.pdf`,M.output("blob"),{base64:!1}),O.generateAsync({type:"blob"}).then(function(T){const L=document.createElement("a");L.href=window.URL.createObjectURL(T),L.download=`${$}.zip`,document.body.appendChild(L);const Y=new MouseEvent("click");L.dispatchEvent(Y),document.body.removeChild(L)})}),F=(v,$)=>te(void 0,null,function*(){V(),S();const _={margin:[0,0],html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};let M=Ae()();for(let O=0;O<v.length;O++)yield M.set(_).from(v[O]).toContainer().toCanvas().toPdf().get("pdf").then(T=>te(void 0,null,function*(){O<v.length-1&&(yield T.addPage())}));M.save(`${$}.pdf`)})},79778:function(un,Tt,x){"use strict";x.r(Tt),x.d(Tt,{default:function(){return ze}});var pe=x(59301),Ae=x(65582),P=x(92832),Ne=x(8591),te=x(1710),V=x(6848),S=x(95237),g=x(43604),F=x(5112),v=x(28103),$=x(71418),_=x(66104),M=x(3113),O=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"},Y=x(74609),R=x(48595),se=x(29297),ne=x(2337),J=x(84454),W=x(65862),K=x(87513),le=x(6339),me=x(24334),Oe=x(40743),Be=x(27687),Ue=x(96935),ee=x(38147),fe=x(59301),D=Object.defineProperty,Ye=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Te=(qe,Et,Lt)=>Et in qe?D(qe,Et,{enumerable:!0,configurable:!0,writable:!0,value:Lt}):qe[Et]=Lt,be=(qe,Et)=>{for(var Lt in Et||(Et={}))Le.call(Et,Lt)&&Te(qe,Lt,Et[Lt]);if(Ye)for(var Lt of Ye(Et))Ce.call(Et,Lt)&&Te(qe,Lt,Et[Lt]);return qe},ke=(qe,Et,Lt)=>new Promise((Ot,sr)=>{var er=G=>{try{lr(Lt.next(G))}catch(dt){sr(dt)}},yr=G=>{try{lr(Lt.throw(G))}catch(dt){sr(dt)}},lr=G=>G.done?Ot(G.value):Promise.resolve(G.value).then(er,yr);lr((Lt=Lt.apply(qe,Et)).next())});const{TextArea:he}=P.default,Ee={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898"},Xe=["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"],et=({newExercisePaper:qe,isExportBlank:Et=!1,paperlibrary:Lt,user:Ot,globalSetting:sr,loading:er,dispatch:yr})=>{var lr,G,dt,I,m,u,C,q,Se,H,ie,Qe,we;const ye=(0,Ae.useLocation)(),je=(0,Ae.useParams)(),[xt]=(0,Ae.useSearchParams)(),[de,st]=(0,pe.useState)(),tt=(0,pe.useRef)(),[Ie,De]=(0,pe.useState)(),[lt,Ut]=(0,pe.useState)(),[kt,rr]=(0,pe.useState)([]),[Fr,kr]=(0,pe.useState)(!1),[Dr,Nr]=(0,pe.useState)(""),[xr,ur]=(0,pe.useState)(!1),[Kr,pn]=(0,pe.useState)(!1),kn=xt.get("isIntelligentAssistant");(0,pe.useEffect)(()=>(yr({type:"globalSetting/footerToggle",payload:!1}),()=>{yr({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,pe.useEffect)(()=>{tt.current=je==null?void 0:je.id,st(xt.get("defaultActiveKey")||"0"),hr(),Dn(),mn()},[je==null?void 0:je.id]),(0,pe.useEffect)(()=>{var ge;if((ge=qe.exerciseExportHeadData)!=null&&ge.title){const Me=qe.exerciseExportHeadData;De(be({},Me||{}));const{table:Fe}=Me||{};let Ge,Pt;(Fe!=null&&Fe.total_singles_scores||Fe!=null&&Fe.total_doubles_scores||Fe!=null&&Fe.total_nulls_scores||Fe!=null&&Fe.total_judges_scores||Fe!=null&&Fe.total_pros_scores||Fe!=null&&Fe.total_shixuns_scores||Fe!=null&&Fe.total_mains_scores||Fe!=null&&Fe.total_combination_scores||Fe!=null&&Fe.total_bpros_scores)&&(Ge=Number(Fe==null?void 0:Fe.total_singles_scores)+Number(Fe==null?void 0:Fe.total_doubles_scores)+Number(Fe==null?void 0:Fe.total_nulls_scores)+Number(Fe==null?void 0:Fe.total_judges_scores)+Number(Fe==null?void 0:Fe.total_pros_scores)+Number(Fe==null?void 0:Fe.total_shixuns_scores)+Number(Fe==null?void 0:Fe.total_mains_scores)+Number(Fe==null?void 0:Fe.total_combination_scores)+Number(Fe==null?void 0:Fe.total_bpros_scores)),(Fe!=null&&Fe.singles_scores||Fe!=null&&Fe.doubles_scores||Fe!=null&&Fe.nulls_scores||Fe!=null&&Fe.judges_scores||Fe!=null&&Fe.pros_scores||Fe!=null&&Fe.bpros_scores||Fe!=null&&Fe.shixuns_scores||Fe!=null&&Fe.mains_scores||Fe!=null&&Fe.combination_scores)&&(Pt=Number(Fe==null?void 0:Fe.singles_scores)+Number(Fe==null?void 0:Fe.doubles_scores)+Number(Fe==null?void 0:Fe.nulls_scores)+Number(Fe==null?void 0:Fe.judges_scores)+Number(Fe==null?void 0:Fe.pros_scores)+Number(Fe==null?void 0:Fe.bpros_scores)+Number(Fe==null?void 0:Fe.shixuns_scores)+Number(Fe==null?void 0:Fe.mains_scores)+Number(Fe==null?void 0:Fe.combination_scores));const Dt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Fe==null?void 0:Fe.total_singles_scores,doubles_score:Fe==null?void 0:Fe.total_doubles_scores,nulls_score:Fe==null?void 0:Fe.total_nulls_scores,judges_score:Fe==null?void 0:Fe.total_judges_scores,pros_score:Fe==null?void 0:Fe.total_pros_scores,bpros_score:Fe==null?void 0:Fe.total_bpros_scores,shixuns_score:Fe==null?void 0:Fe.total_shixuns_scores,mains_score:Fe==null?void 0:Fe.total_mains_scores,combinations_score:Fe==null?void 0:Fe.total_combination_scores,total_score:Ge},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Fe==null?void 0:Fe.singles_scores,doubles_score:Fe==null?void 0:Fe.doubles_scores,nulls_score:Fe==null?void 0:Fe.nulls_scores,judges_score:Fe==null?void 0:Fe.judges_scores,pros_score:Fe==null?void 0:Fe.pros_scores,bpros_score:Fe==null?void 0:Fe.bpros_scores,shixuns_score:Fe==null?void 0:Fe.shixuns_scores,mains_score:Fe==null?void 0:Fe.mains_scores,combinations_score:Fe==null?void 0:Fe.combination_scores,total_score:Pt},{key:"3",name:"\u8BC4\u5377\u4EBA"}],Er=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Fe==null?void 0:Fe.total_singles_scores,doubles_score:Fe==null?void 0:Fe.total_doubles_scores,nulls_score:Fe==null?void 0:Fe.total_nulls_scores,judges_score:Fe==null?void 0:Fe.total_judges_scores,pros_score:Fe==null?void 0:Fe.total_pros_scores,bpros_score:Fe==null?void 0:Fe.total_bpros_scores,shixuns_score:Fe==null?void 0:Fe.total_shixuns_scores,mains_score:Fe==null?void 0:Fe.total_mains_scores,combinations_score:Fe==null?void 0:Fe.combination_scores,total_score:Ge},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Ut([...Et?Er:Dt])}},[qe.exerciseExportHeadData]);const mn=()=>ke(void 0,null,function*(){var ge;const Me=yield(0,se.cV)({id:je.id});Me.status==0&&rr(Me.data),yield Dn(),xt.get("exportPDF")&&((ge=Lt.paperData)!=null&&ge.questionList)&&(Ne.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,R.F)(di.current.children,"\u5BFC\u51FA\u8BD5\u5377"))}),Dn=()=>ke(void 0,null,function*(){const ge=yield(0,se.Dq)(je.id);De(ge||{});const{table:Me}=ge||{};let Fe,Ge;(Me!=null&&Me.total_singles_scores||Me!=null&&Me.total_doubles_scores||Me!=null&&Me.total_nulls_scores||Me!=null&&Me.total_judges_scores||Me!=null&&Me.total_pros_scores||Me!=null&&Me.total_shixuns_scores||Me!=null&&Me.total_mains_scores||Me!=null&&Me.total_combination_scores||Me!=null&&Me.total_bpros_scores)&&(Fe=Number(Me==null?void 0:Me.total_singles_scores)+Number(Me==null?void 0:Me.total_doubles_scores)+Number(Me==null?void 0:Me.total_nulls_scores)+Number(Me==null?void 0:Me.total_judges_scores)+Number(Me==null?void 0:Me.total_pros_scores)+Number(Me==null?void 0:Me.total_shixuns_scores)+Number(Me==null?void 0:Me.total_mains_scores)+Number(Me==null?void 0:Me.total_combination_scores)+Number(Me==null?void 0:Me.total_bpros_scores)),(Me!=null&&Me.singles_scores||Me!=null&&Me.doubles_scores||Me!=null&&Me.nulls_scores||Me!=null&&Me.judges_scores||Me!=null&&Me.pros_scores||Me!=null&&Me.bpros_scores||Me!=null&&Me.shixuns_scores||Me!=null&&Me.mains_scores||Me!=null&&Me.combinations_score)&&(Ge=Number(Me==null?void 0:Me.singles_scores)+Number(Me==null?void 0:Me.doubles_scores)+Number(Me==null?void 0:Me.nulls_scores)+Number(Me==null?void 0:Me.judges_scores)+Number(Me==null?void 0:Me.pros_scores)+Number(Me==null?void 0:Me.bpros_scores)+Number(Me==null?void 0:Me.shixuns_scores)+Number(Me==null?void 0:Me.mains_scores)+Number(Me==null?void 0:Me.combinations_score));const Pt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Me==null?void 0:Me.total_singles_scores,doubles_score:Me==null?void 0:Me.total_doubles_scores,nulls_score:Me==null?void 0:Me.total_nulls_scores,judges_score:Me==null?void 0:Me.total_judges_scores,pros_score:Me==null?void 0:Me.total_pros_scores,bpros_score:Me==null?void 0:Me.total_bpros_scores,shixuns_score:Me==null?void 0:Me.total_shixuns_scores,combinations_score:Me==null?void 0:Me.total_combination_scores,mains_score:Me==null?void 0:Me.total_mains_scores,total_score:Fe},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Me==null?void 0:Me.singles_scores,doubles_score:Me==null?void 0:Me.doubles_scores,nulls_score:Me==null?void 0:Me.nulls_scores,judges_score:Me==null?void 0:Me.judges_scores,pros_score:Me==null?void 0:Me.pros_scores,bpros_score:Me==null?void 0:Me.bpros_scores,shixuns_score:Me==null?void 0:Me.shixuns_scores,mains_score:Me==null?void 0:Me.mains_scores,combinations_score:Me==null?void 0:Me.combination_scores,total_score:Ge},{key:"3",name:"\u8BC4\u5377\u4EBA"}];return Ut(Et?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:Pt),ge}),Ki=[{width:"9%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:ge=>fe.createElement("a",null,ge)},{width:"9%",title:((lr=kt.find(ge=>ge.value==ne.fw[0].nameType))==null?void 0:lr.name)||ne.fw[0].name,align:"center",dataIndex:"singles_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((G=kt.find(ge=>ge.value==ne.fw[1].nameType))==null?void 0:G.name)||ne.fw[1].name,align:"center",dataIndex:"doubles_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((dt=kt.find(ge=>ge.value==ne.fw[3].nameType))==null?void 0:dt.name)||ne.fw[3].name,align:"center",dataIndex:"nulls_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((I=kt.find(ge=>ge.value==ne.fw[2].nameType))==null?void 0:I.name)||ne.fw[2].name,align:"center",dataIndex:"judges_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((m=kt.find(ge=>ge.value==ne.fw[6].nameType))==null?void 0:m.name)||ne.fw[6].name,align:"center",dataIndex:"pros_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((u=kt.find(ge=>ge.value==ne.fw[5].nameType))==null?void 0:u.name)||ne.fw[5].name,align:"center",dataIndex:"shixuns_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((C=kt.find(ge=>ge.value==ne.fw[4].nameType))==null?void 0:C.name)||ne.fw[4].name,align:"center",dataIndex:"mains_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:((q=kt.find(ge=>ge.value==ne.fw[7].nameType))==null?void 0:q.name)||ne.fw[7].name,align:"center",dataIndex:"combinations_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"10%",title:((Se=kt.find(ge=>ge.value==ne.fw[8].nameType))==null?void 0:Se.name)||ne.fw[8].name,align:"center",dataIndex:"bpros_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge)},{width:"9%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:ge=>fe.createElement("a",null,ge==="0.0"?0:ge?parseFloat(ge).toFixed(1):"")}],hr=ge=>{yr({type:"paperlibrary/getPaperData",payload:be({id:tt.current},ge)})},Gn=(ge,Me)=>ke(void 0,null,function*(){if(!ge.destination||!ge.source)return;const Fe=Me.questions[ge.source.index].id,Ge=ge.destination.index+1;(yield yr({type:"paperlibrary/adjustPosition",payload:{id:tt.current,itemId:Fe,position:Ge}})).status!==-1&&hr()}),Hi=()=>{var ge,Me,Fe,Ge;yr({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:tt.current,data:{is_random:!1},dataSource:[{name:(Me=(ge=Lt.paperData)==null?void 0:ge.exam)==null?void 0:Me.name,total_score:(Ge=(Fe=Lt.paperData)==null?void 0:Fe.exam)==null?void 0:Ge.all_score}],type:"single"}}})},di=(0,pe.useRef)(),[$i,Ri]=(0,pe.useState)(!0),Zi=()=>ke(void 0,null,function*(){Ri(!1),Nr(""),kr(!0)}),za=()=>ke(void 0,null,function*(){Ri(!0),Nr(""),kr(!0)}),Fi=()=>ke(void 0,null,function*(){var ge;ur(!0);const Me=yield(0,K.Mb)({categoryId:tt.current});ur(!1),Me!=null&&Me.exercise_id&&(0,W.xg)(`/classrooms/coursesId/exercise/${Me.exercise_id}/${(ge=Ot.userInfo)==null?void 0:ge.login}/initate_answer`)}),qn=(ge,Me,Fe)=>{var Ge,Pt,Dt,Er,nr,Or,Hr,an,jr,Rr,en,wn,on,Nn,Qn,hi,On,Xn,Vt,Xt,Yt;return fe.createElement(fe.Fragment,null,!Fe&&fe.createElement("div",{style:{display:"flex"},className:L.programTitle},fe.createElement("span",{style:{flexShrink:0},className:"font18"},Me+1,"."),fe.createElement(le.Z,{style:{maxWidth:1100},value:ge.name||(ge==null?void 0:ge.shixun_name)}),fe.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(ge==null?void 0:ge.question_type)===7?`\u5171${ge==null?void 0:ge.sub_count}\u5C0F\u9898`:""," ",ge.score,"\u5206\uFF09")),(ge==null?void 0:ge.question_type)===8&&fe.createElement(le.Z,{showProgramFill:!0,disabledFill:!0,value:me.Base64.decode(((Ge=ge==null?void 0:ge.program_attr)==null?void 0:Ge.code)||"")}),(ge==null?void 0:ge.question_type)===5&&fe.createElement("div",null,(Pt=ge==null?void 0:ge.examination_bank_shixun_challenges)==null?void 0:Pt.map((tr,jt)=>fe.createElement("div",null,fe.createElement("div",{key:jt,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,marginBottom:10}},fe.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",jt+1,"\u5173 ",fe.createElement("span",{className:"ml10"},tr.challenge_name))))),(ge==null?void 0:ge.question_type)===6&&fe.createElement("div",null,fe.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(Er=(Dt=ge==null?void 0:ge.program_attr)==null?void 0:Dt.languages)==null?void 0:Er.join("/")),((Or=(nr=Lt==null?void 0:Lt.paperData)==null?void 0:nr.exam)==null?void 0:Or.show_hack_sets)&&fe.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},fe.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},fe.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),fe.createElement(te.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(tr,jt,or)=>or+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(tr,jt,or)=>fe.createElement(V.Z,{title:fe.createElement("pre",null,tr)},fe.createElement("div",{className:L.divname},tr))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(tr,jt,or)=>fe.createElement(V.Z,{title:fe.createElement("pre",null,tr)}," ",fe.createElement("div",{className:L.divname},tr))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(Hr=ge==null?void 0:ge.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)&&fe.createElement("div",null,fe.createElement(le.Z,{className:L.content,value:((Rr=ge==null?void 0:ge.program_attr)==null?void 0:Rr.description)||"- -"}))),ge.question_type===Oe.c.Single&&fe.createElement(fe.Fragment,null,(en=ge.choices)==null?void 0:en.map(function(tr,jt){return fe.createElement(S.Z,{key:jt},fe.createElement(g.Z,{flex:"1"},fe.createElement("div",{style:{display:"flex"}},fe.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},Xe[jt]),fe.createElement(le.Z,{value:tr.choice_text||""}))))})),ge.question_type===Oe.c.Multiple&&fe.createElement(fe.Fragment,null,(wn=ge.choices)==null?void 0:wn.map(function(tr,jt){return fe.createElement(S.Z,{key:jt},fe.createElement(g.Z,{flex:"1"},fe.createElement("div",{style:{display:"flex"}},fe.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},Xe[jt]),fe.createElement(le.Z,{value:tr.choice_text||""}))))})),ge.question_type===Oe.c.Judge&&fe.createElement("div",{className:L.flexRow},(on=ge.choices)==null?void 0:on.map(function(tr,jt){return fe.createElement(S.Z,{key:jt},fe.createElement(g.Z,{flex:"25px"},fe.createElement("div",{style:{width:25,overflow:"hidden"}},fe.createElement(F.ZP,{disabled:!0,style:{width:25,marginLeft:jt===1&&10}}))),fe.createElement(g.Z,{flex:"1",style:{marginLeft:jt===1&&10}},tr.choice_text))})),ge.question_type===Oe.c.Combine&&fe.createElement(fe.Fragment,null,(Nn=ge.sub_questions)==null?void 0:Nn.map(function(tr,jt){return fe.createElement("div",{style:{marginLeft:10}},fe.createElement("div",{style:{display:"flex"},className:L.programTitle},fe.createElement("span",{style:{flexShrink:0},className:"font18"},Me+1,".",jt+1),fe.createElement(le.Z,{value:tr.name||(tr==null?void 0:tr.shixun_name)}),fe.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",tr.score,"\u5206\uFF09")),qn(tr,jt,!0))})),$i&&fe.createElement("div",{style:{marginTop:10}},(ge==null?void 0:ge.question_type)<3&&(ge==null?void 0:ge.standard_answer_show)&&fe.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",ge==null?void 0:ge.standard_answer_show),!!((Qn=ge==null?void 0:ge.standard_answer)!=null&&Qn.length)&&$i&&(ge==null?void 0:ge.question_type)===3&&fe.createElement("div",null,(hi=ge==null?void 0:ge.standard_answer)==null?void 0:hi.map((tr,jt)=>fe.createElement("div",null,fe.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",jt+1,"\uFF09:"),fe.createElement("div",null,tr.answer_text.map(function(or,cr){return fe.createElement(g.Z,{span:24,key:cr},(tr==null?void 0:tr.model)===1?fe.createElement(he,{autoSize:!0,disabled:!0,value:or}):fe.createElement(Be.Z,{value:or,disabled:!0}))}))))),!!((On=ge==null?void 0:ge.standard_answer)!=null&&On.length)&&$i&&(ge==null?void 0:ge.question_type)===8&&fe.createElement("div",null,(Xn=ge==null?void 0:ge.standard_answer)==null?void 0:Xn.map((tr,jt)=>fe.createElement("div",null,fe.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",jt+1,"\uFF09:"),fe.createElement("div",null,fe.createElement(he,{autoSize:!0,disabled:!0,value:(tr==null?void 0:tr.answer_text)||""}))))),!!((Vt=ge==null?void 0:ge.answer_texts)!=null&&Vt.length)&&(ge==null?void 0:ge.question_type)===4&&fe.createElement("div",null,fe.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),fe.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},fe.createElement(le.Z,{value:(Xt=ge==null?void 0:ge.answer_texts)==null?void 0:Xt[0]}))),(ge==null?void 0:ge.question_type)===6&&fe.createElement("div",null,fe.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(ge!=null&&ge.answer_text)&&"\u6682\u65E0"),(ge==null?void 0:ge.answer_text)&&fe.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},fe.createElement(le.Z,{value:ge==null?void 0:ge.answer_text}))),(ge==null?void 0:ge.question_type)<=4&&((ge==null?void 0:ge.standard_answer_show)||((Yt=ge==null?void 0:ge.standard_answer)==null?void 0:Yt.length)>0)&&fe.createElement(S.Z,{style:{marginTop:14}},fe.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),fe.createElement(le.Z,{className:L.renderHtml,value:(ge==null?void 0:ge.analysis)||"\u6682\u65E0\u89E3\u6790"}))),!Fe&&fe.createElement(v.Z,null))},ai=(0,pe.useCallback)(()=>{var ge,Me;return fe.createElement("div",null,fe.createElement("div",{className:L.titleForExport},(Me=(ge=Lt.paperData)==null?void 0:ge.exam)==null?void 0:Me.name),fe.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)&&fe.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},fe.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),Ie==null?void 0:Ie.exercise_description),fe.createElement(te.default,{style:{margin:"20px auto"},className:L.table,columns:Ki,dataSource:[...lt||[]],bordered:!0,pagination:!1}))},[Lt.paperData]),yi=()=>ke(void 0,null,function*(){const ge=yield(0,ee.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:je==null?void 0:je.id}});(ge==null?void 0:ge.status)===0&&Ae.history.replace("/paperlibrary")});return fe.createElement("section",{className:L.bg},fe.createElement($.Z,{spinning:er["paperlibrary/getPaperData"]},fe.createElement(S.Z,{className:"pt20",justify:"space-between"},fe.createElement(_.Z,{separator:">"},fe.createElement(_.Z.Item,{href:"/paperlibrary"},"\u8BD5\u5377\u5E93"),fe.createElement(_.Z.Item,{href:`/paperlibrary?defaultActiveKey=${de}`},de==="1"?"\u516C\u5F00":de==="2"?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684"),fe.createElement(_.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),fe.createElement("div",{className:L.btnWrapper},!kn&&fe.createElement(M.ZP,{onClick:Hi,className:L.btn,icon:fe.createElement("i",{className:"iconfont icon-fasongtongzhi font14"})},"\u53D1\u9001\u81F3\u8BFE\u5802"),fe.createElement(M.ZP,{onClick:()=>Ae.history.push(`/paperlibrary/add/${tt.current}?type=2${kn?"&isIntelligentAssistant=true":""}`),className:L.btn,icon:fe.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),fe.createElement(M.ZP,{loading:xr,onClick:Fi,className:L.btn,icon:fe.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),!kn&&fe.createElement(O.Z,{menu:{items:[{key:"1",label:fe.createElement("div",{onClick:za},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848")},{key:"2",label:fe.createElement("div",{onClick:Zi},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377")}]}},fe.createElement(M.ZP,{type:"primary",icon:fe.createElement("i",{className:"iconfont icon-daochu1 font14"})},"\u5BFC\u51FA")),kn&&fe.createElement(Ue.Z,{onClick:yi,type:"primary",icon:fe.createElement("i",{className:"iconfont icon-baocun1 font14"})},"\u4FDD\u5B58\u8BD5\u5377"))),fe.createElement("div",{className:`${L.wrap} pt20 pb20`,ref:di,id:"paperDomRef"},!((ie=(H=Lt.paperData)==null?void 0:H.questionList)!=null&&ie.length)&&ai(),(we=(Qe=Lt.paperData)==null?void 0:Qe.questionList)==null?void 0:we.map((ge,Me)=>{var Fe;return fe.createElement(fe.Fragment,null,(Fe=ge.questions)==null?void 0:Fe.map((Ge,Pt)=>{const Dt=Math.floor(Pt/10);return Pt%10===0?fe.createElement("div",{className:"abc",key:`group-${Dt}`},Me===0&&Pt===0&&ai(),Pt===0&&fe.createElement("div",null,fe.createElement("span",{className:"font16 c-light-primary"},ge.number,"\u3001",ge.name),fe.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",ge.questions_count,"\u9898\uFF0C",(ge==null?void 0:ge.question_type)===7?`\u5305\u542B${ge==null?void 0:ge.sub_count}\u5C0F\u9898\uFF1B`:"","\u5171",ge.questions_score,"\u5206\uFF09")),ge.questions.slice(Pt,Pt+10).map((Er,nr)=>fe.createElement("div",{key:Er.id},qn(Er,Pt+nr)))):null}))}))),fe.createElement(Y.Z,null),fe.createElement(T.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:Fr,onCancel:()=>{if(Kr){Ne.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}kr(!1)},okButtonProps:{loading:Kr},onOk:()=>ke(void 0,null,function*(){var ge,Me;if(pn(!0),Dr==""){pn(!1),Ne.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else Dr=="pdf"?yield(0,R.F)(di.current.children,(Me=(ge=Lt.paperData)==null?void 0:ge.exam)==null?void 0:Me.name):Dr=="word"&&(0,J.ON)({id:tt.current,middle_export:1,export_type:$i?1:0});pn(!1),kr(!1)})},fe.createElement("div",{className:L.export_type_modal},fe.createElement("div",{className:L.export_type_modal_con},fe.createElement("div",{className:L.type_item},fe.createElement("div",{className:`${L.img_warp} ${Dr=="pdf"?L.img_warp_active:""}`,onClick:()=>Nr("pdf")},fe.createElement("img",{src:x(45614),width:70,height:70})),"pdf\u683C\u5F0F"),fe.createElement("div",{className:L.type_item},fe.createElement("div",{className:`${L.img_warp} ${Dr=="word"?L.img_warp_active:""}`,onClick:()=>Nr("word")},fe.createElement("img",{src:x(38347),width:70,height:70})),"word\u683C\u5F0F")))))};var ze=(0,Ae.connect)(({paperlibrary:qe,user:Et,loading:Lt,globalSetting:Ot,newExercisePaper:sr})=>({paperlibrary:qe,user:Et,globalSetting:Ot,loading:Lt.effects,newExercisePaper:sr}))(et)},74609:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ee}});var pe=x(59301),Ae=x(65582),P=x(92832),Ne=x(8591),te=x(43418),V=x(5871),S=x(61621),g=x(1710),F=x(3113),v=x(70414),$=Object.defineProperty,_=Object.getOwnPropertySymbols,M=Object.prototype.hasOwnProperty,O=Object.prototype.propertyIsEnumerable,T=(Xe,et,ze)=>et in Xe?$(Xe,et,{enumerable:!0,configurable:!0,writable:!0,value:ze}):Xe[et]=ze,L=(Xe,et)=>{for(var ze in et||(et={}))M.call(et,ze)&&T(Xe,ze,et[ze]);if(_)for(var ze of _(et))O.call(et,ze)&&T(Xe,ze,et[ze]);return Xe};const Y=Xe=>React.createElement("svg",L({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},Xe),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"}));var R="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",se={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"},ne=x(65862),J={sendToClass:"sendToClass___le_BX"},W="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==",K="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",me=({createState:Xe,refreshLoading:et,onRefresh:ze=()=>{},onCreate:qe=()=>{}})=>pe.createElement("div",{className:J.sendToClass},Xe?pe.createElement(pe.Fragment,null,pe.createElement("img",{src:W,alt:"\u7A7A"}),pe.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"),pe.createElement(F.ZP,{onClick:qe,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):pe.createElement(pe.Fragment,null,pe.createElement("img",{src:K,alt:"\u7A7A"}),pe.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),pe.createElement(F.ZP,{loading:et,onClick:ze,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0"))),Oe=x(60979),Be=x(96935),Ue=x(89392),ee=x(83028),fe=x(33276),D=x(59301),Ye=Object.getOwnPropertySymbols,Le=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Te=(Xe,et)=>{var ze={};for(var qe in Xe)Le.call(Xe,qe)&&et.indexOf(qe)<0&&(ze[qe]=Xe[qe]);if(Xe!=null&&Ye)for(var qe of Ye(Xe))et.indexOf(qe)<0&&Ce.call(Xe,qe)&&(ze[qe]=Xe[qe]);return ze},be=(Xe,et,ze)=>new Promise((qe,Et)=>{var Lt=er=>{try{sr(ze.next(er))}catch(yr){Et(yr)}},Ot=er=>{try{sr(ze.throw(er))}catch(yr){Et(yr)}},sr=er=>er.done?qe(er.value):Promise.resolve(er.value).then(Lt,Ot);sr((ze=ze.apply(Xe,et)).next())});const ke=P.default.Search,he=Xe=>{var et=Xe,{paperlibrary:ze,globalSetting:qe,loading:Et,dispatch:Lt}=et,Ot=Te(et,["paperlibrary","globalSetting","loading","dispatch"]),sr,er,yr,lr;const[G,dt]=(0,pe.useState)(""),[I,m]=(0,pe.useState)([]),[u,C]=(0,pe.useState)([]),[q,Se]=(0,pe.useState)(!1),[H,ie]=(0,pe.useState)(!0),[Qe,we]=(0,pe.useState)(!0),[ye,je]=(0,pe.useState)(!0),[xt,de]=(0,pe.useState)(!1),[st,tt]=(0,pe.useState)(!1),Ie=(yr=(er=(sr=ze.actionTabs)==null?void 0:sr.params)==null?void 0:er.data)==null?void 0:yr.is_random,[De,lt]=(0,pe.useState)(!1),[Ut,kt]=(0,pe.useState)({}),[rr,Fr]=(0,pe.useState)(!1),[kr,Dr]=(0,pe.useState)(!1),[Nr,xr]=(0,pe.useState)([]);(0,pe.useEffect)(()=>{var hr;if(ze.actionTabs.key==="Paperlibrary-SendToClass"){const{dataSource:Gn=[],type:Hi}=((hr=ze.actionTabs)==null?void 0:hr.params)||{},di=Gn.filter($i=>![100,120,150].includes($i.total_score));di.length?(Dr(Hi),xr(di)):Fr(!0)}},[(lr=ze==null?void 0:ze.actionTabs)==null?void 0:lr.key]),(0,pe.useEffect)(()=>{Kr()},[]);const ur=()=>{C([]),dt(""),Kr(!0),Fr(!1),Dr(!1),Lt({type:"paperlibrary/setActionTabs",payload:{}})},Kr=hr=>be(void 0,null,function*(){we(!0);const Gn=yield Lt({type:"paperlibrary/getCourseList",payload:{search:hr?"":G}});Gn&&(m((Gn==null?void 0:Gn.courses)||[]),ie(!0),de(!1)),we(!1),je(!1)}),pn=hr=>{const Gn=parseInt(hr);return(0,Ue.isNaN)(Gn)?"":Gn},kn=()=>be(void 0,null,function*(){var hr,Gn,Hi,di,$i,Ri,Zi;if(!u.length){Ne.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),Se(!0);return}const za=yield Lt({type:"paperlibrary/postExistCourse",payload:{course_id:Ie?u==null?void 0:u[0]:u,examination_bank_ids:((Gn=(hr=ze.actionTabs)==null?void 0:hr.params)==null?void 0:Gn.examination_bank_ids)||((di=(Hi=ze.actionTabs)==null?void 0:Hi.params)==null?void 0:di.id)}}),Fi=()=>be(void 0,null,function*(){var qn,ai,yi,ge,Me,Fe;tt(!0);let Ge=yield(0,Oe.Tr)({id:(ai=(qn=ze.actionTabs)==null?void 0:qn.params)==null?void 0:ai.id,course_id:Ie?u==null?void 0:u[0]:u,type:(ge=(yi=ze.actionTabs)==null?void 0:yi.params)!=null&&ge.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:(Fe=(Me=ze.actionTabs)==null?void 0:Me.params)==null?void 0:Fe.examination_bank_ids});tt(!1),(Ge==null?void 0:Ge.student_count)===0?yield mn([]):kt(Ge),yield new Promise(Pt=>setTimeout(()=>Pt(),1e3))});if(za.status==0&&(($i=za.data)==null?void 0:$i.count)>0){te.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,width:596,content:D.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(Zi=(Ri=za.data)==null?void 0:Ri.list)==null?void 0:Zi.map((qn,ai)=>{var yi;return D.createElement(D.Fragment,null,D.createElement("span",{style:{color:"#FA6400"}},"\u300A",qn==null?void 0:qn.name,"\u300B"),ai!==((yi=za.data)==null?void 0:yi.count)-1&&D.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>be(void 0,null,function*(){yield Fi()})}),yield new Promise(qn=>setTimeout(()=>qn(),1e3));return}yield Fi()}),mn=hr=>be(void 0,null,function*(){var Gn,Hi,di,$i,Ri,Zi;if(!Ie){lt(!0);const ai=yield Lt({type:(Hi=(Gn=ze.actionTabs)==null?void 0:Gn.params)!=null&&Hi.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:Ie?u==null?void 0:u[0]:u,id:($i=(di=ze.actionTabs)==null?void 0:di.params)==null?void 0:$i.id,examination_bank_ids:(Zi=(Ri=ze.actionTabs)==null?void 0:Ri.params)==null?void 0:Zi.examination_bank_ids,shixuns_info:hr.map(yi=>({shixun_id:yi.id,is_copy:yi.is_copy,is_use:yi.is_use,course_id:yi.course_id}))}});lt(!1),ai&&ai.status===0&&(Fr(!1),Lt({type:"paperlibrary/setActionTabs",payload:{}}),C([]),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=`${ai.data[0].first_category_url}`},content:D.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")}),Ne.ZP.success("\u53D1\u9001\u6210\u529F"));return}lt(!0),setTimeout(()=>{lt(!1)},500);const za=I.find(ai=>ai.course_id===(u==null?void 0:u[0]));let Fi=1,qn=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:D.createElement("div",{className:se.modalColumn},D.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},D.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"),D.createElement("div",{style:{paddingLeft:18}},"\u8BFE\u5802\u540D\u79F0: ",za==null?void 0:za.course_name),D.createElement("div",{style:{paddingLeft:9},className:se.modalRow},D.createElement("sup",{className:se.sup},"*"),D.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),D.createElement(V.Z,{parser:pn,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:Fi,onChange:ai=>{Fi=ai;const yi=document.getElementById("model_error");Fi<1||Fi>50?yi.style.display="block":yi.style.display="none"}})),D.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:ur,onOk:()=>be(void 0,null,function*(){var ai,yi;if(Fi<1||Fi>50){const Me=document.getElementById("model_error");return Me.style.display="block",Promise.reject()}qn.update({cancelButtonProps:{disabled:!0}});const ge=yield Lt({type:"paperlibrary/sendToClass",payload:{course_id:u==null?void 0:u[0],id:(yi=(ai=ze.actionTabs)==null?void 0:ai.params)==null?void 0:yi.id,num:Fi,shixuns_info:hr.map(Me=>({shixun_id:Me.id,is_copy:Me.is_copy,is_use:Me.is_use}))}});qn.update({cancelButtonProps:{disabled:!1}}),ge&&ge.status===0&&(te.default.destroyAll(),te.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:D.createElement("div",{className:se.modalColumn},D.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},D.createElement("img",{style:{marginRight:5},src:R}),"\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:()=>{ur()},onOk:()=>{ur(),setTimeout(()=>{var Me,Fe;const Ge=(Fe=(Me=ge==null?void 0:ge.first_category_url)==null?void 0:Me.split("/"))==null?void 0:Fe[2];(0,ne.xg)(`/classrooms/${Ge}/exercise`)},1e3)}}))})})}),Dn=()=>be(void 0,null,function*(){de(!0),yield Kr()}),Ki=[{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 D.createElement("div",null,D.createElement(te.default,{centered:!0,keyboard:!1,closable:!1,open:rr,title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Et["paperlibrary/sendToClass"]||st||!!Et["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:kn,destroyOnClose:!0,onCancel:ur},D.createElement("div",{className:se.wrap},D.createElement("div",{className:"mb10"},D.createElement(ke,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:G,className:se.search,onChange:hr=>{dt(hr.target.value),hr.target.value||Kr(!0)},onSearch:hr=>{dt(hr),Kr(),C([])}})),D.createElement(S.Z,{loading:ye},I.length?D.createElement("div",{className:se.radioWrap},D.createElement(g.default,{bordered:!1,scroll:(I==null?void 0:I.length)<=7?{}:{y:350},loading:Qe,rowKey:"course_id",pagination:!1,dataSource:I,columns:Ki,onRow:hr=>({onClick:Gn=>{if(Ie)C([hr==null?void 0:hr.course_id]);else{if(!Ie&&!u.includes(hr.course_id)&&u.length>0)return;u!=null&&u.includes(hr==null?void 0:hr.course_id)?C(u==null?void 0:u.filter(Hi=>Hi!==(hr==null?void 0:hr.course_id))):C([...u,hr==null?void 0:hr.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:u,onChange:hr=>{C(hr),Se(!1)}}})):!G&&!Qe&&D.createElement(me,{createState:H,refreshLoading:xt,onRefresh:Dn,onCreate:()=>{ie(!1),(0,ne.xg)("/classrooms/new")}})),q&&D.createElement("div",{className:se.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),D.createElement("div",{className:se.bottom,style:{display:"flex",alignItems:"center"}},D.createElement("div",{style:{flex:1}},D.createElement("div",{className:se.title},D.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")),D.createElement("div",null,D.createElement(F.ZP,{onClick:ur,className:se.no,style:{marginRight:20}},"\u53D6\u6D88"),D.createElement(Be.Z,{onClick:kn,className:se.yes},"\u786E\u8BA4"))))),D.createElement(ee.Z,{resdata:Ut,type:"exercise",okloading:De,oktext:(Ut==null?void 0:Ut.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:hr=>{mn(hr)}}),D.createElement(fe.Z,{text:"\u662F\u5426\u7EE7\u7EED\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F",okText:"\u786E\u8BA4\u53D1\u9001",visible:kr,dataSource:Nr,onSuccess:()=>{Dr(!1),Fr(!0)},onClose:ur}))};var Ee=(0,Ae.connect)(({paperlibrary:Xe,loading:et,globalSetting:ze})=>({paperlibrary:Xe,globalSetting:ze,loading:et.effects}))(he)},40743:function(un,Tt,x){"use strict";x.d(Tt,{c:function(){return Ae}});var pe=(P=>(P.FirstPage="firstPage",P.PrevPage="prevPage",P.NextPage="nextPage",P))(pe||{}),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 Ye},BA:function(){return dt},D9:function(){return he},Hp:function(){return K},IM:function(){return Xe},Iy:function(){return le},KM:function(){return G},KU:function(){return Et},MJ:function(){return me},Ne:function(){return Ee},ON:function(){return Ot},Uj:function(){return yr},VY:function(){return qe},YO:function(){return er},YX:function(){return sr},Zn:function(){return T},_g:function(){return ne},_k:function(){return be},c6:function(){return fe},cr:function(){return L},eV:function(){return D},fi:function(){return Y},gh:function(){return Ue},hS:function(){return et},iA:function(){return R},j6:function(){return J},je:function(){return Te},jj:function(){return W},kS:function(){return Lt},o6:function(){return ee},pO:function(){return lr},rQ:function(){return Le},sA:function(){return Be},xm:function(){return ke},xo:function(){return ze},y8:function(){return Ce},yd:function(){return se}});var pe=x(33270),Ae=x(65582),P=x(65862),Ne=x(8591),te=x(74128),V=Object.defineProperty,S=Object.getOwnPropertySymbols,g=Object.prototype.hasOwnProperty,F=Object.prototype.propertyIsEnumerable,v=(I,m,u)=>m in I?V(I,m,{enumerable:!0,configurable:!0,writable:!0,value:u}):I[m]=u,$=(I,m)=>{for(var u in m||(m={}))g.call(m,u)&&v(I,u,m[u]);if(S)for(var u of S(m))F.call(m,u)&&v(I,u,m[u]);return I},_=(I,m,u)=>new Promise((C,q)=>{var Se=Qe=>{try{ie(u.next(Qe))}catch(we){q(we)}},H=Qe=>{try{ie(u.throw(Qe))}catch(we){q(we)}},ie=Qe=>Qe.done?C(Qe.value):Promise.resolve(Qe.value).then(Se,H);ie((u=u.apply(I,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..."}})},O=()=>{(0,Ae.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},T=I=>_(void 0,null,function*(){M(),(yield(0,pe.YR)($({},I))).status===0&&(yield(0,P.QH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/export_couser_info.json`,query:I}))),O()}),L=I=>_(void 0,null,function*(){const m=yield(0,pe.yS)($({},I));if(m.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.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/${I.coursesId}/exportlist/course_member_act_score`))}}),Y=I=>_(void 0,null,function*(){const m=yield(0,pe.W0)($({},I));if(m.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.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/${I.coursesId}/exportlist/course_total_score`))}}),R=I=>_(void 0,null,function*(){const m=yield(0,pe.Nl)($({},I));if(m.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.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/${I.coursesId}/exportlist/course_total_exercise_and_other`))}}),se=I=>_(void 0,null,function*(){const m=yield(0,pe.IU)($({},I));if(m.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.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/${I.coursesId}/exportlist/export_star_user`))}}),ne=I=>_(void 0,null,function*(){const m=yield(0,pe.td)($({},I));if(m.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.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/${I.coursesId}/exportlist/course_total_exercise_and_other`);else if(m.status===-4)return m}}),J=I=>_(void 0,null,function*(){const m=yield(0,pe.QX)($({},I));if(m.status===0)Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.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/${I.coursesId}/exportlist/course_total_homework`))}}),W=(I,m)=>_(void 0,null,function*(){const u=yield(0,pe.o_)($({},I));u.status===0?(Ne.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/${I.coursesId}/exportlist/${m}`)):u.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`))}),K=(I,m)=>_(void 0,null,function*(){const u=yield(0,pe.ZL)($({},I));u.status===0?(Ne.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/${I.coursesId}/exportlist/${m}`)):u.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`))}),le=(I,m)=>_(void 0,null,function*(){const u=yield(0,pe.aP)($({},I));u.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`)):u.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`))}),me=(I,m)=>_(void 0,null,function*(){const u=yield(0,pe.vV)($({},I));u.status===0?(Ne.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/${I.coursesId}/exportlist/${m}`)):u.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`))}),Oe=I=>_(void 0,null,function*(){M(),(yield exportCourseWorkListAppendix($({},I))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${I.categoryId}/works_list.zip`,query:I}))),O()}),Be=I=>_(void 0,null,function*(){M(),yield(0,P.QH)("",te.Z.API_SERVER+`/api/polls/${I.categoryId}/commit_result.xlsx`),O()}),Ue=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/attendances/export_xlsx_data.xlsx`,query:I}))}),ee=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/video_study_statics.xlsx`,query:I}))}),fe=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/export_video_study.xlsx`,query:I}))}),D=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I.coursesId}/export_course_students_info.xlsx`,query:I}))}),Ye=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/school_manages/students.xlsx",query:I}))}),Le=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/item_banks/export.xlsx",query:I}))}),Ce=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:I}))}),Te=I=>_(void 0,null,function*(){const m=yield(0,pe.Uy)($({},I));m.status===0?(Ne.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.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/${I.coursesId}/exportlist/exercise_score,export_exercise_users`))}),be=I=>_(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/${I.id}.xlsx`,query:I}))}),ke=I=>_(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:I}))}),he=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I==null?void 0:I.coursesId}/${I.menuKey}_statistic.xlsx?${I.checkedList.map(m=>`course_group_id[]=${m}`).join("&")}`,query:I}))}),Ee=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/ec_years/${I==null?void 0:I.ec_year_id}/ec_training_objectives.xlsx`,query:I}))}),Xe=I=>_(void 0,null,function*(){yield(0,P.FH)(I==null?void 0:I.name,(0,P.NY)({url:te.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:I}))}),et=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/ec_years/${I==null?void 0:I.ec_year_id}/ec_courses.xlsx`,query:I}))}),ze=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/ec_years/${I==null?void 0:I.ec_year_id}/ec_graduation_requirements.xlsx`,query:I}))}),qe=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:I}))}),Et=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/exercises/${I.categoryId}/rank_list.xlsx`,query:I}))}),Lt=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:I}))}),Ot=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/examination_banks/${I.id}.json`,query:I}))}),sr=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/exercises/${I.categoryId}.json`,query:I}))}),er=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/polls/${I==null?void 0:I.id}/commit_result.json`,query:I}))}),yr=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+"/api/paths/get_task_pass.json",query:I}))}),lr=(I,m)=>_(void 0,null,function*(){yield(0,P.FH)(m||"",(0,P.NY)({url:te.Z.API_SERVER+`/api/exercises/${I==null?void 0:I.exercise_id}/consult_exercise.json`,query:I}))}),G=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/competitions/${I==null?void 0:I.identifier}/competition_commit_records/member_works.xlsx`,query:I}))}),dt=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:te.Z.API_SERVER+`/api/courses/${I==null?void 0:I.coursesId}/group_homeworks/import_group_template.xlsx`,query:I}))})},50371:function(un,Tt){"use strict";function x(){const pe=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(Ne=>{const te=P[Ne];te!==void 0&&(pe[Ne]=te)})}return pe}Tt.Z=x},13845:function(un,Tt,x){"use strict";x.d(Tt,{F:function(){return pe},Z:function(){return Ae}});function pe(P){return P!=null&&P===P.window}function Ae(P,Ne){var te,V;if(typeof window=="undefined")return 0;const S=Ne?"scrollTop":"scrollLeft";let g=0;return pe(P)?g=P[Ne?"pageYOffset":"pageXOffset"]:P instanceof Document?g=P.documentElement[S]:(P instanceof HTMLElement||P)&&(g=P[S]),P&&!pe(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 pe=x(59301);function Ae(){const[,P]=pe.useReducer(Ne=>Ne+1,0);return P}},68031:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ne}});var pe=x(16089);function Ae(te,V,S,g){const F=S-V;return te/=g/2,te<1?F/2*te*te*te+V:F/2*((te-=2)*te*te+2)+V}var P=x(13845);function Ne(te){let V=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:S=()=>window,callback:g,duration:F=450}=V,v=S(),$=(0,P.Z)(v,!0),_=Date.now(),M=()=>{const T=Date.now()-_,L=Ae(T>F?F:T,$,te,F);(0,P.F)(v)?v.scrollTo(window.pageXOffset,L):v instanceof Document||v.constructor.name==="HTMLDocument"?v.documentElement.scrollTop=L:v.scrollTop=L,T<F?(0,pe.Z)(M):typeof g=="function"&&g()};(0,pe.Z)(M)}},19080:function(un,Tt,x){"use strict";x.d(Tt,{F:function(){return te},Z:function(){return Ne}});var pe=x(92310),Ae=x.n(pe);const P=null;function Ne(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 Ye}});var pe=x(92310),Ae=x.n(pe),P=x(11592),Ne=x(26112),te=x(59301),V=x(92343),S=x(36355),g=x(84105),F=x(91857);const v=Le=>{let{children:Ce}=Le;const{getPrefixCls:Te}=te.useContext(S.E_),be=Te("breadcrumb");return te.createElement("li",{className:`${be}-separator`,"aria-hidden":"true"},Ce===""?Ce:Ce||"/")};v.__ANT_BREADCRUMB_SEPARATOR=!0;var $=v,_=function(Le,Ce){var Te={};for(var be in Le)Object.prototype.hasOwnProperty.call(Le,be)&&Ce.indexOf(be)<0&&(Te[be]=Le[be]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,be=Object.getOwnPropertySymbols(Le);ke<be.length;ke++)Ce.indexOf(be[ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,be[ke])&&(Te[be[ke]]=Le[be[ke]]);return Te};function M(Le,Ce){if(Le.title===void 0||Le.title===null)return null;const Te=Object.keys(Ce).join("|");return typeof Le.title=="object"?Le.title:String(Le.title).replace(new RegExp(`:(${Te})`,"g"),(be,ke)=>Ce[ke]||be)}function O(Le,Ce,Te,be){if(Te==null)return null;const{className:ke,onClick:he}=Ce,Ee=_(Ce,["className","onClick"]),Xe=Object.assign(Object.assign({},(0,Ne.Z)(Ee,{data:!0,aria:!0})),{onClick:he});return be!==void 0?te.createElement("a",Object.assign({},Xe,{className:Ae()(`${Le}-link`,ke),href:be}),Te):te.createElement("span",Object.assign({},Xe,{className:Ae()(`${Le}-link`,ke)}),Te)}function T(Le,Ce){return(be,ke,he,Ee,Xe)=>{if(Ce)return Ce(be,ke,he,Ee);const et=M(be,ke);return O(Le,be,et,Xe)}}var L=function(Le,Ce){var Te={};for(var be in Le)Object.prototype.hasOwnProperty.call(Le,be)&&Ce.indexOf(be)<0&&(Te[be]=Le[be]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,be=Object.getOwnPropertySymbols(Le);ke<be.length;ke++)Ce.indexOf(be[ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,be[ke])&&(Te[be[ke]]=Le[be[ke]]);return Te};const Y=Le=>{const{prefixCls:Ce,separator:Te="/",children:be,menu:ke,overlay:he,dropdownProps:Ee,href:Xe}=Le,ze=(qe=>{if(ke||he){const Et=Object.assign({},Ee);if(ke){const Lt=ke||{},{items:Ot}=Lt,sr=L(Lt,["items"]);Et.menu=Object.assign(Object.assign({},sr),{items:Ot==null?void 0:Ot.map((er,yr)=>{var{key:lr,title:G,label:dt,path:I}=er,m=L(er,["key","title","label","path"]);let u=dt!=null?dt:G;return I&&(u=te.createElement("a",{href:`${Xe}${I}`},u)),Object.assign(Object.assign({},m),{key:lr!=null?lr:yr,label:u})})})}else he&&(Et.overlay=he);return te.createElement(F.Z,Object.assign({placement:"bottom"},Et),te.createElement("span",{className:`${Ce}-overlay-link`},qe,te.createElement(g.Z,null)))}return qe})(be);return ze!=null?te.createElement(te.Fragment,null,te.createElement("li",null,ze),Te&&te.createElement($,null,Te)):null},R=Le=>{const{prefixCls:Ce,children:Te,href:be}=Le,ke=L(Le,["prefixCls","children","href"]),{getPrefixCls:he}=te.useContext(S.E_),Ee=he("breadcrumb",Ce);return te.createElement(Y,Object.assign({},ke,{prefixCls:Ee}),O(Ee,ke,Te,be))};R.__ANT_BREADCRUMB_ITEM=!0;var se=R,ne=x(17313),J=x(83116),W=x(37613);const K=Le=>{const{componentCls:Ce,iconCls:Te}=Le;return{[Ce]:Object.assign(Object.assign({},(0,ne.Wf)(Le)),{color:Le.itemColor,fontSize:Le.fontSize,[Te]:{fontSize:Le.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Le.linkColor,transition:`color ${Le.motionDurationMid}`,padding:`0 ${Le.paddingXXS}px`,borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",marginInline:-Le.marginXXS,"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover}},(0,ne.Qy)(Le)),"li:last-child":{color:Le.lastItemColor},[`${Ce}-separator`]:{marginInline:Le.separatorMargin,color:Le.separatorColor},[`${Ce}-link`]:{[`
> ${Te} + span,
> ${Te} + a
`]:{marginInlineStart:Le.marginXXS}},[`${Ce}-overlay-link`]:{borderRadius:Le.borderRadiusSM,height:Le.lineHeight*Le.fontSize,display:"inline-block",padding:`0 ${Le.paddingXXS}px`,marginInline:-Le.marginXXS,[`> ${Te}`]:{marginInlineStart:Le.marginXXS,fontSize:Le.fontSizeIcon},"&:hover":{color:Le.linkHoverColor,backgroundColor:Le.colorBgTextHover,a:{color:Le.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Le.componentCls}-rtl`]:{direction:"rtl"}})}};var le=(0,J.Z)("Breadcrumb",Le=>{const Ce=(0,W.TS)(Le,{});return[K(Ce)]},Le=>({itemColor:Le.colorTextDescription,lastItemColor:Le.colorText,iconFontSize:Le.fontSize,linkColor:Le.colorTextDescription,linkHoverColor:Le.colorText,separatorColor:Le.colorTextDescription,separatorMargin:Le.marginXS})),me=function(Le,Ce){var Te={};for(var be in Le)Object.prototype.hasOwnProperty.call(Le,be)&&Ce.indexOf(be)<0&&(Te[be]=Le[be]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,be=Object.getOwnPropertySymbols(Le);ke<be.length;ke++)Ce.indexOf(be[ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,be[ke])&&(Te[be[ke]]=Le[be[ke]]);return Te};function Oe(Le){const{breadcrumbName:Ce,children:Te}=Le,be=me(Le,["breadcrumbName","children"]),ke=Object.assign({title:Ce},be);return Te&&(ke.menu={items:Te.map(he=>{var{breadcrumbName:Ee}=he,Xe=me(he,["breadcrumbName"]);return Object.assign(Object.assign({},Xe),{title:Ee})})}),ke}function Be(Le,Ce){return(0,te.useMemo)(()=>Le||(Ce?Ce.map(Oe):null),[Le,Ce])}var Ue=function(Le,Ce){var Te={};for(var be in Le)Object.prototype.hasOwnProperty.call(Le,be)&&Ce.indexOf(be)<0&&(Te[be]=Le[be]);if(Le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ke=0,be=Object.getOwnPropertySymbols(Le);ke<be.length;ke++)Ce.indexOf(be[ke])<0&&Object.prototype.propertyIsEnumerable.call(Le,be[ke])&&(Te[be[ke]]=Le[be[ke]]);return Te};const ee=(Le,Ce)=>{if(Ce===void 0)return Ce;let Te=(Ce||"").replace(/^\//,"");return Object.keys(Le).forEach(be=>{Te=Te.replace(`:${be}`,Le[be])}),Te},fe=Le=>{const{prefixCls:Ce,separator:Te="/",style:be,className:ke,rootClassName:he,routes:Ee,items:Xe,children:et,itemRender:ze,params:qe={}}=Le,Et=Ue(Le,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Lt,direction:Ot,breadcrumb:sr}=te.useContext(S.E_);let er;const yr=Lt("breadcrumb",Ce),[lr,G]=le(yr),dt=Be(Xe,Ee),I=T(yr,ze);if(dt&&dt.length>0){const C=[],q=Xe||Ee;er=dt.map((Se,H)=>{const{path:ie,key:Qe,type:we,menu:ye,overlay:je,onClick:xt,className:de,separator:st,dropdownProps:tt}=Se,Ie=ee(qe,ie);Ie!==void 0&&C.push(Ie);const De=Qe!=null?Qe:H;if(we==="separator")return te.createElement($,{key:De},st);const lt={},Ut=H===dt.length-1;ye?lt.menu=ye:je&&(lt.overlay=je);let{href:kt}=Se;return C.length&&Ie!==void 0&&(kt=`#/${C.join("/")}`),te.createElement(Y,Object.assign({key:De},lt,(0,Ne.Z)(Se,{data:!0,aria:!0}),{className:de,dropdownProps:tt,href:kt,separator:Ut?"":Te,onClick:xt,prefixCls:yr}),I(Se,qe,q,C,kt))})}else if(et){const C=(0,P.Z)(et).length;er=(0,P.Z)(et).map((q,Se)=>{if(!q)return q;const H=Se===C-1;return(0,V.Tm)(q,{separator:H?"":Te,key:Se})})}const m=Ae()(yr,sr==null?void 0:sr.className,{[`${yr}-rtl`]:Ot==="rtl"},ke,he,G),u=Object.assign(Object.assign({},sr==null?void 0:sr.style),be);return lr(te.createElement("nav",Object.assign({className:m,style:u},Et),te.createElement("ol",null,er)))};fe.Item=se,fe.Separator=$;var D=fe,Ye=D},24905:function(un,Tt,x){"use strict";x.d(Tt,{default:function(){return le}});var pe=x(92310),Ae=x.n(pe),P=x(5630),Ne=x(59301),te=x(36355),V=x(1684),S=x(32441),F=Ne.createContext(null),v=x(98447),$=x(14088),_=x(4572),M=function(me,Oe){var Be={};for(var Ue in me)Object.prototype.hasOwnProperty.call(me,Ue)&&Oe.indexOf(Ue)<0&&(Be[Ue]=me[Ue]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Ue=Object.getOwnPropertySymbols(me);ee<Ue.length;ee++)Oe.indexOf(Ue[ee])<0&&Object.prototype.propertyIsEnumerable.call(me,Ue[ee])&&(Be[Ue[ee]]=me[Ue[ee]]);return Be};const O=(me,Oe)=>{var Be;const{prefixCls:Ue,className:ee,rootClassName:fe,children:D,indeterminate:Ye=!1,style:Le,onMouseEnter:Ce,onMouseLeave:Te,skipGroup:be=!1,disabled:ke}=me,he=M(me,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ee,direction:Xe,checkbox:et}=Ne.useContext(te.E_),ze=Ne.useContext(F),{isFormItemInput:qe}=Ne.useContext(S.aM),Et=Ne.useContext(V.Z),Lt=(Be=(ze==null?void 0:ze.disabled)||ke)!==null&&Be!==void 0?Be:Et,Ot=Ne.useRef(he.value);Ne.useEffect(()=>{ze==null||ze.registerValue(he.value)},[]),Ne.useEffect(()=>{if(!be)return he.value!==Ot.current&&(ze==null||ze.cancelValue(Ot.current),ze==null||ze.registerValue(he.value),Ot.current=he.value),()=>ze==null?void 0:ze.cancelValue(he.value)},[he.value]);const sr=Ee("checkbox",Ue),[er,yr]=(0,v.ZP)(sr),lr=Object.assign({},he);ze&&!be&&(lr.onChange=function(){he.onChange&&he.onChange.apply(he,arguments),ze.toggleOption&&ze.toggleOption({label:D,value:he.value})},lr.name=ze.name,lr.checked=ze.value.includes(he.value));const G=Ae()(`${sr}-wrapper`,{[`${sr}-rtl`]:Xe==="rtl",[`${sr}-wrapper-checked`]:lr.checked,[`${sr}-wrapper-disabled`]:Lt,[`${sr}-wrapper-in-form-item`]:qe},et==null?void 0:et.className,ee,fe,yr),dt=Ae()({[`${sr}-indeterminate`]:Ye},_.A,yr),I=Ye?"mixed":void 0;return er(Ne.createElement($.Z,{component:"Checkbox",disabled:Lt},Ne.createElement("label",{className:G,style:Object.assign(Object.assign({},et==null?void 0:et.style),Le),onMouseEnter:Ce,onMouseLeave:Te},Ne.createElement(P.Z,Object.assign({"aria-checked":I},lr,{prefixCls:sr,className:dt,disabled:Lt,ref:Oe})),D!==void 0&&Ne.createElement("span",null,D))))};var L=Ne.forwardRef(O),Y=x(94480),R=x(2738),se=function(me,Oe){var Be={};for(var Ue in me)Object.prototype.hasOwnProperty.call(me,Ue)&&Oe.indexOf(Ue)<0&&(Be[Ue]=me[Ue]);if(me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,Ue=Object.getOwnPropertySymbols(me);ee<Ue.length;ee++)Oe.indexOf(Ue[ee])<0&&Object.prototype.propertyIsEnumerable.call(me,Ue[ee])&&(Be[Ue[ee]]=me[Ue[ee]]);return Be};const ne=(me,Oe)=>{const{defaultValue:Be,children:Ue,options:ee=[],prefixCls:fe,className:D,rootClassName:Ye,style:Le,onChange:Ce}=me,Te=se(me,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:be,direction:ke}=Ne.useContext(te.E_),[he,Ee]=Ne.useState(Te.value||Be||[]),[Xe,et]=Ne.useState([]);Ne.useEffect(()=>{"value"in Te&&Ee(Te.value||[])},[Te.value]);const ze=Ne.useMemo(()=>ee.map(m=>typeof m=="string"||typeof m=="number"?{label:m,value:m}:m),[ee]),qe=m=>{et(u=>u.filter(C=>C!==m))},Et=m=>{et(u=>[].concat((0,Y.Z)(u),[m]))},Lt=m=>{const u=he.indexOf(m.value),C=(0,Y.Z)(he);u===-1?C.push(m.value):C.splice(u,1),"value"in Te||Ee(C),Ce==null||Ce(C.filter(q=>Xe.includes(q)).sort((q,Se)=>{const H=ze.findIndex(Qe=>Qe.value===q),ie=ze.findIndex(Qe=>Qe.value===Se);return H-ie}))},Ot=be("checkbox",fe),sr=`${Ot}-group`,[er,yr]=(0,v.ZP)(Ot),lr=(0,R.Z)(Te,["value","disabled"]),G=ee.length?ze.map(m=>Ne.createElement(L,{prefixCls:Ot,key:m.value.toString(),disabled:"disabled"in m?m.disabled:Te.disabled,value:m.value,checked:he.includes(m.value),onChange:m.onChange,className:`${sr}-item`,style:m.style,title:m.title},m.label)):Ue,dt={toggleOption:Lt,value:he,disabled:Te.disabled,name:Te.name,registerValue:Et,cancelValue:qe},I=Ae()(sr,{[`${sr}-rtl`]:ke==="rtl"},D,Ye,yr);return er(Ne.createElement("div",Object.assign({className:I,style:Le},lr,{ref:Oe}),Ne.createElement(F.Provider,{value:dt},G)))},J=Ne.forwardRef(ne);var W=Ne.memo(J);const K=L;K.Group=W,K.__ANT_CHECKBOX=!0;var le=K},98447:function(un,Tt,x){"use strict";x.d(Tt,{C2:function(){return te}});var pe=x(17313),Ae=x(37613),P=x(83116);const Ne=V=>{const{checkboxCls:S}=V,g=`${S}-wrapper`;return[{[`${S}-group`]:Object.assign(Object.assign({},(0,pe.Wf)(V)),{display:"inline-flex",flexWrap:"wrap",columnGap:V.marginXS,[`> ${V.antCls}-row`]:{flex:1}}),[g]:Object.assign(Object.assign({},(0,pe.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,pe.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,pe.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[Ne(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 pe=x(59301),Ae=x(36355),P=x(64165);const Ne=te=>{const{componentName:V}=te,{getPrefixCls:S}=(0,pe.useContext)(Ae.E_),g=S("empty");switch(V){case"Table":case"List":return pe.createElement(P.Z,{image:P.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return pe.createElement(P.Z,{image:P.Z.PRESENTED_IMAGE_SIMPLE,className:`${g}-small`});default:return pe.createElement(P.Z,null)}};Tt.Z=Ne},28103:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return _}});var pe=x(92310),Ae=x.n(pe),P=x(59301),Ne=x(36355),te=x(17313),V=x(83116),S=x(37613);const g=M=>{const{componentCls:O,sizePaddingEdgeHorizontal:T,colorSplit:L,lineWidth:Y,textPaddingInline:R,orientationMargin:se,verticalMarginInline:ne}=M;return{[O]:Object.assign(Object.assign({},(0,te.Wf)(M)),{borderBlockStart:`${Y}px solid ${L}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ne,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Y}px solid ${L}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${M.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${O}-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:`${Y}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${O}-with-text-left`]:{"&::before":{width:`${se*100}%`},"&::after":{width:`${100-se*100}%`}},[`&-horizontal${O}-with-text-right`]:{"&::before":{width:`${100-se*100}%`},"&::after":{width:`${se*100}%`}},[`${O}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:R},"&-dashed":{background:"none",borderColor:L,borderStyle:"dashed",borderWidth:`${Y}px 0 0`},[`&-horizontal${O}-with-text${O}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${O}-dashed`]:{borderInlineStartWidth:Y,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${O}-with-text`]:{color:M.colorText,fontWeight:"normal",fontSize:M.fontSize},[`&-horizontal${O}-with-text-left${O}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${O}-inner-text`]:{paddingInlineStart:T}},[`&-horizontal${O}-with-text-right${O}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${O}-inner-text`]:{paddingInlineEnd:T}}})}};var F=(0,V.Z)("Divider",M=>{const O=(0,S.TS)(M,{dividerHorizontalWithTextGutterMargin:M.margin,dividerHorizontalGutterMargin:M.marginLG,sizePaddingEdgeHorizontal:0});return[g(O)]},M=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:M.marginXS})),v=function(M,O){var T={};for(var L in M)Object.prototype.hasOwnProperty.call(M,L)&&O.indexOf(L)<0&&(T[L]=M[L]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,L=Object.getOwnPropertySymbols(M);Y<L.length;Y++)O.indexOf(L[Y])<0&&Object.prototype.propertyIsEnumerable.call(M,L[Y])&&(T[L[Y]]=M[L[Y]]);return T},_=M=>{const{getPrefixCls:O,direction:T,divider:L}=P.useContext(Ne.E_),{prefixCls:Y,type:R="horizontal",orientation:se="center",orientationMargin:ne,className:J,rootClassName:W,children:K,dashed:le,plain:me,style:Oe}=M,Be=v(M,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ue=O("divider",Y),[ee,fe]=F(Ue),D=se.length>0?`-${se}`:se,Ye=!!K,Le=se==="left"&&ne!=null,Ce=se==="right"&&ne!=null,Te=Ae()(Ue,L==null?void 0:L.className,fe,`${Ue}-${R}`,{[`${Ue}-with-text`]:Ye,[`${Ue}-with-text${D}`]:Ye,[`${Ue}-dashed`]:!!le,[`${Ue}-plain`]:!!me,[`${Ue}-rtl`]:T==="rtl",[`${Ue}-no-default-orientation-margin-left`]:Le,[`${Ue}-no-default-orientation-margin-right`]:Ce},J,W),be=P.useMemo(()=>typeof ne=="number"?ne:/^\d+$/.test(ne)?Number(ne):ne,[ne]),ke=Object.assign(Object.assign({},Le&&{marginLeft:be}),Ce&&{marginRight:be});return ee(P.createElement("div",Object.assign({className:Te,style:Object.assign(Object.assign({},L==null?void 0:L.style),Oe)},Be,{role:"separator"}),K&&R!=="vertical"&&P.createElement("span",{className:`${Ue}-inner-text`,style:ke},K)))}},91857:function(un,Tt,x){"use strict";var pe=x(59301),Ae=x(38819),P=x(92310),Ne=x.n(P),te=x(31561),V=x(70425),S=x(18929),g=x(2738),F=x(79676),v=x(53487),$=x(92343),_=x(36355),M=x(20834),O=x(40875),T=x(88088),L=x(47211);const Y=null,R=W=>{const{menu:K,arrow:le,prefixCls:me,children:Oe,trigger:Be,disabled:Ue,dropdownRender:ee,getPopupContainer:fe,overlayClassName:D,rootClassName:Ye,open:Le,onOpenChange:Ce,visible:Te,onVisibleChange:be,mouseEnterDelay:ke=.15,mouseLeaveDelay:he=.1,autoAdjustOverflow:Ee=!0,placement:Xe="",overlay:et,transitionName:ze}=W,{getPopupContainer:qe,getPrefixCls:Et,direction:Lt}=pe.useContext(_.E_),Ot=pe.useMemo(()=>{const ye=Et();return ze!==void 0?ze:Xe.includes("top")?`${ye}-slide-down`:`${ye}-slide-up`},[Et,Xe,ze]),sr=pe.useMemo(()=>Xe?Xe.includes("Center")?Xe.slice(0,Xe.indexOf("Center")):Xe:Lt==="rtl"?"bottomRight":"bottomLeft",[Xe,Lt]),er=Et("dropdown",me),[yr,lr]=(0,L.Z)(er),[,G]=(0,T.Z)(),dt=pe.Children.only(Oe),I=(0,$.Tm)(dt,{className:Ne()(`${er}-trigger`,{[`${er}-rtl`]:Lt==="rtl"},dt.props.className),disabled:Ue}),m=Ue?[]:Be;let u;m&&m.includes("contextMenu")&&(u=!0);const[C,q]=(0,S.Z)(!1,{value:Le!=null?Le:Te}),Se=(0,V.useEvent)(ye=>{Ce==null||Ce(ye),be==null||be(ye),q(ye)}),H=Ne()(D,Ye,lr,{[`${er}-rtl`]:Lt==="rtl"}),ie=(0,F.Z)({arrowPointAtCenter:typeof le=="object"&&le.pointAtCenter,autoAdjustOverflow:Ee,offset:G.marginXXS,arrowWidth:le?G.sizePopupArrow:0,borderRadius:G.borderRadius}),Qe=pe.useCallback(()=>{q(!1)},[]),we=()=>{let ye;return K!=null&&K.items?ye=pe.createElement(M.default,Object.assign({},K)):typeof et=="function"?ye=et():ye=et,ee&&(ye=ee(ye)),ye=pe.Children.only(typeof ye=="string"?pe.createElement("span",null,ye):ye),pe.createElement(O.J,{prefixCls:`${er}-menu`,expandIcon:pe.createElement("span",{className:`${er}-menu-submenu-arrow`},pe.createElement(Ae.Z,{className:`${er}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Qe,validator:je=>{let{mode:xt}=je}},ye)};return yr(pe.createElement(te.Z,Object.assign({alignPoint:u},(0,g.Z)(W,["rootClassName"]),{mouseEnterDelay:ke,mouseLeaveDelay:he,visible:C,builtinPlacements:ie,arrow:!!le,overlayClassName:H,prefixCls:er,getPopupContainer:fe||qe,transitionName:Ot,trigger:m,overlay:we,placement:sr,onVisibleChange:Se}),I))};function se(W){return Object.assign(Object.assign({},W),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ne=(0,v.Z)(R,"dropdown",W=>W,se),J=W=>pe.createElement(ne,Object.assign({},W),pe.createElement("span",null));R._InternalPanelDoNotUseOrYouWillBeFired=J,Tt.Z=R},38854:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return T}});var pe=x(91857),Ae=x(92310),P=x.n(Ae),Ne=x(59301),te=x(18785),V=x(3113),S=x(36355),g=x(81327),F=x(33234),v=x(47211),$=function(L,Y){var R={};for(var se in L)Object.prototype.hasOwnProperty.call(L,se)&&Y.indexOf(se)<0&&(R[se]=L[se]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ne=0,se=Object.getOwnPropertySymbols(L);ne<se.length;ne++)Y.indexOf(se[ne])<0&&Object.prototype.propertyIsEnumerable.call(L,se[ne])&&(R[se[ne]]=L[se[ne]]);return R};const _=L=>{const{getPopupContainer:Y,getPrefixCls:R,direction:se}=Ne.useContext(S.E_),{prefixCls:ne,type:J="default",danger:W,disabled:K,loading:le,onClick:me,htmlType:Oe,children:Be,className:Ue,menu:ee,arrow:fe,autoFocus:D,overlay:Ye,trigger:Le,align:Ce,open:Te,onOpenChange:be,placement:ke,getPopupContainer:he,href:Ee,icon:Xe=Ne.createElement(te.Z,null),title:et,buttonsRender:ze=we=>we,mouseEnterDelay:qe,mouseLeaveDelay:Et,overlayClassName:Lt,overlayStyle:Ot,destroyPopupOnHide:sr,dropdownRender:er}=L,yr=$(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"]),lr=R("dropdown",ne),G=`${lr}-button`,[dt,I]=(0,v.Z)(lr),m={menu:ee,arrow:fe,autoFocus:D,align:Ce,disabled:K,trigger:K?[]:Le,onOpenChange:be,getPopupContainer:he||Y,mouseEnterDelay:qe,mouseLeaveDelay:Et,overlayClassName:Lt,overlayStyle:Ot,destroyPopupOnHide:sr,dropdownRender:er},{compactSize:u,compactItemClassnames:C}=(0,F.ri)(lr,se),q=P()(G,C,Ue,I);"overlay"in L&&(m.overlay=Ye),"open"in L&&(m.open=Te),"placement"in L?m.placement=ke:m.placement=se==="rtl"?"bottomLeft":"bottomRight";const Se=Ne.createElement(V.ZP,{type:J,danger:W,disabled:K,loading:le,onClick:me,htmlType:Oe,href:Ee,title:et},Be),H=Ne.createElement(V.ZP,{type:J,danger:W,icon:Xe}),[ie,Qe]=ze([Se,H]);return dt(Ne.createElement(g.Z.Compact,Object.assign({className:q,size:u,block:!0},yr),ie,Ne.createElement(pe.Z,Object.assign({},m),Qe)))};_.__ANT_BUTTON=!0;var M=_;const O=pe.Z;O.Button=M;var T=O},47211:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return $}});var pe=x(17313),Ae=x(13826),P=x(92899),Ne=x(29878),te=x(19447),V=x(83116),S=x(37613),F=_=>{const{componentCls:M,menuCls:O,colorError:T,colorTextLightSolid:L}=_,Y=`${O}-item`;return{[`${M}, ${M}-menu-submenu`]:{[`${O} ${Y}`]:{[`&${Y}-danger:not(${Y}-disabled)`]:{color:T,"&:hover":{color:L,backgroundColor:T}}}}}};const v=_=>{const{componentCls:M,menuCls:O,zIndexPopup:T,dropdownArrowDistance:L,sizePopupArrow:Y,antCls:R,iconCls:se,motionDurationMid:ne,dropdownPaddingVertical:J,fontSize:W,dropdownEdgeChildPadding:K,colorTextDisabled:le,fontSizeIcon:me,controlPaddingHorizontal:Oe,colorBgElevated:Be}=_;return[{[M]:Object.assign(Object.assign({},(0,pe.Wf)(_)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:T,display:"block","&::before":{position:"absolute",insetBlock:-L+Y/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${R}-btn`]:{[`& > ${se}-down, & > ${R}-btn-icon > ${se}-down`]:{fontSize:me}},[`${M}-wrap`]:{position:"relative",[`${R}-btn > ${se}-down`]:{fontSize:me},[`${se}-down::before`]:{transition:`transform ${ne}`}},[`${M}-wrap-open`]:{[`${se}-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)(_,{colorBg:Be,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${M} ${O}`]:{position:"relative",margin:0},[`${O}-submenu-popup`]:{position:"absolute",zIndex:T,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${M}, ${M}-menu-submenu`]:{[O]:Object.assign(Object.assign({padding:K,listStyleType:"none",backgroundColor:Be,backgroundClip:"padding-box",borderRadius:_.borderRadiusLG,outline:"none",boxShadow:_.boxShadowSecondary},(0,pe.Qy)(_)),{[`${O}-item-group-title`]:{padding:`${J}px ${Oe}px`,color:_.colorTextDescription,transition:`all ${ne}`},[`${O}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${O}-item-icon`]:{minWidth:W,marginInlineEnd:_.marginXS,fontSize:_.fontSizeSM},[`${O}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ne}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${O}-item, ${O}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${J}px ${Oe}px`,color:_.colorText,fontWeight:"normal",fontSize:W,lineHeight:_.lineHeight,cursor:"pointer",transition:`all ${ne}`,borderRadius:_.borderRadiusSM,"&:hover, &-active":{backgroundColor:_.controlItemBgHover}},(0,pe.Qy)(_)),{"&-selected":{color:_.colorPrimary,backgroundColor:_.controlItemBgActive,"&:hover, &-active":{backgroundColor:_.controlItemBgActiveHover}},"&-disabled":{color:le,cursor:"not-allowed","&:hover":{color:le,backgroundColor:Be,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${_.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:_.colorSplit},[`${M}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:_.paddingXS,[`${M}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:_.colorTextDescription,fontSize:me,fontStyle:"normal"}}}),[`${O}-item-group-list`]:{margin:`0 ${_.marginXS}px`,padding:0,listStyle:"none"},[`${O}-submenu-title`]:{paddingInlineEnd:Oe+_.fontSizeSM},[`${O}-submenu-vertical`]:{position:"relative"},[`${O}-submenu${O}-submenu-disabled ${M}-menu-submenu-title`]:{[`&, ${M}-menu-submenu-arrow-icon`]:{color:le,backgroundColor:Be,cursor:"not-allowed"}},[`${O}-submenu-selected ${M}-menu-submenu-title`]:{color:_.colorPrimary}})}},[(0,Ae.oN)(_,"slide-up"),(0,Ae.oN)(_,"slide-down"),(0,P.Fm)(_,"move-up"),(0,P.Fm)(_,"move-down"),(0,Ne._y)(_,"zoom-big")]]};var $=(0,V.Z)("Dropdown",(_,M)=>{let{rootPrefixCls:O}=M;const{marginXXS:T,sizePopupArrow:L,controlHeight:Y,fontSize:R,lineHeight:se,paddingXXS:ne,componentCls:J,borderRadiusLG:W}=_,K=(Y-R*se)/2,{dropdownArrowOffset:le}=(0,te.fS)({contentRadius:W}),me=(0,S.TS)(_,{menuCls:`${J}-menu`,rootPrefixCls:O,dropdownArrowDistance:L/2+T,dropdownArrowOffset:le,dropdownPaddingVertical:K,dropdownEdgeChildPadding:ne});return[v(me),F(me)]},_=>({zIndexPopup:_.zIndexPopupBase+50}))},64165:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return ne}});var pe=x(92310),Ae=x.n(pe),P=x(59301),Ne=x(36355),te=x(9763),V=x(64993),S=x(88088),F=()=>{const[,J]=(0,S.Z)(),K=new V.C(J.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"}))))},$=()=>{const[,J]=(0,S.Z)(),{colorFill:W,colorFillTertiary:K,colorFillQuaternary:le,colorBgContainer:me}=J,{borderColor:Oe,shadowColor:Be,contentColor:Ue}=(0,P.useMemo)(()=>({borderColor:new V.C(W).onBackground(me).toHexShortString(),shadowColor:new V.C(K).onBackground(me).toHexShortString(),contentColor:new V.C(le).onBackground(me).toHexShortString()}),[W,K,le,me]);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:Be,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}))))},_=x(83116),M=x(37613);const O=J=>{const{componentCls:W,margin:K,marginXS:le,marginXL:me,fontSize:Oe,lineHeight:Be}=J;return{[W]:{marginInline:le,fontSize:Oe,lineHeight:Be,textAlign:"center",[`${W}-image`]:{height:J.emptyImgHeight,marginBottom:le,opacity:J.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${W}-description`]:{color:J.colorText},[`${W}-footer`]:{marginTop:K},"&-normal":{marginBlock:me,color:J.colorTextDisabled,[`${W}-description`]:{color:J.colorTextDisabled},[`${W}-image`]:{height:J.emptyImgHeightMD}},"&-small":{marginBlock:le,color:J.colorTextDisabled,[`${W}-image`]:{height:J.emptyImgHeightSM}}}}};var T=(0,_.Z)("Empty",J=>{const{componentCls:W,controlHeightLG:K}=J,le=(0,M.TS)(J,{emptyImgCls:`${W}-img`,emptyImgHeight:K*2.5,emptyImgHeightMD:K,emptyImgHeightSM:K*.875});return[O(le)]}),L=function(J,W){var K={};for(var le in J)Object.prototype.hasOwnProperty.call(J,le)&&W.indexOf(le)<0&&(K[le]=J[le]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var me=0,le=Object.getOwnPropertySymbols(J);me<le.length;me++)W.indexOf(le[me])<0&&Object.prototype.propertyIsEnumerable.call(J,le[me])&&(K[le[me]]=J[le[me]]);return K};const Y=P.createElement(F,null),R=P.createElement($,null),se=J=>{var{className:W,rootClassName:K,prefixCls:le,image:me=Y,description:Oe,children:Be,imageStyle:Ue,style:ee}=J,fe=L(J,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:D,direction:Ye,empty:Le}=P.useContext(Ne.E_),Ce=D("empty",le),[Te,be]=T(Ce),[ke]=(0,te.Z)("Empty"),he=typeof Oe!="undefined"?Oe:ke==null?void 0:ke.description,Ee=typeof he=="string"?he:"empty";let Xe=null;return typeof me=="string"?Xe=P.createElement("img",{alt:Ee,src:me}):Xe=me,Te(P.createElement("div",Object.assign({className:Ae()(be,Ce,Le==null?void 0:Le.className,{[`${Ce}-normal`]:me===R,[`${Ce}-rtl`]:Ye==="rtl"},W,K),style:Object.assign(Object.assign({},Le==null?void 0:Le.style),ee)},fe),P.createElement("div",{className:`${Ce}-image`,style:Ue},Xe),he&&P.createElement("div",{className:`${Ce}-description`},he),Be&&P.createElement("div",{className:`${Ce}-footer`},Be)))};se.PRESENTED_IMAGE_DEFAULT=Y,se.PRESENTED_IMAGE_SIMPLE=R;var ne=se},8628:function(un,Tt,x){"use strict";var pe=x(59301),Ae=x(34280),P=x(56762),Ne=x(69507);function te(){let V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const S=(0,pe.useRef)({}),g=(0,P.Z)(),F=(0,Ne.ZP)();return(0,Ae.Z)(()=>{const v=F.subscribe($=>{S.current=$,V&&g()});return()=>F.unsubscribe(v)},[]),S.current}Tt.Z=te},5871:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return tt}});var pe=x(84105),Ae=x(87395),P=x(92310),Ne=x.n(P),te=x(54476),V=x(20068),S=x(76190),g=x(42978),F=x(75931),v=x(67732),$=x(83652);function _(){return typeof BigInt=="function"}function M(Ie){return!Ie&&Ie!==0&&!Number.isNaN(Ie)||!String(Ie).trim()}function O(Ie){var De=Ie.trim(),lt=De.startsWith("-");lt&&(De=De.slice(1)),De=De.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),De.startsWith(".")&&(De="0".concat(De));var Ut=De||"0",kt=Ut.split("."),rr=kt[0]||"0",Fr=kt[1]||"0";rr==="0"&&Fr==="0"&&(lt=!1);var kr=lt?"-":"";return{negative:lt,negativeStr:kr,trimStr:Ut,integerStr:rr,decimalStr:Fr,fullStr:"".concat(kr).concat(Ut)}}function T(Ie){var De=String(Ie);return!Number.isNaN(Number(De))&&De.includes("e")}function L(Ie){var De=String(Ie);if(T(Ie)){var lt=Number(De.slice(De.indexOf("e-")+2)),Ut=De.match(/\.(\d+)/);return Ut!=null&&Ut[1]&&(lt+=Ut[1].length),lt}return De.includes(".")&&R(De)?De.length-De.indexOf(".")-1:0}function Y(Ie){var De=String(Ie);if(T(Ie)){if(Ie>Number.MAX_SAFE_INTEGER)return String(_()?BigInt(Ie).toString():Number.MAX_SAFE_INTEGER);if(Ie<Number.MIN_SAFE_INTEGER)return String(_()?BigInt(Ie).toString():Number.MIN_SAFE_INTEGER);De=Ie.toFixed(L(De))}return O(De).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 se=function(){function Ie(De){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(De)){this.empty=!0;return}if(this.origin=String(De),De==="-"||Number.isNaN(De)){this.nan=!0;return}var lt=De;if(T(lt)&&(lt=Number(lt)),lt=typeof lt=="string"?lt:Y(lt),R(lt)){var Ut=O(lt);this.negative=Ut.negative;var kt=Ut.trimStr.split(".");this.integer=BigInt(kt[0]);var rr=kt[1]||"0";this.decimal=BigInt(rr),this.decimalLen=rr.length}else this.nan=!0}return(0,$.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(lt){var Ut="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(lt,"0"));return BigInt(Ut)}},{key:"negate",value:function(){var lt=new Ie(this.toString());return lt.negative=!lt.negative,lt}},{key:"cal",value:function(lt,Ut,kt){var rr=Math.max(this.getDecimalStr().length,lt.getDecimalStr().length),Fr=this.alignDecimal(rr),kr=lt.alignDecimal(rr),Dr=Ut(Fr,kr).toString(),Nr=kt(rr),xr=O(Dr),ur=xr.negativeStr,Kr=xr.trimStr,pn="".concat(ur).concat(Kr.padStart(Nr+1,"0"));return new Ie("".concat(pn.slice(0,-Nr),".").concat(pn.slice(-Nr)))}},{key:"add",value:function(lt){if(this.isInvalidate())return new Ie(lt);var Ut=new Ie(lt);return Ut.isInvalidate()?this:this.cal(Ut,function(kt,rr){return kt+rr},function(kt){return kt})}},{key:"multi",value:function(lt){var Ut=new Ie(lt);return this.isInvalidate()||Ut.isInvalidate()?new Ie(NaN):this.cal(Ut,function(kt,rr){return kt*rr},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(lt){return this.toString()===(lt==null?void 0:lt.toString())}},{key:"lessEquals",value:function(lt){return this.add(lt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return lt?this.isInvalidate()?"":O("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ie}(),ne=function(){function Ie(De){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(De)){this.empty=!0;return}this.origin=String(De),this.number=Number(De)}return(0,$.Z)(Ie,[{key:"negate",value:function(){return new Ie(-this.toNumber())}},{key:"add",value:function(lt){if(this.isInvalidate())return new Ie(lt);var Ut=Number(lt);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 rr=Math.max(L(this.number),L(Ut));return new Ie(kt.toFixed(rr))}},{key:"multi",value:function(lt){var Ut=Number(lt);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 rr=Math.max(L(this.number),L(Ut));return new Ie(kt.toFixed(rr))}},{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(lt){return this.toNumber()===(lt==null?void 0:lt.toNumber())}},{key:"lessEquals",value:function(lt){return this.add(lt.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var lt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return lt?this.isInvalidate()?"":Y(this.number):this.origin}}]),Ie}();function J(Ie){return _()?new se(Ie):new ne(Ie)}function W(Ie,De,lt){var Ut=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ie==="")return"";var kt=O(Ie),rr=kt.negativeStr,Fr=kt.integerStr,kr=kt.decimalStr,Dr="".concat(De).concat(kr),Nr="".concat(rr).concat(Fr);if(lt>=0){var xr=Number(kr[lt]);if(xr>=5&&!Ut){var ur=J(Ie).add("".concat(rr,"0.").concat("0".repeat(lt)).concat(10-xr));return W(ur.toString(),De,lt,Ut)}return lt===0?Nr:"".concat(Nr).concat(De).concat(kr.padEnd(lt,"0").slice(0,lt))}return Dr===".0"?Nr:"".concat(Nr).concat(Dr)}var K=J,le=x(93681),me=x(34280),Oe=x(8654),Be=x(59301),Ue=x(48736);function ee(Ie,De){var lt=(0,Be.useRef)(null);function Ut(){try{var rr=Ie.selectionStart,Fr=Ie.selectionEnd,kr=Ie.value,Dr=kr.substring(0,rr),Nr=kr.substring(Fr);lt.current={start:rr,end:Fr,value:kr,beforeTxt:Dr,afterTxt:Nr}}catch(xr){}}function kt(){if(Ie&&lt.current&&De)try{var rr=Ie.value,Fr=lt.current,kr=Fr.beforeTxt,Dr=Fr.afterTxt,Nr=Fr.start,xr=rr.length;if(rr.endsWith(Dr))xr=rr.length-lt.current.afterTxt.length;else if(rr.startsWith(kr))xr=kr.length;else{var ur=kr[Nr-1],Kr=rr.indexOf(ur,Nr-1);Kr!==-1&&(xr=Kr+1)}Ie.setSelectionRange(xr,xr)}catch(pn){(0,Ue.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(pn.message))}}return[Ut,kt]}var fe=x(49658),D=function(){var De=(0,Be.useState)(!1),lt=(0,g.Z)(De,2),Ut=lt[0],kt=lt[1];return(0,me.Z)(function(){kt((0,fe.Z)())},[]),Ut},Ye=D,Le=x(16089),Ce=200,Te=600;function be(Ie){var De=Ie.prefixCls,lt=Ie.upNode,Ut=Ie.downNode,kt=Ie.upDisabled,rr=Ie.downDisabled,Fr=Ie.onStep,kr=Be.useRef(),Dr=Be.useRef([]),Nr=Be.useRef();Nr.current=Fr;var xr=function(){clearTimeout(kr.current)},ur=function(Gn,Hi){Gn.preventDefault(),xr(),Nr.current(Hi);function di(){Nr.current(Hi),kr.current=setTimeout(di,Ce)}kr.current=setTimeout(di,Te)};Be.useEffect(function(){return function(){xr(),Dr.current.forEach(function(hr){return Le.Z.cancel(hr)})}},[]);var Kr=Ye();if(Kr)return null;var pn="".concat(De,"-handler"),kn=Ne()(pn,"".concat(pn,"-up"),(0,V.Z)({},"".concat(pn,"-up-disabled"),kt)),mn=Ne()(pn,"".concat(pn,"-down"),(0,V.Z)({},"".concat(pn,"-down-disabled"),rr)),Dn=function(){return Dr.current.push((0,Le.Z)(xr))},Ki={unselectable:"on",role:"button",onMouseUp:Dn,onMouseLeave:Dn};return Be.createElement("div",{className:"".concat(pn,"-wrap")},Be.createElement("span",(0,te.Z)({},Ki,{onMouseDown:function(Gn){ur(Gn,!0)},"aria-label":"Increase Value","aria-disabled":kt,className:kn}),lt||Be.createElement("span",{unselectable:"on",className:"".concat(De,"-handler-up-inner")})),Be.createElement("span",(0,te.Z)({},Ki,{onMouseDown:function(Gn){ur(Gn,!1)},"aria-label":"Decrease Value","aria-disabled":rr,className:mn}),Ut||Be.createElement("span",{unselectable:"on",className:"".concat(De,"-handler-down-inner")})))}function ke(Ie){var De=typeof Ie=="number"?Y(Ie):O(Ie).fullStr,lt=De.includes(".");return lt?O(De.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ie+"0"}var he=x(5643),Ee=function(){var Ie=(0,Be.useRef)(0),De=function(){Le.Z.cancel(Ie.current)};return(0,Be.useEffect)(function(){return De},[]),function(lt){De(),Ie.current=(0,Le.Z)(function(){lt()})}},Xe=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],et=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],ze=function(De,lt){return De||lt.isEmpty()?lt.toString():lt.toNumber()},qe=function(De){var lt=K(De);return lt.isInvalidate()?null:lt},Et=Be.forwardRef(function(Ie,De){var lt,Ut=Ie.prefixCls,kt=Ut===void 0?"rc-input-number":Ut,rr=Ie.className,Fr=Ie.style,kr=Ie.min,Dr=Ie.max,Nr=Ie.step,xr=Nr===void 0?1:Nr,ur=Ie.defaultValue,Kr=Ie.value,pn=Ie.disabled,kn=Ie.readOnly,mn=Ie.upHandler,Dn=Ie.downHandler,Ki=Ie.keyboard,hr=Ie.controls,Gn=hr===void 0?!0:hr,Hi=Ie.classNames,di=Ie.stringMode,$i=Ie.parser,Ri=Ie.formatter,Zi=Ie.precision,za=Ie.decimalSeparator,Fi=Ie.onChange,qn=Ie.onInput,ai=Ie.onPressEnter,yi=Ie.onStep,ge=(0,F.Z)(Ie,Xe),Me="".concat(kt,"-input"),Fe=Be.useRef(null),Ge=Be.useState(!1),Pt=(0,g.Z)(Ge,2),Dt=Pt[0],Er=Pt[1],nr=Be.useRef(!1),Or=Be.useRef(!1),Hr=Be.useRef(!1),an=Be.useState(function(){return K(Kr!=null?Kr:ur)}),jr=(0,g.Z)(an,2),Rr=jr[0],en=jr[1];function wn(fn){Kr===void 0&&en(fn)}var on=Be.useCallback(function(fn,ln){if(!ln)return Zi>=0?Zi:Math.max(L(fn),L(xr))},[Zi,xr]),Nn=Be.useCallback(function(fn){var ln=String(fn);if($i)return $i(ln);var Jn=ln;return za&&(Jn=Jn.replace(za,".")),Jn.replace(/[^\w.-]+/g,"")},[$i,za]),Qn=Be.useRef(""),hi=Be.useCallback(function(fn,ln){if(Ri)return Ri(fn,{userTyping:ln,input:String(Qn.current)});var Jn=typeof fn=="number"?Y(fn):fn;if(!ln){var Kn=on(Jn,ln);if(R(Jn)&&(za||Kn>=0)){var pi=za||".";Jn=W(Jn,pi,Kn)}}return Jn},[Ri,on,za]),On=Be.useState(function(){var fn=ur!=null?ur:Kr;return Rr.isInvalidate()&&["string","number"].includes((0,S.Z)(fn))?Number.isNaN(fn)?"":fn:hi(Rr.toString(),!1)}),Xn=(0,g.Z)(On,2),Vt=Xn[0],Xt=Xn[1];Qn.current=Vt;function Yt(fn,ln){Xt(hi(fn.isInvalidate()?fn.toString(!1):fn.toString(!ln),ln))}var tr=Be.useMemo(function(){return qe(Dr)},[Dr,Zi]),jt=Be.useMemo(function(){return qe(kr)},[kr,Zi]),or=Be.useMemo(function(){return!tr||!Rr||Rr.isInvalidate()?!1:tr.lessEquals(Rr)},[tr,Rr]),cr=Be.useMemo(function(){return!jt||!Rr||Rr.isInvalidate()?!1:Rr.lessEquals(jt)},[jt,Rr]),Pr=ee(Fe.current,Dt),yn=(0,g.Z)(Pr,2),Cn=yn[0],Ai=yn[1],ni=function(ln){return tr&&!ln.lessEquals(tr)?tr:jt&&!jt.lessEquals(ln)?jt:null},Ei=function(ln){return!ni(ln)},ei=function(ln,Jn){var Kn=ln,pi=Ei(Kn)||Kn.isEmpty();if(!Kn.isEmpty()&&!Jn&&(Kn=ni(Kn)||Kn,pi=!0),!kn&&!pn&&pi){var qi=Kn.toString(),Mi=on(qi,Jn);return Mi>=0&&(Kn=K(W(qi,".",Mi)),Ei(Kn)||(Kn=K(W(qi,".",Mi,!0)))),Kn.equals(Rr)||(wn(Kn),Fi==null||Fi(Kn.isEmpty()?null:ze(di,Kn)),Kr===void 0&&Yt(Kn,Jn)),Kn}return Rr},jn=Ee(),xi=function fn(ln){if(Cn(),Qn.current=ln,Xt(ln),!Or.current){var Jn=Nn(ln),Kn=K(Jn);Kn.isNaN()||ei(Kn,!0)}qn==null||qn(ln),jn(function(){var pi=ln;$i||(pi=ln.replace(/。/g,".")),pi!==ln&&fn(pi)})},wi=function(){Or.current=!0},Ci=function(){Or.current=!1,xi(Fe.current.value)},ui=function(ln){xi(ln.target.value)},Bi=function(ln){var Jn;if(!(ln&&or||!ln&&cr)){nr.current=!1;var Kn=K(Hr.current?ke(xr):xr);ln||(Kn=Kn.negate());var pi=(Rr||K(0)).add(Kn.toString()),qi=ei(pi,!1);yi==null||yi(ze(di,qi),{offset:Hr.current?ke(xr):xr,type:ln?"up":"down"}),(Jn=Fe.current)===null||Jn===void 0||Jn.focus()}},Xi=function(ln){var Jn=K(Nn(Vt)),Kn=Jn;Jn.isNaN()?Kn=ei(Rr,ln):Kn=ei(Jn,ln),Kr!==void 0?Yt(Rr,!1):Kn.isNaN()||Yt(Kn,!1)},ri=function(){nr.current=!0},Pi=function(ln){var Jn=ln.key,Kn=ln.shiftKey;nr.current=!0,Hr.current=Kn,Jn==="Enter"&&(Or.current||(nr.current=!1),Xi(!1),ai==null||ai(ln)),Ki!==!1&&!Or.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Jn)&&(Bi(Jn==="Up"||Jn==="ArrowUp"),ln.preventDefault())},Ha=function(){nr.current=!1,Hr.current=!1},ci=function(){Xi(!1),Er(!1),nr.current=!1};return(0,me.o)(function(){Rr.isInvalidate()||Yt(Rr,!1)},[Zi]),(0,me.o)(function(){var fn=K(Kr);en(fn);var ln=K(Nn(Vt));(!fn.equals(ln)||!nr.current||Ri)&&Yt(fn,nr.current)},[Kr]),(0,me.o)(function(){Ri&&Ai()},[Vt]),Be.createElement("div",{className:Ne()(kt,Hi==null?void 0:Hi.input,rr,(lt={},(0,V.Z)(lt,"".concat(kt,"-focused"),Dt),(0,V.Z)(lt,"".concat(kt,"-disabled"),pn),(0,V.Z)(lt,"".concat(kt,"-readonly"),kn),(0,V.Z)(lt,"".concat(kt,"-not-a-number"),Rr.isNaN()),(0,V.Z)(lt,"".concat(kt,"-out-of-range"),!Rr.isInvalidate()&&!Ei(Rr)),lt)),style:Fr,onFocus:function(){Er(!0)},onBlur:ci,onKeyDown:Pi,onKeyUp:Ha,onCompositionStart:wi,onCompositionEnd:Ci,onBeforeInput:ri},Gn&&Be.createElement(be,{prefixCls:kt,upNode:mn,downNode:Dn,upDisabled:or,downDisabled:cr,onStep:Bi}),Be.createElement("div",{className:"".concat(Me,"-wrap")},Be.createElement("input",(0,te.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":kr,"aria-valuemax":Dr,"aria-valuenow":Rr.isInvalidate()?null:Rr.toString(),step:xr},ge,{ref:(0,Oe.sQ)(Fe,De),className:Me,value:Vt,onChange:ui,disabled:pn,readOnly:kn}))))}),Lt=Be.forwardRef(function(Ie,De){var lt=Ie.disabled,Ut=Ie.style,kt=Ie.prefixCls,rr=Ie.value,Fr=Ie.prefix,kr=Ie.suffix,Dr=Ie.addonBefore,Nr=Ie.addonAfter,xr=Ie.classes,ur=Ie.className,Kr=Ie.classNames,pn=(0,F.Z)(Ie,et),kn=Be.useRef(null),mn=function(Ki){kn.current&&(0,he.nH)(kn.current,Ki)};return Be.createElement(le.BaseInput,{inputElement:Be.createElement(Et,(0,te.Z)({prefixCls:kt,disabled:lt,classNames:Kr,ref:(0,Oe.sQ)(kn,De)},pn)),className:ur,triggerFocus:mn,prefixCls:kt,value:rr,disabled:lt,style:Ut,prefix:Fr,suffix:kr,addonAfter:Nr,addonBefore:Dr,classes:xr,classNames:Kr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Lt.displayName="InputNumber";var Ot=Lt,sr=Ot,er=x(19080),yr=x(36355),lr=x(92736),G=x(1684),dt=x(19716),I=x(32441),m=x(33234),u=x(9937),C=x(17313),q=x(74207),Se=x(83116),H=x(37613);const ie=(Ie,De)=>{let{componentCls:lt,borderRadiusSM:Ut,borderRadiusLG:kt}=Ie;const rr=De==="lg"?kt:Ut;return{[`&-${De}`]:{[`${lt}-handler-wrap`]:{borderStartEndRadius:rr,borderEndEndRadius:rr},[`${lt}-handler-up`]:{borderStartEndRadius:rr},[`${lt}-handler-down`]:{borderEndEndRadius:rr}}}},Qe=Ie=>{const{componentCls:De,lineWidth:lt,lineType:Ut,colorBorder:kt,borderRadius:rr,fontSizeLG:Fr,controlHeightLG:kr,controlHeightSM:Dr,colorError:Nr,paddingInlineSM:xr,colorTextDescription:ur,motionDurationMid:Kr,handleHoverColor:pn,paddingInline:kn,paddingBlock:mn,handleBg:Dn,handleActiveBg:Ki,colorTextDisabled:hr,borderRadiusSM:Gn,borderRadiusLG:Hi,controlWidth:di,handleVisible:$i,handleBorderColor:Ri}=Ie;return[{[De]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Ie)),(0,u.ik)(Ie)),(0,u.bi)(Ie,De)),{display:"inline-block",width:di,margin:0,padding:0,border:`${lt}px ${Ut} ${kt}`,borderRadius:rr,"&-rtl":{direction:"rtl",[`${De}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Fr,borderRadius:Hi,[`input${De}-input`]:{height:kr-2*lt}},"&-sm":{padding:0,borderRadius:Gn,[`input${De}-input`]:{height:Dr-2*lt,padding:`0 ${xr}px`}},"&:hover":Object.assign({},(0,u.pU)(Ie)),"&-focused":Object.assign({},(0,u.M1)(Ie)),"&-out-of-range":{[`${De}-input-wrap`]:{input:{color:Nr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Ie)),(0,u.s7)(Ie)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${De}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${De}-group-addon`]:{borderRadius:Hi,fontSize:Ie.fontSizeLG}},"&-sm":{[`${De}-group-addon`]:{borderRadius:Gn}},[`${De}-wrapper-disabled > ${De}-group-addon`]:Object.assign({},(0,u.Xy)(Ie))}}),[`&-disabled ${De}-input`]:{cursor:"not-allowed"},[De]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Ie)),{width:"100%",padding:`${mn}px ${kn}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:rr,outline:0,transition:`all ${Kr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,u.nz)(Ie.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[De]:Object.assign(Object.assign(Object.assign({[`&:hover ${De}-handler-wrap, &-focused ${De}-handler-wrap`]:{opacity:1},[`${De}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ie.handleWidth,height:"100%",background:Dn,borderStartStartRadius:0,borderStartEndRadius:rr,borderEndEndRadius:rr,borderEndStartRadius:0,opacity:$i===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Kr} linear ${Kr}`,[`${De}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${De}-handler-up-inner,
${De}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:Ie.handleFontSize}}},[`${De}-handler`]:{height:"50%",overflow:"hidden",color:ur,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${lt}px ${Ut} ${Ri}`,transition:`all ${Kr} linear`,"&:active":{background:Ki},"&:hover":{height:"60%",[`
${De}-handler-up-inner,
${De}-handler-down-inner
`]:{color:pn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,C.Ro)()),{color:ur,transition:`all ${Kr} linear`,userSelect:"none"})},[`${De}-handler-up`]:{borderStartEndRadius:rr},[`${De}-handler-down`]:{borderBlockStart:`${lt}px ${Ut} ${Ri}`,borderEndEndRadius:rr}},ie(Ie,"lg")),ie(Ie,"sm")),{"&-disabled, &-readonly":{[`${De}-handler-wrap`]:{display:"none"},[`${De}-input`]:{color:"inherit"}},[`
${De}-handler-up-disabled,
${De}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${De}-handler-up-disabled:hover &-handler-up-inner,
${De}-handler-down-disabled:hover &-handler-down-inner
`]:{color:hr}})},{[`${De}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${De}-handler-down`]:{borderBlockStartWidth:0}}}]},we=Ie=>{const{componentCls:De,paddingBlock:lt,paddingInline:Ut,inputAffixPadding:kt,controlWidth:rr,borderRadiusLG:Fr,borderRadiusSM:kr}=Ie;return{[`${De}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,u.ik)(Ie)),(0,u.bi)(Ie,`${De}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:rr,padding:0,paddingInlineStart:Ut,"&-lg":{borderRadius:Fr},"&-sm":{borderRadius:kr},[`&:not(${De}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,u.pU)(Ie)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${De}-disabled`]:{background:"transparent"},[`> div${De}`]:{width:"100%",border:"none",outline:"none",[`&${De}-focused`]:{boxShadow:"none !important"}},[`input${De}-input`]:{padding:`${lt}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${De}-handler-wrap`]:{zIndex:2},[De]:{"&-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,Se.Z)("InputNumber",Ie=>{const De=(0,H.TS)(Ie,(0,u.e5)(Ie));return[Qe(De),we(De),(0,q.c)(De)]},Ie=>Object.assign(Object.assign({},(0,u.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,De){var lt={};for(var Ut in Ie)Object.prototype.hasOwnProperty.call(Ie,Ut)&&De.indexOf(Ut)<0&&(lt[Ut]=Ie[Ut]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var kt=0,Ut=Object.getOwnPropertySymbols(Ie);kt<Ut.length;kt++)De.indexOf(Ut[kt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Ut[kt])&&(lt[Ut[kt]]=Ie[Ut[kt]]);return lt};const xt=Be.forwardRef((Ie,De)=>{const{getPrefixCls:lt,direction:Ut}=Be.useContext(yr.E_),kt=Be.useRef(null);Be.useImperativeHandle(De,()=>kt.current);const{className:rr,rootClassName:Fr,size:kr,disabled:Dr,prefixCls:Nr,addonBefore:xr,addonAfter:ur,prefix:Kr,bordered:pn=!0,readOnly:kn,status:mn,controls:Dn}=Ie,Ki=je(Ie,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),hr=lt("input-number",Nr),[Gn,Hi]=ye(hr),{compactSize:di,compactItemClassnames:$i}=(0,m.ri)(hr,Ut);let Ri=Be.createElement(Ae.Z,{className:`${hr}-handler-up-inner`}),Zi=Be.createElement(pe.Z,{className:`${hr}-handler-down-inner`});const za=typeof Dn=="boolean"?Dn:void 0;typeof Dn=="object"&&(Ri=typeof Dn.upIcon=="undefined"?Ri:Be.createElement("span",{className:`${hr}-handler-up-inner`},Dn.upIcon),Zi=typeof Dn.downIcon=="undefined"?Zi:Be.createElement("span",{className:`${hr}-handler-down-inner`},Dn.downIcon));const{hasFeedback:Fi,status:qn,isFormItemInput:ai,feedbackIcon:yi}=Be.useContext(I.aM),ge=(0,er.F)(qn,mn),Me=(0,dt.Z)(nr=>{var Or;return(Or=kr!=null?kr:di)!==null&&Or!==void 0?Or:nr}),Fe=Be.useContext(G.Z),Ge=Dr!=null?Dr:Fe,Pt=Ne()({[`${hr}-lg`]:Me==="large",[`${hr}-sm`]:Me==="small",[`${hr}-rtl`]:Ut==="rtl",[`${hr}-borderless`]:!pn,[`${hr}-in-form-item`]:ai},(0,er.Z)(hr,ge),$i,Hi),Dt=`${hr}-group`,Er=Be.createElement(sr,Object.assign({ref:kt,disabled:Ge,className:Ne()(rr,Fr),upHandler:Ri,downHandler:Zi,prefixCls:hr,readOnly:kn,controls:za,prefix:Kr,suffix:Fi&&yi,addonAfter:ur&&Be.createElement(m.BR,null,Be.createElement(I.Ux,{override:!0,status:!0},ur)),addonBefore:xr&&Be.createElement(m.BR,null,Be.createElement(I.Ux,{override:!0,status:!0},xr)),classNames:{input:Pt},classes:{affixWrapper:Ne()((0,er.Z)(`${hr}-affix-wrapper`,ge,Fi),{[`${hr}-affix-wrapper-sm`]:Me==="small",[`${hr}-affix-wrapper-lg`]:Me==="large",[`${hr}-affix-wrapper-rtl`]:Ut==="rtl",[`${hr}-affix-wrapper-borderless`]:!pn},Hi),wrapper:Ne()({[`${Dt}-rtl`]:Ut==="rtl",[`${hr}-wrapper-disabled`]:Ge},Hi),group:Ne()({[`${hr}-group-wrapper-sm`]:Me==="small",[`${hr}-group-wrapper-lg`]:Me==="large",[`${hr}-group-wrapper-rtl`]:Ut==="rtl"},(0,er.Z)(`${hr}-group-wrapper`,ge,Fi),Hi)}},Ki));return Gn(Er)}),de=xt,st=Ie=>Be.createElement(lr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Be.createElement(xt,Object.assign({},Ie)));de._InternalPanelDoNotUseOrYouWillBeFired=st;var tt=de},9432:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return se},n:function(){return Y}});var pe=x(19248),Ae=x(92310),P=x.n(Ae),Ne=x(93681),te=x(8654),V=x(59301),S=x(19080),g=x(36355),F=x(1684),v=x(19716),$=x(32441),_=x(33234),M=x(59412),O=x(9937);function T(ne){return!!(ne.prefix||ne.suffix||ne.allowClear)}var L=function(ne,J){var W={};for(var K in ne)Object.prototype.hasOwnProperty.call(ne,K)&&J.indexOf(K)<0&&(W[K]=ne[K]);if(ne!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,K=Object.getOwnPropertySymbols(ne);le<K.length;le++)J.indexOf(K[le])<0&&Object.prototype.propertyIsEnumerable.call(ne,K[le])&&(W[K[le]]=ne[K[le]]);return W};function Y(ne,J){if(!ne)return;ne.focus(J);const{cursor:W}=J||{};if(W){const K=ne.value.length;switch(W){case"start":ne.setSelectionRange(0,0);break;case"end":ne.setSelectionRange(K,K);break;default:ne.setSelectionRange(0,K);break}}}var se=(0,V.forwardRef)((ne,J)=>{var W;const{prefixCls:K,bordered:le=!0,status:me,size:Oe,disabled:Be,onBlur:Ue,onFocus:ee,suffix:fe,allowClear:D,addonAfter:Ye,addonBefore:Le,className:Ce,style:Te,styles:be,rootClassName:ke,onChange:he,classNames:Ee}=ne,Xe=L(ne,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:et,direction:ze,input:qe}=V.useContext(g.E_),Et=et("input",K),Lt=(0,V.useRef)(null),[Ot,sr]=(0,O.ZP)(Et),{compactSize:er,compactItemClassnames:yr}=(0,_.ri)(Et,ze),lr=(0,v.Z)(xt=>{var de;return(de=Oe!=null?Oe:er)!==null&&de!==void 0?de:xt}),G=V.useContext(F.Z),dt=Be!=null?Be:G,{status:I,hasFeedback:m,feedbackIcon:u}=(0,V.useContext)($.aM),C=(0,S.F)(I,me),q=T(ne)||!!m,Se=(0,V.useRef)(q);(0,V.useEffect)(()=>{var xt;q&&Se.current,Se.current=q},[q]);const H=(0,M.Z)(Lt,!0),ie=xt=>{H(),Ue==null||Ue(xt)},Qe=xt=>{H(),ee==null||ee(xt)},we=xt=>{H(),he==null||he(xt)},ye=(m||fe)&&V.createElement(V.Fragment,null,fe,m&&u);let je;return typeof D=="object"&&(D!=null&&D.clearIcon)?je=D:D&&(je={clearIcon:V.createElement(pe.Z,null)}),Ot(V.createElement(Ne.default,Object.assign({ref:(0,te.sQ)(J,Lt),prefixCls:Et,autoComplete:qe==null?void 0:qe.autoComplete},Xe,{disabled:dt,onBlur:ie,onFocus:Qe,style:Object.assign(Object.assign({},qe==null?void 0:qe.style),Te),styles:Object.assign(Object.assign({},qe==null?void 0:qe.styles),be),suffix:ye,allowClear:je,className:P()(Ce,ke,yr,qe==null?void 0:qe.className),onChange:we,addonAfter:Ye&&V.createElement(_.BR,null,V.createElement($.Ux,{override:!0,status:!0},Ye)),addonBefore:Le&&V.createElement(_.BR,null,V.createElement($.Ux,{override:!0,status:!0},Le)),classNames:Object.assign(Object.assign(Object.assign({},Ee),qe==null?void 0:qe.classNames),{input:P()({[`${Et}-sm`]:lr==="small",[`${Et}-lg`]:lr==="large",[`${Et}-rtl`]:ze==="rtl",[`${Et}-borderless`]:!le},!q&&(0,S.Z)(Et,C),Ee==null?void 0:Ee.input,(W=qe==null?void 0:qe.classNames)===null||W===void 0?void 0:W.input,sr)}),classes:{affixWrapper:P()({[`${Et}-affix-wrapper-sm`]:lr==="small",[`${Et}-affix-wrapper-lg`]:lr==="large",[`${Et}-affix-wrapper-rtl`]:ze==="rtl",[`${Et}-affix-wrapper-borderless`]:!le},(0,S.Z)(`${Et}-affix-wrapper`,C,m),sr),wrapper:P()({[`${Et}-group-rtl`]:ze==="rtl"},sr),group:P()({[`${Et}-group-wrapper-sm`]:lr==="small",[`${Et}-group-wrapper-lg`]:lr==="large",[`${Et}-group-wrapper-rtl`]:ze==="rtl",[`${Et}-group-wrapper-disabled`]:dt},(0,S.Z)(`${Et}-group-wrapper`,C,m),sr)}})))})},1643:function(un,Tt,x){"use strict";var pe=x(19248),Ae=x(92310),P=x.n(Ae),Ne=x(9296),te=x(59301),V=x(19080),S=x(36355),g=x(1684),F=x(19716),v=x(32441),$=x(9432),_=x(9937),M=function(T,L){var Y={};for(var R in T)Object.prototype.hasOwnProperty.call(T,R)&&L.indexOf(R)<0&&(Y[R]=T[R]);if(T!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,R=Object.getOwnPropertySymbols(T);se<R.length;se++)L.indexOf(R[se])<0&&Object.prototype.propertyIsEnumerable.call(T,R[se])&&(Y[R[se]]=T[R[se]]);return Y};const O=(0,te.forwardRef)((T,L)=>{const{prefixCls:Y,bordered:R=!0,size:se,disabled:ne,status:J,allowClear:W,showCount:K,classNames:le,rootClassName:me,className:Oe}=T,Be=M(T,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ue,direction:ee}=te.useContext(S.E_),fe=(0,F.Z)(se),D=te.useContext(g.Z),Ye=ne!=null?ne:D,{status:Le,hasFeedback:Ce,feedbackIcon:Te}=te.useContext(v.aM),be=(0,V.F)(Le,J),ke=te.useRef(null);te.useImperativeHandle(L,()=>{var ze;return{resizableTextArea:(ze=ke.current)===null||ze===void 0?void 0:ze.resizableTextArea,focus:qe=>{var Et,Lt;(0,$.n)((Lt=(Et=ke.current)===null||Et===void 0?void 0:Et.resizableTextArea)===null||Lt===void 0?void 0:Lt.textArea,qe)},blur:()=>{var qe;return(qe=ke.current)===null||qe===void 0?void 0:qe.blur()}}});const he=Ue("input",Y);let Ee;typeof W=="object"&&(W!=null&&W.clearIcon)?Ee=W:W&&(Ee={clearIcon:te.createElement(pe.Z,null)});const[Xe,et]=(0,_.ZP)(he);return Xe(te.createElement(Ne.default,Object.assign({},Be,{disabled:Ye,allowClear:Ee,className:P()(Oe,me),classes:{affixWrapper:P()(`${he}-textarea-affix-wrapper`,{[`${he}-affix-wrapper-rtl`]:ee==="rtl",[`${he}-affix-wrapper-borderless`]:!R,[`${he}-affix-wrapper-sm`]:fe==="small",[`${he}-affix-wrapper-lg`]:fe==="large",[`${he}-textarea-show-count`]:K},(0,V.Z)(`${he}-affix-wrapper`,be),et)},classNames:Object.assign(Object.assign({},le),{textarea:P()({[`${he}-borderless`]:!R,[`${he}-sm`]:fe==="small",[`${he}-lg`]:fe==="large"},(0,V.Z)(he,be),et,le==null?void 0:le.textarea)}),prefixCls:he,suffix:Ce&&te.createElement("span",{className:`${he}-textarea-suffix`},Te),showCount:K,ref:ke})))});Tt.Z=O},59412:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ae}});var pe=x(59301);function Ae(P,Ne){const te=(0,pe.useRef)([]),V=()=>{te.current.push(setTimeout(()=>{var S,g,F,v;!((S=P.current)===null||S===void 0)&&S.input&&((g=P.current)===null||g===void 0?void 0:g.input.getAttribute("type"))==="password"&&(!((F=P.current)===null||F===void 0)&&F.input.hasAttribute("value"))&&((v=P.current)===null||v===void 0||v.input.removeAttribute("value"))}))};return(0,pe.useEffect)(()=>(Ne&&V(),()=>te.current.forEach(S=>{S&&clearTimeout(S)})),[]),V}},92832:function(un,Tt,x){"use strict";x.d(Tt,{default:function(){return fe}});var pe=x(92310),Ae=x.n(pe),P=x(59301),Ne=x(36355),te=x(32441),V=x(9937),g=D=>{const{getPrefixCls:Ye,direction:Le}=(0,P.useContext)(Ne.E_),{prefixCls:Ce,className:Te}=D,be=Ye("input-group",Ce),ke=Ye("input"),[he,Ee]=(0,V.ZP)(ke),Xe=Ae()(be,{[`${be}-lg`]:D.size==="large",[`${be}-sm`]:D.size==="small",[`${be}-compact`]:D.compact,[`${be}-rtl`]:Le==="rtl"},Ee,Te),et=(0,P.useContext)(te.aM),ze=(0,P.useMemo)(()=>Object.assign(Object.assign({},et),{isFormItemInput:!1}),[et]);return he(P.createElement("span",{className:Xe,style:D.style,onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onFocus:D.onFocus,onBlur:D.onBlur},P.createElement(te.aM.Provider,{value:ze},D.children)))},F=x(9432),v=x(73331),$=x(15277),_=x(2738),M=x(8654),O=x(59412),T=function(D,Ye){var Le={};for(var Ce in D)Object.prototype.hasOwnProperty.call(D,Ce)&&Ye.indexOf(Ce)<0&&(Le[Ce]=D[Ce]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ce=Object.getOwnPropertySymbols(D);Te<Ce.length;Te++)Ye.indexOf(Ce[Te])<0&&Object.prototype.propertyIsEnumerable.call(D,Ce[Te])&&(Le[Ce[Te]]=D[Ce[Te]]);return Le};const L=D=>D?P.createElement($.Z,null):P.createElement(v.Z,null),Y={click:"onClick",hover:"onMouseOver"};var se=P.forwardRef((D,Ye)=>{const{visibilityToggle:Le=!0}=D,Ce=typeof Le=="object"&&Le.visible!==void 0,[Te,be]=(0,P.useState)(()=>Ce?Le.visible:!1),ke=(0,P.useRef)(null);P.useEffect(()=>{Ce&&be(Le.visible)},[Ce,Le]);const he=(0,O.Z)(ke),Ee=()=>{const{disabled:dt}=D;dt||(Te&&he(),be(I=>{var m;const u=!I;return typeof Le=="object"&&((m=Le.onVisibleChange)===null||m===void 0||m.call(Le,u)),u}))},Xe=dt=>{const{action:I="click",iconRender:m=L}=D,u=Y[I]||"",C=m(Te),q={[u]:Ee,className:`${dt}-icon`,key:"passwordIcon",onMouseDown:Se=>{Se.preventDefault()},onMouseUp:Se=>{Se.preventDefault()}};return P.cloneElement(P.isValidElement(C)?C:P.createElement("span",null,C),q)},{className:et,prefixCls:ze,inputPrefixCls:qe,size:Et}=D,Lt=T(D,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ot}=P.useContext(Ne.E_),sr=Ot("input",qe),er=Ot("input-password",ze),yr=Le&&Xe(er),lr=Ae()(er,et,{[`${er}-${Et}`]:!!Et}),G=Object.assign(Object.assign({},(0,_.Z)(Lt,["suffix","iconRender","visibilityToggle"])),{type:Te?"text":"password",className:lr,prefixCls:sr,suffix:yr});return Et&&(G.size=Et),P.createElement(F.Z,Object.assign({ref:(0,M.sQ)(Ye,ke)},G))}),ne=x(47472),J=x(92343),W=x(3113),K=x(19716),le=x(33234),me=function(D,Ye){var Le={};for(var Ce in D)Object.prototype.hasOwnProperty.call(D,Ce)&&Ye.indexOf(Ce)<0&&(Le[Ce]=D[Ce]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,Ce=Object.getOwnPropertySymbols(D);Te<Ce.length;Te++)Ye.indexOf(Ce[Te])<0&&Object.prototype.propertyIsEnumerable.call(D,Ce[Te])&&(Le[Ce[Te]]=D[Ce[Te]]);return Le},Be=P.forwardRef((D,Ye)=>{const{prefixCls:Le,inputPrefixCls:Ce,className:Te,size:be,suffix:ke,enterButton:he=!1,addonAfter:Ee,loading:Xe,disabled:et,onSearch:ze,onChange:qe,onCompositionStart:Et,onCompositionEnd:Lt}=D,Ot=me(D,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:sr,direction:er}=P.useContext(Ne.E_),yr=P.useRef(!1),lr=sr("input-search",Le),G=sr("input",Ce),{compactSize:dt}=(0,le.ri)(lr,er),I=(0,K.Z)(st=>{var tt;return(tt=be!=null?be:dt)!==null&&tt!==void 0?tt:st}),m=P.useRef(null),u=st=>{st&&st.target&&st.type==="click"&&ze&&ze(st.target.value,st,{source:"clear"}),qe&&qe(st)},C=st=>{var tt;document.activeElement===((tt=m.current)===null||tt===void 0?void 0:tt.input)&&st.preventDefault()},q=st=>{var tt,Ie;ze&&ze((Ie=(tt=m.current)===null||tt===void 0?void 0:tt.input)===null||Ie===void 0?void 0:Ie.value,st,{source:"input"})},Se=st=>{yr.current||Xe||q(st)},H=typeof he=="boolean"?P.createElement(ne.Z,null):null,ie=`${lr}-button`;let Qe;const we=he||{},ye=we.type&&we.type.__ANT_BUTTON===!0;ye||we.type==="button"?Qe=(0,J.Tm)(we,Object.assign({onMouseDown:C,onClick:st=>{var tt,Ie;(Ie=(tt=we==null?void 0:we.props)===null||tt===void 0?void 0:tt.onClick)===null||Ie===void 0||Ie.call(tt,st),q(st)},key:"enterButton"},ye?{className:ie,size:I}:{})):Qe=P.createElement(W.ZP,{className:ie,type:he?"primary":void 0,size:I,disabled:et,key:"enterButton",onMouseDown:C,onClick:q,loading:Xe,icon:H},he),Ee&&(Qe=[Qe,(0,J.Tm)(Ee,{key:"addonAfter"})]);const je=Ae()(lr,{[`${lr}-rtl`]:er==="rtl",[`${lr}-${I}`]:!!I,[`${lr}-with-button`]:!!he},Te),xt=st=>{yr.current=!0,Et==null||Et(st)},de=st=>{yr.current=!1,Lt==null||Lt(st)};return P.createElement(F.Z,Object.assign({ref:(0,M.sQ)(m,Ye),onPressEnter:Se},Ot,{size:I,onCompositionStart:xt,onCompositionEnd:de,prefixCls:G,addonAfter:Qe,suffix:ke,onChange:u,className:je,disabled:et}))}),Ue=x(1643);const ee=F.Z;ee.Group=g,ee.Search=Be,ee.TextArea=Ue.Z,ee.Password=se;var fe=ee},9937:function(un,Tt,x){"use strict";x.d(Tt,{M1:function(){return S},TM:function(){return J},Xy:function(){return g},bi:function(){return $},e5:function(){return ne},ik:function(){return _},nz:function(){return te},pU:function(){return V},s7:function(){return M},x0:function(){return v}});var pe=x(17313),Ae=x(74207),P=x(37613),Ne=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})))}),F=W=>{const{paddingBlockLG:K,fontSizeLG:le,lineHeightLG:me,borderRadiusLG:Oe,paddingInlineLG:Be}=W;return{padding:`${K}px ${Be}px`,fontSize:le,lineHeight:me,borderRadius:Oe}},v=W=>({padding:`${W.paddingBlockSM}px ${W.paddingInlineSM}px`,borderRadius:W.borderRadiusSM}),$=(W,K)=>{const{componentCls:le,colorError:me,colorWarning:Oe,errorActiveShadow:Be,warningActiveShadow:Ue,colorErrorBorderHover:ee,colorWarningBorderHover:fe}=W;return{[`&-status-error:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:me,"&:hover":{borderColor:ee},"&:focus, &-focused":Object.assign({},S((0,P.TS)(W,{activeBorderColor:me,activeShadow:Be}))),[`${le}-prefix, ${le}-suffix`]:{color:me}},[`&-status-warning:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:Oe,"&:hover":{borderColor:fe},"&:focus, &-focused":Object.assign({},S((0,P.TS)(W,{activeBorderColor:Oe,activeShadow:Ue}))),[`${le}-prefix, ${le}-suffix`]:{color:Oe}}}},_=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({},F(W)),"&-sm":Object.assign({},v(W)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),M=W=>{const{componentCls:K,antCls:le}=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({},F(W)),[`&-sm ${K}, &-sm > ${K}-group-addon`]:Object.assign({},v(W)),[`&-lg ${le}-select-single ${le}-select-selector`]:{height:W.controlHeightLG},[`&-sm ${le}-select-single ${le}-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,[`${le}-select`]:{margin:`-${W.paddingBlock+1}px -${W.paddingInline}px`,[`&${le}-select-single:not(${le}-select-customize-input)`]:{[`${le}-select-selector`]:{backgroundColor:"inherit",border:`${W.lineWidth}px ${W.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${le}-select-selector`]:{color:W.colorPrimary}}},[`${le}-cascader-picker`]:{margin:`-9px -${W.paddingInline}px`,backgroundColor:"transparent",[`${le}-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,[`${le}-select ${le}-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,[`${le}-select ${le}-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,pe.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,
& > ${le}-picker-range
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-W.lineWidth,borderInlineEndWidth:W.lineWidth},[`${K}`]:{float:"none"},[`& > ${le}-select > ${le}-select-selector,
& > ${le}-select-auto-complete ${K},
& > ${le}-cascader-picker ${K},
& > ${K}-group-wrapper ${K}`]:{borderInlineEndWidth:W.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${le}-select-focused`]:{zIndex:1},[`& > ${le}-select > ${le}-select-arrow`]:{zIndex:1},[`& > *:first-child,
& > ${le}-select:first-child > ${le}-select-selector,
& > ${le}-select-auto-complete:first-child ${K},
& > ${le}-cascader-picker:first-child ${K}`]:{borderStartStartRadius:W.borderRadius,borderEndStartRadius:W.borderRadius},[`& > *:last-child,
& > ${le}-select:last-child > ${le}-select-selector,
& > ${le}-cascader-picker:last-child ${K},
& > ${le}-cascader-picker-focused:last-child ${K}`]:{borderInlineEndWidth:W.lineWidth,borderStartEndRadius:W.borderRadius,borderEndEndRadius:W.borderRadius},[`& > ${le}-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}}}})}},O=W=>{const{componentCls:K,controlHeightSM:le,lineWidth:me}=W,Be=(le-me*2-16)/2;return{[K]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pe.Wf)(W)),_(W)),$(W,K)),{'&[type="color"]':{height:W.controlHeight,[`&${K}-lg`]:{height:W.controlHeightLG},[`&${K}-sm`]:{height:le,paddingTop:Be,paddingBottom:Be}},'&[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:le,colorTextDescription:me,motionDurationSlow:Oe,colorIcon:Be,colorIconHover:Ue,iconCls:ee}=W;return{[`${K}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_(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:me},"&-show-count-has-suffix":{marginInlineEnd:W.paddingXXS},"&-prefix":{marginInlineEnd:le},"&-suffix":{marginInlineStart:le}}}),T(W)),{[`${ee}${K}-password-icon`]:{color:Be,cursor:"pointer",transition:`all ${Oe}`,"&:hover":{color:Ue}}}),$(W,`${K}-affix-wrapper`))}},Y=W=>{const{componentCls:K,colorError:le,colorWarning:me,borderRadiusLG:Oe,borderRadiusSM:Be}=W;return{[`${K}-group`]:Object.assign(Object.assign(Object.assign({},(0,pe.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:Be}},"&-status-error":{[`${K}-group-addon`]:{color:le,borderColor:le}},"&-status-warning":{[`${K}-group-addon`]:{color:me,borderColor:me}},"&-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:le}=W,me=`${K}-search`;return{[me]:{[`${K}`]:{"&:hover, &:focus":{borderColor:W.colorPrimaryHover,[`+ ${K}-group-addon ${me}-button:not(${le}-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,[`${me}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:W.borderRadius,borderEndEndRadius:W.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${me}-button:not(${le}-btn-primary)`]:{color:W.colorTextDescription,"&:hover":{color:W.colorPrimaryHover},"&:active":{color:W.colorPrimaryActive},[`&${le}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${me}-button`]:{height:W.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${me}-button`]:{height:W.controlHeightLG},[`&-small ${me}-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}}}}},se=W=>{const{componentCls:K,paddingLG:le}=W,me=`${K}-textarea`;return{[me]:{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:le}},[`&-affix-wrapper${me}-has-feedback`]:{[`${K}`]:{paddingInlineEnd:le}},[`&-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},[`${me}-suffix`]:{position:"absolute",top:0,insetInlineEnd:W.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ne(W){return(0,P.TS)(W,{inputAffixPadding:W.paddingXXS})}const J=W=>{const{controlHeight:K,fontSize:le,lineHeight:me,lineWidth:Oe,controlHeightSM:Be,controlHeightLG:Ue,fontSizeLG:ee,lineHeightLG:fe,paddingSM:D,controlPaddingHorizontalSM:Ye,controlPaddingHorizontal:Le,colorFillAlter:Ce,colorPrimaryHover:Te,controlOutlineWidth:be,controlOutline:ke,colorErrorOutline:he,colorWarningOutline:Ee}=W;return{paddingBlock:Math.max(Math.round((K-le*me)/2*10)/10-Oe,3),paddingBlockSM:Math.max(Math.round((Be-le*me)/2*10)/10-Oe,0),paddingBlockLG:Math.ceil((Ue-ee*fe)/2*10)/10-Oe,paddingInline:D-Oe,paddingInlineSM:Ye-Oe,paddingInlineLG:Le-Oe,addonBg:Ce,activeBorderColor:Te,hoverBorderColor:Te,activeShadow:`0 0 0 ${be}px ${ke}`,errorActiveShadow:`0 0 0 ${be}px ${he}`,warningActiveShadow:`0 0 0 ${be}px ${Ee}`}};Tt.ZP=(0,Ne.Z)("Input",W=>{const K=(0,P.TS)(W,ne(W));return[O(K),se(K),L(K),Y(K),R(K),(0,Ae.c)(K)]},J)},45818:function(un,Tt,x){"use strict";x.d(Tt,{D:function(){return ne},Z:function(){return K}});var pe=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"},Ne=P,te=x(7657),V=function(me,Oe){return Ae.createElement(te.Z,(0,pe.Z)({},me,{ref:Oe,icon:Ne}))},S=Ae.forwardRef(V),g=S,F=x(33853),v=x(38819),$=x(92310),_=x.n($),M=x(2738),T=le=>!isNaN(parseFloat(le))&&isFinite(le),L=x(36355),Y=x(84966),R=function(le,me){var Oe={};for(var Be in le)Object.prototype.hasOwnProperty.call(le,Be)&&me.indexOf(Be)<0&&(Oe[Be]=le[Be]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Be=Object.getOwnPropertySymbols(le);Ue<Be.length;Ue++)me.indexOf(Be[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,Be[Ue])&&(Oe[Be[Ue]]=le[Be[Ue]]);return Oe};const se={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ne=Ae.createContext({}),J=(()=>{let le=0;return function(){let me=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return le+=1,`${me}${le}`}})();var K=Ae.forwardRef((le,me)=>{const{prefixCls:Oe,className:Be,trigger:Ue,children:ee,defaultCollapsed:fe=!1,theme:D="dark",style:Ye={},collapsible:Le=!1,reverseArrow:Ce=!1,width:Te=200,collapsedWidth:be=80,zeroWidthTriggerStyle:ke,breakpoint:he,onCollapse:Ee,onBreakpoint:Xe}=le,et=R(le,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:ze}=(0,Ae.useContext)(Y.Gs),[qe,Et]=(0,Ae.useState)("collapsed"in le?le.collapsed:fe),[Lt,Ot]=(0,Ae.useState)(!1);(0,Ae.useEffect)(()=>{"collapsed"in le&&Et(le.collapsed)},[le.collapsed]);const sr=(I,m)=>{"collapsed"in le||Et(I),Ee==null||Ee(I,m)},er=(0,Ae.useRef)();er.current=I=>{Ot(I.matches),Xe==null||Xe(I.matches),qe!==I.matches&&sr(I.matches,"responsive")},(0,Ae.useEffect)(()=>{function I(u){return er.current(u)}let m;if(typeof window!="undefined"){const{matchMedia:u}=window;if(u&&he&&he in se){m=u(`(max-width: ${se[he]})`);try{m.addEventListener("change",I)}catch(C){m.addListener(I)}I(m)}}return()=>{try{m==null||m.removeEventListener("change",I)}catch(u){m==null||m.removeListener(I)}}},[he]),(0,Ae.useEffect)(()=>{const I=J("ant-sider-");return ze.addSider(I),()=>ze.removeSider(I)},[]);const yr=()=>{sr(!qe,"clickTrigger")},{getPrefixCls:lr}=(0,Ae.useContext)(L.E_),G=()=>{const I=lr("layout-sider",Oe),m=(0,M.Z)(et,["collapsed"]),u=qe?be:Te,C=T(u)?`${u}px`:String(u),q=parseFloat(String(be||0))===0?Ae.createElement("span",{onClick:yr,className:_()(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${Ce?"right":"left"}`),style:ke},Ue||Ae.createElement(g,null)):null,ie={expanded:Ce?Ae.createElement(v.Z,null):Ae.createElement(F.Z,null),collapsed:Ce?Ae.createElement(F.Z,null):Ae.createElement(v.Z,null)}[qe?"collapsed":"expanded"],Qe=Ue!==null?q||Ae.createElement("div",{className:`${I}-trigger`,onClick:yr,style:{width:C}},Ue||ie):null,we=Object.assign(Object.assign({},Ye),{flex:`0 0 ${C}`,maxWidth:C,minWidth:C,width:C}),ye=_()(I,`${I}-${D}`,{[`${I}-collapsed`]:!!qe,[`${I}-has-trigger`]:Le&&Ue!==null&&!q,[`${I}-below`]:!!Lt,[`${I}-zero-width`]:parseFloat(C)===0},Be);return Ae.createElement("aside",Object.assign({className:ye},m,{style:we,ref:me}),Ae.createElement("div",{className:`${I}-children`},ee),Le||Lt&&q?Qe:null)},dt=Ae.useMemo(()=>({siderCollapsed:qe}),[qe]);return Ae.createElement(ne.Provider,{value:dt},G())})},84966:function(un,Tt,x){"use strict";x.d(Tt,{VY:function(){return ne},$_:function(){return se},h4:function(){return R},Gs:function(){return M},ZP:function(){return J}});var pe=x(94480),Ae=x(92310),P=x.n(Ae),Ne=x(2738),te=x(59301),V=x(36355),S=x(83116),F=W=>{const{componentCls:K,bodyBg:le,lightSiderBg:me,lightTriggerBg:Oe,lightTriggerColor:Be}=W;return{[`${K}-sider-light`]:{background:me,[`${K}-sider-trigger`]:{color:Be,background:Oe},[`${K}-sider-zero-width-trigger`]:{color:Be,background:Oe,border:`1px solid ${le}`,borderInlineStart:0}}}};const v=W=>{const{antCls:K,componentCls:le,colorText:me,triggerColor:Oe,footerBg:Be,triggerBg:Ue,headerHeight:ee,headerPadding:fe,headerColor:D,footerPadding:Ye,triggerHeight:Le,zeroTriggerHeight:Ce,zeroTriggerWidth:Te,motionDurationMid:be,motionDurationSlow:ke,fontSize:he,borderRadius:Ee,bodyBg:Xe,headerBg:et,siderBg:ze}=W;return{[le]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:Xe,"&, *":{boxSizing:"border-box"},[`&${le}-has-sider`]:{flexDirection:"row",[`> ${le}, > ${le}-content`]:{width:0}},[`${le}-header, &${le}-footer`]:{flex:"0 0 auto"},[`${le}-sider`]:{position:"relative",minWidth:0,background:ze,transition:`all ${be}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${K}-menu${K}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Le},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Le,color:Oe,lineHeight:`${Le}px`,textAlign:"center",background:Ue,cursor:"pointer",transition:`all ${be}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:ee,insetInlineEnd:-Te,zIndex:1,width:Te,height:Ce,color:Oe,fontSize:W.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:ze,borderStartStartRadius:0,borderStartEndRadius:Ee,borderEndEndRadius:Ee,borderEndStartRadius:0,cursor:"pointer",transition:`background ${ke} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${ke}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Te,borderStartStartRadius:Ee,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ee}}}}},F(W)),{"&-rtl":{direction:"rtl"}}),[`${le}-header`]:{height:ee,padding:fe,color:D,lineHeight:`${ee}px`,background:et,[`${K}-menu`]:{lineHeight:"inherit"}},[`${le}-footer`]:{padding:Ye,color:me,fontSize:he,background:Be},[`${le}-content`]:{flex:"auto",minHeight:0}}};var $=(0,S.Z)("Layout",W=>[v(W)],W=>{const{colorBgLayout:K,controlHeight:le,controlHeightLG:me,colorText:Oe,controlHeightSM:Be,marginXXS:Ue,colorTextLightSolid:ee,colorBgContainer:fe}=W,D=me*1.25;return{colorBgHeader:"#001529",colorBgBody:K,colorBgTrigger:"#002140",bodyBg:K,headerBg:"#001529",headerHeight:le*2,headerPadding:`0 ${D}px`,headerColor:Oe,footerPadding:`${Be}px ${D}px`,footerBg:K,siderBg:"#001529",triggerHeight:me+Ue*2,triggerBg:"#002140",triggerColor:ee,zeroTriggerWidth:me,zeroTriggerHeight:me,lightSiderBg:fe,lightTriggerBg:fe,lightTriggerColor:Oe}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),_=function(W,K){var le={};for(var me in W)Object.prototype.hasOwnProperty.call(W,me)&&K.indexOf(me)<0&&(le[me]=W[me]);if(W!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Oe=0,me=Object.getOwnPropertySymbols(W);Oe<me.length;Oe++)K.indexOf(me[Oe])<0&&Object.prototype.propertyIsEnumerable.call(W,me[Oe])&&(le[me[Oe]]=W[me[Oe]]);return le};const M=te.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function O(W){let{suffixCls:K,tagName:le,displayName:me}=W;return Oe=>te.forwardRef((Ue,ee)=>te.createElement(Oe,Object.assign({ref:ee,suffixCls:K,tagName:le},Ue)))}const T=te.forwardRef((W,K)=>{const{prefixCls:le,suffixCls:me,className:Oe,tagName:Be}=W,Ue=_(W,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:ee}=te.useContext(V.E_),fe=ee("layout",le),[D,Ye]=$(fe),Le=me?`${fe}-${me}`:fe;return D(te.createElement(Be,Object.assign({className:P()(le||Le,Oe,Ye),ref:K},Ue)))}),L=te.forwardRef((W,K)=>{const{direction:le}=te.useContext(V.E_),[me,Oe]=te.useState([]),{prefixCls:Be,className:Ue,rootClassName:ee,children:fe,hasSider:D,tagName:Ye,style:Le}=W,Ce=_(W,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Te=(0,Ne.Z)(Ce,["suffixCls"]),{getPrefixCls:be,layout:ke}=te.useContext(V.E_),he=be("layout",Be),[Ee,Xe]=$(he),et=P()(he,{[`${he}-has-sider`]:typeof D=="boolean"?D:me.length>0,[`${he}-rtl`]:le==="rtl"},ke==null?void 0:ke.className,Ue,ee,Xe),ze=te.useMemo(()=>({siderHook:{addSider:qe=>{Oe(Et=>[].concat((0,pe.Z)(Et),[qe]))},removeSider:qe=>{Oe(Et=>Et.filter(Lt=>Lt!==qe))}}}),[]);return Ee(te.createElement(M.Provider,{value:ze},te.createElement(Ye,Object.assign({ref:K,className:et,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),Le)},Te),fe)))}),Y=O({tagName:"div",displayName:"Layout"})(L),R=O({suffixCls:"header",tagName:"header",displayName:"Header"})(T),se=O({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(T),ne=O({suffixCls:"content",tagName:"main",displayName:"Content"})(T);var J=Y},40875:function(un,Tt,x){"use strict";x.d(Tt,{J:function(){return V}});var pe=x(59301),Ae=x(33234),P=x(70425),Ne=function(S,g){var F={};for(var v in S)Object.prototype.hasOwnProperty.call(S,v)&&g.indexOf(v)<0&&(F[v]=S[v]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,v=Object.getOwnPropertySymbols(S);$<v.length;$++)g.indexOf(v[$])<0&&Object.prototype.propertyIsEnumerable.call(S,v[$])&&(F[v[$]]=S[v[$]]);return F};const te=pe.createContext(null),V=pe.forwardRef((S,g)=>{const{children:F}=S,v=Ne(S,["children"]),$=pe.useContext(te),_=pe.useMemo(()=>Object.assign(Object.assign({},$),v),[$,v.prefixCls,v.mode,v.selectable]);return pe.createElement(te.Provider,{value:_},pe.createElement(Ae.BR,null,(0,P.supportNodeRef)(F)?pe.cloneElement(F,{ref:g}):F))});Tt.Z=te},20834:function(un,Tt,x){"use strict";x.d(Tt,{default:function(){return dt}});var pe=x(15285),Ae=x(59301),P=x(45818),Ne=x(92310),te=x.n(Ne),V=x(36355),S=function(I,m){var u={};for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&m.indexOf(C)<0&&(u[C]=I[C]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,C=Object.getOwnPropertySymbols(I);q<C.length;q++)m.indexOf(C[q])<0&&Object.prototype.propertyIsEnumerable.call(I,C[q])&&(u[C[q]]=I[C[q]]);return u},F=I=>{const{prefixCls:m,className:u,dashed:C}=I,q=S(I,["prefixCls","className","dashed"]),{getPrefixCls:Se}=Ae.useContext(V.E_),H=Se("menu",m),ie=te()({[`${H}-item-divider-dashed`]:!!C},u);return Ae.createElement(pe.iz,Object.assign({className:ie},q))},v=x(11592),$=x(2738),_=x(6848),M=x(92343),T=(0,Ae.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Y=I=>{var m;const{className:u,children:C,icon:q,title:Se,danger:H}=I,{prefixCls:ie,firstLevel:Qe,direction:we,disableMenuItemTitleTooltip:ye,inlineCollapsed:je}=Ae.useContext(T),xt=lt=>{const Ut=Ae.createElement("span",{className:`${ie}-title-content`},C);return(!q||(0,M.l$)(C)&&C.type==="span")&&C&&lt&&Qe&&typeof C=="string"?Ae.createElement("div",{className:`${ie}-inline-collapsed-noicon`},C.charAt(0)):Ut},{siderCollapsed:de}=Ae.useContext(P.D);let st=Se;typeof Se=="undefined"?st=Qe?C:"":Se===!1&&(st="");const tt={title:st};!de&&!je&&(tt.title=null,tt.open=!1);const Ie=(0,v.Z)(C).length;let De=Ae.createElement(pe.ck,Object.assign({},(0,$.Z)(I,["title","icon","danger"]),{className:te()({[`${ie}-item-danger`]:H,[`${ie}-item-only-child`]:(q?Ie+1:Ie)===1},u),title:typeof Se=="string"?Se:void 0}),(0,M.Tm)(q,{className:te()((0,M.l$)(q)?(m=q.props)===null||m===void 0?void 0:m.className:"",`${ie}-item-icon`)}),xt(je));return ye||(De=Ae.createElement(_.Z,Object.assign({},tt,{placement:we==="rtl"?"left":"right",overlayClassName:`${ie}-inline-collapsed-tooltip`}),De)),De},se=I=>{var m;const{popupClassName:u,icon:C,title:q,theme:Se}=I,H=Ae.useContext(T),{prefixCls:ie,inlineCollapsed:Qe,theme:we}=H,ye=(0,pe.Xl)();let je;if(!C)je=Qe&&!ye.length&&q&&typeof q=="string"?Ae.createElement("div",{className:`${ie}-inline-collapsed-noicon`},q.charAt(0)):Ae.createElement("span",{className:`${ie}-title-content`},q);else{const de=(0,M.l$)(q)&&q.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`)}),de?q:Ae.createElement("span",{className:`${ie}-title-content`},q))}const xt=Ae.useMemo(()=>Object.assign(Object.assign({},H),{firstLevel:!1}),[H]);return Ae.createElement(T.Provider,{value:xt},Ae.createElement(pe.Wd,Object.assign({},(0,$.Z)(I,["icon"]),{title:je,popupClassName:te()(ie,u,`${ie}-${Se||we}`)})))},ne=x(18785),J=x(70425),W=x(62892),K=x(40875),le=function(I,m){var u={};for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&m.indexOf(C)<0&&(u[C]=I[C]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,C=Object.getOwnPropertySymbols(I);q<C.length;q++)m.indexOf(C[q])<0&&Object.prototype.propertyIsEnumerable.call(I,C[q])&&(u[C[q]]=I[C[q]]);return u};function me(I){return(I||[]).map((m,u)=>{if(m&&typeof m=="object"){const C=m,{label:q,children:Se,key:H,type:ie}=C,Qe=le(C,["label","children","key","type"]),we=H!=null?H:`tmp-${u}`;return Se||ie==="group"?ie==="group"?Ae.createElement(pe.BW,Object.assign({key:we},Qe,{title:q}),me(Se)):Ae.createElement(se,Object.assign({key:we},Qe,{title:q}),me(Se)):ie==="divider"?Ae.createElement(F,Object.assign({key:we},Qe)):Ae.createElement(Y,Object.assign({key:we},Qe),q)}return null}).filter(m=>m)}function Oe(I){return Ae.useMemo(()=>I&&me(I),[I])}var Be=x(64993),Ue=x(17313),ee=x(8378),fe=x(13826),D=x(29878),Ye=x(83116),Le=x(37613),Te=I=>{const{componentCls:m,motionDurationSlow:u,horizontalLineHeight:C,colorSplit:q,lineWidth:Se,lineType:H,itemPaddingInline:ie}=I;return{[`${m}-horizontal`]:{lineHeight:C,border:0,borderBottom:`${Se}px ${H} ${q}`,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 ${u}`,`background ${u}`].join(",")},[`${m}-submenu-arrow`]:{display:"none"}}}},ke=I=>{let{componentCls:m,menuArrowOffset:u}=I;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(-${u})`},"&::after":{transform:`rotate(45deg) translateY(${u})`}}}}};const he=I=>Object.assign({},(0,Ue.oN)(I));var Xe=(I,m)=>{const{componentCls:u,itemColor:C,itemSelectedColor:q,groupTitleColor:Se,itemBg:H,subMenuItemBg:ie,itemSelectedBg:Qe,activeBarHeight:we,activeBarWidth:ye,activeBarBorderWidth:je,motionDurationSlow:xt,motionEaseInOut:de,motionEaseOut:st,itemPaddingInline:tt,motionDurationMid:Ie,itemHoverColor:De,lineType:lt,colorSplit:Ut,itemDisabledColor:kt,dangerItemColor:rr,dangerItemHoverColor:Fr,dangerItemSelectedColor:kr,dangerItemActiveBg:Dr,dangerItemSelectedBg:Nr,itemHoverBg:xr,itemActiveBg:ur,menuSubMenuBg:Kr,horizontalItemSelectedColor:pn,horizontalItemSelectedBg:kn,horizontalItemBorderRadius:mn,horizontalItemHoverBg:Dn,popupBg:Ki}=I;return{[`${u}-${m}, ${u}-${m} > ${u}`]:{color:C,background:H,[`&${u}-root:focus-visible`]:Object.assign({},he(I)),[`${u}-item-group-title`]:{color:Se},[`${u}-submenu-selected`]:{[`> ${u}-submenu-title`]:{color:q}},[`${u}-item-disabled, ${u}-submenu-disabled`]:{color:`${kt} !important`},[`${u}-item:not(${u}-item-selected):not(${u}-submenu-selected)`]:{[`&:hover, > ${u}-submenu-title:hover`]:{color:De}},[`&:not(${u}-horizontal)`]:{[`${u}-item:not(${u}-item-selected)`]:{"&:hover":{backgroundColor:xr},"&:active":{backgroundColor:ur}},[`${u}-submenu-title`]:{"&:hover":{backgroundColor:xr},"&:active":{backgroundColor:ur}}},[`${u}-item-danger`]:{color:rr,[`&${u}-item:hover`]:{[`&:not(${u}-item-selected):not(${u}-submenu-selected)`]:{color:Fr}},[`&${u}-item:active`]:{background:Dr}},[`${u}-item a`]:{"&, &:hover":{color:"inherit"}},[`${u}-item-selected`]:{color:q,[`&${u}-item-danger`]:{color:kr},"a, a:hover":{color:"inherit"}},[`& ${u}-item-selected`]:{backgroundColor:Qe,[`&${u}-item-danger`]:{backgroundColor:Nr}},[`${u}-item, ${u}-submenu-title`]:{[`&:not(${u}-item-disabled):focus-visible`]:Object.assign({},he(I))},[`&${u}-submenu > ${u}`]:{backgroundColor:Kr},[`&${u}-popup > ${u}`]:{backgroundColor:Ki},[`&${u}-horizontal`]:Object.assign(Object.assign({},m==="dark"?{borderBottom:0}:{}),{[`> ${u}-item, > ${u}-submenu`]:{top:je,marginTop:-je,marginBottom:0,borderRadius:mn,"&::after":{position:"absolute",insetInline:tt,bottom:0,borderBottom:`${we}px solid transparent`,transition:`border-color ${xt} ${de}`,content:'""'},"&:hover, &-active, &-open":{background:Dn,"&::after":{borderBottomWidth:we,borderBottomColor:pn}},"&-selected":{color:pn,backgroundColor:kn,"&:hover":{backgroundColor:kn},"&::after":{borderBottomWidth:we,borderBottomColor:pn}}}}),[`&${u}-root`]:{[`&${u}-inline, &${u}-vertical`]:{borderInlineEnd:`${je}px ${lt} ${Ut}`}},[`&${u}-inline`]:{[`${u}-sub${u}-inline`]:{background:ie},[`${u}-item, ${u}-submenu-title`]:je&&ye?{width:`calc(100% + ${je}px)`}:{},[`${u}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ye}px solid ${q}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ie} ${st}`,`opacity ${Ie} ${st}`].join(","),content:'""'},[`&${u}-item-danger`]:{"&::after":{borderInlineEndColor:kr}}},[`${u}-selected, ${u}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ie} ${de}`,`opacity ${Ie} ${de}`].join(",")}}}}}};const et=I=>{const{componentCls:m,itemHeight:u,itemMarginInline:C,padding:q,menuArrowSize:Se,marginXS:H,itemMarginBlock:ie}=I,Qe=q+Se+H;return{[`${m}-item`]:{position:"relative",overflow:"hidden"},[`${m}-item, ${m}-submenu-title`]:{height:u,lineHeight:`${u}px`,paddingInline:q,overflow:"hidden",textOverflow:"ellipsis",marginInline:C,marginBlock:ie,width:`calc(100% - ${C*2}px)`},[`> ${m}-item,
> ${m}-submenu > ${m}-submenu-title`]:{height:u,lineHeight:`${u}px`},[`${m}-item-group-list ${m}-submenu-title,
${m}-submenu-title`]:{paddingInlineEnd:Qe}}};var qe=I=>{const{componentCls:m,iconCls:u,itemHeight:C,colorTextLightSolid:q,dropdownWidth:Se,controlHeightLG:H,motionDurationMid:ie,motionEaseOut:Qe,paddingXL:we,itemMarginInline:ye,fontSizeLG:je,motionDurationSlow:xt,paddingXS:de,boxShadowSecondary:st,collapsedWidth:tt,collapsedIconSize:Ie}=I,De={height:C,lineHeight:`${C}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[m]:{"&-inline, &-vertical":Object.assign({[`&${m}-root`]:{boxShadow:"none"}},et(I))},[`${m}-submenu-popup`]:{[`${m}-vertical`]:Object.assign(Object.assign({},et(I)),{boxShadow:st})}},{[`${m}-submenu-popup ${m}-vertical${m}-sub`]:{minWidth:Se,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`]:De,[`& ${m}-item-group-title`]:{paddingInlineStart:we}},[`${m}-item`]:De}},{[`${m}-inline-collapsed`]:{width:tt,[`&${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, ${u}`]:{margin:0,fontSize:Ie,lineHeight:`${C}px`,"+ span":{display:"inline-block",opacity:0}}},[`${m}-item-icon, ${u}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${m}-item-icon, ${u}`]:{display:"none"},"a, a:hover":{color:q}},[`${m}-item-group-title`]:Object.assign(Object.assign({},Ue.vS),{paddingInline:de})}}]};const Et=I=>{const{componentCls:m,motionDurationSlow:u,motionDurationMid:C,motionEaseInOut:q,motionEaseOut:Se,iconCls:H,iconSize:ie,iconMarginInlineEnd:Qe}=I;return{[`${m}-item, ${m}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${u}`,`background ${u}`,`padding ${u} ${q}`].join(","),[`${m}-item-icon, ${H}`]:{minWidth:ie,fontSize:ie,transition:[`font-size ${C} ${Se}`,`margin ${u} ${q}`,`color ${u}`].join(","),"+ span":{marginInlineStart:Qe,opacity:1,transition:[`opacity ${u} ${q}`,`margin ${u}`,`color ${u}`].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=I=>{const{componentCls:m,motionDurationSlow:u,motionEaseInOut:C,borderRadius:q,menuArrowSize:Se,menuArrowOffset:H}=I;return{[`${m}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:I.margin,width:Se,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${u} ${C}, opacity ${u}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Se*.6,height:Se*.15,backgroundColor:"currentcolor",borderRadius:q,transition:[`background ${u} ${C}`,`transform ${u} ${C}`,`top ${u} ${C}`,`color ${u} ${C}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${H})`},"&::after":{transform:`rotate(-45deg) translateY(${H})`}}}}},Ot=I=>{const{antCls:m,componentCls:u,fontSize:C,motionDurationSlow:q,motionDurationMid:Se,motionEaseInOut:H,paddingXS:ie,padding:Qe,colorSplit:we,lineWidth:ye,zIndexPopup:je,borderRadiusLG:xt,subMenuItemBorderRadius:de,menuArrowSize:st,menuArrowOffset:tt,lineType:Ie,menuPanelMaskInset:De,groupTitleLineHeight:lt,groupTitleFontSize:Ut}=I;return[{"":{[`${u}`]:Object.assign(Object.assign({},(0,Ue.dF)()),{"&-hidden":{display:"none"}})},[`${u}-submenu-hidden`]:{display:"none"}},{[u]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ue.Wf)(I)),(0,Ue.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:C,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${q} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${u}-item`]:{flex:"none"}},[`${u}-item, ${u}-submenu, ${u}-submenu-title`]:{borderRadius:I.itemBorderRadius},[`${u}-item-group-title`]:{padding:`${ie}px ${Qe}px`,fontSize:Ut,lineHeight:lt,transition:`all ${q}`},[`&-horizontal ${u}-submenu`]:{transition:[`border-color ${q} ${H}`,`background ${q} ${H}`].join(",")},[`${u}-submenu, ${u}-submenu-inline`]:{transition:[`border-color ${q} ${H}`,`background ${q} ${H}`,`padding ${Se} ${H}`].join(",")},[`${u}-submenu ${u}-sub`]:{cursor:"initial",transition:[`background ${q} ${H}`,`padding ${q} ${H}`].join(",")},[`${u}-title-content`]:{transition:`color ${q}`},[`${u}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${u}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:Ie,borderWidth:0,borderTopWidth:ye,marginBlock:ye,padding:0,"&-dashed":{borderStyle:"dashed"}}}),Et(I)),{[`${u}-item-group`]:{[`${u}-item-group-list`]:{margin:0,padding:0,[`${u}-item, ${u}-submenu-title`]:{paddingInline:`${C*2}px ${Qe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:je,borderRadius:xt,boxShadow:"none",transformOrigin:"0 0",[`&${u}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${De}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:De},"\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:I.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:I.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:I.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:I.paddingXS},[`> ${u}`]:Object.assign(Object.assign(Object.assign({borderRadius:xt},Et(I)),Lt(I)),{[`${u}-item, ${u}-submenu > ${u}-submenu-title`]:{borderRadius:de},[`${u}-submenu-title::after`]:{transition:`transform ${q} ${H}`}})}}),Lt(I)),{[`&-inline-collapsed ${u}-submenu-arrow,
&-inline ${u}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${tt})`},"&::after":{transform:`rotate(45deg) translateX(-${tt})`}},[`${u}-submenu-open${u}-submenu-inline > ${u}-submenu-title > ${u}-submenu-arrow`]:{transform:`translateY(-${st*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${tt})`},"&::before":{transform:`rotate(45deg) translateX(${tt})`}}})},{[`${m}-layout-header`]:{[u]:{lineHeight:"inherit"}}}]};var sr=(I,m)=>(0,Ye.Z)("Menu",C=>{if(m===!1)return[];const{colorBgElevated:q,colorPrimary:Se,colorTextLightSolid:H,controlHeightLG:ie,fontSize:Qe,darkItemColor:we,darkDangerItemColor:ye,darkItemBg:je,darkSubMenuItemBg:xt,darkItemSelectedColor:de,darkItemSelectedBg:st,darkDangerItemSelectedBg:tt,darkItemHoverBg:Ie,darkGroupTitleColor:De,darkItemHoverColor:lt,darkItemDisabledColor:Ut,darkDangerItemHoverColor:kt,darkDangerItemSelectedColor:rr,darkDangerItemActiveBg:Fr}=C,kr=Qe/7*5,Dr=(0,Le.TS)(C,{menuArrowSize:kr,menuHorizontalHeight:ie*1.15,menuArrowOffset:`${kr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:q}),Nr=(0,Le.TS)(Dr,{itemColor:we,itemHoverColor:lt,groupTitleColor:De,itemSelectedColor:de,itemBg:je,popupBg:je,subMenuItemBg:xt,itemActiveBg:"transparent",itemSelectedBg:st,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ie,itemDisabledColor:Ut,dangerItemColor:ye,dangerItemHoverColor:kt,dangerItemSelectedColor:rr,dangerItemActiveBg:Fr,dangerItemSelectedBg:tt,menuSubMenuBg:xt,horizontalItemSelectedColor:H,horizontalItemSelectedBg:Se});return[Ot(Dr),Te(Dr),qe(Dr),Xe(Dr,"light"),Xe(Nr,"dark"),ke(Dr),(0,ee.Z)(Dr),(0,fe.oN)(Dr,"slide-up"),(0,fe.oN)(Dr,"slide-down"),(0,D._y)(Dr,"zoom-big")]},C=>{const{colorPrimary:q,colorError:Se,colorTextDisabled:H,colorErrorBg:ie,colorText:Qe,colorTextDescription:we,colorBgContainer:ye,colorFillAlter:je,colorFillContent:xt,lineWidth:de,lineWidthBold:st,controlItemBgActive:tt,colorBgTextHover:Ie,controlHeightLG:De,lineHeight:lt,colorBgElevated:Ut,marginXXS:kt,padding:rr,fontSize:Fr,controlHeightSM:kr,fontSizeLG:Dr,colorTextLightSolid:Nr,colorErrorHover:xr}=C,ur=new Be.C(Nr).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:q,horizontalItemHoverColor:q,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:q,itemSelectedColor:q,colorItemTextSelectedHorizontal:q,horizontalItemSelectedColor:q,colorItemBg:ye,itemBg:ye,colorItemBgHover:Ie,itemHoverBg:Ie,colorItemBgActive:xt,itemActiveBg:tt,colorSubItemBg:je,subMenuItemBg:je,colorItemBgSelected:tt,itemSelectedBg:tt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:st,activeBarHeight:st,colorActiveBarBorderSize:de,activeBarBorderWidth:de,colorItemTextDisabled:H,itemDisabledColor:H,colorDangerItemText:Se,dangerItemColor:Se,colorDangerItemTextHover:Se,dangerItemHoverColor:Se,colorDangerItemTextSelected:Se,dangerItemSelectedColor:Se,colorDangerItemBgActive:ie,dangerItemActiveBg:ie,colorDangerItemBgSelected:ie,dangerItemSelectedBg:ie,itemMarginInline:C.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:De,groupTitleLineHeight:lt,collapsedWidth:De*2,popupBg:Ut,itemMarginBlock:kt,itemPaddingInline:rr,horizontalLineHeight:`${De*1.15}px`,iconSize:Fr,iconMarginInlineEnd:kr-Fr,collapsedIconSize:Dr,groupTitleFontSize:Fr,darkItemDisabledColor:new Be.C(Nr).setAlpha(.25).toRgbString(),darkItemColor:ur,darkDangerItemColor:Se,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Nr,darkItemSelectedBg:q,darkDangerItemSelectedBg:Se,darkItemHoverBg:"transparent",darkGroupTitleColor:ur,darkItemHoverColor:Nr,darkDangerItemHoverColor:xr,darkDangerItemSelectedColor:Nr,darkDangerItemActiveBg:Se}},{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"]]})(I),er=function(I,m){var u={};for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&m.indexOf(C)<0&&(u[C]=I[C]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,C=Object.getOwnPropertySymbols(I);q<C.length;q++)m.indexOf(C[q])<0&&Object.prototype.propertyIsEnumerable.call(I,C[q])&&(u[C[q]]=I[C[q]]);return u},lr=(0,Ae.forwardRef)((I,m)=>{var u,C;const q=Ae.useContext(K.Z),Se=q||{},{getPrefixCls:H,getPopupContainer:ie,direction:Qe,menu:we}=Ae.useContext(V.E_),ye=H(),{prefixCls:je,className:xt,style:de,theme:st="light",expandIcon:tt,_internalDisableMenuItemTitleTooltip:Ie,inlineCollapsed:De,siderCollapsed:lt,items:Ut,children:kt,rootClassName:rr,mode:Fr,selectable:kr,onClick:Dr,overflowedIndicatorPopupClassName:Nr}=I,xr=er(I,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ur=(0,$.Z)(xr,["collapsedWidth"]),Kr=Oe(Ut)||kt;(u=Se.validator)===null||u===void 0||u.call(Se,{mode:Fr});const pn=(0,J.useEvent)(function(){var Zi;Dr==null||Dr.apply(void 0,arguments),(Zi=Se.onClick)===null||Zi===void 0||Zi.call(Se)}),kn=Se.mode||Fr,mn=kr!=null?kr:Se.selectable,Dn=Ae.useMemo(()=>lt!==void 0?lt:De,[De,lt]),Ki={horizontal:{motionName:`${ye}-slide-up`},inline:(0,W.Z)(ye),other:{motionName:`${ye}-zoom-big`}},hr=H("menu",je||Se.prefixCls),[Gn,Hi]=sr(hr,!q),di=te()(`${hr}-${st}`,we==null?void 0:we.className,xt);let $i;if(typeof tt=="function")$i=tt;else if(tt===null||tt===!1)$i=null;else if(Se.expandIcon===null||Se.expandIcon===!1)$i=null;else{const Zi=tt!=null?tt:Se.expandIcon;$i=(0,M.Tm)(Zi,{className:te()(`${hr}-submenu-expand-icon`,(0,M.l$)(Zi)?(C=Zi.props)===null||C===void 0?void 0:C.className:"")})}const Ri=Ae.useMemo(()=>({prefixCls:hr,inlineCollapsed:Dn||!1,direction:Qe,firstLevel:!0,theme:st,mode:kn,disableMenuItemTitleTooltip:Ie}),[hr,Dn,Qe,Ie,st]);return Gn(Ae.createElement(K.Z.Provider,{value:null},Ae.createElement(T.Provider,{value:Ri},Ae.createElement(pe.ZP,Object.assign({getPopupContainer:ie,overflowedIndicator:Ae.createElement(ne.Z,null),overflowedIndicatorPopupClassName:te()(hr,`${hr}-${st}`,Nr),mode:kn,selectable:mn,onClick:pn},ur,{inlineCollapsed:Dn,style:Object.assign(Object.assign({},we==null?void 0:we.style),de),className:di,prefixCls:hr,direction:Qe,defaultMotions:Ki,expandIcon:$i,ref:m,rootClassName:te()(rr,Hi)}),Kr))))});const G=(0,Ae.forwardRef)((I,m)=>{const u=(0,Ae.useRef)(null),C=Ae.useContext(P.D);return(0,Ae.useImperativeHandle)(m,()=>({menu:u.current,focus:q=>{var Se;(Se=u.current)===null||Se===void 0||Se.focus(q)}})),Ae.createElement(lr,Object.assign({ref:u},I,C))});G.Item=Y,G.SubMenu=se,G.Divider=F,G.ItemGroup=pe.BW;var dt=G},58421:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Se}});var pe=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"},Ne=P,te=x(7657),V=function(ie,Qe){return Ae.createElement(te.Z,(0,pe.Z)({},ie,{ref:Qe,icon:Ne}))},S=Ae.forwardRef(V),g=S,F=x(49198),v=x(33853),$=x(38819),_=x(92310),M=x.n(_),O=x(20068),T=x(33885),L=x(67732),Y=x(83652),R=x(42403),se=x(158),ne=x(26112),J={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},W=J,K=x(91735),le=function(H){(0,R.Z)(Qe,H);var ie=(0,se.Z)(Qe);function Qe(){var we;(0,L.Z)(this,Qe);for(var ye=arguments.length,je=new Array(ye),xt=0;xt<ye;xt++)je[xt]=arguments[xt];return we=ie.call.apply(ie,[this].concat(je)),we.state={goInputText:""},we.getValidValue=function(){var de=we.state.goInputText;return!de||Number.isNaN(de)?void 0:Number(de)},we.buildOptionText=function(de){return"".concat(de," ").concat(we.props.locale.items_per_page)},we.changeSize=function(de){we.props.changeSize(Number(de))},we.handleChange=function(de){we.setState({goInputText:de.target.value})},we.handleBlur=function(de){var st=we.props,tt=st.goButton,Ie=st.quickGo,De=st.rootPrefixCls,lt=we.state.goInputText;tt||lt===""||(we.setState({goInputText:""}),!(de.relatedTarget&&(de.relatedTarget.className.indexOf("".concat(De,"-item-link"))>=0||de.relatedTarget.className.indexOf("".concat(De,"-item"))>=0))&&Ie(we.getValidValue()))},we.go=function(de){var st=we.state.goInputText;st!==""&&(de.keyCode===W.ENTER||de.type==="click")&&(we.setState({goInputText:""}),we.props.quickGo(we.getValidValue()))},we}return(0,Y.Z)(Qe,[{key:"getPageSizeOptions",value:function(){var ye=this.props,je=ye.pageSize,xt=ye.pageSizeOptions;return xt.some(function(de){return de.toString()===je.toString()})?xt:xt.concat([je.toString()]).sort(function(de,st){var tt=Number.isNaN(Number(de))?0:Number(de),Ie=Number.isNaN(Number(st))?0:Number(st);return tt-Ie})}},{key:"render",value:function(){var ye=this,je=this.props,xt=je.pageSize,de=je.locale,st=je.rootPrefixCls,tt=je.changeSize,Ie=je.quickGo,De=je.goButton,lt=je.selectComponentClass,Ut=je.buildOptionText,kt=je.selectPrefixCls,rr=je.disabled,Fr=this.state.goInputText,kr="".concat(st,"-options"),Dr=lt,Nr=null,xr=null,ur=null;if(!tt&&!Ie)return null;var Kr=this.getPageSizeOptions();if(tt&&Dr){var pn=Kr.map(function(kn,mn){return Ae.createElement(Dr.Option,{key:mn,value:kn.toString()},(Ut||ye.buildOptionText)(kn))});Nr=Ae.createElement(Dr,{disabled:rr,prefixCls:kt,showSearch:!1,className:"".concat(kr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(xt||Kr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(mn){return mn.parentNode},"aria-label":de.page_size,defaultOpen:!1},pn)}return Ie&&(De&&(ur=typeof De=="boolean"?Ae.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:rr,className:"".concat(kr,"-quick-jumper-button")},de.jump_to_confirm):Ae.createElement("span",{onClick:this.go,onKeyUp:this.go},De)),xr=Ae.createElement("div",{className:"".concat(kr,"-quick-jumper")},de.jump_to,Ae.createElement("input",{disabled:rr,type:"text",value:Fr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":de.page}),de.page,ur)),Ae.createElement("li",{className:"".concat(kr)},Nr,xr)}}]),Qe}(Ae.Component);le.defaultProps={pageSizeOptions:["10","20","50","100"]};var me=le,Oe=function(ie){var Qe,we=ie.rootPrefixCls,ye=ie.page,je=ie.active,xt=ie.className,de=ie.showTitle,st=ie.onClick,tt=ie.onKeyPress,Ie=ie.itemRender,De="".concat(we,"-item"),lt=M()(De,"".concat(De,"-").concat(ye),(Qe={},(0,O.Z)(Qe,"".concat(De,"-active"),je),(0,O.Z)(Qe,"".concat(De,"-disabled"),!ye),(0,O.Z)(Qe,ie.className,xt),Qe)),Ut=function(){st(ye)},kt=function(kr){tt(kr,st,ye)},rr=Ie(ye,"page",Ae.createElement("a",{rel:"nofollow"},ye));return rr?Ae.createElement("li",{title:de?ye.toString():null,className:lt,onClick:Ut,onKeyPress:kt,tabIndex:0},rr):null},Be=Oe;function Ue(){}function ee(H){var ie=Number(H);return typeof ie=="number"&&!Number.isNaN(ie)&&isFinite(ie)&&Math.floor(ie)===ie}var fe=function(ie,Qe,we){return we};function D(H,ie,Qe){var we=typeof H=="undefined"?ie.pageSize:H;return Math.floor((Qe.total-1)/we)+1}var Ye=function(H){(0,R.Z)(Qe,H);var ie=(0,se.Z)(Qe);function Qe(we){var ye;(0,L.Z)(this,Qe),ye=ie.call(this,we),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(tt,Ie){var De=ye.props.prefixCls,lt=tt||Ae.createElement("button",{type:"button","aria-label":Ie,className:"".concat(De,"-item-link")});return typeof tt=="function"&&(lt=Ae.createElement(tt,(0,T.Z)({},ye.props))),lt},ye.isValid=function(tt){var Ie=ye.props.total;return ee(tt)&&tt!==ye.state.current&&ee(Ie)&&Ie>0},ye.shouldDisplayQuickJumper=function(){var tt=ye.props,Ie=tt.showQuickJumper,De=tt.total,lt=ye.state.pageSize;return De<=lt?!1:Ie},ye.handleKeyDown=function(tt){(tt.keyCode===W.ARROW_UP||tt.keyCode===W.ARROW_DOWN)&&tt.preventDefault()},ye.handleKeyUp=function(tt){var Ie=ye.getValidValue(tt),De=ye.state.currentInputValue;Ie!==De&&ye.setState({currentInputValue:Ie}),tt.keyCode===W.ENTER?ye.handleChange(Ie):tt.keyCode===W.ARROW_UP?ye.handleChange(Ie-1):tt.keyCode===W.ARROW_DOWN&&ye.handleChange(Ie+1)},ye.handleBlur=function(tt){var Ie=ye.getValidValue(tt);ye.handleChange(Ie)},ye.changePageSize=function(tt){var Ie=ye.state.current,De=D(tt,ye.state,ye.props);Ie=Ie>De?De:Ie,De===0&&(Ie=ye.state.current),typeof tt=="number"&&("pageSize"in ye.props||ye.setState({pageSize:tt}),"current"in ye.props||ye.setState({current:Ie,currentInputValue:Ie})),ye.props.onShowSizeChange(Ie,tt),"onChange"in ye.props&&ye.props.onChange&&ye.props.onChange(Ie,tt)},ye.handleChange=function(tt){var Ie=ye.props,De=Ie.disabled,lt=Ie.onChange,Ut=ye.state,kt=Ut.pageSize,rr=Ut.current,Fr=Ut.currentInputValue;if(ye.isValid(tt)&&!De){var kr=D(void 0,ye.state,ye.props),Dr=tt;return tt>kr?Dr=kr:tt<1&&(Dr=1),"current"in ye.props||ye.setState({current:Dr}),Dr!==Fr&&ye.setState({currentInputValue:Dr}),lt(Dr,kt),Dr}return rr},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(tt,Ie){if(tt.key==="Enter"||tt.charCode===13){for(var De=arguments.length,lt=new Array(De>2?De-2:0),Ut=2;Ut<De;Ut++)lt[Ut-2]=arguments[Ut];Ie.apply(void 0,lt)}},ye.runIfEnterPrev=function(tt){ye.runIfEnter(tt,ye.prev)},ye.runIfEnterNext=function(tt){ye.runIfEnter(tt,ye.next)},ye.runIfEnterJumpPrev=function(tt){ye.runIfEnter(tt,ye.jumpPrev)},ye.runIfEnterJumpNext=function(tt){ye.runIfEnter(tt,ye.jumpNext)},ye.handleGoTO=function(tt){(tt.keyCode===W.ENTER||tt.type==="click")&&ye.handleChange(ye.state.currentInputValue)},ye.renderPrev=function(tt){var Ie=ye.props,De=Ie.prevIcon,lt=Ie.itemRender,Ut=lt(tt,"prev",ye.getItemIcon(De,"prev page")),kt=!ye.hasPrev();return(0,Ae.isValidElement)(Ut)?(0,Ae.cloneElement)(Ut,{disabled:kt}):Ut},ye.renderNext=function(tt){var Ie=ye.props,De=Ie.nextIcon,lt=Ie.itemRender,Ut=lt(tt,"next",ye.getItemIcon(De,"next page")),kt=!ye.hasNext();return(0,Ae.isValidElement)(Ut)?(0,Ae.cloneElement)(Ut,{disabled:kt}):Ut};var je=we.onChange!==Ue,xt="current"in we;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 de=we.defaultCurrent;"current"in we&&(de=we.current);var st=we.defaultPageSize;return"pageSize"in we&&(st=we.pageSize),de=Math.min(de,D(st,void 0,we)),ye.state={current:de,currentInputValue:de,pageSize:st},ye}return(0,Y.Z)(Qe,[{key:"componentDidUpdate",value:function(ye,je){var xt=this.props.prefixCls;if(je.current!==this.state.current&&this.paginationNode.current){var de=this.paginationNode.current.querySelector(".".concat(xt,"-item-").concat(je.current));if(de&&document.activeElement===de){var st;de==null||(st=de.blur)===null||st===void 0||st.call(de)}}}},{key:"getValidValue",value:function(ye){var je=ye.target.value,xt=D(void 0,this.state,this.props),de=this.state.currentInputValue,st;return je===""?st=je:Number.isNaN(Number(je))?st=de:je>=xt?st=xt:st=Number(je),st}},{key:"getShowSizeChanger",value:function(){var ye=this.props,je=ye.showSizeChanger,xt=ye.total,de=ye.totalBoundaryShowSizeChanger;return typeof je!="undefined"?je:xt>de}},{key:"render",value:function(){var ye=this.props,je=ye.prefixCls,xt=ye.className,de=ye.style,st=ye.disabled,tt=ye.hideOnSinglePage,Ie=ye.total,De=ye.locale,lt=ye.showQuickJumper,Ut=ye.showLessItems,kt=ye.showTitle,rr=ye.showTotal,Fr=ye.simple,kr=ye.itemRender,Dr=ye.showPrevNextJumpers,Nr=ye.jumpPrevIcon,xr=ye.jumpNextIcon,ur=ye.selectComponentClass,Kr=ye.selectPrefixCls,pn=ye.pageSizeOptions,kn=this.state,mn=kn.current,Dn=kn.pageSize,Ki=kn.currentInputValue;if(tt===!0&&Ie<=Dn)return null;var hr=D(void 0,this.state,this.props),Gn=[],Hi=null,di=null,$i=null,Ri=null,Zi=null,za=lt&&lt.goButton,Fi=Ut?1:2,qn=mn-1>0?mn-1:0,ai=mn+1<hr?mn+1:hr,yi=(0,ne.Z)(this.props,{aria:!0,data:!0}),ge=rr&&Ae.createElement("li",{className:"".concat(je,"-total-text")},rr(Ie,[Ie===0?0:(mn-1)*Dn+1,mn*Dn>Ie?Ie:mn*Dn]));if(Fr){za&&(typeof za=="boolean"?Zi=Ae.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},De.jump_to_confirm):Zi=Ae.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},za),Zi=Ae.createElement("li",{title:kt?"".concat(De.jump_to).concat(mn,"/").concat(hr):null,className:"".concat(je,"-simple-pager")},Zi));var Me=this.renderPrev(qn);return Ae.createElement("ul",(0,pe.Z)({className:M()(je,"".concat(je,"-simple"),(0,O.Z)({},"".concat(je,"-disabled"),st),xt),style:de,ref:this.paginationNode},yi),ge,Me?Ae.createElement("li",{title:kt?De.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:M()("".concat(je,"-prev"),(0,O.Z)({},"".concat(je,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Me):null,Ae.createElement("li",{title:kt?"".concat(mn,"/").concat(hr):null,className:"".concat(je,"-simple-pager")},Ae.createElement("input",{type:"text",value:Ki,disabled:st,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ae.createElement("span",{className:"".concat(je,"-slash")},"/"),hr),Ae.createElement("li",{title:kt?De.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:M()("".concat(je,"-next"),(0,O.Z)({},"".concat(je,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(ai)),Zi)}if(hr<=3+Fi*2){var Fe={locale:De,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:kt,itemRender:kr};hr||Gn.push(Ae.createElement(Be,(0,pe.Z)({},Fe,{key:"noPager",page:1,className:"".concat(je,"-item-disabled")})));for(var Ge=1;Ge<=hr;Ge+=1){var Pt=mn===Ge;Gn.push(Ae.createElement(Be,(0,pe.Z)({},Fe,{key:Ge,page:Ge,active:Pt})))}}else{var Dt=Ut?De.prev_3:De.prev_5,Er=Ut?De.next_3:De.next_5,nr=kr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Nr,"prev page")),Or=kr(this.getJumpNextPage(),"jump-next",this.getItemIcon(xr,"next page"));Dr&&(Hi=nr?Ae.createElement("li",{title:kt?Dt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:M()("".concat(je,"-jump-prev"),(0,O.Z)({},"".concat(je,"-jump-prev-custom-icon"),!!Nr))},nr):null,di=Or?Ae.createElement("li",{title:kt?Er:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:M()("".concat(je,"-jump-next"),(0,O.Z)({},"".concat(je,"-jump-next-custom-icon"),!!xr))},Or):null),Ri=Ae.createElement(Be,{locale:De,last:!0,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:hr,page:hr,active:!1,showTitle:kt,itemRender:kr}),$i=Ae.createElement(Be,{locale:De,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:kt,itemRender:kr});var Hr=Math.max(1,mn-Fi),an=Math.min(mn+Fi,hr);mn-1<=Fi&&(an=1+Fi*2),hr-mn<=Fi&&(Hr=hr-Fi*2);for(var jr=Hr;jr<=an;jr+=1){var Rr=mn===jr;Gn.push(Ae.createElement(Be,{locale:De,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jr,page:jr,active:Rr,showTitle:kt,itemRender:kr}))}mn-1>=Fi*2&&mn!==3&&(Gn[0]=(0,Ae.cloneElement)(Gn[0],{className:"".concat(je,"-item-after-jump-prev")}),Gn.unshift(Hi)),hr-mn>=Fi*2&&mn!==hr-2&&(Gn[Gn.length-1]=(0,Ae.cloneElement)(Gn[Gn.length-1],{className:"".concat(je,"-item-before-jump-next")}),Gn.push(di)),Hr!==1&&Gn.unshift($i),an!==hr&&Gn.push(Ri)}var en=!this.hasPrev()||!hr,wn=!this.hasNext()||!hr,on=this.renderPrev(qn),Nn=this.renderNext(ai);return Ae.createElement("ul",(0,pe.Z)({className:M()(je,xt,(0,O.Z)({},"".concat(je,"-disabled"),st)),style:de,ref:this.paginationNode},yi),ge,on?Ae.createElement("li",{title:kt?De.prev_page:null,onClick:this.prev,tabIndex:en?null:0,onKeyPress:this.runIfEnterPrev,className:M()("".concat(je,"-prev"),(0,O.Z)({},"".concat(je,"-disabled"),en)),"aria-disabled":en},on):null,Gn,Nn?Ae.createElement("li",{title:kt?De.next_page:null,onClick:this.next,tabIndex:wn?null:0,onKeyPress:this.runIfEnterNext,className:M()("".concat(je,"-next"),(0,O.Z)({},"".concat(je,"-disabled"),wn)),"aria-disabled":wn},Nn):null,Ae.createElement(me,{disabled:st,locale:De,rootPrefixCls:je,selectComponentClass:ur,selectPrefixCls:Kr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:mn,pageSize:Dn,pageSizeOptions:pn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:za}))}}],[{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 de=je.current,st=D(ye.pageSize,je,ye);de=de>st?st:de,"current"in ye||(xt.current=de,xt.currentInputValue=de),xt.pageSize=ye.pageSize}return xt}}]),Qe}(Ae.Component);Ye.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:fe,totalBoundaryShowSizeChanger:50};var Le=Ye,Ce=x(22075),Te=x(36355),be=x(19716),ke=x(8628),he=x(9763),Ee=x(57809);const Xe=H=>Ae.createElement(Ee.default,Object.assign({},H,{showSearch:!0,size:"small"})),et=H=>Ae.createElement(Ee.default,Object.assign({},H,{showSearch:!0,size:"middle"}));Xe.Option=Ee.default.Option,et.Option=Ee.default.Option;var ze=x(9937),qe=x(17313),Et=x(83116),Lt=x(37613);const Ot=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"}}}}}},sr=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,ze.x0)(H)),{width:H.paginationMiniQuickJumperInputWidth,height:H.controlHeightSM})}}}},er=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"}}}}},yr=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,ze.ik)(H)),{width:H.controlHeightLG*1.25,height:H.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:H.marginXS,marginInlineEnd:H.marginXS})}}}},lr=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,qe.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"}}),lr(H)),yr(H)),er(H)),sr(H)),Ot(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"}}},dt=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}}}}},I=H=>{const{componentCls:ie}=H;return{[`${ie}:not(${ie}-disabled)`]:{[`${ie}-item`]:Object.assign({},(0,qe.Qy)(H)),[`${ie}-jump-prev, ${ie}-jump-next`]:{"&:focus-visible":Object.assign({[`${ie}-item-link-icon`]:{opacity:1},[`${ie}-item-ellipsis`]:{opacity:0}},(0,qe.oN)(H))},[`${ie}-prev, ${ie}-next`]:{[`&:focus-visible ${ie}-item-link`]:Object.assign({},(0,qe.oN)(H))}}}};var m=(0,Et.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,ze.e5)(H),(0,ze.TM)(H));return[G(ie),I(ie),H.wireframe&&dt(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})),u=function(H,ie){var Qe={};for(var we in H)Object.prototype.hasOwnProperty.call(H,we)&&ie.indexOf(we)<0&&(Qe[we]=H[we]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,we=Object.getOwnPropertySymbols(H);ye<we.length;ye++)ie.indexOf(we[ye])<0&&Object.prototype.propertyIsEnumerable.call(H,we[ye])&&(Qe[we[ye]]=H[we[ye]]);return Qe},q=H=>{const{prefixCls:ie,selectPrefixCls:Qe,className:we,rootClassName:ye,style:je,size:xt,locale:de,selectComponentClass:st,responsive:tt,showSizeChanger:Ie}=H,De=u(H,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:lt}=(0,ke.Z)(tt),{getPrefixCls:Ut,direction:kt,pagination:rr={}}=Ae.useContext(Te.E_),Fr=Ut("pagination",ie),[kr,Dr]=m(Fr),Nr=Ie!=null?Ie:rr.showSizeChanger,xr=Ae.useMemo(()=>{const hr=Ae.createElement("span",{className:`${Fr}-item-ellipsis`},"\u2022\u2022\u2022"),Gn=Ae.createElement("button",{className:`${Fr}-item-link`,type:"button",tabIndex:-1},kt==="rtl"?Ae.createElement($.Z,null):Ae.createElement(v.Z,null)),Hi=Ae.createElement("button",{className:`${Fr}-item-link`,type:"button",tabIndex:-1},kt==="rtl"?Ae.createElement(v.Z,null):Ae.createElement($.Z,null)),di=Ae.createElement("a",{className:`${Fr}-item-link`},Ae.createElement("div",{className:`${Fr}-item-container`},kt==="rtl"?Ae.createElement(F.Z,{className:`${Fr}-item-link-icon`}):Ae.createElement(g,{className:`${Fr}-item-link-icon`}),hr)),$i=Ae.createElement("a",{className:`${Fr}-item-link`},Ae.createElement("div",{className:`${Fr}-item-container`},kt==="rtl"?Ae.createElement(g,{className:`${Fr}-item-link-icon`}):Ae.createElement(F.Z,{className:`${Fr}-item-link-icon`}),hr));return{prevIcon:Gn,nextIcon:Hi,jumpPrevIcon:di,jumpNextIcon:$i}},[kt,Fr]),[ur]=(0,he.Z)("Pagination",Ce.Z),Kr=Object.assign(Object.assign({},ur),de),pn=(0,be.Z)(xt),kn=pn==="small"||!!(lt&&!pn&&tt),mn=Ut("select",Qe),Dn=M()({[`${Fr}-mini`]:kn,[`${Fr}-rtl`]:kt==="rtl"},rr==null?void 0:rr.className,we,ye,Dr),Ki=Object.assign(Object.assign({},rr==null?void 0:rr.style),je);return kr(Ae.createElement(Le,Object.assign({},xr,De,{style:Ki,prefixCls:Fr,selectPrefixCls:mn,className:Dn,selectComponentClass:st||(kn?Xe:et),locale:Kr,showSizeChanger:Nr})))},Se=q},5112:function(un,Tt,x){"use strict";x.d(Tt,{ZP:function(){return ke}});var pe=x(92310),Ae=x.n(pe),P=x(18929),Ne=x(26112),te=x(59301),V=x(36355),S=x(19716);const g=te.createContext(null),F=g.Provider;var v=g;const $=te.createContext(null),_=$.Provider;var M=x(5630),O=x(8654),T=x(1684),L=x(32441),Y=x(17313),R=x(83116),se=x(37613);const ne=he=>{const{componentCls:Ee,antCls:Xe}=he,et=`${Ee}-group`;return{[et]:Object.assign(Object.assign({},(0,Y.Wf)(he)),{display:"inline-block",fontSize:0,[`&${et}-rtl`]:{direction:"rtl"},[`${Xe}-badge ${Xe}-badge-count`]:{zIndex:1},[`> ${Xe}-badge:not(:first-child) > ${Xe}-button-wrapper`]:{borderInlineStart:"none"}})}},J=he=>{const{componentCls:Ee,wrapperMarginInlineEnd:Xe,colorPrimary:et,radioSize:ze,motionDurationSlow:qe,motionDurationMid:Et,motionEaseInOutCirc:Lt,colorBgContainer:Ot,colorBorder:sr,lineWidth:er,dotSize:yr,colorBgContainerDisabled:lr,colorTextDisabled:G,paddingXS:dt,dotColorDisabled:I,lineType:m,radioDotDisabledSize:u,wireframe:C,colorWhite:q}=he,Se=`${Ee}-inner`;return{[`${Ee}-wrapper`]:Object.assign(Object.assign({},(0,Y.Wf)(he)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Xe,cursor:"pointer",[`&${Ee}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:he.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:`${er}px ${m} ${et}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Ee]:Object.assign(Object.assign({},(0,Y.Wf)(he)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Ee}-wrapper:hover &,
&:hover ${Se}`]:{borderColor:et},[`${Ee}-input:focus-visible + ${Se}`]:Object.assign({},(0,Y.oN)(he)),[`${Ee}:hover::after, ${Ee}-wrapper:hover &::after`]:{visibility:"visible"},[`${Ee}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:ze,height:ze,marginBlockStart:ze/-2,marginInlineStart:ze/-2,backgroundColor:C?et:q,borderBlockStart:0,borderInlineStart:0,borderRadius:ze,transform:"scale(0)",opacity:0,transition:`all ${qe} ${Lt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:ze,height:ze,backgroundColor:Ot,borderColor:sr,borderStyle:"solid",borderWidth:er,borderRadius:"50%",transition:`all ${Et}`},[`${Ee}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Ee}-checked`]:{[Se]:{borderColor:et,backgroundColor:C?Ot:et,"&::after":{transform:`scale(${yr/ze})`,opacity:1,transition:`all ${qe} ${Lt}`}}},[`${Ee}-disabled`]:{cursor:"not-allowed",[Se]:{backgroundColor:lr,borderColor:sr,cursor:"not-allowed","&::after":{backgroundColor:I}},[`${Ee}-input`]:{cursor:"not-allowed"},[`${Ee}-disabled + span`]:{color:G,cursor:"not-allowed"},[`&${Ee}-checked`]:{[Se]:{"&::after":{transform:`scale(${u/ze})`}}}},[`span${Ee} + *`]:{paddingInlineStart:dt,paddingInlineEnd:dt}})}},W=he=>{const{buttonColor:Ee,controlHeight:Xe,componentCls:et,lineWidth:ze,lineType:qe,colorBorder:Et,motionDurationSlow:Lt,motionDurationMid:Ot,buttonPaddingInline:sr,fontSize:er,buttonBg:yr,fontSizeLG:lr,controlHeightLG:G,controlHeightSM:dt,paddingXS:I,borderRadius:m,borderRadiusSM:u,borderRadiusLG:C,buttonCheckedBg:q,buttonSolidCheckedColor:Se,colorTextDisabled:H,colorBgContainerDisabled:ie,buttonCheckedBgDisabled:Qe,buttonCheckedColorDisabled:we,colorPrimary:ye,colorPrimaryHover:je,colorPrimaryActive:xt,buttonSolidCheckedBg:de,buttonSolidCheckedHoverBg:st,buttonSolidCheckedActiveBg:tt}=he;return{[`${et}-button-wrapper`]:{position:"relative",display:"inline-block",height:Xe,margin:0,paddingInline:sr,paddingBlock:0,color:Ee,fontSize:er,lineHeight:`${Xe-ze*2}px`,background:yr,border:`${ze}px ${qe} ${Et}`,borderBlockStartWidth:ze+.02,borderInlineStartWidth:0,borderInlineEndWidth:ze,cursor:"pointer",transition:[`color ${Ot}`,`background ${Ot}`,`box-shadow ${Ot}`].join(","),a:{color:Ee},[`> ${et}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-ze,insetInlineStart:-ze,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:ze,paddingInline:0,backgroundColor:Et,transition:`background-color ${Lt}`,content:'""'}},"&:first-child":{borderInlineStart:`${ze}px ${qe} ${Et}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${et}-group-large &`]:{height:G,fontSize:lr,lineHeight:`${G-ze*2}px`,"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},[`${et}-group-small &`]:{height:dt,paddingInline:I-ze,paddingBlock:0,lineHeight:`${dt-ze*2}px`,"&:first-child":{borderStartStartRadius:u,borderEndStartRadius:u},"&:last-child":{borderStartEndRadius:u,borderEndEndRadius:u}},"&:hover":{position:"relative",color:ye},"&:has(:focus-visible)":Object.assign({},(0,Y.oN)(he)),[`${et}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${et}-button-wrapper-disabled)`]:{zIndex:1,color:ye,background:q,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}}},[`${et}-group-solid &-checked:not(${et}-button-wrapper-disabled)`]:{color:Se,background:de,borderColor:de,"&:hover":{color:Se,background:st,borderColor:st},"&:active":{color:Se,background:tt,borderColor:tt}},"&-disabled":{color:H,backgroundColor:ie,borderColor:Et,cursor:"not-allowed","&:first-child, &:hover":{color:H,backgroundColor:ie,borderColor:Et}},[`&-disabled${et}-button-wrapper-checked`]:{color:we,backgroundColor:Qe,borderColor:Et,boxShadow:"none"}}}},K=he=>he-4*2;var le=(0,R.Z)("Radio",he=>{const{controlOutline:Ee,controlOutlineWidth:Xe,radioSize:et}=he,ze=`0 0 0 ${Xe}px ${Ee}`,qe=ze,Et=K(et),Lt=(0,se.TS)(he,{radioDotDisabledSize:Et,radioFocusShadow:ze,radioButtonFocusShadow:qe});return[ne(Lt),J(Lt),W(Lt)]},he=>{const{wireframe:Ee,padding:Xe,marginXS:et,lineWidth:ze,fontSizeLG:qe,colorText:Et,colorBgContainer:Lt,colorTextDisabled:Ot,controlItemBgActiveDisabled:sr,colorTextLightSolid:er,colorPrimary:yr,colorPrimaryHover:lr,colorPrimaryActive:G}=he,dt=4,I=qe,m=Ee?K(I):I-(dt+ze)*2;return{radioSize:I,dotSize:m,dotColorDisabled:Ot,buttonSolidCheckedColor:er,buttonSolidCheckedBg:yr,buttonSolidCheckedHoverBg:lr,buttonSolidCheckedActiveBg:G,buttonBg:Lt,buttonCheckedBg:Lt,buttonColor:Et,buttonCheckedBgDisabled:sr,buttonCheckedColorDisabled:Ot,buttonPaddingInline:Xe-ze,wrapperMarginInlineEnd:et}}),me=x(14088),Oe=x(4572),Be=function(he,Ee){var Xe={};for(var et in he)Object.prototype.hasOwnProperty.call(he,et)&&Ee.indexOf(et)<0&&(Xe[et]=he[et]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,et=Object.getOwnPropertySymbols(he);ze<et.length;ze++)Ee.indexOf(et[ze])<0&&Object.prototype.propertyIsEnumerable.call(he,et[ze])&&(Xe[et[ze]]=he[et[ze]]);return Xe};const Ue=(he,Ee)=>{var Xe,et;const ze=te.useContext(v),qe=te.useContext($),{getPrefixCls:Et,direction:Lt,radio:Ot}=te.useContext(V.E_),sr=te.useRef(null),er=(0,O.sQ)(Ee,sr),{isFormItemInput:yr}=te.useContext(L.aM),lr=xt=>{var de,st;(de=he.onChange)===null||de===void 0||de.call(he,xt),(st=ze==null?void 0:ze.onChange)===null||st===void 0||st.call(ze,xt)},{prefixCls:G,className:dt,rootClassName:I,children:m,style:u}=he,C=Be(he,["prefixCls","className","rootClassName","children","style"]),q=Et("radio",G),Se=((ze==null?void 0:ze.optionType)||qe)==="button",H=Se?`${q}-button`:q,[ie,Qe]=le(q),we=Object.assign({},C),ye=te.useContext(T.Z);ze&&(we.name=ze.name,we.onChange=lr,we.checked=he.value===ze.value,we.disabled=(Xe=we.disabled)!==null&&Xe!==void 0?Xe:ze.disabled),we.disabled=(et=we.disabled)!==null&&et!==void 0?et:ye;const je=Ae()(`${H}-wrapper`,{[`${H}-wrapper-checked`]:we.checked,[`${H}-wrapper-disabled`]:we.disabled,[`${H}-wrapper-rtl`]:Lt==="rtl",[`${H}-wrapper-in-form-item`]:yr},Ot==null?void 0:Ot.className,dt,I,Qe);return ie(te.createElement(me.Z,{component:"Radio",disabled:we.disabled},te.createElement("label",{className:je,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),u),onMouseEnter:he.onMouseEnter,onMouseLeave:he.onMouseLeave},te.createElement(M.Z,Object.assign({},we,{className:Ae()(we.className,!Se&&Oe.A),type:"radio",prefixCls:H,ref:er})),m!==void 0?te.createElement("span",null,m):null)))};var fe=te.forwardRef(Ue);const D=te.forwardRef((he,Ee)=>{const{getPrefixCls:Xe,direction:et}=te.useContext(V.E_),[ze,qe]=(0,P.Z)(he.defaultValue,{value:he.value}),Et=de=>{const st=ze,tt=de.target.value;"value"in he||qe(tt);const{onChange:Ie}=he;Ie&&tt!==st&&Ie(de)},{prefixCls:Lt,className:Ot,rootClassName:sr,options:er,buttonStyle:yr="outline",disabled:lr,children:G,size:dt,style:I,id:m,onMouseEnter:u,onMouseLeave:C,onFocus:q,onBlur:Se}=he,H=Xe("radio",Lt),ie=`${H}-group`,[Qe,we]=le(H);let ye=G;er&&er.length>0&&(ye=er.map(de=>typeof de=="string"||typeof de=="number"?te.createElement(fe,{key:de.toString(),prefixCls:H,disabled:lr,value:de,checked:ze===de},de):te.createElement(fe,{key:`radio-group-value-options-${de.value}`,prefixCls:H,disabled:de.disabled||lr,value:de.value,checked:ze===de.value,title:de.title,style:de.style},de.label)));const je=(0,S.Z)(dt),xt=Ae()(ie,`${ie}-${yr}`,{[`${ie}-${je}`]:je,[`${ie}-rtl`]:et==="rtl"},Ot,sr,we);return Qe(te.createElement("div",Object.assign({},(0,Ne.Z)(he,{aria:!0,data:!0}),{className:xt,style:I,onMouseEnter:u,onMouseLeave:C,onFocus:q,onBlur:Se,id:m,ref:Ee}),te.createElement(F,{value:{onChange:Et,value:ze,disabled:he.disabled,name:he.name,optionType:he.optionType}},ye)))});var Ye=te.memo(D),Le=function(he,Ee){var Xe={};for(var et in he)Object.prototype.hasOwnProperty.call(he,et)&&Ee.indexOf(et)<0&&(Xe[et]=he[et]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,et=Object.getOwnPropertySymbols(he);ze<et.length;ze++)Ee.indexOf(et[ze])<0&&Object.prototype.propertyIsEnumerable.call(he,et[ze])&&(Xe[et[ze]]=he[et[ze]]);return Xe};const Ce=(he,Ee)=>{const{getPrefixCls:Xe}=te.useContext(V.E_),{prefixCls:et}=he,ze=Le(he,["prefixCls"]),qe=Xe("radio",et);return te.createElement(_,{value:"button"},te.createElement(fe,Object.assign({prefixCls:qe},ze,{type:"radio",ref:Ee})))};var Te=te.forwardRef(Ce);const be=fe;be.Button=Te,be.Group=Ye,be.__ANT_RADIO=!0;var ke=be},57809:function(un,Tt,x){"use strict";var pe=x(92310),Ae=x.n(pe),P=x(77861),Ne=x(2738),te=x(59301),V=x(53487),S=x(62892),g=x(19080),F=x(36355),v=x(1684),$=x(93891),_=x(19716),M=x(32441),O=x(33234),T=x(14154),L=x(58582),Y=x(84443),R=x(66339),se=function(le,me){var Oe={};for(var Be in le)Object.prototype.hasOwnProperty.call(le,Be)&&me.indexOf(Be)<0&&(Oe[Be]=le[Be]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Be=Object.getOwnPropertySymbols(le);Ue<Be.length;Ue++)me.indexOf(Be[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,Be[Ue])&&(Oe[Be[Ue]]=le[Be[Ue]]);return Oe};const ne="SECRET_COMBOBOX_MODE_DO_NOT_USE",J=(le,me)=>{var Oe,{prefixCls:Be,bordered:Ue=!0,className:ee,rootClassName:fe,getPopupContainer:D,popupClassName:Ye,dropdownClassName:Le,listHeight:Ce=256,placement:Te,listItemHeight:be=24,size:ke,disabled:he,notFoundContent:Ee,status:Xe,builtinPlacements:et,dropdownMatchSelectWidth:ze,popupMatchSelectWidth:qe,direction:Et,style:Lt,allowClear:Ot}=le,sr=se(le,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:er,getPrefixCls:yr,renderEmpty:lr,direction:G,virtual:dt,popupMatchSelectWidth:I,popupOverflow:m,select:u}=te.useContext(F.E_),C=yr("select",Be),q=yr(),Se=Et!=null?Et:G,{compactSize:H,compactItemClassnames:ie}=(0,O.ri)(C,Se),[Qe,we]=(0,T.Z)(C),ye=te.useMemo(()=>{const{mode:Ki}=sr;if(Ki!=="combobox")return Ki===ne?"combobox":Ki},[sr.mode]),je=ye==="multiple"||ye==="tags",xt=(0,Y.Z)(sr.suffixIcon,sr.showArrow),de=(Oe=qe!=null?qe:ze)!==null&&Oe!==void 0?Oe:I,{status:st,hasFeedback:tt,isFormItemInput:Ie,feedbackIcon:De}=te.useContext(M.aM),lt=(0,g.F)(st,Xe);let Ut;Ee!==void 0?Ut=Ee:ye==="combobox"?Ut=null:Ut=(lr==null?void 0:lr("Select"))||te.createElement($.Z,{componentName:"Select"});const{suffixIcon:kt,itemIcon:rr,removeIcon:Fr,clearIcon:kr}=(0,R.Z)(Object.assign(Object.assign({},sr),{multiple:je,hasFeedback:tt,feedbackIcon:De,showSuffixIcon:xt,prefixCls:C,showArrow:sr.showArrow,componentName:"Select"})),Dr=Ot===!0?{clearIcon:kr}:Ot,Nr=(0,Ne.Z)(sr,["suffixIcon","itemIcon"]),xr=Ae()(Ye||Le,{[`${C}-dropdown-${Se}`]:Se==="rtl"},fe,we),ur=(0,_.Z)(Ki=>{var hr;return(hr=ke!=null?ke:H)!==null&&hr!==void 0?hr:Ki}),Kr=te.useContext(v.Z),pn=he!=null?he:Kr,kn=Ae()({[`${C}-lg`]:ur==="large",[`${C}-sm`]:ur==="small",[`${C}-rtl`]:Se==="rtl",[`${C}-borderless`]:!Ue,[`${C}-in-form-item`]:Ie},(0,g.Z)(C,lt,tt),ie,u==null?void 0:u.className,ee,fe,we),mn=te.useMemo(()=>Te!==void 0?Te:Se==="rtl"?"bottomRight":"bottomLeft",[Te,Se]),Dn=(0,L.Z)(et,m);return Qe(te.createElement(P.ZP,Object.assign({ref:me,virtual:dt,showSearch:u==null?void 0:u.showSearch},Nr,{style:Object.assign(Object.assign({},u==null?void 0:u.style),Lt),dropdownMatchSelectWidth:de,builtinPlacements:Dn,transitionName:(0,S.m)(q,"slide-up",sr.transitionName),listHeight:Ce,listItemHeight:be,mode:ye,prefixCls:C,placement:mn,direction:Se,suffixIcon:kt,menuItemSelectedIcon:rr,removeIcon:Fr,allowClear:Dr,notFoundContent:Ut,className:kn,getPopupContainer:D||er,dropdownClassName:xr,disabled:pn})))},W=te.forwardRef(J),K=(0,V.Z)(W);W.SECRET_COMBOBOX_MODE_DO_NOT_USE=ne,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 pe=x(17313),Ae=x(74207),P=x(37613),Ne=x(83116),te=x(13826),V=x(92899);const S=K=>{const{optionHeight:le,optionFontSize:me,optionLineHeight:Oe,optionPadding:Be}=K;return{position:"relative",display:"block",minHeight:le,padding:Be,color:K.colorText,fontWeight:"normal",fontSize:me,lineHeight:Oe,boxSizing:"border-box"}};var F=K=>{const{antCls:le,componentCls:me}=K,Oe=`${me}-item`,Be=`&${le}-slide-up-enter${le}-slide-up-enter-active`,Ue=`&${le}-slide-up-appear${le}-slide-up-appear-active`,ee=`&${le}-slide-up-leave${le}-slide-up-leave-active`,fe=`${me}-dropdown-placement-`;return[{[`${me}-dropdown`]:Object.assign(Object.assign({},(0,pe.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,[`
${Be}${fe}bottomLeft,
${Ue}${fe}bottomLeft
`]:{animationName:te.fJ},[`
${Be}${fe}topLeft,
${Ue}${fe}topLeft,
${Be}${fe}topRight,
${Ue}${fe}topRight
`]:{animationName:te.Qt},[`${ee}${fe}bottomLeft`]:{animationName:te.Uw},[`
${ee}${fe}topLeft,
${ee}${fe}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"},pe.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,$=K=>{let{controlHeightSM:le,controlHeight:me,lineWidth:Oe}=K;const Be=(me-le)/2-Oe,Ue=Math.ceil(Be/2);return[Be,Ue]};function _(K,le){const{componentCls:me,iconCls:Oe}=K,Be=`${me}-selection-overflow`,Ue=K.multipleSelectItemHeight,[ee]=$(K),fe=le?`${me}-${le}`:"";return{[`${me}-multiple${fe}`]:{fontSize:K.fontSize,[Be]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${me}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${ee-v}px ${v*2}px`,borderRadius:K.borderRadius,[`${me}-show-search&`]:{cursor:"text"},[`${me}-disabled&`]:{background:K.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${v}px 0`,lineHeight:`${Ue}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${me}-show-arrow ${me}-selector,
&${me}-allow-clear ${me}-selector
`]:{paddingInlineEnd:K.fontSizeIcon+K.controlPaddingHorizontal},[`${me}-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,[`${me}-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,pe.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}})},[`${Be}-item + ${Be}-item`]:{[`${me}-selection-search`]:{marginInlineStart:0}},[`${me}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:K.inputPaddingHorizontalBase-ee,"\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"}},[`${me}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:K.inputPaddingHorizontalBase,insetInlineEnd:K.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${K.motionDurationSlow}`}}}}var O=K=>{const{componentCls:le}=K,me=(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}),[,Be]=$(K);return[_(K),_(me,"sm"),{[`${le}-multiple${le}-sm`]:{[`${le}-selection-placeholder`]:{insetInline:K.controlPaddingHorizontalSM-K.lineWidth},[`${le}-selection-search`]:{marginInlineStart:Be}}},_(Oe,"lg")]};function T(K,le){const{componentCls:me,inputPaddingHorizontalBase:Oe,borderRadius:Be}=K,Ue=K.controlHeight-K.lineWidth*2,ee=Math.ceil(K.fontSize*1.25),fe=le?`${me}-${le}`:"";return{[`${me}-single${fe}`]:{fontSize:K.fontSize,[`${me}-selector`]:Object.assign(Object.assign({},(0,pe.Wf)(K)),{display:"flex",borderRadius:Be,[`${me}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Oe,insetInlineEnd:Oe,bottom:0,"&-input":{width:"100%"}},[`
${me}-selection-item,
${me}-selection-placeholder
`]:{padding:0,lineHeight:`${Ue}px`,transition:`all ${K.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ue}px`}},[`${me}-selection-item`]:{position:"relative",userSelect:"none"},[`${me}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${me}-selection-item:after`,`${me}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${me}-show-arrow ${me}-selection-item,
&${me}-show-arrow ${me}-selection-placeholder
`]:{paddingInlineEnd:ee},[`&${me}-open ${me}-selection-item`]:{color:K.colorTextPlaceholder},[`&:not(${me}-customize-input)`]:{[`${me}-selector`]:{width:"100%",height:K.controlHeight,padding:`0 ${Oe}px`,[`${me}-selection-search-input`]:{height:Ue},"&:after":{lineHeight:`${Ue}px`}}},[`&${me}-customize-input`]:{[`${me}-selector`]:{"&:after":{display:"none"},[`${me}-selection-search`]:{position:"static",width:"100%"},[`${me}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Oe}px`,"&:after":{display:"none"}}}}}}}function L(K){const{componentCls:le}=K,me=K.controlPaddingHorizontalSM-K.lineWidth;return[T(K),T((0,P.TS)(K,{controlHeight:K.controlHeightSM,borderRadius:K.borderRadiusSM}),"sm"),{[`${le}-single${le}-sm`]:{[`&:not(${le}-customize-input)`]:{[`${le}-selection-search`]:{insetInlineStart:me,insetInlineEnd:me},[`${le}-selector`]:{padding:`0 ${me}px`},[`&${le}-show-arrow ${le}-selection-search`]:{insetInlineEnd:me+K.fontSize*1.5},[`
&${le}-show-arrow ${le}-selection-item,
&${le}-show-arrow ${le}-selection-placeholder
`]:{paddingInlineEnd:K.fontSize*1.5}}}},T((0,P.TS)(K,{controlHeight:K.singleItemHeightLG,fontSize:K.fontSizeLG,borderRadius:K.borderRadiusLG}),"lg")]}const Y=K=>{const{componentCls:le,selectorBg:me}=K;return{position:"relative",backgroundColor:me,border:`${K.lineWidth}px ${K.lineType} ${K.colorBorder}`,transition:`all ${K.motionDurationMid} ${K.motionEaseInOut}`,input:{cursor:"pointer"},[`${le}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${le}-disabled&`]:{color:K.colorTextDisabled,background:K.colorBgContainerDisabled,cursor:"not-allowed",[`${le}-multiple&`]:{background:K.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},R=function(K,le){let me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Oe,borderHoverColor:Be,outlineColor:Ue,antCls:ee}=le,fe=me?{[`${Oe}-selector`]:{borderColor:Be}}:{};return{[K]:{[`&:not(${Oe}-disabled):not(${Oe}-customize-input):not(${ee}-pagination-size-changer)`]:Object.assign(Object.assign({},fe),{[`${Oe}-focused& ${Oe}-selector`]:{borderColor:Be,boxShadow:`0 0 0 ${le.controlOutlineWidth}px ${Ue}`,outline:0},[`&:hover ${Oe}-selector`]:{borderColor:Be}})}}},se=K=>{const{componentCls:le}=K;return{[`${le}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ne=K=>{const{componentCls:le,inputPaddingHorizontalBase:me,iconCls:Oe}=K;return{[le]:Object.assign(Object.assign({},(0,pe.Wf)(K)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${le}-customize-input) ${le}-selector`]:Object.assign(Object.assign({},Y(K)),se(K)),[`${le}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},pe.vS),[`${le}-selection-placeholder`]:Object.assign(Object.assign({},pe.vS),{flex:1,color:K.colorTextPlaceholder,pointerEvents:"none"}),[`${le}-arrow`]:Object.assign(Object.assign({},(0,pe.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:me,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(${le}-suffix)`]:{pointerEvents:"auto"}},[`${le}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${le}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:me,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":{[`${le}-clear`]:{opacity:1}}}),[`${le}-has-feedback`]:{[`${le}-clear`]:{insetInlineEnd:me+K.fontSize+K.paddingXS}}}},J=K=>{const{componentCls:le}=K;return[{[le]:{[`&-borderless ${le}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${le}-in-form-item`]:{width:"100%"}}},ne(K),L(K),O(K),F(K),{[`${le}-rtl`]:{direction:"rtl"}},R(le,(0,P.TS)(K,{borderHoverColor:K.colorPrimaryHover,outlineColor:K.controlOutline})),R(`${le}-status-error`,(0,P.TS)(K,{borderHoverColor:K.colorErrorHover,outlineColor:K.colorErrorOutline}),!0),R(`${le}-status-warning`,(0,P.TS)(K,{borderHoverColor:K.colorWarningHover,outlineColor:K.colorWarningOutline}),!0),(0,Ae.c)(K,{borderElCls:`${le}-selector`,focusElCls:`${le}-focused`})]};var W=(0,Ne.Z)("Select",(K,le)=>{let{rootPrefixCls:me}=le;const Oe=(0,P.TS)(K,{rootPrefixCls:me,inputPaddingHorizontalBase:K.paddingSM-1,multipleSelectItemHeight:K.multipleItemHeight});return[J(Oe)]},K=>{const{fontSize:le,lineHeight:me,controlHeight:Oe,controlPaddingHorizontal:Be,zIndexPopupBase:Ue,colorText:ee,fontWeightStrong:fe,controlItemBgActive:D,controlItemBgHover:Ye,colorBgContainer:Le,colorFillSecondary:Ce,controlHeightLG:Te,controlHeightSM:be,colorBgContainerDisabled:ke,colorTextDisabled:he}=K;return{zIndexPopup:Ue+50,optionSelectedColor:ee,optionSelectedFontWeight:fe,optionSelectedBg:D,optionActiveBg:Ye,optionPadding:`${(Oe-le*me)/2}px ${Be}px`,optionFontSize:le,optionLineHeight:me,optionHeight:Oe,selectorBg:Le,clearBg:Le,singleItemHeightLG:Te,multipleItemBg:Ce,multipleItemBorderColor:"transparent",multipleItemHeight:be,multipleItemHeightLG:Oe,multipleSelectorBgDisabled:ke,multipleItemColorDisabled:he,multipleItemBorderColorDisabled:"transparent"}})},58582:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ae}});const pe=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,Ne){return P||pe(Ne)}},84443:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return pe}});function pe(Ae,P){return P!==void 0?P:Ae!==null}},66339:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return g}});var pe=x(40001),Ae=x(19248),P=x(99267),Ne=x(84105),te=x(58617),V=x(47472),S=x(59301);function g(F){let{suffixIcon:v,clearIcon:$,menuItemSelectedIcon:_,removeIcon:M,loading:O,multiple:T,hasFeedback:L,prefixCls:Y,showSuffixIcon:R,feedbackIcon:se,showArrow:ne,componentName:J}=F;const W=$!=null?$:S.createElement(Ae.Z,null),K=Be=>v===null&&!L&&!ne?null:S.createElement(S.Fragment,null,R!==!1&&Be,L&&se);let le=null;if(v!==void 0)le=K(v);else if(O)le=K(S.createElement(te.Z,{spin:!0}));else{const Be=`${Y}-suffix`;le=Ue=>{let{open:ee,showSearch:fe}=Ue;return K(ee&&fe?S.createElement(V.Z,{className:Be}):S.createElement(Ne.Z,{className:Be}))}}let me=null;_!==void 0?me=_:T?me=S.createElement(pe.Z,null):me=null;let Oe=null;return M!==void 0?Oe=M:Oe=S.createElement(P.Z,null),{clearIcon:W,suffixIcon:le,itemIcon:me,removeIcon:Oe}}},61621:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return m}});var pe=x(92310),Ae=x.n(pe),P=x(59301),Ne=x(36355),te=x(2738),S=u=>{const{prefixCls:C,className:q,style:Se,size:H,shape:ie}=u,Qe=Ae()({[`${C}-lg`]:H==="large",[`${C}-sm`]:H==="small"}),we=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,we,q),style:Object.assign(Object.assign({},ye),Se)})},g=x(36237),F=x(83116),v=x(37613);const $=new g.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),_=u=>({height:u,lineHeight:`${u}px`}),M=u=>Object.assign({width:u},_(u)),O=u=>({background:u.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:$,animationDuration:u.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),T=u=>Object.assign({width:u*5,minWidth:u*5},_(u)),L=u=>{const{skeletonAvatarCls:C,gradientFromColor:q,controlHeight:Se,controlHeightLG:H,controlHeightSM:ie}=u;return{[`${C}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:q},M(Se)),[`${C}${C}-circle`]:{borderRadius:"50%"},[`${C}${C}-lg`]:Object.assign({},M(H)),[`${C}${C}-sm`]:Object.assign({},M(ie))}},Y=u=>{const{controlHeight:C,borderRadiusSM:q,skeletonInputCls:Se,controlHeightLG:H,controlHeightSM:ie,gradientFromColor:Qe}=u;return{[`${Se}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qe,borderRadius:q},T(C)),[`${Se}-lg`]:Object.assign({},T(H)),[`${Se}-sm`]:Object.assign({},T(ie))}},R=u=>Object.assign({width:u},_(u)),se=u=>{const{skeletonImageCls:C,imageSizeBase:q,gradientFromColor:Se,borderRadiusSM:H}=u;return{[`${C}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Se,borderRadius:H},R(q*2)),{[`${C}-path`]:{fill:"#bfbfbf"},[`${C}-svg`]:Object.assign(Object.assign({},R(q)),{maxWidth:q*4,maxHeight:q*4}),[`${C}-svg${C}-svg-circle`]:{borderRadius:"50%"}}),[`${C}${C}-circle`]:{borderRadius:"50%"}}},ne=(u,C,q)=>{const{skeletonButtonCls:Se}=u;return{[`${q}${Se}-circle`]:{width:C,minWidth:C,borderRadius:"50%"},[`${q}${Se}-round`]:{borderRadius:C}}},J=u=>Object.assign({width:u*2,minWidth:u*2},_(u)),W=u=>{const{borderRadiusSM:C,skeletonButtonCls:q,controlHeight:Se,controlHeightLG:H,controlHeightSM:ie,gradientFromColor:Qe}=u;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${q}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qe,borderRadius:C,width:Se*2,minWidth:Se*2},J(Se))},ne(u,Se,q)),{[`${q}-lg`]:Object.assign({},J(H))}),ne(u,H,`${q}-lg`)),{[`${q}-sm`]:Object.assign({},J(ie))}),ne(u,ie,`${q}-sm`))},K=u=>{const{componentCls:C,skeletonAvatarCls:q,skeletonTitleCls:Se,skeletonParagraphCls:H,skeletonButtonCls:ie,skeletonInputCls:Qe,skeletonImageCls:we,controlHeight:ye,controlHeightLG:je,controlHeightSM:xt,gradientFromColor:de,padding:st,marginSM:tt,borderRadius:Ie,titleHeight:De,blockRadius:lt,paragraphLiHeight:Ut,controlHeightXS:kt,paragraphMarginTop:rr}=u;return{[`${C}`]:{display:"table",width:"100%",[`${C}-header`]:{display:"table-cell",paddingInlineEnd:st,verticalAlign:"top",[`${q}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:de},M(ye)),[`${q}-circle`]:{borderRadius:"50%"},[`${q}-lg`]:Object.assign({},M(je)),[`${q}-sm`]:Object.assign({},M(xt))},[`${C}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Se}`]:{width:"100%",height:De,background:de,borderRadius:lt,[`+ ${H}`]:{marginBlockStart:xt}},[`${H}`]:{padding:0,"> li":{width:"100%",height:Ut,listStyle:"none",background:de,borderRadius:lt,"+ li":{marginBlockStart:kt}}},[`${H}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${C}-content`]:{[`${Se}, ${H} > li`]:{borderRadius:Ie}}},[`${C}-with-avatar ${C}-content`]:{[`${Se}`]:{marginBlockStart:tt,[`+ ${H}`]:{marginBlockStart:rr}}},[`${C}${C}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},W(u)),L(u)),Y(u)),se(u)),[`${C}${C}-block`]:{width:"100%",[`${ie}`]:{width:"100%"},[`${Qe}`]:{width:"100%"}},[`${C}${C}-active`]:{[`
${Se},
${H} > li,
${q},
${ie},
${Qe},
${we}
`]:Object.assign({},O(u))}}};var le=(0,F.Z)("Skeleton",u=>{const{componentCls:C}=u,q=(0,v.TS)(u,{skeletonAvatarCls:`${C}-avatar`,skeletonTitleCls:`${C}-title`,skeletonParagraphCls:`${C}-paragraph`,skeletonButtonCls:`${C}-button`,skeletonInputCls:`${C}-input`,skeletonImageCls:`${C}-image`,imageSizeBase:u.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${u.gradientFromColor} 25%, ${u.gradientToColor} 37%, ${u.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[K(q)]},u=>{const{colorFillContent:C,colorFill:q}=u,Se=C,H=q;return{color:Se,colorGradientEnd:H,gradientFromColor:Se,gradientToColor:H,titleHeight:u.controlHeight/2,blockRadius:u.borderRadiusSM,paragraphMarginTop:u.marginLG+u.marginXXS,paragraphLiHeight:u.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Oe=u=>{const{prefixCls:C,className:q,rootClassName:Se,active:H,shape:ie="circle",size:Qe="default"}=u,{getPrefixCls:we}=P.useContext(Ne.E_),ye=we("skeleton",C),[je,xt]=le(ye),de=(0,te.Z)(u,["prefixCls","className"]),st=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:H},q,Se,xt);return je(P.createElement("div",{className:st},P.createElement(S,Object.assign({prefixCls:`${ye}-avatar`,shape:ie,size:Qe},de))))},Ue=u=>{const{prefixCls:C,className:q,rootClassName:Se,active:H,block:ie=!1,size:Qe="default"}=u,{getPrefixCls:we}=P.useContext(Ne.E_),ye=we("skeleton",C),[je,xt]=le(ye),de=(0,te.Z)(u,["prefixCls"]),st=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:H,[`${ye}-block`]:ie},q,Se,xt);return je(P.createElement("div",{className:st},P.createElement(S,Object.assign({prefixCls:`${ye}-button`,size:Qe},de))))};const ee="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=u=>{const{prefixCls:C,className:q,rootClassName:Se,style:H,active:ie}=u,{getPrefixCls:Qe}=P.useContext(Ne.E_),we=Qe("skeleton",C),[ye,je]=le(we),xt=Ae()(we,`${we}-element`,{[`${we}-active`]:ie},q,Se,je);return ye(P.createElement("div",{className:xt},P.createElement("div",{className:Ae()(`${we}-image`,q),style:H},P.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${we}-image-svg`},P.createElement("path",{d:ee,className:`${we}-image-path`})))))},Le=u=>{const{prefixCls:C,className:q,rootClassName:Se,active:H,block:ie,size:Qe="default"}=u,{getPrefixCls:we}=P.useContext(Ne.E_),ye=we("skeleton",C),[je,xt]=le(ye),de=(0,te.Z)(u,["prefixCls"]),st=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:H,[`${ye}-block`]:ie},q,Se,xt);return je(P.createElement("div",{className:st},P.createElement(S,Object.assign({prefixCls:`${ye}-input`,size:Qe},de))))},Ce=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"},be=Te,ke=x(7657),he=function(C,q){return P.createElement(ke.Z,(0,Ce.Z)({},C,{ref:q,icon:be}))},Ee=P.forwardRef(he),Xe=Ee,ze=u=>{const{prefixCls:C,className:q,rootClassName:Se,style:H,active:ie,children:Qe}=u,{getPrefixCls:we}=P.useContext(Ne.E_),ye=we("skeleton",C),[je,xt]=le(ye),de=Ae()(ye,`${ye}-element`,{[`${ye}-active`]:ie},xt,q,Se),st=Qe!=null?Qe:P.createElement(Xe,null);return je(P.createElement("div",{className:de},P.createElement("div",{className:Ae()(`${ye}-image`,q),style:H},st)))},qe=x(94480),Lt=u=>{const C=we=>{const{width:ye,rows:je=2}=u;if(Array.isArray(ye))return ye[we];if(je-1===we)return ye},{prefixCls:q,className:Se,style:H,rows:ie}=u,Qe=(0,qe.Z)(Array(ie)).map((we,ye)=>P.createElement("li",{key:ye,style:{width:C(ye)}}));return P.createElement("ul",{className:Ae()(q,Se),style:H},Qe)},sr=u=>{let{prefixCls:C,className:q,width:Se,style:H}=u;return P.createElement("h3",{className:Ae()(C,q),style:Object.assign({width:Se},H)})};function er(u){return u&&typeof u=="object"?u:{}}function yr(u,C){return u&&!C?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function lr(u,C){return!u&&C?{width:"38%"}:u&&C?{width:"50%"}:{}}function G(u,C){const q={};return(!u||!C)&&(q.width="61%"),!u&&C?q.rows=3:q.rows=2,q}const dt=u=>{const{prefixCls:C,loading:q,className:Se,rootClassName:H,style:ie,children:Qe,avatar:we=!1,title:ye=!0,paragraph:je=!0,active:xt,round:de}=u,{getPrefixCls:st,direction:tt,skeleton:Ie}=P.useContext(Ne.E_),De=st("skeleton",C),[lt,Ut]=le(De);if(q||!("loading"in u)){const kt=!!we,rr=!!ye,Fr=!!je;let kr;if(kt){const xr=Object.assign(Object.assign({prefixCls:`${De}-avatar`},yr(rr,Fr)),er(we));kr=P.createElement("div",{className:`${De}-header`},P.createElement(S,Object.assign({},xr)))}let Dr;if(rr||Fr){let xr;if(rr){const Kr=Object.assign(Object.assign({prefixCls:`${De}-title`},lr(kt,Fr)),er(ye));xr=P.createElement(sr,Object.assign({},Kr))}let ur;if(Fr){const Kr=Object.assign(Object.assign({prefixCls:`${De}-paragraph`},G(kt,rr)),er(je));ur=P.createElement(Lt,Object.assign({},Kr))}Dr=P.createElement("div",{className:`${De}-content`},xr,ur)}const Nr=Ae()(De,{[`${De}-with-avatar`]:kt,[`${De}-active`]:xt,[`${De}-rtl`]:tt==="rtl",[`${De}-round`]:de},Ie==null?void 0:Ie.className,Se,H,Ut);return lt(P.createElement("div",{className:Nr,style:Object.assign(Object.assign({},Ie==null?void 0:Ie.style),ie)},kr,Dr))}return typeof Qe!="undefined"?Qe:null};dt.Button=Ue,dt.Avatar=Oe,dt.Input=Le,dt.Image=D,dt.Node=ze;var I=dt,m=I},81327:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Y}});var pe=x(59301),Ae=x(92310),P=x.n(Ae),Ne=x(11592),te=x(36355),V=x(33234);const S=pe.createContext({latestIndex:0}),g=S.Provider;var v=R=>{let{className:se,index:ne,children:J,split:W,style:K}=R;const{latestIndex:le}=pe.useContext(S);return J==null?null:pe.createElement(pe.Fragment,null,pe.createElement("div",{className:se,style:K},J),ne<le&&W&&pe.createElement("span",{className:`${se}-split`},W))},$=x(2856);function _(R){return["small","middle","large"].includes(R)}function M(R){return R?typeof R=="number"&&!Number.isNaN(R):!1}var O=function(R,se){var ne={};for(var J in R)Object.prototype.hasOwnProperty.call(R,J)&&se.indexOf(J)<0&&(ne[J]=R[J]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var W=0,J=Object.getOwnPropertySymbols(R);W<J.length;W++)se.indexOf(J[W])<0&&Object.prototype.propertyIsEnumerable.call(R,J[W])&&(ne[J[W]]=R[J[W]]);return ne};const L=pe.forwardRef((R,se)=>{var ne,J;const{getPrefixCls:W,space:K,direction:le}=pe.useContext(te.E_),{size:me=(K==null?void 0:K.size)||"small",align:Oe,className:Be,rootClassName:Ue,children:ee,direction:fe="horizontal",prefixCls:D,split:Ye,style:Le,wrap:Ce=!1,classNames:Te,styles:be}=R,ke=O(R,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[he,Ee]=Array.isArray(me)?me:[me,me],Xe=_(Ee),et=_(he),ze=M(Ee),qe=M(he),Et=(0,Ne.Z)(ee,{keepEmpty:!0}),Lt=Oe===void 0&&fe==="horizontal"?"center":Oe,Ot=W("space",D),[sr,er]=(0,$.Z)(Ot),yr=P()(Ot,K==null?void 0:K.className,er,`${Ot}-${fe}`,{[`${Ot}-rtl`]:le==="rtl",[`${Ot}-align-${Lt}`]:Lt,[`${Ot}-gap-row-${Ee}`]:Xe,[`${Ot}-gap-col-${he}`]:et},Be,Ue),lr=P()(`${Ot}-item`,(ne=Te==null?void 0:Te.item)!==null&&ne!==void 0?ne:(J=K==null?void 0:K.classNames)===null||J===void 0?void 0:J.item);let G=0;const dt=Et.map((u,C)=>{var q,Se;u!=null&&(G=C);const H=u&&u.key||`${lr}-${C}`;return pe.createElement(v,{className:lr,key:H,index:C,split:Ye,style:(q=be==null?void 0:be.item)!==null&&q!==void 0?q:(Se=K==null?void 0:K.styles)===null||Se===void 0?void 0:Se.item},u)}),I=pe.useMemo(()=>({latestIndex:G}),[G]);if(Et.length===0)return null;const m={};return Ce&&(m.flexWrap="wrap"),!et&&qe&&(m.columnGap=he),!Xe&&ze&&(m.rowGap=Ee),sr(pe.createElement("div",Object.assign({ref:se,className:yr,style:Object.assign(Object.assign(Object.assign({},m),K==null?void 0:K.style),Le)},ke),pe.createElement(g,{value:I},dt)))});L.Compact=V.ZP;var Y=L},8378:function(un,Tt){"use strict";const x=pe=>({[pe.componentCls]:{[`${pe.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${pe.motionDurationMid} ${pe.motionEaseInOut},
opacity ${pe.motionDurationMid} ${pe.motionEaseInOut} !important`}},[`${pe.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${pe.motionDurationMid} ${pe.motionEaseInOut},
opacity ${pe.motionDurationMid} ${pe.motionEaseInOut} !important`}}});Tt.Z=x},92899:function(un,Tt,x){"use strict";x.d(Tt,{Fm:function(){return _}});var pe=x(36237),Ae=x(95406);const P=new pe.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Ne=new pe.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 pe.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 pe.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 pe.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 pe.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),F=new pe.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 pe.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),$={"move-up":{inKeyframes:F,outKeyframes:v},"move-down":{inKeyframes:P,outKeyframes:Ne},"move-left":{inKeyframes:te,outKeyframes:V},"move-right":{inKeyframes:S,outKeyframes:g}},_=(M,O)=>{const{antCls:T}=M,L=`${T}-${O}`,{inKeyframes:Y,outKeyframes:R}=$[O];return[(0,Ae.R)(L,Y,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 Ne},fJ:function(){return P},ly:function(){return V},oN:function(){return _}});var pe=x(36237),Ae=x(95406);const P=new pe.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Ne=new pe.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),te=new pe.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),V=new pe.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),S=new pe.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),g=new pe.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),F=new pe.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),v=new pe.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$={"slide-up":{inKeyframes:P,outKeyframes:Ne},"slide-down":{inKeyframes:te,outKeyframes:V},"slide-left":{inKeyframes:S,outKeyframes:g},"slide-right":{inKeyframes:F,outKeyframes:v}},_=(M,O)=>{const{antCls:T}=M,L=`${T}-${O}`,{inKeyframes:Y,outKeyframes:R}=$[O];return[(0,Ae.R)(L,Y,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 pe}});const pe=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 pe={},Ae="rc-table-internal-hook",P=x(42978),Ne=x(6089),te=x(34280),V=x(13697),S=x(59301),g=x(4676);function F(ue){var xe=S.createContext(void 0),Je=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),_r=dr[0];return(0,te.Z)(function(){(0,g.unstable_batchedUpdates)(function(){_r.listeners.forEach(function(mr){mr(vt)})})},[vt]),S.createElement(xe.Provider,{value:_r},$t)};return{Context:xe,Provider:Je,defaultValue:ue}}function v(ue,xe){var Je=(0,Ne.Z)(typeof xe=="function"?xe:function(mr){if(xe===void 0)return mr;if(!Array.isArray(xe))return mr[xe];var tn={};return xe.forEach(function(Vr){tn[Vr]=mr[Vr]}),tn}),ct=S.useContext(ue==null?void 0:ue.Context),Ct=ct||{},vt=Ct.listeners,$t=Ct.getValue,zt=S.useRef();zt.current=Je(ct?$t():ue==null?void 0:ue.defaultValue);var Qt=S.useState({}),dr=(0,P.Z)(Qt,2),_r=dr[1];return(0,te.Z)(function(){if(!ct)return;function mr(tn){var Vr=Je(tn);(0,V.Z)(zt.current,Vr,!0)||_r({})}return vt.add(mr),function(){vt.delete(mr)}},[ct]),zt.current}var $=x(54476),_=x(8654);function M(){var ue=S.createContext(null);function xe(){return S.useContext(ue)}function Je(Ct,vt){var $t=(0,_.Yr)(Ct),zt=function(dr,_r){var mr=$t?{ref:_r}:{},tn=S.useRef(0),Vr=S.useRef(dr),Yr=xe();return Yr!==null?S.createElement(Ct,(0,$.Z)({},dr,mr)):((!vt||vt(Vr.current,dr))&&(tn.current+=1),Vr.current=dr,S.createElement(ue.Provider,{value:tn.current},S.createElement(Ct,(0,$.Z)({},dr,mr))))};return $t?S.forwardRef(zt):zt}function ct(Ct,vt){var $t=(0,_.Yr)(Ct),zt=function(dr,_r){var mr=$t?{ref:_r}:{};return xe(),S.createElement(Ct,(0,$.Z)({},dr,mr))};return $t?S.memo(S.forwardRef(zt),vt):S.memo(zt,vt)}return{makeImmutable:Je,responseImmutable:ct,useImmutableMark:xe}}var O=M(),T=O.makeImmutable,L=O.responseImmutable,Y=O.useImmutableMark,R=M(),se=R.makeImmutable,ne=R.responseImmutable,J=R.useImmutableMark,W=F(),K=W;function le(ue,xe){var Je=S.useRef(0);Je.current+=1;var ct=S.useRef(ue),Ct=[];Object.keys(ue||{}).map(function($t){var zt;(ue==null?void 0:ue[$t])!==((zt=ct.current)===null||zt===void 0?void 0:zt[$t])&&Ct.push($t)}),ct.current=ue;var vt=S.useRef([]);return Ct.length&&(vt.current=Ct),S.useDebugValue(Je.current),S.useDebugValue(vt.current.join(", ")),xe&&console.log("".concat(xe,":"),Je.current,vt.current),Je.current}var me=null,Oe=S.memo(function(){var ue=le();return S.createElement("h1",null,"Render Times: ",ue)});Oe.displayName="RenderBlock";var Be=x(76190),Ue=x(33885),ee=x(20068),fe=x(92310),D=x.n(fe),Ye=x(80547),Le=x(97938),Ce=x(48736),Te=S.createContext({renderWithProps:!1}),be=Te,ke="RC_TABLE_KEY";function he(ue){return ue==null?[]:Array.isArray(ue)?ue:[ue]}function Ee(ue){var xe=[],Je={};return ue.forEach(function(ct){for(var Ct=ct||{},vt=Ct.key,$t=Ct.dataIndex,zt=vt||he($t).join("-")||ke;Je[zt];)zt="".concat(zt,"_next");Je[zt]=!0,xe.push(zt)}),xe}function Xe(ue){return ue!=null}function et(ue){return ue&&(0,Be.Z)(ue)==="object"&&!Array.isArray(ue)&&!S.isValidElement(ue)}function ze(ue,xe,Je,ct,Ct,vt){var $t=S.useContext(be),zt=J(),Qt=(0,Ye.Z)(function(){if(Xe(ct))return[ct];var dr=xe==null||xe===""?[]:Array.isArray(xe)?xe:[xe],_r=(0,Le.Z)(ue,dr),mr=_r,tn=void 0;if(Ct){var Vr=Ct(_r,ue,Je);et(Vr)?(mr=Vr.children,tn=Vr.props,$t.renderWithProps=!0):mr=Vr}return[mr,tn]},[zt,ue,ct,xe,Ct,Je],function(dr,_r){if(vt){var mr=(0,P.Z)(dr,2),tn=mr[1],Vr=(0,P.Z)(_r,2),Yr=Vr[1];return vt(Yr,tn)}return $t.renderWithProps?!0:!(0,V.Z)(dr,_r,!0)});return Qt}function qe(ue,xe,Je,ct){var Ct=ue+xe-1;return ue<=ct&&Ct>=Je}function Et(ue,xe){return v(K,function(Je){var ct=qe(ue,xe||1,Je.hoverStartRow,Je.hoverEndRow);return[ct,Je.onHover]})}var Lt=function(xe){var Je=xe.ellipsis,ct=xe.rowType,Ct=xe.children,vt,$t=Je===!0?{showTitle:!0}:Je;return $t&&($t.showTitle||ct==="header")&&(typeof Ct=="string"||typeof Ct=="number"?vt=Ct.toString():S.isValidElement(Ct)&&typeof Ct.props.children=="string"&&(vt=Ct.props.children)),vt};function Ot(ue){var xe,Je,ct,Ct,vt,$t,zt,Qt,dr=ue.component,_r=ue.children,mr=ue.ellipsis,tn=ue.scope,Vr=ue.prefixCls,Yr=ue.className,Pn=ue.align,xn=ue.record,Fn=ue.render,Bn=ue.dataIndex,zn=ue.renderIndex,Ti=ue.shouldCellUpdate,ji=ue.index,mi=ue.rowType,na=ue.colSpan,wa=ue.rowSpan,Yn=ue.fixLeft,bi=ue.fixRight,oi=ue.firstFixLeft,Tn=ue.lastFixLeft,si=ue.firstFixRight,Vi=ue.lastFixRight,Na=ue.appendNode,pa=ue.additionalProps,Wi=pa===void 0?{}:pa,_a=ue.isSticky,Qa="".concat(Vr,"-cell"),Yo=v(K,["supportSticky","allColumnsFixedLeft"]),lo=Yo.supportSticky,vs=Yo.allColumnsFixedLeft,cs=ze(xn,Bn,zn,_r,Fn,Ti),ma=(0,P.Z)(cs,2),al=ma[0],mo=ma[1],qo={},rs=typeof Yn=="number"&&lo,xc=typeof bi=="number"&&lo;rs&&(qo.position="sticky",qo.left=Yn),xc&&(qo.position="sticky",qo.right=bi);var li=(xe=(Je=(ct=mo==null?void 0:mo.colSpan)!==null&&ct!==void 0?ct:Wi.colSpan)!==null&&Je!==void 0?Je:na)!==null&&xe!==void 0?xe:1,Gi=(Ct=(vt=($t=mo==null?void 0:mo.rowSpan)!==null&&$t!==void 0?$t:Wi.rowSpan)!==null&&vt!==void 0?vt:wa)!==null&&Ct!==void 0?Ct:1,zi=Et(ji,Gi),Ni=(0,P.Z)(zi,2),vo=Ni[0],Oi=Ni[1],ca=function(Hn){var dc;xn&&Oi(ji,ji+Gi-1),Wi==null||(dc=Wi.onMouseEnter)===null||dc===void 0||dc.call(Wi,Hn)},ja=function(Hn){var dc;xn&&Oi(-1,-1),Wi==null||(dc=Wi.onMouseLeave)===null||dc===void 0||dc.call(Wi,Hn)};if(li===0||Gi===0)return null;var Za=(zt=Wi.title)!==null&&zt!==void 0?zt:Lt({rowType:mi,ellipsis:mr,children:al}),Ml=D()(Qa,Yr,(Qt={},(0,ee.Z)(Qt,"".concat(Qa,"-fix-left"),rs&&lo),(0,ee.Z)(Qt,"".concat(Qa,"-fix-left-first"),oi&&lo),(0,ee.Z)(Qt,"".concat(Qa,"-fix-left-last"),Tn&&lo),(0,ee.Z)(Qt,"".concat(Qa,"-fix-left-all"),Tn&&vs&&lo),(0,ee.Z)(Qt,"".concat(Qa,"-fix-right"),xc&&lo),(0,ee.Z)(Qt,"".concat(Qa,"-fix-right-first"),si&&lo),(0,ee.Z)(Qt,"".concat(Qa,"-fix-right-last"),Vi&&lo),(0,ee.Z)(Qt,"".concat(Qa,"-ellipsis"),mr),(0,ee.Z)(Qt,"".concat(Qa,"-with-append"),Na),(0,ee.Z)(Qt,"".concat(Qa,"-fix-sticky"),(rs||xc)&&_a&&lo),(0,ee.Z)(Qt,"".concat(Qa,"-row-hover"),!mo&&vo),Qt),Wi.className,mo==null?void 0:mo.className),nl={};Pn&&(nl.textAlign=Pn);var Gc=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},qo),Wi.style),nl),mo==null?void 0:mo.style),Us=al;return(0,Be.Z)(Us)==="object"&&!Array.isArray(Us)&&!S.isValidElement(Us)&&(Us=null),mr&&(Tn||si)&&(Us=S.createElement("span",{className:"".concat(Qa,"-content")},Us)),S.createElement(dr,(0,$.Z)({},mo,Wi,{className:Ml,style:Gc,title:Za,scope:tn,onMouseEnter:ca,onMouseLeave:ja,colSpan:li!==1?li:null,rowSpan:Gi!==1?Gi:null}),Na,Us)}var sr=S.memo(Ot);function er(ue,xe,Je,ct,Ct,vt){var $t=Je[ue]||{},zt=Je[xe]||{},Qt,dr;$t.fixed==="left"?Qt=ct.left[Ct==="rtl"?xe:ue]:zt.fixed==="right"&&(dr=ct.right[Ct==="rtl"?ue:xe]);var _r=!1,mr=!1,tn=!1,Vr=!1,Yr=Je[xe+1],Pn=Je[ue-1],xn=!(vt!=null&&vt.children);if(Ct==="rtl"){if(Qt!==void 0){var Fn=Pn&&Pn.fixed==="left";Vr=!Fn&&xn}else if(dr!==void 0){var Bn=Yr&&Yr.fixed==="right";tn=!Bn&&xn}}else if(Qt!==void 0){var zn=Yr&&Yr.fixed==="left";_r=!zn&&xn}else if(dr!==void 0){var Ti=Pn&&Pn.fixed==="right";mr=!Ti&&xn}return{fixLeft:Qt,fixRight:dr,lastFixLeft:_r,firstFixRight:mr,lastFixRight:tn,firstFixLeft:Vr,isSticky:ct.isSticky}}var yr=S.createContext({}),lr=yr;function G(ue){var xe=ue.className,Je=ue.index,ct=ue.children,Ct=ue.colSpan,vt=Ct===void 0?1:Ct,$t=ue.rowSpan,zt=ue.align,Qt=v(K,["prefixCls","direction"]),dr=Qt.prefixCls,_r=Qt.direction,mr=S.useContext(lr),tn=mr.scrollColumnIndex,Vr=mr.stickyOffsets,Yr=mr.flattenColumns,Pn=mr.columns,xn=Je+vt-1,Fn=xn+1===tn?vt+1:vt,Bn=er(Je,Je+Fn-1,Yr,Vr,_r,Pn==null?void 0:Pn[Je]);return S.createElement(sr,(0,$.Z)({className:xe,index:Je,component:"td",prefixCls:dr,record:null,dataIndex:null,align:zt,colSpan:Fn,rowSpan:$t,render:function(){return ct}},Bn))}var dt=x(75931),I=["children"];function m(ue){var xe=ue.children,Je=(0,dt.Z)(ue,I);return S.createElement("tr",Je,xe)}function u(ue){var xe=ue.children;return xe}u.Row=m,u.Cell=G;var C=u;function q(ue){var xe=ue.children,Je=ue.stickyOffsets,ct=ue.flattenColumns,Ct=ue.columns,vt=v(K,"prefixCls"),$t=ct.length-1,zt=ct[$t],Qt=S.useMemo(function(){return{stickyOffsets:Je,flattenColumns:ct,scrollColumnIndex:zt!=null&&zt.scrollbar?$t:null,columns:Ct}},[zt,ct,$t,Je,Ct]);return S.createElement(lr.Provider,{value:Qt},S.createElement("tfoot",{className:"".concat(vt,"-summary")},xe))}var Se=ne(q),H=C,ie=x(70425),Qe=x(29301),we=x(29194),ye=x(3465),je=x(75152),xt=x(26112);function de(ue,xe,Je,ct,Ct,vt,$t){ue.push({record:xe,indent:Je,index:$t});var zt=vt(xe),Qt=Ct==null?void 0:Ct.has(zt);if(xe&&Array.isArray(xe[ct])&&Qt)for(var dr=0;dr<xe[ct].length;dr+=1)de(ue,xe[ct][dr],Je+1,ct,Ct,vt,dr)}function st(ue,xe,Je,ct){var Ct=S.useMemo(function(){if(Je!=null&&Je.size){for(var vt=[],$t=0;$t<(ue==null?void 0:ue.length);$t+=1){var zt=ue[$t];de(vt,zt,0,xe,Je,ct,$t)}return vt}return ue==null?void 0:ue.map(function(Qt,dr){return{record:Qt,indent:0,index:dr}})},[ue,xe,Je,ct]);return Ct}function tt(ue){var xe=ue.prefixCls,Je=ue.children,ct=ue.component,Ct=ue.cellComponent,vt=ue.className,$t=ue.expanded,zt=ue.colSpan,Qt=ue.isEmpty,dr=v(K,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),_r=dr.scrollbarSize,mr=dr.fixHeader,tn=dr.fixColumn,Vr=dr.componentWidth,Yr=dr.horizonScroll,Pn=Je;return(Qt?Yr&&Vr:tn)&&(Pn=S.createElement("div",{style:{width:Vr-(mr?_r:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(xe,"-expanded-row-fixed")},Pn)),S.createElement(ct,{className:vt,style:{display:$t?null:"none"}},S.createElement(sr,{component:Ct,prefixCls:xe,colSpan:zt},Pn))}var Ie=tt;function De(ue,xe,Je,ct){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,_r=Ct.rowExpandable,mr=Ct.onRow,tn=Ct.expandRowByClick,Vr=Ct.rowClassName,Yr=$t==="nest",Pn=$t==="row"&&(!_r||_r(ue)),xn=Pn||Yr,Fn=zt&&zt.has(xe),Bn=Qt&&ue&&ue[Qt],zn=(0,ie.useEvent)(dr),Ti=mr==null?void 0:mr(ue,Je),ji=Ti==null?void 0:Ti.onClick,mi=function(bi){tn&&xn&&dr(ue,bi);for(var oi=arguments.length,Tn=new Array(oi>1?oi-1:0),si=1;si<oi;si++)Tn[si-1]=arguments[si];ji==null||ji.apply(void 0,[bi].concat(Tn))},na;typeof Vr=="string"?na=Vr:typeof Vr=="function"&&(na=Vr(ue,Je,ct));var wa=Ee(vt);return(0,Ue.Z)((0,Ue.Z)({},Ct),{},{columnsKey:wa,nestExpandable:Yr,expanded:Fn,hasNestChildren:Bn,record:ue,onTriggerExpand:zn,rowSupportExpand:Pn,expandable:xn,rowProps:(0,Ue.Z)((0,Ue.Z)({},Ti),{},{className:D()(na,Ti==null?void 0:Ti.className),onClick:mi})})}function lt(ue,xe,Je,ct,Ct){var vt=ue.record,$t=ue.prefixCls,zt=ue.columnsKey,Qt=ue.fixedInfoList,dr=ue.expandIconColumnIndex,_r=ue.nestExpandable,mr=ue.indentSize,tn=ue.expandIcon,Vr=ue.expanded,Yr=ue.hasNestChildren,Pn=ue.onTriggerExpand,xn=zt[Je],Fn=Qt[Je],Bn;Je===(dr||0)&&_r&&(Bn=S.createElement(S.Fragment,null,S.createElement("span",{style:{paddingLeft:"".concat(mr*ct,"px")},className:"".concat($t,"-row-indent indent-level-").concat(ct)}),tn({prefixCls:$t,expanded:Vr,expandable:Yr,record:vt,onExpand:Pn})));var zn;return xe.onCell&&(zn=xe.onCell(vt,Ct)),{key:xn,fixedInfo:Fn,appendCellNode:Bn,additionalCellProps:zn||{}}}function Ut(ue){var xe=ue.className,Je=ue.style,ct=ue.record,Ct=ue.index,vt=ue.renderIndex,$t=ue.rowKey,zt=ue.indent,Qt=zt===void 0?0:zt,dr=ue.rowComponent,_r=ue.cellComponent,mr=ue.scopeCellComponent,tn=De(ct,$t,Ct,Qt),Vr=tn.prefixCls,Yr=tn.flattenColumns,Pn=tn.expandedRowClassName,xn=tn.expandedRowRender,Fn=tn.rowProps,Bn=tn.expanded,zn=tn.rowSupportExpand,Ti=S.useState(!1),ji=(0,P.Z)(Ti,2),mi=ji[0],na=ji[1];S.useEffect(function(){Bn&&na(!0)},[Bn]);var wa=S.createElement(dr,(0,$.Z)({},Fn,{"data-row-key":$t,className:D()(xe,"".concat(Vr,"-row"),"".concat(Vr,"-row-level-").concat(Qt),Fn==null?void 0:Fn.className),style:(0,Ue.Z)((0,Ue.Z)({},Je),Fn==null?void 0:Fn.style)}),Yr.map(function(Tn,si){var Vi=Tn.render,Na=Tn.dataIndex,pa=Tn.className,Wi=lt(tn,Tn,si,Qt,Ct),_a=Wi.key,Qa=Wi.fixedInfo,Yo=Wi.appendCellNode,lo=Wi.additionalCellProps;return S.createElement(sr,(0,$.Z)({className:pa,ellipsis:Tn.ellipsis,align:Tn.align,scope:Tn.rowScope,component:Tn.rowScope?mr:_r,prefixCls:Vr,key:_a,record:ct,index:Ct,renderIndex:vt,dataIndex:Na,render:Vi,shouldCellUpdate:Tn.shouldCellUpdate},Qa,{appendNode:Yo,additionalProps:lo}))})),Yn;if(zn&&(mi||Bn)){var bi=xn(ct,Ct,Qt+1,Bn),oi=Pn&&Pn(ct,Ct,Qt);Yn=S.createElement(Ie,{expanded:Bn,className:D()("".concat(Vr,"-expanded-row"),"".concat(Vr,"-expanded-row-level-").concat(Qt+1),oi),prefixCls:Vr,component:dr,cellComponent:_r,colSpan:Yr.length,isEmpty:!1},bi)}return S.createElement(S.Fragment,null,wa,Yn)}Ut.displayName="BodyRow";var kt=ne(Ut);function rr(ue){var xe=ue.columnKey,Je=ue.onColumnResize,ct=S.useRef();return S.useEffect(function(){ct.current&&Je(xe,ct.current.offsetWidth)},[]),S.createElement(Qe.Z,{data:xe},S.createElement("td",{ref:ct,style:{padding:0,border:0,height:0}},S.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Fr(ue){var xe=ue.prefixCls,Je=ue.columnsKey,ct=ue.onColumnResize;return S.createElement("tr",{"aria-hidden":"true",className:"".concat(xe,"-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;ct(zt,Qt.offsetWidth)})}},Je.map(function(Ct){return S.createElement(rr,{key:Ct,columnKey:Ct,onColumnResize:ct})})))}function kr(ue){var xe=ue.data,Je=ue.measureColumnWidth,ct=v(K,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Ct=ct.prefixCls,vt=ct.getComponent,$t=ct.onColumnResize,zt=ct.flattenColumns,Qt=ct.getRowKey,dr=ct.expandedKeys,_r=ct.childrenColumnName,mr=ct.emptyNode,tn=st(xe,_r,dr,Qt),Vr=S.useRef({renderWithProps:!1}),Yr=vt(["body","wrapper"],"tbody"),Pn=vt(["body","row"],"tr"),xn=vt(["body","cell"],"td"),Fn=vt(["body","cell"],"th"),Bn;xe.length?Bn=tn.map(function(Ti,ji){var mi=Ti.record,na=Ti.indent,wa=Ti.index,Yn=Qt(mi,ji);return S.createElement(kt,{key:Yn,rowKey:Yn,record:mi,index:ji,renderIndex:wa,rowComponent:Pn,cellComponent:xn,scopeCellComponent:Fn,getRowKey:Qt,indent:na})}):Bn=S.createElement(Ie,{expanded:!0,className:"".concat(Ct,"-placeholder"),prefixCls:Ct,component:Pn,cellComponent:xn,colSpan:zt.length,isEmpty:!0},mr);var zn=Ee(zt);return S.createElement(be.Provider,{value:Vr.current},S.createElement(Yr,{className:"".concat(Ct,"-tbody")},Je&&S.createElement(Fr,{prefixCls:Ct,columnsKey:zn,onColumnResize:$t}),Bn))}kr.displayName="Body";var Dr=ne(kr),Nr=["expandable"],xr="RC_TABLE_INTERNAL_COL_DEFINE";function ur(ue){var xe=ue.expandable,Je=(0,dt.Z)(ue,Nr),ct;return"expandable"in ue?ct=(0,Ue.Z)((0,Ue.Z)({},Je),xe):ct=Je,ct.showExpandColumn===!1&&(ct.expandIconColumnIndex=-1),ct}var Kr=["columnType"];function pn(ue){for(var xe=ue.colWidths,Je=ue.columns,ct=ue.columCount,Ct=[],vt=ct||Je.length,$t=!1,zt=vt-1;zt>=0;zt-=1){var Qt=xe[zt],dr=Je&&Je[zt],_r=dr&&dr[xr];if(Qt||_r||$t){var mr=_r||{},tn=mr.columnType,Vr=(0,dt.Z)(mr,Kr);Ct.unshift(S.createElement("col",(0,$.Z)({key:zt,style:{width:Qt}},Vr))),$t=!0}}return S.createElement("colgroup",null,Ct)}var kn=pn,mn=x(94480),Dn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ki(ue,xe){return(0,S.useMemo)(function(){for(var Je=[],ct=0;ct<xe;ct+=1){var Ct=ue[ct];if(Ct!==void 0)Je[ct]=Ct;else return null}return Je},[ue.join("_"),xe])}var hr=S.forwardRef(function(ue,xe){var Je=ue.className,ct=ue.noData,Ct=ue.columns,vt=ue.flattenColumns,$t=ue.colWidths,zt=ue.columCount,Qt=ue.stickyOffsets,dr=ue.direction,_r=ue.fixHeader,mr=ue.stickyTopOffset,tn=ue.stickyBottomOffset,Vr=ue.stickyClassName,Yr=ue.onScroll,Pn=ue.maxContentScroll,xn=ue.children,Fn=(0,dt.Z)(ue,Dn),Bn=v(K,["prefixCls","scrollbarSize","isSticky"]),zn=Bn.prefixCls,Ti=Bn.scrollbarSize,ji=Bn.isSticky,mi=ji&&!_r?0:Ti,na=S.useRef(null),wa=S.useCallback(function(pa){(0,_.mH)(xe,pa),(0,_.mH)(na,pa)},[]);S.useEffect(function(){var pa;function Wi(_a){var Qa=_a,Yo=Qa.currentTarget,lo=Qa.deltaX;lo&&(Yr({currentTarget:Yo,scrollLeft:Yo.scrollLeft+lo}),_a.preventDefault())}return(pa=na.current)===null||pa===void 0||pa.addEventListener("wheel",Wi),function(){var _a;(_a=na.current)===null||_a===void 0||_a.removeEventListener("wheel",Wi)}},[]);var Yn=S.useMemo(function(){return vt.every(function(pa){return pa.width})},[vt]),bi=vt[vt.length-1],oi={fixed:bi?bi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(zn,"-cell-scrollbar")}}},Tn=(0,S.useMemo)(function(){return mi?[].concat((0,mn.Z)(Ct),[oi]):Ct},[mi,Ct]),si=(0,S.useMemo)(function(){return mi?[].concat((0,mn.Z)(vt),[oi]):vt},[mi,vt]),Vi=(0,S.useMemo)(function(){var pa=Qt.right,Wi=Qt.left;return(0,Ue.Z)((0,Ue.Z)({},Qt),{},{left:dr==="rtl"?[].concat((0,mn.Z)(Wi.map(function(_a){return _a+mi})),[0]):Wi,right:dr==="rtl"?pa:[].concat((0,mn.Z)(pa.map(function(_a){return _a+mi})),[0]),isSticky:ji})},[mi,Qt,ji]),Na=Ki($t,zt);return S.createElement("div",{style:(0,Ue.Z)({overflow:"hidden"},ji?{top:mr,bottom:tn}:{}),ref:wa,className:D()(Je,(0,ee.Z)({},Vr,!!Vr))},S.createElement("table",{style:{tableLayout:"fixed",visibility:ct||Na?null:"hidden"}},(!ct||!Pn||Yn)&&S.createElement(kn,{colWidths:Na?[].concat((0,mn.Z)(Na),[mi]):[],columCount:zt+1,columns:si}),xn((0,Ue.Z)((0,Ue.Z)({},Fn),{},{stickyOffsets:Vi,columns:Tn,flattenColumns:si}))))});hr.displayName="FixedHolder";var Gn=S.memo(hr);function Hi(ue){var xe=ue.cells,Je=ue.stickyOffsets,ct=ue.flattenColumns,Ct=ue.rowComponent,vt=ue.cellComponent,$t=ue.tdCellComponent,zt=ue.onHeaderRow,Qt=ue.index,dr=v(K,["prefixCls","direction"]),_r=dr.prefixCls,mr=dr.direction,tn;zt&&(tn=zt(xe.map(function(Yr){return Yr.column}),Qt));var Vr=Ee(xe.map(function(Yr){return Yr.column}));return S.createElement(Ct,tn,xe.map(function(Yr,Pn){var xn=Yr.column,Fn=er(Yr.colStart,Yr.colEnd,ct,Je,mr,xn),Bn;return xn&&xn.onHeaderCell&&(Bn=Yr.column.onHeaderCell(xn)),S.createElement(sr,(0,$.Z)({},Yr,{scope:xn.title?Yr.colSpan>1?"colgroup":"col":null,ellipsis:xn.ellipsis,align:xn.align,component:xn.title?vt:$t,prefixCls:_r,key:Vr[Pn]},Fn,{additionalProps:Bn,rowType:"header"}))}))}Hi.displayName="HeaderRow";var di=Hi;function $i(ue){var xe=[];function Je($t,zt){var Qt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;xe[Qt]=xe[Qt]||[];var dr=zt,_r=$t.filter(Boolean).map(function(mr){var tn={key:mr.key,className:mr.className||"",children:mr.title,column:mr,colStart:dr},Vr=1,Yr=mr.children;return Yr&&Yr.length>0&&(Vr=Je(Yr,dr,Qt+1).reduce(function(Pn,xn){return Pn+xn},0),tn.hasSubColumns=!0),"colSpan"in mr&&(Vr=mr.colSpan),"rowSpan"in mr&&(tn.rowSpan=mr.rowSpan),tn.colSpan=Vr,tn.colEnd=tn.colStart+Vr-1,xe[Qt].push(tn),dr+=Vr,Vr});return _r}Je(ue,0);for(var ct=xe.length,Ct=function(zt){xe[zt].forEach(function(Qt){!("rowSpan"in Qt)&&!Qt.hasSubColumns&&(Qt.rowSpan=ct-zt)})},vt=0;vt<ct;vt+=1)Ct(vt);return xe}function Ri(ue){var xe=ue.stickyOffsets,Je=ue.columns,ct=ue.flattenColumns,Ct=ue.onHeaderRow,vt=v(K,["prefixCls","getComponent"]),$t=vt.prefixCls,zt=vt.getComponent,Qt=S.useMemo(function(){return $i(Je)},[Je]),dr=zt(["header","wrapper"],"thead"),_r=zt(["header","row"],"tr"),mr=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(di,{key:Yr,flattenColumns:ct,cells:Vr,stickyOffsets:xe,rowComponent:_r,cellComponent:mr,tdCellComponent:tn,onHeaderRow:Ct,index:Yr});return Pn}))}var Zi=ne(Ri),za=x(11592);function Fi(ue){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof xe=="number"?xe:xe.endsWith("%")?ue*parseFloat(xe)/100:null}function qn(ue,xe){return S.useMemo(function(){if(xe&&xe>0){var Je=0,ct=0;ue.forEach(function(dr){var _r=Fi(xe,dr.width);_r?Je+=_r:ct+=1});var Ct=xe-Je,vt=ct,$t=Ct/ct,zt=0,Qt=ue.map(function(dr){var _r=(0,Ue.Z)({},dr),mr=Fi(xe,_r.width);if(mr)_r.width=mr;else{var tn=Math.floor($t);_r.width=vt===1?Ct:tn,Ct-=tn,vt-=1}return zt+=_r.width,_r});return[Qt,zt]}return[ue,xe]},[ue,xe])}var ai=["children"],yi=["fixed"];function ge(ue){return(0,za.Z)(ue).filter(function(xe){return S.isValidElement(xe)}).map(function(xe){var Je=xe.key,ct=xe.props,Ct=ct.children,vt=(0,dt.Z)(ct,ai),$t=(0,Ue.Z)({key:Je},vt);return Ct&&($t.children=ge(Ct)),$t})}function Me(ue){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return ue.filter(function(Je){return Je&&(0,Be.Z)(Je)==="object"}).reduce(function(Je,ct,Ct){var vt=ct.fixed,$t=vt===!0?"left":vt,zt="".concat(xe,"-").concat(Ct),Qt=ct.children;return Qt&&Qt.length>0?[].concat((0,mn.Z)(Je),(0,mn.Z)(Me(Qt,zt).map(function(dr){return(0,Ue.Z)({fixed:$t},dr)}))):[].concat((0,mn.Z)(Je),[(0,Ue.Z)((0,Ue.Z)({key:zt},ct),{},{fixed:$t})])},[])}function Fe(ue){for(var xe=!0,Je=0;Je<ue.length;Je+=1){var ct=ue[Je];if(xe&&ct.fixed!=="left")xe=!1;else if(!xe&&ct.fixed==="left"){warning(!1,"Index ".concat(Je-1," of `columns` missing `fixed='left'` prop."));break}}for(var Ct=!0,vt=ue.length-1;vt>=0;vt-=1){var $t=ue[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 Ge(ue){return ue.map(function(xe){var Je=xe.fixed,ct=(0,dt.Z)(xe,yi),Ct=Je;return Je==="left"?Ct="right":Je==="right"&&(Ct="left"),(0,Ue.Z)({fixed:Ct},ct)})}function Pt(ue,xe){var Je=ue.prefixCls,ct=ue.columns,Ct=ue.children,vt=ue.expandable,$t=ue.expandedKeys,zt=ue.columnTitle,Qt=ue.getRowKey,dr=ue.onTriggerExpand,_r=ue.expandIcon,mr=ue.rowExpandable,tn=ue.expandIconColumnIndex,Vr=ue.direction,Yr=ue.expandRowByClick,Pn=ue.columnWidth,xn=ue.fixed,Fn=ue.scrollWidth,Bn=S.useMemo(function(){return ct||ge(Ct)},[ct,Ct]),zn=S.useMemo(function(){if(vt){var bi,oi=Bn.slice();if(!oi.includes(pe)){var Tn=tn||0;Tn>=0&&oi.splice(Tn,0,pe)}var si=oi.indexOf(pe);oi=oi.filter(function(Wi,_a){return Wi!==pe||_a===si});var Vi=Bn[si],Na;(xn==="left"||xn)&&!tn?Na="left":(xn==="right"||xn)&&tn===Bn.length?Na="right":Na=Vi?Vi.fixed:null;var pa=(bi={},(0,ee.Z)(bi,xr,{className:"".concat(Je,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,ee.Z)(bi,"title",zt),(0,ee.Z)(bi,"fixed",Na),(0,ee.Z)(bi,"className","".concat(Je,"-row-expand-icon-cell")),(0,ee.Z)(bi,"width",Pn),(0,ee.Z)(bi,"render",function(_a,Qa,Yo){var lo=Qt(Qa,Yo),vs=$t.has(lo),cs=mr?mr(Qa):!0,ma=_r({prefixCls:Je,expanded:vs,expandable:cs,record:Qa,onExpand:dr});return Yr?S.createElement("span",{onClick:function(mo){return mo.stopPropagation()}},ma):ma}),bi);return oi.map(function(Wi){return Wi===pe?pa:Wi})}return Bn.filter(function(Wi){return Wi!==pe})},[vt,Bn,Qt,$t,_r,Vr]),Ti=S.useMemo(function(){var bi=zn;return xe&&(bi=xe(bi)),bi.length||(bi=[{render:function(){return null}}]),bi},[xe,zn,Vr]),ji=S.useMemo(function(){return Vr==="rtl"?Ge(Me(Ti)):Me(Ti)},[Ti,Vr,Fn]),mi=qn(ji,Fn),na=(0,P.Z)(mi,2),wa=na[0],Yn=na[1];return[Ti,wa,Yn]}var Dt=Pt;function Er(ue){var xe,Je=ue.prefixCls,ct=ue.record,Ct=ue.onExpand,vt=ue.expanded,$t=ue.expandable,zt="".concat(Je,"-row-expand-icon");if(!$t)return S.createElement("span",{className:D()(zt,"".concat(Je,"-row-spaced"))});var Qt=function(_r){Ct(ct,_r),_r.stopPropagation()};return S.createElement("span",{className:D()(zt,(xe={},(0,ee.Z)(xe,"".concat(Je,"-row-expanded"),vt),(0,ee.Z)(xe,"".concat(Je,"-row-collapsed"),!vt),xe)),onClick:Qt})}function nr(ue,xe,Je){var ct=[];function Ct(vt){(vt||[]).forEach(function($t,zt){ct.push(xe($t,zt)),Ct($t[Je])})}return Ct(ue),ct}function Or(ue,xe,Je){var ct=ur(ue),Ct=ct.expandIcon,vt=ct.expandedRowKeys,$t=ct.defaultExpandedRowKeys,zt=ct.defaultExpandAllRows,Qt=ct.expandedRowRender,dr=ct.onExpand,_r=ct.onExpandedRowsChange,mr=ct.childrenColumnName,tn=Ct||Er,Vr=mr||"children",Yr=S.useMemo(function(){return Qt?"row":ue.expandable&&ue.internalHooks===Ae&&ue.expandable.__PARENT_RENDER_ICON__||xe.some(function(ji){return ji&&(0,Be.Z)(ji)==="object"&&ji[Vr]})?"nest":!1},[!!Qt,xe]),Pn=S.useState(function(){return $t||(zt?nr(xe,Je,Vr):[])}),xn=(0,P.Z)(Pn,2),Fn=xn[0],Bn=xn[1],zn=S.useMemo(function(){return new Set(vt||Fn||[])},[vt,Fn]),Ti=S.useCallback(function(ji){var mi=Je(ji,xe.indexOf(ji)),na,wa=zn.has(mi);wa?(zn.delete(mi),na=(0,mn.Z)(zn)):na=[].concat((0,mn.Z)(zn),[mi]),Bn(na),dr&&dr(!wa,ji),_r&&_r(na)},[Je,zn,xe,dr,_r]);return[ct,Yr,zn,tn,Vr,Ti]}function Hr(ue,xe,Je,ct){var Ct=ue.map(function(vt,$t){return er($t,$t,ue,xe,Je,ct==null?void 0:ct[$t])});return(0,Ye.Z)(function(){return Ct},[Ct],function(vt,$t){return!(0,V.Z)(vt,$t)})}function an(ue){var xe=(0,S.useRef)(ue),Je=(0,S.useState)({}),ct=(0,P.Z)(Je,2),Ct=ct[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 _r=$t.current,mr=xe.current;$t.current=[],_r.forEach(function(tn){xe.current=tn(xe.current)}),vt.current=null,mr!==xe.current&&Ct({})}})}return(0,S.useEffect)(function(){return function(){vt.current=null}},[]),[xe.current,zt]}function jr(ue){var xe=(0,S.useRef)(ue||null),Je=(0,S.useRef)();function ct(){window.clearTimeout(Je.current)}function Ct($t){xe.current=$t,ct(),Je.current=window.setTimeout(function(){xe.current=null,Je.current=void 0},100)}function vt(){return xe.current}return(0,S.useEffect)(function(){return ct},[]),[Ct,vt]}function Rr(){var ue=S.useState(-1),xe=(0,P.Z)(ue,2),Je=xe[0],ct=xe[1],Ct=S.useState(-1),vt=(0,P.Z)(Ct,2),$t=vt[0],zt=vt[1],Qt=S.useCallback(function(dr,_r){ct(dr),zt(_r)},[]);return[Je,$t,Qt]}var en=x(47273),wn=(0,en.Z)()?window:null;function on(ue,xe){var Je=(0,Be.Z)(ue)==="object"?ue:{},ct=Je.offsetHeader,Ct=ct===void 0?0:ct,vt=Je.offsetSummary,$t=vt===void 0?0:vt,zt=Je.offsetScroll,Qt=zt===void 0?0:zt,dr=Je.getContainer,_r=dr===void 0?function(){return wn}:dr,mr=_r()||wn;return S.useMemo(function(){var tn=!!ue;return{isSticky:tn,stickyClassName:tn?"".concat(xe,"-sticky-holder"):"",offsetHeader:Ct,offsetSummary:$t,offsetScroll:Qt,container:mr}},[Qt,Ct,$t,xe,mr])}function Nn(ue,xe,Je){var ct=(0,S.useMemo)(function(){for(var Ct=[],vt=[],$t=0,zt=0,Qt=0;Qt<xe;Qt+=1)if(Je==="rtl"){vt[Qt]=zt,zt+=ue[Qt]||0;var dr=xe-Qt-1;Ct[dr]=$t,$t+=ue[dr]||0}else{Ct[Qt]=$t,$t+=ue[Qt]||0;var _r=xe-Qt-1;vt[_r]=zt,zt+=ue[_r]||0}return{left:Ct,right:vt}},[ue,xe,Je]);return ct}var Qn=Nn;function hi(ue){var xe=ue.className,Je=ue.children;return S.createElement("div",{className:xe},Je)}var On=hi,Xn=x(8224),Vt=x(55468),Xt=function(xe,Je){var ct,Ct,vt=xe.scrollBodyRef,$t=xe.onScroll,zt=xe.offsetScroll,Qt=xe.container,dr=v(K,"prefixCls"),_r=((ct=vt.current)===null||ct===void 0?void 0:ct.scrollWidth)||0,mr=((Ct=vt.current)===null||Ct===void 0?void 0:Ct.clientWidth)||0,tn=_r&&mr*(mr/_r),Vr=S.useRef(),Yr=an({scrollLeft:0,isHiddenScrollBar:!1}),Pn=(0,P.Z)(Yr,2),xn=Pn[0],Fn=Pn[1],Bn=S.useRef({delta:0,x:0}),zn=S.useState(!1),Ti=(0,P.Z)(zn,2),ji=Ti[0],mi=Ti[1],na=function(){mi(!1)},wa=function(si){si.persist(),Bn.current.delta=si.pageX-xn.scrollLeft,Bn.current.x=0,mi(!0),si.preventDefault()},Yn=function(si){var Vi,Na=si||((Vi=window)===null||Vi===void 0?void 0:Vi.event),pa=Na.buttons;if(!ji||pa===0){ji&&mi(!1);return}var Wi=Bn.current.x+si.pageX-Bn.current.x-Bn.current.delta;Wi<=0&&(Wi=0),Wi+tn>=mr&&(Wi=mr-tn),$t({scrollLeft:Wi/mr*(_r+2)}),Bn.current.x=si.pageX},bi=function(){if(vt.current){var si=(0,Vt.os)(vt.current).top,Vi=si+vt.current.offsetHeight,Na=Qt===window?document.documentElement.scrollTop+window.innerHeight:(0,Vt.os)(Qt).top+Qt.clientHeight;Vi-(0,je.Z)()<=Na||si>=Na-zt?Fn(function(pa){return(0,Ue.Z)((0,Ue.Z)({},pa),{},{isHiddenScrollBar:!0})}):Fn(function(pa){return(0,Ue.Z)((0,Ue.Z)({},pa),{},{isHiddenScrollBar:!1})})}},oi=function(si){Fn(function(Vi){return(0,Ue.Z)((0,Ue.Z)({},Vi),{},{scrollLeft:si/_r*mr||0})})};return S.useImperativeHandle(Je,function(){return{setScrollLeft:oi}}),S.useEffect(function(){var Tn=(0,Xn.Z)(document.body,"mouseup",na,!1),si=(0,Xn.Z)(document.body,"mousemove",Yn,!1);return bi(),function(){Tn.remove(),si.remove()}},[tn,ji]),S.useEffect(function(){var Tn=(0,Xn.Z)(Qt,"scroll",bi,!1),si=(0,Xn.Z)(window,"resize",bi,!1);return function(){Tn.remove(),si.remove()}},[Qt]),S.useEffect(function(){xn.isHiddenScrollBar||Fn(function(Tn){var si=vt.current;return si?(0,Ue.Z)((0,Ue.Z)({},Tn),{},{scrollLeft:si.scrollLeft/si.scrollWidth*si.clientWidth}):Tn})},[xn.isHiddenScrollBar]),_r<=mr||!tn||xn.isHiddenScrollBar?null:S.createElement("div",{style:{height:(0,je.Z)(),width:mr,bottom:zt},className:"".concat(dr,"-sticky-scroll")},S.createElement("div",{onMouseDown:wa,ref:Vr,className:D()("".concat(dr,"-sticky-scroll-bar"),(0,ee.Z)({},"".concat(dr,"-sticky-scroll-bar-active"),ji)),style:{width:"".concat(tn,"px"),transform:"translate3d(".concat(xn.scrollLeft,"px, 0, 0)")}}))},Yt=S.forwardRef(Xt);function tr(ue){return null}var jt=tr;function or(ue){return null}var cr=or,Pr="rc-table",yn=[],Cn={};function Ai(){return"No Data"}function ni(ue){var xe,Je=(0,Ue.Z)({rowKey:"key",prefixCls:Pr,emptyText:Ai},ue),ct=Je.prefixCls,Ct=Je.className,vt=Je.rowClassName,$t=Je.style,zt=Je.data,Qt=Je.rowKey,dr=Je.scroll,_r=Je.tableLayout,mr=Je.direction,tn=Je.title,Vr=Je.footer,Yr=Je.summary,Pn=Je.caption,xn=Je.id,Fn=Je.showHeader,Bn=Je.components,zn=Je.emptyText,Ti=Je.onRow,ji=Je.onHeaderRow,mi=Je.internalHooks,na=Je.transformColumns,wa=Je.internalRefs,Yn=Je.tailor,bi=Je.sticky,oi=zt||yn,Tn=!!oi.length,si=mi===Ae,Vi=S.useCallback(function(uo,bo){return(0,Le.Z)(Bn,uo)||bo},[Bn]),Na=S.useMemo(function(){return typeof Qt=="function"?Qt:function(uo){var bo=uo&&uo[Qt];return bo}},[Qt]),pa=Vi(["body"]),Wi=Rr(),_a=(0,P.Z)(Wi,3),Qa=_a[0],Yo=_a[1],lo=_a[2],vs=Or(Je,oi,Na),cs=(0,P.Z)(vs,6),ma=cs[0],al=cs[1],mo=cs[2],qo=cs[3],rs=cs[4],xc=cs[5],li=dr==null?void 0:dr.x,Gi=S.useState(0),zi=(0,P.Z)(Gi,2),Ni=zi[0],vo=zi[1],Oi=Dt((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Je),ma),{},{expandable:!!ma.expandedRowRender,columnTitle:ma.columnTitle,expandedKeys:mo,getRowKey:Na,onTriggerExpand:xc,expandIcon:qo,expandIconColumnIndex:ma.expandIconColumnIndex,direction:mr,scrollWidth:si&&Yn&&typeof li=="number"?li:null}),si?na:null),ca=(0,P.Z)(Oi,3),ja=ca[0],Za=ca[1],Ml=ca[2],nl=Ml!=null?Ml:li,Gc=S.useMemo(function(){return{columns:ja,flattenColumns:Za}},[ja,Za]),Us=S.useRef(),Uc=S.useRef(),Hn=S.useRef(),dc=S.useRef(),Fu=S.useRef(),co=S.useState(!1),hn=(0,P.Z)(co,2),Lo=hn[0],cl=hn[1],As=S.useState(!1),ia=(0,P.Z)(As,2),Sl=ia[0],Zl=ia[1],Rc=an(new Map),Cc=(0,P.Z)(Rc,2),El=Cc[0],Al=Cc[1],au=Ee(Za),Ll=au.map(function(uo){return El.get(uo)}),Rs=S.useMemo(function(){return Ll},[Ll.join("_")]),_l=Qn(Rs,Za.length,mr),il=dr&&Xe(dr.y),Ms=dr&&Xe(nl)||!!ma.fixed,Bc=Ms&&Za.some(function(uo){var bo=uo.fixed;return bo}),xA=S.useRef(),PA=on(bi,ct),CA=PA.isSticky,ff=PA.offsetHeader,zf=PA.offsetSummary,ao=PA.offsetScroll,Zo=PA.stickyClassName,Vl=PA.container,us=S.useMemo(function(){return Yr==null?void 0:Yr(oi)},[Yr,oi]),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(uo,bo){(0,we.Z)(Us.current)&&Al(function(rA){if(rA.get(uo)!==bo){var su=new Map(rA);return su.set(uo,bo),su}return rA})},[]),pf=jr(null),id=(0,P.Z)(pf,2),Ao=id[0],Bs=id[1];function SA(uo,bo){bo&&(typeof bo=="function"?bo(uo):bo.scrollLeft!==uo&&(bo.scrollLeft=uo,bo.scrollLeft!==uo&&setTimeout(function(){bo.scrollLeft=uo},0)))}var EA=(0,Ne.Z)(function(uo){var bo=uo.currentTarget,rA=uo.scrollLeft,su=mr==="rtl",WA=typeof rA=="number"?rA:bo.scrollLeft,S0=bo||Cn;if(!Bs()||Bs()===S0){var Dl;Ao(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=bo||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(bo){var rA=bo.width;rA!==Ni&&(Gl(),vo(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],Nd=Vf[1],Od=S.useState(!0),od=(0,P.Z)(Od,2),zr=od[0],Pd=od[1];S.useEffect(function(){(!Yn||!si)&&(Hn.current instanceof Element?Nd((0,je.o)(Hn.current).width):Nd((0,je.o)(dc.current).width)),Pd((0,ye.G)("position","sticky"))},[]),S.useEffect(function(){si&&wa&&(wa.body.current=Hn.current)});var mf=S.useCallback(function(uo){return S.createElement(S.Fragment,null,S.createElement(Zi,uo),kl==="top"&&S.createElement(Se,uo,us))},[kl,us]),Wf=S.useCallback(function(uo){return S.createElement(Se,uo,us)},[us]),gf=Vi(["table"],"table"),Sh=S.useMemo(function(){return _r||(Bc?nl==="max-content"?"auto":"fixed":il||CA||Za.some(function(uo){var bo=uo.ellipsis;return bo})?"fixed":"auto")},[il,Bc,Za,_r,CA]),Eh,Gf={colWidths:Rs,columCount:Za.length,stickyOffsets:_l,onHeaderRow:ji,fixHeader:il,scroll:dr},bl=S.useMemo(function(){return Tn?null:typeof zn=="function"?zn():zn},[Tn,zn]),Mu=S.createElement(Dr,{data:oi,measureColumnWidth:il||Ms||CA}),vf=S.createElement(kn,{colWidths:Za.map(function(uo){var bo=uo.width;return bo}),columns:Za}),sd=Pn!=null?S.createElement("caption",{className:"".concat(ct,"-caption")},Pn):void 0,bf=(0,xt.Z)(Je,{data:!0}),UA=(0,xt.Z)(Je,{aria:!0});if(il||CA){var ou;typeof pa=="function"?(ou=pa(oi,{scrollbarSize:ad,ref:Hn,onScroll:EA}),Gf.colWidths=Za.map(function(uo,bo){var rA=uo.width,su=bo===Za.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(ct,"-body"))},S.createElement(gf,(0,$.Z)({style:(0,Ue.Z)((0,Ue.Z)({},BA),{},{tableLayout:Sh})},UA),sd,vf,Mu,!kl&&us&&S.createElement(Se,{stickyOffsets:_l,flattenColumns:Za,columns:ja},us)));var ds=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({noData:!oi.length,maxContentScroll:Ms&&nl==="max-content"},Gf),Gc),{},{direction:mr,stickyClassName:Zo,onScroll:EA});Eh=S.createElement(S.Fragment,null,Fn!==!1&&S.createElement(Gn,(0,$.Z)({},ds,{stickyTopOffset:ff,className:"".concat(ct,"-header"),ref:Uc}),mf),ou,kl&&kl!=="top"&&S.createElement(Gn,(0,$.Z)({},ds,{stickyBottomOffset:zf,className:"".concat(ct,"-summary"),ref:Fu}),Wf),CA&&S.createElement(Yt,{ref:xA,offsetScroll:ao,scrollBodyRef:Hn,onScroll:EA,container:Vl}))}else Eh=S.createElement("div",{style:(0,Ue.Z)((0,Ue.Z)({},Wl),Js),className:D()("".concat(ct,"-content")),onScroll:EA,ref:Hn},S.createElement(gf,(0,$.Z)({style:(0,Ue.Z)((0,Ue.Z)({},BA),{},{tableLayout:Sh})},UA),sd,vf,Fn!==!1&&S.createElement(Zi,(0,$.Z)({},Gf,Gc)),Mu,us&&S.createElement(Se,{stickyOffsets:_l,flattenColumns:Za,columns:ja},us)));var Qc=S.createElement("div",(0,$.Z)({className:D()(ct,Ct,(xe={},(0,ee.Z)(xe,"".concat(ct,"-rtl"),mr==="rtl"),(0,ee.Z)(xe,"".concat(ct,"-ping-left"),Lo),(0,ee.Z)(xe,"".concat(ct,"-ping-right"),Sl),(0,ee.Z)(xe,"".concat(ct,"-layout-fixed"),_r==="fixed"),(0,ee.Z)(xe,"".concat(ct,"-fixed-header"),il),(0,ee.Z)(xe,"".concat(ct,"-fixed-column"),Bc),(0,ee.Z)(xe,"".concat(ct,"-scroll-horizontal"),Ms),(0,ee.Z)(xe,"".concat(ct,"-has-fix-left"),Za[0]&&Za[0].fixed),(0,ee.Z)(xe,"".concat(ct,"-has-fix-right"),Za[Za.length-1]&&Za[Za.length-1].fixed==="right"),xe)),style:$t,id:xn,ref:Us},bf),tn&&S.createElement(On,{className:"".concat(ct,"-title")},tn(oi)),S.createElement("div",{ref:dc,className:"".concat(ct,"-container")},Eh),Vr&&S.createElement(On,{className:"".concat(ct,"-footer")},Vr(oi)));Ms&&(Qc=S.createElement(Qe.Z,{onResize:$f},Qc));var Xl=Hr(Za,_l,mr,ja),Lu=S.useMemo(function(){return{scrollX:nl,prefixCls:ct,getComponent:Vi,scrollbarSize:ad,direction:mr,fixedInfoList:Xl,isSticky:CA,supportSticky:zr,componentWidth:Ni,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:Za.every(function(uo){return uo.fixed==="left"}),emptyNode:bl,columns:ja,flattenColumns:Za,onColumnResize:hf,hoverStartRow:Qa,hoverEndRow:Yo,onHover:lo,rowExpandable:ma.rowExpandable,onRow:Ti,getRowKey:Na,expandedKeys:mo,childrenColumnName:rs}},[nl,ct,Vi,ad,mr,Xl,CA,zr,Ni,il,Bc,Ms,Sh,vt,ma.expandedRowClassName,qo,al,ma.expandRowByClick,ma.expandedRowRender,xc,ma.expandIconColumnIndex,ma.indentSize,bl,ja,Za,hf,Qa,Yo,lo,ma.rowExpandable,Ti,Na,mo,rs]);return S.createElement(K.Provider,{value:Lu},Qc)}function Ei(ue){return se(ni,ue)}var ei=Ei();ei.EXPAND_COLUMN=pe,ei.INTERNAL_HOOKS=Ae,ei.Column=jt,ei.ColumnGroup=cr,ei.Summary=H;var jn=ei,xi=x(48911),wi=F(null),Ci=F(null);function ui(ue,xe,Je){var ct=xe||1;return Je[ue+ct]-(Je[ue]||0)}function Bi(ue){var xe=ue.rowInfo,Je=ue.column,ct=ue.colIndex,Ct=ue.indent,vt=ue.index,$t=ue.renderIndex,zt=ue.record,Qt=ue.style,dr=ue.className,_r=ue.inverse,mr=ue.getHeight,tn=Je.render,Vr=Je.dataIndex,Yr=Je.className,Pn=Je.width,xn=v(Ci,["columnsOffset"]),Fn=xn.columnsOffset,Bn=lt(xe,Je,ct,Ct,vt),zn=Bn.key,Ti=Bn.fixedInfo,ji=Bn.appendCellNode,mi=Bn.additionalCellProps,na=mi.style,wa=mi.colSpan,Yn=wa===void 0?1:wa,bi=mi.rowSpan,oi=bi===void 0?1:bi,Tn=ct-1,si=ui(Tn,Yn,Fn),Vi=Yn>1?Pn-si:0,Na=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},na),Qt),{},{flex:"0 0 ".concat(si,"px"),width:"".concat(si,"px"),marginRight:Vi,pointerEvents:"auto"}),pa=S.useMemo(function(){return _r?oi<=1:Yn===0||oi===0||oi>1},[oi,Yn,_r]);pa?Na.visibility="hidden":_r&&(Na.height=mr==null?void 0:mr(oi));var Wi=pa?function(){return null}:tn,_a={};return(oi===0||Yn===0)&&(_a.rowSpan=1,_a.colSpan=1),S.createElement(sr,(0,$.Z)({className:D()(Yr,dr),ellipsis:Je.ellipsis,align:Je.align,scope:Je.rowScope,component:"div",prefixCls:xe.prefixCls,key:zn,record:zt,index:vt,renderIndex:$t,dataIndex:Vr,render:Wi,shouldCellUpdate:Je.shouldCellUpdate},Ti,{appendNode:ji,additionalProps:(0,Ue.Z)((0,Ue.Z)({},mi),{},{style:Na},_a)}))}var Xi=Bi,ri=["data","index","className","rowKey","style","extra","getHeight"],Pi=S.forwardRef(function(ue,xe){var Je=ue.data,ct=ue.index,Ct=ue.className,vt=ue.rowKey,$t=ue.style,zt=ue.extra,Qt=ue.getHeight,dr=(0,dt.Z)(ue,ri),_r=Je.record,mr=Je.indent,tn=Je.index,Vr=v(K,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Yr=Vr.scrollX,Pn=Vr.flattenColumns,xn=Vr.prefixCls,Fn=Vr.fixColumn,Bn=Vr.componentWidth,zn=De(_r,vt,ct,mr),Ti=zn.rowSupportExpand,ji=zn.expanded,mi=zn.rowProps,na=zn.expandedRowRender,wa=zn.expandedRowClassName,Yn;if(Ti&&ji){var bi=na(_r,ct,mr+1,ji),oi=wa==null?void 0:wa(_r,ct,mr),Tn={};Fn&&(Tn={style:(0,ee.Z)({},"--virtual-width","".concat(Bn,"px"))});var si="".concat(xn,"-expanded-row-cell");Yn=S.createElement("div",{className:D()("".concat(xn,"-expanded-row"),"".concat(xn,"-expanded-row-level-").concat(mr+1),oi)},S.createElement(sr,{component:"div",prefixCls:xn,className:D()(si,(0,ee.Z)({},"".concat(si,"-fixed"),Fn)),additionalProps:Tn},bi))}var Vi=(0,Ue.Z)((0,Ue.Z)({},$t),{},{width:Yr});zt&&(Vi.position="absolute",Vi.pointerEvents="none");var Na=S.createElement("div",(0,$.Z)({},mi,dr,{ref:Ti?null:xe,className:D()(Ct,"".concat(xn,"-row"),mi==null?void 0:mi.className,(0,ee.Z)({},"".concat(xn,"-row-extra"),zt)),style:(0,Ue.Z)((0,Ue.Z)({},Vi),mi==null?void 0:mi.style)}),Pn.map(function(pa,Wi){return S.createElement(Xi,{key:Wi,rowInfo:zn,column:pa,colIndex:Wi,indent:mr,index:ct,renderIndex:tn,record:_r,inverse:zt,getHeight:Qt})}));return Ti?S.createElement("div",{ref:xe},Na,Yn):Na}),Ha=ne(Pi),ci=Ha,fn=S.forwardRef(function(ue,xe){var Je=ue.data,ct=ue.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,_r=Ct.childrenColumnName,mr=Ct.emptyNode,tn=Ct.scrollX,Vr=v(wi),Yr=Vr.scrollY,Pn=Vr.listItemHeight,xn=S.useRef(),Fn=st(Je,_r,Qt,zt),Bn=S.useMemo(function(){var Yn=0;return vt.map(function(bi){var oi=bi.width,Tn=bi.key;return Yn+=oi,[Tn,oi,Yn]})},[vt]),zn=S.useMemo(function(){return Bn.map(function(Yn){return Yn[2]})},[Bn]);S.useEffect(function(){Bn.forEach(function(Yn){var bi=(0,P.Z)(Yn,2),oi=bi[0],Tn=bi[1];$t(oi,Tn)})},[Bn]),S.useImperativeHandle(xe,function(){var Yn={};return Object.defineProperty(Yn,"scrollLeft",{get:function(){var oi;return((oi=xn.current)===null||oi===void 0?void 0:oi.getScrollInfo().x)||0},set:function(oi){var Tn;(Tn=xn.current)===null||Tn===void 0||Tn.scrollTo({left:oi})}}),Yn});var Ti=function(bi,oi){var Tn,si=(Tn=Fn[oi])===null||Tn===void 0?void 0:Tn.record,Vi=bi.onCell;if(Vi){var Na,pa=Vi(si,oi);return(Na=pa==null?void 0:pa.rowSpan)!==null&&Na!==void 0?Na:1}return 1},ji=function(bi){var oi=bi.start,Tn=bi.end,si=bi.getSize,Vi=bi.offsetY;if(Tn<0)return null;for(var Na=vt.filter(function(li){return Ti(li,oi)===0}),pa=oi,Wi=function(Gi){if(Na=Na.filter(function(zi){return Ti(zi,Gi)===0}),!Na.length)return pa=Gi,"break"},_a=oi;_a>=0;_a-=1){var Qa=Wi(_a);if(Qa==="break")break}for(var Yo=vt.filter(function(li){return Ti(li,Tn)!==1}),lo=Tn,vs=function(Gi){if(Yo=Yo.filter(function(zi){return Ti(zi,Gi)!==1}),!Yo.length)return lo=Math.max(Gi-1,Tn),"break"},cs=Tn;cs<Fn.length;cs+=1){var ma=vs(cs);if(ma==="break")break}for(var al=[],mo=function(Gi){var zi=Fn[Gi];if(!zi)return"continue";vt.some(function(Ni){return Ti(Ni,Gi)>1})&&al.push(Gi)},qo=pa;qo<=lo;qo+=1)var rs=mo(qo);var xc=al.map(function(li){var Gi=Fn[li],zi=zt(Gi.record,li),Ni=function(ca){var ja=li+ca-1,Za=zt(Fn[ja].record,ja),Ml=si(zi,Za);return Ml.bottom-Ml.top},vo=si(zi);return S.createElement(ci,{key:li,data:Gi,rowKey:zi,index:li,style:{top:-Vi+vo.top},extra:!0,getHeight:Ni})});return xc},mi=S.useMemo(function(){return{columnsOffset:zn}},[zn]),na="".concat(dr,"-tbody"),wa;return Fn.length?wa=S.createElement(xi.Z,{fullHeight:!1,ref:xn,className:D()(na,"".concat(na,"-virtual")),height:Yr,itemHeight:Pn||24,data:Fn,itemKey:function(bi){return zt(bi.record)},scrollWidth:tn,onVirtualScroll:function(bi){var oi=bi.x;ct({scrollLeft:oi})},extraRender:ji},function(Yn,bi,oi){var Tn=zt(Yn.record,bi);return S.createElement(ci,(0,$.Z)({data:Yn,rowKey:Tn,index:bi},oi))}):wa=S.createElement("div",{className:D()("".concat(dr,"-placeholder"))},S.createElement(sr,{component:"div",prefixCls:dr},mr)),S.createElement(Ci.Provider,{value:mi},wa)}),ln=ne(fn),Jn=ln,Kn=function(xe,Je){var ct=Je.ref,Ct=Je.onScroll;return S.createElement(Jn,{ref:ct,data:xe,onScroll:Ct})},pi=100;function qi(ue){var xe=ue.columns,Je=ue.scroll,ct=ue.prefixCls,Ct=ct===void 0?Pr:ct,vt=ue.className,$t=ue.listItemHeight,zt=Je||{},Qt=zt.x,dr=zt.y;typeof Qt!="number"&&(Qt=((xe||[]).length+1)*pi),typeof dr!="number"&&(dr=500);var _r=S.useMemo(function(){return{scrollY:dr,listItemHeight:$t}},[dr,$t]);return S.createElement(wi.Provider,{value:_r},S.createElement(jn,(0,$.Z)({},ue,{className:D()(vt,"".concat(Ct,"-virtual")),scroll:(0,Ue.Z)((0,Ue.Z)({},Je),{},{x:Qt}),components:{body:Kn},columns:xe,internalHooks:Ae,tailor:!0})))}function Mi(ue){return se(qi,ue)}var Ua=Mi(),Aa=null;function Bo(ue){return null}var Vn=Bo;function In(ue){return null}var Di=In,Ji=x(2738),Fa=x(68031),Is=x(36355),$a=x(93891),fa=x(19716),Io=x(8628),So=x(31724),Po=x(58421),Os=x(71418),po=x(88088);function bs(ue){return function(Je){let{prefixCls:ct,onExpand:Ct,record:vt,expanded:$t,expandable:zt}=Je;const Qt=`${ct}-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?ue.collapse:ue.expand,"aria-expanded":$t})}}var Ps=bs;function $s(ue,xe){return"key"in ue&&ue.key!==void 0&&ue.key!==null?ue.key:ue.dataIndex?Array.isArray(ue.dataIndex)?ue.dataIndex.join("."):ue.dataIndex:xe}function To(ue,xe){return xe?`${xe}-${ue}`:`${ue}`}function Uo(ue,xe){return typeof ue=="function"?ue(xe):ue}function ys(ue,xe){const Je=Uo(ue,xe);return Object.prototype.toString.call(Je)==="[object Object]"?"":Je}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(xe,Je){return S.createElement(ic.Z,(0,$.Z)({},xe,{ref:Je,icon:vl}))},Ql=S.forwardRef(ac),Zs=Ql,Dc=x(56762);function Kl(ue){const xe=S.useRef(ue),Je=(0,Dc.Z)();return[()=>xe.current,ct=>{xe.current=ct,Je()}]}var Hl=x(3113),Vs=x(24905),as=x(38854),ii=x(64165),la=x(20834),ta=x(40875),oa=x(5112),Da=x(17574),so=x(47472),Ws=x(92832);function ws(ue){let{value:xe,onChange:Je,filterSearch:ct,tablePrefixCls:Ct,locale:vt}=ue;return ct?S.createElement("div",{className:`${Ct}-filter-dropdown-search`},S.createElement(Ws.default,{prefix:S.createElement(so.Z,null),placeholder:vt.filterSearchPlaceholder,onChange:Je,value:xe,htmlSize:1,className:`${Ct}-filter-dropdown-search-input`})):null}var xs=ws,ms=x(10228);const eo=ue=>{const{keyCode:xe}=ue;xe===ms.Z.ENTER&&ue.stopPropagation()};var os=S.forwardRef((ue,xe)=>S.createElement("div",{className:ue.className,onClick:Je=>Je.stopPropagation(),onKeyDown:eo,ref:xe},ue.children));function ss(ue){let xe=[];return(ue||[]).forEach(Je=>{let{value:ct,children:Ct}=Je;xe.push(ct),Ct&&(xe=[].concat((0,mn.Z)(xe),(0,mn.Z)(ss(Ct))))}),xe}function Fs(ue){return ue.some(xe=>{let{children:Je}=xe;return Je})}function Go(ue,xe){return typeof xe=="string"||typeof xe=="number"?xe==null?void 0:xe.toString().toLowerCase().includes(ue.trim().toLowerCase()):!1}function Fo(ue){let{filters:xe,prefixCls:Je,filteredKeys:ct,filterMultiple:Ct,searchValue:vt,filterSearch:$t}=ue;return xe.map((zt,Qt)=>{const dr=String(zt.value);if(zt.children)return{key:dr||Qt,label:zt.text,popupClassName:`${Je}-dropdown-submenu`,children:Fo({filters:zt.children,prefixCls:Je,filteredKeys:ct,filterMultiple:Ct,searchValue:vt,filterSearch:$t})};const _r=Ct?Vs.default:oa.ZP,mr={key:zt.value!==void 0?dr:Qt,label:S.createElement(S.Fragment,null,S.createElement(_r,{checked:ct.includes(dr)}),S.createElement("span",null,zt.text))};return vt.trim()?typeof $t=="function"?$t(vt,zt)?mr:null:Go(vt,zt.text)?mr:null:mr})}function pA(ue){var xe,Je;const{tablePrefixCls:ct,prefixCls:Ct,column:vt,dropdownPrefixCls:$t,columnKey:zt,filterMultiple:Qt,filterMode:dr="menu",filterSearch:_r=!1,filterState:mr,triggerFilter:tn,locale:Vr,children:Yr,getPopupContainer:Pn}=ue,{filterDropdownOpen:xn,onFilterDropdownOpenChange:Fn,filterResetToDefaultFilteredValue:Bn,defaultFilteredValue:zn,filterDropdownVisible:Ti,onFilterDropdownVisibleChange:ji}=vt,[mi,na]=S.useState(!1),wa=!!(mr&&(!((xe=mr.filteredKeys)===null||xe===void 0)&&xe.length||mr.forceFiltered)),Yn=Oi=>{na(Oi),Fn==null||Fn(Oi),ji==null||ji(Oi)},bi=(Je=xn!=null?xn:Ti)!==null&&Je!==void 0?Je:mi,oi=mr==null?void 0:mr.filteredKeys,[Tn,si]=Kl(oi||[]),Vi=Oi=>{let{selectedKeys:ca}=Oi;si(ca)},Na=(Oi,ca)=>{let{node:ja,checked:Za}=ca;Vi(Qt?{selectedKeys:Oi}:{selectedKeys:Za&&ja.key?[ja.key]:[]})};S.useEffect(()=>{mi&&Vi({selectedKeys:oi||[]})},[oi]);const[pa,Wi]=S.useState([]),_a=Oi=>{Wi(Oi)},[Qa,Yo]=S.useState(""),lo=Oi=>{const{value:ca}=Oi.target;Yo(ca)};S.useEffect(()=>{mi||Yo("")},[mi]);const vs=Oi=>{const ca=Oi&&Oi.length?Oi:null;if(ca===null&&(!mr||!mr.filteredKeys)||(0,V.Z)(ca,mr==null?void 0:mr.filteredKeys,!0))return null;tn({column:vt,key:zt,filteredKeys:ca})},cs=()=>{Yn(!1),vs(Tn())},ma=function(){let{confirm:Oi,closeDropdown:ca}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Oi&&vs([]),ca&&Yn(!1),Yo(""),si(Bn?(zn||[]).map(ja=>String(ja)):[])},al=function(){let{closeDropdown:Oi}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Oi&&Yn(!1),vs(Tn())},mo=Oi=>{Oi&&oi!==void 0&&si(oi||[]),Yn(Oi),!Oi&&!vt.filterDropdown&&cs()},qo=D()({[`${$t}-menu-without-submenu`]:!Fs(vt.filters||[])}),rs=Oi=>{if(Oi.target.checked){const ca=ss(vt==null?void 0:vt.filters).map(ja=>String(ja));si(ca)}else si([])},xc=Oi=>{let{filters:ca}=Oi;return(ca||[]).map((ja,Za)=>{const Ml=String(ja.value),nl={title:ja.text,key:ja.value!==void 0?Ml:Za};return ja.children&&(nl.children=xc({filters:ja.children})),nl})},li=Oi=>{var ca;return Object.assign(Object.assign({},Oi),{text:Oi.title,value:Oi.key,children:((ca=Oi.children)===null||ca===void 0?void 0:ca.map(ja=>li(ja)))||[]})};let Gi;if(typeof vt.filterDropdown=="function")Gi=vt.filterDropdown({prefixCls:`${$t}-custom`,setSelectedKeys:Oi=>Vi({selectedKeys:Oi}),selectedKeys:Tn(),confirm:al,clearFilters:ma,filters:vt.filters,visible:bi,close:()=>{Yn(!1)}});else if(vt.filterDropdown)Gi=vt.filterDropdown;else{const Oi=Tn()||[],ca=()=>(vt.filters||[]).length===0?S.createElement(ii.Z,{image:ii.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:_r,value:Qa,onChange:lo,tablePrefixCls:ct,locale:Vr}),S.createElement("div",{className:`${ct}-filter-dropdown-tree`},Qt?S.createElement(Vs.default,{checked:Oi.length===ss(vt.filters).length,indeterminate:Oi.length>0&&Oi.length<ss(vt.filters).length,className:`${ct}-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:Na,checkedKeys:Oi,selectedKeys:Oi,showIcon:!1,treeData:xc({filters:vt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Qa.trim()?Za=>typeof _r=="function"?_r(Qa,li(Za)):Go(Qa,Za.title):void 0}))):S.createElement(S.Fragment,null,S.createElement(xs,{filterSearch:_r,value:Qa,onChange:lo,tablePrefixCls:ct,locale:Vr}),S.createElement(la.default,{selectable:!0,multiple:Qt,prefixCls:`${$t}-menu`,className:qo,onSelect:Vi,onDeselect:Vi,selectedKeys:Oi,getPopupContainer:Pn,openKeys:pa,onOpenChange:_a,items:Fo({filters:vt.filters||[],filterSearch:_r,prefixCls:Ct,filteredKeys:Tn(),filterMultiple:Qt,searchValue:Qa})})),ja=()=>Bn?(0,V.Z)((zn||[]).map(Za=>String(Za)),Oi,!0):Oi.length===0;Gi=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&&(Gi=S.createElement(ta.J,{selectable:void 0},Gi));const zi=()=>S.createElement(os,{className:`${Ct}-dropdown`},Gi);let Ni;typeof vt.filterIcon=="function"?Ni=vt.filterIcon(wa):vt.filterIcon?Ni=vt.filterIcon:Ni=S.createElement(Zs,null);const{direction:vo}=S.useContext(Is.E_);return S.createElement("div",{className:`${Ct}-column`},S.createElement("span",{className:`${ct}-column-title`},Yr),S.createElement(as.Z,{dropdownRender:zi,trigger:["click"],open:bi,onOpenChange:mo,getPopupContainer:Pn,placement:vo==="rtl"?"bottomLeft":"bottomRight"},S.createElement("span",{role:"button",tabIndex:-1,className:D()(`${Ct}-trigger`,{active:wa}),onClick:Oi=>{Oi.stopPropagation()}},Ni)))}var tu=pA;function Ac(ue,xe,Je){let ct=[];return(ue||[]).forEach((Ct,vt)=>{var $t;const zt=To(vt,Je);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),ct.push({column:Ct,key:$s(Ct,zt),filteredKeys:Qt,forceFiltered:Ct.filtered})}else ct.push({column:Ct,key:$s(Ct,zt),filteredKeys:xe&&Ct.defaultFilteredValue?Ct.defaultFilteredValue:void 0,forceFiltered:Ct.filtered});"children"in Ct&&(ct=[].concat((0,mn.Z)(ct),(0,mn.Z)(Ac(Ct.children,xe,zt))))}),ct}function mA(ue,xe,Je,ct,Ct,vt,$t,zt){return Je.map((Qt,dr)=>{const _r=To(dr,zt),{filterMultiple:mr=!0,filterMode:tn,filterSearch:Vr}=Qt;let Yr=Qt;if(Yr.filters||Yr.filterDropdown){const Pn=$s(Yr,_r),xn=ct.find(Fn=>{let{key:Bn}=Fn;return Pn===Bn});Yr=Object.assign(Object.assign({},Yr),{title:Fn=>S.createElement(tu,{tablePrefixCls:ue,prefixCls:`${ue}-filter`,dropdownPrefixCls:xe,column:Yr,columnKey:Pn,filterState:xn,filterMultiple:mr,filterMode:tn,filterSearch:Vr,triggerFilter:vt,locale:Ct,getPopupContainer:$t},Uo(Qt.title,Fn))})}return"children"in Yr&&(Yr=Object.assign(Object.assign({},Yr),{children:mA(ue,xe,Yr.children,ct,Ct,vt,$t,_r)})),Yr})}function ll(ue){const xe={};return ue.forEach(Je=>{let{key:ct,filteredKeys:Ct,column:vt}=Je;const{filters:$t,filterDropdown:zt}=vt;if(zt)xe[ct]=Ct||null;else if(Array.isArray(Ct)){const Qt=ss($t);xe[ct]=Qt.filter(dr=>Ct.includes(String(dr)))}else xe[ct]=null}),xe}function gA(ue,xe){return xe.reduce((Je,ct)=>{const{column:{onFilter:Ct,filters:vt},filteredKeys:$t}=ct;return Ct&&$t&&$t.length?Je.filter(zt=>$t.some(Qt=>{const dr=ss(vt),_r=dr.findIndex(tn=>String(tn)===String(Qt)),mr=_r!==-1?dr[_r]:Qt;return Ct(mr,zt)})):Je},ue)}const tl=ue=>ue.flatMap(xe=>"children"in xe?[xe].concat((0,mn.Z)(tl(xe.children||[]))):[xe]);function gs(ue){let{prefixCls:xe,dropdownPrefixCls:Je,mergedColumns:ct,onFilterChange:Ct,getPopupContainer:vt,locale:$t}=ue;const zt=S.useMemo(()=>tl(ct||[]),[ct]),[Qt,dr]=S.useState(()=>Ac(zt,!0)),_r=S.useMemo(()=>{const Yr=Ac(zt,!1);if(Yr.length===0)return Yr;let Pn=!0,xn=!0;if(Yr.forEach(Fn=>{let{filteredKeys:Bn}=Fn;Bn!==void 0?Pn=!1:xn=!1}),Pn){const Fn=(zt||[]).map((Bn,zn)=>$s(Bn,To(zn)));return Qt.filter(Bn=>{let{key:zn}=Bn;return Fn.includes(zn)}).map(Bn=>{const zn=zt[Fn.findIndex(Ti=>Ti===Bn.key)];return Object.assign(Object.assign({},Bn),{column:Object.assign(Object.assign({},Bn.column),zn),forceFiltered:zn.filtered})})}return Yr},[zt,Qt]),mr=S.useMemo(()=>ll(_r),[_r]),tn=Yr=>{const Pn=_r.filter(xn=>{let{key:Fn}=xn;return Fn!==Yr.key});Pn.push(Yr),dr(Pn),Ct(ll(Pn),Pn)};return[Yr=>mA(xe,Je,Yr,_r,$t,tn,vt),_r,mr]}var qc=gs;function Ts(ue,xe,Je){const ct=S.useRef({});function Ct(vt){if(!ct.current||ct.current.data!==ue||ct.current.childrenColumnName!==xe||ct.current.getRowKey!==Je){let zt=function(Qt){Qt.forEach((dr,_r)=>{const mr=Je(dr,_r);$t.set(mr,dr),dr&&typeof dr=="object"&&xe in dr&&zt(dr[xe]||[])})};const $t=new Map;zt(ue),ct.current={data:ue,childrenColumnName:xe,kvMap:$t,getRowKey:Je}}return ct.current.kvMap.get(vt)}return[Ct]}var OA=x(50371),uc=function(ue,xe){var Je={};for(var ct in ue)Object.prototype.hasOwnProperty.call(ue,ct)&&xe.indexOf(ct)<0&&(Je[ct]=ue[ct]);if(ue!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ct=0,ct=Object.getOwnPropertySymbols(ue);Ct<ct.length;Ct++)xe.indexOf(ct[Ct])<0&&Object.prototype.propertyIsEnumerable.call(ue,ct[Ct])&&(Je[ct[Ct]]=ue[ct[Ct]]);return Je};const jl=10;function to(ue,xe){const Je={current:ue.current,pageSize:ue.pageSize};return Object.keys(xe&&typeof xe=="object"?xe:{}).forEach(Ct=>{const vt=ue[Ct];typeof vt!="function"&&(Je[Ct]=vt)}),Je}function Gs(ue,xe,Je){const ct=Je&&typeof Je=="object"?Je:{},{total:Ct=0}=ct,vt=uc(ct,["total"]),[$t,zt]=(0,S.useState)(()=>({current:"defaultCurrent"in vt?vt.defaultCurrent:1,pageSize:"defaultPageSize"in vt?vt.defaultPageSize:jl})),Qt=(0,OA.Z)($t,vt,{total:Ct>0?Ct:ue}),dr=Math.ceil((Ct||ue)/Qt.pageSize);Qt.current>dr&&(Qt.current=dr||1);const _r=(tn,Vr)=>{zt({current:tn!=null?tn:1,pageSize:Vr||Qt.pageSize})},mr=(tn,Vr)=>{var Yr;Je&&((Yr=Je.onChange)===null||Yr===void 0||Yr.call(Je,tn,Vr)),_r(tn,Vr),xe(tn,Vr||(Qt==null?void 0:Qt.pageSize))};return Je===!1?[{},()=>{}]:[Object.assign(Object.assign({},Qt),{onChange:mr}),_r]}var vA=Gs,Su=x(84105),ls=x(35654),Ca=x(90782),ya=x(71430),ts=x(18929);const go={},jo="SELECT_ALL",zo="SELECT_INVERT",No="SELECT_NONE",Cs=[],oc=(ue,xe)=>{let Je=[];return(xe||[]).forEach(ct=>{Je.push(ct),ct&&typeof ct=="object"&&ue in ct&&(Je=[].concat((0,mn.Z)(Je),(0,mn.Z)(oc(ue,ct[ue]))))}),Je};var Xs=(ue,xe)=>{const{preserveSelectedRowKeys:Je,selectedRowKeys:ct,defaultSelectedRowKeys:Ct,getCheckboxProps:vt,onChange:$t,onSelect:zt,onSelectAll:Qt,onSelectInvert:dr,onSelectNone:_r,onSelectMultiple:mr,columnWidth:tn,type:Vr,selections:Yr,fixed:Pn,renderCell:xn,hideSelectAll:Fn,checkStrictly:Bn=!0}=xe||{},{prefixCls:zn,data:Ti,pageData:ji,getRecordByKey:mi,getRowKey:na,expandType:wa,childrenColumnName:Yn,locale:bi,getPopupContainer:oi}=ue,[Tn,si]=(0,ts.Z)(ct||Ct||Cs,{value:ct}),Vi=S.useRef(new Map),Na=(0,S.useCallback)(li=>{if(Je){const Gi=new Map;li.forEach(zi=>{let Ni=mi(zi);!Ni&&Vi.current.has(zi)&&(Ni=Vi.current.get(zi)),Gi.set(zi,Ni)}),Vi.current=Gi}},[mi,Je]);S.useEffect(()=>{Na(Tn)},[Tn]);const{keyEntities:pa}=(0,S.useMemo)(()=>{if(Bn)return{keyEntities:null};let li=Ti;if(Je){const Gi=new Set(Ti.map((Ni,vo)=>na(Ni,vo))),zi=Array.from(Vi.current).reduce((Ni,vo)=>{let[Oi,ca]=vo;return Gi.has(Oi)?Ni:Ni.concat(ca)},[]);li=[].concat((0,mn.Z)(li),(0,mn.Z)(zi))}return(0,ya.I8)(li,{externalGetKey:na,childrenPropName:Yn})},[Ti,na,Bn,Yn,Je]),Wi=(0,S.useMemo)(()=>oc(Yn,ji),[Yn,ji]),_a=(0,S.useMemo)(()=>{const li=new Map;return Wi.forEach((Gi,zi)=>{const Ni=na(Gi,zi),vo=(vt?vt(Gi):null)||{};li.set(Ni,vo)}),li},[Wi,na,vt]),Qa=(0,S.useCallback)(li=>{var Gi;return!!(!((Gi=_a.get(na(li)))===null||Gi===void 0)&&Gi.disabled)},[_a,na]),[Yo,lo]=(0,S.useMemo)(()=>{if(Bn)return[Tn||[],[]];const{checkedKeys:li,halfCheckedKeys:Gi}=(0,Ca.S)(Tn,!0,pa,Qa);return[li||[],Gi]},[Tn,Bn,pa,Qa]),vs=(0,S.useMemo)(()=>{const li=Vr==="radio"?Yo.slice(0,1):Yo;return new Set(li)},[Yo,Vr]),cs=(0,S.useMemo)(()=>Vr==="radio"?new Set:new Set(lo),[lo,Vr]),[ma,al]=(0,S.useState)(null);S.useEffect(()=>{xe||si(Cs)},[!!xe]);const mo=(0,S.useCallback)((li,Gi)=>{let zi,Ni;Na(li),Je?(zi=li,Ni=li.map(vo=>Vi.current.get(vo))):(zi=[],Ni=[],li.forEach(vo=>{const Oi=mi(vo);Oi!==void 0&&(zi.push(vo),Ni.push(Oi))})),si(zi),$t==null||$t(zi,Ni,{type:Gi})},[si,mi,$t,Je]),qo=(0,S.useCallback)((li,Gi,zi,Ni)=>{if(zt){const vo=zi.map(Oi=>mi(Oi));zt(mi(li),Gi,vo,Ni)}mo(zi,"single")},[zt,mi,mo]),rs=(0,S.useMemo)(()=>!Yr||Fn?null:(Yr===!0?[jo,zo,No]:Yr).map(Gi=>Gi===jo?{key:"all",text:bi.selectionAll,onSelect(){mo(Ti.map((zi,Ni)=>na(zi,Ni)).filter(zi=>{const Ni=_a.get(zi);return!(Ni!=null&&Ni.disabled)||vs.has(zi)}),"all")}}:Gi===zo?{key:"invert",text:bi.selectInvert,onSelect(){const zi=new Set(vs);ji.forEach((vo,Oi)=>{const ca=na(vo,Oi),ja=_a.get(ca);ja!=null&&ja.disabled||(zi.has(ca)?zi.delete(ca):zi.add(ca))});const Ni=Array.from(zi);dr&&dr(Ni),mo(Ni,"invert")}}:Gi===No?{key:"none",text:bi.selectNone,onSelect(){_r==null||_r(),mo(Array.from(vs).filter(zi=>{const Ni=_a.get(zi);return Ni==null?void 0:Ni.disabled}),"none")}}:Gi).map(Gi=>Object.assign(Object.assign({},Gi),{onSelect:function(){for(var zi,Ni,vo=arguments.length,Oi=new Array(vo),ca=0;ca<vo;ca++)Oi[ca]=arguments[ca];(Ni=Gi.onSelect)===null||Ni===void 0||(zi=Ni).call.apply(zi,[Gi].concat(Oi)),al(null)}})),[Yr,vs,ji,na,dr,mo]);return[(0,S.useCallback)(li=>{var Gi;if(!xe)return li.filter(co=>co!==go);let zi=(0,mn.Z)(li);const Ni=new Set(vs),vo=Wi.map(na).filter(co=>!_a.get(co).disabled),Oi=vo.every(co=>Ni.has(co)),ca=vo.some(co=>Ni.has(co)),ja=()=>{const co=[];Oi?vo.forEach(Lo=>{Ni.delete(Lo),co.push(Lo)}):vo.forEach(Lo=>{Ni.has(Lo)||(Ni.add(Lo),co.push(Lo))});const hn=Array.from(Ni);Qt==null||Qt(!Oi,hn.map(Lo=>mi(Lo)),co.map(Lo=>mi(Lo))),mo(hn,"all"),al(null)};let Za;if(Vr!=="radio"){let co;if(rs){const ia={getPopupContainer:oi,items:rs.map((Sl,Zl)=>{const{key:Rc,text:Cc,onSelect:El}=Sl;return{key:Rc!=null?Rc:Zl,onClick:()=>{El==null||El(vo)},label:Cc}})};co=S.createElement("div",{className:`${zn}-selection-extra`},S.createElement(as.Z,{menu:ia,getPopupContainer:oi},S.createElement("span",null,S.createElement(Su.Z,null))))}const hn=Wi.map((ia,Sl)=>{const Zl=na(ia,Sl),Rc=_a.get(Zl)||{};return Object.assign({checked:Ni.has(Zl)},Rc)}).filter(ia=>{let{disabled:Sl}=ia;return Sl}),Lo=!!hn.length&&hn.length===Wi.length,cl=Lo&&hn.every(ia=>{let{checked:Sl}=ia;return Sl}),As=Lo&&hn.some(ia=>{let{checked:Sl}=ia;return Sl});Za=!Fn&&S.createElement("div",{className:`${zn}-selection`},S.createElement(Vs.default,{checked:Lo?cl:!!Wi.length&&Oi,indeterminate:Lo?!cl&&As:!Oi&&ca,onChange:ja,disabled:Wi.length===0||Lo,"aria-label":co?"Custom selection":"Select all",skipGroup:!0}),co)}let Ml;Vr==="radio"?Ml=(co,hn,Lo)=>{const cl=na(hn,Lo),As=Ni.has(cl);return{node:S.createElement(oa.ZP,Object.assign({},_a.get(cl),{checked:As,onClick:ia=>ia.stopPropagation(),onChange:ia=>{Ni.has(cl)||qo(cl,!0,[cl],ia.nativeEvent)}})),checked:As}}:Ml=(co,hn,Lo)=>{var cl;const As=na(hn,Lo),ia=Ni.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:ia,skipGroup:!0,onClick:Cc=>Cc.stopPropagation(),onChange:Cc=>{let{nativeEvent:El}=Cc;const{shiftKey:Al}=El;let au=-1,Ll=-1;if(Al&&Bn){const Rs=new Set([ma,As]);vo.some((_l,il)=>{if(Rs.has(_l))if(au===-1)au=il;else return Ll=il,!0;return!1})}if(Ll!==-1&&au!==Ll&&Bn){const Rs=vo.slice(au,Ll+1),_l=[];ia?Rs.forEach(Ms=>{Ni.has(Ms)&&(_l.push(Ms),Ni.delete(Ms))}):Rs.forEach(Ms=>{Ni.has(Ms)||(_l.push(Ms),Ni.add(Ms))});const il=Array.from(Ni);mr==null||mr(!ia,il.map(Ms=>mi(Ms)),_l.map(Ms=>mi(Ms))),mo(il,"multiple")}else{const Rs=Yo;if(Bn){const _l=ia?(0,ls._5)(Rs,As):(0,ls.L0)(Rs,As);qo(As,!ia,_l,El)}else{const _l=(0,Ca.S)([].concat((0,mn.Z)(Rs),[As]),!0,pa,Qa),{checkedKeys:il,halfCheckedKeys:Ms}=_l;let Bc=il;if(ia){const xA=new Set(il);xA.delete(As),Bc=(0,Ca.S)(Array.from(xA),{checked:!1,halfCheckedKeys:Ms},pa,Qa).checkedKeys}qo(As,!ia,Bc,El)}}al(ia?null:As)}})),checked:ia}};const nl=(co,hn,Lo)=>{const{node:cl,checked:As}=Ml(co,hn,Lo);return xn?xn(As,hn,Lo,cl):cl};if(!zi.includes(go))if(zi.findIndex(co=>{var hn;return((hn=co[xr])===null||hn===void 0?void 0:hn.columnType)==="EXPAND_COLUMN"})===0){const[co,...hn]=zi;zi=[co,go].concat((0,mn.Z)(hn))}else zi=[go].concat((0,mn.Z)(zi));const Gc=zi.indexOf(go);zi=zi.filter((co,hn)=>co!==go||hn===Gc);const Us=zi[Gc-1],Uc=zi[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&&((Gi=Us[xr])===null||Gi===void 0?void 0:Gi.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:xe.columnTitle||Za,render:nl,onCell:xe.onCell,[xr]:{className:dc}};return zi.map(co=>co===go?Fu:co)},[na,Wi,xe,Yo,vs,cs,tn,rs,wa,ma,_a,mr,qo,Qa]),vs]},bA=x(89489),xl=x(59477),eA=x(6848);const rl="ascend",Id="descend";function ru(ue){return typeof ue.sorter=="object"&&typeof ue.sorter.multiple=="number"?ue.sorter.multiple:!1}function jA(ue){return typeof ue=="function"?ue:ue&&typeof ue=="object"&&ue.compare?ue.compare:!1}function cf(ue,xe){return xe?ue[ue.indexOf(xe)+1]:ue[0]}function Wc(ue,xe,Je){let ct=[];function Ct(vt,$t){ct.push({column:vt,key:$s(vt,$t),multiplePriority:ru(vt),sortOrder:vt.sortOrder})}return(ue||[]).forEach((vt,$t)=>{const zt=To($t,Je);vt.children?("sortOrder"in vt&&Ct(vt,zt),ct=[].concat((0,mn.Z)(ct),(0,mn.Z)(Wc(vt.children,xe,zt)))):vt.sorter&&("sortOrder"in vt?Ct(vt,zt):xe&&vt.defaultSortOrder&&ct.push({column:vt,key:$s(vt,zt),multiplePriority:ru(vt),sortOrder:vt.defaultSortOrder}))}),ct}function Yu(ue,xe,Je,ct,Ct,vt,$t,zt){return(xe||[]).map((Qt,dr)=>{const _r=To(dr,zt);let mr=Qt;if(mr.sorter){const tn=mr.sortDirections||Ct,Vr=mr.showSorterTooltip===void 0?$t:mr.showSorterTooltip,Yr=$s(mr,_r),Pn=Je.find(wa=>{let{key:Yn}=wa;return Yn===Yr}),xn=Pn?Pn.sortOrder:null,Fn=cf(tn,xn);let Bn;if(Qt.sortIcon)Bn=Qt.sortIcon({sortOrder:xn});else{const wa=tn.includes(rl)&&S.createElement(xl.Z,{className:D()(`${ue}-column-sorter-up`,{active:xn===rl})}),Yn=tn.includes(Id)&&S.createElement(bA.Z,{className:D()(`${ue}-column-sorter-down`,{active:xn===Id})});Bn=S.createElement("span",{className:D()(`${ue}-column-sorter`,{[`${ue}-column-sorter-full`]:!!(wa&&Yn)})},S.createElement("span",{className:`${ue}-column-sorter-inner`,"aria-hidden":"true"},wa,Yn))}const{cancelSort:zn,triggerAsc:Ti,triggerDesc:ji}=vt||{};let mi=zn;Fn===Id?mi=ji:Fn===rl&&(mi=Ti);const na=typeof Vr=="object"?Vr:{title:mi};mr=Object.assign(Object.assign({},mr),{className:D()(mr.className,{[`${ue}-column-sort`]:xn}),title:wa=>{const Yn=S.createElement("div",{className:`${ue}-column-sorters`},S.createElement("span",{className:`${ue}-column-title`},Uo(Qt.title,wa)),Bn);return Vr?S.createElement(eA.Z,Object.assign({},na),Yn):Yn},onHeaderCell:wa=>{const Yn=Qt.onHeaderCell&&Qt.onHeaderCell(wa)||{},bi=Yn.onClick,oi=Yn.onKeyDown;Yn.onClick=Vi=>{ct({column:Qt,key:Yr,sortOrder:Fn,multiplePriority:ru(Qt)}),bi==null||bi(Vi)},Yn.onKeyDown=Vi=>{Vi.keyCode===ms.Z.ENTER&&(ct({column:Qt,key:Yr,sortOrder:Fn,multiplePriority:ru(Qt)}),oi==null||oi(Vi))};const Tn=ys(Qt.title,{}),si=Tn==null?void 0:Tn.toString();return xn?Yn["aria-sort"]=xn==="ascend"?"ascending":"descending":Yn["aria-label"]=si||"",Yn.className=D()(Yn.className,`${ue}-column-has-sorters`),Yn.tabIndex=0,Qt.ellipsis&&(Yn.title=(Tn!=null?Tn:"").toString()),Yn}})}return"children"in mr&&(mr=Object.assign(Object.assign({},mr),{children:Yu(ue,mr.children,Je,ct,Ct,vt,$t,_r)})),mr})}function Nc(ue){const{column:xe,sortOrder:Je}=ue;return{column:xe,order:Je,field:xe.dataIndex,columnKey:xe.key}}function Fd(ue){const xe=ue.filter(Je=>{let{sortOrder:ct}=Je;return ct}).map(Nc);return xe.length===0&&ue.length?Object.assign(Object.assign({},Nc(ue[ue.length-1])),{column:void 0}):xe.length<=1?xe[0]||{}:xe}function Xo(ue,xe,Je){const ct=xe.slice().sort(($t,zt)=>zt.multiplePriority-$t.multiplePriority),Ct=ue.slice(),vt=ct.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:_r},sortOrder:mr}=dr,tn=jA(_r);if(tn&&mr){const Vr=tn($t,zt,mr);if(Vr!==0)return mr===rl?Vr:-Vr}}return 0}).map($t=>{const zt=$t[Je];return zt?Object.assign(Object.assign({},$t),{[Je]:Xo(zt,xe,Je)}):$t}):Ct}function Oo(ue){let{prefixCls:xe,mergedColumns:Je,onSorterChange:ct,sortDirections:Ct,tableLocale:vt,showSorterTooltip:$t}=ue;const[zt,Qt]=S.useState(Wc(Je,!0)),dr=S.useMemo(()=>{let Yr=!0;const Pn=Wc(Je,!1);if(!Pn.length)return zt;const xn=[];function Fn(zn){Yr?xn.push(zn):xn.push(Object.assign(Object.assign({},zn),{sortOrder:null}))}let Bn=null;return Pn.forEach(zn=>{Bn===null?(Fn(zn),zn.sortOrder&&(zn.multiplePriority===!1?Yr=!1:Bn=!0)):(Bn&&zn.multiplePriority!==!1||(Yr=!1),Fn(zn))}),xn},[Je,zt]),_r=S.useMemo(()=>{const Yr=dr.map(Pn=>{let{column:xn,sortOrder:Fn}=Pn;return{column:xn,order:Fn}});return{sortColumns:Yr,sortColumn:Yr[0]&&Yr[0].column,sortOrder:Yr[0]&&Yr[0].order}},[dr]);function mr(Yr){let Pn;Yr.multiplePriority===!1||!dr.length||dr[0].multiplePriority===!1?Pn=[Yr]:Pn=[].concat((0,mn.Z)(dr.filter(xn=>{let{key:Fn}=xn;return Fn!==Yr.key})),[Yr]),Qt(Pn),ct(Fd(Pn),Pn)}return[Yr=>Yu(xe,Yr,dr,mr,Ct,vt,$t),dr,_r,()=>Fd(dr)]}function Jo(ue,xe){return ue.map(Je=>{const ct=Object.assign({},Je);return ct.title=Uo(Je.title,xe),"children"in ct&&(ct.children=Jo(ct.children,xe)),ct})}function yc(ue){return[S.useCallback(Je=>Jo(Je,ue),[ue])]}var zl=Ei((ue,xe)=>{const{_renderTimes:Je}=ue,{_renderTimes:ct}=xe;return Je!==ct}),qu=Mi((ue,xe)=>{const{_renderTimes:Je}=ue,{_renderTimes:ct}=xe;return Je!==ct}),yA=x(64993),zA=x(17313),Md=x(83116),Ld=x(37613),ZA=ue=>{const{componentCls:xe}=ue,Je=`${ue.lineWidth}px ${ue.lineType} ${ue.tableBorderColor}`,ct=(Ct,vt,$t)=>({[`&${xe}-${Ct}`]:{[`> ${xe}-container`]:{[`> ${xe}-content, > ${xe}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${xe}-expanded-row-fixed`]:{margin:`-${vt}px -${$t+ue.lineWidth}px`}}}}}});return{[`${xe}-wrapper`]:{[`${xe}${xe}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${xe}-title`]:{border:Je,borderBottom:0},[`> ${xe}-container`]:{borderInlineStart:Je,borderTop:Je,[`
> ${xe}-content,
> ${xe}-header,
> ${xe}-body,
> ${xe}-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:Je},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Je},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${xe}-cell-fix-right-first::after`]:{borderInlineEnd:Je}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${xe}-expanded-row-fixed`]:{margin:`-${ue.tablePaddingVertical}px -${ue.tablePaddingHorizontal+ue.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:ue.lineWidth,bottom:0,borderInlineEnd:Je,content:'""'}}}}}},[`&${xe}-scroll-horizontal`]:{[`> ${xe}-container > ${xe}-body`]:{"> table > tbody":{[`
> tr${xe}-expanded-row,
> tr${xe}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},ct("middle",ue.tablePaddingVerticalMiddle,ue.tablePaddingHorizontalMiddle)),ct("small",ue.tablePaddingVerticalSmall,ue.tablePaddingHorizontalSmall)),{[`> ${xe}-footer`]:{border:Je,borderTop:0}}),[`${xe}-cell`]:{[`${xe}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${ue.lineWidth}px 0 ${ue.lineWidth}px ${ue.tableHeaderBg}`}},[`${xe}-bordered ${xe}-cell-scrollbar`]:{borderInlineEnd:Je}}}},wA=ue=>{const{componentCls:xe}=ue;return{[`${xe}-wrapper`]:{[`${xe}-cell-ellipsis`]:Object.assign(Object.assign({},zA.vS),{wordBreak:"keep-all",[`
&${xe}-cell-fix-left-last,
&${xe}-cell-fix-right-first
`]:{overflow:"visible",[`${xe}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${xe}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},y0=ue=>{const{componentCls:xe}=ue;return{[`${xe}-wrapper`]:{[`${xe}-tbody > tr${xe}-placeholder`]:{textAlign:"center",color:ue.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:ue.colorBgContainer}}}}},nu=x(15969),Af=ue=>{const{componentCls:xe,antCls:Je,controlInteractiveSize:ct,motionDurationSlow:Ct,lineWidth:vt,paddingXS:$t,lineType:zt,tableBorderColor:Qt,tableExpandIconBg:dr,tableExpandColumnWidth:_r,borderRadius:mr,fontSize:tn,fontSizeSM:Vr,lineHeight:Yr,tablePaddingVertical:Pn,tablePaddingHorizontal:xn,tableExpandedRowBg:Fn,paddingXXS:Bn}=ue,zn=ct/2-vt,Ti=zn*2+vt*3,ji=`${vt}px ${zt} ${Qt}`,mi=Bn-vt;return{[`${xe}-wrapper`]:{[`${xe}-expand-icon-col`]:{width:_r},[`${xe}-row-expand-icon-cell`]:{textAlign:"center",[`${xe}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${xe}-row-indent`]:{height:1,float:"left"},[`${xe}-row-expand-icon`]:Object.assign(Object.assign({},(0,nu.N)(ue)),{position:"relative",float:"left",boxSizing:"border-box",width:Ti,height:Ti,padding:0,color:"inherit",lineHeight:`${Ti}px`,background:dr,border:ji,borderRadius:mr,transform:`scale(${ct/Ti})`,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:mi,insetInlineStart:mi,height:vt},"&::after":{top:mi,bottom:mi,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"}}),[`${xe}-row-indent + ${xe}-row-expand-icon`]:{marginTop:(tn*Yr-vt*3)/2-Math.ceil((Vr*1.4-vt*3)/2),marginInlineEnd:$t},[`tr${xe}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Fn}},[`${Je}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${xe}-expanded-row-fixed`]:{position:"relative",margin:`-${Pn}px -${xn}px`,padding:`${Pn}px ${xn}px`}}}},Kf=ue=>{const{componentCls:xe,antCls:Je,iconCls:ct,tableFilterDropdownWidth:Ct,tableFilterDropdownSearchWidth:vt,paddingXXS:$t,paddingXS:zt,colorText:Qt,lineWidth:dr,lineType:_r,tableBorderColor:mr,tableHeaderIconColor:tn,fontSizeSM:Vr,tablePaddingHorizontal:Yr,borderRadius:Pn,motionDurationSlow:xn,colorTextDescription:Fn,colorPrimary:Bn,tableHeaderFilterActiveBg:zn,colorTextDisabled:Ti,tableFilterDropdownBg:ji,tableFilterDropdownHeight:mi,controlItemBgHover:na,controlItemBgActive:wa,boxShadowSecondary:Yn,filterDropdownMenuBg:bi}=ue,oi=`${Je}-dropdown`,Tn=`${xe}-filter-dropdown`,si=`${Je}-tree`,Vi=`${dr}px ${_r} ${mr}`;return[{[`${xe}-wrapper`]:{[`${xe}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${xe}-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 ${xn}`,"&:hover":{color:Fn,background:zn},"&.active":{color:Bn}}}},{[`${Je}-dropdown`]:{[Tn]:Object.assign(Object.assign({},(0,zA.Wf)(ue)),{minWidth:Ct,backgroundColor:ji,borderRadius:Pn,boxShadow:Yn,overflow:"hidden",[`${oi}-menu`]:{maxHeight:mi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:bi,"&:empty::after":{display:"block",padding:`${zt}px 0`,color:Ti,fontSize:Vr,textAlign:"center",content:'"Not Found"'}},[`${Tn}-tree`]:{paddingBlock:`${zt}px 0`,paddingInline:zt,[si]:{padding:0},[`${si}-treenode ${si}-node-content-wrapper:hover`]:{backgroundColor:na},[`${si}-treenode-checkbox-checked ${si}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:wa}}},[`${Tn}-search`]:{padding:zt,borderBottom:Vi,"&-input":{input:{minWidth:vt},[ct]:{color:Ti}}},[`${Tn}-checkall`]:{width:"100%",marginBottom:$t,marginInlineStart:$t},[`${Tn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${zt-dr}px ${zt}px`,overflow:"hidden",borderTop:Vi}})}},{[`${Je}-dropdown ${Tn}, ${Tn}-submenu`]:{[`${Je}-checkbox-wrapper + span`]:{paddingInlineStart:zt,color:Qt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Eu=ue=>{const{componentCls:xe,lineWidth:Je,colorSplit:ct,motionDurationSlow:Ct,zIndexTableFixed:vt,tableBg:$t,zIndexTableSticky:zt}=ue,Qt=ct;return{[`${xe}-wrapper`]:{[`
${xe}-cell-fix-left,
${xe}-cell-fix-right
`]:{position:"sticky !important",zIndex:vt,background:$t},[`
${xe}-cell-fix-left-first::after,
${xe}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Je,width:30,transform:"translateX(100%)",transition:`box-shadow ${Ct}`,content:'""',pointerEvents:"none"},[`${xe}-cell-fix-left-all::after`]:{display:"none"},[`
${xe}-cell-fix-right-first::after,
${xe}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Je,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Ct}`,content:'""',pointerEvents:"none"},[`${xe}-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}},[`${xe}-ping-left`]:{[`&:not(${xe}-has-fix-left) ${xe}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Qt}`}},[`
${xe}-cell-fix-left-first::after,
${xe}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Qt}`},[`${xe}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${xe}-ping-right`]:{[`&:not(${xe}-has-fix-right) ${xe}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Qt}`}},[`
${xe}-cell-fix-right-first::after,
${xe}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Qt}`}}}}},Cl=ue=>{const{componentCls:xe,antCls:Je}=ue;return{[`${xe}-wrapper`]:{[`${xe}-pagination${Je}-pagination`]:{margin:`${ue.margin}px 0`},[`${xe}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:ue.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Oc=ue=>{const{componentCls:xe,tableRadius:Je}=ue;return{[`${xe}-wrapper`]:{[xe]:{[`${xe}-title, ${xe}-header`]:{borderRadius:`${Je}px ${Je}px 0 0`},[`${xe}-title + ${xe}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${xe}-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:Je,borderStartEndRadius:Je,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Je},"> *:last-child":{borderStartEndRadius:Je}}},"&-footer":{borderRadius:`0 0 ${Je}px ${Je}px`}}}}},w0=ue=>{const{componentCls:xe}=ue;return{[`${xe}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${xe}-pagination-left`]:{justifyContent:"flex-end"},[`${xe}-pagination-right`]:{justifyContent:"flex-start"},[`${xe}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${xe}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${xe}-row-indent`]:{float:"right"}}}}},Bh=ue=>{const{componentCls:xe,antCls:Je,iconCls:ct,fontSizeIcon:Ct,padding:vt,paddingXS:$t,tableHeaderIconColor:zt,tableHeaderIconColorHover:Qt,tableSelectionColumnWidth:dr}=ue;return{[`${xe}-wrapper`]:{[`${xe}-selection-col`]:{width:dr,[`&${xe}-selection-col-with-dropdown`]:{width:dr+Ct+vt/4}},[`${xe}-bordered ${xe}-selection-col`]:{width:dr+$t*2,[`&${xe}-selection-col-with-dropdown`]:{width:dr+Ct+vt/4+$t*2}},[`
table tr th${xe}-selection-column,
table tr td${xe}-selection-column
`]:{paddingInlineEnd:ue.paddingXS,paddingInlineStart:ue.paddingXS,textAlign:"center",[`${Je}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${xe}-selection-column${xe}-cell-fix-left`]:{zIndex:ue.zIndexTableFixed+1},[`table tr th${xe}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${xe}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${xe}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${ue.tablePaddingHorizontal/4}px`,[ct]:{color:zt,fontSize:Ct,verticalAlign:"baseline","&:hover":{color:Qt}}}}}},Dd=ue=>{const{componentCls:xe}=ue,Je=(ct,Ct,vt,$t)=>({[`${xe}${xe}-${ct}`]:{fontSize:$t,[`
${xe}-title,
${xe}-footer,
${xe}-cell,
${xe}-thead > tr > th,
${xe}-tbody > tr > th,
${xe}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Ct}px ${vt}px`},[`${xe}-filter-trigger`]:{marginInlineEnd:`-${vt/2}px`},[`${xe}-expanded-row-fixed`]:{margin:`-${Ct}px -${vt}px`},[`${xe}-tbody`]:{[`${xe}-wrapper:only-child ${xe}`]:{marginBlock:`-${Ct}px`,marginInline:`${ue.tableExpandColumnWidth-vt}px -${vt}px`}},[`${xe}-selection-column`]:{paddingInlineStart:`${vt/4}px`}}});return{[`${xe}-wrapper`]:Object.assign(Object.assign({},Je("middle",ue.tablePaddingVerticalMiddle,ue.tablePaddingHorizontalMiddle,ue.tableFontSizeMiddle)),Je("small",ue.tablePaddingVerticalSmall,ue.tablePaddingHorizontalSmall,ue.tableFontSizeSmall))}},iu=ue=>{const{componentCls:xe,marginXXS:Je,fontSizeIcon:ct,tableHeaderIconColor:Ct,tableHeaderIconColorHover:vt}=ue;return{[`${xe}-wrapper`]:{[`${xe}-thead th${xe}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${ue.motionDurationSlow}`,"&:hover":{background:ue.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:ue.colorPrimary},[`
&${xe}-cell-fix-left:hover,
&${xe}-cell-fix-right:hover
`]:{background:ue.tableFixedHeaderSortActiveBg}},[`${xe}-thead th${xe}-column-sort`]:{background:ue.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${xe}-column-sort`]:{background:ue.tableBodySortBg},[`${xe}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${xe}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${xe}-column-sorter`]:{marginInlineStart:Je,color:Ct,fontSize:0,transition:`color ${ue.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:ct,"&.active":{color:ue.colorPrimary}},[`${xe}-column-sorter-up + ${xe}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${xe}-column-sorters:hover ${xe}-column-sorter`]:{color:vt}}}},wc=ue=>{const{componentCls:xe,opacityLoading:Je,tableScrollThumbBg:ct,tableScrollThumbBgHover:Ct,tableScrollThumbSize:vt,tableScrollBg:$t,zIndexTableSticky:zt,stickyScrollBarBorderRadius:Qt}=ue,dr=`${ue.lineWidth}px ${ue.lineType} ${ue.tableBorderColor}`;return{[`${xe}-wrapper`]:{[`${xe}-sticky`]:{"&-holder":{position:"sticky",zIndex:zt,background:ue.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${vt}px !important`,zIndex:zt,display:"flex",alignItems:"center",background:$t,borderTop:dr,opacity:Je,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:vt,backgroundColor:ct,borderRadius:Qt,transition:`all ${ue.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Ct}}}}}}},ed=ue=>{const{componentCls:xe,lineWidth:Je,tableBorderColor:ct}=ue,Ct=`${Je}px ${ue.lineType} ${ct}`;return{[`${xe}-wrapper`]:{[`${xe}-summary`]:{position:"relative",zIndex:ue.zIndexTableFixed,background:ue.tableBg,"> tr":{"> th, > td":{borderBottom:Ct}}},[`div${xe}-summary`]:{boxShadow:`0 -${Je}px 0 ${ct}`}}}},jf=ue=>{const{componentCls:xe}=ue,Je=`${ue.lineWidth}px ${ue.lineType} ${ue.tableBorderColor}`,ct=`${xe}-expanded-row-cell`;return{[`${xe}-wrapper`]:{[`${xe}-tbody-virtual`]:{[`${xe}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${xe}-cell`]:{borderBottom:Je},[`${xe}-expanded-row`]:{[`${ct}${ct}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${ue.lineWidth}px)`,borderInlineEnd:"none"}}},[`${xe}-bordered`]:{[`${xe}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Je,position:"absolute"},[`${xe}-cell`]:{borderInlineEnd:Je,[`&${xe}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-ue.lineWidth,borderInlineStart:Je}}}}}}};const Tc=ue=>{const{componentCls:xe,fontWeightStrong:Je,tablePaddingVertical:ct,tablePaddingHorizontal:Ct,lineWidth:vt,lineType:$t,tableBorderColor:zt,tableFontSize:Qt,tableBg:dr,tableRadius:_r,tableHeaderTextColor:mr,motionDurationMid:tn,tableHeaderBg:Vr,tableHeaderCellSplitColor:Yr,tableRowHoverBg:Pn,tableSelectedRowBg:xn,tableSelectedRowHoverBg:Fn,tableFooterTextColor:Bn,tableFooterBg:zn,paddingContentVerticalLG:Ti}=ue,ji=`${vt}px ${$t} ${zt}`;return{[`${xe}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,zA.dF)()),{[xe]:Object.assign(Object.assign({},(0,zA.Wf)(ue)),{fontSize:Qt,background:dr,borderRadius:`${_r}px ${_r}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${_r}px ${_r}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${xe}-cell,
${xe}-thead > tr > th,
${xe}-tbody > tr > th,
${xe}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Ti}px ${Ct}px`,overflowWrap:"break-word"},[`${xe}-title`]:{padding:`${ct}px ${Ct}px`},[`${xe}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:mr,fontWeight:Je,textAlign:"start",background:Vr,borderBottom:ji,transition:`background ${tn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${xe}-selection-column):not(${xe}-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}},[`${xe}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${tn}, border-color ${tn}`,borderBottom:ji,[`
> ${xe}-wrapper:only-child,
> ${xe}-expanded-row-fixed > ${xe}-wrapper:only-child
`]:{[xe]:{marginBlock:`-${ct}px`,marginInline:`${ue.tableExpandColumnWidth-Ct}px -${Ct}px`,[`${xe}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:mr,fontWeight:Je,textAlign:"start",background:Vr,borderBottom:ji,transition:`background ${tn} ease`},[`
&${xe}-row:hover > th,
&${xe}-row:hover > td,
> th${xe}-cell-row-hover,
> td${xe}-cell-row-hover
`]:{background:Pn},[`&${xe}-row-selected`]:{"> th, > td":{background:xn},"&:hover > th, &:hover > td":{background:Fn}}}},[`${xe}-footer`]:{padding:`${ct}px ${Ct}px`,color:Bn,background:zn}})}};var td=(0,Md.Z)("Table",ue=>{const{colorTextHeading:xe,colorSplit:Je,colorIcon:ct,colorIconHover:Ct,opacityLoading:vt,colorBgContainer:$t,controlInteractiveSize:zt,headerBg:Qt,headerColor:dr,headerSortActiveBg:_r,headerSortHoverBg:mr,bodySortBg:tn,rowHoverBg:Vr,rowSelectedBg:Yr,rowSelectedHoverBg:Pn,rowExpandedBg:xn,cellPaddingBlock:Fn,cellPaddingInline:Bn,cellPaddingBlockMD:zn,cellPaddingInlineMD:Ti,cellPaddingBlockSM:ji,cellPaddingInlineSM:mi,borderColor:na,footerBg:wa,footerColor:Yn,headerBorderRadius:bi,cellFontSize:oi,cellFontSizeMD:Tn,cellFontSizeSM:si,headerSplitColor:Vi,fixedHeaderSortActiveBg:Na,headerFilterHoverBg:pa,filterDropdownBg:Wi,expandIconBg:_a,selectionColumnWidth:Qa,stickyScrollBarBg:Yo}=ue,lo=new yA.C(ct),vs=new yA.C(Ct),cs=2,ma=(0,Ld.TS)(ue,{tableFontSize:oi,tableBg:$t,tableRadius:bi,tablePaddingVertical:Fn,tablePaddingHorizontal:Bn,tablePaddingVerticalMiddle:zn,tablePaddingHorizontalMiddle:Ti,tablePaddingVerticalSmall:ji,tablePaddingHorizontalSmall:mi,tableBorderColor:na,tableHeaderTextColor:dr,tableHeaderBg:Qt,tableFooterTextColor:Yn,tableFooterBg:wa,tableHeaderCellSplitColor:Vi,tableHeaderSortBg:_r,tableHeaderSortHoverBg:mr,tableHeaderIconColor:lo.clone().setAlpha(lo.getAlpha()*vt).toRgbString(),tableHeaderIconColorHover:vs.clone().setAlpha(vs.getAlpha()*vt).toRgbString(),tableBodySortBg:tn,tableFixedHeaderSortActiveBg:Na,tableHeaderFilterActiveBg:pa,tableFilterDropdownBg:Wi,tableRowHoverBg:Vr,tableSelectedRowBg:Yr,tableSelectedRowHoverBg:Pn,zIndexTableFixed:cs,zIndexTableSticky:cs+1,tableFontSizeMiddle:Tn,tableFontSizeSmall:si,tableSelectionColumnWidth:Qa,tableExpandIconBg:_a,tableExpandColumnWidth:zt+2*ue.padding,tableExpandedRowBg:xn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:Yo,tableScrollThumbBgHover:xe,tableScrollBg:Je});return[Tc(ma),Cl(ma),ed(ma),iu(ma),Kf(ma),ZA(ma),Oc(ma),Af(ma),ed(ma),y0(ma),Bh(ma),Eu(ma),wc(ma),wA(ma),Dd(ma),w0(ma),jf(ma)]},ue=>{const{colorFillAlter:xe,colorBgContainer:Je,colorTextHeading:ct,colorFillSecondary:Ct,colorFillContent:vt,controlItemBgActive:$t,controlItemBgActiveHover:zt,padding:Qt,paddingSM:dr,paddingXS:_r,colorBorderSecondary:mr,borderRadiusLG:tn,fontSize:Vr,controlHeight:Yr,colorTextPlaceholder:Pn}=ue,xn=new yA.C(Ct).onBackground(Je).toHexShortString(),Fn=new yA.C(vt).onBackground(Je).toHexShortString(),Bn=new yA.C(xe).onBackground(Je).toHexShortString();return{headerBg:Bn,headerColor:ct,headerSortActiveBg:xn,headerSortHoverBg:Fn,bodySortBg:Bn,rowHoverBg:Bn,rowSelectedBg:$t,rowSelectedHoverBg:zt,rowExpandedBg:xe,cellPaddingBlock:Qt,cellPaddingInline:Qt,cellPaddingBlockMD:dr,cellPaddingInlineMD:_r,cellPaddingBlockSM:_r,cellPaddingInlineSM:_r,borderColor:mr,headerBorderRadius:tn,footerBg:Bn,footerColor:ct,cellFontSize:Vr,cellFontSizeMD:Vr,cellFontSizeSM:Vr,headerSplitColor:mr,fixedHeaderSortActiveBg:xn,headerFilterHoverBg:vt,filterDropdownMenuBg:Je,filterDropdownBg:Je,expandIconBg:Je,selectionColumnWidth:Yr,stickyScrollBarBg:Pn,stickyScrollBarBorderRadius:100}});const df=[],rd=(ue,xe)=>{const{prefixCls:Je,className:ct,rootClassName:Ct,style:vt,size:$t,bordered:zt,dropdownPrefixCls:Qt,dataSource:dr,pagination:_r,rowSelection:mr,rowKey:tn="key",rowClassName:Vr,columns:Yr,children:Pn,childrenColumnName:xn,onChange:Fn,getPopupContainer:Bn,loading:zn,expandIcon:Ti,expandable:ji,expandedRowRender:mi,expandIconColumnIndex:na,indentSize:wa,scroll:Yn,sortDirections:bi,locale:oi,showSorterTooltip:Tn=!0,virtual:si}=ue,Vi=S.useMemo(()=>Yr||ge(Pn),[Yr,Pn]),Na=S.useMemo(()=>Vi.some(ao=>ao.responsive),[Vi]),pa=(0,Io.Z)(Na),Wi=S.useMemo(()=>{const ao=new Set(Object.keys(pa).filter(Zo=>pa[Zo]));return Vi.filter(Zo=>!Zo.responsive||Zo.responsive.some(Vl=>ao.has(Vl)))},[Vi,pa]),_a=(0,Ji.Z)(ue,["className","style","columns"]),{locale:Qa=So.Z,direction:Yo,table:lo,renderEmpty:vs,getPrefixCls:cs,getPopupContainer:ma}=S.useContext(Is.E_),al=(0,fa.Z)($t),mo=Object.assign(Object.assign({},Qa.Table),oi),qo=dr||df,rs=cs("table",Je),xc=cs("dropdown",Qt),li=Object.assign({childrenColumnName:xn,expandIconColumnIndex:na},ji),{childrenColumnName:Gi="children"}=li,zi=S.useMemo(()=>qo.some(ao=>ao==null?void 0:ao[Gi])?"nest":mi||ji&&ji.expandedRowRender?"row":null,[qo]),Ni={body:S.useRef()},vo=S.useMemo(()=>typeof tn=="function"?tn:ao=>ao==null?void 0:ao[tn],[tn]),[Oi]=Ts(qo,Gi,vo),ca={},ja=function(ao,Zo){let Vl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var us,kl,Wl;const Js=Object.assign(Object.assign({},ca),ao);Vl&&((us=ca.resetPagination)===null||us===void 0||us.call(ca),!((kl=Js.pagination)===null||kl===void 0)&&kl.current&&(Js.pagination.current=1),_r&&_r.onChange&&_r.onChange(1,(Wl=Js.pagination)===null||Wl===void 0?void 0:Wl.pageSize)),Yn&&Yn.scrollToFirstRowOnChange!==!1&&Ni.body.current&&(0,Fa.Z)(0,{getContainer:()=>Ni.body.current}),Fn==null||Fn(Js.pagination,Js.filters,Js.sorter,{currentDataSource:gA(Xo(qo,Js.sorterStates,Gi),Js.filterStates),action:Zo})},Za=(ao,Zo)=>{ja({sorter:ao,sorterStates:Zo},"sort",!1)},[Ml,nl,Gc,Us]=Oo({prefixCls:rs,mergedColumns:Wi,onSorterChange:Za,sortDirections:bi||["ascend","descend"],tableLocale:mo,showSorterTooltip:Tn}),Uc=S.useMemo(()=>Xo(qo,nl,Gi),[qo,nl]);ca.sorter=Us(),ca.sorterStates=nl;const Hn=(ao,Zo)=>{ja({filters:ao,filterStates:Zo},"filter",!0)},[dc,Fu,co]=qc({prefixCls:rs,locale:mo,dropdownPrefixCls:xc,mergedColumns:Wi,onFilterChange:Hn,getPopupContainer:Bn||ma}),hn=gA(Uc,Fu);ca.filters=co,ca.filterStates=Fu;const Lo=S.useMemo(()=>{const ao={};return Object.keys(co).forEach(Zo=>{co[Zo]!==null&&(ao[Zo]=co[Zo])}),Object.assign(Object.assign({},Gc),{filters:ao})},[Gc,co]),[cl]=yc(Lo),As=(ao,Zo)=>{ja({pagination:Object.assign(Object.assign({},ca.pagination),{current:ao,pageSize:Zo})},"paginate")},[ia,Sl]=vA(hn.length,As,_r);ca.pagination=_r===!1?{}:to(ia,_r),ca.resetPagination=Sl;const Zl=S.useMemo(()=>{if(_r===!1||!ia.pageSize)return hn;const{current:ao=1,total:Zo,pageSize:Vl=jl}=ia;return hn.length<Zo?hn.length>Vl?hn.slice((ao-1)*Vl,ao*Vl):hn:hn.slice((ao-1)*Vl,ao*Vl)},[!!_r,hn,ia&&ia.current,ia&&ia.pageSize,ia&&ia.total]),[Rc,Cc]=Xs({prefixCls:rs,data:hn,pageData:Zl,getRowKey:vo,getRecordByKey:Oi,expandType:zi,childrenColumnName:Gi,locale:mo,getPopupContainer:Bn||ma},mr),El=(ao,Zo,Vl)=>{let us;return typeof Vr=="function"?us=D()(Vr(ao,Zo,Vl)):us=D()(Vr),D()({[`${rs}-row-selected`]:Cc.has(vo(ao,Zo))},us)};li.__PARENT_RENDER_ICON__=li.expandIcon,li.expandIcon=li.expandIcon||Ti||Ps(mo),zi==="nest"&&li.expandIconColumnIndex===void 0?li.expandIconColumnIndex=mr?1:0:li.expandIconColumnIndex>0&&mr&&(li.expandIconColumnIndex-=1),typeof li.indentSize!="number"&&(li.indentSize=typeof wa=="number"?wa:15);const Al=S.useCallback(ao=>cl(Rc(dc(Ml(ao)))),[Ml,dc,Rc]);let au,Ll;if(_r!==!1&&(ia!=null&&ia.total)){let ao;ia.size?ao=ia.size:ao=al==="small"||al==="middle"?"small":void 0;const Zo=kl=>S.createElement(Po.Z,Object.assign({},ia,{className:D()(`${rs}-pagination ${rs}-pagination-${kl}`,ia.className),size:ao})),Vl=Yo==="rtl"?"left":"right",{position:us}=ia;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,po.Z)(),Bc=D()(`${rs}-wrapper`,lo==null?void 0:lo.className,{[`${rs}-wrapper-rtl`]:Yo==="rtl"},ct,Ct,il),xA=Object.assign(Object.assign({},lo==null?void 0:lo.style),vt),PA=oi&&oi.emptyText||(vs==null?void 0:vs("Table"))||S.createElement($a.Z,{componentName:"Table"}),CA=si?qu:zl,ff={},zf=S.useMemo(()=>{const{fontSize:ao,lineHeight:Zo,padding:Vl,paddingXS:us,paddingSM:kl}=Ms,Wl=Math.floor(ao*Zo);switch(al){case"large":return Vl*2+Wl;case"small":return us*2+Wl;default:return kl*2+Wl}},[Ms,al]);return si&&(ff.listItemHeight=zf),_l(S.createElement("div",{ref:xe,className:Bc,style:xA},S.createElement(Os.Z,Object.assign({spinning:!1},Rs),au,S.createElement(CA,Object.assign({},ff,_a,{columns:Wi,direction:Yo,expandable:li,prefixCls:rs,className:D()({[`${rs}-middle`]:al==="middle",[`${rs}-small`]:al==="small",[`${rs}-bordered`]:zt,[`${rs}-empty`]:qo.length===0}),data:Zl,rowKey:vo,rowClassName:El,emptyText:PA,internalHooks:Ae,internalRefs:Ni,transformColumns:Al})),Ll)))};var x0=S.forwardRef(rd);const C0=(ue,xe)=>{const Je=S.useRef(0);return Je.current+=1,S.createElement(x0,Object.assign({},ue,{ref:xe,_renderTimes:Je.current}))},$l=S.forwardRef(C0);$l.SELECTION_COLUMN=go,$l.EXPAND_COLUMN=pe,$l.SELECTION_ALL=jo,$l.SELECTION_INVERT=zo,$l.SELECTION_NONE=No,$l.Column=Vn,$l.ColumnGroup=Di,$l.Summary=H;var nd=$l,B0=nd},99313:function(un,Tt,x){"use strict";x.d(Tt,{default:function(){return yi}});var pe=x(99267),Ae=x(18785),P=x(62772),Ne=x(92310),te=x.n(Ne),V=x(54476),S=x(20068),g=x(33885),F=x(42978),v=x(76190),$=x(75931),_=x(59301),M=x(49658),O=x(18929),T=x(77900),L=(0,_.createContext)(null),Y=_.forwardRef(function(ge,Me){var Fe=ge.prefixCls,Ge=ge.className,Pt=ge.style,Dt=ge.id,Er=ge.active,nr=ge.tabKey,Or=ge.children;return _.createElement("div",{id:Dt&&"".concat(Dt,"-panel-").concat(nr),role:"tabpanel",tabIndex:Er?0:-1,"aria-labelledby":Dt&&"".concat(Dt,"-tab-").concat(nr),"aria-hidden":!Er,style:Pt,className:te()(Fe,Er&&"".concat(Fe,"-active"),Ge),ref:Me},Or)}),R=Y,se=["key","forceRender","style","className"];function ne(ge){var Me=ge.id,Fe=ge.activeKey,Ge=ge.animated,Pt=ge.tabPosition,Dt=ge.destroyInactiveTabPane,Er=_.useContext(L),nr=Er.prefixCls,Or=Er.tabs,Hr=Ge.tabPane,an="".concat(nr,"-tabpane");return _.createElement("div",{className:te()("".concat(nr,"-content-holder"))},_.createElement("div",{className:te()("".concat(nr,"-content"),"".concat(nr,"-content-").concat(Pt),(0,S.Z)({},"".concat(nr,"-content-animated"),Hr))},Or.map(function(jr){var Rr=jr.key,en=jr.forceRender,wn=jr.style,on=jr.className,Nn=(0,$.Z)(jr,se),Qn=Rr===Fe;return _.createElement(T.default,(0,V.Z)({key:Rr,visible:Qn,forceRender:en,removeOnLeave:!!Dt,leavedClassName:"".concat(an,"-hidden")},Ge.tabPaneMotion),function(hi,On){var Xn=hi.style,Vt=hi.className;return _.createElement(R,(0,V.Z)({},Nn,{prefixCls:an,id:Me,tabKey:Rr,animated:Hr,active:Qn,style:(0,g.Z)((0,g.Z)({},wn),Xn),className:te()(on,Vt),ref:On}))})})))}var J=x(94480),W=x(29301),K=x(6089),le=x(8654),me={width:0,height:0,left:0,top:0};function Oe(ge,Me,Fe){return(0,_.useMemo)(function(){for(var Ge,Pt=new Map,Dt=Me.get((Ge=ge[0])===null||Ge===void 0?void 0:Ge.key)||me,Er=Dt.left+Dt.width,nr=0;nr<ge.length;nr+=1){var Or=ge[nr].key,Hr=Me.get(Or);if(!Hr){var an;Hr=Me.get((an=ge[nr-1])===null||an===void 0?void 0:an.key)||me}var jr=Pt.get(Or)||(0,g.Z)({},Hr);jr.right=Er-jr.left-jr.width,Pt.set(Or,jr)}return Pt},[ge.map(function(Ge){return Ge.key}).join("_"),Me,Fe])}function Be(ge,Me){var Fe=_.useRef(ge),Ge=_.useState({}),Pt=(0,F.Z)(Ge,2),Dt=Pt[1];function Er(nr){var Or=typeof nr=="function"?nr(Fe.current):nr;Or!==Fe.current&&Me(Or,Fe.current),Fe.current=Or,Dt({})}return[Fe.current,Er]}var Ue=.1,ee=.01,fe=20,D=Math.pow(.995,fe);function Ye(ge,Me){var Fe=(0,_.useState)(),Ge=(0,F.Z)(Fe,2),Pt=Ge[0],Dt=Ge[1],Er=(0,_.useState)(0),nr=(0,F.Z)(Er,2),Or=nr[0],Hr=nr[1],an=(0,_.useState)(0),jr=(0,F.Z)(an,2),Rr=jr[0],en=jr[1],wn=(0,_.useState)(),on=(0,F.Z)(wn,2),Nn=on[0],Qn=on[1],hi=(0,_.useRef)();function On(jt){var or=jt.touches[0],cr=or.screenX,Pr=or.screenY;Dt({x:cr,y:Pr}),window.clearInterval(hi.current)}function Xn(jt){if(Pt){jt.preventDefault();var or=jt.touches[0],cr=or.screenX,Pr=or.screenY;Dt({x:cr,y:Pr});var yn=cr-Pt.x,Cn=Pr-Pt.y;Me(yn,Cn);var Ai=Date.now();Hr(Ai),en(Ai-Or),Qn({x:yn,y:Cn})}}function Vt(){if(Pt&&(Dt(null),Qn(null),Nn)){var jt=Nn.x/Rr,or=Nn.y/Rr,cr=Math.abs(jt),Pr=Math.abs(or);if(Math.max(cr,Pr)<Ue)return;var yn=jt,Cn=or;hi.current=window.setInterval(function(){if(Math.abs(yn)<ee&&Math.abs(Cn)<ee){window.clearInterval(hi.current);return}yn*=D,Cn*=D,Me(yn*fe,Cn*fe)},fe)}}var Xt=(0,_.useRef)();function Yt(jt){var or=jt.deltaX,cr=jt.deltaY,Pr=0,yn=Math.abs(or),Cn=Math.abs(cr);yn===Cn?Pr=Xt.current==="x"?or:cr:yn>Cn?(Pr=or,Xt.current="x"):(Pr=cr,Xt.current="y"),Me(-Pr,-Pr)&&jt.preventDefault()}var tr=(0,_.useRef)(null);tr.current={onTouchStart:On,onTouchMove:Xn,onTouchEnd:Vt,onWheel:Yt},_.useEffect(function(){function jt(yn){tr.current.onTouchStart(yn)}function or(yn){tr.current.onTouchMove(yn)}function cr(yn){tr.current.onTouchEnd(yn)}function Pr(yn){tr.current.onWheel(yn)}return document.addEventListener("touchmove",or,{passive:!1}),document.addEventListener("touchend",cr,{passive:!1}),ge.current.addEventListener("touchstart",jt,{passive:!1}),ge.current.addEventListener("wheel",Pr),function(){document.removeEventListener("touchmove",or),document.removeEventListener("touchend",cr)}},[])}var Le=x(34280);function Ce(ge){var Me=(0,_.useState)(0),Fe=(0,F.Z)(Me,2),Ge=Fe[0],Pt=Fe[1],Dt=(0,_.useRef)(0),Er=(0,_.useRef)();return Er.current=ge,(0,Le.o)(function(){var nr;(nr=Er.current)===null||nr===void 0||nr.call(Er)},[Ge]),function(){Dt.current===Ge&&(Dt.current+=1,Pt(Dt.current))}}function Te(ge){var Me=(0,_.useRef)([]),Fe=(0,_.useState)({}),Ge=(0,F.Z)(Fe,2),Pt=Ge[1],Dt=(0,_.useRef)(typeof ge=="function"?ge():ge),Er=Ce(function(){var Or=Dt.current;Me.current.forEach(function(Hr){Or=Hr(Or)}),Me.current=[],Dt.current=Or,Pt({})});function nr(Or){Me.current.push(Or),Er()}return[Dt.current,nr]}var be={width:0,height:0,left:0,top:0,right:0};function ke(ge,Me,Fe,Ge,Pt,Dt,Er){var nr=Er.tabs,Or=Er.tabPosition,Hr=Er.rtl,an,jr,Rr;return["top","bottom"].includes(Or)?(an="width",jr=Hr?"right":"left",Rr=Math.abs(Fe)):(an="height",jr="top",Rr=-Fe),(0,_.useMemo)(function(){if(!nr.length)return[0,0];for(var en=nr.length,wn=en,on=0;on<en;on+=1){var Nn=ge.get(nr[on].key)||be;if(Nn[jr]+Nn[an]>Rr+Me){wn=on-1;break}}for(var Qn=0,hi=en-1;hi>=0;hi-=1){var On=ge.get(nr[hi].key)||be;if(On[jr]<Rr){Qn=hi+1;break}}return Qn>=wn?[0,0]:[Qn,wn]},[ge,Me,Ge,Pt,Dt,Rr,Or,nr.map(function(en){return en.key}).join("_"),Hr])}function he(ge){var Me;return ge instanceof Map?(Me={},ge.forEach(function(Fe,Ge){Me[Ge]=Fe})):Me=ge,JSON.stringify(Me)}var Ee="TABS_DQ";function Xe(ge){return String(ge).replace(/"/g,Ee)}function et(ge,Me,Fe,Ge){return!(!Fe||Ge||ge===!1||ge===void 0&&(Me===!1||Me===null))}function ze(ge,Me){var Fe=ge.prefixCls,Ge=ge.editable,Pt=ge.locale,Dt=ge.style;return!Ge||Ge.showAdd===!1?null:_.createElement("button",{ref:Me,type:"button",className:"".concat(Fe,"-nav-add"),style:Dt,"aria-label":(Pt==null?void 0:Pt.addAriaLabel)||"Add tab",onClick:function(nr){Ge.onEdit("add",{event:nr})}},Ge.addIcon||"+")}var qe=_.forwardRef(ze),Et=_.forwardRef(function(ge,Me){var Fe=ge.position,Ge=ge.prefixCls,Pt=ge.extra;if(!Pt)return null;var Dt,Er={};return(0,v.Z)(Pt)==="object"&&!_.isValidElement(Pt)?Er=Pt:Er.right=Pt,Fe==="right"&&(Dt=Er.right),Fe==="left"&&(Dt=Er.left),Dt?_.createElement("div",{className:"".concat(Ge,"-extra-content"),ref:Me},Dt):null}),Lt=Et,Ot=x(31561),sr=x(15285),er=x(10228);function yr(ge,Me){var Fe=ge.prefixCls,Ge=ge.id,Pt=ge.tabs,Dt=ge.locale,Er=ge.mobile,nr=ge.moreIcon,Or=nr===void 0?"More":nr,Hr=ge.moreTransitionName,an=ge.style,jr=ge.className,Rr=ge.editable,en=ge.tabBarGutter,wn=ge.rtl,on=ge.removeAriaLabel,Nn=ge.onTabClick,Qn=ge.getPopupContainer,hi=ge.popupClassName,On=(0,_.useState)(!1),Xn=(0,F.Z)(On,2),Vt=Xn[0],Xt=Xn[1],Yt=(0,_.useState)(null),tr=(0,F.Z)(Yt,2),jt=tr[0],or=tr[1],cr="".concat(Ge,"-more-popup"),Pr="".concat(Fe,"-dropdown"),yn=jt!==null?"".concat(cr,"-").concat(jt):null,Cn=Dt==null?void 0:Dt.dropdownAriaLabel;function Ai(Ci,ui){Ci.preventDefault(),Ci.stopPropagation(),Rr.onEdit("remove",{key:ui,event:Ci})}var ni=_.createElement(sr.ZP,{onClick:function(ui){var Bi=ui.key,Xi=ui.domEvent;Nn(Bi,Xi),Xt(!1)},prefixCls:"".concat(Pr,"-menu"),id:cr,tabIndex:-1,role:"listbox","aria-activedescendant":yn,selectedKeys:[jt],"aria-label":Cn!==void 0?Cn:"expanded dropdown"},Pt.map(function(Ci){var ui=Ci.closable,Bi=Ci.disabled,Xi=Ci.closeIcon,ri=Ci.key,Pi=Ci.label,Ha=et(ui,Xi,Rr,Bi);return _.createElement(sr.sN,{key:ri,id:"".concat(cr,"-").concat(ri),role:"option","aria-controls":Ge&&"".concat(Ge,"-panel-").concat(ri),disabled:Bi},_.createElement("span",null,Pi),Ha&&_.createElement("button",{type:"button","aria-label":on||"remove",tabIndex:0,className:"".concat(Pr,"-menu-item-remove"),onClick:function(fn){fn.stopPropagation(),Ai(fn,ri)}},Xi||Rr.removeIcon||"\xD7"))}));function Ei(Ci){for(var ui=Pt.filter(function(Ha){return!Ha.disabled}),Bi=ui.findIndex(function(Ha){return Ha.key===jt})||0,Xi=ui.length,ri=0;ri<Xi;ri+=1){Bi=(Bi+Ci+Xi)%Xi;var Pi=ui[Bi];if(!Pi.disabled){or(Pi.key);return}}}function ei(Ci){var ui=Ci.which;if(!Vt){[er.Z.DOWN,er.Z.SPACE,er.Z.ENTER].includes(ui)&&(Xt(!0),Ci.preventDefault());return}switch(ui){case er.Z.UP:Ei(-1),Ci.preventDefault();break;case er.Z.DOWN:Ei(1),Ci.preventDefault();break;case er.Z.ESC:Xt(!1);break;case er.Z.SPACE:case er.Z.ENTER:jt!==null&&Nn(jt,Ci);break}}(0,_.useEffect)(function(){var Ci=document.getElementById(yn);Ci&&Ci.scrollIntoView&&Ci.scrollIntoView(!1)},[jt]),(0,_.useEffect)(function(){Vt||or(null)},[Vt]);var jn=(0,S.Z)({},wn?"marginRight":"marginLeft",en);Pt.length||(jn.visibility="hidden",jn.order=1);var xi=te()((0,S.Z)({},"".concat(Pr,"-rtl"),wn)),wi=Er?null:_.createElement(Ot.Z,{prefixCls:Pr,overlay:ni,trigger:["hover"],visible:Pt.length?Vt:!1,transitionName:Hr,onVisibleChange:Xt,overlayClassName:te()(xi,hi),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Qn},_.createElement("button",{type:"button",className:"".concat(Fe,"-nav-more"),style:jn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":cr,id:"".concat(Ge,"-more"),"aria-expanded":Vt,onKeyDown:ei},Or));return _.createElement("div",{className:te()("".concat(Fe,"-nav-operations"),jr),style:an,ref:Me},wi,_.createElement(qe,{prefixCls:Fe,locale:Dt,editable:Rr}))}var lr=_.memo(_.forwardRef(yr),function(ge,Me){return Me.tabMoving});function G(ge){var Me,Fe=ge.prefixCls,Ge=ge.id,Pt=ge.active,Dt=ge.tab,Er=Dt.key,nr=Dt.label,Or=Dt.disabled,Hr=Dt.closeIcon,an=ge.closable,jr=ge.renderWrapper,Rr=ge.removeAriaLabel,en=ge.editable,wn=ge.onClick,on=ge.onFocus,Nn=ge.style,Qn="".concat(Fe,"-tab"),hi=et(an,Hr,en,Or);function On(Xt){Or||wn(Xt)}function Xn(Xt){Xt.preventDefault(),Xt.stopPropagation(),en.onEdit("remove",{key:Er,event:Xt})}var Vt=_.createElement("div",{key:Er,"data-node-key":Xe(Er),className:te()(Qn,(Me={},(0,S.Z)(Me,"".concat(Qn,"-with-remove"),hi),(0,S.Z)(Me,"".concat(Qn,"-active"),Pt),(0,S.Z)(Me,"".concat(Qn,"-disabled"),Or),Me)),style:Nn,onClick:On},_.createElement("div",{role:"tab","aria-selected":Pt,id:Ge&&"".concat(Ge,"-tab-").concat(Er),className:"".concat(Qn,"-btn"),"aria-controls":Ge&&"".concat(Ge,"-panel-").concat(Er),"aria-disabled":Or,tabIndex:Or?null:0,onClick:function(Yt){Yt.stopPropagation(),On(Yt)},onKeyDown:function(Yt){[er.Z.SPACE,er.Z.ENTER].includes(Yt.which)&&(Yt.preventDefault(),On(Yt))},onFocus:on},nr),hi&&_.createElement("button",{type:"button","aria-label":Rr||"remove",tabIndex:0,className:"".concat(Qn,"-remove"),onClick:function(Yt){Yt.stopPropagation(),Xn(Yt)}},Hr||en.removeIcon||"\xD7"));return jr?jr(Vt):Vt}var dt=G,I=x(16089),m=function(Me){var Fe=Me.activeTabOffset,Ge=Me.horizontal,Pt=Me.rtl,Dt=Me.indicatorSize,Er=(0,_.useState)(),nr=(0,F.Z)(Er,2),Or=nr[0],Hr=nr[1],an=(0,_.useRef)(),jr=function(wn){return typeof Dt=="function"?Dt(wn):typeof Dt=="number"?Dt:wn};function Rr(){I.Z.cancel(an.current)}return(0,_.useEffect)(function(){var en={};return Fe&&(Ge?(Pt?(en.right=Fe.right+Fe.width/2,en.transform="translateX(50%)"):(en.left=Fe.left+Fe.width/2,en.transform="translateX(-50%)"),en.width=jr(Fe.width)):(en.top=Fe.top+Fe.height/2,en.transform="translateY(-50%)",en.height=jr(Fe.height))),Rr(),an.current=(0,I.Z)(function(){Hr(en)}),Rr},[Fe,Ge,Pt,Dt]),{style:Or}},u=m,C=function(Me){var Fe=Me.current||{},Ge=Fe.offsetWidth,Pt=Ge===void 0?0:Ge,Dt=Fe.offsetHeight,Er=Dt===void 0?0:Dt;return[Pt,Er]},q=function(Me,Fe){return Me[Fe?0:1]};function Se(ge,Me){var Fe,Ge=_.useContext(L),Pt=Ge.prefixCls,Dt=Ge.tabs,Er=ge.className,nr=ge.style,Or=ge.id,Hr=ge.animated,an=ge.activeKey,jr=ge.rtl,Rr=ge.extra,en=ge.editable,wn=ge.locale,on=ge.tabPosition,Nn=ge.tabBarGutter,Qn=ge.children,hi=ge.onTabClick,On=ge.onTabScroll,Xn=ge.indicatorSize,Vt=(0,_.useRef)(),Xt=(0,_.useRef)(),Yt=(0,_.useRef)(),tr=(0,_.useRef)(),jt=(0,_.useRef)(),or=(0,_.useRef)(),cr=(0,_.useRef)(),Pr=on==="top"||on==="bottom",yn=Be(0,function(eo,Ra){Pr&&On&&On({direction:eo>Ra?"left":"right"})}),Cn=(0,F.Z)(yn,2),Ai=Cn[0],ni=Cn[1],Ei=Be(0,function(eo,Ra){!Pr&&On&&On({direction:eo>Ra?"top":"bottom"})}),ei=(0,F.Z)(Ei,2),jn=ei[0],xi=ei[1],wi=(0,_.useState)([0,0]),Ci=(0,F.Z)(wi,2),ui=Ci[0],Bi=Ci[1],Xi=(0,_.useState)([0,0]),ri=(0,F.Z)(Xi,2),Pi=ri[0],Ha=ri[1],ci=(0,_.useState)([0,0]),fn=(0,F.Z)(ci,2),ln=fn[0],Jn=fn[1],Kn=(0,_.useState)([0,0]),pi=(0,F.Z)(Kn,2),qi=pi[0],Mi=pi[1],Ua=Te(new Map),Aa=(0,F.Z)(Ua,2),Bo=Aa[0],Vn=Aa[1],In=Oe(Dt,Bo,Pi[0]),Di=q(ui,Pr),Ji=q(Pi,Pr),Fa=q(ln,Pr),Is=q(qi,Pr),$a=Di<Ji+Fa,fa=$a?Di-Is:Di-Fa,Io="".concat(Pt,"-nav-operations-hidden"),So=0,Po=0;Pr&&jr?(So=0,Po=Math.max(0,Ji-fa)):(So=Math.min(0,fa-Ji),Po=0);function Os(eo){return eo<So?So:eo>Po?Po:eo}var po=(0,_.useRef)(),bs=(0,_.useState)(),Ps=(0,F.Z)(bs,2),$s=Ps[0],To=Ps[1];function Uo(){To(Date.now())}function ys(){window.clearTimeout(po.current)}Ye(tr,function(eo,Ra){function os(ss,Fs){ss(function(Go){var Fo=Os(Go+Fs);return Fo})}return $a?(Pr?os(ni,eo):os(xi,Ra),ys(),Uo(),!0):!1}),(0,_.useEffect)(function(){return ys(),$s&&(po.current=window.setTimeout(function(){To(0)},100)),ys},[$s]);var el=ke(In,fa,Pr?Ai:jn,Ji,Fa,Is,(0,g.Z)((0,g.Z)({},ge),{},{tabs:Dt})),vl=(0,F.Z)(el,2),ic=vl[0],ac=vl[1],Ql=(0,K.Z)(function(){var eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:an,Ra=In.get(eo)||{width:0,height:0,left:0,right:0,top:0};if(Pr){var os=Ai;jr?Ra.right<Ai?os=Ra.right:Ra.right+Ra.width>Ai+fa&&(os=Ra.right+Ra.width-fa):Ra.left<-Ai?os=-Ra.left:Ra.left+Ra.width>-Ai+fa&&(os=-(Ra.left+Ra.width-fa)),xi(0),ni(Os(os))}else{var ss=jn;Ra.top<-jn?ss=-Ra.top:Ra.top+Ra.height>-jn+fa&&(ss=-(Ra.top+Ra.height-fa)),ni(0),xi(Os(ss))}}),Zs={};on==="top"||on==="bottom"?Zs[jr?"marginRight":"marginLeft"]=Nn:Zs.marginTop=Nn;var Dc=Dt.map(function(eo,Ra){var os=eo.key;return _.createElement(dt,{id:Or,prefixCls:Pt,key:os,tab:eo,style:Ra===0?void 0:Zs,closable:eo.closable,editable:en,active:os===an,renderWrapper:Qn,removeAriaLabel:wn==null?void 0:wn.removeAriaLabel,onClick:function(Fs){hi(os,Fs)},onFocus:function(){Ql(os),Uo(),tr.current&&(jr||(tr.current.scrollLeft=0),tr.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(Xe(Fs),'"]'));Go&&Ra.set(Fs,{width:Go.offsetWidth,height:Go.offsetHeight,left:Go.offsetLeft,top:Go.offsetTop})}),Ra})};(0,_.useEffect)(function(){Kl()},[Dt.map(function(eo){return eo.key}).join("_")]);var Hl=Ce(function(){var eo=C(Vt),Ra=C(Xt),os=C(Yt);Bi([eo[0]-Ra[0]-os[0],eo[1]-Ra[1]-os[1]]);var ss=C(cr);Jn(ss);var Fs=C(or);Mi(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),ii=[].concat((0,J.Z)(Vs),(0,J.Z)(as)),la=In.get(an),ta=u({activeTabOffset:la,horizontal:Pr,rtl:jr,indicatorSize:Xn}),oa=ta.style;(0,_.useEffect)(function(){Ql()},[an,So,Po,he(la),he(In),Pr]),(0,_.useEffect)(function(){Hl()},[jr]);var Da=!!ii.length,so="".concat(Pt,"-nav-wrap"),Ws,ws,xs,ms;return Pr?jr?(ws=Ai>0,Ws=Ai!==Po):(Ws=Ai<0,ws=Ai!==So):(xs=jn<0,ms=jn!==So),_.createElement(W.Z,{onResize:Hl},_.createElement("div",{ref:(0,le.x1)(Me,Vt),role:"tablist",className:te()("".concat(Pt,"-nav"),Er),style:nr,onKeyDown:function(){Uo()}},_.createElement(Lt,{ref:Xt,position:"left",extra:Rr,prefixCls:Pt}),_.createElement(W.Z,{onResize:Hl},_.createElement("div",{className:te()(so,(Fe={},(0,S.Z)(Fe,"".concat(so,"-ping-left"),Ws),(0,S.Z)(Fe,"".concat(so,"-ping-right"),ws),(0,S.Z)(Fe,"".concat(so,"-ping-top"),xs),(0,S.Z)(Fe,"".concat(so,"-ping-bottom"),ms),Fe)),ref:tr},_.createElement(W.Z,{onResize:Hl},_.createElement("div",{ref:jt,className:"".concat(Pt,"-nav-list"),style:{transform:"translate(".concat(Ai,"px, ").concat(jn,"px)"),transition:$s?"none":void 0}},Dc,_.createElement(qe,{ref:cr,prefixCls:Pt,locale:wn,editable:en,style:(0,g.Z)((0,g.Z)({},Dc.length===0?void 0:Zs),{},{visibility:Da?"hidden":null})}),_.createElement("div",{className:te()("".concat(Pt,"-ink-bar"),(0,S.Z)({},"".concat(Pt,"-ink-bar-animated"),Hr.inkBar)),style:oa}))))),_.createElement(lr,(0,V.Z)({},ge,{removeAriaLabel:wn==null?void 0:wn.removeAriaLabel,ref:or,prefixCls:Pt,tabs:ii,className:!Da&&Io,tabMoving:!!$s})),_.createElement(Lt,{ref:Yt,position:"right",extra:Rr,prefixCls:Pt})))}var H=_.forwardRef(Se),ie=["renderTabBar"],Qe=["label","key"];function we(ge){var Me=ge.renderTabBar,Fe=(0,$.Z)(ge,ie),Ge=_.useContext(L),Pt=Ge.tabs;if(Me){var Dt=(0,g.Z)((0,g.Z)({},Fe),{},{panes:Pt.map(function(Er){var nr=Er.label,Or=Er.key,Hr=(0,$.Z)(Er,Qe);return _.createElement(R,(0,V.Z)({tab:nr,key:Or,tabKey:Or},Hr))})});return Me(Dt,H)}return _.createElement(H,Fe)}var ye=x(48736);function je(){var ge=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Me;return ge===!1?Me={inkBar:!1,tabPane:!1}:ge===!0?Me={inkBar:!0,tabPane:!1}:Me=(0,g.Z)({inkBar:!0},(0,v.Z)(ge)==="object"?ge:{}),Me.tabPaneMotion&&Me.tabPane===void 0&&(Me.tabPane=!0),!Me.tabPaneMotion&&Me.tabPane&&(Me.tabPane=!1),Me}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"],de=0;function st(ge,Me){var Fe,Ge=ge.id,Pt=ge.prefixCls,Dt=Pt===void 0?"rc-tabs":Pt,Er=ge.className,nr=ge.items,Or=ge.direction,Hr=ge.activeKey,an=ge.defaultActiveKey,jr=ge.editable,Rr=ge.animated,en=ge.tabPosition,wn=en===void 0?"top":en,on=ge.tabBarGutter,Nn=ge.tabBarStyle,Qn=ge.tabBarExtraContent,hi=ge.locale,On=ge.moreIcon,Xn=ge.moreTransitionName,Vt=ge.destroyInactiveTabPane,Xt=ge.renderTabBar,Yt=ge.onChange,tr=ge.onTabClick,jt=ge.onTabScroll,or=ge.getPopupContainer,cr=ge.popupClassName,Pr=ge.indicatorSize,yn=(0,$.Z)(ge,xt),Cn=_.useMemo(function(){return(nr||[]).filter(function(Mi){return Mi&&(0,v.Z)(Mi)==="object"&&"key"in Mi})},[nr]),Ai=Or==="rtl",ni=je(Rr),Ei=(0,_.useState)(!1),ei=(0,F.Z)(Ei,2),jn=ei[0],xi=ei[1];(0,_.useEffect)(function(){xi((0,M.Z)())},[]);var wi=(0,O.Z)(function(){var Mi;return(Mi=Cn[0])===null||Mi===void 0?void 0:Mi.key},{value:Hr,defaultValue:an}),Ci=(0,F.Z)(wi,2),ui=Ci[0],Bi=Ci[1],Xi=(0,_.useState)(function(){return Cn.findIndex(function(Mi){return Mi.key===ui})}),ri=(0,F.Z)(Xi,2),Pi=ri[0],Ha=ri[1];(0,_.useEffect)(function(){var Mi=Cn.findIndex(function(Aa){return Aa.key===ui});if(Mi===-1){var Ua;Mi=Math.max(0,Math.min(Pi,Cn.length-1)),Bi((Ua=Cn[Mi])===null||Ua===void 0?void 0:Ua.key)}Ha(Mi)},[Cn.map(function(Mi){return Mi.key}).join("_"),ui,Pi]);var ci=(0,O.Z)(null,{value:Ge}),fn=(0,F.Z)(ci,2),ln=fn[0],Jn=fn[1];(0,_.useEffect)(function(){Ge||(Jn("rc-tabs-".concat(de)),de+=1)},[]);function Kn(Mi,Ua){tr==null||tr(Mi,Ua);var Aa=Mi!==ui;Bi(Mi),Aa&&(Yt==null||Yt(Mi))}var pi={id:ln,activeKey:ui,animated:ni,tabPosition:wn,rtl:Ai,mobile:jn},qi=(0,g.Z)((0,g.Z)({},pi),{},{editable:jr,locale:hi,moreIcon:On,moreTransitionName:Xn,tabBarGutter:on,onTabClick:Kn,onTabScroll:jt,extra:Qn,style:Nn,panes:null,getPopupContainer:or,popupClassName:cr,indicatorSize:Pr});return _.createElement(L.Provider,{value:{tabs:Cn,prefixCls:Dt}},_.createElement("div",(0,V.Z)({ref:Me,id:Ge,className:te()(Dt,"".concat(Dt,"-").concat(wn),(Fe={},(0,S.Z)(Fe,"".concat(Dt,"-mobile"),jn),(0,S.Z)(Fe,"".concat(Dt,"-editable"),jr),(0,S.Z)(Fe,"".concat(Dt,"-rtl"),Ai),Fe),Er)},yn),_.createElement(we,(0,V.Z)({},qi,{renderTabBar:Xt})),_.createElement(ne,(0,V.Z)({destroyInactiveTabPane:Vt},pi,{animated:ni}))))}var tt=_.forwardRef(st),Ie=tt,De=Ie,lt=x(36355),Ut=x(19716),rr=()=>null,Fr=x(62892);const kr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Dr(ge){let Me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Fe;return Me===!1?Fe={inkBar:!1,tabPane:!1}:Me===!0?Fe={inkBar:!0,tabPane:!0}:Fe=Object.assign({inkBar:!0},typeof Me=="object"?Me:{}),Fe.tabPane&&(Fe.tabPaneMotion=Object.assign(Object.assign({},kr),{motionName:(0,Fr.m)(ge,"switch")})),Fe}var Nr=x(11592),xr=function(ge,Me){var Fe={};for(var Ge in ge)Object.prototype.hasOwnProperty.call(ge,Ge)&&Me.indexOf(Ge)<0&&(Fe[Ge]=ge[Ge]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ge=Object.getOwnPropertySymbols(ge);Pt<Ge.length;Pt++)Me.indexOf(Ge[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ge[Pt])&&(Fe[Ge[Pt]]=ge[Ge[Pt]]);return Fe};function ur(ge){return ge.filter(Me=>Me)}function Kr(ge,Me){if(ge)return ge;const Fe=(0,Nr.Z)(Me).map(Ge=>{if(_.isValidElement(Ge)){const{key:Pt,props:Dt}=Ge,Er=Dt||{},{tab:nr}=Er,Or=xr(Er,["tab"]);return Object.assign(Object.assign({key:String(Pt)},Or),{label:nr})}return null});return ur(Fe)}var pn=x(17313),kn=x(83116),mn=x(37613),Dn=x(13826),hr=ge=>{const{componentCls:Me,motionDurationSlow:Fe}=ge;return[{[Me]:{[`${Me}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Fe}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Fe}`}}}}},[(0,Dn.oN)(ge,"slide-up"),(0,Dn.oN)(ge,"slide-down")]]};const Gn=ge=>{const{componentCls:Me,tabsCardPadding:Fe,cardBg:Ge,cardGutter:Pt,colorBorderSecondary:Dt,itemSelectedColor:Er}=ge;return{[`${Me}-card`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab`]:{margin:0,padding:Fe,background:Ge,border:`${ge.lineWidth}px ${ge.lineType} ${Dt}`,transition:`all ${ge.motionDurationSlow} ${ge.motionEaseInOut}`},[`${Me}-tab-active`]:{color:Er,background:ge.colorBgContainer},[`${Me}-ink-bar`]:{visibility:"hidden"}},[`&${Me}-top, &${Me}-bottom`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab + ${Me}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Pt}px`}}}},[`&${Me}-top`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab`]:{borderRadius:`${ge.borderRadiusLG}px ${ge.borderRadiusLG}px 0 0`},[`${Me}-tab-active`]:{borderBottomColor:ge.colorBgContainer}}},[`&${Me}-bottom`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab`]:{borderRadius:`0 0 ${ge.borderRadiusLG}px ${ge.borderRadiusLG}px`},[`${Me}-tab-active`]:{borderTopColor:ge.colorBgContainer}}},[`&${Me}-left, &${Me}-right`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab + ${Me}-tab`]:{marginTop:`${Pt}px`}}},[`&${Me}-left`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ge.borderRadiusLG}px 0 0 ${ge.borderRadiusLG}px`}},[`${Me}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:ge.colorBgContainer}}}},[`&${Me}-right`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ge.borderRadiusLG}px ${ge.borderRadiusLG}px 0`}},[`${Me}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:ge.colorBgContainer}}}}}}},Hi=ge=>{const{componentCls:Me,itemHoverColor:Fe,dropdownEdgeChildVerticalPadding:Ge}=ge;return{[`${Me}-dropdown`]:Object.assign(Object.assign({},(0,pn.Wf)(ge)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:ge.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Me}-dropdown-menu`]:{maxHeight:ge.tabsDropdownHeight,margin:0,padding:`${Ge}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:ge.colorBgContainer,backgroundClip:"padding-box",borderRadius:ge.borderRadiusLG,outline:"none",boxShadow:ge.boxShadowSecondary,"&-item":Object.assign(Object.assign({},pn.vS),{display:"flex",alignItems:"center",minWidth:ge.tabsDropdownWidth,margin:0,padding:`${ge.paddingXXS}px ${ge.paddingSM}px`,color:ge.colorText,fontWeight:"normal",fontSize:ge.fontSize,lineHeight:ge.lineHeight,cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:ge.marginSM},color:ge.colorTextDescription,fontSize:ge.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Fe}},"&:hover":{background:ge.controlItemBgHover},"&-disabled":{"&, &:hover":{color:ge.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},di=ge=>{const{componentCls:Me,margin:Fe,colorBorderSecondary:Ge,horizontalMargin:Pt,verticalItemPadding:Dt,verticalItemMargin:Er}=ge;return{[`${Me}-top, ${Me}-bottom`]:{flexDirection:"column",[`> ${Me}-nav, > div > ${Me}-nav`]:{margin:Pt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${ge.lineWidth}px ${ge.lineType} ${Ge}`,content:"''"},[`${Me}-ink-bar`]:{height:ge.lineWidthBold,"&-animated":{transition:`width ${ge.motionDurationSlow}, left ${ge.motionDurationSlow},
right ${ge.motionDurationSlow}`}},[`${Me}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:ge.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:ge.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:ge.boxShadowTabsOverflowRight},[`&${Me}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Me}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Me}-top`]:{[`> ${Me}-nav,
> div > ${Me}-nav`]:{"&::before":{bottom:0},[`${Me}-ink-bar`]:{bottom:0}}},[`${Me}-bottom`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{order:1,marginTop:`${Fe}px`,marginBottom:0,"&::before":{top:0},[`${Me}-ink-bar`]:{top:0}},[`> ${Me}-content-holder, > div > ${Me}-content-holder`]:{order:0}},[`${Me}-left, ${Me}-right`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{flexDirection:"column",minWidth:ge.controlHeight*1.25,[`${Me}-tab`]:{padding:Dt,textAlign:"center"},[`${Me}-tab + ${Me}-tab`]:{margin:Er},[`${Me}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:ge.controlHeight},"&::before":{top:0,boxShadow:ge.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:ge.boxShadowTabsOverflowBottom},[`&${Me}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Me}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Me}-ink-bar`]:{width:ge.lineWidthBold,"&-animated":{transition:`height ${ge.motionDurationSlow}, top ${ge.motionDurationSlow}`}},[`${Me}-nav-list, ${Me}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Me}-left`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Me}-content-holder, > div > ${Me}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${ge.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${ge.lineWidth}px ${ge.lineType} ${ge.colorBorder}`},[`> ${Me}-content > ${Me}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:ge.paddingLG}}}},[`${Me}-right`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{order:1,[`${Me}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Me}-content-holder, > div > ${Me}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-ge.lineWidth},borderRight:{_skip_check_:!0,value:`${ge.lineWidth}px ${ge.lineType} ${ge.colorBorder}`},[`> ${Me}-content > ${Me}-tabpane`]:{paddingRight:{_skip_check_:!0,value:ge.paddingLG}}}}}},$i=ge=>{const{componentCls:Me,cardPaddingSM:Fe,cardPaddingLG:Ge,horizontalItemPaddingSM:Pt,horizontalItemPaddingLG:Dt}=ge;return{[Me]:{"&-small":{[`> ${Me}-nav`]:{[`${Me}-tab`]:{padding:Pt,fontSize:ge.titleFontSizeSM}}},"&-large":{[`> ${Me}-nav`]:{[`${Me}-tab`]:{padding:Dt,fontSize:ge.titleFontSizeLG}}}},[`${Me}-card`]:{[`&${Me}-small`]:{[`> ${Me}-nav`]:{[`${Me}-tab`]:{padding:Fe}},[`&${Me}-bottom`]:{[`> ${Me}-nav ${Me}-tab`]:{borderRadius:`0 0 ${ge.borderRadius}px ${ge.borderRadius}px`}},[`&${Me}-top`]:{[`> ${Me}-nav ${Me}-tab`]:{borderRadius:`${ge.borderRadius}px ${ge.borderRadius}px 0 0`}},[`&${Me}-right`]:{[`> ${Me}-nav ${Me}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${ge.borderRadius}px ${ge.borderRadius}px 0`}}},[`&${Me}-left`]:{[`> ${Me}-nav ${Me}-tab`]:{borderRadius:{_skip_check_:!0,value:`${ge.borderRadius}px 0 0 ${ge.borderRadius}px`}}}},[`&${Me}-large`]:{[`> ${Me}-nav`]:{[`${Me}-tab`]:{padding:Ge}}}}}},Ri=ge=>{const{componentCls:Me,itemActiveColor:Fe,itemHoverColor:Ge,iconCls:Pt,tabsHorizontalItemMargin:Dt,horizontalItemPadding:Er,itemSelectedColor:nr,itemColor:Or}=ge,Hr=`${Me}-tab`;return{[Hr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Er,fontSize:ge.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Or,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Fe}},(0,pn.Qy)(ge)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-ge.marginXXS},marginLeft:{_skip_check_:!0,value:ge.marginXS},color:ge.colorTextDescription,fontSize:ge.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${ge.motionDurationSlow}`,"&:hover":{color:ge.colorTextHeading}},"&:hover":{color:Ge},[`&${Hr}-active ${Hr}-btn`]:{color:nr,textShadow:ge.tabsActiveTextShadow},[`&${Hr}-disabled`]:{color:ge.colorTextDisabled,cursor:"not-allowed"},[`&${Hr}-disabled ${Hr}-btn, &${Hr}-disabled ${Me}-remove`]:{"&:focus, &:active":{color:ge.colorTextDisabled}},[`& ${Hr}-remove ${Pt}`]:{margin:0},[Pt]:{marginRight:{_skip_check_:!0,value:ge.marginSM}}},[`${Hr} + ${Hr}`]:{margin:{_skip_check_:!0,value:Dt}}}},Zi=ge=>{const{componentCls:Me,tabsHorizontalItemMarginRTL:Fe,iconCls:Ge,cardGutter:Pt}=ge;return{[`${Me}-rtl`]:{direction:"rtl",[`${Me}-nav`]:{[`${Me}-tab`]:{margin:{_skip_check_:!0,value:Fe},[`${Me}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ge]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${ge.marginSM}px`}},[`${Me}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${ge.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${ge.marginXXS}px`},[Ge]:{margin:0}}}},[`&${Me}-left`]:{[`> ${Me}-nav`]:{order:1},[`> ${Me}-content-holder`]:{order:0}},[`&${Me}-right`]:{[`> ${Me}-nav`]:{order:0},[`> ${Me}-content-holder`]:{order:1}},[`&${Me}-card${Me}-top, &${Me}-card${Me}-bottom`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-tab + ${Me}-tab`]:{marginRight:{_skip_check_:!0,value:Pt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Me}-dropdown-rtl`]:{direction:"rtl"},[`${Me}-menu-item`]:{[`${Me}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},za=ge=>{const{componentCls:Me,tabsCardPadding:Fe,cardHeight:Ge,cardGutter:Pt,itemHoverColor:Dt,itemActiveColor:Er,colorBorderSecondary:nr}=ge;return{[Me]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,pn.Wf)(ge)),{display:"flex",[`> ${Me}-nav, > div > ${Me}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Me}-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 ${ge.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Me}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${ge.motionDurationSlow}`},[`${Me}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Me}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Me}-nav-more`]:{position:"relative",padding:Fe,background:"transparent",border:0,color:ge.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:ge.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Me}-nav-add`]:Object.assign({minWidth:Ge,marginLeft:{_skip_check_:!0,value:Pt},padding:`0 ${ge.paddingXS}px`,background:"transparent",border:`${ge.lineWidth}px ${ge.lineType} ${nr}`,borderRadius:`${ge.borderRadiusLG}px ${ge.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:ge.colorText,transition:`all ${ge.motionDurationSlow} ${ge.motionEaseInOut}`,"&:hover":{color:Dt},"&:active, &:focus:not(:focus-visible)":{color:Er}},(0,pn.Qy)(ge))},[`${Me}-extra-content`]:{flex:"none"},[`${Me}-ink-bar`]:{position:"absolute",background:ge.inkBarColor,pointerEvents:"none"}}),Ri(ge)),{[`${Me}-content`]:{position:"relative",width:"100%"},[`${Me}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Me}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Me}-centered`]:{[`> ${Me}-nav, > div > ${Me}-nav`]:{[`${Me}-nav-wrap`]:{[`&:not([class*='${Me}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Fi=(0,kn.Z)("Tabs",ge=>{const Me=(0,mn.TS)(ge,{tabsCardPadding:ge.cardPadding||`${(ge.cardHeight-Math.round(ge.fontSize*ge.lineHeight))/2-ge.lineWidth}px ${ge.padding}px`,dropdownEdgeChildVerticalPadding:ge.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${ge.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${ge.horizontalItemGutter}px`});return[$i(Me),Zi(Me),di(Me),Hi(Me),Gn(Me),za(Me),hr(Me)]},ge=>{const Me=ge.controlHeightLG;return{zIndexPopup:ge.zIndexPopupBase+50,cardBg:ge.colorFillAlter,cardHeight:Me,cardPadding:"",cardPaddingSM:`${ge.paddingXXS*1.5}px ${ge.padding}px`,cardPaddingLG:`${ge.paddingXS}px ${ge.padding}px ${ge.paddingXXS*1.5}px`,titleFontSize:ge.fontSize,titleFontSizeLG:ge.fontSizeLG,titleFontSizeSM:ge.fontSize,inkBarColor:ge.colorPrimary,horizontalMargin:`0 0 ${ge.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${ge.paddingSM}px 0`,horizontalItemPaddingSM:`${ge.paddingXS}px 0`,horizontalItemPaddingLG:`${ge.padding}px 0`,verticalItemPadding:`${ge.paddingXS}px ${ge.paddingLG}px`,verticalItemMargin:`${ge.margin}px 0 0 0`,itemColor:ge.colorText,itemSelectedColor:ge.colorPrimary,itemHoverColor:ge.colorPrimaryHover,itemActiveColor:ge.colorPrimaryActive,cardGutter:ge.marginXXS/2}}),qn=function(ge,Me){var Fe={};for(var Ge in ge)Object.prototype.hasOwnProperty.call(ge,Ge)&&Me.indexOf(Ge)<0&&(Fe[Ge]=ge[Ge]);if(ge!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Ge=Object.getOwnPropertySymbols(ge);Pt<Ge.length;Pt++)Me.indexOf(Ge[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ge,Ge[Pt])&&(Fe[Ge[Pt]]=ge[Ge[Pt]]);return Fe};const ai=ge=>{const{type:Me,className:Fe,rootClassName:Ge,size:Pt,onEdit:Dt,hideAdd:Er,centered:nr,addIcon:Or,popupClassName:Hr,children:an,items:jr,animated:Rr,style:en,indicatorSize:wn}=ge,on=qn(ge,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Nn,moreIcon:Qn=_.createElement(Ae.Z,null)}=on,{direction:hi,tabs:On,getPrefixCls:Xn,getPopupContainer:Vt}=_.useContext(lt.E_),Xt=Xn("tabs",Nn),[Yt,tr]=Fi(Xt);let jt;Me==="editable-card"&&(jt={onEdit:(Ai,ni)=>{let{key:Ei,event:ei}=ni;Dt==null||Dt(Ai==="add"?ei:Ei,Ai)},removeIcon:_.createElement(pe.Z,null),addIcon:Or||_.createElement(P.Z,null),showAdd:Er!==!0});const or=Xn(),cr=Kr(jr,an),Pr=Dr(Xt,Rr),yn=(0,Ut.Z)(Pt),Cn=Object.assign(Object.assign({},On==null?void 0:On.style),en);return Yt(_.createElement(De,Object.assign({direction:hi,getPopupContainer:Vt,moreTransitionName:`${or}-slide-up`},on,{items:cr,className:te()({[`${Xt}-${yn}`]:yn,[`${Xt}-card`]:["card","editable-card"].includes(Me),[`${Xt}-editable-card`]:Me==="editable-card",[`${Xt}-centered`]:nr},On==null?void 0:On.className,Fe,Ge,tr),popupClassName:te()(Hr,tr),style:Cn,editable:jt,moreIcon:Qn,prefixCls:Xt,animated:Pr,indicatorSize:wn!=null?wn:On==null?void 0:On.indicatorSize})))};ai.TabPane=rr;var yi=ai},17574:function(un,Tt,x){"use strict";x.d(Tt,{default:function(){return ke}});var pe=x(60091),Ae=x(94480),P=x(52671),Ne=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,F=x(7657),v=function(Ee,Xe){return V.createElement(F.Z,(0,te.Z)({},Ee,{ref:Xe,icon:g}))},$=V.forwardRef(v),_=$,M=x(92310),O=x.n(M),T=x(35654),L=x(71430),Y=x(36355),R=x(56082),se=x(62892),ne=x(20648);const J=4;function W(he){const{dropPosition:Ee,dropLevelOffset:Xe,prefixCls:et,indent:ze,direction:qe="ltr"}=he,Et=qe==="ltr"?"left":"right",Lt=qe==="ltr"?"right":"left",Ot={[Et]:-Xe*ze+J,[Lt]:0};switch(Ee){case-1:Ot.top=-3;break;case 1:Ot.bottom=-3;break;default:Ot.bottom=-3,Ot[Et]=ze+J;break}return V.createElement("div",{style:Ot,className:`${et}-drop-indicator`})}var K=x(71997),me=V.forwardRef((he,Ee)=>{const{getPrefixCls:Xe,direction:et,virtual:ze,tree:qe}=V.useContext(Y.E_),{prefixCls:Et,className:Lt,showIcon:Ot=!1,showLine:sr,switcherIcon:er,blockNode:yr=!1,children:lr,checkable:G=!1,selectable:dt=!0,draggable:I,motion:m,style:u}=he,C=Xe("tree",Et),q=Xe(),Se=m!=null?m:Object.assign(Object.assign({},(0,se.Z)(q)),{motionAppear:!1}),H=Object.assign(Object.assign({},he),{checkable:G,selectable:dt,showIcon:Ot,motion:Se,blockNode:yr,showLine:!!sr,dropIndicatorRender:W}),[ie,Qe]=(0,ne.ZP)(C),we=V.useMemo(()=>{if(!I)return!1;let je={};switch(typeof I){case"function":je.nodeDraggable=I;break;case"object":je=Object.assign({},I);break;default:break}return je.icon!==!1&&(je.icon=je.icon||V.createElement(R.Z,null)),je},[I]),ye=je=>V.createElement(K.Z,{prefixCls:C,switcherIcon:er,treeNodeProps:je,showLine:sr});return ie(V.createElement(pe.Z,Object.assign({itemHeight:20,ref:Ee,virtual:ze},H,{style:Object.assign(Object.assign({},qe==null?void 0:qe.style),u),prefixCls:C,className:O()({[`${C}-icon-hide`]:!Ot,[`${C}-block-node`]:yr,[`${C}-unselectable`]:!dt,[`${C}-rtl`]:et==="rtl"},qe==null?void 0:qe.className,Lt,Qe),direction:et,checkable:G&&V.createElement("span",{className:`${C}-checkbox-inner`}),selectable:dt,switcherIcon:ye,draggable:we}),lr))}),Oe;(function(he){he[he.None=0]="None",he[he.Start=1]="Start",he[he.End=2]="End"})(Oe||(Oe={}));function Be(he,Ee){function Xe(et){const{key:ze,children:qe}=et;Ee(ze,et)!==!1&&Be(qe||[],Ee)}he.forEach(Xe)}function Ue(he){let{treeData:Ee,expandedKeys:Xe,startKey:et,endKey:ze}=he;const qe=[];let Et=Oe.None;if(et&&et===ze)return[et];if(!et||!ze)return[];function Lt(Ot){return Ot===et||Ot===ze}return Be(Ee,Ot=>{if(Et===Oe.End)return!1;if(Lt(Ot)){if(qe.push(Ot),Et===Oe.None)Et=Oe.Start;else if(Et===Oe.Start)return Et=Oe.End,!1}else Et===Oe.Start&&qe.push(Ot);return Xe.includes(Ot)}),qe}function ee(he,Ee){const Xe=(0,Ae.Z)(Ee),et=[];return Be(he,(ze,qe)=>{const Et=Xe.indexOf(ze);return Et!==-1&&(et.push(qe),Xe.splice(Et,1)),!!Xe.length}),et}var fe=function(he,Ee){var Xe={};for(var et in he)Object.prototype.hasOwnProperty.call(he,et)&&Ee.indexOf(et)<0&&(Xe[et]=he[et]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ze=0,et=Object.getOwnPropertySymbols(he);ze<et.length;ze++)Ee.indexOf(et[ze])<0&&Object.prototype.propertyIsEnumerable.call(he,et[ze])&&(Xe[et[ze]]=he[et[ze]]);return Xe};function D(he){const{isLeaf:Ee,expanded:Xe}=he;return Ee?V.createElement(P.Z,null):Xe?V.createElement(Ne.Z,null):V.createElement(_,null)}function Ye(he){let{treeData:Ee,children:Xe}=he;return Ee||(0,L.zn)(Xe)}const Le=(he,Ee)=>{var{defaultExpandAll:Xe,defaultExpandParent:et,defaultExpandedKeys:ze}=he,qe=fe(he,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const Et=V.useRef(),Lt=V.useRef(),Ot=()=>{const{keyEntities:we}=(0,L.I8)(Ye(qe));let ye;return Xe?ye=Object.keys(we):et?ye=(0,T.r7)(qe.expandedKeys||ze||[],we):ye=qe.expandedKeys||ze,ye},[sr,er]=V.useState(qe.selectedKeys||qe.defaultSelectedKeys||[]),[yr,lr]=V.useState(()=>Ot());V.useEffect(()=>{"selectedKeys"in qe&&er(qe.selectedKeys)},[qe.selectedKeys]),V.useEffect(()=>{"expandedKeys"in qe&&lr(qe.expandedKeys)},[qe.expandedKeys]);const G=(we,ye)=>{var je;return"expandedKeys"in qe||lr(we),(je=qe.onExpand)===null||je===void 0?void 0:je.call(qe,we,ye)},dt=(we,ye)=>{var je;const{multiple:xt}=qe,{node:de,nativeEvent:st}=ye,{key:tt=""}=de,Ie=Ye(qe),De=Object.assign(Object.assign({},ye),{selected:!0}),lt=(st==null?void 0:st.ctrlKey)||(st==null?void 0:st.metaKey),Ut=st==null?void 0:st.shiftKey;let kt;xt&&lt?(kt=we,Et.current=tt,Lt.current=kt,De.selectedNodes=ee(Ie,kt)):xt&&Ut?(kt=Array.from(new Set([].concat((0,Ae.Z)(Lt.current||[]),(0,Ae.Z)(Ue({treeData:Ie,expandedKeys:yr,startKey:tt,endKey:Et.current}))))),De.selectedNodes=ee(Ie,kt)):(kt=[tt],Et.current=tt,Lt.current=kt,De.selectedNodes=ee(Ie,kt)),(je=qe.onSelect)===null||je===void 0||je.call(qe,kt,De),"selectedKeys"in qe||er(kt)},{getPrefixCls:I,direction:m}=V.useContext(Y.E_),{prefixCls:u,className:C,showIcon:q=!0,expandAction:Se="click"}=qe,H=fe(qe,["prefixCls","className","showIcon","expandAction"]),ie=I("tree",u),Qe=O()(`${ie}-directory`,{[`${ie}-directory-rtl`]:m==="rtl"},C);return V.createElement(me,Object.assign({icon:D,ref:Ee,blockNode:!0},H,{showIcon:q,expandAction:Se,prefixCls:ie,className:Qe,expandedKeys:yr,selectedKeys:sr,onSelect:dt,onExpand:G}))};var Te=V.forwardRef(Le);const be=me;be.DirectoryTree=Te,be.TreeNode=pe.O;var ke=be},20648:function(un,Tt,x){"use strict";x.d(Tt,{TM:function(){return M},Yk:function(){return _}});var pe=x(36237),Ae=x(98447),P=x(17313),Ne=x(8378),te=x(37613),V=x(83116);const S=new pe.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),g=(O,T)=>({[`.${O}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${T.motionDurationSlow}`}}}),F=(O,T)=>({[`.${O}-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=(O,T)=>{const{treeCls:L,treeNodeCls:Y,treeNodePadding:R,titleHeight:se,nodeSelectedBg:ne,nodeHoverBg:J}=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"},[`${Y}.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"}}}},[`${Y}`]:{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(${Y}-disabled).filter-node ${L}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${L}-draggable-icon`]:{flexShrink:0,width:se,lineHeight:`${se}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${T.motionDurationSlow}`,[`${Y}:hover &`]:{opacity:.45}},[`&${Y}-disabled`]:{[`${L}-draggable-icon`]:{visibility:"hidden"}}}},[`${L}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:se}},[`${L}-draggable-icon`]:{visibility:"hidden"},[`${L}-switcher`]:Object.assign(Object.assign({},g(O,T)),{position:"relative",flex:"none",alignSelf:"stretch",width:se,margin:0,lineHeight:`${se}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:se/2,bottom:-R,marginInlineStart:-1,borderInlineEnd:`1px solid ${T.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:se/2*.8,height:se/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:se,margin:0,padding:`0 ${T.paddingXS/2}px`,color:"inherit",lineHeight:`${se}px`,background:"transparent",borderRadius:T.borderRadius,cursor:"pointer",transition:`all ${T.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:J},[`&${L}-node-selected`]:{backgroundColor:ne},[`${L}-iconEle`]:{display:"inline-block",width:se,height:se,lineHeight:`${se}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${L}-unselectable ${L}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${L}-node-content-wrapper`]:Object.assign({lineHeight:`${se}px`,userSelect:"none"},F(O,T)),[`${Y}.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:se/2,bottom:-R,borderInlineEnd:`1px solid ${T.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${L}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Y}-leaf-last`]:{[`${L}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${se/2}px !important`}}}}})}},$=O=>{const{treeCls:T,treeNodeCls:L,treeNodePadding:Y,directoryNodeSelectedBg:R,directoryNodeSelectedColor:se}=O;return{[`${T}${T}-directory`]:{[L]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Y,insetInlineStart:0,transition:`background-color ${O.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:O.controlItemBgHover}},"> *":{zIndex:1},[`${T}-switcher`]:{transition:`color ${O.motionDurationMid}`},[`${T}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${T}-node-selected`]:{color:se,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:R},[`${T}-switcher`]:{color:se},[`${T}-node-content-wrapper`]:{color:se,background:"transparent"}}}}}},_=(O,T)=>{const L=`.${O}`,Y=`${L}-treenode`,R=T.paddingXS/2,se=(0,te.TS)(T,{treeCls:L,treeNodeCls:Y,treeNodePadding:R});return[v(O,se),$(se)]},M=O=>{const{controlHeightSM:T}=O;return{titleHeight:T,nodeHoverBg:O.controlItemBgHover,nodeSelectedBg:O.controlItemBgActive}};Tt.ZP=(0,V.Z)("Tree",(O,T)=>{let{prefixCls:L}=T;return[{[O.componentCls]:(0,Ae.C2)(`${L}-checkbox`,O)},_(L,O),(0,Ne.Z)(O)]},O=>{const{colorTextLightSolid:T,colorPrimary:L}=O;return Object.assign(Object.assign({},M(O)),{directoryNodeSelectedColor:T,directoryNodeSelectedBg:L})})},71997:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Y}});var pe=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"},Ne=P,te=x(7657),V=function(se,ne){return Ae.createElement(te.Z,(0,pe.Z)({},se,{ref:ne,icon:Ne}))},S=Ae.forwardRef(V),g=S,F=x(52671),v=x(58617),$=x(15075),_=x(43531),M=x(92310),O=x.n(M),T=x(92343),Y=R=>{const{prefixCls:se,switcherIcon:ne,treeNodeProps:J,showLine:W}=R,{isLeaf:K,expanded:le,loading:me}=J;if(me)return Ae.createElement(v.Z,{className:`${se}-switcher-loading-icon`});let Oe;if(W&&typeof W=="object"&&(Oe=W.showLeafIcon),K){if(!W)return null;if(typeof Oe!="boolean"&&Oe){const ee=typeof Oe=="function"?Oe(J):Oe,fe=`${se}-switcher-line-custom-icon`;return(0,T.l$)(ee)?(0,T.Tm)(ee,{className:O()(ee.props.className||"",fe)}):ee}return Oe?Ae.createElement(F.Z,{className:`${se}-switcher-line-icon`}):Ae.createElement("span",{className:`${se}-switcher-leaf-line`})}const Be=`${se}-switcher-icon`,Ue=typeof ne=="function"?ne(J):ne;return(0,T.l$)(Ue)?(0,T.Tm)(Ue,{className:O()(Ue.props.className||"",Be)}):Ue!==void 0?Ue:W?le?Ae.createElement($.Z,{className:`${se}-switcher-line-icon`}):Ae.createElement(_.Z,{className:`${se}-switcher-line-icon`}):Ae.createElement(g,{className:Be})}},86251:function(un,Tt){"use strict";Tt.byteLength=S,Tt.toByteArray=F,Tt.fromByteArray=_;for(var x=[],pe=[],Ae=typeof Uint8Array!="undefined"?Uint8Array:Array,P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ne=0,te=P.length;Ne<te;++Ne)x[Ne]=P[Ne],pe[P.charCodeAt(Ne)]=Ne;pe[45]=62,pe[95]=63;function V(M){var O=M.length;if(O%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var T=M.indexOf("=");T===-1&&(T=O);var L=T===O?0:4-T%4;return[T,L]}function S(M){var O=V(M),T=O[0],L=O[1];return(T+L)*3/4-L}function g(M,O,T){return(O+T)*3/4-T}function F(M){var O,T=V(M),L=T[0],Y=T[1],R=new Ae(g(M,L,Y)),se=0,ne=Y>0?L-4:L,J;for(J=0;J<ne;J+=4)O=pe[M.charCodeAt(J)]<<18|pe[M.charCodeAt(J+1)]<<12|pe[M.charCodeAt(J+2)]<<6|pe[M.charCodeAt(J+3)],R[se++]=O>>16&255,R[se++]=O>>8&255,R[se++]=O&255;return Y===2&&(O=pe[M.charCodeAt(J)]<<2|pe[M.charCodeAt(J+1)]>>4,R[se++]=O&255),Y===1&&(O=pe[M.charCodeAt(J)]<<10|pe[M.charCodeAt(J+1)]<<4|pe[M.charCodeAt(J+2)]>>2,R[se++]=O>>8&255,R[se++]=O&255),R}function v(M){return x[M>>18&63]+x[M>>12&63]+x[M>>6&63]+x[M&63]}function $(M,O,T){for(var L,Y=[],R=O;R<T;R+=3)L=(M[R]<<16&16711680)+(M[R+1]<<8&65280)+(M[R+2]&255),Y.push(v(L));return Y.join("")}function _(M){for(var O,T=M.length,L=T%3,Y=[],R=16383,se=0,ne=T-L;se<ne;se+=R)Y.push($(M,se,se+R>ne?ne:se+R));return L===1?(O=M[T-1],Y.push(x[O>>2]+x[O<<4&63]+"==")):L===2&&(O=(M[T-2]<<8)+M[T-1],Y.push(x[O>>10]+x[O>>4&63]+x[O<<2&63]+"=")),Y.join("")}},19208:function(un,Tt,x){"use strict";var pe;var Ae=x(86251),P=x(67467),Ne=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Tt.lW=g,pe=se,Tt.h2=50;var te=2147483647;pe=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 I=new Uint8Array(1),m={foo:function(){return 42}};return Object.setPrototypeOf(m,Uint8Array.prototype),Object.setPrototypeOf(I,m),I.foo()===42}catch(u){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(I){if(I>te)throw new RangeError('The value "'+I+'" is invalid for option "size"');var m=new Uint8Array(I);return Object.setPrototypeOf(m,g.prototype),m}function g(I,m,u){if(typeof I=="number"){if(typeof m=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(I)}return F(I,m,u)}g.poolSize=8192;function F(I,m,u){if(typeof I=="string")return M(I,m);if(ArrayBuffer.isView(I))return T(I);if(I==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I);if(lr(I,ArrayBuffer)||I&&lr(I.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(lr(I,SharedArrayBuffer)||I&&lr(I.buffer,SharedArrayBuffer)))return L(I,m,u);if(typeof I=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var C=I.valueOf&&I.valueOf();if(C!=null&&C!==I)return g.from(C,m,u);var q=Y(I);if(q)return q;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return g.from(I[Symbol.toPrimitive]("string"),m,u);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}g.from=function(I,m,u){return F(I,m,u)},Object.setPrototypeOf(g.prototype,Uint8Array.prototype),Object.setPrototypeOf(g,Uint8Array);function v(I){if(typeof I!="number")throw new TypeError('"size" argument must be of type number');if(I<0)throw new RangeError('The value "'+I+'" is invalid for option "size"')}function $(I,m,u){return v(I),I<=0?S(I):m!==void 0?typeof u=="string"?S(I).fill(m,u):S(I).fill(m):S(I)}g.alloc=function(I,m,u){return $(I,m,u)};function _(I){return v(I),S(I<0?0:R(I)|0)}g.allocUnsafe=function(I){return _(I)},g.allocUnsafeSlow=function(I){return _(I)};function M(I,m){if((typeof m!="string"||m==="")&&(m="utf8"),!g.isEncoding(m))throw new TypeError("Unknown encoding: "+m);var u=ne(I,m)|0,C=S(u),q=C.write(I,m);return q!==u&&(C=C.slice(0,q)),C}function O(I){for(var m=I.length<0?0:R(I.length)|0,u=S(m),C=0;C<m;C+=1)u[C]=I[C]&255;return u}function T(I){if(lr(I,Uint8Array)){var m=new Uint8Array(I);return L(m.buffer,m.byteOffset,m.byteLength)}return O(I)}function L(I,m,u){if(m<0||I.byteLength<m)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<m+(u||0))throw new RangeError('"length" is outside of buffer bounds');var C;return m===void 0&&u===void 0?C=new Uint8Array(I):u===void 0?C=new Uint8Array(I,m):C=new Uint8Array(I,m,u),Object.setPrototypeOf(C,g.prototype),C}function Y(I){if(g.isBuffer(I)){var m=R(I.length)|0,u=S(m);return u.length===0||I.copy(u,0,0,m),u}if(I.length!==void 0)return typeof I.length!="number"||G(I.length)?S(0):O(I);if(I.type==="Buffer"&&Array.isArray(I.data))return O(I.data)}function R(I){if(I>=te)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+te.toString(16)+" bytes");return I|0}function se(I){return+I!=I&&(I=0),g.alloc(+I)}g.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==g.prototype},g.compare=function(m,u){if(lr(m,Uint8Array)&&(m=g.from(m,m.offset,m.byteLength)),lr(u,Uint8Array)&&(u=g.from(u,u.offset,u.byteLength)),!g.isBuffer(m)||!g.isBuffer(u))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===u)return 0;for(var C=m.length,q=u.length,Se=0,H=Math.min(C,q);Se<H;++Se)if(m[Se]!==u[Se]){C=m[Se],q=u[Se];break}return C<q?-1:q<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,u){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(u===void 0)for(u=0,C=0;C<m.length;++C)u+=m[C].length;var q=g.allocUnsafe(u),Se=0;for(C=0;C<m.length;++C){var H=m[C];if(lr(H,Uint8Array))Se+H.length>q.length?g.from(H).copy(q,Se):Uint8Array.prototype.set.call(q,H,Se);else if(g.isBuffer(H))H.copy(q,Se);else throw new TypeError('"list" argument must be an Array of Buffers');Se+=H.length}return q};function ne(I,m){if(g.isBuffer(I))return I.length;if(ArrayBuffer.isView(I)||lr(I,ArrayBuffer))return I.byteLength;if(typeof I!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof I);var u=I.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&u===0)return 0;for(var q=!1;;)switch(m){case"ascii":case"latin1":case"binary":return u;case"utf8":case"utf-8":return Lt(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return u*2;case"hex":return u>>>1;case"base64":return er(I).length;default:if(q)return C?-1:Lt(I).length;m=(""+m).toLowerCase(),q=!0}}g.byteLength=ne;function J(I,m,u){var C=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((u===void 0||u>this.length)&&(u=this.length),u<=0)||(u>>>=0,m>>>=0,u<=m))return"";for(I||(I="utf8");;)switch(I){case"hex":return be(this,m,u);case"utf8":case"utf-8":return D(this,m,u);case"ascii":return Ce(this,m,u);case"latin1":case"binary":return Te(this,m,u);case"base64":return fe(this,m,u);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ke(this,m,u);default:if(C)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),C=!0}}g.prototype._isBuffer=!0;function W(I,m,u){var C=I[m];I[m]=I[u],I[u]=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 u=0;u<m;u+=2)W(this,u,u+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 u=0;u<m;u+=4)W(this,u,u+3),W(this,u+1,u+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 u=0;u<m;u+=8)W(this,u,u+7),W(this,u+1,u+6),W(this,u+2,u+5),W(this,u+3,u+4);return this},g.prototype.toString=function(){var m=this.length;return m===0?"":arguments.length===0?D(this,0,m):J.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="",u=Tt.h2;return m=this.toString("hex",0,u).replace(/(.{2})/g,"$1 ").trim(),this.length>u&&(m+=" ... "),"<Buffer "+m+">"},Ne&&(g.prototype[Ne]=g.prototype.inspect),g.prototype.compare=function(m,u,C,q,Se){if(lr(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(u===void 0&&(u=0),C===void 0&&(C=m?m.length:0),q===void 0&&(q=0),Se===void 0&&(Se=this.length),u<0||C>m.length||q<0||Se>this.length)throw new RangeError("out of range index");if(q>=Se&&u>=C)return 0;if(q>=Se)return-1;if(u>=C)return 1;if(u>>>=0,C>>>=0,q>>>=0,Se>>>=0,this===m)return 0;for(var H=Se-q,ie=C-u,Qe=Math.min(H,ie),we=this.slice(q,Se),ye=m.slice(u,C),je=0;je<Qe;++je)if(we[je]!==ye[je]){H=we[je],ie=ye[je];break}return H<ie?-1:ie<H?1:0};function K(I,m,u,C,q){if(I.length===0)return-1;if(typeof u=="string"?(C=u,u=0):u>2147483647?u=2147483647:u<-2147483648&&(u=-2147483648),u=+u,G(u)&&(u=q?0:I.length-1),u<0&&(u=I.length+u),u>=I.length){if(q)return-1;u=I.length-1}else if(u<0)if(q)u=0;else return-1;if(typeof m=="string"&&(m=g.from(m,C)),g.isBuffer(m))return m.length===0?-1:le(I,m,u,C,q);if(typeof m=="number")return m=m&255,typeof Uint8Array.prototype.indexOf=="function"?q?Uint8Array.prototype.indexOf.call(I,m,u):Uint8Array.prototype.lastIndexOf.call(I,m,u):le(I,[m],u,C,q);throw new TypeError("val must be string, number or Buffer")}function le(I,m,u,C,q){var Se=1,H=I.length,ie=m.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(I.length<2||m.length<2)return-1;Se=2,H/=2,ie/=2,u/=2}function Qe(de,st){return Se===1?de[st]:de.readUInt16BE(st*Se)}var we;if(q){var ye=-1;for(we=u;we<H;we++)if(Qe(I,we)===Qe(m,ye===-1?0:we-ye)){if(ye===-1&&(ye=we),we-ye+1===ie)return ye*Se}else ye!==-1&&(we-=we-ye),ye=-1}else for(u+ie>H&&(u=H-ie),we=u;we>=0;we--){for(var je=!0,xt=0;xt<ie;xt++)if(Qe(I,we+xt)!==Qe(m,xt)){je=!1;break}if(je)return we}return-1}g.prototype.includes=function(m,u,C){return this.indexOf(m,u,C)!==-1},g.prototype.indexOf=function(m,u,C){return K(this,m,u,C,!0)},g.prototype.lastIndexOf=function(m,u,C){return K(this,m,u,C,!1)};function me(I,m,u,C){u=Number(u)||0;var q=I.length-u;C?(C=Number(C),C>q&&(C=q)):C=q;var Se=m.length;C>Se/2&&(C=Se/2);for(var H=0;H<C;++H){var ie=parseInt(m.substr(H*2,2),16);if(G(ie))return H;I[u+H]=ie}return H}function Oe(I,m,u,C){return yr(Lt(m,I.length-u),I,u,C)}function Be(I,m,u,C){return yr(Ot(m),I,u,C)}function Ue(I,m,u,C){return yr(er(m),I,u,C)}function ee(I,m,u,C){return yr(sr(m,I.length-u),I,u,C)}g.prototype.write=function(m,u,C,q){if(u===void 0)q="utf8",C=this.length,u=0;else if(C===void 0&&typeof u=="string")q=u,C=this.length,u=0;else if(isFinite(u))u=u>>>0,isFinite(C)?(C=C>>>0,q===void 0&&(q="utf8")):(q=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Se=this.length-u;if((C===void 0||C>Se)&&(C=Se),m.length>0&&(C<0||u<0)||u>this.length)throw new RangeError("Attempt to write outside buffer bounds");q||(q="utf8");for(var H=!1;;)switch(q){case"hex":return me(this,m,u,C);case"utf8":case"utf-8":return Oe(this,m,u,C);case"ascii":case"latin1":case"binary":return Be(this,m,u,C);case"base64":return Ue(this,m,u,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ee(this,m,u,C);default:if(H)throw new TypeError("Unknown encoding: "+q);q=(""+q).toLowerCase(),H=!0}},g.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function fe(I,m,u){return m===0&&u===I.length?Ae.fromByteArray(I):Ae.fromByteArray(I.slice(m,u))}function D(I,m,u){u=Math.min(I.length,u);for(var C=[],q=m;q<u;){var Se=I[q],H=null,ie=Se>239?4:Se>223?3:Se>191?2:1;if(q+ie<=u){var Qe,we,ye,je;switch(ie){case 1:Se<128&&(H=Se);break;case 2:Qe=I[q+1],(Qe&192)===128&&(je=(Se&31)<<6|Qe&63,je>127&&(H=je));break;case 3:Qe=I[q+1],we=I[q+2],(Qe&192)===128&&(we&192)===128&&(je=(Se&15)<<12|(Qe&63)<<6|we&63,je>2047&&(je<55296||je>57343)&&(H=je));break;case 4:Qe=I[q+1],we=I[q+2],ye=I[q+3],(Qe&192)===128&&(we&192)===128&&(ye&192)===128&&(je=(Se&15)<<18|(Qe&63)<<12|(we&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),q+=ie}return Le(C)}var Ye=4096;function Le(I){var m=I.length;if(m<=Ye)return String.fromCharCode.apply(String,I);for(var u="",C=0;C<m;)u+=String.fromCharCode.apply(String,I.slice(C,C+=Ye));return u}function Ce(I,m,u){var C="";u=Math.min(I.length,u);for(var q=m;q<u;++q)C+=String.fromCharCode(I[q]&127);return C}function Te(I,m,u){var C="";u=Math.min(I.length,u);for(var q=m;q<u;++q)C+=String.fromCharCode(I[q]);return C}function be(I,m,u){var C=I.length;(!m||m<0)&&(m=0),(!u||u<0||u>C)&&(u=C);for(var q="",Se=m;Se<u;++Se)q+=dt[I[Se]];return q}function ke(I,m,u){for(var C=I.slice(m,u),q="",Se=0;Se<C.length-1;Se+=2)q+=String.fromCharCode(C[Se]+C[Se+1]*256);return q}g.prototype.slice=function(m,u){var C=this.length;m=~~m,u=u===void 0?C:~~u,m<0?(m+=C,m<0&&(m=0)):m>C&&(m=C),u<0?(u+=C,u<0&&(u=0)):u>C&&(u=C),u<m&&(u=m);var q=this.subarray(m,u);return Object.setPrototypeOf(q,g.prototype),q};function he(I,m,u){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+m>u)throw new RangeError("Trying to access beyond buffer length")}g.prototype.readUintLE=g.prototype.readUIntLE=function(m,u,C){m=m>>>0,u=u>>>0,C||he(m,u,this.length);for(var q=this[m],Se=1,H=0;++H<u&&(Se*=256);)q+=this[m+H]*Se;return q},g.prototype.readUintBE=g.prototype.readUIntBE=function(m,u,C){m=m>>>0,u=u>>>0,C||he(m,u,this.length);for(var q=this[m+--u],Se=1;u>0&&(Se*=256);)q+=this[m+--u]*Se;return q},g.prototype.readUint8=g.prototype.readUInt8=function(m,u){return m=m>>>0,u||he(m,1,this.length),this[m]},g.prototype.readUint16LE=g.prototype.readUInt16LE=function(m,u){return m=m>>>0,u||he(m,2,this.length),this[m]|this[m+1]<<8},g.prototype.readUint16BE=g.prototype.readUInt16BE=function(m,u){return m=m>>>0,u||he(m,2,this.length),this[m]<<8|this[m+1]},g.prototype.readUint32LE=g.prototype.readUInt32LE=function(m,u){return m=m>>>0,u||he(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,u){return m=m>>>0,u||he(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},g.prototype.readIntLE=function(m,u,C){m=m>>>0,u=u>>>0,C||he(m,u,this.length);for(var q=this[m],Se=1,H=0;++H<u&&(Se*=256);)q+=this[m+H]*Se;return Se*=128,q>=Se&&(q-=Math.pow(2,8*u)),q},g.prototype.readIntBE=function(m,u,C){m=m>>>0,u=u>>>0,C||he(m,u,this.length);for(var q=u,Se=1,H=this[m+--q];q>0&&(Se*=256);)H+=this[m+--q]*Se;return Se*=128,H>=Se&&(H-=Math.pow(2,8*u)),H},g.prototype.readInt8=function(m,u){return m=m>>>0,u||he(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},g.prototype.readInt16LE=function(m,u){m=m>>>0,u||he(m,2,this.length);var C=this[m]|this[m+1]<<8;return C&32768?C|4294901760:C},g.prototype.readInt16BE=function(m,u){m=m>>>0,u||he(m,2,this.length);var C=this[m+1]|this[m]<<8;return C&32768?C|4294901760:C},g.prototype.readInt32LE=function(m,u){return m=m>>>0,u||he(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},g.prototype.readInt32BE=function(m,u){return m=m>>>0,u||he(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},g.prototype.readFloatLE=function(m,u){return m=m>>>0,u||he(m,4,this.length),P.read(this,m,!0,23,4)},g.prototype.readFloatBE=function(m,u){return m=m>>>0,u||he(m,4,this.length),P.read(this,m,!1,23,4)},g.prototype.readDoubleLE=function(m,u){return m=m>>>0,u||he(m,8,this.length),P.read(this,m,!0,52,8)},g.prototype.readDoubleBE=function(m,u){return m=m>>>0,u||he(m,8,this.length),P.read(this,m,!1,52,8)};function Ee(I,m,u,C,q,Se){if(!g.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>q||m<Se)throw new RangeError('"value" argument is out of bounds');if(u+C>I.length)throw new RangeError("Index out of range")}g.prototype.writeUintLE=g.prototype.writeUIntLE=function(m,u,C,q){if(m=+m,u=u>>>0,C=C>>>0,!q){var Se=Math.pow(2,8*C)-1;Ee(this,m,u,C,Se,0)}var H=1,ie=0;for(this[u]=m&255;++ie<C&&(H*=256);)this[u+ie]=m/H&255;return u+C},g.prototype.writeUintBE=g.prototype.writeUIntBE=function(m,u,C,q){if(m=+m,u=u>>>0,C=C>>>0,!q){var Se=Math.pow(2,8*C)-1;Ee(this,m,u,C,Se,0)}var H=C-1,ie=1;for(this[u+H]=m&255;--H>=0&&(ie*=256);)this[u+H]=m/ie&255;return u+C},g.prototype.writeUint8=g.prototype.writeUInt8=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,1,255,0),this[u]=m&255,u+1},g.prototype.writeUint16LE=g.prototype.writeUInt16LE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,2,65535,0),this[u]=m&255,this[u+1]=m>>>8,u+2},g.prototype.writeUint16BE=g.prototype.writeUInt16BE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,2,65535,0),this[u]=m>>>8,this[u+1]=m&255,u+2},g.prototype.writeUint32LE=g.prototype.writeUInt32LE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,4,4294967295,0),this[u+3]=m>>>24,this[u+2]=m>>>16,this[u+1]=m>>>8,this[u]=m&255,u+4},g.prototype.writeUint32BE=g.prototype.writeUInt32BE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,4,4294967295,0),this[u]=m>>>24,this[u+1]=m>>>16,this[u+2]=m>>>8,this[u+3]=m&255,u+4},g.prototype.writeIntLE=function(m,u,C,q){if(m=+m,u=u>>>0,!q){var Se=Math.pow(2,8*C-1);Ee(this,m,u,C,Se-1,-Se)}var H=0,ie=1,Qe=0;for(this[u]=m&255;++H<C&&(ie*=256);)m<0&&Qe===0&&this[u+H-1]!==0&&(Qe=1),this[u+H]=(m/ie>>0)-Qe&255;return u+C},g.prototype.writeIntBE=function(m,u,C,q){if(m=+m,u=u>>>0,!q){var Se=Math.pow(2,8*C-1);Ee(this,m,u,C,Se-1,-Se)}var H=C-1,ie=1,Qe=0;for(this[u+H]=m&255;--H>=0&&(ie*=256);)m<0&&Qe===0&&this[u+H+1]!==0&&(Qe=1),this[u+H]=(m/ie>>0)-Qe&255;return u+C},g.prototype.writeInt8=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,1,127,-128),m<0&&(m=255+m+1),this[u]=m&255,u+1},g.prototype.writeInt16LE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,2,32767,-32768),this[u]=m&255,this[u+1]=m>>>8,u+2},g.prototype.writeInt16BE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,2,32767,-32768),this[u]=m>>>8,this[u+1]=m&255,u+2},g.prototype.writeInt32LE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,4,2147483647,-2147483648),this[u]=m&255,this[u+1]=m>>>8,this[u+2]=m>>>16,this[u+3]=m>>>24,u+4},g.prototype.writeInt32BE=function(m,u,C){return m=+m,u=u>>>0,C||Ee(this,m,u,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[u]=m>>>24,this[u+1]=m>>>16,this[u+2]=m>>>8,this[u+3]=m&255,u+4};function Xe(I,m,u,C,q,Se){if(u+C>I.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("Index out of range")}function et(I,m,u,C,q){return m=+m,u=u>>>0,q||Xe(I,m,u,4,34028234663852886e22,-34028234663852886e22),P.write(I,m,u,C,23,4),u+4}g.prototype.writeFloatLE=function(m,u,C){return et(this,m,u,!0,C)},g.prototype.writeFloatBE=function(m,u,C){return et(this,m,u,!1,C)};function ze(I,m,u,C,q){return m=+m,u=u>>>0,q||Xe(I,m,u,8,17976931348623157e292,-17976931348623157e292),P.write(I,m,u,C,52,8),u+8}g.prototype.writeDoubleLE=function(m,u,C){return ze(this,m,u,!0,C)},g.prototype.writeDoubleBE=function(m,u,C){return ze(this,m,u,!1,C)},g.prototype.copy=function(m,u,C,q){if(!g.isBuffer(m))throw new TypeError("argument should be a Buffer");if(C||(C=0),!q&&q!==0&&(q=this.length),u>=m.length&&(u=m.length),u||(u=0),q>0&&q<C&&(q=C),q===C||m.length===0||this.length===0)return 0;if(u<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(q<0)throw new RangeError("sourceEnd out of bounds");q>this.length&&(q=this.length),m.length-u<q-C&&(q=m.length-u+C);var Se=q-C;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(u,C,q):Uint8Array.prototype.set.call(m,this.subarray(C,q),u),Se},g.prototype.fill=function(m,u,C,q){if(typeof m=="string"){if(typeof u=="string"?(q=u,u=0,C=this.length):typeof C=="string"&&(q=C,C=this.length),q!==void 0&&typeof q!="string")throw new TypeError("encoding must be a string");if(typeof q=="string"&&!g.isEncoding(q))throw new TypeError("Unknown encoding: "+q);if(m.length===1){var Se=m.charCodeAt(0);(q==="utf8"&&Se<128||q==="latin1")&&(m=Se)}}else typeof m=="number"?m=m&255:typeof m=="boolean"&&(m=Number(m));if(u<0||this.length<u||this.length<C)throw new RangeError("Out of range index");if(C<=u)return this;u=u>>>0,C=C===void 0?this.length:C>>>0,m||(m=0);var H;if(typeof m=="number")for(H=u;H<C;++H)this[H]=m;else{var ie=g.isBuffer(m)?m:g.from(m,q),Qe=ie.length;if(Qe===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(H=0;H<C-u;++H)this[H+u]=ie[H%Qe]}return this};var qe=/[^+/0-9A-Za-z-_]/g;function Et(I){if(I=I.split("=")[0],I=I.trim().replace(qe,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function Lt(I,m){m=m||1/0;for(var u,C=I.length,q=null,Se=[],H=0;H<C;++H){if(u=I.charCodeAt(H),u>55295&&u<57344){if(!q){if(u>56319){(m-=3)>-1&&Se.push(239,191,189);continue}else if(H+1===C){(m-=3)>-1&&Se.push(239,191,189);continue}q=u;continue}if(u<56320){(m-=3)>-1&&Se.push(239,191,189),q=u;continue}u=(q-55296<<10|u-56320)+65536}else q&&(m-=3)>-1&&Se.push(239,191,189);if(q=null,u<128){if((m-=1)<0)break;Se.push(u)}else if(u<2048){if((m-=2)<0)break;Se.push(u>>6|192,u&63|128)}else if(u<65536){if((m-=3)<0)break;Se.push(u>>12|224,u>>6&63|128,u&63|128)}else if(u<1114112){if((m-=4)<0)break;Se.push(u>>18|240,u>>12&63|128,u>>6&63|128,u&63|128)}else throw new Error("Invalid code point")}return Se}function Ot(I){for(var m=[],u=0;u<I.length;++u)m.push(I.charCodeAt(u)&255);return m}function sr(I,m){for(var u,C,q,Se=[],H=0;H<I.length&&!((m-=2)<0);++H)u=I.charCodeAt(H),C=u>>8,q=u%256,Se.push(q),Se.push(C);return Se}function er(I){return Ae.toByteArray(Et(I))}function yr(I,m,u,C){for(var q=0;q<C&&!(q+u>=m.length||q>=I.length);++q)m[q+u]=I[q];return q}function lr(I,m){return I instanceof m||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===m.name}function G(I){return I!==I}var dt=function(){for(var I="0123456789abcdef",m=new Array(256),u=0;u<16;++u)for(var C=u*16,q=0;q<16;++q)m[C+q]=I[u]+I[q];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 re in y)Object.prototype.hasOwnProperty.call(y,re)&&(w[re]=y[re])},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 pe=function(){return pe=Object.assign||function(f){for(var w,y=1,re=arguments.length;y<re;y++){w=arguments[y];for(var _e in w)Object.prototype.hasOwnProperty.call(w,_e)&&(f[_e]=w[_e])}return f},pe.apply(this,arguments)};function Ae(b,f,w,y){function re(_e){return _e instanceof w?_e:new w(function(Ve){Ve(_e)})}return new(w||(w=Promise))(function(_e,Ve){function ht(Ar){try{qt(y.next(Ar))}catch(pr){Ve(pr)}}function pt(Ar){try{qt(y.throw(Ar))}catch(pr){Ve(pr)}}function qt(Ar){Ar.done?_e(Ar.value):re(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,re,_e,Ve;return Ve={next:ht(0),throw:ht(1),return:ht(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;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,re&&(_e=qt[0]&2?re.return:qt[0]?re.throw||((_e=re.return)&&_e.call(re),0):re.next)&&!(_e=_e.call(re,qt[1])).done)return _e;switch(re=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++,re=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],re=0}finally{y=_e=0}if(qt[0]&5)throw qt[1];return{value:qt[0]?qt[1]:void 0,done:!0}}}function Ne(b,f,w){if(w||arguments.length===2)for(var y=0,re=f.length,_e;y<re;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,re){this.left=f,this.top=w,this.width=y,this.height=re}return b.prototype.add=function(f,w,y,re){return new b(this.left+f,this.top+w,this.width+y,this.height+re)},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(re){return re.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)),re=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,re)},g=function(b){for(var f=[],w=0,y=b.length;w<y;){var re=b.charCodeAt(w++);if(re>=55296&&re<=56319&&w<y){var _e=b.charCodeAt(w++);(_e&64512)===56320?f.push(((re&1023)<<10)+(_e&1023)+65536):(f.push(re),w--)}else f.push(re)}return f},F=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=[],re=-1,_e="";++re<w;){var Ve=b[re];Ve<=65535?y.push(Ve):(Ve-=65536,y.push((Ve>>10)+55296,Ve%1024+56320)),(re+1===w||y.length>16384)&&(_e+=String.fromCharCode.apply(String,y),y.length=0)}return _e},v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),_=0;_<v.length;_++)$[v.charCodeAt(_)]=_;for(var M="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",O=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),T=0;T<M.length;T++)O[M.charCodeAt(T)]=T;for(var L=function(b){var f=b.length*.75,w=b.length,y,re=0,_e,Ve,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=O[b.charCodeAt(y)],Ve=O[b.charCodeAt(y+1)],ht=O[b.charCodeAt(y+2)],pt=O[b.charCodeAt(y+3)],Ar[re++]=_e<<2|Ve>>4,Ar[re++]=(Ve&15)<<4|ht>>2,Ar[re++]=(ht&3)<<6|pt&63;return qt},Y=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},se=5,ne=11,J=2,W=ne-se,K=65536>>se,le=1<<se,me=le-1,Oe=1024>>se,Be=K+Oe,Ue=Be,ee=32,fe=Ue+ee,D=65536>>ne,Ye=1<<W,Le=Ye-1,Ce=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))},be=function(b,f){var w=L(b),y=Array.isArray(w)?R(w):new Uint32Array(w),re=Array.isArray(w)?Y(w):new Uint16Array(w),_e=24,Ve=Ce(re,_e/2,y[4]/2),ht=y[5]===2?Ce(re,(_e+y[4])/2):Te(y,Math.ceil((_e+y[4])/4));return new ke(y[0],y[1],y[2],y[3],Ve,ht)},ke=function(){function b(f,w,y,re,_e,Ve){this.initialValue=f,this.errorValue=w,this.highStart=y,this.highValueIndex=re,this.index=_e,this.data=Ve}return b.prototype.get=function(f){var w;if(f>=0){if(f<55296||f>56319&&f<=65535)return w=this.index[f>>se],w=(w<<J)+(f&me),this.data[w];if(f<=65535)return w=this.index[K+(f-55296>>se)],w=(w<<J)+(f&me),this.data[w];if(f<this.highStart)return w=fe-D+(f>>ne),w=this.index[w],w+=f>>se&Le,w=this.index[w],w=(w<<J)+(f&me),this.data[w];if(f<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b}(),he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ee=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Xe=0;Xe<he.length;Xe++)Ee[he.charCodeAt(Xe)]=Xe;var et="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",ze=50,qe=1,Et=2,Lt=3,Ot=4,sr=5,er=7,yr=8,lr=9,G=10,dt=11,I=12,m=13,u=14,C=15,q=16,Se=17,H=18,ie=19,Qe=20,we=21,ye=22,je=23,xt=24,de=25,st=26,tt=27,Ie=28,De=29,lt=30,Ut=31,kt=32,rr=33,Fr=34,kr=35,Dr=36,Nr=37,xr=38,ur=39,Kr=40,pn=41,kn=42,mn=43,Dn=[9001,65288],Ki="!",hr="\xD7",Gn="\xF7",Hi=be(et),di=[lt,Dr],$i=[qe,Et,Lt,sr],Ri=[G,yr],Zi=[tt,st],za=$i.concat(Ri),Fi=[xr,ur,Kr,Fr,kr],qn=[C,m],ai=function(b,f){f===void 0&&(f="strict");var w=[],y=[],re=[];return b.forEach(function(_e,Ve){var ht=Hi.get(_e);if(ht>ze?(re.push(!0),ht-=ze):re.push(!1),["normal","auto","loose"].indexOf(f)!==-1&&[8208,8211,12316,12448].indexOf(_e)!==-1)return y.push(Ve),w.push(q);if(ht===Ot||ht===dt){if(Ve===0)return y.push(Ve),w.push(lt);var pt=w[Ve-1];return za.indexOf(pt)===-1?(y.push(y[Ve-1]),w.push(pt)):(y.push(Ve),w.push(lt))}if(y.push(Ve),ht===Ut)return w.push(f==="strict"?we:Nr);if(ht===kn||ht===De)return w.push(lt);if(ht===mn)return _e>=131072&&_e<=196605||_e>=196608&&_e<=262141?w.push(Nr):w.push(lt);w.push(ht)}),[y,w,re]},yi=function(b,f,w,y){var re=y[w];if(Array.isArray(b)?b.indexOf(re)!==-1:b===re)for(var _e=w;_e<=y.length;){_e++;var Ve=y[_e];if(Ve===f)return!0;if(Ve!==G)break}if(re===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 Ve=y[pt];if(Ve===f)return!0;if(Ve!==G)break}if(ht!==G)break}return!1},ge=function(b,f){for(var w=b;w>=0;){var y=f[w];if(y===G)w--;else return y}return 0},Me=function(b,f,w,y,re){if(w[y]===0)return hr;var _e=y-1;if(Array.isArray(re)&&re[_e]===!0)return hr;var Ve=_e-1,ht=_e+1,pt=f[_e],qt=Ve>=0?f[Ve]:0,Ar=f[ht];if(pt===Et&&Ar===Lt)return hr;if($i.indexOf(pt)!==-1)return Ki;if($i.indexOf(Ar)!==-1||Ri.indexOf(Ar)!==-1)return hr;if(ge(_e,f)===yr)return Gn;if(Hi.get(b[_e])===dt||(pt===kt||pt===rr)&&Hi.get(b[ht])===dt||pt===er||Ar===er||pt===lr||[G,m,C].indexOf(pt)===-1&&Ar===lr||[Se,H,ie,xt,Ie].indexOf(Ar)!==-1||ge(_e,f)===ye||yi(je,ye,_e,f)||yi([Se,H],we,_e,f)||yi(I,I,_e,f))return hr;if(pt===G)return Gn;if(pt===je||Ar===je)return hr;if(Ar===q||pt===q)return Gn;if([m,C,we].indexOf(Ar)!==-1||pt===u||qt===Dr&&qn.indexOf(pt)!==-1||pt===Ie&&Ar===Dr||Ar===Qe||di.indexOf(Ar)!==-1&&pt===de||di.indexOf(pt)!==-1&&Ar===de||pt===tt&&[Nr,kt,rr].indexOf(Ar)!==-1||[Nr,kt,rr].indexOf(pt)!==-1&&Ar===st||di.indexOf(pt)!==-1&&Zi.indexOf(Ar)!==-1||Zi.indexOf(pt)!==-1&&di.indexOf(Ar)!==-1||[tt,st].indexOf(pt)!==-1&&(Ar===de||[ye,C].indexOf(Ar)!==-1&&f[ht+1]===de)||[ye,C].indexOf(pt)!==-1&&Ar===de||pt===de&&[de,Ie,xt].indexOf(Ar)!==-1)return hr;if([de,Ie,xt,Se,H].indexOf(Ar)!==-1)for(var pr=_e;pr>=0;){var qr=f[pr];if(qr===de)return hr;if([Ie,xt].indexOf(qr)!==-1)pr--;else break}if([tt,st].indexOf(Ar)!==-1)for(var pr=[Se,H].indexOf(pt)!==-1?Ve:_e;pr>=0;){var qr=f[pr];if(qr===de)return hr;if([Ie,xt].indexOf(qr)!==-1)pr--;else break}if(xr===pt&&[xr,ur,Fr,kr].indexOf(Ar)!==-1||[ur,Fr].indexOf(pt)!==-1&&[ur,Kr].indexOf(Ar)!==-1||[Kr,kr].indexOf(pt)!==-1&&Ar===Kr||Fi.indexOf(pt)!==-1&&[Qe,st].indexOf(Ar)!==-1||Fi.indexOf(Ar)!==-1&&pt===tt||di.indexOf(pt)!==-1&&di.indexOf(Ar)!==-1||pt===xt&&di.indexOf(Ar)!==-1||di.concat(de).indexOf(pt)!==-1&&Ar===ye&&Dn.indexOf(b[ht])===-1||di.concat(de).indexOf(Ar)!==-1&&pt===H)return hr;if(pt===pn&&Ar===pn){for(var Ui=w[_e],Un=1;Ui>0&&(Ui--,f[Ui]===pn);)Un++;if(Un%2!==0)return hr}return pt===kt&&Ar===rr?hr:Gn},Fe=function(b,f){f||(f={lineBreak:"normal",wordBreak:"normal"});var w=ai(b,f.lineBreak),y=w[0],re=w[1],_e=w[2];(f.wordBreak==="break-all"||f.wordBreak==="break-word")&&(re=re.map(function(ht){return[de,lt,kn].indexOf(ht)!==-1?Nr:ht}));var Ve=f.wordBreak==="keep-all"?_e.map(function(ht,pt){return ht&&b[pt]>=19968&&b[pt]<=40959}):void 0;return[y,re,Ve]},Ge=function(){function b(f,w,y,re){this.codePoints=f,this.required=w===Ki,this.start=y,this.end=re}return b.prototype.slice=function(){return F.apply(void 0,this.codePoints.slice(this.start,this.end))},b}(),Pt=function(b,f){var w=g(b),y=Fe(w,f),re=y[0],_e=y[1],Ve=y[2],ht=w.length,pt=0,qt=0;return{next:function(){if(qt>=ht)return{done:!0,value:null};for(var Ar=hr;qt<ht&&(Ar=Me(w,_e,re,++qt,Ve))===hr;);if(Ar!==hr||qt===ht){var pr=new Ge(w,Ar,pt,qt);return pt=qt,{value:pr,done:!1}}return{done:!0,value:null}}}},Dt=1,Er=2,nr=4,Or=8,Hr=10,an=47,jr=92,Rr=9,en=32,wn=34,on=61,Nn=35,Qn=36,hi=37,On=39,Xn=40,Vt=41,Xt=95,Yt=45,tr=33,jt=60,or=62,cr=64,Pr=91,yn=93,Cn=61,Ai=123,ni=63,Ei=125,ei=124,jn=126,xi=128,wi=65533,Ci=42,ui=43,Bi=44,Xi=58,ri=59,Pi=46,Ha=0,ci=8,fn=11,ln=14,Jn=31,Kn=127,pi=-1,qi=48,Mi=97,Ua=101,Aa=102,Bo=117,Vn=122,In=65,Di=69,Ji=70,Fa=85,Is=90,$a=function(b){return b>=qi&&b<=57},fa=function(b){return b>=55296&&b<=57343},Io=function(b){return $a(b)||b>=In&&b<=Ji||b>=Mi&&b<=Aa},So=function(b){return b>=Mi&&b<=Vn},Po=function(b){return b>=In&&b<=Is},Os=function(b){return So(b)||Po(b)},po=function(b){return b>=xi},bs=function(b){return b===Hr||b===Rr||b===en},Ps=function(b){return Os(b)||po(b)||b===Xt},$s=function(b){return Ps(b)||$a(b)||b===Yt},To=function(b){return b>=Ha&&b<=ci||b===fn||b>=ln&&b<=Jn||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===ui||b===Yt?$a(f)?!0:f===Pi&&$a(w):$a(b===Pi?f:b)},vl=function(b){var f=0,w=1;(b[f]===ui||b[f]===Yt)&&(b[f]===Yt&&(w=-1),f++);for(var y=[];$a(b[f]);)y.push(b[f++]);var re=y.length?parseInt(F.apply(void 0,y),10):0;b[f]===Pi&&f++;for(var _e=[];$a(b[f]);)_e.push(b[f++]);var Ve=_e.length,ht=Ve?parseInt(F.apply(void 0,_e),10):0;(b[f]===Di||b[f]===Ua)&&f++;var pt=1;(b[f]===ui||b[f]===Yt)&&(b[f]===Yt&&(pt=-1),f++);for(var qt=[];$a(b[f]);)qt.push(b[f++]);var Ar=qt.length?parseInt(F.apply(void 0,qt),10):0;return w*(re+ht*Math.pow(10,-Ve))*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},ii={type:12},la={type:14},ta={type:23},oa={type:1},Da={type:25},so={type:24},Ws={type:26},ws={type:27},xs={type:28},ms={type:29},eo={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 Nn:var w=this.peekCodePoint(0),y=this.peekCodePoint(1),re=this.peekCodePoint(2);if($s(w)||Uo(y,re)){var _e=ys(w,y,re)?Er:Dt,Ve=this.consumeName();return{type:5,value:Ve,flags:_e}}break;case Qn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Zs;break;case On:return this.consumeStringToken(On);case Xn:return ic;case Vt:return ac;case Ci:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),la;break;case ui:if(el(f,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(f),this.consumeNumericToken();break;case Bi: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(),so;break;case Pi:if(el(f,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(f),this.consumeNumericToken();break;case an:if(this.peekCodePoint(0)===Ci)for(this.consumeCodePoint();;){var Ar=this.consumeCodePoint();if(Ar===Ci&&(Ar=this.consumeCodePoint(),Ar===an))return this.consumeToken();if(Ar===pi)return this.consumeToken()}break;case Xi:return Ws;case ri:return ws;case jt:if(this.peekCodePoint(0)===tr&&this.peekCodePoint(1)===Yt&&this.peekCodePoint(2)===Yt)return this.consumeCodePoint(),this.consumeCodePoint(),Da;break;case cr:var pr=this.peekCodePoint(0),qr=this.peekCodePoint(1),Ui=this.peekCodePoint(2);if(ys(pr,qr,Ui)){var Ve=this.consumeName();return{type:7,value:Ve}}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 Cn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Dc;break;case Ai:return as;case Ei:return ii;case Bo:case Fa:var Un=this.peekCodePoint(0),gi=this.peekCodePoint(1);return Un===ui&&(Io(gi)||gi===ni)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(f),this.consumeIdentLikeToken();case ei:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Hl;if(this.peekCodePoint(0)===ei)return this.consumeCodePoint(),Kl;break;case jn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Vs;break;case pi:return Ra}return bs(f)?(this.consumeWhiteSpace(),eo):$a(f)?(this.reconsumeCodePoint(f),this.consumeNumericToken()):Ps(f)?(this.reconsumeCodePoint(f),this.consumeIdentLikeToken()):{type:6,value:F(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===ni&&f.length<6;)f.push(w),w=this.consumeCodePoint(),y=!0;if(y){var re=parseInt(F.apply(void 0,f.map(function(pt){return pt===ni?qi:pt})),16),_e=parseInt(F.apply(void 0,f.map(function(pt){return pt===ni?Ji:pt})),16);return{type:30,start:re,end:_e}}var Ve=parseInt(F.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(F.apply(void 0,ht),16);return{type:30,start:Ve,end:_e}}else return{type:30,start:Ve,end:Ve}},b.prototype.consumeIdentLikeToken=function(){var f=this.consumeName();return f.toLowerCase()==="url"&&this.peekCodePoint(0)===Xn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Xn?(this.consumeCodePoint(),{type:19,value:f}):{type:20,value:f}},b.prototype.consumeUrlToken=function(){var f=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===pi)return{type:22,value:""};var w=this.peekCodePoint(0);if(w===On||w===wn){var y=this.consumeStringToken(this.consumeCodePoint());return y.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===pi||this.peekCodePoint(0)===Vt)?(this.consumeCodePoint(),{type:22,value:y.value}):(this.consumeBadUrlRemnants(),ta)}for(;;){var re=this.consumeCodePoint();if(re===pi||re===Vt)return{type:22,value:F.apply(void 0,f)};if(bs(re))return this.consumeWhiteSpace(),this.peekCodePoint(0)===pi||this.peekCodePoint(0)===Vt?(this.consumeCodePoint(),{type:22,value:F.apply(void 0,f)}):(this.consumeBadUrlRemnants(),ta);if(re===wn||re===On||re===Xn||To(re))return this.consumeBadUrlRemnants(),ta;if(re===jr)if(Uo(re,this.peekCodePoint(0)))f.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ta;else f.push(re)}},b.prototype.consumeWhiteSpace=function(){for(;bs(this.peekCodePoint(0));)this.consumeCodePoint()},b.prototype.consumeBadUrlRemnants=function(){for(;;){var f=this.consumeCodePoint();if(f===Vt||f===pi)return;Uo(f,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},b.prototype.consumeStringSlice=function(f){for(var w=5e4,y="";f>0;){var re=Math.min(w,f);y+=F.apply(void 0,this._value.splice(0,re)),f-=re}return this._value.shift(),y},b.prototype.consumeStringToken=function(f){var w="",y=0;do{var re=this._value[y];if(re===pi||re===void 0||re===f)return w+=this.consumeStringSlice(y),{type:0,value:w};if(re===Hr)return this._value.splice(0,y),oa;if(re===jr){var _e=this._value[y+1];_e!==pi&&_e!==void 0&&(_e===Hr?(w+=this.consumeStringSlice(y),y=-1,this._value.shift()):Uo(re,_e)&&(w+=this.consumeStringSlice(y),w+=F(this.consumeEscapedCodePoint()),y=-1))}y++}while(!0)},b.prototype.consumeNumber=function(){var f=[],w=nr,y=this.peekCodePoint(0);for((y===ui||y===Yt)&&f.push(this.consumeCodePoint());$a(this.peekCodePoint(0));)f.push(this.consumeCodePoint());y=this.peekCodePoint(0);var re=this.peekCodePoint(1);if(y===Pi&&$a(re))for(f.push(this.consumeCodePoint(),this.consumeCodePoint()),w=Or;$a(this.peekCodePoint(0));)f.push(this.consumeCodePoint());y=this.peekCodePoint(0),re=this.peekCodePoint(1);var _e=this.peekCodePoint(2);if((y===Di||y===Ua)&&((re===ui||re===Yt)&&$a(_e)||$a(re)))for(f.push(this.consumeCodePoint(),this.consumeCodePoint()),w=Or;$a(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],re=this.peekCodePoint(0),_e=this.peekCodePoint(1),Ve=this.peekCodePoint(2);if(ys(re,_e,Ve)){var ht=this.consumeName();return{type:15,number:w,flags:y,unit:ht}}return re===hi?(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=F(f);Io(this.peekCodePoint(0))&&w.length<6;)w+=F(this.consumeCodePoint());bs(this.peekCodePoint(0))&&this.consumeCodePoint();var y=parseInt(w,16);return y===0||fa(y)||y>1114111?wi:y}return f===pi?wi:f},b.prototype.consumeName=function(){for(var f="";;){var w=this.consumeCodePoint();if($s(w))f+=F(w);else if(Uo(w,this.peekCodePoint(0)))f+=F(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:nr},OA={type:16,number:50,flags:nr},uc={type:16,number:100,flags:nr},jl=function(b,f,w){var y=b[0],re=b[1];return[to(y,f),to(typeof re!="undefined"?re:y,w)]},to=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 go(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Ts,uc];case"to right":case"left":return go(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[uc,uc];case"to bottom":case"top":return go(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[uc,Ts];case"to left":case"right":return go(270)}return 0},go=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),re=f.value.substring(1,2),_e=f.value.substring(2,3);return Cs(parseInt(y+y,16),parseInt(re+re,16),parseInt(_e+_e,16),1)}if(f.value.length===4){var y=f.value.substring(0,1),re=f.value.substring(1,2),_e=f.value.substring(2,3),Ve=f.value.substring(3,4);return Cs(parseInt(y+y,16),parseInt(re+re,16),parseInt(_e+_e,16),parseInt(Ve+Ve,16)/255)}if(f.value.length===6){var y=f.value.substring(0,2),re=f.value.substring(2,4),_e=f.value.substring(4,6);return Cs(parseInt(y,16),parseInt(re,16),parseInt(_e,16),1)}if(f.value.length===8){var y=f.value.substring(0,2),re=f.value.substring(2,4),_e=f.value.substring(4,6),Ve=f.value.substring(6,8);return Cs(parseInt(y,16),parseInt(re,16),parseInt(_e,16),parseInt(Ve,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},No=function(b){var f=255&b,w=255&b>>8,y=255&b>>16,re=255&b>>24;return f<255?"rgba("+re+","+y+","+w+","+f/255+")":"rgb("+re+","+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),re=y[0],_e=y[1],Ve=y[2];return Cs(re,_e,Ve,1)}if(w.length===4){var ht=w.map(oc),re=ht[0],_e=ht[1],Ve=ht[2],pt=ht[3];return Cs(re,_e,Ve,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],re=w[1],_e=w[2],Ve=w[3],ht=(y.type===17?go(y.number):Ca.parse(b,y))/(Math.PI*2),pt=gs(re)?re.number/100:0,qt=gs(_e)?_e.number/100:0,Ar=typeof Ve!="undefined"&&gs(Ve)?to(Ve,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,Ui=Xs(qr,pr,ht+1/3),Un=Xs(qr,pr,ht),gi=Xs(qr,pr,ht-1/3);return Cs(Ui*255,Un*255,gi*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 re=[],_e=0,Ve=0;Ve<b.length;Ve++){var ht=b[Ve].stop;if(ht!==null){var pt=to(ht,f);pt>_e?re.push(pt):re.push(_e),_e=pt}else re.push(null)}for(var qt=null,Ve=0;Ve<re.length;Ve++){var Ar=re[Ve];if(Ar===null)qt===null&&(qt=Ve);else if(qt!==null){for(var pr=Ve-qt,qr=re[qt-1],Ui=(Ar-qr)/(pr+1),Un=1;Un<=pr;Un++)re[qt+Un-1]=Ui*Un;qt=null}}return b.map(function(gi,Wa){var ea=gi.color;return{color:ea,stop:Math.max(Math.min(1,re[Wa]/f),0)}})},Wc=function(b,f,w){var y=f/2,re=w/2,_e=to(b[0],f)-y,Ve=re-to(b[1],w);return(Math.atan2(Ve,_e)+Math.PI*2)%(Math.PI*2)},Yu=function(b,f,w){var y=typeof b=="number"?b:Wc(b,f,w),re=Math.abs(f*Math.sin(y))+Math.abs(w*Math.cos(y)),_e=f/2,Ve=w/2,ht=re/2,pt=Math.sin(y-Math.PI/2)*ht,qt=Math.cos(y-Math.PI/2)*ht;return[re,_e-qt,_e+qt,Ve-pt,Ve+pt]},Nc=function(b,f){return Math.sqrt(b*b+f*f)},Fd=function(b,f,w,y,re){var _e=[[0,0],[0,f],[b,0],[b,f]];return _e.reduce(function(Ve,ht){var pt=ht[0],qt=ht[1],Ar=Nc(w-pt,y-qt);return(re?Ar<Ve.optimumDistance:Ar>Ve.optimumDistance)?{optimumCorner:ht,optimumDistance:Ar}:Ve},{optimumDistance:re?1/0:-1/0,optimumCorner:null}).optimumCorner},Xo=function(b,f,w,y,re){var _e=0,Ve=0;switch(b.size){case 0:b.shape===0?_e=Ve=Math.min(Math.abs(f),Math.abs(f-y),Math.abs(w),Math.abs(w-re)):b.shape===1&&(_e=Math.min(Math.abs(f),Math.abs(f-y)),Ve=Math.min(Math.abs(w),Math.abs(w-re)));break;case 2:if(b.shape===0)_e=Ve=Math.min(Nc(f,w),Nc(f,w-re),Nc(f-y,w),Nc(f-y,w-re));else if(b.shape===1){var ht=Math.min(Math.abs(w),Math.abs(w-re))/Math.min(Math.abs(f),Math.abs(f-y)),pt=Fd(y,re,f,w,!0),qt=pt[0],Ar=pt[1];_e=Nc(qt-f,(Ar-w)/ht),Ve=ht*_e}break;case 1:b.shape===0?_e=Ve=Math.max(Math.abs(f),Math.abs(f-y),Math.abs(w),Math.abs(w-re)):b.shape===1&&(_e=Math.max(Math.abs(f),Math.abs(f-y)),Ve=Math.max(Math.abs(w),Math.abs(w-re)));break;case 3:if(b.shape===0)_e=Ve=Math.max(Nc(f,w),Nc(f,w-re),Nc(f-y,w),Nc(f-y,w-re));else if(b.shape===1){var ht=Math.max(Math.abs(w),Math.abs(w-re))/Math.max(Math.abs(f),Math.abs(f-y)),pr=Fd(y,re,f,w,!1),qt=pr[0],Ar=pr[1];_e=Nc(qt-f,(Ar-w)/ht),Ve=ht*_e}break}return Array.isArray(b.size)&&(_e=to(b.size[0],y),Ve=b.size.length===2?to(b.size[1],re):_e),[_e,Ve]},Oo=function(b,f){var w=go(180),y=[];return ll(f).forEach(function(re,_e){if(_e===0){var Ve=re[0];if(Ve.type===20&&Ve.value==="to"){w=ts(re);return}else if(ya(Ve)){w=Ca.parse(b,Ve);return}}var ht=jA(b,re);y.push(ht)}),{angle:w,stops:y,type:1}},Jo=function(b,f){var w=go(180),y=[];return ll(f).forEach(function(re,_e){if(_e===0){var Ve=re[0];if(Ve.type===20&&["top","left","right","bottom"].indexOf(Ve.value)!==-1){w=ts(re);return}else if(ya(Ve)){w=(Ca.parse(b,Ve)+go(270))%go(360);return}}var ht=jA(b,re);y.push(ht)}),{angle:w,stops:y,type:1}},yc=function(b,f){var w=go(180),y=[],re=1,_e=0,Ve=3,ht=[];return ll(f).forEach(function(pt,qt){var Ar=pt[0];if(qt===0){if(Fo(Ar)&&Ar.value==="linear"){re=1;return}else if(Fo(Ar)&&Ar.value==="radial"){re=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]),Ui=qr[0];Go(Ui)&&y.push({stop:{type:16,number:Ui.number*100,flags:Ui.flags},color:pr})}}}}),re===1?{angle:(w+go(180))%go(360),stops:y,type:re}:{size:Ve,shape:_e,stops:y,position:ht,type:re}},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,re=[],_e=[];return ll(f).forEach(function(Ve,ht){var pt=!0;if(ht===0){var qt=!1;pt=Ve.reduce(function(pr,qr){if(qt)if(Fo(qr))switch(qr.value){case"center":return _e.push(OA),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,Ve);re.push(Ar)}}),{size:y,shape:w,stops:re,position:_e,type:2}},wA=function(b,f){var w=0,y=3,re=[],_e=[];return ll(f).forEach(function(Ve,ht){var pt=!0;if(ht===0?pt=Ve.reduce(function(Ar,pr){if(Fo(pr))switch(pr.value){case"center":return _e.push(OA),!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=Ve.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,Ve);re.push(qt)}}),{size:y,shape:w,stops:re,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":Oo,"-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(Oc)})}},Oc=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|ue(y.value)},0)}},ue=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},xe={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}},Je={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}},ct;(function(b){b.NORMAL="normal",b.STRICT="strict"})(ct||(ct={}));var Ct={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,f){switch(f){case"strict":return ct.STRICT;case"normal":default:return ct.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)?to(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}}},_r=function(b){return{name:"margin-"+b,initialValue:"0",prefix:!1,type:4}},mr=_r("top"),tn=_r("right"),Vr=_r("bottom"),Yr=_r("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}})}},xn={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"}}},Fn=function(b){return{name:"padding-"+b,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Bn=Fn("top"),zn=Fn("right"),Ti=Fn("bottom"),ji=Fn("left"),mi={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}}},na={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},re=0,_e=0;_e<w.length;_e++){var Ve=w[_e];tl(Ve)?(re===0?y.offsetX=Ve:re===1?y.offsetY=Ve:y.blur=Ve,re++):y.color=jo.parse(b,Ve)}return y})}},Yn={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}},bi={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=si[f.name];if(typeof w=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+f.name+'"');return w(f.values)}return null}},oi=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 re=f[4],_e=f[5];f[6],f[7],f[8],f[9],f[10],f[11];var Ve=f[12],ht=f[13];return f[14],f[15],f.length===16?[w,y,re,_e,Ve,ht]:null},si={matrix:oi,matrix3d:Tn},Vi={type:16,number:50,flags:nr},Na=[Vi,Vi],pa={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(b,f){var w=f.filter(gs);return w.length!==2?Na:[w[0],w[1]]}},Wi={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")}},lo={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(re){switch(re.type){case 20:case 0:w.push(re.value);break;case 17:w.push(re.number.toString());break;case 4:y.push(w.join(" ")),w.length=0;break}}),w.length&&y.push(w.join(" ")),y.map(function(re){return re.indexOf(" ")===-1?re:"'"+re+"'"})}},mo={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"}}},li=function(b,f){return(b&f)!==0},Gi={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}},zi={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=[],re=f.filter(Ac),_e=0;_e<re.length;_e++){var Ve=re[_e],ht=re[_e+1];if(Ve.type===20){var pt=ht&&Go(ht)?ht.number:1;y.push({counter:Ve.value,increment:pt})}}return y}},Ni={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),re=0;re<y.length;re++){var _e=y[re],Ve=y[re+1];if(Fo(_e)&&_e.value!=="none"){var ht=Ve&&Go(Ve)?Ve.number:0;w.push({counter:_e.value,reset:ht})}}return w}},vo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(b,f){return f.filter(Fs).map(function(w){return lo.parse(b,w)})}},Oi={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=[],re=f.filter(pA);if(re.length%2!==0)return null;for(var _e=0;_e<re.length;_e+=2){var Ve=re[_e].value,ht=re[_e+1].value;y.push({open:Ve,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},re=0,_e=0;_e<w.length;_e++){var Ve=w[_e];tu(Ve,"inset")?y.inset=!0:tl(Ve)?(re===0?y.offsetX=Ve:re===1?y.offsetY=Ve:re===2?y.blur=Ve:y.spread=Ve,re++):y.color=jo.parse(b,Ve)}return y})}},Za={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(re){switch(re.value){case"stroke":y.push(1);break;case"fill":y.push(0);break;case"markers":y.push(2);break}}),w.forEach(function(re){y.indexOf(re)===-1&&y.push(re)}),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,re;this.animationDuration=Hn(f,vo,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,xe,w.cssFloat),this.fontFamily=Hn(f,al,w.fontFamily),this.fontSize=Hn(f,mo,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,Je,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,mr,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,xn,w.overflowWrap),this.paddingTop=Hn(f,Bn,w.paddingTop),this.paddingRight=Hn(f,zn,w.paddingRight),this.paddingBottom=Hn(f,Ti,w.paddingBottom),this.paddingLeft=Hn(f,ji,w.paddingLeft),this.paintOrder=Hn(f,Za,w.paintOrder),this.position=Hn(f,na,w.position),this.textAlign=Hn(f,mi,w.textAlign),this.textDecorationColor=Hn(f,cs,(y=w.textDecorationColor)!==null&&y!==void 0?y:w.color),this.textDecorationLine=Hn(f,ma,(re=w.textDecorationLine)!==null&&re!==void 0?re:w.textDecoration),this.textShadow=Hn(f,wa,w.textShadow),this.textTransform=Hn(f,Yn,w.textTransform),this.transform=Hn(f,bi,w.transform),this.transformOrigin=Hn(f,pa,w.transformOrigin),this.visibility=Hn(f,Wi,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 li(this.display,4)||li(this.display,33554432)||li(this.display,268435456)||li(this.display,536870912)||li(this.display,67108864)||li(this.display,134217728)},b}(),Us=function(){function b(f,w){this.content=Hn(f,Gi,w.content),this.quotes=Hn(f,Oi,w.quotes)}return b}(),Uc=function(){function b(f,w){this.counterIncrement=Hn(f,zi,w.counterIncrement),this.counterReset=Hn(f,Ni,w.counterReset)}return b}(),Hn=function(b,f,w){var y=new os,re=w!==null&&typeof w!="undefined"?w.toString():f.initialValue;y.write(re);var _e=new ss(y.read());switch(f.type){case 2:var Ve=_e.parseComponentValue();return f.parse(b,Fo(Ve)?Ve.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 lo.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}},co=function(b,f){var w=Fu(b);return w===1||f===w},hn=function(){function b(f,w){if(this.context=f,this.textNodes=[],this.elements=[],this.flags=0,co(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),co(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),ia=0;ia<cl.length;ia++)As[cl.charCodeAt(ia)]=ia;for(var Sl=function(b){var f=b.length*.75,w=b.length,y,re=0,_e,Ve,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)],Ve=As[b.charCodeAt(y+1)],ht=As[b.charCodeAt(y+2)],pt=As[b.charCodeAt(y+3)],Ar[re++]=_e<<2|Ve>>4,Ar[re++]=(Ve&15)<<4|ht>>2,Ar[re++]=(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,ao=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),re=Array.isArray(w)?Zl(w):new Uint16Array(w),_e=24,Ve=ao(re,_e/2,y[4]/2),ht=y[5]===2?ao(re,(_e+y[4])/2):Zo(y,Math.ceil((_e+y[4])/4));return new us(y[0],y[1],y[2],y[3],Ve,ht)},us=function(){function b(f,w,y,re,_e,Ve){this.initialValue=f,this.errorValue=w,this.highStart=y,this.highValueIndex=re,this.index=_e,this.data=Ve}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,Ao=5,Bs=7,SA=8,EA=9,Gl=10,$f=11,TA=12,Zf=13,Vf=14,ad=15,Nd=function(b){for(var f=[],w=0,y=b.length;w<y;){var re=b.charCodeAt(w++);if(re>=55296&&re<=56319&&w<y){var _e=b.charCodeAt(w++);(_e&64512)===56320?f.push(((re&1023)<<10)+(_e&1023)+65536):(f.push(re),w--)}else f.push(re)}return f},Od=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=[],re=-1,_e="";++re<w;){var Ve=b[re];Ve<=65535?y.push(Ve):(Ve-=65536,y.push((Ve>>10)+55296,Ve%1024+56320)),(re+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,re=f[y],_e=f[w-1],Ve=f[w];if(_e===hf&&Ve===pf)return zr;if(_e===hf||_e===pf||_e===id||Ve===hf||Ve===pf||Ve===id)return Pd;if(_e===SA&&[SA,EA,$f,TA].indexOf(Ve)!==-1||(_e===$f||_e===EA)&&(Ve===EA||Ve===Gl)||(_e===TA||_e===Gl)&&Ve===Gl||Ve===Zf||Ve===Ao||Ve===Bs||_e===BA)return zr;if(_e===Zf&&Ve===Vf){for(;re===Ao;)re=f[--y];if(re===Vf)return zr}if(_e===ad&&Ve===ad){for(var ht=0;re===ad;)ht++,re=f[--y];if(ht%2===0)return zr}return Pd},gf=function(b){var f=Nd(b),w=f.length,y=0,re=0,_e=f.map(mf);return{next:function(){if(y>=w)return{done:!0,value:null};for(var Ve=zr;y<w&&(Ve=Wf(f,_e,++y))===zr;);if(Ve!==zr||y===w){var ht=Od.apply(null,f.slice(re,y));return re=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 re=w.getBoundingClientRect(),_e=Math.round(re.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,re=g(y.data).map(function(pt){return F(pt)}),_e=0,Ve={},ht=re.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>Ve.x||Ar.y>Ve.y;return Ve=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(re){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 re=new Image,_e=f.toDataURL();re.src=_e;var Ve=UA(w,w,0,0,re);return y.fillStyle="red",y.fillRect(0,0,w,w),ou(Ve).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,re){var _e="http://www.w3.org/2000/svg",Ve=document.createElementNS(_e,"svg"),ht=document.createElementNS(_e,"foreignObject");return Ve.setAttributeNS(null,"width",b.toString()),Ve.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"),Ve.appendChild(ht),ht.appendChild(re),Ve},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 re=su(f,w),_e=[],Ve=0;return re.forEach(function(ht){if(w.textDecorationLine.length||ht.trim().length>0)if(ds.SUPPORT_RANGE_BOUNDS){var pt=uo(y,Ve,ht.length).getClientRects();if(pt.length>1){var qt=bo(ht),Ar=0;qt.forEach(function(qr){_e.push(new Qc(qr,te.fromDOMRectList(b,uo(y,Ar+Ve,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));Ve+=ht.length}),_e},Lu=function(b,f){var w=f.ownerDocument;if(w){var y=w.createElement("html2canvaswrapper");y.appendChild(f.cloneNode(!0));var re=f.parentNode;if(re){re.replaceChild(y,f);var _e=V(b,y);return y.firstChild&&re.replaceChild(y.firstChild,y),_e}}return te.EMPTY},uo=function(b,f,w){var y=b.ownerDocument;if(!y)throw new Error("Node has no owner document");var re=y.createRange();return re.setStart(b,f),re.setEnd(b,f+w),re},bo=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?bo(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=[],re,_e=function(){if(re.value){var Ve=re.value.slice(),ht=g(Ve),pt="";ht.forEach(function(qt){WA.indexOf(qt)===-1?pt+=F(qt):(pt.length&&y.push(pt),y.push(F(qt)),pt="")}),pt.length&&y.push(pt)}};!(re=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 re=b.call(this,w,y)||this;return re.src=y.currentSrc||y.src,re.intrinsicWidth=y.naturalWidth,re.intrinsicHeight=y.naturalHeight,re.context.cache.addImage(re.src),re}return f}(hn),Eo=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;return re.canvas=y,re.intrinsicWidth=y.width,re.intrinsicHeight=y.height,re}return f}(hn),yf=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this,_e=new XMLSerializer,Ve=V(w,y);return y.setAttribute("width",Ve.width+"px"),y.setAttribute("height",Ve.height+"px"),re.svg="data:image/svg+xml,"+encodeURIComponent(_e.serializeToString(y)),re.intrinsicWidth=y.width.baseVal.value,re.intrinsicHeight=y.height.baseVal.value,re.context.cache.addImage(re.svg),re}return f}(hn),Td=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;return re.value=y.value,re}return f}(hn),Jf=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;return re.start=y.start,re.reversed=typeof y.reversed=="boolean"&&y.reversed===!0,re}return f}(hn),Ur=[{type:15,flags:0,unit:"px",number:3}],Dm=[{type:16,flags:0,number:50}],Nm=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 re=b.call(this,w,y)||this;switch(re.type=y.type.toLowerCase(),re.checked=y.checked,re.value=_0(y),(re.type===I0||re.type===Ud)&&(re.styles.backgroundColor=3739148031,re.styles.borderTopColor=re.styles.borderRightColor=re.styles.borderBottomColor=re.styles.borderLeftColor=2779096575,re.styles.borderTopWidth=re.styles.borderRightWidth=re.styles.borderBottomWidth=re.styles.borderLeftWidth=1,re.styles.borderTopStyle=re.styles.borderRightStyle=re.styles.borderBottomStyle=re.styles.borderLeftStyle=1,re.styles.backgroundClip=[0],re.styles.backgroundOrigin=[0],re.bounds=Nm(re.bounds)),re.type){case I0:re.styles.borderTopRightRadius=re.styles.borderTopLeftRadius=re.styles.borderBottomRightRadius=re.styles.borderBottomLeftRadius=Ur;break;case Ud:re.styles.borderTopRightRadius=re.styles.borderTopLeftRadius=re.styles.borderBottomRightRadius=re.styles.borderBottomLeftRadius=Dm;break}return re}return f}(hn),ld=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this,_e=y.options[y.selectedIndex||0];return re.value=_e&&_e.text||"",re}return f}(hn),Yf=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;return re.value=y.value,re}return f}(hn),Fh=function(b){x(f,b);function f(w,y){var re=b.call(this,w,y)||this;re.src=y.src,re.width=parseInt(y.width,10)||0,re.height=parseInt(y.height,10)||0,re.backgroundColor=re.styles.backgroundColor;try{if(y.contentWindow&&y.contentWindow.document&&y.contentWindow.document.documentElement){re.tree=pp(w,y.contentWindow.document.documentElement);var _e=y.contentWindow.document.documentElement?eA(w,getComputedStyle(y.contentWindow.document.documentElement).backgroundColor):rl.TRANSPARENT,Ve=y.contentWindow.document.body?eA(w,getComputedStyle(y.contentWindow.document.body).backgroundColor):rl.TRANSPARENT;re.backgroundColor=zo(_e)?zo(Ve)?re.styles.backgroundColor:Ve:_e}}catch(ht){}return re}return f}(hn),Mh=["OL","UL","MENU"],qf=function(b,f,w,y){for(var re=f.firstChild,_e=void 0;re;re=_e)if(_e=re.nextSibling,Rd(re)&&re.data.trim().length>0)w.textNodes.push(new Dl(b,re,w.styles));else if(wf(re))if(nh(re)&&re.assignedNodes)re.assignedNodes().forEach(function(ht){return qf(b,ht,w,y)});else{var Ve=M0(b,re);Ve.styles.isVisible()&&(L0(re,Ve,y)?Ve.flags|=4:nA(Ve.styles)&&(Ve.flags|=2),Mh.indexOf(re.tagName)!==-1&&(Ve.flags|=8),w.elements.push(Ve),re.slot,re.shadowRoot?qf(b,re.shadowRoot,Ve,y):!rh(re)&&!mp(re)&&!Lh(re)&&qf(b,re,Ve,y))}},M0=function(b,f){return cd(f)?new E0(b,f):Wp(f)?new Eo(b,f):mp(f)?new yf(b,f):Om(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 hn(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"},Om=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,re=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 Ve=[];return _e&&re.forEach(function(ht){var pt=w.counters[ht.counter];Ve.push(ht.counter),pt||(pt=w.counters[ht.counter]=[]),pt.push(ht.reset)}),Ve},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,re,_e){return b<f||b>w?Kd(b,re,_e.length>0):y.integers.reduce(function(Ve,ht,pt){for(;b>=ht;)b-=ht,Ve+=y.values[pt];return Ve},"")+_e},Km=function(b,f,w,y){var re="";do w||b--,re=y(b)+re,b/=f;while(b*f>=f);return re},Nl=function(b,f,w,y,re){var _e=w-f+1;return(b<0?"-":"")+(Km(Math.abs(b),_e,y,function(Ve){return F(Math.floor(Ve%_e)+f)})+re)},Qd=function(b,f,w){w===void 0&&(w=". ");var y=f.length;return Km(Math.abs(b),y,!1,function(re){return f[Math.floor(re%y)]})+w},Cf=1,Ad=2,Xc=4,lu=8,IA=function(b,f,w,y,re,_e){if(b<-9999||b>9999)return Kd(b,4,re.length>0);var Ve=Math.abs(b),ht=re;if(Ve===0)return f[0]+ht;for(var pt=0;Ve>0&&pt<=4;pt++){var qt=Ve%10;qt===0&&li(_e,Cf)&&ht!==""?ht=f[qt]+ht:qt>1||qt===1&&pt===0||qt===1&&pt===1&&li(_e,Ad)||qt===1&&pt===1&&li(_e,Xc)&&b>100||qt===1&&pt>1&&li(_e,lu)?ht=f[qt]+(pt>0?w[pt-1]:"")+ht:qt===1&&pt>0&&(ht=w[pt-1]+ht),Ve=Math.floor(Ve/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?". ":"",re=w?"\u3001":"",_e=w?", ":"",Ve=w?" ":"";switch(f){case 0:return"\u2022"+Ve;case 1:return"\u25E6"+Ve;case 2:return"\u25FE"+Ve;case 5:var ht=Nl(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",re);case 6:return xf(b,1,3999,kh,3,y).toLowerCase();case 7:return xf(b,1,3999,kh,3,y);case 8:return Nl(b,945,969,!1,y);case 9:return Nl(b,97,122,!1,y);case 10:return Nl(b,65,90,!1,y);case 11:return Nl(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 Nl(b,2534,2543,!0,y);case 14:case 30:return Nl(b,6112,6121,!0,y);case 15:return Qd(b,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",re);case 16:return Qd(b,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",re);case 17:case 48:return IA(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ku,"\u8CA0",re,Ad|Xc|lu);case 47:return IA(b,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ud,"\u8CA0",re,Cf|Ad|Xc|lu);case 42:return IA(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",ku,"\u8D1F",re,Ad|Xc|lu);case 41:return IA(b,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ud,"\u8D1F",re,Cf|Ad|Xc|lu);case 26:return IA(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",dd,re,0);case 25:return IA(b,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",dd,re,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 Nl(b,2406,2415,!0,y);case 20:return xf(b,1,19999,Yp,3,y);case 21:return Nl(b,2790,2799,!0,y);case 22:return Nl(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 Nl(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",re);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",re);case 34:return Nl(b,3792,3801,!0,y);case 37:return Nl(b,6160,6169,!0,y);case 38:return Nl(b,4160,4169,!0,y);case 39:return Nl(b,2918,2927,!0,y);case 40:return Nl(b,1776,1785,!0,y);case 43:return Nl(b,3046,3055,!0,y);case 44:return Nl(b,3174,3183,!0,y);case 45:return Nl(b,3664,3673,!0,y);case 46:return Nl(b,3872,3881,!0,y);case 3:default:return Nl(b,48,57,!0,y)}},Dh="data-html2canvas-ignore",N0=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,re=qp(f,w);if(!re.contentWindow)return Promise.reject("Unable to find iframe window");var _e=f.defaultView.pageXOffset,Ve=f.defaultView.pageYOffset,ht=re.contentWindow,pt=ht.document,qt=Oh(re).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 re})]:[2,re]}})})});return pt.open(),pt.write(jm(document.doctype)+"<html></html>"),tm(this.referenceElement.ownerDocument,_e,Ve),pt.replaceChild(pt.adoptNode(this.documentElement),pt.documentElement),pt.close(),qt},b.prototype.createElementClone=function(f){if(co(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 O0(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,Ve){return Ve&&typeof Ve.cssText=="string"?_e+Ve.cssText:_e},""),re=f.cloneNode(!1);return re.textContent=y,re}}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 re=f.cloneNode(!1);try{re.width=f.width,re.height=f.height;var _e=f.getContext("2d"),Ve=re.getContext("2d");if(Ve)if(!this.options.allowTaint&&_e)Ve.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)}Ve.drawImage(f,0,0)}return re}catch(qt){this.context.logger.info("Unable to clone canvas as it is tainted",f)}return re},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 re=f.ownerDocument.createElement("canvas");return re.width=f.offsetWidth,re.height=f.offsetHeight,re},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 re=this,_e=f.shadowRoot?f.shadowRoot.firstChild:f.firstChild;_e;_e=_e.nextSibling)if(wf(_e)&&nh(_e)&&typeof _e.assignedNodes=="function"){var Ve=_e.assignedNodes();Ve.length&&Ve.forEach(function(ht){return re.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 re=this.createElementClone(f);re.style.transitionProperty="none";var _e=y.getComputedStyle(f),Ve=y.getComputedStyle(f,":before"),ht=y.getComputedStyle(f,":after");this.referenceElement===f&&k0(re)&&(this.clonedReferenceElement=re),Ls(re)&&oh(re);var pt=this.counters.parse(new Uc(this.context,_e)),qt=this.resolvePseudoContent(f,re,Ve,Nh.BEFORE);Jp(f)&&(w=!0),Gp(f)||this.cloneChildNodes(f,re,w),qt&&re.insertBefore(qt,re.firstChild);var Ar=this.resolvePseudoContent(f,re,ht,Nh.AFTER);return Ar&&re.appendChild(Ar),this.counters.pop(pt),(_e&&(this.options.copyStyles||eh(f))&&!Xp(f)||w)&&O0(_e,re),(f.scrollTop!==0||f.scrollLeft!==0)&&this.scrolledElements.push([re,f.scrollLeft,f.scrollTop]),(rh(f)||Lh(f))&&(rh(re)||Lh(re))&&(re.value=f.value),re}return f.cloneNode(!1)},b.prototype.resolvePseudoContent=function(f,w,y,re){var _e=this;if(y){var Ve=y.content,ht=w.ownerDocument;if(!(!ht||!Ve||Ve==="none"||Ve==="-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");O0(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 Ui=pr.values.filter(Fo);Ui.length&&qt.appendChild(ht.createTextNode(f.getAttribute(Ui[0].value)||""))}else if(pr.name==="counter"){var Un=pr.values.filter(mA),gi=Un[0],Wa=Un[1];if(gi&&Fo(gi)){var ea=_e.counters.getCounterValue(gi.value),Yi=Wa&&Fo(Wa)?dr.parse(_e.context,Wa.value):3;qt.appendChild(ht.createTextNode(Kd(ea,Yi,!1)))}}else if(pr.name==="counters"){var Oa=pr.values.filter(mA),gi=Oa[0],oo=Oa[1],Wa=Oa[2];if(gi&&Fo(gi)){var Ia=_e.counters.getCounterValues(gi.value),ki=Wa&&Fo(Wa)?dr.parse(_e.context,Wa.value):3,ko=oo&&oo.type===0?oo.value:"",Ja=Ia.map(function(Ec){return Kd(Ec,ki,!1)}).join(ko);qt.appendChild(ht.createTextNode(Ja))}}}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=re===Nh.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}(),Nh;(function(b){b[b.BEFORE=0]="BEFORE",b[b.AFTER=1]="AFTER"})(Nh||(Nh={}));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))},Oh=function(b){return new Promise(function(f,w){var y=b.contentWindow;if(!y)return w("No window assigned for iframe");var re=y.document;y.onload=b.onload=function(){y.onload=b.onload=null;var _e=setInterval(function(){re.body.childNodes.length>0&&re.readyState==="complete"&&(clearInterval(_e),f(b))},50)}})},Hm=["all","d","content"],O0=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,re,_e,Ve=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,re=!Th(f)&&!w&&!xp(f)&&typeof this._options.proxy=="string"&&ds.SUPPORT_CORS_XHR&&!y,!w&&this._options.allowTaint===!1&&!Th(f)&&!xp(f)&&!re&&!y?[2]:(_e=f,re?[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),Ve._options.imageTimeout>0&&setTimeout(function(){return qt("Timed out ("+Ve._options.imageTimeout+"ms) loading image")},Ve._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 re=f.substring(0,256);return new Promise(function(_e,Ve){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 Ve(qr)},!1),pr.readAsDataURL(pt.response)}else Ve("Failed to proxy resource "+re+" with status code "+pt.status)},pt.onerror=Ve;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 Ve("Timed out ("+Ar+"ms) proxying "+re)}}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)},Li=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}(),Nu=function(b,f,w){return new Li(b.x+(f.x-b.x)*w,b.y+(f.y-b.y)*w)},T0=function(){function b(f,w,y,re){this.type=1,this.start=f,this.startControl=w,this.endControl=y,this.end=re}return b.prototype.subdivide=function(f,w){var y=Nu(this.start,this.startControl,f),re=Nu(this.startControl,this.endControl,f),_e=Nu(this.endControl,this.end,f),Ve=Nu(y,re,f),ht=Nu(re,_e,f),pt=Nu(Ve,ht,f);return w?new b(this.start,y,Ve,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,re=jl(w.borderTopLeftRadius,y.width,y.height),_e=re[0],Ve=re[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],Ui=jl(w.borderBottomLeftRadius,y.width,y.height),Un=Ui[0],gi=Ui[1],Wa=[];Wa.push((_e+pt)/y.width),Wa.push((Un+pr)/y.width),Wa.push((Ve+gi)/y.height),Wa.push((qt+qr)/y.height);var ea=Math.max.apply(Math,Wa);ea>1&&(_e/=ea,Ve/=ea,pt/=ea,qt/=ea,pr/=ea,qr/=ea,Un/=ea,gi/=ea);var Yi=y.width-pt,Oa=y.height-qr,oo=y.width-pr,Ia=y.height-gi,ki=w.borderTopWidth,ko=w.borderRightWidth,Ja=w.borderBottomWidth,Pa=w.borderLeftWidth,ti=to(w.paddingTop,f.bounds.width),Ec=to(w.paddingRight,f.bounds.width),oA=to(w.paddingBottom,f.bounds.width),yo=to(w.paddingLeft,f.bounds.width);this.topLeftBorderDoubleOuterBox=_e>0||Ve>0?ol(y.left+Pa/3,y.top+ki/3,_e-Pa/3,Ve-ki/3,Vo.TOP_LEFT):new Li(y.left+Pa/3,y.top+ki/3),this.topRightBorderDoubleOuterBox=_e>0||Ve>0?ol(y.left+Yi,y.top+ki/3,pt-ko/3,qt-ki/3,Vo.TOP_RIGHT):new Li(y.left+y.width-ko/3,y.top+ki/3),this.bottomRightBorderDoubleOuterBox=pr>0||qr>0?ol(y.left+oo,y.top+Oa,pr-ko/3,qr-Ja/3,Vo.BOTTOM_RIGHT):new Li(y.left+y.width-ko/3,y.top+y.height-Ja/3),this.bottomLeftBorderDoubleOuterBox=Un>0||gi>0?ol(y.left+Pa/3,y.top+Ia,Un-Pa/3,gi-Ja/3,Vo.BOTTOM_LEFT):new Li(y.left+Pa/3,y.top+y.height-Ja/3),this.topLeftBorderDoubleInnerBox=_e>0||Ve>0?ol(y.left+Pa*2/3,y.top+ki*2/3,_e-Pa*2/3,Ve-ki*2/3,Vo.TOP_LEFT):new Li(y.left+Pa*2/3,y.top+ki*2/3),this.topRightBorderDoubleInnerBox=_e>0||Ve>0?ol(y.left+Yi,y.top+ki*2/3,pt-ko*2/3,qt-ki*2/3,Vo.TOP_RIGHT):new Li(y.left+y.width-ko*2/3,y.top+ki*2/3),this.bottomRightBorderDoubleInnerBox=pr>0||qr>0?ol(y.left+oo,y.top+Oa,pr-ko*2/3,qr-Ja*2/3,Vo.BOTTOM_RIGHT):new Li(y.left+y.width-ko*2/3,y.top+y.height-Ja*2/3),this.bottomLeftBorderDoubleInnerBox=Un>0||gi>0?ol(y.left+Pa*2/3,y.top+Ia,Un-Pa*2/3,gi-Ja*2/3,Vo.BOTTOM_LEFT):new Li(y.left+Pa*2/3,y.top+y.height-Ja*2/3),this.topLeftBorderStroke=_e>0||Ve>0?ol(y.left+Pa/2,y.top+ki/2,_e-Pa/2,Ve-ki/2,Vo.TOP_LEFT):new Li(y.left+Pa/2,y.top+ki/2),this.topRightBorderStroke=_e>0||Ve>0?ol(y.left+Yi,y.top+ki/2,pt-ko/2,qt-ki/2,Vo.TOP_RIGHT):new Li(y.left+y.width-ko/2,y.top+ki/2),this.bottomRightBorderStroke=pr>0||qr>0?ol(y.left+oo,y.top+Oa,pr-ko/2,qr-Ja/2,Vo.BOTTOM_RIGHT):new Li(y.left+y.width-ko/2,y.top+y.height-Ja/2),this.bottomLeftBorderStroke=Un>0||gi>0?ol(y.left+Pa/2,y.top+Ia,Un-Pa/2,gi-Ja/2,Vo.BOTTOM_LEFT):new Li(y.left+Pa/2,y.top+y.height-Ja/2),this.topLeftBorderBox=_e>0||Ve>0?ol(y.left,y.top,_e,Ve,Vo.TOP_LEFT):new Li(y.left,y.top),this.topRightBorderBox=pt>0||qt>0?ol(y.left+Yi,y.top,pt,qt,Vo.TOP_RIGHT):new Li(y.left+y.width,y.top),this.bottomRightBorderBox=pr>0||qr>0?ol(y.left+oo,y.top+Oa,pr,qr,Vo.BOTTOM_RIGHT):new Li(y.left+y.width,y.top+y.height),this.bottomLeftBorderBox=Un>0||gi>0?ol(y.left,y.top+Ia,Un,gi,Vo.BOTTOM_LEFT):new Li(y.left,y.top+y.height),this.topLeftPaddingBox=_e>0||Ve>0?ol(y.left+Pa,y.top+ki,Math.max(0,_e-Pa),Math.max(0,Ve-ki),Vo.TOP_LEFT):new Li(y.left+Pa,y.top+ki),this.topRightPaddingBox=pt>0||qt>0?ol(y.left+Math.min(Yi,y.width-ko),y.top+ki,Yi>y.width+ko?0:Math.max(0,pt-ko),Math.max(0,qt-ki),Vo.TOP_RIGHT):new Li(y.left+y.width-ko,y.top+ki),this.bottomRightPaddingBox=pr>0||qr>0?ol(y.left+Math.min(oo,y.width-Pa),y.top+Math.min(Oa,y.height-Ja),Math.max(0,pr-ko),Math.max(0,qr-Ja),Vo.BOTTOM_RIGHT):new Li(y.left+y.width-ko,y.top+y.height-Ja),this.bottomLeftPaddingBox=Un>0||gi>0?ol(y.left+Pa,y.top+Math.min(Ia,y.height-Ja),Math.max(0,Un-Pa),Math.max(0,gi-Ja),Vo.BOTTOM_LEFT):new Li(y.left+Pa,y.top+y.height-Ja),this.topLeftContentBox=_e>0||Ve>0?ol(y.left+Pa+yo,y.top+ki+ti,Math.max(0,_e-(Pa+yo)),Math.max(0,Ve-(ki+ti)),Vo.TOP_LEFT):new Li(y.left+Pa+yo,y.top+ki+ti),this.topRightContentBox=pt>0||qt>0?ol(y.left+Math.min(Yi,y.width+Pa+yo),y.top+ki+ti,Yi>y.width+Pa+yo?0:pt-Pa+yo,qt-(ki+ti),Vo.TOP_RIGHT):new Li(y.left+y.width-(ko+Ec),y.top+ki+ti),this.bottomRightContentBox=pr>0||qr>0?ol(y.left+Math.min(oo,y.width-(Pa+yo)),y.top+Math.min(Oa,y.height+ki+ti),Math.max(0,pr-(ko+Ec)),qr-(Ja+oA),Vo.BOTTOM_RIGHT):new Li(y.left+y.width-(ko+Ec),y.top+y.height-(Ja+oA)),this.bottomLeftContentBox=Un>0||gi>0?ol(y.left+Pa+yo,y.top+Ia,Math.max(0,Un-(Pa+yo)),gi-(Ja+oA),Vo.BOTTOM_LEFT):new Li(y.left+Pa+yo,y.top+y.height-(Ja+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,re){var _e=4*((Math.sqrt(2)-1)/3),Ve=w*_e,ht=y*_e,pt=b+w,qt=f+y;switch(re){case Vo.TOP_LEFT:return new T0(new Li(b,qt),new Li(b,qt-ht),new Li(pt-Ve,f),new Li(pt,f));case Vo.TOP_RIGHT:return new T0(new Li(b,f),new Li(b+Ve,f),new Li(pt,qt-ht),new Li(pt,qt));case Vo.BOTTOM_RIGHT:return new T0(new Li(pt,f),new Li(pt,f+ht),new Li(b+Ve,qt),new Li(b,qt));case Vo.BOTTOM_LEFT:default:return new T0(new Li(pt,qt),new Li(pt-Ve,qt),new Li(b,f+ht),new Li(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]},Va=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,re){return b.map(function(_e,Ve){switch(Ve){case 0:return _e.add(f,w);case 1:return _e.add(f+y,w);case 2:return _e.add(f+y,w+re);case 3:return _e.add(f,w+re)}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,re=this.container.bounds.top+this.container.styles.transformOrigin[1].number,_e=this.container.styles.transform;this.effects.push(new Va(y,re,_e))}if(this.container.styles.overflowX!==0){var Ve=Ys(this.curves),ht=U0(this.curves);fd(Ve,ht)?this.effects.push(new Sf(Ve,6)):(this.effects.push(new Sf(Ve,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,re=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(re.unshift.apply(re,_e),w=[2,3].indexOf(y.container.styles.position)===-1,y.container.styles.overflowX!==0){var Ve=Ys(y.curves),ht=U0(y.curves);fd(Ve,ht)||re.unshift(new Sf(ht,6))}}else re.unshift.apply(re,_e);y=y.parent}return re.filter(function(pt){return li(pt.target,f)})},b}(),Q0=function(b,f,w,y){b.container.elements.forEach(function(re){var _e=li(re.flags,4),Ve=li(re.flags,2),ht=new Qs(re,b);li(re.styles.display,2048)&&y.push(ht);var pt=li(re.flags,8)?[]:y;if(_e||Ve){var qt=_e||re.styles.isPositioned()?w:f,Ar=new vn(ht);if(re.styles.isPositioned()||re.styles.opacity<1||re.styles.isTransformed()){var pr=re.styles.zIndex.order;if(pr<0){var qr=0;qt.negativeZIndex.some(function(Un,gi){return pr>Un.element.container.styles.zIndex.order?(qr=gi,!1):qr>0}),qt.negativeZIndex.splice(qr,0,Ar)}else if(pr>0){var Ui=0;qt.positiveZIndex.some(function(Un,gi){return pr>=Un.element.container.styles.zIndex.order?(Ui=gi+1,!1):Ui>0}),qt.positiveZIndex.splice(Ui,0,Ar)}else qt.zeroOrAutoZIndexOrTransformedOrOpacity.push(Ar)}else re.styles.isFloating()?qt.nonPositionedFloats.push(Ar):qt.nonPositionedInlineLevel.push(Ar);Q0(ht,Ar,_e?Ar:w,pt)}else re.styles.isInlineLevel()?f.inlineLevel.push(ht):f.nonInlineLevel.push(ht),Q0(ht,f,w,pt);li(re.flags,8)&&K0(re,pt)})},K0=function(b,f){for(var w=b instanceof Jf?b.start:1,y=b instanceof Jf?b.reversed:!1,re=0;re<f.length;re++){var _e=f[re];_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 re=[];return fc(b)?re.push(b.subdivide(.5,!1)):re.push(b),fc(w)?re.push(w.subdivide(.5,!0)):re.push(w),fc(y)?re.push(y.subdivide(.5,!0).reverse()):re.push(y),fc(f)?re.push(f.subdivide(.5,!1).reverse()):re.push(f),re},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))},Ol=function(b){var f=b.styles,w=b.bounds,y=to(f.paddingLeft,w.width),re=to(f.paddingRight,w.width),_e=to(f.paddingTop,w.width),Ve=to(f.paddingBottom,w.width);return w.add(y+f.borderLeftWidth,_e+f.borderTopWidth,-(f.borderRightWidth+f.borderLeftWidth+y+re),-(f.borderTopWidth+f.borderBottomWidth+_e+Ve))},_f=function(b,f){return b===0?f.bounds:b===2?Ol(f):Ef(f)},Bp=function(b,f){return b===0?f.bounds:b===2?Ol(f):Ef(f)},Jc=function(b,f,w){var y=_f(iA(b.styles.backgroundOrigin,f),b),re=Bp(iA(b.styles.backgroundClip,f),b),_e=Ou(iA(b.styles.backgroundSize,f),w,y),Ve=_e[0],ht=_e[1],pt=jl(iA(b.styles.backgroundPosition,f),y.width-Ve,y.height-ht),qt=Sp(iA(b.styles.backgroundRepeat,f),pt,_e,y,re),Ar=Math.round(y.left+pt[0]),pr=Math.round(y.top+pt[1]);return[qt,Ar,pr,Ve,ht]},mc=function(b){return Fo(b)&&b.value===Cl.AUTO},Uh=function(b){return typeof b=="number"},Ou=function(b,f,w){var y=f[0],re=f[1],_e=f[2],Ve=b[0],ht=b[1];if(!Ve)return[0,0];if(gs(Ve)&&ht&&gs(ht))return[to(Ve,w.width),to(ht,w.height)];var pt=Uh(_e);if(Fo(Ve)&&(Ve.value===Cl.CONTAIN||Ve.value===Cl.COVER)){if(Uh(_e)){var qt=w.width/w.height;return qt<_e!=(Ve.value===Cl.COVER)?[w.width,w.width/_e]:[w.height*_e,w.height]}return[w.width,w.height]}var Ar=Uh(y),pr=Uh(re),qr=Ar||pr;if(mc(Ve)&&(!ht||mc(ht))){if(Ar&&pr)return[y,re];if(!pt&&!qr)return[w.width,w.height];if(qr&&pt){var Ui=Ar?y:re*_e,Un=pr?re:y/_e;return[Ui,Un]}var gi=Ar?y:w.width,Wa=pr?re:w.height;return[gi,Wa]}if(pt){var ea=0,Yi=0;return gs(Ve)?ea=to(Ve,w.width):gs(ht)&&(Yi=to(ht,w.height)),mc(Ve)?ea=Yi*_e:(!ht||mc(ht))&&(Yi=ea/_e),[ea,Yi]}var Oa=null,oo=null;if(gs(Ve)?Oa=to(Ve,w.width):ht&&gs(ht)&&(oo=to(ht,w.height)),Oa!==null&&(!ht||mc(ht))&&(oo=Ar&&pr?Oa/y*re:w.height),oo!==null&&mc(Ve)&&(Oa=Ar&&pr?oo/re*y:w.width),Oa!==null&&oo!==null)return[Oa,oo];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,re){var _e=f[0],Ve=f[1],ht=w[0],pt=w[1];switch(b){case 2:return[new Li(Math.round(y.left),Math.round(y.top+Ve)),new Li(Math.round(y.left+y.width),Math.round(y.top+Ve)),new Li(Math.round(y.left+y.width),Math.round(pt+y.top+Ve)),new Li(Math.round(y.left),Math.round(pt+y.top+Ve))];case 3:return[new Li(Math.round(y.left+_e),Math.round(y.top)),new Li(Math.round(y.left+_e+ht),Math.round(y.top)),new Li(Math.round(y.left+_e+ht),Math.round(y.height+y.top)),new Li(Math.round(y.left+_e),Math.round(y.height+y.top))];case 1:return[new Li(Math.round(y.left+_e),Math.round(y.top+Ve)),new Li(Math.round(y.left+_e+ht),Math.round(y.top+Ve)),new Li(Math.round(y.left+_e+ht),Math.round(y.top+Ve+pt)),new Li(Math.round(y.left+_e),Math.round(y.top+Ve+pt))];default:return[new Li(Math.round(re.left),Math.round(re.top)),new Li(Math.round(re.left+re.width),Math.round(re.top)),new Li(Math.round(re.left+re.width),Math.round(re.height+re.top)),new Li(Math.round(re.left),Math.round(re.height+re.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"),re=this._document.createElement("img"),_e=this._document.createElement("span"),Ve=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",Ve.appendChild(y),re.src=Rh,re.width=1,re.height=1,re.style.margin="0",re.style.padding="0",re.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(re);var ht=re.offsetTop-_e.offsetTop+2;y.removeChild(_e),y.appendChild(this._document.createTextNode(sh)),y.style.lineHeight="normal",re.style.verticalAlign="super";var pt=re.offsetTop-y.offsetTop+2;return Ve.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 re=b.call(this,w,y)||this;return re._activeEffects=[],re.canvas=y.canvas?y.canvas:document.createElement("canvas"),re.ctx=re.canvas.getContext("2d"),y.canvas||(re.canvas.width=Math.floor(y.width*y.scale),re.canvas.height=Math.floor(y.height*y.scale),re.canvas.style.width=y.width+"px",re.canvas.style.height=y.height+"px"),re.fontMetrics=new jd(document),re.ctx.scale(re.options.scale,re.options.scale),re.ctx.translate(-y.x,-y.y),re.ctx.textBaseline="bottom",re._activeEffects=[],re.context.logger.debug("Canvas renderer initialized ("+y.width+"x"+y.height+") with scale "+y.scale),re}return f.prototype.applyEffects=function(w){for(var y=this;this._activeEffects.length;)this.popEffect();w.forEach(function(re){return y.applyEffect(re)})},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(re){switch(re.label){case 0:return y=w.element.container.styles,y.isVisible()?[4,this.renderStackContent(w)]:[3,2];case 1:re.sent(),re.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(li(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,re){var _e=this;if(y===0)this.ctx.fillText(w.text,w.bounds.left,w.bounds.top+re);else{var Ve=bo(w.text);Ve.reduce(function(ht,pt){return _e.ctx.fillText(pt,ht,w.bounds.top+re),ht+_e.ctx.measureText(pt).width},w.bounds.left)}},f.prototype.createFontStyle=function(w){var y=w.fontVariant.filter(function(Ve){return Ve==="normal"||Ve==="small-caps"}).join(""),re=$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,re].join(" "),re,_e]},f.prototype.renderTextNode=function(w,y){return Ae(this,void 0,void 0,function(){var re,_e,Ve,ht,pt,qt,Ar,pr,qr=this;return P(this,function(Ui){return re=this.createFontStyle(y),_e=re[0],Ve=re[1],ht=re[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(Ve,ht),qt=pt.baseline,Ar=pt.middle,pr=y.paintOrder,w.textBounds.forEach(function(Un){pr.forEach(function(gi){switch(gi){case 0:qr.ctx.fillStyle=No(y.color),qr.renderTextWithLetterSpacing(Un,y.letterSpacing,qt);var Wa=y.textShadow;Wa.length&&Un.text.trim().length&&(Wa.slice(0).reverse().forEach(function(ea){qr.ctx.shadowColor=No(ea.color),qr.ctx.shadowOffsetX=ea.offsetX.number*qr.options.scale,qr.ctx.shadowOffsetY=ea.offsetY.number*qr.options.scale,qr.ctx.shadowBlur=ea.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=No(y.textDecorationColor||y.color),y.textDecorationLine.forEach(function(ea){switch(ea){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=No(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,re){if(re&&w.intrinsicWidth>0&&w.intrinsicHeight>0){var _e=Ol(w),Ve=U0(y);this.path(Ve),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(re,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,re,_e,Ve,ht,pt,Yi,Yi,qt,Ar,pr,qr,oo,Ui,Un,Ia,gi,Wa,ea,Yi,Oa,oo,Ia;return P(this,function(ki){switch(ki.label){case 0:this.applyEffects(w.getEffects(4)),y=w.container,re=w.curves,_e=y.styles,Ve=0,ht=y.textNodes,ki.label=1;case 1:return Ve<ht.length?(pt=ht[Ve],[4,this.renderTextNode(pt,_e)]):[3,4];case 2:ki.sent(),ki.label=3;case 3:return Ve++,[3,1];case 4:if(!(y instanceof E0))return[3,8];ki.label=5;case 5:return ki.trys.push([5,7,,8]),[4,this.context.cache.match(y.src)];case 6:return Yi=ki.sent(),this.renderReplacedElement(y,re,Yi),[3,8];case 7:return ki.sent(),this.context.logger.error("Error loading image "+y.src),[3,8];case 8:if(y instanceof Eo&&this.renderReplacedElement(y,re,y.canvas),!(y instanceof yf))return[3,12];ki.label=9;case 9:return ki.trys.push([9,11,,12]),[4,this.context.cache.match(y.svg)];case 10:return Yi=ki.sent(),this.renderReplacedElement(y,re,Yi),[3,12];case 11:return ki.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=ki.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),ki.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 Li(y.bounds.left+pr*.39363,y.bounds.top+pr*.79),new Li(y.bounds.left+pr*.16,y.bounds.top+pr*.5549),new Li(y.bounds.left+pr*.27347,y.bounds.top+pr*.44071),new Li(y.bounds.left+pr*.39694,y.bounds.top+pr*.5649),new Li(y.bounds.left+pr*.72983,y.bounds.top+pr*.23),new Li(y.bounds.left+pr*.84,y.bounds.top+pr*.34085),new Li(y.bounds.left+pr*.39363,y.bounds.top+pr*.79)]),this.ctx.fillStyle=No(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=No(F0),this.ctx.fill(),this.ctx.restore())),If(y)&&y.value.length){switch(qr=this.createFontStyle(_e),oo=qr[0],Ui=qr[1],Un=this.fontMetrics.getMetrics(oo,Ui).baseline,this.ctx.font=oo,this.ctx.fillStyle=No(_e.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=GA(y.styles.textAlign),Ia=Ol(y),gi=0,y.styles.textAlign){case 1:gi+=Ia.width/2;break;case 2:gi+=Ia.width;break}Wa=Ia.add(gi,0,0,-Ia.height/2+1),this.ctx.save(),this.path([new Li(Ia.left,Ia.top),new Li(Ia.left+Ia.width,Ia.top),new Li(Ia.left+Ia.width,Ia.top+Ia.height),new Li(Ia.left,Ia.top+Ia.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Qc(y.value,Wa),_e.letterSpacing,Un),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!li(y.styles.display,2048))return[3,20];if(y.styles.listStyleImage===null)return[3,19];if(ea=y.styles.listStyleImage,ea.type!==0)return[3,18];Yi=void 0,Oa=ea.url,ki.label=15;case 15:return ki.trys.push([15,17,,18]),[4,this.context.cache.match(Oa)];case 16:return Yi=ki.sent(),this.ctx.drawImage(Yi,y.bounds.left-(Yi.width+10),y.bounds.top),[3,18];case 17:return ki.sent(),this.context.logger.error("Error loading list-style-image "+Oa),[3,18];case 18:return[3,20];case 19:w.listValue&&y.styles.listStyleType!==-1&&(oo=this.createFontStyle(_e)[0],this.ctx.font=oo,this.ctx.fillStyle=No(_e.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Ia=new te(y.bounds.left,y.bounds.top+to(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"),ki.label=20;case 20:return[2]}})})},f.prototype.renderStackContent=function(w){return Ae(this,void 0,void 0,function(){var y,re,ea,_e,Ve,ea,ht,pt,ea,qt,Ar,ea,pr,qr,ea,Ui,Un,ea,gi,Wa,ea;return P(this,function(Yi){switch(Yi.label){case 0:if(li(w.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(w.element)];case 1:Yi.sent(),y=0,re=w.negativeZIndex,Yi.label=2;case 2:return y<re.length?(ea=re[y],[4,this.renderStack(ea)]):[3,5];case 3:Yi.sent(),Yi.label=4;case 4:return y++,[3,2];case 5:return[4,this.renderNodeContent(w.element)];case 6:Yi.sent(),_e=0,Ve=w.nonInlineLevel,Yi.label=7;case 7:return _e<Ve.length?(ea=Ve[_e],[4,this.renderNode(ea)]):[3,10];case 8:Yi.sent(),Yi.label=9;case 9:return _e++,[3,7];case 10:ht=0,pt=w.nonPositionedFloats,Yi.label=11;case 11:return ht<pt.length?(ea=pt[ht],[4,this.renderStack(ea)]):[3,14];case 12:Yi.sent(),Yi.label=13;case 13:return ht++,[3,11];case 14:qt=0,Ar=w.nonPositionedInlineLevel,Yi.label=15;case 15:return qt<Ar.length?(ea=Ar[qt],[4,this.renderStack(ea)]):[3,18];case 16:Yi.sent(),Yi.label=17;case 17:return qt++,[3,15];case 18:pr=0,qr=w.inlineLevel,Yi.label=19;case 19:return pr<qr.length?(ea=qr[pr],[4,this.renderNode(ea)]):[3,22];case 20:Yi.sent(),Yi.label=21;case 21:return pr++,[3,19];case 22:Ui=0,Un=w.zeroOrAutoZIndexOrTransformedOrOpacity,Yi.label=23;case 23:return Ui<Un.length?(ea=Un[Ui],[4,this.renderStack(ea)]):[3,26];case 24:Yi.sent(),Yi.label=25;case 25:return Ui++,[3,23];case 26:gi=0,Wa=w.positiveZIndex,Yi.label=27;case 27:return gi<Wa.length?(ea=Wa[gi],[4,this.renderStack(ea)]):[3,30];case 28:Yi.sent(),Yi.label=29;case 29:return gi++,[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(re,_e){var Ve=fc(re)?re.start:re;_e===0?y.ctx.moveTo(Ve.x,Ve.y):y.ctx.lineTo(Ve.x,Ve.y),fc(re)&&y.ctx.bezierCurveTo(re.startControl.x,re.startControl.y,re.endControl.x,re.endControl.y,re.end.x,re.end.y)})},f.prototype.renderRepeat=function(w,y,re,_e){this.path(w),this.ctx.fillStyle=y,this.ctx.translate(re,_e),this.ctx.fill(),this.ctx.translate(-re,-_e)},f.prototype.resizeImage=function(w,y,re){var _e;if(w.width===y&&w.height===re)return w;var Ve=(_e=this.canvas.ownerDocument)!==null&&_e!==void 0?_e:document,ht=Ve.createElement("canvas");ht.width=Math.max(1,y),ht.height=Math.max(1,re);var pt=ht.getContext("2d");return pt.drawImage(w,0,0,w.width,w.height,0,0,y,re),ht},f.prototype.renderBackgroundImage=function(w){return Ae(this,void 0,void 0,function(){var y,re,_e,Ve,ht,pt;return P(this,function(qt){switch(qt.label){case 0:y=w.styles.backgroundImage.length-1,re=function(Ar){var pr,qr,Ui,ti,Yc,sA,yo,_c,Ja,Un,ti,Yc,sA,yo,_c,gi,Wa,ea,Yi,Oa,oo,Ia,ki,ko,Ja,Pa,ti,Ec,oA,yo,_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&&(Ui=Jc(w,y,[pr.width,pr.height,pr.width/pr.height]),ti=Ui[0],Yc=Ui[1],sA=Ui[2],yo=Ui[3],_c=Ui[4],Ja=_e.ctx.createPattern(_e.resizeImage(pr,yo,_c),"repeat"),_e.renderRepeat(ti,Ja,Yc,sA)),[3,6];case 5:VA(Ar)?(Un=Jc(w,y,[null,null,null]),ti=Un[0],Yc=Un[1],sA=Un[2],yo=Un[3],_c=Un[4],gi=Yu(Ar.angle,yo,_c),Wa=gi[0],ea=gi[1],Yi=gi[2],Oa=gi[3],oo=gi[4],Ia=document.createElement("canvas"),Ia.width=yo,Ia.height=_c,ki=Ia.getContext("2d"),ko=ki.createLinearGradient(ea,Oa,Yi,oo),cf(Ar.stops,Wa).forEach(function(Hc){return ko.addColorStop(Hc.stop,No(Hc.color))}),ki.fillStyle=ko,ki.fillRect(0,0,yo,_c),yo>0&&_c>0&&(Ja=_e.ctx.createPattern(Ia,"repeat"),_e.renderRepeat(ti,Ja,Yc,sA))):y0(Ar)&&(Pa=Jc(w,y,[null,null,null]),ti=Pa[0],Ec=Pa[1],oA=Pa[2],yo=Pa[3],_c=Pa[4],pd=Ar.position.length===0?[OA]:Ar.position,Yc=to(pd[0],yo),sA=to(pd[pd.length-1],_c),Au=Xo(Ar,Yc,sA,yo,_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,No(Hc.color))}),_e.path(ti),_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,yo,_c*JA),_e.ctx.restore()):_e.ctx.fill())),md.label=6;case 6:return y--,[2]}})},_e=this,Ve=0,ht=w.styles.backgroundImage.slice(0).reverse(),qt.label=1;case 1:return Ve<ht.length?(pt=ht[Ve],[5,re(pt)]):[3,4];case 2:qt.sent(),qt.label=3;case 3:return Ve++,[3,1];case 4:return[2]}})})},f.prototype.renderSolidBorder=function(w,y,re){return Ae(this,void 0,void 0,function(){return P(this,function(_e){return this.path(Sc(re,y)),this.ctx.fillStyle=No(w),this.ctx.fill(),[2]})})},f.prototype.renderDoubleBorder=function(w,y,re,_e){return Ae(this,void 0,void 0,function(){var Ve,ht;return P(this,function(pt){switch(pt.label){case 0:return y<3?[4,this.renderSolidBorder(w,re,_e)]:[3,2];case 1:return pt.sent(),[2];case 2:return Ve=sc(_e,re),this.path(Ve),this.ctx.fillStyle=No(w),this.ctx.fill(),ht=pc(_e,re),this.path(ht),this.ctx.fill(),[2]}})})},f.prototype.renderNodeBackgroundAndBorders=function(w){return Ae(this,void 0,void 0,function(){var y,re,_e,Ve,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,re=!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}],Ve=hd(iA(y.backgroundClip,0),w.curves),re||y.boxShadow.length?(this.ctx.save(),this.path(Ve),this.ctx.clip(),zo(y.backgroundColor)||(this.ctx.fillStyle=No(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(Ui){pr.ctx.save();var Un=Ys(w.curves),gi=Ui.inset?0:ua,Wa=Cp(Un,-gi+(Ui.inset?1:-1)*Ui.spread.number,(Ui.inset?1:-1)*Ui.spread.number,Ui.spread.number*(Ui.inset?-2:2),Ui.spread.number*(Ui.inset?-2:2));Ui.inset?(pr.path(Un),pr.ctx.clip(),pr.mask(Wa)):(pr.mask(Un),pr.ctx.clip(),pr.path(Wa)),pr.ctx.shadowOffsetX=Ui.offsetX.number+gi,pr.ctx.shadowOffsetY=Ui.offsetY.number,pr.ctx.shadowColor=No(Ui.color),pr.ctx.shadowBlur=Ui.blur.number,pr.ctx.fillStyle=Ui.inset?No(Ui.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,re,_e,Ve){return Ae(this,void 0,void 0,function(){var ht,pt,qt,Ar,pr,qr,Ui,Un,gi,Wa,ea,Yi,Oa,oo,Ia,ki,Ia,ki;return P(this,function(ko){return this.ctx.save(),ht=sm(_e,re),pt=Sc(_e,re),Ve===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),re===0||re===2?Ui=Math.abs(qt-pr):Ui=Math.abs(Ar-qr),this.ctx.beginPath(),Ve===3?this.formatPath(ht):this.formatPath(pt.slice(0,2)),Un=y<3?y*3:y*2,gi=y<3?y*2:y,Ve===3&&(Un=y,gi=y),Wa=!0,Ui<=Un*2?Wa=!1:Ui<=Un*2+gi?(ea=Ui/(2*Un+gi),Un*=ea,gi*=ea):(Yi=Math.floor((Ui+gi)/(Un+gi)),Oa=(Ui-Yi*Un)/(Yi-1),oo=(Ui-(Yi+1)*Un)/Yi,gi=oo<=0||Math.abs(gi-Oa)<Math.abs(gi-oo)?Oa:oo),Wa&&(Ve===3?this.ctx.setLineDash([0,Un+gi]):this.ctx.setLineDash([Un,gi])),Ve===3?(this.ctx.lineCap="round",this.ctx.lineWidth=y):this.ctx.lineWidth=y*2+1.1,this.ctx.strokeStyle=No(w),this.ctx.stroke(),this.ctx.setLineDash([]),Ve===2&&(fc(pt[0])&&(Ia=pt[3],ki=pt[0],this.ctx.beginPath(),this.formatPath([new Li(Ia.end.x,Ia.end.y),new Li(ki.start.x,ki.start.y)]),this.ctx.stroke()),fc(pt[1])&&(Ia=pt[1],ki=pt[2],this.ctx.beginPath(),this.formatPath([new Li(Ia.end.x,Ia.end.y),new Li(ki.start.x,ki.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(re){switch(re.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=No(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 re.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 re=b.call(this,w,y)||this;return re.canvas=y.canvas?y.canvas:document.createElement("canvas"),re.ctx=re.canvas.getContext("2d"),re.options=y,re.canvas.width=Math.floor(y.width*y.scale),re.canvas.height=Math.floor(y.height*y.scale),re.canvas.style.width=y.width+"px",re.canvas.style.height=y.height+"px",re.ctx.scale(re.options.scale,re.options.scale),re.ctx.translate(-y.x,-y.y),re.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+y.width+"x"+y.height+" at "+y.x+","+y.y+") with scale "+y.scale),re}return f.prototype.render=function(w){return Ae(this,void 0,void 0,function(){var y,re;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 re=_e.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=No(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(re,-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,Ne([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,Ne([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,Ne([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,Ne([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,re,_e,Ve,ht,pt,qt,Ar,pr,qr,Ui,Un,gi,Wa,ea,Yi,Oa,oo,Ia,ko,ki,ko,Ja,Pa,ti,Ec,oA,yo,_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 re={allowTaint:(Ja=f.allowTaint)!==null&&Ja!==void 0?Ja:!1,imageTimeout:(Pa=f.imageTimeout)!==null&&Pa!==void 0?Pa:15e3,proxy:f.proxy,useCORS:(ti=f.useCORS)!==null&&ti!==void 0?ti:!1},_e=pe({logging:(Ec=f.logging)!==null&&Ec!==void 0?Ec:!0,cache:f.cache},re),Ve={windowWidth:(oA=f.windowWidth)!==null&&oA!==void 0?oA:y.innerWidth,windowHeight:(yo=f.windowHeight)!==null&&yo!==void 0?yo: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(Ve.scrollX,Ve.scrollY,Ve.windowWidth,Ve.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 N0(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 Ui=JA.sent(),Un=Ls(qr)||Um(qr)?S(qr.ownerDocument):V(pt,qr),gi=Un.width,Wa=Un.height,ea=Un.left,Yi=Un.top,Oa=Yl(pt,qr,f.backgroundColor),oo={canvas:f.canvas,backgroundColor:Oa,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)+ea,y:((Pu=f.y)!==null&&Pu!==void 0?Pu:0)+Yi,width:(LA=f.width)!==null&&LA!==void 0?LA:Math.ceil(gi),height:(Tu=f.height)!==null&&Tu!==void 0?Tu:Math.ceil(Wa)},qt?(pt.logger.debug("Document cloned, using foreign object rendering"),ko=new aA(pt,oo),[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 "+ea+","+Yi+" with size "+gi+"x"+Wa+" using computed rendering"),pt.logger.debug("Starting DOM parsing"),ki=pp(pt,qr),Oa===ki.styles.backgroundColor&&(ki.styles.backgroundColor=rl.TRANSPARENT),pt.logger.debug("Starting renderer for element at "+oo.x+","+oo.y+" with size "+oo.width+"x"+oo.height),ko=new sl(pt,oo),[4,ko.render(ki)];case 4:Ia=JA.sent(),JA.label=5;case 5:return(!((Zd=f.removeContainer)!==null&&Zd!==void 0)||Zd)&&(N0.destroy(Ui)||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,re=y.documentElement?eA(b,getComputedStyle(y.documentElement).backgroundColor):rl.TRANSPARENT,_e=y.body?eA(b,getComputedStyle(y.body).backgroundColor):rl.TRANSPARENT,Ve=typeof w=="string"?eA(b,w):w===null?rl.TRANSPARENT:4294967295;return f===y.documentElement?zo(re)?zo(_e)?Ve:_e:re:Ve};return Vm})},44164:function(un,Tt,x){var pe=x(97671);(function(P,Ne){un.exports=Ne(x(65355),x(64270))})(self,function(Ae,P){return function(){var Ne={"./src/plugin/hyperlinks.js":function(g,F,v){"use strict";v.r(F);var $=v("./node_modules/core-js/modules/web.dom-collections.for-each.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.string.link.js"),O=v.n(M),T=v("./src/worker.js"),L=v("./src/utils.js"),Y=[],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 J=this.prop.container,W=J.querySelectorAll("a"),K=(0,L.unitConvert)(J.getBoundingClientRect(),this.prop.pageSize.k);Y=[],Array.prototype.forEach.call(W,function(le){for(var me=le.getClientRects(),Oe=0;Oe<me.length;Oe++){var Be=(0,L.unitConvert)(me[Oe],this.prop.pageSize.k);Be.left-=K.left,Be.top-=K.top;var Ue=Math.floor(Be.top/this.prop.pageSize.inner.height)+1,ee=this.opt.margin[0]+Be.top%this.prop.pageSize.inner.height,fe=this.opt.margin[1]+Be.left;Y.push({page:Ue,top:ee,left:fe,clientRect:Be,link:le})}},this)}})},T.default.prototype.toPdf=function(){return R.toPdf.call(this).then(function(){if(this.opt.enableLinks){Y.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 J=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(J)}})}},"./src/plugin/jspdf-plugin.js":function(g,F,v){"use strict";v.r(F);var $=v("./node_modules/core-js/modules/es.symbol.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.symbol.description.js"),O=v.n(M),T=v("./node_modules/core-js/modules/es.object.to-string.js"),L=v.n(T),Y=v("./node_modules/core-js/modules/es.symbol.iterator.js"),R=v.n(Y),se=v("./node_modules/core-js/modules/es.array.iterator.js"),ne=v.n(se),J=v("./node_modules/core-js/modules/es.string.iterator.js"),W=v.n(J),K=v("./node_modules/core-js/modules/web.dom-collections.iterator.js"),le=v.n(K),me=v("jspdf"),Oe=v.n(me);function Be(Ue){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(fe){return typeof fe}:Be=function(fe){return fe&&typeof Symbol=="function"&&fe.constructor===Symbol&&fe!==Symbol.prototype?"symbol":typeof fe},Be(Ue)}me.jsPDF.getPageSize=function(Ue,ee,fe){if(Be(Ue)==="object"){var D=Ue;Ue=D.orientation,ee=D.unit||ee,fe=D.format||fe}ee=ee||"mm",fe=fe||"a4",Ue=(""+(Ue||"P")).toLowerCase();var Ye=(""+fe).toLowerCase(),Le={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(ee){case"pt":var Ce=1;break;case"mm":var Ce=72/25.4;break;case"cm":var Ce=72/2.54;break;case"in":var Ce=72;break;case"px":var Ce=72/96;break;case"pc":var Ce=12;break;case"em":var Ce=12;break;case"ex":var Ce=6;break;default:throw"Invalid unit: "+ee}if(Le.hasOwnProperty(Ye))var Te=Le[Ye][1]/Ce,be=Le[Ye][0]/Ce;else try{var Te=fe[1],be=fe[0]}catch(Ee){throw new Error("Invalid format: "+fe)}if(Ue==="p"||Ue==="portrait"){if(Ue="p",be>Te){var ke=be;be=Te,Te=ke}}else if(Ue==="l"||Ue==="landscape"){if(Ue="l",Te>be){var ke=be;be=Te,Te=ke}}else throw"Invalid orientation: "+Ue;var he={width:be,height:Te,unit:ee,k:Ce};return he},F.default=me.jsPDF},"./src/plugin/pagebreaks.js":function(g,F,v){"use strict";v.r(F);var $=v("./node_modules/core-js/modules/es.array.concat.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.array.slice.js"),O=v.n(M),T=v("./node_modules/core-js/modules/es.array.join.js"),L=v.n(T),Y=v("./node_modules/core-js/modules/web.dom-collections.for-each.js"),R=v.n(Y),se=v("./node_modules/core-js/modules/es.object.keys.js"),ne=v.n(se),J=v("./src/worker.js"),W=v("./src/utils.js"),K={toContainer:J.default.prototype.toContainer};J.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},J.default.prototype.toContainer=function(){return K.toContainer.call(this).then(function(){var Oe=this.prop.container,Be=this.prop.pageSize.inner.px.height,Ue=[].concat(this.opt.pagebreak.mode),ee={avoidAll:Ue.indexOf("avoid-all")!==-1,css:Ue.indexOf("css")!==-1,legacy:Ue.indexOf("legacy")!==-1},fe={},D=this;["before","after","avoid"].forEach(function(Ce){var Te=ee.avoidAll&&Ce==="avoid";fe[Ce]=Te?[]:[].concat(D.opt.pagebreak[Ce]||[]),fe[Ce].length>0&&(fe[Ce]=Array.prototype.slice.call(Oe.querySelectorAll(fe[Ce].join(", "))))});var Ye=Oe.querySelectorAll(".html2pdf__page-break");Ye=Array.prototype.slice.call(Ye);var Le=Oe.querySelectorAll("*");Array.prototype.forEach.call(Le,function(Te){var be={before:!1,after:ee.legacy&&Ye.indexOf(Te)!==-1,avoid:ee.avoidAll};if(ee.css){var ke=window.getComputedStyle(Te),he=["always","page","left","right"],Ee=["avoid","avoid-page"];be={before:be.before||he.indexOf(ke.breakBefore||ke.pageBreakBefore)!==-1,after:be.after||he.indexOf(ke.breakAfter||ke.pageBreakAfter)!==-1,avoid:be.avoid||Ee.indexOf(ke.breakInside||ke.pageBreakInside)!==-1}}Object.keys(be).forEach(function(Lt){be[Lt]=be[Lt]||fe[Lt].indexOf(Te)!==-1});var Xe=Te.getBoundingClientRect();if(be.avoid&&!be.before){var et=Math.floor(Xe.top/Be),ze=Math.floor(Xe.bottom/Be),qe=Math.abs(Xe.bottom-Xe.top)/Be;ze!==et&&qe<=1&&(be.before=!0)}if(be.before){var Et=(0,W.createElement)("div",{style:{display:"block",height:Be-Xe.top%Be+"px"}});Te.parentNode.insertBefore(Et,Te)}if(be.after){var Et=(0,W.createElement)("div",{style:{display:"block",height:Be-Xe.bottom%Be+"px"}});Te.parentNode.insertBefore(Et,Te.nextSibling)}})})}},"./src/utils.js":function(g,F,v){"use strict";v.r(F),v.d(F,{objType:function(){return Ue},createElement:function(){return ee},cloneNode:function(){return fe},unitConvert:function(){return D},toPx:function(){return Ye}});var $=v("./node_modules/core-js/modules/es.number.constructor.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.symbol.js"),O=v.n(M),T=v("./node_modules/core-js/modules/es.symbol.description.js"),L=v.n(T),Y=v("./node_modules/core-js/modules/es.object.to-string.js"),R=v.n(Y),se=v("./node_modules/core-js/modules/es.symbol.iterator.js"),ne=v.n(se),J=v("./node_modules/core-js/modules/es.array.iterator.js"),W=v.n(J),K=v("./node_modules/core-js/modules/es.string.iterator.js"),le=v.n(K),me=v("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Oe=v.n(me);function Be(Le){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(Te){return typeof Te}:Be=function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},Be(Le)}var Ue=function(Ce){var Te=Be(Ce);return Te==="undefined"?"undefined":Te==="string"||Ce instanceof String?"string":Te==="number"||Ce instanceof Number?"number":Te==="function"||Ce instanceof Function?"function":Ce&&Ce.constructor===Array?"array":Ce&&Ce.nodeType===1?"element":Te==="object"?"object":"unknown"},ee=function(Ce,Te){var be=document.createElement(Ce);if(Te.className&&(be.className=Te.className),Te.innerHTML){be.innerHTML=Te.innerHTML;for(var ke=be.getElementsByTagName("script"),he=ke.length;he-- >0;null)ke[he].parentNode.removeChild(ke[he])}for(var Ee in Te.style)be.style[Ee]=Te.style[Ee];return be},fe=function Le(Ce,Te){for(var be=Ce.nodeType===3?document.createTextNode(Ce.nodeValue):Ce.cloneNode(!1),ke=Ce.firstChild;ke;ke=ke.nextSibling)(Te===!0||ke.nodeType!==1||ke.nodeName!=="SCRIPT")&&be.appendChild(Le(ke,Te));return Ce.nodeType===1&&(Ce.nodeName==="CANVAS"?(be.width=Ce.width,be.height=Ce.height,be.getContext("2d").drawImage(Ce,0,0)):(Ce.nodeName==="TEXTAREA"||Ce.nodeName==="SELECT")&&(be.value=Ce.value),be.addEventListener("load",function(){be.scrollTop=Ce.scrollTop,be.scrollLeft=Ce.scrollLeft},!0)),be},D=function(Ce,Te){if(Ue(Ce)==="number")return Ce*72/96/Te;var be={};for(var ke in Ce)be[ke]=Ce[ke]*72/96/Te;return be},Ye=function(Ce,Te){return Math.floor(Ce*Te/72*96)}},"./src/worker.js":function(g,F,v){"use strict";v.r(F);var $=v("./node_modules/core-js/modules/es.object.assign.js"),_=v.n($),M=v("./node_modules/core-js/modules/es.array.map.js"),O=v.n(M),T=v("./node_modules/core-js/modules/es.object.keys.js"),L=v.n(T),Y=v("./node_modules/core-js/modules/es.array.concat.js"),R=v.n(Y),se=v("./node_modules/core-js/modules/es.object.to-string.js"),ne=v.n(se),J=v("./node_modules/core-js/modules/es.regexp.to-string.js"),W=v.n(J),K=v("./node_modules/core-js/modules/es.function.name.js"),le=v.n(K),me=v("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Oe=v.n(me),Be=v("jspdf"),Ue=v.n(Be),ee=v("html2canvas"),fe=v.n(ee),D=v("./src/utils.js"),Ye=v("./node_modules/es6-promise/dist/es6-promise.js"),Le=v.n(Ye),Ce=Le().Promise,Te=function be(ke){var he=Object.assign(be.convert(Ce.resolve()),JSON.parse(JSON.stringify(be.template))),Ee=be.convert(Ce.resolve(),he);return Ee=Ee.setProgress(1,be,1,[be]),Ee=Ee.set(ke),Ee};Te.prototype=Object.create(Ce.prototype),Te.prototype.constructor=Te,Te.convert=function(ke,he){return ke.__proto__=he||Te.prototype,ke},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(ke,he){function Ee(Xe){switch((0,D.objType)(Xe)){case"string":return"string";case"element":return Xe.nodeName.toLowerCase&&Xe.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(he=he||Ee(ke),he){case"string":return this.set({src:(0,D.createElement)("div",{innerHTML:ke})});case"element":return this.set({src:ke});case"canvas":return this.set({canvas:ke});case"img":return this.set({img:ke});default:return this.error("Unknown source type.")}})},Te.prototype.to=function(ke){switch(ke){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 ke=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ke).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)"},Xe={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 et=(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:Xe}),this.prop.container.appendChild(et),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},Te.prototype.toCanvas=function(){var ke=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(ke).then(function(){var Ee=Object.assign({},this.opt.html2canvas);return delete Ee.onrendered,ee(this.prop.container,Ee)}).then(function(Ee){var Xe=this.opt.html2canvas.onrendered||function(){};Xe(Ee),this.prop.canvas=Ee,document.body.removeChild(this.prop.overlay)})},Te.prototype.toImg=function(){var ke=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(ke).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 ke=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(ke).then(function(){var Ee=this.prop.canvas,Xe=this.opt,et=Ee.height,ze=Math.floor(Ee.width*this.prop.pageSize.inner.ratio),qe=Math.ceil(et/ze),Et=this.prop.pageSize.inner.height,Lt=document.createElement("canvas"),Ot=Lt.getContext("2d");Lt.width=Ee.width,Lt.height=ze,this.prop.pdf=this.prop.pdf||new Be.jsPDF(Xe.jsPDF);for(var sr=0;sr<qe;sr++){sr===qe-1&&et%ze!==0&&(Lt.height=et%ze,Et=Lt.height*this.prop.pageSize.inner.width/Lt.width);var er=Lt.width,yr=Lt.height;Ot.fillStyle="white",Ot.fillRect(0,0,er,yr),Ot.drawImage(Ee,0,sr*ze,er,yr,0,0,er,yr),sr&&this.prop.pdf.addPage();var lr=Lt.toDataURL("image/"+Xe.image.type,Xe.image.quality);this.prop.pdf.addImage(lr,Xe.image.type,Xe.margin[1],Xe.margin[0],this.prop.pageSize.inner.width,Et)}})},Te.prototype.output=function(ke,he,Ee){return Ee=Ee||"pdf",Ee.toLowerCase()==="img"||Ee.toLowerCase()==="image"?this.outputImg(ke,he):this.outputPdf(ke,he)},Te.prototype.outputPdf=function(ke,he){var Ee=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Ee).then(function(){return this.prop.pdf.output(ke,he)})},Te.prototype.outputImg=function(ke,he){var Ee=[function(){return this.prop.img||this.toImg()}];return this.thenList(Ee).then(function(){switch(ke){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 "'+ke+'" is not supported.'}})},Te.prototype.save=function(ke){var he=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(he).set(ke?{filename:ke}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Te.prototype.set=function(ke){if((0,D.objType)(ke)!=="object")return this;var he=Object.keys(ke||{}).map(function(Ee){switch(Ee){case"margin":return this.setMargin.bind(this,ke.margin);case"jsPDF":return function(){return this.opt.jsPDF=ke.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,ke.pageSize);default:return Ee in Te.template.prop?function(){this.prop[Ee]=ke[Ee]}:function(){this.opt[Ee]=ke[Ee]}}},this);return this.then(function(){return this.thenList(he)})},Te.prototype.get=function(ke,he){return this.then(function(){var Xe=ke in Te.template.prop?this.prop[ke]:this.opt[ke];return he?he(Xe):Xe})},Te.prototype.setMargin=function(ke){return this.then(function(){switch((0,D.objType)(ke)){case"number":ke=[ke,ke,ke,ke];case"array":if(ke.length===2&&(ke=[ke[0],ke[1],ke[0],ke[1]]),ke.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=ke}).then(this.setPageSize)},Te.prototype.setPageSize=function(ke){return this.then(function(){ke=ke||Be.jsPDF.getPageSize(this.opt.jsPDF),ke.hasOwnProperty("inner")||(ke.inner={width:ke.width-this.opt.margin[1]-this.opt.margin[3],height:ke.height-this.opt.margin[0]-this.opt.margin[2]},ke.inner.px={width:(0,D.toPx)(ke.inner.width,ke.k),height:(0,D.toPx)(ke.inner.height,ke.k)},ke.inner.ratio=ke.inner.height/ke.inner.width),this.prop.pageSize=ke})},Te.prototype.setProgress=function(ke,he,Ee,Xe){return ke!=null&&(this.progress.val=ke),he!=null&&(this.progress.state=he),Ee!=null&&(this.progress.n=Ee),Xe!=null&&(this.progress.stack=Xe),this.progress.ratio=this.progress.val/this.progress.state,this},Te.prototype.updateProgress=function(ke,he,Ee,Xe){return this.setProgress(ke?this.progress.val+ke:null,he||null,Ee?this.progress.n+Ee:null,Xe?this.progress.stack.concat(Xe):null)},Te.prototype.then=function(ke,he){var Ee=this;return this.thenCore(ke,he,function(et,ze){return Ee.updateProgress(null,null,1,[et]),Ce.prototype.then.call(this,function(Et){return Ee.updateProgress(null,et),Et}).then(et,ze).then(function(Et){return Ee.updateProgress(1),Et})})},Te.prototype.thenCore=function(ke,he,Ee){Ee=Ee||Ce.prototype.then;var Xe=this;ke&&(ke=ke.bind(Xe)),he&&(he=he.bind(Xe));var et=Ce.toString().indexOf("[native code]")!==-1&&Ce.name==="Promise",ze=et?Xe:Te.convert(Object.assign({},Xe),Ce.prototype),qe=Ee.call(ze,ke,he);return Te.convert(qe,Xe.__proto__)},Te.prototype.thenExternal=function(ke,he){return Ce.prototype.then.call(this,ke,he)},Te.prototype.thenList=function(ke){var he=this;return ke.forEach(function(Xe){he=he.thenCore(Xe)}),he},Te.prototype.catch=function(be){be&&(be=be.bind(this));var ke=Ce.prototype.catch.call(this,be);return Te.convert(ke,this)},Te.prototype.catchExternal=function(ke){return Ce.prototype.catch.call(this,ke)},Te.prototype.error=function(ke){return this.then(function(){throw new Error(ke)})},Te.prototype.using=Te.prototype.set,Te.prototype.saveAs=Te.prototype.save,Te.prototype.export=Te.prototype.output,Te.prototype.run=Te.prototype.then,F.default=Te},"./node_modules/core-js/internals/a-function.js":function(g){g.exports=function(F){if(typeof F!="function")throw TypeError(String(F)+" is not a function");return F}},"./node_modules/core-js/internals/a-possible-prototype.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js");g.exports=function(_){if(!$(_)&&_!==null)throw TypeError("Can't set "+String(_)+" as a prototype");return _}},"./node_modules/core-js/internals/add-to-unscopables.js":function(g,F,v){var $=v("./node_modules/core-js/internals/well-known-symbol.js"),_=v("./node_modules/core-js/internals/object-create.js"),M=v("./node_modules/core-js/internals/object-define-property.js"),O=$("unscopables"),T=Array.prototype;T[O]==null&&M.f(T,O,{configurable:!0,value:_(null)}),g.exports=function(L){T[O][L]=!0}},"./node_modules/core-js/internals/an-object.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js");g.exports=function(_){if(!$(_))throw TypeError(String(_)+" is not an object");return _}},"./node_modules/core-js/internals/array-for-each.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/array-iteration.js").forEach,_=v("./node_modules/core-js/internals/array-method-is-strict.js"),M=_("forEach");g.exports=M?[].forEach:function(T){return $(this,T,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-indexed-object.js"),_=v("./node_modules/core-js/internals/to-length.js"),M=v("./node_modules/core-js/internals/to-absolute-index.js"),O=function(T){return function(L,Y,R){var se=$(L),ne=_(se.length),J=M(R,ne),W;if(T&&Y!=Y){for(;ne>J;)if(W=se[J++],W!=W)return!0}else for(;ne>J;J++)if((T||J in se)&&se[J]===Y)return T||J||0;return!T&&-1}};g.exports={includes:O(!0),indexOf:O(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(g,F,v){var $=v("./node_modules/core-js/internals/function-bind-context.js"),_=v("./node_modules/core-js/internals/indexed-object.js"),M=v("./node_modules/core-js/internals/to-object.js"),O=v("./node_modules/core-js/internals/to-length.js"),T=v("./node_modules/core-js/internals/array-species-create.js"),L=[].push,Y=function(R){var se=R==1,ne=R==2,J=R==3,W=R==4,K=R==6,le=R==7,me=R==5||K;return function(Oe,Be,Ue,ee){for(var fe=M(Oe),D=_(fe),Ye=$(Be,Ue,3),Le=O(D.length),Ce=0,Te=ee||T,be=se?Te(Oe,Le):ne||le?Te(Oe,0):void 0,ke,he;Le>Ce;Ce++)if((me||Ce in D)&&(ke=D[Ce],he=Ye(ke,Ce,fe),R))if(se)be[Ce]=he;else if(he)switch(R){case 3:return!0;case 5:return ke;case 6:return Ce;case 2:L.call(be,ke)}else switch(R){case 4:return!1;case 7:L.call(be,ke)}return K?-1:J||W?W:be}};g.exports={forEach:Y(0),map:Y(1),filter:Y(2),some:Y(3),every:Y(4),find:Y(5),findIndex:Y(6),filterReject:Y(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js"),_=v("./node_modules/core-js/internals/well-known-symbol.js"),M=v("./node_modules/core-js/internals/engine-v8-version.js"),O=_("species");g.exports=function(T){return M>=51||!$(function(){var L=[],Y=L.constructor={};return Y[O]=function(){return{foo:1}},L[T](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/fails.js");g.exports=function(_,M){var O=[][_];return!!O&&$(function(){O.call(null,M||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js"),_=v("./node_modules/core-js/internals/is-array.js"),M=v("./node_modules/core-js/internals/well-known-symbol.js"),O=M("species");g.exports=function(T){var L;return _(T)&&(L=T.constructor,typeof L=="function"&&(L===Array||_(L.prototype))?L=void 0:$(L)&&(L=L[O],L===null&&(L=void 0))),L===void 0?Array:L}},"./node_modules/core-js/internals/array-species-create.js":function(g,F,v){var $=v("./node_modules/core-js/internals/array-species-constructor.js");g.exports=function(_,M){return new($(_))(M===0?0:M)}},"./node_modules/core-js/internals/classof-raw.js":function(g){var F={}.toString;g.exports=function(v){return F.call(v).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-string-tag-support.js"),_=v("./node_modules/core-js/internals/classof-raw.js"),M=v("./node_modules/core-js/internals/well-known-symbol.js"),O=M("toStringTag"),T=_(function(){return arguments}())=="Arguments",L=function(Y,R){try{return Y[R]}catch(se){}};g.exports=$?_:function(Y){var R,se,ne;return Y===void 0?"Undefined":Y===null?"Null":typeof(se=L(R=Object(Y),O))=="string"?se:T?_(R):(ne=_(R))=="Object"&&typeof R.callee=="function"?"Arguments":ne}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(g,F,v){var $=v("./node_modules/core-js/internals/has.js"),_=v("./node_modules/core-js/internals/own-keys.js"),M=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),O=v("./node_modules/core-js/internals/object-define-property.js");g.exports=function(T,L){for(var Y=_(L),R=O.f,se=M.f,ne=0;ne<Y.length;ne++){var J=Y[ne];$(T,J)||R(T,J,se(L,J))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js");g.exports=!$(function(){function _(){}return _.prototype.constructor=null,Object.getPrototypeOf(new _)!==_.prototype})},"./node_modules/core-js/internals/create-html.js":function(g,F,v){var $=v("./node_modules/core-js/internals/require-object-coercible.js"),_=v("./node_modules/core-js/internals/to-string.js"),M=/"/g;g.exports=function(O,T,L,Y){var R=_($(O)),se="<"+T;return L!==""&&(se+=" "+L+'="'+_(Y).replace(M,"&quot;")+'"'),se+">"+R+"</"+T+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,_=v("./node_modules/core-js/internals/object-create.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js"),O=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(Y,R,se){var ne=R+" Iterator";return Y.prototype=_($,{next:M(1,se)}),O(Y,ne,!1,!0),T[ne]=L,Y}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/object-define-property.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js");g.exports=$?function(O,T,L){return _.f(O,T,M(1,L))}:function(O,T,L){return O[T]=L,O}},"./node_modules/core-js/internals/create-property-descriptor.js":function(g){g.exports=function(F,v){return{enumerable:!(F&1),configurable:!(F&2),writable:!(F&4),value:v}}},"./node_modules/core-js/internals/create-property.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/to-property-key.js"),_=v("./node_modules/core-js/internals/object-define-property.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js");g.exports=function(O,T,L){var Y=$(T);Y in O?_.f(O,Y,M(0,L)):O[Y]=L}},"./node_modules/core-js/internals/define-iterator.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/create-iterator-constructor.js"),M=v("./node_modules/core-js/internals/object-get-prototype-of.js"),O=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"),Y=v("./node_modules/core-js/internals/redefine.js"),R=v("./node_modules/core-js/internals/well-known-symbol.js"),se=v("./node_modules/core-js/internals/is-pure.js"),ne=v("./node_modules/core-js/internals/iterators.js"),J=v("./node_modules/core-js/internals/iterators-core.js"),W=J.IteratorPrototype,K=J.BUGGY_SAFARI_ITERATORS,le=R("iterator"),me="keys",Oe="values",Be="entries",Ue=function(){return this};g.exports=function(ee,fe,D,Ye,Le,Ce,Te){_(D,fe,Ye);var be=function(Ot){if(Ot===Le&&et)return et;if(!K&&Ot in Ee)return Ee[Ot];switch(Ot){case me:return function(){return new D(this,Ot)};case Oe:return function(){return new D(this,Ot)};case Be:return function(){return new D(this,Ot)}}return function(){return new D(this)}},ke=fe+" Iterator",he=!1,Ee=ee.prototype,Xe=Ee[le]||Ee["@@iterator"]||Le&&Ee[Le],et=!K&&Xe||be(Le),ze=fe=="Array"&&Ee.entries||Xe,qe,Et,Lt;if(ze&&(qe=M(ze.call(new ee)),W!==Object.prototype&&qe.next&&(!se&&M(qe)!==W&&(O?O(qe,W):typeof qe[le]!="function"&&L(qe,le,Ue)),T(qe,ke,!0,!0),se&&(ne[ke]=Ue))),Le==Oe&&Xe&&Xe.name!==Oe&&(he=!0,et=function(){return Xe.call(this)}),(!se||Te)&&Ee[le]!==et&&L(Ee,le,et),ne[fe]=et,Le)if(Et={values:be(Oe),keys:Ce?et:be(me),entries:be(Be)},Te)for(Lt in Et)(K||he||!(Lt in Ee))&&Y(Ee,Lt,Et[Lt]);else $({target:fe,proto:!0,forced:K||he},Et);return Et}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(g,F,v){var $=v("./node_modules/core-js/internals/path.js"),_=v("./node_modules/core-js/internals/has.js"),M=v("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),O=v("./node_modules/core-js/internals/object-define-property.js").f;g.exports=function(T){var L=$.Symbol||($.Symbol={});_(L,T)||O(L,T,{value:M.f(T)})}},"./node_modules/core-js/internals/descriptors.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js");g.exports=!$(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/is-object.js"),M=$.document,O=_(M)&&_(M.createElement);g.exports=function(T){return O?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,F,v){var $=v("./node_modules/core-js/internals/get-built-in.js");g.exports=$("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/engine-user-agent.js"),M=$.process,O=$.Deno,T=M&&M.versions||O&&O.version,L=T&&T.v8,Y,R;L?(Y=L.split("."),R=Y[0]<4?1:Y[0]+Y[1]):_&&(Y=_.match(/Edge\/(\d+)/),(!Y||Y[1]>=74)&&(Y=_.match(/Chrome\/(\d+)/),Y&&(R=Y[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,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=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"),O=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"),Y=v("./node_modules/core-js/internals/is-forced.js");g.exports=function(R,se){var ne=R.target,J=R.global,W=R.stat,K,le,me,Oe,Be,Ue;if(J?le=$:W?le=$[ne]||T(ne,{}):le=($[ne]||{}).prototype,le)for(me in se){if(Be=se[me],R.noTargetGet?(Ue=_(le,me),Oe=Ue&&Ue.value):Oe=le[me],K=Y(J?me:ne+(W?".":"#")+me,R.forced),!K&&Oe!==void 0){if(typeof Be==typeof Oe)continue;L(Be,Oe)}(R.sham||Oe&&Oe.sham)&&M(Be,"sham",!0),O(le,me,Be,R)}}},"./node_modules/core-js/internals/fails.js":function(g){g.exports=function(F){try{return!!F()}catch(v){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(g,F,v){var $=v("./node_modules/core-js/internals/a-function.js");g.exports=function(_,M,O){if($(_),M===void 0)return _;switch(O){case 0:return function(){return _.call(M)};case 1:return function(T){return _.call(M,T)};case 2:return function(T,L){return _.call(M,T,L)};case 3:return function(T,L,Y){return _.call(M,T,L,Y)}}return function(){return _.apply(M,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=function(M){return typeof M=="function"?M:void 0};g.exports=function(M,O){return arguments.length<2?_($[M]):$[M]&&$[M][O]}},"./node_modules/core-js/internals/global.js":function(g){var F=function(v){return v&&v.Math==Math&&v};g.exports=F(typeof globalThis=="object"&&globalThis)||F(typeof window=="object"&&window)||F(typeof self=="object"&&self)||F(typeof x.g=="object"&&x.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-object.js"),_={}.hasOwnProperty;g.exports=Object.hasOwn||function(O,T){return _.call($(O),T)}},"./node_modules/core-js/internals/hidden-keys.js":function(g){g.exports={}},"./node_modules/core-js/internals/html.js":function(g,F,v){var $=v("./node_modules/core-js/internals/get-built-in.js");g.exports=$("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/fails.js"),M=v("./node_modules/core-js/internals/document-create-element.js");g.exports=!$&&!_(function(){return Object.defineProperty(M("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js"),_=v("./node_modules/core-js/internals/classof-raw.js"),M="".split;g.exports=$(function(){return!Object("z").propertyIsEnumerable(0)})?function(O){return _(O)=="String"?M.call(O,""):Object(O)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js"),_=v("./node_modules/core-js/internals/object-set-prototype-of.js");g.exports=function(M,O,T){var L,Y;return _&&typeof(L=O.constructor)=="function"&&L!==T&&$(Y=L.prototype)&&Y!==T.prototype&&_(M,Y),M}},"./node_modules/core-js/internals/inspect-source.js":function(g,F,v){var $=v("./node_modules/core-js/internals/shared-store.js"),_=Function.toString;typeof $.inspectSource!="function"&&($.inspectSource=function(M){return _.call(M)}),g.exports=$.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(g,F,v){var $=v("./node_modules/core-js/internals/native-weak-map.js"),_=v("./node_modules/core-js/internals/global.js"),M=v("./node_modules/core-js/internals/is-object.js"),O=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"),Y=v("./node_modules/core-js/internals/shared-key.js"),R=v("./node_modules/core-js/internals/hidden-keys.js"),se="Object already initialized",ne=_.WeakMap,J,W,K,le=function(D){return K(D)?W(D):J(D,{})},me=function(D){return function(Ye){var Le;if(!M(Ye)||(Le=W(Ye)).type!==D)throw TypeError("Incompatible receiver, "+D+" required");return Le}};if($||L.state){var Oe=L.state||(L.state=new ne),Be=Oe.get,Ue=Oe.has,ee=Oe.set;J=function(D,Ye){if(Ue.call(Oe,D))throw new TypeError(se);return Ye.facade=D,ee.call(Oe,D,Ye),Ye},W=function(D){return Be.call(Oe,D)||{}},K=function(D){return Ue.call(Oe,D)}}else{var fe=Y("state");R[fe]=!0,J=function(D,Ye){if(T(D,fe))throw new TypeError(se);return Ye.facade=D,O(D,fe,Ye),Ye},W=function(D){return T(D,fe)?D[fe]:{}},K=function(D){return T(D,fe)}}g.exports={set:J,get:W,has:K,enforce:le,getterFor:me}},"./node_modules/core-js/internals/is-array.js":function(g,F,v){var $=v("./node_modules/core-js/internals/classof-raw.js");g.exports=Array.isArray||function(M){return $(M)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js"),_=/#|\.prototype\./,M=function(R,se){var ne=T[O(R)];return ne==Y?!0:ne==L?!1:typeof se=="function"?$(se):!!se},O=M.normalize=function(R){return String(R).replace(_,".").toLowerCase()},T=M.data={},L=M.NATIVE="N",Y=M.POLYFILL="P";g.exports=M},"./node_modules/core-js/internals/is-object.js":function(g){g.exports=function(F){return typeof F=="object"?F!==null:typeof F=="function"}},"./node_modules/core-js/internals/is-pure.js":function(g){g.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(g,F,v){var $=v("./node_modules/core-js/internals/get-built-in.js"),_=v("./node_modules/core-js/internals/use-symbol-as-uid.js");g.exports=_?function(M){return typeof M=="symbol"}:function(M){var O=$("Symbol");return typeof O=="function"&&Object(M)instanceof O}},"./node_modules/core-js/internals/iterators-core.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/fails.js"),_=v("./node_modules/core-js/internals/object-get-prototype-of.js"),M=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),O=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"),Y=T("iterator"),R=!1,se=function(){return this},ne,J,W;[].keys&&(W=[].keys(),"next"in W?(J=_(_(W)),J!==Object.prototype&&(ne=J)):R=!0);var K=ne==null||$(function(){var le={};return ne[Y].call(le)!==le});K&&(ne={}),(!L||K)&&!O(ne,Y)&&M(ne,Y,se),g.exports={IteratorPrototype:ne,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,F,v){var $=v("./node_modules/core-js/internals/engine-v8-version.js"),_=v("./node_modules/core-js/internals/fails.js");g.exports=!!Object.getOwnPropertySymbols&&!_(function(){var M=Symbol();return!String(M)||!(Object(M)instanceof Symbol)||!Symbol.sham&&$&&$<41})},"./node_modules/core-js/internals/native-weak-map.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/inspect-source.js"),M=$.WeakMap;g.exports=typeof M=="function"&&/native code/.test(_(M))},"./node_modules/core-js/internals/object-assign.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/fails.js"),M=v("./node_modules/core-js/internals/object-keys.js"),O=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"),Y=v("./node_modules/core-js/internals/indexed-object.js"),R=Object.assign,se=Object.defineProperty;g.exports=!R||_(function(){if($&&R({b:1},R(se({},"a",{enumerable:!0,get:function(){se(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var ne={},J={},W=Symbol(),K="abcdefghijklmnopqrst";return ne[W]=7,K.split("").forEach(function(le){J[le]=le}),R({},ne)[W]!=7||M(R({},J)).join("")!=K})?function(J,W){for(var K=L(J),le=arguments.length,me=1,Oe=O.f,Be=T.f;le>me;)for(var Ue=Y(arguments[me++]),ee=Oe?M(Ue).concat(Oe(Ue)):M(Ue),fe=ee.length,D=0,Ye;fe>D;)Ye=ee[D++],(!$||Be.call(Ue,Ye))&&(K[Ye]=Ue[Ye]);return K}:R},"./node_modules/core-js/internals/object-create.js":function(g,F,v){var $=v("./node_modules/core-js/internals/an-object.js"),_=v("./node_modules/core-js/internals/object-define-properties.js"),M=v("./node_modules/core-js/internals/enum-bug-keys.js"),O=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"),Y=v("./node_modules/core-js/internals/shared-key.js"),R=">",se="<",ne="prototype",J="script",W=Y("IE_PROTO"),K=function(){},le=function(ee){return se+J+R+ee+se+"/"+J+R},me=function(ee){ee.write(le("")),ee.close();var fe=ee.parentWindow.Object;return ee=null,fe},Oe=function(){var ee=L("iframe"),fe="java"+J+":",D;if(ee.style)return ee.style.display="none",T.appendChild(ee),ee.src=String(fe),D=ee.contentWindow.document,D.open(),D.write(le("document.F=Object")),D.close(),D.F},Be,Ue=function(){try{Be=new ActiveXObject("htmlfile")}catch(fe){}Ue=document.domain&&Be?me(Be):Oe()||me(Be);for(var ee=M.length;ee--;)delete Ue[ne][M[ee]];return Ue()};O[W]=!0,g.exports=Object.create||function(fe,D){var Ye;return fe!==null?(K[ne]=$(fe),Ye=new K,K[ne]=null,Ye[W]=fe):Ye=Ue(),D===void 0?Ye:_(Ye,D)}},"./node_modules/core-js/internals/object-define-properties.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/object-define-property.js"),M=v("./node_modules/core-js/internals/an-object.js"),O=v("./node_modules/core-js/internals/object-keys.js");g.exports=$?Object.defineProperties:function(L,Y){M(L);for(var R=O(Y),se=R.length,ne=0,J;se>ne;)_.f(L,J=R[ne++],Y[J]);return L}},"./node_modules/core-js/internals/object-define-property.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/ie8-dom-define.js"),M=v("./node_modules/core-js/internals/an-object.js"),O=v("./node_modules/core-js/internals/to-property-key.js"),T=Object.defineProperty;F.f=$?T:function(Y,R,se){if(M(Y),R=O(R),M(se),_)try{return T(Y,R,se)}catch(ne){}if("get"in se||"set"in se)throw TypeError("Accessors not supported");return"value"in se&&(Y[R]=se.value),Y}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/object-property-is-enumerable.js"),M=v("./node_modules/core-js/internals/create-property-descriptor.js"),O=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"),Y=v("./node_modules/core-js/internals/ie8-dom-define.js"),R=Object.getOwnPropertyDescriptor;F.f=$?R:function(ne,J){if(ne=O(ne),J=T(J),Y)try{return R(ne,J)}catch(W){}if(L(ne,J))return M(!_.f.call(ne,J),ne[J])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-indexed-object.js"),_=v("./node_modules/core-js/internals/object-get-own-property-names.js").f,M={}.toString,O=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],T=function(L){try{return _(L)}catch(Y){return O.slice()}};g.exports.f=function(Y){return O&&M.call(Y)=="[object Window]"?T(Y):_($(Y))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(g,F,v){var $=v("./node_modules/core-js/internals/object-keys-internal.js"),_=v("./node_modules/core-js/internals/enum-bug-keys.js"),M=_.concat("length","prototype");F.f=Object.getOwnPropertyNames||function(T){return $(T,M)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(g,F){F.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(g,F,v){var $=v("./node_modules/core-js/internals/has.js"),_=v("./node_modules/core-js/internals/to-object.js"),M=v("./node_modules/core-js/internals/shared-key.js"),O=v("./node_modules/core-js/internals/correct-prototype-getter.js"),T=M("IE_PROTO"),L=Object.prototype;g.exports=O?Object.getPrototypeOf:function(Y){return Y=_(Y),$(Y,T)?Y[T]:typeof Y.constructor=="function"&&Y instanceof Y.constructor?Y.constructor.prototype:Y instanceof Object?L:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(g,F,v){var $=v("./node_modules/core-js/internals/has.js"),_=v("./node_modules/core-js/internals/to-indexed-object.js"),M=v("./node_modules/core-js/internals/array-includes.js").indexOf,O=v("./node_modules/core-js/internals/hidden-keys.js");g.exports=function(T,L){var Y=_(T),R=0,se=[],ne;for(ne in Y)!$(O,ne)&&$(Y,ne)&&se.push(ne);for(;L.length>R;)$(Y,ne=L[R++])&&(~M(se,ne)||se.push(ne));return se}},"./node_modules/core-js/internals/object-keys.js":function(g,F,v){var $=v("./node_modules/core-js/internals/object-keys-internal.js"),_=v("./node_modules/core-js/internals/enum-bug-keys.js");g.exports=Object.keys||function(O){return $(O,_)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(g,F){"use strict";var v={}.propertyIsEnumerable,$=Object.getOwnPropertyDescriptor,_=$&&!v.call({1:2},1);F.f=_?function(O){var T=$(this,O);return!!T&&T.enumerable}:v},"./node_modules/core-js/internals/object-set-prototype-of.js":function(g,F,v){var $=v("./node_modules/core-js/internals/an-object.js"),_=v("./node_modules/core-js/internals/a-possible-prototype.js");g.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var M=!1,O={},T;try{T=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,T.call(O,[]),M=O instanceof Array}catch(L){}return function(Y,R){return $(Y),_(R),M?T.call(Y,R):Y.__proto__=R,Y}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/to-string-tag-support.js"),_=v("./node_modules/core-js/internals/classof.js");g.exports=$?{}.toString:function(){return"[object "+_(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js");g.exports=function(_,M){var O,T;if(M==="string"&&typeof(O=_.toString)=="function"&&!$(T=O.call(_))||typeof(O=_.valueOf)=="function"&&!$(T=O.call(_))||M!=="string"&&typeof(O=_.toString)=="function"&&!$(T=O.call(_)))return T;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(g,F,v){var $=v("./node_modules/core-js/internals/get-built-in.js"),_=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"),O=v("./node_modules/core-js/internals/an-object.js");g.exports=$("Reflect","ownKeys")||function(L){var Y=_.f(O(L)),R=M.f;return R?Y.concat(R(L)):Y}},"./node_modules/core-js/internals/path.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js");g.exports=$},"./node_modules/core-js/internals/redefine.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),M=v("./node_modules/core-js/internals/has.js"),O=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"),Y=L.get,R=L.enforce,se=String(String).split("String");(g.exports=function(ne,J,W,K){var le=K?!!K.unsafe:!1,me=K?!!K.enumerable:!1,Oe=K?!!K.noTargetGet:!1,Be;if(typeof W=="function"&&(typeof J=="string"&&!M(W,"name")&&_(W,"name",J),Be=R(W),Be.source||(Be.source=se.join(typeof J=="string"?J:""))),ne===$){me?ne[J]=W:O(J,W);return}else le?!Oe&&ne[J]&&(me=!0):delete ne[J];me?ne[J]=W:_(ne,J,W)})(Function.prototype,"toString",function(){return typeof this=="function"&&Y(this).source||T(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/an-object.js");g.exports=function(){var _=$(this),M="";return _.global&&(M+="g"),_.ignoreCase&&(M+="i"),_.multiline&&(M+="m"),_.dotAll&&(M+="s"),_.unicode&&(M+="u"),_.sticky&&(M+="y"),M}},"./node_modules/core-js/internals/require-object-coercible.js":function(g){g.exports=function(F){if(F==null)throw TypeError("Can't call method on "+F);return F}},"./node_modules/core-js/internals/set-global.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js");g.exports=function(_,M){try{Object.defineProperty($,_,{value:M,configurable:!0,writable:!0})}catch(O){$[_]=M}return M}},"./node_modules/core-js/internals/set-to-string-tag.js":function(g,F,v){var $=v("./node_modules/core-js/internals/object-define-property.js").f,_=v("./node_modules/core-js/internals/has.js"),M=v("./node_modules/core-js/internals/well-known-symbol.js"),O=M("toStringTag");g.exports=function(T,L,Y){T&&!_(T=Y?T:T.prototype,O)&&$(T,O,{configurable:!0,value:L})}},"./node_modules/core-js/internals/shared-key.js":function(g,F,v){var $=v("./node_modules/core-js/internals/shared.js"),_=v("./node_modules/core-js/internals/uid.js"),M=$("keys");g.exports=function(O){return M[O]||(M[O]=_(O))}},"./node_modules/core-js/internals/shared-store.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/set-global.js"),M="__core-js_shared__",O=$[M]||_(M,{});g.exports=O},"./node_modules/core-js/internals/shared.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-pure.js"),_=v("./node_modules/core-js/internals/shared-store.js");(g.exports=function(M,O){return _[M]||(_[M]=O!==void 0?O:{})})("versions",[]).push({version:"3.16.0",mode:$?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"./node_modules/core-js/internals/string-html-forced.js":function(g,F,v){var $=v("./node_modules/core-js/internals/fails.js");g.exports=function(_){return $(function(){var M=""[_]('"');return M!==M.toLowerCase()||M.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-integer.js"),_=v("./node_modules/core-js/internals/to-string.js"),M=v("./node_modules/core-js/internals/require-object-coercible.js"),O=function(T){return function(L,Y){var R=_(M(L)),se=$(Y),ne=R.length,J,W;return se<0||se>=ne?T?"":void 0:(J=R.charCodeAt(se),J<55296||J>56319||se+1===ne||(W=R.charCodeAt(se+1))<56320||W>57343?T?R.charAt(se):J:T?R.slice(se,se+2):(J-55296<<10)+(W-56320)+65536)}};g.exports={codeAt:O(!1),charAt:O(!0)}},"./node_modules/core-js/internals/string-trim.js":function(g,F,v){var $=v("./node_modules/core-js/internals/require-object-coercible.js"),_=v("./node_modules/core-js/internals/to-string.js"),M=v("./node_modules/core-js/internals/whitespaces.js"),O="["+M+"]",T=RegExp("^"+O+O+"*"),L=RegExp(O+O+"*$"),Y=function(R){return function(se){var ne=_($(se));return R&1&&(ne=ne.replace(T,"")),R&2&&(ne=ne.replace(L,"")),ne}};g.exports={start:Y(1),end:Y(2),trim:Y(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-integer.js"),_=Math.max,M=Math.min;g.exports=function(O,T){var L=$(O);return L<0?_(L+T,0):M(L,T)}},"./node_modules/core-js/internals/to-indexed-object.js":function(g,F,v){var $=v("./node_modules/core-js/internals/indexed-object.js"),_=v("./node_modules/core-js/internals/require-object-coercible.js");g.exports=function(M){return $(_(M))}},"./node_modules/core-js/internals/to-integer.js":function(g){var F=Math.ceil,v=Math.floor;g.exports=function($){return isNaN($=+$)?0:($>0?v:F)($)}},"./node_modules/core-js/internals/to-length.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-integer.js"),_=Math.min;g.exports=function(M){return M>0?_($(M),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(g,F,v){var $=v("./node_modules/core-js/internals/require-object-coercible.js");g.exports=function(_){return Object($(_))}},"./node_modules/core-js/internals/to-primitive.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-object.js"),_=v("./node_modules/core-js/internals/is-symbol.js"),M=v("./node_modules/core-js/internals/ordinary-to-primitive.js"),O=v("./node_modules/core-js/internals/well-known-symbol.js"),T=O("toPrimitive");g.exports=function(L,Y){if(!$(L)||_(L))return L;var R=L[T],se;if(R!==void 0){if(Y===void 0&&(Y="default"),se=R.call(L,Y),!$(se)||_(se))return se;throw TypeError("Can't convert object to primitive value")}return Y===void 0&&(Y="number"),M(L,Y)}},"./node_modules/core-js/internals/to-property-key.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-primitive.js"),_=v("./node_modules/core-js/internals/is-symbol.js");g.exports=function(M){var O=$(M,"string");return _(O)?O:String(O)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(g,F,v){var $=v("./node_modules/core-js/internals/well-known-symbol.js"),_=$("toStringTag"),M={};M[_]="z",g.exports=String(M)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(g,F,v){var $=v("./node_modules/core-js/internals/is-symbol.js");g.exports=function(_){if($(_))throw TypeError("Cannot convert a Symbol value to a string");return String(_)}},"./node_modules/core-js/internals/uid.js":function(g){var F=0,v=Math.random();g.exports=function($){return"Symbol("+String($===void 0?"":$)+")_"+(++F+v).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(g,F,v){var $=v("./node_modules/core-js/internals/native-symbol.js");g.exports=$&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(g,F,v){var $=v("./node_modules/core-js/internals/well-known-symbol.js");F.f=$},"./node_modules/core-js/internals/well-known-symbol.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/shared.js"),M=v("./node_modules/core-js/internals/has.js"),O=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"),Y=_("wks"),R=$.Symbol,se=L?R:R&&R.withoutSetter||O;g.exports=function(ne){return(!M(Y,ne)||!(T||typeof Y[ne]=="string"))&&(T&&M(R,ne)?Y[ne]=R[ne]:Y[ne]=se("Symbol."+ne)),Y[ne]}},"./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,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/fails.js"),M=v("./node_modules/core-js/internals/is-array.js"),O=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"),Y=v("./node_modules/core-js/internals/create-property.js"),R=v("./node_modules/core-js/internals/array-species-create.js"),se=v("./node_modules/core-js/internals/array-method-has-species-support.js"),ne=v("./node_modules/core-js/internals/well-known-symbol.js"),J=v("./node_modules/core-js/internals/engine-v8-version.js"),W=ne("isConcatSpreadable"),K=9007199254740991,le="Maximum allowed index exceeded",me=J>=51||!_(function(){var ee=[];return ee[W]=!1,ee.concat()[0]!==ee}),Oe=se("concat"),Be=function(ee){if(!O(ee))return!1;var fe=ee[W];return fe!==void 0?!!fe:M(ee)},Ue=!me||!Oe;$({target:"Array",proto:!0,forced:Ue},{concat:function(fe){var D=T(this),Ye=R(D,0),Le=0,Ce,Te,be,ke,he;for(Ce=-1,be=arguments.length;Ce<be;Ce++)if(he=Ce===-1?D:arguments[Ce],Be(he)){if(ke=L(he.length),Le+ke>K)throw TypeError(le);for(Te=0;Te<ke;Te++,Le++)Te in he&&Y(Ye,Le,he[Te])}else{if(Le>=K)throw TypeError(le);Y(Ye,Le++,he)}return Ye.length=Le,Ye}})},"./node_modules/core-js/modules/es.array.iterator.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/to-indexed-object.js"),_=v("./node_modules/core-js/internals/add-to-unscopables.js"),M=v("./node_modules/core-js/internals/iterators.js"),O=v("./node_modules/core-js/internals/internal-state.js"),T=v("./node_modules/core-js/internals/define-iterator.js"),L="Array Iterator",Y=O.set,R=O.getterFor(L);g.exports=T(Array,"Array",function(se,ne){Y(this,{type:L,target:$(se),index:0,kind:ne})},function(){var se=R(this),ne=se.target,J=se.kind,W=se.index++;return!ne||W>=ne.length?(se.target=void 0,{value:void 0,done:!0}):J=="keys"?{value:W,done:!1}:J=="values"?{value:ne[W],done:!1}:{value:[W,ne[W]],done:!1}},"values"),M.Arguments=M.Array,_("keys"),_("values"),_("entries")},"./node_modules/core-js/modules/es.array.join.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/indexed-object.js"),M=v("./node_modules/core-js/internals/to-indexed-object.js"),O=v("./node_modules/core-js/internals/array-method-is-strict.js"),T=[].join,L=_!=Object,Y=O("join",",");$({target:"Array",proto:!0,forced:L||!Y},{join:function(se){return T.call(M(this),se===void 0?",":se)}})},"./node_modules/core-js/modules/es.array.map.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/array-iteration.js").map,M=v("./node_modules/core-js/internals/array-method-has-species-support.js"),O=M("map");$({target:"Array",proto:!0,forced:!O},{map:function(L){return _(this,L,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/is-object.js"),M=v("./node_modules/core-js/internals/is-array.js"),O=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"),Y=v("./node_modules/core-js/internals/create-property.js"),R=v("./node_modules/core-js/internals/well-known-symbol.js"),se=v("./node_modules/core-js/internals/array-method-has-species-support.js"),ne=se("slice"),J=R("species"),W=[].slice,K=Math.max;$({target:"Array",proto:!0,forced:!ne},{slice:function(me,Oe){var Be=L(this),Ue=T(Be.length),ee=O(me,Ue),fe=O(Oe===void 0?Ue:Oe,Ue),D,Ye,Le;if(M(Be)&&(D=Be.constructor,typeof D=="function"&&(D===Array||M(D.prototype))?D=void 0:_(D)&&(D=D[J],D===null&&(D=void 0)),D===Array||D===void 0))return W.call(Be,ee,fe);for(Ye=new(D===void 0?Array:D)(K(fe-ee,0)),Le=0;ee<fe;ee++,Le++)ee in Be&&Y(Ye,Le,Be[ee]);return Ye.length=Le,Ye}})},"./node_modules/core-js/modules/es.function.name.js":function(g,F,v){var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/object-define-property.js").f,M=Function.prototype,O=M.toString,T=/^\s*function ([^ (]*)/,L="name";$&&!(L in M)&&_(M,L,{configurable:!0,get:function(){try{return O.call(this).match(T)[1]}catch(Y){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/descriptors.js"),_=v("./node_modules/core-js/internals/global.js"),M=v("./node_modules/core-js/internals/is-forced.js"),O=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"),Y=v("./node_modules/core-js/internals/inherit-if-required.js"),R=v("./node_modules/core-js/internals/is-symbol.js"),se=v("./node_modules/core-js/internals/to-primitive.js"),ne=v("./node_modules/core-js/internals/fails.js"),J=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,le=v("./node_modules/core-js/internals/object-define-property.js").f,me=v("./node_modules/core-js/internals/string-trim.js").trim,Oe="Number",Be=_[Oe],Ue=Be.prototype,ee=L(J(Ue))==Oe,fe=function(Te){if(R(Te))throw TypeError("Cannot convert a Symbol value to a number");var be=se(Te,"number"),ke,he,Ee,Xe,et,ze,qe,Et;if(typeof be=="string"&&be.length>2){if(be=me(be),ke=be.charCodeAt(0),ke===43||ke===45){if(he=be.charCodeAt(2),he===88||he===120)return NaN}else if(ke===48){switch(be.charCodeAt(1)){case 66:case 98:Ee=2,Xe=49;break;case 79:case 111:Ee=8,Xe=55;break;default:return+be}for(et=be.slice(2),ze=et.length,qe=0;qe<ze;qe++)if(Et=et.charCodeAt(qe),Et<48||Et>Xe)return NaN;return parseInt(et,Ee)}}return+be};if(M(Oe,!Be(" 0o1")||!Be("0b1")||Be("+0x1"))){for(var D=function(be){var ke=arguments.length<1?0:be,he=this;return he instanceof D&&(ee?ne(function(){Ue.valueOf.call(he)}):L(he)!=Oe)?Y(new Be(fe(ke)),he,D):fe(ke)},Ye=$?W(Be):"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(","),Le=0,Ce;Ye.length>Le;Le++)T(Be,Ce=Ye[Le])&&!T(D,Ce)&&le(D,Ce,K(Be,Ce));D.prototype=Ue,Ue.constructor=D,O(_,Oe,D)}},"./node_modules/core-js/modules/es.object.assign.js":function(g,F,v){var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/object-assign.js");$({target:"Object",stat:!0,forced:Object.assign!==_},{assign:_})},"./node_modules/core-js/modules/es.object.keys.js":function(g,F,v){var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/to-object.js"),M=v("./node_modules/core-js/internals/object-keys.js"),O=v("./node_modules/core-js/internals/fails.js"),T=O(function(){M(1)});$({target:"Object",stat:!0,forced:T},{keys:function(Y){return M(_(Y))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(g,F,v){var $=v("./node_modules/core-js/internals/to-string-tag-support.js"),_=v("./node_modules/core-js/internals/redefine.js"),M=v("./node_modules/core-js/internals/object-to-string.js");$||_(Object.prototype,"toString",M,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/redefine.js"),_=v("./node_modules/core-js/internals/an-object.js"),M=v("./node_modules/core-js/internals/to-string.js"),O=v("./node_modules/core-js/internals/fails.js"),T=v("./node_modules/core-js/internals/regexp-flags.js"),L="toString",Y=RegExp.prototype,R=Y[L],se=O(function(){return R.call({source:"a",flags:"b"})!="/a/b"}),ne=R.name!=L;(se||ne)&&$(RegExp.prototype,L,function(){var W=_(this),K=M(W.source),le=W.flags,me=M(le===void 0&&W instanceof RegExp&&!("flags"in Y)?T.call(W):le);return"/"+K+"/"+me},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/string-multibyte.js").charAt,_=v("./node_modules/core-js/internals/to-string.js"),M=v("./node_modules/core-js/internals/internal-state.js"),O=v("./node_modules/core-js/internals/define-iterator.js"),T="String Iterator",L=M.set,Y=M.getterFor(T);O(String,"String",function(R){L(this,{type:T,string:_(R),index:0})},function(){var se=Y(this),ne=se.string,J=se.index,W;return J>=ne.length?{value:void 0,done:!0}:(W=$(ne,J),se.index+=W.length,{value:W,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/create-html.js"),M=v("./node_modules/core-js/internals/string-html-forced.js");$({target:"String",proto:!0,forced:M("link")},{link:function(T){return _(this,"a","href",T)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/descriptors.js"),M=v("./node_modules/core-js/internals/global.js"),O=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,Y=v("./node_modules/core-js/internals/copy-constructor-properties.js"),R=M.Symbol;if(_&&typeof R=="function"&&(!("description"in R.prototype)||R().description!==void 0)){var se={},ne=function(){var Oe=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Be=this instanceof ne?new R(Oe):Oe===void 0?R():R(Oe);return Oe===""&&(se[Be]=!0),Be};Y(ne,R);var J=ne.prototype=R.prototype;J.constructor=ne;var W=J.toString,K=String(R("test"))=="Symbol(test)",le=/^Symbol\((.*)\)[^)]+$/;L(J,"description",{configurable:!0,get:function(){var Oe=T(this)?this.valueOf():this,Be=W.call(Oe);if(O(se,Oe))return"";var Ue=K?Be.slice(7,-1):Be.replace(le,"$1");return Ue===""?void 0:Ue}}),$({global:!0,forced:!0},{Symbol:ne})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(g,F,v){var $=v("./node_modules/core-js/internals/define-well-known-symbol.js");$("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(g,F,v){"use strict";var $=v("./node_modules/core-js/internals/export.js"),_=v("./node_modules/core-js/internals/global.js"),M=v("./node_modules/core-js/internals/get-built-in.js"),O=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"),Y=v("./node_modules/core-js/internals/fails.js"),R=v("./node_modules/core-js/internals/has.js"),se=v("./node_modules/core-js/internals/is-array.js"),ne=v("./node_modules/core-js/internals/is-object.js"),J=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"),le=v("./node_modules/core-js/internals/to-indexed-object.js"),me=v("./node_modules/core-js/internals/to-property-key.js"),Oe=v("./node_modules/core-js/internals/to-string.js"),Be=v("./node_modules/core-js/internals/create-property-descriptor.js"),Ue=v("./node_modules/core-js/internals/object-create.js"),ee=v("./node_modules/core-js/internals/object-keys.js"),fe=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"),Ye=v("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Le=v("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ce=v("./node_modules/core-js/internals/object-define-property.js"),Te=v("./node_modules/core-js/internals/object-property-is-enumerable.js"),be=v("./node_modules/core-js/internals/create-non-enumerable-property.js"),ke=v("./node_modules/core-js/internals/redefine.js"),he=v("./node_modules/core-js/internals/shared.js"),Ee=v("./node_modules/core-js/internals/shared-key.js"),Xe=v("./node_modules/core-js/internals/hidden-keys.js"),et=v("./node_modules/core-js/internals/uid.js"),ze=v("./node_modules/core-js/internals/well-known-symbol.js"),qe=v("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),Et=v("./node_modules/core-js/internals/define-well-known-symbol.js"),Lt=v("./node_modules/core-js/internals/set-to-string-tag.js"),Ot=v("./node_modules/core-js/internals/internal-state.js"),sr=v("./node_modules/core-js/internals/array-iteration.js").forEach,er=Ee("hidden"),yr="Symbol",lr="prototype",G=ze("toPrimitive"),dt=Ot.set,I=Ot.getterFor(yr),m=Object[lr],u=_.Symbol,C=M("JSON","stringify"),q=Le.f,Se=Ce.f,H=D.f,ie=Te.f,Qe=he("symbols"),we=he("op-symbols"),ye=he("string-to-symbol-registry"),je=he("symbol-to-string-registry"),xt=he("wks"),de=_.QObject,st=!de||!de[lr]||!de[lr].findChild,tt=T&&Y(function(){return Ue(Se({},"a",{get:function(){return Se(this,"a",{value:7}).a}})).a!=7})?function(Nr,xr,ur){var Kr=q(m,xr);Kr&&delete m[xr],Se(Nr,xr,ur),Kr&&Nr!==m&&Se(m,xr,Kr)}:Se,Ie=function(Nr,xr){var ur=Qe[Nr]=Ue(u[lr]);return dt(ur,{type:yr,tag:Nr,description:xr}),T||(ur.description=xr),ur},De=function(xr,ur,Kr){xr===m&&De(we,ur,Kr),W(xr);var pn=me(ur);return W(Kr),R(Qe,pn)?(Kr.enumerable?(R(xr,er)&&xr[er][pn]&&(xr[er][pn]=!1),Kr=Ue(Kr,{enumerable:Be(0,!1)})):(R(xr,er)||Se(xr,er,Be(1,{})),xr[er][pn]=!0),tt(xr,pn,Kr)):Se(xr,pn,Kr)},lt=function(xr,ur){W(xr);var Kr=le(ur),pn=ee(Kr).concat(kr(Kr));return sr(pn,function(kn){(!T||kt.call(Kr,kn))&&De(xr,kn,Kr[kn])}),xr},Ut=function(xr,ur){return ur===void 0?Ue(xr):lt(Ue(xr),ur)},kt=function(xr){var ur=me(xr),Kr=ie.call(this,ur);return this===m&&R(Qe,ur)&&!R(we,ur)?!1:Kr||!R(this,ur)||!R(Qe,ur)||R(this,er)&&this[er][ur]?Kr:!0},rr=function(xr,ur){var Kr=le(xr),pn=me(ur);if(!(Kr===m&&R(Qe,pn)&&!R(we,pn))){var kn=q(Kr,pn);return kn&&R(Qe,pn)&&!(R(Kr,er)&&Kr[er][pn])&&(kn.enumerable=!0),kn}},Fr=function(xr){var ur=H(le(xr)),Kr=[];return sr(ur,function(pn){!R(Qe,pn)&&!R(Xe,pn)&&Kr.push(pn)}),Kr},kr=function(xr){var ur=xr===m,Kr=H(ur?we:le(xr)),pn=[];return sr(Kr,function(kn){R(Qe,kn)&&(!ur||R(m,kn))&&pn.push(Qe[kn])}),pn};if(L||(u=function(){if(this instanceof u)throw TypeError("Symbol is not a constructor");var xr=!arguments.length||arguments[0]===void 0?void 0:Oe(arguments[0]),ur=et(xr),Kr=function(pn){this===m&&Kr.call(we,pn),R(this,er)&&R(this[er],ur)&&(this[er][ur]=!1),tt(this,ur,Be(1,pn))};return T&&st&&tt(m,ur,{configurable:!0,set:Kr}),Ie(ur,xr)},ke(u[lr],"toString",function(){return I(this).tag}),ke(u,"withoutSetter",function(Nr){return Ie(et(Nr),Nr)}),Te.f=kt,Ce.f=De,Le.f=rr,fe.f=D.f=Fr,Ye.f=kr,qe.f=function(Nr){return Ie(ze(Nr),Nr)},T&&(Se(u[lr],"description",{configurable:!0,get:function(){return I(this).description}}),O||ke(m,"propertyIsEnumerable",kt,{unsafe:!0}))),$({global:!0,wrap:!0,forced:!L,sham:!L},{Symbol:u}),sr(ee(xt),function(Nr){Et(Nr)}),$({target:yr,stat:!0,forced:!L},{for:function(Nr){var xr=Oe(Nr);if(R(ye,xr))return ye[xr];var ur=u(xr);return ye[xr]=ur,je[ur]=xr,ur},keyFor:function(xr){if(!J(xr))throw TypeError(xr+" is not a symbol");if(R(je,xr))return je[xr]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),$({target:"Object",stat:!0,forced:!L,sham:!T},{create:Ut,defineProperty:De,defineProperties:lt,getOwnPropertyDescriptor:rr}),$({target:"Object",stat:!0,forced:!L},{getOwnPropertyNames:Fr,getOwnPropertySymbols:kr}),$({target:"Object",stat:!0,forced:Y(function(){Ye.f(1)})},{getOwnPropertySymbols:function(xr){return Ye.f(K(xr))}}),C){var Dr=!L||Y(function(){var Nr=u();return C([Nr])!="[null]"||C({a:Nr})!="{}"||C(Object(Nr))!="{}"});$({target:"JSON",stat:!0,forced:Dr},{stringify:function(xr,ur,Kr){for(var pn=[xr],kn=1,mn;arguments.length>kn;)pn.push(arguments[kn++]);if(mn=ur,!(!ne(ur)&&xr===void 0||J(xr)))return se(ur)||(ur=function(Dn,Ki){if(typeof mn=="function"&&(Ki=mn.call(this,Dn,Ki)),!J(Ki))return Ki}),pn[1]=ur,C.apply(null,pn)}})}u[lr][G]||be(u[lr],G,u[lr].valueOf),Lt(u,yr),Xe[er]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/dom-iterables.js"),M=v("./node_modules/core-js/internals/array-for-each.js"),O=v("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var T in _){var L=$[T],Y=L&&L.prototype;if(Y&&Y.forEach!==M)try{O(Y,"forEach",M)}catch(R){Y.forEach=M}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(g,F,v){var $=v("./node_modules/core-js/internals/global.js"),_=v("./node_modules/core-js/internals/dom-iterables.js"),M=v("./node_modules/core-js/modules/es.array.iterator.js"),O=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"),Y=T("toStringTag"),R=M.values;for(var se in _){var ne=$[se],J=ne&&ne.prototype;if(J){if(J[L]!==R)try{O(J,L,R)}catch(K){J[L]=R}if(J[Y]||O(J,Y,se),_[se]){for(var W in M)if(J[W]!==M[W])try{O(J,W,M[W])}catch(K){J[W]=M[W]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(g){(function(F,v){g.exports=v()})(this,function(){"use strict";function F(de){var st=typeof de;return de!==null&&(st==="object"||st==="function")}function v(de){return typeof de=="function"}var $=void 0;Array.isArray?$=Array.isArray:$=function(de){return Object.prototype.toString.call(de)==="[object Array]"};var _=$,M=0,O=void 0,T=void 0,L=function(st,tt){ee[M]=st,ee[M+1]=tt,M+=2,M===2&&(T?T(fe):Ye())};function Y(de){T=de}function R(de){L=de}var se=typeof window!="undefined"?window:void 0,ne=se||{},J=ne.MutationObserver||ne.WebKitMutationObserver,W=typeof self=="undefined"&&typeof pe!="undefined"&&{}.toString.call(pe)==="[object process]",K=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function le(){return function(){return pe.nextTick(fe)}}function me(){return typeof O!="undefined"?function(){O(fe)}:Ue()}function Oe(){var de=0,st=new J(fe),tt=document.createTextNode("");return st.observe(tt,{characterData:!0}),function(){tt.data=de=++de%2}}function Be(){var de=new MessageChannel;return de.port1.onmessage=fe,function(){return de.port2.postMessage(0)}}function Ue(){var de=setTimeout;return function(){return de(fe,1)}}var ee=new Array(1e3);function fe(){for(var de=0;de<M;de+=2){var st=ee[de],tt=ee[de+1];st(tt),ee[de]=void 0,ee[de+1]=void 0}M=0}function D(){try{var de=Function("return this")().require("vertx");return O=de.runOnLoop||de.runOnContext,me()}catch(st){return Ue()}}var Ye=void 0;W?Ye=le():J?Ye=Oe():K?Ye=Be():se===void 0?Ye=D():Ye=Ue();function Le(de,st){var tt=this,Ie=new this.constructor(be);Ie[Te]===void 0&&C(Ie);var De=tt._state;if(De){var lt=arguments[De-1];L(function(){return dt(De,Ie,lt,tt._result)})}else lr(tt,Ie,de,st);return Ie}function Ce(de){var st=this;if(de&&typeof de=="object"&&de.constructor===st)return de;var tt=new st(be);return Ot(tt,de),tt}var Te=Math.random().toString(36).substring(2);function be(){}var ke=void 0,he=1,Ee=2;function Xe(){return new TypeError("You cannot resolve a promise with itself")}function et(){return new TypeError("A promises callback cannot return that same promise.")}function ze(de,st,tt,Ie){try{de.call(st,tt,Ie)}catch(De){return De}}function qe(de,st,tt){L(function(Ie){var De=!1,lt=ze(tt,st,function(Ut){De||(De=!0,st!==Ut?Ot(Ie,Ut):er(Ie,Ut))},function(Ut){De||(De=!0,yr(Ie,Ut))},"Settle: "+(Ie._label||" unknown promise"));!De&&lt&&(De=!0,yr(Ie,lt))},de)}function Et(de,st){st._state===he?er(de,st._result):st._state===Ee?yr(de,st._result):lr(st,void 0,function(tt){return Ot(de,tt)},function(tt){return yr(de,tt)})}function Lt(de,st,tt){st.constructor===de.constructor&&tt===Le&&st.constructor.resolve===Ce?Et(de,st):tt===void 0?er(de,st):v(tt)?qe(de,st,tt):er(de,st)}function Ot(de,st){if(de===st)yr(de,Xe());else if(F(st)){var tt=void 0;try{tt=st.then}catch(Ie){yr(de,Ie);return}Lt(de,st,tt)}else er(de,st)}function sr(de){de._onerror&&de._onerror(de._result),G(de)}function er(de,st){de._state===ke&&(de._result=st,de._state=he,de._subscribers.length!==0&&L(G,de))}function yr(de,st){de._state===ke&&(de._state=Ee,de._result=st,L(sr,de))}function lr(de,st,tt,Ie){var De=de._subscribers,lt=De.length;de._onerror=null,De[lt]=st,De[lt+he]=tt,De[lt+Ee]=Ie,lt===0&&de._state&&L(G,de)}function G(de){var st=de._subscribers,tt=de._state;if(st.length!==0){for(var Ie=void 0,De=void 0,lt=de._result,Ut=0;Ut<st.length;Ut+=3)Ie=st[Ut],De=st[Ut+tt],Ie?dt(tt,Ie,De,lt):De(lt);de._subscribers.length=0}}function dt(de,st,tt,Ie){var De=v(tt),lt=void 0,Ut=void 0,kt=!0;if(De){try{lt=tt(Ie)}catch(rr){kt=!1,Ut=rr}if(st===lt){yr(st,et());return}}else lt=Ie;st._state!==ke||(De&&kt?Ot(st,lt):kt===!1?yr(st,Ut):de===he?er(st,lt):de===Ee&&yr(st,lt))}function I(de,st){try{st(function(Ie){Ot(de,Ie)},function(Ie){yr(de,Ie)})}catch(tt){yr(de,tt)}}var m=0;function u(){return m++}function C(de){de[Te]=m++,de._state=void 0,de._result=void 0,de._subscribers=[]}function q(){return new Error("Array Methods must be provided an Array")}var Se=function(){function de(st,tt){this._instanceConstructor=st,this.promise=new st(be),this.promise[Te]||C(this.promise),_(tt)?(this.length=tt.length,this._remaining=tt.length,this._result=new Array(this.length),this.length===0?er(this.promise,this._result):(this.length=this.length||0,this._enumerate(tt),this._remaining===0&&er(this.promise,this._result))):yr(this.promise,q())}return de.prototype._enumerate=function(tt){for(var Ie=0;this._state===ke&&Ie<tt.length;Ie++)this._eachEntry(tt[Ie],Ie)},de.prototype._eachEntry=function(tt,Ie){var De=this._instanceConstructor,lt=De.resolve;if(lt===Ce){var Ut=void 0,kt=void 0,rr=!1;try{Ut=tt.then}catch(kr){rr=!0,kt=kr}if(Ut===Le&&tt._state!==ke)this._settledAt(tt._state,Ie,tt._result);else if(typeof Ut!="function")this._remaining--,this._result[Ie]=tt;else if(De===je){var Fr=new De(be);rr?yr(Fr,kt):Lt(Fr,tt,Ut),this._willSettleAt(Fr,Ie)}else this._willSettleAt(new De(function(kr){return kr(tt)}),Ie)}else this._willSettleAt(lt(tt),Ie)},de.prototype._settledAt=function(tt,Ie,De){var lt=this.promise;lt._state===ke&&(this._remaining--,tt===Ee?yr(lt,De):this._result[Ie]=De),this._remaining===0&&er(lt,this._result)},de.prototype._willSettleAt=function(tt,Ie){var De=this;lr(tt,void 0,function(lt){return De._settledAt(he,Ie,lt)},function(lt){return De._settledAt(Ee,Ie,lt)})},de}();function H(de){return new Se(this,de).promise}function ie(de){var st=this;return _(de)?new st(function(tt,Ie){for(var De=de.length,lt=0;lt<De;lt++)st.resolve(de[lt]).then(tt,Ie)}):new st(function(tt,Ie){return Ie(new TypeError("You must pass an array to race."))})}function Qe(de){var st=this,tt=new st(be);return yr(tt,de),tt}function we(){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 de(st){this[Te]=u(),this._result=this._state=void 0,this._subscribers=[],be!==st&&(typeof st!="function"&&we(),this instanceof de?I(this,st):ye())}return de.prototype.catch=function(tt){return this.then(null,tt)},de.prototype.finally=function(tt){var Ie=this,De=Ie.constructor;return v(tt)?Ie.then(function(lt){return De.resolve(tt()).then(function(){return lt})},function(lt){return De.resolve(tt()).then(function(){throw lt})}):Ie.then(tt,tt)},de}();je.prototype.then=Le,je.all=H,je.race=ie,je.resolve=Ce,je.reject=Qe,je._setScheduler=Y,je._setAsap=R,je._asap=L;function xt(){var de=void 0;if(typeof x.g!="undefined")de=x.g;else if(typeof self!="undefined")de=self;else try{de=Function("return this")()}catch(Ie){throw new Error("polyfill failed because global object is unavailable in this environment")}var st=de.Promise;if(st){var tt=null;try{tt=Object.prototype.toString.call(st.resolve())}catch(Ie){}if(tt==="[object Promise]"&&!st.cast)return}de.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 F=te[g];if(F!==void 0)return F.exports;var v=te[g]={exports:{}};return Ne[g].call(v.exports,v,v.exports,V),v.exports}(function(){V.n=function(g){var F=g&&g.__esModule?function(){return g.default}:function(){return g};return V.d(F,{a:F}),F}})(),function(){V.d=function(g,F){for(var v in F)V.o(F,v)&&!V.o(g,v)&&Object.defineProperty(g,v,{enumerable:!0,get:F[v]})}}(),function(){V.o=function(g,F){return Object.prototype.hasOwnProperty.call(g,F)}}(),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"),F=V("./src/plugin/jspdf-plugin.js"),v=V("./src/plugin/pagebreaks.js"),$=V("./src/plugin/hyperlinks.js"),_=function M(O,T){var L=new M.Worker(T);return O?L.from(O).save():L};_.Worker=g.default,S.default=_}(),S=S.default,S}()})},67467:function(un,Tt){Tt.read=function(x,pe,Ae,P,Ne){var te,V,S=Ne*8-P-1,g=(1<<S)-1,F=g>>1,v=-7,$=Ae?Ne-1:0,_=Ae?-1:1,M=x[pe+$];for($+=_,te=M&(1<<-v)-1,M>>=-v,v+=S;v>0;te=te*256+x[pe+$],$+=_,v-=8);for(V=te&(1<<-v)-1,te>>=-v,v+=P;v>0;V=V*256+x[pe+$],$+=_,v-=8);if(te===0)te=1-F;else{if(te===g)return V?NaN:(M?-1:1)*(1/0);V=V+Math.pow(2,P),te=te-F}return(M?-1:1)*V*Math.pow(2,te-P)},Tt.write=function(x,pe,Ae,P,Ne,te){var V,S,g,F=te*8-Ne-1,v=(1<<F)-1,$=v>>1,_=Ne===23?Math.pow(2,-24)-Math.pow(2,-77):0,M=P?0:te-1,O=P?1:-1,T=pe<0||pe===0&&1/pe<0?1:0;for(pe=Math.abs(pe),isNaN(pe)||pe===1/0?(S=isNaN(pe)?1:0,V=v):(V=Math.floor(Math.log(pe)/Math.LN2),pe*(g=Math.pow(2,-V))<1&&(V--,g*=2),V+$>=1?pe+=_/g:pe+=_*Math.pow(2,1-$),pe*g>=2&&(V++,g/=2),V+$>=v?(S=0,V=v):V+$>=1?(S=(pe*g-1)*Math.pow(2,Ne),V=V+$):(S=pe*Math.pow(2,$-1)*Math.pow(2,Ne),V=0));Ne>=8;x[Ae+M]=S&255,M+=O,S/=256,Ne-=8);for(V=V<<Ne|S,F+=Ne;F>0;x[Ae+M]=V&255,M+=O,V/=256,F-=8);x[Ae+M-O]|=T*128}},24334:function(un,Tt,x){var pe,Ae;(function(P,Ne){un.exports=Ne(P)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:this,function(P){"use strict";P=P||{};var Ne=P.Base64,te="2.6.4",V="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=function(D){for(var Ye={},Le=0,Ce=D.length;Le<Ce;Le++)Ye[D.charAt(Le)]=Le;return Ye}(V),g=String.fromCharCode,F=function(D){if(D.length<2){var Ye=D.charCodeAt(0);return Ye<128?D:Ye<2048?g(192|Ye>>>6)+g(128|Ye&63):g(224|Ye>>>12&15)+g(128|Ye>>>6&63)+g(128|Ye&63)}else{var Ye=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return g(240|Ye>>>18&7)+g(128|Ye>>>12&63)+g(128|Ye>>>6&63)+g(128|Ye&63)}},v=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$=function(D){return D.replace(v,F)},_=function(D){var Ye=[0,2,1][D.length%3],Le=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),Ce=[V.charAt(Le>>>18),V.charAt(Le>>>12&63),Ye>=2?"=":V.charAt(Le>>>6&63),Ye>=1?"=":V.charAt(Le&63)];return Ce.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,_)},O=function(D){return M($(String(D)))},T=function(D){return D.replace(/[+\/]/g,function(Ye){return Ye=="+"?"-":"_"}).replace(/=/g,"")},L=function(D,Ye){return Ye?T(O(D)):O(D)},Y=function(D){return L(D,!0)},R;P.Uint8Array&&(R=function(D,Ye){for(var Le="",Ce=0,Te=D.length;Ce<Te;Ce+=3){var be=D[Ce],ke=D[Ce+1],he=D[Ce+2],Ee=be<<16|ke<<8|he;Le+=V.charAt(Ee>>>18)+V.charAt(Ee>>>12&63)+(typeof ke!="undefined"?V.charAt(Ee>>>6&63):"=")+(typeof he!="undefined"?V.charAt(Ee&63):"=")}return Ye?T(Le):Le});var se=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ne=function(D){switch(D.length){case 4:var Ye=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),Le=Ye-65536;return g((Le>>>10)+55296)+g((Le&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))}},J=function(D){return D.replace(se,ne)},W=function(D){var Ye=D.length,Le=Ye%4,Ce=(Ye>0?S[D.charAt(0)]<<18:0)|(Ye>1?S[D.charAt(1)]<<12:0)|(Ye>2?S[D.charAt(2)]<<6:0)|(Ye>3?S[D.charAt(3)]:0),Te=[g(Ce>>>16),g(Ce>>>8&255),g(Ce&255)];return Te.length-=[0,0,2,1][Le],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)},le=function(D){return K(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},me=function(D){return J(K(D))},Oe=function(D){return String(D).replace(/[-_]/g,function(Ye){return Ye=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Be=function(D){return me(Oe(D))},Ue;P.Uint8Array&&(Ue=function(D){return Uint8Array.from(le(Oe(D)),function(Ye){return Ye.charCodeAt(0)})});var ee=function(){var D=P.Base64;return P.Base64=Ne,D};if(P.Base64={VERSION:te,atob:le,btoa:M,fromBase64:Be,toBase64:L,utob:$,encode:L,encodeURI:Y,btou:J,decode:Be,noConflict:ee,fromUint8Array:R,toUint8Array:Ue},typeof Object.defineProperty=="function"){var fe=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};P.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",fe(function(){return Be(this)})),Object.defineProperty(String.prototype,"toBase64",fe(function(D){return L(this,D)})),Object.defineProperty(String.prototype,"toBase64URI",fe(function(){return L(this,!0)}))}}return P.Meteor&&(Base64=P.Base64),un.exports?un.exports.Base64=P.Base64:(pe=[],Ae=function(){return P.Base64}.apply(Tt,pe),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 ti},AcroFormButton:function(){return Oa},AcroFormCheckBox:function(){return ko},AcroFormChoiceField:function(){return gi},AcroFormComboBox:function(){return ea},AcroFormEditBox:function(){return Yi},AcroFormListBox:function(){return Wa},AcroFormPasswordField:function(){return Pa},AcroFormPushButton:function(){return oo},AcroFormRadioButton:function(){return Ia},AcroFormTextField:function(){return Ja},GState:function(){return Rh},ShadingPattern:function(){return jd},TilingPattern:function(){return zd},default:function(){return ua},jsPDF:function(){return ua}});var pe=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(N){var E=N.data,U=E.$e$;if(U){var Z=new Error(U[0]);Z.code=U[1],Z.stack=U[2],A(Z,null)}else A(null,E)},p.postMessage(a,l),p},Ne=Uint8Array,te=Uint16Array,V=Int32Array,S=new Ne([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 Ne([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]),F=new Ne([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}},$=v(S,2),_=$.b,M=$.r;_[28]=258,M[258]=28;for(var O=v(g,0),T=O.b,L=O.r,Y=new te(32768),R=0;R<32768;++R){var se=(R&43690)>>1|(R&21845)<<1;se=(se&52428)>>2|(se&13107)<<2,se=(se&61680)>>4|(se&3855)<<4,Y[R]=((se&65280)>>8|(se&255)<<8)>>1}for(var ne=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 N=new te(o);for(A=1;A<o;++A)N[A]=N[A-1]+p[A-1]<<1;var E;if(a){E=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=N[n[A]-1]++<<oe,$e=Re|(1<<oe)-1;Re<=$e;++Re)E[Y[Re]>>U]=Z}else for(E=new te(l),A=0;A<l;++A)n[A]&&(E[A]=Y[N[n[A]-1]++]>>15-n[A]);return E},J=new Ne(288),R=0;R<144;++R)J[R]=8;for(var R=144;R<256;++R)J[R]=9;for(var R=256;R<280;++R)J[R]=7;for(var R=280;R<288;++R)J[R]=8;for(var W=new Ne(32),R=0;R<32;++R)W[R]=5;var K=ne(J,9,0),le=null,me=ne(W,5,0),Oe=null,Be=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},ee=function(n,o){var a=o/8|0;return(n[a]|n[a+1]<<8|n[a+2]<<16)>>(o&7)},fe=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 Ne(n.subarray(o,a))},Ye={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},Le=["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"],Ce=function(n,o,a){var l=new Error(o||Le[n]);if(l.code=n,Error.captureStackTrace&&Error.captureStackTrace(l,Ce),!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 Ne(0);var N=!a,E=N||o.i!=2,U=o.i;N&&(a=new Ne(A*3));var Z=function(Rn){var vi=a.length;if(Rn>vi){var _i=new Ne(Math.max(vi*2,Rn));_i.set(a),a=_i}},oe=o.f||0,Re=o.p||0,$e=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=le,mt=Oe,ut=9,bt=5;else if(Gt==2){var rn=Ue(n,Re,31)+257,Wr=Ue(n,Re+10,15)+4,ar=rn+Ue(n,Re+5,31)+1;Re+=14;for(var Mt=new Ne(ar),Cr=new Ne(19),it=0;it<Wr;++it)Cr[F[it]]=Ue(n,Re+it*3,7);Re+=Wr*3;for(var yt=Be(Cr),Wt=(1<<yt)-1,Ht=ne(Cr,yt,1),it=0;it<ar;){var Tr=Ht[Ue(n,Re,Wt)];Re+=Tr&15;var Rt=Tr>>4;if(Rt<16)Mt[it++]=Rt;else{var Zr=0,Jr=0;for(Rt==16?(Jr=3+Ue(n,Re,3),Re+=2,Zr=Mt[it-1]):Rt==17?(Jr=3+Ue(n,Re,7),Re+=3):Rt==18&&(Jr=11+Ue(n,Re,127),Re+=7);Jr--;)Mt[it++]=Zr}}var Lr=Mt.subarray(0,rn),Gr=Mt.subarray(rn);ut=Be(Lr),bt=Be(Gr),ae=ne(Lr,ut,1),mt=ne(Gr,bt,1)}else Ce(1);else{var Rt=fe(Re)+4,It=n[Rt-4]|n[Rt-3]<<8,Mr=Rt+It;if(Mr>A){U&&Ce(0);break}E&&Z($e+It),a.set(n.subarray(Rt,Mr),$e),o.b=$e+=It,o.p=Re=Mr*8,o.f=oe;continue}if(Re>ot){U&&Ce(0);break}}E&&Z($e+131072);for(var $n=(1<<ut)-1,Sn=(1<<bt)-1,rt=Re;;rt=Re){var Zr=ae[ee(n,Re)&$n],_t=Zr>>4;if(Re+=Zr&15,Re>ot){U&&Ce(0);break}if(Zr||Ce(2),_t<256)a[$e++]=_t;else if(_t==256){rt=Re,ae=null;break}else{var Nt=_t-254;if(_t>264){var it=_t-257,Jt=S[it];Nt=Ue(n,Re,(1<<Jt)-1)+_[it],Re+=Jt}var fr=mt[ee(n,Re)&Sn],Ir=fr>>4;fr||Ce(3),Re+=fr&15;var Gr=T[Ir];if(Ir>3){var Jt=g[Ir];Gr+=ee(n,Re)&(1<<Jt)-1,Re+=Jt}if(Re>ot){U&&Ce(0);break}E&&Z($e+131072);var $r=$e+Nt;if($e<Gr){var Qr=p-Gr,gn=Math.min(Gr,$r);for(Qr+$e<0&&Ce(3);$e<gn;++$e)a[$e]=l[Qr+$e]}for(;$e<$r;++$e)a[$e]=a[$e-Gr]}}o.l=ae,o.p=rt,o.b=$e,o.f=oe,ae&&(oe=1,o.m=ut,o.d=mt,o.n=bt)}while(!oe);return $e!=a.length&&N?D(a,0,$e):a.subarray(0,$e)},be=function(n,o,a){a<<=o&7;var l=o/8|0;n[l]|=a,n[l+1]|=a>>8},ke=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},he=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 N=new Ne(a[0].s+1);return N[a[0].s]=1,{t:N,l:1}}a.sort(function(Mr,rn){return Mr.f-rn.f}),a.push({s:-1,f:25001});var E=a[0],U=a[1],Z=0,oe=1,Re=2;for(a[0]={s:-1,f:E.f+U.f,l:E,r:U};oe!=A-1;)E=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:E.f+U.f,l:E,r:U};for(var $e=p[0].s,l=1;l<A;++l)p[l].s>$e&&($e=p[l].s);var ae=new te($e+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 Ne(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},Xe=function(n){for(var o=n.length;o&&!n[--o];);for(var a=new te(++o),l=0,A=n[0],p=1,N=function(U){a[l++]=U},E=1;E<=o;++E)if(n[E]==A&&E!=o)++p;else{if(!A&&p>2){for(;p>138;p-=138)N(32754);p>2&&(N(p>10?p-11<<5|28690:p-3<<5|12305),p=0)}else if(p>3){for(N(A),--p;p>6;p-=6)N(8304);p>2&&(N(p-3<<5|8208),p=0)}for(;p--;)N(A);p=1,A=n[E]}return{c:a.subarray(0,l),n:o}},et=function(n,o){for(var a=0,l=0;l<o.length;++l)a+=n[l]*o[l];return a},ze=function(n,o,a){var l=a.length,A=fe(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},qe=function(n,o,a,l,A,p,N,E,U,Z,oe){be(o,oe++,a),++A[256];for(var Re=he(A,15),$e=Re.t,ae=Re.l,mt=he(p,15),ut=mt.t,bt=mt.l,ot=Xe($e),Gt=ot.c,Rt=ot.n,It=Xe(ut),Mr=It.c,rn=It.n,Wr=new te(19),ar=0;ar<Gt.length;++ar)++Wr[Gt[ar]&31];for(var ar=0;ar<Mr.length;++ar)++Wr[Mr[ar]&31];for(var Mt=he(Wr,7),Cr=Mt.t,it=Mt.l,yt=19;yt>4&&!Cr[F[yt-1]];--yt);var Wt=Z+5<<3,Ht=et(A,J)+et(p,W)+N,Tr=et(A,$e)+et(p,ut)+N+14+3*yt+et(Wr,Cr)+2*Wr[16]+3*Wr[17]+7*Wr[18];if(U>=0&&Wt<=Ht&&Wt<=Tr)return ze(o,oe,n.subarray(U,U+Z));var Zr,Jr,Lr,Gr;if(be(o,oe,1+(Tr<Ht)),oe+=2,Tr<Ht){Zr=ne($e,ae,0),Jr=$e,Lr=ne(ut,bt,0),Gr=ut;var $n=ne(Cr,it,0);be(o,oe,Rt-257),be(o,oe+5,rn-1),be(o,oe+10,yt-4),oe+=14;for(var ar=0;ar<yt;++ar)be(o,oe+3*ar,Cr[F[ar]]);oe+=3*yt;for(var Sn=[Gt,Mr],rt=0;rt<2;++rt)for(var _t=Sn[rt],ar=0;ar<_t.length;++ar){var Nt=_t[ar]&31;be(o,oe,$n[Nt]),oe+=Cr[Nt],Nt>15&&(be(o,oe,_t[ar]>>5&127),oe+=_t[ar]>>12)}}else Zr=K,Jr=J,Lr=me,Gr=W;for(var ar=0;ar<E;++ar){var Jt=l[ar];if(Jt>255){var Nt=Jt>>18&31;ke(o,oe,Zr[Nt+257]),oe+=Jr[Nt+257],Nt>7&&(be(o,oe,Jt>>23&31),oe+=S[Nt]);var fr=Jt&31;ke(o,oe,Lr[fr]),oe+=Gr[fr],fr>3&&(ke(o,oe,Jt>>5&8191),oe+=g[fr])}else ke(o,oe,Zr[Jt]),oe+=Jr[Jt]}return ke(o,oe,Zr[256]),oe+Jr[256]},Et=new V([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Lt=new Ne(0),Ot=function(n,o,a,l,A,p){var N=p.z||n.length,E=new Ne(l+N+5*(1+Math.ceil(N/7e3))+A),U=E.subarray(l,E.length-A),Z=p.l,oe=(p.r||0)&7;if(o){oe&&(U[0]=p.r>>3);for(var Re=Et[o-1],$e=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),Mr=new te(288),rn=new te(32),Wr=0,ar=0,Mt=p.i||0,Cr=0,it=p.w||0,yt=0;Mt+2<N;++Mt){var Wt=Rt(Mt),Ht=Mt&32767,Tr=bt[Wt];if(ut[Ht]=Tr,bt[Wt]=Ht,it<=Mt){var Zr=N-Mt;if((Wr>7e3||Cr>24576)&&(Zr>423||!Z)){oe=qe(n,U,0,It,Mr,rn,ar,Cr,yt,Mt-yt,oe),Cr=Wr=ar=0,yt=Mt;for(var Jr=0;Jr<286;++Jr)Mr[Jr]=0;for(var Jr=0;Jr<30;++Jr)rn[Jr]=0}var Lr=2,Gr=0,$n=ae,Sn=Ht-Tr&32767;if(Zr>2&&Wt==Rt(Mt-Sn))for(var rt=Math.min($e,Zr)-1,_t=Math.min(32767,Mt),Nt=Math.min(258,Zr);Sn<=_t&&--$n&&Ht!=Tr;){if(n[Mt+Lr]==n[Mt+Lr-Sn]){for(var Jt=0;Jt<Nt&&n[Mt+Jt]==n[Mt+Jt-Sn];++Jt);if(Jt>Lr){if(Lr=Jt,Gr=Sn,Jt>rt)break;for(var fr=Math.min(Sn,Jt-2),Ir=0,Jr=0;Jr<fr;++Jr){var $r=Mt-Sn+Jr&32767,Qr=ut[$r],gn=$r-Qr&32767;gn>Ir&&(Ir=gn,Tr=$r)}}}Ht=Tr,Tr=ut[Ht],Sn+=Ht-Tr&32767}if(Gr){It[Cr++]=268435456|M[Lr]<<18|L[Gr];var Rn=M[Lr]&31,vi=L[Gr]&31;ar+=S[Rn]+g[vi],++Mr[257+Rn],++rn[vi],it=Mt+Lr,++Wr}else It[Cr++]=n[Mt],++Mr[n[Mt]]}}for(Mt=Math.max(Mt,it);Mt<N;++Mt)It[Cr++]=n[Mt],++Mr[n[Mt]];oe=qe(n,U,Z,It,Mr,rn,ar,Cr,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=it)}else{for(var Mt=p.w||0;Mt<N+Z;Mt+=65535){var _i=Mt+65535;_i>=N&&(U[oe/8|0]=Z,_i=N),oe=ze(U,oe+1,n.subarray(Mt,_i))}p.i=N}return D(E,0,l+fe(oe)+A)},sr=null,er=function(){var n=-1;return{p:function(o){for(var a=n,l=0;l<o.length;++l)a=sr[a&255^o[l]]^a>>>8;n=a},d:function(){return~n}}},yr=function(){var n=1,o=0;return{p:function(a){for(var l=n,A=o,p=a.length|0,N=0;N!=p;){for(var E=Math.min(N+2655,p);N<E;++N)A+=l+=a[N];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}}},lr=function(n,o,a,l,A){if(!A&&(A={l:1},o.dictionary)){var p=o.dictionary.subarray(-32768),N=new Ne(p.length+n.length);N.set(p),N.set(n,p.length),n=N,A.w=p.length}return Ot(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},dt=function(n,o,a){for(var l=n(),A=n.toString(),p=A.slice(A.indexOf("[")+1,A.lastIndexOf("]")).replace(/\s+/g,"").split(","),N=0;N<l.length;++N){var E=l[N],U=p[N];if(typeof E=="function"){o+=";"+U+"=";var Z=E.toString();if(E.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 E.prototype)o+=";"+U+".prototype."+Re+"="+E.prototype[Re].toString()}else o+=Z}else a[U]=E}return o},I=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},u=function(n,o,a,l){if(!I[a]){for(var A="",p={},N=n.length-1,E=0;E<N;++E)A=dt(n[E],A,p);I[a]={c:dt(n[N],A,p),e:p}}var U=G({},I[a].e);return P(I[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[Ne,te,V,S,g,F,_,T,le,Oe,Y,Le,ne,Be,Ue,ee,fe,D,Ce,Te,Dn,we,ye]},q=function(){return[Ne,te,V,S,g,F,M,L,K,J,me,W,Y,Et,Lt,ne,be,ke,he,Ee,Xe,et,ze,qe,fe,D,Ot,lr,Kr,we]},Se=function(){return[lt,rr,De,er,sr]},H=function(){return[Ut,kt]},ie=function(){return[Fr,De,yr]},Qe=function(){return[kr]},we=function(n){return postMessage(n,[n.buffer])},ye=function(n){return n&&{out:n.size&&new Ne(n.size),dictionary:n.dictionary}},je=function(n,o,a,l,A,p){var N=u(a,l,A,function(E,U){N.terminate(),p(E,U)});return N.postMessage([n,o],o.consume?[n.buffer]:[]),function(){N.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()}},de=function(n,o,a,l,A,p,N){var E,U=u(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])):N(oe)});U.postMessage(a),o.queuedSize=0,o.push=function(Z,oe){o.ondata||Ce(5),E&&o.ondata(Ce(4,0,1),null,!!oe),o.queuedSize+=Z.length,U.postMessage([Z,E=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},tt=function(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16|n[o+3]<<24)>>>0},Ie=function(n,o){return tt(n,o)+tt(n,o+4)*4294967296},De=function(n,o,a){for(;a;++o)n[o]=a,a>>>=8},lt=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&&De(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)&&Ce(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},rr=function(n){return 10+(n.filename?n.filename.length+1:0)},Fr=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=yr();A.p(o.dictionary),De(n,2,A.d())}},kr=function(n,o){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&Ce(6,"invalid zlib data"),(n[1]>>5&1)==+!o&&Ce(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2};function Dr(n,o){return typeof n=="function"&&(o=n,n={}),this.ondata=o,n}var Nr=null,xr=null;function ur(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[q],function(l){return we(Kr(l.data[0],l.data[1]))},0,a)}function Kr(n,o){return lr(n,o||{},0,0)}var pn=null,kn=null;function mn(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[C],function(l){return we(Dn(l.data[0],ye(l.data[1])))},1,a)}function Dn(n,o){return Te(n,{i:2},o&&o.out,o&&o.dictionary)}var Ki=null,hr=null;function Gn(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[q,Se,function(){return[Hi]}],function(l){return we(Hi(l.data[0],l.data[1]))},2,a)}function Hi(n,o){o||(o={});var a=er(),l=n.length;a.p(n);var A=lr(n,o,rr(o),8),p=A.length;return lt(A,o),De(A,p-8,a.d()),De(A,p-4,l),A}var di=null,$i=null;function Ri(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[C,H,function(){return[Zi]}],function(l){return we(Zi(l.data[0],l.data[1]))},3,a)}function Zi(n,o){var a=Ut(n);return a+8>n.length&&Ce(6,"invalid gzip data"),Te(n.subarray(a,-8),{i:2},o&&o.out||new Ne(kt(n)),o&&o.dictionary)}var za=null,Fi=null;function qn(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[q,ie,function(){return[ai]}],function(l){return we(ai(l.data[0],l.data[1]))},4,a)}function ai(n,o){o||(o={});var a=yr();a.p(n);var l=lr(n,o,o.dictionary?6:2,4);return Fr(l,o),De(l,l.length-4,a.d()),l}var yi=null,ge=null;function Me(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[C,Qe,function(){return[Fe]}],function(l){return we(Fe(l.data[0],ye(l.data[1])))},5,a)}function Fe(n,o){return Te(n.subarray(kr(n,o&&o.dictionary),-4),{i:2},o&&o.out,o&&o.dictionary)}var Ge=null,Pt=null;function Dt(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),n[0]==31&&n[1]==139&&n[2]==8?Ri(n,o,a):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?mn(n,o,a):Me(n,o,a)}function Er(n,o){return n[0]==31&&n[1]==139&&n[2]==8?Zi(n,o):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Dn(n,o):Fe(n,o)}var nr=function(n,o,a,l){for(var A in n){var p=n[A],N=o+A,E=l;Array.isArray(p)&&(E=G(l,p[1]),p=p[0]),p instanceof Ne?a[N]=[p,E]:(a[N+="/"]=[new Ne(0),E],nr(p,N,a,l))}},Or=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 Ne(n.length),l=0;l<n.length;++l)a[l]=n.charCodeAt(l);return a}if(Or)return Or.encode(n);for(var A=n.length,p=new Ne(n.length+(n.length>>1)),N=0,E=function(oe){p[N++]=oe},l=0;l<A;++l){if(N+5>p.length){var U=new Ne(N+8+(A-l<<1));U.set(p),p=U}var Z=n.charCodeAt(l);Z<128||o?E(Z):Z<2048?(E(192|Z>>6),E(128|Z&63)):Z>55295&&Z<57344?(Z=65536+(Z&1047552)|n.charCodeAt(++l)&1023,E(240|Z>>18),E(128|Z>>12&63),E(128|Z>>6&63),E(128|Z&63)):(E(224|Z>>12),E(128|Z>>6&63),E(128|Z&63))}return D(p,0,N)}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&&Ce(8),p}}var Nn=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)},hi=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,N=tt(n,o+20),E=a&&N==4294967295?On(n,p):[N,tt(n,o+24),tt(n,o+42)],U=E[0],Z=E[1],oe=E[2];return[st(n,o+10),U,Z,A,p+st(n,o+30)+st(n,o+32),oe]},On=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)]},Xn=function(n){var o=0;if(n)for(var a in n){var l=n[a].length;l>65535&&Ce(9),o+=l+4}return o},Vt=function(n,o,a,l,A,p,N,E){var U=l.length,Z=a.extra,oe=E&&E.length,Re=Xn(Z);De(n,o,N!=null?33639248:67324752),o+=4,N!=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 $e=new Date(a.mtime==null?Date.now():a.mtime),ae=$e.getFullYear()-1980;if((ae<0||ae>119)&&Ce(10),De(n,o,ae<<25|$e.getMonth()+1<<21|$e.getDate()<<16|$e.getHours()<<11|$e.getMinutes()<<5|$e.getSeconds()>>1),o+=4,p!=-1&&(De(n,o,a.crc),De(n,o+4,p<0?-p-2:p),De(n,o+8,a.size)),De(n,o+12,U),De(n,o+14,Re),o+=16,N!=null&&(De(n,o,oe),De(n,o+6,a.attrs),De(n,o+10,N),o+=14),n.set(l,o),o+=U,Re)for(var mt in Z){var ut=Z[mt],bt=ut.length;De(n,o,+mt),De(n,o+2,bt),n.set(ut,o+4),o+=4+bt}return oe&&(n.set(E,o),o+=oe),o},Xt=function(n,o,a,l,A){De(n,o,101010256),De(n,o+8,a),De(n,o+10,a),De(n,o+12,l),De(n,o+16,A)},Yt=null,tr=null,jt=null,or=null;function cr(n,o,a){a||(a=o,o={}),typeof a!="function"&&Ce(7);var l={};nr(n,"",l,o);var A=Object.keys(l),p=A.length,N=0,E=0,U=p,Z=new Array(p),oe=[],Re=function(){for(var bt=0;bt<oe.length;++bt)oe[bt]()},$e=function(bt,ot){Ei(function(){a(bt,ot)})};Ei(function(){$e=a});var ae=function(){var bt=new Ne(E+22),ot=N,Gt=E-N;E=0;for(var Rt=0;Rt<U;++Rt){var It=Z[Rt];try{var Mr=It.c.length;Vt(bt,E,It,It.f,It.u,Mr);var rn=30+It.f.length+Xn(It.extra),Wr=E+rn;bt.set(It.c,Wr),Vt(bt,N,It,It.f,It.u,Mr,E,It.m),N+=16+rn+(It.m?It.m.length:0),E=Wr+Mr}catch(ar){return $e(ar,null)}}Xt(bt,N,Z.length,Gt,ot),$e(null,bt)};p||ae();for(var mt=function(bt){var ot=A[bt],Gt=l[ot],Rt=Gt[0],It=Gt[1],Mr=er(),rn=Rt.length;Mr.p(Rt);var Wr=wn(ot),ar=Wr.length,Mt=It.comment,Cr=Mt&&wn(Mt),it=Cr&&Cr.length,yt=Xn(It.extra),Wt=It.level==0?0:8,Ht=function(Tr,Zr){if(Tr)Re(),$e(Tr,null);else{var Jr=Zr.length;Z[bt]=G(It,{size:rn,crc:Mr.d(),c:Zr,f:Wr,m:Cr,u:ar!=ot.length||Cr&&Mt.length!=it,compression:Wt}),N+=30+ar+yt+Jr,E+=76+2*(ar+yt)+(it||0)+Jr,--p||ae()}};if(ar>65535&&Ht(Ce(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(ur(Rt,It,Ht))},ut=0;ut<U;++ut)mt(ut);return Re}function Pr(n,o){o||(o={});var a={},l=[];nr(n,"",a,o);var A=0,p=0;for(var N in a){var E=a[N],U=E[0],Z=E[1],oe=Z.level==0?0:8,Re=wn(N),$e=Re.length,ae=Z.comment,mt=ae&&wn(ae),ut=mt&&mt.length,bt=Xn(Z.extra);$e>65535&&Ce(11);var ot=oe?Kr(U,Z):U,Gt=ot.length,Rt=er();Rt.p(U),l.push(G(Z,{size:U.length,crc:Rt.d(),c:ot,f:Re,m:mt,u:$e!=N.length||mt&&ae.length!=ut,o:A,compression:oe})),A+=30+$e+bt+Gt,p+=76+2*($e+bt)+(ut||0)+Gt}for(var It=new Ne(p+22),Mr=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 ar=30+Re.f.length+Xn(Re.extra);It.set(Re.c,Re.o+ar),Vt(It,A,Re,Re.f,Re.u,Re.c.length,Re.o,Re.m),A+=16+ar+(Re.m?Re.m.length:0)}return Xt(It,A,l.length,rn,Mr),It}var yn=null,Cn=null,Ai=null,ni=null,Ei=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function ei(n,o,a){a||(a=o,o={}),typeof a!="function"&&Ce(7);var l=[],A=function(){for(var bt=0;bt<l.length;++bt)l[bt]()},p={},N=function(bt,ot){Ei(function(){a(bt,ot)})};Ei(function(){N=a});for(var E=n.length-22;tt(n,E)!=101010256;--E)if(!E||n.length-E>65558)return N(Ce(13,0,1),null),A;var U=st(n,E+8);if(U){var Z=U,oe=tt(n,E+16),Re=oe==4294967295||Z==65535;if(Re){var $e=tt(n,E-12);Re=tt(n,$e)==101075792,Re&&(Z=U=tt(n,$e+32),oe=tt(n,$e+48))}for(var ae=o&&o.filter,mt=function(bt){var ot=hi(n,oe,Re),Gt=ot[0],Rt=ot[1],It=ot[2],Mr=ot[3],rn=ot[4],Wr=ot[5],ar=Qn(n,Wr);oe=rn;var Mt=function(it,yt){it?(A(),N(it,null)):(yt&&(p[Mr]=yt),--U||N(null,p))};if(!ae||ae({name:Mr,size:Rt,originalSize:It,compression:Gt}))if(!Gt)Mt(null,D(n,ar,ar+Rt));else if(Gt==8){var Cr=n.subarray(ar,ar+Rt);if(It<524288||Rt>.8*It)try{Mt(null,Dn(Cr,{out:new Ne(It)}))}catch(it){Mt(it,null)}else l.push(mn(Cr,{size:It},Mt))}else Mt(Ce(14,"unknown compression type "+Gt,1),null);else Mt(null,null)},ut=0;ut<Z;++ut)mt(ut)}else N(null,{});return A}function jn(n,o){for(var a={},l=n.length-22;tt(n,l)!=101010256;--l)(!l||n.length-l>65558)&&Ce(13);var A=st(n,l+8);if(!A)return{};var p=tt(n,l+16),N=p==4294967295||A==65535;if(N){var E=tt(n,l-12);N=tt(n,E)==101075792,N&&(A=tt(n,E+32),p=tt(n,E+48))}for(var U=o&&o.filter,Z=0;Z<A;++Z){var oe=hi(n,p,N),Re=oe[0],$e=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:$e,originalSize:ae,compression:Re}))&&(Re?Re==8?a[mt]=Dn(n.subarray(ot,ot+$e),{out:new Ne(ae)}):Ce(14,"unknown compression type "+Re):a[mt]=D(n,ot,ot+$e))}return a}var xi=x(42978);function wi(n,o="utf8"){return new TextDecoder(o).decode(n)}const Ci=new TextEncoder;function ui(n){return Ci.encode(n)}const Bi=1024*8,Xi=(()=>{const n=new Uint8Array(4),o=new Uint32Array(n.buffer);return!((o[0]=1)&n[0])})(),ri={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 Pi{constructor(o=Bi,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 N=A;(ArrayBuffer.isView(o)||o instanceof Pi)&&(o.byteLength!==o.buffer.byteLength&&(N=o.byteOffset+A),o=o.buffer),l?this.lastWrittenByte=p:this.lastWrittenByte=0,this.buffer=o,this.length=p,this.byteLength=p,this.byteOffset=N,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,N,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=ri[a].BYTES_PER_ELEMENT*o,A=this.byteOffset+this.offset,p=this.buffer.slice(A,A+l);if(this.littleEndian===Xi&&a!=="uint8"&&a!=="int8"){const E=new Uint8Array(this.buffer.slice(A,A+l));E.reverse();const U=new ri[a](E.buffer);return this.offset+=l,U.reverse(),U}const N=new ri[a](p);return this.offset+=l,N}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 wi(this.readBytes(o))}decodeText(o=1,a="utf8"){return wi(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(ui(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,ci=0,fn=1,ln=2;function Jn(n){let o=n.length;for(;--o>=0;)n[o]=0}const Kn=0,pi=1,qi=2,Mi=3,Ua=258,Aa=29,Bo=256,Vn=Bo+1+Aa,In=30,Di=19,Ji=2*Vn+1,Fa=15,Is=16,$a=7,fa=256,Io=16,So=17,Po=18,Os=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]),po=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);Jn(To);const Uo=new Array(In*2);Jn(Uo);const ys=new Array($s);Jn(ys);const el=new Array(Ua-Mi+1);Jn(el);const vl=new Array(Aa);Jn(vl);const ic=new Array(In);Jn(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)},ii=(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},ta=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)},oa=(n,o)=>{const a=o.dyn_tree,l=o.max_code,A=o.stat_desc.static_tree,p=o.stat_desc.has_stree,N=o.stat_desc.extra_bits,E=o.stat_desc.extra_base,U=o.stat_desc.max_length;let Z,oe,Re,$e,ae,mt,ut=0;for($e=0;$e<=Fa;$e++)n.bl_count[$e]=0;for(a[n.heap[n.heap_max]*2+1]=0,Z=n.heap_max+1;Z<Ji;Z++)oe=n.heap[Z],$e=a[a[oe*2+1]*2+1]+1,$e>U&&($e=U,ut++),a[oe*2+1]=$e,!(oe>l)&&(n.bl_count[$e]++,ae=0,oe>=E&&(ae=N[oe-E]),mt=a[oe*2],n.opt_len+=mt*($e+ae),p&&(n.static_len+=mt*(A[oe*2+1]+ae)));if(ut!==0){do{for($e=U-1;n.bl_count[$e]===0;)$e--;n.bl_count[$e]--,n.bl_count[$e+1]+=2,n.bl_count[U]--,ut-=2}while(ut>0);for($e=U;$e!==0;$e--)for(oe=n.bl_count[$e];oe!==0;)Re=n.heap[--Z],!(Re>l)&&(a[Re*2+1]!==$e&&(n.opt_len+=($e-a[Re*2+1])*a[Re*2],a[Re*2+1]=$e),oe--)}},Da=(n,o,a)=>{const l=new Array(Fa+1);let A=0,p,N;for(p=1;p<=Fa;p++)A=A+a[p-1]<<1,l[p]=A;for(N=0;N<=o;N++){let E=n[N*2+1];E!==0&&(n[N*2]=la(l[E]++,E))}},so=()=>{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<<Os[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<<po[l];n++)ys[A++]=l;for(A>>=7;l<In;l++)for(ic[l]=A<<7,n=0;n<1<<po[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<In;n++)Uo[n*2+1]=5,Uo[n*2]=la(n,5);Ql=new ac(To,Os,Bo+1,Vn,Fa),Zs=new ac(Uo,po,0,In,Fa),Dc=new ac(new Array(0),bs,0,Di,$a)},Ws=n=>{let o;for(o=0;o<Vn;o++)n.dyn_ltree[o*2]=0;for(o=0;o<In;o++)n.dyn_dtree[o*2]=0;for(o=0;o<Di;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},eo=(n,o,a)=>{let l,A,p=0,N,E;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?ii(n,A,o):(N=el[A],ii(n,N+Bo+1,o),E=Os[N],E!==0&&(A-=vl[N],as(n,A,E)),l--,N=Hl(l),ii(n,N,a),E=po[N],E!==0&&(l-=ic[N],as(n,l,E)));while(p<n.sym_next);ii(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 N,E,U=-1,Z;for(n.heap_len=0,n.heap_max=Ji,N=0;N<p;N++)a[N*2]!==0?(n.heap[++n.heap_len]=U=N,n.depth[N]=0):a[N*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,N=n.heap_len>>1;N>=1;N--)ms(n,a,N);Z=p;do N=n.heap[1],n.heap[1]=n.heap[n.heap_len--],ms(n,a,1),E=n.heap[1],n.heap[--n.heap_max]=N,n.heap[--n.heap_max]=E,a[Z*2]=a[N*2]+a[E*2],n.depth[Z]=(n.depth[N]>=n.depth[E]?n.depth[N]:n.depth[E])+1,a[N*2+1]=a[E*2+1]=Z,n.heap[1]=Z++,ms(n,a,1);while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],oa(n,o),Da(a,U,n.bl_count)},os=(n,o,a)=>{let l,A=-1,p,N=o[0*2+1],E=0,U=7,Z=4;for(N===0&&(U=138,Z=3),o[(a+1)*2+1]=65535,l=0;l<=a;l++)p=N,N=o[(l+1)*2+1],!(++E<U&&p===N)&&(E<Z?n.bl_tree[p*2]+=E:p!==0?(p!==A&&n.bl_tree[p*2]++,n.bl_tree[Io*2]++):E<=10?n.bl_tree[So*2]++:n.bl_tree[Po*2]++,E=0,A=p,N===0?(U=138,Z=3):p===N?(U=6,Z=3):(U=7,Z=4))},ss=(n,o,a)=>{let l,A=-1,p,N=o[0*2+1],E=0,U=7,Z=4;for(N===0&&(U=138,Z=3),l=0;l<=a;l++)if(p=N,N=o[(l+1)*2+1],!(++E<U&&p===N)){if(E<Z)do ii(n,p,n.bl_tree);while(--E!==0);else p!==0?(p!==A&&(ii(n,p,n.bl_tree),E--),ii(n,Io,n.bl_tree),as(n,E-3,2)):E<=10?(ii(n,So,n.bl_tree),as(n,E-3,3)):(ii(n,Po,n.bl_tree),as(n,E-11,7));E=0,A=p,N===0?(U=138,Z=3):p===N?(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=Di-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 ci;if(n.dyn_ltree[9*2]!==0||n.dyn_ltree[10*2]!==0||n.dyn_ltree[13*2]!==0)return fn;for(a=32;a<Bo;a++)if(n.dyn_ltree[a*2]!==0)return fn;return ci};let pA=!1;const tu=n=>{pA||(so(),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,pi<<1,3),ii(n,fa,To),ta(n)},ll=(n,o,a,l)=>{let A,p,N=0;n.level>0?(n.strm.data_type===ln&&(n.strm.data_type=Fo(n)),Ra(n,n.l_desc),Ra(n,n.d_desc),N=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,(pi<<1)+(l?1:0),3),eo(n,To,Uo)):(as(n,(qi<<1)+(l?1:0),3),Go(n,n.l_desc.max_code+1,n.d_desc.max_code+1,N+1),eo(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]+Bo+1)*2]++,n.dyn_dtree[Hl(o)*2]++),n.sym_next===n.sym_end);var tl=tu,gs=Ac,qc=ll,Ts=gA,OA=mA,uc={_tr_init:tl,_tr_stored_block:gs,_tr_flush_block:qc,_tr_tally:Ts,_tr_align:OA},to=(n,o,a,l)=>{let A=n&65535|0,p=n>>>16&65535|0,N=0;for(;a!==0;){N=a>2e3?2e3:a,a-=N;do A=A+o[l++]|0,p=p+A|0;while(--N);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 N=l;N<p;N++)n=n>>>8^A[(n^o[N])&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:go,_tr_flush_block:jo,_tr_tally:zo,_tr_align:No}=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:Nc,Z_DEFAULT_STRATEGY:Fd,Z_UNKNOWN:Xo,Z_DEFLATED:Oo}=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,Oc=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=to(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,N=n.prev_length,E=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,$e=n.strstart+wA;let ae=Z[l+N-1],mt=Z[l+N];n.prev_length>=n.good_match&&(a>>=2),E>n.lookahead&&(E=n.lookahead);do if(A=o,!(Z[A+N]!==mt||Z[A+N-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<$e);if(p=wA-($e-l),l=$e-wA,p>N){if(n.match_start=o,N=p,p>=E)break;ae=Z[l+N-1],mt=Z[l+N]}}while((o=Re[o&oe])>U&&--a!==0);return N<=n.lookahead?N: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,N=0,E=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;N=o===Xs&&l===A+n.strm.avail_in?1:0,go(n,0,0,N),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(N===0);return E-=n.strm.avail_in,E&&(E>=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<=E&&(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-E,n.strm.next_in),n.strstart),n.strstart+=E,n.insert+=E>n.w_size-n.insert?n.w_size-n.insert:E),n.block_start=n.strstart),n.high_water<n.strstart&&(n.high_water=n.strstart),N?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,N=o===Xs&&n.strm.avail_in===0&&l===A?1:0,go(n,n.block_start,l,N),n.block_start+=l,tA(n.strm)),N?Oc: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?Oc: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?Oc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?Cl:Bl},x0=(n,o)=>{let a,l,A,p;const N=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=N[A],l===N[++A]&&l===N[++A]&&l===N[++A])){p=n.strstart+wA;do;while(l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++A]&&l===N[++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?Oc: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?Oc: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 ue(){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=Oo,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 xe=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},Je=n=>{if(xe(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},ct=n=>{const o=Je(n);return o===xl&&B0(n.state),o},Ct=(n,o)=>xe(n)||n.state.wrap!==2?rl:(n.state.gzhead=o,xl),vt=(n,o,a,l,A,p)=>{if(!n)return rl;let N=1;if(o===jA&&(o=6),l<0?(N=0,l=-l):l>15&&(N=2,l-=16),A<1||A>Jo||a!==Oo||l<8||l>15||o<0||o>9||p<0||p>Nc||l===8&&N!==1)return _u(n,rl);l===8&&(l=9);const E=new ue;return n.state=E,E.strm=n,E.status=nu,E.wrap=N,E.gzhead=null,E.w_bits=l,E.w_size=1<<E.w_bits,E.w_mask=E.w_size-1,E.hash_bits=A+7,E.hash_size=1<<E.hash_bits,E.hash_mask=E.hash_size-1,E.hash_shift=~~((E.hash_bits+Mo-1)/Mo),E.window=new Uint8Array(E.w_size*2),E.head=new Uint16Array(E.hash_size),E.prev=new Uint16Array(E.w_size),E.lit_bufsize=1<<A+6,E.pending_buf_size=E.lit_bufsize*4,E.pending_buf=new Uint8Array(E.pending_buf_size),E.sym_buf=E.lit_bufsize,E.sym_end=(E.lit_bufsize-1)*3,E.level=o,E.strategy=p,E.method=a,ct(n)},$t=(n,o)=>vt(n,o,Oo,yc,zl,Fd),zt=(n,o)=>{if(xe(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=Oo+(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 E=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+E),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+=E,tA(n),a.pending!==0)return a.last_flush=-1,xl;A=0,p-=E}let N=new Uint8Array(a.gzhead.extra);a.pending_buf.set(N.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===Oc||A===Pc)&&(a.status=uf),A===Cl||A===Oc)return n.avail_out===0&&(a.last_flush=-1),xl;if(A===Bl&&(o===oc?No(a):o!==bA&&(go(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(xe(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(xe(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=to(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,N=n.next_in,E=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=N,n.input=E,n.avail_in=p,l.wrap=A,xl};var _r=$t,mr=vt,tn=ct,Vr=Je,Yr=Ct,Pn=zt,xn=Qt,Fn=dr,Bn="pako deflate (from Nodeca project)",zn={deflateInit:_r,deflateInit2:mr,deflateReset:tn,deflateResetKeep:Vr,deflateSetHeader:Yr,deflate:Pn,deflateEnd:xn,deflateSetDictionary:Fn,deflateInfo:Bn};const Ti=(n,o)=>Object.prototype.hasOwnProperty.call(n,o);var ji=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)Ti(a,l)&&(n[l]=a[l])}}return n},mi=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 N=n[l];a.set(N,A),A+=N.length}return a},na={assign:ji,flattenChunks:mi};let wa=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(n){wa=!1}const Yn=new Uint8Array(256);for(let n=0;n<256;n++)Yn[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;Yn[254]=Yn[254]=1;var bi=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let o,a,l,A,p,N=n.length,E=0;for(A=0;A<N;A++)a=n.charCodeAt(A),(a&64512)===55296&&A+1<N&&(l=n.charCodeAt(A+1),(l&64512)===56320&&(a=65536+(a-55296<<10)+(l-56320),A++)),E+=a<128?1:a<2048?2:a<65536?3:4;for(o=new Uint8Array(E),p=0,A=0;p<E;A++)a=n.charCodeAt(A),(a&64512)===55296&&A+1<N&&(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 oi=(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 N=n[l++];if(N<128){p[A++]=N;continue}let E=Yn[N];if(E>4){p[A++]=65533,l+=E-1;continue}for(N&=E===2?31:E===3?15:7;E>1&&l<a;)N=N<<6|n[l++]&63,E--;if(E>1){p[A++]=65533;continue}N<65536?p[A++]=N:(N-=65536,p[A++]=55296|N>>10&1023,p[A++]=56320|N&1023)}return oi(p,A)},si=(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+Yn[n[a]]>o?a:o},Vi={string2buf:bi,buf2string:Tn,utf8border:si};function Na(){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=Na;const Wi=Object.prototype.toString,{Z_NO_FLUSH:_a,Z_SYNC_FLUSH:Qa,Z_FULL_FLUSH:Yo,Z_FINISH:lo,Z_OK:vs,Z_STREAM_END:cs,Z_DEFAULT_COMPRESSION:ma,Z_DEFAULT_STRATEGY:al,Z_DEFLATED:mo}=ya;function qo(n){this.options=na.assign({level:ma,method:mo,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=Vi.string2buf(o.dictionary):Wi.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?lo:_a,typeof n=="string"?a.input=Vi.string2buf(n):Wi.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=na.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 li(n,o){return o=o||{},o.gzip=!0,rs(n,o)}var Gi=qo,zi=rs,Ni=xc,vo=li,Oi=ya,ca={Deflate:Gi,deflate:zi,deflateRaw:Ni,gzip:vo,constants:Oi};const ja=16209,Za=16191;var Ml=function(o,a){let l,A,p,N,E,U,Z,oe,Re,$e,ae,mt,ut,bt,ot,Gt,Rt,It,Mr,rn,Wr,ar,Mt,Cr;const it=o.state;l=o.next_in,Mt=o.input,A=l+(o.avail_in-5),p=o.next_out,Cr=o.output,N=p-(a-o.avail_out),E=p+(o.avail_out-257),U=it.dmax,Z=it.wsize,oe=it.whave,Re=it.wnext,$e=it.window,ae=it.hold,mt=it.bits,ut=it.lencode,bt=it.distcode,ot=(1<<it.lenbits)-1,Gt=(1<<it.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)Cr[p++]=Rt&65535;else if(It&16){Mr=Rt&65535,It&=15,It&&(mt<It&&(ae+=Mt[l++]<<mt,mt+=8),Mr+=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",it.mode=ja;break e}if(ae>>>=It,mt-=It,It=p-N,rn>It){if(It=rn-It,It>oe&&it.sane){o.msg="invalid distance too far back",it.mode=ja;break e}if(Wr=0,ar=$e,Re===0){if(Wr+=Z-It,It<Mr){Mr-=It;do Cr[p++]=$e[Wr++];while(--It);Wr=p-rn,ar=Cr}}else if(Re<It){if(Wr+=Z+Re-It,It-=Re,It<Mr){Mr-=It;do Cr[p++]=$e[Wr++];while(--It);if(Wr=0,Re<Mr){It=Re,Mr-=It;do Cr[p++]=$e[Wr++];while(--It);Wr=p-rn,ar=Cr}}}else if(Wr+=Re-It,It<Mr){Mr-=It;do Cr[p++]=$e[Wr++];while(--It);Wr=p-rn,ar=Cr}for(;Mr>2;)Cr[p++]=ar[Wr++],Cr[p++]=ar[Wr++],Cr[p++]=ar[Wr++],Mr-=3;Mr&&(Cr[p++]=ar[Wr++],Mr>1&&(Cr[p++]=ar[Wr++]))}else{Wr=p-rn;do Cr[p++]=Cr[Wr++],Cr[p++]=Cr[Wr++],Cr[p++]=Cr[Wr++],Mr-=3;while(Mr>2);Mr&&(Cr[p++]=Cr[Wr++],Mr>1&&(Cr[p++]=Cr[Wr++]))}}else if(It&64){o.msg="invalid distance code",it.mode=ja;break e}else{Rt=bt[(Rt&65535)+(ae&(1<<It)-1)];continue r}break}}else if(It&64)if(It&32){it.mode=Za;break e}else{o.msg="invalid literal/length code",it.mode=ja;break e}else{Rt=ut[(Rt&65535)+(ae&(1<<It)-1)];continue t}break}}while(l<A&&p<E);Mr=mt>>3,l-=Mr,mt-=Mr<<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<E?257+(E-p):257-(p-E),it.hold=ae,it.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]),co=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]),hn=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,N,E)=>{const U=E.bits;let Z=0,oe=0,Re=0,$e=0,ae=0,mt=0,ut=0,bt=0,ot=0,Gt=0,Rt,It,Mr,rn,Wr,ar=null,Mt;const Cr=new Uint16Array(nl+1),it=new Uint16Array(nl+1);let yt=null,Wt,Ht,Tr;for(Z=0;Z<=nl;Z++)Cr[Z]=0;for(oe=0;oe<l;oe++)Cr[o[a+oe]]++;for(ae=U,$e=nl;$e>=1&&Cr[$e]===0;$e--);if(ae>$e&&(ae=$e),$e===0)return A[p++]=1<<24|64<<16|0,A[p++]=1<<24|64<<16|0,E.bits=1,0;for(Re=1;Re<$e&&Cr[Re]===0;Re++);for(ae<Re&&(ae=Re),bt=1,Z=1;Z<=nl;Z++)if(bt<<=1,bt-=Cr[Z],bt<0)return-1;if(bt>0&&(n===Uc||$e!==1))return-1;for(it[1]=0,Z=1;Z<nl;Z++)it[Z+1]=it[Z]+Cr[Z];for(oe=0;oe<l;oe++)o[a+oe]!==0&&(N[it[o[a+oe]]++]=oe);if(n===Uc?(ar=yt=N,Mt=20):n===Hn?(ar=Fu,yt=co,Mt=257):(ar=hn,yt=Lo,Mt=0),Gt=0,oe=0,Z=Re,Wr=p,mt=ae,ut=0,Mr=-1,ot=1<<ae,rn=ot-1,n===Hn&&ot>Gc||n===dc&&ot>Us)return 1;for(;;){Wt=Z-ut,N[oe]+1<Mt?(Ht=0,Tr=N[oe]):N[oe]>=Mt?(Ht=yt[N[oe]-Mt],Tr=ar[N[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++,--Cr[Z]===0){if(Z===$e)break;Z=o[a+N[oe]]}if(Z>ae&&(Gt&rn)!==Mr){for(ut===0&&(ut=ae),Wr+=Re,mt=Z-ut,bt=1<<mt;mt+ut<$e&&(bt-=Cr[mt+ut],!(bt<=0));)mt++,bt<<=1;if(ot+=1<<mt,n===Hn&&ot>Gc||n===dc&&ot>Us)return 1;Mr=Gt&rn,A[Mr]=ae<<24|mt<<16|Wr-p|0}}return Gt!==0&&(A[Wr+Gt]=Z-ut<<24|64<<16|0),E.bits=ae,0};const ia=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,ao=16185,Zo=16186,Vl=16187,us=16188,kl=16189,Wl=16190,Js=16191,BA=16192,hf=16193,pf=16194,id=16195,Ao=16196,Bs=16197,SA=16198,EA=16199,Gl=16200,$f=16201,TA=16202,Zf=16203,Vf=16204,ad=16205,Nd=16206,Od=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},uo=(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},bo=(n,o)=>{let a,l,A,p,N,E,U,Z,oe,Re,$e,ae,mt,ut,bt=0,ot,Gt,Rt,It,Mr,rn,Wr,ar;const Mt=new Uint8Array(4);let Cr,it;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),N=n.next_out,A=n.output,U=n.avail_out,p=n.next_in,l=n.input,E=n.avail_in,Z=a.hold,oe=a.bits,Re=E,$e=U,ar=Al;e:for(;;)switch(a.mode){case xA:if(a.wrap===0){a.mode=BA;break}for(;oe<16;){if(E===0)break e;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(E===0)break e;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(E===0)break e;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(E===0)break e;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(E===0)break e;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=ao;case ao:if(a.flags&1024&&(ae=a.length,ae>E&&(ae=E),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)),E-=ae,p+=ae,a.length-=ae),a.length))break e;a.length=0,a.mode=Zo;case Zo:if(a.flags&2048){if(E===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<E);if(a.flags&512&&a.wrap&4&&(a.check=ls(a.check,l,ae,p)),E-=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(E===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<E);if(a.flags&512&&a.wrap&4&&(a.check=ls(a.check,l,ae,p)),E-=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(E===0)break e;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(E===0)break e;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=N,n.avail_out=U,n.next_in=p,n.avail_in=E,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=Nd;break}for(;oe<3;){if(E===0)break e;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=Ao;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(E===0)break e;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>E&&(ae=E),ae>U&&(ae=U),ae===0)break e;A.set(l.subarray(p,p+ae),N),E-=ae,p+=ae,U-=ae,N+=ae,a.length-=ae;break}a.mode=Js;break;case Ao:for(;oe<14;){if(E===0)break e;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(E===0)break e;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,Cr={bits:a.lenbits},ar=As(ia,a.lens,0,19,a.lencode,0,a.work,Cr),a.lenbits=Cr.bits,ar){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(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if(Rt<16)Z>>>=ot,oe-=ot,a.lens[a.have++]=Rt;else{if(Rt===16){for(it=ot+2;oe<it;){if(E===0)break e;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(it=ot+3;oe<it;){if(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}Z>>>=ot,oe-=ot,Wr=0,ae=3+(Z&7),Z>>>=3,oe-=3}else{for(it=ot+7;oe<it;){if(E===0)break e;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,Cr={bits:a.lenbits},ar=As(Sl,a.lens,0,a.nlen,a.lencode,0,a.work,Cr),a.lenbits=Cr.bits,ar){n.msg="invalid literal/lengths set",a.mode=zr;break}if(a.distbits=6,a.distcode=a.distdyn,Cr={bits:a.distbits},ar=As(Zl,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,Cr),a.distbits=Cr.bits,ar){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(E>=6&&U>=258){n.next_out=N,n.avail_out=U,n.next_in=p,n.avail_in=E,a.hold=Z,a.bits=oe,Ml(n,$e),N=n.next_out,A=n.output,U=n.avail_out,p=n.next_in,l=n.input,E=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(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if(Gt&&!(Gt&240)){for(It=ot,Mr=Gt,rn=Rt;bt=a.lencode[rn+((Z&(1<<It+Mr)-1)>>It)],ot=bt>>>24,Gt=bt>>>16&255,Rt=bt&65535,!(It+ot<=oe);){if(E===0)break e;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(it=a.extra;oe<it;){if(E===0)break e;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(E===0)break e;E--,Z+=l[p++]<<oe,oe+=8}if(!(Gt&240)){for(It=ot,Mr=Gt,rn=Rt;bt=a.distcode[rn+((Z&(1<<It+Mr)-1)>>It)],ot=bt>>>24,Gt=bt>>>16&255,Rt=bt&65535,!(It+ot<=oe);){if(E===0)break e;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(it=a.extra;oe<it;){if(E===0)break e;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=$e-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=N-a.offset,ae=a.length;ae>U&&(ae=U),U-=ae,a.length-=ae;do A[N++]=ut[mt++];while(--ae);a.length===0&&(a.mode=Gl);break;case ad:if(U===0)break e;A[N++]=a.length,U--,a.mode=Gl;break;case Nd:if(a.wrap){for(;oe<32;){if(E===0)break e;E--,Z|=l[p++]<<oe,oe+=8}if($e-=U,n.total_out+=$e,a.total+=$e,a.wrap&4&&$e&&(n.adler=a.check=a.flags?ls(a.check,A,$e,N-$e):to(a.check,A,$e,N-$e)),$e=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=Od;case Od:if(a.wrap&&a.flags){for(;oe<32;){if(E===0)break e;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:ar=au;break e;case zr:ar=_l;break e;case Pd:return il;case mf:default:return Rs}return n.next_out=N,n.avail_out=U,n.next_in=p,n.avail_in=E,a.hold=Z,a.bits=oe,(a.wsize||$e!==n.avail_out&&a.mode<zr&&(a.mode<Nd||o!==Rc))&&uo(n,n.output,n.next_out,$e-n.avail_out),Re-=n.avail_in,$e-=n.avail_out,n.total_in+=Re,n.total_out+=$e,a.total+=$e,a.wrap&4&&$e&&(n.adler=a.check=a.flags?ls(a.check,A,$e,n.next_out-$e):to(a.check,A,$e,n.next_out-$e)),n.data_type=a.bits+(a.last?64:0)+(a.mode===Js?128:0)+(a.mode===EA||a.mode===pf?256:0),(Re===0&&$e===0||o===Rc)&&ar===Al&&(ar=Ms),ar},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=to(A,o,a,0),A!==l.check)?_l:(p=uo(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=bo,Eo=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:Eo,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 Nm=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=na.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 Nm,Ur.inflateGetHeader(this.strm,this.header),o.dictionary&&(typeof o.dictionary=="string"?o.dictionary=Vi.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,N,E;if(this.ended)return!1;for(o===~~o?N=o:N=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,N),p===Jl&&A&&(p=Ur.inflateSetDictionary(a,A),p===Ih?p=Ur.inflate(a,N):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,N);switch(p){case ld:case Yf:case Jl:case Fh:return this.onEnd(p),this.ended=!0,!1}if(E=a.avail_out,a.next_out&&(a.avail_out===0||p===F0))if(this.options.to==="string"){let U=Vi.utf8border(a.output,a.next_out),Z=a.next_out-U,oe=Vi.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&&E===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=na.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:Om,deflateRaw:Pm,gzip:Tm}=ca,{Inflate:Um,inflate:mp,inflateRaw:Ls,ungzip:Wp}=k0;var Gp=eh,cd=Om,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 Nl(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),N=Math.abs(l-a);return A<=p&&A<=N?n:p<=N?o:a}function IA(n,o,a,l,A,p){switch(n){case 0:Nl(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,N=[{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}],E=Math.ceil(p/8)*A,U=new Uint8Array(l*a*E);let Z=0;for(let oe=0;oe<7;oe++){const Re=N[oe],$e=Math.ceil((a-Re.x)/Re.xStep),ae=Math.ceil((l-Re.y)/Re.yStep);if($e<=0||ae<=0)continue;const mt=$e*E,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,E),ut.set(Rt);for(let It=0;It<$e;It++){const Mr=Re.x+It*Re.xStep,rn=Re.y+bt*Re.yStep;if(!(Mr>=a||rn>=l))for(let Wr=0;Wr<E;Wr++)U[(rn*a+Mr)*E+Wr]=Rt[It*E+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]),Nh=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,N=Math.ceil(p/8)*A,E=Math.ceil(p/8*A*a),U=new Uint8Array(l*E);let Z=qp,oe=0,Re,$e;for(let ae=0;ae<l;ae++){switch(Re=o.subarray(oe+1,oe+1+E),$e=U.subarray(ae*E,(ae+1)*E),o[oe]){case 0:Nl(Re,$e,E);break;case 1:Qd(Re,$e,E,N);break;case 2:Cf(Re,$e,Z,E);break;case 3:Ad(Re,$e,Z,E,N);break;case 4:Xc(Re,$e,Z,E,N);break;default:throw new Error(`Unsupported filter: ${o[oe]}`)}Z=$e,oe+=E+1}if(p===16){const ae=new Uint16Array(U.buffer);if(Nh)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 Oh=Uint8Array.of(137,80,78,71,13,10,26,10);function Hm(n){n.writeBytes(Oh)}function O0(n){if(!jm(n.readBytes(Oh.length)))throw new Error("wrong PNG signature")}function jm(n){if(n.length<Oh.length)return!1;for(let o=0;o<Oh.length;o++)if(n[o]!==Oh[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 Pi{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(O0(this);!this._end;){const a=this.readUint32(),l=this.readChars(4);this.decodeChunk(a,l)}return this.decodeImage(),this._png}decodeApng(){for(O0(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 N=0;N<this._png.width;N++){const E=(p*a.width+N)*this._png.channels;for(let U=0;U<this._png.channels;U++)A.data[E+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=(N,E)=>{const U=((N+l.yOffset)*this._png.width+l.xOffset+E)*this._png.channels,Z=(N*l.width+E)*this._png.channels;return{index:U,frameIndex:Z}};switch(l.blendOp){case Th.SOURCE:for(let N=0;N<l.height;N++)for(let E=0;E<l.width;E++){const{index:U,frameIndex:Z}=p(N,E);for(let oe=0;oe<this._png.channels;oe++)a.data[U+oe]=l.data[Z+oe]}break;case Th.OVER:for(let N=0;N<l.height;N++)for(let E=0;E<l.width;E++){const{index:U,frameIndex:Z}=p(N,E);for(let oe=0;oe<this._png.channels;oe++){const Re=l.data[Z+this._png.channels-1]/A,$e=oe%(this._png.channels-1)===0?1:l.data[Z+oe],ae=Math.floor(Re*$e+(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 Li 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:N}=this._png,E=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 $e=0;$e<l;$e++)U.writeByte(0),p===16?Z=Vo(N,U,E,Z):Z=fc(N,U,E,Z);else this._interlaceMethod===InterlaceMethod.ADAM7&&(Z=om(this._png,N,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),N={width:Nu(a.width,"width"),height:Nu(a.height,"height"),channels:A,data:a.data,depth:p,text:a.text,palette:a.palette};this._colorType=l;const E=p<8?Math.ceil(N.width*p/8)*N.height*A:N.width*N.height*A;if(N.data.length!==E)throw new RangeError(`wrong data size. Found ${N.data.length}, expected ${E}`);return N}}function Nu(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:N,channels:E,depth:U}=n;let Z=0;U===16?Z=E*U/8/2:Z=E*U/8;for(let oe=0;oe<7;oe++){const Re=A[oe],$e=Math.floor((p-Re.x+Re.xStep-1)/Re.xStep),ae=Math.floor((N-Re.y+Re.yStep-1)/Re.yStep);if($e<=0||ae<=0)continue;const mt=$e*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<$e;Rt++){const It=Re.x+Rt*Re.xStep;if(It<p&&bt<N){const Mr=(bt*p+It)*Z;for(let rn=0;rn<Z;rn++)ot[Gt++]=o[Mr+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 Va=function(){return typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:this}();function Sf(){Va.console&&typeof Va.console.log=="function"&&Va.console.log.apply(Va.console,arguments)}var ks={log:Sf,warn:function(n){Va.console&&(typeof Va.console.warn=="function"?Va.console.warn.apply(Va.console,arguments):Sf.call(null,arguments))},error:function(n){Va.console&&(typeof Va.console.error=="function"?Va.console.error.apply(Va.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=Va.saveAs||((typeof window=="undefined"?"undefined":(0,pe.Z)(window))!=="object"||window!==Va?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(n,o,a){var l=Va.URL||Va.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,pe.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(Va.HTMLElement)||Va.safari,N=/CriOS\/[\d]+/.test(navigator.userAgent);if((N||A&&p)&&(typeof FileReader=="undefined"?"undefined":(0,pe.Z)(FileReader))==="object"){var E=new FileReader;E.onloadend=function(){var oe=E.result;oe=N?oe:oe.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=oe:location=oe,l=null},E.readAsDataURL(n)}else{var U=Va.URL||Va.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(E){return[parseInt(E[1]),parseInt(E[2]),parseInt(E[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(E){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(E){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}}],l=0;l<a.length;l++){var A=a[l].re,p=a[l].process,N=A.exec(n);N&&(o=p(N),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 E=this.r.toString(16),U=this.g.toString(16),Z=this.b.toString(16);return E.length==1&&(E="0"+E),U.length==1&&(U="0"+U),Z.length==1&&(Z="0"+Z),"#"+E+U+Z}}var vn=Va.atob.bind(Va),Qs=Va.btoa.bind(Va);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,N){return K0(o&a|~o&l,n,o,A,p,N)}function Sc(n,o,a,l,A,p,N){return K0(o&l|a&~l,n,o,A,p,N)}function sc(n,o,a,l,A,p,N){return K0(o^a^l,n,o,A,p,N)}function pc(n,o,a,l,A,p,N){return K0(a^(o|~l),n,o,A,p,N)}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 Ol(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function _f(n){return sm(n).map(Ol).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 N=(A=n,p=1+(256/n.length|0),new Array(p+1).join(A)),E=[],U=0;U<256;U++)E[U]=U;var Z=0;for(U=0;U<256;U++){var oe=E[U];Z=(Z+oe+N.charCodeAt(U))%256,E[U]=E[Z],E[Z]=oe}a=n,l=E}else E=l;var Re=o.length,$e=0,ae=0,mt="";for(U=0;U<Re;U++)ae=(ae+(oe=E[$e=($e+1)%256]))%256,E[$e]=E[ae],E[ae]=oe,N=E[(E[$e]+E[ae])%256],mt+=String.fromCharCode(o.charCodeAt(U)^N);return mt}var Uh={print:4,modify:8,copy:16,"annot-forms":32};function Ou(n,o,a,l){this.v=1,this.r=2;var A=192;n.forEach(function(E){if(Uh.perm!==void 0)throw new Error("Invalid permission: "+E);A+=Uh[E]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var p=(o+this.padding).substr(0,32),N=(a+this.padding).substr(0,32);this.O=this.processOwnerPassword(p,N),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,pe.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 N=o[a][p];try{N[0].apply(n,l)}catch(E){Va.console&&ks.error("jsPDF PubSub Error",E.message,E)}N[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],N=[],E=1,U=16,Z="S",oe=null;(0,pe.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||[]),E=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"),N=n.filters||(p===!0?["FlateEncode"]:N),l=l||"mm",a=(""+(a||"P")).toLowerCase();var Re=n.putOnlyUsedFonts||!1,$e={},ae={internal:{},__private__:{}};ae.__private__.PubSub=Sp;var mt="1.3",ut=ae.__private__.getPdfVersion=function(){return mt};ae.__private__.setPdfVersion=function(z){mt=z};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(z){return bt[z]};A=A||"a4";var Gt="compat",Rt="advanced",It=Gt;function Mr(){this.saveGraphicsState(),Ft(new Ka(ro,0,0,-ro,0,dh()*ro).toString()+" cm"),this.setFontSize(this.getFontSize()/ro),Z="n",It=Rt}function rn(){this.restoreGraphicsState(),Z="S",It=Gt}var Wr=ae.__private__.combineFontStyleAndFontWeight=function(z,He){if(z=="bold"&&He=="normal"||z=="bold"&&He==400||z=="normal"&&He=="italic"||z=="bold"&&He=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return He&&(z=He==400||He==="normal"?z==="italic"?"italic":"normal":He!=700&&He!=="bold"||z!=="normal"?(He==700?"bold":He)+""+z:"bold"),z};ae.advancedAPI=function(z){var He=It===Gt;return He&&Mr.call(this),typeof z!="function"||(z(this),He&&rn.call(this)),this},ae.compatAPI=function(z){var He=It===Rt;return He&&rn.call(this),typeof z!="function"||(z(this),He&&Mr.call(this)),this},ae.isAdvancedAPI=function(){return It===Rt};var ar,Mt=function(z){if(It!==Rt)throw new Error(z+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Cr=ae.roundToPrecision=ae.__private__.roundToPrecision=function(z,He){var Bt=o||He;if(isNaN(z)||isNaN(Bt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return z.toFixed(Bt).replace(/0+$/,"")};ar=ae.hpf=ae.__private__.hpf=typeof U=="number"?function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return Cr(z,U)}:U==="smart"?function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return Cr(z,z>-1&&z<1?16:5)}:function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return Cr(z,16)};var it=ae.f2=ae.__private__.f2=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.f2");return Cr(z,2)},yt=ae.__private__.f3=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.f3");return Cr(z,3)},Wt=ae.scale=ae.__private__.scale=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.scale");return It===Gt?z*ro:It===Rt?z:void 0},Ht=function(z){return Wt(function(He){return It===Gt?dh()-He:It===Rt?He:void 0}(z))};ae.__private__.setPrecision=ae.setPrecision=function(z){typeof parseInt(z,10)=="number"&&(o=parseInt(z,10))};var Tr,Zr="00000000000000000000000000000000",Jr=ae.__private__.getFileId=function(){return Zr},Lr=ae.__private__.setFileId=function(z){return Zr=z!==void 0&&/^[a-fA-F0-9]{32}$/.test(z)?z.toUpperCase():Zr.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),oe!==null&&(gc=new Ou(oe.userPermissions,oe.userPassword,oe.ownerPassword,Zr)),Zr};ae.setFileId=function(z){return Lr(z),this},ae.getFileId=function(){return Jr()};var Gr=ae.__private__.convertDateToPDFDate=function(z){var He=z.getTimezoneOffset(),Bt=He<0?"+":"-",Zt=Math.floor(Math.abs(He/60)),vr=Math.abs(He%60),dn=[Bt,Nt(Zt),"'",Nt(vr),"'"].join("");return["D:",z.getFullYear(),Nt(z.getMonth()+1),Nt(z.getDate()),Nt(z.getHours()),Nt(z.getMinutes()),Nt(z.getSeconds()),dn].join("")},$n=ae.__private__.convertPDFDateToDate=function(z){var He=parseInt(z.substr(2,4),10),Bt=parseInt(z.substr(6,2),10)-1,Zt=parseInt(z.substr(8,2),10),vr=parseInt(z.substr(10,2),10),dn=parseInt(z.substr(12,2),10),_n=parseInt(z.substr(14,2),10);return new Date(He,Bt,Zt,vr,dn,_n,0)},Sn=ae.__private__.setCreationDate=function(z){var He;if(z===void 0&&(z=new Date),z instanceof Date)He=Gr(z);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(z))throw new Error("Invalid argument passed to jsPDF.setCreationDate");He=z}return Tr=He},rt=ae.__private__.getCreationDate=function(z){var He=Tr;return z==="jsDate"&&(He=$n(Tr)),He};ae.setCreationDate=function(z){return Sn(z),this},ae.getCreationDate=function(z){return rt(z)};var _t,Nt=ae.__private__.padd2=function(z){return("0"+parseInt(z)).slice(-2)},Jt=ae.__private__.padd2Hex=function(z){return("00"+(z=z.toString())).substr(z.length)},fr=0,Ir=[],$r=[],Qr=0,gn=[],Rn=[],vi=!1,_i=$r;ae.__private__.setCustomOutputDestination=function(z){vi=!0,_i=z};var sn=function(z){vi||(_i=z)};ae.__private__.resetCustomOutputDestination=function(){vi=!1,_i=$r};var Ft=ae.__private__.out=function(z){return z=z.toString(),Qr+=z.length+1,_i.push(z),_i},Wo=ae.__private__.write=function(z){return Ft(arguments.length===1?z.toString():Array.prototype.join.call(arguments," "))},_o=ae.__private__.getArrayBuffer=function(z){for(var He=z.length,Bt=new ArrayBuffer(He),Zt=new Uint8Array(Bt);He--;)Zt[He]=z.charCodeAt(He);return Bt},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(z){return Wn=It===Rt?z/ro:z,this};var xa,fi=ae.__private__.getFontSize=ae.getFontSize=function(){return It===Gt?Wn:Wn*ro},Ya=n.R2L||!1;ae.__private__.setR2L=ae.setR2L=function(z){return Ya=z,this},ae.__private__.getR2L=ae.getR2L=function(){return Ya};var Ma,es=ae.__private__.setZoomMode=function(z){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(z))xa=z;else if(isNaN(z)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(z)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+z+'" is not recognized.');xa=z}else xa=parseInt(z,10)};ae.__private__.getZoomMode=function(){return xa};var wo,Ga=ae.__private__.setPageMode=function(z){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(z)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+z+'" is not recognized.');Ma=z};ae.__private__.getPageMode=function(){return Ma};var Ks=ae.__private__.setLayoutMode=function(z){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(z)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+z+'" is not recognized.');wo=z};ae.__private__.getLayoutMode=function(){return wo},ae.__private__.setDisplayMode=ae.setDisplayMode=function(z,He,Bt){return es(z),Ks(He),Ga(Bt),this};var fo={title:"",subject:"",author:"",keywords:"",creator:""};ae.__private__.getDocumentProperty=function(z){if(Object.keys(fo).indexOf(z)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return fo[z]},ae.__private__.getDocumentProperties=function(){return fo},ae.__private__.setDocumentProperties=ae.setProperties=ae.setDocumentProperties=function(z){for(var He in fo)fo.hasOwnProperty(He)&&z[He]&&(fo[He]=z[He]);return this},ae.__private__.setDocumentProperty=function(z,He){if(Object.keys(fo).indexOf(z)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return fo[z]=He};var Ba,ro,Sa,yl,Ds,ga={},xo={},ul=[],ka={},ns={},Co={},ql={},Pl=null,is=0,qa=[],Hs=new Sp(ae),zh=n.hotfixes||[],jc={},Ff={},Vd=[],Ka=function z(He,Bt,Zt,vr,dn,_n){if(!(this instanceof z))return new z(He,Bt,Zt,vr,dn,_n);isNaN(He)&&(He=1),isNaN(Bt)&&(Bt=0),isNaN(Zt)&&(Zt=0),isNaN(vr)&&(vr=1),isNaN(dn)&&(dn=0),isNaN(_n)&&(_n=0),this._matrix=[He,Bt,Zt,vr,dn,_n]};Object.defineProperty(Ka.prototype,"sx",{get:function(){return this._matrix[0]},set:function(z){this._matrix[0]=z}}),Object.defineProperty(Ka.prototype,"shy",{get:function(){return this._matrix[1]},set:function(z){this._matrix[1]=z}}),Object.defineProperty(Ka.prototype,"shx",{get:function(){return this._matrix[2]},set:function(z){this._matrix[2]=z}}),Object.defineProperty(Ka.prototype,"sy",{get:function(){return this._matrix[3]},set:function(z){this._matrix[3]=z}}),Object.defineProperty(Ka.prototype,"tx",{get:function(){return this._matrix[4]},set:function(z){this._matrix[4]=z}}),Object.defineProperty(Ka.prototype,"ty",{get:function(){return this._matrix[5]},set:function(z){this._matrix[5]=z}}),Object.defineProperty(Ka.prototype,"a",{get:function(){return this._matrix[0]},set:function(z){this._matrix[0]=z}}),Object.defineProperty(Ka.prototype,"b",{get:function(){return this._matrix[1]},set:function(z){this._matrix[1]=z}}),Object.defineProperty(Ka.prototype,"c",{get:function(){return this._matrix[2]},set:function(z){this._matrix[2]=z}}),Object.defineProperty(Ka.prototype,"d",{get:function(){return this._matrix[3]},set:function(z){this._matrix[3]=z}}),Object.defineProperty(Ka.prototype,"e",{get:function(){return this._matrix[4]},set:function(z){this._matrix[4]=z}}),Object.defineProperty(Ka.prototype,"f",{get:function(){return this._matrix[5]},set:function(z){this._matrix[5]=z}}),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(z){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ar).join(z)},Ka.prototype.multiply=function(z){var He=z.sx*this.sx+z.shy*this.shx,Bt=z.sx*this.shy+z.shy*this.sy,Zt=z.shx*this.sx+z.sy*this.shx,vr=z.shx*this.shy+z.sy*this.sy,dn=z.tx*this.sx+z.ty*this.shx+this.tx,_n=z.tx*this.shy+z.ty*this.sy+this.ty;return new Ka(He,Bt,Zt,vr,dn,_n)},Ka.prototype.decompose=function(){var z=this.sx,He=this.shy,Bt=this.shx,Zt=this.sy,vr=this.tx,dn=this.ty,_n=Math.sqrt(z*z+He*He),aa=(z/=_n)*Bt+(He/=_n)*Zt;Bt-=z*aa,Zt-=He*aa;var ha=Math.sqrt(Bt*Bt+Zt*Zt);return aa/=ha,z*(Zt/=ha)<He*(Bt/=ha)&&(z=-z,He=-He,aa=-aa,_n=-_n),{scale:new Ka(_n,0,0,ha,0,0),translate:new Ka(1,0,0,1,vr,dn),rotate:new Ka(z,He,-He,z,0,0),skew:new Ka(1,0,aa,1,0,0)}},Ka.prototype.toString=function(z){return this.join(" ")},Ka.prototype.inversed=function(){var z=this.sx,He=this.shy,Bt=this.shx,Zt=this.sy,vr=this.tx,dn=this.ty,_n=1/(z*Zt-He*Bt),aa=Zt*_n,ha=-He*_n,Xa=-Bt*_n,no=z*_n;return new Ka(aa,ha,Xa,no,-aa*vr-Xa*dn,-ha*vr-no*dn)},Ka.prototype.applyToPoint=function(z){var He=z.x*this.sx+z.y*this.shx+this.tx,Bt=z.x*this.shy+z.y*this.sy+this.ty;return new r0(He,Bt)},Ka.prototype.applyToRectangle=function(z){var He=this.applyToPoint(z),Bt=this.applyToPoint(new r0(z.x+z.w,z.y+z.h));return new Yd(He.x,He.y,Bt.x-He.x,Bt.y-He.y)},Ka.prototype.clone=function(){var z=this.sx,He=this.shy,Bt=this.shx,Zt=this.sy,vr=this.tx,dn=this.ty;return new Ka(z,He,Bt,Zt,vr,dn)},ae.Matrix=Ka;var Mf=ae.matrixMult=function(z,He){return He.multiply(z)},Lf=new Ka(1,0,0,1,0,0);ae.unitMatrix=ae.identityMatrix=Lf;var pu=function(z,He){if(!ns[z]){var Bt=(He instanceof jd?"Sh":"P")+(Object.keys(ka).length+1).toString(10);He.id=Bt,ns[z]=Bt,ka[Bt]=He,Hs.publish("addPattern",He)}};ae.ShadingPattern=jd,ae.TilingPattern=zd,ae.addShadingPattern=function(z,He){return Mt("addShadingPattern()"),pu(z,He),this},ae.beginTilingPattern=function(z){Mt("beginTilingPattern()"),n0(z.boundingBox[0],z.boundingBox[1],z.boundingBox[2]-z.boundingBox[0],z.boundingBox[3]-z.boundingBox[1],z.matrix)},ae.endTilingPattern=function(z,He){Mt("endTilingPattern()"),He.stream=Rn[_t].join(`
`),pu(z,He),Hs.publish("endTilingPattern",He),Vd.pop().restore()};var mu,lc=ae.__private__.newObject=function(){var z=Ss();return dl(z,!0),z},Ss=ae.__private__.newObjectDeferred=function(){return fr++,Ir[fr]=function(){return Qr},fr},dl=function(z,He){return He=typeof He=="boolean"&&He,Ir[z]=Qr,He&&Ft(z+" 0 obj"),z},Wd=ae.__private__.newAdditionalObject=function(){var z={objId:Ss(),content:""};return gn.push(z),z},Gd=Ss(),Uu=Ss(),gu=ae.__private__.decodeColorString=function(z){var He=z.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 Bt=parseFloat(He[0]);He=[Bt,Bt,Bt,"r"]}for(var Zt="#",vr=0;vr<3;vr++)Zt+=("0"+Math.floor(255*parseFloat(He[vr])).toString(16)).slice(-2);return Zt},lA=ae.__private__.encodeColorString=function(z){var He;typeof z=="string"&&(z={ch1:z});var Bt=z.ch1,Zt=z.ch2,vr=z.ch3,dn=z.ch4,_n=z.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Bt=="string"&&Bt.charAt(0)!=="#"){var aa=new Cp(Bt);if(aa.ok)Bt=aa.toHex();else if(!/^\d*\.?\d*$/.test(Bt))throw new Error('Invalid color "'+Bt+'" passed to jsPDF.encodeColorString.')}if(typeof Bt=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Bt)&&(Bt="#"+Bt[1]+Bt[1]+Bt[2]+Bt[2]+Bt[3]+Bt[3]),typeof Bt=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Bt)){var ha=parseInt(Bt.substr(1),16);Bt=ha>>16&255,Zt=ha>>8&255,vr=255&ha}if(Zt===void 0||dn===void 0&&Bt===Zt&&Zt===vr)He=typeof Bt=="string"?Bt+" "+_n[0]:z.precision===2?it(Bt/255)+" "+_n[0]:yt(Bt/255)+" "+_n[0];else if(dn===void 0||(0,pe.Z)(dn)==="object"){if(dn&&!isNaN(dn.a)&&dn.a===0)return["1.","1.","1.",_n[1]].join(" ");He=typeof Bt=="string"?[Bt,Zt,vr,_n[1]].join(" "):z.precision===2?[it(Bt/255),it(Zt/255),it(vr/255),_n[1]].join(" "):[yt(Bt/255),yt(Zt/255),yt(vr/255),_n[1]].join(" ")}else He=typeof Bt=="string"?[Bt,Zt,vr,dn,_n[2]].join(" "):z.precision===2?[it(Bt),it(Zt),it(vr),it(dn),_n[2]].join(" "):[yt(Bt),yt(Zt),yt(vr),yt(dn),_n[2]].join(" ");return He},vu=ae.__private__.getFilters=function(){return N},Ru=ae.__private__.putStream=function(z){var He=(z=z||{}).data||"",Bt=z.filters||vu(),Zt=z.alreadyAppliedFilters||[],vr=z.addLength1||!1,dn=He.length,_n=z.objectId,aa=function(fl){return fl};if(oe!==null&&_n===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");oe!==null&&(aa=gc.encryptor(_n,0));var ha={};Bt===!0&&(Bt=["FlateEncode"]);var Xa=z.additionalKeyValues||[],no=(ha=ua.API.processDataByFilters!==void 0?ua.API.processDataByFilters(He,Bt):{data:He,reverseChain:[]}).reverseChain+(Array.isArray(Zt)?Zt.join(" "):Zt.toString());if(ha.data.length!==0&&(Xa.push({key:"Length",value:ha.data.length}),vr===!0&&Xa.push({key:"Length1",value:dn})),no.length!=0)if(no.split("/").length-1==1)Xa.push({key:"Filter",value:no});else{Xa.push({key:"Filter",value:"["+no+"]"});for(var da=0;da<Xa.length;da+=1)if(Xa[da].key==="DecodeParms"){for(var tc=[],Ic=0;Ic<ha.reverseChain.split("/").length-1;Ic+=1)tc.push("null");tc.push(Xa[da].value),Xa[da].value="["+tc.join(" ")+"]"}}Ft("<<");for(var wl=0;wl<Xa.length;wl++)Ft("/"+Xa[wl].key+" "+Xa[wl].value);Ft(">>"),ha.data.length!==0&&(Ft("stream"),Ft(aa(ha.data)),Ft("endstream"))},$h=ae.__private__.putPage=function(z){var He=z.number,Bt=z.data,Zt=z.objId,vr=z.contentsObjId;dl(Zt,!0),Ft("<</Type /Page"),Ft("/Parent "+z.rootDictionaryObjId+" 0 R"),Ft("/Resources "+z.resourceDictionaryObjId+" 0 R"),Ft("/MediaBox ["+parseFloat(ar(z.mediaBox.bottomLeftX))+" "+parseFloat(ar(z.mediaBox.bottomLeftY))+" "+ar(z.mediaBox.topRightX)+" "+ar(z.mediaBox.topRightY)+"]"),z.cropBox!==null&&Ft("/CropBox ["+ar(z.cropBox.bottomLeftX)+" "+ar(z.cropBox.bottomLeftY)+" "+ar(z.cropBox.topRightX)+" "+ar(z.cropBox.topRightY)+"]"),z.bleedBox!==null&&Ft("/BleedBox ["+ar(z.bleedBox.bottomLeftX)+" "+ar(z.bleedBox.bottomLeftY)+" "+ar(z.bleedBox.topRightX)+" "+ar(z.bleedBox.topRightY)+"]"),z.trimBox!==null&&Ft("/TrimBox ["+ar(z.trimBox.bottomLeftX)+" "+ar(z.trimBox.bottomLeftY)+" "+ar(z.trimBox.topRightX)+" "+ar(z.trimBox.topRightY)+"]"),z.artBox!==null&&Ft("/ArtBox ["+ar(z.artBox.bottomLeftX)+" "+ar(z.artBox.bottomLeftY)+" "+ar(z.artBox.topRightX)+" "+ar(z.artBox.topRightY)+"]"),typeof z.userUnit=="number"&&z.userUnit!==1&&Ft("/UserUnit "+z.userUnit),Hs.publish("putPage",{objId:Zt,pageContext:qa[He],pageNumber:He,page:Bt}),Ft("/Contents "+vr+" 0 R"),Ft(">>"),Ft("endobj");var dn=Bt.join(`
`);return It===Rt&&(dn+=`
Q`),dl(vr,!0),Ru({data:dn,filters:vu(),objectId:vr}),Ft("endobj"),Zt},Xd=ae.__private__.putPages=function(){var z,He,Bt=[];for(z=1;z<=is;z++)qa[z].objId=Ss(),qa[z].contentsObjId=Ss();for(z=1;z<=is;z++)Bt.push($h({number:z,data:Rn[z],objId:qa[z].objId,contentsObjId:qa[z].contentsObjId,mediaBox:qa[z].mediaBox,cropBox:qa[z].cropBox,bleedBox:qa[z].bleedBox,trimBox:qa[z].trimBox,artBox:qa[z].artBox,userUnit:qa[z].userUnit,rootDictionaryObjId:Gd,resourceDictionaryObjId:Uu}));dl(Gd,!0),Ft("<</Type /Pages");var Zt="/Kids [";for(He=0;He<is;He++)Zt+=Bt[He]+" 0 R ";Ft(Zt+"]"),Ft("/Count "+is),Ft(">>"),Ft("endobj"),Hs.publish("postPutPages")},Zh=function(z){Hs.publish("putFont",{font:z,out:Ft,newObject:lc,putStream:Ru}),z.isAlreadyPutted!==!0&&(z.objectNumber=lc(),Ft("<<"),Ft("/Type /Font"),Ft("/BaseFont /"+iA(z.postScriptName)),Ft("/Subtype /Type1"),typeof z.encoding=="string"&&Ft("/Encoding /"+z.encoding),Ft("/FirstChar 32"),Ft("/LastChar 255"),Ft(">>"),Ft("endobj"))},Vh=function(z){z.objectNumber=lc();var He=[];He.push({key:"Type",value:"/XObject"}),He.push({key:"Subtype",value:"/Form"}),He.push({key:"BBox",value:"["+[ar(z.x),ar(z.y),ar(z.x+z.width),ar(z.y+z.height)].join(" ")+"]"}),He.push({key:"Matrix",value:"["+z.matrix.toString()+"]"});var Bt=z.pages[1].join(`
`);Ru({data:Bt,additionalKeyValues:He,objectId:z.objectNumber}),Ft("endobj")},$0=function(z,He){He||(He=21);var Bt=lc(),Zt=function(_n,aa){var ha,Xa=[],no=1/(aa-1);for(ha=0;ha<1;ha+=no)Xa.push(ha);if(Xa.push(1),_n[0].offset!=0){var da={offset:0,color:_n[0].color};_n.unshift(da)}if(_n[_n.length-1].offset!=1){var tc={offset:1,color:_n[_n.length-1].color};_n.push(tc)}for(var Ic="",wl=0,fl=0;fl<Xa.length;fl++){for(ha=Xa[fl];ha>_n[wl+1].offset;)wl++;var Fc=_n[wl].offset,uA=(ha-Fc)/(_n[wl+1].offset-Fc),Ku=_n[wl].color,qA=_n[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()}(z.colors,He),vr=[];vr.push({key:"FunctionType",value:"0"}),vr.push({key:"Domain",value:"[0.0 1.0]"}),vr.push({key:"Size",value:"["+He+"]"}),vr.push({key:"BitsPerSample",value:"8"}),vr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),vr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Ru({data:Zt,additionalKeyValues:vr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Bt}),Ft("endobj"),z.objectNumber=lc(),Ft("<< /ShadingType "+z.type),Ft("/ColorSpace /DeviceRGB");var dn="/Coords ["+ar(parseFloat(z.coords[0]))+" "+ar(parseFloat(z.coords[1]))+" ";z.type===2?dn+=ar(parseFloat(z.coords[2]))+" "+ar(parseFloat(z.coords[3])):dn+=ar(parseFloat(z.coords[2]))+" "+ar(parseFloat(z.coords[3]))+" "+ar(parseFloat(z.coords[4]))+" "+ar(parseFloat(z.coords[5])),Ft(dn+="]"),z.matrix&&Ft("/Matrix ["+z.matrix.toString()+"]"),Ft("/Function "+Bt+" 0 R"),Ft("/Extend [true true]"),Ft(">>"),Ft("endobj")},Wh=function(z,He){var Bt=Ss(),Zt=lc();He.push({resourcesOid:Bt,objectOid:Zt}),z.objectNumber=Zt;var vr=[];vr.push({key:"Type",value:"/Pattern"}),vr.push({key:"PatternType",value:"1"}),vr.push({key:"PaintType",value:"1"}),vr.push({key:"TilingType",value:"1"}),vr.push({key:"BBox",value:"["+z.boundingBox.map(ar).join(" ")+"]"}),vr.push({key:"XStep",value:ar(z.xStep)}),vr.push({key:"YStep",value:ar(z.yStep)}),vr.push({key:"Resources",value:Bt+" 0 R"}),z.matrix&&vr.push({key:"Matrix",value:"["+z.matrix.toString()+"]"}),Ru({data:z.stream,additionalKeyValues:vr,objectId:z.objectNumber}),Ft("endobj")},Fp=function(z){for(var He in z.objectNumber=lc(),Ft("<<"),z)switch(He){case"opacity":Ft("/ca "+it(z[He]));break;case"stroke-opacity":Ft("/CA "+it(z[He]))}Ft(">>"),Ft("endobj")},Mp=function(z){dl(z.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&&$e.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 Bt in Ft("/Pattern <<"),ka)ka.hasOwnProperty(Bt)&&ka[Bt]instanceof ae.TilingPattern&&ka[Bt].objectNumber>=0&&ka[Bt].objectNumber<He&&Ft("/"+Bt+" "+ka[Bt].objectNumber+" 0 R");Hs.publish("putTilingPatternDict"),Ft(">>")}}(z.objectOid),function(){if(Object.keys(Co).length>0){var He;for(He in Ft("/ExtGState <<"),Co)Co.hasOwnProperty(He)&&Co[He].objectNumber>=0&&Ft("/"+He+" "+Co[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(z){xo[z.fontName]=xo[z.fontName]||{},xo[z.fontName][z.fontStyle]=z.id},mm=function(z,He,Bt,Zt,vr){var dn={id:"F"+(Object.keys(ga).length+1).toString(10),postScriptName:z,fontName:He,fontStyle:Bt,encoding:Zt,isStandardFont:vr||!1,metadata:{}};return Hs.publish("addFont",{font:dn,instance:this}),ga[dn.id]=dn,pm(dn),dn.id},YA=ae.__private__.pdfEscape=ae.pdfEscape=function(z,He){return function(Bt,Zt){var vr,dn,_n,aa,ha,Xa,no,da,tc;if(_n=(Zt=Zt||{}).sourceEncoding||"Unicode",ha=Zt.outputEncoding,(Zt.autoencode||ha)&&ga[Ba].metadata&&ga[Ba].metadata[_n]&&ga[Ba].metadata[_n].encoding&&(aa=ga[Ba].metadata[_n].encoding,!ha&&ga[Ba].encoding&&(ha=ga[Ba].encoding),!ha&&aa.codePages&&(ha=aa.codePages[0]),typeof ha=="string"&&(ha=aa[ha]),ha)){for(no=!1,Xa=[],vr=0,dn=Bt.length;vr<dn;vr++)(da=ha[Bt.charCodeAt(vr)])?Xa.push(String.fromCharCode(da)):Xa.push(Bt[vr]),Xa[vr].charCodeAt(0)>>8&&(no=!0);Bt=Xa.join("")}for(vr=Bt.length;no===void 0&&vr!==0;)Bt.charCodeAt(vr-1)>>8&&(no=!0),vr--;if(!no)return Bt;for(Xa=Zt.noBOM?[]:[254,255],vr=0,dn=Bt.length;vr<dn;vr++){if((tc=(da=Bt.charCodeAt(vr))>>8)>>8)throw new Error("Character at position "+vr+" of string '"+Bt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Xa.push(tc),Xa.push(da-(tc<<8))}return String.fromCharCode.apply(void 0,Xa)}(z,He).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Gh=ae.__private__.beginPage=function(z){Rn[++is]=[],qa[is]={objId:0,contentsObjId:0,userUnit:Number(E),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(z[0]),topRightY:Number(z[1])}},Z0(is),sn(Rn[_t])},Lp=function(z,He){var Bt,Zt,vr;switch(a=He||a,typeof z=="string"&&(Bt=ot(z.toLowerCase()),Array.isArray(Bt)&&(Zt=Bt[0],vr=Bt[1])),Array.isArray(z)&&(Zt=z[0]*ro,vr=z[1]*ro),isNaN(Zt)&&(Zt=A[0],vr=A[1]),(Zt>14400||vr>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),vr=Math.min(14400,vr)),A=[Zt,vr],a.substr(0,1)){case"l":vr>Zt&&(A=[vr,Zt]);break;case"p":Zt>vr&&(A=[vr,Zt])}Gh(A),ig(q0),Ft(ep),e0!==0&&Ft(e0+" J"),Pp!==0&&Ft(Pp+" j"),Hs.publish("addPage",{pageNumber:is})},kp=function(z){z>0&&z<=is&&(Rn.splice(z,1),qa.splice(z,1),is--,_t>is&&(_t=is),this.setPage(_t))},Z0=function(z){z>0&&z<=is&&(_t=z)},V0=ae.__private__.getNumberOfPages=ae.getNumberOfPages=function(){return Rn.length-1},Dp=function(z,He,Bt){var Zt,vr=void 0;return Bt=Bt||{},z=z!==void 0?z:ga[Ba].fontName,He=He!==void 0?He:ga[Ba].fontStyle,Zt=z.toLowerCase(),xo[Zt]!==void 0&&xo[Zt][He]!==void 0?vr=xo[Zt][He]:xo[z]!==void 0&&xo[z][He]!==void 0?vr=xo[z][He]:Bt.disableWarning===!1&&ks.warn("Unable to look up font label for font '"+z+"', '"+He+"'. Refer to getFontList() for available fonts."),vr||Bt.noFallback||(vr=xo.times[He])==null&&(vr=xo.times.normal),vr},Qu=ae.__private__.putInfo=function(){var z=lc(),He=function(Zt){return Zt};for(var Bt in oe!==null&&(He=gc.encryptor(z,0)),Ft("<<"),Ft("/Producer ("+YA(He("jsPDF "+ua.version))+")"),fo)fo.hasOwnProperty(Bt)&&fo[Bt]&&Ft("/"+Bt.substr(0,1).toUpperCase()+Bt.substr(1)+" ("+YA(He(fo[Bt]))+")");Ft("/CreationDate ("+YA(He(Tr))+")"),Ft(">>"),Ft("endobj")},Xh=ae.__private__.putCatalog=function(z){var He=(z=z||{}).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 Bt=""+xa;Bt.substr(Bt.length-1)==="%"&&(xa=parseInt(xa)/100),typeof xa=="number"&&Ft("/OpenAction [3 0 R /XYZ null null "+it(xa)+"]")}switch(wo||(wo="continuous"),wo){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 "+(fr+1)),Ft("/Root "+fr+" 0 R"),Ft("/Info "+(fr-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")},Np=ae.__private__.putXRef=function(){var z="0000000000";Ft("xref"),Ft("0 "+(fr+1)),Ft("0000000000 65535 f ");for(var He=1;He<=fr;He++)typeof Ir[He]=="function"?Ft((z+Ir[He]()).slice(-10)+" 00000 n "):Ir[He]!==void 0?Ft((z+Ir[He]).slice(-10)+" 00000 n "):Ft("0000000000 00000 n ")},kf=ae.__private__.buildDocument=function(){var z;fr=0,Qr=0,$r=[],Ir=[],gn=[],Gd=Ss(),Uu=Ss(),sn($r),Hs.publish("buildDocument"),W0(),Xd(),function(){Hs.publish("putAdditionalObjects");for(var Bt=0;Bt<gn.length;Bt++){var Zt=gn[Bt];dl(Zt.objId,!0),Ft(Zt.content),Ft("endobj")}Hs.publish("postPutAdditionalObjects")}(),z=[],function(){for(var Bt in ga)ga.hasOwnProperty(Bt)&&(Re===!1||Re===!0&&$e.hasOwnProperty(Bt))&&Zh(ga[Bt])}(),function(){var Bt;for(Bt in Co)Co.hasOwnProperty(Bt)&&Fp(Co[Bt])}(),function(){for(var Bt in jc)jc.hasOwnProperty(Bt)&&Vh(jc[Bt])}(),function(Bt){var Zt;for(Zt in ka)ka.hasOwnProperty(Zt)&&(ka[Zt]instanceof jd?$0(ka[Zt]):ka[Zt]instanceof zd&&Wh(ka[Zt],Bt))}(z),Hs.publish("putResources"),z.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 Np(),ec(),Ft("startxref"),Ft(""+He),Ft("%%EOF"),sn(Rn[_t]),$r.join(`
`)},ch=ae.__private__.getBlob=function(z){return new Blob([_o(z)],{type:"application/pdf"})},gd=ae.output=ae.__private__.output=(mu=function(z,He){switch(typeof(He=He||{})=="string"?He={filename:He}:He.filename=He.filename||"generated.pdf",z){case void 0:return kf();case"save":ae.save(He.filename);break;case"arraybuffer":return _o(kf());case"blob":return ch(kf());case"bloburi":case"bloburl":if(Va.URL!==void 0&&typeof Va.URL.createObjectURL=="function")return Va.URL&&Va.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 Bt="",Zt=kf();try{Bt=Qs(Zt)}catch(Ic){Bt=Qs(unescape(encodeURIComponent(Zt)))}return"data:application/pdf;filename="+He.filename+";base64,"+Bt;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Va)==="[object Window]"){var vr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",dn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';He.pdfObjectUrl&&(vr=He.pdfObjectUrl,dn="");var _n='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+vr+'"'+dn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(He)+");<\/script></body></html>",aa=Va.open();return aa!==null&&aa.document.write(_n),aa}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Va)==="[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>',Xa=Va.open();if(Xa!==null){Xa.document.write(ha);var no=this;Xa.document.documentElement.querySelector("#pdfViewer").onload=function(){Xa.document.title=He.filename,Xa.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(no.output("bloburl"))}}return Xa}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Va)!=="[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=Va.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 Va.document.location.href=this.output("datauristring",He);default:return null}},mu.foo=function(){try{return mu.apply(this,arguments)}catch(Bt){var z=Bt.stack||"";~z.indexOf(" at ")&&(z=z.split(" at ")[1]);var He="Error in function "+z.split(`
`)[0].split("<")[0]+": "+Bt.message;if(!Va.console)throw new Error(He);Va.console.error(He,Bt),Va.alert&&alert(He)}},mu.foo.bar=mu,mu.foo),vd=function(z){return Array.isArray(zh)===!0&&zh.indexOf(z)>-1};switch(l){case"pt":ro=1;break;case"mm":ro=72/25.4;break;case"cm":ro=72/2.54;break;case"in":ro=72;break;case"px":ro=vd("px_scaling")==1?.75:96/72;break;case"pc":case"em":ro=12;break;case"ex":ro=6;break;default:if(typeof l!="number")throw new Error("Invalid unit: "+l);ro=l}var gc=null;Sn(),Lr();var G0=ae.__private__.getPageInfo=ae.getPageInfo=function(z){if(isNaN(z)||z%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:qa[z].objId,pageNumber:z,pageContext:qa[z]}},tg=ae.__private__.getPageInfoByObjId=function(z){if(isNaN(z)||z%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var He in qa)if(qa[He].objId===z)break;return G0(He)},X0=ae.__private__.getCurrentPageInfo=ae.getCurrentPageInfo=function(){return{objId:qa[_t].objId,pageNumber:_t,pageContext:qa[_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(z){return this.addPage(),this.movePage(_t,z),this},ae.movePage=function(z,He){var Bt,Zt;if(z>He){Bt=Rn[z],Zt=qa[z];for(var vr=z;vr>He;vr--)Rn[vr]=Rn[vr-1],qa[vr]=qa[vr-1];Rn[He]=Bt,qa[He]=Zt,this.setPage(He)}else if(z<He){Bt=Rn[z],Zt=qa[z];for(var dn=z;dn<He;dn++)Rn[dn]=Rn[dn+1],qa[dn]=qa[dn+1];Rn[He]=Bt,qa[He]=Zt,this.setPage(He)}return this},ae.deletePage=function(){return kp.apply(this,arguments),this},ae.__private__.text=ae.text=function(z,He,Bt,Zt,vr){var dn,_n,aa,ha,Xa,no,da,tc,Ic,wl=(Zt=Zt||{}).scope||this;if(typeof z=="number"&&typeof He=="number"&&(typeof Bt=="string"||Array.isArray(Bt))){var fl=Bt;Bt=He,He=z,z=fl}if(arguments[3]instanceof Ka==0?(aa=arguments[4],ha=arguments[5],(0,pe.Z)(da=arguments[3])==="object"&&da!==null||(typeof aa=="string"&&(ha=aa,aa=null),typeof da=="string"&&(ha=da,da=null),typeof da=="number"&&(aa=da,da=null),Zt={flags:da,angle:aa,align:ha})):(Mt("The transform parameter of text() with a Matrix value"),Ic=vr),isNaN(He)||isNaN(Bt)||z==null)throw new Error("Invalid arguments passed to jsPDF.text");if(z.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 z=="string")tf=!0;else if(Array.isArray(z)){var Of=z.concat();_n=[];for(var i0,Mc=Of.length;Mc--;)(typeof(i0=Of.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. "'+z+'" is not recognized.');typeof z=="string"&&(z=z.match(/[\r?\n]/)?z.split(/\r\n|\r|\n/g):[z]);var a0=Wn/wl.internal.scaleFactor,fh=a0*(Ku-1);switch(Zt.baseline){case"bottom":Bt-=fh;break;case"top":Bt+=a0-fh;break;case"hanging":Bt+=a0-2*fh;break;case"middle":Bt+=a0/2-fh}if((no=Zt.maxWidth||0)>0&&(typeof z=="string"?z=wl.splitTextToSize(z,no):Object.prototype.toString.call(z)==="[object Array]"&&(z=z.reduce(function(qs,pl){return qs.concat(wl.splitTextToSize(pl,no))},[]))),dn={text:z,x:He,y:Bt,options:Zt,mutex:{pdfEscape:YA,activeFontKey:Ba,fonts:ga,activeFontSize:Wn}},Hs.publish("preProcessText",dn),z=dn.text,aa=(Zt=dn.options).angle,Ic instanceof Ka==0&&aa&&typeof aa=="number"){aa*=Math.PI/180,Zt.rotationDirection===0&&(aa=-aa),It===Rt&&(aa=-aa);var Rp=Math.cos(aa),io=Math.sin(aa);Ic=new Ka(Rp,io,-io,Rp,0,0)}else aa&&aa instanceof Ka&&(Ic=aa);It!==Rt||Ic||(Ic=Lf),(Xa=Zt.charSpace||qh)!==void 0&&(uA+=ar(Wt(Xa))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(tc=Zt.horizontalScale)!==void 0&&(uA+=ar(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];Xa=Zt.charSpace||qh,no=Zt.maxWidth||0,da=Object.assign({autoencode:!0,noBOM:!0},Zt.flags);var hh=[],s0=function(qs){return wl.getStringUnitWidth(qs,{font:xm,charSpace:Xa,fontSize:Wn,doKerning:!1})*Wn/qA};if(Object.prototype.toString.call(z)==="[object Array]"){var DA;_n=Hu(z),ha!=="left"&&(hs=_n.map(s0));var yu,l0=0;if(ha==="right"){He-=hs[0],z=[],Mc=_n.length;for(var ph=0;ph<Mc;ph++)ph===0?(yu=yd(He),DA=wd(Bt)):(yu=Wt(l0-hs[ph]),DA=-o0),z.push([_n[ph],yu,DA]),l0=hs[ph]}else if(ha==="center"){He-=hs[0]/2,z=[],Mc=_n.length;for(var nf=0;nf<Mc;nf++)nf===0?(yu=yd(He),DA=wd(Bt)):(yu=Wt((l0-hs[nf])/2),DA=-o0),z.push([_n[nf],yu,DA]),l0=hs[nf]}else if(ha==="left"){z=[],Mc=_n.length;for(var af=0;af<Mc;af++)z.push(_n[af])}else if(ha==="justify"&&xm.encoding==="Identity-H"){z=[],Mc=_n.length,no=no!==0?no:Ul;for(var np=0,rc=0;rc<Mc;rc++)if(DA=rc===0?wd(Bt):-o0,yu=rc===0?yd(He):np,rc<Mc-1){var Cm=Wt((no-hs[rc])/(_n[rc].split(" ").length-1)),$u=_n[rc].split(" ");z.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?z.push([$u[Zu],c0,0]):z.push([$u[Zu]+" ",c0,0]),np-=c0}}else z.push([_n[rc],yu,DA]);z.push(["",np,0])}else{if(ha!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(z=[],Mc=_n.length,no=no!==0?no:Ul,rc=0;rc<Mc;rc++){DA=rc===0?wd(Bt):-o0,yu=rc===0?yd(He):0;var ip=_n[rc].split(" ").length-1,Qp=ip>0?(no-hs[rc])/ip:0;rc<Mc-1?hh.push(ar(Wt(Qp))):hh.push(0),z.push([_n[rc],yu,DA])}}}(typeof Zt.R2L=="boolean"?Zt.R2L:Ya)===!0&&(z=ju(z,function(qs,pl,vc){return[qs.split("").reverse().join(""),pl,vc]})),dn={text:z,x:He,y:Bt,options:Zt,mutex:{pdfEscape:YA,activeFontKey:Ba,fonts:ga,activeFontSize:Wn}},Hs.publish("postProcessText",dn),z=dn.text,Fc=dn.mutex.isHex||!1;var ap=ga[Ba].encoding;ap!=="WinAnsiEncoding"&&ap!=="StandardEncoding"||(z=ju(z,function(qs,pl,vc){return[Ro(qs),pl,vc]})),_n=Hu(z),z=[];for(var Pf,mh,ps,gh=Array.isArray(_n[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=ar(qs)+" "+ar(pl)+` Td
`,zc},Vu=0;Vu<_n.length;Vu++){switch(vh="",gh){case 1:ps=(Fc?"<":"(")+_n[Vu][0]+(Fc?">":")"),Pf=parseFloat(_n[Vu][1]),mh=parseFloat(_n[Vu][2]);break;case 0:ps=(Fc?"<":"(")+_n[Vu]+(Fc?">":")"),Pf=yd(He),mh=wd(Bt)}hh!==void 0&&hh[Vu]!==void 0&&(vh=hh[Vu]+` Tw
`),Vu===0?z.push(vh+A0(Pf,mh,Ic)+ps):gh===0?z.push(vh+ps):gh===1&&z.push(vh+A0(Pf,mh,Ic)+ps)}z=gh===0?z.join(` Tj
T* `):z.join(` Tj
`),z+=` Tj
`;var of=`BT
/`;return of+=Ba+" "+Wn+` Tf
`,of+=ar(Wn*Ku)+` TL
`,of+=Yh+`
`,of+=uA,of+=z,Ft(of+="ET"),$e[Ba]=!0,wl};var rg=ae.__private__.clip=ae.clip=function(z){return Ft(z==="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(z){var He=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(z)!==-1&&(He=!0),He};ae.__private__.setDefaultPathOperation=ae.setDefaultPathOperation=function(z){return bd(z)&&(Z=z),this};var gm=ae.__private__.getStyle=ae.getStyle=function(z){var He=Z;switch(z){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=z}return He},vm=ae.close=function(){return Ft("h"),this};ae.stroke=function(){return Ft("S"),this},ae.fill=function(z){return cA("f",z),this},ae.fillEvenOdd=function(z){return cA("f*",z),this},ae.fillStroke=function(z){return cA("B",z),this},ae.fillStrokeEvenOdd=function(z){return cA("B*",z),this};var cA=function(z,He){(0,pe.Z)(He)==="object"?Tl(He,z):Ft(z)},Es=function(z){z===null||It===Rt&&z===void 0||(z=gm(z),Ft(z))};function AA(z,He,Bt,Zt,vr){var dn=new zd(He||this.boundingBox,Bt||this.xStep,Zt||this.yStep,this.gState,vr||this.matrix);dn.stream=this.stream;var _n=z+"$$"+this.cloneIndex+++"$$";return pu(_n,dn),dn}var Tl=function(z,He){var Bt=ns[z.key],Zt=ka[Bt];if(Zt instanceof jd)Ft("q"),Ft(J0(He)),Zt.gState&&ae.setGState(Zt.gState),Ft(z.matrix.toString()+" cm"),Ft("/"+Bt+" sh"),Ft("Q");else if(Zt instanceof zd){var vr=new Ka(1,0,0,-1,0,dh());z.matrix&&(vr=vr.multiply(z.matrix||Lf),Bt=AA.call(Zt,z.key,z.boundingBox,z.xStep,z.yStep,vr).id),Ft("q"),Ft("/Pattern cs"),Ft("/"+Bt+" scn"),Zt.gState&&ae.setGState(Zt.gState),Ft(He),Ft("Q")}},J0=function(z){switch(z){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(z,He){return Ft(ar(Wt(z))+" "+ar(Ht(He))+" m"),this},Jd=ae.lineTo=function(z,He){return Ft(ar(Wt(z))+" "+ar(Ht(He))+" l"),this},Ah=ae.curveTo=function(z,He,Bt,Zt,vr,dn){return Ft([ar(Wt(z)),ar(Ht(He)),ar(Wt(Bt)),ar(Ht(Zt)),ar(Wt(vr)),ar(Ht(dn)),"c"].join(" ")),this};ae.__private__.line=ae.line=function(z,He,Bt,Zt,vr){if(isNaN(z)||isNaN(He)||isNaN(Bt)||isNaN(Zt)||!bd(vr))throw new Error("Invalid arguments passed to jsPDF.line");return It===Gt?this.lines([[Bt-z,Zt-He]],z,He,[1,1],vr||"S"):this.lines([[Bt-z,Zt-He]],z,He,[1,1]).stroke()},ae.__private__.lines=ae.lines=function(z,He,Bt,Zt,vr,dn){var _n,aa,ha,Xa,no,da,tc,Ic,wl,fl,Fc,uA;if(typeof z=="number"&&(uA=Bt,Bt=He,He=z,z=uA),Zt=Zt||[1,1],dn=dn||!1,isNaN(He)||isNaN(Bt)||!Array.isArray(z)||!Array.isArray(Zt)||!bd(vr)||typeof dn!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Y0(He,Bt),_n=Zt[0],aa=Zt[1],Xa=z.length,fl=He,Fc=Bt,ha=0;ha<Xa;ha++)(no=z[ha]).length===2?(fl=no[0]*_n+fl,Fc=no[1]*aa+Fc,Jd(fl,Fc)):(da=no[0]*_n+fl,tc=no[1]*aa+Fc,Ic=no[2]*_n+fl,wl=no[3]*aa+Fc,fl=no[4]*_n+fl,Fc=no[5]*aa+Fc,Ah(da,tc,Ic,wl,fl,Fc));return dn&&vm(),Es(vr),this},ae.path=function(z){for(var He=0;He<z.length;He++){var Bt=z[He],Zt=Bt.c;switch(Bt.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(z,He,Bt,Zt,vr){if(isNaN(z)||isNaN(He)||isNaN(Bt)||isNaN(Zt)||!bd(vr))throw new Error("Invalid arguments passed to jsPDF.rect");return It===Gt&&(Zt=-Zt),Ft([ar(Wt(z)),ar(Ht(He)),ar(Wt(Bt)),ar(Wt(Zt)),"re"].join(" ")),Es(vr),this},ae.__private__.triangle=ae.triangle=function(z,He,Bt,Zt,vr,dn,_n){if(isNaN(z)||isNaN(He)||isNaN(Bt)||isNaN(Zt)||isNaN(vr)||isNaN(dn)||!bd(_n))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Bt-z,Zt-He],[vr-Bt,dn-Zt],[z-vr,He-dn]],z,He,[1,1],_n,!0),this},ae.__private__.roundedRect=ae.roundedRect=function(z,He,Bt,Zt,vr,dn,_n){if(isNaN(z)||isNaN(He)||isNaN(Bt)||isNaN(Zt)||isNaN(vr)||isNaN(dn)||!bd(_n))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var aa=4/3*(Math.SQRT2-1);return vr=Math.min(vr,.5*Bt),dn=Math.min(dn,.5*Zt),this.lines([[Bt-2*vr,0],[vr*aa,0,vr,dn-dn*aa,vr,dn],[0,Zt-2*dn],[0,dn*aa,-vr*aa,dn,-vr,dn],[2*vr-Bt,0],[-vr*aa,0,-vr,-dn*aa,-vr,-dn],[0,2*dn-Zt],[0,-dn*aa,vr*aa,-dn,vr,-dn]],z+vr,He,[1,1],_n,!0),this},ae.__private__.ellipse=ae.ellipse=function(z,He,Bt,Zt,vr){if(isNaN(z)||isNaN(He)||isNaN(Bt)||isNaN(Zt)||!bd(vr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var dn=4/3*(Math.SQRT2-1)*Bt,_n=4/3*(Math.SQRT2-1)*Zt;return Y0(z+Bt,He),Ah(z+Bt,He-_n,z+dn,He-Zt,z,He-Zt),Ah(z-dn,He-Zt,z-Bt,He-_n,z-Bt,He),Ah(z-Bt,He+_n,z-dn,He+Zt,z,He+Zt),Ah(z+dn,He+Zt,z+Bt,He+_n,z+Bt,He),Es(vr),this},ae.__private__.circle=ae.circle=function(z,He,Bt,Zt){if(isNaN(z)||isNaN(He)||isNaN(Bt)||!bd(Zt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(z,He,Bt,Bt,Zt)},ae.setFont=function(z,He,Bt){return Bt&&(He=Wr(He,Bt)),Ba=Dp(z,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 z,He,Bt={};for(z in xo)if(xo.hasOwnProperty(z))for(He in Bt[z]=[],xo[z])xo[z].hasOwnProperty(He)&&Bt[z].push(He);return Bt},ae.addFont=function(z,He,Bt,Zt,vr){var dn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&dn.indexOf(arguments[3])!==-1?vr=arguments[3]:arguments[3]&&dn.indexOf(arguments[3])==-1&&(Bt=Wr(Bt,Zt)),mm.call(this,z,He,Bt,vr=vr||"Identity-H")};var Jh,q0=n.lineWidth||.200025,ho=ae.__private__.getLineWidth=ae.getLineWidth=function(){return q0},ig=ae.__private__.setLineWidth=ae.setLineWidth=function(z){return q0=z,Ft(ar(Wt(z))+" w"),this};ae.__private__.setLineDash=ua.API.setLineDash=ua.API.setLineDashPattern=function(z,He){if(z=z||[],He=He||0,isNaN(He)||!Array.isArray(z))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return z=z.map(function(Bt){return ar(Wt(Bt))}).join(" "),He=ar(Wt(He)),Ft("["+z+"] "+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(z){return typeof(z=z||1.15)=="number"&&(Jh=z),this},sg=ae.__private__.getLineHeightFactor=ae.getLineHeightFactor=function(){return Jh};og(n.lineHeight);var yd=ae.__private__.getHorizontalCoordinate=function(z){return Wt(z)},wd=ae.__private__.getVerticalCoordinate=function(z){return It===Rt?z:qa[_t].mediaBox.topRightY-qa[_t].mediaBox.bottomLeftY-Wt(z)},lg=ae.__private__.getHorizontalCoordinateString=ae.getHorizontalCoordinateString=function(z){return ar(yd(z))},Op=ae.__private__.getVerticalCoordinateString=ae.getVerticalCoordinateString=function(z){return ar(wd(z))},ep=n.strokeColor||"0 G";ae.__private__.getStrokeColor=ae.getDrawColor=function(){return gu(ep)},ae.__private__.setStrokeColor=ae.setDrawColor=function(z,He,Bt,Zt){return ep=lA({ch1:z,ch2:He,ch3:Bt,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(z,He,Bt,Zt){return uh=lA({ch1:z,ch2:He,ch3:Bt,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(z,He,Bt,Zt){return Yh=lA({ch1:z,ch2:He,ch3:Bt,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(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return qh=z,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(z){var He=ae.CapJoinStyles[z];if(He===void 0)throw new Error("Line cap style of '"+z+"' 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(z){var He=ae.CapJoinStyles[z];if(He===void 0)throw new Error("Line join style of '"+z+"' 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(z){if(z=z||0,isNaN(z))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Ft(ar(Wt(z))+" M"),this},ae.GState=Rh,ae.setGState=function(z){(z=typeof z=="string"?Co[ql[z]]:t0(null,z)).equals(Pl)||(Ft("/"+z.id+" gs"),Pl=z)};var t0=function(z,He){if(!z||!ql[z]){var Bt=!1;for(var Zt in Co)if(Co.hasOwnProperty(Zt)&&Co[Zt].equals(He)){Bt=!0;break}if(Bt)He=Co[Zt];else{var vr="GS"+(Object.keys(Co).length+1).toString(10);Co[vr]=He,He.id=vr}return z&&(ql[z]=He.id),Hs.publish("addGState",He),He}};ae.addGState=function(z,He){return t0(z,He),this},ae.saveGraphicsState=function(){return Ft("q"),ul.push({key:Ba,size:Wn,color:Yh}),this},ae.restoreGraphicsState=function(){Ft("Q");var z=ul.pop();return Ba=z.key,Wn=z.size,Yh=z.color,Pl=null,this},ae.setCurrentTransformationMatrix=function(z){return Ft(z.toString()+" cm"),this},ae.comment=function(z){return Ft("#"+z),this};var r0=function(z,He){var Bt=z||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Bt},set:function(dn){isNaN(dn)||(Bt=parseFloat(dn))}});var Zt=He||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Zt},set:function(dn){isNaN(dn)||(Zt=parseFloat(dn))}});var vr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return vr},set:function(dn){vr=dn.toString()}}),this},Yd=function(z,He,Bt,Zt){r0.call(this,z,He),this.type="rect";var vr=Bt||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return vr},set:function(_n){isNaN(_n)||(vr=parseFloat(_n))}});var dn=Zt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return dn},set:function(_n){isNaN(_n)||(dn=parseFloat(_n))}}),this},RA=function(){this.page=is,this.currentPage=_t,this.pages=Rn.slice(0),this.pagesContext=qa.slice(0),this.x=Sa,this.y=yl,this.matrix=Ds,this.width=Tp(_t),this.height=qd(_t),this.outputDestination=_i,this.id="",this.objectNumber=-1};RA.prototype.restore=function(){is=this.page,_t=this.currentPage,qa=this.pagesContext,Rn=this.pages,Sa=this.x,yl=this.y,Ds=this.matrix,rp(_t,this.width),ef(_t,this.height),_i=this.outputDestination};var n0=function(z,He,Bt,Zt,vr){Vd.push(new RA),is=_t=0,Rn=[],Sa=z,yl=He,Ds=vr,Gh([Bt,Zt])};for(var Df in ae.beginFormObject=function(z,He,Bt,Zt,vr){return n0(z,He,Bt,Zt,vr),this},ae.endFormObject=function(z){return function(He){if(Ff[He])Vd.pop().restore();else{var Bt=new RA,Zt="Xo"+(Object.keys(jc).length+1).toString(10);Bt.id=Zt,Ff[He]=Zt,jc[Zt]=Bt,Hs.publish("addFormObject",Bt),Vd.pop().restore()}}(z),this},ae.doFormObject=function(z,He){var Bt=jc[Ff[z]];return Ft("q"),Ft(He.toString()+" cm"),Ft("/"+Bt.id+" Do"),Ft("Q"),this},ae.getFormObject=function(z){var He=jc[Ff[z]];return{x:He.x,y:He.y,width:He.width,height:He.height,matrix:He.matrix}},ae.save=function(z,He){return z=z||"generated.pdf",(He=He||{}).returnPromise=He.returnPromise||!1,He.returnPromise===!1?(fd(ch(kf()),z),typeof fd.unload=="function"&&Va.setTimeout&&setTimeout(fd.unload,911),this):new Promise(function(Bt,Zt){try{var vr=fd(ch(kf()),z);typeof fd.unload=="function"&&Va.setTimeout&&setTimeout(fd.unload,911),Bt(vr)}catch(dn){Zt(dn.message)}})},ua.API)ua.API.hasOwnProperty(Df)&&(Df==="events"&&ua.API.events.length?function(z,He){var Bt,Zt,vr;for(vr=He.length-1;vr!==-1;vr--)Bt=He[vr][0],Zt=He[vr][1],z.subscribe.apply(z,[Bt].concat(typeof Zt=="function"?[Zt]:Zt))}(Hs,ua.API.events):ae[Df]=ua.API[Df]);function Tp(z){return qa[z].mediaBox.topRightX-qa[z].mediaBox.bottomLeftX}function rp(z,He){qa[z].mediaBox.topRightX=He+qa[z].mediaBox.bottomLeftX}function qd(z){return qa[z].mediaBox.topRightY-qa[z].mediaBox.bottomLeftY}function ef(z,He){qa[z].mediaBox.topRightY=He+qa[z].mediaBox.bottomLeftY}var ym=ae.getPageWidth=function(z){return Tp(z=z||_t)/ro},Nf=ae.setPageWidth=function(z,He){rp(z,He*ro)},dh=ae.getPageHeight=function(z){return qd(z=z||_t)/ro},Up=ae.setPageHeight=function(z,He){ef(z,He*ro)};return ae.internal={pdfEscape:YA,getStyle:gm,getFont:ng,getFontSize:fi,getCharSpace:bm,getTextColor:tp,getLineHeight:ag,getLineHeightFactor:sg,getLineWidth:ho,write:Wo,getHorizontalCoordinate:yd,getVerticalCoordinate:wd,getCoordinateString:lg,getVerticalCoordinateString:Op,collections:{},newObject:lc,newAdditionalObject:Wd,newObjectDeferred:Ss,newObjectDeferredBegin:dl,getFilters:vu,putStream:Ru,events:Hs,scaleFactor:ro,pageSize:{getWidth:function(){return ym(_t)},setWidth:function(z){Nf(_t,z)},getHeight:function(){return dh(_t)},setHeight:function(z){Up(_t,z)}},encryptionOptions:oe,encryption:gc,getEncryptor:function(z){return oe!==null?gc.encryptor(z,0):function(He){return He}},output:gd,getNumberOfPages:V0,pages:Rn,out:Ft,f2:it,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(z){Nf(_t,z)},enumerable:!0,configurable:!0}),Object.defineProperty(ae.internal.pageSize,"height",{get:function(){return dh(_t)},set:function(z){Up(_t,z)},enumerable:!0,configurable:!0}),function(z){for(var He=0,Bt=Ta.length;He<Bt;He++){var Zt=mm.call(this,z[He][0],z[He][1],z[He][2],Ta[He][3],!0);Re===!1&&($e[Zt]=!0);var vr=z[He][0].split("-");pm({id:Zt,fontName:vr[0],fontStyle:vr[1]||""})}Hs.publish("addFonts",{fonts:ga,dictionary:xo})}.call(ae,Ta),Ba="F1",Lp(A,a),Hs.publish("initialized"),ae}Ou.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},Ou.prototype.toHexString=function(n){return n.split("").map(function(o){return("0"+(255&o.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ou.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("")},Ou.prototype.processOwnerPassword=function(n,o){return mc(_f(o).substr(0,5),n)},Ou.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,pe.Z)(n)!==(0,pe.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=ti.internal.getHeight(n)||0,l=ti.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],N=n[2],E=n[3],U={};return U.lowerLeft_X=a(A)||0,U.lowerLeft_Y=l(p+E)||0,U.upperRight_X=a(A+N)||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=re(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}},re=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(it){return it.split(`
`)}):A.map(function(it){return[it]});var p=a,N=ti.internal.getHeight(n)||0;N=N<0?-N:N;var E=ti.internal.getWidth(n)||0;E=E<0?-E:E;var U=function(it,yt,Wt){if(it+1<A.length){var Ht=yt+" "+A[it+1][0];return _e(Ht,n,Wt).width<=E-4}return!1};p++;e:for(;p>0;){o="",p--;var Z,oe,Re=_e("3",n,p).height,$e=n.multiline?N-p:(N-Re)/2,ae=$e+=2,mt=0,ut=0,bt=0;if(p<=0){o=`(...) Tj
`,o+="% Width of Text: "+_e(o,n,p=12).width+", FieldWidth:"+E+`
`;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>N)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 Mr=parseInt(Rt),rn=U(Mr,ot,p),Wr=Rt>=A.length-1;if(rn&&!Wr){ot+=" ",bt=0;continue}if(rn||Wr){if(Wr)ut=Mr;else if(n.multiline&&(Re+2)*(Gt+2)+2>N)continue e}else{if(!n.multiline||(Re+2)*(Gt+2)+2>N)continue e;ut=Mr}}for(var ar="",Mt=mt;Mt<=ut;Mt++){var Cr=A[Mt];if(n.multiline){if(Mt===ut){ar+=Cr[bt]+" ",bt=(bt+1)%Cr.length;continue}if(Mt===mt){ar+=Cr[Cr.length-1]+" ";continue}}ar+=Cr[0]+" "}switch(ar=ar.substr(ar.length-1)==" "?ar.substr(0,ar.length-1):ar,oe=_e(ar,n,p).width,n.textAlign){case"right":Z=E-oe-2;break;case"center":Z=(E-oe)/2;break;default:Z=2}o+=La(Z)+" "+La(ae)+` Td
`,o+="("+hd(ar)+`) 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}},Ve={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(Ve)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");If=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new Ui,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 N 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(N)){var E=l[N],U=[],Z=E.Rect;if(E.Rect&&(E.Rect=w(E.Rect,A)),A.internal.newObjectDeferredBegin(E.objId,!0),E.DA=ti.createDefaultAppearanceStream(E),(0,pe.Z)(E)==="object"&&typeof E.getKeyValueListForStream=="function"&&(U=E.getKeyValueListForStream()),E.Rect=Z,E.hasAppearanceStream&&!E.appearanceStreamContent){var oe=y(E);U.push({key:"AP",value:"<</N "+oe+">>"}),A.internal.acroformPlugin.xForms.push(oe)}if(E.appearanceStreamContent){var Re="";for(var $e in E.appearanceStreamContent)if(E.appearanceStreamContent.hasOwnProperty($e)){var ae=E.appearanceStreamContent[$e];if(Re+="/"+$e+" ",Re+="<<",Object.keys(ae).length>=1||Array.isArray(ae)){for(var N in ae)if(ae.hasOwnProperty(N)){var mt=ae[N];typeof mt=="function"&&(mt=mt.call(A,E)),Re+="/"+N+" "+mt+" ",A.internal.acroformPlugin.xForms.indexOf(mt)>=0||A.internal.acroformPlugin.xForms.push(mt)}}else typeof(mt=ae)=="function"&&(mt=mt.call(A,E)),Re+="/"+N+" "+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:E.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,pe.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(N){return N};if(Array.isArray(n)){for(var A="[",p=0;p<n.length;p++)switch(p!==0&&(A+=" "),(0,pe.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 Ui=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(Ui,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 ki)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 N="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return N},set:function(ot){N=ot}});var E="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return E},set:function(ot){E=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 ki||this instanceof Ja))return Ar(Re,this.objId,this.scope)},set:function(ot){ot=ot.toString(),Re=ot}});var $e=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if($e)return this instanceof Oa==0?Ar($e,this.objId,this.scope):$e},set:function(ot){ot=ot.toString(),$e=this instanceof Oa==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 Oa==1?GA($e.substr(1,$e.length-1)):$e},set:function(ot){ot=ot.toString(),$e=this instanceof Oa==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 Oa==0?Ar(ae,this.objId,this.scope):ae},set:function(ot){ot=ot.toString(),ae=this instanceof Oa==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 Oa==1?GA(ae.substr(1,ae.length-1)):ae},set:function(ot){ot=ot.toString(),ae=this instanceof Oa==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 gi=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,N,E){E||(E=1);for(var U,Z=[];U=N.exec(p);)Z.push(U[E]);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(gi,Un);var Wa=function(){gi.call(this),this.fontName="helvetica",this.combo=!1};aA(Wa,gi);var ea=function(){Wa.call(this),this.combo=!0};aA(ea,Wa);var Yi=function(){ea.call(this),this.edit=!0};aA(Yi,ea);var Oa=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,pe.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(Oa,Un);var oo=function(){Oa.call(this),this.pushButton=!0};aA(oo,Oa);var Ia=function(){Oa.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,Oa);var ki=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(E){return E};this.scope&&(A=this.scope.internal.getEncryptor(this.objId));var p,N=[];for(p in N.push("<<"),l)N.push("/"+p+" ("+hd(A(l[p]))+")");return N.push(">>"),N.join(`
`)},set:function(A){(0,pe.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=ti.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};aA(ki,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 ki;return o.Parent=this,o.optionName=n,this.Kids.push(o),Ec.call(this.scope,o),o};var ko=function(){Oa.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=ti.CheckBox.createAppearanceStream()};aA(ko,Oa);var Ja=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(Ja,Un);var Pa=function(){Ja.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,Ja);var ti={CheckBox:{createAppearanceStream:function(){return{N:{On:ti.CheckBox.YesNormal},D:{On:ti.CheckBox.YesPushDown,Off:ti.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=re(n,n.caption);return a.push("0.749023 g"),a.push("0 0 "+La(ti.internal.getWidth(n))+" "+La(ti.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=ti.internal.getHeight(n),N=ti.internal.getWidth(n),E=re(n,n.caption);return A.push("1 g"),A.push("0 0 "+La(N)+" "+La(p)+" re"),A.push("f"),A.push("q"),A.push("0 0 1 rg"),A.push("0 0 "+La(N-1)+" "+La(p-1)+" re"),A.push("W"),A.push("n"),A.push("0 g"),A.push("BT"),A.push("/"+a+" "+La(E.fontSize)+" Tf "+l),A.push(E.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(ti.internal.getWidth(n))+" "+La(ti.internal.getHeight(n))+" re"),a.push("f"),o.stream=a.join(`
`),o}},RadioButton:{Circle:{createAppearanceStream:function(n){var o={D:{Off:ti.RadioButton.Circle.OffPushDown},N:{}};return o.N[n]=ti.RadioButton.Circle.YesNormal,o.D[n]=ti.RadioButton.Circle.YesPushDown,o},getCA:function(){return"l"},YesNormal:function(n){var o=cu(n);o.scope=n.scope;var a=[],l=ti.internal.getWidth(n)<=ti.internal.getHeight(n)?ti.internal.getWidth(n)/4:ti.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=ti.internal.Bezier_C,p=Number((l*A).toFixed(5));return a.push("q"),a.push("1 0 0 1 "+$d(ti.internal.getWidth(n)/2)+" "+$d(ti.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=ti.internal.getWidth(n)<=ti.internal.getHeight(n)?ti.internal.getWidth(n)/4:ti.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=Number((2*l).toFixed(5)),p=Number((A*ti.internal.Bezier_C).toFixed(5)),N=Number((l*ti.internal.Bezier_C).toFixed(5));return a.push("0.749023 g"),a.push("q"),a.push("1 0 0 1 "+$d(ti.internal.getWidth(n)/2)+" "+$d(ti.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(ti.internal.getWidth(n)/2)+" "+$d(ti.internal.getHeight(n)/2)+" cm"),a.push(l+" 0 m"),a.push(l+" "+N+" "+N+" "+l+" 0 "+l+" c"),a.push("-"+N+" "+l+" -"+l+" "+N+" -"+l+" 0 c"),a.push("-"+l+" -"+N+" -"+N+" -"+l+" 0 -"+l+" c"),a.push(N+" -"+l+" "+l+" -"+N+" "+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=ti.internal.getWidth(n)<=ti.internal.getHeight(n)?ti.internal.getWidth(n)/4:ti.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=Number((2*l).toFixed(5)),p=Number((A*ti.internal.Bezier_C).toFixed(5));return a.push("0.749023 g"),a.push("q"),a.push("1 0 0 1 "+$d(ti.internal.getWidth(n)/2)+" "+$d(ti.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:ti.RadioButton.Cross.OffPushDown},N:{}};return o.N[n]=ti.RadioButton.Cross.YesNormal,o.D[n]=ti.RadioButton.Cross.YesPushDown,o},getCA:function(){return"8"},YesNormal:function(n){var o=cu(n);o.scope=n.scope;var a=[],l=ti.internal.calculateCross(n);return a.push("q"),a.push("1 1 "+La(ti.internal.getWidth(n)-2)+" "+La(ti.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=ti.internal.calculateCross(n),l=[];return l.push("0.749023 g"),l.push("0 0 "+La(ti.internal.getWidth(n))+" "+La(ti.internal.getHeight(n))+" re"),l.push("f"),l.push("q"),l.push("1 1 "+La(ti.internal.getWidth(n)-2)+" "+La(ti.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(ti.internal.getWidth(n))+" "+La(ti.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}};ti.internal={Bezier_C:.551915024494,calculateCross:function(n){var o=ti.internal.getWidth(n),a=ti.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}}}},ti.internal.getWidth=function(n){var o=0;return(0,pe.Z)(n)==="object"&&(o=j0(n.Rect[2])),o},ti.internal.getHeight=function(n){var o=0;return(0,pe.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=gi,sl.AcroFormListBox=Wa,sl.AcroFormComboBox=ea,sl.AcroFormEditBox=Yi,sl.AcroFormButton=Oa,sl.AcroFormPushButton=oo,sl.AcroFormRadioButton=Ia,sl.AcroFormCheckBox=ko,sl.AcroFormTextField=Ja,sl.AcroFormPasswordField=Pa,sl.AcroFormAppearance=ti,sl.AcroForm={ChoiceField:gi,ListBox:Wa,ComboBox:ea,EditBox:Yi,Button:Oa,PushButton:oo,RadioButton:Ia,CheckBox:ko,TextField:Ja,PasswordField:Pa,Appearance:ti},ua.AcroForm={ChoiceField:gi,ListBox:Wa,ComboBox:ea,EditBox:Yi,Button:Oa,PushButton:oo,RadioButton:Ia,CheckBox:ko,TextField:Ja,PasswordField:Pa,Appearance:ti};var oA=ua.AcroForm;function yo(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(it,yt){var Wt,Ht,Tr,Zr,Jr,Lr=a;if((yt=yt||a)==="RGBA"||it.data!==void 0&&it.data instanceof Uint8ClampedArray&&"height"in it&&"width"in it)return"RGBA";if(rn(it))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]!==it[Ht]){Zr=!1;break}if(Zr===!0){Lr=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]!==it.charCodeAt(Ht)){Zr=!1;break}if(Zr===!0){Lr=Jr;break}}return Lr===a&&yt!==a&&(Lr=yt),Lr},p=function it(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="",Lr=0,Gr=yt.transparency.length;Lr<Gr;Lr++)Jr+=yt.transparency[Lr]+" "+yt.transparency[Lr]+" ";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 Sn,rt=(Sn=yt.sMaskBitsPerComponent)!==null&&Sn!==void 0?Sn:yt.bitsPerComponent,_t={width:yt.width,height:yt.height,colorSpace:"DeviceGray",bitsPerComponent:rt,data:yt.sMask};"filter"in yt&&(_t.decodeParameters="/Predictor ".concat(yt.predictor," /Colors 1 /BitsPerComponent ").concat(rt," /Columns ").concat(yt.width),_t.filter=yt.filter),it.call(this,_t)}if(yt.colorSpace===ot.INDEXED){var Nt=this.internal.newObject();Ht({data:ar(new Uint8Array(yt.palette)),objectId:Nt}),Wt("endobj")}},N=function(){var it=this.internal.collections[o+"images"];for(var yt in it)p.call(this,it[yt])},E=function(){var it,yt=this.internal.collections[o+"images"],Wt=this.internal.write;for(var Ht in yt)Wt("/I"+(it=yt[Ht]).index,it.objectId,"0","R")},U=function(){this.internal.collections[o+"images"]||(this.internal.collections[o+"images"]={},this.internal.events.subscribe("putResources",N),this.internal.events.subscribe("putXobjectDict",E))},Z=function(){var it=this.internal.collections[o+"images"];return U.call(this),it},oe=function(){return Object.keys(this.internal.collections[o+"images"]).length},Re=function(it){return typeof n["process"+it.toUpperCase()]=="function"},$e=function(it){return(0,pe.Z)(it)==="object"&&it.nodeType===1},ae=function(it,yt){if(it.nodeName==="IMG"&&it.hasAttribute("src")){var Wt=""+it.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(it.nodeName==="CANVAS"){if(it.width===0||it.height===0)throw new Error("Given canvas must have data. Canvas width: "+it.width+", height: "+it.height);var Tr;switch(yt){case"PNG":Tr="image/png";break;case"WEBP":Tr="image/webp";break;default:Tr="image/jpeg"}return vn(it.toDataURL(Tr,1).split("base64,").pop())}},mt=function(it){var yt=this.internal.collections[o+"images"];if(yt){for(var Wt in yt)if(it===yt[Wt].alias)return yt[Wt]}},ut=function(it,yt,Wt){return it||yt||(it=-96,yt=-96),it<0&&(it=-1*Wt.width*72/it/this.internal.scaleFactor),yt<0&&(yt=-1*Wt.height*72/yt/this.internal.scaleFactor),it===0&&(it=yt*Wt.width/Wt.height),yt===0&&(yt=it*Wt.height/Wt.width),[it,yt]},bt=function(it,yt,Wt,Ht,Tr,Zr){var Jr=ut.call(this,Wt,Ht,Tr),Lr=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 Sn=Math.cos(Zr),rt=Math.sin(Zr),_t=function(Jt){return Jt.toFixed(4)},Nt=[_t(Sn),_t(rt),_t(-1*rt),_t(Sn),0,0,"cm"]}this.internal.write("q"),Zr?(this.internal.write([1,"0","0",1,Lr(it),Gr(yt+Ht),"cm"].join(" ")),this.internal.write(Nt.join(" ")),this.internal.write([Lr(Wt),"0","0",Lr(Ht),"0","0","cm"].join(" "))):this.internal.write([Lr(Wt),"0","0",Lr(Ht),Lr(it),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(it){var yt,Wt,Ht=0;if(typeof it=="string")for(Wt=it.length,yt=0;yt<Wt;yt++)Ht=(Ht<<5)-Ht+it.charCodeAt(yt),Ht|=0;else if(rn(it))for(Wt=it.byteLength/2,yt=0;yt<Wt;yt++)Ht=(Ht<<5)-Ht+it[yt],Ht|=0;return Ht},It=n.__addimage__.validateStringAsBase64=function(it){(it=it||"").toString().trim();var yt=!0;return it.length===0&&(yt=!1),it.length%4!=0&&(yt=!1),/^[A-Za-z0-9+/]+$/.test(it.substr(0,it.length-2))===!1&&(yt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(it.substr(-2))===!1&&(yt=!1),yt},Mr=n.__addimage__.extractImageFromDataUrl=function(it){if(it==null||!(it=it.trim()).startsWith("data:"))return null;var yt=it.indexOf(",");return yt<0?null:it.substring(0,yt).trim().endsWith("base64")?it.substring(yt+1):null};n.__addimage__.isArrayBuffer=function(it){return it instanceof ArrayBuffer};var rn=n.__addimage__.isArrayBufferView=function(it){return it instanceof Int8Array||it instanceof Uint8Array||it instanceof Uint8ClampedArray||it instanceof Int16Array||it instanceof Uint16Array||it instanceof Int32Array||it instanceof Uint32Array||it instanceof Float32Array||it instanceof Float64Array},Wr=n.__addimage__.binaryStringToUint8Array=function(it){for(var yt=it.length,Wt=new Uint8Array(yt),Ht=0;Ht<yt;Ht++)Wt[Ht]=it.charCodeAt(Ht);return Wt},ar=n.__addimage__.arrayBufferToBinaryString=function(it){for(var yt="",Wt=rn(it)?it:new Uint8Array(it),Ht=0;Ht<Wt.length;Ht+=8192)yt+=String.fromCharCode.apply(null,Wt.subarray(Ht,Ht+8192));return yt};n.addImage=function(){var it,yt,Wt,Ht,Tr,Zr,Jr,Lr,Gr;if(typeof arguments[1]=="number"?(yt=a,Wt=arguments[1],Ht=arguments[2],Tr=arguments[3],Zr=arguments[4],Jr=arguments[5],Lr=arguments[6],Gr=arguments[7]):(yt=arguments[1],Wt=arguments[2],Ht=arguments[3],Tr=arguments[4],Zr=arguments[5],Jr=arguments[6],Lr=arguments[7],Gr=arguments[8]),(0,pe.Z)(it=arguments[0])==="object"&&!$e(it)&&"imageData"in it){var $n=it;it=$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,Lr=$n.compression||Lr,Gr=$n.rotation||$n.angle||Gr}var Sn=this.internal.getFilters();if(Lr===void 0&&Sn.indexOf("FlateEncode")!==-1&&(Lr="SLOW"),isNaN(Wt)||isNaN(Ht))throw new Error("Invalid coordinates passed to jsPDF.addImage");U.call(this);var rt=Mt.call(this,it,yt,Jr,Lr);return bt.call(this,Wt,Ht,Tr,Zr,rt,Gr),this};var Mt=function(it,yt,Wt,Ht){var Tr,Zr,Jr;if(typeof it=="string"&&A(it)===a){it=unescape(it);var Lr=Cr(it,!1);(Lr!==""||(Lr=n.loadFile(it,!0))!==void 0)&&(it=Lr)}if($e(it)&&(it=ae(it,yt)),yt=A(it,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}(it)),(Tr=mt.call(this,Wt))||(it instanceof Uint8Array||yt==="RGBA"||(Zr=it,it=Wr(it)),Tr=this["process"+yt.toUpperCase()](it,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},Cr=n.__addimage__.convertBase64ToBinaryString=function(it,yt){yt=typeof yt!="boolean"||yt;var Wt,Ht="";if(typeof it=="string"){var Tr;Wt=(Tr=Mr(it))!==null&&Tr!==void 0?Tr:it;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(it){var yt,Wt,Ht="";if($e(it)&&(it=ae(it)),typeof it=="string"&&A(it)===a&&((Ht=Cr(it,!1))===""&&(Ht=n.loadFile(it)||""),it=Ht),Wt=A(it),!Re(Wt))throw new Error("addImage does not support files of type '"+Wt+"', please ensure that a plugin for '"+Wt+"' support is added.");if(it instanceof Uint8Array||(it=Wr(it)),!(yt=this["process"+Wt.toUpperCase()](it)))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,N=this.internal.getCoordinateString,E=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 $e=0;$e<Z.length;$e++){l=Z[$e];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 ["+N(l.bounds.x)+" "+E(l.bounds.y+l.bounds.h)+" "+N(l.bounds.x+l.bounds.w)+" "+E(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 ["+N(l.bounds.x+30)+" "+E(l.bounds.y+l.bounds.h)+" "+N(l.bounds.x+l.bounds.w+30)+" "+E(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 ["+N(l.bounds.x)+" "+E(l.bounds.y)+" "+N(l.bounds.x+l.bounds.w)+" "+E(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 Mr=this.annotations._nameMap[l.options.name];l.options.pageNumber=Mr.page,l.options.top=Mr.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=E(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,N){var E=this.internal.getCurrentPageInfo(),U=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString;E.pageContext.annotations.push({finalBounds:{x:U(a),y:Z(l),w:U(a+A),h:Z(l+p)},options:N,type:"link"})},n.textWithLink=function(a,l,A,p){var N,E,U=this.getTextWidth(a),Z=this.internal.getLineHeight()/this.internal.scaleFactor;if(p.maxWidth!==void 0){E=p.maxWidth;var oe=this.splitTextToSize(a,E).length;N=Math.ceil(Z*oe)}else E=U,N=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,E,N,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},N=n.__arabicParser__.isArabicLetter=function(ut){return typeof ut=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(ut)},E=n.__arabicParser__.isArabicEndLetter=function(ut){return N(ut)&&p(ut)&&o[ut.charCodeAt(0)].length<=2},U=n.__arabicParser__.isArabicAlfLetter=function(ut){return N(ut)&&A.indexOf(ut.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(ut){return N(ut)&&p(ut)&&o[ut.charCodeAt(0)].length>=1};var Z=n.__arabicParser__.arabicLetterHasFinalForm=function(ut){return N(ut)&&p(ut)&&o[ut.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(ut){return N(ut)&&p(ut)&&o[ut.charCodeAt(0)].length>=3};var oe=n.__arabicParser__.arabicLetterHasMedialForm=function(ut){return N(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 $e=n.__arabicParser__.getCorrectForm=function(ut,bt,ot){return N(ut)?p(ut)===!1?-1:!Z(ut)||!N(bt)&&!N(ot)||!N(ot)&&E(bt)||E(ut)&&!N(bt)||E(ut)&&U(bt)||E(ut)&&E(bt)?0:oe(ut)&&N(bt)&&!E(bt)&&N(ot)&&Z(ot)?3:E(ut)||!N(ot)?1:2:-1},ae=function(ut){var bt=0,ot=0,Gt=0,Rt="",It="",Mr="",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],Mr=rn[bt][ot+1],N(Rt)?(Gt=$e(Rt,It,Mr),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(E){a=E}});var l=150;Object.defineProperty(this,"width",{get:function(){return l},set:function(E){l=isNaN(E)||Number.isInteger(E)===!1||E<0?150:E,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=l+1)}});var A=300;Object.defineProperty(this,"height",{get:function(){return A},set:function(E){A=isNaN(E)||Number.isInteger(E)===!1||E<0?300:E,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=A+1)}});var p=[];Object.defineProperty(this,"childNodes",{get:function(){return p},set:function(E){p=E}});var N={};Object.defineProperty(this,"style",{get:function(){return N},set:function(E){N=E}}),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 $e=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return $e},set:function(ut){$e=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(),$e=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/=$e,h:Math.max((mt*oe*this.getLineHeightFactor()-oe*(this.getLineHeightFactor()-1))/$e,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 N=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,$e=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&&$e&&(this.printHeaderRow(U.lineNumber,!0),U.y+=$e[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,$e){if(l.call(this),!oe)throw new Error("No data for PDF table.");var ae,mt,ut,bt,ot=[],Gt=[],Rt=[],It={},Mr={},rn=[],Wr=[],ar=($e=$e||{}).autoSize||!1,Mt=$e.printHeaders!==!1,Cr=$e.css&&$e.css["font-size"]!==void 0?16*$e.css["font-size"]:$e.fontSize||12,it=$e.margins||Object.assign({width:this.getPageWidth()},o),yt=typeof $e.padding=="number"?$e.padding:3,Wt=$e.headerBackgroundColor||"#c8c8c8",Ht=$e.headerTextColor||"#000";if(A.call(this),this.internal.__cell__.printHeaders=Mt,this.internal.__cell__.margins=it,this.internal.__cell__.table_font_size=Cr,this.internal.__cell__.padding=yt,this.internal.__cell__.headerBackgroundColor=Wt,this.internal.__cell__.headerTextColor=Ht,this.setFontSize(Cr),Re==null)Gt=ot=Object.keys(oe[0]),Rt=ot.map(function(){return"left"});else if(Array.isArray(Re)&&(0,pe.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)Mr[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(ar||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);Mr[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=E.call(this,Tr,Mr);Wr=ot.map(function($n){return new p(U,Z,Mr[$n],Zr,Tr[$n].text,void 0,Tr[$n].align)}),this.setTableHeaderRow(Wr),this.printHeaderRow(1,!1)}var Jr=Re.reduce(function($n,Sn){return $n[Sn.name]=Sn.align,$n},{});for(ae=0;ae<oe.length;ae+=1){"rowStart"in $e&&$e.rowStart instanceof Function&&$e.rowStart({row:ae,data:oe[ae]},this);var Lr=E.call(this,oe[ae],Mr);for(ut=0;ut<ot.length;ut+=1){var Gr=oe[ae][ot[ut]];"cellStart"in $e&&$e.cellStart instanceof Function&&$e.cellStart({row:ae,col:ut,data:Gr},this),N.call(this,new p(U,Z,Mr[ot[ut]],Lr,Gr,ae+2,Jr[ot[ut]]))}}return this.internal.__cell__.table_x=U,this.internal.__cell__.table_y=Z,this};var E=function(U,Z){var oe=this.internal.__cell__.padding,Re=this.internal.__cell__.table_font_size,$e=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/$e+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 $e=[],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,$e.push(oe)),oe.lineNumber=U;var mt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),N.call(this,oe),this.setTextColor(mt)}$e.length>0&&this.setTableHeaderRow($e),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=yo(pd),sA=[100,200,300,400,500,600,700,800,900],Au=yo(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,N=xg;switch(A){case ua.API.image_compression.FAST:p=1,N=wg;break;case ua.API.image_compression.MEDIUM:p=6,N=z0;break;case ua.API.image_compression.SLOW:p=9,N=Jm}n=function(U,Z,oe,Re){for(var $e,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,$e),ot+bt);else{for(var Rt=ut.length,It=[],Mr=0;Mr<Rt;Mr+=1)It[Mr]=ut[Mr](Gt,oe,$e);var rn=Ep(It.concat());mt.set(It[rn],ot+bt)}$e=Gt}return mt}(n,o,Math.ceil(a*l/8),N);var E=ai(n,{level:p});return ua.API.__addimage__.arrayBufferToBinaryString(E)}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 N=a&&a[p]||0;A[p+1]=n[p]-N+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 N=n[p-o]||0,E=a&&a[p]||0;A[p+1]=n[p]+256-(N+E>>>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 N=Am(n[p-o]||0,a&&a[p]||0,a&&a[p-o]||0);A[p+1]=n[p]-N+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),N=(1<<a)-1;return _p(n,A)>>p&N}function Hh(n,o,a,l){var A=a*l,p=Math.floor(A/8),N=16-(A-8*p+l),E=(1<<l)-1,U=(o&E)<<N;(function(Z,oe,Re){if(oe+1<Z.byteLength)Z.setUint16(oe,Re,!1);else{var $e=Re>>8&255;Z.setUint8(oe,$e)}})(n,p,_p(n,p)&~(E<<N)&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,N=1<<1+(7&A);n[o++],n[o++];var E=null,U=null;p&&(E=o,U=N,o+=3*N);var Z=!0,oe=[],Re=0,$e=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(!((it=n[o++])>=0))throw Error("Invalid block size");if(it===0)break;o+=it}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,$e=n[o++],1&ut||($e=null),ae=ut>>2&7,o++;break;case 254:for(;;){if(!((it=n[o++])>=0))throw Error("Invalid block size");if(it===0)break;o+=it}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++],Mr=It>>6&1,rn=1<<1+(7&It),Wr=E,ar=U,Mt=!1;It>>7&&(Mt=!0,Wr=o,ar=rn,o+=3*rn);var Cr=o;for(o++;;){var it;if(!((it=n[o++])>=0))throw Error("Invalid block size");if(it===0)break;o+=it}oe.push({x:bt,y:ot,width:Gt,height:Rt,has_local_palette:Mt,palette_offset:Wr,palette_size:ar,data_offset:Cr,data_length:o-Cr,transparent_index:$e,interlaced:!!Mr,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,Lr=Ht.transparent_index;Lr===null&&(Lr=256);var Gr=Ht.width,$n=a-Gr,Sn=Gr,rt=4*(Ht.y*a+Ht.x),_t=4*((Ht.y+Ht.height)*a+Ht.x),Nt=rt,Jt=4*$n;Ht.interlaced===!0&&(Jt+=4*a*7);for(var fr=8,Ir=0,$r=Zr.length;Ir<$r;++Ir){var Qr=Zr[Ir];if(Sn===0&&(Sn=Gr,(Nt+=Jt)>=_t&&(Jt=4*$n+4*a*(fr-1),Nt=rt+(Gr+$n)*(fr<<1),fr>>=1)),Qr===Lr)Nt+=4;else{var gn=n[Jr+3*Qr],Rn=n[Jr+3*Qr+1],vi=n[Jr+3*Qr+2];Wt[Nt++]=vi,Wt[Nt++]=Rn,Wt[Nt++]=gn,Wt[Nt++]=255}--Sn}},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,Lr=Ht.transparent_index;Lr===null&&(Lr=256);var Gr=Ht.width,$n=a-Gr,Sn=Gr,rt=4*(Ht.y*a+Ht.x),_t=4*((Ht.y+Ht.height)*a+Ht.x),Nt=rt,Jt=4*$n;Ht.interlaced===!0&&(Jt+=4*a*7);for(var fr=8,Ir=0,$r=Zr.length;Ir<$r;++Ir){var Qr=Zr[Ir];if(Sn===0&&(Sn=Gr,(Nt+=Jt)>=_t&&(Jt=4*$n+4*a*(fr-1),Nt=rt+(Gr+$n)*(fr<<1),fr>>=1)),Qr===Lr)Nt+=4;else{var gn=n[Jr+3*Qr],Rn=n[Jr+3*Qr+1],vi=n[Jr+3*Qr+2];Wt[Nt++]=gn,Wt[Nt++]=Rn,Wt[Nt++]=vi,Wt[Nt++]=255}--Sn}}}function Cg(n,o,a,l){for(var A=n[o++],p=1<<A,N=p+1,E=N+1,U=A+1,Z=(1<<U)-1,oe=0,Re=0,$e=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===N)break;for(var ot=bt<E?bt:ut,Gt=0,Rt=ot;Rt>p;)Rt=mt[Rt]>>8,++Gt;var It=Rt;if($e+Gt+(ot!==bt?1:0)>l)return void ks.log("Warning, gif stream longer than expected.");a[$e++]=It;var Mr=$e+=Gt;for(ot!==bt&&(a[$e++]=It),Rt=ot;Gt--;)Rt=mt[Rt],a[--Mr]=255&Rt,Rt>>=8;ut!==null&&E<4096&&(mt[E++]=ut<<8|It,E>=Z+1&&U<12&&(++U,Z=Z<<1|1)),ut=bt}else E=N+1,Z=(1<<(U=A+1))-1,ut=null}return $e!==l&&ks.log("Warning, gif stream shorter than expected."),a}function qm(n){var o,a,l,A,p,N=Math.floor,E=new Array(64),U=new Array(64),Z=new Array(64),oe=new Array(64),Re=new Array(65535),$e=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),Mr=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],ar=[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],Cr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],it=[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(rt,_t){for(var Nt=0,Jt=0,fr=new Array,Ir=1;Ir<=16;Ir++){for(var $r=1;$r<=rt[Ir];$r++)fr[_t[Jt]]=[],fr[_t[Jt]][0]=Nt,fr[_t[Jt]][1]=Ir,Jt++,Nt++;Nt*=2}return fr}function Jr(rt){for(var _t=rt[0],Nt=rt[1]-1;Nt>=0;)_t&1<<Nt&&(bt|=1<<ot),Nt--,--ot<0&&(bt==255?(Lr(255),Lr(0)):Lr(bt),ot=7,bt=0)}function Lr(rt){ut.push(rt)}function Gr(rt){Lr(rt>>8&255),Lr(255&rt)}function $n(rt,_t,Nt,Jt,fr){for(var Ir,$r=fr[0],Qr=fr[240],gn=function(Wn,xa){var fi,Ya,Ma,es,wo,Ga,Ks,fo,Ba,ro,Sa=0;for(Ba=0;Ba<8;++Ba){fi=Wn[Sa],Ya=Wn[Sa+1],Ma=Wn[Sa+2],es=Wn[Sa+3],wo=Wn[Sa+4],Ga=Wn[Sa+5],Ks=Wn[Sa+6];var yl=fi+(fo=Wn[Sa+7]),Ds=fi-fo,ga=Ya+Ks,xo=Ya-Ks,ul=Ma+Ga,ka=Ma-Ga,ns=es+wo,Co=es-wo,ql=yl+ns,Pl=yl-ns,is=ga+ul,qa=ga-ul;Wn[Sa]=ql+is,Wn[Sa+4]=ql-is;var Hs=.707106781*(qa+Pl);Wn[Sa+2]=Pl+Hs,Wn[Sa+6]=Pl-Hs;var zh=.382683433*((ql=Co+ka)-(qa=xo+Ds)),jc=.5411961*ql+zh,Ff=1.306562965*qa+zh,Vd=.707106781*(is=ka+xo),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){fi=Wn[Sa],Ya=Wn[Sa+8],Ma=Wn[Sa+16],es=Wn[Sa+24],wo=Wn[Sa+32],Ga=Wn[Sa+40],Ks=Wn[Sa+48];var Lf=fi+(fo=Wn[Sa+56]),pu=fi-fo,mu=Ya+Ks,lc=Ya-Ks,Ss=Ma+Ga,dl=Ma-Ga,Wd=es+wo,Gd=es-wo,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)ro=Wn[Ba]*xa[Ba],ae[Ba]=ro>0?ro+.5|0:ro-.5|0;return ae}(rt,_t),Rn=0;Rn<64;++Rn)mt[Wr[Rn]]=gn[Rn];var vi=mt[0]-Nt;Nt=mt[0],vi==0?Jr(Jt[0]):(Jr(Jt[$e[Ir=32767+vi]]),Jr(Re[Ir]));for(var _i=63;_i>0&&mt[_i]==0;)_i--;if(_i==0)return Jr($r),Nt;for(var sn,Ft=1;Ft<=_i;){for(var Wo=Ft;mt[Ft]==0&&Ft<=_i;)++Ft;var _o=Ft-Wo;if(_o>=16){sn=_o>>4;for(var Ta=1;Ta<=sn;++Ta)Jr(Qr);_o&=15}Ir=32767+mt[Ft],Jr(fr[(_o<<4)+$e[Ir]]),Jr(Re[Ir]),Ft++}return _i!=63&&Jr($r),Nt}function Sn(rt){rt=Math.min(Math.max(rt,1),100),p!=rt&&(function(_t){for(var Nt=[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 fr=N((Nt[Jt]*_t+50)/100);fr=Math.min(Math.max(fr,1),255),E[Wr[Jt]]=fr}for(var Ir=[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=N((Ir[$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,vi=0;vi<8;vi++)for(var _i=0;_i<8;_i++)Z[Rn]=1/(E[Wr[Rn]]*gn[vi]*gn[_i]*8),oe[Rn]=1/(U[Wr[Rn]]*gn[vi]*gn[_i]*8),Rn++}(rt<50?Math.floor(5e3/rt):Math.floor(200-2*rt)),p=rt)}this.encode=function(rt,_t){_t&&Sn(_t),ut=new Array,bt=0,ot=7,Gr(65496),Gr(65504),Gr(16),Lr(74),Lr(70),Lr(73),Lr(70),Lr(0),Lr(1),Lr(1),Lr(0),Gr(1),Gr(1),Lr(0),Lr(0),function(){Gr(65499),Gr(132),Lr(0);for(var Ya=0;Ya<64;Ya++)Lr(E[Ya]);Lr(1);for(var Ma=0;Ma<64;Ma++)Lr(U[Ma])}(),function(Ya,Ma){Gr(65472),Gr(17),Lr(8),Gr(Ma),Gr(Ya),Lr(3),Lr(1),Lr(17),Lr(0),Lr(2),Lr(17),Lr(1),Lr(3),Lr(17),Lr(1)}(rt.width,rt.height),function(){Gr(65476),Gr(418),Lr(0);for(var Ya=0;Ya<16;Ya++)Lr(ar[Ya+1]);for(var Ma=0;Ma<=11;Ma++)Lr(Mt[Ma]);Lr(16);for(var es=0;es<16;es++)Lr(Cr[es+1]);for(var wo=0;wo<=161;wo++)Lr(it[wo]);Lr(1);for(var Ga=0;Ga<16;Ga++)Lr(yt[Ga+1]);for(var Ks=0;Ks<=11;Ks++)Lr(Wt[Ks]);Lr(17);for(var fo=0;fo<16;fo++)Lr(Ht[fo+1]);for(var Ba=0;Ba<=161;Ba++)Lr(Tr[Ba])}(),Gr(65498),Gr(12),Lr(3),Lr(1),Lr(0),Lr(2),Lr(17),Lr(3),Lr(17),Lr(0),Lr(63),Lr(0);var Nt=0,Jt=0,fr=0;bt=0,ot=7,this.encode.displayName="_encode_";for(var Ir,$r,Qr,gn,Rn,vi,_i,sn,Ft,Wo=rt.data,_o=rt.width,Ta=rt.height,Wn=4*_o,xa=0;xa<Ta;){for(Ir=0;Ir<Wn;){for(Rn=Wn*xa+Ir,_i=-1,sn=0,Ft=0;Ft<64;Ft++)vi=Rn+(sn=Ft>>3)*Wn+(_i=4*(7&Ft)),xa+sn>=Ta&&(vi-=Wn*(xa+1+sn-Ta)),Ir+_i>=Wn&&(vi-=Ir+_i-Wn+4),$r=Wo[vi++],Qr=Wo[vi++],gn=Wo[vi++],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;Nt=$n(Gt,Z,Nt,o,l),Jt=$n(Rt,oe,Jt,a,A),fr=$n(It,oe,fr,a,A),Ir+=32}xa+=8}if(ot>=0){var fi=[];fi[1]=ot+1,fi[0]=(1<<ot+1)-1,Jr(fi)}return Gr(65497),new Uint8Array(ut)},n=n||50,function(){for(var rt=String.fromCharCode,_t=0;_t<256;_t++)Mr[_t]=rt(_t)}(),o=Zr(ar,Mt),a=Zr(yt,Wt),l=Zr(Cr,it),A=Zr(Ht,Tr),function(){for(var rt=1,_t=2,Nt=1;Nt<=15;Nt++){for(var Jt=rt;Jt<_t;Jt++)$e[32767+Jt]=Nt,Re[32767+Jt]=[],Re[32767+Jt][1]=Nt,Re[32767+Jt][0]=Jt;for(var fr=-(_t-1);fr<=-rt;fr++)$e[32767+fr]=Nt,Re[32767+fr]=[],Re[32767+fr][1]=Nt,Re[32767+fr][0]=_t-1+fr;rt<<=1,_t<<=1}}(),function(){for(var rt=0;rt<256;rt++)rn[rt]=19595*rt,rn[rt+256|0]=38470*rt,rn[rt+512|0]=7471*rt+32768,rn[rt+768|0]=-11059*rt,rn[rt+1024|0]=-21709*rt,rn[rt+1280|0]=32768*rt+8421375,rn[rt+1536|0]=-27439*rt,rn[rt+1792|0]=-5329*rt}(),Sn(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,Cr,it){for(var yt=0;4>yt;yt++)if(Mt[Cr+yt]!=it.charCodeAt(yt))return!0;return!1}function l(Mt,Cr,it,yt,Wt){for(var Ht=0;Ht<Wt;Ht++)Mt[Cr+Ht]=it[yt+Ht]}function A(Mt,Cr,it,yt){for(var Wt=0;Wt<yt;Wt++)Mt[Cr+Wt]=it}function p(Mt){return new Int32Array(Mt)}function N(Mt,Cr){for(var it=[],yt=0;yt<Mt;yt++)it.push(new Cr);return it}function E(Mt,Cr){var it=[];return function yt(Wt,Ht,Tr){for(var Zr=Tr[Ht],Jr=0;Jr<Zr&&(Wt.push(Tr.length>Ht+1?[]:new Cr),!(Tr.length<Ht+1));Jr++)yt(Wt[Jr],Ht+1,Tr)}(it,0,Mt),it}var U=function(){var Mt=this;function Cr(h,B){for(var Q=1<<B-1>>>0;h&Q;)Q>>>=1;return Q?(h&Q-1)+Q:h}function it(h,B,Q,ve,Ke){o(!(ve%Q));do h[B+(ve-=Q)]=Ke;while(0<ve)}function yt(h,B,Q,ve,Ke){if(o(2328>=Ke),512>=Ke)var Ze=p(512);else if((Ze=p(Ke))==null)return 0;return function(We,at,At,ft,Kt,br){var wt,ir,gr=at,Xr=1<<At,Sr=p(16),cn=p(16);for(o(Kt!=0),o(ft!=null),o(We!=null),o(0<At),ir=0;ir<Kt;++ir){if(15<ft[ir])return 0;++Sr[ft[ir]]}if(Sr[0]==Kt)return 0;for(cn[1]=0,wt=1;15>wt;++wt){if(Sr[wt]>1<<wt)return 0;cn[wt+1]=cn[wt]+Sr[wt]}for(ir=0;ir<Kt;++ir)wt=ft[ir],0<ft[ir]&&(br[cn[wt]++]=ir);if(cn[15]==1)return(ft=new Wt).g=0,ft.value=br[0],it(We,gr,1,Xr,ft),Xr;var bn,Zn=-1,Ln=Xr-1,Ea=0,sa=1,Ko=1,va=1<<At;for(ir=0,wt=1,Kt=2;wt<=At;++wt,Kt<<=1){if(sa+=Ko<<=1,0>(Ko-=Sr[wt]))return 0;for(;0<Sr[wt];--Sr[wt])(ft=new Wt).g=wt,ft.value=br[ir++],it(We,gr+Ea,Kt,va,ft),Ea=Cr(Ea,wt)}for(wt=At+1,Kt=2;15>=wt;++wt,Kt<<=1){if(sa+=Ko<<=1,0>(Ko-=Sr[wt]))return 0;for(;0<Sr[wt];--Sr[wt]){if(ft=new Wt,(Ea&Ln)!=Zn){for(gr+=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&Ln)].g=bn+At,We[at+Zn].value=gr-at-Zn}ft.g=wt-At,ft.value=br[ir++],it(We,gr+(Ea>>At),Kt,va,ft),Ea=Cr(Ea,wt)}}return sa!=2*cn[15]-1?0:Xr}(h,B,Q,ve,Ke,Ze)}function Wt(){this.value=this.g=0}function Ht(){this.value=this.g=0}function Tr(){this.G=N(5,Wt),this.H=p(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=N(s0,Ht)}function Zr(h,B,Q,ve){o(h!=null),o(B!=null),o(2147483648>ve),h.Ca=254,h.I=0,h.b=-8,h.Ka=0,h.oa=B,h.pa=Q,h.Jd=B,h.Yc=Q+ve,h.Zc=4<=ve?Q+ve-4+1:Q,$r(h)}function Jr(h,B){for(var Q=0;0<B--;)Q|=gn(h,128)<<B;return Q}function Lr(h,B){var Q=Jr(h,B);return Qr(h)?-Q:Q}function Gr(h,B,Q,ve){var Ke,Ze=0;for(o(h!=null),o(B!=null),o(4294967288>ve),h.Sb=ve,h.Ra=0,h.u=0,h.h=0,4<ve&&(ve=4),Ke=0;Ke<ve;++Ke)Ze+=B[Q+Ke]<<8*Ke;h.Ra=Ze,h.bb=ve,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 Sn(h,B){if(o(0<=B),!h.h&&B<=yu){var Q=Nt(h)&DA[B];return h.u+=B,$n(h),Q}return h.h=1,h.u=0}function rt(){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 Nt(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 fr(h,B){h.u=B,h.h=Jt(h)}function Ir(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 ve=h.b,Ke=Q*B>>>8,Ze=(h.I>>>ve>Ke)+0;for(Ze?(Q-=Ke,h.I-=Ke+1<<ve>>>0):Q=Ke+1,ve=Q,Ke=0;256<=ve;)Ke+=8,ve>>=8;return ve=7^Ke+nf[ve],h.b-=ve,h.Ca=(Q<<ve)-1,Ze}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 vi(h,B){return h[B+0]|h[B+1]<<8}function _i(h,B){return vi(h,B)|h[B+2]<<16}function sn(h,B){return vi(h,B)|vi(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 _o(){this.X=[],this.Xa=this.Mb=0}function Ta(h,B,Q,ve){o(Q!=null),o(ve!=null);var Ke=Q[0],Ze=ve[0];return Ke==0&&(Ke=(h*Ze+B/2)/B),Ze==0&&(Ze=(B*Ke+h/2)/h),0>=Ke||0>=Ze?0:(Q[0]=Ke,ve[0]=Ze,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 fi(h,B){Mt[B]=function(Q,ve,Ke,Ze,We,at,At){var ft;for(ft=0;ft<We;++ft){var Kt=Mt[h](at[At+ft-1],Ke,Ze+ft);at[At+ft]=xa(Q[ve+ft],Kt)}}}function Ya(){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 wo(h,B){return es(h+(h-B+.5>>1))}function Ga(h,B,Q){return Math.abs(B-Q)-Math.abs(h-Q)}function Ks(h,B,Q,ve,Ke,Ze,We){for(ve=Ze[We-1],Q=0;Q<Ke;++Q)Ze[We+Q]=ve=xa(h[B+Q],ve)}function fo(h,B,Q,ve,Ke){var Ze;for(Ze=0;Ze<Q;++Ze){var We=h[B+Ze],at=We>>8&255,At=16711935&(At=(At=16711935&We)+((at<<16)+at));ve[Ke+Ze]=(4278255360&We)+At>>>0}}function Ba(h,B){B.jd=255&h,B.hd=h>>8&255,B.ud=h>>16&255}function ro(h,B,Q,ve,Ke,Ze){var We;for(We=0;We<ve;++We){var at=B[Q+We],At=at>>>8,ft=at,Kt=255&(Kt=(Kt=at>>>16)+((h.jd<<24>>24)*(At<<24>>24)>>>5));ft=255&(ft=(ft+=(h.hd<<24>>24)*(At<<24>>24)>>>5)+((h.ud<<24>>24)*(Kt<<24>>24)>>>5)),Ke[Ze+We]=(4278255360&at)+(Kt<<16)+ft}}function Sa(h,B,Q,ve,Ke){Mt[B]=function(Ze,We,at,At,ft,Kt,br,wt,ir){for(At=br;At<wt;++At)for(br=0;br<ir;++br)ft[Kt++]=Ke(at[ve(Ze[We++])])},Mt[h]=function(Ze,We,at,At,ft,Kt,br){var wt=8>>Ze.b,ir=Ze.Ea,gr=Ze.K[0],Xr=Ze.w;if(8>wt)for(Ze=(1<<Ze.b)-1,Xr=(1<<wt)-1;We<at;++We){var Sr,cn=0;for(Sr=0;Sr<ir;++Sr)Sr&Ze||(cn=ve(At[ft++])),Kt[br++]=Ke(gr[cn&Xr]),cn>>=wt}else Mt["VP8LMapColor"+Q](At,ft,gr,Xr,Kt,br,We,at,ir)}}function yl(h,B,Q,ve,Ke){for(Q=B+Q;B<Q;){var Ze=h[B++];ve[Ke++]=Ze>>16&255,ve[Ke++]=Ze>>8&255,ve[Ke++]=255&Ze}}function Ds(h,B,Q,ve,Ke){for(Q=B+Q;B<Q;){var Ze=h[B++];ve[Ke++]=Ze>>16&255,ve[Ke++]=Ze>>8&255,ve[Ke++]=255&Ze,ve[Ke++]=Ze>>24&255}}function ga(h,B,Q,ve,Ke){for(Q=B+Q;B<Q;){var Ze=(We=h[B++])>>16&240|We>>12&15,We=240&We|We>>28&15;ve[Ke++]=Ze,ve[Ke++]=We}}function xo(h,B,Q,ve,Ke){for(Q=B+Q;B<Q;){var Ze=(We=h[B++])>>16&248|We>>13&7,We=We>>5&224|We>>3&31;ve[Ke++]=Ze,ve[Ke++]=We}}function ul(h,B,Q,ve,Ke){for(Q=B+Q;B<Q;){var Ze=h[B++];ve[Ke++]=255&Ze,ve[Ke++]=Ze>>8&255,ve[Ke++]=Ze>>16&255}}function ka(h,B,Q,ve,Ke,Ze){if(Ze==0)for(Q=B+Q;B<Q;)Rn(ve,((Ze=h[B++])[0]>>24|Ze[1]>>8&65280|Ze[2]<<8&16711680|Ze[3]<<24)>>>0),Ke+=32;else l(ve,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 Co(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 qa(){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,ve=B.ba.f.RGBA,Ke=ve.eb,Ze=ve.fb+h.ka*ve.A,We=Gu[B.ba.S],at=h.y,At=h.O,ft=h.f,Kt=h.N,br=h.ea,wt=h.W,ir=B.cc,gr=B.dc,Xr=B.Mc,Sr=B.Nc,cn=h.ka,bn=h.ka+h.T,Zn=h.U,Ln=Zn+1>>1;for(cn==0?We(at,At,null,null,ft,Kt,br,wt,ft,Kt,br,wt,Ke,Ze,null,null,Zn):(We(B.ec,B.fc,at,At,ir,gr,Xr,Sr,ft,Kt,br,wt,Ke,Ze-ve.A,Ke,Ze,Zn),++Q);cn+2<bn;cn+=2)ir=ft,gr=Kt,Xr=br,Sr=wt,Kt+=h.Rc,wt+=h.Rc,Ze+=2*ve.A,We(at,(At+=2*h.fa)-h.fa,at,At,ir,gr,Xr,Sr,ft,Kt,br,wt,Ke,Ze-ve.A,Ke,Ze,Zn);return At+=h.fa,h.j+bn<h.o?(l(B.ec,B.fc,at,At,Zn),l(B.cc,B.dc,ft,Kt,Ln),l(B.Mc,B.Nc,br,wt,Ln),Q--):1&bn||We(at,At,null,null,ft,Kt,br,wt,ft,Kt,br,wt,Ke,Ze+ve.A,null,null,Zn),Q}function Ff(h,B,Q){var ve=h.F,Ke=[h.J];if(ve!=null){var Ze=h.U,We=B.ba.S,at=We==sp||We==cc;B=B.ba.f.RGBA;var At=[0],ft=h.ka;At[0]=h.T,h.Kb&&(ft==0?--At[0]:(--ft,Ke[0]-=h.width),h.j+h.ka+h.T==h.o&&(At[0]=h.o-h.j-ft));var Kt=B.eb;ft=B.fb+ft*B.A,h=cg(ve,Ke[0],h.width,Ze,At,Kt,ft+(at?0:3),B.A),o(Q==At),h&&Co(We)&&Hp(Kt,ft,at,Ze,At,B.A)}return 0}function Vd(h){var B=h.ma,Q=B.ba.S,ve=11>Q,Ke=Q==Mm||Q==jp||Q==sp||Q==ug||Q==12||Co(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&&Co(Q)&&Ro(),h.da)alert("todo:use_scaling");else{if(ve){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,ve&&Ku())}if(ve&&!nt){for(h=0;256>h;++h)gt[h]=89858*(h-128)+k>>d,En[h]=-22014*(h-128)+k,Br[h]=-45773*(h-128),St[h]=113618*(h-128)+k>>d;for(h=j;h<X;++h)B=76283*(h-16)+k>>d,wr[h-j]=hl(B,255),nn[h-j]=hl(B+8>>4,15);nt=1}return 1}function Ka(h){var B=h.ma,Q=h.U,ve=h.T;return o(!(1&h.ka)),0>=Q||0>=ve?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,ve){return Sn(h,8)!=47?0:(B[0]=Sn(h,14)+1,Q[0]=Sn(h,14)+1,ve[0]=Sn(h,1),Sn(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)+Sn(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 ve=Nt(Q),Ke=h[B+=255&ve].g-8;return 0<Ke&&(fr(Q,Q.u+8),ve=Nt(Q),B+=h[B].value,B+=ve&(1<<Ke)-1),fr(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 ve=h.xc;return o((B=ve==0?0:h.vc[h.md*(Q>>ve)+(B>>ve)])<h.Wb),h.Ya[B]}function Wd(h,B,Q,ve){var Ke=h.ab,Ze=h.c*B,We=h.C;B=We+B;var at=Q,At=ve;for(ve=h.Ta,Q=h.Ua;0<Ke--;){var ft=h.gc[Ke],Kt=We,br=B,wt=at,ir=At,gr=(At=ve,at=Q,ft.Ea);switch(o(Kt<br),o(br<=ft.nc),ft.hc){case 2:rc(wt,ir,(br-Kt)*gr,At,at);break;case 0:var Xr=Kt,Sr=br,cn=At,bn=at,Zn=(va=ft).Ea;Xr==0&&(af(wt,ir,null,null,1,cn,bn),Ks(wt,ir+1,0,0,Zn-1,cn,bn+1),ir+=Zn,bn+=Zn,++Xr);for(var Ln=1<<va.b,Ea=Ln-1,sa=Wn(Zn,va.b),Ko=va.K,va=va.w+(Xr>>va.b)*sa;Xr<Sr;){var _s=Ko,dA=va,Ho=1;for(np(wt,ir,cn,bn-Zn,1,cn,bn);Ho<Zn;){var ba=(Ho&~Ea)+Ln;ba>Zn&&(ba=Zn),(0,ip[_s[dA++]>>8&15])(wt,ir+ +Ho,cn,bn+Ho-Zn,ba-Ho,cn,bn+Ho),Ho=ba}ir+=Zn,bn+=Zn,++Xr&Ea||(va+=sa)}br!=ft.nc&&l(At,at-gr,At,at+(br-Kt-1)*gr,gr);break;case 1:for(gr=wt,Sr=ir,Zn=(wt=ft.Ea)-(bn=wt&~(cn=(ir=1<<ft.b)-1)),Xr=Wn(wt,ft.b),Ln=ft.K,ft=ft.w+(Kt>>ft.b)*Xr;Kt<br;){for(Ea=Ln,sa=ft,Ko=new Ya,va=Sr+bn,_s=Sr+wt;Sr<va;)Ba(Ea[sa++],Ko),Qp(Ko,gr,Sr,ir,At,at),Sr+=ir,at+=ir;Sr<_s&&(Ba(Ea[sa++],Ko),Qp(Ko,gr,Sr,Zn,At,at),Sr+=Zn,at+=Zn),++Kt&cn||(ft+=Xr)}break;case 3:if(wt==At&&ir==at&&0<ft.b){for(Sr=At,wt=gr=at+(br-Kt)*gr-(bn=(br-Kt)*Wn(ft.Ea,ft.b)),ir=At,cn=at,Xr=[],bn=(Zn=bn)-1;0<=bn;--bn)Xr[bn]=ir[cn+bn];for(bn=Zn-1;0<=bn;--bn)Sr[wt+bn]=Xr[bn];Cm(ft,Kt,br,At,gr,At,at)}else Cm(ft,Kt,br,wt,ir,At,at)}at=ve,At=Q}At!=Q&&l(ve,Q,at,At,Ze)}function Gd(h,B){var Q=h.V,ve=h.Ba+h.c*h.C,Ke=B-h.C;if(o(B<=h.l.o),o(16>=Ke),0<Ke){var Ze=h.l,We=h.Ta,at=h.Ua,At=Ze.width;if(Wd(h,Ke,Q,ve),Ke=at=[at],o((Q=h.C)<(ve=B)),o(Ze.v<Ze.va),ve>Ze.o&&(ve=Ze.o),Q<Ze.j){var ft=Ze.j-Q;Q=Ze.j,Ke[0]+=ft*At}if(Q>=ve?Q=0:(Ke[0]+=4*Ze.v,Ze.ka=Q-Ze.j,Ze.U=Ze.va-Ze.v,Ze.T=ve-Q,Q=1),Q){if(at=at[0],11>(Q=h.ca).S){var Kt=Q.f.RGBA,br=(ve=Q.S,Ke=Ze.U,Ze=Ze.T,ft=Kt.eb,Kt.A),wt=Ze;for(Kt=Kt.fb+h.Ma*Kt.A;0<wt--;){var ir=We,gr=at,Xr=Ke,Sr=ft,cn=Kt;switch(ve){case Fm:ap(ir,gr,Xr,Sr,cn);break;case Mm:Pf(ir,gr,Xr,Sr,cn);break;case dg:Pf(ir,gr,Xr,Sr,cn),Hp(Sr,cn,0,Xr,1,0);break;case Pg:gh(ir,gr,Xr,Sr,cn);break;case jp:ka(ir,gr,Xr,Sr,cn,1);break;case sf:ka(ir,gr,Xr,Sr,cn,1),Hp(Sr,cn,0,Xr,1,0);break;case sp:ka(ir,gr,Xr,Sr,cn,0);break;case cc:ka(ir,gr,Xr,Sr,cn,0),Hp(Sr,cn,1,Xr,1,0);break;case ug:mh(ir,gr,Xr,Sr,cn);break;case f0:mh(ir,gr,Xr,Sr,cn),Lg(Sr,cn,Xr,1,0);break;case Qo:ps(ir,gr,Xr,Sr,cn);break;default:o(0)}at+=At,Kt+=br}h.Ma+=Ze}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,ve=h.Ya[B].H;if(0<Q[1][ve[1]+0].g||0<Q[2][ve[2]+0].g||0<Q[3][ve[3]+0].g)return 0}return 1}function gu(h,B,Q,ve,Ke,Ze){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,ve,Ke,ve,Ke,Ze),We=ve,at=Ke,Ke+=Ze;h.qd=We,h.rd=at}}function lA(h,B){var Q=h.l.ma,ve=Q.Z==0||Q.Z==1?h.l.j:h.C;if(ve=h.C<ve?ve:h.C,o(B<=h.l.o),B>ve){var Ke=h.l.width,Ze=Q.ca,We=Q.tb+Ke*ve,at=h.V,At=h.Ba+h.c*ve,ft=h.gc;o(h.ab==1),o(ft[0].hc==3),Zu(ft[0],ve,B,at,At,Ze,We),gu(Q,ve,B,Ze,We,Ke)}h.C=h.Ma=B}function vu(h,B,Q,ve,Ke,Ze,We){var at=h.$/ve,At=h.$%ve,ft=h.m,Kt=h.s,br=Q+h.$,wt=br;Ke=Q+ve*Ke;var ir=Q+ve*Ze,gr=280+Kt.ua,Xr=h.Pb?at:16777216,Sr=0<Kt.ua?Kt.Wa:null,cn=Kt.wc,bn=br<ir?dl(Kt,At,at):null;o(h.C<Ze),o(ir<=Ke);var Zn=!1;e:for(;;){for(;Zn||br<ir;){var Ln=0;if(at>=Xr){var Ea=br-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&cn||(bn=dl(Kt,At,at)),o(bn!=null),bn.Qb&&(B[br]=bn.qb,Zn=!0),!Zn)if(Ir(ft),bn.jc){Ln=ft,Ea=B;var sa=br,Ko=bn.pd[Nt(Ln)&s0-1];o(bn.jc),256>Ko.g?(fr(Ln,Ln.u+Ko.g),Ea[sa]=Ko.value,Ln=0):(fr(Ln,Ln.u+Ko.g-256),o(256<=Ko.value),Ln=Ko.value),Ln==0&&(Zn=!0)}else Ln=lc(bn.G[0],bn.H[0],ft);if(ft.h)break;if(Zn||256>Ln){if(!Zn)if(bn.nd)B[br]=(bn.qb|Ln<<8)>>>0;else{if(Ir(ft),Zn=lc(bn.G[1],bn.H[1],ft),Ir(ft),Ea=lc(bn.G[2],bn.H[2],ft),sa=lc(bn.G[3],bn.H[3],ft),ft.h)break;B[br]=(sa<<24|Zn<<16|Ln<<8|Ea)>>>0}if(Zn=!1,++br,++At>=ve&&(At=0,++at,We!=null&&at<=Ze&&!(at%16)&&We(h,at),Sr!=null))for(;wt<br;)Ln=B[wt++],Sr.X[(506832829*Ln&4294967295)>>>Sr.Mb]=Ln}else if(280>Ln){if(Ln=pu(Ln-256,ft),Ea=lc(bn.G[4],bn.H[4],ft),Ir(ft),Ea=mu(ve,Ea=pu(Ea,ft)),ft.h)break;if(br-Q<Ea||Ke-br<Ln)break e;for(sa=0;sa<Ln;++sa)B[br+sa]=B[br+sa-Ea];for(br+=Ln,At+=Ln;At>=ve;)At-=ve,++at,We!=null&&at<=Ze&&!(at%16)&&We(h,at);if(o(br<=Ke),At&cn&&(bn=dl(Kt,At,at)),Sr!=null)for(;wt<br;)Ln=B[wt++],Sr.X[(506832829*Ln&4294967295)>>>Sr.Mb]=Ln}else{if(!(Ln<gr))break e;for(Zn=Ln-280,o(Sr!=null);wt<br;)Ln=B[wt++],Sr.X[(506832829*Ln&4294967295)>>>Sr.Mb]=Ln;Ln=br,o(!(Zn>>>(Ea=Sr).Xa)),B[Ln]=Ea.X[Zn],Zn=!0}Zn||o(ft.h==Jt(ft))}if(h.Pb&&ft.h&&br<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(ft.h)break e;We!=null&&We(h,at>Ze?Ze:at),h.a=0,h.$=br-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=fo,Qp=ro,ap=yl,Pf=Ds,mh=ga,ps=xo,gh=ul,Mt.VP8LMapColor32b=$u,Mt.VP8LMapColor8b=c0,h)}function Xd(h,B,Q,ve,Ke){var Ze=1,We=[h],at=[B],At=ve.m,ft=ve.s,Kt=null,br=0;e:for(;;){if(Q)for(;Ze&&Sn(At,1);){var wt=We,ir=at,gr=ve,Xr=1,Sr=gr.m,cn=gr.gc[gr.ab],bn=Sn(Sr,2);if(gr.Oc&1<<bn)Ze=0;else{switch(gr.Oc|=1<<bn,cn.hc=bn,cn.Ea=wt[0],cn.nc=ir[0],cn.K=[null],++gr.ab,o(4>=gr.ab),bn){case 0:case 1:cn.b=Sn(Sr,3)+2,Xr=Xd(Wn(cn.Ea,cn.b),Wn(cn.nc,cn.b),0,gr,cn.K),cn.K=cn.K[0];break;case 3:var Zn,Ln=Sn(Sr,8)+1,Ea=16<Ln?0:4<Ln?1:2<Ln?2:3;if(wt[0]=Wn(cn.Ea,Ea),cn.b=Ea,Zn=Xr=Xd(Ln,1,0,gr,cn.K)){var sa,Ko=Ln,va=cn,_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],sa=1;sa<1*Ko;++sa)dA[sa]=xa(Ho[ba+sa],dA[sa-1]);for(;sa<4*_s;++sa)dA[sa]=0;va.K[0]=null,va.K[0]=dA,Zn=1}}Xr=Zn;break;case 2:break;default:o(0)}Ze=Xr}}if(We=We[0],at=at[0],Ze&&Sn(At,1)&&!(Ze=1<=(br=Sn(At,4))&&11>=br)){ve.a=3;break e}var Ii;if(Ii=Ze)t:{var $c,Do,Ns,nc=ve,QA=We,xu=at,Lc=br,eu=Q,Cu=nc.m,fA=nc.s,js=[null],ml=1,kc=0,gl=Qg[Lc];r:for(;;){if(eu&&Sn(Cu,1)){var KA=Sn(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=N(ml*gl,Wt),Bu=ml,Bd=N(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=Ns=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]=Ns,!Do&&0<Lc&&(hA+=1<<Lc);i:{var jg,A1=hA,zg=nc,hg=Ju,hv=Ed,pv=Ns,u1=0,Ap=zg.m,mv=Sn(Ap,1);if(A(hg,0,0,A1),mv){var gv=Sn(Ap,1)+1,vv=Sn(Ap,1),x1=Sn(Ap,vv==0?1:8);hg[x1]=1,gv==2&&(hg[x1=Sn(Ap,8)]=1);var $g=1}else{var C1=p(19),B1=Sn(Ap,4)+4;if(19<B1){zg.a=3;var Zg=0;break i}for(jg=0;jg<B1;++jg)C1[Ug[jg]]=Sn(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=N(128,Wt);n:for(;yt(I1,0,7,bv,19);){if(Sn(up,1)){var yv=2+2*Sn(up,3);if((d1=2+Sn(up,yv))>Vg)break n}else d1=Vg;for(pg=0;pg<Vg&&d1--;){Ir(up);var F1=I1[0+(127&Nt(up))];fr(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=Sn(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[Ns].g==0),$p+=Ed[Ns].g,Ns+=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,Ii=1;break t}Ii=0}if(!(Ze=Ii)){ve.a=3;break e}if(0<br){if(ft.ua=1<<br,!Ft(ft.Wa,br)){ve.a=1,Ze=0;break e}}else ft.ua=0;var p1=ve,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){ve.xb=y1;break e}if((Kt=p(We*at))==null){ve.a=1,Ze=0;break e}Ze=(Ze=vu(ve,Kt,0,We,at,at,null))&&!At.h;break e}return Ze?(Ke!=null?Ke[0]=Kt:(o(Kt==null),o(Q)),ve.$=0,Q||Ru(ft)):Ru(ft),Ze}function Zh(h,B){var Q=h.c*h.i,ve=Q+B+16*B;return o(h.c<=B),h.V=p(ve),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,ve=B-Q,Ke=h.V,Ze=h.Ba+h.c*Q;for(o(B<=h.l.o);0<ve;){var We=16<ve?16:ve,at=h.l.ma,At=h.l.width,ft=At*We,Kt=at.ca,br=at.tb+At*Q,wt=h.Ta,ir=h.Ua;Wd(h,We,Ke,Ze),kg(wt,ir,Kt,br,ft),gu(at,Q,Q+We,Kt,br,At),ve-=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,ve,Ke){for(var Ze=Ke[ve],We=0;We<Ze&&(Q.push(Ke.length>ve+1?[]:0),!(Ke.length<ve+1));We++)B(Q[We],ve+1,Ke)}(h,0,[3,11]),h}()}function pm(){this.jb=p(3),this.Wc=E([4,8],Mp),this.Xc=E([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 rt,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=N(8,rt),this.ia=0,this.pb=N(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=E([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 Np(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,ve=B.w,Ke=B.ha;if(4>Ke)return ec(h,7,"Truncated header.");var Ze=Q[ve+0]|Q[ve+1]<<8|Q[ve+2]<<16,We=h.Od;if(We.Rb=!(1&Ze),We.td=Ze>>1&7,We.yd=Ze>>4&1,We.ub=Ze>>5,3<We.td)return ec(h,3,"Incorrect keyframe parameters.");if(!We.yd)return ec(h,4,"Frame not displayable.");ve+=3,Ke-=3;var at=h.Kc;if(We.Rb){if(7>Ke)return ec(h,7,"cannot parse picture header");if(!W0(Q,ve,Ke))return ec(h,3,"Bad code word");at.c=16383&(Q[ve+4]<<8|Q[ve+3]),at.Td=Q[ve+4]>>6,at.i=16383&(Q[ve+6]<<8|Q[ve+5]),at.Ud=Q[ve+6]>>6,ve+=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((Ze=h.Pa).jb,0,255,Ze.jb.length),o((Ze=h.Qa)!=null),Ze.Cb=0,Ze.Bb=0,Ze.Fb=1,A(Ze.Zb,0,0,Ze.Zb.length),A(Ze.Lb,0,0,Ze.Lb)}if(We.ub>Ke)return ec(h,7,"bad partition length");Zr(Ze=h.m,Q,ve,We.ub),ve+=We.ub,Ke-=We.ub,We.Rb&&(at.Ld=Qr(Ze),at.Kd=Qr(Ze)),at=h.Qa;var At,ft=h.Pa;if(o(Ze!=null),o(at!=null),at.Cb=Qr(Ze),at.Cb){if(at.Bb=Qr(Ze),Qr(Ze)){for(at.Fb=Qr(Ze),At=0;4>At;++At)at.Zb[At]=Qr(Ze)?Lr(Ze,7):0;for(At=0;4>At;++At)at.Lb[At]=Qr(Ze)?Lr(Ze,6):0}if(at.Bb)for(At=0;3>At;++At)ft.jb[At]=Qr(Ze)?Jr(Ze,8):255}else at.Bb=0;if(Ze.Ka)return ec(h,3,"cannot parse segment header");if((at=h.ed).zd=Qr(Ze),at.Tb=Jr(Ze,6),at.wb=Jr(Ze,3),at.Pc=Qr(Ze),at.Pc&&Qr(Ze)){for(ft=0;4>ft;++ft)Qr(Ze)&&(at.vd[ft]=Lr(Ze,6));for(ft=0;4>ft;++ft)Qr(Ze)&&(at.od[ft]=Lr(Ze,6))}if(h.L=at.Tb==0?0:at.zd?1:2,Ze.Ka)return ec(h,3,"cannot parse filter header");var Kt=Ke;if(Ke=At=ve,ve=At+Kt,at=Kt,h.Xb=(1<<Jr(h.m,2))-1,Kt<3*(ft=h.Xb))Q=7;else{for(At+=3*ft,at-=3*ft,Kt=0;Kt<ft;++Kt){var br=Q[Ke+0]|Q[Ke+1]<<8|Q[Ke+2]<<16;br>at&&(br=at),Zr(h.Jc[+Kt],Q,At,br),At+=br,at-=br,Ke+=3}Zr(h.Jc[+ft],Q,At,at),Q=At<ve?0:5}if(Q!=0)return ec(h,Q,"cannot parse partitions");for(Q=Jr(At=h.m,7),Ke=Qr(At)?Lr(At,4):0,ve=Qr(At)?Lr(At,4):0,at=Qr(At)?Lr(At,4):0,ft=Qr(At)?Lr(At,4):0,At=Qr(At)?Lr(At,4):0,Kt=h.Qa,br=0;4>br;++br){if(Kt.Cb){var wt=Kt.Zb[br];Kt.Fb||(wt+=Q)}else{if(0<br){h.pb[br]=h.pb[0];continue}wt=Q}var ir=h.pb[br];ir.Sc[0]=fg[hl(wt+Ke,127)],ir.Sc[1]=lp[hl(wt+0,127)],ir.Eb[0]=2*fg[hl(wt+ve,127)],ir.Eb[1]=101581*lp[hl(wt+at,127)]>>16,8>ir.Eb[1]&&(ir.Eb[1]=8),ir.Qc[0]=fg[hl(wt+ft,117)],ir.Qc[1]=lp[hl(wt+At,127)],ir.lc=wt+At}if(!We.Rb)return ec(h,4,"Not a key frame.");for(Qr(Ze),We=h.Pa,Q=0;4>Q;++Q){for(Ke=0;8>Ke;++Ke)for(ve=0;3>ve;++ve)for(at=0;11>at;++at)ft=gn(Ze,s1[Q][Ke][ve][at])?Jr(Ze,8):o1[Q][Ke][ve][at],We.Wc[Q][Ke].Yb[ve][at]=ft;for(Ke=0;17>Ke;++Ke)We.Xc[Q][Ke]=We.Wc[Q][l1[Ke]]}return h.kc=Qr(Ze),h.kc&&(h.Bd=Jr(Ze,8)),h.cb=1}function kf(h,B,Q,ve,Ke,Ze,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 ft=h,Kt=0;if(gn(ft,(wt=at)[(br=Q)+3]))if(gn(ft,wt[br+6])){for(at=0,br=2*(Kt=gn(ft,wt[br+8]))+(wt=gn(ft,wt[br+9+Kt])),Kt=0,wt=i1[br];wt[at];++at)Kt+=Kt+gn(ft,wt[at]);Kt+=3+(8<<br)}else gn(ft,wt[br+7])?(Kt=7+2*gn(ft,165),Kt+=gn(ft,145)):Kt=5+gn(ft,159);else Kt=gn(ft,wt[br+4])?3+gn(ft,wt[br+5]):2;at=At[2]}else Kt=1,at=At[1];At=We+a1[Ke],0>(ft=h).b&&$r(ft);var br,wt=ft.b,ir=(br=ft.Ca>>1)-(ft.I>>wt)>>31;--ft.b,ft.Ca+=ir,ft.Ca|=1,ft.I-=(br+1&ir)<<wt,Ze[At]=((Kt^ir)-ir)*ve[(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,ve,Ke){Ke=h[B+Q+32*ve]+(Ke>>3),h[B+Q+32*ve]=-256&Ke?0>Ke?0:255:Ke}function vd(h,B,Q,ve,Ke,Ze){gd(h,B,0,Q,ve+Ke),gd(h,B,1,Q,ve+Ze),gd(h,B,2,Q,ve-Ze),gd(h,B,3,Q,ve-Ke)}function gc(h){return(20091*h>>16)+h}function G0(h,B,Q,ve){var Ke,Ze=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],ft=(35468*h[B+4]>>16)-gc(h[B+12]),Kt=gc(h[B+4])+(35468*h[B+12]>>16);We[Ze+0]=at+Kt,We[Ze+1]=At+ft,We[Ze+2]=At-ft,We[Ze+3]=at-Kt,Ze+=4,B++}for(Ke=Ze=0;4>Ke;++Ke)at=(h=We[Ze+0]+4)+We[Ze+8],At=h-We[Ze+8],ft=(35468*We[Ze+4]>>16)-gc(We[Ze+12]),gd(Q,ve,0,0,at+(Kt=gc(We[Ze+4])+(35468*We[Ze+12]>>16))),gd(Q,ve,1,0,At+ft),gd(Q,ve,2,0,At-ft),gd(Q,ve,3,0,at-Kt),Ze++,ve+=32}function tg(h,B,Q,ve){var Ke=h[B+0]+4,Ze=35468*h[B+4]>>16,We=gc(h[B+4]),at=35468*h[B+1]>>16;vd(Q,ve,0,Ke+We,h=gc(h[B+1]),at),vd(Q,ve,1,Ke+Ze,h,at),vd(Q,ve,2,Ke-Ze,h,at),vd(Q,ve,3,Ke-We,h,at)}function X0(h,B,Q,ve,Ke){G0(h,B,Q,ve),Ke&&G0(h,B+16,Q,ve+4)}function rg(h,B,Q,ve){A0(h,B+0,Q,ve,1),A0(h,B+32,Q,ve+128,1)}function bd(h,B,Q,ve){var Ke;for(h=h[B+0]+4,Ke=0;4>Ke;++Ke)for(B=0;4>B;++B)gd(Q,ve,B,Ke,h)}function gm(h,B,Q,ve){h[B+0]&&qs(h,B+0,Q,ve),h[B+16]&&qs(h,B+16,Q,ve+4),h[B+32]&&qs(h,B+32,Q,ve+128),h[B+48]&&qs(h,B+48,Q,ve+128+4)}function vm(h,B,Q,ve){var Ke,Ze=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],ft=h[B+0+Ke]-h[B+12+Ke];Ze[0+Ke]=We+at,Ze[8+Ke]=We-at,Ze[4+Ke]=ft+At,Ze[12+Ke]=ft-At}for(Ke=0;4>Ke;++Ke)We=(h=Ze[0+4*Ke]+3)+Ze[3+4*Ke],at=Ze[1+4*Ke]+Ze[2+4*Ke],At=Ze[1+4*Ke]-Ze[2+4*Ke],ft=h-Ze[3+4*Ke],Q[ve+0]=We+at>>3,Q[ve+16]=ft+At>>3,Q[ve+32]=We-at>>3,Q[ve+48]=ft-At>>3,ve+=64}function cA(h,B,Q){var ve,Ke=B-32,Ze=wu,We=255-h[Ke-1];for(ve=0;ve<Q;++ve){var at,At=Ze,ft=We+h[B-1];for(at=0;at<Q;++at)h[B+at]=At[ft+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 ve;for(ve=0;16>ve;++ve)A(B,Q+32*ve,h,16)}function Ah(h,B){var Q,ve=16;for(Q=0;16>Q;++Q)ve+=h[B-1+32*Q]+h[B+Q-32];Jd(ve>>5,h,B)}function ng(h,B){var Q,ve=8;for(Q=0;16>Q;++Q)ve+=h[B-1+32*Q];Jd(ve>>4,h,B)}function Jh(h,B){var Q,ve=8;for(Q=0;16>Q;++Q)ve+=h[B+Q-32];Jd(ve>>4,h,B)}function q0(h,B){Jd(128,h,B)}function ho(h,B,Q){return h+2*B+Q+2>>2}function ig(h,B){var Q,ve=B-32;for(ve=new Uint8Array([ho(h[ve-1],h[ve+0],h[ve+1]),ho(h[ve+0],h[ve+1],h[ve+2]),ho(h[ve+1],h[ve+2],h[ve+3]),ho(h[ve+2],h[ve+3],h[ve+4])]),Q=0;4>Q;++Q)l(h,B+32*Q,ve,0,ve.length)}function ag(h,B){var Q=h[B-1],ve=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1+96];Rn(h,B+0,16843009*ho(h[B-1-32],Q,ve)),Rn(h,B+32,16843009*ho(Q,ve,Ke)),Rn(h,B+64,16843009*ho(ve,Ke,Ze)),Rn(h,B+96,16843009*ho(Ke,Ze,Ze))}function og(h,B){var Q,ve=4;for(Q=0;4>Q;++Q)ve+=h[B+Q-32]+h[B-1+32*Q];for(ve>>=3,Q=0;4>Q;++Q)A(h,B+32*Q,ve,4)}function sg(h,B){var Q=h[B-1+0],ve=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1-32],We=h[B+0-32],at=h[B+1-32],At=h[B+2-32],ft=h[B+3-32];h[B+0+96]=ho(ve,Ke,h[B-1+96]),h[B+1+96]=h[B+0+64]=ho(Q,ve,Ke),h[B+2+96]=h[B+1+64]=h[B+0+32]=ho(Ze,Q,ve),h[B+3+96]=h[B+2+64]=h[B+1+32]=h[B+0+0]=ho(We,Ze,Q),h[B+3+64]=h[B+2+32]=h[B+1+0]=ho(at,We,Ze),h[B+3+32]=h[B+2+0]=ho(At,at,We),h[B+3+0]=ho(ft,At,at)}function yd(h,B){var Q=h[B+1-32],ve=h[B+2-32],Ke=h[B+3-32],Ze=h[B+4-32],We=h[B+5-32],at=h[B+6-32],At=h[B+7-32];h[B+0+0]=ho(h[B+0-32],Q,ve),h[B+1+0]=h[B+0+32]=ho(Q,ve,Ke),h[B+2+0]=h[B+1+32]=h[B+0+64]=ho(ve,Ke,Ze),h[B+3+0]=h[B+2+32]=h[B+1+64]=h[B+0+96]=ho(Ke,Ze,We),h[B+3+32]=h[B+2+64]=h[B+1+96]=ho(Ze,We,at),h[B+3+64]=h[B+2+96]=ho(We,at,At),h[B+3+96]=ho(at,At,At)}function wd(h,B){var Q=h[B-1+0],ve=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1-32],We=h[B+0-32],at=h[B+1-32],At=h[B+2-32],ft=h[B+3-32];h[B+0+0]=h[B+1+64]=Ze+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+ft+1>>1,h[B+0+96]=ho(Ke,ve,Q),h[B+0+64]=ho(ve,Q,Ze),h[B+0+32]=h[B+1+96]=ho(Q,Ze,We),h[B+1+32]=h[B+2+96]=ho(Ze,We,at),h[B+2+32]=h[B+3+96]=ho(We,at,At),h[B+3+32]=ho(at,At,ft)}function lg(h,B){var Q=h[B+0-32],ve=h[B+1-32],Ke=h[B+2-32],Ze=h[B+3-32],We=h[B+4-32],at=h[B+5-32],At=h[B+6-32],ft=h[B+7-32];h[B+0+0]=Q+ve+1>>1,h[B+1+0]=h[B+0+64]=ve+Ke+1>>1,h[B+2+0]=h[B+1+64]=Ke+Ze+1>>1,h[B+3+0]=h[B+2+64]=Ze+We+1>>1,h[B+0+32]=ho(Q,ve,Ke),h[B+1+32]=h[B+0+96]=ho(ve,Ke,Ze),h[B+2+32]=h[B+1+96]=ho(Ke,Ze,We),h[B+3+32]=h[B+2+96]=ho(Ze,We,at),h[B+3+64]=ho(We,at,At),h[B+3+96]=ho(at,At,ft)}function Op(h,B){var Q=h[B-1+0],ve=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1+96];h[B+0+0]=Q+ve+1>>1,h[B+2+0]=h[B+0+32]=ve+Ke+1>>1,h[B+2+32]=h[B+0+64]=Ke+Ze+1>>1,h[B+1+0]=ho(Q,ve,Ke),h[B+3+0]=h[B+1+32]=ho(ve,Ke,Ze),h[B+3+32]=h[B+1+64]=ho(Ke,Ze,Ze),h[B+3+64]=h[B+2+64]=h[B+0+96]=h[B+1+96]=h[B+2+96]=h[B+3+96]=Ze}function ep(h,B){var Q=h[B-1+0],ve=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1+96],We=h[B-1-32],at=h[B+0-32],At=h[B+1-32],ft=h[B+2-32];h[B+0+0]=h[B+2+32]=Q+We+1>>1,h[B+0+32]=h[B+2+64]=ve+Q+1>>1,h[B+0+64]=h[B+2+96]=Ke+ve+1>>1,h[B+0+96]=Ze+Ke+1>>1,h[B+3+0]=ho(at,At,ft),h[B+2+0]=ho(We,at,At),h[B+1+0]=h[B+3+32]=ho(Q,We,at),h[B+1+32]=h[B+3+64]=ho(ve,Q,We),h[B+1+64]=h[B+3+96]=ho(Ke,ve,Q),h[B+1+96]=ho(Ze,Ke,ve)}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 ve;for(ve=0;8>ve;++ve)A(B,Q+32*ve,h,8)}function qh(h,B){var Q,ve=8;for(Q=0;8>Q;++Q)ve+=h[B+Q-32]+h[B-1+32*Q];tp(ve>>4,h,B)}function bm(h,B){var Q,ve=4;for(Q=0;8>Q;++Q)ve+=h[B+Q-32];tp(ve>>3,h,B)}function e0(h,B){var Q,ve=4;for(Q=0;8>Q;++Q)ve+=h[B-1+32*Q];tp(ve>>3,h,B)}function Pp(h,B){tp(128,h,B)}function t0(h,B,Q){var ve=h[B-Q],Ke=h[B+0],Ze=3*(Ke-ve)+d0[1020+h[B-2*Q]-h[B+Q]],We=Im[112+(Ze+4>>3)];h[B-Q]=wu[255+ve+Im[112+(Ze+3>>3)]],h[B+0]=wu[255+Ke-We]}function r0(h,B,Q,ve){var Ke=h[B+0],Ze=h[B+Q];return bc[255+h[B-2*Q]-h[B-Q]]>ve||bc[255+Ze-Ke]>ve}function Yd(h,B,Q,ve){return 4*bc[255+h[B-Q]-h[B+0]]+bc[255+h[B-2*Q]-h[B+Q]]<=ve}function RA(h,B,Q,ve,Ke){var Ze=h[B-3*Q],We=h[B-2*Q],at=h[B-Q],At=h[B+0],ft=h[B+Q],Kt=h[B+2*Q],br=h[B+3*Q];return 4*bc[255+at-At]+bc[255+We-ft]>ve?0:bc[255+h[B-4*Q]-Ze]<=Ke&&bc[255+Ze-We]<=Ke&&bc[255+We-at]<=Ke&&bc[255+br-Kt]<=Ke&&bc[255+Kt-ft]<=Ke&&bc[255+ft-At]<=Ke}function n0(h,B,Q,ve){var Ke=2*ve+1;for(ve=0;16>ve;++ve)Yd(h,B+ve,Q,Ke)&&t0(h,B+ve,Q)}function Df(h,B,Q,ve){var Ke=2*ve+1;for(ve=0;16>ve;++ve)Yd(h,B+ve*Q,1,Ke)&&t0(h,B+ve*Q,1)}function Tp(h,B,Q,ve){var Ke;for(Ke=3;0<Ke;--Ke)n0(h,B+=4*Q,Q,ve)}function rp(h,B,Q,ve){var Ke;for(Ke=3;0<Ke;--Ke)Df(h,B+=4,Q,ve)}function qd(h,B,Q,ve,Ke,Ze,We,at){for(Ze=2*Ze+1;0<Ke--;){if(RA(h,B,Q,Ze,We))if(r0(h,B,Q,at))t0(h,B,Q);else{var At=h,ft=B,Kt=Q,br=At[ft-2*Kt],wt=At[ft-Kt],ir=At[ft+0],gr=At[ft+Kt],Xr=At[ft+2*Kt],Sr=27*(bn=d0[1020+3*(ir-wt)+d0[1020+br-gr]])+63>>7,cn=18*bn+63>>7,bn=9*bn+63>>7;At[ft-3*Kt]=wu[255+At[ft-3*Kt]+bn],At[ft-2*Kt]=wu[255+br+cn],At[ft-Kt]=wu[255+wt+Sr],At[ft+0]=wu[255+ir-Sr],At[ft+Kt]=wu[255+gr-cn],At[ft+2*Kt]=wu[255+Xr-bn]}B+=ve}}function ef(h,B,Q,ve,Ke,Ze,We,at){for(Ze=2*Ze+1;0<Ke--;){if(RA(h,B,Q,Ze,We))if(r0(h,B,Q,at))t0(h,B,Q);else{var At=h,ft=B,Kt=Q,br=At[ft-Kt],wt=At[ft+0],ir=At[ft+Kt],gr=Im[112+(4+(Xr=3*(wt-br))>>3)],Xr=Im[112+(Xr+3>>3)],Sr=gr+1>>1;At[ft-2*Kt]=wu[255+At[ft-2*Kt]+Sr],At[ft-Kt]=wu[255+br+Xr],At[ft+0]=wu[255+wt-gr],At[ft+Kt]=wu[255+ir-Sr]}B+=ve}}function ym(h,B,Q,ve,Ke,Ze){qd(h,B,Q,1,16,ve,Ke,Ze)}function Nf(h,B,Q,ve,Ke,Ze){qd(h,B,1,Q,16,ve,Ke,Ze)}function dh(h,B,Q,ve,Ke,Ze){var We;for(We=3;0<We;--We)ef(h,B+=4*Q,Q,1,16,ve,Ke,Ze)}function Up(h,B,Q,ve,Ke,Ze){var We;for(We=3;0<We;--We)ef(h,B+=4,1,Q,16,ve,Ke,Ze)}function z(h,B,Q,ve,Ke,Ze,We,at){qd(h,B,Ke,1,8,Ze,We,at),qd(Q,ve,Ke,1,8,Ze,We,at)}function He(h,B,Q,ve,Ke,Ze,We,at){qd(h,B,1,Ke,8,Ze,We,at),qd(Q,ve,1,Ke,8,Ze,We,at)}function Bt(h,B,Q,ve,Ke,Ze,We,at){ef(h,B+4*Ke,Ke,1,8,Ze,We,at),ef(Q,ve+4*Ke,Ke,1,8,Ze,We,at)}function Zt(h,B,Q,ve,Ke,Ze,We,at){ef(h,B+4,1,Ke,8,Ze,We,at),ef(Q,ve+4,1,Ke,8,Ze,We,at)}function vr(){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 dn(){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 _n(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function aa(){this.ua=0,this.Wa=new _o,this.vb=new _o,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 aa,this.ab=0,this.gc=N(4,_n),this.Oc=0}function Xa(){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 no(h,B,Q,ve,Ke,Ze,We){for(h=h==null?0:h[B+0],B=0;B<We;++B)Ke[Ze+B]=h+Q[ve+B]&255,h=Ke[Ze+B]}function da(h,B,Q,ve,Ke,Ze,We){var at;if(h==null)no(null,null,Q,ve,Ke,Ze,We);else for(at=0;at<We;++at)Ke[Ze+at]=h[B+at]+Q[ve+at]&255}function tc(h,B,Q,ve,Ke,Ze,We){if(h==null)no(null,null,Q,ve,Ke,Ze,We);else{var at,At=h[B+0],ft=At,Kt=At;for(at=0;at<We;++at)ft=Kt+(At=h[B+at])-ft,Kt=Q[ve+at]+(-256&ft?0>ft?0:255:ft)&255,ft=At,Ke[Ze+at]=Kt}}function Ic(h,B,Q,ve){var Ke=B.width,Ze=B.o;if(o(h!=null&&B!=null),0>Q||0>=ve||Q+ve>Ze)return null;if(!h.Cc){if(h.ga==null){var We;if(h.ga=new Xa,(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,ft=h.qc,Kt=h.mb,br=h.nb,wt=At+1,ir=ft-1,gr=We.l;if(o(at!=null&&Kt!=null&&B!=null),yh[0]=null,yh[1]=no,yh[2]=da,yh[3]=tc,We.ca=Kt,We.tb=br,We.c=B.width,We.i=B.height,o(0<We.c&&0<We.i),1>=ft)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(gr.put=Ka,gr.ac=Vd,gr.bc=Mf,gr.ma=We,gr.width=B.width,gr.height=B.height,gr.Da=B.Da,gr.v=B.v,gr.va=B.va,gr.j=B.j,gr.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,ir),!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=ir>=We.c*We.i;We=!B}if(We)return null;h.ga.Lc!=1?h.Ga=0:ve=Ze-Q}o(h.ga!=null),o(Q+ve<=Ze);e:{if(B=(at=h.ga).c,Ze=at.l.o,at.$a==0){if(wt=h.rc,ir=h.Vc,gr=h.Fa,At=h.P+1+Q*B,ft=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<ve;++We)yh[at.Z](wt,ir,gr,At,ft,Kt,B),wt=ft,ir=Kt,Kt+=B,At+=B;else for(We=0;We<ve;++We)l(ft,Kt,gr,At,B),wt=ft,ir=Kt,Kt+=B,At+=B;h.rc=wt,h.Vc=ir}else{if(o(at.mc!=null),B=Q+ve,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,ir=We.c;var Xr=We.i,Sr=(gr=1,At=We.$/ir,ft=We.$%ir,Kt=We.m,br=We.s,We.$),cn=ir*Xr,bn=ir*B,Zn=br.wc,Ln=Sr<bn?dl(br,ft,At):null;o(Sr<=cn),o(B<=Xr),o(Uu(br));t:for(;;){for(;!Kt.h&&Sr<bn;){if(ft&Zn||(Ln=dl(br,ft,At)),o(Ln!=null),Ir(Kt),256>(Xr=lc(Ln.G[0],Ln.H[0],Kt)))at[wt+Sr]=Xr,++Sr,++ft>=ir&&(ft=0,++At<=B&&!(At%16)&&lA(We,At));else{if(!(280>Xr)){gr=0;break t}Xr=pu(Xr-256,Kt);var Ea,sa=lc(Ln.G[4],Ln.H[4],Kt);if(Ir(Kt),!(Sr>=(sa=mu(ir,sa=pu(sa,Kt)))&&cn-Sr>=Xr)){gr=0;break t}for(Ea=0;Ea<Xr;++Ea)at[wt+Sr+Ea]=at[wt+Sr+Ea-sa];for(Sr+=Xr,ft+=Xr;ft>=ir;)ft-=ir,++At<=B&&!(At%16)&&lA(We,At);Sr<bn&&ft&Zn&&(Ln=dl(br,ft,At))}o(Kt.h==Jt(Kt))}lA(We,At>B?B:At);break t}!gr||Kt.h&&Sr<cn?(gr=0,We.a=Kt.h?5:3):We.$=Sr,B=gr}else B=vu(We,We.V,We.Ba,We.c,We.i,B,Vh);if(!B){ve=0;break e}}Q+ve>=Ze&&(h.Cc=1),ve=1}if(!ve)return null;if(h.Cc&&((ve=h.ga)!=null&&(ve.mc=null),h.ga=null,0<h.Ga))return alert("todo:WebPDequantizeLevels"),null}return h.nb+Q*Ke}function wl(h,B,Q,ve,Ke,Ze){for(;0<Ke--;){var We,at=h,At=B+(Q?1:0),ft=h,Kt=B+(Q?0:3);for(We=0;We<ve;++We){var br=ft[Kt+4*We];br!=255&&(br*=32897,at[At+4*We+0]=at[At+4*We+0]*br>>23,at[At+4*We+1]=at[At+4*We+1]*br>>23,at[At+4*We+2]=at[At+4*We+2]*br>>23)}B+=Ze}}function fl(h,B,Q,ve,Ke){for(;0<ve--;){var Ze;for(Ze=0;Ze<Q;++Ze){var We=h[B+2*Ze+0],at=15&(ft=h[B+2*Ze+1]),At=4369*at,ft=(240&ft|ft>>4)*At>>16;h[B+2*Ze+0]=(240&We|We>>4)*At>>16&240|(15&We|We<<4)*At>>16>>4&15,h[B+2*Ze+1]=240&ft|at}B+=Ke}}function Fc(h,B,Q,ve,Ke,Ze,We,at){var At,ft,Kt=255;for(ft=0;ft<Ke;++ft){for(At=0;At<ve;++At){var br=h[B+At];Ze[We+4*At]=br,Kt&=br}B+=Q,We+=at}return Kt!=255}function uA(h,B,Q,ve,Ke){var Ze;for(Ze=0;Ze<Ke;++Ze)Q[ve+Ze]=h[B+Ze]>>8}function Ku(){Hp=wl,Lg=fl,cg=Fc,kg=uA}function qA(h,B,Q){Mt[h]=function(ve,Ke,Ze,We,at,At,ft,Kt,br,wt,ir,gr,Xr,Sr,cn,bn,Zn){var Ln,Ea=Zn-1>>1,sa=at[At+0]|ft[Kt+0]<<16,Ko=br[wt+0]|ir[gr+0]<<16;o(ve!=null);var va=3*sa+Ko+131074>>2;for(B(ve[Ke+0],255&va,va>>16,Xr,Sr),Ze!=null&&(va=3*Ko+sa+131074>>2,B(Ze[We+0],255&va,va>>16,cn,bn)),Ln=1;Ln<=Ea;++Ln){var _s=at[At+Ln]|ft[Kt+Ln]<<16,dA=br[wt+Ln]|ir[gr+Ln]<<16,Ho=sa+_s+Ko+dA+524296,ba=Ho+2*(_s+Ko)>>3;va=ba+sa>>1,sa=(Ho=Ho+2*(sa+dA)>>3)+_s>>1,B(ve[Ke+2*Ln-1],255&va,va>>16,Xr,Sr+(2*Ln-1)*Q),B(ve[Ke+2*Ln-0],255&sa,sa>>16,Xr,Sr+(2*Ln-0)*Q),Ze!=null&&(va=Ho+Ko>>1,sa=ba+dA>>1,B(Ze[We+2*Ln-1],255&va,va>>16,cn,bn+(2*Ln-1)*Q),B(Ze[We+2*Ln+0],255&sa,sa>>16,cn,bn+(2*Ln+0)*Q)),sa=_s,Ko=dA}1&Zn||(va=3*sa+Ko+131074>>2,B(ve[Ke+Zn-1],255&va,va>>16,Xr,Sr+(Zn-1)*Q),Ze!=null&&(va=3*Ko+sa+131074>>2,B(Ze[We+Zn-1],255&va,va>>16,cn,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 Of(h,B,Q,ve,Ke){ve[Ke+0]=ju(h,Q),ve[Ke+1]=tf(h,B,Q),ve[Ke+2]=zu(h,B)}function i0(h,B,Q,ve,Ke){ve[Ke+0]=zu(h,B),ve[Ke+1]=tf(h,B,Q),ve[Ke+2]=ju(h,Q)}function Mc(h,B,Q,ve,Ke){var Ze=tf(h,B,Q);B=Ze<<3&224|zu(h,B)>>3,ve[Ke+0]=248&ju(h,Q)|Ze>>5,ve[Ke+1]=B}function a0(h,B,Q,ve,Ke){var Ze=240&zu(h,B)|15;ve[Ke+0]=240&ju(h,Q)|tf(h,B,Q)>>4,ve[Ke+1]=Ze}function fh(h,B,Q,ve,Ke){ve[Ke+0]=255,Of(h,B,Q,ve,Ke+1)}function Rp(h,B,Q,ve,Ke){i0(h,B,Q,ve,Ke),ve[Ke+3]=255}function io(h,B,Q,ve,Ke){Of(h,B,Q,ve,Ke),ve[Ke+3]=255}function hl(h,B){return 0>h?0:h>B?B:h}function bu(h,B,Q){Mt[h]=function(ve,Ke,Ze,We,at,At,ft,Kt,br){for(var wt=Kt+(-2&br)*Q;Kt!=wt;)B(ve[Ke+0],Ze[We+0],at[At+0],ft,Kt),B(ve[Ke+1],Ze[We+0],at[At+0],ft,Kt+Q),Ke+=2,++We,++At,Kt+=2*Q;1&br&&B(ve[Ke+0],Ze[We+0],at[At+0],ft,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,ve,Ke){switch(h>>>30){case 3:A0(B,Q,ve,Ke,0);break;case 2:Vu(B,Q,ve,Ke);break;case 1:qs(B,Q,ve,Ke)}}function hs(h,B){var Q,ve,Ke=B.M,Ze=B.Nb,We=h.oc,at=h.pc+40,At=h.oc,ft=h.pc+584,Kt=h.oc,br=h.pc+600;for(Q=0;16>Q;++Q)We[at+32*Q-1]=129;for(Q=0;8>Q;++Q)At[ft+32*Q-1]=129,Kt[br+32*Q-1]=129;for(0<Ke?We[at-1-32]=At[ft-1-32]=Kt[br-1-32]=129:(A(We,at-32-1,127,21),A(At,ft-32-1,127,9),A(Kt,br-32-1,127,9)),ve=0;ve<h.za;++ve){var wt=B.ya[B.aa+ve];if(0<ve){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,ft+32*Q-4,At,ft+32*Q+4,4),l(Kt,br+32*Q-4,Kt,br+32*Q+4,4)}var ir=h.Gd,gr=h.Hd+ve,Xr=wt.ad,Sr=wt.Hc;if(0<Ke&&(l(We,at-32,ir[gr].y,0,16),l(At,ft-32,ir[gr].f,0,8),l(Kt,br-32,ir[gr].ea,0,8)),wt.Za){var cn=We,bn=at-32+16;for(0<Ke&&(ve>=h.za-1?A(cn,bn,ir[gr].y[15],4):l(cn,bn,ir[gr+1].y,0,4)),Q=0;4>Q;Q++)cn[bn+128+Q]=cn[bn+256+Q]=cn[bn+384+Q]=cn[bn+0+Q];for(Q=0;16>Q;++Q,Sr<<=2)cn=We,bn=at+Mn[Q],xd[wt.Ob[Q]](cn,bn),wm(Sr,Xr,16*+Q,cn,bn)}else if(cn=rf(ve,Ke,wt.Ob[0]),bh[cn](We,at),Sr!=0)for(Q=0;16>Q;++Q,Sr<<=2)wm(Sr,Xr,16*+Q,We,at+Mn[Q]);for(Q=wt.Gc,cn=rf(ve,Ke,wt.Dd),NA[cn](At,ft),NA[cn](Kt,br),Sr=Xr,cn=At,bn=ft,255&(wt=0|Q)&&(170&wt?of(Sr,256,cn,bn):pl(Sr,256,cn,bn)),wt=Kt,Sr=br,255&(Q>>=8)&&(170&Q?of(Xr,320,wt,Sr):pl(Xr,320,wt,Sr)),Ke<h.Ub-1&&(l(ir[gr].y,0,We,at+480,16),l(ir[gr].f,0,At,ft+224,8),l(ir[gr].ea,0,Kt,br+224,8)),Q=8*Ze*h.B,ir=h.sa,gr=h.ta+16*ve+16*Ze*h.R,Xr=h.qa,wt=h.ra+8*ve+Q,Sr=h.Ha,cn=h.Ia+8*ve+Q,Q=0;16>Q;++Q)l(ir,gr+Q*h.R,We,at+32*Q,16);for(Q=0;8>Q;++Q)l(Xr,wt+Q*h.B,At,ft+32*Q,8),l(Sr,cn+Q*h.B,Kt,br+32*Q,8)}}function o0(h,B,Q,ve,Ke,Ze,We,at,At){var ft=[0],Kt=[0],br=0,wt=At!=null?At.kd:0,ir=At!=null?At:new dn;if(h==null||12>Q)return 7;ir.data=h,ir.w=B,ir.ha=Q,B=[B],Q=[Q],ir.gb=[ir.gb];e:{var gr=B,Xr=Q,Sr=ir.gb;if(o(h!=null),o(Xr!=null),o(Sr!=null),Sr[0]=0,12<=Xr[0]&&!a(h,gr[0],"RIFF")){if(a(h,gr[0]+8,"WEBP")){Sr=3;break e}var cn=sn(h,gr[0]+4);if(12>cn||4294967286<cn){Sr=3;break e}if(wt&&cn>Xr[0]-8){Sr=7;break e}Sr[0]=cn,gr[0]+=12,Xr[0]-=12}Sr=0}if(Sr!=0)return Sr;for(cn=0<ir.gb[0],Q=Q[0];;){e:{var bn=h;Xr=B,Sr=Q;var Zn=ft,Ln=Kt,Ea=gr=[0];if((va=br=[br])[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 sa=sn(bn,Xr[0]+8),Ko=1+_i(bn,Xr[0]+12);if(2147483648<=Ko*(bn=1+_i(bn,Xr[0]+15))){Sr=3;break e}Ea!=null&&(Ea[0]=sa),Zn!=null&&(Zn[0]=Ko),Ln!=null&&(Ln[0]=bn),Xr[0]+=18,Sr[0]-=18,va[0]=1}Sr=0}}if(br=br[0],gr=gr[0],Sr!=0)return Sr;if(Xr=!!(2&gr),!cn&&br)return 3;if(Ze!=null&&(Ze[0]=!!(16&gr)),We!=null&&(We[0]=Xr),at!=null&&(at[0]=0),We=ft[0],gr=Kt[0],br&&Xr&&At==null){Sr=0;break}if(4>Q){Sr=7;break}if(cn&&br||!cn&&!br&&!a(h,B[0],"ALPH")){Q=[Q],ir.na=[ir.na],ir.P=[ir.P],ir.Sa=[ir.Sa];e:{sa=h,Sr=B,cn=Q;var va=ir.gb;Zn=ir.na,Ln=ir.P,Ea=ir.Sa,Ko=22,o(sa!=null),o(cn!=null),bn=Sr[0];var _s=cn[0];for(o(Zn!=null),o(Ea!=null),Zn[0]=null,Ln[0]=null,Ea[0]=0;;){if(Sr[0]=bn,cn[0]=_s,8>_s){Sr=7;break e}var dA=sn(sa,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(sa,bn,"VP8 ")||!a(sa,bn,"VP8L")){Sr=0;break e}if(_s[0]<Ho){Sr=7;break e}a(sa,bn,"ALPH")||(Zn[0]=sa,Ln[0]=bn+8,Ea[0]=dA),bn+=Ho,_s-=Ho}}if(Q=Q[0],ir.na=ir.na[0],ir.P=ir.P[0],ir.Sa=ir.Sa[0],Sr!=0)break}Q=[Q],ir.Ja=[ir.Ja],ir.xa=[ir.xa];e:if(va=h,Sr=B,cn=Q,Zn=ir.gb[0],Ln=ir.Ja,Ea=ir.xa,sa=Sr[0],bn=!a(va,sa,"VP8 "),Ko=!a(va,sa,"VP8L"),o(va!=null),o(cn!=null),o(Ln!=null),o(Ea!=null),8>cn[0])Sr=7;else{if(bn||Ko){if(va=sn(va,sa+4),12<=Zn&&va>Zn-12){Sr=3;break e}if(wt&&va>cn[0]-8){Sr=7;break e}Ln[0]=va,Sr[0]+=8,cn[0]-=8,Ea[0]=Ko}else Ea[0]=5<=cn[0]&&va[sa+0]==47&&!(va[sa+4]>>5),Ln[0]=cn[0];Sr=0}if(Q=Q[0],ir.Ja=ir.Ja[0],ir.xa=ir.xa[0],B=B[0],Sr!=0)break;if(4294967286<ir.Ja)return 3;if(at==null||Xr||(at[0]=ir.xa?2:1),We=[We],gr=[gr],ir.xa){if(5>Q){Sr=7;break}at=We,wt=gr,Xr=Ze,h==null||5>Q?h=0:5<=Q&&h[B+0]==47&&!(h[B+4]>>5)?(cn=[0],va=[0],Zn=[0],Gr(Ln=new _t,h,B,Q),Lf(Ln,cn,va,Zn)?(at!=null&&(at[0]=cn[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=gr,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>=ir.Ja||!Xr||!h?h=0:(We&&(We[0]=Xr),at&&(at[0]=h),h=1))}if(!h||(We=We[0],gr=gr[0],br&&(ft[0]!=We||Kt[0]!=gr)))return 3;At!=null&&(At[0]=ir,At.offset=B-At.w,o(4294967286>B-At.w),o(At.offset==At.ha-Q));break}return Sr==0||Sr==7&&br&&At==null?(Ze!=null&&(Ze[0]|=ir.na!=null&&0<ir.na.length),ve!=null&&(ve[0]=We),Ke!=null&&(Ke[0]=gr),0):Sr}function Ul(h,B,Q){var ve=B.width,Ke=B.height,Ze=0,We=0,at=ve,At=Ke;if(B.Da=h!=null&&0<h.Da,B.Da&&(at=h.cd,At=h.bd,Ze=h.v,We=h.j,11>Q||(Ze&=-2,We&=-2),0>Ze||0>We||0>=at||0>=At||Ze+at>ve||We+At>Ke))return 0;if(B.v=Ze,B.j=We,B.va=Ze+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],Ze=[h.hb]))return 0;B.ib=Q[0],B.hb=Ze[0]}return B.ob=h!=null&&h.ob,B.Kb=h==null||!h.Sd,B.da&&(B.ob=B.ib<3*ve/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,ve){if(ve==null||0>=h||0>=B)return 2;if(Q!=null){if(Q.Da){var Ke=Q.cd,Ze=Q.bd,We=-2&Q.v,at=-2&Q.j;if(0>We||0>at||0>=Ke||0>=Ze||We+Ke>h||at+Ze>B)return 2;h=Ke,B=Ze}if(Q.da){if(!Ta(h,B,Ke=[Q.ib],Ze=[Q.hb]))return 2;h=Ke[0],B=Ze[0]}}ve.width=h,ve.height=B;e:{var At=ve.width,ft=ve.height;if(h=ve.S,0>=At||0>=ft||!(h>=Fm&&13>h))h=2;else{if(0>=ve.Rd&&ve.sd==null){We=Ze=Ke=B=0;var Kt=(at=At*Qi[h])*ft;if(11>h||(Ze=(ft+1)/2*(B=(At+1)/2),h==12&&(We=(Ke=At)*ft)),(ft=p(Kt+2*Ze+We))==null){h=1;break e}ve.sd=ft,11>h?((At=ve.f.RGBA).eb=ft,At.fb=0,At.A=at,At.size=Kt):((At=ve.f.kb).y=ft,At.O=0,At.fa=at,At.Fd=Kt,At.f=ft,At.N=0+Kt,At.Ab=B,At.Cd=Ze,At.ea=ft,At.W=0+Kt+Ze,At.Db=B,At.Ed=Ze,h==12&&(At.F=ft,At.J=0+Kt+2*Ze),At.Tc=We,At.lb=Ke)}if(B=1,Ke=ve.S,Ze=ve.width,We=ve.height,Ke>=Fm&&13>Ke)if(11>Ke)h=ve.f.RGBA,B&=(at=Math.abs(h.A))*(We-1)+Ze<=h.size,B&=at>=Ze*Qi[Ke],B&=h.eb!=null;else{h=ve.f.kb,at=(Ze+1)/2,Kt=(We+1)/2,At=Math.abs(h.fa),ft=Math.abs(h.Ab);var br=Math.abs(h.Db),wt=Math.abs(h.lb),ir=wt*(We-1)+Ze;B&=At*(We-1)+Ze<=h.Fd,B&=ft*(Kt-1)+at<=h.Cd,B=(B&=br*(Kt-1)+at<=h.Ed)&At>=Ze&ft>=at&br>=at,B&=h.y!=null,B&=h.f!=null,B&=h.ea!=null,Ke==12&&(B&=wt>=Ze,B&=ir<=h.Tc,B&=h.F!=null)}else B=0;h=B?0:2}}return h!=0||Q!=null&&Q.fd&&(h=xm(ve)),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];fi("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 ve=B[Q+0];return 0>=Ga(ve>>24&255,h>>24&255,(B=B[Q-1])>>24&255)+Ga(ve>>16&255,h>>16&255,B>>16&255)+Ga(ve>>8&255,h>>8&255,B>>8&255)+Ga(255&ve,255&h,255&B)?ve:h},Mt.Predictor12=function(h,B,Q){var ve=B[Q+0];return(es((h>>24&255)+(ve>>24&255)-((B=B[Q-1])>>24&255))<<24|es((h>>16&255)+(ve>>16&255)-(B>>16&255))<<16|es((h>>8&255)+(ve>>8&255)-(B>>8&255))<<8|es((255&h)+(255&ve)-(255&B)))>>>0},Mt.Predictor13=function(h,B,Q){var ve=B[Q-1];return(wo((h=Ma(h,B[Q+0]))>>24&255,ve>>24&255)<<24|wo(h>>16&255,ve>>16&255)<<16|wo(h>>8&255,ve>>8&255)<<8|wo(255&h,255&ve))>>>0};var af=Mt.PredictorAdd0;Mt.PredictorAdd1=Ks,fi("Predictor2","PredictorAdd2"),fi("Predictor3","PredictorAdd3"),fi("Predictor4","PredictorAdd4"),fi("Predictor5","PredictorAdd5"),fi("Predictor6","PredictorAdd6"),fi("Predictor7","PredictorAdd7"),fi("Predictor8","PredictorAdd8"),fi("Predictor9","PredictorAdd9"),fi("Predictor10","PredictorAdd10"),fi("Predictor11","PredictorAdd11"),fi("Predictor12","PredictorAdd12"),fi("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),Ng=p(2041),Og=p(225),Ag=p(767),_m=0,d0=Ng,Im=Og,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=[],NA=[],y1=1,c1=2,yh=[],Gu=[];qA("UpsampleRgbLinePair",Of,3),qA("UpsampleBgrLinePair",i0,3),qA("UpsampleRgbaLinePair",io,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,d=16,k=1<<d-1,j=-227,X=482,ce=6,Pe=(256<<ce)-1,nt=0,gt=p(256),St=p(256),Br=p(256),En=p(256),wr=p(X-j),nn=p(X-j);bu("YuvToRgbRow",Of,3),bu("YuvToBgrRow",i0,3),bu("YuvToRgbaRow",io,4),bu("YuvToBgraRow",Rp,4),bu("YuvToArgbRow",fh,4),bu("YuvToRgba4444Row",a0,2),bu("YuvToRgb565Row",Mc,2);var Mn=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],An=[0,2,8],Si=[8,7,6,4,4,2,2,2,1,1,1,1],ra=1;this.WebPDecodeRGBA=function(h,B,Q,ve,Ke){var Ze=Mm,We=new vr,at=new is;We.ba=at,at.S=Ze,at.width=[at.width],at.height=[at.height];var At=at.width,ft=at.height,Kt=new qa;if(Kt==null||h==null)var br=2;else o(Kt!=null),br=o0(h,B,Q,Kt.width,Kt.height,Kt.Pd,Kt.Qd,Kt.format,null);if(br!=0?At=0:(At!=null&&(At[0]=Kt.width[0]),ft!=null&&(ft[0]=Kt.height[0]),At=1),At){at.width=at.width[0],at.height=at.height[0],ve!=null&&(ve[0]=at.width),Ke!=null&&(Ke[0]=at.height);e:{if(ve=new Qu,(Ke=new dn).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),ve.data=Ke.data,ve.w=Ke.w+Ke.offset,ve.ha=Ke.ha-Ke.offset,ve.put=Ka,ve.ac=Vd,ve.bc=Mf,ve.ma=We,Ke.xa){if((h=$h())==null){We=1;break e}if(function(wt,ir){var gr=[0],Xr=[0],Sr=[0];t:for(;;){if(wt==null)return 0;if(ir==null)return wt.a=2,0;if(wt.l=ir,wt.a=0,Gr(wt.m,ir.data,ir.w,ir.ha),!Lf(wt.m,gr,Xr,Sr)){wt.a=3;break t}if(wt.xb=c1,ir.width=gr[0],ir.height=Xr[0],!Xd(gr[0],Xr[0],1,wt,null))break t;return 1}return o(wt.a!=0),0}(h,ve)){if(ve=(B=hh(ve.width,ve.height,We.Oa,We.ba))==0){t:{ve=h;r:for(;;){if(ve==null){ve=0;break t}if(o(ve.s.yc!=null),o(ve.s.Ya!=null),o(0<ve.s.Wb),o((Q=ve.l)!=null),o((Ke=Q.ma)!=null),ve.xb!=0){if(ve.ca=Ke.ba,ve.tb=Ke.tb,o(ve.ca!=null),!Ul(Ke.Oa,Q,jp)){ve.a=2;break r}if(!Zh(ve,Q.width)||Q.da)break r;if((Q.da||Co(ve.ca.S))&&Ku(),11>ve.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),ve.ca.f.kb.F!=null&&Ku()),ve.Pb&&0<ve.s.ua&&ve.s.vb.X==null&&!Ft(ve.s.vb,ve.s.Wa.Xa)){ve.a=1;break r}ve.xb=0}if(!vu(ve,ve.V,ve.Ba,ve.c,ve.i,Q.o,Gd))break r;Ke.Dc=ve.Ma,ve=1;break t}o(ve.a!=0),ve=0}ve=!ve}ve&&(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,Np(h,ve)){if((B=hh(ve.width,ve.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(ft=Kt=0;4>ft;++ft)12>(br=Ke.pb[ft]).lc&&(br.ia=At*Si[0>br.lc?0:br.lc]>>3),Kt|=br.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,ir){if(wt==null)return 0;if(ir==null)return ec(wt,2,"NULL VP8Io parameter in VP8Decode().");if(!wt.cb&&!Np(wt,ir))return 0;if(o(wt.cb),ir.ac==null||ir.ac(ir)){ir.ob&&(wt.L=0);var gr=An[wt.L];if(wt.L==2?(wt.yb=0,wt.zb=0):(wt.yb=ir.v-gr>>4,wt.zb=ir.j-gr>>4,0>wt.yb&&(wt.yb=0),0>wt.zb&&(wt.zb=0)),wt.Va=ir.o+15+gr>>4,wt.Hb=ir.va+15+gr>>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(gr=0;4>gr;++gr){var Sr;if(wt.Qa.Cb){var cn=wt.Qa.Lb[gr];wt.Qa.Fb||(cn+=Xr.Tb)}else cn=Xr.Tb;for(Sr=0;1>=Sr;++Sr){var bn=wt.gd[gr][Sr],Zn=cn;if(Xr.Pc&&(Zn+=Xr.vd[0],Sr&&(Zn+=Xr.od[0])),0<(Zn=0>Zn?0:63<Zn?63:Zn)){var Ln=Zn;0<Xr.wb&&(Ln=4<Xr.wb?Ln>>2:Ln>>1)>9-Xr.wb&&(Ln=9-Xr.wb),1>Ln&&(Ln=1),bn.dd=Ln,bn.tc=2*Zn+Ln,bn.ld=40<=Zn?2:15<=Zn?1:0}else bn.tc=0;bn.La=Sr}}}gr=0}else ec(wt,6,"Frame setup failed"),gr=wt.a;if(gr=gr==0){if(gr){wt.$c=0,0<wt.Aa||(wt.Ic=ra);t:{gr=wt.Ic,Xr=4*(Ln=wt.za);var Ea=32*Ln,sa=Ln+1,Ko=0<wt.L?Ln*(0<wt.Aa?2:1):0,va=(wt.Aa==2?2:1)*Ln;if((bn=Xr+832+(Sr=3*(16*gr+An[wt.L])/2*Ea)+(cn=wt.Fa!=null&&0<wt.Fa.length?wt.Kc.c*wt.Kc.i:0))!=bn)gr=0;else{if(bn>wt.Vb){if(wt.Vb=0,wt.Ec=p(bn),wt.Fc=0,wt.Ec==null){gr=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=N(Ea,V0),wt.Hd=0,wt.rb=N(sa+1,Gh),wt.sb=1,wt.wa=Ko?N(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+=Ln),o(!0),wt.oc=bn,wt.pc=Zn,Zn+=832,wt.ya=N(va,kp),wt.aa=0,wt.D.ya=wt.ya,wt.D.aa=wt.aa,wt.Aa==2&&(wt.D.aa+=Ln),wt.R=16*Ln,wt.B=8*Ln,Ln=(Ea=An[wt.L])*wt.R,Ea=Ea/2*wt.B,wt.sa=bn,wt.ta=Zn+Ln,wt.qa=wt.sa,wt.ra=wt.ta+16*gr*wt.R+Ea,wt.Ha=wt.qa,wt.Ia=wt.ra+8*gr*wt.B+Ea,wt.$c=0,Zn+=Sr,wt.mb=cn?bn:null,wt.nb=cn?Zn:null,o(Zn+cn<=wt.Fc+wt.Vb),ch(wt),A(wt.Ac,wt.Bc,0,Xr),gr=1}}if(gr){if(ir.ka=0,ir.y=wt.sa,ir.O=wt.ta,ir.f=wt.qa,ir.N=wt.ra,ir.ea=wt.Ha,ir.Vd=wt.Ia,ir.fa=wt.R,ir.Rc=wt.B,ir.F=null,ir.J=0,!_m){for(gr=-255;255>=gr;++gr)Dg[255+gr]=0>gr?-gr:gr;for(gr=-1020;1020>=gr;++gr)Ng[1020+gr]=-128>gr?-128:127<gr?127:gr;for(gr=-112;112>=gr;++gr)Og[112+gr]=-16>gr?-16:15<gr?15:gr;for(gr=-255;510>=gr;++gr)Ag[255+gr]=0>gr?0:255<gr?255:gr;_m=1}vh=vm,A0=X0,of=rg,qs=bd,pl=gm,Vu=tg,vc=ym,zc=Nf,Tf=z,Kp=He,Wu=dh,Bm=Up,Fg=Bt,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]=Op,bh[0]=Ah,bh[1]=Tl,bh[2]=J0,bh[3]=Y0,bh[4]=ng,bh[5]=Jh,bh[6]=q0,NA[0]=qh,NA[1]=AA,NA[2]=uh,NA[3]=Yh,NA[4]=e0,NA[5]=bm,NA[6]=Pp,gr=1}else gr=0}gr&&(gr=function(_s,dA){for(_s.M=0;_s.M<_s.Va;++_s.M){var Ho,ba=_s.Jc[_s.M&_s.Xb],Ii=_s.m,$c=_s;for(Ho=0;Ho<$c.za;++Ho){var Do=Ii,Ns=$c,nc=Ns.Ac,QA=Ns.Bc+4*Ho,xu=Ns.zc,Lc=Ns.ya[Ns.aa+Ho];if(Ns.Qa.Bb?Lc.$b=gn(Do,Ns.Pa.jb[0])?2+gn(Do,Ns.Pa.jb[2]):gn(Do,Ns.Pa.jb[1]):Lc.$b=0,Ns.kc&&(Lc.Ad=gn(Do,Ns.Bd)),Lc.Za=!gn(Do,145)+0,Lc.Za){var eu=Lc.Ob,Cu=0;for(Ns=0;4>Ns;++Ns){var fA,js=xu[0+Ns];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+Ns]=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=(Ii=_s).rb[Ii.sb-1],nc=Ii.rb[Ii.sb+Ii.ja],Ho=Ii.ya[Ii.aa+Ii.ja],QA=Ii.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=Ii.Pa.Xc,xu=Ii.ya[Ii.aa+Ii.ja],Lc=Ii.pb[xu.$b],Ns=xu.ad,eu=0,Cu=Ii.rb[Ii.sb-1],js=fA=0,A(Ns,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,Ns,eu);else{var Xu=ml[0]+3>>3;for(ml=0;256>ml;ml+=16)Ns[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,Ns,eu))>KA)<<7,gl=gl<<2|(3<Zc?3:1<Zc?2:Ns[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,Ns,eu)))<<3,gl=gl<<2|(3<Zc?3:1<Zc?2:Ns[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<Ii.L&&(Ii.wa[Ii.Y+Ii.ja]=Ii.gd[Ho.$b][Ho.Za],Ii.wa[Ii.Y+Ii.ja].La|=!QA),$c.Ka)return ec(_s,7,"Premature end-of-file encountered.")}if(ch(_s),Ii=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=An[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,Ns=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"),Ii.put!=null){if(gl=16*Fl,Fl=16*(Fl+1),hA?(Ii.y=ba.sa,Ii.O=ba.ta+ml,Ii.f=ba.qa,Ii.N=ba.ra+Xu,Ii.ea=ba.Ha,Ii.W=ba.Ia+Xu):(gl-=js,Ii.y=QA,Ii.O=xu,Ii.f=Lc,Ii.N=Ns,Ii.ea=eu,Ii.W=Cu),fA||(Fl-=js),Fl>Ii.o&&(Fl=Ii.o),Ii.F=null,Ii.J=null,ba.Fa!=null&&0<ba.Fa.length&&gl<Fl&&(Ii.J=Ic(ba,Ii,gl,Fl-gl),Ii.F=ba.mb,Ii.F==null&&Ii.F.length==0)){$c=ec(ba,3,"Could not decode alpha data.");break t}gl<Ii.j&&(js=Ii.j-gl,gl=Ii.j,o(!(1&js)),Ii.O+=ba.R*js,Ii.N+=ba.B*(js>>1),Ii.W+=ba.B*(js>>1),Ii.F!=null&&(Ii.J+=Ii.width*js)),gl<Fl&&(Ii.O+=Ii.v,Ii.N+=Ii.v>>1,Ii.W+=Ii.v>>1,Ii.F!=null&&(Ii.J+=Ii.v),Ii.ka=gl-Ii.j,Ii.U=Ii.va-Ii.v,Ii.T=Fl-gl,$c=Ii.put(Ii))}Ho+1!=ba.Ic||fA||(l(ba.sa,ba.ta-Do,QA,xu+16*ba.R,Do),l(ba.qa,ba.ra-nc,Lc,Ns+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,ir)),ir.bc!=null&&ir.bc(ir),gr&=1}return gr?(wt.cb=0,gr):0})(h,ve)||(B=h.a)}}else B=h.a}B==0&&We.Oa!=null&&We.Oa.fd&&(B=xm(We.ba))}We=B}Ze=We!=0?null:11>Ze?at.f.RGBA.eb:at.f.kb.y}else Ze=null;return Ze};var Qi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Z(Mt,Cr){for(var it="",yt=0;yt<4;yt++)it+=String.fromCharCode(Mt[Cr++]);return it}function oe(Mt,Cr){return Mt[Cr+0]|Mt[Cr+1]<<8}function Re(Mt,Cr){return(Mt[Cr+0]|Mt[Cr+1]<<8|Mt[Cr+2]<<16)>>>0}function $e(Mt,Cr){return(Mt[Cr+0]|Mt[Cr+1]<<8|Mt[Cr+2]<<16|Mt[Cr+3]<<24)>>>0}new U;var ae=[0],mt=[0],ut=[],bt=new U,ot=n,Gt=function(Mt,Cr){var it={},yt=0,Wt=!1,Ht=0,Tr=0;if(it.frames=[],!function(rt,_t){for(var Nt=0;Nt<4;Nt++)if(rt[_t+Nt]!="RIFF".charCodeAt(Nt))return!0;return!1}(Mt,Cr)){for($e(Mt,Cr+=4),Cr+=8;Cr<Mt.length;){var Zr=Z(Mt,Cr),Jr=$e(Mt,Cr+=4);Cr+=4;var Lr=Jr+(1&Jr);switch(Zr){case"VP8 ":case"VP8L":it.frames[yt]===void 0&&(it.frames[yt]={}),(Sn=it.frames[yt]).src_off=Wt?Tr:Cr-8,Sn.src_size=Ht+Jr+8,yt++,Wt&&(Wt=!1,Ht=0,Tr=0);break;case"VP8X":(Sn=it.header={}).feature_flags=Mt[Cr];var Gr=Cr+4;Sn.canvas_width=1+Re(Mt,Gr),Gr+=3,Sn.canvas_height=1+Re(Mt,Gr),Gr+=3;break;case"ALPH":Wt=!0,Ht=Lr+8,Tr=Cr-8;break;case"ANIM":(Sn=it.header).bgcolor=$e(Mt,Cr),Gr=Cr+4,Sn.loop_count=oe(Mt,Gr),Gr+=2;break;case"ANMF":var $n,Sn;(Sn=it.frames[yt]={}).offset_x=2*Re(Mt,Cr),Cr+=3,Sn.offset_y=2*Re(Mt,Cr),Cr+=3,Sn.width=1+Re(Mt,Cr),Cr+=3,Sn.height=1+Re(Mt,Cr),Cr+=3,Sn.duration=Re(Mt,Cr),Cr+=3,$n=Mt[Cr++],Sn.dispose=1&$n,Sn.blend=$n>>1&1}Zr!="ANMF"&&(Cr+=Lr)}return it}}(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 Mr=0;Mr<It.length&&It[Mr].blend!=0;Mr++);}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 ar=0;ar<mt[0]*ae[0]*4;ar++)ut[ar]=Wr[ar];return this.width=mt,this.height=ae,this.data=ut,this}(function(n){var o,a,l,A,p,N,E,U,Z,oe=function(rt){return rt=rt||{},this.isStrokeTransparent=rt.isStrokeTransparent||!1,this.strokeOpacity=rt.strokeOpacity||1,this.strokeStyle=rt.strokeStyle||"#000000",this.fillStyle=rt.fillStyle||"#000000",this.isFillTransparent=rt.isFillTransparent||!1,this.fillOpacity=rt.fillOpacity||1,this.font=rt.font||"10px sans-serif",this.textBaseline=rt.textBaseline||"alphabetic",this.textAlign=rt.textAlign||"left",this.lineWidth=rt.lineWidth||1,this.lineJoin=rt.lineJoin||"miter",this.lineCap=rt.lineCap||"butt",this.path=rt.path||[],this.transform=rt.transform!==void 0?rt.transform.clone():new U,this.globalCompositeOperation=rt.globalCompositeOperation||"normal",this.globalAlpha=rt.globalAlpha||1,this.clip_path=rt.clip_path||[],this.currentPoint=rt.currentPoint||new N,this.miterLimit=rt.miterLimit||10,this.lastPoint=rt.lastPoint||new N,this.lineDashOffset=rt.lineDashOffset||0,this.lineDash=rt.lineDash||[],this.margin=rt.margin||[0,0,0,0],this.prevPageLastElemOffset=rt.prevPageLastElemOffset||0,this.ignoreClearRect=typeof rt.ignoreClearRect!="boolean"||rt.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,N=this.internal.Point,E=this.internal.Rectangle,U=this.internal.Matrix,Z=new oe}]);var Re=function(rt){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var _t=rt;Object.defineProperty(this,"pdf",{get:function(){return _t}});var Nt=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Nt},set:function(sn){Nt=!!sn}});var Jt=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return Jt},set:function(sn){Jt=!!sn}});var fr=0;Object.defineProperty(this,"posX",{get:function(){return fr},set:function(sn){isNaN(sn)||(fr=sn)}});var Ir=0;Object.defineProperty(this,"posY",{get:function(){return Ir},set:function(sn){isNaN(sn)||(Ir=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=$e(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=$e(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 vi=null,_i=null;Object.defineProperty(this,"fontFaces",{get:function(){return _i},set:function(sn){vi=null,_i=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 _o=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 fi=function(ro){var Sa,yl,Ds=[],ga=ro.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 Ya=function(ro,Sa){if(vi===null){var yl=function(Ds){var ga=[];return Object.keys(Ds).forEach(function(xo){Ds[xo].forEach(function(ul){var ka=null;switch(ul){case"bold":ka={family:xo,weight:"bold"};break;case"italic":ka={family:xo,style:"italic"};break;case"bolditalic":ka={family:xo,weight:"bold",style:"italic"};break;case"":case"normal":ka={family:xo}}ka!==null&&(ka.ref={name:xo,style:ul},ga.push(ka))})}),ga}(ro.getFontList());vi=function(Ds){for(var ga={},xo=0;xo<Ds.length;++xo){var ul=XA(Ds[xo]),ka=ul.family,ns=ul.stretch,Co=ul.style,ql=ul.weight;ga[ka]=ga[ka]||{},ga[ka][ns]=ga[ka][ns]||{},ga[ka][ns][Co]=ga[ka][ns][Co]||{},ga[ka][ns][Co][ql]=ul}return ga}(yl.concat(Sa))}return vi}(this.pdf,this.fontFaces),Ma=fi.map(function(ro){return{family:ro,stretch:"normal",weight:_o,style:Wo}}),es=function(ro,Sa,yl){for(var Ds=(yl=yl||{}).defaultFontFamily||"times",ga=Object.assign({},Pu,yl.genericFontFamilies||{}),xo=null,ul=null,ka=0;ka<Sa.length;++ka)if(ga[(xo=XA(Sa[ka])).family]&&(xo.family=ga[xo.family]),ro.hasOwnProperty(xo.family)){ul=ro[xo.family];break}if(!(ul=ul||ro[Ds]))throw new Error("Could not find a font-family for the rule '"+Tu(xo)+"' and default family '"+Ds+"'.");if(ul=function(ns,Co){if(Co[ns])return Co[ns];var ql=Yc[ns],Pl=ql<=Yc.normal?-1:1,is=uu(Co,pd,ql,Pl);if(!is)throw new Error("Could not find a matching font-stretch value for "+ns);return is}(xo.stretch,ul),ul=function(ns,Co){if(Co[ns])return Co[ns];for(var ql=_c[ns],Pl=0;Pl<ql.length;++Pl)if(Co[ql[Pl]])return Co[ql[Pl]];throw new Error("Could not find a matching font-style for "+ns)}(xo.style,ul),!(ul=function(ns,Co){if(Co[ns])return Co[ns];if(ns===400&&Co[500])return Co[500];if(ns===500&&Co[400])return Co[400];var ql=Au[ns],Pl=uu(Co,sA,ql,ns<400?-1:1);if(!Pl)throw new Error("Could not find a matching font-weight for value "+ns);return Pl}(xo.weight,ul)))throw new Error("Failed to resolve a font for the rule '"+Tu(xo)+"'.");return ul}(Ya,Ma);this.pdf.setFont(es.ref.name,es.ref.style)}else{var wo="";(_o==="bold"||parseInt(_o,10)>=700||Wo==="bold")&&(wo="bold"),Wo==="italic"&&(wo+="italic"),wo.length===0&&(wo="normal");for(var Ga="",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"},fo=0;fo<fi.length;fo++){if(this.pdf.internal.getFont(fi[fo],wo,{noFallback:!0,disableWarning:!0})!==void 0){Ga=fi[fo];break}if(wo==="bolditalic"&&this.pdf.internal.getFont(fi[fo],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Ga=fi[fo],wo="bold";else if(this.pdf.internal.getFont(fi[fo],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Ga=fi[fo],wo="normal";break}}if(Ga===""){for(var Ba=0;Ba<fi.length;Ba++)if(Ks[fi[Ba]]){Ga=Ks[fi[Ba]];break}}Ga=Ga===""?"Times":Ga,this.pdf.setFont(Ga,wo)}}}}),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,Sn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(sn){this.ctx.lineDash=sn,Sn.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(sn){this.ctx.ignoreClearRect=!!sn}})};Re.prototype.setLineDash=function(rt){this.lineDash=rt},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(rt,_t){if(isNaN(rt)||isNaN(_t))throw ks.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Nt=this.ctx.transform.applyToPoint(new N(rt,_t));this.path.push({type:"mt",x:Nt.x,y:Nt.y}),this.ctx.lastPoint=new N(rt,_t)},Re.prototype.closePath=function(){var rt=new N(0,0),_t=0;for(_t=this.path.length-1;_t!==-1;_t--)if(this.path[_t].type==="begin"&&(0,pe.Z)(this.path[_t+1])==="object"&&typeof this.path[_t+1].x=="number"){rt=new N(this.path[_t+1].x,this.path[_t+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new N(rt.x,rt.y)},Re.prototype.lineTo=function(rt,_t){if(isNaN(rt)||isNaN(_t))throw ks.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Nt=this.ctx.transform.applyToPoint(new N(rt,_t));this.path.push({type:"lt",x:Nt.x,y:Nt.y}),this.ctx.lastPoint=new N(Nt.x,Nt.y)},Re.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),It.call(this,null,!0)},Re.prototype.quadraticCurveTo=function(rt,_t,Nt,Jt){if(isNaN(Nt)||isNaN(Jt)||isNaN(rt)||isNaN(_t))throw ks.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var fr=this.ctx.transform.applyToPoint(new N(Nt,Jt)),Ir=this.ctx.transform.applyToPoint(new N(rt,_t));this.path.push({type:"qct",x1:Ir.x,y1:Ir.y,x:fr.x,y:fr.y}),this.ctx.lastPoint=new N(fr.x,fr.y)},Re.prototype.bezierCurveTo=function(rt,_t,Nt,Jt,fr,Ir){if(isNaN(fr)||isNaN(Ir)||isNaN(rt)||isNaN(_t)||isNaN(Nt)||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 N(fr,Ir)),Qr=this.ctx.transform.applyToPoint(new N(rt,_t)),gn=this.ctx.transform.applyToPoint(new N(Nt,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 N($r.x,$r.y)},Re.prototype.arc=function(rt,_t,Nt,Jt,fr,Ir){if(isNaN(rt)||isNaN(_t)||isNaN(Nt)||isNaN(Jt)||isNaN(fr))throw ks.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Ir=!!Ir,!this.ctx.transform.isIdentity){var $r=this.ctx.transform.applyToPoint(new N(rt,_t));rt=$r.x,_t=$r.y;var Qr=this.ctx.transform.applyToPoint(new N(0,Nt)),gn=this.ctx.transform.applyToPoint(new N(0,0));Nt=Math.sqrt(Math.pow(Qr.x-gn.x,2)+Math.pow(Qr.y-gn.y,2))}Math.abs(fr-Jt)>=2*Math.PI&&(Jt=0,fr=2*Math.PI),this.path.push({type:"arc",x:rt,y:_t,radius:Nt,startAngle:Jt,endAngle:fr,counterclockwise:Ir})},Re.prototype.arcTo=function(rt,_t,Nt,Jt,fr){throw new Error("arcTo not implemented.")},Re.prototype.rect=function(rt,_t,Nt,Jt){if(isNaN(rt)||isNaN(_t)||isNaN(Nt)||isNaN(Jt))throw ks.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(rt,_t),this.lineTo(rt+Nt,_t),this.lineTo(rt+Nt,_t+Jt),this.lineTo(rt,_t+Jt),this.lineTo(rt,_t),this.lineTo(rt+Nt,_t),this.lineTo(rt,_t)},Re.prototype.fillRect=function(rt,_t,Nt,Jt){if(isNaN(rt)||isNaN(_t)||isNaN(Nt)||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 fr={};this.lineCap!=="butt"&&(fr.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(fr.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(rt,_t,Nt,Jt),this.fill(),fr.hasOwnProperty("lineCap")&&(this.lineCap=fr.lineCap),fr.hasOwnProperty("lineJoin")&&(this.lineJoin=fr.lineJoin)}},Re.prototype.strokeRect=function(rt,_t,Nt,Jt){if(isNaN(rt)||isNaN(_t)||isNaN(Nt)||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(rt,_t,Nt,Jt),this.stroke())},Re.prototype.clearRect=function(rt,_t,Nt,Jt){if(isNaN(rt)||isNaN(_t)||isNaN(Nt)||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(rt,_t,Nt,Jt))},Re.prototype.save=function(rt){rt=typeof rt!="boolean"||rt;for(var _t=this.pdf.internal.getCurrentPageInfo().pageNumber,Nt=0;Nt<this.pdf.internal.getNumberOfPages();Nt++)this.pdf.setPage(Nt+1),this.pdf.internal.out("q");if(this.pdf.setPage(_t),rt){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(rt){rt=typeof rt!="boolean"||rt;for(var _t=this.pdf.internal.getCurrentPageInfo().pageNumber,Nt=0;Nt<this.pdf.internal.getNumberOfPages();Nt++)this.pdf.setPage(Nt+1),this.pdf.internal.out("Q");this.pdf.setPage(_t),rt&&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 $e=function(rt){var _t,Nt,Jt,fr;if(rt.isCanvasGradient===!0&&(rt=rt.getColor()),!rt)return{r:0,g:0,b:0,a:0,style:rt};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(rt))_t=0,Nt=0,Jt=0,fr=0;else{var Ir=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(rt);if(Ir!==null)_t=parseInt(Ir[1]),Nt=parseInt(Ir[2]),Jt=parseInt(Ir[3]),fr=1;else if((Ir=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(rt))!==null)_t=parseInt(Ir[1]),Nt=parseInt(Ir[2]),Jt=parseInt(Ir[3]),fr=parseFloat(Ir[4]);else{if(fr=1,typeof rt=="string"&&rt.charAt(0)!=="#"){var $r=new Cp(rt);rt=$r.ok?$r.toHex():"#000000"}rt.length===4?(_t=rt.substring(1,2),_t+=_t,Nt=rt.substring(2,3),Nt+=Nt,Jt=rt.substring(3,4),Jt+=Jt):(_t=rt.substring(1,3),Nt=rt.substring(3,5),Jt=rt.substring(5,7)),_t=parseInt(_t,16),Nt=parseInt(Nt,16),Jt=parseInt(Jt,16)}}return{r:_t,g:Nt,b:Jt,a:fr,style:rt}},ae=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},mt=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Re.prototype.fillText=function(rt,_t,Nt,Jt){if(isNaN(_t)||isNaN(Nt)||typeof rt!="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 fr=Lr(this.ctx.transform.rotation),Ir=this.ctx.transform.scaleX;yt.call(this,{text:rt,x:_t,y:Nt,scale:Ir,angle:fr,align:this.textAlign,maxWidth:Jt})}},Re.prototype.strokeText=function(rt,_t,Nt,Jt){if(isNaN(_t)||isNaN(Nt)||typeof rt!="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 fr=Lr(this.ctx.transform.rotation),Ir=this.ctx.transform.scaleX;yt.call(this,{text:rt,x:_t,y:Nt,scale:Ir,renderingMode:"stroke",angle:fr,align:this.textAlign,maxWidth:Jt})}},Re.prototype.measureText=function(rt){if(typeof rt!="string")throw ks.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var _t=this.pdf,Nt=this.pdf.internal.scaleFactor,Jt=_t.internal.getFontSize(),fr=_t.getStringUnitWidth(rt)*Jt/_t.internal.scaleFactor;return new function(Ir){var $r=(Ir=Ir||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return $r}}),this}({width:fr*=Math.round(96*Nt/72*1e4)/1e4})},Re.prototype.scale=function(rt,_t){if(isNaN(rt)||isNaN(_t))throw ks.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Nt=new U(rt,0,0,_t,0,0);this.ctx.transform=this.ctx.transform.multiply(Nt)},Re.prototype.rotate=function(rt){if(isNaN(rt))throw ks.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var _t=new U(Math.cos(rt),Math.sin(rt),-Math.sin(rt),Math.cos(rt),0,0);this.ctx.transform=this.ctx.transform.multiply(_t)},Re.prototype.translate=function(rt,_t){if(isNaN(rt)||isNaN(_t))throw ks.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Nt=new U(1,0,0,1,rt,_t);this.ctx.transform=this.ctx.transform.multiply(Nt)},Re.prototype.transform=function(rt,_t,Nt,Jt,fr,Ir){if(isNaN(rt)||isNaN(_t)||isNaN(Nt)||isNaN(Jt)||isNaN(fr)||isNaN(Ir))throw ks.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var $r=new U(rt,_t,Nt,Jt,fr,Ir);this.ctx.transform=this.ctx.transform.multiply($r)},Re.prototype.setTransform=function(rt,_t,Nt,Jt,fr,Ir){rt=isNaN(rt)?1:rt,_t=isNaN(_t)?0:_t,Nt=isNaN(Nt)?0:Nt,Jt=isNaN(Jt)?1:Jt,fr=isNaN(fr)?0:fr,Ir=isNaN(Ir)?0:Ir,this.ctx.transform=new U(rt,_t,Nt,Jt,fr,Ir)};var ut=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Re.prototype.drawImage=function(rt,_t,Nt,Jt,fr,Ir,$r,Qr,gn){var Rn=this.pdf.getImageProperties(rt),vi=1,_i=1,sn=1,Ft=1;Jt!==void 0&&Qr!==void 0&&(sn=Qr/Jt,Ft=gn/fr,vi=Rn.width/Jt*Qr/Jt,_i=Rn.height/fr*gn/fr),Ir===void 0&&(Ir=_t,$r=Nt,_t=0,Nt=0),Jt!==void 0&&Qr===void 0&&(Qr=Jt,gn=fr),Jt===void 0&&Qr===void 0&&(Qr=Rn.width,gn=Rn.height);for(var Wo,_o=this.ctx.transform.decompose(),Ta=Lr(_o.rotate.shx),Wn=new U,xa=(Wn=(Wn=(Wn=Wn.multiply(_o.translate)).multiply(_o.skew)).multiply(_o.scale)).applyToRectangle(new E(Ir-_t*sn,$r-Nt*Ft,Jt*vi,fr*_i)),fi=bt.call(this,xa),Ya=[],Ma=0;Ma<fi.length;Ma+=1)Ya.indexOf(fi[Ma])===-1&&Ya.push(fi[Ma]);if(Rt(Ya),this.autoPaging)for(var es=Ya[0],wo=Ya[Ya.length-1],Ga=es;Ga<wo+1;Ga++){this.pdf.setPage(Ga);var Ks=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],fo=Ga===1?this.posY+this.margin[0]:this.margin[0],Ba=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ro=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Sa=Ga===1?0:Ba+(Ga-2)*ro;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+fo+this.ctx.prevPageLastElemOffset),Mr.call(this,"fill",!0),this.path=yl}var Ds=JSON.parse(JSON.stringify(xa));Ds=Gt([Ds],this.posX+this.margin[3],-Sa+fo+this.ctx.prevPageLastElemOffset)[0];var ga=(Ga>es||Ga<wo)&&ut.call(this);ga&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ks,ro,null).clip().discardPath()),this.pdf.addImage(rt,"JPEG",Ds.x,Ds.y,Ds.w,Ds.h,null,null,Ta),ga&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(rt,"JPEG",xa.x,xa.y,xa.w,xa.h,null,null,Ta)};var bt=function(rt,_t,Nt){var Jt=[];_t=_t||this.pdf.internal.pageSize.width,Nt=Nt||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var fr=this.posY+this.ctx.prevPageLastElemOffset;switch(rt.type){default:case"mt":case"lt":Jt.push(Math.floor((rt.y+fr)/Nt)+1);break;case"arc":Jt.push(Math.floor((rt.y+fr-rt.radius)/Nt)+1),Jt.push(Math.floor((rt.y+fr+rt.radius)/Nt)+1);break;case"qct":var Ir=Gr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,rt.x1,rt.y1,rt.x,rt.y);Jt.push(Math.floor((Ir.y+fr)/Nt)+1),Jt.push(Math.floor((Ir.y+Ir.h+fr)/Nt)+1);break;case"bct":var $r=$n(this.ctx.lastPoint.x,this.ctx.lastPoint.y,rt.x1,rt.y1,rt.x2,rt.y2,rt.x,rt.y);Jt.push(Math.floor(($r.y+fr)/Nt)+1),Jt.push(Math.floor(($r.y+$r.h+fr)/Nt)+1);break;case"rect":Jt.push(Math.floor((rt.y+fr)/Nt)+1),Jt.push(Math.floor((rt.y+rt.h+fr)/Nt)+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 rt=this.fillStyle,_t=this.strokeStyle,Nt=this.font,Jt=this.lineCap,fr=this.lineWidth,Ir=this.lineJoin;this.pdf.addPage(),this.fillStyle=rt,this.strokeStyle=_t,this.font=Nt,this.lineCap=Jt,this.lineWidth=fr,this.lineJoin=Ir},Gt=function(rt,_t,Nt){for(var Jt=0;Jt<rt.length;Jt++)switch(rt[Jt].type){case"bct":rt[Jt].x2+=_t,rt[Jt].y2+=Nt;case"qct":rt[Jt].x1+=_t,rt[Jt].y1+=Nt;default:rt[Jt].x+=_t,rt[Jt].y+=Nt}return rt},Rt=function(rt){return rt.sort(function(_t,Nt){return _t-Nt})},It=function(rt,_t){for(var Nt,Jt,fr=this.fillStyle,Ir=this.strokeStyle,$r=this.lineCap,Qr=this.lineWidth,gn=Math.abs(Qr*this.ctx.transform.scaleX),Rn=this.lineJoin,vi=JSON.parse(JSON.stringify(this.path)),_i=JSON.parse(JSON.stringify(this.path)),sn=[],Ft=0;Ft<_i.length;Ft++)if(_i[Ft].x!==void 0)for(var Wo=bt.call(this,_i[Ft]),_o=0;_o<Wo.length;_o+=1)sn.indexOf(Wo[_o])===-1&&sn.push(Wo[_o]);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],fi=Wn;fi<xa+1;fi++){this.pdf.setPage(fi),this.fillStyle=fr,this.strokeStyle=Ir,this.lineCap=$r,this.lineWidth=gn,this.lineJoin=Rn;var Ya=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ma=fi===1?this.posY+this.margin[0]:this.margin[0],es=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],wo=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ga=fi===1?0:es+(fi-2)*wo;if(this.ctx.clip_path.length!==0){var Ks=this.path;Nt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(Nt,this.posX+this.margin[3],-Ga+Ma+this.ctx.prevPageLastElemOffset),Mr.call(this,rt,!0),this.path=Ks}if(Jt=JSON.parse(JSON.stringify(vi)),this.path=Gt(Jt,this.posX+this.margin[3],-Ga+Ma+this.ctx.prevPageLastElemOffset),_t===!1||fi===0){var fo=(fi>Wn||fi<xa)&&ut.call(this);fo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ya,wo,null).clip().discardPath()),Mr.call(this,rt,_t),fo&&this.pdf.restoreGraphicsState()}this.lineWidth=Qr}else this.lineWidth=gn,Mr.call(this,rt,_t),this.lineWidth=Qr;this.path=vi},Mr=function(rt,_t){if((rt!=="stroke"||_t||!mt.call(this))&&(rt==="stroke"||_t||!ae.call(this))){for(var Nt,Jt,fr=[],Ir=this.path,$r=0;$r<Ir.length;$r++){var Qr=Ir[$r];switch(Qr.type){case"begin":fr.push({begin:!0});break;case"close":fr.push({close:!0});break;case"mt":fr.push({start:Qr,deltas:[],abs:[]});break;case"lt":var gn=fr.length;if(Ir[$r-1]&&!isNaN(Ir[$r-1].x)&&(Nt=[Qr.x-Ir[$r-1].x,Qr.y-Ir[$r-1].y],gn>0)){for(;gn>=0;gn--)if(fr[gn-1].close!==!0&&fr[gn-1].begin!==!0){fr[gn-1].deltas.push(Nt),fr[gn-1].abs.push(Qr);break}}break;case"bct":Nt=[Qr.x1-Ir[$r-1].x,Qr.y1-Ir[$r-1].y,Qr.x2-Ir[$r-1].x,Qr.y2-Ir[$r-1].y,Qr.x-Ir[$r-1].x,Qr.y-Ir[$r-1].y],fr[fr.length-1].deltas.push(Nt);break;case"qct":var Rn=Ir[$r-1].x+2/3*(Qr.x1-Ir[$r-1].x),vi=Ir[$r-1].y+2/3*(Qr.y1-Ir[$r-1].y),_i=Qr.x+2/3*(Qr.x1-Qr.x),sn=Qr.y+2/3*(Qr.y1-Qr.y),Ft=Qr.x,Wo=Qr.y;Nt=[Rn-Ir[$r-1].x,vi-Ir[$r-1].y,_i-Ir[$r-1].x,sn-Ir[$r-1].y,Ft-Ir[$r-1].x,Wo-Ir[$r-1].y],fr[fr.length-1].deltas.push(Nt);break;case"arc":fr.push({deltas:[],abs:[],arc:!0}),Array.isArray(fr[fr.length-1].abs)&&fr[fr.length-1].abs.push(Qr)}}Jt=_t?null:rt==="stroke"?"stroke":"fill";for(var _o=!1,Ta=0;Ta<fr.length;Ta++)if(fr[Ta].arc)for(var Wn=fr[Ta].abs,xa=0;xa<Wn.length;xa++){var fi=Wn[xa];fi.type==="arc"?ar.call(this,fi.x,fi.y,fi.radius,fi.startAngle,fi.endAngle,fi.counterclockwise,void 0,_t,!_o):Wt.call(this,fi.x,fi.y),_o=!0}else if(fr[Ta].close===!0)this.pdf.internal.out("h"),_o=!1;else if(fr[Ta].begin!==!0){var Ya=fr[Ta].start.x,Ma=fr[Ta].start.y;Ht.call(this,fr[Ta].deltas,Ya,Ma),_o=!0}Jt&&Mt.call(this,Jt),_t&&Cr.call(this)}},rn=function(rt){var _t=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Nt=_t*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return rt-Nt;case"top":return rt+_t-Nt;case"hanging":return rt+_t-2*Nt;case"middle":return rt+_t/2-Nt;default:return rt}},Wr=function(rt){return rt+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Re.prototype.createLinearGradient=function(){var rt=function(){};return rt.colorStops=[],rt.addColorStop=function(_t,Nt){this.colorStops.push([_t,Nt])},rt.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},rt.isCanvasGradient=!0,rt},Re.prototype.createPattern=function(){return this.createLinearGradient()},Re.prototype.createRadialGradient=function(){return this.createLinearGradient()};var ar=function(rt,_t,Nt,Jt,fr,Ir,$r,Qr,gn){for(var Rn=Zr.call(this,Nt,Jt,fr,Ir),vi=0;vi<Rn.length;vi++){var _i=Rn[vi];vi===0&&(gn?it.call(this,_i.x1+rt,_i.y1+_t):Wt.call(this,_i.x1+rt,_i.y1+_t)),Tr.call(this,rt,_t,_i.x2,_i.y2,_i.x3,_i.y3,_i.x4,_i.y4)}Qr?Cr.call(this):Mt.call(this,$r)},Mt=function(rt){switch(rt){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Cr=function(){this.pdf.clip(),this.pdf.discardPath()},it=function(rt,_t){this.pdf.internal.out(a(rt)+" "+l(_t)+" m")},yt=function(rt){var _t;switch(rt.align){case"right":case"end":_t="right";break;case"center":_t="center";break;default:_t="left"}var Nt=this.pdf.getTextDimensions(rt.text),Jt=rn.call(this,rt.y),fr=Wr.call(this,Jt)-Nt.h,Ir=this.ctx.transform.applyToPoint(new N(rt.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,vi,_i=this.ctx.transform.applyToRectangle(new E(rt.x,Jt,Nt.w,Nt.h)),sn=Qr.applyToRectangle(new E(rt.x,fr,Nt.w,Nt.h)),Ft=bt.call(this,sn),Wo=[],_o=0;_o<Ft.length;_o+=1)Wo.indexOf(Ft[_o])===-1&&Wo.push(Ft[_o]);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 fi=xa===1?this.posY+this.margin[0]:this.margin[0],Ya=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],wo=this.pdf.internal.pageSize.width-this.margin[1],Ga=wo-this.margin[3],Ks=xa===1?0:Ya+(xa-2)*es;if(this.ctx.clip_path.length!==0){var fo=this.path;gn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(gn,this.posX+this.margin[3],-1*Ks+fi),Mr.call(this,"fill",!0),this.path=fo}var Ba=Gt([JSON.parse(JSON.stringify(sn))],this.posX+this.margin[3],-Ks+fi+this.ctx.prevPageLastElemOffset)[0];rt.scale>=.01&&(Rn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Rn*rt.scale),vi=this.lineWidth,this.lineWidth=vi*rt.scale);var ro=this.autoPaging!=="text";if(ro||Ba.y+Ba.h<=Ma){if(ro||Ba.y>=fi&&Ba.x<=wo){var Sa=ro?rt.text:this.pdf.splitTextToSize(rt.text,rt.maxWidth||wo-Ba.x)[0],yl=Gt([JSON.parse(JSON.stringify(_i))],this.posX+this.margin[3],-Ks+fi+this.ctx.prevPageLastElemOffset)[0],Ds=ro&&(xa>Ta||xa<Wn)&&ut.call(this);Ds&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ga,es,null).clip().discardPath()),this.pdf.text(Sa,yl.x,yl.y,{angle:rt.angle,align:_t,renderingMode:rt.renderingMode}),Ds&&this.pdf.restoreGraphicsState()}}else Ba.y<Ma&&(this.ctx.prevPageLastElemOffset+=Ma-Ba.y);rt.scale>=.01&&(this.pdf.setFontSize(Rn),this.lineWidth=vi)}else rt.scale>=.01&&(Rn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(Rn*rt.scale),vi=this.lineWidth,this.lineWidth=vi*rt.scale),this.pdf.text(rt.text,Ir.x+this.posX,Ir.y+this.posY,{angle:rt.angle,align:_t,renderingMode:rt.renderingMode,maxWidth:rt.maxWidth}),rt.scale>=.01&&(this.pdf.setFontSize(Rn),this.lineWidth=vi)},Wt=function(rt,_t,Nt,Jt){Nt=Nt||0,Jt=Jt||0,this.pdf.internal.out(a(rt+Nt)+" "+l(_t+Jt)+" l")},Ht=function(rt,_t,Nt){return this.pdf.lines(rt,_t,Nt,null,null)},Tr=function(rt,_t,Nt,Jt,fr,Ir,$r,Qr){this.pdf.internal.out([o(A(Nt+rt)),o(p(Jt+_t)),o(A(fr+rt)),o(p(Ir+_t)),o(A($r+rt)),o(p(Qr+_t)),"c"].join(" "))},Zr=function(rt,_t,Nt,Jt){for(var fr=2*Math.PI,Ir=Math.PI/2;_t>Nt;)_t-=fr;var $r=Math.abs(Nt-_t);$r<fr&&Jt&&($r=fr-$r);for(var Qr=[],gn=Jt?-1:1,Rn=_t;$r>1e-5;){var vi=Rn+gn*Math.min($r,Ir);Qr.push(Jr.call(this,rt,Rn,vi)),$r-=Math.abs(vi-Rn),Rn=vi}return Qr},Jr=function(rt,_t,Nt){var Jt=(Nt-_t)/2,fr=rt*Math.cos(Jt),Ir=rt*Math.sin(Jt),$r=fr,Qr=-Ir,gn=$r*$r+Qr*Qr,Rn=gn+$r*fr+Qr*Ir,vi=4/3*(Math.sqrt(2*gn*Rn)-Rn)/($r*Ir-Qr*fr),_i=$r-vi*Qr,sn=Qr+vi*$r,Ft=_i,Wo=-sn,_o=Jt+_t,Ta=Math.cos(_o),Wn=Math.sin(_o);return{x1:rt*Math.cos(_t),y1:rt*Math.sin(_t),x2:_i*Ta-sn*Wn,y2:_i*Wn+sn*Ta,x3:Ft*Ta-Wo*Wn,y3:Ft*Wn+Wo*Ta,x4:rt*Math.cos(Nt),y4:rt*Math.sin(Nt)}},Lr=function(rt){return 180*rt/Math.PI},Gr=function(rt,_t,Nt,Jt,fr,Ir){var $r=rt+.5*(Nt-rt),Qr=_t+.5*(Jt-_t),gn=fr+.5*(Nt-fr),Rn=Ir+.5*(Jt-Ir),vi=Math.min(rt,fr,$r,gn),_i=Math.max(rt,fr,$r,gn),sn=Math.min(_t,Ir,Qr,Rn),Ft=Math.max(_t,Ir,Qr,Rn);return new E(vi,sn,_i-vi,Ft-sn)},$n=function(rt,_t,Nt,Jt,fr,Ir,$r,Qr){var gn,Rn,vi,_i,sn,Ft,Wo,_o,Ta,Wn,xa,fi,Ya,Ma,es=Nt-rt,wo=Jt-_t,Ga=fr-Nt,Ks=Ir-Jt,fo=$r-fr,Ba=Qr-Ir;for(Rn=0;Rn<41;Rn++)Ta=(Wo=(vi=rt+(gn=Rn/40)*es)+gn*((sn=Nt+gn*Ga)-vi))+gn*(sn+gn*(fr+gn*fo-sn)-Wo),Wn=(_o=(_i=_t+gn*wo)+gn*((Ft=Jt+gn*Ks)-_i))+gn*(Ft+gn*(Ir+gn*Ba-Ft)-_o),Rn==0?(xa=Ta,fi=Wn,Ya=Ta,Ma=Wn):(xa=Math.min(xa,Ta),fi=Math.min(fi,Wn),Ya=Math.max(Ya,Ta),Ma=Math.max(Ma,Wn));return new E(Math.round(xa),Math.round(fi),Math.round(Ya-xa),Math.round(Ma-fi))},Sn=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var rt,_t,Nt=(rt=this.ctx.lineDash,_t=this.ctx.lineDashOffset,JSON.stringify({lineDash:rt,lineDashOffset:_t}));this.prevLineDash!==Nt&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Nt)}}})(ua.API),function(n){var o=function(N){var E,U,Z,oe,Re,$e,ae,mt,ut,bt;for(/[^\x00-\xFF]/.test(N),U=[],Z=0,oe=(N+=E="\0\0\0\0".slice(N.length%4||4)).length;oe>Z;Z+=4)(Re=(N.charCodeAt(Z)<<24)+(N.charCodeAt(Z+1)<<16)+(N.charCodeAt(Z+2)<<8)+N.charCodeAt(Z+3))!==0?($e=(Re=((Re=((Re=((Re=(Re-(bt=Re%85))/85)-(ut=Re%85))/85)-(mt=Re%85))/85)-(ae=Re%85))/85)%85,U.push($e+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,E.length),String.fromCharCode.apply(String,U)+"~>"},a=function(N){var E,U,Z,oe,Re,$e=String,ae="length",mt=255,ut="charCodeAt",bt="slice",ot="replace";for(N[bt](-2),N=N[bt](0,-2)[ot](/\s/g,"")[ot]("z","!!!!!"),Z=[],oe=0,Re=(N+=E="uuuuu"[bt](N[ae]%5||5))[ae];Re>oe;oe+=5)U=52200625*(N[ut](oe)-33)+614125*(N[ut](oe+1)-33)+7225*(N[ut](oe+2)-33)+85*(N[ut](oe+3)-33)+(N[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,E[ae]),$e.fromCharCode.apply($e,Z)},l=function(N){return N.split("").map(function(E){return("0"+E.charCodeAt().toString(16)).slice(-2)}).join("")+">"},A=function(N){var E=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((N=N.replace(/\s/g,"")).indexOf(">")!==-1&&(N=N.substr(0,N.indexOf(">"))),N.length%2&&(N+="0"),E.test(N)===!1)return"";for(var U="",Z=0;Z<N.length;Z+=2)U+=String.fromCharCode("0x"+(N[Z]+N[Z+1]));return U},p=function(N){for(var E=new Uint8Array(N.length),U=N.length;U--;)E[U]=N.charCodeAt(U);return(E=ai(E)).reduce(function(Z,oe){return Z+String.fromCharCode(oe)},"")};n.processDataByFilters=function(N,E){var U=0,Z=N||"",oe=[];for(typeof(E=E||[])=="string"&&(E=[E]),U=0;U<E.length;U+=1)switch(E[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: "'+E[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,N){p=p!==!1,N=typeof N=="function"?N:function(){};var E=void 0;try{E=function(U,Z,oe){var Re=new XMLHttpRequest,$e=0,ae=function(mt){var ut=mt.length,bt=[],ot=String.fromCharCode;for($e=0;$e<ut;$e+=1)bt.push(ot(255&mt.charCodeAt($e)));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,N)}catch(U){}return E}(o,a,l)},n.loadImageFile=n.loadFile}(ua.API),function(n){function o(){return(Va.html2canvas?Promise.resolve(Va.html2canvas):Promise.resolve().then(x.t.bind(x,64270,23))).catch(function(E){return Promise.reject(new Error("Could not load html2canvas: "+E))}).then(function(E){return E.default?E.default:E})}function a(){return(Va.DOMPurify?Promise.resolve(Va.DOMPurify):x.e(7573).then(x.bind(x,7573))).catch(function(E){return Promise.reject(new Error("Could not load dompurify: "+E))}).then(function(E){return E.default?E.default:E})}var l=function(E){var U=(0,pe.Z)(E);return U==="undefined"?"undefined":U==="string"||E instanceof String?"string":U==="number"||E instanceof Number?"number":U==="function"||E instanceof Function?"function":E&&E.constructor===Array?"array":E&&E.nodeType===1?"element":U==="object"?"object":"unknown"},A=function(E,U){var Z=document.createElement(E);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 E(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(E(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},N=function E(U){var Z=Object.assign(E.convert(Promise.resolve()),JSON.parse(JSON.stringify(E.template))),oe=E.convert(Promise.resolve(),Z);return(oe=oe.setProgress(1,E,1,[E])).set(U)};(N.prototype=Object.create(Promise.prototype)).constructor=N,N.convert=function(E,U){return E.__proto__=U||N.prototype,E},N.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"}},N.prototype.from=function(E,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"}}(E),U){case"string":return this.then(a).then(function(Z){return this.set({src:A("div",{innerHTML:E,dompurify:Z})})});case"element":return this.set({src:E});case"canvas":return this.set({canvas:E});case"img":return this.set({img:E});default:return this.error("Unknown source type.")}})},N.prototype.to=function(E){switch(E){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.")}},N.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 E={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"&&(E.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:E}),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"})},N.prototype.toCanvas=function(){var E=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(E).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)})},N.prototype.toContext2d=function(){var E=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(E).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,$e=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 $e.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 $e.windowHeight=$e.windowHeight||0,$e.windowHeight=$e.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):$e.windowHeight,Z.context2d.save(!0),U(this.prop.container,$e)}).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)})},N.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var E=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=E})},N.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},N.prototype.output=function(E,U,Z){return(Z=Z||"pdf").toLowerCase()==="img"||Z.toLowerCase()==="image"?this.outputImg(E,U):this.outputPdf(E,U)},N.prototype.outputPdf=function(E,U){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(E,U)})},N.prototype.outputImg=function(E){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(E){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 "'+E+'" is not supported.'}})},N.prototype.save=function(E){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(E?{filename:E}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},N.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},N.prototype.set=function(E){if(l(E)!=="object")return this;var U=Object.keys(E||{}).map(function(Z){if(Z in N.template.prop)return function(){this.prop[Z]=E[Z]};switch(Z){case"margin":return this.setMargin.bind(this,E.margin);case"jsPDF":return function(){return this.opt.jsPDF=E.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,E.pageSize);default:return function(){this.opt[Z]=E[Z]}}},this);return this.then(function(){return this.thenList(U)})},N.prototype.get=function(E,U){return this.then(function(){var Z=E in N.template.prop?this.prop[E]:this.opt[E];return U?U(Z):Z})},N.prototype.setMargin=function(E){return this.then(function(){switch(l(E)){case"number":E=[E,E,E,E];case"array":if(E.length===2&&(E=[E[0],E[1],E[0],E[1]]),E.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=E}).then(this.setPageSize)},N.prototype.setPageSize=function(E){function U(Z,oe){return Math.floor(Z*oe/72*96)}return this.then(function(){(E=E||ua.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(E.inner={width:E.width-this.opt.margin[1]-this.opt.margin[3],height:E.height-this.opt.margin[0]-this.opt.margin[2]},E.inner.px={width:U(E.inner.width,E.k),height:U(E.inner.height,E.k)},E.inner.ratio=E.inner.height/E.inner.width),this.prop.pageSize=E})},N.prototype.setProgress=function(E,U,Z,oe){return E!=null&&(this.progress.val=E),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},N.prototype.updateProgress=function(E,U,Z,oe){return this.setProgress(E?this.progress.val+E:null,U||null,Z?this.progress.n+Z:null,oe?this.progress.stack.concat(oe):null)},N.prototype.then=function(E,U){var Z=this;return this.thenCore(E,U,function(oe,Re){return Z.updateProgress(null,null,1,[oe]),Promise.prototype.then.call(this,function($e){return Z.updateProgress(null,oe),$e}).then(oe,Re).then(function($e){return Z.updateProgress(1),$e})})},N.prototype.thenCore=function(E,U,Z){Z=Z||Promise.prototype.then;var oe=this;E&&(E=E.bind(oe)),U&&(U=U.bind(oe));var Re=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?oe:N.convert(Object.assign({},oe),Promise.prototype),$e=Z.call(Re,E,U);return N.convert($e,oe.__proto__)},N.prototype.thenExternal=function(E,U){return Promise.prototype.then.call(this,E,U)},N.prototype.thenList=function(E){var U=this;return E.forEach(function(Z){U=U.thenCore(Z)}),U},N.prototype.catch=function(E){E&&(E=E.bind(this));var U=Promise.prototype.catch.call(this,E);return N.convert(U,this)},N.prototype.catchExternal=function(E){return Promise.prototype.catch.call(this,E)},N.prototype.error=function(E){return this.then(function(){throw new Error(E)})},N.prototype.using=N.prototype.set,N.prototype.saveAs=N.prototype.save,N.prototype.export=N.prototype.output,N.prototype.run=N.prototype.then,ua.getPageSize=function(E,U,Z){if((0,pe.Z)(E)==="object"){var oe=E;E=oe.orientation,U=oe.unit||U,Z=oe.format||Z}U=U||"mm",Z=Z||"a4",E=(""+(E||"P")).toLowerCase();var Re,$e=(""+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($e))ut=ae[$e][1]/Re,bt=ae[$e][0]/Re;else try{ut=Z[1],bt=Z[0]}catch(ot){throw new Error("Invalid format: "+Z)}if(E==="p"||E==="portrait")E="p",bt>ut&&(mt=bt,bt=ut,ut=mt);else{if(E!=="l"&&E!=="landscape")throw"Invalid orientation: "+E;E="l",ut>bt&&(mt=bt,bt=ut,ut=mt)}return{width:bt,height:ut,unit:U,k:Re,orientation:E}},n.html=function(E,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 N(U);return U.worker?Z:Z.from(E).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 N=A[p],E=l.exec(N);if(E!=null){var U=E[1];a.internal.newObjectDeferredBegin(U,!1)}a.internal.write(N)}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 $e=a.internal.getPageInfo(p+1);a.internal.write("<< /D["+$e.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 N={title:A,options:p,children:[]};return l==null&&(l=this.root),l.children.push(N),N},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 N=l.children[p];this.objStart(N),this.line("/Title "+this.makeString(N.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])),N.children.length>0&&(this.line("/First "+this.makeRef(N.children[0])),this.line("/Last "+this.makeRef(N.children[N.children.length-1])));var E=this.count=this.count_r({count:0},N);if(E>0&&this.line("/Count "+E),N.options&&N.options.pageNumber){var U=a.internal.getPageInfo(N.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,N,E){var U,Z=this.decode.DCT_DECODE,oe=null;if(typeof a=="string"||this.__addimage__.isArrayBuffer(a)||this.__addimage__.isArrayBufferView(a)){switch(a=N||a,a=this.__addimage__.isArrayBuffer(a)?new Uint8Array(a):a,U=function(Re){for(var $e,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){$e=256*Re.charCodeAt(bt+5)+Re.charCodeAt(bt+6),ut={width:256*Re.charCodeAt(bt+7)+Re.charCodeAt(bt+8),height:$e,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:E=this.color_spaces.DEVICE_GRAY;break;case 4:E=this.color_spaces.DEVICE_CMYK;break;case 3:E=this.color_spaces.DEVICE_RGB}oe={data:a,width:U.width,height:U.height,colorSpace:E,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}),N=p.width,E=p.height,U=p.channels,Z=p.palette,oe=p.depth;A=Z&&U===1?function(ar){for(var Mt=ar.width,Cr=ar.height,it=ar.data,yt=ar.palette,Wt=ar.depth,Ht=!1,Tr=[],Zr=[],Jr=void 0,Lr=!1,Gr=0,$n=0;$n<yt.length;$n++){var Sn=(0,xi.Z)(yt[$n],4),rt=Sn[0],_t=Sn[1],Nt=Sn[2],Jt=Sn[3];Tr.push(rt,_t,Nt),Jt!=null&&(Jt===0?(Gr++,Zr.length<1&&Zr.push($n)):Jt<255&&(Lr=!0))}if(Lr||Gr>1){Ht=!0,Zr=void 0;var fr=Mt*Cr;Jr=new Uint8Array(fr);for(var Ir=new DataView(it.buffer),$r=0;$r<fr;$r++){var Qr=um(Ir,$r,Wt),gn=(0,xi.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:it,alphaBytes:Jr,needSMask:Ht,palette:Tr,mask:Zr}}(p):U===2||U===4?function(ar){for(var Mt=ar.data,Cr=ar.width,it=ar.height,yt=ar.channels,Wt=ar.depth,Ht=yt===2?"DeviceGray":"DeviceRGB",Tr=yt-1,Zr=Cr*it,Jr=Tr,Lr=Zr*Jr,Gr=1*Zr,$n=Math.ceil(Lr*Wt/8),Sn=Math.ceil(Gr*Wt/8),rt=new Uint8Array($n),_t=new Uint8Array(Sn),Nt=new DataView(Mt.buffer),Jt=new DataView(rt.buffer),fr=new DataView(_t.buffer),Ir=!1,$r=0;$r<Zr;$r++){for(var Qr=$r*yt,gn=0;gn<Jr;gn++)Hh(Jt,um(Nt,Qr+gn,Wt),$r*Jr+gn,Wt);var Rn=um(Nt,Qr+Jr,Wt);Rn<(1<<Wt)-1&&(Ir=!0),Hh(fr,Rn,1*$r,Wt)}return{colorSpace:Ht,colorsPerPixel:Tr,sMaskBitsPerComponent:Ir?Wt:void 0,colorBytes:rt,alphaBytes:_t,needSMask:Ir}}(p):function(ar){var Mt=ar.data,Cr=ar.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Cr,colorsPerPixel:Cr==="DeviceGray"?1:3,colorBytes:Mt instanceof Uint16Array?function(it){for(var yt=it.length,Wt=new Uint8Array(2*yt),Ht=new DataView(Wt.buffer,Wt.byteOffset,Wt.byteLength),Tr=0;Tr<yt;Tr++)Ht.setUint16(2*Tr,it[Tr],!1);return Wt}(Mt):Mt,needSMask:!1}}(p);var Re,$e,ae,mt=A,ut=mt.colorSpace,bt=mt.colorsPerPixel,ot=mt.sMaskBitsPerComponent,Gt=mt.colorBytes,Rt=mt.alphaBytes,It=mt.needSMask,Mr=mt.palette,rn=mt.mask,Wr=null;return l!==ua.API.image_compression.NONE&&typeof ai=="function"?(Wr=function(ar){var Mt;switch(ar){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,$e="/Predictor ".concat(Wr," /Colors ").concat(bt," /BitsPerComponent ").concat(oe," /Columns ").concat(N),n=cm(Gt,Math.ceil(N*bt*oe/8),bt,oe,l),It&&(ae=cm(Rt,Math.ceil(N*ot/8),1,ot,l))):(Re=void 0,$e=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:$e,transparency:rn,palette:Mr,sMask:ae,predictor:Wr,width:N,height:E,bitsPerComponent:oe,sMaskBitsPerComponent:ot,colorSpace:ut}}},function(n){n.processGIF89A=function(o,a,l,A){var p=new Ym(o),N=p.width,E=p.height,U=[];p.decodeAndBlitFrameRGBA(0,U);var Z={data:U,width:N,height:E},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),N=l*this.width*4+8*A*4,E=0;E<8&&8*A+E<this.width;E++){var U=this.palette[p>>7-E&1];this.data[N+4*E]=U.blue,this.data[N+4*E+1]=U.green,this.data[N+4*E+2]=U.red,this.data[N+4*E+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),N=l*this.width*4+2*A*4,E=p>>4,U=15&p,Z=this.palette[E];if(this.data[N]=Z.blue,this.data[N+1]=Z.green,this.data[N+2]=Z.red,this.data[N+3]=255,2*A+1>=this.width)break;Z=this.palette[U],this.data[N+4]=Z.blue,this.data[N+4+1]=Z.green,this.data[N+4+2]=Z.red,this.data[N+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 N=this.palette[A];this.data[p]=N.red,this.data[p+1]=N.green,this.data[p+2]=N.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 N=(p&o)/o*255|0,E=(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]=E,this.data[oe+2]=N,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 N=this.datav.getUint16(this.pos,!0);this.pos+=2;var E=(N&o)/o*255|0,U=(N>>5&a)/a*255|0,Z=(N>>11)/o*255|0,oe=A*this.width*4+4*p;this.data[oe]=Z,this.data[oe+1]=U,this.data[oe+2]=E,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),N=o*this.width*4+4*a;this.data[N]=p,this.data[N+1]=A,this.data[N+2]=l,this.data[N+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),N=this.datav.getUint8(this.pos++,!0),E=o*this.width*4+4*a;this.data[E]=p,this.data[E+1]=A,this.data[E+2]=l,this.data[E+3]=N}},du.prototype.getData=function(){return this.data},function(n){n.processBMP=function(o,a,l,A){var p=new du(o,!1),N=p.width,E=p.height,U={data:p.getData(),width:N,height:E},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),N=p.width,E=p.height,U={data:p.getData(),width:N,height:E},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),N=new Uint8Array(A/4),E=0,U=0,Z=0;Z<A;Z+=4){var oe=l[Z],Re=l[Z+1],$e=l[Z+2],ae=l[Z+3];p[E++]=oe,p[E++]=Re,p[E++]=$e,N[U++]=ae}var mt=this.__addimage__.arrayBufferToBinaryString(p);return{alpha:this.__addimage__.arrayBufferToBinaryString(N),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(),N=o.charSpace||this.internal.getCharSpace(),E=o.widths?o.widths:A.metadata.Unicode.widths,U=E.fof?E.fof:1,Z=o.kerning?o.kerning:A.metadata.Unicode.kerning,oe=Z.fof?Z.fof:1,Re=o.doKerning!==!1,$e=0,ae=n.length,mt=0,ut=E[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))+N*(1e3/p)||0)/1e3):($e=Re&&(0,pe.Z)(Z[l])==="object"&&!isNaN(parseInt(Z[l][mt],10))?Z[l][mt]/oe:0,bt.push((E[l]||ut)/U+$e)),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,N){return p+N},0)},Gm=function(n,o,a,l){for(var A=[],p=0,N=n.length,E=0;p!==N&&E+o[p]<a;)E+=o[p],p++;A.push(n.slice(0,p));var U=p;for(E=0;p!==N;)E+o[p]>l&&(A.push(n.slice(U,p)),E=0,U=p),E+=o[p],p++;return U!==p&&A.push(n.slice(U,p)),A},yg=function(n,o,a){a||(a={});var l,A,p,N,E,U,Z,oe=[],Re=[oe],$e=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(Mr,rn){return(rn&&Mr.length?`
`:"")+Mr})):Gt.push(It[0])}),ut=Gt,U=bg.apply(this,[ot,a])}for(p=0,N=ut.length;p<N;p++){var Rt=0;if(l=ut[p],U&&l[0]==`
`&&(l=l.substr(1),Rt=1),$e+ae+(mt=(A=lm.apply(this,[l,a])).reduce(function(It,Mr){return It+Mr},0))>o||Rt){if(mt>o){for(E=Gm.apply(this,[l,A,o-($e+ae),o]),oe.push(E.shift()),oe=[E.pop()];E.length;)Re.push([E.shift()]);mt=A.slice(l.length-(oe[0]?oe[0].length:0)).reduce(function(It,Mr){return It+Mr},0)}else oe=[l];Re.push(oe),$e=mt+U,ae=bt}else oe.push(l),$e+=ae+mt,ae=bt}return Z=U?function(It,Mr){return(Mr?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),$e="Unicode";return Re.metadata[$e]?{widths:Re.metadata[$e].widths||{0:1},kerning:Re.metadata[$e].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 N=1*this.internal.scaleFactor*o/A;p.textIndent=a.textIndent?1*a.textIndent*this.internal.scaleFactor/A:0,p.lineIndent=a.lineIndent;var E,U,Z=[];for(E=0,U=l.length;E<U;E++)Z=Z.concat(yg.apply(this,[l[E],N,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 N=function($e){return"0x"+parseInt($e,10).toString(16)},E=n.__fontmetrics__.compress=function($e){var ae,mt,ut,bt,ot=["{"];for(var Gt in $e){if(ae=$e[Gt],isNaN(parseInt(Gt,10))?mt="'"+Gt+"'":(Gt=parseInt(Gt,10),mt=(mt=N(Gt).slice(2)).slice(0,-1)+A[mt.slice(-1)]),typeof ae=="number")ae<0?(ut=N(ae).slice(3),bt="-"):(ut=N(ae).slice(2),bt=""),ut=bt+ut.slice(0,-1)+A[ut.slice(-1)];else{if((0,pe.Z)(ae)!=="object")throw new Error("Don't know what to do with value type "+(0,pe.Z)(ae)+".");ut=E(ae)}ot.push(mt+ut)}return ot.push("}"),ot.join("")},U=n.__fontmetrics__.uncompress=function($e){if(typeof $e!="string")throw new Error("Invalid argument passed to uncompress.");for(var ae,mt,ut,bt,ot={},Gt=1,Rt=ot,It=[],Mr="",rn="",Wr=$e.length-1,ar=1;ar<Wr;ar+=1)(bt=$e[ar])=="'"?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)?(Mr+=l[bt],ut=parseInt(Mr,16)*Gt,Gt=1,Mr=""):Mr+=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($e){var ae=$e.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(N,E){E=/^\x00\x01\x00\x00/.test(E)?o(E):o(vn(E)),N.metadata=n.API.TTFFont.open(E),N.metadata.Unicode=N.metadata.Unicode||{encoding:{},kerning:{},widths:[]},N.metadata.glyIdsUsed=[0]})(A,l)}}])}(ua),ua.API.addSvgAsImage=function(n,o,a,l,A,p,N,E){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(Va.canvg?Promise.resolve(Va.canvg):x.e(3754).then(x.bind(x,63754))).catch(function($e){return Promise.reject(new Error("Could not load canvg: "+$e))}).then(function($e){return $e.default?$e.default:$e}).then(function($e){return $e.fromString(Z,n,oe)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function($e){return $e.render(oe)}).then(function(){Re.addImage(U.toDataURL("image/jpeg",1),o,a,l,A,N,E)})},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,N={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}},E=Object.keys(N),U=[],Z=0,oe=0,Re=0;function $e(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(N)),this.internal.viewerpreferences.isSubscribed=!1),a=this.internal.viewerpreferences.configuration,n==="reset"||o===!0){var ae=E.length;for(Re=0;Re<ae;Re+=1)a[E[Re]].value=a[E[Re]].defaultValue,a[E[Re]].explicitSet=!1}if((0,pe.Z)(n)==="object"){for(A in n)if(p=n[A],$e(E,A)&&p!==void 0){if(a[A].type==="boolean"&&typeof p=="boolean")a[A].value=p;else if(a[A].type==="name"&&$e(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)),N=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),E=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),U=unescape(encodeURIComponent("</x:xmpmeta>")),Z=p.length+N.length+E.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+N+E+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,N){for(var E,U=N.metadata.Unicode.widths,Z=["","0","00","000","0000"],oe=[""],Re=0,$e=p.length;Re<$e;++Re){if(E=N.metadata.characterToGlyph(p.charCodeAt(Re)),N.metadata.glyIdsUsed.push(E),N.metadata.toUnicode[E]=p.charCodeAt(Re),U.indexOf(E)==-1&&(U.push(E),U.push([parseInt(N.metadata.widthOfGlyph(E),10)])),E=="0")return oe.join("");E=E.toString(16),oe.push(Z[4-E.length],E)}return oe.join("")},l=function(p){var N,E,U,Z,oe,Re,$e;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,$e=(E=Object.keys(p).sort(function(ae,mt){return ae-mt})).length;Re<$e;Re++)N=E[Re],U.length>=100&&(oe+=`
`+U.length+` beginbfchar
`+U.join(`
`)+`
endbfchar`,U=[]),p[N]!==void 0&&p[N]!==null&&typeof p[N].toString=="function"&&(Z=("0000"+p[N].toString(16)).slice(-4),N=("0000"+(+N).toString(16)).slice(-4),U.push("<"+N+"><"+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(N){var E=N.font,U=N.out,Z=N.newObject,oe=N.putStream;if(E.metadata instanceof n.API.TTFFont&&E.encoding==="Identity-H"){for(var Re=E.metadata.Unicode.widths,$e=E.metadata.subset.encode(E.metadata.glyIdsUsed,1),ae="",mt=0;mt<$e.length;mt++)ae+=String.fromCharCode($e[mt]);var ut=Z();oe({data:ae,addLength1:!0,objectId:ut}),U("endobj");var bt=Z();oe({data:l(E.metadata.toUnicode),addLength1:!0,objectId:bt}),U("endobj");var ot=Z();U("<<"),U("/Type /FontDescriptor"),U("/FontName /"+iA(E.fontName)),U("/FontFile2 "+ut+" 0 R"),U("/FontBBox "+n.API.PDFObject.convert(E.metadata.bbox)),U("/Flags "+E.metadata.flags),U("/StemV "+E.metadata.stemV),U("/ItalicAngle "+E.metadata.italicAngle),U("/Ascent "+E.metadata.ascender),U("/Descent "+E.metadata.decender),U("/CapHeight "+E.metadata.capHeight),U(">>"),U("endobj");var Gt=Z();U("<<"),U("/Type /Font"),U("/BaseFont /"+iA(E.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 ("+E.encoding+")"),U(">>"),U(">>"),U("endobj"),E.objectNumber=Z(),U("<<"),U("/Type /Font"),U("/Subtype /Type0"),U("/ToUnicode "+bt+" 0 R"),U("/BaseFont /"+iA(E.fontName)),U("/Encoding /"+E.encoding),U("/DescendantFonts ["+Gt+" 0 R]"),U(">>"),U("endobj"),E.isAlreadyPutted=!0}})(p)}]),o.events.push(["putFont",function(p){(function(N){var E=N.font,U=N.out,Z=N.newObject,oe=N.putStream;if(E.metadata instanceof n.API.TTFFont&&E.encoding==="WinAnsiEncoding"){for(var Re=E.metadata.rawData,$e="",ae=0;ae<Re.length;ae++)$e+=String.fromCharCode(Re[ae]);var mt=Z();oe({data:$e,addLength1:!0,objectId:mt}),U("endobj");var ut=Z();oe({data:l(E.metadata.toUnicode),addLength1:!0,objectId:ut}),U("endobj");var bt=Z();U("<<"),U("/Descent "+E.metadata.decender),U("/CapHeight "+E.metadata.capHeight),U("/StemV "+E.metadata.stemV),U("/Type /FontDescriptor"),U("/FontFile2 "+mt+" 0 R"),U("/Flags 96"),U("/FontBBox "+n.API.PDFObject.convert(E.metadata.bbox)),U("/FontName /"+iA(E.fontName)),U("/ItalicAngle "+E.metadata.italicAngle),U("/Ascent "+E.metadata.ascender),U(">>"),U("endobj"),E.objectNumber=Z();for(var ot=0;ot<E.metadata.hmtx.widths.length;ot++)E.metadata.hmtx.widths[ot]=parseInt(E.metadata.hmtx.widths[ot]*(1e3/E.metadata.head.unitsPerEm));U("<</Subtype/TrueType/Type/Font/ToUnicode "+ut+" 0 R/BaseFont/"+iA(E.fontName)+"/FontDescriptor "+bt+" 0 R/Encoding/"+E.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(E.metadata.hmtx.widths)+">>"),U("endobj"),E.isAlreadyPutted=!0}})(p)}]);var A=function(p){var N,E=p.text||"",U=p.x,Z=p.y,oe=p.options||{},Re=p.mutex||{},$e=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:E,x:U,y:Z,options:oe,mutex:Re};for(Gt=E,ut=ae,Array.isArray(E)&&(Gt=E[0]),ot=0;ot<Gt.length;ot+=1)mt[ut].metadata.hasOwnProperty("cmap")&&(N=mt[ut].metadata.cmap.unicode.codeMap[Gt[ot].charCodeAt(0)]),N||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=$e(bt,ut).split("").map(function(Mr){return Mr.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 N=p.text||"",E=[],U={text:N,x:p.x,y:p.y,options:p.options,mutex:p.mutex};if(Array.isArray(N)){var Z=0;for(Z=0;Z<N.length;Z+=1)Array.isArray(N[Z])&&N[Z].length===3?E.push([A(Object.assign({},U,{text:N[Z][0]})).text,N[Z][1],N[Z][2]]):E.push(A(Object.assign({},U,{text:N[Z]})).text);p.text=E}else p.text=A(Object.assign({},U,{text:N})).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,N,E,U,Z,oe,Re=o,$e=[[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(it){var yt=it.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"},Mr=function(it){for(var yt,Wt=0;Wt<it.length;Wt++){if((yt=It(it.charAt(Wt)))==="L")return!1;if(yt==="R")return!0}return!1},rn=function(it,yt,Wt,Ht){var Tr,Zr,Jr,Lr,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,Lr=yt.length;Jr<Lr&&yt[Jr]==="ET";)Jr++;Gr=Jr<Lr&&yt[Jr]==="EN"?"EN":"N";break;case"NSM":if(N&&!E){for(Lr=yt.length,Jr=Ht+1;Jr<Lr&&yt[Jr]==="NSM";)Jr++;if(Jr<Lr){var $n=it[Ht],Sn=$n>=1425&&$n<=2303||$n===64286;if(Tr=yt[Jr],Sn&&(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(it,yt,Wt){var Ht=it.split("");return Wt&&ar(Ht,Wt,{hiLevel:Rt}),Ht.reverse(),yt&&yt.reverse(),Ht.join("")},ar=function(it,yt,Wt){var Ht,Tr,Zr,Jr,Lr,Gr=-1,$n=it.length,Sn=0,rt=[],_t=Rt?ae:$e,Nt=[];for(Gt=!1,A=!1,p=!1,Tr=0;Tr<$n;Tr++)Nt[Tr]=It(it[Tr]);for(Zr=0;Zr<$n;Zr++){if(Lr=Sn,rt[Zr]=rn(it,Nt,rt,Zr),Ht=240&(Sn=_t[Lr][mt[rt[Zr]]]),Sn&=15,yt[Zr]=Jr=_t[Sn][5],Ht>0)if(Ht===16){for(Tr=Gr;Tr<Zr;Tr++)yt[Tr]=1;Gr=-1}else Gr=-1;if(_t[Sn][6])Gr===-1&&(Gr=Zr);else if(Gr>-1){for(Tr=Gr;Tr<Zr;Tr++)yt[Tr]=Jr;Gr=-1}Nt[Zr]==="B"&&(yt[Zr]=0),Wt.hiLevel|=Jr}p&&function(Jt,fr,Ir){for(var $r=0;$r<Ir;$r++)if(Jt[$r]==="S"){fr[$r]=Rt;for(var Qr=$r-1;Qr>=0&&Jt[Qr]==="WS";Qr--)fr[Qr]=Rt}}(Nt,yt,$n)},Mt=function(it,yt,Wt,Ht,Tr){if(!(Tr.hiLevel<it)){if(it===1&&Rt===1&&!A)return yt.reverse(),void(Wt&&Wt.reverse());for(var Zr,Jr,Lr,Gr,$n=yt.length,Sn=0;Sn<$n;){if(Ht[Sn]>=it){for(Lr=Sn+1;Lr<$n&&Ht[Lr]>=it;)Lr++;for(Gr=Sn,Jr=Lr-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);Sn=Lr}Sn++}}},Cr=function(it,yt,Wt){var Ht=it.split(""),Tr={hiLevel:Rt};return Wt||(Wt=[]),ar(Ht,Wt,Tr),function(Zr,Jr,Lr){if(Lr.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(it,yt,Wt){if(function(Tr,Zr){if(Zr)for(var Jr=0;Jr<Tr.length;Jr++)Zr[Jr]=Jr;E===void 0&&(E=Mr(Tr)),Z===void 0&&(Z=Mr(Tr))}(it,yt),N||!U||Z)if(N&&U&&E^Z)Rt=E?1:0,it=Wr(it,yt,Wt);else if(!N&&U&&Z)Rt=E?1:0,it=Cr(it,yt,Wt),it=Wr(it,yt);else if(!N||E||U||Z){if(N&&!U&&E^Z)it=Wr(it,yt),E?(Rt=0,it=Cr(it,yt,Wt)):(Rt=1,it=Cr(it,yt,Wt),it=Wr(it,yt));else if(N&&E&&!U&&Z)Rt=1,it=Cr(it,yt,Wt),it=Wr(it,yt);else if(!N&&!U&&E^Z){var Ht=oe;E?(Rt=1,it=Cr(it,yt,Wt),Rt=0,oe=!1,it=Cr(it,yt,Wt),oe=Ht):(Rt=0,it=Cr(it,yt,Wt),it=Wr(it,yt),Rt=1,oe=!1,it=Cr(it,yt,Wt),oe=Ht,it=Wr(it,yt))}}else Rt=0,it=Cr(it,yt,Wt);else Rt=E?1:0,it=Cr(it,yt,Wt);return it},this.__bidiEngine__.setOptions=function(it){it&&(N=it.isInputVisual,U=it.isOutputVisual,E=it.isInputRtl,Z=it.isOutputRtl,oe=it.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 N=[];if(p.isInputVisual=typeof p.isInputVisual!="boolean"||p.isInputVisual,a.setOptions(p),Object.prototype.toString.call(A)==="[object Array]"){var E=0;for(N=[],E=0;E<A.length;E+=1)Object.prototype.toString.call(A[E])==="[object Array]"?N.push([a.doBidiReorder(A[E][0]),A[E][1],A[E][2]]):N.push([a.doBidiReorder(A[E])]);l.text=N}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 N,E,U,Z;for(Z=[],N=0,E=(U=this.bbox).length;N<E;N++)o=U[N],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,N,E;for(N=0,p=0,E=(o=""+o).length;0<=E?p<E:p>E;p=0<=E?++p:--p)A=o.charCodeAt(p),N+=this.widthOfGlyph(this.characterToGlyph(A))+l*(1e3/a)||0;return N*(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,N,E,U;return o=this.readByte(),a=this.readByte(),l=this.readByte(),A=this.readByte(),p=this.readByte(),N=this.readByte(),E=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^N)+256*(255^E)+(255^U)+1):72057594037927940*o+281474976710656*a+1099511627776*l+4294967296*A+16777216*p+65536*N+256*E+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,N,E,U,Z,oe,Re,$e,ae,mt,ut;for(ut in ae=Object.keys(a).length,U=Math.log(2),Re=16*Math.floor(Math.log(ae)/U),N=Math.floor(Re/U),oe=16*ae-Re,(A=new lh).writeInt(this.scalarType),A.writeShort(ae),A.writeShort(Re),A.writeShort(N),A.writeShort(oe),p=16*ae,Z=A.pos+p,E=null,mt=[],a)for($e=a[ut],A.writeString(ut),A.writeInt(n($e)),A.writeInt(Z),A.writeInt($e.length),mt=mt.concat($e),ut==="head"&&(E=Z),Z+=$e.length;Z%4;)mt.push(0),Z++;return A.write(mt),l=2981146554-n(A.data),A.pos=E+8,A.writeUInt32(l),A.data},n=function(a){var l,A,p,N;for(a=Eg.call(a);a.length%4;)a.push(0);for(p=new lh(a),A=0,l=0,N=a.length;l<N;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,N,E,U,Z,oe,Re,$e,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(),$e=ae/2,o.pos+=6,p=function(){var It,Mr;for(Mr=[],U=It=0;0<=$e?It<$e:It>$e;U=0<=$e?++It:--It)Mr.push(o.readUInt16());return Mr}(),o.pos+=2,ut=function(){var It,Mr;for(Mr=[],U=It=0;0<=$e?It<$e:It>$e;U=0<=$e?++It:--It)Mr.push(o.readUInt16());return Mr}(),Z=function(){var It,Mr;for(Mr=[],U=It=0;0<=$e?It<$e:It>$e;U=0<=$e?++It:--It)Mr.push(o.readUInt16());return Mr}(),oe=function(){var It,Mr;for(Mr=[],U=It=0;0<=$e?It<$e:It>$e;U=0<=$e?++It:--It)Mr.push(o.readUInt16());return Mr}(),A=(this.length-o.pos+this.offset)/2,E=function(){var It,Mr;for(Mr=[],U=It=0;0<=A?It<A:It>A;U=0<=A?++It:--It)Mr.push(o.readUInt16());return Mr}(),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?N=l+Z[U]:(N=E[oe[U]/2+(l-mt)-($e-U)]||0)!==0&&(N+=Z[U]),this.codeMap[l]=65535&N}o.pos=Re}return n.encode=function(o,a){var l,A,p,N,E,U,Z,oe,Re,$e,ae,mt,ut,bt,ot,Gt,Rt,It,Mr,rn,Wr,ar,Mt,Cr,it,yt,Wt,Ht,Tr,Zr,Jr,Lr,Gr,$n,Sn,rt,_t,Nt,Jt,fr,Ir,$r,Qr,gn,Rn,vi;switch(Ht=new lh,N=Object.keys(o).sort(function(_i,sn){return _i-sn}),a){case"macroman":for(ut=0,bt=function(){var _i=[];for(mt=0;mt<256;++mt)_i.push(0);return _i}(),Gt={0:0},p={},Tr=0,Gr=N.length;Tr<Gr;Tr++)Gt[Qr=o[A=N[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=N.length;Zr<$n;Zr++)Gt[Mr=o[A=N[Zr]]]==null&&(Gt[Mr]=++Rt),l[A]={old:Mr,new:Gt[Mr]},E=Gt[Mr]-A,ot!=null&&E===Z||(ot&&Re.push(ot),yt.push(A),Z=E),ot=A;for(ot&&Re.push(ot),Re.push(65535),yt.push(65535),Cr=2*(Mt=yt.length),ar=2*Math.pow(Math.log(Mt)/Math.LN2,2),$e=Math.log(ar/2)/Math.LN2,Wr=2*Mt-ar,U=[],rn=[],ae=[],mt=Jr=0,Sn=yt.length;Jr<Sn;mt=++Jr){if(it=yt[mt],oe=Re[mt],it===65535){U.push(0),rn.push(0);break}if(it-(Wt=l[it].new)>=32768)for(U.push(0),rn.push(2*(ae.length+Mt-mt)),A=Lr=it;it<=oe?Lr<=oe:Lr>=oe;A=it<=oe?++Lr:--Lr)ae.push(l[A].new);else U.push(Wt-it),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(Cr),Ht.writeUInt16(ar),Ht.writeUInt16($e),Ht.writeUInt16(Wr),Ir=0,rt=Re.length;Ir<rt;Ir++)A=Re[Ir],Ht.writeUInt16(A);for(Ht.writeUInt16(0),$r=0,_t=yt.length;$r<_t;$r++)A=yt[$r],Ht.writeUInt16(A);for(gn=0,Nt=U.length;gn<Nt;gn++)E=U[gn],Ht.writeUInt16(E);for(Rn=0,Jt=rn.length;Rn<Jt;Rn++)It=rn[Rn],Ht.writeUInt16(It);for(vi=0,fr=ae.length;vi<fr;vi++)ut=ae[vi],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 N,E,U;for(U=[],p=N=0,E=this.file.maxp.numGlyphs;0<=E?N<E:N>E;p=0<=E?++N:--N)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,N,E,U,Z,oe,Re,$e;for(o.pos=this.offset,o.readShort(),a=o.readShort(),E=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+E+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),N=new t1(Z,A),U[$e=A.nameID]==null&&(U[$e]=[]),U[A.nameID].push(N);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,N,E,U;for(o.pos=this.offset,this.metrics=[],a=0,E=this.file.hhea.numberOfMetrics;0<=E?a<E:a>E;a=0<=E?++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,$e;for($e=[],Z=0,oe=(Re=this.metrics).length;Z<oe;Z++)p=Re[Z],$e.push(p.advance);return $e}.call(this),l=this.widths[this.widths.length-1],U=[],a=N=0;0<=A?N<A:N>A;a=0<=A?++N:--N)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,N,E,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,N=(E=new lh(a.read(A))).readShort(),Z=E.readShort(),Re=E.readShort(),U=E.readShort(),oe=E.readShort(),this.cache[o]=N===-1?new hm(E,Z,Re,U,oe):new jh(E,N,Z,Re,U,oe),this.cache[o]))},n.prototype.encode=function(o,a,l){var A,p,N,E,U;for(N=[],p=[],E=0,U=a.length;E<U;E++)A=o[a[E]],p.push(N.length),A&&(N=N.concat(A.encode(l)));return p.push(N.length),{table:N,offsets:p}},n}(),jh=function(){function n(o,a,l,A,p,N){this.raw=o,this.numberOfContours=a,this.xMin=l,this.yMin=A,this.xMax=p,this.yMax=N,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n}(),hm=function(){function n(o,a,l,A,p){var N,E;for(this.raw=o,this.xMin=a,this.yMin=l,this.xMax=A,this.yMax=p,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],N=this.raw;E=N.readShort(),this.glyphOffsets.push(N.pos),this.glyphIDs.push(N.readUInt16()),32&E;)N.pos+=1&E?4:2,128&E?N.pos+=8:64&E?N.pos+=4:8&E&&(N.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,N=0;N<l.length;++N)if(l[N]=A,p<a.length&&a[p]==N){++p,l[N]=A;var E=this.offsets[N],U=this.offsets[N+1]-E;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,N,E,U;for(A={},N=0,E=o.length;N<E;N++)A[p=o[N]]=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,N,E,U,Z,oe,Re,$e,ae,mt,ut,bt,ot;for(A in l=dm.encode(this.generateCmap(),"unicode"),N=this.glyphsFor(o),ae={0:0},ot=l.charMap)ae[(U=ot[A]).old]=U.new;for(mt in $e=l.maxGlyphID,N)mt in ae||(ae[mt]=$e++);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++)E=Re[Gt],It.push(oe[E]);return It}(),p=this.font.glyf.encode(N,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,N;if(Array.isArray(a))return"["+function(){var E,U,Z;for(Z=[],E=0,U=a.length;E<U;E++)l=a[E],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)N=a[A],p.push("/"+A+" "+o.convert(N));return p.push(">>"),p.join(`
`)}return""+a},o}()},86129:function(un,Tt,x){var pe=x(19208).lW,Ae=x(97671);(function(P){un.exports=P()})(function(){return function P(Ne,te,V){function S(v,$){if(!te[v]){if(!Ne[v]){var _=void 0;if(!$&&_)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 O=te[v]={exports:{}};Ne[v][0].call(O.exports,function(T){var L=Ne[v][1][T];return S(L||T)},O,O.exports,P,Ne,te,V)}return te[v].exports}for(var g=void 0,F=0;F<V.length;F++)S(V[F]);return S}({1:[function(P,Ne,te){"use strict";var V=P("./utils"),S=P("./support"),g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";te.encode=function(F){for(var v,$,_,M,O,T,L,Y=[],R=0,se=F.length,ne=se,J=V.getTypeOf(F)!=="string";R<F.length;)ne=se-R,_=J?(v=F[R++],$=R<se?F[R++]:0,R<se?F[R++]:0):(v=F.charCodeAt(R++),$=R<se?F.charCodeAt(R++):0,R<se?F.charCodeAt(R++):0),M=v>>2,O=(3&v)<<4|$>>4,T=1<ne?(15&$)<<2|_>>6:64,L=2<ne?63&_:64,Y.push(g.charAt(M)+g.charAt(O)+g.charAt(T)+g.charAt(L));return Y.join("")},te.decode=function(F){var v,$,_,M,O,T,L=0,Y=0,R="data:";if(F.substr(0,R.length)===R)throw new Error("Invalid base64 input, it looks like a data url.");var se,ne=3*(F=F.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(F.charAt(F.length-1)===g.charAt(64)&&ne--,F.charAt(F.length-2)===g.charAt(64)&&ne--,ne%1!=0)throw new Error("Invalid base64 input, bad content length.");for(se=S.uint8array?new Uint8Array(0|ne):new Array(0|ne);L<F.length;)v=g.indexOf(F.charAt(L++))<<2|(M=g.indexOf(F.charAt(L++)))>>4,$=(15&M)<<4|(O=g.indexOf(F.charAt(L++)))>>2,_=(3&O)<<6|(T=g.indexOf(F.charAt(L++))),se[Y++]=v,O!==64&&(se[Y++]=$),T!==64&&(se[Y++]=_);return se}},{"./support":30,"./utils":32}],2:[function(P,Ne,te){"use strict";var V=P("./external"),S=P("./stream/DataWorker"),g=P("./stream/Crc32Probe"),F=P("./stream/DataLengthProbe");function v($,_,M,O,T){this.compressedSize=$,this.uncompressedSize=_,this.crc32=M,this.compression=O,this.compressedContent=T}v.prototype={getContentWorker:function(){var $=new S(V.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new F("data_length")),_=this;return $.on("end",function(){if(this.streamInfo.data_length!==_.uncompressedSize)throw new Error("Bug : uncompressed data size mismatch")}),$},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($,_,M){return $.pipe(new g).pipe(new F("uncompressedSize")).pipe(_.compressWorker(M)).pipe(new F("compressedSize")).withStreamInfo("compression",_)},Ne.exports=v},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(P,Ne,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,Ne,te){"use strict";var V=P("./utils"),S=function(){for(var g,F=[],v=0;v<256;v++){g=v;for(var $=0;$<8;$++)g=1&g?3988292384^g>>>1:g>>>1;F[v]=g}return F}();Ne.exports=function(g,F){return g!==void 0&&g.length?V.getTypeOf(g)!=="string"?function(v,$,_,M){var O=S,T=M+_;v^=-1;for(var L=M;L<T;L++)v=v>>>8^O[255&(v^$[L])];return-1^v}(0|F,g,g.length,0):function(v,$,_,M){var O=S,T=M+_;v^=-1;for(var L=M;L<T;L++)v=v>>>8^O[255&(v^$.charCodeAt(L))];return-1^v}(0|F,g,g.length,0):0}},{"./utils":32}],5:[function(P,Ne,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,Ne,te){"use strict";var V=null;V=typeof Promise!="undefined"?Promise:P("lie"),Ne.exports={Promise:V}},{lie:37}],7:[function(P,Ne,te){"use strict";var V=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",S=P("pako"),g=P("./utils"),F=P("./stream/GenericWorker"),v=V?"uint8array":"array";function $(_,M){F.call(this,"FlateWorker/"+_),this._pako=null,this._pakoAction=_,this._pakoOptions=M,this.meta={}}te.magic="\b\0",g.inherits($,F),$.prototype.processChunk=function(_){this.meta=_.meta,this._pako===null&&this._createPako(),this._pako.push(g.transformTo(v,_.data),!1)},$.prototype.flush=function(){F.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},$.prototype.cleanUp=function(){F.prototype.cleanUp.call(this),this._pako=null},$.prototype._createPako=function(){this._pako=new S[this._pakoAction]({raw:!0,level:this._pakoOptions.level||-1});var _=this;this._pako.onData=function(M){_.push({data:M,meta:_.meta})}},te.compressWorker=function(_){return new $("Deflate",_)},te.uncompressWorker=function(){return new $("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(P,Ne,te){"use strict";function V(O,T){var L,Y="";for(L=0;L<T;L++)Y+=String.fromCharCode(255&O),O>>>=8;return Y}function S(O,T,L,Y,R,se){var ne,J,W=O.file,K=O.compression,le=se!==v.utf8encode,me=g.transformTo("string",se(W.name)),Oe=g.transformTo("string",v.utf8encode(W.name)),Be=W.comment,Ue=g.transformTo("string",se(Be)),ee=g.transformTo("string",v.utf8encode(Be)),fe=Oe.length!==W.name.length,D=ee.length!==Be.length,Ye="",Le="",Ce="",Te=W.dir,be=W.date,ke={crc32:0,compressedSize:0,uncompressedSize:0};T&&!L||(ke.crc32=O.crc32,ke.compressedSize=O.compressedSize,ke.uncompressedSize=O.uncompressedSize);var he=0;T&&(he|=8),le||!fe&&!D||(he|=2048);var Ee=0,Xe=0;Te&&(Ee|=16),R==="UNIX"?(Xe=798,Ee|=function(ze,qe){var Et=ze;return ze||(Et=qe?16893:33204),(65535&Et)<<16}(W.unixPermissions,Te)):(Xe=20,Ee|=function(ze){return 63&(ze||0)}(W.dosPermissions)),ne=be.getUTCHours(),ne<<=6,ne|=be.getUTCMinutes(),ne<<=5,ne|=be.getUTCSeconds()/2,J=be.getUTCFullYear()-1980,J<<=4,J|=be.getUTCMonth()+1,J<<=5,J|=be.getUTCDate(),fe&&(Le=V(1,1)+V($(me),4)+Oe,Ye+="up"+V(Le.length,2)+Le),D&&(Ce=V(1,1)+V($(Ue),4)+ee,Ye+="uc"+V(Ce.length,2)+Ce);var et="";return et+=`
\0`,et+=V(he,2),et+=K.magic,et+=V(ne,2),et+=V(J,2),et+=V(ke.crc32,4),et+=V(ke.compressedSize,4),et+=V(ke.uncompressedSize,4),et+=V(me.length,2),et+=V(Ye.length,2),{fileRecord:_.LOCAL_FILE_HEADER+et+me+Ye,dirRecord:_.CENTRAL_FILE_HEADER+V(Xe,2)+et+V(Ue.length,2)+"\0\0\0\0"+V(Ee,4)+V(Y,4)+me+Ye+Ue}}var g=P("../utils"),F=P("../stream/GenericWorker"),v=P("../utf8"),$=P("../crc32"),_=P("../signature");function M(O,T,L,Y){F.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=T,this.zipPlatform=L,this.encodeFileName=Y,this.streamFiles=O,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}g.inherits(M,F),M.prototype.push=function(O){var T=O.meta.percent||0,L=this.entriesCount,Y=this._sources.length;this.accumulate?this.contentBuffer.push(O):(this.bytesWritten+=O.data.length,F.prototype.push.call(this,{data:O.data,meta:{currentFile:this.currentFile,percent:L?(T+100*(L-Y-1))/L:100}}))},M.prototype.openedSource=function(O){this.currentSourceOffset=this.bytesWritten,this.currentFile=O.file.name;var T=this.streamFiles&&!O.file.dir;if(T){var L=S(O,T,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:L.fileRecord,meta:{percent:0}})}else this.accumulate=!0},M.prototype.closedSource=function(O){this.accumulate=!1;var T=this.streamFiles&&!O.file.dir,L=S(O,T,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(L.dirRecord),T)this.push({data:function(Y){return _.DATA_DESCRIPTOR+V(Y.crc32,4)+V(Y.compressedSize,4)+V(Y.uncompressedSize,4)}(O),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 O=this.bytesWritten,T=0;T<this.dirRecords.length;T++)this.push({data:this.dirRecords[T],meta:{percent:100}});var L=this.bytesWritten-O,Y=function(R,se,ne,J,W){var K=g.transformTo("string",W(J));return _.CENTRAL_DIRECTORY_END+"\0\0\0\0"+V(R,2)+V(R,2)+V(se,4)+V(ne,4)+V(K.length,2)+K}(this.dirRecords.length,L,O,this.zipComment,this.encodeFileName);this.push({data:Y,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(O){this._sources.push(O);var T=this;return O.on("data",function(L){T.processChunk(L)}),O.on("end",function(){T.closedSource(T.previous.streamInfo),T._sources.length?T.prepareNextSource():T.end()}),O.on("error",function(L){T.error(L)}),this},M.prototype.resume=function(){return!!F.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(O){var T=this._sources;if(!F.prototype.error.call(this,O))return!1;for(var L=0;L<T.length;L++)try{T[L].error(O)}catch(Y){}return!0},M.prototype.lock=function(){F.prototype.lock.call(this);for(var O=this._sources,T=0;T<O.length;T++)O[T].lock()},Ne.exports=M},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(P,Ne,te){"use strict";var V=P("../compressions"),S=P("./ZipFileWorker");te.generateWorker=function(g,F,v){var $=new S(F.streamFiles,v,F.platform,F.encodeFileName),_=0;try{g.forEach(function(M,O){_++;var T=function(se,ne){var J=se||ne,W=V[J];if(!W)throw new Error(J+" is not a valid compression method !");return W}(O.options.compression,F.compression),L=O.options.compressionOptions||F.compressionOptions||{},Y=O.dir,R=O.date;O._compressWorker(T,L).withStreamInfo("file",{name:M,dir:Y,date:R,comment:O.comment||"",unixPermissions:O.unixPermissions,dosPermissions:O.dosPermissions}).pipe($)}),$.entriesCount=_}catch(M){$.error(M)}return $}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(P,Ne,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"),Ne.exports=V},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(P,Ne,te){"use strict";var V=P("./utils"),S=P("./external"),g=P("./utf8"),F=P("./zipEntries"),v=P("./stream/Crc32Probe"),$=P("./nodejsUtils");function _(M){return new S.Promise(function(O,T){var L=M.decompressed.getContentWorker().pipe(new v);L.on("error",function(Y){T(Y)}).on("end",function(){L.streamInfo.crc32!==M.decompressed.crc32?T(new Error("Corrupted zip : CRC32 mismatch")):O()}).resume()})}Ne.exports=function(M,O){var T=this;return O=V.extend(O||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:g.utf8decode}),$.isNode&&$.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,O.optimizedBinaryString,O.base64).then(function(L){var Y=new F(O);return Y.load(L),Y}).then(function(L){var Y=[S.Promise.resolve(L)],R=L.files;if(O.checkCRC32)for(var se=0;se<R.length;se++)Y.push(_(R[se]));return S.Promise.all(Y)}).then(function(L){for(var Y=L.shift(),R=Y.files,se=0;se<R.length;se++){var ne=R[se],J=ne.fileNameStr,W=V.resolve(ne.fileNameStr);T.file(W,ne.decompressed,{binary:!0,optimizedBinaryString:!0,date:ne.date,dir:ne.dir,comment:ne.fileCommentStr.length?ne.fileCommentStr:null,unixPermissions:ne.unixPermissions,dosPermissions:ne.dosPermissions,createFolders:O.createFolders}),ne.dir||(T.file(W).unsafeOriginalName=J)}return Y.zipComment.length&&(T.comment=Y.zipComment),T})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(P,Ne,te){"use strict";var V=P("../utils"),S=P("../stream/GenericWorker");function g(F,v){S.call(this,"Nodejs stream input adapter for "+F),this._upstreamEnded=!1,this._bindStream(v)}V.inherits(g,S),g.prototype._bindStream=function(F){var v=this;(this._stream=F).pause(),F.on("data",function($){v.push({data:$,meta:{percent:0}})}).on("error",function($){v.isPaused?this.generatedError=$:v.error($)}).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)},Ne.exports=g},{"../stream/GenericWorker":28,"../utils":32}],13:[function(P,Ne,te){"use strict";var V=P("readable-stream").Readable;function S(g,F,v){V.call(this,F),this._helper=g;var $=this;g.on("data",function(_,M){$.push(_)||$._helper.pause(),v&&v(M)}).on("error",function(_){$.emit("error",_)}).on("end",function(){$.push(null)})}P("../utils").inherits(S,V),S.prototype._read=function(){this._helper.resume()},Ne.exports=S},{"../utils":32,"readable-stream":16}],14:[function(P,Ne,te){"use strict";Ne.exports={isNode:typeof pe!="undefined",newBufferFrom:function(V,S){if(pe.from&&pe.from!==Uint8Array.from)return pe.from(V,S);if(typeof V=="number")throw new Error('The "data" argument must not be a number');return new pe(V,S)},allocBuffer:function(V){if(pe.alloc)return pe.alloc(V);var S=new pe(V);return S.fill(0),S},isBuffer:function(V){return pe.isBuffer(V)},isStream:function(V){return V&&typeof V.on=="function"&&typeof V.pause=="function"&&typeof V.resume=="function"}}},{}],15:[function(P,Ne,te){"use strict";function V(W,K,le){var me,Oe=g.getTypeOf(K),Be=g.extend(le||{},$);Be.date=Be.date||new Date,Be.compression!==null&&(Be.compression=Be.compression.toUpperCase()),typeof Be.unixPermissions=="string"&&(Be.unixPermissions=parseInt(Be.unixPermissions,8)),Be.unixPermissions&&16384&Be.unixPermissions&&(Be.dir=!0),Be.dosPermissions&&16&Be.dosPermissions&&(Be.dir=!0),Be.dir&&(W=R(W)),Be.createFolders&&(me=Y(W))&&se.call(this,me,!0);var Ue=Oe==="string"&&Be.binary===!1&&Be.base64===!1;le&&le.binary!==void 0||(Be.binary=!Ue),(K instanceof _&&K.uncompressedSize===0||Be.dir||!K||K.length===0)&&(Be.base64=!1,Be.binary=!0,K="",Be.compression="STORE",Oe="string");var ee=null;ee=K instanceof _||K instanceof F?K:T.isNode&&T.isStream(K)?new L(W,K):g.prepareContent(W,K,Be.binary,Be.optimizedBinaryString,Be.base64);var fe=new M(W,ee,Be);this.files[W]=fe}var S=P("./utf8"),g=P("./utils"),F=P("./stream/GenericWorker"),v=P("./stream/StreamHelper"),$=P("./defaults"),_=P("./compressedObject"),M=P("./zipObject"),O=P("./generate"),T=P("./nodejsUtils"),L=P("./nodejs/NodejsStreamInputAdapter"),Y=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},se=function(W,K){return K=K!==void 0?K:$.createFolders,W=R(W),this.files[W]||V.call(this,W,null,{dir:!0,createFolders:K}),this.files[W]};function ne(W){return Object.prototype.toString.call(W)==="[object RegExp]"}var J={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(W){var K,le,me;for(K in this.files)me=this.files[K],(le=K.slice(this.root.length,K.length))&&K.slice(0,this.root.length)===this.root&&W(le,me)},filter:function(W){var K=[];return this.forEach(function(le,me){W(le,me)&&K.push(me)}),K},file:function(W,K,le){if(arguments.length!==1)return W=this.root+W,V.call(this,W,K,le),this;if(ne(W)){var me=W;return this.filter(function(Be,Ue){return!Ue.dir&&me.test(Be)})}var Oe=this.files[this.root+W];return Oe&&!Oe.dir?Oe:null},folder:function(W){if(!W)return this;if(ne(W))return this.filter(function(Oe,Be){return Be.dir&&W.test(Oe)});var K=this.root+W,le=se.call(this,K),me=this.clone();return me.root=le.name,me},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 le=this.filter(function(Oe,Be){return Be.name.slice(0,W.length)===W}),me=0;me<le.length;me++)delete this.files[le[me].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,le={};try{if((le=g.extend(W||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:S.utf8encode})).type=le.type.toLowerCase(),le.compression=le.compression.toUpperCase(),le.type==="binarystring"&&(le.type="string"),!le.type)throw new Error("No output type specified.");g.checkSupport(le.type),le.platform!=="darwin"&&le.platform!=="freebsd"&&le.platform!=="linux"&&le.platform!=="sunos"||(le.platform="UNIX"),le.platform==="win32"&&(le.platform="DOS");var me=le.comment||this.comment||"";K=O.generateWorker(this,le,me)}catch(Oe){(K=new F("error")).error(Oe)}return new v(K,le.type||"string",le.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)}};Ne.exports=J},{"./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,Ne,te){"use strict";Ne.exports=P("stream")},{stream:void 0}],17:[function(P,Ne,te){"use strict";var V=P("./DataReader");function S(g){V.call(this,g);for(var F=0;F<this.data.length;F++)g[F]=255&g[F]}P("../utils").inherits(S,V),S.prototype.byteAt=function(g){return this.data[this.zero+g]},S.prototype.lastIndexOfSignature=function(g){for(var F=g.charCodeAt(0),v=g.charCodeAt(1),$=g.charCodeAt(2),_=g.charCodeAt(3),M=this.length-4;0<=M;--M)if(this.data[M]===F&&this.data[M+1]===v&&this.data[M+2]===$&&this.data[M+3]===_)return M-this.zero;return-1},S.prototype.readAndCheckSignature=function(g){var F=g.charCodeAt(0),v=g.charCodeAt(1),$=g.charCodeAt(2),_=g.charCodeAt(3),M=this.readData(4);return F===M[0]&&v===M[1]&&$===M[2]&&_===M[3]},S.prototype.readData=function(g){if(this.checkOffset(g),g===0)return[];var F=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,F},Ne.exports=S},{"../utils":32,"./DataReader":18}],18:[function(P,Ne,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 F,v=0;for(this.checkOffset(g),F=this.index+g-1;F>=this.index;F--)v=(v<<8)+this.byteAt(F);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))}},Ne.exports=S},{"../utils":32}],19:[function(P,Ne,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 F=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,F},Ne.exports=S},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(P,Ne,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 F=this.data.slice(this.zero+this.index,this.zero+this.index+g);return this.index+=g,F},Ne.exports=S},{"../utils":32,"./DataReader":18}],21:[function(P,Ne,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 F=this.data.subarray(this.zero+this.index,this.zero+this.index+g);return this.index+=g,F},Ne.exports=S},{"../utils":32,"./ArrayReader":17}],22:[function(P,Ne,te){"use strict";var V=P("../utils"),S=P("../support"),g=P("./ArrayReader"),F=P("./StringReader"),v=P("./NodeBufferReader"),$=P("./Uint8ArrayReader");Ne.exports=function(_){var M=V.getTypeOf(_);return V.checkSupport(M),M!=="string"||S.uint8array?M==="nodebuffer"?new v(_):S.uint8array?new $(V.transformTo("uint8array",_)):new g(V.transformTo("array",_)):new F(_)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(P,Ne,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,Ne,te){"use strict";var V=P("./GenericWorker"),S=P("../utils");function g(F){V.call(this,"ConvertWorker to "+F),this.destType=F}S.inherits(g,V),g.prototype.processChunk=function(F){this.push({data:S.transformTo(this.destType,F.data),meta:F.meta})},Ne.exports=g},{"../utils":32,"./GenericWorker":28}],25:[function(P,Ne,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(F){this.streamInfo.crc32=S(F.data,this.streamInfo.crc32||0),this.push(F)},Ne.exports=g},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(P,Ne,te){"use strict";var V=P("../utils"),S=P("./GenericWorker");function g(F){S.call(this,"DataLengthProbe for "+F),this.propName=F,this.withStreamInfo(F,0)}V.inherits(g,S),g.prototype.processChunk=function(F){if(F){var v=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=v+F.data.length}S.prototype.processChunk.call(this,F)},Ne.exports=g},{"../utils":32,"./GenericWorker":28}],27:[function(P,Ne,te){"use strict";var V=P("../utils"),S=P("./GenericWorker");function g(F){S.call(this,"DataWorker");var v=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,F.then(function($){v.dataIsReady=!0,v.data=$,v.max=$&&$.length||0,v.type=V.getTypeOf($),v.isPaused||v._tickAndRepeat()},function($){v.error($)})}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 F=null,v=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":F=this.data.substring(this.index,v);break;case"uint8array":F=this.data.subarray(this.index,v);break;case"array":case"nodebuffer":F=this.data.slice(this.index,v)}return this.index=v,this.push({data:F,meta:{percent:this.max?this.index/this.max*100:0}})},Ne.exports=g},{"../utils":32,"./GenericWorker":28}],28:[function(P,Ne,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 F=0;F<this._listeners[S].length;F++)this._listeners[S][F].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(F){g.processChunk(F)}),S.on("end",function(){g.end()}),S.on("error",function(F){g.error(F)}),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}},Ne.exports=V},{}],29:[function(P,Ne,te){"use strict";var V=P("../utils"),S=P("./ConvertWorker"),g=P("./GenericWorker"),F=P("../base64"),v=P("../support"),$=P("../external"),_=null;if(v.nodestream)try{_=P("../nodejs/NodejsStreamOutputAdapter")}catch(T){}function M(T,L){return new $.Promise(function(Y,R){var se=[],ne=T._internalType,J=T._outputType,W=T._mimeType;T.on("data",function(K,le){se.push(K),L&&L(le)}).on("error",function(K){se=[],R(K)}).on("end",function(){try{var K=function(le,me,Oe){switch(le){case"blob":return V.newBlob(V.transformTo("arraybuffer",me),Oe);case"base64":return F.encode(me);default:return V.transformTo(le,me)}}(J,function(le,me){var Oe,Be=0,Ue=null,ee=0;for(Oe=0;Oe<me.length;Oe++)ee+=me[Oe].length;switch(le){case"string":return me.join("");case"array":return Array.prototype.concat.apply([],me);case"uint8array":for(Ue=new Uint8Array(ee),Oe=0;Oe<me.length;Oe++)Ue.set(me[Oe],Be),Be+=me[Oe].length;return Ue;case"nodebuffer":return pe.concat(me);default:throw new Error("concat : unsupported type '"+le+"'")}}(ne,se),W);Y(K)}catch(le){R(le)}se=[]}).resume()})}function O(T,L,Y){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=Y,V.checkSupport(R),this._worker=T.pipe(new S(R)),T.lock()}catch(se){this._worker=new g("error"),this._worker.error(se)}}O.prototype={accumulate:function(T){return M(this,T)},on:function(T,L){var Y=this;return T==="data"?this._worker.on(T,function(R){L.call(Y,R.data,R.meta)}):this._worker.on(T,function(){V.delay(L,arguments,Y)}),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 _(this,{objectMode:this._outputType!=="nodebuffer"},T)}},Ne.exports=O},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(P,Ne,te){"use strict";if(te.base64=!0,te.array=!0,te.string=!0,te.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",te.nodebuffer=typeof pe!="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(F){te.blob=!1}}}try{te.nodestream=!!P("readable-stream").Readable}catch(g){te.nodestream=!1}},{"readable-stream":16}],31:[function(P,Ne,te){"use strict";for(var V=P("./utils"),S=P("./support"),g=P("./nodejsUtils"),F=P("./stream/GenericWorker"),v=new Array(256),$=0;$<256;$++)v[$]=252<=$?6:248<=$?5:240<=$?4:224<=$?3:192<=$?2:1;v[254]=v[254]=1;function _(){F.call(this,"utf-8 decode"),this.leftOver=null}function M(){F.call(this,"utf-8 encode")}te.utf8encode=function(O){return S.nodebuffer?g.newBufferFrom(O,"utf-8"):function(T){var L,Y,R,se,ne,J=T.length,W=0;for(se=0;se<J;se++)(64512&(Y=T.charCodeAt(se)))==55296&&se+1<J&&(64512&(R=T.charCodeAt(se+1)))==56320&&(Y=65536+(Y-55296<<10)+(R-56320),se++),W+=Y<128?1:Y<2048?2:Y<65536?3:4;for(L=S.uint8array?new Uint8Array(W):new Array(W),se=ne=0;ne<W;se++)(64512&(Y=T.charCodeAt(se)))==55296&&se+1<J&&(64512&(R=T.charCodeAt(se+1)))==56320&&(Y=65536+(Y-55296<<10)+(R-56320),se++),Y<128?L[ne++]=Y:(Y<2048?L[ne++]=192|Y>>>6:(Y<65536?L[ne++]=224|Y>>>12:(L[ne++]=240|Y>>>18,L[ne++]=128|Y>>>12&63),L[ne++]=128|Y>>>6&63),L[ne++]=128|63&Y);return L}(O)},te.utf8decode=function(O){return S.nodebuffer?V.transformTo("nodebuffer",O).toString("utf-8"):function(T){var L,Y,R,se,ne=T.length,J=new Array(2*ne);for(L=Y=0;L<ne;)if((R=T[L++])<128)J[Y++]=R;else if(4<(se=v[R]))J[Y++]=65533,L+=se-1;else{for(R&=se===2?31:se===3?15:7;1<se&&L<ne;)R=R<<6|63&T[L++],se--;1<se?J[Y++]=65533:R<65536?J[Y++]=R:(R-=65536,J[Y++]=55296|R>>10&1023,J[Y++]=56320|1023&R)}return J.length!==Y&&(J.subarray?J=J.subarray(0,Y):J.length=Y),V.applyFromCharCode(J)}(O=V.transformTo(S.uint8array?"uint8array":"array",O))},V.inherits(_,F),_.prototype.processChunk=function(O){var T=V.transformTo(S.uint8array?"uint8array":"array",O.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 Y=function(se,ne){var J;for((ne=ne||se.length)>se.length&&(ne=se.length),J=ne-1;0<=J&&(192&se[J])==128;)J--;return J<0||J===0?ne:J+v[se[J]]>ne?J:ne}(T),R=T;Y!==T.length&&(S.uint8array?(R=T.subarray(0,Y),this.leftOver=T.subarray(Y,T.length)):(R=T.slice(0,Y),this.leftOver=T.slice(Y,T.length))),this.push({data:te.utf8decode(R),meta:O.meta})},_.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:te.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},te.Utf8DecodeWorker=_,V.inherits(M,F),M.prototype.processChunk=function(O){this.push({data:te.utf8encode(O.data),meta:O.meta})},te.Utf8EncodeWorker=M},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(P,Ne,te){"use strict";var V=P("./support"),S=P("./base64"),g=P("./nodejsUtils"),F=P("./external");function v(L){return L}function $(L,Y){for(var R=0;R<L.length;++R)Y[R]=255&L.charCodeAt(R);return Y}P("setimmediate"),te.newBlob=function(L,Y){te.checkSupport("blob");try{return new Blob([L],{type:Y})}catch(se){try{var R=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return R.append(L),R.getBlob(Y)}catch(ne){throw new Error("Bug : can't construct the Blob.")}}};var _={stringifyByChunk:function(L,Y,R){var se=[],ne=0,J=L.length;if(J<=R)return String.fromCharCode.apply(null,L);for(;ne<J;)Y==="array"||Y==="nodebuffer"?se.push(String.fromCharCode.apply(null,L.slice(ne,Math.min(ne+R,J)))):se.push(String.fromCharCode.apply(null,L.subarray(ne,Math.min(ne+R,J)))),ne+=R;return se.join("")},stringifyByChar:function(L){for(var Y="",R=0;R<L.length;R++)Y+=String.fromCharCode(L[R]);return Y},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 Y=65536,R=te.getTypeOf(L),se=!0;if(R==="uint8array"?se=_.applyCanBeUsed.uint8array:R==="nodebuffer"&&(se=_.applyCanBeUsed.nodebuffer),se)for(;1<Y;)try{return _.stringifyByChunk(L,R,Y)}catch(ne){Y=Math.floor(Y/2)}return _.stringifyByChar(L)}function O(L,Y){for(var R=0;R<L.length;R++)Y[R]=L[R];return Y}te.applyFromCharCode=M;var T={};T.string={string:v,array:function(L){return $(L,new Array(L.length))},arraybuffer:function(L){return T.string.uint8array(L).buffer},uint8array:function(L){return $(L,new Uint8Array(L.length))},nodebuffer:function(L){return $(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 O(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 O(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 O(L,new Array(L.length))},arraybuffer:function(L){return T.nodebuffer.uint8array(L).buffer},uint8array:function(L){return O(L,new Uint8Array(L.length))},nodebuffer:v},te.transformTo=function(L,Y){if(Y=Y||"",!L)return Y;te.checkSupport(L);var R=te.getTypeOf(Y);return T[R][L](Y)},te.resolve=function(L){for(var Y=L.split("/"),R=[],se=0;se<Y.length;se++){var ne=Y[se];ne==="."||ne===""&&se!==0&&se!==Y.length-1||(ne===".."?R.pop():R.push(ne))}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 Y,R,se="";for(R=0;R<(L||"").length;R++)se+="\\x"+((Y=L.charCodeAt(R))<16?"0":"")+Y.toString(16).toUpperCase();return se},te.delay=function(L,Y,R){setImmediate(function(){L.apply(R||null,Y||[])})},te.inherits=function(L,Y){function R(){}R.prototype=Y.prototype,L.prototype=new R},te.extend=function(){var L,Y,R={};for(L=0;L<arguments.length;L++)for(Y in arguments[L])Object.prototype.hasOwnProperty.call(arguments[L],Y)&&R[Y]===void 0&&(R[Y]=arguments[L][Y]);return R},te.prepareContent=function(L,Y,R,se,ne){return F.Promise.resolve(Y).then(function(J){return V.blob&&(J instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(J))!==-1)&&typeof FileReader!="undefined"?new F.Promise(function(W,K){var le=new FileReader;le.onload=function(me){W(me.target.result)},le.onerror=function(me){K(me.target.error)},le.readAsArrayBuffer(J)}):J}).then(function(J){var W=te.getTypeOf(J);return W?(W==="arraybuffer"?J=te.transformTo("uint8array",J):W==="string"&&(ne?J=S.decode(J):R&&se!==!0&&(J=function(K){return $(K,V.uint8array?new Uint8Array(K.length):new Array(K.length))}(J))),J):F.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,Ne,te){"use strict";var V=P("./reader/readerFor"),S=P("./utils"),g=P("./signature"),F=P("./zipEntry"),v=P("./support");function $(_){this.files=[],this.loadOptions=_}$.prototype={checkSignature:function(_){if(!this.reader.readAndCheckSignature(_)){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(_)+")")}},isSignature:function(_,M){var O=this.reader.index;this.reader.setIndex(_);var T=this.reader.readString(4)===M;return this.reader.setIndex(O),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 _=this.reader.readData(this.zipCommentLength),M=v.uint8array?"uint8array":"array",O=S.transformTo(M,_);this.zipComment=this.loadOptions.decodeFileName(O)},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 _,M,O,T=this.zip64EndOfCentralSize-44;0<T;)_=this.reader.readInt(2),M=this.reader.readInt(4),O=this.reader.readData(M),this.zip64ExtensibleData[_]={id:_,length:M,value:O}},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 _,M;for(_=0;_<this.files.length;_++)M=this.files[_],this.reader.setIndex(M.localHeaderOffset),this.checkSignature(g.LOCAL_FILE_HEADER),M.readLocalPart(this.reader),M.handleUTF8(),M.processAttributes()},readCentralDir:function(){var _;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(g.CENTRAL_FILE_HEADER);)(_=new F({zip64:this.zip64},this.loadOptions)).readCentralPart(this.reader),this.files.push(_);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 _=this.reader.lastIndexOfSignature(g.CENTRAL_DIRECTORY_END);if(_<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(_);var M=_;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,(_=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(_),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 O=this.centralDirOffset+this.centralDirSize;this.zip64&&(O+=20,O+=12+this.zip64EndOfCentralSize);var T=M-O;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(_){this.reader=V(_)},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Ne.exports=$},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(P,Ne,te){"use strict";var V=P("./reader/readerFor"),S=P("./utils"),g=P("./compressedObject"),F=P("./crc32"),v=P("./utf8"),$=P("./compressions"),_=P("./support");function M(O,T){this.options=O,this.loadOptions=T}M.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(O){var T,L;if(O.skip(22),this.fileNameLength=O.readInt(2),L=O.readInt(2),this.fileName=O.readData(this.fileNameLength),O.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(Y){for(var R in $)if(Object.prototype.hasOwnProperty.call($,R)&&$[R].magic===Y)return $[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,O.readData(this.compressedSize))},readCentralPart:function(O){this.versionMadeBy=O.readInt(2),O.skip(2),this.bitFlag=O.readInt(2),this.compressionMethod=O.readString(2),this.date=O.readDate(),this.crc32=O.readInt(4),this.compressedSize=O.readInt(4),this.uncompressedSize=O.readInt(4);var T=O.readInt(2);if(this.extraFieldsLength=O.readInt(2),this.fileCommentLength=O.readInt(2),this.diskNumberStart=O.readInt(2),this.internalFileAttributes=O.readInt(2),this.externalFileAttributes=O.readInt(4),this.localHeaderOffset=O.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");O.skip(T),this.readExtraFields(O),this.parseZIP64ExtraField(O),this.fileComment=O.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var O=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),O==0&&(this.dosPermissions=63&this.externalFileAttributes),O==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var O=V(this.extraFields[1].value);this.uncompressedSize===S.MAX_VALUE_32BITS&&(this.uncompressedSize=O.readInt(8)),this.compressedSize===S.MAX_VALUE_32BITS&&(this.compressedSize=O.readInt(8)),this.localHeaderOffset===S.MAX_VALUE_32BITS&&(this.localHeaderOffset=O.readInt(8)),this.diskNumberStart===S.MAX_VALUE_32BITS&&(this.diskNumberStart=O.readInt(4))}},readExtraFields:function(O){var T,L,Y,R=O.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});O.index+4<R;)T=O.readInt(2),L=O.readInt(2),Y=O.readData(L),this.extraFields[T]={id:T,length:L,value:Y};O.setIndex(R)},handleUTF8:function(){var O=_.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(O,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(L)}var Y=this.findExtraFieldUnicodeComment();if(Y!==null)this.fileCommentStr=Y;else{var R=S.transformTo(O,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(R)}}},findExtraFieldUnicodePath:function(){var O=this.extraFields[28789];if(O){var T=V(O.value);return T.readInt(1)!==1||F(this.fileName)!==T.readInt(4)?null:v.utf8decode(T.readData(O.length-5))}return null},findExtraFieldUnicodeComment:function(){var O=this.extraFields[25461];if(O){var T=V(O.value);return T.readInt(1)!==1||F(this.fileComment)!==T.readInt(4)?null:v.utf8decode(T.readData(O.length-5))}return null}},Ne.exports=M},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(P,Ne,te){"use strict";function V(T,L,Y){this.name=T,this.dir=Y.dir,this.date=Y.date,this.comment=Y.comment,this.unixPermissions=Y.unixPermissions,this.dosPermissions=Y.dosPermissions,this._data=L,this._dataBinary=Y.binary,this.options={compression:Y.compression,compressionOptions:Y.compressionOptions}}var S=P("./stream/StreamHelper"),g=P("./stream/DataWorker"),F=P("./utf8"),v=P("./compressedObject"),$=P("./stream/GenericWorker");V.prototype={internalStream:function(T){var L=null,Y="string";try{if(!T)throw new Error("No output type specified.");var R=(Y=T.toLowerCase())==="string"||Y==="text";Y!=="binarystring"&&Y!=="text"||(Y="string"),L=this._decompressWorker();var se=!this._dataBinary;se&&!R&&(L=L.pipe(new F.Utf8EncodeWorker)),!se&&R&&(L=L.pipe(new F.Utf8DecodeWorker))}catch(ne){(L=new $("error")).error(ne)}return new S(L,Y,"")},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 Y=this._decompressWorker();return this._dataBinary||(Y=Y.pipe(new F.Utf8EncodeWorker)),v.createWorkerFrom(Y,T,L)},_decompressWorker:function(){return this._data instanceof v?this._data.getContentWorker():this._data instanceof $?this._data:new g(this._data)}};for(var _=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],M=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},O=0;O<_.length;O++)V.prototype[_[O]]=M;Ne.exports=V},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(P,Ne,te){(function(V){"use strict";var S,g,F=V.MutationObserver||V.WebKitMutationObserver;if(F){var v=0,$=new F(T),_=V.document.createTextNode("");$.observe(_,{characterData:!0}),S=function(){_.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 O=[];function T(){var L,Y;g=!0;for(var R=O.length;R;){for(Y=O,O=[],L=-1;++L<R;)Y[L]();R=O.length}g=!1}Ne.exports=function(L){O.push(L)!==1||g||S()}}).call(this,typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(P,Ne,te){"use strict";var V=P("immediate");function S(){}var g={},F=["REJECTED"],v=["FULFILLED"],$=["PENDING"];function _(R){if(typeof R!="function")throw new TypeError("resolver must be a function");this.state=$,this.queue=[],this.outcome=void 0,R!==S&&L(this,R)}function M(R,se,ne){this.promise=R,typeof se=="function"&&(this.onFulfilled=se,this.callFulfilled=this.otherCallFulfilled),typeof ne=="function"&&(this.onRejected=ne,this.callRejected=this.otherCallRejected)}function O(R,se,ne){V(function(){var J;try{J=se(ne)}catch(W){return g.reject(R,W)}J===R?g.reject(R,new TypeError("Cannot resolve promise with itself")):g.resolve(R,J)})}function T(R){var se=R&&R.then;if(R&&(typeof R=="object"||typeof R=="function")&&typeof se=="function")return function(){se.apply(R,arguments)}}function L(R,se){var ne=!1;function J(le){ne||(ne=!0,g.reject(R,le))}function W(le){ne||(ne=!0,g.resolve(R,le))}var K=Y(function(){se(W,J)});K.status==="error"&&J(K.value)}function Y(R,se){var ne={};try{ne.value=R(se),ne.status="success"}catch(J){ne.status="error",ne.value=J}return ne}(Ne.exports=_).prototype.finally=function(R){if(typeof R!="function")return this;var se=this.constructor;return this.then(function(ne){return se.resolve(R()).then(function(){return ne})},function(ne){return se.resolve(R()).then(function(){throw ne})})},_.prototype.catch=function(R){return this.then(null,R)},_.prototype.then=function(R,se){if(typeof R!="function"&&this.state===v||typeof se!="function"&&this.state===F)return this;var ne=new this.constructor(S);return this.state!==$?O(ne,this.state===v?R:se,this.outcome):this.queue.push(new M(ne,R,se)),ne},M.prototype.callFulfilled=function(R){g.resolve(this.promise,R)},M.prototype.otherCallFulfilled=function(R){O(this.promise,this.onFulfilled,R)},M.prototype.callRejected=function(R){g.reject(this.promise,R)},M.prototype.otherCallRejected=function(R){O(this.promise,this.onRejected,R)},g.resolve=function(R,se){var ne=Y(T,se);if(ne.status==="error")return g.reject(R,ne.value);var J=ne.value;if(J)L(R,J);else{R.state=v,R.outcome=se;for(var W=-1,K=R.queue.length;++W<K;)R.queue[W].callFulfilled(se)}return R},g.reject=function(R,se){R.state=F,R.outcome=se;for(var ne=-1,J=R.queue.length;++ne<J;)R.queue[ne].callRejected(se);return R},_.resolve=function(R){return R instanceof this?R:g.resolve(new this(S),R)},_.reject=function(R){var se=new this(S);return g.reject(se,R)},_.all=function(R){var se=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ne=R.length,J=!1;if(!ne)return this.resolve([]);for(var W=new Array(ne),K=0,le=-1,me=new this(S);++le<ne;)Oe(R[le],le);return me;function Oe(Be,Ue){se.resolve(Be).then(function(ee){W[Ue]=ee,++K!==ne||J||(J=!0,g.resolve(me,W))},function(ee){J||(J=!0,g.reject(me,ee))})}},_.race=function(R){var se=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ne=R.length,J=!1;if(!ne)return this.resolve([]);for(var W=-1,K=new this(S);++W<ne;)le=R[W],se.resolve(le).then(function(me){J||(J=!0,g.resolve(K,me))},function(me){J||(J=!0,g.reject(K,me))});var le;return K}},{immediate:36}],38:[function(P,Ne,te){"use strict";var V={};(0,P("./lib/utils/common").assign)(V,P("./lib/deflate"),P("./lib/inflate"),P("./lib/zlib/constants")),Ne.exports=V},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(P,Ne,te){"use strict";var V=P("./zlib/deflate"),S=P("./utils/common"),g=P("./utils/strings"),F=P("./zlib/messages"),v=P("./zlib/zstream"),$=Object.prototype.toString,_=0,M=-1,O=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:O,to:""},R||{});var se=this.options;se.raw&&0<se.windowBits?se.windowBits=-se.windowBits:se.gzip&&0<se.windowBits&&se.windowBits<16&&(se.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new v,this.strm.avail_out=0;var ne=V.deflateInit2(this.strm,se.level,se.method,se.windowBits,se.memLevel,se.strategy);if(ne!==_)throw new Error(F[ne]);if(se.header&&V.deflateSetHeader(this.strm,se.header),se.dictionary){var J;if(J=typeof se.dictionary=="string"?g.string2buf(se.dictionary):$.call(se.dictionary)==="[object ArrayBuffer]"?new Uint8Array(se.dictionary):se.dictionary,(ne=V.deflateSetDictionary(this.strm,J))!==_)throw new Error(F[ne]);this._dict_set=!0}}function Y(R,se){var ne=new L(se);if(ne.push(R,!0),ne.err)throw ne.msg||F[ne.err];return ne.result}L.prototype.push=function(R,se){var ne,J,W=this.strm,K=this.options.chunkSize;if(this.ended)return!1;J=se===~~se?se:se===!0?4:0,typeof R=="string"?W.input=g.string2buf(R):$.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),(ne=V.deflate(W,J))!==1&&ne!==_)return this.onEnd(ne),!(this.ended=!0);W.avail_out!==0&&(W.avail_in!==0||J!==4&&J!==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)&&ne!==1);return J===4?(ne=V.deflateEnd(this.strm),this.onEnd(ne),this.ended=!0,ne===_):J!==2||(this.onEnd(_),!(W.avail_out=0))},L.prototype.onData=function(R){this.chunks.push(R)},L.prototype.onEnd=function(R){R===_&&(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=Y,te.deflateRaw=function(R,se){return(se=se||{}).raw=!0,Y(R,se)},te.gzip=function(R,se){return(se=se||{}).gzip=!0,Y(R,se)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(P,Ne,te){"use strict";var V=P("./zlib/inflate"),S=P("./utils/common"),g=P("./utils/strings"),F=P("./zlib/constants"),v=P("./zlib/messages"),$=P("./zlib/zstream"),_=P("./zlib/gzheader"),M=Object.prototype.toString;function O(L){if(!(this instanceof O))return new O(L);this.options=S.assign({chunkSize:16384,windowBits:0,to:""},L||{});var Y=this.options;Y.raw&&0<=Y.windowBits&&Y.windowBits<16&&(Y.windowBits=-Y.windowBits,Y.windowBits===0&&(Y.windowBits=-15)),!(0<=Y.windowBits&&Y.windowBits<16)||L&&L.windowBits||(Y.windowBits+=32),15<Y.windowBits&&Y.windowBits<48&&!(15&Y.windowBits)&&(Y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $,this.strm.avail_out=0;var R=V.inflateInit2(this.strm,Y.windowBits);if(R!==F.Z_OK)throw new Error(v[R]);this.header=new _,V.inflateGetHeader(this.strm,this.header)}function T(L,Y){var R=new O(Y);if(R.push(L,!0),R.err)throw R.msg||v[R.err];return R.result}O.prototype.push=function(L,Y){var R,se,ne,J,W,K,le=this.strm,me=this.options.chunkSize,Oe=this.options.dictionary,Be=!1;if(this.ended)return!1;se=Y===~~Y?Y:Y===!0?F.Z_FINISH:F.Z_NO_FLUSH,typeof L=="string"?le.input=g.binstring2buf(L):M.call(L)==="[object ArrayBuffer]"?le.input=new Uint8Array(L):le.input=L,le.next_in=0,le.avail_in=le.input.length;do{if(le.avail_out===0&&(le.output=new S.Buf8(me),le.next_out=0,le.avail_out=me),(R=V.inflate(le,F.Z_NO_FLUSH))===F.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===F.Z_BUF_ERROR&&Be===!0&&(R=F.Z_OK,Be=!1),R!==F.Z_STREAM_END&&R!==F.Z_OK)return this.onEnd(R),!(this.ended=!0);le.next_out&&(le.avail_out!==0&&R!==F.Z_STREAM_END&&(le.avail_in!==0||se!==F.Z_FINISH&&se!==F.Z_SYNC_FLUSH)||(this.options.to==="string"?(ne=g.utf8border(le.output,le.next_out),J=le.next_out-ne,W=g.buf2string(le.output,ne),le.next_out=J,le.avail_out=me-J,J&&S.arraySet(le.output,le.output,ne,J,0),this.onData(W)):this.onData(S.shrinkBuf(le.output,le.next_out)))),le.avail_in===0&&le.avail_out===0&&(Be=!0)}while((0<le.avail_in||le.avail_out===0)&&R!==F.Z_STREAM_END);return R===F.Z_STREAM_END&&(se=F.Z_FINISH),se===F.Z_FINISH?(R=V.inflateEnd(this.strm),this.onEnd(R),this.ended=!0,R===F.Z_OK):se!==F.Z_SYNC_FLUSH||(this.onEnd(F.Z_OK),!(le.avail_out=0))},O.prototype.onData=function(L){this.chunks.push(L)},O.prototype.onEnd=function(L){L===F.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=O,te.inflate=T,te.inflateRaw=function(L,Y){return(Y=Y||{}).raw=!0,T(L,Y)},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,Ne,te){"use strict";var V=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";te.assign=function(F){for(var v=Array.prototype.slice.call(arguments,1);v.length;){var $=v.shift();if($){if(typeof $!="object")throw new TypeError($+"must be non-object");for(var _ in $)$.hasOwnProperty(_)&&(F[_]=$[_])}}return F},te.shrinkBuf=function(F,v){return F.length===v?F:F.subarray?F.subarray(0,v):(F.length=v,F)};var S={arraySet:function(F,v,$,_,M){if(v.subarray&&F.subarray)F.set(v.subarray($,$+_),M);else for(var O=0;O<_;O++)F[M+O]=v[$+O]},flattenChunks:function(F){var v,$,_,M,O,T;for(v=_=0,$=F.length;v<$;v++)_+=F[v].length;for(T=new Uint8Array(_),v=M=0,$=F.length;v<$;v++)O=F[v],T.set(O,M),M+=O.length;return T}},g={arraySet:function(F,v,$,_,M){for(var O=0;O<_;O++)F[M+O]=v[$+O]},flattenChunks:function(F){return[].concat.apply([],F)}};te.setTyped=function(F){F?(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,Ne,te){"use strict";var V=P("./common"),S=!0,g=!0;try{String.fromCharCode.apply(null,[0])}catch(_){S=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(_){g=!1}for(var F=new V.Buf8(256),v=0;v<256;v++)F[v]=252<=v?6:248<=v?5:240<=v?4:224<=v?3:192<=v?2:1;function $(_,M){if(M<65537&&(_.subarray&&g||!_.subarray&&S))return String.fromCharCode.apply(null,V.shrinkBuf(_,M));for(var O="",T=0;T<M;T++)O+=String.fromCharCode(_[T]);return O}F[254]=F[254]=1,te.string2buf=function(_){var M,O,T,L,Y,R=_.length,se=0;for(L=0;L<R;L++)(64512&(O=_.charCodeAt(L)))==55296&&L+1<R&&(64512&(T=_.charCodeAt(L+1)))==56320&&(O=65536+(O-55296<<10)+(T-56320),L++),se+=O<128?1:O<2048?2:O<65536?3:4;for(M=new V.Buf8(se),L=Y=0;Y<se;L++)(64512&(O=_.charCodeAt(L)))==55296&&L+1<R&&(64512&(T=_.charCodeAt(L+1)))==56320&&(O=65536+(O-55296<<10)+(T-56320),L++),O<128?M[Y++]=O:(O<2048?M[Y++]=192|O>>>6:(O<65536?M[Y++]=224|O>>>12:(M[Y++]=240|O>>>18,M[Y++]=128|O>>>12&63),M[Y++]=128|O>>>6&63),M[Y++]=128|63&O);return M},te.buf2binstring=function(_){return $(_,_.length)},te.binstring2buf=function(_){for(var M=new V.Buf8(_.length),O=0,T=M.length;O<T;O++)M[O]=_.charCodeAt(O);return M},te.buf2string=function(_,M){var O,T,L,Y,R=M||_.length,se=new Array(2*R);for(O=T=0;O<R;)if((L=_[O++])<128)se[T++]=L;else if(4<(Y=F[L]))se[T++]=65533,O+=Y-1;else{for(L&=Y===2?31:Y===3?15:7;1<Y&&O<R;)L=L<<6|63&_[O++],Y--;1<Y?se[T++]=65533:L<65536?se[T++]=L:(L-=65536,se[T++]=55296|L>>10&1023,se[T++]=56320|1023&L)}return $(se,T)},te.utf8border=function(_,M){var O;for((M=M||_.length)>_.length&&(M=_.length),O=M-1;0<=O&&(192&_[O])==128;)O--;return O<0||O===0?M:O+F[_[O]]>M?O:M}},{"./common":41}],43:[function(P,Ne,te){"use strict";Ne.exports=function(V,S,g,F){for(var v=65535&V|0,$=V>>>16&65535|0,_=0;g!==0;){for(g-=_=2e3<g?2e3:g;$=$+(v=v+S[F++]|0)|0,--_;);v%=65521,$%=65521}return v|$<<16|0}},{}],44:[function(P,Ne,te){"use strict";Ne.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,Ne,te){"use strict";var V=function(){for(var S,g=[],F=0;F<256;F++){S=F;for(var v=0;v<8;v++)S=1&S?3988292384^S>>>1:S>>>1;g[F]=S}return g}();Ne.exports=function(S,g,F,v){var $=V,_=v+F;S^=-1;for(var M=v;M<_;M++)S=S>>>8^$[255&(S^g[M])];return-1^S}},{}],46:[function(P,Ne,te){"use strict";var V,S=P("../utils/common"),g=P("./trees"),F=P("./adler32"),v=P("./crc32"),$=P("./messages"),_=0,M=4,O=0,T=-2,L=-1,Y=4,R=2,se=8,ne=9,J=286,W=30,K=19,le=2*J+1,me=15,Oe=3,Be=258,Ue=Be+Oe+1,ee=42,fe=113,D=1,Ye=2,Le=3,Ce=4;function Te(G,dt){return G.msg=$[dt],dt}function be(G){return(G<<1)-(4<G?9:0)}function ke(G){for(var dt=G.length;0<=--dt;)G[dt]=0}function he(G){var dt=G.state,I=dt.pending;I>G.avail_out&&(I=G.avail_out),I!==0&&(S.arraySet(G.output,dt.pending_buf,dt.pending_out,I,G.next_out),G.next_out+=I,dt.pending_out+=I,G.total_out+=I,G.avail_out-=I,dt.pending-=I,dt.pending===0&&(dt.pending_out=0))}function Ee(G,dt){g._tr_flush_block(G,0<=G.block_start?G.block_start:-1,G.strstart-G.block_start,dt),G.block_start=G.strstart,he(G.strm)}function Xe(G,dt){G.pending_buf[G.pending++]=dt}function et(G,dt){G.pending_buf[G.pending++]=dt>>>8&255,G.pending_buf[G.pending++]=255&dt}function ze(G,dt){var I,m,u=G.max_chain_length,C=G.strstart,q=G.prev_length,Se=G.nice_match,H=G.strstart>G.w_size-Ue?G.strstart-(G.w_size-Ue):0,ie=G.window,Qe=G.w_mask,we=G.prev,ye=G.strstart+Be,je=ie[C+q-1],xt=ie[C+q];G.prev_length>=G.good_match&&(u>>=2),Se>G.lookahead&&(Se=G.lookahead);do if(ie[(I=dt)+q]===xt&&ie[I+q-1]===je&&ie[I]===ie[C]&&ie[++I]===ie[C+1]){C+=2,I++;do;while(ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&ie[++C]===ie[++I]&&C<ye);if(m=Be-(ye-C),C=ye-Be,q<m){if(G.match_start=dt,Se<=(q=m))break;je=ie[C+q-1],xt=ie[C+q]}}while((dt=we[dt&Qe])>H&&--u!=0);return q<=G.lookahead?q:G.lookahead}function qe(G){var dt,I,m,u,C,q,Se,H,ie,Qe,we=G.w_size;do{if(u=G.window_size-G.lookahead-G.strstart,G.strstart>=we+(we-Ue)){for(S.arraySet(G.window,G.window,we,we,0),G.match_start-=we,G.strstart-=we,G.block_start-=we,dt=I=G.hash_size;m=G.head[--dt],G.head[dt]=we<=m?m-we:0,--I;);for(dt=I=we;m=G.prev[--dt],G.prev[dt]=we<=m?m-we:0,--I;);u+=we}if(G.strm.avail_in===0)break;if(q=G.strm,Se=G.window,H=G.strstart+G.lookahead,ie=u,Qe=void 0,Qe=q.avail_in,ie<Qe&&(Qe=ie),I=Qe===0?0:(q.avail_in-=Qe,S.arraySet(Se,q.input,q.next_in,Qe,H),q.state.wrap===1?q.adler=F(q.adler,Se,Qe,H):q.state.wrap===2&&(q.adler=v(q.adler,Se,Qe,H)),q.next_in+=Qe,q.total_in+=Qe,Qe),G.lookahead+=I,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 Et(G,dt){for(var I,m;;){if(G.lookahead<Ue){if(qe(G),G.lookahead<Ue&&dt===_)return D;if(G.lookahead===0)break}if(I=0,G.lookahead>=Oe&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Oe-1])&G.hash_mask,I=G.prev[G.strstart&G.w_mask]=G.head[G.ins_h],G.head[G.ins_h]=G.strstart),I!==0&&G.strstart-I<=G.w_size-Ue&&(G.match_length=ze(G,I)),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,I=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,dt===M?(Ee(G,!0),G.strm.avail_out===0?Le:Ce):G.last_lit&&(Ee(G,!1),G.strm.avail_out===0)?D:Ye}function Lt(G,dt){for(var I,m,u;;){if(G.lookahead<Ue){if(qe(G),G.lookahead<Ue&&dt===_)return D;if(G.lookahead===0)break}if(I=0,G.lookahead>=Oe&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Oe-1])&G.hash_mask,I=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,I!==0&&G.prev_length<G.max_lazy_match&&G.strstart-I<=G.w_size-Ue&&(G.match_length=ze(G,I),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(u=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<=u&&(G.ins_h=(G.ins_h<<G.hash_shift^G.window[G.strstart+Oe-1])&G.hash_mask,I=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,dt===M?(Ee(G,!0),G.strm.avail_out===0?Le:Ce):G.last_lit&&(Ee(G,!1),G.strm.avail_out===0)?D:Ye}function Ot(G,dt,I,m,u){this.good_length=G,this.max_lazy=dt,this.nice_length=I,this.max_chain=m,this.func=u}function sr(){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=se,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*le),this.dyn_dtree=new S.Buf16(2*(2*W+1)),this.bl_tree=new S.Buf16(2*(2*K+1)),ke(this.dyn_ltree),ke(this.dyn_dtree),ke(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S.Buf16(me+1),this.heap=new S.Buf16(2*J+1),ke(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S.Buf16(2*J+1),ke(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 er(G){var dt;return G&&G.state?(G.total_in=G.total_out=0,G.data_type=R,(dt=G.state).pending=0,dt.pending_out=0,dt.wrap<0&&(dt.wrap=-dt.wrap),dt.status=dt.wrap?ee:fe,G.adler=dt.wrap===2?0:1,dt.last_flush=_,g._tr_init(dt),O):Te(G,T)}function yr(G){var dt=er(G);return dt===O&&function(I){I.window_size=2*I.w_size,ke(I.head),I.max_lazy_match=V[I.level].max_lazy,I.good_match=V[I.level].good_length,I.nice_match=V[I.level].nice_length,I.max_chain_length=V[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=Oe-1,I.match_available=0,I.ins_h=0}(G.state),dt}function lr(G,dt,I,m,u,C){if(!G)return T;var q=1;if(dt===L&&(dt=6),m<0?(q=0,m=-m):15<m&&(q=2,m-=16),u<1||ne<u||I!==se||m<8||15<m||dt<0||9<dt||C<0||Y<C)return Te(G,T);m===8&&(m=9);var Se=new sr;return(G.state=Se).strm=G,Se.wrap=q,Se.gzhead=null,Se.w_bits=m,Se.w_size=1<<Se.w_bits,Se.w_mask=Se.w_size-1,Se.hash_bits=u+7,Se.hash_size=1<<Se.hash_bits,Se.hash_mask=Se.hash_size-1,Se.hash_shift=~~((Se.hash_bits+Oe-1)/Oe),Se.window=new S.Buf8(2*Se.w_size),Se.head=new S.Buf16(Se.hash_size),Se.prev=new S.Buf16(Se.w_size),Se.lit_bufsize=1<<u+6,Se.pending_buf_size=4*Se.lit_bufsize,Se.pending_buf=new S.Buf8(Se.pending_buf_size),Se.d_buf=1*Se.lit_bufsize,Se.l_buf=3*Se.lit_bufsize,Se.level=dt,Se.strategy=C,Se.method=I,yr(G)}V=[new Ot(0,0,0,0,function(G,dt){var I=65535;for(I>G.pending_buf_size-5&&(I=G.pending_buf_size-5);;){if(G.lookahead<=1){if(qe(G),G.lookahead===0&&dt===_)return D;if(G.lookahead===0)break}G.strstart+=G.lookahead,G.lookahead=0;var m=G.block_start+I;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,dt===M?(Ee(G,!0),G.strm.avail_out===0?Le:Ce):(G.strstart>G.block_start&&(Ee(G,!1),G.strm.avail_out),D)}),new Ot(4,4,8,4,Et),new Ot(4,5,16,8,Et),new Ot(4,6,32,32,Et),new Ot(4,4,16,16,Lt),new Ot(8,16,32,32,Lt),new Ot(8,16,128,128,Lt),new Ot(8,32,128,256,Lt),new Ot(32,128,258,1024,Lt),new Ot(32,258,258,4096,Lt)],te.deflateInit=function(G,dt){return lr(G,dt,se,15,8,0)},te.deflateInit2=lr,te.deflateReset=yr,te.deflateResetKeep=er,te.deflateSetHeader=function(G,dt){return G&&G.state?G.state.wrap!==2?T:(G.state.gzhead=dt,O):T},te.deflate=function(G,dt){var I,m,u,C;if(!G||!G.state||5<dt||dt<0)return G?Te(G,T):T;if(m=G.state,!G.output||!G.input&&G.avail_in!==0||m.status===666&&dt!==M)return Te(G,G.avail_out===0?-5:T);if(m.strm=G,I=m.last_flush,m.last_flush=dt,m.status===ee)if(m.wrap===2)G.adler=0,Xe(m,31),Xe(m,139),Xe(m,8),m.gzhead?(Xe(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)),Xe(m,255&m.gzhead.time),Xe(m,m.gzhead.time>>8&255),Xe(m,m.gzhead.time>>16&255),Xe(m,m.gzhead.time>>24&255),Xe(m,m.level===9?2:2<=m.strategy||m.level<2?4:0),Xe(m,255&m.gzhead.os),m.gzhead.extra&&m.gzhead.extra.length&&(Xe(m,255&m.gzhead.extra.length),Xe(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):(Xe(m,0),Xe(m,0),Xe(m,0),Xe(m,0),Xe(m,0),Xe(m,m.level===9?2:2<=m.strategy||m.level<2?4:0),Xe(m,3),m.status=fe);else{var q=se+(m.w_bits-8<<4)<<8;q|=(2<=m.strategy||m.level<2?0:m.level<6?1:m.level===6?2:3)<<6,m.strstart!==0&&(q|=32),q+=31-q%31,m.status=fe,et(m,q),m.strstart!==0&&(et(m,G.adler>>>16),et(m,65535&G.adler)),G.adler=1}if(m.status===69)if(m.gzhead.extra){for(u=m.pending;m.gzindex<(65535&m.gzhead.extra.length)&&(m.pending!==m.pending_buf_size||(m.gzhead.hcrc&&m.pending>u&&(G.adler=v(G.adler,m.pending_buf,m.pending-u,u)),he(G),u=m.pending,m.pending!==m.pending_buf_size));)Xe(m,255&m.gzhead.extra[m.gzindex]),m.gzindex++;m.gzhead.hcrc&&m.pending>u&&(G.adler=v(G.adler,m.pending_buf,m.pending-u,u)),m.gzindex===m.gzhead.extra.length&&(m.gzindex=0,m.status=73)}else m.status=73;if(m.status===73)if(m.gzhead.name){u=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>u&&(G.adler=v(G.adler,m.pending_buf,m.pending-u,u)),he(G),u=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,Xe(m,C)}while(C!==0);m.gzhead.hcrc&&m.pending>u&&(G.adler=v(G.adler,m.pending_buf,m.pending-u,u)),C===0&&(m.gzindex=0,m.status=91)}else m.status=91;if(m.status===91)if(m.gzhead.comment){u=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>u&&(G.adler=v(G.adler,m.pending_buf,m.pending-u,u)),he(G),u=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,Xe(m,C)}while(C!==0);m.gzhead.hcrc&&m.pending>u&&(G.adler=v(G.adler,m.pending_buf,m.pending-u,u)),C===0&&(m.status=103)}else m.status=103;if(m.status===103&&(m.gzhead.hcrc?(m.pending+2>m.pending_buf_size&&he(G),m.pending+2<=m.pending_buf_size&&(Xe(m,255&G.adler),Xe(m,G.adler>>8&255),G.adler=0,m.status=fe)):m.status=fe),m.pending!==0){if(he(G),G.avail_out===0)return m.last_flush=-1,O}else if(G.avail_in===0&&be(dt)<=be(I)&&dt!==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||dt!==_&&m.status!==666){var Se=m.strategy===2?function(H,ie){for(var Qe;;){if(H.lookahead===0&&(qe(H),H.lookahead===0)){if(ie===_)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?Le:Ce):H.last_lit&&(Ee(H,!1),H.strm.avail_out===0)?D:Ye}(m,dt):m.strategy===3?function(H,ie){for(var Qe,we,ye,je,xt=H.window;;){if(H.lookahead<=Be){if(qe(H),H.lookahead<=Be&&ie===_)return D;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=Oe&&0<H.strstart&&(we=xt[ye=H.strstart-1])===xt[++ye]&&we===xt[++ye]&&we===xt[++ye]){je=H.strstart+Be;do;while(we===xt[++ye]&&we===xt[++ye]&&we===xt[++ye]&&we===xt[++ye]&&we===xt[++ye]&&we===xt[++ye]&&we===xt[++ye]&&we===xt[++ye]&&ye<je);H.match_length=Be-(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?Le:Ce):H.last_lit&&(Ee(H,!1),H.strm.avail_out===0)?D:Ye}(m,dt):V[m.level].func(m,dt);if(Se!==Le&&Se!==Ce||(m.status=666),Se===D||Se===Le)return G.avail_out===0&&(m.last_flush=-1),O;if(Se===Ye&&(dt===1?g._tr_align(m):dt!==5&&(g._tr_stored_block(m,0,0,!1),dt===3&&(ke(m.head),m.lookahead===0&&(m.strstart=0,m.block_start=0,m.insert=0))),he(G),G.avail_out===0))return m.last_flush=-1,O}return dt!==M?O:m.wrap<=0?1:(m.wrap===2?(Xe(m,255&G.adler),Xe(m,G.adler>>8&255),Xe(m,G.adler>>16&255),Xe(m,G.adler>>24&255),Xe(m,255&G.total_in),Xe(m,G.total_in>>8&255),Xe(m,G.total_in>>16&255),Xe(m,G.total_in>>24&255)):(et(m,G.adler>>>16),et(m,65535&G.adler)),he(G),0<m.wrap&&(m.wrap=-m.wrap),m.pending!==0?O:1)},te.deflateEnd=function(G){var dt;return G&&G.state?(dt=G.state.status)!==ee&&dt!==69&&dt!==73&&dt!==91&&dt!==103&&dt!==fe&&dt!==666?Te(G,T):(G.state=null,dt===fe?Te(G,-3):O):T},te.deflateSetDictionary=function(G,dt){var I,m,u,C,q,Se,H,ie,Qe=dt.length;if(!G||!G.state||(C=(I=G.state).wrap)===2||C===1&&I.status!==ee||I.lookahead)return T;for(C===1&&(G.adler=F(G.adler,dt,Qe,0)),I.wrap=0,Qe>=I.w_size&&(C===0&&(ke(I.head),I.strstart=0,I.block_start=0,I.insert=0),ie=new S.Buf8(I.w_size),S.arraySet(ie,dt,Qe-I.w_size,I.w_size,0),dt=ie,Qe=I.w_size),q=G.avail_in,Se=G.next_in,H=G.input,G.avail_in=Qe,G.next_in=0,G.input=dt,qe(I);I.lookahead>=Oe;){for(m=I.strstart,u=I.lookahead-(Oe-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[m+Oe-1])&I.hash_mask,I.prev[m&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=m,m++,--u;);I.strstart=m,I.lookahead=Oe-1,qe(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=Oe-1,I.match_available=0,G.next_in=Se,G.input=H,G.avail_in=q,I.wrap=C,O},te.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(P,Ne,te){"use strict";Ne.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,Ne,te){"use strict";Ne.exports=function(V,S){var g,F,v,$,_,M,O,T,L,Y,R,se,ne,J,W,K,le,me,Oe,Be,Ue,ee,fe,D,Ye;g=V.state,F=V.next_in,D=V.input,v=F+(V.avail_in-5),$=V.next_out,Ye=V.output,_=$-(S-V.avail_out),M=$+(V.avail_out-257),O=g.dmax,T=g.wsize,L=g.whave,Y=g.wnext,R=g.window,se=g.hold,ne=g.bits,J=g.lencode,W=g.distcode,K=(1<<g.lenbits)-1,le=(1<<g.distbits)-1;e:do{ne<15&&(se+=D[F++]<<ne,ne+=8,se+=D[F++]<<ne,ne+=8),me=J[se&K];t:for(;;){if(se>>>=Oe=me>>>24,ne-=Oe,(Oe=me>>>16&255)===0)Ye[$++]=65535&me;else{if(!(16&Oe)){if(!(64&Oe)){me=J[(65535&me)+(se&(1<<Oe)-1)];continue t}if(32&Oe){g.mode=12;break e}V.msg="invalid literal/length code",g.mode=30;break e}Be=65535&me,(Oe&=15)&&(ne<Oe&&(se+=D[F++]<<ne,ne+=8),Be+=se&(1<<Oe)-1,se>>>=Oe,ne-=Oe),ne<15&&(se+=D[F++]<<ne,ne+=8,se+=D[F++]<<ne,ne+=8),me=W[se&le];r:for(;;){if(se>>>=Oe=me>>>24,ne-=Oe,!(16&(Oe=me>>>16&255))){if(!(64&Oe)){me=W[(65535&me)+(se&(1<<Oe)-1)];continue r}V.msg="invalid distance code",g.mode=30;break e}if(Ue=65535&me,ne<(Oe&=15)&&(se+=D[F++]<<ne,(ne+=8)<Oe&&(se+=D[F++]<<ne,ne+=8)),O<(Ue+=se&(1<<Oe)-1)){V.msg="invalid distance too far back",g.mode=30;break e}if(se>>>=Oe,ne-=Oe,(Oe=$-_)<Ue){if(L<(Oe=Ue-Oe)&&g.sane){V.msg="invalid distance too far back",g.mode=30;break e}if(fe=R,(ee=0)===Y){if(ee+=T-Oe,Oe<Be){for(Be-=Oe;Ye[$++]=R[ee++],--Oe;);ee=$-Ue,fe=Ye}}else if(Y<Oe){if(ee+=T+Y-Oe,(Oe-=Y)<Be){for(Be-=Oe;Ye[$++]=R[ee++],--Oe;);if(ee=0,Y<Be){for(Be-=Oe=Y;Ye[$++]=R[ee++],--Oe;);ee=$-Ue,fe=Ye}}}else if(ee+=Y-Oe,Oe<Be){for(Be-=Oe;Ye[$++]=R[ee++],--Oe;);ee=$-Ue,fe=Ye}for(;2<Be;)Ye[$++]=fe[ee++],Ye[$++]=fe[ee++],Ye[$++]=fe[ee++],Be-=3;Be&&(Ye[$++]=fe[ee++],1<Be&&(Ye[$++]=fe[ee++]))}else{for(ee=$-Ue;Ye[$++]=Ye[ee++],Ye[$++]=Ye[ee++],Ye[$++]=Ye[ee++],2<(Be-=3););Be&&(Ye[$++]=Ye[ee++],1<Be&&(Ye[$++]=Ye[ee++]))}break}}break}}while(F<v&&$<M);F-=Be=ne>>3,se&=(1<<(ne-=Be<<3))-1,V.next_in=F,V.next_out=$,V.avail_in=F<v?v-F+5:5-(F-v),V.avail_out=$<M?M-$+257:257-($-M),g.hold=se,g.bits=ne}},{}],49:[function(P,Ne,te){"use strict";var V=P("../utils/common"),S=P("./adler32"),g=P("./crc32"),F=P("./inffast"),v=P("./inftrees"),$=1,_=2,M=0,O=-2,T=1,L=852,Y=592;function R(ee){return(ee>>>24&255)+(ee>>>8&65280)+((65280&ee)<<8)+((255&ee)<<24)}function se(){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 ne(ee){var fe;return ee&&ee.state?(fe=ee.state,ee.total_in=ee.total_out=fe.total=0,ee.msg="",fe.wrap&&(ee.adler=1&fe.wrap),fe.mode=T,fe.last=0,fe.havedict=0,fe.dmax=32768,fe.head=null,fe.hold=0,fe.bits=0,fe.lencode=fe.lendyn=new V.Buf32(L),fe.distcode=fe.distdyn=new V.Buf32(Y),fe.sane=1,fe.back=-1,M):O}function J(ee){var fe;return ee&&ee.state?((fe=ee.state).wsize=0,fe.whave=0,fe.wnext=0,ne(ee)):O}function W(ee,fe){var D,Ye;return ee&&ee.state?(Ye=ee.state,fe<0?(D=0,fe=-fe):(D=1+(fe>>4),fe<48&&(fe&=15)),fe&&(fe<8||15<fe)?O:(Ye.window!==null&&Ye.wbits!==fe&&(Ye.window=null),Ye.wrap=D,Ye.wbits=fe,J(ee))):O}function K(ee,fe){var D,Ye;return ee?(Ye=new se,(ee.state=Ye).window=null,(D=W(ee,fe))!==M&&(ee.state=null),D):O}var le,me,Oe=!0;function Be(ee){if(Oe){var fe;for(le=new V.Buf32(512),me=new V.Buf32(32),fe=0;fe<144;)ee.lens[fe++]=8;for(;fe<256;)ee.lens[fe++]=9;for(;fe<280;)ee.lens[fe++]=7;for(;fe<288;)ee.lens[fe++]=8;for(v($,ee.lens,0,288,le,0,ee.work,{bits:9}),fe=0;fe<32;)ee.lens[fe++]=5;v(_,ee.lens,0,32,me,0,ee.work,{bits:5}),Oe=!1}ee.lencode=le,ee.lenbits=9,ee.distcode=me,ee.distbits=5}function Ue(ee,fe,D,Ye){var Le,Ce=ee.state;return Ce.window===null&&(Ce.wsize=1<<Ce.wbits,Ce.wnext=0,Ce.whave=0,Ce.window=new V.Buf8(Ce.wsize)),Ye>=Ce.wsize?(V.arraySet(Ce.window,fe,D-Ce.wsize,Ce.wsize,0),Ce.wnext=0,Ce.whave=Ce.wsize):(Ye<(Le=Ce.wsize-Ce.wnext)&&(Le=Ye),V.arraySet(Ce.window,fe,D-Ye,Le,Ce.wnext),(Ye-=Le)?(V.arraySet(Ce.window,fe,D-Ye,Ye,0),Ce.wnext=Ye,Ce.whave=Ce.wsize):(Ce.wnext+=Le,Ce.wnext===Ce.wsize&&(Ce.wnext=0),Ce.whave<Ce.wsize&&(Ce.whave+=Le))),0}te.inflateReset=J,te.inflateReset2=W,te.inflateResetKeep=ne,te.inflateInit=function(ee){return K(ee,15)},te.inflateInit2=K,te.inflate=function(ee,fe){var D,Ye,Le,Ce,Te,be,ke,he,Ee,Xe,et,ze,qe,Et,Lt,Ot,sr,er,yr,lr,G,dt,I,m,u=0,C=new V.Buf8(4),q=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!ee||!ee.state||!ee.output||!ee.input&&ee.avail_in!==0)return O;(D=ee.state).mode===12&&(D.mode=13),Te=ee.next_out,Le=ee.output,ke=ee.avail_out,Ce=ee.next_in,Ye=ee.input,be=ee.avail_in,he=D.hold,Ee=D.bits,Xe=be,et=ke,dt=M;e:for(;;)switch(D.mode){case T:if(D.wrap===0){D.mode=13;break}for(;Ee<16;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(2&D.wrap&&he===35615){C[D.check=0]=255&he,C[1]=he>>>8&255,D.check=g(D.check,C,2,0),Ee=he=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&he)<<8)+(he>>8))%31){ee.msg="incorrect header check",D.mode=30;break}if((15&he)!=8){ee.msg="unknown compression method",D.mode=30;break}if(Ee-=4,G=8+(15&(he>>>=4)),D.wbits===0)D.wbits=G;else if(G>D.wbits){ee.msg="invalid window size",D.mode=30;break}D.dmax=1<<G,ee.adler=D.check=1,D.mode=512&he?10:12,Ee=he=0;break;case 2:for(;Ee<16;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(D.flags=he,(255&D.flags)!=8){ee.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){ee.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=he>>8&1),512&D.flags&&(C[0]=255&he,C[1]=he>>>8&255,D.check=g(D.check,C,2,0)),Ee=he=0,D.mode=3;case 3:for(;Ee<32;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}D.head&&(D.head.time=he),512&D.flags&&(C[0]=255&he,C[1]=he>>>8&255,C[2]=he>>>16&255,C[3]=he>>>24&255,D.check=g(D.check,C,4,0)),Ee=he=0,D.mode=4;case 4:for(;Ee<16;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}D.head&&(D.head.xflags=255&he,D.head.os=he>>8),512&D.flags&&(C[0]=255&he,C[1]=he>>>8&255,D.check=g(D.check,C,2,0)),Ee=he=0,D.mode=5;case 5:if(1024&D.flags){for(;Ee<16;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}D.length=he,D.head&&(D.head.extra_len=he),512&D.flags&&(C[0]=255&he,C[1]=he>>>8&255,D.check=g(D.check,C,2,0)),Ee=he=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(be<(ze=D.length)&&(ze=be),ze&&(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,Ye,Ce,ze,G)),512&D.flags&&(D.check=g(D.check,Ye,ze,Ce)),be-=ze,Ce+=ze,D.length-=ze),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(be===0)break e;for(ze=0;G=Ye[Ce+ze++],D.head&&G&&D.length<65536&&(D.head.name+=String.fromCharCode(G)),G&&ze<be;);if(512&D.flags&&(D.check=g(D.check,Ye,ze,Ce)),be-=ze,Ce+=ze,G)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(be===0)break e;for(ze=0;G=Ye[Ce+ze++],D.head&&G&&D.length<65536&&(D.head.comment+=String.fromCharCode(G)),G&&ze<be;);if(512&D.flags&&(D.check=g(D.check,Ye,ze,Ce)),be-=ze,Ce+=ze,G)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;Ee<16;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(he!==(65535&D.check)){ee.msg="header crc mismatch",D.mode=30;break}Ee=he=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),ee.adler=D.check=0,D.mode=12;break;case 10:for(;Ee<32;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}ee.adler=D.check=R(he),Ee=he=0,D.mode=11;case 11:if(D.havedict===0)return ee.next_out=Te,ee.avail_out=ke,ee.next_in=Ce,ee.avail_in=be,D.hold=he,D.bits=Ee,2;ee.adler=D.check=1,D.mode=12;case 12:if(fe===5||fe===6)break e;case 13:if(D.last){he>>>=7&Ee,Ee-=7&Ee,D.mode=27;break}for(;Ee<3;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}switch(D.last=1&he,Ee-=1,3&(he>>>=1)){case 0:D.mode=14;break;case 1:if(Be(D),D.mode=20,fe!==6)break;he>>>=2,Ee-=2;break e;case 2:D.mode=17;break;case 3:ee.msg="invalid block type",D.mode=30}he>>>=2,Ee-=2;break;case 14:for(he>>>=7&Ee,Ee-=7&Ee;Ee<32;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if((65535&he)!=(he>>>16^65535)){ee.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&he,Ee=he=0,D.mode=15,fe===6)break e;case 15:D.mode=16;case 16:if(ze=D.length){if(be<ze&&(ze=be),ke<ze&&(ze=ke),ze===0)break e;V.arraySet(Le,Ye,Ce,ze,Te),be-=ze,Ce+=ze,ke-=ze,Te+=ze,D.length-=ze;break}D.mode=12;break;case 17:for(;Ee<14;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(D.nlen=257+(31&he),he>>>=5,Ee-=5,D.ndist=1+(31&he),he>>>=5,Ee-=5,D.ncode=4+(15&he),he>>>=4,Ee-=4,286<D.nlen||30<D.ndist){ee.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(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}D.lens[q[D.have++]]=7&he,he>>>=3,Ee-=3}for(;D.have<19;)D.lens[q[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,I={bits:D.lenbits},dt=v(0,D.lens,0,19,D.lencode,0,D.work,I),D.lenbits=I.bits,dt){ee.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(;Ot=(u=D.lencode[he&(1<<D.lenbits)-1])>>>16&255,sr=65535&u,!((Lt=u>>>24)<=Ee);){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(sr<16)he>>>=Lt,Ee-=Lt,D.lens[D.have++]=sr;else{if(sr===16){for(m=Lt+2;Ee<m;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(he>>>=Lt,Ee-=Lt,D.have===0){ee.msg="invalid bit length repeat",D.mode=30;break}G=D.lens[D.have-1],ze=3+(3&he),he>>>=2,Ee-=2}else if(sr===17){for(m=Lt+3;Ee<m;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}Ee-=Lt,G=0,ze=3+(7&(he>>>=Lt)),he>>>=3,Ee-=3}else{for(m=Lt+7;Ee<m;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}Ee-=Lt,G=0,ze=11+(127&(he>>>=Lt)),he>>>=7,Ee-=7}if(D.have+ze>D.nlen+D.ndist){ee.msg="invalid bit length repeat",D.mode=30;break}for(;ze--;)D.lens[D.have++]=G}}if(D.mode===30)break;if(D.lens[256]===0){ee.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,I={bits:D.lenbits},dt=v($,D.lens,0,D.nlen,D.lencode,0,D.work,I),D.lenbits=I.bits,dt){ee.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,I={bits:D.distbits},dt=v(_,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,I),D.distbits=I.bits,dt){ee.msg="invalid distances set",D.mode=30;break}if(D.mode=20,fe===6)break e;case 20:D.mode=21;case 21:if(6<=be&&258<=ke){ee.next_out=Te,ee.avail_out=ke,ee.next_in=Ce,ee.avail_in=be,D.hold=he,D.bits=Ee,F(ee,et),Te=ee.next_out,Le=ee.output,ke=ee.avail_out,Ce=ee.next_in,Ye=ee.input,be=ee.avail_in,he=D.hold,Ee=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;Ot=(u=D.lencode[he&(1<<D.lenbits)-1])>>>16&255,sr=65535&u,!((Lt=u>>>24)<=Ee);){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(Ot&&!(240&Ot)){for(er=Lt,yr=Ot,lr=sr;Ot=(u=D.lencode[lr+((he&(1<<er+yr)-1)>>er)])>>>16&255,sr=65535&u,!(er+(Lt=u>>>24)<=Ee);){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}he>>>=er,Ee-=er,D.back+=er}if(he>>>=Lt,Ee-=Lt,D.back+=Lt,D.length=sr,Ot===0){D.mode=26;break}if(32&Ot){D.back=-1,D.mode=12;break}if(64&Ot){ee.msg="invalid literal/length code",D.mode=30;break}D.extra=15&Ot,D.mode=22;case 22:if(D.extra){for(m=D.extra;Ee<m;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}D.length+=he&(1<<D.extra)-1,he>>>=D.extra,Ee-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;Ot=(u=D.distcode[he&(1<<D.distbits)-1])>>>16&255,sr=65535&u,!((Lt=u>>>24)<=Ee);){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(!(240&Ot)){for(er=Lt,yr=Ot,lr=sr;Ot=(u=D.distcode[lr+((he&(1<<er+yr)-1)>>er)])>>>16&255,sr=65535&u,!(er+(Lt=u>>>24)<=Ee);){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}he>>>=er,Ee-=er,D.back+=er}if(he>>>=Lt,Ee-=Lt,D.back+=Lt,64&Ot){ee.msg="invalid distance code",D.mode=30;break}D.offset=sr,D.extra=15&Ot,D.mode=24;case 24:if(D.extra){for(m=D.extra;Ee<m;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}D.offset+=he&(1<<D.extra)-1,he>>>=D.extra,Ee-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){ee.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(ke===0)break e;if(ze=et-ke,D.offset>ze){if((ze=D.offset-ze)>D.whave&&D.sane){ee.msg="invalid distance too far back",D.mode=30;break}qe=ze>D.wnext?(ze-=D.wnext,D.wsize-ze):D.wnext-ze,ze>D.length&&(ze=D.length),Et=D.window}else Et=Le,qe=Te-D.offset,ze=D.length;for(ke<ze&&(ze=ke),ke-=ze,D.length-=ze;Le[Te++]=Et[qe++],--ze;);D.length===0&&(D.mode=21);break;case 26:if(ke===0)break e;Le[Te++]=D.length,ke--,D.mode=21;break;case 27:if(D.wrap){for(;Ee<32;){if(be===0)break e;be--,he|=Ye[Ce++]<<Ee,Ee+=8}if(et-=ke,ee.total_out+=et,D.total+=et,et&&(ee.adler=D.check=D.flags?g(D.check,Le,et,Te-et):S(D.check,Le,et,Te-et)),et=ke,(D.flags?he:R(he))!==D.check){ee.msg="incorrect data check",D.mode=30;break}Ee=he=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;Ee<32;){if(be===0)break e;be--,he+=Ye[Ce++]<<Ee,Ee+=8}if(he!==(4294967295&D.total)){ee.msg="incorrect length check",D.mode=30;break}Ee=he=0}D.mode=29;case 29:dt=1;break e;case 30:dt=-3;break e;case 31:return-4;case 32:default:return O}return ee.next_out=Te,ee.avail_out=ke,ee.next_in=Ce,ee.avail_in=be,D.hold=he,D.bits=Ee,(D.wsize||et!==ee.avail_out&&D.mode<30&&(D.mode<27||fe!==4))&&Ue(ee,ee.output,ee.next_out,et-ee.avail_out)?(D.mode=31,-4):(Xe-=ee.avail_in,et-=ee.avail_out,ee.total_in+=Xe,ee.total_out+=et,D.total+=et,D.wrap&&et&&(ee.adler=D.check=D.flags?g(D.check,Le,et,ee.next_out-et):S(D.check,Le,et,ee.next_out-et)),ee.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(Xe==0&&et===0||fe===4)&&dt===M&&(dt=-5),dt)},te.inflateEnd=function(ee){if(!ee||!ee.state)return O;var fe=ee.state;return fe.window&&(fe.window=null),ee.state=null,M},te.inflateGetHeader=function(ee,fe){var D;return ee&&ee.state&&2&(D=ee.state).wrap?((D.head=fe).done=!1,M):O},te.inflateSetDictionary=function(ee,fe){var D,Ye=fe.length;return ee&&ee.state?(D=ee.state).wrap!==0&&D.mode!==11?O:D.mode===11&&S(1,fe,Ye,0)!==D.check?-3:Ue(ee,fe,Ye,Ye)?(D.mode=31,-4):(D.havedict=1,M):O},te.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(P,Ne,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],F=[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];Ne.exports=function($,_,M,O,T,L,Y,R){var se,ne,J,W,K,le,me,Oe,Be,Ue=R.bits,ee=0,fe=0,D=0,Ye=0,Le=0,Ce=0,Te=0,be=0,ke=0,he=0,Ee=null,Xe=0,et=new V.Buf16(16),ze=new V.Buf16(16),qe=null,Et=0;for(ee=0;ee<=15;ee++)et[ee]=0;for(fe=0;fe<O;fe++)et[_[M+fe]]++;for(Le=Ue,Ye=15;1<=Ye&&et[Ye]===0;Ye--);if(Ye<Le&&(Le=Ye),Ye===0)return T[L++]=20971520,T[L++]=20971520,R.bits=1,0;for(D=1;D<Ye&&et[D]===0;D++);for(Le<D&&(Le=D),ee=be=1;ee<=15;ee++)if(be<<=1,(be-=et[ee])<0)return-1;if(0<be&&($===0||Ye!==1))return-1;for(ze[1]=0,ee=1;ee<15;ee++)ze[ee+1]=ze[ee]+et[ee];for(fe=0;fe<O;fe++)_[M+fe]!==0&&(Y[ze[_[M+fe]]++]=fe);if(le=$===0?(Ee=qe=Y,19):$===1?(Ee=S,Xe-=257,qe=g,Et-=257,256):(Ee=F,qe=v,-1),ee=D,K=L,Te=fe=he=0,J=-1,W=(ke=1<<(Ce=Le))-1,$===1&&852<ke||$===2&&592<ke)return 1;for(;;){for(me=ee-Te,Be=Y[fe]<le?(Oe=0,Y[fe]):Y[fe]>le?(Oe=qe[Et+Y[fe]],Ee[Xe+Y[fe]]):(Oe=96,0),se=1<<ee-Te,D=ne=1<<Ce;T[K+(he>>Te)+(ne-=se)]=me<<24|Oe<<16|Be|0,ne!==0;);for(se=1<<ee-1;he&se;)se>>=1;if(se!==0?(he&=se-1,he+=se):he=0,fe++,--et[ee]==0){if(ee===Ye)break;ee=_[M+Y[fe]]}if(Le<ee&&(he&W)!==J){for(Te===0&&(Te=Le),K+=D,be=1<<(Ce=ee-Te);Ce+Te<Ye&&!((be-=et[Ce+Te])<=0);)Ce++,be<<=1;if(ke+=1<<Ce,$===1&&852<ke||$===2&&592<ke)return 1;T[J=he&W]=Le<<24|Ce<<16|K-L|0}}return he!==0&&(T[K+he]=ee-Te<<24|64<<16|0),R.bits=Le,0}},{"../utils/common":41}],51:[function(P,Ne,te){"use strict";Ne.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,Ne,te){"use strict";var V=P("../utils/common"),S=0,g=1;function F(u){for(var C=u.length;0<=--C;)u[C]=0}var v=0,$=29,_=256,M=_+1+$,O=30,T=19,L=2*M+1,Y=15,R=16,se=7,ne=256,J=16,W=17,K=18,le=[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],me=[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],Be=[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));F(Ue);var ee=new Array(2*O);F(ee);var fe=new Array(512);F(fe);var D=new Array(256);F(D);var Ye=new Array($);F(Ye);var Le,Ce,Te,be=new Array(O);function ke(u,C,q,Se,H){this.static_tree=u,this.extra_bits=C,this.extra_base=q,this.elems=Se,this.max_length=H,this.has_stree=u&&u.length}function he(u,C){this.dyn_tree=u,this.max_code=0,this.stat_desc=C}function Ee(u){return u<256?fe[u]:fe[256+(u>>>7)]}function Xe(u,C){u.pending_buf[u.pending++]=255&C,u.pending_buf[u.pending++]=C>>>8&255}function et(u,C,q){u.bi_valid>R-q?(u.bi_buf|=C<<u.bi_valid&65535,Xe(u,u.bi_buf),u.bi_buf=C>>R-u.bi_valid,u.bi_valid+=q-R):(u.bi_buf|=C<<u.bi_valid&65535,u.bi_valid+=q)}function ze(u,C,q){et(u,q[2*C],q[2*C+1])}function qe(u,C){for(var q=0;q|=1&u,u>>>=1,q<<=1,0<--C;);return q>>>1}function Et(u,C,q){var Se,H,ie=new Array(Y+1),Qe=0;for(Se=1;Se<=Y;Se++)ie[Se]=Qe=Qe+q[Se-1]<<1;for(H=0;H<=C;H++){var we=u[2*H+1];we!==0&&(u[2*H]=qe(ie[we]++,we))}}function Lt(u){var C;for(C=0;C<M;C++)u.dyn_ltree[2*C]=0;for(C=0;C<O;C++)u.dyn_dtree[2*C]=0;for(C=0;C<T;C++)u.bl_tree[2*C]=0;u.dyn_ltree[2*ne]=1,u.opt_len=u.static_len=0,u.last_lit=u.matches=0}function Ot(u){8<u.bi_valid?Xe(u,u.bi_buf):0<u.bi_valid&&(u.pending_buf[u.pending++]=u.bi_buf),u.bi_buf=0,u.bi_valid=0}function sr(u,C,q,Se){var H=2*C,ie=2*q;return u[H]<u[ie]||u[H]===u[ie]&&Se[C]<=Se[q]}function er(u,C,q){for(var Se=u.heap[q],H=q<<1;H<=u.heap_len&&(H<u.heap_len&&sr(C,u.heap[H+1],u.heap[H],u.depth)&&H++,!sr(C,Se,u.heap[H],u.depth));)u.heap[q]=u.heap[H],q=H,H<<=1;u.heap[q]=Se}function yr(u,C,q){var Se,H,ie,Qe,we=0;if(u.last_lit!==0)for(;Se=u.pending_buf[u.d_buf+2*we]<<8|u.pending_buf[u.d_buf+2*we+1],H=u.pending_buf[u.l_buf+we],we++,Se===0?ze(u,H,C):(ze(u,(ie=D[H])+_+1,C),(Qe=le[ie])!==0&&et(u,H-=Ye[ie],Qe),ze(u,ie=Ee(--Se),q),(Qe=me[ie])!==0&&et(u,Se-=be[ie],Qe)),we<u.last_lit;);ze(u,ne,C)}function lr(u,C){var q,Se,H,ie=C.dyn_tree,Qe=C.stat_desc.static_tree,we=C.stat_desc.has_stree,ye=C.stat_desc.elems,je=-1;for(u.heap_len=0,u.heap_max=L,q=0;q<ye;q++)ie[2*q]!==0?(u.heap[++u.heap_len]=je=q,u.depth[q]=0):ie[2*q+1]=0;for(;u.heap_len<2;)ie[2*(H=u.heap[++u.heap_len]=je<2?++je:0)]=1,u.depth[H]=0,u.opt_len--,we&&(u.static_len-=Qe[2*H+1]);for(C.max_code=je,q=u.heap_len>>1;1<=q;q--)er(u,ie,q);for(H=ye;q=u.heap[1],u.heap[1]=u.heap[u.heap_len--],er(u,ie,1),Se=u.heap[1],u.heap[--u.heap_max]=q,u.heap[--u.heap_max]=Se,ie[2*H]=ie[2*q]+ie[2*Se],u.depth[H]=(u.depth[q]>=u.depth[Se]?u.depth[q]:u.depth[Se])+1,ie[2*q+1]=ie[2*Se+1]=H,u.heap[1]=H++,er(u,ie,1),2<=u.heap_len;);u.heap[--u.heap_max]=u.heap[1],function(xt,de){var st,tt,Ie,De,lt,Ut,kt=de.dyn_tree,rr=de.max_code,Fr=de.stat_desc.static_tree,kr=de.stat_desc.has_stree,Dr=de.stat_desc.extra_bits,Nr=de.stat_desc.extra_base,xr=de.stat_desc.max_length,ur=0;for(De=0;De<=Y;De++)xt.bl_count[De]=0;for(kt[2*xt.heap[xt.heap_max]+1]=0,st=xt.heap_max+1;st<L;st++)xr<(De=kt[2*kt[2*(tt=xt.heap[st])+1]+1]+1)&&(De=xr,ur++),kt[2*tt+1]=De,rr<tt||(xt.bl_count[De]++,lt=0,Nr<=tt&&(lt=Dr[tt-Nr]),Ut=kt[2*tt],xt.opt_len+=Ut*(De+lt),kr&&(xt.static_len+=Ut*(Fr[2*tt+1]+lt)));if(ur!==0){do{for(De=xr-1;xt.bl_count[De]===0;)De--;xt.bl_count[De]--,xt.bl_count[De+1]+=2,xt.bl_count[xr]--,ur-=2}while(0<ur);for(De=xr;De!==0;De--)for(tt=xt.bl_count[De];tt!==0;)rr<(Ie=xt.heap[--st])||(kt[2*Ie+1]!==De&&(xt.opt_len+=(De-kt[2*Ie+1])*kt[2*Ie],kt[2*Ie+1]=De),tt--)}}(u,C),Et(ie,je,u.bl_count)}function G(u,C,q){var Se,H,ie=-1,Qe=C[1],we=0,ye=7,je=4;for(Qe===0&&(ye=138,je=3),C[2*(q+1)+1]=65535,Se=0;Se<=q;Se++)H=Qe,Qe=C[2*(Se+1)+1],++we<ye&&H===Qe||(we<je?u.bl_tree[2*H]+=we:H!==0?(H!==ie&&u.bl_tree[2*H]++,u.bl_tree[2*J]++):we<=10?u.bl_tree[2*W]++:u.bl_tree[2*K]++,ie=H,je=(we=0)===Qe?(ye=138,3):H===Qe?(ye=6,3):(ye=7,4))}function dt(u,C,q){var Se,H,ie=-1,Qe=C[1],we=0,ye=7,je=4;for(Qe===0&&(ye=138,je=3),Se=0;Se<=q;Se++)if(H=Qe,Qe=C[2*(Se+1)+1],!(++we<ye&&H===Qe)){if(we<je)for(;ze(u,H,u.bl_tree),--we!=0;);else H!==0?(H!==ie&&(ze(u,H,u.bl_tree),we--),ze(u,J,u.bl_tree),et(u,we-3,2)):we<=10?(ze(u,W,u.bl_tree),et(u,we-3,3)):(ze(u,K,u.bl_tree),et(u,we-11,7));ie=H,je=(we=0)===Qe?(ye=138,3):H===Qe?(ye=6,3):(ye=7,4)}}F(be);var I=!1;function m(u,C,q,Se){et(u,(v<<1)+(Se?1:0),3),function(H,ie,Qe,we){Ot(H),we&&(Xe(H,Qe),Xe(H,~Qe)),V.arraySet(H.pending_buf,H.window,ie,Qe,H.pending),H.pending+=Qe}(u,C,q,!0)}te._tr_init=function(u){I||(function(){var C,q,Se,H,ie,Qe=new Array(Y+1);for(H=Se=0;H<$-1;H++)for(Ye[H]=Se,C=0;C<1<<le[H];C++)D[Se++]=H;for(D[Se-1]=H,H=ie=0;H<16;H++)for(be[H]=ie,C=0;C<1<<me[H];C++)fe[ie++]=H;for(ie>>=7;H<O;H++)for(be[H]=ie<<7,C=0;C<1<<me[H]-7;C++)fe[256+ie++]=H;for(q=0;q<=Y;q++)Qe[q]=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(Et(Ue,M+1,Qe),C=0;C<O;C++)ee[2*C+1]=5,ee[2*C]=qe(C,5);Le=new ke(Ue,le,_+1,M,Y),Ce=new ke(ee,me,0,O,Y),Te=new ke(new Array(0),Oe,0,T,se)}(),I=!0),u.l_desc=new he(u.dyn_ltree,Le),u.d_desc=new he(u.dyn_dtree,Ce),u.bl_desc=new he(u.bl_tree,Te),u.bi_buf=0,u.bi_valid=0,Lt(u)},te._tr_stored_block=m,te._tr_flush_block=function(u,C,q,Se){var H,ie,Qe=0;0<u.level?(u.strm.data_type===2&&(u.strm.data_type=function(we){var ye,je=4093624447;for(ye=0;ye<=31;ye++,je>>>=1)if(1&je&&we.dyn_ltree[2*ye]!==0)return S;if(we.dyn_ltree[18]!==0||we.dyn_ltree[20]!==0||we.dyn_ltree[26]!==0)return g;for(ye=32;ye<_;ye++)if(we.dyn_ltree[2*ye]!==0)return g;return S}(u)),lr(u,u.l_desc),lr(u,u.d_desc),Qe=function(we){var ye;for(G(we,we.dyn_ltree,we.l_desc.max_code),G(we,we.dyn_dtree,we.d_desc.max_code),lr(we,we.bl_desc),ye=T-1;3<=ye&&we.bl_tree[2*Be[ye]+1]===0;ye--);return we.opt_len+=3*(ye+1)+5+5+4,ye}(u),H=u.opt_len+3+7>>>3,(ie=u.static_len+3+7>>>3)<=H&&(H=ie)):H=ie=q+5,q+4<=H&&C!==-1?m(u,C,q,Se):u.strategy===4||ie===H?(et(u,2+(Se?1:0),3),yr(u,Ue,ee)):(et(u,4+(Se?1:0),3),function(we,ye,je,xt){var de;for(et(we,ye-257,5),et(we,je-1,5),et(we,xt-4,4),de=0;de<xt;de++)et(we,we.bl_tree[2*Be[de]+1],3);dt(we,we.dyn_ltree,ye-1),dt(we,we.dyn_dtree,je-1)}(u,u.l_desc.max_code+1,u.d_desc.max_code+1,Qe+1),yr(u,u.dyn_ltree,u.dyn_dtree)),Lt(u),Se&&Ot(u)},te._tr_tally=function(u,C,q){return u.pending_buf[u.d_buf+2*u.last_lit]=C>>>8&255,u.pending_buf[u.d_buf+2*u.last_lit+1]=255&C,u.pending_buf[u.l_buf+u.last_lit]=255&q,u.last_lit++,C===0?u.dyn_ltree[2*q]++:(u.matches++,C--,u.dyn_ltree[2*(D[q]+_+1)]++,u.dyn_dtree[2*Ee(C)]++),u.last_lit===u.lit_bufsize-1},te._tr_align=function(u){et(u,2,3),ze(u,ne,Ue),function(C){C.bi_valid===16?(Xe(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)}(u)}},{"../utils/common":41}],53:[function(P,Ne,te){"use strict";Ne.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,Ne,te){(function(V){(function(S,g){"use strict";if(!S.setImmediate){var F,v,$,_,M=1,O={},T=!1,L=S.document,Y=Object.getPrototypeOf&&Object.getPrototypeOf(S);Y=Y&&Y.setTimeout?Y:S,F={}.toString.call(S.process)==="[object process]"?function(J){Ae.nextTick(function(){se(J)})}:function(){if(S.postMessage&&!S.importScripts){var J=!0,W=S.onmessage;return S.onmessage=function(){J=!1},S.postMessage("","*"),S.onmessage=W,J}}()?(_="setImmediate$"+Math.random()+"$",S.addEventListener?S.addEventListener("message",ne,!1):S.attachEvent("onmessage",ne),function(J){S.postMessage(_+J,"*")}):S.MessageChannel?(($=new MessageChannel).port1.onmessage=function(J){se(J.data)},function(J){$.port2.postMessage(J)}):L&&"onreadystatechange"in L.createElement("script")?(v=L.documentElement,function(J){var W=L.createElement("script");W.onreadystatechange=function(){se(J),W.onreadystatechange=null,v.removeChild(W),W=null},v.appendChild(W)}):function(J){setTimeout(se,0,J)},Y.setImmediate=function(J){typeof J!="function"&&(J=new Function(""+J));for(var W=new Array(arguments.length-1),K=0;K<W.length;K++)W[K]=arguments[K+1];var le={callback:J,args:W};return O[M]=le,F(M),M++},Y.clearImmediate=R}function R(J){delete O[J]}function se(J){if(T)setTimeout(se,0,J);else{var W=O[J];if(W){T=!0;try{(function(K){var le=K.callback,me=K.args;switch(me.length){case 0:le();break;case 1:le(me[0]);break;case 2:le(me[0],me[1]);break;case 3:le(me[0],me[1],me[2]);break;default:le.apply(g,me)}})(W)}finally{R(J),T=!1}}}}function ne(J){J.source===S&&typeof J.data=="string"&&J.data.indexOf(_)===0&&se(+J.data.slice(_.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 pe=x(54476),Ae=x(33885),P=x(20068),Ne=x(42978),te=x(75931),V=x(92310),S=x.n(V),g=x(18929),F=x(59301),v=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],$=(0,F.forwardRef)(function(_,M){var O,T=_.prefixCls,L=T===void 0?"rc-checkbox":T,Y=_.className,R=_.style,se=_.checked,ne=_.disabled,J=_.defaultChecked,W=J===void 0?!1:J,K=_.type,le=K===void 0?"checkbox":K,me=_.title,Oe=_.onChange,Be=(0,te.Z)(_,v),Ue=(0,F.useRef)(null),ee=(0,g.Z)(W,{value:se}),fe=(0,Ne.Z)(ee,2),D=fe[0],Ye=fe[1];(0,F.useImperativeHandle)(M,function(){return{focus:function(){var be;(be=Ue.current)===null||be===void 0||be.focus()},blur:function(){var be;(be=Ue.current)===null||be===void 0||be.blur()},input:Ue.current}});var Le=S()(L,Y,(O={},(0,P.Z)(O,"".concat(L,"-checked"),D),(0,P.Z)(O,"".concat(L,"-disabled"),ne),O)),Ce=function(be){ne||("checked"in _||Ye(be.target.checked),Oe==null||Oe({target:(0,Ae.Z)((0,Ae.Z)({},_),{},{type:le,checked:be.target.checked}),stopPropagation:function(){be.stopPropagation()},preventDefault:function(){be.preventDefault()},nativeEvent:be.nativeEvent}))};return F.createElement("span",{className:Le,title:me,style:R},F.createElement("input",(0,pe.Z)({},Be,{className:"".concat(L,"-input"),ref:Ue,onChange:Ce,disabled:ne,checked:!!D,type:le})),F.createElement("span",{className:"".concat(L,"-inner")}))});Tt.Z=$},31561:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return le}});var pe=x(54476),Ae=x(20068),P=x(42978),Ne=x(75931),te=x(35593),V=x(92310),S=x.n(V),g=x(8654),F=x(59301),v=x(10228),$=x(16089),_=v.Z.ESC,M=v.Z.TAB;function O(me){var Oe=me.visible,Be=me.triggerRef,Ue=me.onVisibleChange,ee=me.autoFocus,fe=me.overlayRef,D=F.useRef(!1),Ye=function(){if(Oe){var be,ke;(be=Be.current)===null||be===void 0||(ke=be.focus)===null||ke===void 0||ke.call(be),Ue==null||Ue(!1)}},Le=function(){var be;return(be=fe.current)!==null&&be!==void 0&&be.focus?(fe.current.focus(),D.current=!0,!0):!1},Ce=function(be){switch(be.keyCode){case _:Ye();break;case M:{var ke=!1;D.current||(ke=Le()),ke?be.preventDefault():Ye();break}}};F.useEffect(function(){return Oe?(window.addEventListener("keydown",Ce),ee&&(0,$.Z)(Le,3),function(){window.removeEventListener("keydown",Ce),D.current=!1}):function(){D.current=!1}},[Oe])}var T=(0,F.forwardRef)(function(me,Oe){var Be=me.overlay,Ue=me.arrow,ee=me.prefixCls,fe=(0,F.useMemo)(function(){var Ye;return typeof Be=="function"?Ye=Be():Ye=Be,Ye},[Be]),D=(0,g.sQ)(Oe,fe==null?void 0:fe.ref);return F.createElement(F.Fragment,null,Ue&&F.createElement("div",{className:"".concat(ee,"-arrow")}),F.cloneElement(fe,{ref:(0,g.Yr)(fe)?D:void 0}))}),L=T,Y={adjustX:1,adjustY:1},R=[0,0],se={topLeft:{points:["bl","tl"],overflow:Y,offset:[0,-4],targetOffset:R},top:{points:["bc","tc"],overflow:Y,offset:[0,-4],targetOffset:R},topRight:{points:["br","tr"],overflow:Y,offset:[0,-4],targetOffset:R},bottomLeft:{points:["tl","bl"],overflow:Y,offset:[0,4],targetOffset:R},bottom:{points:["tc","bc"],overflow:Y,offset:[0,4],targetOffset:R},bottomRight:{points:["tr","br"],overflow:Y,offset:[0,4],targetOffset:R}},ne=se,J=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function W(me,Oe){var Be,Ue=me.arrow,ee=Ue===void 0?!1:Ue,fe=me.prefixCls,D=fe===void 0?"rc-dropdown":fe,Ye=me.transitionName,Le=me.animation,Ce=me.align,Te=me.placement,be=Te===void 0?"bottomLeft":Te,ke=me.placements,he=ke===void 0?ne:ke,Ee=me.getPopupContainer,Xe=me.showAction,et=me.hideAction,ze=me.overlayClassName,qe=me.overlayStyle,Et=me.visible,Lt=me.trigger,Ot=Lt===void 0?["hover"]:Lt,sr=me.autoFocus,er=me.overlay,yr=me.children,lr=me.onVisibleChange,G=(0,Ne.Z)(me,J),dt=F.useState(),I=(0,P.Z)(dt,2),m=I[0],u=I[1],C="visible"in me?Et:m,q=F.useRef(null),Se=F.useRef(null),H=F.useRef(null);F.useImperativeHandle(Oe,function(){return q.current});var ie=function(Ie){u(Ie),lr==null||lr(Ie)};O({visible:C,triggerRef:H,onVisibleChange:ie,autoFocus:sr,overlayRef:Se});var Qe=function(Ie){var De=me.onOverlayClick;u(!1),De&&De(Ie)},we=function(){return F.createElement(L,{ref:Se,overlay:er,prefixCls:D,arrow:ee})},ye=function(){return typeof er=="function"?we:we()},je=function(){var Ie=me.minOverlayWidthMatchTrigger,De=me.alignPoint;return"minOverlayWidthMatchTrigger"in me?Ie:!De},xt=function(){var Ie=me.openClassName;return Ie!==void 0?Ie:"".concat(D,"-open")},de=F.cloneElement(yr,{className:S()((Be=yr.props)===null||Be===void 0?void 0:Be.className,C&&xt()),ref:(0,g.Yr)(yr)?(0,g.sQ)(H,yr.ref):void 0}),st=et;return!st&&Ot.indexOf("contextMenu")!==-1&&(st=["click"]),F.createElement(te.Z,(0,pe.Z)({builtinPlacements:he},G,{prefixCls:D,ref:q,popupClassName:S()(ze,(0,Ae.Z)({},"".concat(D,"-show-arrow"),ee)),popupStyle:qe,action:Ot,showAction:Xe,hideAction:st,popupPlacement:be,popupAlign:Ce,popupTransitionName:Ye,popupAnimation:Le,popupVisible:C,stretch:je()?"minWidth":"",popup:ye(),onPopupVisibleChange:ie,onPopupClick:Qe,getPopupContainer:Ee}),de)}var K=F.forwardRef(W),le=K},93681:function(un,Tt,x){"use strict";x.r(Tt),x.d(Tt,{BaseInput:function(){return v},default:function(){return se}});var pe=x(54476),Ae=x(33885),P=x(20068),Ne=x(76190),te=x(92310),V=x.n(te),S=x(59301),g=x(5643),F=function(J){var W,K,le=J.inputElement,me=J.prefixCls,Oe=J.prefix,Be=J.suffix,Ue=J.addonBefore,ee=J.addonAfter,fe=J.className,D=J.style,Ye=J.disabled,Le=J.readOnly,Ce=J.focused,Te=J.triggerFocus,be=J.allowClear,ke=J.value,he=J.handleReset,Ee=J.hidden,Xe=J.classes,et=J.classNames,ze=J.dataAttrs,qe=J.styles,Et=J.components,Lt=(Et==null?void 0:Et.affixWrapper)||"span",Ot=(Et==null?void 0:Et.groupWrapper)||"span",sr=(Et==null?void 0:Et.wrapper)||"span",er=(Et==null?void 0:Et.groupAddon)||"span",yr=(0,S.useRef)(null),lr=function(we){var ye;(ye=yr.current)!==null&&ye!==void 0&&ye.contains(we.target)&&(Te==null||Te())},G=function(){var we;if(!be)return null;var ye=!Ye&&!Le&&ke,je="".concat(me,"-clear-icon"),xt=(0,Ne.Z)(be)==="object"&&be!==null&&be!==void 0&&be.clearIcon?be.clearIcon:"\u2716";return S.createElement("span",{onClick:he,onMouseDown:function(st){return st.preventDefault()},className:V()(je,(we={},(0,P.Z)(we,"".concat(je,"-hidden"),!ye),(0,P.Z)(we,"".concat(je,"-has-suffix"),!!Be),we)),role:"button",tabIndex:-1},xt)},dt=(0,S.cloneElement)(le,{value:ke,hidden:Ee,className:V()((W=le.props)===null||W===void 0?void 0:W.className,!(0,g.X3)(J)&&!(0,g.He)(J)&&fe)||null,style:(0,Ae.Z)((0,Ae.Z)({},(K=le.props)===null||K===void 0?void 0:K.style),!(0,g.X3)(J)&&!(0,g.He)(J)?D:{})});if((0,g.X3)(J)){var I,m="".concat(me,"-affix-wrapper"),u=V()(m,(I={},(0,P.Z)(I,"".concat(m,"-disabled"),Ye),(0,P.Z)(I,"".concat(m,"-focused"),Ce),(0,P.Z)(I,"".concat(m,"-readonly"),Le),(0,P.Z)(I,"".concat(m,"-input-with-clear-btn"),Be&&be&&ke),I),!(0,g.He)(J)&&fe,Xe==null?void 0:Xe.affixWrapper,et==null?void 0:et.affixWrapper),C=(Be||be)&&S.createElement("span",{className:V()("".concat(me,"-suffix"),et==null?void 0:et.suffix),style:qe==null?void 0:qe.suffix},G(),Be);dt=S.createElement(Lt,(0,pe.Z)({className:u,style:(0,Ae.Z)((0,Ae.Z)({},(0,g.He)(J)?void 0:D),qe==null?void 0:qe.affixWrapper),hidden:!(0,g.He)(J)&&Ee,onClick:lr},ze==null?void 0:ze.affixWrapper,{ref:yr}),Oe&&S.createElement("span",{className:V()("".concat(me,"-prefix"),et==null?void 0:et.prefix),style:qe==null?void 0:qe.prefix},Oe),(0,S.cloneElement)(le,{value:ke,hidden:null}),C)}if((0,g.He)(J)){var q="".concat(me,"-group"),Se="".concat(q,"-addon"),H=V()("".concat(me,"-wrapper"),q,Xe==null?void 0:Xe.wrapper),ie=V()("".concat(me,"-group-wrapper"),fe,Xe==null?void 0:Xe.group);return S.createElement(Ot,{className:ie,style:D,hidden:Ee},S.createElement(sr,{className:H},Ue&&S.createElement(er,{className:Se},Ue),(0,S.cloneElement)(dt,{hidden:null}),ee&&S.createElement(er,{className:Se},ee)))}return dt},v=F,$=x(94480),_=x(42978),M=x(75931),O=x(18929),T=x(2738),L=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Y=(0,S.forwardRef)(function(ne,J){var W=ne.autoComplete,K=ne.onChange,le=ne.onFocus,me=ne.onBlur,Oe=ne.onPressEnter,Be=ne.onKeyDown,Ue=ne.prefixCls,ee=Ue===void 0?"rc-input":Ue,fe=ne.disabled,D=ne.htmlSize,Ye=ne.className,Le=ne.maxLength,Ce=ne.suffix,Te=ne.showCount,be=ne.type,ke=be===void 0?"text":be,he=ne.classes,Ee=ne.classNames,Xe=ne.styles,et=(0,M.Z)(ne,L),ze=(0,O.Z)(ne.defaultValue,{value:ne.value}),qe=(0,_.Z)(ze,2),Et=qe[0],Lt=qe[1],Ot=(0,S.useState)(!1),sr=(0,_.Z)(Ot,2),er=sr[0],yr=sr[1],lr=(0,S.useRef)(null),G=function(ie){lr.current&&(0,g.nH)(lr.current,ie)};(0,S.useImperativeHandle)(J,function(){return{focus:G,blur:function(){var ie;(ie=lr.current)===null||ie===void 0||ie.blur()},setSelectionRange:function(ie,Qe,we){var ye;(ye=lr.current)===null||ye===void 0||ye.setSelectionRange(ie,Qe,we)},select:function(){var ie;(ie=lr.current)===null||ie===void 0||ie.select()},input:lr.current}}),(0,S.useEffect)(function(){yr(function(H){return H&&fe?!1:H})},[fe]);var dt=function(ie){ne.value===void 0&&Lt(ie.target.value),lr.current&&(0,g.rJ)(lr.current,ie,K)},I=function(ie){Oe&&ie.key==="Enter"&&Oe(ie),Be==null||Be(ie)},m=function(ie){yr(!0),le==null||le(ie)},u=function(ie){yr(!1),me==null||me(ie)},C=function(ie){Lt(""),G(),lr.current&&(0,g.rJ)(lr.current,ie,K)},q=function(){var ie=(0,T.Z)(ne,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return S.createElement("input",(0,pe.Z)({autoComplete:W},ie,{onChange:dt,onFocus:m,onBlur:u,onKeyDown:I,className:V()(ee,(0,P.Z)({},"".concat(ee,"-disabled"),fe),Ee==null?void 0:Ee.input),style:Xe==null?void 0:Xe.input,ref:lr,size:D,type:ke}))},Se=function(){var ie=Number(Le)>0;if(Ce||Te){var Qe=(0,g.D7)(Et),we=(0,$.Z)(Qe).length,ye=(0,Ne.Z)(Te)==="object"?Te.formatter({value:Qe,count:we,maxLength:Le}):"".concat(we).concat(ie?" / ".concat(Le):"");return S.createElement(S.Fragment,null,!!Te&&S.createElement("span",{className:V()("".concat(ee,"-show-count-suffix"),(0,P.Z)({},"".concat(ee,"-show-count-has-suffix"),!!Ce),Ee==null?void 0:Ee.count),style:(0,Ae.Z)({},Xe==null?void 0:Xe.count)},ye),Ce)}return null};return S.createElement(v,(0,pe.Z)({},et,{prefixCls:ee,className:Ye,inputElement:q(),handleReset:C,value:(0,g.D7)(Et),focused:er,triggerFocus:G,suffix:Se(),disabled:fe,classes:he,classNames:Ee,styles:Xe}))}),R=Y,se=R},5643:function(un,Tt,x){"use strict";x.d(Tt,{D7:function(){return te},He:function(){return pe},X3:function(){return Ae},nH:function(){return Ne},rJ:function(){return P}});function pe(V){return!!(V.addonBefore||V.addonAfter)}function Ae(V){return!!(V.prefix||V.suffix||V.allowClear)}function P(V,S,g,F){if(g){var v=S;if(S.type==="click"){var $=V.cloneNode(!0);v=Object.create(S,{target:{value:$},currentTarget:{value:$}}),$.value="",g(v);return}if(F!==void 0){v=Object.create(S,{target:{value:V},currentTarget:{value:V}}),V.value=F,g(v);return}g(v)}}function Ne(V,S){if(V){V.focus(S);var g=S||{},F=g.cursor;if(F){var v=V.value.length;switch(F){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 mn},BW:function(){return an},sN:function(){return mn},Wd:function(){return Dt},ZP:function(){return Xn},Xl:function(){return Be}});var pe=x(54476),Ae=x(20068),P=x(33885),Ne=x(94480),te=x(42978),V=x(75931),S=x(92310),g=x.n(S),F=x(83836),v=x(18929),$=x(13697),_=x(48736),M=x(59301),O=x(4676),T=M.createContext(null);function L(Vt,Xt){return Vt===void 0?null:"".concat(Vt,"-").concat(Xt)}function Y(Vt){var Xt=M.useContext(T);return L(Xt,Vt)}var R=x(80547),se=["children","locked"],ne=M.createContext(null);function J(Vt,Xt){var Yt=(0,P.Z)({},Vt);return Object.keys(Xt).forEach(function(tr){var jt=Xt[tr];jt!==void 0&&(Yt[tr]=jt)}),Yt}function W(Vt){var Xt=Vt.children,Yt=Vt.locked,tr=(0,V.Z)(Vt,se),jt=M.useContext(ne),or=(0,R.Z)(function(){return J(jt,tr)},[jt,tr],function(cr,Pr){return!Yt&&(cr[0]!==Pr[0]||!(0,$.Z)(cr[1],Pr[1],!0))});return M.createElement(ne.Provider,{value:or},Xt)}var K=[],le=M.createContext(null);function me(){return M.useContext(le)}var Oe=M.createContext(K);function Be(Vt){var Xt=M.useContext(Oe);return M.useMemo(function(){return Vt!==void 0?[].concat((0,Ne.Z)(Xt),[Vt]):Xt},[Xt,Vt])}var Ue=M.createContext(null),ee=M.createContext({}),fe=ee,D=x(29194);function Ye(Vt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,D.Z)(Vt)){var Yt=Vt.nodeName.toLowerCase(),tr=["input","select","textarea","button"].includes(Yt)||Vt.isContentEditable||Yt==="a"&&!!Vt.getAttribute("href"),jt=Vt.getAttribute("tabindex"),or=Number(jt),cr=null;return jt&&!Number.isNaN(or)?cr=or:tr&&cr===null&&(cr=0),tr&&Vt.disabled&&(cr=null),cr!==null&&(cr>=0||Xt&&cr<0)}return!1}function Le(Vt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Yt=(0,Ne.Z)(Vt.querySelectorAll("*")).filter(function(tr){return Ye(tr,Xt)});return Ye(Vt,Xt)&&Yt.unshift(Vt),Yt}var Ce=null;function Te(){Ce=document.activeElement}function be(){Ce=null}function ke(){if(Ce)try{Ce.focus()}catch(Vt){}}function he(Vt,Xt){if(Xt.keyCode===9){var Yt=Le(Vt),tr=Yt[Xt.shiftKey?0:Yt.length-1],jt=tr===document.activeElement||Vt===document.activeElement;if(jt){var or=Yt[Xt.shiftKey?Yt.length-1:0];or.focus(),Xt.preventDefault()}}}var Ee=x(10228),Xe=x(16089),et=Ee.Z.LEFT,ze=Ee.Z.RIGHT,qe=Ee.Z.UP,Et=Ee.Z.DOWN,Lt=Ee.Z.ENTER,Ot=Ee.Z.ESC,sr=Ee.Z.HOME,er=Ee.Z.END,yr=[qe,Et,et,ze];function lr(Vt,Xt,Yt,tr){var jt,or,cr,Pr,yn="prev",Cn="next",Ai="children",ni="parent";if(Vt==="inline"&&tr===Lt)return{inlineTrigger:!0};var Ei=(jt={},(0,Ae.Z)(jt,qe,yn),(0,Ae.Z)(jt,Et,Cn),jt),ei=(or={},(0,Ae.Z)(or,et,Yt?Cn:yn),(0,Ae.Z)(or,ze,Yt?yn:Cn),(0,Ae.Z)(or,Et,Ai),(0,Ae.Z)(or,Lt,Ai),or),jn=(cr={},(0,Ae.Z)(cr,qe,yn),(0,Ae.Z)(cr,Et,Cn),(0,Ae.Z)(cr,Lt,Ai),(0,Ae.Z)(cr,Ot,ni),(0,Ae.Z)(cr,et,Yt?Ai:ni),(0,Ae.Z)(cr,ze,Yt?ni:Ai),cr),xi={inline:Ei,horizontal:ei,vertical:jn,inlineSub:Ei,horizontalSub:jn,verticalSub:jn},wi=(Pr=xi["".concat(Vt).concat(Xt?"":"Sub")])===null||Pr===void 0?void 0:Pr[tr];switch(wi){case yn:return{offset:-1,sibling:!0};case Cn:return{offset:1,sibling:!0};case ni:return{offset:-1,sibling:!1};case Ai: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 dt(Vt,Xt){for(var Yt=Vt||document.activeElement;Yt;){if(Xt.has(Yt))return Yt;Yt=Yt.parentElement}return null}function I(Vt,Xt){var Yt=Le(Vt,!0);return Yt.filter(function(tr){return Xt.has(tr)})}function m(Vt,Xt,Yt){var tr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Vt)return null;var jt=I(Vt,Xt),or=jt.length,cr=jt.findIndex(function(Pr){return Yt===Pr});return tr<0?cr===-1?cr=or-1:cr-=1:tr>0&&(cr+=1),cr=(cr+or)%or,jt[cr]}var u=function(Xt,Yt){var tr=new Set,jt=new Map,or=new Map;return Xt.forEach(function(cr){var Pr=document.querySelector("[data-menu-id='".concat(L(Yt,cr),"']"));Pr&&(tr.add(Pr),or.set(Pr,cr),jt.set(cr,Pr))}),{elements:tr,key2element:jt,element2key:or}};function C(Vt,Xt,Yt,tr,jt,or,cr,Pr,yn,Cn){var Ai=M.useRef(),ni=M.useRef();ni.current=Xt;var Ei=function(){Xe.Z.cancel(Ai.current)};return M.useEffect(function(){return function(){Ei()}},[]),function(ei){var jn=ei.which;if([].concat(yr,[Lt,Ot,sr,er]).includes(jn)){var xi=or(),wi=u(xi,tr),Ci=wi,ui=Ci.elements,Bi=Ci.key2element,Xi=Ci.element2key,ri=Bi.get(Xt),Pi=dt(ri,ui),Ha=Xi.get(Pi),ci=lr(Vt,cr(Ha,!0).length===1,Yt,jn);if(!ci&&jn!==sr&&jn!==er)return;(yr.includes(jn)||[sr,er].includes(jn))&&ei.preventDefault();var fn=function(Aa){if(Aa){var Bo=Aa,Vn=Aa.querySelector("a");Vn!=null&&Vn.getAttribute("href")&&(Bo=Vn);var In=Xi.get(Aa);Pr(In),Ei(),Ai.current=(0,Xe.Z)(function(){ni.current===In&&Bo.focus()})}};if([sr,er].includes(jn)||ci.sibling||!Pi){var ln;!Pi||Vt==="inline"?ln=jt.current:ln=G(Pi);var Jn,Kn=I(ln,ui);jn===sr?Jn=Kn[0]:jn===er?Jn=Kn[Kn.length-1]:Jn=m(ln,ui,Pi,ci.offset),fn(Jn)}else if(ci.inlineTrigger)yn(Ha);else if(ci.offset>0)yn(Ha,!0),Ei(),Ai.current=(0,Xe.Z)(function(){wi=u(xi,tr);var Ua=Pi.getAttribute("aria-controls"),Aa=document.getElementById(Ua),Bo=m(Aa,wi.elements);fn(Bo)},5);else if(ci.offset<0){var pi=cr(Ha,!0),qi=pi[pi.length-2],Mi=Bi.get(qi);yn(qi,!1),fn(Mi)}}Cn==null||Cn(ei)}}function q(Vt){Promise.resolve().then(Vt)}var Se="__RC_UTIL_PATH_SPLIT__",H=function(Xt){return Xt.join(Se)},ie=function(Xt){return Xt.split(Se)},Qe="rc-menu-more";function we(){var Vt=M.useState({}),Xt=(0,te.Z)(Vt,2),Yt=Xt[1],tr=(0,M.useRef)(new Map),jt=(0,M.useRef)(new Map),or=M.useState([]),cr=(0,te.Z)(or,2),Pr=cr[0],yn=cr[1],Cn=(0,M.useRef)(0),Ai=(0,M.useRef)(!1),ni=function(){Ai.current||Yt({})},Ei=(0,M.useCallback)(function(Bi,Xi){var ri=H(Xi);jt.current.set(ri,Bi),tr.current.set(Bi,ri),Cn.current+=1;var Pi=Cn.current;q(function(){Pi===Cn.current&&ni()})},[]),ei=(0,M.useCallback)(function(Bi,Xi){var ri=H(Xi);jt.current.delete(ri),tr.current.delete(Bi)},[]),jn=(0,M.useCallback)(function(Bi){yn(Bi)},[]),xi=(0,M.useCallback)(function(Bi,Xi){var ri=tr.current.get(Bi)||"",Pi=ie(ri);return Xi&&Pr.includes(Pi[0])&&Pi.unshift(Qe),Pi},[Pr]),wi=(0,M.useCallback)(function(Bi,Xi){return Bi.some(function(ri){var Pi=xi(ri,!0);return Pi.includes(Xi)})},[xi]),Ci=function(){var Xi=(0,Ne.Z)(tr.current.keys());return Pr.length&&Xi.push(Qe),Xi},ui=(0,M.useCallback)(function(Bi){var Xi="".concat(tr.current.get(Bi)).concat(Se),ri=new Set;return(0,Ne.Z)(jt.current.keys()).forEach(function(Pi){Pi.startsWith(Xi)&&ri.add(jt.current.get(Pi))}),ri},[]);return M.useEffect(function(){return function(){Ai.current=!0}},[]),{registerPath:Ei,unregisterPath:ei,refreshOverflowKeys:jn,isSubPathKey:wi,getKeyPath:xi,getKeys:Ci,getSubPathKeys:ui}}function ye(Vt){var Xt=M.useRef(Vt);Xt.current=Vt;var Yt=M.useCallback(function(){for(var tr,jt=arguments.length,or=new Array(jt),cr=0;cr<jt;cr++)or[cr]=arguments[cr];return(tr=Xt.current)===null||tr===void 0?void 0:tr.call.apply(tr,[Xt].concat(or))},[]);return Vt?Yt:void 0}var je=Math.random().toFixed(5).toString().slice(2),xt=0;function de(Vt){var Xt=(0,v.Z)(Vt,{value:Vt}),Yt=(0,te.Z)(Xt,2),tr=Yt[0],jt=Yt[1];return M.useEffect(function(){xt+=1;var or="".concat(je,"-").concat(xt);jt("rc-menu-uuid-".concat(or))},[]),tr}var st=x(67732),tt=x(83652),Ie=x(42403),De=x(158),lt=x(2738),Ut=x(8654);function kt(Vt,Xt,Yt,tr){var jt=M.useContext(ne),or=jt.activeKey,cr=jt.onActive,Pr=jt.onInactive,yn={active:or===Vt};return Xt||(yn.onMouseEnter=function(Cn){Yt==null||Yt({key:Vt,domEvent:Cn}),cr(Vt)},yn.onMouseLeave=function(Cn){tr==null||tr({key:Vt,domEvent:Cn}),Pr(Vt)}),yn}function rr(Vt){var Xt=M.useContext(ne),Yt=Xt.mode,tr=Xt.rtl,jt=Xt.inlineIndent;if(Yt!=="inline")return null;var or=Vt;return tr?{paddingRight:or*jt}:{paddingLeft:or*jt}}function Fr(Vt){var Xt=Vt.icon,Yt=Vt.props,tr=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||tr||null)}var kr=["item"];function Dr(Vt){var Xt=Vt.item,Yt=(0,V.Z)(Vt,kr);return Object.defineProperty(Yt,"item",{get:function(){return(0,_.ZP)(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),Xt}}),Yt}var Nr=["title","attribute","elementRef"],xr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ur=["active"],Kr=function(Vt){(0,Ie.Z)(Yt,Vt);var Xt=(0,De.Z)(Yt);function Yt(){return(0,st.Z)(this,Yt),Xt.apply(this,arguments)}return(0,tt.Z)(Yt,[{key:"render",value:function(){var jt=this.props,or=jt.title,cr=jt.attribute,Pr=jt.elementRef,yn=(0,V.Z)(jt,Nr),Cn=(0,lt.Z)(yn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,_.ZP)(!cr,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),M.createElement(F.Z.Item,(0,pe.Z)({},cr,{title:typeof or=="string"?or:void 0},Cn,{ref:Pr}))}}]),Yt}(M.Component),pn=M.forwardRef(function(Vt,Xt){var Yt,tr=Vt.style,jt=Vt.className,or=Vt.eventKey,cr=Vt.warnKey,Pr=Vt.disabled,yn=Vt.itemIcon,Cn=Vt.children,Ai=Vt.role,ni=Vt.onMouseEnter,Ei=Vt.onMouseLeave,ei=Vt.onClick,jn=Vt.onKeyDown,xi=Vt.onFocus,wi=(0,V.Z)(Vt,xr),Ci=Y(or),ui=M.useContext(ne),Bi=ui.prefixCls,Xi=ui.onItemClick,ri=ui.disabled,Pi=ui.overflowDisabled,Ha=ui.itemIcon,ci=ui.selectedKeys,fn=ui.onActive,ln=M.useContext(fe),Jn=ln._internalRenderMenuItem,Kn="".concat(Bi,"-item"),pi=M.useRef(),qi=M.useRef(),Mi=ri||Pr,Ua=(0,Ut.x1)(Xt,qi),Aa=Be(or),Bo=function(po){return{key:or,keyPath:(0,Ne.Z)(Aa).reverse(),item:pi.current,domEvent:po}},Vn=yn||Ha,In=kt(or,Mi,ni,Ei),Di=In.active,Ji=(0,V.Z)(In,ur),Fa=ci.includes(or),Is=rr(Aa.length),$a=function(po){if(!Mi){var bs=Bo(po);ei==null||ei(Dr(bs)),Xi(bs)}},fa=function(po){if(jn==null||jn(po),po.which===Ee.Z.ENTER){var bs=Bo(po);ei==null||ei(Dr(bs)),Xi(bs)}},Io=function(po){fn(or),xi==null||xi(po)},So={};Vt.role==="option"&&(So["aria-selected"]=Fa);var Po=M.createElement(Kr,(0,pe.Z)({ref:pi,elementRef:Ua,role:Ai===null?"none":Ai||"menuitem",tabIndex:Pr?null:-1,"data-menu-id":Pi&&Ci?null:Ci},wi,Ji,So,{component:"li","aria-disabled":Pr,style:(0,P.Z)((0,P.Z)({},Is),tr),className:g()(Kn,(Yt={},(0,Ae.Z)(Yt,"".concat(Kn,"-active"),Di),(0,Ae.Z)(Yt,"".concat(Kn,"-selected"),Fa),(0,Ae.Z)(Yt,"".concat(Kn,"-disabled"),Mi),Yt),jt),onClick:$a,onKeyDown:fa,onFocus:Io}),Cn,M.createElement(Fr,{props:(0,P.Z)((0,P.Z)({},Vt),{},{isSelected:Fa}),icon:Vn}));return Jn&&(Po=Jn(Po,Vt,{selected:Fa})),Po});function kn(Vt,Xt){var Yt=Vt.eventKey,tr=me(),jt=Be(Yt);return M.useEffect(function(){if(tr)return tr.registerPath(Yt,jt),function(){tr.unregisterPath(Yt,jt)}},[jt]),tr?null:M.createElement(pn,(0,pe.Z)({},Vt,{ref:Xt}))}var mn=M.forwardRef(kn),Dn=["className","children"],Ki=function(Xt,Yt){var tr=Xt.className,jt=Xt.children,or=(0,V.Z)(Xt,Dn),cr=M.useContext(ne),Pr=cr.prefixCls,yn=cr.mode,Cn=cr.rtl;return M.createElement("ul",(0,pe.Z)({className:g()(Pr,Cn&&"".concat(Pr,"-rtl"),"".concat(Pr,"-sub"),"".concat(Pr,"-").concat(yn==="inline"?"inline":"vertical"),tr),role:"menu"},or,{"data-menu-list":!0,ref:Yt}),jt)},hr=M.forwardRef(Ki);hr.displayName="SubMenuList";var Gn=hr,Hi=x(11592);function di(Vt,Xt){return(0,Hi.Z)(Vt).map(function(Yt,tr){if(M.isValidElement(Yt)){var jt,or,cr=Yt.key,Pr=(jt=(or=Yt.props)===null||or===void 0?void 0:or.eventKey)!==null&&jt!==void 0?jt:cr,yn=Pr==null;yn&&(Pr="tmp_key-".concat([].concat((0,Ne.Z)(Xt),[tr]).join("-")));var Cn={key:Pr,eventKey:Pr};return M.cloneElement(Yt,Cn)}return Yt})}var $i=x(35593),Ri={adjustX:1,adjustY:1},Zi={topLeft:{points:["bl","tl"],overflow:Ri},topRight:{points:["br","tr"],overflow:Ri},bottomLeft:{points:["tl","bl"],overflow:Ri},bottomRight:{points:["tr","br"],overflow:Ri},leftTop:{points:["tr","tl"],overflow:Ri},leftBottom:{points:["br","bl"],overflow:Ri},rightTop:{points:["tl","tr"],overflow:Ri},rightBottom:{points:["bl","br"],overflow:Ri}},za={topLeft:{points:["bl","tl"],overflow:Ri},topRight:{points:["br","tr"],overflow:Ri},bottomLeft:{points:["tl","bl"],overflow:Ri},bottomRight:{points:["tr","br"],overflow:Ri},rightTop:{points:["tr","tl"],overflow:Ri},rightBottom:{points:["br","bl"],overflow:Ri},leftTop:{points:["tl","tr"],overflow:Ri},leftBottom:{points:["bl","br"],overflow:Ri}},Fi=null;function qn(Vt,Xt,Yt){if(Xt)return Xt;if(Yt)return Yt[Vt]||Yt.other}var ai={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function yi(Vt){var Xt=Vt.prefixCls,Yt=Vt.visible,tr=Vt.children,jt=Vt.popup,or=Vt.popupStyle,cr=Vt.popupClassName,Pr=Vt.popupOffset,yn=Vt.disabled,Cn=Vt.mode,Ai=Vt.onVisibleChange,ni=M.useContext(ne),Ei=ni.getPopupContainer,ei=ni.rtl,jn=ni.subMenuOpenDelay,xi=ni.subMenuCloseDelay,wi=ni.builtinPlacements,Ci=ni.triggerSubMenuAction,ui=ni.forceSubMenuRender,Bi=ni.rootClassName,Xi=ni.motion,ri=ni.defaultMotions,Pi=M.useState(!1),Ha=(0,te.Z)(Pi,2),ci=Ha[0],fn=Ha[1],ln=ei?(0,P.Z)((0,P.Z)({},za),wi):(0,P.Z)((0,P.Z)({},Zi),wi),Jn=ai[Cn],Kn=qn(Cn,Xi,ri),pi=M.useRef(Kn);Cn!=="inline"&&(pi.current=Kn);var qi=(0,P.Z)((0,P.Z)({},pi.current),{},{leavedClassName:"".concat(Xt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Mi=M.useRef();return M.useEffect(function(){return Mi.current=(0,Xe.Z)(function(){fn(Yt)}),function(){Xe.Z.cancel(Mi.current)}},[Yt]),M.createElement($i.Z,{prefixCls:Xt,popupClassName:g()("".concat(Xt,"-popup"),(0,Ae.Z)({},"".concat(Xt,"-rtl"),ei),cr,Bi),stretch:Cn==="horizontal"?"minWidth":null,getPopupContainer:Ei,builtinPlacements:ln,popupPlacement:Jn,popupVisible:ci,popup:jt,popupStyle:or,popupAlign:Pr&&{offset:Pr},action:yn?[]:[Ci],mouseEnterDelay:jn,mouseLeaveDelay:xi,onPopupVisibleChange:Ai,forceRender:ui,popupMotion:qi,fresh:!0},tr)}var ge=x(77900);function Me(Vt){var Xt=Vt.id,Yt=Vt.open,tr=Vt.keyPath,jt=Vt.children,or="inline",cr=M.useContext(ne),Pr=cr.prefixCls,yn=cr.forceSubMenuRender,Cn=cr.motion,Ai=cr.defaultMotions,ni=cr.mode,Ei=M.useRef(!1);Ei.current=ni===or;var ei=M.useState(!Ei.current),jn=(0,te.Z)(ei,2),xi=jn[0],wi=jn[1],Ci=Ei.current?Yt:!1;M.useEffect(function(){Ei.current&&wi(!1)},[ni]);var ui=(0,P.Z)({},qn(or,Cn,Ai));tr.length>1&&(ui.motionAppear=!1);var Bi=ui.onVisibleChanged;return ui.onVisibleChanged=function(Xi){return!Ei.current&&!Xi&&wi(!0),Bi==null?void 0:Bi(Xi)},xi?null:M.createElement(W,{mode:or,locked:!Ei.current},M.createElement(ge.default,(0,pe.Z)({visible:Ci},ui,{forceRender:yn,removeOnLeave:!1,leavedClassName:"".concat(Pr,"-hidden")}),function(Xi){var ri=Xi.className,Pi=Xi.style;return M.createElement(Gn,{id:Xt,className:ri,style:Pi},jt)}))}var Fe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ge=["active"],Pt=function(Xt){var Yt,tr=Xt.style,jt=Xt.className,or=Xt.title,cr=Xt.eventKey,Pr=Xt.warnKey,yn=Xt.disabled,Cn=Xt.internalPopupClose,Ai=Xt.children,ni=Xt.itemIcon,Ei=Xt.expandIcon,ei=Xt.popupClassName,jn=Xt.popupOffset,xi=Xt.popupStyle,wi=Xt.onClick,Ci=Xt.onMouseEnter,ui=Xt.onMouseLeave,Bi=Xt.onTitleClick,Xi=Xt.onTitleMouseEnter,ri=Xt.onTitleMouseLeave,Pi=(0,V.Z)(Xt,Fe),Ha=Y(cr),ci=M.useContext(ne),fn=ci.prefixCls,ln=ci.mode,Jn=ci.openKeys,Kn=ci.disabled,pi=ci.overflowDisabled,qi=ci.activeKey,Mi=ci.selectedKeys,Ua=ci.itemIcon,Aa=ci.expandIcon,Bo=ci.onItemClick,Vn=ci.onOpenChange,In=ci.onActive,Di=M.useContext(fe),Ji=Di._internalRenderSubMenuItem,Fa=M.useContext(Ue),Is=Fa.isSubPathKey,$a=Be(),fa="".concat(fn,"-submenu"),Io=Kn||yn,So=M.useRef(),Po=M.useRef(),Os=ni!=null?ni:Ua,po=Ei!=null?Ei:Aa,bs=Jn.includes(cr),Ps=!pi&&bs,$s=Is(Mi,cr),To=kt(cr,Io,Xi,ri),Uo=To.active,ys=(0,V.Z)(To,Ge),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),Ci==null||Ci({key:cr,domEvent:xs})},Dc=function(xs){Ql(!1),ui==null||ui({key:cr,domEvent:xs})},Kl=M.useMemo(function(){return Uo||(ln!=="inline"?ic||Is([qi],cr):!1)},[ln,Uo,qi,ic,cr,Is]),Hl=rr($a.length),Vs=function(xs){Io||(Bi==null||Bi({key:cr,domEvent:xs}),ln==="inline"&&Vn(cr,!bs))},as=ye(function(ws){wi==null||wi(Dr(ws)),Bo(ws)}),ii=function(xs){ln!=="inline"&&Vn(cr,xs)},la=function(){In(cr)},ta=Ha&&"".concat(Ha,"-popup"),oa=M.createElement("div",(0,pe.Z)({role:"menuitem",style:Hl,className:"".concat(fa,"-title"),tabIndex:Io?null:-1,ref:So,title:typeof or=="string"?or:null,"data-menu-id":pi&&Ha?null:Ha,"aria-expanded":Ps,"aria-haspopup":!0,"aria-controls":ta,"aria-disabled":Io,onClick:Vs,onFocus:la},ys),or,M.createElement(Fr,{icon:ln!=="horizontal"?po:void 0,props:(0,P.Z)((0,P.Z)({},Xt),{},{isOpen:Ps,isSubMenu:!0})},M.createElement("i",{className:"".concat(fa,"-arrow")}))),Da=M.useRef(ln);if(ln!=="inline"&&$a.length>1?Da.current="vertical":Da.current=ln,!pi){var so=Da.current;oa=M.createElement(yi,{mode:so,prefixCls:fa,visible:!Cn&&Ps&&ln!=="inline",popupClassName:ei,popupOffset:jn,popupStyle:xi,popup:M.createElement(W,{mode:so==="horizontal"?"vertical":so},M.createElement(Gn,{id:ta,ref:Po},Ai)),disabled:Io,onVisibleChange:ii},oa)}var Ws=M.createElement(F.Z.Item,(0,pe.Z)({role:"none"},Pi,{component:"li",style:tr,className:g()(fa,"".concat(fa,"-").concat(ln),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}),oa,!pi&&M.createElement(Me,{id:ta,open:Ps,keyPath:$a},Ai));return Ji&&(Ws=Ji(Ws,Xt,{selected:$s,active:Kl,open:Ps,disabled:Io})),M.createElement(W,{onItemClick:as,mode:ln==="horizontal"?"vertical":ln,itemIcon:Os,expandIcon:po},Ws)};function Dt(Vt){var Xt=Vt.eventKey,Yt=Vt.children,tr=Be(Xt),jt=di(Yt,tr),or=me();M.useEffect(function(){if(or)return or.registerPath(Xt,tr),function(){or.unregisterPath(Xt,tr)}},[tr]);var cr;return or?cr=jt:cr=M.createElement(Pt,Vt,jt),M.createElement(Oe.Provider,{value:tr},cr)}var Er=x(76190),nr=["className","title","eventKey","children"],Or=["children"],Hr=function(Xt){var Yt=Xt.className,tr=Xt.title,jt=Xt.eventKey,or=Xt.children,cr=(0,V.Z)(Xt,nr),Pr=M.useContext(ne),yn=Pr.prefixCls,Cn="".concat(yn,"-item-group");return M.createElement("li",(0,pe.Z)({role:"presentation"},cr,{onClick:function(ni){return ni.stopPropagation()},className:g()(Cn,Yt)}),M.createElement("div",{role:"presentation",className:"".concat(Cn,"-title"),title:typeof tr=="string"?tr:void 0},tr),M.createElement("ul",{role:"group",className:"".concat(Cn,"-list")},or))};function an(Vt){var Xt=Vt.children,Yt=(0,V.Z)(Vt,Or),tr=Be(Yt.eventKey),jt=di(Xt,tr),or=me();return or?jt:M.createElement(Hr,(0,lt.Z)(Yt,["warnKey"]),jt)}function jr(Vt){var Xt=Vt.className,Yt=Vt.style,tr=M.useContext(ne),jt=tr.prefixCls,or=me();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 tr=Xt,jt=tr.label,or=tr.children,cr=tr.key,Pr=tr.type,yn=(0,V.Z)(tr,Rr),Cn=cr!=null?cr:"tmp-".concat(Yt);return or||Pr==="group"?Pr==="group"?M.createElement(an,(0,pe.Z)({key:Cn},yn,{title:jt}),en(or)):M.createElement(Dt,(0,pe.Z)({key:Cn},yn,{title:jt}),en(or)):Pr==="divider"?M.createElement(jr,(0,pe.Z)({key:Cn},yn)):M.createElement(mn,(0,pe.Z)({key:Cn},yn),jt)}return null}).filter(function(Xt){return Xt})}function wn(Vt,Xt,Yt){var tr=Vt;return Xt&&(tr=en(Xt)),di(tr,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"],Nn=[],Qn=M.forwardRef(function(Vt,Xt){var Yt,tr,jt=Vt,or=jt.prefixCls,cr=or===void 0?"rc-menu":or,Pr=jt.rootClassName,yn=jt.style,Cn=jt.className,Ai=jt.tabIndex,ni=Ai===void 0?0:Ai,Ei=jt.items,ei=jt.children,jn=jt.direction,xi=jt.id,wi=jt.mode,Ci=wi===void 0?"vertical":wi,ui=jt.inlineCollapsed,Bi=jt.disabled,Xi=jt.disabledOverflow,ri=jt.subMenuOpenDelay,Pi=ri===void 0?.1:ri,Ha=jt.subMenuCloseDelay,ci=Ha===void 0?.1:Ha,fn=jt.forceSubMenuRender,ln=jt.defaultOpenKeys,Jn=jt.openKeys,Kn=jt.activeKey,pi=jt.defaultActiveFirst,qi=jt.selectable,Mi=qi===void 0?!0:qi,Ua=jt.multiple,Aa=Ua===void 0?!1:Ua,Bo=jt.defaultSelectedKeys,Vn=jt.selectedKeys,In=jt.onSelect,Di=jt.onDeselect,Ji=jt.inlineIndent,Fa=Ji===void 0?24:Ji,Is=jt.motion,$a=jt.defaultMotions,fa=jt.triggerSubMenuAction,Io=fa===void 0?"hover":fa,So=jt.builtinPlacements,Po=jt.itemIcon,Os=jt.expandIcon,po=jt.overflowedIndicator,bs=po===void 0?"...":po,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(ei,Ei,Nn)},[ei,Ei]),Dc=M.useState(!1),Kl=(0,te.Z)(Dc,2),Hl=Kl[0],Vs=Kl[1],as=M.useRef(),ii=de(xi),la=jn==="rtl",ta=(0,v.Z)(ln,{value:Jn,postState:function(Oo){return Oo||Nn}}),oa=(0,te.Z)(ta,2),Da=oa[0],so=oa[1],Ws=function(Oo){var Jo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function yc(){so(Oo),Uo==null||Uo(Oo)}Jo?(0,O.flushSync)(yc):yc()},ws=M.useState(Da),xs=(0,te.Z)(ws,2),ms=xs[0],eo=xs[1],Ra=M.useRef(!1),os=M.useMemo(function(){return(Ci==="inline"||Ci==="vertical")&&ui?["vertical",ui]:[Ci,!1]},[Ci,ui]),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?so(ms):Ws(Nn))},[Fs,Go]);var qc=M.useState(0),Ts=(0,te.Z)(qc,2),OA=Ts[0],uc=Ts[1],jl=OA>=Zs.length-1||Ac!=="horizontal"||Xi;M.useEffect(function(){Fo&&eo(Da)},[Da]),M.useEffect(function(){return Ra.current=!0,function(){Ra.current=!1}},[]);var to=we(),Gs=to.registerPath,vA=to.unregisterPath,Su=to.refreshOverflowKeys,ls=to.isSubPathKey,Ca=to.getKeyPath,ya=to.getKeys,ts=to.getSubPathKeys,go=M.useMemo(function(){return{registerPath:Gs,unregisterPath:vA}},[Gs,vA]),jo=M.useMemo(function(){return{isSubPathKey:ls}},[ls]);M.useEffect(function(){Su(jl?Nn:Zs.slice(OA+1).map(function(Xo){return Xo.key}))},[OA,jl]);var zo=(0,v.Z)(Kn||pi&&((Yt=Zs[0])===null||Yt===void 0?void 0:Yt.key),{value:Kn}),No=(0,te.Z)(zo,2),Cs=No[0],oc=No[1],Vc=ye(function(Xo){oc(Xo)}),Xs=ye(function(){oc(void 0)});(0,M.useImperativeHandle)(Xt,function(){return{list:as.current,focus:function(Oo){var Jo,yc=ya(),zl=u(yc,ii),qu=zl.elements,yA=zl.key2element,zA=zl.element2key,Md=I(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,Oo)}}}});var bA=(0,v.Z)(Bo||[],{value:Vn,postState:function(Oo){return Array.isArray(Oo)?Oo:Oo==null?Nn:[Oo]}}),xl=(0,te.Z)(bA,2),eA=xl[0],rl=xl[1],Id=function(Oo){if(Mi){var Jo=Oo.key,yc=eA.includes(Jo),zl;Aa?yc?zl=eA.filter(function(yA){return yA!==Jo}):zl=[].concat((0,Ne.Z)(eA),[Jo]):zl=[Jo],rl(zl);var qu=(0,P.Z)((0,P.Z)({},Oo),{},{selectedKeys:zl});yc?Di==null||Di(qu):In==null||In(qu)}!Aa&&Da.length&&Ac!=="inline"&&Ws(Nn)},ru=ye(function(Xo){To==null||To(Dr(Xo)),Id(Xo)}),jA=ye(function(Xo,Oo){var Jo=Da.filter(function(zl){return zl!==Xo});if(Oo)Jo.push(Xo);else if(Ac!=="inline"){var yc=ts(Xo);Jo=Jo.filter(function(zl){return!yc.has(zl)})}(0,$.Z)(Da,Jo,!0)||Ws(Jo,!0)}),cf=function(Oo,Jo){var yc=Jo!=null?Jo:!Da.includes(Oo);jA(Oo,yc)},Wc=C(Ac,Cs,la,ii,as,ya,Ca,oc,cf,ys);M.useEffect(function(){Vs(!0)},[]);var Yu=M.useMemo(function(){return{_internalRenderMenuItem:ic,_internalRenderSubMenuItem:ac}},[ic,ac]),Nc=Ac!=="horizontal"||Xi?Zs:Zs.map(function(Xo,Oo){return M.createElement(W,{key:Xo.key,overflowDisabled:Oo>OA},Xo)}),Fd=M.createElement(F.Z,(0,pe.Z)({id:xi,ref:as,prefixCls:"".concat(cr,"-overflow"),component:"ul",itemComponent:mn,className:g()(cr,"".concat(cr,"-root"),"".concat(cr,"-").concat(Ac),Cn,(tr={},(0,Ae.Z)(tr,"".concat(cr,"-inline-collapsed"),tl),(0,Ae.Z)(tr,"".concat(cr,"-rtl"),la),tr),Pr),dir:jn,style:yn,role:"menu",tabIndex:ni,data:Nc,renderRawItem:function(Oo){return Oo},renderRawRest:function(Oo){var Jo=Oo.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"||Xi?F.Z.INVALIDATE:F.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Oo){uc(Oo)},onKeyDown:Wc},Ql));return M.createElement(fe.Provider,{value:Yu},M.createElement(T.Provider,{value:ii},M.createElement(W,{prefixCls:cr,rootClassName:Pr,mode:Ac,openKeys:Da,rtl:la,disabled:Bi,motion:Hl?Is:null,defaultMotions:Hl?$a:null,activeKey:Cs,onActive:Vc,onInactive:Xs,selectedKeys:eA,inlineIndent:Fa,subMenuOpenDelay:Pi,subMenuCloseDelay:ci,forceSubMenuRender:fn,builtinPlacements:So,triggerSubMenuAction:Io,getPopupContainer:$s,itemIcon:Po,expandIcon:Os,onItemClick:ru,onOpenChange:jA},M.createElement(Ue.Provider,{value:jo},Fd),M.createElement("div",{style:{display:"none"},"aria-hidden":!0},M.createElement(le.Provider,{value:go},Zs)))))}),hi=Qn,On=hi;On.Item=mn,On.SubMenu=Dt,On.ItemGroup=an,On.Divider=jr;var Xn=On},83836:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Te}});var pe=x(54476),Ae=x(33885),P=x(42978),Ne=x(75931),te=x(59301),V=x(92310),S=x.n(V),g=x(29301),F=x(34280),v=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$=void 0;function _(be,ke){var he=be.prefixCls,Ee=be.invalidate,Xe=be.item,et=be.renderItem,ze=be.responsive,qe=be.responsiveDisabled,Et=be.registerSize,Lt=be.itemKey,Ot=be.className,sr=be.style,er=be.children,yr=be.display,lr=be.order,G=be.component,dt=G===void 0?"div":G,I=(0,Ne.Z)(be,v),m=ze&&!yr;function u(ie){Et(Lt,ie)}te.useEffect(function(){return function(){u(null)}},[]);var C=et&&Xe!==$?et(Xe,{index:lr}):er,q;Ee||(q={opacity:m?0:1,height:m?0:$,overflowY:m?"hidden":$,order:ze?lr:$,pointerEvents:m?"none":$,position:m?"absolute":$});var Se={};m&&(Se["aria-hidden"]=!0);var H=te.createElement(dt,(0,pe.Z)({className:S()(!Ee&&he,Ot),style:(0,Ae.Z)((0,Ae.Z)({},q),sr)},Se,I,{ref:ke}),C);return ze&&(H=te.createElement(g.Z,{onResize:function(Qe){var we=Qe.offsetWidth;u(we)},disabled:qe},H)),H}var M=te.forwardRef(_);M.displayName="Item";var O=M,T=x(6089),L=x(4676),Y=x(16089);function R(be){if(typeof MessageChannel=="undefined")(0,Y.Z)(be);else{var ke=new MessageChannel;ke.port1.onmessage=function(){return be()},ke.port2.postMessage(void 0)}}function se(){var be=te.useRef(null),ke=function(Ee){be.current||(be.current=[],R(function(){(0,L.unstable_batchedUpdates)(function(){be.current.forEach(function(Xe){Xe()}),be.current=null})})),be.current.push(Ee)};return ke}function ne(be,ke){var he=te.useState(ke),Ee=(0,P.Z)(he,2),Xe=Ee[0],et=Ee[1],ze=(0,T.Z)(function(qe){be(function(){et(qe)})});return[Xe,ze]}var J=te.createContext(null),W=["component"],K=["className"],le=["className"],me=function(ke,he){var Ee=te.useContext(J);if(!Ee){var Xe=ke.component,et=Xe===void 0?"div":Xe,ze=(0,Ne.Z)(ke,W);return te.createElement(et,(0,pe.Z)({},ze,{ref:he}))}var qe=Ee.className,Et=(0,Ne.Z)(Ee,K),Lt=ke.className,Ot=(0,Ne.Z)(ke,le);return te.createElement(J.Provider,{value:null},te.createElement(O,(0,pe.Z)({ref:he,className:S()(qe,Lt)},Et,Ot)))},Oe=te.forwardRef(me);Oe.displayName="RawItem";var Be=Oe,Ue=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],ee="responsive",fe="invalidate";function D(be){return"+ ".concat(be.length," ...")}function Ye(be,ke){var he=be.prefixCls,Ee=he===void 0?"rc-overflow":he,Xe=be.data,et=Xe===void 0?[]:Xe,ze=be.renderItem,qe=be.renderRawItem,Et=be.itemKey,Lt=be.itemWidth,Ot=Lt===void 0?10:Lt,sr=be.ssr,er=be.style,yr=be.className,lr=be.maxCount,G=be.renderRest,dt=be.renderRawRest,I=be.prefix,m=be.suffix,u=be.component,C=u===void 0?"div":u,q=be.itemComponent,Se=be.onVisibleChange,H=(0,Ne.Z)(be,Ue),ie=sr==="full",Qe=se(),we=ne(Qe,null),ye=(0,P.Z)(we,2),je=ye[0],xt=ye[1],de=je||0,st=ne(Qe,new Map),tt=(0,P.Z)(st,2),Ie=tt[0],De=tt[1],lt=ne(Qe,0),Ut=(0,P.Z)(lt,2),kt=Ut[0],rr=Ut[1],Fr=ne(Qe,0),kr=(0,P.Z)(Fr,2),Dr=kr[0],Nr=kr[1],xr=ne(Qe,0),ur=(0,P.Z)(xr,2),Kr=ur[0],pn=ur[1],kn=ne(Qe,0),mn=(0,P.Z)(kn,2),Dn=mn[0],Ki=mn[1],hr=(0,te.useState)(null),Gn=(0,P.Z)(hr,2),Hi=Gn[0],di=Gn[1],$i=(0,te.useState)(null),Ri=(0,P.Z)($i,2),Zi=Ri[0],za=Ri[1],Fi=te.useMemo(function(){return Zi===null&&ie?Number.MAX_SAFE_INTEGER:Zi||0},[Zi,je]),qn=(0,te.useState)(!1),ai=(0,P.Z)(qn,2),yi=ai[0],ge=ai[1],Me="".concat(Ee,"-item"),Fe=Math.max(kt,Dr),Ge=lr===ee,Pt=et.length&&Ge,Dt=lr===fe,Er=Pt||typeof lr=="number"&&et.length>lr,nr=(0,te.useMemo)(function(){var or=et;return Pt?je===null&&ie?or=et:or=et.slice(0,Math.min(et.length,de/Ot)):typeof lr=="number"&&(or=et.slice(0,lr)),or},[et,Ot,je,lr,Pt]),Or=(0,te.useMemo)(function(){return Pt?et.slice(Fi+1):et.slice(nr.length)},[et,nr,Pt,Fi]),Hr=(0,te.useCallback)(function(or,cr){var Pr;return typeof Et=="function"?Et(or):(Pr=Et&&(or==null?void 0:or[Et]))!==null&&Pr!==void 0?Pr:cr},[Et]),an=(0,te.useCallback)(ze||function(or){return or},[ze]);function jr(or,cr,Pr){Zi===or&&(cr===void 0||cr===Hi)||(za(or),Pr||(ge(or<et.length-1),Se==null||Se(or)),cr!==void 0&&di(cr))}function Rr(or,cr){xt(cr.clientWidth)}function en(or,cr){De(function(Pr){var yn=new Map(Pr);return cr===null?yn.delete(or):yn.set(or,cr),yn})}function wn(or,cr){Nr(cr),rr(Dr)}function on(or,cr){pn(cr)}function Nn(or,cr){Ki(cr)}function Qn(or){return Ie.get(Hr(nr[or],or))}(0,F.Z)(function(){if(de&&typeof Fe=="number"&&nr){var or=Kr+Dn,cr=nr.length,Pr=cr-1;if(!cr){jr(0,null);return}for(var yn=0;yn<cr;yn+=1){var Cn=Qn(yn);if(ie&&(Cn=Cn||0),Cn===void 0){jr(yn-1,void 0,!0);break}if(or+=Cn,Pr===0&&or<=de||yn===Pr-1&&or+Qn(Pr)<=de){jr(Pr,null);break}else if(or+Fe>de){jr(yn-1,or-Cn-Dn+Dr);break}}m&&Qn(0)+Dn>de&&di(null)}},[de,Ie,Dr,Kr,Dn,Hr,nr]);var hi=yi&&!!Or.length,On={};Hi!==null&&Pt&&(On={position:"absolute",left:Hi,top:0});var Xn={prefixCls:Me,responsive:Pt,component:q,invalidate:Dt},Vt=qe?function(or,cr){var Pr=Hr(or,cr);return te.createElement(J.Provider,{key:Pr,value:(0,Ae.Z)((0,Ae.Z)({},Xn),{},{order:cr,item:or,itemKey:Pr,registerSize:en,display:cr<=Fi})},qe(or,cr))}:function(or,cr){var Pr=Hr(or,cr);return te.createElement(O,(0,pe.Z)({},Xn,{order:cr,key:Pr,item:or,renderItem:an,itemKey:Pr,registerSize:en,display:cr<=Fi}))},Xt={order:hi?Fi:Number.MAX_SAFE_INTEGER,className:"".concat(Me,"-rest"),registerSize:wn,display:hi},Yt=G||D,tr=dt?te.createElement(J.Provider,{value:(0,Ae.Z)((0,Ae.Z)({},Xn),Xt)},dt(Or)):te.createElement(O,(0,pe.Z)({},Xn,Xt),typeof Yt=="function"?Yt(Or):Yt),jt=te.createElement(C,(0,pe.Z)({className:S()(!Dt&&Ee,yr),style:er,ref:ke},H),I&&te.createElement(O,(0,pe.Z)({},Xn,{responsive:Ge,responsiveDisabled:!Pt,order:-1,className:"".concat(Me,"-prefix"),registerSize:on,display:!0}),I),nr.map(Vt),Er?tr:null,m&&te.createElement(O,(0,pe.Z)({},Xn,{responsive:Ge,responsiveDisabled:!Pt,order:Fi,className:"".concat(Me,"-suffix"),registerSize:Nn,display:!0,style:On}),m));return Ge?te.createElement(g.Z,{onResize:Rr,disabled:!Pt},jt):jt}var Le=te.forwardRef(Ye);Le.displayName="Overflow",Le.Item=Be,Le.RESPONSIVE=ee,Le.INVALIDATE=fe;var Ce=Le,Te=Ce},91735:function(un,Tt){"use strict";Tt.Z={items_per_page:"\u6761/\u9875",jump_to:"\u8DF3\u81F3",jump_to_confirm:"\u786E\u5B9A",page:"\u9875",prev_page:"\u4E0A\u4E00\u9875",next_page:"\u4E0B\u4E00\u9875",prev_5:"\u5411\u524D 5 \u9875",next_5:"\u5411\u540E 5 \u9875",prev_3:"\u5411\u524D 3 \u9875",next_3:"\u5411\u540E 3 \u9875",page_size:"\u9875\u7801"}},17115:function(un,Tt,x){"use strict";x.d(Tt,{ZP:function(){return S}});var pe=x(42978),Ae=x(59301),P=x(47273),Ne=0,te=(0,P.Z)();function V(){var g;return te?(g=Ne,Ne+=1):g="TEST_OR_SSR",g}function S(g){var F=Ae.useState(),v=(0,pe.Z)(F,2),$=v[0],_=v[1];return Ae.useEffect(function(){_("rc_select_".concat(V()))},[]),g||$}},77861:function(un,Tt,x){"use strict";x.d(Tt,{Ac:function(){return je},Xo:function(){return Dr},Wx:function(){return xr},ZP:function(){return Me},lk:function(){return J}});var pe=x(54476),Ae=x(94480),P=x(20068),Ne=x(33885),te=x(42978),V=x(75931),S=x(76190),g=x(18929),F=x(48736),v=x(59301),$=x(92310),_=x.n($),M=x(34280),O=x(49658),T=x(10228),L=x(8654),Y=function(Ge){var Pt=Ge.className,Dt=Ge.customizeIcon,Er=Ge.customizeIconProps,nr=Ge.onMouseDown,Or=Ge.onClick,Hr=Ge.children,an;return typeof Dt=="function"?an=Dt(Er):an=Dt,v.createElement("span",{className:Pt,onMouseDown:function(Rr){Rr.preventDefault(),nr&&nr(Rr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Or,"aria-hidden":!0},an!==void 0?an:v.createElement("span",{className:_()(Pt.split(/\s+/).map(function(jr){return"".concat(jr,"-icon")}))},Hr))},R=Y;function se(Fe,Ge,Pt,Dt,Er){var nr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Or=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!!(!nr&&Dt&&(Pt.length||Or)&&!(Hr==="combobox"&&Or===""))},[Dt,nr,Pt.length,Or,Hr]);return{allowClear:jr,clearIcon:v.createElement(R,{className:"".concat(Fe,"-clear"),onMouseDown:Ge,customizeIcon:an},"\xD7")}}var ne=v.createContext(null);function J(){return v.useContext(ne)}function W(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ge=v.useState(!1),Pt=(0,te.Z)(Ge,2),Dt=Pt[0],Er=Pt[1],nr=v.useRef(null),Or=function(){window.clearTimeout(nr.current)};v.useEffect(function(){return Or},[]);var Hr=function(jr,Rr){Or(),nr.current=window.setTimeout(function(){Er(jr),Rr&&Rr()},Fe)};return[Dt,Hr,Or]}function K(){var Fe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ge=v.useRef(null),Pt=v.useRef(null);v.useEffect(function(){return function(){window.clearTimeout(Pt.current)}},[]);function Dt(Er){(Er||Ge.current===null)&&(Ge.current=Er),window.clearTimeout(Pt.current),Pt.current=window.setTimeout(function(){Ge.current=null},Fe)}return[function(){return Ge.current},Dt]}function le(Fe,Ge,Pt,Dt){var Er=v.useRef(null);Er.current={open:Ge,triggerOpen:Pt,customizedTrigger:Dt},v.useEffect(function(){function nr(Or){var Hr;if(!((Hr=Er.current)!==null&&Hr!==void 0&&Hr.customizedTrigger)){var an=Or.target;an.shadowRoot&&Or.composed&&(an=Or.composedPath()[0]||an),Er.current.open&&Fe().filter(function(jr){return jr}).every(function(jr){return!jr.contains(an)&&jr!==an})&&Er.current.triggerOpen(!1)}}return window.addEventListener("mousedown",nr),function(){return window.removeEventListener("mousedown",nr)}},[])}var me=x(26112),Oe=x(83836),Be=function(Ge,Pt){var Dt,Er,nr=Ge.prefixCls,Or=Ge.id,Hr=Ge.inputElement,an=Ge.disabled,jr=Ge.tabIndex,Rr=Ge.autoFocus,en=Ge.autoComplete,wn=Ge.editable,on=Ge.activeDescendantId,Nn=Ge.value,Qn=Ge.maxLength,hi=Ge.onKeyDown,On=Ge.onMouseDown,Xn=Ge.onChange,Vt=Ge.onPaste,Xt=Ge.onCompositionStart,Yt=Ge.onCompositionEnd,tr=Ge.open,jt=Ge.attrs,or=Hr||v.createElement("input",null),cr=or,Pr=cr.ref,yn=cr.props,Cn=yn.onKeyDown,Ai=yn.onChange,ni=yn.onMouseDown,Ei=yn.onCompositionStart,ei=yn.onCompositionEnd,jn=yn.style;return(0,F.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,Ne.Z)((0,Ne.Z)((0,Ne.Z)({type:"search"},yn),{},{id:Or,ref:(0,L.sQ)(Pt,Pr),disabled:an,tabIndex:jr,autoComplete:en||"off",autoFocus:Rr,className:_()("".concat(nr,"-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":tr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Or,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Or,"_list"),"aria-activedescendant":tr?on:void 0},jt),{},{value:wn?Nn:"",maxLength:Qn,readOnly:!wn,unselectable:wn?null:"on",style:(0,Ne.Z)((0,Ne.Z)({},jn),{},{opacity:wn?null:0}),onKeyDown:function(wi){hi(wi),Cn&&Cn(wi)},onMouseDown:function(wi){On(wi),ni&&ni(wi)},onChange:function(wi){Xn(wi),Ai&&Ai(wi)},onCompositionStart:function(wi){Xt(wi),Ei&&Ei(wi)},onCompositionEnd:function(wi){Yt(wi),ei&&ei(wi)},onPaste:Vt})),or},Ue=v.forwardRef(Be);Ue.displayName="Input";var ee=Ue;function fe(Fe){return Array.isArray(Fe)?Fe:Fe!==void 0?[Fe]:[]}var D=typeof window!="undefined"&&window.document&&window.document.documentElement,Ye=D;function Le(Fe){return Fe!=null}function Ce(Fe){return!Fe&&Fe!==0}function Te(Fe){return["string","number"].includes((0,S.Z)(Fe))}function be(Fe){var Ge=void 0;return Fe&&(Te(Fe.title)?Ge=Fe.title.toString():Te(Fe.label)&&(Ge=Fe.label.toString())),Ge}function ke(Fe,Ge){Ye?v.useLayoutEffect(Fe,Ge):v.useEffect(Fe,Ge)}function he(Fe){var Ge;return(Ge=Fe.key)!==null&&Ge!==void 0?Ge:Fe.value}var Ee=function(Ge){Ge.preventDefault(),Ge.stopPropagation()},Xe=function(Ge){var Pt=Ge.id,Dt=Ge.prefixCls,Er=Ge.values,nr=Ge.open,Or=Ge.searchValue,Hr=Ge.autoClearSearchValue,an=Ge.inputRef,jr=Ge.placeholder,Rr=Ge.disabled,en=Ge.mode,wn=Ge.showSearch,on=Ge.autoFocus,Nn=Ge.autoComplete,Qn=Ge.activeDescendantId,hi=Ge.tabIndex,On=Ge.removeIcon,Xn=Ge.maxTagCount,Vt=Ge.maxTagTextLength,Xt=Ge.maxTagPlaceholder,Yt=Xt===void 0?function(qi){return"+ ".concat(qi.length," ...")}:Xt,tr=Ge.tagRender,jt=Ge.onToggleOpen,or=Ge.onRemove,cr=Ge.onInputChange,Pr=Ge.onInputPaste,yn=Ge.onInputKeyDown,Cn=Ge.onInputMouseDown,Ai=Ge.onInputCompositionStart,ni=Ge.onInputCompositionEnd,Ei=v.useRef(null),ei=(0,v.useState)(0),jn=(0,te.Z)(ei,2),xi=jn[0],wi=jn[1],Ci=(0,v.useState)(!1),ui=(0,te.Z)(Ci,2),Bi=ui[0],Xi=ui[1],ri="".concat(Dt,"-selection"),Pi=nr||en==="multiple"&&Hr===!1||en==="tags"?Or:"",Ha=en==="tags"||en==="multiple"&&Hr===!1||wn&&(nr||Bi);ke(function(){wi(Ei.current.scrollWidth)},[Pi]);function ci(qi,Mi,Ua,Aa,Bo){return v.createElement("span",{className:_()("".concat(ri,"-item"),(0,P.Z)({},"".concat(ri,"-item-disabled"),Ua)),title:be(qi)},v.createElement("span",{className:"".concat(ri,"-item-content")},Mi),Aa&&v.createElement(R,{className:"".concat(ri,"-item-remove"),onMouseDown:Ee,onClick:Bo,customizeIcon:On},"\xD7"))}function fn(qi,Mi,Ua,Aa,Bo){var Vn=function(Di){Ee(Di),jt(!nr)};return v.createElement("span",{onMouseDown:Vn},tr({label:Mi,value:qi,disabled:Ua,closable:Aa,onClose:Bo}))}function ln(qi){var Mi=qi.disabled,Ua=qi.label,Aa=qi.value,Bo=!Rr&&!Mi,Vn=Ua;if(typeof Vt=="number"&&(typeof Ua=="string"||typeof Ua=="number")){var In=String(Vn);In.length>Vt&&(Vn="".concat(In.slice(0,Vt),"..."))}var Di=function(Fa){Fa&&Fa.stopPropagation(),or(qi)};return typeof tr=="function"?fn(Aa,Vn,Mi,Bo,Di):ci(qi,Vn,Mi,Bo,Di)}function Jn(qi){var Mi=typeof Yt=="function"?Yt(qi):Yt;return ci({title:Mi},Mi,!1)}var Kn=v.createElement("div",{className:"".concat(ri,"-search"),style:{width:xi},onFocus:function(){Xi(!0)},onBlur:function(){Xi(!1)}},v.createElement(ee,{ref:an,open:nr,prefixCls:Dt,id:Pt,inputElement:null,disabled:Rr,autoFocus:on,autoComplete:Nn,editable:Ha,activeDescendantId:Qn,value:Pi,onKeyDown:yn,onMouseDown:Cn,onChange:cr,onPaste:Pr,onCompositionStart:Ai,onCompositionEnd:ni,tabIndex:hi,attrs:(0,me.Z)(Ge,!0)}),v.createElement("span",{ref:Ei,className:"".concat(ri,"-search-mirror"),"aria-hidden":!0},Pi,"\xA0")),pi=v.createElement(Oe.Z,{prefixCls:"".concat(ri,"-overflow"),data:Er,renderItem:ln,renderRest:Jn,suffix:Kn,itemKey:he,maxCount:Xn});return v.createElement(v.Fragment,null,pi,!Er.length&&!Pi&&v.createElement("span",{className:"".concat(ri,"-placeholder")},jr))},et=Xe,ze=function(Ge){var Pt=Ge.inputElement,Dt=Ge.prefixCls,Er=Ge.id,nr=Ge.inputRef,Or=Ge.disabled,Hr=Ge.autoFocus,an=Ge.autoComplete,jr=Ge.activeDescendantId,Rr=Ge.mode,en=Ge.open,wn=Ge.values,on=Ge.placeholder,Nn=Ge.tabIndex,Qn=Ge.showSearch,hi=Ge.searchValue,On=Ge.activeValue,Xn=Ge.maxLength,Vt=Ge.onInputKeyDown,Xt=Ge.onInputMouseDown,Yt=Ge.onInputChange,tr=Ge.onInputPaste,jt=Ge.onInputCompositionStart,or=Ge.onInputCompositionEnd,cr=Ge.title,Pr=v.useState(!1),yn=(0,te.Z)(Pr,2),Cn=yn[0],Ai=yn[1],ni=Rr==="combobox",Ei=ni||Qn,ei=wn[0],jn=hi||"";ni&&On&&!Cn&&(jn=On),v.useEffect(function(){ni&&Ai(!1)},[ni,On]);var xi=Rr!=="combobox"&&!en&&!Qn?!1:!!jn,wi=cr===void 0?be(ei):cr,Ci=function(){if(ei)return null;var Bi=xi?{visibility:"hidden"}:void 0;return v.createElement("span",{className:"".concat(Dt,"-selection-placeholder"),style:Bi},on)};return v.createElement(v.Fragment,null,v.createElement("span",{className:"".concat(Dt,"-selection-search")},v.createElement(ee,{ref:nr,prefixCls:Dt,id:Er,open:en,inputElement:Pt,disabled:Or,autoFocus:Hr,autoComplete:an,editable:Ei,activeDescendantId:jr,value:jn,onKeyDown:Vt,onMouseDown:Xt,onChange:function(Bi){Ai(!0),Yt(Bi)},onPaste:tr,onCompositionStart:jt,onCompositionEnd:or,tabIndex:Nn,attrs:(0,me.Z)(Ge,!0),maxLength:ni?Xn:void 0})),!ni&&ei?v.createElement("span",{className:"".concat(Dt,"-selection-item"),title:wi,style:xi?{visibility:"hidden"}:void 0},ei.label):null,Ci())},qe=ze;function Et(Fe){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(Fe)}var Lt=function(Ge,Pt){var Dt=(0,v.useRef)(null),Er=(0,v.useRef)(!1),nr=Ge.prefixCls,Or=Ge.open,Hr=Ge.mode,an=Ge.showSearch,jr=Ge.tokenWithEnter,Rr=Ge.autoClearSearchValue,en=Ge.onSearch,wn=Ge.onSearchSubmit,on=Ge.onToggleOpen,Nn=Ge.onInputKeyDown,Qn=Ge.domRef;v.useImperativeHandle(Pt,function(){return{focus:function(){Dt.current.focus()},blur:function(){Dt.current.blur()}}});var hi=K(0),On=(0,te.Z)(hi,2),Xn=On[0],Vt=On[1],Xt=function(jn){var xi=jn.which;(xi===T.Z.UP||xi===T.Z.DOWN)&&jn.preventDefault(),Nn&&Nn(jn),xi===T.Z.ENTER&&Hr==="tags"&&!Er.current&&!Or&&(wn==null||wn(jn.target.value)),Et(xi)&&on(!0)},Yt=function(){Vt(!0)},tr=(0,v.useRef)(null),jt=function(jn){en(jn,!0,Er.current)!==!1&&on(!0)},or=function(){Er.current=!0},cr=function(jn){Er.current=!1,Hr!=="combobox"&&jt(jn.target.value)},Pr=function(jn){var xi=jn.target.value;if(jr&&tr.current&&/[\r\n]/.test(tr.current)){var wi=tr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");xi=xi.replace(wi,tr.current)}tr.current=null,jt(xi)},yn=function(jn){var xi=jn.clipboardData,wi=xi.getData("text");tr.current=wi},Cn=function(jn){var xi=jn.target;if(xi!==Dt.current){var wi=document.body.style.msTouchAction!==void 0;wi?setTimeout(function(){Dt.current.focus()}):Dt.current.focus()}},Ai=function(jn){var xi=Xn();jn.target!==Dt.current&&!xi&&Hr!=="combobox"&&jn.preventDefault(),(Hr!=="combobox"&&(!an||!xi)||!Or)&&(Or&&Rr!==!1&&en("",!0,!1),on())},ni={inputRef:Dt,onInputKeyDown:Xt,onInputMouseDown:Yt,onInputChange:Pr,onInputPaste:yn,onInputCompositionStart:or,onInputCompositionEnd:cr},Ei=Hr==="multiple"||Hr==="tags"?v.createElement(et,(0,pe.Z)({},Ge,ni)):v.createElement(qe,(0,pe.Z)({},Ge,ni));return v.createElement("div",{ref:Qn,className:"".concat(nr,"-selector"),onClick:Cn,onMouseDown:Ai},Ei)},Ot=v.forwardRef(Lt);Ot.displayName="Selector";var sr=Ot,er=x(35593),yr=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],lr=function(Ge){var Pt=Ge===!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(Ge,Pt){var Dt=Ge.prefixCls,Er=Ge.disabled,nr=Ge.visible,Or=Ge.children,Hr=Ge.popupElement,an=Ge.animation,jr=Ge.transitionName,Rr=Ge.dropdownStyle,en=Ge.dropdownClassName,wn=Ge.direction,on=wn===void 0?"ltr":wn,Nn=Ge.placement,Qn=Ge.builtinPlacements,hi=Ge.dropdownMatchSelectWidth,On=Ge.dropdownRender,Xn=Ge.dropdownAlign,Vt=Ge.getPopupContainer,Xt=Ge.empty,Yt=Ge.getTriggerDOMNode,tr=Ge.onPopupVisibleChange,jt=Ge.onPopupMouseEnter,or=(0,V.Z)(Ge,yr),cr="".concat(Dt,"-dropdown"),Pr=Hr;On&&(Pr=On(Hr));var yn=v.useMemo(function(){return Qn||lr(hi)},[Qn,hi]),Cn=an?"".concat(cr,"-").concat(an):jr,Ai=typeof hi=="number",ni=v.useMemo(function(){return Ai?null:hi===!1?"minWidth":"width"},[hi,Ai]),Ei=Rr;Ai&&(Ei=(0,Ne.Z)((0,Ne.Z)({},Ei),{},{width:hi}));var ei=v.useRef(null);return v.useImperativeHandle(Pt,function(){return{getPopupElement:function(){return ei.current}}}),v.createElement(er.Z,(0,pe.Z)({},or,{showAction:tr?["click"]:[],hideAction:tr?["click"]:[],popupPlacement:Nn||(on==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:yn,prefixCls:cr,popupTransitionName:Cn,popup:v.createElement("div",{ref:ei,onMouseEnter:jt},Pr),stretch:ni,popupAlign:Xn,popupVisible:nr,getPopupContainer:Vt,popupClassName:_()(en,(0,P.Z)({},"".concat(cr,"-empty"),Xt)),popupStyle:Ei,getTriggerDOMNode:Yt,onPopupVisibleChange:tr}),Or)},dt=v.forwardRef(G);dt.displayName="SelectTrigger";var I=dt,m=x(66712);function u(Fe,Ge){var Pt=Fe.key,Dt;return"value"in Fe&&(Dt=Fe.value),Pt!=null?Pt:Dt!==void 0?Dt:"rc-index-key-".concat(Ge)}function C(Fe,Ge){var Pt=Fe||{},Dt=Pt.label,Er=Pt.value,nr=Pt.options,Or=Pt.groupLabel,Hr=Dt||(Ge?"children":"label");return{label:Hr,value:Er||"value",options:nr||"options",groupLabel:Or||Hr}}function q(Fe){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Pt=Ge.fieldNames,Dt=Ge.childrenAsData,Er=[],nr=C(Pt,!1),Or=nr.label,Hr=nr.value,an=nr.options,jr=nr.groupLabel;function Rr(en,wn){en.forEach(function(on){if(wn||!(an in on)){var Nn=on[Hr];Er.push({key:u(on,Er.length),groupOption:wn,data:on,label:on[Or],value:Nn})}else{var Qn=on[jr];Qn===void 0&&Dt&&(Qn=on.label),Er.push({key:u(on,Er.length),group:!0,data:on,label:Qn}),Rr(on[an],!0)}})}return Rr(Fe,!1),Er}function Se(Fe){var Ge=(0,Ne.Z)({},Fe);return"props"in Ge||Object.defineProperty(Ge,"props",{get:function(){return(0,F.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ge}}),Ge}function H(Fe,Ge){if(!Ge||!Ge.length)return null;var Pt=!1;function Dt(nr,Or){var Hr=(0,m.Z)(Or),an=Hr[0],jr=Hr.slice(1);if(!an)return[nr];var Rr=nr.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(Fe,Ge);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 we(Fe){return Fe==="tags"||Fe==="multiple"}var ye=v.forwardRef(function(Fe,Ge){var Pt,Dt,Er=Fe.id,nr=Fe.prefixCls,Or=Fe.className,Hr=Fe.showSearch,an=Fe.tagRender,jr=Fe.direction,Rr=Fe.omitDomProps,en=Fe.displayValues,wn=Fe.onDisplayValuesChange,on=Fe.emptyOptions,Nn=Fe.notFoundContent,Qn=Nn===void 0?"Not Found":Nn,hi=Fe.onClear,On=Fe.mode,Xn=Fe.disabled,Vt=Fe.loading,Xt=Fe.getInputElement,Yt=Fe.getRawInputElement,tr=Fe.open,jt=Fe.defaultOpen,or=Fe.onDropdownVisibleChange,cr=Fe.activeValue,Pr=Fe.onActiveValueChange,yn=Fe.activeDescendantId,Cn=Fe.searchValue,Ai=Fe.autoClearSearchValue,ni=Fe.onSearch,Ei=Fe.onSearchSplit,ei=Fe.tokenSeparators,jn=Fe.allowClear,xi=Fe.suffixIcon,wi=Fe.clearIcon,Ci=Fe.OptionList,ui=Fe.animation,Bi=Fe.transitionName,Xi=Fe.dropdownStyle,ri=Fe.dropdownClassName,Pi=Fe.dropdownMatchSelectWidth,Ha=Fe.dropdownRender,ci=Fe.dropdownAlign,fn=Fe.placement,ln=Fe.builtinPlacements,Jn=Fe.getPopupContainer,Kn=Fe.showAction,pi=Kn===void 0?[]:Kn,qi=Fe.onFocus,Mi=Fe.onBlur,Ua=Fe.onKeyUp,Aa=Fe.onKeyDown,Bo=Fe.onMouseDown,Vn=(0,V.Z)(Fe,ie),In=we(On),Di=(Hr!==void 0?Hr:In)||On==="combobox",Ji=(0,Ne.Z)({},Vn);Qe.forEach(function(Ca){delete Ji[Ca]}),Rr==null||Rr.forEach(function(Ca){delete Ji[Ca]});var Fa=v.useState(!1),Is=(0,te.Z)(Fa,2),$a=Is[0],fa=Is[1];v.useEffect(function(){fa((0,O.Z)())},[]);var Io=v.useRef(null),So=v.useRef(null),Po=v.useRef(null),Os=v.useRef(null),po=v.useRef(null),bs=W(),Ps=(0,te.Z)(bs,3),$s=Ps[0],To=Ps[1],Uo=Ps[2];v.useImperativeHandle(Ge,function(){var Ca,ya;return{focus:(Ca=Os.current)===null||Ca===void 0?void 0:Ca.focus,blur:(ya=Os.current)===null||ya===void 0?void 0:ya.blur,scrollTo:function(go){var jo;return(jo=po.current)===null||jo===void 0?void 0:jo.scrollTo(go)}}});var ys=v.useMemo(function(){var Ca;if(On!=="combobox")return Cn;var ya=(Ca=en[0])===null||Ca===void 0?void 0:Ca.value;return typeof ya=="string"||typeof ya=="number"?String(ya):""},[Cn,On,en]),el=On==="combobox"&&typeof Xt=="function"&&Xt()||null,vl=typeof Yt=="function"&&Yt(),ic=(0,L.x1)(So,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:tr}),Hl=(0,te.Z)(Kl,2),Vs=Hl[0],as=Hl[1],ii=Zs?Vs:!1,la=!Qn&&on;(Xn||la&&ii&&On==="combobox")&&(ii=!1);var ta=la?!1:ii,oa=v.useCallback(function(Ca){var ya=Ca!==void 0?Ca:!ii;Xn||(as(ya),ii!==ya&&(or==null||or(ya)))},[Xn,ii,as,or]),Da=v.useMemo(function(){return(ei||[]).some(function(Ca){return[`
`,`\r
`].includes(Ca)})},[ei]),so=function(ya,ts,go){var jo=!0,zo=ya;Pr==null||Pr(null);var No=go?null:H(ya,ei);return On!=="combobox"&&No&&(zo="",Ei==null||Ei(No),oa(!1),jo=!1),ni&&ys!==zo&&ni(zo,{source:ts?"typing":"effect"}),jo},Ws=function(ya){!ya||!ya.trim()||ni(ya,{source:"submit"})};v.useEffect(function(){!ii&&!In&&On!=="combobox"&&so("",!1,!1)},[ii]),v.useEffect(function(){Vs&&Xn&&as(!1),Xn&&To(!1)},[Xn]);var ws=K(),xs=(0,te.Z)(ws,2),ms=xs[0],eo=xs[1],Ra=function(ya){var ts=ms(),go=ya.which;if(go===T.Z.ENTER&&(On!=="combobox"&&ya.preventDefault(),ii||oa(!0)),eo(!!ys),go===T.Z.BACKSPACE&&!ts&&In&&!ys&&en.length){for(var jo=(0,Ae.Z)(en),zo=null,No=jo.length-1;No>=0;No-=1){var Cs=jo[No];if(!Cs.disabled){jo.splice(No,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(ii&&po.current){var bA;(bA=po.current).onKeyDown.apply(bA,[ya].concat(Vc))}Aa==null||Aa.apply(void 0,[ya].concat(Vc))},os=function(ya){for(var ts=arguments.length,go=new Array(ts>1?ts-1:0),jo=1;jo<ts;jo++)go[jo-1]=arguments[jo];if(ii&&po.current){var zo;(zo=po.current).onKeyUp.apply(zo,[ya].concat(go))}Ua==null||Ua.apply(void 0,[ya].concat(go))},ss=function(ya){var ts=en.filter(function(go){return go!==ya});wn(ts,{type:"remove",values:[ya]})},Fs=v.useRef(!1),Go=function(){To(!0),Xn||(qi&&!Fs.current&&qi.apply(void 0,arguments),pi.includes("focus")&&oa(!0)),Fs.current=!0},Fo=function(){To(!1,function(){Fs.current=!1,oa(!1)}),!Xn&&(ys&&(On==="tags"?ni(ys,{source:"submit"}):On==="multiple"&&ni("",{source:"blur"})),Mi&&Mi.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,go=ya.target,jo=(ts=Po.current)===null||ts===void 0?void 0:ts.getPopupElement();if(jo&&jo.contains(go)){var zo=setTimeout(function(){var Vc=pA.indexOf(zo);if(Vc!==-1&&pA.splice(Vc,1),Uo(),!$a&&!jo.contains(document.activeElement)){var Xs;(Xs=Os.current)===null||Xs===void 0||Xs.focus()}});pA.push(zo)}for(var No=arguments.length,Cs=new Array(No>1?No-1:0),oc=1;oc<No;oc++)Cs[oc-1]=arguments[oc];Bo==null||Bo.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){oa(ya)}),le(function(){var Ca;return[Io.current,(Ca=Po.current)===null||Ca===void 0?void 0:Ca.getPopupElement()]},ta,oa,!!vl);var gs=v.useMemo(function(){return(0,Ne.Z)((0,Ne.Z)({},Fe),{},{notFoundContent:Qn,open:ii,triggerOpen:ta,id:Er,showSearch:Di,multiple:In,toggleOpen:oa})},[Fe,Qn,ta,ii,Er,Di,In,oa]),qc=!!xi||Vt,Ts;qc&&(Ts=v.createElement(R,{className:_()("".concat(nr,"-arrow"),(0,P.Z)({},"".concat(nr,"-arrow-loading"),Vt)),customizeIcon:xi,customizeIconProps:{loading:Vt,searchValue:ys,open:ii,focused:$s,showSearch:Di}}));var OA=function(){var ya;hi==null||hi(),(ya=Os.current)===null||ya===void 0||ya.focus(),wn([],{type:"clear",values:en}),so("",!1,!1)},uc=se(nr,OA,en,jn,wi,Xn,ys,On),jl=uc.allowClear,to=uc.clearIcon,Gs=v.createElement(Ci,{ref:po}),vA=_()(nr,Or,(Dt={},(0,P.Z)(Dt,"".concat(nr,"-focused"),$s),(0,P.Z)(Dt,"".concat(nr,"-multiple"),In),(0,P.Z)(Dt,"".concat(nr,"-single"),!In),(0,P.Z)(Dt,"".concat(nr,"-allow-clear"),jn),(0,P.Z)(Dt,"".concat(nr,"-show-arrow"),qc),(0,P.Z)(Dt,"".concat(nr,"-disabled"),Xn),(0,P.Z)(Dt,"".concat(nr,"-loading"),Vt),(0,P.Z)(Dt,"".concat(nr,"-open"),ii),(0,P.Z)(Dt,"".concat(nr,"-customize-input"),el),(0,P.Z)(Dt,"".concat(nr,"-show-search"),Di),Dt)),Su=v.createElement(I,{ref:Po,disabled:Xn,prefixCls:nr,visible:ta,popupElement:Gs,animation:ui,transitionName:Bi,dropdownStyle:Xi,dropdownClassName:ri,direction:jr,dropdownMatchSelectWidth:Pi,dropdownRender:Ha,dropdownAlign:ci,placement:fn,builtinPlacements:ln,getPopupContainer:Jn,empty:on,getTriggerDOMNode:function(){return So.current},onPopupVisibleChange:tl,onPopupMouseEnter:gA},vl?v.cloneElement(vl,{ref:ic}):v.createElement(sr,(0,pe.Z)({},Fe,{domRef:So,prefixCls:nr,inputElement:el,ref:Os,id:Er,showSearch:Di,autoClearSearchValue:Ai,mode:On,activeDescendantId:yn,tagRender:an,values:en,open:ii,onToggleOpen:oa,activeValue:cr,searchValue:ys,onSearch:so,onSearchSubmit:Ws,onRemove:ss,tokenWithEnter:Da}))),ls;return vl?ls=Su:ls=v.createElement("div",(0,pe.Z)({className:vA},Ji,{ref:Io,onMouseDown:tu,onKeyDown:Ra,onKeyUp:os,onFocus:Go,onBlur:Fo}),$s&&!ii&&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&&to),v.createElement(ne.Provider,{value:gs},ls)}),je=ye,xt=function(Fe,Ge){var Pt=v.useRef({values:new Map,options:new Map}),Dt=v.useMemo(function(){var nr=Pt.current,Or=nr.values,Hr=nr.options,an=Fe.map(function(en){if(en.label===void 0){var wn;return(0,Ne.Z)((0,Ne.Z)({},en),{},{label:(wn=Or.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,Ge.get(en.value)||Hr.get(en.value))}),Pt.current.values=jr,Pt.current.options=Rr,an},[Fe,Ge]),Er=v.useCallback(function(nr){return Ge.get(nr)||Pt.current.options.get(nr)},[Ge]);return[Dt,Er]};function de(Fe,Ge){return fe(Fe).join("").toUpperCase().includes(Ge)}var st=function(Fe,Ge,Pt,Dt,Er){return v.useMemo(function(){if(!Pt||Dt===!1)return Fe;var nr=Ge.options,Or=Ge.label,Hr=Ge.value,an=[],jr=typeof Dt=="function",Rr=Pt.toUpperCase(),en=jr?Dt:function(on,Nn){return Er?de(Nn[Er],Rr):Nn[nr]?de(Nn[Or!=="children"?Or:"label"],Rr):de(Nn[Hr],Rr)},wn=jr?function(on){return Se(on)}:function(on){return on};return Fe.forEach(function(on){if(on[nr]){var Nn=en(Pt,wn(on));if(Nn)an.push(on);else{var Qn=on[nr].filter(function(hi){return en(Pt,wn(hi))});Qn.length&&an.push((0,Ne.Z)((0,Ne.Z)({},on),{},(0,P.Z)({},nr,Qn)))}return}en(Pt,wn(on))&&an.push(on)}),an},[Fe,Dt,Er,Pt,Ge])},tt=x(17115),Ie=x(11592),De=["children","value"],lt=["children"];function Ut(Fe){var Ge=Fe,Pt=Ge.key,Dt=Ge.props,Er=Dt.children,nr=Dt.value,Or=(0,V.Z)(Dt,De);return(0,Ne.Z)({key:Pt,value:nr!==void 0?nr:Pt,children:Er},Or)}function kt(Fe){var Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ie.Z)(Fe).map(function(Pt,Dt){if(!v.isValidElement(Pt)||!Pt.type)return null;var Er=Pt,nr=Er.type.isSelectOptGroup,Or=Er.key,Hr=Er.props,an=Hr.children,jr=(0,V.Z)(Hr,lt);return Ge||!nr?Ut(Pt):(0,Ne.Z)((0,Ne.Z)({key:"__RC_SELECT_GRP__".concat(Or===null?Dt:Or,"__"),label:Or},jr),{},{options:kt(an)})}).filter(function(Pt){return Pt})}function rr(Fe,Ge,Pt,Dt,Er){return v.useMemo(function(){var nr=Fe,Or=!Fe;Or&&(nr=kt(Ge));var Hr=new Map,an=new Map,jr=function(wn,on,Nn){Nn&&typeof Nn=="string"&&wn.set(on[Nn],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 Nn=en[on];!Nn[Pt.options]||wn?(Hr.set(Nn[Pt.value],Nn),jr(an,Nn,Pt.label),jr(an,Nn,Dt),jr(an,Nn,Er)):Rr(Nn[Pt.options],!0)}}return Rr(nr),{options:nr,valueOptions:Hr,labelOptions:an}},[Fe,Ge,Pt,Dt,Er])}function Fr(Fe){var Ge=v.useRef();Ge.current=Fe;var Pt=v.useCallback(function(){return Ge.current.apply(Ge,arguments)},[]);return Pt}var kr=function(){return null};kr.isSelectOptGroup=!0;var Dr=kr,Nr=function(){return null};Nr.isSelectOption=!0;var xr=Nr,ur=x(80547),Kr=x(2738),pn=x(48911),kn=v.createContext(null),mn=kn;function Dn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Ki=["disabled","title","children","style","className"];function hr(Fe){return typeof Fe=="string"||typeof Fe=="number"}var Gn=function(Ge,Pt){var Dt=J(),Er=Dt.prefixCls,nr=Dt.id,Or=Dt.open,Hr=Dt.multiple,an=Dt.mode,jr=Dt.searchValue,Rr=Dt.toggleOpen,en=Dt.notFoundContent,wn=Dt.onPopupScroll,on=v.useContext(mn),Nn=on.flattenOptions,Qn=on.onActiveValue,hi=on.defaultActiveFirstOption,On=on.onSelect,Xn=on.menuItemSelectedIcon,Vt=on.rawValues,Xt=on.fieldNames,Yt=on.virtual,tr=on.direction,jt=on.listHeight,or=on.listItemHeight,cr="".concat(Er,"-item"),Pr=(0,ur.Z)(function(){return Nn},[Or,Nn],function(ci,fn){return fn[0]&&ci[1]!==fn[1]}),yn=v.useRef(null),Cn=function(fn){fn.preventDefault()},Ai=function(fn){yn.current&&yn.current.scrollTo(typeof fn=="number"?{index:fn}:fn)},ni=function(fn){for(var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Jn=Pr.length,Kn=0;Kn<Jn;Kn+=1){var pi=(fn+Kn*ln+Jn)%Jn,qi=Pr[pi],Mi=qi.group,Ua=qi.data;if(!Mi&&!Ua.disabled)return pi}return-1},Ei=v.useState(function(){return ni(0)}),ei=(0,te.Z)(Ei,2),jn=ei[0],xi=ei[1],wi=function(fn){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;xi(fn);var Jn={source:ln?"keyboard":"mouse"},Kn=Pr[fn];if(!Kn){Qn(null,-1,Jn);return}Qn(Kn.value,fn,Jn)};(0,v.useEffect)(function(){wi(hi!==!1?ni(0):-1)},[Pr.length,jr]);var Ci=v.useCallback(function(ci){return Vt.has(ci)&&an!=="combobox"},[an,(0,Ae.Z)(Vt).toString(),Vt.size]);(0,v.useEffect)(function(){var ci=setTimeout(function(){if(!Hr&&Or&&Vt.size===1){var ln=Array.from(Vt)[0],Jn=Pr.findIndex(function(Kn){var pi=Kn.data;return pi.value===ln});Jn!==-1&&(wi(Jn),Ai(Jn))}});if(Or){var fn;(fn=yn.current)===null||fn===void 0||fn.scrollTo(void 0)}return function(){return clearTimeout(ci)}},[Or,jr,Nn.length]);var ui=function(fn){fn!==void 0&&On(fn,{selected:!Vt.has(fn)}),Hr||Rr(!1)};if(v.useImperativeHandle(Pt,function(){return{onKeyDown:function(fn){var ln=fn.which,Jn=fn.ctrlKey;switch(ln){case T.Z.N:case T.Z.P:case T.Z.UP:case T.Z.DOWN:{var Kn=0;if(ln===T.Z.UP?Kn=-1:ln===T.Z.DOWN?Kn=1:Dn()&&Jn&&(ln===T.Z.N?Kn=1:ln===T.Z.P&&(Kn=-1)),Kn!==0){var pi=ni(jn+Kn,Kn);Ai(pi),wi(pi,!0)}break}case T.Z.ENTER:{var qi=Pr[jn];qi&&!qi.data.disabled?ui(qi.value):ui(void 0),Or&&fn.preventDefault();break}case T.Z.ESC:Rr(!1),Or&&fn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(fn){Ai(fn)}}}),Pr.length===0)return v.createElement("div",{role:"listbox",id:"".concat(nr,"_list"),className:"".concat(cr,"-empty"),onMouseDown:Cn},en);var Bi=Object.keys(Xt).map(function(ci){return Xt[ci]}),Xi=function(fn){return fn.label};function ri(ci,fn){var ln=ci.group;return{role:ln?"presentation":"option",id:"".concat(nr,"_list_").concat(fn)}}var Pi=function(fn){var ln=Pr[fn];if(!ln)return null;var Jn=ln.data||{},Kn=Jn.value,pi=ln.group,qi=(0,me.Z)(Jn,!0),Mi=Xi(ln);return ln?v.createElement("div",(0,pe.Z)({"aria-label":typeof Mi=="string"&&!pi?Mi:null},qi,{key:fn},ri(ln,fn),{"aria-selected":Ci(Kn)}),Kn):null},Ha={role:"listbox",id:"".concat(nr,"_list")};return v.createElement(v.Fragment,null,Yt&&v.createElement("div",(0,pe.Z)({},Ha,{style:{height:0,width:0,overflow:"hidden"}}),Pi(jn-1),Pi(jn),Pi(jn+1)),v.createElement(pn.Z,{itemKey:"key",ref:yn,data:Pr,height:jt,itemHeight:or,fullHeight:!1,onMouseDown:Cn,onScroll:wn,virtual:Yt,direction:tr,innerProps:Yt?null:Ha},function(ci,fn){var ln,Jn=ci.group,Kn=ci.groupOption,pi=ci.data,qi=ci.label,Mi=ci.value,Ua=pi.key;if(Jn){var Aa,Bo=(Aa=pi.title)!==null&&Aa!==void 0?Aa:hr(qi)?qi.toString():void 0;return v.createElement("div",{className:_()(cr,"".concat(cr,"-group")),title:Bo},qi!==void 0?qi:Ua)}var Vn=pi.disabled,In=pi.title,Di=pi.children,Ji=pi.style,Fa=pi.className,Is=(0,V.Z)(pi,Ki),$a=(0,Kr.Z)(Is,Bi),fa=Ci(Mi),Io="".concat(cr,"-option"),So=_()(cr,Io,Fa,(ln={},(0,P.Z)(ln,"".concat(Io,"-grouped"),Kn),(0,P.Z)(ln,"".concat(Io,"-active"),jn===fn&&!Vn),(0,P.Z)(ln,"".concat(Io,"-disabled"),Vn),(0,P.Z)(ln,"".concat(Io,"-selected"),fa),ln)),Po=Xi(ci),Os=!Xn||typeof Xn=="function"||fa,po=typeof Po=="number"?Po:Po||Mi,bs=hr(po)?po.toString():void 0;return In!==void 0&&(bs=In),v.createElement("div",(0,pe.Z)({},(0,me.Z)($a),Yt?{}:ri(ci,fn),{"aria-selected":fa,className:So,title:bs,onMouseMove:function(){jn===fn||Vn||wi(fn)},onClick:function(){Vn||ui(Mi)},style:Ji}),v.createElement("div",{className:"".concat(Io,"-content")},po),v.isValidElement(Xn)||fa,Os&&v.createElement(R,{className:"".concat(cr,"-option-state"),customizeIcon:Xn,customizeIconProps:{isSelected:fa}},fa?"\u2713":null))}))},Hi=v.forwardRef(Gn);Hi.displayName="OptionList";var di=Hi;function $i(Fe){var Ge=Fe.mode,Pt=Fe.options,Dt=Fe.children,Er=Fe.backfill,nr=Fe.allowClear,Or=Fe.placeholder,Hr=Fe.getInputElement,an=Fe.showSearch,jr=Fe.onSearch,Rr=Fe.defaultOpen,en=Fe.autoFocus,wn=Fe.labelInValue,on=Fe.value,Nn=Fe.inputValue,Qn=Fe.optionLabelProp,hi=isMultiple(Ge),On=an!==void 0?an:hi||Ge==="combobox",Xn=Pt||convertChildrenToData(Dt);if(warning(Ge!=="tags"||Xn.every(function(tr){return!tr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ge==="tags"||Ge==="combobox"){var Vt=Xn.some(function(tr){return tr.options?tr.options.some(function(jt){return typeof("value"in jt?jt.value:jt.key)=="number"}):typeof("value"in tr?tr.value:tr.key)=="number"});warning(!Vt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ge!=="combobox"||!Qn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ge==="combobox"||!Er,"`backfill` only works with `combobox` mode."),warning(Ge==="combobox"||!Hr,"`getInputElement` only work with `combobox` mode."),noteOnce(Ge!=="combobox"||!Hr||!nr||!Or,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),jr&&!On&&Ge!=="combobox"&&Ge!=="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(tr){return _typeof(tr)==="object"&&("key"in tr||"value"in tr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!hi||Array.isArray(on),"`value` should be array when `mode` is `multiple` or `tags`")}if(Dt){var Yt=null;toNodeArray(Dt).some(function(tr){if(!React.isValidElement(tr)||!tr.type)return!1;var jt=tr,or=jt.type;if(or.isSelectOption)return!1;if(or.isSelectOptGroup){var cr=toNodeArray(tr.props.children).every(function(Pr){return!React.isValidElement(Pr)||!tr.type||Pr.type.isSelectOption?!0:(Yt=Pr.type,!1)});return!cr}return Yt=or,!0}),Yt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Yt.displayName||Yt.name||Yt,"`.")),warning(Nn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ri(Fe,Ge){if(Fe){var Pt=function Dt(Er){for(var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Or=0;Or<Er.length;Or++){var Hr=Er[Or];if(Hr[Ge==null?void 0:Ge.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!nr&&Array.isArray(Hr[Ge==null?void 0:Ge.options])&&Dt(Hr[Ge==null?void 0:Ge.options],!0))break}};Pt(Fe)}}var Zi=null,za=["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"],Fi=["inputValue"];function qn(Fe){return!Fe||(0,S.Z)(Fe)!=="object"}var ai=v.forwardRef(function(Fe,Ge){var Pt=Fe.id,Dt=Fe.mode,Er=Fe.prefixCls,nr=Er===void 0?"rc-select":Er,Or=Fe.backfill,Hr=Fe.fieldNames,an=Fe.inputValue,jr=Fe.searchValue,Rr=Fe.onSearch,en=Fe.autoClearSearchValue,wn=en===void 0?!0:en,on=Fe.onSelect,Nn=Fe.onDeselect,Qn=Fe.dropdownMatchSelectWidth,hi=Qn===void 0?!0:Qn,On=Fe.filterOption,Xn=Fe.filterSort,Vt=Fe.optionFilterProp,Xt=Fe.optionLabelProp,Yt=Fe.options,tr=Fe.children,jt=Fe.defaultActiveFirstOption,or=Fe.menuItemSelectedIcon,cr=Fe.virtual,Pr=Fe.direction,yn=Fe.listHeight,Cn=yn===void 0?200:yn,Ai=Fe.listItemHeight,ni=Ai===void 0?20:Ai,Ei=Fe.value,ei=Fe.defaultValue,jn=Fe.labelInValue,xi=Fe.onChange,wi=(0,V.Z)(Fe,za),Ci=(0,tt.ZP)(Pt),ui=we(Dt),Bi=!!(!Yt&&tr),Xi=v.useMemo(function(){return On===void 0&&Dt==="combobox"?!1:On},[On,Dt]),ri=v.useMemo(function(){return C(Hr,Bi)},[JSON.stringify(Hr),Bi]),Pi=(0,g.Z)("",{value:jr!==void 0?jr:an,postState:function(la){return la||""}}),Ha=(0,te.Z)(Pi,2),ci=Ha[0],fn=Ha[1],ln=rr(Yt,tr,ri,Vt,Xt),Jn=ln.valueOptions,Kn=ln.labelOptions,pi=ln.options,qi=v.useCallback(function(ii){var la=fe(ii);return la.map(function(ta){var oa,Da,so,Ws,ws;if(qn(ta))oa=ta;else{var xs;so=ta.key,Da=ta.label,oa=(xs=ta.value)!==null&&xs!==void 0?xs:so}var ms=Jn.get(oa);if(ms){var eo;if(Da===void 0&&(Da=ms==null?void 0:ms[Xt||ri.label]),so===void 0&&(so=(eo=ms==null?void 0:ms.key)!==null&&eo!==void 0?eo:oa),Ws=ms==null?void 0:ms.disabled,ws=ms==null?void 0:ms.title,0)var Ra}return{label:Da,value:oa,key:so,disabled:Ws,title:ws}})},[ri,Xt,Jn]),Mi=(0,g.Z)(ei,{value:Ei}),Ua=(0,te.Z)(Mi,2),Aa=Ua[0],Bo=Ua[1],Vn=v.useMemo(function(){var ii,la=qi(Aa);return Dt==="combobox"&&Ce((ii=la[0])===null||ii===void 0?void 0:ii.value)?[]:la},[Aa,qi,Dt]),In=xt(Vn,Jn),Di=(0,te.Z)(In,2),Ji=Di[0],Fa=Di[1],Is=v.useMemo(function(){if(!Dt&&Ji.length===1){var ii=Ji[0];if(ii.value===null&&(ii.label===null||ii.label===void 0))return[]}return Ji.map(function(la){var ta;return(0,Ne.Z)((0,Ne.Z)({},la),{},{label:(ta=la.label)!==null&&ta!==void 0?ta:la.value})})},[Dt,Ji]),$a=v.useMemo(function(){return new Set(Ji.map(function(ii){return ii.value}))},[Ji]);v.useEffect(function(){if(Dt==="combobox"){var ii,la=(ii=Ji[0])===null||ii===void 0?void 0:ii.value;fn(Le(la)?String(la):"")}},[Ji]);var fa=Fr(function(ii,la){var ta,oa=la!=null?la:ii;return ta={},(0,P.Z)(ta,ri.value,ii),(0,P.Z)(ta,ri.label,oa),ta}),Io=v.useMemo(function(){if(Dt!=="tags")return pi;var ii=(0,Ae.Z)(pi),la=function(oa){return Jn.has(oa)};return(0,Ae.Z)(Ji).sort(function(ta,oa){return ta.value<oa.value?-1:1}).forEach(function(ta){var oa=ta.value;la(oa)||ii.push(fa(oa,ta.label))}),ii},[fa,pi,Jn,Ji,Dt]),So=st(Io,ri,ci,Xi,Vt),Po=v.useMemo(function(){return Dt!=="tags"||!ci||So.some(function(ii){return ii[Vt||"value"]===ci})||So.some(function(ii){return ii[ri.value]===ci})?So:[fa(ci)].concat((0,Ae.Z)(So))},[fa,Vt,Dt,So,ci,ri]),Os=v.useMemo(function(){return Xn?(0,Ae.Z)(Po).sort(function(ii,la){return Xn(ii,la)}):Po},[Po,Xn]),po=v.useMemo(function(){return q(Os,{fieldNames:ri,childrenAsData:Bi})},[Os,ri,Bi]),bs=function(la){var ta=qi(la);if(Bo(ta),xi&&(ta.length!==Ji.length||ta.some(function(so,Ws){var ws;return((ws=Ji[Ws])===null||ws===void 0?void 0:ws.value)!==(so==null?void 0:so.value)}))){var oa=jn?ta:ta.map(function(so){return so.value}),Da=ta.map(function(so){return Se(Fa(so.value))});xi(ui?oa:oa[0],ui?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(ii,la){var ta=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oa=ta.source,Da=oa===void 0?"keyboard":oa;ic(la),Or&&Dt==="combobox"&&ii!==null&&Da==="keyboard"&&Uo(String(ii))},[Or,Dt]),Zs=function(la,ta,oa){var Da=function(){var Fs,Go=Fa(la);return[jn?{label:Go==null?void 0:Go[ri.label],value:la,key:(Fs=Go==null?void 0:Go.key)!==null&&Fs!==void 0?Fs:la}:la,Se(Go)]};if(ta&&on){var so=Da(),Ws=(0,te.Z)(so,2),ws=Ws[0],xs=Ws[1];on(ws,xs)}else if(!ta&&Nn&&oa!=="clear"){var ms=Da(),eo=(0,te.Z)(ms,2),Ra=eo[0],os=eo[1];Nn(Ra,os)}},Dc=Fr(function(ii,la){var ta,oa=ui?la.selected:!0;oa?ta=ui?[].concat((0,Ae.Z)(Ji),[ii]):[ii]:ta=Ji.filter(function(Da){return Da.value!==ii}),bs(ta),Zs(ii,oa),Dt==="combobox"?Uo(""):(!we||wn)&&(fn(""),Uo(""))}),Kl=function(la,ta){bs(la);var oa=ta.type,Da=ta.values;(oa==="remove"||oa==="clear")&&Da.forEach(function(so){Zs(so.value,!1,oa)})},Hl=function(la,ta){if(fn(la),Uo(null),ta.source==="submit"){var oa=(la||"").trim();if(oa){var Da=Array.from(new Set([].concat((0,Ae.Z)($a),[oa])));bs(Da),Zs(oa,!0),fn("")}return}ta.source!=="blur"&&(Dt==="combobox"&&bs(la),Rr==null||Rr(la))},Vs=function(la){var ta=la;Dt!=="tags"&&(ta=la.map(function(Da){var so=Kn.get(Da);return so==null?void 0:so.value}).filter(function(Da){return Da!==void 0}));var oa=Array.from(new Set([].concat((0,Ae.Z)($a),(0,Ae.Z)(ta))));bs(oa),oa.forEach(function(Da){Zs(Da,!0)})},as=v.useMemo(function(){var ii=cr!==!1&&hi!==!1;return(0,Ne.Z)((0,Ne.Z)({},ln),{},{flattenOptions:po,onActiveValue:Ql,defaultActiveFirstOption:ac,onSelect:Dc,menuItemSelectedIcon:or,rawValues:$a,fieldNames:ri,virtual:ii,direction:Pr,listHeight:Cn,listItemHeight:ni,childrenAsData:Bi})},[ln,po,Ql,ac,Dc,or,$a,ri,cr,hi,Cn,ni,Bi]);return v.createElement(mn.Provider,{value:as},v.createElement(je,(0,pe.Z)({},wi,{id:Ci,prefixCls:nr,ref:Ge,omitDomProps:Fi,mode:Dt,displayValues:Is,onDisplayValuesChange:Kl,direction:Pr,searchValue:ci,onSearch:Hl,autoClearSearchValue:wn,onSearchSplit:Vs,dropdownMatchSelectWidth:hi,OptionList:di,emptyOptions:!po.length,activeValue:To,activeDescendantId:"".concat(Ci,"_list_").concat(vl)})))}),yi=ai;yi.Option=xr,yi.OptGroup=Dr;var ge=yi,Me=ge},9296:function(un,Tt,x){"use strict";x.r(Tt),x.d(Tt,{ResizableTextArea:function(){return Ue},default:function(){return Ce}});var pe=x(54476),Ae=x(33885),P=x(20068),Ne=x(76190),te=x(42978),V=x(75931),S=x(94480),g=x(92310),F=x.n(g),v=x(93681),$=x(5643),_=x(18929),M=x(59301),O=x(29301),T=x(34280),L=x(16089),Y=`
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"],se={},ne;function J(Te){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(be&&se[ke])return se[ke];var he=window.getComputedStyle(Te),Ee=he.getPropertyValue("box-sizing")||he.getPropertyValue("-moz-box-sizing")||he.getPropertyValue("-webkit-box-sizing"),Xe=parseFloat(he.getPropertyValue("padding-bottom"))+parseFloat(he.getPropertyValue("padding-top")),et=parseFloat(he.getPropertyValue("border-bottom-width"))+parseFloat(he.getPropertyValue("border-top-width")),ze=R.map(function(Et){return"".concat(Et,":").concat(he.getPropertyValue(Et))}).join(";"),qe={sizingStyle:ze,paddingSize:Xe,borderSize:et,boxSizing:Ee};return be&&ke&&(se[ke]=qe),qe}function W(Te){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,he=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ne||(ne=document.createElement("textarea"),ne.setAttribute("tab-index","-1"),ne.setAttribute("aria-hidden","true"),document.body.appendChild(ne)),Te.getAttribute("wrap")?ne.setAttribute("wrap",Te.getAttribute("wrap")):ne.removeAttribute("wrap");var Ee=J(Te,be),Xe=Ee.paddingSize,et=Ee.borderSize,ze=Ee.boxSizing,qe=Ee.sizingStyle;ne.setAttribute("style","".concat(qe,";").concat(Y)),ne.value=Te.value||Te.placeholder||"";var Et=void 0,Lt=void 0,Ot,sr=ne.scrollHeight;if(ze==="border-box"?sr+=et:ze==="content-box"&&(sr-=Xe),ke!==null||he!==null){ne.value=" ";var er=ne.scrollHeight-Xe;ke!==null&&(Et=er*ke,ze==="border-box"&&(Et=Et+Xe+et),sr=Math.max(Et,sr)),he!==null&&(Lt=er*he,ze==="border-box"&&(Lt=Lt+Xe+et),Ot=sr>Lt?"":"hidden",sr=Math.min(Lt,sr))}var yr={height:sr,overflowY:Ot,resize:"none"};return Et&&(yr.minHeight=Et),Lt&&(yr.maxHeight=Lt),yr}var K=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],le=0,me=1,Oe=2,Be=M.forwardRef(function(Te,be){var ke=Te,he=ke.prefixCls,Ee=ke.onPressEnter,Xe=ke.defaultValue,et=ke.value,ze=ke.autoSize,qe=ke.onResize,Et=ke.className,Lt=ke.style,Ot=ke.disabled,sr=ke.onChange,er=ke.onInternalAutoSize,yr=(0,V.Z)(ke,K),lr=(0,_.Z)(Xe,{value:et,postState:function(Dr){return Dr!=null?Dr:""}}),G=(0,te.Z)(lr,2),dt=G[0],I=G[1],m=function(Dr){I(Dr.target.value),sr==null||sr(Dr)},u=M.useRef();M.useImperativeHandle(be,function(){return{textArea:u.current}});var C=M.useMemo(function(){return ze&&(0,Ne.Z)(ze)==="object"?[ze.minRows,ze.maxRows]:[]},[ze]),q=(0,te.Z)(C,2),Se=q[0],H=q[1],ie=!!ze,Qe=function(){try{if(document.activeElement===u.current){var Dr=u.current,Nr=Dr.selectionStart,xr=Dr.selectionEnd,ur=Dr.scrollTop;u.current.setSelectionRange(Nr,xr),u.current.scrollTop=ur}}catch(Kr){}},we=M.useState(Oe),ye=(0,te.Z)(we,2),je=ye[0],xt=ye[1],de=M.useState(),st=(0,te.Z)(de,2),tt=st[0],Ie=st[1],De=function(){xt(le)};(0,T.Z)(function(){ie&&De()},[et,Se,H,ie]),(0,T.Z)(function(){if(je===le)xt(me);else if(je===me){var kr=W(u.current,!1,Se,H);xt(Oe),Ie(kr)}else Qe()},[je]);var lt=M.useRef(),Ut=function(){L.Z.cancel(lt.current)},kt=function(Dr){je===Oe&&(qe==null||qe(Dr),ze&&(Ut(),lt.current=(0,L.Z)(function(){De()})))};M.useEffect(function(){return Ut},[]);var rr=ie?tt:null,Fr=(0,Ae.Z)((0,Ae.Z)({},Lt),rr);return(je===le||je===me)&&(Fr.overflowY="hidden",Fr.overflowX="hidden"),M.createElement(O.Z,{onResize:kt,disabled:!(ze||qe)},M.createElement("textarea",(0,pe.Z)({},yr,{ref:u,style:Fr,className:F()(he,Et,(0,P.Z)({},"".concat(he,"-disabled"),Ot)),disabled:Ot,value:dt,onChange:m})))}),Ue=Be,ee=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function fe(Te,be){return(0,S.Z)(Te||"").slice(0,be).join("")}function D(Te,be,ke,he){var Ee=ke;return Te?Ee=fe(ke,he):(0,S.Z)(be||"").length<ke.length&&(0,S.Z)(ke||"").length>he&&(Ee=be),Ee}var Ye=M.forwardRef(function(Te,be){var ke,he=Te.defaultValue,Ee=Te.value,Xe=Te.onFocus,et=Te.onBlur,ze=Te.onChange,qe=Te.allowClear,Et=Te.maxLength,Lt=Te.onCompositionStart,Ot=Te.onCompositionEnd,sr=Te.suffix,er=Te.prefixCls,yr=er===void 0?"rc-textarea":er,lr=Te.classes,G=Te.showCount,dt=Te.className,I=Te.style,m=Te.disabled,u=Te.hidden,C=Te.classNames,q=Te.styles,Se=Te.onResize,H=(0,V.Z)(Te,ee),ie=(0,_.Z)(he,{value:Ee,defaultValue:he}),Qe=(0,te.Z)(ie,2),we=Qe[0],ye=Qe[1],je=(0,M.useRef)(null),xt=M.useState(!1),de=(0,te.Z)(xt,2),st=de[0],tt=de[1],Ie=M.useState(!1),De=(0,te.Z)(Ie,2),lt=De[0],Ut=De[1],kt=M.useRef(),rr=M.useRef(0),Fr=M.useState(null),kr=(0,te.Z)(Fr,2),Dr=kr[0],Nr=kr[1],xr=function(){var qn;(qn=je.current)===null||qn===void 0||qn.textArea.focus()};(0,M.useImperativeHandle)(be,function(){return{resizableTextArea:je.current,focus:xr,blur:function(){var qn;(qn=je.current)===null||qn===void 0||qn.textArea.blur()}}}),(0,M.useEffect)(function(){tt(function(Fi){return!m&&Fi})},[m]);var ur=Number(Et)>0,Kr=function(qn){Ut(!0),kt.current=we,rr.current=qn.currentTarget.selectionStart,Lt==null||Lt(qn)},pn=function(qn){Ut(!1);var ai=qn.currentTarget.value;if(ur){var yi,ge=rr.current>=Et+1||rr.current===((yi=kt.current)===null||yi===void 0?void 0:yi.length);ai=D(ge,kt.current,ai,Et)}ai!==we&&(ye(ai),(0,$.rJ)(qn.currentTarget,qn,ze,ai)),Ot==null||Ot(qn)},kn=function(qn){var ai=qn.target.value;if(!lt&&ur){var yi=qn.target.selectionStart>=Et+1||qn.target.selectionStart===ai.length||!qn.target.selectionStart;ai=D(yi,we,ai,Et)}ye(ai),(0,$.rJ)(qn.currentTarget,qn,ze,ai)},mn=function(qn){var ai=H.onPressEnter,yi=H.onKeyDown;qn.key==="Enter"&&ai&&ai(qn),yi==null||yi(qn)},Dn=function(qn){tt(!0),Xe==null||Xe(qn)},Ki=function(qn){tt(!1),et==null||et(qn)},hr=function(qn){var ai;ye(""),xr(),(0,$.rJ)((ai=je.current)===null||ai===void 0?void 0:ai.textArea,qn,ze)},Gn=(0,$.D7)(we);!lt&&ur&&Ee==null&&(Gn=fe(Gn,Et));var Hi=sr,di;if(G){var $i=(0,S.Z)(Gn).length;(0,Ne.Z)(G)==="object"?di=G.formatter({value:Gn,count:$i,maxLength:Et}):di="".concat($i).concat(ur?" / ".concat(Et):""),Hi=M.createElement(M.Fragment,null,Hi,M.createElement("span",{className:F()("".concat(yr,"-data-count"),C==null?void 0:C.count),style:q==null?void 0:q.count},di))}var Ri=function(qn){var ai;Se==null||Se(qn),(ai=je.current)!==null&&ai!==void 0&&ai.textArea.style.height&&Nr(!0)},Zi=!H.autoSize&&!G&&!qe,za=M.createElement(v.BaseInput,{value:Gn,allowClear:qe,handleReset:hr,suffix:Hi,prefixCls:yr,classes:{affixWrapper:F()(lr==null?void 0:lr.affixWrapper,(ke={},(0,P.Z)(ke,"".concat(yr,"-show-count"),G),(0,P.Z)(ke,"".concat(yr,"-textarea-allow-clear"),qe),ke))},disabled:m,focused:st,className:dt,style:(0,Ae.Z)((0,Ae.Z)({},I),Dr&&!Zi?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof di=="string"?di:void 0}},hidden:u,inputElement:M.createElement(Ue,(0,pe.Z)({},H,{onKeyDown:mn,onChange:kn,onFocus:Dn,onBlur:Ki,onCompositionStart:Kr,onCompositionEnd:pn,className:C==null?void 0:C.textarea,style:(0,Ae.Z)((0,Ae.Z)({},q==null?void 0:q.textarea),{},{resize:I==null?void 0:I.resize}),disabled:m,prefixCls:yr,onResize:Ri,ref:je}))});return za}),Le=Ye,Ce=Le},39417:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return me}});var pe=x(54476),Ae=x(20068),P=x(75931),Ne=x(33885),te=x(67732),V=x(83652),S=x(31226),g=x(42403),F=x(158),v=x(92310),$=x.n(v),_=x(26112),M=x(59301),O=x(39378),T=function(Be){for(var Ue=Be.prefixCls,ee=Be.level,fe=Be.isStart,D=Be.isEnd,Ye="".concat(Ue,"-indent-unit"),Le=[],Ce=0;Ce<ee;Ce+=1){var Te;Le.push(M.createElement("span",{key:Ce,className:$()(Ye,(Te={},(0,Ae.Z)(Te,"".concat(Ye,"-start"),fe[Ce]),(0,Ae.Z)(Te,"".concat(Ye,"-end"),D[Ce]),Te))}))}return M.createElement("span",{"aria-hidden":"true",className:"".concat(Ue,"-indent")},Le)},L=M.memo(T),Y=x(67841),R=x(71430),se=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ne="open",J="close",W="---",K=function(Oe){(0,g.Z)(Ue,Oe);var Be=(0,F.Z)(Ue);function Ue(){var ee;(0,te.Z)(this,Ue);for(var fe=arguments.length,D=new Array(fe),Ye=0;Ye<fe;Ye++)D[Ye]=arguments[Ye];return ee=Be.call.apply(Be,[this].concat(D)),ee.state={dragNodeHighlight:!1},ee.selectHandle=void 0,ee.cacheIndent=void 0,ee.onSelectorClick=function(Le){var Ce=ee.props.context.onNodeClick;Ce(Le,(0,R.F)(ee.props)),ee.isSelectable()?ee.onSelect(Le):ee.onCheck(Le)},ee.onSelectorDoubleClick=function(Le){var Ce=ee.props.context.onNodeDoubleClick;Ce(Le,(0,R.F)(ee.props))},ee.onSelect=function(Le){if(!ee.isDisabled()){var Ce=ee.props.context.onNodeSelect;Ce(Le,(0,R.F)(ee.props))}},ee.onCheck=function(Le){if(!ee.isDisabled()){var Ce=ee.props,Te=Ce.disableCheckbox,be=Ce.checked,ke=ee.props.context.onNodeCheck;if(!(!ee.isCheckable()||Te)){var he=!be;ke(Le,(0,R.F)(ee.props),he)}}},ee.onMouseEnter=function(Le){var Ce=ee.props.context.onNodeMouseEnter;Ce(Le,(0,R.F)(ee.props))},ee.onMouseLeave=function(Le){var Ce=ee.props.context.onNodeMouseLeave;Ce(Le,(0,R.F)(ee.props))},ee.onContextMenu=function(Le){var Ce=ee.props.context.onNodeContextMenu;Ce(Le,(0,R.F)(ee.props))},ee.onDragStart=function(Le){var Ce=ee.props.context.onNodeDragStart;Le.stopPropagation(),ee.setState({dragNodeHighlight:!0}),Ce(Le,(0,S.Z)(ee));try{Le.dataTransfer.setData("text/plain","")}catch(Te){}},ee.onDragEnter=function(Le){var Ce=ee.props.context.onNodeDragEnter;Le.preventDefault(),Le.stopPropagation(),Ce(Le,(0,S.Z)(ee))},ee.onDragOver=function(Le){var Ce=ee.props.context.onNodeDragOver;Le.preventDefault(),Le.stopPropagation(),Ce(Le,(0,S.Z)(ee))},ee.onDragLeave=function(Le){var Ce=ee.props.context.onNodeDragLeave;Le.stopPropagation(),Ce(Le,(0,S.Z)(ee))},ee.onDragEnd=function(Le){var Ce=ee.props.context.onNodeDragEnd;Le.stopPropagation(),ee.setState({dragNodeHighlight:!1}),Ce(Le,(0,S.Z)(ee))},ee.onDrop=function(Le){var Ce=ee.props.context.onNodeDrop;Le.preventDefault(),Le.stopPropagation(),ee.setState({dragNodeHighlight:!1}),Ce(Le,(0,S.Z)(ee))},ee.onExpand=function(Le){var Ce=ee.props,Te=Ce.loading,be=Ce.context.onNodeExpand;Te||be(Le,(0,R.F)(ee.props))},ee.setSelectHandle=function(Le){ee.selectHandle=Le},ee.getNodeState=function(){var Le=ee.props.expanded;return ee.isLeaf()?null:Le?ne:J},ee.hasChildren=function(){var Le=ee.props.eventKey,Ce=ee.props.context.keyEntities,Te=(0,Y.Z)(Ce,Le)||{},be=Te.children;return!!(be||[]).length},ee.isLeaf=function(){var Le=ee.props,Ce=Le.isLeaf,Te=Le.loaded,be=ee.props.context.loadData,ke=ee.hasChildren();return Ce===!1?!1:Ce||!be&&!ke||be&&Te&&!ke},ee.isDisabled=function(){var Le=ee.props.disabled,Ce=ee.props.context.disabled;return!!(Ce||Le)},ee.isCheckable=function(){var Le=ee.props.checkable,Ce=ee.props.context.checkable;return!Ce||Le===!1?!1:Ce},ee.syncLoadData=function(Le){var Ce=Le.expanded,Te=Le.loading,be=Le.loaded,ke=ee.props.context,he=ke.loadData,Ee=ke.onNodeLoad;Te||he&&Ce&&!ee.isLeaf()&&!ee.hasChildren()&&!be&&Ee((0,R.F)(ee.props))},ee.isDraggable=function(){var Le=ee.props,Ce=Le.data,Te=Le.context.draggable;return!!(Te&&(!Te.nodeDraggable||Te.nodeDraggable(Ce)))},ee.renderDragHandler=function(){var Le=ee.props.context,Ce=Le.draggable,Te=Le.prefixCls;return Ce!=null&&Ce.icon?M.createElement("span",{className:"".concat(Te,"-draggable-icon")},Ce.icon):null},ee.renderSwitcherIconDom=function(Le){var Ce=ee.props.switcherIcon,Te=ee.props.context.switcherIcon,be=Ce||Te;return typeof be=="function"?be((0,Ne.Z)((0,Ne.Z)({},ee.props),{},{isLeaf:Le})):be},ee.renderSwitcher=function(){var Le=ee.props.expanded,Ce=ee.props.context.prefixCls;if(ee.isLeaf()){var Te=ee.renderSwitcherIconDom(!0);return Te!==!1?M.createElement("span",{className:$()("".concat(Ce,"-switcher"),"".concat(Ce,"-switcher-noop"))},Te):null}var be=$()("".concat(Ce,"-switcher"),"".concat(Ce,"-switcher_").concat(Le?ne:J)),ke=ee.renderSwitcherIconDom(!1);return ke!==!1?M.createElement("span",{onClick:ee.onExpand,className:be},ke):null},ee.renderCheckbox=function(){var Le=ee.props,Ce=Le.checked,Te=Le.halfChecked,be=Le.disableCheckbox,ke=ee.props.context.prefixCls,he=ee.isDisabled(),Ee=ee.isCheckable();if(!Ee)return null;var Xe=typeof Ee!="boolean"?Ee:null;return M.createElement("span",{className:$()("".concat(ke,"-checkbox"),Ce&&"".concat(ke,"-checkbox-checked"),!Ce&&Te&&"".concat(ke,"-checkbox-indeterminate"),(he||be)&&"".concat(ke,"-checkbox-disabled")),onClick:ee.onCheck},Xe)},ee.renderIcon=function(){var Le=ee.props.loading,Ce=ee.props.context.prefixCls;return M.createElement("span",{className:$()("".concat(Ce,"-iconEle"),"".concat(Ce,"-icon__").concat(ee.getNodeState()||"docu"),Le&&"".concat(Ce,"-icon_loading"))})},ee.renderSelector=function(){var Le=ee.state.dragNodeHighlight,Ce=ee.props,Te=Ce.title,be=Te===void 0?W:Te,ke=Ce.selected,he=Ce.icon,Ee=Ce.loading,Xe=Ce.data,et=ee.props.context,ze=et.prefixCls,qe=et.showIcon,Et=et.icon,Lt=et.loadData,Ot=et.titleRender,sr=ee.isDisabled(),er="".concat(ze,"-node-content-wrapper"),yr;if(qe){var lr=he||Et;yr=lr?M.createElement("span",{className:$()("".concat(ze,"-iconEle"),"".concat(ze,"-icon__customize"))},typeof lr=="function"?lr(ee.props):lr):ee.renderIcon()}else Lt&&Ee&&(yr=ee.renderIcon());var G;typeof be=="function"?G=be(Xe):Ot?G=Ot(Xe):G=be;var dt=M.createElement("span",{className:"".concat(ze,"-title")},G);return M.createElement("span",{ref:ee.setSelectHandle,title:typeof be=="string"?be:"",className:$()("".concat(er),"".concat(er,"-").concat(ee.getNodeState()||"normal"),!sr&&(ke||Le)&&"".concat(ze,"-node-selected")),onMouseEnter:ee.onMouseEnter,onMouseLeave:ee.onMouseLeave,onContextMenu:ee.onContextMenu,onClick:ee.onSelectorClick,onDoubleClick:ee.onSelectorDoubleClick},yr,dt,ee.renderDropIndicator())},ee.renderDropIndicator=function(){var Le=ee.props,Ce=Le.disabled,Te=Le.eventKey,be=ee.props.context,ke=be.draggable,he=be.dropLevelOffset,Ee=be.dropPosition,Xe=be.prefixCls,et=be.indent,ze=be.dropIndicatorRender,qe=be.dragOverNodeKey,Et=be.direction,Lt=!!ke,Ot=!Ce&&Lt&&qe===Te,sr=et!=null?et:ee.cacheIndent;return ee.cacheIndent=et,Ot?ze({dropPosition:Ee,dropLevelOffset:he,indent:sr,prefixCls:Xe,direction:Et}):null},ee}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 fe=this.props.selectable,D=this.props.context.selectable;return typeof fe=="boolean"?fe:D}},{key:"render",value:function(){var fe,D=this.props,Ye=D.eventKey,Le=D.className,Ce=D.style,Te=D.dragOver,be=D.dragOverGapTop,ke=D.dragOverGapBottom,he=D.isLeaf,Ee=D.isStart,Xe=D.isEnd,et=D.expanded,ze=D.selected,qe=D.checked,Et=D.halfChecked,Lt=D.loading,Ot=D.domRef,sr=D.active,er=D.data,yr=D.onMouseMove,lr=D.selectable,G=(0,P.Z)(D,se),dt=this.props.context,I=dt.prefixCls,m=dt.filterTreeNode,u=dt.keyEntities,C=dt.dropContainerKey,q=dt.dropTargetKey,Se=dt.draggingNodeKey,H=this.isDisabled(),ie=(0,_.Z)(G,{aria:!0,data:!0}),Qe=(0,Y.Z)(u,Ye)||{},we=Qe.level,ye=Xe[Xe.length-1],je=this.isDraggable(),xt=!H&&je,de=Se===Ye,st=lr!==void 0?{"aria-selected":!!lr}:void 0;return M.createElement("div",(0,pe.Z)({ref:Ot,className:$()(Le,"".concat(I,"-treenode"),(fe={},(0,Ae.Z)(fe,"".concat(I,"-treenode-disabled"),H),(0,Ae.Z)(fe,"".concat(I,"-treenode-switcher-").concat(et?"open":"close"),!he),(0,Ae.Z)(fe,"".concat(I,"-treenode-checkbox-checked"),qe),(0,Ae.Z)(fe,"".concat(I,"-treenode-checkbox-indeterminate"),Et),(0,Ae.Z)(fe,"".concat(I,"-treenode-selected"),ze),(0,Ae.Z)(fe,"".concat(I,"-treenode-loading"),Lt),(0,Ae.Z)(fe,"".concat(I,"-treenode-active"),sr),(0,Ae.Z)(fe,"".concat(I,"-treenode-leaf-last"),ye),(0,Ae.Z)(fe,"".concat(I,"-treenode-draggable"),je),(0,Ae.Z)(fe,"dragging",de),(0,Ae.Z)(fe,"drop-target",q===Ye),(0,Ae.Z)(fe,"drop-container",C===Ye),(0,Ae.Z)(fe,"drag-over",!H&&Te),(0,Ae.Z)(fe,"drag-over-gap-top",!H&&be),(0,Ae.Z)(fe,"drag-over-gap-bottom",!H&&ke),(0,Ae.Z)(fe,"filter-node",m&&m((0,R.F)(this.props))),fe)),style:Ce,draggable:xt,"aria-grabbed":de,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:yr},st,ie),M.createElement(L,{prefixCls:I,level:we,isStart:Ee,isEnd:Xe}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ue}(M.Component),le=function(Be){return M.createElement(O.k.Consumer,null,function(Ue){return M.createElement(K,(0,pe.Z)({},Be,{context:Ue}))})};le.displayName="TreeNode",le.isTreeNode=1;var me=le},39378:function(un,Tt,x){"use strict";x.d(Tt,{k:function(){return Ae}});var pe=x(59301),Ae=pe.createContext(null)},60091:function(un,Tt,x){"use strict";x.d(Tt,{O:function(){return me.Z},Z:function(){return dt}});var pe=x(54476),Ae=x(20068),P=x(76190),Ne=x(33885),te=x(94480),V=x(67732),S=x(83652),g=x(31226),F=x(42403),v=x(158),$=x(92310),_=x.n($),M=x(10228),O=x(26112),T=x(48736),L=x(59301),Y=x(39378);function R(I){var m=I.dropPosition,u=I.dropLevelOffset,C=I.indent,q={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(m){case-1:q.top=0,q.left=-u*C;break;case 1:q.bottom=0,q.left=-u*C;break;case 0:q.bottom=0,q.left=C;break}return L.createElement("div",{style:q})}function se(I){if(I==null)throw new TypeError("Cannot destructure "+I)}var ne=x(42978),J=x(75931),W=x(34280),K=x(48911),le=x(77900),me=x(39417);function Oe(I,m){var u=L.useState(!1),C=(0,ne.Z)(u,2),q=C[0],Se=C[1];L.useLayoutEffect(function(){if(q)return I(),function(){m()}},[q]),L.useLayoutEffect(function(){return Se(!0),function(){Se(!1)}},[])}var Be=x(71430),Ue=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],ee=function(m,u){var C=m.className,q=m.style,Se=m.motion,H=m.motionNodes,ie=m.motionType,Qe=m.onMotionStart,we=m.onMotionEnd,ye=m.active,je=m.treeNodeRequiredProps,xt=(0,J.Z)(m,Ue),de=L.useState(!0),st=(0,ne.Z)(de,2),tt=st[0],Ie=st[1],De=L.useContext(Y.k),lt=De.prefixCls,Ut=H&&ie!=="hide";(0,W.Z)(function(){H&&Ut!==tt&&Ie(Ut)},[H]);var kt=function(){H&&Qe()},rr=L.useRef(!1),Fr=function(){H&&!rr.current&&(rr.current=!0,we())};Oe(kt,Fr);var kr=function(Nr){Ut===Nr&&Fr()};return H?L.createElement(le.default,(0,pe.Z)({ref:u,visible:tt},Se,{motionAppear:ie==="show",onVisibleChanged:kr}),function(Dr,Nr){var xr=Dr.className,ur=Dr.style;return L.createElement("div",{ref:Nr,className:_()("".concat(lt,"-treenode-motion"),xr),style:ur},H.map(function(Kr){var pn=(0,pe.Z)({},(se(Kr.data),Kr.data)),kn=Kr.title,mn=Kr.key,Dn=Kr.isStart,Ki=Kr.isEnd;delete pn.children;var hr=(0,Be.H8)(mn,je);return L.createElement(me.Z,(0,pe.Z)({},pn,hr,{title:kn,active:ye,data:Kr.data,key:mn,isStart:Dn,isEnd:Ki}))}))}):L.createElement(me.Z,(0,pe.Z)({domRef:u,className:C,style:q},xt,{active:ye}))};ee.displayName="MotionTreeNode";var fe=L.forwardRef(ee),D=fe;function Ye(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],u=I.length,C=m.length;if(Math.abs(u-C)!==1)return{add:!1,key:null};function q(Se,H){var ie=new Map;Se.forEach(function(we){ie.set(we,!0)});var Qe=H.filter(function(we){return!ie.has(we)});return Qe.length===1?Qe[0]:null}return u<C?{add:!0,key:q(I,m)}:{add:!1,key:q(m,I)}}function Le(I,m,u){var C=I.findIndex(function(ie){return ie.key===u}),q=I[C+1],Se=m.findIndex(function(ie){return ie.key===u});if(q){var H=m.findIndex(function(ie){return ie.key===q.key});return m.slice(Se+1,H)}return m.slice(Se+1)}var Ce=["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},be=function(){},ke="RC_TREE_MOTION_".concat(Math.random()),he={key:ke},Ee={key:ke,level:0,index:0,pos:"0",node:he,nodes:[he]},Xe={parent:null,children:[],pos:Ee.pos,data:he,title:null,key:ke,isStart:[],isEnd:[]};function et(I,m,u,C){return m===!1||!u?I:I.slice(0,Math.ceil(u/C)+1)}function ze(I){var m=I.key,u=I.pos;return(0,Be.km)(m,u)}function qe(I){for(var m=String(I.data.key),u=I;u.parent;)u=u.parent,m="".concat(u.data.key," > ").concat(m);return m}var Et=L.forwardRef(function(I,m){var u=I.prefixCls,C=I.data,q=I.selectable,Se=I.checkable,H=I.expandedKeys,ie=I.selectedKeys,Qe=I.checkedKeys,we=I.loadedKeys,ye=I.loadingKeys,je=I.halfCheckedKeys,xt=I.keyEntities,de=I.disabled,st=I.dragging,tt=I.dragOverNodeKey,Ie=I.dropPosition,De=I.motion,lt=I.height,Ut=I.itemHeight,kt=I.virtual,rr=I.focusable,Fr=I.activeItem,kr=I.focused,Dr=I.tabIndex,Nr=I.onKeyDown,xr=I.onFocus,ur=I.onBlur,Kr=I.onActiveChange,pn=I.onListChangeStart,kn=I.onListChangeEnd,mn=(0,J.Z)(I,Ce),Dn=L.useRef(null),Ki=L.useRef(null);L.useImperativeHandle(m,function(){return{scrollTo:function(en){Dn.current.scrollTo(en)},getIndentWidth:function(){return Ki.current.offsetWidth}}});var hr=L.useState(H),Gn=(0,ne.Z)(hr,2),Hi=Gn[0],di=Gn[1],$i=L.useState(C),Ri=(0,ne.Z)($i,2),Zi=Ri[0],za=Ri[1],Fi=L.useState(C),qn=(0,ne.Z)(Fi,2),ai=qn[0],yi=qn[1],ge=L.useState([]),Me=(0,ne.Z)(ge,2),Fe=Me[0],Ge=Me[1],Pt=L.useState(null),Dt=(0,ne.Z)(Pt,2),Er=Dt[0],nr=Dt[1],Or=L.useRef(C);Or.current=C;function Hr(){var Rr=Or.current;za(Rr),yi(Rr),Ge([]),nr(null),kn()}(0,W.Z)(function(){di(H);var Rr=Ye(Hi,H);if(Rr.key!==null)if(Rr.add){var en=Zi.findIndex(function(On){var Xn=On.key;return Xn===Rr.key}),wn=et(Le(Zi,C,Rr.key),kt,lt,Ut),on=Zi.slice();on.splice(en+1,0,Xe),yi(on),Ge(wn),nr("show")}else{var Nn=C.findIndex(function(On){var Xn=On.key;return Xn===Rr.key}),Qn=et(Le(C,Zi,Rr.key),kt,lt,Ut),hi=C.slice();hi.splice(Nn+1,0,Xe),yi(hi),Ge(Qn),nr("hide")}else Zi!==C&&(za(C),yi(C))},[H,C]),L.useEffect(function(){st||Hr()},[st]);var an=De?ai:C,jr={expandedKeys:H,selectedKeys:ie,loadedKeys:we,loadingKeys:ye,checkedKeys:Qe,halfCheckedKeys:je,dragOverNodeKey:tt,dropPosition:Ie,keyEntities:xt};return L.createElement(L.Fragment,null,kr&&Fr&&L.createElement("span",{style:Te,"aria-live":"assertive"},qe(Fr)),L.createElement("div",null,L.createElement("input",{style:Te,disabled:rr===!1||de,tabIndex:rr!==!1?Dr:null,onKeyDown:Nr,onFocus:xr,onBlur:ur,value:"",onChange:be,"aria-label":"for screen reader"})),L.createElement("div",{className:"".concat(u,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},L.createElement("div",{className:"".concat(u,"-indent")},L.createElement("div",{ref:Ki,className:"".concat(u,"-indent-unit")}))),L.createElement(K.Z,(0,pe.Z)({},mn,{data:an,itemKey:ze,height:lt,fullHeight:!1,virtual:kt,itemHeight:Ut,prefixCls:"".concat(u,"-list"),ref:Dn,onVisibleChange:function(en,wn){var on=new Set(en),Nn=wn.filter(function(Qn){return!on.has(Qn)});Nn.some(function(Qn){return ze(Qn)===ke})&&Hr()}}),function(Rr){var en=Rr.pos,wn=(0,pe.Z)({},(se(Rr.data),Rr.data)),on=Rr.title,Nn=Rr.key,Qn=Rr.isStart,hi=Rr.isEnd,On=(0,Be.km)(Nn,en);delete wn.key,delete wn.children;var Xn=(0,Be.H8)(On,jr);return L.createElement(D,(0,pe.Z)({},wn,Xn,{title:on,active:!!Fr&&Nn===Fr.key,pos:en,data:Rr.data,isStart:Qn,isEnd:hi,motion:De,motionNodes:Nn===ke?Fe:null,motionType:Er,onMotionStart:pn,onMotionEnd:Hr,treeNodeRequiredProps:jr,onMouseMove:function(){Kr(null)}}))}))});Et.displayName="NodeList";var Lt=Et,Ot=x(35654),sr=x(90782),er=x(67841),yr=10,lr=function(I){(0,F.Z)(u,I);var m=(0,v.Z)(u);function u(){var C;(0,V.Z)(this,u);for(var q=arguments.length,Se=new Array(q),H=0;H<q;H++)Se[H]=arguments[H];return C=m.call.apply(m,[this].concat(Se)),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,Be.w$)()},C.dragStartMousePosition=null,C.dragNode=void 0,C.currentMouseOverDroppableNodeKey=null,C.listRef=L.createRef(),C.onNodeDragStart=function(ie,Qe){var we=C.state,ye=we.expandedKeys,je=we.keyEntities,xt=C.props.onDragStart,de=Qe.props.eventKey;C.dragNode=Qe,C.dragStartMousePosition={x:ie.clientX,y:ie.clientY};var st=(0,Ot._5)(ye,de);C.setState({draggingNodeKey:de,dragChildrenKeys:(0,Ot.wA)(de,je),indent:C.listRef.current.getIndentWidth()}),C.setExpandedKeys(st),window.addEventListener("dragend",C.onWindowDragEnd),xt==null||xt({event:ie,node:(0,Be.F)(Qe.props)})},C.onNodeDragEnter=function(ie,Qe){var we=C.state,ye=we.expandedKeys,je=we.keyEntities,xt=we.dragChildrenKeys,de=we.flattenNodes,st=we.indent,tt=C.props,Ie=tt.onDragEnter,De=tt.onExpand,lt=tt.allowDrop,Ut=tt.direction,kt=Qe.props,rr=kt.pos,Fr=kt.eventKey,kr=(0,g.Z)(C),Dr=kr.dragNode;if(C.currentMouseOverDroppableNodeKey!==Fr&&(C.currentMouseOverDroppableNodeKey=Fr),!Dr){C.resetDragState();return}var Nr=(0,Ot.OM)(ie,Dr,Qe,st,C.dragStartMousePosition,lt,de,je,ye,Ut),xr=Nr.dropPosition,ur=Nr.dropLevelOffset,Kr=Nr.dropTargetKey,pn=Nr.dropContainerKey,kn=Nr.dropTargetPos,mn=Nr.dropAllowed,Dn=Nr.dragOverNodeKey;if(xt.indexOf(Kr)!==-1||!mn){C.resetDragState();return}if(C.delayedDragEnterLogic||(C.delayedDragEnterLogic={}),Object.keys(C.delayedDragEnterLogic).forEach(function(Ki){clearTimeout(C.delayedDragEnterLogic[Ki])}),Dr.props.eventKey!==Qe.props.eventKey&&(ie.persist(),C.delayedDragEnterLogic[rr]=window.setTimeout(function(){if(C.state.draggingNodeKey!==null){var Ki=(0,te.Z)(ye),hr=(0,er.Z)(je,Qe.props.eventKey);hr&&(hr.children||[]).length&&(Ki=(0,Ot.L0)(ye,Qe.props.eventKey)),"expandedKeys"in C.props||C.setExpandedKeys(Ki),De==null||De(Ki,{node:(0,Be.F)(Qe.props),expanded:!0,nativeEvent:ie.nativeEvent})}},800)),Dr.props.eventKey===Kr&&ur===0){C.resetDragState();return}C.setState({dragOverNodeKey:Dn,dropPosition:xr,dropLevelOffset:ur,dropTargetKey:Kr,dropContainerKey:pn,dropTargetPos:kn,dropAllowed:mn}),Ie==null||Ie({event:ie,node:(0,Be.F)(Qe.props),expandedKeys:ye})},C.onNodeDragOver=function(ie,Qe){var we=C.state,ye=we.dragChildrenKeys,je=we.flattenNodes,xt=we.keyEntities,de=we.expandedKeys,st=we.indent,tt=C.props,Ie=tt.onDragOver,De=tt.allowDrop,lt=tt.direction,Ut=(0,g.Z)(C),kt=Ut.dragNode;if(kt){var rr=(0,Ot.OM)(ie,kt,Qe,st,C.dragStartMousePosition,De,je,xt,de,lt),Fr=rr.dropPosition,kr=rr.dropLevelOffset,Dr=rr.dropTargetKey,Nr=rr.dropContainerKey,xr=rr.dropAllowed,ur=rr.dropTargetPos,Kr=rr.dragOverNodeKey;ye.indexOf(Dr)!==-1||!xr||(kt.props.eventKey===Dr&&kr===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():Fr===C.state.dropPosition&&kr===C.state.dropLevelOffset&&Dr===C.state.dropTargetKey&&Nr===C.state.dropContainerKey&&ur===C.state.dropTargetPos&&xr===C.state.dropAllowed&&Kr===C.state.dragOverNodeKey||C.setState({dropPosition:Fr,dropLevelOffset:kr,dropTargetKey:Dr,dropContainerKey:Nr,dropTargetPos:ur,dropAllowed:xr,dragOverNodeKey:Kr}),Ie==null||Ie({event:ie,node:(0,Be.F)(Qe.props)}))}},C.onNodeDragLeave=function(ie,Qe){C.currentMouseOverDroppableNodeKey===Qe.props.eventKey&&!ie.currentTarget.contains(ie.relatedTarget)&&(C.resetDragState(),C.currentMouseOverDroppableNodeKey=null);var we=C.props.onDragLeave;we==null||we({event:ie,node:(0,Be.F)(Qe.props)})},C.onWindowDragEnd=function(ie){C.onNodeDragEnd(ie,null,!0),window.removeEventListener("dragend",C.onWindowDragEnd)},C.onNodeDragEnd=function(ie,Qe){var we=C.props.onDragEnd;C.setState({dragOverNodeKey:null}),C.cleanDragState(),we==null||we({event:ie,node:(0,Be.F)(Qe.props)}),C.dragNode=null,window.removeEventListener("dragend",C.onWindowDragEnd)},C.onNodeDrop=function(ie,Qe){var we,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,je=C.state,xt=je.dragChildrenKeys,de=je.dropPosition,st=je.dropTargetKey,tt=je.dropTargetPos,Ie=je.dropAllowed;if(Ie){var De=C.props.onDrop;if(C.setState({dragOverNodeKey:null}),C.cleanDragState(),st!==null){var lt=(0,Ne.Z)((0,Ne.Z)({},(0,Be.H8)(st,C.getTreeNodeRequiredProps())),{},{active:((we=C.getActiveItem())===null||we===void 0?void 0:we.key)===st,data:(0,er.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,Ot.yx)(tt),rr={event:ie,node:(0,Be.F)(lt),dragNode:C.dragNode?(0,Be.F)(C.dragNode.props):null,dragNodesKeys:[C.dragNode.props.eventKey].concat(xt),dropToGap:de!==0,dropPosition:de+Number(kt[kt.length-1])};ye||De==null||De(rr),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 we=C.state,ye=we.expandedKeys,je=we.flattenNodes,xt=Qe.expanded,de=Qe.key,st=Qe.isLeaf;if(!(st||ie.shiftKey||ie.metaKey||ie.ctrlKey)){var tt=je.filter(function(De){return De.key===de})[0],Ie=(0,Be.F)((0,Ne.Z)((0,Ne.Z)({},(0,Be.H8)(de,C.getTreeNodeRequiredProps())),{},{data:tt.data}));C.setExpandedKeys(xt?(0,Ot._5)(ye,de):(0,Ot.L0)(ye,de)),C.onNodeExpand(ie,Ie)}},C.onNodeClick=function(ie,Qe){var we=C.props,ye=we.onClick,je=we.expandAction;je==="click"&&C.triggerExpandActionExpand(ie,Qe),ye==null||ye(ie,Qe)},C.onNodeDoubleClick=function(ie,Qe){var we=C.props,ye=we.onDoubleClick,je=we.expandAction;je==="doubleClick"&&C.triggerExpandActionExpand(ie,Qe),ye==null||ye(ie,Qe)},C.onNodeSelect=function(ie,Qe){var we=C.state.selectedKeys,ye=C.state,je=ye.keyEntities,xt=ye.fieldNames,de=C.props,st=de.onSelect,tt=de.multiple,Ie=Qe.selected,De=Qe[xt.key],lt=!Ie;lt?tt?we=(0,Ot.L0)(we,De):we=[De]:we=(0,Ot._5)(we,De);var Ut=we.map(function(kt){var rr=(0,er.Z)(je,kt);return rr?rr.node:null}).filter(function(kt){return kt});C.setUncontrolledState({selectedKeys:we}),st==null||st(we,{event:"select",selected:lt,node:Qe,selectedNodes:Ut,nativeEvent:ie.nativeEvent})},C.onNodeCheck=function(ie,Qe,we){var ye=C.state,je=ye.keyEntities,xt=ye.checkedKeys,de=ye.halfCheckedKeys,st=C.props,tt=st.checkStrictly,Ie=st.onCheck,De=Qe.key,lt,Ut={event:"check",node:Qe,checked:we,nativeEvent:ie.nativeEvent};if(tt){var kt=we?(0,Ot.L0)(xt,De):(0,Ot._5)(xt,De),rr=(0,Ot._5)(de,De);lt={checked:kt,halfChecked:rr},Ut.checkedNodes=kt.map(function(ur){return(0,er.Z)(je,ur)}).filter(function(ur){return ur}).map(function(ur){return ur.node}),C.setUncontrolledState({checkedKeys:kt})}else{var Fr=(0,sr.S)([].concat((0,te.Z)(xt),[De]),!0,je),kr=Fr.checkedKeys,Dr=Fr.halfCheckedKeys;if(!we){var Nr=new Set(kr);Nr.delete(De);var xr=(0,sr.S)(Array.from(Nr),{checked:!1,halfCheckedKeys:Dr},je);kr=xr.checkedKeys,Dr=xr.halfCheckedKeys}lt=kr,Ut.checkedNodes=[],Ut.checkedNodesPositions=[],Ut.halfCheckedKeys=Dr,kr.forEach(function(ur){var Kr=(0,er.Z)(je,ur);if(Kr){var pn=Kr.node,kn=Kr.pos;Ut.checkedNodes.push(pn),Ut.checkedNodesPositions.push({node:pn,pos:kn})}}),C.setUncontrolledState({checkedKeys:kr},!1,{halfCheckedKeys:Dr})}Ie==null||Ie(lt,Ut)},C.onNodeLoad=function(ie){var Qe=ie.key,we=new Promise(function(ye,je){C.setState(function(xt){var de=xt.loadedKeys,st=de===void 0?[]:de,tt=xt.loadingKeys,Ie=tt===void 0?[]:tt,De=C.props,lt=De.loadData,Ut=De.onLoad;if(!lt||st.indexOf(Qe)!==-1||Ie.indexOf(Qe)!==-1)return null;var kt=lt(ie);return kt.then(function(){var rr=C.state.loadedKeys,Fr=(0,Ot.L0)(rr,Qe);Ut==null||Ut(Fr,{event:"load",node:ie}),C.setUncontrolledState({loadedKeys:Fr}),C.setState(function(kr){return{loadingKeys:(0,Ot._5)(kr.loadingKeys,Qe)}}),ye()}).catch(function(rr){if(C.setState(function(kr){return{loadingKeys:(0,Ot._5)(kr.loadingKeys,Qe)}}),C.loadingRetryTimes[Qe]=(C.loadingRetryTimes[Qe]||0)+1,C.loadingRetryTimes[Qe]>=yr){var Fr=C.state.loadedKeys;(0,T.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),C.setUncontrolledState({loadedKeys:(0,Ot.L0)(Fr,Qe)}),ye()}je(rr)}),{loadingKeys:(0,Ot.L0)(Ie,Qe)}})});return we.catch(function(){}),we},C.onNodeMouseEnter=function(ie,Qe){var we=C.props.onMouseEnter;we==null||we({event:ie,node:Qe})},C.onNodeMouseLeave=function(ie,Qe){var we=C.props.onMouseLeave;we==null||we({event:ie,node:Qe})},C.onNodeContextMenu=function(ie,Qe){var we=C.props.onRightClick;we&&(ie.preventDefault(),we({event:ie,node:Qe}))},C.onFocus=function(){var ie=C.props.onFocus;C.setState({focused:!0});for(var Qe=arguments.length,we=new Array(Qe),ye=0;ye<Qe;ye++)we[ye]=arguments[ye];ie==null||ie.apply(void 0,we)},C.onBlur=function(){var ie=C.props.onBlur;C.setState({focused:!1}),C.onActiveChange(null);for(var Qe=arguments.length,we=new Array(Qe),ye=0;ye<Qe;ye++)we[ye]=arguments[ye];ie==null||ie.apply(void 0,we)},C.getTreeNodeRequiredProps=function(){var ie=C.state,Qe=ie.expandedKeys,we=ie.selectedKeys,ye=ie.loadedKeys,je=ie.loadingKeys,xt=ie.checkedKeys,de=ie.halfCheckedKeys,st=ie.dragOverNodeKey,tt=ie.dropPosition,Ie=ie.keyEntities;return{expandedKeys:Qe||[],selectedKeys:we||[],loadedKeys:ye||[],loadingKeys:je||[],checkedKeys:xt||[],halfCheckedKeys:de||[],dragOverNodeKey:st,dropPosition:tt,keyEntities:Ie}},C.setExpandedKeys=function(ie){var Qe=C.state,we=Qe.treeData,ye=Qe.fieldNames,je=(0,Be.oH)(we,ie,ye);C.setUncontrolledState({expandedKeys:ie,flattenNodes:je},!0)},C.onNodeExpand=function(ie,Qe){var we=C.state.expandedKeys,ye=C.state,je=ye.listChanging,xt=ye.fieldNames,de=C.props,st=de.onExpand,tt=de.loadData,Ie=Qe.expanded,De=Qe[xt.key];if(!je){var lt=we.indexOf(De),Ut=!Ie;if((0,T.ZP)(Ie&&lt!==-1||!Ie&&lt===-1,"Expand state not sync with index check"),Ut?we=(0,Ot.L0)(we,De):we=(0,Ot._5)(we,De),C.setExpandedKeys(we),st==null||st(we,{node:Qe,expanded:Ut,nativeEvent:ie.nativeEvent}),Ut&&tt){var kt=C.onNodeLoad(Qe);kt&&kt.then(function(){var rr=(0,Be.oH)(C.state.treeData,we,xt);C.setUncontrolledState({flattenNodes:rr})}).catch(function(){var rr=C.state.expandedKeys,Fr=(0,Ot._5)(rr,De);C.setExpandedKeys(Fr)})}}},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,we=C.props.onActiveChange;Qe!==ie&&(C.setState({activeKey:ie}),ie!==null&&C.scrollTo({key:ie}),we==null||we(ie))},C.getActiveItem=function(){var ie=C.state,Qe=ie.activeKey,we=ie.flattenNodes;return Qe===null?null:we.find(function(ye){var je=ye.key;return je===Qe})||null},C.offsetActiveKey=function(ie){var Qe=C.state,we=Qe.flattenNodes,ye=Qe.activeKey,je=we.findIndex(function(st){var tt=st.key;return tt===ye});je===-1&&ie<0&&(je=we.length),je=(je+ie+we.length)%we.length;var xt=we[je];if(xt){var de=xt.key;C.onActiveChange(de)}else C.onActiveChange(null)},C.onKeyDown=function(ie){var Qe=C.state,we=Qe.activeKey,ye=Qe.expandedKeys,je=Qe.checkedKeys,xt=Qe.fieldNames,de=C.props,st=de.onKeyDown,tt=de.checkable,Ie=de.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 De=C.getActiveItem();if(De&&De.data){var lt=C.getTreeNodeRequiredProps(),Ut=De.data.isLeaf===!1||!!(De.data[xt.children]||[]).length,kt=(0,Be.F)((0,Ne.Z)((0,Ne.Z)({},(0,Be.H8)(we,lt)),{},{data:De.data,active:!0}));switch(ie.which){case M.Z.LEFT:{Ut&&ye.includes(we)?C.onNodeExpand({},kt):De.parent&&C.onActiveChange(De.parent.key),ie.preventDefault();break}case M.Z.RIGHT:{Ut&&!ye.includes(we)?C.onNodeExpand({},kt):De.children&&De.children.length&&C.onActiveChange(De.children[0].key),ie.preventDefault();break}case M.Z.ENTER:case M.Z.SPACE:{tt&&!kt.disabled&&kt.checkable!==!1&&!kt.disableCheckbox?C.onNodeCheck({},kt,!je.includes(we)):!tt&&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,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!C.destroyed){var ye=!1,je=!0,xt={};Object.keys(ie).forEach(function(de){if(de in C.props){je=!1;return}ye=!0,xt[de]=ie[de]}),ye&&(!Qe||je)&&C.setState((0,Ne.Z)((0,Ne.Z)({},xt),we))}},C.scrollTo=function(ie){C.listRef.current.scrollTo(ie)},C}return(0,S.Z)(u,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var q=this.props.activeKey;q!==void 0&&q!==this.state.activeKey&&(this.setState({activeKey:q}),q!==null&&this.scrollTo({key:q}))}},{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 q,Se=this.state,H=Se.focused,ie=Se.flattenNodes,Qe=Se.keyEntities,we=Se.draggingNodeKey,ye=Se.activeKey,je=Se.dropLevelOffset,xt=Se.dropContainerKey,de=Se.dropTargetKey,st=Se.dropPosition,tt=Se.dragOverNodeKey,Ie=Se.indent,De=this.props,lt=De.prefixCls,Ut=De.className,kt=De.style,rr=De.showLine,Fr=De.focusable,kr=De.tabIndex,Dr=kr===void 0?0:kr,Nr=De.selectable,xr=De.showIcon,ur=De.icon,Kr=De.switcherIcon,pn=De.draggable,kn=De.checkable,mn=De.checkStrictly,Dn=De.disabled,Ki=De.motion,hr=De.loadData,Gn=De.filterTreeNode,Hi=De.height,di=De.itemHeight,$i=De.virtual,Ri=De.titleRender,Zi=De.dropIndicatorRender,za=De.onContextMenu,Fi=De.onScroll,qn=De.direction,ai=De.rootClassName,yi=De.rootStyle,ge=(0,O.Z)(this.props,{aria:!0,data:!0}),Me;return pn&&((0,P.Z)(pn)==="object"?Me=pn:typeof pn=="function"?Me={nodeDraggable:pn}:Me={}),L.createElement(Y.k.Provider,{value:{prefixCls:lt,selectable:Nr,showIcon:xr,icon:ur,switcherIcon:Kr,draggable:Me,draggingNodeKey:we,checkable:kn,checkStrictly:mn,disabled:Dn,keyEntities:Qe,dropLevelOffset:je,dropContainerKey:xt,dropTargetKey:de,dropPosition:st,dragOverNodeKey:tt,indent:Ie,direction:qn,dropIndicatorRender:Zi,loadData:hr,filterTreeNode:Gn,titleRender:Ri,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:_()(lt,Ut,ai,(q={},(0,Ae.Z)(q,"".concat(lt,"-show-line"),rr),(0,Ae.Z)(q,"".concat(lt,"-focused"),H),(0,Ae.Z)(q,"".concat(lt,"-active-focused"),ye!==null),q)),style:yi},L.createElement(Lt,(0,pe.Z)({ref:this.listRef,prefixCls:lt,style:kt,data:ie,disabled:Dn,selectable:Nr,checkable:!!kn,motion:Ki,dragging:we!==null,height:Hi,itemHeight:di,virtual:$i,focusable:Fr,focused:H,tabIndex:Dr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:za,onScroll:Fi},this.getTreeNodeRequiredProps(),ge))))}}],[{key:"getDerivedStateFromProps",value:function(q,Se){var H=Se.prevProps,ie={prevProps:q};function Qe(Fr){return!H&&Fr in q||H&&H[Fr]!==q[Fr]}var we,ye=Se.fieldNames;if(Qe("fieldNames")&&(ye=(0,Be.w$)(q.fieldNames),ie.fieldNames=ye),Qe("treeData")?we=q.treeData:Qe("children")&&((0,T.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),we=(0,Be.zn)(q.children)),we){ie.treeData=we;var je=(0,Be.I8)(we,{fieldNames:ye});ie.keyEntities=(0,Ne.Z)((0,Ae.Z)({},ke,Ee),je.keyEntities)}var xt=ie.keyEntities||Se.keyEntities;if(Qe("expandedKeys")||H&&Qe("autoExpandParent"))ie.expandedKeys=q.autoExpandParent||!H&&q.defaultExpandParent?(0,Ot.r7)(q.expandedKeys,xt):q.expandedKeys;else if(!H&&q.defaultExpandAll){var de=(0,Ne.Z)({},xt);delete de[ke],ie.expandedKeys=Object.keys(de).map(function(Fr){return de[Fr].key})}else!H&&q.defaultExpandedKeys&&(ie.expandedKeys=q.autoExpandParent||q.defaultExpandParent?(0,Ot.r7)(q.defaultExpandedKeys,xt):q.defaultExpandedKeys);if(ie.expandedKeys||delete ie.expandedKeys,we||ie.expandedKeys){var st=(0,Be.oH)(we||Se.treeData,ie.expandedKeys||Se.expandedKeys,ye);ie.flattenNodes=st}if(q.selectable&&(Qe("selectedKeys")?ie.selectedKeys=(0,Ot.BT)(q.selectedKeys,q):!H&&q.defaultSelectedKeys&&(ie.selectedKeys=(0,Ot.BT)(q.defaultSelectedKeys,q))),q.checkable){var tt;if(Qe("checkedKeys")?tt=(0,Ot.E6)(q.checkedKeys)||{}:!H&&q.defaultCheckedKeys?tt=(0,Ot.E6)(q.defaultCheckedKeys)||{}:we&&(tt=(0,Ot.E6)(q.checkedKeys)||{checkedKeys:Se.checkedKeys,halfCheckedKeys:Se.halfCheckedKeys}),tt){var Ie=tt,De=Ie.checkedKeys,lt=De===void 0?[]:De,Ut=Ie.halfCheckedKeys,kt=Ut===void 0?[]:Ut;if(!q.checkStrictly){var rr=(0,sr.S)(lt,!0,xt);lt=rr.checkedKeys,kt=rr.halfCheckedKeys}ie.checkedKeys=lt,ie.halfCheckedKeys=kt}}return Qe("loadedKeys")&&(ie.loadedKeys=q.loadedKeys),ie}}]),u}(L.Component);lr.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},lr.TreeNode=me.Z;var G=lr,dt=G},35654:function(un,Tt,x){"use strict";x.d(Tt,{BT:function(){return L},E6:function(){return se},L0:function(){return v},OM:function(){return T},_5:function(){return F},r7:function(){return ne},wA:function(){return _},yx:function(){return $}});var pe=x(94480),Ae=x(76190),P=x(48736),Ne=x(59301),te=x(39417),V=x(67841),S=x(71430),g=null;function F(J,W){if(!J)return[];var K=J.slice(),le=K.indexOf(W);return le>=0&&K.splice(le,1),K}function v(J,W){var K=(J||[]).slice();return K.indexOf(W)===-1&&K.push(W),K}function $(J){return J.split("-")}function _(J,W){var K=[],le=(0,V.Z)(W,J);function me(){var Oe=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Oe.forEach(function(Be){var Ue=Be.key,ee=Be.children;K.push(Ue),me(ee)})}return me(le.children),K}function M(J){if(J.parent){var W=$(J.pos);return Number(W[W.length-1])===J.parent.children.length-1}return!1}function O(J){var W=$(J.pos);return Number(W[W.length-1])===0}function T(J,W,K,le,me,Oe,Be,Ue,ee,fe){var D,Ye=J.clientX,Le=J.clientY,Ce=J.target.getBoundingClientRect(),Te=Ce.top,be=Ce.height,ke=(fe==="rtl"?-1:1)*(((me==null?void 0:me.x)||0)-Ye),he=(ke-12)/le,Ee=(0,V.Z)(Ue,K.props.eventKey);if(Le<Te+be/2){var Xe=Be.findIndex(function(dt){return dt.key===Ee.key}),et=Xe<=0?0:Xe-1,ze=Be[et].key;Ee=(0,V.Z)(Ue,ze)}var qe=Ee.key,Et=Ee,Lt=Ee.key,Ot=0,sr=0;if(!ee.includes(qe))for(var er=0;er<he&&M(Ee);er+=1)Ee=Ee.parent,sr+=1;var yr=W.props.data,lr=Ee.node,G=!0;return O(Ee)&&Ee.level===0&&Le<Te+be/2&&Oe({dragNode:yr,dropNode:lr,dropPosition:-1})&&Ee.key===K.props.eventKey?Ot=-1:(Et.children||[]).length&&ee.includes(Lt)?Oe({dragNode:yr,dropNode:lr,dropPosition:0})?Ot=0:G=!1:sr===0?he>-1.5?Oe({dragNode:yr,dropNode:lr,dropPosition:1})?Ot=1:G=!1:Oe({dragNode:yr,dropNode:lr,dropPosition:0})?Ot=0:Oe({dragNode:yr,dropNode:lr,dropPosition:1})?Ot=1:G=!1:Oe({dragNode:yr,dropNode:lr,dropPosition:1})?Ot=1:G=!1,{dropPosition:Ot,dropLevelOffset:sr,dropTargetKey:Ee.key,dropTargetPos:Ee.pos,dragOverNodeKey:Lt,dropContainerKey:Ot===0?null:((D=Ee.parent)===null||D===void 0?void 0:D.key)||null,dropAllowed:G}}function L(J,W){if(J){var K=W.multiple;return K?J.slice():J.length?[J[0]]:J}}var Y=function(W){return W};function R(J,W){if(!J)return[];var K=W||{},le=K.processProps,me=le===void 0?Y:le,Oe=Array.isArray(J)?J:[J];return Oe.map(function(Be){var Ue=Be.children,ee=_objectWithoutProperties(Be,g),fe=R(Ue,W);return React.createElement(TreeNode,_extends({key:ee.key},me(ee)),fe)})}function se(J){if(!J)return null;var W;if(Array.isArray(J))W={checkedKeys:J,halfCheckedKeys:void 0};else if((0,Ae.Z)(J)==="object")W={checkedKeys:J.checked||void 0,halfCheckedKeys:J.halfChecked||void 0};else return(0,P.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return W}function ne(J,W){var K=new Set;function le(me){if(!K.has(me)){var Oe=(0,V.Z)(W,me);if(Oe){K.add(me);var Be=Oe.parent,Ue=Oe.node;Ue.disabled||Be&&le(Be.key)}}}return(J||[]).forEach(function(me){le(me)}),(0,pe.Z)(K)}},90782:function(un,Tt,x){"use strict";x.d(Tt,{S:function(){return S}});var pe=x(48736),Ae=x(67841);function P(g,F){var v=new Set;return g.forEach(function($){F.has($)||v.add($)}),v}function Ne(g){var F=g||{},v=F.disabled,$=F.disableCheckbox,_=F.checkable;return!!(v||$)||_===!1}function te(g,F,v,$){for(var _=new Set(g),M=new Set,O=0;O<=v;O+=1){var T=F.get(O)||new Set;T.forEach(function(se){var ne=se.key,J=se.node,W=se.children,K=W===void 0?[]:W;_.has(ne)&&!$(J)&&K.filter(function(le){return!$(le.node)}).forEach(function(le){_.add(le.key)})})}for(var L=new Set,Y=v;Y>=0;Y-=1){var R=F.get(Y)||new Set;R.forEach(function(se){var ne=se.parent,J=se.node;if(!($(J)||!se.parent||L.has(se.parent.key))){if($(se.parent.node)){L.add(ne.key);return}var W=!0,K=!1;(ne.children||[]).filter(function(le){return!$(le.node)}).forEach(function(le){var me=le.key,Oe=_.has(me);W&&!Oe&&(W=!1),!K&&(Oe||M.has(me))&&(K=!0)}),W&&_.add(ne.key),K&&M.add(ne.key),L.add(ne.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(P(M,_))}}function V(g,F,v,$,_){for(var M=new Set(g),O=new Set(F),T=0;T<=$;T+=1){var L=v.get(T)||new Set;L.forEach(function(ne){var J=ne.key,W=ne.node,K=ne.children,le=K===void 0?[]:K;!M.has(J)&&!O.has(J)&&!_(W)&&le.filter(function(me){return!_(me.node)}).forEach(function(me){M.delete(me.key)})})}O=new Set;for(var Y=new Set,R=$;R>=0;R-=1){var se=v.get(R)||new Set;se.forEach(function(ne){var J=ne.parent,W=ne.node;if(!(_(W)||!ne.parent||Y.has(ne.parent.key))){if(_(ne.parent.node)){Y.add(J.key);return}var K=!0,le=!1;(J.children||[]).filter(function(me){return!_(me.node)}).forEach(function(me){var Oe=me.key,Be=M.has(Oe);K&&!Be&&(K=!1),!le&&(Be||O.has(Oe))&&(le=!0)}),K||M.delete(J.key),le&&O.add(J.key),Y.add(J.key)}})}return{checkedKeys:Array.from(M),halfCheckedKeys:Array.from(P(O,M))}}function S(g,F,v,$){var _=[],M;$?M=$:M=Ne;var O=new Set(g.filter(function(R){var se=!!(0,Ae.Z)(v,R);return se||_.push(R),se})),T=new Map,L=0;Object.keys(v).forEach(function(R){var se=v[R],ne=se.level,J=T.get(ne);J||(J=new Set,T.set(ne,J)),J.add(se),L=Math.max(L,ne)}),(0,pe.ZP)(!_.length,"Tree missing follow keys: ".concat(_.slice(0,100).map(function(R){return"'".concat(R,"'")}).join(", ")));var Y;return F===!0?Y=te(O,T,L,M):Y=V(O,F.halfCheckedKeys,T,L,M),Y}},67841:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return pe}});function pe(Ae,P){return Ae[P]}},71430:function(un,Tt,x){"use strict";x.d(Tt,{F:function(){return ne},H8:function(){return se},I8:function(){return R},km:function(){return _},oH:function(){return L},w$:function(){return M},zn:function(){return T}});var pe=x(76190),Ae=x(94480),P=x(33885),Ne=x(75931),te=x(11592),V=x(2738),S=x(48736),g=x(67841),F=["children"];function v(J,W){return"".concat(J,"-").concat(W)}function $(J){return J&&J.type&&J.type.isTreeNode}function _(J,W){return J!=null?J:W}function M(J){var W=J||{},K=W.title,le=W._title,me=W.key,Oe=W.children,Be=K||"title";return{title:Be,_title:le||[Be],key:me||"key",children:Oe||"children"}}function O(J,W){var K=new Map;function le(me){var Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(me||[]).forEach(function(Be){var Ue=Be[W.key],ee=Be[W.children];warning(Ue!=null,"Tree node must have a certain key: [".concat(Oe).concat(Ue,"]"));var fe=String(Ue);warning(!K.has(fe)||Ue===null||Ue===void 0,"Same 'key' exist in the Tree: ".concat(fe)),K.set(fe,!0),le(ee,"".concat(Oe).concat(fe," > "))})}le(J)}function T(J){function W(K){var le=(0,te.Z)(K);return le.map(function(me){if(!$(me))return(0,S.ZP)(!me,"Tree/TreeNode can only accept TreeNode as children."),null;var Oe=me.key,Be=me.props,Ue=Be.children,ee=(0,Ne.Z)(Be,F),fe=(0,P.Z)({key:Oe},ee),D=W(Ue);return D.length&&(fe.children=D),fe}).filter(function(me){return me})}return W(J)}function L(J,W,K){var le=M(K),me=le._title,Oe=le.key,Be=le.children,Ue=new Set(W===!0?[]:W),ee=[];function fe(D){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(Le,Ce){for(var Te=v(Ye?Ye.pos:"0",Ce),be=_(Le[Oe],Te),ke,he=0;he<me.length;he+=1){var Ee=me[he];if(Le[Ee]!==void 0){ke=Le[Ee];break}}var Xe=(0,P.Z)((0,P.Z)({},(0,V.Z)(Le,[].concat((0,Ae.Z)(me),[Oe,Be]))),{},{title:ke,key:be,parent:Ye,pos:Te,children:null,data:Le,isStart:[].concat((0,Ae.Z)(Ye?Ye.isStart:[]),[Ce===0]),isEnd:[].concat((0,Ae.Z)(Ye?Ye.isEnd:[]),[Ce===D.length-1])});return ee.push(Xe),W===!0||Ue.has(be)?Xe.children=fe(Le[Be]||[],Xe):Xe.children=[],Xe})}return fe(J),ee}function Y(J,W,K){var le={};(0,pe.Z)(K)==="object"?le=K:le={externalGetKey:K},le=le||{};var me=le,Oe=me.childrenPropName,Be=me.externalGetKey,Ue=me.fieldNames,ee=M(Ue),fe=ee.key,D=ee.children,Ye=Oe||D,Le;Be?typeof Be=="string"?Le=function(be){return be[Be]}:typeof Be=="function"&&(Le=function(be){return Be(be)}):Le=function(be,ke){return _(be[fe],ke)};function Ce(Te,be,ke,he){var Ee=Te?Te[Ye]:J,Xe=Te?v(ke.pos,be):"0",et=Te?[].concat((0,Ae.Z)(he),[Te]):[];if(Te){var ze=Le(Te,Xe),qe={node:Te,index:be,pos:Xe,key:ze,parentPos:ke.node?ke.pos:null,level:ke.level+1,nodes:et};W(qe)}Ee&&Ee.forEach(function(Et,Lt){Ce(Et,Lt,{node:Te,pos:Xe,level:ke?ke.level+1:-1},et)})}Ce(null)}function R(J){var W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=W.initWrapper,le=W.processEntity,me=W.onProcessFinished,Oe=W.externalGetKey,Be=W.childrenPropName,Ue=W.fieldNames,ee=arguments.length>2?arguments[2]:void 0,fe=Oe||ee,D={},Ye={},Le={posEntities:D,keyEntities:Ye};return K&&(Le=K(Le)||Le),Y(J,function(Ce){var Te=Ce.node,be=Ce.index,ke=Ce.pos,he=Ce.key,Ee=Ce.parentPos,Xe=Ce.level,et=Ce.nodes,ze={node:Te,nodes:et,index:be,key:he,pos:ke,level:Xe},qe=_(he,ke);D[ke]=ze,Ye[qe]=ze,ze.parent=D[Ee],ze.parent&&(ze.parent.children=ze.parent.children||[],ze.parent.children.push(ze)),le&&le(ze,Le)},{externalGetKey:fe,childrenPropName:Be,fieldNames:Ue}),me&&me(Le),Le}function se(J,W){var K=W.expandedKeys,le=W.selectedKeys,me=W.loadedKeys,Oe=W.loadingKeys,Be=W.checkedKeys,Ue=W.halfCheckedKeys,ee=W.dragOverNodeKey,fe=W.dropPosition,D=W.keyEntities,Ye=(0,g.Z)(D,J),Le={eventKey:J,expanded:K.indexOf(J)!==-1,selected:le.indexOf(J)!==-1,loaded:me.indexOf(J)!==-1,loading:Oe.indexOf(J)!==-1,checked:Be.indexOf(J)!==-1,halfChecked:Ue.indexOf(J)!==-1,pos:String(Ye?Ye.pos:""),dragOver:ee===J&&fe===0,dragOverGapTop:ee===J&&fe===-1,dragOverGapBottom:ee===J&&fe===1};return Le}function ne(J){var W=J.data,K=J.expanded,le=J.selected,me=J.checked,Oe=J.loaded,Be=J.loading,Ue=J.halfChecked,ee=J.dragOver,fe=J.dragOverGapTop,D=J.dragOverGapBottom,Ye=J.pos,Le=J.active,Ce=J.eventKey,Te=(0,P.Z)((0,P.Z)({},W),{},{expanded:K,selected:le,checked:me,loaded:Oe,loading:Be,halfChecked:Ue,dragOver:ee,dragOverGapTop:fe,dragOverGapBottom:D,pos:Ye,active:Le,key:Ce});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`."),J}}),Te}},8224:function(un,Tt,x){"use strict";x.d(Tt,{Z:function(){return Ae}});var pe=x(4676);function Ae(P,Ne,te,V){var S=pe.unstable_batchedUpdates?function(F){pe.unstable_batchedUpdates(te,F)}:te;return P!=null&&P.addEventListener&&P.addEventListener(Ne,S,V),{remove:function(){P!=null&&P.removeEventListener&&P.removeEventListener(Ne,S,V)}}}},55468:function(un,Tt,x){"use strict";x.d(Tt,{g1:function(){return $},os:function(){return M}});var pe=/margin|padding|width|height|max|min|offset/,Ae={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function Ne(O){return O.nodeType===1?O.ownerDocument.defaultView.getComputedStyle(O,null):{}}function te(O,T,L){if(T=T.toLowerCase(),L==="auto"){if(T==="height")return O.offsetHeight;if(T==="width")return O.offsetWidth}return T in Ae||(Ae[T]=pe.test(T)),Ae[T]?parseFloat(L)||0:L}function V(O,T){var L=arguments.length,Y=Ne(O);return T=P[T]?"cssFloat"in O.style?"cssFloat":"styleFloat":T,L===1?Y:te(O,T,Y[T]||O.style[T])}function S(O,T,L){var Y=arguments.length;if(T=P[T]?"cssFloat"in O.style?"cssFloat":"styleFloat":T,Y===3)return typeof L=="number"&&pe.test(T)&&(L="".concat(L,"px")),O.style[T]=L,L;for(var R in T)T.hasOwnProperty(R)&&S(O,R,T[R]);return Ne(O)}function g(O){return O===document.body?document.documentElement.clientWidth:O.offsetWidth}function F(O){return O===document.body?window.innerHeight||document.documentElement.clientHeight:O.offsetHeight}function v(){var O=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),T=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:O,height:T}}function $(){var O=document.documentElement.clientWidth,T=window.innerHeight||document.documentElement.clientHeight;return{width:O,height:T}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function M(O){var T=O.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 Ne}});var pe=x(47273),Ae=function(V){if((0,pe.Z)()&&window.document.documentElement){var S=Array.isArray(V)?V:[V],g=window.document.documentElement;return S.some(function(F){return F in g.style})}return!1},P=function(V,S){if(!Ae(V))return!1;var g=document.createElement("div"),F=g.style[V];return g.style[V]=S,g.style[V]!==F};function Ne(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 lr}});var pe=x(54476),Ae=x(76190),P=x(33885),Ne=x(20068),te=x(42978),V=x(75931),S=x(92310),g=x.n(S),F=x(29301),v=x(70425),$=x(34280),_=x(59301),M=x(4676),O=_.forwardRef(function(G,dt){var I=G.height,m=G.offsetY,u=G.offsetX,C=G.children,q=G.prefixCls,Se=G.onInnerResize,H=G.innerProps,ie=G.rtl,Qe=G.extra,we={},ye={display:"flex",flexDirection:"column"};return m!==void 0&&(we={height:I,position:"relative",overflow:"hidden"},ye=(0,P.Z)((0,P.Z)({},ye),{},(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({transform:"translateY(".concat(m,"px)")},ie?"marginRight":"marginLeft",-u),"position","absolute"),"left",0),"right",0),"top",0))),_.createElement("div",{style:we},_.createElement(F.Z,{onResize:function(xt){var de=xt.offsetHeight;de&&Se&&Se()}},_.createElement("div",(0,pe.Z)({style:ye,className:g()((0,Ne.Z)({},"".concat(q,"-holder-inner"),q)),ref:dt},H),C,Qe)))});O.displayName="Filler";var T=O;function L(G){var dt=G.children,I=G.setRef,m=_.useCallback(function(u){I(u)},[]);return _.cloneElement(dt,{ref:m})}function Y(G,dt,I,m,u,C,q,Se){var H=Se.getKey;return G.slice(dt,I+1).map(function(ie,Qe){var we=dt+Qe,ye=q(ie,we,{style:{width:m},offsetX:u}),je=H(ie);return _.createElement(L,{key:je,setRef:function(de){return C(ie,de)}},ye)})}function R(G,dt,I,m){var u=I-G,C=dt-I,q=Math.min(u,C)*2;if(m<=q){var Se=Math.floor(m/2);return m%2?I+Se+1:I-Se}return u>C?I-(m-C):I+(m-u)}function se(G,dt,I){var m=G.length,u=dt.length,C,q;if(m===0&&u===0)return null;m<u?(C=G,q=dt):(C=dt,q=G);var Se={__EMPTY_ITEM__:!0};function H(xt){return xt!==void 0?I(xt):Se}for(var ie=null,Qe=Math.abs(m-u)!==1,we=0;we<q.length;we+=1){var ye=H(C[we]),je=H(q[we]);if(ye!==je){ie=we,Qe=Qe||ye!==H(q[we+1]);break}}return ie===null?null:{index:ie,multiple:Qe}}function ne(G,dt,I){var m=_.useState(G),u=(0,te.Z)(m,2),C=u[0],q=u[1],Se=_.useState(null),H=(0,te.Z)(Se,2),ie=H[0],Qe=H[1];return _.useEffect(function(){var we=se(C||[],G||[],dt);(we==null?void 0:we.index)!==void 0&&(I==null||I(we.index),Qe(G[we.index])),q(G)},[G]),[ie]}var J=x(16089),W=(typeof navigator=="undefined"?"undefined":(0,Ae.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),K=W,le=function(G,dt,I,m){var u=(0,_.useRef)(!1),C=(0,_.useRef)(null);function q(){clearTimeout(C.current),u.current=!0,C.current=setTimeout(function(){u.current=!1},50)}var Se=(0,_.useRef)({top:G,bottom:dt,left:I,right:m});return Se.current.top=G,Se.current.bottom=dt,Se.current.left=I,Se.current.right=m,function(H,ie){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,we=H?ie<0&&Se.current.left||ie>0&&Se.current.right:ie<0&&Se.current.top||ie>0&&Se.current.bottom;return Qe&&we?(clearTimeout(C.current),u.current=!1):(!we||u.current)&&q(),!u.current&&we}};function me(G,dt,I,m,u,C,q){var Se=(0,_.useRef)(0),H=(0,_.useRef)(null),ie=(0,_.useRef)(null),Qe=(0,_.useRef)(!1),we=le(dt,I,m,u);function ye(Ie,De){if(J.Z.cancel(H.current),!we(!1,De)){var lt=Ie;if(!lt._virtualHandled)lt._virtualHandled=!0;else return;Se.current+=De,ie.current=De,K||lt.preventDefault(),H.current=(0,J.Z)(function(){var Ut=Qe.current?10:1;q(Se.current*Ut,!1),Se.current=0})}}function je(Ie,De){q(De,!0),K||Ie.preventDefault()}var xt=(0,_.useRef)(null),de=(0,_.useRef)(null);function st(Ie){if(G){J.Z.cancel(de.current),de.current=(0,J.Z)(function(){xt.current=null},2);var De=Ie.deltaX,lt=Ie.deltaY,Ut=Ie.shiftKey,kt=De,rr=lt;(xt.current==="sx"||!xt.current&&Ut&&lt&&!De)&&(kt=lt,rr=0,xt.current="sx");var Fr=Math.abs(kt),kr=Math.abs(rr);xt.current===null&&(xt.current=C&&Fr>kr?"x":"y"),xt.current==="y"?ye(Ie,rr):je(Ie,kt)}}function tt(Ie){G&&(Qe.current=Ie.detail===ie.current)}return[st,tt]}function Oe(G,dt,I,m){var u=_.useMemo(function(){return[new Map,[]]},[G,I.id,m]),C=(0,te.Z)(u,2),q=C[0],Se=C[1],H=function(Qe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe,ye=q.get(Qe),je=q.get(we);if(ye===void 0||je===void 0)for(var xt=G.length,de=Se.length;de<xt;de+=1){var st,tt=G[de],Ie=dt(tt);q.set(Ie,de);var De=(st=I.get(Ie))!==null&&st!==void 0?st:m;if(Se[de]=(Se[de-1]||0)+De,Ie===Qe&&(ye=de),Ie===we&&(je=de),ye!==void 0&&je!==void 0)break}return{top:Se[ye-1]||0,bottom:Se[je]}};return H}var Be=x(67732),Ue=x(83652),ee=function(){function G(){(0,Be.Z)(this,G),(0,Ne.Z)(this,"maps",void 0),(0,Ne.Z)(this,"id",0),(0,Ne.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ue.Z)(G,[{key:"set",value:function(I,m){this.diffRecords.set(I,this.maps[I]),this.maps[I]=m,this.id+=1}},{key:"get",value:function(I){return this.maps[I]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),G}(),fe=ee;function D(G){var dt=parseFloat(G);return isNaN(dt)?0:dt}function Ye(G,dt,I){var m=_.useState(0),u=(0,te.Z)(m,2),C=u[0],q=u[1],Se=(0,_.useRef)(new Map),H=(0,_.useRef)(new fe),ie=(0,_.useRef)(0);function Qe(){ie.current+=1}function we(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Qe();var xt=function(){var tt=!1;Se.current.forEach(function(Ie,De){if(Ie&&Ie.offsetParent){var lt=Ie.offsetHeight,Ut=getComputedStyle(Ie),kt=Ut.marginTop,rr=Ut.marginBottom,Fr=D(kt),kr=D(rr),Dr=lt+Fr+kr;H.current.get(De)!==Dr&&(H.current.set(De,Dr),tt=!0)}}),tt&&q(function(Ie){return Ie+1})};if(je)xt();else{ie.current+=1;var de=ie.current;Promise.resolve().then(function(){de===ie.current&&xt()})}}function ye(je,xt){var de=G(je),st=Se.current.get(de);xt?(Se.current.set(de,xt),we()):Se.current.delete(de),!st!=!xt&&(xt?dt==null||dt(je):I==null||I(je))}return(0,_.useEffect)(function(){return Qe},[]),[ye,we,H.current,C]}var Le=14/15;function Ce(G,dt,I){var m=(0,_.useRef)(!1),u=(0,_.useRef)(0),C=(0,_.useRef)(0),q=(0,_.useRef)(null),Se=(0,_.useRef)(null),H,ie=function(je){if(m.current){var xt=Math.ceil(je.touches[0].pageX),de=Math.ceil(je.touches[0].pageY),st=u.current-xt,tt=C.current-de,Ie=Math.abs(st)>Math.abs(tt);Ie?u.current=xt:C.current=de;var De=I(Ie,Ie?st:tt,!1,je);De&&je.preventDefault(),clearInterval(Se.current),De&&(Se.current=setInterval(function(){Ie?st*=Le:tt*=Le;var lt=Math.floor(Ie?st:tt);(!I(Ie,lt,!0)||Math.abs(lt)<=.1)&&clearInterval(Se.current)},16))}},Qe=function(){m.current=!1,H()},we=function(je){H(),je.touches.length===1&&!m.current&&(m.current=!0,u.current=Math.ceil(je.touches[0].pageX),C.current=Math.ceil(je.touches[0].pageY),q.current=je.target,q.current.addEventListener("touchmove",ie,{passive:!1}),q.current.addEventListener("touchend",Qe,{passive:!0}))};H=function(){q.current&&(q.current.removeEventListener("touchmove",ie),q.current.removeEventListener("touchend",Qe))},(0,$.Z)(function(){return G&&dt.current.addEventListener("touchstart",we,{passive:!0}),function(){var ye;(ye=dt.current)===null||ye===void 0||ye.removeEventListener("touchstart",we),H(),clearInterval(Se.current)}},[G])}function Te(G){return Math.floor(Math.pow(G,.5))}function be(G,dt){var I="touches"in G?G.touches[0]:G;return I[dt?"pageX":"pageY"]-window[dt?"scrollX":"scrollY"]}function ke(G,dt,I){_.useEffect(function(){var m=dt.current;if(G&&m){var u=!1,C,q,Se=function(){J.Z.cancel(C)},H=function ye(){Se(),C=(0,J.Z)(function(){I(q),ye()})},ie=function(){u=!1,Se()},Qe=function(je){if(!(je.target.draggable||je.button!==0)){var xt=je;xt._virtualHandled||(xt._virtualHandled=!0,u=!0)}},we=function(je){if(u){var xt=be(je,!1),de=m.getBoundingClientRect(),st=de.top,tt=de.bottom;if(xt<=st){var Ie=st-xt;q=-Te(Ie),H()}else if(xt>=tt){var De=xt-tt;q=Te(De),H()}else Se()}};return m.addEventListener("mousedown",Qe),m.ownerDocument.addEventListener("mouseup",ie),m.ownerDocument.addEventListener("mousemove",we),m.ownerDocument.addEventListener("dragend",ie),function(){m.removeEventListener("mousedown",Qe),m.ownerDocument.removeEventListener("mouseup",ie),m.ownerDocument.removeEventListener("mousemove",we),m.ownerDocument.removeEventListener("dragend",ie),Se()}}},[G])}var he=10;function Ee(G,dt,I,m,u,C,q,Se){var H=_.useRef(),ie=_.useState(null),Qe=(0,te.Z)(ie,2),we=Qe[0],ye=Qe[1];return(0,$.Z)(function(){if(we&&we.times<he){if(!G.current){ye(function(Ki){return(0,P.Z)({},Ki)});return}C();var je=we.targetAlign,xt=we.originAlign,de=we.index,st=we.offset,tt=G.current.clientHeight,Ie=!1,De=je,lt=null;if(tt){for(var Ut=je||xt,kt=0,rr=0,Fr=0,kr=Math.min(dt.length-1,de),Dr=0;Dr<=kr;Dr+=1){var Nr=u(dt[Dr]);rr=kt;var xr=I.get(Nr);Fr=rr+(xr===void 0?m:xr),kt=Fr}for(var ur=Ut==="top"?st:tt-st,Kr=kr;Kr>=0;Kr-=1){var pn=u(dt[Kr]),kn=I.get(pn);if(kn===void 0){Ie=!0;break}if(ur-=kn,ur<=0)break}switch(Ut){case"top":lt=rr-st;break;case"bottom":lt=Fr-tt+st;break;default:{var mn=G.current.scrollTop,Dn=mn+tt;rr<mn?De="top":Fr>Dn&&(De="bottom")}}lt!==null&&q(lt),lt!==we.lastTop&&(Ie=!0)}Ie&&ye((0,P.Z)((0,P.Z)({},we),{},{times:we.times+1,targetAlign:De,lastTop:lt}))}},[we,G.current]),function(je){if(je==null){Se();return}if(J.Z.cancel(H.current),typeof je=="number")q(je);else if(je&&(0,Ae.Z)(je)==="object"){var xt,de=je.align;"index"in je?xt=je.index:xt=dt.findIndex(function(Ie){return u(Ie)===je.key});var st=je.offset,tt=st===void 0?0:st;ye({times:0,index:xt,offset:tt,originAlign:de})}}}var Xe=_.forwardRef(function(G,dt){var I=G.prefixCls,m=G.rtl,u=G.scrollOffset,C=G.scrollRange,q=G.onStartMove,Se=G.onStopMove,H=G.onScroll,ie=G.horizontal,Qe=G.spinSize,we=G.containerSize,ye=G.style,je=G.thumbStyle,xt=G.showScrollBar,de=_.useState(!1),st=(0,te.Z)(de,2),tt=st[0],Ie=st[1],De=_.useState(null),lt=(0,te.Z)(De,2),Ut=lt[0],kt=lt[1],rr=_.useState(null),Fr=(0,te.Z)(rr,2),kr=Fr[0],Dr=Fr[1],Nr=!m,xr=_.useRef(),ur=_.useRef(),Kr=_.useState(xt),pn=(0,te.Z)(Kr,2),kn=pn[0],mn=pn[1],Dn=_.useRef(),Ki=function(){xt===!0||xt===!1||(clearTimeout(Dn.current),mn(!0),Dn.current=setTimeout(function(){mn(!1)},3e3))},hr=C-we||0,Gn=we-Qe||0,Hi=_.useMemo(function(){if(u===0||hr===0)return 0;var yi=u/hr;return yi*Gn},[u,hr,Gn]),di=function(ge){ge.stopPropagation(),ge.preventDefault()},$i=_.useRef({top:Hi,dragging:tt,pageY:Ut,startTop:kr});$i.current={top:Hi,dragging:tt,pageY:Ut,startTop:kr};var Ri=function(ge){Ie(!0),kt(be(ge,ie)),Dr($i.current.top),q(),ge.stopPropagation(),ge.preventDefault()};_.useEffect(function(){var yi=function(Ge){Ge.preventDefault()},ge=xr.current,Me=ur.current;return ge.addEventListener("touchstart",yi,{passive:!1}),Me.addEventListener("touchstart",Ri,{passive:!1}),function(){ge.removeEventListener("touchstart",yi),Me.removeEventListener("touchstart",Ri)}},[]);var Zi=_.useRef();Zi.current=hr;var za=_.useRef();za.current=Gn,_.useEffect(function(){if(tt){var yi,ge=function(Ge){var Pt=$i.current,Dt=Pt.dragging,Er=Pt.pageY,nr=Pt.startTop;J.Z.cancel(yi);var Or=xr.current.getBoundingClientRect(),Hr=we/(ie?Or.width:Or.height);if(Dt){var an=(be(Ge,ie)-Er)*Hr,jr=nr;!Nr&&ie?jr-=an:jr+=an;var Rr=Zi.current,en=za.current,wn=en?jr/en:0,on=Math.ceil(wn*Rr);on=Math.max(on,0),on=Math.min(on,Rr),yi=(0,J.Z)(function(){H(on,ie)})}},Me=function(){Ie(!1),Se()};return window.addEventListener("mousemove",ge,{passive:!0}),window.addEventListener("touchmove",ge,{passive:!0}),window.addEventListener("mouseup",Me,{passive:!0}),window.addEventListener("touchend",Me,{passive:!0}),function(){window.removeEventListener("mousemove",ge),window.removeEventListener("touchmove",ge),window.removeEventListener("mouseup",Me),window.removeEventListener("touchend",Me),J.Z.cancel(yi)}}},[tt]),_.useEffect(function(){return Ki(),function(){clearTimeout(Dn.current)}},[u]),_.useImperativeHandle(dt,function(){return{delayHidden:Ki}});var Fi="".concat(I,"-scrollbar"),qn={position:"absolute",visibility:kn?null:"hidden"},ai={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(qn,{height:8,left:0,right:0,bottom:0}),Object.assign(ai,(0,Ne.Z)({height:"100%",width:Qe},Nr?"left":"right",Hi))):(Object.assign(qn,(0,Ne.Z)({width:8,top:0,bottom:0},Nr?"right":"left",0)),Object.assign(ai,{width:"100%",height:Qe,top:Hi})),_.createElement("div",{ref:xr,className:g()(Fi,(0,Ne.Z)((0,Ne.Z)((0,Ne.Z)({},"".concat(Fi,"-horizontal"),ie),"".concat(Fi,"-vertical"),!ie),"".concat(Fi,"-visible"),kn)),style:(0,P.Z)((0,P.Z)({},qn),ye),onMouseDown:di,onMouseMove:Ki},_.createElement("div",{ref:ur,className:g()("".concat(Fi,"-thumb"),(0,Ne.Z)({},"".concat(Fi,"-thumb-moving"),tt)),style:(0,P.Z)((0,P.Z)({},ai),je),onMouseDown:Ri}))}),et=Xe,ze=20;function qe(){var G=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=G/dt*G;return isNaN(I)&&(I=0),I=Math.max(I,ze),Math.floor(I)}var Et=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Lt=[],Ot={overflowY:"auto",overflowAnchor:"none"};function sr(G,dt){var I=G.prefixCls,m=I===void 0?"rc-virtual-list":I,u=G.className,C=G.height,q=G.itemHeight,Se=G.fullHeight,H=Se===void 0?!0:Se,ie=G.style,Qe=G.data,we=G.children,ye=G.itemKey,je=G.virtual,xt=G.direction,de=G.scrollWidth,st=G.component,tt=st===void 0?"div":st,Ie=G.onScroll,De=G.onVirtualScroll,lt=G.onVisibleChange,Ut=G.innerProps,kt=G.extraRender,rr=G.styles,Fr=G.showScrollBar,kr=Fr===void 0?"optional":Fr,Dr=(0,V.Z)(G,Et),Nr=_.useCallback(function(Vn){return typeof ye=="function"?ye(Vn):Vn==null?void 0:Vn[ye]},[ye]),xr=Ye(Nr,null,null),ur=(0,te.Z)(xr,4),Kr=ur[0],pn=ur[1],kn=ur[2],mn=ur[3],Dn=!!(je!==!1&&C&&q),Ki=_.useMemo(function(){return Object.values(kn.maps).reduce(function(Vn,In){return Vn+In},0)},[kn.id,kn.maps]),hr=Dn&&Qe&&(Math.max(q*Qe.length,Ki)>C||!!de),Gn=xt==="rtl",Hi=g()(m,(0,Ne.Z)({},"".concat(m,"-rtl"),Gn),u),di=Qe||Lt,$i=(0,_.useRef)(),Ri=(0,_.useRef)(),Zi=(0,_.useRef)(),za=(0,_.useState)(0),Fi=(0,te.Z)(za,2),qn=Fi[0],ai=Fi[1],yi=(0,_.useState)(0),ge=(0,te.Z)(yi,2),Me=ge[0],Fe=ge[1],Ge=(0,_.useState)(!1),Pt=(0,te.Z)(Ge,2),Dt=Pt[0],Er=Pt[1],nr=function(){Er(!0)},Or=function(){Er(!1)},Hr={getKey:Nr};function an(Vn){ai(function(In){var Di;typeof Vn=="function"?Di=Vn(In):Di=Vn;var Ji=ni(Di);return $i.current.scrollTop=Ji,Ji})}var jr=(0,_.useRef)({start:0,end:di.length}),Rr=(0,_.useRef)(),en=ne(di,Nr),wn=(0,te.Z)(en,1),on=wn[0];Rr.current=on;var Nn=_.useMemo(function(){if(!Dn)return{scrollHeight:void 0,start:0,end:di.length-1,offset:void 0};if(!hr){var Vn;return{scrollHeight:((Vn=Ri.current)===null||Vn===void 0?void 0:Vn.offsetHeight)||0,start:0,end:di.length-1,offset:void 0}}for(var In=0,Di,Ji,Fa,Is=di.length,$a=0;$a<Is;$a+=1){var fa=di[$a],Io=Nr(fa),So=kn.get(Io),Po=In+(So===void 0?q:So);Po>=qn&&Di===void 0&&(Di=$a,Ji=In),Po>qn+C&&Fa===void 0&&(Fa=$a),In=Po}return Di===void 0&&(Di=0,Ji=0,Fa=Math.ceil(C/q)),Fa===void 0&&(Fa=di.length-1),Fa=Math.min(Fa+1,di.length-1),{scrollHeight:In,start:Di,end:Fa,offset:Ji}},[hr,Dn,qn,di,mn,C]),Qn=Nn.scrollHeight,hi=Nn.start,On=Nn.end,Xn=Nn.offset;jr.current.start=hi,jr.current.end=On,_.useLayoutEffect(function(){var Vn=kn.getRecord();if(Vn.size===1){var In=Array.from(Vn.keys())[0],Di=Vn.get(In),Ji=di[hi];if(Ji&&Di===void 0){var Fa=Nr(Ji);if(Fa===In){var Is=kn.get(In),$a=Is-q;an(function(fa){return fa+$a})}}}kn.resetRecord()},[Qn]);var Vt=_.useState({width:0,height:C}),Xt=(0,te.Z)(Vt,2),Yt=Xt[0],tr=Xt[1],jt=function(In){tr({width:In.offsetWidth,height:In.offsetHeight})},or=(0,_.useRef)(),cr=(0,_.useRef)(),Pr=_.useMemo(function(){return qe(Yt.width,de)},[Yt.width,de]),yn=_.useMemo(function(){return qe(Yt.height,Qn)},[Yt.height,Qn]),Cn=Qn-C,Ai=(0,_.useRef)(Cn);Ai.current=Cn;function ni(Vn){var In=Vn;return Number.isNaN(Ai.current)||(In=Math.min(In,Ai.current)),In=Math.max(In,0),In}var Ei=qn<=0,ei=qn>=Cn,jn=Me<=0,xi=Me>=de,wi=le(Ei,ei,jn,xi),Ci=function(){return{x:Gn?-Me:Me,y:qn}},ui=(0,_.useRef)(Ci()),Bi=(0,v.useEvent)(function(Vn){if(De){var In=(0,P.Z)((0,P.Z)({},Ci()),Vn);(ui.current.x!==In.x||ui.current.y!==In.y)&&(De(In),ui.current=In)}});function Xi(Vn,In){var Di=Vn;In?((0,M.flushSync)(function(){Fe(Di)}),Bi()):an(Di)}function ri(Vn){var In=Vn.currentTarget.scrollTop;In!==qn&&an(In),Ie==null||Ie(Vn),Bi()}var Pi=function(In){var Di=In,Ji=de?de-Yt.width:0;return Di=Math.max(Di,0),Di=Math.min(Di,Ji),Di},Ha=(0,v.useEvent)(function(Vn,In){In?((0,M.flushSync)(function(){Fe(function(Di){var Ji=Di+(Gn?-Vn:Vn);return Pi(Ji)})}),Bi()):an(function(Di){var Ji=Di+Vn;return Ji})}),ci=me(Dn,Ei,ei,jn,xi,!!de,Ha),fn=(0,te.Z)(ci,2),ln=fn[0],Jn=fn[1];Ce(Dn,$i,function(Vn,In,Di,Ji){var Fa=Ji;return wi(Vn,In,Di)?!1:!Fa||!Fa._virtualHandled?(Fa&&(Fa._virtualHandled=!0),ln({preventDefault:function(){},deltaX:Vn?In:0,deltaY:Vn?0:In}),!0):!1}),ke(hr,$i,function(Vn){an(function(In){return In+Vn})}),(0,$.Z)(function(){function Vn(Di){var Ji=Ei&&Di.detail<0,Fa=ei&&Di.detail>0;Dn&&!Ji&&!Fa&&Di.preventDefault()}var In=$i.current;return In.addEventListener("wheel",ln,{passive:!1}),In.addEventListener("DOMMouseScroll",Jn,{passive:!0}),In.addEventListener("MozMousePixelScroll",Vn,{passive:!1}),function(){In.removeEventListener("wheel",ln),In.removeEventListener("DOMMouseScroll",Jn),In.removeEventListener("MozMousePixelScroll",Vn)}},[Dn,Ei,ei]),(0,$.Z)(function(){if(de){var Vn=Pi(Me);Fe(Vn),Bi({x:Vn})}},[Yt.width,de]);var Kn=function(){var In,Di;(In=or.current)===null||In===void 0||In.delayHidden(),(Di=cr.current)===null||Di===void 0||Di.delayHidden()},pi=Ee($i,di,kn,q,Nr,function(){return pn(!0)},an,Kn);_.useImperativeHandle(dt,function(){return{nativeElement:Zi.current,getScrollInfo:Ci,scrollTo:function(In){function Di(Ji){return Ji&&(0,Ae.Z)(Ji)==="object"&&("left"in Ji||"top"in Ji)}Di(In)?(In.left!==void 0&&Fe(Pi(In.left)),pi(In.top)):pi(In)}}}),(0,$.Z)(function(){if(lt){var Vn=di.slice(hi,On+1);lt(Vn,di)}},[hi,On,di]);var qi=Oe(di,Nr,kn,q),Mi=kt==null?void 0:kt({start:hi,end:On,virtual:hr,offsetX:Me,offsetY:Xn,rtl:Gn,getSize:qi}),Ua=Y(di,hi,On,de,Me,Kr,we,Hr),Aa=null;C&&(Aa=(0,P.Z)((0,Ne.Z)({},H?"height":"maxHeight",C),Ot),Dn&&(Aa.overflowY="hidden",de&&(Aa.overflowX="hidden"),Dt&&(Aa.pointerEvents="none")));var Bo={};return Gn&&(Bo.dir="rtl"),_.createElement("div",(0,pe.Z)({ref:Zi,style:(0,P.Z)((0,P.Z)({},ie),{},{position:"relative"}),className:Hi},Bo,Dr),_.createElement(F.Z,{onResize:jt},_.createElement(tt,{className:"".concat(m,"-holder"),style:Aa,ref:$i,onScroll:ri,onMouseEnter:Kn},_.createElement(T,{prefixCls:m,height:Qn,offsetX:Me,offsetY:Xn,scrollWidth:de,onInnerResize:pn,ref:Ri,innerProps:Ut,rtl:Gn,extra:Mi},Ua))),hr&&Qn>C&&_.createElement(et,{ref:or,prefixCls:m,scrollOffset:qn,scrollRange:Qn,rtl:Gn,onScroll:Xi,onStartMove:nr,onStopMove:Or,spinSize:yn,containerSize:Yt.height,style:rr==null?void 0:rr.verticalScrollBar,thumbStyle:rr==null?void 0:rr.verticalScrollBarThumb,showScrollBar:kr}),hr&&de>Yt.width&&_.createElement(et,{ref:cr,prefixCls:m,scrollOffset:Me,scrollRange:de,rtl:Gn,onScroll:Xi,onStartMove:nr,onStopMove:Or,spinSize:Pr,containerSize:Yt.width,horizontal:!0,style:rr==null?void 0:rr.horizontalScrollBar,thumbStyle:rr==null?void 0:rr.horizontalScrollBarThumb,showScrollBar:kr}))}var er=_.forwardRef(sr);er.displayName="List";var yr=er,lr=yr},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 pe=Object.defineProperty,Ae=Object.defineProperties,P=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,te=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable,S=(e,t,r)=>t in e?pe(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(Ne)for(var r of Ne(t))V.call(t,r)&&S(e,r,t[r]);return e},F=(e,t)=>Ae(e,P(t)),v=e=>typeof e=="symbol"?e:e+"",$=(e,t)=>{var r={};for(var i in e)te.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Ne)for(var i of Ne(e))t.indexOf(i)<0&&V.call(e,i)&&(r[i]=e[i]);return r};function _(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 O(){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 Y(){var e,t;if(!O())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(!O())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 se(){return HTMLElement.prototype.hasOwnProperty("popover")}var ne={strings:M,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ne._locale||(ne._locale=O()?navigator.language.slice(0,5):"en-US"),ne._locale},set locale(e){ne._locale=e,ne._numberFormatter=void 0,ne.dirty=!0},get numberFormatter(){return ne._numberFormatter||(ne._numberFormatter=new Intl.NumberFormat(ne.locale)),ne._numberFormatter},merge(e,t){if(typeof e=="string"&&t)ne.strings[e]=g(g({},ne.strings[e]),t),ne.dirty=!0;else for(const r of Object.keys(e))ne.merge(r,e[r])},get dirty(){return ne._dirty},set dirty(e){ne._dirty||ne._dirty===e||(ne._dirty=!0,setTimeout(()=>{ne._dirty=!1,this._subscribers.forEach(t=>t==null?void 0:t())},0))},subscribe(e){return ne._subscribers.push(e),ne._subscribers.length-1},unsubscribe(e){e<0||e>=ne._subscribers.length||(ne._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=J(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=J(i);s&&r.setAttribute("aria-label",s)}}}};function J(e,...t){if(e===void 0)return;let r="";const i=ne.locale;ne.strings[i]&&(r=ne.strings[i][e]);const s=i.slice(0,2);if(!r&&ne.strings[s]&&(r=ne.strings[s][e]),r||(r=ne.strings.en[e]),!r)return;const c=/(%@|%([0-9]+)\$@)/g;let d=c.exec(r),k=0;for(;d;){if(t[k++]){const X=d[2]?parseInt(d[2],10)-1:k-1;let ce=t[X];typeof ce=="number"&&(ce=ne.numberFormatter.format(ce)),r=r.replace(d[1],ce)}d=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"},le={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"},me={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"},Be={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,d;const k=e.split("!");let j,X,ce,Pe=255,nt=255,gt=255,St=-1;const Br=k.length>0&&k[0].startsWith("-");Br&&(k[0]=k[0].slice(1));for(let En=0;En<k.length;En++){j=Pe,X=nt,ce=gt;const wr=(t=k[En].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:t[1],nn=wr==null?void 0:wr.toLowerCase(),Mn=wr&&(d=(c=(s=(i=(r=me[nn])!=null?r:me[Oe[wr]])!=null?i:K[wr])!=null?s:Be[wr])!=null?c:W[wr])!=null?d:k[En].trim();let An=Mn.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(An!=null&&An[1]&&An[2]&&An[3])Pe=Math.max(0,Math.min(255,Number.parseInt(An[1],16))),nt=Math.max(0,Math.min(255,Number.parseInt(An[2],16))),gt=Math.max(0,Math.min(255,Number.parseInt(An[3],16)));else if(An=Mn.match(/^#([\da-f]{3})$/i),An!=null&&An[1]){const Si=Number.parseInt(An[1][0],16),ra=Number.parseInt(An[1][1],16),Qi=Number.parseInt(An[1][2],16);Pe=Math.max(0,Math.min(255,Si*16+Si)),nt=Math.max(0,Math.min(255,ra*16+ra)),gt=Math.max(0,Math.min(255,Qi*16+Qi))}else if(An=Mn.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),An!=null&&An[1]&&An[2]&&An[3])Pe=Math.max(0,Math.min(255,Number.parseInt(An[1]))),nt=Math.max(0,Math.min(255,Number.parseInt(An[2]))),gt=Math.max(0,Math.min(255,Number.parseInt(An[3])));else return;St>=0&&(Pe=(1-St)*Pe+St*j,nt=(1-St)*nt+St*X,gt=(1-St)*gt+St*ce,St=-1),En+1<k.length&&(St=Math.max(0,Math.min(100,Number.parseInt(k[++En])))/100)}return St>=0&&(Pe=St*Pe+(1-St)*j,nt=St*nt+(1-St)*X,gt=St*gt+(1-St)*ce),Br&&(Pe=255-Pe,nt=255-nt,gt=255-gt),"#"+("00"+Math.round(Pe).toString(16)).slice(-2)+("00"+Math.round(nt).toString(16)).slice(-2)+("00"+Math.round(gt).toString(16)).slice(-2)}function ee(e){var t,r;return e=e.trim(),(r=(t=le[e.toLowerCase()])!=null?t:le[Oe[e]])!=null?r:Ue(e)}function fe(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 Ye(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 Le(e){return e<0?0:e>255?255:Math.round(e)}function Ce(e){const{r:t,g:r,b:i}=e;let s=((1<<24)+(Le(t)<<16)+(Le(r)<<8)+Le(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),d=c-s;let k,j;c===s?k=0:t===c?k=(r-i)/d:r===c?k=2+(i-t)/d:i===c&&(k=4+(t-r)/d),k=Math.min(k*60,360),k<0&&(k+=360);const X=(s+c)/2;return c===s?j=0:X<=.5?j=d/(c+s):j=d/(2-c-s),{h:k,s:j,l:X}}function be(e){let t=fe(e);if(!t)return e;let{h:r,s:i,l:s}=Te(t);return i+=.1,s-=.1,Ce(Ye({h:r,s:i,l:s}))}var ke={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"},he={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 Xe(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(he[c]||c)}return e}function et(e){var t;if((e<119808||e>120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const r in he)if(he[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 ze(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=ke[s];if(c)c.startsWith("\\")?r+=c+" ":r+=c;else{const{char:d,variant:k,style:j}=et(s);switch(c=d,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 qe(e){return e?Array.isArray(e)?e:typeof e=="object"&&"group"in e?e.group:[]:[]}var Et={},Lt=g({},ke),Ot={},sr={},er={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}"},yr={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}},lr={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:lr},"amsmath.sty":{package:yr,primitive:!0},"texvc.sty":{package:er,primitive:!1}},dt={" ":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},I=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,m,u;R()?(m=new RegExp("\\p{Letter}","u"),u=new RegExp("[0-9\\p{Letter}]","u")):(m=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,u=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function C(e,t,r="mord",i){t!==void 0&&(Et[e]={definitionType:"symbol",type:r,variant:i,codepoint:t},Lt[t]||(Lt[t]=e))}function q(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,d]of e)C(i,s,c!=null?c:t,d!=null?d:r)}function Se(e,t){for(let r=e;r<=t;r++)C(String.fromCodePoint(r),r)}function H(e){var t;return(t=sr[e])!=null?t:null}function ie(e,t){var r,i;if(t.length===0||t==="\\"||!t.startsWith("\\"))return[];const s=[];for(const d in Ot)d.startsWith(t)&&!Ot[d].infix&&s.push({match:d,frequency:(r=Ot[d].frequency)!=null?r:0});for(const d in Et)d.startsWith(t)&&s.push({match:d,frequency:(i=Et[d].frequency)!=null?i:0});const c=t.substring(1);for(const d of Object.keys(e.options.macros))d.startsWith(c)&&s.push({match:"\\"+d,frequency:0});return s.sort((d,k)=>{var j,X;return d.frequency===k.frequency?d.match.length===k.match.length?d.match<k.match?-1:1:d.match.length-k.match.length:((j=k.frequency)!=null?j:0)-((X=d.frequency)!=null?X:0)}),s.map(d=>d.match)}function Qe(e){let t="auto";const r=e.match(/:([^=]+)/);return r&&(t=r[1].trim()),t}function we(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(...we(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(...we(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)sr[i]=r}function xt(e,t,r){typeof e=="string"&&(e=[e]);const s={tabular:!0,params:we(t),createAtom:r};for(const c of e)sr[c]=s}function de(e,t,r){var i,s;r||(r={});const c={definitionType:"function",params:we(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")Ot["\\"+e]=c;else for(const d of e)Ot["\\"+d]=c}var st;function tt(e){return st||(st=De(G)),e?De(g(g({},st),e)):st}function Ie(e,t){var r,i,s,c;if(typeof e=="string"){let d=0;const k=e;return/(^|[^\\])#1/.test(k)&&(d=1),/(^|[^\\])#2/.test(k)&&(d=2),/(^|[^\\])#3/.test(k)&&(d=3),/(^|[^\\])#4/.test(k)&&(d=4),/(^|[^\\])#5/.test(k)&&(d=5),/(^|[^\\])#6/.test(k)&&(d=6),/(^|[^\\])#7/.test(k)&&(d=7),/(^|[^\\])#8/.test(k)&&(d=8),/(^|[^\\])#9/.test(k)&&(d=9),{expand:(r=t==null?void 0:t.expand)!=null?r:!0,captureSelection:(i=t==null?void 0:t.captureSelection)!=null?i:!0,args:d,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 De(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 lt(e,t="math"){if(!e||e.length===0)return null;let r=null;if(e.startsWith("\\")){if(r=Ot[e],r)return!r.ifMode||r.ifMode===t?r:null;t==="math"?r=Et[e]:dt[e]&&(r={definitionType:"symbol",type:"mord",codepoint:dt[e]})}else if(t==="math"){if(r=Et[e],!r&&e.length===1){const i=kt("math",e.codePointAt(0));return i.startsWith("\\")?F(g({},lt(i,"math")),{command:i}):null}}else dt[e]?r={definitionType:"symbol",type:"mord",codepoint:dt[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(dt).find(i=>dt[i]===t);return r||String.fromCodePoint(t)}return String.fromCodePoint(t)}var rr=[0,.68889,0,0,.72222],Fr=[0,.68889,0,0,.66667],kr=[0,.68889,0,0,.77778],Dr=[0,.68889,0,0,.61111],Nr=[.16667,.68889,0,0,.77778],xr=[0,.68889,0,0,.55556],ur=[0,0,0,0,.25],Kr=[0,.825,0,0,2.33334],pn=[0,.9,0,0,2.33334],kn=[0,.68889,0,0,.54028],mn=[-.03598,.46402,0,0,.5],Dn=[-.13313,.36687,0,0,1],Ki=[.01354,.52239,0,0,1],hr=[.01354,.52239,0,0,1.11111],Gn=[0,.54986,0,0,1],Hi=[0,.69224,0,0,.5],di=[0,.43056,0,0,1],$i=[.08198,.58198,0,0,.77778],Ri=[.19444,.69224,0,0,.41667],Zi=[.1808,.675,0,0,1],za=[.19444,.69224,0,0,.83334],Fi=[.13667,.63667,0,0,1],qn=[-.064,.437,0,0,1.334],ai=[.08167,.58167,0,0,.77778],yi=[0,.69224,0,0,.72222],ge=[0,.69224,0,0,.66667],Me=[-.13313,.36687,0,0,.77778],Fe=[.06062,.54986,0,0,.77778],Ge=[0,.69224,0,0,.77778],Pt=[.25583,.75583,0,0,.77778],Dt=[.25142,.75726,0,0,.77778],Er=[.20576,.70576,0,0,.77778],nr=[.30274,.79383,0,0,.77778],Or=[.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],Nn=[0,.54986,0,0,.66667],Qn=[.0391,.5391,0,0,.77778],hi=[.03517,.54986,0,0,1.33334],On=[.38569,.88569,0,0,.77778],Xn=[.23222,.74111,0,0,.77778],Vt=[.19444,.69224,0,0,.77778],Xt=[0,.37788,0,0,.5],Yt=[0,.54986,0,0,.72222],tr=[0,.69224,0,0,.83334],jt=[.11111,.69224,0,0,.66667],or=[.26167,.75726,0,0,.77778],cr=[.48256,.98256,0,0,.77778],Pr=[.28481,.79383,0,0,.77778],yn=[.08167,.58167,0,0,.22222],Cn=[.08167,.58167,0,0,.38889],Ai=[0,.43056,.04028,0,.66667],ni=[.41951,.91951,0,0,.77778],Ei=[.24982,.74947,0,0,.38865],ei=[.08319,.58283,0,0,.75623],jn=[0,.10803,0,0,.27764],xi=[0,.47534,0,0,.50181],wi=[.18906,.47534,0,0,.50181],Ci=[0,.69141,0,0,.50181],ui=[.24982,.74947,0,0,.27764],Bi=[0,.69141,0,0,.21471],Xi=[.25,.75,0,0,.44722],ri=[0,.64444,0,0,.575],Pi=[.08556,.58556,0,0,.89444],Ha=[0,.69444,0,0,.89444],ci=[0,.68611,0,0,.9],fn=[0,.68611,0,0,.86944],ln=[.25,.75,0,0,.575],Jn=[.25,.75,0,0,.31944],Kn=[0,.69444,0,0,.63889],pi=[0,.69444,0,0,.31944],qi=[0,.44444,0,0,.63889],Mi=[0,.44444,0,0,.51111],Ua=[0,.69444,0,0,.575],Aa=[.13333,.63333,0,0,.89444],Bo=[0,.44444,0,0,.31944],Vn=[0,.69444,0,0,.86944],In=[0,.68611,0,0,.69166],Di=[0,.68611,0,0,.83055],Ji=[0,.68611,0,0,.89444],Fa=[0,.69444,0,0,.60278],Is=[.19444,.69444,0,0,.51111],$a=[0,.69444,0,0,.83055],fa=[-.10889,.39111,0,0,1.14999],Io=[.19444,.69444,0,0,.575],So=[.19444,.69444,0,0,1.14999],Po=[.19444,.69444,0,0,.70277],Os=[.05556,.75,0,0,.575],po=[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],ii=[0,.68611,.17208,0,.8961],la=[.19444,.44444,.105,0,.53222],ta=[0,.44444,.085,0,.82666],oa=[0,.69444,.06709,0,.59111],Da=[0,.69444,.12945,0,.35555],so=[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],eo=[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],OA=[0,.68333,0,0,.68056],uc=[0,.68333,0,0,.72222],jl=[.25,.75,0,0,.5],to=[.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],go=[0,.43056,0,0,.27778],jo=[0,.66786,0,0,.27778],zo=[0,.69444,0,0,.75],No=[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],Nc=[-.01688,.48312,0,0,.77778],Fd=[.0391,.5391,0,0,1],Xo=[0,.69444,0,0,.61111],Oo=[-.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],Oc=[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],ue=[.19444,.69444,0,0,.83334],xe=[.05556,.75,0,0,.83334],Je=[0,.75,0,0,.5],ct=[.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],_r=[0,.69444,0,0,.70834],mr=[.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],xn=[0,.44444,0,0,.51667],Fn=[0,.69444,0,0,.83334],Bn=[.35001,.85,0,0,.45834],zn=[.35001,.85,0,0,.57778],Ti=[.35001,.85,0,0,.41667],ji=[.35001,.85,0,0,.58334],mi=[0,.72222,0,0,.55556],na=[1e-5,.6,0,0,.66667],wa=[1e-5,.6,0,0,.77778],Yn=[.25001,.75,0,0,.94445],bi=[.306,.805,.19445,0,.47222],oi=[.30612,.805,.19445,0,.47222],Tn=[.25001,.75,0,0,.83334],si=[.35001,.85,0,0,.47222],Vi=[.25001,.75,0,0,1.11111],Na=[.65002,1.15,0,0,.59722],pa=[.65002,1.15,0,0,.81111],Wi=[.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],lo=[.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],mo=[.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],li=[.95003,1.45,0,0,.75],Gi=[0,.75,0,0,1.44445],zi=[.95003,1.45,0,0,.58334],Ni=[1.25003,1.75,0,0,.79167],vo=[1.25003,1.75,0,0,1.27778],Oi=[1.25003,1.75,0,0,.58334],ca=[1.25003,1.75,0,0,.80556],ja=[0,.825,0,0,1.8889],Za=[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],co=[0,.12,0,0,.45],hn=[0,.61111,0,0,.525],Lo=[.08333,.69444,0,0,.525],cl=[-.08056,.53055,0,0,.525],As=[-.05556,.55556,0,0,.525],ia=[0,.43056,0,0,.525],Sl=[.22222,.43056,0,0,.525],Zl=[0,0,0,0,.525],Rc={"AMS-Regular":{32:ur,65:rr,66:Fr,67:rr,68:rr,69:Fr,70:Dr,71:kr,72:kr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:kr,76:Fr,77:[0,.68889,0,0,.94445],78:rr,79:Nr,80:Dr,81:Nr,82:rr,83:xr,84:Fr,85:rr,86:rr,87:[0,.68889,0,0,1],88:rr,89:rr,90:Fr,107:xr,160:ur,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:xr,295:kn,710:Kr,732:pn,770:Kr,771:pn,989:ai,1008:Ai,8245:[0,.54986,0,0,.275],8463:kn,8487:rr,8498:xr,8502:Fr,8503:[0,.68889,0,0,.44445],8504:Fr,8513:[0,.68889,0,0,.63889],8592:mn,8594:mn,8602:Dn,8603:Dn,8606:Ki,8608:Ki,8610:hr,8611:hr,8619:Gn,8620:Gn,8621:[-.13313,.37788,0,0,1.38889],8622:Dn,8624:Hi,8625:Hi,8630:di,8631:di,8634:$i,8635:$i,8638:Ri,8639:Ri,8642:Ri,8643:Ri,8644:Zi,8646:Zi,8647:Zi,8648:za,8649:Zi,8650:za,8651:Ki,8652:Ki,8653:Dn,8654:Dn,8655:Dn,8666:Fi,8667:Fi,8669:[-.13313,.37788,0,0,1],8672:qn,8674:qn,8705:[0,.825,0,0,.5],8708:xr,8709:ai,8717:[0,.43056,0,0,.42917],8722:mn,8724:[.08198,.69224,0,0,.77778],8726:ai,8733:Ge,8736:yi,8737:yi,8738:[.03517,.52239,0,0,.72222],8739:yn,8740:[.25142,.74111,0,0,.27778],8741:Cn,8742:[.25142,.74111,0,0,.5],8756:ge,8757:ge,8764:Me,8765:[-.13313,.37788,0,0,.77778],8769:Me,8770:Yu,8774:nr,8776:Nc,8778:ai,8782:Fe,8783:Fe,8785:$i,8786:$i,8787:$i,8790:Ge,8791:Or,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:nr,8817:nr,8818:Or,8819:Or,8822:Hr,8823:Hr,8828:an,8829:an,8830:Or,8831:Or,8832:Er,8833:Er,8840:nr,8841:nr,8842:jr,8843:jr,8847:Rr,8848:Rr,8858:$i,8859:$i,8861:$i,8862:en,8863:en,8864:en,8865:en,8872:[0,.69224,0,0,.61111],8873:yi,8874:[0,.69224,0,0,.88889],8876:Dr,8877:Dr,8878:rr,8879:rr,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:ai,8905:ai,8906:ai,8907:Ge,8908:Ge,8909:[-.03598,.46402,0,0,.77778],8910:on,8911:on,8912:Rr,8913:Rr,8914:Nn,8915:Nn,8916:ge,8918:Qn,8919:Qn,8920:hi,8921:hi,8922:On,8923:On,8926:an,8927:an,8928:nr,8929:nr,8934:Xn,8935:Xn,8936:Xn,8937:Xn,8938:Er,8939:Er,8940:nr,8941:nr,8994:Vt,8995:Vt,9416:[.15559,.69224,0,0,.90222],9484:Hi,9488:Hi,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:tr,10016:tr,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:cr,10892:cr,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:Cn,57352:ai,57353:Ai,57356:Dt,57357:Dt,57358:ni,57359:nr,57360:nr,57361:ni,57366:Dt,57367:Dt,57368:Dt,57369:Dt,57370:jr,57371:jr},"Caligraphic-Regular":{32:ur,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:ur},"Fraktur-Regular":{32:ur,33:[0,.69141,0,0,.29574],34:Bi,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Ei,41:Ei,42:[0,.62119,0,0,.27764],43:ei,44:jn,45:ei,46:jn,47:[.24982,.74947,0,0,.50181],48:xi,49:xi,50:xi,51:wi,52:wi,53:wi,54:Ci,55:wi,56:Ci,57:wi,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:ui,93:ui,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:ur,8216:Bi,8217:Bi,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:ur,33:[0,.69444,0,0,.35],34:Fa,35:[.19444,.69444,0,0,.95833],36:Os,37:[.05556,.75,0,0,.95833],38:Ha,39:pi,40:Xi,41:Xi,42:[0,.75,0,0,.575],43:Aa,44:[.19444,.15556,0,0,.31944],45:Pn,46:[0,.15556,0,0,.31944],47:ln,48:ri,49:ri,50:ri,51:ri,52:ri,53:ri,54:ri,55:ri,56:ri,57:ri,58:Bo,59:[.19444,.44444,0,0,.31944],60:Pi,61:Uo,62:Pi,63:[0,.69444,0,0,.54305],64:Ha,65:fn,66:[0,.68611,0,0,.81805],67:Di,68:[0,.68611,0,0,.88194],69:Mo,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:ci,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:In,77:[0,.68611,0,0,1.09166],78:ci,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:fn,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Jn,92:ln,93:Jn,94:Ua,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Kn,99:Mi,100:Kn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Kn,105:pi,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:pi,109:[0,.44444,0,0,.95833],110:qi,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:qi,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:Mi,123:ln,124:Jn,125:ln,126:[.35,.34444,0,0,.575],160:ur,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:Bo,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:pi,730:Vn,732:Ua,733:Ua,915:In,916:po,920:Ji,923:VA,926:nu,928:ci,931:Di,933:Ji,934:Di,936:Ji,937:Di,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:pi,8217:pi,8220:Fa,8221:Fa,8224:Is,8225:Is,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:wA,8465:$a,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:$a,8501:ic,8592:fa,8593:Io,8594:fa,8595:Io,8596:fa,8597:ln,8598:So,8599:So,8600:So,8601:So,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:Os,8711:po,8712:bs,8715:bs,8722:Aa,8723:Aa,8725:ln,8726:ln,8727:ac,8728:Ps,8729:Ps,8730:[.18,.82,0,0,.95833],8733:$s,8734:[0,.44444,0,0,1.14999],8736:yi,8739:Jn,8741:ln,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:Pi,8827:Pi,8834:Pi,8835:Pi,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:So,9824:Kl,9825:Kl,9826:Kl,9827:Kl,9837:[0,.75,0,0,.44722],9838:Hl,9839:Hl,10216:Xi,10217:Xi,10815:ci,10927:el,10928:el,57376:Ld},"Main-BoldItalic":{32:ur,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:ii,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:ii,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:oa,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:ur,168:[0,.69444,.11473,0,.59111],176:so,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:ta,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:ta,567:[.19444,.44444,.04611,0,.385],710:oa,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:so,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:ii,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:ur,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:eo,49:eo,50:eo,51:eo,52:Ra,53:eo,54:eo,55:Ra,56:eo,57:eo,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:ur,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:kn},"Main-Regular":{32:ur,33:ll,34:Gs,35:ue,36:rl,37:xe,38:gs,39:ll,40:gA,41:gA,42:Je,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:go,59:[.19444,.43056,0,0,.27778],60:Qn,61:Me,62:Qn,63:$t,64:gs,65:qc,66:[0,.68333,0,0,.70834],67:uc,68:[0,.68333,0,0,.76389],69:OA,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:OA,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:to,92:jl,93:to,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:to,125:jl,126:[.35,.31786,0,0,.5],160:ur,163:[0,.69444,0,0,.76909],167:oc,168:No,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:go,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:No,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:kn,8465:Vc,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Vc,8501:Xo,8592:Dn,8593:Xs,8594:Dn,8595:Xs,8596:Dn,8597:jl,8598:bA,8599:bA,8600:bA,8601:bA,8614:[.011,.511,0,0,1],8617:xl,8618:xl,8636:Dn,8637:Dn,8640:Dn,8641:Dn,8652:[.011,.671,0,0,1],8656:Dn,8657:eA,8658:Dn,8659:eA,8660:Dn,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:Oo,8728:jA,8729:jA,8730:[.2,.8,0,0,.83334],8733:cf,8734:di,8736:yi,8739:to,8741:jl,8743:Wc,8744:Wc,8745:Wc,8746:Wc,8747:[.19444,.69444,.11111,0,.41667],8764:Me,8768:[.19444,.69444,0,0,.27778],8771:Yu,8773:[-.022,.589,0,0,1],8776:Nc,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:Oo,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:Oo,9661:qu,9667:Oo,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:ur,48:$A,49:$A,50:$A,51:ZA,52:ZA,53:ZA,54:ri,55:ZA,56:ri,57:ZA,65:fn,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:ur,915:[0,.68611,.15972,0,.65694],916:po,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:ur,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:ur,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:ur,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:Oc,65:Oc,66:Oc,67:_u,68:Pc,69:[0,.69444,0,0,.64167],70:Xo,71:Oc,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:Oc,85:Bh,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Oc,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:ur,168:Bl,176:Oc,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:Oc,732:Bl,733:Bl,915:$o,916:[0,.69444,0,0,.91667],920:Hf,923:ed,926:Oc,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:ur,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:ct,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:ur,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:Fn,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:ur,33:[0,.69444,0,0,.31945],34:Gs,35:ue,36:rl,37:xe,38:[0,.69444,0,0,.75834],39:ll,40:gA,41:gA,42:Je,43:ts,44:ct,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:_r,73:ll,74:$t,75:[0,.69444,0,0,.69445],76:dr,77:[0,.69444,0,0,.875],78:_r,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:mr,93:mr,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:xn,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:xn,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:ur,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:Fn,920:gs,923:Xo,926:zt,928:_r,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:ur,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:ur},"Size1-Regular":{32:ur,40:Bn,41:Bn,47:zn,91:Ti,92:zn,93:Ti,123:ji,125:ji,160:ur,710:mi,732:mi,770:mi,771:mi,8214:[-99e-5,.601,0,0,.77778],8593:na,8595:na,8657:wa,8659:wa,8719:Yn,8720:Yn,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:oi,8748:bi,8749:bi,8750:oi,8896:Tn,8897:Tn,8898:Tn,8899:Tn,8968:si,8969:si,8970:si,8971:si,9168:Gc,10216:si,10217:si,10752:Vi,10753:Vi,10754:Vi,10756:Tn,10758:Tn},"Size2-Regular":{32:ur,40:Na,41:Na,47:pa,91:Wi,92:pa,93:Wi,123:_a,125:_a,160:ur,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:lo,8749:lo,8750:vs,8896:cs,8897:cs,8898:cs,8899:cs,8968:ma,8969:ma,8970:ma,8971:ma,10216:al,10217:al,10752:mo,10753:mo,10754:mo,10756:cs,10758:cs},"Size3-Regular":{32:ur,40:qo,41:qo,47:rs,91:xc,92:rs,93:xc,123:li,125:li,160:ur,710:Gi,732:Gi,770:Gi,771:Gi,8730:[.95003,1.45,0,0,1],8968:zi,8969:zi,8970:zi,8971:zi,10216:li,10217:li},"Size4-Regular":{32:ur,40:Ni,41:Ni,47:vo,91:Oi,92:vo,93:Oi,123:ca,125:ca,160:ur,710:ja,732:ja,770:ja,771:ja,8730:[1.25003,1.75,0,0,1],8968:Za,8969:Za,8970:Za,8971:Za,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:co,57681:co,57682:co,57683:co},"Typewriter-Regular":{32:Zl,33:hn,34:hn,35:hn,36:Lo,37:Lo,38:hn,39:hn,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:hn,49:hn,50:hn,51:hn,52:hn,53:hn,54:hn,55:hn,56:hn,57:hn,58:ia,59:[.13889,.43056,0,0,.525],60:As,61:[-.19549,.41562,0,0,.525],62:As,63:hn,64:hn,65:hn,66:hn,67:hn,68:hn,69:hn,70:hn,71:hn,72:hn,73:hn,74:hn,75:hn,76:hn,77:hn,78:hn,79:hn,80:hn,81:[.13889,.61111,0,0,.525],82:hn,83:hn,84:hn,85:hn,86:hn,87:hn,88:hn,89:hn,90:hn,91:Lo,92:Lo,93:Lo,94:hn,95:[.09514,0,0,0,.525],96:hn,97:ia,98:hn,99:ia,100:hn,101:ia,102:hn,103:Sl,104:hn,105:hn,106:[.22222,.61111,0,0,.525],107:hn,108:hn,109:ia,110:ia,111:ia,112:Sl,113:Sl,114:ia,115:ia,116:[0,.55358,0,0,.525],117:ia,118:ia,119:ia,120:ia,121:Sl,122:ia,123:Lo,124:Lo,125:Lo,126:hn,127:hn,160:Zl,176:hn,184:[.19445,0,0,0,.525],305:ia,567:Sl,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:hn,715:hn,728:hn,730:hn,770:hn,771:hn,776:hn,915:hn,916:hn,920:hn,923:hn,926:hn,928:hn,931:hn,933:hn,934:hn,936:hn,937:hn,8216:hn,8217:hn,8242:hn,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[X,ce,Pe]=PA[e],nt=`<span class="stretchy" style="height:${Pe}em"><svg width="100%" height="${Pe}em" viewBox="0 0 ${X} ${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">${nt}</span>`}const[t,r,i,s]=xA[e];let c,d;const k=i/1e3;t.length===3?(c=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],d=["xMinYMin","xMidYMin","xMaxYMin"]):t.length===2?(c=["slice-1-of-2","slice-2-of-2"],d=["xMinYMin","xMaxYMin"]):(c=["slice-1-of-1"],d=[s]);const j=t.map((X,ce)=>`<span class="${c[ce]}" style=height:${k}em><svg width=400em height=${k}em viewBox="0 0 400000 ${i}" preserveAspectRatio="${d[ce]} slice"><path fill="currentcolor" d="${CA[X]}"></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 ao(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,d=s-56320;i=wh(2,16)+c*wh(2,10)+d,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=ao(e);let i=0;for(;i<r.length;){const s=r[i++],c=r[i];if(c===Zo){const d=i-1;for(i+=2;r[i]===Zo;)i+=2;t.push(String.fromCodePoint(...r.slice(d,i-d+1)))}else if(Wl(c)){const d=i-1;for(;Wl(r[i]);)i+=r[i]===Zo?2:1;t.push(String.fromCodePoint(...r.slice(d,2*i-d-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 d=[];let k=e.next();if(k&&k!=="\\relax"){if(k==="\\noexpand")k=e.next(),k&&d.push(k);else if(k==="\\obeyspaces")e.obeyspaces=!0;else if(k==="\\bgroup")d.push("<{>");else if(k==="\\egroup")d.push("<}>");else if(k==="\\string"){if(k=e.next(),k)if(k.startsWith("\\"))for(const j of k)d.push(j==="\\"?"\\backslash":j);else k==="<{>"?d.push("\\{"):k==="<space>"?d.push("~"):k==="<}>"&&d.push("\\}")}else if(k==="\\csname"){for(;e.peek()==="<space>";)e.next();let j="",X=!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]:[];X=ce.length===0,!X&&k==="\\endcsname"&&(X=!0,ce.shift()),X||(X=k==="<$>"||k==="<$$>"||k==="<{>"||k==="<}>"||typeof k=="string"&&k.length>1&&k.startsWith("\\")),X||(j+=ce.shift())}while(!X);j&&d.push("\\"+j),d.push(...ce)}else if(k!=="\\endcsname")if(k.length>1&&k.startsWith("#")){const j=k.slice(1);d.push(...id((c=(s=t==null?void 0:t(j))!=null?s:t==null?void 0:t("?"))!=null?c:"\\placeholder{}",t))}else d.push(k)}return d}function id(e,t=null){const r=[];let i="";for(const d of e.toString().split(/\r?\n/)){i&&r.push(i),i=" ";const k=d.match(/((?:\\%)|[^%])*/);k!==null&&r.push(k[0])}const s=new hf(ze(r.join(""))),c=[];do c.push(...pf(s,t));while(!s.end());return c}function Ao(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:Ao([e,...t.map(r=>`{${r}}`)])}function SA(e){return Ao(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,lt(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 d=gg._registry[c[0].mode];s.push(...d.serialize(c,r))}return Ao(s)}return Ao(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 d;t==="variant"?(d=c.style.variant,c.style.variantStyle&&c.style.variantStyle!=="up"&&(d+="-"+c.style.variantStyle)):d=c.style[t],d===s?i.push(c):(i.length>0&&r.push(i),i=[c],s=d)}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 d of $f(e)){const k=t.defaultMode;for(const j of TA(d,"color")){const X=j[0].computedStyle,ce=Gl._registry[j[0].mode].serialize(j,F(g({},t),{defaultMode:k==="text"?"text":"math"}));!t.skipStyles&&X.color&&X.color!=="none"&&(!i||s!==X.color)?c.push(Bs("\\textcolor",(r=X.verbatimColor)!=null?r:X.color,Ao(ce))):c.push(Ao(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 d=s[0].computedStyle;if(d.backgroundColor&&d.backgroundColor!=="none"&&(!r||i!==d.backgroundColor))return Bs("\\colorbox",(c=d.verbatimBackgroundColor)!=null?c:d.backgroundColor,Ao(Zf(s,F(g({},t),{defaultMode:"text"}))))}return Ao(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 d=c[0].computedStyle.fontSize,k=Vf(c,t);k&&(d&&d!=="auto"&&(!r||i!==d)?s.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][d],...k):s.push(...k))}return s}function Nd(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 Od(e){if(e.length===0)return"ord";const t=Nd(e[0].type),r=Nd(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 N1{constructor(t,r){var i,s,c,d,k;if(typeof t=="number"?this.value=String.fromCodePoint(t):typeof t=="string"?this.value=t:_(t)?this.children=t.filter(X=>X!==null):t&&t instanceof N1&&(this.children=[t]),this.children)for(const X of this.children)X.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((d=r.mode)!=null?d:"math",this,F(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=be(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 d="";if(this.svgBody)d=ff(this.svgBody);else if(this.svgOverlay){d='<span style="',d+="display: inline-block;",d+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,d+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,d+='">',d+=c,d+="</span>",d+='<svg style="position:absolute;overflow:visible;',d+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const gt=(r=this.cssProperties)==null?void 0:r.padding;gt?(d+=`top:${gt};`,d+=`left:${gt};`,d+=`width:calc(100% - 2 * ${gt} );`):d+="top:0;left:0;width:100%;",d+="z-index:2;",d+='"',this.svgStyle&&(d+=this.svgStyle),d+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,d+=`>${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 X=j.length===1?j[0]:j.filter((gt,St,Br)=>gt.length>0&&Br.indexOf(gt)===St).join(" ");if(X.length>0&&(k+=` class="${X}"`),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 St of gt){const Br=St.match(/([^=]+)=(.+$)/);if(Br){const En=Br[1].trim().replace(/ /g,"-");En&&(k+=` data-${En}="${Br[2]}" `)}else{const En=St.trim().replace(/ /g,"-");En&&(k+=` data-${En} `)}}}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||d.length>0)&&Pe.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const gt=this.htmlStyle.split(";");let St="";for(const Br of gt){const En=Br.match(/([^=]+):(.+$)/);if(En){const wr=En[1].trim().replace(/ /g,"-");wr&&(St+=`${wr}:${En[2]};`)}}St&&(k+=` style="${St}"`)}Pe.length>0&&(k+=` style="${Pe.join(";")}"`);let nt="";return k.length>0||d.length>0?nt=`<span${k}>${c}${d}</span>`:nt=c,this.caret==="text"?nt+='<span class="ML__text-caret"></span>':this.caret==="math"&&(nt+='<span class="ML__caret"></span>'),nt}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 d=this.classes.trim().replace(/\s+/g," ").split(" "),k=t.classes.trim().replace(/\s+/g," ").split(" ");if(d.length!==k.length)return!1;d.sort(),k.sort();for(const[j,X]of d.entries())if(X==="vertical-separator"||X!==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,F(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 d of e.children)d.height>i&&(i=d.height),d.depth>s&&(s=d.depth),c=Math.max(c,(r=d.maxFontSize)!=null?r:0);e.height=i,e.depth=s,e._width=e.children.reduce((d,k)=>d+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 d=1;d<t.length;d++){const k=t[d],j=-k.shift-c-k.box.depth,X=j-(r.box.height+r.box.depth);c=c+j,i.push(X),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 St of r)if(typeof St!="number"){const Br=St.box;c=Math.max(c,Br.maxFontSize,Br.height)}c+=2,s.height=c,s.setStyle("height",c,"em");const d=[];let k=i,j=i,X=i,ce=0;for(const St of r){if(typeof St=="number")X+=St;else{const Br=St.box,En=(t=St.classes)!=null?t:[],wr=new zr([s,Br],{classes:En.join(" "),style:St.style});Br.setStyle("height",Br.height+Br.depth,"em"),Br.setStyle("display","inline-block"),wr.setStyle("top",-c-X-Br.depth,"em"),St.marginLeft&&wr.setStyle("margin-left",St.marginLeft,"em"),St.marginRight&&wr.setStyle("margin-right",St.marginRight,"em"),d.push(wr),X+=Br.height+Br.depth,ce=Math.max(ce,wr.width)}k=Math.min(k,X),j=Math.max(j,X)}d.forEach(St=>{St.softWidth=ce});const Pe=new zr(d,{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 nt=new zr(new zr(null),{classes:"vlist"});nt.height=-k,nt.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(nt,{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((d,k)=>Math.max(d,k.width),0)}};function Mu(e,t){var r,i,s,c,d;const k=e.metrics,j=new zr(t.base),X=(r=t.baseShift)!=null?r:0,ce=(i=t.slant)!=null?i:0;let Pe=0,nt=0;t.above&&(Pe=(s=t.aboveShift)!=null?s:Math.max(k.bigOpSpacing1,k.bigOpSpacing3-t.above.depth)),t.below&&(nt=(c=t.belowShift)!=null?c:Math.max(k.bigOpSpacing2,k.bigOpSpacing4-t.below.height));let gt=null;if(t.below&&t.above){const St=k.bigOpSpacing5+t.below.height+t.below.depth+nt+j.depth+X;gt=new bl({bottom:St,children:[k.bigOpSpacing5,{box:t.below,marginLeft:-ce,classes:["ML__center"]},nt,{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-X,children:[k.bigOpSpacing5,{box:t.below,marginLeft:-ce,classes:["ML__center"]},nt,{box:j,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const St=j.depth+X;gt=new bl({bottom:St,children:[{box:j,classes:["ML__center"]},Pe,{box:t.above,marginLeft:ce,classes:["ML__center"]},k.bigOpSpacing5]}).wrap(e)}else{const St=j.depth+X;gt=new bl({bottom:St,children:[{box:j},k.bigOpSpacing5]}).wrap(e)}return new zr(gt,{type:(d=t.type)!=null?d:"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)=>F(g({},s),{[c]:Rs[c][i]}),{})}getFontSize(e){return Math.max(1,e+this.sizeDelta)}get sup(){return bo[[Xl,Qc,Xl,Qc,ds,ou,ds,ou][this.id]]}get sub(){return bo[[Xl,Xl,Xl,Xl,ds,ds,ds,ds][this.id]]}get fracNum(){return bo[[Xl,Qc,Xl,Qc,ds,ou,UA,bf][this.id]]}get fracDen(){return bo[[Xl,Xl,Xl,Xl,ds,ds,UA,UA][this.id]]}get cramp(){return bo[[Xl,Xl,ds,ds,UA,UA,sd,sd][this.id]]}get isTight(){return this.sizeDelta<0}},uo={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)},bo=F(g({},uo),{displaystyle:uo[vf],textstyle:uo[bf],scriptstyle:uo[ou],scriptscriptstyle:uo[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?F(g({},e),{number:e.number*t}):"register"in e?"factor"in e&&e.factor?F(g({},e),{factor:e.factor*t}):F(g({},e),{factor:t}):"dimension"in e?F(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:ne.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Ue,backgroundColorMap:ee,getMacro:e=>Ut(e,tt())}}var Eo=class O1{constructor(t,r){var i,s,c,d,k,j,X,ce,Pe,nt,gt,St,Br,En,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=(d=(c=t==null?void 0:t.isPhantom)!=null?c:(s=this.parent)==null?void 0:s.isPhantom)!=null?d:!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=(X=this.parent)==null?void 0:X.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=(nt=this.parent)==null?void 0:nt.size)!=null?gt:il;let Mn=(Br=(St=this.parent)==null?void 0:St.mathstyle)!=null?Br:bo.displaystyle;if(typeof(t==null?void 0:t.mathstyle)=="string"){if(nn instanceof O1)switch(t.mathstyle){case"cramp":Mn=Mn.cramp;break;case"superscript":Mn=Mn.sup;break;case"subscript":Mn=Mn.sub;break;case"numerator":Mn=Mn.fracNum;break;case"denominator":Mn=Mn.fracDen;break}switch(t.mathstyle){case"textstyle":Mn=bo.textstyle;break;case"displaystyle":Mn=bo.displaystyle;break;case"scriptstyle":Mn=bo.scriptstyle;break;case"scriptscriptstyle":Mn=bo.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Mn,this.smartFence=nn.smartFence,this.placeholderSymbol=nn.placeholderSymbol,this.colorMap=(En=nn.colorMap)!=null?En:An=>An,this.backgroundColorMap=(wr=nn.backgroundColorMap)!=null?wr:An=>An,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?F(g({},c),{dimension:i*c.dimension}):"glue"in c?F(g({},c),{glue:F(g({},c.glue),{dimension:i*c.glue.dimension}),shrink:c.shrink?F(g({},c.shrink),{dimension:i*c.shrink.dimension}):void 0,grow:c.grow?F(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,d,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=(d=t.captureSelection)!=null?d:!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),d=[];for(const j of c){const X=j[0].style,ce=Nm(t,j,{style:{color:X.color,backgroundColor:X.backgroundColor,fontSize:X.fontSize}});ce&&d.push(ce)}if(d.length===0)return null;const k=((s=i==null?void 0:i.classes)!=null?s:"").trim();return d.length===1&&!k&&!(i!=null&&i.type)?d[0].wrap(t):new zr(d,{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=lt(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):this.body&&this.command?Ao([Bs(this.command,this.bodyToLatex(t)),this.supsubToLatex(t)]):this.body?Ao([this.bodyToLatex(t),this.supsubToLatex(t)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(t){var r;return Gl.serialize(this.body,F(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=F(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=lt(this.command,this.mode);if(r!=null&&r.render)return r.render(this,t);const i=new Eo({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,d=this.subscript;if(!c&&!d)return s;let k=null,j=null;const X=(i=r.isCharacterBox)!=null?i:this.isCharacterBox();let ce=0;if(c){const Br=new Eo({parent:t,mathstyle:"superscript"});k=v0.createBox(Br,c),X||(ce=s.height-t.metrics.supDrop*Br.scalingFactor)}let Pe=0;if(d){const Br=new Eo({parent:t,mathstyle:"subscript"});j=v0.createBox(Br,d),X||(Pe=s.depth+t.metrics.subDrop*Br.scalingFactor)}let nt;t.isDisplayStyle?nt=t.metrics.sup1:t.isCramped?nt=t.metrics.sup3:nt=t.metrics.sup2;const gt=.5/El/t.scalingFactor;let St=null;if(j&&k){ce=Math.max(ce,nt,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 En=this.isExtensibleSymbol&&s.italic?-s.italic:0;St=new bl({individualShift:[{box:j,shift:Pe,marginLeft:En},{box:k,shift:-ce}]}).wrap(t)}else j&&!k?(Pe=Math.max(Pe,t.metrics.sub1,j.height-.8*Ll),St=new bl({shift:Pe,children:[{box:j,marginRight:gt,marginLeft:this.isCharacterBox()?-s.italic:0}]})):!j&&k&&(ce=Math.max(ce,nt,k.depth+.25*Ll),St=new bl({shift:-ce,children:[{box:k,marginRight:gt}]}));return new zr([s,new zr(St,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:r.type})}attachLimits(t,r){const i=this.superscript?v0.createBox(new Eo({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,s=this.subscript?v0.createBox(new Eo({parent:t,mathstyle:"subscript"},this.style),this.subscript):null;return!i&&!s?r.base.wrap(t):Mu(t,F(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,d;const k=(i=this.value)!=null?i:this.body,j=(s=r==null?void 0:r.boxType)!=null?s:Nd(this.type);let X=(c=r==null?void 0:r.classes)!=null?c:"";this.mode==="text"&&(X+=" 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:F(g({variant:"normal"},this.style),{fontSize:Math.max(1,t.size+t.mathstyle.sizeDelta)}),letterShapeStyle:t.letterShapeStyle,classes:X}):(d=v0.createBox(t,k,{type:j,classes:X}))!=null?d: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 Nm(e,t,r){var i,s,c,d,k;if(!t||t.length===0)return null;const j=new Eo({parent:e},r.style),X=!((i=j.atomIdsSettings)!=null&&i.groupNumbers);let ce=[];if(t.length===1){const nt=t[0],gt=nt.render(j);gt&&(X&&nt.isSelected&&gt.selected(!0),ce=[gt])}else{let nt="",gt=!0;for(const St of t){(s=j.atomIdsSettings)!=null&&s.groupNumbers&&nt&&(gt&&St.isDigit()||!gt&&_0(St))&&(j.atomIdsSettings.overrideID=nt);const Br=St.render(j);j.atomIdsSettings&&(j.atomIdsSettings.overrideID=void 0),Br&&((c=j.atomIdsSettings)!=null&&c.groupNumbers&&((St.isDigit()||_0(St))&&(!nt||gt!==St.isDigit())&&(gt=St.isDigit(),nt=(d=St.id)!=null?d:""),nt&&(!(St.isDigit()||_0(St))||!St.hasEmptyBranch("superscript")||!St.hasEmptyBranch("subscript"))&&(nt="")),X&&St.isSelected&&Br.selected(!0),ce.push(Br))}}if(ce.length===0)return null;const Pe=new zr(ce,F(g({isTight:j.isTight},r),{type:(k=r.type)!=null?k:"lift"}));return Pe.isSelected=ce.every(nt=>nt.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,d=!1,k=!1,j=!1,X=!1,ce=!1,Pe=!1,nt=!1,gt=!1,St=!1,Br=!1,En=!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,d=wr.type==="genfrac",k=wr.type==="surd",j=wr.type==="mbin",X=wr.type==="mrel",ce=wr.type==="mop"||wr.type==="operator"||wr.type==="extensible-symbol",Pe=wr.type==="mpunct"||wr.type==="minner",nt=wr.type==="array",gt=wr.type==="mopen",St=wr.type==="mclose"||wr.type==="leftright",En=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")&&d||t.after.includes("surd")&&k||t.after.includes("binop")&&j||t.after.includes("relop")&&X||t.after.includes("operator")&&ce||t.after.includes("punct")&&Pe||t.after.includes("array")&&nt||t.after.includes("openfence")&&gt||t.after.includes("closefence")&&St||t.after.includes("text")&&Br||t.after.includes("space")&&En?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]=Om(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,d;const k=(r=t.inlineShortcuts)!=null?r:pp;if(!c&&(e.startsWith("^")||e.startsWith("_"))&&(d=Rd(e.slice(1),{inlineShortcuts:k,noWrap:!0}),e=e[0]+"{"+d.match+"}",e+=nA(d.rest,t),c=!0),c||(d=e.match(/^(sqrt|\u221A)(.*)/),d&&(d=Rd(d[2],{inlineShortcuts:k,noWrap:!0}),e="\\sqrt{"+((i=d.match)!=null?i:"\\placeholder{}")+"}",e+=nA(d.rest,t),c=!0)),c||(d=e.match(/^(\\cbrt|\u221B)(.*)/),d&&(d=Rd(d[2],{inlineShortcuts:k,noWrap:!0}),e="\\sqrt[3]{"+((s=d.match)!=null?s:"\\placeholder{}")+"}",e+=nA(d.rest,t),c=!0)),c||(d=e.match(/^abs(.*)/),d&&(d=Rd(d[1],{inlineShortcuts:k,noWrap:!0}),e="\\left|"+d.match+"\\right|",e+=nA(d.rest,t),c=!0)),c||(d=e.match(/^["”“](.*?)["”“](.*)/),d&&(e="\\text{"+d[1]+"}",e+=nA(d[2],t),c=!0)),c||(d=e.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),d&&(e=wf(d[1],k),e+=nA(d[2],t),c=!0)),!c&&/^([fgh])[^a-zA-Z]/.test(e)&&(d=Rd(e.slice(1),{inlineShortcuts:k,noWrap:!0}),e=e[1]==="("?e[0]+"\\left("+d.match+"\\right)":e[0]+d.match,e+=nA(d.rest,t),c=!0),c||(d=e.match(/^([a-zA-Z]+)(.*)/),d&&(e=wf(d[1],k),e+=nA(d[2],t),c=!0)),!c)if(d=Rd(e,{inlineShortcuts:k,noWrap:!0}),d.match&&d.rest[0]==="/"){const j=Rd(d.rest.slice(1),{inlineShortcuts:k,noWrap:!0});j.match&&(e="\\frac{"+d.match+"}{"+j.match+"}"+nA(j.rest,t)),c=!0}else d.match&&(e=e.startsWith("(")?"\\left("+d.match+"\\right)"+nA(d.rest,t):d.match+nA(d.rest,t),c=!0);return c||(d=e.match(/^(\s+)(.*)$/),d&&(e=" "+nA(d[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 d=1,k=1;for(;k<e.length&&d>0;)e[k]===s&&d++,e[k]===c&&d--,k++;d===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 d=e.match(/^([a-zA-Z]+)/);if(d){let k=M0(null,e,t.inlineShortcuts);if(k)return k=k.replace("_{#?}",""),k=k.replace("^{#?}",""),{match:k,rest:e.slice(k.length)}}if(d=e.match(/^([a-zA-Z])/),d)return{match:d[1],rest:e.slice(1)};if(d=e.match(/^(-)?\d+(\.\d*)?/),d)return{match:d[0],rest:e.slice(d[0].length)};/^\\(left|right)/.test(e)||(d=e.match(/^(\\[a-zA-Z]+)/),d&&(i=e.slice(d[1].length),r=d[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 Om(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 d=new DataTransfer;d.setData("text/plain",i),i=d}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 d=s.getAtoms(c);if(d.every(k=>k.mode==="text"||!k.mode))r.clipboardData.setData("text/plain",d.filter(k=>k instanceof Ud).map(k=>k.value).join(""));else if(d.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;d.length===1&&d[0].verbatimLatex!==void 0?k=d[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(d.length===1){const j=d[0];(j.type==="root"||j.type==="group")&&(d=j.body.filter(X=>X.type!=="first"))}try{r.clipboardData.setData("application/json+mathlive",JSON.stringify(d.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 X=j.jsonSerializationOptions;j.jsonSerializationOptions={metadata:["latex"]};const ce=j.parse(s.getValue(c,"latex-unstyled"));j.jsonSerializationOptions=X;const Pe=JSON.stringify(ce.json);Pe&&r.clipboardData.setData("application/json",Pe)}catch(X){}}}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,d=Math.ceil(t.left-i.left+e.field.scrollLeft*r),k=Math.ceil(t.top-i.top);return{left:d,right:d+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,d=c.offsetWidth;let j=Math.floor(c.getBoundingClientRect().width)/d;j=isNaN(j)?1:j;const X=rh(e,nh(e,s),j);if(X){const ce=gp(s);if(i.has(ce)){const Pe=i.get(ce);i.set(ce,{left:Math.min(Pe.left,X.left),right:Math.max(Pe.right,X.right),top:Math.min(Pe.top,X.top),bottom:Math.max(Pe.bottom,X.bottom)})}else i.set(ce,X)}}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;
}
`,Nl=`/* 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=Nl;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(F(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 F(g({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(t){var r;const i=new Eo({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 d=Math.min(s.height,Ll),k;if(this.svgAccent)k=gf(this.svgAccent),d=i.metrics.bigOpSpacing1-d;else if(this.accent){const X=new zr(this.accent,{fontFamily:"Main-Regular"});X.italic=0;const ce=this.accent===8407?" ML__accent-vec":"";k=new zr(new zr(X),{classes:"ML__accent-body"+ce})}k=new bl({shift:0,children:[{box:new zr(s)},-d,{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 N0(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 Nh(e,t,r,i){var s;const d=new zr(N0(e),{fontFamily:"Main-Regular",isSelected:i.isSelected,classes:"ML__small-delim "+((s=i.classes)!=null?s:"")}).wrap(t);return r&&d.setTop((1-t.scalingFactor)*Al),d}function qp(e,t,r,i,s){var c,d;const k=new Eo({parent:i,mathstyle:"textstyle"},s==null?void 0:s.style),j=new zr(N0(e),{fontFamily:`Size${t}-Regular`,isSelected:s.isSelected,classes:((c=s.classes)!=null?c:"")+` ML__delim-size${t}`,type:(d=s.type)!=null?d:"ignore"}).wrap(k);return r&&j.setTop((1-k.scalingFactor)*Al),j}function vp(e,t,r,i,s){var c;let d,k,j,X;d=j=X=N0(e),k=null;let ce="Size1-Regular";e==="\\vert"||e==="\\lvert"||e==="\\rvert"||e==="\\mvert"||e==="\\mid"?j=d=X=8739:e==="\\Vert"||e==="\\lVert"||e==="\\rVert"||e==="\\mVert"||e==="\\|"?j=d=X=8741:e==="\\uparrow"?j=X=9168:e==="\\Uparrow"?j=X=8214:e==="\\downarrow"?d=j=9168:e==="\\Downarrow"?d=j=8214:e==="\\updownarrow"?(d=8593,j=9168,X=8595):e==="\\Updownarrow"?(d=8657,j=8214,X=8659):e==="["||e==="\\lbrack"?(d=9121,j=9122,X=9123,ce="Size4-Regular"):e==="]"||e==="\\rbrack"?(d=9124,j=9125,X=9126,ce="Size4-Regular"):e==="\\lfloor"||e==="\u230A"?(j=d=9122,X=9123,ce="Size4-Regular"):e==="\\lceil"||e==="\u2308"?(d=9121,j=X=9122,ce="Size4-Regular"):e==="\\rfloor"||e==="\u230B"?(j=d=9125,X=9126,ce="Size4-Regular"):e==="\\rceil"||e==="\u2309"?(d=9124,j=X=9125,ce="Size4-Regular"):e==="("||e==="\\lparen"?(d=9115,j=9116,X=9117,ce="Size4-Regular"):e===")"||e==="\\rparen"?(d=9118,j=9119,X=9120,ce="Size4-Regular"):e==="\\{"||e==="\\lbrace"?(d=9127,k=9128,X=9129,j=9130,ce="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(d=9131,k=9132,X=9133,j=9130,ce="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(d=9127,X=9129,j=9130,ce="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(d=9131,X=9133,j=9130,ce="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(d=9127,X=9133,j=9130,ce="Size4-Regular"):e==="\\rmoustache"||e==="\u23B1"?(d=9131,X=9129,j=9130,ce="Size4-Regular"):e==="\\surd"?(d=57345,X=9143,j=57344,ce="Size4-Regular"):e==="\\ulcorner"?(d=9484,j=X=32):e==="\\urcorner"?(d=9488,j=X=32):e==="\\llcorner"?(X=9492,j=d=32):e==="\\lrcorner"&&(d=9496,j=d=32);const Pe=Bc(d,ce),nt=Pe.height+Pe.depth,gt=Bc(j,ce),St=gt.height+gt.depth,Br=Bc(X,ce),En=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 Mn=nt+En+wr,An=Math.max(0,Math.ceil((t-Mn)/(nn*St))),Si=Mn+An*nn*St;let ra=Al;r&&(ra=ra*i.scalingFactor);const Qi=Si/2-ra,h=.008,B=[];B.push({box:new zr(X,{fontFamily:ce})}),B.push(-h);const Q=new zr(j,{fontFamily:ce});if(k===null)for(let We=0;We<An;We++)B.push({box:Q});else{for(let We=0;We<An;We++)B.push({box:Q});B.push(-h),B.push({box:new zr(k,{fontFamily:ce})}),B.push(-h);for(let We=0;We<An;We++)B.push({box:Q})}B.push(-h),B.push({box:new zr(d,{fontFamily:ce})});let ve="";ce==="Size1-Regular"?ve=" delim-size1":ce==="Size4-Regular"&&(ve=" delim-size4");const Ke=new bl({bottom:Qi,children:B},{classes:ve});return new zr(Ke,F(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"]),Oh=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"]),O0=[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):Oh.has(e)?vp(e,O0[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 d=Bc(e,im(r[c]));if(d.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let k=d.height+d.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 d;Hm.has(t)?d=tm:em.has(t)?d=nm:d=rm;const k=bp(N0(t),r,d,s),j=new Eo({parent:s,mathstyle:k.mathstyle},c==null?void 0:c.style);return k.type==="small"?Nh(t,j,i,F(g({},c),{type:e})):k.type==="large"?qp(t,k.size,i,j,F(g({},c),{type:e})):(console.assert(k.type==="stack"),vp(t,r,i,j,F(g({},c),{type:e})))}function ah(e,t,r,i,s,c){if(t===".")return oh(s,c==null?void 0:c.classes);const d=Al*s.scalingFactor,k=901,j=5/El,X=Math.max(r-d,i+d),ce=Math.max(X/500*k,2*X-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 Eo({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 X of r)"align"in X&&(i+=1);let s=0;const c=[];for(const X of t){let ce=0;for(s=Math.max(s,Math.min(X.length,i));ce<X.length;){const Pe=[],nt=Math.min(X.length,ce+i);for(;ce<nt;){const gt=X[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(St=>St.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 d=[];for(const X of c){if(X.length!==s)for(let ce=X.length;ce<s;ce++)X.push([new Ur({type:"first",mode:e.mode}),new Du]);d.push(X)}let k=0,j=0;for(const X of d){j=0;for(const ce of X){for(const Pe of ce)Pe.parent=e,Pe.parentBranch=[k,j];j+=1}k+=1}return e.isDirty=!0,d}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=F(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,d,k;const j=new Eo({parent:t,mathstyle:this.mathstyleName},this.style),X=j.getRegisterAsEm("arrayrulewidth"),ce=j.getRegisterAsEm("arraycolsep"),Pe=j.getRegisterAsEm("doublerulesep"),nt=(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 Eo({parent:t,mathstyle:"scriptstyle"}).scalingFactor/t.scalingFactor));const St=nt*au,Br=.7*St,En=.3*St;let wr=0;const nn=[];let Mn=0;const An=this.array.length;for(let ft=0;ft<An;++ft){const Kt=this.array[ft];Mn=Math.max(Mn,Kt.length);const br=new Eo({parent:j,mathstyle:this.mathstyleName},this.style);let wt=Br/br.scalingFactor,ir=En/br.scalingFactor;const gr={cells:[],height:0,depth:0,pos:0};for(const Sr of Kt){const cn=(s=Ur.createBox(br,Sr,{type:"ignore"}))!=null?s:new zr(null,{type:"ignore"});ir=Math.max(ir,cn.depth),wt=Math.max(wt,cn.height),gr.cells.push(cn)}let Xr=(c=su(this.rowGaps[ft]))!=null?c:0;Xr>0&&(Xr+=En,ir=Math.max(ir,Xr),Xr=0),ft<An-1&&!Ph(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(ir+=j.getRegisterAsEm("jot")),gr.height=wt,gr.depth=ir,wr+=wt,gr.pos=wr,wr+=ir+Xr,nn.push(gr)}const Si=wr/2+Al,ra=[];for(let ft=0;ft<Mn;ft++){const Kt=[];for(const br of nn){const wt=br.cells[ft];wt.depth=br.depth,wt.height=br.height,Kt.push({box:wt,shift:br.pos-Si})}Kt.length>0&&ra.push(new bl({individualShift:Kt}))}const Qi=[];let h=!1,B=!1,Q=0,ve=!this.leftDelim;const{colFormat:Ke}=this;for(const ft of Ke){if("align"in ft&&Q>=ra.length)break;if("align"in ft)h?Qi.push(Nu(2*gt)):(B||ve)&&Qi.push(Nu(gt)),Qi.push(new zr(ra[Q],{classes:"col-align-"+ft.align})),Q++,h=!0,B=!1,ve=!1;else if("gap"in ft){if(typeof ft.gap=="number")Qi.push(Nu(ft.gap));else{const Kt=T0(t,nn,Si,ft.gap);Kt&&Qi.push(Kt)}h=!1,B=!1,ve=!1}else if("separator"in ft){const Kt=new zr(null,{classes:"vertical-separator"});Kt.height=wr,Kt.setStyle("height",wr,"em"),Kt.setStyle("border-right",`${X}em ${ft.separator} currentColor`),Kt.setStyle("vertical-align",-(wr-Si),"em");let br=0;B?br=Pe-X:h&&(br=gt-X),Kt.left=br,Qi.push(Kt),h=!1,B=!0,ve=!1}}h&&!this.rightDelim&&Qi.push(Nu(gt));const Ze=new zr(Qi,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Ze.caret=this.caret),this.bind(t,Ze);const We=Ze.height,at=Ze.depth,At=this.bind(t,new zr([this.bind(t,ah("open",(d=this.leftDelim)!=null?d:".",We,at,j,{isSelected:this.isSelected})),Ze,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}}`),Ao(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(Li(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 d of c)d.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(Li(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 d of c)d.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 d of c)d.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,Li(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,Li(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 Li(e){const t=new Ur({type:"first",mode:e.mode});t.parent=e;const r=new Du;return r.parent=e,[t,r]}function Nu(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 d=Ur.createBox(e,i,{type:"ignore"});d&&(d.depth=c.depth,d.height=c.height,s.push({box:d,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 F(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 d=Ur.createBox(t,this.body,{type:"lift"});if(!d)return null;const k=t.toEm((r=this.offset)!=null?r:{dimension:0});d.depth+=k,d.setStyle("display","inline-block"),d.setStyle("position","relative"),d.setStyle("height",Math.floor(100*d.height+d.depth)/100,"em"),d.setStyle("vertical-align",-Math.floor(100*d.height)/100,"em");const j=new Eo({parent:t},this.style),X=j.toEm((i=this.padding)!=null?i:{register:"fboxsep"}),ce=new zr(null,{classes:"ML__box"});ce.height=d.height+X,ce.depth=d.depth+X,ce.setStyle("box-sizing","border-box"),ce.setStyle("position","absolute"),ce.setStyle("top",-X+.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,d],{type:"lift"});return Pe.setStyle("display","inline-block"),Pe.setStyle("position","relative"),Pe.setStyle("line-height",0),Pe.height=d.height+X+(k>0?k:0),Pe.depth=d.depth+X+(k<0?-k:0),Pe.setStyle("padding-left",X,"em"),Pe.setStyle("padding-right",X,"em"),Pe.setStyle("height",Math.floor(100*(d.height+d.depth+2*X+Math.abs(k)))/100,"em"),Pe.setStyle("margin-top",-X,"em"),Pe.setStyle("top",Math.floor(100*(d.depth-d.height+2*X-k))/100,"em"),Pe.setStyle("vertical-align",Math.floor(100*(d.depth+2*X))/100,"em"),this.caret&&(Pe.caret=this.caret),this.attachSupsub(t,{base:Pe})}_serialize(t){return t.skipStyles?Ao([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=lt(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"?Ao(["\\left",(r=this.leftDelim)!=null?r:".",this.bodyToLatex(t),"\\right",s]):this.variant==="mleft...mright"?Ao(["\\mleft",(i=this.leftDelim)!=null?i:".",this.bodyToLatex(t),"\\mright",s]):Ao([!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 Eo({parent:t},this.style);console.assert(this.body!==void 0);const c=new Eo({parent:t,mathstyle:"textstyle"},this.style),d=(r=Ur.createBox(s,this.body,{type:"inner"}))!=null?r:new zr(null,{type:"inner"}),k=d.height/c.scalingFactor,j=d.depth/c.scalingFactor,X=[];if(this.leftDelim&&X.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}))),d&&($m(d.children,this,s,k,j),X.push(d)),this.rightDelim){let gt=this.containsCaret?" ML__contains-caret":"",St=this.rightDelim;St==="?"&&(s.smartFence?(St=this.matchingRightDelim(),gt+=" ML__smart-fence__close"):St="."),X.push(this.bind(c,ah("close",St,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 nt=new zr(X,{type:ce?"close":"inner",classes:"left-right"});return nt.setStyle("margin-top",`${-d.depth}em`),nt.setStyle("height",`${d.height+d.depth}em`),this.caret&&(nt.caret=this.caret),this.bind(s,nt.wrap(s))}};function $m(e,t,r,i,s){if(e)for(let c=0;c<e.length;c++){const d=e[c];d.type==="middle"?(e[c]=t.bind(r,ah("inner",d.value,i,s,r,{isSelected:t.isSelected})),e[c].caret=d.caret,e[c].isSelected=d.isSelected,e[c].cssId=d.cssId,e[c].htmlData=d.htmlData,e[c].htmlStyle=d.htmlStyle,e[c].attributes=d.attributes,e[c].cssProperties=d.cssProperties):d.children&&$m(d.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}},Va=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 d;super({type:"prompt",mode:(d=c==null?void 0:c.mode)!=null?d:"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 Eo({parent:t}),i=r.getRegisterAsEm("fboxsep"),s=i,c=i,d=Ur.createBox(t,this.body);if(!d)return null;d.height||(d.height=r.metrics.xHeight),d.setStyle("vertical-align",-d.height,"em"),this.correctness==="correct"?d.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&d.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const k=new zr(d,{type:"ord"});k.setStyle("display","inline-block"),k.setStyle("height",d.height+d.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 X=new zr(null,{classes:j,attributes:{part:"prompt"}});X.height=k.height+c,X.depth=k.depth+c,X.width=k.width+2*s,X.setStyle("box-sizing","border-box"),X.setStyle("position","absolute"),X.setStyle("height",k.height+k.depth+2*c,"em"),s===0&&X.setStyle("width","100%"),s!==0&&(X.setStyle("width",`calc(100% + ${2*s}em)`),X.setStyle("top",i,"em"),X.setStyle("left",-s,"em")),(!this.body||this.body.length===1)&&(X.width=3*s,X.setStyle("width",`calc(100% + ${3*s}em)`),X.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&&(X.svgOverlay=ce);const Pe=new zr([X,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 Eo({parent:t,isPhantom:!0}),s=this.leftSibling,c=(r=s.render(i))!=null?r:new zr(null),d=new zr(null);return d.height=c.height,d.depth=c.depth,this.attachSupsub(t,{base:d,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,d;r!=null||(r={}),this.tokens=e,this.context=t instanceof Eo&&!(r!=null&&r.parseMode)&&!r.mathstyle?t:new Eo({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:(d=r.mathstyle)!=null?d:"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=lt(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,d=/\d/;if(this.match("'"))c=8,d=/[0-7]/,e=!0;else if(this.match('"'))c=16,d=/[\dA-F]/,e=!0;else if(this.match("x"))c=16,d=/[\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(d);)k+=this.get();if(!e&&(this.match(".")||this.match(",")))for(k+=".";this.hasPattern(d);)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=[],d=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),d=!0),!d&&this.match("\\end")&&(this.scanArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),d=!0),!d)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(!d);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=d=>d==="<}>");let t="",r=null,i=[],s=null;for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!t?(t=this.get(),r=lt(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=lt(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(qe(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=lt(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 d=s.match(/^\s*border\s*:\s*(.*)/);d?r.border=d[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"),X=Ur.serialize(j,{defaultMode:"math"});let ce=[],Pe;!Pe&&X==="correct"?Pe="correct":!Pe&&X==="incorrect"?Pe="incorrect":X!==""&&(ce=j);const nt=this.scanOptionalArgument("string")==="locked",gt=this.scanArgument("auto");let St;return gt&&Array.isArray(gt)&&gt.length>0?St=gt:gt&&typeof gt=="object"&&"group"in gt?St=gt.group:St=ce,k?[new Sf(k,Pe,nt,St!=null?St: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 X=this.scanArgument("string");X!==null&&(this.context.registers[j.substring(1)]=X);const ce=Ao([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=lt(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 d=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,X=[];if(c.parse?X=c.parse(this):[j,X]=this.scanArguments(c),this.parseMode=k,c.applyMode&&!c.applyStyle&&!c.createAtom)return qe(X[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:X,style:this.style,mode:this.parseMode}),j&&(s.body=qe(this.scanArgument(j)));else if(typeof c.applyStyle=="function"){const ce=g(g({},this.style),c.applyStyle(e,X,this.context)),Pe=this.parseMode;if(c.applyMode&&(this.parseMode=c.applyMode),j){const nt=this.style;this.style=ce;const gt=this.scanArgument(j);return this.style=nt,this.parseMode=Pe,qe(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=Ao([e,SA(this.tokens.slice(d,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 d=1;d<=s;d++){let k=this.scanLiteralGroup();if(!k){const j=this.index;this.scanExpression(),k=SA(this.tokens.slice(j,this.index))}c[d]=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:d=>c[d],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 d=(r=t==null?void 0:t.args)!=null?r:void 0,k=new R0(id(e,d),t==null?void 0:t.context,{args:d,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 F(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}};de(["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,d=[];;){s!==e?(c=10,s=e):c--;var k=vn.stateMachines[t],j=k.transitions[r]||k.transitions["*"];e:for(var X=0;X<j.length;X++){var ce=vn.patterns.match_(j[X].pattern,e);if(ce){for(var Pe=j[X].task,nt=0;nt<Pe.action_.length;nt++){var gt;if(k.actions[Pe.action_[nt].type_])gt=k.actions[Pe.action_[nt].type_](i,ce.match_,Pe.action_[nt].option);else if(vn.actions[Pe.action_[nt].type_])gt=vn.actions[Pe.action_[nt].type_](i,ce.match_,Pe.action_[nt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Pe.action_[nt].type_+")"];vn.concatArray(d,gt)}if(r=Pe.nextState||r,e.length>0){if(Pe.revisit||(e=ce.remainder),!Pe.toContinue)break e}else return d}}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,d,k,j,X){var ce=function(wr,nn){if(typeof nn=="string")return wr.indexOf(nn)!==0?null:nn;var Mn=wr.match(nn);return Mn?Mn[0]:null},Pe=function(wr,nn,Mn){for(var An=0;nn<wr.length;){var Si=wr.charAt(nn),ra=ce(wr.substr(nn),Mn);if(ra!==null&&An===0)return{endMatchBegin:nn,endMatchEnd:nn+ra.length};if(Si==="{")An++;else if(Si==="}"){if(An===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];An--}nn++}return An>0,null},nt=ce(e,t);if(nt===null||(e=e.substr(nt.length),nt=ce(e,r),nt===null))return null;var gt=Pe(e,nt.length,i||s);if(gt===null)return null;var St=e.substring(0,i?gt.endMatchEnd:gt.endMatchBegin);if(c||d){var Br=this.findObserveGroups(e.substr(gt.endMatchEnd),c,d,k,j);if(Br===null)return null;var En=[St,Br.match_];return{match_:X?En.join(""):En,remainder:Br.remainder}}else return{match_:St,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 d=e[t][r];if(d.action_){d.action_=[].concat(d.action_);for(var k=0;k<d.action_.length;k++)typeof d.action_[k]=="string"&&(d.action_[k]={type_:d.action_[k]})}else d.action_=[];for(var j=t.split("|"),X=0;X<j.length;X++)if(i[s]==="*")for(var ce in c)c[ce].push({pattern:j[X],task:d});else c[i[s]].push({pattern:j[X],task:d})}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||""),d=vn.patterns.match_("$one lowercase latin letter$ $",e.o||""),k=t==="-"&&(i&&i.remainder===""||s||c||d);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 d in e)d!=="parenthesisLevel"&&d!=="beginsWithBond"&&delete e[d];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)},d=Qs._getArrow(e.r);c.rd||c.rq?e.r==="<=>"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<-->"?(d="\\long"+d,c.rd&&(d="\\overset{"+c.rd+"}{"+d+"}"),c.rq&&(e.r==="<-->"?d="\\underset{\\lower2mu{"+c.rq+"}}{"+d+"}":d="\\underset{\\lower6mu{"+c.rq+"}}{"+d+"}"),d=" {}\\mathrel{"+d+"}{} "):(c.rq&&(d+="[{"+c.rq+"}]"),d+="{"+c.rd+"}",d=" {}\\mathrel{\\x"+d+"}{} "):d=" {}\\mathrel{\\long"+d+"}{} ",t=d;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(F(g({},t),{type:"delim"})),this.value=t.delim,this.size=t.size}static fromJson(t){return new X1(t)}toJson(){return F(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=lt(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(F(g({},t),{type:"sizeddelim",value:t.delim})),this.delimType=t.delimType,this.size=t.size}static fromJson(t){return new J1(t)}toJson(){return F(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=lt(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,d;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=(d=s.strokeWidth)!=null?d:"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 F(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=lt(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="",d="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(c+=d+'mathbackground="'+this.backgroundcolor+'"',d=","),this.shadow&&this.shadow!=="auto"&&(c+=d+'shadow="'+this.shadow+'"',d=","),this.strokeWidth||this.strokeStyle!=="solid"?(c+=d+this.borderStyle,d=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(c+=d+'mathcolor="'+this.strokeColor+'"',d=","),c&&(s+=`[${c}]`)}return Bs(s,this.bodyToLatex(t))}render(t){const r=new Eo({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 d=new zr(null,{classes:"ML__notation"});let k=i.height+i.depth+2*c;const j=i.width+2*c;let X="";if(this.notation.horizontalstrike&&(X+=this.line(3,50,97,50)),this.notation.verticalstrike&&(X+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(X+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(X+=this.line(3,3,97,97)),this.notation.updiagonalarrow){X+=this.line(c.toString(),(c+i.depth+i.height).toString(),(c+i.width).toString(),c.toString());const St=.03*Math.sqrt(j*j+k*k)*1,Br=i.width*St,En=(i.depth+i.height)*St,wr=c+i.width;let nn=c;nn+En-.4*Br<0&&(nn=.4*Br-En),X+='<polygon points="',X+=`${wr},${nn} ${wr-Br-.4*En},${nn+En-.4*Br} `,X+=`${wr-.7*Br},${nn+.7*En} ${wr-Br+.4*En},${nn+En+.4*Br} `,X+=`${wr},${nn}`,X+=`" stroke='none' fill="${this.strokeColor}"`,X+="/>"}let ce=0;if(this.notation.phasorangle){const nt=MA(r),gt=(i.height+i.depth+2*nt+c).toString(),St=(i.height+i.depth)/2;X+=this.line(c.toString(),gt,(c+St+i.width).toString(),gt),X+=this.line(c.toString(),gt,(c+St).toString(),(c-nt).toString()),k+=nt,ce=St,i.left+=k/2-c}if(this.notation.longdiv){const nt=MA(r);k+=nt,X+=this.line(c.toString(),c.toString(),(c+i.width).toString(),c.toString());const gt=.3;ce=gt+nt,i.left+=gt+nt,i.setTop(c+nt),X+='<path d="',X+=`M ${c} ${c} a${gt} ${(i.depth+i.height+2*nt)/2}, 0, 1, 1, 0 ${i.depth+i.height+2*nt} "`,X+=` stroke-width="${H0(r)}" stroke="${this.strokeColor}" fill="none"`,X+="/>"}if(d.width=i.width+2*c+ce,d.height=i.height+c,d.depth=i.depth+c,d.setStyle("box-sizing","border-box"),d.setStyle("left",`calc(-${s} / 2 )`),d.setStyle("height",`${Math.floor(100*k)/100}em`),d.setStyle("top",`calc(${s} / 2 )`),this.backgroundcolor&&d.setStyle("background-color",this.backgroundcolor),this.notation.box&&d.setStyle("border","1px solid red"),this.notation.actuarial&&(d.setStyle("border-top",this.borderStyle),d.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(d.setStyle("border-bottom",this.borderStyle),d.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(d.setStyle("border-radius","8px"),d.setStyle("border",this.borderStyle)),this.notation.circle&&(d.setStyle("border-radius","50%"),d.setStyle("border",this.borderStyle)),this.notation.top&&d.setStyle("border-top",this.borderStyle),this.notation.left&&d.setStyle("border-left",this.borderStyle),this.notation.right&&d.setStyle("border-right",this.borderStyle),this.notation.bottom&&d.setStyle("border-bottom",this.borderStyle),X){let nt="";this.shadow==="auto"&&(nt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(nt+=`filter: drop-shadow(${this.shadow})`),nt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,nt+=' stroke-linecap="round"',this.svgStrokeStyle&&(nt+=` stroke-dasharray="${this.svgStrokeStyle}"`),d.svgStyle=nt,d.svgOverlay=X}const Pe=new zr([d,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=d.height,Pe.depth=d.depth,Pe.width=d.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(F(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 Eo({parent:t,mathstyle:this.mathstyleName},this.style),c=s.metrics,d=new Eo({parent:s,mathstyle:this.continuousFraction?"":"numerator"},this.style),k=this.numerPrefix?new zr([new zr(this.numerPrefix),Ur.createBox(d,this.above)],{isTight:d.isTight,type:"ignore"}):(r=Ur.createBox(d,this.above,{type:"ignore"}))!=null?r:new zr(null,{type:"ignore"}),j=new Eo({parent:s,mathstyle:this.continuousFraction?"":"denominator"},this.style),X=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,nt=0,gt;s.isDisplayStyle?(Pe=d.metrics.num1,nt=ce>0?3*ce:7*ce,gt=j.metrics.denom1):(ce>0?(Pe=d.metrics.num2,nt=ce):(Pe=d.metrics.num3,nt=3*c.defaultRuleThickness),gt=j.metrics.denom2);const St=[];this.isSelected&&St.push("ML__selected");const Br=k.depth,En=X.height;let wr;if(ce<=0){const Qi=Pe-Br-(En-gt);Qi<nt&&(Pe+=(nt-Qi)/2,gt+=(nt-Qi)/2),wr=new bl({individualShift:[{box:k,shift:-Pe,classes:[...St,"ML__center"]},{box:X,shift:gt,classes:[...St,"ML__center"]}]}).wrap(s)}else{const Qi=new zr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Qi.softWidth=Math.max(k.width,X.width),Qi.height=ce/2,Qi.depth=ce/2;const h=Al+ce/2;Pe<nt+Br+h&&(Pe=nt+Br+h);const B=Al-ce/2;gt<nt+En-B&&(gt=nt+En-B),wr=new bl({individualShift:[{box:X,shift:gt,classes:[...St,"ML__center"]},{box:Qi,shift:-B,classes:St},{box:k,shift:-Pe,classes:[...St,"ML__center"]}]}).wrap(s)}const nn=s.isDisplayStyle?c.delim1:c.delim2,Mn=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 An=null;this.continuousFraction?An=new zr(null,{type:"close"}):this.rightDelim?An=this.bind(t,Bf("close",this.rightDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):An=oh(s,"close");const Si=new zr([Mn,wr,An],{isTight:s.isTight,type:"inner",classes:"mfrac"}),ra=this.bind(t,Si);return this.caret&&(ra.caret=this.caret),this.attachSupsub(t,{base:ra})}},Ol=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 Ol(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(F(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,d=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:d}):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=lt(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)),Ao(i)}},Jc=class nv extends Ur{constructor(t){const r=t.body;super(F(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 Eo({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 d=Uh(t,{base:r,above:s,below:c,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return d?(this.subsupPlacement==="over-under"?d=this.attachLimits(t,{base:d,type:d.type}):d=this.attachSupsub(t,{base:d}),this.caret&&(d.caret=this.caret),this.bind(t,d)):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,d=["ML__center"];if(t.paddedAboveBelow&&d.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:d},{box:s,classes:["ML__center"]},r,{box:t.above,classes:d},e.metrics.bigOpSpacing5]})}else t.below?i=new bl({top:s.height-c,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:d},{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:d},e.metrics.bigOpSpacing5]}));return new zr(i,{type:t.type})}var Ou=class av extends Ur{constructor(t){var r,i,s,c;super(F(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 Eo({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=lt(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(F(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(F(g({},t),{index:t.above}))}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=lt(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 Eo({parent:t,mathstyle:"cramp"},this.style),s=(r=Ur.createBox(i,this.body,{type:"inner"}))!=null?r:new zr(null),c=i.scalingFactor,d=i.metrics.defaultRuleThickness/c,k=t.isDisplayStyle?Ll:d,j=new zr(null,{classes:"ML__sqrt-line",style:this.style});j.height=d,j.softWidth=s.width;let X=c*(d+k/4);const Pe=Math.max(c*2*k,s.height+s.depth)+X+d,nt=new Eo({parent:t},this.style),gt=this.bind(nt,new zr(Bf("inner","\\surd",Pe,!1,nt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!gt)return null;const St=gt.height+gt.depth-d;St>s.height+s.depth+X&&(X=(X+St-(s.height+s.depth))/2),gt.setTop(gt.height-s.height-X);const Br=this.bind(t,new bl({firstBaseline:[{box:new zr(s)},X-2*d,{box:j},d]})),En=Ur.createBox(new Eo({parent:t,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!En){const Mn=new zr([gt,Br],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Mn.setStyle("display","inline-block"),Mn.setStyle("height",Mn.height+Mn.depth,"em"),this.caret&&(Mn.caret=this.caret),this.bind(t,Mn)}const wr=new bl({shift:-.6*(Math.max(gt.height,Br.height)-Math.max(gt.depth,Br.depth)),children:[{box:En}]}),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,(d,k)=>{var j,X,ce;if(!d)return;const Pe=d.type,nt=k.isTight?(j=zd[Pe])!=null?j:null:(X=jd[Pe])!=null?X:null,gt=(ce=nt==null?void 0:nt[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(F(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 F(g({},super.toJson()),{tooltip:r})}render(t){const r=Ur.createBox(new Eo,this.body);if(!r)return null;const i=new Eo({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(F(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=lt(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)),Ao(i)}};function La(e){if(_(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=Ol.fromJson(e)),t==="latexgroup"&&(r=_f.fromJson(e)),t==="leftright"&&(r=Ys.fromJson(e)),t==="macro"&&(r=U0.fromJson(e)),t==="macro-argument"&&(r=Va.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=Ou.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,d;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 X=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&&(X.isFunction=!0),e.startsWith("\\")&&(X.verbatimLatex=e),X}const j=new Ur({type:"mord",mode:"math",command:(d=t.command)!=null?d:e,value:e,style:r});return k&&(j.isFunction=!0),e.startsWith("\\")&&(j.verbatimLatex=e),j}serialize(e,t){const r=b(e,F(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 X;k.test(e.value)&&Wm[(X=t.letterShapeStyle)!=null?X:"tex"][j]==="it"&&(i="italic")}),i==="up"&&(i=void 0);const s=i?r+"-"+i:r;console.assert(aA[s]!==void 0);const[c,d]=aA[s];return j0[r]&&!j0[r].test(e.value)?(e.value=Xe(e.value,r,i),null):(cu.test(e.value)&&(e.classes+=" lcGreek"),d&&(e.classes+=" "+d),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 d="";c&&c!==i&&(d={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(d!==void 0));const k=Ao(s.map(j=>j._serialize(t)));return d?Bs(d,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)}${Ao(i)}}`:c?Bs(c,Ao(i)):Ao(i)})}function re(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)}${Ao(i)}}`:c?Bs(c,Ao(i)):Ao(i)})}function _e(e,t){return TA(e,"fontSize").map(r=>{var i,s;const c=re(r,t),d=(s=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(i=r[0].style.fontSize)!=null?i:""])!=null?s:"";return d?`${d} ${Ao(c)}`:Ao(c)})}function Ve(e,t,r){return TA(e,"fontFamily").map(i=>{var s,c;const d=_e(i,t),k=(c={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(s=i[0].style.fontFamily)!=null?s:""])!=null?c:"";return k?`\\${k}{${Ao(d)}}`:i[0].style.fontFamily?`{\\fontfamily{${i[0].style.fontFamily}} ${Ao(d)}}`:r?`\\text{${Ao(d)}}`:Ao(d)})}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 Ve(e,F(g({},t),{defaultMode:"text"}),t.defaultMode!=="text")}getFont(e,t){var r,i,s,c,d;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+=(d={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?d:"")}return"Main-Regular"}};new pt;var qt=class extends Gl{constructor(){super("latex")}createAtom(e){return new Ol(e)}serialize(e,t){return e.filter(r=>r instanceof Ol&&!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:["\\","|","",""]}},Ui={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:["=","=","=","="]}},gi={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:["<",">","",""]}},Wa={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"]}},ea={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:["=","=","=","="]}},Yi={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:["<",">","|",""]}},Oa={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:[".",".",".","."]}},oo={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:["<",">","",""]}},ki={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 Ja(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]"},ti=[],Ec;function oA(){switch(Y()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function yo(e){(!e.platform||e.platform===oA())&&ti.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[d,k]of t)if(k[c]===e.key){s=d,c===3?(r=!0,i=!0):c===2?r=!0:c===1&&(i=!0);break}if(s)break}return new KeyboardEvent(e.type,F(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 ti)((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);ti.sort((s,c)=>c.score-s.score)}function sA(e){Ec=ti.find(t=>e.startsWith(t.locale))}function Au(){return Ec!=null?Ec:ti[0]}function XA(){switch(oA()){case"apple":return pr;case"windows":return qr;case"linux":return Ui}return pr}switch(oA()){case"apple":yo(pr),yo(Un),yo(oo),yo(ea);break;case"windows":yo(qr),yo(gi),yo(Ia),yo(Yi);break;case"linux":yo(Ui),yo(Wa),yo(ki),yo(Oa);break}yo(Ar);function uu(e){var t;const r=/macos|ios/.test(Y()),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,d=!1,k=!1;const j=new AbortController,X=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:X}),e.addEventListener("keypress",ce=>{c||(i&&s&&r.onKeystroke(i),s=ce)},{capture:!0,signal:X}),e.addEventListener("compositionstart",ce=>{e.textContent="",c=!0,r.onCompositionStart(ce.data)},{capture:!0,signal:X}),e.addEventListener("compositionupdate",ce=>{c&&r.onCompositionUpdate(ce.data)},{capture:!0,signal:X}),e.addEventListener("compositionend",ce=>{e.textContent="",c&&(c=!1,r.onCompositionEnd(ce.data))},{capture:!0,signal:X}),e.addEventListener("beforeinput",ce=>ce.stopImmediatePropagation(),{signal:X}),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:X}),e.addEventListener("paste",ce=>{e.focus({preventScroll:!0}),e.textContent="",r.onPaste(ce)||ce.preventDefault(),ce.stopImmediatePropagation()},{signal:X}),e.addEventListener("cut",ce=>r.onCut(ce),{capture:!0,signal:X}),e.addEventListener("copy",ce=>r.onCopy(ce),{capture:!0,signal:X}),e.addEventListener("blur",ce=>{var Pe,nt;if(((nt=(Pe=ce.relatedTarget)==null?void 0:Pe._mathfield)==null?void 0:nt.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||d||(k=!0,i=null,s=null,r.onBlur(),k=!1)},{capture:!0,signal:X}),e.addEventListener("focus",ce=>{k||d||(d=!0,r.onFocus(),d=!1)},{capture:!0,signal:X}),{dispose:()=>j.abort(),cancelComposition:()=>{c&&(e.blur(),requestAnimationFrame(()=>e.focus({preventScroll:!0})))},blur:()=>{typeof e.blur=="function"&&e.blur()},focus:()=>{!d&&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(O()){const t=Y(),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=Ja(ko(Kh(r))),s=Ja({key:r.key,shift:r.shiftKey,alt:r.altKey,ctrl:r.ctrlKey,meta:r.metaKey||r.ctrlKey&&/macos|ios/.test(Y()),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 _(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];_(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=Y()==="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 F(g({},e),{key:Ja(r)});const s=_c(r.key,t);if(!s)return F(g({},e),{key:Ja(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 ${Ja(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,F(g({},e),{key:Ja(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 d=i.find(k=>k.key===c.key&&k.ifMode===c.ifMode);if(d)throw new Error(`Ambiguous key binding ${s.key} (${cm(s.command)}) matches ${d.key} (${cm(d.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 Ol(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)I.test(j)&&c.push(new Ol(j));let d=e.at(e.position);if(d instanceof _f&&(d=d.lastChild),!(d.parent instanceof _f)){const j=new _f("");d.parent.addChildAfter(j,d),d=j.firstChild}const k=d.parent.addChildrenAfter(c,d);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 Ol&&j.isSuggestion,s||i++}if(!s)return[void 0,void 0];let d=i,k=!1;for(;d<=c&&!k;){const j=e.at(d);k=!(j instanceof Ol&&j.isSuggestion),k||d++}return[i-1,d-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 Ol&&/^[a-zA-Z\*]$/.test(c.value);)c=c.leftSibling;if(c&&c instanceof Ol&&c.value==="\\")for(s.push(c),c=c.rightSibling;c&&c instanceof Ol&&/^[a-zA-Z\*]$/.test(c.value);)s.push(c),c=c.rightSibling;const d=s.map(ce=>ce.value).join(""),k=ie(e,d);if(k.length===0){if(/^\\[a-zA-Z\*]+$/.test(d))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 X=k[e.suggestionIndex];if(X!==d){const ce=s[s.length-1];ce.parent.addChildrenAfter([...X.slice(d.length-X.length)].map(Pe=>new Ol(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 X=z0(e.model).filter(ce=>ce.isSuggestion);if(X.length!==0){for(const ce of X)ce.isSuggestion=!1;e.model.position=e.model.offsetOf(X[X.length-1])}if(t==="accept-suggestion")return X.length!==0}const k=z0(e.model).filter(X=>!X.isSuggestion).map(X=>X.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 Eo({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,d]of t.entries()){const k=d,j=Cg(e,d),X=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>`,X&&(i+=`<span class="ML__popover__keybinding">${X}</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,d=window.innerWidth-document.documentElement.clientWidth,k=window.innerHeight-document.documentElement.clientHeight,j=window.mathVirtualKeyboard.boundingRect.height,X=document.getElementById("mathlive-suggestion-popover");i.x+X.offsetWidth/2>c-d?X.style.left=`${c-X.offsetWidth-d}px`:i.x-X.offsetWidth/2<0?X.style.left="0":X.style.left=`${i.x-X.offsetWidth/2}px`;const ce=i.y-i.height;s-k-j-i.y<ce?(X.classList.add("ML__popover--reverse-direction"),X.classList.remove("top-tip"),X.classList.add("bottom-tip"),X.style.top=`${i.y-i.height-X.offsetHeight-15}px`):(X.classList.remove("ML__popover--reverse-direction"),X.classList.add("top-tip"),X.classList.remove("bottom-tip"),X.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(d=>d.family);if(r.every(d=>i.includes(d))){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(d=>e1(d[0].replace(/-[a-zA-Z]+$/,""),`${s}/${d[0]}`,d[1]));try{(yield Promise.all(c.map(k=>{try{return k.load()}catch(j){}}))).forEach(k=>document.fonts.add(k)),hu="ready";return}catch(d){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${s}"`,{cause:d}),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 Eo({from:F(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 d=_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&&(d+=`<span part=placeholder class="ML__content-placeholder">${Ul(j)}</span>`)}i.innerHTML=window.MathfieldElement.createHTML(d),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 d=Math.floor(c)/s;if(d=isNaN(d)?1:d,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),d);if(j){j.left/=d,j.right/=d,j.top/=d,j.bottom/=d;const X=document.createElement("div");X.classList.add("ML__contains-highlight"),X.style.position="absolute",X.style.left=`${j.left+1}px`,X.style.top=`${Math.ceil(j.top)}px`,X.style.width=`${Math.ceil(j.right-j.left)}px`,X.style.height=`${Math.ceil(j.bottom-j.top)}px`,r.insertBefore(X,r.childNodes[0])}}return}for(const k of n1(Rm(e,{excludeAtomsWithBackground:!0}))){k.left/=d,k.right/=d,k.top/=d,k.bottom/=d;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]=F(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,d=!1;_(t)?(i=t[0],s=t.slice(1)):i=t,i=i.replace(/-\w/g,X=>X[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),d=!0,c=!0}else if(j==="virtual-keyboard")d=(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(),d=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={}),d&&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 N(e){return Ep(e,{atIndex:e.suggestionIndex+1}),!1}function E(e){return Ep(e,{atIndex:e.suggestionIndex-1}),!1}o({complete:Hh},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),o({nextSuggestion:N,previousSuggestion:E},{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]"]]}},$e={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 d=Ir(e),k=(i=(r=c.getKeycap(d==null?void 0:d.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 X="";for(const Br of Gt(k)){const En=Sn(Br),wr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);j[wr]=En;const[nn,Mn]=Gr(En);X+=`<div id=${wr} class="item ${Mn}">${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 nt=5;Pe===1?nt=1:Pe===2||Pe===4?nt=2:Pe===3||Pe===5||Pe===6?nt=3:Pe>=7&&Pe<14&&(nt=4),ce.style.width=`calc(var(--variant-keycap-length) * ${nt} + 12px)`,ce.innerHTML=Tg.createHTML(X),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,St=e==null?void 0:e.getBoundingClientRect();if(St){St.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,(St.left+St.right-ce.offsetWidth)/2)),En=St.top-ce.clientHeight+5;ce.style.transform=`translate(${Br}px, ${En}px)`,ce.classList.add("is-visible"),requestAnimationFrame(()=>{ce.addEventListener("pointerup",wr=>{const nn=Ir(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=Ir(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||nn.classList.add("is-active")},{capture:!0,signal:gt}),ce.addEventListener("pointerleave",wr=>{const nn=Ir(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(me))t.push({class:"swatch-button",label:'<span style="border: 3px solid '+me[r]+'"></span>',command:["applyStyle",{color:r}]});return t}if(e==="background-color"){const t=[];for(const r of Object.keys(le))t.push({class:"swatch-button",label:'<span style="background:'+le[r]+'"></span>',command:["applyStyle",{backgroundColor:r}]});return t}}function ot(e){return $e[e]!==void 0}function Gt(e){var t;return typeof e!="string"?e:($e[e]||($e[e]=(t=bt(e))!=null?t:[]),$e[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 Mr(e){if(!e)return"";const t=new Eo,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=>Sn(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"}[ne.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,d=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 X of k)/[a-z]/.test(X)?j.push({label:X,class:"hide-shift",shift:{label:X.toUpperCase()},variants:ot(X)?X:void 0}):X==="~"?i!=="dvorak"?j.push("[backspace]"):j.push({label:"[backspace]",width:1}):X==="^"?j.push("[shift]"):X===" "&&j.push("[separator-5]");d.push(j)}return d.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:d})}}function ar(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}"`),ar(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,d=$(s,["rows"]);t=F(g({},d),{layers:rn({rows:e.rows})})}else if("markup"in e&&typeof e.markup=="string"){const s=e,{markup:c}=s,d=$(s,["markup"]);t=F(g({},d),{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 d=c.command;typeof d=="string"&&["undo","redo","cut","copy","paste"].includes(d)&&(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,d]of e.normalizedLayouts.entries()){const k=d,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=J(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 Cr(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='${J("tooltip.undo")}'>
<svg><use xlink:href='#svg-undo' /></svg>
</div>`,redo:`<div class='action ${t.canRedo===!1?"disabled":""}'
data-command='"redo"'
data-tooltip='${J("tooltip.redo")}'>
<svg><use xlink:href='#svg-redo' /></svg>
</div>`,cutToClipboard:`
<div class='action'
data-command='"cutToClipboard"'
data-tooltip='${J("tooltip.cut to clipboard")}'>
<svg><use xlink:href='#svg-cut' /></svg>
</div>
`,copyToClipboard:`
<div class='action'
data-command='"copyToClipboard"'
data-tooltip='${J("tooltip.copy to clipboard")}'>
<svg><use xlink:href='#svg-copy' /></svg>
</div>
`,pasteFromClipboard:`
<div class='action'
data-command='"pasteFromClipboard"'
data-tooltip='${J("tooltip.paste from clipboard")}'>
<svg><use xlink:href='#svg-paste' /></svg>
</div>
`};return r+=s.map(d=>c[d]).join(""),r}function it(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((d,k)=>Jr(e,d,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 d of s)d.addEventListener("click",k=>{var j,X;let ce=k.target,Pe="";for(;ce&&!Pe;)Pe=(j=ce==null?void 0:ce.getAttribute("data-command"))!=null?j:"",ce=(X=ce==null?void 0:ce.parentElement)!=null?X:null;Pe&&e.executeCommand(JSON.parse(Pe))});it(t.querySelectorAll(".MLK__keycap, .action, .fnbutton, .bigfnbutton"));const c=t.querySelectorAll(".MLK__layer");console.assert(c.length>0,"No virtual keyboards available");for(const d of c)d.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(Lr(e,s)),i.push("</div>");return i.join("")}function Lr(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),[d,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+=`>${d}</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,d,k,j;let X="",ce=(r=e.class)!=null?r:"";if(t.shifted&&$r(e)&&(ce+=" is-active"),t.shifted&&"shift"in e)typeof e.shift=="string"?X=Mr(e.shift):typeof e.shift=="object"&&(X=e.shift.label?e.shift.label:(i=Mr(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(X=e.label?e.label:(d=Mr(e.latex||e.insert||"")||e.key)!=null?d:"",e.shift){let Pe;typeof e.shift=="string"?Pe=Mr(e.shift):e.shift.label?Pe=e.shift.label:Pe=(k=Mr(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?k:"",X+=`<span class="MLK__shift">${Pe}</span>`}e.aside&&(X+=`<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:""),[X,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 Sn(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=F(g(g({},$n[e.label]),e),{label:$n[e.label].label})),"key"in e&&e.key&&$n[e.key]&&(r=F(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 rt;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=Ir(e.target);if(!(s!=null&&s.id))return;const c=r.getKeycap(s.id);if(!c)return;console.assert(e.type==="pointerdown");const d=new AbortController,k=d.signal;s.classList.add("is-pressed"),s.addEventListener("pointerenter",Nt(d),{capture:!0,signal:k}),s.addEventListener("pointerleave",Nt(d),{capture:!0,signal:k}),s.addEventListener("pointercancel",Nt(d),{signal:k}),s.addEventListener("pointerup",Nt(d),{signal:k}),$r(c)&&(s.classList.add("is-active"),r.shiftPressCount++),c.variants&&(rt&&clearTimeout(rt),rt=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,()=>{d.abort(),s==null||s.classList.remove("is-active")}))},300)),e.preventDefault()}function Nt(e){return t=>{const r=Ir(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"){rt&&clearTimeout(rt),$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 fr(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 Ir(e){if(!e)return;let t=e;for(;t&&!fr(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 d=gn();d&&!d.readOnly&&d.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=>ar(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,d]=Gr(s,{shifted:this.isShifted});i.innerHTML=window.MathfieldElement.createHTML(c),i.className=d}}}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 d=s.offsetHeight-1;i.style.paddingBottom=c?`calc(${c} + ${d}px)`:`${d}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=Cr(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 _(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(O()&&!("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(_(i))t.scriptDepth=[i[0],i[1]];else if(typeof i=="number")t.scriptDepth=[i,i];else if(typeof i=="string"){const[c,d]=i.split(",").map(k=>parseInt(k.trim()));t.scriptDepth=[c,d]}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"?ne.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=De(e.macros);break;default:_(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 vi(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[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 _i(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Ue,backgroundColorMap:ee,letterShapeStyle:ne.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.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(d,k){for(const j of c)if(j.style[d]!==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 d of c)d.applyStyle(r);return!0}function _o(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"],fi),je("center",fi),de("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*"],"",fi),xt(["align","align*","aligned","eqnarray"],"",fi),xt("split","",fi),xt(["gather","gathered"],"",fi),xt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",fi),xt(["smallmatrix","smallmatrix*"],"[columns:colspec]",fi),xt(["cases","dcases","rcases"],"",fi);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 fi(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:Ya(i[0])});case"bmatrix":case"bmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Ya(i[0])});case"Bmatrix":case"Bmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Ya(i[0])});case"vmatrix":case"vmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Ya(i[0])});case"Vmatrix":case"Vmatrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Ya(i[0])});case"matrix":case"matrix*":return new fs(e,t,r,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Ya(i==null?void 0:i[0])});case"smallmatrix":case"smallmatrix*":return new fs(e,t,r,{mathstyleName:"scriptstyle",columns:Ya(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 d=2;for(;d<s;)c.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),d+=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 Ya(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 d;return t.endsWith("column")?(d=fi("split",[[c,s]]),e.root=d,es(d,0,0)?Ga(e,d,0,0):es(d,0,1)?Ga(e,d,0,1):e.position=e.offsetOf(i)):(d=fi("lines",[[c],[s]]),e.root=d,es(d,0,0)?Ga(e,d,0,0):es(d,1,0)?Ga(e,d,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)]),d=e.extractAtoms([e.offsetOf(s.firstChild),e.position]);d.length===0&&(d=ka()),c.length===0&&(c=ka());let k="pmatrix";const j=s.leftDelim,X=s.rightDelim;j==="("&&(X===")"||X==="?")?k="pmatrix":(j==="["||j==="\\lbrack")&&(X==="]"||X==="\\rbrack"||X==="?")?k="bmatrix":j==="\\vert"&&X==="\\vert"?k="vmatrix":j==="\\Vert"&&X==="\\Vert"?k="Vmatrix":(j==="{"||j==="\\lbrace")&&(X==="."||X==="?")&&(k="cases");const ce=fi(k,t.endsWith("column")?[[d,c]]:[[d],[c]]);return s.parent.addChildBefore(ce,s),s.parent.removeChild(s),es(ce,0,0)?Ga(e,ce,0,0):t.endsWith("column")?es(ce,0,1)?Ga(e,ce,0,1):e.position=e.offsetOf(r):es(ce,1,0)?Ga(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 wo(e,t,r,i){const s=t.getCell(r,i);return s?[e.offsetOf(s[0]),e.offsetOf(s[s.length-1])]:-1}function Ga(e,t,r,i){const s=wo(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 fo(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"})?(fo(e,"after row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function ro(e){return e.contentWillChange({inputType:"insertText"})?(fo(e,"before row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Sa(e){return e.contentWillChange({inputType:"insertText"})?(fo(e,"after column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function yl(e){return e.contentWillChange({inputType:"insertText"})?(fo(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 d=i.getCell(Math.max(0,s[0]-1),s[1]);c=e.offsetOf(d[d.length-1])}break;case"column":if(i.colCount>i.minColumns){i.removeColumn(s[1]);const d=i.getCell(s[0],Math.max(0,s[1]-1));c=e.offsetOf(d[d.length-1])}break}c&&e.setPositionHandlingPlaceholder(c)}}function xo(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:ro,addColumnBefore:yl,removeRow:xo,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 Co=ns;function ql(e,t,r){if(e.at(t).mode!=="text")return t;const i=r==="backward"?-1:1;let s;if(u.test(e.at(t).value)){let c=t,d;do d=e.at(c).mode==="text"&&u.test(e.at(c).value),c+=i;while(e.at(c)&&d);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 d=!0;do d=e.at(c).mode==="text"&&!/\s/.test(e.at(c).value),c+=i;while(e.at(c)&&d);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 d=!0;for(;e.at(c)&&d;)d=e.at(c).mode==="text"&&/\s/.test(e.at(c).value),d&&(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,d,k,j,X;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 nt=e.offsetOf(Pe);if(Pe instanceof Ud)nt=ql(e,nt,t);else if(Pe instanceof Ol)if(Pe.isSuggestion)for(console.assert(t==="forward");Pe&&Pe instanceof Ol;)Pe.isSuggestion=!1,nt=e.offsetOf(Pe),Pe=Pe.rightSibling;else if(t==="forward"){if(Pe=Pe.rightSibling,!Pe||!(Pe instanceof Ol))return e.announce("plonk"),!1;for(;Pe&&Pe instanceof Ol&&/[a-zA-Z\*]/.test(Pe.value);)nt=e.offsetOf(Pe),Pe=Pe.rightSibling}else{if(Pe=Pe.leftSibling,!Pe||!(Pe instanceof Ol))return e.announce("plonk"),!1;for(;Pe&&Pe instanceof Ol&&/[a-zA-Z\*]/.test(Pe.value);)nt=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);nt=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);nt=e.offsetOf(Pe)}else if(t==="backward")if(Pe.type==="first")for(;nt>0&&Pe.type==="first";)nt-=1,Pe=e.at(nt);else{const gt=Pe.type;Pe.type==="subsup"&&(nt=e.offsetOf(e.at(nt).leftSibling)),nt-=1;let St=(s=e.at(nt))==null?void 0:s.type;for(;nt>=0&&St===gt;)((c=e.at(nt))==null?void 0:c.type)==="subsup"?nt=e.offsetOf(e.at(nt).leftSibling):nt-=1,St=e.at(nt).type}else{const{type:gt}=Pe;let St=(d=e.at(nt))==null?void 0:d.type;const{lastOffset:Br}=e;for(;nt<=Br&&(St===gt||St==="subsup");){for(;((k=e.at(nt).rightSibling)==null?void 0:k.type)==="subsup";)nt=e.offsetOf(e.at(nt).rightSibling);nt+=1,St=(j=e.at(nt))==null?void 0:j.type}nt-=1}if((X=r==null?void 0:r.extend)!=null&&X){if(!e.setSelection(e.anchor,nt))return e.announce("plonk"),!1}else{if(nt===e.position)return e.announce("plonk"),!1;e.position=nt}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=qa(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 d=c;if(e.collapseSelection(t)?(c=e.position,Hs(e,c)||(c=qa(e,c,t))):c=qa(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",d),!0}function qa(e,t,r){return t=t+(r==="forward"?1:-1),t<0||t>e.lastOffset||Hs(e,t)?t:qa(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,d=Math.abs(r-c);if(d<=i)i=d;else break}return t[s-1]}function jc(e,t,r,i,s){const c=e.mathfield.hasEditablePrompts,d=c?r.filter(X=>X.type==="prompt"&&!X.captureSelection):r,k=D0(e.mathfield.getHTMLElement(t)).right,j=e.offsetOf(zh(e.mathfield,d,k))-(c?1:0);if(i){const[X,ce]=e.selection.ranges[0];let Pe;j<(s==="up"?X:ce)?Pe={ranges:[[j,ce]],direction:"backward"}:Pe={ranges:[[X,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,X;let ce=!0;return e.silenceNotifications||(ce=(X=(j=e.mathfield.host)==null?void 0:j.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?X:!0),e.announce(ce?"plonk":"line"),ce},d=e.at(e.position);let k=d;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 X=k.parentBranch[0]-1,ce=j.array[X][k.parentBranch[1]];if(!ce.some(nt=>nt.type==="prompt"&&!nt.captureSelection)&&e.mathfield.hasEditablePrompts)return c();jc(e,d,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,d,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,X;let ce=!0;return e.silenceNotifications||(ce=(X=(j=e.mathfield.host)==null?void 0:j.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?X:!0),e.announce(ce?"plonk":"line"),ce},d=e.at(e.position);let k=d;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 X=k.parentBranch[0]+1,ce=j.array[X][k.parentBranch[1]];if(!ce.some(nt=>nt.type==="prompt"&&!nt.captureSelection)&&e.mathfield.hasEditablePrompts)return c();jc(e,d,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,d,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 X=[],ce=[];return[...j.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(t).forEach((nt,gt)=>{const St=i(nt);St===0?X.push(nt):ce.push({documentOrder:gt,tabIndex:St,node:nt})}),ce.sort((nt,gt)=>nt.tabIndex===gt.tabIndex?nt.documentOrder-gt.documentOrder:nt.tabIndex-gt.tabIndex).map(nt=>nt.node).concat(X)}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 X;const ce=Number.parseInt((X=j.getAttribute("tabindex"))!=null?X:"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"&&!d(j)}function c(j,X){for(const ce of j)if(ce.checked&&ce.form===X)return ce;return null}function d(j){var X;if(!j.name)return!0;const Pe=((X=j.form)!=null?X:j.ownerDocument).querySelectorAll('input[type="radio"][name="'+j.name+'"]'),nt=c(Pe,j.form);return!nt||nt===j}function k(j){if(!O()||j===document.activeElement||j.contains(document.activeElement))return!1;if(getComputedStyle(j).visibility==="hidden")return!0;const X=j.getBoundingClientRect();if(X.width===0||X.height===0)return!0;for(;j;){if(getComputedStyle(j).display==="none")return!0;j=j.parentElement}return!1}return O()?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 d;const k=e.at(e.anchor).parentPrompt;k?t==="forward"?d=e.offsetOf(k)+1:d=e.offsetOf(k.leftSibling):d=Math.max(e.position+c,0);const j=Gd(e,d,t);if(!j||t==="forward"&&e.offsetOf(j)<d||t==="backward"&&e.offsetOf(j)>d){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 d=e.setSelection(e.getBranchRange(e.offsetOf(i),c));return e.mathfield.stopCoalescingUndo(),d},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 nt=c;for(;nt&&nt.mode==="text";)nt=nt.leftSibling;let gt=c;for(;((t=gt.rightSibling)==null?void 0:t.mode)==="text";)gt=gt.rightSibling;if(nt&&gt)return Ss(e,[nt,gt])}if(c.rightSibling.mode==="text"){let nt=c;for(;nt&&nt.mode==="text";)nt=nt.rightSibling;return nt?(dl(e,(r=nt.leftSibling)!=null?r:nt),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),X=Gd(e,j,"forward");if(X)return dl(e,X);const ce=Uu(e,c,nt=>nt.type==="leftright"||nt.type==="text","forward");if(ce){if(ce.mode==="text"){let nt=ce;for(;nt&&nt.mode==="text";)nt=nt.rightSibling;return Ss(e,[(i=ce.leftSibling)!=null?i:ce,(s=nt.leftSibling)!=null?s:nt])}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),d=Gd(e,c,"backward");if(d)return dl(e,d);if(i==="math"){const k=Uu(e,r,X=>X.type==="leftright"||X.type==="text","backward");if(k){if(k.mode==="text"){let X=k;for(;X&&X.mode==="text";)X=X.leftSibling;return Ss(e,[k,X])}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 d=e.at(i);s=t===0||d===void 0||d.type==="first"||d.mode!=="math"||!(d.type&&/mord|mpunct|operator/.test(d.type)||d.type==="mop"&&/[a-zA-Z ]+/.test(d.value))||!d.hasEmptyBranch("superscript")||!d.hasEmptyBranch("subscript")||typeof r=="function"&&!r(d),s||(d.mode="text",d.command=d.value,d.verbatimLatex=void 0,c+=d.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 d=e.at(i);s=t===0||!d||d.type==="first"||d.isFirstSibling||d.mode!=="text"||d.value===" "||typeof r=="function"&&!r(d),s||(c.push(Ur.serialize([d],{defaultMode:"math"})),d.mode="math"),i-=1,t-=1}vu(e),e.contentDidChange({data:Ao(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 d={")":"(","}":"{","]":"["}[s],{parent:k}=i.at(i.position);if(d&&k instanceof Ys&&k.leftDelim===d)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,d=>/[a-z][:,;.]$/.test(d.value)),!0;if(/[a-zA-Z]{3,}$/.test(c)&&!/(dxd|abc|xyz|uvw)$/.test(c))return gu(i,void 0,d=>/[a-zA-Z]/.test(d.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,d=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(d.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,d=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,d),t.isTrusted&&t.defaultPrevented)return e.flushInlineShortcutBuffer(),!1;let k,j="",X;const ce=e.inlineShortcutBuffer;if(e.isSelectionEditable){if(c.mode==="math")if(d==="[Backspace]")ce.pop();else if(!JA(t))e.flushInlineShortcutBuffer();else{const gt=Qh(t),St=[...(i=(r=ce[ce.length-1])==null?void 0:r.keystrokes)!=null?i:[],gt];ce.push({state:c.getState(),keystrokes:St,leftSiblings:Mp(e)});let Br=0,En="";for(;!k&&Br<St.length;)X=ce.length-(St.length-Br),En=St.slice(Br).join(""),k=M0(ce[X].leftSiblings,En,e.options.inlineShortcuts),!k&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(En)&&(k=e.options.onInlineShortcut(e,En)),Br+=1;e.flushInlineShortcutBuffer({defer:!0})}e.options.smartMode&&(k?e.switchMode("math"):$h(e,d,t)&&(e.switchMode({math:"text",text:"math"}[c.mode]),j=""))}if(!k){if(j||(j=bg(e.keybindings,c.mode,t)),!j&&(d==="[Enter]"||d==="[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||d==="[Space]")&&c.mode==="math"){if(d==="[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),St=c.at(c.position-1);if((gt==null?void 0:gt.mode)==="text"||(St==null?void 0:St.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(d))return e.snapshot(),gt.isDirty=!0,gt.rightDelim=d,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 St=Qh(t);if(St==="("||St==="{"||St==="["){const Br={"(":"(","{":"\\lbrace","[":"\\lbrack"}[St],En={"(":")","{":"\\rbrace","[":"\\rbrack"}[St],[wr,nn]=Jl(c.selection);return e.snapshot(),c.position=nn,Ls.insert(c,En,{format:"latex"}),c.position=wr,Ls.insert(c,Br,{format:"latex"}),c.setSelection(wr+1,nn+1),c.contentDidChange({data:St,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:nt}=Pe;if(j==="moveAfterParent"&&(nt==null?void 0:nt.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[X].state);const St=ce[ce.length-1].keystrokes;for(const Br of St)Ls.insert(c,Br,{silenceNotifications:!0,style:gt});e.snapshot("insert-shortcut"),c.setState(ce[X].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 X of s)Wh(e,new KeyboardEvent("keypress",{key:X}))&&(j=!1);if(j)return}const d=i.at(i.position),k=g(g({},d.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,d);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 d=e.adoptStyle==="left"?i:i.parent?i.rightSibling:null;(d==null?void 0:d.type)==="mord"&&/[a-zA-Z0-9]/.test(d.value)&&(r=g({},r),d.style.variant&&(r.variant=d.style.variant),d.style.variantStyle&&(r.variantStyle=d.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 d=Dh[c],k=Kd[c];if(!e.selectionIsCollapsed){e.mathfield.snapshot();const[j,X]=Jl(e.selection),ce=e.extractAtoms([j,X]),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 nt=e.extractAtoms([e.offsetOf(i),e.offsetOf(Pe)]);return nt.pop(),s.addChildrenAfter([new Ys("left...right",nt,{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 X;for(X=e.position;X<=j;X++){const Pe=e.at(X);if(Pe instanceof Ys&&(Pe.leftDelim==="?"||Pe.leftDelim===".")&&Lp(c,Pe.rightDelim))break}const ce=e.at(X);if(X<=j&&ce instanceof Ys){ce.leftDelim=c,e.mathfield.snapshot();let Pe=e.extractAtoms([e.position,X-1]);return Pe=Pe.filter(nt=>nt.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 nt of Pe)s.parent.addChildBefore(nt,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),nt=e.extractAtoms([e.position,Pe]);e.at(e.position).body=nt,e.position-=1}return e.mathfield.snapshot("insert-fence"),!0}}if(d){let j=i;for(;j;){if(j.type==="mopen"&&j.value===d){e.mathfield.snapshot();const gt=j.leftSibling,St=e.extractAtoms([e.offsetOf(j.leftSibling),e.offsetOf(i)]);St.shift();const Br=new Ys("left...right",St,{leftDelim:d,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 X=e.offsetOf(i.firstSibling);let ce;for(ce=e.position;ce>=X;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>=X&&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 nt=s.parent;return nt instanceof Ys&&(nt.rightDelim==="?"||nt.rightDelim===".")&&e.at(e.position).isLastSibling?(e.position=e.offsetOf(nt),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,d,k,j,X,ce,Pe;const nt={};if(typeof t.color=="string"){const St=(i=e.colorMap((r=t.color)!=null?r:t.verbatimColor))!=null?i:"none";St!==t.color&&(nt.verbatimColor=(s=t.verbatimColor)!=null?s:t.color),nt.color=St}if(typeof t.backgroundColor=="string"){const St=(d=e.backgroundColorMap((c=t.backgroundColor)!=null?c:t.verbatimBackgroundColor))!=null?d:"none";St!==t.backgroundColor&&(nt.verbatimBackgroundColor=(k=t.verbatimBackgroundColor)!=null?k:t.backgroundColor),nt.backgroundColor=St}typeof t.fontFamily=="string"&&(nt.fontFamily=t.fontFamily),typeof t.series=="string"&&(nt.fontSeries=t.series),typeof t.fontSeries=="string"&&(nt.fontSeries=t.fontSeries.toLowerCase()),nt.fontSeries&&(nt.fontSeries=(j={bold:"b",medium:"m",normal:"m"}[nt.fontSeries])!=null?j:nt.fontSeries),typeof t.shape=="string"&&(nt.fontShape=t.shape),typeof t.fontShape=="string"&&(nt.fontShape=t.fontShape.toLowerCase()),nt.fontShape&&(nt.fontShape=(X={italic:"it",up:"n",upright:"n",normal:"n"}[nt.fontShape])!=null?X:nt.fontShape),t.variant&&(nt.variant=t.variant.toLowerCase()),t.variantStyle&&(nt.variantStyle=t.variantStyle.toLowerCase());const gt=(ce=t.size)!=null?ce:t.fontSize;return typeof gt=="number"?nt.fontSize=Math.max(1,Math.min(10,gt)):typeof gt=="string"&&(nt.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]),nt}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 d=e.at(t);if(!d)return t;const k=r==="forward"?1:-1;if(d.mode==="text"){for(;d&&!(d.mode!=="text"||!u.test(d.value));)t+=k,d=e.at(t);return r==="backward"?t-1:t}if(d.mode==="latex"){if(/[a-zA-Z\*]/.test(d.value))if(r==="backward")for(;d&&d.mode==="latex"&&d.value!=="\\"&&/[a-zA-Z]/.test(d.value);)t+=k,d=e.at(t);else for(;d&&d.mode==="latex"&&/[a-zA-Z\*]/.test(d.value);)t+=k,d=e.at(t);else if(d.value==="{"){if(r==="forward"){for(;d&&d.mode==="latex"&&d.value!=="}";)t+=k,d=e.at(t);return t}return t-1}else if(d.value==="}"){if(r==="backward"){for(;d&&d.mode==="latex"&&d.value!=="{";)t+=k,d=e.at(t);return t-1}return t}return t-1}if(d.mode==="math"){if(d.isDigit()){for(;(i=e.at(t+k))!=null&&i.isDigit();)t+=k;return r==="backward"?t-1:t}if(d.style.variant||d.style.variantStyle){let j=(s=e.at(t))==null?void 0:s.style;for(;j&&j.variant===d.style.variant&&j.variantStyle===d.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 d={signal:lf.controller.signal};"PointerEvent"in window?(t.addEventListener("pointermove",i,d),t.addEventListener("pointerup",s,d),t.addEventListener("pointercancel",s,d),W0(r)&&(lf.pointerId=r.pointerId,t.setPointerCapture(r.pointerId))):(window.addEventListener("mousemove",i,d),window.addEventListener("blur",s,d),window.addEventListener("mouseup",s,d))}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 Np(e,t){var r;if(t.buttons>1)return;e.atomBoundsCache=new Map;const i=e;let s,c=!1,d=!1,k="none",j=!1,X=!1;const ce=t.clientX,Pe=t.clientY,nt=Date.now(),gt=i.field,St=setInterval(()=>{j?gt.scroll({top:0,left:gt.scrollLeft-16}):X&&gt.scroll({top:0,left:gt.scrollLeft+16})},32);function Br(){ec.stop(),c=!1,clearInterval(St),e.element.classList.remove("tracking"),t&&t.preventDefault()}function En(nn){if(!i.hasFocus()){Br();return}const Mn=nn.clientX,An=nn.clientY,Si=W0(nn)&&nn.pointerType==="touch"?20:5;if(Date.now()<nt+500&&Math.abs(ce-Mn)<Si&&Math.abs(Pe-An)<Si){nn.preventDefault(),nn.stopPropagation();return}const ra=gt.getBoundingClientRect();X=Mn>ra.right,j=Mn<ra.left;let Qi=s;W0(nn)&&(nn.isPrimary||(Qi=vd(i,nn.clientX,nn.clientY,{bias:0})));const h=vd(i,Mn,An,{bias:Mn<=ce?Mn===ce?0:-1:1});Qi>=0&&h>=0&&(i.model.extendSelectionTo(Qi,h),Il(e)),d&&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=nt):(Qu={x:ce,y:Pe,time:nt},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,En,Br),(t.detail===2||Xh===2)&&(d=!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 d=[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]<=d[0]&&(d=j)}return d[1]||(d=[kf(i,s,c),r]),t.set(r.id,d),d}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 d=gd(e,t,r);const k=[];let j=d;for(;j;)k.unshift(j),j=j.parent;for(const ce of k)if(ce.captureSelection){d=ce;break}let X=e.model.offsetOf(d);if(X<0)return-1;if(d.leftSibling)if(i.bias===0&&d.type!=="placeholder"){const ce=nh(e,d);ce&&t<(ce.left+ce.right)/2&&(X=e.model.offsetOf(d.leftSibling))}else i.bias<0&&(X=e.model.offsetOf(d.leftSibling));return X}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 d=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 X=[];let ce=[];d[0].type==="first"&&d.shift(),d[d.length-1].type==="first"&&d.pop();for(const St of d)St.type==="first"&&ce.length>0?(X.push(ce),ce=[St]):ce.push(St);ce.length>0&&X.push(ce);let Pe=Number(j.parentBranch[0]),nt=Number(j.parentBranch[1]);const gt=j.parent.maxColumns;for(;j.parent.colCount-nt<X.length&&j.parent.colCount<gt;)j.parent.addColumn();j.parent.addChildrenAfter(X[0],j);for(let St=1;St<X.length;St++)nt++,nt>=gt&&(nt=0,j.parent.addRowAfter(Pe),Pe++),j.parent.setCell(Pe,nt,X[St])}else j.parent.addChildrenAfter(d.filter(X=>X.type!=="first"),j);return k.position=k.offsetOf(d[d.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 d=window.MathfieldElement.computeEngine.box(c);d&&!d.has("Error")&&(r=d.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:d}=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 X=-1;j[0]?j["@"]=j[0]:typeof t=="string"&&/(^|[^\\])#@/.test(t)&&(X=rg(e),X>=0&&(j["@"]=e.getValue(X,e.position,"latex"))),j[0]||(j[0]=j["?"]);let ce=!1;const Pe=Mn=>(ce=!0,j[Mn]);let[nt,gt]=G0(e,t,Pe,r);if(!gt)return!1;const St=gt.length===1&&gt[0].type==="genfrac";St&&X>=0&&typeof e.mathfield.options.isImplicitFunction=="function"&&e.mathfield.options.isImplicitFunction(e.at(e.position).command)?(j["@"]=j["?"],ce=!1,[nt,gt]=G0(e,t,Pe,r)):X>=0&&e.deleteAtoms([X,e.position]);const{parent:Br}=e.at(e.position),En=Br.hasEmptyBranch("body");if(St&&nt!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&Br instanceof Ys&&Br.leftDelim==="("&&En){const Mn=Br.parent,An=Br.parentBranch;Mn.removeChild(Br),Mn.setChildren(gt,An)}const wr=e.at(e.position);wr.parent.addChildrenAfter(gt,wr),nt==="latex"&&typeof t=="string"&&(Br==null?void 0:Br.type)==="root"&&En&&!ce&&(Br.verbatimLatex=t),e.silenceNotifications=k;const nn=gt[gt.length-1];if(r.selectionMode==="placeholder"){const Mn=gt.flatMap(An=>[An,...An.children]).find(An=>An.type==="placeholder");if(Mn){const An=e.offsetOf(Mn);e.setSelection(An-1,An),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=d,!0}};function G0(e,t,r,i){var s;let c,d=[];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],d=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}),d=hc(t,{context:e.mathfield.context}),c!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&X0(d)):(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)),d=hc(t,{context:e.mathfield.context,args:r}),i.format!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&X0(d));return Ft(d,i.style),[c!=null?c:"latex",d]}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 d=0;r.body[d];d++)r.body[d].type==="genfrac"&&(i++,s=d),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 d=e.at(e.position),k=d.parent.addChildrenAfter(c,d);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>`,ho=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:ho,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(St=>{(!s||St.length>s)&&(s=St.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 d;const k=c.querySelector(".MLEP__environment-controls");k?d=k:(d=document.createElement("div"),c.innerHTML="",c.appendChild(d)),d.className="MLEP__environment-controls",d.style.display="flex",d.style.width="100%",d.style.height="100%",d.style.boxSizing="border-box",d.innerHTML=Ah;let j=[],X="";const ce=e.model.parentEnvironment.environmentName;if(Ph(ce)){const St=Yh(ce);X=yd[St]("active");const Br=yd,{[St]:En}=Br,wr=$(Br,[v(St)]);j=Object.values(wr).map(nn=>nn("inactive"))}else if(Th(ce)){const St=tp(ce);X=wd[St]("active");const Br=wd,{[St]:En}=Br,wr=$(Br,[v(St)]);j=Object.values(wr).map(nn=>nn("inactive"))}else zm(ce)&&(X=yd.matrix("active"),j=Object.values(wd).map(St=>St("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'>
${X}
${j.join("")}
</div>`,X&&d.appendChild(Pe),d.querySelectorAll("[data-command]").forEach(St=>{const Br=St.dataset.command;let En=Br;try{En=JSON.parse(Br)}catch(wr){}St.addEventListener("mousedown",wr=>wr.preventDefault()),En&&St.addEventListener("click",()=>e.executeCommand(En))});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 Op(){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):Op()}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 d=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:d.height),X=e0(t.location.y,j,t.verticalPos,c);X+j>window.innerHeight-8&&(t.alternateLocation?(X=e0(t.alternateLocation.y,j,t.verticalPos,c),X+j>window.innerHeight-8&&(X=void 0)):X=void 0),Number.isFinite(X)||(X=Math.max(8,window.innerHeight-8-j),8+j>window.innerHeight-8&&(e.style.bottom="8px")),j=Math.min(X+j,window.innerHeight-8)-X;const ce=Number.isFinite(t.maxWidth)?Math.min(t.maxWidth,window.innerWidth):window.innerWidth;let Pe=Math.min(ce,(s=t.width)!=null?s:d.width),nt=e0(t.location.x,Pe,t.horizontalPos,c);nt+Pe>window.innerWidth-8&&(t.alternateLocation?(nt=Pp(t.alternateLocation.x,Pe,t.verticalPos,c),nt+Pe>window.innerWidth-8&&(nt=void 0)):nt=void 0),Number.isFinite(nt)||(nt=Math.max(8,window.innerWidth-8-Pe),8+Pe>window.innerWidth-8&&(e.style.right="8px")),Pe=Math.min(nt+Pe,window.innerWidth-8)-nt,c==="rtl"?e.style.right=`${Math.ceil(window.innerWidth-nt-Pe).toString()}px`:e.style.left=`${Math.ceil(nt).toString()}px`,e.style.top=`${Math.ceil(X).toString()}px`,j!==d.height&&(e.style.height=`${Math.ceil(j).toString()}px`),Pe!==d.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=Nf(s.checked,e))!=null?t:!1)),(RA(s)||Yd(s))&&(this.enabled=(r=Nf(s.enabled,e))!=null?r:!0,this.visible=(i=Nf(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=Nf(s.label,e),this.tooltip=Nf(s.tooltip,e),this.ariaLabel=Nf(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 d=this.submenu.element.getBoundingClientRect(),k=this.element.getBoundingClientRect();d.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 Nf(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(X=>X.updateState(t));const c=this.hasCheck;this.hasCheck=this._menuItems.some(X=>X.visible&&X.hasCheck),this.hasCheck!==c&&this._menuItems.forEach(X=>X.updateState(t));let d,k=0;for(const X of this._menuItems)X.type==="heading"?(d&&k===0&&(d.visible=!1),d=X,k=0):X.type==="divider"&&d?(d.visible=k>0,d=void 0,k=0):d&&X.visible&&(k+=1);d&&(d.visible=k>0);let j=!0;for(const X of this._menuItems)X.type==="divider"?(X.visible=!j,j=!0):X.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 d=this.activeMenuItem;d.active=!1,(r=d.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 d=this._menuItems[s];if(!d)break;if(d.visible&&d.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,d=0;for(;d<s&&!c;)c=(r=i.find(k=>km.collator.compare(t,k.label.substring(d,t.length))===0))!=null?r:null,d++;return c}show(t){return!this.visible||!t.container?!1:(this.updateElement(),t.container.appendChild(this.element),se()&&(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),se()&&((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 d=t!==null;((r=this.activeMenuItem)==null?void 0:r.type)==="submenu"&&((i=this.activeMenuItem.element)==null||i.setAttribute("aria-expanded",d.toString())),(c=(s=this.activeMenuItem)==null?void 0:s.element)==null||c.classList.toggle("is-submenu-open",d),this.isSubmenuOpen=d}},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 d=this.activeSubmenu,k=d.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)d.activeMenuItem=d.firstMenuItem;else{const j=(r=d.getMenuItemColumn(k))!=null?r:-1;if(j>=0&&j<((i=d.columnCount)!=null?i:1)-1){const X=d.nextMenuItem(1);X&&(d.activeMenuItem=X)}}break;case"ArrowLeft":if(d===this.rootMenu)k||(d.activeMenuItem=d.firstMenuItem);else if((k&&(s=d.getMenuItemColumn(k))!=null?s:-1)<=0||!k){d.hide();const X=d.parentMenu.activeMenuItem;if(X){const{element:ce}=X;ce==null||ce.focus(),ce==null||ce.classList.remove("is-submenu-open")}}else{const X=d.nextMenuItem(-1);X&&(d.activeMenuItem=X)}break;case"ArrowDown":d.activeMenuItem=d.nextMenuItem(d.columnCount);break;case"ArrowUp":d.activeMenuItem=d.nextMenuItem(-d.columnCount);break;case"Home":case"PageUp":d.activeMenuItem=d.firstMenuItem;break;case"End":case"PageDown":d.activeMenuItem=d.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const j=d.findMenuItem(this.typingBuffer);j&&(d.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=d.findMenuItem(this.typingBuffer);j&&(d.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(F(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 z=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 Bt=class{};Bt.DELAY=300,Bt.MAX_DISTANCE=10;function Zt(e){return new Promise((t,r)=>{const i=Pu(e);i||t(!1);let s=i;const c=setTimeout(()=>{d.abort(),t(r0(s,i)<Bt.MAX_DISTANCE)},Bt.DELAY),d=new AbortController,k=d.signal;for(const j of["pointermove","pointerup","pointercancel"])window.addEventListener(j,X=>{if(X.type==="pointerup"||X.type==="pointercancel")clearTimeout(c),d.abort(),t(!1);else if(X.type==="pointermove"){const ce=Pu(X);ce&&(s=ce)}},{passive:!0,signal:k})})}function vr(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 dn={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};de(Object.keys(dn),"{body:auto}",{createAtom:e=>new ih(F(g({},e),{body:qe(e.args[0]),accentChar:dn[e.command.slice(1)]}))}),de(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=ye(qe(e.args[0]));return new ih(F(g({},e),{body:qe(e.args[0]),svgAccent:e.command.slice(1)+(t.length>5?"4":["1","1","2","2","3","3"][t.length])}))}}),de(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:e=>new ih(F(g({},e),{body:qe(e.args[0]),svgAccent:"overarc"}))}),de(["underarc","underparen"],"{body:auto}",{createAtom:e=>new mc(F(g({},e),{body:qe(e.args[0]),svgBelow:"underarc"}))}),de("utilde","{body:auto}",{createAtom:e=>{const t=qe(e.args[0]),r=ye(t),i="widetilde"+(r.length>5?"4":["1","1","2","2","3","3"][r.length]);return new mc(F(g({},e),{body:t,svgBelow:i,boxType:Od(t)}))}}),de("^","{:string}",{createAtom:e=>{var t;return new Ur(F(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:"^"}))}}),de("`","{:string}",{createAtom:e=>{var t;return new Ur(F(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:"`"}))}}),de("'","{:string}",{createAtom:e=>{var t;return new Ur(F(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:"'"}))}}),de('"',"{:string}",{createAtom:e=>{var t,r;return new Ur(F(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]:'"'}))}}),de(".","{:string}",{createAtom:e=>{var t,r;return new Ur(F(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]:"."}))}}),de("=","{:string}",{createAtom:e=>{var t,r;return new Ur(F(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]:"="}))}}),de("~","{:string}",{createAtom:e=>{var t;return new Ur(F(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"}))}}),de("c","{:string}",{createAtom:e=>{var t;return new Ur(F(g({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={c:"\xE7",C:"\xC7"}[e.args[0]])!=null?t:""}))}}),de("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 d=i[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const k of d){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 X=k.match(/\s*([a-z]*)\s*=\s*"(.*)"/);X&&(X[1]==="mathbackground"?s.backgroundcolor=X[2]:X[1]==="mathcolor"?s.strokeColor=X[2]:X[1]==="padding"?s.padding=X[2]:X[1]==="shadow"&&(s.shadow=X[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(d=>d.length>0).forEach(d=>{c[d.toLowerCase()]=!0}),new sc(e.command,qe(i[2]),c,s)}}),de("cancel","{body:auto}",{createAtom:e=>{var t;return new sc(e.command,qe(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:{}})}}),de("bcancel","{body:auto}",{createAtom:e=>{var t;return new sc(e.command,qe(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:{}})}}),de("xcancel","{body:auto}",{createAtom:e=>{var t;return new sc(e.command,qe(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:{}})}}),de(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:e=>{var t;return new mc(F(g({},e),{body:qe((t=e.args)==null?void 0:t[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:e.command.slice(1)}))}}),de("overbrace","{:auto}",{createAtom:e=>new mc(F(g({},e),{body:qe(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:e.command.slice(1)}))}),de(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:e=>new mc(F(g({},e),{body:qe(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:e.command.slice(1)}))}),de(["underbrace"],"{:auto}",{createAtom:e=>new mc(F(g({},e),{body:qe(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:e.command.slice(1)}))}),de(["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(F(g({},e),{svgBody:e.command.slice(1),above:((r=qe((t=e.args)==null?void 0:t[1]))==null?void 0:r.length)===0?void 0:qe((i=e.args)==null?void 0:i[1]),below:(c=qe((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)}`}),de(["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),F(g({},e),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),de(["liminf","limsup"],"",{ifMode:"math",createAtom:e=>new GA({"\\liminf":"lim inf","\\limsup":"lim sup"}[e.command],F(g({},e),{limits:"over-under",variant:"main"}))}),de(["lim","mod"],"",{ifMode:"math",createAtom:e=>new GA(e.command.slice(1),F(g({},e),{limits:"over-under",variant:"main"}))}),de(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:e=>new GA(e.command.slice(1),F(g({},e),{limits:"over-under",isFunction:!0,variant:"main"}))}),de(["ang"],"{:math}",{ifMode:"math",createAtom:e=>new Ur(F(g({},e),{body:qe(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:F(g({},e.style),{variant:"normal",variantStyle:"up"})});return new zr([r,s],{type:"inner",isSelected:e.isSelected,caret:i})}}),de("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:e=>new Sp(F(g({},e),{body:qe(e.args[1]),index:e.args[0]?qe(e.args[0]):void 0}))}),de(["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]?qe(i[0]):[new Du],i[1]?qe(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)}}),de(["brace","brack"],"",{infix:!0,createAtom:e=>new Ef(qe(e.args[0]),qe(e.args[1]),F(g({},e),{hasBarLine:!1,leftDelim:e.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:e.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(e,t)=>Ao([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),de(["over","atop","choose"],"",{infix:!0,createAtom:e=>{let t,r;const i=e.args;return e.command==="\\choose"&&(t="(",r=")"),new Ef(qe(i[0]),qe(i[1]),F(g({},e),{hasBarLine:e.command==="\\over",leftDelim:t,rightDelim:r}))},serialize:(e,t)=>Ao([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),de(["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(qe(i[0]),qe(i[1]),F(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)}`}),de("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:e=>new Ef(qe(e.args[0]),qe(e.args[1]),F(g({},e),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),de(["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)],F(g({},e),{limits:"auto",variant:"main"}))}),de("smallint","",{ifMode:"math",createAtom:e=>new GA("\u222B",F(g({},e),{limits:"adjacent",variant:"main"}))});var _n={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"};de(Object.keys(_n),"",{ifMode:"math",createAtom:e=>{const t=e.command,r=_n[t.slice(1)];return new Bp(r,F(g({},e),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[r]}))}}),de(["Re","Im"],"",{ifMode:"math",createAtom:e=>new GA({"\\Re":"\u211C","\\Im":"\u2111"}[e.command],F(g({},e),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),de("middle","{:delim}",{ifMode:"math",createAtom:e=>{var t;return new Kc(F(g({},e),{delim:(t=e.args[0])!=null?t:"|",size:1}))}}),de("the","{:value}",{createAtom:e=>new Ur(F(g({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var r;const i=new Eo({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(d=>new zr(d,{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"}`}}),de("mathtip","{:auto}{:math}",{createAtom:e=>new hd(F(g({},e),{body:qe(e.args[0]),tooltip:qe(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Ur.serialize([e.tooltip],F(g({},t),{defaultMode:"math"}))}}`}),de("texttip","{:auto}{:text}",{createAtom:e=>new hd(F(g({},e),{body:qe(e.args[0]),tooltip:qe(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Ur.serialize([e.tooltip],F(g({},t),{defaultMode:"text"}))}}`}),de("error","{:math}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),serialize:(e,t)=>`\\error{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__error"})}),de("ensuremath","{:math}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(F(g({},t),{defaultMode:"math"}))}}`}),de("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"})}}}),de("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"})}}}),de("boxed","{content:math}",{createAtom:e=>new fc(F(g({},e),{body:qe(e.args[0]),framecolor:{string:"black"}}))}),de("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"})}}}),de("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:e=>{var t,r;return new fc(F(g({},e),{body:qe(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(F(g({},t),{defaultMode:"text"})):Bs(e.command,(r=Dl(e.framecolor))!=null?r:"",(i=Dl(e.backgroundcolor))!=null?i:"",e.bodyToLatex(F(g({},t),{defaultMode:"text"})))}}),de("bbox","[:bbox]{body:auto}",{createAtom:e=>{var t;const r=e.args[0],i=qe(e.args[1]);return r?new fc(F(g({},e),{body:i,padding:r.padding,border:r.border,backgroundcolor:(t=r.backgroundcolor)!=null?t:void 0})):new fc(F(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))}}),de(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),render:(e,t)=>{const r=new Eo({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):`{${Ao([e.command,e.bodyToLatex(t)])}}`}),de(["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]})}),de("fontseries","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontSeries:(r=t[0])!=null?r:"auto"}}}),de("fontshape","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontShape:(r=t[0])!=null?r:"auto"}}}),de("fontfamily","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontFamily:(r=t[0])!=null?r:"roman"}}}),de("selectfont","",{ifMode:"text",applyStyle:()=>({})}),de("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),de(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__boldsymbol"})}),de("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),de("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),de("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),de("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),de("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),de("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),de("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),de("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),de("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),de("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),de("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),de("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),de("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),de("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),de("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),de("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),de("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),de("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),de("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),de("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),de("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),de("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),de("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),de("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),de("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),de("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),de("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),de(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),de(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),de("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),de("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),de("mbox","{:text}",{ifMode:"math",createAtom:e=>new Ur(F(g({},e),{type:"mord",body:qe(e.args[0]),mode:"math"})),serialize:(e,t)=>Bs("\\mbox",e.bodyToLatex(F(g({},t),{defaultMode:"text"})))}),de("text","{:text}",{ifMode:"math",applyMode:"text"}),de(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(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:""})}}),de(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(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}}),de("htmlData","{data:string}{content:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(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}}),de(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(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}}),de("em","{:rest}",{createAtom:e=>new Ur(F(g({},e),{body:qe(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"})}),de("emph","{:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(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 aa={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}};de(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:e=>{var t;return new Sc(F(g({},e),{delim:(t=e.args[0])!=null?t:".",size:aa[e.command].size,delimType:aa[e.command].mclass}))}}),de(["hspace","hspace*"],"{width:value}",{createAtom:e=>{var t;return new iA(F(g({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),de(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:e=>{var t;return new iA(F(g({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),de("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=qe(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)}}`}),de("mathop","{:auto}",{createAtom:e=>new Ur(F(g({},e),{type:"mop",body:qe(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)),Ao(r)}}),de(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:e=>new Ur(F(g({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:qe(e.args[0])}))}),de(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=qe(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(F(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)),Ao(r)}}),de(["char","unicode"],"{charcode:value}",{createAtom:e=>new Ur(F(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)}}),de("rule","[raise:value]{width:value}{thickness:value}",{createAtom:e=>new Ur(e),render:(e,t)=>{var r,i,s;const c=new Eo({parent:t,mathstyle:"textstyle"},e.style),d=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}),X=new zr(null,{classes:"rule",type:"ord"});return X.width=k,X.height=j+d,X.depth=-d,X.setStyle("border-right-width",k,"em"),X.setStyle("border-top-width",j,"em"),X.setStyle("border-color",e.style.color),X.setStyle("vertical-align",d,"em"),e.isSelected&&X.setStyle("opacity","50%"),e.bind(c,X),e.caret&&(X.caret=e.caret),X.wrap(t)},serialize:e=>`\\rule${e.args[0]?`[${Dl(e.args[0])}]`:""}{${Dl(e.args[1])}}{${Dl(e.args[2])}}`}),de(["overline","underline"],"{:auto}",{createAtom:e=>new Ur(F(g({},e),{body:qe(e.args[0])})),render:(e,t)=>{const r=e.command.substring(1),i=new Eo({parent:t,mathstyle:"cramp"},e.style),s=Ur.createBox(i,e.body);if(!s)return null;const c=i.metrics.defaultRuleThickness/i.scalingFactor,d=new zr(null,{classes:r+"-line"});d.height=c,d.maxFontSize=c*1.125*i.scalingFactor;let k;return r==="overline"?k=new bl({shift:0,children:[{box:s},3*c,{box:d},c]}):k=new bl({top:s.height,children:[c,{box:d},3*c,{box:s}]}),e.caret&&(k.caret=e.caret),new zr(k,{classes:r,type:"ignore"})}}),de("overset","{:auto}{base:auto}",{createAtom:e=>{const t=qe(e.args[1]);return new mc(F(g({},e),{above:qe(e.args[0]),body:t,skipBoundary:!1,boxType:Od(t)}))},serialize:(e,t)=>Bs(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),de("underset","{:auto}{base:auto}",{createAtom:e=>{const t=qe(e.args[1]);return new mc(F(g({},e),{below:qe(e.args[0]),body:t,skipBoundary:!1,boxType:Od(t)}))},serialize:(e,t)=>Bs(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),de("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=qe(e.args[2]);return new mc(F(g({},e),{above:qe(e.args[0]),below:qe(e.args[1]),body:t,skipBoundary:!1,boxType:Od(t)}))},serialize:(e,t)=>Bs(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),de(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:e=>new mc(F(g({},e),{body:qe(e.args[2]),above:qe(e.args[1]),below:qe(e.args[0]),skipBoundary:!1,boxType:e.command==="\\stackrel"?"rel":"bin"})),serialize:(e,t)=>Bs(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),de("smash","[:string]{:auto}",{createAtom:e=>{var t,r,i,s;return new Ou(F(g({},e),{body:qe(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}))}}),de(["vphantom"],"{:auto}",{createAtom:e=>new Ou(F(g({},e),{body:qe(e.args[0]),isInvisible:!0,smashWidth:!0}))}),de(["hphantom"],"{:auto}",{createAtom:e=>new Ou(F(g({},e),{body:qe(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),de(["phantom"],"{:auto}",{createAtom:e=>new Ou(F(g({},e),{body:qe(e.args[0]),isInvisible:!0}))}),de("not","{:math}",{createAtom:e=>{const t=qe(e.args[0]);return t.length===0?new Ur(F(g({},e),{type:"mrel",value:"\uE020"})):new Ur(F(g({},e),{body:[new Jc(F(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":Od(qe(e.args[0])),s=Ur.createBox(t,e.body,{type:i});return e.caret&&(s.caret=e.caret),e.bind(t,s)}}),de(["ne","neq"],"",{createAtom:e=>new Ur(F(g({},e),{type:"mrel",body:[new Jc(F(g({},e),{body:"\uE020",align:"right",boxType:"rel"})),new Ur(F(g({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),de("rlap","{:auto}",{createAtom:e=>new Jc(F(g({},e),{body:qe(e.args[0]),align:"right"}))}),de("llap","{:auto}",{createAtom:e=>new Jc(F(g({},e),{body:qe(e.args[0]),align:"left"}))}),de("mathrlap","{:math}",{createAtom:e=>new Jc(F(g({},e),{body:qe(e.args[0]),align:"left"}))}),de("mathllap","{:math}",{createAtom:e=>new Jc(F(g({},e),{body:qe(e.args[0]),align:"left"}))}),de("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new fc(F(g({},e),{body:qe(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))}}),de("raise","{:value}{:auto}",{createAtom:e=>{var t;return new fc(F(g({},e),{body:qe(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))}}),de("lower","{:value}{:auto}",{createAtom:e=>{var t;return new fc(F(g({},e),{body:qe(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))}}),q("0123456789/@.?!"),Se(65,90),Se(97,122),q([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),q([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),q([["\\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]]),q([["\\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"),q([["\\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"]]),q([["\\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"]]),q([["\\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"),q([["+",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"),q([["\\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"),q([["\\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]]),q([["=",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"),q([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),q([["\\wp",8472],["\\aleph",8501]]),q([["\\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"),q([["\\ ",160],["~",160]],"space"),de(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new iA(e)}),de("space","",{createAtom:e=>new iA(e)}),q([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),q([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),q([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var ha="<mo>&#x2061;</mo>",Xa="<mo>&#8290;</mo>";function no(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,d,k,j,X,ce,Pe,nt,gt;let St=!1;t=t!=null?t:e.atoms.length;let Br="",En="",wr=e.atoms[e.index];const nn=(s=(i=wr.style)==null?void 0:i.variant)!=null?s:"",Mn=(d=(c=wr.style)==null?void 0:c.variantStyle)!=null?d:"";let An="";if(nn||Mn){const ra=Xe(wr.value,(k=wr.style)==null?void 0:k.variant,(j=wr.style)==null?void 0:j.variantStyle);if(ra!==wr.value)return e.index+=1,Br=`<mi${da(wr.id,r)}>${ra}</mi>`,fl(Br,e,r)||(e.mathML+=Br,e.lastType="mi"),!0;An=(X={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"}[Mn+nn])!=null?X:"",An=` mathvariant="${An}"`}const Si={"\\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(Si[wr.command]){e.index+=1;let ra=`<mi${da(wr.id,r)}${An}>${Si[wr.command]}</mi>`;return(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mtext"||e.lastType==="fence")&&(ra=Xa+ra),fl(ra,e,r)||(e.mathML+=ra,e.lastType="mi"),!0}if(wr.command==="\\operatorname")En=ju(wr.body),e.index+=1;else if(nn||Mn)for(;e.index<t&&(wr.type==="mord"||wr.type==="macro")&&!wr.isDigit()&&nn===((Pe=(ce=wr.style)==null?void 0:ce.variant)!=null?Pe:"")&&Mn===((gt=(nt=wr.style)==null?void 0:nt.variantStyle)!=null?gt:"");)En+=ju([wr]),e.index+=1,wr=e.atoms[e.index];else(wr.type==="mord"||wr.type==="macro")&&!wr.isDigit()&&(En+=ju([wr]),e.index+=1);if(En.length>0){St=!0,Br=`<mi${An}>${En}</mi>`;const ra=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)||((ra==="mi"||ra==="mn"||ra==="mtext"||ra==="fence")&&(Br=Xa+Br),e.mathML+=Br)}return St}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 d=Ro(s.superscript,r);t.lastType="";const k=Ro(s.subscript,r);if(t.lastType=c,!d&&!k)return!1;let j="";return d&&k?j=`<msubsup>${e}${k}${d}</msubsup>`:d?j=`<msup>${e}${d}</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 d=!1,k=0;const j=e.index;let X=-1,ce=j+1;for(;ce<t&&!d;)e.atoms[ce].type==="mopen"?k+=1:e.atoms[ce].type==="mclose"&&(k-=1),k===-1&&(d=!0,X=ce),ce+=1;d&&(s="<mrow>",s+=Hu(e.atoms[j],r),s+=Ro(e.atoms,r,j+1,X),s+=Hu(e.atoms[X],r),s+="</mrow>",e.index=X+1,(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mfrac"||e.lastType==="fence")&&(e.mathML+=Xa),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 d=e.atoms[e.index];if(!d)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[d.command]){e.index+=1;const j=`<mo${da(d.id,r)}>${k[d.command]}</mo>`;return fl(j,e,r)||(e.mathML+=j,e.lastType="mo"),!0}if(e.index<t&&(d.type==="mbin"||d.type==="mrel"))s+=tf(e.atoms[e.index],r),e.index+=1,c="mo";else if(e.index<t&&(d.type==="mop"||d.type==="operator"||d.type==="extensible-symbol")){if(d.subsupPlacement==="over-under"&&(d.superscript||d.subscript)){const j=Hu(d,r);return d.superscript&&d.subscript?(s+="<munderover>"+j,s+=Ro(d.subscript,r),s+=Ro(d.superscript,r),s+="</munderover>"):d.superscript?(s+="<mover>"+j,s+=Ro(d.superscript,r),s+="</mover>"):d.subscript&&(s+="<munder>"+j,s+=Ro(d.subscript,r),s+="</munder>"),e.mathML+=s,e.lastType="mo",e.index+=1,!0}{const j=e.atoms[e.index],X=j.value==="\\operatorname",ce=X?'<mi class="MathML-Unit"'+da(j.id,r)+">"+ju(j.value)+"</mi>":Hu(j,r);s+=ce,!X&&!/^<mo>(.*)<\/mo>$/.test(ce)?(s+=ha,c="applyfunction"):c=X?"mi":"mo"}(e.lastType==="mi"||e.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(s)&&(s=Xa+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 d=tf(s.atoms[s.index],t);s.lastType==="mn"&&d.length>0&&s.atoms[s.index].type==="genfrac"&&(d="<mo>&#x2064;</mo>"+d),s.atoms[s.index].type==="genfrac"?s.lastType="mfrac":s.lastType="",s.index+=1,fl(d,s,t)?c+=1:d.length>0&&(s.mathML+=d,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 no(e);if(!Array.isArray(e)&&typeof e.body=="string")return no(e.body);let t="";for(const r of e)typeof r.value=="string"&&(t+=r.value);return no(t)}function tf(e,t){var r,i,s,c,d,k,j,X,ce,Pe,nt,gt,St,Br,En,wr,nn,Mn,An,Si,ra,Qi;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="",ve="",Ke,Ze,We,at,At,ft;const{command:Kt}=e;if(e.command==="\\error")return`<merror${da(e.id,t)}>${Ro(e.body,t)}</merror>`;const br={"\\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>"+(br[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+=">",Ze=0;Ze<e.array.length;Ze++){for(Q+="<mtr>",Ke=0;Ke<e.array[Ze].length;Ke++)Q+="<mtd>"+Ro(e.array[Ze][Ke],t)+"</mtd>";Q+="</mtr>"}Q+="</mtable>",(e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(e.rightDelim&&e.rightDelim!=="."&&(Q+="<mo>"+(br[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)+">"+(br[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)+">"+(br[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 ir=e,gr=ir.leftDelim;Q="<mrow>",gr&&gr!=="."&&(Q+=`<mo${da(e.id,t)}>${(r=br[gr])!=null?r:gr}</mo>`),e.body&&(Q+=Ro(e.body,t));const Xr=ir.matchingRightDelim();Xr&&Xr!=="."&&(Q+=`<mo${da(e.id,t)}>${(i=br[Xr])!=null?i:Xr}</mo>`),Q+="</mrow>";break;case"sizeddelim":case"delim":Q+=`<mo${da(e.id,t)}>${br[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)?ft=e.body:At&&At.length>0?(ft=e.body,(c=(s=e.body)==null?void 0:s[0])!=null&&c.below?(at=e.body[0].below,ft=e.body[0].body):((k=(d=e.body)==null?void 0:d[0])==null?void 0:k.type)==="first"&&((X=(j=e.body)==null?void 0:j[1])!=null&&X.below)&&(at=e.body[1].below,ft=e.body[1].body)):at&&at.length>0&&(ft=e.body,(Pe=(ce=e.body)==null?void 0:ce[0])!=null&&Pe.above?(At=e.body[0].above,ft=e.body[0].body):((gt=(nt=e.body)==null?void 0:nt[0])==null?void 0:gt.type)==="first"&&((Br=(St=e.body)==null?void 0:St[1])!=null&&Br.above)&&(At=e.body[1].overscript,ft=e.body[1].body)),(e.svgAbove||At)&&(e.svgBelow||at)?(Q+=`<munderover ${da(e.id,t)}>`,Q+=(En=h[e.svgBody])!=null?En:Ro(ft,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)}>`+((Mn=h[e.svgBody])!=null?Mn:Ro(ft,t)),Q+=(An=h[e.svgAbove])!=null?An:Ro(At,t),Q+="</mover>"):(e.svgBelow||at)&&(Q+=`<munder ${da(e.id,t)}>`+((Si=h[e.svgBody])!=null?Si:Ro(ft,t)),Q+=(ra=h[e.svgBelow])!=null?ra: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)}>${no(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="'+((Qi=B[Kt])!=null?Qi: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+=ve+Sr,ve=" ");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"},Of={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))for(const r of e)r.type!=="first"&&(t+=1);return t===1}function a0(e){if(_(e)){for(const t of e)if(t.type!=="first"&&t.id)return t.id.toString()}return""}function fh(e){let t="";if(_(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 io(e,t){var r,i,s,c,d;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 X="";if(_(t)){let ce=!1,Pe=!1;for(let nt=0;nt<t.length;nt++)t[nt].type!=="first"&&(t[nt].mode!=="text"&&(Pe=!1),nt<t.length-2&&t[nt].type==="mopen"&&t[nt+2].type==="mclose"&&t[nt+1].type==="mord"?(X+=" of ",X+=j(io(e,t[nt+1])),nt+=2):t[nt].mode==="text"?Pe?X+=(r=t[nt].value)!=null?r:" ":(Pe=!0,X+=io("text",t[nt])):t[nt].isDigit()?ce?X+=t[nt].asDigit():(ce=!0,X+=io(e,t[nt])):(ce=!1,X+=io(e,t[nt])))}else if(t.mode==="text")t.id&&e==="math"&&(X+='<mark name="'+t.id.toString()+'"/>'),X+=t.value;else{t.id&&e==="math"&&(X+='<mark name="'+t.id.toString()+'"/>');let ce="",Pe="",nt="",gt=!1;const{command:St}=t;switch(St){case"\\vec":return"vector "+io(e,t.body);case"\\acute":return io(e,t.body)+" acute";case"\\grave":return io(e,t.body)+" grave";case"\\dot":return"dot over"+io(e,t.body);case"\\ddot":return"double dot over"+io(e,t.body);case"\\mathring":return"ring over"+io(e,t.body);case"\\tilde":case"\\widetilde":return"tilde over"+io(e,t.body);case"\\bar":return io(e,t.body)+" bar";case"\\breve":return io(e,t.body)+" breve";case"\\check":case"\\widecheck":return"check over "+io(e,t.body);case"\\hat":case"\\widehat":return"hat over"+io(e,t.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+io(e,t.body);case"\\underarc":case"\\underparen":return"arc under "+io(e,t.body)}switch(t.type){case"prompt":const Br=t.body.length>1?'start input . <break time="500ms"/> '+io(e,t.body)+'. <break time="500ms"/> end input':"blank";X+=' <break time="300ms"/> '+Br+'. <break time="700ms"/>'+((i=t.correctness)!=null?i:"")+' . <break time="700ms"/> ';break;case"array":const En=t.array,wr=t.environmentName;if(Object.keys(Of).includes(wr)){X+=` begin ${Of[wr]} `;for(let An=0;An<En.length;An++){An>0&&(X+=","),X+=` row ${An+1} `;for(let Si=0;Si<En[An].length;Si++)Si>0&&(X+=","),X+=` column ${Si+1}: `,X+=io("math",En[An][Si])}X+=` end ${Of[wr]} `}break;case"group":St==="\\ne"?X+=" not equal ":(St==="\\not"&&(X+=" not "),X+=io("math",t.body));break;case"root":X+=io("math",t.body);break;case"genfrac":if(ce=io("math",t.above),Pe=io("math",t.below),Mc(t.above)&&Mc(t.below)){const Si={"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)];Si?X=Si:X+=ce+" over "+Pe}else X+=' the fraction <break time="150ms"/>'+ce+' over <break time="150ms"/>'+Pe+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(nt=io("math",t.body),t.hasEmptyBranch("above"))X+=Mc(t.body)?" the square root of "+nt+" , ":' the square root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End square root';else{let An=io("math",t.above);An=An.trim();const Si=An.replace(/<mark([^/]*)\/>/g,"");Si==="3"?X+=' the cube root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End cube root':Si==="n"?X+=' the nth root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End root':X+=' the root with index: <break time="200ms"/>'+An+', of <break time="200ms"/>'+nt+'. <break time="200ms"/> End root'}break;case"leftright":{const An=t;X+=(s=An.leftDelim?zu[An.leftDelim]:void 0)!=null?s:An.leftDelim,X+=io("math",t.body),X+=(c=An.rightDelim?zu[An.rightDelim]:void 0)!=null?c:An.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const nn=St.replace(/^\\/g,""),Mn=tt()[nn];Mn&&(Mn!=null&&Mn.expand?X+=io("math",t.body):X+=`${nn} `);break;case"placeholder":X+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(St==="\\mathbin"||St==="\\mathrel"||St==="\\mathopen"||St==="\\mathclose"||St==="\\mathpunct"||St==="\\mathord"||St==="\\mathinner"){X=io(e,t.body);break}let An=t.isDigit()?t.asDigit():t.value,Si=t.command;if((t.type==="delim"||t.type==="sizeddelim")&&(Si=t.value,An=Si),e==="text")X+=An;else{if(t.type==="mbin"&&(X+='<break time="150ms"/>'),An){const ra=zu[An]||(Si?zu[Si.trim()]:"");if(ra)X+=" "+ra;else{const Qi=Si?i0(Si.trim()):"";X+=Qi||k(An)}}else X+=io("math",t.body);t.type==="mbin"&&(X+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(t.value!=="\u200B"){const An=t.command;if(An==="\\sum")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Si=io("math",t.superscript);Si=Si.trim();let ra=io("math",t.subscript);ra=ra.trim(),X+=' the summation from <break time="200ms"/>'+ra+'<break time="200ms"/> to <break time="200ms"/>'+Si+'<break time="200ms"/> of <break time="150ms"/>',gt=!0}else if(t.hasEmptyBranch("subscript"))X+=" the summation of";else{let Si=io("math",t.subscript);Si=Si.trim(),X+=' the summation from <break time="200ms"/>'+Si+'<break time="200ms"/> of <break time="150ms"/>',gt=!0}else if(An==="\\prod")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Si=io("math",t.superscript);Si=Si.trim();let ra=io("math",t.subscript);ra=ra.trim(),X+=' the product from <break time="200ms"/>'+ra+'<break time="200ms"/> to <break time="200ms"/>'+Si+'<break time="200ms"/> of <break time="150ms"/>',gt=!0}else if(t.hasEmptyBranch("subscript"))X+=" the product of ";else{let Si=io("math",t.subscript);Si=Si.trim(),X+=' the product from <break time="200ms"/>'+Si+'<break time="200ms"/> of <break time="150ms"/>',gt=!0}else if(An==="\\int")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Si=io("math",t.superscript);Si=Si.trim();let ra=io("math",t.subscript);ra=ra.trim(),X+=' the integral from <break time="200ms"/>'+j(ra)+'<break time="200ms"/> to <break time="200ms"/>'+j(Si)+' <break time="200ms"/> of ',gt=!0}else X+=' the integral of <break time="200ms"/> ';else if(typeof t.value=="string"){const Si=(d=zu[t.value])!=null?d:t.command?zu[t.command]:void 0;X+=Si||" "+t.value}else t.command&&(t.command==="\\mathop"?X+=io("math",t.body):t.command==="\\operatorname"?X+=Rp(t.body):X+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":nt=io("math",t.body),X+=" crossed out "+nt+". End crossed out.";break;case"space":case"spacing":break}if(!gt&&!t.hasEmptyBranch("superscript")){let Br=io(e,t.superscript);Br=Br.trim();const En=Br.replace(/<[^>]*>/g,"");if(Mc(t.superscript)){if(e==="math"){const wr=a0(t.superscript);wr&&(X+='<mark name="'+wr+'"/>')}En==="\u2032"?X+=" prime ":En==="2"?X+=" squared ":En==="3"?X+=" cubed ":Number.isNaN(Number.parseInt(En))?X+=" to the "+Br+"; ":X+=' to the <say-as interpret-as="ordinal">'+En+"</say-as> power; "}else Number.isNaN(Number.parseInt(En))?X+=" raised to the "+Br+"; ":X+=' raised to the <say-as interpret-as="ordinal">'+En+"</say-as> power; "}if(!gt&&!t.hasEmptyBranch("subscript")){let Br=io("math",t.subscript);Br=Br.trim(),X+=Mc(t.subscript)?" sub "+Br:" subscript "+Br+". End subscript. "}}return X}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=F(g({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=F(g({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=F(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 d="";try{d=c.toSpeech(s)}catch(k){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",k)}return d}return""}let i=io("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"&&Y()==="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,d,k,j,X,ce,Pe,nt,gt;if(!e)return"";if(_(e)){if(e.length===0)return"";if(e[0].mode==="latex")return e.map(hs).join("");if(e[0].mode==="text"){let Mn=0,An="";for(;((t=e[Mn])==null?void 0:t.mode)==="text";)An+=e[Mn].body?hs(e[Mn].body):e[Mn].value,Mn++;return`"${An}" ${hs(e.slice(Mn))}`}let wr=0;const nn=[];for(;e[wr]&&e[wr].mode==="math";){let Mn="";for(;e[wr]&&e[wr].type==="mord"&&/\d/.test(e[wr].value);)Mn+=e[wr++].value;Mn?nn.push(Mn):nn.push(hs(e[wr++]))}return nn.push(hs(e.slice(wr))),wm(nn)}if(e.mode==="text")return`"${e.value}"`;let St="";const{command:Br}=e;let En;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];St=`${wr!=null?wr:""} ${hs(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map(Qi=>Qi.value).join("");case"group":case"root":St=(r=bu[Br])!=null?r:hs(e.body);break;case"genfrac":{const Qi=e;(Qi.leftDelim||Qi.rightDelim)&&(St=Qi.leftDelim==="."||!Qi.leftDelim?"{:":Qi.leftDelim),Qi.hasBarLine?(St+="(",St+=hs(Qi.above),St+=")/(",St+=hs(Qi.below),St+=")"):(St+="("+hs(Qi.above)+"),",St+="("+hs(Qi.below)+")"),(Qi.leftDelim||Qi.rightDelim)&&(St+=Qi.rightDelim==="."||!Qi.rightDelim?"{:":Qi.rightDelim)}break;case"surd":St+=e.hasEmptyBranch("above")?"sqrt("+hs(e.body)+")":"root("+hs(e.above)+")("+hs(e.body)+")";break;case"latex":St=e.value;break;case"leftright":{const Qi=e,h=Qi.leftDelim;St+=h==="."||!h?"{:":h,St+=hs(Qi.body);const B=Qi.matchingRightDelim();St+=B==="."||!B?":}":B}break;case"sizeddelim":case"delim":St=e.value;break;case"overlap":break;case"overunder":break;case"mord":St=(s=(i=bu[Br])!=null?i:Br)!=null?s:typeof e.value=="string"?e.value:"",St.startsWith("\\")&&(St+=" "),En=Br?Br.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,En?St=String.fromCodePoint(Number.parseInt("0x"+En[1])):St.length>0&&St.startsWith("\\")&&(St=typeof e.value=="string"?e.value.charAt(0):e.command),St=o0(St,e.style);break;case"mbin":case"mrel":case"minner":St=(d=(c=bu[Br])!=null?c:rf[Br])!=null?d:e.value;break;case"mopen":case"mclose":St=e.value;break;case"mpunct":St=(k=rf[Br])!=null?k:Br;break;case"mop":case"operator":case"extensible-symbol":e.value!=="\u200B"&&(rf[Br]?St=rf[Br]:St=Br==="\\operatorname"?hs(e.body):(j=e.value)!=null?j:Br,St+=" ");break;case"array":const nn=e.array,Mn=e.environmentName,An=(X={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Mn])!=null?X:["(",")"],Si=[];for(const Qi of nn){const h=[];for(const B of Qi)h.push(An[0]+hs(B)+An[1]);Si.push(h.join(","))}const ra=(ce={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Mn])!=null?ce:["(",")"];St=ra[0]+Si.join(",")+ra[1];break;case"box":break;case"spacing":St=(Pe=bu[Br])!=null?Pe:" ";break;case"enclose":St="("+hs(e.body)+")";break;case"space":St=" ";break;case"subsup":St="";break;case"macro":St=(gt=(nt=bu[Br])!=null?nt:rf[Br])!=null?gt:hs(e.body);break}if(!e.hasEmptyBranch("subscript")){St+="_";const wr=hs(e.subscript);St+=wr.length!==1?`(${wr})`:wr}if(!e.hasEmptyBranch("superscript")){St+="^";const wr=hs(e.superscript);St+=wr.length!==1?`(${wr})`:wr}return St}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 Eo({from:F(g({},E0()),{renderPlaceholder:()=>new zr(160,{maxFontSize:1}),letterShapeStyle:(i=t==null?void 0:t.letterShapeStyle)!=null?i:"tex"}),mathstyle:t.mathstyle}),d=new Ur({mode:"math",type:"root",body:hc(e,{context:s,parseMode:"math",mathstyle:t.mathstyle})}).render(s);return d?(mf(sl(d,s)),Wf(d,{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),d=Math.atan2(i,r)*180/Math.PI,k={L:t,C:s,H:d};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),d=Math.pow(t*1.000000054672411-.0894841820949657*r-1.2914855378640917*i,3),k=4.076741661347994*s-3.307711590408193*c+.230969928729428*d,j=-1.2684380040921763*s+2.6097574006633715*c-.3413193963102197*d,X=-.004196086541837188*s-.7034186144594493*c+1.7076147009309444*d,ce=Pe=>{const nt=Math.abs(Pe);return nt<=.0031308?Pe*12.92:(Math.sign(Pe)||1)*(1.055*Math.pow(nt,1/2.4)-.055)};return[ce(k),ce(j),ce(X)]}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,d=e.L,k=(c+d)/2;s.C=k;const j=.36/Math.pow(2,12);for(;d-c>j;)k=(c+d)/2,s.C=k,[t,r,i]=$u(rc(s)),Zu([t,r,i])?c=k:d=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,d=.62,k=.65,j=.022,X=1.414,ce=.1,Pe=5e-4,nt=1.14,gt=.027,St=1.14,Br=.027;function En(Qi){return Qi>=j?Qi:Qi+wh(j-Qi,X)}function wr(Qi){return(Qi<0?-1:1)*Math.pow(Math.abs(Qi),2.4)}const nn=En(wr(i.r/255)*.2126729+wr(i.g/255)*.7151522+wr(i.b/255)*.072175),Mn=En(wr(r.r/255)*.2126729+wr(r.g/255)*.7151522+wr(r.b/255)*.072175);let An,Si,ra;return Math.abs(Mn-nn)<Pe?Si=0:Mn>nn?(An=wh(Mn,s)-wh(nn,c),Si=An*nt):(An=wh(Mn,k)-wh(nn,d),Si=An*St),Math.abs(Si)<ce?ra=0:Si>0?ra=Si-Br:ra=Si+gt,ra*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(le))t.push({class:(mh(Pf(le[r]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${le[r]} "></span>`,ariaLabel:()=>{var i;return(i=J(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(me))t.push({class:(Pf(me[r])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${me[r]} "></span>`,ariaLabel:()=>{var i;return(i=J(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:()=>J("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:()=>J("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>e.executeCommand("addRowBefore"),visible:()=>Wu(e)},{label:()=>J("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>e.executeCommand("addRowAfter"),visible:()=>Wu(e)},{label:()=>J("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:()=>J("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>e.executeCommand("addColumnAfter"),visible:()=>Wu(e)},{type:"divider"},{label:()=>J("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>e.executeCommand("removeRow"),visible:()=>Wu(e)},{label:()=>J("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>e.executeCommand("removeColumn"),visible:()=>Wu(e)},{type:"divider"},{label:()=>J("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:()=>J("menu.insert matrix"),id:"insert-matrix",visible:()=>e.isSelectionEditable,submenu:Tf(e),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>J("menu.mode"),id:"mode",visible:()=>e.isSelectionEditable&&e.model.selectionIsCollapsed,submenu:[{label:()=>J("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Hh(e,"accept-all"),e.executeCommand(["switchMode","math"])},checked:()=>e.model.mode==="math"},{label:()=>J("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Hh(e,"accept-all"),e.executeCommand(["switchMode","text"])},checked:()=>e.model.mode==="text"},{label:()=>J("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>e.executeCommand(["switchMode","latex"]),checked:()=>e.model.mode==="latex"}]},{type:"divider"},{label:()=>J("menu.font-style"),id:"variant",visible:()=>e.isSelectionEditable,submenu:Vu(e),submenuClass:"variant-submenu"},{label:()=>J("menu.color"),id:"color",visible:()=>e.isSelectionEditable,submenu:vc(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>J("menu.background-color"),id:"background-color",visible:()=>e.isSelectionEditable,submenu:pl(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>J("menu.accent"),id:"accent",visible:()=>e.isSelectionEditable,submenu:of(e),submenuClass:"variant-submenu"},{label:()=>J("menu.decoration"),id:"decoration",visible:()=>e.isSelectionEditable&&ps(e).length>0,submenu:qs(e),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>J("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:()=>J("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?J("menu.solve-for",Ul(r)):J("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 d;return(d=c.simplify().latex)!=null?d:""});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:()=>J("menu.cut"),onMenuSelect:()=>e.executeCommand("cutToClipboard"),visible:()=>!e.options.readOnly&&e.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>J("menu.copy"),id:"copy",submenu:[{label:()=>J("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Ls.copyToClipboard(e,"latex"),keyboardShortcut:"meta+C"},{label:()=>J("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Ls.copyToClipboard(e,"ascii-math")},{label:()=>J("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Ls.copyToClipboard(e,"math-ml")}]},{label:()=>J("menu.paste"),id:"paste",onMenuSelect:()=>e.executeCommand("pasteFromClipboard"),visible:()=>e.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>J("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=J(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=J(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 d(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:nt}=c.at(c.position);nt!=null&&nt.parent?Pe=nt: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=d(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 X=hl(j);return O()&&r.withHighlighting?(NA().readAloudMathfield=e,jh(e,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(e.field,X)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(X),!1}function Lg(e){var t,r;if(!O()){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,d)=>{if(c)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${c}`);else if(d!=null&&d.AudioStream){const k=new Uint8Array(d.AudioStream),j=new Blob([k.buffer],{type:"audio/mpeg"}),X=URL.createObjectURL(j);new Audio(X).play().catch(Pe=>console.log(Pe))}else console.log("polly.synthesizeSpeech():",d)})}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: ")+Ng(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 Ng(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 Og=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 d=Jl(c);c.direction==="backward"?[this._position,this._anchor]=d:[this._anchor,this._position]=d;const k=this.at(d[0]+1),j=this.at(d[1]),X=Ur.commonAncestor(k,j);(X==null?void 0:X.type)==="array"&&k.parent===X&&j.parent===X?this._selection={ranges:[d],direction:c.direction}:this._selection={ranges:[d],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 Ol&&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((X,ce)=>[...X,...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 d=Math.min(s,c)+1,k=Math.max(s,c);if(!i.includeChildren&&d===1&&k===this.lastOffset)return[this.root];let j=[];for(let X=d;X<=k;X++){const ce=this.atoms[X];Ag(this,ce,d,k)&&j.push(ce)}return i.includeChildren||(j=j.filter(X=>{let ce=!1,{parent:Pe}=X;for(;Pe&&!ce;)ce=Ag(this,Pe,d,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 d=window.MathfieldElement.computeEngine.parse(c);return JSON.stringify(d.json)}catch(d){return JSON.stringify(["Error",`'${d.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 Ao(i.map(d=>Ur.serialize(this.getAtoms(d),c)))}return i.map(c=>this.getAtoms(c).map(d=>this.atomToString(d,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 d=this.root.changeCounter;t();const k=this.root.changeCounter!==d,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",F(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 d=e.offsetOf(t.lastChild);if(d>=r&&d<=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),d=e.offsetOf(t.lastChild);return c>=i&&c<=s&&d>=c&&d<=s}function d0(e,t,r,i){var s,c,d,k,j,X;const ce=r.parent;if(ce&&r instanceof Ys){const Pe=!i&&t==="forward"||i==="body"&&t==="backward";let nt=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),nt--):r.leftDelim!=="?"&&r.leftDelim!=="."?(r.rightDelim=".",r.isDirty=!0):(ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),nt--),e.position=nt,!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",nt=Pe==="above"?"below":"above";if(ce&&(t==="forward"&&i===Pe||t==="backward"&&i===nt)){const gt=r.removeBranch(Pe),St=r.removeBranch(nt);return ce.addChildrenAfter([...gt,...St],r),ce.removeChild(r),e.position=e.offsetOf(gt.length>0?gt[gt.length-1]:St[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"?(d=(s=r.superscript)==null?void 0:s[0])!=null?d:(c=r.subscript)==null?void 0:c[0]:(X=(k=r.subscript)==null?void 0:k[0].lastSibling)!=null?X:(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 d=i[0];d.type==="first"&&(d=d.rightSibling);const k=i[i.length-1];if(d===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,X=i[0].parentBranch==="below"?"above":"below",ce=e.offsetOf(j.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:r},()=>{var Pe,nt;const gt=j.removeBranch(X);if(gt.length===1&&gt[0].type==="placeholder")(nt=j.parent)==null||nt.removeChild(j),e.position=Math.max(0,ce);else{const St=j.parent.addChildrenAfter(gt,j);(Pe=j.parent)==null||Pe.removeChild(j),e.position=e.offsetOf(St)}})}}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="${J("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="${J("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(F(g({},_i()),{macros:tt(),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 d=(i=(r=t.value)!=null?r:this.element.textContent)!=null?i:"";d=d.trim();const k=sn(this.options),j=new Ur({type:"root",mode:k,body:hc(d,{context:this.context})});this.model=new Og(this,k,j),this.undoManager=new Co(this.model);const X=[];if(X.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>"),X.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),X.push("<span part=content class=ML__content>"),X.push(_g(this)),X.push("</span>"),window.mathVirtualKeyboard&&(X.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">`),X.push(Fm),X.push("</div>")),X.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),X.push(Mm),X.push("</div>"),X.push("</span>"),X.push("<span class=ML__sr-only>"),X.push("<span role=status aria-live=assertive aria-atomic=true></span>"),X.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(X.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=ne.subscribe(()=>ne.update(this.element)),ne.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 z(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 nt=ce.getBoundingClientRect();this._menu.modifiers=LA(Pe),this._menu.show({target:ce,location:{x:nt.left,y:nt.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&&!ne.locale.startsWith(Ec.locale)&&sA(ne.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,Op())}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,d;return(d=(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?d:ee(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 X=this.queryStyle({[j]:t[j]});if(X==="none")return"none";if(X==="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 d=c.length;if(d===0)return"none";let k=0;for(const j of c){if(j.type==="first"){d-=1;continue}j.style[i]===s&&(k+=1)}return k===0?"none":k===d?"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 vi(this.options,e)}getOption(e){return vi(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"&&Np(this,e);break;case"pointerdown":this.userSelect!=="none"&&(Np(this,e),e.shiftKey===!1&&(yield vr(e,this.element.querySelector("[part=container]"),this._menu))&&ec.stop());break;case"contextmenu":this.userSelect!=="none"&&e.shiftKey===!1&&(yield vr(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;ne.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 d of i)d.right>s&&(s=d.right),d.top<c&&(c=d.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:d}=this;d.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});d.collapseSelection("forward");const X=d.at(d.position);d.position=d.offsetOf(X.parent.addChildrenAfter(j,X)),k=!0}if(this.model.mode=e,e==="latex"){let j=d.selectionIsCollapsed;Hh(this,"accept");let X,ce=d.at(d.position);if(j)X="\\";else{const nt=Jl(d.selection);X=this.model.getValue(nt,"latex");const gt=this.model.extractAtoms(nt);gt.length===1&&gt[0].type==="placeholder"&&(X=t,j=!0),ce=d.at(nt[0])}const Pe=new _f(X);ce.parent.addChildAfter(Pe,ce),j?d.position=d.offsetOf(Pe.lastChild):d.setSelection(d.offsetOf(Pe.firstChild),d.offsetOf(Pe.lastChild))}else z0(d).forEach(j=>{j.isError=!1});if(r){const j=hc(r,{context:this.context,parseMode:c});d.collapseSelection("forward");const X=d.at(d.position);d.position=d.offsetOf(X.parent.addChildrenAfter(j,X)),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),d=(i=s.operation)!=null?i:"set";if(s.range===void 0&&this.model.selectionIsCollapsed){if(d==="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:d});else Wo(this.model,s.range,c,{operation:d})}),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,F(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",F(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,Op();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){_o(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(!O())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"]};NA().readAloudElement=e,i.synthesizeSpeech(s,(c,d)=>{if(c){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${c}`);return}if(!(d!=null&&d.AudioStream)){console.log("polly.synthesizeSpeech():",d);return}const k=new TextDecoder("utf-8").decode(new Uint8Array(d.AudioStream));NA().readAloudMarks=k.split(`
`).map(j=>j?JSON.parse(j):{}),NA().readAloudTokens=[];for(const j of NA().readAloudMarks)j.value&&NA().readAloudTokens.push(j.value);NA().readAloudCurrentMark="",s.OutputFormat="mp3",s.SpeechMarkTypes=[],i.synthesizeSpeech(s,(j,X)=>{if(j){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${j}`);return}if(!(X!=null&&X.AudioStream))return;const ce=new Uint8Array(X.AudioStream),Pe=new Blob([ce.buffer],{type:"audio/mpeg"}),nt=URL.createObjectURL(Pe),gt=NA();gt.readAloudAudio?gt.readAloudAudio.pause():(gt.readAloudAudio=new Audio,gt.readAloudAudio.addEventListener("ended",()=>{const St=gt.readAloudMathfield;gt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),St?(jh(St),gt.readAloudElement=null,gt.readAloudMathfield=null,gt.readAloudTokens=[],gt.readAloudMarks=[],gt.readAloudCurrentMark=""):jp(gt.readAloudElement)}),gt.readAloudAudio.addEventListener("timeupdate",()=>{let St="";const Br=gt.readAloudAudio.currentTime*1e3+100;for(const En of gt.readAloudMarks)En.time<Br&&(St=En.value);gt.readAloudCurrentMark!==St&&(gt.readAloudCurrentToken=St,St&&St===gt.readAloudFinalToken?gt.readAloudAudio.pause():(gt.readAloudCurrentMark=St,sp(gt.readAloudElement,gt.readAloudCurrentMark)))})),gt.readAloudAudio.src=nt,gt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),gt.readAloudAudio.play()})})}O()||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 ne.locale}static set locale(t){t==="auto"&&(t=navigator.language.slice(0,5)),ne.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 ne.strings}static set strings(t){ne.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(),d=yield this.audioContext.decodeAudioData(c);this.audioBuffers[t]=d}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?vi(this._mathfield.options,t):Qo.has(this)?g({},vi(g(g({},_i()),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?vi(this._mathfield.options,t):Qo.has(this)?vi(g(g({},_i()),Rn(Qo.get(this).options)),t):null}reflectAttributes(){const t=_i(),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,F(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 d,k,j;if(Fh(t)?([d,k]=t.ranges[0],j=r):Yf(t)?([d,k]=t,j=r):ld(t)&&ld(r)?(d=t,k=r,j=i):(d=0,k=-1,j=t),(j===void 0||j==="latex")&&d===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),d=this.shadowRoot,k=c.userSelect!=="none";if(k)d.host.addEventListener("pointerdown",this,!0);else{const ce=d.querySelector("span");ce.style.pointerEvents="none"}d.host.addEventListener("focus",this,!0),d.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=d.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,d.appendChild(ce)}let X="";if(this.hasAttribute("value")?X=this.getAttribute("value"):X=(t=j==null?void 0:j.assignedNodes().map(ce=>ce.nodeType===3?ce.textContent:"").join("").trim())!=null?t:"",this._mathfield=new Pg(d.querySelector(":host > span"),F(g({},(i=(r=Qo.get(this))==null?void 0:r.options)!=null?i:zp(this)),{eventSink:this,value:X})),!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),nt=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)}),nt&&(this.menuItems=nt)}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=vi(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:F(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,F(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,F(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,F(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(O()&&!((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 d=t[i];if(s<=0&&t.slice(i,i+c)===e)return i;d==="\\"?i++:d==="{"?s++:d==="}"&&s--,i++}return-1}function lp(e,t,r,i,s="latex"){const c=[];for(const d of e)if(d.type==="text"){const k=d.data;let j=!0,X=0,ce;ce=k.indexOf(t),ce!==-1&&(X=ce,X>0&&c.push({type:"text",data:k.slice(0,X)}),j=!1);let Pe=!1;for(;!Pe;){if(j){if(ce=k.indexOf(t,X),ce===-1){Pe=!0;break}X!==ce&&c.push({type:"text",data:k.slice(X,ce)}),X=ce}else{if(ce=fg(r,k,X+t.length),ce===-1){Pe=!0;break}let nt=k.slice(X+t.length,ce);s==="ascii-math"&&([,nt]=L0(nt,{format:"ascii-math"})),c.push({type:"math",data:nt,rawData:k.slice(X,ce+r.length),mathstyle:i}),X=ce+r.length}j=!j}X<k.length&&c.push({type:"text",data:k.slice(X)})}else c.push(d);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),d=(s=r.renderAccessibleContent)!=null?s:"";if(c&&/\b(mathml|speakable-text)\b/i.test(d)){const k=document.createElement("span");if(/\bmathml\b/i.test(d)&&r.renderToMathML&&k.append(i1(e,r)),/\bspeakable-text\b/i.test(d)&&r.renderToSpeakableText){const j=document.createElement("span");j.setAttribute("translate","no");const X=r.renderToSpeakableText(e);j.innerHTML=window.MathfieldElement.createHTML(X),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 d=p0(e,"",t,!0);d&&c.appendChild(d)}else{if(!e.trim())return null;const d=cp(e,(i=t.TeX)==null?void 0:i.delimiters,(s=t.asciiMath)==null?void 0:s.delimiters);if(d.length===1&&d[0].type==="text")return null;c=document.createDocumentFragment();for(const k of d)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,d,k,j,X,ce,Pe,nt,gt,St,Br,En,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 An=p0(nn,"",t,!0);An&&e.append(An);return}const Mn=cp(nn,(s=t.TeX)==null?void 0:s.delimiters,(c=t.asciiMath)==null?void 0:c.delimiters);if(Mn.length===1&&Mn[0].type==="math"){e.textContent="";const An=p0(Mn[0].data,Mn[0].mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);An&&e.append(An);return}if(Mn.length===1&&Mn[0].type==="text")return}for(let nn=e.childNodes.length-1;nn>=0;nn--){const Mn=e.childNodes[nn];if(Mn.nodeType===3){const An=o1((d=Mn.textContent)!=null?d:"",t);An&&(nn+=An.childNodes.length-1,Mn.replaceWith(An))}else if(Mn.nodeType===1){const An=Mn,Si=Mn.nodeName.toLowerCase();if(Si==="script"){const ra=Mn;let Qi;if((k=t.processScriptTypePattern)!=null&&k.test(ra.type))Qi=(j=ra.textContent)!=null?j:"";else if((X=t.processMathJSONScriptTypePattern)!=null&&X.test(ra.type))try{Qi=(Pe=t.serializeToLatex)==null?void 0:Pe.call(t,JSON.parse((ce=ra.textContent)!=null?ce:""))}catch(h){console.error(h)}if(Qi){let h="textstyle";for(const Q of ra.type.split(";")){const[ve,Ke]=Q.toLowerCase().split("=");ve.trim()==="mode"&&(h=Ke.trim()==="display"?"displaystyle":"textstyle")}const B=p0(Qi,h,t,!0);B&&ra.parentNode.replaceChild(B,ra)}}else if(((gt=(nt=t.processClassPattern)==null?void 0:nt.test(An.className))!=null?gt:!1)||!((Br=(St=t.skipTags)==null?void 0:St.includes(Si))!=null&&Br||(wr=(En=t.ignoreClassPattern)==null?void 0:En.test(An.className))!=null&&wr))if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const Qi=e.textContent;e.textContent="";const h=p0(Qi!=null?Qi:"","displaystyle",t,!0);h&&e.append(h)}else Hg(An,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 d=g(g({},s1),t);d.ignoreClassPattern=new RegExp((r=d.ignoreClass)!=null?r:""),d.processClassPattern=new RegExp((i=d.processClass)!=null?i:""),d.processScriptTypePattern=new RegExp((s=d.processScriptType)!=null?s:""),d.processMathJSONScriptTypePattern=new RegExp((c=d.processMathJSONScriptType)!=null?c:""),fm(),ud("core"),Hg(e,d)}catch(d){d instanceof Error?console.error("renderMathInElement(): "+d.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 NA(){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 d=yh(e);if(!d)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(d,k)}var w1={mathlive:"0.98.5"}}}]);
}());