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 Ch=Math.pow,v1=(un,Ut,x)=>Ut in un?Sv(un,Ut,{enumerable:!0,configurable:!0,writable:!0,value:x}):un[Ut]=x,b1=(un,Ut)=>{for(var x in Ut||(Ut={}))Ev.call(Ut,x)&&v1(un,x,Ut[x]);if(D1)for(var x of D1(Ut))_v.call(Ut,x)&&v1(un,x,Ut[x]);return un};var zs=(un,Ut,x)=>v1(un,typeof Ut!="symbol"?Ut+"":Ut,x);var dp=(un,Ut,x)=>new Promise((me,Ae)=>{var P=W=>{try{ne(x.next(W))}catch(S){Ae(S)}},Oe=W=>{try{ne(x.throw(W))}catch(S){Ae(S)}},ne=W=>W.done?me(W.value):Promise.resolve(W.value).then(P,Oe);ne((x=x.apply(un,Ut)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3247],{89489:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},59477:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},40001:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},49198:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},84105:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},18785:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},73331:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},15277:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},52671:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},8657:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},56082:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},33853:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},15075:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},62772:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},43531:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},38819:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},47472:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},87395:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},Oe=P,ne=x(7657),W=function(h,$){return Ae.createElement(ne.Z,(0,me.Z)({},h,{ref:$,icon:Oe}))},S=Ae.forwardRef(W),v=S},69453:function(un,Ut){"use strict";Ut.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},2857:function(un,Ut,x){"use strict";var me=x(59301),Ae=Object.defineProperty,P=Object.getOwnPropertySymbols,Oe=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,W=(M,h,$)=>h in M?Ae(M,h,{enumerable:!0,configurable:!0,writable:!0,value:$}):M[h]=$,S=(M,h)=>{for(var $ in h||(h={}))Oe.call(h,$)&&W(M,$,h[$]);if(P)for(var $ of P(h))ne.call(h,$)&&W(M,$,h[$]);return M};const v=M=>React.createElement("svg",S({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},M),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"})));Ut.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},56627:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return N}});var me=x(3113),Ae=x(59301),P=Object.defineProperty,Oe=Object.defineProperties,ne=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,v=Object.prototype.propertyIsEnumerable,M=(R,L,X)=>L in R?P(R,L,{enumerable:!0,configurable:!0,writable:!0,value:X}):R[L]=X,h=(R,L)=>{for(var X in L||(L={}))S.call(L,X)&&M(R,X,L[X]);if(W)for(var X of W(L))v.call(L,X)&&M(R,X,L[X]);return R},$=(R,L)=>Oe(R,ne(L)),_=(R,L)=>{var X={};for(var Q in R)S.call(R,Q)&&L.indexOf(Q)<0&&(X[Q]=R[Q]);if(R!=null&&W)for(var Q of W(R))L.indexOf(Q)<0&&v.call(R,Q)&&(X[Q]=R[Q]);return X},F=(R,L,X)=>new Promise((Q,oe)=>{var ee=K=>{try{G(X.next(K))}catch(le){oe(le)}},re=K=>{try{G(X.throw(K))}catch(le){oe(le)}},G=K=>K.done?Q(K.value):Promise.resolve(K.value).then(ee,re);G((X=X.apply(R,L)).next())});const N=R=>{var L=R,{children:X}=L,Q=_(L,["children"]);const[oe,ee]=(0,Ae.useState)(!1);return Ae.createElement(me.ZP,$(h({},Q),{loading:oe,onClick:re=>F(void 0,null,function*(){try{ee(!0),yield Q.onClick(re),ee(!1)}catch(G){console.error(G),ee(!1)}})}),X)}},52348:function(un,Ut,x){"use strict";var me=x(59301),Ae=x(69453),P=x(48136),Oe=x(88601),ne=x(43418),W=x(59301);const S=(0,me.forwardRef)(({callback:v,width:M,onChange:h,disabled:$,readOnly:_,type:F="",value:N="",style:R={}},L)=>{const X=(0,me.useRef)(),Q=(0,me.useRef)(),[oe,ee]=(0,me.useState)(0),[re,G]=(0,me.useState)(0),[K,le]=(0,me.useState)(!1),be=()=>{var q=document.createElement("div");q.innerHTML=X.current.getValue();var de=q.innerText;return v&&v(de),de};(0,me.useImperativeHandle)(L,()=>({getData:be}));const Ne=q=>{q.preventDefault();const de=q.clientX-oe,D=q.clientY-re;document.body.onmousemove=qe=>{let Me=qe.clientX-de,xe=qe.clientY-D;const Te=document.getElementsByClassName("markdown-popup-form")[0],ve=window.innerWidth-Te.offsetWidth,De=window.innerHeight-Te.offsetHeight;Me=Math.max(0,Math.min(Me,ve)),xe=Math.max(0,Math.min(xe,De)),ye(qe.clientX,qe.clientY,de,D)&&(ee(Me),G(xe))},document.body.onmouseup=function(){document.body.onmousemove=null}},ye=(q,de,D,qe)=>{const Me=document.body.clientHeight,xe=document.body.clientWidth;return q<20&&D>q||q>xe-20&&D<q||de<20&&qe>de||de>Me-20&&qe<de?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,me.useEffect)(()=>{K&&setTimeout(()=>{const q=document.getElementsByClassName("markdown-popup-form")[0],de=window.innerWidth/2-q.offsetWidth/2,D=window.innerHeight/2-q.offsetHeight/2;ee(de),G(D)},0)},[K]);const Ue=()=>{$||_||le(!0)};return W.createElement("div",{style:R},W.createElement("div",{style:{width:M||"100%",position:"relative"},className:`${Ae.Z.mathFillWrap} ${$||_?"cursorDefault":""}`,onClick:()=>Ue()},W.createElement("math-field",{disabled:$,locale:"zh_cn",class:`${Ae.Z.mathField} ${F}`,readOnly:_,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:X,style:{width:"100%",fontSize:N?18:14},value:N||""})),W.createElement(ne.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:oe,top:re},title:W.createElement("div",{style:{cursor:"move"},onMouseDown:Ne},"\u8F93\u5165\u516C\u5F0F"),open:K,onOk:()=>{const q=Q.current.getData();X.current.setValue(q),h(q),le(!1)},onCancel:()=>{le(!1)},destroyOnClose:!0,className:"markdown-popup-form"},W.createElement(Oe.Z,{value:N,ref:Q,onChange:h,showSaveButton:!1})))});Ut.Z=S},88601:function(un,Ut,x){"use strict";var me=x(59301),Ae=x(95237),P=x(43604),Oe=x(99313),ne=x(3113),W=x(12470),S=x(69453),v=x(48136),M=x(75790),h=x(59301);const $=(0,me.forwardRef)(({callback:_,showSaveButton:F,value:N=""},R)=>{const L=(0,me.useRef)(),X=(0,M.useIntl)(),Q=[{name:X.formatMessage({id:"markdownEditor.fractionsScores",defaultMessage:"\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:X.formatMessage({id:"markdownEditor.rootsSuperscripts",defaultMessage:"\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:X.formatMessage({id:"markdownEditor.limitsLogarithms",defaultMessage:"\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:X.formatMessage({id:"markdownEditor.trigonometricFunctions",defaultMessage:"\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:X.formatMessage({id:"markdownEditor.integralOperations",defaultMessage:"\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:X.formatMessage({id:"markdownEditor.largeOperations",defaultMessage:"\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:X.formatMessage({id:"markdownEditor.bracketsRounding",defaultMessage:"\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 "}]}]}],oe=[{name:X.formatMessage({id:"markdownEditor.algebra",defaultMessage:"\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:X.formatMessage({id:"markdownEditor.geometry",defaultMessage:"\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:X.formatMessage({id:"markdownEditor.inequalities",defaultMessage:"\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:X.formatMessage({id:"markdownEditor.integrals",defaultMessage:"\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:X.formatMessage({id:"markdownEditor.trigonometry",defaultMessage:"\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:X.formatMessage({id:"markdownEditor.statistics",defaultMessage:"\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}`}]}]}],ee=K=>{L.current.setValue(L.current.getValue()+" "+K.value+" ")},re=[{key:"1",label:X.formatMessage({id:"markdownEditor.quickTemplates",defaultMessage:"\u5FEB\u6377\u6A21\u677F"}),children:h.createElement(Ae.Z,{className:S.Z.lists,gutter:[10,10]},Q.map((K,le)=>h.createElement(P.Z,{flex:"110px",className:S.Z.item},h.createElement("div",null,h.createElement(W.Z,{value:`$$${K.value}$$`}),K.name),h.createElement("div",{className:S.Z.children},K.children.map((be,Ne)=>h.createElement("div",{key:Ne},h.createElement("h1",null,be.name),h.createElement(Ae.Z,{gutter:[10,10]},be.data.map((ye,Ue)=>h.createElement(P.Z,{key:Ue,onClick:()=>ee(ye),className:S.Z.diamond},h.createElement(W.Z,{value:"`$$"+ye.value+"$$`"}))))))))))},{key:"2",label:X.formatMessage({id:"markdownEditor.formulaTemplates",defaultMessage:"\u516C\u5F0F\u6A21\u677F"}),children:h.createElement(Ae.Z,{className:S.Z.lists,gutter:[10,10]},oe.map((K,le)=>h.createElement(P.Z,{flex:"110px",className:S.Z.item},h.createElement("div",null,h.createElement(W.Z,{value:"`$$"+K.value+"$$`"}),K.name),h.createElement("div",{className:S.Z.children},K.children.map((be,Ne)=>h.createElement("div",{key:Ne},be.name&&h.createElement("h1",null,be.name),h.createElement(Ae.Z,{gutter:[10,10]},be.data.map((ye,Ue)=>h.createElement(P.Z,{key:Ue,onClick:()=>ee(ye),className:S.Z.diamond},h.createElement(W.Z,{value:"`$$"+ye.value+"$$`"}))))))))))}],G=()=>{var K=document.createElement("div");K.innerHTML=L.current.getValue();var le=K.innerText;return _&&_(le),le};return(0,me.useImperativeHandle)(R,()=>({getData:G})),h.createElement("div",{className:S.Z.mathWrap},h.createElement(Oe.default,{defaultActiveKey:"1",items:re}),h.createElement("math-field",{locale:"zh_cn",className:S.Z.mathField,placeholder:X.formatMessage({id:"markdownEditor.pleaseOpenKeyboardEnterFormula",defaultMessage:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F"}),ref:L,style:{width:800,marginTop:30,fontSize:18}},N||""),F&&h.createElement("div",{className:S.Z.button},h.createElement(ne.ZP,{size:"large",onClick:G,style:{zIndex:8,marginTop:10},type:"primary"},X.formatMessage({id:"markdownEditor.saveToEditor",defaultMessage:"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"}))))});Ut.Z=$},89975:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return M}});var me=x(59301),Ae={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},P=x(43418),Oe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",ne="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",W=x(75790),S=(h,$,_)=>new Promise((F,N)=>{var R=Q=>{try{X(_.next(Q))}catch(oe){N(oe)}},L=Q=>{try{X(_.throw(Q))}catch(oe){N(oe)}},X=Q=>Q.done?F(Q.value):Promise.resolve(Q.value).then(R,L);X((_=_.apply(h,$)).next())}),M=({type:h,resdata:$,onok:_,oktext:F,okloading:N})=>{const R=(0,W.useIntl)(),[L,X]=(0,me.useState)(!1),{can_copy_list:Q,can_copy_num:oe,challenge_type:ee,course_data_list:re,no_copy_list:G,no_copy_num:K,no_use_list:le,no_use_num:be,repeat_shixun_num:Ne,student_count:ye,total_num:Ue,use_num:q}=$;let de=oe>0||h==="exercise";(0,me.useEffect)(()=>{($==null?void 0:$.student_count)>0&&X(!0)},[$]),console.log("---11",N),(0,me.useEffect)(()=>{N||X(!1)},[N]);const D=()=>{if(h==="exercise"&&ee===1)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},ye),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",me.createElement("span",{className:Ae.orangeColor},q),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(h==="exercise"&&ee===2)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},ye),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",me.createElement("span",{className:Ae.orangeColor},q),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(h==="shixun"&&ee===1)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},ye),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(h==="shixun"&&ee===2)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},ye),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(h==="subject"&&ee===1)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},ye),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",me.createElement("span",{className:Ae.orangeColor},q),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(h==="subject"&&ee===2)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",me.createElement("span",{className:Ae.orangeColor},ye)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",me.createElement("span",{className:Ae.orangeColor},q)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(h==="exercisepush")return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},ye),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",me.createElement("span",{className:Ae.orangeColor},q),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(h==="shixunpush"&&ee===1)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},ye),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",me.createElement("span",{className:Ae.orangeColor},q),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(h==="shixunpush"&&ee===2)return me.createElement(me.Fragment,null,"\u8BFE\u5802\u5185\u6709",me.createElement("span",{className:Ae.orangeColor},ye),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",me.createElement("span",{className:Ae.orangeColor},q),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",me.createElement("span",{className:Ae.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},qe=()=>{if(h==="exercise"||h==="subject"||h==="exercisepush"||h==="shixunpush")return me.createElement("div",{style:{marginTop:20}},K>0&&me.createElement("div",null,me.createElement("span",{className:Ae.flex},me.createElement("img",{src:ne,style:{width:14}}),me.createElement("span",{className:Ae.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),me.createElement("div",{className:Ae.statusbody},h==="exercise"&&me.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",me.createElement("span",{className:Ae.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(h==="subject"||h==="exercisepush")&&me.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",de&&me.createElement("span",{className:Ae.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),h==="shixunpush"&&me.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",de&&me.createElement("span",{className:Ae.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),me.createElement("div",null,G==null?void 0:G.map((Me,xe)=>me.createElement("a",{href:`/shixuns/${Me.identifier}/challenges`,target:"_blank"},"\u300A",Me==null?void 0:Me.name,"\u300B",xe+1!==K&&"\u3001"))))),oe>0&&me.createElement("div",{style:{marginTop:20}},me.createElement("span",{className:Ae.flex},me.createElement("img",{src:Oe,style:{width:14}}),me.createElement("span",{className:Ae.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),me.createElement("div",{className:Ae.statusbody},h==="exercise"&&me.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(h==="subject"||h==="exercisepush")&&me.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),h==="shixunpush"&&me.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),me.createElement("div",null,Q==null?void 0:Q.map((Me,xe)=>me.createElement("a",{href:`/shixuns/${Me.identifier}/challenges`,target:"_blank"},"\u300A",Me==null?void 0:Me.name,"\u300B",xe+1!==oe&&"\u3001"))))));if(h==="shixun")return me.createElement("div",{style:{marginTop:20}},oe>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return me.createElement(P.default,{open:L,onCancel:()=>{X(!1)},cancelText:R.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),title:R.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),width:700,centered:!0,cancelButtonProps:{style:{display:!de&&"none"}},zIndex:1003,confirmLoading:N,okText:de?F:"\u6211\u77E5\u9053\u4E86",onOk:()=>S(void 0,null,function*(){de?yield _([...Q,...le]):X(!1)})},me.createElement("div",{style:{maxHeight:600,overflow:"auto"}},D(),qe()))}},43367:function(un,Ut,x){"use strict";var me=x(59301),Ae=x(43418),P=x(1710),Oe=x(75790);const ne=({dataSource:W,visible:S,onClose:v=()=>{},onSuccess:M=()=>{},text:h,okText:$})=>{var _;const F=(0,Oe.useIntl)();return me.createElement(Ae.default,{centered:!0,destroyOnClose:!0,open:!!S,title:F.formatMessage({id:"shixuns.prompt",defaultMessage:"\u63D0\u793A"}),width:"600px",okText:$,cancelText:F.formatMessage({id:"classrooms.cancel",defaultMessage:"\u53D6\u6D88"}),onCancel:v,onOk:M},S==="single"&&me.createElement("div",{className:"c-grey-333"},"\u5F53\u524D\u8BD5\u5377\u603B\u5206\u4E3A",me.createElement("span",{style:{color:"#FA6400",margin:"0 5px"}},(_=W==null?void 0:W[0])==null?void 0:_.total_score),"\u5206\uFF0C\u8BF7\u786E\u8BA4",h),S==="multiple"&&me.createElement(me.Fragment,null,me.createElement("div",{className:"c-grey-333 mb10"},"\u4EE5\u4E0B\u8BD5\u5377\u603B\u5206\u5F02\u5E38\uFF0C\u8BF7\u786E\u8BA4",h),me.createElement(P.default,{columns:[{title:"\u8BD5\u5377\u540D\u79F0",dataIndex:"name",ellipsis:!0},{title:"\u603B\u5206",width:90,dataIndex:"total_score"}],dataSource:W,scroll:(W==null?void 0:W.length)>7?{y:300}:{},pagination:!1})))};Ut.Z=ne},95811:function(un,Ut,x){"use strict";x.d(Ut,{B:function(){return M},F:function(){return v}});var me=x(44164),Ae=x.n(me),P=x(86129),Oe=x.n(P),ne=(h,$,_)=>new Promise((F,N)=>{var R=Q=>{try{X(_.next(Q))}catch(oe){N(oe)}},L=Q=>{try{X(_.throw(Q))}catch(oe){N(oe)}},X=Q=>Q.done?F(Q.value):Promise.resolve(Q.value).then(R,L);X((_=_.apply(h,$)).next())});const W=()=>{document.body.scrollIntoView()},S=()=>{document.querySelectorAll("canvas").forEach(h=>{(!h.clientWidth||!h.clientHeight)&&h.remove()})},v=(h,$)=>ne(void 0,null,function*(){W(),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 F=Ae()();for(let R=0;R<h.length;R++)yield F.set(_).from(h[R]).toContainer().toCanvas().toPdf().get("pdf").then(L=>ne(void 0,null,function*(){R<h.length-1&&(yield L.addPage())}));const N=new(Oe());N.file(`${$}.pdf`,F.output("blob"),{base64:!1}),N.generateAsync({type:"blob"}).then(function(R){const L=document.createElement("a");L.href=window.URL.createObjectURL(R),L.download=`${$}.zip`,document.body.appendChild(L);const X=new MouseEvent("click");L.dispatchEvent(X),document.body.removeChild(L)})}),M=(h,$)=>ne(void 0,null,function*(){W(),S();const _={margin:[0,0],html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};let F=Ae()();for(let N=0;N<h.length;N++)yield F.set(_).from(h[N]).toContainer().toCanvas().toPdf().get("pdf").then(R=>ne(void 0,null,function*(){N<h.length-1&&(yield R.addPage())}));F.save(`${$}.pdf`)})},38772:function(un,Ut,x){"use strict";x.r(Ut),x.d(Ut,{default:function(){return je}});var me=x(59301),Ae=x(75790),P=x(92832),Oe=x(8591),ne=x(1710),W=x(6848),S=x(95237),v=x(43604),M=x(5112),h=x(28103),$=x(71418),_=x(66104),F=x(3113),N=x(38854),R=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"},X=x(94564),Q=x(95811),oe=x(38452),ee=x(81081),re=x(34188),G=x(19374),K=x(91451),le=x(12470),be=x(24334),Ne=x(56229),ye=x(52348),Ue=x(56627),q=x(98280),de=x(59301),D=Object.defineProperty,qe=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Te=(Ye,_t,kt)=>_t in Ye?D(Ye,_t,{enumerable:!0,configurable:!0,writable:!0,value:kt}):Ye[_t]=kt,ve=(Ye,_t)=>{for(var kt in _t||(_t={}))Me.call(_t,kt)&&Te(Ye,kt,_t[kt]);if(qe)for(var kt of qe(_t))xe.call(_t,kt)&&Te(Ye,kt,_t[kt]);return Ye},De=(Ye,_t,kt)=>new Promise((Ot,sr)=>{var rr=V=>{try{lr(kt.next(V))}catch(dt){sr(dt)}},br=V=>{try{lr(kt.throw(V))}catch(dt){sr(dt)}},lr=V=>V.done?Ot(V.value):Promise.resolve(V.value).then(rr,br);lr((kt=kt.apply(Ye,_t)).next())});const{TextArea:pe}=P.default,Se={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:Ye,isExportBlank:_t=!1,paperlibrary:kt,user:Ot,globalSetting:sr,loading:rr,dispatch:br})=>{var lr,V,dt,I,m,f,C,Y,Be,H,ie,Qe,we;const ce=(0,Ae.useIntl)(),ze=(0,Ae.useLocation)(),vt=(0,Ae.useParams)(),[he]=(0,Ae.useSearchParams)(),[at,rt]=(0,me.useState)(),ke=(0,me.useRef)(),[Fe,ct]=(0,me.useState)(),[Tt,Pt]=(0,me.useState)(),[Yt,Fr]=(0,me.useState)([]),[Lr,Nr]=(0,me.useState)(!1),[kr,yr]=(0,me.useState)(""),[dr,Qr]=(0,me.useState)(!1),[An,Tn]=(0,me.useState)(!1),dn=he.get("isIntelligentAssistant");(0,me.useEffect)(()=>(br({type:"globalSetting/footerToggle",payload:!1}),()=>{br({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,me.useEffect)(()=>{ke.current=vt==null?void 0:vt.id,rt(he.get("defaultActiveKey")||"0"),wn(),Qi(),kn()},[vt==null?void 0:vt.id]),(0,me.useEffect)(()=>{var _e;if((_e=Ye.exerciseExportHeadData)!=null&&_e.title){const Le=Ye.exerciseExportHeadData;ct(ve({},Le||{}));const{table:Ie}=Le||{};let Dt,Mt;(Ie!=null&&Ie.total_singles_scores||Ie!=null&&Ie.total_doubles_scores||Ie!=null&&Ie.total_nulls_scores||Ie!=null&&Ie.total_judges_scores||Ie!=null&&Ie.total_pros_scores||Ie!=null&&Ie.total_shixuns_scores||Ie!=null&&Ie.total_mains_scores||Ie!=null&&Ie.total_combination_scores||Ie!=null&&Ie.total_bpros_scores)&&(Dt=Number(Ie==null?void 0:Ie.total_singles_scores)+Number(Ie==null?void 0:Ie.total_doubles_scores)+Number(Ie==null?void 0:Ie.total_nulls_scores)+Number(Ie==null?void 0:Ie.total_judges_scores)+Number(Ie==null?void 0:Ie.total_pros_scores)+Number(Ie==null?void 0:Ie.total_shixuns_scores)+Number(Ie==null?void 0:Ie.total_mains_scores)+Number(Ie==null?void 0:Ie.total_combination_scores)+Number(Ie==null?void 0:Ie.total_bpros_scores)),(Ie!=null&&Ie.singles_scores||Ie!=null&&Ie.doubles_scores||Ie!=null&&Ie.nulls_scores||Ie!=null&&Ie.judges_scores||Ie!=null&&Ie.pros_scores||Ie!=null&&Ie.bpros_scores||Ie!=null&&Ie.shixuns_scores||Ie!=null&&Ie.mains_scores||Ie!=null&&Ie.combination_scores)&&(Mt=Number(Ie==null?void 0:Ie.singles_scores)+Number(Ie==null?void 0:Ie.doubles_scores)+Number(Ie==null?void 0:Ie.nulls_scores)+Number(Ie==null?void 0:Ie.judges_scores)+Number(Ie==null?void 0:Ie.pros_scores)+Number(Ie==null?void 0:Ie.bpros_scores)+Number(Ie==null?void 0:Ie.shixuns_scores)+Number(Ie==null?void 0:Ie.mains_scores)+Number(Ie==null?void 0:Ie.combination_scores));const Sr=[{key:"1",name:ce.formatMessage({id:"testPaperBank.expectedScore",defaultMessage:"\u5E94\u5F97\u5206"}),singles_score:Ie==null?void 0:Ie.total_singles_scores,doubles_score:Ie==null?void 0:Ie.total_doubles_scores,nulls_score:Ie==null?void 0:Ie.total_nulls_scores,judges_score:Ie==null?void 0:Ie.total_judges_scores,pros_score:Ie==null?void 0:Ie.total_pros_scores,bpros_score:Ie==null?void 0:Ie.total_bpros_scores,shixuns_score:Ie==null?void 0:Ie.total_shixuns_scores,mains_score:Ie==null?void 0:Ie.total_mains_scores,combinations_score:Ie==null?void 0:Ie.total_combination_scores,total_score:Dt},{key:"2",name:ce.formatMessage({id:"testPaperBank.actualScore",defaultMessage:"\u5B9E\u5F97\u5206"}),singles_score:Ie==null?void 0:Ie.singles_scores,doubles_score:Ie==null?void 0:Ie.doubles_scores,nulls_score:Ie==null?void 0:Ie.nulls_scores,judges_score:Ie==null?void 0:Ie.judges_scores,pros_score:Ie==null?void 0:Ie.pros_scores,bpros_score:Ie==null?void 0:Ie.bpros_scores,shixuns_score:Ie==null?void 0:Ie.shixuns_scores,mains_score:Ie==null?void 0:Ie.mains_scores,combinations_score:Ie==null?void 0:Ie.combination_scores,total_score:Mt},{key:"3",name:ce.formatMessage({id:"testPaperBank.grader",defaultMessage:"\u8BC4\u5377\u4EBA"})}],nr=[{key:"1",name:ce.formatMessage({id:"testPaperBank.expectedScore",defaultMessage:"\u5E94\u5F97\u5206"}),singles_score:Ie==null?void 0:Ie.total_singles_scores,doubles_score:Ie==null?void 0:Ie.total_doubles_scores,nulls_score:Ie==null?void 0:Ie.total_nulls_scores,judges_score:Ie==null?void 0:Ie.total_judges_scores,pros_score:Ie==null?void 0:Ie.total_pros_scores,bpros_score:Ie==null?void 0:Ie.total_bpros_scores,shixuns_score:Ie==null?void 0:Ie.total_shixuns_scores,mains_score:Ie==null?void 0:Ie.total_mains_scores,combinations_score:Ie==null?void 0:Ie.combination_scores,total_score:Dt},{key:"2",name:ce.formatMessage({id:"testPaperBank.actualScore",defaultMessage:"\u5B9E\u5F97\u5206"})},{key:"3",name:ce.formatMessage({id:"testPaperBank.grader",defaultMessage:"\u8BC4\u5377\u4EBA"})}];Pt([..._t?nr:Sr])}},[Ye.exerciseExportHeadData]);const kn=()=>De(void 0,null,function*(){var _e;const Le=yield(0,oe.cV)({id:vt.id});Le.status==0&&Fr(Le.data),yield Qi(),he.get("exportPDF")&&((_e=kt.paperData)!=null&&_e.questionList)&&(Oe.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,Q.F)(Zi.current.children,ce.formatMessage({id:"paperlibrary.exportPaper",defaultMessage:"\u5BFC\u51FA\u8BD5\u5377"})))}),Qi=()=>De(void 0,null,function*(){const _e=yield(0,oe.Dq)(vt.id);ct(_e||{});const{table:Le}=_e||{};let Ie,Dt;(Le!=null&&Le.total_singles_scores||Le!=null&&Le.total_doubles_scores||Le!=null&&Le.total_nulls_scores||Le!=null&&Le.total_judges_scores||Le!=null&&Le.total_pros_scores||Le!=null&&Le.total_shixuns_scores||Le!=null&&Le.total_mains_scores||Le!=null&&Le.total_combination_scores||Le!=null&&Le.total_bpros_scores)&&(Ie=Number(Le==null?void 0:Le.total_singles_scores)+Number(Le==null?void 0:Le.total_doubles_scores)+Number(Le==null?void 0:Le.total_nulls_scores)+Number(Le==null?void 0:Le.total_judges_scores)+Number(Le==null?void 0:Le.total_pros_scores)+Number(Le==null?void 0:Le.total_shixuns_scores)+Number(Le==null?void 0:Le.total_mains_scores)+Number(Le==null?void 0:Le.total_combination_scores)+Number(Le==null?void 0:Le.total_bpros_scores)),(Le!=null&&Le.singles_scores||Le!=null&&Le.doubles_scores||Le!=null&&Le.nulls_scores||Le!=null&&Le.judges_scores||Le!=null&&Le.pros_scores||Le!=null&&Le.bpros_scores||Le!=null&&Le.shixuns_scores||Le!=null&&Le.mains_scores||Le!=null&&Le.combinations_score)&&(Dt=Number(Le==null?void 0:Le.singles_scores)+Number(Le==null?void 0:Le.doubles_scores)+Number(Le==null?void 0:Le.nulls_scores)+Number(Le==null?void 0:Le.judges_scores)+Number(Le==null?void 0:Le.pros_scores)+Number(Le==null?void 0:Le.bpros_scores)+Number(Le==null?void 0:Le.shixuns_scores)+Number(Le==null?void 0:Le.mains_scores)+Number(Le==null?void 0:Le.combinations_score));const Mt=[{key:"1",name:ce.formatMessage({id:"testPaperBank.expectedScore",defaultMessage:"\u5E94\u5F97\u5206"}),singles_score:Le==null?void 0:Le.total_singles_scores,doubles_score:Le==null?void 0:Le.total_doubles_scores,nulls_score:Le==null?void 0:Le.total_nulls_scores,judges_score:Le==null?void 0:Le.total_judges_scores,pros_score:Le==null?void 0:Le.total_pros_scores,bpros_score:Le==null?void 0:Le.total_bpros_scores,shixuns_score:Le==null?void 0:Le.total_shixuns_scores,combinations_score:Le==null?void 0:Le.total_combination_scores,mains_score:Le==null?void 0:Le.total_mains_scores,total_score:Ie},{key:"2",name:ce.formatMessage({id:"testPaperBank.actualScore",defaultMessage:"\u5B9E\u5F97\u5206"}),singles_score:Le==null?void 0:Le.singles_scores,doubles_score:Le==null?void 0:Le.doubles_scores,nulls_score:Le==null?void 0:Le.nulls_scores,judges_score:Le==null?void 0:Le.judges_scores,pros_score:Le==null?void 0:Le.pros_scores,bpros_score:Le==null?void 0:Le.bpros_scores,shixuns_score:Le==null?void 0:Le.shixuns_scores,mains_score:Le==null?void 0:Le.mains_scores,combinations_score:Le==null?void 0:Le.combination_scores,total_score:Dt},{key:"3",name:ce.formatMessage({id:"testPaperBank.grader",defaultMessage:"\u8BC4\u5377\u4EBA"})}],Sr=[{key:"1",name:ce.formatMessage({id:"testPaperBank.expectedScore",defaultMessage:"\u5E94\u5F97\u5206"})},{key:"2",name:ce.formatMessage({id:"testPaperBank.actualScore",defaultMessage:"\u5B9E\u5F97\u5206"})},{key:"3",name:ce.formatMessage({id:"testPaperBank.grader",defaultMessage:"\u8BC4\u5377\u4EBA"})}];return Pt(_t?Sr:Mt),_e}),Pr=[{width:"9%",title:ce.formatMessage({id:"paperlibrary.questionType",defaultMessage:"\u9898\u578B"}),align:"center",dataIndex:"name",render:_e=>de.createElement("a",null,_e)},{width:"9%",title:((lr=Yt.find(_e=>_e.value==ee.fw[0].nameType))==null?void 0:lr.name)||ee.fw[0].name,align:"center",dataIndex:"singles_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((V=Yt.find(_e=>_e.value==ee.fw[1].nameType))==null?void 0:V.name)||ee.fw[1].name,align:"center",dataIndex:"doubles_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((dt=Yt.find(_e=>_e.value==ee.fw[3].nameType))==null?void 0:dt.name)||ee.fw[3].name,align:"center",dataIndex:"nulls_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((I=Yt.find(_e=>_e.value==ee.fw[2].nameType))==null?void 0:I.name)||ee.fw[2].name,align:"center",dataIndex:"judges_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((m=Yt.find(_e=>_e.value==ee.fw[6].nameType))==null?void 0:m.name)||ee.fw[6].name,align:"center",dataIndex:"pros_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((f=Yt.find(_e=>_e.value==ee.fw[5].nameType))==null?void 0:f.name)||ee.fw[5].name,align:"center",dataIndex:"shixuns_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((C=Yt.find(_e=>_e.value==ee.fw[4].nameType))==null?void 0:C.name)||ee.fw[4].name,align:"center",dataIndex:"mains_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:((Y=Yt.find(_e=>_e.value==ee.fw[7].nameType))==null?void 0:Y.name)||ee.fw[7].name,align:"center",dataIndex:"combinations_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"10%",title:((Be=Yt.find(_e=>_e.value==ee.fw[8].nameType))==null?void 0:Be.name)||ee.fw[8].name,align:"center",dataIndex:"bpros_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e)},{width:"9%",title:ce.formatMessage({id:"paperlibrary.totalScore",defaultMessage:"\u603B\u5206"}),align:"center",dataIndex:"total_score",render:_e=>de.createElement("a",null,_e==="0.0"?0:_e?parseFloat(_e).toFixed(1):"")}],wn=_e=>{br({type:"paperlibrary/getPaperData",payload:ve({id:ke.current},_e)})},Si=(_e,Le)=>De(void 0,null,function*(){if(!_e.destination||!_e.source)return;const Ie=Le.questions[_e.source.index].id,Dt=_e.destination.index+1;(yield br({type:"paperlibrary/adjustPosition",payload:{id:ke.current,itemId:Ie,position:Dt}})).status!==-1&&wn()}),ui=()=>{var _e,Le,Ie,Dt;br({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:ke.current,data:{is_random:!1},dataSource:[{name:(Le=(_e=kt.paperData)==null?void 0:_e.exam)==null?void 0:Le.name,total_score:(Dt=(Ie=kt.paperData)==null?void 0:Ie.exam)==null?void 0:Dt.all_score}],type:"single"}}})},Zi=(0,me.useRef)(),[Ei,ji]=(0,me.useState)(!0),eo=()=>De(void 0,null,function*(){ji(!1),yr(""),Nr(!0)}),Ki=()=>De(void 0,null,function*(){ji(!0),yr(""),Nr(!0)}),ei=()=>De(void 0,null,function*(){var _e;Qr(!0);const Le=yield(0,K.Mb)({categoryId:ke.current});Qr(!1),Le!=null&&Le.exercise_id&&(0,G.xg)(`/classrooms/coursesId/exercise/${Le.exercise_id}/${(_e=Ot.userInfo)==null?void 0:_e.login}/initate_answer`)}),pi=(_e,Le,Ie)=>{var Dt,Mt,Sr,nr,Dr,Hr,an,jr,Rr,en,yn,on,Dn,Qn,Ai,On,Gn,Vt,Xt,er,fr;return de.createElement(de.Fragment,null,!Ie&&de.createElement("div",{style:{display:"flex"},className:L.programTitle},de.createElement("span",{style:{flexShrink:0},className:"font18"},Le+1,"."),de.createElement(le.Z,{style:{maxWidth:1100},value:_e.name||(_e==null?void 0:_e.shixun_name)}),de.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(_e==null?void 0:_e.question_type)===7?`${ce.formatMessage({id:"common.total",defaultMessage:"\u5171"})}${_e==null?void 0:_e.sub_count}${ce.formatMessage({id:"problemset.smallQuestion",defaultMessage:"\u5C0F\u9898"})}`:""," ",_e.score,ce.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"}),"\uFF09")),(_e==null?void 0:_e.question_type)===8&&de.createElement(le.Z,{showProgramFill:!0,disabledFill:!0,value:be.Base64.decode(((Dt=_e==null?void 0:_e.program_attr)==null?void 0:Dt.code)||"")}),(_e==null?void 0:_e.question_type)===5&&de.createElement("div",null,(Mt=_e==null?void 0:_e.examination_bank_shixun_challenges)==null?void 0:Mt.map((Rt,Jt)=>de.createElement("div",null,de.createElement("div",{key:Jt,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,marginBottom:10}},de.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",Jt+1,"\u5173 ",de.createElement("span",{className:"ml10"},Rt.challenge_name))))),(_e==null?void 0:_e.question_type)===6&&de.createElement("div",null,de.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(nr=(Sr=_e==null?void 0:_e.program_attr)==null?void 0:Sr.languages)==null?void 0:nr.join("/")),((Hr=(Dr=kt==null?void 0:kt.paperData)==null?void 0:Dr.exam)==null?void 0:Hr.show_hack_sets)&&de.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},de.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},de.createElement("i",{className:"iconfont icon-ceshiyongli"})," ",ce.formatMessage({id:"shixuns.testCases",defaultMessage:"\u6D4B\u8BD5\u7528\u4F8B"}),"\uFF1A"),de.createElement(ne.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(Rt,Jt,ar)=>ar+1},{title:ce.formatMessage({id:"questionBankAddQuestion.testCaseInput",defaultMessage:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165"}),dataIndex:"input",key:"input",width:"40%",render:(Rt,Jt,ar)=>de.createElement(W.Z,{title:de.createElement("pre",null,Rt)},de.createElement("div",{className:L.divname},Rt))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Rt,Jt,ar)=>de.createElement(W.Z,{title:de.createElement("pre",null,Rt)}," ",de.createElement("div",{className:L.divname},Rt))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(an=_e==null?void 0:_e.program_attr)==null?void 0:an.hack_sets})),((Rr=(jr=kt==null?void 0:kt.paperData)==null?void 0:jr.exam)==null?void 0:Rr.show_hack_description)&&de.createElement("div",null,de.createElement(le.Z,{className:L.content,value:((en=_e==null?void 0:_e.program_attr)==null?void 0:en.description)||"- -"}))),_e.question_type===Ne.c.Single&&de.createElement(de.Fragment,null,(yn=_e.choices)==null?void 0:yn.map(function(Rt,Jt){return de.createElement(S.Z,{key:Jt},de.createElement(v.Z,{flex:"1"},de.createElement("div",{style:{display:"flex"}},de.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},Xe[Jt]),de.createElement(le.Z,{value:Rt.choice_text||""}))))})),_e.question_type===Ne.c.Multiple&&de.createElement(de.Fragment,null,(on=_e.choices)==null?void 0:on.map(function(Rt,Jt){return de.createElement(S.Z,{key:Jt},de.createElement(v.Z,{flex:"1"},de.createElement("div",{style:{display:"flex"}},de.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},Xe[Jt]),de.createElement(le.Z,{value:Rt.choice_text||""}))))})),_e.question_type===Ne.c.Judge&&de.createElement("div",{className:L.flexRow},(Dn=_e.choices)==null?void 0:Dn.map(function(Rt,Jt){return de.createElement(S.Z,{key:Jt},de.createElement(v.Z,{flex:"25px"},de.createElement("div",{style:{width:25,overflow:"hidden"}},de.createElement(M.ZP,{disabled:!0,style:{width:25,marginLeft:Jt===1&&10}}))),de.createElement(v.Z,{flex:"1",style:{marginLeft:Jt===1&&10}},Rt.choice_text))})),_e.question_type===Ne.c.Combine&&de.createElement(de.Fragment,null,(Qn=_e.sub_questions)==null?void 0:Qn.map(function(Rt,Jt){return de.createElement("div",{style:{marginLeft:10}},de.createElement("div",{style:{display:"flex"},className:L.programTitle},de.createElement("span",{style:{flexShrink:0},className:"font18"},Le+1,".",Jt+1),de.createElement(le.Z,{value:Rt.name||(Rt==null?void 0:Rt.shixun_name)}),de.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Rt.score,ce.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"}),"\uFF09")),pi(Rt,Jt,!0))})),Ei&&de.createElement("div",{style:{marginTop:10}},(_e==null?void 0:_e.question_type)<3&&(_e==null?void 0:_e.standard_answer_show)&&de.createElement("span",{className:"font16 "},ce.formatMessage({id:"paperlibrary.correctAnswer",defaultMessage:"\u6B63\u786E\u7B54\u6848"}),"\uFF1A",_e==null?void 0:_e.standard_answer_show),!!((Ai=_e==null?void 0:_e.standard_answer)!=null&&Ai.length)&&Ei&&(_e==null?void 0:_e.question_type)===3&&de.createElement("div",null,(On=_e==null?void 0:_e.standard_answer)==null?void 0:On.map((Rt,Jt)=>de.createElement("div",null,de.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Jt+1,"\uFF09:"),de.createElement("div",null,Rt.answer_text.map(function(ar,Or){return de.createElement(v.Z,{span:24,key:Or},(Rt==null?void 0:Rt.model)===1?de.createElement(pe,{autoSize:!0,disabled:!0,value:ar}):de.createElement(ye.Z,{value:ar,disabled:!0}))}))))),!!((Gn=_e==null?void 0:_e.standard_answer)!=null&&Gn.length)&&Ei&&(_e==null?void 0:_e.question_type)===8&&de.createElement("div",null,(Vt=_e==null?void 0:_e.standard_answer)==null?void 0:Vt.map((Rt,Jt)=>de.createElement("div",null,de.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Jt+1,"\uFF09:"),de.createElement("div",null,de.createElement(pe,{autoSize:!0,disabled:!0,value:(Rt==null?void 0:Rt.answer_text)||""}))))),!!((Xt=_e==null?void 0:_e.answer_texts)!=null&&Xt.length)&&(_e==null?void 0:_e.question_type)===4&&de.createElement("div",null,de.createElement("p",{className:"mt10 mb0"},ce.formatMessage({id:"questionBankAddQuestion.referenceAnswer",defaultMessage:"\u53C2\u8003\u7B54\u6848"}),"\uFF1A"),de.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},de.createElement(le.Z,{value:(er=_e==null?void 0:_e.answer_texts)==null?void 0:er[0]}))),(_e==null?void 0:_e.question_type)===6&&de.createElement("div",null,de.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(_e!=null&&_e.answer_text)&&ce.formatMessage({id:"shixuns.noRelatedInfo",defaultMessage:"\u6682\u65E0"})),(_e==null?void 0:_e.answer_text)&&de.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},de.createElement(le.Z,{value:_e==null?void 0:_e.answer_text}))),(_e==null?void 0:_e.question_type)<=4&&((_e==null?void 0:_e.standard_answer_show)||((fr=_e==null?void 0:_e.standard_answer)==null?void 0:fr.length)>0)&&de.createElement(S.Z,{style:{marginTop:14}},de.createElement("span",{className:"font16 "},ce.formatMessage({id:"testPaperBank.analysisNoAnalysis",defaultMessage:"\u89E3\u6790"}),"\uFF1A"),de.createElement(le.Z,{className:L.renderHtml,value:(_e==null?void 0:_e.analysis)||ce.formatMessage({id:"classroomProgrammingHomework.noAnalysis",defaultMessage:ce.formatMessage({id:"classroomProgrammingHomework.noAnalysis",defaultMessage:"\u6682\u65E0\u89E3\u6790"})})}))),!Ie&&de.createElement(h.Z,null))},vi=(0,me.useCallback)(()=>{var _e,Le;return de.createElement("div",null,de.createElement("div",{className:L.titleForExport},(Le=(_e=kt.paperData)==null?void 0:_e.exam)==null?void 0:Le.name),de.createElement("div",{style:{textAlign:"center",fontSize:"15px"}},ce.formatMessage({id:"common.total",defaultMessage:"\u5171"}),":\u3010",Fe==null?void 0:Fe.large_counts,ce.formatMessage({id:"problemset.largeQuestion",defaultMessage:"\u5927\u9898"}),"\u3011\u3010",Fe==null?void 0:Fe.total_count,ce.formatMessage({id:"problemset.smallQuestion",defaultMessage:"\u5C0F\u9898"}),"\u3011\u3010 ",ce.formatMessage({id:"classroomExams.majorQuestions",defaultMessage:"\u6EE1\u5206"}),Fe==null?void 0:Fe.score,ce.formatMessage({id:"paperlibrary.point",defaultMessage:"\u5206"}),"\u3011 ",ce.formatMessage({id:"classrooms.examTime",defaultMessage:"\u8003\u8BD5\u65F6\u95F4"}),"\uFF1A\u3010",(Fe==null?void 0:Fe.time)>-1?`${Fe==null?void 0:Fe.time}${ce.formatMessage({id:"paperlibrary.minute",defaultMessage:"\u5206\u949F"})}`:"\u4E0D\u9650","\u3011"),!!(Fe!=null&&Fe.exercise_description)&&de.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},de.createElement("b",null,ce.formatMessage({id:"paperlibrary.examInstructions",defaultMessage:"\u8BD5\u5377\u987B\u77E5"}),"\uFF1A"),Fe==null?void 0:Fe.exercise_description),de.createElement(ne.default,{style:{margin:"20px auto"},className:L.table,columns:Pr,dataSource:[...Tt||[]],bordered:!0,pagination:!1}))},[kt.paperData]),$e=()=>De(void 0,null,function*(){const _e=yield(0,q.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:vt==null?void 0:vt.id}});(_e==null?void 0:_e.status)===0&&Ae.history.replace("/paperlibrary")});return de.createElement("section",{className:L.bg},de.createElement($.Z,{spinning:rr["paperlibrary/getPaperData"]},de.createElement(S.Z,{className:"pt20",justify:"space-between"},de.createElement(_.Z,{separator:">"},de.createElement(_.Z.Item,{href:"/paperlibrary"},ce.formatMessage({id:"paperlibrary.questionBank",defaultMessage:"\u8BD5\u5377\u5E93"})),de.createElement(_.Z.Item,{href:`/paperlibrary?defaultActiveKey=${at}`},at==="1"?ce.formatMessage({id:"paperlibrary.publish",defaultMessage:"\u516C\u5F00"}):at==="2"?ce.formatMessage({id:"paperlibrary.teamShare",defaultMessage:"\u56E2\u961F\u5171\u4EAB"}):ce.formatMessage({id:"paperlibrary.myCreated",defaultMessage:"\u6211\u521B\u5EFA\u7684"})),de.createElement(_.Z.Item,null,ce.formatMessage({id:"testPaperBank.testPaperDetails",defaultMessage:"\u8BD5\u5377\u8BE6\u60C5"}))),de.createElement("div",{className:L.btnWrapper},!dn&&de.createElement(F.ZP,{onClick:ui,className:L.btn,icon:de.createElement("i",{className:"iconfont icon-fasongtongzhi font14"})},ce.formatMessage({id:"paperlibrary.sendToClassroom",defaultMessage:"\u53D1\u9001\u81F3\u8BFE\u5802"})),de.createElement(F.ZP,{onClick:()=>Ae.history.push(`/paperlibrary/add/${ke.current}?type=2${dn?"&isIntelligentAssistant=true":""}`),className:L.btn,icon:de.createElement("i",{className:"iconfont icon-bianji10 font14"})},ce.formatMessage({id:"classroomExams.editTestPaper",defaultMessage:"\u7F16\u8F91\u8BD5\u5377"})),de.createElement(F.ZP,{loading:dr,onClick:ei,className:L.btn,icon:de.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},ce.formatMessage({id:"paperlibrary.mockExam",defaultMessage:"\u6A21\u62DF\u8003\u8BD5"})),!dn&&de.createElement(N.Z,{menu:{items:[{key:"1",label:de.createElement("div",{onClick:Ki},ce.formatMessage({id:"paperlibrary.exportBlankExamWithAnswers",defaultMessage:"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848"}))},{key:"2",label:de.createElement("div",{onClick:eo},ce.formatMessage({id:"paperlibrary.exportBlankExam",defaultMessage:"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377"}))}]}},de.createElement(F.ZP,{type:"primary",icon:de.createElement("i",{className:"iconfont icon-daochu1 font14"})},ce.formatMessage({id:"testPaperBank.export",defaultMessage:"\u5BFC\u51FA"}))),dn&&de.createElement(Ue.Z,{onClick:$e,type:"primary",icon:de.createElement("i",{className:"iconfont icon-baocun1 font14"})},ce.formatMessage({id:"classroomExams.saveTestPaper",defaultMessage:"\u4FDD\u5B58\u8BD5\u5377"})))),de.createElement("div",{className:`${L.wrap} pt20 pb20`,ref:Zi,id:"paperDomRef"},!((ie=(H=kt.paperData)==null?void 0:H.questionList)!=null&&ie.length)&&vi(),(we=(Qe=kt.paperData)==null?void 0:Qe.questionList)==null?void 0:we.map((_e,Le)=>{var Ie;return de.createElement(de.Fragment,null,(Ie=_e.questions)==null?void 0:Ie.map((Dt,Mt)=>{const Sr=Math.floor(Mt/10);return Mt%10===0?de.createElement("div",{className:"abc",key:`group-${Sr}`},Le===0&&Mt===0&&vi(),Mt===0&&de.createElement("div",null,de.createElement("span",{className:"font16 c-light-primary"},_e.number,"\u3001",_e.name),de.createElement("span",{className:"c-grey-999"},"\uFF08",ce.formatMessage({id:"common.total",defaultMessage:"\u5171"}),_e.questions_count,ce.formatMessage({id:"shixuns.questions",defaultMessage:"\u9898"}),"\uFF0C",(_e==null?void 0:_e.question_type)===7?`\u5305\u542B${_e==null?void 0:_e.sub_count}${ce.formatMessage({id:"problemset.smallQuestion",defaultMessage:"\u5C0F\u9898"})}\uFF1B`:"","\u5171",_e.questions_score,ce.formatMessage({id:"shixuns.minute",defaultMessage:"\u5206"}),"\uFF09")),_e.questions.slice(Mt,Mt+10).map((nr,Dr)=>de.createElement("div",{key:nr.id},pi(nr,Mt+Dr)))):null}))}))),de.createElement(X.Z,null),de.createElement(R.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:Lr,onCancel:()=>{if(An){Oe.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}Nr(!1)},okButtonProps:{loading:An},onOk:()=>De(void 0,null,function*(){var _e,Le;if(Tn(!0),kr==""){Tn(!1),Oe.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else kr=="pdf"?yield(0,Q.F)(Zi.current.children,(Le=(_e=kt.paperData)==null?void 0:_e.exam)==null?void 0:Le.name):kr=="word"&&(0,re.ON)({id:ke.current,middle_export:1,export_type:Ei?1:0});Tn(!1),Nr(!1)})},de.createElement("div",{className:L.export_type_modal},de.createElement("div",{className:L.export_type_modal_con},de.createElement("div",{className:L.type_item},de.createElement("div",{className:`${L.img_warp} ${kr=="pdf"?L.img_warp_active:""}`,onClick:()=>yr("pdf")},de.createElement("img",{src:x(45614),width:70,height:70})),ce.formatMessage({id:"paperlibrary.pdfFormat",defaultMessage:"pdf\u683C\u5F0F"})),de.createElement("div",{className:L.type_item},de.createElement("div",{className:`${L.img_warp} ${kr=="word"?L.img_warp_active:""}`,onClick:()=>yr("word")},de.createElement("img",{src:x(38347),width:70,height:70})),ce.formatMessage({id:"paperlibrary.wordFormat",defaultMessage:"word\u683C\u5F0F"}))))))};var je=(0,Ae.connect)(({paperlibrary:Ye,user:_t,loading:kt,globalSetting:Ot,newExercisePaper:sr})=>({paperlibrary:Ye,user:_t,globalSetting:Ot,loading:kt.effects,newExercisePaper:sr}))(et)},94564:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return Se}});var me=x(59301),Ae=x(75790),P=x(92832),Oe=x(8591),ne=x(43418),W=x(5871),S=x(61621),v=x(1710),M=x(3113),h=x(2857),$=Object.defineProperty,_=Object.getOwnPropertySymbols,F=Object.prototype.hasOwnProperty,N=Object.prototype.propertyIsEnumerable,R=(Xe,et,je)=>et in Xe?$(Xe,et,{enumerable:!0,configurable:!0,writable:!0,value:je}):Xe[et]=je,L=(Xe,et)=>{for(var je in et||(et={}))F.call(et,je)&&R(Xe,je,et[je]);if(_)for(var je of _(et))N.call(et,je)&&R(Xe,je,et[je]);return Xe};const X=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 Q="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4=",oe={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"},ee=x(19374),re={sendToClass:"sendToClass___le_BX"},G="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",be=({createState:Xe,refreshLoading:et,onRefresh:je=()=>{},onCreate:Ye=()=>{}})=>me.createElement("div",{className:re.sendToClass},Xe?me.createElement(me.Fragment,null,me.createElement("img",{src:G,alt:"\u7A7A"}),me.createElement("div",null,"\u60A8\u8FD8\u6CA1\u6709\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF0C\u65E0\u6CD5\u5C06\u8BD5\u5377\u53D1\u9001\u81F3\u6559\u5B66\u8BFE\u5802\u3002"),me.createElement(M.ZP,{onClick:Ye,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):me.createElement(me.Fragment,null,me.createElement("img",{src:K,alt:"\u7A7A"}),me.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),me.createElement(M.ZP,{loading:et,onClick:je,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0"))),Ne=x(72946),ye=x(56627),Ue=x(89392),q=x(89975),de=x(43367),D=x(59301),qe=Object.getOwnPropertySymbols,Me=Object.prototype.hasOwnProperty,xe=Object.prototype.propertyIsEnumerable,Te=(Xe,et)=>{var je={};for(var Ye in Xe)Me.call(Xe,Ye)&&et.indexOf(Ye)<0&&(je[Ye]=Xe[Ye]);if(Xe!=null&&qe)for(var Ye of qe(Xe))et.indexOf(Ye)<0&&xe.call(Xe,Ye)&&(je[Ye]=Xe[Ye]);return je},ve=(Xe,et,je)=>new Promise((Ye,_t)=>{var kt=rr=>{try{sr(je.next(rr))}catch(br){_t(br)}},Ot=rr=>{try{sr(je.throw(rr))}catch(br){_t(br)}},sr=rr=>rr.done?Ye(rr.value):Promise.resolve(rr.value).then(kt,Ot);sr((je=je.apply(Xe,et)).next())});const De=P.default.Search,pe=Xe=>{var et=Xe,{paperlibrary:je,globalSetting:Ye,loading:_t,dispatch:kt}=et,Ot=Te(et,["paperlibrary","globalSetting","loading","dispatch"]),sr,rr,br,lr;const V=(0,Ae.useIntl)(),[dt,I]=(0,me.useState)(""),[m,f]=(0,me.useState)([]),[C,Y]=(0,me.useState)([]),[Be,H]=(0,me.useState)(!1),[ie,Qe]=(0,me.useState)(!0),[we,ce]=(0,me.useState)(!0),[ze,vt]=(0,me.useState)(!0),[he,at]=(0,me.useState)(!1),[rt,ke]=(0,me.useState)(!1),Fe=(br=(rr=(sr=je.actionTabs)==null?void 0:sr.params)==null?void 0:rr.data)==null?void 0:br.is_random,[ct,Tt]=(0,me.useState)(!1),[Pt,Yt]=(0,me.useState)({}),[Fr,Lr]=(0,me.useState)(!1),[Nr,kr]=(0,me.useState)(!1),[yr,dr]=(0,me.useState)([]);(0,me.useEffect)(()=>{var wn;if(je.actionTabs.key==="Paperlibrary-SendToClass"){const{dataSource:Si=[],type:ui}=((wn=je.actionTabs)==null?void 0:wn.params)||{},Zi=Si.filter(Ei=>![100,120,150].includes(Ei.total_score));Zi.length?(kr(ui),dr(Zi)):Lr(!0)}},[(lr=je==null?void 0:je.actionTabs)==null?void 0:lr.key]),(0,me.useEffect)(()=>{An()},[]);const Qr=()=>{Y([]),I(""),An(!0),Lr(!1),kr(!1),kt({type:"paperlibrary/setActionTabs",payload:{}})},An=wn=>ve(void 0,null,function*(){ce(!0);const Si=yield kt({type:"paperlibrary/getCourseList",payload:{search:wn?"":dt}});Si&&(f((Si==null?void 0:Si.courses)||[]),Qe(!0),at(!1)),ce(!1),vt(!1)}),Tn=wn=>{const Si=parseInt(wn);return(0,Ue.isNaN)(Si)?"":Si},dn=()=>ve(void 0,null,function*(){var wn,Si,ui,Zi,Ei,ji,eo;if(!C.length){Oe.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),H(!0);return}const Ki=yield kt({type:"paperlibrary/postExistCourse",payload:{course_id:Fe?C==null?void 0:C[0]:C,examination_bank_ids:((Si=(wn=je.actionTabs)==null?void 0:wn.params)==null?void 0:Si.examination_bank_ids)||((Zi=(ui=je.actionTabs)==null?void 0:ui.params)==null?void 0:Zi.id)}}),ei=()=>ve(void 0,null,function*(){var pi,vi,$e,_e,Le,Ie;ke(!0);let Dt=yield(0,Ne.Tr)({id:(vi=(pi=je.actionTabs)==null?void 0:pi.params)==null?void 0:vi.id,course_id:Fe?C==null?void 0:C[0]:C,type:(_e=($e=je.actionTabs)==null?void 0:$e.params)!=null&&_e.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:(Ie=(Le=je.actionTabs)==null?void 0:Le.params)==null?void 0:Ie.examination_bank_ids});ke(!1),(Dt==null?void 0:Dt.student_count)===0?yield kn([]):Yt(Dt),yield new Promise(Mt=>setTimeout(()=>Mt(),1e3))});if(Ki.status==0&&((Ei=Ki.data)==null?void 0:Ei.count)>0){ne.default.confirm({icon:null,title:V.formatMessage({id:"paperlibrary.tip",defaultMessage:"\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",(eo=(ji=Ki.data)==null?void 0:ji.list)==null?void 0:eo.map((pi,vi)=>{var $e;return D.createElement(D.Fragment,null,D.createElement("span",{style:{color:"#FA6400"}},"\u300A",pi==null?void 0:pi.name,"\u300B"),vi!==(($e=Ki.data)==null?void 0:$e.count)-1&&D.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>ve(void 0,null,function*(){yield ei()})}),yield new Promise(pi=>setTimeout(()=>pi(),1e3));return}yield ei()}),kn=wn=>ve(void 0,null,function*(){var Si,ui,Zi,Ei,ji,eo;if(!Fe){Tt(!0);const vi=yield kt({type:(ui=(Si=je.actionTabs)==null?void 0:Si.params)!=null&&ui.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:Fe?C==null?void 0:C[0]:C,id:(Ei=(Zi=je.actionTabs)==null?void 0:Zi.params)==null?void 0:Ei.id,examination_bank_ids:(eo=(ji=je.actionTabs)==null?void 0:ji.params)==null?void 0:eo.examination_bank_ids,shixuns_info:wn.map($e=>({shixun_id:$e.id,is_copy:$e.is_copy,is_use:$e.is_use,course_id:$e.course_id}))}});Tt(!1),vi&&vi.status===0&&(Lr(!1),kt({type:"paperlibrary/setActionTabs",payload:{}}),Y([]),ne.default.confirm({title:V.formatMessage({id:"paperlibrary.tip",defaultMessage:"\u63D0\u793A"}),okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",width:480,centered:!0,closable:!0,onOk:()=>{window.location.href=`${vi.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")}),Oe.ZP.success("\u53D1\u9001\u6210\u529F"));return}Tt(!0),setTimeout(()=>{Tt(!1)},500);const Ki=m.find(vi=>vi.course_id===(C==null?void 0:C[0]));let ei=1,pi=ne.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:oe.modalColumn},D.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},D.createElement("img",{style:{marginRight:5},src:h.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}},V.formatMessage({id:"paperlibrary.className",defaultMessage:"\u8BFE\u5802\u540D\u79F0"}),": ",Ki==null?void 0:Ki.course_name),D.createElement("div",{style:{paddingLeft:9},className:oe.modalRow},D.createElement("sup",{className:oe.sup},"*"),D.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),D.createElement(W.Z,{parser:Tn,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:ei,onChange:vi=>{ei=vi;const $e=document.getElementById("model_error");ei<1||ei>50?$e.style.display="block":$e.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:V.formatMessage({id:"paperlibrary.confirm1",defaultMessage:"\u786E\u8BA4"}),cancelText:V.formatMessage({id:"paperlibrary.cancel",defaultMessage:"\u53D6\u6D88"}),onCancel:Qr,onOk:()=>ve(void 0,null,function*(){var vi,$e;if(ei<1||ei>50){const Le=document.getElementById("model_error");return Le.style.display="block",Promise.reject()}pi.update({cancelButtonProps:{disabled:!0}});const _e=yield kt({type:"paperlibrary/sendToClass",payload:{course_id:C==null?void 0:C[0],id:($e=(vi=je.actionTabs)==null?void 0:vi.params)==null?void 0:$e.id,num:ei,shixuns_info:wn.map(Le=>({shixun_id:Le.id,is_copy:Le.is_copy,is_use:Le.is_use}))}});pi.update({cancelButtonProps:{disabled:!1}}),_e&&_e.status===0&&(ne.default.destroyAll(),ne.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:V.formatMessage({id:"paperlibrary.tip",defaultMessage:"\u63D0\u793A"}),content:D.createElement("div",{className:oe.modalColumn},D.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},D.createElement("img",{style:{marginRight:5},src:Q}),"\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:()=>{Qr()},onOk:()=>{Qr(),setTimeout(()=>{var Le,Ie;const Dt=(Ie=(Le=_e==null?void 0:_e.first_category_url)==null?void 0:Le.split("/"))==null?void 0:Ie[2];(0,ee.xg)(`/classrooms/${Dt}/exercise`)},1e3)}}))})})}),Qi=()=>ve(void 0,null,function*(){at(!0),yield An()}),Pr=[{title:V.formatMessage({id:"paperlibrary.className",defaultMessage:"\u8BFE\u5802\u540D\u79F0"}),dataIndex:"course_name",ellipsis:!0},{title:V.formatMessage({id:"paperlibrary.groupCount",defaultMessage:"\u5206\u73ED\u6570\u91CF"}),dataIndex:"course_group_count",width:90,ellipsis:!0},{title:V.formatMessage({id:"paperlibrary.studentCount",defaultMessage:"\u5B66\u5458\u4EBA\u6570"}),dataIndex:"course_member_count",width:90,ellipsis:!0}];return D.createElement("div",null,D.createElement(ne.default,{centered:!0,keyboard:!1,closable:!1,open:Fr,title:V.formatMessage({id:"paperlibrary.sendToClassroom",defaultMessage:"\u53D1\u9001\u81F3\u8BFE\u5802"}),maskClosable:!1,okText:V.formatMessage({id:"paperlibrary.confirm",defaultMessage:"\u786E\u5B9A"}),cancelText:V.formatMessage({id:"paperlibrary.cancel",defaultMessage:"\u53D6\u6D88"}),confirmLoading:_t["paperlibrary/sendToClass"]||rt||!!_t["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:dn,destroyOnClose:!0,onCancel:Qr},D.createElement("div",{className:oe.wrap},D.createElement("div",{className:"mb10"},D.createElement(De,{placeholder:V.formatMessage({id:"paperlibrary.searchByClassName",defaultMessage:"\u8F93\u51FA\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u8BCD\u8FDB\u884C\u641C\u7D22"}),value:dt,className:oe.search,onChange:wn=>{I(wn.target.value),wn.target.value||An(!0)},onSearch:wn=>{I(wn),An(),Y([])}})),D.createElement(S.Z,{loading:ze},m.length?D.createElement("div",{className:oe.radioWrap},D.createElement(v.default,{bordered:!1,scroll:(m==null?void 0:m.length)<=7?{}:{y:350},loading:we,rowKey:"course_id",pagination:!1,dataSource:m,columns:Pr,onRow:wn=>({onClick:Si=>{if(Fe)Y([wn==null?void 0:wn.course_id]);else{if(!Fe&&!C.includes(wn.course_id)&&C.length>0)return;C!=null&&C.includes(wn==null?void 0:wn.course_id)?Y(C==null?void 0:C.filter(ui=>ui!==(wn==null?void 0:wn.course_id))):Y([...C,wn==null?void 0:wn.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:C,onChange:wn=>{Y(wn),H(!1)}}})):!dt&&!we&&D.createElement(be,{createState:ie,refreshLoading:he,onRefresh:Qi,onCreate:()=>{Qe(!1),(0,ee.xg)("/classrooms/new")}})),Be&&D.createElement("div",{className:oe.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),D.createElement("div",{className:oe.bottom,style:{display:"flex",alignItems:"center"}},D.createElement("div",{style:{flex:1}},D.createElement("div",{className:oe.title},D.createElement("img",{src:h.Z,style:{objectFit:"contain"}}),V.formatMessage({id:"paperlibrary.selectedPaperSentToClass",defaultMessage:"\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(M.ZP,{onClick:Qr,className:oe.no,style:{marginRight:20}},V.formatMessage({id:"paperlibrary.cancel",defaultMessage:"\u53D6\u6D88"})),D.createElement(ye.Z,{onClick:dn,className:oe.yes},V.formatMessage({id:"paperlibrary.confirm1",defaultMessage:"\u786E\u8BA4"})))))),D.createElement(q.Z,{resdata:Pt,type:"exercise",okloading:ct,oktext:(Pt==null?void 0:Pt.can_copy_num)===0?V.formatMessage({id:"paperlibrary.confirm",defaultMessage:"\u786E\u5B9A"}):"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:wn=>{kn(wn)}}),D.createElement(de.Z,{text:"\u662F\u5426\u7EE7\u7EED\u53D1\u9001\u5230\u6559\u5B66\u8BFE\u5802\u4E2D\uFF1F",okText:"\u786E\u8BA4\u53D1\u9001",visible:Nr,dataSource:yr,onSuccess:()=>{kr(!1),Lr(!0)},onClose:Qr}))};var Se=(0,Ae.connect)(({paperlibrary:Xe,loading:et,globalSetting:je})=>({paperlibrary:Xe,globalSetting:je,loading:et.effects}))(pe)},56229:function(un,Ut,x){"use strict";x.d(Ut,{c:function(){return Ae}});var me=(P=>(P.FirstPage="firstPage",P.PrevPage="prevPage",P.NextPage="nextPage",P))(me||{}),Ae=(P=>(P[P.Single=0]="Single",P[P.Multiple=1]="Multiple",P[P.Judge=2]="Judge",P[P.Fill=3]="Fill",P[P.Subjective=4]="Subjective",P[P.Shixun=5]="Shixun",P[P.Program=6]="Program",P[P.Combine=7]="Combine",P))(Ae||{})},34188:function(un,Ut,x){"use strict";x.d(Ut,{AD:function(){return qe},BA:function(){return dt},D9:function(){return pe},Hp:function(){return K},IM:function(){return Xe},Iy:function(){return le},KM:function(){return V},KU:function(){return _t},MJ:function(){return be},Ne:function(){return Se},ON:function(){return Ot},Uj:function(){return br},VY:function(){return Ye},YO:function(){return rr},YX:function(){return sr},Zn:function(){return R},_g:function(){return ee},_k:function(){return ve},c6:function(){return de},cr:function(){return L},eV:function(){return D},fi:function(){return X},gh:function(){return Ue},hS:function(){return et},iA:function(){return Q},j6:function(){return re},je:function(){return Te},jj:function(){return G},kS:function(){return kt},o6:function(){return q},pO:function(){return lr},rQ:function(){return Me},sA:function(){return ye},xm:function(){return De},xo:function(){return je},y8:function(){return xe},yd:function(){return oe}});var me=x(98458),Ae=x(75790),P=x(19374),Oe=x(8591),ne=x(49647),W=Object.defineProperty,S=Object.getOwnPropertySymbols,v=Object.prototype.hasOwnProperty,M=Object.prototype.propertyIsEnumerable,h=(I,m,f)=>m in I?W(I,m,{enumerable:!0,configurable:!0,writable:!0,value:f}):I[m]=f,$=(I,m)=>{for(var f in m||(m={}))v.call(m,f)&&h(I,f,m[f]);if(S)for(var f of S(m))M.call(m,f)&&h(I,f,m[f]);return I},_=(I,m,f)=>new Promise((C,Y)=>{var Be=Qe=>{try{ie(f.next(Qe))}catch(we){Y(we)}},H=Qe=>{try{ie(f.throw(Qe))}catch(we){Y(we)}},ie=Qe=>Qe.done?C(Qe.value):Promise.resolve(Qe.value).then(Be,H);ie((f=f.apply(I,m)).next())});const F=()=>{(0,Ae.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},N=()=>{(0,Ae.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},R=I=>_(void 0,null,function*(){F(),(yield(0,me.YR)($({},I))).status===0&&(yield(0,P.QH)("",(0,P.NY)({url:ne.Z.API_SERVER+`/api/courses/${I.coursesId}/export_couser_info.json`,query:I}))),N()}),L=I=>_(void 0,null,function*(){const m=yield(0,me.yS)($({},I));if(m.status===0)Oe.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`))}}),X=I=>_(void 0,null,function*(){const m=yield(0,me.W0)($({},I));if(m.status===0)Oe.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`))}}),Q=I=>_(void 0,null,function*(){const m=yield(0,me.Nl)($({},I));if(m.status===0)Oe.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`))}}),oe=I=>_(void 0,null,function*(){const m=yield(0,me.IU)($({},I));if(m.status===0)Oe.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`))}}),ee=I=>_(void 0,null,function*(){const m=yield(0,me.td)($({},I));if(m.status===0)Oe.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}}),re=I=>_(void 0,null,function*(){const m=yield(0,me.QX)($({},I));if(m.status===0)Oe.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`))}}),G=(I,m)=>_(void 0,null,function*(){const f=yield(0,me.o_)($({},I));f.status===0?(Oe.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}`)):f.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 f=yield(0,me.ZL)($({},I));f.status===0?(Oe.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}`)):f.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 f=yield(0,me.aP)($({},I));f.status===0?(Oe.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`)):f.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`))}),be=(I,m)=>_(void 0,null,function*(){const f=yield(0,me.vV)($({},I));f.status===0?(Oe.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}`)):f.status===-3&&((0,Ae.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),Ae.history.push(`/classrooms/${I.coursesId}/exportlist/${m}`))}),Ne=I=>_(void 0,null,function*(){F(),(yield exportCourseWorkListAppendix($({},I))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${I.categoryId}/works_list.zip`,query:I}))),N()}),ye=I=>_(void 0,null,function*(){F(),yield(0,P.QH)("",ne.Z.API_SERVER+`/api/polls/${I.categoryId}/commit_result.xlsx`),N()}),Ue=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.Z.API_SERVER+`/api/courses/${I.coursesId}/attendances/export_xlsx_data.xlsx`,query:I}))}),q=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.Z.API_SERVER+`/api/courses/${I.coursesId}/video_study_statics.xlsx`,query:I}))}),de=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.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:ne.Z.API_SERVER+`/api/courses/${I.coursesId}/export_course_students_info.xlsx`,query:I}))}),qe=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.Z.API_SERVER+"/api/school_manages/students.xlsx",query:I}))}),Me=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.Z.API_SERVER+"/api/item_banks/export.xlsx",query:I}))}),xe=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:I}))}),Te=I=>_(void 0,null,function*(){const m=yield(0,me.Uy)($({},I));m.status===0?(Oe.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`))}),ve=I=>_(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,P.FH)("",(0,P.NY)({url:ne.Z.API_SERVER+`/api/export_records/${I.id}.xlsx`,query:I}))}),De=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:I}))}),pe=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.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}))}),Se=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.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:ne.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:ne.Z.API_SERVER+`/api/ec_years/${I==null?void 0:I.ec_year_id}/ec_courses.xlsx`,query:I}))}),je=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.Z.API_SERVER+`/api/ec_years/${I==null?void 0:I.ec_year_id}/ec_graduation_requirements.xlsx`,query:I}))}),Ye=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:I}))}),_t=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.Z.API_SERVER+`/api/exercises/${I.categoryId}/rank_list.xlsx`,query:I}))}),kt=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.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:ne.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:ne.Z.API_SERVER+`/api/exercises/${I.categoryId}.json`,query:I}))}),rr=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.Z.API_SERVER+`/api/polls/${I==null?void 0:I.id}/commit_result.json`,query:I}))}),br=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.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:ne.Z.API_SERVER+`/api/exercises/${I==null?void 0:I.exercise_id}/consult_exercise.json`,query:I}))}),V=I=>_(void 0,null,function*(){yield(0,P.FH)("",(0,P.NY)({url:ne.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:ne.Z.API_SERVER+`/api/courses/${I==null?void 0:I.coursesId}/group_homeworks/import_group_template.xlsx`,query:I}))})},50371:function(un,Ut){"use strict";function x(){const me=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let Ae=1;Ae<arguments.length;Ae++){const P=Ae<0||arguments.length<=Ae?void 0:arguments[Ae];P&&Object.keys(P).forEach(Oe=>{const ne=P[Oe];ne!==void 0&&(me[Oe]=ne)})}return me}Ut.Z=x},13845:function(un,Ut,x){"use strict";x.d(Ut,{F:function(){return me},Z:function(){return Ae}});function me(P){return P!=null&&P===P.window}function Ae(P,Oe){var ne,W;if(typeof window=="undefined")return 0;const S=Oe?"scrollTop":"scrollLeft";let v=0;return me(P)?v=P[Oe?"pageYOffset":"pageXOffset"]:P instanceof Document?v=P.documentElement[S]:(P instanceof HTMLElement||P)&&(v=P[S]),P&&!me(P)&&typeof v!="number"&&(v=(W=((ne=P.ownerDocument)!==null&&ne!==void 0?ne:P).documentElement)===null||W===void 0?void 0:W[S]),v}},56762:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return Ae}});var me=x(59301);function Ae(){const[,P]=me.useReducer(Oe=>Oe+1,0);return P}},68031:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return Oe}});var me=x(16089);function Ae(ne,W,S,v){const M=S-W;return ne/=v/2,ne<1?M/2*ne*ne*ne+W:M/2*((ne-=2)*ne*ne+2)+W}var P=x(13845);function Oe(ne){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:S=()=>window,callback:v,duration:M=450}=W,h=S(),$=(0,P.Z)(h,!0),_=Date.now(),F=()=>{const R=Date.now()-_,L=Ae(R>M?M:R,$,ne,M);(0,P.F)(h)?h.scrollTo(window.pageXOffset,L):h instanceof Document||h.constructor.name==="HTMLDocument"?h.documentElement.scrollTop=L:h.scrollTop=L,R<M?(0,me.Z)(F):typeof v=="function"&&v()};(0,me.Z)(F)}},19080:function(un,Ut,x){"use strict";x.d(Ut,{F:function(){return ne},Z:function(){return Oe}});var me=x(92310),Ae=x.n(me);const P=null;function Oe(W,S,v){return Ae()({[`${W}-status-success`]:S==="success",[`${W}-status-warning`]:S==="warning",[`${W}-status-error`]:S==="error",[`${W}-status-validating`]:S==="validating",[`${W}-has-feedback`]:v})}const ne=(W,S)=>S||W},66104:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return qe}});var me=x(92310),Ae=x.n(me),P=x(11592),Oe=x(26112),ne=x(59301),W=x(92343),S=x(36355),v=x(84105),M=x(91857);const h=Me=>{let{children:xe}=Me;const{getPrefixCls:Te}=ne.useContext(S.E_),ve=Te("breadcrumb");return ne.createElement("li",{className:`${ve}-separator`,"aria-hidden":"true"},xe===""?xe:xe||"/")};h.__ANT_BREADCRUMB_SEPARATOR=!0;var $=h,_=function(Me,xe){var Te={};for(var ve in Me)Object.prototype.hasOwnProperty.call(Me,ve)&&xe.indexOf(ve)<0&&(Te[ve]=Me[ve]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ve=Object.getOwnPropertySymbols(Me);De<ve.length;De++)xe.indexOf(ve[De])<0&&Object.prototype.propertyIsEnumerable.call(Me,ve[De])&&(Te[ve[De]]=Me[ve[De]]);return Te};function F(Me,xe){if(Me.title===void 0||Me.title===null)return null;const Te=Object.keys(xe).join("|");return typeof Me.title=="object"?Me.title:String(Me.title).replace(new RegExp(`:(${Te})`,"g"),(ve,De)=>xe[De]||ve)}function N(Me,xe,Te,ve){if(Te==null)return null;const{className:De,onClick:pe}=xe,Se=_(xe,["className","onClick"]),Xe=Object.assign(Object.assign({},(0,Oe.Z)(Se,{data:!0,aria:!0})),{onClick:pe});return ve!==void 0?ne.createElement("a",Object.assign({},Xe,{className:Ae()(`${Me}-link`,De),href:ve}),Te):ne.createElement("span",Object.assign({},Xe,{className:Ae()(`${Me}-link`,De)}),Te)}function R(Me,xe){return(ve,De,pe,Se,Xe)=>{if(xe)return xe(ve,De,pe,Se);const et=F(ve,De);return N(Me,ve,et,Xe)}}var L=function(Me,xe){var Te={};for(var ve in Me)Object.prototype.hasOwnProperty.call(Me,ve)&&xe.indexOf(ve)<0&&(Te[ve]=Me[ve]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ve=Object.getOwnPropertySymbols(Me);De<ve.length;De++)xe.indexOf(ve[De])<0&&Object.prototype.propertyIsEnumerable.call(Me,ve[De])&&(Te[ve[De]]=Me[ve[De]]);return Te};const X=Me=>{const{prefixCls:xe,separator:Te="/",children:ve,menu:De,overlay:pe,dropdownProps:Se,href:Xe}=Me,je=(Ye=>{if(De||pe){const _t=Object.assign({},Se);if(De){const kt=De||{},{items:Ot}=kt,sr=L(kt,["items"]);_t.menu=Object.assign(Object.assign({},sr),{items:Ot==null?void 0:Ot.map((rr,br)=>{var{key:lr,title:V,label:dt,path:I}=rr,m=L(rr,["key","title","label","path"]);let f=dt!=null?dt:V;return I&&(f=ne.createElement("a",{href:`${Xe}${I}`},f)),Object.assign(Object.assign({},m),{key:lr!=null?lr:br,label:f})})})}else pe&&(_t.overlay=pe);return ne.createElement(M.Z,Object.assign({placement:"bottom"},_t),ne.createElement("span",{className:`${xe}-overlay-link`},Ye,ne.createElement(v.Z,null)))}return Ye})(ve);return je!=null?ne.createElement(ne.Fragment,null,ne.createElement("li",null,je),Te&&ne.createElement($,null,Te)):null},Q=Me=>{const{prefixCls:xe,children:Te,href:ve}=Me,De=L(Me,["prefixCls","children","href"]),{getPrefixCls:pe}=ne.useContext(S.E_),Se=pe("breadcrumb",xe);return ne.createElement(X,Object.assign({},De,{prefixCls:Se}),N(Se,De,Te,ve))};Q.__ANT_BREADCRUMB_ITEM=!0;var oe=Q,ee=x(17313),re=x(83116),G=x(37613);const K=Me=>{const{componentCls:xe,iconCls:Te}=Me;return{[xe]:Object.assign(Object.assign({},(0,ee.Wf)(Me)),{color:Me.itemColor,fontSize:Me.fontSize,[Te]:{fontSize:Me.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Me.linkColor,transition:`color ${Me.motionDurationMid}`,padding:`0 ${Me.paddingXXS}px`,borderRadius:Me.borderRadiusSM,height:Me.lineHeight*Me.fontSize,display:"inline-block",marginInline:-Me.marginXXS,"&:hover":{color:Me.linkHoverColor,backgroundColor:Me.colorBgTextHover}},(0,ee.Qy)(Me)),"li:last-child":{color:Me.lastItemColor},[`${xe}-separator`]:{marginInline:Me.separatorMargin,color:Me.separatorColor},[`${xe}-link`]:{[`
> ${Te} + span,
> ${Te} + a
`]:{marginInlineStart:Me.marginXXS}},[`${xe}-overlay-link`]:{borderRadius:Me.borderRadiusSM,height:Me.lineHeight*Me.fontSize,display:"inline-block",padding:`0 ${Me.paddingXXS}px`,marginInline:-Me.marginXXS,[`> ${Te}`]:{marginInlineStart:Me.marginXXS,fontSize:Me.fontSizeIcon},"&:hover":{color:Me.linkHoverColor,backgroundColor:Me.colorBgTextHover,a:{color:Me.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Me.componentCls}-rtl`]:{direction:"rtl"}})}};var le=(0,re.Z)("Breadcrumb",Me=>{const xe=(0,G.TS)(Me,{});return[K(xe)]},Me=>({itemColor:Me.colorTextDescription,lastItemColor:Me.colorText,iconFontSize:Me.fontSize,linkColor:Me.colorTextDescription,linkHoverColor:Me.colorText,separatorColor:Me.colorTextDescription,separatorMargin:Me.marginXS})),be=function(Me,xe){var Te={};for(var ve in Me)Object.prototype.hasOwnProperty.call(Me,ve)&&xe.indexOf(ve)<0&&(Te[ve]=Me[ve]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ve=Object.getOwnPropertySymbols(Me);De<ve.length;De++)xe.indexOf(ve[De])<0&&Object.prototype.propertyIsEnumerable.call(Me,ve[De])&&(Te[ve[De]]=Me[ve[De]]);return Te};function Ne(Me){const{breadcrumbName:xe,children:Te}=Me,ve=be(Me,["breadcrumbName","children"]),De=Object.assign({title:xe},ve);return Te&&(De.menu={items:Te.map(pe=>{var{breadcrumbName:Se}=pe,Xe=be(pe,["breadcrumbName"]);return Object.assign(Object.assign({},Xe),{title:Se})})}),De}function ye(Me,xe){return(0,ne.useMemo)(()=>Me||(xe?xe.map(Ne):null),[Me,xe])}var Ue=function(Me,xe){var Te={};for(var ve in Me)Object.prototype.hasOwnProperty.call(Me,ve)&&xe.indexOf(ve)<0&&(Te[ve]=Me[ve]);if(Me!=null&&typeof Object.getOwnPropertySymbols=="function")for(var De=0,ve=Object.getOwnPropertySymbols(Me);De<ve.length;De++)xe.indexOf(ve[De])<0&&Object.prototype.propertyIsEnumerable.call(Me,ve[De])&&(Te[ve[De]]=Me[ve[De]]);return Te};const q=(Me,xe)=>{if(xe===void 0)return xe;let Te=(xe||"").replace(/^\//,"");return Object.keys(Me).forEach(ve=>{Te=Te.replace(`:${ve}`,Me[ve])}),Te},de=Me=>{const{prefixCls:xe,separator:Te="/",style:ve,className:De,rootClassName:pe,routes:Se,items:Xe,children:et,itemRender:je,params:Ye={}}=Me,_t=Ue(Me,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:kt,direction:Ot,breadcrumb:sr}=ne.useContext(S.E_);let rr;const br=kt("breadcrumb",xe),[lr,V]=le(br),dt=ye(Xe,Se),I=R(br,je);if(dt&&dt.length>0){const C=[],Y=Xe||Se;rr=dt.map((Be,H)=>{const{path:ie,key:Qe,type:we,menu:ce,overlay:ze,onClick:vt,className:he,separator:at,dropdownProps:rt}=Be,ke=q(Ye,ie);ke!==void 0&&C.push(ke);const Fe=Qe!=null?Qe:H;if(we==="separator")return ne.createElement($,{key:Fe},at);const ct={},Tt=H===dt.length-1;ce?ct.menu=ce:ze&&(ct.overlay=ze);let{href:Pt}=Be;return C.length&&ke!==void 0&&(Pt=`#/${C.join("/")}`),ne.createElement(X,Object.assign({key:Fe},ct,(0,Oe.Z)(Be,{data:!0,aria:!0}),{className:he,dropdownProps:rt,href:Pt,separator:Tt?"":Te,onClick:vt,prefixCls:br}),I(Be,Ye,Y,C,Pt))})}else if(et){const C=(0,P.Z)(et).length;rr=(0,P.Z)(et).map((Y,Be)=>{if(!Y)return Y;const H=Be===C-1;return(0,W.Tm)(Y,{separator:H?"":Te,key:Be})})}const m=Ae()(br,sr==null?void 0:sr.className,{[`${br}-rtl`]:Ot==="rtl"},De,pe,V),f=Object.assign(Object.assign({},sr==null?void 0:sr.style),ve);return lr(ne.createElement("nav",Object.assign({className:m,style:f},_t),ne.createElement("ol",null,rr)))};de.Item=oe,de.Separator=$;var D=de,qe=D},24905:function(un,Ut,x){"use strict";x.d(Ut,{default:function(){return le}});var me=x(92310),Ae=x.n(me),P=x(5630),Oe=x(59301),ne=x(36355),W=x(1684),S=x(32441),M=Oe.createContext(null),h=x(98447),$=x(14088),_=x(4572),F=function(be,Ne){var ye={};for(var Ue in be)Object.prototype.hasOwnProperty.call(be,Ue)&&Ne.indexOf(Ue)<0&&(ye[Ue]=be[Ue]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,Ue=Object.getOwnPropertySymbols(be);q<Ue.length;q++)Ne.indexOf(Ue[q])<0&&Object.prototype.propertyIsEnumerable.call(be,Ue[q])&&(ye[Ue[q]]=be[Ue[q]]);return ye};const N=(be,Ne)=>{var ye;const{prefixCls:Ue,className:q,rootClassName:de,children:D,indeterminate:qe=!1,style:Me,onMouseEnter:xe,onMouseLeave:Te,skipGroup:ve=!1,disabled:De}=be,pe=F(be,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Se,direction:Xe,checkbox:et}=Oe.useContext(ne.E_),je=Oe.useContext(M),{isFormItemInput:Ye}=Oe.useContext(S.aM),_t=Oe.useContext(W.Z),kt=(ye=(je==null?void 0:je.disabled)||De)!==null&&ye!==void 0?ye:_t,Ot=Oe.useRef(pe.value);Oe.useEffect(()=>{je==null||je.registerValue(pe.value)},[]),Oe.useEffect(()=>{if(!ve)return pe.value!==Ot.current&&(je==null||je.cancelValue(Ot.current),je==null||je.registerValue(pe.value),Ot.current=pe.value),()=>je==null?void 0:je.cancelValue(pe.value)},[pe.value]);const sr=Se("checkbox",Ue),[rr,br]=(0,h.ZP)(sr),lr=Object.assign({},pe);je&&!ve&&(lr.onChange=function(){pe.onChange&&pe.onChange.apply(pe,arguments),je.toggleOption&&je.toggleOption({label:D,value:pe.value})},lr.name=je.name,lr.checked=je.value.includes(pe.value));const V=Ae()(`${sr}-wrapper`,{[`${sr}-rtl`]:Xe==="rtl",[`${sr}-wrapper-checked`]:lr.checked,[`${sr}-wrapper-disabled`]:kt,[`${sr}-wrapper-in-form-item`]:Ye},et==null?void 0:et.className,q,de,br),dt=Ae()({[`${sr}-indeterminate`]:qe},_.A,br),I=qe?"mixed":void 0;return rr(Oe.createElement($.Z,{component:"Checkbox",disabled:kt},Oe.createElement("label",{className:V,style:Object.assign(Object.assign({},et==null?void 0:et.style),Me),onMouseEnter:xe,onMouseLeave:Te},Oe.createElement(P.Z,Object.assign({"aria-checked":I},lr,{prefixCls:sr,className:dt,disabled:kt,ref:Ne})),D!==void 0&&Oe.createElement("span",null,D))))};var L=Oe.forwardRef(N),X=x(94480),Q=x(2738),oe=function(be,Ne){var ye={};for(var Ue in be)Object.prototype.hasOwnProperty.call(be,Ue)&&Ne.indexOf(Ue)<0&&(ye[Ue]=be[Ue]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,Ue=Object.getOwnPropertySymbols(be);q<Ue.length;q++)Ne.indexOf(Ue[q])<0&&Object.prototype.propertyIsEnumerable.call(be,Ue[q])&&(ye[Ue[q]]=be[Ue[q]]);return ye};const ee=(be,Ne)=>{const{defaultValue:ye,children:Ue,options:q=[],prefixCls:de,className:D,rootClassName:qe,style:Me,onChange:xe}=be,Te=oe(be,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:ve,direction:De}=Oe.useContext(ne.E_),[pe,Se]=Oe.useState(Te.value||ye||[]),[Xe,et]=Oe.useState([]);Oe.useEffect(()=>{"value"in Te&&Se(Te.value||[])},[Te.value]);const je=Oe.useMemo(()=>q.map(m=>typeof m=="string"||typeof m=="number"?{label:m,value:m}:m),[q]),Ye=m=>{et(f=>f.filter(C=>C!==m))},_t=m=>{et(f=>[].concat((0,X.Z)(f),[m]))},kt=m=>{const f=pe.indexOf(m.value),C=(0,X.Z)(pe);f===-1?C.push(m.value):C.splice(f,1),"value"in Te||Se(C),xe==null||xe(C.filter(Y=>Xe.includes(Y)).sort((Y,Be)=>{const H=je.findIndex(Qe=>Qe.value===Y),ie=je.findIndex(Qe=>Qe.value===Be);return H-ie}))},Ot=ve("checkbox",de),sr=`${Ot}-group`,[rr,br]=(0,h.ZP)(Ot),lr=(0,Q.Z)(Te,["value","disabled"]),V=q.length?je.map(m=>Oe.createElement(L,{prefixCls:Ot,key:m.value.toString(),disabled:"disabled"in m?m.disabled:Te.disabled,value:m.value,checked:pe.includes(m.value),onChange:m.onChange,className:`${sr}-item`,style:m.style,title:m.title},m.label)):Ue,dt={toggleOption:kt,value:pe,disabled:Te.disabled,name:Te.name,registerValue:_t,cancelValue:Ye},I=Ae()(sr,{[`${sr}-rtl`]:De==="rtl"},D,qe,br);return rr(Oe.createElement("div",Object.assign({className:I,style:Me},lr,{ref:Ne}),Oe.createElement(M.Provider,{value:dt},V)))},re=Oe.forwardRef(ee);var G=Oe.memo(re);const K=L;K.Group=G,K.__ANT_CHECKBOX=!0;var le=K},98447:function(un,Ut,x){"use strict";x.d(Ut,{C2:function(){return ne}});var me=x(17313),Ae=x(37613),P=x(83116);const Oe=W=>{const{checkboxCls:S}=W,v=`${S}-wrapper`;return[{[`${S}-group`]:Object.assign(Object.assign({},(0,me.Wf)(W)),{display:"inline-flex",flexWrap:"wrap",columnGap:W.marginXS,[`> ${W.antCls}-row`]:{flex:1}}),[v]:Object.assign(Object.assign({},(0,me.Wf)(W)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${v}`]:{marginInlineStart:0},[`&${v}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[S]:Object.assign(Object.assign({},(0,me.Wf)(W)),{position:"relative",whiteSpace:"nowrap",lineHeight:1,cursor:"pointer",borderRadius:W.borderRadiusSM,alignSelf:"center",[`${S}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0,margin:0,[`&:focus-visible + ${S}-inner`]:Object.assign({},(0,me.oN)(W))},[`${S}-inner`]:{boxSizing:"border-box",position:"relative",top:0,insetInlineStart:0,display:"block",width:W.checkboxSize,height:W.checkboxSize,direction:"ltr",backgroundColor:W.colorBgContainer,border:`${W.lineWidth}px ${W.lineType} ${W.colorBorder}`,borderRadius:W.borderRadiusSM,borderCollapse:"separate",transition:`all ${W.motionDurationSlow}`,"&:after":{boxSizing:"border-box",position:"absolute",top:"50%",insetInlineStart:"21.5%",display:"table",width:W.checkboxSize/14*5,height:W.checkboxSize/14*8,border:`${W.lineWidthBold}px solid ${W.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${W.motionDurationFast} ${W.motionEaseInBack}, opacity ${W.motionDurationFast}`}},"& + span":{paddingInlineStart:W.paddingXS,paddingInlineEnd:W.paddingXS}})},{[`
${v}:not(${v}-disabled),
${S}:not(${S}-disabled)
`]:{[`&:hover ${S}-inner`]:{borderColor:W.colorPrimary}},[`${v}:not(${v}-disabled)`]:{[`&:hover ${S}-checked:not(${S}-disabled) ${S}-inner`]:{backgroundColor:W.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${S}-checked:not(${S}-disabled):after`]:{borderColor:W.colorPrimaryHover}}},{[`${S}-checked`]:{[`${S}-inner`]:{backgroundColor:W.colorPrimary,borderColor:W.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${W.motionDurationMid} ${W.motionEaseOutBack} ${W.motionDurationFast}`}}},[`
${v}-checked:not(${v}-disabled),
${S}-checked:not(${S}-disabled)
`]:{[`&:hover ${S}-inner`]:{backgroundColor:W.colorPrimaryHover,borderColor:"transparent"}}},{[S]:{"&-indeterminate":{[`${S}-inner`]:{backgroundColor:W.colorBgContainer,borderColor:W.colorBorder,"&:after":{top:"50%",insetInlineStart:"50%",width:W.fontSizeLG/2,height:W.fontSizeLG/2,backgroundColor:W.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}}}}},{[`${v}-disabled`]:{cursor:"not-allowed"},[`${S}-disabled`]:{[`&, ${S}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${S}-inner`]:{background:W.colorBgContainerDisabled,borderColor:W.colorBorder,"&:after":{borderColor:W.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:W.colorTextDisabled},[`&${S}-indeterminate ${S}-inner::after`]:{background:W.colorTextDisabled}}}]};function ne(W,S){const v=(0,Ae.TS)(S,{checkboxCls:`.${W}`,checkboxSize:S.controlInteractiveSize});return[Oe(v)]}Ut.ZP=(0,P.Z)("Checkbox",(W,S)=>{let{prefixCls:v}=S;return[ne(v,W)]})},93891:function(un,Ut,x){"use strict";var me=x(59301),Ae=x(36355),P=x(64165);const Oe=ne=>{const{componentName:W}=ne,{getPrefixCls:S}=(0,me.useContext)(Ae.E_),v=S("empty");switch(W){case"Table":case"List":return me.createElement(P.Z,{image:P.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return me.createElement(P.Z,{image:P.Z.PRESENTED_IMAGE_SIMPLE,className:`${v}-small`});default:return me.createElement(P.Z,null)}};Ut.Z=Oe},28103:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return _}});var me=x(92310),Ae=x.n(me),P=x(59301),Oe=x(36355),ne=x(17313),W=x(83116),S=x(37613);const v=F=>{const{componentCls:N,sizePaddingEdgeHorizontal:R,colorSplit:L,lineWidth:X,textPaddingInline:Q,orientationMargin:oe,verticalMarginInline:ee}=F;return{[N]:Object.assign(Object.assign({},(0,ne.Wf)(F)),{borderBlockStart:`${X}px solid ${L}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ee,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${X}px solid ${L}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${F.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${N}-with-text`]:{display:"flex",alignItems:"center",margin:`${F.dividerHorizontalWithTextGutterMargin}px 0`,color:F.colorTextHeading,fontWeight:500,fontSize:F.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${L}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${X}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${N}-with-text-left`]:{"&::before":{width:`${oe*100}%`},"&::after":{width:`${100-oe*100}%`}},[`&-horizontal${N}-with-text-right`]:{"&::before":{width:`${100-oe*100}%`},"&::after":{width:`${oe*100}%`}},[`${N}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Q},"&-dashed":{background:"none",borderColor:L,borderStyle:"dashed",borderWidth:`${X}px 0 0`},[`&-horizontal${N}-with-text${N}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${N}-dashed`]:{borderInlineStartWidth:X,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${N}-with-text`]:{color:F.colorText,fontWeight:"normal",fontSize:F.fontSize},[`&-horizontal${N}-with-text-left${N}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${N}-inner-text`]:{paddingInlineStart:R}},[`&-horizontal${N}-with-text-right${N}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${N}-inner-text`]:{paddingInlineEnd:R}}})}};var M=(0,W.Z)("Divider",F=>{const N=(0,S.TS)(F,{dividerHorizontalWithTextGutterMargin:F.margin,dividerHorizontalGutterMargin:F.marginLG,sizePaddingEdgeHorizontal:0});return[v(N)]},F=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:F.marginXS})),h=function(F,N){var R={};for(var L in F)Object.prototype.hasOwnProperty.call(F,L)&&N.indexOf(L)<0&&(R[L]=F[L]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var X=0,L=Object.getOwnPropertySymbols(F);X<L.length;X++)N.indexOf(L[X])<0&&Object.prototype.propertyIsEnumerable.call(F,L[X])&&(R[L[X]]=F[L[X]]);return R},_=F=>{const{getPrefixCls:N,direction:R,divider:L}=P.useContext(Oe.E_),{prefixCls:X,type:Q="horizontal",orientation:oe="center",orientationMargin:ee,className:re,rootClassName:G,children:K,dashed:le,plain:be,style:Ne}=F,ye=h(F,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Ue=N("divider",X),[q,de]=M(Ue),D=oe.length>0?`-${oe}`:oe,qe=!!K,Me=oe==="left"&&ee!=null,xe=oe==="right"&&ee!=null,Te=Ae()(Ue,L==null?void 0:L.className,de,`${Ue}-${Q}`,{[`${Ue}-with-text`]:qe,[`${Ue}-with-text${D}`]:qe,[`${Ue}-dashed`]:!!le,[`${Ue}-plain`]:!!be,[`${Ue}-rtl`]:R==="rtl",[`${Ue}-no-default-orientation-margin-left`]:Me,[`${Ue}-no-default-orientation-margin-right`]:xe},re,G),ve=P.useMemo(()=>typeof ee=="number"?ee:/^\d+$/.test(ee)?Number(ee):ee,[ee]),De=Object.assign(Object.assign({},Me&&{marginLeft:ve}),xe&&{marginRight:ve});return q(P.createElement("div",Object.assign({className:Te,style:Object.assign(Object.assign({},L==null?void 0:L.style),Ne)},ye,{role:"separator"}),K&&Q!=="vertical"&&P.createElement("span",{className:`${Ue}-inner-text`,style:De},K)))}},91857:function(un,Ut,x){"use strict";var me=x(59301),Ae=x(38819),P=x(92310),Oe=x.n(P),ne=x(31561),W=x(70425),S=x(18929),v=x(2738),M=x(79676),h=x(53487),$=x(92343),_=x(36355),F=x(20834),N=x(40875),R=x(88088),L=x(47211);const X=null,Q=G=>{const{menu:K,arrow:le,prefixCls:be,children:Ne,trigger:ye,disabled:Ue,dropdownRender:q,getPopupContainer:de,overlayClassName:D,rootClassName:qe,open:Me,onOpenChange:xe,visible:Te,onVisibleChange:ve,mouseEnterDelay:De=.15,mouseLeaveDelay:pe=.1,autoAdjustOverflow:Se=!0,placement:Xe="",overlay:et,transitionName:je}=G,{getPopupContainer:Ye,getPrefixCls:_t,direction:kt}=me.useContext(_.E_),Ot=me.useMemo(()=>{const ce=_t();return je!==void 0?je:Xe.includes("top")?`${ce}-slide-down`:`${ce}-slide-up`},[_t,Xe,je]),sr=me.useMemo(()=>Xe?Xe.includes("Center")?Xe.slice(0,Xe.indexOf("Center")):Xe:kt==="rtl"?"bottomRight":"bottomLeft",[Xe,kt]),rr=_t("dropdown",be),[br,lr]=(0,L.Z)(rr),[,V]=(0,R.Z)(),dt=me.Children.only(Ne),I=(0,$.Tm)(dt,{className:Oe()(`${rr}-trigger`,{[`${rr}-rtl`]:kt==="rtl"},dt.props.className),disabled:Ue}),m=Ue?[]:ye;let f;m&&m.includes("contextMenu")&&(f=!0);const[C,Y]=(0,S.Z)(!1,{value:Me!=null?Me:Te}),Be=(0,W.useEvent)(ce=>{xe==null||xe(ce),ve==null||ve(ce),Y(ce)}),H=Oe()(D,qe,lr,{[`${rr}-rtl`]:kt==="rtl"}),ie=(0,M.Z)({arrowPointAtCenter:typeof le=="object"&&le.pointAtCenter,autoAdjustOverflow:Se,offset:V.marginXXS,arrowWidth:le?V.sizePopupArrow:0,borderRadius:V.borderRadius}),Qe=me.useCallback(()=>{Y(!1)},[]),we=()=>{let ce;return K!=null&&K.items?ce=me.createElement(F.default,Object.assign({},K)):typeof et=="function"?ce=et():ce=et,q&&(ce=q(ce)),ce=me.Children.only(typeof ce=="string"?me.createElement("span",null,ce):ce),me.createElement(N.J,{prefixCls:`${rr}-menu`,expandIcon:me.createElement("span",{className:`${rr}-menu-submenu-arrow`},me.createElement(Ae.Z,{className:`${rr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Qe,validator:ze=>{let{mode:vt}=ze}},ce)};return br(me.createElement(ne.Z,Object.assign({alignPoint:f},(0,v.Z)(G,["rootClassName"]),{mouseEnterDelay:De,mouseLeaveDelay:pe,visible:C,builtinPlacements:ie,arrow:!!le,overlayClassName:H,prefixCls:rr,getPopupContainer:de||Ye,transitionName:Ot,trigger:m,overlay:we,placement:sr,onVisibleChange:Be}),I))};function oe(G){return Object.assign(Object.assign({},G),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ee=(0,h.Z)(Q,"dropdown",G=>G,oe),re=G=>me.createElement(ee,Object.assign({},G),me.createElement("span",null));Q._InternalPanelDoNotUseOrYouWillBeFired=re,Ut.Z=Q},38854:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return R}});var me=x(91857),Ae=x(92310),P=x.n(Ae),Oe=x(59301),ne=x(18785),W=x(3113),S=x(36355),v=x(81327),M=x(33234),h=x(47211),$=function(L,X){var Q={};for(var oe in L)Object.prototype.hasOwnProperty.call(L,oe)&&X.indexOf(oe)<0&&(Q[oe]=L[oe]);if(L!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,oe=Object.getOwnPropertySymbols(L);ee<oe.length;ee++)X.indexOf(oe[ee])<0&&Object.prototype.propertyIsEnumerable.call(L,oe[ee])&&(Q[oe[ee]]=L[oe[ee]]);return Q};const _=L=>{const{getPopupContainer:X,getPrefixCls:Q,direction:oe}=Oe.useContext(S.E_),{prefixCls:ee,type:re="default",danger:G,disabled:K,loading:le,onClick:be,htmlType:Ne,children:ye,className:Ue,menu:q,arrow:de,autoFocus:D,overlay:qe,trigger:Me,align:xe,open:Te,onOpenChange:ve,placement:De,getPopupContainer:pe,href:Se,icon:Xe=Oe.createElement(ne.Z,null),title:et,buttonsRender:je=we=>we,mouseEnterDelay:Ye,mouseLeaveDelay:_t,overlayClassName:kt,overlayStyle:Ot,destroyPopupOnHide:sr,dropdownRender:rr}=L,br=$(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=Q("dropdown",ee),V=`${lr}-button`,[dt,I]=(0,h.Z)(lr),m={menu:q,arrow:de,autoFocus:D,align:xe,disabled:K,trigger:K?[]:Me,onOpenChange:ve,getPopupContainer:pe||X,mouseEnterDelay:Ye,mouseLeaveDelay:_t,overlayClassName:kt,overlayStyle:Ot,destroyPopupOnHide:sr,dropdownRender:rr},{compactSize:f,compactItemClassnames:C}=(0,M.ri)(lr,oe),Y=P()(V,C,Ue,I);"overlay"in L&&(m.overlay=qe),"open"in L&&(m.open=Te),"placement"in L?m.placement=De:m.placement=oe==="rtl"?"bottomLeft":"bottomRight";const Be=Oe.createElement(W.ZP,{type:re,danger:G,disabled:K,loading:le,onClick:be,htmlType:Ne,href:Se,title:et},ye),H=Oe.createElement(W.ZP,{type:re,danger:G,icon:Xe}),[ie,Qe]=je([Be,H]);return dt(Oe.createElement(v.Z.Compact,Object.assign({className:Y,size:f,block:!0},br),ie,Oe.createElement(me.Z,Object.assign({},m),Qe)))};_.__ANT_BUTTON=!0;var F=_;const N=me.Z;N.Button=F;var R=N},47211:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return $}});var me=x(17313),Ae=x(13826),P=x(92899),Oe=x(29878),ne=x(19447),W=x(83116),S=x(37613),M=_=>{const{componentCls:F,menuCls:N,colorError:R,colorTextLightSolid:L}=_,X=`${N}-item`;return{[`${F}, ${F}-menu-submenu`]:{[`${N} ${X}`]:{[`&${X}-danger:not(${X}-disabled)`]:{color:R,"&:hover":{color:L,backgroundColor:R}}}}}};const h=_=>{const{componentCls:F,menuCls:N,zIndexPopup:R,dropdownArrowDistance:L,sizePopupArrow:X,antCls:Q,iconCls:oe,motionDurationMid:ee,dropdownPaddingVertical:re,fontSize:G,dropdownEdgeChildPadding:K,colorTextDisabled:le,fontSizeIcon:be,controlPaddingHorizontal:Ne,colorBgElevated:ye}=_;return[{[F]:Object.assign(Object.assign({},(0,me.Wf)(_)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:R,display:"block","&::before":{position:"absolute",insetBlock:-L+X/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Q}-btn`]:{[`& > ${oe}-down, & > ${Q}-btn-icon > ${oe}-down`]:{fontSize:be}},[`${F}-wrap`]:{position:"relative",[`${Q}-btn > ${oe}-down`]:{fontSize:be},[`${oe}-down::before`]:{transition:`transform ${ee}`}},[`${F}-wrap-open`]:{[`${oe}-down::before`]:{transform:"rotate(180deg)"}},"\n &-hidden,\n &-menu-hidden,\n &-menu-submenu-hidden\n ":{display:"none"},[`&${Q}-slide-down-enter${Q}-slide-down-enter-active${F}-placement-bottomLeft,
&${Q}-slide-down-appear${Q}-slide-down-appear-active${F}-placement-bottomLeft,
&${Q}-slide-down-enter${Q}-slide-down-enter-active${F}-placement-bottom,
&${Q}-slide-down-appear${Q}-slide-down-appear-active${F}-placement-bottom,
&${Q}-slide-down-enter${Q}-slide-down-enter-active${F}-placement-bottomRight,
&${Q}-slide-down-appear${Q}-slide-down-appear-active${F}-placement-bottomRight`]:{animationName:Ae.fJ},[`&${Q}-slide-up-enter${Q}-slide-up-enter-active${F}-placement-topLeft,
&${Q}-slide-up-appear${Q}-slide-up-appear-active${F}-placement-topLeft,
&${Q}-slide-up-enter${Q}-slide-up-enter-active${F}-placement-top,
&${Q}-slide-up-appear${Q}-slide-up-appear-active${F}-placement-top,
&${Q}-slide-up-enter${Q}-slide-up-enter-active${F}-placement-topRight,
&${Q}-slide-up-appear${Q}-slide-up-appear-active${F}-placement-topRight`]:{animationName:Ae.Qt},[`&${Q}-slide-down-leave${Q}-slide-down-leave-active${F}-placement-bottomLeft,
&${Q}-slide-down-leave${Q}-slide-down-leave-active${F}-placement-bottom,
&${Q}-slide-down-leave${Q}-slide-down-leave-active${F}-placement-bottomRight`]:{animationName:Ae.Uw},[`&${Q}-slide-up-leave${Q}-slide-up-leave-active${F}-placement-topLeft,
&${Q}-slide-up-leave${Q}-slide-up-leave-active${F}-placement-top,
&${Q}-slide-up-leave${Q}-slide-up-leave-active${F}-placement-topRight`]:{animationName:Ae.ly}})},(0,ne.ZP)(_,{colorBg:ye,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${F} ${N}`]:{position:"relative",margin:0},[`${N}-submenu-popup`]:{position:"absolute",zIndex:R,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${F}, ${F}-menu-submenu`]:{[N]:Object.assign(Object.assign({padding:K,listStyleType:"none",backgroundColor:ye,backgroundClip:"padding-box",borderRadius:_.borderRadiusLG,outline:"none",boxShadow:_.boxShadowSecondary},(0,me.Qy)(_)),{[`${N}-item-group-title`]:{padding:`${re}px ${Ne}px`,color:_.colorTextDescription,transition:`all ${ee}`},[`${N}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${N}-item-icon`]:{minWidth:G,marginInlineEnd:_.marginXS,fontSize:_.fontSizeSM},[`${N}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ee}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${N}-item, ${N}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${re}px ${Ne}px`,color:_.colorText,fontWeight:"normal",fontSize:G,lineHeight:_.lineHeight,cursor:"pointer",transition:`all ${ee}`,borderRadius:_.borderRadiusSM,"&:hover, &-active":{backgroundColor:_.controlItemBgHover}},(0,me.Qy)(_)),{"&-selected":{color:_.colorPrimary,backgroundColor:_.controlItemBgActive,"&:hover, &-active":{backgroundColor:_.controlItemBgActiveHover}},"&-disabled":{color:le,cursor:"not-allowed","&:hover":{color:le,backgroundColor:ye,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${_.marginXXS}px 0`,overflow:"hidden",lineHeight:0,backgroundColor:_.colorSplit},[`${F}-menu-submenu-expand-icon`]:{position:"absolute",insetInlineEnd:_.paddingXS,[`${F}-menu-submenu-arrow-icon`]:{marginInlineEnd:"0 !important",color:_.colorTextDescription,fontSize:be,fontStyle:"normal"}}}),[`${N}-item-group-list`]:{margin:`0 ${_.marginXS}px`,padding:0,listStyle:"none"},[`${N}-submenu-title`]:{paddingInlineEnd:Ne+_.fontSizeSM},[`${N}-submenu-vertical`]:{position:"relative"},[`${N}-submenu${N}-submenu-disabled ${F}-menu-submenu-title`]:{[`&, ${F}-menu-submenu-arrow-icon`]:{color:le,backgroundColor:ye,cursor:"not-allowed"}},[`${N}-submenu-selected ${F}-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,Oe._y)(_,"zoom-big")]]};var $=(0,W.Z)("Dropdown",(_,F)=>{let{rootPrefixCls:N}=F;const{marginXXS:R,sizePopupArrow:L,controlHeight:X,fontSize:Q,lineHeight:oe,paddingXXS:ee,componentCls:re,borderRadiusLG:G}=_,K=(X-Q*oe)/2,{dropdownArrowOffset:le}=(0,ne.fS)({contentRadius:G}),be=(0,S.TS)(_,{menuCls:`${re}-menu`,rootPrefixCls:N,dropdownArrowDistance:L/2+R,dropdownArrowOffset:le,dropdownPaddingVertical:K,dropdownEdgeChildPadding:ee});return[h(be),M(be)]},_=>({zIndexPopup:_.zIndexPopupBase+50}))},64165:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return ee}});var me=x(92310),Ae=x.n(me),P=x(59301),Oe=x(36355),ne=x(9763),W=x(64993),S=x(88088),M=()=>{const[,re]=(0,S.Z)(),K=new W.C(re.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[,re]=(0,S.Z)(),{colorFill:G,colorFillTertiary:K,colorFillQuaternary:le,colorBgContainer:be}=re,{borderColor:Ne,shadowColor:ye,contentColor:Ue}=(0,P.useMemo)(()=>({borderColor:new W.C(G).onBackground(be).toHexShortString(),shadowColor:new W.C(K).onBackground(be).toHexShortString(),contentColor:new W.C(le).onBackground(be).toHexShortString()}),[G,K,le,be]);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:ye,cx:"32",cy:"33",rx:"32",ry:"7"}),P.createElement("g",{fillRule:"nonzero",stroke:Ne},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),F=x(37613);const N=re=>{const{componentCls:G,margin:K,marginXS:le,marginXL:be,fontSize:Ne,lineHeight:ye}=re;return{[G]:{marginInline:le,fontSize:Ne,lineHeight:ye,textAlign:"center",[`${G}-image`]:{height:re.emptyImgHeight,marginBottom:le,opacity:re.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${G}-description`]:{color:re.colorText},[`${G}-footer`]:{marginTop:K},"&-normal":{marginBlock:be,color:re.colorTextDisabled,[`${G}-description`]:{color:re.colorTextDisabled},[`${G}-image`]:{height:re.emptyImgHeightMD}},"&-small":{marginBlock:le,color:re.colorTextDisabled,[`${G}-image`]:{height:re.emptyImgHeightSM}}}}};var R=(0,_.Z)("Empty",re=>{const{componentCls:G,controlHeightLG:K}=re,le=(0,F.TS)(re,{emptyImgCls:`${G}-img`,emptyImgHeight:K*2.5,emptyImgHeightMD:K,emptyImgHeightSM:K*.875});return[N(le)]}),L=function(re,G){var K={};for(var le in re)Object.prototype.hasOwnProperty.call(re,le)&&G.indexOf(le)<0&&(K[le]=re[le]);if(re!=null&&typeof Object.getOwnPropertySymbols=="function")for(var be=0,le=Object.getOwnPropertySymbols(re);be<le.length;be++)G.indexOf(le[be])<0&&Object.prototype.propertyIsEnumerable.call(re,le[be])&&(K[le[be]]=re[le[be]]);return K};const X=P.createElement(M,null),Q=P.createElement($,null),oe=re=>{var{className:G,rootClassName:K,prefixCls:le,image:be=X,description:Ne,children:ye,imageStyle:Ue,style:q}=re,de=L(re,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:D,direction:qe,empty:Me}=P.useContext(Oe.E_),xe=D("empty",le),[Te,ve]=R(xe),[De]=(0,ne.Z)("Empty"),pe=typeof Ne!="undefined"?Ne:De==null?void 0:De.description,Se=typeof pe=="string"?pe:"empty";let Xe=null;return typeof be=="string"?Xe=P.createElement("img",{alt:Se,src:be}):Xe=be,Te(P.createElement("div",Object.assign({className:Ae()(ve,xe,Me==null?void 0:Me.className,{[`${xe}-normal`]:be===Q,[`${xe}-rtl`]:qe==="rtl"},G,K),style:Object.assign(Object.assign({},Me==null?void 0:Me.style),q)},de),P.createElement("div",{className:`${xe}-image`,style:Ue},Xe),pe&&P.createElement("div",{className:`${xe}-description`},pe),ye&&P.createElement("div",{className:`${xe}-footer`},ye)))};oe.PRESENTED_IMAGE_DEFAULT=X,oe.PRESENTED_IMAGE_SIMPLE=Q;var ee=oe},8628:function(un,Ut,x){"use strict";var me=x(59301),Ae=x(34280),P=x(56762),Oe=x(69507);function ne(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const S=(0,me.useRef)({}),v=(0,P.Z)(),M=(0,Oe.ZP)();return(0,Ae.Z)(()=>{const h=M.subscribe($=>{S.current=$,W&&v()});return()=>M.unsubscribe(h)},[]),S.current}Ut.Z=ne},5871:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return rt}});var me=x(84105),Ae=x(87395),P=x(92310),Oe=x.n(P),ne=x(54476),W=x(20068),S=x(76190),v=x(42978),M=x(75931),h=x(67732),$=x(83652);function _(){return typeof BigInt=="function"}function F(ke){return!ke&&ke!==0&&!Number.isNaN(ke)||!String(ke).trim()}function N(ke){var Fe=ke.trim(),ct=Fe.startsWith("-");ct&&(Fe=Fe.slice(1)),Fe=Fe.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Fe.startsWith(".")&&(Fe="0".concat(Fe));var Tt=Fe||"0",Pt=Tt.split("."),Yt=Pt[0]||"0",Fr=Pt[1]||"0";Yt==="0"&&Fr==="0"&&(ct=!1);var Lr=ct?"-":"";return{negative:ct,negativeStr:Lr,trimStr:Tt,integerStr:Yt,decimalStr:Fr,fullStr:"".concat(Lr).concat(Tt)}}function R(ke){var Fe=String(ke);return!Number.isNaN(Number(Fe))&&Fe.includes("e")}function L(ke){var Fe=String(ke);if(R(ke)){var ct=Number(Fe.slice(Fe.indexOf("e-")+2)),Tt=Fe.match(/\.(\d+)/);return Tt!=null&&Tt[1]&&(ct+=Tt[1].length),ct}return Fe.includes(".")&&Q(Fe)?Fe.length-Fe.indexOf(".")-1:0}function X(ke){var Fe=String(ke);if(R(ke)){if(ke>Number.MAX_SAFE_INTEGER)return String(_()?BigInt(ke).toString():Number.MAX_SAFE_INTEGER);if(ke<Number.MIN_SAFE_INTEGER)return String(_()?BigInt(ke).toString():Number.MIN_SAFE_INTEGER);Fe=ke.toFixed(L(Fe))}return N(Fe).fullStr}function Q(ke){return typeof ke=="number"?!Number.isNaN(ke):ke?/^\s*-?\d+(\.\d+)?\s*$/.test(ke)||/^\s*-?\d+\.\s*$/.test(ke)||/^\s*-?\.\d+\s*$/.test(ke):!1}var oe=function(){function ke(Fe){if((0,h.Z)(this,ke),(0,W.Z)(this,"origin",""),(0,W.Z)(this,"negative",void 0),(0,W.Z)(this,"integer",void 0),(0,W.Z)(this,"decimal",void 0),(0,W.Z)(this,"decimalLen",void 0),(0,W.Z)(this,"empty",void 0),(0,W.Z)(this,"nan",void 0),F(Fe)){this.empty=!0;return}if(this.origin=String(Fe),Fe==="-"||Number.isNaN(Fe)){this.nan=!0;return}var ct=Fe;if(R(ct)&&(ct=Number(ct)),ct=typeof ct=="string"?ct:X(ct),Q(ct)){var Tt=N(ct);this.negative=Tt.negative;var Pt=Tt.trimStr.split(".");this.integer=BigInt(Pt[0]);var Yt=Pt[1]||"0";this.decimal=BigInt(Yt),this.decimalLen=Yt.length}else this.nan=!0}return(0,$.Z)(ke,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(ct){var Tt="".concat(this.getMark()).concat(this.getIntegerStr()).concat(this.getDecimalStr().padEnd(ct,"0"));return BigInt(Tt)}},{key:"negate",value:function(){var ct=new ke(this.toString());return ct.negative=!ct.negative,ct}},{key:"cal",value:function(ct,Tt,Pt){var Yt=Math.max(this.getDecimalStr().length,ct.getDecimalStr().length),Fr=this.alignDecimal(Yt),Lr=ct.alignDecimal(Yt),Nr=Tt(Fr,Lr).toString(),kr=Pt(Yt),yr=N(Nr),dr=yr.negativeStr,Qr=yr.trimStr,An="".concat(dr).concat(Qr.padStart(kr+1,"0"));return new ke("".concat(An.slice(0,-kr),".").concat(An.slice(-kr)))}},{key:"add",value:function(ct){if(this.isInvalidate())return new ke(ct);var Tt=new ke(ct);return Tt.isInvalidate()?this:this.cal(Tt,function(Pt,Yt){return Pt+Yt},function(Pt){return Pt})}},{key:"multi",value:function(ct){var Tt=new ke(ct);return this.isInvalidate()||Tt.isInvalidate()?new ke(NaN):this.cal(Tt,function(Pt,Yt){return Pt*Yt},function(Pt){return Pt*2})}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return this.nan}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(ct){return this.toString()===(ct==null?void 0:ct.toString())}},{key:"lessEquals",value:function(ct){return this.add(ct.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.isNaN()?NaN:Number(this.toString())}},{key:"toString",value:function(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return ct?this.isInvalidate()?"":N("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),ke}(),ee=function(){function ke(Fe){if((0,h.Z)(this,ke),(0,W.Z)(this,"origin",""),(0,W.Z)(this,"number",void 0),(0,W.Z)(this,"empty",void 0),F(Fe)){this.empty=!0;return}this.origin=String(Fe),this.number=Number(Fe)}return(0,$.Z)(ke,[{key:"negate",value:function(){return new ke(-this.toNumber())}},{key:"add",value:function(ct){if(this.isInvalidate())return new ke(ct);var Tt=Number(ct);if(Number.isNaN(Tt))return this;var Pt=this.number+Tt;if(Pt>Number.MAX_SAFE_INTEGER)return new ke(Number.MAX_SAFE_INTEGER);if(Pt<Number.MIN_SAFE_INTEGER)return new ke(Number.MIN_SAFE_INTEGER);var Yt=Math.max(L(this.number),L(Tt));return new ke(Pt.toFixed(Yt))}},{key:"multi",value:function(ct){var Tt=Number(ct);if(this.isInvalidate()||Number.isNaN(Tt))return new ke(NaN);var Pt=this.number*Tt;if(Pt>Number.MAX_SAFE_INTEGER)return new ke(Number.MAX_SAFE_INTEGER);if(Pt<Number.MIN_SAFE_INTEGER)return new ke(Number.MIN_SAFE_INTEGER);var Yt=Math.max(L(this.number),L(Tt));return new ke(Pt.toFixed(Yt))}},{key:"isEmpty",value:function(){return this.empty}},{key:"isNaN",value:function(){return Number.isNaN(this.number)}},{key:"isInvalidate",value:function(){return this.isEmpty()||this.isNaN()}},{key:"equals",value:function(ct){return this.toNumber()===(ct==null?void 0:ct.toNumber())}},{key:"lessEquals",value:function(ct){return this.add(ct.negate().toString()).toNumber()<=0}},{key:"toNumber",value:function(){return this.number}},{key:"toString",value:function(){var ct=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return ct?this.isInvalidate()?"":X(this.number):this.origin}}]),ke}();function re(ke){return _()?new oe(ke):new ee(ke)}function G(ke,Fe,ct){var Tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(ke==="")return"";var Pt=N(ke),Yt=Pt.negativeStr,Fr=Pt.integerStr,Lr=Pt.decimalStr,Nr="".concat(Fe).concat(Lr),kr="".concat(Yt).concat(Fr);if(ct>=0){var yr=Number(Lr[ct]);if(yr>=5&&!Tt){var dr=re(ke).add("".concat(Yt,"0.").concat("0".repeat(ct)).concat(10-yr));return G(dr.toString(),Fe,ct,Tt)}return ct===0?kr:"".concat(kr).concat(Fe).concat(Lr.padEnd(ct,"0").slice(0,ct))}return Nr===".0"?kr:"".concat(kr).concat(Nr)}var K=re,le=x(93681),be=x(34280),Ne=x(8654),ye=x(59301),Ue=x(48736);function q(ke,Fe){var ct=(0,ye.useRef)(null);function Tt(){try{var Yt=ke.selectionStart,Fr=ke.selectionEnd,Lr=ke.value,Nr=Lr.substring(0,Yt),kr=Lr.substring(Fr);ct.current={start:Yt,end:Fr,value:Lr,beforeTxt:Nr,afterTxt:kr}}catch(yr){}}function Pt(){if(ke&&ct.current&&Fe)try{var Yt=ke.value,Fr=ct.current,Lr=Fr.beforeTxt,Nr=Fr.afterTxt,kr=Fr.start,yr=Yt.length;if(Yt.endsWith(Nr))yr=Yt.length-ct.current.afterTxt.length;else if(Yt.startsWith(Lr))yr=Lr.length;else{var dr=Lr[kr-1],Qr=Yt.indexOf(dr,kr-1);Qr!==-1&&(yr=Qr+1)}ke.setSelectionRange(yr,yr)}catch(An){(0,Ue.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(An.message))}}return[Tt,Pt]}var de=x(49658),D=function(){var Fe=(0,ye.useState)(!1),ct=(0,v.Z)(Fe,2),Tt=ct[0],Pt=ct[1];return(0,be.Z)(function(){Pt((0,de.Z)())},[]),Tt},qe=D,Me=x(16089),xe=200,Te=600;function ve(ke){var Fe=ke.prefixCls,ct=ke.upNode,Tt=ke.downNode,Pt=ke.upDisabled,Yt=ke.downDisabled,Fr=ke.onStep,Lr=ye.useRef(),Nr=ye.useRef([]),kr=ye.useRef();kr.current=Fr;var yr=function(){clearTimeout(Lr.current)},dr=function(wn,Si){wn.preventDefault(),yr(),kr.current(Si);function ui(){kr.current(Si),Lr.current=setTimeout(ui,xe)}Lr.current=setTimeout(ui,Te)};ye.useEffect(function(){return function(){yr(),Nr.current.forEach(function(Pr){return Me.Z.cancel(Pr)})}},[]);var Qr=qe();if(Qr)return null;var An="".concat(Fe,"-handler"),Tn=Oe()(An,"".concat(An,"-up"),(0,W.Z)({},"".concat(An,"-up-disabled"),Pt)),dn=Oe()(An,"".concat(An,"-down"),(0,W.Z)({},"".concat(An,"-down-disabled"),Yt)),kn=function(){return Nr.current.push((0,Me.Z)(yr))},Qi={unselectable:"on",role:"button",onMouseUp:kn,onMouseLeave:kn};return ye.createElement("div",{className:"".concat(An,"-wrap")},ye.createElement("span",(0,ne.Z)({},Qi,{onMouseDown:function(wn){dr(wn,!0)},"aria-label":"Increase Value","aria-disabled":Pt,className:Tn}),ct||ye.createElement("span",{unselectable:"on",className:"".concat(Fe,"-handler-up-inner")})),ye.createElement("span",(0,ne.Z)({},Qi,{onMouseDown:function(wn){dr(wn,!1)},"aria-label":"Decrease Value","aria-disabled":Yt,className:dn}),Tt||ye.createElement("span",{unselectable:"on",className:"".concat(Fe,"-handler-down-inner")})))}function De(ke){var Fe=typeof ke=="number"?X(ke):N(ke).fullStr,ct=Fe.includes(".");return ct?N(Fe.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:ke+"0"}var pe=x(5643),Se=function(){var ke=(0,ye.useRef)(0),Fe=function(){Me.Z.cancel(ke.current)};return(0,ye.useEffect)(function(){return Fe},[]),function(ct){Fe(),ke.current=(0,Me.Z)(function(){ct()})}},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"],je=function(Fe,ct){return Fe||ct.isEmpty()?ct.toString():ct.toNumber()},Ye=function(Fe){var ct=K(Fe);return ct.isInvalidate()?null:ct},_t=ye.forwardRef(function(ke,Fe){var ct,Tt=ke.prefixCls,Pt=Tt===void 0?"rc-input-number":Tt,Yt=ke.className,Fr=ke.style,Lr=ke.min,Nr=ke.max,kr=ke.step,yr=kr===void 0?1:kr,dr=ke.defaultValue,Qr=ke.value,An=ke.disabled,Tn=ke.readOnly,dn=ke.upHandler,kn=ke.downHandler,Qi=ke.keyboard,Pr=ke.controls,wn=Pr===void 0?!0:Pr,Si=ke.classNames,ui=ke.stringMode,Zi=ke.parser,Ei=ke.formatter,ji=ke.precision,eo=ke.decimalSeparator,Ki=ke.onChange,ei=ke.onInput,pi=ke.onPressEnter,vi=ke.onStep,$e=(0,M.Z)(ke,Xe),_e="".concat(Pt,"-input"),Le=ye.useRef(null),Ie=ye.useState(!1),Dt=(0,v.Z)(Ie,2),Mt=Dt[0],Sr=Dt[1],nr=ye.useRef(!1),Dr=ye.useRef(!1),Hr=ye.useRef(!1),an=ye.useState(function(){return K(Qr!=null?Qr:dr)}),jr=(0,v.Z)(an,2),Rr=jr[0],en=jr[1];function yn(fn){Qr===void 0&&en(fn)}var on=ye.useCallback(function(fn,sn){if(!sn)return ji>=0?ji:Math.max(L(fn),L(yr))},[ji,yr]),Dn=ye.useCallback(function(fn){var sn=String(fn);if(Zi)return Zi(sn);var Xn=sn;return eo&&(Xn=Xn.replace(eo,".")),Xn.replace(/[^\w.-]+/g,"")},[Zi,eo]),Qn=ye.useRef(""),Ai=ye.useCallback(function(fn,sn){if(Ei)return Ei(fn,{userTyping:sn,input:String(Qn.current)});var Xn=typeof fn=="number"?X(fn):fn;if(!sn){var Kn=on(Xn,sn);if(Q(Xn)&&(eo||Kn>=0)){var di=eo||".";Xn=G(Xn,di,Kn)}}return Xn},[Ei,on,eo]),On=ye.useState(function(){var fn=dr!=null?dr:Qr;return Rr.isInvalidate()&&["string","number"].includes((0,S.Z)(fn))?Number.isNaN(fn)?"":fn:Ai(Rr.toString(),!1)}),Gn=(0,v.Z)(On,2),Vt=Gn[0],Xt=Gn[1];Qn.current=Vt;function er(fn,sn){Xt(Ai(fn.isInvalidate()?fn.toString(!1):fn.toString(!sn),sn))}var fr=ye.useMemo(function(){return Ye(Nr)},[Nr,ji]),Rt=ye.useMemo(function(){return Ye(Lr)},[Lr,ji]),Jt=ye.useMemo(function(){return!fr||!Rr||Rr.isInvalidate()?!1:fr.lessEquals(Rr)},[fr,Rr]),ar=ye.useMemo(function(){return!Rt||!Rr||Rr.isInvalidate()?!1:Rr.lessEquals(Rt)},[Rt,Rr]),Or=q(Le.current,Mt),bn=(0,v.Z)(Or,2),Cn=bn[0],li=bn[1],ri=function(sn){return fr&&!sn.lessEquals(fr)?fr:Rt&&!Rt.lessEquals(sn)?Rt:null},_i=function(sn){return!ri(sn)},Yn=function(sn,Xn){var Kn=sn,di=_i(Kn)||Kn.isEmpty();if(!Kn.isEmpty()&&!Xn&&(Kn=ri(Kn)||Kn,di=!0),!Tn&&!An&&di){var qi=Kn.toString(),Fi=on(qi,Xn);return Fi>=0&&(Kn=K(G(qi,".",Fi)),_i(Kn)||(Kn=K(G(qi,".",Fi,!0)))),Kn.equals(Rr)||(yn(Kn),Ki==null||Ki(Kn.isEmpty()?null:je(ui,Kn)),Qr===void 0&&er(Kn,Xn)),Kn}return Rr},zn=Se(),yi=function fn(sn){if(Cn(),Qn.current=sn,Xt(sn),!Dr.current){var Xn=Dn(sn),Kn=K(Xn);Kn.isNaN()||Yn(Kn,!0)}ei==null||ei(sn),zn(function(){var di=sn;Zi||(di=sn.replace(/。/g,".")),di!==sn&&fn(di)})},bi=function(){Dr.current=!0},wi=function(){Dr.current=!1,yi(Le.current.value)},ci=function(sn){yi(sn.target.value)},xi=function(sn){var Xn;if(!(sn&&Jt||!sn&&ar)){nr.current=!1;var Kn=K(Hr.current?De(yr):yr);sn||(Kn=Kn.negate());var di=(Rr||K(0)).add(Kn.toString()),qi=Yn(di,!1);vi==null||vi(je(ui,qi),{offset:Hr.current?De(yr):yr,type:sn?"up":"down"}),(Xn=Le.current)===null||Xn===void 0||Xn.focus()}},Xi=function(sn){var Xn=K(Dn(Vt)),Kn=Xn;Xn.isNaN()?Kn=Yn(Rr,sn):Kn=Yn(Xn,sn),Qr!==void 0?er(Rr,!1):Kn.isNaN()||er(Kn,!1)},ti=function(){nr.current=!0},Ti=function(sn){var Xn=sn.key,Kn=sn.shiftKey;nr.current=!0,Hr.current=Kn,Xn==="Enter"&&(Dr.current||(nr.current=!1),Xi(!1),pi==null||pi(sn)),Qi!==!1&&!Dr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Xn)&&(xi(Xn==="Up"||Xn==="ArrowUp"),sn.preventDefault())},za=function(){nr.current=!1,Hr.current=!1},si=function(){Xi(!1),Sr(!1),nr.current=!1};return(0,be.o)(function(){Rr.isInvalidate()||er(Rr,!1)},[ji]),(0,be.o)(function(){var fn=K(Qr);en(fn);var sn=K(Dn(Vt));(!fn.equals(sn)||!nr.current||Ei)&&er(fn,nr.current)},[Qr]),(0,be.o)(function(){Ei&&li()},[Vt]),ye.createElement("div",{className:Oe()(Pt,Si==null?void 0:Si.input,Yt,(ct={},(0,W.Z)(ct,"".concat(Pt,"-focused"),Mt),(0,W.Z)(ct,"".concat(Pt,"-disabled"),An),(0,W.Z)(ct,"".concat(Pt,"-readonly"),Tn),(0,W.Z)(ct,"".concat(Pt,"-not-a-number"),Rr.isNaN()),(0,W.Z)(ct,"".concat(Pt,"-out-of-range"),!Rr.isInvalidate()&&!_i(Rr)),ct)),style:Fr,onFocus:function(){Sr(!0)},onBlur:si,onKeyDown:Ti,onKeyUp:za,onCompositionStart:bi,onCompositionEnd:wi,onBeforeInput:ti},wn&&ye.createElement(ve,{prefixCls:Pt,upNode:dn,downNode:kn,upDisabled:Jt,downDisabled:ar,onStep:xi}),ye.createElement("div",{className:"".concat(_e,"-wrap")},ye.createElement("input",(0,ne.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Lr,"aria-valuemax":Nr,"aria-valuenow":Rr.isInvalidate()?null:Rr.toString(),step:yr},$e,{ref:(0,Ne.sQ)(Le,Fe),className:_e,value:Vt,onChange:ci,disabled:An,readOnly:Tn}))))}),kt=ye.forwardRef(function(ke,Fe){var ct=ke.disabled,Tt=ke.style,Pt=ke.prefixCls,Yt=ke.value,Fr=ke.prefix,Lr=ke.suffix,Nr=ke.addonBefore,kr=ke.addonAfter,yr=ke.classes,dr=ke.className,Qr=ke.classNames,An=(0,M.Z)(ke,et),Tn=ye.useRef(null),dn=function(Qi){Tn.current&&(0,pe.nH)(Tn.current,Qi)};return ye.createElement(le.BaseInput,{inputElement:ye.createElement(_t,(0,ne.Z)({prefixCls:Pt,disabled:ct,classNames:Qr,ref:(0,Ne.sQ)(Tn,Fe)},An)),className:dr,triggerFocus:dn,prefixCls:Pt,value:Yt,disabled:ct,style:Tt,prefix:Fr,suffix:Lr,addonAfter:kr,addonBefore:Nr,classes:yr,classNames:Qr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});kt.displayName="InputNumber";var Ot=kt,sr=Ot,rr=x(19080),br=x(36355),lr=x(92736),V=x(1684),dt=x(19716),I=x(32441),m=x(33234),f=x(9937),C=x(17313),Y=x(74207),Be=x(83116),H=x(37613);const ie=(ke,Fe)=>{let{componentCls:ct,borderRadiusSM:Tt,borderRadiusLG:Pt}=ke;const Yt=Fe==="lg"?Pt:Tt;return{[`&-${Fe}`]:{[`${ct}-handler-wrap`]:{borderStartEndRadius:Yt,borderEndEndRadius:Yt},[`${ct}-handler-up`]:{borderStartEndRadius:Yt},[`${ct}-handler-down`]:{borderEndEndRadius:Yt}}}},Qe=ke=>{const{componentCls:Fe,lineWidth:ct,lineType:Tt,colorBorder:Pt,borderRadius:Yt,fontSizeLG:Fr,controlHeightLG:Lr,controlHeightSM:Nr,colorError:kr,paddingInlineSM:yr,colorTextDescription:dr,motionDurationMid:Qr,handleHoverColor:An,paddingInline:Tn,paddingBlock:dn,handleBg:kn,handleActiveBg:Qi,colorTextDisabled:Pr,borderRadiusSM:wn,borderRadiusLG:Si,controlWidth:ui,handleVisible:Zi,handleBorderColor:Ei}=ke;return[{[Fe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(ke)),(0,f.ik)(ke)),(0,f.bi)(ke,Fe)),{display:"inline-block",width:ui,margin:0,padding:0,border:`${ct}px ${Tt} ${Pt}`,borderRadius:Yt,"&-rtl":{direction:"rtl",[`${Fe}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:Fr,borderRadius:Si,[`input${Fe}-input`]:{height:Lr-2*ct}},"&-sm":{padding:0,borderRadius:wn,[`input${Fe}-input`]:{height:Nr-2*ct,padding:`0 ${yr}px`}},"&:hover":Object.assign({},(0,f.pU)(ke)),"&-focused":Object.assign({},(0,f.M1)(ke)),"&-out-of-range":{[`${Fe}-input-wrap`]:{input:{color:kr}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,C.Wf)(ke)),(0,f.s7)(ke)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Fe}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Fe}-group-addon`]:{borderRadius:Si,fontSize:ke.fontSizeLG}},"&-sm":{[`${Fe}-group-addon`]:{borderRadius:wn}},[`${Fe}-wrapper-disabled > ${Fe}-group-addon`]:Object.assign({},(0,f.Xy)(ke))}}),[`&-disabled ${Fe}-input`]:{cursor:"not-allowed"},[Fe]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(ke)),{width:"100%",padding:`${dn}px ${Tn}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Yt,outline:0,transition:`all ${Qr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,f.nz)(ke.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Fe]:Object.assign(Object.assign(Object.assign({[`&:hover ${Fe}-handler-wrap, &-focused ${Fe}-handler-wrap`]:{opacity:1},[`${Fe}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:ke.handleWidth,height:"100%",background:kn,borderStartStartRadius:0,borderStartEndRadius:Yt,borderEndEndRadius:Yt,borderEndStartRadius:0,opacity:Zi===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Qr} linear ${Qr}`,[`${Fe}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
${Fe}-handler-up-inner,
${Fe}-handler-down-inner
`]:{marginInlineEnd:0,fontSize:ke.handleFontSize}}},[`${Fe}-handler`]:{height:"50%",overflow:"hidden",color:dr,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ct}px ${Tt} ${Ei}`,transition:`all ${Qr} linear`,"&:active":{background:Qi},"&:hover":{height:"60%",[`
${Fe}-handler-up-inner,
${Fe}-handler-down-inner
`]:{color:An}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,C.Ro)()),{color:dr,transition:`all ${Qr} linear`,userSelect:"none"})},[`${Fe}-handler-up`]:{borderStartEndRadius:Yt},[`${Fe}-handler-down`]:{borderBlockStart:`${ct}px ${Tt} ${Ei}`,borderEndEndRadius:Yt}},ie(ke,"lg")),ie(ke,"sm")),{"&-disabled, &-readonly":{[`${Fe}-handler-wrap`]:{display:"none"},[`${Fe}-input`]:{color:"inherit"}},[`
${Fe}-handler-up-disabled,
${Fe}-handler-down-disabled
`]:{cursor:"not-allowed"},[`
${Fe}-handler-up-disabled:hover &-handler-up-inner,
${Fe}-handler-down-disabled:hover &-handler-down-inner
`]:{color:Pr}})},{[`${Fe}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Fe}-handler-down`]:{borderBlockStartWidth:0}}}]},we=ke=>{const{componentCls:Fe,paddingBlock:ct,paddingInline:Tt,inputAffixPadding:Pt,controlWidth:Yt,borderRadiusLG:Fr,borderRadiusSM:Lr}=ke;return{[`${Fe}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,f.ik)(ke)),(0,f.bi)(ke,`${Fe}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Yt,padding:0,paddingInlineStart:Tt,"&-lg":{borderRadius:Fr},"&-sm":{borderRadius:Lr},[`&:not(${Fe}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,f.pU)(ke)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Fe}-disabled`]:{background:"transparent"},[`> div${Fe}`]:{width:"100%",border:"none",outline:"none",[`&${Fe}-focused`]:{boxShadow:"none !important"}},[`input${Fe}-input`]:{padding:`${ct}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Fe}-handler-wrap`]:{zIndex:2},[Fe]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Pt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Tt,marginInlineStart:Pt}}})}};var ce=(0,Be.Z)("InputNumber",ke=>{const Fe=(0,H.TS)(ke,(0,f.e5)(ke));return[Qe(Fe),we(Fe),(0,Y.c)(Fe)]},ke=>Object.assign(Object.assign({},(0,f.TM)(ke)),{controlWidth:90,handleWidth:ke.controlHeightSM-ke.lineWidth*2,handleFontSize:ke.fontSize/2,handleVisible:"auto",handleActiveBg:ke.colorFillAlter,handleBg:ke.colorBgContainer,handleHoverColor:ke.colorPrimary,handleBorderColor:ke.colorBorder})),ze=function(ke,Fe){var ct={};for(var Tt in ke)Object.prototype.hasOwnProperty.call(ke,Tt)&&Fe.indexOf(Tt)<0&&(ct[Tt]=ke[Tt]);if(ke!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pt=0,Tt=Object.getOwnPropertySymbols(ke);Pt<Tt.length;Pt++)Fe.indexOf(Tt[Pt])<0&&Object.prototype.propertyIsEnumerable.call(ke,Tt[Pt])&&(ct[Tt[Pt]]=ke[Tt[Pt]]);return ct};const vt=ye.forwardRef((ke,Fe)=>{const{getPrefixCls:ct,direction:Tt}=ye.useContext(br.E_),Pt=ye.useRef(null);ye.useImperativeHandle(Fe,()=>Pt.current);const{className:Yt,rootClassName:Fr,size:Lr,disabled:Nr,prefixCls:kr,addonBefore:yr,addonAfter:dr,prefix:Qr,bordered:An=!0,readOnly:Tn,status:dn,controls:kn}=ke,Qi=ze(ke,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Pr=ct("input-number",kr),[wn,Si]=ce(Pr),{compactSize:ui,compactItemClassnames:Zi}=(0,m.ri)(Pr,Tt);let Ei=ye.createElement(Ae.Z,{className:`${Pr}-handler-up-inner`}),ji=ye.createElement(me.Z,{className:`${Pr}-handler-down-inner`});const eo=typeof kn=="boolean"?kn:void 0;typeof kn=="object"&&(Ei=typeof kn.upIcon=="undefined"?Ei:ye.createElement("span",{className:`${Pr}-handler-up-inner`},kn.upIcon),ji=typeof kn.downIcon=="undefined"?ji:ye.createElement("span",{className:`${Pr}-handler-down-inner`},kn.downIcon));const{hasFeedback:Ki,status:ei,isFormItemInput:pi,feedbackIcon:vi}=ye.useContext(I.aM),$e=(0,rr.F)(ei,dn),_e=(0,dt.Z)(nr=>{var Dr;return(Dr=Lr!=null?Lr:ui)!==null&&Dr!==void 0?Dr:nr}),Le=ye.useContext(V.Z),Ie=Nr!=null?Nr:Le,Dt=Oe()({[`${Pr}-lg`]:_e==="large",[`${Pr}-sm`]:_e==="small",[`${Pr}-rtl`]:Tt==="rtl",[`${Pr}-borderless`]:!An,[`${Pr}-in-form-item`]:pi},(0,rr.Z)(Pr,$e),Zi,Si),Mt=`${Pr}-group`,Sr=ye.createElement(sr,Object.assign({ref:Pt,disabled:Ie,className:Oe()(Yt,Fr),upHandler:Ei,downHandler:ji,prefixCls:Pr,readOnly:Tn,controls:eo,prefix:Qr,suffix:Ki&&vi,addonAfter:dr&&ye.createElement(m.BR,null,ye.createElement(I.Ux,{override:!0,status:!0},dr)),addonBefore:yr&&ye.createElement(m.BR,null,ye.createElement(I.Ux,{override:!0,status:!0},yr)),classNames:{input:Dt},classes:{affixWrapper:Oe()((0,rr.Z)(`${Pr}-affix-wrapper`,$e,Ki),{[`${Pr}-affix-wrapper-sm`]:_e==="small",[`${Pr}-affix-wrapper-lg`]:_e==="large",[`${Pr}-affix-wrapper-rtl`]:Tt==="rtl",[`${Pr}-affix-wrapper-borderless`]:!An},Si),wrapper:Oe()({[`${Mt}-rtl`]:Tt==="rtl",[`${Pr}-wrapper-disabled`]:Ie},Si),group:Oe()({[`${Pr}-group-wrapper-sm`]:_e==="small",[`${Pr}-group-wrapper-lg`]:_e==="large",[`${Pr}-group-wrapper-rtl`]:Tt==="rtl"},(0,rr.Z)(`${Pr}-group-wrapper`,$e,Ki),Si)}},Qi));return wn(Sr)}),he=vt,at=ke=>ye.createElement(lr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},ye.createElement(vt,Object.assign({},ke)));he._InternalPanelDoNotUseOrYouWillBeFired=at;var rt=he},9432:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return oe},n:function(){return X}});var me=x(19248),Ae=x(92310),P=x.n(Ae),Oe=x(93681),ne=x(8654),W=x(59301),S=x(19080),v=x(36355),M=x(1684),h=x(19716),$=x(32441),_=x(33234),F=x(59412),N=x(9937);function R(ee){return!!(ee.prefix||ee.suffix||ee.allowClear)}var L=function(ee,re){var G={};for(var K in ee)Object.prototype.hasOwnProperty.call(ee,K)&&re.indexOf(K)<0&&(G[K]=ee[K]);if(ee!=null&&typeof Object.getOwnPropertySymbols=="function")for(var le=0,K=Object.getOwnPropertySymbols(ee);le<K.length;le++)re.indexOf(K[le])<0&&Object.prototype.propertyIsEnumerable.call(ee,K[le])&&(G[K[le]]=ee[K[le]]);return G};function X(ee,re){if(!ee)return;ee.focus(re);const{cursor:G}=re||{};if(G){const K=ee.value.length;switch(G){case"start":ee.setSelectionRange(0,0);break;case"end":ee.setSelectionRange(K,K);break;default:ee.setSelectionRange(0,K);break}}}var oe=(0,W.forwardRef)((ee,re)=>{var G;const{prefixCls:K,bordered:le=!0,status:be,size:Ne,disabled:ye,onBlur:Ue,onFocus:q,suffix:de,allowClear:D,addonAfter:qe,addonBefore:Me,className:xe,style:Te,styles:ve,rootClassName:De,onChange:pe,classNames:Se}=ee,Xe=L(ee,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:et,direction:je,input:Ye}=W.useContext(v.E_),_t=et("input",K),kt=(0,W.useRef)(null),[Ot,sr]=(0,N.ZP)(_t),{compactSize:rr,compactItemClassnames:br}=(0,_.ri)(_t,je),lr=(0,h.Z)(vt=>{var he;return(he=Ne!=null?Ne:rr)!==null&&he!==void 0?he:vt}),V=W.useContext(M.Z),dt=ye!=null?ye:V,{status:I,hasFeedback:m,feedbackIcon:f}=(0,W.useContext)($.aM),C=(0,S.F)(I,be),Y=R(ee)||!!m,Be=(0,W.useRef)(Y);(0,W.useEffect)(()=>{var vt;Y&&Be.current,Be.current=Y},[Y]);const H=(0,F.Z)(kt,!0),ie=vt=>{H(),Ue==null||Ue(vt)},Qe=vt=>{H(),q==null||q(vt)},we=vt=>{H(),pe==null||pe(vt)},ce=(m||de)&&W.createElement(W.Fragment,null,de,m&&f);let ze;return typeof D=="object"&&(D!=null&&D.clearIcon)?ze=D:D&&(ze={clearIcon:W.createElement(me.Z,null)}),Ot(W.createElement(Oe.default,Object.assign({ref:(0,ne.sQ)(re,kt),prefixCls:_t,autoComplete:Ye==null?void 0:Ye.autoComplete},Xe,{disabled:dt,onBlur:ie,onFocus:Qe,style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),Te),styles:Object.assign(Object.assign({},Ye==null?void 0:Ye.styles),ve),suffix:ce,allowClear:ze,className:P()(xe,De,br,Ye==null?void 0:Ye.className),onChange:we,addonAfter:qe&&W.createElement(_.BR,null,W.createElement($.Ux,{override:!0,status:!0},qe)),addonBefore:Me&&W.createElement(_.BR,null,W.createElement($.Ux,{override:!0,status:!0},Me)),classNames:Object.assign(Object.assign(Object.assign({},Se),Ye==null?void 0:Ye.classNames),{input:P()({[`${_t}-sm`]:lr==="small",[`${_t}-lg`]:lr==="large",[`${_t}-rtl`]:je==="rtl",[`${_t}-borderless`]:!le},!Y&&(0,S.Z)(_t,C),Se==null?void 0:Se.input,(G=Ye==null?void 0:Ye.classNames)===null||G===void 0?void 0:G.input,sr)}),classes:{affixWrapper:P()({[`${_t}-affix-wrapper-sm`]:lr==="small",[`${_t}-affix-wrapper-lg`]:lr==="large",[`${_t}-affix-wrapper-rtl`]:je==="rtl",[`${_t}-affix-wrapper-borderless`]:!le},(0,S.Z)(`${_t}-affix-wrapper`,C,m),sr),wrapper:P()({[`${_t}-group-rtl`]:je==="rtl"},sr),group:P()({[`${_t}-group-wrapper-sm`]:lr==="small",[`${_t}-group-wrapper-lg`]:lr==="large",[`${_t}-group-wrapper-rtl`]:je==="rtl",[`${_t}-group-wrapper-disabled`]:dt},(0,S.Z)(`${_t}-group-wrapper`,C,m),sr)}})))})},1643:function(un,Ut,x){"use strict";var me=x(19248),Ae=x(92310),P=x.n(Ae),Oe=x(9296),ne=x(59301),W=x(19080),S=x(36355),v=x(1684),M=x(19716),h=x(32441),$=x(9432),_=x(9937),F=function(R,L){var X={};for(var Q in R)Object.prototype.hasOwnProperty.call(R,Q)&&L.indexOf(Q)<0&&(X[Q]=R[Q]);if(R!=null&&typeof Object.getOwnPropertySymbols=="function")for(var oe=0,Q=Object.getOwnPropertySymbols(R);oe<Q.length;oe++)L.indexOf(Q[oe])<0&&Object.prototype.propertyIsEnumerable.call(R,Q[oe])&&(X[Q[oe]]=R[Q[oe]]);return X};const N=(0,ne.forwardRef)((R,L)=>{const{prefixCls:X,bordered:Q=!0,size:oe,disabled:ee,status:re,allowClear:G,showCount:K,classNames:le,rootClassName:be,className:Ne}=R,ye=F(R,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Ue,direction:q}=ne.useContext(S.E_),de=(0,M.Z)(oe),D=ne.useContext(v.Z),qe=ee!=null?ee:D,{status:Me,hasFeedback:xe,feedbackIcon:Te}=ne.useContext(h.aM),ve=(0,W.F)(Me,re),De=ne.useRef(null);ne.useImperativeHandle(L,()=>{var je;return{resizableTextArea:(je=De.current)===null||je===void 0?void 0:je.resizableTextArea,focus:Ye=>{var _t,kt;(0,$.n)((kt=(_t=De.current)===null||_t===void 0?void 0:_t.resizableTextArea)===null||kt===void 0?void 0:kt.textArea,Ye)},blur:()=>{var Ye;return(Ye=De.current)===null||Ye===void 0?void 0:Ye.blur()}}});const pe=Ue("input",X);let Se;typeof G=="object"&&(G!=null&&G.clearIcon)?Se=G:G&&(Se={clearIcon:ne.createElement(me.Z,null)});const[Xe,et]=(0,_.ZP)(pe);return Xe(ne.createElement(Oe.default,Object.assign({},ye,{disabled:qe,allowClear:Se,className:P()(Ne,be),classes:{affixWrapper:P()(`${pe}-textarea-affix-wrapper`,{[`${pe}-affix-wrapper-rtl`]:q==="rtl",[`${pe}-affix-wrapper-borderless`]:!Q,[`${pe}-affix-wrapper-sm`]:de==="small",[`${pe}-affix-wrapper-lg`]:de==="large",[`${pe}-textarea-show-count`]:K},(0,W.Z)(`${pe}-affix-wrapper`,ve),et)},classNames:Object.assign(Object.assign({},le),{textarea:P()({[`${pe}-borderless`]:!Q,[`${pe}-sm`]:de==="small",[`${pe}-lg`]:de==="large"},(0,W.Z)(pe,ve),et,le==null?void 0:le.textarea)}),prefixCls:pe,suffix:xe&&ne.createElement("span",{className:`${pe}-textarea-suffix`},Te),showCount:K,ref:De})))});Ut.Z=N},59412:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return Ae}});var me=x(59301);function Ae(P,Oe){const ne=(0,me.useRef)([]),W=()=>{ne.current.push(setTimeout(()=>{var S,v,M,h;!((S=P.current)===null||S===void 0)&&S.input&&((v=P.current)===null||v===void 0?void 0:v.input.getAttribute("type"))==="password"&&(!((M=P.current)===null||M===void 0)&&M.input.hasAttribute("value"))&&((h=P.current)===null||h===void 0||h.input.removeAttribute("value"))}))};return(0,me.useEffect)(()=>(Oe&&W(),()=>ne.current.forEach(S=>{S&&clearTimeout(S)})),[]),W}},92832:function(un,Ut,x){"use strict";x.d(Ut,{default:function(){return de}});var me=x(92310),Ae=x.n(me),P=x(59301),Oe=x(36355),ne=x(32441),W=x(9937),v=D=>{const{getPrefixCls:qe,direction:Me}=(0,P.useContext)(Oe.E_),{prefixCls:xe,className:Te}=D,ve=qe("input-group",xe),De=qe("input"),[pe,Se]=(0,W.ZP)(De),Xe=Ae()(ve,{[`${ve}-lg`]:D.size==="large",[`${ve}-sm`]:D.size==="small",[`${ve}-compact`]:D.compact,[`${ve}-rtl`]:Me==="rtl"},Se,Te),et=(0,P.useContext)(ne.aM),je=(0,P.useMemo)(()=>Object.assign(Object.assign({},et),{isFormItemInput:!1}),[et]);return pe(P.createElement("span",{className:Xe,style:D.style,onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onFocus:D.onFocus,onBlur:D.onBlur},P.createElement(ne.aM.Provider,{value:je},D.children)))},M=x(9432),h=x(73331),$=x(15277),_=x(2738),F=x(8654),N=x(59412),R=function(D,qe){var Me={};for(var xe in D)Object.prototype.hasOwnProperty.call(D,xe)&&qe.indexOf(xe)<0&&(Me[xe]=D[xe]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,xe=Object.getOwnPropertySymbols(D);Te<xe.length;Te++)qe.indexOf(xe[Te])<0&&Object.prototype.propertyIsEnumerable.call(D,xe[Te])&&(Me[xe[Te]]=D[xe[Te]]);return Me};const L=D=>D?P.createElement($.Z,null):P.createElement(h.Z,null),X={click:"onClick",hover:"onMouseOver"};var oe=P.forwardRef((D,qe)=>{const{visibilityToggle:Me=!0}=D,xe=typeof Me=="object"&&Me.visible!==void 0,[Te,ve]=(0,P.useState)(()=>xe?Me.visible:!1),De=(0,P.useRef)(null);P.useEffect(()=>{xe&&ve(Me.visible)},[xe,Me]);const pe=(0,N.Z)(De),Se=()=>{const{disabled:dt}=D;dt||(Te&&pe(),ve(I=>{var m;const f=!I;return typeof Me=="object"&&((m=Me.onVisibleChange)===null||m===void 0||m.call(Me,f)),f}))},Xe=dt=>{const{action:I="click",iconRender:m=L}=D,f=X[I]||"",C=m(Te),Y={[f]:Se,className:`${dt}-icon`,key:"passwordIcon",onMouseDown:Be=>{Be.preventDefault()},onMouseUp:Be=>{Be.preventDefault()}};return P.cloneElement(P.isValidElement(C)?C:P.createElement("span",null,C),Y)},{className:et,prefixCls:je,inputPrefixCls:Ye,size:_t}=D,kt=R(D,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Ot}=P.useContext(Oe.E_),sr=Ot("input",Ye),rr=Ot("input-password",je),br=Me&&Xe(rr),lr=Ae()(rr,et,{[`${rr}-${_t}`]:!!_t}),V=Object.assign(Object.assign({},(0,_.Z)(kt,["suffix","iconRender","visibilityToggle"])),{type:Te?"text":"password",className:lr,prefixCls:sr,suffix:br});return _t&&(V.size=_t),P.createElement(M.Z,Object.assign({ref:(0,F.sQ)(qe,De)},V))}),ee=x(47472),re=x(92343),G=x(3113),K=x(19716),le=x(33234),be=function(D,qe){var Me={};for(var xe in D)Object.prototype.hasOwnProperty.call(D,xe)&&qe.indexOf(xe)<0&&(Me[xe]=D[xe]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Te=0,xe=Object.getOwnPropertySymbols(D);Te<xe.length;Te++)qe.indexOf(xe[Te])<0&&Object.prototype.propertyIsEnumerable.call(D,xe[Te])&&(Me[xe[Te]]=D[xe[Te]]);return Me},ye=P.forwardRef((D,qe)=>{const{prefixCls:Me,inputPrefixCls:xe,className:Te,size:ve,suffix:De,enterButton:pe=!1,addonAfter:Se,loading:Xe,disabled:et,onSearch:je,onChange:Ye,onCompositionStart:_t,onCompositionEnd:kt}=D,Ot=be(D,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:sr,direction:rr}=P.useContext(Oe.E_),br=P.useRef(!1),lr=sr("input-search",Me),V=sr("input",xe),{compactSize:dt}=(0,le.ri)(lr,rr),I=(0,K.Z)(at=>{var rt;return(rt=ve!=null?ve:dt)!==null&&rt!==void 0?rt:at}),m=P.useRef(null),f=at=>{at&&at.target&&at.type==="click"&&je&&je(at.target.value,at,{source:"clear"}),Ye&&Ye(at)},C=at=>{var rt;document.activeElement===((rt=m.current)===null||rt===void 0?void 0:rt.input)&&at.preventDefault()},Y=at=>{var rt,ke;je&&je((ke=(rt=m.current)===null||rt===void 0?void 0:rt.input)===null||ke===void 0?void 0:ke.value,at,{source:"input"})},Be=at=>{br.current||Xe||Y(at)},H=typeof pe=="boolean"?P.createElement(ee.Z,null):null,ie=`${lr}-button`;let Qe;const we=pe||{},ce=we.type&&we.type.__ANT_BUTTON===!0;ce||we.type==="button"?Qe=(0,re.Tm)(we,Object.assign({onMouseDown:C,onClick:at=>{var rt,ke;(ke=(rt=we==null?void 0:we.props)===null||rt===void 0?void 0:rt.onClick)===null||ke===void 0||ke.call(rt,at),Y(at)},key:"enterButton"},ce?{className:ie,size:I}:{})):Qe=P.createElement(G.ZP,{className:ie,type:pe?"primary":void 0,size:I,disabled:et,key:"enterButton",onMouseDown:C,onClick:Y,loading:Xe,icon:H},pe),Se&&(Qe=[Qe,(0,re.Tm)(Se,{key:"addonAfter"})]);const ze=Ae()(lr,{[`${lr}-rtl`]:rr==="rtl",[`${lr}-${I}`]:!!I,[`${lr}-with-button`]:!!pe},Te),vt=at=>{br.current=!0,_t==null||_t(at)},he=at=>{br.current=!1,kt==null||kt(at)};return P.createElement(M.Z,Object.assign({ref:(0,F.sQ)(m,qe),onPressEnter:Be},Ot,{size:I,onCompositionStart:vt,onCompositionEnd:he,prefixCls:V,addonAfter:Qe,suffix:De,onChange:f,className:ze,disabled:et}))}),Ue=x(1643);const q=M.Z;q.Group=v,q.Search=ye,q.TextArea=Ue.Z,q.Password=oe;var de=q},9937:function(un,Ut,x){"use strict";x.d(Ut,{M1:function(){return S},TM:function(){return re},Xy:function(){return v},bi:function(){return $},e5:function(){return ee},ik:function(){return _},nz:function(){return ne},pU:function(){return W},s7:function(){return F},x0:function(){return h}});var me=x(17313),Ae=x(74207),P=x(37613),Oe=x(83116);const ne=G=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:G,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),W=G=>({borderColor:G.hoverBorderColor}),S=G=>({borderColor:G.activeBorderColor,boxShadow:G.activeShadow,outline:0}),v=G=>({color:G.colorTextDisabled,backgroundColor:G.colorBgContainerDisabled,borderColor:G.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},W((0,P.TS)(G,{hoverBorderColor:G.colorBorder})))}),M=G=>{const{paddingBlockLG:K,fontSizeLG:le,lineHeightLG:be,borderRadiusLG:Ne,paddingInlineLG:ye}=G;return{padding:`${K}px ${ye}px`,fontSize:le,lineHeight:be,borderRadius:Ne}},h=G=>({padding:`${G.paddingBlockSM}px ${G.paddingInlineSM}px`,borderRadius:G.borderRadiusSM}),$=(G,K)=>{const{componentCls:le,colorError:be,colorWarning:Ne,errorActiveShadow:ye,warningActiveShadow:Ue,colorErrorBorderHover:q,colorWarningBorderHover:de}=G;return{[`&-status-error:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:be,"&:hover":{borderColor:q},"&:focus, &-focused":Object.assign({},S((0,P.TS)(G,{activeBorderColor:be,activeShadow:ye}))),[`${le}-prefix, ${le}-suffix`]:{color:be}},[`&-status-warning:not(${K}-disabled):not(${K}-borderless)${K}`]:{borderColor:Ne,"&:hover":{borderColor:de},"&:focus, &-focused":Object.assign({},S((0,P.TS)(G,{activeBorderColor:Ne,activeShadow:Ue}))),[`${le}-prefix, ${le}-suffix`]:{color:Ne}}}},_=G=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${G.paddingBlock}px ${G.paddingInline}px`,color:G.colorText,fontSize:G.fontSize,lineHeight:G.lineHeight,backgroundColor:G.colorBgContainer,backgroundImage:"none",borderWidth:G.lineWidth,borderStyle:G.lineType,borderColor:G.colorBorder,borderRadius:G.borderRadius,transition:`all ${G.motionDurationMid}`},ne(G.colorTextPlaceholder)),{"&:hover":Object.assign({},W(G)),"&:focus, &-focused":Object.assign({},S(G)),"&-disabled, &[disabled]":Object.assign({},v(G)),"&-borderless":{"&, &:hover, &:focus, &-focused, &-disabled, &[disabled]":{backgroundColor:"transparent",border:"none",boxShadow:"none"}},"textarea&":{maxWidth:"100%",height:"auto",minHeight:G.controlHeight,lineHeight:G.lineHeight,verticalAlign:"bottom",transition:`all ${G.motionDurationSlow}, height 0s`,resize:"vertical"},"&-lg":Object.assign({},M(G)),"&-sm":Object.assign({},h(G)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),F=G=>{const{componentCls:K,antCls:le}=G;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:G.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${K}, &-lg > ${K}-group-addon`]:Object.assign({},M(G)),[`&-sm ${K}, &-sm > ${K}-group-addon`]:Object.assign({},h(G)),[`&-lg ${le}-select-single ${le}-select-selector`]:{height:G.controlHeightLG},[`&-sm ${le}-select-single ${le}-select-selector`]:{height:G.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 ${G.paddingInline}px`,color:G.colorText,fontWeight:"normal",fontSize:G.fontSize,textAlign:"center",backgroundColor:G.colorFillAlter,border:`${G.lineWidth}px ${G.lineType} ${G.colorBorder}`,borderRadius:G.borderRadius,transition:`all ${G.motionDurationSlow}`,lineHeight:1,[`${le}-select`]:{margin:`-${G.paddingBlock+1}px -${G.paddingInline}px`,[`&${le}-select-single:not(${le}-select-customize-input)`]:{[`${le}-select-selector`]:{backgroundColor:"inherit",border:`${G.lineWidth}px ${G.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${le}-select-selector`]:{color:G.colorPrimary}}},[`${le}-cascader-picker`]:{margin:`-9px -${G.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:G.borderRadius,borderEndStartRadius:G.borderRadius}},[`&:not(:first-child), ${K}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${K}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,me.dF)()),{[`${K}-group-addon, ${K}-group-wrap, > ${K}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:G.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:-G.lineWidth,borderInlineEndWidth:G.lineWidth},[`${K}`]:{float:"none"},[`& > ${le}-select > ${le}-select-selector,
& > ${le}-select-auto-complete ${K},
& > ${le}-cascader-picker ${K},
& > ${K}-group-wrapper ${K}`]:{borderInlineEndWidth:G.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:G.borderRadius,borderEndStartRadius:G.borderRadius},[`& > *:last-child,
& > ${le}-select:last-child > ${le}-select-selector,
& > ${le}-cascader-picker:last-child ${K},
& > ${le}-cascader-picker-focused:last-child ${K}`]:{borderInlineEndWidth:G.lineWidth,borderStartEndRadius:G.borderRadius,borderEndEndRadius:G.borderRadius},[`& > ${le}-select-auto-complete ${K}`]:{verticalAlign:"top"},[`${K}-group-wrapper + ${K}-group-wrapper`]:{marginInlineStart:-G.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:G.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:G.borderRadius}}}})}},N=G=>{const{componentCls:K,controlHeightSM:le,lineWidth:be}=G,ye=(le-be*2-16)/2;return{[K]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,me.Wf)(G)),_(G)),$(G,K)),{'&[type="color"]':{height:G.controlHeight,[`&${K}-lg`]:{height:G.controlHeightLG},[`&${K}-sm`]:{height:le,paddingTop:ye,paddingBottom:ye}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},R=G=>{const{componentCls:K}=G;return{[`${K}-clear-icon`]:{margin:0,color:G.colorTextQuaternary,fontSize:G.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${G.motionDurationSlow}`,"&:hover":{color:G.colorTextTertiary},"&:active":{color:G.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${G.inputAffixPadding}px`}}}},L=G=>{const{componentCls:K,inputAffixPadding:le,colorTextDescription:be,motionDurationSlow:Ne,colorIcon:ye,colorIconHover:Ue,iconCls:q}=G;return{[`${K}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_(G)),{display:"inline-flex",[`&:not(${K}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},W(G)),{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:G.paddingXS}},"&-show-count-suffix":{color:be},"&-show-count-has-suffix":{marginInlineEnd:G.paddingXXS},"&-prefix":{marginInlineEnd:le},"&-suffix":{marginInlineStart:le}}}),R(G)),{[`${q}${K}-password-icon`]:{color:ye,cursor:"pointer",transition:`all ${Ne}`,"&:hover":{color:Ue}}}),$(G,`${K}-affix-wrapper`))}},X=G=>{const{componentCls:K,colorError:le,colorWarning:be,borderRadiusLG:Ne,borderRadiusSM:ye}=G;return{[`${K}-group`]:Object.assign(Object.assign(Object.assign({},(0,me.Wf)(G)),F(G)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${K}-group-addon`]:{borderRadius:Ne,fontSize:G.fontSizeLG}},"&-sm":{[`${K}-group-addon`]:{borderRadius:ye}},"&-status-error":{[`${K}-group-addon`]:{color:le,borderColor:le}},"&-status-warning":{[`${K}-group-addon`]:{color:be,borderColor:be}},"&-disabled":{[`${K}-group-addon`]:Object.assign({},v(G))},[`&: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}}}})}},Q=G=>{const{componentCls:K,antCls:le}=G,be=`${K}-search`;return{[be]:{[`${K}`]:{"&:hover, &:focus":{borderColor:G.colorPrimaryHover,[`+ ${K}-group-addon ${be}-button:not(${le}-btn-primary)`]:{borderInlineStartColor:G.colorPrimaryHover}}},[`${K}-affix-wrapper`]:{borderRadius:0},[`${K}-lg`]:{lineHeight:G.lineHeightLG-2e-4},[`> ${K}-group`]:{[`> ${K}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${be}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:G.borderRadius,borderEndEndRadius:G.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${be}-button:not(${le}-btn-primary)`]:{color:G.colorTextDescription,"&:hover":{color:G.colorPrimaryHover},"&:active":{color:G.colorPrimaryActive},[`&${le}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${be}-button`]:{height:G.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${be}-button`]:{height:G.controlHeightLG},[`&-small ${be}-button`]:{height:G.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${K}-compact-item`]:{[`&:not(${K}-compact-last-item)`]:{[`${K}-group-addon`]:{[`${K}-search-button`]:{marginInlineEnd:-G.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}}}}},oe=G=>{const{componentCls:K,paddingLG:le}=G,be=`${K}-textarea`;return{[be]:{position:"relative","&-show-count":{[`> ${K}`]:{height:"100%"},[`${K}-data-count`]:{position:"absolute",bottom:-G.fontSize*G.lineHeight,insetInlineEnd:0,color:G.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${K}`]:{paddingInlineEnd:le}},[`&-affix-wrapper${be}-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:G.paddingXS,insetBlockStart:G.paddingXS},[`${be}-suffix`]:{position:"absolute",top:0,insetInlineEnd:G.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ee(G){return(0,P.TS)(G,{inputAffixPadding:G.paddingXXS})}const re=G=>{const{controlHeight:K,fontSize:le,lineHeight:be,lineWidth:Ne,controlHeightSM:ye,controlHeightLG:Ue,fontSizeLG:q,lineHeightLG:de,paddingSM:D,controlPaddingHorizontalSM:qe,controlPaddingHorizontal:Me,colorFillAlter:xe,colorPrimaryHover:Te,controlOutlineWidth:ve,controlOutline:De,colorErrorOutline:pe,colorWarningOutline:Se}=G;return{paddingBlock:Math.max(Math.round((K-le*be)/2*10)/10-Ne,3),paddingBlockSM:Math.max(Math.round((ye-le*be)/2*10)/10-Ne,0),paddingBlockLG:Math.ceil((Ue-q*de)/2*10)/10-Ne,paddingInline:D-Ne,paddingInlineSM:qe-Ne,paddingInlineLG:Me-Ne,addonBg:xe,activeBorderColor:Te,hoverBorderColor:Te,activeShadow:`0 0 0 ${ve}px ${De}`,errorActiveShadow:`0 0 0 ${ve}px ${pe}`,warningActiveShadow:`0 0 0 ${ve}px ${Se}`}};Ut.ZP=(0,Oe.Z)("Input",G=>{const K=(0,P.TS)(G,ee(G));return[N(K),oe(K),L(K),X(K),Q(K),(0,Ae.c)(K)]},re)},45818:function(un,Ut,x){"use strict";x.d(Ut,{D:function(){return ee},Z:function(){return K}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},Oe=P,ne=x(7657),W=function(be,Ne){return Ae.createElement(ne.Z,(0,me.Z)({},be,{ref:Ne,icon:Oe}))},S=Ae.forwardRef(W),v=S,M=x(33853),h=x(38819),$=x(92310),_=x.n($),F=x(2738),R=le=>!isNaN(parseFloat(le))&&isFinite(le),L=x(36355),X=x(84966),Q=function(le,be){var Ne={};for(var ye in le)Object.prototype.hasOwnProperty.call(le,ye)&&be.indexOf(ye)<0&&(Ne[ye]=le[ye]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ye=Object.getOwnPropertySymbols(le);Ue<ye.length;Ue++)be.indexOf(ye[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,ye[Ue])&&(Ne[ye[Ue]]=le[ye[Ue]]);return Ne};const oe={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ee=Ae.createContext({}),re=(()=>{let le=0;return function(){let be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return le+=1,`${be}${le}`}})();var K=Ae.forwardRef((le,be)=>{const{prefixCls:Ne,className:ye,trigger:Ue,children:q,defaultCollapsed:de=!1,theme:D="dark",style:qe={},collapsible:Me=!1,reverseArrow:xe=!1,width:Te=200,collapsedWidth:ve=80,zeroWidthTriggerStyle:De,breakpoint:pe,onCollapse:Se,onBreakpoint:Xe}=le,et=Q(le,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:je}=(0,Ae.useContext)(X.Gs),[Ye,_t]=(0,Ae.useState)("collapsed"in le?le.collapsed:de),[kt,Ot]=(0,Ae.useState)(!1);(0,Ae.useEffect)(()=>{"collapsed"in le&&_t(le.collapsed)},[le.collapsed]);const sr=(I,m)=>{"collapsed"in le||_t(I),Se==null||Se(I,m)},rr=(0,Ae.useRef)();rr.current=I=>{Ot(I.matches),Xe==null||Xe(I.matches),Ye!==I.matches&&sr(I.matches,"responsive")},(0,Ae.useEffect)(()=>{function I(f){return rr.current(f)}let m;if(typeof window!="undefined"){const{matchMedia:f}=window;if(f&&pe&&pe in oe){m=f(`(max-width: ${oe[pe]})`);try{m.addEventListener("change",I)}catch(C){m.addListener(I)}I(m)}}return()=>{try{m==null||m.removeEventListener("change",I)}catch(f){m==null||m.removeListener(I)}}},[pe]),(0,Ae.useEffect)(()=>{const I=re("ant-sider-");return je.addSider(I),()=>je.removeSider(I)},[]);const br=()=>{sr(!Ye,"clickTrigger")},{getPrefixCls:lr}=(0,Ae.useContext)(L.E_),V=()=>{const I=lr("layout-sider",Ne),m=(0,F.Z)(et,["collapsed"]),f=Ye?ve:Te,C=R(f)?`${f}px`:String(f),Y=parseFloat(String(ve||0))===0?Ae.createElement("span",{onClick:br,className:_()(`${I}-zero-width-trigger`,`${I}-zero-width-trigger-${xe?"right":"left"}`),style:De},Ue||Ae.createElement(v,null)):null,ie={expanded:xe?Ae.createElement(h.Z,null):Ae.createElement(M.Z,null),collapsed:xe?Ae.createElement(M.Z,null):Ae.createElement(h.Z,null)}[Ye?"collapsed":"expanded"],Qe=Ue!==null?Y||Ae.createElement("div",{className:`${I}-trigger`,onClick:br,style:{width:C}},Ue||ie):null,we=Object.assign(Object.assign({},qe),{flex:`0 0 ${C}`,maxWidth:C,minWidth:C,width:C}),ce=_()(I,`${I}-${D}`,{[`${I}-collapsed`]:!!Ye,[`${I}-has-trigger`]:Me&&Ue!==null&&!Y,[`${I}-below`]:!!kt,[`${I}-zero-width`]:parseFloat(C)===0},ye);return Ae.createElement("aside",Object.assign({className:ce},m,{style:we,ref:be}),Ae.createElement("div",{className:`${I}-children`},q),Me||kt&&Y?Qe:null)},dt=Ae.useMemo(()=>({siderCollapsed:Ye}),[Ye]);return Ae.createElement(ee.Provider,{value:dt},V())})},84966:function(un,Ut,x){"use strict";x.d(Ut,{VY:function(){return ee},$_:function(){return oe},h4:function(){return Q},Gs:function(){return F},ZP:function(){return re}});var me=x(94480),Ae=x(92310),P=x.n(Ae),Oe=x(2738),ne=x(59301),W=x(36355),S=x(83116),M=G=>{const{componentCls:K,bodyBg:le,lightSiderBg:be,lightTriggerBg:Ne,lightTriggerColor:ye}=G;return{[`${K}-sider-light`]:{background:be,[`${K}-sider-trigger`]:{color:ye,background:Ne},[`${K}-sider-zero-width-trigger`]:{color:ye,background:Ne,border:`1px solid ${le}`,borderInlineStart:0}}}};const h=G=>{const{antCls:K,componentCls:le,colorText:be,triggerColor:Ne,footerBg:ye,triggerBg:Ue,headerHeight:q,headerPadding:de,headerColor:D,footerPadding:qe,triggerHeight:Me,zeroTriggerHeight:xe,zeroTriggerWidth:Te,motionDurationMid:ve,motionDurationSlow:De,fontSize:pe,borderRadius:Se,bodyBg:Xe,headerBg:et,siderBg:je}=G;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:je,transition:`all ${ve}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${K}-menu${K}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Me},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Me,color:Ne,lineHeight:`${Me}px`,textAlign:"center",background:Ue,cursor:"pointer",transition:`all ${ve}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:q,insetInlineEnd:-Te,zIndex:1,width:Te,height:xe,color:Ne,fontSize:G.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:je,borderStartStartRadius:0,borderStartEndRadius:Se,borderEndEndRadius:Se,borderEndStartRadius:0,cursor:"pointer",transition:`background ${De} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${De}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Te,borderStartStartRadius:Se,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Se}}}}},M(G)),{"&-rtl":{direction:"rtl"}}),[`${le}-header`]:{height:q,padding:de,color:D,lineHeight:`${q}px`,background:et,[`${K}-menu`]:{lineHeight:"inherit"}},[`${le}-footer`]:{padding:qe,color:be,fontSize:pe,background:ye},[`${le}-content`]:{flex:"auto",minHeight:0}}};var $=(0,S.Z)("Layout",G=>[h(G)],G=>{const{colorBgLayout:K,controlHeight:le,controlHeightLG:be,colorText:Ne,controlHeightSM:ye,marginXXS:Ue,colorTextLightSolid:q,colorBgContainer:de}=G,D=be*1.25;return{colorBgHeader:"#001529",colorBgBody:K,colorBgTrigger:"#002140",bodyBg:K,headerBg:"#001529",headerHeight:le*2,headerPadding:`0 ${D}px`,headerColor:Ne,footerPadding:`${ye}px ${D}px`,footerBg:K,siderBg:"#001529",triggerHeight:be+Ue*2,triggerBg:"#002140",triggerColor:q,zeroTriggerWidth:be,zeroTriggerHeight:be,lightSiderBg:de,lightTriggerBg:de,lightTriggerColor:Ne}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),_=function(G,K){var le={};for(var be in G)Object.prototype.hasOwnProperty.call(G,be)&&K.indexOf(be)<0&&(le[be]=G[be]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,be=Object.getOwnPropertySymbols(G);Ne<be.length;Ne++)K.indexOf(be[Ne])<0&&Object.prototype.propertyIsEnumerable.call(G,be[Ne])&&(le[be[Ne]]=G[be[Ne]]);return le};const F=ne.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function N(G){let{suffixCls:K,tagName:le,displayName:be}=G;return Ne=>ne.forwardRef((Ue,q)=>ne.createElement(Ne,Object.assign({ref:q,suffixCls:K,tagName:le},Ue)))}const R=ne.forwardRef((G,K)=>{const{prefixCls:le,suffixCls:be,className:Ne,tagName:ye}=G,Ue=_(G,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:q}=ne.useContext(W.E_),de=q("layout",le),[D,qe]=$(de),Me=be?`${de}-${be}`:de;return D(ne.createElement(ye,Object.assign({className:P()(le||Me,Ne,qe),ref:K},Ue)))}),L=ne.forwardRef((G,K)=>{const{direction:le}=ne.useContext(W.E_),[be,Ne]=ne.useState([]),{prefixCls:ye,className:Ue,rootClassName:q,children:de,hasSider:D,tagName:qe,style:Me}=G,xe=_(G,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Te=(0,Oe.Z)(xe,["suffixCls"]),{getPrefixCls:ve,layout:De}=ne.useContext(W.E_),pe=ve("layout",ye),[Se,Xe]=$(pe),et=P()(pe,{[`${pe}-has-sider`]:typeof D=="boolean"?D:be.length>0,[`${pe}-rtl`]:le==="rtl"},De==null?void 0:De.className,Ue,q,Xe),je=ne.useMemo(()=>({siderHook:{addSider:Ye=>{Ne(_t=>[].concat((0,me.Z)(_t),[Ye]))},removeSider:Ye=>{Ne(_t=>_t.filter(kt=>kt!==Ye))}}}),[]);return Se(ne.createElement(F.Provider,{value:je},ne.createElement(qe,Object.assign({ref:K,className:et,style:Object.assign(Object.assign({},De==null?void 0:De.style),Me)},Te),de)))}),X=N({tagName:"div",displayName:"Layout"})(L),Q=N({suffixCls:"header",tagName:"header",displayName:"Header"})(R),oe=N({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(R),ee=N({suffixCls:"content",tagName:"main",displayName:"Content"})(R);var re=X},40875:function(un,Ut,x){"use strict";x.d(Ut,{J:function(){return W}});var me=x(59301),Ae=x(33234),P=x(70425),Oe=function(S,v){var M={};for(var h in S)Object.prototype.hasOwnProperty.call(S,h)&&v.indexOf(h)<0&&(M[h]=S[h]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,h=Object.getOwnPropertySymbols(S);$<h.length;$++)v.indexOf(h[$])<0&&Object.prototype.propertyIsEnumerable.call(S,h[$])&&(M[h[$]]=S[h[$]]);return M};const ne=me.createContext(null),W=me.forwardRef((S,v)=>{const{children:M}=S,h=Oe(S,["children"]),$=me.useContext(ne),_=me.useMemo(()=>Object.assign(Object.assign({},$),h),[$,h.prefixCls,h.mode,h.selectable]);return me.createElement(ne.Provider,{value:_},me.createElement(Ae.BR,null,(0,P.supportNodeRef)(M)?me.cloneElement(M,{ref:v}):M))});Ut.Z=ne},20834:function(un,Ut,x){"use strict";x.d(Ut,{default:function(){return dt}});var me=x(15285),Ae=x(59301),P=x(45818),Oe=x(92310),ne=x.n(Oe),W=x(36355),S=function(I,m){var f={};for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&m.indexOf(C)<0&&(f[C]=I[C]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,C=Object.getOwnPropertySymbols(I);Y<C.length;Y++)m.indexOf(C[Y])<0&&Object.prototype.propertyIsEnumerable.call(I,C[Y])&&(f[C[Y]]=I[C[Y]]);return f},M=I=>{const{prefixCls:m,className:f,dashed:C}=I,Y=S(I,["prefixCls","className","dashed"]),{getPrefixCls:Be}=Ae.useContext(W.E_),H=Be("menu",m),ie=ne()({[`${H}-item-divider-dashed`]:!!C},f);return Ae.createElement(me.iz,Object.assign({className:ie},Y))},h=x(11592),$=x(2738),_=x(6848),F=x(92343),R=(0,Ae.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),X=I=>{var m;const{className:f,children:C,icon:Y,title:Be,danger:H}=I,{prefixCls:ie,firstLevel:Qe,direction:we,disableMenuItemTitleTooltip:ce,inlineCollapsed:ze}=Ae.useContext(R),vt=ct=>{const Tt=Ae.createElement("span",{className:`${ie}-title-content`},C);return(!Y||(0,F.l$)(C)&&C.type==="span")&&C&&ct&&Qe&&typeof C=="string"?Ae.createElement("div",{className:`${ie}-inline-collapsed-noicon`},C.charAt(0)):Tt},{siderCollapsed:he}=Ae.useContext(P.D);let at=Be;typeof Be=="undefined"?at=Qe?C:"":Be===!1&&(at="");const rt={title:at};!he&&!ze&&(rt.title=null,rt.open=!1);const ke=(0,h.Z)(C).length;let Fe=Ae.createElement(me.ck,Object.assign({},(0,$.Z)(I,["title","icon","danger"]),{className:ne()({[`${ie}-item-danger`]:H,[`${ie}-item-only-child`]:(Y?ke+1:ke)===1},f),title:typeof Be=="string"?Be:void 0}),(0,F.Tm)(Y,{className:ne()((0,F.l$)(Y)?(m=Y.props)===null||m===void 0?void 0:m.className:"",`${ie}-item-icon`)}),vt(ze));return ce||(Fe=Ae.createElement(_.Z,Object.assign({},rt,{placement:we==="rtl"?"left":"right",overlayClassName:`${ie}-inline-collapsed-tooltip`}),Fe)),Fe},oe=I=>{var m;const{popupClassName:f,icon:C,title:Y,theme:Be}=I,H=Ae.useContext(R),{prefixCls:ie,inlineCollapsed:Qe,theme:we}=H,ce=(0,me.Xl)();let ze;if(!C)ze=Qe&&!ce.length&&Y&&typeof Y=="string"?Ae.createElement("div",{className:`${ie}-inline-collapsed-noicon`},Y.charAt(0)):Ae.createElement("span",{className:`${ie}-title-content`},Y);else{const he=(0,F.l$)(Y)&&Y.type==="span";ze=Ae.createElement(Ae.Fragment,null,(0,F.Tm)(C,{className:ne()((0,F.l$)(C)?(m=C.props)===null||m===void 0?void 0:m.className:"",`${ie}-item-icon`)}),he?Y:Ae.createElement("span",{className:`${ie}-title-content`},Y))}const vt=Ae.useMemo(()=>Object.assign(Object.assign({},H),{firstLevel:!1}),[H]);return Ae.createElement(R.Provider,{value:vt},Ae.createElement(me.Wd,Object.assign({},(0,$.Z)(I,["icon"]),{title:ze,popupClassName:ne()(ie,f,`${ie}-${Be||we}`)})))},ee=x(18785),re=x(70425),G=x(62892),K=x(40875),le=function(I,m){var f={};for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&m.indexOf(C)<0&&(f[C]=I[C]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,C=Object.getOwnPropertySymbols(I);Y<C.length;Y++)m.indexOf(C[Y])<0&&Object.prototype.propertyIsEnumerable.call(I,C[Y])&&(f[C[Y]]=I[C[Y]]);return f};function be(I){return(I||[]).map((m,f)=>{if(m&&typeof m=="object"){const C=m,{label:Y,children:Be,key:H,type:ie}=C,Qe=le(C,["label","children","key","type"]),we=H!=null?H:`tmp-${f}`;return Be||ie==="group"?ie==="group"?Ae.createElement(me.BW,Object.assign({key:we},Qe,{title:Y}),be(Be)):Ae.createElement(oe,Object.assign({key:we},Qe,{title:Y}),be(Be)):ie==="divider"?Ae.createElement(M,Object.assign({key:we},Qe)):Ae.createElement(X,Object.assign({key:we},Qe),Y)}return null}).filter(m=>m)}function Ne(I){return Ae.useMemo(()=>I&&be(I),[I])}var ye=x(64993),Ue=x(17313),q=x(8378),de=x(13826),D=x(29878),qe=x(83116),Me=x(37613),Te=I=>{const{componentCls:m,motionDurationSlow:f,horizontalLineHeight:C,colorSplit:Y,lineWidth:Be,lineType:H,itemPaddingInline:ie}=I;return{[`${m}-horizontal`]:{lineHeight:C,border:0,borderBottom:`${Be}px ${H} ${Y}`,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 ${f}`,`background ${f}`].join(",")},[`${m}-submenu-arrow`]:{display:"none"}}}},De=I=>{let{componentCls:m,menuArrowOffset:f}=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(-${f})`},"&::after":{transform:`rotate(45deg) translateY(${f})`}}}}};const pe=I=>Object.assign({},(0,Ue.oN)(I));var Xe=(I,m)=>{const{componentCls:f,itemColor:C,itemSelectedColor:Y,groupTitleColor:Be,itemBg:H,subMenuItemBg:ie,itemSelectedBg:Qe,activeBarHeight:we,activeBarWidth:ce,activeBarBorderWidth:ze,motionDurationSlow:vt,motionEaseInOut:he,motionEaseOut:at,itemPaddingInline:rt,motionDurationMid:ke,itemHoverColor:Fe,lineType:ct,colorSplit:Tt,itemDisabledColor:Pt,dangerItemColor:Yt,dangerItemHoverColor:Fr,dangerItemSelectedColor:Lr,dangerItemActiveBg:Nr,dangerItemSelectedBg:kr,itemHoverBg:yr,itemActiveBg:dr,menuSubMenuBg:Qr,horizontalItemSelectedColor:An,horizontalItemSelectedBg:Tn,horizontalItemBorderRadius:dn,horizontalItemHoverBg:kn,popupBg:Qi}=I;return{[`${f}-${m}, ${f}-${m} > ${f}`]:{color:C,background:H,[`&${f}-root:focus-visible`]:Object.assign({},pe(I)),[`${f}-item-group-title`]:{color:Be},[`${f}-submenu-selected`]:{[`> ${f}-submenu-title`]:{color:Y}},[`${f}-item-disabled, ${f}-submenu-disabled`]:{color:`${Pt} !important`},[`${f}-item:not(${f}-item-selected):not(${f}-submenu-selected)`]:{[`&:hover, > ${f}-submenu-title:hover`]:{color:Fe}},[`&:not(${f}-horizontal)`]:{[`${f}-item:not(${f}-item-selected)`]:{"&:hover":{backgroundColor:yr},"&:active":{backgroundColor:dr}},[`${f}-submenu-title`]:{"&:hover":{backgroundColor:yr},"&:active":{backgroundColor:dr}}},[`${f}-item-danger`]:{color:Yt,[`&${f}-item:hover`]:{[`&:not(${f}-item-selected):not(${f}-submenu-selected)`]:{color:Fr}},[`&${f}-item:active`]:{background:Nr}},[`${f}-item a`]:{"&, &:hover":{color:"inherit"}},[`${f}-item-selected`]:{color:Y,[`&${f}-item-danger`]:{color:Lr},"a, a:hover":{color:"inherit"}},[`& ${f}-item-selected`]:{backgroundColor:Qe,[`&${f}-item-danger`]:{backgroundColor:kr}},[`${f}-item, ${f}-submenu-title`]:{[`&:not(${f}-item-disabled):focus-visible`]:Object.assign({},pe(I))},[`&${f}-submenu > ${f}`]:{backgroundColor:Qr},[`&${f}-popup > ${f}`]:{backgroundColor:Qi},[`&${f}-horizontal`]:Object.assign(Object.assign({},m==="dark"?{borderBottom:0}:{}),{[`> ${f}-item, > ${f}-submenu`]:{top:ze,marginTop:-ze,marginBottom:0,borderRadius:dn,"&::after":{position:"absolute",insetInline:rt,bottom:0,borderBottom:`${we}px solid transparent`,transition:`border-color ${vt} ${he}`,content:'""'},"&:hover, &-active, &-open":{background:kn,"&::after":{borderBottomWidth:we,borderBottomColor:An}},"&-selected":{color:An,backgroundColor:Tn,"&:hover":{backgroundColor:Tn},"&::after":{borderBottomWidth:we,borderBottomColor:An}}}}),[`&${f}-root`]:{[`&${f}-inline, &${f}-vertical`]:{borderInlineEnd:`${ze}px ${ct} ${Tt}`}},[`&${f}-inline`]:{[`${f}-sub${f}-inline`]:{background:ie},[`${f}-item, ${f}-submenu-title`]:ze&&ce?{width:`calc(100% + ${ze}px)`}:{},[`${f}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ce}px solid ${Y}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${ke} ${at}`,`opacity ${ke} ${at}`].join(","),content:'""'},[`&${f}-item-danger`]:{"&::after":{borderInlineEndColor:Lr}}},[`${f}-selected, ${f}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${ke} ${he}`,`opacity ${ke} ${he}`].join(",")}}}}}};const et=I=>{const{componentCls:m,itemHeight:f,itemMarginInline:C,padding:Y,menuArrowSize:Be,marginXS:H,itemMarginBlock:ie}=I,Qe=Y+Be+H;return{[`${m}-item`]:{position:"relative",overflow:"hidden"},[`${m}-item, ${m}-submenu-title`]:{height:f,lineHeight:`${f}px`,paddingInline:Y,overflow:"hidden",textOverflow:"ellipsis",marginInline:C,marginBlock:ie,width:`calc(100% - ${C*2}px)`},[`> ${m}-item,
> ${m}-submenu > ${m}-submenu-title`]:{height:f,lineHeight:`${f}px`},[`${m}-item-group-list ${m}-submenu-title,
${m}-submenu-title`]:{paddingInlineEnd:Qe}}};var Ye=I=>{const{componentCls:m,iconCls:f,itemHeight:C,colorTextLightSolid:Y,dropdownWidth:Be,controlHeightLG:H,motionDurationMid:ie,motionEaseOut:Qe,paddingXL:we,itemMarginInline:ce,fontSizeLG:ze,motionDurationSlow:vt,paddingXS:he,boxShadowSecondary:at,collapsedWidth:rt,collapsedIconSize:ke}=I,Fe={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:at})}},{[`${m}-submenu-popup ${m}-vertical${m}-sub`]:{minWidth:Be,maxHeight:`calc(100vh - ${H*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${m}-inline`]:{width:"100%",[`&${m}-root`]:{[`${m}-item, ${m}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${vt}`,`background ${vt}`,`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`]:Fe,[`& ${m}-item-group-title`]:{paddingInlineStart:we}},[`${m}-item`]:Fe}},{[`${m}-inline-collapsed`]:{width:rt,[`&${m}-root`]:{[`${m}-item, ${m}-submenu ${m}-submenu-title`]:{[`> ${m}-inline-collapsed-noicon`]:{fontSize:ze,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% - ${ze/2}px - ${ce}px)`,textOverflow:"clip",[`
${m}-submenu-arrow,
${m}-submenu-expand-icon
`]:{opacity:0},[`${m}-item-icon, ${f}`]:{margin:0,fontSize:ke,lineHeight:`${C}px`,"+ span":{display:"inline-block",opacity:0}}},[`${m}-item-icon, ${f}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${m}-item-icon, ${f}`]:{display:"none"},"a, a:hover":{color:Y}},[`${m}-item-group-title`]:Object.assign(Object.assign({},Ue.vS),{paddingInline:he})}}]};const _t=I=>{const{componentCls:m,motionDurationSlow:f,motionDurationMid:C,motionEaseInOut:Y,motionEaseOut:Be,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 ${f}`,`background ${f}`,`padding ${f} ${Y}`].join(","),[`${m}-item-icon, ${H}`]:{minWidth:ie,fontSize:ie,transition:[`font-size ${C} ${Be}`,`margin ${f} ${Y}`,`color ${f}`].join(","),"+ span":{marginInlineStart:Qe,opacity:1,transition:[`opacity ${f} ${Y}`,`margin ${f}`,`color ${f}`].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"}}}},kt=I=>{const{componentCls:m,motionDurationSlow:f,motionEaseInOut:C,borderRadius:Y,menuArrowSize:Be,menuArrowOffset:H}=I;return{[`${m}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:I.margin,width:Be,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${f} ${C}, opacity ${f}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Be*.6,height:Be*.15,backgroundColor:"currentcolor",borderRadius:Y,transition:[`background ${f} ${C}`,`transform ${f} ${C}`,`top ${f} ${C}`,`color ${f} ${C}`].join(","),content:'""'},"&::before":{transform:`rotate(45deg) translateY(-${H})`},"&::after":{transform:`rotate(-45deg) translateY(${H})`}}}}},Ot=I=>{const{antCls:m,componentCls:f,fontSize:C,motionDurationSlow:Y,motionDurationMid:Be,motionEaseInOut:H,paddingXS:ie,padding:Qe,colorSplit:we,lineWidth:ce,zIndexPopup:ze,borderRadiusLG:vt,subMenuItemBorderRadius:he,menuArrowSize:at,menuArrowOffset:rt,lineType:ke,menuPanelMaskInset:Fe,groupTitleLineHeight:ct,groupTitleFontSize:Tt}=I;return[{"":{[`${f}`]:Object.assign(Object.assign({},(0,Ue.dF)()),{"&-hidden":{display:"none"}})},[`${f}-submenu-hidden`]:{display:"none"}},{[f]: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 ${Y} cubic-bezier(0.2, 0, 0, 1) 0s`,"ul, ol":{margin:0,padding:0,listStyle:"none"},"&-overflow":{display:"flex",[`${f}-item`]:{flex:"none"}},[`${f}-item, ${f}-submenu, ${f}-submenu-title`]:{borderRadius:I.itemBorderRadius},[`${f}-item-group-title`]:{padding:`${ie}px ${Qe}px`,fontSize:Tt,lineHeight:ct,transition:`all ${Y}`},[`&-horizontal ${f}-submenu`]:{transition:[`border-color ${Y} ${H}`,`background ${Y} ${H}`].join(",")},[`${f}-submenu, ${f}-submenu-inline`]:{transition:[`border-color ${Y} ${H}`,`background ${Y} ${H}`,`padding ${Be} ${H}`].join(",")},[`${f}-submenu ${f}-sub`]:{cursor:"initial",transition:[`background ${Y} ${H}`,`padding ${Y} ${H}`].join(",")},[`${f}-title-content`]:{transition:`color ${Y}`},[`${f}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${f}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:ke,borderWidth:0,borderTopWidth:ce,marginBlock:ce,padding:0,"&-dashed":{borderStyle:"dashed"}}}),_t(I)),{[`${f}-item-group`]:{[`${f}-item-group-list`]:{margin:0,padding:0,[`${f}-item, ${f}-submenu-title`]:{paddingInline:`${C*2}px ${Qe}px`}}},"&-submenu":{"&-popup":{position:"absolute",zIndex:ze,borderRadius:vt,boxShadow:"none",transformOrigin:"0 0",[`&${f}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Fe}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Fe},"\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},[`> ${f}`]:Object.assign(Object.assign(Object.assign({borderRadius:vt},_t(I)),kt(I)),{[`${f}-item, ${f}-submenu > ${f}-submenu-title`]:{borderRadius:he},[`${f}-submenu-title::after`]:{transition:`transform ${Y} ${H}`}})}}),kt(I)),{[`&-inline-collapsed ${f}-submenu-arrow,
&-inline ${f}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${rt})`},"&::after":{transform:`rotate(45deg) translateX(-${rt})`}},[`${f}-submenu-open${f}-submenu-inline > ${f}-submenu-title > ${f}-submenu-arrow`]:{transform:`translateY(-${at*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${rt})`},"&::before":{transform:`rotate(45deg) translateX(${rt})`}}})},{[`${m}-layout-header`]:{[f]:{lineHeight:"inherit"}}}]};var sr=(I,m)=>(0,qe.Z)("Menu",C=>{if(m===!1)return[];const{colorBgElevated:Y,colorPrimary:Be,colorTextLightSolid:H,controlHeightLG:ie,fontSize:Qe,darkItemColor:we,darkDangerItemColor:ce,darkItemBg:ze,darkSubMenuItemBg:vt,darkItemSelectedColor:he,darkItemSelectedBg:at,darkDangerItemSelectedBg:rt,darkItemHoverBg:ke,darkGroupTitleColor:Fe,darkItemHoverColor:ct,darkItemDisabledColor:Tt,darkDangerItemHoverColor:Pt,darkDangerItemSelectedColor:Yt,darkDangerItemActiveBg:Fr}=C,Lr=Qe/7*5,Nr=(0,Me.TS)(C,{menuArrowSize:Lr,menuHorizontalHeight:ie*1.15,menuArrowOffset:`${Lr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:Y}),kr=(0,Me.TS)(Nr,{itemColor:we,itemHoverColor:ct,groupTitleColor:Fe,itemSelectedColor:he,itemBg:ze,popupBg:ze,subMenuItemBg:vt,itemActiveBg:"transparent",itemSelectedBg:at,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:ke,itemDisabledColor:Tt,dangerItemColor:ce,dangerItemHoverColor:Pt,dangerItemSelectedColor:Yt,dangerItemActiveBg:Fr,dangerItemSelectedBg:rt,menuSubMenuBg:vt,horizontalItemSelectedColor:H,horizontalItemSelectedBg:Be});return[Ot(Nr),Te(Nr),Ye(Nr),Xe(Nr,"light"),Xe(kr,"dark"),De(Nr),(0,q.Z)(Nr),(0,de.oN)(Nr,"slide-up"),(0,de.oN)(Nr,"slide-down"),(0,D._y)(Nr,"zoom-big")]},C=>{const{colorPrimary:Y,colorError:Be,colorTextDisabled:H,colorErrorBg:ie,colorText:Qe,colorTextDescription:we,colorBgContainer:ce,colorFillAlter:ze,colorFillContent:vt,lineWidth:he,lineWidthBold:at,controlItemBgActive:rt,colorBgTextHover:ke,controlHeightLG:Fe,lineHeight:ct,colorBgElevated:Tt,marginXXS:Pt,padding:Yt,fontSize:Fr,controlHeightSM:Lr,fontSizeLG:Nr,colorTextLightSolid:kr,colorErrorHover:yr}=C,dr=new ye.C(kr).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:Y,horizontalItemHoverColor:Y,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:Y,itemSelectedColor:Y,colorItemTextSelectedHorizontal:Y,horizontalItemSelectedColor:Y,colorItemBg:ce,itemBg:ce,colorItemBgHover:ke,itemHoverBg:ke,colorItemBgActive:vt,itemActiveBg:rt,colorSubItemBg:ze,subMenuItemBg:ze,colorItemBgSelected:rt,itemSelectedBg:rt,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:at,activeBarHeight:at,colorActiveBarBorderSize:he,activeBarBorderWidth:he,colorItemTextDisabled:H,itemDisabledColor:H,colorDangerItemText:Be,dangerItemColor:Be,colorDangerItemTextHover:Be,dangerItemHoverColor:Be,colorDangerItemTextSelected:Be,dangerItemSelectedColor:Be,colorDangerItemBgActive:ie,dangerItemActiveBg:ie,colorDangerItemBgSelected:ie,dangerItemSelectedBg:ie,itemMarginInline:C.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Fe,groupTitleLineHeight:ct,collapsedWidth:Fe*2,popupBg:Tt,itemMarginBlock:Pt,itemPaddingInline:Yt,horizontalLineHeight:`${Fe*1.15}px`,iconSize:Fr,iconMarginInlineEnd:Lr-Fr,collapsedIconSize:Nr,groupTitleFontSize:Fr,darkItemDisabledColor:new ye.C(kr).setAlpha(.25).toRgbString(),darkItemColor:dr,darkDangerItemColor:Be,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:kr,darkItemSelectedBg:Y,darkDangerItemSelectedBg:Be,darkItemHoverBg:"transparent",darkGroupTitleColor:dr,darkItemHoverColor:kr,darkDangerItemHoverColor:yr,darkDangerItemSelectedColor:kr,darkDangerItemActiveBg:Be}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(I),rr=function(I,m){var f={};for(var C in I)Object.prototype.hasOwnProperty.call(I,C)&&m.indexOf(C)<0&&(f[C]=I[C]);if(I!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,C=Object.getOwnPropertySymbols(I);Y<C.length;Y++)m.indexOf(C[Y])<0&&Object.prototype.propertyIsEnumerable.call(I,C[Y])&&(f[C[Y]]=I[C[Y]]);return f},lr=(0,Ae.forwardRef)((I,m)=>{var f,C;const Y=Ae.useContext(K.Z),Be=Y||{},{getPrefixCls:H,getPopupContainer:ie,direction:Qe,menu:we}=Ae.useContext(W.E_),ce=H(),{prefixCls:ze,className:vt,style:he,theme:at="light",expandIcon:rt,_internalDisableMenuItemTitleTooltip:ke,inlineCollapsed:Fe,siderCollapsed:ct,items:Tt,children:Pt,rootClassName:Yt,mode:Fr,selectable:Lr,onClick:Nr,overflowedIndicatorPopupClassName:kr}=I,yr=rr(I,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),dr=(0,$.Z)(yr,["collapsedWidth"]),Qr=Ne(Tt)||Pt;(f=Be.validator)===null||f===void 0||f.call(Be,{mode:Fr});const An=(0,re.useEvent)(function(){var ji;Nr==null||Nr.apply(void 0,arguments),(ji=Be.onClick)===null||ji===void 0||ji.call(Be)}),Tn=Be.mode||Fr,dn=Lr!=null?Lr:Be.selectable,kn=Ae.useMemo(()=>ct!==void 0?ct:Fe,[Fe,ct]),Qi={horizontal:{motionName:`${ce}-slide-up`},inline:(0,G.Z)(ce),other:{motionName:`${ce}-zoom-big`}},Pr=H("menu",ze||Be.prefixCls),[wn,Si]=sr(Pr,!Y),ui=ne()(`${Pr}-${at}`,we==null?void 0:we.className,vt);let Zi;if(typeof rt=="function")Zi=rt;else if(rt===null||rt===!1)Zi=null;else if(Be.expandIcon===null||Be.expandIcon===!1)Zi=null;else{const ji=rt!=null?rt:Be.expandIcon;Zi=(0,F.Tm)(ji,{className:ne()(`${Pr}-submenu-expand-icon`,(0,F.l$)(ji)?(C=ji.props)===null||C===void 0?void 0:C.className:"")})}const Ei=Ae.useMemo(()=>({prefixCls:Pr,inlineCollapsed:kn||!1,direction:Qe,firstLevel:!0,theme:at,mode:Tn,disableMenuItemTitleTooltip:ke}),[Pr,kn,Qe,ke,at]);return wn(Ae.createElement(K.Z.Provider,{value:null},Ae.createElement(R.Provider,{value:Ei},Ae.createElement(me.ZP,Object.assign({getPopupContainer:ie,overflowedIndicator:Ae.createElement(ee.Z,null),overflowedIndicatorPopupClassName:ne()(Pr,`${Pr}-${at}`,kr),mode:Tn,selectable:dn,onClick:An},dr,{inlineCollapsed:kn,style:Object.assign(Object.assign({},we==null?void 0:we.style),he),className:ui,prefixCls:Pr,direction:Qe,defaultMotions:Qi,expandIcon:Zi,ref:m,rootClassName:ne()(Yt,Si)}),Qr))))});const V=(0,Ae.forwardRef)((I,m)=>{const f=(0,Ae.useRef)(null),C=Ae.useContext(P.D);return(0,Ae.useImperativeHandle)(m,()=>({menu:f.current,focus:Y=>{var Be;(Be=f.current)===null||Be===void 0||Be.focus(Y)}})),Ae.createElement(lr,Object.assign({ref:f},I,C))});V.Item=X,V.SubMenu=oe,V.Divider=M,V.ItemGroup=me.BW;var dt=V},58421:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return Be}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},Oe=P,ne=x(7657),W=function(ie,Qe){return Ae.createElement(ne.Z,(0,me.Z)({},ie,{ref:Qe,icon:Oe}))},S=Ae.forwardRef(W),v=S,M=x(49198),h=x(33853),$=x(38819),_=x(92310),F=x.n(_),N=x(20068),R=x(33885),L=x(67732),X=x(83652),Q=x(42403),oe=x(158),ee=x(26112),re={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},G=re,K=x(91735),le=function(H){(0,Q.Z)(Qe,H);var ie=(0,oe.Z)(Qe);function Qe(){var we;(0,L.Z)(this,Qe);for(var ce=arguments.length,ze=new Array(ce),vt=0;vt<ce;vt++)ze[vt]=arguments[vt];return we=ie.call.apply(ie,[this].concat(ze)),we.state={goInputText:""},we.getValidValue=function(){var he=we.state.goInputText;return!he||Number.isNaN(he)?void 0:Number(he)},we.buildOptionText=function(he){return"".concat(he," ").concat(we.props.locale.items_per_page)},we.changeSize=function(he){we.props.changeSize(Number(he))},we.handleChange=function(he){we.setState({goInputText:he.target.value})},we.handleBlur=function(he){var at=we.props,rt=at.goButton,ke=at.quickGo,Fe=at.rootPrefixCls,ct=we.state.goInputText;rt||ct===""||(we.setState({goInputText:""}),!(he.relatedTarget&&(he.relatedTarget.className.indexOf("".concat(Fe,"-item-link"))>=0||he.relatedTarget.className.indexOf("".concat(Fe,"-item"))>=0))&&ke(we.getValidValue()))},we.go=function(he){var at=we.state.goInputText;at!==""&&(he.keyCode===G.ENTER||he.type==="click")&&(we.setState({goInputText:""}),we.props.quickGo(we.getValidValue()))},we}return(0,X.Z)(Qe,[{key:"getPageSizeOptions",value:function(){var ce=this.props,ze=ce.pageSize,vt=ce.pageSizeOptions;return vt.some(function(he){return he.toString()===ze.toString()})?vt:vt.concat([ze.toString()]).sort(function(he,at){var rt=Number.isNaN(Number(he))?0:Number(he),ke=Number.isNaN(Number(at))?0:Number(at);return rt-ke})}},{key:"render",value:function(){var ce=this,ze=this.props,vt=ze.pageSize,he=ze.locale,at=ze.rootPrefixCls,rt=ze.changeSize,ke=ze.quickGo,Fe=ze.goButton,ct=ze.selectComponentClass,Tt=ze.buildOptionText,Pt=ze.selectPrefixCls,Yt=ze.disabled,Fr=this.state.goInputText,Lr="".concat(at,"-options"),Nr=ct,kr=null,yr=null,dr=null;if(!rt&&!ke)return null;var Qr=this.getPageSizeOptions();if(rt&&Nr){var An=Qr.map(function(Tn,dn){return Ae.createElement(Nr.Option,{key:dn,value:Tn.toString()},(Tt||ce.buildOptionText)(Tn))});kr=Ae.createElement(Nr,{disabled:Yt,prefixCls:Pt,showSearch:!1,className:"".concat(Lr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(vt||Qr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(dn){return dn.parentNode},"aria-label":he.page_size,defaultOpen:!1},An)}return ke&&(Fe&&(dr=typeof Fe=="boolean"?Ae.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Yt,className:"".concat(Lr,"-quick-jumper-button")},he.jump_to_confirm):Ae.createElement("span",{onClick:this.go,onKeyUp:this.go},Fe)),yr=Ae.createElement("div",{className:"".concat(Lr,"-quick-jumper")},he.jump_to,Ae.createElement("input",{disabled:Yt,type:"text",value:Fr,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":he.page}),he.page,dr)),Ae.createElement("li",{className:"".concat(Lr)},kr,yr)}}]),Qe}(Ae.Component);le.defaultProps={pageSizeOptions:["10","20","50","100"]};var be=le,Ne=function(ie){var Qe,we=ie.rootPrefixCls,ce=ie.page,ze=ie.active,vt=ie.className,he=ie.showTitle,at=ie.onClick,rt=ie.onKeyPress,ke=ie.itemRender,Fe="".concat(we,"-item"),ct=F()(Fe,"".concat(Fe,"-").concat(ce),(Qe={},(0,N.Z)(Qe,"".concat(Fe,"-active"),ze),(0,N.Z)(Qe,"".concat(Fe,"-disabled"),!ce),(0,N.Z)(Qe,ie.className,vt),Qe)),Tt=function(){at(ce)},Pt=function(Lr){rt(Lr,at,ce)},Yt=ke(ce,"page",Ae.createElement("a",{rel:"nofollow"},ce));return Yt?Ae.createElement("li",{title:he?ce.toString():null,className:ct,onClick:Tt,onKeyPress:Pt,tabIndex:0},Yt):null},ye=Ne;function Ue(){}function q(H){var ie=Number(H);return typeof ie=="number"&&!Number.isNaN(ie)&&isFinite(ie)&&Math.floor(ie)===ie}var de=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 qe=function(H){(0,Q.Z)(Qe,H);var ie=(0,oe.Z)(Qe);function Qe(we){var ce;(0,L.Z)(this,Qe),ce=ie.call(this,we),ce.paginationNode=Ae.createRef(),ce.getJumpPrevPage=function(){return Math.max(1,ce.state.current-(ce.props.showLessItems?3:5))},ce.getJumpNextPage=function(){return Math.min(D(void 0,ce.state,ce.props),ce.state.current+(ce.props.showLessItems?3:5))},ce.getItemIcon=function(rt,ke){var Fe=ce.props.prefixCls,ct=rt||Ae.createElement("button",{type:"button","aria-label":ke,className:"".concat(Fe,"-item-link")});return typeof rt=="function"&&(ct=Ae.createElement(rt,(0,R.Z)({},ce.props))),ct},ce.isValid=function(rt){var ke=ce.props.total;return q(rt)&&rt!==ce.state.current&&q(ke)&&ke>0},ce.shouldDisplayQuickJumper=function(){var rt=ce.props,ke=rt.showQuickJumper,Fe=rt.total,ct=ce.state.pageSize;return Fe<=ct?!1:ke},ce.handleKeyDown=function(rt){(rt.keyCode===G.ARROW_UP||rt.keyCode===G.ARROW_DOWN)&&rt.preventDefault()},ce.handleKeyUp=function(rt){var ke=ce.getValidValue(rt),Fe=ce.state.currentInputValue;ke!==Fe&&ce.setState({currentInputValue:ke}),rt.keyCode===G.ENTER?ce.handleChange(ke):rt.keyCode===G.ARROW_UP?ce.handleChange(ke-1):rt.keyCode===G.ARROW_DOWN&&ce.handleChange(ke+1)},ce.handleBlur=function(rt){var ke=ce.getValidValue(rt);ce.handleChange(ke)},ce.changePageSize=function(rt){var ke=ce.state.current,Fe=D(rt,ce.state,ce.props);ke=ke>Fe?Fe:ke,Fe===0&&(ke=ce.state.current),typeof rt=="number"&&("pageSize"in ce.props||ce.setState({pageSize:rt}),"current"in ce.props||ce.setState({current:ke,currentInputValue:ke})),ce.props.onShowSizeChange(ke,rt),"onChange"in ce.props&&ce.props.onChange&&ce.props.onChange(ke,rt)},ce.handleChange=function(rt){var ke=ce.props,Fe=ke.disabled,ct=ke.onChange,Tt=ce.state,Pt=Tt.pageSize,Yt=Tt.current,Fr=Tt.currentInputValue;if(ce.isValid(rt)&&!Fe){var Lr=D(void 0,ce.state,ce.props),Nr=rt;return rt>Lr?Nr=Lr:rt<1&&(Nr=1),"current"in ce.props||ce.setState({current:Nr}),Nr!==Fr&&ce.setState({currentInputValue:Nr}),ct(Nr,Pt),Nr}return Yt},ce.prev=function(){ce.hasPrev()&&ce.handleChange(ce.state.current-1)},ce.next=function(){ce.hasNext()&&ce.handleChange(ce.state.current+1)},ce.jumpPrev=function(){ce.handleChange(ce.getJumpPrevPage())},ce.jumpNext=function(){ce.handleChange(ce.getJumpNextPage())},ce.hasPrev=function(){return ce.state.current>1},ce.hasNext=function(){return ce.state.current<D(void 0,ce.state,ce.props)},ce.runIfEnter=function(rt,ke){if(rt.key==="Enter"||rt.charCode===13){for(var Fe=arguments.length,ct=new Array(Fe>2?Fe-2:0),Tt=2;Tt<Fe;Tt++)ct[Tt-2]=arguments[Tt];ke.apply(void 0,ct)}},ce.runIfEnterPrev=function(rt){ce.runIfEnter(rt,ce.prev)},ce.runIfEnterNext=function(rt){ce.runIfEnter(rt,ce.next)},ce.runIfEnterJumpPrev=function(rt){ce.runIfEnter(rt,ce.jumpPrev)},ce.runIfEnterJumpNext=function(rt){ce.runIfEnter(rt,ce.jumpNext)},ce.handleGoTO=function(rt){(rt.keyCode===G.ENTER||rt.type==="click")&&ce.handleChange(ce.state.currentInputValue)},ce.renderPrev=function(rt){var ke=ce.props,Fe=ke.prevIcon,ct=ke.itemRender,Tt=ct(rt,"prev",ce.getItemIcon(Fe,"prev page")),Pt=!ce.hasPrev();return(0,Ae.isValidElement)(Tt)?(0,Ae.cloneElement)(Tt,{disabled:Pt}):Tt},ce.renderNext=function(rt){var ke=ce.props,Fe=ke.nextIcon,ct=ke.itemRender,Tt=ct(rt,"next",ce.getItemIcon(Fe,"next page")),Pt=!ce.hasNext();return(0,Ae.isValidElement)(Tt)?(0,Ae.cloneElement)(Tt,{disabled:Pt}):Tt};var ze=we.onChange!==Ue,vt="current"in we;vt&&!ze&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var he=we.defaultCurrent;"current"in we&&(he=we.current);var at=we.defaultPageSize;return"pageSize"in we&&(at=we.pageSize),he=Math.min(he,D(at,void 0,we)),ce.state={current:he,currentInputValue:he,pageSize:at},ce}return(0,X.Z)(Qe,[{key:"componentDidUpdate",value:function(ce,ze){var vt=this.props.prefixCls;if(ze.current!==this.state.current&&this.paginationNode.current){var he=this.paginationNode.current.querySelector(".".concat(vt,"-item-").concat(ze.current));if(he&&document.activeElement===he){var at;he==null||(at=he.blur)===null||at===void 0||at.call(he)}}}},{key:"getValidValue",value:function(ce){var ze=ce.target.value,vt=D(void 0,this.state,this.props),he=this.state.currentInputValue,at;return ze===""?at=ze:Number.isNaN(Number(ze))?at=he:ze>=vt?at=vt:at=Number(ze),at}},{key:"getShowSizeChanger",value:function(){var ce=this.props,ze=ce.showSizeChanger,vt=ce.total,he=ce.totalBoundaryShowSizeChanger;return typeof ze!="undefined"?ze:vt>he}},{key:"render",value:function(){var ce=this.props,ze=ce.prefixCls,vt=ce.className,he=ce.style,at=ce.disabled,rt=ce.hideOnSinglePage,ke=ce.total,Fe=ce.locale,ct=ce.showQuickJumper,Tt=ce.showLessItems,Pt=ce.showTitle,Yt=ce.showTotal,Fr=ce.simple,Lr=ce.itemRender,Nr=ce.showPrevNextJumpers,kr=ce.jumpPrevIcon,yr=ce.jumpNextIcon,dr=ce.selectComponentClass,Qr=ce.selectPrefixCls,An=ce.pageSizeOptions,Tn=this.state,dn=Tn.current,kn=Tn.pageSize,Qi=Tn.currentInputValue;if(rt===!0&&ke<=kn)return null;var Pr=D(void 0,this.state,this.props),wn=[],Si=null,ui=null,Zi=null,Ei=null,ji=null,eo=ct&&ct.goButton,Ki=Tt?1:2,ei=dn-1>0?dn-1:0,pi=dn+1<Pr?dn+1:Pr,vi=(0,ee.Z)(this.props,{aria:!0,data:!0}),$e=Yt&&Ae.createElement("li",{className:"".concat(ze,"-total-text")},Yt(ke,[ke===0?0:(dn-1)*kn+1,dn*kn>ke?ke:dn*kn]));if(Fr){eo&&(typeof eo=="boolean"?ji=Ae.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Fe.jump_to_confirm):ji=Ae.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},eo),ji=Ae.createElement("li",{title:Pt?"".concat(Fe.jump_to).concat(dn,"/").concat(Pr):null,className:"".concat(ze,"-simple-pager")},ji));var _e=this.renderPrev(ei);return Ae.createElement("ul",(0,me.Z)({className:F()(ze,"".concat(ze,"-simple"),(0,N.Z)({},"".concat(ze,"-disabled"),at),vt),style:he,ref:this.paginationNode},vi),$e,_e?Ae.createElement("li",{title:Pt?Fe.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:F()("".concat(ze,"-prev"),(0,N.Z)({},"".concat(ze,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},_e):null,Ae.createElement("li",{title:Pt?"".concat(dn,"/").concat(Pr):null,className:"".concat(ze,"-simple-pager")},Ae.createElement("input",{type:"text",value:Qi,disabled:at,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),Ae.createElement("span",{className:"".concat(ze,"-slash")},"/"),Pr),Ae.createElement("li",{title:Pt?Fe.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:F()("".concat(ze,"-next"),(0,N.Z)({},"".concat(ze,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(pi)),ji)}if(Pr<=3+Ki*2){var Le={locale:Fe,rootPrefixCls:ze,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Pt,itemRender:Lr};Pr||wn.push(Ae.createElement(ye,(0,me.Z)({},Le,{key:"noPager",page:1,className:"".concat(ze,"-item-disabled")})));for(var Ie=1;Ie<=Pr;Ie+=1){var Dt=dn===Ie;wn.push(Ae.createElement(ye,(0,me.Z)({},Le,{key:Ie,page:Ie,active:Dt})))}}else{var Mt=Tt?Fe.prev_3:Fe.prev_5,Sr=Tt?Fe.next_3:Fe.next_5,nr=Lr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(kr,"prev page")),Dr=Lr(this.getJumpNextPage(),"jump-next",this.getItemIcon(yr,"next page"));Nr&&(Si=nr?Ae.createElement("li",{title:Pt?Mt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:F()("".concat(ze,"-jump-prev"),(0,N.Z)({},"".concat(ze,"-jump-prev-custom-icon"),!!kr))},nr):null,ui=Dr?Ae.createElement("li",{title:Pt?Sr:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:F()("".concat(ze,"-jump-next"),(0,N.Z)({},"".concat(ze,"-jump-next-custom-icon"),!!yr))},Dr):null),Ei=Ae.createElement(ye,{locale:Fe,last:!0,rootPrefixCls:ze,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Pr,page:Pr,active:!1,showTitle:Pt,itemRender:Lr}),Zi=Ae.createElement(ye,{locale:Fe,rootPrefixCls:ze,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Pt,itemRender:Lr});var Hr=Math.max(1,dn-Ki),an=Math.min(dn+Ki,Pr);dn-1<=Ki&&(an=1+Ki*2),Pr-dn<=Ki&&(Hr=Pr-Ki*2);for(var jr=Hr;jr<=an;jr+=1){var Rr=dn===jr;wn.push(Ae.createElement(ye,{locale:Fe,rootPrefixCls:ze,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jr,page:jr,active:Rr,showTitle:Pt,itemRender:Lr}))}dn-1>=Ki*2&&dn!==3&&(wn[0]=(0,Ae.cloneElement)(wn[0],{className:"".concat(ze,"-item-after-jump-prev")}),wn.unshift(Si)),Pr-dn>=Ki*2&&dn!==Pr-2&&(wn[wn.length-1]=(0,Ae.cloneElement)(wn[wn.length-1],{className:"".concat(ze,"-item-before-jump-next")}),wn.push(ui)),Hr!==1&&wn.unshift(Zi),an!==Pr&&wn.push(Ei)}var en=!this.hasPrev()||!Pr,yn=!this.hasNext()||!Pr,on=this.renderPrev(ei),Dn=this.renderNext(pi);return Ae.createElement("ul",(0,me.Z)({className:F()(ze,vt,(0,N.Z)({},"".concat(ze,"-disabled"),at)),style:he,ref:this.paginationNode},vi),$e,on?Ae.createElement("li",{title:Pt?Fe.prev_page:null,onClick:this.prev,tabIndex:en?null:0,onKeyPress:this.runIfEnterPrev,className:F()("".concat(ze,"-prev"),(0,N.Z)({},"".concat(ze,"-disabled"),en)),"aria-disabled":en},on):null,wn,Dn?Ae.createElement("li",{title:Pt?Fe.next_page:null,onClick:this.next,tabIndex:yn?null:0,onKeyPress:this.runIfEnterNext,className:F()("".concat(ze,"-next"),(0,N.Z)({},"".concat(ze,"-disabled"),yn)),"aria-disabled":yn},Dn):null,Ae.createElement(be,{disabled:at,locale:Fe,rootPrefixCls:ze,selectComponentClass:dr,selectPrefixCls:Qr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:dn,pageSize:kn,pageSizeOptions:An,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:eo}))}}],[{key:"getDerivedStateFromProps",value:function(ce,ze){var vt={};if("current"in ce&&(vt.current=ce.current,ce.current!==ze.current&&(vt.currentInputValue=vt.current)),"pageSize"in ce&&ce.pageSize!==ze.pageSize){var he=ze.current,at=D(ce.pageSize,ze,ce);he=he>at?at:he,"current"in ce||(vt.current=he,vt.currentInputValue=he),vt.pageSize=ce.pageSize}return vt}}]),Qe}(Ae.Component);qe.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:de,totalBoundaryShowSizeChanger:50};var Me=qe,xe=x(22075),Te=x(36355),ve=x(19716),De=x(8628),pe=x(9763),Se=x(57809);const Xe=H=>Ae.createElement(Se.default,Object.assign({},H,{showSearch:!0,size:"small"})),et=H=>Ae.createElement(Se.default,Object.assign({},H,{showSearch:!0,size:"middle"}));Xe.Option=Se.default.Option,et.Option=Se.default.Option;var je=x(9937),Ye=x(17313),_t=x(83116),kt=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,je.x0)(H)),{width:H.paginationMiniQuickJumperInputWidth,height:H.controlHeightSM})}}}},rr=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"}}}}},br=H=>{const{componentCls:ie}=H;return{[`${ie}-jump-prev, ${ie}-jump-next`]:{outline:0,[`${ie}-item-container`]:{position:"relative",[`${ie}-item-link-icon`]:{color:H.colorPrimary,fontSize:H.fontSizeSM,opacity:0,transition:`all ${H.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${ie}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:H.colorTextDisabled,fontFamily:"Arial, Helvetica, sans-serif",letterSpacing:H.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:H.paginationEllipsisTextIndent,opacity:1,transition:`all ${H.motionDurationMid}`}},"&:hover":{[`${ie}-item-link-icon`]:{opacity:1},[`${ie}-item-ellipsis`]:{opacity:0}}},[`
${ie}-prev,
${ie}-jump-prev,
${ie}-jump-next
`]:{marginInlineEnd:H.marginXS},[`
${ie}-prev,
${ie}-next,
${ie}-jump-prev,
${ie}-jump-next
`]:{display:"inline-block",minWidth:H.itemSize,height:H.itemSize,color:H.colorText,fontFamily:H.fontFamily,lineHeight:`${H.itemSize}px`,textAlign:"center",verticalAlign:"middle",listStyle:"none",borderRadius:H.borderRadius,cursor:"pointer",transition:`all ${H.motionDurationMid}`},[`${ie}-prev, ${ie}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:H.colorText,cursor:"pointer",userSelect:"none"},[`${ie}-item-link`]:{display:"block",width:"100%",height:"100%",padding:0,fontSize:H.fontSizeSM,textAlign:"center",backgroundColor:"transparent",border:`${H.lineWidth}px ${H.lineType} transparent`,borderRadius:H.borderRadius,outline:"none",transition:`all ${H.motionDurationMid}`},[`&:hover ${ie}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ie}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ie}-disabled:hover`]:{[`${ie}-item-link`]:{backgroundColor:"transparent"}}},[`${ie}-slash`]:{marginInlineEnd:H.paginationSlashMarginInlineEnd,marginInlineStart:H.paginationSlashMarginInlineStart},[`${ie}-options`]:{display:"inline-block",marginInlineStart:H.margin,verticalAlign:"middle","&-size-changer.-select":{display:"inline-block",width:"auto"},"&-quick-jumper":{display:"inline-block",height:H.controlHeight,marginInlineStart:H.marginXS,lineHeight:`${H.controlHeight}px`,verticalAlign:"top",input:Object.assign(Object.assign({},(0,je.ik)(H)),{width:H.controlHeightLG*1.25,height:H.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:H.marginXS,marginInlineEnd:H.marginXS})}}}},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}}}}},V=H=>{const{componentCls:ie}=H;return{[ie]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,Ye.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)),br(H)),rr(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,Ye.Qy)(H)),[`${ie}-jump-prev, ${ie}-jump-next`]:{"&:focus-visible":Object.assign({[`${ie}-item-link-icon`]:{opacity:1},[`${ie}-item-ellipsis`]:{opacity:0}},(0,Ye.oN)(H))},[`${ie}-prev, ${ie}-next`]:{[`&:focus-visible ${ie}-item-link`]:Object.assign({},(0,Ye.oN)(H))}}}};var m=(0,_t.Z)("Pagination",H=>{const ie=(0,kt.TS)(H,{inputOutlineOffset:0,paginationMiniOptionsMarginInlineStart:H.marginXXS/2,paginationMiniQuickJumperInputWidth:H.controlHeightLG*1.1,paginationItemPaddingInline:H.marginXXS*1.5,paginationEllipsisLetterSpacing:H.marginXXS/2,paginationSlashMarginInlineStart:H.marginXXS,paginationSlashMarginInlineEnd:H.marginSM,paginationEllipsisTextIndent:"0.13em"},(0,je.e5)(H),(0,je.TM)(H));return[V(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})),f=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 ce=0,we=Object.getOwnPropertySymbols(H);ce<we.length;ce++)ie.indexOf(we[ce])<0&&Object.prototype.propertyIsEnumerable.call(H,we[ce])&&(Qe[we[ce]]=H[we[ce]]);return Qe},Y=H=>{const{prefixCls:ie,selectPrefixCls:Qe,className:we,rootClassName:ce,style:ze,size:vt,locale:he,selectComponentClass:at,responsive:rt,showSizeChanger:ke}=H,Fe=f(H,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ct}=(0,De.Z)(rt),{getPrefixCls:Tt,direction:Pt,pagination:Yt={}}=Ae.useContext(Te.E_),Fr=Tt("pagination",ie),[Lr,Nr]=m(Fr),kr=ke!=null?ke:Yt.showSizeChanger,yr=Ae.useMemo(()=>{const Pr=Ae.createElement("span",{className:`${Fr}-item-ellipsis`},"\u2022\u2022\u2022"),wn=Ae.createElement("button",{className:`${Fr}-item-link`,type:"button",tabIndex:-1},Pt==="rtl"?Ae.createElement($.Z,null):Ae.createElement(h.Z,null)),Si=Ae.createElement("button",{className:`${Fr}-item-link`,type:"button",tabIndex:-1},Pt==="rtl"?Ae.createElement(h.Z,null):Ae.createElement($.Z,null)),ui=Ae.createElement("a",{className:`${Fr}-item-link`},Ae.createElement("div",{className:`${Fr}-item-container`},Pt==="rtl"?Ae.createElement(M.Z,{className:`${Fr}-item-link-icon`}):Ae.createElement(v,{className:`${Fr}-item-link-icon`}),Pr)),Zi=Ae.createElement("a",{className:`${Fr}-item-link`},Ae.createElement("div",{className:`${Fr}-item-container`},Pt==="rtl"?Ae.createElement(v,{className:`${Fr}-item-link-icon`}):Ae.createElement(M.Z,{className:`${Fr}-item-link-icon`}),Pr));return{prevIcon:wn,nextIcon:Si,jumpPrevIcon:ui,jumpNextIcon:Zi}},[Pt,Fr]),[dr]=(0,pe.Z)("Pagination",xe.Z),Qr=Object.assign(Object.assign({},dr),he),An=(0,ve.Z)(vt),Tn=An==="small"||!!(ct&&!An&&rt),dn=Tt("select",Qe),kn=F()({[`${Fr}-mini`]:Tn,[`${Fr}-rtl`]:Pt==="rtl"},Yt==null?void 0:Yt.className,we,ce,Nr),Qi=Object.assign(Object.assign({},Yt==null?void 0:Yt.style),ze);return Lr(Ae.createElement(Me,Object.assign({},yr,Fe,{style:Qi,prefixCls:Fr,selectPrefixCls:dn,className:kn,selectComponentClass:at||(Tn?Xe:et),locale:Qr,showSizeChanger:kr})))},Be=Y},5112:function(un,Ut,x){"use strict";x.d(Ut,{ZP:function(){return De}});var me=x(92310),Ae=x.n(me),P=x(18929),Oe=x(26112),ne=x(59301),W=x(36355),S=x(19716);const v=ne.createContext(null),M=v.Provider;var h=v;const $=ne.createContext(null),_=$.Provider;var F=x(5630),N=x(8654),R=x(1684),L=x(32441),X=x(17313),Q=x(83116),oe=x(37613);const ee=pe=>{const{componentCls:Se,antCls:Xe}=pe,et=`${Se}-group`;return{[et]:Object.assign(Object.assign({},(0,X.Wf)(pe)),{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"}})}},re=pe=>{const{componentCls:Se,wrapperMarginInlineEnd:Xe,colorPrimary:et,radioSize:je,motionDurationSlow:Ye,motionDurationMid:_t,motionEaseInOutCirc:kt,colorBgContainer:Ot,colorBorder:sr,lineWidth:rr,dotSize:br,colorBgContainerDisabled:lr,colorTextDisabled:V,paddingXS:dt,dotColorDisabled:I,lineType:m,radioDotDisabledSize:f,wireframe:C,colorWhite:Y}=pe,Be=`${Se}-inner`;return{[`${Se}-wrapper`]:Object.assign(Object.assign({},(0,X.Wf)(pe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:Xe,cursor:"pointer",[`&${Se}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:pe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Se}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${rr}px ${m} ${et}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Se]:Object.assign(Object.assign({},(0,X.Wf)(pe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Se}-wrapper:hover &,
&:hover ${Be}`]:{borderColor:et},[`${Se}-input:focus-visible + ${Be}`]:Object.assign({},(0,X.oN)(pe)),[`${Se}:hover::after, ${Se}-wrapper:hover &::after`]:{visibility:"visible"},[`${Se}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:je,height:je,marginBlockStart:je/-2,marginInlineStart:je/-2,backgroundColor:C?et:Y,borderBlockStart:0,borderInlineStart:0,borderRadius:je,transform:"scale(0)",opacity:0,transition:`all ${Ye} ${kt}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:je,height:je,backgroundColor:Ot,borderColor:sr,borderStyle:"solid",borderWidth:rr,borderRadius:"50%",transition:`all ${_t}`},[`${Se}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Se}-checked`]:{[Be]:{borderColor:et,backgroundColor:C?Ot:et,"&::after":{transform:`scale(${br/je})`,opacity:1,transition:`all ${Ye} ${kt}`}}},[`${Se}-disabled`]:{cursor:"not-allowed",[Be]:{backgroundColor:lr,borderColor:sr,cursor:"not-allowed","&::after":{backgroundColor:I}},[`${Se}-input`]:{cursor:"not-allowed"},[`${Se}-disabled + span`]:{color:V,cursor:"not-allowed"},[`&${Se}-checked`]:{[Be]:{"&::after":{transform:`scale(${f/je})`}}}},[`span${Se} + *`]:{paddingInlineStart:dt,paddingInlineEnd:dt}})}},G=pe=>{const{buttonColor:Se,controlHeight:Xe,componentCls:et,lineWidth:je,lineType:Ye,colorBorder:_t,motionDurationSlow:kt,motionDurationMid:Ot,buttonPaddingInline:sr,fontSize:rr,buttonBg:br,fontSizeLG:lr,controlHeightLG:V,controlHeightSM:dt,paddingXS:I,borderRadius:m,borderRadiusSM:f,borderRadiusLG:C,buttonCheckedBg:Y,buttonSolidCheckedColor:Be,colorTextDisabled:H,colorBgContainerDisabled:ie,buttonCheckedBgDisabled:Qe,buttonCheckedColorDisabled:we,colorPrimary:ce,colorPrimaryHover:ze,colorPrimaryActive:vt,buttonSolidCheckedBg:he,buttonSolidCheckedHoverBg:at,buttonSolidCheckedActiveBg:rt}=pe;return{[`${et}-button-wrapper`]:{position:"relative",display:"inline-block",height:Xe,margin:0,paddingInline:sr,paddingBlock:0,color:Se,fontSize:rr,lineHeight:`${Xe-je*2}px`,background:br,border:`${je}px ${Ye} ${_t}`,borderBlockStartWidth:je+.02,borderInlineStartWidth:0,borderInlineEndWidth:je,cursor:"pointer",transition:[`color ${Ot}`,`background ${Ot}`,`box-shadow ${Ot}`].join(","),a:{color:Se},[`> ${et}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-je,insetInlineStart:-je,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:je,paddingInline:0,backgroundColor:_t,transition:`background-color ${kt}`,content:'""'}},"&:first-child":{borderInlineStart:`${je}px ${Ye} ${_t}`,borderStartStartRadius:m,borderEndStartRadius:m},"&:last-child":{borderStartEndRadius:m,borderEndEndRadius:m},"&:first-child:last-child":{borderRadius:m},[`${et}-group-large &`]:{height:V,fontSize:lr,lineHeight:`${V-je*2}px`,"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},[`${et}-group-small &`]:{height:dt,paddingInline:I-je,paddingBlock:0,lineHeight:`${dt-je*2}px`,"&:first-child":{borderStartStartRadius:f,borderEndStartRadius:f},"&:last-child":{borderStartEndRadius:f,borderEndEndRadius:f}},"&:hover":{position:"relative",color:ce},"&:has(:focus-visible)":Object.assign({},(0,X.oN)(pe)),[`${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:ce,background:Y,borderColor:ce,"&::before":{backgroundColor:ce},"&:first-child":{borderColor:ce},"&:hover":{color:ze,borderColor:ze,"&::before":{backgroundColor:ze}},"&:active":{color:vt,borderColor:vt,"&::before":{backgroundColor:vt}}},[`${et}-group-solid &-checked:not(${et}-button-wrapper-disabled)`]:{color:Be,background:he,borderColor:he,"&:hover":{color:Be,background:at,borderColor:at},"&:active":{color:Be,background:rt,borderColor:rt}},"&-disabled":{color:H,backgroundColor:ie,borderColor:_t,cursor:"not-allowed","&:first-child, &:hover":{color:H,backgroundColor:ie,borderColor:_t}},[`&-disabled${et}-button-wrapper-checked`]:{color:we,backgroundColor:Qe,borderColor:_t,boxShadow:"none"}}}},K=pe=>pe-4*2;var le=(0,Q.Z)("Radio",pe=>{const{controlOutline:Se,controlOutlineWidth:Xe,radioSize:et}=pe,je=`0 0 0 ${Xe}px ${Se}`,Ye=je,_t=K(et),kt=(0,oe.TS)(pe,{radioDotDisabledSize:_t,radioFocusShadow:je,radioButtonFocusShadow:Ye});return[ee(kt),re(kt),G(kt)]},pe=>{const{wireframe:Se,padding:Xe,marginXS:et,lineWidth:je,fontSizeLG:Ye,colorText:_t,colorBgContainer:kt,colorTextDisabled:Ot,controlItemBgActiveDisabled:sr,colorTextLightSolid:rr,colorPrimary:br,colorPrimaryHover:lr,colorPrimaryActive:V}=pe,dt=4,I=Ye,m=Se?K(I):I-(dt+je)*2;return{radioSize:I,dotSize:m,dotColorDisabled:Ot,buttonSolidCheckedColor:rr,buttonSolidCheckedBg:br,buttonSolidCheckedHoverBg:lr,buttonSolidCheckedActiveBg:V,buttonBg:kt,buttonCheckedBg:kt,buttonColor:_t,buttonCheckedBgDisabled:sr,buttonCheckedColorDisabled:Ot,buttonPaddingInline:Xe-je,wrapperMarginInlineEnd:et}}),be=x(14088),Ne=x(4572),ye=function(pe,Se){var Xe={};for(var et in pe)Object.prototype.hasOwnProperty.call(pe,et)&&Se.indexOf(et)<0&&(Xe[et]=pe[et]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,et=Object.getOwnPropertySymbols(pe);je<et.length;je++)Se.indexOf(et[je])<0&&Object.prototype.propertyIsEnumerable.call(pe,et[je])&&(Xe[et[je]]=pe[et[je]]);return Xe};const Ue=(pe,Se)=>{var Xe,et;const je=ne.useContext(h),Ye=ne.useContext($),{getPrefixCls:_t,direction:kt,radio:Ot}=ne.useContext(W.E_),sr=ne.useRef(null),rr=(0,N.sQ)(Se,sr),{isFormItemInput:br}=ne.useContext(L.aM),lr=vt=>{var he,at;(he=pe.onChange)===null||he===void 0||he.call(pe,vt),(at=je==null?void 0:je.onChange)===null||at===void 0||at.call(je,vt)},{prefixCls:V,className:dt,rootClassName:I,children:m,style:f}=pe,C=ye(pe,["prefixCls","className","rootClassName","children","style"]),Y=_t("radio",V),Be=((je==null?void 0:je.optionType)||Ye)==="button",H=Be?`${Y}-button`:Y,[ie,Qe]=le(Y),we=Object.assign({},C),ce=ne.useContext(R.Z);je&&(we.name=je.name,we.onChange=lr,we.checked=pe.value===je.value,we.disabled=(Xe=we.disabled)!==null&&Xe!==void 0?Xe:je.disabled),we.disabled=(et=we.disabled)!==null&&et!==void 0?et:ce;const ze=Ae()(`${H}-wrapper`,{[`${H}-wrapper-checked`]:we.checked,[`${H}-wrapper-disabled`]:we.disabled,[`${H}-wrapper-rtl`]:kt==="rtl",[`${H}-wrapper-in-form-item`]:br},Ot==null?void 0:Ot.className,dt,I,Qe);return ie(ne.createElement(be.Z,{component:"Radio",disabled:we.disabled},ne.createElement("label",{className:ze,style:Object.assign(Object.assign({},Ot==null?void 0:Ot.style),f),onMouseEnter:pe.onMouseEnter,onMouseLeave:pe.onMouseLeave},ne.createElement(F.Z,Object.assign({},we,{className:Ae()(we.className,!Be&&Ne.A),type:"radio",prefixCls:H,ref:rr})),m!==void 0?ne.createElement("span",null,m):null)))};var de=ne.forwardRef(Ue);const D=ne.forwardRef((pe,Se)=>{const{getPrefixCls:Xe,direction:et}=ne.useContext(W.E_),[je,Ye]=(0,P.Z)(pe.defaultValue,{value:pe.value}),_t=he=>{const at=je,rt=he.target.value;"value"in pe||Ye(rt);const{onChange:ke}=pe;ke&&rt!==at&&ke(he)},{prefixCls:kt,className:Ot,rootClassName:sr,options:rr,buttonStyle:br="outline",disabled:lr,children:V,size:dt,style:I,id:m,onMouseEnter:f,onMouseLeave:C,onFocus:Y,onBlur:Be}=pe,H=Xe("radio",kt),ie=`${H}-group`,[Qe,we]=le(H);let ce=V;rr&&rr.length>0&&(ce=rr.map(he=>typeof he=="string"||typeof he=="number"?ne.createElement(de,{key:he.toString(),prefixCls:H,disabled:lr,value:he,checked:je===he},he):ne.createElement(de,{key:`radio-group-value-options-${he.value}`,prefixCls:H,disabled:he.disabled||lr,value:he.value,checked:je===he.value,title:he.title,style:he.style},he.label)));const ze=(0,S.Z)(dt),vt=Ae()(ie,`${ie}-${br}`,{[`${ie}-${ze}`]:ze,[`${ie}-rtl`]:et==="rtl"},Ot,sr,we);return Qe(ne.createElement("div",Object.assign({},(0,Oe.Z)(pe,{aria:!0,data:!0}),{className:vt,style:I,onMouseEnter:f,onMouseLeave:C,onFocus:Y,onBlur:Be,id:m,ref:Se}),ne.createElement(M,{value:{onChange:_t,value:je,disabled:pe.disabled,name:pe.name,optionType:pe.optionType}},ce)))});var qe=ne.memo(D),Me=function(pe,Se){var Xe={};for(var et in pe)Object.prototype.hasOwnProperty.call(pe,et)&&Se.indexOf(et)<0&&(Xe[et]=pe[et]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,et=Object.getOwnPropertySymbols(pe);je<et.length;je++)Se.indexOf(et[je])<0&&Object.prototype.propertyIsEnumerable.call(pe,et[je])&&(Xe[et[je]]=pe[et[je]]);return Xe};const xe=(pe,Se)=>{const{getPrefixCls:Xe}=ne.useContext(W.E_),{prefixCls:et}=pe,je=Me(pe,["prefixCls"]),Ye=Xe("radio",et);return ne.createElement(_,{value:"button"},ne.createElement(de,Object.assign({prefixCls:Ye},je,{type:"radio",ref:Se})))};var Te=ne.forwardRef(xe);const ve=de;ve.Button=Te,ve.Group=qe,ve.__ANT_RADIO=!0;var De=ve},57809:function(un,Ut,x){"use strict";var me=x(92310),Ae=x.n(me),P=x(77861),Oe=x(2738),ne=x(59301),W=x(53487),S=x(62892),v=x(19080),M=x(36355),h=x(1684),$=x(93891),_=x(19716),F=x(32441),N=x(33234),R=x(14154),L=x(58582),X=x(84443),Q=x(66339),oe=function(le,be){var Ne={};for(var ye in le)Object.prototype.hasOwnProperty.call(le,ye)&&be.indexOf(ye)<0&&(Ne[ye]=le[ye]);if(le!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,ye=Object.getOwnPropertySymbols(le);Ue<ye.length;Ue++)be.indexOf(ye[Ue])<0&&Object.prototype.propertyIsEnumerable.call(le,ye[Ue])&&(Ne[ye[Ue]]=le[ye[Ue]]);return Ne};const ee="SECRET_COMBOBOX_MODE_DO_NOT_USE",re=(le,be)=>{var Ne,{prefixCls:ye,bordered:Ue=!0,className:q,rootClassName:de,getPopupContainer:D,popupClassName:qe,dropdownClassName:Me,listHeight:xe=256,placement:Te,listItemHeight:ve=24,size:De,disabled:pe,notFoundContent:Se,status:Xe,builtinPlacements:et,dropdownMatchSelectWidth:je,popupMatchSelectWidth:Ye,direction:_t,style:kt,allowClear:Ot}=le,sr=oe(le,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:rr,getPrefixCls:br,renderEmpty:lr,direction:V,virtual:dt,popupMatchSelectWidth:I,popupOverflow:m,select:f}=ne.useContext(M.E_),C=br("select",ye),Y=br(),Be=_t!=null?_t:V,{compactSize:H,compactItemClassnames:ie}=(0,N.ri)(C,Be),[Qe,we]=(0,R.Z)(C),ce=ne.useMemo(()=>{const{mode:Qi}=sr;if(Qi!=="combobox")return Qi===ee?"combobox":Qi},[sr.mode]),ze=ce==="multiple"||ce==="tags",vt=(0,X.Z)(sr.suffixIcon,sr.showArrow),he=(Ne=Ye!=null?Ye:je)!==null&&Ne!==void 0?Ne:I,{status:at,hasFeedback:rt,isFormItemInput:ke,feedbackIcon:Fe}=ne.useContext(F.aM),ct=(0,v.F)(at,Xe);let Tt;Se!==void 0?Tt=Se:ce==="combobox"?Tt=null:Tt=(lr==null?void 0:lr("Select"))||ne.createElement($.Z,{componentName:"Select"});const{suffixIcon:Pt,itemIcon:Yt,removeIcon:Fr,clearIcon:Lr}=(0,Q.Z)(Object.assign(Object.assign({},sr),{multiple:ze,hasFeedback:rt,feedbackIcon:Fe,showSuffixIcon:vt,prefixCls:C,showArrow:sr.showArrow,componentName:"Select"})),Nr=Ot===!0?{clearIcon:Lr}:Ot,kr=(0,Oe.Z)(sr,["suffixIcon","itemIcon"]),yr=Ae()(qe||Me,{[`${C}-dropdown-${Be}`]:Be==="rtl"},de,we),dr=(0,_.Z)(Qi=>{var Pr;return(Pr=De!=null?De:H)!==null&&Pr!==void 0?Pr:Qi}),Qr=ne.useContext(h.Z),An=pe!=null?pe:Qr,Tn=Ae()({[`${C}-lg`]:dr==="large",[`${C}-sm`]:dr==="small",[`${C}-rtl`]:Be==="rtl",[`${C}-borderless`]:!Ue,[`${C}-in-form-item`]:ke},(0,v.Z)(C,ct,rt),ie,f==null?void 0:f.className,q,de,we),dn=ne.useMemo(()=>Te!==void 0?Te:Be==="rtl"?"bottomRight":"bottomLeft",[Te,Be]),kn=(0,L.Z)(et,m);return Qe(ne.createElement(P.ZP,Object.assign({ref:be,virtual:dt,showSearch:f==null?void 0:f.showSearch},kr,{style:Object.assign(Object.assign({},f==null?void 0:f.style),kt),dropdownMatchSelectWidth:he,builtinPlacements:kn,transitionName:(0,S.m)(Y,"slide-up",sr.transitionName),listHeight:xe,listItemHeight:ve,mode:ce,prefixCls:C,placement:dn,direction:Be,suffixIcon:Pt,menuItemSelectedIcon:Yt,removeIcon:Fr,allowClear:Nr,notFoundContent:Tt,className:Tn,getPopupContainer:D||rr,dropdownClassName:yr,disabled:An})))},G=ne.forwardRef(re),K=(0,W.Z)(G);G.SECRET_COMBOBOX_MODE_DO_NOT_USE=ee,G.Option=P.Wx,G.OptGroup=P.Xo,G._InternalPanelDoNotUseOrYouWillBeFired=K,Ut.default=G},14154:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return G}});var me=x(17313),Ae=x(74207),P=x(37613),Oe=x(83116),ne=x(13826),W=x(92899);const S=K=>{const{optionHeight:le,optionFontSize:be,optionLineHeight:Ne,optionPadding:ye}=K;return{position:"relative",display:"block",minHeight:le,padding:ye,color:K.colorText,fontWeight:"normal",fontSize:be,lineHeight:Ne,boxSizing:"border-box"}};var M=K=>{const{antCls:le,componentCls:be}=K,Ne=`${be}-item`,ye=`&${le}-slide-up-enter${le}-slide-up-enter-active`,Ue=`&${le}-slide-up-appear${le}-slide-up-appear-active`,q=`&${le}-slide-up-leave${le}-slide-up-leave-active`,de=`${be}-dropdown-placement-`;return[{[`${be}-dropdown`]:Object.assign(Object.assign({},(0,me.Wf)(K)),{position:"absolute",top:-9999,zIndex:K.zIndexPopup,boxSizing:"border-box",padding:K.paddingXXS,overflow:"hidden",fontSize:K.fontSize,fontVariant:"initial",backgroundColor:K.colorBgElevated,borderRadius:K.borderRadiusLG,outline:"none",boxShadow:K.boxShadowSecondary,[`
${ye}${de}bottomLeft,
${Ue}${de}bottomLeft
`]:{animationName:ne.fJ},[`
${ye}${de}topLeft,
${Ue}${de}topLeft,
${ye}${de}topRight,
${Ue}${de}topRight
`]:{animationName:ne.Qt},[`${q}${de}bottomLeft`]:{animationName:ne.Uw},[`
${q}${de}topLeft,
${q}${de}topRight
`]:{animationName:ne.ly},"&-hidden":{display:"none"},[`${Ne}`]:Object.assign(Object.assign({},S(K)),{cursor:"pointer",transition:`background ${K.motionDurationSlow} ease`,borderRadius:K.borderRadiusSM,"&-group":{color:K.colorTextDescription,fontSize:K.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},me.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ne}-option-disabled)`]:{backgroundColor:K.optionActiveBg},[`&-selected:not(${Ne}-option-disabled)`]:{color:K.optionSelectedColor,fontWeight:K.optionSelectedFontWeight,backgroundColor:K.optionSelectedBg,[`${Ne}-option-state`]:{color:K.colorPrimary}},"&-disabled":{[`&${Ne}-option-selected`]:{backgroundColor:K.colorBgContainerDisabled},color:K.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:K.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,ne.oN)(K,"slide-up"),(0,ne.oN)(K,"slide-down"),(0,W.Fm)(K,"move-up"),(0,W.Fm)(K,"move-down")]};const h=2,$=K=>{let{controlHeightSM:le,controlHeight:be,lineWidth:Ne}=K;const ye=(be-le)/2-Ne,Ue=Math.ceil(ye/2);return[ye,Ue]};function _(K,le){const{componentCls:be,iconCls:Ne}=K,ye=`${be}-selection-overflow`,Ue=K.multipleSelectItemHeight,[q]=$(K),de=le?`${be}-${le}`:"";return{[`${be}-multiple${de}`]:{fontSize:K.fontSize,[ye]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${be}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${q-h}px ${h*2}px`,borderRadius:K.borderRadius,[`${be}-show-search&`]:{cursor:"text"},[`${be}-disabled&`]:{background:K.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${h}px 0`,lineHeight:`${Ue}px`,visibility:"hidden",content:'"\\a0"'}},[`
&${be}-show-arrow ${be}-selector,
&${be}-allow-clear ${be}-selector
`]:{paddingInlineEnd:K.fontSizeIcon+K.controlPaddingHorizontal},[`${be}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Ue,marginTop:h,marginBottom:h,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:h*2,paddingInlineStart:K.paddingXS,paddingInlineEnd:K.paddingXS/2,[`${be}-disabled&`]:{color:K.multipleItemColorDisabled,borderColor:K.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:K.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,me.Ro)()),{display:"inline-flex",alignItems:"center",color:K.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ne}`]:{verticalAlign:"-0.2em"},"&:hover":{color:K.colorIconHover}})},[`${ye}-item + ${ye}-item`]:{[`${be}-selection-search`]:{marginInlineStart:0}},[`${be}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:K.inputPaddingHorizontalBase-q,"\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"}},[`${be}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:K.inputPaddingHorizontalBase,insetInlineEnd:K.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${K.motionDurationSlow}`}}}}var N=K=>{const{componentCls:le}=K,be=(0,P.TS)(K,{controlHeight:K.controlHeightSM,multipleSelectItemHeight:K.controlHeightXS,borderRadius:K.borderRadiusSM,borderRadiusSM:K.borderRadiusXS}),Ne=(0,P.TS)(K,{fontSize:K.fontSizeLG,controlHeight:K.controlHeightLG,multipleSelectItemHeight:K.multipleItemHeightLG,borderRadius:K.borderRadiusLG,borderRadiusSM:K.borderRadius}),[,ye]=$(K);return[_(K),_(be,"sm"),{[`${le}-multiple${le}-sm`]:{[`${le}-selection-placeholder`]:{insetInline:K.controlPaddingHorizontalSM-K.lineWidth},[`${le}-selection-search`]:{marginInlineStart:ye}}},_(Ne,"lg")]};function R(K,le){const{componentCls:be,inputPaddingHorizontalBase:Ne,borderRadius:ye}=K,Ue=K.controlHeight-K.lineWidth*2,q=Math.ceil(K.fontSize*1.25),de=le?`${be}-${le}`:"";return{[`${be}-single${de}`]:{fontSize:K.fontSize,[`${be}-selector`]:Object.assign(Object.assign({},(0,me.Wf)(K)),{display:"flex",borderRadius:ye,[`${be}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ne,insetInlineEnd:Ne,bottom:0,"&-input":{width:"100%"}},[`
${be}-selection-item,
${be}-selection-placeholder
`]:{padding:0,lineHeight:`${Ue}px`,transition:`all ${K.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Ue}px`}},[`${be}-selection-item`]:{position:"relative",userSelect:"none"},[`${be}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${be}-selection-item:after`,`${be}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
&${be}-show-arrow ${be}-selection-item,
&${be}-show-arrow ${be}-selection-placeholder
`]:{paddingInlineEnd:q},[`&${be}-open ${be}-selection-item`]:{color:K.colorTextPlaceholder},[`&:not(${be}-customize-input)`]:{[`${be}-selector`]:{width:"100%",height:K.controlHeight,padding:`0 ${Ne}px`,[`${be}-selection-search-input`]:{height:Ue},"&:after":{lineHeight:`${Ue}px`}}},[`&${be}-customize-input`]:{[`${be}-selector`]:{"&:after":{display:"none"},[`${be}-selection-search`]:{position:"static",width:"100%"},[`${be}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ne}px`,"&:after":{display:"none"}}}}}}}function L(K){const{componentCls:le}=K,be=K.controlPaddingHorizontalSM-K.lineWidth;return[R(K),R((0,P.TS)(K,{controlHeight:K.controlHeightSM,borderRadius:K.borderRadiusSM}),"sm"),{[`${le}-single${le}-sm`]:{[`&:not(${le}-customize-input)`]:{[`${le}-selection-search`]:{insetInlineStart:be,insetInlineEnd:be},[`${le}-selector`]:{padding:`0 ${be}px`},[`&${le}-show-arrow ${le}-selection-search`]:{insetInlineEnd:be+K.fontSize*1.5},[`
&${le}-show-arrow ${le}-selection-item,
&${le}-show-arrow ${le}-selection-placeholder
`]:{paddingInlineEnd:K.fontSize*1.5}}}},R((0,P.TS)(K,{controlHeight:K.singleItemHeightLG,fontSize:K.fontSizeLG,borderRadius:K.borderRadiusLG}),"lg")]}const X=K=>{const{componentCls:le,selectorBg:be}=K;return{position:"relative",backgroundColor:be,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"}}}},Q=function(K,le){let be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ne,borderHoverColor:ye,outlineColor:Ue,antCls:q}=le,de=be?{[`${Ne}-selector`]:{borderColor:ye}}:{};return{[K]:{[`&:not(${Ne}-disabled):not(${Ne}-customize-input):not(${q}-pagination-size-changer)`]:Object.assign(Object.assign({},de),{[`${Ne}-focused& ${Ne}-selector`]:{borderColor:ye,boxShadow:`0 0 0 ${le.controlOutlineWidth}px ${Ue}`,outline:0},[`&:hover ${Ne}-selector`]:{borderColor:ye}})}}},oe=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"}}}},ee=K=>{const{componentCls:le,inputPaddingHorizontalBase:be,iconCls:Ne}=K;return{[le]:Object.assign(Object.assign({},(0,me.Wf)(K)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${le}-customize-input) ${le}-selector`]:Object.assign(Object.assign({},X(K)),oe(K)),[`${le}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},me.vS),[`${le}-selection-placeholder`]:Object.assign(Object.assign({},me.vS),{flex:1,color:K.colorTextPlaceholder,pointerEvents:"none"}),[`${le}-arrow`]:Object.assign(Object.assign({},(0,me.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:be,height:K.fontSizeIcon,marginTop:-K.fontSizeIcon/2,color:K.colorTextQuaternary,fontSize:K.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ne]:{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:be,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:be+K.fontSize+K.paddingXS}}}},re=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%"}}},ee(K),L(K),N(K),M(K),{[`${le}-rtl`]:{direction:"rtl"}},Q(le,(0,P.TS)(K,{borderHoverColor:K.colorPrimaryHover,outlineColor:K.controlOutline})),Q(`${le}-status-error`,(0,P.TS)(K,{borderHoverColor:K.colorErrorHover,outlineColor:K.colorErrorOutline}),!0),Q(`${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 G=(0,Oe.Z)("Select",(K,le)=>{let{rootPrefixCls:be}=le;const Ne=(0,P.TS)(K,{rootPrefixCls:be,inputPaddingHorizontalBase:K.paddingSM-1,multipleSelectItemHeight:K.multipleItemHeight});return[re(Ne)]},K=>{const{fontSize:le,lineHeight:be,controlHeight:Ne,controlPaddingHorizontal:ye,zIndexPopupBase:Ue,colorText:q,fontWeightStrong:de,controlItemBgActive:D,controlItemBgHover:qe,colorBgContainer:Me,colorFillSecondary:xe,controlHeightLG:Te,controlHeightSM:ve,colorBgContainerDisabled:De,colorTextDisabled:pe}=K;return{zIndexPopup:Ue+50,optionSelectedColor:q,optionSelectedFontWeight:de,optionSelectedBg:D,optionActiveBg:qe,optionPadding:`${(Ne-le*be)/2}px ${ye}px`,optionFontSize:le,optionLineHeight:be,optionHeight:Ne,selectorBg:Me,clearBg:Me,singleItemHeightLG:Te,multipleItemBg:xe,multipleItemBorderColor:"transparent",multipleItemHeight:ve,multipleItemHeightLG:Ne,multipleSelectorBgDisabled:De,multipleItemColorDisabled:pe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return Ae}});const me=P=>{const ne={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:P==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},ne),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},ne),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},ne),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},ne),{points:["br","tr"],offset:[0,-4]})}};function Ae(P,Oe){return P||me(Oe)}},84443:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return me}});function me(Ae,P){return P!==void 0?P:Ae!==null}},66339:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return v}});var me=x(40001),Ae=x(19248),P=x(99267),Oe=x(84105),ne=x(58617),W=x(47472),S=x(59301);function v(M){let{suffixIcon:h,clearIcon:$,menuItemSelectedIcon:_,removeIcon:F,loading:N,multiple:R,hasFeedback:L,prefixCls:X,showSuffixIcon:Q,feedbackIcon:oe,showArrow:ee,componentName:re}=M;const G=$!=null?$:S.createElement(Ae.Z,null),K=ye=>h===null&&!L&&!ee?null:S.createElement(S.Fragment,null,Q!==!1&&ye,L&&oe);let le=null;if(h!==void 0)le=K(h);else if(N)le=K(S.createElement(ne.Z,{spin:!0}));else{const ye=`${X}-suffix`;le=Ue=>{let{open:q,showSearch:de}=Ue;return K(q&&de?S.createElement(W.Z,{className:ye}):S.createElement(Oe.Z,{className:ye}))}}let be=null;_!==void 0?be=_:R?be=S.createElement(me.Z,null):be=null;let Ne=null;return F!==void 0?Ne=F:Ne=S.createElement(P.Z,null),{clearIcon:G,suffixIcon:le,itemIcon:be,removeIcon:Ne}}},61621:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var me=x(92310),Ae=x.n(me),P=x(59301),Oe=x(36355),ne=x(2738),S=f=>{const{prefixCls:C,className:Y,style:Be,size:H,shape:ie}=f,Qe=Ae()({[`${C}-lg`]:H==="large",[`${C}-sm`]:H==="small"}),we=Ae()({[`${C}-circle`]:ie==="circle",[`${C}-square`]:ie==="square",[`${C}-round`]:ie==="round"}),ce=P.useMemo(()=>typeof H=="number"?{width:H,height:H,lineHeight:`${H}px`}:{},[H]);return P.createElement("span",{className:Ae()(C,Qe,we,Y),style:Object.assign(Object.assign({},ce),Be)})},v=x(36237),M=x(83116),h=x(37613);const $=new v.Keyframes("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),_=f=>({height:f,lineHeight:`${f}px`}),F=f=>Object.assign({width:f},_(f)),N=f=>({background:f.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:$,animationDuration:f.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),R=f=>Object.assign({width:f*5,minWidth:f*5},_(f)),L=f=>{const{skeletonAvatarCls:C,gradientFromColor:Y,controlHeight:Be,controlHeightLG:H,controlHeightSM:ie}=f;return{[`${C}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Y},F(Be)),[`${C}${C}-circle`]:{borderRadius:"50%"},[`${C}${C}-lg`]:Object.assign({},F(H)),[`${C}${C}-sm`]:Object.assign({},F(ie))}},X=f=>{const{controlHeight:C,borderRadiusSM:Y,skeletonInputCls:Be,controlHeightLG:H,controlHeightSM:ie,gradientFromColor:Qe}=f;return{[`${Be}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qe,borderRadius:Y},R(C)),[`${Be}-lg`]:Object.assign({},R(H)),[`${Be}-sm`]:Object.assign({},R(ie))}},Q=f=>Object.assign({width:f},_(f)),oe=f=>{const{skeletonImageCls:C,imageSizeBase:Y,gradientFromColor:Be,borderRadiusSM:H}=f;return{[`${C}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Be,borderRadius:H},Q(Y*2)),{[`${C}-path`]:{fill:"#bfbfbf"},[`${C}-svg`]:Object.assign(Object.assign({},Q(Y)),{maxWidth:Y*4,maxHeight:Y*4}),[`${C}-svg${C}-svg-circle`]:{borderRadius:"50%"}}),[`${C}${C}-circle`]:{borderRadius:"50%"}}},ee=(f,C,Y)=>{const{skeletonButtonCls:Be}=f;return{[`${Y}${Be}-circle`]:{width:C,minWidth:C,borderRadius:"50%"},[`${Y}${Be}-round`]:{borderRadius:C}}},re=f=>Object.assign({width:f*2,minWidth:f*2},_(f)),G=f=>{const{borderRadiusSM:C,skeletonButtonCls:Y,controlHeight:Be,controlHeightLG:H,controlHeightSM:ie,gradientFromColor:Qe}=f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${Y}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qe,borderRadius:C,width:Be*2,minWidth:Be*2},re(Be))},ee(f,Be,Y)),{[`${Y}-lg`]:Object.assign({},re(H))}),ee(f,H,`${Y}-lg`)),{[`${Y}-sm`]:Object.assign({},re(ie))}),ee(f,ie,`${Y}-sm`))},K=f=>{const{componentCls:C,skeletonAvatarCls:Y,skeletonTitleCls:Be,skeletonParagraphCls:H,skeletonButtonCls:ie,skeletonInputCls:Qe,skeletonImageCls:we,controlHeight:ce,controlHeightLG:ze,controlHeightSM:vt,gradientFromColor:he,padding:at,marginSM:rt,borderRadius:ke,titleHeight:Fe,blockRadius:ct,paragraphLiHeight:Tt,controlHeightXS:Pt,paragraphMarginTop:Yt}=f;return{[`${C}`]:{display:"table",width:"100%",[`${C}-header`]:{display:"table-cell",paddingInlineEnd:at,verticalAlign:"top",[`${Y}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:he},F(ce)),[`${Y}-circle`]:{borderRadius:"50%"},[`${Y}-lg`]:Object.assign({},F(ze)),[`${Y}-sm`]:Object.assign({},F(vt))},[`${C}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Be}`]:{width:"100%",height:Fe,background:he,borderRadius:ct,[`+ ${H}`]:{marginBlockStart:vt}},[`${H}`]:{padding:0,"> li":{width:"100%",height:Tt,listStyle:"none",background:he,borderRadius:ct,"+ li":{marginBlockStart:Pt}}},[`${H}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${C}-content`]:{[`${Be}, ${H} > li`]:{borderRadius:ke}}},[`${C}-with-avatar ${C}-content`]:{[`${Be}`]:{marginBlockStart:rt,[`+ ${H}`]:{marginBlockStart:Yt}}},[`${C}${C}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},G(f)),L(f)),X(f)),oe(f)),[`${C}${C}-block`]:{width:"100%",[`${ie}`]:{width:"100%"},[`${Qe}`]:{width:"100%"}},[`${C}${C}-active`]:{[`
${Be},
${H} > li,
${Y},
${ie},
${Qe},
${we}
`]:Object.assign({},N(f))}}};var le=(0,M.Z)("Skeleton",f=>{const{componentCls:C}=f,Y=(0,h.TS)(f,{skeletonAvatarCls:`${C}-avatar`,skeletonTitleCls:`${C}-title`,skeletonParagraphCls:`${C}-paragraph`,skeletonButtonCls:`${C}-button`,skeletonInputCls:`${C}-input`,skeletonImageCls:`${C}-image`,imageSizeBase:f.controlHeight*1.5,borderRadius:100,skeletonLoadingBackground:`linear-gradient(90deg, ${f.gradientFromColor} 25%, ${f.gradientToColor} 37%, ${f.gradientFromColor} 63%)`,skeletonLoadingMotionDuration:"1.4s"});return[K(Y)]},f=>{const{colorFillContent:C,colorFill:Y}=f,Be=C,H=Y;return{color:Be,colorGradientEnd:H,gradientFromColor:Be,gradientToColor:H,titleHeight:f.controlHeight/2,blockRadius:f.borderRadiusSM,paragraphMarginTop:f.marginLG+f.marginXXS,paragraphLiHeight:f.controlHeight/2}},{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),Ne=f=>{const{prefixCls:C,className:Y,rootClassName:Be,active:H,shape:ie="circle",size:Qe="default"}=f,{getPrefixCls:we}=P.useContext(Oe.E_),ce=we("skeleton",C),[ze,vt]=le(ce),he=(0,ne.Z)(f,["prefixCls","className"]),at=Ae()(ce,`${ce}-element`,{[`${ce}-active`]:H},Y,Be,vt);return ze(P.createElement("div",{className:at},P.createElement(S,Object.assign({prefixCls:`${ce}-avatar`,shape:ie,size:Qe},he))))},Ue=f=>{const{prefixCls:C,className:Y,rootClassName:Be,active:H,block:ie=!1,size:Qe="default"}=f,{getPrefixCls:we}=P.useContext(Oe.E_),ce=we("skeleton",C),[ze,vt]=le(ce),he=(0,ne.Z)(f,["prefixCls"]),at=Ae()(ce,`${ce}-element`,{[`${ce}-active`]:H,[`${ce}-block`]:ie},Y,Be,vt);return ze(P.createElement("div",{className:at},P.createElement(S,Object.assign({prefixCls:`${ce}-button`,size:Qe},he))))};const q="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=f=>{const{prefixCls:C,className:Y,rootClassName:Be,style:H,active:ie}=f,{getPrefixCls:Qe}=P.useContext(Oe.E_),we=Qe("skeleton",C),[ce,ze]=le(we),vt=Ae()(we,`${we}-element`,{[`${we}-active`]:ie},Y,Be,ze);return ce(P.createElement("div",{className:vt},P.createElement("div",{className:Ae()(`${we}-image`,Y),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:q,className:`${we}-image-path`})))))},Me=f=>{const{prefixCls:C,className:Y,rootClassName:Be,active:H,block:ie,size:Qe="default"}=f,{getPrefixCls:we}=P.useContext(Oe.E_),ce=we("skeleton",C),[ze,vt]=le(ce),he=(0,ne.Z)(f,["prefixCls"]),at=Ae()(ce,`${ce}-element`,{[`${ce}-active`]:H,[`${ce}-block`]:ie},Y,Be,vt);return ze(P.createElement("div",{className:at},P.createElement(S,Object.assign({prefixCls:`${ce}-input`,size:Qe},he))))},xe=x(54476),Te={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM288 604a64 64 0 10128 0 64 64 0 10-128 0zm118-224a48 48 0 1096 0 48 48 0 10-96 0zm158 228a96 96 0 10192 0 96 96 0 10-192 0zm148-314a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"dot-chart",theme:"outlined"},ve=Te,De=x(7657),pe=function(C,Y){return P.createElement(De.Z,(0,xe.Z)({},C,{ref:Y,icon:ve}))},Se=P.forwardRef(pe),Xe=Se,je=f=>{const{prefixCls:C,className:Y,rootClassName:Be,style:H,active:ie,children:Qe}=f,{getPrefixCls:we}=P.useContext(Oe.E_),ce=we("skeleton",C),[ze,vt]=le(ce),he=Ae()(ce,`${ce}-element`,{[`${ce}-active`]:ie},vt,Y,Be),at=Qe!=null?Qe:P.createElement(Xe,null);return ze(P.createElement("div",{className:he},P.createElement("div",{className:Ae()(`${ce}-image`,Y),style:H},at)))},Ye=x(94480),kt=f=>{const C=we=>{const{width:ce,rows:ze=2}=f;if(Array.isArray(ce))return ce[we];if(ze-1===we)return ce},{prefixCls:Y,className:Be,style:H,rows:ie}=f,Qe=(0,Ye.Z)(Array(ie)).map((we,ce)=>P.createElement("li",{key:ce,style:{width:C(ce)}}));return P.createElement("ul",{className:Ae()(Y,Be),style:H},Qe)},sr=f=>{let{prefixCls:C,className:Y,width:Be,style:H}=f;return P.createElement("h3",{className:Ae()(C,Y),style:Object.assign({width:Be},H)})};function rr(f){return f&&typeof f=="object"?f:{}}function br(f,C){return f&&!C?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function lr(f,C){return!f&&C?{width:"38%"}:f&&C?{width:"50%"}:{}}function V(f,C){const Y={};return(!f||!C)&&(Y.width="61%"),!f&&C?Y.rows=3:Y.rows=2,Y}const dt=f=>{const{prefixCls:C,loading:Y,className:Be,rootClassName:H,style:ie,children:Qe,avatar:we=!1,title:ce=!0,paragraph:ze=!0,active:vt,round:he}=f,{getPrefixCls:at,direction:rt,skeleton:ke}=P.useContext(Oe.E_),Fe=at("skeleton",C),[ct,Tt]=le(Fe);if(Y||!("loading"in f)){const Pt=!!we,Yt=!!ce,Fr=!!ze;let Lr;if(Pt){const yr=Object.assign(Object.assign({prefixCls:`${Fe}-avatar`},br(Yt,Fr)),rr(we));Lr=P.createElement("div",{className:`${Fe}-header`},P.createElement(S,Object.assign({},yr)))}let Nr;if(Yt||Fr){let yr;if(Yt){const Qr=Object.assign(Object.assign({prefixCls:`${Fe}-title`},lr(Pt,Fr)),rr(ce));yr=P.createElement(sr,Object.assign({},Qr))}let dr;if(Fr){const Qr=Object.assign(Object.assign({prefixCls:`${Fe}-paragraph`},V(Pt,Yt)),rr(ze));dr=P.createElement(kt,Object.assign({},Qr))}Nr=P.createElement("div",{className:`${Fe}-content`},yr,dr)}const kr=Ae()(Fe,{[`${Fe}-with-avatar`]:Pt,[`${Fe}-active`]:vt,[`${Fe}-rtl`]:rt==="rtl",[`${Fe}-round`]:he},ke==null?void 0:ke.className,Be,H,Tt);return ct(P.createElement("div",{className:kr,style:Object.assign(Object.assign({},ke==null?void 0:ke.style),ie)},Lr,Nr))}return typeof Qe!="undefined"?Qe:null};dt.Button=Ue,dt.Avatar=Ne,dt.Input=Me,dt.Image=D,dt.Node=je;var I=dt,m=I},81327:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return X}});var me=x(59301),Ae=x(92310),P=x.n(Ae),Oe=x(11592),ne=x(36355),W=x(33234);const S=me.createContext({latestIndex:0}),v=S.Provider;var h=Q=>{let{className:oe,index:ee,children:re,split:G,style:K}=Q;const{latestIndex:le}=me.useContext(S);return re==null?null:me.createElement(me.Fragment,null,me.createElement("div",{className:oe,style:K},re),ee<le&&G&&me.createElement("span",{className:`${oe}-split`},G))},$=x(2856);function _(Q){return["small","middle","large"].includes(Q)}function F(Q){return Q?typeof Q=="number"&&!Number.isNaN(Q):!1}var N=function(Q,oe){var ee={};for(var re in Q)Object.prototype.hasOwnProperty.call(Q,re)&&oe.indexOf(re)<0&&(ee[re]=Q[re]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,re=Object.getOwnPropertySymbols(Q);G<re.length;G++)oe.indexOf(re[G])<0&&Object.prototype.propertyIsEnumerable.call(Q,re[G])&&(ee[re[G]]=Q[re[G]]);return ee};const L=me.forwardRef((Q,oe)=>{var ee,re;const{getPrefixCls:G,space:K,direction:le}=me.useContext(ne.E_),{size:be=(K==null?void 0:K.size)||"small",align:Ne,className:ye,rootClassName:Ue,children:q,direction:de="horizontal",prefixCls:D,split:qe,style:Me,wrap:xe=!1,classNames:Te,styles:ve}=Q,De=N(Q,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[pe,Se]=Array.isArray(be)?be:[be,be],Xe=_(Se),et=_(pe),je=F(Se),Ye=F(pe),_t=(0,Oe.Z)(q,{keepEmpty:!0}),kt=Ne===void 0&&de==="horizontal"?"center":Ne,Ot=G("space",D),[sr,rr]=(0,$.Z)(Ot),br=P()(Ot,K==null?void 0:K.className,rr,`${Ot}-${de}`,{[`${Ot}-rtl`]:le==="rtl",[`${Ot}-align-${kt}`]:kt,[`${Ot}-gap-row-${Se}`]:Xe,[`${Ot}-gap-col-${pe}`]:et},ye,Ue),lr=P()(`${Ot}-item`,(ee=Te==null?void 0:Te.item)!==null&&ee!==void 0?ee:(re=K==null?void 0:K.classNames)===null||re===void 0?void 0:re.item);let V=0;const dt=_t.map((f,C)=>{var Y,Be;f!=null&&(V=C);const H=f&&f.key||`${lr}-${C}`;return me.createElement(h,{className:lr,key:H,index:C,split:qe,style:(Y=ve==null?void 0:ve.item)!==null&&Y!==void 0?Y:(Be=K==null?void 0:K.styles)===null||Be===void 0?void 0:Be.item},f)}),I=me.useMemo(()=>({latestIndex:V}),[V]);if(_t.length===0)return null;const m={};return xe&&(m.flexWrap="wrap"),!et&&Ye&&(m.columnGap=pe),!Xe&&je&&(m.rowGap=Se),sr(me.createElement("div",Object.assign({ref:oe,className:br,style:Object.assign(Object.assign(Object.assign({},m),K==null?void 0:K.style),Me)},De),me.createElement(v,{value:I},dt)))});L.Compact=W.ZP;var X=L},8378:function(un,Ut){"use strict";const x=me=>({[me.componentCls]:{[`${me.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${me.motionDurationMid} ${me.motionEaseInOut},
opacity ${me.motionDurationMid} ${me.motionEaseInOut} !important`}},[`${me.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${me.motionDurationMid} ${me.motionEaseInOut},
opacity ${me.motionDurationMid} ${me.motionEaseInOut} !important`}}});Ut.Z=x},92899:function(un,Ut,x){"use strict";x.d(Ut,{Fm:function(){return _}});var me=x(36237),Ae=x(95406);const P=new me.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),Oe=new me.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),ne=new me.Keyframes("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),W=new me.Keyframes("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),S=new me.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),v=new me.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),M=new me.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),h=new me.Keyframes("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),$={"move-up":{inKeyframes:M,outKeyframes:h},"move-down":{inKeyframes:P,outKeyframes:Oe},"move-left":{inKeyframes:ne,outKeyframes:W},"move-right":{inKeyframes:S,outKeyframes:v}},_=(F,N)=>{const{antCls:R}=F,L=`${R}-${N}`,{inKeyframes:X,outKeyframes:Q}=$[N];return[(0,Ae.R)(L,X,Q,F.motionDurationMid),{[`
${L}-enter,
${L}-appear
`]:{opacity:0,animationTimingFunction:F.motionEaseOutCirc},[`${L}-leave`]:{animationTimingFunction:F.motionEaseInOutCirc}}]}},13826:function(un,Ut,x){"use strict";x.d(Ut,{Qt:function(){return ne},Uw:function(){return Oe},fJ:function(){return P},ly:function(){return W},oN:function(){return _}});var me=x(36237),Ae=x(95406);const P=new me.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),Oe=new me.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),ne=new me.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),W=new me.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),S=new me.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),v=new me.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),M=new me.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),h=new me.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:Oe},"slide-down":{inKeyframes:ne,outKeyframes:W},"slide-left":{inKeyframes:S,outKeyframes:v},"slide-right":{inKeyframes:M,outKeyframes:h}},_=(F,N)=>{const{antCls:R}=F,L=`${R}-${N}`,{inKeyframes:X,outKeyframes:Q}=$[N];return[(0,Ae.R)(L,X,Q,F.motionDurationMid),{[`
${L}-enter,
${L}-appear
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:F.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${L}-leave`]:{animationTimingFunction:F.motionEaseInQuint}}]}},15969:function(un,Ut,x){"use strict";x.d(Ut,{N:function(){return me}});const me=Ae=>({color:Ae.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${Ae.motionDurationSlow}`,"&:focus, &:hover":{color:Ae.colorLinkHover},"&:active":{color:Ae.colorLinkActive}})},1710:function(un,Ut,x){"use strict";x.d(Ut,{default:function(){return C0}});var me={},Ae="rc-table-internal-hook",P=x(42978),Oe=x(6089),ne=x(34280),W=x(13697),S=x(59301),v=x(4676);function M(fe){var Ce=S.createContext(void 0),Je=function(Bt){var yt=Bt.value,$t=Bt.children,zt=S.useRef(yt);zt.current=yt;var Kt=S.useState(function(){return{getValue:function(){return zt.current},listeners:new Set}}),ur=(0,P.Z)(Kt,1),_r=ur[0];return(0,ne.Z)(function(){(0,v.unstable_batchedUpdates)(function(){_r.listeners.forEach(function(pr){pr(yt)})})},[yt]),S.createElement(Ce.Provider,{value:_r},$t)};return{Context:Ce,Provider:Je,defaultValue:fe}}function h(fe,Ce){var Je=(0,Oe.Z)(typeof Ce=="function"?Ce:function(pr){if(Ce===void 0)return pr;if(!Array.isArray(Ce))return pr[Ce];var tn={};return Ce.forEach(function(Vr){tn[Vr]=pr[Vr]}),tn}),lt=S.useContext(fe==null?void 0:fe.Context),Bt=lt||{},yt=Bt.listeners,$t=Bt.getValue,zt=S.useRef();zt.current=Je(lt?$t():fe==null?void 0:fe.defaultValue);var Kt=S.useState({}),ur=(0,P.Z)(Kt,2),_r=ur[1];return(0,ne.Z)(function(){if(!lt)return;function pr(tn){var Vr=Je(tn);(0,W.Z)(zt.current,Vr,!0)||_r({})}return yt.add(pr),function(){yt.delete(pr)}},[lt]),zt.current}var $=x(54476),_=x(8654);function F(){var fe=S.createContext(null);function Ce(){return S.useContext(fe)}function Je(Bt,yt){var $t=(0,_.Yr)(Bt),zt=function(ur,_r){var pr=$t?{ref:_r}:{},tn=S.useRef(0),Vr=S.useRef(ur),Yr=Ce();return Yr!==null?S.createElement(Bt,(0,$.Z)({},ur,pr)):((!yt||yt(Vr.current,ur))&&(tn.current+=1),Vr.current=ur,S.createElement(fe.Provider,{value:tn.current},S.createElement(Bt,(0,$.Z)({},ur,pr))))};return $t?S.forwardRef(zt):zt}function lt(Bt,yt){var $t=(0,_.Yr)(Bt),zt=function(ur,_r){var pr=$t?{ref:_r}:{};return Ce(),S.createElement(Bt,(0,$.Z)({},ur,pr))};return $t?S.memo(S.forwardRef(zt),yt):S.memo(zt,yt)}return{makeImmutable:Je,responseImmutable:lt,useImmutableMark:Ce}}var N=F(),R=N.makeImmutable,L=N.responseImmutable,X=N.useImmutableMark,Q=F(),oe=Q.makeImmutable,ee=Q.responseImmutable,re=Q.useImmutableMark,G=M(),K=G;function le(fe,Ce){var Je=S.useRef(0);Je.current+=1;var lt=S.useRef(fe),Bt=[];Object.keys(fe||{}).map(function($t){var zt;(fe==null?void 0:fe[$t])!==((zt=lt.current)===null||zt===void 0?void 0:zt[$t])&&Bt.push($t)}),lt.current=fe;var yt=S.useRef([]);return Bt.length&&(yt.current=Bt),S.useDebugValue(Je.current),S.useDebugValue(yt.current.join(", ")),Ce&&console.log("".concat(Ce,":"),Je.current,yt.current),Je.current}var be=null,Ne=S.memo(function(){var fe=le();return S.createElement("h1",null,"Render Times: ",fe)});Ne.displayName="RenderBlock";var ye=x(76190),Ue=x(33885),q=x(20068),de=x(92310),D=x.n(de),qe=x(80547),Me=x(97938),xe=x(48736),Te=S.createContext({renderWithProps:!1}),ve=Te,De="RC_TABLE_KEY";function pe(fe){return fe==null?[]:Array.isArray(fe)?fe:[fe]}function Se(fe){var Ce=[],Je={};return fe.forEach(function(lt){for(var Bt=lt||{},yt=Bt.key,$t=Bt.dataIndex,zt=yt||pe($t).join("-")||De;Je[zt];)zt="".concat(zt,"_next");Je[zt]=!0,Ce.push(zt)}),Ce}function Xe(fe){return fe!=null}function et(fe){return fe&&(0,ye.Z)(fe)==="object"&&!Array.isArray(fe)&&!S.isValidElement(fe)}function je(fe,Ce,Je,lt,Bt,yt){var $t=S.useContext(ve),zt=re(),Kt=(0,qe.Z)(function(){if(Xe(lt))return[lt];var ur=Ce==null||Ce===""?[]:Array.isArray(Ce)?Ce:[Ce],_r=(0,Me.Z)(fe,ur),pr=_r,tn=void 0;if(Bt){var Vr=Bt(_r,fe,Je);et(Vr)?(pr=Vr.children,tn=Vr.props,$t.renderWithProps=!0):pr=Vr}return[pr,tn]},[zt,fe,lt,Ce,Bt,Je],function(ur,_r){if(yt){var pr=(0,P.Z)(ur,2),tn=pr[1],Vr=(0,P.Z)(_r,2),Yr=Vr[1];return yt(Yr,tn)}return $t.renderWithProps?!0:!(0,W.Z)(ur,_r,!0)});return Kt}function Ye(fe,Ce,Je,lt){var Bt=fe+Ce-1;return fe<=lt&&Bt>=Je}function _t(fe,Ce){return h(K,function(Je){var lt=Ye(fe,Ce||1,Je.hoverStartRow,Je.hoverEndRow);return[lt,Je.onHover]})}var kt=function(Ce){var Je=Ce.ellipsis,lt=Ce.rowType,Bt=Ce.children,yt,$t=Je===!0?{showTitle:!0}:Je;return $t&&($t.showTitle||lt==="header")&&(typeof Bt=="string"||typeof Bt=="number"?yt=Bt.toString():S.isValidElement(Bt)&&typeof Bt.props.children=="string"&&(yt=Bt.props.children)),yt};function Ot(fe){var Ce,Je,lt,Bt,yt,$t,zt,Kt,ur=fe.component,_r=fe.children,pr=fe.ellipsis,tn=fe.scope,Vr=fe.prefixCls,Yr=fe.className,Nn=fe.align,xn=fe.record,Fn=fe.render,Bn=fe.dataIndex,$n=fe.renderIndex,Ui=fe.shouldCellUpdate,zi=fe.index,fi=fe.rowType,na=fe.colSpan,wa=fe.rowSpan,Jn=fe.fixLeft,mi=fe.fixRight,ii=fe.firstFixLeft,Pn=fe.lastFixLeft,ai=fe.firstFixRight,Vi=fe.lastFixRight,Pa=fe.appendNode,ma=fe.additionalProps,Wi=ma===void 0?{}:ma,Ia=fe.isSticky,Ka="".concat(Vr,"-cell"),es=h(K,["supportSticky","allColumnsFixedLeft"]),lo=es.supportSticky,ys=es.allColumnsFixedLeft,us=je(xn,Bn,$n,_r,Fn,Ui),ga=(0,P.Z)(us,2),ol=ga[0],go=ga[1],ts={},ns=typeof Jn=="number"&&lo,wc=typeof mi=="number"&&lo;ns&&(ts.position="sticky",ts.left=Jn),wc&&(ts.position="sticky",ts.right=mi);var oi=(Ce=(Je=(lt=go==null?void 0:go.colSpan)!==null&&lt!==void 0?lt:Wi.colSpan)!==null&&Je!==void 0?Je:na)!==null&&Ce!==void 0?Ce:1,Gi=(Bt=(yt=($t=go==null?void 0:go.rowSpan)!==null&&$t!==void 0?$t:Wi.rowSpan)!==null&&yt!==void 0?yt:wa)!==null&&Bt!==void 0?Bt:1,$i=_t(zi,Gi),Oi=(0,P.Z)($i,2),yo=Oi[0],Ni=Oi[1],ua=function(Hn){var uc;xn&&Ni(zi,zi+Gi-1),Wi==null||(uc=Wi.onMouseEnter)===null||uc===void 0||uc.call(Wi,Hn)},$a=function(Hn){var uc;xn&&Ni(-1,-1),Wi==null||(uc=Wi.onMouseLeave)===null||uc===void 0||uc.call(Wi,Hn)};if(oi===0||Gi===0)return null;var Va=(zt=Wi.title)!==null&&zt!==void 0?zt:kt({rowType:fi,ellipsis:pr,children:ol}),Fl=D()(Ka,Yr,(Kt={},(0,q.Z)(Kt,"".concat(Ka,"-fix-left"),ns&&lo),(0,q.Z)(Kt,"".concat(Ka,"-fix-left-first"),ii&&lo),(0,q.Z)(Kt,"".concat(Ka,"-fix-left-last"),Pn&&lo),(0,q.Z)(Kt,"".concat(Ka,"-fix-left-all"),Pn&&ys&&lo),(0,q.Z)(Kt,"".concat(Ka,"-fix-right"),wc&&lo),(0,q.Z)(Kt,"".concat(Ka,"-fix-right-first"),ai&&lo),(0,q.Z)(Kt,"".concat(Ka,"-fix-right-last"),Vi&&lo),(0,q.Z)(Kt,"".concat(Ka,"-ellipsis"),pr),(0,q.Z)(Kt,"".concat(Ka,"-with-append"),Pa),(0,q.Z)(Kt,"".concat(Ka,"-fix-sticky"),(ns||wc)&&Ia&&lo),(0,q.Z)(Kt,"".concat(Ka,"-row-hover"),!go&&yo),Kt),Wi.className,go==null?void 0:go.className),nl={};Nn&&(nl.textAlign=Nn);var Gc=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},ts),Wi.style),nl),go==null?void 0:go.style),Rs=ol;return(0,ye.Z)(Rs)==="object"&&!Array.isArray(Rs)&&!S.isValidElement(Rs)&&(Rs=null),pr&&(Pn||ai)&&(Rs=S.createElement("span",{className:"".concat(Ka,"-content")},Rs)),S.createElement(ur,(0,$.Z)({},go,Wi,{className:Fl,style:Gc,title:Va,scope:tn,onMouseEnter:ua,onMouseLeave:$a,colSpan:oi!==1?oi:null,rowSpan:Gi!==1?Gi:null}),Pa,Rs)}var sr=S.memo(Ot);function rr(fe,Ce,Je,lt,Bt,yt){var $t=Je[fe]||{},zt=Je[Ce]||{},Kt,ur;$t.fixed==="left"?Kt=lt.left[Bt==="rtl"?Ce:fe]:zt.fixed==="right"&&(ur=lt.right[Bt==="rtl"?fe:Ce]);var _r=!1,pr=!1,tn=!1,Vr=!1,Yr=Je[Ce+1],Nn=Je[fe-1],xn=!(yt!=null&&yt.children);if(Bt==="rtl"){if(Kt!==void 0){var Fn=Nn&&Nn.fixed==="left";Vr=!Fn&&xn}else if(ur!==void 0){var Bn=Yr&&Yr.fixed==="right";tn=!Bn&&xn}}else if(Kt!==void 0){var $n=Yr&&Yr.fixed==="left";_r=!$n&&xn}else if(ur!==void 0){var Ui=Nn&&Nn.fixed==="right";pr=!Ui&&xn}return{fixLeft:Kt,fixRight:ur,lastFixLeft:_r,firstFixRight:pr,lastFixRight:tn,firstFixLeft:Vr,isSticky:lt.isSticky}}var br=S.createContext({}),lr=br;function V(fe){var Ce=fe.className,Je=fe.index,lt=fe.children,Bt=fe.colSpan,yt=Bt===void 0?1:Bt,$t=fe.rowSpan,zt=fe.align,Kt=h(K,["prefixCls","direction"]),ur=Kt.prefixCls,_r=Kt.direction,pr=S.useContext(lr),tn=pr.scrollColumnIndex,Vr=pr.stickyOffsets,Yr=pr.flattenColumns,Nn=pr.columns,xn=Je+yt-1,Fn=xn+1===tn?yt+1:yt,Bn=rr(Je,Je+Fn-1,Yr,Vr,_r,Nn==null?void 0:Nn[Je]);return S.createElement(sr,(0,$.Z)({className:Ce,index:Je,component:"td",prefixCls:ur,record:null,dataIndex:null,align:zt,colSpan:Fn,rowSpan:$t,render:function(){return lt}},Bn))}var dt=x(75931),I=["children"];function m(fe){var Ce=fe.children,Je=(0,dt.Z)(fe,I);return S.createElement("tr",Je,Ce)}function f(fe){var Ce=fe.children;return Ce}f.Row=m,f.Cell=V;var C=f;function Y(fe){var Ce=fe.children,Je=fe.stickyOffsets,lt=fe.flattenColumns,Bt=fe.columns,yt=h(K,"prefixCls"),$t=lt.length-1,zt=lt[$t],Kt=S.useMemo(function(){return{stickyOffsets:Je,flattenColumns:lt,scrollColumnIndex:zt!=null&&zt.scrollbar?$t:null,columns:Bt}},[zt,lt,$t,Je,Bt]);return S.createElement(lr.Provider,{value:Kt},S.createElement("tfoot",{className:"".concat(yt,"-summary")},Ce))}var Be=ee(Y),H=C,ie=x(70425),Qe=x(29301),we=x(29194),ce=x(24514),ze=x(75152),vt=x(26112);function he(fe,Ce,Je,lt,Bt,yt,$t){fe.push({record:Ce,indent:Je,index:$t});var zt=yt(Ce),Kt=Bt==null?void 0:Bt.has(zt);if(Ce&&Array.isArray(Ce[lt])&&Kt)for(var ur=0;ur<Ce[lt].length;ur+=1)he(fe,Ce[lt][ur],Je+1,lt,Bt,yt,ur)}function at(fe,Ce,Je,lt){var Bt=S.useMemo(function(){if(Je!=null&&Je.size){for(var yt=[],$t=0;$t<(fe==null?void 0:fe.length);$t+=1){var zt=fe[$t];he(yt,zt,0,Ce,Je,lt,$t)}return yt}return fe==null?void 0:fe.map(function(Kt,ur){return{record:Kt,indent:0,index:ur}})},[fe,Ce,Je,lt]);return Bt}function rt(fe){var Ce=fe.prefixCls,Je=fe.children,lt=fe.component,Bt=fe.cellComponent,yt=fe.className,$t=fe.expanded,zt=fe.colSpan,Kt=fe.isEmpty,ur=h(K,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),_r=ur.scrollbarSize,pr=ur.fixHeader,tn=ur.fixColumn,Vr=ur.componentWidth,Yr=ur.horizonScroll,Nn=Je;return(Kt?Yr&&Vr:tn)&&(Nn=S.createElement("div",{style:{width:Vr-(pr?_r:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Ce,"-expanded-row-fixed")},Nn)),S.createElement(lt,{className:yt,style:{display:$t?null:"none"}},S.createElement(sr,{component:Bt,prefixCls:Ce,colSpan:zt},Nn))}var ke=rt;function Fe(fe,Ce,Je,lt){var Bt=h(K,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),yt=Bt.flattenColumns,$t=Bt.expandableType,zt=Bt.expandedKeys,Kt=Bt.childrenColumnName,ur=Bt.onTriggerExpand,_r=Bt.rowExpandable,pr=Bt.onRow,tn=Bt.expandRowByClick,Vr=Bt.rowClassName,Yr=$t==="nest",Nn=$t==="row"&&(!_r||_r(fe)),xn=Nn||Yr,Fn=zt&&zt.has(Ce),Bn=Kt&&fe&&fe[Kt],$n=(0,ie.useEvent)(ur),Ui=pr==null?void 0:pr(fe,Je),zi=Ui==null?void 0:Ui.onClick,fi=function(mi){tn&&xn&&ur(fe,mi);for(var ii=arguments.length,Pn=new Array(ii>1?ii-1:0),ai=1;ai<ii;ai++)Pn[ai-1]=arguments[ai];zi==null||zi.apply(void 0,[mi].concat(Pn))},na;typeof Vr=="string"?na=Vr:typeof Vr=="function"&&(na=Vr(fe,Je,lt));var wa=Se(yt);return(0,Ue.Z)((0,Ue.Z)({},Bt),{},{columnsKey:wa,nestExpandable:Yr,expanded:Fn,hasNestChildren:Bn,record:fe,onTriggerExpand:$n,rowSupportExpand:Nn,expandable:xn,rowProps:(0,Ue.Z)((0,Ue.Z)({},Ui),{},{className:D()(na,Ui==null?void 0:Ui.className),onClick:fi})})}function ct(fe,Ce,Je,lt,Bt){var yt=fe.record,$t=fe.prefixCls,zt=fe.columnsKey,Kt=fe.fixedInfoList,ur=fe.expandIconColumnIndex,_r=fe.nestExpandable,pr=fe.indentSize,tn=fe.expandIcon,Vr=fe.expanded,Yr=fe.hasNestChildren,Nn=fe.onTriggerExpand,xn=zt[Je],Fn=Kt[Je],Bn;Je===(ur||0)&&_r&&(Bn=S.createElement(S.Fragment,null,S.createElement("span",{style:{paddingLeft:"".concat(pr*lt,"px")},className:"".concat($t,"-row-indent indent-level-").concat(lt)}),tn({prefixCls:$t,expanded:Vr,expandable:Yr,record:yt,onExpand:Nn})));var $n;return Ce.onCell&&($n=Ce.onCell(yt,Bt)),{key:xn,fixedInfo:Fn,appendCellNode:Bn,additionalCellProps:$n||{}}}function Tt(fe){var Ce=fe.className,Je=fe.style,lt=fe.record,Bt=fe.index,yt=fe.renderIndex,$t=fe.rowKey,zt=fe.indent,Kt=zt===void 0?0:zt,ur=fe.rowComponent,_r=fe.cellComponent,pr=fe.scopeCellComponent,tn=Fe(lt,$t,Bt,Kt),Vr=tn.prefixCls,Yr=tn.flattenColumns,Nn=tn.expandedRowClassName,xn=tn.expandedRowRender,Fn=tn.rowProps,Bn=tn.expanded,$n=tn.rowSupportExpand,Ui=S.useState(!1),zi=(0,P.Z)(Ui,2),fi=zi[0],na=zi[1];S.useEffect(function(){Bn&&na(!0)},[Bn]);var wa=S.createElement(ur,(0,$.Z)({},Fn,{"data-row-key":$t,className:D()(Ce,"".concat(Vr,"-row"),"".concat(Vr,"-row-level-").concat(Kt),Fn==null?void 0:Fn.className),style:(0,Ue.Z)((0,Ue.Z)({},Je),Fn==null?void 0:Fn.style)}),Yr.map(function(Pn,ai){var Vi=Pn.render,Pa=Pn.dataIndex,ma=Pn.className,Wi=ct(tn,Pn,ai,Kt,Bt),Ia=Wi.key,Ka=Wi.fixedInfo,es=Wi.appendCellNode,lo=Wi.additionalCellProps;return S.createElement(sr,(0,$.Z)({className:ma,ellipsis:Pn.ellipsis,align:Pn.align,scope:Pn.rowScope,component:Pn.rowScope?pr:_r,prefixCls:Vr,key:Ia,record:lt,index:Bt,renderIndex:yt,dataIndex:Pa,render:Vi,shouldCellUpdate:Pn.shouldCellUpdate},Ka,{appendNode:es,additionalProps:lo}))})),Jn;if($n&&(fi||Bn)){var mi=xn(lt,Bt,Kt+1,Bn),ii=Nn&&Nn(lt,Bt,Kt);Jn=S.createElement(ke,{expanded:Bn,className:D()("".concat(Vr,"-expanded-row"),"".concat(Vr,"-expanded-row-level-").concat(Kt+1),ii),prefixCls:Vr,component:ur,cellComponent:_r,colSpan:Yr.length,isEmpty:!1},mi)}return S.createElement(S.Fragment,null,wa,Jn)}Tt.displayName="BodyRow";var Pt=ee(Tt);function Yt(fe){var Ce=fe.columnKey,Je=fe.onColumnResize,lt=S.useRef();return S.useEffect(function(){lt.current&&Je(Ce,lt.current.offsetWidth)},[]),S.createElement(Qe.Z,{data:Ce},S.createElement("td",{ref:lt,style:{padding:0,border:0,height:0}},S.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function Fr(fe){var Ce=fe.prefixCls,Je=fe.columnsKey,lt=fe.onColumnResize;return S.createElement("tr",{"aria-hidden":"true",className:"".concat(Ce,"-measure-row"),style:{height:0,fontSize:0}},S.createElement(Qe.Z.Collection,{onBatchResize:function(yt){yt.forEach(function($t){var zt=$t.data,Kt=$t.size;lt(zt,Kt.offsetWidth)})}},Je.map(function(Bt){return S.createElement(Yt,{key:Bt,columnKey:Bt,onColumnResize:lt})})))}function Lr(fe){var Ce=fe.data,Je=fe.measureColumnWidth,lt=h(K,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),Bt=lt.prefixCls,yt=lt.getComponent,$t=lt.onColumnResize,zt=lt.flattenColumns,Kt=lt.getRowKey,ur=lt.expandedKeys,_r=lt.childrenColumnName,pr=lt.emptyNode,tn=at(Ce,_r,ur,Kt),Vr=S.useRef({renderWithProps:!1}),Yr=yt(["body","wrapper"],"tbody"),Nn=yt(["body","row"],"tr"),xn=yt(["body","cell"],"td"),Fn=yt(["body","cell"],"th"),Bn;Ce.length?Bn=tn.map(function(Ui,zi){var fi=Ui.record,na=Ui.indent,wa=Ui.index,Jn=Kt(fi,zi);return S.createElement(Pt,{key:Jn,rowKey:Jn,record:fi,index:zi,renderIndex:wa,rowComponent:Nn,cellComponent:xn,scopeCellComponent:Fn,getRowKey:Kt,indent:na})}):Bn=S.createElement(ke,{expanded:!0,className:"".concat(Bt,"-placeholder"),prefixCls:Bt,component:Nn,cellComponent:xn,colSpan:zt.length,isEmpty:!0},pr);var $n=Se(zt);return S.createElement(ve.Provider,{value:Vr.current},S.createElement(Yr,{className:"".concat(Bt,"-tbody")},Je&&S.createElement(Fr,{prefixCls:Bt,columnsKey:$n,onColumnResize:$t}),Bn))}Lr.displayName="Body";var Nr=ee(Lr),kr=["expandable"],yr="RC_TABLE_INTERNAL_COL_DEFINE";function dr(fe){var Ce=fe.expandable,Je=(0,dt.Z)(fe,kr),lt;return"expandable"in fe?lt=(0,Ue.Z)((0,Ue.Z)({},Je),Ce):lt=Je,lt.showExpandColumn===!1&&(lt.expandIconColumnIndex=-1),lt}var Qr=["columnType"];function An(fe){for(var Ce=fe.colWidths,Je=fe.columns,lt=fe.columCount,Bt=[],yt=lt||Je.length,$t=!1,zt=yt-1;zt>=0;zt-=1){var Kt=Ce[zt],ur=Je&&Je[zt],_r=ur&&ur[yr];if(Kt||_r||$t){var pr=_r||{},tn=pr.columnType,Vr=(0,dt.Z)(pr,Qr);Bt.unshift(S.createElement("col",(0,$.Z)({key:zt,style:{width:Kt}},Vr))),$t=!0}}return S.createElement("colgroup",null,Bt)}var Tn=An,dn=x(94480),kn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Qi(fe,Ce){return(0,S.useMemo)(function(){for(var Je=[],lt=0;lt<Ce;lt+=1){var Bt=fe[lt];if(Bt!==void 0)Je[lt]=Bt;else return null}return Je},[fe.join("_"),Ce])}var Pr=S.forwardRef(function(fe,Ce){var Je=fe.className,lt=fe.noData,Bt=fe.columns,yt=fe.flattenColumns,$t=fe.colWidths,zt=fe.columCount,Kt=fe.stickyOffsets,ur=fe.direction,_r=fe.fixHeader,pr=fe.stickyTopOffset,tn=fe.stickyBottomOffset,Vr=fe.stickyClassName,Yr=fe.onScroll,Nn=fe.maxContentScroll,xn=fe.children,Fn=(0,dt.Z)(fe,kn),Bn=h(K,["prefixCls","scrollbarSize","isSticky"]),$n=Bn.prefixCls,Ui=Bn.scrollbarSize,zi=Bn.isSticky,fi=zi&&!_r?0:Ui,na=S.useRef(null),wa=S.useCallback(function(ma){(0,_.mH)(Ce,ma),(0,_.mH)(na,ma)},[]);S.useEffect(function(){var ma;function Wi(Ia){var Ka=Ia,es=Ka.currentTarget,lo=Ka.deltaX;lo&&(Yr({currentTarget:es,scrollLeft:es.scrollLeft+lo}),Ia.preventDefault())}return(ma=na.current)===null||ma===void 0||ma.addEventListener("wheel",Wi),function(){var Ia;(Ia=na.current)===null||Ia===void 0||Ia.removeEventListener("wheel",Wi)}},[]);var Jn=S.useMemo(function(){return yt.every(function(ma){return ma.width})},[yt]),mi=yt[yt.length-1],ii={fixed:mi?mi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($n,"-cell-scrollbar")}}},Pn=(0,S.useMemo)(function(){return fi?[].concat((0,dn.Z)(Bt),[ii]):Bt},[fi,Bt]),ai=(0,S.useMemo)(function(){return fi?[].concat((0,dn.Z)(yt),[ii]):yt},[fi,yt]),Vi=(0,S.useMemo)(function(){var ma=Kt.right,Wi=Kt.left;return(0,Ue.Z)((0,Ue.Z)({},Kt),{},{left:ur==="rtl"?[].concat((0,dn.Z)(Wi.map(function(Ia){return Ia+fi})),[0]):Wi,right:ur==="rtl"?ma:[].concat((0,dn.Z)(ma.map(function(Ia){return Ia+fi})),[0]),isSticky:zi})},[fi,Kt,zi]),Pa=Qi($t,zt);return S.createElement("div",{style:(0,Ue.Z)({overflow:"hidden"},zi?{top:pr,bottom:tn}:{}),ref:wa,className:D()(Je,(0,q.Z)({},Vr,!!Vr))},S.createElement("table",{style:{tableLayout:"fixed",visibility:lt||Pa?null:"hidden"}},(!lt||!Nn||Jn)&&S.createElement(Tn,{colWidths:Pa?[].concat((0,dn.Z)(Pa),[fi]):[],columCount:zt+1,columns:ai}),xn((0,Ue.Z)((0,Ue.Z)({},Fn),{},{stickyOffsets:Vi,columns:Pn,flattenColumns:ai}))))});Pr.displayName="FixedHolder";var wn=S.memo(Pr);function Si(fe){var Ce=fe.cells,Je=fe.stickyOffsets,lt=fe.flattenColumns,Bt=fe.rowComponent,yt=fe.cellComponent,$t=fe.tdCellComponent,zt=fe.onHeaderRow,Kt=fe.index,ur=h(K,["prefixCls","direction"]),_r=ur.prefixCls,pr=ur.direction,tn;zt&&(tn=zt(Ce.map(function(Yr){return Yr.column}),Kt));var Vr=Se(Ce.map(function(Yr){return Yr.column}));return S.createElement(Bt,tn,Ce.map(function(Yr,Nn){var xn=Yr.column,Fn=rr(Yr.colStart,Yr.colEnd,lt,Je,pr,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?yt:$t,prefixCls:_r,key:Vr[Nn]},Fn,{additionalProps:Bn,rowType:"header"}))}))}Si.displayName="HeaderRow";var ui=Si;function Zi(fe){var Ce=[];function Je($t,zt){var Kt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Ce[Kt]=Ce[Kt]||[];var ur=zt,_r=$t.filter(Boolean).map(function(pr){var tn={key:pr.key,className:pr.className||"",children:pr.title,column:pr,colStart:ur},Vr=1,Yr=pr.children;return Yr&&Yr.length>0&&(Vr=Je(Yr,ur,Kt+1).reduce(function(Nn,xn){return Nn+xn},0),tn.hasSubColumns=!0),"colSpan"in pr&&(Vr=pr.colSpan),"rowSpan"in pr&&(tn.rowSpan=pr.rowSpan),tn.colSpan=Vr,tn.colEnd=tn.colStart+Vr-1,Ce[Kt].push(tn),ur+=Vr,Vr});return _r}Je(fe,0);for(var lt=Ce.length,Bt=function(zt){Ce[zt].forEach(function(Kt){!("rowSpan"in Kt)&&!Kt.hasSubColumns&&(Kt.rowSpan=lt-zt)})},yt=0;yt<lt;yt+=1)Bt(yt);return Ce}function Ei(fe){var Ce=fe.stickyOffsets,Je=fe.columns,lt=fe.flattenColumns,Bt=fe.onHeaderRow,yt=h(K,["prefixCls","getComponent"]),$t=yt.prefixCls,zt=yt.getComponent,Kt=S.useMemo(function(){return Zi(Je)},[Je]),ur=zt(["header","wrapper"],"thead"),_r=zt(["header","row"],"tr"),pr=zt(["header","cell"],"th"),tn=zt(["header","cell"],"td");return S.createElement(ur,{className:"".concat($t,"-thead")},Kt.map(function(Vr,Yr){var Nn=S.createElement(ui,{key:Yr,flattenColumns:lt,cells:Vr,stickyOffsets:Ce,rowComponent:_r,cellComponent:pr,tdCellComponent:tn,onHeaderRow:Bt,index:Yr});return Nn}))}var ji=ee(Ei),eo=x(11592);function Ki(fe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ce=="number"?Ce:Ce.endsWith("%")?fe*parseFloat(Ce)/100:null}function ei(fe,Ce){return S.useMemo(function(){if(Ce&&Ce>0){var Je=0,lt=0;fe.forEach(function(ur){var _r=Ki(Ce,ur.width);_r?Je+=_r:lt+=1});var Bt=Ce-Je,yt=lt,$t=Bt/lt,zt=0,Kt=fe.map(function(ur){var _r=(0,Ue.Z)({},ur),pr=Ki(Ce,_r.width);if(pr)_r.width=pr;else{var tn=Math.floor($t);_r.width=yt===1?Bt:tn,Bt-=tn,yt-=1}return zt+=_r.width,_r});return[Kt,zt]}return[fe,Ce]},[fe,Ce])}var pi=["children"],vi=["fixed"];function $e(fe){return(0,eo.Z)(fe).filter(function(Ce){return S.isValidElement(Ce)}).map(function(Ce){var Je=Ce.key,lt=Ce.props,Bt=lt.children,yt=(0,dt.Z)(lt,pi),$t=(0,Ue.Z)({key:Je},yt);return Bt&&($t.children=$e(Bt)),$t})}function _e(fe){var Ce=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return fe.filter(function(Je){return Je&&(0,ye.Z)(Je)==="object"}).reduce(function(Je,lt,Bt){var yt=lt.fixed,$t=yt===!0?"left":yt,zt="".concat(Ce,"-").concat(Bt),Kt=lt.children;return Kt&&Kt.length>0?[].concat((0,dn.Z)(Je),(0,dn.Z)(_e(Kt,zt).map(function(ur){return(0,Ue.Z)({fixed:$t},ur)}))):[].concat((0,dn.Z)(Je),[(0,Ue.Z)((0,Ue.Z)({key:zt},lt),{},{fixed:$t})])},[])}function Le(fe){for(var Ce=!0,Je=0;Je<fe.length;Je+=1){var lt=fe[Je];if(Ce&&lt.fixed!=="left")Ce=!1;else if(!Ce&&lt.fixed==="left"){warning(!1,"Index ".concat(Je-1," of `columns` missing `fixed='left'` prop."));break}}for(var Bt=!0,yt=fe.length-1;yt>=0;yt-=1){var $t=fe[yt];if(Bt&&$t.fixed!=="right")Bt=!1;else if(!Bt&&$t.fixed==="right"){warning(!1,"Index ".concat(yt+1," of `columns` missing `fixed='right'` prop."));break}}}function Ie(fe){return fe.map(function(Ce){var Je=Ce.fixed,lt=(0,dt.Z)(Ce,vi),Bt=Je;return Je==="left"?Bt="right":Je==="right"&&(Bt="left"),(0,Ue.Z)({fixed:Bt},lt)})}function Dt(fe,Ce){var Je=fe.prefixCls,lt=fe.columns,Bt=fe.children,yt=fe.expandable,$t=fe.expandedKeys,zt=fe.columnTitle,Kt=fe.getRowKey,ur=fe.onTriggerExpand,_r=fe.expandIcon,pr=fe.rowExpandable,tn=fe.expandIconColumnIndex,Vr=fe.direction,Yr=fe.expandRowByClick,Nn=fe.columnWidth,xn=fe.fixed,Fn=fe.scrollWidth,Bn=S.useMemo(function(){return lt||$e(Bt)},[lt,Bt]),$n=S.useMemo(function(){if(yt){var mi,ii=Bn.slice();if(!ii.includes(me)){var Pn=tn||0;Pn>=0&&ii.splice(Pn,0,me)}var ai=ii.indexOf(me);ii=ii.filter(function(Wi,Ia){return Wi!==me||Ia===ai});var Vi=Bn[ai],Pa;(xn==="left"||xn)&&!tn?Pa="left":(xn==="right"||xn)&&tn===Bn.length?Pa="right":Pa=Vi?Vi.fixed:null;var ma=(mi={},(0,q.Z)(mi,yr,{className:"".concat(Je,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,q.Z)(mi,"title",zt),(0,q.Z)(mi,"fixed",Pa),(0,q.Z)(mi,"className","".concat(Je,"-row-expand-icon-cell")),(0,q.Z)(mi,"width",Nn),(0,q.Z)(mi,"render",function(Ia,Ka,es){var lo=Kt(Ka,es),ys=$t.has(lo),us=pr?pr(Ka):!0,ga=_r({prefixCls:Je,expanded:ys,expandable:us,record:Ka,onExpand:ur});return Yr?S.createElement("span",{onClick:function(go){return go.stopPropagation()}},ga):ga}),mi);return ii.map(function(Wi){return Wi===me?ma:Wi})}return Bn.filter(function(Wi){return Wi!==me})},[yt,Bn,Kt,$t,_r,Vr]),Ui=S.useMemo(function(){var mi=$n;return Ce&&(mi=Ce(mi)),mi.length||(mi=[{render:function(){return null}}]),mi},[Ce,$n,Vr]),zi=S.useMemo(function(){return Vr==="rtl"?Ie(_e(Ui)):_e(Ui)},[Ui,Vr,Fn]),fi=ei(zi,Fn),na=(0,P.Z)(fi,2),wa=na[0],Jn=na[1];return[Ui,wa,Jn]}var Mt=Dt;function Sr(fe){var Ce,Je=fe.prefixCls,lt=fe.record,Bt=fe.onExpand,yt=fe.expanded,$t=fe.expandable,zt="".concat(Je,"-row-expand-icon");if(!$t)return S.createElement("span",{className:D()(zt,"".concat(Je,"-row-spaced"))});var Kt=function(_r){Bt(lt,_r),_r.stopPropagation()};return S.createElement("span",{className:D()(zt,(Ce={},(0,q.Z)(Ce,"".concat(Je,"-row-expanded"),yt),(0,q.Z)(Ce,"".concat(Je,"-row-collapsed"),!yt),Ce)),onClick:Kt})}function nr(fe,Ce,Je){var lt=[];function Bt(yt){(yt||[]).forEach(function($t,zt){lt.push(Ce($t,zt)),Bt($t[Je])})}return Bt(fe),lt}function Dr(fe,Ce,Je){var lt=dr(fe),Bt=lt.expandIcon,yt=lt.expandedRowKeys,$t=lt.defaultExpandedRowKeys,zt=lt.defaultExpandAllRows,Kt=lt.expandedRowRender,ur=lt.onExpand,_r=lt.onExpandedRowsChange,pr=lt.childrenColumnName,tn=Bt||Sr,Vr=pr||"children",Yr=S.useMemo(function(){return Kt?"row":fe.expandable&&fe.internalHooks===Ae&&fe.expandable.__PARENT_RENDER_ICON__||Ce.some(function(zi){return zi&&(0,ye.Z)(zi)==="object"&&zi[Vr]})?"nest":!1},[!!Kt,Ce]),Nn=S.useState(function(){return $t||(zt?nr(Ce,Je,Vr):[])}),xn=(0,P.Z)(Nn,2),Fn=xn[0],Bn=xn[1],$n=S.useMemo(function(){return new Set(yt||Fn||[])},[yt,Fn]),Ui=S.useCallback(function(zi){var fi=Je(zi,Ce.indexOf(zi)),na,wa=$n.has(fi);wa?($n.delete(fi),na=(0,dn.Z)($n)):na=[].concat((0,dn.Z)($n),[fi]),Bn(na),ur&&ur(!wa,zi),_r&&_r(na)},[Je,$n,Ce,ur,_r]);return[lt,Yr,$n,tn,Vr,Ui]}function Hr(fe,Ce,Je,lt){var Bt=fe.map(function(yt,$t){return rr($t,$t,fe,Ce,Je,lt==null?void 0:lt[$t])});return(0,qe.Z)(function(){return Bt},[Bt],function(yt,$t){return!(0,W.Z)(yt,$t)})}function an(fe){var Ce=(0,S.useRef)(fe),Je=(0,S.useState)({}),lt=(0,P.Z)(Je,2),Bt=lt[1],yt=(0,S.useRef)(null),$t=(0,S.useRef)([]);function zt(Kt){$t.current.push(Kt);var ur=Promise.resolve();yt.current=ur,ur.then(function(){if(yt.current===ur){var _r=$t.current,pr=Ce.current;$t.current=[],_r.forEach(function(tn){Ce.current=tn(Ce.current)}),yt.current=null,pr!==Ce.current&&Bt({})}})}return(0,S.useEffect)(function(){return function(){yt.current=null}},[]),[Ce.current,zt]}function jr(fe){var Ce=(0,S.useRef)(fe||null),Je=(0,S.useRef)();function lt(){window.clearTimeout(Je.current)}function Bt($t){Ce.current=$t,lt(),Je.current=window.setTimeout(function(){Ce.current=null,Je.current=void 0},100)}function yt(){return Ce.current}return(0,S.useEffect)(function(){return lt},[]),[Bt,yt]}function Rr(){var fe=S.useState(-1),Ce=(0,P.Z)(fe,2),Je=Ce[0],lt=Ce[1],Bt=S.useState(-1),yt=(0,P.Z)(Bt,2),$t=yt[0],zt=yt[1],Kt=S.useCallback(function(ur,_r){lt(ur),zt(_r)},[]);return[Je,$t,Kt]}var en=x(47273),yn=(0,en.Z)()?window:null;function on(fe,Ce){var Je=(0,ye.Z)(fe)==="object"?fe:{},lt=Je.offsetHeader,Bt=lt===void 0?0:lt,yt=Je.offsetSummary,$t=yt===void 0?0:yt,zt=Je.offsetScroll,Kt=zt===void 0?0:zt,ur=Je.getContainer,_r=ur===void 0?function(){return yn}:ur,pr=_r()||yn;return S.useMemo(function(){var tn=!!fe;return{isSticky:tn,stickyClassName:tn?"".concat(Ce,"-sticky-holder"):"",offsetHeader:Bt,offsetSummary:$t,offsetScroll:Kt,container:pr}},[Kt,Bt,$t,Ce,pr])}function Dn(fe,Ce,Je){var lt=(0,S.useMemo)(function(){for(var Bt=[],yt=[],$t=0,zt=0,Kt=0;Kt<Ce;Kt+=1)if(Je==="rtl"){yt[Kt]=zt,zt+=fe[Kt]||0;var ur=Ce-Kt-1;Bt[ur]=$t,$t+=fe[ur]||0}else{Bt[Kt]=$t,$t+=fe[Kt]||0;var _r=Ce-Kt-1;yt[_r]=zt,zt+=fe[_r]||0}return{left:Bt,right:yt}},[fe,Ce,Je]);return lt}var Qn=Dn;function Ai(fe){var Ce=fe.className,Je=fe.children;return S.createElement("div",{className:Ce},Je)}var On=Ai,Gn=x(8224),Vt=x(55468),Xt=function(Ce,Je){var lt,Bt,yt=Ce.scrollBodyRef,$t=Ce.onScroll,zt=Ce.offsetScroll,Kt=Ce.container,ur=h(K,"prefixCls"),_r=((lt=yt.current)===null||lt===void 0?void 0:lt.scrollWidth)||0,pr=((Bt=yt.current)===null||Bt===void 0?void 0:Bt.clientWidth)||0,tn=_r&&pr*(pr/_r),Vr=S.useRef(),Yr=an({scrollLeft:0,isHiddenScrollBar:!1}),Nn=(0,P.Z)(Yr,2),xn=Nn[0],Fn=Nn[1],Bn=S.useRef({delta:0,x:0}),$n=S.useState(!1),Ui=(0,P.Z)($n,2),zi=Ui[0],fi=Ui[1],na=function(){fi(!1)},wa=function(ai){ai.persist(),Bn.current.delta=ai.pageX-xn.scrollLeft,Bn.current.x=0,fi(!0),ai.preventDefault()},Jn=function(ai){var Vi,Pa=ai||((Vi=window)===null||Vi===void 0?void 0:Vi.event),ma=Pa.buttons;if(!zi||ma===0){zi&&fi(!1);return}var Wi=Bn.current.x+ai.pageX-Bn.current.x-Bn.current.delta;Wi<=0&&(Wi=0),Wi+tn>=pr&&(Wi=pr-tn),$t({scrollLeft:Wi/pr*(_r+2)}),Bn.current.x=ai.pageX},mi=function(){if(yt.current){var ai=(0,Vt.os)(yt.current).top,Vi=ai+yt.current.offsetHeight,Pa=Kt===window?document.documentElement.scrollTop+window.innerHeight:(0,Vt.os)(Kt).top+Kt.clientHeight;Vi-(0,ze.Z)()<=Pa||ai>=Pa-zt?Fn(function(ma){return(0,Ue.Z)((0,Ue.Z)({},ma),{},{isHiddenScrollBar:!0})}):Fn(function(ma){return(0,Ue.Z)((0,Ue.Z)({},ma),{},{isHiddenScrollBar:!1})})}},ii=function(ai){Fn(function(Vi){return(0,Ue.Z)((0,Ue.Z)({},Vi),{},{scrollLeft:ai/_r*pr||0})})};return S.useImperativeHandle(Je,function(){return{setScrollLeft:ii}}),S.useEffect(function(){var Pn=(0,Gn.Z)(document.body,"mouseup",na,!1),ai=(0,Gn.Z)(document.body,"mousemove",Jn,!1);return mi(),function(){Pn.remove(),ai.remove()}},[tn,zi]),S.useEffect(function(){var Pn=(0,Gn.Z)(Kt,"scroll",mi,!1),ai=(0,Gn.Z)(window,"resize",mi,!1);return function(){Pn.remove(),ai.remove()}},[Kt]),S.useEffect(function(){xn.isHiddenScrollBar||Fn(function(Pn){var ai=yt.current;return ai?(0,Ue.Z)((0,Ue.Z)({},Pn),{},{scrollLeft:ai.scrollLeft/ai.scrollWidth*ai.clientWidth}):Pn})},[xn.isHiddenScrollBar]),_r<=pr||!tn||xn.isHiddenScrollBar?null:S.createElement("div",{style:{height:(0,ze.Z)(),width:pr,bottom:zt},className:"".concat(ur,"-sticky-scroll")},S.createElement("div",{onMouseDown:wa,ref:Vr,className:D()("".concat(ur,"-sticky-scroll-bar"),(0,q.Z)({},"".concat(ur,"-sticky-scroll-bar-active"),zi)),style:{width:"".concat(tn,"px"),transform:"translate3d(".concat(xn.scrollLeft,"px, 0, 0)")}}))},er=S.forwardRef(Xt);function fr(fe){return null}var Rt=fr;function Jt(fe){return null}var ar=Jt,Or="rc-table",bn=[],Cn={};function li(){return"No Data"}function ri(fe){var Ce,Je=(0,Ue.Z)({rowKey:"key",prefixCls:Or,emptyText:li},fe),lt=Je.prefixCls,Bt=Je.className,yt=Je.rowClassName,$t=Je.style,zt=Je.data,Kt=Je.rowKey,ur=Je.scroll,_r=Je.tableLayout,pr=Je.direction,tn=Je.title,Vr=Je.footer,Yr=Je.summary,Nn=Je.caption,xn=Je.id,Fn=Je.showHeader,Bn=Je.components,$n=Je.emptyText,Ui=Je.onRow,zi=Je.onHeaderRow,fi=Je.internalHooks,na=Je.transformColumns,wa=Je.internalRefs,Jn=Je.tailor,mi=Je.sticky,ii=zt||bn,Pn=!!ii.length,ai=fi===Ae,Vi=S.useCallback(function(Ao,wo){return(0,Me.Z)(Bn,Ao)||wo},[Bn]),Pa=S.useMemo(function(){return typeof Kt=="function"?Kt:function(Ao){var wo=Ao&&Ao[Kt];return wo}},[Kt]),ma=Vi(["body"]),Wi=Rr(),Ia=(0,P.Z)(Wi,3),Ka=Ia[0],es=Ia[1],lo=Ia[2],ys=Dr(Je,ii,Pa),us=(0,P.Z)(ys,6),ga=us[0],ol=us[1],go=us[2],ts=us[3],ns=us[4],wc=us[5],oi=ur==null?void 0:ur.x,Gi=S.useState(0),$i=(0,P.Z)(Gi,2),Oi=$i[0],yo=$i[1],Ni=Mt((0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},Je),ga),{},{expandable:!!ga.expandedRowRender,columnTitle:ga.columnTitle,expandedKeys:go,getRowKey:Pa,onTriggerExpand:wc,expandIcon:ts,expandIconColumnIndex:ga.expandIconColumnIndex,direction:pr,scrollWidth:ai&&Jn&&typeof oi=="number"?oi:null}),ai?na:null),ua=(0,P.Z)(Ni,3),$a=ua[0],Va=ua[1],Fl=ua[2],nl=Fl!=null?Fl:oi,Gc=S.useMemo(function(){return{columns:$a,flattenColumns:Va}},[$a,Va]),Rs=S.useRef(),Tc=S.useRef(),Hn=S.useRef(),uc=S.useRef(),MA=S.useRef(),co=S.useState(!1),hn=(0,P.Z)(co,2),Mo=hn[0],ul=hn[1],As=S.useState(!1),ia=(0,P.Z)(As,2),Bl=ia[0],$l=ia[1],Uc=an(new Map),xc=(0,P.Z)(Uc,2),Sl=xc[0],Al=xc[1],oA=Se(Va),Ml=oA.map(function(Ao){return Sl.get(Ao)}),Qs=S.useMemo(function(){return Ml},[Ml.join("_")]),El=Qn(Qs,Va.length,pr),il=ur&&Xe(ur.y),ks=ur&&Xe(nl)||!!ga.fixed,Cc=ks&&Va.some(function(Ao){var wo=Ao.fixed;return wo}),wu=S.useRef(),Tu=on(mi,lt),xu=Tu.isSticky,hf=Tu.offsetHeader,Vf=Tu.offsetSummary,ao=Tu.offsetScroll,Wo=Tu.stickyClassName,Zl=Tu.container,ds=S.useMemo(function(){return Yr==null?void 0:Yr(ii)},[Yr,ii]),Ll=(il||xu)&&S.isValidElement(ds)&&ds.type===C&&ds.props.fixed,Vl,Js,Cu;il&&(Js={overflowY:"scroll",maxHeight:ur.y}),ks&&(Vl={overflowX:"auto"},il||(Js={overflowY:"hidden"}),Cu={width:nl===!0?"auto":nl,minWidth:"100%"});var pf=S.useCallback(function(Ao,wo){(0,we.Z)(Rs.current)&&Al(function(ru){if(ru.get(Ao)!==wo){var lA=new Map(ru);return lA.set(Ao,wo),lA}return ru})},[]),mf=jr(null),td=(0,P.Z)(mf,2),uo=td[0],_s=td[1];function Bu(Ao,wo){wo&&(typeof wo=="function"?wo(Ao):wo.scrollLeft!==Ao&&(wo.scrollLeft=Ao,wo.scrollLeft!==Ao&&setTimeout(function(){wo.scrollLeft=Ao},0)))}var Su=(0,Oe.Z)(function(Ao){var wo=Ao.currentTarget,ru=Ao.scrollLeft,lA=pr==="rtl",Xu=typeof ru=="number"?ru:wo.scrollLeft,B0=wo||Cn;if(!_s()||_s()===B0){var kl;uo(B0),Bu(Xu,Tc.current),Bu(Xu,Hn.current),Bu(Xu,MA.current),Bu(Xu,(kl=wu.current)===null||kl===void 0?void 0:kl.setScrollLeft)}var Eu=wo||Tc.current;if(Eu){var Fh=Eu.scrollWidth,qf=Eu.clientWidth;if(Fh===qf){ul(!1),$l(!1);return}lA?(ul(-Xu<Fh-qf),$l(-Xu>0)):(ul(Xu>0),$l(Xu<Fh-qf))}}),Wl=function(){ks&&Hn.current?Su({currentTarget:Hn.current}):(ul(!1),$l(!1))},Wf=function(wo){var ru=wo.width;ru!==Oi&&(Wl(),yo(Rs.current?Rs.current.offsetWidth:ru))},Uu=S.useRef(!1);S.useEffect(function(){Uu.current&&Wl()},[ks,zt,$a.length]),S.useEffect(function(){Uu.current=!0},[]);var Gf=S.useState(0),Xf=(0,P.Z)(Gf,2),rd=Xf[0],Dd=Xf[1],Od=S.useState(!0),nd=(0,P.Z)(Od,2),zr=nd[0],Nd=nd[1];S.useEffect(function(){(!Jn||!ai)&&(Hn.current instanceof Element?Dd((0,ze.o)(Hn.current).width):Dd((0,ze.o)(uc.current).width)),Nd((0,ce.G)("position","sticky"))},[]),S.useEffect(function(){ai&&wa&&(wa.body.current=Hn.current)});var gf=S.useCallback(function(Ao){return S.createElement(S.Fragment,null,S.createElement(ji,Ao),Ll==="top"&&S.createElement(Be,Ao,ds))},[Ll,ds]),Jf=S.useCallback(function(Ao){return S.createElement(Be,Ao,ds)},[ds]),vf=Vi(["table"],"table"),_h=S.useMemo(function(){return _r||(Cc?nl==="max-content"?"auto":"fixed":il||xu||Va.some(function(Ao){var wo=Ao.ellipsis;return wo})?"fixed":"auto")},[il,Cc,Va,_r,xu]),Ih,Yf={colWidths:Qs,columCount:Va.length,stickyOffsets:El,onHeaderRow:zi,fixHeader:il,scroll:ur},bl=S.useMemo(function(){return Pn?null:typeof $n=="function"?$n():$n},[Pn,$n]),LA=S.createElement(Nr,{data:ii,measureColumnWidth:il||ks||xu}),bf=S.createElement(Tn,{colWidths:Va.map(function(Ao){var wo=Ao.width;return wo}),columns:Va}),id=Nn!=null?S.createElement("caption",{className:"".concat(lt,"-caption")},Nn):void 0,yf=(0,vt.Z)(Je,{data:!0}),Ru=(0,vt.Z)(Je,{aria:!0});if(il||xu){var sA;typeof ma=="function"?(sA=ma(ii,{scrollbarSize:rd,ref:Hn,onScroll:Su}),Yf.colWidths=Va.map(function(Ao,wo){var ru=Ao.width,lA=wo===Va.length-1?ru-rd:ru;return typeof lA=="number"&&!Number.isNaN(lA)?lA:0})):sA=S.createElement("div",{style:(0,Ue.Z)((0,Ue.Z)({},Vl),Js),onScroll:Su,ref:Hn,className:D()("".concat(lt,"-body"))},S.createElement(vf,(0,$.Z)({style:(0,Ue.Z)((0,Ue.Z)({},Cu),{},{tableLayout:_h})},Ru),id,bf,LA,!Ll&&ds&&S.createElement(Be,{stickyOffsets:El,flattenColumns:Va,columns:$a},ds)));var fs=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({noData:!ii.length,maxContentScroll:ks&&nl==="max-content"},Yf),Gc),{},{direction:pr,stickyClassName:Wo,onScroll:Su});Ih=S.createElement(S.Fragment,null,Fn!==!1&&S.createElement(wn,(0,$.Z)({},fs,{stickyTopOffset:hf,className:"".concat(lt,"-header"),ref:Tc}),gf),sA,Ll&&Ll!=="top"&&S.createElement(wn,(0,$.Z)({},fs,{stickyBottomOffset:Vf,className:"".concat(lt,"-summary"),ref:MA}),Jf),xu&&S.createElement(er,{ref:wu,offsetScroll:ao,scrollBodyRef:Hn,onScroll:Su,container:Zl}))}else Ih=S.createElement("div",{style:(0,Ue.Z)((0,Ue.Z)({},Vl),Js),className:D()("".concat(lt,"-content")),onScroll:Su,ref:Hn},S.createElement(vf,(0,$.Z)({style:(0,Ue.Z)((0,Ue.Z)({},Cu),{},{tableLayout:_h})},Ru),id,bf,Fn!==!1&&S.createElement(ji,(0,$.Z)({},Yf,Gc)),LA,ds&&S.createElement(Be,{stickyOffsets:El,flattenColumns:Va,columns:$a},ds)));var Rc=S.createElement("div",(0,$.Z)({className:D()(lt,Bt,(Ce={},(0,q.Z)(Ce,"".concat(lt,"-rtl"),pr==="rtl"),(0,q.Z)(Ce,"".concat(lt,"-ping-left"),Mo),(0,q.Z)(Ce,"".concat(lt,"-ping-right"),Bl),(0,q.Z)(Ce,"".concat(lt,"-layout-fixed"),_r==="fixed"),(0,q.Z)(Ce,"".concat(lt,"-fixed-header"),il),(0,q.Z)(Ce,"".concat(lt,"-fixed-column"),Cc),(0,q.Z)(Ce,"".concat(lt,"-scroll-horizontal"),ks),(0,q.Z)(Ce,"".concat(lt,"-has-fix-left"),Va[0]&&Va[0].fixed),(0,q.Z)(Ce,"".concat(lt,"-has-fix-right"),Va[Va.length-1]&&Va[Va.length-1].fixed==="right"),Ce)),style:$t,id:xn,ref:Rs},yf),tn&&S.createElement(On,{className:"".concat(lt,"-title")},tn(ii)),S.createElement("div",{ref:uc,className:"".concat(lt,"-container")},Ih),Vr&&S.createElement(On,{className:"".concat(lt,"-footer")},Vr(ii)));ks&&(Rc=S.createElement(Qe.Z,{onResize:Wf},Rc));var Gl=Hr(Va,El,pr,$a),kA=S.useMemo(function(){return{scrollX:nl,prefixCls:lt,getComponent:Vi,scrollbarSize:rd,direction:pr,fixedInfoList:Gl,isSticky:xu,supportSticky:zr,componentWidth:Oi,fixHeader:il,fixColumn:Cc,horizonScroll:ks,tableLayout:_h,rowClassName:yt,expandedRowClassName:ga.expandedRowClassName,expandIcon:ts,expandableType:ol,expandRowByClick:ga.expandRowByClick,expandedRowRender:ga.expandedRowRender,onTriggerExpand:wc,expandIconColumnIndex:ga.expandIconColumnIndex,indentSize:ga.indentSize,allColumnsFixedLeft:Va.every(function(Ao){return Ao.fixed==="left"}),emptyNode:bl,columns:$a,flattenColumns:Va,onColumnResize:pf,hoverStartRow:Ka,hoverEndRow:es,onHover:lo,rowExpandable:ga.rowExpandable,onRow:Ui,getRowKey:Pa,expandedKeys:go,childrenColumnName:ns}},[nl,lt,Vi,rd,pr,Gl,xu,zr,Oi,il,Cc,ks,_h,yt,ga.expandedRowClassName,ts,ol,ga.expandRowByClick,ga.expandedRowRender,wc,ga.expandIconColumnIndex,ga.indentSize,bl,$a,Va,pf,Ka,es,lo,ga.rowExpandable,Ui,Pa,go,ns]);return S.createElement(K.Provider,{value:kA},Rc)}function _i(fe){return oe(ri,fe)}var Yn=_i();Yn.EXPAND_COLUMN=me,Yn.INTERNAL_HOOKS=Ae,Yn.Column=Rt,Yn.ColumnGroup=ar,Yn.Summary=H;var zn=Yn,yi=x(48911),bi=M(null),wi=M(null);function ci(fe,Ce,Je){var lt=Ce||1;return Je[fe+lt]-(Je[fe]||0)}function xi(fe){var Ce=fe.rowInfo,Je=fe.column,lt=fe.colIndex,Bt=fe.indent,yt=fe.index,$t=fe.renderIndex,zt=fe.record,Kt=fe.style,ur=fe.className,_r=fe.inverse,pr=fe.getHeight,tn=Je.render,Vr=Je.dataIndex,Yr=Je.className,Nn=Je.width,xn=h(wi,["columnsOffset"]),Fn=xn.columnsOffset,Bn=ct(Ce,Je,lt,Bt,yt),$n=Bn.key,Ui=Bn.fixedInfo,zi=Bn.appendCellNode,fi=Bn.additionalCellProps,na=fi.style,wa=fi.colSpan,Jn=wa===void 0?1:wa,mi=fi.rowSpan,ii=mi===void 0?1:mi,Pn=lt-1,ai=ci(Pn,Jn,Fn),Vi=Jn>1?Nn-ai:0,Pa=(0,Ue.Z)((0,Ue.Z)((0,Ue.Z)({},na),Kt),{},{flex:"0 0 ".concat(ai,"px"),width:"".concat(ai,"px"),marginRight:Vi,pointerEvents:"auto"}),ma=S.useMemo(function(){return _r?ii<=1:Jn===0||ii===0||ii>1},[ii,Jn,_r]);ma?Pa.visibility="hidden":_r&&(Pa.height=pr==null?void 0:pr(ii));var Wi=ma?function(){return null}:tn,Ia={};return(ii===0||Jn===0)&&(Ia.rowSpan=1,Ia.colSpan=1),S.createElement(sr,(0,$.Z)({className:D()(Yr,ur),ellipsis:Je.ellipsis,align:Je.align,scope:Je.rowScope,component:"div",prefixCls:Ce.prefixCls,key:$n,record:zt,index:yt,renderIndex:$t,dataIndex:Vr,render:Wi,shouldCellUpdate:Je.shouldCellUpdate},Ui,{appendNode:zi,additionalProps:(0,Ue.Z)((0,Ue.Z)({},fi),{},{style:Pa},Ia)}))}var Xi=xi,ti=["data","index","className","rowKey","style","extra","getHeight"],Ti=S.forwardRef(function(fe,Ce){var Je=fe.data,lt=fe.index,Bt=fe.className,yt=fe.rowKey,$t=fe.style,zt=fe.extra,Kt=fe.getHeight,ur=(0,dt.Z)(fe,ti),_r=Je.record,pr=Je.indent,tn=Je.index,Vr=h(K,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Yr=Vr.scrollX,Nn=Vr.flattenColumns,xn=Vr.prefixCls,Fn=Vr.fixColumn,Bn=Vr.componentWidth,$n=Fe(_r,yt,lt,pr),Ui=$n.rowSupportExpand,zi=$n.expanded,fi=$n.rowProps,na=$n.expandedRowRender,wa=$n.expandedRowClassName,Jn;if(Ui&&zi){var mi=na(_r,lt,pr+1,zi),ii=wa==null?void 0:wa(_r,lt,pr),Pn={};Fn&&(Pn={style:(0,q.Z)({},"--virtual-width","".concat(Bn,"px"))});var ai="".concat(xn,"-expanded-row-cell");Jn=S.createElement("div",{className:D()("".concat(xn,"-expanded-row"),"".concat(xn,"-expanded-row-level-").concat(pr+1),ii)},S.createElement(sr,{component:"div",prefixCls:xn,className:D()(ai,(0,q.Z)({},"".concat(ai,"-fixed"),Fn)),additionalProps:Pn},mi))}var Vi=(0,Ue.Z)((0,Ue.Z)({},$t),{},{width:Yr});zt&&(Vi.position="absolute",Vi.pointerEvents="none");var Pa=S.createElement("div",(0,$.Z)({},fi,ur,{ref:Ui?null:Ce,className:D()(Bt,"".concat(xn,"-row"),fi==null?void 0:fi.className,(0,q.Z)({},"".concat(xn,"-row-extra"),zt)),style:(0,Ue.Z)((0,Ue.Z)({},Vi),fi==null?void 0:fi.style)}),Nn.map(function(ma,Wi){return S.createElement(Xi,{key:Wi,rowInfo:$n,column:ma,colIndex:Wi,indent:pr,index:lt,renderIndex:tn,record:_r,inverse:zt,getHeight:Kt})}));return Ui?S.createElement("div",{ref:Ce},Pa,Jn):Pa}),za=ee(Ti),si=za,fn=S.forwardRef(function(fe,Ce){var Je=fe.data,lt=fe.onScroll,Bt=h(K,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),yt=Bt.flattenColumns,$t=Bt.onColumnResize,zt=Bt.getRowKey,Kt=Bt.expandedKeys,ur=Bt.prefixCls,_r=Bt.childrenColumnName,pr=Bt.emptyNode,tn=Bt.scrollX,Vr=h(bi),Yr=Vr.scrollY,Nn=Vr.listItemHeight,xn=S.useRef(),Fn=at(Je,_r,Kt,zt),Bn=S.useMemo(function(){var Jn=0;return yt.map(function(mi){var ii=mi.width,Pn=mi.key;return Jn+=ii,[Pn,ii,Jn]})},[yt]),$n=S.useMemo(function(){return Bn.map(function(Jn){return Jn[2]})},[Bn]);S.useEffect(function(){Bn.forEach(function(Jn){var mi=(0,P.Z)(Jn,2),ii=mi[0],Pn=mi[1];$t(ii,Pn)})},[Bn]),S.useImperativeHandle(Ce,function(){var Jn={};return Object.defineProperty(Jn,"scrollLeft",{get:function(){var ii;return((ii=xn.current)===null||ii===void 0?void 0:ii.getScrollInfo().x)||0},set:function(ii){var Pn;(Pn=xn.current)===null||Pn===void 0||Pn.scrollTo({left:ii})}}),Jn});var Ui=function(mi,ii){var Pn,ai=(Pn=Fn[ii])===null||Pn===void 0?void 0:Pn.record,Vi=mi.onCell;if(Vi){var Pa,ma=Vi(ai,ii);return(Pa=ma==null?void 0:ma.rowSpan)!==null&&Pa!==void 0?Pa:1}return 1},zi=function(mi){var ii=mi.start,Pn=mi.end,ai=mi.getSize,Vi=mi.offsetY;if(Pn<0)return null;for(var Pa=yt.filter(function(oi){return Ui(oi,ii)===0}),ma=ii,Wi=function(Gi){if(Pa=Pa.filter(function($i){return Ui($i,Gi)===0}),!Pa.length)return ma=Gi,"break"},Ia=ii;Ia>=0;Ia-=1){var Ka=Wi(Ia);if(Ka==="break")break}for(var es=yt.filter(function(oi){return Ui(oi,Pn)!==1}),lo=Pn,ys=function(Gi){if(es=es.filter(function($i){return Ui($i,Gi)!==1}),!es.length)return lo=Math.max(Gi-1,Pn),"break"},us=Pn;us<Fn.length;us+=1){var ga=ys(us);if(ga==="break")break}for(var ol=[],go=function(Gi){var $i=Fn[Gi];if(!$i)return"continue";yt.some(function(Oi){return Ui(Oi,Gi)>1})&&ol.push(Gi)},ts=ma;ts<=lo;ts+=1)var ns=go(ts);var wc=ol.map(function(oi){var Gi=Fn[oi],$i=zt(Gi.record,oi),Oi=function(ua){var $a=oi+ua-1,Va=zt(Fn[$a].record,$a),Fl=ai($i,Va);return Fl.bottom-Fl.top},yo=ai($i);return S.createElement(si,{key:oi,data:Gi,rowKey:$i,index:oi,style:{top:-Vi+yo.top},extra:!0,getHeight:Oi})});return wc},fi=S.useMemo(function(){return{columnsOffset:$n}},[$n]),na="".concat(ur,"-tbody"),wa;return Fn.length?wa=S.createElement(yi.Z,{fullHeight:!1,ref:xn,className:D()(na,"".concat(na,"-virtual")),height:Yr,itemHeight:Nn||24,data:Fn,itemKey:function(mi){return zt(mi.record)},scrollWidth:tn,onVirtualScroll:function(mi){var ii=mi.x;lt({scrollLeft:ii})},extraRender:zi},function(Jn,mi,ii){var Pn=zt(Jn.record,mi);return S.createElement(si,(0,$.Z)({data:Jn,rowKey:Pn,index:mi},ii))}):wa=S.createElement("div",{className:D()("".concat(ur,"-placeholder"))},S.createElement(sr,{component:"div",prefixCls:ur},pr)),S.createElement(wi.Provider,{value:fi},wa)}),sn=ee(fn),Xn=sn,Kn=function(Ce,Je){var lt=Je.ref,Bt=Je.onScroll;return S.createElement(Xn,{ref:lt,data:Ce,onScroll:Bt})},di=100;function qi(fe){var Ce=fe.columns,Je=fe.scroll,lt=fe.prefixCls,Bt=lt===void 0?Or:lt,yt=fe.className,$t=fe.listItemHeight,zt=Je||{},Kt=zt.x,ur=zt.y;typeof Kt!="number"&&(Kt=((Ce||[]).length+1)*di),typeof ur!="number"&&(ur=500);var _r=S.useMemo(function(){return{scrollY:ur,listItemHeight:$t}},[ur,$t]);return S.createElement(bi.Provider,{value:_r},S.createElement(zn,(0,$.Z)({},fe,{className:D()(yt,"".concat(Bt,"-virtual")),scroll:(0,Ue.Z)((0,Ue.Z)({},Je),{},{x:Kt}),components:{body:Kn},columns:Ce,internalHooks:Ae,tailor:!0})))}function Fi(fe){return oe(qi,fe)}var Ra=Fi(),Aa=null;function Co(fe){return null}var Wn=Co;function In(fe){return null}var Di=In,Ji=x(2738),Ma=x(68031),Ms=x(36355),Za=x(93891),fa=x(19716),_o=x(8628),Bo=x(31724),To=x(58421),Ps=x(71418),mo=x(88088);function xs(fe){return function(Je){let{prefixCls:lt,onExpand:Bt,record:yt,expanded:$t,expandable:zt}=Je;const Kt=`${lt}-row-expand-icon`;return S.createElement("button",{type:"button",onClick:ur=>{Bt(yt,ur),ur.stopPropagation()},className:D()(Kt,{[`${Kt}-spaced`]:!zt,[`${Kt}-expanded`]:zt&&$t,[`${Kt}-collapsed`]:zt&&!$t}),"aria-label":$t?fe.collapse:fe.expand,"aria-expanded":$t})}}var Ts=xs;function $s(fe,Ce){return"key"in fe&&fe.key!==void 0&&fe.key!==null?fe.key:fe.dataIndex?Array.isArray(fe.dataIndex)?fe.dataIndex.join("."):fe.dataIndex:Ce}function Uo(fe,Ce){return Ce?`${Ce}-${fe}`:`${fe}`}function Ro(fe,Ce){return typeof fe=="function"?fe(Ce):fe}function Cs(fe,Ce){const Je=Ro(fe,Ce);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,tc=x(7657),rc=function(Ce,Je){return S.createElement(tc.Z,(0,$.Z)({},Ce,{ref:Je,icon:vl}))},Rl=S.forwardRef(rc),Zs=Rl,kc=x(56762);function Ql(fe){const Ce=S.useRef(fe),Je=(0,kc.Z)();return[()=>Ce.current,lt=>{Ce.current=lt,Je()}]}var Kl=x(3113),Vs=x(24905),os=x(38854),ni=x(64165),ca=x(20834),ta=x(40875),oa=x(5112),Na=x(17574),so=x(47472),Ws=x(92832);function Bs(fe){let{value:Ce,onChange:Je,filterSearch:lt,tablePrefixCls:Bt,locale:yt}=fe;return lt?S.createElement("div",{className:`${Bt}-filter-dropdown-search`},S.createElement(Ws.default,{prefix:S.createElement(so.Z,null),placeholder:yt.filterSearchPlaceholder,onChange:Je,value:Ce,htmlSize:1,className:`${Bt}-filter-dropdown-search-input`})):null}var Ss=Bs,vs=x(10228);const to=fe=>{const{keyCode:Ce}=fe;Ce===vs.Z.ENTER&&fe.stopPropagation()};var ss=S.forwardRef((fe,Ce)=>S.createElement("div",{className:fe.className,onClick:Je=>Je.stopPropagation(),onKeyDown:to,ref:Ce},fe.children));function ls(fe){let Ce=[];return(fe||[]).forEach(Je=>{let{value:lt,children:Bt}=Je;Ce.push(lt),Bt&&(Ce=[].concat((0,dn.Z)(Ce),(0,dn.Z)(ls(Bt))))}),Ce}function Ls(fe){return fe.some(Ce=>{let{children:Je}=Ce;return Je})}function Jo(fe,Ce){return typeof Ce=="string"||typeof Ce=="number"?Ce==null?void 0:Ce.toString().toLowerCase().includes(fe.trim().toLowerCase()):!1}function Io(fe){let{filters:Ce,prefixCls:Je,filteredKeys:lt,filterMultiple:Bt,searchValue:yt,filterSearch:$t}=fe;return Ce.map((zt,Kt)=>{const ur=String(zt.value);if(zt.children)return{key:ur||Kt,label:zt.text,popupClassName:`${Je}-dropdown-submenu`,children:Io({filters:zt.children,prefixCls:Je,filteredKeys:lt,filterMultiple:Bt,searchValue:yt,filterSearch:$t})};const _r=Bt?Vs.default:oa.ZP,pr={key:zt.value!==void 0?ur:Kt,label:S.createElement(S.Fragment,null,S.createElement(_r,{checked:lt.includes(ur)}),S.createElement("span",null,zt.text))};return yt.trim()?typeof $t=="function"?$t(yt,zt)?pr:null:Jo(yt,zt.text)?pr:null:pr})}function hu(fe){var Ce,Je;const{tablePrefixCls:lt,prefixCls:Bt,column:yt,dropdownPrefixCls:$t,columnKey:zt,filterMultiple:Kt,filterMode:ur="menu",filterSearch:_r=!1,filterState:pr,triggerFilter:tn,locale:Vr,children:Yr,getPopupContainer:Nn}=fe,{filterDropdownOpen:xn,onFilterDropdownOpenChange:Fn,filterResetToDefaultFilteredValue:Bn,defaultFilteredValue:$n,filterDropdownVisible:Ui,onFilterDropdownVisibleChange:zi}=yt,[fi,na]=S.useState(!1),wa=!!(pr&&(!((Ce=pr.filteredKeys)===null||Ce===void 0)&&Ce.length||pr.forceFiltered)),Jn=Ni=>{na(Ni),Fn==null||Fn(Ni),zi==null||zi(Ni)},mi=(Je=xn!=null?xn:Ui)!==null&&Je!==void 0?Je:fi,ii=pr==null?void 0:pr.filteredKeys,[Pn,ai]=Ql(ii||[]),Vi=Ni=>{let{selectedKeys:ua}=Ni;ai(ua)},Pa=(Ni,ua)=>{let{node:$a,checked:Va}=ua;Vi(Kt?{selectedKeys:Ni}:{selectedKeys:Va&&$a.key?[$a.key]:[]})};S.useEffect(()=>{fi&&Vi({selectedKeys:ii||[]})},[ii]);const[ma,Wi]=S.useState([]),Ia=Ni=>{Wi(Ni)},[Ka,es]=S.useState(""),lo=Ni=>{const{value:ua}=Ni.target;es(ua)};S.useEffect(()=>{fi||es("")},[fi]);const ys=Ni=>{const ua=Ni&&Ni.length?Ni:null;if(ua===null&&(!pr||!pr.filteredKeys)||(0,W.Z)(ua,pr==null?void 0:pr.filteredKeys,!0))return null;tn({column:yt,key:zt,filteredKeys:ua})},us=()=>{Jn(!1),ys(Pn())},ga=function(){let{confirm:Ni,closeDropdown:ua}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};Ni&&ys([]),ua&&Jn(!1),es(""),ai(Bn?($n||[]).map($a=>String($a)):[])},ol=function(){let{closeDropdown:Ni}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};Ni&&Jn(!1),ys(Pn())},go=Ni=>{Ni&&ii!==void 0&&ai(ii||[]),Jn(Ni),!Ni&&!yt.filterDropdown&&us()},ts=D()({[`${$t}-menu-without-submenu`]:!Ls(yt.filters||[])}),ns=Ni=>{if(Ni.target.checked){const ua=ls(yt==null?void 0:yt.filters).map($a=>String($a));ai(ua)}else ai([])},wc=Ni=>{let{filters:ua}=Ni;return(ua||[]).map(($a,Va)=>{const Fl=String($a.value),nl={title:$a.text,key:$a.value!==void 0?Fl:Va};return $a.children&&(nl.children=wc({filters:$a.children})),nl})},oi=Ni=>{var ua;return Object.assign(Object.assign({},Ni),{text:Ni.title,value:Ni.key,children:((ua=Ni.children)===null||ua===void 0?void 0:ua.map($a=>oi($a)))||[]})};let Gi;if(typeof yt.filterDropdown=="function")Gi=yt.filterDropdown({prefixCls:`${$t}-custom`,setSelectedKeys:Ni=>Vi({selectedKeys:Ni}),selectedKeys:Pn(),confirm:ol,clearFilters:ga,filters:yt.filters,visible:mi,close:()=>{Jn(!1)}});else if(yt.filterDropdown)Gi=yt.filterDropdown;else{const Ni=Pn()||[],ua=()=>(yt.filters||[]).length===0?S.createElement(ni.Z,{image:ni.Z.PRESENTED_IMAGE_SIMPLE,description:Vr.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ur==="tree"?S.createElement(S.Fragment,null,S.createElement(Ss,{filterSearch:_r,value:Ka,onChange:lo,tablePrefixCls:lt,locale:Vr}),S.createElement("div",{className:`${lt}-filter-dropdown-tree`},Kt?S.createElement(Vs.default,{checked:Ni.length===ls(yt.filters).length,indeterminate:Ni.length>0&&Ni.length<ls(yt.filters).length,className:`${lt}-filter-dropdown-checkall`,onChange:ns},Vr.filterCheckall):null,S.createElement(Na.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Kt,checkStrictly:!Kt,className:`${$t}-menu`,onCheck:Pa,checkedKeys:Ni,selectedKeys:Ni,showIcon:!1,treeData:wc({filters:yt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Ka.trim()?Va=>typeof _r=="function"?_r(Ka,oi(Va)):Jo(Ka,Va.title):void 0}))):S.createElement(S.Fragment,null,S.createElement(Ss,{filterSearch:_r,value:Ka,onChange:lo,tablePrefixCls:lt,locale:Vr}),S.createElement(ca.default,{selectable:!0,multiple:Kt,prefixCls:`${$t}-menu`,className:ts,onSelect:Vi,onDeselect:Vi,selectedKeys:Ni,getPopupContainer:Nn,openKeys:ma,onOpenChange:Ia,items:Io({filters:yt.filters||[],filterSearch:_r,prefixCls:Bt,filteredKeys:Pn(),filterMultiple:Kt,searchValue:Ka})})),$a=()=>Bn?(0,W.Z)(($n||[]).map(Va=>String(Va)),Ni,!0):Ni.length===0;Gi=S.createElement(S.Fragment,null,ua(),S.createElement("div",{className:`${Bt}-dropdown-btns`},S.createElement(Kl.ZP,{type:"link",size:"small",disabled:$a(),onClick:()=>ga()},Vr.filterReset),S.createElement(Kl.ZP,{type:"primary",size:"small",onClick:us},Vr.filterConfirm)))}yt.filterDropdown&&(Gi=S.createElement(ta.J,{selectable:void 0},Gi));const $i=()=>S.createElement(ss,{className:`${Bt}-dropdown`},Gi);let Oi;typeof yt.filterIcon=="function"?Oi=yt.filterIcon(wa):yt.filterIcon?Oi=yt.filterIcon:Oi=S.createElement(Zs,null);const{direction:yo}=S.useContext(Ms.E_);return S.createElement("div",{className:`${Bt}-column`},S.createElement("span",{className:`${lt}-column-title`},Yr),S.createElement(os.Z,{dropdownRender:$i,trigger:["click"],open:mi,onOpenChange:go,getPopupContainer:Nn,placement:yo==="rtl"?"bottomLeft":"bottomRight"},S.createElement("span",{role:"button",tabIndex:-1,className:D()(`${Bt}-trigger`,{active:wa}),onClick:Ni=>{Ni.stopPropagation()}},Oi)))}var rA=hu;function lc(fe,Ce,Je){let lt=[];return(fe||[]).forEach((Bt,yt)=>{var $t;const zt=Uo(yt,Je);if(Bt.filters||"filterDropdown"in Bt||"onFilter"in Bt)if("filteredValue"in Bt){let Kt=Bt.filteredValue;"filterDropdown"in Bt||(Kt=($t=Kt==null?void 0:Kt.map(String))!==null&&$t!==void 0?$t:Kt),lt.push({column:Bt,key:$s(Bt,zt),filteredKeys:Kt,forceFiltered:Bt.filtered})}else lt.push({column:Bt,key:$s(Bt,zt),filteredKeys:Ce&&Bt.defaultFilteredValue?Bt.defaultFilteredValue:void 0,forceFiltered:Bt.filtered});"children"in Bt&&(lt=[].concat((0,dn.Z)(lt),(0,dn.Z)(lc(Bt.children,Ce,zt))))}),lt}function pu(fe,Ce,Je,lt,Bt,yt,$t,zt){return Je.map((Kt,ur)=>{const _r=Uo(ur,zt),{filterMultiple:pr=!0,filterMode:tn,filterSearch:Vr}=Kt;let Yr=Kt;if(Yr.filters||Yr.filterDropdown){const Nn=$s(Yr,_r),xn=lt.find(Fn=>{let{key:Bn}=Fn;return Nn===Bn});Yr=Object.assign(Object.assign({},Yr),{title:Fn=>S.createElement(rA,{tablePrefixCls:fe,prefixCls:`${fe}-filter`,dropdownPrefixCls:Ce,column:Yr,columnKey:Nn,filterState:xn,filterMultiple:pr,filterMode:tn,filterSearch:Vr,triggerFilter:yt,locale:Bt,getPopupContainer:$t},Ro(Kt.title,Fn))})}return"children"in Yr&&(Yr=Object.assign(Object.assign({},Yr),{children:pu(fe,Ce,Yr.children,lt,Bt,yt,$t,_r)})),Yr})}function cl(fe){const Ce={};return fe.forEach(Je=>{let{key:lt,filteredKeys:Bt,column:yt}=Je;const{filters:$t,filterDropdown:zt}=yt;if(zt)Ce[lt]=Bt||null;else if(Array.isArray(Bt)){const Kt=ls($t);Ce[lt]=Kt.filter(ur=>Bt.includes(String(ur)))}else Ce[lt]=null}),Ce}function mu(fe,Ce){return Ce.reduce((Je,lt)=>{const{column:{onFilter:Bt,filters:yt},filteredKeys:$t}=lt;return Bt&&$t&&$t.length?Je.filter(zt=>$t.some(Kt=>{const ur=ls(yt),_r=ur.findIndex(tn=>String(tn)===String(Kt)),pr=_r!==-1?ur[_r]:Kt;return Bt(pr,zt)})):Je},fe)}const tl=fe=>fe.flatMap(Ce=>"children"in Ce?[Ce].concat((0,dn.Z)(tl(Ce.children||[]))):[Ce]);function bs(fe){let{prefixCls:Ce,dropdownPrefixCls:Je,mergedColumns:lt,onFilterChange:Bt,getPopupContainer:yt,locale:$t}=fe;const zt=S.useMemo(()=>tl(lt||[]),[lt]),[Kt,ur]=S.useState(()=>lc(zt,!0)),_r=S.useMemo(()=>{const Yr=lc(zt,!1);if(Yr.length===0)return Yr;let Nn=!0,xn=!0;if(Yr.forEach(Fn=>{let{filteredKeys:Bn}=Fn;Bn!==void 0?Nn=!1:xn=!1}),Nn){const Fn=(zt||[]).map((Bn,$n)=>$s(Bn,Uo($n)));return Kt.filter(Bn=>{let{key:$n}=Bn;return Fn.includes($n)}).map(Bn=>{const $n=zt[Fn.findIndex(Ui=>Ui===Bn.key)];return Object.assign(Object.assign({},Bn),{column:Object.assign(Object.assign({},Bn.column),$n),forceFiltered:$n.filtered})})}return Yr},[zt,Kt]),pr=S.useMemo(()=>cl(_r),[_r]),tn=Yr=>{const Nn=_r.filter(xn=>{let{key:Fn}=xn;return Fn!==Yr.key});Nn.push(Yr),ur(Nn),Bt(cl(Nn),Nn)};return[Yr=>pu(Ce,Je,Yr,_r,$t,tn,yt),_r,pr]}var qc=bs;function Us(fe,Ce,Je){const lt=S.useRef({});function Bt(yt){if(!lt.current||lt.current.data!==fe||lt.current.childrenColumnName!==Ce||lt.current.getRowKey!==Je){let zt=function(Kt){Kt.forEach((ur,_r)=>{const pr=Je(ur,_r);$t.set(pr,ur),ur&&typeof ur=="object"&&Ce in ur&&zt(ur[Ce]||[])})};const $t=new Map;zt(fe),lt.current={data:fe,childrenColumnName:Ce,kvMap:$t,getRowKey:Je}}return lt.current.kvMap.get(yt)}return[Bt]}var Pu=x(50371),cc=function(fe,Ce){var Je={};for(var lt in fe)Object.prototype.hasOwnProperty.call(fe,lt)&&Ce.indexOf(lt)<0&&(Je[lt]=fe[lt]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Bt=0,lt=Object.getOwnPropertySymbols(fe);Bt<lt.length;Bt++)Ce.indexOf(lt[Bt])<0&&Object.prototype.propertyIsEnumerable.call(fe,lt[Bt])&&(Je[lt[Bt]]=fe[lt[Bt]]);return Je};const Hl=10;function ro(fe,Ce){const Je={current:fe.current,pageSize:fe.pageSize};return Object.keys(Ce&&typeof Ce=="object"?Ce:{}).forEach(Bt=>{const yt=fe[Bt];typeof yt!="function"&&(Je[Bt]=yt)}),Je}function Gs(fe,Ce,Je){const lt=Je&&typeof Je=="object"?Je:{},{total:Bt=0}=lt,yt=cc(lt,["total"]),[$t,zt]=(0,S.useState)(()=>({current:"defaultCurrent"in yt?yt.defaultCurrent:1,pageSize:"defaultPageSize"in yt?yt.defaultPageSize:Hl})),Kt=(0,Pu.Z)($t,yt,{total:Bt>0?Bt:fe}),ur=Math.ceil((Bt||fe)/Kt.pageSize);Kt.current>ur&&(Kt.current=ur||1);const _r=(tn,Vr)=>{zt({current:tn!=null?tn:1,pageSize:Vr||Kt.pageSize})},pr=(tn,Vr)=>{var Yr;Je&&((Yr=Je.onChange)===null||Yr===void 0||Yr.call(Je,tn,Vr)),_r(tn,Vr),Ce(tn,Vr||(Kt==null?void 0:Kt.pageSize))};return Je===!1?[{},()=>{}]:[Object.assign(Object.assign({},Kt),{onChange:pr}),_r]}var gu=Gs,EA=x(84105),cs=x(35654),Ba=x(90782),ya=x(71430),rs=x(18929);const bo={},$o="SELECT_ALL",Zo="SELECT_INVERT",Do="SELECT_NONE",Es=[],nc=(fe,Ce)=>{let Je=[];return(Ce||[]).forEach(lt=>{Je.push(lt),lt&&typeof lt=="object"&&fe in lt&&(Je=[].concat((0,dn.Z)(Je),(0,dn.Z)(nc(fe,lt[fe]))))}),Je};var Xs=(fe,Ce)=>{const{preserveSelectedRowKeys:Je,selectedRowKeys:lt,defaultSelectedRowKeys:Bt,getCheckboxProps:yt,onChange:$t,onSelect:zt,onSelectAll:Kt,onSelectInvert:ur,onSelectNone:_r,onSelectMultiple:pr,columnWidth:tn,type:Vr,selections:Yr,fixed:Nn,renderCell:xn,hideSelectAll:Fn,checkStrictly:Bn=!0}=Ce||{},{prefixCls:$n,data:Ui,pageData:zi,getRecordByKey:fi,getRowKey:na,expandType:wa,childrenColumnName:Jn,locale:mi,getPopupContainer:ii}=fe,[Pn,ai]=(0,rs.Z)(lt||Bt||Es,{value:lt}),Vi=S.useRef(new Map),Pa=(0,S.useCallback)(oi=>{if(Je){const Gi=new Map;oi.forEach($i=>{let Oi=fi($i);!Oi&&Vi.current.has($i)&&(Oi=Vi.current.get($i)),Gi.set($i,Oi)}),Vi.current=Gi}},[fi,Je]);S.useEffect(()=>{Pa(Pn)},[Pn]);const{keyEntities:ma}=(0,S.useMemo)(()=>{if(Bn)return{keyEntities:null};let oi=Ui;if(Je){const Gi=new Set(Ui.map((Oi,yo)=>na(Oi,yo))),$i=Array.from(Vi.current).reduce((Oi,yo)=>{let[Ni,ua]=yo;return Gi.has(Ni)?Oi:Oi.concat(ua)},[]);oi=[].concat((0,dn.Z)(oi),(0,dn.Z)($i))}return(0,ya.I8)(oi,{externalGetKey:na,childrenPropName:Jn})},[Ui,na,Bn,Jn,Je]),Wi=(0,S.useMemo)(()=>nc(Jn,zi),[Jn,zi]),Ia=(0,S.useMemo)(()=>{const oi=new Map;return Wi.forEach((Gi,$i)=>{const Oi=na(Gi,$i),yo=(yt?yt(Gi):null)||{};oi.set(Oi,yo)}),oi},[Wi,na,yt]),Ka=(0,S.useCallback)(oi=>{var Gi;return!!(!((Gi=Ia.get(na(oi)))===null||Gi===void 0)&&Gi.disabled)},[Ia,na]),[es,lo]=(0,S.useMemo)(()=>{if(Bn)return[Pn||[],[]];const{checkedKeys:oi,halfCheckedKeys:Gi}=(0,Ba.S)(Pn,!0,ma,Ka);return[oi||[],Gi]},[Pn,Bn,ma,Ka]),ys=(0,S.useMemo)(()=>{const oi=Vr==="radio"?es.slice(0,1):es;return new Set(oi)},[es,Vr]),us=(0,S.useMemo)(()=>Vr==="radio"?new Set:new Set(lo),[lo,Vr]),[ga,ol]=(0,S.useState)(null);S.useEffect(()=>{Ce||ai(Es)},[!!Ce]);const go=(0,S.useCallback)((oi,Gi)=>{let $i,Oi;Pa(oi),Je?($i=oi,Oi=oi.map(yo=>Vi.current.get(yo))):($i=[],Oi=[],oi.forEach(yo=>{const Ni=fi(yo);Ni!==void 0&&($i.push(yo),Oi.push(Ni))})),ai($i),$t==null||$t($i,Oi,{type:Gi})},[ai,fi,$t,Je]),ts=(0,S.useCallback)((oi,Gi,$i,Oi)=>{if(zt){const yo=$i.map(Ni=>fi(Ni));zt(fi(oi),Gi,yo,Oi)}go($i,"single")},[zt,fi,go]),ns=(0,S.useMemo)(()=>!Yr||Fn?null:(Yr===!0?[$o,Zo,Do]:Yr).map(Gi=>Gi===$o?{key:"all",text:mi.selectionAll,onSelect(){go(Ui.map(($i,Oi)=>na($i,Oi)).filter($i=>{const Oi=Ia.get($i);return!(Oi!=null&&Oi.disabled)||ys.has($i)}),"all")}}:Gi===Zo?{key:"invert",text:mi.selectInvert,onSelect(){const $i=new Set(ys);zi.forEach((yo,Ni)=>{const ua=na(yo,Ni),$a=Ia.get(ua);$a!=null&&$a.disabled||($i.has(ua)?$i.delete(ua):$i.add(ua))});const Oi=Array.from($i);ur&&ur(Oi),go(Oi,"invert")}}:Gi===Do?{key:"none",text:mi.selectNone,onSelect(){_r==null||_r(),go(Array.from(ys).filter($i=>{const Oi=Ia.get($i);return Oi==null?void 0:Oi.disabled}),"none")}}:Gi).map(Gi=>Object.assign(Object.assign({},Gi),{onSelect:function(){for(var $i,Oi,yo=arguments.length,Ni=new Array(yo),ua=0;ua<yo;ua++)Ni[ua]=arguments[ua];(Oi=Gi.onSelect)===null||Oi===void 0||($i=Oi).call.apply($i,[Gi].concat(Ni)),ol(null)}})),[Yr,ys,zi,na,ur,go]);return[(0,S.useCallback)(oi=>{var Gi;if(!Ce)return oi.filter(co=>co!==bo);let $i=(0,dn.Z)(oi);const Oi=new Set(ys),yo=Wi.map(na).filter(co=>!Ia.get(co).disabled),Ni=yo.every(co=>Oi.has(co)),ua=yo.some(co=>Oi.has(co)),$a=()=>{const co=[];Ni?yo.forEach(Mo=>{Oi.delete(Mo),co.push(Mo)}):yo.forEach(Mo=>{Oi.has(Mo)||(Oi.add(Mo),co.push(Mo))});const hn=Array.from(Oi);Kt==null||Kt(!Ni,hn.map(Mo=>fi(Mo)),co.map(Mo=>fi(Mo))),go(hn,"all"),ol(null)};let Va;if(Vr!=="radio"){let co;if(ns){const ia={getPopupContainer:ii,items:ns.map((Bl,$l)=>{const{key:Uc,text:xc,onSelect:Sl}=Bl;return{key:Uc!=null?Uc:$l,onClick:()=>{Sl==null||Sl(yo)},label:xc}})};co=S.createElement("div",{className:`${$n}-selection-extra`},S.createElement(os.Z,{menu:ia,getPopupContainer:ii},S.createElement("span",null,S.createElement(EA.Z,null))))}const hn=Wi.map((ia,Bl)=>{const $l=na(ia,Bl),Uc=Ia.get($l)||{};return Object.assign({checked:Oi.has($l)},Uc)}).filter(ia=>{let{disabled:Bl}=ia;return Bl}),Mo=!!hn.length&&hn.length===Wi.length,ul=Mo&&hn.every(ia=>{let{checked:Bl}=ia;return Bl}),As=Mo&&hn.some(ia=>{let{checked:Bl}=ia;return Bl});Va=!Fn&&S.createElement("div",{className:`${$n}-selection`},S.createElement(Vs.default,{checked:Mo?ul:!!Wi.length&&Ni,indeterminate:Mo?!ul&&As:!Ni&&ua,onChange:$a,disabled:Wi.length===0||Mo,"aria-label":co?"Custom selection":"Select all",skipGroup:!0}),co)}let Fl;Vr==="radio"?Fl=(co,hn,Mo)=>{const ul=na(hn,Mo),As=Oi.has(ul);return{node:S.createElement(oa.ZP,Object.assign({},Ia.get(ul),{checked:As,onClick:ia=>ia.stopPropagation(),onChange:ia=>{Oi.has(ul)||ts(ul,!0,[ul],ia.nativeEvent)}})),checked:As}}:Fl=(co,hn,Mo)=>{var ul;const As=na(hn,Mo),ia=Oi.has(As),Bl=us.has(As),$l=Ia.get(As);let Uc;return wa==="nest"?Uc=Bl:Uc=(ul=$l==null?void 0:$l.indeterminate)!==null&&ul!==void 0?ul:Bl,{node:S.createElement(Vs.default,Object.assign({},$l,{indeterminate:Uc,checked:ia,skipGroup:!0,onClick:xc=>xc.stopPropagation(),onChange:xc=>{let{nativeEvent:Sl}=xc;const{shiftKey:Al}=Sl;let oA=-1,Ml=-1;if(Al&&Bn){const Qs=new Set([ga,As]);yo.some((El,il)=>{if(Qs.has(El))if(oA===-1)oA=il;else return Ml=il,!0;return!1})}if(Ml!==-1&&oA!==Ml&&Bn){const Qs=yo.slice(oA,Ml+1),El=[];ia?Qs.forEach(ks=>{Oi.has(ks)&&(El.push(ks),Oi.delete(ks))}):Qs.forEach(ks=>{Oi.has(ks)||(El.push(ks),Oi.add(ks))});const il=Array.from(Oi);pr==null||pr(!ia,il.map(ks=>fi(ks)),El.map(ks=>fi(ks))),go(il,"multiple")}else{const Qs=es;if(Bn){const El=ia?(0,cs._5)(Qs,As):(0,cs.L0)(Qs,As);ts(As,!ia,El,Sl)}else{const El=(0,Ba.S)([].concat((0,dn.Z)(Qs),[As]),!0,ma,Ka),{checkedKeys:il,halfCheckedKeys:ks}=El;let Cc=il;if(ia){const wu=new Set(il);wu.delete(As),Cc=(0,Ba.S)(Array.from(wu),{checked:!1,halfCheckedKeys:ks},ma,Ka).checkedKeys}ts(As,!ia,Cc,Sl)}}ol(ia?null:As)}})),checked:ia}};const nl=(co,hn,Mo)=>{const{node:ul,checked:As}=Fl(co,hn,Mo);return xn?xn(As,hn,Mo,ul):ul};if(!$i.includes(bo))if($i.findIndex(co=>{var hn;return((hn=co[yr])===null||hn===void 0?void 0:hn.columnType)==="EXPAND_COLUMN"})===0){const[co,...hn]=$i;$i=[co,bo].concat((0,dn.Z)(hn))}else $i=[bo].concat((0,dn.Z)($i));const Gc=$i.indexOf(bo);$i=$i.filter((co,hn)=>co!==bo||hn===Gc);const Rs=$i[Gc-1],Tc=$i[Gc+1];let Hn=Nn;Hn===void 0&&((Tc==null?void 0:Tc.fixed)!==void 0?Hn=Tc.fixed:(Rs==null?void 0:Rs.fixed)!==void 0&&(Hn=Rs.fixed)),Hn&&Rs&&((Gi=Rs[yr])===null||Gi===void 0?void 0:Gi.columnType)==="EXPAND_COLUMN"&&Rs.fixed===void 0&&(Rs.fixed=Hn);const uc=D()(`${$n}-selection-col`,{[`${$n}-selection-col-with-dropdown`]:Yr&&Vr==="checkbox"}),MA={fixed:Hn,width:tn,className:`${$n}-selection-column`,title:Ce.columnTitle||Va,render:nl,onCell:Ce.onCell,[yr]:{className:uc}};return $i.map(co=>co===bo?MA:co)},[na,Wi,Ce,es,ys,us,tn,ns,wa,ga,Ia,pr,ts,Ka]),ys]},vu=x(89489),wl=x(59477),eu=x(6848);const rl="ascend",_d="descend";function nA(fe){return typeof fe.sorter=="object"&&typeof fe.sorter.multiple=="number"?fe.sorter.multiple:!1}function $u(fe){return typeof fe=="function"?fe:fe&&typeof fe=="object"&&fe.compare?fe.compare:!1}function uf(fe,Ce){return Ce?fe[fe.indexOf(Ce)+1]:fe[0]}function Wc(fe,Ce,Je){let lt=[];function Bt(yt,$t){lt.push({column:yt,key:$s(yt,$t),multiplePriority:nA(yt),sortOrder:yt.sortOrder})}return(fe||[]).forEach((yt,$t)=>{const zt=Uo($t,Je);yt.children?("sortOrder"in yt&&Bt(yt,zt),lt=[].concat((0,dn.Z)(lt),(0,dn.Z)(Wc(yt.children,Ce,zt)))):yt.sorter&&("sortOrder"in yt?Bt(yt,zt):Ce&&yt.defaultSortOrder&&lt.push({column:yt,key:$s(yt,zt),multiplePriority:nA(yt),sortOrder:yt.defaultSortOrder}))}),lt}function GA(fe,Ce,Je,lt,Bt,yt,$t,zt){return(Ce||[]).map((Kt,ur)=>{const _r=Uo(ur,zt);let pr=Kt;if(pr.sorter){const tn=pr.sortDirections||Bt,Vr=pr.showSorterTooltip===void 0?$t:pr.showSorterTooltip,Yr=$s(pr,_r),Nn=Je.find(wa=>{let{key:Jn}=wa;return Jn===Yr}),xn=Nn?Nn.sortOrder:null,Fn=uf(tn,xn);let Bn;if(Kt.sortIcon)Bn=Kt.sortIcon({sortOrder:xn});else{const wa=tn.includes(rl)&&S.createElement(wl.Z,{className:D()(`${fe}-column-sorter-up`,{active:xn===rl})}),Jn=tn.includes(_d)&&S.createElement(vu.Z,{className:D()(`${fe}-column-sorter-down`,{active:xn===_d})});Bn=S.createElement("span",{className:D()(`${fe}-column-sorter`,{[`${fe}-column-sorter-full`]:!!(wa&&Jn)})},S.createElement("span",{className:`${fe}-column-sorter-inner`,"aria-hidden":"true"},wa,Jn))}const{cancelSort:$n,triggerAsc:Ui,triggerDesc:zi}=yt||{};let fi=$n;Fn===_d?fi=zi:Fn===rl&&(fi=Ui);const na=typeof Vr=="object"?Vr:{title:fi};pr=Object.assign(Object.assign({},pr),{className:D()(pr.className,{[`${fe}-column-sort`]:xn}),title:wa=>{const Jn=S.createElement("div",{className:`${fe}-column-sorters`},S.createElement("span",{className:`${fe}-column-title`},Ro(Kt.title,wa)),Bn);return Vr?S.createElement(eu.Z,Object.assign({},na),Jn):Jn},onHeaderCell:wa=>{const Jn=Kt.onHeaderCell&&Kt.onHeaderCell(wa)||{},mi=Jn.onClick,ii=Jn.onKeyDown;Jn.onClick=Vi=>{lt({column:Kt,key:Yr,sortOrder:Fn,multiplePriority:nA(Kt)}),mi==null||mi(Vi)},Jn.onKeyDown=Vi=>{Vi.keyCode===vs.Z.ENTER&&(lt({column:Kt,key:Yr,sortOrder:Fn,multiplePriority:nA(Kt)}),ii==null||ii(Vi))};const Pn=Cs(Kt.title,{}),ai=Pn==null?void 0:Pn.toString();return xn?Jn["aria-sort"]=xn==="ascend"?"ascending":"descending":Jn["aria-label"]=ai||"",Jn.className=D()(Jn.className,`${fe}-column-has-sorters`),Jn.tabIndex=0,Kt.ellipsis&&(Jn.title=(Pn!=null?Pn:"").toString()),Jn}})}return"children"in pr&&(pr=Object.assign(Object.assign({},pr),{children:GA(fe,pr.children,Je,lt,Bt,yt,$t,_r)})),pr})}function Dc(fe){const{column:Ce,sortOrder:Je}=fe;return{column:Ce,order:Je,field:Ce.dataIndex,columnKey:Ce.key}}function Id(fe){const Ce=fe.filter(Je=>{let{sortOrder:lt}=Je;return lt}).map(Dc);return Ce.length===0&&fe.length?Object.assign(Object.assign({},Dc(fe[fe.length-1])),{column:void 0}):Ce.length<=1?Ce[0]||{}:Ce}function Yo(fe,Ce,Je){const lt=Ce.slice().sort(($t,zt)=>zt.multiplePriority-$t.multiplePriority),Bt=fe.slice(),yt=lt.filter($t=>{let{column:{sorter:zt},sortOrder:Kt}=$t;return $u(zt)&&Kt});return yt.length?Bt.sort(($t,zt)=>{for(let Kt=0;Kt<yt.length;Kt+=1){const ur=yt[Kt],{column:{sorter:_r},sortOrder:pr}=ur,tn=$u(_r);if(tn&&pr){const Vr=tn($t,zt,pr);if(Vr!==0)return pr===rl?Vr:-Vr}}return 0}).map($t=>{const zt=$t[Je];return zt?Object.assign(Object.assign({},$t),{[Je]:Yo(zt,Ce,Je)}):$t}):Bt}function Oo(fe){let{prefixCls:Ce,mergedColumns:Je,onSorterChange:lt,sortDirections:Bt,tableLocale:yt,showSorterTooltip:$t}=fe;const[zt,Kt]=S.useState(Wc(Je,!0)),ur=S.useMemo(()=>{let Yr=!0;const Nn=Wc(Je,!1);if(!Nn.length)return zt;const xn=[];function Fn($n){Yr?xn.push($n):xn.push(Object.assign(Object.assign({},$n),{sortOrder:null}))}let Bn=null;return Nn.forEach($n=>{Bn===null?(Fn($n),$n.sortOrder&&($n.multiplePriority===!1?Yr=!1:Bn=!0)):(Bn&&$n.multiplePriority!==!1||(Yr=!1),Fn($n))}),xn},[Je,zt]),_r=S.useMemo(()=>{const Yr=ur.map(Nn=>{let{column:xn,sortOrder:Fn}=Nn;return{column:xn,order:Fn}});return{sortColumns:Yr,sortColumn:Yr[0]&&Yr[0].column,sortOrder:Yr[0]&&Yr[0].order}},[ur]);function pr(Yr){let Nn;Yr.multiplePriority===!1||!ur.length||ur[0].multiplePriority===!1?Nn=[Yr]:Nn=[].concat((0,dn.Z)(ur.filter(xn=>{let{key:Fn}=xn;return Fn!==Yr.key})),[Yr]),Kt(Nn),lt(Id(Nn),Nn)}return[Yr=>GA(Ce,Yr,ur,pr,Bt,yt,$t),ur,_r,()=>Id(ur)]}function qo(fe,Ce){return fe.map(Je=>{const lt=Object.assign({},Je);return lt.title=Ro(Je.title,Ce),"children"in lt&&(lt.children=qo(lt.children,Ce)),lt})}function bc(fe){return[S.useCallback(Je=>qo(Je,fe),[fe])]}var jl=_i((fe,Ce)=>{const{_renderTimes:Je}=fe,{_renderTimes:lt}=Ce;return Je!==lt}),XA=Fi((fe,Ce)=>{const{_renderTimes:Je}=fe,{_renderTimes:lt}=Ce;return Je!==lt}),bu=x(64993),Zu=x(17313),Fd=x(83116),Md=x(37613),Wu=fe=>{const{componentCls:Ce}=fe,Je=`${fe.lineWidth}px ${fe.lineType} ${fe.tableBorderColor}`,lt=(Bt,yt,$t)=>({[`&${Ce}-${Bt}`]:{[`> ${Ce}-container`]:{[`> ${Ce}-content, > ${Ce}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${yt}px -${$t+fe.lineWidth}px`}}}}}});return{[`${Ce}-wrapper`]:{[`${Ce}${Ce}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${Ce}-title`]:{border:Je,borderBottom:0},[`> ${Ce}-container`]:{borderInlineStart:Je,borderTop:Je,[`
> ${Ce}-content,
> ${Ce}-header,
> ${Ce}-body,
> ${Ce}-summary
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd: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 ":{[`> ${Ce}-cell-fix-right-first::after`]:{borderInlineEnd:Je}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${Ce}-expanded-row-fixed`]:{margin:`-${fe.tablePaddingVertical}px -${fe.tablePaddingHorizontal+fe.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:fe.lineWidth,bottom:0,borderInlineEnd:Je,content:'""'}}}}}},[`&${Ce}-scroll-horizontal`]:{[`> ${Ce}-container > ${Ce}-body`]:{"> table > tbody":{[`
> tr${Ce}-expanded-row,
> tr${Ce}-placeholder
`]:{"> th, > td":{borderInlineEnd:0}}}}}},lt("middle",fe.tablePaddingVerticalMiddle,fe.tablePaddingHorizontalMiddle)),lt("small",fe.tablePaddingVerticalSmall,fe.tablePaddingHorizontalSmall)),{[`> ${Ce}-footer`]:{border:Je,borderTop:0}}),[`${Ce}-cell`]:{[`${Ce}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${fe.lineWidth}px 0 ${fe.lineWidth}px ${fe.tableHeaderBg}`}},[`${Ce}-bordered ${Ce}-cell-scrollbar`]:{borderInlineEnd:Je}}}},yu=fe=>{const{componentCls:Ce}=fe;return{[`${Ce}-wrapper`]:{[`${Ce}-cell-ellipsis`]:Object.assign(Object.assign({},Zu.vS),{wordBreak:"keep-all",[`
&${Ce}-cell-fix-left-last,
&${Ce}-cell-fix-right-first
`]:{overflow:"visible",[`${Ce}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${Ce}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},b0=fe=>{const{componentCls:Ce}=fe;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody > tr${Ce}-placeholder`]:{textAlign:"center",color:fe.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:fe.colorBgContainer}}}}},iA=x(15969),Af=fe=>{const{componentCls:Ce,antCls:Je,controlInteractiveSize:lt,motionDurationSlow:Bt,lineWidth:yt,paddingXS:$t,lineType:zt,tableBorderColor:Kt,tableExpandIconBg:ur,tableExpandColumnWidth:_r,borderRadius:pr,fontSize:tn,fontSizeSM:Vr,lineHeight:Yr,tablePaddingVertical:Nn,tablePaddingHorizontal:xn,tableExpandedRowBg:Fn,paddingXXS:Bn}=fe,$n=lt/2-yt,Ui=$n*2+yt*3,zi=`${yt}px ${zt} ${Kt}`,fi=Bn-yt;return{[`${Ce}-wrapper`]:{[`${Ce}-expand-icon-col`]:{width:_r},[`${Ce}-row-expand-icon-cell`]:{textAlign:"center",[`${Ce}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${Ce}-row-indent`]:{height:1,float:"left"},[`${Ce}-row-expand-icon`]:Object.assign(Object.assign({},(0,iA.N)(fe)),{position:"relative",float:"left",boxSizing:"border-box",width:Ui,height:Ui,padding:0,color:"inherit",lineHeight:`${Ui}px`,background:ur,border:zi,borderRadius:pr,transform:`scale(${lt/Ui})`,transition:`all ${Bt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${Bt} ease-out`,content:'""'},"&::before":{top:$n,insetInlineEnd:fi,insetInlineStart:fi,height:yt},"&::after":{top:fi,bottom:fi,insetInlineStart:$n,width:yt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${Ce}-row-indent + ${Ce}-row-expand-icon`]:{marginTop:(tn*Yr-yt*3)/2-Math.ceil((Vr*1.4-yt*3)/2),marginInlineEnd:$t},[`tr${Ce}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Fn}},[`${Je}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${Ce}-expanded-row-fixed`]:{position:"relative",margin:`-${Nn}px -${xn}px`,padding:`${Nn}px ${xn}px`}}}},zf=fe=>{const{componentCls:Ce,antCls:Je,iconCls:lt,tableFilterDropdownWidth:Bt,tableFilterDropdownSearchWidth:yt,paddingXXS:$t,paddingXS:zt,colorText:Kt,lineWidth:ur,lineType:_r,tableBorderColor:pr,tableHeaderIconColor:tn,fontSizeSM:Vr,tablePaddingHorizontal:Yr,borderRadius:Nn,motionDurationSlow:xn,colorTextDescription:Fn,colorPrimary:Bn,tableHeaderFilterActiveBg:$n,colorTextDisabled:Ui,tableFilterDropdownBg:zi,tableFilterDropdownHeight:fi,controlItemBgHover:na,controlItemBgActive:wa,boxShadowSecondary:Jn,filterDropdownMenuBg:mi}=fe,ii=`${Je}-dropdown`,Pn=`${Ce}-filter-dropdown`,ai=`${Je}-tree`,Vi=`${ur}px ${_r} ${pr}`;return[{[`${Ce}-wrapper`]:{[`${Ce}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${Ce}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-$t,marginInline:`${$t}px ${-Yr/2}px`,padding:`0 ${$t}px`,color:tn,fontSize:Vr,borderRadius:Nn,cursor:"pointer",transition:`all ${xn}`,"&:hover":{color:Fn,background:$n},"&.active":{color:Bn}}}},{[`${Je}-dropdown`]:{[Pn]:Object.assign(Object.assign({},(0,Zu.Wf)(fe)),{minWidth:Bt,backgroundColor:zi,borderRadius:Nn,boxShadow:Jn,overflow:"hidden",[`${ii}-menu`]:{maxHeight:fi,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:mi,"&:empty::after":{display:"block",padding:`${zt}px 0`,color:Ui,fontSize:Vr,textAlign:"center",content:'"Not Found"'}},[`${Pn}-tree`]:{paddingBlock:`${zt}px 0`,paddingInline:zt,[ai]:{padding:0},[`${ai}-treenode ${ai}-node-content-wrapper:hover`]:{backgroundColor:na},[`${ai}-treenode-checkbox-checked ${ai}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:wa}}},[`${Pn}-search`]:{padding:zt,borderBottom:Vi,"&-input":{input:{minWidth:yt},[lt]:{color:Ui}}},[`${Pn}-checkall`]:{width:"100%",marginBottom:$t,marginInlineStart:$t},[`${Pn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${zt-ur}px ${zt}px`,overflow:"hidden",borderTop:Vi}})}},{[`${Je}-dropdown ${Pn}, ${Pn}-submenu`]:{[`${Je}-checkbox-wrapper + span`]:{paddingInlineStart:zt,color:Kt},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},_A=fe=>{const{componentCls:Ce,lineWidth:Je,colorSplit:lt,motionDurationSlow:Bt,zIndexTableFixed:yt,tableBg:$t,zIndexTableSticky:zt}=fe,Kt=lt;return{[`${Ce}-wrapper`]:{[`
${Ce}-cell-fix-left,
${Ce}-cell-fix-right
`]:{position:"sticky !important",zIndex:yt,background:$t},[`
${Ce}-cell-fix-left-first::after,
${Ce}-cell-fix-left-last::after
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Je,width:30,transform:"translateX(100%)",transition:`box-shadow ${Bt}`,content:'""',pointerEvents:"none"},[`${Ce}-cell-fix-left-all::after`]:{display:"none"},[`
${Ce}-cell-fix-right-first::after,
${Ce}-cell-fix-right-last::after
`]:{position:"absolute",top:0,bottom:-Je,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${Bt}`,content:'""',pointerEvents:"none"},[`${Ce}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:zt+1,width:30,transition:`box-shadow ${Bt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${Ce}-ping-left`]:{[`&:not(${Ce}-has-fix-left) ${Ce}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Kt}`}},[`
${Ce}-cell-fix-left-first::after,
${Ce}-cell-fix-left-last::after
`]:{boxShadow:`inset 10px 0 8px -8px ${Kt}`},[`${Ce}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${Ce}-ping-right`]:{[`&:not(${Ce}-has-fix-right) ${Ce}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Kt}`}},[`
${Ce}-cell-fix-right-first::after,
${Ce}-cell-fix-right-last::after
`]:{boxShadow:`inset -10px 0 8px -8px ${Kt}`}}}}},xl=fe=>{const{componentCls:Ce,antCls:Je}=fe;return{[`${Ce}-wrapper`]:{[`${Ce}-pagination${Je}-pagination`]:{margin:`${fe.margin}px 0`},[`${Ce}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:fe.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Oc=fe=>{const{componentCls:Ce,tableRadius:Je}=fe;return{[`${Ce}-wrapper`]:{[Ce]:{[`${Ce}-title, ${Ce}-header`]:{borderRadius:`${Je}px ${Je}px 0 0`},[`${Ce}-title + ${Ce}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${Ce}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Je,borderStartEndRadius:Je,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Je},"> *:last-child":{borderStartEndRadius:Je}}},"&-footer":{borderRadius:`0 0 ${Je}px ${Je}px`}}}}},y0=fe=>{const{componentCls:Ce}=fe;return{[`${Ce}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${Ce}-pagination-left`]:{justifyContent:"flex-end"},[`${Ce}-pagination-right`]:{justifyContent:"flex-start"},[`${Ce}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${Ce}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${Ce}-row-indent`]:{float:"right"}}}}},Eh=fe=>{const{componentCls:Ce,antCls:Je,iconCls:lt,fontSizeIcon:Bt,padding:yt,paddingXS:$t,tableHeaderIconColor:zt,tableHeaderIconColorHover:Kt,tableSelectionColumnWidth:ur}=fe;return{[`${Ce}-wrapper`]:{[`${Ce}-selection-col`]:{width:ur,[`&${Ce}-selection-col-with-dropdown`]:{width:ur+Bt+yt/4}},[`${Ce}-bordered ${Ce}-selection-col`]:{width:ur+$t*2,[`&${Ce}-selection-col-with-dropdown`]:{width:ur+Bt+yt/4+$t*2}},[`
table tr th${Ce}-selection-column,
table tr td${Ce}-selection-column
`]:{paddingInlineEnd:fe.paddingXS,paddingInlineStart:fe.paddingXS,textAlign:"center",[`${Je}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${Ce}-selection-column${Ce}-cell-fix-left`]:{zIndex:fe.zIndexTableFixed+1},[`table tr th${Ce}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${Ce}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${Ce}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${fe.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${fe.tablePaddingHorizontal/4}px`,[lt]:{color:zt,fontSize:Bt,verticalAlign:"baseline","&:hover":{color:Kt}}}}}},kd=fe=>{const{componentCls:Ce}=fe,Je=(lt,Bt,yt,$t)=>({[`${Ce}${Ce}-${lt}`]:{fontSize:$t,[`
${Ce}-title,
${Ce}-footer,
${Ce}-cell,
${Ce}-thead > tr > th,
${Ce}-tbody > tr > th,
${Ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{padding:`${Bt}px ${yt}px`},[`${Ce}-filter-trigger`]:{marginInlineEnd:`-${yt/2}px`},[`${Ce}-expanded-row-fixed`]:{margin:`-${Bt}px -${yt}px`},[`${Ce}-tbody`]:{[`${Ce}-wrapper:only-child ${Ce}`]:{marginBlock:`-${Bt}px`,marginInline:`${fe.tableExpandColumnWidth-yt}px -${yt}px`}},[`${Ce}-selection-column`]:{paddingInlineStart:`${yt/4}px`}}});return{[`${Ce}-wrapper`]:Object.assign(Object.assign({},Je("middle",fe.tablePaddingVerticalMiddle,fe.tablePaddingHorizontalMiddle,fe.tableFontSizeMiddle)),Je("small",fe.tablePaddingVerticalSmall,fe.tablePaddingHorizontalSmall,fe.tableFontSizeSmall))}},aA=fe=>{const{componentCls:Ce,marginXXS:Je,fontSizeIcon:lt,tableHeaderIconColor:Bt,tableHeaderIconColorHover:yt}=fe;return{[`${Ce}-wrapper`]:{[`${Ce}-thead th${Ce}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${fe.motionDurationSlow}`,"&:hover":{background:fe.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:fe.colorPrimary},[`
&${Ce}-cell-fix-left:hover,
&${Ce}-cell-fix-right:hover
`]:{background:fe.tableFixedHeaderSortActiveBg}},[`${Ce}-thead th${Ce}-column-sort`]:{background:fe.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${Ce}-column-sort`]:{background:fe.tableBodySortBg},[`${Ce}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${Ce}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${Ce}-column-sorter`]:{marginInlineStart:Je,color:Bt,fontSize:0,transition:`color ${fe.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:lt,"&.active":{color:fe.colorPrimary}},[`${Ce}-column-sorter-up + ${Ce}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${Ce}-column-sorters:hover ${Ce}-column-sorter`]:{color:yt}}}},yc=fe=>{const{componentCls:Ce,opacityLoading:Je,tableScrollThumbBg:lt,tableScrollThumbBgHover:Bt,tableScrollThumbSize:yt,tableScrollBg:$t,zIndexTableSticky:zt,stickyScrollBarBorderRadius:Kt}=fe,ur=`${fe.lineWidth}px ${fe.lineType} ${fe.tableBorderColor}`;return{[`${Ce}-wrapper`]:{[`${Ce}-sticky`]:{"&-holder":{position:"sticky",zIndex:zt,background:fe.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${yt}px !important`,zIndex:zt,display:"flex",alignItems:"center",background:$t,borderTop:ur,opacity:Je,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:yt,backgroundColor:lt,borderRadius:Kt,transition:`all ${fe.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:Bt}}}}}}},JA=fe=>{const{componentCls:Ce,lineWidth:Je,tableBorderColor:lt}=fe,Bt=`${Je}px ${fe.lineType} ${lt}`;return{[`${Ce}-wrapper`]:{[`${Ce}-summary`]:{position:"relative",zIndex:fe.zIndexTableFixed,background:fe.tableBg,"> tr":{"> th, > td":{borderBottom:Bt}}},[`div${Ce}-summary`]:{boxShadow:`0 -${Je}px 0 ${lt}`}}}},Zf=fe=>{const{componentCls:Ce}=fe,Je=`${fe.lineWidth}px ${fe.lineType} ${fe.tableBorderColor}`,lt=`${Ce}-expanded-row-cell`;return{[`${Ce}-wrapper`]:{[`${Ce}-tbody-virtual`]:{[`${Ce}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${Ce}-cell`]:{borderBottom:Je},[`${Ce}-expanded-row`]:{[`${lt}${lt}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${fe.lineWidth}px)`,borderInlineEnd:"none"}}},[`${Ce}-bordered`]:{[`${Ce}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Je,position:"absolute"},[`${Ce}-cell`]:{borderInlineEnd:Je,[`&${Ce}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-fe.lineWidth,borderInlineStart:Je}}}}}}};const Pc=fe=>{const{componentCls:Ce,fontWeightStrong:Je,tablePaddingVertical:lt,tablePaddingHorizontal:Bt,lineWidth:yt,lineType:$t,tableBorderColor:zt,tableFontSize:Kt,tableBg:ur,tableRadius:_r,tableHeaderTextColor:pr,motionDurationMid:tn,tableHeaderBg:Vr,tableHeaderCellSplitColor:Yr,tableRowHoverBg:Nn,tableSelectedRowBg:xn,tableSelectedRowHoverBg:Fn,tableFooterTextColor:Bn,tableFooterBg:$n,paddingContentVerticalLG:Ui}=fe,zi=`${yt}px ${$t} ${zt}`;return{[`${Ce}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,Zu.dF)()),{[Ce]:Object.assign(Object.assign({},(0,Zu.Wf)(fe)),{fontSize:Kt,background:ur,borderRadius:`${_r}px ${_r}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${_r}px ${_r}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
${Ce}-cell,
${Ce}-thead > tr > th,
${Ce}-tbody > tr > th,
${Ce}-tbody > tr > td,
tfoot > tr > th,
tfoot > tr > td
`]:{position:"relative",padding:`${Ui}px ${Bt}px`,overflowWrap:"break-word"},[`${Ce}-title`]:{padding:`${lt}px ${Bt}px`},[`${Ce}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:pr,fontWeight:Je,textAlign:"start",background:Vr,borderBottom:zi,transition:`background ${tn} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${Ce}-selection-column):not(${Ce}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Yr,transform:"translateY(-50%)",transition:`background-color ${tn}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${Ce}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${tn}, border-color ${tn}`,borderBottom:zi,[`
> ${Ce}-wrapper:only-child,
> ${Ce}-expanded-row-fixed > ${Ce}-wrapper:only-child
`]:{[Ce]:{marginBlock:`-${lt}px`,marginInline:`${fe.tableExpandColumnWidth-Bt}px -${Bt}px`,[`${Ce}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:pr,fontWeight:Je,textAlign:"start",background:Vr,borderBottom:zi,transition:`background ${tn} ease`},[`
&${Ce}-row:hover > th,
&${Ce}-row:hover > td,
> th${Ce}-cell-row-hover,
> td${Ce}-cell-row-hover
`]:{background:Nn},[`&${Ce}-row-selected`]:{"> th, > td":{background:xn},"&:hover > th, &:hover > td":{background:Fn}}}},[`${Ce}-footer`]:{padding:`${lt}px ${Bt}px`,color:Bn,background:$n}})}};var YA=(0,Fd.Z)("Table",fe=>{const{colorTextHeading:Ce,colorSplit:Je,colorIcon:lt,colorIconHover:Bt,opacityLoading:yt,colorBgContainer:$t,controlInteractiveSize:zt,headerBg:Kt,headerColor:ur,headerSortActiveBg:_r,headerSortHoverBg:pr,bodySortBg:tn,rowHoverBg:Vr,rowSelectedBg:Yr,rowSelectedHoverBg:Nn,rowExpandedBg:xn,cellPaddingBlock:Fn,cellPaddingInline:Bn,cellPaddingBlockMD:$n,cellPaddingInlineMD:Ui,cellPaddingBlockSM:zi,cellPaddingInlineSM:fi,borderColor:na,footerBg:wa,footerColor:Jn,headerBorderRadius:mi,cellFontSize:ii,cellFontSizeMD:Pn,cellFontSizeSM:ai,headerSplitColor:Vi,fixedHeaderSortActiveBg:Pa,headerFilterHoverBg:ma,filterDropdownBg:Wi,expandIconBg:Ia,selectionColumnWidth:Ka,stickyScrollBarBg:es}=fe,lo=new bu.C(lt),ys=new bu.C(Bt),us=2,ga=(0,Md.TS)(fe,{tableFontSize:ii,tableBg:$t,tableRadius:mi,tablePaddingVertical:Fn,tablePaddingHorizontal:Bn,tablePaddingVerticalMiddle:$n,tablePaddingHorizontalMiddle:Ui,tablePaddingVerticalSmall:zi,tablePaddingHorizontalSmall:fi,tableBorderColor:na,tableHeaderTextColor:ur,tableHeaderBg:Kt,tableFooterTextColor:Jn,tableFooterBg:wa,tableHeaderCellSplitColor:Vi,tableHeaderSortBg:_r,tableHeaderSortHoverBg:pr,tableHeaderIconColor:lo.clone().setAlpha(lo.getAlpha()*yt).toRgbString(),tableHeaderIconColorHover:ys.clone().setAlpha(ys.getAlpha()*yt).toRgbString(),tableBodySortBg:tn,tableFixedHeaderSortActiveBg:Pa,tableHeaderFilterActiveBg:ma,tableFilterDropdownBg:Wi,tableRowHoverBg:Vr,tableSelectedRowBg:Yr,tableSelectedRowHoverBg:Nn,zIndexTableFixed:us,zIndexTableSticky:us+1,tableFontSizeMiddle:Pn,tableFontSizeSmall:ai,tableSelectionColumnWidth:Ka,tableExpandIconBg:Ia,tableExpandColumnWidth:zt+2*fe.padding,tableExpandedRowBg:xn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:es,tableScrollThumbBgHover:Ce,tableScrollBg:Je});return[Pc(ga),xl(ga),JA(ga),aA(ga),zf(ga),Wu(ga),Oc(ga),Af(ga),JA(ga),b0(ga),Eh(ga),_A(ga),yc(ga),yu(ga),kd(ga),y0(ga),Zf(ga)]},fe=>{const{colorFillAlter:Ce,colorBgContainer:Je,colorTextHeading:lt,colorFillSecondary:Bt,colorFillContent:yt,controlItemBgActive:$t,controlItemBgActiveHover:zt,padding:Kt,paddingSM:ur,paddingXS:_r,colorBorderSecondary:pr,borderRadiusLG:tn,fontSize:Vr,controlHeight:Yr,colorTextPlaceholder:Nn}=fe,xn=new bu.C(Bt).onBackground(Je).toHexShortString(),Fn=new bu.C(yt).onBackground(Je).toHexShortString(),Bn=new bu.C(Ce).onBackground(Je).toHexShortString();return{headerBg:Bn,headerColor:lt,headerSortActiveBg:xn,headerSortHoverBg:Fn,bodySortBg:Bn,rowHoverBg:Bn,rowSelectedBg:$t,rowSelectedHoverBg:zt,rowExpandedBg:Ce,cellPaddingBlock:Kt,cellPaddingInline:Kt,cellPaddingBlockMD:ur,cellPaddingInlineMD:_r,cellPaddingBlockSM:_r,cellPaddingInlineSM:_r,borderColor:pr,headerBorderRadius:tn,footerBg:Bn,footerColor:lt,cellFontSize:Vr,cellFontSizeMD:Vr,cellFontSizeSM:Vr,headerSplitColor:pr,fixedHeaderSortActiveBg:xn,headerFilterHoverBg:yt,filterDropdownMenuBg:Je,filterDropdownBg:Je,expandIconBg:Je,selectionColumnWidth:Yr,stickyScrollBarBg:Nn,stickyScrollBarBorderRadius:100}});const ff=[],qA=(fe,Ce)=>{const{prefixCls:Je,className:lt,rootClassName:Bt,style:yt,size:$t,bordered:zt,dropdownPrefixCls:Kt,dataSource:ur,pagination:_r,rowSelection:pr,rowKey:tn="key",rowClassName:Vr,columns:Yr,children:Nn,childrenColumnName:xn,onChange:Fn,getPopupContainer:Bn,loading:$n,expandIcon:Ui,expandable:zi,expandedRowRender:fi,expandIconColumnIndex:na,indentSize:wa,scroll:Jn,sortDirections:mi,locale:ii,showSorterTooltip:Pn=!0,virtual:ai}=fe,Vi=S.useMemo(()=>Yr||$e(Nn),[Yr,Nn]),Pa=S.useMemo(()=>Vi.some(ao=>ao.responsive),[Vi]),ma=(0,_o.Z)(Pa),Wi=S.useMemo(()=>{const ao=new Set(Object.keys(ma).filter(Wo=>ma[Wo]));return Vi.filter(Wo=>!Wo.responsive||Wo.responsive.some(Zl=>ao.has(Zl)))},[Vi,ma]),Ia=(0,Ji.Z)(fe,["className","style","columns"]),{locale:Ka=Bo.Z,direction:es,table:lo,renderEmpty:ys,getPrefixCls:us,getPopupContainer:ga}=S.useContext(Ms.E_),ol=(0,fa.Z)($t),go=Object.assign(Object.assign({},Ka.Table),ii),ts=ur||ff,ns=us("table",Je),wc=us("dropdown",Kt),oi=Object.assign({childrenColumnName:xn,expandIconColumnIndex:na},zi),{childrenColumnName:Gi="children"}=oi,$i=S.useMemo(()=>ts.some(ao=>ao==null?void 0:ao[Gi])?"nest":fi||zi&&zi.expandedRowRender?"row":null,[ts]),Oi={body:S.useRef()},yo=S.useMemo(()=>typeof tn=="function"?tn:ao=>ao==null?void 0:ao[tn],[tn]),[Ni]=Us(ts,Gi,yo),ua={},$a=function(ao,Wo){let Zl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ds,Ll,Vl;const Js=Object.assign(Object.assign({},ua),ao);Zl&&((ds=ua.resetPagination)===null||ds===void 0||ds.call(ua),!((Ll=Js.pagination)===null||Ll===void 0)&&Ll.current&&(Js.pagination.current=1),_r&&_r.onChange&&_r.onChange(1,(Vl=Js.pagination)===null||Vl===void 0?void 0:Vl.pageSize)),Jn&&Jn.scrollToFirstRowOnChange!==!1&&Oi.body.current&&(0,Ma.Z)(0,{getContainer:()=>Oi.body.current}),Fn==null||Fn(Js.pagination,Js.filters,Js.sorter,{currentDataSource:mu(Yo(ts,Js.sorterStates,Gi),Js.filterStates),action:Wo})},Va=(ao,Wo)=>{$a({sorter:ao,sorterStates:Wo},"sort",!1)},[Fl,nl,Gc,Rs]=Oo({prefixCls:ns,mergedColumns:Wi,onSorterChange:Va,sortDirections:mi||["ascend","descend"],tableLocale:go,showSorterTooltip:Pn}),Tc=S.useMemo(()=>Yo(ts,nl,Gi),[ts,nl]);ua.sorter=Rs(),ua.sorterStates=nl;const Hn=(ao,Wo)=>{$a({filters:ao,filterStates:Wo},"filter",!0)},[uc,MA,co]=qc({prefixCls:ns,locale:go,dropdownPrefixCls:wc,mergedColumns:Wi,onFilterChange:Hn,getPopupContainer:Bn||ga}),hn=mu(Tc,MA);ua.filters=co,ua.filterStates=MA;const Mo=S.useMemo(()=>{const ao={};return Object.keys(co).forEach(Wo=>{co[Wo]!==null&&(ao[Wo]=co[Wo])}),Object.assign(Object.assign({},Gc),{filters:ao})},[Gc,co]),[ul]=bc(Mo),As=(ao,Wo)=>{$a({pagination:Object.assign(Object.assign({},ua.pagination),{current:ao,pageSize:Wo})},"paginate")},[ia,Bl]=gu(hn.length,As,_r);ua.pagination=_r===!1?{}:ro(ia,_r),ua.resetPagination=Bl;const $l=S.useMemo(()=>{if(_r===!1||!ia.pageSize)return hn;const{current:ao=1,total:Wo,pageSize:Zl=Hl}=ia;return hn.length<Wo?hn.length>Zl?hn.slice((ao-1)*Zl,ao*Zl):hn:hn.slice((ao-1)*Zl,ao*Zl)},[!!_r,hn,ia&&ia.current,ia&&ia.pageSize,ia&&ia.total]),[Uc,xc]=Xs({prefixCls:ns,data:hn,pageData:$l,getRowKey:yo,getRecordByKey:Ni,expandType:$i,childrenColumnName:Gi,locale:go,getPopupContainer:Bn||ga},pr),Sl=(ao,Wo,Zl)=>{let ds;return typeof Vr=="function"?ds=D()(Vr(ao,Wo,Zl)):ds=D()(Vr),D()({[`${ns}-row-selected`]:xc.has(yo(ao,Wo))},ds)};oi.__PARENT_RENDER_ICON__=oi.expandIcon,oi.expandIcon=oi.expandIcon||Ui||Ts(go),$i==="nest"&&oi.expandIconColumnIndex===void 0?oi.expandIconColumnIndex=pr?1:0:oi.expandIconColumnIndex>0&&pr&&(oi.expandIconColumnIndex-=1),typeof oi.indentSize!="number"&&(oi.indentSize=typeof wa=="number"?wa:15);const Al=S.useCallback(ao=>ul(Uc(uc(Fl(ao)))),[Fl,uc,Uc]);let oA,Ml;if(_r!==!1&&(ia!=null&&ia.total)){let ao;ia.size?ao=ia.size:ao=ol==="small"||ol==="middle"?"small":void 0;const Wo=Ll=>S.createElement(To.Z,Object.assign({},ia,{className:D()(`${ns}-pagination ${ns}-pagination-${Ll}`,ia.className),size:ao})),Zl=es==="rtl"?"left":"right",{position:ds}=ia;if(ds!==null&&Array.isArray(ds)){const Ll=ds.find(Cu=>Cu.includes("top")),Vl=ds.find(Cu=>Cu.includes("bottom")),Js=ds.every(Cu=>`${Cu}`=="none");!Ll&&!Vl&&!Js&&(Ml=Wo(Zl)),Ll&&(oA=Wo(Ll.toLowerCase().replace("top",""))),Vl&&(Ml=Wo(Vl.toLowerCase().replace("bottom","")))}else Ml=Wo(Zl)}let Qs;typeof $n=="boolean"?Qs={spinning:$n}:typeof $n=="object"&&(Qs=Object.assign({spinning:!0},$n));const[El,il]=YA(ns),[,ks]=(0,mo.Z)(),Cc=D()(`${ns}-wrapper`,lo==null?void 0:lo.className,{[`${ns}-wrapper-rtl`]:es==="rtl"},lt,Bt,il),wu=Object.assign(Object.assign({},lo==null?void 0:lo.style),yt),Tu=ii&&ii.emptyText||(ys==null?void 0:ys("Table"))||S.createElement(Za.Z,{componentName:"Table"}),xu=ai?XA:jl,hf={},Vf=S.useMemo(()=>{const{fontSize:ao,lineHeight:Wo,padding:Zl,paddingXS:ds,paddingSM:Ll}=ks,Vl=Math.floor(ao*Wo);switch(ol){case"large":return Zl*2+Vl;case"small":return ds*2+Vl;default:return Ll*2+Vl}},[ks,ol]);return ai&&(hf.listItemHeight=Vf),El(S.createElement("div",{ref:Ce,className:Cc,style:wu},S.createElement(Ps.Z,Object.assign({spinning:!1},Qs),oA,S.createElement(xu,Object.assign({},hf,Ia,{columns:Wi,direction:es,expandable:oi,prefixCls:ns,className:D()({[`${ns}-middle`]:ol==="middle",[`${ns}-small`]:ol==="small",[`${ns}-bordered`]:zt,[`${ns}-empty`]:ts.length===0}),data:$l,rowKey:yo,rowClassName:Sl,emptyText:Tu,internalHooks:Ae,internalRefs:Oi,transformColumns:Al})),Ml)))};var w0=S.forwardRef(qA);const x0=(fe,Ce)=>{const Je=S.useRef(0);return Je.current+=1,S.createElement(w0,Object.assign({},fe,{ref:Ce,_renderTimes:Je.current}))},zl=S.forwardRef(x0);zl.SELECTION_COLUMN=bo,zl.EXPAND_COLUMN=me,zl.SELECTION_ALL=$o,zl.SELECTION_INVERT=Zo,zl.SELECTION_NONE=Do,zl.Column=Wn,zl.ColumnGroup=Di,zl.Summary=H;var ed=zl,C0=ed},99313:function(un,Ut,x){"use strict";x.d(Ut,{default:function(){return vi}});var me=x(99267),Ae=x(18785),P=x(62772),Oe=x(92310),ne=x.n(Oe),W=x(54476),S=x(20068),v=x(33885),M=x(42978),h=x(76190),$=x(75931),_=x(59301),F=x(49658),N=x(18929),R=x(77900),L=(0,_.createContext)(null),X=_.forwardRef(function($e,_e){var Le=$e.prefixCls,Ie=$e.className,Dt=$e.style,Mt=$e.id,Sr=$e.active,nr=$e.tabKey,Dr=$e.children;return _.createElement("div",{id:Mt&&"".concat(Mt,"-panel-").concat(nr),role:"tabpanel",tabIndex:Sr?0:-1,"aria-labelledby":Mt&&"".concat(Mt,"-tab-").concat(nr),"aria-hidden":!Sr,style:Dt,className:ne()(Le,Sr&&"".concat(Le,"-active"),Ie),ref:_e},Dr)}),Q=X,oe=["key","forceRender","style","className"];function ee($e){var _e=$e.id,Le=$e.activeKey,Ie=$e.animated,Dt=$e.tabPosition,Mt=$e.destroyInactiveTabPane,Sr=_.useContext(L),nr=Sr.prefixCls,Dr=Sr.tabs,Hr=Ie.tabPane,an="".concat(nr,"-tabpane");return _.createElement("div",{className:ne()("".concat(nr,"-content-holder"))},_.createElement("div",{className:ne()("".concat(nr,"-content"),"".concat(nr,"-content-").concat(Dt),(0,S.Z)({},"".concat(nr,"-content-animated"),Hr))},Dr.map(function(jr){var Rr=jr.key,en=jr.forceRender,yn=jr.style,on=jr.className,Dn=(0,$.Z)(jr,oe),Qn=Rr===Le;return _.createElement(R.default,(0,W.Z)({key:Rr,visible:Qn,forceRender:en,removeOnLeave:!!Mt,leavedClassName:"".concat(an,"-hidden")},Ie.tabPaneMotion),function(Ai,On){var Gn=Ai.style,Vt=Ai.className;return _.createElement(Q,(0,W.Z)({},Dn,{prefixCls:an,id:_e,tabKey:Rr,animated:Hr,active:Qn,style:(0,v.Z)((0,v.Z)({},yn),Gn),className:ne()(on,Vt),ref:On}))})})))}var re=x(94480),G=x(29301),K=x(6089),le=x(8654),be={width:0,height:0,left:0,top:0};function Ne($e,_e,Le){return(0,_.useMemo)(function(){for(var Ie,Dt=new Map,Mt=_e.get((Ie=$e[0])===null||Ie===void 0?void 0:Ie.key)||be,Sr=Mt.left+Mt.width,nr=0;nr<$e.length;nr+=1){var Dr=$e[nr].key,Hr=_e.get(Dr);if(!Hr){var an;Hr=_e.get((an=$e[nr-1])===null||an===void 0?void 0:an.key)||be}var jr=Dt.get(Dr)||(0,v.Z)({},Hr);jr.right=Sr-jr.left-jr.width,Dt.set(Dr,jr)}return Dt},[$e.map(function(Ie){return Ie.key}).join("_"),_e,Le])}function ye($e,_e){var Le=_.useRef($e),Ie=_.useState({}),Dt=(0,M.Z)(Ie,2),Mt=Dt[1];function Sr(nr){var Dr=typeof nr=="function"?nr(Le.current):nr;Dr!==Le.current&&_e(Dr,Le.current),Le.current=Dr,Mt({})}return[Le.current,Sr]}var Ue=.1,q=.01,de=20,D=Math.pow(.995,de);function qe($e,_e){var Le=(0,_.useState)(),Ie=(0,M.Z)(Le,2),Dt=Ie[0],Mt=Ie[1],Sr=(0,_.useState)(0),nr=(0,M.Z)(Sr,2),Dr=nr[0],Hr=nr[1],an=(0,_.useState)(0),jr=(0,M.Z)(an,2),Rr=jr[0],en=jr[1],yn=(0,_.useState)(),on=(0,M.Z)(yn,2),Dn=on[0],Qn=on[1],Ai=(0,_.useRef)();function On(Rt){var Jt=Rt.touches[0],ar=Jt.screenX,Or=Jt.screenY;Mt({x:ar,y:Or}),window.clearInterval(Ai.current)}function Gn(Rt){if(Dt){Rt.preventDefault();var Jt=Rt.touches[0],ar=Jt.screenX,Or=Jt.screenY;Mt({x:ar,y:Or});var bn=ar-Dt.x,Cn=Or-Dt.y;_e(bn,Cn);var li=Date.now();Hr(li),en(li-Dr),Qn({x:bn,y:Cn})}}function Vt(){if(Dt&&(Mt(null),Qn(null),Dn)){var Rt=Dn.x/Rr,Jt=Dn.y/Rr,ar=Math.abs(Rt),Or=Math.abs(Jt);if(Math.max(ar,Or)<Ue)return;var bn=Rt,Cn=Jt;Ai.current=window.setInterval(function(){if(Math.abs(bn)<q&&Math.abs(Cn)<q){window.clearInterval(Ai.current);return}bn*=D,Cn*=D,_e(bn*de,Cn*de)},de)}}var Xt=(0,_.useRef)();function er(Rt){var Jt=Rt.deltaX,ar=Rt.deltaY,Or=0,bn=Math.abs(Jt),Cn=Math.abs(ar);bn===Cn?Or=Xt.current==="x"?Jt:ar:bn>Cn?(Or=Jt,Xt.current="x"):(Or=ar,Xt.current="y"),_e(-Or,-Or)&&Rt.preventDefault()}var fr=(0,_.useRef)(null);fr.current={onTouchStart:On,onTouchMove:Gn,onTouchEnd:Vt,onWheel:er},_.useEffect(function(){function Rt(bn){fr.current.onTouchStart(bn)}function Jt(bn){fr.current.onTouchMove(bn)}function ar(bn){fr.current.onTouchEnd(bn)}function Or(bn){fr.current.onWheel(bn)}return document.addEventListener("touchmove",Jt,{passive:!1}),document.addEventListener("touchend",ar,{passive:!1}),$e.current.addEventListener("touchstart",Rt,{passive:!1}),$e.current.addEventListener("wheel",Or),function(){document.removeEventListener("touchmove",Jt),document.removeEventListener("touchend",ar)}},[])}var Me=x(34280);function xe($e){var _e=(0,_.useState)(0),Le=(0,M.Z)(_e,2),Ie=Le[0],Dt=Le[1],Mt=(0,_.useRef)(0),Sr=(0,_.useRef)();return Sr.current=$e,(0,Me.o)(function(){var nr;(nr=Sr.current)===null||nr===void 0||nr.call(Sr)},[Ie]),function(){Mt.current===Ie&&(Mt.current+=1,Dt(Mt.current))}}function Te($e){var _e=(0,_.useRef)([]),Le=(0,_.useState)({}),Ie=(0,M.Z)(Le,2),Dt=Ie[1],Mt=(0,_.useRef)(typeof $e=="function"?$e():$e),Sr=xe(function(){var Dr=Mt.current;_e.current.forEach(function(Hr){Dr=Hr(Dr)}),_e.current=[],Mt.current=Dr,Dt({})});function nr(Dr){_e.current.push(Dr),Sr()}return[Mt.current,nr]}var ve={width:0,height:0,left:0,top:0,right:0};function De($e,_e,Le,Ie,Dt,Mt,Sr){var nr=Sr.tabs,Dr=Sr.tabPosition,Hr=Sr.rtl,an,jr,Rr;return["top","bottom"].includes(Dr)?(an="width",jr=Hr?"right":"left",Rr=Math.abs(Le)):(an="height",jr="top",Rr=-Le),(0,_.useMemo)(function(){if(!nr.length)return[0,0];for(var en=nr.length,yn=en,on=0;on<en;on+=1){var Dn=$e.get(nr[on].key)||ve;if(Dn[jr]+Dn[an]>Rr+_e){yn=on-1;break}}for(var Qn=0,Ai=en-1;Ai>=0;Ai-=1){var On=$e.get(nr[Ai].key)||ve;if(On[jr]<Rr){Qn=Ai+1;break}}return Qn>=yn?[0,0]:[Qn,yn]},[$e,_e,Ie,Dt,Mt,Rr,Dr,nr.map(function(en){return en.key}).join("_"),Hr])}function pe($e){var _e;return $e instanceof Map?(_e={},$e.forEach(function(Le,Ie){_e[Ie]=Le})):_e=$e,JSON.stringify(_e)}var Se="TABS_DQ";function Xe($e){return String($e).replace(/"/g,Se)}function et($e,_e,Le,Ie){return!(!Le||Ie||$e===!1||$e===void 0&&(_e===!1||_e===null))}function je($e,_e){var Le=$e.prefixCls,Ie=$e.editable,Dt=$e.locale,Mt=$e.style;return!Ie||Ie.showAdd===!1?null:_.createElement("button",{ref:_e,type:"button",className:"".concat(Le,"-nav-add"),style:Mt,"aria-label":(Dt==null?void 0:Dt.addAriaLabel)||"Add tab",onClick:function(nr){Ie.onEdit("add",{event:nr})}},Ie.addIcon||"+")}var Ye=_.forwardRef(je),_t=_.forwardRef(function($e,_e){var Le=$e.position,Ie=$e.prefixCls,Dt=$e.extra;if(!Dt)return null;var Mt,Sr={};return(0,h.Z)(Dt)==="object"&&!_.isValidElement(Dt)?Sr=Dt:Sr.right=Dt,Le==="right"&&(Mt=Sr.right),Le==="left"&&(Mt=Sr.left),Mt?_.createElement("div",{className:"".concat(Ie,"-extra-content"),ref:_e},Mt):null}),kt=_t,Ot=x(31561),sr=x(15285),rr=x(10228);function br($e,_e){var Le=$e.prefixCls,Ie=$e.id,Dt=$e.tabs,Mt=$e.locale,Sr=$e.mobile,nr=$e.moreIcon,Dr=nr===void 0?"More":nr,Hr=$e.moreTransitionName,an=$e.style,jr=$e.className,Rr=$e.editable,en=$e.tabBarGutter,yn=$e.rtl,on=$e.removeAriaLabel,Dn=$e.onTabClick,Qn=$e.getPopupContainer,Ai=$e.popupClassName,On=(0,_.useState)(!1),Gn=(0,M.Z)(On,2),Vt=Gn[0],Xt=Gn[1],er=(0,_.useState)(null),fr=(0,M.Z)(er,2),Rt=fr[0],Jt=fr[1],ar="".concat(Ie,"-more-popup"),Or="".concat(Le,"-dropdown"),bn=Rt!==null?"".concat(ar,"-").concat(Rt):null,Cn=Mt==null?void 0:Mt.dropdownAriaLabel;function li(wi,ci){wi.preventDefault(),wi.stopPropagation(),Rr.onEdit("remove",{key:ci,event:wi})}var ri=_.createElement(sr.ZP,{onClick:function(ci){var xi=ci.key,Xi=ci.domEvent;Dn(xi,Xi),Xt(!1)},prefixCls:"".concat(Or,"-menu"),id:ar,tabIndex:-1,role:"listbox","aria-activedescendant":bn,selectedKeys:[Rt],"aria-label":Cn!==void 0?Cn:"expanded dropdown"},Dt.map(function(wi){var ci=wi.closable,xi=wi.disabled,Xi=wi.closeIcon,ti=wi.key,Ti=wi.label,za=et(ci,Xi,Rr,xi);return _.createElement(sr.sN,{key:ti,id:"".concat(ar,"-").concat(ti),role:"option","aria-controls":Ie&&"".concat(Ie,"-panel-").concat(ti),disabled:xi},_.createElement("span",null,Ti),za&&_.createElement("button",{type:"button","aria-label":on||"remove",tabIndex:0,className:"".concat(Or,"-menu-item-remove"),onClick:function(fn){fn.stopPropagation(),li(fn,ti)}},Xi||Rr.removeIcon||"\xD7"))}));function _i(wi){for(var ci=Dt.filter(function(za){return!za.disabled}),xi=ci.findIndex(function(za){return za.key===Rt})||0,Xi=ci.length,ti=0;ti<Xi;ti+=1){xi=(xi+wi+Xi)%Xi;var Ti=ci[xi];if(!Ti.disabled){Jt(Ti.key);return}}}function Yn(wi){var ci=wi.which;if(!Vt){[rr.Z.DOWN,rr.Z.SPACE,rr.Z.ENTER].includes(ci)&&(Xt(!0),wi.preventDefault());return}switch(ci){case rr.Z.UP:_i(-1),wi.preventDefault();break;case rr.Z.DOWN:_i(1),wi.preventDefault();break;case rr.Z.ESC:Xt(!1);break;case rr.Z.SPACE:case rr.Z.ENTER:Rt!==null&&Dn(Rt,wi);break}}(0,_.useEffect)(function(){var wi=document.getElementById(bn);wi&&wi.scrollIntoView&&wi.scrollIntoView(!1)},[Rt]),(0,_.useEffect)(function(){Vt||Jt(null)},[Vt]);var zn=(0,S.Z)({},yn?"marginRight":"marginLeft",en);Dt.length||(zn.visibility="hidden",zn.order=1);var yi=ne()((0,S.Z)({},"".concat(Or,"-rtl"),yn)),bi=Sr?null:_.createElement(Ot.Z,{prefixCls:Or,overlay:ri,trigger:["hover"],visible:Dt.length?Vt:!1,transitionName:Hr,onVisibleChange:Xt,overlayClassName:ne()(yi,Ai),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Qn},_.createElement("button",{type:"button",className:"".concat(Le,"-nav-more"),style:zn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":ar,id:"".concat(Ie,"-more"),"aria-expanded":Vt,onKeyDown:Yn},Dr));return _.createElement("div",{className:ne()("".concat(Le,"-nav-operations"),jr),style:an,ref:_e},bi,_.createElement(Ye,{prefixCls:Le,locale:Mt,editable:Rr}))}var lr=_.memo(_.forwardRef(br),function($e,_e){return _e.tabMoving});function V($e){var _e,Le=$e.prefixCls,Ie=$e.id,Dt=$e.active,Mt=$e.tab,Sr=Mt.key,nr=Mt.label,Dr=Mt.disabled,Hr=Mt.closeIcon,an=$e.closable,jr=$e.renderWrapper,Rr=$e.removeAriaLabel,en=$e.editable,yn=$e.onClick,on=$e.onFocus,Dn=$e.style,Qn="".concat(Le,"-tab"),Ai=et(an,Hr,en,Dr);function On(Xt){Dr||yn(Xt)}function Gn(Xt){Xt.preventDefault(),Xt.stopPropagation(),en.onEdit("remove",{key:Sr,event:Xt})}var Vt=_.createElement("div",{key:Sr,"data-node-key":Xe(Sr),className:ne()(Qn,(_e={},(0,S.Z)(_e,"".concat(Qn,"-with-remove"),Ai),(0,S.Z)(_e,"".concat(Qn,"-active"),Dt),(0,S.Z)(_e,"".concat(Qn,"-disabled"),Dr),_e)),style:Dn,onClick:On},_.createElement("div",{role:"tab","aria-selected":Dt,id:Ie&&"".concat(Ie,"-tab-").concat(Sr),className:"".concat(Qn,"-btn"),"aria-controls":Ie&&"".concat(Ie,"-panel-").concat(Sr),"aria-disabled":Dr,tabIndex:Dr?null:0,onClick:function(er){er.stopPropagation(),On(er)},onKeyDown:function(er){[rr.Z.SPACE,rr.Z.ENTER].includes(er.which)&&(er.preventDefault(),On(er))},onFocus:on},nr),Ai&&_.createElement("button",{type:"button","aria-label":Rr||"remove",tabIndex:0,className:"".concat(Qn,"-remove"),onClick:function(er){er.stopPropagation(),Gn(er)}},Hr||en.removeIcon||"\xD7"));return jr?jr(Vt):Vt}var dt=V,I=x(16089),m=function(_e){var Le=_e.activeTabOffset,Ie=_e.horizontal,Dt=_e.rtl,Mt=_e.indicatorSize,Sr=(0,_.useState)(),nr=(0,M.Z)(Sr,2),Dr=nr[0],Hr=nr[1],an=(0,_.useRef)(),jr=function(yn){return typeof Mt=="function"?Mt(yn):typeof Mt=="number"?Mt:yn};function Rr(){I.Z.cancel(an.current)}return(0,_.useEffect)(function(){var en={};return Le&&(Ie?(Dt?(en.right=Le.right+Le.width/2,en.transform="translateX(50%)"):(en.left=Le.left+Le.width/2,en.transform="translateX(-50%)"),en.width=jr(Le.width)):(en.top=Le.top+Le.height/2,en.transform="translateY(-50%)",en.height=jr(Le.height))),Rr(),an.current=(0,I.Z)(function(){Hr(en)}),Rr},[Le,Ie,Dt,Mt]),{style:Dr}},f=m,C=function(_e){var Le=_e.current||{},Ie=Le.offsetWidth,Dt=Ie===void 0?0:Ie,Mt=Le.offsetHeight,Sr=Mt===void 0?0:Mt;return[Dt,Sr]},Y=function(_e,Le){return _e[Le?0:1]};function Be($e,_e){var Le,Ie=_.useContext(L),Dt=Ie.prefixCls,Mt=Ie.tabs,Sr=$e.className,nr=$e.style,Dr=$e.id,Hr=$e.animated,an=$e.activeKey,jr=$e.rtl,Rr=$e.extra,en=$e.editable,yn=$e.locale,on=$e.tabPosition,Dn=$e.tabBarGutter,Qn=$e.children,Ai=$e.onTabClick,On=$e.onTabScroll,Gn=$e.indicatorSize,Vt=(0,_.useRef)(),Xt=(0,_.useRef)(),er=(0,_.useRef)(),fr=(0,_.useRef)(),Rt=(0,_.useRef)(),Jt=(0,_.useRef)(),ar=(0,_.useRef)(),Or=on==="top"||on==="bottom",bn=ye(0,function(to,Qa){Or&&On&&On({direction:to>Qa?"left":"right"})}),Cn=(0,M.Z)(bn,2),li=Cn[0],ri=Cn[1],_i=ye(0,function(to,Qa){!Or&&On&&On({direction:to>Qa?"top":"bottom"})}),Yn=(0,M.Z)(_i,2),zn=Yn[0],yi=Yn[1],bi=(0,_.useState)([0,0]),wi=(0,M.Z)(bi,2),ci=wi[0],xi=wi[1],Xi=(0,_.useState)([0,0]),ti=(0,M.Z)(Xi,2),Ti=ti[0],za=ti[1],si=(0,_.useState)([0,0]),fn=(0,M.Z)(si,2),sn=fn[0],Xn=fn[1],Kn=(0,_.useState)([0,0]),di=(0,M.Z)(Kn,2),qi=di[0],Fi=di[1],Ra=Te(new Map),Aa=(0,M.Z)(Ra,2),Co=Aa[0],Wn=Aa[1],In=Ne(Mt,Co,Ti[0]),Di=Y(ci,Or),Ji=Y(Ti,Or),Ma=Y(sn,Or),Ms=Y(qi,Or),Za=Di<Ji+Ma,fa=Za?Di-Ms:Di-Ma,_o="".concat(Dt,"-nav-operations-hidden"),Bo=0,To=0;Or&&jr?(Bo=0,To=Math.max(0,Ji-fa)):(Bo=Math.min(0,fa-Ji),To=0);function Ps(to){return to<Bo?Bo:to>To?To:to}var mo=(0,_.useRef)(),xs=(0,_.useState)(),Ts=(0,M.Z)(xs,2),$s=Ts[0],Uo=Ts[1];function Ro(){Uo(Date.now())}function Cs(){window.clearTimeout(mo.current)}qe(fr,function(to,Qa){function ss(ls,Ls){ls(function(Jo){var Io=Ps(Jo+Ls);return Io})}return Za?(Or?ss(ri,to):ss(yi,Qa),Cs(),Ro(),!0):!1}),(0,_.useEffect)(function(){return Cs(),$s&&(mo.current=window.setTimeout(function(){Uo(0)},100)),Cs},[$s]);var el=De(In,fa,Or?li:zn,Ji,Ma,Ms,(0,v.Z)((0,v.Z)({},$e),{},{tabs:Mt})),vl=(0,M.Z)(el,2),tc=vl[0],rc=vl[1],Rl=(0,K.Z)(function(){var to=arguments.length>0&&arguments[0]!==void 0?arguments[0]:an,Qa=In.get(to)||{width:0,height:0,left:0,right:0,top:0};if(Or){var ss=li;jr?Qa.right<li?ss=Qa.right:Qa.right+Qa.width>li+fa&&(ss=Qa.right+Qa.width-fa):Qa.left<-li?ss=-Qa.left:Qa.left+Qa.width>-li+fa&&(ss=-(Qa.left+Qa.width-fa)),yi(0),ri(Ps(ss))}else{var ls=zn;Qa.top<-zn?ls=-Qa.top:Qa.top+Qa.height>-zn+fa&&(ls=-(Qa.top+Qa.height-fa)),ri(0),yi(Ps(ls))}}),Zs={};on==="top"||on==="bottom"?Zs[jr?"marginRight":"marginLeft"]=Dn:Zs.marginTop=Dn;var kc=Mt.map(function(to,Qa){var ss=to.key;return _.createElement(dt,{id:Dr,prefixCls:Dt,key:ss,tab:to,style:Qa===0?void 0:Zs,closable:to.closable,editable:en,active:ss===an,renderWrapper:Qn,removeAriaLabel:yn==null?void 0:yn.removeAriaLabel,onClick:function(Ls){Ai(ss,Ls)},onFocus:function(){Rl(ss),Ro(),fr.current&&(jr||(fr.current.scrollLeft=0),fr.current.scrollTop=0)}})}),Ql=function(){return Wn(function(){var Qa=new Map;return Mt.forEach(function(ss){var ls,Ls=ss.key,Jo=(ls=Rt.current)===null||ls===void 0?void 0:ls.querySelector('[data-node-key="'.concat(Xe(Ls),'"]'));Jo&&Qa.set(Ls,{width:Jo.offsetWidth,height:Jo.offsetHeight,left:Jo.offsetLeft,top:Jo.offsetTop})}),Qa})};(0,_.useEffect)(function(){Ql()},[Mt.map(function(to){return to.key}).join("_")]);var Kl=xe(function(){var to=C(Vt),Qa=C(Xt),ss=C(er);xi([to[0]-Qa[0]-ss[0],to[1]-Qa[1]-ss[1]]);var ls=C(ar);Xn(ls);var Ls=C(Jt);Fi(Ls);var Jo=C(Rt);za([Jo[0]-ls[0],Jo[1]-ls[1]]),Ql()}),Vs=Mt.slice(0,tc),os=Mt.slice(rc+1),ni=[].concat((0,re.Z)(Vs),(0,re.Z)(os)),ca=In.get(an),ta=f({activeTabOffset:ca,horizontal:Or,rtl:jr,indicatorSize:Gn}),oa=ta.style;(0,_.useEffect)(function(){Rl()},[an,Bo,To,pe(ca),pe(In),Or]),(0,_.useEffect)(function(){Kl()},[jr]);var Na=!!ni.length,so="".concat(Dt,"-nav-wrap"),Ws,Bs,Ss,vs;return Or?jr?(Bs=li>0,Ws=li!==To):(Ws=li<0,Bs=li!==Bo):(Ss=zn<0,vs=zn!==Bo),_.createElement(G.Z,{onResize:Kl},_.createElement("div",{ref:(0,le.x1)(_e,Vt),role:"tablist",className:ne()("".concat(Dt,"-nav"),Sr),style:nr,onKeyDown:function(){Ro()}},_.createElement(kt,{ref:Xt,position:"left",extra:Rr,prefixCls:Dt}),_.createElement(G.Z,{onResize:Kl},_.createElement("div",{className:ne()(so,(Le={},(0,S.Z)(Le,"".concat(so,"-ping-left"),Ws),(0,S.Z)(Le,"".concat(so,"-ping-right"),Bs),(0,S.Z)(Le,"".concat(so,"-ping-top"),Ss),(0,S.Z)(Le,"".concat(so,"-ping-bottom"),vs),Le)),ref:fr},_.createElement(G.Z,{onResize:Kl},_.createElement("div",{ref:Rt,className:"".concat(Dt,"-nav-list"),style:{transform:"translate(".concat(li,"px, ").concat(zn,"px)"),transition:$s?"none":void 0}},kc,_.createElement(Ye,{ref:ar,prefixCls:Dt,locale:yn,editable:en,style:(0,v.Z)((0,v.Z)({},kc.length===0?void 0:Zs),{},{visibility:Na?"hidden":null})}),_.createElement("div",{className:ne()("".concat(Dt,"-ink-bar"),(0,S.Z)({},"".concat(Dt,"-ink-bar-animated"),Hr.inkBar)),style:oa}))))),_.createElement(lr,(0,W.Z)({},$e,{removeAriaLabel:yn==null?void 0:yn.removeAriaLabel,ref:Jt,prefixCls:Dt,tabs:ni,className:!Na&&_o,tabMoving:!!$s})),_.createElement(kt,{ref:er,position:"right",extra:Rr,prefixCls:Dt})))}var H=_.forwardRef(Be),ie=["renderTabBar"],Qe=["label","key"];function we($e){var _e=$e.renderTabBar,Le=(0,$.Z)($e,ie),Ie=_.useContext(L),Dt=Ie.tabs;if(_e){var Mt=(0,v.Z)((0,v.Z)({},Le),{},{panes:Dt.map(function(Sr){var nr=Sr.label,Dr=Sr.key,Hr=(0,$.Z)(Sr,Qe);return _.createElement(Q,(0,W.Z)({tab:nr,key:Dr,tabKey:Dr},Hr))})});return _e(Mt,H)}return _.createElement(H,Le)}var ce=x(48736);function ze(){var $e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},_e;return $e===!1?_e={inkBar:!1,tabPane:!1}:$e===!0?_e={inkBar:!0,tabPane:!1}:_e=(0,v.Z)({inkBar:!0},(0,h.Z)($e)==="object"?$e:{}),_e.tabPaneMotion&&_e.tabPane===void 0&&(_e.tabPane=!0),!_e.tabPaneMotion&&_e.tabPane&&(_e.tabPane=!1),_e}var vt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],he=0;function at($e,_e){var Le,Ie=$e.id,Dt=$e.prefixCls,Mt=Dt===void 0?"rc-tabs":Dt,Sr=$e.className,nr=$e.items,Dr=$e.direction,Hr=$e.activeKey,an=$e.defaultActiveKey,jr=$e.editable,Rr=$e.animated,en=$e.tabPosition,yn=en===void 0?"top":en,on=$e.tabBarGutter,Dn=$e.tabBarStyle,Qn=$e.tabBarExtraContent,Ai=$e.locale,On=$e.moreIcon,Gn=$e.moreTransitionName,Vt=$e.destroyInactiveTabPane,Xt=$e.renderTabBar,er=$e.onChange,fr=$e.onTabClick,Rt=$e.onTabScroll,Jt=$e.getPopupContainer,ar=$e.popupClassName,Or=$e.indicatorSize,bn=(0,$.Z)($e,vt),Cn=_.useMemo(function(){return(nr||[]).filter(function(Fi){return Fi&&(0,h.Z)(Fi)==="object"&&"key"in Fi})},[nr]),li=Dr==="rtl",ri=ze(Rr),_i=(0,_.useState)(!1),Yn=(0,M.Z)(_i,2),zn=Yn[0],yi=Yn[1];(0,_.useEffect)(function(){yi((0,F.Z)())},[]);var bi=(0,N.Z)(function(){var Fi;return(Fi=Cn[0])===null||Fi===void 0?void 0:Fi.key},{value:Hr,defaultValue:an}),wi=(0,M.Z)(bi,2),ci=wi[0],xi=wi[1],Xi=(0,_.useState)(function(){return Cn.findIndex(function(Fi){return Fi.key===ci})}),ti=(0,M.Z)(Xi,2),Ti=ti[0],za=ti[1];(0,_.useEffect)(function(){var Fi=Cn.findIndex(function(Aa){return Aa.key===ci});if(Fi===-1){var Ra;Fi=Math.max(0,Math.min(Ti,Cn.length-1)),xi((Ra=Cn[Fi])===null||Ra===void 0?void 0:Ra.key)}za(Fi)},[Cn.map(function(Fi){return Fi.key}).join("_"),ci,Ti]);var si=(0,N.Z)(null,{value:Ie}),fn=(0,M.Z)(si,2),sn=fn[0],Xn=fn[1];(0,_.useEffect)(function(){Ie||(Xn("rc-tabs-".concat(he)),he+=1)},[]);function Kn(Fi,Ra){fr==null||fr(Fi,Ra);var Aa=Fi!==ci;xi(Fi),Aa&&(er==null||er(Fi))}var di={id:sn,activeKey:ci,animated:ri,tabPosition:yn,rtl:li,mobile:zn},qi=(0,v.Z)((0,v.Z)({},di),{},{editable:jr,locale:Ai,moreIcon:On,moreTransitionName:Gn,tabBarGutter:on,onTabClick:Kn,onTabScroll:Rt,extra:Qn,style:Dn,panes:null,getPopupContainer:Jt,popupClassName:ar,indicatorSize:Or});return _.createElement(L.Provider,{value:{tabs:Cn,prefixCls:Mt}},_.createElement("div",(0,W.Z)({ref:_e,id:Ie,className:ne()(Mt,"".concat(Mt,"-").concat(yn),(Le={},(0,S.Z)(Le,"".concat(Mt,"-mobile"),zn),(0,S.Z)(Le,"".concat(Mt,"-editable"),jr),(0,S.Z)(Le,"".concat(Mt,"-rtl"),li),Le),Sr)},bn),_.createElement(we,(0,W.Z)({},qi,{renderTabBar:Xt})),_.createElement(ee,(0,W.Z)({destroyInactiveTabPane:Vt},di,{animated:ri}))))}var rt=_.forwardRef(at),ke=rt,Fe=ke,ct=x(36355),Tt=x(19716),Yt=()=>null,Fr=x(62892);const Lr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Nr($e){let _e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},Le;return _e===!1?Le={inkBar:!1,tabPane:!1}:_e===!0?Le={inkBar:!0,tabPane:!0}:Le=Object.assign({inkBar:!0},typeof _e=="object"?_e:{}),Le.tabPane&&(Le.tabPaneMotion=Object.assign(Object.assign({},Lr),{motionName:(0,Fr.m)($e,"switch")})),Le}var kr=x(11592),yr=function($e,_e){var Le={};for(var Ie in $e)Object.prototype.hasOwnProperty.call($e,Ie)&&_e.indexOf(Ie)<0&&(Le[Ie]=$e[Ie]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Ie=Object.getOwnPropertySymbols($e);Dt<Ie.length;Dt++)_e.indexOf(Ie[Dt])<0&&Object.prototype.propertyIsEnumerable.call($e,Ie[Dt])&&(Le[Ie[Dt]]=$e[Ie[Dt]]);return Le};function dr($e){return $e.filter(_e=>_e)}function Qr($e,_e){if($e)return $e;const Le=(0,kr.Z)(_e).map(Ie=>{if(_.isValidElement(Ie)){const{key:Dt,props:Mt}=Ie,Sr=Mt||{},{tab:nr}=Sr,Dr=yr(Sr,["tab"]);return Object.assign(Object.assign({key:String(Dt)},Dr),{label:nr})}return null});return dr(Le)}var An=x(17313),Tn=x(83116),dn=x(37613),kn=x(13826),Pr=$e=>{const{componentCls:_e,motionDurationSlow:Le}=$e;return[{[_e]:{[`${_e}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${Le}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${Le}`}}}}},[(0,kn.oN)($e,"slide-up"),(0,kn.oN)($e,"slide-down")]]};const wn=$e=>{const{componentCls:_e,tabsCardPadding:Le,cardBg:Ie,cardGutter:Dt,colorBorderSecondary:Mt,itemSelectedColor:Sr}=$e;return{[`${_e}-card`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{margin:0,padding:Le,background:Ie,border:`${$e.lineWidth}px ${$e.lineType} ${Mt}`,transition:`all ${$e.motionDurationSlow} ${$e.motionEaseInOut}`},[`${_e}-tab-active`]:{color:Sr,background:$e.colorBgContainer},[`${_e}-ink-bar`]:{visibility:"hidden"}},[`&${_e}-top, &${_e}-bottom`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab + ${_e}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Dt}px`}}}},[`&${_e}-top`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{borderRadius:`${$e.borderRadiusLG}px ${$e.borderRadiusLG}px 0 0`},[`${_e}-tab-active`]:{borderBottomColor:$e.colorBgContainer}}},[`&${_e}-bottom`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{borderRadius:`0 0 ${$e.borderRadiusLG}px ${$e.borderRadiusLG}px`},[`${_e}-tab-active`]:{borderTopColor:$e.colorBgContainer}}},[`&${_e}-left, &${_e}-right`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab + ${_e}-tab`]:{marginTop:`${Dt}px`}}},[`&${_e}-left`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${$e.borderRadiusLG}px 0 0 ${$e.borderRadiusLG}px`}},[`${_e}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:$e.colorBgContainer}}}},[`&${_e}-right`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${$e.borderRadiusLG}px ${$e.borderRadiusLG}px 0`}},[`${_e}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:$e.colorBgContainer}}}}}}},Si=$e=>{const{componentCls:_e,itemHoverColor:Le,dropdownEdgeChildVerticalPadding:Ie}=$e;return{[`${_e}-dropdown`]:Object.assign(Object.assign({},(0,An.Wf)($e)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:$e.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${_e}-dropdown-menu`]:{maxHeight:$e.tabsDropdownHeight,margin:0,padding:`${Ie}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:$e.colorBgContainer,backgroundClip:"padding-box",borderRadius:$e.borderRadiusLG,outline:"none",boxShadow:$e.boxShadowSecondary,"&-item":Object.assign(Object.assign({},An.vS),{display:"flex",alignItems:"center",minWidth:$e.tabsDropdownWidth,margin:0,padding:`${$e.paddingXXS}px ${$e.paddingSM}px`,color:$e.colorText,fontWeight:"normal",fontSize:$e.fontSize,lineHeight:$e.lineHeight,cursor:"pointer",transition:`all ${$e.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:$e.marginSM},color:$e.colorTextDescription,fontSize:$e.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:Le}},"&:hover":{background:$e.controlItemBgHover},"&-disabled":{"&, &:hover":{color:$e.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},ui=$e=>{const{componentCls:_e,margin:Le,colorBorderSecondary:Ie,horizontalMargin:Dt,verticalItemPadding:Mt,verticalItemMargin:Sr}=$e;return{[`${_e}-top, ${_e}-bottom`]:{flexDirection:"column",[`> ${_e}-nav, > div > ${_e}-nav`]:{margin:Dt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${$e.lineWidth}px ${$e.lineType} ${Ie}`,content:"''"},[`${_e}-ink-bar`]:{height:$e.lineWidthBold,"&-animated":{transition:`width ${$e.motionDurationSlow}, left ${$e.motionDurationSlow},
right ${$e.motionDurationSlow}`}},[`${_e}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:$e.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:$e.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:$e.boxShadowTabsOverflowRight},[`&${_e}-nav-wrap-ping-left::before`]:{opacity:1},[`&${_e}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${_e}-top`]:{[`> ${_e}-nav,
> div > ${_e}-nav`]:{"&::before":{bottom:0},[`${_e}-ink-bar`]:{bottom:0}}},[`${_e}-bottom`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{order:1,marginTop:`${Le}px`,marginBottom:0,"&::before":{top:0},[`${_e}-ink-bar`]:{top:0}},[`> ${_e}-content-holder, > div > ${_e}-content-holder`]:{order:0}},[`${_e}-left, ${_e}-right`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{flexDirection:"column",minWidth:$e.controlHeight*1.25,[`${_e}-tab`]:{padding:Mt,textAlign:"center"},[`${_e}-tab + ${_e}-tab`]:{margin:Sr},[`${_e}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:$e.controlHeight},"&::before":{top:0,boxShadow:$e.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:$e.boxShadowTabsOverflowBottom},[`&${_e}-nav-wrap-ping-top::before`]:{opacity:1},[`&${_e}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${_e}-ink-bar`]:{width:$e.lineWidthBold,"&-animated":{transition:`height ${$e.motionDurationSlow}, top ${$e.motionDurationSlow}`}},[`${_e}-nav-list, ${_e}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${_e}-left`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${_e}-content-holder, > div > ${_e}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${$e.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${$e.lineWidth}px ${$e.lineType} ${$e.colorBorder}`},[`> ${_e}-content > ${_e}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:$e.paddingLG}}}},[`${_e}-right`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{order:1,[`${_e}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${_e}-content-holder, > div > ${_e}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-$e.lineWidth},borderRight:{_skip_check_:!0,value:`${$e.lineWidth}px ${$e.lineType} ${$e.colorBorder}`},[`> ${_e}-content > ${_e}-tabpane`]:{paddingRight:{_skip_check_:!0,value:$e.paddingLG}}}}}},Zi=$e=>{const{componentCls:_e,cardPaddingSM:Le,cardPaddingLG:Ie,horizontalItemPaddingSM:Dt,horizontalItemPaddingLG:Mt}=$e;return{[_e]:{"&-small":{[`> ${_e}-nav`]:{[`${_e}-tab`]:{padding:Dt,fontSize:$e.titleFontSizeSM}}},"&-large":{[`> ${_e}-nav`]:{[`${_e}-tab`]:{padding:Mt,fontSize:$e.titleFontSizeLG}}}},[`${_e}-card`]:{[`&${_e}-small`]:{[`> ${_e}-nav`]:{[`${_e}-tab`]:{padding:Le}},[`&${_e}-bottom`]:{[`> ${_e}-nav ${_e}-tab`]:{borderRadius:`0 0 ${$e.borderRadius}px ${$e.borderRadius}px`}},[`&${_e}-top`]:{[`> ${_e}-nav ${_e}-tab`]:{borderRadius:`${$e.borderRadius}px ${$e.borderRadius}px 0 0`}},[`&${_e}-right`]:{[`> ${_e}-nav ${_e}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${$e.borderRadius}px ${$e.borderRadius}px 0`}}},[`&${_e}-left`]:{[`> ${_e}-nav ${_e}-tab`]:{borderRadius:{_skip_check_:!0,value:`${$e.borderRadius}px 0 0 ${$e.borderRadius}px`}}}},[`&${_e}-large`]:{[`> ${_e}-nav`]:{[`${_e}-tab`]:{padding:Ie}}}}}},Ei=$e=>{const{componentCls:_e,itemActiveColor:Le,itemHoverColor:Ie,iconCls:Dt,tabsHorizontalItemMargin:Mt,horizontalItemPadding:Sr,itemSelectedColor:nr,itemColor:Dr}=$e,Hr=`${_e}-tab`;return{[Hr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:Sr,fontSize:$e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Dr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:Le}},(0,An.Qy)($e)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-$e.marginXXS},marginLeft:{_skip_check_:!0,value:$e.marginXS},color:$e.colorTextDescription,fontSize:$e.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${$e.motionDurationSlow}`,"&:hover":{color:$e.colorTextHeading}},"&:hover":{color:Ie},[`&${Hr}-active ${Hr}-btn`]:{color:nr,textShadow:$e.tabsActiveTextShadow},[`&${Hr}-disabled`]:{color:$e.colorTextDisabled,cursor:"not-allowed"},[`&${Hr}-disabled ${Hr}-btn, &${Hr}-disabled ${_e}-remove`]:{"&:focus, &:active":{color:$e.colorTextDisabled}},[`& ${Hr}-remove ${Dt}`]:{margin:0},[Dt]:{marginRight:{_skip_check_:!0,value:$e.marginSM}}},[`${Hr} + ${Hr}`]:{margin:{_skip_check_:!0,value:Mt}}}},ji=$e=>{const{componentCls:_e,tabsHorizontalItemMarginRTL:Le,iconCls:Ie,cardGutter:Dt}=$e;return{[`${_e}-rtl`]:{direction:"rtl",[`${_e}-nav`]:{[`${_e}-tab`]:{margin:{_skip_check_:!0,value:Le},[`${_e}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[Ie]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${$e.marginSM}px`}},[`${_e}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${$e.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${$e.marginXXS}px`},[Ie]:{margin:0}}}},[`&${_e}-left`]:{[`> ${_e}-nav`]:{order:1},[`> ${_e}-content-holder`]:{order:0}},[`&${_e}-right`]:{[`> ${_e}-nav`]:{order:0},[`> ${_e}-content-holder`]:{order:1}},[`&${_e}-card${_e}-top, &${_e}-card${_e}-bottom`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-tab + ${_e}-tab`]:{marginRight:{_skip_check_:!0,value:Dt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${_e}-dropdown-rtl`]:{direction:"rtl"},[`${_e}-menu-item`]:{[`${_e}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},eo=$e=>{const{componentCls:_e,tabsCardPadding:Le,cardHeight:Ie,cardGutter:Dt,itemHoverColor:Mt,itemActiveColor:Sr,colorBorderSecondary:nr}=$e;return{[_e]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,An.Wf)($e)),{display:"flex",[`> ${_e}-nav, > div > ${_e}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${_e}-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 ${$e.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${_e}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${$e.motionDurationSlow}`},[`${_e}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${_e}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${_e}-nav-more`]:{position:"relative",padding:Le,background:"transparent",border:0,color:$e.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:$e.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${_e}-nav-add`]:Object.assign({minWidth:Ie,marginLeft:{_skip_check_:!0,value:Dt},padding:`0 ${$e.paddingXS}px`,background:"transparent",border:`${$e.lineWidth}px ${$e.lineType} ${nr}`,borderRadius:`${$e.borderRadiusLG}px ${$e.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:$e.colorText,transition:`all ${$e.motionDurationSlow} ${$e.motionEaseInOut}`,"&:hover":{color:Mt},"&:active, &:focus:not(:focus-visible)":{color:Sr}},(0,An.Qy)($e))},[`${_e}-extra-content`]:{flex:"none"},[`${_e}-ink-bar`]:{position:"absolute",background:$e.inkBarColor,pointerEvents:"none"}}),Ei($e)),{[`${_e}-content`]:{position:"relative",width:"100%"},[`${_e}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${_e}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${_e}-centered`]:{[`> ${_e}-nav, > div > ${_e}-nav`]:{[`${_e}-nav-wrap`]:{[`&:not([class*='${_e}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var Ki=(0,Tn.Z)("Tabs",$e=>{const _e=(0,dn.TS)($e,{tabsCardPadding:$e.cardPadding||`${($e.cardHeight-Math.round($e.fontSize*$e.lineHeight))/2-$e.lineWidth}px ${$e.padding}px`,dropdownEdgeChildVerticalPadding:$e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${$e.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${$e.horizontalItemGutter}px`});return[Zi(_e),ji(_e),ui(_e),Si(_e),wn(_e),eo(_e),Pr(_e)]},$e=>{const _e=$e.controlHeightLG;return{zIndexPopup:$e.zIndexPopupBase+50,cardBg:$e.colorFillAlter,cardHeight:_e,cardPadding:"",cardPaddingSM:`${$e.paddingXXS*1.5}px ${$e.padding}px`,cardPaddingLG:`${$e.paddingXS}px ${$e.padding}px ${$e.paddingXXS*1.5}px`,titleFontSize:$e.fontSize,titleFontSizeLG:$e.fontSizeLG,titleFontSizeSM:$e.fontSize,inkBarColor:$e.colorPrimary,horizontalMargin:`0 0 ${$e.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${$e.paddingSM}px 0`,horizontalItemPaddingSM:`${$e.paddingXS}px 0`,horizontalItemPaddingLG:`${$e.padding}px 0`,verticalItemPadding:`${$e.paddingXS}px ${$e.paddingLG}px`,verticalItemMargin:`${$e.margin}px 0 0 0`,itemColor:$e.colorText,itemSelectedColor:$e.colorPrimary,itemHoverColor:$e.colorPrimaryHover,itemActiveColor:$e.colorPrimaryActive,cardGutter:$e.marginXXS/2}}),ei=function($e,_e){var Le={};for(var Ie in $e)Object.prototype.hasOwnProperty.call($e,Ie)&&_e.indexOf(Ie)<0&&(Le[Ie]=$e[Ie]);if($e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Dt=0,Ie=Object.getOwnPropertySymbols($e);Dt<Ie.length;Dt++)_e.indexOf(Ie[Dt])<0&&Object.prototype.propertyIsEnumerable.call($e,Ie[Dt])&&(Le[Ie[Dt]]=$e[Ie[Dt]]);return Le};const pi=$e=>{const{type:_e,className:Le,rootClassName:Ie,size:Dt,onEdit:Mt,hideAdd:Sr,centered:nr,addIcon:Dr,popupClassName:Hr,children:an,items:jr,animated:Rr,style:en,indicatorSize:yn}=$e,on=ei($e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Dn,moreIcon:Qn=_.createElement(Ae.Z,null)}=on,{direction:Ai,tabs:On,getPrefixCls:Gn,getPopupContainer:Vt}=_.useContext(ct.E_),Xt=Gn("tabs",Dn),[er,fr]=Ki(Xt);let Rt;_e==="editable-card"&&(Rt={onEdit:(li,ri)=>{let{key:_i,event:Yn}=ri;Mt==null||Mt(li==="add"?Yn:_i,li)},removeIcon:_.createElement(me.Z,null),addIcon:Dr||_.createElement(P.Z,null),showAdd:Sr!==!0});const Jt=Gn(),ar=Qr(jr,an),Or=Nr(Xt,Rr),bn=(0,Tt.Z)(Dt),Cn=Object.assign(Object.assign({},On==null?void 0:On.style),en);return er(_.createElement(Fe,Object.assign({direction:Ai,getPopupContainer:Vt,moreTransitionName:`${Jt}-slide-up`},on,{items:ar,className:ne()({[`${Xt}-${bn}`]:bn,[`${Xt}-card`]:["card","editable-card"].includes(_e),[`${Xt}-editable-card`]:_e==="editable-card",[`${Xt}-centered`]:nr},On==null?void 0:On.className,Le,Ie,fr),popupClassName:ne()(Hr,fr),style:Cn,editable:Rt,moreIcon:Qn,prefixCls:Xt,animated:Or,indicatorSize:yn!=null?yn:On==null?void 0:On.indicatorSize})))};pi.TabPane=Yt;var vi=pi},17574:function(un,Ut,x){"use strict";x.d(Ut,{default:function(){return De}});var me=x(60091),Ae=x(94480),P=x(52671),Oe=x(8657),ne=x(54476),W=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"},v=S,M=x(7657),h=function(Se,Xe){return W.createElement(M.Z,(0,ne.Z)({},Se,{ref:Xe,icon:v}))},$=W.forwardRef(h),_=$,F=x(92310),N=x.n(F),R=x(35654),L=x(71430),X=x(36355),Q=x(56082),oe=x(62892),ee=x(20648);const re=4;function G(pe){const{dropPosition:Se,dropLevelOffset:Xe,prefixCls:et,indent:je,direction:Ye="ltr"}=pe,_t=Ye==="ltr"?"left":"right",kt=Ye==="ltr"?"right":"left",Ot={[_t]:-Xe*je+re,[kt]:0};switch(Se){case-1:Ot.top=-3;break;case 1:Ot.bottom=-3;break;default:Ot.bottom=-3,Ot[_t]=je+re;break}return W.createElement("div",{style:Ot,className:`${et}-drop-indicator`})}var K=x(71997),be=W.forwardRef((pe,Se)=>{const{getPrefixCls:Xe,direction:et,virtual:je,tree:Ye}=W.useContext(X.E_),{prefixCls:_t,className:kt,showIcon:Ot=!1,showLine:sr,switcherIcon:rr,blockNode:br=!1,children:lr,checkable:V=!1,selectable:dt=!0,draggable:I,motion:m,style:f}=pe,C=Xe("tree",_t),Y=Xe(),Be=m!=null?m:Object.assign(Object.assign({},(0,oe.Z)(Y)),{motionAppear:!1}),H=Object.assign(Object.assign({},pe),{checkable:V,selectable:dt,showIcon:Ot,motion:Be,blockNode:br,showLine:!!sr,dropIndicatorRender:G}),[ie,Qe]=(0,ee.ZP)(C),we=W.useMemo(()=>{if(!I)return!1;let ze={};switch(typeof I){case"function":ze.nodeDraggable=I;break;case"object":ze=Object.assign({},I);break;default:break}return ze.icon!==!1&&(ze.icon=ze.icon||W.createElement(Q.Z,null)),ze},[I]),ce=ze=>W.createElement(K.Z,{prefixCls:C,switcherIcon:rr,treeNodeProps:ze,showLine:sr});return ie(W.createElement(me.Z,Object.assign({itemHeight:20,ref:Se,virtual:je},H,{style:Object.assign(Object.assign({},Ye==null?void 0:Ye.style),f),prefixCls:C,className:N()({[`${C}-icon-hide`]:!Ot,[`${C}-block-node`]:br,[`${C}-unselectable`]:!dt,[`${C}-rtl`]:et==="rtl"},Ye==null?void 0:Ye.className,kt,Qe),direction:et,checkable:V&&W.createElement("span",{className:`${C}-checkbox-inner`}),selectable:dt,switcherIcon:ce,draggable:we}),lr))}),Ne;(function(pe){pe[pe.None=0]="None",pe[pe.Start=1]="Start",pe[pe.End=2]="End"})(Ne||(Ne={}));function ye(pe,Se){function Xe(et){const{key:je,children:Ye}=et;Se(je,et)!==!1&&ye(Ye||[],Se)}pe.forEach(Xe)}function Ue(pe){let{treeData:Se,expandedKeys:Xe,startKey:et,endKey:je}=pe;const Ye=[];let _t=Ne.None;if(et&&et===je)return[et];if(!et||!je)return[];function kt(Ot){return Ot===et||Ot===je}return ye(Se,Ot=>{if(_t===Ne.End)return!1;if(kt(Ot)){if(Ye.push(Ot),_t===Ne.None)_t=Ne.Start;else if(_t===Ne.Start)return _t=Ne.End,!1}else _t===Ne.Start&&Ye.push(Ot);return Xe.includes(Ot)}),Ye}function q(pe,Se){const Xe=(0,Ae.Z)(Se),et=[];return ye(pe,(je,Ye)=>{const _t=Xe.indexOf(je);return _t!==-1&&(et.push(Ye),Xe.splice(_t,1)),!!Xe.length}),et}var de=function(pe,Se){var Xe={};for(var et in pe)Object.prototype.hasOwnProperty.call(pe,et)&&Se.indexOf(et)<0&&(Xe[et]=pe[et]);if(pe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var je=0,et=Object.getOwnPropertySymbols(pe);je<et.length;je++)Se.indexOf(et[je])<0&&Object.prototype.propertyIsEnumerable.call(pe,et[je])&&(Xe[et[je]]=pe[et[je]]);return Xe};function D(pe){const{isLeaf:Se,expanded:Xe}=pe;return Se?W.createElement(P.Z,null):Xe?W.createElement(Oe.Z,null):W.createElement(_,null)}function qe(pe){let{treeData:Se,children:Xe}=pe;return Se||(0,L.zn)(Xe)}const Me=(pe,Se)=>{var{defaultExpandAll:Xe,defaultExpandParent:et,defaultExpandedKeys:je}=pe,Ye=de(pe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const _t=W.useRef(),kt=W.useRef(),Ot=()=>{const{keyEntities:we}=(0,L.I8)(qe(Ye));let ce;return Xe?ce=Object.keys(we):et?ce=(0,R.r7)(Ye.expandedKeys||je||[],we):ce=Ye.expandedKeys||je,ce},[sr,rr]=W.useState(Ye.selectedKeys||Ye.defaultSelectedKeys||[]),[br,lr]=W.useState(()=>Ot());W.useEffect(()=>{"selectedKeys"in Ye&&rr(Ye.selectedKeys)},[Ye.selectedKeys]),W.useEffect(()=>{"expandedKeys"in Ye&&lr(Ye.expandedKeys)},[Ye.expandedKeys]);const V=(we,ce)=>{var ze;return"expandedKeys"in Ye||lr(we),(ze=Ye.onExpand)===null||ze===void 0?void 0:ze.call(Ye,we,ce)},dt=(we,ce)=>{var ze;const{multiple:vt}=Ye,{node:he,nativeEvent:at}=ce,{key:rt=""}=he,ke=qe(Ye),Fe=Object.assign(Object.assign({},ce),{selected:!0}),ct=(at==null?void 0:at.ctrlKey)||(at==null?void 0:at.metaKey),Tt=at==null?void 0:at.shiftKey;let Pt;vt&&ct?(Pt=we,_t.current=rt,kt.current=Pt,Fe.selectedNodes=q(ke,Pt)):vt&&Tt?(Pt=Array.from(new Set([].concat((0,Ae.Z)(kt.current||[]),(0,Ae.Z)(Ue({treeData:ke,expandedKeys:br,startKey:rt,endKey:_t.current}))))),Fe.selectedNodes=q(ke,Pt)):(Pt=[rt],_t.current=rt,kt.current=Pt,Fe.selectedNodes=q(ke,Pt)),(ze=Ye.onSelect)===null||ze===void 0||ze.call(Ye,Pt,Fe),"selectedKeys"in Ye||rr(Pt)},{getPrefixCls:I,direction:m}=W.useContext(X.E_),{prefixCls:f,className:C,showIcon:Y=!0,expandAction:Be="click"}=Ye,H=de(Ye,["prefixCls","className","showIcon","expandAction"]),ie=I("tree",f),Qe=N()(`${ie}-directory`,{[`${ie}-directory-rtl`]:m==="rtl"},C);return W.createElement(be,Object.assign({icon:D,ref:Se,blockNode:!0},H,{showIcon:Y,expandAction:Be,prefixCls:ie,className:Qe,expandedKeys:br,selectedKeys:sr,onSelect:dt,onExpand:V}))};var Te=W.forwardRef(Me);const ve=be;ve.DirectoryTree=Te,ve.TreeNode=me.O;var De=ve},20648:function(un,Ut,x){"use strict";x.d(Ut,{TM:function(){return F},Yk:function(){return _}});var me=x(36237),Ae=x(98447),P=x(17313),Oe=x(8378),ne=x(37613),W=x(83116);const S=new me.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),v=(N,R)=>({[`.${N}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${R.motionDurationSlow}`}}}),M=(N,R)=>({[`.${N}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:R.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${R.lineWidthBold}px solid ${R.colorPrimary}`,borderRadius:"50%",content:'""'}}}),h=(N,R)=>{const{treeCls:L,treeNodeCls:X,treeNodePadding:Q,titleHeight:oe,nodeSelectedBg:ee,nodeHoverBg:re}=R,G=R.paddingXS;return{[L]:Object.assign(Object.assign({},(0,P.Wf)(R)),{background:R.colorBgContainer,borderRadius:R.borderRadius,transition:`background-color ${R.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)(R)),[`${L}-list-holder-inner`]:{alignItems:"flex-start"},[`&${L}-block-node`]:{[`${L}-list-holder-inner`]:{alignItems:"stretch",[`${L}-node-content-wrapper`]:{flex:"auto"},[`${X}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Q,insetInlineStart:0,border:`1px solid ${R.colorPrimary}`,opacity:0,animationName:S,animationDuration:R.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${X}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Q}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${L}-node-content-wrapper`]:{color:R.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${L}-node-content-wrapper`]:Object.assign({},(0,P.oN)(R)),[`&:not(${X}-disabled).filter-node ${L}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${L}-draggable-icon`]:{flexShrink:0,width:oe,lineHeight:`${oe}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${R.motionDurationSlow}`,[`${X}:hover &`]:{opacity:.45}},[`&${X}-disabled`]:{[`${L}-draggable-icon`]:{visibility:"hidden"}}}},[`${L}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:oe}},[`${L}-draggable-icon`]:{visibility:"hidden"},[`${L}-switcher`]:Object.assign(Object.assign({},v(N,R)),{position:"relative",flex:"none",alignSelf:"stretch",width:oe,margin:0,lineHeight:`${oe}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${L}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:R.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:oe/2,bottom:-Q,marginInlineStart:-1,borderInlineEnd:`1px solid ${R.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:oe/2*.8,height:oe/2,borderBottom:`1px solid ${R.colorBorder}`,content:'""'}}}),[`${L}-checkbox`]:{top:"initial",marginInlineEnd:G},[`${L}-node-content-wrapper, ${L}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:oe,margin:0,padding:`0 ${R.paddingXS/2}px`,color:"inherit",lineHeight:`${oe}px`,background:"transparent",borderRadius:R.borderRadius,cursor:"pointer",transition:`all ${R.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:re},[`&${L}-node-selected`]:{backgroundColor:ee},[`${L}-iconEle`]:{display:"inline-block",width:oe,height:oe,lineHeight:`${oe}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${L}-unselectable ${L}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${L}-node-content-wrapper`]:Object.assign({lineHeight:`${oe}px`,userSelect:"none"},M(N,R)),[`${X}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${R.colorPrimary}`}},"&-show-line":{[`${L}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:oe/2,bottom:-Q,borderInlineEnd:`1px solid ${R.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${L}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${X}-leaf-last`]:{[`${L}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${oe/2}px !important`}}}}})}},$=N=>{const{treeCls:R,treeNodeCls:L,treeNodePadding:X,directoryNodeSelectedBg:Q,directoryNodeSelectedColor:oe}=N;return{[`${R}${R}-directory`]:{[L]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:X,insetInlineStart:0,transition:`background-color ${N.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:N.controlItemBgHover}},"> *":{zIndex:1},[`${R}-switcher`]:{transition:`color ${N.motionDurationMid}`},[`${R}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${R}-node-selected`]:{color:oe,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:Q},[`${R}-switcher`]:{color:oe},[`${R}-node-content-wrapper`]:{color:oe,background:"transparent"}}}}}},_=(N,R)=>{const L=`.${N}`,X=`${L}-treenode`,Q=R.paddingXS/2,oe=(0,ne.TS)(R,{treeCls:L,treeNodeCls:X,treeNodePadding:Q});return[h(N,oe),$(oe)]},F=N=>{const{controlHeightSM:R}=N;return{titleHeight:R,nodeHoverBg:N.controlItemBgHover,nodeSelectedBg:N.controlItemBgActive}};Ut.ZP=(0,W.Z)("Tree",(N,R)=>{let{prefixCls:L}=R;return[{[N.componentCls]:(0,Ae.C2)(`${L}-checkbox`,N)},_(L,N),(0,Oe.Z)(N)]},N=>{const{colorTextLightSolid:R,colorPrimary:L}=N;return Object.assign(Object.assign({},F(N)),{directoryNodeSelectedColor:R,directoryNodeSelectedBg:L})})},71997:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return X}});var me=x(54476),Ae=x(59301),P={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},Oe=P,ne=x(7657),W=function(oe,ee){return Ae.createElement(ne.Z,(0,me.Z)({},oe,{ref:ee,icon:Oe}))},S=Ae.forwardRef(W),v=S,M=x(52671),h=x(58617),$=x(15075),_=x(43531),F=x(92310),N=x.n(F),R=x(92343),X=Q=>{const{prefixCls:oe,switcherIcon:ee,treeNodeProps:re,showLine:G}=Q,{isLeaf:K,expanded:le,loading:be}=re;if(be)return Ae.createElement(h.Z,{className:`${oe}-switcher-loading-icon`});let Ne;if(G&&typeof G=="object"&&(Ne=G.showLeafIcon),K){if(!G)return null;if(typeof Ne!="boolean"&&Ne){const q=typeof Ne=="function"?Ne(re):Ne,de=`${oe}-switcher-line-custom-icon`;return(0,R.l$)(q)?(0,R.Tm)(q,{className:N()(q.props.className||"",de)}):q}return Ne?Ae.createElement(M.Z,{className:`${oe}-switcher-line-icon`}):Ae.createElement("span",{className:`${oe}-switcher-leaf-line`})}const ye=`${oe}-switcher-icon`,Ue=typeof ee=="function"?ee(re):ee;return(0,R.l$)(Ue)?(0,R.Tm)(Ue,{className:N()(Ue.props.className||"",ye)}):Ue!==void 0?Ue:G?le?Ae.createElement($.Z,{className:`${oe}-switcher-line-icon`}):Ae.createElement(_.Z,{className:`${oe}-switcher-line-icon`}):Ae.createElement(v,{className:ye})}},86251:function(un,Ut){"use strict";Ut.byteLength=S,Ut.toByteArray=M,Ut.fromByteArray=_;for(var x=[],me=[],Ae=typeof Uint8Array!="undefined"?Uint8Array:Array,P="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Oe=0,ne=P.length;Oe<ne;++Oe)x[Oe]=P[Oe],me[P.charCodeAt(Oe)]=Oe;me[45]=62,me[95]=63;function W(F){var N=F.length;if(N%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=F.indexOf("=");R===-1&&(R=N);var L=R===N?0:4-R%4;return[R,L]}function S(F){var N=W(F),R=N[0],L=N[1];return(R+L)*3/4-L}function v(F,N,R){return(N+R)*3/4-R}function M(F){var N,R=W(F),L=R[0],X=R[1],Q=new Ae(v(F,L,X)),oe=0,ee=X>0?L-4:L,re;for(re=0;re<ee;re+=4)N=me[F.charCodeAt(re)]<<18|me[F.charCodeAt(re+1)]<<12|me[F.charCodeAt(re+2)]<<6|me[F.charCodeAt(re+3)],Q[oe++]=N>>16&255,Q[oe++]=N>>8&255,Q[oe++]=N&255;return X===2&&(N=me[F.charCodeAt(re)]<<2|me[F.charCodeAt(re+1)]>>4,Q[oe++]=N&255),X===1&&(N=me[F.charCodeAt(re)]<<10|me[F.charCodeAt(re+1)]<<4|me[F.charCodeAt(re+2)]>>2,Q[oe++]=N>>8&255,Q[oe++]=N&255),Q}function h(F){return x[F>>18&63]+x[F>>12&63]+x[F>>6&63]+x[F&63]}function $(F,N,R){for(var L,X=[],Q=N;Q<R;Q+=3)L=(F[Q]<<16&16711680)+(F[Q+1]<<8&65280)+(F[Q+2]&255),X.push(h(L));return X.join("")}function _(F){for(var N,R=F.length,L=R%3,X=[],Q=16383,oe=0,ee=R-L;oe<ee;oe+=Q)X.push($(F,oe,oe+Q>ee?ee:oe+Q));return L===1?(N=F[R-1],X.push(x[N>>2]+x[N<<4&63]+"==")):L===2&&(N=(F[R-2]<<8)+F[R-1],X.push(x[N>>10]+x[N>>4&63]+x[N<<2&63]+"=")),X.join("")}},19208:function(un,Ut,x){"use strict";var me;var Ae=x(86251),P=x(67467),Oe=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ut.lW=v,me=oe,Ut.h2=50;var ne=2147483647;me=ne,v.TYPED_ARRAY_SUPPORT=W(),!v.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 W(){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(f){return!1}}Object.defineProperty(v.prototype,"parent",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.buffer}}),Object.defineProperty(v.prototype,"offset",{enumerable:!0,get:function(){if(v.isBuffer(this))return this.byteOffset}});function S(I){if(I>ne)throw new RangeError('The value "'+I+'" is invalid for option "size"');var m=new Uint8Array(I);return Object.setPrototypeOf(m,v.prototype),m}function v(I,m,f){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 M(I,m,f)}v.poolSize=8192;function M(I,m,f){if(typeof I=="string")return F(I,m);if(ArrayBuffer.isView(I))return R(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,f);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 v.from(C,m,f);var Y=X(I);if(Y)return Y;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof I[Symbol.toPrimitive]=="function")return v.from(I[Symbol.toPrimitive]("string"),m,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof I)}v.from=function(I,m,f){return M(I,m,f)},Object.setPrototypeOf(v.prototype,Uint8Array.prototype),Object.setPrototypeOf(v,Uint8Array);function h(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,f){return h(I),I<=0?S(I):m!==void 0?typeof f=="string"?S(I).fill(m,f):S(I).fill(m):S(I)}v.alloc=function(I,m,f){return $(I,m,f)};function _(I){return h(I),S(I<0?0:Q(I)|0)}v.allocUnsafe=function(I){return _(I)},v.allocUnsafeSlow=function(I){return _(I)};function F(I,m){if((typeof m!="string"||m==="")&&(m="utf8"),!v.isEncoding(m))throw new TypeError("Unknown encoding: "+m);var f=ee(I,m)|0,C=S(f),Y=C.write(I,m);return Y!==f&&(C=C.slice(0,Y)),C}function N(I){for(var m=I.length<0?0:Q(I.length)|0,f=S(m),C=0;C<m;C+=1)f[C]=I[C]&255;return f}function R(I){if(lr(I,Uint8Array)){var m=new Uint8Array(I);return L(m.buffer,m.byteOffset,m.byteLength)}return N(I)}function L(I,m,f){if(m<0||I.byteLength<m)throw new RangeError('"offset" is outside of buffer bounds');if(I.byteLength<m+(f||0))throw new RangeError('"length" is outside of buffer bounds');var C;return m===void 0&&f===void 0?C=new Uint8Array(I):f===void 0?C=new Uint8Array(I,m):C=new Uint8Array(I,m,f),Object.setPrototypeOf(C,v.prototype),C}function X(I){if(v.isBuffer(I)){var m=Q(I.length)|0,f=S(m);return f.length===0||I.copy(f,0,0,m),f}if(I.length!==void 0)return typeof I.length!="number"||V(I.length)?S(0):N(I);if(I.type==="Buffer"&&Array.isArray(I.data))return N(I.data)}function Q(I){if(I>=ne)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+ne.toString(16)+" bytes");return I|0}function oe(I){return+I!=I&&(I=0),v.alloc(+I)}v.isBuffer=function(m){return m!=null&&m._isBuffer===!0&&m!==v.prototype},v.compare=function(m,f){if(lr(m,Uint8Array)&&(m=v.from(m,m.offset,m.byteLength)),lr(f,Uint8Array)&&(f=v.from(f,f.offset,f.byteLength)),!v.isBuffer(m)||!v.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(m===f)return 0;for(var C=m.length,Y=f.length,Be=0,H=Math.min(C,Y);Be<H;++Be)if(m[Be]!==f[Be]){C=m[Be],Y=f[Be];break}return C<Y?-1:Y<C?1:0},v.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}},v.concat=function(m,f){if(!Array.isArray(m))throw new TypeError('"list" argument must be an Array of Buffers');if(m.length===0)return v.alloc(0);var C;if(f===void 0)for(f=0,C=0;C<m.length;++C)f+=m[C].length;var Y=v.allocUnsafe(f),Be=0;for(C=0;C<m.length;++C){var H=m[C];if(lr(H,Uint8Array))Be+H.length>Y.length?v.from(H).copy(Y,Be):Uint8Array.prototype.set.call(Y,H,Be);else if(v.isBuffer(H))H.copy(Y,Be);else throw new TypeError('"list" argument must be an Array of Buffers');Be+=H.length}return Y};function ee(I,m){if(v.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 f=I.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&f===0)return 0;for(var Y=!1;;)switch(m){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return kt(I).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return rr(I).length;default:if(Y)return C?-1:kt(I).length;m=(""+m).toLowerCase(),Y=!0}}v.byteLength=ee;function re(I,m,f){var C=!1;if((m===void 0||m<0)&&(m=0),m>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,m>>>=0,f<=m))return"";for(I||(I="utf8");;)switch(I){case"hex":return ve(this,m,f);case"utf8":case"utf-8":return D(this,m,f);case"ascii":return xe(this,m,f);case"latin1":case"binary":return Te(this,m,f);case"base64":return de(this,m,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return De(this,m,f);default:if(C)throw new TypeError("Unknown encoding: "+I);I=(I+"").toLowerCase(),C=!0}}v.prototype._isBuffer=!0;function G(I,m,f){var C=I[m];I[m]=I[f],I[f]=C}v.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 f=0;f<m;f+=2)G(this,f,f+1);return this},v.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 f=0;f<m;f+=4)G(this,f,f+3),G(this,f+1,f+2);return this},v.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 f=0;f<m;f+=8)G(this,f,f+7),G(this,f+1,f+6),G(this,f+2,f+5),G(this,f+3,f+4);return this},v.prototype.toString=function(){var m=this.length;return m===0?"":arguments.length===0?D(this,0,m):re.apply(this,arguments)},v.prototype.toLocaleString=v.prototype.toString,v.prototype.equals=function(m){if(!v.isBuffer(m))throw new TypeError("Argument must be a Buffer");return this===m?!0:v.compare(this,m)===0},v.prototype.inspect=function(){var m="",f=Ut.h2;return m=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(m+=" ... "),"<Buffer "+m+">"},Oe&&(v.prototype[Oe]=v.prototype.inspect),v.prototype.compare=function(m,f,C,Y,Be){if(lr(m,Uint8Array)&&(m=v.from(m,m.offset,m.byteLength)),!v.isBuffer(m))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof m);if(f===void 0&&(f=0),C===void 0&&(C=m?m.length:0),Y===void 0&&(Y=0),Be===void 0&&(Be=this.length),f<0||C>m.length||Y<0||Be>this.length)throw new RangeError("out of range index");if(Y>=Be&&f>=C)return 0;if(Y>=Be)return-1;if(f>=C)return 1;if(f>>>=0,C>>>=0,Y>>>=0,Be>>>=0,this===m)return 0;for(var H=Be-Y,ie=C-f,Qe=Math.min(H,ie),we=this.slice(Y,Be),ce=m.slice(f,C),ze=0;ze<Qe;++ze)if(we[ze]!==ce[ze]){H=we[ze],ie=ce[ze];break}return H<ie?-1:ie<H?1:0};function K(I,m,f,C,Y){if(I.length===0)return-1;if(typeof f=="string"?(C=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,V(f)&&(f=Y?0:I.length-1),f<0&&(f=I.length+f),f>=I.length){if(Y)return-1;f=I.length-1}else if(f<0)if(Y)f=0;else return-1;if(typeof m=="string"&&(m=v.from(m,C)),v.isBuffer(m))return m.length===0?-1:le(I,m,f,C,Y);if(typeof m=="number")return m=m&255,typeof Uint8Array.prototype.indexOf=="function"?Y?Uint8Array.prototype.indexOf.call(I,m,f):Uint8Array.prototype.lastIndexOf.call(I,m,f):le(I,[m],f,C,Y);throw new TypeError("val must be string, number or Buffer")}function le(I,m,f,C,Y){var Be=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;Be=2,H/=2,ie/=2,f/=2}function Qe(he,at){return Be===1?he[at]:he.readUInt16BE(at*Be)}var we;if(Y){var ce=-1;for(we=f;we<H;we++)if(Qe(I,we)===Qe(m,ce===-1?0:we-ce)){if(ce===-1&&(ce=we),we-ce+1===ie)return ce*Be}else ce!==-1&&(we-=we-ce),ce=-1}else for(f+ie>H&&(f=H-ie),we=f;we>=0;we--){for(var ze=!0,vt=0;vt<ie;vt++)if(Qe(I,we+vt)!==Qe(m,vt)){ze=!1;break}if(ze)return we}return-1}v.prototype.includes=function(m,f,C){return this.indexOf(m,f,C)!==-1},v.prototype.indexOf=function(m,f,C){return K(this,m,f,C,!0)},v.prototype.lastIndexOf=function(m,f,C){return K(this,m,f,C,!1)};function be(I,m,f,C){f=Number(f)||0;var Y=I.length-f;C?(C=Number(C),C>Y&&(C=Y)):C=Y;var Be=m.length;C>Be/2&&(C=Be/2);for(var H=0;H<C;++H){var ie=parseInt(m.substr(H*2,2),16);if(V(ie))return H;I[f+H]=ie}return H}function Ne(I,m,f,C){return br(kt(m,I.length-f),I,f,C)}function ye(I,m,f,C){return br(Ot(m),I,f,C)}function Ue(I,m,f,C){return br(rr(m),I,f,C)}function q(I,m,f,C){return br(sr(m,I.length-f),I,f,C)}v.prototype.write=function(m,f,C,Y){if(f===void 0)Y="utf8",C=this.length,f=0;else if(C===void 0&&typeof f=="string")Y=f,C=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(C)?(C=C>>>0,Y===void 0&&(Y="utf8")):(Y=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Be=this.length-f;if((C===void 0||C>Be)&&(C=Be),m.length>0&&(C<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");Y||(Y="utf8");for(var H=!1;;)switch(Y){case"hex":return be(this,m,f,C);case"utf8":case"utf-8":return Ne(this,m,f,C);case"ascii":case"latin1":case"binary":return ye(this,m,f,C);case"base64":return Ue(this,m,f,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,m,f,C);default:if(H)throw new TypeError("Unknown encoding: "+Y);Y=(""+Y).toLowerCase(),H=!0}},v.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function de(I,m,f){return m===0&&f===I.length?Ae.fromByteArray(I):Ae.fromByteArray(I.slice(m,f))}function D(I,m,f){f=Math.min(I.length,f);for(var C=[],Y=m;Y<f;){var Be=I[Y],H=null,ie=Be>239?4:Be>223?3:Be>191?2:1;if(Y+ie<=f){var Qe,we,ce,ze;switch(ie){case 1:Be<128&&(H=Be);break;case 2:Qe=I[Y+1],(Qe&192)===128&&(ze=(Be&31)<<6|Qe&63,ze>127&&(H=ze));break;case 3:Qe=I[Y+1],we=I[Y+2],(Qe&192)===128&&(we&192)===128&&(ze=(Be&15)<<12|(Qe&63)<<6|we&63,ze>2047&&(ze<55296||ze>57343)&&(H=ze));break;case 4:Qe=I[Y+1],we=I[Y+2],ce=I[Y+3],(Qe&192)===128&&(we&192)===128&&(ce&192)===128&&(ze=(Be&15)<<18|(Qe&63)<<12|(we&63)<<6|ce&63,ze>65535&&ze<1114112&&(H=ze))}}H===null?(H=65533,ie=1):H>65535&&(H-=65536,C.push(H>>>10&1023|55296),H=56320|H&1023),C.push(H),Y+=ie}return Me(C)}var qe=4096;function Me(I){var m=I.length;if(m<=qe)return String.fromCharCode.apply(String,I);for(var f="",C=0;C<m;)f+=String.fromCharCode.apply(String,I.slice(C,C+=qe));return f}function xe(I,m,f){var C="";f=Math.min(I.length,f);for(var Y=m;Y<f;++Y)C+=String.fromCharCode(I[Y]&127);return C}function Te(I,m,f){var C="";f=Math.min(I.length,f);for(var Y=m;Y<f;++Y)C+=String.fromCharCode(I[Y]);return C}function ve(I,m,f){var C=I.length;(!m||m<0)&&(m=0),(!f||f<0||f>C)&&(f=C);for(var Y="",Be=m;Be<f;++Be)Y+=dt[I[Be]];return Y}function De(I,m,f){for(var C=I.slice(m,f),Y="",Be=0;Be<C.length-1;Be+=2)Y+=String.fromCharCode(C[Be]+C[Be+1]*256);return Y}v.prototype.slice=function(m,f){var C=this.length;m=~~m,f=f===void 0?C:~~f,m<0?(m+=C,m<0&&(m=0)):m>C&&(m=C),f<0?(f+=C,f<0&&(f=0)):f>C&&(f=C),f<m&&(f=m);var Y=this.subarray(m,f);return Object.setPrototypeOf(Y,v.prototype),Y};function pe(I,m,f){if(I%1!==0||I<0)throw new RangeError("offset is not uint");if(I+m>f)throw new RangeError("Trying to access beyond buffer length")}v.prototype.readUintLE=v.prototype.readUIntLE=function(m,f,C){m=m>>>0,f=f>>>0,C||pe(m,f,this.length);for(var Y=this[m],Be=1,H=0;++H<f&&(Be*=256);)Y+=this[m+H]*Be;return Y},v.prototype.readUintBE=v.prototype.readUIntBE=function(m,f,C){m=m>>>0,f=f>>>0,C||pe(m,f,this.length);for(var Y=this[m+--f],Be=1;f>0&&(Be*=256);)Y+=this[m+--f]*Be;return Y},v.prototype.readUint8=v.prototype.readUInt8=function(m,f){return m=m>>>0,f||pe(m,1,this.length),this[m]},v.prototype.readUint16LE=v.prototype.readUInt16LE=function(m,f){return m=m>>>0,f||pe(m,2,this.length),this[m]|this[m+1]<<8},v.prototype.readUint16BE=v.prototype.readUInt16BE=function(m,f){return m=m>>>0,f||pe(m,2,this.length),this[m]<<8|this[m+1]},v.prototype.readUint32LE=v.prototype.readUInt32LE=function(m,f){return m=m>>>0,f||pe(m,4,this.length),(this[m]|this[m+1]<<8|this[m+2]<<16)+this[m+3]*16777216},v.prototype.readUint32BE=v.prototype.readUInt32BE=function(m,f){return m=m>>>0,f||pe(m,4,this.length),this[m]*16777216+(this[m+1]<<16|this[m+2]<<8|this[m+3])},v.prototype.readIntLE=function(m,f,C){m=m>>>0,f=f>>>0,C||pe(m,f,this.length);for(var Y=this[m],Be=1,H=0;++H<f&&(Be*=256);)Y+=this[m+H]*Be;return Be*=128,Y>=Be&&(Y-=Math.pow(2,8*f)),Y},v.prototype.readIntBE=function(m,f,C){m=m>>>0,f=f>>>0,C||pe(m,f,this.length);for(var Y=f,Be=1,H=this[m+--Y];Y>0&&(Be*=256);)H+=this[m+--Y]*Be;return Be*=128,H>=Be&&(H-=Math.pow(2,8*f)),H},v.prototype.readInt8=function(m,f){return m=m>>>0,f||pe(m,1,this.length),this[m]&128?(255-this[m]+1)*-1:this[m]},v.prototype.readInt16LE=function(m,f){m=m>>>0,f||pe(m,2,this.length);var C=this[m]|this[m+1]<<8;return C&32768?C|4294901760:C},v.prototype.readInt16BE=function(m,f){m=m>>>0,f||pe(m,2,this.length);var C=this[m+1]|this[m]<<8;return C&32768?C|4294901760:C},v.prototype.readInt32LE=function(m,f){return m=m>>>0,f||pe(m,4,this.length),this[m]|this[m+1]<<8|this[m+2]<<16|this[m+3]<<24},v.prototype.readInt32BE=function(m,f){return m=m>>>0,f||pe(m,4,this.length),this[m]<<24|this[m+1]<<16|this[m+2]<<8|this[m+3]},v.prototype.readFloatLE=function(m,f){return m=m>>>0,f||pe(m,4,this.length),P.read(this,m,!0,23,4)},v.prototype.readFloatBE=function(m,f){return m=m>>>0,f||pe(m,4,this.length),P.read(this,m,!1,23,4)},v.prototype.readDoubleLE=function(m,f){return m=m>>>0,f||pe(m,8,this.length),P.read(this,m,!0,52,8)},v.prototype.readDoubleBE=function(m,f){return m=m>>>0,f||pe(m,8,this.length),P.read(this,m,!1,52,8)};function Se(I,m,f,C,Y,Be){if(!v.isBuffer(I))throw new TypeError('"buffer" argument must be a Buffer instance');if(m>Y||m<Be)throw new RangeError('"value" argument is out of bounds');if(f+C>I.length)throw new RangeError("Index out of range")}v.prototype.writeUintLE=v.prototype.writeUIntLE=function(m,f,C,Y){if(m=+m,f=f>>>0,C=C>>>0,!Y){var Be=Math.pow(2,8*C)-1;Se(this,m,f,C,Be,0)}var H=1,ie=0;for(this[f]=m&255;++ie<C&&(H*=256);)this[f+ie]=m/H&255;return f+C},v.prototype.writeUintBE=v.prototype.writeUIntBE=function(m,f,C,Y){if(m=+m,f=f>>>0,C=C>>>0,!Y){var Be=Math.pow(2,8*C)-1;Se(this,m,f,C,Be,0)}var H=C-1,ie=1;for(this[f+H]=m&255;--H>=0&&(ie*=256);)this[f+H]=m/ie&255;return f+C},v.prototype.writeUint8=v.prototype.writeUInt8=function(m,f,C){return m=+m,f=f>>>0,C||Se(this,m,f,1,255,0),this[f]=m&255,f+1},v.prototype.writeUint16LE=v.prototype.writeUInt16LE=function(m,f,C){return m=+m,f=f>>>0,C||Se(this,m,f,2,65535,0),this[f]=m&255,this[f+1]=m>>>8,f+2},v.prototype.writeUint16BE=v.prototype.writeUInt16BE=function(m,f,C){return m=+m,f=f>>>0,C||Se(this,m,f,2,65535,0),this[f]=m>>>8,this[f+1]=m&255,f+2},v.prototype.writeUint32LE=v.prototype.writeUInt32LE=function(m,f,C){return m=+m,f=f>>>0,C||Se(this,m,f,4,4294967295,0),this[f+3]=m>>>24,this[f+2]=m>>>16,this[f+1]=m>>>8,this[f]=m&255,f+4},v.prototype.writeUint32BE=v.prototype.writeUInt32BE=function(m,f,C){return m=+m,f=f>>>0,C||Se(this,m,f,4,4294967295,0),this[f]=m>>>24,this[f+1]=m>>>16,this[f+2]=m>>>8,this[f+3]=m&255,f+4},v.prototype.writeIntLE=function(m,f,C,Y){if(m=+m,f=f>>>0,!Y){var Be=Math.pow(2,8*C-1);Se(this,m,f,C,Be-1,-Be)}var H=0,ie=1,Qe=0;for(this[f]=m&255;++H<C&&(ie*=256);)m<0&&Qe===0&&this[f+H-1]!==0&&(Qe=1),this[f+H]=(m/ie>>0)-Qe&255;return f+C},v.prototype.writeIntBE=function(m,f,C,Y){if(m=+m,f=f>>>0,!Y){var Be=Math.pow(2,8*C-1);Se(this,m,f,C,Be-1,-Be)}var H=C-1,ie=1,Qe=0;for(this[f+H]=m&255;--H>=0&&(ie*=256);)m<0&&Qe===0&&this[f+H+1]!==0&&(Qe=1),this[f+H]=(m/ie>>0)-Qe&255;return f+C},v.prototype.writeInt8=function(m,f,C){return m=+m,f=f>>>0,C||Se(this,m,f,1,127,-128),m<0&&(m=255+m+1),this[f]=m&255,f+1},v.prototype.writeInt16LE=function(m,f,C){return m=+m,f=f>>>0,C||Se(this,m,f,2,32767,-32768),this[f]=m&255,this[f+1]=m>>>8,f+2},v.prototype.writeInt16BE=function(m,f,C){return m=+m,f=f>>>0,C||Se(this,m,f,2,32767,-32768),this[f]=m>>>8,this[f+1]=m&255,f+2},v.prototype.writeInt32LE=function(m,f,C){return m=+m,f=f>>>0,C||Se(this,m,f,4,2147483647,-2147483648),this[f]=m&255,this[f+1]=m>>>8,this[f+2]=m>>>16,this[f+3]=m>>>24,f+4},v.prototype.writeInt32BE=function(m,f,C){return m=+m,f=f>>>0,C||Se(this,m,f,4,2147483647,-2147483648),m<0&&(m=4294967295+m+1),this[f]=m>>>24,this[f+1]=m>>>16,this[f+2]=m>>>8,this[f+3]=m&255,f+4};function Xe(I,m,f,C,Y,Be){if(f+C>I.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function et(I,m,f,C,Y){return m=+m,f=f>>>0,Y||Xe(I,m,f,4,34028234663852886e22,-34028234663852886e22),P.write(I,m,f,C,23,4),f+4}v.prototype.writeFloatLE=function(m,f,C){return et(this,m,f,!0,C)},v.prototype.writeFloatBE=function(m,f,C){return et(this,m,f,!1,C)};function je(I,m,f,C,Y){return m=+m,f=f>>>0,Y||Xe(I,m,f,8,17976931348623157e292,-17976931348623157e292),P.write(I,m,f,C,52,8),f+8}v.prototype.writeDoubleLE=function(m,f,C){return je(this,m,f,!0,C)},v.prototype.writeDoubleBE=function(m,f,C){return je(this,m,f,!1,C)},v.prototype.copy=function(m,f,C,Y){if(!v.isBuffer(m))throw new TypeError("argument should be a Buffer");if(C||(C=0),!Y&&Y!==0&&(Y=this.length),f>=m.length&&(f=m.length),f||(f=0),Y>0&&Y<C&&(Y=C),Y===C||m.length===0||this.length===0)return 0;if(f<0)throw new RangeError("targetStart out of bounds");if(C<0||C>=this.length)throw new RangeError("Index out of range");if(Y<0)throw new RangeError("sourceEnd out of bounds");Y>this.length&&(Y=this.length),m.length-f<Y-C&&(Y=m.length-f+C);var Be=Y-C;return this===m&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,C,Y):Uint8Array.prototype.set.call(m,this.subarray(C,Y),f),Be},v.prototype.fill=function(m,f,C,Y){if(typeof m=="string"){if(typeof f=="string"?(Y=f,f=0,C=this.length):typeof C=="string"&&(Y=C,C=this.length),Y!==void 0&&typeof Y!="string")throw new TypeError("encoding must be a string");if(typeof Y=="string"&&!v.isEncoding(Y))throw new TypeError("Unknown encoding: "+Y);if(m.length===1){var Be=m.charCodeAt(0);(Y==="utf8"&&Be<128||Y==="latin1")&&(m=Be)}}else typeof m=="number"?m=m&255:typeof m=="boolean"&&(m=Number(m));if(f<0||this.length<f||this.length<C)throw new RangeError("Out of range index");if(C<=f)return this;f=f>>>0,C=C===void 0?this.length:C>>>0,m||(m=0);var H;if(typeof m=="number")for(H=f;H<C;++H)this[H]=m;else{var ie=v.isBuffer(m)?m:v.from(m,Y),Qe=ie.length;if(Qe===0)throw new TypeError('The value "'+m+'" is invalid for argument "value"');for(H=0;H<C-f;++H)this[H+f]=ie[H%Qe]}return this};var Ye=/[^+/0-9A-Za-z-_]/g;function _t(I){if(I=I.split("=")[0],I=I.trim().replace(Ye,""),I.length<2)return"";for(;I.length%4!==0;)I=I+"=";return I}function kt(I,m){m=m||1/0;for(var f,C=I.length,Y=null,Be=[],H=0;H<C;++H){if(f=I.charCodeAt(H),f>55295&&f<57344){if(!Y){if(f>56319){(m-=3)>-1&&Be.push(239,191,189);continue}else if(H+1===C){(m-=3)>-1&&Be.push(239,191,189);continue}Y=f;continue}if(f<56320){(m-=3)>-1&&Be.push(239,191,189),Y=f;continue}f=(Y-55296<<10|f-56320)+65536}else Y&&(m-=3)>-1&&Be.push(239,191,189);if(Y=null,f<128){if((m-=1)<0)break;Be.push(f)}else if(f<2048){if((m-=2)<0)break;Be.push(f>>6|192,f&63|128)}else if(f<65536){if((m-=3)<0)break;Be.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((m-=4)<0)break;Be.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return Be}function Ot(I){for(var m=[],f=0;f<I.length;++f)m.push(I.charCodeAt(f)&255);return m}function sr(I,m){for(var f,C,Y,Be=[],H=0;H<I.length&&!((m-=2)<0);++H)f=I.charCodeAt(H),C=f>>8,Y=f%256,Be.push(Y),Be.push(C);return Be}function rr(I){return Ae.toByteArray(_t(I))}function br(I,m,f,C){for(var Y=0;Y<C&&!(Y+f>=m.length||Y>=I.length);++Y)m[Y+f]=I[Y];return Y}function lr(I,m){return I instanceof m||I!=null&&I.constructor!=null&&I.constructor.name!=null&&I.constructor.name===m.name}function V(I){return I!==I}var dt=function(){for(var I="0123456789abcdef",m=new Array(256),f=0;f<16;++f)for(var C=f*16,Y=0;Y<16;++Y)m[C+Y]=I[f]+I[Y];return m}()},64270:function(un){(function(Ut,x){un.exports=x()})(this,function(){"use strict";var Ut=function(b,d){return Ut=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(w,y){w.__proto__=y}||function(w,y){for(var te in y)Object.prototype.hasOwnProperty.call(y,te)&&(w[te]=y[te])},Ut(b,d)};function x(b,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");Ut(b,d);function w(){this.constructor=b}b.prototype=d===null?Object.create(d):(w.prototype=d.prototype,new w)}var me=function(){return me=Object.assign||function(d){for(var w,y=1,te=arguments.length;y<te;y++){w=arguments[y];for(var Ee in w)Object.prototype.hasOwnProperty.call(w,Ee)&&(d[Ee]=w[Ee])}return d},me.apply(this,arguments)};function Ae(b,d,w,y){function te(Ee){return Ee instanceof w?Ee:new w(function(We){We(Ee)})}return new(w||(w=Promise))(function(Ee,We){function ht(cr){try{tr(y.next(cr))}catch(hr){We(hr)}}function pt(cr){try{tr(y.throw(cr))}catch(hr){We(hr)}}function tr(cr){cr.done?Ee(cr.value):te(cr.value).then(ht,pt)}tr((y=y.apply(b,d||[])).next())})}function P(b,d){var w={label:0,sent:function(){if(Ee[0]&1)throw Ee[1];return Ee[1]},trys:[],ops:[]},y,te,Ee,We;return We={next:ht(0),throw:ht(1),return:ht(2)},typeof Symbol=="function"&&(We[Symbol.iterator]=function(){return this}),We;function ht(tr){return function(cr){return pt([tr,cr])}}function pt(tr){if(y)throw new TypeError("Generator is already executing.");for(;w;)try{if(y=1,te&&(Ee=tr[0]&2?te.return:tr[0]?te.throw||((Ee=te.return)&&Ee.call(te),0):te.next)&&!(Ee=Ee.call(te,tr[1])).done)return Ee;switch(te=0,Ee&&(tr=[tr[0]&2,Ee.value]),tr[0]){case 0:case 1:Ee=tr;break;case 4:return w.label++,{value:tr[1],done:!1};case 5:w.label++,te=tr[1],tr=[0];continue;case 7:tr=w.ops.pop(),w.trys.pop();continue;default:if(Ee=w.trys,!(Ee=Ee.length>0&&Ee[Ee.length-1])&&(tr[0]===6||tr[0]===2)){w=0;continue}if(tr[0]===3&&(!Ee||tr[1]>Ee[0]&&tr[1]<Ee[3])){w.label=tr[1];break}if(tr[0]===6&&w.label<Ee[1]){w.label=Ee[1],Ee=tr;break}if(Ee&&w.label<Ee[2]){w.label=Ee[2],w.ops.push(tr);break}Ee[2]&&w.ops.pop(),w.trys.pop();continue}tr=d.call(b,w)}catch(cr){tr=[6,cr],te=0}finally{y=Ee=0}if(tr[0]&5)throw tr[1];return{value:tr[0]?tr[1]:void 0,done:!0}}}function Oe(b,d,w){if(w||arguments.length===2)for(var y=0,te=d.length,Ee;y<te;y++)(Ee||!(y in d))&&(Ee||(Ee=Array.prototype.slice.call(d,0,y)),Ee[y]=d[y]);return b.concat(Ee||d)}for(var ne=function(){function b(d,w,y,te){this.left=d,this.top=w,this.width=y,this.height=te}return b.prototype.add=function(d,w,y,te){return new b(this.left+d,this.top+w,this.width+y,this.height+te)},b.fromClientRect=function(d,w){return new b(w.left+d.windowBounds.left,w.top+d.windowBounds.top,w.width,w.height)},b.fromDOMRectList=function(d,w){var y=Array.from(w).find(function(te){return te.width!==0});return y?new b(y.left+d.windowBounds.left,y.top+d.windowBounds.top,y.width,y.height):b.EMPTY},b.EMPTY=new b(0,0,0,0),b}(),W=function(b,d){return ne.fromClientRect(b,d.getBoundingClientRect())},S=function(b){var d=b.body,w=b.documentElement;if(!d||!w)throw new Error("Unable to get document size");var y=Math.max(Math.max(d.scrollWidth,w.scrollWidth),Math.max(d.offsetWidth,w.offsetWidth),Math.max(d.clientWidth,w.clientWidth)),te=Math.max(Math.max(d.scrollHeight,w.scrollHeight),Math.max(d.offsetHeight,w.offsetHeight),Math.max(d.clientHeight,w.clientHeight));return new ne(0,0,y,te)},v=function(b){for(var d=[],w=0,y=b.length;w<y;){var te=b.charCodeAt(w++);if(te>=55296&&te<=56319&&w<y){var Ee=b.charCodeAt(w++);(Ee&64512)===56320?d.push(((te&1023)<<10)+(Ee&1023)+65536):(d.push(te),w--)}else d.push(te)}return d},M=function(){for(var b=[],d=0;d<arguments.length;d++)b[d]=arguments[d];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var w=b.length;if(!w)return"";for(var y=[],te=-1,Ee="";++te<w;){var We=b[te];We<=65535?y.push(We):(We-=65536,y.push((We>>10)+55296,We%1024+56320)),(te+1===w||y.length>16384)&&(Ee+=String.fromCharCode.apply(String,y),y.length=0)}return Ee},h="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),_=0;_<h.length;_++)$[h.charCodeAt(_)]=_;for(var F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",N=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),R=0;R<F.length;R++)N[F.charCodeAt(R)]=R;for(var L=function(b){var d=b.length*.75,w=b.length,y,te=0,Ee,We,ht,pt;b[b.length-1]==="="&&(d--,b[b.length-2]==="="&&d--);var tr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(d):new Array(d),cr=Array.isArray(tr)?tr:new Uint8Array(tr);for(y=0;y<w;y+=4)Ee=N[b.charCodeAt(y)],We=N[b.charCodeAt(y+1)],ht=N[b.charCodeAt(y+2)],pt=N[b.charCodeAt(y+3)],cr[te++]=Ee<<2|We>>4,cr[te++]=(We&15)<<4|ht>>2,cr[te++]=(ht&3)<<6|pt&63;return tr},X=function(b){for(var d=b.length,w=[],y=0;y<d;y+=2)w.push(b[y+1]<<8|b[y]);return w},Q=function(b){for(var d=b.length,w=[],y=0;y<d;y+=4)w.push(b[y+3]<<24|b[y+2]<<16|b[y+1]<<8|b[y]);return w},oe=5,ee=11,re=2,G=ee-oe,K=65536>>oe,le=1<<oe,be=le-1,Ne=1024>>oe,ye=K+Ne,Ue=ye,q=32,de=Ue+q,D=65536>>ee,qe=1<<G,Me=qe-1,xe=function(b,d,w){return b.slice?b.slice(d,w):new Uint16Array(Array.prototype.slice.call(b,d,w))},Te=function(b,d,w){return b.slice?b.slice(d,w):new Uint32Array(Array.prototype.slice.call(b,d,w))},ve=function(b,d){var w=L(b),y=Array.isArray(w)?Q(w):new Uint32Array(w),te=Array.isArray(w)?X(w):new Uint16Array(w),Ee=24,We=xe(te,Ee/2,y[4]/2),ht=y[5]===2?xe(te,(Ee+y[4])/2):Te(y,Math.ceil((Ee+y[4])/4));return new De(y[0],y[1],y[2],y[3],We,ht)},De=function(){function b(d,w,y,te,Ee,We){this.initialValue=d,this.errorValue=w,this.highStart=y,this.highValueIndex=te,this.index=Ee,this.data=We}return b.prototype.get=function(d){var w;if(d>=0){if(d<55296||d>56319&&d<=65535)return w=this.index[d>>oe],w=(w<<re)+(d&be),this.data[w];if(d<=65535)return w=this.index[K+(d-55296>>oe)],w=(w<<re)+(d&be),this.data[w];if(d<this.highStart)return w=de-D+(d>>ee),w=this.index[w],w+=d>>oe&Me,w=this.index[w],w=(w<<re)+(d&be),this.data[w];if(d<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b}(),pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Se=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Xe=0;Xe<pe.length;Xe++)Se[pe.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==",je=50,Ye=1,_t=2,kt=3,Ot=4,sr=5,rr=7,br=8,lr=9,V=10,dt=11,I=12,m=13,f=14,C=15,Y=16,Be=17,H=18,ie=19,Qe=20,we=21,ce=22,ze=23,vt=24,he=25,at=26,rt=27,ke=28,Fe=29,ct=30,Tt=31,Pt=32,Yt=33,Fr=34,Lr=35,Nr=36,kr=37,yr=38,dr=39,Qr=40,An=41,Tn=42,dn=43,kn=[9001,65288],Qi="!",Pr="\xD7",wn="\xF7",Si=ve(et),ui=[ct,Nr],Zi=[Ye,_t,kt,sr],Ei=[V,br],ji=[rt,at],eo=Zi.concat(Ei),Ki=[yr,dr,Qr,Fr,Lr],ei=[C,m],pi=function(b,d){d===void 0&&(d="strict");var w=[],y=[],te=[];return b.forEach(function(Ee,We){var ht=Si.get(Ee);if(ht>je?(te.push(!0),ht-=je):te.push(!1),["normal","auto","loose"].indexOf(d)!==-1&&[8208,8211,12316,12448].indexOf(Ee)!==-1)return y.push(We),w.push(Y);if(ht===Ot||ht===dt){if(We===0)return y.push(We),w.push(ct);var pt=w[We-1];return eo.indexOf(pt)===-1?(y.push(y[We-1]),w.push(pt)):(y.push(We),w.push(ct))}if(y.push(We),ht===Tt)return w.push(d==="strict"?we:kr);if(ht===Tn||ht===Fe)return w.push(ct);if(ht===dn)return Ee>=131072&&Ee<=196605||Ee>=196608&&Ee<=262141?w.push(kr):w.push(ct);w.push(ht)}),[y,w,te]},vi=function(b,d,w,y){var te=y[w];if(Array.isArray(b)?b.indexOf(te)!==-1:b===te)for(var Ee=w;Ee<=y.length;){Ee++;var We=y[Ee];if(We===d)return!0;if(We!==V)break}if(te===V)for(var Ee=w;Ee>0;){Ee--;var ht=y[Ee];if(Array.isArray(b)?b.indexOf(ht)!==-1:b===ht)for(var pt=w;pt<=y.length;){pt++;var We=y[pt];if(We===d)return!0;if(We!==V)break}if(ht!==V)break}return!1},$e=function(b,d){for(var w=b;w>=0;){var y=d[w];if(y===V)w--;else return y}return 0},_e=function(b,d,w,y,te){if(w[y]===0)return Pr;var Ee=y-1;if(Array.isArray(te)&&te[Ee]===!0)return Pr;var We=Ee-1,ht=Ee+1,pt=d[Ee],tr=We>=0?d[We]:0,cr=d[ht];if(pt===_t&&cr===kt)return Pr;if(Zi.indexOf(pt)!==-1)return Qi;if(Zi.indexOf(cr)!==-1||Ei.indexOf(cr)!==-1)return Pr;if($e(Ee,d)===br)return wn;if(Si.get(b[Ee])===dt||(pt===Pt||pt===Yt)&&Si.get(b[ht])===dt||pt===rr||cr===rr||pt===lr||[V,m,C].indexOf(pt)===-1&&cr===lr||[Be,H,ie,vt,ke].indexOf(cr)!==-1||$e(Ee,d)===ce||vi(ze,ce,Ee,d)||vi([Be,H],we,Ee,d)||vi(I,I,Ee,d))return Pr;if(pt===V)return wn;if(pt===ze||cr===ze)return Pr;if(cr===Y||pt===Y)return wn;if([m,C,we].indexOf(cr)!==-1||pt===f||tr===Nr&&ei.indexOf(pt)!==-1||pt===ke&&cr===Nr||cr===Qe||ui.indexOf(cr)!==-1&&pt===he||ui.indexOf(pt)!==-1&&cr===he||pt===rt&&[kr,Pt,Yt].indexOf(cr)!==-1||[kr,Pt,Yt].indexOf(pt)!==-1&&cr===at||ui.indexOf(pt)!==-1&&ji.indexOf(cr)!==-1||ji.indexOf(pt)!==-1&&ui.indexOf(cr)!==-1||[rt,at].indexOf(pt)!==-1&&(cr===he||[ce,C].indexOf(cr)!==-1&&d[ht+1]===he)||[ce,C].indexOf(pt)!==-1&&cr===he||pt===he&&[he,ke,vt].indexOf(cr)!==-1)return Pr;if([he,ke,vt,Be,H].indexOf(cr)!==-1)for(var hr=Ee;hr>=0;){var qr=d[hr];if(qr===he)return Pr;if([ke,vt].indexOf(qr)!==-1)hr--;else break}if([rt,at].indexOf(cr)!==-1)for(var hr=[Be,H].indexOf(pt)!==-1?We:Ee;hr>=0;){var qr=d[hr];if(qr===he)return Pr;if([ke,vt].indexOf(qr)!==-1)hr--;else break}if(yr===pt&&[yr,dr,Fr,Lr].indexOf(cr)!==-1||[dr,Fr].indexOf(pt)!==-1&&[dr,Qr].indexOf(cr)!==-1||[Qr,Lr].indexOf(pt)!==-1&&cr===Qr||Ki.indexOf(pt)!==-1&&[Qe,at].indexOf(cr)!==-1||Ki.indexOf(cr)!==-1&&pt===rt||ui.indexOf(pt)!==-1&&ui.indexOf(cr)!==-1||pt===vt&&ui.indexOf(cr)!==-1||ui.concat(he).indexOf(pt)!==-1&&cr===ce&&kn.indexOf(b[ht])===-1||ui.concat(he).indexOf(cr)!==-1&&pt===H)return Pr;if(pt===An&&cr===An){for(var Ri=w[Ee],Un=1;Ri>0&&(Ri--,d[Ri]===An);)Un++;if(Un%2!==0)return Pr}return pt===Pt&&cr===Yt?Pr:wn},Le=function(b,d){d||(d={lineBreak:"normal",wordBreak:"normal"});var w=pi(b,d.lineBreak),y=w[0],te=w[1],Ee=w[2];(d.wordBreak==="break-all"||d.wordBreak==="break-word")&&(te=te.map(function(ht){return[he,ct,Tn].indexOf(ht)!==-1?kr:ht}));var We=d.wordBreak==="keep-all"?Ee.map(function(ht,pt){return ht&&b[pt]>=19968&&b[pt]<=40959}):void 0;return[y,te,We]},Ie=function(){function b(d,w,y,te){this.codePoints=d,this.required=w===Qi,this.start=y,this.end=te}return b.prototype.slice=function(){return M.apply(void 0,this.codePoints.slice(this.start,this.end))},b}(),Dt=function(b,d){var w=v(b),y=Le(w,d),te=y[0],Ee=y[1],We=y[2],ht=w.length,pt=0,tr=0;return{next:function(){if(tr>=ht)return{done:!0,value:null};for(var cr=Pr;tr<ht&&(cr=_e(w,Ee,te,++tr,We))===Pr;);if(cr!==Pr||tr===ht){var hr=new Ie(w,cr,pt,tr);return pt=tr,{value:hr,done:!1}}return{done:!0,value:null}}}},Mt=1,Sr=2,nr=4,Dr=8,Hr=10,an=47,jr=92,Rr=9,en=32,yn=34,on=61,Dn=35,Qn=36,Ai=37,On=39,Gn=40,Vt=41,Xt=95,er=45,fr=33,Rt=60,Jt=62,ar=64,Or=91,bn=93,Cn=61,li=123,ri=63,_i=125,Yn=124,zn=126,yi=128,bi=65533,wi=42,ci=43,xi=44,Xi=58,ti=59,Ti=46,za=0,si=8,fn=11,sn=14,Xn=31,Kn=127,di=-1,qi=48,Fi=97,Ra=101,Aa=102,Co=117,Wn=122,In=65,Di=69,Ji=70,Ma=85,Ms=90,Za=function(b){return b>=qi&&b<=57},fa=function(b){return b>=55296&&b<=57343},_o=function(b){return Za(b)||b>=In&&b<=Ji||b>=Fi&&b<=Aa},Bo=function(b){return b>=Fi&&b<=Wn},To=function(b){return b>=In&&b<=Ms},Ps=function(b){return Bo(b)||To(b)},mo=function(b){return b>=yi},xs=function(b){return b===Hr||b===Rr||b===en},Ts=function(b){return Ps(b)||mo(b)||b===Xt},$s=function(b){return Ts(b)||Za(b)||b===er},Uo=function(b){return b>=za&&b<=si||b===fn||b>=sn&&b<=Xn||b===Kn},Ro=function(b,d){return b!==jr?!1:d!==Hr},Cs=function(b,d,w){return b===er?Ts(d)||Ro(d,w):Ts(b)?!0:!!(b===jr&&Ro(b,d))},el=function(b,d,w){return b===ci||b===er?Za(d)?!0:d===Ti&&Za(w):Za(b===Ti?d:b)},vl=function(b){var d=0,w=1;(b[d]===ci||b[d]===er)&&(b[d]===er&&(w=-1),d++);for(var y=[];Za(b[d]);)y.push(b[d++]);var te=y.length?parseInt(M.apply(void 0,y),10):0;b[d]===Ti&&d++;for(var Ee=[];Za(b[d]);)Ee.push(b[d++]);var We=Ee.length,ht=We?parseInt(M.apply(void 0,Ee),10):0;(b[d]===Di||b[d]===Ra)&&d++;var pt=1;(b[d]===ci||b[d]===er)&&(b[d]===er&&(pt=-1),d++);for(var tr=[];Za(b[d]);)tr.push(b[d++]);var cr=tr.length?parseInt(M.apply(void 0,tr),10):0;return w*(te+ht*Math.pow(10,-We))*Math.pow(10,pt*cr)},tc={type:2},rc={type:3},Rl={type:4},Zs={type:13},kc={type:8},Ql={type:21},Kl={type:9},Vs={type:10},os={type:11},ni={type:12},ca={type:14},ta={type:23},oa={type:1},Na={type:25},so={type:24},Ws={type:26},Bs={type:27},Ss={type:28},vs={type:29},to={type:31},Qa={type:32},ss=function(){function b(){this._value=[]}return b.prototype.write=function(d){this._value=this._value.concat(v(d))},b.prototype.read=function(){for(var d=[],w=this.consumeToken();w!==Qa;)d.push(w),w=this.consumeToken();return d},b.prototype.consumeToken=function(){var d=this.consumeCodePoint();switch(d){case yn:return this.consumeStringToken(yn);case Dn:var w=this.peekCodePoint(0),y=this.peekCodePoint(1),te=this.peekCodePoint(2);if($s(w)||Ro(y,te)){var Ee=Cs(w,y,te)?Sr:Mt,We=this.consumeName();return{type:5,value:We,flags:Ee}}break;case Qn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Zs;break;case On:return this.consumeStringToken(On);case Gn:return tc;case Vt:return rc;case wi:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),ca;break;case ci:if(el(d,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(d),this.consumeNumericToken();break;case xi:return Rl;case er:var ht=d,pt=this.peekCodePoint(0),tr=this.peekCodePoint(1);if(el(ht,pt,tr))return this.reconsumeCodePoint(d),this.consumeNumericToken();if(Cs(ht,pt,tr))return this.reconsumeCodePoint(d),this.consumeIdentLikeToken();if(pt===er&&tr===Jt)return this.consumeCodePoint(),this.consumeCodePoint(),so;break;case Ti:if(el(d,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(d),this.consumeNumericToken();break;case an:if(this.peekCodePoint(0)===wi)for(this.consumeCodePoint();;){var cr=this.consumeCodePoint();if(cr===wi&&(cr=this.consumeCodePoint(),cr===an))return this.consumeToken();if(cr===di)return this.consumeToken()}break;case Xi:return Ws;case ti:return Bs;case Rt:if(this.peekCodePoint(0)===fr&&this.peekCodePoint(1)===er&&this.peekCodePoint(2)===er)return this.consumeCodePoint(),this.consumeCodePoint(),Na;break;case ar:var hr=this.peekCodePoint(0),qr=this.peekCodePoint(1),Ri=this.peekCodePoint(2);if(Cs(hr,qr,Ri)){var We=this.consumeName();return{type:7,value:We}}break;case Or:return Ss;case jr:if(Ro(d,this.peekCodePoint(0)))return this.reconsumeCodePoint(d),this.consumeIdentLikeToken();break;case bn:return vs;case Cn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),kc;break;case li:return os;case _i:return ni;case Co:case Ma:var Un=this.peekCodePoint(0),hi=this.peekCodePoint(1);return Un===ci&&(_o(hi)||hi===ri)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(d),this.consumeIdentLikeToken();case Yn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Kl;if(this.peekCodePoint(0)===Yn)return this.consumeCodePoint(),Ql;break;case zn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Vs;break;case di:return Qa}return xs(d)?(this.consumeWhiteSpace(),to):Za(d)?(this.reconsumeCodePoint(d),this.consumeNumericToken()):Ts(d)?(this.reconsumeCodePoint(d),this.consumeIdentLikeToken()):{type:6,value:M(d)}},b.prototype.consumeCodePoint=function(){var d=this._value.shift();return typeof d=="undefined"?-1:d},b.prototype.reconsumeCodePoint=function(d){this._value.unshift(d)},b.prototype.peekCodePoint=function(d){return d>=this._value.length?-1:this._value[d]},b.prototype.consumeUnicodeRangeToken=function(){for(var d=[],w=this.consumeCodePoint();_o(w)&&d.length<6;)d.push(w),w=this.consumeCodePoint();for(var y=!1;w===ri&&d.length<6;)d.push(w),w=this.consumeCodePoint(),y=!0;if(y){var te=parseInt(M.apply(void 0,d.map(function(pt){return pt===ri?qi:pt})),16),Ee=parseInt(M.apply(void 0,d.map(function(pt){return pt===ri?Ji:pt})),16);return{type:30,start:te,end:Ee}}var We=parseInt(M.apply(void 0,d),16);if(this.peekCodePoint(0)===er&&_o(this.peekCodePoint(1))){this.consumeCodePoint(),w=this.consumeCodePoint();for(var ht=[];_o(w)&&ht.length<6;)ht.push(w),w=this.consumeCodePoint();var Ee=parseInt(M.apply(void 0,ht),16);return{type:30,start:We,end:Ee}}else return{type:30,start:We,end:We}},b.prototype.consumeIdentLikeToken=function(){var d=this.consumeName();return d.toLowerCase()==="url"&&this.peekCodePoint(0)===Gn?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===Gn?(this.consumeCodePoint(),{type:19,value:d}):{type:20,value:d}},b.prototype.consumeUrlToken=function(){var d=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===di)return{type:22,value:""};var w=this.peekCodePoint(0);if(w===On||w===yn){var y=this.consumeStringToken(this.consumeCodePoint());return y.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===di||this.peekCodePoint(0)===Vt)?(this.consumeCodePoint(),{type:22,value:y.value}):(this.consumeBadUrlRemnants(),ta)}for(;;){var te=this.consumeCodePoint();if(te===di||te===Vt)return{type:22,value:M.apply(void 0,d)};if(xs(te))return this.consumeWhiteSpace(),this.peekCodePoint(0)===di||this.peekCodePoint(0)===Vt?(this.consumeCodePoint(),{type:22,value:M.apply(void 0,d)}):(this.consumeBadUrlRemnants(),ta);if(te===yn||te===On||te===Gn||Uo(te))return this.consumeBadUrlRemnants(),ta;if(te===jr)if(Ro(te,this.peekCodePoint(0)))d.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),ta;else d.push(te)}},b.prototype.consumeWhiteSpace=function(){for(;xs(this.peekCodePoint(0));)this.consumeCodePoint()},b.prototype.consumeBadUrlRemnants=function(){for(;;){var d=this.consumeCodePoint();if(d===Vt||d===di)return;Ro(d,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},b.prototype.consumeStringSlice=function(d){for(var w=5e4,y="";d>0;){var te=Math.min(w,d);y+=M.apply(void 0,this._value.splice(0,te)),d-=te}return this._value.shift(),y},b.prototype.consumeStringToken=function(d){var w="",y=0;do{var te=this._value[y];if(te===di||te===void 0||te===d)return w+=this.consumeStringSlice(y),{type:0,value:w};if(te===Hr)return this._value.splice(0,y),oa;if(te===jr){var Ee=this._value[y+1];Ee!==di&&Ee!==void 0&&(Ee===Hr?(w+=this.consumeStringSlice(y),y=-1,this._value.shift()):Ro(te,Ee)&&(w+=this.consumeStringSlice(y),w+=M(this.consumeEscapedCodePoint()),y=-1))}y++}while(!0)},b.prototype.consumeNumber=function(){var d=[],w=nr,y=this.peekCodePoint(0);for((y===ci||y===er)&&d.push(this.consumeCodePoint());Za(this.peekCodePoint(0));)d.push(this.consumeCodePoint());y=this.peekCodePoint(0);var te=this.peekCodePoint(1);if(y===Ti&&Za(te))for(d.push(this.consumeCodePoint(),this.consumeCodePoint()),w=Dr;Za(this.peekCodePoint(0));)d.push(this.consumeCodePoint());y=this.peekCodePoint(0),te=this.peekCodePoint(1);var Ee=this.peekCodePoint(2);if((y===Di||y===Ra)&&((te===ci||te===er)&&Za(Ee)||Za(te)))for(d.push(this.consumeCodePoint(),this.consumeCodePoint()),w=Dr;Za(this.peekCodePoint(0));)d.push(this.consumeCodePoint());return[vl(d),w]},b.prototype.consumeNumericToken=function(){var d=this.consumeNumber(),w=d[0],y=d[1],te=this.peekCodePoint(0),Ee=this.peekCodePoint(1),We=this.peekCodePoint(2);if(Cs(te,Ee,We)){var ht=this.consumeName();return{type:15,number:w,flags:y,unit:ht}}return te===Ai?(this.consumeCodePoint(),{type:16,number:w,flags:y}):{type:17,number:w,flags:y}},b.prototype.consumeEscapedCodePoint=function(){var d=this.consumeCodePoint();if(_o(d)){for(var w=M(d);_o(this.peekCodePoint(0))&&w.length<6;)w+=M(this.consumeCodePoint());xs(this.peekCodePoint(0))&&this.consumeCodePoint();var y=parseInt(w,16);return y===0||fa(y)||y>1114111?bi:y}return d===di?bi:d},b.prototype.consumeName=function(){for(var d="";;){var w=this.consumeCodePoint();if($s(w))d+=M(w);else if(Ro(w,this.peekCodePoint(0)))d+=M(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(w),d}},b}(),ls=function(){function b(d){this._tokens=d}return b.create=function(d){var w=new ss;return w.write(d),new b(w.read())},b.parseValue=function(d){return b.create(d).parseComponentValue()},b.parseValues=function(d){return b.create(d).parseComponentValues()},b.prototype.parseComponentValue=function(){for(var d=this.consumeToken();d.type===31;)d=this.consumeToken();if(d.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(d);var w=this.consumeComponentValue();do d=this.consumeToken();while(d.type===31);if(d.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 d=[];;){var w=this.consumeComponentValue();if(w.type===32)return d;d.push(w),d.push()}},b.prototype.consumeComponentValue=function(){var d=this.consumeToken();switch(d.type){case 11:case 28:case 2:return this.consumeSimpleBlock(d.type);case 19:return this.consumeFunction(d)}return d},b.prototype.consumeSimpleBlock=function(d){for(var w={type:d,values:[]},y=this.consumeToken();;){if(y.type===32||mu(y,d))return w;this.reconsumeToken(y),w.values.push(this.consumeComponentValue()),y=this.consumeToken()}},b.prototype.consumeFunction=function(d){for(var w={name:d.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 d=this._tokens.shift();return typeof d=="undefined"?Qa:d},b.prototype.reconsumeToken=function(d){this._tokens.unshift(d)},b}(),Ls=function(b){return b.type===15},Jo=function(b){return b.type===17},Io=function(b){return b.type===20},hu=function(b){return b.type===0},rA=function(b,d){return Io(b)&&b.value===d},lc=function(b){return b.type!==31},pu=function(b){return b.type!==31&&b.type!==4},cl=function(b){var d=[],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");d.push(w),w=[];return}y.type!==31&&w.push(y)}),w.length&&d.push(w),d},mu=function(b,d){return d===11&&b.type===12||d===28&&b.type===29?!0:d===2&&b.type===3},tl=function(b){return b.type===17||b.type===15},bs=function(b){return b.type===16||tl(b)},qc=function(b){return b.length>1?[b[0],b[1]]:[b[0]]},Us={type:17,number:0,flags:nr},Pu={type:16,number:50,flags:nr},cc={type:16,number:100,flags:nr},Hl=function(b,d,w){var y=b[0],te=b[1];return[ro(y,d),ro(typeof te!="undefined"?te:y,w)]},ro=function(b,d){if(b.type===16)return b.number/100*d;if(Ls(b))switch(b.unit){case"rem":case"em":return 16*b.number;case"px":default:return b.number}return b.number},Gs="deg",gu="grad",EA="rad",cs="turn",Ba={name:"angle",parse:function(b,d){if(d.type===15)switch(d.unit){case Gs:return Math.PI*d.number/180;case gu:return Math.PI/200*d.number;case EA:return d.number;case cs:return Math.PI*2*d.number}throw new Error("Unsupported angle type")}},ya=function(b){return b.type===15&&(b.unit===Gs||b.unit===gu||b.unit===EA||b.unit===cs)},rs=function(b){var d=b.filter(Io).map(function(w){return w.value}).join(" ");switch(d){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Us,Us];case"to top":case"bottom":return bo(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Us,cc];case"to right":case"left":return bo(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[cc,cc];case"to bottom":case"top":return bo(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[cc,Us];case"to left":case"right":return bo(270)}return 0},bo=function(b){return Math.PI*b/180},$o={name:"color",parse:function(b,d){if(d.type===18){var w=wl[d.name];if(typeof w=="undefined")throw new Error('Attempting to parse an unsupported color function "'+d.name+'"');return w(b,d.values)}if(d.type===5){if(d.value.length===3){var y=d.value.substring(0,1),te=d.value.substring(1,2),Ee=d.value.substring(2,3);return Es(parseInt(y+y,16),parseInt(te+te,16),parseInt(Ee+Ee,16),1)}if(d.value.length===4){var y=d.value.substring(0,1),te=d.value.substring(1,2),Ee=d.value.substring(2,3),We=d.value.substring(3,4);return Es(parseInt(y+y,16),parseInt(te+te,16),parseInt(Ee+Ee,16),parseInt(We+We,16)/255)}if(d.value.length===6){var y=d.value.substring(0,2),te=d.value.substring(2,4),Ee=d.value.substring(4,6);return Es(parseInt(y,16),parseInt(te,16),parseInt(Ee,16),1)}if(d.value.length===8){var y=d.value.substring(0,2),te=d.value.substring(2,4),Ee=d.value.substring(4,6),We=d.value.substring(6,8);return Es(parseInt(y,16),parseInt(te,16),parseInt(Ee,16),parseInt(We,16)/255)}}if(d.type===20){var ht=rl[d.value.toUpperCase()];if(typeof ht!="undefined")return ht}return rl.TRANSPARENT}},Zo=function(b){return(255&b)===0},Do=function(b){var d=255&b,w=255&b>>8,y=255&b>>16,te=255&b>>24;return d<255?"rgba("+te+","+y+","+w+","+d/255+")":"rgb("+te+","+y+","+w+")"},Es=function(b,d,w,y){return(b<<24|d<<16|w<<8|Math.round(y*255)<<0)>>>0},nc=function(b,d){if(b.type===17)return b.number;if(b.type===16){var w=d===3?1:255;return d===3?b.number/100*w:Math.round(b.number/100*w)}return 0},Vc=function(b,d){var w=d.filter(pu);if(w.length===3){var y=w.map(nc),te=y[0],Ee=y[1],We=y[2];return Es(te,Ee,We,1)}if(w.length===4){var ht=w.map(nc),te=ht[0],Ee=ht[1],We=ht[2],pt=ht[3];return Es(te,Ee,We,pt)}return 0};function Xs(b,d,w){return w<0&&(w+=1),w>=1&&(w-=1),w<1/6?(d-b)*w*6+b:w<1/2?d:w<2/3?(d-b)*6*(2/3-w)+b:b}var vu=function(b,d){var w=d.filter(pu),y=w[0],te=w[1],Ee=w[2],We=w[3],ht=(y.type===17?bo(y.number):Ba.parse(b,y))/(Math.PI*2),pt=bs(te)?te.number/100:0,tr=bs(Ee)?Ee.number/100:0,cr=typeof We!="undefined"&&bs(We)?ro(We,1):1;if(pt===0)return Es(tr*255,tr*255,tr*255,1);var hr=tr<=.5?tr*(pt+1):tr+pt-tr*pt,qr=tr*2-hr,Ri=Xs(qr,hr,ht+1/3),Un=Xs(qr,hr,ht),hi=Xs(qr,hr,ht-1/3);return Es(Ri*255,Un*255,hi*255,cr)},wl={hsl:vu,hsla:vu,rgb:Vc,rgba:Vc},eu=function(b,d){return $o.parse(b,ls.create(d).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},_d={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(b,d){return d.map(function(w){if(Io(w))switch(w.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},nA={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$u=function(b,d){var w=$o.parse(b,d[0]),y=d[1];return y&&bs(y)?{color:w,stop:y}:{color:w,stop:null}},uf=function(b,d){var w=b[0],y=b[b.length-1];w.stop===null&&(w.stop=Us),y.stop===null&&(y.stop=cc);for(var te=[],Ee=0,We=0;We<b.length;We++){var ht=b[We].stop;if(ht!==null){var pt=ro(ht,d);pt>Ee?te.push(pt):te.push(Ee),Ee=pt}else te.push(null)}for(var tr=null,We=0;We<te.length;We++){var cr=te[We];if(cr===null)tr===null&&(tr=We);else if(tr!==null){for(var hr=We-tr,qr=te[tr-1],Ri=(cr-qr)/(hr+1),Un=1;Un<=hr;Un++)te[tr+Un-1]=Ri*Un;tr=null}}return b.map(function(hi,Ga){var ea=hi.color;return{color:ea,stop:Math.max(Math.min(1,te[Ga]/d),0)}})},Wc=function(b,d,w){var y=d/2,te=w/2,Ee=ro(b[0],d)-y,We=te-ro(b[1],w);return(Math.atan2(We,Ee)+Math.PI*2)%(Math.PI*2)},GA=function(b,d,w){var y=typeof b=="number"?b:Wc(b,d,w),te=Math.abs(d*Math.sin(y))+Math.abs(w*Math.cos(y)),Ee=d/2,We=w/2,ht=te/2,pt=Math.sin(y-Math.PI/2)*ht,tr=Math.cos(y-Math.PI/2)*ht;return[te,Ee-tr,Ee+tr,We-pt,We+pt]},Dc=function(b,d){return Math.sqrt(b*b+d*d)},Id=function(b,d,w,y,te){var Ee=[[0,0],[0,d],[b,0],[b,d]];return Ee.reduce(function(We,ht){var pt=ht[0],tr=ht[1],cr=Dc(w-pt,y-tr);return(te?cr<We.optimumDistance:cr>We.optimumDistance)?{optimumCorner:ht,optimumDistance:cr}:We},{optimumDistance:te?1/0:-1/0,optimumCorner:null}).optimumCorner},Yo=function(b,d,w,y,te){var Ee=0,We=0;switch(b.size){case 0:b.shape===0?Ee=We=Math.min(Math.abs(d),Math.abs(d-y),Math.abs(w),Math.abs(w-te)):b.shape===1&&(Ee=Math.min(Math.abs(d),Math.abs(d-y)),We=Math.min(Math.abs(w),Math.abs(w-te)));break;case 2:if(b.shape===0)Ee=We=Math.min(Dc(d,w),Dc(d,w-te),Dc(d-y,w),Dc(d-y,w-te));else if(b.shape===1){var ht=Math.min(Math.abs(w),Math.abs(w-te))/Math.min(Math.abs(d),Math.abs(d-y)),pt=Id(y,te,d,w,!0),tr=pt[0],cr=pt[1];Ee=Dc(tr-d,(cr-w)/ht),We=ht*Ee}break;case 1:b.shape===0?Ee=We=Math.max(Math.abs(d),Math.abs(d-y),Math.abs(w),Math.abs(w-te)):b.shape===1&&(Ee=Math.max(Math.abs(d),Math.abs(d-y)),We=Math.max(Math.abs(w),Math.abs(w-te)));break;case 3:if(b.shape===0)Ee=We=Math.max(Dc(d,w),Dc(d,w-te),Dc(d-y,w),Dc(d-y,w-te));else if(b.shape===1){var ht=Math.max(Math.abs(w),Math.abs(w-te))/Math.max(Math.abs(d),Math.abs(d-y)),hr=Id(y,te,d,w,!1),tr=hr[0],cr=hr[1];Ee=Dc(tr-d,(cr-w)/ht),We=ht*Ee}break}return Array.isArray(b.size)&&(Ee=ro(b.size[0],y),We=b.size.length===2?ro(b.size[1],te):Ee),[Ee,We]},Oo=function(b,d){var w=bo(180),y=[];return cl(d).forEach(function(te,Ee){if(Ee===0){var We=te[0];if(We.type===20&&We.value==="to"){w=rs(te);return}else if(ya(We)){w=Ba.parse(b,We);return}}var ht=$u(b,te);y.push(ht)}),{angle:w,stops:y,type:1}},qo=function(b,d){var w=bo(180),y=[];return cl(d).forEach(function(te,Ee){if(Ee===0){var We=te[0];if(We.type===20&&["top","left","right","bottom"].indexOf(We.value)!==-1){w=rs(te);return}else if(ya(We)){w=(Ba.parse(b,We)+bo(270))%bo(360);return}}var ht=$u(b,te);y.push(ht)}),{angle:w,stops:y,type:1}},bc=function(b,d){var w=bo(180),y=[],te=1,Ee=0,We=3,ht=[];return cl(d).forEach(function(pt,tr){var cr=pt[0];if(tr===0){if(Io(cr)&&cr.value==="linear"){te=1;return}else if(Io(cr)&&cr.value==="radial"){te=2;return}}if(cr.type===18){if(cr.name==="from"){var hr=$o.parse(b,cr.values[0]);y.push({stop:Us,color:hr})}else if(cr.name==="to"){var hr=$o.parse(b,cr.values[0]);y.push({stop:cc,color:hr})}else if(cr.name==="color-stop"){var qr=cr.values.filter(pu);if(qr.length===2){var hr=$o.parse(b,qr[1]),Ri=qr[0];Jo(Ri)&&y.push({stop:{type:16,number:Ri.number*100,flags:Ri.flags},color:hr})}}}}),te===1?{angle:(w+bo(180))%bo(360),stops:y,type:te}:{size:We,shape:Ee,stops:y,position:ht,type:te}},jl="closest-side",XA="farthest-side",bu="closest-corner",Zu="farthest-corner",Fd="circle",Md="ellipse",Vu="cover",Wu="contain",Fo=function(b,d){var w=0,y=3,te=[],Ee=[];return cl(d).forEach(function(We,ht){var pt=!0;if(ht===0){var tr=!1;pt=We.reduce(function(hr,qr){if(tr)if(Io(qr))switch(qr.value){case"center":return Ee.push(Pu),hr;case"top":case"left":return Ee.push(Us),hr;case"right":case"bottom":return Ee.push(cc),hr}else(bs(qr)||tl(qr))&&Ee.push(qr);else if(Io(qr))switch(qr.value){case Fd:return w=0,!1;case Md:return w=1,!1;case"at":return tr=!0,!1;case jl:return y=0,!1;case Vu:case XA:return y=1,!1;case Wu:case bu:return y=2,!1;case Zu:return y=3,!1}else if(tl(qr)||bs(qr))return Array.isArray(y)||(y=[]),y.push(qr),!1;return hr},pt)}if(pt){var cr=$u(b,We);te.push(cr)}}),{size:y,shape:w,stops:te,position:Ee,type:2}},yu=function(b,d){var w=0,y=3,te=[],Ee=[];return cl(d).forEach(function(We,ht){var pt=!0;if(ht===0?pt=We.reduce(function(cr,hr){if(Io(hr))switch(hr.value){case"center":return Ee.push(Pu),!1;case"top":case"left":return Ee.push(Us),!1;case"right":case"bottom":return Ee.push(cc),!1}else if(bs(hr)||tl(hr))return Ee.push(hr),!1;return cr},pt):ht===1&&(pt=We.reduce(function(cr,hr){if(Io(hr))switch(hr.value){case Fd:return w=0,!1;case Md:return w=1,!1;case Wu:case jl:return y=0,!1;case XA:return y=1,!1;case bu:return y=2,!1;case Vu:case Zu:return y=3,!1}else if(tl(hr)||bs(hr))return Array.isArray(y)||(y=[]),y.push(hr),!1;return cr},pt)),pt){var tr=$u(b,We);te.push(tr)}}),{size:y,shape:w,stops:te,position:Ee,type:2}},Gu=function(b){return b.type===1},b0=function(b){return b.type===2},iA={name:"image",parse:function(b,d){if(d.type===22){var w={url:d.value,type:0};return b.cache.addImage(d.value),w}if(d.type===18){var y=Af[d.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported image function "'+d.name+'"');return y(b,d.values)}throw new Error("Unsupported image type "+d.type)}};function Bh(b){return!(b.type===20&&b.value==="none")&&(b.type!==18||!!Af[b.name])}var Af={"linear-gradient":Oo,"-moz-linear-gradient":qo,"-ms-linear-gradient":qo,"-o-linear-gradient":qo,"-webkit-linear-gradient":qo,"radial-gradient":Fo,"-moz-radial-gradient":yu,"-ms-radial-gradient":yu,"-o-radial-gradient":yu,"-webkit-radial-gradient":yu,"-webkit-gradient":bc},Ld={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(b,d){if(d.length===0)return[];var w=d[0];return w.type===20&&w.value==="none"?[]:d.filter(function(y){return pu(y)&&Bh(y)}).map(function(y){return iA.parse(b,y)})}},zf={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(b,d){return d.map(function(w){if(Io(w))switch(w.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},Sh={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(b,d){return cl(d).map(function(w){return w.filter(bs)}).map(qc)}},_A={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(b,d){return cl(d).map(function(w){return w.filter(Io).map(function(y){return y.value}).join(" ")}).map(df)}},df=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}},xl;(function(b){b.AUTO="auto",b.CONTAIN="contain",b.COVER="cover"})(xl||(xl={}));var Cl={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(b,d){return cl(d).map(function(w){return w.filter(Oc)})}},Oc=function(b){return Io(b)||bs(b)},Nc=function(b){return{name:"border-"+b+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},y0=Nc("top"),IA=Nc("right"),Eh=Nc("bottom"),FA=Nc("left"),kd=function(b){return{name:"border-radius-"+b,initialValue:"0 0",prefix:!1,type:1,parse:function(d,w){return qc(w.filter(bs))}}},$p=kd("top-left"),aA=kd("top-right"),tu=kd("bottom-right"),yc=kd("bottom-left"),Vo=function(b){return{name:"border-"+b+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(d,w){switch(w){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},JA=Vo("top"),$f=Vo("right"),Zf=Vo("bottom"),Pc=Vo("left"),YA=function(b){return{name:"border-"+b+"-width",initialValue:"0",type:0,prefix:!1,parse:function(d,w){return Ls(w)?w.number:0}}},ff=YA("top"),qA=YA("right"),w0=YA("bottom"),x0=YA("left"),zl={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ed={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(b,d){switch(d){case"rtl":return 1;case"ltr":default:return 0}}},C0={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(b,d){return d.filter(Io).reduce(function(w,y){return w|fe(y.value)},0)}},fe=function(b){switch(b){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Ce={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(b,d){switch(d){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,d){return d.type===20&&d.value==="normal"?0:d.type===17||d.type===15?d.number:0}},lt;(function(b){b.NORMAL="normal",b.STRICT="strict"})(lt||(lt={}));var Bt={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,d){switch(d){case"strict":return lt.STRICT;case"normal":default:return lt.NORMAL}}},yt={name:"line-height",initialValue:"normal",prefix:!1,type:4},$t=function(b,d){return Io(b)&&b.value==="normal"?1.2*d:b.type===17?d*b.number:bs(b)?ro(b,d):d},zt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(b,d){return d.type===20&&d.value==="none"?null:iA.parse(b,d)}},Kt={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(b,d){switch(d){case"inside":return 0;case"outside":default:return 1}}},ur={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(b,d){switch(d){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}},pr=_r("top"),tn=_r("right"),Vr=_r("bottom"),Yr=_r("left"),Nn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(b,d){return d.filter(Io).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,d){switch(d){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"),$n=Fn("right"),Ui=Fn("bottom"),zi=Fn("left"),fi={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(b,d){switch(d){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,d){switch(d){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,d){return d.length===1&&rA(d[0],"none")?[]:cl(d).map(function(w){for(var y={color:rl.TRANSPARENT,offsetX:Us,offsetY:Us,blur:Us},te=0,Ee=0;Ee<w.length;Ee++){var We=w[Ee];tl(We)?(te===0?y.offsetX=We:te===1?y.offsetY=We:y.blur=We,te++):y.color=$o.parse(b,We)}return y})}},Jn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(b,d){switch(d){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},mi={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(b,d){if(d.type===20&&d.value==="none")return null;if(d.type===18){var w=ai[d.name];if(typeof w=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+d.name+'"');return w(d.values)}return null}},ii=function(b){var d=b.filter(function(w){return w.type===17}).map(function(w){return w.number});return d.length===6?d:null},Pn=function(b){var d=b.filter(function(pt){return pt.type===17}).map(function(pt){return pt.number}),w=d[0],y=d[1];d[2],d[3];var te=d[4],Ee=d[5];d[6],d[7],d[8],d[9],d[10],d[11];var We=d[12],ht=d[13];return d[14],d[15],d.length===16?[w,y,te,Ee,We,ht]:null},ai={matrix:ii,matrix3d:Pn},Vi={type:16,number:50,flags:nr},Pa=[Vi,Vi],ma={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(b,d){var w=d.filter(bs);return w.length!==2?Pa:[w[0],w[1]]}},Wi={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(b,d){switch(d){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ia;(function(b){b.NORMAL="normal",b.BREAK_ALL="break-all",b.KEEP_ALL="keep-all"})(Ia||(Ia={}));for(var Ka={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(b,d){switch(d){case"break-all":return Ia.BREAK_ALL;case"keep-all":return Ia.KEEP_ALL;case"normal":default:return Ia.NORMAL}}},es={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(b,d){if(d.type===20)return{auto:!0,order:0};if(Jo(d))return{auto:!1,order:d.number};throw new Error("Invalid z-index number parsed")}},lo={name:"time",parse:function(b,d){if(d.type===15)switch(d.unit.toLowerCase()){case"s":return 1e3*d.number;case"ms":return d.number}throw new Error("Unsupported time type")}},ys={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(b,d){return Jo(d)?d.number:1}},us={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ga={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(b,d){return d.filter(Io).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})}},ol={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(b,d){var w=[],y=[];return d.forEach(function(te){switch(te.type){case 20:case 0:w.push(te.value);break;case 17:w.push(te.number.toString());break;case 4:y.push(w.join(" ")),w.length=0;break}}),w.length&&y.push(w.join(" ")),y.map(function(te){return te.indexOf(" ")===-1?te:"'"+te+"'"})}},go={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},ts={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(b,d){if(Jo(d))return d.number;if(Io(d))switch(d.value){case"bold":return 700;case"normal":default:return 400}return 400}},ns={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(b,d){return d.filter(Io).map(function(w){return w.value})}},wc={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(b,d){switch(d){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},oi=function(b,d){return(b&d)!==0},Gi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(b,d){if(d.length===0)return[];var w=d[0];return w.type===20&&w.value==="none"?[]:d}},$i={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(b,d){if(d.length===0)return null;var w=d[0];if(w.type===20&&w.value==="none")return null;for(var y=[],te=d.filter(lc),Ee=0;Ee<te.length;Ee++){var We=te[Ee],ht=te[Ee+1];if(We.type===20){var pt=ht&&Jo(ht)?ht.number:1;y.push({counter:We.value,increment:pt})}}return y}},Oi={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(b,d){if(d.length===0)return[];for(var w=[],y=d.filter(lc),te=0;te<y.length;te++){var Ee=y[te],We=y[te+1];if(Io(Ee)&&Ee.value!=="none"){var ht=We&&Jo(We)?We.number:0;w.push({counter:Ee.value,reset:ht})}}return w}},yo={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(b,d){return d.filter(Ls).map(function(w){return lo.parse(b,w)})}},Ni={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(b,d){if(d.length===0)return null;var w=d[0];if(w.type===20&&w.value==="none")return null;var y=[],te=d.filter(hu);if(te.length%2!==0)return null;for(var Ee=0;Ee<te.length;Ee+=2){var We=te[Ee].value,ht=te[Ee+1].value;y.push({open:We,close:ht})}return y}},ua=function(b,d,w){if(!b)return"";var y=b[Math.min(d,b.length-1)];return y?w?y.open:y.close:""},$a={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(b,d){return d.length===1&&rA(d[0],"none")?[]:cl(d).map(function(w){for(var y={color:255,offsetX:Us,offsetY:Us,blur:Us,spread:Us,inset:!1},te=0,Ee=0;Ee<w.length;Ee++){var We=w[Ee];rA(We,"inset")?y.inset=!0:tl(We)?(te===0?y.offsetX=We:te===1?y.offsetY=We:te===2?y.blur=We:y.spread=We,te++):y.color=$o.parse(b,We)}return y})}},Va={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(b,d){var w=[0,1,2],y=[];return d.filter(Io).forEach(function(te){switch(te.value){case"stroke":y.push(1);break;case"fill":y.push(0);break;case"markers":y.push(2);break}}),w.forEach(function(te){y.indexOf(te)===-1&&y.push(te)}),y}},Fl={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,d){return Ls(d)?d.number:0}},Gc=function(){function b(d,w){var y,te;this.animationDuration=Hn(d,yo,w.animationDuration),this.backgroundClip=Hn(d,_d,w.backgroundClip),this.backgroundColor=Hn(d,nA,w.backgroundColor),this.backgroundImage=Hn(d,Ld,w.backgroundImage),this.backgroundOrigin=Hn(d,zf,w.backgroundOrigin),this.backgroundPosition=Hn(d,Sh,w.backgroundPosition),this.backgroundRepeat=Hn(d,_A,w.backgroundRepeat),this.backgroundSize=Hn(d,Cl,w.backgroundSize),this.borderTopColor=Hn(d,y0,w.borderTopColor),this.borderRightColor=Hn(d,IA,w.borderRightColor),this.borderBottomColor=Hn(d,Eh,w.borderBottomColor),this.borderLeftColor=Hn(d,FA,w.borderLeftColor),this.borderTopLeftRadius=Hn(d,$p,w.borderTopLeftRadius),this.borderTopRightRadius=Hn(d,aA,w.borderTopRightRadius),this.borderBottomRightRadius=Hn(d,tu,w.borderBottomRightRadius),this.borderBottomLeftRadius=Hn(d,yc,w.borderBottomLeftRadius),this.borderTopStyle=Hn(d,JA,w.borderTopStyle),this.borderRightStyle=Hn(d,$f,w.borderRightStyle),this.borderBottomStyle=Hn(d,Zf,w.borderBottomStyle),this.borderLeftStyle=Hn(d,Pc,w.borderLeftStyle),this.borderTopWidth=Hn(d,ff,w.borderTopWidth),this.borderRightWidth=Hn(d,qA,w.borderRightWidth),this.borderBottomWidth=Hn(d,w0,w.borderBottomWidth),this.borderLeftWidth=Hn(d,x0,w.borderLeftWidth),this.boxShadow=Hn(d,$a,w.boxShadow),this.color=Hn(d,zl,w.color),this.direction=Hn(d,ed,w.direction),this.display=Hn(d,C0,w.display),this.float=Hn(d,Ce,w.cssFloat),this.fontFamily=Hn(d,ol,w.fontFamily),this.fontSize=Hn(d,go,w.fontSize),this.fontStyle=Hn(d,wc,w.fontStyle),this.fontVariant=Hn(d,ns,w.fontVariant),this.fontWeight=Hn(d,ts,w.fontWeight),this.letterSpacing=Hn(d,Je,w.letterSpacing),this.lineBreak=Hn(d,Bt,w.lineBreak),this.lineHeight=Hn(d,yt,w.lineHeight),this.listStyleImage=Hn(d,zt,w.listStyleImage),this.listStylePosition=Hn(d,Kt,w.listStylePosition),this.listStyleType=Hn(d,ur,w.listStyleType),this.marginTop=Hn(d,pr,w.marginTop),this.marginRight=Hn(d,tn,w.marginRight),this.marginBottom=Hn(d,Vr,w.marginBottom),this.marginLeft=Hn(d,Yr,w.marginLeft),this.opacity=Hn(d,ys,w.opacity);var Ee=Hn(d,Nn,w.overflow);this.overflowX=Ee[0],this.overflowY=Ee[Ee.length>1?1:0],this.overflowWrap=Hn(d,xn,w.overflowWrap),this.paddingTop=Hn(d,Bn,w.paddingTop),this.paddingRight=Hn(d,$n,w.paddingRight),this.paddingBottom=Hn(d,Ui,w.paddingBottom),this.paddingLeft=Hn(d,zi,w.paddingLeft),this.paintOrder=Hn(d,Va,w.paintOrder),this.position=Hn(d,na,w.position),this.textAlign=Hn(d,fi,w.textAlign),this.textDecorationColor=Hn(d,us,(y=w.textDecorationColor)!==null&&y!==void 0?y:w.color),this.textDecorationLine=Hn(d,ga,(te=w.textDecorationLine)!==null&&te!==void 0?te:w.textDecoration),this.textShadow=Hn(d,wa,w.textShadow),this.textTransform=Hn(d,Jn,w.textTransform),this.transform=Hn(d,mi,w.transform),this.transformOrigin=Hn(d,ma,w.transformOrigin),this.visibility=Hn(d,Wi,w.visibility),this.webkitTextStrokeColor=Hn(d,Fl,w.webkitTextStrokeColor),this.webkitTextStrokeWidth=Hn(d,nl,w.webkitTextStrokeWidth),this.wordBreak=Hn(d,Ka,w.wordBreak),this.zIndex=Hn(d,es,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 oi(this.display,4)||oi(this.display,33554432)||oi(this.display,268435456)||oi(this.display,536870912)||oi(this.display,67108864)||oi(this.display,134217728)},b}(),Rs=function(){function b(d,w){this.content=Hn(d,Gi,w.content),this.quotes=Hn(d,Ni,w.quotes)}return b}(),Tc=function(){function b(d,w){this.counterIncrement=Hn(d,$i,w.counterIncrement),this.counterReset=Hn(d,Oi,w.counterReset)}return b}(),Hn=function(b,d,w){var y=new ss,te=w!==null&&typeof w!="undefined"?w.toString():d.initialValue;y.write(te);var Ee=new ls(y.read());switch(d.type){case 2:var We=Ee.parseComponentValue();return d.parse(b,Io(We)?We.value:d.initialValue);case 0:return d.parse(b,Ee.parseComponentValue());case 1:return d.parse(b,Ee.parseComponentValues());case 4:return Ee.parseComponentValue();case 3:switch(d.format){case"angle":return Ba.parse(b,Ee.parseComponentValue());case"color":return $o.parse(b,Ee.parseComponentValue());case"image":return iA.parse(b,Ee.parseComponentValue());case"length":var ht=Ee.parseComponentValue();return tl(ht)?ht:Us;case"length-percentage":var pt=Ee.parseComponentValue();return bs(pt)?pt:Us;case"time":return lo.parse(b,Ee.parseComponentValue())}break}},uc="data-html2canvas-debug",MA=function(b){var d=b.getAttribute(uc);switch(d){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},co=function(b,d){var w=MA(b);return w===1||d===w},hn=function(){function b(d,w){if(this.context=d,this.textNodes=[],this.elements=[],this.flags=0,co(w,3))debugger;this.styles=new Gc(d,window.getComputedStyle(w,null)),L0(w)&&(this.styles.animationDuration.some(function(y){return y>0})&&(w.style.animationDuration="0s"),this.styles.transform!==null&&(w.style.transform="none")),this.bounds=W(this.context,w),co(w,4)&&(this.flags|=16)}return b}(),Mo="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ul="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",As=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ia=0;ia<ul.length;ia++)As[ul.charCodeAt(ia)]=ia;for(var Bl=function(b){var d=b.length*.75,w=b.length,y,te=0,Ee,We,ht,pt;b[b.length-1]==="="&&(d--,b[b.length-2]==="="&&d--);var tr=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(d):new Array(d),cr=Array.isArray(tr)?tr:new Uint8Array(tr);for(y=0;y<w;y+=4)Ee=As[b.charCodeAt(y)],We=As[b.charCodeAt(y+1)],ht=As[b.charCodeAt(y+2)],pt=As[b.charCodeAt(y+3)],cr[te++]=Ee<<2|We>>4,cr[te++]=(We&15)<<4|ht>>2,cr[te++]=(ht&3)<<6|pt&63;return tr},$l=function(b){for(var d=b.length,w=[],y=0;y<d;y+=2)w.push(b[y+1]<<8|b[y]);return w},Uc=function(b){for(var d=b.length,w=[],y=0;y<d;y+=4)w.push(b[y+3]<<24|b[y+2]<<16|b[y+1]<<8|b[y]);return w},xc=5,Sl=11,Al=2,oA=Sl-xc,Ml=65536>>xc,Qs=1<<xc,El=Qs-1,il=1024>>xc,ks=Ml+il,Cc=ks,wu=32,Tu=Cc+wu,xu=65536>>Sl,hf=1<<oA,Vf=hf-1,ao=function(b,d,w){return b.slice?b.slice(d,w):new Uint16Array(Array.prototype.slice.call(b,d,w))},Wo=function(b,d,w){return b.slice?b.slice(d,w):new Uint32Array(Array.prototype.slice.call(b,d,w))},Zl=function(b,d){var w=Bl(b),y=Array.isArray(w)?Uc(w):new Uint32Array(w),te=Array.isArray(w)?$l(w):new Uint16Array(w),Ee=24,We=ao(te,Ee/2,y[4]/2),ht=y[5]===2?ao(te,(Ee+y[4])/2):Wo(y,Math.ceil((Ee+y[4])/4));return new ds(y[0],y[1],y[2],y[3],We,ht)},ds=function(){function b(d,w,y,te,Ee,We){this.initialValue=d,this.errorValue=w,this.highStart=y,this.highValueIndex=te,this.index=Ee,this.data=We}return b.prototype.get=function(d){var w;if(d>=0){if(d<55296||d>56319&&d<=65535)return w=this.index[d>>xc],w=(w<<Al)+(d&El),this.data[w];if(d<=65535)return w=this.index[Ml+(d-55296>>xc)],w=(w<<Al)+(d&El),this.data[w];if(d<this.highStart)return w=Tu-xu+(d>>Sl),w=this.index[w],w+=d>>xc&Vf,w=this.index[w],w=(w<<Al)+(d&El),this.data[w];if(d<=1114111)return this.data[this.highValueIndex]}return this.errorValue},b}(),Ll="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Vl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),Js=0;Js<Ll.length;Js++)Vl[Ll.charCodeAt(Js)]=Js;var Cu=1,pf=2,mf=3,td=4,uo=5,_s=7,Bu=8,Su=9,Wl=10,Wf=11,Uu=12,Gf=13,Xf=14,rd=15,Dd=function(b){for(var d=[],w=0,y=b.length;w<y;){var te=b.charCodeAt(w++);if(te>=55296&&te<=56319&&w<y){var Ee=b.charCodeAt(w++);(Ee&64512)===56320?d.push(((te&1023)<<10)+(Ee&1023)+65536):(d.push(te),w--)}else d.push(te)}return d},Od=function(){for(var b=[],d=0;d<arguments.length;d++)b[d]=arguments[d];if(String.fromCodePoint)return String.fromCodePoint.apply(String,b);var w=b.length;if(!w)return"";for(var y=[],te=-1,Ee="";++te<w;){var We=b[te];We<=65535?y.push(We):(We-=65536,y.push((We>>10)+55296,We%1024+56320)),(te+1===w||y.length>16384)&&(Ee+=String.fromCharCode.apply(String,y),y.length=0)}return Ee},nd=Zl(Mo),zr="\xD7",Nd="\xF7",gf=function(b){return nd.get(b)},Jf=function(b,d,w){var y=w-2,te=d[y],Ee=d[w-1],We=d[w];if(Ee===pf&&We===mf)return zr;if(Ee===pf||Ee===mf||Ee===td||We===pf||We===mf||We===td)return Nd;if(Ee===Bu&&[Bu,Su,Wf,Uu].indexOf(We)!==-1||(Ee===Wf||Ee===Su)&&(We===Su||We===Wl)||(Ee===Uu||Ee===Wl)&&We===Wl||We===Gf||We===uo||We===_s||Ee===Cu)return zr;if(Ee===Gf&&We===Xf){for(;te===uo;)te=d[--y];if(te===Xf)return zr}if(Ee===rd&&We===rd){for(var ht=0;te===rd;)ht++,te=d[--y];if(ht%2===0)return zr}return Nd},vf=function(b){var d=Dd(b),w=d.length,y=0,te=0,Ee=d.map(gf);return{next:function(){if(y>=w)return{done:!0,value:null};for(var We=zr;y<w&&(We=Jf(d,Ee,++y))===zr;);if(We!==zr||y===w){var ht=Od.apply(null,d.slice(te,y));return te=y,{value:ht,done:!1}}return{done:!0,value:null}}}},_h=function(b){for(var d=vf(b),w=[],y;!(y=d.next()).done;)y.value&&w.push(y.value.slice());return w},Ih=function(b){var d=123;if(b.createRange){var w=b.createRange();if(w.getBoundingClientRect){var y=b.createElement("boundtest");y.style.height=d+"px",y.style.display="block",b.body.appendChild(y),w.selectNode(y);var te=w.getBoundingClientRect(),Ee=Math.round(te.height);if(b.body.removeChild(y),Ee===d)return!0}}return!1},Yf=function(b){var d=b.createElement("boundtest");d.style.width="50px",d.style.display="block",d.style.fontSize="12px",d.style.letterSpacing="0px",d.style.wordSpacing="0px",b.body.appendChild(d);var w=b.createRange();d.innerHTML=typeof"".repeat=="function"?"&#128104;".repeat(10):"";var y=d.firstChild,te=v(y.data).map(function(pt){return M(pt)}),Ee=0,We={},ht=te.every(function(pt,tr){w.setStart(y,Ee),w.setEnd(y,Ee+pt.length);var cr=w.getBoundingClientRect();Ee+=pt.length;var hr=cr.x>We.x||cr.y>We.y;return We=cr,tr===0?!0:hr});return b.body.removeChild(d),ht},bl=function(){return typeof new Image().crossOrigin!="undefined"},LA=function(){return typeof new XMLHttpRequest().responseType=="string"},bf=function(b){var d=new Image,w=b.createElement("canvas"),y=w.getContext("2d");if(!y)return!1;d.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{y.drawImage(d,0,0),w.toDataURL()}catch(te){return!1}return!0},id=function(b){return b[0]===0&&b[1]===255&&b[2]===0&&b[3]===255},yf=function(b){var d=b.createElement("canvas"),w=100;d.width=w,d.height=w;var y=d.getContext("2d");if(!y)return Promise.reject(!1);y.fillStyle="rgb(0, 255, 0)",y.fillRect(0,0,w,w);var te=new Image,Ee=d.toDataURL();te.src=Ee;var We=Ru(w,w,0,0,te);return y.fillStyle="red",y.fillRect(0,0,w,w),sA(We).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 tr=b.createElement("div");return tr.style.backgroundImage="url("+Ee+")",tr.style.height=w+"px",id(pt)?sA(Ru(w,w,0,0,tr)):Promise.reject(!1)}).then(function(ht){return y.drawImage(ht,0,0),id(y.getImageData(0,0,w,w).data)}).catch(function(){return!1})},Ru=function(b,d,w,y,te){var Ee="http://www.w3.org/2000/svg",We=document.createElementNS(Ee,"svg"),ht=document.createElementNS(Ee,"foreignObject");return We.setAttributeNS(null,"width",b.toString()),We.setAttributeNS(null,"height",d.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"),We.appendChild(ht),ht.appendChild(te),We},sA=function(b){return new Promise(function(d,w){var y=new Image;y.onload=function(){return d(y)},y.onerror=w,y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},fs={get SUPPORT_RANGE_BOUNDS(){var b=Ih(document);return Object.defineProperty(fs,"SUPPORT_RANGE_BOUNDS",{value:b}),b},get SUPPORT_WORD_BREAKING(){var b=fs.SUPPORT_RANGE_BOUNDS&&Yf(document);return Object.defineProperty(fs,"SUPPORT_WORD_BREAKING",{value:b}),b},get SUPPORT_SVG_DRAWING(){var b=bf(document);return Object.defineProperty(fs,"SUPPORT_SVG_DRAWING",{value:b}),b},get SUPPORT_FOREIGNOBJECT_DRAWING(){var b=typeof Array.from=="function"&&typeof window.fetch=="function"?yf(document):Promise.resolve(!1);return Object.defineProperty(fs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:b}),b},get SUPPORT_CORS_IMAGES(){var b=bl();return Object.defineProperty(fs,"SUPPORT_CORS_IMAGES",{value:b}),b},get SUPPORT_RESPONSE_TYPE(){var b=LA();return Object.defineProperty(fs,"SUPPORT_RESPONSE_TYPE",{value:b}),b},get SUPPORT_CORS_XHR(){var b="withCredentials"in new XMLHttpRequest;return Object.defineProperty(fs,"SUPPORT_CORS_XHR",{value:b}),b},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var b=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(fs,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:b}),b}},Rc=function(){function b(d,w){this.text=d,this.bounds=w}return b}(),Gl=function(b,d,w,y){var te=lA(d,w),Ee=[],We=0;return te.forEach(function(ht){if(w.textDecorationLine.length||ht.trim().length>0)if(fs.SUPPORT_RANGE_BOUNDS){var pt=Ao(y,We,ht.length).getClientRects();if(pt.length>1){var tr=wo(ht),cr=0;tr.forEach(function(qr){Ee.push(new Rc(qr,ne.fromDOMRectList(b,Ao(y,cr+We,qr.length).getClientRects()))),cr+=qr.length})}else Ee.push(new Rc(ht,ne.fromDOMRectList(b,pt)))}else{var hr=y.splitText(ht.length);Ee.push(new Rc(ht,kA(b,y))),y=hr}else fs.SUPPORT_RANGE_BOUNDS||(y=y.splitText(ht.length));We+=ht.length}),Ee},kA=function(b,d){var w=d.ownerDocument;if(w){var y=w.createElement("html2canvaswrapper");y.appendChild(d.cloneNode(!0));var te=d.parentNode;if(te){te.replaceChild(y,d);var Ee=W(b,y);return y.firstChild&&te.replaceChild(y.firstChild,y),Ee}}return ne.EMPTY},Ao=function(b,d,w){var y=b.ownerDocument;if(!y)throw new Error("Node has no owner document");var te=y.createRange();return te.setStart(b,d),te.setEnd(b,d+w),te},wo=function(b){if(fs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var d=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(d.segment(b)).map(function(w){return w.segment})}return _h(b)},ru=function(b,d){if(fs.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 B0(b,d)},lA=function(b,d){return d.letterSpacing!==0?wo(b):ru(b,d)},Xu=[32,160,4961,65792,65793,4153,4241],B0=function(b,d){for(var w=Dt(b,{lineBreak:d.lineBreak,wordBreak:d.overflowWrap==="break-word"?"break-word":d.wordBreak}),y=[],te,Ee=function(){if(te.value){var We=te.value.slice(),ht=v(We),pt="";ht.forEach(function(tr){Xu.indexOf(tr)===-1?pt+=M(tr):(pt.length&&y.push(pt),y.push(M(tr)),pt="")}),pt.length&&y.push(pt)}};!(te=w.next()).done;)Ee();return y},kl=function(){function b(d,w,y){this.text=Eu(w.data,y.textTransform),this.textBounds=Gl(d,this.text,y,w)}return b}(),Eu=function(b,d){switch(d){case 1:return b.toLowerCase();case 3:return b.replace(Fh,qf);case 2:return b.toUpperCase();default:return b}},Fh=/(^|\s|:|-|\(|\))([a-z])/g,qf=function(b,d,w){return b.length>0?d+w.toUpperCase():b},S0=function(b){x(d,b);function d(w,y){var te=b.call(this,w,y)||this;return te.src=y.currentSrc||y.src,te.intrinsicWidth=y.naturalWidth,te.intrinsicHeight=y.naturalHeight,te.context.cache.addImage(te.src),te}return d}(hn),So=function(b){x(d,b);function d(w,y){var te=b.call(this,w,y)||this;return te.canvas=y,te.intrinsicWidth=y.width,te.intrinsicHeight=y.height,te}return d}(hn),wf=function(b){x(d,b);function d(w,y){var te=b.call(this,w,y)||this,Ee=new XMLSerializer,We=W(w,y);return y.setAttribute("width",We.width+"px"),y.setAttribute("height",We.height+"px"),te.svg="data:image/svg+xml,"+encodeURIComponent(Ee.serializeToString(y)),te.intrinsicWidth=y.width.baseVal.value,te.intrinsicHeight=y.height.baseVal.value,te.context.cache.addImage(te.svg),te}return d}(hn),Pd=function(b){x(d,b);function d(w,y){var te=b.call(this,w,y)||this;return te.value=y.value,te}return d}(hn),eh=function(b){x(d,b);function d(w,y){var te=b.call(this,w,y)||this;return te.start=y.start,te.reversed=typeof y.reversed=="boolean"&&y.reversed===!0,te}return d}(hn),Ur=[{type:15,flags:0,unit:"px",number:3}],Dm=[{type:16,flags:0,number:50}],Om=function(b){return b.width>b.height?new ne(b.left+(b.width-b.height)/2,b.top,b.height,b.height):b.width<b.height?new ne(b.left,b.top+(b.height-b.width)/2,b.width,b.width):b},E0=function(b){var d=b.type===Mh?new Array(b.value.length+1).join("\u2022"):b.value;return d.length===0?b.placeholder||"":d},_0="checkbox",Td="radio",Mh="password",I0=707406591,Xl=function(b){x(d,b);function d(w,y){var te=b.call(this,w,y)||this;switch(te.type=y.type.toLowerCase(),te.checked=y.checked,te.value=E0(y),(te.type===_0||te.type===Td)&&(te.styles.backgroundColor=3739148031,te.styles.borderTopColor=te.styles.borderRightColor=te.styles.borderBottomColor=te.styles.borderLeftColor=2779096575,te.styles.borderTopWidth=te.styles.borderRightWidth=te.styles.borderBottomWidth=te.styles.borderLeftWidth=1,te.styles.borderTopStyle=te.styles.borderRightStyle=te.styles.borderBottomStyle=te.styles.borderLeftStyle=1,te.styles.backgroundClip=[0],te.styles.backgroundOrigin=[0],te.bounds=Om(te.bounds)),te.type){case _0:te.styles.borderTopRightRadius=te.styles.borderTopLeftRadius=te.styles.borderBottomRightRadius=te.styles.borderBottomLeftRadius=Ur;break;case Td:te.styles.borderTopRightRadius=te.styles.borderTopLeftRadius=te.styles.borderBottomRightRadius=te.styles.borderBottomLeftRadius=Dm;break}return te}return d}(hn),ad=function(b){x(d,b);function d(w,y){var te=b.call(this,w,y)||this,Ee=y.options[y.selectedIndex||0];return te.value=Ee&&Ee.text||"",te}return d}(hn),th=function(b){x(d,b);function d(w,y){var te=b.call(this,w,y)||this;return te.value=y.value,te}return d}(hn),Lh=function(b){x(d,b);function d(w,y){var te=b.call(this,w,y)||this;te.src=y.src,te.width=parseInt(y.width,10)||0,te.height=parseInt(y.height,10)||0,te.backgroundColor=te.styles.backgroundColor;try{if(y.contentWindow&&y.contentWindow.document&&y.contentWindow.document.documentElement){te.tree=fp(w,y.contentWindow.document.documentElement);var Ee=y.contentWindow.document.documentElement?eu(w,getComputedStyle(y.contentWindow.document.documentElement).backgroundColor):rl.TRANSPARENT,We=y.contentWindow.document.body?eu(w,getComputedStyle(y.contentWindow.document.body).backgroundColor):rl.TRANSPARENT;te.backgroundColor=Zo(Ee)?Zo(We)?te.styles.backgroundColor:We:Ee}}catch(ht){}return te}return d}(hn),kh=["OL","UL","MENU"],rh=function(b,d,w,y){for(var te=d.firstChild,Ee=void 0;te;te=Ee)if(Ee=te.nextSibling,Ud(te)&&te.data.trim().length>0)w.textNodes.push(new kl(b,te,w.styles));else if(xf(te))if(oh(te)&&te.assignedNodes)te.assignedNodes().forEach(function(ht){return rh(b,ht,w,y)});else{var We=F0(b,te);We.styles.isVisible()&&(M0(te,We,y)?We.flags|=4:nu(We.styles)&&(We.flags|=2),kh.indexOf(te.tagName)!==-1&&(We.flags|=8),w.elements.push(We),te.slot,te.shadowRoot?rh(b,te.shadowRoot,We,y):!ah(te)&&!hp(te)&&!Dh(te)&&rh(b,te,We,y))}},F0=function(b,d){return od(d)?new S0(b,d):Zp(d)?new So(b,d):hp(d)?new wf(b,d):Nm(d)?new Pd(b,d):Pm(d)?new eh(b,d):Tm(d)?new Xl(b,d):Dh(d)?new ad(b,d):ah(d)?new th(b,d):Wp(d)?new Lh(b,d):new hn(b,d)},fp=function(b,d){var w=F0(b,d);return w.flags|=4,rh(b,d,w,w),w},M0=function(b,d,w){return d.styles.isPositionedWithZIndex()||d.styles.opacity<1||d.styles.isTransformed()||Ds(b)&&w.styles.isTransparent()},nu=function(b){return b.isPositioned()||b.isFloating()},Ud=function(b){return b.nodeType===Node.TEXT_NODE},xf=function(b){return b.nodeType===Node.ELEMENT_NODE},L0=function(b){return xf(b)&&typeof b.style!="undefined"&&!nh(b)},nh=function(b){return typeof b.className=="object"},Nm=function(b){return b.tagName==="LI"},Pm=function(b){return b.tagName==="OL"},Tm=function(b){return b.tagName==="INPUT"},Um=function(b){return b.tagName==="HTML"},hp=function(b){return b.tagName==="svg"},Ds=function(b){return b.tagName==="BODY"},Zp=function(b){return b.tagName==="CANVAS"},Vp=function(b){return b.tagName==="VIDEO"},od=function(b){return b.tagName==="IMG"},Wp=function(b){return b.tagName==="IFRAME"},ih=function(b){return b.tagName==="STYLE"},pp=function(b){return b.tagName==="SCRIPT"},ah=function(b){return b.tagName==="TEXTAREA"},Dh=function(b){return b.tagName==="SELECT"},oh=function(b){return b.tagName==="SLOT"},Gp=function(b){return b.tagName.indexOf("-")>0},Rm=function(){function b(){this.counters={}}return b.prototype.getCounterValue=function(d){var w=this.counters[d];return w&&w.length?w[w.length-1]:1},b.prototype.getCounterValues=function(d){var w=this.counters[d];return w||[]},b.prototype.pop=function(d){var w=this;d.forEach(function(y){return w.counters[y].pop()})},b.prototype.parse=function(d){var w=this,y=d.counterIncrement,te=d.counterReset,Ee=!0;y!==null&&y.forEach(function(ht){var pt=w.counters[ht.counter];pt&&ht.increment!==0&&(Ee=!1,pt.length||pt.push(1),pt[Math.max(0,pt.length-1)]+=ht.increment)});var We=[];return Ee&&te.forEach(function(ht){var pt=w.counters[ht.counter];We.push(ht.counter),pt||(pt=w.counters[ht.counter]=[]),pt.push(ht.reset)}),We},b}(),Oh={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"]},k0={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"]},Xp={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"]},Cf=function(b,d,w,y,te,Ee){return b<d||b>w?Qd(b,te,Ee.length>0):y.integers.reduce(function(We,ht,pt){for(;b>=ht;)b-=ht,We+=y.values[pt];return We},"")+Ee},Km=function(b,d,w,y){var te="";do w||b--,te=y(b)+te,b/=d;while(b*d>=d);return te},Dl=function(b,d,w,y,te){var Ee=w-d+1;return(b<0?"-":"")+(Km(Math.abs(b),Ee,y,function(We){return M(Math.floor(We%Ee)+d)})+te)},Rd=function(b,d,w){w===void 0&&(w=". ");var y=d.length;return Km(Math.abs(b),y,!1,function(te){return d[Math.floor(te%y)]})+w},Bf=1,sd=2,Xc=4,cA=8,_u=function(b,d,w,y,te,Ee){if(b<-9999||b>9999)return Qd(b,4,te.length>0);var We=Math.abs(b),ht=te;if(We===0)return d[0]+ht;for(var pt=0;We>0&&pt<=4;pt++){var tr=We%10;tr===0&&oi(Ee,Bf)&&ht!==""?ht=d[tr]+ht:tr>1||tr===1&&pt===0||tr===1&&pt===1&&oi(Ee,sd)||tr===1&&pt===1&&oi(Ee,Xc)&&b>100||tr===1&&pt>1&&oi(Ee,cA)?ht=d[tr]+(pt>0?w[pt-1]:"")+ht:tr===1&&pt>0&&(ht=w[pt-1]+ht),We=Math.floor(We/10)}return(b<0?y:"")+ht},DA="\u5341\u767E\u5343\u842C",ld="\u62FE\u4F70\u4EDF\u842C",cd="\u30DE\u30A4\u30CA\u30B9",sh="\uB9C8\uC774\uB108\uC2A4",Qd=function(b,d,w){var y=w?". ":"",te=w?"\u3001":"",Ee=w?", ":"",We=w?" ":"";switch(d){case 0:return"\u2022"+We;case 1:return"\u25E6"+We;case 2:return"\u25FE"+We;case 5:var ht=Dl(b,48,57,!0,y);return ht.length<4?"0"+ht:ht;case 4:return Rd(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",te);case 6:return Cf(b,1,3999,Oh,3,y).toLowerCase();case 7:return Cf(b,1,3999,Oh,3,y);case 8:return Dl(b,945,969,!1,y);case 9:return Dl(b,97,122,!1,y);case 10:return Dl(b,65,90,!1,y);case 11:return Dl(b,1632,1641,!0,y);case 12:case 49:return Cf(b,1,9999,k0,3,y);case 35:return Cf(b,1,9999,k0,3,y).toLowerCase();case 13:return Dl(b,2534,2543,!0,y);case 14:case 30:return Dl(b,6112,6121,!0,y);case 15:return Rd(b,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",te);case 16:return Rd(b,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",te);case 17:case 48:return _u(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",DA,"\u8CA0",te,sd|Xc|cA);case 47:return _u(b,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ld,"\u8CA0",te,Bf|sd|Xc|cA);case 42:return _u(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",DA,"\u8D1F",te,sd|Xc|cA);case 41:return _u(b,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ld,"\u8D1F",te,Bf|sd|Xc|cA);case 26:return _u(b,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",cd,te,0);case 25:return _u(b,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",cd,te,Bf|sd|Xc);case 31:return _u(b,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",sh,Ee,Bf|sd|Xc);case 33:return _u(b,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",sh,Ee,0);case 32:return _u(b,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",sh,Ee,Bf|sd|Xc);case 18:return Dl(b,2406,2415,!0,y);case 20:return Cf(b,1,19999,Xp,3,y);case 21:return Dl(b,2790,2799,!0,y);case 22:return Dl(b,2662,2671,!0,y);case 22:return Cf(b,1,10999,Qm,3,y);case 23:return Rd(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 Rd(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 Dl(b,3302,3311,!0,y);case 28:return Rd(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",te);case 29:return Rd(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",te);case 34:return Dl(b,3792,3801,!0,y);case 37:return Dl(b,6160,6169,!0,y);case 38:return Dl(b,4160,4169,!0,y);case 39:return Dl(b,2918,2927,!0,y);case 40:return Dl(b,1776,1785,!0,y);case 43:return Dl(b,3046,3055,!0,y);case 44:return Dl(b,3174,3183,!0,y);case 45:return Dl(b,3664,3673,!0,y);case 46:return Dl(b,3872,3881,!0,y);case 3:default:return Dl(b,48,57,!0,y)}},Nh="data-html2canvas-ignore",D0=function(){function b(d,w,y){if(this.context=d,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(d,w){var y=this,te=Jp(d,w);if(!te.contentWindow)return Promise.reject("Unable to find iframe window");var Ee=d.defaultView.pageXOffset,We=d.defaultView.pageYOffset,ht=te.contentWindow,pt=ht.document,tr=Th(te).then(function(){return Ae(y,void 0,void 0,function(){var cr,hr;return P(this,function(qr){switch(qr.label){case 0:return this.scrolledElements.forEach(em),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))),cr=this.options.onclone,hr=this.clonedReferenceElement,typeof hr=="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,Yp(pt)]:[3,4];case 3:qr.sent(),qr.label=4;case 4:return typeof cr=="function"?[2,Promise.resolve().then(function(){return cr(pt,hr)}).then(function(){return te})]:[2,te]}})})});return pt.open(),pt.write(jm(document.doctype)+"<html></html>"),qp(this.referenceElement.ownerDocument,Ee,We),pt.replaceChild(pt.adoptNode(this.documentElement),pt.documentElement),pt.close(),tr},b.prototype.createElementClone=function(d){if(co(d,2))debugger;if(Zp(d))return this.createCanvasClone(d);if(Vp(d))return this.createVideoClone(d);if(ih(d))return this.createStyleClone(d);var w=d.cloneNode(!1);return od(w)&&(od(d)&&d.currentSrc&&d.currentSrc!==d.src&&(w.src=d.currentSrc,w.srcset=""),w.loading==="lazy"&&(w.loading="eager")),Gp(w)?this.createCustomElementClone(w):w},b.prototype.createCustomElementClone=function(d){var w=document.createElement("html2canvascustomelement");return O0(d.style,w),w},b.prototype.createStyleClone=function(d){try{var w=d.sheet;if(w&&w.cssRules){var y=[].slice.call(w.cssRules,0).reduce(function(Ee,We){return We&&typeof We.cssText=="string"?Ee+We.cssText:Ee},""),te=d.cloneNode(!1);return te.textContent=y,te}}catch(Ee){if(this.context.logger.error("Unable to access cssRules property",Ee),Ee.name!=="SecurityError")throw Ee}return d.cloneNode(!1)},b.prototype.createCanvasClone=function(d){var w;if(this.options.inlineImages&&d.ownerDocument){var y=d.ownerDocument.createElement("img");try{return y.src=d.toDataURL(),y}catch(tr){this.context.logger.info("Unable to inline canvas contents, canvas is tainted",d)}}var te=d.cloneNode(!1);try{te.width=d.width,te.height=d.height;var Ee=d.getContext("2d"),We=te.getContext("2d");if(We)if(!this.options.allowTaint&&Ee)We.putImageData(Ee.getImageData(0,0,d.width,d.height),0,0);else{var ht=(w=d.getContext("webgl2"))!==null&&w!==void 0?w:d.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",d)}We.drawImage(d,0,0)}return te}catch(tr){this.context.logger.info("Unable to clone canvas as it is tainted",d)}return te},b.prototype.createVideoClone=function(d){var w=d.ownerDocument.createElement("canvas");w.width=d.offsetWidth,w.height=d.offsetHeight;var y=w.getContext("2d");try{return y&&(y.drawImage(d,0,0,w.width,w.height),this.options.allowTaint||y.getImageData(0,0,w.width,w.height)),w}catch(Ee){this.context.logger.info("Unable to clone video as it is tainted",d)}var te=d.ownerDocument.createElement("canvas");return te.width=d.offsetWidth,te.height=d.offsetHeight,te},b.prototype.appendChildNode=function(d,w,y){(!xf(w)||!pp(w)&&!w.hasAttribute(Nh)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(w)))&&(!this.options.copyStyles||!xf(w)||!ih(w))&&d.appendChild(this.cloneNode(w,y))},b.prototype.cloneChildNodes=function(d,w,y){for(var te=this,Ee=d.shadowRoot?d.shadowRoot.firstChild:d.firstChild;Ee;Ee=Ee.nextSibling)if(xf(Ee)&&oh(Ee)&&typeof Ee.assignedNodes=="function"){var We=Ee.assignedNodes();We.length&&We.forEach(function(ht){return te.appendChildNode(w,ht,y)})}else this.appendChildNode(w,Ee,y)},b.prototype.cloneNode=function(d,w){if(Ud(d))return document.createTextNode(d.data);if(!d.ownerDocument)return d.cloneNode(!1);var y=d.ownerDocument.defaultView;if(y&&xf(d)&&(L0(d)||nh(d))){var te=this.createElementClone(d);te.style.transitionProperty="none";var Ee=y.getComputedStyle(d),We=y.getComputedStyle(d,":before"),ht=y.getComputedStyle(d,":after");this.referenceElement===d&&L0(te)&&(this.clonedReferenceElement=te),Ds(te)&&ch(te);var pt=this.counters.parse(new Tc(this.context,Ee)),tr=this.resolvePseudoContent(d,te,We,Ph.BEFORE);Gp(d)&&(w=!0),Vp(d)||this.cloneChildNodes(d,te,w),tr&&te.insertBefore(tr,te.firstChild);var cr=this.resolvePseudoContent(d,te,ht,Ph.AFTER);return cr&&te.appendChild(cr),this.counters.pop(pt),(Ee&&(this.options.copyStyles||nh(d))&&!Wp(d)||w)&&O0(Ee,te),(d.scrollTop!==0||d.scrollLeft!==0)&&this.scrolledElements.push([te,d.scrollLeft,d.scrollTop]),(ah(d)||Dh(d))&&(ah(te)||Dh(te))&&(te.value=d.value),te}return d.cloneNode(!1)},b.prototype.resolvePseudoContent=function(d,w,y,te){var Ee=this;if(y){var We=y.content,ht=w.ownerDocument;if(!(!ht||!We||We==="none"||We==="-moz-alt-content"||y.display==="none")){this.counters.parse(new Tc(this.context,y));var pt=new Rs(this.context,y),tr=ht.createElement("html2canvaspseudoelement");O0(y,tr),pt.content.forEach(function(hr){if(hr.type===0)tr.appendChild(ht.createTextNode(hr.value));else if(hr.type===22){var qr=ht.createElement("img");qr.src=hr.value,qr.style.opacity="1",tr.appendChild(qr)}else if(hr.type===18){if(hr.name==="attr"){var Ri=hr.values.filter(Io);Ri.length&&tr.appendChild(ht.createTextNode(d.getAttribute(Ri[0].value)||""))}else if(hr.name==="counter"){var Un=hr.values.filter(pu),hi=Un[0],Ga=Un[1];if(hi&&Io(hi)){var ea=Ee.counters.getCounterValue(hi.value),Yi=Ga&&Io(Ga)?ur.parse(Ee.context,Ga.value):3;tr.appendChild(ht.createTextNode(Qd(ea,Yi,!1)))}}else if(hr.name==="counters"){var Ta=hr.values.filter(pu),hi=Ta[0],oo=Ta[1],Ga=Ta[2];if(hi&&Io(hi)){var Fa=Ee.counters.getCounterValues(hi.value),Li=Ga&&Io(Ga)?ur.parse(Ee.context,Ga.value):3,Lo=oo&&oo.type===0?oo.value:"",qa=Fa.map(function(Sc){return Qd(Sc,Li,!1)}).join(Lo);tr.appendChild(ht.createTextNode(qa))}}}else if(hr.type===20)switch(hr.value){case"open-quote":tr.appendChild(ht.createTextNode(ua(pt.quotes,Ee.quoteDepth++,!0)));break;case"close-quote":tr.appendChild(ht.createTextNode(ua(pt.quotes,--Ee.quoteDepth,!1)));break;default:tr.appendChild(ht.createTextNode(hr.value))}}),tr.className=gp+" "+Sf;var cr=te===Ph.BEFORE?" "+gp:" "+Sf;return nh(w)?w.className.baseValue+=cr:w.className+=cr,tr}}},b.destroy=function(d){return d.parentNode?(d.parentNode.removeChild(d),!0):!1},b}(),Ph;(function(b){b[b.BEFORE=0]="BEFORE",b[b.AFTER=1]="AFTER"})(Ph||(Ph={}));var Jp=function(b,d){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=d.width.toString(),w.height=d.height.toString(),w.scrolling="no",w.setAttribute(Nh,"true"),b.body.appendChild(w),w},mp=function(b){return new Promise(function(d){if(b.complete){d();return}if(!b.src){d();return}b.onload=d,b.onerror=d})},Yp=function(b){return Promise.all([].slice.call(b.images,0).map(mp))},Th=function(b){return new Promise(function(d,w){var y=b.contentWindow;if(!y)return w("No window assigned for iframe");var te=y.document;y.onload=b.onload=function(){y.onload=b.onload=null;var Ee=setInterval(function(){te.body.childNodes.length>0&&te.readyState==="complete"&&(clearInterval(Ee),d(b))},50)}})},Hm=["all","d","content"],O0=function(b,d){for(var w=b.length-1;w>=0;w--){var y=b.item(w);Hm.indexOf(y)===-1&&d.style.setProperty(y,b.getPropertyValue(y))}return d},jm=function(b){var d="";return b&&(d+="<!DOCTYPE ",b.name&&(d+=b.name),b.internalSubset&&(d+=b.internalSubset),b.publicId&&(d+='"'+b.publicId+'"'),b.systemId&&(d+='"'+b.systemId+'"'),d+=">"),d},qp=function(b,d,w){b&&b.defaultView&&(d!==b.defaultView.pageXOffset||w!==b.defaultView.pageYOffset)&&b.defaultView.scrollTo(d,w)},em=function(b){var d=b[0],w=b[1],y=b[2];d.scrollLeft=w,d.scrollTop=y},tm=":before",rm=":after",gp="___html2canvas___pseudoelement_before",Sf="___html2canvas___pseudoelement_after",lh=`{
content: "" !important;
display: none !important;
}`,ch=function(b){OA(b,"."+gp+tm+lh+`
.`+Sf+rm+lh)},OA=function(b,d){var w=b.ownerDocument;if(w){var y=w.createElement("style");y.textContent=d,b.appendChild(y)}},vp=function(){function b(){}return b.getOrigin=function(d){var w=b._link;return w?(w.href=d,w.href=w.href,w.protocol+w.hostname+w.port):"about:blank"},b.isSameOrigin=function(d){return b.getOrigin(d)===b._origin},b.setContext=function(d){b._link=d.document.createElement("a"),b._origin=b.getOrigin(d.location.href)},b._origin="about:blank",b}(),Iu=function(){function b(d,w){this.context=d,this._options=w,this._cache={}}return b.prototype.addImage=function(d){var w=Promise.resolve();return this.has(d)||(yp(d)||Uh(d))&&(this._cache[d]=this.loadImage(d)).catch(function(){}),w},b.prototype.match=function(d){return this._cache[d]},b.prototype.loadImage=function(d){return Ae(this,void 0,void 0,function(){var w,y,te,Ee,We=this;return P(this,function(ht){switch(ht.label){case 0:return w=vp.isSameOrigin(d),y=!Rh(d)&&this._options.useCORS===!0&&fs.SUPPORT_CORS_IMAGES&&!w,te=!Rh(d)&&!w&&!yp(d)&&typeof this._options.proxy=="string"&&fs.SUPPORT_CORS_XHR&&!y,!w&&this._options.allowTaint===!1&&!Rh(d)&&!yp(d)&&!te&&!y?[2]:(Ee=d,te?[4,this.proxy(Ee)]:[3,2]);case 1:Ee=ht.sent(),ht.label=2;case 2:return this.context.logger.debug("Added image "+d.substring(0,256)),[4,new Promise(function(pt,tr){var cr=new Image;cr.onload=function(){return pt(cr)},cr.onerror=tr,(zm(Ee)||y)&&(cr.crossOrigin="anonymous"),cr.src=Ee,cr.complete===!0&&setTimeout(function(){return pt(cr)},500),We._options.imageTimeout>0&&setTimeout(function(){return tr("Timed out ("+We._options.imageTimeout+"ms) loading image")},We._options.imageTimeout)})];case 3:return[2,ht.sent()]}})})},b.prototype.has=function(d){return typeof this._cache[d]!="undefined"},b.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},b.prototype.proxy=function(d){var w=this,y=this._options.proxy;if(!y)throw new Error("No proxy defined");var te=d.substring(0,256);return new Promise(function(Ee,We){var ht=fs.SUPPORT_RESPONSE_TYPE?"blob":"text",pt=new XMLHttpRequest;pt.onload=function(){if(pt.status===200)if(ht==="text")Ee(pt.response);else{var hr=new FileReader;hr.addEventListener("load",function(){return Ee(hr.result)},!1),hr.addEventListener("error",function(qr){return We(qr)},!1),hr.readAsDataURL(pt.response)}else We("Failed to proxy resource "+te+" with status code "+pt.status)},pt.onerror=We;var tr=y.indexOf("?")>-1?"&":"?";if(pt.open("GET",""+y+tr+"url="+encodeURIComponent(d)+"&responseType="+ht),ht!=="text"&&pt instanceof XMLHttpRequest&&(pt.responseType=ht),w._options.imageTimeout){var cr=w._options.imageTimeout;pt.timeout=cr,pt.ontimeout=function(){return We("Timed out ("+cr+"ms) proxying "+te)}}pt.send()})},b}(),N0=/^data:image\/svg\+xml/i,nm=/^data:image\/.*;base64,/i,bp=/^data:image\/.*/i,Uh=function(b){return fs.SUPPORT_SVG_DRAWING||!hs(b)},Rh=function(b){return bp.test(b)},zm=function(b){return nm.test(b)},yp=function(b){return b.substr(0,4)==="blob"},hs=function(b){return b.substr(-3).toLowerCase()==="svg"||N0.test(b)},Mi=function(){function b(d,w){this.type=0,this.x=d,this.y=w}return b.prototype.add=function(d,w){return new b(this.x+d,this.y+w)},b}(),NA=function(b,d,w){return new Mi(b.x+(d.x-b.x)*w,b.y+(d.y-b.y)*w)},P0=function(){function b(d,w,y,te){this.type=1,this.start=d,this.startControl=w,this.endControl=y,this.end=te}return b.prototype.subdivide=function(d,w){var y=NA(this.start,this.startControl,d),te=NA(this.startControl,this.endControl,d),Ee=NA(this.endControl,this.end,d),We=NA(y,te,d),ht=NA(te,Ee,d),pt=NA(We,ht,d);return w?new b(this.start,y,We,pt):new b(pt,ht,Ee,this.end)},b.prototype.add=function(d,w){return new b(this.start.add(d,w),this.startControl.add(d,w),this.endControl.add(d,w),this.end.add(d,w))},b.prototype.reverse=function(){return new b(this.end,this.endControl,this.startControl,this.start)},b}(),Ac=function(b){return b.type===1},im=function(){function b(d){var w=d.styles,y=d.bounds,te=Hl(w.borderTopLeftRadius,y.width,y.height),Ee=te[0],We=te[1],ht=Hl(w.borderTopRightRadius,y.width,y.height),pt=ht[0],tr=ht[1],cr=Hl(w.borderBottomRightRadius,y.width,y.height),hr=cr[0],qr=cr[1],Ri=Hl(w.borderBottomLeftRadius,y.width,y.height),Un=Ri[0],hi=Ri[1],Ga=[];Ga.push((Ee+pt)/y.width),Ga.push((Un+hr)/y.width),Ga.push((We+hi)/y.height),Ga.push((tr+qr)/y.height);var ea=Math.max.apply(Math,Ga);ea>1&&(Ee/=ea,We/=ea,pt/=ea,tr/=ea,hr/=ea,qr/=ea,Un/=ea,hi/=ea);var Yi=y.width-pt,Ta=y.height-qr,oo=y.width-hr,Fa=y.height-hi,Li=w.borderTopWidth,Lo=w.borderRightWidth,qa=w.borderBottomWidth,Ua=w.borderLeftWidth,qn=ro(w.paddingTop,d.bounds.width),Sc=ro(w.paddingRight,d.bounds.width),ou=ro(w.paddingBottom,d.bounds.width),xo=ro(w.paddingLeft,d.bounds.width);this.topLeftBorderDoubleOuterBox=Ee>0||We>0?sl(y.left+Ua/3,y.top+Li/3,Ee-Ua/3,We-Li/3,Go.TOP_LEFT):new Mi(y.left+Ua/3,y.top+Li/3),this.topRightBorderDoubleOuterBox=Ee>0||We>0?sl(y.left+Yi,y.top+Li/3,pt-Lo/3,tr-Li/3,Go.TOP_RIGHT):new Mi(y.left+y.width-Lo/3,y.top+Li/3),this.bottomRightBorderDoubleOuterBox=hr>0||qr>0?sl(y.left+oo,y.top+Ta,hr-Lo/3,qr-qa/3,Go.BOTTOM_RIGHT):new Mi(y.left+y.width-Lo/3,y.top+y.height-qa/3),this.bottomLeftBorderDoubleOuterBox=Un>0||hi>0?sl(y.left+Ua/3,y.top+Fa,Un-Ua/3,hi-qa/3,Go.BOTTOM_LEFT):new Mi(y.left+Ua/3,y.top+y.height-qa/3),this.topLeftBorderDoubleInnerBox=Ee>0||We>0?sl(y.left+Ua*2/3,y.top+Li*2/3,Ee-Ua*2/3,We-Li*2/3,Go.TOP_LEFT):new Mi(y.left+Ua*2/3,y.top+Li*2/3),this.topRightBorderDoubleInnerBox=Ee>0||We>0?sl(y.left+Yi,y.top+Li*2/3,pt-Lo*2/3,tr-Li*2/3,Go.TOP_RIGHT):new Mi(y.left+y.width-Lo*2/3,y.top+Li*2/3),this.bottomRightBorderDoubleInnerBox=hr>0||qr>0?sl(y.left+oo,y.top+Ta,hr-Lo*2/3,qr-qa*2/3,Go.BOTTOM_RIGHT):new Mi(y.left+y.width-Lo*2/3,y.top+y.height-qa*2/3),this.bottomLeftBorderDoubleInnerBox=Un>0||hi>0?sl(y.left+Ua*2/3,y.top+Fa,Un-Ua*2/3,hi-qa*2/3,Go.BOTTOM_LEFT):new Mi(y.left+Ua*2/3,y.top+y.height-qa*2/3),this.topLeftBorderStroke=Ee>0||We>0?sl(y.left+Ua/2,y.top+Li/2,Ee-Ua/2,We-Li/2,Go.TOP_LEFT):new Mi(y.left+Ua/2,y.top+Li/2),this.topRightBorderStroke=Ee>0||We>0?sl(y.left+Yi,y.top+Li/2,pt-Lo/2,tr-Li/2,Go.TOP_RIGHT):new Mi(y.left+y.width-Lo/2,y.top+Li/2),this.bottomRightBorderStroke=hr>0||qr>0?sl(y.left+oo,y.top+Ta,hr-Lo/2,qr-qa/2,Go.BOTTOM_RIGHT):new Mi(y.left+y.width-Lo/2,y.top+y.height-qa/2),this.bottomLeftBorderStroke=Un>0||hi>0?sl(y.left+Ua/2,y.top+Fa,Un-Ua/2,hi-qa/2,Go.BOTTOM_LEFT):new Mi(y.left+Ua/2,y.top+y.height-qa/2),this.topLeftBorderBox=Ee>0||We>0?sl(y.left,y.top,Ee,We,Go.TOP_LEFT):new Mi(y.left,y.top),this.topRightBorderBox=pt>0||tr>0?sl(y.left+Yi,y.top,pt,tr,Go.TOP_RIGHT):new Mi(y.left+y.width,y.top),this.bottomRightBorderBox=hr>0||qr>0?sl(y.left+oo,y.top+Ta,hr,qr,Go.BOTTOM_RIGHT):new Mi(y.left+y.width,y.top+y.height),this.bottomLeftBorderBox=Un>0||hi>0?sl(y.left,y.top+Fa,Un,hi,Go.BOTTOM_LEFT):new Mi(y.left,y.top+y.height),this.topLeftPaddingBox=Ee>0||We>0?sl(y.left+Ua,y.top+Li,Math.max(0,Ee-Ua),Math.max(0,We-Li),Go.TOP_LEFT):new Mi(y.left+Ua,y.top+Li),this.topRightPaddingBox=pt>0||tr>0?sl(y.left+Math.min(Yi,y.width-Lo),y.top+Li,Yi>y.width+Lo?0:Math.max(0,pt-Lo),Math.max(0,tr-Li),Go.TOP_RIGHT):new Mi(y.left+y.width-Lo,y.top+Li),this.bottomRightPaddingBox=hr>0||qr>0?sl(y.left+Math.min(oo,y.width-Ua),y.top+Math.min(Ta,y.height-qa),Math.max(0,hr-Lo),Math.max(0,qr-qa),Go.BOTTOM_RIGHT):new Mi(y.left+y.width-Lo,y.top+y.height-qa),this.bottomLeftPaddingBox=Un>0||hi>0?sl(y.left+Ua,y.top+Math.min(Fa,y.height-qa),Math.max(0,Un-Ua),Math.max(0,hi-qa),Go.BOTTOM_LEFT):new Mi(y.left+Ua,y.top+y.height-qa),this.topLeftContentBox=Ee>0||We>0?sl(y.left+Ua+xo,y.top+Li+qn,Math.max(0,Ee-(Ua+xo)),Math.max(0,We-(Li+qn)),Go.TOP_LEFT):new Mi(y.left+Ua+xo,y.top+Li+qn),this.topRightContentBox=pt>0||tr>0?sl(y.left+Math.min(Yi,y.width+Ua+xo),y.top+Li+qn,Yi>y.width+Ua+xo?0:pt-Ua+xo,tr-(Li+qn),Go.TOP_RIGHT):new Mi(y.left+y.width-(Lo+Sc),y.top+Li+qn),this.bottomRightContentBox=hr>0||qr>0?sl(y.left+Math.min(oo,y.width-(Ua+xo)),y.top+Math.min(Ta,y.height+Li+qn),Math.max(0,hr-(Lo+Sc)),qr-(qa+ou),Go.BOTTOM_RIGHT):new Mi(y.left+y.width-(Lo+Sc),y.top+y.height-(qa+ou)),this.bottomLeftContentBox=Un>0||hi>0?sl(y.left+Ua+xo,y.top+Fa,Math.max(0,Un-(Ua+xo)),hi-(qa+ou),Go.BOTTOM_LEFT):new Mi(y.left+Ua+xo,y.top+y.height-(qa+ou))}return b}(),Go;(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"})(Go||(Go={}));var sl=function(b,d,w,y,te){var Ee=4*((Math.sqrt(2)-1)/3),We=w*Ee,ht=y*Ee,pt=b+w,tr=d+y;switch(te){case Go.TOP_LEFT:return new P0(new Mi(b,tr),new Mi(b,tr-ht),new Mi(pt-We,d),new Mi(pt,d));case Go.TOP_RIGHT:return new P0(new Mi(b,d),new Mi(b+We,d),new Mi(pt,tr-ht),new Mi(pt,tr));case Go.BOTTOM_RIGHT:return new P0(new Mi(pt,d),new Mi(pt,d+ht),new Mi(b+We,tr),new Mi(b,tr));case Go.BOTTOM_LEFT:default:return new P0(new Mi(pt,tr),new Mi(pt-We,tr),new Mi(b,d+ht),new Mi(b,d))}},Ys=function(b){return[b.topLeftBorderBox,b.topRightBorderBox,b.bottomRightBorderBox,b.bottomLeftBorderBox]},$m=function(b){return[b.topLeftContentBox,b.topRightContentBox,b.bottomRightContentBox,b.bottomLeftContentBox]},T0=function(b){return[b.topLeftPaddingBox,b.topRightPaddingBox,b.bottomRightPaddingBox,b.bottomLeftPaddingBox]},Wa=function(){function b(d,w,y){this.offsetX=d,this.offsetY=w,this.matrix=y,this.type=0,this.target=6}return b}(),Ef=function(){function b(d,w){this.path=d,this.target=w,this.type=1}return b}(),Os=function(){function b(d){this.opacity=d,this.type=2,this.target=6}return b}(),Kd=function(b){return b.type===0},U0=function(b){return b.type===1},dc=function(b){return b.type===2},ud=function(b,d){return b.length===d.length?b.some(function(w,y){return w===d[y]}):!1},wp=function(b,d,w,y,te){return b.map(function(Ee,We){switch(We){case 0:return Ee.add(d,w);case 1:return Ee.add(d+y,w);case 2:return Ee.add(d+y,w+te);case 3:return Ee.add(d,w+te)}return Ee})},gn=function(){function b(d){this.element=d,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return b}(),Ks=function(){function b(d,w){if(this.container=d,this.parent=w,this.effects=[],this.curves=new im(this.container),this.container.styles.opacity<1&&this.effects.push(new Os(this.container.styles.opacity)),this.container.styles.transform!==null){var y=this.container.bounds.left+this.container.styles.transformOrigin[0].number,te=this.container.bounds.top+this.container.styles.transformOrigin[1].number,Ee=this.container.styles.transform;this.effects.push(new Wa(y,te,Ee))}if(this.container.styles.overflowX!==0){var We=Ys(this.curves),ht=T0(this.curves);ud(We,ht)?this.effects.push(new Ef(We,6)):(this.effects.push(new Ef(We,2)),this.effects.push(new Ef(ht,4)))}}return b.prototype.getEffects=function(d){for(var w=[2,3].indexOf(this.container.styles.position)===-1,y=this.parent,te=this.effects.slice(0);y;){var Ee=y.effects.filter(function(pt){return!U0(pt)});if(w||y.container.styles.position!==0||!y.parent){if(te.unshift.apply(te,Ee),w=[2,3].indexOf(y.container.styles.position)===-1,y.container.styles.overflowX!==0){var We=Ys(y.curves),ht=T0(y.curves);ud(We,ht)||te.unshift(new Ef(ht,6))}}else te.unshift.apply(te,Ee);y=y.parent}return te.filter(function(pt){return oi(pt.target,d)})},b}(),R0=function(b,d,w,y){b.container.elements.forEach(function(te){var Ee=oi(te.flags,4),We=oi(te.flags,2),ht=new Ks(te,b);oi(te.styles.display,2048)&&y.push(ht);var pt=oi(te.flags,8)?[]:y;if(Ee||We){var tr=Ee||te.styles.isPositioned()?w:d,cr=new gn(ht);if(te.styles.isPositioned()||te.styles.opacity<1||te.styles.isTransformed()){var hr=te.styles.zIndex.order;if(hr<0){var qr=0;tr.negativeZIndex.some(function(Un,hi){return hr>Un.element.container.styles.zIndex.order?(qr=hi,!1):qr>0}),tr.negativeZIndex.splice(qr,0,cr)}else if(hr>0){var Ri=0;tr.positiveZIndex.some(function(Un,hi){return hr>=Un.element.container.styles.zIndex.order?(Ri=hi+1,!1):Ri>0}),tr.positiveZIndex.splice(Ri,0,cr)}else tr.zeroOrAutoZIndexOrTransformedOrOpacity.push(cr)}else te.styles.isFloating()?tr.nonPositionedFloats.push(cr):tr.nonPositionedInlineLevel.push(cr);R0(ht,cr,Ee?cr:w,pt)}else te.styles.isInlineLevel()?d.inlineLevel.push(ht):d.nonInlineLevel.push(ht),R0(ht,d,w,pt);oi(te.flags,8)&&Q0(te,pt)})},Q0=function(b,d){for(var w=b instanceof eh?b.start:1,y=b instanceof eh?b.reversed:!1,te=0;te<d.length;te++){var Ee=d[te];Ee.container instanceof Pd&&typeof Ee.container.value=="number"&&Ee.container.value!==0&&(w=Ee.container.value),Ee.listValue=Qd(w,Ee.container.styles.listStyleType,!0),w+=y?-1:1}},Qc=function(b){var d=new Ks(b,null),w=new gn(d),y=[];return R0(d,w,w,y),Q0(d.container,y),w},Bc=function(b,d){switch(d){case 0:return Fu(b.topLeftBorderBox,b.topLeftPaddingBox,b.topRightBorderBox,b.topRightPaddingBox);case 1:return Fu(b.topRightBorderBox,b.topRightPaddingBox,b.bottomRightBorderBox,b.bottomRightPaddingBox);case 2:return Fu(b.bottomRightBorderBox,b.bottomRightPaddingBox,b.bottomLeftBorderBox,b.bottomLeftPaddingBox);case 3:default:return Fu(b.bottomLeftBorderBox,b.bottomLeftPaddingBox,b.topLeftBorderBox,b.topLeftPaddingBox)}},ic=function(b,d){switch(d){case 0:return Fu(b.topLeftBorderBox,b.topLeftBorderDoubleOuterBox,b.topRightBorderBox,b.topRightBorderDoubleOuterBox);case 1:return Fu(b.topRightBorderBox,b.topRightBorderDoubleOuterBox,b.bottomRightBorderBox,b.bottomRightBorderDoubleOuterBox);case 2:return Fu(b.bottomRightBorderBox,b.bottomRightBorderDoubleOuterBox,b.bottomLeftBorderBox,b.bottomLeftBorderDoubleOuterBox);case 3:default:return Fu(b.bottomLeftBorderBox,b.bottomLeftBorderDoubleOuterBox,b.topLeftBorderBox,b.topLeftBorderDoubleOuterBox)}},fc=function(b,d){switch(d){case 0:return Fu(b.topLeftBorderDoubleInnerBox,b.topLeftPaddingBox,b.topRightBorderDoubleInnerBox,b.topRightPaddingBox);case 1:return Fu(b.topRightBorderDoubleInnerBox,b.topRightPaddingBox,b.bottomRightBorderDoubleInnerBox,b.bottomRightPaddingBox);case 2:return Fu(b.bottomRightBorderDoubleInnerBox,b.bottomRightPaddingBox,b.bottomLeftBorderDoubleInnerBox,b.bottomLeftPaddingBox);case 3:default:return Fu(b.bottomLeftBorderDoubleInnerBox,b.bottomLeftPaddingBox,b.topLeftBorderDoubleInnerBox,b.topLeftPaddingBox)}},am=function(b,d){switch(d){case 0:return K0(b.topLeftBorderStroke,b.topRightBorderStroke);case 1:return K0(b.topRightBorderStroke,b.bottomRightBorderStroke);case 2:return K0(b.bottomRightBorderStroke,b.bottomLeftBorderStroke);case 3:default:return K0(b.bottomLeftBorderStroke,b.topLeftBorderStroke)}},K0=function(b,d){var w=[];return Ac(b)?w.push(b.subdivide(.5,!1)):w.push(b),Ac(d)?w.push(d.subdivide(.5,!0)):w.push(d),w},Fu=function(b,d,w,y){var te=[];return Ac(b)?te.push(b.subdivide(.5,!1)):te.push(b),Ac(w)?te.push(w.subdivide(.5,!0)):te.push(w),Ac(y)?te.push(y.subdivide(.5,!0).reverse()):te.push(y),Ac(d)?te.push(d.subdivide(.5,!1).reverse()):te.push(d),te},_f=function(b){var d=b.bounds,w=b.styles;return d.add(w.borderLeftWidth,w.borderTopWidth,-(w.borderRightWidth+w.borderLeftWidth),-(w.borderTopWidth+w.borderBottomWidth))},Ol=function(b){var d=b.styles,w=b.bounds,y=ro(d.paddingLeft,w.width),te=ro(d.paddingRight,w.width),Ee=ro(d.paddingTop,w.width),We=ro(d.paddingBottom,w.width);return w.add(y+d.borderLeftWidth,Ee+d.borderTopWidth,-(d.borderRightWidth+d.borderLeftWidth+y+te),-(d.borderTopWidth+d.borderBottomWidth+Ee+We))},If=function(b,d){return b===0?d.bounds:b===2?Ol(d):_f(d)},xp=function(b,d){return b===0?d.bounds:b===2?Ol(d):_f(d)},Jc=function(b,d,w){var y=If(iu(b.styles.backgroundOrigin,d),b),te=xp(iu(b.styles.backgroundClip,d),b),Ee=PA(iu(b.styles.backgroundSize,d),w,y),We=Ee[0],ht=Ee[1],pt=Hl(iu(b.styles.backgroundPosition,d),y.width-We,y.height-ht),tr=Cp(iu(b.styles.backgroundRepeat,d),pt,Ee,y,te),cr=Math.round(y.left+pt[0]),hr=Math.round(y.top+pt[1]);return[tr,cr,hr,We,ht]},hc=function(b){return Io(b)&&b.value===xl.AUTO},Qh=function(b){return typeof b=="number"},PA=function(b,d,w){var y=d[0],te=d[1],Ee=d[2],We=b[0],ht=b[1];if(!We)return[0,0];if(bs(We)&&ht&&bs(ht))return[ro(We,w.width),ro(ht,w.height)];var pt=Qh(Ee);if(Io(We)&&(We.value===xl.CONTAIN||We.value===xl.COVER)){if(Qh(Ee)){var tr=w.width/w.height;return tr<Ee!=(We.value===xl.COVER)?[w.width,w.width/Ee]:[w.height*Ee,w.height]}return[w.width,w.height]}var cr=Qh(y),hr=Qh(te),qr=cr||hr;if(hc(We)&&(!ht||hc(ht))){if(cr&&hr)return[y,te];if(!pt&&!qr)return[w.width,w.height];if(qr&&pt){var Ri=cr?y:te*Ee,Un=hr?te:y/Ee;return[Ri,Un]}var hi=cr?y:w.width,Ga=hr?te:w.height;return[hi,Ga]}if(pt){var ea=0,Yi=0;return bs(We)?ea=ro(We,w.width):bs(ht)&&(Yi=ro(ht,w.height)),hc(We)?ea=Yi*Ee:(!ht||hc(ht))&&(Yi=ea/Ee),[ea,Yi]}var Ta=null,oo=null;if(bs(We)?Ta=ro(We,w.width):ht&&bs(ht)&&(oo=ro(ht,w.height)),Ta!==null&&(!ht||hc(ht))&&(oo=cr&&hr?Ta/y*te:w.height),oo!==null&&hc(We)&&(Ta=cr&&hr?oo/te*y:w.width),Ta!==null&&oo!==null)return[Ta,oo];throw new Error("Unable to calculate background-size for element")},iu=function(b,d){var w=b[d];return typeof w=="undefined"?b[0]:w},Cp=function(b,d,w,y,te){var Ee=d[0],We=d[1],ht=w[0],pt=w[1];switch(b){case 2:return[new Mi(Math.round(y.left),Math.round(y.top+We)),new Mi(Math.round(y.left+y.width),Math.round(y.top+We)),new Mi(Math.round(y.left+y.width),Math.round(pt+y.top+We)),new Mi(Math.round(y.left),Math.round(pt+y.top+We))];case 3:return[new Mi(Math.round(y.left+Ee),Math.round(y.top)),new Mi(Math.round(y.left+Ee+ht),Math.round(y.top)),new Mi(Math.round(y.left+Ee+ht),Math.round(y.height+y.top)),new Mi(Math.round(y.left+Ee),Math.round(y.height+y.top))];case 1:return[new Mi(Math.round(y.left+Ee),Math.round(y.top+We)),new Mi(Math.round(y.left+Ee+ht),Math.round(y.top+We)),new Mi(Math.round(y.left+Ee+ht),Math.round(y.top+We+pt)),new Mi(Math.round(y.left+Ee),Math.round(y.top+We+pt))];default:return[new Mi(Math.round(te.left),Math.round(te.top)),new Mi(Math.round(te.left+te.width),Math.round(te.top)),new Mi(Math.round(te.left+te.width),Math.round(te.height+te.top)),new Mi(Math.round(te.left),Math.round(te.height+te.top))]}},Kh="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",uh="Hidden Text",Hd=function(){function b(d){this._data={},this._document=d}return b.prototype.parseMetrics=function(d,w){var y=this._document.createElement("div"),te=this._document.createElement("img"),Ee=this._document.createElement("span"),We=this._document.body;y.style.visibility="hidden",y.style.fontFamily=d,y.style.fontSize=w,y.style.margin="0",y.style.padding="0",y.style.whiteSpace="nowrap",We.appendChild(y),te.src=Kh,te.width=1,te.height=1,te.style.margin="0",te.style.padding="0",te.style.verticalAlign="baseline",Ee.style.fontFamily=d,Ee.style.fontSize=w,Ee.style.margin="0",Ee.style.padding="0",Ee.appendChild(this._document.createTextNode(uh)),y.appendChild(Ee),y.appendChild(te);var ht=te.offsetTop-Ee.offsetTop+2;y.removeChild(Ee),y.appendChild(this._document.createTextNode(uh)),y.style.lineHeight="normal",te.style.verticalAlign="super";var pt=te.offsetTop-y.offsetTop+2;return We.removeChild(y),{baseline:ht,middle:pt}},b.prototype.getMetrics=function(d,w){var y=d+" "+w;return typeof this._data[y]=="undefined"&&(this._data[y]=this.parseMetrics(d,w)),this._data[y]},b}(),jd=function(){function b(d,w){this.context=d,this.options=w}return b}(),da=1e4,ll=function(b){x(d,b);function d(w,y){var te=b.call(this,w,y)||this;return te._activeEffects=[],te.canvas=y.canvas?y.canvas:document.createElement("canvas"),te.ctx=te.canvas.getContext("2d"),y.canvas||(te.canvas.width=Math.floor(y.width*y.scale),te.canvas.height=Math.floor(y.height*y.scale),te.canvas.style.width=y.width+"px",te.canvas.style.height=y.height+"px"),te.fontMetrics=new Hd(document),te.ctx.scale(te.options.scale,te.options.scale),te.ctx.translate(-y.x,-y.y),te.ctx.textBaseline="bottom",te._activeEffects=[],te.context.logger.debug("Canvas renderer initialized ("+y.width+"x"+y.height+") with scale "+y.scale),te}return d.prototype.applyEffects=function(w){for(var y=this;this._activeEffects.length;)this.popEffect();w.forEach(function(te){return y.applyEffect(te)})},d.prototype.applyEffect=function(w){this.ctx.save(),dc(w)&&(this.ctx.globalAlpha=w.opacity),Kd(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)),U0(w)&&(this.path(w.path),this.ctx.clip()),this._activeEffects.push(w)},d.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},d.prototype.renderStack=function(w){return Ae(this,void 0,void 0,function(){var y;return P(this,function(te){switch(te.label){case 0:return y=w.element.container.styles,y.isVisible()?[4,this.renderStackContent(w)]:[3,2];case 1:te.sent(),te.label=2;case 2:return[2]}})})},d.prototype.renderNode=function(w){return Ae(this,void 0,void 0,function(){return P(this,function(y){switch(y.label){case 0:if(oi(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]}})})},d.prototype.renderTextWithLetterSpacing=function(w,y,te){var Ee=this;if(y===0)this.ctx.fillText(w.text,w.bounds.left,w.bounds.top+te);else{var We=wo(w.text);We.reduce(function(ht,pt){return Ee.ctx.fillText(pt,ht,w.bounds.top+te),ht+Ee.ctx.measureText(pt).width},w.bounds.left)}},d.prototype.createFontStyle=function(w){var y=w.fontVariant.filter(function(We){return We==="normal"||We==="small-caps"}).join(""),te=zd(w.fontFamily).join(", "),Ee=Ls(w.fontSize)?""+w.fontSize.number+w.fontSize.unit:w.fontSize.number+"px";return[[w.fontStyle,y,w.fontWeight,Ee,te].join(" "),te,Ee]},d.prototype.renderTextNode=function(w,y){return Ae(this,void 0,void 0,function(){var te,Ee,We,ht,pt,tr,cr,hr,qr=this;return P(this,function(Ri){return te=this.createFontStyle(y),Ee=te[0],We=te[1],ht=te[2],this.ctx.font=Ee,this.ctx.direction=y.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",pt=this.fontMetrics.getMetrics(We,ht),tr=pt.baseline,cr=pt.middle,hr=y.paintOrder,w.textBounds.forEach(function(Un){hr.forEach(function(hi){switch(hi){case 0:qr.ctx.fillStyle=Do(y.color),qr.renderTextWithLetterSpacing(Un,y.letterSpacing,tr);var Ga=y.textShadow;Ga.length&&Un.text.trim().length&&(Ga.slice(0).reverse().forEach(function(ea){qr.ctx.shadowColor=Do(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,tr)}),qr.ctx.shadowColor="",qr.ctx.shadowOffsetX=0,qr.ctx.shadowOffsetY=0,qr.ctx.shadowBlur=0),y.textDecorationLine.length&&(qr.ctx.fillStyle=Do(y.textDecorationColor||y.color),y.textDecorationLine.forEach(function(ea){switch(ea){case 1:qr.ctx.fillRect(Un.bounds.left,Math.round(Un.bounds.top+tr),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+cr),Un.bounds.width,1);break}}));break;case 1:y.webkitTextStrokeWidth&&Un.text.trim().length&&(qr.ctx.strokeStyle=Do(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+tr)),qr.ctx.strokeStyle="",qr.ctx.lineWidth=0,qr.ctx.lineJoin="miter";break}})}),[2]})})},d.prototype.renderReplacedElement=function(w,y,te){if(te&&w.intrinsicWidth>0&&w.intrinsicHeight>0){var Ee=Ol(w),We=T0(y);this.path(We),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(te,0,0,w.intrinsicWidth,w.intrinsicHeight,Ee.left,Ee.top,Ee.width,Ee.height),this.ctx.restore()}},d.prototype.renderNodeContent=function(w){return Ae(this,void 0,void 0,function(){var y,te,Ee,We,ht,pt,Yi,Yi,tr,cr,hr,qr,oo,Ri,Un,Fa,hi,Ga,ea,Yi,Ta,oo,Fa;return P(this,function(Li){switch(Li.label){case 0:this.applyEffects(w.getEffects(4)),y=w.container,te=w.curves,Ee=y.styles,We=0,ht=y.textNodes,Li.label=1;case 1:return We<ht.length?(pt=ht[We],[4,this.renderTextNode(pt,Ee)]):[3,4];case 2:Li.sent(),Li.label=3;case 3:return We++,[3,1];case 4:if(!(y instanceof S0))return[3,8];Li.label=5;case 5:return Li.trys.push([5,7,,8]),[4,this.context.cache.match(y.src)];case 6:return Yi=Li.sent(),this.renderReplacedElement(y,te,Yi),[3,8];case 7:return Li.sent(),this.context.logger.error("Error loading image "+y.src),[3,8];case 8:if(y instanceof So&&this.renderReplacedElement(y,te,y.canvas),!(y instanceof wf))return[3,12];Li.label=9;case 9:return Li.trys.push([9,11,,12]),[4,this.context.cache.match(y.svg)];case 10:return Yi=Li.sent(),this.renderReplacedElement(y,te,Yi),[3,12];case 11:return Li.sent(),this.context.logger.error("Error loading svg "+y.svg.substring(0,255)),[3,12];case 12:return y instanceof Lh&&y.tree?(tr=new d(this.context,{scale:this.options.scale,backgroundColor:y.backgroundColor,x:0,y:0,width:y.width,height:y.height}),[4,tr.render(y.tree)]):[3,14];case 13:cr=Li.sent(),y.width&&y.height&&this.ctx.drawImage(cr,0,0,y.width,y.height,y.bounds.left,y.bounds.top,y.bounds.width,y.bounds.height),Li.label=14;case 14:if(y instanceof Xl&&(hr=Math.min(y.bounds.width,y.bounds.height),y.type===_0?y.checked&&(this.ctx.save(),this.path([new Mi(y.bounds.left+hr*.39363,y.bounds.top+hr*.79),new Mi(y.bounds.left+hr*.16,y.bounds.top+hr*.5549),new Mi(y.bounds.left+hr*.27347,y.bounds.top+hr*.44071),new Mi(y.bounds.left+hr*.39694,y.bounds.top+hr*.5649),new Mi(y.bounds.left+hr*.72983,y.bounds.top+hr*.23),new Mi(y.bounds.left+hr*.84,y.bounds.top+hr*.34085),new Mi(y.bounds.left+hr*.39363,y.bounds.top+hr*.79)]),this.ctx.fillStyle=Do(I0),this.ctx.fill(),this.ctx.restore()):y.type===Td&&y.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(y.bounds.left+hr/2,y.bounds.top+hr/2,hr/4,0,Math.PI*2,!0),this.ctx.fillStyle=Do(I0),this.ctx.fill(),this.ctx.restore())),Ff(y)&&y.value.length){switch(qr=this.createFontStyle(Ee),oo=qr[0],Ri=qr[1],Un=this.fontMetrics.getMetrics(oo,Ri).baseline,this.ctx.font=oo,this.ctx.fillStyle=Do(Ee.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=Ju(y.styles.textAlign),Fa=Ol(y),hi=0,y.styles.textAlign){case 1:hi+=Fa.width/2;break;case 2:hi+=Fa.width;break}Ga=Fa.add(hi,0,0,-Fa.height/2+1),this.ctx.save(),this.path([new Mi(Fa.left,Fa.top),new Mi(Fa.left+Fa.width,Fa.top),new Mi(Fa.left+Fa.width,Fa.top+Fa.height),new Mi(Fa.left,Fa.top+Fa.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Rc(y.value,Ga),Ee.letterSpacing,Un),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!oi(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,Ta=ea.url,Li.label=15;case 15:return Li.trys.push([15,17,,18]),[4,this.context.cache.match(Ta)];case 16:return Yi=Li.sent(),this.ctx.drawImage(Yi,y.bounds.left-(Yi.width+10),y.bounds.top),[3,18];case 17:return Li.sent(),this.context.logger.error("Error loading list-style-image "+Ta),[3,18];case 18:return[3,20];case 19:w.listValue&&y.styles.listStyleType!==-1&&(oo=this.createFontStyle(Ee)[0],this.ctx.font=oo,this.ctx.fillStyle=Do(Ee.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",Fa=new ne(y.bounds.left,y.bounds.top+ro(y.styles.paddingTop,y.bounds.width),y.bounds.width,$t(Ee.lineHeight,Ee.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Rc(w.listValue,Fa),Ee.letterSpacing,$t(Ee.lineHeight,Ee.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Li.label=20;case 20:return[2]}})})},d.prototype.renderStackContent=function(w){return Ae(this,void 0,void 0,function(){var y,te,ea,Ee,We,ea,ht,pt,ea,tr,cr,ea,hr,qr,ea,Ri,Un,ea,hi,Ga,ea;return P(this,function(Yi){switch(Yi.label){case 0:if(oi(w.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(w.element)];case 1:Yi.sent(),y=0,te=w.negativeZIndex,Yi.label=2;case 2:return y<te.length?(ea=te[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(),Ee=0,We=w.nonInlineLevel,Yi.label=7;case 7:return Ee<We.length?(ea=We[Ee],[4,this.renderNode(ea)]):[3,10];case 8:Yi.sent(),Yi.label=9;case 9:return Ee++,[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:tr=0,cr=w.nonPositionedInlineLevel,Yi.label=15;case 15:return tr<cr.length?(ea=cr[tr],[4,this.renderStack(ea)]):[3,18];case 16:Yi.sent(),Yi.label=17;case 17:return tr++,[3,15];case 18:hr=0,qr=w.inlineLevel,Yi.label=19;case 19:return hr<qr.length?(ea=qr[hr],[4,this.renderNode(ea)]):[3,22];case 20:Yi.sent(),Yi.label=21;case 21:return hr++,[3,19];case 22:Ri=0,Un=w.zeroOrAutoZIndexOrTransformedOrOpacity,Yi.label=23;case 23:return Ri<Un.length?(ea=Un[Ri],[4,this.renderStack(ea)]):[3,26];case 24:Yi.sent(),Yi.label=25;case 25:return Ri++,[3,23];case 26:hi=0,Ga=w.positiveZIndex,Yi.label=27;case 27:return hi<Ga.length?(ea=Ga[hi],[4,this.renderStack(ea)]):[3,30];case 28:Yi.sent(),Yi.label=29;case 29:return hi++,[3,27];case 30:return[2]}})})},d.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()},d.prototype.path=function(w){this.ctx.beginPath(),this.formatPath(w),this.ctx.closePath()},d.prototype.formatPath=function(w){var y=this;w.forEach(function(te,Ee){var We=Ac(te)?te.start:te;Ee===0?y.ctx.moveTo(We.x,We.y):y.ctx.lineTo(We.x,We.y),Ac(te)&&y.ctx.bezierCurveTo(te.startControl.x,te.startControl.y,te.endControl.x,te.endControl.y,te.end.x,te.end.y)})},d.prototype.renderRepeat=function(w,y,te,Ee){this.path(w),this.ctx.fillStyle=y,this.ctx.translate(te,Ee),this.ctx.fill(),this.ctx.translate(-te,-Ee)},d.prototype.resizeImage=function(w,y,te){var Ee;if(w.width===y&&w.height===te)return w;var We=(Ee=this.canvas.ownerDocument)!==null&&Ee!==void 0?Ee:document,ht=We.createElement("canvas");ht.width=Math.max(1,y),ht.height=Math.max(1,te);var pt=ht.getContext("2d");return pt.drawImage(w,0,0,w.width,w.height,0,0,y,te),ht},d.prototype.renderBackgroundImage=function(w){return Ae(this,void 0,void 0,function(){var y,te,Ee,We,ht,pt;return P(this,function(tr){switch(tr.label){case 0:y=w.styles.backgroundImage.length-1,te=function(cr){var hr,qr,Ri,qn,Yc,su,xo,Ec,qa,Un,qn,Yc,su,xo,Ec,hi,Ga,ea,Yi,Ta,oo,Fa,Li,Lo,qa,Ua,qn,Sc,ou,xo,Ec,dd,Yc,su,AA,Yu,dA,TA,Mu,UA,$d,qu;return P(this,function(fd){switch(fd.label){case 0:if(cr.type!==0)return[3,5];hr=void 0,qr=cr.url,fd.label=1;case 1:return fd.trys.push([1,3,,4]),[4,Ee.context.cache.match(qr)];case 2:return hr=fd.sent(),[3,4];case 3:return fd.sent(),Ee.context.logger.error("Error loading background-image "+qr),[3,4];case 4:return hr&&(Ri=Jc(w,y,[hr.width,hr.height,hr.width/hr.height]),qn=Ri[0],Yc=Ri[1],su=Ri[2],xo=Ri[3],Ec=Ri[4],qa=Ee.ctx.createPattern(Ee.resizeImage(hr,xo,Ec),"repeat"),Ee.renderRepeat(qn,qa,Yc,su)),[3,6];case 5:Gu(cr)?(Un=Jc(w,y,[null,null,null]),qn=Un[0],Yc=Un[1],su=Un[2],xo=Un[3],Ec=Un[4],hi=GA(cr.angle,xo,Ec),Ga=hi[0],ea=hi[1],Yi=hi[2],Ta=hi[3],oo=hi[4],Fa=document.createElement("canvas"),Fa.width=xo,Fa.height=Ec,Li=Fa.getContext("2d"),Lo=Li.createLinearGradient(ea,Ta,Yi,oo),uf(cr.stops,Ga).forEach(function(Kc){return Lo.addColorStop(Kc.stop,Do(Kc.color))}),Li.fillStyle=Lo,Li.fillRect(0,0,xo,Ec),xo>0&&Ec>0&&(qa=Ee.ctx.createPattern(Fa,"repeat"),Ee.renderRepeat(qn,qa,Yc,su))):b0(cr)&&(Ua=Jc(w,y,[null,null,null]),qn=Ua[0],Sc=Ua[1],ou=Ua[2],xo=Ua[3],Ec=Ua[4],dd=cr.position.length===0?[Pu]:cr.position,Yc=ro(dd[0],xo),su=ro(dd[dd.length-1],Ec),AA=Yo(cr,Yc,su,xo,Ec),Yu=AA[0],dA=AA[1],Yu>0&&dA>0&&(TA=Ee.ctx.createRadialGradient(Sc+Yc,ou+su,0,Sc+Yc,ou+su,Yu),uf(cr.stops,Yu*2).forEach(function(Kc){return TA.addColorStop(Kc.stop,Do(Kc.color))}),Ee.path(qn),Ee.ctx.fillStyle=TA,Yu!==dA?(Mu=w.bounds.left+.5*w.bounds.width,UA=w.bounds.top+.5*w.bounds.height,$d=dA/Yu,qu=1/$d,Ee.ctx.save(),Ee.ctx.translate(Mu,UA),Ee.ctx.transform(1,0,0,$d,0,0),Ee.ctx.translate(-Mu,-UA),Ee.ctx.fillRect(Sc,qu*(ou-UA)+UA,xo,Ec*qu),Ee.ctx.restore()):Ee.ctx.fill())),fd.label=6;case 6:return y--,[2]}})},Ee=this,We=0,ht=w.styles.backgroundImage.slice(0).reverse(),tr.label=1;case 1:return We<ht.length?(pt=ht[We],[5,te(pt)]):[3,4];case 2:tr.sent(),tr.label=3;case 3:return We++,[3,1];case 4:return[2]}})})},d.prototype.renderSolidBorder=function(w,y,te){return Ae(this,void 0,void 0,function(){return P(this,function(Ee){return this.path(Bc(te,y)),this.ctx.fillStyle=Do(w),this.ctx.fill(),[2]})})},d.prototype.renderDoubleBorder=function(w,y,te,Ee){return Ae(this,void 0,void 0,function(){var We,ht;return P(this,function(pt){switch(pt.label){case 0:return y<3?[4,this.renderSolidBorder(w,te,Ee)]:[3,2];case 1:return pt.sent(),[2];case 2:return We=ic(Ee,te),this.path(We),this.ctx.fillStyle=Do(w),this.ctx.fill(),ht=fc(Ee,te),this.path(ht),this.ctx.fill(),[2]}})})},d.prototype.renderNodeBackgroundAndBorders=function(w){return Ae(this,void 0,void 0,function(){var y,te,Ee,We,ht,pt,tr,cr,hr=this;return P(this,function(qr){switch(qr.label){case 0:return this.applyEffects(w.getEffects(2)),y=w.container.styles,te=!Zo(y.backgroundColor)||y.backgroundImage.length,Ee=[{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}],We=Ad(iu(y.backgroundClip,0),w.curves),te||y.boxShadow.length?(this.ctx.save(),this.path(We),this.ctx.clip(),Zo(y.backgroundColor)||(this.ctx.fillStyle=Do(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(Ri){hr.ctx.save();var Un=Ys(w.curves),hi=Ri.inset?0:da,Ga=wp(Un,-hi+(Ri.inset?1:-1)*Ri.spread.number,(Ri.inset?1:-1)*Ri.spread.number,Ri.spread.number*(Ri.inset?-2:2),Ri.spread.number*(Ri.inset?-2:2));Ri.inset?(hr.path(Un),hr.ctx.clip(),hr.mask(Ga)):(hr.mask(Un),hr.ctx.clip(),hr.path(Ga)),hr.ctx.shadowOffsetX=Ri.offsetX.number+hi,hr.ctx.shadowOffsetY=Ri.offsetY.number,hr.ctx.shadowColor=Do(Ri.color),hr.ctx.shadowBlur=Ri.blur.number,hr.ctx.fillStyle=Ri.inset?Do(Ri.color):"rgba(0,0,0,1)",hr.ctx.fill(),hr.ctx.restore()}),qr.label=2;case 2:ht=0,pt=0,tr=Ee,qr.label=3;case 3:return pt<tr.length?(cr=tr[pt],cr.style!==0&&!Zo(cr.color)&&cr.width>0?cr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(cr.color,cr.width,ht,w.curves,2)]:[3,11]):[3,13];case 4:return qr.sent(),[3,11];case 5:return cr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(cr.color,cr.width,ht,w.curves,3)];case 6:return qr.sent(),[3,11];case 7:return cr.style!==4?[3,9]:[4,this.renderDoubleBorder(cr.color,cr.width,ht,w.curves)];case 8:return qr.sent(),[3,11];case 9:return[4,this.renderSolidBorder(cr.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]}})})},d.prototype.renderDashedDottedBorder=function(w,y,te,Ee,We){return Ae(this,void 0,void 0,function(){var ht,pt,tr,cr,hr,qr,Ri,Un,hi,Ga,ea,Yi,Ta,oo,Fa,Li,Fa,Li;return P(this,function(Lo){return this.ctx.save(),ht=am(Ee,te),pt=Bc(Ee,te),We===2&&(this.path(pt),this.ctx.clip()),Ac(pt[0])?(tr=pt[0].start.x,cr=pt[0].start.y):(tr=pt[0].x,cr=pt[0].y),Ac(pt[1])?(hr=pt[1].end.x,qr=pt[1].end.y):(hr=pt[1].x,qr=pt[1].y),te===0||te===2?Ri=Math.abs(tr-hr):Ri=Math.abs(cr-qr),this.ctx.beginPath(),We===3?this.formatPath(ht):this.formatPath(pt.slice(0,2)),Un=y<3?y*3:y*2,hi=y<3?y*2:y,We===3&&(Un=y,hi=y),Ga=!0,Ri<=Un*2?Ga=!1:Ri<=Un*2+hi?(ea=Ri/(2*Un+hi),Un*=ea,hi*=ea):(Yi=Math.floor((Ri+hi)/(Un+hi)),Ta=(Ri-Yi*Un)/(Yi-1),oo=(Ri-(Yi+1)*Un)/Yi,hi=oo<=0||Math.abs(hi-Ta)<Math.abs(hi-oo)?Ta:oo),Ga&&(We===3?this.ctx.setLineDash([0,Un+hi]):this.ctx.setLineDash([Un,hi])),We===3?(this.ctx.lineCap="round",this.ctx.lineWidth=y):this.ctx.lineWidth=y*2+1.1,this.ctx.strokeStyle=Do(w),this.ctx.stroke(),this.ctx.setLineDash([]),We===2&&(Ac(pt[0])&&(Fa=pt[3],Li=pt[0],this.ctx.beginPath(),this.formatPath([new Mi(Fa.end.x,Fa.end.y),new Mi(Li.start.x,Li.start.y)]),this.ctx.stroke()),Ac(pt[1])&&(Fa=pt[1],Li=pt[2],this.ctx.beginPath(),this.formatPath([new Mi(Fa.end.x,Fa.end.y),new Mi(Li.start.x,Li.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},d.prototype.render=function(w){return Ae(this,void 0,void 0,function(){var y;return P(this,function(te){switch(te.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Do(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),y=Qc(w),[4,this.renderStack(y)];case 1:return te.sent(),this.applyEffects([]),[2,this.canvas]}})})},d}(jd),Ff=function(b){return b instanceof th||b instanceof ad?!0:b instanceof Xl&&b.type!==Td&&b.type!==_0},Ad=function(b,d){switch(b){case 0:return Ys(d);case 2:return $m(d);case 1:default:return T0(d)}},Ju=function(b){switch(b){case 1:return"center";case 2:return"right";case 0:default:return"left"}},ka=["-apple-system","system-ui"],zd=function(b){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?b.filter(function(d){return ka.indexOf(d)===-1}):b},au=function(b){x(d,b);function d(w,y){var te=b.call(this,w,y)||this;return te.canvas=y.canvas?y.canvas:document.createElement("canvas"),te.ctx=te.canvas.getContext("2d"),te.options=y,te.canvas.width=Math.floor(y.width*y.scale),te.canvas.height=Math.floor(y.height*y.scale),te.canvas.style.width=y.width+"px",te.canvas.style.height=y.height+"px",te.ctx.scale(te.options.scale,te.options.scale),te.ctx.translate(-y.x,-y.y),te.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+y.width+"x"+y.height+" at "+y.x+","+y.y+") with scale "+y.scale),te}return d.prototype.render=function(w){return Ae(this,void 0,void 0,function(){var y,te;return P(this,function(Ee){switch(Ee.label){case 0:return y=Ru(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,w),[4,H0(y)];case 1:return te=Ee.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Do(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(te,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},d}(jd),H0=function(b){return new Promise(function(d,w){var y=new Image;y.onload=function(){d(y)},y.onerror=w,y.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(b))})},uA=function(){function b(d){var w=d.id,y=d.enabled;this.id=w,this.enabled=y,this.start=Date.now()}return b.prototype.debug=function(){for(var d=[],w=0;w<arguments.length;w++)d[w]=arguments[w];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Oe([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},b.prototype.getTime=function(){return Date.now()-this.start},b.prototype.info=function(){for(var d=[],w=0;w<arguments.length;w++)d[w]=arguments[w];this.enabled&&typeof window!="undefined"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Oe([this.id,this.getTime()+"ms"],d))},b.prototype.warn=function(){for(var d=[],w=0;w<arguments.length;w++)d[w]=arguments[w];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Oe([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},b.prototype.error=function(){for(var d=[],w=0;w<arguments.length;w++)d[w]=arguments[w];this.enabled&&(typeof window!="undefined"&&window.console&&typeof console.error=="function"?console.error.apply(console,Oe([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},b.instances={},b}(),Zm=function(){function b(d,w){var y;this.windowBounds=w,this.instanceName="#"+b.instanceCount++,this.logger=new uA({id:this.instanceName,enabled:d.logging}),this.cache=(y=d.cache)!==null&&y!==void 0?y:new Iu(this,d)}return b.instanceCount=1,b}(),Vm=function(b,d){return d===void 0&&(d={}),Wm(b,d)};typeof window!="undefined"&&vp.setContext(window);var Wm=function(b,d){return Ae(void 0,void 0,void 0,function(){var w,y,te,Ee,We,ht,pt,tr,cr,hr,qr,Ri,Un,hi,Ga,ea,Yi,Ta,oo,Fa,Lo,Li,Lo,qa,Ua,qn,Sc,ou,xo,Ec,dd,Yc,su,AA,Yu,dA,TA,Mu,UA,$d;return P(this,function(qu){switch(qu.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 te={allowTaint:(qa=d.allowTaint)!==null&&qa!==void 0?qa:!1,imageTimeout:(Ua=d.imageTimeout)!==null&&Ua!==void 0?Ua:15e3,proxy:d.proxy,useCORS:(qn=d.useCORS)!==null&&qn!==void 0?qn:!1},Ee=me({logging:(Sc=d.logging)!==null&&Sc!==void 0?Sc:!0,cache:d.cache},te),We={windowWidth:(ou=d.windowWidth)!==null&&ou!==void 0?ou:y.innerWidth,windowHeight:(xo=d.windowHeight)!==null&&xo!==void 0?xo:y.innerHeight,scrollX:(Ec=d.scrollX)!==null&&Ec!==void 0?Ec:y.pageXOffset,scrollY:(dd=d.scrollY)!==null&&dd!==void 0?dd:y.pageYOffset},ht=new ne(We.scrollX,We.scrollY,We.windowWidth,We.windowHeight),pt=new Zm(Ee,ht),tr=(Yc=d.foreignObjectRendering)!==null&&Yc!==void 0?Yc:!1,cr={allowTaint:(su=d.allowTaint)!==null&&su!==void 0?su:!1,onclone:d.onclone,ignoreElements:d.ignoreElements,inlineImages:tr,copyStyles:tr},pt.logger.debug("Starting document clone with size "+ht.width+"x"+ht.height+" scrolled to "+-ht.left+","+-ht.top),hr=new D0(pt,b,cr),qr=hr.clonedReferenceElement,qr?[4,hr.toIFrame(w,ht)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Ri=qu.sent(),Un=Ds(qr)||Um(qr)?S(qr.ownerDocument):W(pt,qr),hi=Un.width,Ga=Un.height,ea=Un.left,Yi=Un.top,Ta=Jl(pt,qr,d.backgroundColor),oo={canvas:d.canvas,backgroundColor:Ta,scale:(Yu=(AA=d.scale)!==null&&AA!==void 0?AA:y.devicePixelRatio)!==null&&Yu!==void 0?Yu:1,x:((dA=d.x)!==null&&dA!==void 0?dA:0)+ea,y:((TA=d.y)!==null&&TA!==void 0?TA:0)+Yi,width:(Mu=d.width)!==null&&Mu!==void 0?Mu:Math.ceil(hi),height:(UA=d.height)!==null&&UA!==void 0?UA:Math.ceil(Ga)},tr?(pt.logger.debug("Document cloned, using foreign object rendering"),Lo=new au(pt,oo),[4,Lo.render(qr)]):[3,3];case 2:return Fa=qu.sent(),[3,5];case 3:return pt.logger.debug("Document cloned, element located at "+ea+","+Yi+" with size "+hi+"x"+Ga+" using computed rendering"),pt.logger.debug("Starting DOM parsing"),Li=fp(pt,qr),Ta===Li.styles.backgroundColor&&(Li.styles.backgroundColor=rl.TRANSPARENT),pt.logger.debug("Starting renderer for element at "+oo.x+","+oo.y+" with size "+oo.width+"x"+oo.height),Lo=new ll(pt,oo),[4,Lo.render(Li)];case 4:Fa=qu.sent(),qu.label=5;case 5:return(!(($d=d.removeContainer)!==null&&$d!==void 0)||$d)&&(D0.destroy(Ri)||pt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),pt.logger.debug("Finished rendering"),[2,Fa]}})})},Jl=function(b,d,w){var y=d.ownerDocument,te=y.documentElement?eu(b,getComputedStyle(y.documentElement).backgroundColor):rl.TRANSPARENT,Ee=y.body?eu(b,getComputedStyle(y.body).backgroundColor):rl.TRANSPARENT,We=typeof w=="string"?eu(b,w):w===null?rl.TRANSPARENT:4294967295;return d===y.documentElement?Zo(te)?Zo(Ee)?We:Ee:te:We};return Vm})},44164:function(un,Ut,x){var me=x(97671);(function(P,Oe){un.exports=Oe(x(53307),x(64270))})(self,function(Ae,P){return function(){var Oe={"./src/plugin/hyperlinks.js":function(v,M,h){"use strict";h.r(M);var $=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),_=h.n($),F=h("./node_modules/core-js/modules/es.string.link.js"),N=h.n(F),R=h("./src/worker.js"),L=h("./src/utils.js"),X=[],Q={toContainer:R.default.prototype.toContainer,toPdf:R.default.prototype.toPdf};R.default.prototype.toContainer=function(){return Q.toContainer.call(this).then(function(){if(this.opt.enableLinks){var re=this.prop.container,G=re.querySelectorAll("a"),K=(0,L.unitConvert)(re.getBoundingClientRect(),this.prop.pageSize.k);X=[],Array.prototype.forEach.call(G,function(le){for(var be=le.getClientRects(),Ne=0;Ne<be.length;Ne++){var ye=(0,L.unitConvert)(be[Ne],this.prop.pageSize.k);ye.left-=K.left,ye.top-=K.top;var Ue=Math.floor(ye.top/this.prop.pageSize.inner.height)+1,q=this.opt.margin[0]+ye.top%this.prop.pageSize.inner.height,de=this.opt.margin[1]+ye.left;X.push({page:Ue,top:q,left:de,clientRect:ye,link:le})}},this)}})},R.default.prototype.toPdf=function(){return Q.toPdf.call(this).then(function(){if(this.opt.enableLinks){X.forEach(function(G){this.prop.pdf.setPage(G.page),this.prop.pdf.link(G.left,G.top,G.clientRect.width,G.clientRect.height,{url:G.link.href})},this);var re=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(re)}})}},"./src/plugin/jspdf-plugin.js":function(v,M,h){"use strict";h.r(M);var $=h("./node_modules/core-js/modules/es.symbol.js"),_=h.n($),F=h("./node_modules/core-js/modules/es.symbol.description.js"),N=h.n(F),R=h("./node_modules/core-js/modules/es.object.to-string.js"),L=h.n(R),X=h("./node_modules/core-js/modules/es.symbol.iterator.js"),Q=h.n(X),oe=h("./node_modules/core-js/modules/es.array.iterator.js"),ee=h.n(oe),re=h("./node_modules/core-js/modules/es.string.iterator.js"),G=h.n(re),K=h("./node_modules/core-js/modules/web.dom-collections.iterator.js"),le=h.n(K),be=h("jspdf"),Ne=h.n(be);function ye(Ue){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ye=function(de){return typeof de}:ye=function(de){return de&&typeof Symbol=="function"&&de.constructor===Symbol&&de!==Symbol.prototype?"symbol":typeof de},ye(Ue)}be.jsPDF.getPageSize=function(Ue,q,de){if(ye(Ue)==="object"){var D=Ue;Ue=D.orientation,q=D.unit||q,de=D.format||de}q=q||"mm",de=de||"a4",Ue=(""+(Ue||"P")).toLowerCase();var qe=(""+de).toLowerCase(),Me={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(q){case"pt":var xe=1;break;case"mm":var xe=72/25.4;break;case"cm":var xe=72/2.54;break;case"in":var xe=72;break;case"px":var xe=72/96;break;case"pc":var xe=12;break;case"em":var xe=12;break;case"ex":var xe=6;break;default:throw"Invalid unit: "+q}if(Me.hasOwnProperty(qe))var Te=Me[qe][1]/xe,ve=Me[qe][0]/xe;else try{var Te=de[1],ve=de[0]}catch(Se){throw new Error("Invalid format: "+de)}if(Ue==="p"||Ue==="portrait"){if(Ue="p",ve>Te){var De=ve;ve=Te,Te=De}}else if(Ue==="l"||Ue==="landscape"){if(Ue="l",Te>ve){var De=ve;ve=Te,Te=De}}else throw"Invalid orientation: "+Ue;var pe={width:ve,height:Te,unit:q,k:xe};return pe},M.default=be.jsPDF},"./src/plugin/pagebreaks.js":function(v,M,h){"use strict";h.r(M);var $=h("./node_modules/core-js/modules/es.array.concat.js"),_=h.n($),F=h("./node_modules/core-js/modules/es.array.slice.js"),N=h.n(F),R=h("./node_modules/core-js/modules/es.array.join.js"),L=h.n(R),X=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Q=h.n(X),oe=h("./node_modules/core-js/modules/es.object.keys.js"),ee=h.n(oe),re=h("./src/worker.js"),G=h("./src/utils.js"),K={toContainer:re.default.prototype.toContainer};re.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},re.default.prototype.toContainer=function(){return K.toContainer.call(this).then(function(){var Ne=this.prop.container,ye=this.prop.pageSize.inner.px.height,Ue=[].concat(this.opt.pagebreak.mode),q={avoidAll:Ue.indexOf("avoid-all")!==-1,css:Ue.indexOf("css")!==-1,legacy:Ue.indexOf("legacy")!==-1},de={},D=this;["before","after","avoid"].forEach(function(xe){var Te=q.avoidAll&&xe==="avoid";de[xe]=Te?[]:[].concat(D.opt.pagebreak[xe]||[]),de[xe].length>0&&(de[xe]=Array.prototype.slice.call(Ne.querySelectorAll(de[xe].join(", "))))});var qe=Ne.querySelectorAll(".html2pdf__page-break");qe=Array.prototype.slice.call(qe);var Me=Ne.querySelectorAll("*");Array.prototype.forEach.call(Me,function(Te){var ve={before:!1,after:q.legacy&&qe.indexOf(Te)!==-1,avoid:q.avoidAll};if(q.css){var De=window.getComputedStyle(Te),pe=["always","page","left","right"],Se=["avoid","avoid-page"];ve={before:ve.before||pe.indexOf(De.breakBefore||De.pageBreakBefore)!==-1,after:ve.after||pe.indexOf(De.breakAfter||De.pageBreakAfter)!==-1,avoid:ve.avoid||Se.indexOf(De.breakInside||De.pageBreakInside)!==-1}}Object.keys(ve).forEach(function(kt){ve[kt]=ve[kt]||de[kt].indexOf(Te)!==-1});var Xe=Te.getBoundingClientRect();if(ve.avoid&&!ve.before){var et=Math.floor(Xe.top/ye),je=Math.floor(Xe.bottom/ye),Ye=Math.abs(Xe.bottom-Xe.top)/ye;je!==et&&Ye<=1&&(ve.before=!0)}if(ve.before){var _t=(0,G.createElement)("div",{style:{display:"block",height:ye-Xe.top%ye+"px"}});Te.parentNode.insertBefore(_t,Te)}if(ve.after){var _t=(0,G.createElement)("div",{style:{display:"block",height:ye-Xe.bottom%ye+"px"}});Te.parentNode.insertBefore(_t,Te.nextSibling)}})})}},"./src/utils.js":function(v,M,h){"use strict";h.r(M),h.d(M,{objType:function(){return Ue},createElement:function(){return q},cloneNode:function(){return de},unitConvert:function(){return D},toPx:function(){return qe}});var $=h("./node_modules/core-js/modules/es.number.constructor.js"),_=h.n($),F=h("./node_modules/core-js/modules/es.symbol.js"),N=h.n(F),R=h("./node_modules/core-js/modules/es.symbol.description.js"),L=h.n(R),X=h("./node_modules/core-js/modules/es.object.to-string.js"),Q=h.n(X),oe=h("./node_modules/core-js/modules/es.symbol.iterator.js"),ee=h.n(oe),re=h("./node_modules/core-js/modules/es.array.iterator.js"),G=h.n(re),K=h("./node_modules/core-js/modules/es.string.iterator.js"),le=h.n(K),be=h("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Ne=h.n(be);function ye(Me){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?ye=function(Te){return typeof Te}:ye=function(Te){return Te&&typeof Symbol=="function"&&Te.constructor===Symbol&&Te!==Symbol.prototype?"symbol":typeof Te},ye(Me)}var Ue=function(xe){var Te=ye(xe);return Te==="undefined"?"undefined":Te==="string"||xe instanceof String?"string":Te==="number"||xe instanceof Number?"number":Te==="function"||xe instanceof Function?"function":xe&&xe.constructor===Array?"array":xe&&xe.nodeType===1?"element":Te==="object"?"object":"unknown"},q=function(xe,Te){var ve=document.createElement(xe);if(Te.className&&(ve.className=Te.className),Te.innerHTML){ve.innerHTML=Te.innerHTML;for(var De=ve.getElementsByTagName("script"),pe=De.length;pe-- >0;null)De[pe].parentNode.removeChild(De[pe])}for(var Se in Te.style)ve.style[Se]=Te.style[Se];return ve},de=function Me(xe,Te){for(var ve=xe.nodeType===3?document.createTextNode(xe.nodeValue):xe.cloneNode(!1),De=xe.firstChild;De;De=De.nextSibling)(Te===!0||De.nodeType!==1||De.nodeName!=="SCRIPT")&&ve.appendChild(Me(De,Te));return xe.nodeType===1&&(xe.nodeName==="CANVAS"?(ve.width=xe.width,ve.height=xe.height,ve.getContext("2d").drawImage(xe,0,0)):(xe.nodeName==="TEXTAREA"||xe.nodeName==="SELECT")&&(ve.value=xe.value),ve.addEventListener("load",function(){ve.scrollTop=xe.scrollTop,ve.scrollLeft=xe.scrollLeft},!0)),ve},D=function(xe,Te){if(Ue(xe)==="number")return xe*72/96/Te;var ve={};for(var De in xe)ve[De]=xe[De]*72/96/Te;return ve},qe=function(xe,Te){return Math.floor(xe*Te/72*96)}},"./src/worker.js":function(v,M,h){"use strict";h.r(M);var $=h("./node_modules/core-js/modules/es.object.assign.js"),_=h.n($),F=h("./node_modules/core-js/modules/es.array.map.js"),N=h.n(F),R=h("./node_modules/core-js/modules/es.object.keys.js"),L=h.n(R),X=h("./node_modules/core-js/modules/es.array.concat.js"),Q=h.n(X),oe=h("./node_modules/core-js/modules/es.object.to-string.js"),ee=h.n(oe),re=h("./node_modules/core-js/modules/es.regexp.to-string.js"),G=h.n(re),K=h("./node_modules/core-js/modules/es.function.name.js"),le=h.n(K),be=h("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Ne=h.n(be),ye=h("jspdf"),Ue=h.n(ye),q=h("html2canvas"),de=h.n(q),D=h("./src/utils.js"),qe=h("./node_modules/es6-promise/dist/es6-promise.js"),Me=h.n(qe),xe=Me().Promise,Te=function ve(De){var pe=Object.assign(ve.convert(xe.resolve()),JSON.parse(JSON.stringify(ve.template))),Se=ve.convert(xe.resolve(),pe);return Se=Se.setProgress(1,ve,1,[ve]),Se=Se.set(De),Se};Te.prototype=Object.create(xe.prototype),Te.prototype.constructor=Te,Te.convert=function(De,pe){return De.__proto__=pe||Te.prototype,De},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(De,pe){function Se(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(pe=pe||Se(De),pe){case"string":return this.set({src:(0,D.createElement)("div",{innerHTML:De})});case"element":return this.set({src:De});case"canvas":return this.set({canvas:De});case"img":return this.set({img:De});default:return this.error("Unknown source type.")}})},Te.prototype.to=function(De){switch(De){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 De=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(De).then(function(){var Se={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"};Se.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:Se}),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 De=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(De).then(function(){var Se=Object.assign({},this.opt.html2canvas);return delete Se.onrendered,q(this.prop.container,Se)}).then(function(Se){var Xe=this.opt.html2canvas.onrendered||function(){};Xe(Se),this.prop.canvas=Se,document.body.removeChild(this.prop.overlay)})},Te.prototype.toImg=function(){var De=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(De).then(function(){var Se=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Se})},Te.prototype.toPdf=function(){var De=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(De).then(function(){var Se=this.prop.canvas,Xe=this.opt,et=Se.height,je=Math.floor(Se.width*this.prop.pageSize.inner.ratio),Ye=Math.ceil(et/je),_t=this.prop.pageSize.inner.height,kt=document.createElement("canvas"),Ot=kt.getContext("2d");kt.width=Se.width,kt.height=je,this.prop.pdf=this.prop.pdf||new ye.jsPDF(Xe.jsPDF);for(var sr=0;sr<Ye;sr++){sr===Ye-1&&et%je!==0&&(kt.height=et%je,_t=kt.height*this.prop.pageSize.inner.width/kt.width);var rr=kt.width,br=kt.height;Ot.fillStyle="white",Ot.fillRect(0,0,rr,br),Ot.drawImage(Se,0,sr*je,rr,br,0,0,rr,br),sr&&this.prop.pdf.addPage();var lr=kt.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,_t)}})},Te.prototype.output=function(De,pe,Se){return Se=Se||"pdf",Se.toLowerCase()==="img"||Se.toLowerCase()==="image"?this.outputImg(De,pe):this.outputPdf(De,pe)},Te.prototype.outputPdf=function(De,pe){var Se=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Se).then(function(){return this.prop.pdf.output(De,pe)})},Te.prototype.outputImg=function(De,pe){var Se=[function(){return this.prop.img||this.toImg()}];return this.thenList(Se).then(function(){switch(De){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 "'+De+'" is not supported.'}})},Te.prototype.save=function(De){var pe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(pe).set(De?{filename:De}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Te.prototype.set=function(De){if((0,D.objType)(De)!=="object")return this;var pe=Object.keys(De||{}).map(function(Se){switch(Se){case"margin":return this.setMargin.bind(this,De.margin);case"jsPDF":return function(){return this.opt.jsPDF=De.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,De.pageSize);default:return Se in Te.template.prop?function(){this.prop[Se]=De[Se]}:function(){this.opt[Se]=De[Se]}}},this);return this.then(function(){return this.thenList(pe)})},Te.prototype.get=function(De,pe){return this.then(function(){var Xe=De in Te.template.prop?this.prop[De]:this.opt[De];return pe?pe(Xe):Xe})},Te.prototype.setMargin=function(De){return this.then(function(){switch((0,D.objType)(De)){case"number":De=[De,De,De,De];case"array":if(De.length===2&&(De=[De[0],De[1],De[0],De[1]]),De.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=De}).then(this.setPageSize)},Te.prototype.setPageSize=function(De){return this.then(function(){De=De||ye.jsPDF.getPageSize(this.opt.jsPDF),De.hasOwnProperty("inner")||(De.inner={width:De.width-this.opt.margin[1]-this.opt.margin[3],height:De.height-this.opt.margin[0]-this.opt.margin[2]},De.inner.px={width:(0,D.toPx)(De.inner.width,De.k),height:(0,D.toPx)(De.inner.height,De.k)},De.inner.ratio=De.inner.height/De.inner.width),this.prop.pageSize=De})},Te.prototype.setProgress=function(De,pe,Se,Xe){return De!=null&&(this.progress.val=De),pe!=null&&(this.progress.state=pe),Se!=null&&(this.progress.n=Se),Xe!=null&&(this.progress.stack=Xe),this.progress.ratio=this.progress.val/this.progress.state,this},Te.prototype.updateProgress=function(De,pe,Se,Xe){return this.setProgress(De?this.progress.val+De:null,pe||null,Se?this.progress.n+Se:null,Xe?this.progress.stack.concat(Xe):null)},Te.prototype.then=function(De,pe){var Se=this;return this.thenCore(De,pe,function(et,je){return Se.updateProgress(null,null,1,[et]),xe.prototype.then.call(this,function(_t){return Se.updateProgress(null,et),_t}).then(et,je).then(function(_t){return Se.updateProgress(1),_t})})},Te.prototype.thenCore=function(De,pe,Se){Se=Se||xe.prototype.then;var Xe=this;De&&(De=De.bind(Xe)),pe&&(pe=pe.bind(Xe));var et=xe.toString().indexOf("[native code]")!==-1&&xe.name==="Promise",je=et?Xe:Te.convert(Object.assign({},Xe),xe.prototype),Ye=Se.call(je,De,pe);return Te.convert(Ye,Xe.__proto__)},Te.prototype.thenExternal=function(De,pe){return xe.prototype.then.call(this,De,pe)},Te.prototype.thenList=function(De){var pe=this;return De.forEach(function(Xe){pe=pe.thenCore(Xe)}),pe},Te.prototype.catch=function(ve){ve&&(ve=ve.bind(this));var De=xe.prototype.catch.call(this,ve);return Te.convert(De,this)},Te.prototype.catchExternal=function(De){return xe.prototype.catch.call(this,De)},Te.prototype.error=function(De){return this.then(function(){throw new Error(De)})},Te.prototype.using=Te.prototype.set,Te.prototype.saveAs=Te.prototype.save,Te.prototype.export=Te.prototype.output,Te.prototype.run=Te.prototype.then,M.default=Te},"./node_modules/core-js/internals/a-function.js":function(v){v.exports=function(M){if(typeof M!="function")throw TypeError(String(M)+" is not a function");return M}},"./node_modules/core-js/internals/a-possible-prototype.js":function(v,M,h){var $=h("./node_modules/core-js/internals/is-object.js");v.exports=function(_){if(!$(_)&&_!==null)throw TypeError("Can't set "+String(_)+" as a prototype");return _}},"./node_modules/core-js/internals/add-to-unscopables.js":function(v,M,h){var $=h("./node_modules/core-js/internals/well-known-symbol.js"),_=h("./node_modules/core-js/internals/object-create.js"),F=h("./node_modules/core-js/internals/object-define-property.js"),N=$("unscopables"),R=Array.prototype;R[N]==null&&F.f(R,N,{configurable:!0,value:_(null)}),v.exports=function(L){R[N][L]=!0}},"./node_modules/core-js/internals/an-object.js":function(v,M,h){var $=h("./node_modules/core-js/internals/is-object.js");v.exports=function(_){if(!$(_))throw TypeError(String(_)+" is not an object");return _}},"./node_modules/core-js/internals/array-for-each.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/array-iteration.js").forEach,_=h("./node_modules/core-js/internals/array-method-is-strict.js"),F=_("forEach");v.exports=F?[].forEach:function(R){return $(this,R,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(v,M,h){var $=h("./node_modules/core-js/internals/to-indexed-object.js"),_=h("./node_modules/core-js/internals/to-length.js"),F=h("./node_modules/core-js/internals/to-absolute-index.js"),N=function(R){return function(L,X,Q){var oe=$(L),ee=_(oe.length),re=F(Q,ee),G;if(R&&X!=X){for(;ee>re;)if(G=oe[re++],G!=G)return!0}else for(;ee>re;re++)if((R||re in oe)&&oe[re]===X)return R||re||0;return!R&&-1}};v.exports={includes:N(!0),indexOf:N(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(v,M,h){var $=h("./node_modules/core-js/internals/function-bind-context.js"),_=h("./node_modules/core-js/internals/indexed-object.js"),F=h("./node_modules/core-js/internals/to-object.js"),N=h("./node_modules/core-js/internals/to-length.js"),R=h("./node_modules/core-js/internals/array-species-create.js"),L=[].push,X=function(Q){var oe=Q==1,ee=Q==2,re=Q==3,G=Q==4,K=Q==6,le=Q==7,be=Q==5||K;return function(Ne,ye,Ue,q){for(var de=F(Ne),D=_(de),qe=$(ye,Ue,3),Me=N(D.length),xe=0,Te=q||R,ve=oe?Te(Ne,Me):ee||le?Te(Ne,0):void 0,De,pe;Me>xe;xe++)if((be||xe in D)&&(De=D[xe],pe=qe(De,xe,de),Q))if(oe)ve[xe]=pe;else if(pe)switch(Q){case 3:return!0;case 5:return De;case 6:return xe;case 2:L.call(ve,De)}else switch(Q){case 4:return!1;case 7:L.call(ve,De)}return K?-1:re||G?G:ve}};v.exports={forEach:X(0),map:X(1),filter:X(2),some:X(3),every:X(4),find:X(5),findIndex:X(6),filterReject:X(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(v,M,h){var $=h("./node_modules/core-js/internals/fails.js"),_=h("./node_modules/core-js/internals/well-known-symbol.js"),F=h("./node_modules/core-js/internals/engine-v8-version.js"),N=_("species");v.exports=function(R){return F>=51||!$(function(){var L=[],X=L.constructor={};return X[N]=function(){return{foo:1}},L[R](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/fails.js");v.exports=function(_,F){var N=[][_];return!!N&&$(function(){N.call(null,F||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(v,M,h){var $=h("./node_modules/core-js/internals/is-object.js"),_=h("./node_modules/core-js/internals/is-array.js"),F=h("./node_modules/core-js/internals/well-known-symbol.js"),N=F("species");v.exports=function(R){var L;return _(R)&&(L=R.constructor,typeof L=="function"&&(L===Array||_(L.prototype))?L=void 0:$(L)&&(L=L[N],L===null&&(L=void 0))),L===void 0?Array:L}},"./node_modules/core-js/internals/array-species-create.js":function(v,M,h){var $=h("./node_modules/core-js/internals/array-species-constructor.js");v.exports=function(_,F){return new($(_))(F===0?0:F)}},"./node_modules/core-js/internals/classof-raw.js":function(v){var M={}.toString;v.exports=function(h){return M.call(h).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(v,M,h){var $=h("./node_modules/core-js/internals/to-string-tag-support.js"),_=h("./node_modules/core-js/internals/classof-raw.js"),F=h("./node_modules/core-js/internals/well-known-symbol.js"),N=F("toStringTag"),R=_(function(){return arguments}())=="Arguments",L=function(X,Q){try{return X[Q]}catch(oe){}};v.exports=$?_:function(X){var Q,oe,ee;return X===void 0?"Undefined":X===null?"Null":typeof(oe=L(Q=Object(X),N))=="string"?oe:R?_(Q):(ee=_(Q))=="Object"&&typeof Q.callee=="function"?"Arguments":ee}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(v,M,h){var $=h("./node_modules/core-js/internals/has.js"),_=h("./node_modules/core-js/internals/own-keys.js"),F=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),N=h("./node_modules/core-js/internals/object-define-property.js");v.exports=function(R,L){for(var X=_(L),Q=N.f,oe=F.f,ee=0;ee<X.length;ee++){var re=X[ee];$(R,re)||Q(R,re,oe(L,re))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(v,M,h){var $=h("./node_modules/core-js/internals/fails.js");v.exports=!$(function(){function _(){}return _.prototype.constructor=null,Object.getPrototypeOf(new _)!==_.prototype})},"./node_modules/core-js/internals/create-html.js":function(v,M,h){var $=h("./node_modules/core-js/internals/require-object-coercible.js"),_=h("./node_modules/core-js/internals/to-string.js"),F=/"/g;v.exports=function(N,R,L,X){var Q=_($(N)),oe="<"+R;return L!==""&&(oe+=" "+L+'="'+_(X).replace(F,"&quot;")+'"'),oe+">"+Q+"</"+R+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,_=h("./node_modules/core-js/internals/object-create.js"),F=h("./node_modules/core-js/internals/create-property-descriptor.js"),N=h("./node_modules/core-js/internals/set-to-string-tag.js"),R=h("./node_modules/core-js/internals/iterators.js"),L=function(){return this};v.exports=function(X,Q,oe){var ee=Q+" Iterator";return X.prototype=_($,{next:F(1,oe)}),N(X,ee,!1,!0),R[ee]=L,X}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(v,M,h){var $=h("./node_modules/core-js/internals/descriptors.js"),_=h("./node_modules/core-js/internals/object-define-property.js"),F=h("./node_modules/core-js/internals/create-property-descriptor.js");v.exports=$?function(N,R,L){return _.f(N,R,F(1,L))}:function(N,R,L){return N[R]=L,N}},"./node_modules/core-js/internals/create-property-descriptor.js":function(v){v.exports=function(M,h){return{enumerable:!(M&1),configurable:!(M&2),writable:!(M&4),value:h}}},"./node_modules/core-js/internals/create-property.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/to-property-key.js"),_=h("./node_modules/core-js/internals/object-define-property.js"),F=h("./node_modules/core-js/internals/create-property-descriptor.js");v.exports=function(N,R,L){var X=$(R);X in N?_.f(N,X,F(0,L)):N[X]=L}},"./node_modules/core-js/internals/define-iterator.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),_=h("./node_modules/core-js/internals/create-iterator-constructor.js"),F=h("./node_modules/core-js/internals/object-get-prototype-of.js"),N=h("./node_modules/core-js/internals/object-set-prototype-of.js"),R=h("./node_modules/core-js/internals/set-to-string-tag.js"),L=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),X=h("./node_modules/core-js/internals/redefine.js"),Q=h("./node_modules/core-js/internals/well-known-symbol.js"),oe=h("./node_modules/core-js/internals/is-pure.js"),ee=h("./node_modules/core-js/internals/iterators.js"),re=h("./node_modules/core-js/internals/iterators-core.js"),G=re.IteratorPrototype,K=re.BUGGY_SAFARI_ITERATORS,le=Q("iterator"),be="keys",Ne="values",ye="entries",Ue=function(){return this};v.exports=function(q,de,D,qe,Me,xe,Te){_(D,de,qe);var ve=function(Ot){if(Ot===Me&&et)return et;if(!K&&Ot in Se)return Se[Ot];switch(Ot){case be:return function(){return new D(this,Ot)};case Ne:return function(){return new D(this,Ot)};case ye:return function(){return new D(this,Ot)}}return function(){return new D(this)}},De=de+" Iterator",pe=!1,Se=q.prototype,Xe=Se[le]||Se["@@iterator"]||Me&&Se[Me],et=!K&&Xe||ve(Me),je=de=="Array"&&Se.entries||Xe,Ye,_t,kt;if(je&&(Ye=F(je.call(new q)),G!==Object.prototype&&Ye.next&&(!oe&&F(Ye)!==G&&(N?N(Ye,G):typeof Ye[le]!="function"&&L(Ye,le,Ue)),R(Ye,De,!0,!0),oe&&(ee[De]=Ue))),Me==Ne&&Xe&&Xe.name!==Ne&&(pe=!0,et=function(){return Xe.call(this)}),(!oe||Te)&&Se[le]!==et&&L(Se,le,et),ee[de]=et,Me)if(_t={values:ve(Ne),keys:xe?et:ve(be),entries:ve(ye)},Te)for(kt in _t)(K||pe||!(kt in Se))&&X(Se,kt,_t[kt]);else $({target:de,proto:!0,forced:K||pe},_t);return _t}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(v,M,h){var $=h("./node_modules/core-js/internals/path.js"),_=h("./node_modules/core-js/internals/has.js"),F=h("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),N=h("./node_modules/core-js/internals/object-define-property.js").f;v.exports=function(R){var L=$.Symbol||($.Symbol={});_(L,R)||N(L,R,{value:F.f(R)})}},"./node_modules/core-js/internals/descriptors.js":function(v,M,h){var $=h("./node_modules/core-js/internals/fails.js");v.exports=!$(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(v,M,h){var $=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/is-object.js"),F=$.document,N=_(F)&&_(F.createElement);v.exports=function(R){return N?F.createElement(R):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(v){v.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(v,M,h){var $=h("./node_modules/core-js/internals/get-built-in.js");v.exports=$("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(v,M,h){var $=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/engine-user-agent.js"),F=$.process,N=$.Deno,R=F&&F.versions||N&&N.version,L=R&&R.v8,X,Q;L?(X=L.split("."),Q=X[0]<4?1:X[0]+X[1]):_&&(X=_.match(/Edge\/(\d+)/),(!X||X[1]>=74)&&(X=_.match(/Chrome\/(\d+)/),X&&(Q=X[1]))),v.exports=Q&&+Q},"./node_modules/core-js/internals/enum-bug-keys.js":function(v){v.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(v,M,h){var $=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,F=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),N=h("./node_modules/core-js/internals/redefine.js"),R=h("./node_modules/core-js/internals/set-global.js"),L=h("./node_modules/core-js/internals/copy-constructor-properties.js"),X=h("./node_modules/core-js/internals/is-forced.js");v.exports=function(Q,oe){var ee=Q.target,re=Q.global,G=Q.stat,K,le,be,Ne,ye,Ue;if(re?le=$:G?le=$[ee]||R(ee,{}):le=($[ee]||{}).prototype,le)for(be in oe){if(ye=oe[be],Q.noTargetGet?(Ue=_(le,be),Ne=Ue&&Ue.value):Ne=le[be],K=X(re?be:ee+(G?".":"#")+be,Q.forced),!K&&Ne!==void 0){if(typeof ye==typeof Ne)continue;L(ye,Ne)}(Q.sham||Ne&&Ne.sham)&&F(ye,"sham",!0),N(le,be,ye,Q)}}},"./node_modules/core-js/internals/fails.js":function(v){v.exports=function(M){try{return!!M()}catch(h){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(v,M,h){var $=h("./node_modules/core-js/internals/a-function.js");v.exports=function(_,F,N){if($(_),F===void 0)return _;switch(N){case 0:return function(){return _.call(F)};case 1:return function(R){return _.call(F,R)};case 2:return function(R,L){return _.call(F,R,L)};case 3:return function(R,L,X){return _.call(F,R,L,X)}}return function(){return _.apply(F,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(v,M,h){var $=h("./node_modules/core-js/internals/global.js"),_=function(F){return typeof F=="function"?F:void 0};v.exports=function(F,N){return arguments.length<2?_($[F]):$[F]&&$[F][N]}},"./node_modules/core-js/internals/global.js":function(v){var M=function(h){return h&&h.Math==Math&&h};v.exports=M(typeof globalThis=="object"&&globalThis)||M(typeof window=="object"&&window)||M(typeof self=="object"&&self)||M(typeof x.g=="object"&&x.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(v,M,h){var $=h("./node_modules/core-js/internals/to-object.js"),_={}.hasOwnProperty;v.exports=Object.hasOwn||function(N,R){return _.call($(N),R)}},"./node_modules/core-js/internals/hidden-keys.js":function(v){v.exports={}},"./node_modules/core-js/internals/html.js":function(v,M,h){var $=h("./node_modules/core-js/internals/get-built-in.js");v.exports=$("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(v,M,h){var $=h("./node_modules/core-js/internals/descriptors.js"),_=h("./node_modules/core-js/internals/fails.js"),F=h("./node_modules/core-js/internals/document-create-element.js");v.exports=!$&&!_(function(){return Object.defineProperty(F("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(v,M,h){var $=h("./node_modules/core-js/internals/fails.js"),_=h("./node_modules/core-js/internals/classof-raw.js"),F="".split;v.exports=$(function(){return!Object("z").propertyIsEnumerable(0)})?function(N){return _(N)=="String"?F.call(N,""):Object(N)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(v,M,h){var $=h("./node_modules/core-js/internals/is-object.js"),_=h("./node_modules/core-js/internals/object-set-prototype-of.js");v.exports=function(F,N,R){var L,X;return _&&typeof(L=N.constructor)=="function"&&L!==R&&$(X=L.prototype)&&X!==R.prototype&&_(F,X),F}},"./node_modules/core-js/internals/inspect-source.js":function(v,M,h){var $=h("./node_modules/core-js/internals/shared-store.js"),_=Function.toString;typeof $.inspectSource!="function"&&($.inspectSource=function(F){return _.call(F)}),v.exports=$.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(v,M,h){var $=h("./node_modules/core-js/internals/native-weak-map.js"),_=h("./node_modules/core-js/internals/global.js"),F=h("./node_modules/core-js/internals/is-object.js"),N=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),R=h("./node_modules/core-js/internals/has.js"),L=h("./node_modules/core-js/internals/shared-store.js"),X=h("./node_modules/core-js/internals/shared-key.js"),Q=h("./node_modules/core-js/internals/hidden-keys.js"),oe="Object already initialized",ee=_.WeakMap,re,G,K,le=function(D){return K(D)?G(D):re(D,{})},be=function(D){return function(qe){var Me;if(!F(qe)||(Me=G(qe)).type!==D)throw TypeError("Incompatible receiver, "+D+" required");return Me}};if($||L.state){var Ne=L.state||(L.state=new ee),ye=Ne.get,Ue=Ne.has,q=Ne.set;re=function(D,qe){if(Ue.call(Ne,D))throw new TypeError(oe);return qe.facade=D,q.call(Ne,D,qe),qe},G=function(D){return ye.call(Ne,D)||{}},K=function(D){return Ue.call(Ne,D)}}else{var de=X("state");Q[de]=!0,re=function(D,qe){if(R(D,de))throw new TypeError(oe);return qe.facade=D,N(D,de,qe),qe},G=function(D){return R(D,de)?D[de]:{}},K=function(D){return R(D,de)}}v.exports={set:re,get:G,has:K,enforce:le,getterFor:be}},"./node_modules/core-js/internals/is-array.js":function(v,M,h){var $=h("./node_modules/core-js/internals/classof-raw.js");v.exports=Array.isArray||function(F){return $(F)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(v,M,h){var $=h("./node_modules/core-js/internals/fails.js"),_=/#|\.prototype\./,F=function(Q,oe){var ee=R[N(Q)];return ee==X?!0:ee==L?!1:typeof oe=="function"?$(oe):!!oe},N=F.normalize=function(Q){return String(Q).replace(_,".").toLowerCase()},R=F.data={},L=F.NATIVE="N",X=F.POLYFILL="P";v.exports=F},"./node_modules/core-js/internals/is-object.js":function(v){v.exports=function(M){return typeof M=="object"?M!==null:typeof M=="function"}},"./node_modules/core-js/internals/is-pure.js":function(v){v.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(v,M,h){var $=h("./node_modules/core-js/internals/get-built-in.js"),_=h("./node_modules/core-js/internals/use-symbol-as-uid.js");v.exports=_?function(F){return typeof F=="symbol"}:function(F){var N=$("Symbol");return typeof N=="function"&&Object(F)instanceof N}},"./node_modules/core-js/internals/iterators-core.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/fails.js"),_=h("./node_modules/core-js/internals/object-get-prototype-of.js"),F=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),N=h("./node_modules/core-js/internals/has.js"),R=h("./node_modules/core-js/internals/well-known-symbol.js"),L=h("./node_modules/core-js/internals/is-pure.js"),X=R("iterator"),Q=!1,oe=function(){return this},ee,re,G;[].keys&&(G=[].keys(),"next"in G?(re=_(_(G)),re!==Object.prototype&&(ee=re)):Q=!0);var K=ee==null||$(function(){var le={};return ee[X].call(le)!==le});K&&(ee={}),(!L||K)&&!N(ee,X)&&F(ee,X,oe),v.exports={IteratorPrototype:ee,BUGGY_SAFARI_ITERATORS:Q}},"./node_modules/core-js/internals/iterators.js":function(v){v.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(v,M,h){var $=h("./node_modules/core-js/internals/engine-v8-version.js"),_=h("./node_modules/core-js/internals/fails.js");v.exports=!!Object.getOwnPropertySymbols&&!_(function(){var F=Symbol();return!String(F)||!(Object(F)instanceof Symbol)||!Symbol.sham&&$&&$<41})},"./node_modules/core-js/internals/native-weak-map.js":function(v,M,h){var $=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/inspect-source.js"),F=$.WeakMap;v.exports=typeof F=="function"&&/native code/.test(_(F))},"./node_modules/core-js/internals/object-assign.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/descriptors.js"),_=h("./node_modules/core-js/internals/fails.js"),F=h("./node_modules/core-js/internals/object-keys.js"),N=h("./node_modules/core-js/internals/object-get-own-property-symbols.js"),R=h("./node_modules/core-js/internals/object-property-is-enumerable.js"),L=h("./node_modules/core-js/internals/to-object.js"),X=h("./node_modules/core-js/internals/indexed-object.js"),Q=Object.assign,oe=Object.defineProperty;v.exports=!Q||_(function(){if($&&Q({b:1},Q(oe({},"a",{enumerable:!0,get:function(){oe(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var ee={},re={},G=Symbol(),K="abcdefghijklmnopqrst";return ee[G]=7,K.split("").forEach(function(le){re[le]=le}),Q({},ee)[G]!=7||F(Q({},re)).join("")!=K})?function(re,G){for(var K=L(re),le=arguments.length,be=1,Ne=N.f,ye=R.f;le>be;)for(var Ue=X(arguments[be++]),q=Ne?F(Ue).concat(Ne(Ue)):F(Ue),de=q.length,D=0,qe;de>D;)qe=q[D++],(!$||ye.call(Ue,qe))&&(K[qe]=Ue[qe]);return K}:Q},"./node_modules/core-js/internals/object-create.js":function(v,M,h){var $=h("./node_modules/core-js/internals/an-object.js"),_=h("./node_modules/core-js/internals/object-define-properties.js"),F=h("./node_modules/core-js/internals/enum-bug-keys.js"),N=h("./node_modules/core-js/internals/hidden-keys.js"),R=h("./node_modules/core-js/internals/html.js"),L=h("./node_modules/core-js/internals/document-create-element.js"),X=h("./node_modules/core-js/internals/shared-key.js"),Q=">",oe="<",ee="prototype",re="script",G=X("IE_PROTO"),K=function(){},le=function(q){return oe+re+Q+q+oe+"/"+re+Q},be=function(q){q.write(le("")),q.close();var de=q.parentWindow.Object;return q=null,de},Ne=function(){var q=L("iframe"),de="java"+re+":",D;if(q.style)return q.style.display="none",R.appendChild(q),q.src=String(de),D=q.contentWindow.document,D.open(),D.write(le("document.F=Object")),D.close(),D.F},ye,Ue=function(){try{ye=new ActiveXObject("htmlfile")}catch(de){}Ue=document.domain&&ye?be(ye):Ne()||be(ye);for(var q=F.length;q--;)delete Ue[ee][F[q]];return Ue()};N[G]=!0,v.exports=Object.create||function(de,D){var qe;return de!==null?(K[ee]=$(de),qe=new K,K[ee]=null,qe[G]=de):qe=Ue(),D===void 0?qe:_(qe,D)}},"./node_modules/core-js/internals/object-define-properties.js":function(v,M,h){var $=h("./node_modules/core-js/internals/descriptors.js"),_=h("./node_modules/core-js/internals/object-define-property.js"),F=h("./node_modules/core-js/internals/an-object.js"),N=h("./node_modules/core-js/internals/object-keys.js");v.exports=$?Object.defineProperties:function(L,X){F(L);for(var Q=N(X),oe=Q.length,ee=0,re;oe>ee;)_.f(L,re=Q[ee++],X[re]);return L}},"./node_modules/core-js/internals/object-define-property.js":function(v,M,h){var $=h("./node_modules/core-js/internals/descriptors.js"),_=h("./node_modules/core-js/internals/ie8-dom-define.js"),F=h("./node_modules/core-js/internals/an-object.js"),N=h("./node_modules/core-js/internals/to-property-key.js"),R=Object.defineProperty;M.f=$?R:function(X,Q,oe){if(F(X),Q=N(Q),F(oe),_)try{return R(X,Q,oe)}catch(ee){}if("get"in oe||"set"in oe)throw TypeError("Accessors not supported");return"value"in oe&&(X[Q]=oe.value),X}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(v,M,h){var $=h("./node_modules/core-js/internals/descriptors.js"),_=h("./node_modules/core-js/internals/object-property-is-enumerable.js"),F=h("./node_modules/core-js/internals/create-property-descriptor.js"),N=h("./node_modules/core-js/internals/to-indexed-object.js"),R=h("./node_modules/core-js/internals/to-property-key.js"),L=h("./node_modules/core-js/internals/has.js"),X=h("./node_modules/core-js/internals/ie8-dom-define.js"),Q=Object.getOwnPropertyDescriptor;M.f=$?Q:function(ee,re){if(ee=N(ee),re=R(re),X)try{return Q(ee,re)}catch(G){}if(L(ee,re))return F(!_.f.call(ee,re),ee[re])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(v,M,h){var $=h("./node_modules/core-js/internals/to-indexed-object.js"),_=h("./node_modules/core-js/internals/object-get-own-property-names.js").f,F={}.toString,N=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],R=function(L){try{return _(L)}catch(X){return N.slice()}};v.exports.f=function(X){return N&&F.call(X)=="[object Window]"?R(X):_($(X))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(v,M,h){var $=h("./node_modules/core-js/internals/object-keys-internal.js"),_=h("./node_modules/core-js/internals/enum-bug-keys.js"),F=_.concat("length","prototype");M.f=Object.getOwnPropertyNames||function(R){return $(R,F)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(v,M){M.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(v,M,h){var $=h("./node_modules/core-js/internals/has.js"),_=h("./node_modules/core-js/internals/to-object.js"),F=h("./node_modules/core-js/internals/shared-key.js"),N=h("./node_modules/core-js/internals/correct-prototype-getter.js"),R=F("IE_PROTO"),L=Object.prototype;v.exports=N?Object.getPrototypeOf:function(X){return X=_(X),$(X,R)?X[R]:typeof X.constructor=="function"&&X instanceof X.constructor?X.constructor.prototype:X instanceof Object?L:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(v,M,h){var $=h("./node_modules/core-js/internals/has.js"),_=h("./node_modules/core-js/internals/to-indexed-object.js"),F=h("./node_modules/core-js/internals/array-includes.js").indexOf,N=h("./node_modules/core-js/internals/hidden-keys.js");v.exports=function(R,L){var X=_(R),Q=0,oe=[],ee;for(ee in X)!$(N,ee)&&$(X,ee)&&oe.push(ee);for(;L.length>Q;)$(X,ee=L[Q++])&&(~F(oe,ee)||oe.push(ee));return oe}},"./node_modules/core-js/internals/object-keys.js":function(v,M,h){var $=h("./node_modules/core-js/internals/object-keys-internal.js"),_=h("./node_modules/core-js/internals/enum-bug-keys.js");v.exports=Object.keys||function(N){return $(N,_)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(v,M){"use strict";var h={}.propertyIsEnumerable,$=Object.getOwnPropertyDescriptor,_=$&&!h.call({1:2},1);M.f=_?function(N){var R=$(this,N);return!!R&&R.enumerable}:h},"./node_modules/core-js/internals/object-set-prototype-of.js":function(v,M,h){var $=h("./node_modules/core-js/internals/an-object.js"),_=h("./node_modules/core-js/internals/a-possible-prototype.js");v.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var F=!1,N={},R;try{R=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,R.call(N,[]),F=N instanceof Array}catch(L){}return function(X,Q){return $(X),_(Q),F?R.call(X,Q):X.__proto__=Q,X}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/to-string-tag-support.js"),_=h("./node_modules/core-js/internals/classof.js");v.exports=$?{}.toString:function(){return"[object "+_(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(v,M,h){var $=h("./node_modules/core-js/internals/is-object.js");v.exports=function(_,F){var N,R;if(F==="string"&&typeof(N=_.toString)=="function"&&!$(R=N.call(_))||typeof(N=_.valueOf)=="function"&&!$(R=N.call(_))||F!=="string"&&typeof(N=_.toString)=="function"&&!$(R=N.call(_)))return R;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(v,M,h){var $=h("./node_modules/core-js/internals/get-built-in.js"),_=h("./node_modules/core-js/internals/object-get-own-property-names.js"),F=h("./node_modules/core-js/internals/object-get-own-property-symbols.js"),N=h("./node_modules/core-js/internals/an-object.js");v.exports=$("Reflect","ownKeys")||function(L){var X=_.f(N(L)),Q=F.f;return Q?X.concat(Q(L)):X}},"./node_modules/core-js/internals/path.js":function(v,M,h){var $=h("./node_modules/core-js/internals/global.js");v.exports=$},"./node_modules/core-js/internals/redefine.js":function(v,M,h){var $=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),F=h("./node_modules/core-js/internals/has.js"),N=h("./node_modules/core-js/internals/set-global.js"),R=h("./node_modules/core-js/internals/inspect-source.js"),L=h("./node_modules/core-js/internals/internal-state.js"),X=L.get,Q=L.enforce,oe=String(String).split("String");(v.exports=function(ee,re,G,K){var le=K?!!K.unsafe:!1,be=K?!!K.enumerable:!1,Ne=K?!!K.noTargetGet:!1,ye;if(typeof G=="function"&&(typeof re=="string"&&!F(G,"name")&&_(G,"name",re),ye=Q(G),ye.source||(ye.source=oe.join(typeof re=="string"?re:""))),ee===$){be?ee[re]=G:N(re,G);return}else le?!Ne&&ee[re]&&(be=!0):delete ee[re];be?ee[re]=G:_(ee,re,G)})(Function.prototype,"toString",function(){return typeof this=="function"&&X(this).source||R(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/an-object.js");v.exports=function(){var _=$(this),F="";return _.global&&(F+="g"),_.ignoreCase&&(F+="i"),_.multiline&&(F+="m"),_.dotAll&&(F+="s"),_.unicode&&(F+="u"),_.sticky&&(F+="y"),F}},"./node_modules/core-js/internals/require-object-coercible.js":function(v){v.exports=function(M){if(M==null)throw TypeError("Can't call method on "+M);return M}},"./node_modules/core-js/internals/set-global.js":function(v,M,h){var $=h("./node_modules/core-js/internals/global.js");v.exports=function(_,F){try{Object.defineProperty($,_,{value:F,configurable:!0,writable:!0})}catch(N){$[_]=F}return F}},"./node_modules/core-js/internals/set-to-string-tag.js":function(v,M,h){var $=h("./node_modules/core-js/internals/object-define-property.js").f,_=h("./node_modules/core-js/internals/has.js"),F=h("./node_modules/core-js/internals/well-known-symbol.js"),N=F("toStringTag");v.exports=function(R,L,X){R&&!_(R=X?R:R.prototype,N)&&$(R,N,{configurable:!0,value:L})}},"./node_modules/core-js/internals/shared-key.js":function(v,M,h){var $=h("./node_modules/core-js/internals/shared.js"),_=h("./node_modules/core-js/internals/uid.js"),F=$("keys");v.exports=function(N){return F[N]||(F[N]=_(N))}},"./node_modules/core-js/internals/shared-store.js":function(v,M,h){var $=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/set-global.js"),F="__core-js_shared__",N=$[F]||_(F,{});v.exports=N},"./node_modules/core-js/internals/shared.js":function(v,M,h){var $=h("./node_modules/core-js/internals/is-pure.js"),_=h("./node_modules/core-js/internals/shared-store.js");(v.exports=function(F,N){return _[F]||(_[F]=N!==void 0?N:{})})("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(v,M,h){var $=h("./node_modules/core-js/internals/fails.js");v.exports=function(_){return $(function(){var F=""[_]('"');return F!==F.toLowerCase()||F.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(v,M,h){var $=h("./node_modules/core-js/internals/to-integer.js"),_=h("./node_modules/core-js/internals/to-string.js"),F=h("./node_modules/core-js/internals/require-object-coercible.js"),N=function(R){return function(L,X){var Q=_(F(L)),oe=$(X),ee=Q.length,re,G;return oe<0||oe>=ee?R?"":void 0:(re=Q.charCodeAt(oe),re<55296||re>56319||oe+1===ee||(G=Q.charCodeAt(oe+1))<56320||G>57343?R?Q.charAt(oe):re:R?Q.slice(oe,oe+2):(re-55296<<10)+(G-56320)+65536)}};v.exports={codeAt:N(!1),charAt:N(!0)}},"./node_modules/core-js/internals/string-trim.js":function(v,M,h){var $=h("./node_modules/core-js/internals/require-object-coercible.js"),_=h("./node_modules/core-js/internals/to-string.js"),F=h("./node_modules/core-js/internals/whitespaces.js"),N="["+F+"]",R=RegExp("^"+N+N+"*"),L=RegExp(N+N+"*$"),X=function(Q){return function(oe){var ee=_($(oe));return Q&1&&(ee=ee.replace(R,"")),Q&2&&(ee=ee.replace(L,"")),ee}};v.exports={start:X(1),end:X(2),trim:X(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(v,M,h){var $=h("./node_modules/core-js/internals/to-integer.js"),_=Math.max,F=Math.min;v.exports=function(N,R){var L=$(N);return L<0?_(L+R,0):F(L,R)}},"./node_modules/core-js/internals/to-indexed-object.js":function(v,M,h){var $=h("./node_modules/core-js/internals/indexed-object.js"),_=h("./node_modules/core-js/internals/require-object-coercible.js");v.exports=function(F){return $(_(F))}},"./node_modules/core-js/internals/to-integer.js":function(v){var M=Math.ceil,h=Math.floor;v.exports=function($){return isNaN($=+$)?0:($>0?h:M)($)}},"./node_modules/core-js/internals/to-length.js":function(v,M,h){var $=h("./node_modules/core-js/internals/to-integer.js"),_=Math.min;v.exports=function(F){return F>0?_($(F),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(v,M,h){var $=h("./node_modules/core-js/internals/require-object-coercible.js");v.exports=function(_){return Object($(_))}},"./node_modules/core-js/internals/to-primitive.js":function(v,M,h){var $=h("./node_modules/core-js/internals/is-object.js"),_=h("./node_modules/core-js/internals/is-symbol.js"),F=h("./node_modules/core-js/internals/ordinary-to-primitive.js"),N=h("./node_modules/core-js/internals/well-known-symbol.js"),R=N("toPrimitive");v.exports=function(L,X){if(!$(L)||_(L))return L;var Q=L[R],oe;if(Q!==void 0){if(X===void 0&&(X="default"),oe=Q.call(L,X),!$(oe)||_(oe))return oe;throw TypeError("Can't convert object to primitive value")}return X===void 0&&(X="number"),F(L,X)}},"./node_modules/core-js/internals/to-property-key.js":function(v,M,h){var $=h("./node_modules/core-js/internals/to-primitive.js"),_=h("./node_modules/core-js/internals/is-symbol.js");v.exports=function(F){var N=$(F,"string");return _(N)?N:String(N)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(v,M,h){var $=h("./node_modules/core-js/internals/well-known-symbol.js"),_=$("toStringTag"),F={};F[_]="z",v.exports=String(F)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(v,M,h){var $=h("./node_modules/core-js/internals/is-symbol.js");v.exports=function(_){if($(_))throw TypeError("Cannot convert a Symbol value to a string");return String(_)}},"./node_modules/core-js/internals/uid.js":function(v){var M=0,h=Math.random();v.exports=function($){return"Symbol("+String($===void 0?"":$)+")_"+(++M+h).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(v,M,h){var $=h("./node_modules/core-js/internals/native-symbol.js");v.exports=$&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(v,M,h){var $=h("./node_modules/core-js/internals/well-known-symbol.js");M.f=$},"./node_modules/core-js/internals/well-known-symbol.js":function(v,M,h){var $=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/shared.js"),F=h("./node_modules/core-js/internals/has.js"),N=h("./node_modules/core-js/internals/uid.js"),R=h("./node_modules/core-js/internals/native-symbol.js"),L=h("./node_modules/core-js/internals/use-symbol-as-uid.js"),X=_("wks"),Q=$.Symbol,oe=L?Q:Q&&Q.withoutSetter||N;v.exports=function(ee){return(!F(X,ee)||!(R||typeof X[ee]=="string"))&&(R&&F(Q,ee)?X[ee]=Q[ee]:X[ee]=oe("Symbol."+ee)),X[ee]}},"./node_modules/core-js/internals/whitespaces.js":function(v){v.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(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),_=h("./node_modules/core-js/internals/fails.js"),F=h("./node_modules/core-js/internals/is-array.js"),N=h("./node_modules/core-js/internals/is-object.js"),R=h("./node_modules/core-js/internals/to-object.js"),L=h("./node_modules/core-js/internals/to-length.js"),X=h("./node_modules/core-js/internals/create-property.js"),Q=h("./node_modules/core-js/internals/array-species-create.js"),oe=h("./node_modules/core-js/internals/array-method-has-species-support.js"),ee=h("./node_modules/core-js/internals/well-known-symbol.js"),re=h("./node_modules/core-js/internals/engine-v8-version.js"),G=ee("isConcatSpreadable"),K=9007199254740991,le="Maximum allowed index exceeded",be=re>=51||!_(function(){var q=[];return q[G]=!1,q.concat()[0]!==q}),Ne=oe("concat"),ye=function(q){if(!N(q))return!1;var de=q[G];return de!==void 0?!!de:F(q)},Ue=!be||!Ne;$({target:"Array",proto:!0,forced:Ue},{concat:function(de){var D=R(this),qe=Q(D,0),Me=0,xe,Te,ve,De,pe;for(xe=-1,ve=arguments.length;xe<ve;xe++)if(pe=xe===-1?D:arguments[xe],ye(pe)){if(De=L(pe.length),Me+De>K)throw TypeError(le);for(Te=0;Te<De;Te++,Me++)Te in pe&&X(qe,Me,pe[Te])}else{if(Me>=K)throw TypeError(le);X(qe,Me++,pe)}return qe.length=Me,qe}})},"./node_modules/core-js/modules/es.array.iterator.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/to-indexed-object.js"),_=h("./node_modules/core-js/internals/add-to-unscopables.js"),F=h("./node_modules/core-js/internals/iterators.js"),N=h("./node_modules/core-js/internals/internal-state.js"),R=h("./node_modules/core-js/internals/define-iterator.js"),L="Array Iterator",X=N.set,Q=N.getterFor(L);v.exports=R(Array,"Array",function(oe,ee){X(this,{type:L,target:$(oe),index:0,kind:ee})},function(){var oe=Q(this),ee=oe.target,re=oe.kind,G=oe.index++;return!ee||G>=ee.length?(oe.target=void 0,{value:void 0,done:!0}):re=="keys"?{value:G,done:!1}:re=="values"?{value:ee[G],done:!1}:{value:[G,ee[G]],done:!1}},"values"),F.Arguments=F.Array,_("keys"),_("values"),_("entries")},"./node_modules/core-js/modules/es.array.join.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),_=h("./node_modules/core-js/internals/indexed-object.js"),F=h("./node_modules/core-js/internals/to-indexed-object.js"),N=h("./node_modules/core-js/internals/array-method-is-strict.js"),R=[].join,L=_!=Object,X=N("join",",");$({target:"Array",proto:!0,forced:L||!X},{join:function(oe){return R.call(F(this),oe===void 0?",":oe)}})},"./node_modules/core-js/modules/es.array.map.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),_=h("./node_modules/core-js/internals/array-iteration.js").map,F=h("./node_modules/core-js/internals/array-method-has-species-support.js"),N=F("map");$({target:"Array",proto:!0,forced:!N},{map:function(L){return _(this,L,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),_=h("./node_modules/core-js/internals/is-object.js"),F=h("./node_modules/core-js/internals/is-array.js"),N=h("./node_modules/core-js/internals/to-absolute-index.js"),R=h("./node_modules/core-js/internals/to-length.js"),L=h("./node_modules/core-js/internals/to-indexed-object.js"),X=h("./node_modules/core-js/internals/create-property.js"),Q=h("./node_modules/core-js/internals/well-known-symbol.js"),oe=h("./node_modules/core-js/internals/array-method-has-species-support.js"),ee=oe("slice"),re=Q("species"),G=[].slice,K=Math.max;$({target:"Array",proto:!0,forced:!ee},{slice:function(be,Ne){var ye=L(this),Ue=R(ye.length),q=N(be,Ue),de=N(Ne===void 0?Ue:Ne,Ue),D,qe,Me;if(F(ye)&&(D=ye.constructor,typeof D=="function"&&(D===Array||F(D.prototype))?D=void 0:_(D)&&(D=D[re],D===null&&(D=void 0)),D===Array||D===void 0))return G.call(ye,q,de);for(qe=new(D===void 0?Array:D)(K(de-q,0)),Me=0;q<de;q++,Me++)q in ye&&X(qe,Me,ye[q]);return qe.length=Me,qe}})},"./node_modules/core-js/modules/es.function.name.js":function(v,M,h){var $=h("./node_modules/core-js/internals/descriptors.js"),_=h("./node_modules/core-js/internals/object-define-property.js").f,F=Function.prototype,N=F.toString,R=/^\s*function ([^ (]*)/,L="name";$&&!(L in F)&&_(F,L,{configurable:!0,get:function(){try{return N.call(this).match(R)[1]}catch(X){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/descriptors.js"),_=h("./node_modules/core-js/internals/global.js"),F=h("./node_modules/core-js/internals/is-forced.js"),N=h("./node_modules/core-js/internals/redefine.js"),R=h("./node_modules/core-js/internals/has.js"),L=h("./node_modules/core-js/internals/classof-raw.js"),X=h("./node_modules/core-js/internals/inherit-if-required.js"),Q=h("./node_modules/core-js/internals/is-symbol.js"),oe=h("./node_modules/core-js/internals/to-primitive.js"),ee=h("./node_modules/core-js/internals/fails.js"),re=h("./node_modules/core-js/internals/object-create.js"),G=h("./node_modules/core-js/internals/object-get-own-property-names.js").f,K=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,le=h("./node_modules/core-js/internals/object-define-property.js").f,be=h("./node_modules/core-js/internals/string-trim.js").trim,Ne="Number",ye=_[Ne],Ue=ye.prototype,q=L(re(Ue))==Ne,de=function(Te){if(Q(Te))throw TypeError("Cannot convert a Symbol value to a number");var ve=oe(Te,"number"),De,pe,Se,Xe,et,je,Ye,_t;if(typeof ve=="string"&&ve.length>2){if(ve=be(ve),De=ve.charCodeAt(0),De===43||De===45){if(pe=ve.charCodeAt(2),pe===88||pe===120)return NaN}else if(De===48){switch(ve.charCodeAt(1)){case 66:case 98:Se=2,Xe=49;break;case 79:case 111:Se=8,Xe=55;break;default:return+ve}for(et=ve.slice(2),je=et.length,Ye=0;Ye<je;Ye++)if(_t=et.charCodeAt(Ye),_t<48||_t>Xe)return NaN;return parseInt(et,Se)}}return+ve};if(F(Ne,!ye(" 0o1")||!ye("0b1")||ye("+0x1"))){for(var D=function(ve){var De=arguments.length<1?0:ve,pe=this;return pe instanceof D&&(q?ee(function(){Ue.valueOf.call(pe)}):L(pe)!=Ne)?X(new ye(de(De)),pe,D):de(De)},qe=$?G(ye):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Me=0,xe;qe.length>Me;Me++)R(ye,xe=qe[Me])&&!R(D,xe)&&le(D,xe,K(ye,xe));D.prototype=Ue,Ue.constructor=D,N(_,Ne,D)}},"./node_modules/core-js/modules/es.object.assign.js":function(v,M,h){var $=h("./node_modules/core-js/internals/export.js"),_=h("./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(v,M,h){var $=h("./node_modules/core-js/internals/export.js"),_=h("./node_modules/core-js/internals/to-object.js"),F=h("./node_modules/core-js/internals/object-keys.js"),N=h("./node_modules/core-js/internals/fails.js"),R=N(function(){F(1)});$({target:"Object",stat:!0,forced:R},{keys:function(X){return F(_(X))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(v,M,h){var $=h("./node_modules/core-js/internals/to-string-tag-support.js"),_=h("./node_modules/core-js/internals/redefine.js"),F=h("./node_modules/core-js/internals/object-to-string.js");$||_(Object.prototype,"toString",F,{unsafe:!0})},"./node_modules/core-js/modules/es.regexp.to-string.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/redefine.js"),_=h("./node_modules/core-js/internals/an-object.js"),F=h("./node_modules/core-js/internals/to-string.js"),N=h("./node_modules/core-js/internals/fails.js"),R=h("./node_modules/core-js/internals/regexp-flags.js"),L="toString",X=RegExp.prototype,Q=X[L],oe=N(function(){return Q.call({source:"a",flags:"b"})!="/a/b"}),ee=Q.name!=L;(oe||ee)&&$(RegExp.prototype,L,function(){var G=_(this),K=F(G.source),le=G.flags,be=F(le===void 0&&G instanceof RegExp&&!("flags"in X)?R.call(G):le);return"/"+K+"/"+be},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/string-multibyte.js").charAt,_=h("./node_modules/core-js/internals/to-string.js"),F=h("./node_modules/core-js/internals/internal-state.js"),N=h("./node_modules/core-js/internals/define-iterator.js"),R="String Iterator",L=F.set,X=F.getterFor(R);N(String,"String",function(Q){L(this,{type:R,string:_(Q),index:0})},function(){var oe=X(this),ee=oe.string,re=oe.index,G;return re>=ee.length?{value:void 0,done:!0}:(G=$(ee,re),oe.index+=G.length,{value:G,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),_=h("./node_modules/core-js/internals/create-html.js"),F=h("./node_modules/core-js/internals/string-html-forced.js");$({target:"String",proto:!0,forced:F("link")},{link:function(R){return _(this,"a","href",R)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),_=h("./node_modules/core-js/internals/descriptors.js"),F=h("./node_modules/core-js/internals/global.js"),N=h("./node_modules/core-js/internals/has.js"),R=h("./node_modules/core-js/internals/is-object.js"),L=h("./node_modules/core-js/internals/object-define-property.js").f,X=h("./node_modules/core-js/internals/copy-constructor-properties.js"),Q=F.Symbol;if(_&&typeof Q=="function"&&(!("description"in Q.prototype)||Q().description!==void 0)){var oe={},ee=function(){var Ne=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),ye=this instanceof ee?new Q(Ne):Ne===void 0?Q():Q(Ne);return Ne===""&&(oe[ye]=!0),ye};X(ee,Q);var re=ee.prototype=Q.prototype;re.constructor=ee;var G=re.toString,K=String(Q("test"))=="Symbol(test)",le=/^Symbol\((.*)\)[^)]+$/;L(re,"description",{configurable:!0,get:function(){var Ne=R(this)?this.valueOf():this,ye=G.call(Ne);if(N(oe,Ne))return"";var Ue=K?ye.slice(7,-1):ye.replace(le,"$1");return Ue===""?void 0:Ue}}),$({global:!0,forced:!0},{Symbol:ee})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(v,M,h){var $=h("./node_modules/core-js/internals/define-well-known-symbol.js");$("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(v,M,h){"use strict";var $=h("./node_modules/core-js/internals/export.js"),_=h("./node_modules/core-js/internals/global.js"),F=h("./node_modules/core-js/internals/get-built-in.js"),N=h("./node_modules/core-js/internals/is-pure.js"),R=h("./node_modules/core-js/internals/descriptors.js"),L=h("./node_modules/core-js/internals/native-symbol.js"),X=h("./node_modules/core-js/internals/fails.js"),Q=h("./node_modules/core-js/internals/has.js"),oe=h("./node_modules/core-js/internals/is-array.js"),ee=h("./node_modules/core-js/internals/is-object.js"),re=h("./node_modules/core-js/internals/is-symbol.js"),G=h("./node_modules/core-js/internals/an-object.js"),K=h("./node_modules/core-js/internals/to-object.js"),le=h("./node_modules/core-js/internals/to-indexed-object.js"),be=h("./node_modules/core-js/internals/to-property-key.js"),Ne=h("./node_modules/core-js/internals/to-string.js"),ye=h("./node_modules/core-js/internals/create-property-descriptor.js"),Ue=h("./node_modules/core-js/internals/object-create.js"),q=h("./node_modules/core-js/internals/object-keys.js"),de=h("./node_modules/core-js/internals/object-get-own-property-names.js"),D=h("./node_modules/core-js/internals/object-get-own-property-names-external.js"),qe=h("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Me=h("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),xe=h("./node_modules/core-js/internals/object-define-property.js"),Te=h("./node_modules/core-js/internals/object-property-is-enumerable.js"),ve=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),De=h("./node_modules/core-js/internals/redefine.js"),pe=h("./node_modules/core-js/internals/shared.js"),Se=h("./node_modules/core-js/internals/shared-key.js"),Xe=h("./node_modules/core-js/internals/hidden-keys.js"),et=h("./node_modules/core-js/internals/uid.js"),je=h("./node_modules/core-js/internals/well-known-symbol.js"),Ye=h("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),_t=h("./node_modules/core-js/internals/define-well-known-symbol.js"),kt=h("./node_modules/core-js/internals/set-to-string-tag.js"),Ot=h("./node_modules/core-js/internals/internal-state.js"),sr=h("./node_modules/core-js/internals/array-iteration.js").forEach,rr=Se("hidden"),br="Symbol",lr="prototype",V=je("toPrimitive"),dt=Ot.set,I=Ot.getterFor(br),m=Object[lr],f=_.Symbol,C=F("JSON","stringify"),Y=Me.f,Be=xe.f,H=D.f,ie=Te.f,Qe=pe("symbols"),we=pe("op-symbols"),ce=pe("string-to-symbol-registry"),ze=pe("symbol-to-string-registry"),vt=pe("wks"),he=_.QObject,at=!he||!he[lr]||!he[lr].findChild,rt=R&&X(function(){return Ue(Be({},"a",{get:function(){return Be(this,"a",{value:7}).a}})).a!=7})?function(kr,yr,dr){var Qr=Y(m,yr);Qr&&delete m[yr],Be(kr,yr,dr),Qr&&kr!==m&&Be(m,yr,Qr)}:Be,ke=function(kr,yr){var dr=Qe[kr]=Ue(f[lr]);return dt(dr,{type:br,tag:kr,description:yr}),R||(dr.description=yr),dr},Fe=function(yr,dr,Qr){yr===m&&Fe(we,dr,Qr),G(yr);var An=be(dr);return G(Qr),Q(Qe,An)?(Qr.enumerable?(Q(yr,rr)&&yr[rr][An]&&(yr[rr][An]=!1),Qr=Ue(Qr,{enumerable:ye(0,!1)})):(Q(yr,rr)||Be(yr,rr,ye(1,{})),yr[rr][An]=!0),rt(yr,An,Qr)):Be(yr,An,Qr)},ct=function(yr,dr){G(yr);var Qr=le(dr),An=q(Qr).concat(Lr(Qr));return sr(An,function(Tn){(!R||Pt.call(Qr,Tn))&&Fe(yr,Tn,Qr[Tn])}),yr},Tt=function(yr,dr){return dr===void 0?Ue(yr):ct(Ue(yr),dr)},Pt=function(yr){var dr=be(yr),Qr=ie.call(this,dr);return this===m&&Q(Qe,dr)&&!Q(we,dr)?!1:Qr||!Q(this,dr)||!Q(Qe,dr)||Q(this,rr)&&this[rr][dr]?Qr:!0},Yt=function(yr,dr){var Qr=le(yr),An=be(dr);if(!(Qr===m&&Q(Qe,An)&&!Q(we,An))){var Tn=Y(Qr,An);return Tn&&Q(Qe,An)&&!(Q(Qr,rr)&&Qr[rr][An])&&(Tn.enumerable=!0),Tn}},Fr=function(yr){var dr=H(le(yr)),Qr=[];return sr(dr,function(An){!Q(Qe,An)&&!Q(Xe,An)&&Qr.push(An)}),Qr},Lr=function(yr){var dr=yr===m,Qr=H(dr?we:le(yr)),An=[];return sr(Qr,function(Tn){Q(Qe,Tn)&&(!dr||Q(m,Tn))&&An.push(Qe[Tn])}),An};if(L||(f=function(){if(this instanceof f)throw TypeError("Symbol is not a constructor");var yr=!arguments.length||arguments[0]===void 0?void 0:Ne(arguments[0]),dr=et(yr),Qr=function(An){this===m&&Qr.call(we,An),Q(this,rr)&&Q(this[rr],dr)&&(this[rr][dr]=!1),rt(this,dr,ye(1,An))};return R&&at&&rt(m,dr,{configurable:!0,set:Qr}),ke(dr,yr)},De(f[lr],"toString",function(){return I(this).tag}),De(f,"withoutSetter",function(kr){return ke(et(kr),kr)}),Te.f=Pt,xe.f=Fe,Me.f=Yt,de.f=D.f=Fr,qe.f=Lr,Ye.f=function(kr){return ke(je(kr),kr)},R&&(Be(f[lr],"description",{configurable:!0,get:function(){return I(this).description}}),N||De(m,"propertyIsEnumerable",Pt,{unsafe:!0}))),$({global:!0,wrap:!0,forced:!L,sham:!L},{Symbol:f}),sr(q(vt),function(kr){_t(kr)}),$({target:br,stat:!0,forced:!L},{for:function(kr){var yr=Ne(kr);if(Q(ce,yr))return ce[yr];var dr=f(yr);return ce[yr]=dr,ze[dr]=yr,dr},keyFor:function(yr){if(!re(yr))throw TypeError(yr+" is not a symbol");if(Q(ze,yr))return ze[yr]},useSetter:function(){at=!0},useSimple:function(){at=!1}}),$({target:"Object",stat:!0,forced:!L,sham:!R},{create:Tt,defineProperty:Fe,defineProperties:ct,getOwnPropertyDescriptor:Yt}),$({target:"Object",stat:!0,forced:!L},{getOwnPropertyNames:Fr,getOwnPropertySymbols:Lr}),$({target:"Object",stat:!0,forced:X(function(){qe.f(1)})},{getOwnPropertySymbols:function(yr){return qe.f(K(yr))}}),C){var Nr=!L||X(function(){var kr=f();return C([kr])!="[null]"||C({a:kr})!="{}"||C(Object(kr))!="{}"});$({target:"JSON",stat:!0,forced:Nr},{stringify:function(yr,dr,Qr){for(var An=[yr],Tn=1,dn;arguments.length>Tn;)An.push(arguments[Tn++]);if(dn=dr,!(!ee(dr)&&yr===void 0||re(yr)))return oe(dr)||(dr=function(kn,Qi){if(typeof dn=="function"&&(Qi=dn.call(this,kn,Qi)),!re(Qi))return Qi}),An[1]=dr,C.apply(null,An)}})}f[lr][V]||ve(f[lr],V,f[lr].valueOf),kt(f,br),Xe[rr]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(v,M,h){var $=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/dom-iterables.js"),F=h("./node_modules/core-js/internals/array-for-each.js"),N=h("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var R in _){var L=$[R],X=L&&L.prototype;if(X&&X.forEach!==F)try{N(X,"forEach",F)}catch(Q){X.forEach=F}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(v,M,h){var $=h("./node_modules/core-js/internals/global.js"),_=h("./node_modules/core-js/internals/dom-iterables.js"),F=h("./node_modules/core-js/modules/es.array.iterator.js"),N=h("./node_modules/core-js/internals/create-non-enumerable-property.js"),R=h("./node_modules/core-js/internals/well-known-symbol.js"),L=R("iterator"),X=R("toStringTag"),Q=F.values;for(var oe in _){var ee=$[oe],re=ee&&ee.prototype;if(re){if(re[L]!==Q)try{N(re,L,Q)}catch(K){re[L]=Q}if(re[X]||N(re,X,oe),_[oe]){for(var G in F)if(re[G]!==F[G])try{N(re,G,F[G])}catch(K){re[G]=F[G]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(v){(function(M,h){v.exports=h()})(this,function(){"use strict";function M(he){var at=typeof he;return he!==null&&(at==="object"||at==="function")}function h(he){return typeof he=="function"}var $=void 0;Array.isArray?$=Array.isArray:$=function(he){return Object.prototype.toString.call(he)==="[object Array]"};var _=$,F=0,N=void 0,R=void 0,L=function(at,rt){q[F]=at,q[F+1]=rt,F+=2,F===2&&(R?R(de):qe())};function X(he){R=he}function Q(he){L=he}var oe=typeof window!="undefined"?window:void 0,ee=oe||{},re=ee.MutationObserver||ee.WebKitMutationObserver,G=typeof self=="undefined"&&typeof me!="undefined"&&{}.toString.call(me)==="[object process]",K=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function le(){return function(){return me.nextTick(de)}}function be(){return typeof N!="undefined"?function(){N(de)}:Ue()}function Ne(){var he=0,at=new re(de),rt=document.createTextNode("");return at.observe(rt,{characterData:!0}),function(){rt.data=he=++he%2}}function ye(){var he=new MessageChannel;return he.port1.onmessage=de,function(){return he.port2.postMessage(0)}}function Ue(){var he=setTimeout;return function(){return he(de,1)}}var q=new Array(1e3);function de(){for(var he=0;he<F;he+=2){var at=q[he],rt=q[he+1];at(rt),q[he]=void 0,q[he+1]=void 0}F=0}function D(){try{var he=Function("return this")().require("vertx");return N=he.runOnLoop||he.runOnContext,be()}catch(at){return Ue()}}var qe=void 0;G?qe=le():re?qe=Ne():K?qe=ye():oe===void 0?qe=D():qe=Ue();function Me(he,at){var rt=this,ke=new this.constructor(ve);ke[Te]===void 0&&C(ke);var Fe=rt._state;if(Fe){var ct=arguments[Fe-1];L(function(){return dt(Fe,ke,ct,rt._result)})}else lr(rt,ke,he,at);return ke}function xe(he){var at=this;if(he&&typeof he=="object"&&he.constructor===at)return he;var rt=new at(ve);return Ot(rt,he),rt}var Te=Math.random().toString(36).substring(2);function ve(){}var De=void 0,pe=1,Se=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 je(he,at,rt,ke){try{he.call(at,rt,ke)}catch(Fe){return Fe}}function Ye(he,at,rt){L(function(ke){var Fe=!1,ct=je(rt,at,function(Tt){Fe||(Fe=!0,at!==Tt?Ot(ke,Tt):rr(ke,Tt))},function(Tt){Fe||(Fe=!0,br(ke,Tt))},"Settle: "+(ke._label||" unknown promise"));!Fe&&ct&&(Fe=!0,br(ke,ct))},he)}function _t(he,at){at._state===pe?rr(he,at._result):at._state===Se?br(he,at._result):lr(at,void 0,function(rt){return Ot(he,rt)},function(rt){return br(he,rt)})}function kt(he,at,rt){at.constructor===he.constructor&&rt===Me&&at.constructor.resolve===xe?_t(he,at):rt===void 0?rr(he,at):h(rt)?Ye(he,at,rt):rr(he,at)}function Ot(he,at){if(he===at)br(he,Xe());else if(M(at)){var rt=void 0;try{rt=at.then}catch(ke){br(he,ke);return}kt(he,at,rt)}else rr(he,at)}function sr(he){he._onerror&&he._onerror(he._result),V(he)}function rr(he,at){he._state===De&&(he._result=at,he._state=pe,he._subscribers.length!==0&&L(V,he))}function br(he,at){he._state===De&&(he._state=Se,he._result=at,L(sr,he))}function lr(he,at,rt,ke){var Fe=he._subscribers,ct=Fe.length;he._onerror=null,Fe[ct]=at,Fe[ct+pe]=rt,Fe[ct+Se]=ke,ct===0&&he._state&&L(V,he)}function V(he){var at=he._subscribers,rt=he._state;if(at.length!==0){for(var ke=void 0,Fe=void 0,ct=he._result,Tt=0;Tt<at.length;Tt+=3)ke=at[Tt],Fe=at[Tt+rt],ke?dt(rt,ke,Fe,ct):Fe(ct);he._subscribers.length=0}}function dt(he,at,rt,ke){var Fe=h(rt),ct=void 0,Tt=void 0,Pt=!0;if(Fe){try{ct=rt(ke)}catch(Yt){Pt=!1,Tt=Yt}if(at===ct){br(at,et());return}}else ct=ke;at._state!==De||(Fe&&Pt?Ot(at,ct):Pt===!1?br(at,Tt):he===pe?rr(at,ct):he===Se&&br(at,ct))}function I(he,at){try{at(function(ke){Ot(he,ke)},function(ke){br(he,ke)})}catch(rt){br(he,rt)}}var m=0;function f(){return m++}function C(he){he[Te]=m++,he._state=void 0,he._result=void 0,he._subscribers=[]}function Y(){return new Error("Array Methods must be provided an Array")}var Be=function(){function he(at,rt){this._instanceConstructor=at,this.promise=new at(ve),this.promise[Te]||C(this.promise),_(rt)?(this.length=rt.length,this._remaining=rt.length,this._result=new Array(this.length),this.length===0?rr(this.promise,this._result):(this.length=this.length||0,this._enumerate(rt),this._remaining===0&&rr(this.promise,this._result))):br(this.promise,Y())}return he.prototype._enumerate=function(rt){for(var ke=0;this._state===De&&ke<rt.length;ke++)this._eachEntry(rt[ke],ke)},he.prototype._eachEntry=function(rt,ke){var Fe=this._instanceConstructor,ct=Fe.resolve;if(ct===xe){var Tt=void 0,Pt=void 0,Yt=!1;try{Tt=rt.then}catch(Lr){Yt=!0,Pt=Lr}if(Tt===Me&&rt._state!==De)this._settledAt(rt._state,ke,rt._result);else if(typeof Tt!="function")this._remaining--,this._result[ke]=rt;else if(Fe===ze){var Fr=new Fe(ve);Yt?br(Fr,Pt):kt(Fr,rt,Tt),this._willSettleAt(Fr,ke)}else this._willSettleAt(new Fe(function(Lr){return Lr(rt)}),ke)}else this._willSettleAt(ct(rt),ke)},he.prototype._settledAt=function(rt,ke,Fe){var ct=this.promise;ct._state===De&&(this._remaining--,rt===Se?br(ct,Fe):this._result[ke]=Fe),this._remaining===0&&rr(ct,this._result)},he.prototype._willSettleAt=function(rt,ke){var Fe=this;lr(rt,void 0,function(ct){return Fe._settledAt(pe,ke,ct)},function(ct){return Fe._settledAt(Se,ke,ct)})},he}();function H(he){return new Be(this,he).promise}function ie(he){var at=this;return _(he)?new at(function(rt,ke){for(var Fe=he.length,ct=0;ct<Fe;ct++)at.resolve(he[ct]).then(rt,ke)}):new at(function(rt,ke){return ke(new TypeError("You must pass an array to race."))})}function Qe(he){var at=this,rt=new at(ve);return br(rt,he),rt}function we(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ce(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var ze=function(){function he(at){this[Te]=f(),this._result=this._state=void 0,this._subscribers=[],ve!==at&&(typeof at!="function"&&we(),this instanceof he?I(this,at):ce())}return he.prototype.catch=function(rt){return this.then(null,rt)},he.prototype.finally=function(rt){var ke=this,Fe=ke.constructor;return h(rt)?ke.then(function(ct){return Fe.resolve(rt()).then(function(){return ct})},function(ct){return Fe.resolve(rt()).then(function(){throw ct})}):ke.then(rt,rt)},he}();ze.prototype.then=Me,ze.all=H,ze.race=ie,ze.resolve=xe,ze.reject=Qe,ze._setScheduler=X,ze._setAsap=Q,ze._asap=L;function vt(){var he=void 0;if(typeof x.g!="undefined")he=x.g;else if(typeof self!="undefined")he=self;else try{he=Function("return this")()}catch(ke){throw new Error("polyfill failed because global object is unavailable in this environment")}var at=he.Promise;if(at){var rt=null;try{rt=Object.prototype.toString.call(at.resolve())}catch(ke){}if(rt==="[object Promise]"&&!at.cast)return}he.Promise=ze}return ze.polyfill=vt,ze.Promise=ze,ze})},html2canvas:function(v){"use strict";v.exports=P},jspdf:function(v){"use strict";v.exports=Ae}},ne={};function W(v){var M=ne[v];if(M!==void 0)return M.exports;var h=ne[v]={exports:{}};return Oe[v].call(h.exports,h,h.exports,W),h.exports}(function(){W.n=function(v){var M=v&&v.__esModule?function(){return v.default}:function(){return v};return W.d(M,{a:M}),M}})(),function(){W.d=function(v,M){for(var h in M)W.o(M,h)&&!W.o(v,h)&&Object.defineProperty(v,h,{enumerable:!0,get:M[h]})}}(),function(){W.o=function(v,M){return Object.prototype.hasOwnProperty.call(v,M)}}(),function(){W.r=function(v){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(v,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(v,"__esModule",{value:!0})}}();var S={};return function(){"use strict";W.r(S);var v=W("./src/worker.js"),M=W("./src/plugin/jspdf-plugin.js"),h=W("./src/plugin/pagebreaks.js"),$=W("./src/plugin/hyperlinks.js"),_=function F(N,R){var L=new F.Worker(R);return N?L.from(N).save():L};_.Worker=v.default,S.default=_}(),S=S.default,S}()})},67467:function(un,Ut){Ut.read=function(x,me,Ae,P,Oe){var ne,W,S=Oe*8-P-1,v=(1<<S)-1,M=v>>1,h=-7,$=Ae?Oe-1:0,_=Ae?-1:1,F=x[me+$];for($+=_,ne=F&(1<<-h)-1,F>>=-h,h+=S;h>0;ne=ne*256+x[me+$],$+=_,h-=8);for(W=ne&(1<<-h)-1,ne>>=-h,h+=P;h>0;W=W*256+x[me+$],$+=_,h-=8);if(ne===0)ne=1-M;else{if(ne===v)return W?NaN:(F?-1:1)*(1/0);W=W+Math.pow(2,P),ne=ne-M}return(F?-1:1)*W*Math.pow(2,ne-P)},Ut.write=function(x,me,Ae,P,Oe,ne){var W,S,v,M=ne*8-Oe-1,h=(1<<M)-1,$=h>>1,_=Oe===23?Math.pow(2,-24)-Math.pow(2,-77):0,F=P?0:ne-1,N=P?1:-1,R=me<0||me===0&&1/me<0?1:0;for(me=Math.abs(me),isNaN(me)||me===1/0?(S=isNaN(me)?1:0,W=h):(W=Math.floor(Math.log(me)/Math.LN2),me*(v=Math.pow(2,-W))<1&&(W--,v*=2),W+$>=1?me+=_/v:me+=_*Math.pow(2,1-$),me*v>=2&&(W++,v/=2),W+$>=h?(S=0,W=h):W+$>=1?(S=(me*v-1)*Math.pow(2,Oe),W=W+$):(S=me*Math.pow(2,$-1)*Math.pow(2,Oe),W=0));Oe>=8;x[Ae+F]=S&255,F+=N,S/=256,Oe-=8);for(W=W<<Oe|S,M+=Oe;M>0;x[Ae+F]=W&255,F+=N,W/=256,M-=8);x[Ae+F-N]|=R*128}},24334:function(un,Ut,x){var me,Ae;(function(P,Oe){un.exports=Oe(P)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:this,function(P){"use strict";P=P||{};var Oe=P.Base64,ne="2.6.4",W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=function(D){for(var qe={},Me=0,xe=D.length;Me<xe;Me++)qe[D.charAt(Me)]=Me;return qe}(W),v=String.fromCharCode,M=function(D){if(D.length<2){var qe=D.charCodeAt(0);return qe<128?D:qe<2048?v(192|qe>>>6)+v(128|qe&63):v(224|qe>>>12&15)+v(128|qe>>>6&63)+v(128|qe&63)}else{var qe=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return v(240|qe>>>18&7)+v(128|qe>>>12&63)+v(128|qe>>>6&63)+v(128|qe&63)}},h=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$=function(D){return D.replace(h,M)},_=function(D){var qe=[0,2,1][D.length%3],Me=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),xe=[W.charAt(Me>>>18),W.charAt(Me>>>12&63),qe>=2?"=":W.charAt(Me>>>6&63),qe>=1?"=":W.charAt(Me&63)];return xe.join("")},F=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,_)},N=function(D){return F($(String(D)))},R=function(D){return D.replace(/[+\/]/g,function(qe){return qe=="+"?"-":"_"}).replace(/=/g,"")},L=function(D,qe){return qe?R(N(D)):N(D)},X=function(D){return L(D,!0)},Q;P.Uint8Array&&(Q=function(D,qe){for(var Me="",xe=0,Te=D.length;xe<Te;xe+=3){var ve=D[xe],De=D[xe+1],pe=D[xe+2],Se=ve<<16|De<<8|pe;Me+=W.charAt(Se>>>18)+W.charAt(Se>>>12&63)+(typeof De!="undefined"?W.charAt(Se>>>6&63):"=")+(typeof pe!="undefined"?W.charAt(Se&63):"=")}return qe?R(Me):Me});var oe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ee=function(D){switch(D.length){case 4:var qe=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),Me=qe-65536;return v((Me>>>10)+55296)+v((Me&1023)+56320);case 3:return v((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return v((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},re=function(D){return D.replace(oe,ee)},G=function(D){var qe=D.length,Me=qe%4,xe=(qe>0?S[D.charAt(0)]<<18:0)|(qe>1?S[D.charAt(1)]<<12:0)|(qe>2?S[D.charAt(2)]<<6:0)|(qe>3?S[D.charAt(3)]:0),Te=[v(xe>>>16),v(xe>>>8&255),v(xe&255)];return Te.length-=[0,0,2,1][Me],Te.join("")},K=P.atob&&typeof P.atob=="function"?function(D){return P.atob(D)}:function(D){return D.replace(/\S{1,4}/g,G)},le=function(D){return K(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},be=function(D){return re(K(D))},Ne=function(D){return String(D).replace(/[-_]/g,function(qe){return qe=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},ye=function(D){return be(Ne(D))},Ue;P.Uint8Array&&(Ue=function(D){return Uint8Array.from(le(Ne(D)),function(qe){return qe.charCodeAt(0)})});var q=function(){var D=P.Base64;return P.Base64=Oe,D};if(P.Base64={VERSION:ne,atob:le,btoa:F,fromBase64:ye,toBase64:L,utob:$,encode:L,encodeURI:X,btou:re,decode:ye,noConflict:q,fromUint8Array:Q,toUint8Array:Ue},typeof Object.defineProperty=="function"){var de=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};P.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",de(function(){return ye(this)})),Object.defineProperty(String.prototype,"toBase64",de(function(D){return L(this,D)})),Object.defineProperty(String.prototype,"toBase64URI",de(function(){return L(this,!0)}))}}return P.Meteor&&(Base64=P.Base64),un.exports?un.exports.Base64=P.Base64:(me=[],Ae=function(){return P.Base64}.apply(Ut,me),Ae!==void 0&&(un.exports=Ae)),{Base64:P.Base64}})},53307:function(un,Ut,x){"use strict";x.r(Ut),x.d(Ut,{AcroForm:function(){return ou},AcroFormAppearance:function(){return qn},AcroFormButton:function(){return Ta},AcroFormCheckBox:function(){return Lo},AcroFormChoiceField:function(){return hi},AcroFormComboBox:function(){return ea},AcroFormEditBox:function(){return Yi},AcroFormListBox:function(){return Ga},AcroFormPasswordField:function(){return Ua},AcroFormPushButton:function(){return oo},AcroFormRadioButton:function(){return Fa},AcroFormTextField:function(){return qa},GState:function(){return Kh},ShadingPattern:function(){return Hd},TilingPattern:function(){return jd},default:function(){return da},jsPDF:function(){return da}});var me=x(76190),Ae={},P=function(n,o,a,l,u){var g=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 g.onmessage=function(O){var E=O.data,T=E.$e$;if(T){var Z=new Error(T[0]);Z.code=T[1],Z.stack=T[2],u(Z,null)}else u(null,E)},g.postMessage(a,l),g},Oe=Uint8Array,ne=Uint16Array,W=Int32Array,S=new Oe([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]),v=new Oe([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),M=new Oe([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),h=function(n,o){for(var a=new ne(31),l=0;l<31;++l)a[l]=o+=1<<n[l-1];for(var u=new W(a[30]),l=1;l<30;++l)for(var g=a[l];g<a[l+1];++g)u[g]=g-a[l]<<5|l;return{b:a,r:u}},$=h(S,2),_=$.b,F=$.r;_[28]=258,F[258]=28;for(var N=h(v,0),R=N.b,L=N.r,X=new ne(32768),Q=0;Q<32768;++Q){var oe=(Q&43690)>>1|(Q&21845)<<1;oe=(oe&52428)>>2|(oe&13107)<<2,oe=(oe&61680)>>4|(oe&3855)<<4,X[Q]=((oe&65280)>>8|(oe&255)<<8)>>1}for(var ee=function(n,o,a){for(var l=n.length,u=0,g=new ne(o);u<l;++u)n[u]&&++g[n[u]-1];var O=new ne(o);for(u=1;u<o;++u)O[u]=O[u-1]+g[u-1]<<1;var E;if(a){E=new ne(1<<o);var T=15-o;for(u=0;u<l;++u)if(n[u])for(var Z=u<<4|n[u],se=o-n[u],Re=O[n[u]-1]++<<se,Ze=Re|(1<<se)-1;Re<=Ze;++Re)E[X[Re]>>T]=Z}else for(E=new ne(l),u=0;u<l;++u)n[u]&&(E[u]=X[O[n[u]-1]++]>>15-n[u]);return E},re=new Oe(288),Q=0;Q<144;++Q)re[Q]=8;for(var Q=144;Q<256;++Q)re[Q]=9;for(var Q=256;Q<280;++Q)re[Q]=7;for(var Q=280;Q<288;++Q)re[Q]=8;for(var G=new Oe(32),Q=0;Q<32;++Q)G[Q]=5;var K=ee(re,9,0),le=null,be=ee(G,5,0),Ne=null,ye=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},q=function(n,o){var a=o/8|0;return(n[a]|n[a+1]<<8|n[a+2]<<16)>>(o&7)},de=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 Oe(n.subarray(o,a))},qe={UnexpectedEOF:0,InvalidBlockType:1,InvalidLengthLiteral:2,InvalidDistance:3,StreamFinished:4,NoStreamHandler:5,InvalidHeader:6,NoCallback:7,InvalidUTF8:8,ExtraFieldTooLong:9,InvalidDate:10,FilenameTooLong:11,StreamFinishing:12,InvalidZipData:13,UnknownCompressionMethod:14},Me=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],xe=function(n,o,a){var l=new Error(o||Me[n]);if(l.code=n,Error.captureStackTrace&&Error.captureStackTrace(l,xe),!a)throw l;return l},Te=function(n,o,a,l){var u=n.length,g=l?l.length:0;if(!u||o.f&&!o.l)return a||new Oe(0);var O=!a,E=O||o.i!=2,T=o.i;O&&(a=new Oe(u*3));var Z=function(jn){var gi=a.length;if(jn>gi){var Ci=new Oe(Math.max(gi*2,jn));Ci.set(a),a=Ci}},se=o.f||0,Re=o.p||0,Ze=o.b||0,ae=o.l,mt=o.d,At=o.m,wt=o.n,st=u*8;do{if(!ae){se=Ue(n,Re,1);var Gt=Ue(n,Re+1,3);if(Re+=3,Gt)if(Gt==1)ae=le,mt=Ne,At=9,wt=5;else if(Gt==2){var rn=Ue(n,Re,31)+257,Wr=Ue(n,Re+10,15)+4,or=rn+Ue(n,Re+5,31)+1;Re+=14;for(var Lt=new Oe(or),xr=new Oe(19),it=0;it<Wr;++it)xr[M[it]]=Ue(n,Re+it*3,7);Re+=Wr*3;for(var xt=ye(xr),Wt=(1<<xt)-1,jt=ee(xr,xt,1),it=0;it<or;){var Tr=jt[Ue(n,Re,Wt)];Re+=Tr&15;var Qt=Tr>>4;if(Qt<16)Lt[it++]=Qt;else{var Zr=0,Jr=0;for(Qt==16?(Jr=3+Ue(n,Re,3),Re+=2,Zr=Lt[it-1]):Qt==17?(Jr=3+Ue(n,Re,7),Re+=3):Qt==18&&(Jr=11+Ue(n,Re,127),Re+=7);Jr--;)Lt[it++]=Zr}}var Mr=Lt.subarray(0,rn),Gr=Lt.subarray(rn);At=ye(Mr),wt=ye(Gr),ae=ee(Mr,At,1),mt=ee(Gr,wt,1)}else xe(1);else{var Qt=de(Re)+4,Ft=n[Qt-4]|n[Qt-3]<<8,Ir=Qt+Ft;if(Ir>u){T&&xe(0);break}E&&Z(Ze+Ft),a.set(n.subarray(Qt,Ir),Ze),o.b=Ze+=Ft,o.p=Re=Ir*8,o.f=se;continue}if(Re>st){T&&xe(0);break}}E&&Z(Ze+131072);for(var Zn=(1<<At)-1,Sn=(1<<wt)-1,tt=Re;;tt=Re){var Zr=ae[q(n,Re)&Zn],It=Zr>>4;if(Re+=Zr&15,Re>st){T&&xe(0);break}if(Zr||xe(2),It<256)a[Ze++]=It;else if(It==256){tt=Re,ae=null;break}else{var Nt=It-254;if(It>264){var it=It-257,qt=S[it];Nt=Ue(n,Re,(1<<qt)-1)+_[it],Re+=qt}var Ar=mt[q(n,Re)&Sn],Er=Ar>>4;Ar||xe(3),Re+=Ar&15;var Gr=R[Er];if(Er>3){var qt=v[Er];Gr+=q(n,Re)&(1<<qt)-1,Re+=qt}if(Re>st){T&&xe(0);break}E&&Z(Ze+131072);var Kr=Ze+Nt;if(Ze<Gr){var $r=g-Gr,mn=Math.min(Gr,Kr);for($r+Ze<0&&xe(3);Ze<mn;++Ze)a[Ze]=l[$r+Ze]}for(;Ze<Kr;++Ze)a[Ze]=a[Ze-Gr]}}o.l=ae,o.p=tt,o.b=Ze,o.f=se,ae&&(se=1,o.m=At,o.d=mt,o.n=wt)}while(!se);return Ze!=a.length&&O?D(a,0,Ze):a.subarray(0,Ze)},ve=function(n,o,a){a<<=o&7;var l=o/8|0;n[l]|=a,n[l+1]|=a>>8},De=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},pe=function(n,o){for(var a=[],l=0;l<n.length;++l)n[l]&&a.push({s:l,f:n[l]});var u=a.length,g=a.slice();if(!u)return{t:kt,l:0};if(u==1){var O=new Oe(a[0].s+1);return O[a[0].s]=1,{t:O,l:1}}a.sort(function(Ir,rn){return Ir.f-rn.f}),a.push({s:-1,f:25001});var E=a[0],T=a[1],Z=0,se=1,Re=2;for(a[0]={s:-1,f:E.f+T.f,l:E,r:T};se!=u-1;)E=a[a[Z].f<a[Re].f?Z++:Re++],T=a[Z!=se&&a[Z].f<a[Re].f?Z++:Re++],a[se++]={s:-1,f:E.f+T.f,l:E,r:T};for(var Ze=g[0].s,l=1;l<u;++l)g[l].s>Ze&&(Ze=g[l].s);var ae=new ne(Ze+1),mt=Se(a[se-1],ae,0);if(mt>o){var l=0,At=0,wt=mt-o,st=1<<wt;for(g.sort(function(rn,Wr){return ae[Wr.s]-ae[rn.s]||rn.f-Wr.f});l<u;++l){var Gt=g[l].s;if(ae[Gt]>o)At+=st-(1<<mt-ae[Gt]),ae[Gt]=o;else break}for(At>>=wt;At>0;){var Qt=g[l].s;ae[Qt]<o?At-=1<<o-ae[Qt]++-1:++l}for(;l>=0&&At;--l){var Ft=g[l].s;ae[Ft]==o&&(--ae[Ft],++At)}mt=o}return{t:new Oe(ae),l:mt}},Se=function(n,o,a){return n.s==-1?Math.max(Se(n.l,o,a+1),Se(n.r,o,a+1)):o[n.s]=a},Xe=function(n){for(var o=n.length;o&&!n[--o];);for(var a=new ne(++o),l=0,u=n[0],g=1,O=function(T){a[l++]=T},E=1;E<=o;++E)if(n[E]==u&&E!=o)++g;else{if(!u&&g>2){for(;g>138;g-=138)O(32754);g>2&&(O(g>10?g-11<<5|28690:g-3<<5|12305),g=0)}else if(g>3){for(O(u),--g;g>6;g-=6)O(8304);g>2&&(O(g-3<<5|8208),g=0)}for(;g--;)O(u);g=1,u=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},je=function(n,o,a){var l=a.length,u=de(o+2);n[u]=l&255,n[u+1]=l>>8,n[u+2]=n[u]^255,n[u+3]=n[u+1]^255;for(var g=0;g<l;++g)n[u+g+4]=a[g];return(u+4+l)*8},Ye=function(n,o,a,l,u,g,O,E,T,Z,se){ve(o,se++,a),++u[256];for(var Re=pe(u,15),Ze=Re.t,ae=Re.l,mt=pe(g,15),At=mt.t,wt=mt.l,st=Xe(Ze),Gt=st.c,Qt=st.n,Ft=Xe(At),Ir=Ft.c,rn=Ft.n,Wr=new ne(19),or=0;or<Gt.length;++or)++Wr[Gt[or]&31];for(var or=0;or<Ir.length;++or)++Wr[Ir[or]&31];for(var Lt=pe(Wr,7),xr=Lt.t,it=Lt.l,xt=19;xt>4&&!xr[M[xt-1]];--xt);var Wt=Z+5<<3,jt=et(u,re)+et(g,G)+O,Tr=et(u,Ze)+et(g,At)+O+14+3*xt+et(Wr,xr)+2*Wr[16]+3*Wr[17]+7*Wr[18];if(T>=0&&Wt<=jt&&Wt<=Tr)return je(o,se,n.subarray(T,T+Z));var Zr,Jr,Mr,Gr;if(ve(o,se,1+(Tr<jt)),se+=2,Tr<jt){Zr=ee(Ze,ae,0),Jr=Ze,Mr=ee(At,wt,0),Gr=At;var Zn=ee(xr,it,0);ve(o,se,Qt-257),ve(o,se+5,rn-1),ve(o,se+10,xt-4),se+=14;for(var or=0;or<xt;++or)ve(o,se+3*or,xr[M[or]]);se+=3*xt;for(var Sn=[Gt,Ir],tt=0;tt<2;++tt)for(var It=Sn[tt],or=0;or<It.length;++or){var Nt=It[or]&31;ve(o,se,Zn[Nt]),se+=xr[Nt],Nt>15&&(ve(o,se,It[or]>>5&127),se+=It[or]>>12)}}else Zr=K,Jr=re,Mr=be,Gr=G;for(var or=0;or<E;++or){var qt=l[or];if(qt>255){var Nt=qt>>18&31;De(o,se,Zr[Nt+257]),se+=Jr[Nt+257],Nt>7&&(ve(o,se,qt>>23&31),se+=S[Nt]);var Ar=qt&31;De(o,se,Mr[Ar]),se+=Gr[Ar],Ar>3&&(De(o,se,qt>>5&8191),se+=v[Ar])}else De(o,se,Zr[qt]),se+=Jr[qt]}return De(o,se,Zr[256]),se+Jr[256]},_t=new W([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),kt=new Oe(0),Ot=function(n,o,a,l,u,g){var O=g.z||n.length,E=new Oe(l+O+5*(1+Math.ceil(O/7e3))+u),T=E.subarray(l,E.length-u),Z=g.l,se=(g.r||0)&7;if(o){se&&(T[0]=g.r>>3);for(var Re=_t[o-1],Ze=Re>>13,ae=Re&8191,mt=(1<<a)-1,At=g.p||new ne(32768),wt=g.h||new ne(mt+1),st=Math.ceil(a/3),Gt=2*st,Qt=function(Sa){return(n[Sa]^n[Sa+1]<<st^n[Sa+2]<<Gt)&mt},Ft=new W(25e3),Ir=new ne(288),rn=new ne(32),Wr=0,or=0,Lt=g.i||0,xr=0,it=g.w||0,xt=0;Lt+2<O;++Lt){var Wt=Qt(Lt),jt=Lt&32767,Tr=wt[Wt];if(At[jt]=Tr,wt[Wt]=jt,it<=Lt){var Zr=O-Lt;if((Wr>7e3||xr>24576)&&(Zr>423||!Z)){se=Ye(n,T,0,Ft,Ir,rn,or,xr,xt,Lt-xt,se),xr=Wr=or=0,xt=Lt;for(var Jr=0;Jr<286;++Jr)Ir[Jr]=0;for(var Jr=0;Jr<30;++Jr)rn[Jr]=0}var Mr=2,Gr=0,Zn=ae,Sn=jt-Tr&32767;if(Zr>2&&Wt==Qt(Lt-Sn))for(var tt=Math.min(Ze,Zr)-1,It=Math.min(32767,Lt),Nt=Math.min(258,Zr);Sn<=It&&--Zn&&jt!=Tr;){if(n[Lt+Mr]==n[Lt+Mr-Sn]){for(var qt=0;qt<Nt&&n[Lt+qt]==n[Lt+qt-Sn];++qt);if(qt>Mr){if(Mr=qt,Gr=Sn,qt>tt)break;for(var Ar=Math.min(Sn,qt-2),Er=0,Jr=0;Jr<Ar;++Jr){var Kr=Lt-Sn+Jr&32767,$r=At[Kr],mn=Kr-$r&32767;mn>Er&&(Er=mn,Tr=Kr)}}}jt=Tr,Tr=At[jt],Sn+=jt-Tr&32767}if(Gr){Ft[xr++]=268435456|F[Mr]<<18|L[Gr];var jn=F[Mr]&31,gi=L[Gr]&31;or+=S[jn]+v[gi],++Ir[257+jn],++rn[gi],it=Lt+Mr,++Wr}else Ft[xr++]=n[Lt],++Ir[n[Lt]]}}for(Lt=Math.max(Lt,it);Lt<O;++Lt)Ft[xr++]=n[Lt],++Ir[n[Lt]];se=Ye(n,T,Z,Ft,Ir,rn,or,xr,xt,Lt-xt,se),Z||(g.r=se&7|T[se/8|0]<<3,se-=7,g.h=wt,g.p=At,g.i=Lt,g.w=it)}else{for(var Lt=g.w||0;Lt<O+Z;Lt+=65535){var Ci=Lt+65535;Ci>=O&&(T[se/8|0]=Z,Ci=O),se=je(T,se+1,n.subarray(Lt,Ci))}g.i=O}return D(E,0,l+de(se)+u)},sr=null,rr=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}}},br=function(){var n=1,o=0;return{p:function(a){for(var l=n,u=o,g=a.length|0,O=0;O!=g;){for(var E=Math.min(O+2655,g);O<E;++O)u+=l+=a[O];l=(l&65535)+15*(l>>16),u=(u&65535)+15*(u>>16)}n=l,o=u},d:function(){return n%=65521,o%=65521,(n&255)<<24|(n&65280)<<8|(o&255)<<8|o>>8}}},lr=function(n,o,a,l,u){if(!u&&(u={l:1},o.dictionary)){var g=o.dictionary.subarray(-32768),O=new Oe(g.length+n.length);O.set(g),O.set(n,g.length),n=O,u.w=g.length}return Ot(n,o.level==null?6:o.level,o.mem==null?u.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+o.mem,a,l,u)},V=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(),u=n.toString(),g=u.slice(u.indexOf("[")+1,u.lastIndexOf("]")).replace(/\s+/g,"").split(","),O=0;O<l.length;++O){var E=l[O],T=g[O];if(typeof E=="function"){o+=";"+T+"=";var Z=E.toString();if(E.prototype)if(Z.indexOf("[native code]")!=-1){var se=Z.indexOf(" ",8)+1;o+=Z.slice(se,Z.indexOf("(",se))}else{o+=Z;for(var Re in E.prototype)o+=";"+T+".prototype."+Re+"="+E.prototype[Re].toString()}else o+=Z}else a[T]=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},f=function(n,o,a,l){if(!I[a]){for(var u="",g={},O=n.length-1,E=0;E<O;++E)u=dt(n[E],u,g);I[a]={c:dt(n[O],u,g),e:g}}var T=V({},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,T,m(T),l)},C=function(){return[Oe,ne,W,S,v,M,_,R,le,Ne,X,Me,ee,ye,Ue,q,de,D,xe,Te,kn,we,ce]},Y=function(){return[Oe,ne,W,S,v,M,F,L,K,re,be,G,X,_t,kt,ee,ve,De,pe,Se,Xe,et,je,Ye,de,D,Ot,lr,Qr,we]},Be=function(){return[ct,Yt,Fe,rr,sr]},H=function(){return[Tt,Pt]},ie=function(){return[Fr,Fe,br]},Qe=function(){return[Lr]},we=function(n){return postMessage(n,[n.buffer])},ce=function(n){return n&&{out:n.size&&new Oe(n.size),dictionary:n.dictionary}},ze=function(n,o,a,l,u,g){var O=f(a,l,u,function(E,T){O.terminate(),g(E,T)});return O.postMessage([n,o],o.consume?[n.buffer]:[]),function(){O.terminate()}},vt=function(n){return n.ondata=function(o,a){return postMessage([o,a],[o.buffer])},function(o){o.data.length?(n.push(o.data[0],o.data[1]),postMessage([o.data[0].length])):n.flush()}},he=function(n,o,a,l,u,g,O){var E,T=f(n,l,u,function(Z,se){Z?(T.terminate(),o.ondata.call(o,Z)):Array.isArray(se)?se.length==1?(o.queuedSize-=se[0],o.ondrain&&o.ondrain(se[0])):(se[1]&&T.terminate(),o.ondata.call(o,Z,se[0],se[1])):O(se)});T.postMessage(a),o.queuedSize=0,o.push=function(Z,se){o.ondata||xe(5),E&&o.ondata(xe(4,0,1),null,!!se),o.queuedSize+=Z.length,T.postMessage([Z,E=se],[Z.buffer])},o.terminate=function(){T.terminate()},g&&(o.flush=function(){T.postMessage([])})},at=function(n,o){return n[o]|n[o+1]<<8},rt=function(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16|n[o+3]<<24)>>>0},ke=function(n,o){return rt(n,o)+rt(n,o+4)*4294967296},Fe=function(n,o,a){for(;a;++o)n[o]=a,a>>>=8},ct=function(n,o){var a=o.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=o.level<2?4:o.level==9?2:0,n[9]=3,o.mtime!=0&&Fe(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)}},Tt=function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&xe(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)},Pt=function(n){var o=n.length;return(n[o-4]|n[o-3]<<8|n[o-2]<<16|n[o-1]<<24)>>>0},Yt=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 u=br();u.p(o.dictionary),Fe(n,2,u.d())}},Lr=function(n,o){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&xe(6,"invalid zlib data"),(n[1]>>5&1)==+!o&&xe(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2};function Nr(n,o){return typeof n=="function"&&(o=n,n={}),this.ondata=o,n}var kr=null,yr=null;function dr(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),ze(n,o,[Y],function(l){return we(Qr(l.data[0],l.data[1]))},0,a)}function Qr(n,o){return lr(n,o||{},0,0)}var An=null,Tn=null;function dn(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),ze(n,o,[C],function(l){return we(kn(l.data[0],ce(l.data[1])))},1,a)}function kn(n,o){return Te(n,{i:2},o&&o.out,o&&o.dictionary)}var Qi=null,Pr=null;function wn(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),ze(n,o,[Y,Be,function(){return[Si]}],function(l){return we(Si(l.data[0],l.data[1]))},2,a)}function Si(n,o){o||(o={});var a=rr(),l=n.length;a.p(n);var u=lr(n,o,Yt(o),8),g=u.length;return ct(u,o),Fe(u,g-8,a.d()),Fe(u,g-4,l),u}var ui=null,Zi=null;function Ei(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),ze(n,o,[C,H,function(){return[ji]}],function(l){return we(ji(l.data[0],l.data[1]))},3,a)}function ji(n,o){var a=Tt(n);return a+8>n.length&&xe(6,"invalid gzip data"),Te(n.subarray(a,-8),{i:2},o&&o.out||new Oe(Pt(n)),o&&o.dictionary)}var eo=null,Ki=null;function ei(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),ze(n,o,[Y,ie,function(){return[pi]}],function(l){return we(pi(l.data[0],l.data[1]))},4,a)}function pi(n,o){o||(o={});var a=br();a.p(n);var l=lr(n,o,o.dictionary?6:2,4);return Fr(l,o),Fe(l,l.length-4,a.d()),l}var vi=null,$e=null;function _e(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),ze(n,o,[C,Qe,function(){return[Le]}],function(l){return we(Le(l.data[0],ce(l.data[1])))},5,a)}function Le(n,o){return Te(n.subarray(Lr(n,o&&o.dictionary),-4),{i:2},o&&o.out,o&&o.dictionary)}var Ie=null,Dt=null;function Mt(n,o,a){return a||(a=o,o={}),typeof a!="function"&&xe(7),n[0]==31&&n[1]==139&&n[2]==8?Ei(n,o,a):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?dn(n,o,a):_e(n,o,a)}function Sr(n,o){return n[0]==31&&n[1]==139&&n[2]==8?ji(n,o):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?kn(n,o):Le(n,o)}var nr=function(n,o,a,l){for(var u in n){var g=n[u],O=o+u,E=l;Array.isArray(g)&&(E=V(l,g[1]),g=g[0]),g instanceof Oe?a[O]=[g,E]:(a[O+="/"]=[new Oe(0),E],nr(g,O,a,l))}},Dr=typeof TextEncoder!="undefined"&&new TextEncoder,Hr=typeof TextDecoder!="undefined"&&new TextDecoder,an=0;try{Hr.decode(kt,{stream:!0}),an=1}catch(n){}var jr=function(n){for(var o="",a=0;;){var l=n[a++],u=(l>127)+(l>223)+(l>239);if(a+u>n.length)return{s:o,r:D(n,a-1)};u?u==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)):u&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 yn(n,o){if(o){for(var a=new Oe(n.length),l=0;l<n.length;++l)a[l]=n.charCodeAt(l);return a}if(Dr)return Dr.encode(n);for(var u=n.length,g=new Oe(n.length+(n.length>>1)),O=0,E=function(se){g[O++]=se},l=0;l<u;++l){if(O+5>g.length){var T=new Oe(O+8+(u-l<<1));T.set(g),g=T}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(g,0,O)}function on(n,o){if(o){for(var a="",l=0;l<n.length;l+=16384)a+=String.fromCharCode.apply(null,n.subarray(l,l+16384));return a}else{if(Hr)return Hr.decode(n);var u=jr(n),g=u.s,a=u.r;return a.length&&xe(8),g}}var Dn=function(n){return n==1?3:n<6?2:n==9?1:0},Qn=function(n,o){return o+30+at(n,o+26)+at(n,o+28)},Ai=function(n,o,a){var l=at(n,o+28),u=on(n.subarray(o+46,o+46+l),!(at(n,o+8)&2048)),g=o+46+l,O=rt(n,o+20),E=a&&O==4294967295?On(n,g):[O,rt(n,o+24),rt(n,o+42)],T=E[0],Z=E[1],se=E[2];return[at(n,o+10),T,Z,u,g+at(n,o+30)+at(n,o+32),se]},On=function(n,o){for(;at(n,o)!=1;o+=4+at(n,o+2));return[ke(n,o+12),ke(n,o+4),ke(n,o+20)]},Gn=function(n){var o=0;if(n)for(var a in n){var l=n[a].length;l>65535&&xe(9),o+=l+4}return o},Vt=function(n,o,a,l,u,g,O,E){var T=l.length,Z=a.extra,se=E&&E.length,Re=Gn(Z);Fe(n,o,O!=null?33639248:67324752),o+=4,O!=null&&(n[o++]=20,n[o++]=a.os),n[o]=20,o+=2,n[o++]=a.flag<<1|(g<0&&8),n[o++]=u&&8,n[o++]=a.compression&255,n[o++]=a.compression>>8;var Ze=new Date(a.mtime==null?Date.now():a.mtime),ae=Ze.getFullYear()-1980;if((ae<0||ae>119)&&xe(10),Fe(n,o,ae<<25|Ze.getMonth()+1<<21|Ze.getDate()<<16|Ze.getHours()<<11|Ze.getMinutes()<<5|Ze.getSeconds()>>1),o+=4,g!=-1&&(Fe(n,o,a.crc),Fe(n,o+4,g<0?-g-2:g),Fe(n,o+8,a.size)),Fe(n,o+12,T),Fe(n,o+14,Re),o+=16,O!=null&&(Fe(n,o,se),Fe(n,o+6,a.attrs),Fe(n,o+10,O),o+=14),n.set(l,o),o+=T,Re)for(var mt in Z){var At=Z[mt],wt=At.length;Fe(n,o,+mt),Fe(n,o+2,wt),n.set(At,o+4),o+=4+wt}return se&&(n.set(E,o),o+=se),o},Xt=function(n,o,a,l,u){Fe(n,o,101010256),Fe(n,o+8,a),Fe(n,o+10,a),Fe(n,o+12,l),Fe(n,o+16,u)},er=null,fr=null,Rt=null,Jt=null;function ar(n,o,a){a||(a=o,o={}),typeof a!="function"&&xe(7);var l={};nr(n,"",l,o);var u=Object.keys(l),g=u.length,O=0,E=0,T=g,Z=new Array(g),se=[],Re=function(){for(var wt=0;wt<se.length;++wt)se[wt]()},Ze=function(wt,st){_i(function(){a(wt,st)})};_i(function(){Ze=a});var ae=function(){var wt=new Oe(E+22),st=O,Gt=E-O;E=0;for(var Qt=0;Qt<T;++Qt){var Ft=Z[Qt];try{var Ir=Ft.c.length;Vt(wt,E,Ft,Ft.f,Ft.u,Ir);var rn=30+Ft.f.length+Gn(Ft.extra),Wr=E+rn;wt.set(Ft.c,Wr),Vt(wt,O,Ft,Ft.f,Ft.u,Ir,E,Ft.m),O+=16+rn+(Ft.m?Ft.m.length:0),E=Wr+Ir}catch(or){return Ze(or,null)}}Xt(wt,O,Z.length,Gt,st),Ze(null,wt)};g||ae();for(var mt=function(wt){var st=u[wt],Gt=l[st],Qt=Gt[0],Ft=Gt[1],Ir=rr(),rn=Qt.length;Ir.p(Qt);var Wr=yn(st),or=Wr.length,Lt=Ft.comment,xr=Lt&&yn(Lt),it=xr&&xr.length,xt=Gn(Ft.extra),Wt=Ft.level==0?0:8,jt=function(Tr,Zr){if(Tr)Re(),Ze(Tr,null);else{var Jr=Zr.length;Z[wt]=V(Ft,{size:rn,crc:Ir.d(),c:Zr,f:Wr,m:xr,u:or!=st.length||xr&&Lt.length!=it,compression:Wt}),O+=30+or+xt+Jr,E+=76+2*(or+xt)+(it||0)+Jr,--g||ae()}};if(or>65535&&jt(xe(11,0,1),null),!Wt)jt(null,Qt);else if(rn<16e4)try{jt(null,Qr(Qt,Ft))}catch(Tr){jt(Tr,null)}else se.push(dr(Qt,Ft,jt))},At=0;At<T;++At)mt(At);return Re}function Or(n,o){o||(o={});var a={},l=[];nr(n,"",a,o);var u=0,g=0;for(var O in a){var E=a[O],T=E[0],Z=E[1],se=Z.level==0?0:8,Re=yn(O),Ze=Re.length,ae=Z.comment,mt=ae&&yn(ae),At=mt&&mt.length,wt=Gn(Z.extra);Ze>65535&&xe(11);var st=se?Qr(T,Z):T,Gt=st.length,Qt=rr();Qt.p(T),l.push(V(Z,{size:T.length,crc:Qt.d(),c:st,f:Re,m:mt,u:Ze!=O.length||mt&&ae.length!=At,o:u,compression:se})),u+=30+Ze+wt+Gt,g+=76+2*(Ze+wt)+(At||0)+Gt}for(var Ft=new Oe(g+22),Ir=u,rn=g-u,Wr=0;Wr<l.length;++Wr){var Re=l[Wr];Vt(Ft,Re.o,Re,Re.f,Re.u,Re.c.length);var or=30+Re.f.length+Gn(Re.extra);Ft.set(Re.c,Re.o+or),Vt(Ft,u,Re,Re.f,Re.u,Re.c.length,Re.o,Re.m),u+=16+or+(Re.m?Re.m.length:0)}return Xt(Ft,u,l.length,rn,Ir),Ft}var bn=null,Cn=null,li=null,ri=null,_i=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function Yn(n,o,a){a||(a=o,o={}),typeof a!="function"&&xe(7);var l=[],u=function(){for(var wt=0;wt<l.length;++wt)l[wt]()},g={},O=function(wt,st){_i(function(){a(wt,st)})};_i(function(){O=a});for(var E=n.length-22;rt(n,E)!=101010256;--E)if(!E||n.length-E>65558)return O(xe(13,0,1),null),u;var T=at(n,E+8);if(T){var Z=T,se=rt(n,E+16),Re=se==4294967295||Z==65535;if(Re){var Ze=rt(n,E-12);Re=rt(n,Ze)==101075792,Re&&(Z=T=rt(n,Ze+32),se=rt(n,Ze+48))}for(var ae=o&&o.filter,mt=function(wt){var st=Ai(n,se,Re),Gt=st[0],Qt=st[1],Ft=st[2],Ir=st[3],rn=st[4],Wr=st[5],or=Qn(n,Wr);se=rn;var Lt=function(it,xt){it?(u(),O(it,null)):(xt&&(g[Ir]=xt),--T||O(null,g))};if(!ae||ae({name:Ir,size:Qt,originalSize:Ft,compression:Gt}))if(!Gt)Lt(null,D(n,or,or+Qt));else if(Gt==8){var xr=n.subarray(or,or+Qt);if(Ft<524288||Qt>.8*Ft)try{Lt(null,kn(xr,{out:new Oe(Ft)}))}catch(it){Lt(it,null)}else l.push(dn(xr,{size:Ft},Lt))}else Lt(xe(14,"unknown compression type "+Gt,1),null);else Lt(null,null)},At=0;At<Z;++At)mt(At)}else O(null,{});return u}function zn(n,o){for(var a={},l=n.length-22;rt(n,l)!=101010256;--l)(!l||n.length-l>65558)&&xe(13);var u=at(n,l+8);if(!u)return{};var g=rt(n,l+16),O=g==4294967295||u==65535;if(O){var E=rt(n,l-12);O=rt(n,E)==101075792,O&&(u=rt(n,E+32),g=rt(n,E+48))}for(var T=o&&o.filter,Z=0;Z<u;++Z){var se=Ai(n,g,O),Re=se[0],Ze=se[1],ae=se[2],mt=se[3],At=se[4],wt=se[5],st=Qn(n,wt);g=At,(!T||T({name:mt,size:Ze,originalSize:ae,compression:Re}))&&(Re?Re==8?a[mt]=kn(n.subarray(st,st+Ze),{out:new Oe(ae)}):xe(14,"unknown compression type "+Re):a[mt]=D(n,st,st+Ze))}return a}var yi=x(42978);function bi(n,o="utf8"){return new TextDecoder(o).decode(n)}const wi=new TextEncoder;function ci(n){return wi.encode(n)}const xi=1024*8,Xi=(()=>{const n=new Uint8Array(4),o=new Uint32Array(n.buffer);return!((o[0]=1)&n[0])})(),ti={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 Ti{constructor(o=xi,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 u=a.offset?a.offset>>>0:0,g=o.byteLength-u;let O=u;(ArrayBuffer.isView(o)||o instanceof Ti)&&(o.byteLength!==o.buffer.byteLength&&(O=o.byteOffset+u),o=o.buffer),l?this.lastWrittenByte=g:this.lastWrittenByte=0,this.buffer=o,this.length=g,this.byteLength=g,this.byteOffset=O,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,O,g),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,u=new Uint8Array(l);u.set(new Uint8Array(this.buffer)),this.buffer=u.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=ti[a].BYTES_PER_ELEMENT*o,u=this.byteOffset+this.offset,g=this.buffer.slice(u,u+l);if(this.littleEndian===Xi&&a!=="uint8"&&a!=="int8"){const E=new Uint8Array(this.buffer.slice(u,u+l));E.reverse();const T=new ti[a](E.buffer);return this.offset+=l,T.reverse(),T}const O=new ti[a](g);return this.offset+=l,O}readInt16(){const o=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,o}readUint16(){const o=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,o}readInt32(){const o=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,o}readUint32(){const o=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,o}readFloat32(){const o=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,o}readFloat64(){const o=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,o}readBigInt64(){const o=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,o}readBigUint64(){const o=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,o}readChar(){return String.fromCharCode(this.readInt8())}readChars(o=1){let a="";for(let l=0;l<o;l++)a+=this.readChar();return a}readUtf8(o=1){return bi(this.readBytes(o))}decodeText(o=1,a="utf8"){return bi(this.readBytes(o),a)}writeBoolean(o){return this.writeUint8(o?255:0),this}writeInt8(o){return this.ensureAvailable(1),this._data.setInt8(this.offset++,o),this._updateLastWrittenByte(),this}writeUint8(o){return this.ensureAvailable(1),this._data.setUint8(this.offset++,o),this._updateLastWrittenByte(),this}writeByte(o){return this.writeUint8(o)}writeBytes(o){this.ensureAvailable(o.length);for(let a=0;a<o.length;a++)this._data.setUint8(this.offset++,o[a]);return this._updateLastWrittenByte(),this}writeInt16(o){return this.ensureAvailable(2),this._data.setInt16(this.offset,o,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(o){return this.ensureAvailable(2),this._data.setUint16(this.offset,o,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(o){return this.ensureAvailable(4),this._data.setInt32(this.offset,o,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(o){return this.ensureAvailable(4),this._data.setUint32(this.offset,o,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(o){return this.ensureAvailable(4),this._data.setFloat32(this.offset,o,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(o){return this.ensureAvailable(8),this._data.setFloat64(this.offset,o,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(o){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,o,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(o){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,o,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(o){return this.writeUint8(o.charCodeAt(0))}writeChars(o){for(let a=0;a<o.length;a++)this.writeUint8(o.charCodeAt(a));return this}writeUtf8(o){return this.writeBytes(ci(o))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const za=4,si=0,fn=1,sn=2;function Xn(n){let o=n.length;for(;--o>=0;)n[o]=0}const Kn=0,di=1,qi=2,Fi=3,Ra=258,Aa=29,Co=256,Wn=Co+1+Aa,In=30,Di=19,Ji=2*Wn+1,Ma=15,Ms=16,Za=7,fa=256,_o=16,Bo=17,To=18,Ps=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]),mo=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]),xs=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Ts=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),$s=512,Uo=new Array((Wn+2)*2);Xn(Uo);const Ro=new Array(In*2);Xn(Ro);const Cs=new Array($s);Xn(Cs);const el=new Array(Ra-Fi+1);Xn(el);const vl=new Array(Aa);Xn(vl);const tc=new Array(In);Xn(tc);function rc(n,o,a,l,u){this.static_tree=n,this.extra_bits=o,this.extra_base=a,this.elems=l,this.max_length=u,this.has_stree=n&&n.length}let Rl,Zs,kc;function Ql(n,o){this.dyn_tree=n,this.max_code=0,this.stat_desc=o}const Kl=n=>n<256?Cs[n]:Cs[256+(n>>>7)],Vs=(n,o)=>{n.pending_buf[n.pending++]=o&255,n.pending_buf[n.pending++]=o>>>8&255},os=(n,o,a)=>{n.bi_valid>Ms-a?(n.bi_buf|=o<<n.bi_valid&65535,Vs(n,n.bi_buf),n.bi_buf=o>>Ms-n.bi_valid,n.bi_valid+=a-Ms):(n.bi_buf|=o<<n.bi_valid&65535,n.bi_valid+=a)},ni=(n,o,a)=>{os(n,a[o*2],a[o*2+1])},ca=(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,u=o.stat_desc.static_tree,g=o.stat_desc.has_stree,O=o.stat_desc.extra_bits,E=o.stat_desc.extra_base,T=o.stat_desc.max_length;let Z,se,Re,Ze,ae,mt,At=0;for(Ze=0;Ze<=Ma;Ze++)n.bl_count[Ze]=0;for(a[n.heap[n.heap_max]*2+1]=0,Z=n.heap_max+1;Z<Ji;Z++)se=n.heap[Z],Ze=a[a[se*2+1]*2+1]+1,Ze>T&&(Ze=T,At++),a[se*2+1]=Ze,!(se>l)&&(n.bl_count[Ze]++,ae=0,se>=E&&(ae=O[se-E]),mt=a[se*2],n.opt_len+=mt*(Ze+ae),g&&(n.static_len+=mt*(u[se*2+1]+ae)));if(At!==0){do{for(Ze=T-1;n.bl_count[Ze]===0;)Ze--;n.bl_count[Ze]--,n.bl_count[Ze+1]+=2,n.bl_count[T]--,At-=2}while(At>0);for(Ze=T;Ze!==0;Ze--)for(se=n.bl_count[Ze];se!==0;)Re=n.heap[--Z],!(Re>l)&&(a[Re*2+1]!==Ze&&(n.opt_len+=(Ze-a[Re*2+1])*a[Re*2],a[Re*2+1]=Ze),se--)}},Na=(n,o,a)=>{const l=new Array(Ma+1);let u=0,g,O;for(g=1;g<=Ma;g++)u=u+a[g-1]<<1,l[g]=u;for(O=0;O<=o;O++){let E=n[O*2+1];E!==0&&(n[O*2]=ca(l[E]++,E))}},so=()=>{let n,o,a,l,u;const g=new Array(Ma+1);for(a=0,l=0;l<Aa-1;l++)for(vl[l]=a,n=0;n<1<<Ps[l];n++)el[a++]=l;for(el[a-1]=l,u=0,l=0;l<16;l++)for(tc[l]=u,n=0;n<1<<mo[l];n++)Cs[u++]=l;for(u>>=7;l<In;l++)for(tc[l]=u<<7,n=0;n<1<<mo[l]-7;n++)Cs[256+u++]=l;for(o=0;o<=Ma;o++)g[o]=0;for(n=0;n<=143;)Uo[n*2+1]=8,n++,g[8]++;for(;n<=255;)Uo[n*2+1]=9,n++,g[9]++;for(;n<=279;)Uo[n*2+1]=7,n++,g[7]++;for(;n<=287;)Uo[n*2+1]=8,n++,g[8]++;for(Na(Uo,Wn+1,g),n=0;n<In;n++)Ro[n*2+1]=5,Ro[n*2]=ca(n,5);Rl=new rc(Uo,Ps,Co+1,Wn,Ma),Zs=new rc(Ro,mo,0,In,Ma),kc=new rc(new Array(0),xs,0,Di,Za)},Ws=n=>{let o;for(o=0;o<Wn;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},Bs=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},Ss=(n,o,a,l)=>{const u=o*2,g=a*2;return n[u]<n[g]||n[u]===n[g]&&l[o]<=l[a]},vs=(n,o,a)=>{const l=n.heap[a];let u=a<<1;for(;u<=n.heap_len&&(u<n.heap_len&&Ss(o,n.heap[u+1],n.heap[u],n.depth)&&u++,!Ss(o,l,n.heap[u],n.depth));)n.heap[a]=n.heap[u],a=u,u<<=1;n.heap[a]=l},to=(n,o,a)=>{let l,u,g=0,O,E;if(n.sym_next!==0)do l=n.pending_buf[n.sym_buf+g++]&255,l+=(n.pending_buf[n.sym_buf+g++]&255)<<8,u=n.pending_buf[n.sym_buf+g++],l===0?ni(n,u,o):(O=el[u],ni(n,O+Co+1,o),E=Ps[O],E!==0&&(u-=vl[O],os(n,u,E)),l--,O=Kl(l),ni(n,O,a),E=mo[O],E!==0&&(l-=tc[O],os(n,l,E)));while(g<n.sym_next);ni(n,fa,o)},Qa=(n,o)=>{const a=o.dyn_tree,l=o.stat_desc.static_tree,u=o.stat_desc.has_stree,g=o.stat_desc.elems;let O,E,T=-1,Z;for(n.heap_len=0,n.heap_max=Ji,O=0;O<g;O++)a[O*2]!==0?(n.heap[++n.heap_len]=T=O,n.depth[O]=0):a[O*2+1]=0;for(;n.heap_len<2;)Z=n.heap[++n.heap_len]=T<2?++T:0,a[Z*2]=1,n.depth[Z]=0,n.opt_len--,u&&(n.static_len-=l[Z*2+1]);for(o.max_code=T,O=n.heap_len>>1;O>=1;O--)vs(n,a,O);Z=g;do O=n.heap[1],n.heap[1]=n.heap[n.heap_len--],vs(n,a,1),E=n.heap[1],n.heap[--n.heap_max]=O,n.heap[--n.heap_max]=E,a[Z*2]=a[O*2]+a[E*2],n.depth[Z]=(n.depth[O]>=n.depth[E]?n.depth[O]:n.depth[E])+1,a[O*2+1]=a[E*2+1]=Z,n.heap[1]=Z++,vs(n,a,1);while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],oa(n,o),Na(a,T,n.bl_count)},ss=(n,o,a)=>{let l,u=-1,g,O=o[0*2+1],E=0,T=7,Z=4;for(O===0&&(T=138,Z=3),o[(a+1)*2+1]=65535,l=0;l<=a;l++)g=O,O=o[(l+1)*2+1],!(++E<T&&g===O)&&(E<Z?n.bl_tree[g*2]+=E:g!==0?(g!==u&&n.bl_tree[g*2]++,n.bl_tree[_o*2]++):E<=10?n.bl_tree[Bo*2]++:n.bl_tree[To*2]++,E=0,u=g,O===0?(T=138,Z=3):g===O?(T=6,Z=3):(T=7,Z=4))},ls=(n,o,a)=>{let l,u=-1,g,O=o[0*2+1],E=0,T=7,Z=4;for(O===0&&(T=138,Z=3),l=0;l<=a;l++)if(g=O,O=o[(l+1)*2+1],!(++E<T&&g===O)){if(E<Z)do ni(n,g,n.bl_tree);while(--E!==0);else g!==0?(g!==u&&(ni(n,g,n.bl_tree),E--),ni(n,_o,n.bl_tree),os(n,E-3,2)):E<=10?(ni(n,Bo,n.bl_tree),os(n,E-3,3)):(ni(n,To,n.bl_tree),os(n,E-11,7));E=0,u=g,O===0?(T=138,Z=3):g===O?(T=6,Z=3):(T=7,Z=4)}},Ls=n=>{let o;for(ss(n,n.dyn_ltree,n.l_desc.max_code),ss(n,n.dyn_dtree,n.d_desc.max_code),Qa(n,n.bl_desc),o=Di-1;o>=3&&n.bl_tree[Ts[o]*2+1]===0;o--);return n.opt_len+=3*(o+1)+5+5+4,o},Jo=(n,o,a,l)=>{let u;for(os(n,o-257,5),os(n,a-1,5),os(n,l-4,4),u=0;u<l;u++)os(n,n.bl_tree[Ts[u]*2+1],3);ls(n,n.dyn_ltree,o-1),ls(n,n.dyn_dtree,a-1)},Io=n=>{let o=4093624447,a;for(a=0;a<=31;a++,o>>>=1)if(o&1&&n.dyn_ltree[a*2]!==0)return si;if(n.dyn_ltree[9*2]!==0||n.dyn_ltree[10*2]!==0||n.dyn_ltree[13*2]!==0)return fn;for(a=32;a<Co;a++)if(n.dyn_ltree[a*2]!==0)return fn;return si};let hu=!1;const rA=n=>{hu||(so(),hu=!0),n.l_desc=new Ql(n.dyn_ltree,Rl),n.d_desc=new Ql(n.dyn_dtree,Zs),n.bl_desc=new Ql(n.bl_tree,kc),n.bi_buf=0,n.bi_valid=0,Ws(n)},lc=(n,o,a,l)=>{os(n,(Kn<<1)+(l?1:0),3),Bs(n),Vs(n,a),Vs(n,~a),a&&n.pending_buf.set(n.window.subarray(o,o+a),n.pending),n.pending+=a},pu=n=>{os(n,di<<1,3),ni(n,fa,Uo),ta(n)},cl=(n,o,a,l)=>{let u,g,O=0;n.level>0?(n.strm.data_type===sn&&(n.strm.data_type=Io(n)),Qa(n,n.l_desc),Qa(n,n.d_desc),O=Ls(n),u=n.opt_len+3+7>>>3,g=n.static_len+3+7>>>3,g<=u&&(u=g)):u=g=a+5,a+4<=u&&o!==-1?lc(n,o,a,l):n.strategy===za||g===u?(os(n,(di<<1)+(l?1:0),3),to(n,Uo,Ro)):(os(n,(qi<<1)+(l?1:0),3),Jo(n,n.l_desc.max_code+1,n.d_desc.max_code+1,O+1),to(n,n.dyn_ltree,n.dyn_dtree)),Ws(n),l&&Bs(n)},mu=(n,o,a)=>(n.pending_buf[n.sym_buf+n.sym_next++]=o,n.pending_buf[n.sym_buf+n.sym_next++]=o>>8,n.pending_buf[n.sym_buf+n.sym_next++]=a,o===0?n.dyn_ltree[a*2]++:(n.matches++,o--,n.dyn_ltree[(el[a]+Co+1)*2]++,n.dyn_dtree[Kl(o)*2]++),n.sym_next===n.sym_end);var tl=rA,bs=lc,qc=cl,Us=mu,Pu=pu,cc={_tr_init:tl,_tr_stored_block:bs,_tr_flush_block:qc,_tr_tally:Us,_tr_align:Pu},ro=(n,o,a,l)=>{let u=n&65535|0,g=n>>>16&65535|0,O=0;for(;a!==0;){O=a>2e3?2e3:a,a-=O;do u=u+o[l++]|0,g=g+u|0;while(--O);u%=65521,g%=65521}return u|g<<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},gu=new Uint32Array(Gs());var cs=(n,o,a,l)=>{const u=gu,g=l+a;n^=-1;for(let O=l;O<g;O++)n=n>>>8^u[(n^o[O])&255];return n^-1},Ba={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:rs,_tr_stored_block:bo,_tr_flush_block:$o,_tr_tally:Zo,_tr_align:Do}=cc,{Z_NO_FLUSH:Es,Z_PARTIAL_FLUSH:nc,Z_FULL_FLUSH:Vc,Z_FINISH:Xs,Z_BLOCK:vu,Z_OK:wl,Z_STREAM_END:eu,Z_STREAM_ERROR:rl,Z_DATA_ERROR:_d,Z_BUF_ERROR:nA,Z_DEFAULT_COMPRESSION:$u,Z_FILTERED:uf,Z_HUFFMAN_ONLY:Wc,Z_RLE:GA,Z_FIXED:Dc,Z_DEFAULT_STRATEGY:Id,Z_UNKNOWN:Yo,Z_DEFLATED:Oo}=ya,qo=9,bc=15,jl=8,Zu=256+1+29,Fd=30,Md=19,Vu=2*Zu+1,Wu=15,Fo=3,yu=258,Gu=yu+Fo+1,b0=32,iA=42,Bh=57,Af=69,Ld=73,zf=91,Sh=103,_A=113,df=666,xl=1,Cl=2,Oc=3,Nc=4,y0=3,IA=(n,o)=>(n.msg=Ba[o],o),Eh=n=>n*2-(n>4?9:0),FA=n=>{let o=n.length;for(;--o>=0;)n[o]=0},kd=n=>{let o,a,l,u=n.w_size;o=n.hash_size,l=o;do a=n.head[--l],n.head[l]=a>=u?a-u:0;while(--o);o=u,l=o;do a=n.prev[--l],n.prev[l]=a>=u?a-u:0;while(--o)};let aA=(n,o,a)=>(o<<n.hash_shift^a)&n.hash_mask;const tu=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))},yc=(n,o)=>{$o(n,n.block_start>=0?n.block_start:-1,n.strstart-n.block_start,o),n.block_start=n.strstart,tu(n.strm)},Vo=(n,o)=>{n.pending_buf[n.pending++]=o},JA=(n,o)=>{n.pending_buf[n.pending++]=o>>>8&255,n.pending_buf[n.pending++]=o&255},$f=(n,o,a,l)=>{let u=n.avail_in;return u>l&&(u=l),u===0?0:(n.avail_in-=u,o.set(n.input.subarray(n.next_in,n.next_in+u),a),n.state.wrap===1?n.adler=ro(n.adler,o,u,a):n.state.wrap===2&&(n.adler=cs(n.adler,o,u,a)),n.next_in+=u,n.total_in+=u,u)},Zf=(n,o)=>{let a=n.max_chain_length,l=n.strstart,u,g,O=n.prev_length,E=n.nice_match;const T=n.strstart>n.w_size-Gu?n.strstart-(n.w_size-Gu):0,Z=n.window,se=n.w_mask,Re=n.prev,Ze=n.strstart+yu;let ae=Z[l+O-1],mt=Z[l+O];n.prev_length>=n.good_match&&(a>>=2),E>n.lookahead&&(E=n.lookahead);do if(u=o,!(Z[u+O]!==mt||Z[u+O-1]!==ae||Z[u]!==Z[l]||Z[++u]!==Z[l+1])){l+=2,u++;do;while(Z[++l]===Z[++u]&&Z[++l]===Z[++u]&&Z[++l]===Z[++u]&&Z[++l]===Z[++u]&&Z[++l]===Z[++u]&&Z[++l]===Z[++u]&&Z[++l]===Z[++u]&&Z[++l]===Z[++u]&&l<Ze);if(g=yu-(Ze-l),l=Ze-yu,g>O){if(n.match_start=o,O=g,g>=E)break;ae=Z[l+O-1],mt=Z[l+O]}}while((o=Re[o&se])>T&&--a!==0);return O<=n.lookahead?O:n.lookahead},Pc=n=>{const o=n.w_size;let a,l,u;do{if(l=n.window_size-n.lookahead-n.strstart,n.strstart>=o+(o-Gu)&&(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),kd(n),l+=o),n.strm.avail_in===0)break;if(a=$f(n.strm,n.window,n.strstart+n.lookahead,l),n.lookahead+=a,n.lookahead+n.insert>=Fo)for(u=n.strstart-n.insert,n.ins_h=n.window[u],n.ins_h=aA(n,n.ins_h,n.window[u+1]);n.insert&&(n.ins_h=aA(n,n.ins_h,n.window[u+Fo-1]),n.prev[u&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=u,u++,n.insert--,!(n.lookahead+n.insert<Fo)););}while(n.lookahead<Gu&&n.strm.avail_in!==0)},YA=(n,o)=>{let a=n.pending_buf_size-5>n.w_size?n.w_size:n.pending_buf_size-5,l,u,g,O=0,E=n.strm.avail_in;do{if(l=65535,g=n.bi_valid+42>>3,n.strm.avail_out<g||(g=n.strm.avail_out-g,u=n.strstart-n.block_start,l>u+n.strm.avail_in&&(l=u+n.strm.avail_in),l>g&&(l=g),l<a&&(l===0&&o!==Xs||o===Es||l!==u+n.strm.avail_in)))break;O=o===Xs&&l===u+n.strm.avail_in?1:0,bo(n,0,0,O),n.pending_buf[n.pending-4]=l,n.pending_buf[n.pending-3]=l>>8,n.pending_buf[n.pending-2]=~l,n.pending_buf[n.pending-1]=~l>>8,tu(n.strm),u&&(u>l&&(u=l),n.strm.output.set(n.window.subarray(n.block_start,n.block_start+u),n.strm.next_out),n.strm.next_out+=u,n.strm.avail_out-=u,n.strm.total_out+=u,n.block_start+=u,l-=u),l&&($f(n.strm,n.strm.output,n.strm.next_out,l),n.strm.next_out+=l,n.strm.avail_out-=l,n.strm.total_out+=l)}while(O===0);return 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),O?Nc:o!==Es&&o!==Xs&&n.strm.avail_in===0&&n.strstart===n.block_start?Cl:(g=n.window_size-n.strstart,n.strm.avail_in>g&&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++,g+=n.w_size,n.insert>n.strstart&&(n.insert=n.strstart)),g>n.strm.avail_in&&(g=n.strm.avail_in),g&&($f(n.strm,n.window,n.strstart,g),n.strstart+=g,n.insert+=g>n.w_size-n.insert?n.w_size-n.insert:g),n.high_water<n.strstart&&(n.high_water=n.strstart),g=n.bi_valid+42>>3,g=n.pending_buf_size-g>65535?65535:n.pending_buf_size-g,a=g>n.w_size?n.w_size:g,u=n.strstart-n.block_start,(u>=a||(u||o===Xs)&&o!==Es&&n.strm.avail_in===0&&u<=g)&&(l=u>g?g:u,O=o===Xs&&n.strm.avail_in===0&&l===u?1:0,bo(n,n.block_start,l,O),n.block_start+=l,tu(n.strm)),O?Oc:xl)},ff=(n,o)=>{let a,l;for(;;){if(n.lookahead<Gu){if(Pc(n),n.lookahead<Gu&&o===Es)return xl;if(n.lookahead===0)break}if(a=0,n.lookahead>=Fo&&(n.ins_h=aA(n,n.ins_h,n.window[n.strstart+Fo-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-Gu&&(n.match_length=Zf(n,a)),n.match_length>=Fo)if(l=Zo(n,n.strstart-n.match_start,n.match_length-Fo),n.lookahead-=n.match_length,n.match_length<=n.max_lazy_match&&n.lookahead>=Fo){n.match_length--;do n.strstart++,n.ins_h=aA(n,n.ins_h,n.window[n.strstart+Fo-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=aA(n,n.ins_h,n.window[n.strstart+1]);else l=Zo(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++;if(l&&(yc(n,!1),n.strm.avail_out===0))return xl}return n.insert=n.strstart<Fo-1?n.strstart:Fo-1,o===Xs?(yc(n,!0),n.strm.avail_out===0?Oc:Nc):n.sym_next&&(yc(n,!1),n.strm.avail_out===0)?xl:Cl},qA=(n,o)=>{let a,l,u;for(;;){if(n.lookahead<Gu){if(Pc(n),n.lookahead<Gu&&o===Es)return xl;if(n.lookahead===0)break}if(a=0,n.lookahead>=Fo&&(n.ins_h=aA(n,n.ins_h,n.window[n.strstart+Fo-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=Fo-1,a!==0&&n.prev_length<n.max_lazy_match&&n.strstart-a<=n.w_size-Gu&&(n.match_length=Zf(n,a),n.match_length<=5&&(n.strategy===uf||n.match_length===Fo&&n.strstart-n.match_start>4096)&&(n.match_length=Fo-1)),n.prev_length>=Fo&&n.match_length<=n.prev_length){u=n.strstart+n.lookahead-Fo,l=Zo(n,n.strstart-1-n.prev_match,n.prev_length-Fo),n.lookahead-=n.prev_length-1,n.prev_length-=2;do++n.strstart<=u&&(n.ins_h=aA(n,n.ins_h,n.window[n.strstart+Fo-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=Fo-1,n.strstart++,l&&(yc(n,!1),n.strm.avail_out===0))return xl}else if(n.match_available){if(l=Zo(n,0,n.window[n.strstart-1]),l&&yc(n,!1),n.strstart++,n.lookahead--,n.strm.avail_out===0)return xl}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<Fo-1?n.strstart:Fo-1,o===Xs?(yc(n,!0),n.strm.avail_out===0?Oc:Nc):n.sym_next&&(yc(n,!1),n.strm.avail_out===0)?xl:Cl},w0=(n,o)=>{let a,l,u,g;const O=n.window;for(;;){if(n.lookahead<=yu){if(Pc(n),n.lookahead<=yu&&o===Es)return xl;if(n.lookahead===0)break}if(n.match_length=0,n.lookahead>=Fo&&n.strstart>0&&(u=n.strstart-1,l=O[u],l===O[++u]&&l===O[++u]&&l===O[++u])){g=n.strstart+yu;do;while(l===O[++u]&&l===O[++u]&&l===O[++u]&&l===O[++u]&&l===O[++u]&&l===O[++u]&&l===O[++u]&&l===O[++u]&&u<g);n.match_length=yu-(g-u),n.match_length>n.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>=Fo?(a=Zo(n,1,n.match_length-Fo),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&&(yc(n,!1),n.strm.avail_out===0))return xl}return n.insert=0,o===Xs?(yc(n,!0),n.strm.avail_out===0?Oc:Nc):n.sym_next&&(yc(n,!1),n.strm.avail_out===0)?xl:Cl},x0=(n,o)=>{let a;for(;;){if(n.lookahead===0&&(Pc(n),n.lookahead===0)){if(o===Es)return xl;break}if(n.match_length=0,a=Zo(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++,a&&(yc(n,!1),n.strm.avail_out===0))return xl}return n.insert=0,o===Xs?(yc(n,!0),n.strm.avail_out===0?Oc:Nc):n.sym_next&&(yc(n,!1),n.strm.avail_out===0)?xl:Cl};function zl(n,o,a,l,u){this.good_length=n,this.max_lazy=o,this.nice_length=a,this.max_chain=l,this.func=u}const ed=[new zl(0,0,0,0,YA),new zl(4,4,8,4,ff),new zl(4,5,16,8,ff),new zl(4,6,32,32,ff),new zl(4,4,16,16,qA),new zl(8,16,32,32,qA),new zl(8,16,128,128,qA),new zl(8,32,128,256,qA),new zl(32,128,258,1024,qA),new zl(32,258,258,4096,qA)],C0=n=>{n.window_size=2*n.w_size,FA(n.head),n.max_lazy_match=ed[n.level].max_lazy,n.good_match=ed[n.level].good_length,n.nice_match=ed[n.level].nice_length,n.max_chain_length=ed[n.level].max_chain,n.strstart=0,n.block_start=0,n.lookahead=0,n.insert=0,n.match_length=n.prev_length=Fo-1,n.match_available=0,n.ins_h=0};function fe(){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(Vu*2),this.dyn_dtree=new Uint16Array((2*Fd+1)*2),this.bl_tree=new Uint16Array((2*Md+1)*2),FA(this.dyn_ltree),FA(this.dyn_dtree),FA(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(Wu+1),this.heap=new Uint16Array(2*Zu+1),FA(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Zu+1),FA(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const Ce=n=>{if(!n)return 1;const o=n.state;return!o||o.strm!==n||o.status!==iA&&o.status!==Bh&&o.status!==Af&&o.status!==Ld&&o.status!==zf&&o.status!==Sh&&o.status!==_A&&o.status!==df?1:0},Je=n=>{if(Ce(n))return IA(n,rl);n.total_in=n.total_out=0,n.data_type=Yo;const o=n.state;return o.pending=0,o.pending_out=0,o.wrap<0&&(o.wrap=-o.wrap),o.status=o.wrap===2?Bh:o.wrap?iA:_A,n.adler=o.wrap===2?0:1,o.last_flush=-2,rs(o),wl},lt=n=>{const o=Je(n);return o===wl&&C0(n.state),o},Bt=(n,o)=>Ce(n)||n.state.wrap!==2?rl:(n.state.gzhead=o,wl),yt=(n,o,a,l,u,g)=>{if(!n)return rl;let O=1;if(o===$u&&(o=6),l<0?(O=0,l=-l):l>15&&(O=2,l-=16),u<1||u>qo||a!==Oo||l<8||l>15||o<0||o>9||g<0||g>Dc||l===8&&O!==1)return IA(n,rl);l===8&&(l=9);const E=new fe;return n.state=E,E.strm=n,E.status=iA,E.wrap=O,E.gzhead=null,E.w_bits=l,E.w_size=1<<E.w_bits,E.w_mask=E.w_size-1,E.hash_bits=u+7,E.hash_size=1<<E.hash_bits,E.hash_mask=E.hash_size-1,E.hash_shift=~~((E.hash_bits+Fo-1)/Fo),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<<u+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=g,E.method=a,lt(n)},$t=(n,o)=>yt(n,o,Oo,bc,jl,Id),zt=(n,o)=>{if(Ce(n)||o>vu||o<0)return n?IA(n,rl):rl;const a=n.state;if(!n.output||n.avail_in!==0&&!n.input||a.status===df&&o!==Xs)return IA(n,n.avail_out===0?nA:rl);const l=a.last_flush;if(a.last_flush=o,a.pending!==0){if(tu(n),n.avail_out===0)return a.last_flush=-1,wl}else if(n.avail_in===0&&Eh(o)<=Eh(l)&&o!==Xs)return IA(n,nA);if(a.status===df&&n.avail_in!==0)return IA(n,nA);if(a.status===iA&&a.wrap===0&&(a.status=_A),a.status===iA){let u=Oo+(a.w_bits-8<<4)<<8,g=-1;if(a.strategy>=Wc||a.level<2?g=0:a.level<6?g=1:a.level===6?g=2:g=3,u|=g<<6,a.strstart!==0&&(u|=b0),u+=31-u%31,JA(a,u),a.strstart!==0&&(JA(a,n.adler>>>16),JA(a,n.adler&65535)),n.adler=1,a.status=_A,tu(n),a.pending!==0)return a.last_flush=-1,wl}if(a.status===Bh){if(n.adler=0,Vo(a,31),Vo(a,139),Vo(a,8),a.gzhead)Vo(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)),Vo(a,a.gzhead.time&255),Vo(a,a.gzhead.time>>8&255),Vo(a,a.gzhead.time>>16&255),Vo(a,a.gzhead.time>>24&255),Vo(a,a.level===9?2:a.strategy>=Wc||a.level<2?4:0),Vo(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(Vo(a,a.gzhead.extra.length&255),Vo(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(n.adler=cs(n.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=Af;else if(Vo(a,0),Vo(a,0),Vo(a,0),Vo(a,0),Vo(a,0),Vo(a,a.level===9?2:a.strategy>=Wc||a.level<2?4:0),Vo(a,y0),a.status=_A,tu(n),a.pending!==0)return a.last_flush=-1,wl}if(a.status===Af){if(a.gzhead.extra){let u=a.pending,g=(a.gzhead.extra.length&65535)-a.gzindex;for(;a.pending+g>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>u&&(n.adler=cs(n.adler,a.pending_buf,a.pending-u,u)),a.gzindex+=E,tu(n),a.pending!==0)return a.last_flush=-1,wl;u=0,g-=E}let O=new Uint8Array(a.gzhead.extra);a.pending_buf.set(O.subarray(a.gzindex,a.gzindex+g),a.pending),a.pending+=g,a.gzhead.hcrc&&a.pending>u&&(n.adler=cs(n.adler,a.pending_buf,a.pending-u,u)),a.gzindex=0}a.status=Ld}if(a.status===Ld){if(a.gzhead.name){let u=a.pending,g;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>u&&(n.adler=cs(n.adler,a.pending_buf,a.pending-u,u)),tu(n),a.pending!==0)return a.last_flush=-1,wl;u=0}a.gzindex<a.gzhead.name.length?g=a.gzhead.name.charCodeAt(a.gzindex++)&255:g=0,Vo(a,g)}while(g!==0);a.gzhead.hcrc&&a.pending>u&&(n.adler=cs(n.adler,a.pending_buf,a.pending-u,u)),a.gzindex=0}a.status=zf}if(a.status===zf){if(a.gzhead.comment){let u=a.pending,g;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>u&&(n.adler=cs(n.adler,a.pending_buf,a.pending-u,u)),tu(n),a.pending!==0)return a.last_flush=-1,wl;u=0}a.gzindex<a.gzhead.comment.length?g=a.gzhead.comment.charCodeAt(a.gzindex++)&255:g=0,Vo(a,g)}while(g!==0);a.gzhead.hcrc&&a.pending>u&&(n.adler=cs(n.adler,a.pending_buf,a.pending-u,u))}a.status=Sh}if(a.status===Sh){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(tu(n),a.pending!==0))return a.last_flush=-1,wl;Vo(a,n.adler&255),Vo(a,n.adler>>8&255),n.adler=0}if(a.status=_A,tu(n),a.pending!==0)return a.last_flush=-1,wl}if(n.avail_in!==0||a.lookahead!==0||o!==Es&&a.status!==df){let u=a.level===0?YA(a,o):a.strategy===Wc?x0(a,o):a.strategy===GA?w0(a,o):ed[a.level].func(a,o);if((u===Oc||u===Nc)&&(a.status=df),u===xl||u===Oc)return n.avail_out===0&&(a.last_flush=-1),wl;if(u===Cl&&(o===nc?Do(a):o!==vu&&(bo(a,0,0,!1),o===Vc&&(FA(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),tu(n),n.avail_out===0))return a.last_flush=-1,wl}return o!==Xs?wl:a.wrap<=0?eu:(a.wrap===2?(Vo(a,n.adler&255),Vo(a,n.adler>>8&255),Vo(a,n.adler>>16&255),Vo(a,n.adler>>24&255),Vo(a,n.total_in&255),Vo(a,n.total_in>>8&255),Vo(a,n.total_in>>16&255),Vo(a,n.total_in>>24&255)):(JA(a,n.adler>>>16),JA(a,n.adler&65535)),tu(n),a.wrap>0&&(a.wrap=-a.wrap),a.pending!==0?wl:eu)},Kt=n=>{if(Ce(n))return rl;const o=n.state.status;return n.state=null,o===_A?IA(n,_d):wl},ur=(n,o)=>{let a=o.length;if(Ce(n))return rl;const l=n.state,u=l.wrap;if(u===2||u===1&&l.status!==iA||l.lookahead)return rl;if(u===1&&(n.adler=ro(n.adler,o,a,0)),l.wrap=0,a>=l.w_size){u===0&&(FA(l.head),l.strstart=0,l.block_start=0,l.insert=0);let T=new Uint8Array(l.w_size);T.set(o.subarray(a-l.w_size,a),0),o=T,a=l.w_size}const g=n.avail_in,O=n.next_in,E=n.input;for(n.avail_in=a,n.next_in=0,n.input=o,Pc(l);l.lookahead>=Fo;){let T=l.strstart,Z=l.lookahead-(Fo-1);do l.ins_h=aA(l,l.ins_h,l.window[T+Fo-1]),l.prev[T&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=T,T++;while(--Z);l.strstart=T,l.lookahead=Fo-1,Pc(l)}return l.strstart+=l.lookahead,l.block_start=l.strstart,l.insert=l.lookahead,l.lookahead=0,l.match_length=l.prev_length=Fo-1,l.match_available=0,n.next_in=O,n.input=E,n.avail_in=g,l.wrap=u,wl};var _r=$t,pr=yt,tn=lt,Vr=Je,Yr=Bt,Nn=zt,xn=Kt,Fn=ur,Bn="pako deflate (from Nodeca project)",$n={deflateInit:_r,deflateInit2:pr,deflateReset:tn,deflateResetKeep:Vr,deflateSetHeader:Yr,deflate:Nn,deflateEnd:xn,deflateSetDictionary:Fn,deflateInfo:Bn};const Ui=(n,o)=>Object.prototype.hasOwnProperty.call(n,o);var zi=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)Ui(a,l)&&(n[l]=a[l])}}return n},fi=n=>{let o=0;for(let l=0,u=n.length;l<u;l++)o+=n[l].length;const a=new Uint8Array(o);for(let l=0,u=0,g=n.length;l<g;l++){let O=n[l];a.set(O,u),u+=O.length}return a},na={assign:zi,flattenChunks:fi};let wa=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(n){wa=!1}const Jn=new Uint8Array(256);for(let n=0;n<256;n++)Jn[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;Jn[254]=Jn[254]=1;var mi=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let o,a,l,u,g,O=n.length,E=0;for(u=0;u<O;u++)a=n.charCodeAt(u),(a&64512)===55296&&u+1<O&&(l=n.charCodeAt(u+1),(l&64512)===56320&&(a=65536+(a-55296<<10)+(l-56320),u++)),E+=a<128?1:a<2048?2:a<65536?3:4;for(o=new Uint8Array(E),g=0,u=0;g<E;u++)a=n.charCodeAt(u),(a&64512)===55296&&u+1<O&&(l=n.charCodeAt(u+1),(l&64512)===56320&&(a=65536+(a-55296<<10)+(l-56320),u++)),a<128?o[g++]=a:a<2048?(o[g++]=192|a>>>6,o[g++]=128|a&63):a<65536?(o[g++]=224|a>>>12,o[g++]=128|a>>>6&63,o[g++]=128|a&63):(o[g++]=240|a>>>18,o[g++]=128|a>>>12&63,o[g++]=128|a>>>6&63,o[g++]=128|a&63);return o};const ii=(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 Pn=(n,o)=>{const a=o||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,o));let l,u;const g=new Array(a*2);for(u=0,l=0;l<a;){let O=n[l++];if(O<128){g[u++]=O;continue}let E=Jn[O];if(E>4){g[u++]=65533,l+=E-1;continue}for(O&=E===2?31:E===3?15:7;E>1&&l<a;)O=O<<6|n[l++]&63,E--;if(E>1){g[u++]=65533;continue}O<65536?g[u++]=O:(O-=65536,g[u++]=55296|O>>10&1023,g[u++]=56320|O&1023)}return ii(g,u)},ai=(n,o)=>{o=o||n.length,o>n.length&&(o=n.length);let a=o-1;for(;a>=0&&(n[a]&192)===128;)a--;return a<0||a===0?o:a+Jn[n[a]]>o?a:o},Vi={string2buf:mi,buf2string:Pn,utf8border:ai};function Pa(){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 ma=Pa;const Wi=Object.prototype.toString,{Z_NO_FLUSH:Ia,Z_SYNC_FLUSH:Ka,Z_FULL_FLUSH:es,Z_FINISH:lo,Z_OK:ys,Z_STREAM_END:us,Z_DEFAULT_COMPRESSION:ga,Z_DEFAULT_STRATEGY:ol,Z_DEFLATED:go}=ya;function ts(n){this.options=na.assign({level:ga,method:go,chunkSize:16384,windowBits:15,memLevel:8,strategy:ol},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 ma,this.strm.avail_out=0;let a=$n.deflateInit2(this.strm,o.level,o.method,o.windowBits,o.memLevel,o.strategy);if(a!==ys)throw new Error(Ba[a]);if(o.header&&$n.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=$n.deflateSetDictionary(this.strm,l),a!==ys)throw new Error(Ba[a]);this._dict_set=!0}}ts.prototype.push=function(n,o){const a=this.strm,l=this.options.chunkSize;let u,g;if(this.ended)return!1;for(o===~~o?g=o:g=o===!0?lo:Ia,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),(g===Ka||g===es)&&a.avail_out<=6){this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;continue}if(u=$n.deflate(a,g),u===us)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),u=$n.deflateEnd(this.strm),this.onEnd(u),this.ended=!0,u===ys;if(a.avail_out===0){this.onData(a.output);continue}if(g>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},ts.prototype.onData=function(n){this.chunks.push(n)},ts.prototype.onEnd=function(n){n===ys&&(this.result=na.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function ns(n,o){const a=new ts(o);if(a.push(n,!0),a.err)throw a.msg||Ba[a.err];return a.result}function wc(n,o){return o=o||{},o.raw=!0,ns(n,o)}function oi(n,o){return o=o||{},o.gzip=!0,ns(n,o)}var Gi=ts,$i=ns,Oi=wc,yo=oi,Ni=ya,ua={Deflate:Gi,deflate:$i,deflateRaw:Oi,gzip:yo,constants:Ni};const $a=16209,Va=16191;var Fl=function(o,a){let l,u,g,O,E,T,Z,se,Re,Ze,ae,mt,At,wt,st,Gt,Qt,Ft,Ir,rn,Wr,or,Lt,xr;const it=o.state;l=o.next_in,Lt=o.input,u=l+(o.avail_in-5),g=o.next_out,xr=o.output,O=g-(a-o.avail_out),E=g+(o.avail_out-257),T=it.dmax,Z=it.wsize,se=it.whave,Re=it.wnext,Ze=it.window,ae=it.hold,mt=it.bits,At=it.lencode,wt=it.distcode,st=(1<<it.lenbits)-1,Gt=(1<<it.distbits)-1;e:do{mt<15&&(ae+=Lt[l++]<<mt,mt+=8,ae+=Lt[l++]<<mt,mt+=8),Qt=At[ae&st];t:for(;;){if(Ft=Qt>>>24,ae>>>=Ft,mt-=Ft,Ft=Qt>>>16&255,Ft===0)xr[g++]=Qt&65535;else if(Ft&16){Ir=Qt&65535,Ft&=15,Ft&&(mt<Ft&&(ae+=Lt[l++]<<mt,mt+=8),Ir+=ae&(1<<Ft)-1,ae>>>=Ft,mt-=Ft),mt<15&&(ae+=Lt[l++]<<mt,mt+=8,ae+=Lt[l++]<<mt,mt+=8),Qt=wt[ae&Gt];r:for(;;){if(Ft=Qt>>>24,ae>>>=Ft,mt-=Ft,Ft=Qt>>>16&255,Ft&16){if(rn=Qt&65535,Ft&=15,mt<Ft&&(ae+=Lt[l++]<<mt,mt+=8,mt<Ft&&(ae+=Lt[l++]<<mt,mt+=8)),rn+=ae&(1<<Ft)-1,rn>T){o.msg="invalid distance too far back",it.mode=$a;break e}if(ae>>>=Ft,mt-=Ft,Ft=g-O,rn>Ft){if(Ft=rn-Ft,Ft>se&&it.sane){o.msg="invalid distance too far back",it.mode=$a;break e}if(Wr=0,or=Ze,Re===0){if(Wr+=Z-Ft,Ft<Ir){Ir-=Ft;do xr[g++]=Ze[Wr++];while(--Ft);Wr=g-rn,or=xr}}else if(Re<Ft){if(Wr+=Z+Re-Ft,Ft-=Re,Ft<Ir){Ir-=Ft;do xr[g++]=Ze[Wr++];while(--Ft);if(Wr=0,Re<Ir){Ft=Re,Ir-=Ft;do xr[g++]=Ze[Wr++];while(--Ft);Wr=g-rn,or=xr}}}else if(Wr+=Re-Ft,Ft<Ir){Ir-=Ft;do xr[g++]=Ze[Wr++];while(--Ft);Wr=g-rn,or=xr}for(;Ir>2;)xr[g++]=or[Wr++],xr[g++]=or[Wr++],xr[g++]=or[Wr++],Ir-=3;Ir&&(xr[g++]=or[Wr++],Ir>1&&(xr[g++]=or[Wr++]))}else{Wr=g-rn;do xr[g++]=xr[Wr++],xr[g++]=xr[Wr++],xr[g++]=xr[Wr++],Ir-=3;while(Ir>2);Ir&&(xr[g++]=xr[Wr++],Ir>1&&(xr[g++]=xr[Wr++]))}}else if(Ft&64){o.msg="invalid distance code",it.mode=$a;break e}else{Qt=wt[(Qt&65535)+(ae&(1<<Ft)-1)];continue r}break}}else if(Ft&64)if(Ft&32){it.mode=Va;break e}else{o.msg="invalid literal/length code",it.mode=$a;break e}else{Qt=At[(Qt&65535)+(ae&(1<<Ft)-1)];continue t}break}}while(l<u&&g<E);Ir=mt>>3,l-=Ir,mt-=Ir<<3,ae&=(1<<mt)-1,o.next_in=l,o.next_out=g,o.avail_in=l<u?5+(u-l):5-(l-u),o.avail_out=g<E?257+(E-g):257-(g-E),it.hold=ae,it.bits=mt};const nl=15,Gc=852,Rs=592,Tc=0,Hn=1,uc=2,MA=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]),Mo=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,u,g,O,E)=>{const T=E.bits;let Z=0,se=0,Re=0,Ze=0,ae=0,mt=0,At=0,wt=0,st=0,Gt=0,Qt,Ft,Ir,rn,Wr,or=null,Lt;const xr=new Uint16Array(nl+1),it=new Uint16Array(nl+1);let xt=null,Wt,jt,Tr;for(Z=0;Z<=nl;Z++)xr[Z]=0;for(se=0;se<l;se++)xr[o[a+se]]++;for(ae=T,Ze=nl;Ze>=1&&xr[Ze]===0;Ze--);if(ae>Ze&&(ae=Ze),Ze===0)return u[g++]=1<<24|64<<16|0,u[g++]=1<<24|64<<16|0,E.bits=1,0;for(Re=1;Re<Ze&&xr[Re]===0;Re++);for(ae<Re&&(ae=Re),wt=1,Z=1;Z<=nl;Z++)if(wt<<=1,wt-=xr[Z],wt<0)return-1;if(wt>0&&(n===Tc||Ze!==1))return-1;for(it[1]=0,Z=1;Z<nl;Z++)it[Z+1]=it[Z]+xr[Z];for(se=0;se<l;se++)o[a+se]!==0&&(O[it[o[a+se]]++]=se);if(n===Tc?(or=xt=O,Lt=20):n===Hn?(or=MA,xt=co,Lt=257):(or=hn,xt=Mo,Lt=0),Gt=0,se=0,Z=Re,Wr=g,mt=ae,At=0,Ir=-1,st=1<<ae,rn=st-1,n===Hn&&st>Gc||n===uc&&st>Rs)return 1;for(;;){Wt=Z-At,O[se]+1<Lt?(jt=0,Tr=O[se]):O[se]>=Lt?(jt=xt[O[se]-Lt],Tr=or[O[se]-Lt]):(jt=96,Tr=0),Qt=1<<Z-At,Ft=1<<mt,Re=Ft;do Ft-=Qt,u[Wr+(Gt>>At)+Ft]=Wt<<24|jt<<16|Tr|0;while(Ft!==0);for(Qt=1<<Z-1;Gt&Qt;)Qt>>=1;if(Qt!==0?(Gt&=Qt-1,Gt+=Qt):Gt=0,se++,--xr[Z]===0){if(Z===Ze)break;Z=o[a+O[se]]}if(Z>ae&&(Gt&rn)!==Ir){for(At===0&&(At=ae),Wr+=Re,mt=Z-At,wt=1<<mt;mt+At<Ze&&(wt-=xr[mt+At],!(wt<=0));)mt++,wt<<=1;if(st+=1<<mt,n===Hn&&st>Gc||n===uc&&st>Rs)return 1;Ir=Gt&rn,u[Ir]=ae<<24|mt<<16|Wr-g|0}}return Gt!==0&&(u[Wr+Gt]=Z-At<<24|64<<16|0),E.bits=ae,0};const ia=0,Bl=1,$l=2,{Z_FINISH:Uc,Z_BLOCK:xc,Z_TREES:Sl,Z_OK:Al,Z_STREAM_END:oA,Z_NEED_DICT:Ml,Z_STREAM_ERROR:Qs,Z_DATA_ERROR:El,Z_MEM_ERROR:il,Z_BUF_ERROR:ks,Z_DEFLATED:Cc}=ya,wu=16180,Tu=16181,xu=16182,hf=16183,Vf=16184,ao=16185,Wo=16186,Zl=16187,ds=16188,Ll=16189,Vl=16190,Js=16191,Cu=16192,pf=16193,mf=16194,td=16195,uo=16196,_s=16197,Bu=16198,Su=16199,Wl=16200,Wf=16201,Uu=16202,Gf=16203,Xf=16204,rd=16205,Dd=16206,Od=16207,nd=16208,zr=16209,Nd=16210,gf=16211,Jf=852,vf=592,Ih=15,Yf=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 LA=n=>{if(!n)return 1;const o=n.state;return!o||o.strm!==n||o.mode<wu||o.mode>gf?1:0},bf=n=>{if(LA(n))return Qs;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=wu,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(Jf),o.distcode=o.distdyn=new Int32Array(vf),o.sane=1,o.back=-1,Al},id=n=>{if(LA(n))return Qs;const o=n.state;return o.wsize=0,o.whave=0,o.wnext=0,bf(n)},yf=(n,o)=>{let a;if(LA(n))return Qs;const l=n.state;return o<0?(a=0,o=-o):(a=(o>>4)+5,o<48&&(o&=15)),o&&(o<8||o>15)?Qs:(l.window!==null&&l.wbits!==o&&(l.window=null),l.wrap=a,l.wbits=o,id(n))},Ru=(n,o)=>{if(!n)return Qs;const a=new bl;n.state=a,a.strm=n,a.window=null,a.mode=wu;const l=yf(n,o);return l!==Al&&(n.state=null),l},sA=n=>Ru(n,Ih);let fs=!0,Rc,Gl;const kA=n=>{if(fs){Rc=new Int32Array(512),Gl=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(Bl,n.lens,0,288,Rc,0,n.work,{bits:9}),o=0;o<32;)n.lens[o++]=5;As($l,n.lens,0,32,Gl,0,n.work,{bits:5}),fs=!1}n.lencode=Rc,n.lenbits=9,n.distcode=Gl,n.distbits=5},Ao=(n,o,a,l)=>{let u;const g=n.state;return g.window===null&&(g.wsize=1<<g.wbits,g.wnext=0,g.whave=0,g.window=new Uint8Array(g.wsize)),l>=g.wsize?(g.window.set(o.subarray(a-g.wsize,a),0),g.wnext=0,g.whave=g.wsize):(u=g.wsize-g.wnext,u>l&&(u=l),g.window.set(o.subarray(a-l,a-l+u),g.wnext),l-=u,l?(g.window.set(o.subarray(a-l,a),0),g.wnext=l,g.whave=g.wsize):(g.wnext+=u,g.wnext===g.wsize&&(g.wnext=0),g.whave<g.wsize&&(g.whave+=u))),0},wo=(n,o)=>{let a,l,u,g,O,E,T,Z,se,Re,Ze,ae,mt,At,wt=0,st,Gt,Qt,Ft,Ir,rn,Wr,or;const Lt=new Uint8Array(4);let xr,it;const xt=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(LA(n)||!n.output||!n.input&&n.avail_in!==0)return Qs;a=n.state,a.mode===Js&&(a.mode=Cu),O=n.next_out,u=n.output,T=n.avail_out,g=n.next_in,l=n.input,E=n.avail_in,Z=a.hold,se=a.bits,Re=E,Ze=T,or=Al;e:for(;;)switch(a.mode){case wu:if(a.wrap===0){a.mode=Cu;break}for(;se<16;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}if(a.wrap&2&&Z===35615){a.wbits===0&&(a.wbits=15),a.check=0,Lt[0]=Z&255,Lt[1]=Z>>>8&255,a.check=cs(a.check,Lt,2,0),Z=0,se=0,a.mode=Tu;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)!==Cc){n.msg="unknown compression method",a.mode=zr;break}if(Z>>>=4,se-=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?Ll:Js,Z=0,se=0;break;case Tu:for(;se<16;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}if(a.flags=Z,(a.flags&255)!==Cc){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&&(Lt[0]=Z&255,Lt[1]=Z>>>8&255,a.check=cs(a.check,Lt,2,0)),Z=0,se=0,a.mode=xu;case xu:for(;se<32;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}a.head&&(a.head.time=Z),a.flags&512&&a.wrap&4&&(Lt[0]=Z&255,Lt[1]=Z>>>8&255,Lt[2]=Z>>>16&255,Lt[3]=Z>>>24&255,a.check=cs(a.check,Lt,4,0)),Z=0,se=0,a.mode=hf;case hf:for(;se<16;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}a.head&&(a.head.xflags=Z&255,a.head.os=Z>>8),a.flags&512&&a.wrap&4&&(Lt[0]=Z&255,Lt[1]=Z>>>8&255,a.check=cs(a.check,Lt,2,0)),Z=0,se=0,a.mode=Vf;case Vf:if(a.flags&1024){for(;se<16;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}a.length=Z,a.head&&(a.head.extra_len=Z),a.flags&512&&a.wrap&4&&(Lt[0]=Z&255,Lt[1]=Z>>>8&255,a.check=cs(a.check,Lt,2,0)),Z=0,se=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(g,g+ae),Wr)),a.flags&512&&a.wrap&4&&(a.check=cs(a.check,l,ae,g)),E-=ae,g+=ae,a.length-=ae),a.length))break e;a.length=0,a.mode=Wo;case Wo:if(a.flags&2048){if(E===0)break e;ae=0;do Wr=l[g+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=cs(a.check,l,ae,g)),E-=ae,g+=ae,Wr)break e}else a.head&&(a.head.name=null);a.length=0,a.mode=Zl;case Zl:if(a.flags&4096){if(E===0)break e;ae=0;do Wr=l[g+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=cs(a.check,l,ae,g)),E-=ae,g+=ae,Wr)break e}else a.head&&(a.head.comment=null);a.mode=ds;case ds:if(a.flags&512){for(;se<16;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}if(a.wrap&4&&Z!==(a.check&65535)){n.msg="header crc mismatch",a.mode=zr;break}Z=0,se=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),n.adler=a.check=0,a.mode=Js;break;case Ll:for(;se<32;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}n.adler=a.check=Yf(Z),Z=0,se=0,a.mode=Vl;case Vl:if(a.havedict===0)return n.next_out=O,n.avail_out=T,n.next_in=g,n.avail_in=E,a.hold=Z,a.bits=se,Ml;n.adler=a.check=1,a.mode=Js;case Js:if(o===xc||o===Sl)break e;case Cu:if(a.last){Z>>>=se&7,se-=se&7,a.mode=Dd;break}for(;se<3;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}switch(a.last=Z&1,Z>>>=1,se-=1,Z&3){case 0:a.mode=pf;break;case 1:if(kA(a),a.mode=Su,o===Sl){Z>>>=2,se-=2;break e}break;case 2:a.mode=uo;break;case 3:n.msg="invalid block type",a.mode=zr}Z>>>=2,se-=2;break;case pf:for(Z>>>=se&7,se-=se&7;se<32;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}if((Z&65535)!==(Z>>>16^65535)){n.msg="invalid stored block lengths",a.mode=zr;break}if(a.length=Z&65535,Z=0,se=0,a.mode=mf,o===Sl)break e;case mf:a.mode=td;case td:if(ae=a.length,ae){if(ae>E&&(ae=E),ae>T&&(ae=T),ae===0)break e;u.set(l.subarray(g,g+ae),O),E-=ae,g+=ae,T-=ae,O+=ae,a.length-=ae;break}a.mode=Js;break;case uo:for(;se<14;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}if(a.nlen=(Z&31)+257,Z>>>=5,se-=5,a.ndist=(Z&31)+1,Z>>>=5,se-=5,a.ncode=(Z&15)+4,Z>>>=4,se-=4,a.nlen>286||a.ndist>30){n.msg="too many length or distance symbols",a.mode=zr;break}a.have=0,a.mode=_s;case _s:for(;a.have<a.ncode;){for(;se<3;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}a.lens[xt[a.have++]]=Z&7,Z>>>=3,se-=3}for(;a.have<19;)a.lens[xt[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,xr={bits:a.lenbits},or=As(ia,a.lens,0,19,a.lencode,0,a.work,xr),a.lenbits=xr.bits,or){n.msg="invalid code lengths set",a.mode=zr;break}a.have=0,a.mode=Bu;case Bu:for(;a.have<a.nlen+a.ndist;){for(;wt=a.lencode[Z&(1<<a.lenbits)-1],st=wt>>>24,Gt=wt>>>16&255,Qt=wt&65535,!(st<=se);){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}if(Qt<16)Z>>>=st,se-=st,a.lens[a.have++]=Qt;else{if(Qt===16){for(it=st+2;se<it;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}if(Z>>>=st,se-=st,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,se-=2}else if(Qt===17){for(it=st+3;se<it;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}Z>>>=st,se-=st,Wr=0,ae=3+(Z&7),Z>>>=3,se-=3}else{for(it=st+7;se<it;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}Z>>>=st,se-=st,Wr=0,ae=11+(Z&127),Z>>>=7,se-=7}if(a.have+ae>a.nlen+a.ndist){n.msg="invalid bit length repeat",a.mode=zr;break}for(;ae--;)a.lens[a.have++]=Wr}}if(a.mode===zr)break;if(a.lens[256]===0){n.msg="invalid code -- missing end-of-block",a.mode=zr;break}if(a.lenbits=9,xr={bits:a.lenbits},or=As(Bl,a.lens,0,a.nlen,a.lencode,0,a.work,xr),a.lenbits=xr.bits,or){n.msg="invalid literal/lengths set",a.mode=zr;break}if(a.distbits=6,a.distcode=a.distdyn,xr={bits:a.distbits},or=As($l,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,xr),a.distbits=xr.bits,or){n.msg="invalid distances set",a.mode=zr;break}if(a.mode=Su,o===Sl)break e;case Su:a.mode=Wl;case Wl:if(E>=6&&T>=258){n.next_out=O,n.avail_out=T,n.next_in=g,n.avail_in=E,a.hold=Z,a.bits=se,Fl(n,Ze),O=n.next_out,u=n.output,T=n.avail_out,g=n.next_in,l=n.input,E=n.avail_in,Z=a.hold,se=a.bits,a.mode===Js&&(a.back=-1);break}for(a.back=0;wt=a.lencode[Z&(1<<a.lenbits)-1],st=wt>>>24,Gt=wt>>>16&255,Qt=wt&65535,!(st<=se);){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}if(Gt&&!(Gt&240)){for(Ft=st,Ir=Gt,rn=Qt;wt=a.lencode[rn+((Z&(1<<Ft+Ir)-1)>>Ft)],st=wt>>>24,Gt=wt>>>16&255,Qt=wt&65535,!(Ft+st<=se);){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}Z>>>=Ft,se-=Ft,a.back+=Ft}if(Z>>>=st,se-=st,a.back+=st,a.length=Qt,Gt===0){a.mode=rd;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=Wf;case Wf:if(a.extra){for(it=a.extra;se<it;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}a.length+=Z&(1<<a.extra)-1,Z>>>=a.extra,se-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=Uu;case Uu:for(;wt=a.distcode[Z&(1<<a.distbits)-1],st=wt>>>24,Gt=wt>>>16&255,Qt=wt&65535,!(st<=se);){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}if(!(Gt&240)){for(Ft=st,Ir=Gt,rn=Qt;wt=a.distcode[rn+((Z&(1<<Ft+Ir)-1)>>Ft)],st=wt>>>24,Gt=wt>>>16&255,Qt=wt&65535,!(Ft+st<=se);){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}Z>>>=Ft,se-=Ft,a.back+=Ft}if(Z>>>=st,se-=st,a.back+=st,Gt&64){n.msg="invalid distance code",a.mode=zr;break}a.offset=Qt,a.extra=Gt&15,a.mode=Gf;case Gf:if(a.extra){for(it=a.extra;se<it;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}a.offset+=Z&(1<<a.extra)-1,Z>>>=a.extra,se-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){n.msg="invalid distance too far back",a.mode=zr;break}a.mode=Xf;case Xf:if(T===0)break e;if(ae=Ze-T,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),At=a.window}else At=u,mt=O-a.offset,ae=a.length;ae>T&&(ae=T),T-=ae,a.length-=ae;do u[O++]=At[mt++];while(--ae);a.length===0&&(a.mode=Wl);break;case rd:if(T===0)break e;u[O++]=a.length,T--,a.mode=Wl;break;case Dd:if(a.wrap){for(;se<32;){if(E===0)break e;E--,Z|=l[g++]<<se,se+=8}if(Ze-=T,n.total_out+=Ze,a.total+=Ze,a.wrap&4&&Ze&&(n.adler=a.check=a.flags?cs(a.check,u,Ze,O-Ze):ro(a.check,u,Ze,O-Ze)),Ze=T,a.wrap&4&&(a.flags?Z:Yf(Z))!==a.check){n.msg="incorrect data check",a.mode=zr;break}Z=0,se=0}a.mode=Od;case Od:if(a.wrap&&a.flags){for(;se<32;){if(E===0)break e;E--,Z+=l[g++]<<se,se+=8}if(a.wrap&4&&Z!==(a.total&4294967295)){n.msg="incorrect length check",a.mode=zr;break}Z=0,se=0}a.mode=nd;case nd:or=oA;break e;case zr:or=El;break e;case Nd:return il;case gf:default:return Qs}return n.next_out=O,n.avail_out=T,n.next_in=g,n.avail_in=E,a.hold=Z,a.bits=se,(a.wsize||Ze!==n.avail_out&&a.mode<zr&&(a.mode<Dd||o!==Uc))&&Ao(n,n.output,n.next_out,Ze-n.avail_out),Re-=n.avail_in,Ze-=n.avail_out,n.total_in+=Re,n.total_out+=Ze,a.total+=Ze,a.wrap&4&&Ze&&(n.adler=a.check=a.flags?cs(a.check,u,Ze,n.next_out-Ze):ro(a.check,u,Ze,n.next_out-Ze)),n.data_type=a.bits+(a.last?64:0)+(a.mode===Js?128:0)+(a.mode===Su||a.mode===mf?256:0),(Re===0&&Ze===0||o===Uc)&&or===Al&&(or=ks),or},ru=n=>{if(LA(n))return Qs;let o=n.state;return o.window&&(o.window=null),n.state=null,Al},lA=(n,o)=>{if(LA(n))return Qs;const a=n.state;return a.wrap&2?(a.head=o,o.done=!1,Al):Qs},Xu=(n,o)=>{const a=o.length;let l,u,g;return LA(n)||(l=n.state,l.wrap!==0&&l.mode!==Vl)?Qs:l.mode===Vl&&(u=1,u=ro(u,o,a,0),u!==l.check)?El:(g=Ao(n,o,a,a),g?(l.mode=Nd,il):(l.havedict=1,Al))};var B0=id,kl=yf,Eu=bf,Fh=sA,qf=Ru,S0=wo,So=ru,wf=lA,Pd=Xu,eh="pako inflate (from Nodeca project)",Ur={inflateReset:B0,inflateReset2:kl,inflateResetKeep:Eu,inflateInit:Fh,inflateInit2:qf,inflate:S0,inflateEnd:So,inflateGetHeader:wf,inflateSetDictionary:Pd,inflateInfo:eh};function Dm(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var Om=Dm;const E0=Object.prototype.toString,{Z_NO_FLUSH:_0,Z_FINISH:Td,Z_OK:Mh,Z_STREAM_END:I0,Z_NEED_DICT:Xl,Z_STREAM_ERROR:ad,Z_DATA_ERROR:th,Z_MEM_ERROR:Lh}=ya;function kh(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 ma,this.strm.avail_out=0;let a=Ur.inflateInit2(this.strm,o.windowBits);if(a!==Mh)throw new Error(Ba[a]);if(this.header=new Om,Ur.inflateGetHeader(this.strm,this.header),o.dictionary&&(typeof o.dictionary=="string"?o.dictionary=Vi.string2buf(o.dictionary):E0.call(o.dictionary)==="[object ArrayBuffer]"&&(o.dictionary=new Uint8Array(o.dictionary)),o.raw&&(a=Ur.inflateSetDictionary(this.strm,o.dictionary),a!==Mh)))throw new Error(Ba[a])}kh.prototype.push=function(n,o){const a=this.strm,l=this.options.chunkSize,u=this.options.dictionary;let g,O,E;if(this.ended)return!1;for(o===~~o?O=o:O=o===!0?Td:_0,E0.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),g=Ur.inflate(a,O),g===Xl&&u&&(g=Ur.inflateSetDictionary(a,u),g===Mh?g=Ur.inflate(a,O):g===th&&(g=Xl));a.avail_in>0&&g===I0&&a.state.wrap>0&&n[a.next_in]!==0;)Ur.inflateReset(a),g=Ur.inflate(a,O);switch(g){case ad:case th:case Xl:case Lh:return this.onEnd(g),this.ended=!0,!1}if(E=a.avail_out,a.next_out&&(a.avail_out===0||g===I0))if(this.options.to==="string"){let T=Vi.utf8border(a.output,a.next_out),Z=a.next_out-T,se=Vi.buf2string(a.output,T);a.next_out=Z,a.avail_out=l-Z,Z&&a.output.set(a.output.subarray(T,T+Z),0),this.onData(se)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(!(g===Mh&&E===0)){if(g===I0)return g=Ur.inflateEnd(this.strm),this.onEnd(g),this.ended=!0,!0;if(a.avail_in===0)break}}return!0},kh.prototype.onData=function(n){this.chunks.push(n)},kh.prototype.onEnd=function(n){n===Mh&&(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 rh(n,o){const a=new kh(o);if(a.push(n),a.err)throw a.msg||Ba[a.err];return a.result}function F0(n,o){return o=o||{},o.raw=!0,rh(n,o)}var fp=kh,M0=rh,nu=F0,Ud=rh,xf=ya,L0={Inflate:fp,inflate:M0,inflateRaw:nu,ungzip:Ud,constants:xf};const{Deflate:nh,deflate:Nm,deflateRaw:Pm,gzip:Tm}=ua,{Inflate:Um,inflate:hp,inflateRaw:Ds,ungzip:Zp}=L0;var Vp=nh,od=Nm,Wp=Pm,ih=Tm,pp=Um,ah=hp,Dh=Ds,oh=Zp,Gp=ya,Rm={Deflate:Vp,deflate:od,deflateRaw:Wp,gzip:ih,Inflate:pp,inflate:ah,inflateRaw:Dh,ungzip:oh,constants:Gp};const Oh=[];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;Oh[n]=o}const k0=4294967295;function Qm(n,o,a){let l=n;for(let u=0;u<a;u++)l=Oh[(l^o[u])&255]^l>>>8;return l}function Xp(n,o){return(Qm(k0,n,o)^k0)>>>0}function Cf(n,o,a){const l=n.readUint32(),u=Xp(new Uint8Array(n.buffer,n.byteOffset+n.offset-o-4,o),o);if(u!==l)throw new Error(`CRC mismatch for chunk ${a}. Expected ${l}, found ${u}`)}function Km(n,o){n.writeUint32(Xp(new Uint8Array(n.buffer,n.byteOffset+n.offset-o,o),o))}function Dl(n,o,a){for(let l=0;l<a;l++)o[l]=n[l]}function Rd(n,o,a,l){let u=0;for(;u<l;u++)o[u]=n[u];for(;u<a;u++)o[u]=n[u]+o[u-l]&255}function Bf(n,o,a,l){let u=0;if(a.length===0)for(;u<l;u++)o[u]=n[u];else for(;u<l;u++)o[u]=n[u]+a[u]&255}function sd(n,o,a,l,u){let g=0;if(a.length===0){for(;g<u;g++)o[g]=n[g];for(;g<l;g++)o[g]=n[g]+(o[g-u]>>1)&255}else{for(;g<u;g++)o[g]=n[g]+(a[g]>>1)&255;for(;g<l;g++)o[g]=n[g]+(o[g-u]+a[g]>>1)&255}}function Xc(n,o,a,l,u){let g=0;if(a.length===0){for(;g<u;g++)o[g]=n[g];for(;g<l;g++)o[g]=n[g]+o[g-u]&255}else{for(;g<u;g++)o[g]=n[g]+a[g]&255;for(;g<l;g++)o[g]=n[g]+cA(o[g-u],a[g],a[g-u])&255}}function cA(n,o,a){const l=n+o-a,u=Math.abs(l-n),g=Math.abs(l-o),O=Math.abs(l-a);return u<=g&&u<=O?n:g<=O?o:a}function _u(n,o,a,l,u,g){switch(n){case 0:Dl(o,a,u);break;case 1:Rd(o,a,u,g);break;case 2:Bf(o,a,l,u);break;case 3:sd(o,a,l,u,g);break;case 4:Xc(o,a,l,u,g);break;default:throw new Error(`Unsupported filter: ${n}`)}}const DA=new Uint16Array([255]),cd=new Uint8Array(DA.buffer)[0]===255;function sh(n){const{data:o,width:a,height:l,channels:u,depth:g}=n,O=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],E=Math.ceil(g/8)*u,T=new Uint8Array(l*a*E);let Z=0;for(let se=0;se<7;se++){const Re=O[se],Ze=Math.ceil((a-Re.x)/Re.xStep),ae=Math.ceil((l-Re.y)/Re.yStep);if(Ze<=0||ae<=0)continue;const mt=Ze*E,At=new Uint8Array(mt);for(let wt=0;wt<ae;wt++){const st=o[Z++],Gt=o.subarray(Z,Z+mt);Z+=mt;const Qt=new Uint8Array(mt);_u(st,Gt,Qt,At,mt,E),At.set(Qt);for(let Ft=0;Ft<Ze;Ft++){const Ir=Re.x+Ft*Re.xStep,rn=Re.y+wt*Re.yStep;if(!(Ir>=a||rn>=l))for(let Wr=0;Wr<E;Wr++)T[(rn*a+Ir)*E+Wr]=Qt[Ft*E+Wr]}}}if(g===16){const se=new Uint16Array(T.buffer);if(cd)for(let Re=0;Re<se.length;Re++)se[Re]=Qd(se[Re]);return se}else return T}function Qd(n){return(n&255)<<8|n>>8&255}const Nh=new Uint16Array([255]),Ph=new Uint8Array(Nh.buffer)[0]===255,Jp=new Uint8Array(0);function mp(n){const{data:o,width:a,height:l,channels:u,depth:g}=n,O=Math.ceil(g/8)*u,E=Math.ceil(g/8*u*a),T=new Uint8Array(l*E);let Z=Jp,se=0,Re,Ze;for(let ae=0;ae<l;ae++){switch(Re=o.subarray(se+1,se+1+E),Ze=T.subarray(ae*E,(ae+1)*E),o[se]){case 0:Dl(Re,Ze,E);break;case 1:Rd(Re,Ze,E,O);break;case 2:Bf(Re,Ze,Z,E);break;case 3:sd(Re,Ze,Z,E,O);break;case 4:Xc(Re,Ze,Z,E,O);break;default:throw new Error(`Unsupported filter: ${o[se]}`)}Z=Ze,se+=E+1}if(g===16){const ae=new Uint16Array(T.buffer);if(Ph)for(let mt=0;mt<ae.length;mt++)ae[mt]=Yp(ae[mt]);return ae}else return T}function Yp(n){return(n&255)<<8|n>>8&255}const Th=Uint8Array.of(137,80,78,71,13,10,26,10);function Hm(n){n.writeBytes(Th)}function O0(n){if(!jm(n.readBytes(Th.length)))throw new Error("wrong PNG signature")}function jm(n){if(n.length<Th.length)return!1;for(let o=0;o<Th.length;o++)if(n[o]!==Th[o])return!1;return!0}const qp="tEXt",em=0,tm=new TextDecoder("latin1");function rm(n){if(Sf(n),n.length===0||n.length>79)throw new Error("keyword length must be between 1 and 79")}const gp=/^[\u0000-\u00FF]*$/;function Sf(n){if(!gp.test(n))throw new Error("invalid latin1 text")}function lh(n,o,a){const l=OA(o);n[l]=vp(o,a-l.length-1)}function ch(n,o,a){rm(o),Sf(a);const l=o.length+1+a.length;n.writeUint32(l),n.writeChars(qp),n.writeChars(o),n.writeByte(em),n.writeChars(a),writeCrc(n,l+4)}function OA(n){for(n.mark();n.readByte()!==em;);const o=n.offset;n.reset();const a=tm.decode(n.readBytes(o-n.offset-1));return n.skip(1),rm(a),a}function vp(n,o){return tm.decode(n.readBytes(o))}const Iu={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},N0={UNKNOWN:-1,DEFLATE:0},nm={UNKNOWN:-1,ADAPTIVE:0},bp={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Uh={NONE:0,BACKGROUND:1,PREVIOUS:2},Rh={SOURCE:0,OVER:1};class zm extends Ti{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:u=!1}=l;this._checkCrc=u,this._inflator=new pp,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=N0.UNKNOWN,this._filterMethod=nm.UNKNOWN,this._interlaceMethod=bp.UNKNOWN,this._colorType=Iu.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 u=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 qp:lh(this._png.text,this,a);break;case"pHYs":this.decodepHYs();break;default:this.skip(a);break}if(this.offset-u!==a)throw new Error(`Length mismatch while decoding chunk ${l}`);this._checkCrc?Cf(this,a+4,l):this.skip(4)}decodeApngChunk(a,l){const u=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=u+a;break}if(this.offset-u!==a)throw new Error(`Length mismatch while decoding chunk ${l}`);this._checkCrc?Cf(this,a+4,l):this.skip(4)}decodeIHDR(){const a=this._png;a.width=this.readUint32(),a.height=this.readUint32(),a.depth=yp(this.readUint8());const l=this.readUint8();this._colorType=l;let u;switch(l){case Iu.GREYSCALE:u=1;break;case Iu.TRUECOLOUR:u=3;break;case Iu.INDEXED_COLOUR:u=1;break;case Iu.GREYSCALE_ALPHA:u=2;break;case Iu.TRUECOLOUR_ALPHA:u=4;break;case Iu.UNKNOWN:default:throw new Error(`Unknown color type: ${l}`)}if(this._png.channels=u,this._compressionMethod=this.readUint8(),this._compressionMethod!==N0.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 u=[];this._palette=u;for(let g=0;g<l;g++)u.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(a){this._writingDataChunks=!0;const l=a,u=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,u,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,u=this.offset+this.byteOffset;if(u+=4,l-=4,this._inflator.push(new Uint8Array(this.buffer,u,l)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(a)}decodetRNS(a){switch(this._colorType){case Iu.GREYSCALE:case Iu.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 Iu.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 u=this.readByte();this._palette[l].push(u)}for(;l<this._palette.length;l++)this._palette[l].push(255);break}case Iu.UNKNOWN:case Iu.GREYSCALE_ALPHA:case Iu.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(a){const l=OA(this),u=this.readUint8();if(u!==N0.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${u}`);const g=this.readBytes(a-l.length-2);this._png.iccEmbeddedProfile={name:l,profile:ah(g)}}decodepHYs(){const a=this.readUint32(),l=this.readUint32(),u=this.readByte();this._png.resolution={x:a,y:l,unit:u}}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)},u=this._frames.at(a);if(u){if(u.data=mp({data:u.data,width:u.width,height:u.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||u.xOffset===0&&u.yOffset===0&&u.width===this._png.width&&u.height===this._png.height)l.data=u.data;else{const g=this._apng.frames.at(a-1);this.disposeFrame(u,g,l),this.addFrameDataToCanvas(l,u)}this._apng.frames.push(l)}}return this._apng}disposeFrame(a,l,u){switch(a.disposeOp){case Uh.NONE:break;case Uh.BACKGROUND:for(let g=0;g<this._png.height;g++)for(let O=0;O<this._png.width;O++){const E=(g*a.width+O)*this._png.channels;for(let T=0;T<this._png.channels;T++)u.data[E+T]=0}break;case Uh.PREVIOUS:u.data.set(l.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(a,l){const u=1<<this._png.depth,g=(O,E)=>{const T=((O+l.yOffset)*this._png.width+l.xOffset+E)*this._png.channels,Z=(O*l.width+E)*this._png.channels;return{index:T,frameIndex:Z}};switch(l.blendOp){case Rh.SOURCE:for(let O=0;O<l.height;O++)for(let E=0;E<l.width;E++){const{index:T,frameIndex:Z}=g(O,E);for(let se=0;se<this._png.channels;se++)a.data[T+se]=l.data[Z+se]}break;case Rh.OVER:for(let O=0;O<l.height;O++)for(let E=0;E<l.width;E++){const{index:T,frameIndex:Z}=g(O,E);for(let se=0;se<this._png.channels;se++){const Re=l.data[Z+this._png.channels-1]/u,Ze=se%(this._png.channels-1)===0?1:l.data[Z+se],ae=Math.floor(Re*Ze+(1-Re)*a.data[T+se]);a.data[T+se]+=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!==nm.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===bp.NO_INTERLACE)this._png.data=mp({data:a,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===bp.ADAM7)this._png.data=sh({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:Uh.NONE,blendOp:Rh.SOURCE,data:a}),this._inflator=new pp,this._writingDataChunks=!1}}function yp(n){if(n!==1&&n!==2&&n!==4&&n!==8&&n!==16)throw new Error(`invalid bit depth: ${n}`);return n}const hs={level:3};class Mi extends null{constructor(a,l={}){var u;super();zs(this,"_png");zs(this,"_zlibOptions");zs(this,"_colorType");zs(this,"_interlaceMethod");this._colorType=ColorType.UNKNOWN,this._zlibOptions=b1(b1({},hs),l.zlib),this._png=this._checkData(a),this._interlaceMethod=(u=l.interlace==="Adam7"?InterlaceMethod.ADAM7:InterlaceMethod.NO_INTERLACE)!=null?u: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 u of this._png.palette)this.writeByte(u[0]),this.writeByte(u[1]),this.writeByte(u[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:u,depth:g,data:O}=this._png,E=g<=8?Math.ceil(a*g/8)*u:Math.ceil(a*g/8*u/2),T=new IOBuffer().setBigEndian();let Z=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let Ze=0;Ze<l;Ze++)T.writeByte(0),g===16?Z=Go(O,T,E,Z):Z=Ac(O,T,E,Z);else this._interlaceMethod===InterlaceMethod.ADAM7&&(Z=im(this._png,O,T,Z));const se=T.toArray(),Re=deflate(se,this._zlibOptions);this.encodeIDAT(Re)}_checkData(a){const{colorType:l,channels:u,depth:g}=P0(a,a.palette),O={width:NA(a.width,"width"),height:NA(a.height,"height"),channels:u,data:a.data,depth:g,text:a.text,palette:a.palette};this._colorType=l;const E=g<8?Math.ceil(O.width*g/8)*O.height*u:O.width*O.height*u;if(O.data.length!==E)throw new RangeError(`wrong data size. Found ${O.data.length}, expected ${E}`);return O}}function NA(n,o){if(Number.isInteger(n)&&n>0)return n;throw new TypeError(`${o} must be a positive integer`)}function P0(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 u={channels:a,depth:l,colorType:ColorType.UNKNOWN};switch(a){case 4:u.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:u.colorType=ColorType.TRUECOLOUR;break;case 1:o?u.colorType=ColorType.INDEXED_COLOUR:u.colorType=ColorType.GREYSCALE;break;case 2:u.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return u}function Ac(n,o,a,l){for(let u=0;u<a;u++)o.writeByte(n[l++]);return l}function im(n,o,a,l){const u=[{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:g,height:O,channels:E,depth:T}=n;let Z=0;T===16?Z=E*T/8/2:Z=E*T/8;for(let se=0;se<7;se++){const Re=u[se],Ze=Math.floor((g-Re.x+Re.xStep-1)/Re.xStep),ae=Math.floor((O-Re.y+Re.yStep-1)/Re.yStep);if(Ze<=0||ae<=0)continue;const mt=Ze*Z;for(let At=0;At<ae;At++){const wt=Re.y+At*Re.yStep,st=T<=8?new Uint8Array(mt):new Uint16Array(mt);let Gt=0;for(let Qt=0;Qt<Ze;Qt++){const Ft=Re.x+Qt*Re.xStep;if(Ft<g&&wt<O){const Ir=(wt*g+Ft)*Z;for(let rn=0;rn<Z;rn++)st[Gt++]=o[Ir+rn]}}if(a.writeByte(0),T===8)a.writeBytes(st);else if(T===16)for(const Qt of st)a.writeByte(Qt>>8&255),a.writeByte(Qt&255)}}return l}function Go(n,o,a,l){for(let u=0;u<a;u++)o.writeUint16(n[l++]);return l}var sl;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.METRE=1]="METRE"})(sl||(sl={}));function Ys(n,o){return new zm(n,o).decode()}function $m(n,o){return new PngEncoder(n,o).encode()}function T0(n,o){return new PngDecoder(n,o).decodeApng()}var Wa=function(){return typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:this}();function Ef(){Wa.console&&typeof Wa.console.log=="function"&&Wa.console.log.apply(Wa.console,arguments)}var Os={log:Ef,warn:function(n){Wa.console&&(typeof Wa.console.warn=="function"?Wa.console.warn.apply(Wa.console,arguments):Ef.call(null,arguments))},error:function(n){Wa.console&&(typeof Wa.console.error=="function"?Wa.console.error.apply(Wa.console,arguments):Ef(n))}};function Kd(n,o,a){var l=new XMLHttpRequest;l.open("GET",n),l.responseType="blob",l.onload=function(){ud(l.response,o,a)},l.onerror=function(){Os.error("could not download file")},l.send()}function U0(n){var o=new XMLHttpRequest;o.open("HEAD",n,!1);try{o.send()}catch(a){}return o.status>=200&&o.status<=299}function dc(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 ud=Wa.saveAs||((typeof window=="undefined"?"undefined":(0,me.Z)(window))!=="object"||window!==Wa?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(n,o,a){var l=Wa.URL||Wa.webkitURL,u=document.createElement("a");o=o||n.name||"download",u.download=o,u.rel="noopener",typeof n=="string"?(u.href=n,u.origin!==location.origin?U0(u.href)?Kd(n,o,a):dc(u,u.target="_blank"):dc(u)):(u.href=l.createObjectURL(n),setTimeout(function(){l.revokeObjectURL(u.href)},4e4),setTimeout(function(){dc(u)},0))}:"msSaveOrOpenBlob"in navigator?function(n,o,a){if(o=o||n.name||"download",typeof n=="string")if(U0(n))Kd(n,o,a);else{var l=document.createElement("a");l.href=n,l.target="_blank",setTimeout(function(){dc(l)})}else navigator.msSaveOrOpenBlob(function(u,g){return g===void 0?g={autoBom:!1}:(0,me.Z)(g)!=="object"&&(Os.warn("Deprecated: Expected third argument to be a object"),g={autoBom:!g}),g.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(u.type)?new Blob(["\uFEFF",u],{type:u.type}):u}(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 Kd(n,o,a);var u=n.type==="application/octet-stream",g=/constructor/i.test(Wa.HTMLElement)||Wa.safari,O=/CriOS\/[\d]+/.test(navigator.userAgent);if((O||u&&g)&&(typeof FileReader=="undefined"?"undefined":(0,me.Z)(FileReader))==="object"){var E=new FileReader;E.onloadend=function(){var se=E.result;se=O?se:se.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=se:location=se,l=null},E.readAsDataURL(n)}else{var T=Wa.URL||Wa.webkitURL,Z=T.createObjectURL(n);l?l.location=Z:location.href=Z,l=null,setTimeout(function(){T.revokeObjectURL(Z)},4e4)}});function wp(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 u=a[l].re,g=a[l].process,O=u.exec(n);O&&(o=g(O),this.r=o[0],this.g=o[1],this.b=o[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var E=this.r.toString(16),T=this.g.toString(16),Z=this.b.toString(16);return E.length==1&&(E="0"+E),T.length==1&&(T="0"+T),Z.length==1&&(Z="0"+Z),"#"+E+T+Z}}var gn=Wa.atob.bind(Wa),Ks=Wa.btoa.bind(Wa);function R0(n,o){var a=n[0],l=n[1],u=n[2],g=n[3];a=Qc(a,l,u,g,o[0],7,-680876936),g=Qc(g,a,l,u,o[1],12,-389564586),u=Qc(u,g,a,l,o[2],17,606105819),l=Qc(l,u,g,a,o[3],22,-1044525330),a=Qc(a,l,u,g,o[4],7,-176418897),g=Qc(g,a,l,u,o[5],12,1200080426),u=Qc(u,g,a,l,o[6],17,-1473231341),l=Qc(l,u,g,a,o[7],22,-45705983),a=Qc(a,l,u,g,o[8],7,1770035416),g=Qc(g,a,l,u,o[9],12,-1958414417),u=Qc(u,g,a,l,o[10],17,-42063),l=Qc(l,u,g,a,o[11],22,-1990404162),a=Qc(a,l,u,g,o[12],7,1804603682),g=Qc(g,a,l,u,o[13],12,-40341101),u=Qc(u,g,a,l,o[14],17,-1502002290),a=Bc(a,l=Qc(l,u,g,a,o[15],22,1236535329),u,g,o[1],5,-165796510),g=Bc(g,a,l,u,o[6],9,-1069501632),u=Bc(u,g,a,l,o[11],14,643717713),l=Bc(l,u,g,a,o[0],20,-373897302),a=Bc(a,l,u,g,o[5],5,-701558691),g=Bc(g,a,l,u,o[10],9,38016083),u=Bc(u,g,a,l,o[15],14,-660478335),l=Bc(l,u,g,a,o[4],20,-405537848),a=Bc(a,l,u,g,o[9],5,568446438),g=Bc(g,a,l,u,o[14],9,-1019803690),u=Bc(u,g,a,l,o[3],14,-187363961),l=Bc(l,u,g,a,o[8],20,1163531501),a=Bc(a,l,u,g,o[13],5,-1444681467),g=Bc(g,a,l,u,o[2],9,-51403784),u=Bc(u,g,a,l,o[7],14,1735328473),a=ic(a,l=Bc(l,u,g,a,o[12],20,-1926607734),u,g,o[5],4,-378558),g=ic(g,a,l,u,o[8],11,-2022574463),u=ic(u,g,a,l,o[11],16,1839030562),l=ic(l,u,g,a,o[14],23,-35309556),a=ic(a,l,u,g,o[1],4,-1530992060),g=ic(g,a,l,u,o[4],11,1272893353),u=ic(u,g,a,l,o[7],16,-155497632),l=ic(l,u,g,a,o[10],23,-1094730640),a=ic(a,l,u,g,o[13],4,681279174),g=ic(g,a,l,u,o[0],11,-358537222),u=ic(u,g,a,l,o[3],16,-722521979),l=ic(l,u,g,a,o[6],23,76029189),a=ic(a,l,u,g,o[9],4,-640364487),g=ic(g,a,l,u,o[12],11,-421815835),u=ic(u,g,a,l,o[15],16,530742520),a=fc(a,l=ic(l,u,g,a,o[2],23,-995338651),u,g,o[0],6,-198630844),g=fc(g,a,l,u,o[7],10,1126891415),u=fc(u,g,a,l,o[14],15,-1416354905),l=fc(l,u,g,a,o[5],21,-57434055),a=fc(a,l,u,g,o[12],6,1700485571),g=fc(g,a,l,u,o[3],10,-1894986606),u=fc(u,g,a,l,o[10],15,-1051523),l=fc(l,u,g,a,o[1],21,-2054922799),a=fc(a,l,u,g,o[8],6,1873313359),g=fc(g,a,l,u,o[15],10,-30611744),u=fc(u,g,a,l,o[6],15,-1560198380),l=fc(l,u,g,a,o[13],21,1309151649),a=fc(a,l,u,g,o[4],6,-145523070),g=fc(g,a,l,u,o[11],10,-1120210379),u=fc(u,g,a,l,o[2],15,718787259),l=fc(l,u,g,a,o[9],21,-343485551),n[0]=Jc(a,n[0]),n[1]=Jc(l,n[1]),n[2]=Jc(u,n[2]),n[3]=Jc(g,n[3])}function Q0(n,o,a,l,u,g){return o=Jc(Jc(o,n),Jc(l,g)),Jc(o<<u|o>>>32-u,a)}function Qc(n,o,a,l,u,g,O){return Q0(o&a|~o&l,n,o,u,g,O)}function Bc(n,o,a,l,u,g,O){return Q0(o&l|a&~l,n,o,u,g,O)}function ic(n,o,a,l,u,g,O){return Q0(o^a^l,n,o,u,g,O)}function fc(n,o,a,l,u,g,O){return Q0(a^(o|~l),n,o,u,g,O)}function am(n){var o,a=n.length,l=[1732584193,-271733879,-1732584194,271733878];for(o=64;o<=n.length;o+=64)R0(l,K0(n.substring(o-64,o)));n=n.substring(o-64);var u=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(o=0;o<n.length;o++)u[o>>2]|=n.charCodeAt(o)<<(o%4<<3);if(u[o>>2]|=128<<(o%4<<3),o>55)for(R0(l,u),o=0;o<16;o++)u[o]=0;return u[14]=8*a,R0(l,u),l}function K0(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 Fu="0123456789abcdef".split("");function _f(n){for(var o="",a=0;a<4;a++)o+=Fu[n>>8*a+4&15]+Fu[n>>8*a&15];return o}function Ol(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function If(n){return am(n).map(Ol).join("")}var xp=function(n){for(var o=0;o<n.length;o++)n[o]=_f(n[o]);return n.join("")}(am("hello"))!="5d41402abc4b2a76b9719d911017c592";function Jc(n,o){if(xp){var a=(65535&n)+(65535&o);return(n>>16)+(o>>16)+(a>>16)<<16|65535&a}return n+o&4294967295}function hc(n,o){var a,l,u,g;if(n!==a){for(var O=(u=n,g=1+(256/n.length|0),new Array(g+1).join(u)),E=[],T=0;T<256;T++)E[T]=T;var Z=0;for(T=0;T<256;T++){var se=E[T];Z=(Z+se+O.charCodeAt(T))%256,E[T]=E[Z],E[Z]=se}a=n,l=E}else E=l;var Re=o.length,Ze=0,ae=0,mt="";for(T=0;T<Re;T++)ae=(ae+(se=E[Ze=(Ze+1)%256]))%256,E[Ze]=E[ae],E[ae]=se,O=E[(E[Ze]+E[ae])%256],mt+=String.fromCharCode(o.charCodeAt(T)^O);return mt}var Qh={print:4,modify:8,copy:16,"annot-forms":32};function PA(n,o,a,l){this.v=1,this.r=2;var u=192;n.forEach(function(E){if(Qh.perm!==void 0)throw new Error("Invalid permission: "+E);u+=Qh[E]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var g=(o+this.padding).substr(0,32),O=(a+this.padding).substr(0,32);this.O=this.processOwnerPassword(g,O),this.P=-(1+(255^u)),this.encryptionKey=If(g+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(l)).substr(0,5),this.U=hc(this.encryptionKey,this.padding)}function iu(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 u=n.charCodeAt(l);o+=u<33||u===35||u===37||u===40||u===41||u===47||u===60||u===62||u===91||u===93||u===123||u===125||u>126?"#"+("0"+u.toString(16)).slice(-2):n[l]}return o}function Cp(n){if((0,me.Z)(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var o={};this.subscribe=function(a,l,u){if(u=u||!1,typeof a!="string"||typeof l!="function"||typeof u!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");o.hasOwnProperty(a)||(o[a]={});var g=Math.random().toString(35);return o[a][g]=[l,!!u],g},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),u=[];for(var g in o[a]){var O=o[a][g];try{O[0].apply(n,l)}catch(E){Wa.console&&Os.error("jsPDF PubSub Error",E.message,E)}O[1]&&u.push(g)}u.length&&u.forEach(this.unsubscribe)}},this.getTopics=function(){return o}}function Kh(n){if(!(this instanceof Kh))return new Kh(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 uh(n,o){this.gState=n,this.matrix=o,this.id="",this.objectNumber=-1}function Hd(n,o,a,l,u){if(!(this instanceof Hd))return new Hd(n,o,a,l,u);this.type=n==="axial"?2:3,this.coords=o,this.colors=a,uh.call(this,l,u)}function jd(n,o,a,l,u){if(!(this instanceof jd))return new jd(n,o,a,l,u);this.boundingBox=n,this.xStep=o,this.yStep=a,this.stream="",this.cloneIndex=0,uh.call(this,l,u)}function da(n){var o,a=typeof arguments[0]=="string"?arguments[0]:"p",l=arguments[1],u=arguments[2],g=arguments[3],O=[],E=1,T=16,Z="S",se=null;(0,me.Z)(n=n||{})==="object"&&(a=n.orientation,l=n.unit||l,u=n.format||u,g=n.compress||n.compressPdf||g,(se=n.encryption||null)!==null&&(se.userPassword=se.userPassword||"",se.ownerPassword=se.ownerPassword||"",se.userPermissions=se.userPermissions||[]),E=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(o=n.precision),n.floatPrecision!==void 0&&(T=n.floatPrecision),Z=n.defaultPathOperation||"S"),O=n.filters||(g===!0?["FlateEncode"]:O),l=l||"mm",a=(""+(a||"P")).toLowerCase();var Re=n.putOnlyUsedFonts||!1,Ze={},ae={internal:{},__private__:{}};ae.__private__.PubSub=Cp;var mt="1.3",At=ae.__private__.getPdfVersion=function(){return mt};ae.__private__.setPdfVersion=function(z){mt=z};var wt={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 wt};var st=ae.__private__.getPageFormat=function(z){return wt[z]};u=u||"a4";var Gt="compat",Qt="advanced",Ft=Gt;function Ir(){this.saveGraphicsState(),gt(new ja(Eo,0,0,-Eo,0,fh()*Eo).toString()+" cm"),this.setFontSize(this.getFontSize()/Eo),Z="n",Ft=Qt}function rn(){this.restoreGraphicsState(),Z="S",Ft=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=Ft===Gt;return He&&Ir.call(this),typeof z!="function"||(z(this),He&&rn.call(this)),this},ae.compatAPI=function(z){var He=Ft===Qt;return He&&rn.call(this),typeof z!="function"||(z(this),He&&Ir.call(this)),this},ae.isAdvancedAPI=function(){return Ft===Qt};var or,Lt=function(z){if(Ft!==Qt)throw new Error(z+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},xr=ae.roundToPrecision=ae.__private__.roundToPrecision=function(z,He){var St=o||He;if(isNaN(z)||isNaN(St))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return z.toFixed(St).replace(/0+$/,"")};or=ae.hpf=ae.__private__.hpf=typeof T=="number"?function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return xr(z,T)}:T==="smart"?function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return xr(z,z>-1&&z<1?16:5)}:function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.hpf");return xr(z,16)};var it=ae.f2=ae.__private__.f2=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.f2");return xr(z,2)},xt=ae.__private__.f3=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.f3");return xr(z,3)},Wt=ae.scale=ae.__private__.scale=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.scale");return Ft===Gt?z*Eo:Ft===Qt?z:void 0},jt=function(z){return Wt(function(He){return Ft===Gt?fh()-He:Ft===Qt?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},Mr=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(""),se!==null&&(jc=new PA(se.userPermissions,se.userPassword,se.ownerPassword,Zr)),Zr};ae.setFileId=function(z){return Mr(z),this},ae.getFileId=function(){return Jr()};var Gr=ae.__private__.convertDateToPDFDate=function(z){var He=z.getTimezoneOffset(),St=He<0?"+":"-",Zt=Math.floor(Math.abs(He/60)),gr=Math.abs(He%60),pn=[St,Nt(Zt),"'",Nt(gr),"'"].join("");return["D:",z.getFullYear(),Nt(z.getMonth()+1),Nt(z.getDate()),Nt(z.getHours()),Nt(z.getMinutes()),Nt(z.getSeconds()),pn].join("")},Zn=ae.__private__.convertPDFDateToDate=function(z){var He=parseInt(z.substr(2,4),10),St=parseInt(z.substr(6,2),10)-1,Zt=parseInt(z.substr(8,2),10),gr=parseInt(z.substr(10,2),10),pn=parseInt(z.substr(12,2),10),En=parseInt(z.substr(14,2),10);return new Date(He,St,Zt,gr,pn,En,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},tt=ae.__private__.getCreationDate=function(z){var He=Tr;return z==="jsDate"&&(He=Zn(Tr)),He};ae.setCreationDate=function(z){return Sn(z),this},ae.getCreationDate=function(z){return tt(z)};var It,Nt=ae.__private__.padd2=function(z){return("0"+parseInt(z)).slice(-2)},qt=ae.__private__.padd2Hex=function(z){return("00"+(z=z.toString())).substr(z.length)},Ar=0,Er=[],Kr=[],$r=0,mn=[],jn=[],gi=!1,Ci=Kr;ae.__private__.setCustomOutputDestination=function(z){gi=!0,Ci=z};var Sa=function(z){gi||(Ci=z)};ae.__private__.resetCustomOutputDestination=function(){gi=!1,Ci=Kr};var gt=ae.__private__.out=function(z){return z=z.toString(),$r+=z.length+1,Ci.push(z),Ci},ki=ae.__private__.write=function(z){return gt(arguments.length===1?z.toString():Array.prototype.join.call(arguments," "))},No=ae.__private__.getArrayBuffer=function(z){for(var He=z.length,St=new ArrayBuffer(He),Zt=new Uint8Array(St);He--;)Zt[He]=z.charCodeAt(He);return St},Ha=[["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 Ha};var Rn=n.fontSize||16;ae.__private__.setFontSize=ae.setFontSize=function(z){return Rn=Ft===Qt?z/Eo:z,this};var Da,Pi=ae.__private__.getFontSize=ae.getFontSize=function(){return Ft===Gt?Rn:Rn*Eo},xa=n.R2L||!1;ae.__private__.setR2L=ae.setR2L=function(z){return xa=z,this},ae.__private__.getR2L=ae.getR2L=function(){return xa};var La,is=ae.__private__.setZoomMode=function(z){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(z))Da=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.');Da=z}else Da=parseInt(z,10)};ae.__private__.getZoomMode=function(){return Da};var as,Xa=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.');La=z};ae.__private__.getPageMode=function(){return La};var Xo=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.');as=z};ae.__private__.getLayoutMode=function(){return as},ae.__private__.setDisplayMode=ae.setDisplayMode=function(z,He,St){return is(z),Xo(He),Xa(St),this};var Qo={title:"",subject:"",author:"",keywords:"",creator:""};ae.__private__.getDocumentProperty=function(z){if(Object.keys(Qo).indexOf(z)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return Qo[z]},ae.__private__.getDocumentProperties=function(){return Qo},ae.__private__.setDocumentProperties=ae.setProperties=ae.setDocumentProperties=function(z){for(var He in Qo)Qo.hasOwnProperty(He)&&z[He]&&(Qo[He]=z[He]);return this},ae.__private__.setDocumentProperty=function(z,He){if(Object.keys(Qo).indexOf(z)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return Qo[z]=He};var ha,Eo,Ca,pc,ws,Po={},Ko={},Nl=[],Ea={},dl={},Ja={},fo={},al=null,no=0,Oa=[],Hs=new Cp(ae),Zh=n.hotfixes||[],Hc={},Mf={},Zd=[],ja=function z(He,St,Zt,gr,pn,En){if(!(this instanceof z))return new z(He,St,Zt,gr,pn,En);isNaN(He)&&(He=1),isNaN(St)&&(St=0),isNaN(Zt)&&(Zt=0),isNaN(gr)&&(gr=1),isNaN(pn)&&(pn=0),isNaN(En)&&(En=0),this._matrix=[He,St,Zt,gr,pn,En]};Object.defineProperty(ja.prototype,"sx",{get:function(){return this._matrix[0]},set:function(z){this._matrix[0]=z}}),Object.defineProperty(ja.prototype,"shy",{get:function(){return this._matrix[1]},set:function(z){this._matrix[1]=z}}),Object.defineProperty(ja.prototype,"shx",{get:function(){return this._matrix[2]},set:function(z){this._matrix[2]=z}}),Object.defineProperty(ja.prototype,"sy",{get:function(){return this._matrix[3]},set:function(z){this._matrix[3]=z}}),Object.defineProperty(ja.prototype,"tx",{get:function(){return this._matrix[4]},set:function(z){this._matrix[4]=z}}),Object.defineProperty(ja.prototype,"ty",{get:function(){return this._matrix[5]},set:function(z){this._matrix[5]=z}}),Object.defineProperty(ja.prototype,"a",{get:function(){return this._matrix[0]},set:function(z){this._matrix[0]=z}}),Object.defineProperty(ja.prototype,"b",{get:function(){return this._matrix[1]},set:function(z){this._matrix[1]=z}}),Object.defineProperty(ja.prototype,"c",{get:function(){return this._matrix[2]},set:function(z){this._matrix[2]=z}}),Object.defineProperty(ja.prototype,"d",{get:function(){return this._matrix[3]},set:function(z){this._matrix[3]=z}}),Object.defineProperty(ja.prototype,"e",{get:function(){return this._matrix[4]},set:function(z){this._matrix[4]=z}}),Object.defineProperty(ja.prototype,"f",{get:function(){return this._matrix[5]},set:function(z){this._matrix[5]=z}}),Object.defineProperty(ja.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ja.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ja.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ja.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ja.prototype.join=function(z){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(or).join(z)},ja.prototype.multiply=function(z){var He=z.sx*this.sx+z.shy*this.shx,St=z.sx*this.shy+z.shy*this.sy,Zt=z.shx*this.sx+z.sy*this.shx,gr=z.shx*this.shy+z.sy*this.sy,pn=z.tx*this.sx+z.ty*this.shx+this.tx,En=z.tx*this.shy+z.ty*this.sy+this.ty;return new ja(He,St,Zt,gr,pn,En)},ja.prototype.decompose=function(){var z=this.sx,He=this.shy,St=this.shx,Zt=this.sy,gr=this.tx,pn=this.ty,En=Math.sqrt(z*z+He*He),aa=(z/=En)*St+(He/=En)*Zt;St-=z*aa,Zt-=He*aa;var pa=Math.sqrt(St*St+Zt*Zt);return aa/=pa,z*(Zt/=pa)<He*(St/=pa)&&(z=-z,He=-He,aa=-aa,En=-En),{scale:new ja(En,0,0,pa,0,0),translate:new ja(1,0,0,1,gr,pn),rotate:new ja(z,He,-He,z,0,0),skew:new ja(1,0,aa,1,0,0)}},ja.prototype.toString=function(z){return this.join(" ")},ja.prototype.inversed=function(){var z=this.sx,He=this.shy,St=this.shx,Zt=this.sy,gr=this.tx,pn=this.ty,En=1/(z*Zt-He*St),aa=Zt*En,pa=-He*En,Ya=-St*En,po=z*En;return new ja(aa,pa,Ya,po,-aa*gr-Ya*pn,-pa*gr-po*pn)},ja.prototype.applyToPoint=function(z){var He=z.x*this.sx+z.y*this.shx+this.tx,St=z.x*this.shy+z.y*this.sy+this.ty;return new Df(He,St)},ja.prototype.applyToRectangle=function(z){var He=this.applyToPoint(z),St=this.applyToPoint(new Df(z.x+z.w,z.y+z.h));return new ef(He.x,He.y,St.x-He.x,St.y-He.y)},ja.prototype.clone=function(){var z=this.sx,He=this.shy,St=this.shx,Zt=this.sy,gr=this.tx,pn=this.ty;return new ja(z,He,St,Zt,gr,pn)},ae.Matrix=ja;var Lf=ae.matrixMult=function(z,He){return He.multiply(z)},kf=new ja(1,0,0,1,0,0);ae.unitMatrix=ae.identityMatrix=kf;var mA=function(z,He){if(!dl[z]){var St=(He instanceof Hd?"Sh":"P")+(Object.keys(Ea).length+1).toString(10);He.id=St,dl[z]=St,Ea[St]=He,Hs.publish("addPattern",He)}};ae.ShadingPattern=Hd,ae.TilingPattern=jd,ae.addShadingPattern=function(z,He){return Lt("addShadingPattern()"),mA(z,He),this},ae.beginTilingPattern=function(z){Lt("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){Lt("endTilingPattern()"),He.stream=jn[It].join(`
`),mA(z,He),Hs.publish("endTilingPattern",He),Zd.pop().restore()};var gA,ac=ae.__private__.newObject=function(){var z=Is();return fl(z,!0),z},Is=ae.__private__.newObjectDeferred=function(){return Ar++,Er[Ar]=function(){return $r},Ar},fl=function(z,He){return He=typeof He=="boolean"&&He,Er[z]=$r,He&&gt(z+" 0 obj"),z},Vd=ae.__private__.newAdditionalObject=function(){var z={objId:Is(),content:""};return mn.push(z),z},Wd=Is(),RA=Is(),vA=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 St=parseFloat(He[0]);He=[St,St,St,"r"]}for(var Zt="#",gr=0;gr<3;gr++)Zt+=("0"+Math.floor(255*parseFloat(He[gr])).toString(16)).slice(-2);return Zt},lu=ae.__private__.encodeColorString=function(z){var He;typeof z=="string"&&(z={ch1:z});var St=z.ch1,Zt=z.ch2,gr=z.ch3,pn=z.ch4,En=z.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof St=="string"&&St.charAt(0)!=="#"){var aa=new wp(St);if(aa.ok)St=aa.toHex();else if(!/^\d*\.?\d*$/.test(St))throw new Error('Invalid color "'+St+'" passed to jsPDF.encodeColorString.')}if(typeof St=="string"&&/^#[0-9A-Fa-f]{3}$/.test(St)&&(St="#"+St[1]+St[1]+St[2]+St[2]+St[3]+St[3]),typeof St=="string"&&/^#[0-9A-Fa-f]{6}$/.test(St)){var pa=parseInt(St.substr(1),16);St=pa>>16&255,Zt=pa>>8&255,gr=255&pa}if(Zt===void 0||pn===void 0&&St===Zt&&Zt===gr)He=typeof St=="string"?St+" "+En[0]:z.precision===2?it(St/255)+" "+En[0]:xt(St/255)+" "+En[0];else if(pn===void 0||(0,me.Z)(pn)==="object"){if(pn&&!isNaN(pn.a)&&pn.a===0)return["1.","1.","1.",En[1]].join(" ");He=typeof St=="string"?[St,Zt,gr,En[1]].join(" "):z.precision===2?[it(St/255),it(Zt/255),it(gr/255),En[1]].join(" "):[xt(St/255),xt(Zt/255),xt(gr/255),En[1]].join(" ")}else He=typeof St=="string"?[St,Zt,gr,pn,En[2]].join(" "):z.precision===2?[it(St),it(Zt),it(gr),it(pn),En[2]].join(" "):[xt(St),xt(Zt),xt(gr),xt(pn),En[2]].join(" ");return He},bA=ae.__private__.getFilters=function(){return O},QA=ae.__private__.putStream=function(z){var He=(z=z||{}).data||"",St=z.filters||bA(),Zt=z.alreadyAppliedFilters||[],gr=z.addLength1||!1,pn=He.length,En=z.objectId,aa=function(hl){return hl};if(se!==null&&En===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");se!==null&&(aa=jc.encryptor(En,0));var pa={};St===!0&&(St=["FlateEncode"]);var Ya=z.additionalKeyValues||[],po=(pa=da.API.processDataByFilters!==void 0?da.API.processDataByFilters(He,St):{data:He,reverseChain:[]}).reverseChain+(Array.isArray(Zt)?Zt.join(" "):Zt.toString());if(pa.data.length!==0&&(Ya.push({key:"Length",value:pa.data.length}),gr===!0&&Ya.push({key:"Length1",value:pn})),po.length!=0)if(po.split("/").length-1==1)Ya.push({key:"Filter",value:po});else{Ya.push({key:"Filter",value:"["+po+"]"});for(var sa=0;sa<Ya.length;sa+=1)if(Ya[sa].key==="DecodeParms"){for(var Yl=[],_c=0;_c<pa.reverseChain.split("/").length-1;_c+=1)Yl.push("null");Yl.push(Ya[sa].value),Ya[sa].value="["+Yl.join(" ")+"]"}}gt("<<");for(var yl=0;yl<Ya.length;yl++)gt("/"+Ya[yl].key+" "+Ya[yl].value);gt(">>"),pa.data.length!==0&&(gt("stream"),gt(aa(pa.data)),gt("endstream"))},Vh=ae.__private__.putPage=function(z){var He=z.number,St=z.data,Zt=z.objId,gr=z.contentsObjId;fl(Zt,!0),gt("<</Type /Page"),gt("/Parent "+z.rootDictionaryObjId+" 0 R"),gt("/Resources "+z.resourceDictionaryObjId+" 0 R"),gt("/MediaBox ["+parseFloat(or(z.mediaBox.bottomLeftX))+" "+parseFloat(or(z.mediaBox.bottomLeftY))+" "+or(z.mediaBox.topRightX)+" "+or(z.mediaBox.topRightY)+"]"),z.cropBox!==null&&gt("/CropBox ["+or(z.cropBox.bottomLeftX)+" "+or(z.cropBox.bottomLeftY)+" "+or(z.cropBox.topRightX)+" "+or(z.cropBox.topRightY)+"]"),z.bleedBox!==null&&gt("/BleedBox ["+or(z.bleedBox.bottomLeftX)+" "+or(z.bleedBox.bottomLeftY)+" "+or(z.bleedBox.topRightX)+" "+or(z.bleedBox.topRightY)+"]"),z.trimBox!==null&&gt("/TrimBox ["+or(z.trimBox.bottomLeftX)+" "+or(z.trimBox.bottomLeftY)+" "+or(z.trimBox.topRightX)+" "+or(z.trimBox.topRightY)+"]"),z.artBox!==null&&gt("/ArtBox ["+or(z.artBox.bottomLeftX)+" "+or(z.artBox.bottomLeftY)+" "+or(z.artBox.topRightX)+" "+or(z.artBox.topRightY)+"]"),typeof z.userUnit=="number"&&z.userUnit!==1&&gt("/UserUnit "+z.userUnit),Hs.publish("putPage",{objId:Zt,pageContext:Oa[He],pageNumber:He,page:St}),gt("/Contents "+gr+" 0 R"),gt(">>"),gt("endobj");var pn=St.join(`
`);return Ft===Qt&&(pn+=`
Q`),fl(gr,!0),QA({data:pn,filters:bA(),objectId:gr}),gt("endobj"),Zt},Gd=ae.__private__.putPages=function(){var z,He,St=[];for(z=1;z<=no;z++)Oa[z].objId=Is(),Oa[z].contentsObjId=Is();for(z=1;z<=no;z++)St.push(Vh({number:z,data:jn[z],objId:Oa[z].objId,contentsObjId:Oa[z].contentsObjId,mediaBox:Oa[z].mediaBox,cropBox:Oa[z].cropBox,bleedBox:Oa[z].bleedBox,trimBox:Oa[z].trimBox,artBox:Oa[z].artBox,userUnit:Oa[z].userUnit,rootDictionaryObjId:Wd,resourceDictionaryObjId:RA}));fl(Wd,!0),gt("<</Type /Pages");var Zt="/Kids [";for(He=0;He<no;He++)Zt+=St[He]+" 0 R ";gt(Zt+"]"),gt("/Count "+no),gt(">>"),gt("endobj"),Hs.publish("postPutPages")},Wh=function(z){Hs.publish("putFont",{font:z,out:gt,newObject:ac,putStream:QA}),z.isAlreadyPutted!==!0&&(z.objectNumber=ac(),gt("<<"),gt("/Type /Font"),gt("/BaseFont /"+iu(z.postScriptName)),gt("/Subtype /Type1"),typeof z.encoding=="string"&&gt("/Encoding /"+z.encoding),gt("/FirstChar 32"),gt("/LastChar 255"),gt(">>"),gt("endobj"))},Gh=function(z){z.objectNumber=ac();var He=[];He.push({key:"Type",value:"/XObject"}),He.push({key:"Subtype",value:"/Form"}),He.push({key:"BBox",value:"["+[or(z.x),or(z.y),or(z.x+z.width),or(z.y+z.height)].join(" ")+"]"}),He.push({key:"Matrix",value:"["+z.matrix.toString()+"]"});var St=z.pages[1].join(`
`);QA({data:St,additionalKeyValues:He,objectId:z.objectNumber}),gt("endobj")},z0=function(z,He){He||(He=21);var St=ac(),Zt=function(En,aa){var pa,Ya=[],po=1/(aa-1);for(pa=0;pa<1;pa+=po)Ya.push(pa);if(Ya.push(1),En[0].offset!=0){var sa={offset:0,color:En[0].color};En.unshift(sa)}if(En[En.length-1].offset!=1){var Yl={offset:1,color:En[En.length-1].color};En.push(Yl)}for(var _c="",yl=0,hl=0;hl<Ya.length;hl++){for(pa=Ya[hl];pa>En[yl+1].offset;)yl++;var Ic=En[yl].offset,uu=(pa-Ic)/(En[yl+1].offset-Ic),Tf=En[yl].color,vd=En[yl+1].color;_c+=qt(Math.round((1-uu)*Tf[0]+uu*vd[0]).toString(16))+qt(Math.round((1-uu)*Tf[1]+uu*vd[1]).toString(16))+qt(Math.round((1-uu)*Tf[2]+uu*vd[2]).toString(16))}return _c.trim()}(z.colors,He),gr=[];gr.push({key:"FunctionType",value:"0"}),gr.push({key:"Domain",value:"[0.0 1.0]"}),gr.push({key:"Size",value:"["+He+"]"}),gr.push({key:"BitsPerSample",value:"8"}),gr.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),gr.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),QA({data:Zt,additionalKeyValues:gr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:St}),gt("endobj"),z.objectNumber=ac(),gt("<< /ShadingType "+z.type),gt("/ColorSpace /DeviceRGB");var pn="/Coords ["+or(parseFloat(z.coords[0]))+" "+or(parseFloat(z.coords[1]))+" ";z.type===2?pn+=or(parseFloat(z.coords[2]))+" "+or(parseFloat(z.coords[3])):pn+=or(parseFloat(z.coords[2]))+" "+or(parseFloat(z.coords[3]))+" "+or(parseFloat(z.coords[4]))+" "+or(parseFloat(z.coords[5])),gt(pn+="]"),z.matrix&&gt("/Matrix ["+z.matrix.toString()+"]"),gt("/Function "+St+" 0 R"),gt("/Extend [true true]"),gt(">>"),gt("endobj")},Xh=function(z,He){var St=Is(),Zt=ac();He.push({resourcesOid:St,objectOid:Zt}),z.objectNumber=Zt;var gr=[];gr.push({key:"Type",value:"/Pattern"}),gr.push({key:"PatternType",value:"1"}),gr.push({key:"PaintType",value:"1"}),gr.push({key:"TilingType",value:"1"}),gr.push({key:"BBox",value:"["+z.boundingBox.map(or).join(" ")+"]"}),gr.push({key:"XStep",value:or(z.xStep)}),gr.push({key:"YStep",value:or(z.yStep)}),gr.push({key:"Resources",value:St+" 0 R"}),z.matrix&&gr.push({key:"Matrix",value:"["+z.matrix.toString()+"]"}),QA({data:z.stream,additionalKeyValues:gr,objectId:z.objectNumber}),gt("endobj")},_p=function(z){for(var He in z.objectNumber=ac(),gt("<<"),z)switch(He){case"opacity":gt("/ca "+it(z[He]));break;case"stroke-opacity":gt("/CA "+it(z[He]))}gt(">>"),gt("endobj")},Ip=function(z){fl(z.resourcesOid,!0),gt("<<"),gt("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var He in gt("/Font <<"),Po)Po.hasOwnProperty(He)&&(Re===!1||Re===!0&&Ze.hasOwnProperty(He))&&gt("/"+He+" "+Po[He].objectNumber+" 0 R");gt(">>")}(),function(){if(Object.keys(Ea).length>0){for(var He in gt("/Shading <<"),Ea)Ea.hasOwnProperty(He)&&Ea[He]instanceof Hd&&Ea[He].objectNumber>=0&&gt("/"+He+" "+Ea[He].objectNumber+" 0 R");Hs.publish("putShadingPatternDict"),gt(">>")}}(),function(He){if(Object.keys(Ea).length>0){for(var St in gt("/Pattern <<"),Ea)Ea.hasOwnProperty(St)&&Ea[St]instanceof ae.TilingPattern&&Ea[St].objectNumber>=0&&Ea[St].objectNumber<He&&gt("/"+St+" "+Ea[St].objectNumber+" 0 R");Hs.publish("putTilingPatternDict"),gt(">>")}}(z.objectOid),function(){if(Object.keys(Ja).length>0){var He;for(He in gt("/ExtGState <<"),Ja)Ja.hasOwnProperty(He)&&Ja[He].objectNumber>=0&&gt("/"+He+" "+Ja[He].objectNumber+" 0 R");Hs.publish("putGStateDict"),gt(">>")}}(),function(){for(var He in gt("/XObject <<"),Hc)Hc.hasOwnProperty(He)&&Hc[He].objectNumber>=0&&gt("/"+He+" "+Hc[He].objectNumber+" 0 R");Hs.publish("putXobjectDict"),gt(">>")}(),gt(">>"),gt("endobj")},fm=function(z){Ko[z.fontName]=Ko[z.fontName]||{},Ko[z.fontName][z.fontStyle]=z.id},hm=function(z,He,St,Zt,gr){var pn={id:"F"+(Object.keys(Po).length+1).toString(10),postScriptName:z,fontName:He,fontStyle:St,encoding:Zt,isStandardFont:gr||!1,metadata:{}};return Hs.publish("addFont",{font:pn,instance:this}),Po[pn.id]=pn,fm(pn),pn.id},eA=ae.__private__.pdfEscape=ae.pdfEscape=function(z,He){return function(St,Zt){var gr,pn,En,aa,pa,Ya,po,sa,Yl;if(En=(Zt=Zt||{}).sourceEncoding||"Unicode",pa=Zt.outputEncoding,(Zt.autoencode||pa)&&Po[ha].metadata&&Po[ha].metadata[En]&&Po[ha].metadata[En].encoding&&(aa=Po[ha].metadata[En].encoding,!pa&&Po[ha].encoding&&(pa=Po[ha].encoding),!pa&&aa.codePages&&(pa=aa.codePages[0]),typeof pa=="string"&&(pa=aa[pa]),pa)){for(po=!1,Ya=[],gr=0,pn=St.length;gr<pn;gr++)(sa=pa[St.charCodeAt(gr)])?Ya.push(String.fromCharCode(sa)):Ya.push(St[gr]),Ya[gr].charCodeAt(0)>>8&&(po=!0);St=Ya.join("")}for(gr=St.length;po===void 0&&gr!==0;)St.charCodeAt(gr-1)>>8&&(po=!0),gr--;if(!po)return St;for(Ya=Zt.noBOM?[]:[254,255],gr=0,pn=St.length;gr<pn;gr++){if((Yl=(sa=St.charCodeAt(gr))>>8)>>8)throw new Error("Character at position "+gr+" of string '"+St+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ya.push(Yl),Ya.push(sa-(Yl<<8))}return String.fromCharCode.apply(void 0,Ya)}(z,He).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Jh=ae.__private__.beginPage=function(z){jn[++no]=[],Oa[no]={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])}},$0(no),Sa(jn[It])},Fp=function(z,He){var St,Zt,gr;switch(a=He||a,typeof z=="string"&&(St=st(z.toLowerCase()),Array.isArray(St)&&(Zt=St[0],gr=St[1])),Array.isArray(z)&&(Zt=z[0]*Eo,gr=z[1]*Eo),isNaN(Zt)&&(Zt=u[0],gr=u[1]),(Zt>14400||gr>14400)&&(Os.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),gr=Math.min(14400,gr)),u=[Zt,gr],a.substr(0,1)){case"l":gr>Zt&&(u=[gr,Zt]);break;case"p":Zt>gr&&(u=[gr,Zt])}Jh(u),ho(J0),gt(Y0),r0!==0&&gt(r0+" J"),Op!==0&&gt(Op+" j"),Hs.publish("addPage",{pageNumber:no})},Mp=function(z){z>0&&z<=no&&(jn.splice(z,1),Oa.splice(z,1),no--,It>no&&(It=no),this.setPage(It))},$0=function(z){z>0&&z<=no&&(It=z)},Z0=ae.__private__.getNumberOfPages=ae.getNumberOfPages=function(){return jn.length-1},Lp=function(z,He,St){var Zt,gr=void 0;return St=St||{},z=z!==void 0?z:Po[ha].fontName,He=He!==void 0?He:Po[ha].fontStyle,Zt=z.toLowerCase(),Ko[Zt]!==void 0&&Ko[Zt][He]!==void 0?gr=Ko[Zt][He]:Ko[z]!==void 0&&Ko[z][He]!==void 0?gr=Ko[z][He]:St.disableWarning===!1&&Os.warn("Unable to look up font label for font '"+z+"', '"+He+"'. Refer to getFontList() for available fonts."),gr||St.noFallback||(gr=Ko.times[He])==null&&(gr=Ko.times.normal),gr},ku=ae.__private__.putInfo=function(){var z=ac(),He=function(Zt){return Zt};for(var St in se!==null&&(He=jc.encryptor(z,0)),gt("<<"),gt("/Producer ("+eA(He("jsPDF "+da.version))+")"),Qo)Qo.hasOwnProperty(St)&&Qo[St]&&gt("/"+St.substr(0,1).toUpperCase()+St.substr(1)+" ("+eA(He(Qo[St]))+")");gt("/CreationDate ("+eA(He(Tr))+")"),gt(">>"),gt("endobj")},Xd=ae.__private__.putCatalog=function(z){var He=(z=z||{}).rootDictionaryObjId||Wd;switch(ac(),gt("<<"),gt("/Type /Catalog"),gt("/Pages "+He+" 0 R"),Da||(Da="fullwidth"),Da){case"fullwidth":gt("/OpenAction [3 0 R /FitH null]");break;case"fullheight":gt("/OpenAction [3 0 R /FitV null]");break;case"fullpage":gt("/OpenAction [3 0 R /Fit]");break;case"original":gt("/OpenAction [3 0 R /XYZ null null 1]");break;default:var St=""+Da;St.substr(St.length-1)==="%"&&(Da=parseInt(Da)/100),typeof Da=="number"&&gt("/OpenAction [3 0 R /XYZ null null "+it(Da)+"]")}switch(as||(as="continuous"),as){case"continuous":gt("/PageLayout /OneColumn");break;case"single":gt("/PageLayout /SinglePage");break;case"two":case"twoleft":gt("/PageLayout /TwoColumnLeft");break;case"tworight":gt("/PageLayout /TwoColumnRight")}La&&gt("/PageMode /"+La),Hs.publish("putCatalog"),gt(">>"),gt("endobj")},V0=ae.__private__.putTrailer=function(){gt("trailer"),gt("<<"),gt("/Size "+(Ar+1)),gt("/Root "+Ar+" 0 R"),gt("/Info "+(Ar-1)+" 0 R"),se!==null&&gt("/Encrypt "+jc.oid+" 0 R"),gt("/ID [ <"+Zr+"> <"+Zr+"> ]"),gt(">>")},oc=ae.__private__.putHeader=function(){gt("%PDF-"+mt),gt("%\xBA\xDF\xAC\xE0")},kp=ae.__private__.putXRef=function(){var z="0000000000";gt("xref"),gt("0 "+(Ar+1)),gt("0000000000 65535 f ");for(var He=1;He<=Ar;He++)typeof Er[He]=="function"?gt((z+Er[He]()).slice(-10)+" 00000 n "):Er[He]!==void 0?gt((z+Er[He]).slice(-10)+" 00000 n "):gt("0000000000 00000 n ")},Jd=ae.__private__.buildDocument=function(){var z;Ar=0,$r=0,Kr=[],Er=[],mn=[],Wd=Is(),RA=Is(),Sa(Kr),Hs.publish("buildDocument"),oc(),Gd(),function(){Hs.publish("putAdditionalObjects");for(var St=0;St<mn.length;St++){var Zt=mn[St];fl(Zt.objId,!0),gt(Zt.content),gt("endobj")}Hs.publish("postPutAdditionalObjects")}(),z=[],function(){for(var St in Po)Po.hasOwnProperty(St)&&(Re===!1||Re===!0&&Ze.hasOwnProperty(St))&&Wh(Po[St])}(),function(){var St;for(St in Ja)Ja.hasOwnProperty(St)&&_p(Ja[St])}(),function(){for(var St in Hc)Hc.hasOwnProperty(St)&&Gh(Hc[St])}(),function(St){var Zt;for(Zt in Ea)Ea.hasOwnProperty(Zt)&&(Ea[Zt]instanceof Hd?z0(Ea[Zt]):Ea[Zt]instanceof jd&&Xh(Ea[Zt],St))}(z),Hs.publish("putResources"),z.forEach(Ip),Ip({resourcesOid:RA,objectOid:Number.MAX_SAFE_INTEGER}),Hs.publish("postPutResources"),se!==null&&(jc.oid=ac(),gt("<<"),gt("/Filter /Standard"),gt("/V "+jc.v),gt("/R "+jc.r),gt("/U <"+jc.toHexString(jc.U)+">"),gt("/O <"+jc.toHexString(jc.O)+">"),gt("/P "+jc.P),gt(">>"),gt("endobj")),ku(),Xd();var He=$r;return kp(),V0(),gt("startxref"),gt(""+He),gt("%%EOF"),Sa(jn[It]),Kr.join(`
`)},Yh=ae.__private__.getBlob=function(z){return new Blob([No(z)],{type:"application/pdf"})},pm=ae.output=ae.__private__.output=(gA=function(z,He){switch(typeof(He=He||{})=="string"?He={filename:He}:He.filename=He.filename||"generated.pdf",z){case void 0:return Jd();case"save":ae.save(He.filename);break;case"arraybuffer":return No(Jd());case"blob":return Yh(Jd());case"bloburi":case"bloburl":if(Wa.URL!==void 0&&typeof Wa.URL.createObjectURL=="function")return Wa.URL&&Wa.URL.createObjectURL(Yh(Jd()))||void 0;Os.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var St="",Zt=Jd();try{St=Ks(Zt)}catch(_c){St=Ks(unescape(encodeURIComponent(Zt)))}return"data:application/pdf;filename="+He.filename+";base64,"+St;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Wa)==="[object Window]"){var gr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",pn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';He.pdfObjectUrl&&(gr=He.pdfObjectUrl,pn="");var En='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+gr+'"'+pn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(He)+");<\/script></body></html>",aa=Wa.open();return aa!==null&&aa.document.write(En),aa}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Wa)==="[object Window]"){var pa='<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>',Ya=Wa.open();if(Ya!==null){Ya.document.write(pa);var po=this;Ya.document.documentElement.querySelector("#pdfViewer").onload=function(){Ya.document.title=He.filename,Ya.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(po.output("bloburl"))}}return Ya}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Wa)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var sa='<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>',Yl=Wa.open();if(Yl!==null&&(Yl.document.write(sa),Yl.document.title=He.filename),Yl||typeof safari=="undefined")return Yl;break;case"datauri":case"dataurl":return Wa.document.location.href=this.output("datauristring",He);default:return null}},gA.foo=function(){try{return gA.apply(this,arguments)}catch(St){var z=St.stack||"";~z.indexOf(" at ")&&(z=z.split(" at ")[1]);var He="Error in function "+z.split(`
`)[0].split("<")[0]+": "+St.message;if(!Wa.console)throw new Error(He);Wa.console.error(He,St),Wa.alert&&alert(He)}},gA.foo.bar=gA,gA.foo),Du=function(z){return Array.isArray(Zh)===!0&&Zh.indexOf(z)>-1};switch(l){case"pt":Eo=1;break;case"mm":Eo=72/25.4;break;case"cm":Eo=72/2.54;break;case"in":Eo=72;break;case"px":Eo=Du("px_scaling")==1?.75:96/72;break;case"pc":case"em":Eo=12;break;case"ex":Eo=6;break;default:if(typeof l!="number")throw new Error("Invalid unit: "+l);Eo=l}var jc=null;Sn(),Mr();var Yd=ae.__private__.getPageInfo=ae.getPageInfo=function(z){if(isNaN(z)||z%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Oa[z].objId,pageNumber:z,pageContext:Oa[z]}},mm=ae.__private__.getPageInfoByObjId=function(z){if(isNaN(z)||z%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var He in Oa)if(Oa[He].objId===z)break;return Yd(He)},W0=ae.__private__.getCurrentPageInfo=ae.getCurrentPageInfo=function(){return{objId:Oa[It].objId,pageNumber:It,pageContext:Oa[It]}};ae.addPage=function(){return Fp.apply(this,arguments),this},ae.setPage=function(){return $0.apply(this,arguments),Sa.call(this,jn[It]),this},ae.insertPage=function(z){return this.addPage(),this.movePage(It,z),this},ae.movePage=function(z,He){var St,Zt;if(z>He){St=jn[z],Zt=Oa[z];for(var gr=z;gr>He;gr--)jn[gr]=jn[gr-1],Oa[gr]=Oa[gr-1];jn[He]=St,Oa[He]=Zt,this.setPage(He)}else if(z<He){St=jn[z],Zt=Oa[z];for(var pn=z;pn<He;pn++)jn[pn]=jn[pn+1],Oa[pn]=Oa[pn+1];jn[He]=St,Oa[He]=Zt,this.setPage(He)}return this},ae.deletePage=function(){return Mp.apply(this,arguments),this},ae.__private__.text=ae.text=function(z,He,St,Zt,gr){var pn,En,aa,pa,Ya,po,sa,Yl,_c,yl=(Zt=Zt||{}).scope||this;if(typeof z=="number"&&typeof He=="number"&&(typeof St=="string"||Array.isArray(St))){var hl=St;St=He,He=z,z=hl}if(arguments[3]instanceof ja==0?(aa=arguments[4],pa=arguments[5],(0,me.Z)(sa=arguments[3])==="object"&&sa!==null||(typeof aa=="string"&&(pa=aa,aa=null),typeof sa=="string"&&(pa=sa,sa=null),typeof sa=="number"&&(aa=sa,sa=null),Zt={flags:sa,angle:aa,align:pa})):(Lt("The transform parameter of text() with a Matrix value"),_c=gr),isNaN(He)||isNaN(St)||z==null)throw new Error("Invalid arguments passed to jsPDF.text");if(z.length===0)return yl;var Ic,uu="",Tf=typeof Zt.lineHeightFactor=="number"?Zt.lineHeightFactor:e0,vd=yl.internal.scaleFactor;function vo(qs){return qs=qs.split(" ").join(Array(Zt.TabLen||9).join(" ")),eA(qs,sa)}function bd(qs){for(var pl,gc=qs.concat(),zc=[],Qf=gc.length;Qf--;)typeof(pl=gc.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 yd(qs,pl){var gc;if(typeof qs=="string")gc=pl(qs)[0];else if(Array.isArray(qs)){for(var zc,Qf,Rp=qs.concat(),$A=[],Bm=Rp.length;Bm--;)typeof(zc=Rp.shift())=="string"?$A.push(pl(zc)[0]):Array.isArray(zc)&&typeof zc[0]=="string"&&(Qf=pl(zc[0],zc[1],zc[2]),$A.push([Qf[0],Qf[1],Qf[2]]));gc=$A}return gc}var rf=!1,KA=!0;if(typeof z=="string")rf=!0;else if(Array.isArray(z)){var Uf=z.concat();En=[];for(var hh,mc=Uf.length;mc--;)(typeof(hh=Uf.shift())!="string"||Array.isArray(hh)&&typeof hh[0]!="string")&&(KA=!1);rf=KA}if(rf===!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 i0=Rn/yl.internal.scaleFactor,ph=i0*(Tf-1);switch(Zt.baseline){case"bottom":St-=ph;break;case"top":St+=i0-ph;break;case"hanging":St+=i0-2*ph;break;case"middle":St+=i0/2-ph}if((po=Zt.maxWidth||0)>0&&(typeof z=="string"?z=yl.splitTextToSize(z,po):Object.prototype.toString.call(z)==="[object Array]"&&(z=z.reduce(function(qs,pl){return qs.concat(yl.splitTextToSize(pl,po))},[]))),pn={text:z,x:He,y:St,options:Zt,mutex:{pdfEscape:eA,activeFontKey:ha,fonts:Po,activeFontSize:Rn}},Hs.publish("preProcessText",pn),z=pn.text,aa=(Zt=pn.options).angle,_c instanceof ja==0&&aa&&typeof aa=="number"){aa*=Math.PI/180,Zt.rotationDirection===0&&(aa=-aa),Ft===Qt&&(aa=-aa);var Tp=Math.cos(aa),io=Math.sin(aa);_c=new ja(Tp,io,-io,Tp,0,0)}else aa&&aa instanceof ja&&(_c=aa);Ft!==Qt||_c||(_c=kf),(Ya=Zt.charSpace||qd)!==void 0&&(uu+=or(Wt(Ya))+` Tc
`,this.setCharSpace(this.getCharSpace()||0)),(Yl=Zt.horizontalScale)!==void 0&&(uu+=or(100*Yl)+` Tz
`),Zt.lang;var Fc=-1,yA=Zt.renderingMode!==void 0?Zt.renderingMode:Zt.stroke,nf=yl.internal.getCurrentPageInfo().pageContext;switch(yA){case 0:case!1:case"fill":Fc=0;break;case 1:case!0:case"stroke":Fc=1;break;case 2:case"fillThenStroke":Fc=2;break;case 3:case"invisible":Fc=3;break;case 4:case"fillAndAddForClipping":Fc=4;break;case 5:case"strokeAndAddPathForClipping":Fc=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Fc=6;break;case 7:case"addToPathForClipping":Fc=7}var wm=nf.usedRenderingMode!==void 0?nf.usedRenderingMode:-1;Fc!==-1?uu+=Fc+` Tr
`:wm!==-1&&(uu+=`0 Tr
`),Fc!==-1&&(nf.usedRenderingMode=Fc),pa=Zt.align||"left";var ms,a0=Rn*Tf,Tl=yl.internal.pageSize.getWidth(),xm=Po[ha];Ya=Zt.charSpace||qd,po=Zt.maxWidth||0,sa=Object.assign({autoencode:!0,noBOM:!0},Zt.flags);var mh=[],o0=function(qs){return yl.getStringUnitWidth(qs,{font:xm,charSpace:Ya,fontSize:Rn,doKerning:!1})*Rn/vd};if(Object.prototype.toString.call(z)==="[object Array]"){var Ou;En=bd(z),pa!=="left"&&(ms=En.map(o0));var wA,s0=0;if(pa==="right"){He-=ms[0],z=[],mc=En.length;for(var gh=0;gh<mc;gh++)gh===0?(wA=md(He),Ou=gd(St)):(wA=Wt(s0-ms[gh]),Ou=-a0),z.push([En[gh],wA,Ou]),s0=ms[gh]}else if(pa==="center"){He-=ms[0]/2,z=[],mc=En.length;for(var af=0;af<mc;af++)af===0?(wA=md(He),Ou=gd(St)):(wA=Wt((s0-ms[af])/2),Ou=-a0),z.push([En[af],wA,Ou]),s0=ms[af]}else if(pa==="left"){z=[],mc=En.length;for(var of=0;of<mc;of++)z.push(En[of])}else if(pa==="justify"&&xm.encoding==="Identity-H"){z=[],mc=En.length,po=po!==0?po:Tl;for(var tp=0,ql=0;ql<mc;ql++)if(Ou=ql===0?gd(St):-a0,wA=ql===0?md(He):tp,ql<mc-1){var Cm=Wt((po-ms[ql])/(En[ql].split(" ").length-1)),HA=En[ql].split(" ");z.push([HA[0]+" ",wA,Ou]),tp=0;for(var jA=1;jA<HA.length;jA++){var l0=(o0(HA[jA-1]+" "+HA[jA])-o0(HA[jA]))*vd+Cm;jA==HA.length-1?z.push([HA[jA],l0,0]):z.push([HA[jA]+" ",l0,0]),tp-=l0}}else z.push([En[ql],wA,Ou]);z.push(["",tp,0])}else{if(pa!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(z=[],mc=En.length,po=po!==0?po:Tl,ql=0;ql<mc;ql++){Ou=ql===0?gd(St):-a0,wA=ql===0?md(He):0;var rp=En[ql].split(" ").length-1,Up=rp>0?(po-ms[ql])/rp:0;ql<mc-1?mh.push(or(Wt(Up))):mh.push(0),z.push([En[ql],wA,Ou])}}}(typeof Zt.R2L=="boolean"?Zt.R2L:xa)===!0&&(z=yd(z,function(qs,pl,gc){return[qs.split("").reverse().join(""),pl,gc]})),pn={text:z,x:He,y:St,options:Zt,mutex:{pdfEscape:eA,activeFontKey:ha,fonts:Po,activeFontSize:Rn}},Hs.publish("postProcessText",pn),z=pn.text,Ic=pn.mutex.isHex||!1;var np=Po[ha].encoding;np!=="WinAnsiEncoding"&&np!=="StandardEncoding"||(z=yd(z,function(qs,pl,gc){return[vo(qs),pl,gc]})),En=bd(z),z=[];for(var Rf,vh,gs,bh=Array.isArray(En[0])?1:0,yh="",c0=function(qs,pl,gc){var zc="";return gc instanceof ja?(gc=typeof Zt.angle=="number"?Lf(gc,new ja(1,0,0,1,qs,pl)):Lf(new ja(1,0,0,1,qs,pl),gc),Ft===Qt&&(gc=Lf(new ja(1,0,0,-1,0,0),gc)),zc=gc.join(" ")+` Tm
`):zc=or(qs)+" "+or(pl)+` Td
`,zc},zA=0;zA<En.length;zA++){switch(yh="",bh){case 1:gs=(Ic?"<":"(")+En[zA][0]+(Ic?">":")"),Rf=parseFloat(En[zA][1]),vh=parseFloat(En[zA][2]);break;case 0:gs=(Ic?"<":"(")+En[zA]+(Ic?">":")"),Rf=md(He),vh=gd(St)}mh!==void 0&&mh[zA]!==void 0&&(yh=mh[zA]+` Tw
`),zA===0?z.push(yh+c0(Rf,vh,_c)+gs):bh===0?z.push(yh+gs):bh===1&&z.push(yh+c0(Rf,vh,_c)+gs)}z=bh===0?z.join(` Tj
T* `):z.join(` Tj
`),z+=` Tj
`;var sf=`BT
/`;return sf+=ha+" "+Rn+` Tf
`,sf+=or(Rn*Tf)+` TL
`,sf+=t0+`
`,sf+=uu,sf+=z,gt(sf+="ET"),Ze[ha]=!0,yl};var tg=ae.__private__.clip=ae.clip=function(z){return gt(z==="evenodd"?"W*":"W"),this};ae.clipEvenOdd=function(){return tg("evenodd")},ae.__private__.discardPath=ae.discardPath=function(){return gt("n"),this};var hd=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 hd(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 gt("h"),this};ae.stroke=function(){return gt("S"),this},ae.fill=function(z){return Qu("f",z),this},ae.fillEvenOdd=function(z){return Qu("f*",z),this},ae.fillStroke=function(z){return Qu("B",z),this},ae.fillStrokeEvenOdd=function(z){return Qu("B*",z),this};var Qu=function(z,He){(0,me.Z)(He)==="object"?Pl(He,z):gt(z)},ps=function(z){z===null||Ft===Qt&&z===void 0||(z=gm(z),gt(z))};function cu(z,He,St,Zt,gr){var pn=new jd(He||this.boundingBox,St||this.xStep,Zt||this.yStep,this.gState,gr||this.matrix);pn.stream=this.stream;var En=z+"$$"+this.cloneIndex+++"$$";return mA(En,pn),pn}var Pl=function(z,He){var St=dl[z.key],Zt=Ea[St];if(Zt instanceof Hd)gt("q"),gt(G0(He)),Zt.gState&&ae.setGState(Zt.gState),gt(z.matrix.toString()+" cm"),gt("/"+St+" sh"),gt("Q");else if(Zt instanceof jd){var gr=new ja(1,0,0,-1,0,fh());z.matrix&&(gr=gr.multiply(z.matrix||kf),St=cu.call(Zt,z.key,z.boundingBox,z.xStep,z.yStep,gr).id),gt("q"),gt("/Pattern cs"),gt("/"+St+" scn"),Zt.gState&&ae.setGState(Zt.gState),gt(He),gt("Q")}},G0=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"}},X0=ae.moveTo=function(z,He){return gt(or(Wt(z))+" "+or(jt(He))+" m"),this},qh=ae.lineTo=function(z,He){return gt(or(Wt(z))+" "+or(jt(He))+" l"),this},pd=ae.curveTo=function(z,He,St,Zt,gr,pn){return gt([or(Wt(z)),or(jt(He)),or(Wt(St)),or(jt(Zt)),or(Wt(gr)),or(jt(pn)),"c"].join(" ")),this};ae.__private__.line=ae.line=function(z,He,St,Zt,gr){if(isNaN(z)||isNaN(He)||isNaN(St)||isNaN(Zt)||!hd(gr))throw new Error("Invalid arguments passed to jsPDF.line");return Ft===Gt?this.lines([[St-z,Zt-He]],z,He,[1,1],gr||"S"):this.lines([[St-z,Zt-He]],z,He,[1,1]).stroke()},ae.__private__.lines=ae.lines=function(z,He,St,Zt,gr,pn){var En,aa,pa,Ya,po,sa,Yl,_c,yl,hl,Ic,uu;if(typeof z=="number"&&(uu=St,St=He,He=z,z=uu),Zt=Zt||[1,1],pn=pn||!1,isNaN(He)||isNaN(St)||!Array.isArray(z)||!Array.isArray(Zt)||!hd(gr)||typeof pn!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(X0(He,St),En=Zt[0],aa=Zt[1],Ya=z.length,hl=He,Ic=St,pa=0;pa<Ya;pa++)(po=z[pa]).length===2?(hl=po[0]*En+hl,Ic=po[1]*aa+Ic,qh(hl,Ic)):(sa=po[0]*En+hl,Yl=po[1]*aa+Ic,_c=po[2]*En+hl,yl=po[3]*aa+Ic,hl=po[4]*En+hl,Ic=po[5]*aa+Ic,pd(sa,Yl,_c,yl,hl,Ic));return pn&&vm(),ps(gr),this},ae.path=function(z){for(var He=0;He<z.length;He++){var St=z[He],Zt=St.c;switch(St.op){case"m":X0(Zt[0],Zt[1]);break;case"l":qh(Zt[0],Zt[1]);break;case"c":pd.apply(this,Zt);break;case"h":vm()}}return this},ae.__private__.rect=ae.rect=function(z,He,St,Zt,gr){if(isNaN(z)||isNaN(He)||isNaN(St)||isNaN(Zt)||!hd(gr))throw new Error("Invalid arguments passed to jsPDF.rect");return Ft===Gt&&(Zt=-Zt),gt([or(Wt(z)),or(jt(He)),or(Wt(St)),or(Wt(Zt)),"re"].join(" ")),ps(gr),this},ae.__private__.triangle=ae.triangle=function(z,He,St,Zt,gr,pn,En){if(isNaN(z)||isNaN(He)||isNaN(St)||isNaN(Zt)||isNaN(gr)||isNaN(pn)||!hd(En))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[St-z,Zt-He],[gr-St,pn-Zt],[z-gr,He-pn]],z,He,[1,1],En,!0),this},ae.__private__.roundedRect=ae.roundedRect=function(z,He,St,Zt,gr,pn,En){if(isNaN(z)||isNaN(He)||isNaN(St)||isNaN(Zt)||isNaN(gr)||isNaN(pn)||!hd(En))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var aa=4/3*(Math.SQRT2-1);return gr=Math.min(gr,.5*St),pn=Math.min(pn,.5*Zt),this.lines([[St-2*gr,0],[gr*aa,0,gr,pn-pn*aa,gr,pn],[0,Zt-2*pn],[0,pn*aa,-gr*aa,pn,-gr,pn],[2*gr-St,0],[-gr*aa,0,-gr,-pn*aa,-gr,-pn],[0,2*pn-Zt],[0,-pn*aa,gr*aa,-pn,gr,-pn]],z+gr,He,[1,1],En,!0),this},ae.__private__.ellipse=ae.ellipse=function(z,He,St,Zt,gr){if(isNaN(z)||isNaN(He)||isNaN(St)||isNaN(Zt)||!hd(gr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var pn=4/3*(Math.SQRT2-1)*St,En=4/3*(Math.SQRT2-1)*Zt;return X0(z+St,He),pd(z+St,He-En,z+pn,He-Zt,z,He-Zt),pd(z-pn,He-Zt,z-St,He-En,z-St,He),pd(z-St,He+En,z-pn,He+Zt,z,He+Zt),pd(z+pn,He+Zt,z+St,He+En,z+St,He),ps(gr),this},ae.__private__.circle=ae.circle=function(z,He,St,Zt){if(isNaN(z)||isNaN(He)||isNaN(St)||!hd(Zt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(z,He,St,St,Zt)},ae.setFont=function(z,He,St){return St&&(He=Wr(He,St)),ha=Lp(z,He,{disableWarning:!1}),this};var rg=ae.__private__.getFont=ae.getFont=function(){return Po[Lp.apply(ae,arguments)]};ae.__private__.getFontList=ae.getFontList=function(){var z,He,St={};for(z in Ko)if(Ko.hasOwnProperty(z))for(He in St[z]=[],Ko[z])Ko[z].hasOwnProperty(He)&&St[z].push(He);return St},ae.addFont=function(z,He,St,Zt,gr){var pn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&pn.indexOf(arguments[3])!==-1?gr=arguments[3]:arguments[3]&&pn.indexOf(arguments[3])==-1&&(St=Wr(St,Zt)),hm.call(this,z,He,St,gr=gr||"Identity-H")};var e0,J0=n.lineWidth||.200025,ng=ae.__private__.getLineWidth=ae.getLineWidth=function(){return J0},ho=ae.__private__.setLineWidth=ae.setLineWidth=function(z){return J0=z,gt(or(Wt(z))+" w"),this};ae.__private__.setLineDash=da.API.setLineDash=da.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(St){return or(Wt(St))}).join(" "),He=or(Wt(He)),gt("["+z+"] "+He+" d"),this};var ig=ae.__private__.getLineHeight=ae.getLineHeight=function(){return Rn*e0};ae.__private__.getLineHeight=ae.getLineHeight=function(){return Rn*e0};var ag=ae.__private__.setLineHeightFactor=ae.setLineHeightFactor=function(z){return typeof(z=z||1.15)=="number"&&(e0=z),this},og=ae.__private__.getLineHeightFactor=ae.getLineHeightFactor=function(){return e0};ag(n.lineHeight);var md=ae.__private__.getHorizontalCoordinate=function(z){return Wt(z)},gd=ae.__private__.getVerticalCoordinate=function(z){return Ft===Qt?z:Oa[It].mediaBox.topRightY-Oa[It].mediaBox.bottomLeftY-Wt(z)},sg=ae.__private__.getHorizontalCoordinateString=ae.getHorizontalCoordinateString=function(z){return or(md(z))},Dp=ae.__private__.getVerticalCoordinateString=ae.getVerticalCoordinateString=function(z){return or(gd(z))},Y0=n.strokeColor||"0 G";ae.__private__.getStrokeColor=ae.getDrawColor=function(){return vA(Y0)},ae.__private__.setStrokeColor=ae.setDrawColor=function(z,He,St,Zt){return Y0=lu({ch1:z,ch2:He,ch3:St,ch4:Zt,pdfColorType:"draw",precision:2}),gt(Y0),this};var dh=n.fillColor||"0 g";ae.__private__.getFillColor=ae.getFillColor=function(){return vA(dh)},ae.__private__.setFillColor=ae.setFillColor=function(z,He,St,Zt){return dh=lu({ch1:z,ch2:He,ch3:St,ch4:Zt,pdfColorType:"fill",precision:2}),gt(dh),this};var t0=n.textColor||"0 g",lg=ae.__private__.getTextColor=ae.getTextColor=function(){return vA(t0)};ae.__private__.setTextColor=ae.setTextColor=function(z,He,St,Zt){return t0=lu({ch1:z,ch2:He,ch3:St,ch4:Zt,pdfColorType:"text",precision:3}),this};var qd=n.charSpace,bm=ae.__private__.getCharSpace=ae.getCharSpace=function(){return parseFloat(qd||0)};ae.__private__.setCharSpace=ae.setCharSpace=function(z){if(isNaN(z))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return qd=z,this};var r0=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 r0=He,gt(He+" J"),this};var Op=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 Op=He,gt(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 gt(or(Wt(z))+" M"),this},ae.GState=Kh,ae.setGState=function(z){(z=typeof z=="string"?Ja[fo[z]]:ym(null,z)).equals(al)||(gt("/"+z.id+" gs"),al=z)};var ym=function(z,He){if(!z||!fo[z]){var St=!1;for(var Zt in Ja)if(Ja.hasOwnProperty(Zt)&&Ja[Zt].equals(He)){St=!0;break}if(St)He=Ja[Zt];else{var gr="GS"+(Object.keys(Ja).length+1).toString(10);Ja[gr]=He,He.id=gr}return z&&(fo[z]=He.id),Hs.publish("addGState",He),He}};ae.addGState=function(z,He){return ym(z,He),this},ae.saveGraphicsState=function(){return gt("q"),Nl.push({key:ha,size:Rn,color:t0}),this},ae.restoreGraphicsState=function(){gt("Q");var z=Nl.pop();return ha=z.key,Rn=z.size,t0=z.color,al=null,this},ae.setCurrentTransformationMatrix=function(z){return gt(z.toString()+" cm"),this},ae.comment=function(z){return gt("#"+z),this};var Df=function(z,He){var St=z||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return St},set:function(pn){isNaN(pn)||(St=parseFloat(pn))}});var Zt=He||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Zt},set:function(pn){isNaN(pn)||(Zt=parseFloat(pn))}});var gr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return gr},set:function(pn){gr=pn.toString()}}),this},ef=function(z,He,St,Zt){Df.call(this,z,He),this.type="rect";var gr=St||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return gr},set:function(En){isNaN(En)||(gr=parseFloat(En))}});var pn=Zt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return pn},set:function(En){isNaN(En)||(pn=parseFloat(En))}}),this},Ku=function(){this.page=no,this.currentPage=It,this.pages=jn.slice(0),this.pagesContext=Oa.slice(0),this.x=Ca,this.y=pc,this.matrix=ws,this.width=q0(It),this.height=Np(It),this.outputDestination=Ci,this.id="",this.objectNumber=-1};Ku.prototype.restore=function(){no=this.page,It=this.currentPage,Oa=this.pagesContext,jn=this.pages,Ca=this.x,pc=this.y,ws=this.matrix,ep(It,this.width),tf(It,this.height),Ci=this.outputDestination};var n0=function(z,He,St,Zt,gr){Zd.push(new Ku),no=It=0,jn=[],Ca=z,pc=He,ws=gr,Jh([St,Zt])};for(var Of in ae.beginFormObject=function(z,He,St,Zt,gr){return n0(z,He,St,Zt,gr),this},ae.endFormObject=function(z){return function(He){if(Mf[He])Zd.pop().restore();else{var St=new Ku,Zt="Xo"+(Object.keys(Hc).length+1).toString(10);St.id=Zt,Mf[He]=Zt,Hc[Zt]=St,Hs.publish("addFormObject",St),Zd.pop().restore()}}(z),this},ae.doFormObject=function(z,He){var St=Hc[Mf[z]];return gt("q"),gt(He.toString()+" cm"),gt("/"+St.id+" Do"),gt("Q"),this},ae.getFormObject=function(z){var He=Hc[Mf[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?(ud(Yh(Jd()),z),typeof ud.unload=="function"&&Wa.setTimeout&&setTimeout(ud.unload,911),this):new Promise(function(St,Zt){try{var gr=ud(Yh(Jd()),z);typeof ud.unload=="function"&&Wa.setTimeout&&setTimeout(ud.unload,911),St(gr)}catch(pn){Zt(pn.message)}})},da.API)da.API.hasOwnProperty(Of)&&(Of==="events"&&da.API.events.length?function(z,He){var St,Zt,gr;for(gr=He.length-1;gr!==-1;gr--)St=He[gr][0],Zt=He[gr][1],z.subscribe.apply(z,[St].concat(typeof Zt=="function"?[Zt]:Zt))}(Hs,da.API.events):ae[Of]=da.API[Of]);function q0(z){return Oa[z].mediaBox.topRightX-Oa[z].mediaBox.bottomLeftX}function ep(z,He){Oa[z].mediaBox.topRightX=He+Oa[z].mediaBox.bottomLeftX}function Np(z){return Oa[z].mediaBox.topRightY-Oa[z].mediaBox.bottomLeftY}function tf(z,He){Oa[z].mediaBox.topRightY=He+Oa[z].mediaBox.bottomLeftY}var Nf=ae.getPageWidth=function(z){return q0(z=z||It)/Eo},Pf=ae.setPageWidth=function(z,He){ep(z,He*Eo)},fh=ae.getPageHeight=function(z){return Np(z=z||It)/Eo},Pp=ae.setPageHeight=function(z,He){tf(z,He*Eo)};return ae.internal={pdfEscape:eA,getStyle:gm,getFont:rg,getFontSize:Pi,getCharSpace:bm,getTextColor:lg,getLineHeight:ig,getLineHeightFactor:og,getLineWidth:ng,write:ki,getHorizontalCoordinate:md,getVerticalCoordinate:gd,getCoordinateString:sg,getVerticalCoordinateString:Dp,collections:{},newObject:ac,newAdditionalObject:Vd,newObjectDeferred:Is,newObjectDeferredBegin:fl,getFilters:bA,putStream:QA,events:Hs,scaleFactor:Eo,pageSize:{getWidth:function(){return Nf(It)},setWidth:function(z){Pf(It,z)},getHeight:function(){return fh(It)},setHeight:function(z){Pp(It,z)}},encryptionOptions:se,encryption:jc,getEncryptor:function(z){return se!==null?jc.encryptor(z,0):function(He){return He}},output:pm,getNumberOfPages:Z0,get pages(){return jn},out:gt,f2:it,f3:xt,getPageInfo:Yd,getPageInfoByObjId:mm,getCurrentPageInfo:W0,getPDFVersion:At,Point:Df,Rectangle:ef,Matrix:ja,hasHotfix:Du},Object.defineProperty(ae.internal.pageSize,"width",{get:function(){return Nf(It)},set:function(z){Pf(It,z)},enumerable:!0,configurable:!0}),Object.defineProperty(ae.internal.pageSize,"height",{get:function(){return fh(It)},set:function(z){Pp(It,z)},enumerable:!0,configurable:!0}),function(z){for(var He=0,St=Ha.length;He<St;He++){var Zt=hm.call(this,z[He][0],z[He][1],z[He][2],Ha[He][3],!0);Re===!1&&(Ze[Zt]=!0);var gr=z[He][0].split("-");fm({id:Zt,fontName:gr[0],fontStyle:gr[1]||""})}Hs.publish("addFonts",{fonts:Po,dictionary:Ko})}.call(ae,Ha),ha="F1",Fp(u,a),Hs.publish("initialized"),ae}PA.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},PA.prototype.toHexString=function(n){return n.split("").map(function(o){return("0"+(255&o.charCodeAt(0)).toString(16)).slice(-2)}).join("")},PA.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("")},PA.prototype.processOwnerPassword=function(n,o){return hc(If(o).substr(0,5),n)},PA.prototype.encryptor=function(n,o){var a=If(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&o,o>>8&255)).substr(0,10);return function(l){return hc(a,l)}},Kh.prototype.equals=function(n){var o,a="id,objectNumber,equals";if(!n||(0,me.Z)(n)!==(0,me.Z)(this))return!1;var l=0;for(o in this)if(!(a.indexOf(o)>=0)){if(this.hasOwnProperty(o)&&!n.hasOwnProperty(o)||this[o]!==n[o])return!1;l++}for(o in n)n.hasOwnProperty(o)&&a.indexOf(o)<0&&l--;return l===0},da.API={events:[]},da.version="3.0.4";var ll=da.API,Ff=1,Ad=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ju=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},ka=function(n){return n.toFixed(2)},zd=function(n){return n.toFixed(5)};ll.__acroform__={};var au=function(n,o){n.prototype=Object.create(o.prototype),n.prototype.constructor=n},H0=function(n){return n*Ff},uA=function(n){var o=new qr,a=qn.internal.getHeight(n)||0,l=qn.internal.getWidth(n)||0;return o.BBox=[0,0,Number(ka(l)),Number(ka(a))],o},Zm=ll.__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=ll.__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=ll.__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},Jl=ll.__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=ll.__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)},d=ll.__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=ll.__acroform__.calculateCoordinates=function(n,o){var a=o.internal.getHorizontalCoordinate,l=o.internal.getVerticalCoordinate,u=n[0],g=n[1],O=n[2],E=n[3],T={};return T.lowerLeft_X=a(u)||0,T.lowerLeft_Y=l(g+E)||0,T.upperRight_X=a(u+O)||0,T.upperRight_Y=l(g)||0,[Number(ka(T.lowerLeft_X)),Number(ka(T.lowerLeft_Y)),Number(ka(T.upperRight_X)),Number(ka(T.upperRight_Y))]},y=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var o=[],a=n._V||n.DV,l=te(n,a),u=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("/"+u+" "+ka(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 g=uA(n);return g.scope=n.scope,g.stream=o.join(`
`),g}},te=function(n,o){var a=n.fontSize===0?n.maxFontSize:n.fontSize,l={text:"",fontSize:""},u=(o=(o=o.substr(0,1)=="("?o.substr(1):o).substr(o.length-1)==")"?o.substr(0,o.length-1):o).split(" ");u=n.multiline?u.map(function(it){return it.split(`
`)}):u.map(function(it){return[it]});var g=a,O=qn.internal.getHeight(n)||0;O=O<0?-O:O;var E=qn.internal.getWidth(n)||0;E=E<0?-E:E;var T=function(it,xt,Wt){if(it+1<u.length){var jt=xt+" "+u[it+1][0];return Ee(jt,n,Wt).width<=E-4}return!1};g++;e:for(;g>0;){o="",g--;var Z,se,Re=Ee("3",n,g).height,Ze=n.multiline?O-g:(O-Re)/2,ae=Ze+=2,mt=0,At=0,wt=0;if(g<=0){o=`(...) Tj
`,o+="% Width of Text: "+Ee(o,n,g=12).width+", FieldWidth:"+E+`
`;break}for(var st="",Gt=0,Qt=0;Qt<u.length;Qt++)if(u.hasOwnProperty(Qt)){var Ft=!1;if(u[Qt].length!==1&&wt!==u[Qt].length-1){if((Re+2)*(Gt+2)+2>O)continue e;st+=u[Qt][wt],Ft=!0,At=Qt,Qt--}else{st=(st+=u[Qt][wt]+" ").substr(st.length-1)==" "?st.substr(0,st.length-1):st;var Ir=parseInt(Qt),rn=T(Ir,st,g),Wr=Qt>=u.length-1;if(rn&&!Wr){st+=" ",wt=0;continue}if(rn||Wr){if(Wr)At=Ir;else if(n.multiline&&(Re+2)*(Gt+2)+2>O)continue e}else{if(!n.multiline||(Re+2)*(Gt+2)+2>O)continue e;At=Ir}}for(var or="",Lt=mt;Lt<=At;Lt++){var xr=u[Lt];if(n.multiline){if(Lt===At){or+=xr[wt]+" ",wt=(wt+1)%xr.length;continue}if(Lt===mt){or+=xr[xr.length-1]+" ";continue}}or+=xr[0]+" "}switch(or=or.substr(or.length-1)==" "?or.substr(0,or.length-1):or,se=Ee(or,n,g).width,n.textAlign){case"right":Z=E-se-2;break;case"center":Z=(E-se)/2;break;default:Z=2}o+=ka(Z)+" "+ka(ae)+` Td
`,o+="("+Ad(or)+`) Tj
`,o+=-ka(Z)+` 0 Td
`,ae=-(g+2),se=0,mt=Ft?At:At+1,Gt++,st=""}break}return l.text=o,l.fontSize=g,l},Ee=function(n,o,a){var l=o.scope.internal.getFont(o.fontName,o.fontStyle),u=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:u}},We={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(We)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ff=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new Ri,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 u in l)if(l.hasOwnProperty(u)){var g=l[u];g.objId=void 0,g.hasAnnotation&&ht(g,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,u){var g=!l;for(var O in l||(u.internal.newObjectDeferredBegin(u.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),u.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),l=l||u.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(l.hasOwnProperty(O)){var E=l[O],T=[],Z=E.Rect;if(E.Rect&&(E.Rect=w(E.Rect,u)),u.internal.newObjectDeferredBegin(E.objId,!0),E.DA=qn.createDefaultAppearanceStream(E),(0,me.Z)(E)==="object"&&typeof E.getKeyValueListForStream=="function"&&(T=E.getKeyValueListForStream()),E.Rect=Z,E.hasAppearanceStream&&!E.appearanceStreamContent){var se=y(E);T.push({key:"AP",value:"<</N "+se+">>"}),u.internal.acroformPlugin.xForms.push(se)}if(E.appearanceStreamContent){var Re="";for(var Ze in E.appearanceStreamContent)if(E.appearanceStreamContent.hasOwnProperty(Ze)){var ae=E.appearanceStreamContent[Ze];if(Re+="/"+Ze+" ",Re+="<<",Object.keys(ae).length>=1||Array.isArray(ae)){for(var O in ae)if(ae.hasOwnProperty(O)){var mt=ae[O];typeof mt=="function"&&(mt=mt.call(u,E)),Re+="/"+O+" "+mt+" ",u.internal.acroformPlugin.xForms.indexOf(mt)>=0||u.internal.acroformPlugin.xForms.push(mt)}}else typeof(mt=ae)=="function"&&(mt=mt.call(u,E)),Re+="/"+O+" "+mt,u.internal.acroformPlugin.xForms.indexOf(mt)>=0||u.internal.acroformPlugin.xForms.push(mt);Re+=">>"}T.push({key:"AP",value:`<<
`+Re+">>"})}u.internal.putStream({additionalKeyValues:T,objectId:E.objId}),u.internal.out("endobj")}g&&function(At,wt){for(var st in At)if(At.hasOwnProperty(st)){var Gt=st,Qt=At[st];wt.internal.newObjectDeferredBegin(Qt.objId,!0),(0,me.Z)(Qt)==="object"&&typeof Qt.putStream=="function"&&Qt.putStream(),delete At[Gt]}}(u.internal.acroformPlugin.xForms,u)})(a,n)}),n.internal.acroformPlugin.isInitialized=!0}},tr=ll.__acroform__.arrayToPdfArray=function(n,o,a){var l=function(O){return O};if(Array.isArray(n)){for(var u="[",g=0;g<n.length;g++)switch(g!==0&&(u+=" "),(0,me.Z)(n[g])){case"boolean":case"number":case"object":u+=n[g].toString();break;case"string":n[g].substr(0,1)!=="/"?(o!==void 0&&a&&(l=a.internal.getEncryptor(o)),u+="("+Ad(l(n[g].toString()))+")"):u+=n[g].toString()}return u+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},cr=function(n,o,a){var l=function(u){return u};return o!==void 0&&a&&(l=a.internal.getEncryptor(o)),(n=n||"").toString(),"("+Ad(l(n))+")"},hr=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})};hr.prototype.toString=function(){return this.objId+" 0 R"},hr.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},hr.prototype.getKeyValueListForStream=function(){var n=[],o=Object.getOwnPropertyNames(this).filter(function(g){return g!="content"&&g!="appearanceStreamContent"&&g!="scope"&&g!="objId"&&g.substring(0,1)!="_"});for(var a in o)if(Object.getOwnPropertyDescriptor(this,o[a]).configurable===!1){var l=o[a],u=this[l];u&&(Array.isArray(u)?n.push({key:l,value:tr(u,this.objId,this.scope)}):u instanceof hr?(u.scope=this.scope,n.push({key:l,value:u.objId+" 0 R"})):typeof u!="function"&&n.push({key:l,value:u}))}return n};var qr=function(){hr.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}})};au(qr,hr);var Ri=function(){hr.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)),"("+Ad(a(n))+")"}},set:function(a){n=a}})};au(Ri,hr);var Un=function n(){hr.call(this);var o=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return o},set:function(st){if(isNaN(st))throw new Error('Invalid value "'+st+'" for attribute F supplied.');o=st}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Jl(o,3)},set:function(st){st?this.F=b(o,3):this.F=d(o,3)}});var a=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return a},set:function(st){if(isNaN(st))throw new Error('Invalid value "'+st+'" for attribute Ff supplied.');a=st}});var l=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(l.length!==0)return l},set:function(st){l=st!==void 0?st:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[0])?0:l[0]},set:function(st){l[0]=st}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[1])?0:l[1]},set:function(st){l[1]=st}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[2])?0:l[2]},set:function(st){l[2]=st}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[3])?0:l[3]},set:function(st){l[3]=st}});var u="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return u},set:function(st){switch(st){case"/Btn":case"/Tx":case"/Ch":case"/Sig":u=st;break;default:throw new Error('Invalid value "'+st+'" for attribute FT supplied.')}}});var g=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!g||g.length<1){if(this instanceof Li)return;g="FieldObject"+n.FieldNum++}var st=function(Gt){return Gt};return this.scope&&(st=this.scope.internal.getEncryptor(this.objId)),"("+Ad(st(g))+")"},set:function(st){g=st.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return g},set:function(st){g=st}});var O="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return O},set:function(st){O=st}});var E="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return E},set:function(st){E=st}});var T=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return T},set:function(st){T=st}});var Z=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return Z===void 0?50/Ff:Z},set:function(st){Z=st}});var se="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return se},set:function(st){se=st}});var Re="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Re||this instanceof Li||this instanceof qa))return cr(Re,this.objId,this.scope)},set:function(st){st=st.toString(),Re=st}});var Ze=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(Ze)return this instanceof Ta==0?cr(Ze,this.objId,this.scope):Ze},set:function(st){st=st.toString(),Ze=this instanceof Ta==0?st.substr(0,1)==="("?Ju(st.substr(1,st.length-2)):Ju(st):st}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ta==1?Ju(Ze.substr(1,Ze.length-1)):Ze},set:function(st){st=st.toString(),Ze=this instanceof Ta==1?"/"+st:st}});var ae=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(ae)return ae},set:function(st){this.V=st}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(ae)return this instanceof Ta==0?cr(ae,this.objId,this.scope):ae},set:function(st){st=st.toString(),ae=this instanceof Ta==0?st.substr(0,1)==="("?Ju(st.substr(1,st.length-2)):Ju(st):st}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Ta==1?Ju(ae.substr(1,ae.length-1)):ae},set:function(st){st=st.toString(),ae=this instanceof Ta==1?"/"+st:st}}),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,At=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return At},set:function(st){st=!!st,At=st}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(mt)return mt},set:function(st){mt=st}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,1)},set:function(st){st?this.Ff=b(this.Ff,1):this.Ff=d(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,2)},set:function(st){st?this.Ff=b(this.Ff,2):this.Ff=d(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,3)},set:function(st){st?this.Ff=b(this.Ff,3):this.Ff=d(this.Ff,3)}});var wt=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(wt!==null)return wt},set:function(st){if([0,1,2].indexOf(st)===-1)throw new Error('Invalid value "'+st+'" for attribute Q supplied.');wt=st}}),Object.defineProperty(this,"textAlign",{get:function(){var st;switch(wt){case 0:default:st="left";break;case 1:st="center";break;case 2:st="right"}return st},configurable:!0,enumerable:!0,set:function(st){switch(st){case"right":case 2:wt=2;break;case"center":case 1:wt=1;break;default:wt=0}}})};au(Un,hr);var hi=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 tr(o,this.objId,this.scope)},set:function(a){var l,u;u=[],typeof(l=a)=="string"&&(u=function(g,O,E){E||(E=1);for(var T,Z=[];T=O.exec(g);)Z.push(T[E]);return Z}(l,/\((.*?)\)/g)),o=u}}),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!!Jl(this.Ff,18)},set:function(a){a?this.Ff=b(this.Ff,18):this.Ff=d(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,19)},set:function(a){this.combo===!0&&(a?this.Ff=b(this.Ff,19):this.Ff=d(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,20)},set:function(a){a?(this.Ff=b(this.Ff,20),o.sort()):this.Ff=d(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,22)},set:function(a){a?this.Ff=b(this.Ff,22):this.Ff=d(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,23)},set:function(a){a?this.Ff=b(this.Ff,23):this.Ff=d(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,27)},set:function(a){a?this.Ff=b(this.Ff,27):this.Ff=d(this.Ff,27)}}),this.hasAppearanceStream=!1};au(hi,Un);var Ga=function(){hi.call(this),this.fontName="helvetica",this.combo=!1};au(Ga,hi);var ea=function(){Ga.call(this),this.combo=!0};au(ea,Ga);var Yi=function(){ea.call(this),this.edit=!0};au(Yi,ea);var Ta=function(){Un.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,15)},set:function(a){a?this.Ff=b(this.Ff,15):this.Ff=d(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,16)},set:function(a){a?this.Ff=b(this.Ff,16):this.Ff=d(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,17)},set:function(a){a?this.Ff=b(this.Ff,17):this.Ff=d(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,26)},set:function(a){a?this.Ff=b(this.Ff,26):this.Ff=d(this.Ff,26)}});var n,o={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(g){return g};if(this.scope&&(a=this.scope.internal.getEncryptor(this.objId)),Object.keys(o).length!==0){var l,u=[];for(l in u.push("<<"),o)u.push("/"+l+" ("+Ad(a(o[l]))+")");return u.push(">>"),u.join(`
`)}},set:function(a){(0,me.Z)(a)==="object"&&(o=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return o.CA||""},set:function(a){typeof a=="string"&&(o.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(a){n="/"+a}})};au(Ta,Un);var oo=function(){Ta.call(this),this.pushButton=!0};au(oo,Ta);var Fa=function(){Ta.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:[]}})};au(Fa,Ta);var Li=function(){var n,o;Un.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(u){n=u}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(u){o=u}});var a,l={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var u=function(E){return E};this.scope&&(u=this.scope.internal.getEncryptor(this.objId));var g,O=[];for(g in O.push("<<"),l)O.push("/"+g+" ("+Ad(u(l[g]))+")");return O.push(">>"),O.join(`
`)},set:function(u){(0,me.Z)(u)==="object"&&(l=u)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return l.CA||""},set:function(u){typeof u=="string"&&(l.CA=u)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return a},set:function(u){a=u}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return a.substr(1,a.length-1)},set:function(u){a="/"+u}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=qn.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};au(Li,Un),Fa.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()}},Fa.prototype.createOption=function(n){var o=new Li;return o.Parent=this,o.optionName=n,this.Kids.push(o),Sc.call(this.scope,o),o};var Lo=function(){Ta.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=qn.CheckBox.createAppearanceStream()};au(Lo,Ta);var qa=function(){Un.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,13)},set:function(o){o?this.Ff=b(this.Ff,13):this.Ff=d(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,21)},set:function(o){o?this.Ff=b(this.Ff,21):this.Ff=d(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,23)},set:function(o){o?this.Ff=b(this.Ff,23):this.Ff=d(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,24)},set:function(o){o?this.Ff=b(this.Ff,24):this.Ff=d(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,25)},set:function(o){o?this.Ff=b(this.Ff,25):this.Ff=d(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,26)},set:function(o){o?this.Ff=b(this.Ff,26):this.Ff=d(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}})};au(qa,Un);var Ua=function(){qa.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Jl(this.Ff,14)},set:function(n){n?this.Ff=b(this.Ff,14):this.Ff=d(this.Ff,14)}}),this.password=!0};au(Ua,qa);var qn={CheckBox:{createAppearanceStream:function(){return{N:{On:qn.CheckBox.YesNormal},D:{On:qn.CheckBox.YesPushDown,Off:qn.CheckBox.OffPushDown}}},YesPushDown:function(n){var o=uA(n);o.scope=n.scope;var a=[],l=n.scope.internal.getFont(n.fontName,n.fontStyle).id,u=n.scope.__private__.encodeColorString(n.color),g=te(n,n.caption);return a.push("0.749023 g"),a.push("0 0 "+ka(qn.internal.getWidth(n))+" "+ka(qn.internal.getHeight(n))+" re"),a.push("f"),a.push("BMC"),a.push("q"),a.push("0 0 1 rg"),a.push("/"+l+" "+ka(g.fontSize)+" Tf "+u),a.push("BT"),a.push(g.text),a.push("ET"),a.push("Q"),a.push("EMC"),o.stream=a.join(`
`),o},YesNormal:function(n){var o=uA(n);o.scope=n.scope;var a=n.scope.internal.getFont(n.fontName,n.fontStyle).id,l=n.scope.__private__.encodeColorString(n.color),u=[],g=qn.internal.getHeight(n),O=qn.internal.getWidth(n),E=te(n,n.caption);return u.push("1 g"),u.push("0 0 "+ka(O)+" "+ka(g)+" re"),u.push("f"),u.push("q"),u.push("0 0 1 rg"),u.push("0 0 "+ka(O-1)+" "+ka(g-1)+" re"),u.push("W"),u.push("n"),u.push("0 g"),u.push("BT"),u.push("/"+a+" "+ka(E.fontSize)+" Tf "+l),u.push(E.text),u.push("ET"),u.push("Q"),o.stream=u.join(`
`),o},OffPushDown:function(n){var o=uA(n);o.scope=n.scope;var a=[];return a.push("0.749023 g"),a.push("0 0 "+ka(qn.internal.getWidth(n))+" "+ka(qn.internal.getHeight(n))+" re"),a.push("f"),o.stream=a.join(`
`),o}},RadioButton:{Circle:{createAppearanceStream:function(n){var o={D:{Off:qn.RadioButton.Circle.OffPushDown},N:{}};return o.N[n]=qn.RadioButton.Circle.YesNormal,o.D[n]=qn.RadioButton.Circle.YesPushDown,o},getCA:function(){return"l"},YesNormal:function(n){var o=uA(n);o.scope=n.scope;var a=[],l=qn.internal.getWidth(n)<=qn.internal.getHeight(n)?qn.internal.getWidth(n)/4:qn.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var u=qn.internal.Bezier_C,g=Number((l*u).toFixed(5));return a.push("q"),a.push("1 0 0 1 "+zd(qn.internal.getWidth(n)/2)+" "+zd(qn.internal.getHeight(n)/2)+" cm"),a.push(l+" 0 m"),a.push(l+" "+g+" "+g+" "+l+" 0 "+l+" c"),a.push("-"+g+" "+l+" -"+l+" "+g+" -"+l+" 0 c"),a.push("-"+l+" -"+g+" -"+g+" -"+l+" 0 -"+l+" c"),a.push(g+" -"+l+" "+l+" -"+g+" "+l+" 0 c"),a.push("f"),a.push("Q"),o.stream=a.join(`
`),o},YesPushDown:function(n){var o=uA(n);o.scope=n.scope;var a=[],l=qn.internal.getWidth(n)<=qn.internal.getHeight(n)?qn.internal.getWidth(n)/4:qn.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var u=Number((2*l).toFixed(5)),g=Number((u*qn.internal.Bezier_C).toFixed(5)),O=Number((l*qn.internal.Bezier_C).toFixed(5));return a.push("0.749023 g"),a.push("q"),a.push("1 0 0 1 "+zd(qn.internal.getWidth(n)/2)+" "+zd(qn.internal.getHeight(n)/2)+" cm"),a.push(u+" 0 m"),a.push(u+" "+g+" "+g+" "+u+" 0 "+u+" c"),a.push("-"+g+" "+u+" -"+u+" "+g+" -"+u+" 0 c"),a.push("-"+u+" -"+g+" -"+g+" -"+u+" 0 -"+u+" c"),a.push(g+" -"+u+" "+u+" -"+g+" "+u+" 0 c"),a.push("f"),a.push("Q"),a.push("0 g"),a.push("q"),a.push("1 0 0 1 "+zd(qn.internal.getWidth(n)/2)+" "+zd(qn.internal.getHeight(n)/2)+" cm"),a.push(l+" 0 m"),a.push(l+" "+O+" "+O+" "+l+" 0 "+l+" c"),a.push("-"+O+" "+l+" -"+l+" "+O+" -"+l+" 0 c"),a.push("-"+l+" -"+O+" -"+O+" -"+l+" 0 -"+l+" c"),a.push(O+" -"+l+" "+l+" -"+O+" "+l+" 0 c"),a.push("f"),a.push("Q"),o.stream=a.join(`
`),o},OffPushDown:function(n){var o=uA(n);o.scope=n.scope;var a=[],l=qn.internal.getWidth(n)<=qn.internal.getHeight(n)?qn.internal.getWidth(n)/4:qn.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var u=Number((2*l).toFixed(5)),g=Number((u*qn.internal.Bezier_C).toFixed(5));return a.push("0.749023 g"),a.push("q"),a.push("1 0 0 1 "+zd(qn.internal.getWidth(n)/2)+" "+zd(qn.internal.getHeight(n)/2)+" cm"),a.push(u+" 0 m"),a.push(u+" "+g+" "+g+" "+u+" 0 "+u+" c"),a.push("-"+g+" "+u+" -"+u+" "+g+" -"+u+" 0 c"),a.push("-"+u+" -"+g+" -"+g+" -"+u+" 0 -"+u+" c"),a.push(g+" -"+u+" "+u+" -"+g+" "+u+" 0 c"),a.push("f"),a.push("Q"),o.stream=a.join(`
`),o}},Cross:{createAppearanceStream:function(n){var o={D:{Off:qn.RadioButton.Cross.OffPushDown},N:{}};return o.N[n]=qn.RadioButton.Cross.YesNormal,o.D[n]=qn.RadioButton.Cross.YesPushDown,o},getCA:function(){return"8"},YesNormal:function(n){var o=uA(n);o.scope=n.scope;var a=[],l=qn.internal.calculateCross(n);return a.push("q"),a.push("1 1 "+ka(qn.internal.getWidth(n)-2)+" "+ka(qn.internal.getHeight(n)-2)+" re"),a.push("W"),a.push("n"),a.push(ka(l.x1.x)+" "+ka(l.x1.y)+" m"),a.push(ka(l.x2.x)+" "+ka(l.x2.y)+" l"),a.push(ka(l.x4.x)+" "+ka(l.x4.y)+" m"),a.push(ka(l.x3.x)+" "+ka(l.x3.y)+" l"),a.push("s"),a.push("Q"),o.stream=a.join(`
`),o},YesPushDown:function(n){var o=uA(n);o.scope=n.scope;var a=qn.internal.calculateCross(n),l=[];return l.push("0.749023 g"),l.push("0 0 "+ka(qn.internal.getWidth(n))+" "+ka(qn.internal.getHeight(n))+" re"),l.push("f"),l.push("q"),l.push("1 1 "+ka(qn.internal.getWidth(n)-2)+" "+ka(qn.internal.getHeight(n)-2)+" re"),l.push("W"),l.push("n"),l.push(ka(a.x1.x)+" "+ka(a.x1.y)+" m"),l.push(ka(a.x2.x)+" "+ka(a.x2.y)+" l"),l.push(ka(a.x4.x)+" "+ka(a.x4.y)+" m"),l.push(ka(a.x3.x)+" "+ka(a.x3.y)+" l"),l.push("s"),l.push("Q"),o.stream=l.join(`
`),o},OffPushDown:function(n){var o=uA(n);o.scope=n.scope;var a=[];return a.push("0.749023 g"),a.push("0 0 "+ka(qn.internal.getWidth(n))+" "+ka(qn.internal.getHeight(n))+" re"),a.push("f"),o.stream=a.join(`
`),o}}},createDefaultAppearanceStream:function(n){var o=n.scope.internal.getFont(n.fontName,n.fontStyle).id,a=n.scope.__private__.encodeColorString(n.color);return"/"+o+" "+n.fontSize+" Tf "+a}};qn.internal={Bezier_C:.551915024494,calculateCross:function(n){var o=qn.internal.getWidth(n),a=qn.internal.getHeight(n),l=Math.min(o,a);return{x1:{x:(o-l)/2,y:(a-l)/2+l},x2:{x:(o-l)/2+l,y:(a-l)/2},x3:{x:(o-l)/2,y:(a-l)/2},x4:{x:(o-l)/2+l,y:(a-l)/2+l}}}},qn.internal.getWidth=function(n){var o=0;return(0,me.Z)(n)==="object"&&(o=H0(n.Rect[2])),o},qn.internal.getHeight=function(n){var o=0;return(0,me.Z)(n)==="object"&&(o=H0(n.Rect[3])),o};var Sc=ll.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};ll.AcroFormChoiceField=hi,ll.AcroFormListBox=Ga,ll.AcroFormComboBox=ea,ll.AcroFormEditBox=Yi,ll.AcroFormButton=Ta,ll.AcroFormPushButton=oo,ll.AcroFormRadioButton=Fa,ll.AcroFormCheckBox=Lo,ll.AcroFormTextField=qa,ll.AcroFormPasswordField=Ua,ll.AcroFormAppearance=qn,ll.AcroForm={ChoiceField:hi,ListBox:Ga,ComboBox:ea,EditBox:Yi,Button:Ta,PushButton:oo,RadioButton:Fa,CheckBox:Lo,TextField:qa,PasswordField:Ua,Appearance:qn},da.AcroForm={ChoiceField:hi,ListBox:Ga,ComboBox:ea,EditBox:Yi,Button:Ta,PushButton:oo,RadioButton:Fa,CheckBox:Lo,TextField:qa,PasswordField:Ua,Appearance:qn};var ou=da.AcroForm;function xo(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]]},u=n.__addimage__.getImageFileTypeByImageData=function(it,xt){var Wt,jt,Tr,Zr,Jr,Mr=a;if((xt=xt||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,jt=0;jt<Tr[Wt].length;jt+=1)if(Tr[Wt][jt]!==void 0&&Tr[Wt][jt]!==it[jt]){Zr=!1;break}if(Zr===!0){Mr=Jr;break}}else for(Jr in l)for(Tr=l[Jr],Wt=0;Wt<Tr.length;Wt+=1){for(Zr=!0,jt=0;jt<Tr[Wt].length;jt+=1)if(Tr[Wt][jt]!==void 0&&Tr[Wt][jt]!==it.charCodeAt(jt)){Zr=!1;break}if(Zr===!0){Mr=Jr;break}}return Mr===a&&xt!==a&&(Mr=xt),Mr},g=function it(xt){for(var Wt=this.internal.write,jt=this.internal.putStream,Tr=(0,this.internal.getFilters)();Tr.indexOf("FlateEncode")!==-1;)Tr.splice(Tr.indexOf("FlateEncode"),1);xt.objectId=this.internal.newObject();var Zr=[];if(Zr.push({key:"Type",value:"/XObject"}),Zr.push({key:"Subtype",value:"/Image"}),Zr.push({key:"Width",value:xt.width}),Zr.push({key:"Height",value:xt.height}),xt.colorSpace===st.INDEXED?Zr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(xt.palette.length/3-1)+" "+("sMask"in xt&&xt.sMask!==void 0?xt.objectId+2:xt.objectId+1)+" 0 R]"}):(Zr.push({key:"ColorSpace",value:"/"+xt.colorSpace}),xt.colorSpace===st.DEVICE_CMYK&&Zr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Zr.push({key:"BitsPerComponent",value:xt.bitsPerComponent}),"decodeParameters"in xt&&xt.decodeParameters!==void 0&&Zr.push({key:"DecodeParms",value:"<<"+xt.decodeParameters+">>"}),"transparency"in xt&&Array.isArray(xt.transparency)&&xt.transparency.length>0){for(var Jr="",Mr=0,Gr=xt.transparency.length;Mr<Gr;Mr++)Jr+=xt.transparency[Mr]+" "+xt.transparency[Mr]+" ";Zr.push({key:"Mask",value:"["+Jr+"]"})}xt.sMask!==void 0&&Zr.push({key:"SMask",value:xt.objectId+1+" 0 R"});var Zn=xt.filter!==void 0?["/"+xt.filter]:void 0;if(jt({data:xt.data,additionalKeyValues:Zr,alreadyAppliedFilters:Zn,objectId:xt.objectId}),Wt("endobj"),"sMask"in xt&&xt.sMask!==void 0){var Sn,tt=(Sn=xt.sMaskBitsPerComponent)!==null&&Sn!==void 0?Sn:xt.bitsPerComponent,It={width:xt.width,height:xt.height,colorSpace:"DeviceGray",bitsPerComponent:tt,data:xt.sMask};"filter"in xt&&(It.decodeParameters="/Predictor ".concat(xt.predictor," /Colors 1 /BitsPerComponent ").concat(tt," /Columns ").concat(xt.width),It.filter=xt.filter),it.call(this,It)}if(xt.colorSpace===st.INDEXED){var Nt=this.internal.newObject();jt({data:or(new Uint8Array(xt.palette)),objectId:Nt}),Wt("endobj")}},O=function(){var it=this.internal.collections[o+"images"];for(var xt in it)g.call(this,it[xt])},E=function(){var it,xt=this.internal.collections[o+"images"],Wt=this.internal.write;for(var jt in xt)Wt("/I"+(it=xt[jt]).index,it.objectId,"0","R")},T=function(){this.internal.collections[o+"images"]||(this.internal.collections[o+"images"]={},this.internal.events.subscribe("putResources",O),this.internal.events.subscribe("putXobjectDict",E))},Z=function(){var it=this.internal.collections[o+"images"];return T.call(this),it},se=function(){return Object.keys(this.internal.collections[o+"images"]).length},Re=function(it){return typeof n["process"+it.toUpperCase()]=="function"},Ze=function(it){return(0,me.Z)(it)==="object"&&it.nodeType===1},ae=function(it,xt){if(it.nodeName==="IMG"&&it.hasAttribute("src")){var Wt=""+it.getAttribute("src");if(Wt.indexOf("data:image/")===0)return gn(unescape(Wt).split("base64,").pop());var jt=n.loadFile(Wt,!0);if(jt!==void 0)return jt}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(xt){case"PNG":Tr="image/png";break;case"WEBP":Tr="image/webp";break;default:Tr="image/jpeg"}return gn(it.toDataURL(Tr,1).split("base64,").pop())}},mt=function(it){var xt=this.internal.collections[o+"images"];if(xt){for(var Wt in xt)if(it===xt[Wt].alias)return xt[Wt]}},At=function(it,xt,Wt){return it||xt||(it=-96,xt=-96),it<0&&(it=-1*Wt.width*72/it/this.internal.scaleFactor),xt<0&&(xt=-1*Wt.height*72/xt/this.internal.scaleFactor),it===0&&(it=xt*Wt.width/Wt.height),xt===0&&(xt=it*Wt.height/Wt.width),[it,xt]},wt=function(it,xt,Wt,jt,Tr,Zr){var Jr=At.call(this,Wt,jt,Tr),Mr=this.internal.getCoordinateString,Gr=this.internal.getVerticalCoordinateString,Zn=Z.call(this);if(Wt=Jr[0],jt=Jr[1],Zn[Tr.index]=Tr,Zr){Zr*=Math.PI/180;var Sn=Math.cos(Zr),tt=Math.sin(Zr),It=function(qt){return qt.toFixed(4)},Nt=[It(Sn),It(tt),It(-1*tt),It(Sn),0,0,"cm"]}this.internal.write("q"),Zr?(this.internal.write([1,"0","0",1,Mr(it),Gr(xt+jt),"cm"].join(" ")),this.internal.write(Nt.join(" ")),this.internal.write([Mr(Wt),"0","0",Mr(jt),"0","0","cm"].join(" "))):this.internal.write([Mr(Wt),"0","0",Mr(jt),Mr(it),Gr(xt+jt),"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")},st=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"},Qt=n.__addimage__.sHashCode=function(it){var xt,Wt,jt=0;if(typeof it=="string")for(Wt=it.length,xt=0;xt<Wt;xt++)jt=(jt<<5)-jt+it.charCodeAt(xt),jt|=0;else if(rn(it))for(Wt=it.byteLength/2,xt=0;xt<Wt;xt++)jt=(jt<<5)-jt+it[xt],jt|=0;return jt},Ft=n.__addimage__.validateStringAsBase64=function(it){(it=it||"").toString().trim();var xt=!0;return it.length===0&&(xt=!1),it.length%4!=0&&(xt=!1),/^[A-Za-z0-9+/]+$/.test(it.substr(0,it.length-2))===!1&&(xt=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(it.substr(-2))===!1&&(xt=!1),xt},Ir=n.__addimage__.extractImageFromDataUrl=function(it){if(it==null||!(it=it.trim()).startsWith("data:"))return null;var xt=it.indexOf(",");return xt<0?null:it.substring(0,xt).trim().endsWith("base64")?it.substring(xt+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 xt=it.length,Wt=new Uint8Array(xt),jt=0;jt<xt;jt++)Wt[jt]=it.charCodeAt(jt);return Wt},or=n.__addimage__.arrayBufferToBinaryString=function(it){for(var xt="",Wt=rn(it)?it:new Uint8Array(it),jt=0;jt<Wt.length;jt+=8192)xt+=String.fromCharCode.apply(null,Wt.subarray(jt,jt+8192));return xt};n.addImage=function(){var it,xt,Wt,jt,Tr,Zr,Jr,Mr,Gr;if(typeof arguments[1]=="number"?(xt=a,Wt=arguments[1],jt=arguments[2],Tr=arguments[3],Zr=arguments[4],Jr=arguments[5],Mr=arguments[6],Gr=arguments[7]):(xt=arguments[1],Wt=arguments[2],jt=arguments[3],Tr=arguments[4],Zr=arguments[5],Jr=arguments[6],Mr=arguments[7],Gr=arguments[8]),(0,me.Z)(it=arguments[0])==="object"&&!Ze(it)&&"imageData"in it){var Zn=it;it=Zn.imageData,xt=Zn.format||xt||a,Wt=Zn.x||Wt||0,jt=Zn.y||jt||0,Tr=Zn.w||Zn.width||Tr,Zr=Zn.h||Zn.height||Zr,Jr=Zn.alias||Jr,Mr=Zn.compression||Mr,Gr=Zn.rotation||Zn.angle||Gr}var Sn=this.internal.getFilters();if(Mr===void 0&&Sn.indexOf("FlateEncode")!==-1&&(Mr="SLOW"),isNaN(Wt)||isNaN(jt))throw new Error("Invalid coordinates passed to jsPDF.addImage");T.call(this);var tt=Lt.call(this,it,xt,Jr,Mr);return wt.call(this,Wt,jt,Tr,Zr,tt,Gr),this};var Lt=function(it,xt,Wt,jt){var Tr,Zr,Jr;if(typeof it=="string"&&u(it)===a){it=unescape(it);var Mr=xr(it,!1);(Mr!==""||(Mr=n.loadFile(it,!0))!==void 0)&&(it=Mr)}if(Ze(it)&&(it=ae(it,xt)),xt=u(it,xt),!Re(xt))throw new Error("addImage does not support files of type '"+xt+"', please ensure that a plugin for '"+xt+"' support is added.");if(((Jr=Wt)==null||Jr.length===0)&&(Wt=function(Gr){return typeof Gr=="string"||rn(Gr)?Qt(Gr):rn(Gr.data)?Qt(Gr.data):null}(it)),(Tr=mt.call(this,Wt))||(it instanceof Uint8Array||xt==="RGBA"||(Zr=it,it=Wr(it)),Tr=this["process"+xt.toUpperCase()](it,se.call(this),Wt,function(Gr){return Gr&&typeof Gr=="string"&&(Gr=Gr.toUpperCase()),Gr in n.image_compression?Gr:Gt.NONE}(jt),Zr)),!Tr)throw new Error("An unknown error occurred whilst processing the image.");return Tr},xr=n.__addimage__.convertBase64ToBinaryString=function(it,xt){xt=typeof xt!="boolean"||xt;var Wt,jt="";if(typeof it=="string"){var Tr;Wt=(Tr=Ir(it))!==null&&Tr!==void 0?Tr:it;try{jt=gn(Wt)}catch(Zr){if(xt)throw Ft(Wt)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Zr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return jt};n.getImageProperties=function(it){var xt,Wt,jt="";if(Ze(it)&&(it=ae(it)),typeof it=="string"&&u(it)===a&&((jt=xr(it,!1))===""&&(jt=n.loadFile(it)||""),it=jt),Wt=u(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)),!(xt=this["process"+Wt.toUpperCase()](it)))throw new Error("An unknown error occurred whilst processing the image");return xt.fileType=Wt,xt}})(da.API),function(n){var o=function(a){if(a!==void 0&&a!="")return!0};da.API.events.push(["addPage",function(a){this.internal.getPageInfo(a.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(a){for(var l,u,g,O=this.internal.getCoordinateString,E=this.internal.getVerticalCoordinateString,T=this.internal.getPageInfoByObjId(a.objId),Z=a.pageContext.annotations,se=!1,Re=0;Re<Z.length&&!se;Re++)switch((l=Z[Re]).type){case"link":(o(l.options.url)||o(l.options.pageNumber))&&(se=!0);break;case"reference":case"text":case"freetext":se=!0}if(se!=0){this.internal.write("/Annots [");for(var Ze=0;Ze<Z.length;Ze++){l=Z[Ze];var ae=this.internal.pdfEscape,mt=this.internal.getEncryptor(a.objId);switch(l.type){case"reference":this.internal.write(" "+l.object.objId+" 0 R ");break;case"text":var At=this.internal.newAdditionalObject(),wt=this.internal.newAdditionalObject(),st=this.internal.getEncryptor(At.objId),Gt=l.title||"Note";g="<</Type /Annot /Subtype /Text "+(u="/Rect ["+O(l.bounds.x)+" "+E(l.bounds.y+l.bounds.h)+" "+O(l.bounds.x+l.bounds.w)+" "+E(l.bounds.y)+"] ")+"/Contents ("+ae(st(l.contents))+")",g+=" /Popup "+wt.objId+" 0 R",g+=" /P "+T.objId+" 0 R",g+=" /T ("+ae(st(Gt))+") >>",At.content=g;var Qt=At.objId+" 0 R";g="<</Type /Annot /Subtype /Popup "+(u="/Rect ["+O(l.bounds.x+30)+" "+E(l.bounds.y+l.bounds.h)+" "+O(l.bounds.x+l.bounds.w+30)+" "+E(l.bounds.y)+"] ")+" /Parent "+Qt,l.open&&(g+=" /Open true"),g+=" >>",wt.content=g,this.internal.write(At.objId,"0 R",wt.objId,"0 R");break;case"freetext":u="/Rect ["+O(l.bounds.x)+" "+E(l.bounds.y)+" "+O(l.bounds.x+l.bounds.w)+" "+E(l.bounds.y+l.bounds.h)+"] ";var Ft=l.color||"#000000";g="<</Type /Annot /Subtype /FreeText "+u+"/Contents ("+ae(mt(l.contents))+")",g+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+Ft+")",g+=" /Border [0 0 0]",g+=" >>",this.internal.write(g);break;case"link":if(l.options.name){var Ir=this.annotations._nameMap[l.options.name];l.options.pageNumber=Ir.page,l.options.top=Ir.y}else l.options.top||(l.options.top=0);if(u="/Rect ["+l.finalBounds.x+" "+l.finalBounds.y+" "+l.finalBounds.w+" "+l.finalBounds.h+"] ",g="",l.options.url)g="<</Type /Annot /Subtype /Link "+u+"/Border [0 0 0] /A <</S /URI /URI ("+ae(mt(l.options.url))+") >>";else if(l.options.pageNumber)switch(g="<</Type /Annot /Subtype /Link "+u+"/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":g+=" /Fit]";break;case"FitH":g+=" /FitH "+l.options.top+"]";break;case"FitV":l.options.left=l.options.left||0,g+=" /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),g+=" /XYZ "+l.options.left+" "+rn+" "+l.options.zoom+"]"}g!=""&&(g+=" >>",this.internal.write(g))}}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,u,g,O){var E=this.internal.getCurrentPageInfo(),T=this.internal.getCoordinateString,Z=this.internal.getVerticalCoordinateString;E.pageContext.annotations.push({finalBounds:{x:T(a),y:Z(l),w:T(a+u),h:Z(l+g)},options:O,type:"link"})},n.textWithLink=function(a,l,u,g){var O,E,T=this.getTextWidth(a),Z=this.internal.getLineHeight()/this.internal.scaleFactor;if(g.maxWidth!==void 0){E=g.maxWidth;var se=this.splitTextToSize(a,E).length;O=Math.ceil(Z*se)}else E=T,O=Z;return this.text(a,l,u,g),u+=.2*Z,g.align==="center"&&(l-=T/2),g.align==="right"&&(l-=T),this.link(l,u-Z,E,O,g),T},n.getTextWidth=function(a){var l=this.internal.getFontSize();return this.getStringUnitWidth(a)*l/this.internal.scaleFactor}}(da.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},u=[1570,1571,1573,1575];n.__arabicParser__={};var g=n.__arabicParser__.isInArabicSubstitutionA=function(At){return o[At.charCodeAt(0)]!==void 0},O=n.__arabicParser__.isArabicLetter=function(At){return typeof At=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(At)},E=n.__arabicParser__.isArabicEndLetter=function(At){return O(At)&&g(At)&&o[At.charCodeAt(0)].length<=2},T=n.__arabicParser__.isArabicAlfLetter=function(At){return O(At)&&u.indexOf(At.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(At){return O(At)&&g(At)&&o[At.charCodeAt(0)].length>=1};var Z=n.__arabicParser__.arabicLetterHasFinalForm=function(At){return O(At)&&g(At)&&o[At.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(At){return O(At)&&g(At)&&o[At.charCodeAt(0)].length>=3};var se=n.__arabicParser__.arabicLetterHasMedialForm=function(At){return O(At)&&g(At)&&o[At.charCodeAt(0)].length==4},Re=n.__arabicParser__.resolveLigatures=function(At){var wt=0,st=a,Gt="",Qt=0;for(wt=0;wt<At.length;wt+=1)st[At.charCodeAt(wt)]!==void 0?(Qt++,typeof(st=st[At.charCodeAt(wt)])=="number"&&(Gt+=String.fromCharCode(st),st=a,Qt=0),wt===At.length-1&&(st=a,Gt+=At.charAt(wt-(Qt-1)),wt-=Qt-1,Qt=0)):(st=a,Gt+=At.charAt(wt-Qt),wt-=Qt,Qt=0);return Gt};n.__arabicParser__.isArabicDiacritic=function(At){return At!==void 0&&l[At.charCodeAt(0)]!==void 0};var Ze=n.__arabicParser__.getCorrectForm=function(At,wt,st){return O(At)?g(At)===!1?-1:!Z(At)||!O(wt)&&!O(st)||!O(st)&&E(wt)||E(At)&&!O(wt)||E(At)&&T(wt)||E(At)&&E(wt)?0:se(At)&&O(wt)&&!E(wt)&&O(st)&&Z(st)?3:E(At)||!O(st)?1:2:-1},ae=function(At){var wt=0,st=0,Gt=0,Qt="",Ft="",Ir="",rn=(At=At||"").split("\\s+"),Wr=[];for(wt=0;wt<rn.length;wt+=1){for(Wr.push(""),st=0;st<rn[wt].length;st+=1)Qt=rn[wt][st],Ft=rn[wt][st-1],Ir=rn[wt][st+1],O(Qt)?(Gt=Ze(Qt,Ft,Ir),Wr[wt]+=Gt!==-1?String.fromCharCode(o[Qt.charCodeAt(0)][Gt]):Qt):Wr[wt]+=Qt;Wr[wt]=Re(Wr[wt])}return Wr.join(" ")},mt=n.__arabicParser__.processArabic=n.processArabic=function(){var At,wt=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,st=[];if(Array.isArray(wt)){var Gt=0;for(st=[],Gt=0;Gt<wt.length;Gt+=1)Array.isArray(wt[Gt])?st.push([ae(wt[Gt][0]),wt[Gt][1],wt[Gt][2]]):st.push([ae(wt[Gt])]);At=st}else At=ae(wt);return typeof arguments[0]=="string"?At:(arguments[0].text=At,arguments[0])};n.events.push(["preProcessText",mt])}(da.API),da.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 u=300;Object.defineProperty(this,"height",{get:function(){return u},set:function(E){u=isNaN(E)||Number.isInteger(E)===!1||E<0?300:E,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=u+1)}});var g=[];Object.defineProperty(this,"childNodes",{get:function(){return g},set:function(E){g=E}});var O={};Object.defineProperty(this,"style",{get:function(){return O},set:function(E){O=E}}),Object.defineProperty(this,"parentNode",{})};o.prototype.getContext=function(a,l){var u;if((a=a||"2d")!=="2d")return null;for(u in l)this.pdf.context2d.hasOwnProperty(u)&&(this.pdf.context2d[u]=l[u]);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}])}(da.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(),u.call(this))},u=function(){this.internal.__cell__.lastCell=new g,this.internal.__cell__.pages=1},g=function(){var T=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return T},set:function(At){T=At}});var Z=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Z},set:function(At){Z=At}});var se=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return se},set:function(At){se=At}});var Re=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Re},set:function(At){Re=At}});var Ze=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return Ze},set:function(At){Ze=At}});var ae=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return ae},set:function(At){ae=At}});var mt=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return mt},set:function(At){mt=At}}),this};g.prototype.clone=function(){return new g(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},g.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(T){return l.call(this),this.internal.__cell__.headerFunction=typeof T=="function"?T:void 0,this},n.getTextDimensions=function(T,Z){l.call(this);var se=(Z=Z||{}).fontSize||this.getFontSize(),Re=Z.font||this.getFont(),Ze=Z.scaleFactor||this.internal.scaleFactor,ae=0,mt=0,At=0,wt=this;if(!Array.isArray(T)&&typeof T!="string"){if(typeof T!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");T=String(T)}var st=Z.maxWidth;st>0?typeof T=="string"?T=this.splitTextToSize(T,st):Object.prototype.toString.call(T)==="[object Array]"&&(T=T.reduce(function(Qt,Ft){return Qt.concat(wt.splitTextToSize(Ft,st))},[])):T=Array.isArray(T)?T:[T];for(var Gt=0;Gt<T.length;Gt++)ae<(At=this.getStringUnitWidth(T[Gt],{font:Re})*se)&&(ae=At);return ae!==0&&(mt=T.length),{w:ae/=Ze,h:Math.max((mt*se*this.getLineHeightFactor()-se*(this.getLineHeightFactor()-1))/Ze,0)}},n.cellAddPage=function(){l.call(this),this.addPage();var T=this.internal.__cell__.margins||o;return this.internal.__cell__.lastCell=new g(T.left,T.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var O=n.cell=function(){var T;T=arguments[0]instanceof g?arguments[0]:new g(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),l.call(this);var Z=this.internal.__cell__.lastCell,se=this.internal.__cell__.padding,Re=this.internal.__cell__.margins||o,Ze=this.internal.__cell__.tableHeaderRow,ae=this.internal.__cell__.printHeaders;return Z.lineNumber!==void 0&&(Z.lineNumber===T.lineNumber?(T.x=(Z.x||0)+(Z.width||0),T.y=Z.y||0):Z.y+Z.height+T.height+Re.bottom>this.getPageHeight()?(this.cellAddPage(),T.y=Re.top,ae&&Ze&&(this.printHeaderRow(T.lineNumber,!0),T.y+=Ze[0].height)):T.y=Z.y+Z.height||T.y),T.text[0]!==void 0&&(this.rect(T.x,T.y,T.width,T.height,a===!0?"FD":void 0),T.align==="right"?this.text(T.text,T.x+T.width-se,T.y+se,{align:"right",baseline:"top"}):T.align==="center"?this.text(T.text,T.x+T.width/2,T.y+se,{align:"center",baseline:"top",maxWidth:T.width-se-se}):this.text(T.text,T.x+se,T.y+se,{align:"left",baseline:"top",maxWidth:T.width-se-se})),this.internal.__cell__.lastCell=T,this};n.table=function(T,Z,se,Re,Ze){if(l.call(this),!se)throw new Error("No data for PDF table.");var ae,mt,At,wt,st=[],Gt=[],Qt=[],Ft={},Ir={},rn=[],Wr=[],or=(Ze=Ze||{}).autoSize||!1,Lt=Ze.printHeaders!==!1,xr=Ze.css&&Ze.css["font-size"]!==void 0?16*Ze.css["font-size"]:Ze.fontSize||12,it=Ze.margins||Object.assign({width:this.getPageWidth()},o),xt=typeof Ze.padding=="number"?Ze.padding:3,Wt=Ze.headerBackgroundColor||"#c8c8c8",jt=Ze.headerTextColor||"#000";if(u.call(this),this.internal.__cell__.printHeaders=Lt,this.internal.__cell__.margins=it,this.internal.__cell__.table_font_size=xr,this.internal.__cell__.padding=xt,this.internal.__cell__.headerBackgroundColor=Wt,this.internal.__cell__.headerTextColor=jt,this.setFontSize(xr),Re==null)Gt=st=Object.keys(se[0]),Qt=st.map(function(){return"left"});else if(Array.isArray(Re)&&(0,me.Z)(Re[0])==="object")for(st=Re.map(function(Zn){return Zn.name}),Gt=Re.map(function(Zn){return Zn.prompt||Zn.name||""}),Qt=Re.map(function(Zn){return Zn.align||"left"}),ae=0;ae<Re.length;ae+=1)Ir[Re[ae].name]=.7499990551181103*Re[ae].width;else Array.isArray(Re)&&typeof Re[0]=="string"&&(Gt=st=Re,Qt=st.map(function(){return"left"}));if(or||Array.isArray(Re)&&typeof Re[0]=="string")for(ae=0;ae<st.length;ae+=1){for(Ft[wt=st[ae]]=se.map(function(Zn){return Zn[wt]}),this.setFont(void 0,"bold"),rn.push(this.getTextDimensions(Gt[ae],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),mt=Ft[wt],this.setFont(void 0,"normal"),At=0;At<mt.length;At+=1)rn.push(this.getTextDimensions(mt[At],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);Ir[wt]=Math.max.apply(null,rn)+xt+xt,rn=[]}if(Lt){var Tr={};for(ae=0;ae<st.length;ae+=1)Tr[st[ae]]={},Tr[st[ae]].text=Gt[ae],Tr[st[ae]].align=Qt[ae];var Zr=E.call(this,Tr,Ir);Wr=st.map(function(Zn){return new g(T,Z,Ir[Zn],Zr,Tr[Zn].text,void 0,Tr[Zn].align)}),this.setTableHeaderRow(Wr),this.printHeaderRow(1,!1)}var Jr=Re.reduce(function(Zn,Sn){return Zn[Sn.name]=Sn.align,Zn},{});for(ae=0;ae<se.length;ae+=1){"rowStart"in Ze&&Ze.rowStart instanceof Function&&Ze.rowStart({row:ae,data:se[ae]},this);var Mr=E.call(this,se[ae],Ir);for(At=0;At<st.length;At+=1){var Gr=se[ae][st[At]];"cellStart"in Ze&&Ze.cellStart instanceof Function&&Ze.cellStart({row:ae,col:At,data:Gr},this),O.call(this,new g(T,Z,Ir[st[At]],Mr,Gr,ae+2,Jr[st[At]]))}}return this.internal.__cell__.table_x=T,this.internal.__cell__.table_y=Z,this};var E=function(T,Z){var se=this.internal.__cell__.padding,Re=this.internal.__cell__.table_font_size,Ze=this.internal.scaleFactor;return Object.keys(T).map(function(ae){var mt=T[ae];return this.splitTextToSize(mt.hasOwnProperty("text")?mt.text:mt,Z[ae]-se-se)},this).map(function(ae){return this.getLineHeightFactor()*ae.length*Re/Ze+se+se},this).reduce(function(ae,mt){return Math.max(ae,mt)},0)};n.setTableHeaderRow=function(T){l.call(this),this.internal.__cell__.tableHeaderRow=T},n.printHeaderRow=function(T,Z){if(l.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var se;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 g(Re[0],Re[1],Re[2],Re[3],void 0,-1)}this.setFont(void 0,"bold");for(var Ze=[],ae=0;ae<this.internal.__cell__.tableHeaderRow.length;ae+=1){se=this.internal.__cell__.tableHeaderRow[ae].clone(),Z&&(se.y=this.internal.__cell__.margins.top||0,Ze.push(se)),se.lineNumber=T;var mt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),O.call(this,se),this.setTextColor(mt)}Ze.length>0&&this.setTableHeaderRow(Ze),this.setFont(void 0,"normal"),a=!1}}(da.API);var Ec={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},dd=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Yc=xo(dd),su=[100,200,300,400,500,600,700,800,900],AA=xo(su);function Yu(n){var o=n.family.replace(/"|'/g,"").toLowerCase(),a=function(g){return Ec[g=g||"normal"]?g:"normal"}(n.style),l=function(g){return g?typeof g=="number"?g>=100&&g<=900&&g%100==0?g:400:/^\d00$/.test(g)?parseInt(g):g==="bold"?700:400:400}(n.weight),u=function(g){return typeof Yc[g=g||"normal"]=="number"?g:"normal"}(n.stretch);return{family:o,style:a,weight:l,stretch:u,src:n.src||[],ref:n.ref||{name:o,style:[u,a,l].join(" ")}}}function dA(n,o,a,l){var u;for(u=a;u>=0&&u<o.length;u+=l)if(n[o[u]])return n[o[u]];for(u=a;u>=0&&u<o.length;u-=l)if(n[o[u]])return n[o[u]]}var TA={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},Mu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function UA(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function $d(n){return n.trimLeft()}function qu(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 fd(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 Kc,vg,Hh,jh,om,bg,Gm,yg,Xm=["times"];function sm(n,o,a,l,u){var g=4,O=xg;switch(u){case da.API.image_compression.FAST:g=1,O=wg;break;case da.API.image_compression.MEDIUM:g=6,O=j0;break;case da.API.image_compression.SLOW:g=9,O=Jm}n=function(T,Z,se,Re){for(var Ze,ae=T.length/Z,mt=new Uint8Array(T.length+ae),At=[Jg,wg,xg,j0,Jm],wt=0;wt<ae;wt+=1){var st=wt*Z,Gt=T.subarray(st,st+Z);if(Re)mt.set(Re(Gt,se,Ze),st+wt);else{for(var Qt=At.length,Ft=[],Ir=0;Ir<Qt;Ir+=1)Ft[Ir]=At[Ir](Gt,se,Ze);var rn=Bp(Ft.concat());mt.set(Ft[rn],st+wt)}Ze=Gt}return mt}(n,o,Math.ceil(a*l/8),O);var E=pi(n,{level:g});return da.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 u=0;u<a;u+=1){var g=n[u-o]||0;l[u+1]=n[u]-g+256&255}return l}function xg(n,o,a){var l=n.length,u=[];u[0]=2;for(var g=0;g<l;g+=1){var O=a&&a[g]||0;u[g+1]=n[g]-O+256&255}return u}function j0(n,o,a){var l=n.length,u=[];u[0]=3;for(var g=0;g<l;g+=1){var O=n[g-o]||0,E=a&&a[g]||0;u[g+1]=n[g]+256-(O+E>>>1)&255}return u}function Jm(n,o,a){var l=n.length,u=[];u[0]=4;for(var g=0;g<l;g+=1){var O=lm(n[g-o]||0,a&&a[g]||0,a&&a[g-o]||0);u[g+1]=n[g]-O+256&255}return u}function lm(n,o,a){if(n===o&&o===a)return n;var l=Math.abs(o-a),u=Math.abs(n-a),g=Math.abs(n+o-a-a);return l<=u&&l<=g?n:u<=g?o:a}function Bp(n){var o=n.map(function(a){return a.reduce(function(l,u){return l+Math.abs(u)},0)});return o.indexOf(Math.min.apply(null,o))}function cm(n,o,a){var l=o*a,u=Math.floor(l/8),g=16-(l-8*u+a),O=(1<<a)-1;return Sp(n,u)>>g&O}function zh(n,o,a,l){var u=a*l,g=Math.floor(u/8),O=16-(u-8*g+l),E=(1<<l)-1,T=(o&E)<<O;(function(Z,se,Re){if(se+1<Z.byteLength)Z.setUint16(se,Re,!1);else{var Ze=Re>>8&255;Z.setUint8(se,Ze)}})(n,g,Sp(n,g)&~(E<<O)&65535|T)}function Sp(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,u=n[o++],g=u>>7,O=1<<1+(7&u);n[o++],n[o++];var E=null,T=null;g&&(E=o,T=O,o+=3*O);var Z=!0,se=[],Re=0,Ze=null,ae=0,mt=null;for(this.width=a,this.height=l;Z&&o<n.length;)switch(n[o++]){case 33:switch(n[o++]){case 255:if(n[o]!==11||n[o+1]==78&&n[o+2]==69&&n[o+3]==84&&n[o+4]==83&&n[o+5]==67&&n[o+6]==65&&n[o+7]==80&&n[o+8]==69&&n[o+9]==50&&n[o+10]==46&&n[o+11]==48&&n[o+12]==3&&n[o+13]==1&&n[o+16]==0)o+=14,mt=n[o++]|n[o++]<<8,o++;else for(o+=12;;){if(!((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 At=n[o++];Re=n[o++]|n[o++]<<8,Ze=n[o++],1&At||(Ze=null),ae=At>>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 wt=n[o++]|n[o++]<<8,st=n[o++]|n[o++]<<8,Gt=n[o++]|n[o++]<<8,Qt=n[o++]|n[o++]<<8,Ft=n[o++],Ir=Ft>>6&1,rn=1<<1+(7&Ft),Wr=E,or=T,Lt=!1;Ft>>7&&(Lt=!0,Wr=o,or=rn,o+=3*rn);var xr=o;for(o++;;){var it;if(!((it=n[o++])>=0))throw Error("Invalid block size");if(it===0)break;o+=it}se.push({x:wt,y:st,width:Gt,height:Qt,has_local_palette:Lt,palette_offset:Wr,palette_size:or,data_offset:xr,data_length:o-xr,transparent_index:Ze,interlaced:!!Ir,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 se.length},this.loopCount=function(){return mt},this.frameInfo=function(xt){if(xt<0||xt>=se.length)throw new Error("Frame index out of range.");return se[xt]},this.decodeAndBlitFrameBGRA=function(xt,Wt){var jt=this.frameInfo(xt),Tr=jt.width*jt.height,Zr=new Uint8Array(Tr);Cg(n,jt.data_offset,Zr,Tr);var Jr=jt.palette_offset,Mr=jt.transparent_index;Mr===null&&(Mr=256);var Gr=jt.width,Zn=a-Gr,Sn=Gr,tt=4*(jt.y*a+jt.x),It=4*((jt.y+jt.height)*a+jt.x),Nt=tt,qt=4*Zn;jt.interlaced===!0&&(qt+=4*a*7);for(var Ar=8,Er=0,Kr=Zr.length;Er<Kr;++Er){var $r=Zr[Er];if(Sn===0&&(Sn=Gr,(Nt+=qt)>=It&&(qt=4*Zn+4*a*(Ar-1),Nt=tt+(Gr+Zn)*(Ar<<1),Ar>>=1)),$r===Mr)Nt+=4;else{var mn=n[Jr+3*$r],jn=n[Jr+3*$r+1],gi=n[Jr+3*$r+2];Wt[Nt++]=gi,Wt[Nt++]=jn,Wt[Nt++]=mn,Wt[Nt++]=255}--Sn}},this.decodeAndBlitFrameRGBA=function(xt,Wt){var jt=this.frameInfo(xt),Tr=jt.width*jt.height,Zr=new Uint8Array(Tr);Cg(n,jt.data_offset,Zr,Tr);var Jr=jt.palette_offset,Mr=jt.transparent_index;Mr===null&&(Mr=256);var Gr=jt.width,Zn=a-Gr,Sn=Gr,tt=4*(jt.y*a+jt.x),It=4*((jt.y+jt.height)*a+jt.x),Nt=tt,qt=4*Zn;jt.interlaced===!0&&(qt+=4*a*7);for(var Ar=8,Er=0,Kr=Zr.length;Er<Kr;++Er){var $r=Zr[Er];if(Sn===0&&(Sn=Gr,(Nt+=qt)>=It&&(qt=4*Zn+4*a*(Ar-1),Nt=tt+(Gr+Zn)*(Ar<<1),Ar>>=1)),$r===Mr)Nt+=4;else{var mn=n[Jr+3*$r],jn=n[Jr+3*$r+1],gi=n[Jr+3*$r+2];Wt[Nt++]=mn,Wt[Nt++]=jn,Wt[Nt++]=gi,Wt[Nt++]=255}--Sn}}}function Cg(n,o,a,l){for(var u=n[o++],g=1<<u,O=g+1,E=O+1,T=u+1,Z=(1<<T)-1,se=0,Re=0,Ze=0,ae=n[o++],mt=new Int32Array(4096),At=null;;){for(;se<16&&ae!==0;)Re|=n[o++]<<se,se+=8,ae===1?ae=n[o++]:--ae;if(se<T)break;var wt=Re&Z;if(Re>>=T,se-=T,wt!==g){if(wt===O)break;for(var st=wt<E?wt:At,Gt=0,Qt=st;Qt>g;)Qt=mt[Qt]>>8,++Gt;var Ft=Qt;if(Ze+Gt+(st!==wt?1:0)>l)return void Os.log("Warning, gif stream longer than expected.");a[Ze++]=Ft;var Ir=Ze+=Gt;for(st!==wt&&(a[Ze++]=Ft),Qt=st;Gt--;)Qt=mt[Qt],a[--Ir]=255&Qt,Qt>>=8;At!==null&&E<4096&&(mt[E++]=At<<8|Ft,E>=Z+1&&T<12&&(++T,Z=Z<<1|1)),At=wt}else E=O+1,Z=(1<<(T=u+1))-1,At=null}return Ze!==l&&Os.log("Warning, gif stream shorter than expected."),a}function qm(n){var o,a,l,u,g,O=Math.floor,E=new Array(64),T=new Array(64),Z=new Array(64),se=new Array(64),Re=new Array(65535),Ze=new Array(65535),ae=new Array(64),mt=new Array(64),At=[],wt=0,st=7,Gt=new Array(64),Qt=new Array(64),Ft=new Array(64),Ir=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],or=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Lt=[0,1,2,3,4,5,6,7,8,9,10,11],xr=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],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],xt=[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],jt=[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(tt,It){for(var Nt=0,qt=0,Ar=new Array,Er=1;Er<=16;Er++){for(var Kr=1;Kr<=tt[Er];Kr++)Ar[It[qt]]=[],Ar[It[qt]][0]=Nt,Ar[It[qt]][1]=Er,qt++,Nt++;Nt*=2}return Ar}function Jr(tt){for(var It=tt[0],Nt=tt[1]-1;Nt>=0;)It&1<<Nt&&(wt|=1<<st),Nt--,--st<0&&(wt==255?(Mr(255),Mr(0)):Mr(wt),st=7,wt=0)}function Mr(tt){At.push(tt)}function Gr(tt){Mr(tt>>8&255),Mr(255&tt)}function Zn(tt,It,Nt,qt,Ar){for(var Er,Kr=Ar[0],$r=Ar[240],mn=function(Rn,Da){var Pi,xa,La,is,as,Xa,Xo,Qo,ha,Eo,Ca=0;for(ha=0;ha<8;++ha){Pi=Rn[Ca],xa=Rn[Ca+1],La=Rn[Ca+2],is=Rn[Ca+3],as=Rn[Ca+4],Xa=Rn[Ca+5],Xo=Rn[Ca+6];var pc=Pi+(Qo=Rn[Ca+7]),ws=Pi-Qo,Po=xa+Xo,Ko=xa-Xo,Nl=La+Xa,Ea=La-Xa,dl=is+as,Ja=is-as,fo=pc+dl,al=pc-dl,no=Po+Nl,Oa=Po-Nl;Rn[Ca]=fo+no,Rn[Ca+4]=fo-no;var Hs=.707106781*(Oa+al);Rn[Ca+2]=al+Hs,Rn[Ca+6]=al-Hs;var Zh=.382683433*((fo=Ja+Ea)-(Oa=Ko+ws)),Hc=.5411961*fo+Zh,Mf=1.306562965*Oa+Zh,Zd=.707106781*(no=Ea+Ko),ja=ws+Zd,Lf=ws-Zd;Rn[Ca+5]=Lf+Hc,Rn[Ca+3]=Lf-Hc,Rn[Ca+1]=ja+Mf,Rn[Ca+7]=ja-Mf,Ca+=8}for(Ca=0,ha=0;ha<8;++ha){Pi=Rn[Ca],xa=Rn[Ca+8],La=Rn[Ca+16],is=Rn[Ca+24],as=Rn[Ca+32],Xa=Rn[Ca+40],Xo=Rn[Ca+48];var kf=Pi+(Qo=Rn[Ca+56]),mA=Pi-Qo,gA=xa+Xo,ac=xa-Xo,Is=La+Xa,fl=La-Xa,Vd=is+as,Wd=is-as,RA=kf+Vd,vA=kf-Vd,lu=gA+Is,bA=gA-Is;Rn[Ca]=RA+lu,Rn[Ca+32]=RA-lu;var QA=.707106781*(bA+vA);Rn[Ca+16]=vA+QA,Rn[Ca+48]=vA-QA;var Vh=.382683433*((RA=Wd+fl)-(bA=ac+mA)),Gd=.5411961*RA+Vh,Wh=1.306562965*bA+Vh,Gh=.707106781*(lu=fl+ac),z0=mA+Gh,Xh=mA-Gh;Rn[Ca+40]=Xh+Gd,Rn[Ca+24]=Xh-Gd,Rn[Ca+8]=z0+Wh,Rn[Ca+56]=z0-Wh,Ca++}for(ha=0;ha<64;++ha)Eo=Rn[ha]*Da[ha],ae[ha]=Eo>0?Eo+.5|0:Eo-.5|0;return ae}(tt,It),jn=0;jn<64;++jn)mt[Wr[jn]]=mn[jn];var gi=mt[0]-Nt;Nt=mt[0],gi==0?Jr(qt[0]):(Jr(qt[Ze[Er=32767+gi]]),Jr(Re[Er]));for(var Ci=63;Ci>0&&mt[Ci]==0;)Ci--;if(Ci==0)return Jr(Kr),Nt;for(var Sa,gt=1;gt<=Ci;){for(var ki=gt;mt[gt]==0&&gt<=Ci;)++gt;var No=gt-ki;if(No>=16){Sa=No>>4;for(var Ha=1;Ha<=Sa;++Ha)Jr($r);No&=15}Er=32767+mt[gt],Jr(Ar[(No<<4)+Ze[Er]]),Jr(Re[Er]),gt++}return Ci!=63&&Jr(Kr),Nt}function Sn(tt){tt=Math.min(Math.max(tt,1),100),g!=tt&&(function(It){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],qt=0;qt<64;qt++){var Ar=O((Nt[qt]*It+50)/100);Ar=Math.min(Math.max(Ar,1),255),E[Wr[qt]]=Ar}for(var Er=[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],Kr=0;Kr<64;Kr++){var $r=O((Er[Kr]*It+50)/100);$r=Math.min(Math.max($r,1),255),T[Wr[Kr]]=$r}for(var mn=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],jn=0,gi=0;gi<8;gi++)for(var Ci=0;Ci<8;Ci++)Z[jn]=1/(E[Wr[jn]]*mn[gi]*mn[Ci]*8),se[jn]=1/(T[Wr[jn]]*mn[gi]*mn[Ci]*8),jn++}(tt<50?Math.floor(5e3/tt):Math.floor(200-2*tt)),g=tt)}this.encode=function(tt,It){It&&Sn(It),At=new Array,wt=0,st=7,Gr(65496),Gr(65504),Gr(16),Mr(74),Mr(70),Mr(73),Mr(70),Mr(0),Mr(1),Mr(1),Mr(0),Gr(1),Gr(1),Mr(0),Mr(0),function(){Gr(65499),Gr(132),Mr(0);for(var xa=0;xa<64;xa++)Mr(E[xa]);Mr(1);for(var La=0;La<64;La++)Mr(T[La])}(),function(xa,La){Gr(65472),Gr(17),Mr(8),Gr(La),Gr(xa),Mr(3),Mr(1),Mr(17),Mr(0),Mr(2),Mr(17),Mr(1),Mr(3),Mr(17),Mr(1)}(tt.width,tt.height),function(){Gr(65476),Gr(418),Mr(0);for(var xa=0;xa<16;xa++)Mr(or[xa+1]);for(var La=0;La<=11;La++)Mr(Lt[La]);Mr(16);for(var is=0;is<16;is++)Mr(xr[is+1]);for(var as=0;as<=161;as++)Mr(it[as]);Mr(1);for(var Xa=0;Xa<16;Xa++)Mr(xt[Xa+1]);for(var Xo=0;Xo<=11;Xo++)Mr(Wt[Xo]);Mr(17);for(var Qo=0;Qo<16;Qo++)Mr(jt[Qo+1]);for(var ha=0;ha<=161;ha++)Mr(Tr[ha])}(),Gr(65498),Gr(12),Mr(3),Mr(1),Mr(0),Mr(2),Mr(17),Mr(3),Mr(17),Mr(0),Mr(63),Mr(0);var Nt=0,qt=0,Ar=0;wt=0,st=7,this.encode.displayName="_encode_";for(var Er,Kr,$r,mn,jn,gi,Ci,Sa,gt,ki=tt.data,No=tt.width,Ha=tt.height,Rn=4*No,Da=0;Da<Ha;){for(Er=0;Er<Rn;){for(jn=Rn*Da+Er,Ci=-1,Sa=0,gt=0;gt<64;gt++)gi=jn+(Sa=gt>>3)*Rn+(Ci=4*(7&gt)),Da+Sa>=Ha&&(gi-=Rn*(Da+1+Sa-Ha)),Er+Ci>=Rn&&(gi-=Er+Ci-Rn+4),Kr=ki[gi++],$r=ki[gi++],mn=ki[gi++],Gt[gt]=(rn[Kr]+rn[$r+256|0]+rn[mn+512|0]>>16)-128,Qt[gt]=(rn[Kr+768|0]+rn[$r+1024|0]+rn[mn+1280|0]>>16)-128,Ft[gt]=(rn[Kr+1280|0]+rn[$r+1536|0]+rn[mn+1792|0]>>16)-128;Nt=Zn(Gt,Z,Nt,o,l),qt=Zn(Qt,se,qt,a,u),Ar=Zn(Ft,se,Ar,a,u),Er+=32}Da+=8}if(st>=0){var Pi=[];Pi[1]=st+1,Pi[0]=(1<<st+1)-1,Jr(Pi)}return Gr(65497),new Uint8Array(At)},n=n||50,function(){for(var tt=String.fromCharCode,It=0;It<256;It++)Ir[It]=tt(It)}(),o=Zr(or,Lt),a=Zr(xt,Wt),l=Zr(xr,it),u=Zr(jt,Tr),function(){for(var tt=1,It=2,Nt=1;Nt<=15;Nt++){for(var qt=tt;qt<It;qt++)Ze[32767+qt]=Nt,Re[32767+qt]=[],Re[32767+qt][1]=Nt,Re[32767+qt][0]=qt;for(var Ar=-(It-1);Ar<=-tt;Ar++)Ze[32767+Ar]=Nt,Re[32767+Ar]=[],Re[32767+Ar][1]=Nt,Re[32767+Ar][0]=It-1+Ar;tt<<=1,It<<=1}}(),function(){for(var tt=0;tt<256;tt++)rn[tt]=19595*tt,rn[tt+256|0]=38470*tt,rn[tt+512|0]=7471*tt+32768,rn[tt+768|0]=-11059*tt,rn[tt+1024|0]=-21709*tt,rn[tt+1280|0]=32768*tt+8421375,rn[tt+1536|0]=-27439*tt,rn[tt+1792|0]=-5329*tt}(),Sn(n)}function fA(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 Ep(n){function o(Lt){if(!Lt)throw Error("assert :P")}function a(Lt,xr,it){for(var xt=0;4>xt;xt++)if(Lt[xr+xt]!=it.charCodeAt(xt))return!0;return!1}function l(Lt,xr,it,xt,Wt){for(var jt=0;jt<Wt;jt++)Lt[xr+jt]=it[xt+jt]}function u(Lt,xr,it,xt){for(var Wt=0;Wt<xt;Wt++)Lt[xr+Wt]=it}function g(Lt){return new Int32Array(Lt)}function O(Lt,xr){for(var it=[],xt=0;xt<Lt;xt++)it.push(new xr);return it}function E(Lt,xr){var it=[];return function xt(Wt,jt,Tr){for(var Zr=Tr[jt],Jr=0;Jr<Zr&&(Wt.push(Tr.length>jt+1?[]:new xr),!(Tr.length<jt+1));Jr++)xt(Wt[Jr],jt+1,Tr)}(it,0,Lt),it}var T=function(){var Lt=this;function xr(p,B){for(var U=1<<B-1>>>0;p&U;)U>>>=1;return U?(p&U-1)+U:p}function it(p,B,U,ge,Ke){o(!(ge%U));do p[B+(ge-=U)]=Ke;while(0<ge)}function xt(p,B,U,ge,Ke){if(o(2328>=Ke),512>=Ke)var Ve=g(512);else if((Ve=g(Ke))==null)return 0;return function(Ge,ot,ut,ft,Ht,vr){var Ct,ir,mr=ot,Xr=1<<ut,Br=g(16),ln=g(16);for(o(Ht!=0),o(ft!=null),o(Ge!=null),o(0<ut),ir=0;ir<Ht;++ir){if(15<ft[ir])return 0;++Br[ft[ir]]}if(Br[0]==Ht)return 0;for(ln[1]=0,Ct=1;15>Ct;++Ct){if(Br[Ct]>1<<Ct)return 0;ln[Ct+1]=ln[Ct]+Br[Ct]}for(ir=0;ir<Ht;++ir)Ct=ft[ir],0<ft[ir]&&(vr[ln[Ct]++]=ir);if(ln[15]==1)return(ft=new Wt).g=0,ft.value=vr[0],it(Ge,mr,1,Xr,ft),Xr;var vn,Vn=-1,Ln=Xr-1,_a=0,la=1,jo=1,va=1<<ut;for(ir=0,Ct=1,Ht=2;Ct<=ut;++Ct,Ht<<=1){if(la+=jo<<=1,0>(jo-=Br[Ct]))return 0;for(;0<Br[Ct];--Br[Ct])(ft=new Wt).g=Ct,ft.value=vr[ir++],it(Ge,mr+_a,Ht,va,ft),_a=xr(_a,Ct)}for(Ct=ut+1,Ht=2;15>=Ct;++Ct,Ht<<=1){if(la+=jo<<=1,0>(jo-=Br[Ct]))return 0;for(;0<Br[Ct];--Br[Ct]){if(ft=new Wt,(_a&Ln)!=Vn){for(mr+=va,vn=1<<(Vn=Ct)-ut;15>Vn&&!(0>=(vn-=Br[Vn]));)++Vn,vn<<=1;Xr+=va=1<<(vn=Vn-ut),Ge[ot+(Vn=_a&Ln)].g=vn+ut,Ge[ot+Vn].value=mr-ot-Vn}ft.g=Ct-ut,ft.value=vr[ir++],it(Ge,mr+(_a>>ut),Ht,va,ft),_a=xr(_a,Ct)}}return la!=2*ln[15]-1?0:Xr}(p,B,U,ge,Ke,Ve)}function Wt(){this.value=this.g=0}function jt(){this.value=this.g=0}function Tr(){this.G=O(5,Wt),this.H=g(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=O(o0,jt)}function Zr(p,B,U,ge){o(p!=null),o(B!=null),o(2147483648>ge),p.Ca=254,p.I=0,p.b=-8,p.Ka=0,p.oa=B,p.pa=U,p.Jd=B,p.Yc=U+ge,p.Zc=4<=ge?U+ge-4+1:U,Kr(p)}function Jr(p,B){for(var U=0;0<B--;)U|=mn(p,128)<<B;return U}function Mr(p,B){var U=Jr(p,B);return $r(p)?-U:U}function Gr(p,B,U,ge){var Ke,Ve=0;for(o(p!=null),o(B!=null),o(4294967288>ge),p.Sb=ge,p.Ra=0,p.u=0,p.h=0,4<ge&&(ge=4),Ke=0;Ke<ge;++Ke)Ve+=B[U+Ke]<<8*Ke;p.Ra=Ve,p.bb=ge,p.oa=B,p.pa=U}function Zn(p){for(;8<=p.u&&p.bb<p.Sb;)p.Ra>>>=8,p.Ra+=p.oa[p.pa+p.bb]<<s0-8>>>0,++p.bb,p.u-=8;qt(p)&&(p.h=1,p.u=0)}function Sn(p,B){if(o(0<=B),!p.h&&B<=wA){var U=Nt(p)&Ou[B];return p.u+=B,Zn(p),U}return p.h=1,p.u=0}function tt(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function It(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Nt(p){return p.Ra>>>(p.u&s0-1)>>>0}function qt(p){return o(p.bb<=p.Sb),p.h||p.bb==p.Sb&&p.u>s0}function Ar(p,B){p.u=B,p.h=qt(p)}function Er(p){p.u>=gh&&(o(p.u>=gh),Zn(p))}function Kr(p){o(p!=null&&p.oa!=null),p.pa<p.Zc?(p.I=(p.oa[p.pa++]|p.I<<8)>>>0,p.b+=8):(o(p!=null&&p.oa!=null),p.pa<p.Yc?(p.b+=8,p.I=p.oa[p.pa++]|p.I<<8):p.Ka?p.b=0:(p.I<<=8,p.b+=8,p.Ka=1))}function $r(p){return Jr(p,1)}function mn(p,B){var U=p.Ca;0>p.b&&Kr(p);var ge=p.b,Ke=U*B>>>8,Ve=(p.I>>>ge>Ke)+0;for(Ve?(U-=Ke,p.I-=Ke+1<<ge>>>0):U=Ke+1,ge=U,Ke=0;256<=ge;)Ke+=8,ge>>=8;return ge=7^Ke+af[ge],p.b-=ge,p.Ca=(U<<ge)-1,Ve}function jn(p,B,U){p[B+0]=U>>24&255,p[B+1]=U>>16&255,p[B+2]=U>>8&255,p[B+3]=255&U}function gi(p,B){return p[B+0]|p[B+1]<<8}function Ci(p,B){return gi(p,B)|p[B+2]<<16}function Sa(p,B){return gi(p,B)|gi(p,B+2)<<16}function gt(p,B){var U=1<<B;return o(p!=null),o(0<B),p.X=g(U),p.X==null?0:(p.Mb=32-B,p.Xa=B,1)}function ki(p,B){o(p!=null),o(B!=null),o(p.Xa==B.Xa),l(B.X,0,p.X,0,1<<B.Xa)}function No(){this.X=[],this.Xa=this.Mb=0}function Ha(p,B,U,ge){o(U!=null),o(ge!=null);var Ke=U[0],Ve=ge[0];return Ke==0&&(Ke=(p*Ve+B/2)/B),Ve==0&&(Ve=(B*Ke+p/2)/p),0>=Ke||0>=Ve?0:(U[0]=Ke,ge[0]=Ve,1)}function Rn(p,B){return p+(1<<B)-1>>>B}function Da(p,B){return((4278255360&p)+(4278255360&B)>>>0&4278255360)+((16711935&p)+(16711935&B)>>>0&16711935)>>>0}function Pi(p,B){Lt[B]=function(U,ge,Ke,Ve,Ge,ot,ut){var ft;for(ft=0;ft<Ge;++ft){var Ht=Lt[p](ot[ut+ft-1],Ke,Ve+ft);ot[ut+ft]=Da(U[ge+ft],Ht)}}}function xa(){this.ud=this.hd=this.jd=0}function La(p,B){return((4278124286&(p^B))>>>1)+(p&B)>>>0}function is(p){return 0<=p&&256>p?p:0>p?0:255<p?255:void 0}function as(p,B){return is(p+(p-B+.5>>1))}function Xa(p,B,U){return Math.abs(B-U)-Math.abs(p-U)}function Xo(p,B,U,ge,Ke,Ve,Ge){for(ge=Ve[Ge-1],U=0;U<Ke;++U)Ve[Ge+U]=ge=Da(p[B+U],ge)}function Qo(p,B,U,ge,Ke){var Ve;for(Ve=0;Ve<U;++Ve){var Ge=p[B+Ve],ot=Ge>>8&255,ut=16711935&(ut=(ut=16711935&Ge)+((ot<<16)+ot));ge[Ke+Ve]=(4278255360&Ge)+ut>>>0}}function ha(p,B){B.jd=255&p,B.hd=p>>8&255,B.ud=p>>16&255}function Eo(p,B,U,ge,Ke,Ve){var Ge;for(Ge=0;Ge<ge;++Ge){var ot=B[U+Ge],ut=ot>>>8,ft=ot,Ht=255&(Ht=(Ht=ot>>>16)+((p.jd<<24>>24)*(ut<<24>>24)>>>5));ft=255&(ft=(ft+=(p.hd<<24>>24)*(ut<<24>>24)>>>5)+((p.ud<<24>>24)*(Ht<<24>>24)>>>5)),Ke[Ve+Ge]=(4278255360&ot)+(Ht<<16)+ft}}function Ca(p,B,U,ge,Ke){Lt[B]=function(Ve,Ge,ot,ut,ft,Ht,vr,Ct,ir){for(ut=vr;ut<Ct;++ut)for(vr=0;vr<ir;++vr)ft[Ht++]=Ke(ot[ge(Ve[Ge++])])},Lt[p]=function(Ve,Ge,ot,ut,ft,Ht,vr){var Ct=8>>Ve.b,ir=Ve.Ea,mr=Ve.K[0],Xr=Ve.w;if(8>Ct)for(Ve=(1<<Ve.b)-1,Xr=(1<<Ct)-1;Ge<ot;++Ge){var Br,ln=0;for(Br=0;Br<ir;++Br)Br&Ve||(ln=ge(ut[ft++])),Ht[vr++]=Ke(mr[ln&Xr]),ln>>=Ct}else Lt["VP8LMapColor"+U](ut,ft,mr,Xr,Ht,vr,Ge,ot,ir)}}function pc(p,B,U,ge,Ke){for(U=B+U;B<U;){var Ve=p[B++];ge[Ke++]=Ve>>16&255,ge[Ke++]=Ve>>8&255,ge[Ke++]=255&Ve}}function ws(p,B,U,ge,Ke){for(U=B+U;B<U;){var Ve=p[B++];ge[Ke++]=Ve>>16&255,ge[Ke++]=Ve>>8&255,ge[Ke++]=255&Ve,ge[Ke++]=Ve>>24&255}}function Po(p,B,U,ge,Ke){for(U=B+U;B<U;){var Ve=(Ge=p[B++])>>16&240|Ge>>12&15,Ge=240&Ge|Ge>>28&15;ge[Ke++]=Ve,ge[Ke++]=Ge}}function Ko(p,B,U,ge,Ke){for(U=B+U;B<U;){var Ve=(Ge=p[B++])>>16&248|Ge>>13&7,Ge=Ge>>5&224|Ge>>3&31;ge[Ke++]=Ve,ge[Ke++]=Ge}}function Nl(p,B,U,ge,Ke){for(U=B+U;B<U;){var Ve=p[B++];ge[Ke++]=255&Ve,ge[Ke++]=Ve>>8&255,ge[Ke++]=Ve>>16&255}}function Ea(p,B,U,ge,Ke,Ve){if(Ve==0)for(U=B+U;B<U;)jn(ge,((Ve=p[B++])[0]>>24|Ve[1]>>8&65280|Ve[2]<<8&16711680|Ve[3]<<24)>>>0),Ke+=32;else l(ge,Ke,p,B,U)}function dl(p,B){Lt[B][0]=Lt[p+"0"],Lt[B][1]=Lt[p+"1"],Lt[B][2]=Lt[p+"2"],Lt[B][3]=Lt[p+"3"],Lt[B][4]=Lt[p+"4"],Lt[B][5]=Lt[p+"5"],Lt[B][6]=Lt[p+"6"],Lt[B][7]=Lt[p+"7"],Lt[B][8]=Lt[p+"8"],Lt[B][9]=Lt[p+"9"],Lt[B][10]=Lt[p+"10"],Lt[B][11]=Lt[p+"11"],Lt[B][12]=Lt[p+"12"],Lt[B][13]=Lt[p+"13"],Lt[B][14]=Lt[p+"0"],Lt[B][15]=Lt[p+"0"]}function Ja(p){return p==dg||p==lf||p==sc||p==d0}function fo(){this.eb=[],this.size=this.A=this.fb=0}function al(){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 no(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new fo,this.f.kb=new al,this.sd=null}function Oa(){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(p){return alert("todo:WebPSamplerProcessPlane"),p.T}function Hc(p,B){var U=p.T,ge=B.ba.f.RGBA,Ke=ge.eb,Ve=ge.fb+p.ka*ge.A,Ge=ZA[B.ba.S],ot=p.y,ut=p.O,ft=p.f,Ht=p.N,vr=p.ea,Ct=p.W,ir=B.cc,mr=B.dc,Xr=B.Mc,Br=B.Nc,ln=p.ka,vn=p.ka+p.T,Vn=p.U,Ln=Vn+1>>1;for(ln==0?Ge(ot,ut,null,null,ft,Ht,vr,Ct,ft,Ht,vr,Ct,Ke,Ve,null,null,Vn):(Ge(B.ec,B.fc,ot,ut,ir,mr,Xr,Br,ft,Ht,vr,Ct,Ke,Ve-ge.A,Ke,Ve,Vn),++U);ln+2<vn;ln+=2)ir=ft,mr=Ht,Xr=vr,Br=Ct,Ht+=p.Rc,Ct+=p.Rc,Ve+=2*ge.A,Ge(ot,(ut+=2*p.fa)-p.fa,ot,ut,ir,mr,Xr,Br,ft,Ht,vr,Ct,Ke,Ve-ge.A,Ke,Ve,Vn);return ut+=p.fa,p.j+vn<p.o?(l(B.ec,B.fc,ot,ut,Vn),l(B.cc,B.dc,ft,Ht,Ln),l(B.Mc,B.Nc,vr,Ct,Ln),U--):1&vn||Ge(ot,ut,null,null,ft,Ht,vr,Ct,ft,Ht,vr,Ct,Ke,Ve+ge.A,null,null,Vn),U}function Mf(p,B,U){var ge=p.F,Ke=[p.J];if(ge!=null){var Ve=p.U,Ge=B.ba.S,ot=Ge==ap||Ge==sc;B=B.ba.f.RGBA;var ut=[0],ft=p.ka;ut[0]=p.T,p.Kb&&(ft==0?--ut[0]:(--ft,Ke[0]-=p.width),p.j+p.ka+p.T==p.o&&(ut[0]=p.o-p.j-ft));var Ht=B.eb;ft=B.fb+ft*B.A,p=cg(ge,Ke[0],p.width,Ve,ut,Ht,ft+(ot?0:3),B.A),o(U==ut),p&&Ja(Ge)&&Qp(Ht,ft,ot,Ve,ut,B.A)}return 0}function Zd(p){var B=p.ma,U=B.ba.S,ge=11>U,Ke=U==Mm||U==Kp||U==ap||U==Ag||U==12||Ja(U);if(B.memory=null,B.Ib=null,B.Jb=null,B.Nd=null,!Tl(B.Oa,p,Ke?11:12))return 0;if(Ke&&Ja(U)&&bd(),p.da)alert("todo:use_scaling");else{if(ge){if(B.Ib=Zh,p.Kb){if(U=p.U+1>>1,B.memory=g(p.U+2*U),B.memory==null)return 0;B.ec=B.memory,B.fc=0,B.cc=B.ec,B.dc=B.fc+p.U,B.Mc=B.cc,B.Nc=B.dc+U,B.Ib=Hc,bd()}}else alert("todo:EmitYUV");Ke&&(B.Jb=Mf,ge&&vd())}if(ge&&!nt){for(p=0;256>p;++p)bt[p]=89858*(p-128)+k>>A,_n[p]=-22014*(p-128)+k,Cr[p]=-45773*(p-128),Et[p]=113618*(p-128)+k>>A;for(p=j;p<J;++p)B=76283*(p-16)+k>>A,wr[p-j]=ku(B,255),nn[p-j]=ku(B+8>>4,15);nt=1}return 1}function ja(p){var B=p.ma,U=p.U,ge=p.T;return o(!(1&p.ka)),0>=U||0>=ge?0:(U=B.Ib(p,B),B.Jb!=null&&B.Jb(p,B,U),B.Dc+=U,1)}function Lf(p){p.ma.memory=null}function kf(p,B,U,ge){return Sn(p,8)!=47?0:(B[0]=Sn(p,14)+1,U[0]=Sn(p,14)+1,ge[0]=Sn(p,1),Sn(p,3)!=0?0:!p.h)}function mA(p,B){if(4>p)return p+1;var U=p-2>>1;return(2+(1&p)<<U)+Sn(B,U)+1}function gA(p,B){return 120<B?B-120:1<=(U=((U=Rg[B-1])>>4)*p+(8-(15&U)))?U:1;var U}function ac(p,B,U){var ge=Nt(U),Ke=p[B+=255&ge].g-8;return 0<Ke&&(Ar(U,U.u+8),ge=Nt(U),B+=p[B].value,B+=ge&(1<<Ke)-1),Ar(U,U.u+p[B].g),p[B].value}function Is(p,B,U){return U.g+=p.g,U.value+=p.value<<B>>>0,o(8>=U.g),p.g}function fl(p,B,U){var ge=p.xc;return o((B=ge==0?0:p.vc[p.md*(U>>ge)+(B>>ge)])<p.Wb),p.Ya[B]}function Vd(p,B,U,ge){var Ke=p.ab,Ve=p.c*B,Ge=p.C;B=Ge+B;var ot=U,ut=ge;for(ge=p.Ta,U=p.Ua;0<Ke--;){var ft=p.gc[Ke],Ht=Ge,vr=B,Ct=ot,ir=ut,mr=(ut=ge,ot=U,ft.Ea);switch(o(Ht<vr),o(vr<=ft.nc),ft.hc){case 2:ql(Ct,ir,(vr-Ht)*mr,ut,ot);break;case 0:var Xr=Ht,Br=vr,ln=ut,vn=ot,Vn=(va=ft).Ea;Xr==0&&(of(Ct,ir,null,null,1,ln,vn),Xo(Ct,ir+1,0,0,Vn-1,ln,vn+1),ir+=Vn,vn+=Vn,++Xr);for(var Ln=1<<va.b,_a=Ln-1,la=Rn(Vn,va.b),jo=va.K,va=va.w+(Xr>>va.b)*la;Xr<Br;){var Fs=jo,Au=va,zo=1;for(tp(Ct,ir,ln,vn-Vn,1,ln,vn);zo<Vn;){var ba=(zo&~_a)+Ln;ba>Vn&&(ba=Vn),(0,rp[Fs[Au++]>>8&15])(Ct,ir+ +zo,ln,vn+zo-Vn,ba-zo,ln,vn+zo),zo=ba}ir+=Vn,vn+=Vn,++Xr&_a||(va+=la)}vr!=ft.nc&&l(ut,ot-mr,ut,ot+(vr-Ht-1)*mr,mr);break;case 1:for(mr=Ct,Br=ir,Vn=(Ct=ft.Ea)-(vn=Ct&~(ln=(ir=1<<ft.b)-1)),Xr=Rn(Ct,ft.b),Ln=ft.K,ft=ft.w+(Ht>>ft.b)*Xr;Ht<vr;){for(_a=Ln,la=ft,jo=new xa,va=Br+vn,Fs=Br+Ct;Br<va;)ha(_a[la++],jo),Up(jo,mr,Br,ir,ut,ot),Br+=ir,ot+=ir;Br<Fs&&(ha(_a[la++],jo),Up(jo,mr,Br,Vn,ut,ot),Br+=Vn,ot+=Vn),++Ht&ln||(ft+=Xr)}break;case 3:if(Ct==ut&&ir==ot&&0<ft.b){for(Br=ut,Ct=mr=ot+(vr-Ht)*mr-(vn=(vr-Ht)*Rn(ft.Ea,ft.b)),ir=ut,ln=ot,Xr=[],vn=(Vn=vn)-1;0<=vn;--vn)Xr[vn]=ir[ln+vn];for(vn=Vn-1;0<=vn;--vn)Br[Ct+vn]=Xr[vn];Cm(ft,Ht,vr,ut,mr,ut,ot)}else Cm(ft,Ht,vr,Ct,ir,ut,ot)}ot=ge,ut=U}ut!=U&&l(ge,U,ot,ut,Ve)}function Wd(p,B){var U=p.V,ge=p.Ba+p.c*p.C,Ke=B-p.C;if(o(B<=p.l.o),o(16>=Ke),0<Ke){var Ve=p.l,Ge=p.Ta,ot=p.Ua,ut=Ve.width;if(Vd(p,Ke,U,ge),Ke=ot=[ot],o((U=p.C)<(ge=B)),o(Ve.v<Ve.va),ge>Ve.o&&(ge=Ve.o),U<Ve.j){var ft=Ve.j-U;U=Ve.j,Ke[0]+=ft*ut}if(U>=ge?U=0:(Ke[0]+=4*Ve.v,Ve.ka=U-Ve.j,Ve.U=Ve.va-Ve.v,Ve.T=ge-U,U=1),U){if(ot=ot[0],11>(U=p.ca).S){var Ht=U.f.RGBA,vr=(ge=U.S,Ke=Ve.U,Ve=Ve.T,ft=Ht.eb,Ht.A),Ct=Ve;for(Ht=Ht.fb+p.Ma*Ht.A;0<Ct--;){var ir=Ge,mr=ot,Xr=Ke,Br=ft,ln=Ht;switch(ge){case Fm:np(ir,mr,Xr,Br,ln);break;case Mm:Rf(ir,mr,Xr,Br,ln);break;case dg:Rf(ir,mr,Xr,Br,ln),Qp(Br,ln,0,Xr,1,0);break;case Pg:bh(ir,mr,Xr,Br,ln);break;case Kp:Ea(ir,mr,Xr,Br,ln,1);break;case lf:Ea(ir,mr,Xr,Br,ln,1),Qp(Br,ln,0,Xr,1,0);break;case ap:Ea(ir,mr,Xr,Br,ln,0);break;case sc:Ea(ir,mr,Xr,Br,ln,0),Qp(Br,ln,1,Xr,1,0);break;case Ag:vh(ir,mr,Xr,Br,ln);break;case d0:vh(ir,mr,Xr,Br,ln),Lg(Br,ln,Xr,1,0);break;case Ho:gs(ir,mr,Xr,Br,ln);break;default:o(0)}ot+=ut,Ht+=vr}p.Ma+=Ve}else alert("todo:EmitRescaledRowsYUVA");o(p.Ma<=U.height)}}p.C=B,o(p.C<=p.i)}function RA(p){var B;if(0<p.ua)return 0;for(B=0;B<p.Wb;++B){var U=p.Ya[B].G,ge=p.Ya[B].H;if(0<U[1][ge[1]+0].g||0<U[2][ge[2]+0].g||0<U[3][ge[3]+0].g)return 0}return 1}function vA(p,B,U,ge,Ke,Ve){if(p.Z!=0){var Ge=p.qd,ot=p.rd;for(o(xh[p.Z]!=null);B<U;++B)xh[p.Z](Ge,ot,ge,Ke,ge,Ke,Ve),Ge=ge,ot=Ke,Ke+=Ve;p.qd=Ge,p.rd=ot}}function lu(p,B){var U=p.l.ma,ge=U.Z==0||U.Z==1?p.l.j:p.C;if(ge=p.C<ge?ge:p.C,o(B<=p.l.o),B>ge){var Ke=p.l.width,Ve=U.ca,Ge=U.tb+Ke*ge,ot=p.V,ut=p.Ba+p.c*ge,ft=p.gc;o(p.ab==1),o(ft[0].hc==3),jA(ft[0],ge,B,ot,ut,Ve,Ge),vA(U,ge,B,Ve,Ge,Ke)}p.C=p.Ma=B}function bA(p,B,U,ge,Ke,Ve,Ge){var ot=p.$/ge,ut=p.$%ge,ft=p.m,Ht=p.s,vr=U+p.$,Ct=vr;Ke=U+ge*Ke;var ir=U+ge*Ve,mr=280+Ht.ua,Xr=p.Pb?ot:16777216,Br=0<Ht.ua?Ht.Wa:null,ln=Ht.wc,vn=vr<ir?fl(Ht,ut,ot):null;o(p.C<Ve),o(ir<=Ke);var Vn=!1;e:for(;;){for(;Vn||vr<ir;){var Ln=0;if(ot>=Xr){var _a=vr-U;o((Xr=p).Pb),Xr.wd=Xr.m,Xr.xd=_a,0<Xr.s.ua&&ki(Xr.s.Wa,Xr.s.vb),Xr=ot+Kg}if(ut&ln||(vn=fl(Ht,ut,ot)),o(vn!=null),vn.Qb&&(B[vr]=vn.qb,Vn=!0),!Vn)if(Er(ft),vn.jc){Ln=ft,_a=B;var la=vr,jo=vn.pd[Nt(Ln)&o0-1];o(vn.jc),256>jo.g?(Ar(Ln,Ln.u+jo.g),_a[la]=jo.value,Ln=0):(Ar(Ln,Ln.u+jo.g-256),o(256<=jo.value),Ln=jo.value),Ln==0&&(Vn=!0)}else Ln=ac(vn.G[0],vn.H[0],ft);if(ft.h)break;if(Vn||256>Ln){if(!Vn)if(vn.nd)B[vr]=(vn.qb|Ln<<8)>>>0;else{if(Er(ft),Vn=ac(vn.G[1],vn.H[1],ft),Er(ft),_a=ac(vn.G[2],vn.H[2],ft),la=ac(vn.G[3],vn.H[3],ft),ft.h)break;B[vr]=(la<<24|Vn<<16|Ln<<8|_a)>>>0}if(Vn=!1,++vr,++ut>=ge&&(ut=0,++ot,Ge!=null&&ot<=Ve&&!(ot%16)&&Ge(p,ot),Br!=null))for(;Ct<vr;)Ln=B[Ct++],Br.X[(506832829*Ln&4294967295)>>>Br.Mb]=Ln}else if(280>Ln){if(Ln=mA(Ln-256,ft),_a=ac(vn.G[4],vn.H[4],ft),Er(ft),_a=gA(ge,_a=mA(_a,ft)),ft.h)break;if(vr-U<_a||Ke-vr<Ln)break e;for(la=0;la<Ln;++la)B[vr+la]=B[vr+la-_a];for(vr+=Ln,ut+=Ln;ut>=ge;)ut-=ge,++ot,Ge!=null&&ot<=Ve&&!(ot%16)&&Ge(p,ot);if(o(vr<=Ke),ut&ln&&(vn=fl(Ht,ut,ot)),Br!=null)for(;Ct<vr;)Ln=B[Ct++],Br.X[(506832829*Ln&4294967295)>>>Br.Mb]=Ln}else{if(!(Ln<mr))break e;for(Vn=Ln-280,o(Br!=null);Ct<vr;)Ln=B[Ct++],Br.X[(506832829*Ln&4294967295)>>>Br.Mb]=Ln;Ln=vr,o(!(Vn>>>(_a=Br).Xa)),B[Ln]=_a.X[Vn],Vn=!0}Vn||o(ft.h==qt(ft))}if(p.Pb&&ft.h&&vr<Ke)o(p.m.h),p.a=5,p.m=p.wd,p.$=p.xd,0<p.s.ua&&ki(p.s.vb,p.s.Wa);else{if(ft.h)break e;Ge!=null&&Ge(p,ot>Ve?Ve:ot),p.a=0,p.$=vr-U}return 1}return p.a=3,0}function QA(p){o(p!=null),p.vc=null,p.yc=null,p.Ya=null;var B=p.Wa;B!=null&&(B.X=null),p.vb=null,o(p!=null)}function Vh(){var p=new Ya;return p==null?null:(p.a=0,p.xb=c1,dl("Predictor","VP8LPredictors"),dl("Predictor","VP8LPredictors_C"),dl("PredictorAdd","VP8LPredictorsAdd"),dl("PredictorAdd","VP8LPredictorsAdd_C"),ql=Qo,Up=Eo,np=pc,Rf=ws,vh=Po,gs=Ko,bh=Nl,Lt.VP8LMapColor32b=HA,Lt.VP8LMapColor8b=l0,p)}function Gd(p,B,U,ge,Ke){var Ve=1,Ge=[p],ot=[B],ut=ge.m,ft=ge.s,Ht=null,vr=0;e:for(;;){if(U)for(;Ve&&Sn(ut,1);){var Ct=Ge,ir=ot,mr=ge,Xr=1,Br=mr.m,ln=mr.gc[mr.ab],vn=Sn(Br,2);if(mr.Oc&1<<vn)Ve=0;else{switch(mr.Oc|=1<<vn,ln.hc=vn,ln.Ea=Ct[0],ln.nc=ir[0],ln.K=[null],++mr.ab,o(4>=mr.ab),vn){case 0:case 1:ln.b=Sn(Br,3)+2,Xr=Gd(Rn(ln.Ea,ln.b),Rn(ln.nc,ln.b),0,mr,ln.K),ln.K=ln.K[0];break;case 3:var Vn,Ln=Sn(Br,8)+1,_a=16<Ln?0:4<Ln?1:2<Ln?2:3;if(Ct[0]=Rn(ln.Ea,_a),ln.b=_a,Vn=Xr=Gd(Ln,1,0,mr,ln.K)){var la,jo=Ln,va=ln,Fs=1<<(8>>va.b),Au=g(Fs);if(Au==null)Vn=0;else{var zo=va.K[0],ba=va.w;for(Au[0]=va.K[0][0],la=1;la<1*jo;++la)Au[la]=Da(zo[ba+la],Au[la-1]);for(;la<4*Fs;++la)Au[la]=0;va.K[0]=null,va.K[0]=Au,Vn=1}}Xr=Vn;break;case 2:break;default:o(0)}Ve=Xr}}if(Ge=Ge[0],ot=ot[0],Ve&&Sn(ut,1)&&!(Ve=1<=(vr=Sn(ut,4))&&11>=vr)){ge.a=3;break e}var Ii;if(Ii=Ve)t:{var $c,ko,Ns,ec=ge,Hu=Ge,CA=ot,Mc=vr,tA=U,BA=ec.m,du=ec.s,js=[null],ml=1,Lc=0,gl=Qg[Mc];r:for(;;){if(tA&&Sn(BA,1)){var ju=Sn(BA,3)+2,Hf=Rn(Hu,ju),Zc=Rn(CA,ju),VA=Hf*Zc;if(!Gd(Hf,Zc,0,ec,js))break r;for(js=js[0],du.xc=ju,$c=0;$c<VA;++$c){var Il=js[$c]>>8&65535;js[$c]=Il,Il>=ml&&(ml=Il+1)}}if(BA.h)break r;for(ko=0;5>ko;++ko){var fu=f0[ko];!ko&&0<Mc&&(fu+=1<<Mc),Lc<fu&&(Lc=fu)}var xd=O(ml*gl,Wt),SA=ml,Cd=O(SA,Tr);if(Cd==null)var Bd=null;else o(65536>=SA),Bd=Cd;var WA=g(Lc);if(Bd==null||WA==null||xd==null){ec.a=1;break r}var Sd=xd;for($c=Ns=0;$c<ml;++$c){var Ul=Bd[$c],Ed=Ul.G,jf=Ul.H,jp=0,p0=1,zu=0;for(ko=0;5>ko;++ko){fu=f0[ko],Ed[ko]=Sd,jf[ko]=Ns,!ko&&0<Mc&&(fu+=1<<Mc);i:{var jg,u1=fu,zg=ec,hg=WA,hv=Sd,pv=Ns,A1=0,lp=zg.m,mv=Sn(lp,1);if(u(hg,0,0,u1),mv){var gv=Sn(lp,1)+1,vv=Sn(lp,1),x1=Sn(lp,vv==0?1:8);hg[x1]=1,gv==2&&(hg[x1=Sn(lp,8)]=1);var $g=1}else{var C1=g(19),B1=Sn(lp,4)+4;if(19<B1){zg.a=3;var Zg=0;break i}for(jg=0;jg<B1;++jg)C1[Ug[jg]]=Sn(lp,3);var d1=void 0,pg=void 0,S1=zg,bv=C1,Vg=u1,E1=hg,f1=0,cp=S1.m,_1=8,I1=O(128,Wt);n:for(;xt(I1,0,7,bv,19);){if(Sn(cp,1)){var yv=2+2*Sn(cp,3);if((d1=2+Sn(cp,yv))>Vg)break n}else d1=Vg;for(pg=0;pg<Vg&&d1--;){Er(cp);var F1=I1[0+(127&Nt(cp))];Ar(cp,cp.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=Hp[M1],L1=Sn(cp,Kf[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&&!lp.h)&&(A1=xt(hv,pv,8,hg,u1)),$g&&A1!=0?Zg=A1:(zg.a=3,Zg=0)}if(Zg==0)break r;if(p0&&Tg[ko]==1&&(p0=Sd[Ns].g==0),jp+=Sd[Ns].g,Ns+=Zg,3>=ko){var mg,h1=WA[0];for(mg=1;mg<fu;++mg)WA[mg]>h1&&(h1=WA[mg]);zu+=h1}}if(Ul.nd=p0,Ul.Qb=0,p0&&(Ul.qb=(Ed[3][jf[3]+0].value<<24|Ed[1][jf[1]+0].value<<16|Ed[2][jf[2]+0].value)>>>0,jp==0&&256>Ed[0][jf[0]+0].value&&(Ul.Qb=1,Ul.qb+=Ed[0][jf[0]+0].value<<8)),Ul.jc=!Ul.Qb&&6>zu,Ul.jc){var Wg,m0=Ul;for(Wg=0;Wg<o0;++Wg){var up=Wg,Ap=m0.pd[up],Gg=m0.G[0][m0.H[0]+up];256<=Gg.value?(Ap.g=Gg.g+256,Ap.value=Gg.value):(Ap.g=0,Ap.value=0,up>>=Is(Gg,8,Ap),up>>=Is(m0.G[1][m0.H[1]+up],16,Ap),up>>=Is(m0.G[2][m0.H[2]+up],0,Ap),Is(m0.G[3][m0.H[3]+up],24,Ap))}}}du.vc=js,du.Wb=ml,du.Ya=Bd,du.yc=xd,Ii=1;break t}Ii=0}if(!(Ve=Ii)){ge.a=3;break e}if(0<vr){if(ft.ua=1<<vr,!gt(ft.Wa,vr)){ge.a=1,Ve=0;break e}}else ft.ua=0;var p1=ge,k1=Ge,Bv=ot,m1=p1.s,g1=m1.xc;if(p1.c=k1,p1.i=Bv,m1.md=Rn(k1,g1),m1.wc=g1==0?-1:(1<<g1)-1,U){ge.xb=y1;break e}if((Ht=g(Ge*ot))==null){ge.a=1,Ve=0;break e}Ve=(Ve=bA(ge,Ht,0,Ge,ot,ot,null))&&!ut.h;break e}return Ve?(Ke!=null?Ke[0]=Ht:(o(Ht==null),o(U)),ge.$=0,U||QA(ft)):QA(ft),Ve}function Wh(p,B){var U=p.c*p.i,ge=U+B+16*B;return o(p.c<=B),p.V=g(ge),p.V==null?(p.Ta=null,p.Ua=0,p.a=1,0):(p.Ta=p.V,p.Ua=p.Ba+U+B,1)}function Gh(p,B){var U=p.C,ge=B-U,Ke=p.V,Ve=p.Ba+p.c*U;for(o(B<=p.l.o);0<ge;){var Ge=16<ge?16:ge,ot=p.l.ma,ut=p.l.width,ft=ut*Ge,Ht=ot.ca,vr=ot.tb+ut*U,Ct=p.Ta,ir=p.Ua;Vd(p,Ge,Ke,Ve),kg(Ct,ir,Ht,vr,ft),vA(ot,U,U+Ge,Ht,vr,ut),ge-=Ge,Ke+=Ge*p.c,U+=Ge}o(U==B),p.C=p.Ma=B}function z0(){this.ub=this.yd=this.td=this.Rb=0}function Xh(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function _p(){this.Fb=this.Bb=this.Cb=0,this.Zb=g(4),this.Lb=g(4)}function Ip(){this.Yb=function(){var p=[];return function B(U,ge,Ke){for(var Ve=Ke[ge],Ge=0;Ge<Ve&&(U.push(Ke.length>ge+1?[]:0),!(Ke.length<ge+1));Ge++)B(U[Ge],ge+1,Ke)}(p,0,[3,11]),p}()}function fm(){this.jb=g(3),this.Wc=E([4,8],Ip),this.Xc=E([4,17],Ip)}function hm(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new g(4),this.od=new g(4)}function eA(){this.ld=this.La=this.dd=this.tc=0}function Jh(){this.Na=this.la=0}function Fp(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Mp(){this.ad=g(384),this.Za=0,this.Ob=g(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function $0(){this.uc=this.M=this.Nb=0,this.wa=Array(new eA),this.Y=0,this.ya=Array(new Mp),this.aa=0,this.l=new Xd}function Z0(){this.y=g(16),this.f=g(8),this.ea=g(8)}function Lp(){this.cb=this.a=0,this.sc="",this.m=new tt,this.Od=new z0,this.Kc=new Xh,this.ed=new hm,this.Qa=new _p,this.Ic=this.$c=this.Aa=0,this.D=new $0,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=O(8,tt),this.ia=0,this.pb=O(4,Fp),this.Pa=new fm,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Z0),this.Hd=0,this.rb=Array(new Jh),this.sb=0,this.wa=Array(new eA),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 Mp),this.L=this.aa=0,this.gd=E([4,2],eA),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 ku(p,B){return 0>p?0:p>B?B:p}function Xd(){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 V0(){var p=new Lp;return p!=null&&(p.a=0,p.sc="OK",p.cb=0,p.Xb=0,sp||(sp=Yh)),p}function oc(p,B,U){return p.a==0&&(p.a=B,p.sc=U,p.cb=0),0}function kp(p,B,U){return 3<=U&&p[B+0]==157&&p[B+1]==1&&p[B+2]==42}function Jd(p,B){if(p==null)return 0;if(p.a=0,p.sc="OK",B==null)return oc(p,2,"null VP8Io passed to VP8GetHeaders()");var U=B.data,ge=B.w,Ke=B.ha;if(4>Ke)return oc(p,7,"Truncated header.");var Ve=U[ge+0]|U[ge+1]<<8|U[ge+2]<<16,Ge=p.Od;if(Ge.Rb=!(1&Ve),Ge.td=Ve>>1&7,Ge.yd=Ve>>4&1,Ge.ub=Ve>>5,3<Ge.td)return oc(p,3,"Incorrect keyframe parameters.");if(!Ge.yd)return oc(p,4,"Frame not displayable.");ge+=3,Ke-=3;var ot=p.Kc;if(Ge.Rb){if(7>Ke)return oc(p,7,"cannot parse picture header");if(!kp(U,ge,Ke))return oc(p,3,"Bad code word");ot.c=16383&(U[ge+4]<<8|U[ge+3]),ot.Td=U[ge+4]>>6,ot.i=16383&(U[ge+6]<<8|U[ge+5]),ot.Ud=U[ge+6]>>6,ge+=7,Ke-=7,p.za=ot.c+15>>4,p.Ub=ot.i+15>>4,B.width=ot.c,B.height=ot.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,u((Ve=p.Pa).jb,0,255,Ve.jb.length),o((Ve=p.Qa)!=null),Ve.Cb=0,Ve.Bb=0,Ve.Fb=1,u(Ve.Zb,0,0,Ve.Zb.length),u(Ve.Lb,0,0,Ve.Lb)}if(Ge.ub>Ke)return oc(p,7,"bad partition length");Zr(Ve=p.m,U,ge,Ge.ub),ge+=Ge.ub,Ke-=Ge.ub,Ge.Rb&&(ot.Ld=$r(Ve),ot.Kd=$r(Ve)),ot=p.Qa;var ut,ft=p.Pa;if(o(Ve!=null),o(ot!=null),ot.Cb=$r(Ve),ot.Cb){if(ot.Bb=$r(Ve),$r(Ve)){for(ot.Fb=$r(Ve),ut=0;4>ut;++ut)ot.Zb[ut]=$r(Ve)?Mr(Ve,7):0;for(ut=0;4>ut;++ut)ot.Lb[ut]=$r(Ve)?Mr(Ve,6):0}if(ot.Bb)for(ut=0;3>ut;++ut)ft.jb[ut]=$r(Ve)?Jr(Ve,8):255}else ot.Bb=0;if(Ve.Ka)return oc(p,3,"cannot parse segment header");if((ot=p.ed).zd=$r(Ve),ot.Tb=Jr(Ve,6),ot.wb=Jr(Ve,3),ot.Pc=$r(Ve),ot.Pc&&$r(Ve)){for(ft=0;4>ft;++ft)$r(Ve)&&(ot.vd[ft]=Mr(Ve,6));for(ft=0;4>ft;++ft)$r(Ve)&&(ot.od[ft]=Mr(Ve,6))}if(p.L=ot.Tb==0?0:ot.zd?1:2,Ve.Ka)return oc(p,3,"cannot parse filter header");var Ht=Ke;if(Ke=ut=ge,ge=ut+Ht,ot=Ht,p.Xb=(1<<Jr(p.m,2))-1,Ht<3*(ft=p.Xb))U=7;else{for(ut+=3*ft,ot-=3*ft,Ht=0;Ht<ft;++Ht){var vr=U[Ke+0]|U[Ke+1]<<8|U[Ke+2]<<16;vr>ot&&(vr=ot),Zr(p.Jc[+Ht],U,ut,vr),ut+=vr,ot-=vr,Ke+=3}Zr(p.Jc[+ft],U,ut,ot),U=ut<ge?0:5}if(U!=0)return oc(p,U,"cannot parse partitions");for(U=Jr(ut=p.m,7),Ke=$r(ut)?Mr(ut,4):0,ge=$r(ut)?Mr(ut,4):0,ot=$r(ut)?Mr(ut,4):0,ft=$r(ut)?Mr(ut,4):0,ut=$r(ut)?Mr(ut,4):0,Ht=p.Qa,vr=0;4>vr;++vr){if(Ht.Cb){var Ct=Ht.Zb[vr];Ht.Fb||(Ct+=U)}else{if(0<vr){p.pb[vr]=p.pb[0];continue}Ct=U}var ir=p.pb[vr];ir.Sc[0]=fg[ku(Ct+Ke,127)],ir.Sc[1]=op[ku(Ct+0,127)],ir.Eb[0]=2*fg[ku(Ct+ge,127)],ir.Eb[1]=101581*op[ku(Ct+ot,127)]>>16,8>ir.Eb[1]&&(ir.Eb[1]=8),ir.Qc[0]=fg[ku(Ct+ft,117)],ir.Qc[1]=op[ku(Ct+ut,127)],ir.lc=Ct+ut}if(!Ge.Rb)return oc(p,4,"Not a key frame.");for($r(Ve),Ge=p.Pa,U=0;4>U;++U){for(Ke=0;8>Ke;++Ke)for(ge=0;3>ge;++ge)for(ot=0;11>ot;++ot)ft=mn(Ve,s1[U][Ke][ge][ot])?Jr(Ve,8):o1[U][Ke][ge][ot],Ge.Wc[U][Ke].Yb[ge][ot]=ft;for(Ke=0;17>Ke;++Ke)Ge.Xc[U][Ke]=Ge.Wc[U][l1[Ke]]}return p.kc=$r(Ve),p.kc&&(p.Bd=Jr(Ve,8)),p.cb=1}function Yh(p,B,U,ge,Ke,Ve,Ge){var ot=B[Ke].Yb[U];for(U=0;16>Ke;++Ke){if(!mn(p,ot[U+0]))return Ke;for(;!mn(p,ot[U+1]);)if(ot=B[++Ke].Yb[0],U=0,Ke==16)return 16;var ut=B[Ke+1].Yb;if(mn(p,ot[U+2])){var ft=p,Ht=0;if(mn(ft,(Ct=ot)[(vr=U)+3]))if(mn(ft,Ct[vr+6])){for(ot=0,vr=2*(Ht=mn(ft,Ct[vr+8]))+(Ct=mn(ft,Ct[vr+9+Ht])),Ht=0,Ct=i1[vr];Ct[ot];++ot)Ht+=Ht+mn(ft,Ct[ot]);Ht+=3+(8<<vr)}else mn(ft,Ct[vr+7])?(Ht=7+2*mn(ft,165),Ht+=mn(ft,145)):Ht=5+mn(ft,159);else Ht=mn(ft,Ct[vr+4])?3+mn(ft,Ct[vr+5]):2;ot=ut[2]}else Ht=1,ot=ut[1];ut=Ge+a1[Ke],0>(ft=p).b&&Kr(ft);var vr,Ct=ft.b,ir=(vr=ft.Ca>>1)-(ft.I>>Ct)>>31;--ft.b,ft.Ca+=ir,ft.Ca|=1,ft.I-=(vr+1&ir)<<Ct,Ve[ut]=((Ht^ir)-ir)*ge[(0<Ke)+0]}return 16}function pm(p){var B=p.rb[p.sb-1];B.la=0,B.Na=0,u(p.zc,0,0,p.zc.length),p.ja=0}function Du(p,B,U,ge,Ke){Ke=p[B+U+32*ge]+(Ke>>3),p[B+U+32*ge]=-256&Ke?0>Ke?0:255:Ke}function jc(p,B,U,ge,Ke,Ve){Du(p,B,0,U,ge+Ke),Du(p,B,1,U,ge+Ve),Du(p,B,2,U,ge-Ve),Du(p,B,3,U,ge-Ke)}function Yd(p){return(20091*p>>16)+p}function mm(p,B,U,ge){var Ke,Ve=0,Ge=g(16);for(Ke=0;4>Ke;++Ke){var ot=p[B+0]+p[B+8],ut=p[B+0]-p[B+8],ft=(35468*p[B+4]>>16)-Yd(p[B+12]),Ht=Yd(p[B+4])+(35468*p[B+12]>>16);Ge[Ve+0]=ot+Ht,Ge[Ve+1]=ut+ft,Ge[Ve+2]=ut-ft,Ge[Ve+3]=ot-Ht,Ve+=4,B++}for(Ke=Ve=0;4>Ke;++Ke)ot=(p=Ge[Ve+0]+4)+Ge[Ve+8],ut=p-Ge[Ve+8],ft=(35468*Ge[Ve+4]>>16)-Yd(Ge[Ve+12]),Du(U,ge,0,0,ot+(Ht=Yd(Ge[Ve+4])+(35468*Ge[Ve+12]>>16))),Du(U,ge,1,0,ut+ft),Du(U,ge,2,0,ut-ft),Du(U,ge,3,0,ot-Ht),Ve++,ge+=32}function W0(p,B,U,ge){var Ke=p[B+0]+4,Ve=35468*p[B+4]>>16,Ge=Yd(p[B+4]),ot=35468*p[B+1]>>16;jc(U,ge,0,Ke+Ge,p=Yd(p[B+1]),ot),jc(U,ge,1,Ke+Ve,p,ot),jc(U,ge,2,Ke-Ve,p,ot),jc(U,ge,3,Ke-Ge,p,ot)}function tg(p,B,U,ge,Ke){mm(p,B,U,ge),Ke&&mm(p,B+16,U,ge+4)}function hd(p,B,U,ge){c0(p,B+0,U,ge,1),c0(p,B+32,U,ge+128,1)}function gm(p,B,U,ge){var Ke;for(p=p[B+0]+4,Ke=0;4>Ke;++Ke)for(B=0;4>B;++B)Du(U,ge,B,Ke,p)}function vm(p,B,U,ge){p[B+0]&&qs(p,B+0,U,ge),p[B+16]&&qs(p,B+16,U,ge+4),p[B+32]&&qs(p,B+32,U,ge+128),p[B+48]&&qs(p,B+48,U,ge+128+4)}function Qu(p,B,U,ge){var Ke,Ve=g(16);for(Ke=0;4>Ke;++Ke){var Ge=p[B+0+Ke]+p[B+12+Ke],ot=p[B+4+Ke]+p[B+8+Ke],ut=p[B+4+Ke]-p[B+8+Ke],ft=p[B+0+Ke]-p[B+12+Ke];Ve[0+Ke]=Ge+ot,Ve[8+Ke]=Ge-ot,Ve[4+Ke]=ft+ut,Ve[12+Ke]=ft-ut}for(Ke=0;4>Ke;++Ke)Ge=(p=Ve[0+4*Ke]+3)+Ve[3+4*Ke],ot=Ve[1+4*Ke]+Ve[2+4*Ke],ut=Ve[1+4*Ke]-Ve[2+4*Ke],ft=p-Ve[3+4*Ke],U[ge+0]=Ge+ot>>3,U[ge+16]=ft+ut>>3,U[ge+32]=Ge-ot>>3,U[ge+48]=ft-ut>>3,ge+=64}function ps(p,B,U){var ge,Ke=B-32,Ve=xA,Ge=255-p[Ke-1];for(ge=0;ge<U;++ge){var ot,ut=Ve,ft=Ge+p[B-1];for(ot=0;ot<U;++ot)p[B+ot]=ut[ft+p[Ke+ot]];B+=32}}function cu(p,B){ps(p,B,4)}function Pl(p,B){ps(p,B,8)}function G0(p,B){ps(p,B,16)}function X0(p,B){var U;for(U=0;16>U;++U)l(p,B+32*U,p,B-32,16)}function qh(p,B){var U;for(U=16;0<U;--U)u(p,B,p[B-1],16),B+=32}function pd(p,B,U){var ge;for(ge=0;16>ge;++ge)u(B,U+32*ge,p,16)}function rg(p,B){var U,ge=16;for(U=0;16>U;++U)ge+=p[B-1+32*U]+p[B+U-32];pd(ge>>5,p,B)}function e0(p,B){var U,ge=8;for(U=0;16>U;++U)ge+=p[B-1+32*U];pd(ge>>4,p,B)}function J0(p,B){var U,ge=8;for(U=0;16>U;++U)ge+=p[B+U-32];pd(ge>>4,p,B)}function ng(p,B){pd(128,p,B)}function ho(p,B,U){return p+2*B+U+2>>2}function ig(p,B){var U,ge=B-32;for(ge=new Uint8Array([ho(p[ge-1],p[ge+0],p[ge+1]),ho(p[ge+0],p[ge+1],p[ge+2]),ho(p[ge+1],p[ge+2],p[ge+3]),ho(p[ge+2],p[ge+3],p[ge+4])]),U=0;4>U;++U)l(p,B+32*U,ge,0,ge.length)}function ag(p,B){var U=p[B-1],ge=p[B-1+32],Ke=p[B-1+64],Ve=p[B-1+96];jn(p,B+0,16843009*ho(p[B-1-32],U,ge)),jn(p,B+32,16843009*ho(U,ge,Ke)),jn(p,B+64,16843009*ho(ge,Ke,Ve)),jn(p,B+96,16843009*ho(Ke,Ve,Ve))}function og(p,B){var U,ge=4;for(U=0;4>U;++U)ge+=p[B+U-32]+p[B-1+32*U];for(ge>>=3,U=0;4>U;++U)u(p,B+32*U,ge,4)}function md(p,B){var U=p[B-1+0],ge=p[B-1+32],Ke=p[B-1+64],Ve=p[B-1-32],Ge=p[B+0-32],ot=p[B+1-32],ut=p[B+2-32],ft=p[B+3-32];p[B+0+96]=ho(ge,Ke,p[B-1+96]),p[B+1+96]=p[B+0+64]=ho(U,ge,Ke),p[B+2+96]=p[B+1+64]=p[B+0+32]=ho(Ve,U,ge),p[B+3+96]=p[B+2+64]=p[B+1+32]=p[B+0+0]=ho(Ge,Ve,U),p[B+3+64]=p[B+2+32]=p[B+1+0]=ho(ot,Ge,Ve),p[B+3+32]=p[B+2+0]=ho(ut,ot,Ge),p[B+3+0]=ho(ft,ut,ot)}function gd(p,B){var U=p[B+1-32],ge=p[B+2-32],Ke=p[B+3-32],Ve=p[B+4-32],Ge=p[B+5-32],ot=p[B+6-32],ut=p[B+7-32];p[B+0+0]=ho(p[B+0-32],U,ge),p[B+1+0]=p[B+0+32]=ho(U,ge,Ke),p[B+2+0]=p[B+1+32]=p[B+0+64]=ho(ge,Ke,Ve),p[B+3+0]=p[B+2+32]=p[B+1+64]=p[B+0+96]=ho(Ke,Ve,Ge),p[B+3+32]=p[B+2+64]=p[B+1+96]=ho(Ve,Ge,ot),p[B+3+64]=p[B+2+96]=ho(Ge,ot,ut),p[B+3+96]=ho(ot,ut,ut)}function sg(p,B){var U=p[B-1+0],ge=p[B-1+32],Ke=p[B-1+64],Ve=p[B-1-32],Ge=p[B+0-32],ot=p[B+1-32],ut=p[B+2-32],ft=p[B+3-32];p[B+0+0]=p[B+1+64]=Ve+Ge+1>>1,p[B+1+0]=p[B+2+64]=Ge+ot+1>>1,p[B+2+0]=p[B+3+64]=ot+ut+1>>1,p[B+3+0]=ut+ft+1>>1,p[B+0+96]=ho(Ke,ge,U),p[B+0+64]=ho(ge,U,Ve),p[B+0+32]=p[B+1+96]=ho(U,Ve,Ge),p[B+1+32]=p[B+2+96]=ho(Ve,Ge,ot),p[B+2+32]=p[B+3+96]=ho(Ge,ot,ut),p[B+3+32]=ho(ot,ut,ft)}function Dp(p,B){var U=p[B+0-32],ge=p[B+1-32],Ke=p[B+2-32],Ve=p[B+3-32],Ge=p[B+4-32],ot=p[B+5-32],ut=p[B+6-32],ft=p[B+7-32];p[B+0+0]=U+ge+1>>1,p[B+1+0]=p[B+0+64]=ge+Ke+1>>1,p[B+2+0]=p[B+1+64]=Ke+Ve+1>>1,p[B+3+0]=p[B+2+64]=Ve+Ge+1>>1,p[B+0+32]=ho(U,ge,Ke),p[B+1+32]=p[B+0+96]=ho(ge,Ke,Ve),p[B+2+32]=p[B+1+96]=ho(Ke,Ve,Ge),p[B+3+32]=p[B+2+96]=ho(Ve,Ge,ot),p[B+3+64]=ho(Ge,ot,ut),p[B+3+96]=ho(ot,ut,ft)}function Y0(p,B){var U=p[B-1+0],ge=p[B-1+32],Ke=p[B-1+64],Ve=p[B-1+96];p[B+0+0]=U+ge+1>>1,p[B+2+0]=p[B+0+32]=ge+Ke+1>>1,p[B+2+32]=p[B+0+64]=Ke+Ve+1>>1,p[B+1+0]=ho(U,ge,Ke),p[B+3+0]=p[B+1+32]=ho(ge,Ke,Ve),p[B+3+32]=p[B+1+64]=ho(Ke,Ve,Ve),p[B+3+64]=p[B+2+64]=p[B+0+96]=p[B+1+96]=p[B+2+96]=p[B+3+96]=Ve}function dh(p,B){var U=p[B-1+0],ge=p[B-1+32],Ke=p[B-1+64],Ve=p[B-1+96],Ge=p[B-1-32],ot=p[B+0-32],ut=p[B+1-32],ft=p[B+2-32];p[B+0+0]=p[B+2+32]=U+Ge+1>>1,p[B+0+32]=p[B+2+64]=ge+U+1>>1,p[B+0+64]=p[B+2+96]=Ke+ge+1>>1,p[B+0+96]=Ve+Ke+1>>1,p[B+3+0]=ho(ot,ut,ft),p[B+2+0]=ho(Ge,ot,ut),p[B+1+0]=p[B+3+32]=ho(U,Ge,ot),p[B+1+32]=p[B+3+64]=ho(ge,U,Ge),p[B+1+64]=p[B+3+96]=ho(Ke,ge,U),p[B+1+96]=ho(Ve,Ke,ge)}function t0(p,B){var U;for(U=0;8>U;++U)l(p,B+32*U,p,B-32,8)}function lg(p,B){var U;for(U=0;8>U;++U)u(p,B,p[B-1],8),B+=32}function qd(p,B,U){var ge;for(ge=0;8>ge;++ge)u(B,U+32*ge,p,8)}function bm(p,B){var U,ge=8;for(U=0;8>U;++U)ge+=p[B+U-32]+p[B-1+32*U];qd(ge>>4,p,B)}function r0(p,B){var U,ge=4;for(U=0;8>U;++U)ge+=p[B+U-32];qd(ge>>3,p,B)}function Op(p,B){var U,ge=4;for(U=0;8>U;++U)ge+=p[B-1+32*U];qd(ge>>3,p,B)}function ym(p,B){qd(128,p,B)}function Df(p,B,U){var ge=p[B-U],Ke=p[B+0],Ve=3*(Ke-ge)+A0[1020+p[B-2*U]-p[B+U]],Ge=Im[112+(Ve+4>>3)];p[B-U]=xA[255+ge+Im[112+(Ve+3>>3)]],p[B+0]=xA[255+Ke-Ge]}function ef(p,B,U,ge){var Ke=p[B+0],Ve=p[B+U];return vc[255+p[B-2*U]-p[B-U]]>ge||vc[255+Ve-Ke]>ge}function Ku(p,B,U,ge){return 4*vc[255+p[B-U]-p[B+0]]+vc[255+p[B-2*U]-p[B+U]]<=ge}function n0(p,B,U,ge,Ke){var Ve=p[B-3*U],Ge=p[B-2*U],ot=p[B-U],ut=p[B+0],ft=p[B+U],Ht=p[B+2*U],vr=p[B+3*U];return 4*vc[255+ot-ut]+vc[255+Ge-ft]>ge?0:vc[255+p[B-4*U]-Ve]<=Ke&&vc[255+Ve-Ge]<=Ke&&vc[255+Ge-ot]<=Ke&&vc[255+vr-Ht]<=Ke&&vc[255+Ht-ft]<=Ke&&vc[255+ft-ut]<=Ke}function Of(p,B,U,ge){var Ke=2*ge+1;for(ge=0;16>ge;++ge)Ku(p,B+ge,U,Ke)&&Df(p,B+ge,U)}function q0(p,B,U,ge){var Ke=2*ge+1;for(ge=0;16>ge;++ge)Ku(p,B+ge*U,1,Ke)&&Df(p,B+ge*U,1)}function ep(p,B,U,ge){var Ke;for(Ke=3;0<Ke;--Ke)Of(p,B+=4*U,U,ge)}function Np(p,B,U,ge){var Ke;for(Ke=3;0<Ke;--Ke)q0(p,B+=4,U,ge)}function tf(p,B,U,ge,Ke,Ve,Ge,ot){for(Ve=2*Ve+1;0<Ke--;){if(n0(p,B,U,Ve,Ge))if(ef(p,B,U,ot))Df(p,B,U);else{var ut=p,ft=B,Ht=U,vr=ut[ft-2*Ht],Ct=ut[ft-Ht],ir=ut[ft+0],mr=ut[ft+Ht],Xr=ut[ft+2*Ht],Br=27*(vn=A0[1020+3*(ir-Ct)+A0[1020+vr-mr]])+63>>7,ln=18*vn+63>>7,vn=9*vn+63>>7;ut[ft-3*Ht]=xA[255+ut[ft-3*Ht]+vn],ut[ft-2*Ht]=xA[255+vr+ln],ut[ft-Ht]=xA[255+Ct+Br],ut[ft+0]=xA[255+ir-Br],ut[ft+Ht]=xA[255+mr-ln],ut[ft+2*Ht]=xA[255+Xr-vn]}B+=ge}}function Nf(p,B,U,ge,Ke,Ve,Ge,ot){for(Ve=2*Ve+1;0<Ke--;){if(n0(p,B,U,Ve,Ge))if(ef(p,B,U,ot))Df(p,B,U);else{var ut=p,ft=B,Ht=U,vr=ut[ft-Ht],Ct=ut[ft+0],ir=ut[ft+Ht],mr=Im[112+(4+(Xr=3*(Ct-vr))>>3)],Xr=Im[112+(Xr+3>>3)],Br=mr+1>>1;ut[ft-2*Ht]=xA[255+ut[ft-2*Ht]+Br],ut[ft-Ht]=xA[255+vr+Xr],ut[ft+0]=xA[255+Ct-mr],ut[ft+Ht]=xA[255+ir-Br]}B+=ge}}function Pf(p,B,U,ge,Ke,Ve){tf(p,B,U,1,16,ge,Ke,Ve)}function fh(p,B,U,ge,Ke,Ve){tf(p,B,1,U,16,ge,Ke,Ve)}function Pp(p,B,U,ge,Ke,Ve){var Ge;for(Ge=3;0<Ge;--Ge)Nf(p,B+=4*U,U,1,16,ge,Ke,Ve)}function z(p,B,U,ge,Ke,Ve){var Ge;for(Ge=3;0<Ge;--Ge)Nf(p,B+=4,1,U,16,ge,Ke,Ve)}function He(p,B,U,ge,Ke,Ve,Ge,ot){tf(p,B,Ke,1,8,Ve,Ge,ot),tf(U,ge,Ke,1,8,Ve,Ge,ot)}function St(p,B,U,ge,Ke,Ve,Ge,ot){tf(p,B,1,Ke,8,Ve,Ge,ot),tf(U,ge,1,Ke,8,Ve,Ge,ot)}function Zt(p,B,U,ge,Ke,Ve,Ge,ot){Nf(p,B+4*Ke,Ke,1,8,Ve,Ge,ot),Nf(U,ge+4*Ke,Ke,1,8,Ve,Ge,ot)}function gr(p,B,U,ge,Ke,Ve,Ge,ot){Nf(p,B+4,1,Ke,8,Ve,Ge,ot),Nf(U,ge+4,1,Ke,8,Ve,Ge,ot)}function pn(){this.ba=new no,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 En(){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 aa(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function pa(){this.ua=0,this.Wa=new No,this.vb=new No,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Tr,this.yc=new Wt}function Ya(){this.xb=this.a=0,this.l=new Xd,this.ca=new no,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new It,this.Pb=0,this.wd=new It,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new pa,this.ab=0,this.gc=O(4,aa),this.Oc=0}function po(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Xd,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function sa(p,B,U,ge,Ke,Ve,Ge){for(p=p==null?0:p[B+0],B=0;B<Ge;++B)Ke[Ve+B]=p+U[ge+B]&255,p=Ke[Ve+B]}function Yl(p,B,U,ge,Ke,Ve,Ge){var ot;if(p==null)sa(null,null,U,ge,Ke,Ve,Ge);else for(ot=0;ot<Ge;++ot)Ke[Ve+ot]=p[B+ot]+U[ge+ot]&255}function _c(p,B,U,ge,Ke,Ve,Ge){if(p==null)sa(null,null,U,ge,Ke,Ve,Ge);else{var ot,ut=p[B+0],ft=ut,Ht=ut;for(ot=0;ot<Ge;++ot)ft=Ht+(ut=p[B+ot])-ft,Ht=U[ge+ot]+(-256&ft?0>ft?0:255:ft)&255,ft=ut,Ke[Ve+ot]=Ht}}function yl(p,B,U,ge){var Ke=B.width,Ve=B.o;if(o(p!=null&&B!=null),0>U||0>=ge||U+ge>Ve)return null;if(!p.Cc){if(p.ga==null){var Ge;if(p.ga=new po,(Ge=p.ga==null)||(Ge=B.width*B.o,o(p.Gb.length==0),p.Gb=g(Ge),p.Uc=0,p.Gb==null?Ge=0:(p.mb=p.Gb,p.nb=p.Uc,p.rc=null,Ge=1),Ge=!Ge),!Ge){Ge=p.ga;var ot=p.Fa,ut=p.P,ft=p.qc,Ht=p.mb,vr=p.nb,Ct=ut+1,ir=ft-1,mr=Ge.l;if(o(ot!=null&&Ht!=null&&B!=null),xh[0]=null,xh[1]=sa,xh[2]=Yl,xh[3]=_c,Ge.ca=Ht,Ge.tb=vr,Ge.c=B.width,Ge.i=B.height,o(0<Ge.c&&0<Ge.i),1>=ft)B=0;else if(Ge.$a=3&ot[ut+0],Ge.Z=ot[ut+0]>>2&3,Ge.Lc=ot[ut+0]>>4&3,ut=ot[ut+0]>>6&3,0>Ge.$a||1<Ge.$a||4<=Ge.Z||1<Ge.Lc||ut)B=0;else if(mr.put=ja,mr.ac=Zd,mr.bc=Lf,mr.ma=Ge,mr.width=B.width,mr.height=B.height,mr.Da=B.Da,mr.v=B.v,mr.va=B.va,mr.j=B.j,mr.o=B.o,Ge.$a)e:{o(Ge.$a==1),B=Vh();t:for(;;){if(B==null){B=0;break e}if(o(Ge!=null),Ge.mc=B,B.c=Ge.c,B.i=Ge.i,B.l=Ge.l,B.l.ma=Ge,B.l.width=Ge.c,B.l.height=Ge.i,B.a=0,Gr(B.m,ot,Ct,ir),!Gd(Ge.c,Ge.i,1,B,null)||(B.ab==1&&B.gc[0].hc==3&&RA(B.s)?(Ge.ic=1,ot=B.c*B.i,B.Ta=null,B.Ua=0,B.V=g(ot),B.Ba=0,B.V==null?(B.a=1,B=0):B=1):(Ge.ic=0,B=Wh(B,Ge.c)),!B))break t;B=1;break e}Ge.mc=null,B=0}else B=ir>=Ge.c*Ge.i;Ge=!B}if(Ge)return null;p.ga.Lc!=1?p.Ga=0:ge=Ve-U}o(p.ga!=null),o(U+ge<=Ve);e:{if(B=(ot=p.ga).c,Ve=ot.l.o,ot.$a==0){if(Ct=p.rc,ir=p.Vc,mr=p.Fa,ut=p.P+1+U*B,ft=p.mb,Ht=p.nb+U*B,o(ut<=p.P+p.qc),ot.Z!=0)for(o(xh[ot.Z]!=null),Ge=0;Ge<ge;++Ge)xh[ot.Z](Ct,ir,mr,ut,ft,Ht,B),Ct=ft,ir=Ht,Ht+=B,ut+=B;else for(Ge=0;Ge<ge;++Ge)l(ft,Ht,mr,ut,B),Ct=ft,ir=Ht,Ht+=B,ut+=B;p.rc=Ct,p.Vc=ir}else{if(o(ot.mc!=null),B=U+ge,o((Ge=ot.mc)!=null),o(B<=Ge.i),Ge.C>=B)B=1;else if(ot.ic||vd(),ot.ic){ot=Ge.V,Ct=Ge.Ba,ir=Ge.c;var Xr=Ge.i,Br=(mr=1,ut=Ge.$/ir,ft=Ge.$%ir,Ht=Ge.m,vr=Ge.s,Ge.$),ln=ir*Xr,vn=ir*B,Vn=vr.wc,Ln=Br<vn?fl(vr,ft,ut):null;o(Br<=ln),o(B<=Xr),o(RA(vr));t:for(;;){for(;!Ht.h&&Br<vn;){if(ft&Vn||(Ln=fl(vr,ft,ut)),o(Ln!=null),Er(Ht),256>(Xr=ac(Ln.G[0],Ln.H[0],Ht)))ot[Ct+Br]=Xr,++Br,++ft>=ir&&(ft=0,++ut<=B&&!(ut%16)&&lu(Ge,ut));else{if(!(280>Xr)){mr=0;break t}Xr=mA(Xr-256,Ht);var _a,la=ac(Ln.G[4],Ln.H[4],Ht);if(Er(Ht),!(Br>=(la=gA(ir,la=mA(la,Ht)))&&ln-Br>=Xr)){mr=0;break t}for(_a=0;_a<Xr;++_a)ot[Ct+Br+_a]=ot[Ct+Br+_a-la];for(Br+=Xr,ft+=Xr;ft>=ir;)ft-=ir,++ut<=B&&!(ut%16)&&lu(Ge,ut);Br<vn&&ft&Vn&&(Ln=fl(vr,ft,ut))}o(Ht.h==qt(Ht))}lu(Ge,ut>B?B:ut);break t}!mr||Ht.h&&Br<ln?(mr=0,Ge.a=Ht.h?5:3):Ge.$=Br,B=mr}else B=bA(Ge,Ge.V,Ge.Ba,Ge.c,Ge.i,B,Gh);if(!B){ge=0;break e}}U+ge>=Ve&&(p.Cc=1),ge=1}if(!ge)return null;if(p.Cc&&((ge=p.ga)!=null&&(ge.mc=null),p.ga=null,0<p.Ga))return alert("todo:WebPDequantizeLevels"),null}return p.nb+U*Ke}function hl(p,B,U,ge,Ke,Ve){for(;0<Ke--;){var Ge,ot=p,ut=B+(U?1:0),ft=p,Ht=B+(U?0:3);for(Ge=0;Ge<ge;++Ge){var vr=ft[Ht+4*Ge];vr!=255&&(vr*=32897,ot[ut+4*Ge+0]=ot[ut+4*Ge+0]*vr>>23,ot[ut+4*Ge+1]=ot[ut+4*Ge+1]*vr>>23,ot[ut+4*Ge+2]=ot[ut+4*Ge+2]*vr>>23)}B+=Ve}}function Ic(p,B,U,ge,Ke){for(;0<ge--;){var Ve;for(Ve=0;Ve<U;++Ve){var Ge=p[B+2*Ve+0],ot=15&(ft=p[B+2*Ve+1]),ut=4369*ot,ft=(240&ft|ft>>4)*ut>>16;p[B+2*Ve+0]=(240&Ge|Ge>>4)*ut>>16&240|(15&Ge|Ge<<4)*ut>>16>>4&15,p[B+2*Ve+1]=240&ft|ot}B+=Ke}}function uu(p,B,U,ge,Ke,Ve,Ge,ot){var ut,ft,Ht=255;for(ft=0;ft<Ke;++ft){for(ut=0;ut<ge;++ut){var vr=p[B+ut];Ve[Ge+4*ut]=vr,Ht&=vr}B+=U,Ge+=ot}return Ht!=255}function Tf(p,B,U,ge,Ke){var Ve;for(Ve=0;Ve<Ke;++Ve)U[ge+Ve]=p[B+Ve]>>8}function vd(){Qp=hl,Lg=Ic,cg=uu,kg=Tf}function vo(p,B,U){Lt[p]=function(ge,Ke,Ve,Ge,ot,ut,ft,Ht,vr,Ct,ir,mr,Xr,Br,ln,vn,Vn){var Ln,_a=Vn-1>>1,la=ot[ut+0]|ft[Ht+0]<<16,jo=vr[Ct+0]|ir[mr+0]<<16;o(ge!=null);var va=3*la+jo+131074>>2;for(B(ge[Ke+0],255&va,va>>16,Xr,Br),Ve!=null&&(va=3*jo+la+131074>>2,B(Ve[Ge+0],255&va,va>>16,ln,vn)),Ln=1;Ln<=_a;++Ln){var Fs=ot[ut+Ln]|ft[Ht+Ln]<<16,Au=vr[Ct+Ln]|ir[mr+Ln]<<16,zo=la+Fs+jo+Au+524296,ba=zo+2*(Fs+jo)>>3;va=ba+la>>1,la=(zo=zo+2*(la+Au)>>3)+Fs>>1,B(ge[Ke+2*Ln-1],255&va,va>>16,Xr,Br+(2*Ln-1)*U),B(ge[Ke+2*Ln-0],255&la,la>>16,Xr,Br+(2*Ln-0)*U),Ve!=null&&(va=zo+jo>>1,la=ba+Au>>1,B(Ve[Ge+2*Ln-1],255&va,va>>16,ln,vn+(2*Ln-1)*U),B(Ve[Ge+2*Ln+0],255&la,la>>16,ln,vn+(2*Ln+0)*U)),la=Fs,jo=Au}1&Vn||(va=3*la+jo+131074>>2,B(ge[Ke+Vn-1],255&va,va>>16,Xr,Br+(Vn-1)*U),Ve!=null&&(va=3*jo+la+131074>>2,B(Ve[Ge+Vn-1],255&va,va>>16,ln,vn+(Vn-1)*U)))}}function bd(){ZA[Fm]=w1,ZA[Mm]=t,ZA[Pg]=e,ZA[Kp]=r,ZA[ap]=i,ZA[Ag]=s,ZA[Ho]=c,ZA[dg]=t,ZA[lf]=r,ZA[sc]=i,ZA[d0]=s}function yd(p){return p&~Pe?0>p?0:255:p>>ue}function rf(p,B){return yd((19077*p>>8)+(26149*B>>8)-14234)}function KA(p,B,U){return yd((19077*p>>8)-(6419*B>>8)-(13320*U>>8)+8708)}function Uf(p,B){return yd((19077*p>>8)+(33050*B>>8)-17685)}function hh(p,B,U,ge,Ke){ge[Ke+0]=rf(p,U),ge[Ke+1]=KA(p,B,U),ge[Ke+2]=Uf(p,B)}function mc(p,B,U,ge,Ke){ge[Ke+0]=Uf(p,B),ge[Ke+1]=KA(p,B,U),ge[Ke+2]=rf(p,U)}function i0(p,B,U,ge,Ke){var Ve=KA(p,B,U);B=Ve<<3&224|Uf(p,B)>>3,ge[Ke+0]=248&rf(p,U)|Ve>>5,ge[Ke+1]=B}function ph(p,B,U,ge,Ke){var Ve=240&Uf(p,B)|15;ge[Ke+0]=240&rf(p,U)|KA(p,B,U)>>4,ge[Ke+1]=Ve}function Tp(p,B,U,ge,Ke){ge[Ke+0]=255,hh(p,B,U,ge,Ke+1)}function io(p,B,U,ge,Ke){mc(p,B,U,ge,Ke),ge[Ke+3]=255}function Fc(p,B,U,ge,Ke){hh(p,B,U,ge,Ke),ge[Ke+3]=255}function yA(p,B,U){Lt[p]=function(ge,Ke,Ve,Ge,ot,ut,ft,Ht,vr){for(var Ct=Ht+(-2&vr)*U;Ht!=Ct;)B(ge[Ke+0],Ve[Ge+0],ot[ut+0],ft,Ht),B(ge[Ke+1],Ve[Ge+0],ot[ut+0],ft,Ht+U),Ke+=2,++Ge,++ut,Ht+=2*U;1&vr&&B(ge[Ke+0],Ve[Ge+0],ot[ut+0],ft,Ht)}}function nf(p,B,U){return U==0?p==0?B==0?6:5:B==0?4:0:U}function wm(p,B,U,ge,Ke){switch(p>>>30){case 3:c0(B,U,ge,Ke,0);break;case 2:zA(B,U,ge,Ke);break;case 1:qs(B,U,ge,Ke)}}function ms(p,B){var U,ge,Ke=B.M,Ve=B.Nb,Ge=p.oc,ot=p.pc+40,ut=p.oc,ft=p.pc+584,Ht=p.oc,vr=p.pc+600;for(U=0;16>U;++U)Ge[ot+32*U-1]=129;for(U=0;8>U;++U)ut[ft+32*U-1]=129,Ht[vr+32*U-1]=129;for(0<Ke?Ge[ot-1-32]=ut[ft-1-32]=Ht[vr-1-32]=129:(u(Ge,ot-32-1,127,21),u(ut,ft-32-1,127,9),u(Ht,vr-32-1,127,9)),ge=0;ge<p.za;++ge){var Ct=B.ya[B.aa+ge];if(0<ge){for(U=-1;16>U;++U)l(Ge,ot+32*U-4,Ge,ot+32*U+12,4);for(U=-1;8>U;++U)l(ut,ft+32*U-4,ut,ft+32*U+4,4),l(Ht,vr+32*U-4,Ht,vr+32*U+4,4)}var ir=p.Gd,mr=p.Hd+ge,Xr=Ct.ad,Br=Ct.Hc;if(0<Ke&&(l(Ge,ot-32,ir[mr].y,0,16),l(ut,ft-32,ir[mr].f,0,8),l(Ht,vr-32,ir[mr].ea,0,8)),Ct.Za){var ln=Ge,vn=ot-32+16;for(0<Ke&&(ge>=p.za-1?u(ln,vn,ir[mr].y[15],4):l(ln,vn,ir[mr+1].y,0,4)),U=0;4>U;U++)ln[vn+128+U]=ln[vn+256+U]=ln[vn+384+U]=ln[vn+0+U];for(U=0;16>U;++U,Br<<=2)ln=Ge,vn=ot+Mn[U],wd[Ct.Ob[U]](ln,vn),wm(Br,Xr,16*+U,ln,vn)}else if(ln=nf(ge,Ke,Ct.Ob[0]),wh[ln](Ge,ot),Br!=0)for(U=0;16>U;++U,Br<<=2)wm(Br,Xr,16*+U,Ge,ot+Mn[U]);for(U=Ct.Gc,ln=nf(ge,Ke,Ct.Dd),Nu[ln](ut,ft),Nu[ln](Ht,vr),Br=Xr,ln=ut,vn=ft,255&(Ct=0|U)&&(170&Ct?sf(Br,256,ln,vn):pl(Br,256,ln,vn)),Ct=Ht,Br=vr,255&(U>>=8)&&(170&U?sf(Xr,320,Ct,Br):pl(Xr,320,Ct,Br)),Ke<p.Ub-1&&(l(ir[mr].y,0,Ge,ot+480,16),l(ir[mr].f,0,ut,ft+224,8),l(ir[mr].ea,0,Ht,vr+224,8)),U=8*Ve*p.B,ir=p.sa,mr=p.ta+16*ge+16*Ve*p.R,Xr=p.qa,Ct=p.ra+8*ge+U,Br=p.Ha,ln=p.Ia+8*ge+U,U=0;16>U;++U)l(ir,mr+U*p.R,Ge,ot+32*U,16);for(U=0;8>U;++U)l(Xr,Ct+U*p.B,ut,ft+32*U,8),l(Br,ln+U*p.B,Ht,vr+32*U,8)}}function a0(p,B,U,ge,Ke,Ve,Ge,ot,ut){var ft=[0],Ht=[0],vr=0,Ct=ut!=null?ut.kd:0,ir=ut!=null?ut:new En;if(p==null||12>U)return 7;ir.data=p,ir.w=B,ir.ha=U,B=[B],U=[U],ir.gb=[ir.gb];e:{var mr=B,Xr=U,Br=ir.gb;if(o(p!=null),o(Xr!=null),o(Br!=null),Br[0]=0,12<=Xr[0]&&!a(p,mr[0],"RIFF")){if(a(p,mr[0]+8,"WEBP")){Br=3;break e}var ln=Sa(p,mr[0]+4);if(12>ln||4294967286<ln){Br=3;break e}if(Ct&&ln>Xr[0]-8){Br=7;break e}Br[0]=ln,mr[0]+=12,Xr[0]-=12}Br=0}if(Br!=0)return Br;for(ln=0<ir.gb[0],U=U[0];;){e:{var vn=p;Xr=B,Br=U;var Vn=ft,Ln=Ht,_a=mr=[0];if((va=vr=[vr])[0]=0,8>Br[0])Br=7;else{if(!a(vn,Xr[0],"VP8X")){if(Sa(vn,Xr[0]+4)!=10){Br=3;break e}if(18>Br[0]){Br=7;break e}var la=Sa(vn,Xr[0]+8),jo=1+Ci(vn,Xr[0]+12);if(2147483648<=jo*(vn=1+Ci(vn,Xr[0]+15))){Br=3;break e}_a!=null&&(_a[0]=la),Vn!=null&&(Vn[0]=jo),Ln!=null&&(Ln[0]=vn),Xr[0]+=18,Br[0]-=18,va[0]=1}Br=0}}if(vr=vr[0],mr=mr[0],Br!=0)return Br;if(Xr=!!(2&mr),!ln&&vr)return 3;if(Ve!=null&&(Ve[0]=!!(16&mr)),Ge!=null&&(Ge[0]=Xr),ot!=null&&(ot[0]=0),Ge=ft[0],mr=Ht[0],vr&&Xr&&ut==null){Br=0;break}if(4>U){Br=7;break}if(ln&&vr||!ln&&!vr&&!a(p,B[0],"ALPH")){U=[U],ir.na=[ir.na],ir.P=[ir.P],ir.Sa=[ir.Sa];e:{la=p,Br=B,ln=U;var va=ir.gb;Vn=ir.na,Ln=ir.P,_a=ir.Sa,jo=22,o(la!=null),o(ln!=null),vn=Br[0];var Fs=ln[0];for(o(Vn!=null),o(_a!=null),Vn[0]=null,Ln[0]=null,_a[0]=0;;){if(Br[0]=vn,ln[0]=Fs,8>Fs){Br=7;break e}var Au=Sa(la,vn+4);if(4294967286<Au){Br=3;break e}var zo=8+Au+1&-2;if(jo+=zo,0<va&&jo>va){Br=3;break e}if(!a(la,vn,"VP8 ")||!a(la,vn,"VP8L")){Br=0;break e}if(Fs[0]<zo){Br=7;break e}a(la,vn,"ALPH")||(Vn[0]=la,Ln[0]=vn+8,_a[0]=Au),vn+=zo,Fs-=zo}}if(U=U[0],ir.na=ir.na[0],ir.P=ir.P[0],ir.Sa=ir.Sa[0],Br!=0)break}U=[U],ir.Ja=[ir.Ja],ir.xa=[ir.xa];e:if(va=p,Br=B,ln=U,Vn=ir.gb[0],Ln=ir.Ja,_a=ir.xa,la=Br[0],vn=!a(va,la,"VP8 "),jo=!a(va,la,"VP8L"),o(va!=null),o(ln!=null),o(Ln!=null),o(_a!=null),8>ln[0])Br=7;else{if(vn||jo){if(va=Sa(va,la+4),12<=Vn&&va>Vn-12){Br=3;break e}if(Ct&&va>ln[0]-8){Br=7;break e}Ln[0]=va,Br[0]+=8,ln[0]-=8,_a[0]=jo}else _a[0]=5<=ln[0]&&va[la+0]==47&&!(va[la+4]>>5),Ln[0]=ln[0];Br=0}if(U=U[0],ir.Ja=ir.Ja[0],ir.xa=ir.xa[0],B=B[0],Br!=0)break;if(4294967286<ir.Ja)return 3;if(ot==null||Xr||(ot[0]=ir.xa?2:1),Ge=[Ge],mr=[mr],ir.xa){if(5>U){Br=7;break}ot=Ge,Ct=mr,Xr=Ve,p==null||5>U?p=0:5<=U&&p[B+0]==47&&!(p[B+4]>>5)?(ln=[0],va=[0],Vn=[0],Gr(Ln=new It,p,B,U),kf(Ln,ln,va,Vn)?(ot!=null&&(ot[0]=ln[0]),Ct!=null&&(Ct[0]=va[0]),Xr!=null&&(Xr[0]=Vn[0]),p=1):p=0):p=0}else{if(10>U){Br=7;break}ot=mr,p==null||10>U||!kp(p,B+3,U-3)?p=0:(Ct=p[B+0]|p[B+1]<<8|p[B+2]<<16,Xr=16383&(p[B+7]<<8|p[B+6]),p=16383&(p[B+9]<<8|p[B+8]),1&Ct||3<(Ct>>1&7)||!(Ct>>4&1)||Ct>>5>=ir.Ja||!Xr||!p?p=0:(Ge&&(Ge[0]=Xr),ot&&(ot[0]=p),p=1))}if(!p||(Ge=Ge[0],mr=mr[0],vr&&(ft[0]!=Ge||Ht[0]!=mr)))return 3;ut!=null&&(ut[0]=ir,ut.offset=B-ut.w,o(4294967286>B-ut.w),o(ut.offset==ut.ha-U));break}return Br==0||Br==7&&vr&&ut==null?(Ve!=null&&(Ve[0]|=ir.na!=null&&0<ir.na.length),ge!=null&&(ge[0]=Ge),Ke!=null&&(Ke[0]=mr),0):Br}function Tl(p,B,U){var ge=B.width,Ke=B.height,Ve=0,Ge=0,ot=ge,ut=Ke;if(B.Da=p!=null&&0<p.Da,B.Da&&(ot=p.cd,ut=p.bd,Ve=p.v,Ge=p.j,11>U||(Ve&=-2,Ge&=-2),0>Ve||0>Ge||0>=ot||0>=ut||Ve+ot>ge||Ge+ut>Ke))return 0;if(B.v=Ve,B.j=Ge,B.va=Ve+ot,B.o=Ge+ut,B.U=ot,B.T=ut,B.da=p!=null&&0<p.da,B.da){if(!Ha(ot,ut,U=[p.ib],Ve=[p.hb]))return 0;B.ib=U[0],B.hb=Ve[0]}return B.ob=p!=null&&p.ob,B.Kb=p==null||!p.Sd,B.da&&(B.ob=B.ib<3*ge/4&&B.hb<3*Ke/4,B.Kb=0),1}function xm(p){if(p==null)return 2;if(11>p.S){var B=p.f.RGBA;B.fb+=(p.height-1)*B.A,B.A=-B.A}else B=p.f.kb,p=p.height,B.O+=(p-1)*B.fa,B.fa=-B.fa,B.N+=(p-1>>1)*B.Ab,B.Ab=-B.Ab,B.W+=(p-1>>1)*B.Db,B.Db=-B.Db,B.F!=null&&(B.J+=(p-1)*B.lb,B.lb=-B.lb);return 0}function mh(p,B,U,ge){if(ge==null||0>=p||0>=B)return 2;if(U!=null){if(U.Da){var Ke=U.cd,Ve=U.bd,Ge=-2&U.v,ot=-2&U.j;if(0>Ge||0>ot||0>=Ke||0>=Ve||Ge+Ke>p||ot+Ve>B)return 2;p=Ke,B=Ve}if(U.da){if(!Ha(p,B,Ke=[U.ib],Ve=[U.hb]))return 2;p=Ke[0],B=Ve[0]}}ge.width=p,ge.height=B;e:{var ut=ge.width,ft=ge.height;if(p=ge.S,0>=ut||0>=ft||!(p>=Fm&&13>p))p=2;else{if(0>=ge.Rd&&ge.sd==null){Ge=Ve=Ke=B=0;var Ht=(ot=ut*Hi[p])*ft;if(11>p||(Ve=(ft+1)/2*(B=(ut+1)/2),p==12&&(Ge=(Ke=ut)*ft)),(ft=g(Ht+2*Ve+Ge))==null){p=1;break e}ge.sd=ft,11>p?((ut=ge.f.RGBA).eb=ft,ut.fb=0,ut.A=ot,ut.size=Ht):((ut=ge.f.kb).y=ft,ut.O=0,ut.fa=ot,ut.Fd=Ht,ut.f=ft,ut.N=0+Ht,ut.Ab=B,ut.Cd=Ve,ut.ea=ft,ut.W=0+Ht+Ve,ut.Db=B,ut.Ed=Ve,p==12&&(ut.F=ft,ut.J=0+Ht+2*Ve),ut.Tc=Ge,ut.lb=Ke)}if(B=1,Ke=ge.S,Ve=ge.width,Ge=ge.height,Ke>=Fm&&13>Ke)if(11>Ke)p=ge.f.RGBA,B&=(ot=Math.abs(p.A))*(Ge-1)+Ve<=p.size,B&=ot>=Ve*Hi[Ke],B&=p.eb!=null;else{p=ge.f.kb,ot=(Ve+1)/2,Ht=(Ge+1)/2,ut=Math.abs(p.fa),ft=Math.abs(p.Ab);var vr=Math.abs(p.Db),Ct=Math.abs(p.lb),ir=Ct*(Ge-1)+Ve;B&=ut*(Ge-1)+Ve<=p.Fd,B&=ft*(Ht-1)+ot<=p.Cd,B=(B&=vr*(Ht-1)+ot<=p.Ed)&ut>=Ve&ft>=ot&vr>=ot,B&=p.y!=null,B&=p.f!=null,B&=p.ea!=null,Ke==12&&(B&=Ct>=Ve,B&=ir<=p.Tc,B&=p.F!=null)}else B=0;p=B?0:2}}return p!=0||U!=null&&U.fd&&(p=xm(ge)),p}var o0=64,Ou=[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],wA=24,s0=32,gh=8,af=[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];Pi("Predictor0","PredictorAdd0"),Lt.Predictor0=function(){return 4278190080},Lt.Predictor1=function(p){return p},Lt.Predictor2=function(p,B,U){return B[U+0]},Lt.Predictor3=function(p,B,U){return B[U+1]},Lt.Predictor4=function(p,B,U){return B[U-1]},Lt.Predictor5=function(p,B,U){return La(La(p,B[U+1]),B[U+0])},Lt.Predictor6=function(p,B,U){return La(p,B[U-1])},Lt.Predictor7=function(p,B,U){return La(p,B[U+0])},Lt.Predictor8=function(p,B,U){return La(B[U-1],B[U+0])},Lt.Predictor9=function(p,B,U){return La(B[U+0],B[U+1])},Lt.Predictor10=function(p,B,U){return La(La(p,B[U-1]),La(B[U+0],B[U+1]))},Lt.Predictor11=function(p,B,U){var ge=B[U+0];return 0>=Xa(ge>>24&255,p>>24&255,(B=B[U-1])>>24&255)+Xa(ge>>16&255,p>>16&255,B>>16&255)+Xa(ge>>8&255,p>>8&255,B>>8&255)+Xa(255&ge,255&p,255&B)?ge:p},Lt.Predictor12=function(p,B,U){var ge=B[U+0];return(is((p>>24&255)+(ge>>24&255)-((B=B[U-1])>>24&255))<<24|is((p>>16&255)+(ge>>16&255)-(B>>16&255))<<16|is((p>>8&255)+(ge>>8&255)-(B>>8&255))<<8|is((255&p)+(255&ge)-(255&B)))>>>0},Lt.Predictor13=function(p,B,U){var ge=B[U-1];return(as((p=La(p,B[U+0]))>>24&255,ge>>24&255)<<24|as(p>>16&255,ge>>16&255)<<16|as(p>>8&255,ge>>8&255)<<8|as(255&p,255&ge))>>>0};var of=Lt.PredictorAdd0;Lt.PredictorAdd1=Xo,Pi("Predictor2","PredictorAdd2"),Pi("Predictor3","PredictorAdd3"),Pi("Predictor4","PredictorAdd4"),Pi("Predictor5","PredictorAdd5"),Pi("Predictor6","PredictorAdd6"),Pi("Predictor7","PredictorAdd7"),Pi("Predictor8","PredictorAdd8"),Pi("Predictor9","PredictorAdd9"),Pi("Predictor10","PredictorAdd10"),Pi("Predictor11","PredictorAdd11"),Pi("Predictor12","PredictorAdd12"),Pi("Predictor13","PredictorAdd13");var tp=Lt.PredictorAdd2;Ca("ColorIndexInverseTransform","MapARGB","32b",function(p){return p>>8&255},function(p){return p}),Ca("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(p){return p},function(p){return p>>8&255});var ql,Cm=Lt.ColorIndexInverseTransform,HA=Lt.MapARGB,jA=Lt.VP8LColorIndexInverseTransformAlpha,l0=Lt.MapAlpha,rp=Lt.VP8LPredictorsAdd=[];rp.length=16,(Lt.VP8LPredictors=[]).length=16,(Lt.VP8LPredictorsAdd_C=[]).length=16,(Lt.VP8LPredictors_C=[]).length=16;var Up,np,Rf,vh,gs,bh,yh,c0,zA,sf,qs,pl,gc,zc,Qf,Rp,$A,Bm,Fg,ip,Mg,Sm,Em,u0,Qp,Lg,cg,kg,Dg=g(511),Og=g(2041),Ng=g(225),ug=g(767),_m=0,A0=Og,Im=Ng,xA=ug,vc=Dg,Fm=0,Mm=1,Pg=2,Kp=3,ap=4,Ag=5,Ho=6,dg=7,lf=8,sc=9,d0=10,Kf=[2,3,7],Hp=[3,3,11],f0=[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],op=[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],sp=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],h0=[-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],wh=[],wd=[],Nu=[],y1=1,c1=2,xh=[],ZA=[];vo("UpsampleRgbLinePair",hh,3),vo("UpsampleBgrLinePair",mc,3),vo("UpsampleRgbaLinePair",Fc,4),vo("UpsampleBgraLinePair",io,4),vo("UpsampleArgbLinePair",Tp,4),vo("UpsampleRgba4444LinePair",ph,2),vo("UpsampleRgb565LinePair",i0,2);var w1=Lt.UpsampleRgbLinePair,e=Lt.UpsampleBgrLinePair,t=Lt.UpsampleRgbaLinePair,r=Lt.UpsampleBgraLinePair,i=Lt.UpsampleArgbLinePair,s=Lt.UpsampleRgba4444LinePair,c=Lt.UpsampleRgb565LinePair,A=16,k=1<<A-1,j=-227,J=482,ue=6,Pe=(256<<ue)-1,nt=0,bt=g(256),Et=g(256),Cr=g(256),_n=g(256),wr=g(J-j),nn=g(J-j);yA("YuvToRgbRow",hh,3),yA("YuvToBgrRow",mc,3),yA("YuvToRgbaRow",Fc,4),yA("YuvToBgraRow",io,4),yA("YuvToArgbRow",Tp,4),yA("YuvToRgba4444Row",ph,2),yA("YuvToRgb565Row",i0,2);var Mn=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],cn=[0,2,8],Bi=[8,7,6,4,4,2,2,2,1,1,1,1],ra=1;this.WebPDecodeRGBA=function(p,B,U,ge,Ke){var Ve=Mm,Ge=new pn,ot=new no;Ge.ba=ot,ot.S=Ve,ot.width=[ot.width],ot.height=[ot.height];var ut=ot.width,ft=ot.height,Ht=new Oa;if(Ht==null||p==null)var vr=2;else o(Ht!=null),vr=a0(p,B,U,Ht.width,Ht.height,Ht.Pd,Ht.Qd,Ht.format,null);if(vr!=0?ut=0:(ut!=null&&(ut[0]=Ht.width[0]),ft!=null&&(ft[0]=Ht.height[0]),ut=1),ut){ot.width=ot.width[0],ot.height=ot.height[0],ge!=null&&(ge[0]=ot.width),Ke!=null&&(Ke[0]=ot.height);e:{if(ge=new Xd,(Ke=new En).data=p,Ke.w=B,Ke.ha=U,Ke.kd=1,B=[0],o(Ke!=null),((p=a0(Ke.data,Ke.w,Ke.ha,null,null,null,B,null,Ke))==0||p==7)&&B[0]&&(p=4),(B=p)==0){if(o(Ge!=null),ge.data=Ke.data,ge.w=Ke.w+Ke.offset,ge.ha=Ke.ha-Ke.offset,ge.put=ja,ge.ac=Zd,ge.bc=Lf,ge.ma=Ge,Ke.xa){if((p=Vh())==null){Ge=1;break e}if(function(Ct,ir){var mr=[0],Xr=[0],Br=[0];t:for(;;){if(Ct==null)return 0;if(ir==null)return Ct.a=2,0;if(Ct.l=ir,Ct.a=0,Gr(Ct.m,ir.data,ir.w,ir.ha),!kf(Ct.m,mr,Xr,Br)){Ct.a=3;break t}if(Ct.xb=c1,ir.width=mr[0],ir.height=Xr[0],!Gd(mr[0],Xr[0],1,Ct,null))break t;return 1}return o(Ct.a!=0),0}(p,ge)){if(ge=(B=mh(ge.width,ge.height,Ge.Oa,Ge.ba))==0){t:{ge=p;r:for(;;){if(ge==null){ge=0;break t}if(o(ge.s.yc!=null),o(ge.s.Ya!=null),o(0<ge.s.Wb),o((U=ge.l)!=null),o((Ke=U.ma)!=null),ge.xb!=0){if(ge.ca=Ke.ba,ge.tb=Ke.tb,o(ge.ca!=null),!Tl(Ke.Oa,U,Kp)){ge.a=2;break r}if(!Wh(ge,U.width)||U.da)break r;if((U.da||Ja(ge.ca.S))&&vd(),11>ge.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),ge.ca.f.kb.F!=null&&vd()),ge.Pb&&0<ge.s.ua&&ge.s.vb.X==null&&!gt(ge.s.vb,ge.s.Wa.Xa)){ge.a=1;break r}ge.xb=0}if(!bA(ge,ge.V,ge.Ba,ge.c,ge.i,U.o,Wd))break r;Ke.Dc=ge.Ma,ge=1;break t}o(ge.a!=0),ge=0}ge=!ge}ge&&(B=p.a)}else B=p.a}else{if((p=new V0)==null){Ge=1;break e}if(p.Fa=Ke.na,p.P=Ke.P,p.qc=Ke.Sa,Jd(p,ge)){if((B=mh(ge.width,ge.height,Ge.Oa,Ge.ba))==0){if(p.Aa=0,U=Ge.Oa,o((Ke=p)!=null),U!=null){if(0<(ut=0>(ut=U.Md)?0:100<ut?255:255*ut/100)){for(ft=Ht=0;4>ft;++ft)12>(vr=Ke.pb[ft]).lc&&(vr.ia=ut*Bi[0>vr.lc?0:vr.lc]>>3),Ht|=vr.ia;Ht&&(alert("todo:VP8InitRandom"),Ke.ia=1)}Ke.Ga=U.Id,100<Ke.Ga?Ke.Ga=100:0>Ke.Ga&&(Ke.Ga=0)}(function(Ct,ir){if(Ct==null)return 0;if(ir==null)return oc(Ct,2,"NULL VP8Io parameter in VP8Decode().");if(!Ct.cb&&!Jd(Ct,ir))return 0;if(o(Ct.cb),ir.ac==null||ir.ac(ir)){ir.ob&&(Ct.L=0);var mr=cn[Ct.L];if(Ct.L==2?(Ct.yb=0,Ct.zb=0):(Ct.yb=ir.v-mr>>4,Ct.zb=ir.j-mr>>4,0>Ct.yb&&(Ct.yb=0),0>Ct.zb&&(Ct.zb=0)),Ct.Va=ir.o+15+mr>>4,Ct.Hb=ir.va+15+mr>>4,Ct.Hb>Ct.za&&(Ct.Hb=Ct.za),Ct.Va>Ct.Ub&&(Ct.Va=Ct.Ub),0<Ct.L){var Xr=Ct.ed;for(mr=0;4>mr;++mr){var Br;if(Ct.Qa.Cb){var ln=Ct.Qa.Lb[mr];Ct.Qa.Fb||(ln+=Xr.Tb)}else ln=Xr.Tb;for(Br=0;1>=Br;++Br){var vn=Ct.gd[mr][Br],Vn=ln;if(Xr.Pc&&(Vn+=Xr.vd[0],Br&&(Vn+=Xr.od[0])),0<(Vn=0>Vn?0:63<Vn?63:Vn)){var Ln=Vn;0<Xr.wb&&(Ln=4<Xr.wb?Ln>>2:Ln>>1)>9-Xr.wb&&(Ln=9-Xr.wb),1>Ln&&(Ln=1),vn.dd=Ln,vn.tc=2*Vn+Ln,vn.ld=40<=Vn?2:15<=Vn?1:0}else vn.tc=0;vn.La=Br}}}mr=0}else oc(Ct,6,"Frame setup failed"),mr=Ct.a;if(mr=mr==0){if(mr){Ct.$c=0,0<Ct.Aa||(Ct.Ic=ra);t:{mr=Ct.Ic,Xr=4*(Ln=Ct.za);var _a=32*Ln,la=Ln+1,jo=0<Ct.L?Ln*(0<Ct.Aa?2:1):0,va=(Ct.Aa==2?2:1)*Ln;if((vn=Xr+832+(Br=3*(16*mr+cn[Ct.L])/2*_a)+(ln=Ct.Fa!=null&&0<Ct.Fa.length?Ct.Kc.c*Ct.Kc.i:0))!=vn)mr=0;else{if(vn>Ct.Vb){if(Ct.Vb=0,Ct.Ec=g(vn),Ct.Fc=0,Ct.Ec==null){mr=oc(Ct,1,"no memory during frame initialization.");break t}Ct.Vb=vn}vn=Ct.Ec,Vn=Ct.Fc,Ct.Ac=vn,Ct.Bc=Vn,Vn+=Xr,Ct.Gd=O(_a,Z0),Ct.Hd=0,Ct.rb=O(la+1,Jh),Ct.sb=1,Ct.wa=jo?O(jo,eA):null,Ct.Y=0,Ct.D.Nb=0,Ct.D.wa=Ct.wa,Ct.D.Y=Ct.Y,0<Ct.Aa&&(Ct.D.Y+=Ln),o(!0),Ct.oc=vn,Ct.pc=Vn,Vn+=832,Ct.ya=O(va,Mp),Ct.aa=0,Ct.D.ya=Ct.ya,Ct.D.aa=Ct.aa,Ct.Aa==2&&(Ct.D.aa+=Ln),Ct.R=16*Ln,Ct.B=8*Ln,Ln=(_a=cn[Ct.L])*Ct.R,_a=_a/2*Ct.B,Ct.sa=vn,Ct.ta=Vn+Ln,Ct.qa=Ct.sa,Ct.ra=Ct.ta+16*mr*Ct.R+_a,Ct.Ha=Ct.qa,Ct.Ia=Ct.ra+8*mr*Ct.B+_a,Ct.$c=0,Vn+=Br,Ct.mb=ln?vn:null,Ct.nb=ln?Vn:null,o(Vn+ln<=Ct.Fc+Ct.Vb),pm(Ct),u(Ct.Ac,Ct.Bc,0,Xr),mr=1}}if(mr){if(ir.ka=0,ir.y=Ct.sa,ir.O=Ct.ta,ir.f=Ct.qa,ir.N=Ct.ra,ir.ea=Ct.Ha,ir.Vd=Ct.Ia,ir.fa=Ct.R,ir.Rc=Ct.B,ir.F=null,ir.J=0,!_m){for(mr=-255;255>=mr;++mr)Dg[255+mr]=0>mr?-mr:mr;for(mr=-1020;1020>=mr;++mr)Og[1020+mr]=-128>mr?-128:127<mr?127:mr;for(mr=-112;112>=mr;++mr)Ng[112+mr]=-16>mr?-16:15<mr?15:mr;for(mr=-255;510>=mr;++mr)ug[255+mr]=0>mr?0:255<mr?255:mr;_m=1}yh=Qu,c0=tg,sf=hd,qs=gm,pl=vm,zA=W0,gc=Pf,zc=fh,Qf=He,Rp=St,$A=Pp,Bm=z,Fg=Zt,ip=gr,Mg=Of,Sm=q0,Em=ep,u0=Np,wd[0]=og,wd[1]=cu,wd[2]=ig,wd[3]=ag,wd[4]=md,wd[5]=sg,wd[6]=gd,wd[7]=Dp,wd[8]=dh,wd[9]=Y0,wh[0]=rg,wh[1]=G0,wh[2]=X0,wh[3]=qh,wh[4]=e0,wh[5]=J0,wh[6]=ng,Nu[0]=bm,Nu[1]=Pl,Nu[2]=t0,Nu[3]=lg,Nu[4]=Op,Nu[5]=r0,Nu[6]=ym,mr=1}else mr=0}mr&&(mr=function(Fs,Au){for(Fs.M=0;Fs.M<Fs.Va;++Fs.M){var zo,ba=Fs.Jc[Fs.M&Fs.Xb],Ii=Fs.m,$c=Fs;for(zo=0;zo<$c.za;++zo){var ko=Ii,Ns=$c,ec=Ns.Ac,Hu=Ns.Bc+4*zo,CA=Ns.zc,Mc=Ns.ya[Ns.aa+zo];if(Ns.Qa.Bb?Mc.$b=mn(ko,Ns.Pa.jb[0])?2+mn(ko,Ns.Pa.jb[2]):mn(ko,Ns.Pa.jb[1]):Mc.$b=0,Ns.kc&&(Mc.Ad=mn(ko,Ns.Bd)),Mc.Za=!mn(ko,145)+0,Mc.Za){var tA=Mc.Ob,BA=0;for(Ns=0;4>Ns;++Ns){var du,js=CA[0+Ns];for(du=0;4>du;++du){js=Hg[ec[Hu+du]][js];for(var ml=h0[mn(ko,js[0])];0<ml;)ml=h0[2*ml+mn(ko,js[ml])];js=-ml,ec[Hu+du]=js}l(tA,BA,ec,Hu,4),BA+=4,CA[0+Ns]=js}}else js=mn(ko,156)?mn(ko,128)?1:3:mn(ko,163)?2:0,Mc.Ob[0]=js,u(ec,Hu,js,4),u(CA,0,js,4);Mc.Dd=mn(ko,142)?mn(ko,114)?mn(ko,183)?1:3:2:0}if($c.m.Ka)return oc(Fs,7,"Premature end-of-partition0 encountered.");for(;Fs.ja<Fs.za;++Fs.ja){if($c=ba,ko=(Ii=Fs).rb[Ii.sb-1],ec=Ii.rb[Ii.sb+Ii.ja],zo=Ii.ya[Ii.aa+Ii.ja],Hu=Ii.kc?zo.Ad:0)ko.la=ec.la=0,zo.Za||(ko.Na=ec.Na=0),zo.Hc=0,zo.Gc=0,zo.ia=0;else{var Lc,gl;if(ko=ec,ec=$c,Hu=Ii.Pa.Xc,CA=Ii.ya[Ii.aa+Ii.ja],Mc=Ii.pb[CA.$b],Ns=CA.ad,tA=0,BA=Ii.rb[Ii.sb-1],js=du=0,u(Ns,tA,0,384),CA.Za)var ju=0,Hf=Hu[3];else{ml=g(16);var Zc=ko.Na+BA.Na;if(Zc=sp(ec,Hu[1],Zc,Mc.Eb,0,ml,0),ko.Na=BA.Na=(0<Zc)+0,1<Zc)yh(ml,0,Ns,tA);else{var VA=ml[0]+3>>3;for(ml=0;256>ml;ml+=16)Ns[tA+ml]=VA}ju=1,Hf=Hu[0]}var Il=15&ko.la,fu=15&BA.la;for(ml=0;4>ml;++ml){var xd=1&fu;for(VA=gl=0;4>VA;++VA)Il=Il>>1|(xd=(Zc=sp(ec,Hf,Zc=xd+(1&Il),Mc.Sc,ju,Ns,tA))>ju)<<7,gl=gl<<2|(3<Zc?3:1<Zc?2:Ns[tA+0]!=0),tA+=16;Il>>=4,fu=fu>>1|xd<<7,du=(du<<8|gl)>>>0}for(Hf=Il,ju=fu>>4,Lc=0;4>Lc;Lc+=2){for(gl=0,Il=ko.la>>4+Lc,fu=BA.la>>4+Lc,ml=0;2>ml;++ml){for(xd=1&fu,VA=0;2>VA;++VA)Zc=xd+(1&Il),Il=Il>>1|(xd=0<(Zc=sp(ec,Hu[2],Zc,Mc.Qc,0,Ns,tA)))<<3,gl=gl<<2|(3<Zc?3:1<Zc?2:Ns[tA+0]!=0),tA+=16;Il>>=2,fu=fu>>1|xd<<5}js|=gl<<4*Lc,Hf|=Il<<4<<Lc,ju|=(240&fu)<<Lc}ko.la=Hf,BA.la=ju,CA.Hc=du,CA.Gc=js,CA.ia=43690&js?0:Mc.ia,Hu=!(du|js)}if(0<Ii.L&&(Ii.wa[Ii.Y+Ii.ja]=Ii.gd[zo.$b][zo.Za],Ii.wa[Ii.Y+Ii.ja].La|=!Hu),$c.Ka)return oc(Fs,7,"Premature end-of-file encountered.")}if(pm(Fs),Ii=Au,$c=1,zo=(ba=Fs).D,ko=0<ba.L&&ba.M>=ba.zb&&ba.M<=ba.Va,ba.Aa==0)t:{if(zo.M=ba.M,zo.uc=ko,ms(ba,zo),$c=1,zo=(gl=ba.D).Nb,ko=(js=cn[ba.L])*ba.R,ec=js/2*ba.B,ml=16*zo*ba.R,VA=8*zo*ba.B,Hu=ba.sa,CA=ba.ta-ko+ml,Mc=ba.qa,Ns=ba.ra-ec+VA,tA=ba.Ha,BA=ba.Ia-ec+VA,fu=(Il=gl.M)==0,du=Il>=ba.Va-1,ba.Aa==2&&ms(ba,gl),gl.uc)for(xd=(Zc=ba).D.M,o(Zc.D.uc),gl=Zc.yb;gl<Zc.Hb;++gl){ju=gl,Hf=xd;var SA=(Cd=(zu=Zc).D).Nb;Lc=zu.R;var Cd=Cd.wa[Cd.Y+ju],Bd=zu.sa,WA=zu.ta+16*SA*Lc+16*ju,Sd=Cd.dd,Ul=Cd.tc;if(Ul!=0)if(o(3<=Ul),zu.L==1)0<ju&&Sm(Bd,WA,Lc,Ul+4),Cd.La&&u0(Bd,WA,Lc,Ul),0<Hf&&Mg(Bd,WA,Lc,Ul+4),Cd.La&&Em(Bd,WA,Lc,Ul);else{var Ed=zu.B,jf=zu.qa,jp=zu.ra+8*SA*Ed+8*ju,p0=zu.Ha,zu=zu.Ia+8*SA*Ed+8*ju;SA=Cd.ld,0<ju&&(zc(Bd,WA,Lc,Ul+4,Sd,SA),Rp(jf,jp,p0,zu,Ed,Ul+4,Sd,SA)),Cd.La&&(Bm(Bd,WA,Lc,Ul,Sd,SA),ip(jf,jp,p0,zu,Ed,Ul,Sd,SA)),0<Hf&&(gc(Bd,WA,Lc,Ul+4,Sd,SA),Qf(jf,jp,p0,zu,Ed,Ul+4,Sd,SA)),Cd.La&&($A(Bd,WA,Lc,Ul,Sd,SA),Fg(jf,jp,p0,zu,Ed,Ul,Sd,SA))}}if(ba.ia&&alert("todo:DitherRow"),Ii.put!=null){if(gl=16*Il,Il=16*(Il+1),fu?(Ii.y=ba.sa,Ii.O=ba.ta+ml,Ii.f=ba.qa,Ii.N=ba.ra+VA,Ii.ea=ba.Ha,Ii.W=ba.Ia+VA):(gl-=js,Ii.y=Hu,Ii.O=CA,Ii.f=Mc,Ii.N=Ns,Ii.ea=tA,Ii.W=BA),du||(Il-=js),Il>Ii.o&&(Il=Ii.o),Ii.F=null,Ii.J=null,ba.Fa!=null&&0<ba.Fa.length&&gl<Il&&(Ii.J=yl(ba,Ii,gl,Il-gl),Ii.F=ba.mb,Ii.F==null&&Ii.F.length==0)){$c=oc(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<Il&&(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=Il-gl,$c=Ii.put(Ii))}zo+1!=ba.Ic||du||(l(ba.sa,ba.ta-ko,Hu,CA+16*ba.R,ko),l(ba.qa,ba.ra-ec,Mc,Ns+8*ba.B,ec),l(ba.Ha,ba.Ia-ec,tA,BA+8*ba.B,ec))}if(!$c)return oc(Fs,6,"Output aborted.")}return 1}(Ct,ir)),ir.bc!=null&&ir.bc(ir),mr&=1}return mr?(Ct.cb=0,mr):0})(p,ge)||(B=p.a)}}else B=p.a}B==0&&Ge.Oa!=null&&Ge.Oa.fd&&(B=xm(Ge.ba))}Ge=B}Ve=Ge!=0?null:11>Ve?ot.f.RGBA.eb:ot.f.kb.y}else Ve=null;return Ve};var Hi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function Z(Lt,xr){for(var it="",xt=0;xt<4;xt++)it+=String.fromCharCode(Lt[xr++]);return it}function se(Lt,xr){return Lt[xr+0]|Lt[xr+1]<<8}function Re(Lt,xr){return(Lt[xr+0]|Lt[xr+1]<<8|Lt[xr+2]<<16)>>>0}function Ze(Lt,xr){return(Lt[xr+0]|Lt[xr+1]<<8|Lt[xr+2]<<16|Lt[xr+3]<<24)>>>0}new T;var ae=[0],mt=[0],At=[],wt=new T,st=n,Gt=function(Lt,xr){var it={},xt=0,Wt=!1,jt=0,Tr=0;if(it.frames=[],!function(tt,It){for(var Nt=0;Nt<4;Nt++)if(tt[It+Nt]!="RIFF".charCodeAt(Nt))return!0;return!1}(Lt,xr)){for(Ze(Lt,xr+=4),xr+=8;xr<Lt.length;){var Zr=Z(Lt,xr),Jr=Ze(Lt,xr+=4);xr+=4;var Mr=Jr+(1&Jr);switch(Zr){case"VP8 ":case"VP8L":it.frames[xt]===void 0&&(it.frames[xt]={}),(Sn=it.frames[xt]).src_off=Wt?Tr:xr-8,Sn.src_size=jt+Jr+8,xt++,Wt&&(Wt=!1,jt=0,Tr=0);break;case"VP8X":(Sn=it.header={}).feature_flags=Lt[xr];var Gr=xr+4;Sn.canvas_width=1+Re(Lt,Gr),Gr+=3,Sn.canvas_height=1+Re(Lt,Gr),Gr+=3;break;case"ALPH":Wt=!0,jt=Mr+8,Tr=xr-8;break;case"ANIM":(Sn=it.header).bgcolor=Ze(Lt,xr),Gr=xr+4,Sn.loop_count=se(Lt,Gr),Gr+=2;break;case"ANMF":var Zn,Sn;(Sn=it.frames[xt]={}).offset_x=2*Re(Lt,xr),xr+=3,Sn.offset_y=2*Re(Lt,xr),xr+=3,Sn.width=1+Re(Lt,xr),xr+=3,Sn.height=1+Re(Lt,xr),xr+=3,Sn.duration=Re(Lt,xr),xr+=3,Zn=Lt[xr++],Sn.dispose=1&Zn,Sn.blend=Zn>>1&1}Zr!="ANMF"&&(xr+=Mr)}return it}}(st,0);Gt.response=st,Gt.rgbaoutput=!0,Gt.dataurl=!1;var Qt=Gt.header?Gt.header:null,Ft=Gt.frames?Gt.frames:null;if(Qt){Qt.loop_counter=Qt.loop_count,ae=[Qt.canvas_height],mt=[Qt.canvas_width];for(var Ir=0;Ir<Ft.length&&Ft[Ir].blend!=0;Ir++);}var rn=Ft[0],Wr=wt.WebPDecodeRGBA(st,rn.src_off,rn.src_size,mt,ae);rn.rgba=Wr,rn.imgwidth=mt[0],rn.imgheight=ae[0];for(var or=0;or<mt[0]*ae[0]*4;or++)At[or]=Wr[or];return this.width=mt,this.height=ae,this.data=At,this}(function(n){var o,a,l,u,g,O,E,T,Z,se=function(tt){return tt=tt||{},this.isStrokeTransparent=tt.isStrokeTransparent||!1,this.strokeOpacity=tt.strokeOpacity||1,this.strokeStyle=tt.strokeStyle||"#000000",this.fillStyle=tt.fillStyle||"#000000",this.isFillTransparent=tt.isFillTransparent||!1,this.fillOpacity=tt.fillOpacity||1,this.font=tt.font||"10px sans-serif",this.textBaseline=tt.textBaseline||"alphabetic",this.textAlign=tt.textAlign||"left",this.lineWidth=tt.lineWidth||1,this.lineJoin=tt.lineJoin||"miter",this.lineCap=tt.lineCap||"butt",this.path=tt.path||[],this.transform=tt.transform!==void 0?tt.transform.clone():new T,this.globalCompositeOperation=tt.globalCompositeOperation||"normal",this.globalAlpha=tt.globalAlpha||1,this.clip_path=tt.clip_path||[],this.currentPoint=tt.currentPoint||new O,this.miterLimit=tt.miterLimit||10,this.lastPoint=tt.lastPoint||new O,this.lineDashOffset=tt.lineDashOffset||0,this.lineDash=tt.lineDash||[],this.margin=tt.margin||[0,0,0,0],this.prevPageLastElemOffset=tt.prevPageLastElemOffset||0,this.ignoreClearRect=typeof tt.ignoreClearRect!="boolean"||tt.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new Re(this),o=this.internal.f2,a=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,u=this.internal.getHorizontalCoordinate,g=this.internal.getVerticalCoordinate,O=this.internal.Point,E=this.internal.Rectangle,T=this.internal.Matrix,Z=new se}]);var Re=function(tt){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var It=tt;Object.defineProperty(this,"pdf",{get:function(){return It}});var Nt=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Nt},set:function(gt){Nt=!!gt}});var qt=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return qt},set:function(gt){qt=!!gt}});var Ar=0;Object.defineProperty(this,"posX",{get:function(){return Ar},set:function(gt){isNaN(gt)||(Ar=gt)}});var Er=0;Object.defineProperty(this,"posY",{get:function(){return Er},set:function(gt){isNaN(gt)||(Er=gt)}}),Object.defineProperty(this,"margin",{get:function(){return Z.margin},set:function(gt){var ki;typeof gt=="number"?ki=[gt,gt,gt,gt]:((ki=new Array(4))[0]=gt[0],ki[1]=gt.length>=2?gt[1]:ki[0],ki[2]=gt.length>=3?gt[2]:ki[0],ki[3]=gt.length>=4?gt[3]:ki[1]),Z.margin=ki}});var Kr=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Kr},set:function(gt){Kr=gt}});var $r=0;Object.defineProperty(this,"lastBreak",{get:function(){return $r},set:function(gt){$r=gt}});var mn=[];Object.defineProperty(this,"pageBreaks",{get:function(){return mn},set:function(gt){mn=gt}}),Object.defineProperty(this,"ctx",{get:function(){return Z},set:function(gt){gt instanceof se&&(Z=gt)}}),Object.defineProperty(this,"path",{get:function(){return Z.path},set:function(gt){Z.path=gt}});var jn=[];Object.defineProperty(this,"ctxStack",{get:function(){return jn},set:function(gt){jn=gt}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(gt){var ki;ki=Ze(gt),this.ctx.fillStyle=ki.style,this.ctx.isFillTransparent=ki.a===0,this.ctx.fillOpacity=ki.a,this.pdf.setFillColor(ki.r,ki.g,ki.b,{a:ki.a}),this.pdf.setTextColor(ki.r,ki.g,ki.b,{a:ki.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(gt){var ki=Ze(gt);this.ctx.strokeStyle=ki.style,this.ctx.isStrokeTransparent=ki.a===0,this.ctx.strokeOpacity=ki.a,ki.a===0?this.pdf.setDrawColor(255,255,255):(ki.a,this.pdf.setDrawColor(ki.r,ki.g,ki.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(gt){["butt","round","square"].indexOf(gt)!==-1&&(this.ctx.lineCap=gt,this.pdf.setLineCap(gt))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(gt){isNaN(gt)||(this.ctx.lineWidth=gt,this.pdf.setLineWidth(gt))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(gt){["bevel","round","miter"].indexOf(gt)!==-1&&(this.ctx.lineJoin=gt,this.pdf.setLineJoin(gt))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(gt){isNaN(gt)||(this.ctx.miterLimit=gt,this.pdf.setMiterLimit(gt))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(gt){this.ctx.textBaseline=gt}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(gt){["right","end","center","left","start"].indexOf(gt)!==-1&&(this.ctx.textAlign=gt)}});var gi=null,Ci=null,Sa=null;Object.defineProperty(this,"fontFaces",{get:function(){return Sa},set:function(gt){gi=null,Ci=null,Sa=gt}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(gt){var ki;if(this.ctx.font=gt,(ki=/^\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-z0-9]+?)\s*$/i.exec(gt))!==null){var No=ki[1];ki[2];var Ha=ki[3],Rn=ki[4];ki[5];var Da=ki[6],Pi=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Rn)[2];Rn=Math.floor(Pi==="px"?parseFloat(Rn)*this.pdf.internal.scaleFactor:Pi==="em"?parseFloat(Rn)*this.pdf.getFontSize():parseFloat(Rn)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Rn);var xa=function(Ca){var pc,ws,Po=[],Ko=Ca.trim();if(Ko==="")return Xm;if(Ko in Mu)return[Mu[Ko]];for(;Ko!=="";){switch(ws=null,pc=(Ko=$d(Ko)).charAt(0)){case'"':case"'":ws=qu(Ko.substring(1),pc);break;default:ws=fd(Ko)}if(ws===null||(Po.push(ws[0]),(Ko=$d(ws[1]))!==""&&Ko.charAt(0)!==","))return Xm;Ko=Ko.replace(/^,/,"")}return Po}(Da);if(this.fontFaces){var La=function(Ca,pc){var ws=Ca.getFontList(),Po=JSON.stringify(ws);if(gi===null||Ci!==Po){var Ko=function(Nl){var Ea=[];return Object.keys(Nl).forEach(function(dl){Nl[dl].forEach(function(Ja){var fo=null;switch(Ja){case"bold":fo={family:dl,weight:"bold"};break;case"italic":fo={family:dl,style:"italic"};break;case"bolditalic":fo={family:dl,weight:"bold",style:"italic"};break;case"":case"normal":fo={family:dl}}fo!==null&&(fo.ref={name:dl,style:Ja},Ea.push(fo))})}),Ea}(ws);gi=function(Nl){for(var Ea={},dl=0;dl<Nl.length;++dl){var Ja=Yu(Nl[dl]),fo=Ja.family,al=Ja.stretch,no=Ja.style,Oa=Ja.weight;Ea[fo]=Ea[fo]||{},Ea[fo][al]=Ea[fo][al]||{},Ea[fo][al][no]=Ea[fo][al][no]||{},Ea[fo][al][no][Oa]=Ja}return Ea}(Ko.concat(pc)),Ci=Po}return gi}(this.pdf,this.fontFaces),is=xa.map(function(Ca){return{family:Ca,stretch:"normal",weight:Ha,style:No}}),as=function(Ca,pc,ws){for(var Po=(ws=ws||{}).defaultFontFamily||"times",Ko=Object.assign({},TA,ws.genericFontFamilies||{}),Nl=null,Ea=null,dl=0;dl<pc.length;++dl)if(Ko[(Nl=Yu(pc[dl])).family]&&(Nl.family=Ko[Nl.family]),Ca.hasOwnProperty(Nl.family)){Ea=Ca[Nl.family];break}if(!(Ea=Ea||Ca[Po]))throw new Error("Could not find a font-family for the rule '"+UA(Nl)+"' and default family '"+Po+"'.");if(Ea=function(Ja,fo){if(fo[Ja])return fo[Ja];var al=Yc[Ja],no=al<=Yc.normal?-1:1,Oa=dA(fo,dd,al,no);if(!Oa)throw new Error("Could not find a matching font-stretch value for "+Ja);return Oa}(Nl.stretch,Ea),Ea=function(Ja,fo){if(fo[Ja])return fo[Ja];for(var al=Ec[Ja],no=0;no<al.length;++no)if(fo[al[no]])return fo[al[no]];throw new Error("Could not find a matching font-style for "+Ja)}(Nl.style,Ea),!(Ea=function(Ja,fo){if(fo[Ja])return fo[Ja];if(Ja===400&&fo[500])return fo[500];if(Ja===500&&fo[400])return fo[400];var al=AA[Ja],no=dA(fo,su,al,Ja<400?-1:1);if(!no)throw new Error("Could not find a matching font-weight for value "+Ja);return no}(Nl.weight,Ea)))throw new Error("Failed to resolve a font for the rule '"+UA(Nl)+"'.");return Ea}(La,is);this.pdf.setFont(as.ref.name,as.ref.style)}else{var Xa="";(Ha==="bold"||parseInt(Ha,10)>=700||No==="bold")&&(Xa="bold"),No==="italic"&&(Xa+="italic"),Xa.length===0&&(Xa="normal");for(var Xo="",Qo={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"},ha=0;ha<xa.length;ha++){if(this.pdf.internal.getFont(xa[ha],Xa,{noFallback:!0,disableWarning:!0})!==void 0){Xo=xa[ha];break}if(Xa==="bolditalic"&&this.pdf.internal.getFont(xa[ha],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Xo=xa[ha],Xa="bold";else if(this.pdf.internal.getFont(xa[ha],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Xo=xa[ha],Xa="normal";break}}if(Xo===""){for(var Eo=0;Eo<xa.length;Eo++)if(Qo[xa[Eo]]){Xo=Qo[xa[Eo]];break}}Xo=Xo===""?"Times":Xo,this.pdf.setFont(Xo,Xa)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(gt){this.ctx.globalCompositeOperation=gt}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(gt){this.ctx.globalAlpha=gt}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(gt){this.ctx.lineDashOffset=gt,Sn.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(gt){this.ctx.lineDash=gt,Sn.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(gt){this.ctx.ignoreClearRect=!!gt}})};Re.prototype.setLineDash=function(tt){this.lineDash=tt},Re.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},Re.prototype.fill=function(){Ft.call(this,"fill",!1)},Re.prototype.stroke=function(){Ft.call(this,"stroke",!1)},Re.prototype.beginPath=function(){this.path=[{type:"begin"}]},Re.prototype.moveTo=function(tt,It){if(isNaN(tt)||isNaN(It))throw Os.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Nt=this.ctx.transform.applyToPoint(new O(tt,It));this.path.push({type:"mt",x:Nt.x,y:Nt.y}),this.ctx.lastPoint=new O(tt,It)},Re.prototype.closePath=function(){var tt=new O(0,0),It=0;for(It=this.path.length-1;It!==-1;It--)if(this.path[It].type==="begin"&&(0,me.Z)(this.path[It+1])==="object"&&typeof this.path[It+1].x=="number"){tt=new O(this.path[It+1].x,this.path[It+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new O(tt.x,tt.y)},Re.prototype.lineTo=function(tt,It){if(isNaN(tt)||isNaN(It))throw Os.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Nt=this.ctx.transform.applyToPoint(new O(tt,It));this.path.push({type:"lt",x:Nt.x,y:Nt.y}),this.ctx.lastPoint=new O(Nt.x,Nt.y)},Re.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),Ft.call(this,null,!0)},Re.prototype.quadraticCurveTo=function(tt,It,Nt,qt){if(isNaN(Nt)||isNaN(qt)||isNaN(tt)||isNaN(It))throw Os.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var Ar=this.ctx.transform.applyToPoint(new O(Nt,qt)),Er=this.ctx.transform.applyToPoint(new O(tt,It));this.path.push({type:"qct",x1:Er.x,y1:Er.y,x:Ar.x,y:Ar.y}),this.ctx.lastPoint=new O(Ar.x,Ar.y)},Re.prototype.bezierCurveTo=function(tt,It,Nt,qt,Ar,Er){if(isNaN(Ar)||isNaN(Er)||isNaN(tt)||isNaN(It)||isNaN(Nt)||isNaN(qt))throw Os.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Kr=this.ctx.transform.applyToPoint(new O(Ar,Er)),$r=this.ctx.transform.applyToPoint(new O(tt,It)),mn=this.ctx.transform.applyToPoint(new O(Nt,qt));this.path.push({type:"bct",x1:$r.x,y1:$r.y,x2:mn.x,y2:mn.y,x:Kr.x,y:Kr.y}),this.ctx.lastPoint=new O(Kr.x,Kr.y)},Re.prototype.arc=function(tt,It,Nt,qt,Ar,Er){if(isNaN(tt)||isNaN(It)||isNaN(Nt)||isNaN(qt)||isNaN(Ar))throw Os.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Er=!!Er,!this.ctx.transform.isIdentity){var Kr=this.ctx.transform.applyToPoint(new O(tt,It));tt=Kr.x,It=Kr.y;var $r=this.ctx.transform.applyToPoint(new O(0,Nt)),mn=this.ctx.transform.applyToPoint(new O(0,0));Nt=Math.sqrt(Math.pow($r.x-mn.x,2)+Math.pow($r.y-mn.y,2))}Math.abs(Ar-qt)>=2*Math.PI&&(qt=0,Ar=2*Math.PI),this.path.push({type:"arc",x:tt,y:It,radius:Nt,startAngle:qt,endAngle:Ar,counterclockwise:Er})},Re.prototype.arcTo=function(tt,It,Nt,qt,Ar){throw new Error("arcTo not implemented.")},Re.prototype.rect=function(tt,It,Nt,qt){if(isNaN(tt)||isNaN(It)||isNaN(Nt)||isNaN(qt))throw Os.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(tt,It),this.lineTo(tt+Nt,It),this.lineTo(tt+Nt,It+qt),this.lineTo(tt,It+qt),this.lineTo(tt,It),this.lineTo(tt+Nt,It),this.lineTo(tt,It)},Re.prototype.fillRect=function(tt,It,Nt,qt){if(isNaN(tt)||isNaN(It)||isNaN(Nt)||isNaN(qt))throw Os.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!ae.call(this)){var Ar={};this.lineCap!=="butt"&&(Ar.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Ar.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(tt,It,Nt,qt),this.fill(),Ar.hasOwnProperty("lineCap")&&(this.lineCap=Ar.lineCap),Ar.hasOwnProperty("lineJoin")&&(this.lineJoin=Ar.lineJoin)}},Re.prototype.strokeRect=function(tt,It,Nt,qt){if(isNaN(tt)||isNaN(It)||isNaN(Nt)||isNaN(qt))throw Os.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");mt.call(this)||(this.beginPath(),this.rect(tt,It,Nt,qt),this.stroke())},Re.prototype.clearRect=function(tt,It,Nt,qt){if(isNaN(tt)||isNaN(It)||isNaN(Nt)||isNaN(qt))throw Os.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(tt,It,Nt,qt))},Re.prototype.save=function(tt){tt=typeof tt!="boolean"||tt;for(var It=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(It),tt){this.ctx.fontSize=this.pdf.internal.getFontSize();var qt=new se(this.ctx);this.ctxStack.push(this.ctx),this.ctx=qt}},Re.prototype.restore=function(tt){tt=typeof tt!="boolean"||tt;for(var It=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(It),tt&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},Re.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var Ze=function(tt){var It,Nt,qt,Ar;if(tt.isCanvasGradient===!0&&(tt=tt.getColor()),!tt)return{r:0,g:0,b:0,a:0,style:tt};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(tt))It=0,Nt=0,qt=0,Ar=0;else{var Er=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(tt);if(Er!==null)It=parseInt(Er[1]),Nt=parseInt(Er[2]),qt=parseInt(Er[3]),Ar=1;else if((Er=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(tt))!==null)It=parseInt(Er[1]),Nt=parseInt(Er[2]),qt=parseInt(Er[3]),Ar=parseFloat(Er[4]);else{if(Ar=1,typeof tt=="string"&&tt.charAt(0)!=="#"){var Kr=new wp(tt);tt=Kr.ok?Kr.toHex():"#000000"}tt.length===4?(It=tt.substring(1,2),It+=It,Nt=tt.substring(2,3),Nt+=Nt,qt=tt.substring(3,4),qt+=qt):(It=tt.substring(1,3),Nt=tt.substring(3,5),qt=tt.substring(5,7)),It=parseInt(It,16),Nt=parseInt(Nt,16),qt=parseInt(qt,16)}}return{r:It,g:Nt,b:qt,a:Ar,style:tt}},ae=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},mt=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Re.prototype.fillText=function(tt,It,Nt,qt){if(isNaN(It)||isNaN(Nt)||typeof tt!="string")throw Os.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(qt=isNaN(qt)?void 0:qt,!ae.call(this)){var Ar=Mr(this.ctx.transform.rotation),Er=this.ctx.transform.scaleX;xt.call(this,{text:tt,x:It,y:Nt,scale:Er,angle:Ar,align:this.textAlign,maxWidth:qt})}},Re.prototype.strokeText=function(tt,It,Nt,qt){if(isNaN(It)||isNaN(Nt)||typeof tt!="string")throw Os.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!mt.call(this)){qt=isNaN(qt)?void 0:qt;var Ar=Mr(this.ctx.transform.rotation),Er=this.ctx.transform.scaleX;xt.call(this,{text:tt,x:It,y:Nt,scale:Er,renderingMode:"stroke",angle:Ar,align:this.textAlign,maxWidth:qt})}},Re.prototype.measureText=function(tt){if(typeof tt!="string")throw Os.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var It=this.pdf,Nt=this.pdf.internal.scaleFactor,qt=It.internal.getFontSize(),Ar=It.getStringUnitWidth(tt)*qt/It.internal.scaleFactor;return new function(Er){var Kr=(Er=Er||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Kr}}),this}({width:Ar*=Math.round(96*Nt/72*1e4)/1e4})},Re.prototype.scale=function(tt,It){if(isNaN(tt)||isNaN(It))throw Os.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Nt=new T(tt,0,0,It,0,0);this.ctx.transform=this.ctx.transform.multiply(Nt)},Re.prototype.rotate=function(tt){if(isNaN(tt))throw Os.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var It=new T(Math.cos(tt),Math.sin(tt),-Math.sin(tt),Math.cos(tt),0,0);this.ctx.transform=this.ctx.transform.multiply(It)},Re.prototype.translate=function(tt,It){if(isNaN(tt)||isNaN(It))throw Os.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Nt=new T(1,0,0,1,tt,It);this.ctx.transform=this.ctx.transform.multiply(Nt)},Re.prototype.transform=function(tt,It,Nt,qt,Ar,Er){if(isNaN(tt)||isNaN(It)||isNaN(Nt)||isNaN(qt)||isNaN(Ar)||isNaN(Er))throw Os.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Kr=new T(tt,It,Nt,qt,Ar,Er);this.ctx.transform=this.ctx.transform.multiply(Kr)},Re.prototype.setTransform=function(tt,It,Nt,qt,Ar,Er){tt=isNaN(tt)?1:tt,It=isNaN(It)?0:It,Nt=isNaN(Nt)?0:Nt,qt=isNaN(qt)?1:qt,Ar=isNaN(Ar)?0:Ar,Er=isNaN(Er)?0:Er,this.ctx.transform=new T(tt,It,Nt,qt,Ar,Er)};var At=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Re.prototype.drawImage=function(tt,It,Nt,qt,Ar,Er,Kr,$r,mn){var jn=this.pdf.getImageProperties(tt),gi=1,Ci=1,Sa=1,gt=1;qt!==void 0&&$r!==void 0&&(Sa=$r/qt,gt=mn/Ar,gi=jn.width/qt*$r/qt,Ci=jn.height/Ar*mn/Ar),Er===void 0&&(Er=It,Kr=Nt,It=0,Nt=0),qt!==void 0&&$r===void 0&&($r=qt,mn=Ar),qt===void 0&&$r===void 0&&($r=jn.width,mn=jn.height);var ki=this.ctx.transform.decompose(),No=Mr(ki.rotate.shx),Ha=new T,Rn=(Ha=(Ha=(Ha=Ha.multiply(ki.translate)).multiply(ki.skew)).multiply(ki.scale)).applyToRectangle(new E(Er-It*Sa,Kr-Nt*gt,qt*gi,Ar*Ci));if(this.autoPaging){for(var Da,Pi=wt.call(this,Rn),xa=[],La=0;La<Pi.length;La+=1)xa.indexOf(Pi[La])===-1&&xa.push(Pi[La]);Qt(xa);for(var is=xa[0],as=xa[xa.length-1],Xa=is;Xa<as+1;Xa++){this.pdf.setPage(Xa);var Xo=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Qo=Xa===1?this.posY+this.margin[0]:this.margin[0],ha=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Eo=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ca=Xa===1?0:ha+(Xa-2)*Eo;if(this.ctx.clip_path.length!==0){var pc=this.path;Da=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(Da,this.posX+this.margin[3],-Ca+Qo+this.ctx.prevPageLastElemOffset),Ir.call(this,"fill",!0),this.path=pc}var ws=JSON.parse(JSON.stringify(Rn));ws=Gt([ws],this.posX+this.margin[3],-Ca+Qo+this.ctx.prevPageLastElemOffset)[0];var Po=(Xa>is||Xa<as)&&At.call(this);Po&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Xo,Eo,null).clip().discardPath()),this.pdf.addImage(tt,"JPEG",ws.x,ws.y,ws.w,ws.h,null,null,No),Po&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(tt,"JPEG",Rn.x,Rn.y,Rn.w,Rn.h,null,null,No)};var wt=function(tt,It,Nt){var qt=[];It=It||this.pdf.internal.pageSize.width,Nt=Nt||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var Ar=this.posY+this.ctx.prevPageLastElemOffset;switch(tt.type){default:case"mt":case"lt":qt.push(Math.floor((tt.y+Ar)/Nt)+1);break;case"arc":qt.push(Math.floor((tt.y+Ar-tt.radius)/Nt)+1),qt.push(Math.floor((tt.y+Ar+tt.radius)/Nt)+1);break;case"qct":var Er=Gr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,tt.x1,tt.y1,tt.x,tt.y);qt.push(Math.floor((Er.y+Ar)/Nt)+1),qt.push(Math.floor((Er.y+Er.h+Ar)/Nt)+1);break;case"bct":var Kr=Zn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,tt.x1,tt.y1,tt.x2,tt.y2,tt.x,tt.y);qt.push(Math.floor((Kr.y+Ar)/Nt)+1),qt.push(Math.floor((Kr.y+Kr.h+Ar)/Nt)+1);break;case"rect":qt.push(Math.floor((tt.y+Ar)/Nt)+1),qt.push(Math.floor((tt.y+tt.h+Ar)/Nt)+1)}for(var $r=0;$r<qt.length;$r+=1)for(;this.pdf.internal.getNumberOfPages()<qt[$r];)st.call(this);return qt},st=function(){var tt=this.fillStyle,It=this.strokeStyle,Nt=this.font,qt=this.lineCap,Ar=this.lineWidth,Er=this.lineJoin;this.pdf.addPage(),this.fillStyle=tt,this.strokeStyle=It,this.font=Nt,this.lineCap=qt,this.lineWidth=Ar,this.lineJoin=Er},Gt=function(tt,It,Nt){for(var qt=0;qt<tt.length;qt++)switch(tt[qt].type){case"bct":tt[qt].x2+=It,tt[qt].y2+=Nt;case"qct":tt[qt].x1+=It,tt[qt].y1+=Nt;default:tt[qt].x+=It,tt[qt].y+=Nt}return tt},Qt=function(tt){return tt.sort(function(It,Nt){return It-Nt})},Ft=function(tt,It){var Nt=this.fillStyle,qt=this.strokeStyle,Ar=this.lineCap,Er=this.lineWidth,Kr=Math.abs(Er*this.ctx.transform.scaleX),$r=this.lineJoin;if(this.autoPaging){for(var mn,jn,gi=JSON.parse(JSON.stringify(this.path)),Ci=JSON.parse(JSON.stringify(this.path)),Sa=[],gt=0;gt<Ci.length;gt++)if(Ci[gt].x!==void 0)for(var ki=wt.call(this,Ci[gt]),No=0;No<ki.length;No+=1)Sa.indexOf(ki[No])===-1&&Sa.push(ki[No]);for(var Ha=0;Ha<Sa.length;Ha++)for(;this.pdf.internal.getNumberOfPages()<Sa[Ha];)st.call(this);Qt(Sa);for(var Rn=Sa[0],Da=Sa[Sa.length-1],Pi=Rn;Pi<Da+1;Pi++){this.pdf.setPage(Pi),this.fillStyle=Nt,this.strokeStyle=qt,this.lineCap=Ar,this.lineWidth=Kr,this.lineJoin=$r;var xa=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],La=Pi===1?this.posY+this.margin[0]:this.margin[0],is=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],as=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Xa=Pi===1?0:is+(Pi-2)*as;if(this.ctx.clip_path.length!==0){var Xo=this.path;mn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(mn,this.posX+this.margin[3],-Xa+La+this.ctx.prevPageLastElemOffset),Ir.call(this,tt,!0),this.path=Xo}if(jn=JSON.parse(JSON.stringify(gi)),this.path=Gt(jn,this.posX+this.margin[3],-Xa+La+this.ctx.prevPageLastElemOffset),It===!1||Pi===0){var Qo=(Pi>Rn||Pi<Da)&&At.call(this);Qo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],xa,as,null).clip().discardPath()),Ir.call(this,tt,It),Qo&&this.pdf.restoreGraphicsState()}this.lineWidth=Er}this.path=gi}else this.lineWidth=Kr,Ir.call(this,tt,It),this.lineWidth=Er},Ir=function(tt,It){if((tt!=="stroke"||It||!mt.call(this))&&(tt==="stroke"||It||!ae.call(this))){for(var Nt,qt,Ar=[],Er=this.path,Kr=0;Kr<Er.length;Kr++){var $r=Er[Kr];switch($r.type){case"begin":Ar.push({begin:!0});break;case"close":Ar.push({close:!0});break;case"mt":Ar.push({start:$r,deltas:[],abs:[]});break;case"lt":var mn=Ar.length;if(Er[Kr-1]&&!isNaN(Er[Kr-1].x)&&(Nt=[$r.x-Er[Kr-1].x,$r.y-Er[Kr-1].y],mn>0)){for(;mn>=0;mn--)if(Ar[mn-1].close!==!0&&Ar[mn-1].begin!==!0){Ar[mn-1].deltas.push(Nt),Ar[mn-1].abs.push($r);break}}break;case"bct":Nt=[$r.x1-Er[Kr-1].x,$r.y1-Er[Kr-1].y,$r.x2-Er[Kr-1].x,$r.y2-Er[Kr-1].y,$r.x-Er[Kr-1].x,$r.y-Er[Kr-1].y],Ar[Ar.length-1].deltas.push(Nt);break;case"qct":var jn=Er[Kr-1].x+2/3*($r.x1-Er[Kr-1].x),gi=Er[Kr-1].y+2/3*($r.y1-Er[Kr-1].y),Ci=$r.x+2/3*($r.x1-$r.x),Sa=$r.y+2/3*($r.y1-$r.y),gt=$r.x,ki=$r.y;Nt=[jn-Er[Kr-1].x,gi-Er[Kr-1].y,Ci-Er[Kr-1].x,Sa-Er[Kr-1].y,gt-Er[Kr-1].x,ki-Er[Kr-1].y],Ar[Ar.length-1].deltas.push(Nt);break;case"arc":Ar.push({deltas:[],abs:[],arc:!0}),Array.isArray(Ar[Ar.length-1].abs)&&Ar[Ar.length-1].abs.push($r)}}qt=It?null:tt==="stroke"?"stroke":"fill";for(var No=!1,Ha=0;Ha<Ar.length;Ha++)if(Ar[Ha].arc)for(var Rn=Ar[Ha].abs,Da=0;Da<Rn.length;Da++){var Pi=Rn[Da];Pi.type==="arc"?or.call(this,Pi.x,Pi.y,Pi.radius,Pi.startAngle,Pi.endAngle,Pi.counterclockwise,void 0,It,!No):Wt.call(this,Pi.x,Pi.y),No=!0}else if(Ar[Ha].close===!0)this.pdf.internal.out("h"),No=!1;else if(Ar[Ha].begin!==!0){var xa=Ar[Ha].start.x,La=Ar[Ha].start.y;jt.call(this,Ar[Ha].deltas,xa,La),No=!0}qt&&Lt.call(this,qt),It&&xr.call(this)}},rn=function(tt){var It=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Nt=It*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return tt-Nt;case"top":return tt+It-Nt;case"hanging":return tt+It-2*Nt;case"middle":return tt+It/2-Nt;default:return tt}},Wr=function(tt){return tt+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};Re.prototype.createLinearGradient=function(){var tt=function(){};return tt.colorStops=[],tt.addColorStop=function(It,Nt){this.colorStops.push([It,Nt])},tt.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},tt.isCanvasGradient=!0,tt},Re.prototype.createPattern=function(){return this.createLinearGradient()},Re.prototype.createRadialGradient=function(){return this.createLinearGradient()};var or=function(tt,It,Nt,qt,Ar,Er,Kr,$r,mn){for(var jn=Zr.call(this,Nt,qt,Ar,Er),gi=0;gi<jn.length;gi++){var Ci=jn[gi];gi===0&&(mn?it.call(this,Ci.x1+tt,Ci.y1+It):Wt.call(this,Ci.x1+tt,Ci.y1+It)),Tr.call(this,tt,It,Ci.x2,Ci.y2,Ci.x3,Ci.y3,Ci.x4,Ci.y4)}$r?xr.call(this):Lt.call(this,Kr)},Lt=function(tt){switch(tt){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},xr=function(){this.pdf.clip(),this.pdf.discardPath()},it=function(tt,It){this.pdf.internal.out(a(tt)+" "+l(It)+" m")},xt=function(tt){var It;switch(tt.align){case"right":case"end":It="right";break;case"center":It="center";break;default:It="left"}var Nt,qt,Ar,Er=this.pdf.getTextDimensions(tt.text),Kr=rn.call(this,tt.y),$r=Wr.call(this,Kr)-Er.h,mn=this.ctx.transform.applyToPoint(new O(tt.x,Kr));if(this.autoPaging){var jn=this.ctx.transform.decompose(),gi=new T;gi=(gi=(gi=gi.multiply(jn.translate)).multiply(jn.skew)).multiply(jn.scale);for(var Ci=this.ctx.transform.applyToRectangle(new E(tt.x,Kr,Er.w,Er.h)),Sa=gi.applyToRectangle(new E(tt.x,$r,Er.w,Er.h)),gt=wt.call(this,Sa),ki=[],No=0;No<gt.length;No+=1)ki.indexOf(gt[No])===-1&&ki.push(gt[No]);Qt(ki);for(var Ha=ki[0],Rn=ki[ki.length-1],Da=Ha;Da<Rn+1;Da++){this.pdf.setPage(Da);var Pi=Da===1?this.posY+this.margin[0]:this.margin[0],xa=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],La=this.pdf.internal.pageSize.height-this.margin[2],is=La-this.margin[0],as=this.pdf.internal.pageSize.width-this.margin[1],Xa=as-this.margin[3],Xo=Da===1?0:xa+(Da-2)*is;if(this.ctx.clip_path.length!==0){var Qo=this.path;Nt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Gt(Nt,this.posX+this.margin[3],-1*Xo+Pi),Ir.call(this,"fill",!0),this.path=Qo}var ha=Gt([JSON.parse(JSON.stringify(Sa))],this.posX+this.margin[3],-Xo+Pi+this.ctx.prevPageLastElemOffset)[0];tt.scale>=.01&&(qt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(qt*tt.scale),Ar=this.lineWidth,this.lineWidth=Ar*tt.scale);var Eo=this.autoPaging!=="text";if(Eo||ha.y+ha.h<=La){if(Eo||ha.y>=Pi&&ha.x<=as){var Ca=Eo?tt.text:this.pdf.splitTextToSize(tt.text,tt.maxWidth||as-ha.x)[0],pc=Gt([JSON.parse(JSON.stringify(Ci))],this.posX+this.margin[3],-Xo+Pi+this.ctx.prevPageLastElemOffset)[0],ws=Eo&&(Da>Ha||Da<Rn)&&At.call(this);ws&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Xa,is,null).clip().discardPath()),this.pdf.text(Ca,pc.x,pc.y,{angle:tt.angle,align:It,renderingMode:tt.renderingMode}),ws&&this.pdf.restoreGraphicsState()}}else ha.y<La&&(this.ctx.prevPageLastElemOffset+=La-ha.y);tt.scale>=.01&&(this.pdf.setFontSize(qt),this.lineWidth=Ar)}}else tt.scale>=.01&&(qt=this.pdf.internal.getFontSize(),this.pdf.setFontSize(qt*tt.scale),Ar=this.lineWidth,this.lineWidth=Ar*tt.scale),this.pdf.text(tt.text,mn.x+this.posX,mn.y+this.posY,{angle:tt.angle,align:It,renderingMode:tt.renderingMode,maxWidth:tt.maxWidth}),tt.scale>=.01&&(this.pdf.setFontSize(qt),this.lineWidth=Ar)},Wt=function(tt,It,Nt,qt){Nt=Nt||0,qt=qt||0,this.pdf.internal.out(a(tt+Nt)+" "+l(It+qt)+" l")},jt=function(tt,It,Nt){return this.pdf.lines(tt,It,Nt,null,null)},Tr=function(tt,It,Nt,qt,Ar,Er,Kr,$r){this.pdf.internal.out([o(u(Nt+tt)),o(g(qt+It)),o(u(Ar+tt)),o(g(Er+It)),o(u(Kr+tt)),o(g($r+It)),"c"].join(" "))},Zr=function(tt,It,Nt,qt){for(var Ar=2*Math.PI,Er=Math.PI/2;It>Nt;)It-=Ar;var Kr=Math.abs(Nt-It);Kr<Ar&&qt&&(Kr=Ar-Kr);for(var $r=[],mn=qt?-1:1,jn=It;Kr>1e-5;){var gi=jn+mn*Math.min(Kr,Er);$r.push(Jr.call(this,tt,jn,gi)),Kr-=Math.abs(gi-jn),jn=gi}return $r},Jr=function(tt,It,Nt){var qt=(Nt-It)/2,Ar=tt*Math.cos(qt),Er=tt*Math.sin(qt),Kr=Ar,$r=-Er,mn=Kr*Kr+$r*$r,jn=mn+Kr*Ar+$r*Er,gi=4/3*(Math.sqrt(2*mn*jn)-jn)/(Kr*Er-$r*Ar),Ci=Kr-gi*$r,Sa=$r+gi*Kr,gt=Ci,ki=-Sa,No=qt+It,Ha=Math.cos(No),Rn=Math.sin(No);return{x1:tt*Math.cos(It),y1:tt*Math.sin(It),x2:Ci*Ha-Sa*Rn,y2:Ci*Rn+Sa*Ha,x3:gt*Ha-ki*Rn,y3:gt*Rn+ki*Ha,x4:tt*Math.cos(Nt),y4:tt*Math.sin(Nt)}},Mr=function(tt){return 180*tt/Math.PI},Gr=function(tt,It,Nt,qt,Ar,Er){var Kr=tt+.5*(Nt-tt),$r=It+.5*(qt-It),mn=Ar+.5*(Nt-Ar),jn=Er+.5*(qt-Er),gi=Math.min(tt,Ar,Kr,mn),Ci=Math.max(tt,Ar,Kr,mn),Sa=Math.min(It,Er,$r,jn),gt=Math.max(It,Er,$r,jn);return new E(gi,Sa,Ci-gi,gt-Sa)},Zn=function(tt,It,Nt,qt,Ar,Er,Kr,$r){var mn,jn,gi,Ci,Sa,gt,ki,No,Ha,Rn,Da,Pi,xa,La,is=Nt-tt,as=qt-It,Xa=Ar-Nt,Xo=Er-qt,Qo=Kr-Ar,ha=$r-Er;for(jn=0;jn<41;jn++)Ha=(ki=(gi=tt+(mn=jn/40)*is)+mn*((Sa=Nt+mn*Xa)-gi))+mn*(Sa+mn*(Ar+mn*Qo-Sa)-ki),Rn=(No=(Ci=It+mn*as)+mn*((gt=qt+mn*Xo)-Ci))+mn*(gt+mn*(Er+mn*ha-gt)-No),jn==0?(Da=Ha,Pi=Rn,xa=Ha,La=Rn):(Da=Math.min(Da,Ha),Pi=Math.min(Pi,Rn),xa=Math.max(xa,Ha),La=Math.max(La,Rn));return new E(Math.round(Da),Math.round(Pi),Math.round(xa-Da),Math.round(La-Pi))},Sn=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var tt,It,Nt=(tt=this.ctx.lineDash,It=this.ctx.lineDashOffset,JSON.stringify({lineDash:tt,lineDashOffset:It}));this.prevLineDash!==Nt&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Nt)}}})(da.API),function(n){var o=function(O){var E,T,Z,se,Re,Ze,ae,mt,At,wt;for(/[^\x00-\xFF]/.test(O),T=[],Z=0,se=(O+=E="\0\0\0\0".slice(O.length%4||4)).length;se>Z;Z+=4)(Re=(O.charCodeAt(Z)<<24)+(O.charCodeAt(Z+1)<<16)+(O.charCodeAt(Z+2)<<8)+O.charCodeAt(Z+3))!==0?(Ze=(Re=((Re=((Re=((Re=(Re-(wt=Re%85))/85)-(At=Re%85))/85)-(mt=Re%85))/85)-(ae=Re%85))/85)%85,T.push(Ze+33,ae+33,mt+33,At+33,wt+33)):T.push(122);return function(st,Gt){for(var Qt=Gt;Qt>0;Qt--)st.pop()}(T,E.length),String.fromCharCode.apply(String,T)+"~>"},a=function(O){var E,T,Z,se,Re,Ze=String,ae="length",mt=255,At="charCodeAt",wt="slice",st="replace";for(O[wt](-2),O=O[wt](0,-2)[st](/\s/g,"")[st]("z","!!!!!"),Z=[],se=0,Re=(O+=E="uuuuu"[wt](O[ae]%5||5))[ae];Re>se;se+=5)T=52200625*(O[At](se)-33)+614125*(O[At](se+1)-33)+7225*(O[At](se+2)-33)+85*(O[At](se+3)-33)+(O[At](se+4)-33),Z.push(mt&T>>24,mt&T>>16,mt&T>>8,mt&T);return function(Gt,Qt){for(var Ft=Qt;Ft>0;Ft--)Gt.pop()}(Z,E[ae]),Ze.fromCharCode.apply(Ze,Z)},l=function(O){return O.split("").map(function(E){return("0"+E.charCodeAt().toString(16)).slice(-2)}).join("")+">"},u=function(O){var E=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((O=O.replace(/\s/g,"")).indexOf(">")!==-1&&(O=O.substr(0,O.indexOf(">"))),O.length%2&&(O+="0"),E.test(O)===!1)return"";for(var T="",Z=0;Z<O.length;Z+=2)T+=String.fromCharCode("0x"+(O[Z]+O[Z+1]));return T},g=function(O){for(var E=new Uint8Array(O.length),T=O.length;T--;)E[T]=O.charCodeAt(T);return(E=pi(E)).reduce(function(Z,se){return Z+String.fromCharCode(se)},"")};n.processDataByFilters=function(O,E){var T=0,Z=O||"",se=[];for(typeof(E=E||[])=="string"&&(E=[E]),T=0;T<E.length;T+=1)switch(E[T]){case"ASCII85Decode":case"/ASCII85Decode":Z=a(Z),se.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":Z=o(Z),se.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":Z=u(Z),se.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":Z=l(Z),se.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":Z=g(Z),se.push("/FlateDecode");break;default:throw new Error('The filter: "'+E[T]+'" is not implemented')}return{data:Z,reverseChain:se.reverse().join(" ")}}}(da.API),function(n){n.loadFile=function(o,a,l){return function(u,g,O){g=g!==!1,O=typeof O=="function"?O:function(){};var E=void 0;try{E=function(T,Z,se){var Re=new XMLHttpRequest,Ze=0,ae=function(mt){var At=mt.length,wt=[],st=String.fromCharCode;for(Ze=0;Ze<At;Ze+=1)wt.push(st(255&mt.charCodeAt(Ze)));return wt.join("")};if(Re.open("GET",T,!Z),Re.overrideMimeType("text/plain; charset=x-user-defined"),Z===!1&&(Re.onload=function(){Re.status===200?se(ae(this.responseText)):se(void 0)}),Re.send(null),Z&&Re.status===200)return ae(Re.responseText)}(u,g,O)}catch(T){}return E}(o,a,l)},n.loadImageFile=n.loadFile}(da.API),function(n){function o(){return(Wa.html2canvas?Promise.resolve(Wa.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(Wa.DOMPurify?Promise.resolve(Wa.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 T=(0,me.Z)(E);return T==="undefined"?"undefined":T==="string"||E instanceof String?"string":T==="number"||E instanceof Number?"number":T==="function"||E instanceof Function?"function":E&&E.constructor===Array?"array":E&&E.nodeType===1?"element":T==="object"?"object":"unknown"},u=function(E,T){var Z=document.createElement(E);for(var se in T.className&&(Z.className=T.className),T.innerHTML&&T.dompurify&&(Z.innerHTML=T.dompurify.sanitize(T.innerHTML)),T.style)Z.style[se]=T.style[se];return Z},g=function E(T,Z){for(var se=T.nodeType===3?document.createTextNode(T.nodeValue):T.cloneNode(!1),Re=T.firstChild;Re;Re=Re.nextSibling)Z!==!0&&Re.nodeType===1&&Re.nodeName==="SCRIPT"||se.appendChild(E(Re,Z));return T.nodeType===1&&(T.nodeName==="CANVAS"?(se.width=T.width,se.height=T.height,se.getContext("2d").drawImage(T,0,0)):T.nodeName!=="TEXTAREA"&&T.nodeName!=="SELECT"||(se.value=T.value),se.addEventListener("load",function(){se.scrollTop=T.scrollTop,se.scrollLeft=T.scrollLeft},!0)),se},O=function E(T){var Z=Object.assign(E.convert(Promise.resolve()),JSON.parse(JSON.stringify(E.template))),se=E.convert(Promise.resolve(),Z);return(se=se.setProgress(1,E,1,[E])).set(T)};(O.prototype=Object.create(Promise.prototype)).constructor=O,O.convert=function(E,T){return E.__proto__=T||O.prototype,E},O.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},O.prototype.from=function(E,T){return this.then(function(){switch(T=T||function(Z){switch(l(Z)){case"string":return"string";case"element":return Z.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(E),T){case"string":return this.then(a).then(function(Z){return this.set({src:u("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.")}})},O.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.")}},O.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var 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},T=g(this.prop.src,this.opt.html2canvas.javascriptEnabled);T.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=u("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=u("div",{className:"html2pdf__container",style:E}),this.prop.container.appendChild(T),this.prop.container.firstChild.appendChild(u("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},O.prototype.toCanvas=function(){var E=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(E).then(o).then(function(T){var Z=Object.assign({},this.opt.html2canvas);return delete Z.onrendered,T(this.prop.container,Z)}).then(function(T){(this.opt.html2canvas.onrendered||function(){})(T),this.prop.canvas=T,document.body.removeChild(this.prop.overlay)})},O.prototype.toContext2d=function(){var E=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(E).then(o).then(function(T){var Z=this.opt.jsPDF,se=this.opt.fontFaces,Re=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,Ze=Object.assign({async:!0,allowTaint:!0,scale:Re,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete Ze.onrendered,Z.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,Z.context2d.posX=this.opt.x,Z.context2d.posY=this.opt.y,Z.context2d.margin=this.opt.margin,Z.context2d.fontFaces=se,se)for(var ae=0;ae<se.length;++ae){var mt=se[ae],At=mt.src.find(function(wt){return wt.format==="truetype"});At&&Z.addFont(At.url,mt.ref.name,mt.ref.style)}return Ze.windowHeight=Ze.windowHeight||0,Ze.windowHeight=Ze.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):Ze.windowHeight,Z.context2d.save(!0),T(this.prop.container,Ze)}).then(function(T){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(T),this.prop.canvas=T,document.body.removeChild(this.prop.overlay)})},O.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})},O.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},O.prototype.output=function(E,T,Z){return(Z=Z||"pdf").toLowerCase()==="img"||Z.toLowerCase()==="image"?this.outputImg(E,T):this.outputPdf(E,T)},O.prototype.outputPdf=function(E,T){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(E,T)})},O.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.'}})},O.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)})},O.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},O.prototype.set=function(E){if(l(E)!=="object")return this;var T=Object.keys(E||{}).map(function(Z){if(Z in O.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(T)})},O.prototype.get=function(E,T){return this.then(function(){var Z=E in O.template.prop?this.prop[E]:this.opt[E];return T?T(Z):Z})},O.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)},O.prototype.setPageSize=function(E){function T(Z,se){return Math.floor(Z*se/72*96)}return this.then(function(){(E=E||da.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:T(E.inner.width,E.k),height:T(E.inner.height,E.k)},E.inner.ratio=E.inner.height/E.inner.width),this.prop.pageSize=E})},O.prototype.setProgress=function(E,T,Z,se){return E!=null&&(this.progress.val=E),T!=null&&(this.progress.state=T),Z!=null&&(this.progress.n=Z),se!=null&&(this.progress.stack=se),this.progress.ratio=this.progress.val/this.progress.state,this},O.prototype.updateProgress=function(E,T,Z,se){return this.setProgress(E?this.progress.val+E:null,T||null,Z?this.progress.n+Z:null,se?this.progress.stack.concat(se):null)},O.prototype.then=function(E,T){var Z=this;return this.thenCore(E,T,function(se,Re){return Z.updateProgress(null,null,1,[se]),Promise.prototype.then.call(this,function(Ze){return Z.updateProgress(null,se),Ze}).then(se,Re).then(function(Ze){return Z.updateProgress(1),Ze})})},O.prototype.thenCore=function(E,T,Z){Z=Z||Promise.prototype.then;var se=this;E&&(E=E.bind(se)),T&&(T=T.bind(se));var Re=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?se:O.convert(Object.assign({},se),Promise.prototype),Ze=Z.call(Re,E,T);return O.convert(Ze,se.__proto__)},O.prototype.thenExternal=function(E,T){return Promise.prototype.then.call(this,E,T)},O.prototype.thenList=function(E){var T=this;return E.forEach(function(Z){T=T.thenCore(Z)}),T},O.prototype.catch=function(E){E&&(E=E.bind(this));var T=Promise.prototype.catch.call(this,E);return O.convert(T,this)},O.prototype.catchExternal=function(E){return Promise.prototype.catch.call(this,E)},O.prototype.error=function(E){return this.then(function(){throw new Error(E)})},O.prototype.using=O.prototype.set,O.prototype.saveAs=O.prototype.save,O.prototype.export=O.prototype.output,O.prototype.run=O.prototype.then,da.getPageSize=function(E,T,Z){if((0,me.Z)(E)==="object"){var se=E;E=se.orientation,T=se.unit||T,Z=se.format||Z}T=T||"mm",Z=Z||"a4",E=(""+(E||"P")).toLowerCase();var Re,Ze=(""+Z).toLowerCase(),ae={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(T){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: "+T}var mt,At=0,wt=0;if(ae.hasOwnProperty(Ze))At=ae[Ze][1]/Re,wt=ae[Ze][0]/Re;else try{At=Z[1],wt=Z[0]}catch(st){throw new Error("Invalid format: "+Z)}if(E==="p"||E==="portrait")E="p",wt>At&&(mt=wt,wt=At,At=mt);else{if(E!=="l"&&E!=="landscape")throw"Invalid orientation: "+E;E="l",At>wt&&(mt=wt,wt=At,At=mt)}return{width:wt,height:At,unit:T,k:Re,orientation:E}},n.html=function(E,T){(T=T||{}).callback=T.callback||function(){},T.html2canvas=T.html2canvas||{},T.html2canvas.canvas=T.html2canvas.canvas||this.canvas,T.jsPDF=T.jsPDF||this,T.fontFaces=T.fontFaces?T.fontFaces.map(Yu):null;var Z=new O(T);return T.worker?Z:Z.from(E).doCallback()}}(da.API),da.API.addJS=function(n){return Hh=n,this.internal.events.subscribe("postPutResources",function(){Kc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Kc+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 ("+Hh+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Kc!==void 0&&vg!==void 0&&this.internal.out("/Names <</JavaScript "+Kc+" 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 u=a.outline.render().split(/\r\n/),g=0;g<u.length;g++){var O=u[g],E=l.exec(O);if(E!=null){var T=E[1];a.internal.newObjectDeferredBegin(T,!1)}a.internal.write(O)}if(this.outline.createNamedDestinations){var Z=this.internal.pages.length,se=[];for(g=0;g<Z;g++){var Re=a.internal.newObject();se.push(Re);var Ze=a.internal.getPageInfo(g+1);a.internal.write("<< /D["+Ze.objId+" 0 R /XYZ null null null]>> endobj")}var ae=a.internal.newObject();for(a.internal.write("<< /Names [ "),g=0;g<se.length;g++)a.internal.write("(page_"+(g+1)+")"+se[g]+" 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,u,g){var O={title:u,options:g,children:[]};return l==null&&(l=this.root),l.children.push(O),O},a.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=a,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},a.outline.genIds_r=function(l){l.id=a.internal.newObjectDeferred();for(var u=0;u<l.children.length;u++)this.genIds_r(l.children[u])},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 u=this.ctx.pdf.internal.getVerticalCoordinateString,g=0;g<l.children.length;g++){var O=l.children[g];this.objStart(O),this.line("/Title "+this.makeString(O.title)),this.line("/Parent "+this.makeRef(l)),g>0&&this.line("/Prev "+this.makeRef(l.children[g-1])),g<l.children.length-1&&this.line("/Next "+this.makeRef(l.children[g+1])),O.children.length>0&&(this.line("/First "+this.makeRef(O.children[0])),this.line("/Last "+this.makeRef(O.children[O.children.length-1])));var E=this.count=this.count_r({count:0},O);if(E>0&&this.line("/Count "+E),O.options&&O.options.pageNumber){var T=a.internal.getPageInfo(O.options.pageNumber);this.line("/Dest ["+T.objId+" 0 R /XYZ 0 "+u(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,u){for(var g=0;g<u.children.length;g++)l.count++,this.count_r(l,u.children[g]);return l.count}}])}(da.API),function(n){var o=[192,193,194,195,196,197,198,199];n.processJPEG=function(a,l,u,g,O,E){var T,Z=this.decode.DCT_DECODE,se=null;if(typeof a=="string"||this.__addimage__.isArrayBuffer(a)||this.__addimage__.isArrayBufferView(a)){switch(a=O||a,a=this.__addimage__.isArrayBuffer(a)?new Uint8Array(a):a,T=function(Re){for(var Ze,ae=256*Re.charCodeAt(4)+Re.charCodeAt(5),mt=Re.length,At={width:0,height:0,numcomponents:1},wt=4;wt<mt;wt+=2){if(wt+=ae,o.indexOf(Re.charCodeAt(wt+1))!==-1){Ze=256*Re.charCodeAt(wt+5)+Re.charCodeAt(wt+6),At={width:256*Re.charCodeAt(wt+7)+Re.charCodeAt(wt+8),height:Ze,numcomponents:Re.charCodeAt(wt+9)};break}ae=256*Re.charCodeAt(wt+2)+Re.charCodeAt(wt+3)}return At}(a=this.__addimage__.isArrayBufferView(a)?this.__addimage__.arrayBufferToBinaryString(a):a),T.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}se={data:a,width:T.width,height:T.height,colorSpace:E,bitsPerComponent:8,filter:Z,index:l,alias:u}}return se}}(da.API),da.API.processPNG=function(n,o,a,l){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var u,g=Ys(n,{checkCrc:!0}),O=g.width,E=g.height,T=g.channels,Z=g.palette,se=g.depth;u=Z&&T===1?function(or){for(var Lt=or.width,xr=or.height,it=or.data,xt=or.palette,Wt=or.depth,jt=!1,Tr=[],Zr=[],Jr=void 0,Mr=!1,Gr=0,Zn=0;Zn<xt.length;Zn++){var Sn=(0,yi.Z)(xt[Zn],4),tt=Sn[0],It=Sn[1],Nt=Sn[2],qt=Sn[3];Tr.push(tt,It,Nt),qt!=null&&(qt===0?(Gr++,Zr.length<1&&Zr.push(Zn)):qt<255&&(Mr=!0))}if(Mr||Gr>1){jt=!0,Zr=void 0;var Ar=Lt*xr;Jr=new Uint8Array(Ar);for(var Er=new DataView(it.buffer),Kr=0;Kr<Ar;Kr++){var $r=cm(Er,Kr,Wt),mn=(0,yi.Z)(xt[$r],4)[3];Jr[Kr]=mn}}else Gr===0&&(Zr=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:jt?8:void 0,colorBytes:it,alphaBytes:Jr,needSMask:jt,palette:Tr,mask:Zr}}(g):T===2||T===4?function(or){for(var Lt=or.data,xr=or.width,it=or.height,xt=or.channels,Wt=or.depth,jt=xt===2?"DeviceGray":"DeviceRGB",Tr=xt-1,Zr=xr*it,Jr=Tr,Mr=Zr*Jr,Gr=1*Zr,Zn=Math.ceil(Mr*Wt/8),Sn=Math.ceil(Gr*Wt/8),tt=new Uint8Array(Zn),It=new Uint8Array(Sn),Nt=new DataView(Lt.buffer),qt=new DataView(tt.buffer),Ar=new DataView(It.buffer),Er=!1,Kr=0;Kr<Zr;Kr++){for(var $r=Kr*xt,mn=0;mn<Jr;mn++)zh(qt,cm(Nt,$r+mn,Wt),Kr*Jr+mn,Wt);var jn=cm(Nt,$r+Jr,Wt);jn<(1<<Wt)-1&&(Er=!0),zh(Ar,jn,1*Kr,Wt)}return{colorSpace:jt,colorsPerPixel:Tr,sMaskBitsPerComponent:Er?Wt:void 0,colorBytes:tt,alphaBytes:It,needSMask:Er}}(g):function(or){var Lt=or.data,xr=or.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:xr,colorsPerPixel:xr==="DeviceGray"?1:3,colorBytes:Lt instanceof Uint16Array?function(it){for(var xt=it.length,Wt=new Uint8Array(2*xt),jt=new DataView(Wt.buffer,Wt.byteOffset,Wt.byteLength),Tr=0;Tr<xt;Tr++)jt.setUint16(2*Tr,it[Tr],!1);return Wt}(Lt):Lt,needSMask:!1}}(g);var Re,Ze,ae,mt=u,At=mt.colorSpace,wt=mt.colorsPerPixel,st=mt.sMaskBitsPerComponent,Gt=mt.colorBytes,Qt=mt.alphaBytes,Ft=mt.needSMask,Ir=mt.palette,rn=mt.mask,Wr=null;return l!==da.API.image_compression.NONE&&typeof pi=="function"?(Wr=function(or){var Lt;switch(or){case da.API.image_compression.FAST:Lt=11;break;case da.API.image_compression.MEDIUM:Lt=13;break;case da.API.image_compression.SLOW:Lt=14;break;default:Lt=12}return Lt}(l),Re=this.decode.FLATE_DECODE,Ze="/Predictor ".concat(Wr," /Colors ").concat(wt," /BitsPerComponent ").concat(se," /Columns ").concat(O),n=sm(Gt,Math.ceil(O*wt*se/8),wt,se,l),Ft&&(ae=sm(Qt,Math.ceil(O*st/8),1,st,l))):(Re=void 0,Ze=void 0,n=Gt,Ft&&(ae=Qt)),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(ae&&this.__addimage__.isArrayBuffer(ae)||this.__addimage__.isArrayBufferView(ae))&&(ae=this.__addimage__.arrayBufferToBinaryString(ae)),{alias:a,data:n,index:o,filter:Re,decodeParameters:Ze,transparency:rn,palette:Ir,sMask:ae,predictor:Wr,width:O,height:E,bitsPerComponent:se,sMaskBitsPerComponent:st,colorSpace:At}}},function(n){n.processGIF89A=function(o,a,l,u){var g=new Ym(o),O=g.width,E=g.height,T=[];g.decodeAndBlitFrameRGBA(0,T);var Z={data:T,width:O,height:E},se=new qm(100).encode(Z,100);return n.processJPEG.call(this,se,a,l,u)},n.processGIF87A=n.processGIF89A}(da.API),fA.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),u=this.datav.getUint8(this.pos++,!0),g=this.datav.getUint8(this.pos++,!0);this.palette[o]={red:u,green:l,blue:a,quad:g}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},fA.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){Os.log("bit decode error:"+a)}},fA.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,u=0;u<o;u++)for(var g=this.datav.getUint8(this.pos++,!0),O=l*this.width*4+8*u*4,E=0;E<8&&8*u+E<this.width;E++){var T=this.palette[g>>7-E&1];this.data[O+4*E]=T.blue,this.data[O+4*E+1]=T.green,this.data[O+4*E+2]=T.red,this.data[O+4*E+3]=255}a!==0&&(this.pos+=4-a)}},fA.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,u=0;u<n;u++){var g=this.datav.getUint8(this.pos++,!0),O=l*this.width*4+2*u*4,E=g>>4,T=15&g,Z=this.palette[E];if(this.data[O]=Z.blue,this.data[O+1]=Z.green,this.data[O+2]=Z.red,this.data[O+3]=255,2*u+1>=this.width)break;Z=this.palette[T],this.data[O+4]=Z.blue,this.data[O+4+1]=Z.green,this.data[O+4+2]=Z.red,this.data[O+4+3]=255}o!==0&&(this.pos+=4-o)}},fA.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 u=this.datav.getUint8(this.pos++,!0),g=a*this.width*4+4*l;if(u<this.palette.length){var O=this.palette[u];this.data[g]=O.red,this.data[g+1]=O.green,this.data[g+2]=O.blue,this.data[g+3]=255}else this.data[g]=255,this.data[g+1]=255,this.data[g+2]=255,this.data[g+3]=255}n!==0&&(this.pos+=4-n)}},fA.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,u=0;u<this.width;u++){var g=this.datav.getUint16(this.pos,!0);this.pos+=2;var O=(g&o)/o*255|0,E=(g>>5&o)/o*255|0,T=(g>>10&o)/o*255|0,Z=g>>15?255:0,se=l*this.width*4+4*u;this.data[se]=T,this.data[se+1]=E,this.data[se+2]=O,this.data[se+3]=Z}this.pos+=n}},fA.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 u=this.bottom_up?l:this.height-1-l,g=0;g<this.width;g++){var O=this.datav.getUint16(this.pos,!0);this.pos+=2;var E=(O&o)/o*255|0,T=(O>>5&a)/a*255|0,Z=(O>>11)/o*255|0,se=u*this.width*4+4*g;this.data[se]=Z,this.data[se+1]=T,this.data[se+2]=E,this.data[se+3]=255}this.pos+=n}},fA.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),u=this.datav.getUint8(this.pos++,!0),g=this.datav.getUint8(this.pos++,!0),O=o*this.width*4+4*a;this.data[O]=g,this.data[O+1]=u,this.data[O+2]=l,this.data[O+3]=255}this.pos+=this.width%4}},fA.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),u=this.datav.getUint8(this.pos++,!0),g=this.datav.getUint8(this.pos++,!0),O=this.datav.getUint8(this.pos++,!0),E=o*this.width*4+4*a;this.data[E]=g,this.data[E+1]=u,this.data[E+2]=l,this.data[E+3]=O}},fA.prototype.getData=function(){return this.data},function(n){n.processBMP=function(o,a,l,u){var g=new fA(o,!1),O=g.width,E=g.height,T={data:g.getData(),width:O,height:E},Z=new qm(100).encode(T,100);return n.processJPEG.call(this,Z,a,l,u)}}(da.API),Ep.prototype.getData=function(){return this.data},function(n){n.processWEBP=function(o,a,l,u){var g=new Ep(o),O=g.width,E=g.height,T={data:g.getData(),width:O,height:E},Z=new qm(100).encode(T,100);return n.processJPEG.call(this,Z,a,l,u)}}(da.API),da.API.processRGBA=function(n,o,a){for(var l=n.data,u=l.length,g=new Uint8Array(u/4*3),O=new Uint8Array(u/4),E=0,T=0,Z=0;Z<u;Z+=4){var se=l[Z],Re=l[Z+1],Ze=l[Z+2],ae=l[Z+3];g[E++]=se,g[E++]=Re,g[E++]=Ze,O[T++]=ae}var mt=this.__addimage__.arrayBufferToBinaryString(g);return{alpha:this.__addimage__.arrayBufferToBinaryString(O),data:mt,index:o,alias:a,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},da.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},jh=da.API,om=jh.getCharWidthsArray=function(n,o){var a,l,u=(o=o||{}).font||this.internal.getFont(),g=o.fontSize||this.internal.getFontSize(),O=o.charSpace||this.internal.getCharSpace(),E=o.widths?o.widths:u.metadata.Unicode.widths,T=E.fof?E.fof:1,Z=o.kerning?o.kerning:u.metadata.Unicode.kerning,se=Z.fof?Z.fof:1,Re=o.doKerning!==!1,Ze=0,ae=n.length,mt=0,At=E[0]||T,wt=[];for(a=0;a<ae;a++)l=n.charCodeAt(a),typeof u.metadata.widthOfString=="function"?wt.push((u.metadata.widthOfGlyph(u.metadata.characterToGlyph(l))+O*(1e3/g)||0)/1e3):(Ze=Re&&(0,me.Z)(Z[l])==="object"&&!isNaN(parseInt(Z[l][mt],10))?Z[l][mt]/se:0,wt.push((E[l]||At)/T+Ze)),mt=l;return wt},bg=jh.getStringUnitWidth=function(n,o){var a=(o=o||{}).fontSize||this.internal.getFontSize(),l=o.font||this.internal.getFont(),u=o.charSpace||this.internal.getCharSpace();return jh.processArabic&&(n=jh.processArabic(n)),typeof l.metadata.widthOfString=="function"?l.metadata.widthOfString(n,a,u)/a:om.apply(this,arguments).reduce(function(g,O){return g+O},0)},Gm=function(n,o,a,l){for(var u=[],g=0,O=n.length,E=0;g!==O&&E+o[g]<a;)E+=o[g],g++;u.push(n.slice(0,g));var T=g;for(E=0;g!==O;)E+o[g]>l&&(u.push(n.slice(T,g)),E=0,T=g),E+=o[g],g++;return T!==g&&u.push(n.slice(T,g)),u},yg=function(n,o,a){a||(a={});var l,u,g,O,E,T,Z,se=[],Re=[se],Ze=a.textIndent||0,ae=0,mt=0,At=n.split(" "),wt=om.apply(this,[" ",a])[0];if(T=a.lineIndent===-1?At[0].length+2:a.lineIndent||0){var st=Array(T).join(" "),Gt=[];At.map(function(Ft){(Ft=Ft.split(/\s*\n/)).length>1?Gt=Gt.concat(Ft.map(function(Ir,rn){return(rn&&Ir.length?`
`:"")+Ir})):Gt.push(Ft[0])}),At=Gt,T=bg.apply(this,[st,a])}for(g=0,O=At.length;g<O;g++){var Qt=0;if(l=At[g],T&&l[0]==`
`&&(l=l.substr(1),Qt=1),Ze+ae+(mt=(u=om.apply(this,[l,a])).reduce(function(Ft,Ir){return Ft+Ir},0))>o||Qt){if(mt>o){for(E=Gm.apply(this,[l,u,o-(Ze+ae),o]),se.push(E.shift()),se=[E.pop()];E.length;)Re.push([E.shift()]);mt=u.slice(l.length-(se[0]?se[0].length:0)).reduce(function(Ft,Ir){return Ft+Ir},0)}else se=[l];Re.push(se),Ze=mt+T,ae=wt}else se.push(l),Ze+=ae+mt,ae=wt}return Z=T?function(Ft,Ir){return(Ir?st:"")+Ft.join(" ")}:function(Ft){return Ft.join(" ")},Re.map(Z)},jh.splitTextToSize=function(n,o,a){var l,u=(a=a||{}).fontSize||this.internal.getFontSize(),g=function(se){if(se.widths&&se.kerning)return{widths:se.widths,kerning:se.kerning};var Re=this.internal.getFont(se.fontName,se.fontStyle),Ze="Unicode";return Re.metadata[Ze]?{widths:Re.metadata[Ze].widths||{0:1},kerning:Re.metadata[Ze].kerning||{}}:{font:Re.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,a);l=Array.isArray(n)?n:String(n).split(/\r?\n/);var O=1*this.internal.scaleFactor*o/u;g.textIndent=a.textIndent?1*a.textIndent*this.internal.scaleFactor/u:0,g.lineIndent=a.lineIndent;var E,T,Z=[];for(E=0,T=l.length;E<T;E++)Z=Z.concat(yg.apply(this,[l[E],O,g]));return Z},function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var o="0123456789abcdef",a="klmnopqrstuvwxyz",l={},u={},g=0;g<16;g++)l[a[g]]=o[g],u[o[g]]=a[g];var O=function(Ze){return"0x"+parseInt(Ze,10).toString(16)},E=n.__fontmetrics__.compress=function(Ze){var ae,mt,At,wt,st=["{"];for(var Gt in Ze){if(ae=Ze[Gt],isNaN(parseInt(Gt,10))?mt="'"+Gt+"'":(Gt=parseInt(Gt,10),mt=(mt=O(Gt).slice(2)).slice(0,-1)+u[mt.slice(-1)]),typeof ae=="number")ae<0?(At=O(ae).slice(3),wt="-"):(At=O(ae).slice(2),wt=""),At=wt+At.slice(0,-1)+u[At.slice(-1)];else{if((0,me.Z)(ae)!=="object")throw new Error("Don't know what to do with value type "+(0,me.Z)(ae)+".");At=E(ae)}st.push(mt+At)}return st.push("}"),st.join("")},T=n.__fontmetrics__.uncompress=function(Ze){if(typeof Ze!="string")throw new Error("Invalid argument passed to uncompress.");for(var ae,mt,At,wt,st={},Gt=1,Qt=st,Ft=[],Ir="",rn="",Wr=Ze.length-1,or=1;or<Wr;or+=1)(wt=Ze[or])=="'"?ae?(At=ae.join(""),ae=void 0):ae=[]:ae?ae.push(wt):wt=="{"?(Ft.push([Qt,At]),Qt={},At=void 0):wt=="}"?((mt=Ft.pop())[0][mt[1]]=Qt,At=void 0,Qt=mt[0]):wt=="-"?Gt=-1:At===void 0?l.hasOwnProperty(wt)?(Ir+=l[wt],At=parseInt(Ir,16)*Gt,Gt=1,Ir=""):Ir+=wt:l.hasOwnProperty(wt)?(rn+=l[wt],Qt[At]=parseInt(rn,16)*Gt,Gt=1,At=void 0,rn=""):rn+=wt;return st},Z={codePages:["WinAnsiEncoding"],WinAnsiEncoding:T("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},se={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":T("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":T("{'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":T("{'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:T("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":T("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":T("{'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:T("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:T("{'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":T("{'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:T("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":T("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":T("{'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":T("{'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":T("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};n.events.push(["addFont",function(Ze){var ae=Ze.font,mt=Re.Unicode[ae.postScriptName];mt&&(ae.metadata.Unicode={},ae.metadata.Unicode.widths=mt.widths,ae.metadata.Unicode.kerning=mt.kerning);var At=se.Unicode[ae.postScriptName];At&&(ae.metadata.Unicode.encoding=At,ae.encoding=At.codePages[0])}])}(da.API),function(n){var o=function(a){for(var l=a.length,u=new Uint8Array(l),g=0;g<l;g++)u[g]=a.charCodeAt(g);return u};n.API.events.push(["addFont",function(a){var l=void 0,u=a.font,g=a.instance;if(!u.isStandardFont){if(g===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+u.postScriptName+"').");if(typeof(l=g.existsFileInVFS(u.postScriptName)===!1?g.loadFile(u.postScriptName):g.getFileFromVFS(u.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+u.postScriptName+"').");(function(O,E){E=/^\x00\x01\x00\x00/.test(E)?o(E):o(gn(E)),O.metadata=n.API.TTFFont.open(E),O.metadata.Unicode=O.metadata.Unicode||{encoding:{},kerning:{},widths:[]},O.metadata.glyIdsUsed=[0]})(u,l)}}])}(da),da.API.addSvgAsImage=function(n,o,a,l,u,g,O,E){if(isNaN(o)||isNaN(a))throw Os.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(l)||isNaN(u))throw Os.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var T=document.createElement("canvas");T.width=l,T.height=u;var Z=T.getContext("2d");Z.fillStyle="#fff",Z.fillRect(0,0,T.width,T.height);var se={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Re=this;return(Wa.canvg?Promise.resolve(Wa.canvg):x.e(3754).then(x.bind(x,63754))).catch(function(Ze){return Promise.reject(new Error("Could not load canvg: "+Ze))}).then(function(Ze){return Ze.default?Ze.default:Ze}).then(function(Ze){return Ze.fromString(Z,n,se)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(Ze){return Ze.render(se)}).then(function(){Re.addImage(T.toDataURL("image/jpeg",1),o,a,l,u,O,E)})},da.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 u=0;u<this.internal.pages[l].length;u++)this.internal.pages[l][u]=this.internal.pages[l][u].replace(o,a);return this},da.API.viewerPreferences=function(n,o){var a;n=n||{},o=o||!1;var l,u,g,O={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},E=Object.keys(O),T=[],Z=0,se=0,Re=0;function Ze(mt,At){var wt,st=!1;for(wt=0;wt<mt.length;wt+=1)mt[wt]===At&&(st=!0);return st}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(O)),this.internal.viewerpreferences.isSubscribed=!1),a=this.internal.viewerpreferences.configuration,n==="reset"||o===!0){var ae=E.length;for(Re=0;Re<ae;Re+=1)a[E[Re]].value=a[E[Re]].defaultValue,a[E[Re]].explicitSet=!1}if((0,me.Z)(n)==="object"){for(u in n)if(g=n[u],Ze(E,u)&&g!==void 0){if(a[u].type==="boolean"&&typeof g=="boolean")a[u].value=g;else if(a[u].type==="name"&&Ze(a[u].valueSet,g))a[u].value=g;else if(a[u].type==="integer"&&Number.isInteger(g))a[u].value=g;else if(a[u].type==="array"){for(Z=0;Z<g.length;Z+=1)if(l=!0,g[Z].length===1&&typeof g[Z][0]=="number")T.push(String(g[Z]-1));else if(g[Z].length>1){for(se=0;se<g[Z].length;se+=1)typeof g[Z][se]!="number"&&(l=!1);l===!0&&T.push([g[Z][0]-1,g[Z][1]-1].join(" "))}a[u].value="["+T.join(" ")+"]"}else a[u].value=a[u].defaultValue;a[u].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var mt,At=[];for(mt in a)a[mt].explicitSet===!0&&(a[mt].type==="name"?At.push("/"+mt+" /"+a[mt].value):At.push("/"+mt+" "+a[mt].value));At.length!==0&&this.internal.write(`/ViewerPreferences
<<
`+At.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>',u=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),g=unescape(encodeURIComponent(l)),O=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),E=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),T=unescape(encodeURIComponent("</x:xmpmeta>")),Z=g.length+O.length+E.length+u.length+T.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(u+g+O+E+T),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,u){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:l,namespaceuri:u||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",a),this.internal.events.subscribe("postPutResources",o)),this}}(da.API),function(n){var o=n.API,a=o.pdfEscape16=function(g,O){for(var E,T=O.metadata.Unicode.widths,Z=["","0","00","000","0000"],se=[""],Re=0,Ze=g.length;Re<Ze;++Re){if(E=O.metadata.characterToGlyph(g.charCodeAt(Re)),O.metadata.glyIdsUsed.push(E),O.metadata.toUnicode[E]=g.charCodeAt(Re),T.indexOf(E)==-1&&(T.push(E),T.push([parseInt(O.metadata.widthOfGlyph(E),10)])),E=="0")return se.join("");E=E.toString(16),se.push(Z[4-E.length],E)}return se.join("")},l=function(g){var O,E,T,Z,se,Re,Ze;for(se=`/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`,T=[],Re=0,Ze=(E=Object.keys(g).sort(function(ae,mt){return ae-mt})).length;Re<Ze;Re++)O=E[Re],T.length>=100&&(se+=`
`+T.length+` beginbfchar
`+T.join(`
`)+`
endbfchar`,T=[]),g[O]!==void 0&&g[O]!==null&&typeof g[O].toString=="function"&&(Z=("0000"+g[O].toString(16)).slice(-4),O=("0000"+(+O).toString(16)).slice(-4),T.push("<"+O+"><"+Z+">"));return T.length&&(se+=`
`+T.length+` beginbfchar
`+T.join(`
`)+`
endbfchar
`),se+`endcmap
CMapName currentdict /CMap defineresource pop
end
end`};o.events.push(["putFont",function(g){(function(O){var E=O.font,T=O.out,Z=O.newObject,se=O.putStream;if(E.metadata instanceof n.API.TTFFont&&E.encoding==="Identity-H"){for(var Re=E.metadata.Unicode.widths,Ze=E.metadata.subset.encode(E.metadata.glyIdsUsed,1),ae="",mt=0;mt<Ze.length;mt++)ae+=String.fromCharCode(Ze[mt]);var At=Z();se({data:ae,addLength1:!0,objectId:At}),T("endobj");var wt=Z();se({data:l(E.metadata.toUnicode),addLength1:!0,objectId:wt}),T("endobj");var st=Z();T("<<"),T("/Type /FontDescriptor"),T("/FontName /"+iu(E.fontName)),T("/FontFile2 "+At+" 0 R"),T("/FontBBox "+n.API.PDFObject.convert(E.metadata.bbox)),T("/Flags "+E.metadata.flags),T("/StemV "+E.metadata.stemV),T("/ItalicAngle "+E.metadata.italicAngle),T("/Ascent "+E.metadata.ascender),T("/Descent "+E.metadata.decender),T("/CapHeight "+E.metadata.capHeight),T(">>"),T("endobj");var Gt=Z();T("<<"),T("/Type /Font"),T("/BaseFont /"+iu(E.fontName)),T("/FontDescriptor "+st+" 0 R"),T("/W "+n.API.PDFObject.convert(Re)),T("/CIDToGIDMap /Identity"),T("/DW 1000"),T("/Subtype /CIDFontType2"),T("/CIDSystemInfo"),T("<<"),T("/Supplement 0"),T("/Registry (Adobe)"),T("/Ordering ("+E.encoding+")"),T(">>"),T(">>"),T("endobj"),E.objectNumber=Z(),T("<<"),T("/Type /Font"),T("/Subtype /Type0"),T("/ToUnicode "+wt+" 0 R"),T("/BaseFont /"+iu(E.fontName)),T("/Encoding /"+E.encoding),T("/DescendantFonts ["+Gt+" 0 R]"),T(">>"),T("endobj"),E.isAlreadyPutted=!0}})(g)}]),o.events.push(["putFont",function(g){(function(O){var E=O.font,T=O.out,Z=O.newObject,se=O.putStream;if(E.metadata instanceof n.API.TTFFont&&E.encoding==="WinAnsiEncoding"){for(var Re=E.metadata.rawData,Ze="",ae=0;ae<Re.length;ae++)Ze+=String.fromCharCode(Re[ae]);var mt=Z();se({data:Ze,addLength1:!0,objectId:mt}),T("endobj");var At=Z();se({data:l(E.metadata.toUnicode),addLength1:!0,objectId:At}),T("endobj");var wt=Z();T("<<"),T("/Descent "+E.metadata.decender),T("/CapHeight "+E.metadata.capHeight),T("/StemV "+E.metadata.stemV),T("/Type /FontDescriptor"),T("/FontFile2 "+mt+" 0 R"),T("/Flags 96"),T("/FontBBox "+n.API.PDFObject.convert(E.metadata.bbox)),T("/FontName /"+iu(E.fontName)),T("/ItalicAngle "+E.metadata.italicAngle),T("/Ascent "+E.metadata.ascender),T(">>"),T("endobj"),E.objectNumber=Z();for(var st=0;st<E.metadata.hmtx.widths.length;st++)E.metadata.hmtx.widths[st]=parseInt(E.metadata.hmtx.widths[st]*(1e3/E.metadata.head.unitsPerEm));T("<</Subtype/TrueType/Type/Font/ToUnicode "+At+" 0 R/BaseFont/"+iu(E.fontName)+"/FontDescriptor "+wt+" 0 R/Encoding/"+E.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(E.metadata.hmtx.widths)+">>"),T("endobj"),E.isAlreadyPutted=!0}})(g)}]);var u=function(g){var O,E=g.text||"",T=g.x,Z=g.y,se=g.options||{},Re=g.mutex||{},Ze=Re.pdfEscape,ae=Re.activeFontKey,mt=Re.fonts,At=ae,wt="",st=0,Gt="",Qt=mt[At].encoding;if(mt[At].encoding!=="Identity-H")return{text:E,x:T,y:Z,options:se,mutex:Re};for(Gt=E,At=ae,Array.isArray(E)&&(Gt=E[0]),st=0;st<Gt.length;st+=1)mt[At].metadata.hasOwnProperty("cmap")&&(O=mt[At].metadata.cmap.unicode.codeMap[Gt[st].charCodeAt(0)]),O||Gt[st].charCodeAt(0)<256&&mt[At].metadata.hasOwnProperty("Unicode")?wt+=Gt[st]:wt+="";var Ft="";return parseInt(At.slice(1))<14||Qt==="WinAnsiEncoding"?Ft=Ze(wt,At).split("").map(function(Ir){return Ir.charCodeAt(0).toString(16)}).join(""):Qt==="Identity-H"&&(Ft=a(wt,mt[At])),Re.isHex=!0,{text:Ft,x:T,y:Z,options:se,mutex:Re}};o.events.push(["postProcessText",function(g){var O=g.text||"",E=[],T={text:O,x:g.x,y:g.y,options:g.options,mutex:g.mutex};if(Array.isArray(O)){var Z=0;for(Z=0;Z<O.length;Z+=1)Array.isArray(O[Z])&&O[Z].length===3?E.push([u(Object.assign({},T,{text:O[Z][0]})).text,O[Z][1],O[Z][2]]):E.push(u(Object.assign({},T,{text:O[Z]})).text);g.text=E}else g.text=u(Object.assign({},T,{text:O})).text}])}(da),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}}(da.API),function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(l){var u,g,O,E,T,Z,se,Re=o,Ze=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],ae=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],mt={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},At={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},wt=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],st=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,Qt=0;this.__bidiEngine__={};var Ft=function(it){var xt=it.charCodeAt(),Wt=xt>>8,jt=At[Wt];return jt!==void 0?Re[256*jt+(255&xt)]:Wt===252||Wt===253?"AL":st.test(Wt)?"L":Wt===8?"R":"N"},Ir=function(it){for(var xt,Wt=0;Wt<it.length;Wt++){if((xt=Ft(it.charAt(Wt)))==="L")return!1;if(xt==="R")return!0}return!1},rn=function(it,xt,Wt,jt){var Tr,Zr,Jr,Mr,Gr=xt[jt];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":jt<1||jt+1>=xt.length||(Tr=Wt[jt-1])!=="EN"&&Tr!=="AN"||(Zr=xt[jt+1])!=="EN"&&Zr!=="AN"?Gr="N":Gt&&(Zr="AN"),Gr=Zr===Tr?Zr:"N";break;case"ES":Gr=(Tr=jt>0?Wt[jt-1]:"B")==="EN"&&jt+1<xt.length&&xt[jt+1]==="EN"?"EN":"N";break;case"ET":if(jt>0&&Wt[jt-1]==="EN"){Gr="EN";break}if(Gt){Gr="N";break}for(Jr=jt+1,Mr=xt.length;Jr<Mr&&xt[Jr]==="ET";)Jr++;Gr=Jr<Mr&&xt[Jr]==="EN"?"EN":"N";break;case"NSM":if(O&&!E){for(Mr=xt.length,Jr=jt+1;Jr<Mr&&xt[Jr]==="NSM";)Jr++;if(Jr<Mr){var Zn=it[jt],Sn=Zn>=1425&&Zn<=2303||Zn===64286;if(Tr=xt[Jr],Sn&&(Tr==="R"||Tr==="AL")){Gr="R";break}}}Gr=jt<1||(Tr=xt[jt-1])==="B"?"N":Wt[jt-1];break;case"B":Gt=!1,u=!0,Gr=Qt;break;case"S":g=!0,Gr="N"}return Gr},Wr=function(it,xt,Wt){var jt=it.split("");return Wt&&or(jt,Wt,{hiLevel:Qt}),jt.reverse(),xt&&xt.reverse(),jt.join("")},or=function(it,xt,Wt){var jt,Tr,Zr,Jr,Mr,Gr=-1,Zn=it.length,Sn=0,tt=[],It=Qt?ae:Ze,Nt=[];for(Gt=!1,u=!1,g=!1,Tr=0;Tr<Zn;Tr++)Nt[Tr]=Ft(it[Tr]);for(Zr=0;Zr<Zn;Zr++){if(Mr=Sn,tt[Zr]=rn(it,Nt,tt,Zr),jt=240&(Sn=It[Mr][mt[tt[Zr]]]),Sn&=15,xt[Zr]=Jr=It[Sn][5],jt>0)if(jt===16){for(Tr=Gr;Tr<Zr;Tr++)xt[Tr]=1;Gr=-1}else Gr=-1;if(It[Sn][6])Gr===-1&&(Gr=Zr);else if(Gr>-1){for(Tr=Gr;Tr<Zr;Tr++)xt[Tr]=Jr;Gr=-1}Nt[Zr]==="B"&&(xt[Zr]=0),Wt.hiLevel|=Jr}g&&function(qt,Ar,Er){for(var Kr=0;Kr<Er;Kr++)if(qt[Kr]==="S"){Ar[Kr]=Qt;for(var $r=Kr-1;$r>=0&&qt[$r]==="WS";$r--)Ar[$r]=Qt}}(Nt,xt,Zn)},Lt=function(it,xt,Wt,jt,Tr){if(!(Tr.hiLevel<it)){if(it===1&&Qt===1&&!u)return xt.reverse(),void(Wt&&Wt.reverse());for(var Zr,Jr,Mr,Gr,Zn=xt.length,Sn=0;Sn<Zn;){if(jt[Sn]>=it){for(Mr=Sn+1;Mr<Zn&&jt[Mr]>=it;)Mr++;for(Gr=Sn,Jr=Mr-1;Gr<Jr;Gr++,Jr--)Zr=xt[Gr],xt[Gr]=xt[Jr],xt[Jr]=Zr,Wt&&(Zr=Wt[Gr],Wt[Gr]=Wt[Jr],Wt[Jr]=Zr);Sn=Mr}Sn++}}},xr=function(it,xt,Wt){var jt=it.split(""),Tr={hiLevel:Qt};return Wt||(Wt=[]),or(jt,Wt,Tr),function(Zr,Jr,Mr){if(Mr.hiLevel!==0&&se)for(var Gr,Zn=0;Zn<Zr.length;Zn++)Jr[Zn]===1&&(Gr=wt.indexOf(Zr[Zn]))>=0&&(Zr[Zn]=wt[Gr+1])}(jt,Wt,Tr),Lt(2,jt,xt,Wt,Tr),Lt(1,jt,xt,Wt,Tr),jt.join("")};return this.__bidiEngine__.doBidiReorder=function(it,xt,Wt){if(function(Tr,Zr){if(Zr)for(var Jr=0;Jr<Tr.length;Jr++)Zr[Jr]=Jr;E===void 0&&(E=Ir(Tr)),Z===void 0&&(Z=Ir(Tr))}(it,xt),O||!T||Z)if(O&&T&&E^Z)Qt=E?1:0,it=Wr(it,xt,Wt);else if(!O&&T&&Z)Qt=E?1:0,it=xr(it,xt,Wt),it=Wr(it,xt);else if(!O||E||T||Z){if(O&&!T&&E^Z)it=Wr(it,xt),E?(Qt=0,it=xr(it,xt,Wt)):(Qt=1,it=xr(it,xt,Wt),it=Wr(it,xt));else if(O&&E&&!T&&Z)Qt=1,it=xr(it,xt,Wt),it=Wr(it,xt);else if(!O&&!T&&E^Z){var jt=se;E?(Qt=1,it=xr(it,xt,Wt),Qt=0,se=!1,it=xr(it,xt,Wt),se=jt):(Qt=0,it=xr(it,xt,Wt),it=Wr(it,xt),Qt=1,se=!1,it=xr(it,xt,Wt),se=jt,it=Wr(it,xt))}}else Qt=0,it=xr(it,xt,Wt);else Qt=E?1:0,it=xr(it,xt,Wt);return it},this.__bidiEngine__.setOptions=function(it){it&&(O=it.isInputVisual,T=it.isOutputVisual,E=it.isInputRtl,Z=it.isOutputRtl,se=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 u=l.text;l.x,l.y;var g=l.options||{};l.mutex,g.lang;var O=[];if(g.isInputVisual=typeof g.isInputVisual!="boolean"||g.isInputVisual,a.setOptions(g),Object.prototype.toString.call(u)==="[object Array]"){var E=0;for(O=[],E=0;E<u.length;E+=1)Object.prototype.toString.call(u[E])==="[object Array]"?O.push([a.doBidiReorder(u[E][0]),u[E][1],u[E][2]]):O.push([a.doBidiReorder(u[E])]);l.text=O}else l.text=a.doBidiReorder(u);a.setOptions({isInputVisual:!0})}])}(da),da.API.TTFFont=function(){function n(o){var a;if(this.rawData=o,a=this.contents=new Ah(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 Am(this),this.cmap=new um(this),this.toUnicode={},this.hhea=new Sg(this),this.maxp=new r1(this),this.hmtx=new _l(this),this.post=new pA(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,u,g;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var O,E,T,Z;for(Z=[],O=0,E=(T=this.bbox).length;O<E;O++)o=T[O],Z.push(Math.round(o*this.scaleFactor));return Z}.call(this),this.stemV=0,this.post.exists?(l=255&(u=this.post.italic_angle),32768&(a=u>>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=(g=this.familyClass)===1||g===2||g===3||g===4||g===5||g===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 u,g,O,E;for(O=0,g=0,E=(o=""+o).length;0<=E?g<E:g>E;g=0<=E?++g:--g)u=o.charCodeAt(g),O+=this.widthOfGlyph(this.characterToGlyph(u))+l*(1e3/a)||0;return O*(a/1e3)},n.prototype.lineHeight=function(o,a){var l;return a==null&&(a=!1),l=a?this.lineGap:0,(this.ascender+l-this.decender)/1e3*o},n}();var Lu,Ah=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,u;for(u=[],a=0,l=o.length;0<=l?a<l:a>l;a=0<=l?++a:--a)u.push(this.writeByte(o.charCodeAt(a)));return u},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(o){return this.writeInt16(o)},n.prototype.readLongLong=function(){var o,a,l,u,g,O,E,T;return o=this.readByte(),a=this.readByte(),l=this.readByte(),u=this.readByte(),g=this.readByte(),O=this.readByte(),E=this.readByte(),T=this.readByte(),128&o?-1*(72057594037927940*(255^o)+281474976710656*(255^a)+1099511627776*(255^l)+4294967296*(255^u)+16777216*(255^g)+65536*(255^O)+256*(255^E)+(255^T)+1):72057594037927940*o+281474976710656*a+1099511627776*l+4294967296*u+16777216*g+65536*O+256*E+T},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,u,g;for(g=[],l=0,u=o.length;l<u;l++)a=o[l],g.push(this.writeByte(a));return g},n}(),Yg=function(){var n;function o(a){var l,u,g;for(this.scalarType=a.readInt(),this.tableCount=a.readShort(),this.searchRange=a.readShort(),this.entrySelector=a.readShort(),this.rangeShift=a.readShort(),this.tables={},u=0,g=this.tableCount;0<=g?u<g:u>g;u=0<=g?++u:--u)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,u,g,O,E,T,Z,se,Re,Ze,ae,mt,At;for(At in ae=Object.keys(a).length,T=Math.log(2),Re=16*Math.floor(Math.log(ae)/T),O=Math.floor(Re/T),se=16*ae-Re,(u=new Ah).writeInt(this.scalarType),u.writeShort(ae),u.writeShort(Re),u.writeShort(O),u.writeShort(se),g=16*ae,Z=u.pos+g,E=null,mt=[],a)for(Ze=a[At],u.writeString(At),u.writeInt(n(Ze)),u.writeInt(Z),u.writeInt(Ze.length),mt=mt.concat(Ze),At==="head"&&(E=Z),Z+=Ze.length;Z%4;)mt.push(0),Z++;return u.write(mt),l=2981146554-n(u.data),u.pos=E+8,u.writeUInt32(l),u.data},n=function(a){var l,u,g,O;for(a=Eg.call(a);a.length%4;)a.push(0);for(g=new Ah(a),u=0,l=0,O=a.length;l<O;l=l+=4)u+=g.readUInt32();return 4294967295&u},o}(),qg={}.hasOwnProperty,hA=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};Lu=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 hA(n,Lu),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 Ah).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,u,g,O,E,T,Z,se,Re,Ze,ae,mt,At,wt,st,Gt,Qt;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(T=0;T<256;++T)this.codeMap[T]=o.readByte();break;case 4:for(ae=o.readUInt16(),Ze=ae/2,o.pos+=6,g=function(){var Ft,Ir;for(Ir=[],T=Ft=0;0<=Ze?Ft<Ze:Ft>Ze;T=0<=Ze?++Ft:--Ft)Ir.push(o.readUInt16());return Ir}(),o.pos+=2,At=function(){var Ft,Ir;for(Ir=[],T=Ft=0;0<=Ze?Ft<Ze:Ft>Ze;T=0<=Ze?++Ft:--Ft)Ir.push(o.readUInt16());return Ir}(),Z=function(){var Ft,Ir;for(Ir=[],T=Ft=0;0<=Ze?Ft<Ze:Ft>Ze;T=0<=Ze?++Ft:--Ft)Ir.push(o.readUInt16());return Ir}(),se=function(){var Ft,Ir;for(Ir=[],T=Ft=0;0<=Ze?Ft<Ze:Ft>Ze;T=0<=Ze?++Ft:--Ft)Ir.push(o.readUInt16());return Ir}(),u=(this.length-o.pos+this.offset)/2,E=function(){var Ft,Ir;for(Ir=[],T=Ft=0;0<=u?Ft<u:Ft>u;T=0<=u?++Ft:--Ft)Ir.push(o.readUInt16());return Ir}(),T=st=0,Qt=g.length;st<Qt;T=++st)for(wt=g[T],l=Gt=mt=At[T];mt<=wt?Gt<=wt:Gt>=wt;l=mt<=wt?++Gt:--Gt)se[T]===0?O=l+Z[T]:(O=E[se[T]/2+(l-mt)-(Ze-T)]||0)!==0&&(O+=Z[T]),this.codeMap[l]=65535&O}o.pos=Re}return n.encode=function(o,a){var l,u,g,O,E,T,Z,se,Re,Ze,ae,mt,At,wt,st,Gt,Qt,Ft,Ir,rn,Wr,or,Lt,xr,it,xt,Wt,jt,Tr,Zr,Jr,Mr,Gr,Zn,Sn,tt,It,Nt,qt,Ar,Er,Kr,$r,mn,jn,gi;switch(jt=new Ah,O=Object.keys(o).sort(function(Ci,Sa){return Ci-Sa}),a){case"macroman":for(At=0,wt=function(){var Ci=[];for(mt=0;mt<256;++mt)Ci.push(0);return Ci}(),Gt={0:0},g={},Tr=0,Gr=O.length;Tr<Gr;Tr++)Gt[$r=o[u=O[Tr]]]==null&&(Gt[$r]=++At),g[u]={old:o[u],new:Gt[o[u]]},wt[u]=Gt[o[u]];return jt.writeUInt16(1),jt.writeUInt16(0),jt.writeUInt32(12),jt.writeUInt16(0),jt.writeUInt16(262),jt.writeUInt16(0),jt.write(wt),{charMap:g,subtable:jt.data,maxGlyphID:At+1};case"unicode":for(xt=[],Re=[],Qt=0,Gt={},l={},st=Z=null,Zr=0,Zn=O.length;Zr<Zn;Zr++)Gt[Ir=o[u=O[Zr]]]==null&&(Gt[Ir]=++Qt),l[u]={old:Ir,new:Gt[Ir]},E=Gt[Ir]-u,st!=null&&E===Z||(st&&Re.push(st),xt.push(u),Z=E),st=u;for(st&&Re.push(st),Re.push(65535),xt.push(65535),xr=2*(Lt=xt.length),or=2*Math.pow(Math.log(Lt)/Math.LN2,2),Ze=Math.log(or/2)/Math.LN2,Wr=2*Lt-or,T=[],rn=[],ae=[],mt=Jr=0,Sn=xt.length;Jr<Sn;mt=++Jr){if(it=xt[mt],se=Re[mt],it===65535){T.push(0),rn.push(0);break}if(it-(Wt=l[it].new)>=32768)for(T.push(0),rn.push(2*(ae.length+Lt-mt)),u=Mr=it;it<=se?Mr<=se:Mr>=se;u=it<=se?++Mr:--Mr)ae.push(l[u].new);else T.push(Wt-it),rn.push(0)}for(jt.writeUInt16(3),jt.writeUInt16(1),jt.writeUInt32(12),jt.writeUInt16(4),jt.writeUInt16(16+8*Lt+2*ae.length),jt.writeUInt16(0),jt.writeUInt16(xr),jt.writeUInt16(or),jt.writeUInt16(Ze),jt.writeUInt16(Wr),Er=0,tt=Re.length;Er<tt;Er++)u=Re[Er],jt.writeUInt16(u);for(jt.writeUInt16(0),Kr=0,It=xt.length;Kr<It;Kr++)u=xt[Kr],jt.writeUInt16(u);for(mn=0,Nt=T.length;mn<Nt;mn++)E=T[mn],jt.writeUInt16(E);for(jn=0,qt=rn.length;jn<qt;jn++)Ft=rn[jn],jt.writeUInt16(Ft);for(gi=0,Ar=ae.length;gi<Ar;gi++)At=ae[gi],jt.writeUInt16(At);return{charMap:l,subtable:jt.data,maxGlyphID:Qt+1}}},n}(),um=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hA(n,Lu),n.prototype.tag="cmap",n.prototype.parse=function(o){var a,l,u;for(o.pos=this.offset,this.version=o.readUInt16(),u=o.readUInt16(),this.tables=[],this.unicode=null,l=0;0<=u?l<u:l>u;l=0<=u?++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,u;return a==null&&(a="macroman"),l=eg.encode(o,a),(u=new Ah).writeUInt16(0),u.writeUInt16(1),l.table=u.data.concat(l.subtable),l},n}(),Sg=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hA(n,Lu),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 hA(n,Lu),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}(),pA=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hA(n,Lu),n.prototype.tag="post",n.prototype.parse=function(o){var a,l,u;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 g;for(l=o.readUInt16(),this.glyphNameIndex=[],g=0;0<=l?g<l:g>l;g=0<=l?++g:--g)this.glyphNameIndex.push(o.readUInt16());for(this.names=[],u=[];o.pos<this.offset+this.length;)a=o.readByte(),u.push(this.names.push(o.readString(a)));return u;case 151552:return l=o.readUInt16(),this.offsets=o.read(l);case 262144:return this.map=function(){var O,E,T;for(T=[],g=O=0,E=this.file.maxp.numGlyphs;0<=E?O<E:O>E;g=0<=E?++O:--O)T.push(o.readUInt32());return T}.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},Am=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hA(n,Lu),n.prototype.tag="name",n.prototype.parse=function(o){var a,l,u,g,O,E,T,Z,se,Re,Ze;for(o.pos=this.offset,o.readShort(),a=o.readShort(),E=o.readShort(),l=[],g=0;0<=a?g<a:g>a;g=0<=a?++g:--g)l.push({platformID:o.readShort(),encodingID:o.readShort(),languageID:o.readShort(),nameID:o.readShort(),length:o.readShort(),offset:this.offset+E+o.readShort()});for(T={},g=se=0,Re=l.length;se<Re;g=++se)u=l[g],o.pos=u.offset,Z=o.readString(u.length),O=new t1(Z,u),T[Ze=u.nameID]==null&&(T[Ze]=[]),T[u.nameID].push(O);this.strings=T,this.copyright=T[0],this.fontFamily=T[1],this.fontSubfamily=T[2],this.uniqueSubfamily=T[3],this.fontName=T[4],this.version=T[5];try{this.postscriptName=T[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(ae){this.postscriptName=T[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=T[7],this.manufacturer=T[8],this.designer=T[9],this.description=T[10],this.vendorUrl=T[11],this.designerUrl=T[12],this.license=T[13],this.licenseUrl=T[14],this.preferredFamily=T[15],this.preferredSubfamily=T[17],this.compatibleFull=T[18],this.sampleText=T[19]},n}(),r1=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hA(n,Lu),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}(),_l=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return hA(n,Lu),n.prototype.tag="hmtx",n.prototype.parse=function(o){var a,l,u,g,O,E,T;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(u=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var Z,se;for(se=[],a=Z=0;0<=u?Z<u:Z>u;a=0<=u?++Z:--Z)se.push(o.readInt16());return se}(),this.widths=function(){var Z,se,Re,Ze;for(Ze=[],Z=0,se=(Re=this.metrics).length;Z<se;Z++)g=Re[Z],Ze.push(g.advance);return Ze}.call(this),l=this.widths[this.widths.length-1],T=[],a=O=0;0<=u?O<u:O>u;a=0<=u?++O:--O)T.push(this.widths.push(l));return T},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 hA(n,Lu),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(o){var a,l,u,g,O,E,T,Z,se,Re;return o in this.cache?this.cache[o]:(g=this.file.loca,a=this.file.contents,l=g.indexOf(o),(u=g.lengthOf(o))===0?this.cache[o]=null:(a.pos=this.offset+l,O=(E=new Ah(a.read(u))).readShort(),Z=E.readShort(),Re=E.readShort(),T=E.readShort(),se=E.readShort(),this.cache[o]=O===-1?new dm(E,Z,Re,T,se):new $h(E,O,Z,Re,T,se),this.cache[o]))},n.prototype.encode=function(o,a,l){var u,g,O,E,T;for(O=[],g=[],E=0,T=a.length;E<T;E++)u=o[a[E]],g.push(O.length),u&&(O=O.concat(u.encode(l)));return g.push(O.length),{table:O,offsets:g}},n}(),$h=function(){function n(o,a,l,u,g,O){this.raw=o,this.numberOfContours=a,this.xMin=l,this.yMin=u,this.xMax=g,this.yMax=O,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n}(),dm=function(){function n(o,a,l,u,g){var O,E;for(this.raw=o,this.xMin=a,this.yMin=l,this.xMax=u,this.yMax=g,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],O=this.raw;E=O.readShort(),this.glyphOffsets.push(O.pos),this.glyphIDs.push(O.readUInt16()),32&E;)O.pos+=1&E?4:2,128&E?O.pos+=8:64&E?O.pos+=4:8&E&&(O.pos+=2)}return n.prototype.encode=function(){var o,a,l;for(a=new Ah(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 hA(n,Lu),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 u,g;for(g=[],l=0,u=this.length;l<u;l+=2)g.push(2*o.readUInt16());return g}.call(this):function(){var u,g;for(g=[],l=0,u=this.length;l<u;l+=4)g.push(o.readUInt32());return g}.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),u=0,g=0,O=0;O<l.length;++O)if(l[O]=u,g<a.length&&a[g]==O){++g,l[O]=u;var E=this.offsets[O],T=this.offsets[O+1]-E;T>0&&(u+=T)}for(var Z=new Array(4*l.length),se=0;se<l.length;++se)Z[4*se+3]=255&l[se],Z[4*se+2]=(65280&l[se])>>8,Z[4*se+1]=(16711680&l[se])>>16,Z[4*se]=(4278190080&l[se])>>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,u,g;for(a in u=this.font.cmap.tables[0].codeMap,o={},g=this.subset)l=g[a],o[a]=u[l];return o},n.prototype.glyphsFor=function(o){var a,l,u,g,O,E,T;for(u={},O=0,E=o.length;O<E;O++)u[g=o[O]]=this.font.glyf.glyphFor(g);for(g in a=[],u)(l=u[g])!=null&&l.compound&&a.push.apply(a,l.glyphIDs);if(a.length>0)for(g in T=this.glyphsFor(a))l=T[g],u[g]=l;return u},n.prototype.encode=function(o,a){var l,u,g,O,E,T,Z,se,Re,Ze,ae,mt,At,wt,st;for(u in l=um.encode(this.generateCmap(),"unicode"),O=this.glyphsFor(o),ae={0:0},st=l.charMap)ae[(T=st[u]).old]=T.new;for(mt in Ze=l.maxGlyphID,O)mt in ae||(ae[mt]=Ze++);return se=function(Gt){var Qt,Ft;for(Qt in Ft={},Gt)Ft[Gt[Qt]]=Qt;return Ft}(ae),Re=Object.keys(se).sort(function(Gt,Qt){return Gt-Qt}),At=function(){var Gt,Qt,Ft;for(Ft=[],Gt=0,Qt=Re.length;Gt<Qt;Gt++)E=Re[Gt],Ft.push(se[E]);return Ft}(),g=this.font.glyf.encode(O,At,ae),Z=this.font.loca.encode(g.offsets,At),wt={cmap:this.font.cmap.raw(),glyf:g.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&&(wt["OS/2"]=this.font.os2.raw()),this.font.directory.encode(wt)},n}();da.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,u,g,O;if(Array.isArray(a))return"["+function(){var E,T,Z;for(Z=[],E=0,T=a.length;E<T;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(u in g=["<<"],a)O=a[u],g.push("/"+u+" "+o.convert(O));return g.push(">>"),g.join(`
`)}return""+a},o}()},86129:function(un,Ut,x){var me=x(19208).lW,Ae=x(97671);(function(P){un.exports=P()})(function(){return function P(Oe,ne,W){function S(h,$){if(!ne[h]){if(!Oe[h]){var _=void 0;if(!$&&_)return require(h,!0);if(v)return v(h,!0);var F=new Error("Cannot find module '"+h+"'");throw F.code="MODULE_NOT_FOUND",F}var N=ne[h]={exports:{}};Oe[h][0].call(N.exports,function(R){var L=Oe[h][1][R];return S(L||R)},N,N.exports,P,Oe,ne,W)}return ne[h].exports}for(var v=void 0,M=0;M<W.length;M++)S(W[M]);return S}({1:[function(P,Oe,ne){"use strict";var W=P("./utils"),S=P("./support"),v="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";ne.encode=function(M){for(var h,$,_,F,N,R,L,X=[],Q=0,oe=M.length,ee=oe,re=W.getTypeOf(M)!=="string";Q<M.length;)ee=oe-Q,_=re?(h=M[Q++],$=Q<oe?M[Q++]:0,Q<oe?M[Q++]:0):(h=M.charCodeAt(Q++),$=Q<oe?M.charCodeAt(Q++):0,Q<oe?M.charCodeAt(Q++):0),F=h>>2,N=(3&h)<<4|$>>4,R=1<ee?(15&$)<<2|_>>6:64,L=2<ee?63&_:64,X.push(v.charAt(F)+v.charAt(N)+v.charAt(R)+v.charAt(L));return X.join("")},ne.decode=function(M){var h,$,_,F,N,R,L=0,X=0,Q="data:";if(M.substr(0,Q.length)===Q)throw new Error("Invalid base64 input, it looks like a data url.");var oe,ee=3*(M=M.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(M.charAt(M.length-1)===v.charAt(64)&&ee--,M.charAt(M.length-2)===v.charAt(64)&&ee--,ee%1!=0)throw new Error("Invalid base64 input, bad content length.");for(oe=S.uint8array?new Uint8Array(0|ee):new Array(0|ee);L<M.length;)h=v.indexOf(M.charAt(L++))<<2|(F=v.indexOf(M.charAt(L++)))>>4,$=(15&F)<<4|(N=v.indexOf(M.charAt(L++)))>>2,_=(3&N)<<6|(R=v.indexOf(M.charAt(L++))),oe[X++]=h,N!==64&&(oe[X++]=$),R!==64&&(oe[X++]=_);return oe}},{"./support":30,"./utils":32}],2:[function(P,Oe,ne){"use strict";var W=P("./external"),S=P("./stream/DataWorker"),v=P("./stream/Crc32Probe"),M=P("./stream/DataLengthProbe");function h($,_,F,N,R){this.compressedSize=$,this.uncompressedSize=_,this.crc32=F,this.compression=N,this.compressedContent=R}h.prototype={getContentWorker:function(){var $=new S(W.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new M("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(W.Promise.resolve(this.compressedContent)).withStreamInfo("compressedSize",this.compressedSize).withStreamInfo("uncompressedSize",this.uncompressedSize).withStreamInfo("crc32",this.crc32).withStreamInfo("compression",this.compression)}},h.createWorkerFrom=function($,_,F){return $.pipe(new v).pipe(new M("uncompressedSize")).pipe(_.compressWorker(F)).pipe(new M("compressedSize")).withStreamInfo("compression",_)},Oe.exports=h},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(P,Oe,ne){"use strict";var W=P("./stream/GenericWorker");ne.STORE={magic:"\0\0",compressWorker:function(){return new W("STORE compression")},uncompressWorker:function(){return new W("STORE decompression")}},ne.DEFLATE=P("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(P,Oe,ne){"use strict";var W=P("./utils"),S=function(){for(var v,M=[],h=0;h<256;h++){v=h;for(var $=0;$<8;$++)v=1&v?3988292384^v>>>1:v>>>1;M[h]=v}return M}();Oe.exports=function(v,M){return v!==void 0&&v.length?W.getTypeOf(v)!=="string"?function(h,$,_,F){var N=S,R=F+_;h^=-1;for(var L=F;L<R;L++)h=h>>>8^N[255&(h^$[L])];return-1^h}(0|M,v,v.length,0):function(h,$,_,F){var N=S,R=F+_;h^=-1;for(var L=F;L<R;L++)h=h>>>8^N[255&(h^$.charCodeAt(L))];return-1^h}(0|M,v,v.length,0):0}},{"./utils":32}],5:[function(P,Oe,ne){"use strict";ne.base64=!1,ne.binary=!1,ne.dir=!1,ne.createFolders=!0,ne.date=null,ne.compression=null,ne.compressionOptions=null,ne.comment=null,ne.unixPermissions=null,ne.dosPermissions=null},{}],6:[function(P,Oe,ne){"use strict";var W=null;W=typeof Promise!="undefined"?Promise:P("lie"),Oe.exports={Promise:W}},{lie:37}],7:[function(P,Oe,ne){"use strict";var W=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",S=P("pako"),v=P("./utils"),M=P("./stream/GenericWorker"),h=W?"uint8array":"array";function $(_,F){M.call(this,"FlateWorker/"+_),this._pako=null,this._pakoAction=_,this._pakoOptions=F,this.meta={}}ne.magic="\b\0",v.inherits($,M),$.prototype.processChunk=function(_){this.meta=_.meta,this._pako===null&&this._createPako(),this._pako.push(v.transformTo(h,_.data),!1)},$.prototype.flush=function(){M.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},$.prototype.cleanUp=function(){M.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(F){_.push({data:F,meta:_.meta})}},ne.compressWorker=function(_){return new $("Deflate",_)},ne.uncompressWorker=function(){return new $("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(P,Oe,ne){"use strict";function W(N,R){var L,X="";for(L=0;L<R;L++)X+=String.fromCharCode(255&N),N>>>=8;return X}function S(N,R,L,X,Q,oe){var ee,re,G=N.file,K=N.compression,le=oe!==h.utf8encode,be=v.transformTo("string",oe(G.name)),Ne=v.transformTo("string",h.utf8encode(G.name)),ye=G.comment,Ue=v.transformTo("string",oe(ye)),q=v.transformTo("string",h.utf8encode(ye)),de=Ne.length!==G.name.length,D=q.length!==ye.length,qe="",Me="",xe="",Te=G.dir,ve=G.date,De={crc32:0,compressedSize:0,uncompressedSize:0};R&&!L||(De.crc32=N.crc32,De.compressedSize=N.compressedSize,De.uncompressedSize=N.uncompressedSize);var pe=0;R&&(pe|=8),le||!de&&!D||(pe|=2048);var Se=0,Xe=0;Te&&(Se|=16),Q==="UNIX"?(Xe=798,Se|=function(je,Ye){var _t=je;return je||(_t=Ye?16893:33204),(65535&_t)<<16}(G.unixPermissions,Te)):(Xe=20,Se|=function(je){return 63&(je||0)}(G.dosPermissions)),ee=ve.getUTCHours(),ee<<=6,ee|=ve.getUTCMinutes(),ee<<=5,ee|=ve.getUTCSeconds()/2,re=ve.getUTCFullYear()-1980,re<<=4,re|=ve.getUTCMonth()+1,re<<=5,re|=ve.getUTCDate(),de&&(Me=W(1,1)+W($(be),4)+Ne,qe+="up"+W(Me.length,2)+Me),D&&(xe=W(1,1)+W($(Ue),4)+q,qe+="uc"+W(xe.length,2)+xe);var et="";return et+=`
\0`,et+=W(pe,2),et+=K.magic,et+=W(ee,2),et+=W(re,2),et+=W(De.crc32,4),et+=W(De.compressedSize,4),et+=W(De.uncompressedSize,4),et+=W(be.length,2),et+=W(qe.length,2),{fileRecord:_.LOCAL_FILE_HEADER+et+be+qe,dirRecord:_.CENTRAL_FILE_HEADER+W(Xe,2)+et+W(Ue.length,2)+"\0\0\0\0"+W(Se,4)+W(X,4)+be+qe+Ue}}var v=P("../utils"),M=P("../stream/GenericWorker"),h=P("../utf8"),$=P("../crc32"),_=P("../signature");function F(N,R,L,X){M.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=R,this.zipPlatform=L,this.encodeFileName=X,this.streamFiles=N,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}v.inherits(F,M),F.prototype.push=function(N){var R=N.meta.percent||0,L=this.entriesCount,X=this._sources.length;this.accumulate?this.contentBuffer.push(N):(this.bytesWritten+=N.data.length,M.prototype.push.call(this,{data:N.data,meta:{currentFile:this.currentFile,percent:L?(R+100*(L-X-1))/L:100}}))},F.prototype.openedSource=function(N){this.currentSourceOffset=this.bytesWritten,this.currentFile=N.file.name;var R=this.streamFiles&&!N.file.dir;if(R){var L=S(N,R,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:L.fileRecord,meta:{percent:0}})}else this.accumulate=!0},F.prototype.closedSource=function(N){this.accumulate=!1;var R=this.streamFiles&&!N.file.dir,L=S(N,R,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(L.dirRecord),R)this.push({data:function(X){return _.DATA_DESCRIPTOR+W(X.crc32,4)+W(X.compressedSize,4)+W(X.uncompressedSize,4)}(N),meta:{percent:100}});else for(this.push({data:L.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},F.prototype.flush=function(){for(var N=this.bytesWritten,R=0;R<this.dirRecords.length;R++)this.push({data:this.dirRecords[R],meta:{percent:100}});var L=this.bytesWritten-N,X=function(Q,oe,ee,re,G){var K=v.transformTo("string",G(re));return _.CENTRAL_DIRECTORY_END+"\0\0\0\0"+W(Q,2)+W(Q,2)+W(oe,4)+W(ee,4)+W(K.length,2)+K}(this.dirRecords.length,L,N,this.zipComment,this.encodeFileName);this.push({data:X,meta:{percent:100}})},F.prototype.prepareNextSource=function(){this.previous=this._sources.shift(),this.openedSource(this.previous.streamInfo),this.isPaused?this.previous.pause():this.previous.resume()},F.prototype.registerPrevious=function(N){this._sources.push(N);var R=this;return N.on("data",function(L){R.processChunk(L)}),N.on("end",function(){R.closedSource(R.previous.streamInfo),R._sources.length?R.prepareNextSource():R.end()}),N.on("error",function(L){R.error(L)}),this},F.prototype.resume=function(){return!!M.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},F.prototype.error=function(N){var R=this._sources;if(!M.prototype.error.call(this,N))return!1;for(var L=0;L<R.length;L++)try{R[L].error(N)}catch(X){}return!0},F.prototype.lock=function(){M.prototype.lock.call(this);for(var N=this._sources,R=0;R<N.length;R++)N[R].lock()},Oe.exports=F},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(P,Oe,ne){"use strict";var W=P("../compressions"),S=P("./ZipFileWorker");ne.generateWorker=function(v,M,h){var $=new S(M.streamFiles,h,M.platform,M.encodeFileName),_=0;try{v.forEach(function(F,N){_++;var R=function(oe,ee){var re=oe||ee,G=W[re];if(!G)throw new Error(re+" is not a valid compression method !");return G}(N.options.compression,M.compression),L=N.options.compressionOptions||M.compressionOptions||{},X=N.dir,Q=N.date;N._compressWorker(R,L).withStreamInfo("file",{name:F,dir:X,date:Q,comment:N.comment||"",unixPermissions:N.unixPermissions,dosPermissions:N.dosPermissions}).pipe($)}),$.entriesCount=_}catch(F){$.error(F)}return $}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(P,Oe,ne){"use strict";function W(){if(!(this instanceof W))return new W;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 W;for(var v in this)typeof this[v]!="function"&&(S[v]=this[v]);return S}}(W.prototype=P("./object")).loadAsync=P("./load"),W.support=P("./support"),W.defaults=P("./defaults"),W.version="3.10.1",W.loadAsync=function(S,v){return new W().loadAsync(S,v)},W.external=P("./external"),Oe.exports=W},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(P,Oe,ne){"use strict";var W=P("./utils"),S=P("./external"),v=P("./utf8"),M=P("./zipEntries"),h=P("./stream/Crc32Probe"),$=P("./nodejsUtils");function _(F){return new S.Promise(function(N,R){var L=F.decompressed.getContentWorker().pipe(new h);L.on("error",function(X){R(X)}).on("end",function(){L.streamInfo.crc32!==F.decompressed.crc32?R(new Error("Corrupted zip : CRC32 mismatch")):N()}).resume()})}Oe.exports=function(F,N){var R=this;return N=W.extend(N||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:v.utf8decode}),$.isNode&&$.isStream(F)?S.Promise.reject(new Error("JSZip can't accept a stream when loading a zip file.")):W.prepareContent("the loaded zip file",F,!0,N.optimizedBinaryString,N.base64).then(function(L){var X=new M(N);return X.load(L),X}).then(function(L){var X=[S.Promise.resolve(L)],Q=L.files;if(N.checkCRC32)for(var oe=0;oe<Q.length;oe++)X.push(_(Q[oe]));return S.Promise.all(X)}).then(function(L){for(var X=L.shift(),Q=X.files,oe=0;oe<Q.length;oe++){var ee=Q[oe],re=ee.fileNameStr,G=W.resolve(ee.fileNameStr);R.file(G,ee.decompressed,{binary:!0,optimizedBinaryString:!0,date:ee.date,dir:ee.dir,comment:ee.fileCommentStr.length?ee.fileCommentStr:null,unixPermissions:ee.unixPermissions,dosPermissions:ee.dosPermissions,createFolders:N.createFolders}),ee.dir||(R.file(G).unsafeOriginalName=re)}return X.zipComment.length&&(R.comment=X.zipComment),R})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(P,Oe,ne){"use strict";var W=P("../utils"),S=P("../stream/GenericWorker");function v(M,h){S.call(this,"Nodejs stream input adapter for "+M),this._upstreamEnded=!1,this._bindStream(h)}W.inherits(v,S),v.prototype._bindStream=function(M){var h=this;(this._stream=M).pause(),M.on("data",function($){h.push({data:$,meta:{percent:0}})}).on("error",function($){h.isPaused?this.generatedError=$:h.error($)}).on("end",function(){h.isPaused?h._upstreamEnded=!0:h.end()})},v.prototype.pause=function(){return!!S.prototype.pause.call(this)&&(this._stream.pause(),!0)},v.prototype.resume=function(){return!!S.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},Oe.exports=v},{"../stream/GenericWorker":28,"../utils":32}],13:[function(P,Oe,ne){"use strict";var W=P("readable-stream").Readable;function S(v,M,h){W.call(this,M),this._helper=v;var $=this;v.on("data",function(_,F){$.push(_)||$._helper.pause(),h&&h(F)}).on("error",function(_){$.emit("error",_)}).on("end",function(){$.push(null)})}P("../utils").inherits(S,W),S.prototype._read=function(){this._helper.resume()},Oe.exports=S},{"../utils":32,"readable-stream":16}],14:[function(P,Oe,ne){"use strict";Oe.exports={isNode:typeof me!="undefined",newBufferFrom:function(W,S){if(me.from&&me.from!==Uint8Array.from)return me.from(W,S);if(typeof W=="number")throw new Error('The "data" argument must not be a number');return new me(W,S)},allocBuffer:function(W){if(me.alloc)return me.alloc(W);var S=new me(W);return S.fill(0),S},isBuffer:function(W){return me.isBuffer(W)},isStream:function(W){return W&&typeof W.on=="function"&&typeof W.pause=="function"&&typeof W.resume=="function"}}},{}],15:[function(P,Oe,ne){"use strict";function W(G,K,le){var be,Ne=v.getTypeOf(K),ye=v.extend(le||{},$);ye.date=ye.date||new Date,ye.compression!==null&&(ye.compression=ye.compression.toUpperCase()),typeof ye.unixPermissions=="string"&&(ye.unixPermissions=parseInt(ye.unixPermissions,8)),ye.unixPermissions&&16384&ye.unixPermissions&&(ye.dir=!0),ye.dosPermissions&&16&ye.dosPermissions&&(ye.dir=!0),ye.dir&&(G=Q(G)),ye.createFolders&&(be=X(G))&&oe.call(this,be,!0);var Ue=Ne==="string"&&ye.binary===!1&&ye.base64===!1;le&&le.binary!==void 0||(ye.binary=!Ue),(K instanceof _&&K.uncompressedSize===0||ye.dir||!K||K.length===0)&&(ye.base64=!1,ye.binary=!0,K="",ye.compression="STORE",Ne="string");var q=null;q=K instanceof _||K instanceof M?K:R.isNode&&R.isStream(K)?new L(G,K):v.prepareContent(G,K,ye.binary,ye.optimizedBinaryString,ye.base64);var de=new F(G,q,ye);this.files[G]=de}var S=P("./utf8"),v=P("./utils"),M=P("./stream/GenericWorker"),h=P("./stream/StreamHelper"),$=P("./defaults"),_=P("./compressedObject"),F=P("./zipObject"),N=P("./generate"),R=P("./nodejsUtils"),L=P("./nodejs/NodejsStreamInputAdapter"),X=function(G){G.slice(-1)==="/"&&(G=G.substring(0,G.length-1));var K=G.lastIndexOf("/");return 0<K?G.substring(0,K):""},Q=function(G){return G.slice(-1)!=="/"&&(G+="/"),G},oe=function(G,K){return K=K!==void 0?K:$.createFolders,G=Q(G),this.files[G]||W.call(this,G,null,{dir:!0,createFolders:K}),this.files[G]};function ee(G){return Object.prototype.toString.call(G)==="[object RegExp]"}var re={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(G){var K,le,be;for(K in this.files)be=this.files[K],(le=K.slice(this.root.length,K.length))&&K.slice(0,this.root.length)===this.root&&G(le,be)},filter:function(G){var K=[];return this.forEach(function(le,be){G(le,be)&&K.push(be)}),K},file:function(G,K,le){if(arguments.length!==1)return G=this.root+G,W.call(this,G,K,le),this;if(ee(G)){var be=G;return this.filter(function(ye,Ue){return!Ue.dir&&be.test(ye)})}var Ne=this.files[this.root+G];return Ne&&!Ne.dir?Ne:null},folder:function(G){if(!G)return this;if(ee(G))return this.filter(function(Ne,ye){return ye.dir&&G.test(Ne)});var K=this.root+G,le=oe.call(this,K),be=this.clone();return be.root=le.name,be},remove:function(G){G=this.root+G;var K=this.files[G];if(K||(G.slice(-1)!=="/"&&(G+="/"),K=this.files[G]),K&&!K.dir)delete this.files[G];else for(var le=this.filter(function(Ne,ye){return ye.name.slice(0,G.length)===G}),be=0;be<le.length;be++)delete this.files[le[be].name];return this},generate:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},generateInternalStream:function(G){var K,le={};try{if((le=v.extend(G||{},{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.");v.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 be=le.comment||this.comment||"";K=N.generateWorker(this,le,be)}catch(Ne){(K=new M("error")).error(Ne)}return new h(K,le.type||"string",le.mimeType)},generateAsync:function(G,K){return this.generateInternalStream(G).accumulate(K)},generateNodeStream:function(G,K){return(G=G||{}).type||(G.type="nodebuffer"),this.generateInternalStream(G).toNodejsStream(K)}};Oe.exports=re},{"./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,Oe,ne){"use strict";Oe.exports=P("stream")},{stream:void 0}],17:[function(P,Oe,ne){"use strict";var W=P("./DataReader");function S(v){W.call(this,v);for(var M=0;M<this.data.length;M++)v[M]=255&v[M]}P("../utils").inherits(S,W),S.prototype.byteAt=function(v){return this.data[this.zero+v]},S.prototype.lastIndexOfSignature=function(v){for(var M=v.charCodeAt(0),h=v.charCodeAt(1),$=v.charCodeAt(2),_=v.charCodeAt(3),F=this.length-4;0<=F;--F)if(this.data[F]===M&&this.data[F+1]===h&&this.data[F+2]===$&&this.data[F+3]===_)return F-this.zero;return-1},S.prototype.readAndCheckSignature=function(v){var M=v.charCodeAt(0),h=v.charCodeAt(1),$=v.charCodeAt(2),_=v.charCodeAt(3),F=this.readData(4);return M===F[0]&&h===F[1]&&$===F[2]&&_===F[3]},S.prototype.readData=function(v){if(this.checkOffset(v),v===0)return[];var M=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,M},Oe.exports=S},{"../utils":32,"./DataReader":18}],18:[function(P,Oe,ne){"use strict";var W=P("../utils");function S(v){this.data=v,this.length=v.length,this.index=0,this.zero=0}S.prototype={checkOffset:function(v){this.checkIndex(this.index+v)},checkIndex:function(v){if(this.length<this.zero+v||v<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+v+"). Corrupted zip ?")},setIndex:function(v){this.checkIndex(v),this.index=v},skip:function(v){this.setIndex(this.index+v)},byteAt:function(){},readInt:function(v){var M,h=0;for(this.checkOffset(v),M=this.index+v-1;M>=this.index;M--)h=(h<<8)+this.byteAt(M);return this.index+=v,h},readString:function(v){return W.transformTo("string",this.readData(v))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var v=this.readInt(4);return new Date(Date.UTC(1980+(v>>25&127),(v>>21&15)-1,v>>16&31,v>>11&31,v>>5&63,(31&v)<<1))}},Oe.exports=S},{"../utils":32}],19:[function(P,Oe,ne){"use strict";var W=P("./Uint8ArrayReader");function S(v){W.call(this,v)}P("../utils").inherits(S,W),S.prototype.readData=function(v){this.checkOffset(v);var M=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,M},Oe.exports=S},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(P,Oe,ne){"use strict";var W=P("./DataReader");function S(v){W.call(this,v)}P("../utils").inherits(S,W),S.prototype.byteAt=function(v){return this.data.charCodeAt(this.zero+v)},S.prototype.lastIndexOfSignature=function(v){return this.data.lastIndexOf(v)-this.zero},S.prototype.readAndCheckSignature=function(v){return v===this.readData(4)},S.prototype.readData=function(v){this.checkOffset(v);var M=this.data.slice(this.zero+this.index,this.zero+this.index+v);return this.index+=v,M},Oe.exports=S},{"../utils":32,"./DataReader":18}],21:[function(P,Oe,ne){"use strict";var W=P("./ArrayReader");function S(v){W.call(this,v)}P("../utils").inherits(S,W),S.prototype.readData=function(v){if(this.checkOffset(v),v===0)return new Uint8Array(0);var M=this.data.subarray(this.zero+this.index,this.zero+this.index+v);return this.index+=v,M},Oe.exports=S},{"../utils":32,"./ArrayReader":17}],22:[function(P,Oe,ne){"use strict";var W=P("../utils"),S=P("../support"),v=P("./ArrayReader"),M=P("./StringReader"),h=P("./NodeBufferReader"),$=P("./Uint8ArrayReader");Oe.exports=function(_){var F=W.getTypeOf(_);return W.checkSupport(F),F!=="string"||S.uint8array?F==="nodebuffer"?new h(_):S.uint8array?new $(W.transformTo("uint8array",_)):new v(W.transformTo("array",_)):new M(_)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(P,Oe,ne){"use strict";ne.LOCAL_FILE_HEADER="PK",ne.CENTRAL_FILE_HEADER="PK",ne.CENTRAL_DIRECTORY_END="PK",ne.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",ne.ZIP64_CENTRAL_DIRECTORY_END="PK",ne.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(P,Oe,ne){"use strict";var W=P("./GenericWorker"),S=P("../utils");function v(M){W.call(this,"ConvertWorker to "+M),this.destType=M}S.inherits(v,W),v.prototype.processChunk=function(M){this.push({data:S.transformTo(this.destType,M.data),meta:M.meta})},Oe.exports=v},{"../utils":32,"./GenericWorker":28}],25:[function(P,Oe,ne){"use strict";var W=P("./GenericWorker"),S=P("../crc32");function v(){W.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}P("../utils").inherits(v,W),v.prototype.processChunk=function(M){this.streamInfo.crc32=S(M.data,this.streamInfo.crc32||0),this.push(M)},Oe.exports=v},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(P,Oe,ne){"use strict";var W=P("../utils"),S=P("./GenericWorker");function v(M){S.call(this,"DataLengthProbe for "+M),this.propName=M,this.withStreamInfo(M,0)}W.inherits(v,S),v.prototype.processChunk=function(M){if(M){var h=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=h+M.data.length}S.prototype.processChunk.call(this,M)},Oe.exports=v},{"../utils":32,"./GenericWorker":28}],27:[function(P,Oe,ne){"use strict";var W=P("../utils"),S=P("./GenericWorker");function v(M){S.call(this,"DataWorker");var h=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,M.then(function($){h.dataIsReady=!0,h.data=$,h.max=$&&$.length||0,h.type=W.getTypeOf($),h.isPaused||h._tickAndRepeat()},function($){h.error($)})}W.inherits(v,S),v.prototype.cleanUp=function(){S.prototype.cleanUp.call(this),this.data=null},v.prototype.resume=function(){return!!S.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,W.delay(this._tickAndRepeat,[],this)),!0)},v.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(W.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},v.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var M=null,h=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":M=this.data.substring(this.index,h);break;case"uint8array":M=this.data.subarray(this.index,h);break;case"array":case"nodebuffer":M=this.data.slice(this.index,h)}return this.index=h,this.push({data:M,meta:{percent:this.max?this.index/this.max*100:0}})},Oe.exports=v},{"../utils":32,"./GenericWorker":28}],28:[function(P,Oe,ne){"use strict";function W(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}W.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,v){return this._listeners[S].push(v),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(S,v){if(this._listeners[S])for(var M=0;M<this._listeners[S].length;M++)this._listeners[S][M].call(this,v)},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 v=this;return S.on("data",function(M){v.processChunk(M)}),S.on("end",function(){v.end()}),S.on("error",function(M){v.error(M)}),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,v){return this.extraStreamInfo[S]=v,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}},Oe.exports=W},{}],29:[function(P,Oe,ne){"use strict";var W=P("../utils"),S=P("./ConvertWorker"),v=P("./GenericWorker"),M=P("../base64"),h=P("../support"),$=P("../external"),_=null;if(h.nodestream)try{_=P("../nodejs/NodejsStreamOutputAdapter")}catch(R){}function F(R,L){return new $.Promise(function(X,Q){var oe=[],ee=R._internalType,re=R._outputType,G=R._mimeType;R.on("data",function(K,le){oe.push(K),L&&L(le)}).on("error",function(K){oe=[],Q(K)}).on("end",function(){try{var K=function(le,be,Ne){switch(le){case"blob":return W.newBlob(W.transformTo("arraybuffer",be),Ne);case"base64":return M.encode(be);default:return W.transformTo(le,be)}}(re,function(le,be){var Ne,ye=0,Ue=null,q=0;for(Ne=0;Ne<be.length;Ne++)q+=be[Ne].length;switch(le){case"string":return be.join("");case"array":return Array.prototype.concat.apply([],be);case"uint8array":for(Ue=new Uint8Array(q),Ne=0;Ne<be.length;Ne++)Ue.set(be[Ne],ye),ye+=be[Ne].length;return Ue;case"nodebuffer":return me.concat(be);default:throw new Error("concat : unsupported type '"+le+"'")}}(ee,oe),G);X(K)}catch(le){Q(le)}oe=[]}).resume()})}function N(R,L,X){var Q=L;switch(L){case"blob":case"arraybuffer":Q="uint8array";break;case"base64":Q="string"}try{this._internalType=Q,this._outputType=L,this._mimeType=X,W.checkSupport(Q),this._worker=R.pipe(new S(Q)),R.lock()}catch(oe){this._worker=new v("error"),this._worker.error(oe)}}N.prototype={accumulate:function(R){return F(this,R)},on:function(R,L){var X=this;return R==="data"?this._worker.on(R,function(Q){L.call(X,Q.data,Q.meta)}):this._worker.on(R,function(){W.delay(L,arguments,X)}),this},resume:function(){return W.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(R){if(W.checkSupport("nodestream"),this._outputType!=="nodebuffer")throw new Error(this._outputType+" is not supported by this method");return new _(this,{objectMode:this._outputType!=="nodebuffer"},R)}},Oe.exports=N},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(P,Oe,ne){"use strict";if(ne.base64=!0,ne.array=!0,ne.string=!0,ne.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",ne.nodebuffer=typeof me!="undefined",ne.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")ne.blob=!1;else{var W=new ArrayBuffer(0);try{ne.blob=new Blob([W],{type:"application/zip"}).size===0}catch(v){try{var S=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);S.append(W),ne.blob=S.getBlob("application/zip").size===0}catch(M){ne.blob=!1}}}try{ne.nodestream=!!P("readable-stream").Readable}catch(v){ne.nodestream=!1}},{"readable-stream":16}],31:[function(P,Oe,ne){"use strict";for(var W=P("./utils"),S=P("./support"),v=P("./nodejsUtils"),M=P("./stream/GenericWorker"),h=new Array(256),$=0;$<256;$++)h[$]=252<=$?6:248<=$?5:240<=$?4:224<=$?3:192<=$?2:1;h[254]=h[254]=1;function _(){M.call(this,"utf-8 decode"),this.leftOver=null}function F(){M.call(this,"utf-8 encode")}ne.utf8encode=function(N){return S.nodebuffer?v.newBufferFrom(N,"utf-8"):function(R){var L,X,Q,oe,ee,re=R.length,G=0;for(oe=0;oe<re;oe++)(64512&(X=R.charCodeAt(oe)))==55296&&oe+1<re&&(64512&(Q=R.charCodeAt(oe+1)))==56320&&(X=65536+(X-55296<<10)+(Q-56320),oe++),G+=X<128?1:X<2048?2:X<65536?3:4;for(L=S.uint8array?new Uint8Array(G):new Array(G),oe=ee=0;ee<G;oe++)(64512&(X=R.charCodeAt(oe)))==55296&&oe+1<re&&(64512&(Q=R.charCodeAt(oe+1)))==56320&&(X=65536+(X-55296<<10)+(Q-56320),oe++),X<128?L[ee++]=X:(X<2048?L[ee++]=192|X>>>6:(X<65536?L[ee++]=224|X>>>12:(L[ee++]=240|X>>>18,L[ee++]=128|X>>>12&63),L[ee++]=128|X>>>6&63),L[ee++]=128|63&X);return L}(N)},ne.utf8decode=function(N){return S.nodebuffer?W.transformTo("nodebuffer",N).toString("utf-8"):function(R){var L,X,Q,oe,ee=R.length,re=new Array(2*ee);for(L=X=0;L<ee;)if((Q=R[L++])<128)re[X++]=Q;else if(4<(oe=h[Q]))re[X++]=65533,L+=oe-1;else{for(Q&=oe===2?31:oe===3?15:7;1<oe&&L<ee;)Q=Q<<6|63&R[L++],oe--;1<oe?re[X++]=65533:Q<65536?re[X++]=Q:(Q-=65536,re[X++]=55296|Q>>10&1023,re[X++]=56320|1023&Q)}return re.length!==X&&(re.subarray?re=re.subarray(0,X):re.length=X),W.applyFromCharCode(re)}(N=W.transformTo(S.uint8array?"uint8array":"array",N))},W.inherits(_,M),_.prototype.processChunk=function(N){var R=W.transformTo(S.uint8array?"uint8array":"array",N.data);if(this.leftOver&&this.leftOver.length){if(S.uint8array){var L=R;(R=new Uint8Array(L.length+this.leftOver.length)).set(this.leftOver,0),R.set(L,this.leftOver.length)}else R=this.leftOver.concat(R);this.leftOver=null}var X=function(oe,ee){var re;for((ee=ee||oe.length)>oe.length&&(ee=oe.length),re=ee-1;0<=re&&(192&oe[re])==128;)re--;return re<0||re===0?ee:re+h[oe[re]]>ee?re:ee}(R),Q=R;X!==R.length&&(S.uint8array?(Q=R.subarray(0,X),this.leftOver=R.subarray(X,R.length)):(Q=R.slice(0,X),this.leftOver=R.slice(X,R.length))),this.push({data:ne.utf8decode(Q),meta:N.meta})},_.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:ne.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},ne.Utf8DecodeWorker=_,W.inherits(F,M),F.prototype.processChunk=function(N){this.push({data:ne.utf8encode(N.data),meta:N.meta})},ne.Utf8EncodeWorker=F},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(P,Oe,ne){"use strict";var W=P("./support"),S=P("./base64"),v=P("./nodejsUtils"),M=P("./external");function h(L){return L}function $(L,X){for(var Q=0;Q<L.length;++Q)X[Q]=255&L.charCodeAt(Q);return X}P("setimmediate"),ne.newBlob=function(L,X){ne.checkSupport("blob");try{return new Blob([L],{type:X})}catch(oe){try{var Q=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return Q.append(L),Q.getBlob(X)}catch(ee){throw new Error("Bug : can't construct the Blob.")}}};var _={stringifyByChunk:function(L,X,Q){var oe=[],ee=0,re=L.length;if(re<=Q)return String.fromCharCode.apply(null,L);for(;ee<re;)X==="array"||X==="nodebuffer"?oe.push(String.fromCharCode.apply(null,L.slice(ee,Math.min(ee+Q,re)))):oe.push(String.fromCharCode.apply(null,L.subarray(ee,Math.min(ee+Q,re)))),ee+=Q;return oe.join("")},stringifyByChar:function(L){for(var X="",Q=0;Q<L.length;Q++)X+=String.fromCharCode(L[Q]);return X},applyCanBeUsed:{uint8array:function(){try{return W.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(L){return!1}}(),nodebuffer:function(){try{return W.nodebuffer&&String.fromCharCode.apply(null,v.allocBuffer(1)).length===1}catch(L){return!1}}()}};function F(L){var X=65536,Q=ne.getTypeOf(L),oe=!0;if(Q==="uint8array"?oe=_.applyCanBeUsed.uint8array:Q==="nodebuffer"&&(oe=_.applyCanBeUsed.nodebuffer),oe)for(;1<X;)try{return _.stringifyByChunk(L,Q,X)}catch(ee){X=Math.floor(X/2)}return _.stringifyByChar(L)}function N(L,X){for(var Q=0;Q<L.length;Q++)X[Q]=L[Q];return X}ne.applyFromCharCode=F;var R={};R.string={string:h,array:function(L){return $(L,new Array(L.length))},arraybuffer:function(L){return R.string.uint8array(L).buffer},uint8array:function(L){return $(L,new Uint8Array(L.length))},nodebuffer:function(L){return $(L,v.allocBuffer(L.length))}},R.array={string:F,array:h,arraybuffer:function(L){return new Uint8Array(L).buffer},uint8array:function(L){return new Uint8Array(L)},nodebuffer:function(L){return v.newBufferFrom(L)}},R.arraybuffer={string:function(L){return F(new Uint8Array(L))},array:function(L){return N(new Uint8Array(L),new Array(L.byteLength))},arraybuffer:h,uint8array:function(L){return new Uint8Array(L)},nodebuffer:function(L){return v.newBufferFrom(new Uint8Array(L))}},R.uint8array={string:F,array:function(L){return N(L,new Array(L.length))},arraybuffer:function(L){return L.buffer},uint8array:h,nodebuffer:function(L){return v.newBufferFrom(L)}},R.nodebuffer={string:F,array:function(L){return N(L,new Array(L.length))},arraybuffer:function(L){return R.nodebuffer.uint8array(L).buffer},uint8array:function(L){return N(L,new Uint8Array(L.length))},nodebuffer:h},ne.transformTo=function(L,X){if(X=X||"",!L)return X;ne.checkSupport(L);var Q=ne.getTypeOf(X);return R[Q][L](X)},ne.resolve=function(L){for(var X=L.split("/"),Q=[],oe=0;oe<X.length;oe++){var ee=X[oe];ee==="."||ee===""&&oe!==0&&oe!==X.length-1||(ee===".."?Q.pop():Q.push(ee))}return Q.join("/")},ne.getTypeOf=function(L){return typeof L=="string"?"string":Object.prototype.toString.call(L)==="[object Array]"?"array":W.nodebuffer&&v.isBuffer(L)?"nodebuffer":W.uint8array&&L instanceof Uint8Array?"uint8array":W.arraybuffer&&L instanceof ArrayBuffer?"arraybuffer":void 0},ne.checkSupport=function(L){if(!W[L.toLowerCase()])throw new Error(L+" is not supported by this platform")},ne.MAX_VALUE_16BITS=65535,ne.MAX_VALUE_32BITS=-1,ne.pretty=function(L){var X,Q,oe="";for(Q=0;Q<(L||"").length;Q++)oe+="\\x"+((X=L.charCodeAt(Q))<16?"0":"")+X.toString(16).toUpperCase();return oe},ne.delay=function(L,X,Q){setImmediate(function(){L.apply(Q||null,X||[])})},ne.inherits=function(L,X){function Q(){}Q.prototype=X.prototype,L.prototype=new Q},ne.extend=function(){var L,X,Q={};for(L=0;L<arguments.length;L++)for(X in arguments[L])Object.prototype.hasOwnProperty.call(arguments[L],X)&&Q[X]===void 0&&(Q[X]=arguments[L][X]);return Q},ne.prepareContent=function(L,X,Q,oe,ee){return M.Promise.resolve(X).then(function(re){return W.blob&&(re instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(re))!==-1)&&typeof FileReader!="undefined"?new M.Promise(function(G,K){var le=new FileReader;le.onload=function(be){G(be.target.result)},le.onerror=function(be){K(be.target.error)},le.readAsArrayBuffer(re)}):re}).then(function(re){var G=ne.getTypeOf(re);return G?(G==="arraybuffer"?re=ne.transformTo("uint8array",re):G==="string"&&(ee?re=S.decode(re):Q&&oe!==!0&&(re=function(K){return $(K,W.uint8array?new Uint8Array(K.length):new Array(K.length))}(re))),re):M.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,Oe,ne){"use strict";var W=P("./reader/readerFor"),S=P("./utils"),v=P("./signature"),M=P("./zipEntry"),h=P("./support");function $(_){this.files=[],this.loadOptions=_}$.prototype={checkSignature:function(_){if(!this.reader.readAndCheckSignature(_)){this.reader.index-=4;var F=this.reader.readString(4);throw new Error("Corrupted zip or bug: unexpected signature ("+S.pretty(F)+", expected "+S.pretty(_)+")")}},isSignature:function(_,F){var N=this.reader.index;this.reader.setIndex(_);var R=this.reader.readString(4)===F;return this.reader.setIndex(N),R},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),F=h.uint8array?"uint8array":"array",N=S.transformTo(F,_);this.zipComment=this.loadOptions.decodeFileName(N)},readBlockZip64EndOfCentral:function(){this.zip64EndOfCentralSize=this.reader.readInt(8),this.reader.skip(4),this.diskNumber=this.reader.readInt(4),this.diskWithCentralDirStart=this.reader.readInt(4),this.centralDirRecordsOnThisDisk=this.reader.readInt(8),this.centralDirRecords=this.reader.readInt(8),this.centralDirSize=this.reader.readInt(8),this.centralDirOffset=this.reader.readInt(8),this.zip64ExtensibleData={};for(var _,F,N,R=this.zip64EndOfCentralSize-44;0<R;)_=this.reader.readInt(2),F=this.reader.readInt(4),N=this.reader.readData(F),this.zip64ExtensibleData[_]={id:_,length:F,value:N}},readBlockZip64EndOfCentralLocator:function(){if(this.diskWithZip64CentralDirStart=this.reader.readInt(4),this.relativeOffsetEndOfZip64CentralDir=this.reader.readInt(8),this.disksCount=this.reader.readInt(4),1<this.disksCount)throw new Error("Multi-volumes zip are not supported")},readLocalFiles:function(){var _,F;for(_=0;_<this.files.length;_++)F=this.files[_],this.reader.setIndex(F.localHeaderOffset),this.checkSignature(v.LOCAL_FILE_HEADER),F.readLocalPart(this.reader),F.handleUTF8(),F.processAttributes()},readCentralDir:function(){var _;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(v.CENTRAL_FILE_HEADER);)(_=new M({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(v.CENTRAL_DIRECTORY_END);if(_<0)throw this.isSignature(0,v.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 F=_;if(this.checkSignature(v.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(v.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(v.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,v.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(v.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(v.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var N=this.centralDirOffset+this.centralDirSize;this.zip64&&(N+=20,N+=12+this.zip64EndOfCentralSize);var R=F-N;if(0<R)this.isSignature(F,v.CENTRAL_FILE_HEADER)||(this.reader.zero=R);else if(R<0)throw new Error("Corrupted zip: missing "+Math.abs(R)+" bytes.")},prepareReader:function(_){this.reader=W(_)},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},Oe.exports=$},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(P,Oe,ne){"use strict";var W=P("./reader/readerFor"),S=P("./utils"),v=P("./compressedObject"),M=P("./crc32"),h=P("./utf8"),$=P("./compressions"),_=P("./support");function F(N,R){this.options=N,this.loadOptions=R}F.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(N){var R,L;if(N.skip(22),this.fileNameLength=N.readInt(2),L=N.readInt(2),this.fileName=N.readData(this.fileNameLength),N.skip(L),this.compressedSize===-1||this.uncompressedSize===-1)throw new Error("Bug or corrupted zip : didn't get enough information from the central directory (compressedSize === -1 || uncompressedSize === -1)");if((R=function(X){for(var Q in $)if(Object.prototype.hasOwnProperty.call($,Q)&&$[Q].magic===X)return $[Q];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 v(this.compressedSize,this.uncompressedSize,this.crc32,R,N.readData(this.compressedSize))},readCentralPart:function(N){this.versionMadeBy=N.readInt(2),N.skip(2),this.bitFlag=N.readInt(2),this.compressionMethod=N.readString(2),this.date=N.readDate(),this.crc32=N.readInt(4),this.compressedSize=N.readInt(4),this.uncompressedSize=N.readInt(4);var R=N.readInt(2);if(this.extraFieldsLength=N.readInt(2),this.fileCommentLength=N.readInt(2),this.diskNumberStart=N.readInt(2),this.internalFileAttributes=N.readInt(2),this.externalFileAttributes=N.readInt(4),this.localHeaderOffset=N.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");N.skip(R),this.readExtraFields(N),this.parseZIP64ExtraField(N),this.fileComment=N.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var N=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),N==0&&(this.dosPermissions=63&this.externalFileAttributes),N==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var N=W(this.extraFields[1].value);this.uncompressedSize===S.MAX_VALUE_32BITS&&(this.uncompressedSize=N.readInt(8)),this.compressedSize===S.MAX_VALUE_32BITS&&(this.compressedSize=N.readInt(8)),this.localHeaderOffset===S.MAX_VALUE_32BITS&&(this.localHeaderOffset=N.readInt(8)),this.diskNumberStart===S.MAX_VALUE_32BITS&&(this.diskNumberStart=N.readInt(4))}},readExtraFields:function(N){var R,L,X,Q=N.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});N.index+4<Q;)R=N.readInt(2),L=N.readInt(2),X=N.readData(L),this.extraFields[R]={id:R,length:L,value:X};N.setIndex(Q)},handleUTF8:function(){var N=_.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=h.utf8decode(this.fileName),this.fileCommentStr=h.utf8decode(this.fileComment);else{var R=this.findExtraFieldUnicodePath();if(R!==null)this.fileNameStr=R;else{var L=S.transformTo(N,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(L)}var X=this.findExtraFieldUnicodeComment();if(X!==null)this.fileCommentStr=X;else{var Q=S.transformTo(N,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(Q)}}},findExtraFieldUnicodePath:function(){var N=this.extraFields[28789];if(N){var R=W(N.value);return R.readInt(1)!==1||M(this.fileName)!==R.readInt(4)?null:h.utf8decode(R.readData(N.length-5))}return null},findExtraFieldUnicodeComment:function(){var N=this.extraFields[25461];if(N){var R=W(N.value);return R.readInt(1)!==1||M(this.fileComment)!==R.readInt(4)?null:h.utf8decode(R.readData(N.length-5))}return null}},Oe.exports=F},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(P,Oe,ne){"use strict";function W(R,L,X){this.name=R,this.dir=X.dir,this.date=X.date,this.comment=X.comment,this.unixPermissions=X.unixPermissions,this.dosPermissions=X.dosPermissions,this._data=L,this._dataBinary=X.binary,this.options={compression:X.compression,compressionOptions:X.compressionOptions}}var S=P("./stream/StreamHelper"),v=P("./stream/DataWorker"),M=P("./utf8"),h=P("./compressedObject"),$=P("./stream/GenericWorker");W.prototype={internalStream:function(R){var L=null,X="string";try{if(!R)throw new Error("No output type specified.");var Q=(X=R.toLowerCase())==="string"||X==="text";X!=="binarystring"&&X!=="text"||(X="string"),L=this._decompressWorker();var oe=!this._dataBinary;oe&&!Q&&(L=L.pipe(new M.Utf8EncodeWorker)),!oe&&Q&&(L=L.pipe(new M.Utf8DecodeWorker))}catch(ee){(L=new $("error")).error(ee)}return new S(L,X,"")},async:function(R,L){return this.internalStream(R).accumulate(L)},nodeStream:function(R,L){return this.internalStream(R||"nodebuffer").toNodejsStream(L)},_compressWorker:function(R,L){if(this._data instanceof h&&this._data.compression.magic===R.magic)return this._data.getCompressedWorker();var X=this._decompressWorker();return this._dataBinary||(X=X.pipe(new M.Utf8EncodeWorker)),h.createWorkerFrom(X,R,L)},_decompressWorker:function(){return this._data instanceof h?this._data.getContentWorker():this._data instanceof $?this._data:new v(this._data)}};for(var _=["asText","asBinary","asNodeBuffer","asUint8Array","asArrayBuffer"],F=function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},N=0;N<_.length;N++)W.prototype[_[N]]=F;Oe.exports=W},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(P,Oe,ne){(function(W){"use strict";var S,v,M=W.MutationObserver||W.WebKitMutationObserver;if(M){var h=0,$=new M(R),_=W.document.createTextNode("");$.observe(_,{characterData:!0}),S=function(){_.data=h=++h%2}}else if(W.setImmediate||W.MessageChannel===void 0)S="document"in W&&"onreadystatechange"in W.document.createElement("script")?function(){var L=W.document.createElement("script");L.onreadystatechange=function(){R(),L.onreadystatechange=null,L.parentNode.removeChild(L),L=null},W.document.documentElement.appendChild(L)}:function(){setTimeout(R,0)};else{var F=new W.MessageChannel;F.port1.onmessage=R,S=function(){F.port2.postMessage(0)}}var N=[];function R(){var L,X;v=!0;for(var Q=N.length;Q;){for(X=N,N=[],L=-1;++L<Q;)X[L]();Q=N.length}v=!1}Oe.exports=function(L){N.push(L)!==1||v||S()}}).call(this,typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(P,Oe,ne){"use strict";var W=P("immediate");function S(){}var v={},M=["REJECTED"],h=["FULFILLED"],$=["PENDING"];function _(Q){if(typeof Q!="function")throw new TypeError("resolver must be a function");this.state=$,this.queue=[],this.outcome=void 0,Q!==S&&L(this,Q)}function F(Q,oe,ee){this.promise=Q,typeof oe=="function"&&(this.onFulfilled=oe,this.callFulfilled=this.otherCallFulfilled),typeof ee=="function"&&(this.onRejected=ee,this.callRejected=this.otherCallRejected)}function N(Q,oe,ee){W(function(){var re;try{re=oe(ee)}catch(G){return v.reject(Q,G)}re===Q?v.reject(Q,new TypeError("Cannot resolve promise with itself")):v.resolve(Q,re)})}function R(Q){var oe=Q&&Q.then;if(Q&&(typeof Q=="object"||typeof Q=="function")&&typeof oe=="function")return function(){oe.apply(Q,arguments)}}function L(Q,oe){var ee=!1;function re(le){ee||(ee=!0,v.reject(Q,le))}function G(le){ee||(ee=!0,v.resolve(Q,le))}var K=X(function(){oe(G,re)});K.status==="error"&&re(K.value)}function X(Q,oe){var ee={};try{ee.value=Q(oe),ee.status="success"}catch(re){ee.status="error",ee.value=re}return ee}(Oe.exports=_).prototype.finally=function(Q){if(typeof Q!="function")return this;var oe=this.constructor;return this.then(function(ee){return oe.resolve(Q()).then(function(){return ee})},function(ee){return oe.resolve(Q()).then(function(){throw ee})})},_.prototype.catch=function(Q){return this.then(null,Q)},_.prototype.then=function(Q,oe){if(typeof Q!="function"&&this.state===h||typeof oe!="function"&&this.state===M)return this;var ee=new this.constructor(S);return this.state!==$?N(ee,this.state===h?Q:oe,this.outcome):this.queue.push(new F(ee,Q,oe)),ee},F.prototype.callFulfilled=function(Q){v.resolve(this.promise,Q)},F.prototype.otherCallFulfilled=function(Q){N(this.promise,this.onFulfilled,Q)},F.prototype.callRejected=function(Q){v.reject(this.promise,Q)},F.prototype.otherCallRejected=function(Q){N(this.promise,this.onRejected,Q)},v.resolve=function(Q,oe){var ee=X(R,oe);if(ee.status==="error")return v.reject(Q,ee.value);var re=ee.value;if(re)L(Q,re);else{Q.state=h,Q.outcome=oe;for(var G=-1,K=Q.queue.length;++G<K;)Q.queue[G].callFulfilled(oe)}return Q},v.reject=function(Q,oe){Q.state=M,Q.outcome=oe;for(var ee=-1,re=Q.queue.length;++ee<re;)Q.queue[ee].callRejected(oe);return Q},_.resolve=function(Q){return Q instanceof this?Q:v.resolve(new this(S),Q)},_.reject=function(Q){var oe=new this(S);return v.reject(oe,Q)},_.all=function(Q){var oe=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ee=Q.length,re=!1;if(!ee)return this.resolve([]);for(var G=new Array(ee),K=0,le=-1,be=new this(S);++le<ee;)Ne(Q[le],le);return be;function Ne(ye,Ue){oe.resolve(ye).then(function(q){G[Ue]=q,++K!==ee||re||(re=!0,v.resolve(be,G))},function(q){re||(re=!0,v.reject(be,q))})}},_.race=function(Q){var oe=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ee=Q.length,re=!1;if(!ee)return this.resolve([]);for(var G=-1,K=new this(S);++G<ee;)le=Q[G],oe.resolve(le).then(function(be){re||(re=!0,v.resolve(K,be))},function(be){re||(re=!0,v.reject(K,be))});var le;return K}},{immediate:36}],38:[function(P,Oe,ne){"use strict";var W={};(0,P("./lib/utils/common").assign)(W,P("./lib/deflate"),P("./lib/inflate"),P("./lib/zlib/constants")),Oe.exports=W},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(P,Oe,ne){"use strict";var W=P("./zlib/deflate"),S=P("./utils/common"),v=P("./utils/strings"),M=P("./zlib/messages"),h=P("./zlib/zstream"),$=Object.prototype.toString,_=0,F=-1,N=0,R=8;function L(Q){if(!(this instanceof L))return new L(Q);this.options=S.assign({level:F,method:R,chunkSize:16384,windowBits:15,memLevel:8,strategy:N,to:""},Q||{});var oe=this.options;oe.raw&&0<oe.windowBits?oe.windowBits=-oe.windowBits:oe.gzip&&0<oe.windowBits&&oe.windowBits<16&&(oe.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new h,this.strm.avail_out=0;var ee=W.deflateInit2(this.strm,oe.level,oe.method,oe.windowBits,oe.memLevel,oe.strategy);if(ee!==_)throw new Error(M[ee]);if(oe.header&&W.deflateSetHeader(this.strm,oe.header),oe.dictionary){var re;if(re=typeof oe.dictionary=="string"?v.string2buf(oe.dictionary):$.call(oe.dictionary)==="[object ArrayBuffer]"?new Uint8Array(oe.dictionary):oe.dictionary,(ee=W.deflateSetDictionary(this.strm,re))!==_)throw new Error(M[ee]);this._dict_set=!0}}function X(Q,oe){var ee=new L(oe);if(ee.push(Q,!0),ee.err)throw ee.msg||M[ee.err];return ee.result}L.prototype.push=function(Q,oe){var ee,re,G=this.strm,K=this.options.chunkSize;if(this.ended)return!1;re=oe===~~oe?oe:oe===!0?4:0,typeof Q=="string"?G.input=v.string2buf(Q):$.call(Q)==="[object ArrayBuffer]"?G.input=new Uint8Array(Q):G.input=Q,G.next_in=0,G.avail_in=G.input.length;do{if(G.avail_out===0&&(G.output=new S.Buf8(K),G.next_out=0,G.avail_out=K),(ee=W.deflate(G,re))!==1&&ee!==_)return this.onEnd(ee),!(this.ended=!0);G.avail_out!==0&&(G.avail_in!==0||re!==4&&re!==2)||(this.options.to==="string"?this.onData(v.buf2binstring(S.shrinkBuf(G.output,G.next_out))):this.onData(S.shrinkBuf(G.output,G.next_out)))}while((0<G.avail_in||G.avail_out===0)&&ee!==1);return re===4?(ee=W.deflateEnd(this.strm),this.onEnd(ee),this.ended=!0,ee===_):re!==2||(this.onEnd(_),!(G.avail_out=0))},L.prototype.onData=function(Q){this.chunks.push(Q)},L.prototype.onEnd=function(Q){Q===_&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=S.flattenChunks(this.chunks)),this.chunks=[],this.err=Q,this.msg=this.strm.msg},ne.Deflate=L,ne.deflate=X,ne.deflateRaw=function(Q,oe){return(oe=oe||{}).raw=!0,X(Q,oe)},ne.gzip=function(Q,oe){return(oe=oe||{}).gzip=!0,X(Q,oe)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(P,Oe,ne){"use strict";var W=P("./zlib/inflate"),S=P("./utils/common"),v=P("./utils/strings"),M=P("./zlib/constants"),h=P("./zlib/messages"),$=P("./zlib/zstream"),_=P("./zlib/gzheader"),F=Object.prototype.toString;function N(L){if(!(this instanceof N))return new N(L);this.options=S.assign({chunkSize:16384,windowBits:0,to:""},L||{});var X=this.options;X.raw&&0<=X.windowBits&&X.windowBits<16&&(X.windowBits=-X.windowBits,X.windowBits===0&&(X.windowBits=-15)),!(0<=X.windowBits&&X.windowBits<16)||L&&L.windowBits||(X.windowBits+=32),15<X.windowBits&&X.windowBits<48&&!(15&X.windowBits)&&(X.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $,this.strm.avail_out=0;var Q=W.inflateInit2(this.strm,X.windowBits);if(Q!==M.Z_OK)throw new Error(h[Q]);this.header=new _,W.inflateGetHeader(this.strm,this.header)}function R(L,X){var Q=new N(X);if(Q.push(L,!0),Q.err)throw Q.msg||h[Q.err];return Q.result}N.prototype.push=function(L,X){var Q,oe,ee,re,G,K,le=this.strm,be=this.options.chunkSize,Ne=this.options.dictionary,ye=!1;if(this.ended)return!1;oe=X===~~X?X:X===!0?M.Z_FINISH:M.Z_NO_FLUSH,typeof L=="string"?le.input=v.binstring2buf(L):F.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(be),le.next_out=0,le.avail_out=be),(Q=W.inflate(le,M.Z_NO_FLUSH))===M.Z_NEED_DICT&&Ne&&(K=typeof Ne=="string"?v.string2buf(Ne):F.call(Ne)==="[object ArrayBuffer]"?new Uint8Array(Ne):Ne,Q=W.inflateSetDictionary(this.strm,K)),Q===M.Z_BUF_ERROR&&ye===!0&&(Q=M.Z_OK,ye=!1),Q!==M.Z_STREAM_END&&Q!==M.Z_OK)return this.onEnd(Q),!(this.ended=!0);le.next_out&&(le.avail_out!==0&&Q!==M.Z_STREAM_END&&(le.avail_in!==0||oe!==M.Z_FINISH&&oe!==M.Z_SYNC_FLUSH)||(this.options.to==="string"?(ee=v.utf8border(le.output,le.next_out),re=le.next_out-ee,G=v.buf2string(le.output,ee),le.next_out=re,le.avail_out=be-re,re&&S.arraySet(le.output,le.output,ee,re,0),this.onData(G)):this.onData(S.shrinkBuf(le.output,le.next_out)))),le.avail_in===0&&le.avail_out===0&&(ye=!0)}while((0<le.avail_in||le.avail_out===0)&&Q!==M.Z_STREAM_END);return Q===M.Z_STREAM_END&&(oe=M.Z_FINISH),oe===M.Z_FINISH?(Q=W.inflateEnd(this.strm),this.onEnd(Q),this.ended=!0,Q===M.Z_OK):oe!==M.Z_SYNC_FLUSH||(this.onEnd(M.Z_OK),!(le.avail_out=0))},N.prototype.onData=function(L){this.chunks.push(L)},N.prototype.onEnd=function(L){L===M.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},ne.Inflate=N,ne.inflate=R,ne.inflateRaw=function(L,X){return(X=X||{}).raw=!0,R(L,X)},ne.ungzip=R},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(P,Oe,ne){"use strict";var W=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";ne.assign=function(M){for(var h=Array.prototype.slice.call(arguments,1);h.length;){var $=h.shift();if($){if(typeof $!="object")throw new TypeError($+"must be non-object");for(var _ in $)$.hasOwnProperty(_)&&(M[_]=$[_])}}return M},ne.shrinkBuf=function(M,h){return M.length===h?M:M.subarray?M.subarray(0,h):(M.length=h,M)};var S={arraySet:function(M,h,$,_,F){if(h.subarray&&M.subarray)M.set(h.subarray($,$+_),F);else for(var N=0;N<_;N++)M[F+N]=h[$+N]},flattenChunks:function(M){var h,$,_,F,N,R;for(h=_=0,$=M.length;h<$;h++)_+=M[h].length;for(R=new Uint8Array(_),h=F=0,$=M.length;h<$;h++)N=M[h],R.set(N,F),F+=N.length;return R}},v={arraySet:function(M,h,$,_,F){for(var N=0;N<_;N++)M[F+N]=h[$+N]},flattenChunks:function(M){return[].concat.apply([],M)}};ne.setTyped=function(M){M?(ne.Buf8=Uint8Array,ne.Buf16=Uint16Array,ne.Buf32=Int32Array,ne.assign(ne,S)):(ne.Buf8=Array,ne.Buf16=Array,ne.Buf32=Array,ne.assign(ne,v))},ne.setTyped(W)},{}],42:[function(P,Oe,ne){"use strict";var W=P("./common"),S=!0,v=!0;try{String.fromCharCode.apply(null,[0])}catch(_){S=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(_){v=!1}for(var M=new W.Buf8(256),h=0;h<256;h++)M[h]=252<=h?6:248<=h?5:240<=h?4:224<=h?3:192<=h?2:1;function $(_,F){if(F<65537&&(_.subarray&&v||!_.subarray&&S))return String.fromCharCode.apply(null,W.shrinkBuf(_,F));for(var N="",R=0;R<F;R++)N+=String.fromCharCode(_[R]);return N}M[254]=M[254]=1,ne.string2buf=function(_){var F,N,R,L,X,Q=_.length,oe=0;for(L=0;L<Q;L++)(64512&(N=_.charCodeAt(L)))==55296&&L+1<Q&&(64512&(R=_.charCodeAt(L+1)))==56320&&(N=65536+(N-55296<<10)+(R-56320),L++),oe+=N<128?1:N<2048?2:N<65536?3:4;for(F=new W.Buf8(oe),L=X=0;X<oe;L++)(64512&(N=_.charCodeAt(L)))==55296&&L+1<Q&&(64512&(R=_.charCodeAt(L+1)))==56320&&(N=65536+(N-55296<<10)+(R-56320),L++),N<128?F[X++]=N:(N<2048?F[X++]=192|N>>>6:(N<65536?F[X++]=224|N>>>12:(F[X++]=240|N>>>18,F[X++]=128|N>>>12&63),F[X++]=128|N>>>6&63),F[X++]=128|63&N);return F},ne.buf2binstring=function(_){return $(_,_.length)},ne.binstring2buf=function(_){for(var F=new W.Buf8(_.length),N=0,R=F.length;N<R;N++)F[N]=_.charCodeAt(N);return F},ne.buf2string=function(_,F){var N,R,L,X,Q=F||_.length,oe=new Array(2*Q);for(N=R=0;N<Q;)if((L=_[N++])<128)oe[R++]=L;else if(4<(X=M[L]))oe[R++]=65533,N+=X-1;else{for(L&=X===2?31:X===3?15:7;1<X&&N<Q;)L=L<<6|63&_[N++],X--;1<X?oe[R++]=65533:L<65536?oe[R++]=L:(L-=65536,oe[R++]=55296|L>>10&1023,oe[R++]=56320|1023&L)}return $(oe,R)},ne.utf8border=function(_,F){var N;for((F=F||_.length)>_.length&&(F=_.length),N=F-1;0<=N&&(192&_[N])==128;)N--;return N<0||N===0?F:N+M[_[N]]>F?N:F}},{"./common":41}],43:[function(P,Oe,ne){"use strict";Oe.exports=function(W,S,v,M){for(var h=65535&W|0,$=W>>>16&65535|0,_=0;v!==0;){for(v-=_=2e3<v?2e3:v;$=$+(h=h+S[M++]|0)|0,--_;);h%=65521,$%=65521}return h|$<<16|0}},{}],44:[function(P,Oe,ne){"use strict";Oe.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,Oe,ne){"use strict";var W=function(){for(var S,v=[],M=0;M<256;M++){S=M;for(var h=0;h<8;h++)S=1&S?3988292384^S>>>1:S>>>1;v[M]=S}return v}();Oe.exports=function(S,v,M,h){var $=W,_=h+M;S^=-1;for(var F=h;F<_;F++)S=S>>>8^$[255&(S^v[F])];return-1^S}},{}],46:[function(P,Oe,ne){"use strict";var W,S=P("../utils/common"),v=P("./trees"),M=P("./adler32"),h=P("./crc32"),$=P("./messages"),_=0,F=4,N=0,R=-2,L=-1,X=4,Q=2,oe=8,ee=9,re=286,G=30,K=19,le=2*re+1,be=15,Ne=3,ye=258,Ue=ye+Ne+1,q=42,de=113,D=1,qe=2,Me=3,xe=4;function Te(V,dt){return V.msg=$[dt],dt}function ve(V){return(V<<1)-(4<V?9:0)}function De(V){for(var dt=V.length;0<=--dt;)V[dt]=0}function pe(V){var dt=V.state,I=dt.pending;I>V.avail_out&&(I=V.avail_out),I!==0&&(S.arraySet(V.output,dt.pending_buf,dt.pending_out,I,V.next_out),V.next_out+=I,dt.pending_out+=I,V.total_out+=I,V.avail_out-=I,dt.pending-=I,dt.pending===0&&(dt.pending_out=0))}function Se(V,dt){v._tr_flush_block(V,0<=V.block_start?V.block_start:-1,V.strstart-V.block_start,dt),V.block_start=V.strstart,pe(V.strm)}function Xe(V,dt){V.pending_buf[V.pending++]=dt}function et(V,dt){V.pending_buf[V.pending++]=dt>>>8&255,V.pending_buf[V.pending++]=255&dt}function je(V,dt){var I,m,f=V.max_chain_length,C=V.strstart,Y=V.prev_length,Be=V.nice_match,H=V.strstart>V.w_size-Ue?V.strstart-(V.w_size-Ue):0,ie=V.window,Qe=V.w_mask,we=V.prev,ce=V.strstart+ye,ze=ie[C+Y-1],vt=ie[C+Y];V.prev_length>=V.good_match&&(f>>=2),Be>V.lookahead&&(Be=V.lookahead);do if(ie[(I=dt)+Y]===vt&&ie[I+Y-1]===ze&&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<ce);if(m=ye-(ce-C),C=ce-ye,Y<m){if(V.match_start=dt,Be<=(Y=m))break;ze=ie[C+Y-1],vt=ie[C+Y]}}while((dt=we[dt&Qe])>H&&--f!=0);return Y<=V.lookahead?Y:V.lookahead}function Ye(V){var dt,I,m,f,C,Y,Be,H,ie,Qe,we=V.w_size;do{if(f=V.window_size-V.lookahead-V.strstart,V.strstart>=we+(we-Ue)){for(S.arraySet(V.window,V.window,we,we,0),V.match_start-=we,V.strstart-=we,V.block_start-=we,dt=I=V.hash_size;m=V.head[--dt],V.head[dt]=we<=m?m-we:0,--I;);for(dt=I=we;m=V.prev[--dt],V.prev[dt]=we<=m?m-we:0,--I;);f+=we}if(V.strm.avail_in===0)break;if(Y=V.strm,Be=V.window,H=V.strstart+V.lookahead,ie=f,Qe=void 0,Qe=Y.avail_in,ie<Qe&&(Qe=ie),I=Qe===0?0:(Y.avail_in-=Qe,S.arraySet(Be,Y.input,Y.next_in,Qe,H),Y.state.wrap===1?Y.adler=M(Y.adler,Be,Qe,H):Y.state.wrap===2&&(Y.adler=h(Y.adler,Be,Qe,H)),Y.next_in+=Qe,Y.total_in+=Qe,Qe),V.lookahead+=I,V.lookahead+V.insert>=Ne)for(C=V.strstart-V.insert,V.ins_h=V.window[C],V.ins_h=(V.ins_h<<V.hash_shift^V.window[C+1])&V.hash_mask;V.insert&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[C+Ne-1])&V.hash_mask,V.prev[C&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=C,C++,V.insert--,!(V.lookahead+V.insert<Ne)););}while(V.lookahead<Ue&&V.strm.avail_in!==0)}function _t(V,dt){for(var I,m;;){if(V.lookahead<Ue){if(Ye(V),V.lookahead<Ue&&dt===_)return D;if(V.lookahead===0)break}if(I=0,V.lookahead>=Ne&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+Ne-1])&V.hash_mask,I=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),I!==0&&V.strstart-I<=V.w_size-Ue&&(V.match_length=je(V,I)),V.match_length>=Ne)if(m=v._tr_tally(V,V.strstart-V.match_start,V.match_length-Ne),V.lookahead-=V.match_length,V.match_length<=V.max_lazy_match&&V.lookahead>=Ne){for(V.match_length--;V.strstart++,V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+Ne-1])&V.hash_mask,I=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart,--V.match_length!=0;);V.strstart++}else V.strstart+=V.match_length,V.match_length=0,V.ins_h=V.window[V.strstart],V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+1])&V.hash_mask;else m=v._tr_tally(V,0,V.window[V.strstart]),V.lookahead--,V.strstart++;if(m&&(Se(V,!1),V.strm.avail_out===0))return D}return V.insert=V.strstart<Ne-1?V.strstart:Ne-1,dt===F?(Se(V,!0),V.strm.avail_out===0?Me:xe):V.last_lit&&(Se(V,!1),V.strm.avail_out===0)?D:qe}function kt(V,dt){for(var I,m,f;;){if(V.lookahead<Ue){if(Ye(V),V.lookahead<Ue&&dt===_)return D;if(V.lookahead===0)break}if(I=0,V.lookahead>=Ne&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+Ne-1])&V.hash_mask,I=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),V.prev_length=V.match_length,V.prev_match=V.match_start,V.match_length=Ne-1,I!==0&&V.prev_length<V.max_lazy_match&&V.strstart-I<=V.w_size-Ue&&(V.match_length=je(V,I),V.match_length<=5&&(V.strategy===1||V.match_length===Ne&&4096<V.strstart-V.match_start)&&(V.match_length=Ne-1)),V.prev_length>=Ne&&V.match_length<=V.prev_length){for(f=V.strstart+V.lookahead-Ne,m=v._tr_tally(V,V.strstart-1-V.prev_match,V.prev_length-Ne),V.lookahead-=V.prev_length-1,V.prev_length-=2;++V.strstart<=f&&(V.ins_h=(V.ins_h<<V.hash_shift^V.window[V.strstart+Ne-1])&V.hash_mask,I=V.prev[V.strstart&V.w_mask]=V.head[V.ins_h],V.head[V.ins_h]=V.strstart),--V.prev_length!=0;);if(V.match_available=0,V.match_length=Ne-1,V.strstart++,m&&(Se(V,!1),V.strm.avail_out===0))return D}else if(V.match_available){if((m=v._tr_tally(V,0,V.window[V.strstart-1]))&&Se(V,!1),V.strstart++,V.lookahead--,V.strm.avail_out===0)return D}else V.match_available=1,V.strstart++,V.lookahead--}return V.match_available&&(m=v._tr_tally(V,0,V.window[V.strstart-1]),V.match_available=0),V.insert=V.strstart<Ne-1?V.strstart:Ne-1,dt===F?(Se(V,!0),V.strm.avail_out===0?Me:xe):V.last_lit&&(Se(V,!1),V.strm.avail_out===0)?D:qe}function Ot(V,dt,I,m,f){this.good_length=V,this.max_lazy=dt,this.nice_length=I,this.max_chain=m,this.func=f}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=oe,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*G+1)),this.bl_tree=new S.Buf16(2*(2*K+1)),De(this.dyn_ltree),De(this.dyn_dtree),De(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S.Buf16(be+1),this.heap=new S.Buf16(2*re+1),De(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S.Buf16(2*re+1),De(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 rr(V){var dt;return V&&V.state?(V.total_in=V.total_out=0,V.data_type=Q,(dt=V.state).pending=0,dt.pending_out=0,dt.wrap<0&&(dt.wrap=-dt.wrap),dt.status=dt.wrap?q:de,V.adler=dt.wrap===2?0:1,dt.last_flush=_,v._tr_init(dt),N):Te(V,R)}function br(V){var dt=rr(V);return dt===N&&function(I){I.window_size=2*I.w_size,De(I.head),I.max_lazy_match=W[I.level].max_lazy,I.good_match=W[I.level].good_length,I.nice_match=W[I.level].nice_length,I.max_chain_length=W[I.level].max_chain,I.strstart=0,I.block_start=0,I.lookahead=0,I.insert=0,I.match_length=I.prev_length=Ne-1,I.match_available=0,I.ins_h=0}(V.state),dt}function lr(V,dt,I,m,f,C){if(!V)return R;var Y=1;if(dt===L&&(dt=6),m<0?(Y=0,m=-m):15<m&&(Y=2,m-=16),f<1||ee<f||I!==oe||m<8||15<m||dt<0||9<dt||C<0||X<C)return Te(V,R);m===8&&(m=9);var Be=new sr;return(V.state=Be).strm=V,Be.wrap=Y,Be.gzhead=null,Be.w_bits=m,Be.w_size=1<<Be.w_bits,Be.w_mask=Be.w_size-1,Be.hash_bits=f+7,Be.hash_size=1<<Be.hash_bits,Be.hash_mask=Be.hash_size-1,Be.hash_shift=~~((Be.hash_bits+Ne-1)/Ne),Be.window=new S.Buf8(2*Be.w_size),Be.head=new S.Buf16(Be.hash_size),Be.prev=new S.Buf16(Be.w_size),Be.lit_bufsize=1<<f+6,Be.pending_buf_size=4*Be.lit_bufsize,Be.pending_buf=new S.Buf8(Be.pending_buf_size),Be.d_buf=1*Be.lit_bufsize,Be.l_buf=3*Be.lit_bufsize,Be.level=dt,Be.strategy=C,Be.method=I,br(V)}W=[new Ot(0,0,0,0,function(V,dt){var I=65535;for(I>V.pending_buf_size-5&&(I=V.pending_buf_size-5);;){if(V.lookahead<=1){if(Ye(V),V.lookahead===0&&dt===_)return D;if(V.lookahead===0)break}V.strstart+=V.lookahead,V.lookahead=0;var m=V.block_start+I;if((V.strstart===0||V.strstart>=m)&&(V.lookahead=V.strstart-m,V.strstart=m,Se(V,!1),V.strm.avail_out===0)||V.strstart-V.block_start>=V.w_size-Ue&&(Se(V,!1),V.strm.avail_out===0))return D}return V.insert=0,dt===F?(Se(V,!0),V.strm.avail_out===0?Me:xe):(V.strstart>V.block_start&&(Se(V,!1),V.strm.avail_out),D)}),new Ot(4,4,8,4,_t),new Ot(4,5,16,8,_t),new Ot(4,6,32,32,_t),new Ot(4,4,16,16,kt),new Ot(8,16,32,32,kt),new Ot(8,16,128,128,kt),new Ot(8,32,128,256,kt),new Ot(32,128,258,1024,kt),new Ot(32,258,258,4096,kt)],ne.deflateInit=function(V,dt){return lr(V,dt,oe,15,8,0)},ne.deflateInit2=lr,ne.deflateReset=br,ne.deflateResetKeep=rr,ne.deflateSetHeader=function(V,dt){return V&&V.state?V.state.wrap!==2?R:(V.state.gzhead=dt,N):R},ne.deflate=function(V,dt){var I,m,f,C;if(!V||!V.state||5<dt||dt<0)return V?Te(V,R):R;if(m=V.state,!V.output||!V.input&&V.avail_in!==0||m.status===666&&dt!==F)return Te(V,V.avail_out===0?-5:R);if(m.strm=V,I=m.last_flush,m.last_flush=dt,m.status===q)if(m.wrap===2)V.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&&(V.adler=h(V.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=de);else{var Y=oe+(m.w_bits-8<<4)<<8;Y|=(2<=m.strategy||m.level<2?0:m.level<6?1:m.level===6?2:3)<<6,m.strstart!==0&&(Y|=32),Y+=31-Y%31,m.status=de,et(m,Y),m.strstart!==0&&(et(m,V.adler>>>16),et(m,65535&V.adler)),V.adler=1}if(m.status===69)if(m.gzhead.extra){for(f=m.pending;m.gzindex<(65535&m.gzhead.extra.length)&&(m.pending!==m.pending_buf_size||(m.gzhead.hcrc&&m.pending>f&&(V.adler=h(V.adler,m.pending_buf,m.pending-f,f)),pe(V),f=m.pending,m.pending!==m.pending_buf_size));)Xe(m,255&m.gzhead.extra[m.gzindex]),m.gzindex++;m.gzhead.hcrc&&m.pending>f&&(V.adler=h(V.adler,m.pending_buf,m.pending-f,f)),m.gzindex===m.gzhead.extra.length&&(m.gzindex=0,m.status=73)}else m.status=73;if(m.status===73)if(m.gzhead.name){f=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>f&&(V.adler=h(V.adler,m.pending_buf,m.pending-f,f)),pe(V),f=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>f&&(V.adler=h(V.adler,m.pending_buf,m.pending-f,f)),C===0&&(m.gzindex=0,m.status=91)}else m.status=91;if(m.status===91)if(m.gzhead.comment){f=m.pending;do{if(m.pending===m.pending_buf_size&&(m.gzhead.hcrc&&m.pending>f&&(V.adler=h(V.adler,m.pending_buf,m.pending-f,f)),pe(V),f=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>f&&(V.adler=h(V.adler,m.pending_buf,m.pending-f,f)),C===0&&(m.status=103)}else m.status=103;if(m.status===103&&(m.gzhead.hcrc?(m.pending+2>m.pending_buf_size&&pe(V),m.pending+2<=m.pending_buf_size&&(Xe(m,255&V.adler),Xe(m,V.adler>>8&255),V.adler=0,m.status=de)):m.status=de),m.pending!==0){if(pe(V),V.avail_out===0)return m.last_flush=-1,N}else if(V.avail_in===0&&ve(dt)<=ve(I)&&dt!==F)return Te(V,-5);if(m.status===666&&V.avail_in!==0)return Te(V,-5);if(V.avail_in!==0||m.lookahead!==0||dt!==_&&m.status!==666){var Be=m.strategy===2?function(H,ie){for(var Qe;;){if(H.lookahead===0&&(Ye(H),H.lookahead===0)){if(ie===_)return D;break}if(H.match_length=0,Qe=v._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,Qe&&(Se(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ie===F?(Se(H,!0),H.strm.avail_out===0?Me:xe):H.last_lit&&(Se(H,!1),H.strm.avail_out===0)?D:qe}(m,dt):m.strategy===3?function(H,ie){for(var Qe,we,ce,ze,vt=H.window;;){if(H.lookahead<=ye){if(Ye(H),H.lookahead<=ye&&ie===_)return D;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=Ne&&0<H.strstart&&(we=vt[ce=H.strstart-1])===vt[++ce]&&we===vt[++ce]&&we===vt[++ce]){ze=H.strstart+ye;do;while(we===vt[++ce]&&we===vt[++ce]&&we===vt[++ce]&&we===vt[++ce]&&we===vt[++ce]&&we===vt[++ce]&&we===vt[++ce]&&we===vt[++ce]&&ce<ze);H.match_length=ye-(ze-ce),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=Ne?(Qe=v._tr_tally(H,1,H.match_length-Ne),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(Qe=v._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),Qe&&(Se(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ie===F?(Se(H,!0),H.strm.avail_out===0?Me:xe):H.last_lit&&(Se(H,!1),H.strm.avail_out===0)?D:qe}(m,dt):W[m.level].func(m,dt);if(Be!==Me&&Be!==xe||(m.status=666),Be===D||Be===Me)return V.avail_out===0&&(m.last_flush=-1),N;if(Be===qe&&(dt===1?v._tr_align(m):dt!==5&&(v._tr_stored_block(m,0,0,!1),dt===3&&(De(m.head),m.lookahead===0&&(m.strstart=0,m.block_start=0,m.insert=0))),pe(V),V.avail_out===0))return m.last_flush=-1,N}return dt!==F?N:m.wrap<=0?1:(m.wrap===2?(Xe(m,255&V.adler),Xe(m,V.adler>>8&255),Xe(m,V.adler>>16&255),Xe(m,V.adler>>24&255),Xe(m,255&V.total_in),Xe(m,V.total_in>>8&255),Xe(m,V.total_in>>16&255),Xe(m,V.total_in>>24&255)):(et(m,V.adler>>>16),et(m,65535&V.adler)),pe(V),0<m.wrap&&(m.wrap=-m.wrap),m.pending!==0?N:1)},ne.deflateEnd=function(V){var dt;return V&&V.state?(dt=V.state.status)!==q&&dt!==69&&dt!==73&&dt!==91&&dt!==103&&dt!==de&&dt!==666?Te(V,R):(V.state=null,dt===de?Te(V,-3):N):R},ne.deflateSetDictionary=function(V,dt){var I,m,f,C,Y,Be,H,ie,Qe=dt.length;if(!V||!V.state||(C=(I=V.state).wrap)===2||C===1&&I.status!==q||I.lookahead)return R;for(C===1&&(V.adler=M(V.adler,dt,Qe,0)),I.wrap=0,Qe>=I.w_size&&(C===0&&(De(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),Y=V.avail_in,Be=V.next_in,H=V.input,V.avail_in=Qe,V.next_in=0,V.input=dt,Ye(I);I.lookahead>=Ne;){for(m=I.strstart,f=I.lookahead-(Ne-1);I.ins_h=(I.ins_h<<I.hash_shift^I.window[m+Ne-1])&I.hash_mask,I.prev[m&I.w_mask]=I.head[I.ins_h],I.head[I.ins_h]=m,m++,--f;);I.strstart=m,I.lookahead=Ne-1,Ye(I)}return I.strstart+=I.lookahead,I.block_start=I.strstart,I.insert=I.lookahead,I.lookahead=0,I.match_length=I.prev_length=Ne-1,I.match_available=0,V.next_in=Be,V.input=H,V.avail_in=Y,I.wrap=C,N},ne.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(P,Oe,ne){"use strict";Oe.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,Oe,ne){"use strict";Oe.exports=function(W,S){var v,M,h,$,_,F,N,R,L,X,Q,oe,ee,re,G,K,le,be,Ne,ye,Ue,q,de,D,qe;v=W.state,M=W.next_in,D=W.input,h=M+(W.avail_in-5),$=W.next_out,qe=W.output,_=$-(S-W.avail_out),F=$+(W.avail_out-257),N=v.dmax,R=v.wsize,L=v.whave,X=v.wnext,Q=v.window,oe=v.hold,ee=v.bits,re=v.lencode,G=v.distcode,K=(1<<v.lenbits)-1,le=(1<<v.distbits)-1;e:do{ee<15&&(oe+=D[M++]<<ee,ee+=8,oe+=D[M++]<<ee,ee+=8),be=re[oe&K];t:for(;;){if(oe>>>=Ne=be>>>24,ee-=Ne,(Ne=be>>>16&255)===0)qe[$++]=65535&be;else{if(!(16&Ne)){if(!(64&Ne)){be=re[(65535&be)+(oe&(1<<Ne)-1)];continue t}if(32&Ne){v.mode=12;break e}W.msg="invalid literal/length code",v.mode=30;break e}ye=65535&be,(Ne&=15)&&(ee<Ne&&(oe+=D[M++]<<ee,ee+=8),ye+=oe&(1<<Ne)-1,oe>>>=Ne,ee-=Ne),ee<15&&(oe+=D[M++]<<ee,ee+=8,oe+=D[M++]<<ee,ee+=8),be=G[oe&le];r:for(;;){if(oe>>>=Ne=be>>>24,ee-=Ne,!(16&(Ne=be>>>16&255))){if(!(64&Ne)){be=G[(65535&be)+(oe&(1<<Ne)-1)];continue r}W.msg="invalid distance code",v.mode=30;break e}if(Ue=65535&be,ee<(Ne&=15)&&(oe+=D[M++]<<ee,(ee+=8)<Ne&&(oe+=D[M++]<<ee,ee+=8)),N<(Ue+=oe&(1<<Ne)-1)){W.msg="invalid distance too far back",v.mode=30;break e}if(oe>>>=Ne,ee-=Ne,(Ne=$-_)<Ue){if(L<(Ne=Ue-Ne)&&v.sane){W.msg="invalid distance too far back",v.mode=30;break e}if(de=Q,(q=0)===X){if(q+=R-Ne,Ne<ye){for(ye-=Ne;qe[$++]=Q[q++],--Ne;);q=$-Ue,de=qe}}else if(X<Ne){if(q+=R+X-Ne,(Ne-=X)<ye){for(ye-=Ne;qe[$++]=Q[q++],--Ne;);if(q=0,X<ye){for(ye-=Ne=X;qe[$++]=Q[q++],--Ne;);q=$-Ue,de=qe}}}else if(q+=X-Ne,Ne<ye){for(ye-=Ne;qe[$++]=Q[q++],--Ne;);q=$-Ue,de=qe}for(;2<ye;)qe[$++]=de[q++],qe[$++]=de[q++],qe[$++]=de[q++],ye-=3;ye&&(qe[$++]=de[q++],1<ye&&(qe[$++]=de[q++]))}else{for(q=$-Ue;qe[$++]=qe[q++],qe[$++]=qe[q++],qe[$++]=qe[q++],2<(ye-=3););ye&&(qe[$++]=qe[q++],1<ye&&(qe[$++]=qe[q++]))}break}}break}}while(M<h&&$<F);M-=ye=ee>>3,oe&=(1<<(ee-=ye<<3))-1,W.next_in=M,W.next_out=$,W.avail_in=M<h?h-M+5:5-(M-h),W.avail_out=$<F?F-$+257:257-($-F),v.hold=oe,v.bits=ee}},{}],49:[function(P,Oe,ne){"use strict";var W=P("../utils/common"),S=P("./adler32"),v=P("./crc32"),M=P("./inffast"),h=P("./inftrees"),$=1,_=2,F=0,N=-2,R=1,L=852,X=592;function Q(q){return(q>>>24&255)+(q>>>8&65280)+((65280&q)<<8)+((255&q)<<24)}function oe(){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 W.Buf16(320),this.work=new W.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function ee(q){var de;return q&&q.state?(de=q.state,q.total_in=q.total_out=de.total=0,q.msg="",de.wrap&&(q.adler=1&de.wrap),de.mode=R,de.last=0,de.havedict=0,de.dmax=32768,de.head=null,de.hold=0,de.bits=0,de.lencode=de.lendyn=new W.Buf32(L),de.distcode=de.distdyn=new W.Buf32(X),de.sane=1,de.back=-1,F):N}function re(q){var de;return q&&q.state?((de=q.state).wsize=0,de.whave=0,de.wnext=0,ee(q)):N}function G(q,de){var D,qe;return q&&q.state?(qe=q.state,de<0?(D=0,de=-de):(D=1+(de>>4),de<48&&(de&=15)),de&&(de<8||15<de)?N:(qe.window!==null&&qe.wbits!==de&&(qe.window=null),qe.wrap=D,qe.wbits=de,re(q))):N}function K(q,de){var D,qe;return q?(qe=new oe,(q.state=qe).window=null,(D=G(q,de))!==F&&(q.state=null),D):N}var le,be,Ne=!0;function ye(q){if(Ne){var de;for(le=new W.Buf32(512),be=new W.Buf32(32),de=0;de<144;)q.lens[de++]=8;for(;de<256;)q.lens[de++]=9;for(;de<280;)q.lens[de++]=7;for(;de<288;)q.lens[de++]=8;for(h($,q.lens,0,288,le,0,q.work,{bits:9}),de=0;de<32;)q.lens[de++]=5;h(_,q.lens,0,32,be,0,q.work,{bits:5}),Ne=!1}q.lencode=le,q.lenbits=9,q.distcode=be,q.distbits=5}function Ue(q,de,D,qe){var Me,xe=q.state;return xe.window===null&&(xe.wsize=1<<xe.wbits,xe.wnext=0,xe.whave=0,xe.window=new W.Buf8(xe.wsize)),qe>=xe.wsize?(W.arraySet(xe.window,de,D-xe.wsize,xe.wsize,0),xe.wnext=0,xe.whave=xe.wsize):(qe<(Me=xe.wsize-xe.wnext)&&(Me=qe),W.arraySet(xe.window,de,D-qe,Me,xe.wnext),(qe-=Me)?(W.arraySet(xe.window,de,D-qe,qe,0),xe.wnext=qe,xe.whave=xe.wsize):(xe.wnext+=Me,xe.wnext===xe.wsize&&(xe.wnext=0),xe.whave<xe.wsize&&(xe.whave+=Me))),0}ne.inflateReset=re,ne.inflateReset2=G,ne.inflateResetKeep=ee,ne.inflateInit=function(q){return K(q,15)},ne.inflateInit2=K,ne.inflate=function(q,de){var D,qe,Me,xe,Te,ve,De,pe,Se,Xe,et,je,Ye,_t,kt,Ot,sr,rr,br,lr,V,dt,I,m,f=0,C=new W.Buf8(4),Y=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!q||!q.state||!q.output||!q.input&&q.avail_in!==0)return N;(D=q.state).mode===12&&(D.mode=13),Te=q.next_out,Me=q.output,De=q.avail_out,xe=q.next_in,qe=q.input,ve=q.avail_in,pe=D.hold,Se=D.bits,Xe=ve,et=De,dt=F;e:for(;;)switch(D.mode){case R:if(D.wrap===0){D.mode=13;break}for(;Se<16;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}if(2&D.wrap&&pe===35615){C[D.check=0]=255&pe,C[1]=pe>>>8&255,D.check=v(D.check,C,2,0),Se=pe=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&pe)<<8)+(pe>>8))%31){q.msg="incorrect header check",D.mode=30;break}if((15&pe)!=8){q.msg="unknown compression method",D.mode=30;break}if(Se-=4,V=8+(15&(pe>>>=4)),D.wbits===0)D.wbits=V;else if(V>D.wbits){q.msg="invalid window size",D.mode=30;break}D.dmax=1<<V,q.adler=D.check=1,D.mode=512&pe?10:12,Se=pe=0;break;case 2:for(;Se<16;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}if(D.flags=pe,(255&D.flags)!=8){q.msg="unknown compression method",D.mode=30;break}if(57344&D.flags){q.msg="unknown header flags set",D.mode=30;break}D.head&&(D.head.text=pe>>8&1),512&D.flags&&(C[0]=255&pe,C[1]=pe>>>8&255,D.check=v(D.check,C,2,0)),Se=pe=0,D.mode=3;case 3:for(;Se<32;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}D.head&&(D.head.time=pe),512&D.flags&&(C[0]=255&pe,C[1]=pe>>>8&255,C[2]=pe>>>16&255,C[3]=pe>>>24&255,D.check=v(D.check,C,4,0)),Se=pe=0,D.mode=4;case 4:for(;Se<16;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}D.head&&(D.head.xflags=255&pe,D.head.os=pe>>8),512&D.flags&&(C[0]=255&pe,C[1]=pe>>>8&255,D.check=v(D.check,C,2,0)),Se=pe=0,D.mode=5;case 5:if(1024&D.flags){for(;Se<16;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}D.length=pe,D.head&&(D.head.extra_len=pe),512&D.flags&&(C[0]=255&pe,C[1]=pe>>>8&255,D.check=v(D.check,C,2,0)),Se=pe=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(ve<(je=D.length)&&(je=ve),je&&(D.head&&(V=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),W.arraySet(D.head.extra,qe,xe,je,V)),512&D.flags&&(D.check=v(D.check,qe,je,xe)),ve-=je,xe+=je,D.length-=je),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(ve===0)break e;for(je=0;V=qe[xe+je++],D.head&&V&&D.length<65536&&(D.head.name+=String.fromCharCode(V)),V&&je<ve;);if(512&D.flags&&(D.check=v(D.check,qe,je,xe)),ve-=je,xe+=je,V)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(ve===0)break e;for(je=0;V=qe[xe+je++],D.head&&V&&D.length<65536&&(D.head.comment+=String.fromCharCode(V)),V&&je<ve;);if(512&D.flags&&(D.check=v(D.check,qe,je,xe)),ve-=je,xe+=je,V)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;Se<16;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}if(pe!==(65535&D.check)){q.msg="header crc mismatch",D.mode=30;break}Se=pe=0}D.head&&(D.head.hcrc=D.flags>>9&1,D.head.done=!0),q.adler=D.check=0,D.mode=12;break;case 10:for(;Se<32;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}q.adler=D.check=Q(pe),Se=pe=0,D.mode=11;case 11:if(D.havedict===0)return q.next_out=Te,q.avail_out=De,q.next_in=xe,q.avail_in=ve,D.hold=pe,D.bits=Se,2;q.adler=D.check=1,D.mode=12;case 12:if(de===5||de===6)break e;case 13:if(D.last){pe>>>=7&Se,Se-=7&Se,D.mode=27;break}for(;Se<3;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}switch(D.last=1&pe,Se-=1,3&(pe>>>=1)){case 0:D.mode=14;break;case 1:if(ye(D),D.mode=20,de!==6)break;pe>>>=2,Se-=2;break e;case 2:D.mode=17;break;case 3:q.msg="invalid block type",D.mode=30}pe>>>=2,Se-=2;break;case 14:for(pe>>>=7&Se,Se-=7&Se;Se<32;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}if((65535&pe)!=(pe>>>16^65535)){q.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&pe,Se=pe=0,D.mode=15,de===6)break e;case 15:D.mode=16;case 16:if(je=D.length){if(ve<je&&(je=ve),De<je&&(je=De),je===0)break e;W.arraySet(Me,qe,xe,je,Te),ve-=je,xe+=je,De-=je,Te+=je,D.length-=je;break}D.mode=12;break;case 17:for(;Se<14;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}if(D.nlen=257+(31&pe),pe>>>=5,Se-=5,D.ndist=1+(31&pe),pe>>>=5,Se-=5,D.ncode=4+(15&pe),pe>>>=4,Se-=4,286<D.nlen||30<D.ndist){q.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(;Se<3;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}D.lens[Y[D.have++]]=7&pe,pe>>>=3,Se-=3}for(;D.have<19;)D.lens[Y[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,I={bits:D.lenbits},dt=h(0,D.lens,0,19,D.lencode,0,D.work,I),D.lenbits=I.bits,dt){q.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=(f=D.lencode[pe&(1<<D.lenbits)-1])>>>16&255,sr=65535&f,!((kt=f>>>24)<=Se);){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}if(sr<16)pe>>>=kt,Se-=kt,D.lens[D.have++]=sr;else{if(sr===16){for(m=kt+2;Se<m;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}if(pe>>>=kt,Se-=kt,D.have===0){q.msg="invalid bit length repeat",D.mode=30;break}V=D.lens[D.have-1],je=3+(3&pe),pe>>>=2,Se-=2}else if(sr===17){for(m=kt+3;Se<m;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}Se-=kt,V=0,je=3+(7&(pe>>>=kt)),pe>>>=3,Se-=3}else{for(m=kt+7;Se<m;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}Se-=kt,V=0,je=11+(127&(pe>>>=kt)),pe>>>=7,Se-=7}if(D.have+je>D.nlen+D.ndist){q.msg="invalid bit length repeat",D.mode=30;break}for(;je--;)D.lens[D.have++]=V}}if(D.mode===30)break;if(D.lens[256]===0){q.msg="invalid code -- missing end-of-block",D.mode=30;break}if(D.lenbits=9,I={bits:D.lenbits},dt=h($,D.lens,0,D.nlen,D.lencode,0,D.work,I),D.lenbits=I.bits,dt){q.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,I={bits:D.distbits},dt=h(_,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,I),D.distbits=I.bits,dt){q.msg="invalid distances set",D.mode=30;break}if(D.mode=20,de===6)break e;case 20:D.mode=21;case 21:if(6<=ve&&258<=De){q.next_out=Te,q.avail_out=De,q.next_in=xe,q.avail_in=ve,D.hold=pe,D.bits=Se,M(q,et),Te=q.next_out,Me=q.output,De=q.avail_out,xe=q.next_in,qe=q.input,ve=q.avail_in,pe=D.hold,Se=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;Ot=(f=D.lencode[pe&(1<<D.lenbits)-1])>>>16&255,sr=65535&f,!((kt=f>>>24)<=Se);){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}if(Ot&&!(240&Ot)){for(rr=kt,br=Ot,lr=sr;Ot=(f=D.lencode[lr+((pe&(1<<rr+br)-1)>>rr)])>>>16&255,sr=65535&f,!(rr+(kt=f>>>24)<=Se);){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}pe>>>=rr,Se-=rr,D.back+=rr}if(pe>>>=kt,Se-=kt,D.back+=kt,D.length=sr,Ot===0){D.mode=26;break}if(32&Ot){D.back=-1,D.mode=12;break}if(64&Ot){q.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;Se<m;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}D.length+=pe&(1<<D.extra)-1,pe>>>=D.extra,Se-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;Ot=(f=D.distcode[pe&(1<<D.distbits)-1])>>>16&255,sr=65535&f,!((kt=f>>>24)<=Se);){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}if(!(240&Ot)){for(rr=kt,br=Ot,lr=sr;Ot=(f=D.distcode[lr+((pe&(1<<rr+br)-1)>>rr)])>>>16&255,sr=65535&f,!(rr+(kt=f>>>24)<=Se);){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}pe>>>=rr,Se-=rr,D.back+=rr}if(pe>>>=kt,Se-=kt,D.back+=kt,64&Ot){q.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;Se<m;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}D.offset+=pe&(1<<D.extra)-1,pe>>>=D.extra,Se-=D.extra,D.back+=D.extra}if(D.offset>D.dmax){q.msg="invalid distance too far back",D.mode=30;break}D.mode=25;case 25:if(De===0)break e;if(je=et-De,D.offset>je){if((je=D.offset-je)>D.whave&&D.sane){q.msg="invalid distance too far back",D.mode=30;break}Ye=je>D.wnext?(je-=D.wnext,D.wsize-je):D.wnext-je,je>D.length&&(je=D.length),_t=D.window}else _t=Me,Ye=Te-D.offset,je=D.length;for(De<je&&(je=De),De-=je,D.length-=je;Me[Te++]=_t[Ye++],--je;);D.length===0&&(D.mode=21);break;case 26:if(De===0)break e;Me[Te++]=D.length,De--,D.mode=21;break;case 27:if(D.wrap){for(;Se<32;){if(ve===0)break e;ve--,pe|=qe[xe++]<<Se,Se+=8}if(et-=De,q.total_out+=et,D.total+=et,et&&(q.adler=D.check=D.flags?v(D.check,Me,et,Te-et):S(D.check,Me,et,Te-et)),et=De,(D.flags?pe:Q(pe))!==D.check){q.msg="incorrect data check",D.mode=30;break}Se=pe=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;Se<32;){if(ve===0)break e;ve--,pe+=qe[xe++]<<Se,Se+=8}if(pe!==(4294967295&D.total)){q.msg="incorrect length check",D.mode=30;break}Se=pe=0}D.mode=29;case 29:dt=1;break e;case 30:dt=-3;break e;case 31:return-4;case 32:default:return N}return q.next_out=Te,q.avail_out=De,q.next_in=xe,q.avail_in=ve,D.hold=pe,D.bits=Se,(D.wsize||et!==q.avail_out&&D.mode<30&&(D.mode<27||de!==4))&&Ue(q,q.output,q.next_out,et-q.avail_out)?(D.mode=31,-4):(Xe-=q.avail_in,et-=q.avail_out,q.total_in+=Xe,q.total_out+=et,D.total+=et,D.wrap&&et&&(q.adler=D.check=D.flags?v(D.check,Me,et,q.next_out-et):S(D.check,Me,et,q.next_out-et)),q.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||de===4)&&dt===F&&(dt=-5),dt)},ne.inflateEnd=function(q){if(!q||!q.state)return N;var de=q.state;return de.window&&(de.window=null),q.state=null,F},ne.inflateGetHeader=function(q,de){var D;return q&&q.state&&2&(D=q.state).wrap?((D.head=de).done=!1,F):N},ne.inflateSetDictionary=function(q,de){var D,qe=de.length;return q&&q.state?(D=q.state).wrap!==0&&D.mode!==11?N:D.mode===11&&S(1,de,qe,0)!==D.check?-3:Ue(q,de,qe,qe)?(D.mode=31,-4):(D.havedict=1,F):N},ne.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(P,Oe,ne){"use strict";var W=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],v=[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],M=[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],h=[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];Oe.exports=function($,_,F,N,R,L,X,Q){var oe,ee,re,G,K,le,be,Ne,ye,Ue=Q.bits,q=0,de=0,D=0,qe=0,Me=0,xe=0,Te=0,ve=0,De=0,pe=0,Se=null,Xe=0,et=new W.Buf16(16),je=new W.Buf16(16),Ye=null,_t=0;for(q=0;q<=15;q++)et[q]=0;for(de=0;de<N;de++)et[_[F+de]]++;for(Me=Ue,qe=15;1<=qe&&et[qe]===0;qe--);if(qe<Me&&(Me=qe),qe===0)return R[L++]=20971520,R[L++]=20971520,Q.bits=1,0;for(D=1;D<qe&&et[D]===0;D++);for(Me<D&&(Me=D),q=ve=1;q<=15;q++)if(ve<<=1,(ve-=et[q])<0)return-1;if(0<ve&&($===0||qe!==1))return-1;for(je[1]=0,q=1;q<15;q++)je[q+1]=je[q]+et[q];for(de=0;de<N;de++)_[F+de]!==0&&(X[je[_[F+de]]++]=de);if(le=$===0?(Se=Ye=X,19):$===1?(Se=S,Xe-=257,Ye=v,_t-=257,256):(Se=M,Ye=h,-1),q=D,K=L,Te=de=pe=0,re=-1,G=(De=1<<(xe=Me))-1,$===1&&852<De||$===2&&592<De)return 1;for(;;){for(be=q-Te,ye=X[de]<le?(Ne=0,X[de]):X[de]>le?(Ne=Ye[_t+X[de]],Se[Xe+X[de]]):(Ne=96,0),oe=1<<q-Te,D=ee=1<<xe;R[K+(pe>>Te)+(ee-=oe)]=be<<24|Ne<<16|ye|0,ee!==0;);for(oe=1<<q-1;pe&oe;)oe>>=1;if(oe!==0?(pe&=oe-1,pe+=oe):pe=0,de++,--et[q]==0){if(q===qe)break;q=_[F+X[de]]}if(Me<q&&(pe&G)!==re){for(Te===0&&(Te=Me),K+=D,ve=1<<(xe=q-Te);xe+Te<qe&&!((ve-=et[xe+Te])<=0);)xe++,ve<<=1;if(De+=1<<xe,$===1&&852<De||$===2&&592<De)return 1;R[re=pe&G]=Me<<24|xe<<16|K-L|0}}return pe!==0&&(R[K+pe]=q-Te<<24|64<<16|0),Q.bits=Me,0}},{"../utils/common":41}],51:[function(P,Oe,ne){"use strict";Oe.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,Oe,ne){"use strict";var W=P("../utils/common"),S=0,v=1;function M(f){for(var C=f.length;0<=--C;)f[C]=0}var h=0,$=29,_=256,F=_+1+$,N=30,R=19,L=2*F+1,X=15,Q=16,oe=7,ee=256,re=16,G=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],be=[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],Ne=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],ye=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Ue=new Array(2*(F+2));M(Ue);var q=new Array(2*N);M(q);var de=new Array(512);M(de);var D=new Array(256);M(D);var qe=new Array($);M(qe);var Me,xe,Te,ve=new Array(N);function De(f,C,Y,Be,H){this.static_tree=f,this.extra_bits=C,this.extra_base=Y,this.elems=Be,this.max_length=H,this.has_stree=f&&f.length}function pe(f,C){this.dyn_tree=f,this.max_code=0,this.stat_desc=C}function Se(f){return f<256?de[f]:de[256+(f>>>7)]}function Xe(f,C){f.pending_buf[f.pending++]=255&C,f.pending_buf[f.pending++]=C>>>8&255}function et(f,C,Y){f.bi_valid>Q-Y?(f.bi_buf|=C<<f.bi_valid&65535,Xe(f,f.bi_buf),f.bi_buf=C>>Q-f.bi_valid,f.bi_valid+=Y-Q):(f.bi_buf|=C<<f.bi_valid&65535,f.bi_valid+=Y)}function je(f,C,Y){et(f,Y[2*C],Y[2*C+1])}function Ye(f,C){for(var Y=0;Y|=1&f,f>>>=1,Y<<=1,0<--C;);return Y>>>1}function _t(f,C,Y){var Be,H,ie=new Array(X+1),Qe=0;for(Be=1;Be<=X;Be++)ie[Be]=Qe=Qe+Y[Be-1]<<1;for(H=0;H<=C;H++){var we=f[2*H+1];we!==0&&(f[2*H]=Ye(ie[we]++,we))}}function kt(f){var C;for(C=0;C<F;C++)f.dyn_ltree[2*C]=0;for(C=0;C<N;C++)f.dyn_dtree[2*C]=0;for(C=0;C<R;C++)f.bl_tree[2*C]=0;f.dyn_ltree[2*ee]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0}function Ot(f){8<f.bi_valid?Xe(f,f.bi_buf):0<f.bi_valid&&(f.pending_buf[f.pending++]=f.bi_buf),f.bi_buf=0,f.bi_valid=0}function sr(f,C,Y,Be){var H=2*C,ie=2*Y;return f[H]<f[ie]||f[H]===f[ie]&&Be[C]<=Be[Y]}function rr(f,C,Y){for(var Be=f.heap[Y],H=Y<<1;H<=f.heap_len&&(H<f.heap_len&&sr(C,f.heap[H+1],f.heap[H],f.depth)&&H++,!sr(C,Be,f.heap[H],f.depth));)f.heap[Y]=f.heap[H],Y=H,H<<=1;f.heap[Y]=Be}function br(f,C,Y){var Be,H,ie,Qe,we=0;if(f.last_lit!==0)for(;Be=f.pending_buf[f.d_buf+2*we]<<8|f.pending_buf[f.d_buf+2*we+1],H=f.pending_buf[f.l_buf+we],we++,Be===0?je(f,H,C):(je(f,(ie=D[H])+_+1,C),(Qe=le[ie])!==0&&et(f,H-=qe[ie],Qe),je(f,ie=Se(--Be),Y),(Qe=be[ie])!==0&&et(f,Be-=ve[ie],Qe)),we<f.last_lit;);je(f,ee,C)}function lr(f,C){var Y,Be,H,ie=C.dyn_tree,Qe=C.stat_desc.static_tree,we=C.stat_desc.has_stree,ce=C.stat_desc.elems,ze=-1;for(f.heap_len=0,f.heap_max=L,Y=0;Y<ce;Y++)ie[2*Y]!==0?(f.heap[++f.heap_len]=ze=Y,f.depth[Y]=0):ie[2*Y+1]=0;for(;f.heap_len<2;)ie[2*(H=f.heap[++f.heap_len]=ze<2?++ze:0)]=1,f.depth[H]=0,f.opt_len--,we&&(f.static_len-=Qe[2*H+1]);for(C.max_code=ze,Y=f.heap_len>>1;1<=Y;Y--)rr(f,ie,Y);for(H=ce;Y=f.heap[1],f.heap[1]=f.heap[f.heap_len--],rr(f,ie,1),Be=f.heap[1],f.heap[--f.heap_max]=Y,f.heap[--f.heap_max]=Be,ie[2*H]=ie[2*Y]+ie[2*Be],f.depth[H]=(f.depth[Y]>=f.depth[Be]?f.depth[Y]:f.depth[Be])+1,ie[2*Y+1]=ie[2*Be+1]=H,f.heap[1]=H++,rr(f,ie,1),2<=f.heap_len;);f.heap[--f.heap_max]=f.heap[1],function(vt,he){var at,rt,ke,Fe,ct,Tt,Pt=he.dyn_tree,Yt=he.max_code,Fr=he.stat_desc.static_tree,Lr=he.stat_desc.has_stree,Nr=he.stat_desc.extra_bits,kr=he.stat_desc.extra_base,yr=he.stat_desc.max_length,dr=0;for(Fe=0;Fe<=X;Fe++)vt.bl_count[Fe]=0;for(Pt[2*vt.heap[vt.heap_max]+1]=0,at=vt.heap_max+1;at<L;at++)yr<(Fe=Pt[2*Pt[2*(rt=vt.heap[at])+1]+1]+1)&&(Fe=yr,dr++),Pt[2*rt+1]=Fe,Yt<rt||(vt.bl_count[Fe]++,ct=0,kr<=rt&&(ct=Nr[rt-kr]),Tt=Pt[2*rt],vt.opt_len+=Tt*(Fe+ct),Lr&&(vt.static_len+=Tt*(Fr[2*rt+1]+ct)));if(dr!==0){do{for(Fe=yr-1;vt.bl_count[Fe]===0;)Fe--;vt.bl_count[Fe]--,vt.bl_count[Fe+1]+=2,vt.bl_count[yr]--,dr-=2}while(0<dr);for(Fe=yr;Fe!==0;Fe--)for(rt=vt.bl_count[Fe];rt!==0;)Yt<(ke=vt.heap[--at])||(Pt[2*ke+1]!==Fe&&(vt.opt_len+=(Fe-Pt[2*ke+1])*Pt[2*ke],Pt[2*ke+1]=Fe),rt--)}}(f,C),_t(ie,ze,f.bl_count)}function V(f,C,Y){var Be,H,ie=-1,Qe=C[1],we=0,ce=7,ze=4;for(Qe===0&&(ce=138,ze=3),C[2*(Y+1)+1]=65535,Be=0;Be<=Y;Be++)H=Qe,Qe=C[2*(Be+1)+1],++we<ce&&H===Qe||(we<ze?f.bl_tree[2*H]+=we:H!==0?(H!==ie&&f.bl_tree[2*H]++,f.bl_tree[2*re]++):we<=10?f.bl_tree[2*G]++:f.bl_tree[2*K]++,ie=H,ze=(we=0)===Qe?(ce=138,3):H===Qe?(ce=6,3):(ce=7,4))}function dt(f,C,Y){var Be,H,ie=-1,Qe=C[1],we=0,ce=7,ze=4;for(Qe===0&&(ce=138,ze=3),Be=0;Be<=Y;Be++)if(H=Qe,Qe=C[2*(Be+1)+1],!(++we<ce&&H===Qe)){if(we<ze)for(;je(f,H,f.bl_tree),--we!=0;);else H!==0?(H!==ie&&(je(f,H,f.bl_tree),we--),je(f,re,f.bl_tree),et(f,we-3,2)):we<=10?(je(f,G,f.bl_tree),et(f,we-3,3)):(je(f,K,f.bl_tree),et(f,we-11,7));ie=H,ze=(we=0)===Qe?(ce=138,3):H===Qe?(ce=6,3):(ce=7,4)}}M(ve);var I=!1;function m(f,C,Y,Be){et(f,(h<<1)+(Be?1:0),3),function(H,ie,Qe,we){Ot(H),we&&(Xe(H,Qe),Xe(H,~Qe)),W.arraySet(H.pending_buf,H.window,ie,Qe,H.pending),H.pending+=Qe}(f,C,Y,!0)}ne._tr_init=function(f){I||(function(){var C,Y,Be,H,ie,Qe=new Array(X+1);for(H=Be=0;H<$-1;H++)for(qe[H]=Be,C=0;C<1<<le[H];C++)D[Be++]=H;for(D[Be-1]=H,H=ie=0;H<16;H++)for(ve[H]=ie,C=0;C<1<<be[H];C++)de[ie++]=H;for(ie>>=7;H<N;H++)for(ve[H]=ie<<7,C=0;C<1<<be[H]-7;C++)de[256+ie++]=H;for(Y=0;Y<=X;Y++)Qe[Y]=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(_t(Ue,F+1,Qe),C=0;C<N;C++)q[2*C+1]=5,q[2*C]=Ye(C,5);Me=new De(Ue,le,_+1,F,X),xe=new De(q,be,0,N,X),Te=new De(new Array(0),Ne,0,R,oe)}(),I=!0),f.l_desc=new pe(f.dyn_ltree,Me),f.d_desc=new pe(f.dyn_dtree,xe),f.bl_desc=new pe(f.bl_tree,Te),f.bi_buf=0,f.bi_valid=0,kt(f)},ne._tr_stored_block=m,ne._tr_flush_block=function(f,C,Y,Be){var H,ie,Qe=0;0<f.level?(f.strm.data_type===2&&(f.strm.data_type=function(we){var ce,ze=4093624447;for(ce=0;ce<=31;ce++,ze>>>=1)if(1&ze&&we.dyn_ltree[2*ce]!==0)return S;if(we.dyn_ltree[18]!==0||we.dyn_ltree[20]!==0||we.dyn_ltree[26]!==0)return v;for(ce=32;ce<_;ce++)if(we.dyn_ltree[2*ce]!==0)return v;return S}(f)),lr(f,f.l_desc),lr(f,f.d_desc),Qe=function(we){var ce;for(V(we,we.dyn_ltree,we.l_desc.max_code),V(we,we.dyn_dtree,we.d_desc.max_code),lr(we,we.bl_desc),ce=R-1;3<=ce&&we.bl_tree[2*ye[ce]+1]===0;ce--);return we.opt_len+=3*(ce+1)+5+5+4,ce}(f),H=f.opt_len+3+7>>>3,(ie=f.static_len+3+7>>>3)<=H&&(H=ie)):H=ie=Y+5,Y+4<=H&&C!==-1?m(f,C,Y,Be):f.strategy===4||ie===H?(et(f,2+(Be?1:0),3),br(f,Ue,q)):(et(f,4+(Be?1:0),3),function(we,ce,ze,vt){var he;for(et(we,ce-257,5),et(we,ze-1,5),et(we,vt-4,4),he=0;he<vt;he++)et(we,we.bl_tree[2*ye[he]+1],3);dt(we,we.dyn_ltree,ce-1),dt(we,we.dyn_dtree,ze-1)}(f,f.l_desc.max_code+1,f.d_desc.max_code+1,Qe+1),br(f,f.dyn_ltree,f.dyn_dtree)),kt(f),Be&&Ot(f)},ne._tr_tally=function(f,C,Y){return f.pending_buf[f.d_buf+2*f.last_lit]=C>>>8&255,f.pending_buf[f.d_buf+2*f.last_lit+1]=255&C,f.pending_buf[f.l_buf+f.last_lit]=255&Y,f.last_lit++,C===0?f.dyn_ltree[2*Y]++:(f.matches++,C--,f.dyn_ltree[2*(D[Y]+_+1)]++,f.dyn_dtree[2*Se(C)]++),f.last_lit===f.lit_bufsize-1},ne._tr_align=function(f){et(f,2,3),je(f,ee,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)}(f)}},{"../utils/common":41}],53:[function(P,Oe,ne){"use strict";Oe.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,Oe,ne){(function(W){(function(S,v){"use strict";if(!S.setImmediate){var M,h,$,_,F=1,N={},R=!1,L=S.document,X=Object.getPrototypeOf&&Object.getPrototypeOf(S);X=X&&X.setTimeout?X:S,M={}.toString.call(S.process)==="[object process]"?function(re){Ae.nextTick(function(){oe(re)})}:function(){if(S.postMessage&&!S.importScripts){var re=!0,G=S.onmessage;return S.onmessage=function(){re=!1},S.postMessage("","*"),S.onmessage=G,re}}()?(_="setImmediate$"+Math.random()+"$",S.addEventListener?S.addEventListener("message",ee,!1):S.attachEvent("onmessage",ee),function(re){S.postMessage(_+re,"*")}):S.MessageChannel?(($=new MessageChannel).port1.onmessage=function(re){oe(re.data)},function(re){$.port2.postMessage(re)}):L&&"onreadystatechange"in L.createElement("script")?(h=L.documentElement,function(re){var G=L.createElement("script");G.onreadystatechange=function(){oe(re),G.onreadystatechange=null,h.removeChild(G),G=null},h.appendChild(G)}):function(re){setTimeout(oe,0,re)},X.setImmediate=function(re){typeof re!="function"&&(re=new Function(""+re));for(var G=new Array(arguments.length-1),K=0;K<G.length;K++)G[K]=arguments[K+1];var le={callback:re,args:G};return N[F]=le,M(F),F++},X.clearImmediate=Q}function Q(re){delete N[re]}function oe(re){if(R)setTimeout(oe,0,re);else{var G=N[re];if(G){R=!0;try{(function(K){var le=K.callback,be=K.args;switch(be.length){case 0:le();break;case 1:le(be[0]);break;case 2:le(be[0],be[1]);break;case 3:le(be[0],be[1],be[2]);break;default:le.apply(v,be)}})(G)}finally{Q(re),R=!1}}}}function ee(re){re.source===S&&typeof re.data=="string"&&re.data.indexOf(_)===0&&oe(+re.data.slice(_.length))}})(typeof self=="undefined"?W===void 0?this:W:self)}).call(this,typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}]},{},[10])(10)})},5630:function(un,Ut,x){"use strict";var me=x(54476),Ae=x(33885),P=x(20068),Oe=x(42978),ne=x(75931),W=x(92310),S=x.n(W),v=x(18929),M=x(59301),h=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],$=(0,M.forwardRef)(function(_,F){var N,R=_.prefixCls,L=R===void 0?"rc-checkbox":R,X=_.className,Q=_.style,oe=_.checked,ee=_.disabled,re=_.defaultChecked,G=re===void 0?!1:re,K=_.type,le=K===void 0?"checkbox":K,be=_.title,Ne=_.onChange,ye=(0,ne.Z)(_,h),Ue=(0,M.useRef)(null),q=(0,v.Z)(G,{value:oe}),de=(0,Oe.Z)(q,2),D=de[0],qe=de[1];(0,M.useImperativeHandle)(F,function(){return{focus:function(){var ve;(ve=Ue.current)===null||ve===void 0||ve.focus()},blur:function(){var ve;(ve=Ue.current)===null||ve===void 0||ve.blur()},input:Ue.current}});var Me=S()(L,X,(N={},(0,P.Z)(N,"".concat(L,"-checked"),D),(0,P.Z)(N,"".concat(L,"-disabled"),ee),N)),xe=function(ve){ee||("checked"in _||qe(ve.target.checked),Ne==null||Ne({target:(0,Ae.Z)((0,Ae.Z)({},_),{},{type:le,checked:ve.target.checked}),stopPropagation:function(){ve.stopPropagation()},preventDefault:function(){ve.preventDefault()},nativeEvent:ve.nativeEvent}))};return M.createElement("span",{className:Me,title:be,style:Q},M.createElement("input",(0,me.Z)({},ye,{className:"".concat(L,"-input"),ref:Ue,onChange:xe,disabled:ee,checked:!!D,type:le})),M.createElement("span",{className:"".concat(L,"-inner")}))});Ut.Z=$},31561:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return le}});var me=x(54476),Ae=x(20068),P=x(42978),Oe=x(75931),ne=x(35593),W=x(92310),S=x.n(W),v=x(8654),M=x(59301),h=x(10228),$=x(16089),_=h.Z.ESC,F=h.Z.TAB;function N(be){var Ne=be.visible,ye=be.triggerRef,Ue=be.onVisibleChange,q=be.autoFocus,de=be.overlayRef,D=M.useRef(!1),qe=function(){if(Ne){var ve,De;(ve=ye.current)===null||ve===void 0||(De=ve.focus)===null||De===void 0||De.call(ve),Ue==null||Ue(!1)}},Me=function(){var ve;return(ve=de.current)!==null&&ve!==void 0&&ve.focus?(de.current.focus(),D.current=!0,!0):!1},xe=function(ve){switch(ve.keyCode){case _:qe();break;case F:{var De=!1;D.current||(De=Me()),De?ve.preventDefault():qe();break}}};M.useEffect(function(){return Ne?(window.addEventListener("keydown",xe),q&&(0,$.Z)(Me,3),function(){window.removeEventListener("keydown",xe),D.current=!1}):function(){D.current=!1}},[Ne])}var R=(0,M.forwardRef)(function(be,Ne){var ye=be.overlay,Ue=be.arrow,q=be.prefixCls,de=(0,M.useMemo)(function(){var qe;return typeof ye=="function"?qe=ye():qe=ye,qe},[ye]),D=(0,v.sQ)(Ne,de==null?void 0:de.ref);return M.createElement(M.Fragment,null,Ue&&M.createElement("div",{className:"".concat(q,"-arrow")}),M.cloneElement(de,{ref:(0,v.Yr)(de)?D:void 0}))}),L=R,X={adjustX:1,adjustY:1},Q=[0,0],oe={topLeft:{points:["bl","tl"],overflow:X,offset:[0,-4],targetOffset:Q},top:{points:["bc","tc"],overflow:X,offset:[0,-4],targetOffset:Q},topRight:{points:["br","tr"],overflow:X,offset:[0,-4],targetOffset:Q},bottomLeft:{points:["tl","bl"],overflow:X,offset:[0,4],targetOffset:Q},bottom:{points:["tc","bc"],overflow:X,offset:[0,4],targetOffset:Q},bottomRight:{points:["tr","br"],overflow:X,offset:[0,4],targetOffset:Q}},ee=oe,re=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function G(be,Ne){var ye,Ue=be.arrow,q=Ue===void 0?!1:Ue,de=be.prefixCls,D=de===void 0?"rc-dropdown":de,qe=be.transitionName,Me=be.animation,xe=be.align,Te=be.placement,ve=Te===void 0?"bottomLeft":Te,De=be.placements,pe=De===void 0?ee:De,Se=be.getPopupContainer,Xe=be.showAction,et=be.hideAction,je=be.overlayClassName,Ye=be.overlayStyle,_t=be.visible,kt=be.trigger,Ot=kt===void 0?["hover"]:kt,sr=be.autoFocus,rr=be.overlay,br=be.children,lr=be.onVisibleChange,V=(0,Oe.Z)(be,re),dt=M.useState(),I=(0,P.Z)(dt,2),m=I[0],f=I[1],C="visible"in be?_t:m,Y=M.useRef(null),Be=M.useRef(null),H=M.useRef(null);M.useImperativeHandle(Ne,function(){return Y.current});var ie=function(ke){f(ke),lr==null||lr(ke)};N({visible:C,triggerRef:H,onVisibleChange:ie,autoFocus:sr,overlayRef:Be});var Qe=function(ke){var Fe=be.onOverlayClick;f(!1),Fe&&Fe(ke)},we=function(){return M.createElement(L,{ref:Be,overlay:rr,prefixCls:D,arrow:q})},ce=function(){return typeof rr=="function"?we:we()},ze=function(){var ke=be.minOverlayWidthMatchTrigger,Fe=be.alignPoint;return"minOverlayWidthMatchTrigger"in be?ke:!Fe},vt=function(){var ke=be.openClassName;return ke!==void 0?ke:"".concat(D,"-open")},he=M.cloneElement(br,{className:S()((ye=br.props)===null||ye===void 0?void 0:ye.className,C&&vt()),ref:(0,v.Yr)(br)?(0,v.sQ)(H,br.ref):void 0}),at=et;return!at&&Ot.indexOf("contextMenu")!==-1&&(at=["click"]),M.createElement(ne.Z,(0,me.Z)({builtinPlacements:pe},V,{prefixCls:D,ref:Y,popupClassName:S()(je,(0,Ae.Z)({},"".concat(D,"-show-arrow"),q)),popupStyle:Ye,action:Ot,showAction:Xe,hideAction:at,popupPlacement:ve,popupAlign:xe,popupTransitionName:qe,popupAnimation:Me,popupVisible:C,stretch:ze()?"minWidth":"",popup:ce(),onPopupVisibleChange:ie,onPopupClick:Qe,getPopupContainer:Se}),he)}var K=M.forwardRef(G),le=K},93681:function(un,Ut,x){"use strict";x.r(Ut),x.d(Ut,{BaseInput:function(){return h},default:function(){return oe}});var me=x(54476),Ae=x(33885),P=x(20068),Oe=x(76190),ne=x(92310),W=x.n(ne),S=x(59301),v=x(5643),M=function(re){var G,K,le=re.inputElement,be=re.prefixCls,Ne=re.prefix,ye=re.suffix,Ue=re.addonBefore,q=re.addonAfter,de=re.className,D=re.style,qe=re.disabled,Me=re.readOnly,xe=re.focused,Te=re.triggerFocus,ve=re.allowClear,De=re.value,pe=re.handleReset,Se=re.hidden,Xe=re.classes,et=re.classNames,je=re.dataAttrs,Ye=re.styles,_t=re.components,kt=(_t==null?void 0:_t.affixWrapper)||"span",Ot=(_t==null?void 0:_t.groupWrapper)||"span",sr=(_t==null?void 0:_t.wrapper)||"span",rr=(_t==null?void 0:_t.groupAddon)||"span",br=(0,S.useRef)(null),lr=function(we){var ce;(ce=br.current)!==null&&ce!==void 0&&ce.contains(we.target)&&(Te==null||Te())},V=function(){var we;if(!ve)return null;var ce=!qe&&!Me&&De,ze="".concat(be,"-clear-icon"),vt=(0,Oe.Z)(ve)==="object"&&ve!==null&&ve!==void 0&&ve.clearIcon?ve.clearIcon:"\u2716";return S.createElement("span",{onClick:pe,onMouseDown:function(at){return at.preventDefault()},className:W()(ze,(we={},(0,P.Z)(we,"".concat(ze,"-hidden"),!ce),(0,P.Z)(we,"".concat(ze,"-has-suffix"),!!ye),we)),role:"button",tabIndex:-1},vt)},dt=(0,S.cloneElement)(le,{value:De,hidden:Se,className:W()((G=le.props)===null||G===void 0?void 0:G.className,!(0,v.X3)(re)&&!(0,v.He)(re)&&de)||null,style:(0,Ae.Z)((0,Ae.Z)({},(K=le.props)===null||K===void 0?void 0:K.style),!(0,v.X3)(re)&&!(0,v.He)(re)?D:{})});if((0,v.X3)(re)){var I,m="".concat(be,"-affix-wrapper"),f=W()(m,(I={},(0,P.Z)(I,"".concat(m,"-disabled"),qe),(0,P.Z)(I,"".concat(m,"-focused"),xe),(0,P.Z)(I,"".concat(m,"-readonly"),Me),(0,P.Z)(I,"".concat(m,"-input-with-clear-btn"),ye&&ve&&De),I),!(0,v.He)(re)&&de,Xe==null?void 0:Xe.affixWrapper,et==null?void 0:et.affixWrapper),C=(ye||ve)&&S.createElement("span",{className:W()("".concat(be,"-suffix"),et==null?void 0:et.suffix),style:Ye==null?void 0:Ye.suffix},V(),ye);dt=S.createElement(kt,(0,me.Z)({className:f,style:(0,Ae.Z)((0,Ae.Z)({},(0,v.He)(re)?void 0:D),Ye==null?void 0:Ye.affixWrapper),hidden:!(0,v.He)(re)&&Se,onClick:lr},je==null?void 0:je.affixWrapper,{ref:br}),Ne&&S.createElement("span",{className:W()("".concat(be,"-prefix"),et==null?void 0:et.prefix),style:Ye==null?void 0:Ye.prefix},Ne),(0,S.cloneElement)(le,{value:De,hidden:null}),C)}if((0,v.He)(re)){var Y="".concat(be,"-group"),Be="".concat(Y,"-addon"),H=W()("".concat(be,"-wrapper"),Y,Xe==null?void 0:Xe.wrapper),ie=W()("".concat(be,"-group-wrapper"),de,Xe==null?void 0:Xe.group);return S.createElement(Ot,{className:ie,style:D,hidden:Se},S.createElement(sr,{className:H},Ue&&S.createElement(rr,{className:Be},Ue),(0,S.cloneElement)(dt,{hidden:null}),q&&S.createElement(rr,{className:Be},q)))}return dt},h=M,$=x(94480),_=x(42978),F=x(75931),N=x(18929),R=x(2738),L=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],X=(0,S.forwardRef)(function(ee,re){var G=ee.autoComplete,K=ee.onChange,le=ee.onFocus,be=ee.onBlur,Ne=ee.onPressEnter,ye=ee.onKeyDown,Ue=ee.prefixCls,q=Ue===void 0?"rc-input":Ue,de=ee.disabled,D=ee.htmlSize,qe=ee.className,Me=ee.maxLength,xe=ee.suffix,Te=ee.showCount,ve=ee.type,De=ve===void 0?"text":ve,pe=ee.classes,Se=ee.classNames,Xe=ee.styles,et=(0,F.Z)(ee,L),je=(0,N.Z)(ee.defaultValue,{value:ee.value}),Ye=(0,_.Z)(je,2),_t=Ye[0],kt=Ye[1],Ot=(0,S.useState)(!1),sr=(0,_.Z)(Ot,2),rr=sr[0],br=sr[1],lr=(0,S.useRef)(null),V=function(ie){lr.current&&(0,v.nH)(lr.current,ie)};(0,S.useImperativeHandle)(re,function(){return{focus:V,blur:function(){var ie;(ie=lr.current)===null||ie===void 0||ie.blur()},setSelectionRange:function(ie,Qe,we){var ce;(ce=lr.current)===null||ce===void 0||ce.setSelectionRange(ie,Qe,we)},select:function(){var ie;(ie=lr.current)===null||ie===void 0||ie.select()},input:lr.current}}),(0,S.useEffect)(function(){br(function(H){return H&&de?!1:H})},[de]);var dt=function(ie){ee.value===void 0&&kt(ie.target.value),lr.current&&(0,v.rJ)(lr.current,ie,K)},I=function(ie){Ne&&ie.key==="Enter"&&Ne(ie),ye==null||ye(ie)},m=function(ie){br(!0),le==null||le(ie)},f=function(ie){br(!1),be==null||be(ie)},C=function(ie){kt(""),V(),lr.current&&(0,v.rJ)(lr.current,ie,K)},Y=function(){var ie=(0,R.Z)(ee,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return S.createElement("input",(0,me.Z)({autoComplete:G},ie,{onChange:dt,onFocus:m,onBlur:f,onKeyDown:I,className:W()(q,(0,P.Z)({},"".concat(q,"-disabled"),de),Se==null?void 0:Se.input),style:Xe==null?void 0:Xe.input,ref:lr,size:D,type:De}))},Be=function(){var ie=Number(Me)>0;if(xe||Te){var Qe=(0,v.D7)(_t),we=(0,$.Z)(Qe).length,ce=(0,Oe.Z)(Te)==="object"?Te.formatter({value:Qe,count:we,maxLength:Me}):"".concat(we).concat(ie?" / ".concat(Me):"");return S.createElement(S.Fragment,null,!!Te&&S.createElement("span",{className:W()("".concat(q,"-show-count-suffix"),(0,P.Z)({},"".concat(q,"-show-count-has-suffix"),!!xe),Se==null?void 0:Se.count),style:(0,Ae.Z)({},Xe==null?void 0:Xe.count)},ce),xe)}return null};return S.createElement(h,(0,me.Z)({},et,{prefixCls:q,className:qe,inputElement:Y(),handleReset:C,value:(0,v.D7)(_t),focused:rr,triggerFocus:V,suffix:Be(),disabled:de,classes:pe,classNames:Se,styles:Xe}))}),Q=X,oe=Q},5643:function(un,Ut,x){"use strict";x.d(Ut,{D7:function(){return ne},He:function(){return me},X3:function(){return Ae},nH:function(){return Oe},rJ:function(){return P}});function me(W){return!!(W.addonBefore||W.addonAfter)}function Ae(W){return!!(W.prefix||W.suffix||W.allowClear)}function P(W,S,v,M){if(v){var h=S;if(S.type==="click"){var $=W.cloneNode(!0);h=Object.create(S,{target:{value:$},currentTarget:{value:$}}),$.value="",v(h);return}if(M!==void 0){h=Object.create(S,{target:{value:W},currentTarget:{value:W}}),W.value=M,v(h);return}v(h)}}function Oe(W,S){if(W){W.focus(S);var v=S||{},M=v.cursor;if(M){var h=W.value.length;switch(M){case"start":W.setSelectionRange(0,0);break;case"end":W.setSelectionRange(h,h);break;default:W.setSelectionRange(0,h)}}}}function ne(W){return typeof W=="undefined"||W===null?"":String(W)}},15285:function(un,Ut,x){"use strict";x.d(Ut,{iz:function(){return jr},ck:function(){return dn},BW:function(){return an},sN:function(){return dn},Wd:function(){return Mt},ZP:function(){return Gn},Xl:function(){return ye}});var me=x(54476),Ae=x(20068),P=x(33885),Oe=x(94480),ne=x(42978),W=x(75931),S=x(92310),v=x.n(S),M=x(83836),h=x(18929),$=x(13697),_=x(48736),F=x(59301),N=x(4676),R=F.createContext(null);function L(Vt,Xt){return Vt===void 0?null:"".concat(Vt,"-").concat(Xt)}function X(Vt){var Xt=F.useContext(R);return L(Xt,Vt)}var Q=x(80547),oe=["children","locked"],ee=F.createContext(null);function re(Vt,Xt){var er=(0,P.Z)({},Vt);return Object.keys(Xt).forEach(function(fr){var Rt=Xt[fr];Rt!==void 0&&(er[fr]=Rt)}),er}function G(Vt){var Xt=Vt.children,er=Vt.locked,fr=(0,W.Z)(Vt,oe),Rt=F.useContext(ee),Jt=(0,Q.Z)(function(){return re(Rt,fr)},[Rt,fr],function(ar,Or){return!er&&(ar[0]!==Or[0]||!(0,$.Z)(ar[1],Or[1],!0))});return F.createElement(ee.Provider,{value:Jt},Xt)}var K=[],le=F.createContext(null);function be(){return F.useContext(le)}var Ne=F.createContext(K);function ye(Vt){var Xt=F.useContext(Ne);return F.useMemo(function(){return Vt!==void 0?[].concat((0,Oe.Z)(Xt),[Vt]):Xt},[Xt,Vt])}var Ue=F.createContext(null),q=F.createContext({}),de=q,D=x(29194);function qe(Vt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,D.Z)(Vt)){var er=Vt.nodeName.toLowerCase(),fr=["input","select","textarea","button"].includes(er)||Vt.isContentEditable||er==="a"&&!!Vt.getAttribute("href"),Rt=Vt.getAttribute("tabindex"),Jt=Number(Rt),ar=null;return Rt&&!Number.isNaN(Jt)?ar=Jt:fr&&ar===null&&(ar=0),fr&&Vt.disabled&&(ar=null),ar!==null&&(ar>=0||Xt&&ar<0)}return!1}function Me(Vt){var Xt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,er=(0,Oe.Z)(Vt.querySelectorAll("*")).filter(function(fr){return qe(fr,Xt)});return qe(Vt,Xt)&&er.unshift(Vt),er}var xe=null;function Te(){xe=document.activeElement}function ve(){xe=null}function De(){if(xe)try{xe.focus()}catch(Vt){}}function pe(Vt,Xt){if(Xt.keyCode===9){var er=Me(Vt),fr=er[Xt.shiftKey?0:er.length-1],Rt=fr===document.activeElement||Vt===document.activeElement;if(Rt){var Jt=er[Xt.shiftKey?er.length-1:0];Jt.focus(),Xt.preventDefault()}}}var Se=x(10228),Xe=x(16089),et=Se.Z.LEFT,je=Se.Z.RIGHT,Ye=Se.Z.UP,_t=Se.Z.DOWN,kt=Se.Z.ENTER,Ot=Se.Z.ESC,sr=Se.Z.HOME,rr=Se.Z.END,br=[Ye,_t,et,je];function lr(Vt,Xt,er,fr){var Rt,Jt,ar,Or,bn="prev",Cn="next",li="children",ri="parent";if(Vt==="inline"&&fr===kt)return{inlineTrigger:!0};var _i=(Rt={},(0,Ae.Z)(Rt,Ye,bn),(0,Ae.Z)(Rt,_t,Cn),Rt),Yn=(Jt={},(0,Ae.Z)(Jt,et,er?Cn:bn),(0,Ae.Z)(Jt,je,er?bn:Cn),(0,Ae.Z)(Jt,_t,li),(0,Ae.Z)(Jt,kt,li),Jt),zn=(ar={},(0,Ae.Z)(ar,Ye,bn),(0,Ae.Z)(ar,_t,Cn),(0,Ae.Z)(ar,kt,li),(0,Ae.Z)(ar,Ot,ri),(0,Ae.Z)(ar,et,er?li:ri),(0,Ae.Z)(ar,je,er?ri:li),ar),yi={inline:_i,horizontal:Yn,vertical:zn,inlineSub:_i,horizontalSub:zn,verticalSub:zn},bi=(Or=yi["".concat(Vt).concat(Xt?"":"Sub")])===null||Or===void 0?void 0:Or[fr];switch(bi){case bn:return{offset:-1,sibling:!0};case Cn:return{offset:1,sibling:!0};case ri:return{offset:-1,sibling:!1};case li:return{offset:1,sibling:!1};default:return null}}function V(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 er=Vt||document.activeElement;er;){if(Xt.has(er))return er;er=er.parentElement}return null}function I(Vt,Xt){var er=Me(Vt,!0);return er.filter(function(fr){return Xt.has(fr)})}function m(Vt,Xt,er){var fr=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Vt)return null;var Rt=I(Vt,Xt),Jt=Rt.length,ar=Rt.findIndex(function(Or){return er===Or});return fr<0?ar===-1?ar=Jt-1:ar-=1:fr>0&&(ar+=1),ar=(ar+Jt)%Jt,Rt[ar]}var f=function(Xt,er){var fr=new Set,Rt=new Map,Jt=new Map;return Xt.forEach(function(ar){var Or=document.querySelector("[data-menu-id='".concat(L(er,ar),"']"));Or&&(fr.add(Or),Jt.set(Or,ar),Rt.set(ar,Or))}),{elements:fr,key2element:Rt,element2key:Jt}};function C(Vt,Xt,er,fr,Rt,Jt,ar,Or,bn,Cn){var li=F.useRef(),ri=F.useRef();ri.current=Xt;var _i=function(){Xe.Z.cancel(li.current)};return F.useEffect(function(){return function(){_i()}},[]),function(Yn){var zn=Yn.which;if([].concat(br,[kt,Ot,sr,rr]).includes(zn)){var yi=Jt(),bi=f(yi,fr),wi=bi,ci=wi.elements,xi=wi.key2element,Xi=wi.element2key,ti=xi.get(Xt),Ti=dt(ti,ci),za=Xi.get(Ti),si=lr(Vt,ar(za,!0).length===1,er,zn);if(!si&&zn!==sr&&zn!==rr)return;(br.includes(zn)||[sr,rr].includes(zn))&&Yn.preventDefault();var fn=function(Aa){if(Aa){var Co=Aa,Wn=Aa.querySelector("a");Wn!=null&&Wn.getAttribute("href")&&(Co=Wn);var In=Xi.get(Aa);Or(In),_i(),li.current=(0,Xe.Z)(function(){ri.current===In&&Co.focus()})}};if([sr,rr].includes(zn)||si.sibling||!Ti){var sn;!Ti||Vt==="inline"?sn=Rt.current:sn=V(Ti);var Xn,Kn=I(sn,ci);zn===sr?Xn=Kn[0]:zn===rr?Xn=Kn[Kn.length-1]:Xn=m(sn,ci,Ti,si.offset),fn(Xn)}else if(si.inlineTrigger)bn(za);else if(si.offset>0)bn(za,!0),_i(),li.current=(0,Xe.Z)(function(){bi=f(yi,fr);var Ra=Ti.getAttribute("aria-controls"),Aa=document.getElementById(Ra),Co=m(Aa,bi.elements);fn(Co)},5);else if(si.offset<0){var di=ar(za,!0),qi=di[di.length-2],Fi=xi.get(qi);bn(qi,!1),fn(Fi)}}Cn==null||Cn(Yn)}}function Y(Vt){Promise.resolve().then(Vt)}var Be="__RC_UTIL_PATH_SPLIT__",H=function(Xt){return Xt.join(Be)},ie=function(Xt){return Xt.split(Be)},Qe="rc-menu-more";function we(){var Vt=F.useState({}),Xt=(0,ne.Z)(Vt,2),er=Xt[1],fr=(0,F.useRef)(new Map),Rt=(0,F.useRef)(new Map),Jt=F.useState([]),ar=(0,ne.Z)(Jt,2),Or=ar[0],bn=ar[1],Cn=(0,F.useRef)(0),li=(0,F.useRef)(!1),ri=function(){li.current||er({})},_i=(0,F.useCallback)(function(xi,Xi){var ti=H(Xi);Rt.current.set(ti,xi),fr.current.set(xi,ti),Cn.current+=1;var Ti=Cn.current;Y(function(){Ti===Cn.current&&ri()})},[]),Yn=(0,F.useCallback)(function(xi,Xi){var ti=H(Xi);Rt.current.delete(ti),fr.current.delete(xi)},[]),zn=(0,F.useCallback)(function(xi){bn(xi)},[]),yi=(0,F.useCallback)(function(xi,Xi){var ti=fr.current.get(xi)||"",Ti=ie(ti);return Xi&&Or.includes(Ti[0])&&Ti.unshift(Qe),Ti},[Or]),bi=(0,F.useCallback)(function(xi,Xi){return xi.some(function(ti){var Ti=yi(ti,!0);return Ti.includes(Xi)})},[yi]),wi=function(){var Xi=(0,Oe.Z)(fr.current.keys());return Or.length&&Xi.push(Qe),Xi},ci=(0,F.useCallback)(function(xi){var Xi="".concat(fr.current.get(xi)).concat(Be),ti=new Set;return(0,Oe.Z)(Rt.current.keys()).forEach(function(Ti){Ti.startsWith(Xi)&&ti.add(Rt.current.get(Ti))}),ti},[]);return F.useEffect(function(){return function(){li.current=!0}},[]),{registerPath:_i,unregisterPath:Yn,refreshOverflowKeys:zn,isSubPathKey:bi,getKeyPath:yi,getKeys:wi,getSubPathKeys:ci}}function ce(Vt){var Xt=F.useRef(Vt);Xt.current=Vt;var er=F.useCallback(function(){for(var fr,Rt=arguments.length,Jt=new Array(Rt),ar=0;ar<Rt;ar++)Jt[ar]=arguments[ar];return(fr=Xt.current)===null||fr===void 0?void 0:fr.call.apply(fr,[Xt].concat(Jt))},[]);return Vt?er:void 0}var ze=Math.random().toFixed(5).toString().slice(2),vt=0;function he(Vt){var Xt=(0,h.Z)(Vt,{value:Vt}),er=(0,ne.Z)(Xt,2),fr=er[0],Rt=er[1];return F.useEffect(function(){vt+=1;var Jt="".concat(ze,"-").concat(vt);Rt("rc-menu-uuid-".concat(Jt))},[]),fr}var at=x(67732),rt=x(83652),ke=x(42403),Fe=x(158),ct=x(2738),Tt=x(8654);function Pt(Vt,Xt,er,fr){var Rt=F.useContext(ee),Jt=Rt.activeKey,ar=Rt.onActive,Or=Rt.onInactive,bn={active:Jt===Vt};return Xt||(bn.onMouseEnter=function(Cn){er==null||er({key:Vt,domEvent:Cn}),ar(Vt)},bn.onMouseLeave=function(Cn){fr==null||fr({key:Vt,domEvent:Cn}),Or(Vt)}),bn}function Yt(Vt){var Xt=F.useContext(ee),er=Xt.mode,fr=Xt.rtl,Rt=Xt.inlineIndent;if(er!=="inline")return null;var Jt=Vt;return fr?{paddingRight:Jt*Rt}:{paddingLeft:Jt*Rt}}function Fr(Vt){var Xt=Vt.icon,er=Vt.props,fr=Vt.children,Rt;return Xt===null||Xt===!1?null:(typeof Xt=="function"?Rt=F.createElement(Xt,(0,P.Z)({},er)):typeof Xt!="boolean"&&(Rt=Xt),Rt||fr||null)}var Lr=["item"];function Nr(Vt){var Xt=Vt.item,er=(0,W.Z)(Vt,Lr);return Object.defineProperty(er,"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}}),er}var kr=["title","attribute","elementRef"],yr=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],dr=["active"],Qr=function(Vt){(0,ke.Z)(er,Vt);var Xt=(0,Fe.Z)(er);function er(){return(0,at.Z)(this,er),Xt.apply(this,arguments)}return(0,rt.Z)(er,[{key:"render",value:function(){var Rt=this.props,Jt=Rt.title,ar=Rt.attribute,Or=Rt.elementRef,bn=(0,W.Z)(Rt,kr),Cn=(0,ct.Z)(bn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,_.ZP)(!ar,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),F.createElement(M.Z.Item,(0,me.Z)({},ar,{title:typeof Jt=="string"?Jt:void 0},Cn,{ref:Or}))}}]),er}(F.Component),An=F.forwardRef(function(Vt,Xt){var er,fr=Vt.style,Rt=Vt.className,Jt=Vt.eventKey,ar=Vt.warnKey,Or=Vt.disabled,bn=Vt.itemIcon,Cn=Vt.children,li=Vt.role,ri=Vt.onMouseEnter,_i=Vt.onMouseLeave,Yn=Vt.onClick,zn=Vt.onKeyDown,yi=Vt.onFocus,bi=(0,W.Z)(Vt,yr),wi=X(Jt),ci=F.useContext(ee),xi=ci.prefixCls,Xi=ci.onItemClick,ti=ci.disabled,Ti=ci.overflowDisabled,za=ci.itemIcon,si=ci.selectedKeys,fn=ci.onActive,sn=F.useContext(de),Xn=sn._internalRenderMenuItem,Kn="".concat(xi,"-item"),di=F.useRef(),qi=F.useRef(),Fi=ti||Or,Ra=(0,Tt.x1)(Xt,qi),Aa=ye(Jt),Co=function(mo){return{key:Jt,keyPath:(0,Oe.Z)(Aa).reverse(),item:di.current,domEvent:mo}},Wn=bn||za,In=Pt(Jt,Fi,ri,_i),Di=In.active,Ji=(0,W.Z)(In,dr),Ma=si.includes(Jt),Ms=Yt(Aa.length),Za=function(mo){if(!Fi){var xs=Co(mo);Yn==null||Yn(Nr(xs)),Xi(xs)}},fa=function(mo){if(zn==null||zn(mo),mo.which===Se.Z.ENTER){var xs=Co(mo);Yn==null||Yn(Nr(xs)),Xi(xs)}},_o=function(mo){fn(Jt),yi==null||yi(mo)},Bo={};Vt.role==="option"&&(Bo["aria-selected"]=Ma);var To=F.createElement(Qr,(0,me.Z)({ref:di,elementRef:Ra,role:li===null?"none":li||"menuitem",tabIndex:Or?null:-1,"data-menu-id":Ti&&wi?null:wi},bi,Ji,Bo,{component:"li","aria-disabled":Or,style:(0,P.Z)((0,P.Z)({},Ms),fr),className:v()(Kn,(er={},(0,Ae.Z)(er,"".concat(Kn,"-active"),Di),(0,Ae.Z)(er,"".concat(Kn,"-selected"),Ma),(0,Ae.Z)(er,"".concat(Kn,"-disabled"),Fi),er),Rt),onClick:Za,onKeyDown:fa,onFocus:_o}),Cn,F.createElement(Fr,{props:(0,P.Z)((0,P.Z)({},Vt),{},{isSelected:Ma}),icon:Wn}));return Xn&&(To=Xn(To,Vt,{selected:Ma})),To});function Tn(Vt,Xt){var er=Vt.eventKey,fr=be(),Rt=ye(er);return F.useEffect(function(){if(fr)return fr.registerPath(er,Rt),function(){fr.unregisterPath(er,Rt)}},[Rt]),fr?null:F.createElement(An,(0,me.Z)({},Vt,{ref:Xt}))}var dn=F.forwardRef(Tn),kn=["className","children"],Qi=function(Xt,er){var fr=Xt.className,Rt=Xt.children,Jt=(0,W.Z)(Xt,kn),ar=F.useContext(ee),Or=ar.prefixCls,bn=ar.mode,Cn=ar.rtl;return F.createElement("ul",(0,me.Z)({className:v()(Or,Cn&&"".concat(Or,"-rtl"),"".concat(Or,"-sub"),"".concat(Or,"-").concat(bn==="inline"?"inline":"vertical"),fr),role:"menu"},Jt,{"data-menu-list":!0,ref:er}),Rt)},Pr=F.forwardRef(Qi);Pr.displayName="SubMenuList";var wn=Pr,Si=x(11592);function ui(Vt,Xt){return(0,Si.Z)(Vt).map(function(er,fr){if(F.isValidElement(er)){var Rt,Jt,ar=er.key,Or=(Rt=(Jt=er.props)===null||Jt===void 0?void 0:Jt.eventKey)!==null&&Rt!==void 0?Rt:ar,bn=Or==null;bn&&(Or="tmp_key-".concat([].concat((0,Oe.Z)(Xt),[fr]).join("-")));var Cn={key:Or,eventKey:Or};return F.cloneElement(er,Cn)}return er})}var Zi=x(35593),Ei={adjustX:1,adjustY:1},ji={topLeft:{points:["bl","tl"],overflow:Ei},topRight:{points:["br","tr"],overflow:Ei},bottomLeft:{points:["tl","bl"],overflow:Ei},bottomRight:{points:["tr","br"],overflow:Ei},leftTop:{points:["tr","tl"],overflow:Ei},leftBottom:{points:["br","bl"],overflow:Ei},rightTop:{points:["tl","tr"],overflow:Ei},rightBottom:{points:["bl","br"],overflow:Ei}},eo={topLeft:{points:["bl","tl"],overflow:Ei},topRight:{points:["br","tr"],overflow:Ei},bottomLeft:{points:["tl","bl"],overflow:Ei},bottomRight:{points:["tr","br"],overflow:Ei},rightTop:{points:["tr","tl"],overflow:Ei},rightBottom:{points:["br","bl"],overflow:Ei},leftTop:{points:["tl","tr"],overflow:Ei},leftBottom:{points:["bl","br"],overflow:Ei}},Ki=null;function ei(Vt,Xt,er){if(Xt)return Xt;if(er)return er[Vt]||er.other}var pi={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function vi(Vt){var Xt=Vt.prefixCls,er=Vt.visible,fr=Vt.children,Rt=Vt.popup,Jt=Vt.popupStyle,ar=Vt.popupClassName,Or=Vt.popupOffset,bn=Vt.disabled,Cn=Vt.mode,li=Vt.onVisibleChange,ri=F.useContext(ee),_i=ri.getPopupContainer,Yn=ri.rtl,zn=ri.subMenuOpenDelay,yi=ri.subMenuCloseDelay,bi=ri.builtinPlacements,wi=ri.triggerSubMenuAction,ci=ri.forceSubMenuRender,xi=ri.rootClassName,Xi=ri.motion,ti=ri.defaultMotions,Ti=F.useState(!1),za=(0,ne.Z)(Ti,2),si=za[0],fn=za[1],sn=Yn?(0,P.Z)((0,P.Z)({},eo),bi):(0,P.Z)((0,P.Z)({},ji),bi),Xn=pi[Cn],Kn=ei(Cn,Xi,ti),di=F.useRef(Kn);Cn!=="inline"&&(di.current=Kn);var qi=(0,P.Z)((0,P.Z)({},di.current),{},{leavedClassName:"".concat(Xt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),Fi=F.useRef();return F.useEffect(function(){return Fi.current=(0,Xe.Z)(function(){fn(er)}),function(){Xe.Z.cancel(Fi.current)}},[er]),F.createElement(Zi.Z,{prefixCls:Xt,popupClassName:v()("".concat(Xt,"-popup"),(0,Ae.Z)({},"".concat(Xt,"-rtl"),Yn),ar,xi),stretch:Cn==="horizontal"?"minWidth":null,getPopupContainer:_i,builtinPlacements:sn,popupPlacement:Xn,popupVisible:si,popup:Rt,popupStyle:Jt,popupAlign:Or&&{offset:Or},action:bn?[]:[wi],mouseEnterDelay:zn,mouseLeaveDelay:yi,onPopupVisibleChange:li,forceRender:ci,popupMotion:qi,fresh:!0},fr)}var $e=x(77900);function _e(Vt){var Xt=Vt.id,er=Vt.open,fr=Vt.keyPath,Rt=Vt.children,Jt="inline",ar=F.useContext(ee),Or=ar.prefixCls,bn=ar.forceSubMenuRender,Cn=ar.motion,li=ar.defaultMotions,ri=ar.mode,_i=F.useRef(!1);_i.current=ri===Jt;var Yn=F.useState(!_i.current),zn=(0,ne.Z)(Yn,2),yi=zn[0],bi=zn[1],wi=_i.current?er:!1;F.useEffect(function(){_i.current&&bi(!1)},[ri]);var ci=(0,P.Z)({},ei(Jt,Cn,li));fr.length>1&&(ci.motionAppear=!1);var xi=ci.onVisibleChanged;return ci.onVisibleChanged=function(Xi){return!_i.current&&!Xi&&bi(!0),xi==null?void 0:xi(Xi)},yi?null:F.createElement(G,{mode:Jt,locked:!_i.current},F.createElement($e.default,(0,me.Z)({visible:wi},ci,{forceRender:bn,removeOnLeave:!1,leavedClassName:"".concat(Or,"-hidden")}),function(Xi){var ti=Xi.className,Ti=Xi.style;return F.createElement(wn,{id:Xt,className:ti,style:Ti},Rt)}))}var Le=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],Ie=["active"],Dt=function(Xt){var er,fr=Xt.style,Rt=Xt.className,Jt=Xt.title,ar=Xt.eventKey,Or=Xt.warnKey,bn=Xt.disabled,Cn=Xt.internalPopupClose,li=Xt.children,ri=Xt.itemIcon,_i=Xt.expandIcon,Yn=Xt.popupClassName,zn=Xt.popupOffset,yi=Xt.popupStyle,bi=Xt.onClick,wi=Xt.onMouseEnter,ci=Xt.onMouseLeave,xi=Xt.onTitleClick,Xi=Xt.onTitleMouseEnter,ti=Xt.onTitleMouseLeave,Ti=(0,W.Z)(Xt,Le),za=X(ar),si=F.useContext(ee),fn=si.prefixCls,sn=si.mode,Xn=si.openKeys,Kn=si.disabled,di=si.overflowDisabled,qi=si.activeKey,Fi=si.selectedKeys,Ra=si.itemIcon,Aa=si.expandIcon,Co=si.onItemClick,Wn=si.onOpenChange,In=si.onActive,Di=F.useContext(de),Ji=Di._internalRenderSubMenuItem,Ma=F.useContext(Ue),Ms=Ma.isSubPathKey,Za=ye(),fa="".concat(fn,"-submenu"),_o=Kn||bn,Bo=F.useRef(),To=F.useRef(),Ps=ri!=null?ri:Ra,mo=_i!=null?_i:Aa,xs=Xn.includes(ar),Ts=!di&&xs,$s=Ms(Fi,ar),Uo=Pt(ar,_o,Xi,ti),Ro=Uo.active,Cs=(0,W.Z)(Uo,Ie),el=F.useState(!1),vl=(0,ne.Z)(el,2),tc=vl[0],rc=vl[1],Rl=function(Ss){_o||rc(Ss)},Zs=function(Ss){Rl(!0),wi==null||wi({key:ar,domEvent:Ss})},kc=function(Ss){Rl(!1),ci==null||ci({key:ar,domEvent:Ss})},Ql=F.useMemo(function(){return Ro||(sn!=="inline"?tc||Ms([qi],ar):!1)},[sn,Ro,qi,tc,ar,Ms]),Kl=Yt(Za.length),Vs=function(Ss){_o||(xi==null||xi({key:ar,domEvent:Ss}),sn==="inline"&&Wn(ar,!xs))},os=ce(function(Bs){bi==null||bi(Nr(Bs)),Co(Bs)}),ni=function(Ss){sn!=="inline"&&Wn(ar,Ss)},ca=function(){In(ar)},ta=za&&"".concat(za,"-popup"),oa=F.createElement("div",(0,me.Z)({role:"menuitem",style:Kl,className:"".concat(fa,"-title"),tabIndex:_o?null:-1,ref:Bo,title:typeof Jt=="string"?Jt:null,"data-menu-id":di&&za?null:za,"aria-expanded":Ts,"aria-haspopup":!0,"aria-controls":ta,"aria-disabled":_o,onClick:Vs,onFocus:ca},Cs),Jt,F.createElement(Fr,{icon:sn!=="horizontal"?mo:void 0,props:(0,P.Z)((0,P.Z)({},Xt),{},{isOpen:Ts,isSubMenu:!0})},F.createElement("i",{className:"".concat(fa,"-arrow")}))),Na=F.useRef(sn);if(sn!=="inline"&&Za.length>1?Na.current="vertical":Na.current=sn,!di){var so=Na.current;oa=F.createElement(vi,{mode:so,prefixCls:fa,visible:!Cn&&Ts&&sn!=="inline",popupClassName:Yn,popupOffset:zn,popupStyle:yi,popup:F.createElement(G,{mode:so==="horizontal"?"vertical":so},F.createElement(wn,{id:ta,ref:To},li)),disabled:_o,onVisibleChange:ni},oa)}var Ws=F.createElement(M.Z.Item,(0,me.Z)({role:"none"},Ti,{component:"li",style:fr,className:v()(fa,"".concat(fa,"-").concat(sn),Rt,(er={},(0,Ae.Z)(er,"".concat(fa,"-open"),Ts),(0,Ae.Z)(er,"".concat(fa,"-active"),Ql),(0,Ae.Z)(er,"".concat(fa,"-selected"),$s),(0,Ae.Z)(er,"".concat(fa,"-disabled"),_o),er)),onMouseEnter:Zs,onMouseLeave:kc}),oa,!di&&F.createElement(_e,{id:ta,open:Ts,keyPath:Za},li));return Ji&&(Ws=Ji(Ws,Xt,{selected:$s,active:Ql,open:Ts,disabled:_o})),F.createElement(G,{onItemClick:os,mode:sn==="horizontal"?"vertical":sn,itemIcon:Ps,expandIcon:mo},Ws)};function Mt(Vt){var Xt=Vt.eventKey,er=Vt.children,fr=ye(Xt),Rt=ui(er,fr),Jt=be();F.useEffect(function(){if(Jt)return Jt.registerPath(Xt,fr),function(){Jt.unregisterPath(Xt,fr)}},[fr]);var ar;return Jt?ar=Rt:ar=F.createElement(Dt,Vt,Rt),F.createElement(Ne.Provider,{value:fr},ar)}var Sr=x(76190),nr=["className","title","eventKey","children"],Dr=["children"],Hr=function(Xt){var er=Xt.className,fr=Xt.title,Rt=Xt.eventKey,Jt=Xt.children,ar=(0,W.Z)(Xt,nr),Or=F.useContext(ee),bn=Or.prefixCls,Cn="".concat(bn,"-item-group");return F.createElement("li",(0,me.Z)({role:"presentation"},ar,{onClick:function(ri){return ri.stopPropagation()},className:v()(Cn,er)}),F.createElement("div",{role:"presentation",className:"".concat(Cn,"-title"),title:typeof fr=="string"?fr:void 0},fr),F.createElement("ul",{role:"group",className:"".concat(Cn,"-list")},Jt))};function an(Vt){var Xt=Vt.children,er=(0,W.Z)(Vt,Dr),fr=ye(er.eventKey),Rt=ui(Xt,fr),Jt=be();return Jt?Rt:F.createElement(Hr,(0,ct.Z)(er,["warnKey"]),Rt)}function jr(Vt){var Xt=Vt.className,er=Vt.style,fr=F.useContext(ee),Rt=fr.prefixCls,Jt=be();return Jt?null:F.createElement("li",{role:"separator",className:v()("".concat(Rt,"-item-divider"),Xt),style:er})}var Rr=["label","children","key","type"];function en(Vt){return(Vt||[]).map(function(Xt,er){if(Xt&&(0,Sr.Z)(Xt)==="object"){var fr=Xt,Rt=fr.label,Jt=fr.children,ar=fr.key,Or=fr.type,bn=(0,W.Z)(fr,Rr),Cn=ar!=null?ar:"tmp-".concat(er);return Jt||Or==="group"?Or==="group"?F.createElement(an,(0,me.Z)({key:Cn},bn,{title:Rt}),en(Jt)):F.createElement(Mt,(0,me.Z)({key:Cn},bn,{title:Rt}),en(Jt)):Or==="divider"?F.createElement(jr,(0,me.Z)({key:Cn},bn)):F.createElement(dn,(0,me.Z)({key:Cn},bn),Rt)}return null}).filter(function(Xt){return Xt})}function yn(Vt,Xt,er){var fr=Vt;return Xt&&(fr=en(Xt)),ui(fr,er)}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"],Dn=[],Qn=F.forwardRef(function(Vt,Xt){var er,fr,Rt=Vt,Jt=Rt.prefixCls,ar=Jt===void 0?"rc-menu":Jt,Or=Rt.rootClassName,bn=Rt.style,Cn=Rt.className,li=Rt.tabIndex,ri=li===void 0?0:li,_i=Rt.items,Yn=Rt.children,zn=Rt.direction,yi=Rt.id,bi=Rt.mode,wi=bi===void 0?"vertical":bi,ci=Rt.inlineCollapsed,xi=Rt.disabled,Xi=Rt.disabledOverflow,ti=Rt.subMenuOpenDelay,Ti=ti===void 0?.1:ti,za=Rt.subMenuCloseDelay,si=za===void 0?.1:za,fn=Rt.forceSubMenuRender,sn=Rt.defaultOpenKeys,Xn=Rt.openKeys,Kn=Rt.activeKey,di=Rt.defaultActiveFirst,qi=Rt.selectable,Fi=qi===void 0?!0:qi,Ra=Rt.multiple,Aa=Ra===void 0?!1:Ra,Co=Rt.defaultSelectedKeys,Wn=Rt.selectedKeys,In=Rt.onSelect,Di=Rt.onDeselect,Ji=Rt.inlineIndent,Ma=Ji===void 0?24:Ji,Ms=Rt.motion,Za=Rt.defaultMotions,fa=Rt.triggerSubMenuAction,_o=fa===void 0?"hover":fa,Bo=Rt.builtinPlacements,To=Rt.itemIcon,Ps=Rt.expandIcon,mo=Rt.overflowedIndicator,xs=mo===void 0?"...":mo,Ts=Rt.overflowedIndicatorPopupClassName,$s=Rt.getPopupContainer,Uo=Rt.onClick,Ro=Rt.onOpenChange,Cs=Rt.onKeyDown,el=Rt.openAnimation,vl=Rt.openTransitionName,tc=Rt._internalRenderMenuItem,rc=Rt._internalRenderSubMenuItem,Rl=(0,W.Z)(Rt,on),Zs=F.useMemo(function(){return yn(Yn,_i,Dn)},[Yn,_i]),kc=F.useState(!1),Ql=(0,ne.Z)(kc,2),Kl=Ql[0],Vs=Ql[1],os=F.useRef(),ni=he(yi),ca=zn==="rtl",ta=(0,h.Z)(sn,{value:Xn,postState:function(Oo){return Oo||Dn}}),oa=(0,ne.Z)(ta,2),Na=oa[0],so=oa[1],Ws=function(Oo){var qo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function bc(){so(Oo),Ro==null||Ro(Oo)}qo?(0,N.flushSync)(bc):bc()},Bs=F.useState(Na),Ss=(0,ne.Z)(Bs,2),vs=Ss[0],to=Ss[1],Qa=F.useRef(!1),ss=F.useMemo(function(){return(wi==="inline"||wi==="vertical")&&ci?["vertical",ci]:[wi,!1]},[wi,ci]),ls=(0,ne.Z)(ss,2),Ls=ls[0],Jo=ls[1],Io=Ls==="inline",hu=F.useState(Ls),rA=(0,ne.Z)(hu,2),lc=rA[0],pu=rA[1],cl=F.useState(Jo),mu=(0,ne.Z)(cl,2),tl=mu[0],bs=mu[1];F.useEffect(function(){pu(Ls),bs(Jo),Qa.current&&(Io?so(vs):Ws(Dn))},[Ls,Jo]);var qc=F.useState(0),Us=(0,ne.Z)(qc,2),Pu=Us[0],cc=Us[1],Hl=Pu>=Zs.length-1||lc!=="horizontal"||Xi;F.useEffect(function(){Io&&to(Na)},[Na]),F.useEffect(function(){return Qa.current=!0,function(){Qa.current=!1}},[]);var ro=we(),Gs=ro.registerPath,gu=ro.unregisterPath,EA=ro.refreshOverflowKeys,cs=ro.isSubPathKey,Ba=ro.getKeyPath,ya=ro.getKeys,rs=ro.getSubPathKeys,bo=F.useMemo(function(){return{registerPath:Gs,unregisterPath:gu}},[Gs,gu]),$o=F.useMemo(function(){return{isSubPathKey:cs}},[cs]);F.useEffect(function(){EA(Hl?Dn:Zs.slice(Pu+1).map(function(Yo){return Yo.key}))},[Pu,Hl]);var Zo=(0,h.Z)(Kn||di&&((er=Zs[0])===null||er===void 0?void 0:er.key),{value:Kn}),Do=(0,ne.Z)(Zo,2),Es=Do[0],nc=Do[1],Vc=ce(function(Yo){nc(Yo)}),Xs=ce(function(){nc(void 0)});(0,F.useImperativeHandle)(Xt,function(){return{list:os.current,focus:function(Oo){var qo,bc=ya(),jl=f(bc,ni),XA=jl.elements,bu=jl.key2element,Zu=jl.element2key,Fd=I(os.current,XA),Md=Es!=null?Es:Fd[0]?Zu.get(Fd[0]):(qo=Zs.find(function(Fo){return!Fo.props.disabled}))===null||qo===void 0?void 0:qo.key,Vu=bu.get(Md);if(Md&&Vu){var Wu;Vu==null||(Wu=Vu.focus)===null||Wu===void 0||Wu.call(Vu,Oo)}}}});var vu=(0,h.Z)(Co||[],{value:Wn,postState:function(Oo){return Array.isArray(Oo)?Oo:Oo==null?Dn:[Oo]}}),wl=(0,ne.Z)(vu,2),eu=wl[0],rl=wl[1],_d=function(Oo){if(Fi){var qo=Oo.key,bc=eu.includes(qo),jl;Aa?bc?jl=eu.filter(function(bu){return bu!==qo}):jl=[].concat((0,Oe.Z)(eu),[qo]):jl=[qo],rl(jl);var XA=(0,P.Z)((0,P.Z)({},Oo),{},{selectedKeys:jl});bc?Di==null||Di(XA):In==null||In(XA)}!Aa&&Na.length&&lc!=="inline"&&Ws(Dn)},nA=ce(function(Yo){Uo==null||Uo(Nr(Yo)),_d(Yo)}),$u=ce(function(Yo,Oo){var qo=Na.filter(function(jl){return jl!==Yo});if(Oo)qo.push(Yo);else if(lc!=="inline"){var bc=rs(Yo);qo=qo.filter(function(jl){return!bc.has(jl)})}(0,$.Z)(Na,qo,!0)||Ws(qo,!0)}),uf=function(Oo,qo){var bc=qo!=null?qo:!Na.includes(Oo);$u(Oo,bc)},Wc=C(lc,Es,ca,ni,os,ya,Ba,nc,uf,Cs);F.useEffect(function(){Vs(!0)},[]);var GA=F.useMemo(function(){return{_internalRenderMenuItem:tc,_internalRenderSubMenuItem:rc}},[tc,rc]),Dc=lc!=="horizontal"||Xi?Zs:Zs.map(function(Yo,Oo){return F.createElement(G,{key:Yo.key,overflowDisabled:Oo>Pu},Yo)}),Id=F.createElement(M.Z,(0,me.Z)({id:yi,ref:os,prefixCls:"".concat(ar,"-overflow"),component:"ul",itemComponent:dn,className:v()(ar,"".concat(ar,"-root"),"".concat(ar,"-").concat(lc),Cn,(fr={},(0,Ae.Z)(fr,"".concat(ar,"-inline-collapsed"),tl),(0,Ae.Z)(fr,"".concat(ar,"-rtl"),ca),fr),Or),dir:zn,style:bn,role:"menu",tabIndex:ri,data:Dc,renderRawItem:function(Oo){return Oo},renderRawRest:function(Oo){var qo=Oo.length,bc=qo?Zs.slice(-qo):null;return F.createElement(Mt,{eventKey:Qe,title:xs,disabled:Hl,internalPopupClose:qo===0,popupClassName:Ts},bc)},maxCount:lc!=="horizontal"||Xi?M.Z.INVALIDATE:M.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Oo){cc(Oo)},onKeyDown:Wc},Rl));return F.createElement(de.Provider,{value:GA},F.createElement(R.Provider,{value:ni},F.createElement(G,{prefixCls:ar,rootClassName:Or,mode:lc,openKeys:Na,rtl:ca,disabled:xi,motion:Kl?Ms:null,defaultMotions:Kl?Za:null,activeKey:Es,onActive:Vc,onInactive:Xs,selectedKeys:eu,inlineIndent:Ma,subMenuOpenDelay:Ti,subMenuCloseDelay:si,forceSubMenuRender:fn,builtinPlacements:Bo,triggerSubMenuAction:_o,getPopupContainer:$s,itemIcon:To,expandIcon:Ps,onItemClick:nA,onOpenChange:$u},F.createElement(Ue.Provider,{value:$o},Id),F.createElement("div",{style:{display:"none"},"aria-hidden":!0},F.createElement(le.Provider,{value:bo},Zs)))))}),Ai=Qn,On=Ai;On.Item=dn,On.SubMenu=Mt,On.ItemGroup=an,On.Divider=jr;var Gn=On},83836:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return Te}});var me=x(54476),Ae=x(33885),P=x(42978),Oe=x(75931),ne=x(59301),W=x(92310),S=x.n(W),v=x(29301),M=x(34280),h=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$=void 0;function _(ve,De){var pe=ve.prefixCls,Se=ve.invalidate,Xe=ve.item,et=ve.renderItem,je=ve.responsive,Ye=ve.responsiveDisabled,_t=ve.registerSize,kt=ve.itemKey,Ot=ve.className,sr=ve.style,rr=ve.children,br=ve.display,lr=ve.order,V=ve.component,dt=V===void 0?"div":V,I=(0,Oe.Z)(ve,h),m=je&&!br;function f(ie){_t(kt,ie)}ne.useEffect(function(){return function(){f(null)}},[]);var C=et&&Xe!==$?et(Xe,{index:lr}):rr,Y;Se||(Y={opacity:m?0:1,height:m?0:$,overflowY:m?"hidden":$,order:je?lr:$,pointerEvents:m?"none":$,position:m?"absolute":$});var Be={};m&&(Be["aria-hidden"]=!0);var H=ne.createElement(dt,(0,me.Z)({className:S()(!Se&&pe,Ot),style:(0,Ae.Z)((0,Ae.Z)({},Y),sr)},Be,I,{ref:De}),C);return je&&(H=ne.createElement(v.Z,{onResize:function(Qe){var we=Qe.offsetWidth;f(we)},disabled:Ye},H)),H}var F=ne.forwardRef(_);F.displayName="Item";var N=F,R=x(6089),L=x(4676),X=x(16089);function Q(ve){if(typeof MessageChannel=="undefined")(0,X.Z)(ve);else{var De=new MessageChannel;De.port1.onmessage=function(){return ve()},De.port2.postMessage(void 0)}}function oe(){var ve=ne.useRef(null),De=function(Se){ve.current||(ve.current=[],Q(function(){(0,L.unstable_batchedUpdates)(function(){ve.current.forEach(function(Xe){Xe()}),ve.current=null})})),ve.current.push(Se)};return De}function ee(ve,De){var pe=ne.useState(De),Se=(0,P.Z)(pe,2),Xe=Se[0],et=Se[1],je=(0,R.Z)(function(Ye){ve(function(){et(Ye)})});return[Xe,je]}var re=ne.createContext(null),G=["component"],K=["className"],le=["className"],be=function(De,pe){var Se=ne.useContext(re);if(!Se){var Xe=De.component,et=Xe===void 0?"div":Xe,je=(0,Oe.Z)(De,G);return ne.createElement(et,(0,me.Z)({},je,{ref:pe}))}var Ye=Se.className,_t=(0,Oe.Z)(Se,K),kt=De.className,Ot=(0,Oe.Z)(De,le);return ne.createElement(re.Provider,{value:null},ne.createElement(N,(0,me.Z)({ref:pe,className:S()(Ye,kt)},_t,Ot)))},Ne=ne.forwardRef(be);Ne.displayName="RawItem";var ye=Ne,Ue=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],q="responsive",de="invalidate";function D(ve){return"+ ".concat(ve.length," ...")}function qe(ve,De){var pe=ve.prefixCls,Se=pe===void 0?"rc-overflow":pe,Xe=ve.data,et=Xe===void 0?[]:Xe,je=ve.renderItem,Ye=ve.renderRawItem,_t=ve.itemKey,kt=ve.itemWidth,Ot=kt===void 0?10:kt,sr=ve.ssr,rr=ve.style,br=ve.className,lr=ve.maxCount,V=ve.renderRest,dt=ve.renderRawRest,I=ve.prefix,m=ve.suffix,f=ve.component,C=f===void 0?"div":f,Y=ve.itemComponent,Be=ve.onVisibleChange,H=(0,Oe.Z)(ve,Ue),ie=sr==="full",Qe=oe(),we=ee(Qe,null),ce=(0,P.Z)(we,2),ze=ce[0],vt=ce[1],he=ze||0,at=ee(Qe,new Map),rt=(0,P.Z)(at,2),ke=rt[0],Fe=rt[1],ct=ee(Qe,0),Tt=(0,P.Z)(ct,2),Pt=Tt[0],Yt=Tt[1],Fr=ee(Qe,0),Lr=(0,P.Z)(Fr,2),Nr=Lr[0],kr=Lr[1],yr=ee(Qe,0),dr=(0,P.Z)(yr,2),Qr=dr[0],An=dr[1],Tn=ee(Qe,0),dn=(0,P.Z)(Tn,2),kn=dn[0],Qi=dn[1],Pr=(0,ne.useState)(null),wn=(0,P.Z)(Pr,2),Si=wn[0],ui=wn[1],Zi=(0,ne.useState)(null),Ei=(0,P.Z)(Zi,2),ji=Ei[0],eo=Ei[1],Ki=ne.useMemo(function(){return ji===null&&ie?Number.MAX_SAFE_INTEGER:ji||0},[ji,ze]),ei=(0,ne.useState)(!1),pi=(0,P.Z)(ei,2),vi=pi[0],$e=pi[1],_e="".concat(Se,"-item"),Le=Math.max(Pt,Nr),Ie=lr===q,Dt=et.length&&Ie,Mt=lr===de,Sr=Dt||typeof lr=="number"&&et.length>lr,nr=(0,ne.useMemo)(function(){var Jt=et;return Dt?ze===null&&ie?Jt=et:Jt=et.slice(0,Math.min(et.length,he/Ot)):typeof lr=="number"&&(Jt=et.slice(0,lr)),Jt},[et,Ot,ze,lr,Dt]),Dr=(0,ne.useMemo)(function(){return Dt?et.slice(Ki+1):et.slice(nr.length)},[et,nr,Dt,Ki]),Hr=(0,ne.useCallback)(function(Jt,ar){var Or;return typeof _t=="function"?_t(Jt):(Or=_t&&(Jt==null?void 0:Jt[_t]))!==null&&Or!==void 0?Or:ar},[_t]),an=(0,ne.useCallback)(je||function(Jt){return Jt},[je]);function jr(Jt,ar,Or){ji===Jt&&(ar===void 0||ar===Si)||(eo(Jt),Or||($e(Jt<et.length-1),Be==null||Be(Jt)),ar!==void 0&&ui(ar))}function Rr(Jt,ar){vt(ar.clientWidth)}function en(Jt,ar){Fe(function(Or){var bn=new Map(Or);return ar===null?bn.delete(Jt):bn.set(Jt,ar),bn})}function yn(Jt,ar){kr(ar),Yt(Nr)}function on(Jt,ar){An(ar)}function Dn(Jt,ar){Qi(ar)}function Qn(Jt){return ke.get(Hr(nr[Jt],Jt))}(0,M.Z)(function(){if(he&&typeof Le=="number"&&nr){var Jt=Qr+kn,ar=nr.length,Or=ar-1;if(!ar){jr(0,null);return}for(var bn=0;bn<ar;bn+=1){var Cn=Qn(bn);if(ie&&(Cn=Cn||0),Cn===void 0){jr(bn-1,void 0,!0);break}if(Jt+=Cn,Or===0&&Jt<=he||bn===Or-1&&Jt+Qn(Or)<=he){jr(Or,null);break}else if(Jt+Le>he){jr(bn-1,Jt-Cn-kn+Nr);break}}m&&Qn(0)+kn>he&&ui(null)}},[he,ke,Nr,Qr,kn,Hr,nr]);var Ai=vi&&!!Dr.length,On={};Si!==null&&Dt&&(On={position:"absolute",left:Si,top:0});var Gn={prefixCls:_e,responsive:Dt,component:Y,invalidate:Mt},Vt=Ye?function(Jt,ar){var Or=Hr(Jt,ar);return ne.createElement(re.Provider,{key:Or,value:(0,Ae.Z)((0,Ae.Z)({},Gn),{},{order:ar,item:Jt,itemKey:Or,registerSize:en,display:ar<=Ki})},Ye(Jt,ar))}:function(Jt,ar){var Or=Hr(Jt,ar);return ne.createElement(N,(0,me.Z)({},Gn,{order:ar,key:Or,item:Jt,renderItem:an,itemKey:Or,registerSize:en,display:ar<=Ki}))},Xt={order:Ai?Ki:Number.MAX_SAFE_INTEGER,className:"".concat(_e,"-rest"),registerSize:yn,display:Ai},er=V||D,fr=dt?ne.createElement(re.Provider,{value:(0,Ae.Z)((0,Ae.Z)({},Gn),Xt)},dt(Dr)):ne.createElement(N,(0,me.Z)({},Gn,Xt),typeof er=="function"?er(Dr):er),Rt=ne.createElement(C,(0,me.Z)({className:S()(!Mt&&Se,br),style:rr,ref:De},H),I&&ne.createElement(N,(0,me.Z)({},Gn,{responsive:Ie,responsiveDisabled:!Dt,order:-1,className:"".concat(_e,"-prefix"),registerSize:on,display:!0}),I),nr.map(Vt),Sr?fr:null,m&&ne.createElement(N,(0,me.Z)({},Gn,{responsive:Ie,responsiveDisabled:!Dt,order:Ki,className:"".concat(_e,"-suffix"),registerSize:Dn,display:!0,style:On}),m));return Ie?ne.createElement(v.Z,{onResize:Rr,disabled:!Dt},Rt):Rt}var Me=ne.forwardRef(qe);Me.displayName="Overflow",Me.Item=ye,Me.RESPONSIVE=q,Me.INVALIDATE=de;var xe=Me,Te=xe},17115:function(un,Ut,x){"use strict";x.d(Ut,{ZP:function(){return S}});var me=x(42978),Ae=x(59301),P=x(47273),Oe=0,ne=(0,P.Z)();function W(){var v;return ne?(v=Oe,Oe+=1):v="TEST_OR_SSR",v}function S(v){var M=Ae.useState(),h=(0,me.Z)(M,2),$=h[0],_=h[1];return Ae.useEffect(function(){_("rc_select_".concat(W()))},[]),v||$}},77861:function(un,Ut,x){"use strict";x.d(Ut,{Ac:function(){return ze},Xo:function(){return Nr},Wx:function(){return yr},ZP:function(){return _e},lk:function(){return re}});var me=x(54476),Ae=x(94480),P=x(20068),Oe=x(33885),ne=x(42978),W=x(75931),S=x(76190),v=x(18929),M=x(48736),h=x(59301),$=x(92310),_=x.n($),F=x(34280),N=x(49658),R=x(10228),L=x(8654),X=function(Ie){var Dt=Ie.className,Mt=Ie.customizeIcon,Sr=Ie.customizeIconProps,nr=Ie.onMouseDown,Dr=Ie.onClick,Hr=Ie.children,an;return typeof Mt=="function"?an=Mt(Sr):an=Mt,h.createElement("span",{className:Dt,onMouseDown:function(Rr){Rr.preventDefault(),nr&&nr(Rr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Dr,"aria-hidden":!0},an!==void 0?an:h.createElement("span",{className:_()(Dt.split(/\s+/).map(function(jr){return"".concat(jr,"-icon")}))},Hr))},Q=X;function oe(Le,Ie,Dt,Mt,Sr){var nr=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Dr=arguments.length>6?arguments[6]:void 0,Hr=arguments.length>7?arguments[7]:void 0,an=h.useMemo(function(){if((0,S.Z)(Mt)==="object")return Mt.clearIcon;if(Sr)return Sr},[Mt,Sr]),jr=h.useMemo(function(){return!!(!nr&&Mt&&(Dt.length||Dr)&&!(Hr==="combobox"&&Dr===""))},[Mt,nr,Dt.length,Dr,Hr]);return{allowClear:jr,clearIcon:h.createElement(Q,{className:"".concat(Le,"-clear"),onMouseDown:Ie,customizeIcon:an},"\xD7")}}var ee=h.createContext(null);function re(){return h.useContext(ee)}function G(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,Ie=h.useState(!1),Dt=(0,ne.Z)(Ie,2),Mt=Dt[0],Sr=Dt[1],nr=h.useRef(null),Dr=function(){window.clearTimeout(nr.current)};h.useEffect(function(){return Dr},[]);var Hr=function(jr,Rr){Dr(),nr.current=window.setTimeout(function(){Sr(jr),Rr&&Rr()},Le)};return[Mt,Hr,Dr]}function K(){var Le=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,Ie=h.useRef(null),Dt=h.useRef(null);h.useEffect(function(){return function(){window.clearTimeout(Dt.current)}},[]);function Mt(Sr){(Sr||Ie.current===null)&&(Ie.current=Sr),window.clearTimeout(Dt.current),Dt.current=window.setTimeout(function(){Ie.current=null},Le)}return[function(){return Ie.current},Mt]}function le(Le,Ie,Dt,Mt){var Sr=h.useRef(null);Sr.current={open:Ie,triggerOpen:Dt,customizedTrigger:Mt},h.useEffect(function(){function nr(Dr){var Hr;if(!((Hr=Sr.current)!==null&&Hr!==void 0&&Hr.customizedTrigger)){var an=Dr.target;an.shadowRoot&&Dr.composed&&(an=Dr.composedPath()[0]||an),Sr.current.open&&Le().filter(function(jr){return jr}).every(function(jr){return!jr.contains(an)&&jr!==an})&&Sr.current.triggerOpen(!1)}}return window.addEventListener("mousedown",nr),function(){return window.removeEventListener("mousedown",nr)}},[])}var be=x(26112),Ne=x(83836),ye=function(Ie,Dt){var Mt,Sr,nr=Ie.prefixCls,Dr=Ie.id,Hr=Ie.inputElement,an=Ie.disabled,jr=Ie.tabIndex,Rr=Ie.autoFocus,en=Ie.autoComplete,yn=Ie.editable,on=Ie.activeDescendantId,Dn=Ie.value,Qn=Ie.maxLength,Ai=Ie.onKeyDown,On=Ie.onMouseDown,Gn=Ie.onChange,Vt=Ie.onPaste,Xt=Ie.onCompositionStart,er=Ie.onCompositionEnd,fr=Ie.open,Rt=Ie.attrs,Jt=Hr||h.createElement("input",null),ar=Jt,Or=ar.ref,bn=ar.props,Cn=bn.onKeyDown,li=bn.onChange,ri=bn.onMouseDown,_i=bn.onCompositionStart,Yn=bn.onCompositionEnd,zn=bn.style;return(0,M.Kp)(!("maxLength"in Jt.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Jt=h.cloneElement(Jt,(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({type:"search"},bn),{},{id:Dr,ref:(0,L.sQ)(Dt,Or),disabled:an,tabIndex:jr,autoComplete:en||"off",autoFocus:Rr,className:_()("".concat(nr,"-selection-search-input"),(Mt=Jt)===null||Mt===void 0||(Sr=Mt.props)===null||Sr===void 0?void 0:Sr.className),role:"combobox","aria-label":"Search","aria-expanded":fr||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Dr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Dr,"_list"),"aria-activedescendant":fr?on:void 0},Rt),{},{value:yn?Dn:"",maxLength:Qn,readOnly:!yn,unselectable:yn?null:"on",style:(0,Oe.Z)((0,Oe.Z)({},zn),{},{opacity:yn?null:0}),onKeyDown:function(bi){Ai(bi),Cn&&Cn(bi)},onMouseDown:function(bi){On(bi),ri&&ri(bi)},onChange:function(bi){Gn(bi),li&&li(bi)},onCompositionStart:function(bi){Xt(bi),_i&&_i(bi)},onCompositionEnd:function(bi){er(bi),Yn&&Yn(bi)},onPaste:Vt})),Jt},Ue=h.forwardRef(ye);Ue.displayName="Input";var q=Ue;function de(Le){return Array.isArray(Le)?Le:Le!==void 0?[Le]:[]}var D=typeof window!="undefined"&&window.document&&window.document.documentElement,qe=D;function Me(Le){return Le!=null}function xe(Le){return!Le&&Le!==0}function Te(Le){return["string","number"].includes((0,S.Z)(Le))}function ve(Le){var Ie=void 0;return Le&&(Te(Le.title)?Ie=Le.title.toString():Te(Le.label)&&(Ie=Le.label.toString())),Ie}function De(Le,Ie){qe?h.useLayoutEffect(Le,Ie):h.useEffect(Le,Ie)}function pe(Le){var Ie;return(Ie=Le.key)!==null&&Ie!==void 0?Ie:Le.value}var Se=function(Ie){Ie.preventDefault(),Ie.stopPropagation()},Xe=function(Ie){var Dt=Ie.id,Mt=Ie.prefixCls,Sr=Ie.values,nr=Ie.open,Dr=Ie.searchValue,Hr=Ie.autoClearSearchValue,an=Ie.inputRef,jr=Ie.placeholder,Rr=Ie.disabled,en=Ie.mode,yn=Ie.showSearch,on=Ie.autoFocus,Dn=Ie.autoComplete,Qn=Ie.activeDescendantId,Ai=Ie.tabIndex,On=Ie.removeIcon,Gn=Ie.maxTagCount,Vt=Ie.maxTagTextLength,Xt=Ie.maxTagPlaceholder,er=Xt===void 0?function(qi){return"+ ".concat(qi.length," ...")}:Xt,fr=Ie.tagRender,Rt=Ie.onToggleOpen,Jt=Ie.onRemove,ar=Ie.onInputChange,Or=Ie.onInputPaste,bn=Ie.onInputKeyDown,Cn=Ie.onInputMouseDown,li=Ie.onInputCompositionStart,ri=Ie.onInputCompositionEnd,_i=h.useRef(null),Yn=(0,h.useState)(0),zn=(0,ne.Z)(Yn,2),yi=zn[0],bi=zn[1],wi=(0,h.useState)(!1),ci=(0,ne.Z)(wi,2),xi=ci[0],Xi=ci[1],ti="".concat(Mt,"-selection"),Ti=nr||en==="multiple"&&Hr===!1||en==="tags"?Dr:"",za=en==="tags"||en==="multiple"&&Hr===!1||yn&&(nr||xi);De(function(){bi(_i.current.scrollWidth)},[Ti]);function si(qi,Fi,Ra,Aa,Co){return h.createElement("span",{className:_()("".concat(ti,"-item"),(0,P.Z)({},"".concat(ti,"-item-disabled"),Ra)),title:ve(qi)},h.createElement("span",{className:"".concat(ti,"-item-content")},Fi),Aa&&h.createElement(Q,{className:"".concat(ti,"-item-remove"),onMouseDown:Se,onClick:Co,customizeIcon:On},"\xD7"))}function fn(qi,Fi,Ra,Aa,Co){var Wn=function(Di){Se(Di),Rt(!nr)};return h.createElement("span",{onMouseDown:Wn},fr({label:Fi,value:qi,disabled:Ra,closable:Aa,onClose:Co}))}function sn(qi){var Fi=qi.disabled,Ra=qi.label,Aa=qi.value,Co=!Rr&&!Fi,Wn=Ra;if(typeof Vt=="number"&&(typeof Ra=="string"||typeof Ra=="number")){var In=String(Wn);In.length>Vt&&(Wn="".concat(In.slice(0,Vt),"..."))}var Di=function(Ma){Ma&&Ma.stopPropagation(),Jt(qi)};return typeof fr=="function"?fn(Aa,Wn,Fi,Co,Di):si(qi,Wn,Fi,Co,Di)}function Xn(qi){var Fi=typeof er=="function"?er(qi):er;return si({title:Fi},Fi,!1)}var Kn=h.createElement("div",{className:"".concat(ti,"-search"),style:{width:yi},onFocus:function(){Xi(!0)},onBlur:function(){Xi(!1)}},h.createElement(q,{ref:an,open:nr,prefixCls:Mt,id:Dt,inputElement:null,disabled:Rr,autoFocus:on,autoComplete:Dn,editable:za,activeDescendantId:Qn,value:Ti,onKeyDown:bn,onMouseDown:Cn,onChange:ar,onPaste:Or,onCompositionStart:li,onCompositionEnd:ri,tabIndex:Ai,attrs:(0,be.Z)(Ie,!0)}),h.createElement("span",{ref:_i,className:"".concat(ti,"-search-mirror"),"aria-hidden":!0},Ti,"\xA0")),di=h.createElement(Ne.Z,{prefixCls:"".concat(ti,"-overflow"),data:Sr,renderItem:sn,renderRest:Xn,suffix:Kn,itemKey:pe,maxCount:Gn});return h.createElement(h.Fragment,null,di,!Sr.length&&!Ti&&h.createElement("span",{className:"".concat(ti,"-placeholder")},jr))},et=Xe,je=function(Ie){var Dt=Ie.inputElement,Mt=Ie.prefixCls,Sr=Ie.id,nr=Ie.inputRef,Dr=Ie.disabled,Hr=Ie.autoFocus,an=Ie.autoComplete,jr=Ie.activeDescendantId,Rr=Ie.mode,en=Ie.open,yn=Ie.values,on=Ie.placeholder,Dn=Ie.tabIndex,Qn=Ie.showSearch,Ai=Ie.searchValue,On=Ie.activeValue,Gn=Ie.maxLength,Vt=Ie.onInputKeyDown,Xt=Ie.onInputMouseDown,er=Ie.onInputChange,fr=Ie.onInputPaste,Rt=Ie.onInputCompositionStart,Jt=Ie.onInputCompositionEnd,ar=Ie.title,Or=h.useState(!1),bn=(0,ne.Z)(Or,2),Cn=bn[0],li=bn[1],ri=Rr==="combobox",_i=ri||Qn,Yn=yn[0],zn=Ai||"";ri&&On&&!Cn&&(zn=On),h.useEffect(function(){ri&&li(!1)},[ri,On]);var yi=Rr!=="combobox"&&!en&&!Qn?!1:!!zn,bi=ar===void 0?ve(Yn):ar,wi=function(){if(Yn)return null;var xi=yi?{visibility:"hidden"}:void 0;return h.createElement("span",{className:"".concat(Mt,"-selection-placeholder"),style:xi},on)};return h.createElement(h.Fragment,null,h.createElement("span",{className:"".concat(Mt,"-selection-search")},h.createElement(q,{ref:nr,prefixCls:Mt,id:Sr,open:en,inputElement:Dt,disabled:Dr,autoFocus:Hr,autoComplete:an,editable:_i,activeDescendantId:jr,value:zn,onKeyDown:Vt,onMouseDown:Xt,onChange:function(xi){li(!0),er(xi)},onPaste:fr,onCompositionStart:Rt,onCompositionEnd:Jt,tabIndex:Dn,attrs:(0,be.Z)(Ie,!0),maxLength:ri?Gn:void 0})),!ri&&Yn?h.createElement("span",{className:"".concat(Mt,"-selection-item"),title:bi,style:yi?{visibility:"hidden"}:void 0},Yn.label):null,wi())},Ye=je;function _t(Le){return![R.Z.ESC,R.Z.SHIFT,R.Z.BACKSPACE,R.Z.TAB,R.Z.WIN_KEY,R.Z.ALT,R.Z.META,R.Z.WIN_KEY_RIGHT,R.Z.CTRL,R.Z.SEMICOLON,R.Z.EQUALS,R.Z.CAPS_LOCK,R.Z.CONTEXT_MENU,R.Z.F1,R.Z.F2,R.Z.F3,R.Z.F4,R.Z.F5,R.Z.F6,R.Z.F7,R.Z.F8,R.Z.F9,R.Z.F10,R.Z.F11,R.Z.F12].includes(Le)}var kt=function(Ie,Dt){var Mt=(0,h.useRef)(null),Sr=(0,h.useRef)(!1),nr=Ie.prefixCls,Dr=Ie.open,Hr=Ie.mode,an=Ie.showSearch,jr=Ie.tokenWithEnter,Rr=Ie.autoClearSearchValue,en=Ie.onSearch,yn=Ie.onSearchSubmit,on=Ie.onToggleOpen,Dn=Ie.onInputKeyDown,Qn=Ie.domRef;h.useImperativeHandle(Dt,function(){return{focus:function(){Mt.current.focus()},blur:function(){Mt.current.blur()}}});var Ai=K(0),On=(0,ne.Z)(Ai,2),Gn=On[0],Vt=On[1],Xt=function(zn){var yi=zn.which;(yi===R.Z.UP||yi===R.Z.DOWN)&&zn.preventDefault(),Dn&&Dn(zn),yi===R.Z.ENTER&&Hr==="tags"&&!Sr.current&&!Dr&&(yn==null||yn(zn.target.value)),_t(yi)&&on(!0)},er=function(){Vt(!0)},fr=(0,h.useRef)(null),Rt=function(zn){en(zn,!0,Sr.current)!==!1&&on(!0)},Jt=function(){Sr.current=!0},ar=function(zn){Sr.current=!1,Hr!=="combobox"&&Rt(zn.target.value)},Or=function(zn){var yi=zn.target.value;if(jr&&fr.current&&/[\r\n]/.test(fr.current)){var bi=fr.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");yi=yi.replace(bi,fr.current)}fr.current=null,Rt(yi)},bn=function(zn){var yi=zn.clipboardData,bi=yi.getData("text");fr.current=bi},Cn=function(zn){var yi=zn.target;if(yi!==Mt.current){var bi=document.body.style.msTouchAction!==void 0;bi?setTimeout(function(){Mt.current.focus()}):Mt.current.focus()}},li=function(zn){var yi=Gn();zn.target!==Mt.current&&!yi&&Hr!=="combobox"&&zn.preventDefault(),(Hr!=="combobox"&&(!an||!yi)||!Dr)&&(Dr&&Rr!==!1&&en("",!0,!1),on())},ri={inputRef:Mt,onInputKeyDown:Xt,onInputMouseDown:er,onInputChange:Or,onInputPaste:bn,onInputCompositionStart:Jt,onInputCompositionEnd:ar},_i=Hr==="multiple"||Hr==="tags"?h.createElement(et,(0,me.Z)({},Ie,ri)):h.createElement(Ye,(0,me.Z)({},Ie,ri));return h.createElement("div",{ref:Qn,className:"".concat(nr,"-selector"),onClick:Cn,onMouseDown:li},_i)},Ot=h.forwardRef(kt);Ot.displayName="Selector";var sr=Ot,rr=x(35593),br=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],lr=function(Ie){var Dt=Ie===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Dt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Dt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Dt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Dt,adjustY:1},htmlRegion:"scroll"}}},V=function(Ie,Dt){var Mt=Ie.prefixCls,Sr=Ie.disabled,nr=Ie.visible,Dr=Ie.children,Hr=Ie.popupElement,an=Ie.animation,jr=Ie.transitionName,Rr=Ie.dropdownStyle,en=Ie.dropdownClassName,yn=Ie.direction,on=yn===void 0?"ltr":yn,Dn=Ie.placement,Qn=Ie.builtinPlacements,Ai=Ie.dropdownMatchSelectWidth,On=Ie.dropdownRender,Gn=Ie.dropdownAlign,Vt=Ie.getPopupContainer,Xt=Ie.empty,er=Ie.getTriggerDOMNode,fr=Ie.onPopupVisibleChange,Rt=Ie.onPopupMouseEnter,Jt=(0,W.Z)(Ie,br),ar="".concat(Mt,"-dropdown"),Or=Hr;On&&(Or=On(Hr));var bn=h.useMemo(function(){return Qn||lr(Ai)},[Qn,Ai]),Cn=an?"".concat(ar,"-").concat(an):jr,li=typeof Ai=="number",ri=h.useMemo(function(){return li?null:Ai===!1?"minWidth":"width"},[Ai,li]),_i=Rr;li&&(_i=(0,Oe.Z)((0,Oe.Z)({},_i),{},{width:Ai}));var Yn=h.useRef(null);return h.useImperativeHandle(Dt,function(){return{getPopupElement:function(){return Yn.current}}}),h.createElement(rr.Z,(0,me.Z)({},Jt,{showAction:fr?["click"]:[],hideAction:fr?["click"]:[],popupPlacement:Dn||(on==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:bn,prefixCls:ar,popupTransitionName:Cn,popup:h.createElement("div",{ref:Yn,onMouseEnter:Rt},Or),stretch:ri,popupAlign:Gn,popupVisible:nr,getPopupContainer:Vt,popupClassName:_()(en,(0,P.Z)({},"".concat(ar,"-empty"),Xt)),popupStyle:_i,getTriggerDOMNode:er,onPopupVisibleChange:fr}),Dr)},dt=h.forwardRef(V);dt.displayName="SelectTrigger";var I=dt,m=x(66712);function f(Le,Ie){var Dt=Le.key,Mt;return"value"in Le&&(Mt=Le.value),Dt!=null?Dt:Mt!==void 0?Mt:"rc-index-key-".concat(Ie)}function C(Le,Ie){var Dt=Le||{},Mt=Dt.label,Sr=Dt.value,nr=Dt.options,Dr=Dt.groupLabel,Hr=Mt||(Ie?"children":"label");return{label:Hr,value:Sr||"value",options:nr||"options",groupLabel:Dr||Hr}}function Y(Le){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dt=Ie.fieldNames,Mt=Ie.childrenAsData,Sr=[],nr=C(Dt,!1),Dr=nr.label,Hr=nr.value,an=nr.options,jr=nr.groupLabel;function Rr(en,yn){en.forEach(function(on){if(yn||!(an in on)){var Dn=on[Hr];Sr.push({key:f(on,Sr.length),groupOption:yn,data:on,label:on[Dr],value:Dn})}else{var Qn=on[jr];Qn===void 0&&Mt&&(Qn=on.label),Sr.push({key:f(on,Sr.length),group:!0,data:on,label:Qn}),Rr(on[an],!0)}})}return Rr(Le,!1),Sr}function Be(Le){var Ie=(0,Oe.Z)({},Le);return"props"in Ie||Object.defineProperty(Ie,"props",{get:function(){return(0,M.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),Ie}}),Ie}function H(Le,Ie){if(!Ie||!Ie.length)return null;var Dt=!1;function Mt(nr,Dr){var Hr=(0,m.Z)(Dr),an=Hr[0],jr=Hr.slice(1);if(!an)return[nr];var Rr=nr.split(an);return Dt=Dt||Rr.length>1,Rr.reduce(function(en,yn){return[].concat((0,Ae.Z)(en),(0,Ae.Z)(Mt(yn,jr)))},[]).filter(function(en){return en})}var Sr=Mt(Le,Ie);return Dt?Sr: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(Le){return Le==="tags"||Le==="multiple"}var ce=h.forwardRef(function(Le,Ie){var Dt,Mt,Sr=Le.id,nr=Le.prefixCls,Dr=Le.className,Hr=Le.showSearch,an=Le.tagRender,jr=Le.direction,Rr=Le.omitDomProps,en=Le.displayValues,yn=Le.onDisplayValuesChange,on=Le.emptyOptions,Dn=Le.notFoundContent,Qn=Dn===void 0?"Not Found":Dn,Ai=Le.onClear,On=Le.mode,Gn=Le.disabled,Vt=Le.loading,Xt=Le.getInputElement,er=Le.getRawInputElement,fr=Le.open,Rt=Le.defaultOpen,Jt=Le.onDropdownVisibleChange,ar=Le.activeValue,Or=Le.onActiveValueChange,bn=Le.activeDescendantId,Cn=Le.searchValue,li=Le.autoClearSearchValue,ri=Le.onSearch,_i=Le.onSearchSplit,Yn=Le.tokenSeparators,zn=Le.allowClear,yi=Le.suffixIcon,bi=Le.clearIcon,wi=Le.OptionList,ci=Le.animation,xi=Le.transitionName,Xi=Le.dropdownStyle,ti=Le.dropdownClassName,Ti=Le.dropdownMatchSelectWidth,za=Le.dropdownRender,si=Le.dropdownAlign,fn=Le.placement,sn=Le.builtinPlacements,Xn=Le.getPopupContainer,Kn=Le.showAction,di=Kn===void 0?[]:Kn,qi=Le.onFocus,Fi=Le.onBlur,Ra=Le.onKeyUp,Aa=Le.onKeyDown,Co=Le.onMouseDown,Wn=(0,W.Z)(Le,ie),In=we(On),Di=(Hr!==void 0?Hr:In)||On==="combobox",Ji=(0,Oe.Z)({},Wn);Qe.forEach(function(Ba){delete Ji[Ba]}),Rr==null||Rr.forEach(function(Ba){delete Ji[Ba]});var Ma=h.useState(!1),Ms=(0,ne.Z)(Ma,2),Za=Ms[0],fa=Ms[1];h.useEffect(function(){fa((0,N.Z)())},[]);var _o=h.useRef(null),Bo=h.useRef(null),To=h.useRef(null),Ps=h.useRef(null),mo=h.useRef(null),xs=G(),Ts=(0,ne.Z)(xs,3),$s=Ts[0],Uo=Ts[1],Ro=Ts[2];h.useImperativeHandle(Ie,function(){var Ba,ya;return{focus:(Ba=Ps.current)===null||Ba===void 0?void 0:Ba.focus,blur:(ya=Ps.current)===null||ya===void 0?void 0:ya.blur,scrollTo:function(bo){var $o;return($o=mo.current)===null||$o===void 0?void 0:$o.scrollTo(bo)}}});var Cs=h.useMemo(function(){var Ba;if(On!=="combobox")return Cn;var ya=(Ba=en[0])===null||Ba===void 0?void 0:Ba.value;return typeof ya=="string"||typeof ya=="number"?String(ya):""},[Cn,On,en]),el=On==="combobox"&&typeof Xt=="function"&&Xt()||null,vl=typeof er=="function"&&er(),tc=(0,L.x1)(Bo,vl==null||(Dt=vl.props)===null||Dt===void 0?void 0:Dt.ref),rc=h.useState(!1),Rl=(0,ne.Z)(rc,2),Zs=Rl[0],kc=Rl[1];(0,F.Z)(function(){kc(!0)},[]);var Ql=(0,v.Z)(!1,{defaultValue:Rt,value:fr}),Kl=(0,ne.Z)(Ql,2),Vs=Kl[0],os=Kl[1],ni=Zs?Vs:!1,ca=!Qn&&on;(Gn||ca&&ni&&On==="combobox")&&(ni=!1);var ta=ca?!1:ni,oa=h.useCallback(function(Ba){var ya=Ba!==void 0?Ba:!ni;Gn||(os(ya),ni!==ya&&(Jt==null||Jt(ya)))},[Gn,ni,os,Jt]),Na=h.useMemo(function(){return(Yn||[]).some(function(Ba){return[`
`,`\r
`].includes(Ba)})},[Yn]),so=function(ya,rs,bo){var $o=!0,Zo=ya;Or==null||Or(null);var Do=bo?null:H(ya,Yn);return On!=="combobox"&&Do&&(Zo="",_i==null||_i(Do),oa(!1),$o=!1),ri&&Cs!==Zo&&ri(Zo,{source:rs?"typing":"effect"}),$o},Ws=function(ya){!ya||!ya.trim()||ri(ya,{source:"submit"})};h.useEffect(function(){!ni&&!In&&On!=="combobox"&&so("",!1,!1)},[ni]),h.useEffect(function(){Vs&&Gn&&os(!1),Gn&&Uo(!1)},[Gn]);var Bs=K(),Ss=(0,ne.Z)(Bs,2),vs=Ss[0],to=Ss[1],Qa=function(ya){var rs=vs(),bo=ya.which;if(bo===R.Z.ENTER&&(On!=="combobox"&&ya.preventDefault(),ni||oa(!0)),to(!!Cs),bo===R.Z.BACKSPACE&&!rs&&In&&!Cs&&en.length){for(var $o=(0,Ae.Z)(en),Zo=null,Do=$o.length-1;Do>=0;Do-=1){var Es=$o[Do];if(!Es.disabled){$o.splice(Do,1),Zo=Es;break}}Zo&&yn($o,{type:"remove",values:[Zo]})}for(var nc=arguments.length,Vc=new Array(nc>1?nc-1:0),Xs=1;Xs<nc;Xs++)Vc[Xs-1]=arguments[Xs];if(ni&&mo.current){var vu;(vu=mo.current).onKeyDown.apply(vu,[ya].concat(Vc))}Aa==null||Aa.apply(void 0,[ya].concat(Vc))},ss=function(ya){for(var rs=arguments.length,bo=new Array(rs>1?rs-1:0),$o=1;$o<rs;$o++)bo[$o-1]=arguments[$o];if(ni&&mo.current){var Zo;(Zo=mo.current).onKeyUp.apply(Zo,[ya].concat(bo))}Ra==null||Ra.apply(void 0,[ya].concat(bo))},ls=function(ya){var rs=en.filter(function(bo){return bo!==ya});yn(rs,{type:"remove",values:[ya]})},Ls=h.useRef(!1),Jo=function(){Uo(!0),Gn||(qi&&!Ls.current&&qi.apply(void 0,arguments),di.includes("focus")&&oa(!0)),Ls.current=!0},Io=function(){Uo(!1,function(){Ls.current=!1,oa(!1)}),!Gn&&(Cs&&(On==="tags"?ri(Cs,{source:"submit"}):On==="multiple"&&ri("",{source:"blur"})),Fi&&Fi.apply(void 0,arguments))},hu=[];h.useEffect(function(){return function(){hu.forEach(function(Ba){return clearTimeout(Ba)}),hu.splice(0,hu.length)}},[]);var rA=function(ya){var rs,bo=ya.target,$o=(rs=To.current)===null||rs===void 0?void 0:rs.getPopupElement();if($o&&$o.contains(bo)){var Zo=setTimeout(function(){var Vc=hu.indexOf(Zo);if(Vc!==-1&&hu.splice(Vc,1),Ro(),!Za&&!$o.contains(document.activeElement)){var Xs;(Xs=Ps.current)===null||Xs===void 0||Xs.focus()}});hu.push(Zo)}for(var Do=arguments.length,Es=new Array(Do>1?Do-1:0),nc=1;nc<Do;nc++)Es[nc-1]=arguments[nc];Co==null||Co.apply(void 0,[ya].concat(Es))},lc=h.useState({}),pu=(0,ne.Z)(lc,2),cl=pu[1];function mu(){cl({})}var tl;vl&&(tl=function(ya){oa(ya)}),le(function(){var Ba;return[_o.current,(Ba=To.current)===null||Ba===void 0?void 0:Ba.getPopupElement()]},ta,oa,!!vl);var bs=h.useMemo(function(){return(0,Oe.Z)((0,Oe.Z)({},Le),{},{notFoundContent:Qn,open:ni,triggerOpen:ta,id:Sr,showSearch:Di,multiple:In,toggleOpen:oa})},[Le,Qn,ta,ni,Sr,Di,In,oa]),qc=!!yi||Vt,Us;qc&&(Us=h.createElement(Q,{className:_()("".concat(nr,"-arrow"),(0,P.Z)({},"".concat(nr,"-arrow-loading"),Vt)),customizeIcon:yi,customizeIconProps:{loading:Vt,searchValue:Cs,open:ni,focused:$s,showSearch:Di}}));var Pu=function(){var ya;Ai==null||Ai(),(ya=Ps.current)===null||ya===void 0||ya.focus(),yn([],{type:"clear",values:en}),so("",!1,!1)},cc=oe(nr,Pu,en,zn,bi,Gn,Cs,On),Hl=cc.allowClear,ro=cc.clearIcon,Gs=h.createElement(wi,{ref:mo}),gu=_()(nr,Dr,(Mt={},(0,P.Z)(Mt,"".concat(nr,"-focused"),$s),(0,P.Z)(Mt,"".concat(nr,"-multiple"),In),(0,P.Z)(Mt,"".concat(nr,"-single"),!In),(0,P.Z)(Mt,"".concat(nr,"-allow-clear"),zn),(0,P.Z)(Mt,"".concat(nr,"-show-arrow"),qc),(0,P.Z)(Mt,"".concat(nr,"-disabled"),Gn),(0,P.Z)(Mt,"".concat(nr,"-loading"),Vt),(0,P.Z)(Mt,"".concat(nr,"-open"),ni),(0,P.Z)(Mt,"".concat(nr,"-customize-input"),el),(0,P.Z)(Mt,"".concat(nr,"-show-search"),Di),Mt)),EA=h.createElement(I,{ref:To,disabled:Gn,prefixCls:nr,visible:ta,popupElement:Gs,animation:ci,transitionName:xi,dropdownStyle:Xi,dropdownClassName:ti,direction:jr,dropdownMatchSelectWidth:Ti,dropdownRender:za,dropdownAlign:si,placement:fn,builtinPlacements:sn,getPopupContainer:Xn,empty:on,getTriggerDOMNode:function(){return Bo.current},onPopupVisibleChange:tl,onPopupMouseEnter:mu},vl?h.cloneElement(vl,{ref:tc}):h.createElement(sr,(0,me.Z)({},Le,{domRef:Bo,prefixCls:nr,inputElement:el,ref:Ps,id:Sr,showSearch:Di,autoClearSearchValue:li,mode:On,activeDescendantId:bn,tagRender:an,values:en,open:ni,onToggleOpen:oa,activeValue:ar,searchValue:Cs,onSearch:so,onSearchSubmit:Ws,onRemove:ls,tokenWithEnter:Na}))),cs;return vl?cs=EA:cs=h.createElement("div",(0,me.Z)({className:gu},Ji,{ref:_o,onMouseDown:rA,onKeyDown:Qa,onKeyUp:ss,onFocus:Jo,onBlur:Io}),$s&&!ni&&h.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(en.map(function(Ba){var ya=Ba.label,rs=Ba.value;return["number","string"].includes((0,S.Z)(ya))?ya:rs}).join(", "))),EA,Us,Hl&&ro),h.createElement(ee.Provider,{value:bs},cs)}),ze=ce,vt=function(Le,Ie){var Dt=h.useRef({values:new Map,options:new Map}),Mt=h.useMemo(function(){var nr=Dt.current,Dr=nr.values,Hr=nr.options,an=Le.map(function(en){if(en.label===void 0){var yn;return(0,Oe.Z)((0,Oe.Z)({},en),{},{label:(yn=Dr.get(en.value))===null||yn===void 0?void 0:yn.label})}return en}),jr=new Map,Rr=new Map;return an.forEach(function(en){jr.set(en.value,en),Rr.set(en.value,Ie.get(en.value)||Hr.get(en.value))}),Dt.current.values=jr,Dt.current.options=Rr,an},[Le,Ie]),Sr=h.useCallback(function(nr){return Ie.get(nr)||Dt.current.options.get(nr)},[Ie]);return[Mt,Sr]};function he(Le,Ie){return de(Le).join("").toUpperCase().includes(Ie)}var at=function(Le,Ie,Dt,Mt,Sr){return h.useMemo(function(){if(!Dt||Mt===!1)return Le;var nr=Ie.options,Dr=Ie.label,Hr=Ie.value,an=[],jr=typeof Mt=="function",Rr=Dt.toUpperCase(),en=jr?Mt:function(on,Dn){return Sr?he(Dn[Sr],Rr):Dn[nr]?he(Dn[Dr!=="children"?Dr:"label"],Rr):he(Dn[Hr],Rr)},yn=jr?function(on){return Be(on)}:function(on){return on};return Le.forEach(function(on){if(on[nr]){var Dn=en(Dt,yn(on));if(Dn)an.push(on);else{var Qn=on[nr].filter(function(Ai){return en(Dt,yn(Ai))});Qn.length&&an.push((0,Oe.Z)((0,Oe.Z)({},on),{},(0,P.Z)({},nr,Qn)))}return}en(Dt,yn(on))&&an.push(on)}),an},[Le,Mt,Sr,Dt,Ie])},rt=x(17115),ke=x(11592),Fe=["children","value"],ct=["children"];function Tt(Le){var Ie=Le,Dt=Ie.key,Mt=Ie.props,Sr=Mt.children,nr=Mt.value,Dr=(0,W.Z)(Mt,Fe);return(0,Oe.Z)({key:Dt,value:nr!==void 0?nr:Dt,children:Sr},Dr)}function Pt(Le){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,ke.Z)(Le).map(function(Dt,Mt){if(!h.isValidElement(Dt)||!Dt.type)return null;var Sr=Dt,nr=Sr.type.isSelectOptGroup,Dr=Sr.key,Hr=Sr.props,an=Hr.children,jr=(0,W.Z)(Hr,ct);return Ie||!nr?Tt(Dt):(0,Oe.Z)((0,Oe.Z)({key:"__RC_SELECT_GRP__".concat(Dr===null?Mt:Dr,"__"),label:Dr},jr),{},{options:Pt(an)})}).filter(function(Dt){return Dt})}function Yt(Le,Ie,Dt,Mt,Sr){return h.useMemo(function(){var nr=Le,Dr=!Le;Dr&&(nr=Pt(Ie));var Hr=new Map,an=new Map,jr=function(yn,on,Dn){Dn&&typeof Dn=="string"&&yn.set(on[Dn],on)};function Rr(en){for(var yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on<en.length;on+=1){var Dn=en[on];!Dn[Dt.options]||yn?(Hr.set(Dn[Dt.value],Dn),jr(an,Dn,Dt.label),jr(an,Dn,Mt),jr(an,Dn,Sr)):Rr(Dn[Dt.options],!0)}}return Rr(nr),{options:nr,valueOptions:Hr,labelOptions:an}},[Le,Ie,Dt,Mt,Sr])}function Fr(Le){var Ie=h.useRef();Ie.current=Le;var Dt=h.useCallback(function(){return Ie.current.apply(Ie,arguments)},[]);return Dt}var Lr=function(){return null};Lr.isSelectOptGroup=!0;var Nr=Lr,kr=function(){return null};kr.isSelectOption=!0;var yr=kr,dr=x(80547),Qr=x(2738),An=x(48911),Tn=h.createContext(null),dn=Tn;function kn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var Qi=["disabled","title","children","style","className"];function Pr(Le){return typeof Le=="string"||typeof Le=="number"}var wn=function(Ie,Dt){var Mt=re(),Sr=Mt.prefixCls,nr=Mt.id,Dr=Mt.open,Hr=Mt.multiple,an=Mt.mode,jr=Mt.searchValue,Rr=Mt.toggleOpen,en=Mt.notFoundContent,yn=Mt.onPopupScroll,on=h.useContext(dn),Dn=on.flattenOptions,Qn=on.onActiveValue,Ai=on.defaultActiveFirstOption,On=on.onSelect,Gn=on.menuItemSelectedIcon,Vt=on.rawValues,Xt=on.fieldNames,er=on.virtual,fr=on.direction,Rt=on.listHeight,Jt=on.listItemHeight,ar="".concat(Sr,"-item"),Or=(0,dr.Z)(function(){return Dn},[Dr,Dn],function(si,fn){return fn[0]&&si[1]!==fn[1]}),bn=h.useRef(null),Cn=function(fn){fn.preventDefault()},li=function(fn){bn.current&&bn.current.scrollTo(typeof fn=="number"?{index:fn}:fn)},ri=function(fn){for(var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xn=Or.length,Kn=0;Kn<Xn;Kn+=1){var di=(fn+Kn*sn+Xn)%Xn,qi=Or[di],Fi=qi.group,Ra=qi.data;if(!Fi&&!Ra.disabled)return di}return-1},_i=h.useState(function(){return ri(0)}),Yn=(0,ne.Z)(_i,2),zn=Yn[0],yi=Yn[1],bi=function(fn){var sn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;yi(fn);var Xn={source:sn?"keyboard":"mouse"},Kn=Or[fn];if(!Kn){Qn(null,-1,Xn);return}Qn(Kn.value,fn,Xn)};(0,h.useEffect)(function(){bi(Ai!==!1?ri(0):-1)},[Or.length,jr]);var wi=h.useCallback(function(si){return Vt.has(si)&&an!=="combobox"},[an,(0,Ae.Z)(Vt).toString(),Vt.size]);(0,h.useEffect)(function(){var si=setTimeout(function(){if(!Hr&&Dr&&Vt.size===1){var sn=Array.from(Vt)[0],Xn=Or.findIndex(function(Kn){var di=Kn.data;return di.value===sn});Xn!==-1&&(bi(Xn),li(Xn))}});if(Dr){var fn;(fn=bn.current)===null||fn===void 0||fn.scrollTo(void 0)}return function(){return clearTimeout(si)}},[Dr,jr,Dn.length]);var ci=function(fn){fn!==void 0&&On(fn,{selected:!Vt.has(fn)}),Hr||Rr(!1)};if(h.useImperativeHandle(Dt,function(){return{onKeyDown:function(fn){var sn=fn.which,Xn=fn.ctrlKey;switch(sn){case R.Z.N:case R.Z.P:case R.Z.UP:case R.Z.DOWN:{var Kn=0;if(sn===R.Z.UP?Kn=-1:sn===R.Z.DOWN?Kn=1:kn()&&Xn&&(sn===R.Z.N?Kn=1:sn===R.Z.P&&(Kn=-1)),Kn!==0){var di=ri(zn+Kn,Kn);li(di),bi(di,!0)}break}case R.Z.ENTER:{var qi=Or[zn];qi&&!qi.data.disabled?ci(qi.value):ci(void 0),Dr&&fn.preventDefault();break}case R.Z.ESC:Rr(!1),Dr&&fn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(fn){li(fn)}}}),Or.length===0)return h.createElement("div",{role:"listbox",id:"".concat(nr,"_list"),className:"".concat(ar,"-empty"),onMouseDown:Cn},en);var xi=Object.keys(Xt).map(function(si){return Xt[si]}),Xi=function(fn){return fn.label};function ti(si,fn){var sn=si.group;return{role:sn?"presentation":"option",id:"".concat(nr,"_list_").concat(fn)}}var Ti=function(fn){var sn=Or[fn];if(!sn)return null;var Xn=sn.data||{},Kn=Xn.value,di=sn.group,qi=(0,be.Z)(Xn,!0),Fi=Xi(sn);return sn?h.createElement("div",(0,me.Z)({"aria-label":typeof Fi=="string"&&!di?Fi:null},qi,{key:fn},ti(sn,fn),{"aria-selected":wi(Kn)}),Kn):null},za={role:"listbox",id:"".concat(nr,"_list")};return h.createElement(h.Fragment,null,er&&h.createElement("div",(0,me.Z)({},za,{style:{height:0,width:0,overflow:"hidden"}}),Ti(zn-1),Ti(zn),Ti(zn+1)),h.createElement(An.Z,{itemKey:"key",ref:bn,data:Or,height:Rt,itemHeight:Jt,fullHeight:!1,onMouseDown:Cn,onScroll:yn,virtual:er,direction:fr,innerProps:er?null:za},function(si,fn){var sn,Xn=si.group,Kn=si.groupOption,di=si.data,qi=si.label,Fi=si.value,Ra=di.key;if(Xn){var Aa,Co=(Aa=di.title)!==null&&Aa!==void 0?Aa:Pr(qi)?qi.toString():void 0;return h.createElement("div",{className:_()(ar,"".concat(ar,"-group")),title:Co},qi!==void 0?qi:Ra)}var Wn=di.disabled,In=di.title,Di=di.children,Ji=di.style,Ma=di.className,Ms=(0,W.Z)(di,Qi),Za=(0,Qr.Z)(Ms,xi),fa=wi(Fi),_o="".concat(ar,"-option"),Bo=_()(ar,_o,Ma,(sn={},(0,P.Z)(sn,"".concat(_o,"-grouped"),Kn),(0,P.Z)(sn,"".concat(_o,"-active"),zn===fn&&!Wn),(0,P.Z)(sn,"".concat(_o,"-disabled"),Wn),(0,P.Z)(sn,"".concat(_o,"-selected"),fa),sn)),To=Xi(si),Ps=!Gn||typeof Gn=="function"||fa,mo=typeof To=="number"?To:To||Fi,xs=Pr(mo)?mo.toString():void 0;return In!==void 0&&(xs=In),h.createElement("div",(0,me.Z)({},(0,be.Z)(Za),er?{}:ti(si,fn),{"aria-selected":fa,className:Bo,title:xs,onMouseMove:function(){zn===fn||Wn||bi(fn)},onClick:function(){Wn||ci(Fi)},style:Ji}),h.createElement("div",{className:"".concat(_o,"-content")},mo),h.isValidElement(Gn)||fa,Ps&&h.createElement(Q,{className:"".concat(ar,"-option-state"),customizeIcon:Gn,customizeIconProps:{isSelected:fa}},fa?"\u2713":null))}))},Si=h.forwardRef(wn);Si.displayName="OptionList";var ui=Si;function Zi(Le){var Ie=Le.mode,Dt=Le.options,Mt=Le.children,Sr=Le.backfill,nr=Le.allowClear,Dr=Le.placeholder,Hr=Le.getInputElement,an=Le.showSearch,jr=Le.onSearch,Rr=Le.defaultOpen,en=Le.autoFocus,yn=Le.labelInValue,on=Le.value,Dn=Le.inputValue,Qn=Le.optionLabelProp,Ai=isMultiple(Ie),On=an!==void 0?an:Ai||Ie==="combobox",Gn=Dt||convertChildrenToData(Mt);if(warning(Ie!=="tags"||Gn.every(function(fr){return!fr.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),Ie==="tags"||Ie==="combobox"){var Vt=Gn.some(function(fr){return fr.options?fr.options.some(function(Rt){return typeof("value"in Rt?Rt.value:Rt.key)=="number"}):typeof("value"in fr?fr.value:fr.key)=="number"});warning(!Vt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(Ie!=="combobox"||!Qn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(Ie==="combobox"||!Sr,"`backfill` only works with `combobox` mode."),warning(Ie==="combobox"||!Hr,"`getInputElement` only work with `combobox` mode."),noteOnce(Ie!=="combobox"||!Hr||!nr||!Dr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),jr&&!On&&Ie!=="combobox"&&Ie!=="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(!yn||Xt.every(function(fr){return _typeof(fr)==="object"&&("key"in fr||"value"in fr)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!Ai||Array.isArray(on),"`value` should be array when `mode` is `multiple` or `tags`")}if(Mt){var er=null;toNodeArray(Mt).some(function(fr){if(!React.isValidElement(fr)||!fr.type)return!1;var Rt=fr,Jt=Rt.type;if(Jt.isSelectOption)return!1;if(Jt.isSelectOptGroup){var ar=toNodeArray(fr.props.children).every(function(Or){return!React.isValidElement(Or)||!fr.type||Or.type.isSelectOption?!0:(er=Or.type,!1)});return!ar}return er=Jt,!0}),er&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(er.displayName||er.name||er,"`.")),warning(Dn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ei(Le,Ie){if(Le){var Dt=function Mt(Sr){for(var nr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Dr=0;Dr<Sr.length;Dr++){var Hr=Sr[Dr];if(Hr[Ie==null?void 0:Ie.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!nr&&Array.isArray(Hr[Ie==null?void 0:Ie.options])&&Mt(Hr[Ie==null?void 0:Ie.options],!0))break}};Dt(Le)}}var ji=null,eo=["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"],Ki=["inputValue"];function ei(Le){return!Le||(0,S.Z)(Le)!=="object"}var pi=h.forwardRef(function(Le,Ie){var Dt=Le.id,Mt=Le.mode,Sr=Le.prefixCls,nr=Sr===void 0?"rc-select":Sr,Dr=Le.backfill,Hr=Le.fieldNames,an=Le.inputValue,jr=Le.searchValue,Rr=Le.onSearch,en=Le.autoClearSearchValue,yn=en===void 0?!0:en,on=Le.onSelect,Dn=Le.onDeselect,Qn=Le.dropdownMatchSelectWidth,Ai=Qn===void 0?!0:Qn,On=Le.filterOption,Gn=Le.filterSort,Vt=Le.optionFilterProp,Xt=Le.optionLabelProp,er=Le.options,fr=Le.children,Rt=Le.defaultActiveFirstOption,Jt=Le.menuItemSelectedIcon,ar=Le.virtual,Or=Le.direction,bn=Le.listHeight,Cn=bn===void 0?200:bn,li=Le.listItemHeight,ri=li===void 0?20:li,_i=Le.value,Yn=Le.defaultValue,zn=Le.labelInValue,yi=Le.onChange,bi=(0,W.Z)(Le,eo),wi=(0,rt.ZP)(Dt),ci=we(Mt),xi=!!(!er&&fr),Xi=h.useMemo(function(){return On===void 0&&Mt==="combobox"?!1:On},[On,Mt]),ti=h.useMemo(function(){return C(Hr,xi)},[JSON.stringify(Hr),xi]),Ti=(0,v.Z)("",{value:jr!==void 0?jr:an,postState:function(ca){return ca||""}}),za=(0,ne.Z)(Ti,2),si=za[0],fn=za[1],sn=Yt(er,fr,ti,Vt,Xt),Xn=sn.valueOptions,Kn=sn.labelOptions,di=sn.options,qi=h.useCallback(function(ni){var ca=de(ni);return ca.map(function(ta){var oa,Na,so,Ws,Bs;if(ei(ta))oa=ta;else{var Ss;so=ta.key,Na=ta.label,oa=(Ss=ta.value)!==null&&Ss!==void 0?Ss:so}var vs=Xn.get(oa);if(vs){var to;if(Na===void 0&&(Na=vs==null?void 0:vs[Xt||ti.label]),so===void 0&&(so=(to=vs==null?void 0:vs.key)!==null&&to!==void 0?to:oa),Ws=vs==null?void 0:vs.disabled,Bs=vs==null?void 0:vs.title,0)var Qa}return{label:Na,value:oa,key:so,disabled:Ws,title:Bs}})},[ti,Xt,Xn]),Fi=(0,v.Z)(Yn,{value:_i}),Ra=(0,ne.Z)(Fi,2),Aa=Ra[0],Co=Ra[1],Wn=h.useMemo(function(){var ni,ca=qi(Aa);return Mt==="combobox"&&xe((ni=ca[0])===null||ni===void 0?void 0:ni.value)?[]:ca},[Aa,qi,Mt]),In=vt(Wn,Xn),Di=(0,ne.Z)(In,2),Ji=Di[0],Ma=Di[1],Ms=h.useMemo(function(){if(!Mt&&Ji.length===1){var ni=Ji[0];if(ni.value===null&&(ni.label===null||ni.label===void 0))return[]}return Ji.map(function(ca){var ta;return(0,Oe.Z)((0,Oe.Z)({},ca),{},{label:(ta=ca.label)!==null&&ta!==void 0?ta:ca.value})})},[Mt,Ji]),Za=h.useMemo(function(){return new Set(Ji.map(function(ni){return ni.value}))},[Ji]);h.useEffect(function(){if(Mt==="combobox"){var ni,ca=(ni=Ji[0])===null||ni===void 0?void 0:ni.value;fn(Me(ca)?String(ca):"")}},[Ji]);var fa=Fr(function(ni,ca){var ta,oa=ca!=null?ca:ni;return ta={},(0,P.Z)(ta,ti.value,ni),(0,P.Z)(ta,ti.label,oa),ta}),_o=h.useMemo(function(){if(Mt!=="tags")return di;var ni=(0,Ae.Z)(di),ca=function(oa){return Xn.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;ca(oa)||ni.push(fa(oa,ta.label))}),ni},[fa,di,Xn,Ji,Mt]),Bo=at(_o,ti,si,Xi,Vt),To=h.useMemo(function(){return Mt!=="tags"||!si||Bo.some(function(ni){return ni[Vt||"value"]===si})||Bo.some(function(ni){return ni[ti.value]===si})?Bo:[fa(si)].concat((0,Ae.Z)(Bo))},[fa,Vt,Mt,Bo,si,ti]),Ps=h.useMemo(function(){return Gn?(0,Ae.Z)(To).sort(function(ni,ca){return Gn(ni,ca)}):To},[To,Gn]),mo=h.useMemo(function(){return Y(Ps,{fieldNames:ti,childrenAsData:xi})},[Ps,ti,xi]),xs=function(ca){var ta=qi(ca);if(Co(ta),yi&&(ta.length!==Ji.length||ta.some(function(so,Ws){var Bs;return((Bs=Ji[Ws])===null||Bs===void 0?void 0:Bs.value)!==(so==null?void 0:so.value)}))){var oa=zn?ta:ta.map(function(so){return so.value}),Na=ta.map(function(so){return Be(Ma(so.value))});yi(ci?oa:oa[0],ci?Na:Na[0])}},Ts=h.useState(null),$s=(0,ne.Z)(Ts,2),Uo=$s[0],Ro=$s[1],Cs=h.useState(0),el=(0,ne.Z)(Cs,2),vl=el[0],tc=el[1],rc=Rt!==void 0?Rt:Mt!=="combobox",Rl=h.useCallback(function(ni,ca){var ta=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},oa=ta.source,Na=oa===void 0?"keyboard":oa;tc(ca),Dr&&Mt==="combobox"&&ni!==null&&Na==="keyboard"&&Ro(String(ni))},[Dr,Mt]),Zs=function(ca,ta,oa){var Na=function(){var Ls,Jo=Ma(ca);return[zn?{label:Jo==null?void 0:Jo[ti.label],value:ca,key:(Ls=Jo==null?void 0:Jo.key)!==null&&Ls!==void 0?Ls:ca}:ca,Be(Jo)]};if(ta&&on){var so=Na(),Ws=(0,ne.Z)(so,2),Bs=Ws[0],Ss=Ws[1];on(Bs,Ss)}else if(!ta&&Dn&&oa!=="clear"){var vs=Na(),to=(0,ne.Z)(vs,2),Qa=to[0],ss=to[1];Dn(Qa,ss)}},kc=Fr(function(ni,ca){var ta,oa=ci?ca.selected:!0;oa?ta=ci?[].concat((0,Ae.Z)(Ji),[ni]):[ni]:ta=Ji.filter(function(Na){return Na.value!==ni}),xs(ta),Zs(ni,oa),Mt==="combobox"?Ro(""):(!we||yn)&&(fn(""),Ro(""))}),Ql=function(ca,ta){xs(ca);var oa=ta.type,Na=ta.values;(oa==="remove"||oa==="clear")&&Na.forEach(function(so){Zs(so.value,!1,oa)})},Kl=function(ca,ta){if(fn(ca),Ro(null),ta.source==="submit"){var oa=(ca||"").trim();if(oa){var Na=Array.from(new Set([].concat((0,Ae.Z)(Za),[oa])));xs(Na),Zs(oa,!0),fn("")}return}ta.source!=="blur"&&(Mt==="combobox"&&xs(ca),Rr==null||Rr(ca))},Vs=function(ca){var ta=ca;Mt!=="tags"&&(ta=ca.map(function(Na){var so=Kn.get(Na);return so==null?void 0:so.value}).filter(function(Na){return Na!==void 0}));var oa=Array.from(new Set([].concat((0,Ae.Z)(Za),(0,Ae.Z)(ta))));xs(oa),oa.forEach(function(Na){Zs(Na,!0)})},os=h.useMemo(function(){var ni=ar!==!1&&Ai!==!1;return(0,Oe.Z)((0,Oe.Z)({},sn),{},{flattenOptions:mo,onActiveValue:Rl,defaultActiveFirstOption:rc,onSelect:kc,menuItemSelectedIcon:Jt,rawValues:Za,fieldNames:ti,virtual:ni,direction:Or,listHeight:Cn,listItemHeight:ri,childrenAsData:xi})},[sn,mo,Rl,rc,kc,Jt,Za,ti,ar,Ai,Cn,ri,xi]);return h.createElement(dn.Provider,{value:os},h.createElement(ze,(0,me.Z)({},bi,{id:wi,prefixCls:nr,ref:Ie,omitDomProps:Ki,mode:Mt,displayValues:Ms,onDisplayValuesChange:Ql,direction:Or,searchValue:si,onSearch:Kl,autoClearSearchValue:yn,onSearchSplit:Vs,dropdownMatchSelectWidth:Ai,OptionList:ui,emptyOptions:!mo.length,activeValue:Uo,activeDescendantId:"".concat(wi,"_list_").concat(vl)})))}),vi=pi;vi.Option=yr,vi.OptGroup=Nr;var $e=vi,_e=$e},9296:function(un,Ut,x){"use strict";x.r(Ut),x.d(Ut,{ResizableTextArea:function(){return Ue},default:function(){return xe}});var me=x(54476),Ae=x(33885),P=x(20068),Oe=x(76190),ne=x(42978),W=x(75931),S=x(94480),v=x(92310),M=x.n(v),h=x(93681),$=x(5643),_=x(18929),F=x(59301),N=x(29301),R=x(34280),L=x(16089),X=`
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;
`,Q=["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"],oe={},ee;function re(Te){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=Te.getAttribute("id")||Te.getAttribute("data-reactid")||Te.getAttribute("name");if(ve&&oe[De])return oe[De];var pe=window.getComputedStyle(Te),Se=pe.getPropertyValue("box-sizing")||pe.getPropertyValue("-moz-box-sizing")||pe.getPropertyValue("-webkit-box-sizing"),Xe=parseFloat(pe.getPropertyValue("padding-bottom"))+parseFloat(pe.getPropertyValue("padding-top")),et=parseFloat(pe.getPropertyValue("border-bottom-width"))+parseFloat(pe.getPropertyValue("border-top-width")),je=Q.map(function(_t){return"".concat(_t,":").concat(pe.getPropertyValue(_t))}).join(";"),Ye={sizingStyle:je,paddingSize:Xe,borderSize:et,boxSizing:Se};return ve&&De&&(oe[De]=Ye),Ye}function G(Te){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,De=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,pe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ee||(ee=document.createElement("textarea"),ee.setAttribute("tab-index","-1"),ee.setAttribute("aria-hidden","true"),document.body.appendChild(ee)),Te.getAttribute("wrap")?ee.setAttribute("wrap",Te.getAttribute("wrap")):ee.removeAttribute("wrap");var Se=re(Te,ve),Xe=Se.paddingSize,et=Se.borderSize,je=Se.boxSizing,Ye=Se.sizingStyle;ee.setAttribute("style","".concat(Ye,";").concat(X)),ee.value=Te.value||Te.placeholder||"";var _t=void 0,kt=void 0,Ot,sr=ee.scrollHeight;if(je==="border-box"?sr+=et:je==="content-box"&&(sr-=Xe),De!==null||pe!==null){ee.value=" ";var rr=ee.scrollHeight-Xe;De!==null&&(_t=rr*De,je==="border-box"&&(_t=_t+Xe+et),sr=Math.max(_t,sr)),pe!==null&&(kt=rr*pe,je==="border-box"&&(kt=kt+Xe+et),Ot=sr>kt?"":"hidden",sr=Math.min(kt,sr))}var br={height:sr,overflowY:Ot,resize:"none"};return _t&&(br.minHeight=_t),kt&&(br.maxHeight=kt),br}var K=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],le=0,be=1,Ne=2,ye=F.forwardRef(function(Te,ve){var De=Te,pe=De.prefixCls,Se=De.onPressEnter,Xe=De.defaultValue,et=De.value,je=De.autoSize,Ye=De.onResize,_t=De.className,kt=De.style,Ot=De.disabled,sr=De.onChange,rr=De.onInternalAutoSize,br=(0,W.Z)(De,K),lr=(0,_.Z)(Xe,{value:et,postState:function(Nr){return Nr!=null?Nr:""}}),V=(0,ne.Z)(lr,2),dt=V[0],I=V[1],m=function(Nr){I(Nr.target.value),sr==null||sr(Nr)},f=F.useRef();F.useImperativeHandle(ve,function(){return{textArea:f.current}});var C=F.useMemo(function(){return je&&(0,Oe.Z)(je)==="object"?[je.minRows,je.maxRows]:[]},[je]),Y=(0,ne.Z)(C,2),Be=Y[0],H=Y[1],ie=!!je,Qe=function(){try{if(document.activeElement===f.current){var Nr=f.current,kr=Nr.selectionStart,yr=Nr.selectionEnd,dr=Nr.scrollTop;f.current.setSelectionRange(kr,yr),f.current.scrollTop=dr}}catch(Qr){}},we=F.useState(Ne),ce=(0,ne.Z)(we,2),ze=ce[0],vt=ce[1],he=F.useState(),at=(0,ne.Z)(he,2),rt=at[0],ke=at[1],Fe=function(){vt(le)};(0,R.Z)(function(){ie&&Fe()},[et,Be,H,ie]),(0,R.Z)(function(){if(ze===le)vt(be);else if(ze===be){var Lr=G(f.current,!1,Be,H);vt(Ne),ke(Lr)}else Qe()},[ze]);var ct=F.useRef(),Tt=function(){L.Z.cancel(ct.current)},Pt=function(Nr){ze===Ne&&(Ye==null||Ye(Nr),je&&(Tt(),ct.current=(0,L.Z)(function(){Fe()})))};F.useEffect(function(){return Tt},[]);var Yt=ie?rt:null,Fr=(0,Ae.Z)((0,Ae.Z)({},kt),Yt);return(ze===le||ze===be)&&(Fr.overflowY="hidden",Fr.overflowX="hidden"),F.createElement(N.Z,{onResize:Pt,disabled:!(je||Ye)},F.createElement("textarea",(0,me.Z)({},br,{ref:f,style:Fr,className:M()(pe,_t,(0,P.Z)({},"".concat(pe,"-disabled"),Ot)),disabled:Ot,value:dt,onChange:m})))}),Ue=ye,q=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function de(Te,ve){return(0,S.Z)(Te||"").slice(0,ve).join("")}function D(Te,ve,De,pe){var Se=De;return Te?Se=de(De,pe):(0,S.Z)(ve||"").length<De.length&&(0,S.Z)(De||"").length>pe&&(Se=ve),Se}var qe=F.forwardRef(function(Te,ve){var De,pe=Te.defaultValue,Se=Te.value,Xe=Te.onFocus,et=Te.onBlur,je=Te.onChange,Ye=Te.allowClear,_t=Te.maxLength,kt=Te.onCompositionStart,Ot=Te.onCompositionEnd,sr=Te.suffix,rr=Te.prefixCls,br=rr===void 0?"rc-textarea":rr,lr=Te.classes,V=Te.showCount,dt=Te.className,I=Te.style,m=Te.disabled,f=Te.hidden,C=Te.classNames,Y=Te.styles,Be=Te.onResize,H=(0,W.Z)(Te,q),ie=(0,_.Z)(pe,{value:Se,defaultValue:pe}),Qe=(0,ne.Z)(ie,2),we=Qe[0],ce=Qe[1],ze=(0,F.useRef)(null),vt=F.useState(!1),he=(0,ne.Z)(vt,2),at=he[0],rt=he[1],ke=F.useState(!1),Fe=(0,ne.Z)(ke,2),ct=Fe[0],Tt=Fe[1],Pt=F.useRef(),Yt=F.useRef(0),Fr=F.useState(null),Lr=(0,ne.Z)(Fr,2),Nr=Lr[0],kr=Lr[1],yr=function(){var ei;(ei=ze.current)===null||ei===void 0||ei.textArea.focus()};(0,F.useImperativeHandle)(ve,function(){return{resizableTextArea:ze.current,focus:yr,blur:function(){var ei;(ei=ze.current)===null||ei===void 0||ei.textArea.blur()}}}),(0,F.useEffect)(function(){rt(function(Ki){return!m&&Ki})},[m]);var dr=Number(_t)>0,Qr=function(ei){Tt(!0),Pt.current=we,Yt.current=ei.currentTarget.selectionStart,kt==null||kt(ei)},An=function(ei){Tt(!1);var pi=ei.currentTarget.value;if(dr){var vi,$e=Yt.current>=_t+1||Yt.current===((vi=Pt.current)===null||vi===void 0?void 0:vi.length);pi=D($e,Pt.current,pi,_t)}pi!==we&&(ce(pi),(0,$.rJ)(ei.currentTarget,ei,je,pi)),Ot==null||Ot(ei)},Tn=function(ei){var pi=ei.target.value;if(!ct&&dr){var vi=ei.target.selectionStart>=_t+1||ei.target.selectionStart===pi.length||!ei.target.selectionStart;pi=D(vi,we,pi,_t)}ce(pi),(0,$.rJ)(ei.currentTarget,ei,je,pi)},dn=function(ei){var pi=H.onPressEnter,vi=H.onKeyDown;ei.key==="Enter"&&pi&&pi(ei),vi==null||vi(ei)},kn=function(ei){rt(!0),Xe==null||Xe(ei)},Qi=function(ei){rt(!1),et==null||et(ei)},Pr=function(ei){var pi;ce(""),yr(),(0,$.rJ)((pi=ze.current)===null||pi===void 0?void 0:pi.textArea,ei,je)},wn=(0,$.D7)(we);!ct&&dr&&Se==null&&(wn=de(wn,_t));var Si=sr,ui;if(V){var Zi=(0,S.Z)(wn).length;(0,Oe.Z)(V)==="object"?ui=V.formatter({value:wn,count:Zi,maxLength:_t}):ui="".concat(Zi).concat(dr?" / ".concat(_t):""),Si=F.createElement(F.Fragment,null,Si,F.createElement("span",{className:M()("".concat(br,"-data-count"),C==null?void 0:C.count),style:Y==null?void 0:Y.count},ui))}var Ei=function(ei){var pi;Be==null||Be(ei),(pi=ze.current)!==null&&pi!==void 0&&pi.textArea.style.height&&kr(!0)},ji=!H.autoSize&&!V&&!Ye,eo=F.createElement(h.BaseInput,{value:wn,allowClear:Ye,handleReset:Pr,suffix:Si,prefixCls:br,classes:{affixWrapper:M()(lr==null?void 0:lr.affixWrapper,(De={},(0,P.Z)(De,"".concat(br,"-show-count"),V),(0,P.Z)(De,"".concat(br,"-textarea-allow-clear"),Ye),De))},disabled:m,focused:at,className:dt,style:(0,Ae.Z)((0,Ae.Z)({},I),Nr&&!ji?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof ui=="string"?ui:void 0}},hidden:f,inputElement:F.createElement(Ue,(0,me.Z)({},H,{onKeyDown:dn,onChange:Tn,onFocus:kn,onBlur:Qi,onCompositionStart:Qr,onCompositionEnd:An,className:C==null?void 0:C.textarea,style:(0,Ae.Z)((0,Ae.Z)({},Y==null?void 0:Y.textarea),{},{resize:I==null?void 0:I.resize}),disabled:m,prefixCls:br,onResize:Ei,ref:ze}))});return eo}),Me=qe,xe=Me},39417:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return be}});var me=x(54476),Ae=x(20068),P=x(75931),Oe=x(33885),ne=x(67732),W=x(83652),S=x(31226),v=x(42403),M=x(158),h=x(92310),$=x.n(h),_=x(26112),F=x(59301),N=x(39378),R=function(ye){for(var Ue=ye.prefixCls,q=ye.level,de=ye.isStart,D=ye.isEnd,qe="".concat(Ue,"-indent-unit"),Me=[],xe=0;xe<q;xe+=1){var Te;Me.push(F.createElement("span",{key:xe,className:$()(qe,(Te={},(0,Ae.Z)(Te,"".concat(qe,"-start"),de[xe]),(0,Ae.Z)(Te,"".concat(qe,"-end"),D[xe]),Te))}))}return F.createElement("span",{"aria-hidden":"true",className:"".concat(Ue,"-indent")},Me)},L=F.memo(R),X=x(67841),Q=x(71430),oe=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ee="open",re="close",G="---",K=function(Ne){(0,v.Z)(Ue,Ne);var ye=(0,M.Z)(Ue);function Ue(){var q;(0,ne.Z)(this,Ue);for(var de=arguments.length,D=new Array(de),qe=0;qe<de;qe++)D[qe]=arguments[qe];return q=ye.call.apply(ye,[this].concat(D)),q.state={dragNodeHighlight:!1},q.selectHandle=void 0,q.cacheIndent=void 0,q.onSelectorClick=function(Me){var xe=q.props.context.onNodeClick;xe(Me,(0,Q.F)(q.props)),q.isSelectable()?q.onSelect(Me):q.onCheck(Me)},q.onSelectorDoubleClick=function(Me){var xe=q.props.context.onNodeDoubleClick;xe(Me,(0,Q.F)(q.props))},q.onSelect=function(Me){if(!q.isDisabled()){var xe=q.props.context.onNodeSelect;xe(Me,(0,Q.F)(q.props))}},q.onCheck=function(Me){if(!q.isDisabled()){var xe=q.props,Te=xe.disableCheckbox,ve=xe.checked,De=q.props.context.onNodeCheck;if(!(!q.isCheckable()||Te)){var pe=!ve;De(Me,(0,Q.F)(q.props),pe)}}},q.onMouseEnter=function(Me){var xe=q.props.context.onNodeMouseEnter;xe(Me,(0,Q.F)(q.props))},q.onMouseLeave=function(Me){var xe=q.props.context.onNodeMouseLeave;xe(Me,(0,Q.F)(q.props))},q.onContextMenu=function(Me){var xe=q.props.context.onNodeContextMenu;xe(Me,(0,Q.F)(q.props))},q.onDragStart=function(Me){var xe=q.props.context.onNodeDragStart;Me.stopPropagation(),q.setState({dragNodeHighlight:!0}),xe(Me,(0,S.Z)(q));try{Me.dataTransfer.setData("text/plain","")}catch(Te){}},q.onDragEnter=function(Me){var xe=q.props.context.onNodeDragEnter;Me.preventDefault(),Me.stopPropagation(),xe(Me,(0,S.Z)(q))},q.onDragOver=function(Me){var xe=q.props.context.onNodeDragOver;Me.preventDefault(),Me.stopPropagation(),xe(Me,(0,S.Z)(q))},q.onDragLeave=function(Me){var xe=q.props.context.onNodeDragLeave;Me.stopPropagation(),xe(Me,(0,S.Z)(q))},q.onDragEnd=function(Me){var xe=q.props.context.onNodeDragEnd;Me.stopPropagation(),q.setState({dragNodeHighlight:!1}),xe(Me,(0,S.Z)(q))},q.onDrop=function(Me){var xe=q.props.context.onNodeDrop;Me.preventDefault(),Me.stopPropagation(),q.setState({dragNodeHighlight:!1}),xe(Me,(0,S.Z)(q))},q.onExpand=function(Me){var xe=q.props,Te=xe.loading,ve=xe.context.onNodeExpand;Te||ve(Me,(0,Q.F)(q.props))},q.setSelectHandle=function(Me){q.selectHandle=Me},q.getNodeState=function(){var Me=q.props.expanded;return q.isLeaf()?null:Me?ee:re},q.hasChildren=function(){var Me=q.props.eventKey,xe=q.props.context.keyEntities,Te=(0,X.Z)(xe,Me)||{},ve=Te.children;return!!(ve||[]).length},q.isLeaf=function(){var Me=q.props,xe=Me.isLeaf,Te=Me.loaded,ve=q.props.context.loadData,De=q.hasChildren();return xe===!1?!1:xe||!ve&&!De||ve&&Te&&!De},q.isDisabled=function(){var Me=q.props.disabled,xe=q.props.context.disabled;return!!(xe||Me)},q.isCheckable=function(){var Me=q.props.checkable,xe=q.props.context.checkable;return!xe||Me===!1?!1:xe},q.syncLoadData=function(Me){var xe=Me.expanded,Te=Me.loading,ve=Me.loaded,De=q.props.context,pe=De.loadData,Se=De.onNodeLoad;Te||pe&&xe&&!q.isLeaf()&&!q.hasChildren()&&!ve&&Se((0,Q.F)(q.props))},q.isDraggable=function(){var Me=q.props,xe=Me.data,Te=Me.context.draggable;return!!(Te&&(!Te.nodeDraggable||Te.nodeDraggable(xe)))},q.renderDragHandler=function(){var Me=q.props.context,xe=Me.draggable,Te=Me.prefixCls;return xe!=null&&xe.icon?F.createElement("span",{className:"".concat(Te,"-draggable-icon")},xe.icon):null},q.renderSwitcherIconDom=function(Me){var xe=q.props.switcherIcon,Te=q.props.context.switcherIcon,ve=xe||Te;return typeof ve=="function"?ve((0,Oe.Z)((0,Oe.Z)({},q.props),{},{isLeaf:Me})):ve},q.renderSwitcher=function(){var Me=q.props.expanded,xe=q.props.context.prefixCls;if(q.isLeaf()){var Te=q.renderSwitcherIconDom(!0);return Te!==!1?F.createElement("span",{className:$()("".concat(xe,"-switcher"),"".concat(xe,"-switcher-noop"))},Te):null}var ve=$()("".concat(xe,"-switcher"),"".concat(xe,"-switcher_").concat(Me?ee:re)),De=q.renderSwitcherIconDom(!1);return De!==!1?F.createElement("span",{onClick:q.onExpand,className:ve},De):null},q.renderCheckbox=function(){var Me=q.props,xe=Me.checked,Te=Me.halfChecked,ve=Me.disableCheckbox,De=q.props.context.prefixCls,pe=q.isDisabled(),Se=q.isCheckable();if(!Se)return null;var Xe=typeof Se!="boolean"?Se:null;return F.createElement("span",{className:$()("".concat(De,"-checkbox"),xe&&"".concat(De,"-checkbox-checked"),!xe&&Te&&"".concat(De,"-checkbox-indeterminate"),(pe||ve)&&"".concat(De,"-checkbox-disabled")),onClick:q.onCheck},Xe)},q.renderIcon=function(){var Me=q.props.loading,xe=q.props.context.prefixCls;return F.createElement("span",{className:$()("".concat(xe,"-iconEle"),"".concat(xe,"-icon__").concat(q.getNodeState()||"docu"),Me&&"".concat(xe,"-icon_loading"))})},q.renderSelector=function(){var Me=q.state.dragNodeHighlight,xe=q.props,Te=xe.title,ve=Te===void 0?G:Te,De=xe.selected,pe=xe.icon,Se=xe.loading,Xe=xe.data,et=q.props.context,je=et.prefixCls,Ye=et.showIcon,_t=et.icon,kt=et.loadData,Ot=et.titleRender,sr=q.isDisabled(),rr="".concat(je,"-node-content-wrapper"),br;if(Ye){var lr=pe||_t;br=lr?F.createElement("span",{className:$()("".concat(je,"-iconEle"),"".concat(je,"-icon__customize"))},typeof lr=="function"?lr(q.props):lr):q.renderIcon()}else kt&&Se&&(br=q.renderIcon());var V;typeof ve=="function"?V=ve(Xe):Ot?V=Ot(Xe):V=ve;var dt=F.createElement("span",{className:"".concat(je,"-title")},V);return F.createElement("span",{ref:q.setSelectHandle,title:typeof ve=="string"?ve:"",className:$()("".concat(rr),"".concat(rr,"-").concat(q.getNodeState()||"normal"),!sr&&(De||Me)&&"".concat(je,"-node-selected")),onMouseEnter:q.onMouseEnter,onMouseLeave:q.onMouseLeave,onContextMenu:q.onContextMenu,onClick:q.onSelectorClick,onDoubleClick:q.onSelectorDoubleClick},br,dt,q.renderDropIndicator())},q.renderDropIndicator=function(){var Me=q.props,xe=Me.disabled,Te=Me.eventKey,ve=q.props.context,De=ve.draggable,pe=ve.dropLevelOffset,Se=ve.dropPosition,Xe=ve.prefixCls,et=ve.indent,je=ve.dropIndicatorRender,Ye=ve.dragOverNodeKey,_t=ve.direction,kt=!!De,Ot=!xe&&kt&&Ye===Te,sr=et!=null?et:q.cacheIndent;return q.cacheIndent=et,Ot?je({dropPosition:Se,dropLevelOffset:pe,indent:sr,prefixCls:Xe,direction:_t}):null},q}return(0,W.Z)(Ue,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var de=this.props.selectable,D=this.props.context.selectable;return typeof de=="boolean"?de:D}},{key:"render",value:function(){var de,D=this.props,qe=D.eventKey,Me=D.className,xe=D.style,Te=D.dragOver,ve=D.dragOverGapTop,De=D.dragOverGapBottom,pe=D.isLeaf,Se=D.isStart,Xe=D.isEnd,et=D.expanded,je=D.selected,Ye=D.checked,_t=D.halfChecked,kt=D.loading,Ot=D.domRef,sr=D.active,rr=D.data,br=D.onMouseMove,lr=D.selectable,V=(0,P.Z)(D,oe),dt=this.props.context,I=dt.prefixCls,m=dt.filterTreeNode,f=dt.keyEntities,C=dt.dropContainerKey,Y=dt.dropTargetKey,Be=dt.draggingNodeKey,H=this.isDisabled(),ie=(0,_.Z)(V,{aria:!0,data:!0}),Qe=(0,X.Z)(f,qe)||{},we=Qe.level,ce=Xe[Xe.length-1],ze=this.isDraggable(),vt=!H&&ze,he=Be===qe,at=lr!==void 0?{"aria-selected":!!lr}:void 0;return F.createElement("div",(0,me.Z)({ref:Ot,className:$()(Me,"".concat(I,"-treenode"),(de={},(0,Ae.Z)(de,"".concat(I,"-treenode-disabled"),H),(0,Ae.Z)(de,"".concat(I,"-treenode-switcher-").concat(et?"open":"close"),!pe),(0,Ae.Z)(de,"".concat(I,"-treenode-checkbox-checked"),Ye),(0,Ae.Z)(de,"".concat(I,"-treenode-checkbox-indeterminate"),_t),(0,Ae.Z)(de,"".concat(I,"-treenode-selected"),je),(0,Ae.Z)(de,"".concat(I,"-treenode-loading"),kt),(0,Ae.Z)(de,"".concat(I,"-treenode-active"),sr),(0,Ae.Z)(de,"".concat(I,"-treenode-leaf-last"),ce),(0,Ae.Z)(de,"".concat(I,"-treenode-draggable"),ze),(0,Ae.Z)(de,"dragging",he),(0,Ae.Z)(de,"drop-target",Y===qe),(0,Ae.Z)(de,"drop-container",C===qe),(0,Ae.Z)(de,"drag-over",!H&&Te),(0,Ae.Z)(de,"drag-over-gap-top",!H&&ve),(0,Ae.Z)(de,"drag-over-gap-bottom",!H&&De),(0,Ae.Z)(de,"filter-node",m&&m((0,Q.F)(this.props))),de)),style:xe,draggable:vt,"aria-grabbed":he,onDragStart:vt?this.onDragStart:void 0,onDragEnter:ze?this.onDragEnter:void 0,onDragOver:ze?this.onDragOver:void 0,onDragLeave:ze?this.onDragLeave:void 0,onDrop:ze?this.onDrop:void 0,onDragEnd:ze?this.onDragEnd:void 0,onMouseMove:br},at,ie),F.createElement(L,{prefixCls:I,level:we,isStart:Se,isEnd:Xe}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Ue}(F.Component),le=function(ye){return F.createElement(N.k.Consumer,null,function(Ue){return F.createElement(K,(0,me.Z)({},ye,{context:Ue}))})};le.displayName="TreeNode",le.isTreeNode=1;var be=le},39378:function(un,Ut,x){"use strict";x.d(Ut,{k:function(){return Ae}});var me=x(59301),Ae=me.createContext(null)},60091:function(un,Ut,x){"use strict";x.d(Ut,{O:function(){return be.Z},Z:function(){return dt}});var me=x(54476),Ae=x(20068),P=x(76190),Oe=x(33885),ne=x(94480),W=x(67732),S=x(83652),v=x(31226),M=x(42403),h=x(158),$=x(92310),_=x.n($),F=x(10228),N=x(26112),R=x(48736),L=x(59301),X=x(39378);function Q(I){var m=I.dropPosition,f=I.dropLevelOffset,C=I.indent,Y={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(m){case-1:Y.top=0,Y.left=-f*C;break;case 1:Y.bottom=0,Y.left=-f*C;break;case 0:Y.bottom=0,Y.left=C;break}return L.createElement("div",{style:Y})}function oe(I){if(I==null)throw new TypeError("Cannot destructure "+I)}var ee=x(42978),re=x(75931),G=x(34280),K=x(48911),le=x(77900),be=x(39417);function Ne(I,m){var f=L.useState(!1),C=(0,ee.Z)(f,2),Y=C[0],Be=C[1];L.useLayoutEffect(function(){if(Y)return I(),function(){m()}},[Y]),L.useLayoutEffect(function(){return Be(!0),function(){Be(!1)}},[])}var ye=x(71430),Ue=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],q=function(m,f){var C=m.className,Y=m.style,Be=m.motion,H=m.motionNodes,ie=m.motionType,Qe=m.onMotionStart,we=m.onMotionEnd,ce=m.active,ze=m.treeNodeRequiredProps,vt=(0,re.Z)(m,Ue),he=L.useState(!0),at=(0,ee.Z)(he,2),rt=at[0],ke=at[1],Fe=L.useContext(X.k),ct=Fe.prefixCls,Tt=H&&ie!=="hide";(0,G.Z)(function(){H&&Tt!==rt&&ke(Tt)},[H]);var Pt=function(){H&&Qe()},Yt=L.useRef(!1),Fr=function(){H&&!Yt.current&&(Yt.current=!0,we())};Ne(Pt,Fr);var Lr=function(kr){Tt===kr&&Fr()};return H?L.createElement(le.default,(0,me.Z)({ref:f,visible:rt},Be,{motionAppear:ie==="show",onVisibleChanged:Lr}),function(Nr,kr){var yr=Nr.className,dr=Nr.style;return L.createElement("div",{ref:kr,className:_()("".concat(ct,"-treenode-motion"),yr),style:dr},H.map(function(Qr){var An=(0,me.Z)({},(oe(Qr.data),Qr.data)),Tn=Qr.title,dn=Qr.key,kn=Qr.isStart,Qi=Qr.isEnd;delete An.children;var Pr=(0,ye.H8)(dn,ze);return L.createElement(be.Z,(0,me.Z)({},An,Pr,{title:Tn,active:ce,data:Qr.data,key:dn,isStart:kn,isEnd:Qi}))}))}):L.createElement(be.Z,(0,me.Z)({domRef:f,className:C,style:Y},vt,{active:ce}))};q.displayName="MotionTreeNode";var de=L.forwardRef(q),D=de;function qe(){var I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=I.length,C=m.length;if(Math.abs(f-C)!==1)return{add:!1,key:null};function Y(Be,H){var ie=new Map;Be.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 f<C?{add:!0,key:Y(I,m)}:{add:!1,key:Y(m,I)}}function Me(I,m,f){var C=I.findIndex(function(ie){return ie.key===f}),Y=I[C+1],Be=m.findIndex(function(ie){return ie.key===f});if(Y){var H=m.findIndex(function(ie){return ie.key===Y.key});return m.slice(Be+1,H)}return m.slice(Be+1)}var xe=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Te={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},ve=function(){},De="RC_TREE_MOTION_".concat(Math.random()),pe={key:De},Se={key:De,level:0,index:0,pos:"0",node:pe,nodes:[pe]},Xe={parent:null,children:[],pos:Se.pos,data:pe,title:null,key:De,isStart:[],isEnd:[]};function et(I,m,f,C){return m===!1||!f?I:I.slice(0,Math.ceil(f/C)+1)}function je(I){var m=I.key,f=I.pos;return(0,ye.km)(m,f)}function Ye(I){for(var m=String(I.data.key),f=I;f.parent;)f=f.parent,m="".concat(f.data.key," > ").concat(m);return m}var _t=L.forwardRef(function(I,m){var f=I.prefixCls,C=I.data,Y=I.selectable,Be=I.checkable,H=I.expandedKeys,ie=I.selectedKeys,Qe=I.checkedKeys,we=I.loadedKeys,ce=I.loadingKeys,ze=I.halfCheckedKeys,vt=I.keyEntities,he=I.disabled,at=I.dragging,rt=I.dragOverNodeKey,ke=I.dropPosition,Fe=I.motion,ct=I.height,Tt=I.itemHeight,Pt=I.virtual,Yt=I.focusable,Fr=I.activeItem,Lr=I.focused,Nr=I.tabIndex,kr=I.onKeyDown,yr=I.onFocus,dr=I.onBlur,Qr=I.onActiveChange,An=I.onListChangeStart,Tn=I.onListChangeEnd,dn=(0,re.Z)(I,xe),kn=L.useRef(null),Qi=L.useRef(null);L.useImperativeHandle(m,function(){return{scrollTo:function(en){kn.current.scrollTo(en)},getIndentWidth:function(){return Qi.current.offsetWidth}}});var Pr=L.useState(H),wn=(0,ee.Z)(Pr,2),Si=wn[0],ui=wn[1],Zi=L.useState(C),Ei=(0,ee.Z)(Zi,2),ji=Ei[0],eo=Ei[1],Ki=L.useState(C),ei=(0,ee.Z)(Ki,2),pi=ei[0],vi=ei[1],$e=L.useState([]),_e=(0,ee.Z)($e,2),Le=_e[0],Ie=_e[1],Dt=L.useState(null),Mt=(0,ee.Z)(Dt,2),Sr=Mt[0],nr=Mt[1],Dr=L.useRef(C);Dr.current=C;function Hr(){var Rr=Dr.current;eo(Rr),vi(Rr),Ie([]),nr(null),Tn()}(0,G.Z)(function(){ui(H);var Rr=qe(Si,H);if(Rr.key!==null)if(Rr.add){var en=ji.findIndex(function(On){var Gn=On.key;return Gn===Rr.key}),yn=et(Me(ji,C,Rr.key),Pt,ct,Tt),on=ji.slice();on.splice(en+1,0,Xe),vi(on),Ie(yn),nr("show")}else{var Dn=C.findIndex(function(On){var Gn=On.key;return Gn===Rr.key}),Qn=et(Me(C,ji,Rr.key),Pt,ct,Tt),Ai=C.slice();Ai.splice(Dn+1,0,Xe),vi(Ai),Ie(Qn),nr("hide")}else ji!==C&&(eo(C),vi(C))},[H,C]),L.useEffect(function(){at||Hr()},[at]);var an=Fe?pi:C,jr={expandedKeys:H,selectedKeys:ie,loadedKeys:we,loadingKeys:ce,checkedKeys:Qe,halfCheckedKeys:ze,dragOverNodeKey:rt,dropPosition:ke,keyEntities:vt};return L.createElement(L.Fragment,null,Lr&&Fr&&L.createElement("span",{style:Te,"aria-live":"assertive"},Ye(Fr)),L.createElement("div",null,L.createElement("input",{style:Te,disabled:Yt===!1||he,tabIndex:Yt!==!1?Nr:null,onKeyDown:kr,onFocus:yr,onBlur:dr,value:"",onChange:ve,"aria-label":"for screen reader"})),L.createElement("div",{className:"".concat(f,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},L.createElement("div",{className:"".concat(f,"-indent")},L.createElement("div",{ref:Qi,className:"".concat(f,"-indent-unit")}))),L.createElement(K.Z,(0,me.Z)({},dn,{data:an,itemKey:je,height:ct,fullHeight:!1,virtual:Pt,itemHeight:Tt,prefixCls:"".concat(f,"-list"),ref:kn,onVisibleChange:function(en,yn){var on=new Set(en),Dn=yn.filter(function(Qn){return!on.has(Qn)});Dn.some(function(Qn){return je(Qn)===De})&&Hr()}}),function(Rr){var en=Rr.pos,yn=(0,me.Z)({},(oe(Rr.data),Rr.data)),on=Rr.title,Dn=Rr.key,Qn=Rr.isStart,Ai=Rr.isEnd,On=(0,ye.km)(Dn,en);delete yn.key,delete yn.children;var Gn=(0,ye.H8)(On,jr);return L.createElement(D,(0,me.Z)({},yn,Gn,{title:on,active:!!Fr&&Dn===Fr.key,pos:en,data:Rr.data,isStart:Qn,isEnd:Ai,motion:Fe,motionNodes:Dn===De?Le:null,motionType:Sr,onMotionStart:An,onMotionEnd:Hr,treeNodeRequiredProps:jr,onMouseMove:function(){Qr(null)}}))}))});_t.displayName="NodeList";var kt=_t,Ot=x(35654),sr=x(90782),rr=x(67841),br=10,lr=function(I){(0,M.Z)(f,I);var m=(0,h.Z)(f);function f(){var C;(0,W.Z)(this,f);for(var Y=arguments.length,Be=new Array(Y),H=0;H<Y;H++)Be[H]=arguments[H];return C=m.call.apply(m,[this].concat(Be)),C.destroyed=!1,C.delayedDragEnterLogic=void 0,C.loadingRetryTimes={},C.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,ye.w$)()},C.dragStartMousePosition=null,C.dragNode=void 0,C.currentMouseOverDroppableNodeKey=null,C.listRef=L.createRef(),C.onNodeDragStart=function(ie,Qe){var we=C.state,ce=we.expandedKeys,ze=we.keyEntities,vt=C.props.onDragStart,he=Qe.props.eventKey;C.dragNode=Qe,C.dragStartMousePosition={x:ie.clientX,y:ie.clientY};var at=(0,Ot._5)(ce,he);C.setState({draggingNodeKey:he,dragChildrenKeys:(0,Ot.wA)(he,ze),indent:C.listRef.current.getIndentWidth()}),C.setExpandedKeys(at),window.addEventListener("dragend",C.onWindowDragEnd),vt==null||vt({event:ie,node:(0,ye.F)(Qe.props)})},C.onNodeDragEnter=function(ie,Qe){var we=C.state,ce=we.expandedKeys,ze=we.keyEntities,vt=we.dragChildrenKeys,he=we.flattenNodes,at=we.indent,rt=C.props,ke=rt.onDragEnter,Fe=rt.onExpand,ct=rt.allowDrop,Tt=rt.direction,Pt=Qe.props,Yt=Pt.pos,Fr=Pt.eventKey,Lr=(0,v.Z)(C),Nr=Lr.dragNode;if(C.currentMouseOverDroppableNodeKey!==Fr&&(C.currentMouseOverDroppableNodeKey=Fr),!Nr){C.resetDragState();return}var kr=(0,Ot.OM)(ie,Nr,Qe,at,C.dragStartMousePosition,ct,he,ze,ce,Tt),yr=kr.dropPosition,dr=kr.dropLevelOffset,Qr=kr.dropTargetKey,An=kr.dropContainerKey,Tn=kr.dropTargetPos,dn=kr.dropAllowed,kn=kr.dragOverNodeKey;if(vt.indexOf(Qr)!==-1||!dn){C.resetDragState();return}if(C.delayedDragEnterLogic||(C.delayedDragEnterLogic={}),Object.keys(C.delayedDragEnterLogic).forEach(function(Qi){clearTimeout(C.delayedDragEnterLogic[Qi])}),Nr.props.eventKey!==Qe.props.eventKey&&(ie.persist(),C.delayedDragEnterLogic[Yt]=window.setTimeout(function(){if(C.state.draggingNodeKey!==null){var Qi=(0,ne.Z)(ce),Pr=(0,rr.Z)(ze,Qe.props.eventKey);Pr&&(Pr.children||[]).length&&(Qi=(0,Ot.L0)(ce,Qe.props.eventKey)),"expandedKeys"in C.props||C.setExpandedKeys(Qi),Fe==null||Fe(Qi,{node:(0,ye.F)(Qe.props),expanded:!0,nativeEvent:ie.nativeEvent})}},800)),Nr.props.eventKey===Qr&&dr===0){C.resetDragState();return}C.setState({dragOverNodeKey:kn,dropPosition:yr,dropLevelOffset:dr,dropTargetKey:Qr,dropContainerKey:An,dropTargetPos:Tn,dropAllowed:dn}),ke==null||ke({event:ie,node:(0,ye.F)(Qe.props),expandedKeys:ce})},C.onNodeDragOver=function(ie,Qe){var we=C.state,ce=we.dragChildrenKeys,ze=we.flattenNodes,vt=we.keyEntities,he=we.expandedKeys,at=we.indent,rt=C.props,ke=rt.onDragOver,Fe=rt.allowDrop,ct=rt.direction,Tt=(0,v.Z)(C),Pt=Tt.dragNode;if(Pt){var Yt=(0,Ot.OM)(ie,Pt,Qe,at,C.dragStartMousePosition,Fe,ze,vt,he,ct),Fr=Yt.dropPosition,Lr=Yt.dropLevelOffset,Nr=Yt.dropTargetKey,kr=Yt.dropContainerKey,yr=Yt.dropAllowed,dr=Yt.dropTargetPos,Qr=Yt.dragOverNodeKey;ce.indexOf(Nr)!==-1||!yr||(Pt.props.eventKey===Nr&&Lr===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&&Lr===C.state.dropLevelOffset&&Nr===C.state.dropTargetKey&&kr===C.state.dropContainerKey&&dr===C.state.dropTargetPos&&yr===C.state.dropAllowed&&Qr===C.state.dragOverNodeKey||C.setState({dropPosition:Fr,dropLevelOffset:Lr,dropTargetKey:Nr,dropContainerKey:kr,dropTargetPos:dr,dropAllowed:yr,dragOverNodeKey:Qr}),ke==null||ke({event:ie,node:(0,ye.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,ye.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,ye.F)(Qe.props)}),C.dragNode=null,window.removeEventListener("dragend",C.onWindowDragEnd)},C.onNodeDrop=function(ie,Qe){var we,ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ze=C.state,vt=ze.dragChildrenKeys,he=ze.dropPosition,at=ze.dropTargetKey,rt=ze.dropTargetPos,ke=ze.dropAllowed;if(ke){var Fe=C.props.onDrop;if(C.setState({dragOverNodeKey:null}),C.cleanDragState(),at!==null){var ct=(0,Oe.Z)((0,Oe.Z)({},(0,ye.H8)(at,C.getTreeNodeRequiredProps())),{},{active:((we=C.getActiveItem())===null||we===void 0?void 0:we.key)===at,data:(0,rr.Z)(C.state.keyEntities,at).node}),Tt=vt.indexOf(at)!==-1;(0,R.ZP)(!Tt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Pt=(0,Ot.yx)(rt),Yt={event:ie,node:(0,ye.F)(ct),dragNode:C.dragNode?(0,ye.F)(C.dragNode.props):null,dragNodesKeys:[C.dragNode.props.eventKey].concat(vt),dropToGap:he!==0,dropPosition:he+Number(Pt[Pt.length-1])};ce||Fe==null||Fe(Yt),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,ce=we.expandedKeys,ze=we.flattenNodes,vt=Qe.expanded,he=Qe.key,at=Qe.isLeaf;if(!(at||ie.shiftKey||ie.metaKey||ie.ctrlKey)){var rt=ze.filter(function(Fe){return Fe.key===he})[0],ke=(0,ye.F)((0,Oe.Z)((0,Oe.Z)({},(0,ye.H8)(he,C.getTreeNodeRequiredProps())),{},{data:rt.data}));C.setExpandedKeys(vt?(0,Ot._5)(ce,he):(0,Ot.L0)(ce,he)),C.onNodeExpand(ie,ke)}},C.onNodeClick=function(ie,Qe){var we=C.props,ce=we.onClick,ze=we.expandAction;ze==="click"&&C.triggerExpandActionExpand(ie,Qe),ce==null||ce(ie,Qe)},C.onNodeDoubleClick=function(ie,Qe){var we=C.props,ce=we.onDoubleClick,ze=we.expandAction;ze==="doubleClick"&&C.triggerExpandActionExpand(ie,Qe),ce==null||ce(ie,Qe)},C.onNodeSelect=function(ie,Qe){var we=C.state.selectedKeys,ce=C.state,ze=ce.keyEntities,vt=ce.fieldNames,he=C.props,at=he.onSelect,rt=he.multiple,ke=Qe.selected,Fe=Qe[vt.key],ct=!ke;ct?rt?we=(0,Ot.L0)(we,Fe):we=[Fe]:we=(0,Ot._5)(we,Fe);var Tt=we.map(function(Pt){var Yt=(0,rr.Z)(ze,Pt);return Yt?Yt.node:null}).filter(function(Pt){return Pt});C.setUncontrolledState({selectedKeys:we}),at==null||at(we,{event:"select",selected:ct,node:Qe,selectedNodes:Tt,nativeEvent:ie.nativeEvent})},C.onNodeCheck=function(ie,Qe,we){var ce=C.state,ze=ce.keyEntities,vt=ce.checkedKeys,he=ce.halfCheckedKeys,at=C.props,rt=at.checkStrictly,ke=at.onCheck,Fe=Qe.key,ct,Tt={event:"check",node:Qe,checked:we,nativeEvent:ie.nativeEvent};if(rt){var Pt=we?(0,Ot.L0)(vt,Fe):(0,Ot._5)(vt,Fe),Yt=(0,Ot._5)(he,Fe);ct={checked:Pt,halfChecked:Yt},Tt.checkedNodes=Pt.map(function(dr){return(0,rr.Z)(ze,dr)}).filter(function(dr){return dr}).map(function(dr){return dr.node}),C.setUncontrolledState({checkedKeys:Pt})}else{var Fr=(0,sr.S)([].concat((0,ne.Z)(vt),[Fe]),!0,ze),Lr=Fr.checkedKeys,Nr=Fr.halfCheckedKeys;if(!we){var kr=new Set(Lr);kr.delete(Fe);var yr=(0,sr.S)(Array.from(kr),{checked:!1,halfCheckedKeys:Nr},ze);Lr=yr.checkedKeys,Nr=yr.halfCheckedKeys}ct=Lr,Tt.checkedNodes=[],Tt.checkedNodesPositions=[],Tt.halfCheckedKeys=Nr,Lr.forEach(function(dr){var Qr=(0,rr.Z)(ze,dr);if(Qr){var An=Qr.node,Tn=Qr.pos;Tt.checkedNodes.push(An),Tt.checkedNodesPositions.push({node:An,pos:Tn})}}),C.setUncontrolledState({checkedKeys:Lr},!1,{halfCheckedKeys:Nr})}ke==null||ke(ct,Tt)},C.onNodeLoad=function(ie){var Qe=ie.key,we=new Promise(function(ce,ze){C.setState(function(vt){var he=vt.loadedKeys,at=he===void 0?[]:he,rt=vt.loadingKeys,ke=rt===void 0?[]:rt,Fe=C.props,ct=Fe.loadData,Tt=Fe.onLoad;if(!ct||at.indexOf(Qe)!==-1||ke.indexOf(Qe)!==-1)return null;var Pt=ct(ie);return Pt.then(function(){var Yt=C.state.loadedKeys,Fr=(0,Ot.L0)(Yt,Qe);Tt==null||Tt(Fr,{event:"load",node:ie}),C.setUncontrolledState({loadedKeys:Fr}),C.setState(function(Lr){return{loadingKeys:(0,Ot._5)(Lr.loadingKeys,Qe)}}),ce()}).catch(function(Yt){if(C.setState(function(Lr){return{loadingKeys:(0,Ot._5)(Lr.loadingKeys,Qe)}}),C.loadingRetryTimes[Qe]=(C.loadingRetryTimes[Qe]||0)+1,C.loadingRetryTimes[Qe]>=br){var Fr=C.state.loadedKeys;(0,R.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),C.setUncontrolledState({loadedKeys:(0,Ot.L0)(Fr,Qe)}),ce()}ze(Yt)}),{loadingKeys:(0,Ot.L0)(ke,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),ce=0;ce<Qe;ce++)we[ce]=arguments[ce];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),ce=0;ce<Qe;ce++)we[ce]=arguments[ce];ie==null||ie.apply(void 0,we)},C.getTreeNodeRequiredProps=function(){var ie=C.state,Qe=ie.expandedKeys,we=ie.selectedKeys,ce=ie.loadedKeys,ze=ie.loadingKeys,vt=ie.checkedKeys,he=ie.halfCheckedKeys,at=ie.dragOverNodeKey,rt=ie.dropPosition,ke=ie.keyEntities;return{expandedKeys:Qe||[],selectedKeys:we||[],loadedKeys:ce||[],loadingKeys:ze||[],checkedKeys:vt||[],halfCheckedKeys:he||[],dragOverNodeKey:at,dropPosition:rt,keyEntities:ke}},C.setExpandedKeys=function(ie){var Qe=C.state,we=Qe.treeData,ce=Qe.fieldNames,ze=(0,ye.oH)(we,ie,ce);C.setUncontrolledState({expandedKeys:ie,flattenNodes:ze},!0)},C.onNodeExpand=function(ie,Qe){var we=C.state.expandedKeys,ce=C.state,ze=ce.listChanging,vt=ce.fieldNames,he=C.props,at=he.onExpand,rt=he.loadData,ke=Qe.expanded,Fe=Qe[vt.key];if(!ze){var ct=we.indexOf(Fe),Tt=!ke;if((0,R.ZP)(ke&&ct!==-1||!ke&&ct===-1,"Expand state not sync with index check"),Tt?we=(0,Ot.L0)(we,Fe):we=(0,Ot._5)(we,Fe),C.setExpandedKeys(we),at==null||at(we,{node:Qe,expanded:Tt,nativeEvent:ie.nativeEvent}),Tt&&rt){var Pt=C.onNodeLoad(Qe);Pt&&Pt.then(function(){var Yt=(0,ye.oH)(C.state.treeData,we,vt);C.setUncontrolledState({flattenNodes:Yt})}).catch(function(){var Yt=C.state.expandedKeys,Fr=(0,Ot._5)(Yt,Fe);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(ce){var ze=ce.key;return ze===Qe})||null},C.offsetActiveKey=function(ie){var Qe=C.state,we=Qe.flattenNodes,ce=Qe.activeKey,ze=we.findIndex(function(at){var rt=at.key;return rt===ce});ze===-1&&ie<0&&(ze=we.length),ze=(ze+ie+we.length)%we.length;var vt=we[ze];if(vt){var he=vt.key;C.onActiveChange(he)}else C.onActiveChange(null)},C.onKeyDown=function(ie){var Qe=C.state,we=Qe.activeKey,ce=Qe.expandedKeys,ze=Qe.checkedKeys,vt=Qe.fieldNames,he=C.props,at=he.onKeyDown,rt=he.checkable,ke=he.selectable;switch(ie.which){case F.Z.UP:{C.offsetActiveKey(-1),ie.preventDefault();break}case F.Z.DOWN:{C.offsetActiveKey(1),ie.preventDefault();break}}var Fe=C.getActiveItem();if(Fe&&Fe.data){var ct=C.getTreeNodeRequiredProps(),Tt=Fe.data.isLeaf===!1||!!(Fe.data[vt.children]||[]).length,Pt=(0,ye.F)((0,Oe.Z)((0,Oe.Z)({},(0,ye.H8)(we,ct)),{},{data:Fe.data,active:!0}));switch(ie.which){case F.Z.LEFT:{Tt&&ce.includes(we)?C.onNodeExpand({},Pt):Fe.parent&&C.onActiveChange(Fe.parent.key),ie.preventDefault();break}case F.Z.RIGHT:{Tt&&!ce.includes(we)?C.onNodeExpand({},Pt):Fe.children&&Fe.children.length&&C.onActiveChange(Fe.children[0].key),ie.preventDefault();break}case F.Z.ENTER:case F.Z.SPACE:{rt&&!Pt.disabled&&Pt.checkable!==!1&&!Pt.disableCheckbox?C.onNodeCheck({},Pt,!ze.includes(we)):!rt&&ke&&!Pt.disabled&&Pt.selectable!==!1&&C.onNodeSelect({},Pt);break}}}at==null||at(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 ce=!1,ze=!0,vt={};Object.keys(ie).forEach(function(he){if(he in C.props){ze=!1;return}ce=!0,vt[he]=ie[he]}),ce&&(!Qe||ze)&&C.setState((0,Oe.Z)((0,Oe.Z)({},vt),we))}},C.scrollTo=function(ie){C.listRef.current.scrollTo(ie)},C}return(0,S.Z)(f,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var Y=this.props.activeKey;Y!==void 0&&Y!==this.state.activeKey&&(this.setState({activeKey:Y}),Y!==null&&this.scrollTo({key:Y}))}},{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 Y,Be=this.state,H=Be.focused,ie=Be.flattenNodes,Qe=Be.keyEntities,we=Be.draggingNodeKey,ce=Be.activeKey,ze=Be.dropLevelOffset,vt=Be.dropContainerKey,he=Be.dropTargetKey,at=Be.dropPosition,rt=Be.dragOverNodeKey,ke=Be.indent,Fe=this.props,ct=Fe.prefixCls,Tt=Fe.className,Pt=Fe.style,Yt=Fe.showLine,Fr=Fe.focusable,Lr=Fe.tabIndex,Nr=Lr===void 0?0:Lr,kr=Fe.selectable,yr=Fe.showIcon,dr=Fe.icon,Qr=Fe.switcherIcon,An=Fe.draggable,Tn=Fe.checkable,dn=Fe.checkStrictly,kn=Fe.disabled,Qi=Fe.motion,Pr=Fe.loadData,wn=Fe.filterTreeNode,Si=Fe.height,ui=Fe.itemHeight,Zi=Fe.virtual,Ei=Fe.titleRender,ji=Fe.dropIndicatorRender,eo=Fe.onContextMenu,Ki=Fe.onScroll,ei=Fe.direction,pi=Fe.rootClassName,vi=Fe.rootStyle,$e=(0,N.Z)(this.props,{aria:!0,data:!0}),_e;return An&&((0,P.Z)(An)==="object"?_e=An:typeof An=="function"?_e={nodeDraggable:An}:_e={}),L.createElement(X.k.Provider,{value:{prefixCls:ct,selectable:kr,showIcon:yr,icon:dr,switcherIcon:Qr,draggable:_e,draggingNodeKey:we,checkable:Tn,checkStrictly:dn,disabled:kn,keyEntities:Qe,dropLevelOffset:ze,dropContainerKey:vt,dropTargetKey:he,dropPosition:at,dragOverNodeKey:rt,indent:ke,direction:ei,dropIndicatorRender:ji,loadData:Pr,filterTreeNode:wn,titleRender:Ei,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:_()(ct,Tt,pi,(Y={},(0,Ae.Z)(Y,"".concat(ct,"-show-line"),Yt),(0,Ae.Z)(Y,"".concat(ct,"-focused"),H),(0,Ae.Z)(Y,"".concat(ct,"-active-focused"),ce!==null),Y)),style:vi},L.createElement(kt,(0,me.Z)({ref:this.listRef,prefixCls:ct,style:Pt,data:ie,disabled:kn,selectable:kr,checkable:!!Tn,motion:Qi,dragging:we!==null,height:Si,itemHeight:ui,virtual:Zi,focusable:Fr,focused:H,tabIndex:Nr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:eo,onScroll:Ki},this.getTreeNodeRequiredProps(),$e))))}}],[{key:"getDerivedStateFromProps",value:function(Y,Be){var H=Be.prevProps,ie={prevProps:Y};function Qe(Fr){return!H&&Fr in Y||H&&H[Fr]!==Y[Fr]}var we,ce=Be.fieldNames;if(Qe("fieldNames")&&(ce=(0,ye.w$)(Y.fieldNames),ie.fieldNames=ce),Qe("treeData")?we=Y.treeData:Qe("children")&&((0,R.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),we=(0,ye.zn)(Y.children)),we){ie.treeData=we;var ze=(0,ye.I8)(we,{fieldNames:ce});ie.keyEntities=(0,Oe.Z)((0,Ae.Z)({},De,Se),ze.keyEntities)}var vt=ie.keyEntities||Be.keyEntities;if(Qe("expandedKeys")||H&&Qe("autoExpandParent"))ie.expandedKeys=Y.autoExpandParent||!H&&Y.defaultExpandParent?(0,Ot.r7)(Y.expandedKeys,vt):Y.expandedKeys;else if(!H&&Y.defaultExpandAll){var he=(0,Oe.Z)({},vt);delete he[De],ie.expandedKeys=Object.keys(he).map(function(Fr){return he[Fr].key})}else!H&&Y.defaultExpandedKeys&&(ie.expandedKeys=Y.autoExpandParent||Y.defaultExpandParent?(0,Ot.r7)(Y.defaultExpandedKeys,vt):Y.defaultExpandedKeys);if(ie.expandedKeys||delete ie.expandedKeys,we||ie.expandedKeys){var at=(0,ye.oH)(we||Be.treeData,ie.expandedKeys||Be.expandedKeys,ce);ie.flattenNodes=at}if(Y.selectable&&(Qe("selectedKeys")?ie.selectedKeys=(0,Ot.BT)(Y.selectedKeys,Y):!H&&Y.defaultSelectedKeys&&(ie.selectedKeys=(0,Ot.BT)(Y.defaultSelectedKeys,Y))),Y.checkable){var rt;if(Qe("checkedKeys")?rt=(0,Ot.E6)(Y.checkedKeys)||{}:!H&&Y.defaultCheckedKeys?rt=(0,Ot.E6)(Y.defaultCheckedKeys)||{}:we&&(rt=(0,Ot.E6)(Y.checkedKeys)||{checkedKeys:Be.checkedKeys,halfCheckedKeys:Be.halfCheckedKeys}),rt){var ke=rt,Fe=ke.checkedKeys,ct=Fe===void 0?[]:Fe,Tt=ke.halfCheckedKeys,Pt=Tt===void 0?[]:Tt;if(!Y.checkStrictly){var Yt=(0,sr.S)(ct,!0,vt);ct=Yt.checkedKeys,Pt=Yt.halfCheckedKeys}ie.checkedKeys=ct,ie.halfCheckedKeys=Pt}}return Qe("loadedKeys")&&(ie.loadedKeys=Y.loadedKeys),ie}}]),f}(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:Q,allowDrop:function(){return!0},expandAction:!1},lr.TreeNode=be.Z;var V=lr,dt=V},35654:function(un,Ut,x){"use strict";x.d(Ut,{BT:function(){return L},E6:function(){return oe},L0:function(){return h},OM:function(){return R},_5:function(){return M},r7:function(){return ee},wA:function(){return _},yx:function(){return $}});var me=x(94480),Ae=x(76190),P=x(48736),Oe=x(59301),ne=x(39417),W=x(67841),S=x(71430),v=null;function M(re,G){if(!re)return[];var K=re.slice(),le=K.indexOf(G);return le>=0&&K.splice(le,1),K}function h(re,G){var K=(re||[]).slice();return K.indexOf(G)===-1&&K.push(G),K}function $(re){return re.split("-")}function _(re,G){var K=[],le=(0,W.Z)(G,re);function be(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ne.forEach(function(ye){var Ue=ye.key,q=ye.children;K.push(Ue),be(q)})}return be(le.children),K}function F(re){if(re.parent){var G=$(re.pos);return Number(G[G.length-1])===re.parent.children.length-1}return!1}function N(re){var G=$(re.pos);return Number(G[G.length-1])===0}function R(re,G,K,le,be,Ne,ye,Ue,q,de){var D,qe=re.clientX,Me=re.clientY,xe=re.target.getBoundingClientRect(),Te=xe.top,ve=xe.height,De=(de==="rtl"?-1:1)*(((be==null?void 0:be.x)||0)-qe),pe=(De-12)/le,Se=(0,W.Z)(Ue,K.props.eventKey);if(Me<Te+ve/2){var Xe=ye.findIndex(function(dt){return dt.key===Se.key}),et=Xe<=0?0:Xe-1,je=ye[et].key;Se=(0,W.Z)(Ue,je)}var Ye=Se.key,_t=Se,kt=Se.key,Ot=0,sr=0;if(!q.includes(Ye))for(var rr=0;rr<pe&&F(Se);rr+=1)Se=Se.parent,sr+=1;var br=G.props.data,lr=Se.node,V=!0;return N(Se)&&Se.level===0&&Me<Te+ve/2&&Ne({dragNode:br,dropNode:lr,dropPosition:-1})&&Se.key===K.props.eventKey?Ot=-1:(_t.children||[]).length&&q.includes(kt)?Ne({dragNode:br,dropNode:lr,dropPosition:0})?Ot=0:V=!1:sr===0?pe>-1.5?Ne({dragNode:br,dropNode:lr,dropPosition:1})?Ot=1:V=!1:Ne({dragNode:br,dropNode:lr,dropPosition:0})?Ot=0:Ne({dragNode:br,dropNode:lr,dropPosition:1})?Ot=1:V=!1:Ne({dragNode:br,dropNode:lr,dropPosition:1})?Ot=1:V=!1,{dropPosition:Ot,dropLevelOffset:sr,dropTargetKey:Se.key,dropTargetPos:Se.pos,dragOverNodeKey:kt,dropContainerKey:Ot===0?null:((D=Se.parent)===null||D===void 0?void 0:D.key)||null,dropAllowed:V}}function L(re,G){if(re){var K=G.multiple;return K?re.slice():re.length?[re[0]]:re}}var X=function(G){return G};function Q(re,G){if(!re)return[];var K=G||{},le=K.processProps,be=le===void 0?X:le,Ne=Array.isArray(re)?re:[re];return Ne.map(function(ye){var Ue=ye.children,q=_objectWithoutProperties(ye,v),de=Q(Ue,G);return React.createElement(TreeNode,_extends({key:q.key},be(q)),de)})}function oe(re){if(!re)return null;var G;if(Array.isArray(re))G={checkedKeys:re,halfCheckedKeys:void 0};else if((0,Ae.Z)(re)==="object")G={checkedKeys:re.checked||void 0,halfCheckedKeys:re.halfChecked||void 0};else return(0,P.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return G}function ee(re,G){var K=new Set;function le(be){if(!K.has(be)){var Ne=(0,W.Z)(G,be);if(Ne){K.add(be);var ye=Ne.parent,Ue=Ne.node;Ue.disabled||ye&&le(ye.key)}}}return(re||[]).forEach(function(be){le(be)}),(0,me.Z)(K)}},90782:function(un,Ut,x){"use strict";x.d(Ut,{S:function(){return S}});var me=x(48736),Ae=x(67841);function P(v,M){var h=new Set;return v.forEach(function($){M.has($)||h.add($)}),h}function Oe(v){var M=v||{},h=M.disabled,$=M.disableCheckbox,_=M.checkable;return!!(h||$)||_===!1}function ne(v,M,h,$){for(var _=new Set(v),F=new Set,N=0;N<=h;N+=1){var R=M.get(N)||new Set;R.forEach(function(oe){var ee=oe.key,re=oe.node,G=oe.children,K=G===void 0?[]:G;_.has(ee)&&!$(re)&&K.filter(function(le){return!$(le.node)}).forEach(function(le){_.add(le.key)})})}for(var L=new Set,X=h;X>=0;X-=1){var Q=M.get(X)||new Set;Q.forEach(function(oe){var ee=oe.parent,re=oe.node;if(!($(re)||!oe.parent||L.has(oe.parent.key))){if($(oe.parent.node)){L.add(ee.key);return}var G=!0,K=!1;(ee.children||[]).filter(function(le){return!$(le.node)}).forEach(function(le){var be=le.key,Ne=_.has(be);G&&!Ne&&(G=!1),!K&&(Ne||F.has(be))&&(K=!0)}),G&&_.add(ee.key),K&&F.add(ee.key),L.add(ee.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(P(F,_))}}function W(v,M,h,$,_){for(var F=new Set(v),N=new Set(M),R=0;R<=$;R+=1){var L=h.get(R)||new Set;L.forEach(function(ee){var re=ee.key,G=ee.node,K=ee.children,le=K===void 0?[]:K;!F.has(re)&&!N.has(re)&&!_(G)&&le.filter(function(be){return!_(be.node)}).forEach(function(be){F.delete(be.key)})})}N=new Set;for(var X=new Set,Q=$;Q>=0;Q-=1){var oe=h.get(Q)||new Set;oe.forEach(function(ee){var re=ee.parent,G=ee.node;if(!(_(G)||!ee.parent||X.has(ee.parent.key))){if(_(ee.parent.node)){X.add(re.key);return}var K=!0,le=!1;(re.children||[]).filter(function(be){return!_(be.node)}).forEach(function(be){var Ne=be.key,ye=F.has(Ne);K&&!ye&&(K=!1),!le&&(ye||N.has(Ne))&&(le=!0)}),K||F.delete(re.key),le&&N.add(re.key),X.add(re.key)}})}return{checkedKeys:Array.from(F),halfCheckedKeys:Array.from(P(N,F))}}function S(v,M,h,$){var _=[],F;$?F=$:F=Oe;var N=new Set(v.filter(function(Q){var oe=!!(0,Ae.Z)(h,Q);return oe||_.push(Q),oe})),R=new Map,L=0;Object.keys(h).forEach(function(Q){var oe=h[Q],ee=oe.level,re=R.get(ee);re||(re=new Set,R.set(ee,re)),re.add(oe),L=Math.max(L,ee)}),(0,me.ZP)(!_.length,"Tree missing follow keys: ".concat(_.slice(0,100).map(function(Q){return"'".concat(Q,"'")}).join(", ")));var X;return M===!0?X=ne(N,R,L,F):X=W(N,M.halfCheckedKeys,R,L,F),X}},67841:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return me}});function me(Ae,P){return Ae[P]}},71430:function(un,Ut,x){"use strict";x.d(Ut,{F:function(){return ee},H8:function(){return oe},I8:function(){return Q},km:function(){return _},oH:function(){return L},w$:function(){return F},zn:function(){return R}});var me=x(76190),Ae=x(94480),P=x(33885),Oe=x(75931),ne=x(11592),W=x(2738),S=x(48736),v=x(67841),M=["children"];function h(re,G){return"".concat(re,"-").concat(G)}function $(re){return re&&re.type&&re.type.isTreeNode}function _(re,G){return re!=null?re:G}function F(re){var G=re||{},K=G.title,le=G._title,be=G.key,Ne=G.children,ye=K||"title";return{title:ye,_title:le||[ye],key:be||"key",children:Ne||"children"}}function N(re,G){var K=new Map;function le(be){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(be||[]).forEach(function(ye){var Ue=ye[G.key],q=ye[G.children];warning(Ue!=null,"Tree node must have a certain key: [".concat(Ne).concat(Ue,"]"));var de=String(Ue);warning(!K.has(de)||Ue===null||Ue===void 0,"Same 'key' exist in the Tree: ".concat(de)),K.set(de,!0),le(q,"".concat(Ne).concat(de," > "))})}le(re)}function R(re){function G(K){var le=(0,ne.Z)(K);return le.map(function(be){if(!$(be))return(0,S.ZP)(!be,"Tree/TreeNode can only accept TreeNode as children."),null;var Ne=be.key,ye=be.props,Ue=ye.children,q=(0,Oe.Z)(ye,M),de=(0,P.Z)({key:Ne},q),D=G(Ue);return D.length&&(de.children=D),de}).filter(function(be){return be})}return G(re)}function L(re,G,K){var le=F(K),be=le._title,Ne=le.key,ye=le.children,Ue=new Set(G===!0?[]:G),q=[];function de(D){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(Me,xe){for(var Te=h(qe?qe.pos:"0",xe),ve=_(Me[Ne],Te),De,pe=0;pe<be.length;pe+=1){var Se=be[pe];if(Me[Se]!==void 0){De=Me[Se];break}}var Xe=(0,P.Z)((0,P.Z)({},(0,W.Z)(Me,[].concat((0,Ae.Z)(be),[Ne,ye]))),{},{title:De,key:ve,parent:qe,pos:Te,children:null,data:Me,isStart:[].concat((0,Ae.Z)(qe?qe.isStart:[]),[xe===0]),isEnd:[].concat((0,Ae.Z)(qe?qe.isEnd:[]),[xe===D.length-1])});return q.push(Xe),G===!0||Ue.has(ve)?Xe.children=de(Me[ye]||[],Xe):Xe.children=[],Xe})}return de(re),q}function X(re,G,K){var le={};(0,me.Z)(K)==="object"?le=K:le={externalGetKey:K},le=le||{};var be=le,Ne=be.childrenPropName,ye=be.externalGetKey,Ue=be.fieldNames,q=F(Ue),de=q.key,D=q.children,qe=Ne||D,Me;ye?typeof ye=="string"?Me=function(ve){return ve[ye]}:typeof ye=="function"&&(Me=function(ve){return ye(ve)}):Me=function(ve,De){return _(ve[de],De)};function xe(Te,ve,De,pe){var Se=Te?Te[qe]:re,Xe=Te?h(De.pos,ve):"0",et=Te?[].concat((0,Ae.Z)(pe),[Te]):[];if(Te){var je=Me(Te,Xe),Ye={node:Te,index:ve,pos:Xe,key:je,parentPos:De.node?De.pos:null,level:De.level+1,nodes:et};G(Ye)}Se&&Se.forEach(function(_t,kt){xe(_t,kt,{node:Te,pos:Xe,level:De?De.level+1:-1},et)})}xe(null)}function Q(re){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},K=G.initWrapper,le=G.processEntity,be=G.onProcessFinished,Ne=G.externalGetKey,ye=G.childrenPropName,Ue=G.fieldNames,q=arguments.length>2?arguments[2]:void 0,de=Ne||q,D={},qe={},Me={posEntities:D,keyEntities:qe};return K&&(Me=K(Me)||Me),X(re,function(xe){var Te=xe.node,ve=xe.index,De=xe.pos,pe=xe.key,Se=xe.parentPos,Xe=xe.level,et=xe.nodes,je={node:Te,nodes:et,index:ve,key:pe,pos:De,level:Xe},Ye=_(pe,De);D[De]=je,qe[Ye]=je,je.parent=D[Se],je.parent&&(je.parent.children=je.parent.children||[],je.parent.children.push(je)),le&&le(je,Me)},{externalGetKey:de,childrenPropName:ye,fieldNames:Ue}),be&&be(Me),Me}function oe(re,G){var K=G.expandedKeys,le=G.selectedKeys,be=G.loadedKeys,Ne=G.loadingKeys,ye=G.checkedKeys,Ue=G.halfCheckedKeys,q=G.dragOverNodeKey,de=G.dropPosition,D=G.keyEntities,qe=(0,v.Z)(D,re),Me={eventKey:re,expanded:K.indexOf(re)!==-1,selected:le.indexOf(re)!==-1,loaded:be.indexOf(re)!==-1,loading:Ne.indexOf(re)!==-1,checked:ye.indexOf(re)!==-1,halfChecked:Ue.indexOf(re)!==-1,pos:String(qe?qe.pos:""),dragOver:q===re&&de===0,dragOverGapTop:q===re&&de===-1,dragOverGapBottom:q===re&&de===1};return Me}function ee(re){var G=re.data,K=re.expanded,le=re.selected,be=re.checked,Ne=re.loaded,ye=re.loading,Ue=re.halfChecked,q=re.dragOver,de=re.dragOverGapTop,D=re.dragOverGapBottom,qe=re.pos,Me=re.active,xe=re.eventKey,Te=(0,P.Z)((0,P.Z)({},G),{},{expanded:K,selected:le,checked:be,loaded:Ne,loading:ye,halfChecked:Ue,dragOver:q,dragOverGapTop:de,dragOverGapBottom:D,pos:qe,active:Me,key:xe});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`."),re}}),Te}},8224:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return Ae}});var me=x(4676);function Ae(P,Oe,ne,W){var S=me.unstable_batchedUpdates?function(M){me.unstable_batchedUpdates(ne,M)}:ne;return P!=null&&P.addEventListener&&P.addEventListener(Oe,S,W),{remove:function(){P!=null&&P.removeEventListener&&P.removeEventListener(Oe,S,W)}}}},55468:function(un,Ut,x){"use strict";x.d(Ut,{g1:function(){return $},os:function(){return F}});var me=/margin|padding|width|height|max|min|offset/,Ae={left:!0,top:!0},P={cssFloat:1,styleFloat:1,float:1};function Oe(N){return N.nodeType===1?N.ownerDocument.defaultView.getComputedStyle(N,null):{}}function ne(N,R,L){if(R=R.toLowerCase(),L==="auto"){if(R==="height")return N.offsetHeight;if(R==="width")return N.offsetWidth}return R in Ae||(Ae[R]=me.test(R)),Ae[R]?parseFloat(L)||0:L}function W(N,R){var L=arguments.length,X=Oe(N);return R=P[R]?"cssFloat"in N.style?"cssFloat":"styleFloat":R,L===1?X:ne(N,R,X[R]||N.style[R])}function S(N,R,L){var X=arguments.length;if(R=P[R]?"cssFloat"in N.style?"cssFloat":"styleFloat":R,X===3)return typeof L=="number"&&me.test(R)&&(L="".concat(L,"px")),N.style[R]=L,L;for(var Q in R)R.hasOwnProperty(Q)&&S(N,Q,R[Q]);return Oe(N)}function v(N){return N===document.body?document.documentElement.clientWidth:N.offsetWidth}function M(N){return N===document.body?window.innerHeight||document.documentElement.clientHeight:N.offsetHeight}function h(){var N=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),R=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:N,height:R}}function $(){var N=document.documentElement.clientWidth,R=window.innerHeight||document.documentElement.clientHeight;return{width:N,height:R}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function F(N){var R=N.getBoundingClientRect(),L=document.documentElement;return{left:R.left+(window.pageXOffset||L.scrollLeft)-(L.clientLeft||document.body.clientLeft||0),top:R.top+(window.pageYOffset||L.scrollTop)-(L.clientTop||document.body.clientTop||0)}}},24514:function(un,Ut,x){"use strict";x.d(Ut,{G:function(){return Oe}});var me=x(47273),Ae=function(W){if((0,me.Z)()&&window.document.documentElement){var S=Array.isArray(W)?W:[W],v=window.document.documentElement;return S.some(function(M){return M in v.style})}return!1},P=function(W,S){if(!Ae(W))return!1;var v=document.createElement("div"),M=v.style[W];return v.style[W]=S,v.style[W]!==M};function Oe(ne,W){return!Array.isArray(ne)&&W!==void 0?P(ne,W):Ae(ne)}},48911:function(un,Ut,x){"use strict";x.d(Ut,{Z:function(){return lr}});var me=x(54476),Ae=x(76190),P=x(33885),Oe=x(20068),ne=x(42978),W=x(75931),S=x(92310),v=x.n(S),M=x(29301),h=x(70425),$=x(34280),_=x(59301),F=x(4676),N=_.forwardRef(function(V,dt){var I=V.height,m=V.offsetY,f=V.offsetX,C=V.children,Y=V.prefixCls,Be=V.onInnerResize,H=V.innerProps,ie=V.rtl,Qe=V.extra,we={},ce={display:"flex",flexDirection:"column"};return m!==void 0&&(we={height:I,position:"relative",overflow:"hidden"},ce=(0,P.Z)((0,P.Z)({},ce),{},(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({transform:"translateY(".concat(m,"px)")},ie?"marginRight":"marginLeft",-f),"position","absolute"),"left",0),"right",0),"top",0))),_.createElement("div",{style:we},_.createElement(M.Z,{onResize:function(vt){var he=vt.offsetHeight;he&&Be&&Be()}},_.createElement("div",(0,me.Z)({style:ce,className:v()((0,Oe.Z)({},"".concat(Y,"-holder-inner"),Y)),ref:dt},H),C,Qe)))});N.displayName="Filler";var R=N;function L(V){var dt=V.children,I=V.setRef,m=_.useCallback(function(f){I(f)},[]);return _.cloneElement(dt,{ref:m})}function X(V,dt,I,m,f,C,Y,Be){var H=Be.getKey;return V.slice(dt,I+1).map(function(ie,Qe){var we=dt+Qe,ce=Y(ie,we,{style:{width:m},offsetX:f}),ze=H(ie);return _.createElement(L,{key:ze,setRef:function(he){return C(ie,he)}},ce)})}function Q(V,dt,I,m){var f=I-V,C=dt-I,Y=Math.min(f,C)*2;if(m<=Y){var Be=Math.floor(m/2);return m%2?I+Be+1:I-Be}return f>C?I-(m-C):I+(m-f)}function oe(V,dt,I){var m=V.length,f=dt.length,C,Y;if(m===0&&f===0)return null;m<f?(C=V,Y=dt):(C=dt,Y=V);var Be={__EMPTY_ITEM__:!0};function H(vt){return vt!==void 0?I(vt):Be}for(var ie=null,Qe=Math.abs(m-f)!==1,we=0;we<Y.length;we+=1){var ce=H(C[we]),ze=H(Y[we]);if(ce!==ze){ie=we,Qe=Qe||ce!==H(Y[we+1]);break}}return ie===null?null:{index:ie,multiple:Qe}}function ee(V,dt,I){var m=_.useState(V),f=(0,ne.Z)(m,2),C=f[0],Y=f[1],Be=_.useState(null),H=(0,ne.Z)(Be,2),ie=H[0],Qe=H[1];return _.useEffect(function(){var we=oe(C||[],V||[],dt);(we==null?void 0:we.index)!==void 0&&(I==null||I(we.index),Qe(V[we.index])),Y(V)},[V]),[ie]}var re=x(16089),G=(typeof navigator=="undefined"?"undefined":(0,Ae.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),K=G,le=function(V,dt,I,m){var f=(0,_.useRef)(!1),C=(0,_.useRef)(null);function Y(){clearTimeout(C.current),f.current=!0,C.current=setTimeout(function(){f.current=!1},50)}var Be=(0,_.useRef)({top:V,bottom:dt,left:I,right:m});return Be.current.top=V,Be.current.bottom=dt,Be.current.left=I,Be.current.right=m,function(H,ie){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,we=H?ie<0&&Be.current.left||ie>0&&Be.current.right:ie<0&&Be.current.top||ie>0&&Be.current.bottom;return Qe&&we?(clearTimeout(C.current),f.current=!1):(!we||f.current)&&Y(),!f.current&&we}};function be(V,dt,I,m,f,C,Y){var Be=(0,_.useRef)(0),H=(0,_.useRef)(null),ie=(0,_.useRef)(null),Qe=(0,_.useRef)(!1),we=le(dt,I,m,f);function ce(ke,Fe){if(re.Z.cancel(H.current),!we(!1,Fe)){var ct=ke;if(!ct._virtualHandled)ct._virtualHandled=!0;else return;Be.current+=Fe,ie.current=Fe,K||ct.preventDefault(),H.current=(0,re.Z)(function(){var Tt=Qe.current?10:1;Y(Be.current*Tt,!1),Be.current=0})}}function ze(ke,Fe){Y(Fe,!0),K||ke.preventDefault()}var vt=(0,_.useRef)(null),he=(0,_.useRef)(null);function at(ke){if(V){re.Z.cancel(he.current),he.current=(0,re.Z)(function(){vt.current=null},2);var Fe=ke.deltaX,ct=ke.deltaY,Tt=ke.shiftKey,Pt=Fe,Yt=ct;(vt.current==="sx"||!vt.current&&Tt&&ct&&!Fe)&&(Pt=ct,Yt=0,vt.current="sx");var Fr=Math.abs(Pt),Lr=Math.abs(Yt);vt.current===null&&(vt.current=C&&Fr>Lr?"x":"y"),vt.current==="y"?ce(ke,Yt):ze(ke,Pt)}}function rt(ke){V&&(Qe.current=ke.detail===ie.current)}return[at,rt]}function Ne(V,dt,I,m){var f=_.useMemo(function(){return[new Map,[]]},[V,I.id,m]),C=(0,ne.Z)(f,2),Y=C[0],Be=C[1],H=function(Qe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe,ce=Y.get(Qe),ze=Y.get(we);if(ce===void 0||ze===void 0)for(var vt=V.length,he=Be.length;he<vt;he+=1){var at,rt=V[he],ke=dt(rt);Y.set(ke,he);var Fe=(at=I.get(ke))!==null&&at!==void 0?at:m;if(Be[he]=(Be[he-1]||0)+Fe,ke===Qe&&(ce=he),ke===we&&(ze=he),ce!==void 0&&ze!==void 0)break}return{top:Be[ce-1]||0,bottom:Be[ze]}};return H}var ye=x(67732),Ue=x(83652),q=function(){function V(){(0,ye.Z)(this,V),(0,Oe.Z)(this,"maps",void 0),(0,Oe.Z)(this,"id",0),(0,Oe.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Ue.Z)(V,[{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}}]),V}(),de=q;function D(V){var dt=parseFloat(V);return isNaN(dt)?0:dt}function qe(V,dt,I){var m=_.useState(0),f=(0,ne.Z)(m,2),C=f[0],Y=f[1],Be=(0,_.useRef)(new Map),H=(0,_.useRef)(new de),ie=(0,_.useRef)(0);function Qe(){ie.current+=1}function we(){var ze=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Qe();var vt=function(){var rt=!1;Be.current.forEach(function(ke,Fe){if(ke&&ke.offsetParent){var ct=ke.offsetHeight,Tt=getComputedStyle(ke),Pt=Tt.marginTop,Yt=Tt.marginBottom,Fr=D(Pt),Lr=D(Yt),Nr=ct+Fr+Lr;H.current.get(Fe)!==Nr&&(H.current.set(Fe,Nr),rt=!0)}}),rt&&Y(function(ke){return ke+1})};if(ze)vt();else{ie.current+=1;var he=ie.current;Promise.resolve().then(function(){he===ie.current&&vt()})}}function ce(ze,vt){var he=V(ze),at=Be.current.get(he);vt?(Be.current.set(he,vt),we()):Be.current.delete(he),!at!=!vt&&(vt?dt==null||dt(ze):I==null||I(ze))}return(0,_.useEffect)(function(){return Qe},[]),[ce,we,H.current,C]}var Me=14/15;function xe(V,dt,I){var m=(0,_.useRef)(!1),f=(0,_.useRef)(0),C=(0,_.useRef)(0),Y=(0,_.useRef)(null),Be=(0,_.useRef)(null),H,ie=function(ze){if(m.current){var vt=Math.ceil(ze.touches[0].pageX),he=Math.ceil(ze.touches[0].pageY),at=f.current-vt,rt=C.current-he,ke=Math.abs(at)>Math.abs(rt);ke?f.current=vt:C.current=he;var Fe=I(ke,ke?at:rt,!1,ze);Fe&&ze.preventDefault(),clearInterval(Be.current),Fe&&(Be.current=setInterval(function(){ke?at*=Me:rt*=Me;var ct=Math.floor(ke?at:rt);(!I(ke,ct,!0)||Math.abs(ct)<=.1)&&clearInterval(Be.current)},16))}},Qe=function(){m.current=!1,H()},we=function(ze){H(),ze.touches.length===1&&!m.current&&(m.current=!0,f.current=Math.ceil(ze.touches[0].pageX),C.current=Math.ceil(ze.touches[0].pageY),Y.current=ze.target,Y.current.addEventListener("touchmove",ie,{passive:!1}),Y.current.addEventListener("touchend",Qe,{passive:!0}))};H=function(){Y.current&&(Y.current.removeEventListener("touchmove",ie),Y.current.removeEventListener("touchend",Qe))},(0,$.Z)(function(){return V&&dt.current.addEventListener("touchstart",we,{passive:!0}),function(){var ce;(ce=dt.current)===null||ce===void 0||ce.removeEventListener("touchstart",we),H(),clearInterval(Be.current)}},[V])}function Te(V){return Math.floor(Math.pow(V,.5))}function ve(V,dt){var I="touches"in V?V.touches[0]:V;return I[dt?"pageX":"pageY"]-window[dt?"scrollX":"scrollY"]}function De(V,dt,I){_.useEffect(function(){var m=dt.current;if(V&&m){var f=!1,C,Y,Be=function(){re.Z.cancel(C)},H=function ce(){Be(),C=(0,re.Z)(function(){I(Y),ce()})},ie=function(){f=!1,Be()},Qe=function(ze){if(!(ze.target.draggable||ze.button!==0)){var vt=ze;vt._virtualHandled||(vt._virtualHandled=!0,f=!0)}},we=function(ze){if(f){var vt=ve(ze,!1),he=m.getBoundingClientRect(),at=he.top,rt=he.bottom;if(vt<=at){var ke=at-vt;Y=-Te(ke),H()}else if(vt>=rt){var Fe=vt-rt;Y=Te(Fe),H()}else Be()}};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),Be()}}},[V])}var pe=10;function Se(V,dt,I,m,f,C,Y,Be){var H=_.useRef(),ie=_.useState(null),Qe=(0,ne.Z)(ie,2),we=Qe[0],ce=Qe[1];return(0,$.Z)(function(){if(we&&we.times<pe){if(!V.current){ce(function(Qi){return(0,P.Z)({},Qi)});return}C();var ze=we.targetAlign,vt=we.originAlign,he=we.index,at=we.offset,rt=V.current.clientHeight,ke=!1,Fe=ze,ct=null;if(rt){for(var Tt=ze||vt,Pt=0,Yt=0,Fr=0,Lr=Math.min(dt.length-1,he),Nr=0;Nr<=Lr;Nr+=1){var kr=f(dt[Nr]);Yt=Pt;var yr=I.get(kr);Fr=Yt+(yr===void 0?m:yr),Pt=Fr}for(var dr=Tt==="top"?at:rt-at,Qr=Lr;Qr>=0;Qr-=1){var An=f(dt[Qr]),Tn=I.get(An);if(Tn===void 0){ke=!0;break}if(dr-=Tn,dr<=0)break}switch(Tt){case"top":ct=Yt-at;break;case"bottom":ct=Fr-rt+at;break;default:{var dn=V.current.scrollTop,kn=dn+rt;Yt<dn?Fe="top":Fr>kn&&(Fe="bottom")}}ct!==null&&Y(ct),ct!==we.lastTop&&(ke=!0)}ke&&ce((0,P.Z)((0,P.Z)({},we),{},{times:we.times+1,targetAlign:Fe,lastTop:ct}))}},[we,V.current]),function(ze){if(ze==null){Be();return}if(re.Z.cancel(H.current),typeof ze=="number")Y(ze);else if(ze&&(0,Ae.Z)(ze)==="object"){var vt,he=ze.align;"index"in ze?vt=ze.index:vt=dt.findIndex(function(ke){return f(ke)===ze.key});var at=ze.offset,rt=at===void 0?0:at;ce({times:0,index:vt,offset:rt,originAlign:he})}}}var Xe=_.forwardRef(function(V,dt){var I=V.prefixCls,m=V.rtl,f=V.scrollOffset,C=V.scrollRange,Y=V.onStartMove,Be=V.onStopMove,H=V.onScroll,ie=V.horizontal,Qe=V.spinSize,we=V.containerSize,ce=V.style,ze=V.thumbStyle,vt=V.showScrollBar,he=_.useState(!1),at=(0,ne.Z)(he,2),rt=at[0],ke=at[1],Fe=_.useState(null),ct=(0,ne.Z)(Fe,2),Tt=ct[0],Pt=ct[1],Yt=_.useState(null),Fr=(0,ne.Z)(Yt,2),Lr=Fr[0],Nr=Fr[1],kr=!m,yr=_.useRef(),dr=_.useRef(),Qr=_.useState(vt),An=(0,ne.Z)(Qr,2),Tn=An[0],dn=An[1],kn=_.useRef(),Qi=function(){vt===!0||vt===!1||(clearTimeout(kn.current),dn(!0),kn.current=setTimeout(function(){dn(!1)},3e3))},Pr=C-we||0,wn=we-Qe||0,Si=_.useMemo(function(){if(f===0||Pr===0)return 0;var vi=f/Pr;return vi*wn},[f,Pr,wn]),ui=function($e){$e.stopPropagation(),$e.preventDefault()},Zi=_.useRef({top:Si,dragging:rt,pageY:Tt,startTop:Lr});Zi.current={top:Si,dragging:rt,pageY:Tt,startTop:Lr};var Ei=function($e){ke(!0),Pt(ve($e,ie)),Nr(Zi.current.top),Y(),$e.stopPropagation(),$e.preventDefault()};_.useEffect(function(){var vi=function(Ie){Ie.preventDefault()},$e=yr.current,_e=dr.current;return $e.addEventListener("touchstart",vi,{passive:!1}),_e.addEventListener("touchstart",Ei,{passive:!1}),function(){$e.removeEventListener("touchstart",vi),_e.removeEventListener("touchstart",Ei)}},[]);var ji=_.useRef();ji.current=Pr;var eo=_.useRef();eo.current=wn,_.useEffect(function(){if(rt){var vi,$e=function(Ie){var Dt=Zi.current,Mt=Dt.dragging,Sr=Dt.pageY,nr=Dt.startTop;re.Z.cancel(vi);var Dr=yr.current.getBoundingClientRect(),Hr=we/(ie?Dr.width:Dr.height);if(Mt){var an=(ve(Ie,ie)-Sr)*Hr,jr=nr;!kr&&ie?jr-=an:jr+=an;var Rr=ji.current,en=eo.current,yn=en?jr/en:0,on=Math.ceil(yn*Rr);on=Math.max(on,0),on=Math.min(on,Rr),vi=(0,re.Z)(function(){H(on,ie)})}},_e=function(){ke(!1),Be()};return window.addEventListener("mousemove",$e,{passive:!0}),window.addEventListener("touchmove",$e,{passive:!0}),window.addEventListener("mouseup",_e,{passive:!0}),window.addEventListener("touchend",_e,{passive:!0}),function(){window.removeEventListener("mousemove",$e),window.removeEventListener("touchmove",$e),window.removeEventListener("mouseup",_e),window.removeEventListener("touchend",_e),re.Z.cancel(vi)}}},[rt]),_.useEffect(function(){return Qi(),function(){clearTimeout(kn.current)}},[f]),_.useImperativeHandle(dt,function(){return{delayHidden:Qi}});var Ki="".concat(I,"-scrollbar"),ei={position:"absolute",visibility:Tn?null:"hidden"},pi={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(ei,{height:8,left:0,right:0,bottom:0}),Object.assign(pi,(0,Oe.Z)({height:"100%",width:Qe},kr?"left":"right",Si))):(Object.assign(ei,(0,Oe.Z)({width:8,top:0,bottom:0},kr?"right":"left",0)),Object.assign(pi,{width:"100%",height:Qe,top:Si})),_.createElement("div",{ref:yr,className:v()(Ki,(0,Oe.Z)((0,Oe.Z)((0,Oe.Z)({},"".concat(Ki,"-horizontal"),ie),"".concat(Ki,"-vertical"),!ie),"".concat(Ki,"-visible"),Tn)),style:(0,P.Z)((0,P.Z)({},ei),ce),onMouseDown:ui,onMouseMove:Qi},_.createElement("div",{ref:dr,className:v()("".concat(Ki,"-thumb"),(0,Oe.Z)({},"".concat(Ki,"-thumb-moving"),rt)),style:(0,P.Z)((0,P.Z)({},pi),ze),onMouseDown:Ei}))}),et=Xe,je=20;function Ye(){var V=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,dt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,I=V/dt*V;return isNaN(I)&&(I=0),I=Math.max(I,je),Math.floor(I)}var _t=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],kt=[],Ot={overflowY:"auto",overflowAnchor:"none"};function sr(V,dt){var I=V.prefixCls,m=I===void 0?"rc-virtual-list":I,f=V.className,C=V.height,Y=V.itemHeight,Be=V.fullHeight,H=Be===void 0?!0:Be,ie=V.style,Qe=V.data,we=V.children,ce=V.itemKey,ze=V.virtual,vt=V.direction,he=V.scrollWidth,at=V.component,rt=at===void 0?"div":at,ke=V.onScroll,Fe=V.onVirtualScroll,ct=V.onVisibleChange,Tt=V.innerProps,Pt=V.extraRender,Yt=V.styles,Fr=V.showScrollBar,Lr=Fr===void 0?"optional":Fr,Nr=(0,W.Z)(V,_t),kr=_.useCallback(function(Wn){return typeof ce=="function"?ce(Wn):Wn==null?void 0:Wn[ce]},[ce]),yr=qe(kr,null,null),dr=(0,ne.Z)(yr,4),Qr=dr[0],An=dr[1],Tn=dr[2],dn=dr[3],kn=!!(ze!==!1&&C&&Y),Qi=_.useMemo(function(){return Object.values(Tn.maps).reduce(function(Wn,In){return Wn+In},0)},[Tn.id,Tn.maps]),Pr=kn&&Qe&&(Math.max(Y*Qe.length,Qi)>C||!!he),wn=vt==="rtl",Si=v()(m,(0,Oe.Z)({},"".concat(m,"-rtl"),wn),f),ui=Qe||kt,Zi=(0,_.useRef)(),Ei=(0,_.useRef)(),ji=(0,_.useRef)(),eo=(0,_.useState)(0),Ki=(0,ne.Z)(eo,2),ei=Ki[0],pi=Ki[1],vi=(0,_.useState)(0),$e=(0,ne.Z)(vi,2),_e=$e[0],Le=$e[1],Ie=(0,_.useState)(!1),Dt=(0,ne.Z)(Ie,2),Mt=Dt[0],Sr=Dt[1],nr=function(){Sr(!0)},Dr=function(){Sr(!1)},Hr={getKey:kr};function an(Wn){pi(function(In){var Di;typeof Wn=="function"?Di=Wn(In):Di=Wn;var Ji=ri(Di);return Zi.current.scrollTop=Ji,Ji})}var jr=(0,_.useRef)({start:0,end:ui.length}),Rr=(0,_.useRef)(),en=ee(ui,kr),yn=(0,ne.Z)(en,1),on=yn[0];Rr.current=on;var Dn=_.useMemo(function(){if(!kn)return{scrollHeight:void 0,start:0,end:ui.length-1,offset:void 0};if(!Pr){var Wn;return{scrollHeight:((Wn=Ei.current)===null||Wn===void 0?void 0:Wn.offsetHeight)||0,start:0,end:ui.length-1,offset:void 0}}for(var In=0,Di,Ji,Ma,Ms=ui.length,Za=0;Za<Ms;Za+=1){var fa=ui[Za],_o=kr(fa),Bo=Tn.get(_o),To=In+(Bo===void 0?Y:Bo);To>=ei&&Di===void 0&&(Di=Za,Ji=In),To>ei+C&&Ma===void 0&&(Ma=Za),In=To}return Di===void 0&&(Di=0,Ji=0,Ma=Math.ceil(C/Y)),Ma===void 0&&(Ma=ui.length-1),Ma=Math.min(Ma+1,ui.length-1),{scrollHeight:In,start:Di,end:Ma,offset:Ji}},[Pr,kn,ei,ui,dn,C]),Qn=Dn.scrollHeight,Ai=Dn.start,On=Dn.end,Gn=Dn.offset;jr.current.start=Ai,jr.current.end=On,_.useLayoutEffect(function(){var Wn=Tn.getRecord();if(Wn.size===1){var In=Array.from(Wn.keys())[0],Di=Wn.get(In),Ji=ui[Ai];if(Ji&&Di===void 0){var Ma=kr(Ji);if(Ma===In){var Ms=Tn.get(In),Za=Ms-Y;an(function(fa){return fa+Za})}}}Tn.resetRecord()},[Qn]);var Vt=_.useState({width:0,height:C}),Xt=(0,ne.Z)(Vt,2),er=Xt[0],fr=Xt[1],Rt=function(In){fr({width:In.offsetWidth,height:In.offsetHeight})},Jt=(0,_.useRef)(),ar=(0,_.useRef)(),Or=_.useMemo(function(){return Ye(er.width,he)},[er.width,he]),bn=_.useMemo(function(){return Ye(er.height,Qn)},[er.height,Qn]),Cn=Qn-C,li=(0,_.useRef)(Cn);li.current=Cn;function ri(Wn){var In=Wn;return Number.isNaN(li.current)||(In=Math.min(In,li.current)),In=Math.max(In,0),In}var _i=ei<=0,Yn=ei>=Cn,zn=_e<=0,yi=_e>=he,bi=le(_i,Yn,zn,yi),wi=function(){return{x:wn?-_e:_e,y:ei}},ci=(0,_.useRef)(wi()),xi=(0,h.useEvent)(function(Wn){if(Fe){var In=(0,P.Z)((0,P.Z)({},wi()),Wn);(ci.current.x!==In.x||ci.current.y!==In.y)&&(Fe(In),ci.current=In)}});function Xi(Wn,In){var Di=Wn;In?((0,F.flushSync)(function(){Le(Di)}),xi()):an(Di)}function ti(Wn){var In=Wn.currentTarget.scrollTop;In!==ei&&an(In),ke==null||ke(Wn),xi()}var Ti=function(In){var Di=In,Ji=he?he-er.width:0;return Di=Math.max(Di,0),Di=Math.min(Di,Ji),Di},za=(0,h.useEvent)(function(Wn,In){In?((0,F.flushSync)(function(){Le(function(Di){var Ji=Di+(wn?-Wn:Wn);return Ti(Ji)})}),xi()):an(function(Di){var Ji=Di+Wn;return Ji})}),si=be(kn,_i,Yn,zn,yi,!!he,za),fn=(0,ne.Z)(si,2),sn=fn[0],Xn=fn[1];xe(kn,Zi,function(Wn,In,Di,Ji){var Ma=Ji;return bi(Wn,In,Di)?!1:!Ma||!Ma._virtualHandled?(Ma&&(Ma._virtualHandled=!0),sn({preventDefault:function(){},deltaX:Wn?In:0,deltaY:Wn?0:In}),!0):!1}),De(Pr,Zi,function(Wn){an(function(In){return In+Wn})}),(0,$.Z)(function(){function Wn(Di){var Ji=_i&&Di.detail<0,Ma=Yn&&Di.detail>0;kn&&!Ji&&!Ma&&Di.preventDefault()}var In=Zi.current;return In.addEventListener("wheel",sn,{passive:!1}),In.addEventListener("DOMMouseScroll",Xn,{passive:!0}),In.addEventListener("MozMousePixelScroll",Wn,{passive:!1}),function(){In.removeEventListener("wheel",sn),In.removeEventListener("DOMMouseScroll",Xn),In.removeEventListener("MozMousePixelScroll",Wn)}},[kn,_i,Yn]),(0,$.Z)(function(){if(he){var Wn=Ti(_e);Le(Wn),xi({x:Wn})}},[er.width,he]);var Kn=function(){var In,Di;(In=Jt.current)===null||In===void 0||In.delayHidden(),(Di=ar.current)===null||Di===void 0||Di.delayHidden()},di=Se(Zi,ui,Tn,Y,kr,function(){return An(!0)},an,Kn);_.useImperativeHandle(dt,function(){return{nativeElement:ji.current,getScrollInfo:wi,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&&Le(Ti(In.left)),di(In.top)):di(In)}}}),(0,$.Z)(function(){if(ct){var Wn=ui.slice(Ai,On+1);ct(Wn,ui)}},[Ai,On,ui]);var qi=Ne(ui,kr,Tn,Y),Fi=Pt==null?void 0:Pt({start:Ai,end:On,virtual:Pr,offsetX:_e,offsetY:Gn,rtl:wn,getSize:qi}),Ra=X(ui,Ai,On,he,_e,Qr,we,Hr),Aa=null;C&&(Aa=(0,P.Z)((0,Oe.Z)({},H?"height":"maxHeight",C),Ot),kn&&(Aa.overflowY="hidden",he&&(Aa.overflowX="hidden"),Mt&&(Aa.pointerEvents="none")));var Co={};return wn&&(Co.dir="rtl"),_.createElement("div",(0,me.Z)({ref:ji,style:(0,P.Z)((0,P.Z)({},ie),{},{position:"relative"}),className:Si},Co,Nr),_.createElement(M.Z,{onResize:Rt},_.createElement(rt,{className:"".concat(m,"-holder"),style:Aa,ref:Zi,onScroll:ti,onMouseEnter:Kn},_.createElement(R,{prefixCls:m,height:Qn,offsetX:_e,offsetY:Gn,scrollWidth:he,onInnerResize:An,ref:Ei,innerProps:Tt,rtl:wn,extra:Fi},Ra))),Pr&&Qn>C&&_.createElement(et,{ref:Jt,prefixCls:m,scrollOffset:ei,scrollRange:Qn,rtl:wn,onScroll:Xi,onStartMove:nr,onStopMove:Dr,spinSize:bn,containerSize:er.height,style:Yt==null?void 0:Yt.verticalScrollBar,thumbStyle:Yt==null?void 0:Yt.verticalScrollBarThumb,showScrollBar:Lr}),Pr&&he>er.width&&_.createElement(et,{ref:ar,prefixCls:m,scrollOffset:_e,scrollRange:he,rtl:wn,onScroll:Xi,onStartMove:nr,onStopMove:Dr,spinSize:Or,containerSize:er.width,horizontal:!0,style:Yt==null?void 0:Yt.horizontalScrollBar,thumbStyle:Yt==null?void 0:Yt.horizontalScrollBarThumb,showScrollBar:Lr}))}var rr=_.forwardRef(sr);rr.displayName="List";var br=rr,lr=br},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,Ut,x){"use strict";var me=Object.defineProperty,Ae=Object.defineProperties,P=Object.getOwnPropertyDescriptors,Oe=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,S=(e,t,r)=>t in e?me(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,v=(e,t)=>{for(var r in t||(t={}))ne.call(t,r)&&S(e,r,t[r]);if(Oe)for(var r of Oe(t))W.call(t,r)&&S(e,r,t[r]);return e},M=(e,t)=>Ae(e,P(t)),h=e=>typeof e=="symbol"?e:e+"",$=(e,t)=>{var r={};for(var i in e)ne.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&Oe)for(var i of Oe(e))t.indexOf(i)<0&&W.call(e,i)&&(r[i]=e[i]);return r};function _(e){return Array.isArray(e)}var F={en:{"keyboard.tooltip.symbols":"\u7B26\u53F7","keyboard.tooltip.greek":"\u5E0C\u814A\u5B57\u6BCD","keyboard.tooltip.numeric":"\u6570\u5B57","keyboard.tooltip.alphabetic":"\u7F57\u9A6C\u5B57\u6BCD","tooltip.cut to clipboard":"\u526A\u5207\u5230\u526A\u8D34\u677F","tooltip.copy to clipboard":"\u590D\u5236\u5230\u526A\u8D34\u677F","tooltip.paste from clipboard":"\u7C98\u8D34","tooltip.redo":"\u91CD\u505A","tooltip.toggle virtual keyboard":"\u5207\u6362\u865A\u62DF\u952E\u76D8","tooltip.undo":"\u64A4\u6D88","menu.insert matrix":"\u63D2\u5165\u77E9\u9635","menu.borders":"\u77E9\u9635\u5206\u9694\u7B26","menu.array.add row above":"\u5728\u540E\u9762\u6DFB\u52A0\u884C","menu.array.add row below":"\u5728\u524D\u9762\u6DFB\u52A0\u884C","menu.array.add column after":"\u5728\u540E\u9762\u6DFB\u52A0\u5217r","menu.array.add column before":"\u5728\u524D\u9762\u6DFB\u52A0\u5217","menu.array.delete row":"\u5220\u9664\u884C","menu.array.delete rows":"\u5220\u9664\u9009\u5B9A\u884C","menu.array.delete column":"\u5220\u9664\u5217","menu.array.delete columns":"\u5220\u9664\u9009\u5B9A\u7684\u5217","menu.mode":"\u6A21\u5F0F","menu.mode-math":"\u6570\u5B66","menu.mode-text":"\u6587\u672C","menu.mode-latex":"LaTeX","tooltip.blackboard":"\u9ED1\u677F","tooltip.bold":"\u7C97\u4F53","tooltip.italic":"\u659C\u4F53","tooltip.fraktur":"Fraktur","tooltip.script":"\u811A\u672C","tooltip.caligraphic":"\u8349\u4E66","tooltip.typewriter":"\u6253\u5B57\u673A","tooltip.roman-upright":"\u7F57\u9A6C\u76F4\u7ACB","tooltip.row-by-col":"%@ \xD7 %@","menu.font-style":"\u5B57\u4F53\u6837\u5F0F","menu.accent":"\u91CD\u97F3","menu.decoration":"\u88C5\u9970","menu.color":"\u989C\u8272","menu.background-color":"\u80CC\u666F","menu.evaluate":"\u8BA1\u7B97","menu.simplify":"\u7B80\u5316","menu.solve":"\u6C42\u89E3","menu.solve-for":"\u6C42\u89E3 %@","menu.cut":"\u526A\u5207","menu.copy":"\u590D\u5236","menu.copy-as-latex":"\u590D\u5236\u4E3A LaTeX","menu.copy-as-ascii-math":"\u590D\u5236\u4E3A ASCII Math","menu.copy-as-mathml":"\u590D\u5236\u4E3A MathML","menu.paste":"\u7C98\u8D34","menu.select-all":"\u5168\u9009","color.red":"\u7EA2\u8272","color.orange":"\u6A59\u8272","color.yellow":"\u9EC4\u8272","color.lime":"\u7EFF\u9EC4\u8272","color.green":"\u7EFF\u8272","color.teal":"\u9752\u8272","color.cyan":"\u84DD\u7EFF\u8272","color.blue":"\u84DD\u8272","color.indigo":"\u975B\u84DD\u8272","color.purple":"\u7D2B\u8272","color.magenta":"\u6D0B\u7EA2\u8272","color.black":"\u9ED1\u8272","color.dark-grey":"\u6DF1\u7070\u8272","color.grey":"\u7070\u8272","color.light-grey":"\u6D45\u7070\u8272","color.white":"\u767D\u8272"}};function N(){return"window"in globalThis&&"document"in globalThis}function R(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function L(){return typeof navigator.vibrate=="function"}function X(){var e,t;if(!N())return"other";const r=(t=(e=navigator.userAgentData)==null?void 0:e.platform)!=null?t:navigator.platform;return/^mac/i.test(r)?navigator.maxTouchPoints===5?"ios":"macos":/^win/i.test(r)?"windows":/android/i.test(navigator.userAgent)?"android":/iphone|ipod|ipad/i.test(navigator.userAgent)?"ios":/\bcros\b/i.test(navigator.userAgent)?"chromeos":"other"}function Q(){if(!N())return!0;if(/firefox/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/firefox\/(\d+)/i);return e?parseInt(e[1])>=78:!1}if(/trident/i.test(navigator.userAgent))return!1;if(/edge/i.test(navigator.userAgent)){const e=navigator.userAgent.match(/edg\/(\d+)/i);return e?parseInt(e[1])>=79:!1}return!0}function oe(){return HTMLElement.prototype.hasOwnProperty("popover")}var ee={strings:F,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ee._locale||(ee._locale=N()?navigator.language.slice(0,5):"en-US"),ee._locale},set locale(e){ee._locale=e,ee._numberFormatter=void 0,ee.dirty=!0},get numberFormatter(){return ee._numberFormatter||(ee._numberFormatter=new Intl.NumberFormat(ee.locale)),ee._numberFormatter},merge(e,t){if(typeof e=="string"&&t)ee.strings[e]=v(v({},ee.strings[e]),t),ee.dirty=!0;else for(const r of Object.keys(e))ee.merge(r,e[r])},get dirty(){return ee._dirty},set dirty(e){ee._dirty||ee._dirty===e||(ee._dirty=!0,setTimeout(()=>{ee._dirty=!1,this._subscribers.forEach(t=>t==null?void 0:t())},0))},subscribe(e){return ee._subscribers.push(e),ee._subscribers.length-1},unsubscribe(e){e<0||e>=ee._subscribers.length||(ee._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=re(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=re(i);s&&r.setAttribute("aria-label",s)}}}};function re(e,...t){if(e===void 0)return;let r="";const i=ee.locale;ee.strings[i]&&(r=ee.strings[i][e]);const s=i.slice(0,2);if(!r&&ee.strings[s]&&(r=ee.strings[s][e]),r||(r=ee.strings.en[e]),!r)return;const c=/(%@|%([0-9]+)\$@)/g;let A=c.exec(r),k=0;for(;A;){if(t[k++]){const J=A[2]?parseInt(A[2],10)-1:k-1;let ue=t[J];typeof ue=="number"&&(ue=ee.numberFormatter.format(ue)),r=r.replace(A[1],ue)}A=c.exec(r)}return r=r.replace(/%%/g,"%"),r}var G={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"},be={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"},Ne={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"},ye={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,A;const k=e.split("!");let j,J,ue,Pe=255,nt=255,bt=255,Et=-1;const Cr=k.length>0&&k[0].startsWith("-");Cr&&(k[0]=k[0].slice(1));for(let _n=0;_n<k.length;_n++){j=Pe,J=nt,ue=bt;const wr=(t=k[_n].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:t[1],nn=wr==null?void 0:wr.toLowerCase(),Mn=wr&&(A=(c=(s=(i=(r=be[nn])!=null?r:be[Ne[wr]])!=null?i:K[wr])!=null?s:ye[wr])!=null?c:G[wr])!=null?A:k[_n].trim();let cn=Mn.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(cn!=null&&cn[1]&&cn[2]&&cn[3])Pe=Math.max(0,Math.min(255,Number.parseInt(cn[1],16))),nt=Math.max(0,Math.min(255,Number.parseInt(cn[2],16))),bt=Math.max(0,Math.min(255,Number.parseInt(cn[3],16)));else if(cn=Mn.match(/^#([\da-f]{3})$/i),cn!=null&&cn[1]){const Bi=Number.parseInt(cn[1][0],16),ra=Number.parseInt(cn[1][1],16),Hi=Number.parseInt(cn[1][2],16);Pe=Math.max(0,Math.min(255,Bi*16+Bi)),nt=Math.max(0,Math.min(255,ra*16+ra)),bt=Math.max(0,Math.min(255,Hi*16+Hi))}else if(cn=Mn.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),cn!=null&&cn[1]&&cn[2]&&cn[3])Pe=Math.max(0,Math.min(255,Number.parseInt(cn[1]))),nt=Math.max(0,Math.min(255,Number.parseInt(cn[2]))),bt=Math.max(0,Math.min(255,Number.parseInt(cn[3])));else return;Et>=0&&(Pe=(1-Et)*Pe+Et*j,nt=(1-Et)*nt+Et*J,bt=(1-Et)*bt+Et*ue,Et=-1),_n+1<k.length&&(Et=Math.max(0,Math.min(100,Number.parseInt(k[++_n])))/100)}return Et>=0&&(Pe=Et*Pe+(1-Et)*j,nt=Et*nt+(1-Et)*J,bt=Et*bt+(1-Et)*ue),Cr&&(Pe=255-Pe,nt=255-nt,bt=255-bt),"#"+("00"+Math.round(Pe).toString(16)).slice(-2)+("00"+Math.round(nt).toString(16)).slice(-2)+("00"+Math.round(bt).toString(16)).slice(-2)}function q(e){var t,r;return e=e.trim(),(r=(t=le[e.toLowerCase()])!=null?t:le[Ne[e]])!=null?r:Ue(e)}function de(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 qe(e){let[t,r,i]=[e.h,e.s,e.l];t=(t+360)%360/60,i=Math.max(0,Math.min(i,1)),r=Math.max(0,Math.min(r,1));const s=i<=.5?i*(r+1):i+r-i*r,c=i*2-s;return{r:Math.round(255*D(c,s,t+2)),g:Math.round(255*D(c,s,t)),b:Math.round(255*D(c,s,t-2))}}function Me(e){return e<0?0:e>255?255:Math.round(e)}function xe(e){const{r:t,g:r,b:i}=e;let s=((1<<24)+(Me(t)<<16)+(Me(r)<<8)+Me(i)).toString(16).slice(1);return s[0]===s[1]&&s[2]===s[3]&&s[4]===s[5]&&s[6]===s[7]&&(s=s[0]+s[2]+s[4]),"#"+s}function Te(e){let{r:t,g:r,b:i}=e;t=t/255,r=r/255,i=i/255;const s=Math.min(t,r,i),c=Math.max(t,r,i),A=c-s;let k,j;c===s?k=0:t===c?k=(r-i)/A:r===c?k=2+(i-t)/A:i===c&&(k=4+(t-r)/A),k=Math.min(k*60,360),k<0&&(k+=360);const J=(s+c)/2;return c===s?j=0:J<=.5?j=A/(c+s):j=A/(2-c-s),{h:k,s:j,l:J}}function ve(e){let t=de(e);if(!t)return e;let{h:r,s:i,l:s}=Te(t);return i+=.1,s-=.1,xe(qe({h:r,s:i,l:s}))}var De={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"},pe={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},Se=[{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 Se)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(pe[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 pe)if(pe[r]===e){e=(t=r.codePointAt(0))!=null?t:0;break}for(const r of Se)if(e>=r.start&&e<r.start+r.len)return{char:String.fromCodePoint(e-r.start+r.offset),variant:r.variant,style:r.style};return{char:String.fromCodePoint(e)}}function je(e){var t;let r="";for(const i of e){if("{}<>[]$&#^_%:'\u02DC".includes(i)){r+=i;continue}const s=(t=i.codePointAt(0))!=null?t:0;let c=De[s];if(c)c.startsWith("\\")?r+=c+" ":r+=c;else{const{char:A,variant:k,style:j}=et(s);switch(c=A,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 Ye(e){return e?Array.isArray(e)?e:typeof e=="object"&&"group"in e?e.group:[]:[]}var _t={},kt=v({},De),Ot={},sr={},rr={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}"},br={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}},V={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:br,primitive:!0},"texvc.sty":{package:rr,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,f;Q()?(m=new RegExp("\\p{Letter}","u"),f=new RegExp("[0-9\\p{Letter}]","u")):(m=/[a-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/,f=/[\da-zA-ZаАбБвВгГдДеЕёЁжЖзЗиИйЙкКлЛмМнНоОпПрРсСтТуУфФхХцЦчЧшШщЩъЪыЫьЬэЭюЮяĄąĆćĘꣳŃńÓóŚśŹźŻżàâäôéèëêïîçùûüÿæœÀÂÄÔÉÈËÊÏΟÇÙÛÜÆŒößÖẞìíòúÌÍÒÚáñÁÑ]/);function C(e,t,r="mord",i){t!==void 0&&(_t[e]={definitionType:"symbol",type:r,variant:i,codepoint:t},kt[t]||(kt[t]=e))}function Y(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,A]of e)C(i,s,c!=null?c:t,A!=null?A:r)}function Be(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 A in Ot)A.startsWith(t)&&!Ot[A].infix&&s.push({match:A,frequency:(r=Ot[A].frequency)!=null?r:0});for(const A in _t)A.startsWith(t)&&s.push({match:A,frequency:(i=_t[A].frequency)!=null?i:0});const c=t.substring(1);for(const A of Object.keys(e.options.macros))A.startsWith(c)&&s.push({match:"\\"+A,frequency:0});return s.sort((A,k)=>{var j,J;return A.frequency===k.frequency?A.match.length===k.match.length?A.match<k.match?-1:1:A.match.length-k.match.length:((j=k.frequency)!=null?j:0)-((J=A.frequency)!=null?J:0)}),s.map(A=>A.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 ce(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 ze(e,t){typeof e=="string"&&(e=[e]);const r={tabular:!1,params:[],createAtom:t};for(const i of e)sr[i]=r}function vt(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 he(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 A of e)Ot["\\"+A]=c}var at;function rt(e){return at||(at=Fe(V)),e?Fe(v(v({},at),e)):at}function ke(e,t){var r,i,s,c;if(typeof e=="string"){let A=0;const k=e;return/(^|[^\\])#1/.test(k)&&(A=1),/(^|[^\\])#2/.test(k)&&(A=2),/(^|[^\\])#3/.test(k)&&(A=3),/(^|[^\\])#4/.test(k)&&(A=4),/(^|[^\\])#5/.test(k)&&(A=5),/(^|[^\\])#6/.test(k)&&(A=6),/(^|[^\\])#7/.test(k)&&(A=7),/(^|[^\\])#8/.test(k)&&(A=8),/(^|[^\\])#9/.test(k)&&(A=9),{expand:(r=t==null?void 0:t.expand)!=null?r:!0,captureSelection:(i=t==null?void 0:t.captureSelection)!=null?i:!0,args:A,def:k}}return v({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 Fe(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]=ke(i.package[s],{expand:!i.primitive,captureSelection:i.captureSelection});else t[r]=ke(i)}return t}function ct(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=_t[e]:dt[e]&&(r={definitionType:"symbol",type:"mord",codepoint:dt[e]})}else if(t==="math"){if(r=_t[e],!r&&e.length===1){const i=Pt("math",e.codePointAt(0));return i.startsWith("\\")?M(v({},ct(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 Tt(e,t){if(!e.startsWith("\\"))return null;const r=e.slice(1);return t[r]}function Pt(e,t){if(t===void 0)return"";if(e==="math"&&kt[t])return kt[t];if(e==="text"){const r=Object.keys(dt).find(i=>dt[i]===t);return r||String.fromCodePoint(t)}return String.fromCodePoint(t)}var Yt=[0,.68889,0,0,.72222],Fr=[0,.68889,0,0,.66667],Lr=[0,.68889,0,0,.77778],Nr=[0,.68889,0,0,.61111],kr=[.16667,.68889,0,0,.77778],yr=[0,.68889,0,0,.55556],dr=[0,0,0,0,.25],Qr=[0,.825,0,0,2.33334],An=[0,.9,0,0,2.33334],Tn=[0,.68889,0,0,.54028],dn=[-.03598,.46402,0,0,.5],kn=[-.13313,.36687,0,0,1],Qi=[.01354,.52239,0,0,1],Pr=[.01354,.52239,0,0,1.11111],wn=[0,.54986,0,0,1],Si=[0,.69224,0,0,.5],ui=[0,.43056,0,0,1],Zi=[.08198,.58198,0,0,.77778],Ei=[.19444,.69224,0,0,.41667],ji=[.1808,.675,0,0,1],eo=[.19444,.69224,0,0,.83334],Ki=[.13667,.63667,0,0,1],ei=[-.064,.437,0,0,1.334],pi=[.08167,.58167,0,0,.77778],vi=[0,.69224,0,0,.72222],$e=[0,.69224,0,0,.66667],_e=[-.13313,.36687,0,0,.77778],Le=[.06062,.54986,0,0,.77778],Ie=[0,.69224,0,0,.77778],Dt=[.25583,.75583,0,0,.77778],Mt=[.25142,.75726,0,0,.77778],Sr=[.20576,.70576,0,0,.77778],nr=[.30274,.79383,0,0,.77778],Dr=[.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],yn=[.19444,.69224,0,0,.61111],on=[0,.54986,0,0,.76042],Dn=[0,.54986,0,0,.66667],Qn=[.0391,.5391,0,0,.77778],Ai=[.03517,.54986,0,0,1.33334],On=[.38569,.88569,0,0,.77778],Gn=[.23222,.74111,0,0,.77778],Vt=[.19444,.69224,0,0,.77778],Xt=[0,.37788,0,0,.5],er=[0,.54986,0,0,.72222],fr=[0,.69224,0,0,.83334],Rt=[.11111,.69224,0,0,.66667],Jt=[.26167,.75726,0,0,.77778],ar=[.48256,.98256,0,0,.77778],Or=[.28481,.79383,0,0,.77778],bn=[.08167,.58167,0,0,.22222],Cn=[.08167,.58167,0,0,.38889],li=[0,.43056,.04028,0,.66667],ri=[.41951,.91951,0,0,.77778],_i=[.24982,.74947,0,0,.38865],Yn=[.08319,.58283,0,0,.75623],zn=[0,.10803,0,0,.27764],yi=[0,.47534,0,0,.50181],bi=[.18906,.47534,0,0,.50181],wi=[0,.69141,0,0,.50181],ci=[.24982,.74947,0,0,.27764],xi=[0,.69141,0,0,.21471],Xi=[.25,.75,0,0,.44722],ti=[0,.64444,0,0,.575],Ti=[.08556,.58556,0,0,.89444],za=[0,.69444,0,0,.89444],si=[0,.68611,0,0,.9],fn=[0,.68611,0,0,.86944],sn=[.25,.75,0,0,.575],Xn=[.25,.75,0,0,.31944],Kn=[0,.69444,0,0,.63889],di=[0,.69444,0,0,.31944],qi=[0,.44444,0,0,.63889],Fi=[0,.44444,0,0,.51111],Ra=[0,.69444,0,0,.575],Aa=[.13333,.63333,0,0,.89444],Co=[0,.44444,0,0,.31944],Wn=[0,.69444,0,0,.86944],In=[0,.68611,0,0,.69166],Di=[0,.68611,0,0,.83055],Ji=[0,.68611,0,0,.89444],Ma=[0,.69444,0,0,.60278],Ms=[.19444,.69444,0,0,.51111],Za=[0,.69444,0,0,.83055],fa=[-.10889,.39111,0,0,1.14999],_o=[.19444,.69444,0,0,.575],Bo=[.19444,.69444,0,0,1.14999],To=[.19444,.69444,0,0,.70277],Ps=[.05556,.75,0,0,.575],mo=[0,.68611,0,0,.95833],xs=[.08556,.58556,0,0,.76666],Ts=[-.02639,.47361,0,0,.575],$s=[0,.44444,0,0,.89444],Uo=[0,.55556,0,0,.76666],Ro=[-.10889,.39111,0,0,.89444],Cs=[.00222,.50222,0,0,.89444],el=[.19667,.69667,0,0,.89444],vl=[.08556,.58556,0,0,1.14999],tc=[0,.69444,0,0,.70277],rc=[-.02778,.47222,0,0,.575],Rl=[.25,.75,0,0,.51111],Zs=[-.13889,.36111,0,0,1.14999],kc=[.19444,.69444,0,0,1.02222],Ql=[.12963,.69444,0,0,.89444],Kl=[.19444,.69444,0,0,.44722],Vs=[0,.64444,.13167,0,.59111],os=[.19444,.64444,.13167,0,.59111],ni=[0,.68611,.17208,0,.8961],ca=[.19444,.44444,.105,0,.53222],ta=[0,.44444,.085,0,.82666],oa=[0,.69444,.06709,0,.59111],Na=[0,.69444,.12945,0,.35555],so=[0,.69444,0,0,.94888],Ws=[0,.69444,.11472,0,.59111],Bs=[0,.68611,.10778,0,.88555],Ss=[0,.69444,.07939,0,.62055],vs=[0,.69444,.12417,0,.30667],to=[0,.64444,.13556,0,.51111],Qa=[.19444,.64444,.13556,0,.51111],ss=[0,.68333,.16389,0,.74333],ls=[.19444,.43056,.08847,0,.46],Ls=[0,.43056,.07514,0,.71555],Jo=[0,.69444,.06646,0,.51111],Io=[0,.69444,0,0,.83129],hu=[0,.69444,.1225,0,.51111],rA=[0,.68333,.09403,0,.76666],lc=[0,.68333,.11111,0,.76666],pu=[0,.69444,.06961,0,.51444],cl=[0,.69444,0,0,.27778],mu=[.25,.75,0,0,.38889],tl=[0,.64444,0,0,.5],bs=[0,.69444,0,0,.77778],qc=[0,.68333,0,0,.75],Us=[0,.68333,0,0,.77778],Pu=[0,.68333,0,0,.68056],cc=[0,.68333,0,0,.72222],Hl=[.25,.75,0,0,.5],ro=[.25,.75,0,0,.27778],Gs=[0,.69444,0,0,.5],gu=[0,.69444,0,0,.55556],EA=[0,.43056,0,0,.44445],cs=[0,.43056,0,0,.5],Ba=[.19444,.43056,0,0,.55556],ya=[0,.43056,0,0,.55556],rs=[.08333,.58333,0,0,.77778],bo=[0,.43056,0,0,.27778],$o=[0,.66786,0,0,.27778],Zo=[0,.69444,0,0,.75],Do=[0,.66786,0,0,.5],Es=[0,.68333,0,0,.625],nc=[.19444,.69444,0,0,.44445],Vc=[0,.69444,0,0,.72222],Xs=[.19444,.69444,0,0,.5],vu=[.19444,.69444,0,0,1],wl=[.011,.511,0,0,1.126],eu=[.19444,.69444,0,0,.61111],rl=[.05556,.75,0,0,.5],_d=[0,.68333,0,0,.83334],nA=[.0391,.5391,0,0,.66667],$u=[-.05555,.44445,0,0,.5],uf=[0,.43056,0,0,.77778],Wc=[0,.55556,0,0,.66667],GA=[-.03625,.46375,0,0,.77778],Dc=[-.01688,.48312,0,0,.77778],Id=[.0391,.5391,0,0,1],Yo=[0,.69444,0,0,.61111],Oo=[-.03472,.46528,0,0,.5],qo=[.25,.75,0,0,.44445],bc=[-.14236,.35764,0,0,1],jl=[.244,.744,0,0,.412],XA=[.19444,.69444,0,0,.88889],bu=[.12963,.69444,0,0,.77778],Zu=[.19444,.69444,0,0,.38889],Fd=[.011,.511,0,0,1.638],Md=[.19444,.69444,0,0,0],Vu=[0,.44444,0,0,.575],Wu=[.19444,.44444,0,0,.575],Fo=[0,.68611,0,0,.75555],yu=[0,.69444,0,0,.66759],Gu=[0,.68611,0,0,.80555],b0=[0,.68611,.08229,0,.98229],iA=[0,.68611,0,0,.76666],Bh=[0,.44444,0,0,.58472],Af=[.19444,.44444,0,0,.6118],Ld=[.19444,.43056,0,0,.5],zf=[0,.68333,.02778,.08334,.76278],Sh=[0,.68333,.08125,.05556,.83125],_A=[0,.43056,0,.05556,.48472],df=[.19444,.43056,0,.08334,.51702],xl=[.25,.75,0,0,.42778],Cl=[0,.69444,0,0,.55],Oc=[0,.69444,0,0,.73334],Nc=[0,.69444,0,0,.79445],y0=[0,.69444,0,0,.51945],IA=[0,.69444,0,0,.70278],Eh=[0,.69444,0,0,.76389],FA=[.25,.75,0,0,.34306],kd=[0,.69444,0,0,.56111],$p=[0,.69444,0,0,.25556],aA=[.19444,.45833,0,0,.56111],tu=[0,.45833,0,0,.56111],yc=[0,.69444,0,0,.30556],Vo=[0,.69444,0,0,.58056],JA=[0,.69444,0,0,.67223],$f=[0,.69444,0,0,.85556],Zf=[0,.69444,0,0,.55834],Pc=[0,.65556,.11156,0,.5],YA=[0,.69444,.08094,0,.70834],ff=[.17014,0,0,0,.44445],qA=[0,.69444,.0799,0,.5],w0=[0,.69444,0,0,.73752],x0=[0,.69444,.09205,0,.5],zl=[0,.69444,.09031,0,.77778],ed=[0,.69444,.07816,0,.27778],C0=[0,.69444,.00316,0,.5],fe=[.19444,.69444,0,0,.83334],Ce=[.05556,.75,0,0,.83334],Je=[0,.75,0,0,.5],lt=[.125,.08333,0,0,.27778],Bt=[0,.08333,0,0,.27778],yt=[0,.65556,0,0,.5],$t=[0,.69444,0,0,.47222],zt=[0,.69444,0,0,.66667],Kt=[0,.69444,0,0,.59722],ur=[0,.69444,0,0,.54167],_r=[0,.69444,0,0,.70834],pr=[.25,.75,0,0,.28889],tn=[0,.69444,0,0,.51667],Vr=[0,.44444,0,0,.44445],Yr=[.19444,.44444,0,0,.51667],Nn=[0,.44444,0,0,.38333],xn=[0,.44444,0,0,.51667],Fn=[0,.69444,0,0,.83334],Bn=[.35001,.85,0,0,.45834],$n=[.35001,.85,0,0,.57778],Ui=[.35001,.85,0,0,.41667],zi=[.35001,.85,0,0,.58334],fi=[0,.72222,0,0,.55556],na=[1e-5,.6,0,0,.66667],wa=[1e-5,.6,0,0,.77778],Jn=[.25001,.75,0,0,.94445],mi=[.306,.805,.19445,0,.47222],ii=[.30612,.805,.19445,0,.47222],Pn=[.25001,.75,0,0,.83334],ai=[.35001,.85,0,0,.47222],Vi=[.25001,.75,0,0,1.11111],Pa=[.65002,1.15,0,0,.59722],ma=[.65002,1.15,0,0,.81111],Wi=[.65002,1.15,0,0,.47222],Ia=[.65002,1.15,0,0,.66667],Ka=[0,.75,0,0,1],es=[.55001,1.05,0,0,1.27778],lo=[.862,1.36,.44445,0,.55556],ys=[.86225,1.36,.44445,0,.55556],us=[.55001,1.05,0,0,1.11111],ga=[.65002,1.15,0,0,.52778],ol=[.65002,1.15,0,0,.61111],go=[.55001,1.05,0,0,1.51112],ts=[.95003,1.45,0,0,.73611],ns=[.95003,1.45,0,0,1.04445],wc=[.95003,1.45,0,0,.52778],oi=[.95003,1.45,0,0,.75],Gi=[0,.75,0,0,1.44445],$i=[.95003,1.45,0,0,.58334],Oi=[1.25003,1.75,0,0,.79167],yo=[1.25003,1.75,0,0,1.27778],Ni=[1.25003,1.75,0,0,.58334],ua=[1.25003,1.75,0,0,.80556],$a=[0,.825,0,0,1.8889],Va=[1.25003,1.75,0,0,.63889],Fl=[.64502,1.155,0,0,.875],nl=[1e-5,.6,0,0,.875],Gc=[-99e-5,.601,0,0,.66667],Rs=[.64502,1.155,0,0,.66667],Tc=[1e-5,.9,0,0,.88889],Hn=[.65002,1.15,0,0,.88889],uc=[.90001,0,0,0,.88889],MA=[-.00499,.605,0,0,1.05556],co=[0,.12,0,0,.45],hn=[0,.61111,0,0,.525],Mo=[.08333,.69444,0,0,.525],ul=[-.08056,.53055,0,0,.525],As=[-.05556,.55556,0,0,.525],ia=[0,.43056,0,0,.525],Bl=[.22222,.43056,0,0,.525],$l=[0,0,0,0,.525],Uc={"AMS-Regular":{32:dr,65:Yt,66:Fr,67:Yt,68:Yt,69:Fr,70:Nr,71:Lr,72:Lr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Lr,76:Fr,77:[0,.68889,0,0,.94445],78:Yt,79:kr,80:Nr,81:kr,82:Yt,83:yr,84:Fr,85:Yt,86:Yt,87:[0,.68889,0,0,1],88:Yt,89:Yt,90:Fr,107:yr,160:dr,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:yr,295:Tn,710:Qr,732:An,770:Qr,771:An,989:pi,1008:li,8245:[0,.54986,0,0,.275],8463:Tn,8487:Yt,8498:yr,8502:Fr,8503:[0,.68889,0,0,.44445],8504:Fr,8513:[0,.68889,0,0,.63889],8592:dn,8594:dn,8602:kn,8603:kn,8606:Qi,8608:Qi,8610:Pr,8611:Pr,8619:wn,8620:wn,8621:[-.13313,.37788,0,0,1.38889],8622:kn,8624:Si,8625:Si,8630:ui,8631:ui,8634:Zi,8635:Zi,8638:Ei,8639:Ei,8642:Ei,8643:Ei,8644:ji,8646:ji,8647:ji,8648:eo,8649:ji,8650:eo,8651:Qi,8652:Qi,8653:kn,8654:kn,8655:kn,8666:Ki,8667:Ki,8669:[-.13313,.37788,0,0,1],8672:ei,8674:ei,8705:[0,.825,0,0,.5],8708:yr,8709:pi,8717:[0,.43056,0,0,.42917],8722:dn,8724:[.08198,.69224,0,0,.77778],8726:pi,8733:Ie,8736:vi,8737:vi,8738:[.03517,.52239,0,0,.72222],8739:bn,8740:[.25142,.74111,0,0,.27778],8741:Cn,8742:[.25142,.74111,0,0,.5],8756:$e,8757:$e,8764:_e,8765:[-.13313,.37788,0,0,.77778],8769:_e,8770:GA,8774:nr,8776:Dc,8778:pi,8782:Le,8783:Le,8785:Zi,8786:Zi,8787:Zi,8790:Ie,8791:Dr,8796:[.08198,.91667,0,0,.77778],8806:Dt,8807:Dt,8808:Mt,8809:Mt,8812:[.25583,.75583,0,0,.5],8814:Sr,8815:Sr,8816:nr,8817:nr,8818:Dr,8819:Dr,8822:Hr,8823:Hr,8828:an,8829:an,8830:Dr,8831:Dr,8832:Sr,8833:Sr,8840:nr,8841:nr,8842:jr,8843:jr,8847:Rr,8848:Rr,8858:Zi,8859:Zi,8861:Zi,8862:en,8863:en,8864:en,8865:en,8872:[0,.69224,0,0,.61111],8873:vi,8874:[0,.69224,0,0,.88889],8876:Nr,8877:Nr,8878:Yt,8879:Yt,8882:Rr,8883:Rr,8884:an,8885:an,8888:[0,.54986,0,0,1.11111],8890:Ba,8891:yn,8892:yn,8901:[0,.54986,0,0,.27778],8903:pi,8905:pi,8906:pi,8907:Ie,8908:Ie,8909:[-.03598,.46402,0,0,.77778],8910:on,8911:on,8912:Rr,8913:Rr,8914:Dn,8915:Dn,8916:$e,8918:Qn,8919:Qn,8920:Ai,8921:Ai,8922:On,8923:On,8926:an,8927:an,8928:nr,8929:nr,8934:Gn,8935:Gn,8936:Gn,8937:Gn,8938:Sr,8939:Sr,8940:nr,8941:nr,8994:Vt,8995:Vt,9416:[.15559,.69224,0,0,.90222],9484:Si,9488:Si,9492:Xt,9496:Xt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:en,9633:en,9650:er,9651:er,9654:Rr,9660:er,9661:er,9664:Rr,9674:Rt,9733:[.19444,.69224,0,0,.94445],10003:fr,10016:fr,10731:Rt,10846:[.19444,.75583,0,0,.61111],10877:an,10878:an,10885:Dt,10886:Dt,10887:jr,10888:jr,10889:Jt,10890:Jt,10891:ar,10892:ar,10901:an,10902:an,10933:Mt,10934:Mt,10935:Jt,10936:Jt,10937:Jt,10938:Jt,10949:Dt,10950:Dt,10955:Or,10956:Or,57350:bn,57351:Cn,57352:pi,57353:li,57356:Mt,57357:Mt,57358:ri,57359:nr,57360:nr,57361:ri,57366:Mt,57367:Mt,57368:Mt,57369:Mt,57370:jr,57371:jr},"Caligraphic-Regular":{32:dr,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:dr},"Fraktur-Regular":{32:dr,33:[0,.69141,0,0,.29574],34:xi,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:_i,41:_i,42:[0,.62119,0,0,.27764],43:Yn,44:zn,45:Yn,46:zn,47:[.24982,.74947,0,0,.50181],48:yi,49:yi,50:yi,51:bi,52:bi,53:bi,54:wi,55:bi,56:wi,57:bi,58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:ci,93:ci,94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:dr,8216:xi,8217:xi,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:dr,33:[0,.69444,0,0,.35],34:Ma,35:[.19444,.69444,0,0,.95833],36:Ps,37:[.05556,.75,0,0,.95833],38:za,39:di,40:Xi,41:Xi,42:[0,.75,0,0,.575],43:Aa,44:[.19444,.15556,0,0,.31944],45:Nn,46:[0,.15556,0,0,.31944],47:sn,48:ti,49:ti,50:ti,51:ti,52:ti,53:ti,54:ti,55:ti,56:ti,57:ti,58:Co,59:[.19444,.44444,0,0,.31944],60:Ti,61:Ro,62:Ti,63:[0,.69444,0,0,.54305],64:za,65:fn,66:[0,.68611,0,0,.81805],67:Di,68:[0,.68611,0,0,.88194],69:Fo,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:si,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:In,77:[0,.68611,0,0,1.09166],78:si,79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:fn,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Xn,92:sn,93:Xn,94:Ra,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Kn,99:Fi,100:Kn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Kn,105:di,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:di,109:[0,.44444,0,0,.95833],110:qi,111:Vu,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:Fi,123:sn,124:Xn,125:sn,126:[.35,.34444,0,0,.575],160:dr,163:[0,.69444,0,0,.86853],168:Ra,172:[0,.44444,0,0,.76666],176:Wn,177:Aa,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:Aa,216:[.04861,.73472,0,0,.89444],223:Kt,230:[0,.44444,0,0,.83055],247:Aa,248:[.09722,.54167,0,0,.575],305:Co,338:[0,.68611,0,0,1.16944],339:$s,567:[.19444,.44444,0,0,.35139],710:Ra,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Ra,715:Ra,728:Ra,729:di,730:Wn,732:Ra,733:Ra,915:In,916:mo,920:Ji,923:Gu,926:iA,928:si,931:Di,933:Ji,934:Di,936:Ji,937:Di,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:di,8217:di,8220:Ma,8221:Ma,8224:Ms,8225:Ms,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:yu,8465:Za,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:Za,8501:tc,8592:fa,8593:_o,8594:fa,8595:_o,8596:fa,8597:sn,8598:Bo,8599:Bo,8600:Bo,8601:Bo,8636:fa,8637:fa,8640:fa,8641:fa,8656:fa,8657:To,8658:fa,8659:To,8660:fa,8661:[.25,.75,0,0,.70277],8704:Kn,8706:[0,.69444,.06389,0,.62847],8707:Kn,8709:Ps,8711:mo,8712:xs,8715:xs,8722:Aa,8723:Aa,8725:sn,8726:sn,8727:rc,8728:Ts,8729:Ts,8730:[.18,.82,0,0,.95833],8733:$s,8734:[0,.44444,0,0,1.14999],8736:vi,8739:Xn,8741:sn,8743:Uo,8744:Uo,8745:Uo,8746:Uo,8747:[.19444,.69444,.12778,0,.56875],8764:Ro,8768:[.19444,.69444,0,0,.31944],8771:Cs,8776:[.02444,.52444,0,0,.89444],8781:Cs,8801:Cs,8804:el,8805:el,8810:vl,8811:vl,8826:Ti,8827:Ti,8834:Ti,8835:Ti,8838:el,8839:el,8846:Uo,8849:el,8850:el,8851:Uo,8852:Uo,8853:Aa,8854:Aa,8855:Aa,8856:Aa,8857:Aa,8866:tc,8867:tc,8868:za,8869:za,8900:Ts,8901:[-.02639,.47361,0,0,.31944],8902:rc,8968:Rl,8969:Rl,8970:Rl,8971:Rl,8994:Zs,8995:Zs,9651:kc,9657:rc,9661:kc,9667:rc,9711:Bo,9824:Ql,9825:Ql,9826:Ql,9827:Ql,9837:[0,.75,0,0,.44722],9838:Kl,9839:Kl,10216:Xi,10217:Xi,10815:si,10927:el,10928:el,57376:Md},"Main-BoldItalic":{32:dr,33:[0,.69444,.11417,0,.38611],34:Ss,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:Na,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:os,53:Vs,54:Vs,55:os,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:ni,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:ni,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:ca,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:ca,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:dr,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:Na,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:ni,931:[0,.68611,.11431,0,.82666],933:Bs,934:[0,.68611,.05632,0,.82666],936:Bs,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:Na,8217:Na,8220:[0,.69444,.16772,0,.62055],8221:Ss},"Main-Italic":{32:dr,33:vs,34:pu,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:vs,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:to,49:to,50:to,51:to,52:Qa,53:to,54:to,55:Qa,56:to,57:to,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:hu,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:ss,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:ss,79:rA,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:ss,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:Jo,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:ls,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:ls,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:dr,168:[0,.66786,.10474,0,.51111],176:Io,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:Ls,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Ls,710:Jo,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:Io,732:[0,.66786,.11585,0,.51111],733:hu,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:rA,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:ss,931:[0,.68333,.12028,0,.71555],933:lc,934:[0,.68333,.05986,0,.71555],936:lc,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:vs,8217:vs,8220:[0,.69444,.1685,0,.51444],8221:pu,8463:Tn},"Main-Regular":{32:dr,33:cl,34:Gs,35:fe,36:rl,37:Ce,38:bs,39:cl,40:mu,41:mu,42:Je,43:rs,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:Hl,48:tl,49:tl,50:tl,51:tl,52:tl,53:tl,54:tl,55:tl,56:tl,57:tl,58:bo,59:[.19444,.43056,0,0,.27778],60:Qn,61:_e,62:Qn,63:$t,64:bs,65:qc,66:[0,.68333,0,0,.70834],67:cc,68:[0,.68333,0,0,.76389],69:Pu,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:Us,76:Es,77:[0,.68333,0,0,.91667],78:qc,79:Us,80:Pu,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:cc,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:ro,92:Hl,93:ro,94:Gs,95:[.31,.12056,.02778,0,.5],97:cs,98:gu,99:EA,100:gu,101:EA,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:gu,105:$o,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:cl,109:[0,.43056,0,0,.83334],110:ya,111:cs,112:Ba,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:EA,123:Hl,124:ro,125:Hl,126:[.35,.31786,0,0,.5],160:dr,163:[0,.69444,0,0,.76909],167:nc,168:Do,172:[0,.43056,0,0,.66667],176:Zo,177:rs,182:eu,184:ff,198:[0,.68333,0,0,.90278],215:rs,216:[.04861,.73194,0,0,.77778],223:Gs,230:[0,.43056,0,0,.72222],247:rs,248:[.09722,.52778,0,0,.5],305:bo,338:[0,.68333,0,0,1.01389],339:uf,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:$o,730:Zo,732:Do,733:Gs,915:Es,916:_d,920:Us,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:qc,931:cc,933:Us,934:cc,936:Us,937:cc,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:cl,8217:cl,8220:Gs,8221:Gs,8224:nc,8225:nc,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:Tn,8465:Vc,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Vc,8501:Yo,8592:kn,8593:Xs,8594:kn,8595:Xs,8596:kn,8597:Hl,8598:vu,8599:vu,8600:vu,8601:vu,8614:[.011,.511,0,0,1],8617:wl,8618:wl,8636:kn,8637:kn,8640:kn,8641:kn,8652:[.011,.671,0,0,1],8656:kn,8657:eu,8658:kn,8659:eu,8660:kn,8661:[.25,.75,0,0,.61111],8704:gu,8706:[0,.69444,.05556,.08334,.5309],8707:gu,8709:rl,8711:_d,8712:nA,8715:nA,8722:rs,8723:rs,8725:Hl,8726:Hl,8727:Oo,8728:$u,8729:$u,8730:[.2,.8,0,0,.83334],8733:uf,8734:ui,8736:vi,8739:ro,8741:Hl,8743:Wc,8744:Wc,8745:Wc,8746:Wc,8747:[.19444,.69444,.11111,0,.41667],8764:_e,8768:[.19444,.69444,0,0,.27778],8771:GA,8773:[-.022,.589,0,0,1],8776:Dc,8781:GA,8784:[-.133,.67,0,0,.778],8801:GA,8804:jr,8805:jr,8810:Id,8811:Id,8826:Qn,8827:Qn,8834:Qn,8835:Qn,8838:jr,8839:jr,8846:Wc,8849:jr,8850:jr,8851:Wc,8852:Wc,8853:rs,8854:rs,8855:rs,8856:rs,8857:rs,8866:Yo,8867:Yo,8868:bs,8869:bs,8872:[.249,.75,0,0,.867],8900:$u,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:qo,8969:qo,8970:qo,8971:qo,8994:bc,8995:bc,9136:jl,9137:jl,9651:XA,9657:Oo,9661:XA,9667:Oo,9711:vu,9824:bu,9825:bu,9826:bu,9827:bu,9837:[0,.75,0,0,.38889],9838:Zu,9839:Zu,10216:mu,10217:mu,10222:jl,10223:jl,10229:[.011,.511,0,0,1.609],10230:Fd,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:Fd,10815:qc,10927:jr,10928:jr,57376:Md},"Math-BoldItalic":{32:dr,48:Vu,49:Vu,50:Vu,51:Wu,52:Wu,53:Wu,54:ti,55:Wu,56:ti,57:Wu,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:b0,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Fo,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:yu,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:Bh,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:dr,915:[0,.68611,.15972,0,.65694],916:mo,920:[0,.68611,.03194,0,.86722],923:Gu,926:[0,.68611,.07458,0,.84125],928:b0,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:iA,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:Bh,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:dr,48:cs,49:cs,50:cs,51:Ld,52:Ld,53:Ld,54:tl,55:Ld,56:tl,57:Ld,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:Sh,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:zf,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:_A,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:dr,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:zf,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:Sh,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:_A,960:[0,.43056,.03588,0,.57003],961:df,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:df,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:dr,33:[0,.69444,0,0,.36667],34:Zf,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:yc,40:xl,41:xl,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:Cl,49:Cl,50:Cl,51:Cl,52:Cl,53:Cl,54:Cl,55:Cl,56:Cl,57:Cl,58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:y0,64:Oc,65:Oc,66:Oc,67:IA,68:Nc,69:[0,.69444,0,0,.64167],70:Yo,71:Oc,72:Nc,73:[0,.69444,0,0,.33056],74:y0,75:Eh,76:Vo,77:[0,.69444,0,0,.97778],78:Nc,79:Nc,80:IA,81:[.10556,.69444,0,0,.79445],82:IA,83:Yo,84:Oc,85:Eh,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Oc,89:[0,.69444,.0275,0,.73334],90:JA,91:FA,93:FA,94:Cl,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:kd,99:[0,.45833,0,0,.48889],100:kd,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:kd,105:$p,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:$p,109:[0,.45833,0,0,.86667],110:tu,111:[0,.45833,0,0,.55],112:aA,113:aA,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:tu,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:dr,168:Cl,176:Oc,180:Cl,184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:Cl,711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:Cl,729:yc,730:Oc,732:Cl,733:Cl,915:Vo,916:[0,.69444,0,0,.91667],920:$f,923:JA,926:Oc,928:Nc,931:Nc,933:$f,934:Nc,936:$f,937:Nc,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:yc,8217:yc,8220:Zf,8221:Zf},"SansSerif-Italic":{32:dr,33:[0,.69444,.05733,0,.31945],34:C0,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:ed,40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:lt,45:[0,.44444,.01946,0,.33333],46:Bt,47:[.25,.75,.13164,0,.5],48:Pc,49:Pc,50:Pc,51:Pc,52:Pc,53:Pc,54:Pc,55:Pc,56:Pc,57:Pc,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:YA,73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:ur,77:[0,.69444,.08094,0,.875],78:YA,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:qA,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:dr,168:[0,.67937,.06385,0,.5],176:w0,184:ff,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:qA,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:x0,715:Gs,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:w0,732:[0,.67659,.08826,0,.5],733:x0,915:[0,.69444,.13372,0,.54167],916:Fn,920:[0,.69444,.07555,0,.77778],923:Yo,926:[0,.69444,.12816,0,.66667],928:YA,931:[0,.69444,.11983,0,.72222],933:zl,934:[0,.69444,.04603,0,.72222],936:zl,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:ed,8217:ed,8220:[0,.69444,.14205,0,.5],8221:C0},"SansSerif-Regular":{32:dr,33:[0,.69444,0,0,.31945],34:Gs,35:fe,36:rl,37:Ce,38:[0,.69444,0,0,.75834],39:cl,40:mu,41:mu,42:Je,43:rs,44:lt,45:[0,.44444,0,0,.33333],46:Bt,47:Hl,48:yt,49:yt,50:yt,51:yt,52:yt,53:yt,54:yt,55:yt,56:yt,57:yt,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:Kt,70:[0,.69444,0,0,.56945],71:zt,72:_r,73:cl,74:$t,75:[0,.69444,0,0,.69445],76:ur,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:gu,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:Yo,91:pr,93:pr,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:Nn,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:dr,168:[0,.67937,0,0,.5],176:zt,184:ff,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:ur,916:Fn,920:bs,923:Yo,926:zt,928:_r,931:Vc,933:bs,934:Vc,936:bs,937:Vc,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:cl,8217:cl,8220:Gs,8221:Gs},"Script-Regular":{32:dr,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:dr},"Size1-Regular":{32:dr,40:Bn,41:Bn,47:$n,91:Ui,92:$n,93:Ui,123:zi,125:zi,160:dr,710:fi,732:fi,770:fi,771:fi,8214:[-99e-5,.601,0,0,.77778],8593:na,8595:na,8657:wa,8659:wa,8719:Jn,8720:Jn,8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:ii,8748:mi,8749:mi,8750:ii,8896:Pn,8897:Pn,8898:Pn,8899:Pn,8968:ai,8969:ai,8970:ai,8971:ai,9168:Gc,10216:ai,10217:ai,10752:Vi,10753:Vi,10754:Vi,10756:Pn,10758:Pn},"Size2-Regular":{32:dr,40:Pa,41:Pa,47:ma,91:Wi,92:ma,93:Wi,123:Ia,125:Ia,160:dr,710:Ka,732:Ka,770:Ka,771:Ka,8719:es,8720:es,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:ys,8748:lo,8749:lo,8750:ys,8896:us,8897:us,8898:us,8899:us,8968:ga,8969:ga,8970:ga,8971:ga,10216:ol,10217:ol,10752:go,10753:go,10754:go,10756:us,10758:us},"Size3-Regular":{32:dr,40:ts,41:ts,47:ns,91:wc,92:ns,93:wc,123:oi,125:oi,160:dr,710:Gi,732:Gi,770:Gi,771:Gi,8730:[.95003,1.45,0,0,1],8968:$i,8969:$i,8970:$i,8971:$i,10216:oi,10217:oi},"Size4-Regular":{32:dr,40:Oi,41:Oi,47:yo,91:Ni,92:yo,93:Ni,123:ua,125:ua,160:dr,710:$a,732:$a,770:$a,771:$a,8730:[1.25003,1.75,0,0,1],8968:Va,8969:Va,8970:Va,8971:Va,9115:Fl,9116:nl,9117:Fl,9118:Fl,9119:nl,9120:Fl,9121:Rs,9122:Gc,9123:Rs,9124:Rs,9125:Gc,9126:Rs,9127:Tc,9128:Hn,9129:uc,9130:[0,.3,0,0,.88889],9131:Tc,9132:Hn,9133:uc,9143:[.88502,.915,0,0,1.05556],10216:ua,10217:ua,57344:MA,57345:MA,57680:co,57681:co,57682:co,57683:co},"Typewriter-Regular":{32:$l,33:hn,34:hn,35:hn,36:Mo,37:Mo,38:hn,39:hn,40:Mo,41:Mo,42:[0,.52083,0,0,.525],43:ul,44:[.13889,.125,0,0,.525],45:ul,46:[0,.125,0,0,.525],47:Mo,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:Mo,92:Mo,93:Mo,94:hn,95:[.09514,0,0,0,.525],96:hn,97:ia,98:hn,99:ia,100:hn,101:ia,102:hn,103:Bl,104:hn,105:hn,106:[.22222,.61111,0,0,.525],107:hn,108:hn,109:ia,110:ia,111:ia,112:Bl,113:Bl,114:ia,115:ia,116:[0,.55358,0,0,.525],117:ia,118:ia,119:ia,120:ia,121:Bl,122:ia,123:Mo,124:Mo,125:Mo,126:hn,127:hn,160:$l,176:hn,184:[.19445,0,0,0,.525],305:ia,567:Bl,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]}},xc=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,Sl=10,Al=.25,oA=1.2,Ml=.431,Qs={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[Ml,Ml,Ml],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]},El=[0,.5,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],il=5,ks={"\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 Cc(e,t){e===void 0&&(e=77);const r=Uc[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 ks)e=ks[i].codePointAt(0);else if(xc.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 wu={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]},Tu={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]},xu={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 hf(e){if(Tu[e]){const[J,ue,Pe]=Tu[e],nt=`<span class="stretchy" style="height:${Pe}em"><svg width="100%" height="${Pe}em" viewBox="0 0 ${J} ${ue}" preserveAspectRatio="none" ><path fill="currentcolor" d="${xu[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]=wu[e];let c,A;const k=i/1e3;t.length===3?(c=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],A=["xMinYMin","xMidYMin","xMaxYMin"]):t.length===2?(c=["slice-1-of-2","slice-2-of-2"],A=["xMinYMin","xMaxYMin"]):(c=["slice-1-of-1"],A=[s]);const j=t.map((J,ue)=>`<span class="${c[ue]}" style=height:${k}em><svg width=400em height=${k}em viewBox="0 0 400000 ${i}" preserveAspectRatio="${A[ue]} slice"><path fill="currentcolor" d="${xu[J]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${k}em;min-width:${r}em;">${j}</span>`}function Vf(e){return wu[e]?wu[e][2]/1e3:Tu[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,A=s-56320;i=Ch(2,16)+c*Ch(2,10)+A,r++}}t.push(i)}return t}var Wo=8205,Zl=[[Wo,1],[65038,2],[127995,5],[129456,4],[917536,96]],ds,Ll=[127462,127487];function Vl(e){var t;if(ds===void 0){ds={};for(const r of Zl)for(let i=r[0];i<=r[0]+r[1]-1;i++)ds[i]=!0}return(t=ds[e])!=null?t:!1}function Js(e){return e>=Ll[0]&&e<=Ll[1]}function Cu(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===Wo){const A=i-1;for(i+=2;r[i]===Wo;)i+=2;t.push(String.fromCodePoint(...r.slice(A,i-A+1)))}else if(Vl(c)){const A=i-1;for(;Vl(r[i]);)i+=r[i]===Wo?2:1;t.push(String.fromCodePoint(...r.slice(A,2*i-A-1)))}else Js(s)?(i+=1,t.push(String.fromCodePoint(...r.slice(i-2,2)))):t.push(String.fromCodePoint(s))}return t}var pf=class{constructor(e){this.obeyspaces=!1,this.pos=0,this.s=Cu(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 mf(e,t){var r,i,s,c;const A=[];let k=e.next();if(k&&k!=="\\relax"){if(k==="\\noexpand")k=e.next(),k&&A.push(k);else if(k==="\\obeyspaces")e.obeyspaces=!0;else if(k==="\\bgroup")A.push("<{>");else if(k==="\\egroup")A.push("<}>");else if(k==="\\string"){if(k=e.next(),k)if(k.startsWith("\\"))for(const j of k)A.push(j==="\\"?"\\backslash":j);else k==="<{>"?A.push("\\{"):k==="<space>"?A.push("~"):k==="<}>"&&A.push("\\}")}else if(k==="\\csname"){for(;e.peek()==="<space>";)e.next();let j="",J=!1,ue=[];do{if(ue.length===0)if(/^#[\d?@]$/.test(e.peek())){const Pe=e.get().slice(1);ue=td((i=(r=t==null?void 0:t(Pe))!=null?r:t==null?void 0:t("?"))!=null?i:"\\placeholder{}",t),k=ue[0]}else k=e.next(),ue=k?[k]:[];J=ue.length===0,!J&&k==="\\endcsname"&&(J=!0,ue.shift()),J||(J=k==="<$>"||k==="<$$>"||k==="<{>"||k==="<}>"||typeof k=="string"&&k.length>1&&k.startsWith("\\")),J||(j+=ue.shift())}while(!J);j&&A.push("\\"+j),A.push(...ue)}else if(k!=="\\endcsname")if(k.length>1&&k.startsWith("#")){const j=k.slice(1);A.push(...td((c=(s=t==null?void 0:t(j))!=null?s:t==null?void 0:t("?"))!=null?c:"\\placeholder{}",t))}else A.push(k)}return A}function td(e,t=null){const r=[];let i="";for(const A of e.toString().split(/\r?\n/)){i&&r.push(i),i=" ";const k=A.match(/((?:\\%)|[^%])*/);k!==null&&r.push(k[0])}const s=new pf(je(r.join(""))),c=[];do c.push(...mf(s,t));while(!s.end());return c}function uo(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 _s(e,...t){return console.assert(e.startsWith("\\")),t.length===0?e:uo([e,...t.map(r=>`{${r}}`)])}function Bu(e){return uo(e.map(t=>{var r;return(r={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[t])!=null?r:t}))}var Su=class gg{constructor(t){gg._registry[t]=this}static createAtom(t,r,i){return gg._registry[t].createAtom(r,ct(r,t),i)}static serialize(t,r){var i;if(!t||t.length===0)return"";if((i=r.skipStyles)!=null&&i){const s=[];for(const c of Wf(t)){const A=gg._registry[c[0].mode];s.push(...A.serialize(c,r))}return uo(s)}return uo(rd(t,r))}static getFont(t,r,i){return gg._registry[t].getFont(r,i)}};Su._registry={};var Wl=Su;function Wf(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 Uu(e,t){const r=[];let i=[],s;for(const c of e)if(c.type!=="first"&&c.style){let A;t==="variant"?(A=c.style.variant,c.style.variantStyle&&c.style.variantStyle!=="up"&&(A+="-"+c.style.variantStyle)):A=c.style[t],A===s?i.push(c):(i.length>0&&r.push(i),i=[c],s=A)}return i.length>0&&r.push(i),r}function Gf(e,t){var r;const{parent:i}=e[0],s=i==null?void 0:i.computedStyle.color,c=[];for(const A of Wf(e)){const k=t.defaultMode;for(const j of Uu(A,"color")){const J=j[0].computedStyle,ue=Wl._registry[j[0].mode].serialize(j,M(v({},t),{defaultMode:k==="text"?"text":"math"}));!t.skipStyles&&J.color&&J.color!=="none"&&(!i||s!==J.color)?c.push(_s("\\textcolor",(r=J.verbatimColor)!=null?r:J.color,uo(ue))):c.push(uo(ue))}}return c}function Xf(e,t){const{parent:r}=e[0],i=r==null?void 0:r.computedStyle.backgroundColor;return Uu(e,"backgroundColor").map(s=>{var c;if(s.length>0||s[0].type!=="box"){const A=s[0].computedStyle;if(A.backgroundColor&&A.backgroundColor!=="none"&&(!r||i!==A.backgroundColor))return _s("\\colorbox",(c=A.verbatimBackgroundColor)!=null?c:A.backgroundColor,uo(Gf(s,M(v({},t),{defaultMode:"text"}))))}return uo(Gf(s,t))})}function rd(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 Uu(e,"fontSize")){const A=c[0].computedStyle.fontSize,k=Xf(c,t);k&&(A&&A!=="auto"&&(!r||i!==A)?s.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][A],...k):s.push(...k))}return s}function Dd(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=Dd(e[0].type),r=Dd(e[e.length-1].type);return t&&t===r?t:"ord"}function nd(e,t){if(typeof e=="string")return e;if(typeof e=="number"){console.assert(Number.isFinite(e));const r=Math.ceil(100*e)/100;return r===0?"0":r.toString()+(t!=null?t:"")}return""}var zr=class O1{constructor(t,r){var i,s,c,A,k;if(typeof t=="number"?this.value=String.fromCodePoint(t):typeof t=="string"?this.value=t:_(t)?this.children=t.filter(J=>J!==null):t&&t instanceof O1&&(this.children=[t]),this.children)for(const J of this.children)J.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=Wl.getFont((A=r.mode)!=null?A:"math",this,M(v({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),_h(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=nd(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=nd(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"]=nd(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"]=nd(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"]=nd(t,"em")))}get width(){return this._width*this.scale}set width(t){this._width=t,this.hasExplicitWidth=!0}set softWidth(t){}get height(){return this._height*this.scale}set height(t){this._height=t}get depth(){return this._depth*this.scale}set depth(t){this._depth=t}wrap(t){const r=t.parent;if(!r)return this;t.isPhantom&&this.setStyle("opacity",0);const i=t.color;i&&i!==r.color&&this.setStyle("color",i);let s=t.backgroundColor;this.isSelected&&(s=ve(s)),s&&s!==r.backgroundColor&&(this.setStyle("background-color",s),this.setStyle("display","inline-block"));const c=t.scalingFactor;return this.scale=c,this.skew*=c,this.italic*=c,this}toMarkup(){var t,r,i,s;let c=(t=this.value)!=null?t:"";if(this.children)for(const bt of this.children)c+=bt.toMarkup();let A="";if(this.svgBody)A=hf(this.svgBody);else if(this.svgOverlay){A='<span style="',A+="display: inline-block;",A+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,A+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,A+='">',A+=c,A+="</span>",A+='<svg style="position:absolute;overflow:visible;',A+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const bt=(r=this.cssProperties)==null?void 0:r.padding;bt?(A+=`top:${bt};`,A+=`left:${bt};`,A+=`width:calc(100% - 2 * ${bt} );`):A+="top:0;left:0;width:100%;",A+="z-index:2;",A+='"',this.svgStyle&&(A+=this.svgStyle),A+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,A+=`>${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 J=j.length===1?j[0]:j.filter((bt,Et,Cr)=>bt.length>0&&Cr.indexOf(bt)===Et).join(" ");if(J.length>0&&(k+=` class="${J}"`),this.id&&(k+=` data-atom-id=${this.id}`),this.cssId&&(k+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(k+=" "+Object.keys(this.attributes).map(bt=>`${bt}="${this.attributes[bt]}"`).join(" ")),this.htmlData){const bt=this.htmlData.split(",");for(const Et of bt){const Cr=Et.match(/([^=]+)=(.+$)/);if(Cr){const _n=Cr[1].trim().replace(/ /g,"-");_n&&(k+=` data-${_n}="${Cr[2]}" `)}else{const _n=Et.trim().replace(/ /g,"-");_n&&(k+=` data-${_n} `)}}}const ue=(s=this.cssProperties)!=null?s:{};this.hasExplicitWidth&&ue.width===void 0&&(ue.width=`${Math.ceil(this._width*100)/100}em`);const Pe=Object.keys(ue).map(bt=>`${bt}:${ue[bt]}`);if(this.scale!==void 0&&this.scale!==1&&(c.length>0||A.length>0)&&Pe.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const bt=this.htmlStyle.split(";");let Et="";for(const Cr of bt){const _n=Cr.match(/([^=]+):(.+$)/);if(_n){const wr=_n[1].trim().replace(/ /g,"-");wr&&(Et+=`${wr}:${_n[2]};`)}}Et&&(k+=` style="${Et}"`)}Pe.length>0&&(k+=` style="${Pe.join(";")}"`);let nt="";return k.length>0||A.length>0?nt=`<span${k}>${c}${A}</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 A=this.classes.trim().replace(/\s+/g," ").split(" "),k=t.classes.trim().replace(/\s+/g," ").split(" ");if(A.length!==k.length)return!1;A.sort(),k.sort();for(const[j,J]of A.entries())if(J==="vertical-separator"||J!==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 Nd(e){if(!e||e.length===0)return[];e[0].children=Nd(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=Nd(e[r].children),t.push(e[r]));return t}function gf(e){return e.children&&(e.children=Nd(e.children)),e}function Jf(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,M(v({},t),{type:"lift"}))}function vf(e){const t=Vf(e)/2,r=new zr(null,{maxFontSize:0});return r.height=t+.166,r.depth=t-.166,r.svgBody=e,r}function _h(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=Cc(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 A of e.children)A.height>i&&(i=A.height),A.depth>s&&(s=A.depth),c=Math.max(c,(r=A.maxFontSize)!=null?r:0);e.height=i,e.depth=s,e._width=e.children.reduce((A,k)=>A+k.width,0),e.maxFontSize=c}}function Ih(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 A=1;A<t.length;A++){const k=t[A],j=-k.shift-c-k.box.depth,J=j-(r.box.height+r.box.depth);c=c+j,i.push(J),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 Yf(e){var t;const[r,i]=Ih(e);if(!r)return[[],0,0];const s=new zr(null,{classes:"pstrut"});let c=0;for(const Et of r)if(typeof Et!="number"){const Cr=Et.box;c=Math.max(c,Cr.maxFontSize,Cr.height)}c+=2,s.height=c,s.setStyle("height",c,"em");const A=[];let k=i,j=i,J=i,ue=0;for(const Et of r){if(typeof Et=="number")J+=Et;else{const Cr=Et.box,_n=(t=Et.classes)!=null?t:[],wr=new zr([s,Cr],{classes:_n.join(" "),style:Et.style});Cr.setStyle("height",Cr.height+Cr.depth,"em"),Cr.setStyle("display","inline-block"),wr.setStyle("top",-c-J-Cr.depth,"em"),Et.marginLeft&&wr.setStyle("margin-left",Et.marginLeft,"em"),Et.marginRight&&wr.setStyle("margin-right",Et.marginRight,"em"),A.push(wr),J+=Cr.height+Cr.depth,ue=Math.max(ue,wr.width)}k=Math.min(k,J),j=Math.max(j,J)}A.forEach(Et=>{Et.softWidth=ue});const Pe=new zr(A,{classes:"vlist"});if(Pe.softWidth=ue,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 bt=new zr(8203,{classes:"vlist-s",maxFontSize:0});return bt.softWidth=0,bt.height=0,bt.depth=0,[[new zr([Pe,bt],{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]=Yf(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((A,k)=>Math.max(A,k.width),0)}};function LA(e,t){var r,i,s,c,A;const k=e.metrics,j=new zr(t.base),J=(r=t.baseShift)!=null?r:0,ue=(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 bt=null;if(t.below&&t.above){const Et=k.bigOpSpacing5+t.below.height+t.below.depth+nt+j.depth+J;bt=new bl({bottom:Et,children:[k.bigOpSpacing5,{box:t.below,marginLeft:-ue,classes:["ML__center"]},nt,{box:j,classes:["ML__center"]},Pe,{box:t.above,marginLeft:ue,classes:["ML__center"]},k.bigOpSpacing5]}).wrap(e)}else if(t.below&&!t.above)bt=new bl({top:j.height-J,children:[k.bigOpSpacing5,{box:t.below,marginLeft:-ue,classes:["ML__center"]},nt,{box:j,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const Et=j.depth+J;bt=new bl({bottom:Et,children:[{box:j,classes:["ML__center"]},Pe,{box:t.above,marginLeft:ue,classes:["ML__center"]},k.bigOpSpacing5]}).wrap(e)}else{const Et=j.depth+J;bt=new bl({bottom:Et,children:[{box:j},k.bigOpSpacing5]}).wrap(e)}return new zr(bt,{type:(A=t.type)!=null?A:"op"})}var bf=7,id=6,yf=5,Ru=4,sA=3,fs=2,Rc=1,Gl=0,kA=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(Qs).reduce((s,c)=>M(v({},s),{[c]:Qs[c][i]}),{})}getFontSize(e){return Math.max(1,e+this.sizeDelta)}get sup(){return wo[[Gl,Rc,Gl,Rc,fs,sA,fs,sA][this.id]]}get sub(){return wo[[Gl,Gl,Gl,Gl,fs,fs,fs,fs][this.id]]}get fracNum(){return wo[[Gl,Rc,Gl,Rc,fs,sA,Ru,yf][this.id]]}get fracDen(){return wo[[Gl,Gl,Gl,Gl,fs,fs,Ru,Ru][this.id]]}get cramp(){return wo[[Gl,Gl,fs,fs,Ru,Ru,id,id][this.id]]}get isTight(){return this.sizeDelta<0}},Ao={7:new kA(bf,0,!1),6:new kA(id,0,!0),5:new kA(yf,0,!1),4:new kA(Ru,0,!0),3:new kA(sA,-3,!1),2:new kA(fs,-3,!0),1:new kA(Rc,-4,!1),0:new kA(Gl,-4,!0)},wo=M(v({},Ao),{displaystyle:Ao[bf],textstyle:Ao[yf],scriptstyle:Ao[sA],scriptscriptstyle:Ao[Rc]});function ru(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:Sl,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=Ch(10,t);return Math.round(e.dimension/Sl*i*s)/s}return e.dimension*i}function lA(e,t){if(e===null)return 0;const r=ru(e)/Sl;if(Number.isFinite(t)){const i=Ch(10,t);return Math.round(r*i)/i}return r}function Xu(e){var t;return`${e.dimension}${(t=e.unit)!=null?t:"pt"}`}function B0(e){let t=Xu(e.glue);return e.grow&&e.grow.dimension!==0&&(t+=` plus ${Xu(e.grow)}`),e.shrink&&e.shrink.dimension!==0&&(t+=` minus ${Xu(e.shrink)}`),t}function kl(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=B0(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 Eu(e,t){return e==null?null:"number"in e?M(v({},e),{number:e.number*t}):"register"in e?"factor"in e&&e.factor?M(v({},e),{factor:e.factor*t}):M(v({},e),{factor:t}):"dimension"in e?M(v({},e),{dimension:e.dimension*t}):"glue"in e?e.shrink&&e.grow?{glue:Eu(e.glue,t),shrink:Eu(e.shrink,t),grow:Eu(e.grow,t)}:e.shrink?{glue:Eu(e.glue,t),shrink:Eu(e.shrink,t)}:e.grow?{glue:Eu(e.glue,t),grow:Eu(e.grow,t)}:{glue:Eu(e.glue,t)}:null}var Fh={"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 qf(){return v({},Fh)}function S0(){return{registers:qf(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:ee.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Ue,backgroundColorMap:q,getMacro:e=>Tt(e,rt())}}var So=class N1{constructor(t,r){var i,s,c,A,k,j,J,ue,Pe,nt,bt,Et,Cr,_n,wr;let nn;t!=null&&t.parent?(this.parent=t.parent,nn=t.parent,this.registers={}):(nn=v(v({},S0()),(i=t==null?void 0:t.from)!=null?i:{}),this.registers=nn.registers),nn.atomIdsSettings&&(this.atomIdsSettings=v({},nn.atomIdsSettings)),this.renderPlaceholder=nn.renderPlaceholder,this.isPhantom=(A=(c=t==null?void 0:t.isPhantom)!=null?c:(s=this.parent)==null?void 0:s.isPhantom)!=null?A:!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=(ue=(J=this.parent)==null?void 0:J.backgroundColor)!=null?ue:"",r!=null&&r.fontSize&&r.fontSize!=="auto"&&r.fontSize!==((Pe=this.parent)==null?void 0:Pe.size)?this.size=r.fontSize:this.size=(bt=(nt=this.parent)==null?void 0:nt.size)!=null?bt:il;let Mn=(Cr=(Et=this.parent)==null?void 0:Et.mathstyle)!=null?Cr:wo.displaystyle;if(typeof(t==null?void 0:t.mathstyle)=="string"){if(nn instanceof N1)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=wo.textstyle;break;case"displaystyle":Mn=wo.displaystyle;break;case"scriptstyle":Mn=wo.scriptstyle;break;case"scriptscriptstyle":Mn=wo.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Mn,this.smartFence=nn.smartFence,this.placeholderSymbol=nn.placeholderSymbol,this.colorMap=(_n=nn.colorMap)!=null?_n:cn=>cn,this.backgroundColorMap=(wr=nn.backgroundColorMap)!=null?wr:cn=>cn,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===bf||this.mathstyle.id===id}get isCramped(){return this.mathstyle.cramped}get isTight(){return this.mathstyle.isTight}get metrics(){return this.mathstyle.metrics}get effectiveFontSize(){return Math.max(El[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 lA(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?M(v({},c),{dimension:i*c.dimension}):"glue"in c?M(v({},c),{glue:M(v({},c.glue),{dimension:i*c.glue.dimension}),shrink:c.shrink?M(v({},c.shrink),{dimension:i*c.shrink.dimension}):void 0,grow:c.grow?M(v({},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:ru(i,r)/Sl}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}},wf=["body","above","below","superscript","subscript"];function Pd(e){return typeof e=="string"&&wf.includes(e)}function eh(e){return e!==void 0&&Array.isArray(e)&&e.length===2}var Ur=class g0{constructor(t){var r,i,s,c,A,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=v({},t.style),this.displayContainsHighlight=(c=t.displayContainsHighlight)!=null?c:!1,this.captureSelection=(A=t.captureSelection)!=null?A:!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),A=[];for(const j of c){const J=j[0].style,ue=Om(t,j,{style:{color:J.color,backgroundColor:J.backgroundColor,fontSize:J.fontSize}});ue&&A.push(ue)}if(A.length===0)return null;const k=((s=i==null?void 0:i.classes)!=null?s:"").trim();return A.length===1&&!k&&!(i!=null&&i.type)?A[0].wrap(t):new zr(A,{classes:k,type:i==null?void 0:i.type}).wrap(t)}static serialize(t,r){return Wl.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 g0({type:"mord",value:t,mode:"math"}):new g0(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=v({},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=_0(this.args)),this._branches)for(const r of Object.keys(this._branches))this._branches[r]&&(t[r]=this._branches[r].filter(i=>i.type!=="first").map(i=>i.toJson()));return t.type==="mord"&&Object.keys(t).length===2&&"value"in t?t.value:t}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(t){if(t){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:r}=this;for(;r;)r.parent||r._changeCounter++,"verbatimLatex"in r&&(r.verbatimLatex=void 0),r._children=void 0,r=r.parent}}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):this.body&&this.command?uo([_s(this.command,this.bodyToLatex(t)),this.supsubToLatex(t)]):this.body?uo([this.bodyToLatex(t),this.supsubToLatex(t)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(t){var r;return Wl.serialize(this.body,M(v({},t),{defaultMode:(r=t.defaultMode)!=null?r:this.latexMode}))}aboveToLatex(t){return Wl.serialize(this.above,t)}belowToLatex(t){return Wl.serialize(this.below,t)}supsubToLatex(t){let r="";if(t=M(v({},t),{defaultMode:"math"}),this.branch("subscript")!==void 0){const i=Wl.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=Wl.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(Pd(t)&&this._branches)return this._branches[t]}get branches(){if(!this._branches)return[];const t=[];for(const r of wf)this._branches[r]&&t.push(r);return t}createBranch(t){return console.assert(Pd(t)),Pd(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 eh(this.parentBranch)?this.parentBranch[0]:-1}get col(){return eh(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=v(v({},(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=v(v({},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(Pd(r)),!Pd(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 g0({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(Pd(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 wf)if(this._branches[r])for(const i of this._branches[r])t.push(...i.children),t.push(i);return this._children=t,t}render(t){if(this.type==="first"&&!t.atomIdsSettings)return null;const r=ct(this.command,this.mode);if(r!=null&&r.render)return r.render(this,t);const i=new So({parent:t},this.style);let s=this.createBox(i,{classes:this.parent?"":"ML__base"});return s?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(s=this.attachSupsub(i,{base:s})),s.wrap(i)):null}attachSupsub(t,r){var i;const s=r.base,c=this.superscript,A=this.subscript;if(!c&&!A)return s;let k=null,j=null;const J=(i=r.isCharacterBox)!=null?i:this.isCharacterBox();let ue=0;if(c){const Cr=new So({parent:t,mathstyle:"superscript"});k=g0.createBox(Cr,c),J||(ue=s.height-t.metrics.supDrop*Cr.scalingFactor)}let Pe=0;if(A){const Cr=new So({parent:t,mathstyle:"subscript"});j=g0.createBox(Cr,A),J||(Pe=s.depth+t.metrics.subDrop*Cr.scalingFactor)}let nt;t.isDisplayStyle?nt=t.metrics.sup1:t.isCramped?nt=t.metrics.sup3:nt=t.metrics.sup2;const bt=.5/Sl/t.scalingFactor;let Et=null;if(j&&k){ue=Math.max(ue,nt,k.depth+.25*t.metrics.xHeight),Pe=Math.max(Pe,t.metrics.sub2);const Cr=t.metrics.defaultRuleThickness;if(ue-k.depth-(j.height-Pe)<4*Cr){Pe=4*Cr-(ue-k.depth)+j.height;const wr=.8*t.metrics.xHeight-(ue-k.depth);wr>0&&(ue+=wr,Pe-=wr)}const _n=this.isExtensibleSymbol&&s.italic?-s.italic:0;Et=new bl({individualShift:[{box:j,shift:Pe,marginLeft:_n},{box:k,shift:-ue}]}).wrap(t)}else j&&!k?(Pe=Math.max(Pe,t.metrics.sub1,j.height-.8*Ml),Et=new bl({shift:Pe,children:[{box:j,marginRight:bt,marginLeft:this.isCharacterBox()?-s.italic:0}]})):!j&&k&&(ue=Math.max(ue,nt,k.depth+.25*Ml),Et=new bl({shift:-ue,children:[{box:k,marginRight:bt}]}));return new zr([s,new zr(Et,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:r.type})}attachLimits(t,r){const i=this.superscript?g0.createBox(new So({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,s=this.subscript?g0.createBox(new So({parent:t,mathstyle:"subscript"},this.style),this.subscript):null;return!i&&!s?r.base.wrap(t):LA(t,M(v({},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,A;const k=(i=this.value)!=null?i:this.body,j=(s=r==null?void 0:r.boxType)!=null?s:Dd(this.type);let J=(c=r==null?void 0:r.classes)!=null?c:"";this.mode==="text"&&(J+=" ML__text");const ue=typeof k=="string"||k===void 0?new zr(k!=null?k:null,{type:j,isSelected:this.isSelected,mode:this.mode,maxFontSize:t.scalingFactor,style:M(v({variant:"normal"},this.style),{fontSize:Math.max(1,t.size+t.mathstyle.sizeDelta)}),letterShapeStyle:t.letterShapeStyle,classes:J}):(A=g0.createBox(t,k,{type:j,classes:J}))!=null?A:new zr(null);return t.isTight&&(ue.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(ue.italic=0),ue.right=ue.italic,this.bind(t,ue),this.caret&&!this.superscript&&!this.subscript&&(ue.caret=this.caret),ue}isDigit(){var t;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((t=this.body)==null?void 0:t.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var t;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((t=this.body)==null?void 0:t.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function Dm(e){let t;const r=[];let i=[];for(const s of e)if(!t&&!s.style)i.push(s);else{const c=s.computedStyle;t&&c.color===t.color&&c.backgroundColor===t.backgroundColor&&c.fontSize===t.fontSize?i.push(s):(i.length>0&&r.push(i),i=[s],t=c)}return i.length>0&&r.push(i),r}function Om(e,t,r){var i,s,c,A,k;if(!t||t.length===0)return null;const j=new So({parent:e},r.style),J=!((i=j.atomIdsSettings)!=null&&i.groupNumbers);let ue=[];if(t.length===1){const nt=t[0],bt=nt.render(j);bt&&(J&&nt.isSelected&&bt.selected(!0),ue=[bt])}else{let nt="",bt=!0;for(const Et of t){(s=j.atomIdsSettings)!=null&&s.groupNumbers&&nt&&(bt&&Et.isDigit()||!bt&&E0(Et))&&(j.atomIdsSettings.overrideID=nt);const Cr=Et.render(j);j.atomIdsSettings&&(j.atomIdsSettings.overrideID=void 0),Cr&&((c=j.atomIdsSettings)!=null&&c.groupNumbers&&((Et.isDigit()||E0(Et))&&(!nt||bt!==Et.isDigit())&&(bt=Et.isDigit(),nt=(A=Et.id)!=null?A:""),nt&&(!(Et.isDigit()||E0(Et))||!Et.hasEmptyBranch("superscript")||!Et.hasEmptyBranch("subscript"))&&(nt="")),J&&Et.isSelected&&Cr.selected(!0),ue.push(Cr))}}if(ue.length===0)return null;const Pe=new zr(ue,M(v({isTight:j.isTight},r),{type:(k=r.type)!=null?k:"lift"}));return Pe.isSelected=ue.every(nt=>nt.isSelected),Pe.wrap(j)}function E0(e){return e.mode==="text"}function _0(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 Td=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:Pt("text",this.value.codePointAt(0))}};function Mh(e,t){if(e.direction===t.direction){const r=e.ranges.length;if(t.ranges.length===r){let i=0;for(;i<r&&I0(e.ranges[i],t.ranges[i])==="equal";)i++;return i===r?"equal":"different"}}return"different"}function I0(e,t){return e[0]===t[0]&&e[1]===t[1]?"equal":"different"}function Xl(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 ad(e){return typeof e=="number"&&!Number.isNaN(e)}function th(e){return Array.isArray(e)&&e.length===2}function Lh(e){return e!=null&&typeof e=="object"&&"ranges"in e&&Array.isArray(e.ranges)}function kh(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 rh(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,A=!1,k=!1,j=!1,J=!1,ue=!1,Pe=!1,nt=!1,bt=!1,Et=!1,Cr=!1,_n=!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&&(Cr=wr.mode==="text",i=!Cr&&wr.type==="mord"&&m.test(wr.value),s=!Cr&&wr.type==="mord"&&/\d+$/.test(wr.value),c=!Cr&&wr.isFunction,A=wr.type==="genfrac",k=wr.type==="surd",j=wr.type==="mbin",J=wr.type==="mrel",ue=wr.type==="mop"||wr.type==="operator"||wr.type==="extensible-symbol",Pe=wr.type==="mpunct"||wr.type==="minner",nt=wr.type==="array",bt=wr.type==="mopen",Et=wr.type==="mclose"||wr.type==="leftright",_n=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")&&A||t.after.includes("surd")&&k||t.after.includes("binop")&&j||t.after.includes("relop")&&J||t.after.includes("operator")&&ue||t.after.includes("punct")&&Pe||t.after.includes("array")&&nt||t.after.includes("openfence")&&bt||t.after.includes("closefence")&&Et||t.after.includes("text")&&Cr||t.after.includes("space")&&_n?t.value:""}function F0(e,t,r){return r?rh(e,r[t]):""}var fp={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 M0(e,t){var r;let i=(r=t==null?void 0:t.format)!=null?r:"auto";return i==="auto"&&([i,e]=Nm(e)),i==="ascii-math"?(e=e.replace(/\u2061/gu,""),e=e.replace(/\u3016/gu,"{"),e=e.replace(/\u3017/gu,"}"),e=e.replace(/([^\\])sinx/g,"$1\\sin x"),e=e.replace(/([^\\])cosx/g,"$1\\cos x "),e=e.replace(/\u2013/g,"-"),["ascii-math",nu(e,{inlineShortcuts:t==null?void 0:t.inlineShortcuts})]):["latex",e]}function nu(e,t){var r,i,s;if(!e)return"";let c=!1,A;const k=(r=t.inlineShortcuts)!=null?r:fp;if(!c&&(e.startsWith("^")||e.startsWith("_"))&&(A=Ud(e.slice(1),{inlineShortcuts:k,noWrap:!0}),e=e[0]+"{"+A.match+"}",e+=nu(A.rest,t),c=!0),c||(A=e.match(/^(sqrt|\u221A)(.*)/),A&&(A=Ud(A[2],{inlineShortcuts:k,noWrap:!0}),e="\\sqrt{"+((i=A.match)!=null?i:"\\placeholder{}")+"}",e+=nu(A.rest,t),c=!0)),c||(A=e.match(/^(\\cbrt|\u221B)(.*)/),A&&(A=Ud(A[2],{inlineShortcuts:k,noWrap:!0}),e="\\sqrt[3]{"+((s=A.match)!=null?s:"\\placeholder{}")+"}",e+=nu(A.rest,t),c=!0)),c||(A=e.match(/^abs(.*)/),A&&(A=Ud(A[1],{inlineShortcuts:k,noWrap:!0}),e="\\left|"+A.match+"\\right|",e+=nu(A.rest,t),c=!0)),c||(A=e.match(/^["”“](.*?)["”“](.*)/),A&&(e="\\text{"+A[1]+"}",e+=nu(A[2],t),c=!0)),c||(A=e.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),A&&(e=xf(A[1],k),e+=nu(A[2],t),c=!0)),!c&&/^([fgh])[^a-zA-Z]/.test(e)&&(A=Ud(e.slice(1),{inlineShortcuts:k,noWrap:!0}),e=e[1]==="("?e[0]+"\\left("+A.match+"\\right)":e[0]+A.match,e+=nu(A.rest,t),c=!0),c||(A=e.match(/^([a-zA-Z]+)(.*)/),A&&(e=xf(A[1],k),e+=nu(A[2],t),c=!0)),!c)if(A=Ud(e,{inlineShortcuts:k,noWrap:!0}),A.match&&A.rest[0]==="/"){const j=Ud(A.rest.slice(1),{inlineShortcuts:k,noWrap:!0});j.match&&(e="\\frac{"+A.match+"}{"+j.match+"}"+nu(j.rest,t)),c=!0}else A.match&&(e=e.startsWith("(")?"\\left("+A.match+"\\right)"+nu(A.rest,t):A.match+nu(A.rest,t),c=!0);return c||(A=e.match(/^(\s+)(.*)$/),A&&(e=" "+nu(A[2],t),c=!0)),e}function Ud(e,t){let r="";e=e.trim();let i=e,s=e.charAt(0),c={"(":")","{":"}","[":"]"}[s];if(c){let A=1,k=1;for(;k<e.length&&A>0;)e[k]===s&&A++,e[k]===c&&A--,k++;A===0?(t.noWrap&&s==="("?r=nu(e.substring(1,k-1),t):(s==="{"&&c==="}"&&(s="\\{",c="\\}"),r="\\left"+s+nu(e.substring(1,k-1),t)+"\\right"+c),i=e.slice(Math.max(0,k))):(r=e.substring(1,k),i="")}else{let A=e.match(/^([a-zA-Z]+)/);if(A){let k=F0(null,e,t.inlineShortcuts);if(k)return k=k.replace("_{#?}",""),k=k.replace("^{#?}",""),{match:k,rest:e.slice(k.length)}}if(A=e.match(/^([a-zA-Z])/),A)return{match:A[1],rest:e.slice(1)};if(A=e.match(/^(-)?\d+(\.\d*)?/),A)return{match:A[0],rest:e.slice(A[0].length)};/^\\(left|right)/.test(e)||(A=e.match(/^(\\[a-zA-Z]+)/),A&&(i=e.slice(A[1].length),r=A[1]))}return{match:r,rest:i}}function xf(e,t){let r=F0(null,e,t);return r?(r=r.replace("_{#?}",""),r=r.replace("^{#?}",""),r+=" "):r=e,r}var L0=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function nh(e){const t=e.trim();for(const r of L0)if(t.startsWith(r[0])&&t.endsWith(r[1]))return[!0,t.substring(r[0].length,t.length-r[1].length)];return[!1,e]}function Nm(e){if(e=e.trim(),e.length<=1)return["latex",e];let t;return[t,e]=nh(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)=>(L0.some(i=>t.startsWith(i[0])&&t.endsWith(i[1]))||(t=`${Pm} ${t} ${Tm}`),t),hp=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 A=new DataTransfer;A.setData("text/plain",i),i=A}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]:Xl(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]:Xl(s.selection);let A=s.getAtoms(c);if(A.every(k=>k.mode==="text"||!k.mode))r.clipboardData.setData("text/plain",A.filter(k=>k instanceof Td).map(k=>k.value).join(""));else if(A.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;A.length===1&&A[0].verbatimLatex!==void 0?k=A[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(A.length===1){const j=A[0];(j.type==="root"||j.type==="group")&&(A=j.body.filter(J=>J.type!=="first"))}try{r.clipboardData.setData("application/json+mathlive",JSON.stringify(A.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 J=j.jsonSerializationOptions;j.jsonSerializationOptions={metadata:["latex"]};const ue=j.parse(s.getValue(c,"latex-unstyled"));j.jsonSerializationOptions=J;const Pe=JSON.stringify(ue.json);Pe&&r.clipboardData.setData("application/json",Pe)}catch(J){}}}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}};hp._modes={};var Ds=hp,Zp=[{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","^"]}],Vp={"\\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 od(e){var t;return((t=e.element)==null?void 0:t.mathfield)===e}function Wp(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 ih(e){const t=Wp(e);if(!t)return null;const r=t.getBoundingClientRect();return{x:r.right,y:r.bottom,height:r.height}}function pp(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 ah(e,t,r){if(!t)return null;const i=e.field.getBoundingClientRect(),s=t.right-t.left,c=t.bottom-t.top,A=Math.ceil(t.left-i.left+e.field.scrollLeft*r),k=Math.ceil(t.top-i.top);return{left:A,right:A+s,top:k,bottom:k+c}}function Dh(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=Dh(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 oh(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?Dh(c):null,e.atomBoundsCache&&(s?e.atomBoundsCache.set(t.id,s):e.atomBoundsCache.delete(t.id)),s!=null?s:null}function Gp(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,A=c.offsetWidth;let j=Math.floor(c.getBoundingClientRect().width)/A;j=isNaN(j)?1:j;const J=ah(e,oh(e,s),j);if(J){const ue=pp(s);if(i.has(ue)){const Pe=i.get(ue);i.set(ue,{left:Math.min(Pe.left,J.left),right:Math.max(Pe.right,J.right),top:Math.min(Pe.top,J.top),bottom:Math.max(Pe.bottom,J.bottom)})}else i.set(ue,J)}}return[...i.values()]}function Rm(e,t){return e.model.selection.ranges.reduce((r,i)=>r.concat(...Gp(e,i,t)),[])}function Oh(e,t){return e==="*"||t==="none"?!0:t==="same-origin"?!window.origin||e===window.origin:typeof t=="function"?t(e):!1}function k0(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;
}
`,Xp=`.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);
}
`,Cf=`#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;
}
`,Dl=`/* 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);*/
}
`,Rd=`.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));
}
`,Bf=`: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;
}
`,sd=`.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 cA(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=Xp;break;case"mathfield":t=Qm;break;case"environment-popover":t=Cf;break;case"suggestion-popover":t=Km;break;case"keystroke-caption":t=Dl;break;case"virtual-keyboard":t=Rd;break;case"ui":t=Bf;break;case"menu":t=sd;break;default:debugger}return t}function _u(e){return Xc||(Xc={}),Xc[e]||(Xc[e]=new CSSStyleSheet,Xc[e].replaceSync(cA(e))),Xc[e]}var DA;function ld(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(cA(e))),window.document.head.appendChild(r);return}if(DA||(DA={}),((t=DA[e])!=null?t:0)!==0)DA[e]+=1;else{const r=_u(e);document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],DA[e]=1}}function cd(e){if("adoptedStyleSheets"in document&&DA!=null&&DA[e]&&(DA[e]-=1,DA[e]<=0)){const t=Xc[e];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r!==t)}}var sh=class T1 extends Ur{constructor(t){var r;super(M(v({},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 M(v({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(t){var r;const i=new So({parent:t,mathstyle:"cramp"},this.style),s=(r=Ur.createBox(i,this.body))!=null?r:new zr("\u25A2",{style:this.style});let c=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(c=s.skew);let A=Math.min(s.height,Ml),k;if(this.svgAccent)k=vf(this.svgAccent),A=i.metrics.bigOpSpacing1-A;else if(this.accent){const J=new zr(this.accent,{fontFamily:"Main-Regular"});J.italic=0;const ue=this.accent===8407?" ML__accent-vec":"";k=new zr(new zr(J),{classes:"ML__accent-body"+ue})}k=new bl({shift:0,children:[{box:new zr(s)},-A,{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})}},Qd={"(":")","{":"}","[":"]","|":"|","\\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"},Nh=Object.fromEntries(Object.entries(Qd).map(([e,t])=>[t,e]));function D0(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 Ph(e,t,r,i){var s;const A=new zr(D0(e),{fontFamily:"Main-Regular",isSelected:i.isSelected,classes:"ML__small-delim "+((s=i.classes)!=null?s:"")}).wrap(t);return r&&A.setTop((1-t.scalingFactor)*Al),A}function Jp(e,t,r,i,s){var c,A;const k=new So({parent:i,mathstyle:"textstyle"},s==null?void 0:s.style),j=new zr(D0(e),{fontFamily:`Size${t}-Regular`,isSelected:s.isSelected,classes:((c=s.classes)!=null?c:"")+` ML__delim-size${t}`,type:(A=s.type)!=null?A:"ignore"}).wrap(k);return r&&j.setTop((1-k.scalingFactor)*Al),j}function mp(e,t,r,i,s){var c;let A,k,j,J;A=j=J=D0(e),k=null;let ue="Size1-Regular";e==="\\vert"||e==="\\lvert"||e==="\\rvert"||e==="\\mvert"||e==="\\mid"?j=A=J=8739:e==="\\Vert"||e==="\\lVert"||e==="\\rVert"||e==="\\mVert"||e==="\\|"?j=A=J=8741:e==="\\uparrow"?j=J=9168:e==="\\Uparrow"?j=J=8214:e==="\\downarrow"?A=j=9168:e==="\\Downarrow"?A=j=8214:e==="\\updownarrow"?(A=8593,j=9168,J=8595):e==="\\Updownarrow"?(A=8657,j=8214,J=8659):e==="["||e==="\\lbrack"?(A=9121,j=9122,J=9123,ue="Size4-Regular"):e==="]"||e==="\\rbrack"?(A=9124,j=9125,J=9126,ue="Size4-Regular"):e==="\\lfloor"||e==="\u230A"?(j=A=9122,J=9123,ue="Size4-Regular"):e==="\\lceil"||e==="\u2308"?(A=9121,j=J=9122,ue="Size4-Regular"):e==="\\rfloor"||e==="\u230B"?(j=A=9125,J=9126,ue="Size4-Regular"):e==="\\rceil"||e==="\u2309"?(A=9124,j=J=9125,ue="Size4-Regular"):e==="("||e==="\\lparen"?(A=9115,j=9116,J=9117,ue="Size4-Regular"):e===")"||e==="\\rparen"?(A=9118,j=9119,J=9120,ue="Size4-Regular"):e==="\\{"||e==="\\lbrace"?(A=9127,k=9128,J=9129,j=9130,ue="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(A=9131,k=9132,J=9133,j=9130,ue="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(A=9127,J=9129,j=9130,ue="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(A=9131,J=9133,j=9130,ue="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(A=9127,J=9133,j=9130,ue="Size4-Regular"):e==="\\rmoustache"||e==="\u23B1"?(A=9131,J=9129,j=9130,ue="Size4-Regular"):e==="\\surd"?(A=57345,J=9143,j=57344,ue="Size4-Regular"):e==="\\ulcorner"?(A=9484,j=J=32):e==="\\urcorner"?(A=9488,j=J=32):e==="\\llcorner"?(J=9492,j=A=32):e==="\\lrcorner"&&(A=9496,j=A=32);const Pe=Cc(A,ue),nt=Pe.height+Pe.depth,bt=Cc(j,ue),Et=bt.height+bt.depth,Cr=Cc(J,ue),_n=Cr.height+Cr.depth;let wr=0,nn=1;if(k!==null){const Ge=Cc(k,ue);wr=Ge.height+Ge.depth,nn=2}const Mn=nt+_n+wr,cn=Math.max(0,Math.ceil((t-Mn)/(nn*Et))),Bi=Mn+cn*nn*Et;let ra=Al;r&&(ra=ra*i.scalingFactor);const Hi=Bi/2-ra,p=.008,B=[];B.push({box:new zr(J,{fontFamily:ue})}),B.push(-p);const U=new zr(j,{fontFamily:ue});if(k===null)for(let Ge=0;Ge<cn;Ge++)B.push({box:U});else{for(let Ge=0;Ge<cn;Ge++)B.push({box:U});B.push(-p),B.push({box:new zr(k,{fontFamily:ue})}),B.push(-p);for(let Ge=0;Ge<cn;Ge++)B.push({box:U})}B.push(-p),B.push({box:new zr(A,{fontFamily:ue})});let ge="";ue==="Size1-Regular"?ge=" delim-size1":ue==="Size4-Regular"&&(ge=" delim-size4");const Ke=new bl({bottom:Hi,children:B},{classes:ge});return new zr(Ke,M(v({},s!=null?s:{}),{classes:((c=s==null?void 0:s.classes)!=null?c:"")+" ML__delim-mult"}))}var Yp=new Set(["(",")","\\lparen","\\rparen","[","]","\\lbrack","\\rbrack","\\{","\\}","\\lbrace","\\rbrace","\\lfloor","\\rfloor","\\lceil","\\rceil","\\surd","\u230A","\u230B","\u2308","\u2309"]),Th=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==="."?ch(r,i.classes):(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),Yp.has(e)||Hm.has(e)?Jp(e,t,!1,r,i):Th.has(e)?mp(e,O0[t],!1,r,i):(console.assert(!1,"Unknown delimiter '"+e+"'"),null))}var qp=[{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}],em=[{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"scriptscriptstyle"},{type:"small",mathstyle:"textstyle"},{type:"stack"}],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},{type:"stack"}];function rm(e){return e.type==="small"?"Main-Regular":e.type==="large"?"Size"+e.size+"-Regular":(console.assert(e.type==="stack"),"Size4-Regular")}function gp(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 A=Cc(e,rm(r[c]));if(A.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let k=A.height+A.depth;if(r[c].type==="small"&&(r[c].mathstyle==="scriptscriptstyle"?k*=Math.max(El[Math.max(1,i.size-2)],i.minFontScale):r[c].mathstyle==="scriptstyle"&&(k*=Math.max(El[Math.max(1,i.size-1)],i.minFontScale))),k>t)return r[c]}return r[r.length-1]}function Sf(e,t,r,i,s,c){if(!t||t.length===0||t===".")return ch(s);t==="<"||t==="\\lt"?t="\\langle":(t===">"||t==="\\gt")&&(t="\\rangle");let A;Hm.has(t)?A=qp:Yp.has(t)?A=tm:A=em;const k=gp(D0(t),r,A,s),j=new So({parent:s,mathstyle:k.mathstyle},c==null?void 0:c.style);return k.type==="small"?Ph(t,j,i,M(v({},c),{type:e})):k.type==="large"?Jp(t,k.size,i,j,M(v({},c),{type:e})):(console.assert(k.type==="stack"),mp(t,r,i,j,M(v({},c),{type:e})))}function lh(e,t,r,i,s,c){if(t===".")return ch(s,c==null?void 0:c.classes);const A=Al*s.scalingFactor,k=901,j=5/Sl,J=Math.max(r-A,i+A),ue=Math.max(J/500*k,2*J-j);return Sf(e,t,ue,!0,s,c)}function ch(e,t){const r=new zr(null,{classes:" nulldelimiter "+(t!=null?t:""),type:"ignore"});return r.width=e.getRegisterAsEm("nulldelimiterspace"),r.wrap(new So({parent:e,mathstyle:"textstyle"}))}var OA=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{}"}},vp=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],Iu=["cases","dcases","rcases"],N0=["align","align*","aligned","gather","gathered","split"],nm=["array","subequations","eqnarray"];function bp(e){return nm.concat(N0).concat(Iu).concat(vp).includes(e)}function Uh(e){return vp.includes(e)}function Rh(e){return Iu.includes(e)}function zm(e){return N0.includes(e)}function yp(e,t,r){let i=0;for(const J of r)"align"in J&&(i+=1);let s=0;const c=[];for(const J of t){let ue=0;for(s=Math.max(s,Math.min(J.length,i));ue<J.length;){const Pe=[],nt=Math.min(J.length,ue+i);for(;ue<nt;){const bt=J[ue];bt.length===0?Pe.push([new Ur({type:"first",mode:e.mode})]):bt[0].type!=="first"?Pe.push([new Ur({type:"first",mode:e.mode}),...bt]):(console.assert(!bt.slice(1).some(Et=>Et.type==="first")),Pe.push(bt)),ue+=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 A=[];for(const J of c){if(J.length!==s)for(let ue=J.length;ue<s;ue++)J.push([new Ur({type:"first",mode:e.mode}),new OA]);A.push(J)}let k=0,j=0;for(const J of A){j=0;for(const ue of J){for(const Pe of ue)Pe.parent=e,Pe.parentBranch=[k,j];j+=1}k+=1}return e.isDirty=!0,A}var hs=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=yp(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=M(v({},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(eh(t))return(r=this.array[t[0]][t[1]])!=null?r:void 0}createBranch(t){var r;return eh(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(Pd(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,A,k;const j=new So({parent:t,mathstyle:this.mathstyleName},this.style),J=j.getRegisterAsEm("arrayrulewidth"),ue=j.getRegisterAsEm("arraycolsep"),Pe=j.getRegisterAsEm("doublerulesep"),nt=(i=(r=this.arraystretch)!=null?r:j.getRegisterAsNumber("arraystretch"))!=null?i:1;let bt=typeof this.arraycolsep=="number"?this.arraycolsep:ue;this.colSeparationType==="small"&&(bt=.2778*(new So({parent:t,mathstyle:"scriptstyle"}).scalingFactor/t.scalingFactor));const Et=nt*oA,Cr=.7*Et,_n=.3*Et;let wr=0;const nn=[];let Mn=0;const cn=this.array.length;for(let ft=0;ft<cn;++ft){const Ht=this.array[ft];Mn=Math.max(Mn,Ht.length);const vr=new So({parent:j,mathstyle:this.mathstyleName},this.style);let Ct=Cr/vr.scalingFactor,ir=_n/vr.scalingFactor;const mr={cells:[],height:0,depth:0,pos:0};for(const Br of Ht){const ln=(s=Ur.createBox(vr,Br,{type:"ignore"}))!=null?s:new zr(null,{type:"ignore"});ir=Math.max(ir,ln.depth),Ct=Math.max(Ct,ln.height),mr.cells.push(ln)}let Xr=(c=lA(this.rowGaps[ft]))!=null?c:0;Xr>0&&(Xr+=_n,ir=Math.max(ir,Xr),Xr=0),ft<cn-1&&!Uh(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(ir+=j.getRegisterAsEm("jot")),mr.height=Ct,mr.depth=ir,wr+=Ct,mr.pos=wr,wr+=ir+Xr,nn.push(mr)}const Bi=wr/2+Al,ra=[];for(let ft=0;ft<Mn;ft++){const Ht=[];for(const vr of nn){const Ct=vr.cells[ft];Ct.depth=vr.depth,Ct.height=vr.height,Ht.push({box:Ct,shift:vr.pos-Bi})}Ht.length>0&&ra.push(new bl({individualShift:Ht}))}const Hi=[];let p=!1,B=!1,U=0,ge=!this.leftDelim;const{colFormat:Ke}=this;for(const ft of Ke){if("align"in ft&&U>=ra.length)break;if("align"in ft)p?Hi.push(NA(2*bt)):(B||ge)&&Hi.push(NA(bt)),Hi.push(new zr(ra[U],{classes:"col-align-"+ft.align})),U++,p=!0,B=!1,ge=!1;else if("gap"in ft){if(typeof ft.gap=="number")Hi.push(NA(ft.gap));else{const Ht=P0(t,nn,Bi,ft.gap);Ht&&Hi.push(Ht)}p=!1,B=!1,ge=!1}else if("separator"in ft){const Ht=new zr(null,{classes:"vertical-separator"});Ht.height=wr,Ht.setStyle("height",wr,"em"),Ht.setStyle("border-right",`${J}em ${ft.separator} currentColor`),Ht.setStyle("vertical-align",-(wr-Bi),"em");let vr=0;B?vr=Pe-J:p&&(vr=bt-J),Ht.left=vr,Hi.push(Ht),p=!1,B=!0,ge=!1}}p&&!this.rightDelim&&Hi.push(NA(bt));const Ve=new zr(Hi,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Ve.caret=this.caret),this.bind(t,Ve);const Ge=Ve.height,ot=Ve.depth,ut=this.bind(t,new zr([this.bind(t,lh("open",(A=this.leftDelim)!=null?A:".",Ge,ot,j,{isSelected:this.isSelected})),Ve,this.bind(t,lh("close",(k=this.rightDelim)!=null?k:".",Ge,ot,j,{isSelected:this.isSelected}))],{type:"ord"}));return ut?(ut.setStyle("display","inline-block"),this.caret&&(ut.caret=this.caret),this.bind(t,this.attachSupsub(t,{base:ut}))):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}}`),uo(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(Mi(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 A of c)A.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(Mi(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 A of c)A.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 A of c)A.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,Mi(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,Mi(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 Mi(e){const t=new Ur({type:"first",mode:e.mode});t.parent=e;const r=new OA;return r.parent=e,[t,r]}function NA(e){const t=new zr(null,{classes:"arraycolsep"});return t.width=e,t}function P0(e,t,r,i){if(!i)return null;const s=[];for(const c of t){const A=Ur.createBox(e,i,{type:"ignore"});A&&(A.depth=c.depth,A.height=c.height,s.push({box:A,shift:c.pos-r}))}return new bl({individualShift:s}).wrap(e)}var Ac=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 M(v({},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 A=Ur.createBox(t,this.body,{type:"lift"});if(!A)return null;const k=t.toEm((r=this.offset)!=null?r:{dimension:0});A.depth+=k,A.setStyle("display","inline-block"),A.setStyle("position","relative"),A.setStyle("height",Math.floor(100*A.height+A.depth)/100,"em"),A.setStyle("vertical-align",-Math.floor(100*A.height)/100,"em");const j=new So({parent:t},this.style),J=j.toEm((i=this.padding)!=null?i:{register:"fboxsep"}),ue=new zr(null,{classes:"ML__box"});ue.height=A.height+J,ue.depth=A.depth+J,ue.setStyle("box-sizing","border-box"),ue.setStyle("position","absolute"),ue.setStyle("top",-J+.3,"em"),ue.setStyle("left",0),ue.setStyle("height",ue.height+ue.depth,"em"),ue.setStyle("width","100%"),this.backgroundcolor&&ue.setStyle("background-color",(s=j.toColor(this.backgroundcolor))!=null?s:"transparent"),this.framecolor&&ue.setStyle("border",`${j.getRegisterAsEm("fboxrule",2)}em solid ${(c=j.toColor(this.framecolor))!=null?c:"black"}`),this.border&&ue.setStyle("border",this.border);const Pe=new zr([ue,A],{type:"lift"});return Pe.setStyle("display","inline-block"),Pe.setStyle("position","relative"),Pe.setStyle("line-height",0),Pe.height=A.height+J+(k>0?k:0),Pe.depth=A.depth+J+(k<0?-k:0),Pe.setStyle("padding-left",J,"em"),Pe.setStyle("padding-right",J,"em"),Pe.setStyle("height",Math.floor(100*(A.height+A.depth+2*J+Math.abs(k)))/100,"em"),Pe.setStyle("margin-top",-J,"em"),Pe.setStyle("top",Math.floor(100*(A.depth-A.height+2*J-k))/100,"em"),Pe.setStyle("vertical-align",Math.floor(100*(A.depth+2*J))/100,"em"),this.caret&&(Pe.caret=this.caret),this.attachSupsub(t,{base:Pe})}_serialize(t){return t.skipStyles?uo([this.bodyToLatex(t),this.supsubToLatex(t)]):super._serialize(t)}},im=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""}},Go=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}},sl=class j1 extends Ur{constructor(t,r,i){super({type:"group",mode:r,style:i}),this.body=t,this.boxType=t.length>1?"ord":"ignore",this.skipBoundary=!0,this.displayContainsHighlight=!1,t&&t.length===1&&t[0].command===","&&(this.captureSelection=!0)}static fromJson(t){return new j1(t.body,t.mode,t.style)}render(t){const r=Ur.createBox(t,this.body,{type:this.boxType});return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):`{${this.bodyToLatex(t)}}`}},Ys=class z1 extends Ur{constructor(t,r,i){super({type:"leftright",style:i.style,displayContainsHighlight:!0}),this.variant=t,this.body=r,this.leftDelim=i.leftDelim,this.rightDelim=i.rightDelim}static fromJson(t){var r;return new z1((r=t.variant)!=null?r:"",t.body,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}_serialize(t){var r,i;const s=this.matchingRightDelim();return this.variant==="left...right"?uo(["\\left",(r=this.leftDelim)!=null?r:".",this.bodyToLatex(t),"\\right",s]):this.variant==="mleft...mright"?uo(["\\mleft",(i=this.leftDelim)!=null?i:".",this.bodyToLatex(t),"\\mright",s]):uo([!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=Qd[i])!=null?r:i}render(t){var r,i;const s=new So({parent:t},this.style);console.assert(this.body!==void 0);const c=new So({parent:t,mathstyle:"textstyle"},this.style),A=(r=Ur.createBox(s,this.body,{type:"inner"}))!=null?r:new zr(null,{type:"inner"}),k=A.height/c.scalingFactor,j=A.depth/c.scalingFactor,J=[];if(this.leftDelim&&J.push(this.bind(c,lh("open",this.leftDelim,k,j,c,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),A&&($m(A.children,this,s,k,j),J.push(A)),this.rightDelim){let bt=this.containsCaret?" ML__contains-caret":"",Et=this.rightDelim;Et==="?"&&(s.smartFence?(Et=this.matchingRightDelim(),bt+=" ML__smart-fence__close"):Et="."),J.push(this.bind(c,lh("close",Et,k,j,c,{isSelected:this.isSelected,classes:bt+" ML__close",mode:this.mode,style:this.style})))}let ue=this.variant==="mleft...mright";const Pe=this.leftSibling;Pe&&(!ue&&Pe.isFunction&&(ue=!0),!ue&&Pe.type==="subsup"&&((i=Pe.leftSibling)!=null&&i.isFunction)&&(ue=!0));const nt=new zr(J,{type:ue?"close":"inner",classes:"left-right"});return nt.setStyle("margin-top",`${-A.depth}em`),nt.setStyle("height",`${A.height+A.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 A=e[c];A.type==="middle"?(e[c]=t.bind(r,lh("inner",A.value,i,s,r,{isSelected:t.isSelected})),e[c].caret=A.caret,e[c].isSelected=A.isSelected,e[c].cssId=A.cssId,e[c].htmlData=A.htmlData,e[c].htmlStyle=A.htmlStyle,e[c].attributes=A.attributes,e[c].cssProperties=A.cssProperties):A.children&&$m(A.children,t,r,i,s)}}var T0=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}},Wa=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}},Ef=class V1 extends Ur{constructor(t,r,i=!1,s,c){var A;super({type:"prompt",mode:(A=c==null?void 0:c.mode)!=null?A:"math",style:c==null?void 0:c.style,command:"\\placeholder"}),this.body=s,this.correctness=r,this.placeholderId=t,this.locked=i,this.captureSelection=this.locked}static fromJson(t){return new V1(t.placeholderId,t.correctness,t.locked,t.body,t)}toJson(){const t=super.toJson();return this.placeholderId&&(t.placeholderId=this.placeholderId),this.body||delete t.body,this.body&&(t.body=this.body.filter(r=>r.type!=="first").map(r=>r.toJson())),this.correctness&&(t.correctness=this.correctness),t.locked=this.locked,t}render(t){const r=new So({parent:t}),i=r.getRegisterAsEm("fboxsep"),s=i,c=i,A=Ur.createBox(t,this.body);if(!A)return null;A.height||(A.height=r.metrics.xHeight),A.setStyle("vertical-align",-A.height,"em"),this.correctness==="correct"?A.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&A.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const k=new zr(A,{type:"ord"});k.setStyle("display","inline-block"),k.setStyle("height",A.height+A.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 J=new zr(null,{classes:j,attributes:{part:"prompt"}});J.height=k.height+c,J.depth=k.depth+c,J.width=k.width+2*s,J.setStyle("box-sizing","border-box"),J.setStyle("position","absolute"),J.setStyle("height",k.height+k.depth+2*c,"em"),s===0&&J.setStyle("width","100%"),s!==0&&(J.setStyle("width",`calc(100% + ${2*s}em)`),J.setStyle("top",i,"em"),J.setStyle("left",-s,"em")),(!this.body||this.body.length===1)&&(J.width=3*s,J.setStyle("width",`calc(100% + ${3*s}em)`),J.setStyle("left",-1.5*s,"em"));let ue="";this.correctness==="incorrect"&&(ue+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),ue&&(J.svgOverlay=ue);const Pe=new zr([J,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]"),_s(s,i)}},Os=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 wf)t[i]&&r.setChildren(t[i],i);return r}render(t){var r;const i=new So({parent:t,isPhantom:!0}),s=this.leftSibling,c=(r=s.render(i))!=null?r:new zr(null),A=new zr(null);return A.height=c.height,A.depth=c.depth,this.attachSupsub(t,{base:A,isCharacterBox:s.isCharacterBox(),type:"ignore"})}_serialize(t){return this.supsubToLatex(t)}};function Kd(e){return e?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(e):!1}var U0=class{constructor(e,t,r){this.errors=[],this.index=0,this.endCount=0;var i,s,c,A;r!=null||(r={}),this.tokens=e,this.context=t instanceof So&&!(r!=null&&r.parseMode)&&!r.mathstyle?t:new So({from:t,mathstyle:r.mathstyle},r.style),this.args=(i=r.args)!=null?i:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(s=r.style)!=null?s:{},parseMode:(c=r.parseMode)!=null?c:"math",mathstyle:(A=r.mathstyle)!=null?A:"displaystyle",tabular:!1}}beginContext(e){var t,r,i;const s=this.parsingContext,c={parent:s,mathlist:[],style:v({},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(v({before:Bu(this.tokens.slice(this.index,this.index+10)),after:Bu(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 v({},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 Os({style:this.style}),this.mathlist.push(e)),e}hasPattern(e){return e.test(this.tokens[this.index])}hasInfixCommand(){var e;const{index:t}=this;if(t<this.tokens.length&&this.tokens[t].startsWith("\\")){const r=ct(this.tokens[t],this.parseMode);return!r||r.definitionType==="symbol"||r.ifMode&&!r.ifMode.includes(this.parseMode)?!1:(e=r.infix)!=null?e:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const e=this.peek();return e!=="\\\\"&&e!=="\\cr"&&e!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var e;const t=(e=this.args)==null?void 0:e.call(this,"?");return t?dc(t,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new OA({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();Kd(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(Kd(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,A=/\d/;if(this.match("'"))c=8,A=/[0-7]/,e=!0;else if(this.match('"'))c=16,A=/[\dA-F]/,e=!0;else if(this.match("x"))c=16,A=/[\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(A);)k+=this.get();if(!e&&(this.match(".")||this.match(",")))for(k+=".";this.hasPattern(A);)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()||!Kd(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=[],A=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),A=!0),!A&&this.match("\\end")&&(this.scanArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),A=!0),!A)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(!A);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=A=>A==="<}>");let t="",r=null,i=[],s=null;for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!t?(t=this.get(),r=ct(t,"math"),r&&(i=this.scanArguments(r)[1]),s=this.mathlist,this.mathlist=[]):this.parseExpression();let c;return t?(console.assert(!!r),i.unshift(this.mathlist),s&&i.unshift(s),c=[r.createAtom({command:t,args:i,style:this.style,mode:this.parseMode})]):c=this.mathlist,this.endContext(),c}scanGroup(){const e=this.index;if(!this.match("<{>"))return null;const t=this.scan(i=>i==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const r=new sl(t,this.parseMode,this.style);return r.verbatimLatex=Bu(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(!Kd(e)&&!e.startsWith("\\"))return null;this.next();const t=ct(e,"math");return t?t.definitionType==="function"&&t.ifMode&&!t.ifMode.includes(this.parseMode)?(this.onError({code:"unexpected-delimiter",arg:e}),null):t.definitionType==="symbol"&&(t.type==="mopen"||t.type==="mclose")||/^(\.|\?|\||<|>|\\vert|\\Vert|\\\||\\surd|\\uparrow|\\downarrow|\\Uparrow|\\Downarrow|\\updownarrow|\\Updownarrow|\\mid|\\mvert|\\mVert)$/.test(e)?e:(this.onError({code:"unexpected-delimiter",arg:e}),null):(this.onError({code:"unknown-command",arg:e}),null)}scanLeftRight(){var e;if(this.match("\\right"))return this.onError({code:"unbalanced-braces"}),new Go("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Go("\\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 Go(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(Ye(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(Kd(e)){const r=Wl.createAtom(this.parseMode,e,v({},this.style));return r?[r]:null}if(t=this.scanMacro(e),t)return[t];if(e.startsWith("\\")){const r=ct(e,this.parseMode);if(!r)return this.onError({code:"unknown-command",arg:e}),[new Go(e)];if(r.definitionType==="symbol"){const i=v({},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 Go(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 A=s.match(/^\s*border\s*:\s*(.*)/);A?r.border=A[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"),J=Ur.serialize(j,{defaultMode:"math"});let ue=[],Pe;!Pe&&J==="correct"?Pe="correct":!Pe&&J==="incorrect"?Pe="incorrect":J!==""&&(ue=j);const nt=this.scanOptionalArgument("string")==="locked",bt=this.scanArgument("auto");let Et;return bt&&Array.isArray(bt)&&bt.length>0?Et=bt:bt&&typeof bt=="object"&&"group"in bt?Et=bt.group:Et=ue,k?[new Ef(k,Pe,nt,Et!=null?Et:ue,{mode:this.parseMode,style:this.style})]:[new OA({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 J=this.scanArgument("string");J!==null&&(this.context.registers[j.substring(1)]=J);const ue=uo([e,Bu(this.tokens.slice(k,this.index))]);return[new Ur({type:"text",value:"",verbatimLatex:ue})]}}let s=this.scanMacro(e);if(s)return[s];const c=ct(e,this.parseMode);if(!c)return this.parseMode==="text"?(/[a-zA-Z]/.test((t=this.peek())!=null?t:"")&&(e+=" "),[...e].map(k=>new Ur({type:"text",value:k,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:e}),[new Go(e)]);const A=this.index;if(c.definitionType==="symbol"){const k=v({},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,J=[];if(c.parse?J=c.parse(this):[j,J]=this.scanArguments(c),this.parseMode=k,c.applyMode&&!c.applyStyle&&!c.createAtom)return Ye(J[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:J,style:this.style,mode:this.parseMode}),j&&(s.body=Ye(this.scanArgument(j)));else if(typeof c.applyStyle=="function"){const ue=v(v({},this.style),c.applyStyle(e,J,this.context)),Pe=this.parseMode;if(c.applyMode&&(this.parseMode=c.applyMode),j){const nt=this.style;this.style=ue;const bt=this.scanArgument(j);return this.style=nt,this.parseMode=Pe,Ye(bt)}this.style=ue}else s=new Ur({type:"mord",command:(r=c.command)!=null?r:e,style:v({},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=uo([e,Bu(this.tokens.slice(A,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(Kd(e)){const t=Wl.createAtom(this.parseMode,e,v({},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 Td(" "," ",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 A=1;A<=s;A++){let k=this.scanLiteralGroup();if(!k){const j=this.index;this.scanExpression(),k=Bu(this.tokens.slice(j,this.index))}c[A]=k}return new T0(e,{expand:r.expand,captureSelection:r.captureSelection,args:i===this.index?null:Bu(this.tokens.slice(i,this.index)),style:this.parsingContext.style,body:dc(r.def,{context:this.context,parseMode:this.parseMode,args:A=>c[A],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 dc(e,t){var r,i,s,c;const A=(r=t==null?void 0:t.args)!=null?r:void 0,k=new U0(td(e,A),t==null?void 0:t.context,{args:A,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 ud(e,t){var r;const i=new U0(td(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 wp=class G1 extends Ur{constructor(t,r){super({type:"chem"},{command:t,mode:"math"});const i=Ks.go(gn.go(r,t==="\\pu"?"pu":"ce"),!1);this.body=dc(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 M(v({},super.toJson()),{arg:this.arg})}render(t){const r=Ur.createBox(t,this.body,{type:"inner"});return this.caret&&(r.caret=this.caret),this.bind(t,r)}_serialize(t){return console.assert(this.verbatimLatex!==void 0),this.verbatimLatex}};he(["ce","pu"],"{chemformula:balanced-string}",{createAtom:e=>{var t;return new wp(e.command,(t=e.args[0])!=null?t:"")}});var gn={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,A=[];;){s!==e?(c=10,s=e):c--;var k=gn.stateMachines[t],j=k.transitions[r]||k.transitions["*"];e:for(var J=0;J<j.length;J++){var ue=gn.patterns.match_(j[J].pattern,e);if(ue){for(var Pe=j[J].task,nt=0;nt<Pe.action_.length;nt++){var bt;if(k.actions[Pe.action_[nt].type_])bt=k.actions[Pe.action_[nt].type_](i,ue.match_,Pe.action_[nt].option);else if(gn.actions[Pe.action_[nt].type_])bt=gn.actions[Pe.action_[nt].type_](i,ue.match_,Pe.action_[nt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Pe.action_[nt].type_+")"];gn.concatArray(A,bt)}if(r=Pe.nextState||r,e.length>0){if(Pe.revisit||(e=ue.remainder),!Pe.toContinue)break e}else return A}}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=gn.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 gn.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return gn.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return gn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return gn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return gn.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return gn.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return gn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return gn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(e){return gn.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return gn.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return gn.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$":function(e){return gn.patterns.findObserveGroups(e,"${","","","}$")},"$(...)$":function(e){return gn.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 gn.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return gn.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return gn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return gn.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 gn.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return gn.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return gn.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return gn.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return gn.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return gn.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return gn.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return gn.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=gn.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,A,k,j,J){var ue=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 cn=0;nn<wr.length;){var Bi=wr.charAt(nn),ra=ue(wr.substr(nn),Mn);if(ra!==null&&cn===0)return{endMatchBegin:nn,endMatchEnd:nn+ra.length};if(Bi==="{")cn++;else if(Bi==="}"){if(cn===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];cn--}nn++}return cn>0,null},nt=ue(e,t);if(nt===null||(e=e.substr(nt.length),nt=ue(e,r),nt===null))return null;var bt=Pe(e,nt.length,i||s);if(bt===null)return null;var Et=e.substring(0,i?bt.endMatchEnd:bt.endMatchBegin);if(c||A){var Cr=this.findObserveGroups(e.substr(bt.endMatchEnd),c,A,k,j);if(Cr===null)return null;var _n=[Et,Cr.match_];return{match_:J?_n.join(""):_n,remainder:Cr.remainder}}else return{match_:Et,remainder:e.substr(bt.endMatchEnd)}},match_:function(e,t){var r=gn.patterns.patterns[e];if(r===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if(typeof r=="function")return gn.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 gn.go(t,"text")},"{text}":function(e,t){var r=["{"];return gn.concatArray(r,gn.go(t,"text")),r.push("}"),r},"tex-math":function(e,t){return gn.go(t,"tex-math")},"tex-math tight":function(e,t){return gn.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 gn.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 gn.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 A=e[t][r];if(A.action_){A.action_=[].concat(A.action_);for(var k=0;k<A.action_.length;k++)typeof A.action_[k]=="string"&&(A.action_[k]={type_:A.action_[k]})}else A.action_=[];for(var j=t.split("|"),J=0;J<j.length;J++)if(i[s]==="*")for(var ue in c)c[ue].push({pattern:j[J],task:A});else c[i[s]].push({pattern:j[J],task:A})}return c},stateMachines:{}};gn.stateMachines={ce:{transitions:gn.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 gn.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 gn.concatArray(r,this.output(e)),gn.concatArray(r,gn.actions.bond(e,t,"-")),r}else e.d=t},"- after o/d":function(e,t,r){var i=gn.patterns.match_("orbital",e.o||""),s=gn.patterns.match_("one lowercase greek letter $",e.o||""),c=gn.patterns.match_("one lowercase latin letter $",e.o||""),A=gn.patterns.match_("$one lowercase latin letter$ $",e.o||""),k=t==="-"&&(i&&i.remainder===""||s||c||A);k&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!i&&c&&(e.o="$"+e.o+"$");var j=[];return k?(gn.concatArray(j,this.output(e)),j.push({type_:"hyphen"})):(i=gn.patterns.match_("digits",e.d||""),r&&i&&i.remainder===""?(gn.concatArray(j,gn.actions["d="](e,t)),gn.concatArray(j,this.output(e))):(gn.concatArray(j,this.output(e)),gn.concatArray(j,gn.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:gn.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"&&gn.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:gn.go(e.a,"a"),b:gn.go(e.b,"bd"),p:gn.go(e.p,"pq"),o:gn.go(e.o,"o"),q:gn.go(e.q,"pq"),d:gn.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType}));else{var s;e.rdt==="M"?s=gn.go(e.rd,"tex-math"):e.rdt==="T"?s=[{type_:"text",p1:e.rd||""}]:s=gn.go(e.rd);var c;e.rqt==="M"?c=gn.go(e.rq,"tex-math"):e.rqt==="T"?c=[{type_:"text",p1:e.rq||""}]:c=gn.go(e.rq),i={type_:"arrow",r:e.r,rd:s,rq:c}}for(var A in e)A!=="parenthesisLevel"&&A!=="beginsWithBond"&&delete e[A];return i},"oxidation-output":function(e,t){var r=["{"];return gn.concatArray(r,gn.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:gn.go(t[0]),p2:gn.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:gn.go(t[0]),p2:gn.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:gn.go(t[0]),p2:gn.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:gn.go(t[0]),p2:gn.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:gn.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:gn.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:gn.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:gn.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:gn.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:gn.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:gn.go(t[1],"pq")}}}},bd:{transitions:gn.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:gn.go(t[1],"bd")}}}},oxidation:{transitions:gn.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:gn.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:gn.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:gn.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:gn.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]&&(gn.concatArray(r,gn.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?gn.concatArray(r,gn.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]),gn.concatArray(r,gn.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=gn.patterns.match_("{(...)}",e.d||"");r&&r.remainder===""&&(e.d=r.match_);var i=gn.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:gn.go(e.d,"pu"),q:gn.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_:"/"}),gn.concatArray(t,s.q))}else t=gn.go(e.d,"pu-2");for(var c in e)delete e[c];return t}}},"pu-2":{transitions:gn.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=gn.patterns.match_("{(...)}",e.rm||"");r&&r.remainder===""?t=gn.go(r.match_,"pu"):t={type_:"rm",p1:e.rm}}for(var i in e)delete e[i];return t}}},"pu-9,9":{transitions:gn.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 Ks={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+=Ks._go2(c),c.type_==="1st-level escape"&&(i=!0))}return!t&&!i&&r&&(r="{"+r+"}"),r},_goInner:function(e){return e&&Ks.go(e,!0)},_go2:function(e){var t;switch(e.type_){case"chemfive":t="";var r={a:Ks._goInner(e.a),b:Ks._goInner(e.b),p:Ks._goInner(e.p),o:Ks._goInner(e.o),q:Ks._goInner(e.q),d:Ks._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 "+Ks._goInner(e.p1);break;case"state of aggregation subscript":t="\\mskip1mu "+Ks._goInner(e.p1);break;case"bond":if(t=Ks._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{"+Ks._goInner(e.p1)+"}{"+Ks._goInner(e.p2)+"}";t="\\mathchoice{\\textstyle"+s+"}{"+s+"}{"+s+"}{"+s+"}";break;case"tex-math":t=e.p1+" ";break;case"frac-ce":t="\\frac{"+Ks._goInner(e.p1)+"}{"+Ks._goInner(e.p2)+"}";break;case"overset":t="\\overset{"+Ks._goInner(e.p1)+"}{"+Ks._goInner(e.p2)+"}";break;case"underset":t="\\underset{"+Ks._goInner(e.p1)+"}{"+Ks._goInner(e.p2)+"}";break;case"underbrace":t="\\underbrace{"+Ks._goInner(e.p1)+"}_{"+Ks._goInner(e.p2)+"}";break;case"color":t="{\\color{"+e.color1+"}{"+Ks._goInner(e.color2)+"}}";break;case"color0":t="\\color{"+e.color+"}";break;case"arrow":var c={rd:Ks._goInner(e.rd),rq:Ks._goInner(e.rq)},A=Ks._getArrow(e.r);c.rd||c.rq?e.r==="<=>"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<-->"?(A="\\long"+A,c.rd&&(A="\\overset{"+c.rd+"}{"+A+"}"),c.rq&&(e.r==="<-->"?A="\\underset{\\lower2mu{"+c.rq+"}}{"+A+"}":A="\\underset{\\lower6mu{"+c.rq+"}}{"+A+"}"),A=" {}\\mathrel{"+A+"}{} "):(c.rq&&(A+="[{"+c.rq+"}]"),A+="{"+c.rd+"}",A=" {}\\mathrel{\\x"+A+"}{} "):A=" {}\\mathrel{\\long"+A+"}{} ",t=A;break;case"operator":t=Ks._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 R0(e){}function Q0(e){}var Qc=class X1 extends Ur{constructor(t){super(M(v({},t),{type:"delim"})),this.value=t.delim,this.size=t.size}static fromJson(t){return new X1(t)}toJson(){return M(v({},super.toJson()),{delim:this.value,size:this.size})}render(t){return new zr(this.value,{type:"middle"})}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):_s(this.command,this.value)}},Bc=class J1 extends Ur{constructor(t){super(M(v({},t),{type:"sizeddelim",value:t.delim})),this.delimType=t.delimType,this.size=t.size}static fromJson(t){return new J1(t)}toJson(){return M(v({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(t){let r=jm(this.value,this.size,t,{classes:{open:"mopen",close:"mclose"}[this.delimType],type:this.delimType,isSelected:this.isSelected});return r?(r=this.bind(t,r),this.caret&&(r.caret=this.caret),r):null}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):_s(this.command,this.value)}},ic=class Y1 extends Ur{constructor(t,r,i,s){var c,A;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=(A=s.strokeWidth)!=null?A:"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 M(v({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(t){var r;if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const i=ct(this.command,this.mode);if(i!=null&&i.serialize)return i.serialize(this,t);let s=(r=this.command)!=null?r:"";if(this.command==="\\enclose"){s+="{"+Object.keys(this.notation).join(" ")+"}";let c="",A="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(c+=A+'mathbackground="'+this.backgroundcolor+'"',A=","),this.shadow&&this.shadow!=="auto"&&(c+=A+'shadow="'+this.shadow+'"',A=","),this.strokeWidth||this.strokeStyle!=="solid"?(c+=A+this.borderStyle,A=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(c+=A+'mathcolor="'+this.strokeColor+'"',A=","),c&&(s+=`[${c}]`)}return _s(s,this.bodyToLatex(t))}render(t){const r=new So({parent:t},this.style),i=Ur.createBox(r,this.body);if(!i)return null;const s=am(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 A=new zr(null,{classes:"ML__notation"});let k=i.height+i.depth+2*c;const j=i.width+2*c;let J="";if(this.notation.horizontalstrike&&(J+=this.line(3,50,97,50)),this.notation.verticalstrike&&(J+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(J+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(J+=this.line(3,3,97,97)),this.notation.updiagonalarrow){J+=this.line(c.toString(),(c+i.depth+i.height).toString(),(c+i.width).toString(),c.toString());const Et=.03*Math.sqrt(j*j+k*k)*1,Cr=i.width*Et,_n=(i.depth+i.height)*Et,wr=c+i.width;let nn=c;nn+_n-.4*Cr<0&&(nn=.4*Cr-_n),J+='<polygon points="',J+=`${wr},${nn} ${wr-Cr-.4*_n},${nn+_n-.4*Cr} `,J+=`${wr-.7*Cr},${nn+.7*_n} ${wr-Cr+.4*_n},${nn+_n+.4*Cr} `,J+=`${wr},${nn}`,J+=`" stroke='none' fill="${this.strokeColor}"`,J+="/>"}let ue=0;if(this.notation.phasorangle){const nt=Fu(r),bt=(i.height+i.depth+2*nt+c).toString(),Et=(i.height+i.depth)/2;J+=this.line(c.toString(),bt,(c+Et+i.width).toString(),bt),J+=this.line(c.toString(),bt,(c+Et).toString(),(c-nt).toString()),k+=nt,ue=Et,i.left+=k/2-c}if(this.notation.longdiv){const nt=Fu(r);k+=nt,J+=this.line(c.toString(),c.toString(),(c+i.width).toString(),c.toString());const bt=.3;ue=bt+nt,i.left+=bt+nt,i.setTop(c+nt),J+='<path d="',J+=`M ${c} ${c} a${bt} ${(i.depth+i.height+2*nt)/2}, 0, 1, 1, 0 ${i.depth+i.height+2*nt} "`,J+=` stroke-width="${K0(r)}" stroke="${this.strokeColor}" fill="none"`,J+="/>"}if(A.width=i.width+2*c+ue,A.height=i.height+c,A.depth=i.depth+c,A.setStyle("box-sizing","border-box"),A.setStyle("left",`calc(-${s} / 2 )`),A.setStyle("height",`${Math.floor(100*k)/100}em`),A.setStyle("top",`calc(${s} / 2 )`),this.backgroundcolor&&A.setStyle("background-color",this.backgroundcolor),this.notation.box&&A.setStyle("border","1px solid red"),this.notation.actuarial&&(A.setStyle("border-top",this.borderStyle),A.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(A.setStyle("border-bottom",this.borderStyle),A.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(A.setStyle("border-radius","8px"),A.setStyle("border",this.borderStyle)),this.notation.circle&&(A.setStyle("border-radius","50%"),A.setStyle("border",this.borderStyle)),this.notation.top&&A.setStyle("border-top",this.borderStyle),this.notation.left&&A.setStyle("border-left",this.borderStyle),this.notation.right&&A.setStyle("border-right",this.borderStyle),this.notation.bottom&&A.setStyle("border-bottom",this.borderStyle),J){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}"`),A.svgStyle=nt,A.svgOverlay=J}const Pe=new zr([A,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=A.height,Pe.depth=A.depth,Pe.width=A.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="${fc(t)}" y1="${fc(r)}" x2="${fc(i)}" y2="${fc(s)}" vector-effect="non-scaling-stroke"></line>`}};function fc(e){return typeof e=="number"?`${Math.floor(100*e)/100}%`:e}function am(e){if(!e)return"1px";const t=e.match(/([0-9][a-zA-Z\%]+)/);return t===null?"1px":t[1]}function K0(e){return(Math.floor(100*e.metrics.sqrtRuleThickness/e.scalingFactor)/100/10).toString()+"em"}function Fu(e){const t=e.isDisplayStyle?Ml:e.metrics.defaultRuleThickness;return e.metrics.defaultRuleThickness+e.scalingFactor*t/4}var _f=class q1 extends Ur{constructor(t,r,i){var s,c;super(M(v({},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),v(v({},super.toJson()),t)}get children(){if(this._children)return this._children;const t=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const r of this.below)t.push(...r.children),t.push(r);for(const r of this.above)t.push(...r.children),t.push(r)}else{for(const r of this.above)t.push(...r.children),t.push(r);for(const r of this.below)t.push(...r.children),t.push(r)}return this._children=t,t}render(t){var r,i;const s=new So({parent:t,mathstyle:this.mathstyleName},this.style),c=s.metrics,A=new So({parent:s,mathstyle:this.continuousFraction?"":"numerator"},this.style),k=this.numerPrefix?new zr([new zr(this.numerPrefix),Ur.createBox(A,this.above)],{isTight:A.isTight,type:"ignore"}):(r=Ur.createBox(A,this.above,{type:"ignore"}))!=null?r:new zr(null,{type:"ignore"}),j=new So({parent:s,mathstyle:this.continuousFraction?"":"denominator"},this.style),J=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"}),ue=this.hasBarLine?c.defaultRuleThickness:0;let Pe,nt=0,bt;s.isDisplayStyle?(Pe=A.metrics.num1,nt=ue>0?3*ue:7*ue,bt=j.metrics.denom1):(ue>0?(Pe=A.metrics.num2,nt=ue):(Pe=A.metrics.num3,nt=3*c.defaultRuleThickness),bt=j.metrics.denom2);const Et=[];this.isSelected&&Et.push("ML__selected");const Cr=k.depth,_n=J.height;let wr;if(ue<=0){const Hi=Pe-Cr-(_n-bt);Hi<nt&&(Pe+=(nt-Hi)/2,bt+=(nt-Hi)/2),wr=new bl({individualShift:[{box:k,shift:-Pe,classes:[...Et,"ML__center"]},{box:J,shift:bt,classes:[...Et,"ML__center"]}]}).wrap(s)}else{const Hi=new zr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Hi.softWidth=Math.max(k.width,J.width),Hi.height=ue/2,Hi.depth=ue/2;const p=Al+ue/2;Pe<nt+Cr+p&&(Pe=nt+Cr+p);const B=Al-ue/2;bt<nt+_n-B&&(bt=nt+_n-B),wr=new bl({individualShift:[{box:J,shift:bt,classes:[...Et,"ML__center"]},{box:Hi,shift:-B,classes:Et},{box:k,shift:-Pe,classes:[...Et,"ML__center"]}]}).wrap(s)}const nn=s.isDisplayStyle?c.delim1:c.delim2,Mn=this.leftDelim?this.bind(t,Sf("open",this.leftDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):ch(s,"open");let cn=null;this.continuousFraction?cn=new zr(null,{type:"close"}):this.rightDelim?cn=this.bind(t,Sf("close",this.rightDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):cn=ch(s,"close");const Bi=new zr([Mn,wr,cn],{isTight:s.isTight,type:"inner",classes:"mfrac"}),ra=this.bind(t,Bi);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),v({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}},If=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:""}},xp=class rv extends Ur{constructor(t,r){super(M(v({},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,A=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:A}):this.attachSupsub(t,{base:s})}return new zr(this.bind(t,k),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=[];return i.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&i.push("\\limits"),this.subsupPlacement==="adjacent"&&i.push("\\nolimits"),this.subsupPlacement==="auto"&&i.push("\\displaylimits")),i.push(this.supsubToLatex(t)),uo(i)}},Jc=class nv extends Ur{constructor(t){const r=t.body;super(M(v({},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),v(v({},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}},hc=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?vf(this.svgBody):Ur.createBox(t,this.body,{type:"ignore"});const i=new So({parent:t,mathstyle:"scriptstyle"},this.style);let s=null;this.svgAbove?s=vf(this.svgAbove):this.above&&(s=Ur.createBox(i,this.above,{type:"ignore"}));let c=null;this.svgBelow?c=vf(this.svgBelow):this.below&&(c=Ur.createBox(i,this.below,{type:"ignore"})),this.paddedBody&&(r=new zr([ch(t,"open"),r,ch(t,"close")],{type:"ignore"}));let A=Qh(t,{base:r,above:s,below:c,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return A?(this.subsupPlacement==="over-under"?A=this.attachLimits(t,{base:A,type:A.type}):A=this.attachSupsub(t,{base:A}),this.caret&&(A.caret=this.caret),this.bind(t,A)):null}};function Qh(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,A=["ML__center"];if(t.paddedAboveBelow&&A.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:A},{box:s,classes:["ML__center"]},r,{box:t.above,classes:A},e.metrics.bigOpSpacing5]})}else t.below?i=new bl({top:s.height-c,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:A},{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:A},e.metrics.bigOpSpacing5]}));return new zr(i,{type:t.type})}var PA=class av extends Ur{constructor(t){var r,i,s,c;super(M(v({},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),v(v({},super.toJson()),t)}render(t){const r=new So({parent:t,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Ur.createBox(r,this.body,{classes:"inner"});const i=Ur.createBox(this.isInvisible?r:t,this.body);if(!i)return null;if(this.smashWidth){const s=new zr(null,{classes:"fix"});return new zr([i,s],{classes:"rlap"}).wrap(t)}if(!this.smashHeight&&!this.smashDepth)return i;if(this.smashHeight&&(i.height=0),this.smashDepth&&(i.depth=0),i.children)for(const s of i.children)this.smashHeight&&(s.height=0),this.smashDepth&&(s.depth=0);return new bl({firstBaseline:[{box:i}]},{type:i.type}).wrap(t)}},iu=class ov extends Ur{constructor(t){var r;super(v({type:"spacing"},t)),this.width=t==null?void 0:t.width,this._braced=(r=t==null?void 0:t.braced)!=null?r:!1}static fromJson(t){return new ov(t)}toJson(){const t=super.toJson();return this.width!==void 0&&(t.width=this.width),this._braced&&(t.braced=!0),t}render(t){var r;if(this.command==="space")return new zr(this.mode==="math"?null:" ");let i;if(this.width!==void 0)i=new zr(null,{classes:"mspace"}),i.left=t.toEm(this.width);else{const s=(r={"\\qquad":"qquad","\\quad":"quad","\\enspace":"enspace","\\;":"thickspace","\\:":"mediumspace","\\>":"mediumspace","\\,":"thinspace","\\!":"negativethinspace"}[this.command])!=null?r:"mediumspace";i=new zr(null,{classes:s})}return i=this.bind(t,i),this.caret&&(i.caret=this.caret),i}_serialize(t){var r;if(!t.expandMacro&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const i=ct(this.command,this.mode);if(i!=null&&i.serialize)return i.serialize(this,t);const s=(r=this.command)!=null?r:"";return this.width===void 0?s:this._braced&&!("register"in this.width)?`${s}{${kl(this.width)}}`:`${s}${kl(this.width)}`}},Cp=class sv extends Ur{constructor(t){var r;super(M(v({},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(M(v({},t),{index:t.above}))}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=this.command,s=this.bodyToLatex(t);return this.above&&!this.hasEmptyBranch("above")?_s(`${i}[${this.aboveToLatex(t)}]`,s):/^[0-9]$/.test(s)?`${i}${s}`:_s(i,s)}get children(){if(this._children)return this._children;const t=[];if(this.above)for(const r of this.above)t.push(...r.children),t.push(r);if(this.body)for(const r of this.body)t.push(...r.children),t.push(r);return this._children=t,t}render(t){var r;const i=new So({parent:t,mathstyle:"cramp"},this.style),s=(r=Ur.createBox(i,this.body,{type:"inner"}))!=null?r:new zr(null),c=i.scalingFactor,A=i.metrics.defaultRuleThickness/c,k=t.isDisplayStyle?Ml:A,j=new zr(null,{classes:"ML__sqrt-line",style:this.style});j.height=A,j.softWidth=s.width;let J=c*(A+k/4);const Pe=Math.max(c*2*k,s.height+s.depth)+J+A,nt=new So({parent:t},this.style),bt=this.bind(nt,new zr(Sf("inner","\\surd",Pe,!1,nt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!bt)return null;const Et=bt.height+bt.depth-A;Et>s.height+s.depth+J&&(J=(J+Et-(s.height+s.depth))/2),bt.setTop(bt.height-s.height-J);const Cr=this.bind(t,new bl({firstBaseline:[{box:new zr(s)},J-2*A,{box:j},A]})),_n=Ur.createBox(new So({parent:t,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!_n){const Mn=new zr([bt,Cr],{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(bt.height,Cr.height)-Math.max(bt.depth,Cr.depth)),children:[{box:_n}]}),nn=new zr([new zr(wr,{classes:"ML__sqrt-index",type:"ignore"}),bt,Cr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return nn.height=bt.height,nn.depth=bt.depth,this.caret&&(nn.caret=this.caret),this.bind(t,nn)}},Kh=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 uh(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"){uh(e.parent,t);return}i>0&&r[i-1].type==="skip"?r[i-1].width+=t:r.splice(i,0,new Kh(t))}var Hd={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}},jd={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function da(e){Ff(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 ll(e,t){if(!e.children)return e;const r=e.children;da(r);const i=t.getRegisterAsEm("thinmuskip"),s=t.getRegisterAsEm("medmuskip"),c=t.getRegisterAsEm("thickmuskip");return Ff(r,(A,k)=>{var j,J,ue;if(!A)return;const Pe=A.type,nt=k.isTight?(j=jd[Pe])!=null?j:null:(J=Hd[Pe])!=null?J:null,bt=(ue=nt==null?void 0:nt[k.type])!=null?ue:null;bt===3&&uh(k,i),bt===4&&uh(k,s),bt===5&&uh(k,c)}),e}function Ff(e,t,r=void 0){if(!e)return r;e=[...e];for(const i of e)i.type==="lift"?r=Ff(i.children,t,r):i.type==="ignore"?Ff(i.children,t):(t(r,i),Ff(i.children,t),r=i);return r}var Ad=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(M(v({},t),{tooltip:ka(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 M(v({},super.toJson()),{tooltip:r})}render(t){const r=Ur.createBox(new So,this.body);if(!r)return null;const i=new So({parent:t,mathstyle:"displaystyle"},{fontSize:il}),s=gf(ll(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)}},Ju=class cv extends Ur{constructor(t,r){super(M(v({},r),{type:"operator",isFunction:r==null?void 0:r.isFunction})),this.value=t,this.variant=r==null?void 0:r.variant,this.variantStyle=r==null?void 0:r.variantStyle,this.subsupPlacement=r==null?void 0:r.limits}static fromJson(t){return new cv(t.symbol,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.variantStyle&&(t.variantStyle=this.variantStyle),this.subsupPlacement&&(t.limits=this.subsupPlacement),this.value&&(t.symbol=this.value),t}render(t){var r;const i=new zr(this.value,{type:"op",mode:"math",maxFontSize:t.scalingFactor,style:{variant:this.variant,variantStyle:this.variantStyle},isSelected:this.isSelected,letterShapeStyle:t.letterShapeStyle});let s=i;if(this.superscript||this.subscript){const c=(r=this.subsupPlacement)!=null?r:"auto";s=c==="over-under"||c==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:i}):this.attachSupsub(t,{base:i})}return new zr(this.bind(t,s),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&i.push("\\limits"),this.subsupPlacement==="adjacent"&&i.push("\\nolimits"),this.subsupPlacement==="auto"&&i.push("\\displaylimits")),i.push(this.supsubToLatex(t)),uo(i)}};function ka(e){if(_(e))return e.map(i=>ka(i));if(typeof e=="string")return Ur.fromJson(e);e=v({},e);for(const i of wf)e[i]&&(e[i]=ka(e[i]));e.args&&(e.args=zd(e.args)),e.array&&(e.array=ka(e.array));const t=e.type;let r;t==="accent"&&(r=sh.fromJson(e)),t==="array"&&(r=hs.fromJson(e)),t==="box"&&(r=Ac.fromJson(e)),t==="chem"&&(r=wp.fromJson(e)),t==="composition"&&(r=im.fromJson(e)),t==="delim"&&(r=Qc.fromJson(e)),t==="enclose"&&(r=ic.fromJson(e)),t==="error"&&(r=Go.fromJson(e)),t==="extensible-symbol"&&(r=xp.fromJson(e)),t==="genfrac"&&(r=_f.fromJson(e)),t==="group"&&(r=sl.fromJson(e)),t==="latex"&&(r=Ol.fromJson(e)),t==="latexgroup"&&(r=If.fromJson(e)),t==="leftright"&&(r=Ys.fromJson(e)),t==="macro"&&(r=T0.fromJson(e)),t==="macro-argument"&&(r=Wa.fromJson(e)),t==="operator"&&(r=Ju.fromJson(e)),t==="overlap"&&(r=Jc.fromJson(e)),t==="overunder"&&(r=hc.fromJson(e)),t==="placeholder"&&(r=OA.fromJson(e)),t==="prompt"&&(r=Ef.fromJson(e)),t==="phantom"&&(r=PA.fromJson(e)),t==="sizeddelim"&&(r=Bc.fromJson(e)),t==="spacing"&&(r=iu.fromJson(e)),t==="subsup"&&(r=Os.fromJson(e)),t==="surd"&&(r=Cp.fromJson(e)),t==="text"&&(r=Td.fromJson(e)),t==="tooltip"&&(r=Ad.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 wf)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 zd(e){if(e&&Array.isArray(e))return e.map(t=>t==="<null>"?null:typeof t=="object"&&"group"in t?{group:t.group.map(r=>ka(r))}:typeof t=="object"&&"atoms"in t?t.atoms.map(r=>ka(r)):t)}var au={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"]},H0={"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]$/},uA=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,Zm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,Vm=[/^[a-z]$/,/^[A-Z]$/,uA,Zm],Wm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},Jl=class extends Wl{constructor(){super("math")}createAtom(e,t,r){var i,s,c,A;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 J=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&&(J.isFunction=!0),e.startsWith("\\")&&(J.verbatimLatex=e),J}const j=new Ur({type:"mord",mode:"math",command:(A=t.command)!=null?A:e,value:e,style:r});return k&&(j.isFunction=!0),e.startsWith("\\")&&(j.verbatimLatex=e),j}serialize(e,t){const r=b(e,M(v({},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 J;k.test(e.value)&&Wm[(J=t.letterShapeStyle)!=null?J:"tex"][j]==="it"&&(i="italic")}),i==="up"&&(i=void 0);const s=i?r+"-"+i:r;console.assert(au[s]!==void 0);const[c,A]=au[s];return H0[r]&&!H0[r].test(e.value)?(e.value=Xe(e.value,r,i),null):(uA.test(e.value)&&(e.classes+=" lcGreek"),A&&(e.classes+=" "+A),c)}};function b(e,t){const{parent:r}=e[0],i=d(r);return Uu(e,"variant").map(s=>{const c=d(s[0]);let A="";c&&c!==i&&(A={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(A!==void 0));const k=uo(s.map(j=>j._serialize(t)));return A?_s(A,k):k})}function d(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 Jl;function w(e,t){return e.map(r=>r._serialize(t))}function y(e,t){return Uu(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?`{${_s("\\fontshape",s)}${uo(i)}}`:c?_s(c,uo(i)):uo(i)})}function te(e,t){return Uu(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?`{${_s("\\fontseries",s)}${uo(i)}}`:c?_s(c,uo(i)):uo(i)})}function Ee(e,t){return Uu(e,"fontSize").map(r=>{var i,s;const c=te(r,t),A=(s=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(i=r[0].style.fontSize)!=null?i:""])!=null?s:"";return A?`${A} ${uo(c)}`:uo(c)})}function We(e,t,r){return Uu(e,"fontFamily").map(i=>{var s,c;const A=Ee(i,t),k=(c={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(s=i[0].style.fontFamily)!=null?s:""])!=null?c:"";return k?`\\${k}{${uo(A)}}`:i[0].style.fontFamily?`{\\fontfamily{${i[0].style.fontFamily}} ${uo(A)}}`:r?`\\text{${uo(A)}}`:uo(A)})}var ht={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},pt=class extends Wl{constructor(){super("text")}createAtom(e,t,r){return t&&t.definitionType==="symbol"?new Td(e,String.fromCodePoint(t.codepoint),r!=null?r:{}):null}serialize(e,t){return We(e,M(v({},t),{defaultMode:"text"}),t.defaultMode!=="text")}getFont(e,t){var r,i,s,c,A;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+=(A={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?A:"")}return"Main-Regular"}};new pt;var tr=class extends Wl{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 tr;var cr={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:["","=","","="]}},hr={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:["\\","|","",""]}},Ri={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:["=","=","=","="]}},hi={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:["<",">","",""]}},Ga={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:["<",">","|",""]}},Ta={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"]}},Fa={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:["<",">","",""]}},Li={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 Lo(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 qa(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 Ua={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},qn=[],Sc;function ou(){switch(X()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function xo(e){(!e.platform||e.platform===ou())&&qn.push(e)}function Ec(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=Ua[e])!=null?r:"",i}function dd(e){if(e.code)return e;const t=Object.entries(AA().mapping);let r=!1,i=!1,s="";for(let c=0;c<4;c++){for(const[A,k]of t)if(k[c]===e.key){s=A,c===3?(r=!0,i=!0):c===2?r=!0:c===1&&(i=!0);break}if(s)break}return new KeyboardEvent(e.type,M(v({},e),{altKey:r,shiftKey:i,code:s}))}function Yc(e){var t,r;if(!e||e.key==="Unidentified"||e.key==="Dead")return;const i=e.shiftKey&&e.altKey?3:e.altKey?2:e.shiftKey?1:0;for(const s of qn)((t=s.mapping[e.code])==null?void 0:t[i])===e.key?s.score+=1:(r=s.mapping[e.code])!=null&&r[i]&&(s.score=0);qn.sort((s,c)=>c.score-s.score)}function su(e){Sc=qn.find(t=>e.startsWith(t.locale))}function AA(){return Sc!=null?Sc:qn[0]}function Yu(){switch(ou()){case"apple":return hr;case"windows":return qr;case"linux":return Ri}return hr}switch(ou()){case"apple":xo(hr),xo(Un),xo(oo),xo(ea);break;case"windows":xo(qr),xo(hi),xo(Fa),xo(Yi);break;case"linux":xo(Ri),xo(Ga),xo(Li),xo(Ta);break}xo(cr);function dA(e){var t;const r=/macos|ios/.test(X()),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 TA(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 Mu(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 UA(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 $d=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 qu(e){return e.ctrlKey||e.metaKey||["Dead","Process"].includes(e.key)?!1:e.code===""?!0:$d.has(e.code)}function fd(){var e;let t=document.activeElement;for(;(e=t==null?void 0:t.shadowRoot)!=null&&e.activeElement;)t=t.shadowRoot.activeElement;return t}var Kc=class v0{static get scrim(){return v0._scrim||(v0._scrim=new v0),v0._scrim}static open(t){v0.scrim.open(t)}static close(){v0.scrim.close()}static get state(){return v0.scrim.state}static get element(){return v0.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=fd();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:"",fd()!==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,A=!1,k=!1;const j=new AbortController,J=j.signal;return e.addEventListener("keydown",ue=>{if(c||ue.key==="Process"||ue.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(ue.code)){i=null;return}i=ue,s=null,r.onKeystroke(ue)?e.textContent="":i=null},{capture:!0,signal:J}),e.addEventListener("keypress",ue=>{c||(i&&s&&r.onKeystroke(i),s=ue)},{capture:!0,signal:J}),e.addEventListener("compositionstart",ue=>{e.textContent="",c=!0,r.onCompositionStart(ue.data)},{capture:!0,signal:J}),e.addEventListener("compositionupdate",ue=>{c&&r.onCompositionUpdate(ue.data)},{capture:!0,signal:J}),e.addEventListener("compositionend",ue=>{e.textContent="",c&&(c=!1,r.onCompositionEnd(ue.data))},{capture:!0,signal:J}),e.addEventListener("beforeinput",ue=>ue.stopImmediatePropagation(),{signal:J}),e.addEventListener("input",ue=>{var Pe;if(!c&&(e.textContent="",ue.inputType!=="insertCompositionText")){if(ue.inputType==="insertFromPaste"){ue.preventDefault(),ue.stopPropagation();return}r.onInput((Pe=ue.data)!=null?Pe:""),ue.preventDefault(),ue.stopPropagation()}},{signal:J}),e.addEventListener("paste",ue=>{e.focus({preventScroll:!0}),e.textContent="",r.onPaste(ue)||ue.preventDefault(),ue.stopImmediatePropagation()},{signal:J}),e.addEventListener("cut",ue=>r.onCut(ue),{capture:!0,signal:J}),e.addEventListener("copy",ue=>r.onCopy(ue),{capture:!0,signal:J}),e.addEventListener("blur",ue=>{var Pe,nt;if(((nt=(Pe=ue.relatedTarget)==null?void 0:Pe._mathfield)==null?void 0:nt.element)===t){e.focus({preventScroll:!0}),ue.preventDefault(),ue.stopPropagation();return}const bt=Kc.state;if(bt==="open"||bt==="opening"){ue.preventDefault(),ue.stopPropagation();return}if(ue.relatedTarget===ue.target.getRootNode().host){ue.preventDefault(),ue.stopPropagation();return}k||A||(k=!0,i=null,s=null,r.onBlur(),k=!1)},{capture:!0,signal:J}),e.addEventListener("focus",ue=>{k||A||(A=!0,r.onFocus(),A=!1)},{capture:!0,signal:J}),{dispose:()=>j.abort(),cancelComposition:()=>{c&&(e.blur(),requestAnimationFrame(()=>e.focus({preventScroll:!0})))},blur:()=>{typeof e.blur=="function"&&e.blur()},focus:()=>{!A&&typeof e.focus=="function"&&e.focus({preventScroll:!0})},hasFocus:()=>fd()===e,setAriaLabel:ue=>e.setAttribute("aria-label",ue),setValue:ue=>{var Pe;e.textContent=ue,e.style.left="-1000px",(Pe=window.getSelection())==null||Pe.selectAllChildren(e)},moveTo:(ue,Pe)=>{e.style.top=`${Pe}px`,e.style.left=`${ue}px`}}}function Hh(e){var t;if(!e||!qu(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 jh(e){e=dd(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 om(e){if(N()){const t=X(),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=qa(Lo(jh(r))),s=qa({key:r.key,shift:r.shiftKey,alt:r.altKey,ctrl:r.ctrlKey,meta:r.metaKey||r.ctrlKey&&/macos|ios/.test(X()),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=Vp[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(dA)}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=Lo(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=X()==="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&&!om(i))return;if(/^\[.+\]$/.test(r.key))return M(v({},e),{key:qa(r)});const s=Ec(r.key,t);if(!s)return M(v({},e),{key:qa(r)});if(s.shift&&r.shift||s.alt&&r.alt)throw new Error(`The keybinding ${e.key} (${sm(e.command)}) is conflicting with the key combination ${qa(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,M(v({},e),{key:qa(s)})}function sm(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 A=i.find(k=>k.key===c.key&&k.ifMode===c.ifMode);if(A)throw new Error(`Ambiguous key binding ${s.key} (${sm(s.command)}) matches ${A.key} (${sm(A.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 Ds{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"}),_l(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(Xl(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 A=e.at(e.position);if(A instanceof If&&(A=A.lastChild),!(A.parent instanceof If)){const j=new If("");A.parent.addChildAfter(j,A),A=j.firstChild}const k=A.parent.addChildrenAfter(c,A);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 j0(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 A=i,k=!1;for(;A<=c&&!k;){const j=e.at(A);k=!(j instanceof Ol&&j.isSuggestion),k||A++}return[i-1,A-1]}new wg;function lm(e){const t=j0(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 Bp(e,t){var r;const{model:i}=e;lm(e);for(const ue of j0(i))ue.isError=!1;if(!i.selectionIsCollapsed||e.options.popoverPolicy==="off"){Lu(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 A=s.map(ue=>ue.value).join(""),k=ie(e,A);if(k.length===0){if(/^\\[a-zA-Z\*]+$/.test(A))for(const ue of s)ue.isError=!0;Lu(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 J=k[e.suggestionIndex];if(J!==A){const ue=s[s.length-1];ue.parent.addChildrenAfter([...J.slice(A.length-J.length)].map(Pe=>new Ol(Pe,{isSuggestion:!0})),ue),$h(e,{interactive:!0})}qm(e,k)}function cm(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 zh(e,t="accept",r){var i,s;Lu(e);const c=xg(e.model);if(!c)return!1;if(t==="accept-suggestion"||t==="accept-all"){const J=j0(e.model).filter(ue=>ue.isSuggestion);if(J.length!==0){for(const ue of J)ue.isSuggestion=!1;e.model.position=e.model.offsetOf(J[J.length-1])}if(t==="accept-suggestion")return J.length!==0}const k=j0(e.model).filter(J=>!J.isSuggestion).map(J=>J.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"||(Ds.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 Sp(e){var t;let r=document.getElementById(e);return r?r.dataset.refcount=Number(Number.parseInt((t=r.dataset.refcount)!=null?t:"0")+1).toString():(r=document.createElement("div"),r.setAttribute("aria-hidden","true"),r.dataset.refcount="1",r.id=e,document.body.append(r)),r}function Ym(e){var t;const r=document.getElementById(e);if(!r)return;const i=Number.parseInt((t=r.getAttribute("data-refcount"))!=null?t:"0");i<=1?r.remove():r.dataset.refcount=Number(i-1).toString()}function Cg(e,t){const r=new So({from:e.context}),i=new Ur({mode:"math",type:"root",body:dc(t,{context:r})}),s=gf(ll(new zr(i.render(r),{classes:"ML__base"}),r));return Jf(s,{classes:"ML__latex"}).toMarkup()}function qm(e,t){var r;if(t.length===0){Lu(e);return}let i="";for(const[c,A]of t.entries()){const k=A,j=Cg(e,A),J=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>`,J&&(i+=`<span class="ML__popover__keybinding">${J}</span>`),i+="</li>"}const s=Ah(e,`<ul>${i}</ul>`);fA()&&((r=s.querySelector(".ML__popover__current"))==null||r.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var c;s&&!fA()&&(s.classList.add("is-visible"),Ep(e),(c=s.querySelector(".ML__popover__current"))==null||c.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function fA(){const e=document.getElementById("mathlive-suggestion-popover");return e?e.classList.contains("is-visible"):!1}function Ep(e,t){var r;if(!e.element||e.element.mathfield!==e||!fA())return;if(((r=e.model.at(e.model.position))==null?void 0:r.type)!=="latex"){Lu(e);return}if(t!=null&&t.deferred){setTimeout(()=>Ep(e),32);return}const i=ih(e.field);if(!i)return;const s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,A=window.innerWidth-document.documentElement.clientWidth,k=window.innerHeight-document.documentElement.clientHeight,j=window.mathVirtualKeyboard.boundingRect.height,J=document.getElementById("mathlive-suggestion-popover");i.x+J.offsetWidth/2>c-A?J.style.left=`${c-J.offsetWidth-A}px`:i.x-J.offsetWidth/2<0?J.style.left="0":J.style.left=`${i.x-J.offsetWidth/2}px`;const ue=i.y-i.height;s-k-j-i.y<ue?(J.classList.add("ML__popover--reverse-direction"),J.classList.remove("top-tip"),J.classList.add("bottom-tip"),J.style.top=`${i.y-i.height-J.offsetHeight-15}px`):(J.classList.remove("ML__popover--reverse-direction"),J.classList.add("top-tip"),J.classList.remove("bottom-tip"),J.style.top=`${i.y+15}px`)}function Lu(e){e.suggestionIndex=0;const t=document.getElementById("mathlive-suggestion-popover");t&&(t.classList.remove("is-visible"),t.innerHTML="")}function Ah(e,t){let r=document.getElementById("mathlive-suggestion-popover");return r||(r=Sp("mathlive-suggestion-popover"),ld("suggestion-popover"),ld("core"),r.addEventListener("pointerdown",i=>i.preventDefault()),r.addEventListener("click",i=>{let s=i.target;for(;s&&!s.dataset.command;)s=s.parentElement;s&&(zh(e,"reject"),Ds.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"),cd("suggestion-popover"),cd("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 hA=null,Bg,eg,um=((eg=(Bg=globalThis==null?void 0:globalThis.document)==null?void 0:Bg.currentScript)==null?void 0:eg.src)||qg();function Sg(e){return dp(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(e))return new URL(e).href;if(hA===null)try{const t=yield fetch(um,{method:"HEAD"});t.status===200&&(hA=t.url)}catch(t){console.error(`Invalid URL "${e}" (relative to "${um}")`)}return new URL(e,hA!=null?hA:um).href})}function e1(e,t,r={}){return new FontFace(e,`url(${t}.woff2) format('woff2')`,r)}var pA="not-loaded";function t1(){return dp(this,null,function*(){return pA="not-loaded",Am()})}function Am(){return dp(this,null,function*(){var e;if(pA!=="not-loaded")return;if(pA="loading",(e=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?e:!1){pA="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(A=>A.family);if(r.every(A=>i.includes(A))){pA="ready";return}if(!window.MathfieldElement.fontsDirectory){pA="not-loaded";return}const s=yield Sg(window.MathfieldElement.fontsDirectory);if(!s){document.body.classList.add("ML__fonts-did-not-load"),pA="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(A=>e1(A[0].replace(/-[a-zA-Z]+$/,""),`${s}/${A[0]}`,A[1]));try{(yield Promise.all(c.map(k=>{try{return k.load()}catch(j){}}))).forEach(k=>document.fonts.add(k)),pA="ready";return}catch(A){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${s}"`,{cause:A}),document.body.classList.add("ML__fonts-did-not-load")}pA="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 _l(e,t){e&&(e.dirty||(e.dirty=!0,requestAnimationFrame(()=>{od(e)&&e.dirty&&(e.atomBoundsCache=new Map,$h(e,t),e.atomBoundsCache=void 0)})))}function Eg(e,t){var r;t=t!=null?t:{};const i=new So({from:M(v({},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 Jf(ll(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 $h(e,t){if(!od(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 A=_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&&(A+=`<span part=placeholder class="ML__content-placeholder">${Tl(j)}</span>`)}i.innerHTML=window.MathfieldElement.createHTML(A),dm(e,t.interactive),e.dirty=!1}function dm(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)&&pA!=="error"&&pA!=="ready"&&setTimeout(()=>{pA==="ready"?dm(e):setTimeout(()=>dm(e),128)},32);const i=e.model,s=r.offsetWidth,c=r.getBoundingClientRect().width;let A=Math.floor(c)/s;if(A=isNaN(A)?1:A,i.selectionIsCollapsed){Ep(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=ah(e,oh(e,k),A);if(j){j.left/=A,j.right/=A,j.top/=A,j.bottom/=A;const J=document.createElement("div");J.classList.add("ML__contains-highlight"),J.style.position="absolute",J.style.left=`${j.left+1}px`,J.style.top=`${Math.ceil(j.top)}px`,J.style.width=`${Math.ceil(j.right-j.left)}px`,J.style.height=`${Math.ceil(j.bottom-j.top)}px`,r.insertBefore(J,r.childNodes[0])}}return}for(const k of n1(Rm(e,{excludeAtomsWithBackground:!0}))){k.left/=A,k.right/=A,k.top/=A,k.bottom/=A;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=v({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]=M(v({},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 u(e,t){var r;if(!t)return!1;let i,s=[],c=!1,A=!1;_(t)?(i=t[0],s=t.slice(1)):i=t,i=i.replace(/-\w/g,J=>J[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)||lm(e),n[i].fn(e.model,...s),Bp(e),A=!0,c=!0}else if(j==="virtual-keyboard")A=(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(),A=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={}),A&&_l(e),c}function g(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)=>g(e,t)});function O(e){return Bp(e,{atIndex:e.suggestionIndex+1}),!1}function E(e){return Bp(e,{atIndex:e.suggestionIndex-1}),!1}o({complete:zh},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),o({nextSuggestion:O,previousSuggestion:E},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var T="mathlive#virtual-keyboard-message";function Z(e){var t;return e.type!=="message"?!1:((t=e.data)==null?void 0:t.type)===T}var se=class uv{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 uv),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(!Oh(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(v({type:T,action:t},r),this.targetOrigin)}},Re={numeric:{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",rows:[[{latex:"x",shift:"y",variants:["y","z","t","r","x^2","x^n","x^{#?}","x_n","x_i","x_{#?}",{latex:"f(#?)",class:"small"},{latex:"g(#?)",class:"small"}]},{latex:"n",shift:"a",variants:["i","j","p","k","a","u"]},"[separator-5]","[7]","[8]","[9]","[/]","[separator-5]",{latex:"\\exponentialE",shift:"\\ln",variants:["\\exp","\\times 10^{#?}","\\ln","\\log_{10}","\\log"]},{latex:"\\imaginaryI",variants:["\\Re","\\Im","\\imaginaryJ","\\Vert #0 \\Vert"]},{latex:"\\pi",shift:"\\sin",variants:["\\prod",{latex:"\\theta",aside:"theta"},{latex:"\\rho",aside:"rho"},{latex:"\\tau",aside:"tau"},"\\sin","\\cos","\\tan"]}],[{label:"<",latex:"<",class:"hide-shift",shift:{latex:"\\le",label:"\u2264"}},{label:">",latex:">",class:"hide-shift",shift:{latex:"\\ge",label:"\u2265"}},"[separator-5]","[4]","[5]","[6]","[*]","[separator-5]",{class:"hide-shift",latex:"#@^2}",shift:"#@^{\\prime}}"},{latex:"#@^{#0}}",class:"hide-shift",shift:"#@_{#?}"},{class:"hide-shift",latex:"\\sqrt{#0}",shift:{latex:"\\sqrt[#0]{#?}}"}}],["[(]","[)]","[separator-5]","[1]","[2]","[3]","[-]","[separator-5]",{latex:"\\int^{\\infty}_{0}\\!#?\\,\\mathrm{d}x",class:"small hide-shift",shift:"\\int",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{class:"hide-shift",latex:"\\forall",shift:"\\exists"},{label:"[backspace]",width:1}],[{label:"[shift]",width:2},"[separator-5]","[0]","[.]","[=]","[+]","[separator-5]","[left]","[right]",{label:"[action]",width:1}]]},greek:{label:"&alpha;&beta;&gamma;",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>&#x03c6;</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>&#x03c2;</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>&#x03f5;</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>&rho;</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>&tau;</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>&upsilon;</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>&theta;</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>&iota;</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>&omicron;</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>&pi;</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>&alpha;</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>&sigma;</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>&delta;</i>",class:"MLK__tex hide-shift",insert:"\\delta",aside:"delta",shift:"\\Delta"},{latex:"\\phi",class:"MLK__tex hide-shift",insert:"\\phi",aside:"phi",shift:"\\Phi"},{label:"<i>&gamma;</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>&eta;</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>&xi;</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>&kappa;</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>&lambda;</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>&zeta;</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>&chi;</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>&psi;</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>&omega;</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>&beta;</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>&nu;</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>&mu;</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>&#x03b5;</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>&#x03d1;</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>&#x3f0;</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>&#x03d6;</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>&#x03f1;</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"&infin;\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
.minimalist-backdrop {
display: flex;
justify-content: center;
}
.minimalist-container {
--keycap-height: 40px;
--keycap-max-width: 53px;
--keycap-small-font-size: 12px;
background: var(--keyboard-background);
padding: 20px;
border-top-left-radius: 8px;
border-top-right-radius: 8px;
border: 1px solid var(--keyboard-border);
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
}
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},Ze={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},ae;function mt(e,t){var r,i,s;const c=$r.singleton;if(!c)return;const A=Er(e),k=(i=(r=c.getKeycap(A==null?void 0:A.id))==null?void 0:r.variants)!=null?i:"";if(typeof k=="string"&&!st(k)||Array.isArray(k)&&k.length===0){t==null||t();return}const j={};let J="";for(const Cr of Gt(k)){const _n=Sn(Cr),wr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);j[wr]=_n;const[nn,Mn]=Gr(_n);J+=`<div id=${wr} class="item ${Mn}">${nn}</div>`}const ue=document.createElement("div");ue.setAttribute("aria-hidden","true"),ue.className="MLK__variant-panel",ue.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),ue.style.width=`calc(var(--variant-keycap-length) * ${nt} + 12px)`,ue.innerHTML=Tg.createHTML(J),Kc.open({root:(s=c==null?void 0:c.container)==null?void 0:s.querySelector(".ML__keyboard"),child:ue}),ae=new AbortController;const{signal:bt}=ae,Et=e==null?void 0:e.getBoundingClientRect();if(Et){Et.top-ue.clientHeight<0&&(ue.style.width="auto",Pe<=6?ue.style.height="56px":Pe<=12?ue.style.height="108px":Pe<=18?ue.style.height="205px":ue.classList.add("compact"));const Cr=Math.max(0,Math.min(window.innerWidth-ue.offsetWidth,(Et.left+Et.right-ue.offsetWidth)/2)),_n=Et.top-ue.clientHeight+5;ue.style.transform=`translate(${Cr}px, ${_n}px)`,ue.classList.add("is-visible"),requestAnimationFrame(()=>{ue.addEventListener("pointerup",wr=>{const nn=Er(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||(qt(j[nn.id]),At(),t==null||t(),wr.preventDefault())},{capture:!0,passive:!1,signal:bt}),ue.addEventListener("pointerenter",wr=>{const nn=Er(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||nn.classList.add("is-active")},{capture:!0,signal:bt}),ue.addEventListener("pointerleave",wr=>{const nn=Er(wr.target);!(nn!=null&&nn.id)||!j[nn.id]||nn.classList.remove("is-active")},{capture:!0,signal:bt}),window.addEventListener("pointercancel",()=>{At(),t==null||t()},{signal:bt}),window.addEventListener("pointerup",()=>{At(),t==null||t()},{signal:bt})})}}function At(){ae==null||ae.abort(),ae=null,Kc.state==="open"&&Kc.close()}function wt(e){if(e==="foreground-color"){const t=[];for(const r of Object.keys(be))t.push({class:"swatch-button",label:'<span style="border: 3px solid '+be[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 st(e){return Ze[e]!==void 0}function Gt(e){var t;return typeof e!="string"?e:(Ze[e]||(Ze[e]=(t=wt(e))!=null?t:[]),Ze[e])}function Qt(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r} !important`).join(";")}function Ft(e){return Object.keys(e).map(t=>`${t} {${Qt(e[t])}}`).join("")}function Ir(e){if(!e)return"";const t=new So,r=new Ur({mode:"math",type:"root",body:dc(e,{context:t,args:s=>s==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),i=gf(ll(new zr(r.render(t),{classes:"ML__base"}),t));return Jf(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=AA();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"}[ee.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,A=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 J of k)/[a-z]/.test(J)?j.push({label:J,class:"hide-shift",shift:{label:J.toUpperCase()},variants:st(J)?J:void 0}):J==="~"?i!=="dvorak"?j.push("[backspace]"):j.push({label:"[backspace]",width:1}):J==="^"?j.push("[shift]"):J===" "&&j.push("[separator-5]");A.push(j)}return A.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:A})}}function or(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}"`),or(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,A=$(s,["rows"]);t=M(v({},A),{layers:rn({rows:e.rows})})}else if("markup"in e&&typeof e.markup=="string"){const s=e,{markup:c}=s,A=$(s,["markup"]);t=M(v({},A),{layers:rn(e.markup)})}else t=v({},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()){Kr(c)&&(r=!0);const A=c.command;typeof A=="string"&&["undo","redo","cut","copy","paste"].includes(A)&&(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 Lt(e,t){var r,i;let s='<div class="left">';if(e.normalizedLayouts.length>1)for(const[c,A]of e.normalizedLayouts.entries()){const k=A,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=re(k.tooltip))!=null?r:k.tooltip)+"' "),c!==t&&(s+=`data-layer="${k.layers[0].id}"`),s+=`>${(i=k.label)!=null?i:"untitled"}</div>`}return s+="</div>",s}function xr(e,t){let r="";if(e.editToolbar==="none")return"";const s=[];t.selectionIsCollapsed?s.push("undo","redo","pasteFromClipboard"):s.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const c={undo:`<div class='action ${t.canUndo===!1?"disabled":""}'
data-command='"undo"'
data-tooltip='${re("tooltip.undo")}'>
<svg><use xlink:href='#svg-undo' /></svg>
</div>`,redo:`<div class='action ${t.canRedo===!1?"disabled":""}'
data-command='"redo"'
data-tooltip='${re("tooltip.redo")}'>
<svg><use xlink:href='#svg-redo' /></svg>
</div>`,cutToClipboard:`
<div class='action'
data-command='"cutToClipboard"'
data-tooltip='${re("tooltip.cut to clipboard")}'>
<svg><use xlink:href='#svg-cut' /></svg>
</div>
`,copyToClipboard:`
<div class='action'
data-command='"copyToClipboard"'
data-tooltip='${re("tooltip.copy to clipboard")}'>
<svg><use xlink:href='#svg-copy' /></svg>
</div>
`,pasteFromClipboard:`
<div class='action'
data-command='"pasteFromClipboard"'
data-tooltip='${re("tooltip.paste from clipboard")}'>
<svg><use xlink:href='#svg-paste' /></svg>
</div>
`};return r+=s.map(A=>c[A]).join(""),r}function it(e){for(const t of e)xt(t)}function xt(e){const t=$r.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(){ld("virtual-keyboard"),ld("core"),Am()}function jt(){cd("core"),cd("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((A,k)=>Jr(e,A,k)).join(""));const i=document.createElement("div");i.className="MLK__backdrop",i.appendChild(r),t.appendChild(i),t.addEventListener("pointerdown",It,{passive:!1});const s=t.querySelectorAll(".ML__edit-toolbar");if(s)for(const A of s)A.addEventListener("click",k=>{var j,J;let ue=k.target,Pe="";for(;ue&&!Pe;)Pe=(j=ue==null?void 0:ue.getAttribute("data-command"))!=null?j:"",ue=(J=ue==null?void 0:ue.parentElement)!=null?J: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 A of c)A.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(Lt(e,r)),t.displayEditToolbar&&i.push('<div class="ML__edit-toolbar right"></div>'),i.push("</div>")),i.push(Mr(e,s)),i.push("</div>");return i.join("")}function Mr(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>${Ft(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),[A,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+=`>${A}</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,A,k,j;let J="",ue=(r=e.class)!=null?r:"";if(t.shifted&&Kr(e)&&(ue+=" is-active"),t.shifted&&"shift"in e)typeof e.shift=="string"?J=Ir(e.shift):typeof e.shift=="object"&&(J=e.shift.label?e.shift.label:(i=Ir(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?i:""),typeof e.shift=="object"&&(ue=(c=(s=e.shift.class)!=null?s:e.class)!=null?c:"");else{if(J=e.label?e.label:(A=Ir(e.latex||e.insert||"")||e.key)!=null?A:"",e.shift){let Pe;typeof e.shift=="string"?Pe=Ir(e.shift):e.shift.label?Pe=e.shift.label:Pe=(k=Ir(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?k:"",J+=`<span class="MLK__shift">${Pe}</span>`}e.aside&&(J+=`<aside>${e.aside}</aside>`)}return e.layer&&!/layer-switch/.test(ue)&&(ue+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(ue)||(ue+=" MLK__keycap"),!/\bw[0-9]+\b/.test(ue)&&e.width&&(ue+=(j={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[e.width])!=null?j:""),[J,ue||"MLK__keycap"]}var Zn={"[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="[,]"),!Zn[e])return{latex:e};e={label:e}}let r;return"label"in e&&e.label&&Zn[e.label]&&(r=M(v(v({},Zn[e.label]),e),{label:Zn[e.label].label})),"key"in e&&e.key&&Zn[e.key]&&(r=M(v(v({},Zn[e.key]),e),{key:Zn[e.key].key})),r?(r.command==="insertDecimalSeparator"&&(r.label=(t=window.MathfieldElement.decimalSeparator)!=null?t:"."),e.label==="[action]"&&(r=v(v({},r),window.mathVirtualKeyboard.actionKeycap)),e.label==="[shift]"&&(r=v(v({},r),window.mathVirtualKeyboard.shiftKeycap)),e.label==="[backspace]"&&(r=v(v({},r),window.mathVirtualKeyboard.backspaceKeycap)),e.label==="[tab]"&&(r=v(v({},r),window.mathVirtualKeyboard.tabKeycap)),r):e}var tt;function It(e){var t;if(e.button!==0)return;const r=$r.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=Er(e.target);if(!(s!=null&&s.id))return;const c=r.getKeycap(s.id);if(!c)return;console.assert(e.type==="pointerdown");const A=new AbortController,k=A.signal;s.classList.add("is-pressed"),s.addEventListener("pointerenter",Nt(A),{capture:!0,signal:k}),s.addEventListener("pointerleave",Nt(A),{capture:!0,signal:k}),s.addEventListener("pointercancel",Nt(A),{signal:k}),s.addEventListener("pointerup",Nt(A),{signal:k}),Kr(c)&&(s.classList.add("is-active"),r.shiftPressCount++),c.variants&&(tt&&clearTimeout(tt),tt=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,()=>{A.abort(),s==null||s.classList.remove("is-active")}))},300)),e.preventDefault()}function Nt(e){return t=>{const r=Er(t.target);if(!(r!=null&&r.id))return;const i=$r.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"),Kr(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"),Kr(s)&&(i.shiftPressCount--,r.classList.toggle("is-active",i.isShifted));return}if(t.type==="pointerup"){tt&&clearTimeout(tt),Kr(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"}]):qt(s.shift):qt(s),i.shiftPressCount===1&&!t.shiftKey&&(i.shiftPressCount=0)),e.abort(),t.preventDefault();return}}}}function qt(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=$r.singleton)==null||t.executeCommand(r)}function Ar(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 Er(e){if(!e)return;let t=e;for(;t&&!Ar(t);)t=t.parentElement;return t!=null?t:void 0}function Kr(e){return!!e.class&&/(^|\s)shift($|\s)/.test(e.class)}var $r=class Av{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 A=mn();A&&!A.readOnly&&A.mathVirtualKeyboardPolicy==="auto"&&R()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",s=>{s.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{mn()||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=>or(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 Av}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,A]=Gr(s,{shifted:this.isShifted});i.innerHTML=window.MathfieldElement.createHTML(c),i.className=A}}}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 A=s.offsetHeight-1;i.style.paddingBottom=c?`calc(${c} + ${A}px)`:`${A}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}),At(),jt(),(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(!Oh(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:v({type:T,action:t},r)}));return}if(i)i.postMessage(v({type:T,action:t},r),{targetOrigin:this.targetOrigin});else if(r.command&&this.dispatchEvent(new CustomEvent("math-virtual-keyboard-command",{detail:r.command})),t==="execute-command"&&Array.isArray(r.command)&&r.command[0]==="insert"){const s=r.command[1].split("");for(const c of s)this.dispatchEvent(new KeyboardEvent("keydown",{key:c,bubbles:!0})),this.dispatchEvent(new KeyboardEvent("keyup",{key:c,bubbles:!0}))}}stateWillChange(t){return this.dispatchEvent(new CustomEvent("before-virtual-keyboard-toggle",{detail:{visible:t},bubbles:!0,cancelable:!0,composed:!0}))}stateChanged(){this.dispatchEvent(new Event("virtual-keyboard-toggle")),this._visible||(this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect}))}focus(){this.sendMessage("focus",{})}blur(){this.sendMessage("blur",{})}updateToolbar(t){const r=this._element;if(!r)return;r.classList.toggle("is-math-mode",t.mode==="math"),r.classList.toggle("is-text-mode",t.mode==="text"),r.classList.toggle("can-undo",t.canUndo),r.classList.toggle("can-redo",t.canRedo),r.classList.toggle("can-copy",!t.selectionIsCollapsed),r.classList.toggle("can-copy",!t.selectionIsCollapsed),r.classList.toggle("can-paste",!0);const i=r.querySelectorAll(".ML__edit-toolbar");if(i)for(const s of i)s.innerHTML=xr(this,t)}update(t){this._style=t.style,this.updateToolbar(t)}connect(){this.connectedMathfieldWindow=window}disconnect(){this.connectedMathfieldWindow=void 0}executeCommand(t){let r,i=[],s=l(t);return _(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 mn(){var e,t;let r=fd(),i=null;for(;r;){if("host"in r&&((t=(e=r.host)==null?void 0:e.tagName)==null?void 0:t.toLowerCase())==="math-field"){i=r.host;break}r=r.parentNode}return i}if(N()&&!("mathVirtualKeyboard"in window))if(window===window.top){const e=$r.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>se.singleton,configurable:!0});function jn(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,A]=i.split(",").map(k=>parseInt(k.trim()));t.scriptDepth=[c,A]}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=$r.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>c})}s="manual"}t.mathVirtualKeyboardPolicy=s;break;case"letterShapeStyle":e.letterShapeStyle==="auto"?ee.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=Fe(e.macros);break;default:_(e[r])?t[r]=[...e[r]]:typeof e[r]=="object"&&!(e[r]instanceof Element)&&r!=="computeEngine"?t[r]=v({},e[r]):t[r]=e[r]}return t}function gi(e,t){let r;typeof t=="string"?r=[t]:t===void 0?r=Object.keys(e):r=t;const i={};for(const s of r)e[s]===null?i[s]=null:_(e[s])?i[s]=[...e[s]]:typeof e[s]=="object"&&!(e[s]instanceof Element)&&s!=="computeEngine"?i[s]=v({},e[s]):i[s]=e[s];return typeof t=="string"?i[t]:i}function Ci(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Ue,backgroundColorMap:q,letterShapeStyle:ee.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:Zp,inlineShortcuts:fp,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:Um,value:""}}function Sa(e){return e.defaultMode==="inline-math"?"math":e.defaultMode}function gt(e,t){!e||!t||(_(e)?e.forEach(r=>gt(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),gt(e.body,t),gt(e.above,t),gt(e.below,t),gt(e.subscript,t),gt(e.superscript,t)))}function ki(e,t,r,i){function s(A,k){for(const j of c)if(j.style[A]!==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 A of c)A.applyStyle(r);return!0}function No(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 im(t,{mode:r.mode});s.caret=i,r.parent.addChildAfter(s,r),e.position+=1}}function Ha(e){const t=e.at(e.position);t.type==="composition"&&(t.parent.removeChild(t),e.position-=1)}ze(["math","displaymath"],Pi),ze("center",Pi),he("displaylines","",{parse:e=>{const t=[];let r=[];e.beginContext({tabular:!0});do{if(e.end()||e.match("<}>"))break;e.matchColumnSeparator()||e.matchRowSeparator()?(t.push([r]),r=[]):r.push(...e.scan(i=>["<}>","&","\\cr","\\\\","\\tabularnewline"].includes(i)))}while(!0);return e.endContext(),t.push([r]),t},createAtom:e=>new hs("lines",e.args,[],{leftDelim:".",rightDelim:".",columns:[{align:"l"}]})}),vt("array","{columns:colspec}",(e,t,r,i)=>new hs(e,Da(t),r,{columns:i[0],mathstyleName:"textstyle"})),vt(["equation","equation*","subequations"],"",(e,t,r)=>new hs(e,Da(t),r,{columns:[{align:"c"}]})),vt(["multline","multline*"],"",Pi),vt(["align","align*","aligned","eqnarray"],"",Pi),vt("split","",Pi),vt(["gather","gathered"],"",Pi),vt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",Pi),vt(["smallmatrix","smallmatrix*"],"[columns:colspec]",Pi),vt(["cases","dcases","rcases"],"",Pi);function Rn(e){for(const t of e)for(const r of t)if(r.length>0)return!1;return!0}function Da(e,t=1){return Rn(e)?Array(t).fill([[new Ur({type:"first"}),new OA]]):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 Pi(e,t=[[[]]],r=[],i=[]){switch(t=Da(t,["split","align","align*","aligned","eqnarray"].includes(e)?2:1),e){case"math":return new hs(e,t,r,{mathstyleName:"textstyle"});case"displaymath":return new hs(e,t,r,{mathstyleName:"textstyle"});case"center":return new hs(e,t,r,{columns:[{align:"c"}]});case"multline":case"multline*":return new hs(e,t,r,{columns:[{align:"m"}],leftDelim:".",rightDelim:"."});case"split":return new hs(e,t,r,{columns:[{align:"r"},{align:"l"}],minColumns:2});case"gather":case"gathered":return new hs(e,t,r,{columns:[{gap:.25},{align:"c"},{gap:0}]});case"pmatrix":case"pmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"(",rightDelim:")",columns:xa(i[0])});case"bmatrix":case"bmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:xa(i[0])});case"Bmatrix":case"Bmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:xa(i[0])});case"vmatrix":case"vmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:xa(i[0])});case"Vmatrix":case"Vmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:xa(i[0])});case"matrix":case"matrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:xa(i==null?void 0:i[0])});case"smallmatrix":case"smallmatrix*":return new hs(e,t,r,{mathstyleName:"scriptstyle",columns:xa(i==null?void 0:i[0]),colSeparationType:"small",arraystretch:.5});case"cases":case"dcases":return new hs(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 hs(e,t,r,{arraystretch:1.2,leftDelim:".",rightDelim:"\\rbrace",columns:[{align:"l"},{gap:1},{align:"l"}]});case"lines":return new hs(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 A=2;for(;A<s;)c.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),A+=2;return c.push({gap:0}),new hs(e,t,r,{arraycolsep:0,columns:c,minColumns:2})}}return new hs(e,t,r,{mathstyleName:"textstyle"})}function xa(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 La(e,t){let r=e.at(e.position);for(;r&&!(r.parent instanceof hs);)r=r.parent;if(r&&r.type==="array"&&r.environmentName,!r||!(r.parent instanceof hs)){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=Ea()),s.length===0&&(s=Ea());let A;return t.endsWith("column")?(A=Pi("split",[[c,s]]),e.root=A,is(A,0,0)?Xa(e,A,0,0):is(A,0,1)?Xa(e,A,0,1):e.position=e.offsetOf(i)):(A=Pi("lines",[[c],[s]]),e.root=A,is(A,0,0)?Xa(e,A,0,0):is(A,1,0)?Xa(e,A,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)]),A=e.extractAtoms([e.offsetOf(s.firstChild),e.position]);A.length===0&&(A=Ea()),c.length===0&&(c=Ea());let k="pmatrix";const j=s.leftDelim,J=s.rightDelim;j==="("&&(J===")"||J==="?")?k="pmatrix":(j==="["||j==="\\lbrack")&&(J==="]"||J==="\\rbrack"||J==="?")?k="bmatrix":j==="\\vert"&&J==="\\vert"?k="vmatrix":j==="\\Vert"&&J==="\\Vert"?k="Vmatrix":(j==="{"||j==="\\lbrace")&&(J==="."||J==="?")&&(k="cases");const ue=Pi(k,t.endsWith("column")?[[A,c]]:[[A],[c]]);return s.parent.addChildBefore(ue,s),s.parent.removeChild(s),is(ue,0,0)?Xa(e,ue,0,0):t.endsWith("column")?is(ue,0,1)?Xa(e,ue,0,1):e.position=e.offsetOf(r):is(ue,1,0)?Xa(e,ue,1,0):e.position=e.offsetOf(r),[void 0,[0,0]]}}return r&&r.parent instanceof hs?[r.parent,r.parentBranch]:[void 0,[0,0]]}function is(e,t,r){const i=e.getCell(t,r);return!i||i.length!==2?!1:i[1].type==="placeholder"}function as(e,t,r,i){const s=t.getCell(r,i);return s?[e.offsetOf(s[0]),e.offsetOf(s[s.length-1])]:-1}function Xa(e,t,r,i){const s=as(e,t,r,i);typeof s!="number"&&e.setSelection(s)}function Xo(e,t,r,i,s){const c=t.getCell(r,i);c&&e.setPositionHandlingPlaceholder(e.offsetOf(c[s==="start"?0:c.length-1]))}function Qo(e,t){const[r,[i,s]]=La(e,t);if(r)switch(t){case"after row":r.addRowAfter(i),Xo(e,r,i+1,0,"end");break;case"after column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnAfter(s),Xo(e,r,i,s+1,"end");break;case"before row":r.addRowBefore(i),Xo(e,r,i,0,"start");break;case"before column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnBefore(s),Xo(e,r,i,s,"start");break}}function ha(e){return e.contentWillChange({inputType:"insertText"})?(Qo(e,"after row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Eo(e){return e.contentWillChange({inputType:"insertText"})?(Qo(e,"before row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Ca(e){return e.contentWillChange({inputType:"insertText"})?(Qo(e,"after column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function pc(e){return e.contentWillChange({inputType:"insertText"})?(Qo(e,"before column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function ws(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 Po(e,t){let r=e.at(e.position);for(;r&&!(Array.isArray(r.parentBranch)&&r.parent instanceof hs);)r=r.parent;if(Array.isArray(r==null?void 0:r.parentBranch)&&(r==null?void 0:r.parent)instanceof hs){const i=r.parent,s=r.parentBranch;let c;switch(t){case"row":if(i.rowCount>1){i.removeRow(s[0]);const A=i.getCell(Math.max(0,s[0]-1),s[1]);c=e.offsetOf(A[A.length-1])}break;case"column":if(i.colCount>i.minColumns){i.removeColumn(s[1]);const A=i.getCell(s[0],Math.max(0,s[1]-1));c=e.offsetOf(A[A.length-1])}break}c&&e.setPositionHandlingPlaceholder(c)}}function Ko(e){return e.contentWillChange({inputType:"deleteContent"})?(Po(e,"row"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}function Nl(e){return e.contentWillChange({inputType:"deleteContent"})?(Po(e,"column"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}o({addRowAfter:ha,addColumnAfter:Ca,addRowBefore:Eo,addColumnBefore:pc,removeRow:Ko,removeColumn:Nl,setEnvironment:ws},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function Ea(){return[new OA]}var dl=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}};dl.maximumDepth=1e3;var Ja=dl;function fo(e,t,r){if(e.at(t).mode!=="text")return t;const i=r==="backward"?-1:1;let s;if(f.test(e.at(t).value)){let c=t,A;do A=e.at(c).mode==="text"&&f.test(e.at(c).value),c+=i;while(e.at(c)&&A);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 A=!0;do A=e.at(c).mode==="text"&&!/\s/.test(e.at(c).value),c+=i;while(e.at(c)&&A);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 A=!0;for(;e.at(c)&&A;)A=e.at(c).mode==="text"&&/\s/.test(e.at(c).value),A&&(s=c),c+=i;s=e.at(c)?c-2*i:c-i}return s-(i>0?0:1)}function al(e,t,r){var i,s,c,A,k,j,J;const ue=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 Td)nt=fo(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 bt=0;do Pe.type==="mopen"?bt+=1:Pe.type==="mclose"&&(bt-=1),Pe=Pe.rightSibling;while(!Pe.isLastSibling&&bt!==0);nt=e.offsetOf(Pe.leftSibling)}else if(t==="backward"&&Pe.type==="mclose"){let bt=0;do Pe.type==="mopen"?bt+=1:Pe.type==="mclose"&&(bt-=1),Pe=Pe.leftSibling;while(!Pe.isFirstSibling&&bt!==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 bt=Pe.type;Pe.type==="subsup"&&(nt=e.offsetOf(e.at(nt).leftSibling)),nt-=1;let Et=(s=e.at(nt))==null?void 0:s.type;for(;nt>=0&&Et===bt;)((c=e.at(nt))==null?void 0:c.type)==="subsup"?nt=e.offsetOf(e.at(nt).leftSibling):nt-=1,Et=e.at(nt).type}else{const{type:bt}=Pe;let Et=(A=e.at(nt))==null?void 0:A.type;const{lastOffset:Cr}=e;for(;nt<=Cr&&(Et===bt||Et==="subsup");){for(;((k=e.at(nt).rightSibling)==null?void 0:k.type)==="subsup";)nt=e.offsetOf(e.at(nt).rightSibling);nt+=1,Et=(j=e.at(nt))==null?void 0:j.type}nt-=1}if((J=r==null?void 0:r.extend)!=null&&J){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",ue),e.mathfield.stopCoalescingUndo(),!0}function no(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 Mf(e,r);if(t==="downward")return Zd(e,r);if(r.extend){let k=Oa(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=no(e,t);return e.mathfield.stopCoalescingUndo(),k}let c=e.position;const A=c;if(e.collapseSelection(t)?(c=e.position,Hs(e,c)||(c=Oa(e,c,t))):c=Oa(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",A),!0}function Oa(e,t,r){return t=t+(r==="forward"?1:-1),t<0||t>e.lastOffset||Hs(e,t)?t:Oa(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=k0(e.getHTMLElement(t[s])).right,A=Math.abs(r-c);if(A<=i)i=A;else break}return t[s-1]}function Hc(e,t,r,i,s){const c=e.mathfield.hasEditablePrompts,A=c?r.filter(J=>J.type==="prompt"&&!J.captureSelection):r,k=k0(e.mathfield.getHTMLElement(t)).right,j=e.offsetOf(Zh(e.mathfield,A,k))-(c?1:0);if(i){const[J,ue]=e.selection.ranges[0];let Pe;j<(s==="up"?J:ue)?Pe={ranges:[[j,ue]],direction:"backward"}:Pe={ranges:[[J,j]],direction:"forward"},e.setSelection(Pe)}else e.setPositionHandlingPlaceholder(j);e.announce(`move ${s}`)}function Mf(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,J;let ue=!0;return e.silenceNotifications||(ue=(J=(j=e.mathfield.host)==null?void 0:j.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?J:!0),e.announce(ue?"plonk":"line"),ue},A=e.at(e.position);let k=A;for(;k&&k.parentBranch!=="below"&&!(Array.isArray(k.parentBranch)&&k.parent instanceof hs);)k=k.parent;if(Array.isArray(k==null?void 0:k.parentBranch)&&k.parent instanceof hs){const j=k.parent;if(k.parentBranch[0]<1)return c();const J=k.parentBranch[0]-1,ue=j.array[J][k.parentBranch[1]];if(!ue.some(nt=>nt.type==="prompt"&&!nt.captureSelection)&&e.mathfield.hasEditablePrompts)return c();Hc(e,A,ue,s,"up")}else if(k){const j=(i=k.parent.branch("above"))!=null?i:k.parent.createBranch("above");if(!j.some(ue=>ue.type==="prompt"&&ue.placeholderId)&&e.mathfield.hasEditablePrompts)return c();Hc(e,A,j,s,"up")}else return c();return e.mathfield.stopCoalescingUndo(),!0}function Zd(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,J;let ue=!0;return e.silenceNotifications||(ue=(J=(j=e.mathfield.host)==null?void 0:j.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?J:!0),e.announce(ue?"plonk":"line"),ue},A=e.at(e.position);let k=A;for(;k&&k.parentBranch!=="above"&&!(Array.isArray(k.parentBranch)&&k.parent instanceof hs);)k=k.parent;if(Array.isArray(k==null?void 0:k.parentBranch)&&k.parent instanceof hs){const j=k.parent;if(k.parentBranch[0]+1>j.array.length-1)return c();const J=k.parentBranch[0]+1,ue=j.array[J][k.parentBranch[1]];if(!ue.some(nt=>nt.type==="prompt"&&!nt.captureSelection)&&e.mathfield.hasEditablePrompts)return c();Hc(e,A,ue,s,"down")}else if(k){const j=(i=k.parent.branch("below"))!=null?i:k.parent.createBranch("below");if(!j.some(ue=>ue.type==="prompt")&&e.mathfield.hasEditablePrompts)return c();Hc(e,A,j,s,"down")}else return c();return!0}function ja(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 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=!1):i=!0,r=r.parent;return i?t:0}function kf(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 mA(e){var t;if(e.collapseSelection(),Lf(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 Os({style:r.computedStyle}),r),r=r.rightSibling),r.createBranch("superscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.superscript[0]))),!0}function gA(e){var t;if(e.collapseSelection(),kf(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 Os({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 ac(){function e(j){const J=[],ue=[];return[...j.querySelectorAll(`input, select, textarea, a[href], button,
[tabindex], audio[controls], video[controls],
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(t).forEach((nt,bt)=>{const Et=i(nt);Et===0?J.push(nt):ue.push({documentOrder:bt,tabIndex:Et,node:nt})}),ue.sort((nt,bt)=>nt.tabIndex===bt.tabIndex?nt.documentOrder-bt.documentOrder:nt.tabIndex-bt.tabIndex).map(nt=>nt.node).concat(J)}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 J;const ue=Number.parseInt((J=j.getAttribute("tabindex"))!=null?J:"NaN",10);return Number.isNaN(ue)?j.contentEditable==="true"||(j.nodeName==="AUDIO"||j.nodeName==="VIDEO")&&j.getAttribute("tabindex")===null?0:j.tabIndex:ue}function s(j){return j.tagName.toUpperCase()==="INPUT"&&j.type==="radio"&&!A(j)}function c(j,J){for(const ue of j)if(ue.checked&&ue.form===J)return ue;return null}function A(j){var J;if(!j.name)return!0;const Pe=((J=j.form)!=null?J:j.ownerDocument).querySelectorAll('input[type="radio"][name="'+j.name+'"]'),nt=c(Pe,j.form);return!nt||nt===j}function k(j){if(!N()||j===document.activeElement||j.contains(document.activeElement))return!1;if(getComputedStyle(j).visibility==="hidden")return!0;const J=j.getBoundingClientRect();if(J.width===0||J.height===0)return!0;for(;j;){if(getComputedStyle(j).display==="none")return!0;j=j.parentElement}return!1}return N()?e(document.body):[]}function Is(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"?Is(e,[t.leftSibling,t]):Is(e,[t,t.leftSibling])}function fl(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 Vd(e,t,r=!0){var i,s;const c=t==="forward"?1:-1;e.at(e.anchor).type==="placeholder"&&no(e,t);let A;const k=e.at(e.anchor).parentPrompt;k?t==="forward"?A=e.offsetOf(k)+1:A=e.offsetOf(k.leftSibling):A=Math.max(e.position+c,0);const j=Wd(e,A,t);if(!j||t==="forward"&&e.offsetOf(j)<A||t==="backward"&&e.offsetOf(j)>A){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 ue=ac();if(!document.activeElement||ue.length<=1)return e.announce("plonk"),!1;let Pe=ue.indexOf(document.activeElement)+c;return Pe<0&&(Pe=ue.length-1),Pe>=ue.length&&(Pe=0),ue[Pe].focus(),e.mathfield.stopCoalescingUndo(),!0}return fl(e,j),!0}function Wd(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?gA(e):mA(e);return e.mathfield.stopCoalescingUndo(),k}i.branch(c)||i.createBranch(c);const A=e.setSelection(e.getBranchRange(e.offsetOf(i),c));return e.mathfield.stopCoalescingUndo(),A},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=>ja(e),moveToNextChar:e=>no(e,"forward"),moveToPreviousChar:e=>no(e,"backward"),moveUp:e=>no(e,"upward"),moveDown:e=>no(e,"downward"),moveToNextWord:e=>al(e,"forward"),moveToPreviousWord:e=>al(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 Vd(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 bt=c;for(;((t=bt.rightSibling)==null?void 0:t.mode)==="text";)bt=bt.rightSibling;if(nt&&bt)return Is(e,[nt,bt])}if(c.rightSibling.mode==="text"){let nt=c;for(;nt&&nt.mode==="text";)nt=nt.rightSibling;return nt?(fl(e,(r=nt.leftSibling)!=null?r:nt),e.mathfield.switchMode("math"),!0):fl(e,e.lastOffset)}}const k=e.at(e.anchor).parentPrompt,j=k?e.offsetOf(k)+1:Math.max(e.position+1,0),J=Wd(e,j,"forward");if(J)return fl(e,J);const ue=RA(e,c,nt=>nt.type==="leftright"||nt.type==="text","forward");if(ue){if(ue.mode==="text"){let nt=ue;for(;nt&&nt.mode==="text";)nt=nt.rightSibling;return Is(e,[(i=ue.leftSibling)!=null?i:ue,(s=nt.leftSibling)!=null?s:nt])}return Is(e,ue)}const Pe=c.parent;if(Pe){if(Pe.type==="leftright"||Pe.type==="surd")return Is(e,Pe);if(c.parentBranch==="superscript"&&Pe.subscript)return Is(e,Pe.subscript);if(c.parentBranch==="above"&&Pe.below)return Is(e,Pe.below);if(c.parentBranch==="superscript"||c.parentBranch==="subscript")return fl(e,Pe);if(c.parentBranch==="above"||c.parentBranch==="below")return Is(e,Pe)}return fl(e,e.lastOffset)},moveToPreviousGroup:e=>{var t;if(e.position===0&&e.anchor===0)return Vd(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 Is(e,[k,j])}for(;r&&r.mode==="text";)r=r.leftSibling;return r?fl(e,r):fl(e,0)}const s=e.at(e.anchor).parentPrompt,c=s?e.offsetOf(s.leftSibling):Math.max(e.position-1,0),A=Wd(e,c,"backward");if(A)return fl(e,A);if(i==="math"){const k=RA(e,r,J=>J.type==="leftright"||J.type==="text","backward");if(k){if(k.mode==="text"){let J=k;for(;J&&J.mode==="text";)J=J.leftSibling;return Is(e,[k,J])}return Is(e,k)}const j=r.parent;if(j){if(j.type==="leftright"||j.type==="surd")return Is(e,j);if(r.parentBranch==="subscript"&&j.superscript)return Is(e,j.superscript);if(r.parentBranch==="below"&&j.above)return Is(e,j.above);if(r.parentBranch==="superscript"||r.parentBranch==="subscript")return fl(e,j);if(r.parentBranch==="above"||r.parentBranch==="below")return Is(e,j)}return fl(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:mA,moveToSubscript:gA},{target:"model",changeSelection:!0}),o({moveToNextPlaceholder:e=>Vd(e,"forward"),moveToPreviousPlaceholder:e=>Vd(e,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function RA(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 vA(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 A=e.at(i);s=t===0||A===void 0||A.type==="first"||A.mode!=="math"||!(A.type&&/mord|mpunct|operator/.test(A.type)||A.type==="mop"&&/[a-zA-Z ]+/.test(A.value))||!A.hasEmptyBranch("superscript")||!A.hasEmptyBranch("subscript")||typeof r=="function"&&!r(A),s||(A.mode="text",A.command=A.value,A.verbatimLatex=void 0,c+=A.value),i-=1,t-=1}e.contentDidChange({data:c,inputType:"insertText"})}function lu(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 A=e.at(i);s=t===0||!A||A.type==="first"||A.isFirstSibling||A.mode!=="text"||A.value===" "||typeof r=="function"&&!r(A),s||(c.push(Ur.serialize([A],{defaultMode:"math"})),A.mode="math"),i-=1,t-=1}bA(e),e.contentDidChange({data:uo(c),inputType:"insertText"})}function bA(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 QA(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 Vh(e,t,r){const{model:i}=e;if(i.mode==="latex"||!i.at(i.position).isLastSibling||!r||!qu(r))return!1;const s=Hh(r);if(!i.selectionIsCollapsed)return!!(e.model.mode==="text"&&/[/_^]/.test(s));const c=QA(i)+s;if(e.model.mode==="text"){if(t==="Esc"||/[/\\]/.test(s))return!0;if(/[\^_]/.test(s))return/(^|\s)[a-zA-Z][^_]$/.test(c)&&lu(i,1),!0;const A={")":"(","}":"{","]":"["}[s],{parent:k}=i.at(i.position);if(A&&k instanceof Ys&&k.leftDelim===A)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 lu(i,1),!1;if(/\D\.[^\d\s]$/.test(c)){lu(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 lu(i,1),!0;if(/\([a-z][,;]$/.test(c))return lu(i,2),!0;if(/[\d+\-=><*|]$/.test(s))return bA(i),!0}else{if(t==="[Space]")return vA(i,void 0,A=>/[a-z][:,;.]$/.test(A.value)),!0;if(/[a-zA-Z]{3,}$/.test(c)&&!/(dxd|abc|xyz|uvw)$/.test(c))return vA(i,void 0,A=>/[a-zA-Z]/.test(A.value)),!0;if(/(^|\W)(if)$/i.test(c))return vA(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 vA(i,void 0,A=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(A.value)),!0;if(s==="?"||s==="."&&!/[\d-+]\.$/.test(c))return!0}return!1}function Gd(e,t){if(!e.isSelectionEditable||!e.keystrokeCaptionVisible)return;const r=Gh(),i=e.element.getBoundingClientRect();r.style.left=`${i.left}px`,r.style.top=`${i.top-64}px`,r.innerHTML=window.MathfieldElement.createHTML("<span>"+(dA(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 Wh(e){if(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaptionVisible){const t=Gh();t.innerHTML=""}else{const t=Sp("mathlive-keystroke-caption-panel");t.style.visibility="hidden"}return!1}function Gh(){const e=document.getElementById("mathlive-keystroke-caption-panel");return e||(ld("keystroke-caption"),ld("core"),Sp("mathlive-keystroke-caption-panel"))}function z0(){document.getElementById("mathlive-keystroke-caption-panel")&&(Ym("mathlive-keystroke-caption-panel"),cd("core"),cd("keystroke-caption"))}function Xh(e,t){var r,i,s;const{model:c}=e,A=jh(t);if(t.isTrusted){Yc(t);const bt=AA();e.keyboardLayout!==bt.id&&(e.keyboardLayout=bt.id,e._keybindings=void 0)}if(clearTimeout(e.inlineShortcutBufferFlushTimer),e.inlineShortcutBufferFlushTimer=0,Gd(e,A),t.isTrusted&&t.defaultPrevented)return e.flushInlineShortcutBuffer(),!1;let k,j="",J;const ue=e.inlineShortcutBuffer;if(e.isSelectionEditable){if(c.mode==="math")if(A==="[Backspace]")ue.pop();else if(!qu(t))e.flushInlineShortcutBuffer();else{const bt=Hh(t),Et=[...(i=(r=ue[ue.length-1])==null?void 0:r.keystrokes)!=null?i:[],bt];ue.push({state:c.getState(),keystrokes:Et,leftSiblings:Ip(e)});let Cr=0,_n="";for(;!k&&Cr<Et.length;)J=ue.length-(Et.length-Cr),_n=Et.slice(Cr).join(""),k=F0(ue[J].leftSiblings,_n,e.options.inlineShortcuts),!k&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(_n)&&(k=e.options.onInlineShortcut(e,_n)),Cr+=1;e.flushInlineShortcutBuffer({defer:!0})}e.options.smartMode&&(k?e.switchMode("math"):Vh(e,A,t)&&(e.switchMode({math:"text",text:"math"}[c.mode]),j=""))}if(!k){if(j||(j=bg(e.keybindings,c.mode,t)),!j&&(A==="[Enter]"||A==="[Return]")){let bt=!1;return c.contentWillChange({inputType:"insertLineBreak"})&&(e.host&&(bt=!e.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),bt||t.preventDefault&&(t.preventDefault(),t.stopPropagation()),c.contentDidChange({inputType:"insertLineBreak"})),bt}if((!j||A==="[Space]")&&c.mode==="math"){if(A==="[Space]"){if(e.adoptStyle="none",e.flushInlineShortcutBuffer(),e.options.mathModeSpace)return Ds.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 bt=c.at(c.position+1),Et=c.at(c.position-1);if((bt==null?void 0:bt.mode)==="text"||(Et==null?void 0:Et.mode)==="text")return Ds.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===","&&Hh(t)===","&&(j="insertDecimalSeparator")}}if(!k&&!j){if(c.mathfield.smartFence){if(eA(c,Hh(t),e.effectiveStyle))return e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}else{const{parent:bt}=c.at(c.position);if(bt instanceof Ys&&bt.rightDelim==="?"&&c.at(c.position).isLastSibling&&/^[)}\]|]$/.test(A))return e.snapshot(),bt.isDirty=!0,bt.rightDelim=A,c.position+=1,c.selectionDidChange(),c.contentDidChange({data:Hh(t),inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1;if(!c.selectionIsCollapsed){const Et=Hh(t);if(Et==="("||Et==="{"||Et==="["){const Cr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[Et],_n={"(":")","{":"\\rbrace","[":"\\rbrack"}[Et],[wr,nn]=Xl(c.selection);return e.snapshot(),c.position=nn,Ds.insert(c,_n,{format:"latex"}),c.position=wr,Ds.insert(c,Cr,{format:"latex"}),c.setSelection(wr+1,nn+1),c.contentDidChange({data:Et,inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}}}return!0}const Pe=c.at(Math.max(c.position,c.anchor)),{parent:nt}=Pe;if(j==="moveAfterParent"&&(nt==null?void 0:nt.type)==="leftright"&&Pe.isLastSibling&&e.options.smartFence&&eA(c,".",e.defaultStyle)&&(j="",_l(e)),e.keyboardDelegate.cancelComposition(),j)e.executeCommand(j);else if(k){const bt=e.effectiveStyle;c.setState(ue[J].state);const Et=ue[ue.length-1].keystrokes;for(const Cr of Et)Ds.insert(c,Cr,{silenceNotifications:!0,style:bt});e.snapshot("insert-shortcut"),c.setState(ue[J].state),c.deferNotifications({content:!0,selection:!0,data:k,type:"insertText"},()=>(Ds.insert(c,k,{format:"latex",style:bt}),bA(e.model),k.endsWith(" ")&&(e.switchMode("text"),Ds.insert(c," ",{style:bt,mode:"text"})),e.snapshot(),c.selectionIsCollapsed||e.flushInlineShortcutBuffer(),!0)),e.dirty=!0,c.announce("replacement")}return e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}function _p(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=Cu(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 J of s)Xh(e,new KeyboardEvent("keypress",{key:J}))&&(j=!1);if(j)return}const A=i.at(i.position),k=v(v({},A.computedStyle),e.defaultStyle);if(i.selectionIsCollapsed||(i.deleteAtoms(Xl(i.selection)),e.snapshot("delete")),i.mode==="latex")i.deferNotifications({content:!0,selection:!0,data:t,type:"insertText"},()=>{lm(e);for(const j of s)Ds.insert(i,j);e.snapshot("insert-latex"),Bp(e)});else if(i.mode==="text"){for(const j of s)Ds.insert(i,j,{style:k});e.snapshot("insert-text")}else if(i.mode==="math")for(const j of s)fm(e,j,k,A);e.dirty=!0,e.scrollIntoView()}function Ip(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 fm(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){hm(s),Ds.insert(s,t,{style:r}),e.snapshot(),ja(s),e.snapshot();return}if(/[a-zA-Z0-9]/.test(t)&&e.adoptStyle!=="none"){const A=e.adoptStyle==="left"?i:i.parent?i.rightSibling:null;(A==null?void 0:A.type)==="mord"&&/[a-zA-Z0-9]/.test(A.value)&&(r=v({},r),A.style.variant&&(r.variant=A.style.variant),A.style.variantStyle&&(r.variantStyle=A.style.variantStyle))}Ds.insert(s,t,{style:r}),e.snapshot(`insert-${s.at(s.position).type}`)}function hm(e){e.selectionIsCollapsed||(e.deleteAtoms(Xl(e.selection)),e.mathfield.snapshot("delete"))}function eA(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 A=Nh[c],k=Qd[c];if(!e.selectionIsCollapsed){e.mathfield.snapshot();const[j,J]=Xl(e.selection),ue=e.extractAtoms([j,J]),Pe=s.addChildrenAfter([new Ys("left...right",ue,{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(),Ds.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 J;for(J=e.position;J<=j;J++){const Pe=e.at(J);if(Pe instanceof Ys&&(Pe.leftDelim==="?"||Pe.leftDelim===".")&&Fp(c,Pe.rightDelim))break}const ue=e.at(J);if(J<=j&&ue instanceof Ys){ue.leftDelim=c,e.mathfield.snapshot();let Pe=e.extractAtoms([e.position,J-1]);return Pe=Pe.filter(nt=>nt.type!=="first"),ue.addChildren(Pe,ue.parentBranch),e.position+=1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(s instanceof Ys&&(s.leftDelim==="?"||s.leftDelim===".")&&Fp(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(),Ds.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(A){let j=i;for(;j;){if(j.type==="mopen"&&j.value===A){e.mathfield.snapshot();const bt=j.leftSibling,Et=e.extractAtoms([e.offsetOf(j.leftSibling),e.offsetOf(i)]);Et.shift();const Cr=new Ys("left...right",Et,{leftDelim:A,rightDelim:c});return s.addChildrenAfter([Cr],bt),e.position=e.offsetOf(Cr),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}j=j.leftSibling}if(s instanceof Ys&&i.isLastSibling&&Jh(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 J=e.offsetOf(i.firstSibling);let ue;for(ue=e.position;ue>=J;ue--){const bt=e.at(ue);if(bt instanceof Ys&&(bt.rightDelim==="?"||bt.rightDelim===".")&&Jh(bt.leftDelim,c))break}const Pe=e.at(ue);if(ue>=J&&Pe instanceof Ys)return e.mathfield.snapshot(),Pe.rightDelim=c,Pe.addChildren(e.extractAtoms([ue,e.position]),Pe.parentBranch),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(s instanceof Ys&&(s.rightDelim==="?"||s.rightDelim===".")&&Jh(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),eA(e,c,r)):!1}return!1}function Jh(e,t){return e?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t):Qd[e]===t:!0}function Fp(e,t){return t?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e):Nh[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:Wh,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)=>(_p(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})&&(Bp(e),e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),_l(e))):e.model.announce("plonk"),e.startRecording()}),!0))},{target:"mathfield",canUndo:!0,changeContent:!0,changeSelection:!0});function Mp(e,t){e.flushInlineShortcutBuffer(),e.stopCoalescingUndo();const r=$0(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=v(v({},e.defaultStyle),r)):e.model.deferNotifications({content:!0,type:"insertText"},()=>{i.selection.ranges.forEach(s=>ki(i,s,r,{operation:"toggle"})),e.snapshot("style-change")}),!0}o({applyStyle:Mp},{target:"mathfield",canUndo:!0,changeContent:!0});function $0(e,t){var r,i,s,c,A,k,j,J,ue,Pe;const nt={};if(typeof t.color=="string"){const Et=(i=e.colorMap((r=t.color)!=null?r:t.verbatimColor))!=null?i:"none";Et!==t.color&&(nt.verbatimColor=(s=t.verbatimColor)!=null?s:t.color),nt.color=Et}if(typeof t.backgroundColor=="string"){const Et=(A=e.backgroundColorMap((c=t.backgroundColor)!=null?c:t.verbatimBackgroundColor))!=null?A:"none";Et!==t.backgroundColor&&(nt.verbatimBackgroundColor=(k=t.verbatimBackgroundColor)!=null?k:t.backgroundColor),nt.backgroundColor=Et}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=(J={italic:"it",up:"n",upright:"n",normal:"n"}[nt.fontShape])!=null?J:nt.fontShape),t.variant&&(nt.variant=t.variant.toLowerCase()),t.variantStyle&&(nt.variantStyle=t.variantStyle.toLowerCase());const bt=(ue=t.size)!=null?ue:t.fontSize;return typeof bt=="number"?nt.fontSize=Math.max(1,Math.min(10,bt)):typeof bt=="string"&&(nt.fontSize=(Pe={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[bt.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}[bt]),nt}function Z0(e){let[t,r]=Xl(e.selection);if(t=Lp(e,t,"backward"),r=Lp(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 Lp(e,t,r){var i,s,c;let A=e.at(t);if(!A)return t;const k=r==="forward"?1:-1;if(A.mode==="text"){for(;A&&!(A.mode!=="text"||!f.test(A.value));)t+=k,A=e.at(t);return r==="backward"?t-1:t}if(A.mode==="latex"){if(/[a-zA-Z\*]/.test(A.value))if(r==="backward")for(;A&&A.mode==="latex"&&A.value!=="\\"&&/[a-zA-Z]/.test(A.value);)t+=k,A=e.at(t);else for(;A&&A.mode==="latex"&&/[a-zA-Z\*]/.test(A.value);)t+=k,A=e.at(t);else if(A.value==="{"){if(r==="forward"){for(;A&&A.mode==="latex"&&A.value!=="}";)t+=k,A=e.at(t);return t}return t-1}else if(A.value==="}"){if(r==="backward"){for(;A&&A.mode==="latex"&&A.value!=="{";)t+=k,A=e.at(t);return t-1}return t}return t-1}if(A.mode==="math"){if(A.isDigit()){for(;(i=e.at(t+k))!=null&&i.isDigit();)t+=k;return r==="backward"?t-1:t}if(A.style.variant||A.style.variantStyle){let j=(s=e.at(t))==null?void 0:s.style;for(;j&&j.variant===A.style.variant&&j.variantStyle===A.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=Z0(e);return t||e.announce("plonk"),t},selectAll:e=>e.setSelection(0,e.lastOffset),extendSelectionForward:e=>no(e,"forward",{extend:!0}),extendSelectionBackward:e=>no(e,"backward",{extend:!0}),extendToNextWord:e=>al(e,"forward",{extend:!0}),extendToPreviousWord:e=>al(e,"backward",{extend:!0}),extendSelectionUpward:e=>no(e,"upward",{extend:!0}),extendSelectionDownward:e=>no(e,"downward",{extend:!0}),extendToNextBoundary:e=>al(e,"forward",{extend:!0}),extendToPreviousBoundary:e=>al(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 ku=null,Xd=0,V0=class cf{static start(t,r,i,s){var c;cf.element=t,(c=cf.controller)==null||c.abort(),cf.controller=new AbortController;const A={signal:cf.controller.signal};"PointerEvent"in window?(t.addEventListener("pointermove",i,A),t.addEventListener("pointerup",s,A),t.addEventListener("pointercancel",s,A),oc(r)&&(cf.pointerId=r.pointerId,t.setPointerCapture(r.pointerId))):(window.addEventListener("mousemove",i,A),window.addEventListener("blur",s,A),window.addEventListener("mouseup",s,A))}static stop(){var t;(t=cf.controller)==null||t.abort(),cf.controller=void 0,typeof cf.pointerId=="number"&&(cf.element.releasePointerCapture(cf.pointerId),cf.pointerId=void 0)}};function oc(e){return e!==null&&globalThis.PointerEvent!==void 0&&e instanceof PointerEvent}function kp(e,t){var r;if(t.buttons>1)return;e.atomBoundsCache=new Map;const i=e;let s,c=!1,A=!1,k="none",j=!1,J=!1;const ue=t.clientX,Pe=t.clientY,nt=Date.now(),bt=i.field,Et=setInterval(()=>{j?bt.scroll({top:0,left:bt.scrollLeft-16}):J&&bt.scroll({top:0,left:bt.scrollLeft+16})},32);function Cr(){V0.stop(),c=!1,clearInterval(Et),e.element.classList.remove("tracking"),t&&t.preventDefault()}function _n(nn){if(!i.hasFocus()){Cr();return}const Mn=nn.clientX,cn=nn.clientY,Bi=oc(nn)&&nn.pointerType==="touch"?20:5;if(Date.now()<nt+500&&Math.abs(ue-Mn)<Bi&&Math.abs(Pe-cn)<Bi){nn.preventDefault(),nn.stopPropagation();return}const ra=bt.getBoundingClientRect();J=Mn>ra.right,j=Mn<ra.left;let Hi=s;oc(nn)&&(nn.isPrimary||(Hi=Du(i,nn.clientX,nn.clientY,{bias:0})));const p=Du(i,Mn,cn,{bias:Mn<=ue?Mn===ue?0:-1:1});Hi>=0&&p>=0&&(i.model.extendSelectionTo(Hi,p),_l(e)),A&&Z0(i.model)}ku&&Math.abs(ku.x-ue)<5&&Math.abs(ku.y-Pe)<5&&Date.now()<ku.time+500?(Xd+=1,ku.time=nt):(ku={x:ue,y:Pe,time:nt},Xd=1);const wr=bt.getBoundingClientRect();if(ue>=wr.left&&ue<=wr.right&&Pe>=wr.top&&Pe<=wr.bottom){if(e.flushInlineShortcutBuffer(),e.adoptStyle="left",s=Du(e,ue,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),cm(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,cm(e.model)?k="all":k="selection");e.defaultStyle={},t.detail===3||Xd>2?(Cr(),(t.detail===3||Xd===3)&&(e.model.selection={ranges:[[0,e.model.lastOffset]]},k="all")):c||(c=!0,V0.start(bt,t,_n,Cr),(t.detail===2||Xd===2)&&(A=!0,Z0(e.model),k="all"))}e.hasFocus()||(k="none",e.focus({preventScroll:!0}))}else ku=null;e.stopCoalescingUndo(),k!=="none"&&(e.model.selectionIsCollapsed&&(k="all"),_l(e)),t.preventDefault()}function Jd(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 Yh(e,t,r,i,s){if(!r.id)return[1/0,null];if(t.has(r.id))return t.get(r.id);const c=oh(e,r);if(!c)return[1/0,null];let A=[1/0,null];if(r.hasChildren&&!r.captureSelection&&i>=c.left&&i<=c.right)for(const k of r.children){const j=Yh(e,t,k,i,s);j[0]<=A[0]&&(A=j)}return A[1]||(A=[Jd(i,s,c),r]),t.set(r.id,A),A}function pm(e,t,r){const[,i]=Yh(e,new Map,e.model.root,t,r);return i}function Du(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 A=pm(e,t,r);const k=[];let j=A;for(;j;)k.unshift(j),j=j.parent;for(const ue of k)if(ue.captureSelection){A=ue;break}let J=e.model.offsetOf(A);if(J<0)return-1;if(A.leftSibling)if(i.bias===0&&A.type!=="placeholder"){const ue=oh(e,A);ue&&t<(ue.left+ue.right)/2&&(J=e.model.offsetOf(A.leftSibling))}else i.bias<0&&(J=e.model.offsetOf(A.leftSibling));return J}var jc=class extends Ds{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 A=ka(c),{model:k}=e;k.selectionIsCollapsed||k.deleteAtoms(Xl(k.selection));const j=k.at(k.position);if(j.parent instanceof hs){console.assert(j.parentBranch!==void 0);const J=[];let ue=[];A[0].type==="first"&&A.shift(),A[A.length-1].type==="first"&&A.pop();for(const Et of A)Et.type==="first"&&ue.length>0?(J.push(ue),ue=[Et]):ue.push(Et);ue.length>0&&J.push(ue);let Pe=Number(j.parentBranch[0]),nt=Number(j.parentBranch[1]);const bt=j.parent.maxColumns;for(;j.parent.colCount-nt<J.length&&j.parent.colCount<bt;)j.parent.addColumn();j.parent.addChildrenAfter(J[0],j);for(let Et=1;Et<J.length;Et++)nt++,nt>=bt&&(nt=0,j.parent.addRowAfter(Pe),Pe++),j.parent.setCell(Pe,nt,J[Et])}else j.parent.addChildrenAfter(A.filter(J=>J.type!=="first"),j);return k.position=k.offsetOf(A[A.length-1]),k.contentDidChange({inputType:"insertFromPaste"}),_l(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 A=window.MathfieldElement.computeEngine.box(c);A&&!A.has("Error")&&(r=A.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]=nh(r),i==="auto"&&c&&(i="latex"),e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r,{format:i})&&(e.startRecording(),e.snapshot("paste"),_l(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:A}=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(Xl(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 J=-1;j[0]?j["@"]=j[0]:typeof t=="string"&&/(^|[^\\])#@/.test(t)&&(J=tg(e),J>=0&&(j["@"]=e.getValue(J,e.position,"latex"))),j[0]||(j[0]=j["?"]);let ue=!1;const Pe=Mn=>(ue=!0,j[Mn]);let[nt,bt]=Yd(e,t,Pe,r);if(!bt)return!1;const Et=bt.length===1&&bt[0].type==="genfrac";Et&&J>=0&&typeof e.mathfield.options.isImplicitFunction=="function"&&e.mathfield.options.isImplicitFunction(e.at(e.position).command)?(j["@"]=j["?"],ue=!1,[nt,bt]=Yd(e,t,Pe,r)):J>=0&&e.deleteAtoms([J,e.position]);const{parent:Cr}=e.at(e.position),_n=Cr.hasEmptyBranch("body");if(Et&&nt!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&Cr instanceof Ys&&Cr.leftDelim==="("&&_n){const Mn=Cr.parent,cn=Cr.parentBranch;Mn.removeChild(Cr),Mn.setChildren(bt,cn)}const wr=e.at(e.position);wr.parent.addChildrenAfter(bt,wr),nt==="latex"&&typeof t=="string"&&(Cr==null?void 0:Cr.type)==="root"&&_n&&!ue&&(Cr.verbatimLatex=t),e.silenceNotifications=k;const nn=bt[bt.length-1];if(r.selectionMode==="placeholder"){const Mn=bt.flatMap(cn=>[cn,...cn.children]).find(cn=>cn.type==="placeholder");if(Mn){const cn=e.offsetOf(Mn);e.setSelection(cn-1,cn),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=A,!0}};function Yd(e,t,r,i){var s;let c,A=[];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],A=dc(t,{context:e.mathfield.context})}else typeof t=="string"&&i.format==="ascii-math"?([c,t]=M0(t,{format:"ascii-math",inlineShortcuts:e.mathfield.options.inlineShortcuts}),A=dc(t,{context:e.mathfield.context}),c!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&W0(A)):(i.format==="auto"||(s=i.format)!=null&&s.startsWith("latex"))&&(i.format==="auto"&&([c,t]=M0(t,{format:"auto",inlineShortcuts:e.mathfield.options.inlineShortcuts})),i.format==="latex"&&([,t]=nh(t)),A=dc(t,{context:e.mathfield.context,args:r}),i.format!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&W0(A));return gt(A,i.style),[c!=null?c:"latex",A]}function mm(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 W0(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 A=0;r.body[A];A++)r.body[A].type==="genfrac"&&(i++,s=A),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)){W0(t.branch(r));const i=mm(t.branch(r));i&&t.setChildren(i,r)}if(t instanceof hs)for(const r of t.cells)W0(r)}}}function tg(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=Nh[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||hd(t));)t=t.leftSibling;else{const s=[];for(;!t.isFirstSibling&&(hd(t)||s.length>0);)t.type==="mclose"&&s.unshift(t.value),t.type==="mopen"&&s.length>0&&t.value===Nh[s[0]]&&s.shift(),t=t.leftSibling}return r===t?-1:e.offsetOf(t)}function hd(e){return e.isDigit()?!0:e.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(e.type)?!e.isExtensibleSymbol:!1}new jc;var gm=class extends Ds{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"),_l(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(Xl(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(gt(c,r.style),!c)return!1;const A=e.at(e.position),k=A.parent.addChildrenAfter(c,A);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 "),dc(e,{context:t,parseMode:"text"})}new gm;function Qu(e){return{value:e.model.getValue(),selectionIsCollapsed:e.model.selectionIsCollapsed,canUndo:e.canUndo(),canRedo:e.canRedo(),style:e.selectionStyle,mode:e.model.mode}}var ps=4,cu=20,Pl=2*(cu+ps),G0=(e,t)=>`
<line x1="${e+cu}" y1="${t+cu}"
x2="${e>t?e+cu:7*cu+10*ps}"
y2="${e<t?t+cu:7*cu+10*ps}"/>
<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>`,X0=(e,t)=>`
<line x1="${e+cu}" y1="${t+cu}"
x2="${e>t?e+cu:7*cu+10*ps}"
y2="${e<t?t+cu:7*cu+10*ps}"/>
<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>`,qh=(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>`,pd=`
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox=
"-2 -2 ${8*cu+10*ps+5} ${8*cu+10*ps+5}">
<rect
class="MLEP__array-insert-background rows"
x="0"
y="${Pl+ps}"
height="${3*Pl}"
width="${Pl}"
rx="${Pl/2}"/>
<rect
class="MLEP__array-insert-background columns"
x="${Pl+ps}"
y="0"
height="${Pl}"
width="${3*Pl}"
rx="${Pl/2}"/>
<g data-command='"moveDown"'>
${qh(2*(ps+Pl),2*ps+3*Pl,0)}
</g>
<g data-command='"moveUp"'>
${qh(2*(ps+Pl),2*ps+Pl,180)}
</g>
<g data-command='"moveToNextWord"'>
${qh(2*ps+3*Pl,2*(ps+Pl),-90)}
</g>
<g data-command='"moveToPreviousWord"'>
${qh(2*ps+Pl,2*(ps+Pl),90)}
</g>
<g>
<g data-command='"addColumnBefore"'>
${G0(2*ps+Pl,ps)}
</g>
<g data-command='"removeColumn"'>
${X0(2*ps+2*Pl,ps)}
</g>
<g data-command='"addColumnAfter"'>
${G0(2*ps+3*Pl,ps)}
</g>
<g data-command='"addRowBefore"'>
${G0(ps,2*ps+Pl)}
</g>
<g data-command='"removeRow"'>
${X0(ps,2*ps+2*Pl)}
</g>
<g data-command='"addRowAfter"'>
${G0(ps,2*ps+3*Pl)}
</g>
</svg>`,rg=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>`,e0=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>`,J0=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>`,ng=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>`,ho=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>`,ig=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>`,ag=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>`,og=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>`,md={matrix:rg,pmatrix:e0,bmatrix:ng,Bmatrix:J0,vmatrix:ho,Vmatrix:ig},gd={cases:ag,rcases:og,Bmatrix:J0};function sg(e){var t,r;const i=(t=e.model.parentEnvironment)==null?void 0:t.array;if(!i)return;let s=0;i.forEach(Et=>{(!s||Et.length>s)&&(s=Et.length)});let c=document.getElementById("mathlive-environment-popover");c||(c=Sp("mathlive-environment-popover"),ld("environment-popover"),ld("core"),c.setAttribute("aria-hidden","true"));let A;const k=c.querySelector(".MLEP__environment-controls");k?A=k:(A=document.createElement("div"),c.innerHTML="",c.appendChild(A)),A.className="MLEP__environment-controls",A.style.display="flex",A.style.width="100%",A.style.height="100%",A.style.boxSizing="border-box",A.innerHTML=pd;let j=[],J="";const ue=e.model.parentEnvironment.environmentName;if(Uh(ue)){const Et=t0(ue);J=md[Et]("active");const Cr=md,{[Et]:_n}=Cr,wr=$(Cr,[h(Et)]);j=Object.values(wr).map(nn=>nn("inactive"))}else if(Rh(ue)){const Et=lg(ue);J=gd[Et]("active");const Cr=gd,{[Et]:_n}=Cr,wr=$(Cr,[h(Et)]);j=Object.values(wr).map(nn=>nn("inactive"))}else zm(ue)&&(J=md.matrix("active"),j=Object.values(gd).map(Et=>Et("inactive")));const Pe=document.createElement("div");Pe.className="MLEP__environment-delimiter-controls",Pe.style.display="flex",Pe.style.flexDirection="column",Pe.innerHTML=`
<div class='MLEP__array-delimiter-options'>
${J}
${j.join("")}
</div>`,J&&A.appendChild(Pe),A.querySelectorAll("[data-command]").forEach(Et=>{const Cr=Et.dataset.command;let _n=Cr;try{_n=JSON.parse(Cr)}catch(wr){}Et.addEventListener("mousedown",wr=>wr.preventDefault()),_n&&Et.addEventListener("click",()=>e.executeCommand(_n))});const bt=(r=e.field)==null?void 0:r.getBoundingClientRect();bt&&(c.style.top=`${window.scrollY+(bt.top-c.clientHeight-15)}px`,c.style.left=`${bt.left+20}px`,c.classList.add("is-visible"))}function Dp(){const e=document.getElementById("mathlive-environment-popover");e==null||e.classList.remove("is-visible")}function Y0(){document.getElementById("mathlive-environment-popover")&&(Ym("mathlive-environment-popover"),cd("environment-popover"),cd("core"))}function dh(e){if(!e.hasFocus())return;let t=!1;if(e.model.mode==="math"){const r=e.model.parentEnvironment;if(r!=null&&r.array&&bp(r.environmentName)){const i=e.options.environmentPopoverPolicy;t=i==="auto"||i==="on"}}t?sg(e):Dp()}function t0(e){return e.replace("*","")}function lg(e){return e==="dcases"?"cases":e}function qd(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 r0(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 Op(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 ym(e,t){var r,i,s;const c=(r=qd(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 A=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:A.height),J=r0(t.location.y,j,t.verticalPos,c);J+j>window.innerHeight-8&&(t.alternateLocation?(J=r0(t.alternateLocation.y,j,t.verticalPos,c),J+j>window.innerHeight-8&&(J=void 0)):J=void 0),Number.isFinite(J)||(J=Math.max(8,window.innerHeight-8-j),8+j>window.innerHeight-8&&(e.style.bottom="8px")),j=Math.min(J+j,window.innerHeight-8)-J;const ue=Number.isFinite(t.maxWidth)?Math.min(t.maxWidth,window.innerWidth):window.innerWidth;let Pe=Math.min(ue,(s=t.width)!=null?s:A.width),nt=r0(t.location.x,Pe,t.horizontalPos,c);nt+Pe>window.innerWidth-8&&(t.alternateLocation?(nt=Op(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(J).toString()}px`,j!==A.height&&(e.style.height=`${Math.ceil(j).toString()}px`),Pe!==A.width&&(e.style.width=`${Math.ceil(Pe).toString()}px`)}function Df(e,t){return Math.hypot(t.x-e.x,t.y-e.y)}function ef(e){return"submenu"in e}function Ku(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 Of(e){return"type"in e&&e.type==="heading"}var q0={};function ep(e){let t=q0[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,q0[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 Np=80,tf=class{constructor(e,t){this._element=null;var r;this.parentMenu=t,this._declaration=e,ef(e)?(this.type="submenu",this.submenu=new fh(e.submenu,{parentMenu:t,submenuClass:e.submenuClass,columnCount:e.columnCount})):this.type=(r=e.type)!=null?r:"command",this.hasCheck=Ku(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}Of(s)&&(this.enabled=!1,this.checked=!1,this.visible=!0),Ku(s)&&(this.checked=Ku(s)&&((t=Pf(s.checked,e))!=null?t:!1)),(Ku(s)||ef(s))&&(this.enabled=(r=Pf(s.enabled,e))!=null?r:!0,this.visible=(i=Pf(s.visible,e))!=null?i:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(e),this.submenu.visible||(this.visible=!1))),(Ku(s)||Of(s)||ef(s))&&(this.label=Pf(s.label,e),this.tooltip=Pf(s.tooltip,e),this.ariaLabel=Pf(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(ep("checkmark"))):this.checked==="mixed"?(e.setAttribute("aria-checked","mixed"),e.append(ep("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),Ku(this._declaration)&&this._declaration.keyboardShortcut){const r=document.createElement("kbd");r.innerHTML=dA(this._declaration.keyboardShortcut),e.append(r)}this.type==="submenu"&&e.append(ep("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,(Ku(this._declaration)||Of(this._declaration)||ef(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(!Ku(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()},Np)},Np)}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=qd(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(Nf(i,t.clientY-e.clientY,r)<=.2)return!1;let c="right";if(this.submenu.element){const A=this.submenu.element.getBoundingClientRect(),k=this.element.getBoundingClientRect();A.left<k.left+k.width/2&&(c="left")}return c==="right"?i>0:i<0}};function Nf(e,t,r){return Math.hypot(e,t)/r}function Pf(e,t){return e===void 0||typeof e!="function"?e:(t!=null||(t={alt:!1,control:!1,shift:!1,meta:!1}),e(t))}var fh=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 tf(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(J=>J.updateState(t));const c=this.hasCheck;this.hasCheck=this._menuItems.some(J=>J.visible&&J.hasCheck),this.hasCheck!==c&&this._menuItems.forEach(J=>J.updateState(t));let A,k=0;for(const J of this._menuItems)J.type==="heading"?(A&&k===0&&(A.visible=!1),A=J,k=0):J.type==="divider"&&A?(A.visible=k>0,A=void 0,k=0):A&&J.visible&&(k+=1);A&&(A.visible=k>0);let j=!0;for(const J of this._menuItems)J.type==="divider"?(J.visible=!j,j=!0):J.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 A=this.activeMenuItem;A.active=!1,(r=A.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 A=this._menuItems[s];if(!A)break;if(A.visible&&A.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,A=0;for(;A<s&&!c;)c=(r=i.find(k=>km.collator.compare(t,k.label.substring(A,t.length))===0))!=null?r:null,A++;return c}show(t){return!this.visible||!t.container?!1:(this.updateElement(),t.container.appendChild(this.element),oe()&&(this.element.popover="manual",this.element.showPopover()),t.location&&ym(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),oe()&&((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 A=t!==null;((r=this.activeMenuItem)==null?void 0:r.type)==="submenu"&&((i=this.activeMenuItem.element)==null||i.setAttribute("aria-expanded",A.toString())),(c=(s=this.activeMenuItem)==null?void 0:s.element)==null||c.classList.toggle("is-submenu-open",A),this.isSubmenuOpen=A}},Pp=class fv extends fh{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){UA(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=Mu(t)),t.stopImmediatePropagation()}handleKeydownEvent(t){var r,i,s;if(t.key==="Tab"||t.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=Mu(t));let c=!0;const A=this.activeSubmenu,k=A.activeMenuItem;switch(t.key){case" ":case"Space":case"Return":case"Enter":k==null||k.select(Mu(t));break;case"ArrowRight":if((k==null?void 0:k.type)==="submenu")k.select(Mu(t)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!k)A.activeMenuItem=A.firstMenuItem;else{const j=(r=A.getMenuItemColumn(k))!=null?r:-1;if(j>=0&&j<((i=A.columnCount)!=null?i:1)-1){const J=A.nextMenuItem(1);J&&(A.activeMenuItem=J)}}break;case"ArrowLeft":if(A===this.rootMenu)k||(A.activeMenuItem=A.firstMenuItem);else if((k&&(s=A.getMenuItemColumn(k))!=null?s:-1)<=0||!k){A.hide();const J=A.parentMenu.activeMenuItem;if(J){const{element:ue}=J;ue==null||ue.focus(),ue==null||ue.classList.remove("is-submenu-open")}}else{const J=A.nextMenuItem(-1);J&&(A.activeMenuItem=J)}break;case"ArrowDown":A.activeMenuItem=A.nextMenuItem(A.columnCount);break;case"ArrowUp":A.activeMenuItem=A.nextMenuItem(-A.columnCount);break;case"Home":case"PageUp":A.activeMenuItem=A.firstMenuItem;break;case"End":case"PageDown":A.activeMenuItem=A.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const j=A.findMenuItem(this.typingBuffer);j&&(A.activeMenuItem=j),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(qu(t)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=t.key;const j=A.findMenuItem(this.typingBuffer);j&&(A.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 Kc.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),Kc.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),Kc.state==="open"&&Kc.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(M(v({},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,Kc.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)}};Pp.SUBMENU_DELAY=120;var z=Pp;function He(e){return n0(e)?!1:typeof e.label=="function"||typeof e.ariaLabel=="function"||typeof e.tooltip=="function"||(Ku(e)||ef(e))&&(typeof e.enabled=="function"||typeof e.visible=="function")||Ku(e)&&typeof e.checked=="function"?!0:ef(e)?e.submenu.some(He):!1}var St=class{};St.DELAY=300,St.MAX_DISTANCE=10;function Zt(e){return new Promise((t,r)=>{const i=TA(e);i||t(!1);let s=i;const c=setTimeout(()=>{A.abort(),t(Df(s,i)<St.MAX_DISTANCE)},St.DELAY),A=new AbortController,k=A.signal;for(const j of["pointermove","pointerup","pointercancel"])window.addEventListener(j,J=>{if(J.type==="pointerup"||J.type==="pointercancel")clearTimeout(c),A.abort(),t(!1);else if(J.type==="pointermove"){const ue=TA(J);ue&&(s=ue)}},{passive:!0,signal:k})})}function gr(e,t,r){return dp(this,null,function*(){if(e.type==="contextmenu"){const i=e;if(r.show({target:t,location:TA(i),modifiers:Mu(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:Mu(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=TA(e);if(yield Zt(e))return r.state!=="closed"?!1:(r.show({target:t,location:s}),!0)}return!1})}var pn={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};he(Object.keys(pn),"{body:auto}",{createAtom:e=>new sh(M(v({},e),{body:Ye(e.args[0]),accentChar:pn[e.command.slice(1)]}))}),he(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=ce(Ye(e.args[0]));return new sh(M(v({},e),{body:Ye(e.args[0]),svgAccent:e.command.slice(1)+(t.length>5?"4":["1","1","2","2","3","3"][t.length])}))}}),he(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:e=>new sh(M(v({},e),{body:Ye(e.args[0]),svgAccent:"overarc"}))}),he(["underarc","underparen"],"{body:auto}",{createAtom:e=>new hc(M(v({},e),{body:Ye(e.args[0]),svgBelow:"underarc"}))}),he("utilde","{body:auto}",{createAtom:e=>{const t=Ye(e.args[0]),r=ce(t),i="widetilde"+(r.length>5?"4":["1","1","2","2","3","3"][r.length]);return new hc(M(v({},e),{body:t,svgBelow:i,boxType:Od(t)}))}}),he("^","{:string}",{createAtom:e=>{var t;return new Ur(M(v({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE2",e:"\xEA",i:"\xEE",o:"\xF4",u:"\xFB",A:"\xC2",E:"\xCA",I:"\xCE",O:"\xD4",U:"\xDB"}[e.args[0]])!=null?t:"^"}))}}),he("`","{:string}",{createAtom:e=>{var t;return new Ur(M(v({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE0",e:"\xE8",i:"\xEC",o:"\xF2",u:"\xF9",A:"\xC0",E:"\xC8",I:"\xCC",O:"\xD2",U:"\xD9"}[e.args[0]])!=null?t:"`"}))}}),he("'","{:string}",{createAtom:e=>{var t;return new Ur(M(v({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={a:"\xE1",e:"\xE9",i:"\xED",o:"\xF3",u:"\xFA",A:"\xC1",E:"\xC9",I:"\xCD",O:"\xD3",U:"\xDA"}[e.args[0]])!=null?t:"'"}))}}),he('"',"{:string}",{createAtom:e=>{var t,r;return new Ur(M(v({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\xE4",e:"\xEB",i:"\xEF",o:"\xF6",u:"\xFC",A:"\xC4",E:"\xCB",I:"\xCB",O:"\xD6",U:"\xDC"}[e.args[0]])!=null?r:'"'+e.args[0]:'"'}))}}),he(".","{:string}",{createAtom:e=>{var t,r;return new Ur(M(v({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\u0227",e:"\u0117",i:"\u0307i",o:"\u022F",u:"\u0307u",A:"\u0226",E:"\u0116",I:"\u0130",O:"\u022E",U:"\u0307U"}[e.args[0]])!=null?r:"."+e.args[0]:"."}))}}),he("=","{:string}",{createAtom:e=>{var t,r;return new Ur(M(v({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:(t=e.args)!=null&&t[0]?(r={a:"\u0101",e:"\u0113",i:"\u012B",o:"\u014D",u:"\u016B",A:"\u0100",E:"\u0112",I:"\u012A",O:"\u014C",U:"\u016A"}[e.args[0]])!=null?r:"="+e.args[0]:"="}))}}),he("~","{:string}",{createAtom:e=>{var t;return new Ur(M(v({type:"mord"},e),{isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={n:"\xF1",N:"\xD1",a:"\xE3",o:"\xF5",A:"\xC3",O:"\xD5"}[e.args[0]])!=null?t:"\xB4"}))}}),he("c","{:string}",{createAtom:e=>{var t;return new Ur(M(v({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={c:"\xE7",C:"\xC7"}[e.args[0]])!=null?t:""}))}}),he("enclose","{notation:string}[style:string]{body:auto}",{createAtom:e=>{var t,r;const i=e.args,s={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(t=e.style)!=null?t:{}};if(i[1]){const A=i[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const k of A){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 J=k.match(/\s*([a-z]*)\s*=\s*"(.*)"/);J&&(J[1]==="mathbackground"?s.backgroundcolor=J[2]:J[1]==="mathcolor"?s.strokeColor=J[2]:J[1]==="padding"?s.padding=J[2]:J[1]==="shadow"&&(s.shadow=J[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(A=>A.length>0).forEach(A=>{c[A.toLowerCase()]=!0}),new ic(e.command,Ye(i[2]),c,s)}}),he("cancel","{body:auto}",{createAtom:e=>{var t;return new ic(e.command,Ye(e.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),he("bcancel","{body:auto}",{createAtom:e=>{var t;return new ic(e.command,Ye(e.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),he("xcancel","{body:auto}",{createAtom:e=>{var t;return new ic(e.command,Ye(e.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),he(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:e=>{var t;return new hc(M(v({},e),{body:Ye((t=e.args)==null?void 0:t[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:e.command.slice(1)}))}}),he("overbrace","{:auto}",{createAtom:e=>new hc(M(v({},e),{body:Ye(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:e.command.slice(1)}))}),he(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:e=>new hc(M(v({},e),{body:Ye(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:e.command.slice(1)}))}),he(["underbrace"],"{:auto}",{createAtom:e=>new hc(M(v({},e),{body:Ye(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:e.command.slice(1)}))}),he(["xrightarrow","longrightarrow","xleftarrow","longleftarrow","xRightarrow","xLeftarrow","xleftharpoonup","xleftharpoondown","xrightharpoonup","xrightharpoondown","xlongequal","xtwoheadleftarrow","xtwoheadrightarrow","xleftrightarrow","longleftrightarrow","xLeftrightarrow","xrightleftharpoons","longrightleftharpoons","xleftrightharpoons","xhookleftarrow","xhookrightarrow","xmapsto","xtofrom","xleftrightarrows","longleftrightarrows","xRightleftharpoons","longRightleftharpoons","xLeftrightharpoons","longLeftrightharpoons"],"[:auto]{:auto}",{createAtom:e=>{var t,r,i,s,c;return new hc(M(v({},e),{svgBody:e.command.slice(1),above:((r=Ye((t=e.args)==null?void 0:t[1]))==null?void 0:r.length)===0?void 0:Ye((i=e.args)==null?void 0:i[1]),below:(c=Ye((s=e.args)==null?void 0:s[0]))!=null?c:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(e,t)=>e.command+(e.hasEmptyBranch("below")?"":`[${e.belowToLatex(t)}]`)+`{${e.aboveToLatex(t)}}${e.supsubToLatex(t)}`}),he(["arccos","arcsin","arctan","arctg","arcctg","arg","ch","cos","cosh","cot","cotg","coth","ctg","cth","csc","cosec","deg","dim","exp","gcd","hom","inf","ker","lb","lg","ln","log","Pr","sec","sh","sin","sinh","sup","tan","tanh","tg","th","arcsec","arccsc","arsinh","arcosh","artanh","arcsech","arccsch"],"",{isFunction:!0,ifMode:"math",createAtom:e=>new Ju(e.command.slice(1),M(v({},e),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),he(["liminf","limsup"],"",{ifMode:"math",createAtom:e=>new Ju({"\\liminf":"lim inf","\\limsup":"lim sup"}[e.command],M(v({},e),{limits:"over-under",variant:"main"}))}),he(["lim","mod"],"",{ifMode:"math",createAtom:e=>new Ju(e.command.slice(1),M(v({},e),{limits:"over-under",variant:"main"}))}),he(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:e=>new Ju(e.command.slice(1),M(v({},e),{limits:"over-under",isFunction:!0,variant:"main"}))}),he(["ang"],"{:math}",{ifMode:"math",createAtom:e=>new Ur(M(v({},e),{body:Ye(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:M(v({},e.style),{variant:"normal",variantStyle:"up"})});return new zr([r,s],{type:"inner",isSelected:e.isSelected,caret:i})}}),he("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:e=>new Cp(M(v({},e),{body:Ye(e.args[1]),index:e.args[0]?Ye(e.args[0]):void 0}))}),he(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:e=>{const t=v({},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 _f(i[0]?Ye(i[0]):[new OA],i[1]?Ye(i[1]):[new OA],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}`:_s(e.command,r,i)}}),he(["brace","brack"],"",{infix:!0,createAtom:e=>new _f(Ye(e.args[0]),Ye(e.args[1]),M(v({},e),{hasBarLine:!1,leftDelim:e.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:e.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(e,t)=>uo([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),he(["over","atop","choose"],"",{infix:!0,createAtom:e=>{let t,r;const i=e.args;return e.command==="\\choose"&&(t="(",r=")"),new _f(Ye(i[0]),Ye(i[1]),M(v({},e),{hasBarLine:e.command==="\\over",leftDelim:t,rightDelim:r}))},serialize:(e,t)=>uo([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),he(["overwithdelims","atopwithdelims"],"{numer:auto}{denom:auto}{left-delim:delim}{right-delim:delim}",{infix:!0,createAtom:e=>{var t,r;const i=e.args;return new _f(Ye(i[0]),Ye(i[1]),M(v({},e),{leftDelim:(t=i[2])!=null?t:".",rightDelim:(r=i[3])!=null?r:".",hasBarLine:!1}))},serialize:(e,t)=>`${e.aboveToLatex(t)} ${e.command}${e.leftDelim}${e.rightDelim}${e.belowToLatex(t)}`}),he("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:e=>new _f(Ye(e.args[0]),Ye(e.args[1]),M(v({},e),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),he(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:e=>new xp({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)],M(v({},e),{limits:"auto",variant:"main"}))}),he("smallint","",{ifMode:"math",createAtom:e=>new Ju("\u222B",M(v({},e),{limits:"adjacent",variant:"main"}))});var En={int:"\u222B",iint:"\u222C",iiint:"\u222D",oint:"\u222E",oiint:"\u222F",oiiint:"\u2230",intclockwise:"\u2231",varointclockwise:"\u2232",ointctrclockwise:"\u2233",intctrclockwise:"\u2A11",sqcup:"\u2294",sqcap:"\u2293",uplus:"\u228E",wr:"\u2240",amalg:"\u2A3F",Cap:"\u22D2",Cup:"\u22D3",doublecap:"\u22D2",doublecup:"\u22D3"};he(Object.keys(En),"",{ifMode:"math",createAtom:e=>{const t=e.command,r=En[t.slice(1)];return new xp(r,M(v({},e),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[r]}))}}),he(["Re","Im"],"",{ifMode:"math",createAtom:e=>new Ju({"\\Re":"\u211C","\\Im":"\u2111"}[e.command],M(v({},e),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),he("middle","{:delim}",{ifMode:"math",createAtom:e=>{var t;return new Qc(M(v({},e),{delim:(t=e.args[0])!=null?t:"|",size:1}))}}),he("the","{:value}",{createAtom:e=>new Ur(M(v({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var r;const i=new So({parent:t},e.style);let s="";e.isSelected&&(s+=" ML__selected");const c=i.evaluate(e.args[0]);return new zr(((r=kl(c))!=null?r:"").split("").map(A=>new zr(A,{type:"ord",classes:s,mode:e.mode,isSelected:e.isSelected,style:v({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=kl(e.args[0]))!=null?t:"\\relax"}`}}),he("mathtip","{:auto}{:math}",{createAtom:e=>new Ad(M(v({},e),{body:Ye(e.args[0]),tooltip:Ye(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Ur.serialize([e.tooltip],M(v({},t),{defaultMode:"math"}))}}`}),he("texttip","{:auto}{:text}",{createAtom:e=>new Ad(M(v({},e),{body:Ye(e.args[0]),tooltip:Ye(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Ur.serialize([e.tooltip],M(v({},t),{defaultMode:"text"}))}}`}),he("error","{:math}",{createAtom:e=>new Ur(M(v({},e),{body:Ye(e.args[0])})),serialize:(e,t)=>`\\error{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__error"})}),he("ensuremath","{:math}",{createAtom:e=>new Ur(M(v({},e),{body:Ye(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(M(v({},t),{defaultMode:"math"}))}}`}),he("color","{:value}",{applyStyle:(e,t,r)=>{var i,s;return{verbatimColor:(i=kl(t[0]))!=null?i:void 0,color:r.toColor((s=t[0])!=null?s:{string:"red"})}}}),he("textcolor","{:value}{content:auto*}",{applyStyle:(e,t,r)=>{var i,s;return{verbatimColor:(i=kl(t[0]))!=null?i:void 0,color:r.toColor((s=t[0])!=null?s:{string:"red"})}}}),he("boxed","{content:math}",{createAtom:e=>new Ac(M(v({},e),{body:Ye(e.args[0]),framecolor:{string:"black"}}))}),he("colorbox","{:value}{:text*}",{applyStyle:(e,t,r)=>{var i,s;return{verbatimBackgroundColor:(i=kl(t[0]))!=null?i:void 0,backgroundColor:r.toBackgroundColor((s=t[0])!=null?s:{string:"yellow"})}}}),he("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:e=>{var t,r;return new Ac(M(v({},e),{body:Ye(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(M(v({},t),{defaultMode:"text"})):_s(e.command,(r=kl(e.framecolor))!=null?r:"",(i=kl(e.backgroundcolor))!=null?i:"",e.bodyToLatex(M(v({},t),{defaultMode:"text"})))}}),he("bbox","[:bbox]{body:auto}",{createAtom:e=>{var t;const r=e.args[0],i=Ye(e.args[1]);return r?new Ac(M(v({},e),{body:i,padding:r.padding,border:r.border,backgroundcolor:(t=r.backgroundcolor)!=null?t:void 0})):new Ac(M(v({},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=kl(e.padding))!=null?r:""),e.border&&c.push(`border: ${e.border}`),e.backgroundcolor&&c.push((i=kl(e.backgroundcolor))!=null?i:""),s+=`[${c.join(",")}]`}return _s(s,e.bodyToLatex(t))}}),he(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new Ur(M(v({},e),{body:Ye(e.args[0])})),render:(e,t)=>{const r=new So({parent:t,mathstyle:e.command.slice(1)},e.style),i=Ur.createBox(r,e.body,{type:"lift"});return e.caret&&(i.caret=e.caret),e.bind(t,i)},serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{${uo([e.command,e.bodyToLatex(t)])}}`}),he(["tiny","scriptsize","footnotesize","small","normalsize","large","Large","LARGE","huge","Huge"],"",{applyStyle:e=>({fontSize:{"\\tiny":1,"\\scriptsize":2,"\\footnotesize":3,"\\small":4,"\\normalsize":5,"\\large":6,"\\Large":7,"\\LARGE":8,"\\huge":9,"\\Huge":10}[e]})}),he("fontseries","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontSeries:(r=t[0])!=null?r:"auto"}}}),he("fontshape","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontShape:(r=t[0])!=null?r:"auto"}}}),he("fontfamily","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontFamily:(r=t[0])!=null?r:"roman"}}}),he("selectfont","",{ifMode:"text",applyStyle:()=>({})}),he("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),he(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:e=>new Ur(M(v({},e),{body:Ye(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__boldsymbol"})}),he("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),he("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),he("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),he("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),he("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),he("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),he("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),he("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),he("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),he("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),he("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),he("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),he("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),he("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),he("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),he("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),he("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),he("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),he("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),he("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),he("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),he("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),he("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),he("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),he("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),he("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),he("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),he(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),he(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),he("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),he("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),he("mbox","{:text}",{ifMode:"math",createAtom:e=>new Ur(M(v({},e),{type:"mord",body:Ye(e.args[0]),mode:"math"})),serialize:(e,t)=>_s("\\mbox",e.bodyToLatex(M(v({},t),{defaultMode:"text"})))}),he("text","{:text}",{ifMode:"math",applyMode:"text"}),he(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:e=>new Ur(M(v({},e),{body:Ye(e.args[1])})),serialize:(e,t)=>!e.args[0]||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`,render:(e,t)=>{var r;return e.createBox(t,{classes:(r=e.args[0])!=null?r:""})}}),he(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:e=>new Ur(M(v({},e),{body:Ye(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const i=e.createBox(t);return i.cssId=(r=e.args[0])!=null?r:"",i}}),he("htmlData","{data:string}{content:auto}",{createAtom:e=>new Ur(M(v({},e),{body:Ye(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`\\htmlData{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const i=e.createBox(t);return i.htmlData=(r=e.args[0])!=null?r:"",i}}),he(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:e=>new Ur(M(v({},e),{body:Ye(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const i=e.createBox(t);return i.htmlStyle=(r=e.args[0])!=null?r:"",i}}),he("em","{:rest}",{createAtom:e=>new Ur(M(v({},e),{body:Ye(e.args[0])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{\\em ${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})}),he("emph","{:auto}",{createAtom:e=>new Ur(M(v({},e),{body:Ye(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}};he(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:e=>{var t;return new Bc(M(v({},e),{delim:(t=e.args[0])!=null?t:".",size:aa[e.command].size,delimType:aa[e.command].mclass}))}}),he(["hspace","hspace*"],"{width:value}",{createAtom:e=>{var t;return new iu(M(v({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),he(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:e=>{var t;return new iu(M(v({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),he("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:e=>new Ur(e),render:(e,t)=>{let r=0;const i=t.mathstyle.id;(i===yf||i===Ru)&&(r=1),(i===sA||i===fs)&&(r=2),(i===Rc||i===Gl)&&(r=3);const s=Ye(e.args[r]);return Ur.createBox(t,s)},serialize:(e,t)=>`\\mathchoice{${Ur.serialize(e.args[0],t)}}{${Ur.serialize(e.args[1],t)}}{${Ur.serialize(e.args[2],t)}}{${Ur.serialize(e.args[3],t)}}`}),he("mathop","{:auto}",{createAtom:e=>new Ur(M(v({},e),{type:"mop",body:Ye(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=[_s(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)),uo(r)}}),he(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:e=>new Ur(M(v({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:Ye(e.args[0])}))}),he(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=Ye(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(M(v({},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=[_s(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)),uo(r)}}),he(["char","unicode"],"{charcode:value}",{createAtom:e=>new Ur(M(v({},e),{type:e.mode==="text"?"text":"mord"})),serialize:e=>{var t;return`${e.command}${kl((t=e.args[0])!=null?t:{number:10067,base:"hexadecimal"})}`},render:(e,t)=>{let r=t.evaluate(e.args[0]);return(!r||!("number"in r))&&(r={number:10067,base:"hexadecimal"}),e.value=String.fromCodePoint(r.number),e.createBox(t)}}),he("rule","[raise:value]{width:value}{thickness:value}",{createAtom:e=>new Ur(e),render:(e,t)=>{var r,i,s;const c=new So({parent:t,mathstyle:"textstyle"},e.style),A=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}),J=new zr(null,{classes:"rule",type:"ord"});return J.width=k,J.height=j+A,J.depth=-A,J.setStyle("border-right-width",k,"em"),J.setStyle("border-top-width",j,"em"),J.setStyle("border-color",e.style.color),J.setStyle("vertical-align",A,"em"),e.isSelected&&J.setStyle("opacity","50%"),e.bind(c,J),e.caret&&(J.caret=e.caret),J.wrap(t)},serialize:e=>`\\rule${e.args[0]?`[${kl(e.args[0])}]`:""}{${kl(e.args[1])}}{${kl(e.args[2])}}`}),he(["overline","underline"],"{:auto}",{createAtom:e=>new Ur(M(v({},e),{body:Ye(e.args[0])})),render:(e,t)=>{const r=e.command.substring(1),i=new So({parent:t,mathstyle:"cramp"},e.style),s=Ur.createBox(i,e.body);if(!s)return null;const c=i.metrics.defaultRuleThickness/i.scalingFactor,A=new zr(null,{classes:r+"-line"});A.height=c,A.maxFontSize=c*1.125*i.scalingFactor;let k;return r==="overline"?k=new bl({shift:0,children:[{box:s},3*c,{box:A},c]}):k=new bl({top:s.height,children:[c,{box:A},3*c,{box:s}]}),e.caret&&(k.caret=e.caret),new zr(k,{classes:r,type:"ignore"})}}),he("overset","{:auto}{base:auto}",{createAtom:e=>{const t=Ye(e.args[1]);return new hc(M(v({},e),{above:Ye(e.args[0]),body:t,skipBoundary:!1,boxType:Od(t)}))},serialize:(e,t)=>_s(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),he("underset","{:auto}{base:auto}",{createAtom:e=>{const t=Ye(e.args[1]);return new hc(M(v({},e),{below:Ye(e.args[0]),body:t,skipBoundary:!1,boxType:Od(t)}))},serialize:(e,t)=>_s(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),he("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=Ye(e.args[2]);return new hc(M(v({},e),{above:Ye(e.args[0]),below:Ye(e.args[1]),body:t,skipBoundary:!1,boxType:Od(t)}))},serialize:(e,t)=>_s(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),he(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:e=>new hc(M(v({},e),{body:Ye(e.args[2]),above:Ye(e.args[1]),below:Ye(e.args[0]),skipBoundary:!1,boxType:e.command==="\\stackrel"?"rel":"bin"})),serialize:(e,t)=>_s(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),he("smash","[:string]{:auto}",{createAtom:e=>{var t,r,i,s;return new PA(M(v({},e),{body:Ye(e.args[1]),smashHeight:(r=(t=e.args[0])==null?void 0:t.includes("t"))!=null?r:!0,smashDepth:(s=(i=e.args[0])==null?void 0:i.includes("b"))!=null?s:!0}))}}),he(["vphantom"],"{:auto}",{createAtom:e=>new PA(M(v({},e),{body:Ye(e.args[0]),isInvisible:!0,smashWidth:!0}))}),he(["hphantom"],"{:auto}",{createAtom:e=>new PA(M(v({},e),{body:Ye(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),he(["phantom"],"{:auto}",{createAtom:e=>new PA(M(v({},e),{body:Ye(e.args[0]),isInvisible:!0}))}),he("not","{:math}",{createAtom:e=>{const t=Ye(e.args[0]);return t.length===0?new Ur(M(v({},e),{type:"mrel",value:"\uE020"})):new Ur(M(v({},e),{body:[new Jc(M(v({},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(Ye(e.args[0])),s=Ur.createBox(t,e.body,{type:i});return e.caret&&(s.caret=e.caret),e.bind(t,s)}}),he(["ne","neq"],"",{createAtom:e=>new Ur(M(v({},e),{type:"mrel",body:[new Jc(M(v({},e),{body:"\uE020",align:"right",boxType:"rel"})),new Ur(M(v({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),he("rlap","{:auto}",{createAtom:e=>new Jc(M(v({},e),{body:Ye(e.args[0]),align:"right"}))}),he("llap","{:auto}",{createAtom:e=>new Jc(M(v({},e),{body:Ye(e.args[0]),align:"left"}))}),he("mathrlap","{:math}",{createAtom:e=>new Jc(M(v({},e),{body:Ye(e.args[0]),align:"left"}))}),he("mathllap","{:math}",{createAtom:e=>new Jc(M(v({},e),{body:Ye(e.args[0]),align:"left"}))}),he("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new Ac(M(v({},e),{body:Ye(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return _s("\\raisebox",(r=kl(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),he("raise","{:value}{:auto}",{createAtom:e=>{var t;return new Ac(M(v({},e),{body:Ye(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return _s("\\raise",(r=kl(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),he("lower","{:value}{:auto}",{createAtom:e=>{var t;return new Ac(M(v({},e),{body:Ye(e.args[1]),padding:{dimension:0},offset:(t=Eu(e.args[0],-1))!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r,i;return _s("\\lower",(i=kl(Eu((r=e.offset)!=null?r:{dimension:0},-1)))!=null?i:"0pt",e.bodyToLatex(t))}}),Y("0123456789/@.?!"),Be(65,90),Be(97,122),Y([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),Y([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),Y([["\\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]]),Y([["\\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"),Y([["\\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"]]),Y([["\\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"]]),Y([["\\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"),Y([["+",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"),Y([["\\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"),Y([["\\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]]),Y([["=",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"),Y([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),Y([["\\wp",8472],["\\aleph",8501]]),Y([["\\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"),Y([["\\ ",160],["~",160]],"space"),he(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new iu(e)}),he("space","",{createAtom:e=>new iu(e)}),Y([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),Y([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),Y([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var pa="<mo>&#x2061;</mo>",Ya="<mo>&#8290;</mo>";function po(e){return e.replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function sa(e,t){return!e||!t.generateID?"":` extid="${e}"`}function Yl(e,t,r){var i,s,c,A,k,j,J,ue,Pe,nt,bt;let Et=!1;t=t!=null?t:e.atoms.length;let Cr="",_n="",wr=e.atoms[e.index];const nn=(s=(i=wr.style)==null?void 0:i.variant)!=null?s:"",Mn=(A=(c=wr.style)==null?void 0:c.variantStyle)!=null?A:"";let cn="";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,Cr=`<mi${sa(wr.id,r)}>${ra}</mi>`,hl(Cr,e,r)||(e.mathML+=Cr,e.lastType="mi"),!0;cn=(J={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?J:"",cn=` mathvariant="${cn}"`}const Bi={"\\exponentialE":"&#x02147;","\\imaginaryI":"&#x2148;","\\differentialD":"&#x2146;","\\capitalDifferentialD":"&#x2145;","\\alpha":"&#x03b1;","\\pi":"&#x03c0;","\\infty":"&#x221e;","\\forall":"&#x2200;","\\nexists":"&#x2204;","\\exists":"&#x2203;","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(wr.command==="!")return e.index+=1,Cr="<mo>!</mo>",hl(Cr,e,r)||(e.mathML+=Cr,e.lastType="mo"),!0;if(Bi[wr.command]){e.index+=1;let ra=`<mi${sa(wr.id,r)}${cn}>${Bi[wr.command]}</mi>`;return(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mtext"||e.lastType==="fence")&&(ra=Ya+ra),hl(ra,e,r)||(e.mathML+=ra,e.lastType="mi"),!0}if(wr.command==="\\operatorname")_n=yd(wr.body),e.index+=1;else if(nn||Mn)for(;e.index<t&&(wr.type==="mord"||wr.type==="macro")&&!wr.isDigit()&&nn===((Pe=(ue=wr.style)==null?void 0:ue.variant)!=null?Pe:"")&&Mn===((bt=(nt=wr.style)==null?void 0:nt.variantStyle)!=null?bt:"");)_n+=yd([wr]),e.index+=1,wr=e.atoms[e.index];else(wr.type==="mord"||wr.type==="macro")&&!wr.isDigit()&&(_n+=yd([wr]),e.index+=1);if(_n.length>0){Et=!0,Cr=`<mi${cn}>${_n}</mi>`;const ra=e.lastType;Cr.endsWith(">f</mi>")||Cr.endsWith(">g</mi>")?(Cr+=pa,e.lastType="applyfunction"):e.lastType=/^<mo>(.*)<\/mo>$/.test(Cr)?"mo":"mi",hl(Cr,e,r)||((ra==="mi"||ra==="mn"||ra==="mtext"||ra==="fence")&&(Cr=Ya+Cr),e.mathML+=Cr)}return Et}function _c(e){return e.index<e.atoms.length&&e.atoms[e.index].superscript&&e.atoms[e.index].type==="subsup"}function yl(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 hl(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 A=vo(s.superscript,r);t.lastType="";const k=vo(s.subscript,r);if(t.lastType=c,!A&&!k)return!1;let j="";return A&&k?j=`<msubsup>${e}${k}${A}</msubsup>`:A?j=`<msup>${e}${A}</msup>`:k&&(j=`<msub>${e}${k}</msub>`),t.mathML+=j,t.lastType="",!0}function Ic(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 ${sa(e.atoms[i].id,r)}>${s}</mtext>`,e.lastType="mtext",!0):!1}function uu(e,t,r){t=t!=null?t:e.atoms.length;const i=e.index;let s="",c=yl(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"+sa(e.atoms[i].id,r)+">"+s+"</mn>",c<0&&_c(e)&&(c=e.index,e.index+=1),hl(s,e,r)||(e.mathML+=s,e.lastType="mn"),!0)}function Tf(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 A=!1,k=0;const j=e.index;let J=-1,ue=j+1;for(;ue<t&&!A;)e.atoms[ue].type==="mopen"?k+=1:e.atoms[ue].type==="mclose"&&(k-=1),k===-1&&(A=!0,J=ue),ue+=1;A&&(s="<mrow>",s+=bd(e.atoms[j],r),s+=vo(e.atoms,r,j+1,J),s+=bd(e.atoms[J],r),s+="</mrow>",e.index=J+1,(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mfrac"||e.lastType==="fence")&&(e.mathML+=Ya),hl(s,e,r)&&(i=!0,e.lastType="",s=""),c="fence")}return s.length>0&&(i=!0,e.mathML+=s,e.lastType=c),i}function vd(e,t,r){let i=!1;t=t!=null?t:e.atoms.length;let s="",c="";const A=e.atoms[e.index];if(!A)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[A.command]){e.index+=1;const j=`<mo${sa(A.id,r)}>${k[A.command]}</mo>`;return hl(j,e,r)||(e.mathML+=j,e.lastType="mo"),!0}if(e.index<t&&(A.type==="mbin"||A.type==="mrel"))s+=rf(e.atoms[e.index],r),e.index+=1,c="mo";else if(e.index<t&&(A.type==="mop"||A.type==="operator"||A.type==="extensible-symbol")){if(A.subsupPlacement==="over-under"&&(A.superscript||A.subscript)){const j=bd(A,r);return A.superscript&&A.subscript?(s+="<munderover>"+j,s+=vo(A.subscript,r),s+=vo(A.superscript,r),s+="</munderover>"):A.superscript?(s+="<mover>"+j,s+=vo(A.superscript,r),s+="</mover>"):A.subscript&&(s+="<munder>"+j,s+=vo(A.subscript,r),s+="</munder>"),e.mathML+=s,e.lastType="mo",e.index+=1,!0}{const j=e.atoms[e.index],J=j.value==="\\operatorname",ue=J?'<mi class="MathML-Unit"'+sa(j.id,r)+">"+yd(j.value)+"</mi>":bd(j,r);s+=ue,!J&&!/^<mo>(.*)<\/mo>$/.test(ue)?(s+=pa,c="applyfunction"):c=J?"mi":"mo"}(e.lastType==="mi"||e.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(s)&&(s=Ya+s),e.index+=1}return s.length>0&&(i=!0,hl(s,e,r)||(e.mathML+=s,e.lastType=c)),i}function vo(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=rf(e,t);else if(Array.isArray(e)){s.atoms=e;let c=0;for(i=i||(e?e.length:0);s.index<i;)if(Ic(s,i,t)||uu(s,i,t)||Yl(s,i,t)||vd(s,i,t)||Tf(s,i,t))c+=1;else if(s.index<i){let A=rf(s.atoms[s.index],t);s.lastType==="mn"&&A.length>0&&s.atoms[s.index].type==="genfrac"&&(A="<mo>&#x2064;</mo>"+A),s.atoms[s.index].type==="genfrac"?s.lastType="mfrac":s.lastType="",s.index+=1,hl(A,s,t)?c+=1:A.length>0&&(s.mathML+=A,c+=1)}c>1&&(s.mathML="<mrow>"+s.mathML+"</mrow>")}return s.mathML}function bd(e,t){let r="";const i=yd(e.value);return i&&(r="<mo"+sa(e.id,t)+">"+i+"</mo>"),r}function yd(e){if(!e)return"";if(typeof e=="string")return po(e);if(!Array.isArray(e)&&typeof e.body=="string")return po(e.body);let t="";for(const r of e)typeof r.value=="string"&&(t+=r.value);return po(t)}function rf(e,t){var r,i,s,c,A,k,j,J,ue,Pe,nt,bt,Et,Cr,_n,wr,nn,Mn,cn,Bi,ra,Hi;if(e.mode==="text")return`<mi${sa(e.id,t)}>${e.value}</mi>`;const p={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 U="",ge="",Ke,Ve,Ge,ot,ut,ft;const{command:Ht}=e;if(e.command==="\\error")return`<merror${sa(e.id,t)}>${vo(e.body,t)}</merror>`;const vr={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},Ct={"\\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":U=vo(e.body,t);break;case"array":if((e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(U+="<mrow>",e.leftDelim&&e.leftDelim!=="."&&(U+="<mo>"+(vr[e.leftDelim]||e.leftDelim)+"</mo>")),U+="<mtable",e.colFormat){for(U+=' columnalign="',Ge=0;Ge<e.colFormat.length;Ge++)e.colFormat[Ge].align&&(U+={l:"left",c:"center",r:"right"}[e.colFormat[Ge].align]+" ");U+='"'}for(U+=">",Ve=0;Ve<e.array.length;Ve++){for(U+="<mtr>",Ke=0;Ke<e.array[Ve].length;Ke++)U+="<mtd>"+vo(e.array[Ve][Ke],t)+"</mtd>";U+="</mtr>"}U+="</mtable>",(e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(e.rightDelim&&e.rightDelim!=="."&&(U+="<mo>"+(vr[e.leftDelim]||e.rightDelim)+"</mo>"),U+="</mrow>");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(U+="<mrow>"),e.leftDelim&&e.leftDelim!=="."&&(U+="<mo"+sa(e.id,t)+">"+(vr[e.leftDelim]||e.leftDelim)+"</mo>"),e.hasBarLine?(U+="<mfrac>",U+=vo(e.above,t)||"<mi>&nbsp;</mi>",U+=vo(e.below,t)||"<mi>&nbsp;</mi>",U+="</mfrac>"):(U+="<mtable"+sa(e.id,t)+">",U+="<mtr>"+vo(e.above,t)+"</mtr>",U+="<mtr>"+vo(e.below,t)+"</mtr>",U+="</mtable>"),e.rightDelim&&e.rightDelim!=="."&&(U+="<mo"+sa(e.id,t)+">"+(vr[e.rightDelim]||e.rightDelim)+"</mo>"),(e.leftDelim||e.rightDelim)&&(U+="</mrow>");break;case"surd":e.hasEmptyBranch("above")?(U+="<msqrt"+sa(e.id,t)+">",U+=vo(e.body,t),U+="</msqrt>"):(U+="<mroot"+sa(e.id,t)+">",U+=vo(e.body,t),U+=vo(e.above,t),U+="</mroot>");break;case"leftright":const ir=e,mr=ir.leftDelim;U="<mrow>",mr&&mr!=="."&&(U+=`<mo${sa(e.id,t)}>${(r=vr[mr])!=null?r:mr}</mo>`),e.body&&(U+=vo(e.body,t));const Xr=ir.matchingRightDelim();Xr&&Xr!=="."&&(U+=`<mo${sa(e.id,t)}>${(i=vr[Xr])!=null?i:Xr}</mo>`),U+="</mrow>";break;case"sizeddelim":case"delim":U+=`<mo${sa(e.id,t)}>${vr[e.value]||e.value}</mo>`;break;case"accent":U+='<mover accent="true"'+sa(e.id,t)+">",U+=vo(e.body,t),U+="<mo>"+(Ct[Ht]||e.accent)+"</mo>",U+="</mover>";break;case"line":case"overlap":break;case"overunder":ut=e.above,ot=e.below,(e.svgAbove||ut)&&(e.svgBelow||ot)?ft=e.body:ut&&ut.length>0?(ft=e.body,(c=(s=e.body)==null?void 0:s[0])!=null&&c.below?(ot=e.body[0].below,ft=e.body[0].body):((k=(A=e.body)==null?void 0:A[0])==null?void 0:k.type)==="first"&&((J=(j=e.body)==null?void 0:j[1])!=null&&J.below)&&(ot=e.body[1].below,ft=e.body[1].body)):ot&&ot.length>0&&(ft=e.body,(Pe=(ue=e.body)==null?void 0:ue[0])!=null&&Pe.above?(ut=e.body[0].above,ft=e.body[0].body):((bt=(nt=e.body)==null?void 0:nt[0])==null?void 0:bt.type)==="first"&&((Cr=(Et=e.body)==null?void 0:Et[1])!=null&&Cr.above)&&(ut=e.body[1].overscript,ft=e.body[1].body)),(e.svgAbove||ut)&&(e.svgBelow||ot)?(U+=`<munderover ${sa(e.id,t)}>`,U+=(_n=p[e.svgBody])!=null?_n:vo(ft,t),U+=(wr=p[e.svgBelow])!=null?wr:vo(ot,t),U+=(nn=p[e.svgAbove])!=null?nn:vo(ut,t),U+="</munderover>"):e.svgAbove||ut?(U+=`<mover ${sa(e.id,t)}>`+((Mn=p[e.svgBody])!=null?Mn:vo(ft,t)),U+=(cn=p[e.svgAbove])!=null?cn:vo(ut,t),U+="</mover>"):(e.svgBelow||ot)&&(U+=`<munder ${sa(e.id,t)}>`+((Bi=p[e.svgBody])!=null?Bi:vo(ft,t)),U+=(ra=p[e.svgBelow])!=null?ra:vo(ot,t),U+="</munder>");break;case"placeholder":U+="?";break;case"mord":{U=typeof e.value=="string"?e.value:Ht,Ht==="\\char"?U="&#x"+("000000"+e.args[0].number.toString(16)).slice(-4)+";":U.length>0&&U.startsWith("\\")&&(typeof e.value=="string"&&e.value.charCodeAt(0)>255?U="&#x"+("000000"+e.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof e.value=="string"?U=e.value.charAt(0):(console.error("Did not expect this"),U=""));const Br=/\d/.test(U)?"mn":"mi";U=`<${Br}${sa(e.id,t)}>${po(U)}</${Br}>`;break}case"mbin":case"mrel":case"minner":U=bd(e,t);break;case"mpunct":U='<mo separator="true"'+sa(e.id,t)+">"+Ht+"</mo>";break;case"mop":case"operator":case"extensible-symbol":e.body!=="\u200B"&&(U="<mo"+sa(e.id,t)+">",U+=Ht==="\\operatorname"?e.body:Ht||e.body,U+="</mo>");break;case"box":U='<menclose notation="box"',e.backgroundcolor&&(U+=' mathbackground="'+e.backgroundcolor+'"'),U+=sa(e.id,t)+">"+vo(e.body,t)+"</menclose>";break;case"spacing":U+='<mspace width="'+((Hi=B[Ht])!=null?Hi:0)+'em"/>';break;case"enclose":U='<menclose notation="';for(const Br in e.notation)Object.prototype.hasOwnProperty.call(e.notation,Br)&&e.notation[Br]&&(U+=ge+Br,ge=" ");U+=sa(e.id,t)+'">'+vo(e.body,t)+"</menclose>";break;case"prompt":U='<menclose notation="roundexbox""">'+vo(e.body,t)+"</menclose>";break;case"space":U+="&nbsp;";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":U+=bd(e,t);break;case"mclose":U+=bd(e,t);break;case"macro":{const Br=e.command+yd(e.macroArgs);Br&&(U+=`<mo ${sa(e.id,t)}>${Br}</mo>`)}break;case"latexgroup":U+=vo(e.body,t);break;case"latex":U+="<mtext"+sa(e.id,t)+">"+e.value+"</mtext>";break;case"tooltip":U+=vo(e.body,t);break;case"text":U+=`<mtext ${sa(e.id,t)}x>${e.value}</mtext>`;break;default:if(e.command==="\\displaystyle")return`<mrow ${sa(e.id,t)} displaystyle="true">${vo(e.body,t)}</mrow>`;if(e.command==="\\textstyle")return`<mrow ${sa(e.id,t)} displaystyle="false">${vo(e.body,t)}</mrow>`;console.info("Unexpected element in conversion to MathML:",e)}return U}var KA={"\\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"},Uf={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 hh(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 i0(e){if(_(e)){for(const t of e)if(t.type!=="first"&&t.id)return t.id.toString()}return""}function ph(e){let t="";if(_(e))for(const r of e)r.type!=="first"&&typeof r.value=="string"&&(t+=r.value);return t}function Tp(e){return e?e.map(t=>t.value).join(""):""}function io(e,t){var r,i,s,c,A;function k(ue){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(ue)?` <say-as interpret-as="character">${ue}</say-as>`:/[A-Z]/.test(ue)?`capital <say-as interpret-as="character">${ue.toLowerCase()}</say-as>`:ue:/[a-z]/.test(ue)?" '"+ue.toUpperCase()+"'":/[A-Z]/.test(ue)?" 'capital "+ue.toUpperCase()+"'":ue}function j(ue){return"<emphasis>"+ue+"</emphasis>"}if(!t)return"";let J="";if(_(t)){let ue=!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"?(J+=" of ",J+=j(io(e,t[nt+1])),nt+=2):t[nt].mode==="text"?Pe?J+=(r=t[nt].value)!=null?r:" ":(Pe=!0,J+=io("text",t[nt])):t[nt].isDigit()?ue?J+=t[nt].asDigit():(ue=!0,J+=io(e,t[nt])):(ue=!1,J+=io(e,t[nt])))}else if(t.mode==="text")t.id&&e==="math"&&(J+='<mark name="'+t.id.toString()+'"/>'),J+=t.value;else{t.id&&e==="math"&&(J+='<mark name="'+t.id.toString()+'"/>');let ue="",Pe="",nt="",bt=!1;const{command:Et}=t;switch(Et){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 Cr=t.body.length>1?'start input . <break time="500ms"/> '+io(e,t.body)+'. <break time="500ms"/> end input':"blank";J+=' <break time="300ms"/> '+Cr+'. <break time="700ms"/>'+((i=t.correctness)!=null?i:"")+' . <break time="700ms"/> ';break;case"array":const _n=t.array,wr=t.environmentName;if(Object.keys(Uf).includes(wr)){J+=` begin ${Uf[wr]} `;for(let cn=0;cn<_n.length;cn++){cn>0&&(J+=","),J+=` row ${cn+1} `;for(let Bi=0;Bi<_n[cn].length;Bi++)Bi>0&&(J+=","),J+=` column ${Bi+1}: `,J+=io("math",_n[cn][Bi])}J+=` end ${Uf[wr]} `}break;case"group":Et==="\\ne"?J+=" not equal ":(Et==="\\not"&&(J+=" not "),J+=io("math",t.body));break;case"root":J+=io("math",t.body);break;case"genfrac":if(ue=io("math",t.above),Pe=io("math",t.below),mc(t.above)&&mc(t.below)){const Bi={"1/2":" half ","1/3":" one third ","2/3":" two third","1/4":" one quarter ","3/4":" three quarter ","1/5":" one fifth ","2/5":" two fifths ","3/5":" three fifths ","4/5":" four fifths ","1/6":" one sixth ","5/6":" five sixths ","1/8":" one eight ","3/8":" three eights ","5/8":" five eights ","7/8":" seven eights ","1/9":" one ninth ","2/9":" two ninths ","4/9":" four ninths ","5/9":" five ninths ","7/9":" seven ninths ","8/9":" eight ninths "}[ph(t.above)+"/"+ph(t.below)];Bi?J=Bi:J+=ue+" over "+Pe}else J+=' the fraction <break time="150ms"/>'+ue+' 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"))J+=mc(t.body)?" the square root of "+nt+" , ":' the square root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End square root';else{let cn=io("math",t.above);cn=cn.trim();const Bi=cn.replace(/<mark([^/]*)\/>/g,"");Bi==="3"?J+=' the cube root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End cube root':Bi==="n"?J+=' the nth root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End root':J+=' the root with index: <break time="200ms"/>'+cn+', of <break time="200ms"/>'+nt+'. <break time="200ms"/> End root'}break;case"leftright":{const cn=t;J+=(s=cn.leftDelim?KA[cn.leftDelim]:void 0)!=null?s:cn.leftDelim,J+=io("math",t.body),J+=(c=cn.rightDelim?KA[cn.rightDelim]:void 0)!=null?c:cn.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const nn=Et.replace(/^\\/g,""),Mn=rt()[nn];Mn&&(Mn!=null&&Mn.expand?J+=io("math",t.body):J+=`${nn} `);break;case"placeholder":J+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(Et==="\\mathbin"||Et==="\\mathrel"||Et==="\\mathopen"||Et==="\\mathclose"||Et==="\\mathpunct"||Et==="\\mathord"||Et==="\\mathinner"){J=io(e,t.body);break}let cn=t.isDigit()?t.asDigit():t.value,Bi=t.command;if((t.type==="delim"||t.type==="sizeddelim")&&(Bi=t.value,cn=Bi),e==="text")J+=cn;else{if(t.type==="mbin"&&(J+='<break time="150ms"/>'),cn){const ra=KA[cn]||(Bi?KA[Bi.trim()]:"");if(ra)J+=" "+ra;else{const Hi=Bi?hh(Bi.trim()):"";J+=Hi||k(cn)}}else J+=io("math",t.body);t.type==="mbin"&&(J+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(t.value!=="\u200B"){const cn=t.command;if(cn==="\\sum")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Bi=io("math",t.superscript);Bi=Bi.trim();let ra=io("math",t.subscript);ra=ra.trim(),J+=' the summation from <break time="200ms"/>'+ra+'<break time="200ms"/> to <break time="200ms"/>'+Bi+'<break time="200ms"/> of <break time="150ms"/>',bt=!0}else if(t.hasEmptyBranch("subscript"))J+=" the summation of";else{let Bi=io("math",t.subscript);Bi=Bi.trim(),J+=' the summation from <break time="200ms"/>'+Bi+'<break time="200ms"/> of <break time="150ms"/>',bt=!0}else if(cn==="\\prod")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Bi=io("math",t.superscript);Bi=Bi.trim();let ra=io("math",t.subscript);ra=ra.trim(),J+=' the product from <break time="200ms"/>'+ra+'<break time="200ms"/> to <break time="200ms"/>'+Bi+'<break time="200ms"/> of <break time="150ms"/>',bt=!0}else if(t.hasEmptyBranch("subscript"))J+=" the product of ";else{let Bi=io("math",t.subscript);Bi=Bi.trim(),J+=' the product from <break time="200ms"/>'+Bi+'<break time="200ms"/> of <break time="150ms"/>',bt=!0}else if(cn==="\\int")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Bi=io("math",t.superscript);Bi=Bi.trim();let ra=io("math",t.subscript);ra=ra.trim(),J+=' the integral from <break time="200ms"/>'+j(ra)+'<break time="200ms"/> to <break time="200ms"/>'+j(Bi)+' <break time="200ms"/> of ',bt=!0}else J+=' the integral of <break time="200ms"/> ';else if(typeof t.value=="string"){const Bi=(A=KA[t.value])!=null?A:t.command?KA[t.command]:void 0;J+=Bi||" "+t.value}else t.command&&(t.command==="\\mathop"?J+=io("math",t.body):t.command==="\\operatorname"?J+=Tp(t.body):J+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":nt=io("math",t.body),J+=" crossed out "+nt+". End crossed out.";break;case"space":case"spacing":break}if(!bt&&!t.hasEmptyBranch("superscript")){let Cr=io(e,t.superscript);Cr=Cr.trim();const _n=Cr.replace(/<[^>]*>/g,"");if(mc(t.superscript)){if(e==="math"){const wr=i0(t.superscript);wr&&(J+='<mark name="'+wr+'"/>')}_n==="\u2032"?J+=" prime ":_n==="2"?J+=" squared ":_n==="3"?J+=" cubed ":Number.isNaN(Number.parseInt(_n))?J+=" to the "+Cr+"; ":J+=' to the <say-as interpret-as="ordinal">'+_n+"</say-as> power; "}else Number.isNaN(Number.parseInt(_n))?J+=" raised to the "+Cr+"; ":J+=' raised to the <say-as interpret-as="ordinal">'+_n+"</say-as> power; "}if(!bt&&!t.hasEmptyBranch("subscript")){let Cr=io("math",t.subscript);Cr=Cr.trim(),J+=mc(t.subscript)?" sub "+Cr:" subscript "+Cr+". End subscript. "}}return J}function Fc(e){var t,r;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const s=vo(e);if(s){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(t=window.MathfieldElement.textToSpeechRulesOptions)!=null?t:{},window.MathfieldElement.textToSpeechRulesOptions=M(v({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=M(v({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=M(v({},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 A="";try{A=c.toSpeech(s)}catch(k){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",k)}return A}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"&&X()==="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 yA={"\\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"},nf={"\\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 ms(e){var t,r,i,s,c,A,k,j,J,ue,Pe,nt,bt;if(!e)return"";if(_(e)){if(e.length===0)return"";if(e[0].mode==="latex")return e.map(ms).join("");if(e[0].mode==="text"){let Mn=0,cn="";for(;((t=e[Mn])==null?void 0:t.mode)==="text";)cn+=e[Mn].body?ms(e[Mn].body):e[Mn].value,Mn++;return`"${cn}" ${ms(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(ms(e[wr++]))}return nn.push(ms(e.slice(wr))),wm(nn)}if(e.mode==="text")return`"${e.value}"`;let Et="";const{command:Cr}=e;let _n;if(Cr==="\\placeholder")return`(${ms(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"}[Cr];Et=`${wr!=null?wr:""} ${ms(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map(Hi=>Hi.value).join("");case"group":case"root":Et=(r=yA[Cr])!=null?r:ms(e.body);break;case"genfrac":{const Hi=e;(Hi.leftDelim||Hi.rightDelim)&&(Et=Hi.leftDelim==="."||!Hi.leftDelim?"{:":Hi.leftDelim),Hi.hasBarLine?(Et+="(",Et+=ms(Hi.above),Et+=")/(",Et+=ms(Hi.below),Et+=")"):(Et+="("+ms(Hi.above)+"),",Et+="("+ms(Hi.below)+")"),(Hi.leftDelim||Hi.rightDelim)&&(Et+=Hi.rightDelim==="."||!Hi.rightDelim?"{:":Hi.rightDelim)}break;case"surd":Et+=e.hasEmptyBranch("above")?"sqrt("+ms(e.body)+")":"root("+ms(e.above)+")("+ms(e.body)+")";break;case"latex":Et=e.value;break;case"leftright":{const Hi=e,p=Hi.leftDelim;Et+=p==="."||!p?"{:":p,Et+=ms(Hi.body);const B=Hi.matchingRightDelim();Et+=B==="."||!B?":}":B}break;case"sizeddelim":case"delim":Et=e.value;break;case"overlap":break;case"overunder":break;case"mord":Et=(s=(i=yA[Cr])!=null?i:Cr)!=null?s:typeof e.value=="string"?e.value:"",Et.startsWith("\\")&&(Et+=" "),_n=Cr?Cr.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,_n?Et=String.fromCodePoint(Number.parseInt("0x"+_n[1])):Et.length>0&&Et.startsWith("\\")&&(Et=typeof e.value=="string"?e.value.charAt(0):e.command),Et=a0(Et,e.style);break;case"mbin":case"mrel":case"minner":Et=(A=(c=yA[Cr])!=null?c:nf[Cr])!=null?A:e.value;break;case"mopen":case"mclose":Et=e.value;break;case"mpunct":Et=(k=nf[Cr])!=null?k:Cr;break;case"mop":case"operator":case"extensible-symbol":e.value!=="\u200B"&&(nf[Cr]?Et=nf[Cr]:Et=Cr==="\\operatorname"?ms(e.body):(j=e.value)!=null?j:Cr,Et+=" ");break;case"array":const nn=e.array,Mn=e.environmentName,cn=(J={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Mn])!=null?J:["(",")"],Bi=[];for(const Hi of nn){const p=[];for(const B of Hi)p.push(cn[0]+ms(B)+cn[1]);Bi.push(p.join(","))}const ra=(ue={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Mn])!=null?ue:["(",")"];Et=ra[0]+Bi.join(",")+ra[1];break;case"box":break;case"spacing":Et=(Pe=yA[Cr])!=null?Pe:" ";break;case"enclose":Et="("+ms(e.body)+")";break;case"space":Et=" ";break;case"subsup":Et="";break;case"macro":Et=(bt=(nt=yA[Cr])!=null?nt:nf[Cr])!=null?bt:ms(e.body);break}if(!e.hasEmptyBranch("subscript")){Et+="_";const wr=ms(e.subscript);Et+=wr.length!==1?`(${wr})`:wr}if(!e.hasEmptyBranch("superscript")){Et+="^";const wr=ms(e.superscript);Et+=wr.length!==1?`(${wr})`:wr}return Et}function a0(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 Tl(e,t){var r,i;t!=null||(t={}),t.mathstyle=(r=t.mathstyle)!=null?r:"displaystyle";const s=new So({from:M(v({},S0()),{renderPlaceholder:()=>new zr(160,{maxFontSize:1}),letterShapeStyle:(i=t==null?void 0:t.letterShapeStyle)!=null?i:"tex"}),mathstyle:t.mathstyle}),A=new Ur({mode:"math",type:"root",body:dc(e,{context:s,parseMode:"math",mathstyle:t.mathstyle})}).render(s);return A?(gf(ll(A,s)),Jf(A,{classes:"ML__latex"}).toMarkup()):""}function xm(e){return ud(e,{context:S0()})}function mh(e,t={}){return vo(dc(e,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),t)}function o0(e){const t=dc(e,{parseMode:"math",mathstyle:"displaystyle"});return Fc(t)}var Ou;function wA(e){var t,r;if(!Ou){const i=(t=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;i?Ou=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=Ou==null?void 0:Ou.box(e).latex)!=null?r:""}function s0(e,t="math"){return ms(new Ur({type:"root",body:dc(e,{parseMode:t})}))}function gh(e){return M0(e,{format:"ascii-math"})[1]}function af(e){if(typeof e=="string"){const t=tp(e);if(!t)throw new Error(`Invalid color: ${e}`);return t}return"C"in e?Up(e):"a"in e?rp(e):e}function of(e){return e<0?0:e>255?255:Math.round(e)}function tp(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 ql(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),A=Math.atan2(i,r)*180/Math.PI,k={L:t,C:s,H:A};return e.alpha!==void 0&&(k.alpha=e.alpha),k}function HA(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),A=Math.pow(t*1.000000054672411-.0894841820949657*r-1.2914855378640917*i,3),k=4.076741661347994*s-3.307711590408193*c+.230969928729428*A,j=-1.2684380040921763*s+2.6097574006633715*c-.3413193963102197*A,J=-.004196086541837188*s-.7034186144594493*c+1.7076147009309444*A,ue=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[ue(k),ue(j),ue(J)]}function jA(e){const[t,r,i]=e;return t>=0&&t<=1&&r>=0&&r<=1&&i>=0&&i<=1}function l0(e,t){let[r,i,s]=e;return r=of(r*255),i=of(i*255),s=of(s*255),t!==void 0?{r,g:i,b:s,alpha:t}:{r,g:i,b:s}}function rp(e){let[t,r,i]=HA(e);if(jA([t,r,i]))return l0([t,r,i],e.alpha);const s=Cm(e);if(s.C=0,[t,r,i]=HA(ql(s)),!jA([t,r,i]))return l0([t,r,i],e.alpha);let c=0,A=e.L,k=(c+A)/2;s.C=k;const j=.36/Math.pow(2,12);for(;A-c>j;)k=(c+A)/2,s.C=k,[t,r,i]=HA(ql(s)),jA([t,r,i])?c=k:A=k;return l0([t,r,i],e.alpha)}function Up(e){return rp(ql(e))}function np(e,t){const r=af(e),i=af(t),s=.56,c=.57,A=.62,k=.65,j=.022,J=1.414,ue=.1,Pe=5e-4,nt=1.14,bt=.027,Et=1.14,Cr=.027;function _n(Hi){return Hi>=j?Hi:Hi+Ch(j-Hi,J)}function wr(Hi){return(Hi<0?-1:1)*Math.pow(Math.abs(Hi),2.4)}const nn=_n(wr(i.r/255)*.2126729+wr(i.g/255)*.7151522+wr(i.b/255)*.072175),Mn=_n(wr(r.r/255)*.2126729+wr(r.g/255)*.7151522+wr(r.b/255)*.072175);let cn,Bi,ra;return Math.abs(Mn-nn)<Pe?Bi=0:Mn>nn?(cn=Ch(Mn,s)-Ch(nn,c),Bi=cn*nt):(cn=Ch(Mn,k)-Ch(nn,A),Bi=cn*Et),Math.abs(Bi)<ue?ra=0:Bi>0?ra=Bi-Cr:ra=Bi+bt,ra*100}function Rf(e,t,r){r!=null||(r="#fff"),t!=null||(t="#000");const i=np(e,r),s=np(e,t);return Math.abs(i)>Math.abs(s)?r:t}function vh(e){const t=af(e);let r=((1<<24)+(of(t.r)<<16)+(of(t.g)<<8)+of(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 gs(e){const t=bh(e);let r="";for(const i of t){if(typeof i.value!="string")return"";r+=i.value}return r}function bh(e){const r=e.model.selection.ranges;return r.length!==1?[]:e.model.getAtoms(r[0])}function yh(e,t){const r=bh(e);if(r.length!==1)return!1;const i=H0[t];return i?!!i.test(r[0].value):!1}function c0(e,t){return gs(e).length>0}function zA(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 sf(e){return[{label:()=>Tl(`\\vec{${gs(e)}}`),visible:()=>gs(e).length===1,onMenuSelect:()=>e.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\overrightarrow{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\overleftarrow{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\dot{${gs(e)}}`),visible:()=>gs(e).length===1,onMenuSelect:()=>e.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\ddot{${gs(e)}}`),visible:()=>gs(e).length===1,onMenuSelect:()=>e.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\bar{${gs(e)}}`),visible:()=>gs(e).length===1,onMenuSelect:()=>e.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\overline{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\overgroup{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\overbrace{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\underline{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\undergroup{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\underbrace{${gs(e)}}`),visible:()=>gs(e).length>0,onMenuSelect:()=>e.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function qs(e){return[{label:()=>Tl(`\\boxed{${e.getValue(e.model.selection)}}}`),onMenuSelect:()=>e.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\bbox[5px, border: 2px solid red]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Tl(`\\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:(vh(Rf(le[r]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${le[r]} "></span>`,ariaLabel:()=>{var i;return(i=re(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 gc(e){const t=[];for(const r of Object.keys(be))t.push({class:(Rf(be[r])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${be[r]} "></span>`,ariaLabel:()=>{var i;return(i=re(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 tf{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 Qf(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:()=>re("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 Rp(e){return[{label:()=>re("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>e.executeCommand("addRowBefore"),visible:()=>$A(e)},{label:()=>re("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>e.executeCommand("addRowAfter"),visible:()=>$A(e)},{label:()=>re("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>e.executeCommand("addColumnBefore"),visible:()=>$A(e),enabled:()=>{const t=e.model.parentEnvironment;if(!t)return!1;const[r,i]=Fg(e);return r<t.maxColumns}},{label:()=>re("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>e.executeCommand("addColumnAfter"),visible:()=>$A(e)},{type:"divider"},{label:()=>re("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>e.executeCommand("removeRow"),visible:()=>$A(e)},{label:()=>re("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>e.executeCommand("removeColumn"),visible:()=>$A(e)},{type:"divider"},{label:()=>re("menu.borders"),visible:()=>(Bm(e)||$A(e))&&e.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>ip(e,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>ip(e,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>ip(e,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>ip(e,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>ip(e,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>re("menu.insert matrix"),id:"insert-matrix",visible:()=>e.isSelectionEditable,submenu:Qf(e),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>re("menu.mode"),id:"mode",visible:()=>e.isSelectionEditable&&e.model.selectionIsCollapsed,submenu:[{label:()=>re("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{zh(e,"accept-all"),e.executeCommand(["switchMode","math"])},checked:()=>e.model.mode==="math"},{label:()=>re("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{zh(e,"accept-all"),e.executeCommand(["switchMode","text"])},checked:()=>e.model.mode==="text"},{label:()=>re("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>e.executeCommand(["switchMode","latex"]),checked:()=>e.model.mode==="latex"}]},{type:"divider"},{label:()=>re("menu.font-style"),id:"variant",visible:()=>e.isSelectionEditable,submenu:zA(e),submenuClass:"variant-submenu"},{label:()=>re("menu.color"),id:"color",visible:()=>e.isSelectionEditable,submenu:gc(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>re("menu.background-color"),id:"background-color",visible:()=>e.isSelectionEditable,submenu:pl(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>re("menu.accent"),id:"accent",visible:()=>e.isSelectionEditable,submenu:sf(e),submenuClass:"variant-submenu"},{label:()=>re("menu.decoration"),id:"decoration",visible:()=>e.isSelectionEditable&&gs(e).length>0,submenu:qs(e),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>re("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:()=>re("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?re("menu.solve-for",Tl(r)):re("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 A;return(A=c.simplify().latex)!=null?A:""});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:()=>re("menu.cut"),onMenuSelect:()=>e.executeCommand("cutToClipboard"),visible:()=>!e.options.readOnly&&e.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>re("menu.copy"),id:"copy",submenu:[{label:()=>re("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Ds.copyToClipboard(e,"latex"),keyboardShortcut:"meta+C"},{label:()=>re("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Ds.copyToClipboard(e,"ascii-math")},{label:()=>re("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Ds.copyToClipboard(e,"math-ml")}]},{label:()=>re("menu.paste"),id:"paste",onMenuSelect:()=>e.executeCommand("pasteFromClipboard"),visible:()=>e.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>re("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>e.executeCommand("selectAll")}]}function $A(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 ip(e,t){lm(e),e.flushInlineShortcutBuffer(),ws(e.model,t),_l(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:()=>Tl(`\\${r}{${gs(e)}}`),tooltip:()=>{var s;return(s=re(i))!=null?s:i},visible:()=>yh(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:()=>Tl(`\\${r}{${gs(e)}}`),tooltip:()=>{var s;return(s=re(i))!=null?s:i},visible:()=>c0(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+Fc(t)}o({speak:(e,t,r)=>Qp(e,t,r)},{target:"mathfield"});function Qp(e,t,r){var i,s;r=r!=null?r:{withHighlighting:!1};const{model:c}=e;function A(ue){let Pe=null;switch(ue){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(ue){let Pe="";switch(ue){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: "'+ue+'"');break}return Pe}const j=A(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 J=Fc(j);return N()&&r.withHighlighting?(Nu().readAloudMathfield=e,$h(e,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(e.field,J)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(J),!1}function Lg(e){var t,r;if(!N()){console.log("Speak:",e);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const i=new SpeechSynthesisUtterance(e);window.speechSynthesis.speak(i)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),s={OutputFormat:"mp3",VoiceId:(t=window.MathfieldElement.speechEngineVoice)!=null?t:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna")?"neural":"standard",Text:e,TextType:"ssml"};i.synthesizeSpeech(s,(c,A)=>{if(c)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${c}`);else if(A!=null&&A.AudioStream){const k=new Uint8Array(A.AudioStream),j=new Blob([k.buffer],{type:"audio/mpeg"}),J=URL.createObjectURL(j);new Audio(J).play().catch(Pe=>console.log(Pe))}else console.log("polly.synthesizeSpeech():",A)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function cg(e){var t;let r;if(e.parent.type==="prompt")e.parentBranch==="body"&&(r="prompt");else if(e.parentBranch==="body")r=e.type&&(t={enclose:"cross out",leftright:"delimiter",surd:"square root",root:"math field",mop:"operator",first:"first"}[e.type])!=null?t:"parent";else if(e.parent.type==="genfrac"){if(e.parentBranch==="above")return"numerator";if(e.parentBranch==="below")return"denominator"}else e.parent.type==="surd"?e.parentBranch==="above"&&(r="index"):e.parentBranch==="superscript"?r="superscript":e.parentBranch==="subscript"&&(r="subscript");return r||console.log("unknown relationship"),r!=null?r:"parent"}function kg(e,t,r,i){let s="";if(t==="plonk")window.MathfieldElement.playSound("plonk"),e.flushInlineShortcutBuffer();else if(t==="delete")s=u0("deleted: ",i);else if(t==="focus"||t.includes("move"))s=Dg(e.model,r)+(e.model.selectionIsCollapsed?"":"selected: ")+Og(e.model);else if(t==="replacement")s=u0("",e.model.at(e.model.position));else if(t==="line"){const c=u0("",e.model.root);e.keyboardDelegate.setAriaLabel(c)}else s=i?u0(t+" ",i):t;if(s){const c=e.ariaLiveText.textContent.includes("\xA0")?" \u202F ":" \xA0 ";e.ariaLiveText.textContent=s+c}}function Dg(e,t){if(Number.isNaN(t))return"";const r=e.at(t);if(!r||r.treeDepth<=e.at(e.position).treeDepth)return"";let i="",s=r.parent;const c=e.at(e.position).parent;for(;s!==e.root&&s!==c;)i+=`out of ${cg(s)};`,s=s.parent;return i}function Og(e){if(!e.selectionIsCollapsed)return u0("",e.getAtoms(e.selection));let t="";const r=e.at(e.position),i=cg(r);return r.isFirstSibling&&(t=(i?"start of "+i:"unknown")+": "),r.isLastSibling?r.isFirstSibling||(t+=i?"end of "+i:"unknown"):t+=u0("",r),t}var Ng=class{constructor(e,t,r){this.mathfield=e,this.mode=t,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=r}dispose(){this.mathfield=void 0}getState(){const e={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(e.direction=this.selection.direction),{content:this.root.toJson(),selection:e,mode:this.mode}}setState(e,t){var r;const i=this.silenceNotifications;this.silenceNotifications=(r=t==null?void 0:t.silenceNotifications)!=null?r:!0;let s={};if((t==null?void 0:t.type)==="undo"&&(s={inputType:"historyUndo"}),(t==null?void 0:t.type)==="redo"&&(s={inputType:"historyRedo"}),this.contentWillChange(s)){const c=this.silenceNotifications;this.silenceNotifications=!0,this.mode=e.mode,this.root=ka(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 ue=c.ranges[0][0];if(!this.mathfield.dirty&&!((r=this.at(ue))!=null&&r.parentPrompt)&&this.mathfield.hasEditablePrompts){if((i=this.at(ue-1))!=null&&i.parentPrompt){this._anchor=this.normalizeOffset(ue-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((s=this.at(ue+1))!=null&&s.parentPrompt){this._anchor=this.normalizeOffset(ue+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=ue,this._position=ue,this._selection=c;return}const A=Xl(c);c.direction==="backward"?[this._position,this._anchor]=A:[this._anchor,this._position]=A;const k=this.at(A[0]+1),j=this.at(A[1]),J=Ur.commonAncestor(k,j);(J==null?void 0:J.type)==="array"&&k.parent===J&&j.parent===J?this._selection={ranges:[A],direction:c.direction}:this._selection={ranges:[A],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(Lh(e)){if(i=t!=null?t:{},e.ranges.length>1)return e.ranges.reduce((J,ue)=>[...J,...this.getAtoms(ue,i)],[]);e=e.ranges[0]}let s,c;if(ad(e)){if(s=e,!ad(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 A=Math.min(s,c)+1,k=Math.max(s,c);if(!i.includeChildren&&A===1&&k===this.lastOffset)return[this.root];let j=[];for(let J=A;J<=k;J++){const ue=this.atoms[J];ug(this,ue,A,k)&&j.push(ue)}return i.includeChildren||(j=j.filter(J=>{let ue=!1,{parent:Pe}=J;for(;Pe&&!ue;)ue=ug(this,Pe,A,k),Pe=Pe.parent;return!ue})),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 vo(e);if(r==="spoken")return Fc(e);if(r==="spoken-text"){const i=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const s=Fc(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=Fc(e);return window.MathfieldElement.textToSpeechMarkup=i,s}return r==="ascii-math"?ms(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(ad(e)&&ad(t)?(i=[this.normalizeRange([e,t])],s=r):th(e)?(i=[this.normalizeRange(e)],s=t):Lh(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 A=window.MathfieldElement.computeEngine.parse(c);return JSON.stringify(A.json)}catch(A){return JSON.stringify(["Error",`'${A.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 uo(i.map(A=>Ur.serialize(this.getAtoms(A),c)))}return i.map(c=>this.getAtoms(c).map(A=>this.atomToString(A,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 A=this.root.changeCounter;t();const k=this.root.changeCounter!==A,j=i!==this._anchor||s!==this._position||Mh(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(ad(e)){const s=this.normalizeOffset(e);if(ad(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(th(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 Lh(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(Qu(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const r=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",M(v({},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(Qu(this.mathfield)),this.silenceNotifications))return;const e=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=e}};function ug(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 A=e.offsetOf(t.lastChild);if(A>=r&&A<=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),A=e.offsetOf(t.lastChild);return c>=i&&c<=s&&A>=c&&A<=s}function A0(e,t,r,i){var s,c,A,k,j,J;const ue=r.parent;if(ue&&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):(ue.addChildrenAfter(r.removeBranch("body"),r),ue.removeChild(r),nt--):r.leftDelim!=="?"&&r.leftDelim!=="."?(r.rightDelim=".",r.isDirty=!0):(ue.addChildrenAfter(r.removeBranch("body"),r),ue.removeChild(r),nt--),e.position=nt,!0}if(ue&&r.type==="surd"){if(t==="forward"&&!i||t==="backward"&&i==="body"){const Pe=r.leftSibling;r.hasChildren&&ue.addChildrenAfter(r.removeBranch("body"),r),ue.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),ue.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(ue&&(r.type==="box"||r.type==="enclose")){const Pe=i&&t==="backward"||!i&&t==="forward"?r.leftSibling:r.lastChild;return ue.addChildrenAfter(r.removeBranch("body"),r),ue.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=d0.fractionNavigationOrder==="numerator-denominator"?"above":"below",nt=Pe==="above"?"below":"above";if(ue&&(t==="forward"&&i===Pe||t==="backward"&&i===nt)){const bt=r.removeBranch(Pe),Et=r.removeBranch(nt);return ue.addChildrenAfter([...bt,...Et],r),ue.removeChild(r),e.position=e.offsetOf(bt.length>0?bt[bt.length-1]:Et[0]),!0}return t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r),!0}if(r.isExtensibleSymbol||r.type==="subsup"){if(!i&&t==="forward")return!1;if(!i){if(r.subscript||r.superscript){const Pe=t==="forward"?(A=(s=r.superscript)==null?void 0:s[0])!=null?A:(c=r.subscript)==null?void 0:c[0]:(J=(k=r.subscript)==null?void 0:k[0].lastSibling)!=null?J:(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((ue==null?void 0:ue.type)==="genfrac"&&!i&&r.type!=="first"){let Pe=e.offsetOf(r.leftSibling);return ue.removeChild(r),ue.hasEmptyBranch("above")&&ue.hasEmptyBranch("below")?(Pe=e.offsetOf(ue.leftSibling),ue.parent.removeChild(ue),e.announce("delete",void 0,[ue]),e.position=Pe,!0):(e.announce("delete",void 0,[r]),e.position=Pe,!0)}if(t==="backward"&&((ue==null?void 0:ue.command)==="\\ln"||(ue==null?void 0:ue.command)==="\\log")&&r.parentBranch!=="body"){const Pe=e.offsetOf(ue.leftSibling);return ue.parent.removeChild(ue),e.announce("delete",void 0,[ue]),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&&A0(e,"backward",t))){if(t!=null&&t.isFirstSibling){if(A0(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])}}):vc(e,Xl(e.selection),"deleteContentBackward")}function xA(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&&A0(e,"forward",i))return;if(i){if(e.at(e.position).isLastSibling&&A0(e,"forward",i.parent,i.parentBranch))return}else{if(i=e.at(e.position),i.isLastSibling&&A0(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])}):vc(e,Xl(e.selection),"deleteContentForward")}function vc(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 A=i[0];A.type==="first"&&(A=A.rightSibling);const k=i[i.length-1];if(A===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,J=i[0].parentBranch==="below"?"above":"below",ue=e.offsetOf(j.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:r},()=>{var Pe,nt;const bt=j.removeBranch(J);if(bt.length===1&&bt[0].type==="placeholder")(nt=j.parent)==null||nt.removeChild(j),e.position=Math.max(0,ue);else{const Et=j.parent.addChildrenAfter(bt,j);(Pe=j.parent)==null||Pe.removeChild(j),e.position=e.offsetOf(Et)}})}}return e.deferNotifications({content:!0,selection:!0,type:r},()=>e.deleteAtoms(t))}o({deleteAll:e=>e.contentWillChange({inputType:"deleteContent"})&&vc(e,[0,-1],"deleteContent"),deleteForward:e=>xA(e),deleteBackward:e=>Im(e),deleteNextWord:e=>e.contentWillChange({inputType:"deleteWordForward"})&&vc(e,[e.anchor,fo(e,e.position,"forward")],"deleteWordForward"),deletePreviousWord:e=>e.contentWillChange({inputType:"deleteWordBackward"})&&vc(e,[e.anchor,fo(e,e.position,"backward")],"deleteWordBackward"),deleteToGroupStart:e=>e.contentWillChange({inputType:"deleteSoftLineBackward"})&&vc(e,[e.anchor,e.offsetOf(e.at(e.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:e=>e.contentWillChange({inputType:"deleteSoftLineForward"})&&vc(e,[e.anchor,e.offsetOf(e.at(e.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:e=>e.contentWillChange({inputType:"deleteHardLineBackward"})&&vc(e,[e.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:e=>e.contentWillChange({inputType:"deleteHardLineForward"})&&vc(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="${re("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="${re("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=v(M(v({},Ci()),{macros:rt(),registers:qf()}),jn(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 A=(i=(r=t.value)!=null?r:this.element.textContent)!=null?i:"";A=A.trim();const k=Sa(this.options),j=new Ur({type:"root",mode:k,body:dc(A,{context:this.context})});this.model=new Ng(this,k,j),this.undoManager=new Ja(this.model);const J=[];if(J.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>"),J.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),J.push("<span part=content class=ML__content>"),J.push(_g(this)),J.push("</span>"),window.mathVirtualKeyboard&&(J.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">`),J.push(Fm),J.push("</div>")),J.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),J.push(Mm),J.push("</div>"),J.push("</span>"),J.push("<span class=ML__sr-only>"),J.push("<span role=status aria-live=assertive aria-atomic=true></span>"),J.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(J.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=ee.subscribe(()=>ee.update(this.element)),ee.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(Qu(this)))},{signal:c}),this._menu=new z(Rp(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:c});const ue=this.element.querySelector("[part=menu-toggle]");ue==null||ue.addEventListener("pointerdown",Pe=>{if(Pe.currentTarget!==ue||this._menu.state!=="closed")return;this.element.classList.add("tracking");const nt=ue.getBoundingClientRect();this._menu.modifiers=Mu(Pe),this._menu.show({target:ue,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")&&(ue.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(()=>_l(this)),this.resizeObserver.observe(this.field),window.mathVirtualKeyboard.addEventListener("virtual-keyboard-toggle",this,{signal:c}),Sc&&!ee.locale.startsWith(Sc.locale)&&su(ee.locale),pA!=="ready"&&document.fonts.ready.then(()=>dm(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(Qu(this)),dh(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,Dp())}showMenu(e){var t,r;const i=(r=(t=e==null?void 0:e.location)!=null?t:ih(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,A;return(A=(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?A:q(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=v({},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=$0(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 J=this.queryStyle({[j]:t[j]});if(J==="none")return"none";if(J==="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 A=c.length;if(A===0)return"none";let k=0;for(const j of c){if(j.type==="first"){A-=1;continue}j.style[i]===s&&(k+=1)}return k===0?"none":k===A?"all":"some"}get keybindings(){var e,t;if(this._keybindings)return this._keybindings;const[r,i]=Jg(this.options.keybindings,(e=AA())!=null?e:Yu());return((t=AA())==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=v(v({},this.options),jn(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)&&Ds.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)&&_l(this)}getOptions(e){return gi(this.options,e)}getOption(e){return gi(this.options,e)}handleEvent(e){return dp(this,null,function*(){var t;if(od(this)){if(Z(e)){if(!Oh(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"&&kp(this,e);break;case"pointerdown":this.userSelect!=="none"&&(kp(this,e),e.shiftKey===!1&&(yield gr(e,this.element.querySelector("[part=container]"),this._menu))&&V0.stop());break;case"contextmenu":this.userSelect!=="none"&&e.shiftKey===!1&&(yield gr(e,this.element.querySelector("[part=container]"),this._menu))&&V0.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&dh(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>od(this)&&this.onGeometryChange());break;case"scroll":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>od(this)&&this.onGeometryChange());break;case"wheel":this.onWheel(e);break;default:console.warn("Unexpected event type",e.type)}}})}dispose(){if(!od(this))return;ee.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,z0(),Yg(),Y0()}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(Qu(this))),!1):u(this,e)}get errors(){return ud(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=kh(this.model,this.model.position))!=null?r:"math");const i=this.undoManager.canUndo();Ds.insert(this.model,e,t)&&(_l(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&&$h(this,{interactive:!0});const t=this.field.getBoundingClientRect();let r=null;if(this.model.selectionIsCollapsed)r=ih(this.field);else{const i=Rm(this);if(i.length>0){let s=-1/0,c=-1/0;for(const A of i)A.right>s&&(s=A.right),A.top<c&&(c=A.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==="\\\\"?ha(this.model):e==="&"?Ca(this.model):this.model.selectionIsCollapsed?Ds.insert(this.model,e,v({style:this.model.at(this.model.position).computedStyle},t)):Ds.insert(this.model,e,t),this.snapshot(`insert-${this.model.at(this.model.position).type}`),_l(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:A}=this;A.deferNotifications({content:!!r||!!t,selection:!0,type:"insertText"},()=>{let k=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),t&&e!=="latex"){const j=dc(t,{context:this.context,parseMode:e});A.collapseSelection("forward");const J=A.at(A.position);A.position=A.offsetOf(J.parent.addChildrenAfter(j,J)),k=!0}if(this.model.mode=e,e==="latex"){let j=A.selectionIsCollapsed;zh(this,"accept");let J,ue=A.at(A.position);if(j)J="\\";else{const nt=Xl(A.selection);J=this.model.getValue(nt,"latex");const bt=this.model.extractAtoms(nt);bt.length===1&&bt[0].type==="placeholder"&&(J=t,j=!0),ue=A.at(nt[0])}const Pe=new If(J);ue.parent.addChildAfter(Pe,ue),j?A.position=A.offsetOf(Pe.lastChild):A.setSelection(A.offsetOf(Pe.firstChild),A.offsetOf(Pe.lastChild))}else j0(A).forEach(j=>{j.isError=!1});if(r){const j=dc(r,{context:this.context,parseMode:c});A.collapseSelection("forward");const J=A.at(A.position);A.position=A.offsetOf(J.parent.addChildrenAfter(j,J)),k=!0}return _l(this),this.undoManager.snapshot(e==="latex"?"insert-latex":"insert"),k}),this.model.mode=e,window.mathVirtualKeyboard.update(Qu(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};th(t)?s.range=t:(t.operation==="toggle"&&(s.operation="toggle"),s.range=t.range,s.silenceNotifications=(r=t.silenceNotifications)!=null?r:!1);const c=$0(this,e),A=(i=s.operation)!=null?i:"set";if(s.range===void 0&&this.model.selectionIsCollapsed){if(A==="set"){this.defaultStyle=v(v({},this.defaultStyle),c);return}const k=v({},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)ki(this.model,k,c,{operation:A});else ki(this.model,s.range,c,{operation:A})}),_l(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=ih(this.field);return e?{x:e.x,y:e.y}:null}setCaretPoint(e,t){const r=Du(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),_l(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,M(v({},r),{insertionMode:"replaceSelection"}))}r!=null&&r.silenceNotifications&&(this.valueOnFocus=this.getValue()),_l(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),_l(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(Qu(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(Qu(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(Qu(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:Sa(this.options);this.model.mode!==s&&(this.model.mode==="latex"?(zh(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(Qu(this)),dh(this)}onContentWillChange(e){var t,r,i;return(i=(r=this.host)==null?void 0:r.dispatchEvent(new InputEvent("beforeinput",M(v({},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(),$h(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="",Lu(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})),_l(this),this.focusBlurInProgress=!1,Dp();const i=new AbortController,s=i.signal;document.addEventListener("visibilitychange",()=>{document.visibilityState==="hidden"&&document.addEventListener("visibilitychange",()=>{od(this)&&document.visibilityState==="visible"&&this.focus({preventScroll:!0})},{once:!0,signal:s})},{once:!0,signal:s}),setTimeout(()=>i.abort(),100)}onInput(e){_p(this,e)}onKeystroke(e){return Xh(this,e)}onCompositionStart(e){this.model.deleteAtoms(Xl(this.model.selection));const t=ih(this.field);t&&requestAnimationFrame(()=>{$h(this),this.keyboardDelegate.moveTo(t.x,t.y-t.height)})}onCompositionUpdate(e){No(this.model,e),_l(this)}onCompositionEnd(e){Ha(this.model),_p(this,e,{simulateKeystroke:!0})}onCut(e){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Ds.onCopy(this,e),vc(this.model,Xl(this.model.selection),"deleteByCut"),this.snapshot("cut"),_l(this))}onCopy(e){Ds.onCopy(this,e)}onPaste(e){let t=this.isSelectionEditable;return t&&(t=Ds.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(),Ep(this),dh(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=>Tt(r,this.options.macros),atomIdsSettings:{seed:"random",groupNumbers:!1}}}};function Kp(e){if(e&&(e.classList.remove("ML__highlight"),e.children))for(const t of e.children)Kp(t)}function ap(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&&ap(i)})):(e.classList.remove("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(i=>{i instanceof HTMLElement&&ap(i,t)})))}function Ag(e,t){var r;if(!N())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(t);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),s={OutputFormat:"json",VoiceId:(r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna",Engine:"standard",Text:t,TextType:"ssml",SpeechMarkTypes:["ssml"]};Nu().readAloudElement=e,i.synthesizeSpeech(s,(c,A)=>{if(c){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${c}`);return}if(!(A!=null&&A.AudioStream)){console.log("polly.synthesizeSpeech():",A);return}const k=new TextDecoder("utf-8").decode(new Uint8Array(A.AudioStream));Nu().readAloudMarks=k.split(`
`).map(j=>j?JSON.parse(j):{}),Nu().readAloudTokens=[];for(const j of Nu().readAloudMarks)j.value&&Nu().readAloudTokens.push(j.value);Nu().readAloudCurrentMark="",s.OutputFormat="mp3",s.SpeechMarkTypes=[],i.synthesizeSpeech(s,(j,J)=>{if(j){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${j}`);return}if(!(J!=null&&J.AudioStream))return;const ue=new Uint8Array(J.AudioStream),Pe=new Blob([ue.buffer],{type:"audio/mpeg"}),nt=URL.createObjectURL(Pe),bt=Nu();bt.readAloudAudio?bt.readAloudAudio.pause():(bt.readAloudAudio=new Audio,bt.readAloudAudio.addEventListener("ended",()=>{const Et=bt.readAloudMathfield;bt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),Et?($h(Et),bt.readAloudElement=null,bt.readAloudMathfield=null,bt.readAloudTokens=[],bt.readAloudMarks=[],bt.readAloudCurrentMark=""):Kp(bt.readAloudElement)}),bt.readAloudAudio.addEventListener("timeupdate",()=>{let Et="";const Cr=bt.readAloudAudio.currentTime*1e3+100;for(const _n of bt.readAloudMarks)_n.time<Cr&&(Et=_n.value);bt.readAloudCurrentMark!==Et&&(bt.readAloudCurrentToken=Et,Et&&Et===bt.readAloudFinalToken?bt.readAloudAudio.pause():(bt.readAloudCurrentMark=Et,ap(bt.readAloudElement,bt.readAloudCurrentMark)))})),bt.readAloudAudio.src=nt,bt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),bt.readAloudAudio.play()})})}N()||console.error('MathLive 0.98.5: this version of the MathLive library is for use in the browser. A subset of the API is available on the server side in the "mathlive-ssr" library. If using server side rendering (with React for example) you may want to do a dynamic import of the MathLive library inside a `useEffect()` call.');var Ho=new WeakMap,dg=.5,lf={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 = ..."},sc=class zp extends HTMLElement{static get formAssociated(){return f0()}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 ee.locale}static set locale(t){t==="auto"&&(t=navigator.language.slice(0,5)),ee.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 ee.strings}static set strings(t){ee.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 dp(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(),A=yield this.audioContext.decodeAudioData(c);this.audioBuffers[t]=A}catch(s){}})}static playSound(t){return dp(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(lf[i])if(lf[i].startsWith("mf."))if(lf[i].startsWith(`mf.${i}`))r.push(`Option \`${i}\` cannot be used as a constructor option. Use ${lf[i]}`);else{const s=lf[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 ${lf[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(f0()&&(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=[_u("core"),_u("mathfield"),_u("mathfield-element"),_u("ui"),_u("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>"+cA("core")+cA("mathfield")+cA("mathfield-element")+cA("ui")+cA("menu")+'</style><span></span><slot style="display:none"></slot>';t&&this._setOptions(t),this.shadowRoot.addEventListener("slotchange",()=>{var r;const i=this.shadowRoot.querySelector("slot:not([name])");this.value=(r=i==null?void 0:i.assignedNodes().map(s=>s.nodeType===3?s.textContent:"").join("").trim())!=null?r:""})}showMenu(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.showMenu(t))!=null?i:!1}get mathVirtualKeyboard(){throw new Error("The `mathVirtualKeyboard` property is not available on the MathfieldElement. Use `window.mathVirtualKeyboard` instead.")}onPointerDown(){window.addEventListener("pointerup",t=>{var r;t.target===this&&!((r=this._mathfield)!=null&&r.disabled)&&this.dispatchEvent(new MouseEvent("click",{altKey:t.altKey,button:t.button,buttons:t.buttons,clientX:t.clientX,clientY:t.clientY,ctrlKey:t.ctrlKey,metaKey:t.metaKey,movementX:t.movementX,movementY:t.movementY,relatedTarget:t.relatedTarget,screenX:t.screenX,screenY:t.screenY,shiftKey:t.shiftKey}))},{once:!0})}getPromptValue(t,r){var i,s;return(s=(i=this._mathfield)==null?void 0:i.getPromptValue(t,r))!=null?s:""}setPromptValue(t,r,i){var s;(s=this._mathfield)==null||s.setPromptValue(t,r,i)}getPromptRange(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.getPromptRange(t))!=null?i:null}getPrompts(t){var r,i;return(i=(r=this._mathfield)==null?void 0:r.getPrompts(t))!=null?i:[]}get form(){var t;return(t=this._internals)==null?void 0:t.form}get name(){var t;return(t=this.getAttribute("name"))!=null?t:""}get type(){return this.localName}get mode(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.model.mode)!=null?r:this.defaultMode==="text"?"text":"math"}set mode(t){var r;(r=this._mathfield)==null||r.switchMode(t)}get expression(){if(this._mathfield)return window[Symbol.for("io.cortexjs.compute-engine")]?this._mathfield.expression:(console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`),null)}set expression(t){var r,i;if(!this._mathfield)return;const s=(i=(r=zp.computeEngine)==null?void 0:r.box(t).latex)!=null?i:null;s!==null&&this._mathfield.setValue(s),window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`MathLive 0.98.5: The CortexJS Compute Engine library is not available.
Load the library, for example with:
import "https://unpkg.com/@cortex-js/compute-engine?module"`)}get errors(){var t,r;return(r=(t=this._mathfield)==null?void 0:t.errors)!=null?r:[]}_getOptions(t){return this._mathfield?gi(this._mathfield.options,t):Ho.has(this)?v({},gi(v(v({},Ci()),jn(Ho.get(this).options)),t)):null}getOptions(t){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOptions()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._mathfield?gi(this._mathfield.options,t):Ho.has(this)?gi(v(v({},Ci()),jn(Ho.get(this).options)),t):null}reflectAttributes(){const t=Ci(),r=this._getOptions();Object.keys(zp.optionsAttributes).forEach(i=>{const s=Kf(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(Ho.has(this)){const r=v(v({},Ho.get(this).options),t);Ho.set(this,M(v({},Ho.get(this)),{selection:{ranges:r.readOnly?[[0,0]]:[[0,-1]]},options:r}))}else Ho.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))lf[r]&&console.warn(`\`mf.setOptions({${r}:...})\` -> ${lf[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(Ho.has(this)){let A,k,j;if(Lh(t)?([A,k]=t.ranges[0],j=r):th(t)?([A,k]=t,j=r):ad(t)&&ad(r)?(A=t,k=r,j=i):(A=0,k=-1,j=t),(j===void 0||j==="latex")&&A===0&&k===-1)return(c=(s=Ho.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(Ho.has(this)){const s=Ho.get(this).options;Ho.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:s,menuItems:void 0});return}const i=Hp(this);Ho.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?Du(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=oh(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;Kc.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),A=this.shadowRoot,k=c.userSelect!=="none";if(k)A.host.addEventListener("pointerdown",this,!0);else{const ue=A.querySelector("span");ue.style.pointerEvents="none"}A.host.addEventListener("focus",this,!0),A.host.addEventListener("blur",this,!0),f0()||(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=A.querySelector("slot:not([name])");if(j)try{this._style=j.assignedElements().filter(ue=>ue.tagName.toLowerCase()==="style").map(ue=>ue.textContent).join("")}catch(ue){console.error(ue)}if(this._style){const ue=document.createElement("style");ue.textContent=this._style,A.appendChild(ue)}let J="";if(this.hasAttribute("value")?J=this.getAttribute("value"):J=(t=j==null?void 0:j.assignedNodes().map(ue=>ue.nodeType===3?ue.textContent:"").join("").trim())!=null?t:"",this._mathfield=new Pg(A.querySelector(":host > span"),M(v({},(i=(r=Ho.get(this))==null?void 0:r.options)!=null?i:Hp(this)),{eventSink:this,value:J})),!Ho.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const ue of Object.keys(zp.optionsAttributes))this.upgradeProperty(Kf(ue))}if(!((s=this._mathfield)!=null&&s.model)){this._mathfield=null;return}if(Ho.has(this)){const ue=this._mathfield,Pe=Ho.get(this),nt=Pe.menuItems;ue.model.deferNotifications({content:!1,selection:!1},()=>{const bt=Pe.value;bt!==void 0&&ue.setValue(bt),ue.model.selection=Pe.selection,Ho.delete(this)}),nt&&(this.menuItems=nt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),Am()}disconnectedCallback(){var t,r;if(this.shadowRoot.host.removeEventListener("pointerdown",this,!0),!this._mathfield)return;window.queueMicrotask(()=>this.dispatchEvent(new Event("unmount",{cancelable:!1,bubbles:!0,composed:!0})));const i=gi(this._mathfield.options,Object.keys(zp.optionsAttributes).map(s=>Kf(s)));Ho.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":_l(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",""),f0()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(f0()?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"),f0()?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:M(v({},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=Ho.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}Ho.has(this)?Ho.set(this,M(v({},Ho.get(this)),{menuItems:t})):Ho.set(this,{value:void 0,selection:{ranges:[[0,0]]},options:Hp(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:Ho.has(this)?Ho.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,_l(this._mathfield);return}if(Ho.has(this)){Ho.set(this,M(v({},Ho.get(this)),{selection:t}));return}Ho.set(this,{value:void 0,selection:t,options:Hp(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:Ho.has(this)?Ho.get(this).selection.ranges[0][0]:0}set position(t){if(this._mathfield&&(this._mathfield.model.position=t,_l(this._mathfield)),Ho.has(this)){Ho.set(this,M(v({},Ho.get(this)),{selection:{ranges:[[t,t]]}}));return}Ho.set(this,{value:void 0,selection:{ranges:[[t,t]]},options:Hp(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}};sc.version="0.98.5",sc._fontsDirectory="./fonts",sc._soundsDirectory="./sounds",sc.keypressVibration=!0,sc._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},sc._plonkSound="plonk.wav",sc.audioBuffers={},sc.createHTML=e=>e,sc._speechEngineRate="100%",sc._speechEngineVoice="Joanna",sc._textToSpeechMarkup="",sc._textToSpeechRules="mathlive",sc._textToSpeechRulesOptions={},sc.speakHook=Lg,sc.readAloudHook=Ag,sc._decimalSeparator=".",sc.fractionNavigationOrder="numerator-denominator",sc._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 d0=sc;function Kf(e){return e.replace(/[^a-zA-Z\d]+(.)/g,(t,r)=>r.toUpperCase())}function Hp(e){const t={readOnly:!1},r=d0.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[Kf(i)]=!0:r[i]==="on/off"?s==="on"?t[Kf(i)]=!0:s==="off"?t[Kf(i)]=!1:t[Kf(i)]=void 0:r[i]==="number"?t[Kf(i)]=Number.parseFloat(s!=null?s:"0"):t[Kf(i)]=s}}),t}function f0(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var Tg=d0,Ug,Rg,Qg,Kg;if(N()&&!((Ug=window.customElements)!=null&&Ug.get("math-field"))){(Qg=window[Rg=Symbol.for("io.cortexjs.mathlive")])!=null||(window[Rg]={});const e=window[Symbol.for("io.cortexjs.mathlive")];e.version="0.98.5",window.MathfieldElement=d0,(Kg=window.customElements)==null||Kg.define("math-field",d0)}function fg(e,t,r){let i=r,s=0;const c=e.length;for(;i<t.length;){const A=t[i];if(s<=0&&t.slice(i,i+c)===e)return i;A==="\\"?i++:A==="{"?s++:A==="}"&&s--,i++}return-1}function op(e,t,r,i,s="latex"){const c=[];for(const A of e)if(A.type==="text"){const k=A.data;let j=!0,J=0,ue;ue=k.indexOf(t),ue!==-1&&(J=ue,J>0&&c.push({type:"text",data:k.slice(0,J)}),j=!1);let Pe=!1;for(;!Pe;){if(j){if(ue=k.indexOf(t,J),ue===-1){Pe=!0;break}J!==ue&&c.push({type:"text",data:k.slice(J,ue)}),J=ue}else{if(ue=fg(r,k,J+t.length),ue===-1){Pe=!0;break}let nt=k.slice(J+t.length,ue);s==="ascii-math"&&([,nt]=M0(nt,{format:"ascii-math"})),c.push({type:"math",data:nt,rawData:k.slice(J,ue+r.length),mathstyle:i}),J=ue+r.length}j=!j}J<k.length&&c.push({type:"text",data:k.slice(J)})}else c.push(A);return c}function sp(e,t,r){let i=[{type:"text",data:e}];return t!=null&&t.inline&&t.inline.forEach(([s,c])=>{i=op(i,s,c,"textstyle")}),t!=null&&t.display&&t.display.forEach(([s,c])=>{i=op(i,s,c,"displaystyle")}),r!=null&&r.inline&&r.inline.forEach(([s,c])=>{i=op(i,s,c,"textstyle","ascii-math")}),r!=null&&r.display&&r.display.forEach(([s,c])=>{i=op(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 h0(e,t,r,i){var s;const c=a1(e,r,t||"textstyle",i),A=(s=r.renderAccessibleContent)!=null?s:"";if(c&&/\b(mathml|speakable-text)\b/i.test(A)){const k=document.createElement("span");if(/\bmathml\b/i.test(A)&&r.renderToMathML&&k.append(i1(e,r)),/\bspeakable-text\b/i.test(A)&&r.renderToSpeakableText){const j=document.createElement("span");j.setAttribute("translate","no");const J=r.renderToSpeakableText(e);j.innerHTML=window.MathfieldElement.createHTML(J),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 A=h0(e,"",t,!0);A&&c.appendChild(A)}else{if(!e.trim())return null;const A=sp(e,(i=t.TeX)==null?void 0:i.delimiters,(s=t.asciiMath)==null?void 0:s.delimiters);if(A.length===1&&A[0].type==="text")return null;c=document.createDocumentFragment();for(const k of A)if(k.type==="text")c.appendChild(document.createTextNode(k.data));else{const j=h0(k.data,k.mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);j&&c.appendChild(j)}}return c}function Hg(e,t){var r,i,s,c,A,k,j,J,ue,Pe,nt,bt,Et,Cr,_n,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 cn=h0(nn,"",t,!0);cn&&e.append(cn);return}const Mn=sp(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 cn=h0(Mn[0].data,Mn[0].mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);cn&&e.append(cn);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 cn=o1((A=Mn.textContent)!=null?A:"",t);cn&&(nn+=cn.childNodes.length-1,Mn.replaceWith(cn))}else if(Mn.nodeType===1){const cn=Mn,Bi=Mn.nodeName.toLowerCase();if(Bi==="script"){const ra=Mn;let Hi;if((k=t.processScriptTypePattern)!=null&&k.test(ra.type))Hi=(j=ra.textContent)!=null?j:"";else if((J=t.processMathJSONScriptTypePattern)!=null&&J.test(ra.type))try{Hi=(Pe=t.serializeToLatex)==null?void 0:Pe.call(t,JSON.parse((ue=ra.textContent)!=null?ue:""))}catch(p){console.error(p)}if(Hi){let p="textstyle";for(const U of ra.type.split(";")){const[ge,Ke]=U.toLowerCase().split("=");ge.trim()==="mode"&&(p=Ke.trim()==="display"?"displaystyle":"textstyle")}const B=h0(Hi,p,t,!0);B&&ra.parentNode.replaceChild(B,ra)}}else if(((bt=(nt=t.processClassPattern)==null?void 0:nt.test(cn.className))!=null?bt:!1)||!((Cr=(Et=t.skipTags)==null?void 0:Et.includes(Bi))!=null&&Cr||(wr=(_n=t.ignoreClassPattern)==null?void 0:_n.test(cn.className))!=null&&wr))if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const Hi=e.textContent;e.textContent="";const p=h0(Hi!=null?Hi:"","displaystyle",t,!0);p&&e.append(p)}else Hg(cn,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 A=v(v({},s1),t);A.ignoreClassPattern=new RegExp((r=A.ignoreClass)!=null?r:""),A.processClassPattern=new RegExp((i=A.processClass)!=null?i:""),A.processScriptTypePattern=new RegExp((s=A.processScriptType)!=null?s:""),A.processMathJSONScriptTypePattern=new RegExp((c=A.processMathJSONScriptType)!=null?c:""),Am(),ld("core"),Hg(e,A)}catch(A){A instanceof Error?console.error("renderMathInElement(): "+A.message):console.error("renderMathInElement(): Could not render math for element",e)}}function wh(e,t){const r=$r.singleton;return r?(r.show(),At(),r.currentLayer=t,r.render(),r.focus(),!0):!1}function wd(){const e=window.mathVirtualKeyboard;return e.visible?e.hide({animate:!0}):e.show({animate:!0}),!1}o({switchKeyboardLayer:wh,toggleVirtualKeyboard:wd,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function Nu(){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){ZA(document.body,e)}function xh(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 ZA(e,t){var r,i,s,c;const A=xh(e);if(!A)return;const k=t!=null?t:{};(r=k.renderToMarkup)!=null||(k.renderToMarkup=Tl),(i=k.renderToMathML)!=null||(k.renderToMathML=mh),(s=k.renderToSpeakableText)!=null||(k.renderToSpeakableText=o0),(c=k.serializeToLatex)!=null||(k.serializeToLatex=wA),l1(A,k)}var w1={mathlive:"0.98.5"}}}]);
}());