|
|
!(function(){var Sv=Object.defineProperty;var D1=Object.getOwnPropertySymbols;var Ev=Object.prototype.hasOwnProperty,_v=Object.prototype.propertyIsEnumerable;var bh=Math.pow,v1=(dn,Ut,x)=>Ut in dn?Sv(dn,Ut,{enumerable:!0,configurable:!0,writable:!0,value:x}):dn[Ut]=x,b1=(dn,Ut)=>{for(var x in Ut||(Ut={}))Ev.call(Ut,x)&&v1(dn,x,Ut[x]);if(D1)for(var x of D1(Ut))_v.call(Ut,x)&&v1(dn,x,Ut[x]);return dn};var Vs=(dn,Ut,x)=>v1(dn,typeof Ut!="symbol"?Ut+"":Ut,x);var up=(dn,Ut,x)=>new Promise((ve,ue)=>{var T=W=>{try{re(x.next(W))}catch(S){ue(S)}},De=W=>{try{re(x.throw(W))}catch(S){ue(S)}},re=W=>W.done?ve(W.value):Promise.resolve(W.value).then(T,De);re((x=x.apply(dn,Ut)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[3247],{89489:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},59477:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.9 689L530.5 308.2c-9.4-10.9-27.5-10.9-37 0L165.1 689c-12.2 14.2-1.2 35 18.5 35h656.8c19.7 0 30.7-20.8 18.5-35z"}}]},name:"caret-up",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},40001:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z"}}]},name:"check",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},49198:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M533.2 492.3L277.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H188c-6.7 0-10.4 7.7-6.3 12.9L447.1 512 181.7 851.1A7.98 7.98 0 00188 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5zm304 0L581.9 166.1c-3-3.9-7.7-6.1-12.6-6.1H492c-6.7 0-10.4 7.7-6.3 12.9L751.1 512 485.7 851.1A7.98 7.98 0 00492 864h77.3c4.9 0 9.6-2.3 12.6-6.1l255.3-326.1c9.1-11.7 9.1-27.9 0-39.5z"}}]},name:"double-right",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},84105:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z"}}]},name:"down",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},18785:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M176 511a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0zm280 0a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"ellipsis",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},73331:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2Q889.47 375.11 816.7 305l-50.88 50.88C807.31 395.53 843.45 447.4 874.7 512 791.5 684.2 673.4 766 512 766q-72.67 0-133.87-22.38L323 798.75Q408 838 512 838q288.3 0 430.2-300.3a60.29 60.29 0 000-51.5zm-63.57-320.64L836 122.88a8 8 0 00-11.32 0L715.31 232.2Q624.86 186 512 186q-288.3 0-430.2 300.3a60.3 60.3 0 000 51.5q56.69 119.4 136.5 191.41L112.48 835a8 8 0 000 11.31L155.17 889a8 8 0 0011.31 0l712.15-712.12a8 8 0 000-11.32zM149.3 512C232.6 339.8 350.7 258 512 258c54.54 0 104.13 9.36 149.12 28.39l-70.3 70.3a176 176 0 00-238.13 238.13l-83.42 83.42C223.1 637.49 183.3 582.28 149.3 512zm246.7 0a112.11 112.11 0 01146.2-106.69L401.31 546.2A112 112 0 01396 512z"}},{tag:"path",attrs:{d:"M508 624c-3.46 0-6.87-.16-10.25-.47l-52.82 52.82a176.09 176.09 0 00227.42-227.42l-52.82 52.82c.31 3.38.47 6.79.47 10.25a111.94 111.94 0 01-112 112z"}}]},name:"eye-invisible",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},15277:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M942.2 486.2C847.4 286.5 704.1 186 512 186c-192.2 0-335.4 100.5-430.2 300.3a60.3 60.3 0 000 51.5C176.6 737.5 319.9 838 512 838c192.2 0 335.4-100.5 430.2-300.3 7.7-16.2 7.7-35 0-51.5zM512 766c-161.3 0-279.4-81.8-362.7-254C232.6 339.8 350.7 258 512 258c161.3 0 279.4 81.8 362.7 254C791.5 684.2 673.4 766 512 766zm-4-430c-97.2 0-176 78.8-176 176s78.8 176 176 176 176-78.8 176-176-78.8-176-176-176zm0 288c-61.9 0-112-50.1-112-112s50.1-112 112-112 112 50.1 112 112-50.1 112-112 112z"}}]},name:"eye",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},52671:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494z"}}]},name:"file",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},8657:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 444H820V330.4c0-17.7-14.3-32-32-32H473L355.7 186.2a8.15 8.15 0 00-5.5-2.2H96c-17.7 0-32 14.3-32 32v592c0 17.7 14.3 32 32 32h698c13 0 24.8-7.9 29.7-20l134-332c1.5-3.8 2.3-7.9 2.3-12 0-17.7-14.3-32-32-32zM136 256h188.5l119.6 114.4H748V444H238c-13 0-24.8 7.9-29.7 20L136 643.2V256zm635.3 512H159l103.3-256h612.4L771.3 768z"}}]},name:"folder-open",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},56082:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},33853:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M724 218.3V141c0-6.7-7.7-10.4-12.9-6.3L260.3 486.8a31.86 31.86 0 000 50.3l450.8 352.1c5.3 4.1 12.9.4 12.9-6.3v-77.3c0-4.9-2.3-9.6-6.1-12.6l-360-281 360-281.1c3.8-3 6.1-7.7 6.1-12.6z"}}]},name:"left",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},15075:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h368c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"minus-square",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},62772:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M482 152h60q8 0 8 8v704q0 8-8 8h-60q-8 0-8-8V160q0-8 8-8z"}},{tag:"path",attrs:{d:"M192 474h672q8 0 8 8v60q0 8-8 8H160q-8 0-8-8v-60q0-8 8-8z"}}]},name:"plus",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},43531:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M328 544h152v152c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V544h152c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H544V328c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v152H328c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8z"}},{tag:"path",attrs:{d:"M880 112H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"plus-square",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},38819:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M765.7 486.8L314.9 134.7A7.97 7.97 0 00302 141v77.3c0 4.9 2.3 9.6 6.1 12.6l360 281.1-360 281.1c-3.9 3-6.1 7.7-6.1 12.6V883c0 6.7 7.7 10.4 12.9 6.3l450.8-352.1a31.96 31.96 0 000-50.4z"}}]},name:"right",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},47472:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M909.6 854.5L649.9 594.8C690.2 542.7 712 479 712 412c0-80.2-31.3-155.4-87.9-212.1-56.6-56.7-132-87.9-212.1-87.9s-155.5 31.3-212.1 87.9C143.2 256.5 112 331.8 112 412c0 80.1 31.3 155.5 87.9 212.1C256.5 680.8 331.8 712 412 712c67 0 130.6-21.8 182.7-62l259.7 259.6a8.2 8.2 0 0011.6 0l43.6-43.5a8.2 8.2 0 000-11.6zM570.4 570.4C528 612.7 471.8 636 412 636s-116-23.3-158.4-65.6C211.3 528 188 471.8 188 412s23.3-116.1 65.6-158.4C296 211.3 352.2 188 412 188s116.1 23.2 158.4 65.6S636 352.2 636 412s-23.3 116.1-65.6 158.4z"}}]},name:"search",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},87395:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M890.5 755.3L537.9 269.2c-12.8-17.6-39-17.6-51.7 0L133.5 755.3A8 8 0 00140 768h75c5.1 0 9.9-2.5 12.9-6.6L512 369.8l284.1 391.6c3 4.1 7.8 6.6 12.9 6.6h75c6.5 0 10.3-7.4 6.5-12.7z"}}]},name:"up",theme:"outlined"},De=T,re=x(7657),W=function(g,$){return ue.createElement(re.Z,(0,ve.Z)({},g,{ref:$,icon:De}))},S=ue.forwardRef(W),m=S},21697:function(dn,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"}},17270:function(dn,Ut,x){"use strict";var ve=x(59301),ue=Object.defineProperty,T=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,W=(I,g,$)=>g in I?ue(I,g,{enumerable:!0,configurable:!0,writable:!0,value:$}):I[g]=$,S=(I,g)=>{for(var $ in g||(g={}))De.call(g,$)&&W(I,$,g[$]);if(T)for(var $ of T(g))re.call(g,$)&&W(I,$,g[$]);return I};const m=I=>React.createElement("svg",S({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},I),React.createElement("title",null,"\u9009\u62E9\u5907\u4EFD 2"),React.createElement("path",{d:"M6.74 0a6.74 6.74 0 1 0 0 13.48A6.74 6.74 0 0 0 6.74 0Zm3.636 5.017L5.817 9.576c-.09.09-.246.08-.348-.023l-.306-.305L3.12 7.204a.263.263 0 0 1 0-.372l.557-.557a.262.262 0 0 1 .372 0l1.605 1.606 3.794-3.793c.09-.09.246-.08.348.022l.557.557c.103.103.113.259.023.349Z",fill:"#68C79F",fillRule:"nonzero"}));Ut.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTYuNzQgMGE2Ljc0IDYuNzQgMCAxIDAgMCAxMy40OEE2Ljc0IDYuNzQgMCAwIDAgNi43NCAwWm0zLjYzNiA1LjAxN0w1LjgxNyA5LjU3NmMtLjA5LjA5LS4yNDYuMDgtLjM0OC0uMDIzbC0uMzA2LS4zMDVMMy4xMiA3LjIwNGEuMjYzLjI2MyAwIDAgMSAwLS4zNzJsLjU1Ny0uNTU3YS4yNjIuMjYyIDAgMCAxIC4zNzIgMGwxLjYwNSAxLjYwNiAzLjc5NC0zLjc5M2MuMDktLjA5LjI0Ni0uMDguMzQ4LjAyMmwuNTU3LjU1N2MuMTAzLjEwMy4xMTMuMjU5LjAyMy4zNDlaIiBmaWxsPSIjNjhDNzlGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L3N2Zz4="},1198:function(dn,Ut,x){"use strict";var ve=x(59301),ue=Object.defineProperty,T=Object.getOwnPropertySymbols,De=Object.prototype.hasOwnProperty,re=Object.prototype.propertyIsEnumerable,W=(I,g,$)=>g in I?ue(I,g,{enumerable:!0,configurable:!0,writable:!0,value:$}):I[g]=$,S=(I,g)=>{for(var $ in g||(g={}))De.call(g,$)&&W(I,$,g[$]);if(T)for(var $ of T(g))re.call(g,$)&&W(I,$,g[$]);return I};const m=I=>React.createElement("svg",S({width:14,height:14,xmlns:"http://www.w3.org/2000/svg"},I),React.createElement("title",null,"\u7F16\u7EC4 18"),React.createElement("g",{fill:"none",fillRule:"evenodd"},React.createElement("circle",{fill:"#FCB041",cx:7,cy:7,r:7}),React.createElement("path",{d:"M7.531 9.638a.616.616 0 1 1-1.231 0v-.02a.616.616 0 1 1 1.231 0v.02Zm0-2.25a.616.616 0 1 1-1.231 0V4.117a.616.616 0 1 1 1.231 0v3.273Z",fill:"#FFF",fillRule:"nonzero"})));Ut.Z="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48Y2lyY2xlIGZpbGw9IiNGQ0IwNDEiIGN4PSI3IiBjeT0iNyIgcj0iNyIvPjxwYXRoIGQ9Ik03LjUzMSA5LjYzOGEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwdi0uMDJhLjYxNi42MTYgMCAxIDEgMS4yMzEgMHYuMDJabTAtMi4yNWEuNjE2LjYxNiAwIDEgMS0xLjIzMSAwVjQuMTE3YS42MTYuNjE2IDAgMSAxIDEuMjMxIDB2My4yNzNaIiBmaWxsPSIjRkZGIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48L2c+PC9zdmc+"},64885:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return P}});var ve=x(3113),ue=x(59301),T=Object.defineProperty,De=Object.defineProperties,re=Object.getOwnPropertyDescriptors,W=Object.getOwnPropertySymbols,S=Object.prototype.hasOwnProperty,m=Object.prototype.propertyIsEnumerable,I=(U,M,Y)=>M in U?T(U,M,{enumerable:!0,configurable:!0,writable:!0,value:Y}):U[M]=Y,g=(U,M)=>{for(var Y in M||(M={}))S.call(M,Y)&&I(U,Y,M[Y]);if(W)for(var Y of W(M))m.call(M,Y)&&I(U,Y,M[Y]);return U},$=(U,M)=>De(U,re(M)),_=(U,M)=>{var Y={};for(var Q in U)S.call(U,Q)&&M.indexOf(Q)<0&&(Y[Q]=U[Q]);if(U!=null&&W)for(var Q of W(U))M.indexOf(Q)<0&&m.call(U,Q)&&(Y[Q]=U[Q]);return Y},F=(U,M,Y)=>new Promise((Q,ae)=>{var ie=j=>{try{G(Y.next(j))}catch(se){ae(se)}},J=j=>{try{G(Y.throw(j))}catch(se){ae(se)}},G=j=>j.done?Q(j.value):Promise.resolve(j.value).then(ie,J);G((Y=Y.apply(U,M)).next())});const P=U=>{var M=U,{children:Y}=M,Q=_(M,["children"]);const[ae,ie]=(0,ue.useState)(!1);return ue.createElement(ve.ZP,$(g({},Q),{loading:ae,onClick:J=>F(void 0,null,function*(){try{ie(!0),yield Q.onClick(J),ie(!1)}catch(G){console.error(G),ie(!1)}})}),Y)}},65986:function(dn,Ut,x){"use strict";var ve=x(59301),ue=x(21697),T=x(48136),De=x(88615),re=x(43418),W=x(59301);const S=(0,ve.forwardRef)(({callback:m,width:I,onChange:g,disabled:$,readOnly:_,type:F="",value:P="",style:U={}},M)=>{const Y=(0,ve.useRef)(),Q=(0,ve.useRef)(),[ae,ie]=(0,ve.useState)(0),[J,G]=(0,ve.useState)(0),[j,se]=(0,ve.useState)(!1),he=()=>{var q=document.createElement("div");q.innerHTML=Y.current.getValue();var Ae=q.innerText;return m&&m(Ae),Ae};(0,ve.useImperativeHandle)(M,()=>({getData:he}));const Ne=q=>{q.preventDefault();const Ae=q.clientX-ae,D=q.clientY-J;document.body.onmousemove=Je=>{let Fe=Je.clientX-Ae,Ce=Je.clientY-D;const Ue=document.getElementsByClassName("markdown-popup-form")[0],me=window.innerWidth-Ue.offsetWidth,Me=window.innerHeight-Ue.offsetHeight;Fe=Math.max(0,Math.min(Fe,me)),Ce=Math.max(0,Math.min(Ce,Me)),Be(Je.clientX,Je.clientY,Ae,D)&&(ie(Fe),G(Ce))},document.body.onmouseup=function(){document.body.onmousemove=null}},Be=(q,Ae,D,Je)=>{const Fe=document.body.clientHeight,Ce=document.body.clientWidth;return q<20&&D>q||q>Ce-20&&D<q||Ae<20&&Je>Ae||Ae>Fe-20&&Je<Ae?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};(0,ve.useEffect)(()=>{j&&setTimeout(()=>{const q=document.getElementsByClassName("markdown-popup-form")[0],Ae=window.innerWidth/2-q.offsetWidth/2,D=window.innerHeight/2-q.offsetHeight/2;ie(Ae),G(D)},0)},[j]);const Pe=()=>{$||_||se(!0)};return W.createElement("div",{style:U},W.createElement("div",{style:{width:I||"100%",position:"relative"},className:`${ue.Z.mathFillWrap} ${$||_?"cursorDefault":""}`,onClick:()=>Pe()},W.createElement("math-field",{disabled:$,locale:"zh_cn",class:`${ue.Z.mathField} ${F}`,readOnly:_,placeholder:"\u8BF7\u8F93\u5165\u516C\u5F0F",ref:Y,style:{width:"100%",fontSize:P?18:14},value:P||""})),W.createElement(re.default,{maskClosable:!1,centered:!0,width:860,style:{position:"absolute",left:ae,top:J},title:W.createElement("div",{style:{cursor:"move"},onMouseDown:Ne},"\u8F93\u5165\u516C\u5F0F"),open:j,onOk:()=>{const q=Q.current.getData();Y.current.setValue(q),g(q),se(!1)},onCancel:()=>{se(!1)},destroyOnClose:!0,className:"markdown-popup-form"},W.createElement(De.Z,{value:P,ref:Q,onChange:g,showSaveButton:!1})))});Ut.Z=S},88615:function(dn,Ut,x){"use strict";var ve=x(59301),ue=x(95237),T=x(43604),De=x(99313),re=x(3113),W=x(7664),S=x(21697),m=x(48136),I=x(59301);const g=(0,ve.forwardRef)(({callback:$,showSaveButton:_,value:F=""},P)=>{const U=(0,ve.useRef)(),M=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],Y=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
|
y=b + r\\text{sin}\\theta \r
|
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\left\\{\\begin{matrix} \r
|
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
|
\\end{matrix}\\right. \r
|
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\perp \\alpha \\ \r
|
|
|
b \\perp \\alpha \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
|
a \\perp m,a \\perp n \r
|
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
|
a^{2}+b^{2}=c^{2} \r
|
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R^{+} \\ \r
|
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
a,b \\in R \\ \r
|
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
|
P \\left( S \\right) =1 \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
\\forall A \\in S \\\\ \r
|
|
|
P \\left( A \\right) \\ge 0 \r
|
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
|
P_{n}=n! \\\\ \r
|
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
|
\\end{array}`}]}]}],Q=J=>{U.current.setValue(U.current.getValue()+" "+J.value+" ")},ae=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:I.createElement(ue.Z,{className:S.Z.lists,gutter:[10,10]},M.map((J,G)=>I.createElement(T.Z,{flex:"110px",className:S.Z.item},I.createElement("div",null,I.createElement(W.Z,{value:`$$${J.value}$$`}),J.name),I.createElement("div",{className:S.Z.children},J.children.map((j,se)=>I.createElement("div",{key:se},I.createElement("h1",null,j.name),I.createElement(ue.Z,{gutter:[10,10]},j.data.map((he,Ne)=>I.createElement(T.Z,{key:Ne,onClick:()=>Q(he),className:S.Z.diamond},I.createElement(W.Z,{value:"`$$"+he.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:I.createElement(ue.Z,{className:S.Z.lists,gutter:[10,10]},Y.map((J,G)=>I.createElement(T.Z,{flex:"110px",className:S.Z.item},I.createElement("div",null,I.createElement(W.Z,{value:"`$$"+J.value+"$$`"}),J.name),I.createElement("div",{className:S.Z.children},J.children.map((j,se)=>I.createElement("div",{key:se},j.name&&I.createElement("h1",null,j.name),I.createElement(ue.Z,{gutter:[10,10]},j.data.map((he,Ne)=>I.createElement(T.Z,{key:Ne,onClick:()=>Q(he),className:S.Z.diamond},I.createElement(W.Z,{value:"`$$"+he.value+"$$`"}))))))))))}],ie=()=>{var J=document.createElement("div");J.innerHTML=U.current.getValue();var G=J.innerText;return $&&$(G),G};return(0,ve.useImperativeHandle)(P,()=>({getData:ie})),I.createElement("div",{className:S.Z.mathWrap},I.createElement(De.default,{defaultActiveKey:"1",items:ae}),I.createElement("math-field",{locale:"zh_cn",className:S.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:U,style:{width:800,marginTop:30,fontSize:18}},F||""),_&&I.createElement("div",{className:S.Z.button},I.createElement(re.ZP,{size:"large",onClick:ie,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});Ut.Z=g},37552:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return S}});var ve=x(59301),ue={sendToClass:"sendToClass___le_BX"},T="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu19CXQcx3nmV90zwOAGCBAgeN8ST0k8JFkWLVGyfMqJN7EVO4eP2Ov1Rkle7mSz2fVq3yZ2Nptdx95sNo6zvvISW5aP+PmQLVuSL52ULIo6KJHiJZ7gAeLGzHTVv++vrmrU9MwAM8CAuKbf4+Ngpru6u+qrv/7j+/8SqB5zugeIyD/ZjzXLm3FOCDEwp1/mCj28uEL3qd5mGnqAiLyLw9md54a9jZs7/O8LIc5Nw23mXZNV0M/RISWiGgA7+jNYN5qVorPB/6kQ4ugcfZ0r+thV0F/R7q7MzYiokQEvgZX7zwDXdAM+MAjgG0IIVZm7zN9WqqCfY2PLEj4AdgtgDSSwr0diV7fPbyF94EtV0E88oFXQT9xHs+aMV4nqlgPXAFgrAe/ikEQqCTTURKD/ihAiM2seeJY+SBX0s3Rg4o/FRiuA10iW8OZ4+ozEtk4fSY15kA88K4Q4MNlXOnWJVi5bJE5M9vq5cl0V9HNkpIhoSwa41gf0mEkAPf1AZwPgh6AHBTiZTIqHy30lVpmePY01K1qxYVGD+Ga518+186ugnwMjRkRLJXADgAb7uKf6w0/Lms0MABAEOJdKiQfKeSUi4hZ2Hrggu9c0QzbW+I8IIV4tp425dm4V9LN8xIiIgX6TBLrcRz0zFP7VnRr7lgjnksnSQU9ErWwUBxKdvaNStKd8qvHxvBDimVneLVN6vCrop9R903sxEfH4XCuBzTBqjVZtpMTFIaAtFenzkJAg4FKt7z8khBiZ6MkM4K8XwOIz/RBZKbGy2Yfy8VIS2CeEoInamKu/V0E/zsgRUR2ADgDJ+GlPngPWN48EfefqetasEaPTAQAiWiaBm+P3H8pIHL4IXNPpa92eNXx2zpOUwyqbfaSxsfHseM9DRE0S2AOgTQKCJxC31N7gs7+/B8ATQojL0/FOs6HNKugLjAIRtbG6HARoFQLdAGrtaRZkPzsDbGhHti5JJ4loWKWTp5qacB6ojIQ03prbjFozNk4SGJIS/aNsxLIFGwKe0U9AOq38J9rqxPFi4CKiRBbY4QEbePWQEjjbL7Gk2bcG8agPPCaEODkbADodz1AFvdOr995L/jvfiV0AVkipgR71Twj2Mal65DKwvAlgFzn/lpR+OvAxBB/P1EOTv8YumcTIEdFGCeyEDrZGt9YfnusBruoEPCPnlQyfgYCsHAn2tbamXil0S6MubZbAdttuVgIvXZTY2hndhl2fjwohjkzisefEJVXQm2EiopYjfdhVI7Cku6EQ2I04BTAwGoKsmY1IAzhntCnh+T2DWbzQXoczk4mQElEyAF4noFcZO9fMlAP2nZLYsSz33lIBkiB9z9/XkhKHioB+tQRe607mi6Oh7qbfxbyi7+NxIQq3MSdQPcFDVkHPEpJYuOE2KdH10kVgbStswCfSmd1+PGq03VVNIfjdw/7tSYxmoE6219c8Vi5QiKhdAm/S4HRuwB+HshJDGaAjFd5b/zNsGymhMsp/almzeCl+T55IGeCtPsC8neh45KTEDd1al48O38fzAJ6Zr8ZsFfTav01vBrCIQcagOtELrG/34fn5GkoWQL82/ELpaM/IOZOlbggh6h+k04eODzx9x65FfaWCf5TobQmJlrHz2TcTHi9fBLoboOkH+jvFOk2I/gygSOSDnid1ALCnZm2uFwh4sUdiU6cFfXgfj/yTiQR+NJlVqtR3nMnzFjzoiahbSu3JYKquPs4MSbCe3NnMevPYwd9lFHC4F7iqPSbhrbTlr6XGoj56R3XQqK+52X9mWf3EQR8t5SXuAJAImwrhbo1VtiW6GsKViH+x+jwbpAEgs5ngqXWLUy+7T0dE6zPATj/mheL3bGbujp/rBRLw+2t9fFsIEcwkOKfr3gsa9MZDch2Aq6W04f0Q8KzmrG8PwWUBx4PAoD/RD6xpdeSwC3gDRIN9rYpwA6laDI8m/KfWjuNZ0e1naLfngY1YYdcLe/+hLHR7TTXhM+npwBNRArwCKYlglPx9WzvFYft0RJSS0JPIWTnC6168yL55XjVCL5CeXOHkCRprfCavcbMFj48QebcC3mLAaxnC1ZSVa+D5dTLIEOD1JShxYHk7zn35y6C77pqaUV9p8C900LdJib0A6q0r0nYwqwxHLwJr2g23xRisL/QA6zsA3y4BDuDdyaE1Dgn0Z4EaD0jV+JQNZCbh+c8ua8LLKBD8YUpAEOA1QsjFWoqbh+F2+O+Tl0NwL28wurwBu8xq1QbZLDIqnX3ymtV1UTJJmmizD+yIgGP0JG7z8qgMDVir0I8Z5bKhxr+vEOiP9lJr0kdnguQOBXGDBJJE8EiBifwCnkdKKShF/PgKwj+qCN9OeDizbpEoWcWrNNDd9hY06I+co65USt7BQZm4Scojdob5LQroNgYrG4z7e4AdS8b0aatrs4S00t1+0EAdArqMZ4SvJ4ERqvF/vL5JcBAo5yCi1VIyk1L6dgJZY5Wfo2ckXGk6jD7PwB1VRtLzBJAY8cl/dMdKcZobZuMVwJ3ScnYcw4O9Nv2ZUNJHKpLVowiyuS4X9ERU3zOE10qpNsHzNktSgp9J8b/QXRquFOaDAkHDXv8mZEDyBUh6cMuSmhdn2kBe0KDvG6UNFwflDRdGgKs6QonsWXWGVY0scLIfaGuA1n17hkJ1p9lo/wUB74B/VALHL4feIE1yD9FBWemfOzaAJ97yHaQRhGbD0n6Ib/0GNrYnJdMOclyhWpVRwPkhoCnFz+iTLyXVJqH4HnolkMCwQl+y0f/hje1C09GIaJOhMVilPZqYzMXvzQJr7YQ2oM1mtR0j2xpC0PPEOd6X3Vbr+XeAsFIKJBjMDPbolRjojCQKX9ECXp8yZtTzA10KAvnT3mW19++dQXthwYKeAzUDAW5MCrmOAcNuSNaX17cBDYZ0ELoIgQujYSCK1Z3u5jF3ph7TAhLeZnGMZoHDF8IJZdUdI7npiy9AfuaAv0UQOPprD+F7ObZzfDHQf3sCtKoZfXfvlkfWt2BEe28ApLPU87o1iQdYkrJkBrBbAity3Z5hBJcN7GZe4HjK8WrhGMUEyK4G/77zQC0Nql9RCtslIcHnWukdSXgKbZzuRkDw70bc299DST82ISQpKch7IDjtf3PXruI2Q8EXr9CXCxr0owFu84TUASAGKKsPLMQZEG0poLUu1N2Z58KenKFRoN3owMXUGVf6sypyshdY3jYGegbcwYtIfewxcZXw0Lyug8YiYYwNoy5I0l4fZBmB7JZh9UUBAUt1BqkStKoFPX94PR3yAQpBS+duXZvU1GIiWiGBGxFGlo2ED5+OJ8kLF4HN7Y6f33icuB2SkDUZ/4eZRPZNwvO3KwHmIEWADyK1BQgION4LrNJTN1RpigHeqkGkqEd56t5dS2onnfAyFfwvZNB7aYm3CEjth4l0aAWwyjAigRMchPKA7jpg/zlgZRuwpi2U7qNZ9unDi4xNxyrQE8IYsYmkr9qTkjQjzcyI+4+LtodPe1tuWCFFqsZxi7J6wH5343tPs4EqWYJrI1VPzHQApNljo38T6jevpyfb6pBhICuis2/6fOLh5S1I/ug92NaYAqs3jqCXYSCLQMf7obYylc5MAmssawM6QF0yKdZ6QFtgyERanXFVGqO/H+sDljQQksawdyfEmLoT3seuEvqzoN4aP/HxrZ1iXHLcVMBd7NpZDXrjUuSgEbvbvHQaorZWd3362DGcnwq7kdtOS7yVIFssKhw7L5SMRh8dzYS6PfNsmuvgfWq/33VmALUjAWoX1au8PrQTgcG5vhl9b9tAZyK6ggTuPyG6LijauKQpNixlgJ5Bng3YXpBn3rHFP5yWoKzyj9/9HXhtKWy+tlstTQpPT0r7PFbHTnpKrWzC0M5u9N+0nHSBqAxHtljdUaIt6WONMsavBWohMA9ngd4RoLM+tF7tfcKVRrs+9XFhOFw5jSYVnUhER+El/nnXsiubojjrQG+Bns1ivRDwhdCAZ3hYJyFdHJHZ+gRdTCWQzhCl65PJ51hgleMVYD/zfwjwBlJSy7s8wJtRdNWV/WeR+Nuf+atf6cOSq5dI0VoPtOTQ0vJB3JIU5966nHSwyErTE8Oi9eUR2mpT/6KrJgH6pmQw+IFrEz8LCOroqP/If/8hbl69SO5ptaE2Vo8cD4tWPUiDkhbX0dCmxRh4/3ZxXAhk4aE2JcQWCDToBcHMGAteVze33i3PI3TUhyuU68Gx158ZDB0EWi30cg1gPTc8/GR3t//FKxkImz2gJxKXgOZmqQlRnMLGcsdhOY7Bkmu9sK+cDU7ua80uzNJ5yo48+1RTU18pngE2ZEdHcTM8ucoFfPTZ9b+zOiMh/vgHYs2+897Sd10nBdMAvAl6j5uohzh3Sye9bAHPAL+URd3BAXFVmihX1k8C9Gvb5Mk3r/GPZgjy7570v/ZSH96xcbHcw9wcK3EZkFptMYC3XJ0QqIJ2d6n0u7fh5OJ6b6kSYANY2xH2iFySkfQOdff+NFCbMP0QuSqNk0oBDHjuok5uMRLzuSsCgz2g9EdvXF5/xajMswL0nJjc34+VZwO5c12Ln5OwEQ8a8UAcvhzyT+qM7HdAS8qj434i8Yqh97orbp6KN5CmLQKSI7LRYVWaaLk2jT98UjT+0YPe1jdulMnVRhcupjO6YElBnHtteyjpI/1fAafTqu3EiFgfkBhL+CsD9IECNdeIy2/bSC8IggoUgr/7gf+vxwTesbFT3lwq6Nlg5m785S0Cb1jnAN1dHRxAh+oOgVWbVweAda2h1HHVKD7n1CC0ns+Adw1bewc3LUsIcXj3Mv+vJurPSv0+W0C/UUpcc6Iftc11QKvjMgxfdAzW7EFhQ5MjifkhpfBMj13W0j/dXIcnx+O1XximZSlf7i0m3d07f+eIaPnzR7D9XTsIjRFLZ/xhYCDUKtGzu51eTnrh6m8nFd+zLy0ahoBUQikOETUqeIP1KW9IR1jZmDX/97NLxXhXWI8PsgrC87KLG2mo3tOnioRHJzZ1Jxr/7EG1ZzigtkUlSnoGPR/bOoC7dwP1voh08bg6QybyxCAeJWjgt3BfOPo7A/7MAFCTDFUa159fCPB8rVRIJ8n/6K7V4kylgD1eOzMOeiJaLCVuZ4KVTmi4LLGm2dcswnxNO/Sn83ku98W+oAavw3AcDvzTL2bx9B1Fwt8DA9SpauTreZ7YJd8li0WTQQLfOCJa/n4/tt+5hVCXlzxYvIsvDNDIsqT38u5l1B9RgI1+z1cxrSApVHutl2wdzarhzgbqCUinwWrpOaKAIXalGoKZDkaZwBn3Q0eTaFzVjMUrmtD16EnP/+C34G3ukmgJVb9QCo+j3ljQ+wL4y9uBRakQElZ6R6PAgGeXqXnVVy4Bq02EwervfJ+e4fCEzsYxwLu9E0l4szqEN2MPq3zwNatq7533oHd57PZlOTzOQaLuBqmjo/awLsULTOtlL4pTBcCC3Z0m7DZkj8ugxKWr2/39HfXiVLxDLxG1iLS8xSM0a523QKDJeB9x/xHR8qkD2P62TYTaMkDP+acnLoiLH9hCBxNJKOvFsaF/fqakJ9oF0JYFVEsSPb6gQQYQC3j2jnDSSquhMTPQ2V0pPJVY1+53rG/DqoSHGnZr/sFDwJNs77QTakV5oOf+/R+3Ae31womshj3GEj7H904hHWNbp0NBiOvwcW9ODPk5HqXwtyfSh/3P7d07/czOGZX0o0QbEkyGkmOJ1yz5OH1tjWb/hb1hAc/r+Eu9Y0GVHBBbCe/Qeo/0h6vC+lZ/hCR+1tWCo66Hhz1F/cPYKT15lQV8NHGMRLXS/tuHRcunny8f9CwgT18W9NSravB9W+iljnovA1Z1nPZrINoHA7Q2snEML12flKcDQLGPntW5y5kwUMZSnp+zpsav2dOtNtXVgJ2FHq9+f/kocPASsGERobFW+9rLkvTcx391G7CoLoSEy50pxK852QcsbTHBNBVGrT2PV4p8CZ9TVsFRhdzxU6QOEiU/u2eV6J1uaT9joNcJylns9DxsyHUXhtTeAyZi6BAAdXDm3CgQZSzFPCyupOfPXBuG/c9MHRCEtJT+CysX4QUX+JfStBUK27NSRtR5SxmIAlYAHjg6OdDbAeRE7seO67oy2ZSvonqTDAhfIBEE8Nnw478DBebnhh5DY1DadvjL1lqvzveUz79dGg394NxPazsosnMmA/q/3AssqhcmiBST7kb48CTOmAAZT1I+BrPAYBporwOEgygX7JaIZoUYvwfHMZJ6orOfTpwPyPvcLSumP01xxkD/s15qXeHjlqZ67YPP0981C9AFuPHaMCtQ03odwOuOLKCasPTh05gsxkdAGCH4T6xvH0vmuHSJWiiF1wdK1rnS17ZpDU8G/WdeLF/S50ozo19bIBtkW3Bbw5EDQZaOwGDRfna7kpm/dbDI8cFzl+jz+Lswqlq2pP/oXjY+Q+ZYIeluVZK+ESDhAfVsNyjg2ACwpD60O6LJ6b54zLvDz8nGLgestOtX2xBqSPn02detqH12Pkv6zpd6OblBCnY/shPA6vDcuTxwzFBkwGr93WQsMSHMHm7gKK6W2LQ+DvPzJLFGZCAxnB0dfGj7qtZoGT3ZT3cSydbIG2RUJNfT8v2jouVzUwS9i4hIpw1C6a6BbydBmOQdfsefHf96ZJSac/UEscZqRUCfO8GsZLbPy5Oxl/3zXgjyE30h2cwUkdWvmKfOmHfg8bo4HPKJeJK41yiiASXV525ZN/18nBmT9FyfMSPlbaxzM7itR0QXJDWgZ3WGjVHmvDCtl/3yTZr6FB5x6a4ngdGVuV1Wb5g3Y9UVLQH1lf45RXjkmiVCF8f7+mFasbZR7lEKHrMqUzrpw3hMTHvfPyFa/mmeg/4vbgkNZg1cRzqHzMmxfufEGJbOPD58cFSa1Zo42Jkn1JcJg1eaNsFFfJpC3V9z8e046uwTOksi8dlbVk//biozCfp1GSlfY8HLHclemxEmVrFLsi0EP4N9SIaf2X/fUDcG9rh0t6DnzrS5rNyOPs9Kb809l1Ced3TX0gTXd1H79lGyYz1+bmBY1vFz2Kwo1lUHRsIV6JnzouWbR6em3sx2Sf9f97D3xuXFmwkQC/ExIY5dk+wxWsJSnukF5uX4t0vDoQ+fjVqeF9yf2kgvEJW1fnwBdVB489yQTafTm+D7O6P+tP5n88XlEYCToNkIHR0JO29jRz7gGcwW/JHhabKJOGuJVSetLjnWMntFNA1E+fuvX4UX2Mw93U9XjwRyp1LQCZ2ayhtWGNBLxcOvipYvH14AoGeh4gj2iD/vSHtWvZ5ml2VHKKTYdhoNOMrGjMsxm4tBzhx7vXKY6935YwGvTxB4/NwT/ueuRD7tjEn6NNEmJeXOogxH00kMQJb2/I8DUpGxZEBs3SCR39sYfDaKWVMzRvSKmI5WhwaGvKz/yI1rxbmT/dQ+NCpvIMIiblqv3DZn1ID+i/Mc9PfsYZflGHdmTKHJjaxyBhdHXG0GmR4qR7dxge2qRq46Y9vWSVeeUALeD163Stzn3nO6Ps8Y6EeJ1lNG3hipKHH/jeuO5CDNUKj2cGjb6vyuIauls71GAof7wwRqe7B0t4c1lFmkCc9/Nb0cP70VkC/1YpvMyK1ZEVXM03x2PhaCpP/IHqCNbaaYOuO6TQcyoerCzMqIcFfE9z4R4O0KQAIZTwafuGVdqmBltkqDf8ZAPzw8vEz5NVyJIDrikdV4wIiN2pQfurpyIqhGulsmI4/ZEc5YMhsWRJPDQb1dISSHwFWw77a1tS/v2/dUQnRvfRNEQnPsxwxf4EeTVG86kgFaE5SXA6hxZfQI672xEjNyVzqZVK57UnsrjcuSaQE5nHfjxjwxKHBqOFEyDYGb+083Gwqw6ad4jIDVmnODobHLjodC0j1e3zvi3sQmUkRD1qoNnbttdfI/VxrcxdqbMdAPDg52IZnieiz6sIB3A1V53hlDLWBpxBxtlxHpAn4kE1YJaOBz7ADa+ziJyvYa4SO9/5T/zd+7SYw81TO6HunEje51/PnHr4qWr5Sp3nTXBtjbMoqOZG74bTKDG8PMuE0w0F4Z8PGVY7V4/nKyJO6NC3o7IeP3vMyFq2AmRsz3bh9oIumeE7Cyol7R529bn/zpZPplMtfMGOgHiBaLjHy9ccwUDDZFUHFC9hy04kwmdm26BC6bHM3XHO0F2OneYNxvUcUiuyLYCWDC+uwqP3DJf+mPrsdTzwPJwdPBrZ4Sne51D58QLV8v03vza9396ErGZd9khmly13zxaA2+erQuEg6F+PSWcGZBz6uomxYYCSUCDl4Arl485t2JP5WbDlhMf3evCTls1EeU+PM71l25mjgzBnreAHgoHbxWktCFjSLNIx5ZdTKOrLF6kqmrHsDZQVYFiXz07J83mf5sbOlVxJXuMYajVmOkVoeG13f4T7xlgzj5kxO01IO8ngiN2lYA8MgkQP/r3f1YNIOg//qJGnzxlTrthdL9VCCJxAX9n9005qd3JTeDk9UadkEmdbHBXLU/mtYx37sL8DglIZwUahQQ971+bfLHk5vWk7tqJkHv9WVxnZByU45+HokWE1RyCGcWwKyPc5WBDrOzXpSVxAQt9vdLoE2HeHP564UYjvZaLuy0uJmOPnsm8fh/uRXy8ZPYFsgxo/Ynp0TLN8qU9FfXpfHmjlHm1lzx4+SQwKcP1eH5S6WrNy7oXZCy4do3Cixm49XxybtgtxMhslXMGxdSZ8bUJjUqyHvG8/x/2TtNu7kU6vgZGI6xx7iYTm8R8K9RnJ1pVQ5HEo/nneFAFhu2bKwy1dh6WVjv5N+4ZIfDrY8KIkWeG+uLN/9zdLGuFqq3d+j+D97UcumhhyhB6+RbVYAmXmEePS1avnm8fD99ylM6ZD+2lOV+1Cl7lltuy3+YF48oB9agNUaq5bUTq2dKs5VDmzjcjURL9N6Mh9HAC+kMJfDp+fo/vSmU5ny4hibTuTlxpsZIeXcViKtC1nDNM2hNo3nuTIISRJeGgssf+/mrF+sk9ek+ZhT0fX20KCPkzcrTObHRYQEc9727xip/5gpdWabdmoHiDue8TE5g4MMGliIVyKpOzkYKmnc/BHQauoJSdOZXr0n+gK+/9xAtzozKmxs8NDx1QbR8dxKgLziATgIFE8NmC/eGQa91enOwWmMrHnCQMAfs9hyDYjfQlAd4N2Ekzs0xE11BHPbgfe6N6/PLHVZ6Eswo6PllLozQ7VLK7oIMx5jvPQ5enhynDGA51M3JFVywiUEf6fhGArp2A18XSXxTodjWs1Ee0qj3f/ie9aLnnfeS/4tXYVNtjdz20HGx6NGe8iX9XAL9n9zkuCwNUI/2hdXdLDVjIu9MfJWwtW/cfohctHbCaK8lm170pbdsSP6w0iCPtzfjoO8ZpQ0DA3J3woenWZYOILUBGvOX61XAMXZZwnBiCZPSWC9n2gEfOS5HY6za7y0tgdtnI4+jt8zp4YvI80llsocbdyb33cX7RhGJb7yc3fX4GX/3907gmnIzp+Ya6NuiemjApZGQV1PvfKffx0rn8XzvBv32lBzpb6jSnGfL9k5EFRc0eDaR+I/vn2b9fsZBz2Qv6pbvqE/At+5IphJzppAbIIo4Nq5qYhDF/A9mVOr6KlZNcc7T88RmVFn3p9FzOZ1P1640XHC9CpA/SCk8dvfWsPrWRz5C3qs34I0HLqi3z2fQv3cbsJn5TUzDCMIEFVZ3tMfGkcoa9w7gxzdWw0Gy0n04HZZNZBuB1Sfm5CccFA7W+b9z14qJ98Gdymow46Dn+jMnh7BNZeR2ZjWyjs0Sn1PkuGDqIKfHcaIxVw7m2pIxukL/SFhAlBOo1zcBDWbDAivVNXHM9lAM8DxunIPKUV5uWE8sPsf3iSSe+c3rBe+9pI+lH6erli1SvzefQf9bO0KKMOvvA2mu1gAsMw4BI+BDQV8E8Po3R3+3RjVnSDHvnmkLujR4WIRWj2V8wgwvBNBzRx3ppVVCyRsDQtLlw7PU5cgqqx/skWG6sBbIhqJqA1JcvpqJaL28AZnx3WvQu6qRLXxqQMwTgVMJmc+jQW9rOho7goTfe3kY373HJCov+9+0cWmz+v35DPrf3x32Ma+yA1mgLRmm802kzrhgZy8YMy45UaTeD1MCua2mZCjV2dNmVaS8FULQqeF04mN3bRVROuVUJHqxa2dc0vODnSVqGLiAXVJI3r81AqALXFfS5JTSMCKdL7tsuPc6WusAXn820sllTzJdYcjQFazw4kHntkhABr7/7T/ZFUYKFwLo//jGUJXpGQz1bC7UxGoOAzgqKuukMkZiWoSAZmCzIBo2FZaba8cESrQ4mA95gA8Lgdx351WJH1RqA+pZDXp+uINnaU0AeUMgkIgM1Zj+HufnRLq6Y9hyXi13vKYgOPQFnXJnzjO1k/QkcWvRW8NZ+7w9rsVCR//kpuQjCwn0LXXAsV5gGdebN9lQVmWxRDgXTNxX/D1LT86btRGXeJBqPP89nyuEOE0I7vu5DTU6v2E6JLxtc1ZIevswB85l75BSdLl1HyMJ7/BmctyRjhrDIGfAs6Gkc2NNw1HWlLEH+G+O2nIFMQa9ngTWUDMbl4VLtn8pUPjRPXvF4EKQ9H/Ikt4LM6JaHH+9HZ+4dHZZlnxOzu9uFYfi0j1iapprsz7oS3deNb20hFkF+ud6BpdkgxTnzeoYpl0S42xKq/YUiq7yb0xFYAOVPTnWPWm0oChfVnttDLnK+v/5Rz0BzApB5GezKrP/o3trD04W9FzfiYGU19Gmyq9+Rycia5PAGQQ66dvEGXTk1vJn+BlNpJWU0hsjsLS1NGP+uy/tQaryIrK/f0PYDqs2vIOhe0zkoYn73l1hlTchTMPupInaJxqWQfqzv7C1cf90SftZBXr25Dx1GtcpJTfrTnOIYhH/3TAj+Xf7nd08OPrObKyg/e/O/lDWO8OGlZ5V8biAVU4H024AAB1FSURBVIecWIGAfyxxHk98ugeryzVkV9ZmcWfHcLjsl3jEXN/hVQW/HGuw0M+nhwU+f6gOL5ZBLf7t3eGK16XrFscSvc3teELFD5eyECV8O6W73fOjYsjmopxrdUK6IAHVo1Twj7+4ue54id1W1mmzCvT85I+82rfIFw2vCXgvJlelccBuA08RXcFKZ2eS2KAT4zppUgbt5sfs5qzjyWBAbyW72x5/1iqPQIZG/Qe/eByLygX9B7v70TqDLMuvHK/Bl4+UzrL84LUAB6dYyheS7PH5Fwf7RNLdrmoWoXnqUq4r9KmLQ/5n/t007Es160DPHfLYq7QhyMjdKgHP6u8uX15LdKd8n/XO2MlgqbT8vVZjbO0bLluhgBEGPQex7M583KDdk9WZQFY1UuQ//NUjqC8b9Mv60epPq002roT7MoP+ldL59D+/Htipd+DKB30x/d0arDmrTUzKa8eA02ghMlpOknhIwpNeyv8/v7Be8IYbFT1mJej5DR88nr1dSaGHwC12OpHvPfLYOK5PZgna0iGs6zczN8foRpbVYFUk/bfDdgzLj/jD3z2KFxa3qN8tx0/P6s3r20bQ6FNUFaCio1fAQLTS9sywwFeO1eHx86VTi397pykBYh7SBaoFdR6dwNW+Ys9jr7ETpiDY3eUjtpsJCTokKPGJSvvtZy3ov7ufGgZ9eXt97RgDMwJ8PLLquCLtKmA5PPy3raXD19vgiF0VooitLRLl8H24DQ5esRP1e0f9Z7ua1W+XA3q+N+fIdiXl2A7jZpBzVAM3iunuzscGqmO82s+6CacamgWndemmFfD8ZR89I+XlyP7O7jGWpRtZjUt+ff+Yd6YQoO1zFlo5bBuREHABbycd0SAR/cu7t9Xsq6SwmLWg55e8d//oVUMycV3fCBIccOJk5MhXbxJErApiJbY1Vvl7u2Exf8d1dPgcdmXaw1WDtAcnlmBuy2InPNDxQR/9Ur2uXNAXHKxZSi22oC8G+Dzfe2wCx4R2jo4UN1gjv72ZPIVSDvTEBr717q2JbywY0POLfvOF9NZA+NuDAB7v7K0TvjmcbXzuHPaOpLajCvF32k9vWJQs4a2k5w52I7P6s2nHTh5WqXhbTes5OTXiN/cHal6zLBn0TTFGZVHf+3iAj3lm3MlgvTt8ClMU9HahKsbjNwjn5BrPE68MjQ5/5td3NJ2vFPBntaTXyyKR+OrL2V0UeFdZfz1LHKYQaEls6MG2Q2yU1k4EK9j5bzZ+2V3JtSotuHkQGPRuQEx7eYzPnieOLmM3JFr61fzm07PLUu+WaEFnP0SJHlbvCP/P877EvizmneG+5UKuvHIzAJnC4G5aZyS8lTiZNKmPv29b6pUFA3p+0W8fotrBEezIQK6BMh4do7646owGtolY2cBVVOTJeGdYenMklivmWrCbBUELdcvX1+2Ybud2ewZEyxDmN+h/a6ehdMfSBV3fe96E4CBa7MtCYGcBxd9zZltDLfT2QGFd+jEo5xq8So+HEOy6T/71r2yuXN36WS/pbZd8/rtnGxJdXddlSK5SwtSb5A1/LbXA5oEaBI/ne9crBFOWObfWCi/Hfam3nNeVR8dWgPPDomVkAYCeuTeROuJMfKvmlSrd+VLmzjNdnIu3Mk2ZJbrdyCEeUOO/WZ2x+qT7exCov37vtSm9Q2MljjkDen7Zz/yMWqGCG7OeaOdCq9aVGXczWsBHjM2Y753bYvWIO5a5+7odW6zVqEuR+mOuvTAiWtLe/Jf0DPo833sB12iO792hVLC3i/eXZTHO1GIWLmyDJZ1S3i6g49J9DPZm8inFDoaFC3ruhk88Rs11SWzOKKzJkvR11NRJFLHqibVBNXjZWDIiwtX5uWiUPdyJY1Uil6h2aUS0BPMc9HfvdHR6xyUZl+7M+7GUY7Z52EXKSSesrvCkYYBrgVLAJRMBPpZswlfkSf+QvZlNiOT/etc2sbB0+viS9olvH6oN2pduI6q9OqILu+mBdhIYQ9e6NbmdOF+HM67skeP+dOvZc4ZVRrSoBQD6yHvj+M1DAluYeM9esPpEmCiSJqCWK8nZ2vNOVpWjqYypS1aV5P9NDMIlFkXBrJyVRZwSmcw//NquhortMTun1BsX/FyXZl8dNpOSW7IBfCvBIx3fqeoV9+ho/7wNaFnvj5su6BiwVlXqHxEtKjk59Savkx2XnvZX2wiwkX6at2624OF3DoKx7Xg0m9KplcPb2esmuCaOsSh10sck9pz68LUhpZjLfpwdCiPTnBTOu4/rJHoK7U4GuivFC4I1Jrajc3LcmeG3OeqOC3h+T0EPHLn0yNfv2bs3spenqtfPWdCHL07iv/0UK4VMb83IBO/DOrb9jlFrzFe5O5EY41efbyKwLtksohhbyaSAvhHRImrLA32Np7CtPotmn3f4jg1VXE+ObzVvni0Ci4MOHZmNuLxO5QdtDYYAPTLo4cAlH+dHEyUXe3rHxnCbzJziVHxfVlfG8b3n8WZciR777BqrLuBzkkysAS0wrFTw5V+/rl4n8lTqmOOgD7vhL56mxYOD2C4zUnN1LHdGMyVtpzvJIVpqme/1OeYkd5Xgn9k/r9vjiG7Gb0nWqrI2T97bNoydTVFaeqXGrKR2OGj3mVdSePB0bcmg//c7YhstTEQUK7Ddp324HOmt5ZP1608g3Z3JroiOjST7Pnn31s7Bkl66xJPmBej5Xd95L9Ws7MA2mZVrAgWd92ON2ci4ddyaGufORIhWiQLn8LkM+lSZoP+3y/rRMoMsy++cTOILh+p15NPSLOwWnRpbjgrFUPzwDqDFRPMm8r3b6w2ec3SU8bwzhYzVeBv6HAEpZPCF9+6of7RELJd82rwBvX3jD9xPi1ICO1UgF2cJXuS+tIMcSxSxkjyiMjgMy9Btycq+juS2pOrKk/S3tQ1jxwxJevawfO5QCt85WbqkZ9Azl16DroA6Y4RwTgkQPjnOq7Hn6WaK+N5tJli0MsRmgwAOHHn55U/dc9fWildGmHeg50780APUkkhjaRq4JitlwiaFx33vOd4aM1JjdoGfQ00YzKKlvkzQs06/oymNZbUxlqWrA8R1+7hhFweg1XdNGxFWnHbYUH/iQhIHen2cHipdp/+QAX0hwMeNVX378QDvqDMlS3fzTgTqlZI+/cGdqcMli+8yTpyXoLfv/56vUrsS2KY8uSRQSLjlRax6kxPYMiqPlu6QJlElTC9n0DeWCXr7HFGtHhfsDj04qivjUImtXZKzY7hTgVhfY4xWm1drpSd7d1in13ZtGVWLP8jqjanp78w1i+9Iwkd++9gEtJPF2NN6VsQBb7PhokadSc7nevCyStBX37898ZAQ01MVYV6D3mLsXV+j1UGAdYpkV+CoPBrj1hizSeHacA2B7kNqgzcjfeb0TBr0eUJollKLOV2Qa9XE5mbp6kypxmqR1YonE5H6xgevS32rDMFd9qkLAvTcK++8l+rSEm0K8iYF1LC+HyWeaz2fIT7m8rSeHC65ls34GFRoaWksT6cvOhpzAPSF1JlC2+u4VYm5/zwj2+O+92Krgz2Pu8TzvO++b5v/Dd7Qumwkl3HBggF91CcfIe9Nq7Eymwg2gBLtGZJ6qwGW5kZNHQO/MXpraiRGRv2WxnkO+g9wcKrWBLtiPsdCxqrur6j6mdKJOl1OHfu8mpcxF6ftb9LUevWtU1+rfeCee6YX8HzPhQd6g36uPX8ui7UygyUKWKFY8jvFoGyurR2YYAFIegY9l+Zz8V5Qups+ZHLZYJrVQKXVeaYM20ht3DsT0ZPNtWMSXlwCgu994Nq6h8oQ1lM6dcGC3pH8ic2dSDWmsC1DWOMpCMn/HANL8/QDtHQ0l6/eFFynjdjUBp9xiPNnvX2OQ0nQP7Ev3TFarW/dNVrZWNXUBHseX8Y0BDZ0jas2yrW1W/hYe8Z5lvduB5odQ1b3kfO7FQCca9AzADSmmC4cRptzuGWuR6qI/s6kS07lralJ3vdrm3AW02S0FpodVdCbXtn8EapJrcDKIINu8rGECLWhNyE8RgO0tE0C9L3DwMnL+V0f15mtRHXrRlqQRSF6S1Vwi6i6SeIuwA1gXYlrk7lD3/lYyW37LK9dBtgdGR28m5PH1B6uW89JOKwKbWhTWGSKQ9k2Xf09z10ZJobwa76YUeo7H77uyuwS7o5AFfQxPN76ECUuH8NyZNE6KrEuQbKOkT8U+JOS9M+dAU5cFuhuitcLKL5Cx0ETqQKOYu1OmoiLY1cn139uVo440KPanXZymBlmVwQ74fTPMWlvVRUWCNs6FW5fM6YnFwO8A/4hgB6HyjxYybzXcvSdKuiL9haJ5f8TqcYa1GcFtrPqs6RZ3VBONQQOEn3voMC6DsLVXSUOi+vZcepX8tW2fqXr67Z1LF0prlUgq1ZYFcewLvW+sY7KpFUsW3bEUYf0/Zw2rNqlv7KTioCuBuANG1TuBgvufrJjr817xp5P1iT+cfkmnN8rRMVYkyX2bHRaFfQl9thkCrhydbWHDgm84WoCbylU0jHHQH/DUoWrO82bFfLOKMXlKZ8iofa9ek39/num2R1ZSh9XQR/1Eglexr8MeIsfhsCtQNNTEAMp1NZ0oP7/PoFNBy+rXy5V0rPSev9BgeYa4Ka1lJPtP+7AzCHQMzfttSsVVrZEar/+QB5vsAAJIV71FB4PBi/v+8DNV2aP2Croi/TAvtNUn0qjWdahjgIkUauX+MXCR5cPLCeFpZwUxJfzxgTsznzmLPy/fUYlSwI9AS/1AE+eEPilayncwqbUYw6BnvX5a7ui3ZA0e1iA+kiI0wmo+2v92qOVLslXajeOd968l/S8M+Db78Y6X2GVJNR6CXhE6ABhuSewSBE4/3/Cfnj2PPDJpxVKAT1vKX//CwLbugmbTUHUkgdrjoCea9a8ca3SuwRq6Q46J4S/PxuMHmp5peH5u+7SXt9ZeUw42LPyqWMPxQWhDgM150/Ca66FrwjbILBDEVKCAS3QpgitZkO7Sb1zqaDnVLtvPS/Q0QjsWUNI2O1QSu3IOQB6DmHvWaHUsmZkhEfDmSz+xRM1F070ocduTFfq687EeZMCwEw8qHtPIvKePYcOobBC+kglPLSSwg0QWKSljoAnlI6wVuz9DpwHPjGBpGef/A8PC13fZc960hW8yj5mOeh5X9nbVgPLmqi/rT7xnWQNXri+E+eme5+osvtxnAsqBopKPlShtlhNeeeHsBwCm5FAIwHdAsyc1OrJtB/7zwN/s0/hzi2Fwcy7nvzkkNBJ1Xs3EtqdgE1ZDzeLQc+R1/dsE9jU4emgnRDoV8BRkjibSKI3Abx09WJxuqz3nYGTZy3onyOq6T8Jv6kOq32FN5BCF0dJ4WmQl6s0TLlreUfyjz8B7FgtdfjdHuy35iKkX3tG6MoBe9YR2hpyw/Jl3XwWgp4tVK5M9t7tAiubC2ygxb5/gUAAI8LHCBFOEeHr/Wn0vWY5smIGffKF+n5WgZ6Bjou4hiSSno9bBLCC6MoDvFBHcXDmgeMKB/sJazvCMzgwdLoXePyYQHcLsHMFhdv6TOWYZaDnTdduXg7cvEKghSvflnEIgUBJ8K7r+8nHpdZ2HFshxEgZTUzLqbMC9Af76aogjet8oBkC2xXvHD7LjkxW6dLdT/cAFyTvpE145BWBVy4Ca9qBmydjtBacXWMsR3dHQT71SkdkVzQBNywT2NHtTdk4EgLMQDomgHMDCo/MpB0wI6A/dIhqR5vR6nvYJQRu9jw0EulqcDPyPOPNLwZeWqqwHIgpssRl7E6lCSd0QSSBpE+5JeymMmENU5KbiNLuLPPS/mb5NIY0ps8zFdksrcDuAsgsTh3vN1lNzMbUNARDkokyx5zvmEz2xjXA5g6BZCLU3yt1EEHx5nUgjArgvnQChw+exNCV9OdfUZAdGaQuCrCNFNYpT6sxV1w3L2vwuD6O2afV4EZfblmPzCe3XJQIoI6yX4hhaH+OiFlxMpdBu5NRFKpS7oPHGtZ5sEVerNj3+n0K/LgoBXTUA7Xl7ANaVqfmniwE0orwjO/hlcDHc5uaxcUpNFfSpdMOeiLyj13GikDh9R6wjASWOIzdkh5ypk5iCe9m/Fvpq7ES5YOOleWzv4czI3xqpxBZDjc9zrnMoRo7YMy5PtYRxTYwm2x/8VK7tNkrnTIx2RsVuI4LtZLAWQGcHkzjS1/9O4xMVxbVtIH+0EVqTiSxNEjj3b6PDg4MmVKIFeyq6WsqoDAbyJXkLpAdgT6243eB3TlyMoYKbDWp54czA/LS8uJVxHJmVvgUrsCOPhdoc7ze8gWwvNlDYtoQUdpYaSqDQOB5eNQHHvebcXqpEMOlXV3aWRV/xVeJ6rK92CU8bIHCNXNFqrvdJZ11P0fNsFRbB/FxtcYF8HjX5tRuNO0VvdZBdh7Ai+zMnaO5jKP+cNOss3MiSHPN1A3W0mBX4lkCXFT6WXg4sLYZ+ypVEqRioH/uOappXIOtvsTtirAchFRFLaAS+2nKp2lLb0x6umpIHuDMljLFpG00dwqk3OW160youK6dd19Xiheg8xZ8/viEdTqKffAdjV7utp9T7sjKNSCAQVJ4mQL8aFU7DgshplQgdMqgZ9966wB2gnADgA1ESMxFsAvezMpKXKumOEDJqcxrzssBbt4mA0b1cMHm6Pk56hH/EZPGVrWKVwQ2p0aIMs6Y8G/XznAwZ1W0+D35HkkPWNrgIaFrQszeQ+fUEpTv4cVsGt+/cAyHd+2aHPinBPqjg7SkRuJWz8MeyWCfowfXatG72xXwpEQqSgFPR2R82kng6DN5vzniN0dyx9q1rsQ8aV1AUhdUkWKzIq5+xVelznreVKGSTsnpB4EncAEKz8tmfG0ywa5Jgf4sUYMYwmsBvB4Ezv6cW73mjIvwlJ6tLkgLufLcoXQ3F84xPJ1GXCzHPTCu7m7b1e04W1fGVSNXSru2Qs6cKWBz5N3buWFbDdBWPzeHTkt+hR7eavhiM57ZKkTJhV7LBv25y7TOq8HbFWHj9M/p6b1DguMkZszz0rYLAChP+roqhNNA3IDNUUEclObp9TZglDPD8nfqyPPwxNSj8ewF64JNJoCuet5OZ26C3naRx94eD494KTy8SIgTpSCmZNCzv/1iFjuFxBsBLKskbbeUB630OVygaLzhLqDN6EeIMiOcejXxZ4sHiyIVI9ZosdUlOs1Rt+xK4E68uK5uNZsc9SkWT9DP6gEchKrP23Kk0r18Zdpj4BPhWKDwra4GPDeRl6ck0BNR6vIofgmEXSQwVUrVlemJce6i6y2KiXWyOHgKNRlJVefkCMzFpHoBozcCcIF24quQpRXkqEbmD130ydWF3NXIfGZvTWvd3JbweWMhOI0C2VGFLyypw9PjMTsnBH0/UQel8W4ibCklrW7GET3uA4QG64QvbdrIU3msKDW/x1eDSK0pJNFjYI7aLuJDz6lL41Af8oDusjKddy9Ujo8N39oEwIkgfs5+l7N71Mp6Og5sCTyANH7cXITSMO74E1HdQAa/BcK6sm48K08usNnZZJ+zgO6jDcaCsySfF+MarfEaj8VUFP19gVUgUnfMb8WMZv6eB5sBXzvH9fiJho3CnVMPZmrx+cVCDMTPLwr6gQFajCTe7XnYPNf1d+2SnKinpvC7q5vHmV9xEBZyi+YsIPFCSQ6Yc7SWAn59dwLlVQwGkEoATWVy4qfQLTN9KfkChzJD+H+traLXfZiCoO/pocb6NnzIF9jI29HP9NNP7f4haqYT9PHniwRy3AMU4+bEA1KR1B5HqltgxwNj7rXxVYH/Zlf8AgJ8JB88YF8qia8JwdWRw6MgoAcH6XY/hbumBrbZcvXMzFrXmMzThopQB3JckUV0/ajQq+nevJLY9vtYoI2T1evmWBCqEggihQAC/1yfFD8tCvpRoo0I8GEINFTipjPXRjGn48w9Uamenhx1pwiIo3MKxBNy4gQAahJAne/lb+A8c11xZe9MGKYEPlknxJE8SU9EazIKv0rA8iv7VBW+20Qh1QrfbjLNFXMrRmpKIUqxMxsKeY6KBaUaaz1dqW0BH+QBLyU9fJJdmVFXcC0ZKfF2CLxhLrsm9X52Rbwos3XQi61JxVaGOPltPLWIVRpODlnwB6cp+vimD3w76o6REVpVU4M/IMzl4NPsU2lKBlsRHd59o5y57K4ERWIAnIup0/6qoNfDQMCr6RH8gyvpP6wUrp27Uj7MdJpvR54a47xkwZXAXMCxJ07wFlfUbzX7e9/z8GkNeiJaBuB3wCU45uih1PwEfd5wxGZ2TozAOTkpvMpVaJijmCjy2BkL+jcB+LmZqBw21f5ksC+0o9CK5kaDmWoxb2kGFRhswexJ3lsYwN4KtDcvm8iZVhPOsQlPqFgfFeMGiaqUH7ePGfStAN4HYFPFRqPa0LT1QDzaG94od6J585VMVqFeZdCvAHA3c5Eq1Ga1mWoPzOoeYNBvAPB7V5ieMqs7pfpw87sHGPTrAfwuMHcTu+f3EFXfrtI9wKBnysFvAGivdOPV9qo9MBt7gEHfCOBXAVw3Gx+w+kzVHqh0DzDomWr+i7qcR/Wo9sAC6AEbnLodwC9U9foFMOLVVwypSETEez7/KQD22VePag/M5x7ocQln7wdwfdV1OZ/Hu/puAP7eBT1L+Y8AmOxmkNUerfbAbO+B5wB83gU9f7bEsyuZRz3bO6r6fPOjB9IAviCEeDInvYCIeGucXwZw1fx4z+pbVHtA9wBz854F8KmcdEHbOUTEQSrm1ndWO6zaA/OkB84D+Gshwvo3BRPJiIgzqN4DzPWKCPNkyKqvMZUeeBXAPwkhjtlGioGeNy++E8CtXBhrKnesXlvtgRnsgX4A/yCEeNl9hqIpwya5hEHPGVVV4M/gyFVvPakeuADgH4WpdVMS6LX2T1z9GG8GcEs1cDWpjq9eNDM9wCrNl4QQhwrdfsLiEETE9ei5TDfTFKrG7cwMYvWupfUAe2lYpfkbIcSpYpdMCHrHq8PBqw8BWD0XE8hL67PqWXO4B9gPz8GnfxVCnBvvPUoGvVF3mKPD5DTW9WvncAdVH31+9QAD/isAnhBCjEz0amWB3gCfqycwT4d3A2cvT9ltTPRQ1d+rPVBiD7A6wxswMOB/NNFeU7bNSQOWiLYDuAPA2iolucQhqp5WyR5gwO8D8GAhD03F1Jt4Q0TUAehSgP+mCvxKjme1rQl64CyAn/C/UtSZeFuTlvSOgcttcMrh2wDsMizNKbdbHfZqD8R6gIv7DAHYD+BeVmtKVWcqDnq3QSLiDdluNNJ/ztbFrMJt1vXARQCPAnhGCME++CkdFZfIvCOhYWnuNOCvGrtTGqIFezFL9mEATwI4AOCFyUr2aZX0MamfMFWQ345wZ5Ouqt6/YAFczovz3tC83f3PjHQfFkJEG7WX01Cxcysu6QvdiIgY8Ozt4Wpq26opiZUYunnXRtbo60eNgTo6XW94RUDvGL2s53Oiyg6Tj8sUB14RruhzTFdnVtstqwesj53BzTv/cTT1nBBisKxWJnHyjIDN1NrhiC5zeq4GsMZMBp4A1WN+9wAHk1iac2LHY+azEkJcsRrnMwL6mO7Pz8Cg5+rJrAbt4V0g5/e4L8i3Yw8Mp+ydBMD89vOVMkzL7c0ZB30B47fJgJ6rrrEBzBOA97StJquXO7ozcz6rLSy1me3I/z8D4IcAmBPDRikbqjN6zCrQFzGClwJg9ycDf6X5x27Q6jG7eoB1c07JY0nOevmPr4R+PpkumPWgd4xglvQ8AbpN1JftAa7aUM3qmszIV+aaAQAvsQ/dSPLTQgimCMzqY86APt6LRMTSnhmfrP6wK5TpzlzJgScHTwT+N2ffbxahhtUVDhIxfZfVFZbk7G3hLedZVQlmg8pSTn/NO1AQEVdoYzoEJ7uwN4gnBq8IbCjPu/ctZ7BLPNcGhw4bkDPQn+eAkRCCPS9z/pj3IDB5vpzmyAkwfPBKsNFQJJglyivFvO+HAkhlCc7Sm7OM2HXI6XXWCL0shODE6nl5/H+Nzk1bCdOMdwAAAABJRU5ErkJggg==",De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAL0AAACeCAYAAABn7wuoAAAgAElEQVR4Xu29C5hdR3Um+tfe5/T7qW6p1Xq/ZcmSbOthG2NhZAM2ARJuAh5ICCSBZJg4yeQxyZDc3CG+38yQTGAmCZnhJiEXDJkAxgbCxWDHYJuXjW3ZSJYty9b7rW6p1er3eeyqdb9Vu2p3nd3ndJ/TD/Xp1tn+/On0OXvX3rvqr1Xr8a9VApVjTvcAEfln+rF6WRO6hBADc/plrtLDi6t0n8ptZqAHiMjrGc7u6Br2Nmxu978rhOiagdvMuyYroJ+jQ0pEVQC292ewNpWVYlG9/2MhxPE5+jpX9bEroL+q3T09NyOiBga8BFbsPw/c0An4wCCAbwoh1PTcZf62UgH9HBtblvABsEsAqyGBvd0SOzt9fgvpA1+pgH7iAa2AfuI+KpszThPVLgNuALBGAl7PkERNEqivikD/sBAiUzYPXKYPUgF9mQ5M/LHYaAXwBskS3hwvnpfYushHUmMe5AMvCSEOTPaVzl6mFUsXiFOTvX6uXFcB/RwZKSK6PgPc6AN6zCSA7n5gUT3gh6AHBTiTTIqnSn0lVpleOofVy1uwfkG9+Fap18+18yugnwMjRkRLJHALgHr7uGf7w09Lm8wMABAE6KqpEY+X8kpExC3sOHBJdq5ugmyo8p8WQpwupY25dm4F9GU+YkTEQL9NAh3uo54fCv/qrBn9lghdyWTxoCeiFjaKA4lFvSkp2mp8qvLxihBiX5l3y5QerwL6KXXfzF5MRDw+N0pgM4xao1UbKdEzBLTWRPo8JCQIuFzt+08KIUYmejID+JsFsPB8P0RWSqxo8qF8vJYE9gohaKI25urvFdCPM3JEVAugHUAyftrzXcC6ppGgr6u2e/VqkZoJABDRUgncHr//UEbiSA9wwyJf6/as4bNznqQcVtns0w0NDRfGex4iapTAbgCtEhA8gbiltnqf/f3dAJ4TQlyZiXcqhzYroM8zCkTUyupyEKBFCHQCqLanWZD99Dywvg3Z2iSdIaJhlU6ebWzERWB6JKTx1txp1JrRcZLAkJToT7ERyxZsCHhGPwHptPKfa60VJwuBi4gSWWC7B6zn1UNK4EK/xOIm3xrEKR/4iRDiTDkAdCaeoQJ6p1cffJD8974XOwEsl1IDPeqfEOyjUvXYFWBZI8Aucv4tKf104GMIPvbVQZO/Ri+ZxMgR0QYJ7IAOtka31h9e7gY2LgI8I+eVDJ+BgKwcCfa2tNQczXdLoy5tlsA2225WAq/1SGxZFN2GXZ/PCCGOTeKx58QlFdCbYSKi5mN92FklsLizPh/YjTgFMJAKQdbERqQBnDPalPD87sEsDrbV4vxkIqRElAyANwnoVcbONTPlgL1nJbYvzb23VIAkSN/z9zbXiMMFQL9KAm90J3NPKtTd9LuYV/R9PCtE/jbmBKoneMgK6FlCEgs33CklOl7rAda0wAZ8Ip3Z7cfjRttd2RiC3z3s355EKgN1pq2u6ielAoWI2iRwjwancwP+OJSVGMoA7TXhvfX/hm0jJVRG+S8sbRKvxe/JEykDvMMHmLcTHU+fkbilU+vy0eH7eAXAvvlqzFZAr/3b9HYACxhkDKpTvcC6Nh+eP1ZDyQLo14ZfKB3tGTlnstQNIUT9g3Tu8MmBF9+6c0FfseBPEb0rIdE8ej77ZsLj9R6gsx6afqC/U6zThOjPAIrEWNDzpA4A9tSsyfUCAa92S2xaZEEf3scj/0wigR9MZpUq9h1n87xrHvRE1Cml9mQwVVcf54ckWE9e1MR68+jB32UUcKQX2NgWk/BW2vLXUmNRH70pHTTqa2ry9y2tmzjoo6W8xFsBJMKmQrhbY5VtiY76cCXiX6w+zwZpAMhsJnhh7cKa192nI6J1GWCHH/NC8Xs2MXfHz/UCCfj91T6+LYQIZhOcM3Xvaxr0xkNyE4DrpLTh/RDwrOasawvBZQHHg8CgP9UPrG5x5LALeANEg32tinADNdUYTiX8F9aM41nR7Wdol+eBjVhh1wt7/6EsdHuNVeEz6enAE1ECvAIpiSBF/t4ti8QR+3REVCOhJ5GzcoTXvdrDvnleNUIvkJ5c4eQJGqp8Jq9xs3mPjxN5bwa8hYDXPITrKCtXw/NrZZAhwOtLUOLAsjZ0ffWroHvvnZpRP93gv9ZB3yol9gCos65I28GsMhzvAVa3GW6LMVgPdgPr2gHfLgEO4N3JoTUOCfRngSoPqKnyKRvITMLzX1raiNeRJ/jDlIAgwBuEkAu1FDcPw+3w32euhOBeVm90eQN2mdWqDbJZZFQ6+/wNq2qjZJI00WYf2B4Bx+hJ3OaVlAwNWKvQjxrlsr7Kfygf6I/3UkvSx6IEye0K4hYJJIngkQIT+QU8j5RSUIr48RWEf1wRvp3wcH7tAlG0ijfdQHfbu6ZBf6yLOmpq5Fs5KBM3SXnEzjO/RQGdxmBlg3F/N7B98ag+bXVtlpBWutsPGqhDQIfxjPD1JDBCVf4P1zUKDgLlHES0SkpmUkrfTiBrrPJzdI+EK0270ecZuCllJD1PAIkRn/xntq8Q57hhNl4BvFNazo5jeLDXpj8TSvpIRbJ6FEE21eaCnojquofwRinVJnjeZklK8DMp/j90l4YrhfmgQNCw178JGZA8CElPXL+46tXZNpCvadD3pWh9z6C85dIIsLE9lMieVWdY1cgCZ/qB1npo3bd7KFR3moz2nxfwDvhTEjh5JfQGaZJ7iA7KSr/rxACe+5nvII0gNBuW9EM88pvY0JaUTDvIcYVqVUYBF4eAxhp+Rp98Kak6CcX30CuBBIYV+pIN/vdvbROajkZEmwyNwSrt0cRkLn5vFlhjJ7QBbTar7RjZWh+CnifOyb7s1mrPfysIK6RAgsHMYI9eiYHOSKLwFS3g9SmjRj0/0OUgkD/uXVr96J5ZtBeuWdBzoGYgwK1JIdcyYNgNyfryulag3pAOQhchcCkVBqJY3elsGnVn6jHNI+FtFkcqCxy5FE4oq+4YyU1fPgj5uQP+9YLA0V97CN/LsZ3ji4H+2xOglU3ou2+XPLauGSPaewMgnaXuN61OPM6SlCUzgF0SWJ7r9gwjuGxgN/ECx1OOVwvHKCZAdtT7D10EqmlQ/ZJS2CYJCT7XSu9IwlNo43Q2AIJ/N+Le/h5K+tEJIUlJQd7jwTn/Wzt3FrYZ8r74NH15TYM+FeBOT0gdAGKAsvrAQpwB0VoDtNSGujvzXNiTM5QC2owOXEidcaU/qyJneoFlraOgZ8Ad6kHNn/9EbBQemta202gkjLFh1AVJ2uuDLCOQ3TKsviggYKnOIFWCVjaj+w9vpsM+QCFoqevNa5KaWkxEyyVwK8LIspHw4dPxJDnYA2xuc/z8xuPE7ZCErMr4388ksvcIz9+mBJiDFAE+iNQWICDgZC+wUk/dUKUpBHirBpGibuWpB3curp50wstU8H8tg95LS/yMgNR+mEiHVgCrDCMSOMVBKA/orAX2dwErWoHVraF0T2XZpw8vMjYdq0BPCGPEJpK+aktK0ow0MyMePSlanzrnXX/Lcilqqhy3KKsH7Hc3vvc0G6iSJbg2UvXETAdAmj02+jehfutmer61FhkGsiK6cM8XEk8ta0byBx/E1oYasHrjCHoZBrIIdLIfagtT6cwksMayNqAD1CaTYo0HtAaGTKTVGVelMfr7iT5gcT0haQx7d0KMqjvhfewqoT8L6q3yE3+1ZZEYlxw3FXAXurasQW9cihw0Ynebl05DVFfrrk+fOIGLU2E3cttpiXcQZLNFhWPnhZLR6KOpTKjbM8+mqRbe3+/3O84PoHokQPWCOjWmD+1EYHCua0Lfu9bT+YiuIIFHT4mOS4o2LG6MDUsJoGeQZwO2F+T591zvH0lLUFb5J+/7DrzWGmy+sVMtSQpPT0r7PFbHTnpKrWjE0I5O9N+2jHSBqAxHtljdUaI16WO1MsavBWo+MA9ngd4RYFFdaL3a+4QrjXZ96uPScLhyGk0qOpGIjsNL/PPOpVc3RbHsQG+Bns1inRDwhdCAZ3hYJyH1jMhsXYJ6ahJIZ4jSdcnkyyywSvEKsJ/5jwO8jZTU8m4M4M0ouurK/gtI/M+f+quO9mHxdYulaKkDmnNoaWNB3JwUXe9YRjpYZKXpqWHR8voIbbGpf9FVkwB9YzIY/PCNiZ8GBHU85T/9376P21ctkLtbbKiN1SPHw6JVD9KgpIW1NLRpIQZ+dZs4KQSy8FBdI8T1EKjXC4KZMRa8rm5uvVueR2ivC1co14Njrz8/GDoItFro5RrAem54+NGuTv/LVzMQVj6gJxKXgaYmqQlRnMLGcsdhOY7Ckmu9sK+cDU7ua80uzNJFyo689EJjY18xngE2ZFMp3A5PrnQBH312/e+szkiI//g9sXrvRW/J+26SgmkA3gS9x03UQXTdsYhet4BngF/OovbQgNiYJsqV9ZMA/ZpWeebtq/3jGYL8zPP+11/rw3s2LJS7mZtjJS4DUqstBvCWqxMCVdCuDpV+/1acWVjnLVECbABrO8IekUsykt6h7t6fBqoTph8iV6VxUimAAc9dtIhbjMR87orAYA8o/Ylbl9VdNSpzWYCeE5P7+7HiQiB3rG32cxI24kEjHogjV0L+Sa2R/Q5oSXl00k8kjhp6r7vijlHxBtJ0vYDkiGx0WJUmWq5N40+dEQ1/9IS35e4NMrnK6MKFdEYXLDUQXW9sCyV9pP8r4FxatZ4aEesCEqMJfyWAPlCgpipx5V0b6KAgqEAh+Mz3/H85IfCeDYvk7cWCng1m7sZfvF7gbWsdoLurgwPoUN0hsGpzegBY2xJKHVeN4nPODkLr+Qx417C1d3DTsoQQR3Yt9f9yov6crt/LBfQbpMQNp/pR3VQLtDguw/BFR2HNHhQ2NDmSODakFJ7pscta+ueaavH8eLz2S8O0tMaXewpJd/fO3zkmmv/L09j2vu2EhoilM/4wMBCqleje1UavJ71w9beTiu/Zlxb1Q0BNQikOETUoeIN1Nd6QjrCyMWv+7WeXivGusB4fZBWE52UXNtBQnadPFQmPTm3qTDT86RNq93BArQuKlPQMej62tgP37QLqfBHp4nF1hkzkiUGcImjgN3NfOPo7A/78AFCVDFUa15+fD/B8rVRIJ8n/xM5V4vx0AXu8dmYd9ES0UErcxQQrndBwRWJ1k69ZhGM17dCfzue53Bf7ghq8DsNxOPDPvZrFi28tEP4eGKBFqkq+heeJXfJdslg0GSTwzWOi+e/2Y9s7ryfUjkkeLNzFlwZoZGnSe33XUuqPKMBGv+ermFaQFKqt2ku2pLJqeFE9dQek02C19BxRwBC7Ug3BTAejTOCM+6G9UTSsbMLC5Y3oeOaM53/kEXibOySaQ9UvlMLjqDcW9L4A/uIuYEFNCAkrvaNRYMCzy9S86tHLwCoTYbD6O9+nezg8YVHDKODd3okkvFkdwpuxh1U+8YaV1Q/Oe9C7PHb7shwe5yBRZ73U0VF7WJfiJab1shfFqQJgwe5OE3YbssdlUOLydW3+/vY6cTbeoZeJmkVa3uERmrTOmyfQZLyPePSYaP77A9j2rk2E6hJAz/mnpy6Jng9fT4cSSSjrxbGhf36mpCfaBNCaBVRzEt2+oEEGEAt49o5w0kqLoTEz0NldKTyVWNvmt69rxcqEhyp2a/6HJ4Hn2d5pI1SL0kDP/fvJO4G2OuFEVsMeYwmf43unkI6xdZFDQYjr8HFvTgz5OR6l8Lfn0kf8B/bsmXlm56xK+hTR+gSToeRo4jVLPk5fW63Zf2FvWMDzOv5a72hQJQfEVsI7tN5j/eGqsK7FHyGJn3Y047jr4WFPUf8wdkhPbrSAjyaOkahW2n/7iGj+7Culg54F5Lkrgl44rQZ/5Xp6rb3Oy4BVHaf9Koi2wQAtDWwcw0vXJeW5AFDso2d17komDJSxlOfnrKryq3Z3qk21VWBnocer3188Axy6DKxfQGio1r72kiQ99/Ff3gksqA0h4XJn8vFrzvQBS5pNME2FUWvP45VirITPKavgqELu+ClSh4iSn9+9UvTOtLSfNdDrBOUsdnge1ue6C0Nq7wETMXQIgDo405UCooylmIfFlfT8mWvDsP+ZqQOCkJbSP7hiAQ66wL+cpi1Q2JaVMqLOW8pAFLAC8PjxyYHeDiAncv/kpK4rk63xVVRvkgHhCySCAD4bfvx3oMD83NBjaAxK2w5/2VLt1fqe8vm3y6nQD879tKadIjtnMqD/iz3Agjphgkgx6W6ED0/ijAmQ8STlYzALDKaBtlpAOIhywW6JaFaI8XtwHCOpJzr76cTFgLwH7lg+82mKswb6n/ZSy3IfdzTWaR/8GP1dswBdgBuvDbMCNa3XAbzuyDyqCUsfPo3JYnwEhBGC/9y6ttFkjsuXqZlq8JZAyVpX+to2reHJoP/cq6VL+lxpZvRrC2SDbAtuazhyIMjSERgs2s9uVzLztw4WOT547hJ9Hn8XRlVLlvSf2MPGZ8gcyyfdrUrSNwIkPKCO7QYFnBgAFteFdkc0Od0Xj3l3+DnZ2OWAlXb9ahtCDSmfPv+m5dUvzWdJv+i1Xk5ukILdj+wEsDo8dy4PHDMUGbBafzcZS0wIs4cbOIqrJTatj8P8PEmsERlIDGdTg09uW9kSLaNn+umdRLIl8gYZFcn1tHz3uGh+YIqgdxER6bRBKN018O0kCJO8w+/4s+Nfj4xSc66eINZYnRbQ504wK5nt8/Jk7GX/vBeC/FRfSDYzRWT1K45RZ8w78Hj1DId8Ip4k7jWKaEBJ9cAda2eejzNrkp7rM2akvJN1bga39YjogqQG9KzOsDHKnBem9bJfvlFTn8IjLt31JDC6MrfL6g3zZqy6oiWgvtLvUoSnb1gsdHG8bxyh5Wsa5G6l4DGrskYnfRiPiWnvu6dE8z/Nc9D/1ztCg1kD15HOIXNytN85MYalM48PHxyVZrUmDnbmCfVlwuCVpk1wEZ/GUPfXXHw7jjr7hC6QSHz+jlUzv5vKbIJ+bUbKN1jwckey12aEiVXskmwNwc9gH5LhZ/bf19eOgj0u3S3ouTNtLiu3o8+z0ltzzyWU5x3fuSTB9V3U3r2UbF+Hnx0YlrX8HDYrinXVgZFwBdp3UTR/6/jU1Jtyl/T/92723ri8eDMBYiE+JsSxa5I9RotZyjO9wLwc/3Z5OPThs1HL84L7UxvpeaKy1o8voA4Jb54bsul0ehN8f0fUn9b/bL64MgJwEjQboamRsPM2tI8FPIPZgj8yPE02EWctseqk1SXHWmaviKaBKH//zStxkM3cc/103UggdygFndCpqbxhhQG9VDx1WjR/9cg1AHoWKo5gj/jzjrRn1etFdlm2h0KKbadUwFE2ZlyO2lwMcubY65XDXO/OHwt4fYLAs13P+Q9cjXzaWZP0aaJNSsodBRmOppMYgCzt+X8OSEXGkgGxdYNEfm9j8NkoZlXVKNErYjpaHRoY8rL+07euEV1n+qltKCVvIcICblqv3DZn1ID+y/Mc9PfvZpflKHdmVKHJjaxyBhdHXG0GmR4qR7dxge2qRq46Y9vWSVeeUALe9960Ujzk3nOmPs8a6FNE6ygjb41UlLj/xnVHcpBmKFR7OLRtdX7XkNXS2V4jgSP9YQK1PVi628MayizShOefTi/Dj98MyNd6sVVm5JasiCrmaT47H9eCpP/4bqCVbaaYOuO6TQcyoerCzMqIcFfA9z4R4O0KQAIZTwZ/c8famryV2aYb/LMG+uHh4aXKr+JKBNERj6zGA0Zs1Nb4oasrJ4JqpLtlMvKYHeOMJbNhQTQ5HNTbFUJyCFwFe+9cU/363r0vJETnlnsgEppjP2r4Aj+YpHrTngzQkqAxOYAaV0aPsN4bKzEjd6WTSeW6J7W30rgsmRaQw3k3bsxTgwJnhxNF0xC4uf/rdkMBNv0UjxGwWtM1GBq77HjIJ93j9b0j7k1sIkU0ZK3aUNedq5L/abrBXai9WQP94OBgB5I1XI9FHxbwbqBqjHfGUAtYGjFH22VEuoAfyYRVAur5HDuA9j5OorK9RvhI7z/rf+v3bxMjL3Sn1iGduNW9jj//8LRofrhE9aazOsCe5hTak7nht8kMbgwz4zbBQDs64OPhE9V45UqyKO6NC3o7IeP3vMKFq2AmRsz3bh9oIumeE7Cyol7RF+5cl/zxZPplMtfMGugHiBaKjHyLcczkDTZFUHFC9hy04kwmdm26BC6bHM3XHO8F2Oleb9xvUcUiuyLYCWDC+uwqP3DZf+2PbsYLrwDJwXPBmz0lFrnXPXVKNH+jRO/NL3f2oyMZl32TGabJXfPl41X42vHaSDjk49NbwpkFPa+iblpgJJQIOHQJuG7hqHcn/lRuOmAh/d29JuSwUR9R4r+8de3Vq4kza6DnDYCH0sEbJQld2CjSPOKRVSfjyBqrZ5i66gGcHWRVkMhHz/55k+nPxpZeRVzpHmM4ajVGanVoeF27/9zPrBdnfnSKlniQNxOhQdsKAJ6eBOh/rbMfC2YR9N84VYUvH63VXijdT3mSSFzQ/+lto356V3IzOFmtYRdkUhcbzFX7o2kd8727AI9TEsJJoVKAeOgta5I/nNy0ntxVswl6ry+Lm4SUm3L080i0mKCSQzizAGZ9nKsMtJud9aKsJCZosb9fAq06xJvLX8/HcLTXcmGnhU10/KXziWf/7M2Qz57B1kCOGrU/Oiuav1mipL+uNo23t6eYW3PVjzNDAp89XItXLhev3rigd0HKhmtfCljIxqvjk3fBbidCZKuYN86nzoyqTSolyNvnef6X9szQbi75On4WhmP0MXrS6esF/BsUZ2dalcORxON5ZziQxYYtG6tMNbZeFtY7+Tcu2eFw66OCSJHnxvrizb8cXaythurtHXr0I7c1X37ySUrQWvkOFaCRV5hnzonmb50s3U9f4ykdsh9dynI/6pQ9yy235T/Mi0eUA2vQGiPV8tqJ1TOl2cqhTRzuRqIlem/GQyrwQjpDEXx6vv5PbgulOR+uocl0bk6cqTJS3l0F4qqQNVzHGLSm0THuTIISRJeHgit//nPXLdRJ6jN9zCro+/poQUbI25Wnc2KjwwI47nt3jVX+zBW6sky7NQPFHc55mZzAwIcNLEUqkFWdnI0UNO9+CFhk6ApK0fkP3JD8Hl//4GFamEnJ2+s91L9wSTQ/NgnQ5x1AJ4GCiWHlwr1h0Gud3hys1tiKBxwkzAG7Pceg2A00jQG8mzAS5+aYia4gjnjwHrh73dhyh9M9CWYV9Pwyl0boLillZ16GY8z3HgcvT46zBrAc6ubkCi7YxKCPdHwjAV27ga+LJL6pUGzr2SgPadT53//gOtH93gfJ/4WN2FRdJbc+eVIseKa7dEk/l0D/sdscl6UB6vG+sLqbpWZM5J2JrxK29o3bD5GL1k4Y7bVk04u+8jPrk9+fbpDH25t10HenaP3AgNyV8OFplqUDSG2AxvzlehVwjF2WMJxYwqQ01suZdsBHjsvRGKv2e0tL4PbZyOPoLXN6+CLyfFKZ7JGGHcm99/K+UUTim69ndz573t/1r6dwQ6mZU3MN9K1RPTTg8kjIq6lzvtPvY6XzeL53g357So70N1RpzrNleyeiigsavJBI/J+/OsP6/ayDnsle1CnfU5eAb92RTCXmTCE3QBRxbFzVxCCK+R/MqNT1Vaya4pyn54nNqLLuT6Pncjqfrl1puOB6FSB/kGrwk/u2hNW3Pv5x8k7fgrsPXFLvns+g/9BWYDPzm5iGEYQJKqzuaI+NI5U17h3Aj2+shoNkpftwOiybyDYCq0/MyU84KBys9X/33uUT74M7ldVg1kHP9WfODGGryshtzGpkHZslPqfIccHUQU6P40RjrhzMtSVjdIX+kbCAKCdQr2sE6s2GBVaqa+KY7aEY4HncOAeVo7zcsJ5YfI7vE0ns+62bBe+9pI8lf0Ubly5Qvz+fQf/b20OKMOvvA2mu1gAsNQ4BI+BDQV8A8Po3R3+3RjVnSDHvnmkLujR4WIRWj2V8wgxfC6DnjjrWSyuFkrcGhKTLh2epy5FVVj/YI8N0YS2QDUXVBqS4fDUT0Xp5AzLju9egd1UjW/jUgJgnAqcSMp9Hg97WdDR2BAm/98owHrvfJCov/VvasKRJ/cF8Bv0f7Ar7mFfZgSzQmgzT+SZSZ1ywsxeMGZecKFLnhymB3FZjMpTq7GmzKtKYFULQ2eF04s/v3SKidMqpSPRC1866pOcHu0BUP3AJO6WQvH9rBEAXuK6kySmlYUQ6X3bFcO91tNYBvP5spJPLnmS6wpChK1jhxYPObZGADHz/2x/bGUYKrwXQ/8dbQ1WmezDUs7lQE6s5DOCoqKyTyhiJaRECmoHNgmjYVFhuqh4VKNHiYD6MAXxYCOShd25MfG+6NqAua9Dzwx26QKsDyFsCgURkqMb09zg/J9LVHcOW82q54zUFwaEv6JQ7c56pnaQniVuL3hrO2uftcS0WOv6x25JPX0ugb64FTvQCS7nevMmGsiqLJcK5YOK+4u9ZenLerI24xINU4/nv+VwhxDlC8NDPrq/S+Q0zIeFtm2Uh6e3DHOjKvlVK0eHWfYwkvMObyXFHOmoMg5wBz4aSzo01DUdZU8Ye4L85assVxBj0ehJYQ81sXBYu2f7lQOEH9+8Rg9eCpP9DlvRemBHV7Pjr7fjEpbPLsuRzcn53qzgUlu4RU9Ncm/VBX3nnxpmlJZQV6F/uHlycDWo4b1bHMO2SGGdTWrUnX3SVf2MqAhuo7Mmx7kmjBUX5stprY8hV1v/PP+oJYFYIIj+bVZn9n9hTfWiyoOf6TgykMR1tqvzqd3QisjYJnEGgk75NnEFHbi1/hp/RRFpJKb0xAktbSzPmv/vSHqQqLSL7B7eE7bBqwzsYusdEHpq4790VVmMmhGnYnTRR+0TDMkh//ue3NOyfKWlfVqBnT84L53CTUnKz7jSHKBbx3w0zkn+339nNg6PvzMYK2v/u7A9lvTNsWGw6QYsAACAASURBVOlZFY8LWHXIiRUI+CcSF/HcZ7uxqlRDdkV1Fu9sHw6X/SKPmOs7vCrvl6MN5vv53LDAFw7X4tUSqMW/sytc8Tp03eJYore5HU+o+OFSFqKEb6d0t3t+VAzZXJRzrU5IFySgupUK/vEXNteeLLLbSjqtrEDPT/706b4Fvqh/Q8B7MbkqjQN2G3iK6ApWOjuTxAadGNdJkzJoNz9mN2ctTwYDeivZ3fb4s1Z5BDKU8p/48kksKBX0H+nsR8sssiwfPlmFrx4rnmX5kRsBDk6xlM8n2ePzLw72iaS7XdUsQseoS7mu0Bd6hvzP/dsZ2Jeq7EDPHfKT07Q+yMhdKgHP6u8uX15LdKd8n/XO2MlgqbT8vVZjbO0bLluhgBEGPQex7M583KDdk9WZQFY1UuQ/9bVjqCsZ9Ev70eLPqE02roT7KoP+aPF8+p9bB+zQO3CNBX0h/d0arDmrTUzKa8eA02g+MlpOknhIwpNejf+/fn6d4A03pvUoS9DzGz5xMnuXkkIPgVvsdCLfe+SxcVyfzBK0pUNY129ibo7RjSyrwapI+m+H7RiWH/GHHzuOgwub1e+V4qdn9eYtrSNo8CmqCjCto5fHQLTS9vywwMMnavHsxeKpxb+zw5QAMQ/pAtWCegydwNW+Ys9jr7ETJi/Y3eUjtpsJCTosKPE30+23L1vQP7af6gd9eVdd9SgDMwJ8PLLquCLtKmA5PPy3raXD19vgiF0VooitLRLl8H24DQ5esRP1X4/7L3U0qd8pBfR8b86R7UjK0R3GzSDnqAZuFNPdnY8NVMd4tZ91E041NAtO69JNK+CVKz66R0rLkf3dXaMsSzeyGpf8+v4x70w+QNvnzLdy2DYiIeAC3k46okEi+tL7t1btnU5hUbag55d8cH9q45BM3NQ3ggQHnDgZOfLVmwQRq4JYiW2NVf7ebljM33EdHT6HXZn2cNUg7cGJJZjbstgJD3Ry0Ee/VG8qFfR5B6tMqcUW9IUAP8b3HpvAMaGdoyPFDdbIb28mT76UAz2xgUfevyXxzWsG9Pyi3zqY3hIIf1sQwOOdvXXCN4ezjc+dw96R1HZUIf5O++kNi5IlvJX03MFuZFZ/Nu3YycMqFW+raT0nZ0f8pv5AzWuWJYO+McaoLOh7Hw/wMc+MOxmsd4dPYYqC3i5UxXj8BuGcXON54uhQavhzv7a98eJ0Ab+sJb1eFonE117P7qTA22j99SxxmEKgJbGhB9sOsVFaOxGsYOe/2fhldyXXqrTg5kFg0LsBMe3lMT57nji6jN2QaO5X85tPzy5LvVuiBZ39ECV6WL0j/HeM9yX2ZSHvDPctF3LllZsByBQGd9M6I+GtxMmkSf3Vr2ytOXrNgJ5f9NuHqXpwBNszkKuhjEfHqC+uOqOBbSJWNnAVFXky3hmW3hyJ5Yq5FuxmQdBC3fL1dTum27nd7gHRPIT5Dfrf3mEo3bF0Qdf3PmZCcBAt9mU+sLOA4u85s62+Gnp7oLAu/SiUcw1epcdDCHbdJz/1S5unr2592Ut62yVfeOxCfaKj46YMyZVKgP+rEQIfALydQUBfGsrQ993I6ni+d71CMGWZc2ut8HLcl3rLeV15dHQFuDgsmkeuAdAz9yZSR5yJb9W8YqU7X8rceaaLc/FWpimzRLcbOcQDavw3qzNWn3R/DwL1qQ/dWKN3aJyOY86Anl/2cz+lFqjgVj/p3ez7+E1S6AhdjGJf74j6VGTUOpFVvi5SXxyPA6tHfD5z97VL1BZrNepSpP4Y1efSiGhOe/Nf0jPox/je87hGc3zvDqWCvV28vyyLcaYWs3BhGyzplPJ2AR2X7qOwN5NPKXYwXLugf/BB8sU2/BlIfUwSEtrLoGmvYn/XgPokd5NVT6zU1+BlY8mICFfn56JR9nD981Ylcolql0dEczDPQX/fDkendwREXLoz78dSjtnmYRcpJ52wusKThgGuBUoel0wE+FiyCV8xRvqH7M1sQiT/x/u2imtLp2dgPnJsZKVS1V/MStrNy6AkgmKWBhcPVWL/6V71yXy+d9bN7QqgJ4VBuQ1GccaVPXLcn249e86wyohmdQ2APvLeOH7zkMAWJt6zF6wuESaKpAmo5kpytva8k1XlaCqj6pJVJflfE4NwiUVRMCtnZRFnRSbzD7+8s37a9pidE+rNY6fofUGgPqMkWvSyahiGen+l8PNIQDgnlRjIKlxMBXR6KIXXe9J0Nu571+qOkygeeX/cdEHHgLW2Qf+IaFbJyak3YzrZcelpf7WdmEb6ad662YKHnzcIRrfj0WxKp1YOb2dv+8Ruba+TPiax59RHbwwpxVz248JQGJnmpHDefVwn0VNodzLQXSmeF6wxsR2dk+PODL/NUXdcwPN7Cnr82OWnv3H/nj2RvTxVvb6sQf+ji9SYGVF/G0j6YKjKiBDkGugEhVDS689G6vPv4UqgwXE5FYhnu4foyZ5BOp8jya2v3kRgXbJZRDG2kkkBfSOiWVSXBvoqT2FrXRZNPu/wHRuquJ4c32reoCECi4MOHZmNuLxO5QdtDYYAPTbo4cBlHxdTiaKLPb1nQ7hNZk5xKr4vqyvj+N7H8GZciR777BqrLuBzkkysAS0wrFTw1V+7qU4n8kzXUbag/9EZulWS+t9SYY2WZKYOo3LUGq3iKBFKOvd3ngy2bmM4CWgkEPvO9tOD3YN0Rkst04OaTWn0Ij0pnApr7J/nQ0d0M35zslqVtHnyntZh7GiM0tKna8yKaoeDdp87WoMnzlUXDfp/tz220cJERLE82326qmLO55g6U1C6O5NdEZ0YSfZ9+r4tiwaLeukiTypL0P/kAv17qdQnlQqNVQY3WSkfgdtIfCv5zb82CcMaubF/1ZW0eOzgJfXVkQBZLdEtMU2je7T2pZ0AlsDGoK8pEfS/vrQfzbPIsvzOmSS+eLhORz4tzUL3p5WkjgrFX310O9BsonkT+d41NmOqSF7Ax9SZfMYqX+faAPocASlk8MUPba97pkgsF31a2YF+30XakJHqkCSIUFqPqi72Mw8ad1II8Dy/GxUnHGD393CipCXOvNyN/35hkHRo243GugzL0G3Jyr6O5DbX1JYm6e9sHcb2WZL0rN49cLgG3zlTvKRn0DOXXoMujzpj1ZHJqjNx6R6nOLioFcCBY6+//vf337tl2isjlB3oD/TQ8rRUR6WiJEt3x1gN9ffo/1w93hZCjXT+nMkwygq0K0Gg0H+oB395rIdOxCkJoXT3cybDYBbNdSWCnnX67Y1pLK2OsSxdkRjX7eOGXRyAVkrH9WanHTbUn7uUxIFeH+eGitfpf8OAPh/g48aqvn0eZqSdGK53pmjpbt6JQL1S0mc/sqPmSNHiu4QTyw70/Ow/vRD8nPK8z0tFLaEkN0asIhCveznS25Hk1gtiVKC4azOaMIZNGSgM7uvCfz5xmc7mqjMhnS1MVAnTyxn0DSWC3o5DVKsntv5benBUV8ahEtsVx6oj1psTpVA6teYjlc6AkL07rNNru7aEqsUfYfXG1PR35prFd646E6Hb8b4Y0W3saT0r4oC32XBRo84k53M9eFkl6Gu/ui3xpBAzUxWhLEHPHfJiL62kLP2TVHR7CNaYmmK8N6M6fP7fRw1axy5wvD9ZiZ4nTuBPrwzRoC0NImUIdB9SG7wZ6TOnZ9KgHyOEypRazOmCXKsmNjdzKpoVK92dORHiO4/+n+OZMhoVkfrmR26qeaQEwV3yqWULen6TB4n8Nd3qTwj4T2zUjqouedScmIE75tw8BrA9ZyCD/d845IXBLbdIFOfXMvAzPgYVmpsbStPpC47GHAB9PnUm3/Y6blVi7j/PyPaC+nsB9Yy7xPO8x35lq/9N3tC6ZCSXcEFZg96+xwsX6FYF9b8VsGbUJx9K9jA4xT77UAXK69rM8enn8/oQjvT6f/fUCfwoR80xE6CqSmIk5Tc3zHPQf5iDU9Um2JWD2txNGlx8hTQQDvgpnajT4dSxH1PzMubitKtB6FtQj5z9evXj998/s4Dne84J0PODHrpIjYNK/a1U9MGxQSn6sQz83+QdeDkyHhCalJILSPirSal1ksQtiuh6vRt43NvDfv5w4PoeOuj94eUMRqJCrmZ0efyDa0DSM+i5NJ+L97zS3fQLk8sG06wGKm37MmXYRmptnR5XV4rNI/0TQVwGgn/98I21T5YgrKd06pwBvX3L5y/S+0iqz0hCi6UjkBCPvmmp9/bxeuLhE9QpMrgnUPRrKrITQqlvjcZTfeLh/++Q+LrkyeEYWJqnH6C5val09SbvOu0afMYhrlcq5pw7lAT9ExvdjtHqGrTcjKUk6H/teXwZ0xD43Yw+HeXaOn56266VuB/aBjQ5hqxBZaiTOwKAqRvdA0BDDdOFw2hzDresCP2dSZecyltVlXzolzfhAmbIaM2HiVkD/aPH5b+/Z7X/15OZsi+eG1kZ+NVfVIp2h4Er79HbJwC9e5+vvkq3KaK/kMRG8qgBnFXiygP7xXv7UmglQnXoTQiPVIDm1kmAvncYOHNl7FvGdWYrUfVEdjZE1pPBgshSFdwiqm6SuAvwUIzqa6P8VDOhQirAaLv2Wd64FLA7MprLRx/c2YiB69ZzEg6rQutbFRaY4lC2zcj/XkCdEeHi+mpGqe989Kars0u4OwKzBvrHjst9Qnj3v22V+PpkgM8041VvUn9EJN4rhfjkbYvFP5fUDpF48BB+XSr1PyShzrozA6Jf/9sX/e8ii5aUxNoEyVpG/lDgT0rSv3weOHVFoLMxXi+g8NPGQWNBacEaZTK5IHdWjxwPSwGgR1FZOzmMOLcrgivdo0liH9lJ5t66SOGu1aN6ciHAOyveEEDPQmWemM6811LGftZA//hJ+RmlcC8lvFvuWS5mJAhRTEd8+SBtIVKPKMIKvacqiUc/uI1VJRLL/jtqGqpQlxXYliGsXtykbimlGgIHif71kMDadsJ1HcU8Te7GxG79Sr7a1q90fd22jqUtyRH55a2XxKo4hnWp39FRmeyqErl2nRUgmhi23IhVc+zqQUBHPfC29WE0Ix/gHbDznrEXk1WJf1y2CRf3CDFtrMkiezY6bdZA/8TJ4IOS8ADBe1X54vZ7lrNBMzvHlw7REij1pFLYoAhZj7yOX9omet2nmUwBV66u9uRhgbddR+AthYo6XHemU7S1XEF/yxKF6xaZN8unzijF5SlfIKH2nr6hbv/9M+yOLKaPZw30jx2hRckqdU4SuP7XC0kl3rJntcij/RbzGlM/50sHaDk8xS7LFT68D3RsxlcaX4AYqEF1VTvq/p/nsOnQFfWLxUp6VpcePSTQVAXctoZysv3Hfdo5BHrmpr1xhcKK5vCNIjXM4w0WICHEaU/h2WDwyt4P33519ogtBgmzBnp+uKfOqCeUoj16aRXiFV+Kd9y1Rky6Ui2XCykmdL33HNXVpNEka1FLAZKo1q6EhX0Z3NY1qP5zbUK8srJZ6K0deWMCRfD2XYD/P/epZFGgJ+C1buD5UwL/5kYKt7Ap9phDoGd9/saOaDckTbcRoD4S4lwC6tFqv/r4dJfkK7YbxztvVkH/gzPyo4roMzYBRBF6yPM+cvcK8Y1SX+4f9tHHFNGfKaKHU8K77/duClcN3hnw3fdhra+wUhKqvQQ8IrSDsMwTWKAInP8f9UPPMG3sy2DzmpZcA/uli8CnX1QoBvS8pfyjBwW2dhI2m4KoRb/PHAE916y5e43SuwTyQaAuIfz92SB1uPlo/Sv33qu9vmV5zCro91+g+v5AnVaE1iiySoLF69elEn/89jXitWJ6jSX8516i70hFd2sSF+HCyhbv850NuMStQaBVEVrMhnYTvvOFYdq5uE7k1E8sFvScavfIKwLtDcDu1YSE3Q6lmBcJ0TPqEy9TnZ532Ny9XKmlTcgIj4YzWXzJE1WXTvWh225MV+zrzsZ5EwJgph/q6XP0XyWpP7b0ApswovMbSPyLVOJzqhZPvGuJGLbPQkTeS11oFwrLpY+ahIeWAxfVp0Yy2BgxKYVQbTVi38YFeCFK2pnCyxy4CPzNBJKeffLfPyJ0fZfd60hX8Cr5KHPQ876yd64CljZSf2td4jvJKhy8eRG6ZnqfqJL7cZwLZh30e89Re5rU6yzt82U7mUmQlkRPC4i9PuFKbZU3XO2hNeFhuRBIegJ09ArdOZShpTaYY9uq9kX3xgX0RGO11z+Vjtt/EfjrvQrvvD4/mHnXkx8dFjqpes8GQpsTsCnpvmUMeo68fnCrwKZ2TwfthEC/Ao6TxIVEEr0J4LXrFopzJb3vLJw866Dnd372vPwtSfg0S3up81tHOfQ5tOIYX75ASmAUtre/cw748ibvx6uaMOkqWbwj+V89B2xfJXX43R48ybgI6df3CV05YPdaQmt9bli+pHEtQ9CzysWVyT60TWBFU54NtNhBLxAIYET4GCHCWSJ8oz+NvjcsQ1bMok8+X9+XBeiJyH+um56UknZHtIBQv9G5sVH2VJxXH6uCMJZ3bxLHTXWEphpxdMtC8cMqLyp/UzQemSbw+EmFQ/2ENe3hZRwYOtcLPHtCoLMZ2LGcwm19pnKUGeh507XblwG3Lxdo5sq3JRxCIFASvOv6fvJxuaUNJ5YLMVJCEzNyalmA/lA/bcymcM+wUp+QCrV51RzOmnJLgMQSwkcpxSZyWeB3z8PgdW3eEwvrcKGUHs1klS7d/WI3cEnyTtqEp48KHO0BVrcBt0/GaM33AGUE+uWNwC1LBbZ3elOm4woB9qadEEDXgMLTs2kHzAroDx+m6lQTWnwPO4XA7Z6HBiIkJaFjMFDvsPmxY2jAmi/v5saOTQp3wW8nT5gsYs4NPSK0tFE8t6ldTLhtI7eXlkpzxjWnhcnfCjibJpzSBZEEkj7llrArZTbFzzVMSf5aUwTMB83zt79ZPo0tfcLnmYpsllZgdwGkwFQVNtY8szE1DcFwBizD1P2OyWR3rwY2twskE6H+Pl0HDwNvXgdCSgAPpRM4cugMhq6mP/+qgv7YIHVQgK2ksFZ5uIF0qYHcIyB0DgXqbqmoKvTfO8kirvSOwJ+bJphTDMqoRvGVw3JYdi3xHmyp0RIo/8HJEWafVj7BZSvy38wn11FIB4RRQwUYhvb3iKfiEsXsj8619rwcokqMr6z5NoVfoeDruVx5e9KCGqC9DqguZR/QKcwIIZBWhH2+h6OBj5c3NYmeKTRX1KUzDnrW109cwfJA4S0esJQEFjuM3bwPGQCtA1li7nuj5czH9fWcdMACtXDGO4d3r7tlqfflxioMFeoplvAuY9FKXw0w1w/qgDQCn8Mpj74bkzg9euccqrGDYMMPy/uI3CfuZCxqxMc5iQuvLmnyiqdMTPWGzvVcqJUELgjg3GAaX/naZzAyU1lUMwb6wz3UlEhiSZDG+30f7RwYMqUQi+oqRagalHRbShKTwJwKCGPr2ISGrjVa8//OK4Y06YSeJ1LrWsSTSxtwutDDBBRmA7mS3IrTnHotBnUR78RpMOdaM2PGXGtL9JnrotUkj9SPAB4T6+6f8QlW7KTwBbCsyUNixhBR1LCHVAaBwPPwjA886zfh3BIxGqMprpXxz5r2VzxNVJvtxU7h4Xoo3DCRVJ/oJVKKOgcD3JyV1KHVUZvplKf+TY4O75b5c9Sc2qQ4e12reKohWVjCS2fdzwGzpevGAJkDZOeP8a7NqQ5g2rOS264oOYCN3ztO8411ZM68GEf94ctYZ+dEkKaqqRusE41nSb8LcFHpl+DhwJom7C2GV1VM+9MG+pdfpqqG1djiS9ylCMtAqJlOCygj0TGQpU2pLK0KiKpC/jjXwMlTHsTNgzWuTwhPLqoVe9cuwPjGq7b0HMZgXHJbgPK/ZksZ9/yca2PiP1Jh8uzXZFcRa4i6gzdGkjsTy6YXxgd7zMqTZ9LYa9gH397g5W77WQx6rtI5AhgkhdcpwA9WtuGIEGJKBUKnDPqXiapaBrADhFsArCdCYjrBnqdfvaEMOkYULc5ILMgoNEqJmiyhTkpK5PP4+J64srZJPNFSi0uFxonLwFovhes1sSDOKWUXU0X0OY40zZH8LtgcPd9ZLMKPMWlsVat4Cb0c6W8mp6vS5MvPsmpW/J58btIDltR7SDChpowPnVNLUL6HV7NpfPfSCRzZuXNy4J8S6I8P0uIqiTd7HnbzziCz2WfH+9XbR7JYrlUgx7BtrBKvrm0Wz3je6H5g8efkWi16d7s8npRIYsb0aFeijznH9bW7EySfihJr17oSx6w241ybz8ZwAR6fCO4tF9XxpgrT6ZSceRR4Apeg8IpswtcnE+yaFOgvENWLIbwRwFtA4OzPWe81Bv1wgOW65J8mViLVWe/9YFEtTow3DMJTerbmqB55AJ6jbuSR6jnSNOaujHtgXN3dtuv643NUnBhi9aR2JlLOo+axOcbc27lhaxXQWjfrQzepWaIlv0I3bzXc04R9W4QoutBryaDvukJrvSq8WxE2TOppZ+iik/10z1CWVjCgqn1xdnmjeKomUdhY5cdI8PQwYz5GLcgDoDHS13mXgkaorSIwRp8Zuw+rXWlyiOixCZRT3cDty0LqlfPQdmJqtSYBdNTxdjpzE/T21T329nh42qvBUwuEOFUMvIoGPfvbe7LYISTuBsBsxqKvLeZBpnpO1xBtuZLGTU3V2N9ZL16aqD0uUDTecBcS9hEgnXo18XvFg0VxGyGO/7jx6uroFrN2JRijVsUeNN+qEk1oe64HcBCqbsyWIxP1Wnn+zsAnwolA4ZGOerw8kZenKOASUc2VFP4NCDtJYKqUqlnvOV1vUUysk+V4TfJZiLEKAGPA7DQQd2u6KkoEZFd3KeBB4nP1fHM9OE6P6qJPeVYVd7Kwt6aldm5L+DEgEpyqiGxK4YuLa/HieMzOCUHfT9ROabyfCNfPpTKA+WdWaLBO+NKOzjymnTx++DjG4uH9fN6TqJkCPvScujROWQ57r3zXu5M0Xzk+Vo2qEwAngvg5+13OuhyavgfgwJbA40jjh00FKA3jjj8R1Q5k8NsgrJ2+p5qtlvJsdjbZR8mj+2i1osBqED/dNVrdwk0uoPOtMoXqSrqTqpDRzN/zYDPgq+e4Hj/RsFG4c+qhTDW+sFCIgfj5BUE/MEALkcT7PQ+by01/n+il479rl2SpF5Vwvuv5iTO/4iDM5xbN0VbiPB7TeD63ZI5kN/pL9Cx5VKuaBNBYIie+hG4ot1PJFzicGcL/29KSW8MoL+i7u6mhrhW/4Qts4Eq/5fY2pT1POPozCfr480R4i3uAYpHYeEDK1bsLVgvOw+i0K0wh9YbbZVf8NQT4SOP0gL01SXxdiNFiYnkBPThId/k1uLc0cJXr2bMza11jcow2lId27Ep7fX4BXT8q9Gq6e0xJbPt9LNDGyeq1cywINR2IIoUAAv9clxQ/tu2NAX2KaAMCfBQC9dNx09lro5DTcfaeKJ9XJZ86kqPuFABxdE6eeELcM1SVAGp9b+wGzrPXFVf3zoRhSuDTtUIc4xvngJ6IVmcUPkDAsqv7VNN8t3zZEdN8i6k2V8itGKk4eaK6+p55qBL2mjF6v0F/Q7WnK7Vdwwd5wGtJD59mV2bUFVxLRkq8GwJvm8uuSb2fXQEvSrkOeqE1qdDKECe/2fPyqUWs0nByyDV/MDvFx7d84NtRd4yM0MqqKvwHwlwOPpWfSlM02Aro8GM8NLZBdyVwTuKPdhJwLqZO+6uA3i6Sp9Mj+AdX0n9UKdw4d6V8mOk03474NHZjAXlXAnMBx544wVtcVb9V+fe+5+GzGvREtBTA7wJw9oYr/xdwn1Cp+Qn6MaMQm9k5MQLn5KTwpq9Cw9yCwkRPm7GgvwfAz+r9gufYwWC/1o58K5q7AjDVYt7SDKZhsAWzJwG8F8CeaWhvXjaRM60mnGMTnjBtfZRXnePs+4qUH7ePGfQtAH4FwKZpG41KQzPWA/Fob3ij3InmzVcy2TT1KoN+OYD7mIs0TW1Wmqn0QFn3AIN+PYDfv8r0lLLulMrDze8eYNCvA/B7OnuuclR64BroAQY9Uw5+E0DbNfC+lVes9AAY9A0APgDgpkp/VHrgWugBBj1TzX9Bl/OoHJUeuAZ6wAan7gLw8xW9/hoY8corhlQkIuI9n/8EAPvsK0elB+ZzD3S7hLNfBXBzxXU5n8e78m4A/s4FPUv5jwOY7GaQlR6t9EC598DLAL7ggp4/W+LZ1cyjLveOqjzf/OiBNIAvCiGej6cL8tY4vwhg4/x4z8pbVHpA9wBz87jU49/npAvaziEiDlIxt35RpcMqPTBPeuAigE8JEda/yZtIRkScQfVBYK5XRJgnQ1Z5jan0AO8r9k9CiKhkeyHQJwG8E8CbATibwk/l3pVrKz1w1XugH8A/CCFed+9cMGXYJJcw6DmjqgL8qz5elRtOsQd4q6V/FKbWTVGg19o/70sPvB3AHZXA1RSHoHL51ewBVmm+IoQ4nO+mExaHICKuR89lupmmUDFur+bQVe5Vag+wl4ZVmr8WQpwtdPGEoHe8Ohy8+g0Aq+ZiAnmpvVc5f871APvhOfj0L0KIrvGevmjQG3WHOTpMTmNdv3rOdUvlgedrDzDgHwbwnBBiZKKXLAn0BvhcPYF5OrwbOHt5Sm5jooeq/F7pgSJ7gNUZ3oCBAf+Difaasm1OGrBEtA3AWwGsqVCSixyiymnT2QMM+L0AnsjnoZk29SbeEBG1A7oU4P9RAf50jmelrQl64AKAH/H/xagz8bYmLekdA5fb4JTDdwHYaViaU263MuyVHoj1ABf3GQKwH8CDrNYUq85MO+jdBomIN2S71Uj/OVsXswK3suuBHgDPANgnhGAf/JSOaZfIvCOhYWnuMOCvGLtTGqJr9mKW7MMAngdwAMDByUr2GZX0ManPdXRY2r8b4c4mHRW9/5oFcCkvzntD83b3PzXSfVgIEW3UXkpDhc6ddkmf70ZEyZkHzQAAAcRJREFUxIBnbw9XU9taSUmcjqGbd21kjb5+3BioqZl6w6sCesfoZcnPiSrbTT4uUxx4RbiqzzFTnVlpt6QesD52Bjfv/MfR1C4hxGBJrUzi5FkBm6m1wxFd5vRcB2C1mQyV0oKTGMQ5dgkHk1iac2LHT8xnJYS4ajXOZwX0Md2fn4FBz9WTWQ3ajTm979Ucg+DVe1z2wHDK3hkAzG+/OF2GaamvMOugz2P8NhrQc9U1NoBZBeI9bSvJ6qWO7uycz2oLS21mO/K/+wB8HwBzYtgoZUN1Vo+yAn0BI3gJAHZ/MvBXmP/ZDVo5yqsHWDfnlDyW5KyX//Bq6OeT6YKyB71jBLOk5wnQaaK+bA9w1YZKVtdkRn56rhkA8Br70I0kPyeEYIpAWR9zBvTxXiQilvbM+GT1h12hTHfmSg48OXgi8P9z9v3KCDWsrnCQiOm7rK6wJGdvC285z6pKUA4qSyn9Ne9AQURcoY3pEJzswt4gnhi8IrChPO/et5TBLvJcGxw6YkDOQH+FA0ZCCPa8zPlj3oPA5PlymiMnwPDBK8EGQ5FgliivFPO+H/IglSU4S2/OMmLXIafXWSP0ihCCE6vn5fH/AynvqKbJosiLAAAAAElFTkSuQmCC",re=x(3113),S=({createState:m,refreshLoading:I,onRefresh:g=()=>{},onCreate:$=()=>{}})=>ve.createElement("div",{className:ue.sendToClass},m?ve.createElement(ve.Fragment,null,ve.createElement("img",{src:T,alt:"\u7A7A"}),ve.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"),ve.createElement(re.ZP,{onClick:$,type:"primary",ghost:!0},"\u7ACB\u5373\u521B\u5EFA")):ve.createElement(ve.Fragment,null,ve.createElement("img",{src:De,alt:"\u7A7A"}),ve.createElement("div",null,"\u5DF2\u521B\u5EFA\u6559\u5B66\u8BFE\u5802\uFF1F\u8BF7\u5237\u65B0\u5217\u8868"),ve.createElement(re.ZP,{loading:I,onClick:g,type:"primary",ghost:!0},"\u7ACB\u5373\u5237\u65B0")))},6681:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(59301),ue={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"},T=x(43418),De="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",re="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=(I,g,$)=>new Promise((_,F)=>{var P=Y=>{try{M($.next(Y))}catch(Q){F(Q)}},U=Y=>{try{M($.throw(Y))}catch(Q){F(Q)}},M=Y=>Y.done?_(Y.value):Promise.resolve(Y.value).then(P,U);M(($=$.apply(I,g)).next())}),m=({type:I,resdata:g,onok:$,oktext:_,okloading:F})=>{const[P,U]=(0,ve.useState)(!1),{can_copy_list:M,can_copy_num:Y,challenge_type:Q,course_data_list:ae,no_copy_list:ie,no_copy_num:J,no_use_list:G,no_use_num:j,repeat_shixun_num:se,student_count:he,total_num:Ne,use_num:Be}=g;let Pe=Y>0||I==="exercise";(0,ve.useEffect)(()=>{(g==null?void 0:g.student_count)>0&&U(!0)},[g]),console.log("---11",F),(0,ve.useEffect)(()=>{F||U(!1)},[F]);const q=()=>{if(I==="exercise"&&Q===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:ue.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(I==="exercise"&&Q===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:ue.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ve.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(I==="shixun"&&Q===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(I==="shixun"&&Q===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ue.orangeColor},he),"\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",ve.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(I==="subject"&&Q===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:ue.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(I==="subject"&&Q===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ve.createElement("span",{className:ue.orangeColor},he)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ve.createElement("span",{className:ue.orangeColor},Be)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ve.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(I==="exercisepush")return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ve.createElement("span",{className:ue.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ve.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(I==="shixunpush"&&Q===1)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ve.createElement("span",{className:ue.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(I==="shixunpush"&&Q===2)return ve.createElement(ve.Fragment,null,"\u8BFE\u5802\u5185\u6709",ve.createElement("span",{className:ue.orangeColor},he),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ve.createElement("span",{className:ue.orangeColor},Be),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ve.createElement("span",{className:ue.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Ae=()=>{if(I==="exercise"||I==="subject"||I==="exercisepush"||I==="shixunpush")return ve.createElement("div",{style:{marginTop:20}},J>0&&ve.createElement("div",null,ve.createElement("span",{className:ue.flex},ve.createElement("img",{src:re,style:{width:14}}),ve.createElement("span",{className:ue.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ve.createElement("div",{className:ue.statusbody},I==="exercise"&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ve.createElement("span",{className:ue.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(I==="subject"||I==="exercisepush")&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Pe&&ve.createElement("span",{className:ue.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),I==="shixunpush"&&ve.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",Pe&&ve.createElement("span",{className:ue.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"),ve.createElement("div",null,ie==null?void 0:ie.map((D,Je)=>ve.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.name,"\u300B",Je+1!==J&&"\u3001"))))),Y>0&&ve.createElement("div",{style:{marginTop:20}},ve.createElement("span",{className:ue.flex},ve.createElement("img",{src:De,style:{width:14}}),ve.createElement("span",{className:ue.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ve.createElement("div",{className:ue.statusbody},I==="exercise"&&ve.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(I==="subject"||I==="exercisepush")&&ve.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),I==="shixunpush"&&ve.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"),ve.createElement("div",null,M==null?void 0:M.map((D,Je)=>ve.createElement("a",{href:`/shixuns/${D.identifier}/challenges`,target:"_blank"},"\u300A",D==null?void 0:D.name,"\u300B",Je+1!==Y&&"\u3001"))))));if(I==="shixun")return ve.createElement("div",{style:{marginTop:20}},Y>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return ve.createElement(T.default,{open:P,onCancel:()=>{U(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!Pe&&"none"}},zIndex:1003,confirmLoading:F,okText:Pe?_:"\u6211\u77E5\u9053\u4E86",onOk:()=>W(void 0,null,function*(){Pe?yield $([...M,...G]):U(!1)})},ve.createElement("div",{style:{maxHeight:600,overflow:"auto"}},q(),Ae()))}},94243:function(dn,Ut,x){"use strict";x.d(Ut,{B:function(){return I},F:function(){return m}});var ve=x(44164),ue=x.n(ve),T=x(86129),De=x.n(T),re=(g,$,_)=>new Promise((F,P)=>{var U=Q=>{try{Y(_.next(Q))}catch(ae){P(ae)}},M=Q=>{try{Y(_.throw(Q))}catch(ae){P(ae)}},Y=Q=>Q.done?F(Q.value):Promise.resolve(Q.value).then(U,M);Y((_=_.apply(g,$)).next())});const W=()=>{document.body.scrollIntoView()},S=()=>{document.querySelectorAll("canvas").forEach(g=>{(!g.clientWidth||!g.clientHeight)&&g.remove()})},m=(g,$)=>re(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=ue()();for(let U=0;U<g.length;U++)yield F.set(_).from(g[U]).toContainer().toCanvas().toPdf().get("pdf").then(M=>re(void 0,null,function*(){U<g.length-1&&(yield M.addPage())}));const P=new(De());P.file(`${$}.pdf`,F.output("blob"),{base64:!1}),P.generateAsync({type:"blob"}).then(function(U){const M=document.createElement("a");M.href=window.URL.createObjectURL(U),M.download=`${$}.zip`,document.body.appendChild(M);const Y=new MouseEvent("click");M.dispatchEvent(Y),document.body.removeChild(M)})}),I=(g,$)=>re(void 0,null,function*(){W(),S();const _={margin:[0,0],html2canvas:{useCORS:!0,letterRendering:!0},jsPDF:{unit:"mm",format:"a4",orientation:"landscape"}};let F=ue()();for(let P=0;P<g.length;P++)yield F.set(_).from(g[P]).toContainer().toCanvas().toPdf().get("pdf").then(U=>re(void 0,null,function*(){P<g.length-1&&(yield U.addPage())}));F.save(`${$}.pdf`)})},80291:function(dn,Ut,x){"use strict";x.r(Ut),x.d(Ut,{default:function(){return We}});var ve=x(59301),ue=x(76560),T=x(92832),De=x(8591),re=x(1710),W=x(6848),S=x(95237),m=x(43604),I=x(5112),g=x(28103),$=x(71418),_=x(66104),F=x(3113),P=x(38854),U=x(43418),M={flex_box_center:"flex_box_center___maKAy",flex_space_between:"flex_space_between___vD_VZ",flex_box_vertical_center:"flex_box_vertical_center___kwkiV",flex_box_center_end:"flex_box_center_end___BdkbU",flex_box_column:"flex_box_column___meEQB",bg:"bg___vBzoO",wrap:"wrap___rrSkg",programTitle:"programTitle___kPWjL",btnWrapper:"btnWrapper___F_tyj",btn:"btn___ToWSe",titleForExport:"titleForExport___lhBnq",flexRow:"flexRow___cvXQo",flexColumn:"flexColumn___cTDFf",flexJustifyBetween:"flexJustifyBetween___vy_7r",relative:"relative____B_F8",questionNumber:"questionNumber___V4g28",score:"score___dNKpj",selectTopicButton:"selectTopicButton___NO9DO",line:"line___j553x",dragTip:"dragTip___AaESI",typeActive:"typeActive___dLHVW",mouseTypeActive:"mouseTypeActive___N_Yv8",typeName:"typeName___bdcw3",typeNumber:"typeNumber___B6Fic",typeAction:"typeAction___O3dpz",setScore:"setScore___GA5cK",delete:"delete___O2OvN",modal:"modal___0ENtb",table:"table___ZRr4b",glassSeal:"glassSeal___C7Vpa",export_type_modal:"export_type_modal___ldAtg",export_type_modal_con:"export_type_modal_con___Y9iST",type_item:"type_item___cWirW",img_warp:"img_warp___G7xtB",img_warp_active:"img_warp_active___rw33a",divname:"divname___RLHHc"},Y=x(59014),Q=x(94243),ae=x(47580),ie=x(22688),J=x(30975),G=x(49661),j=x(72664),se=x(7664),he=x(24334),Ne=x(16837),Be=x(65986),Pe=x(64885),q=x(82093),Ae=x(59301),D=Object.defineProperty,Je=Object.getOwnPropertySymbols,Fe=Object.prototype.hasOwnProperty,Ce=Object.prototype.propertyIsEnumerable,Ue=(et,_t,Ot)=>_t in et?D(et,_t,{enumerable:!0,configurable:!0,writable:!0,value:Ot}):et[_t]=Ot,me=(et,_t)=>{for(var Ot in _t||(_t={}))Fe.call(_t,Ot)&&Ue(et,Ot,_t[Ot]);if(Je)for(var Ot of Je(_t))Ce.call(_t,Ot)&&Ue(et,Ot,_t[Ot]);return et},Me=(et,_t,Ot)=>new Promise((Pt,cr)=>{var nr=k=>{try{sr(Ot.next(k))}catch(Xe){cr(Xe)}},br=k=>{try{sr(Ot.throw(k))}catch(Xe){cr(Xe)}},sr=k=>k.done?Pt(k.value):Promise.resolve(k.value).then(nr,br);sr((Ot=Ot.apply(et,_t)).next())});const{TextArea:fe}=T.default,Ee={0:"\u5355\u9009\u9898",1:"\u591A\u9009\u9898",2:"\u5224\u65AD\u9898",3:"\u586B\u7A7A\u9898",4:"\u7B80\u7B54\u9898"},rt=["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"],ot=({newExercisePaper:et,isExportBlank:_t=!1,paperlibrary:Ot,user:Pt,globalSetting:cr,loading:nr,dispatch:br})=>{var sr,k,Xe,N,b,f,C,ee,Se,H,ne,Qe,we;const ye=(0,ue.useLocation)(),je=(0,ue.useParams)(),[mt]=(0,ue.useSearchParams)(),[ge,st]=(0,ve.useState)(),ze=(0,ve.useRef)(),[Ie,Le]=(0,ve.useState)(),[ct,Tt]=(0,ve.useState)(),[Mt,Yt]=(0,ve.useState)([]),[_r,Sr]=(0,ve.useState)(!1),[Lr,Er]=(0,ve.useState)(""),[Ar,ar]=(0,ve.useState)(!1),[Rr,fn]=(0,ve.useState)(!1),En=mt.get("isIntelligentAssistant");(0,ve.useEffect)(()=>(br({type:"globalSetting/footerToggle",payload:!1}),()=>{br({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,ve.useEffect)(()=>{ze.current=je==null?void 0:je.id,st(mt.get("defaultActiveKey")||"0"),Or(),Rn(),gn()},[je==null?void 0:je.id]),(0,ve.useEffect)(()=>{var be;if((be=et.exerciseExportHeadData)!=null&&be.title){const Oe=et.exerciseExportHeadData;Le(me({},Oe||{}));const{table:ke}=Oe||{};let qe,Rt;(ke!=null&&ke.total_singles_scores||ke!=null&&ke.total_doubles_scores||ke!=null&&ke.total_nulls_scores||ke!=null&&ke.total_judges_scores||ke!=null&&ke.total_pros_scores||ke!=null&&ke.total_shixuns_scores||ke!=null&&ke.total_mains_scores||ke!=null&&ke.total_combination_scores||ke!=null&&ke.total_bpros_scores)&&(qe=Number(ke==null?void 0:ke.total_singles_scores)+Number(ke==null?void 0:ke.total_doubles_scores)+Number(ke==null?void 0:ke.total_nulls_scores)+Number(ke==null?void 0:ke.total_judges_scores)+Number(ke==null?void 0:ke.total_pros_scores)+Number(ke==null?void 0:ke.total_shixuns_scores)+Number(ke==null?void 0:ke.total_mains_scores)+Number(ke==null?void 0:ke.total_combination_scores)+Number(ke==null?void 0:ke.total_bpros_scores)),(ke!=null&&ke.singles_scores||ke!=null&&ke.doubles_scores||ke!=null&&ke.nulls_scores||ke!=null&&ke.judges_scores||ke!=null&&ke.pros_scores||ke!=null&&ke.bpros_scores||ke!=null&&ke.shixuns_scores||ke!=null&&ke.mains_scores||ke!=null&&ke.combination_scores)&&(Rt=Number(ke==null?void 0:ke.singles_scores)+Number(ke==null?void 0:ke.doubles_scores)+Number(ke==null?void 0:ke.nulls_scores)+Number(ke==null?void 0:ke.judges_scores)+Number(ke==null?void 0:ke.pros_scores)+Number(ke==null?void 0:ke.bpros_scores)+Number(ke==null?void 0:ke.shixuns_scores)+Number(ke==null?void 0:ke.mains_scores)+Number(ke==null?void 0:ke.combination_scores));const kt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:ke==null?void 0:ke.total_singles_scores,doubles_score:ke==null?void 0:ke.total_doubles_scores,nulls_score:ke==null?void 0:ke.total_nulls_scores,judges_score:ke==null?void 0:ke.total_judges_scores,pros_score:ke==null?void 0:ke.total_pros_scores,bpros_score:ke==null?void 0:ke.total_bpros_scores,shixuns_score:ke==null?void 0:ke.total_shixuns_scores,mains_score:ke==null?void 0:ke.total_mains_scores,combinations_score:ke==null?void 0:ke.total_combination_scores,total_score:qe},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:ke==null?void 0:ke.singles_scores,doubles_score:ke==null?void 0:ke.doubles_scores,nulls_score:ke==null?void 0:ke.nulls_scores,judges_score:ke==null?void 0:ke.judges_scores,pros_score:ke==null?void 0:ke.pros_scores,bpros_score:ke==null?void 0:ke.bpros_scores,shixuns_score:ke==null?void 0:ke.shixuns_scores,mains_score:ke==null?void 0:ke.mains_scores,combinations_score:ke==null?void 0:ke.combination_scores,total_score:Rt},{key:"3",name:"\u8BC4\u5377\u4EBA"}],yr=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:ke==null?void 0:ke.total_singles_scores,doubles_score:ke==null?void 0:ke.total_doubles_scores,nulls_score:ke==null?void 0:ke.total_nulls_scores,judges_score:ke==null?void 0:ke.total_judges_scores,pros_score:ke==null?void 0:ke.total_pros_scores,bpros_score:ke==null?void 0:ke.total_bpros_scores,shixuns_score:ke==null?void 0:ke.total_shixuns_scores,mains_score:ke==null?void 0:ke.total_mains_scores,combinations_score:ke==null?void 0:ke.combination_scores,total_score:qe},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}];Tt([..._t?yr:kt])}},[et.exerciseExportHeadData]);const gn=()=>Me(void 0,null,function*(){var be;const Oe=yield(0,ae.cV)({id:je.id});Oe.status==0&&Yt(Oe.data),yield Rn(),mt.get("exportPDF")&&((be=Ot.paperData)!=null&&be.questionList)&&(De.ZP.info("\u6B63\u5728\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377pdf"),(0,Q.F)(gi.current.children,"\u5BFC\u51FA\u8BD5\u5377"))}),Rn=()=>Me(void 0,null,function*(){const be=yield(0,ae.Dq)(je.id);Le(be||{});const{table:Oe}=be||{};let ke,qe;(Oe!=null&&Oe.total_singles_scores||Oe!=null&&Oe.total_doubles_scores||Oe!=null&&Oe.total_nulls_scores||Oe!=null&&Oe.total_judges_scores||Oe!=null&&Oe.total_pros_scores||Oe!=null&&Oe.total_shixuns_scores||Oe!=null&&Oe.total_mains_scores||Oe!=null&&Oe.total_combination_scores||Oe!=null&&Oe.total_bpros_scores)&&(ke=Number(Oe==null?void 0:Oe.total_singles_scores)+Number(Oe==null?void 0:Oe.total_doubles_scores)+Number(Oe==null?void 0:Oe.total_nulls_scores)+Number(Oe==null?void 0:Oe.total_judges_scores)+Number(Oe==null?void 0:Oe.total_pros_scores)+Number(Oe==null?void 0:Oe.total_shixuns_scores)+Number(Oe==null?void 0:Oe.total_mains_scores)+Number(Oe==null?void 0:Oe.total_combination_scores)+Number(Oe==null?void 0:Oe.total_bpros_scores)),(Oe!=null&&Oe.singles_scores||Oe!=null&&Oe.doubles_scores||Oe!=null&&Oe.nulls_scores||Oe!=null&&Oe.judges_scores||Oe!=null&&Oe.pros_scores||Oe!=null&&Oe.bpros_scores||Oe!=null&&Oe.shixuns_scores||Oe!=null&&Oe.mains_scores||Oe!=null&&Oe.combinations_score)&&(qe=Number(Oe==null?void 0:Oe.singles_scores)+Number(Oe==null?void 0:Oe.doubles_scores)+Number(Oe==null?void 0:Oe.nulls_scores)+Number(Oe==null?void 0:Oe.judges_scores)+Number(Oe==null?void 0:Oe.pros_scores)+Number(Oe==null?void 0:Oe.bpros_scores)+Number(Oe==null?void 0:Oe.shixuns_scores)+Number(Oe==null?void 0:Oe.mains_scores)+Number(Oe==null?void 0:Oe.combinations_score));const Rt=[{key:"1",name:"\u5E94\u5F97\u5206",singles_score:Oe==null?void 0:Oe.total_singles_scores,doubles_score:Oe==null?void 0:Oe.total_doubles_scores,nulls_score:Oe==null?void 0:Oe.total_nulls_scores,judges_score:Oe==null?void 0:Oe.total_judges_scores,pros_score:Oe==null?void 0:Oe.total_pros_scores,bpros_score:Oe==null?void 0:Oe.total_bpros_scores,shixuns_score:Oe==null?void 0:Oe.total_shixuns_scores,combinations_score:Oe==null?void 0:Oe.total_combination_scores,mains_score:Oe==null?void 0:Oe.total_mains_scores,total_score:ke},{key:"2",name:"\u5B9E\u5F97\u5206",singles_score:Oe==null?void 0:Oe.singles_scores,doubles_score:Oe==null?void 0:Oe.doubles_scores,nulls_score:Oe==null?void 0:Oe.nulls_scores,judges_score:Oe==null?void 0:Oe.judges_scores,pros_score:Oe==null?void 0:Oe.pros_scores,bpros_score:Oe==null?void 0:Oe.bpros_scores,shixuns_score:Oe==null?void 0:Oe.shixuns_scores,mains_score:Oe==null?void 0:Oe.mains_scores,combinations_score:Oe==null?void 0:Oe.combination_scores,total_score:qe},{key:"3",name:"\u8BC4\u5377\u4EBA"}];return Tt(_t?[{key:"1",name:"\u5E94\u5F97\u5206"},{key:"2",name:"\u5B9E\u5F97\u5206"},{key:"3",name:"\u8BC4\u5377\u4EBA"}]:Rt),be}),ji=[{width:"9%",title:"\u9898\u578B",align:"center",dataIndex:"name",render:be=>Ae.createElement("a",null,be)},{width:"9%",title:((sr=Mt.find(be=>be.value==ie.fw[0].nameType))==null?void 0:sr.name)||ie.fw[0].name,align:"center",dataIndex:"singles_score",render:be=>Ae.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((k=Mt.find(be=>be.value==ie.fw[1].nameType))==null?void 0:k.name)||ie.fw[1].name,align:"center",dataIndex:"doubles_score",render:be=>Ae.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((Xe=Mt.find(be=>be.value==ie.fw[3].nameType))==null?void 0:Xe.name)||ie.fw[3].name,align:"center",dataIndex:"nulls_score",render:be=>Ae.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((N=Mt.find(be=>be.value==ie.fw[2].nameType))==null?void 0:N.name)||ie.fw[2].name,align:"center",dataIndex:"judges_score",render:be=>Ae.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((b=Mt.find(be=>be.value==ie.fw[6].nameType))==null?void 0:b.name)||ie.fw[6].name,align:"center",dataIndex:"pros_score",render:be=>Ae.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((f=Mt.find(be=>be.value==ie.fw[5].nameType))==null?void 0:f.name)||ie.fw[5].name,align:"center",dataIndex:"shixuns_score",render:be=>Ae.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((C=Mt.find(be=>be.value==ie.fw[4].nameType))==null?void 0:C.name)||ie.fw[4].name,align:"center",dataIndex:"mains_score",render:be=>Ae.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:((ee=Mt.find(be=>be.value==ie.fw[7].nameType))==null?void 0:ee.name)||ie.fw[7].name,align:"center",dataIndex:"combinations_score",render:be=>Ae.createElement("a",null,be==="0.0"?0:be)},{width:"10%",title:((Se=Mt.find(be=>be.value==ie.fw[8].nameType))==null?void 0:Se.name)||ie.fw[8].name,align:"center",dataIndex:"bpros_score",render:be=>Ae.createElement("a",null,be==="0.0"?0:be)},{width:"9%",title:"\u603B\u5206",align:"center",dataIndex:"total_score",render:be=>Ae.createElement("a",null,be==="0.0"?0:be?parseFloat(be).toFixed(1):"")}],Or=be=>{br({type:"paperlibrary/getPaperData",payload:me({id:ze.current},be)})},bi=(be,Oe)=>Me(void 0,null,function*(){if(!be.destination||!be.source)return;const ke=Oe.questions[be.source.index].id,qe=be.destination.index+1;(yield br({type:"paperlibrary/adjustPosition",payload:{id:ze.current,itemId:ke,position:qe}})).status!==-1&&Or()}),ua=()=>{br({type:"paperlibrary/setActionTabs",payload:{key:"Paperlibrary-SendToClass",params:{id:ze.current}}})},gi=(0,ve.useRef)(),[ta,Ji]=(0,ve.useState)(!0),aa=()=>Me(void 0,null,function*(){Ji(!1),Er(""),Sr(!0)}),Io=()=>Me(void 0,null,function*(){Ji(!0),Er(""),Sr(!0)}),oa=()=>Me(void 0,null,function*(){var be;ar(!0);const Oe=yield(0,j.Mb)({categoryId:ze.current});ar(!1),Oe!=null&&Oe.exercise_id&&(0,G.xg)(`/classrooms/coursesId/exercise/${Oe.exercise_id}/${(be=Pt.userInfo)==null?void 0:be.login}/initate_answer`)}),pi=(be,Oe,ke)=>{var qe,Rt,kt,yr,or,Nr,zr,an,jr,Qr,qr,yn,on,Dn,Qn,fi,On,An,Dt,Kt,Gt;return Ae.createElement(Ae.Fragment,null,!ke&&Ae.createElement("div",{style:{display:"flex"},className:M.programTitle},Ae.createElement("span",{style:{flexShrink:0},className:"font18"},Oe+1,"."),Ae.createElement(se.Z,{style:{maxWidth:1100},value:be.name||(be==null?void 0:be.shixun_name)}),Ae.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",(be==null?void 0:be.question_type)===7?`\u5171${be==null?void 0:be.sub_count}\u5C0F\u9898`:""," ",be.score,"\u5206\uFF09")),(be==null?void 0:be.question_type)===8&&Ae.createElement(se.Z,{showProgramFill:!0,disabledFill:!0,value:he.Base64.decode(((qe=be==null?void 0:be.program_attr)==null?void 0:qe.code)||"")}),(be==null?void 0:be.question_type)===5&&Ae.createElement("div",null,(Rt=be==null?void 0:be.examination_bank_shixun_challenges)==null?void 0:Rt.map((Jt,Zt)=>Ae.createElement("div",null,Ae.createElement("div",{key:Zt,style:{background:"#F0F7FD",color:"#3061D0",fontSize:18,padding:10,marginBottom:10}},Ae.createElement("i",{className:"iconfont icon-renwuguanka1",style:{marginRight:5}}),"\u7B2C",Zt+1,"\u5173 ",Ae.createElement("span",{className:"ml10"},Jt.challenge_name))))),(be==null?void 0:be.question_type)===6&&Ae.createElement("div",null,Ae.createElement("div",{style:{fontWeight:600,marginTop:4}},"\u5141\u8BB8\u7F16\u7A0B\u7684\u8BED\u8A00\uFF1A",(yr=(kt=be==null?void 0:be.program_attr)==null?void 0:kt.languages)==null?void 0:yr.join("/")),((Nr=(or=Ot==null?void 0:Ot.paperData)==null?void 0:or.exam)==null?void 0:Nr.show_hack_sets)&&Ae.createElement("div",{style:{marginBottom:10,border:"1px solid #F1F4F9"}},Ae.createElement("p",{style:{padding:"0px 10px",height:40,lineHeight:"40px",background:"#F1F4F9",color:"#3061D0"}},Ae.createElement("i",{className:"iconfont icon-ceshiyongli"})," \u6D4B\u8BD5\u7528\u4F8B\uFF1A"),Ae.createElement(re.default,{style:{margin:10},columns:[{title:"\u5E8F\u53F7",dataIndex:"name",key:"name",width:"10%",render:(Jt,Zt,Dr)=>Dr+1},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u5165",dataIndex:"input",key:"input",width:"40%",render:(Jt,Zt,Dr)=>Ae.createElement(W.Z,{title:Ae.createElement("pre",null,Jt)},Ae.createElement("div",{className:M.divname},Jt))},{title:"\u6D4B\u8BD5\u7528\u4F8B\u8F93\u51FA",dataIndex:"output",key:"output",width:"40%",render:(Jt,Zt,Dr)=>Ae.createElement(W.Z,{title:Ae.createElement("pre",null,Jt)}," ",Ae.createElement("div",{className:M.divname},Jt))},{title:"\u662F\u5426\u53EF\u89C1",dataIndex:"visibility_cn",key:"visibility_cn",width:"10%"}],pagination:!1,dataSource:(zr=be==null?void 0:be.program_attr)==null?void 0:zr.hack_sets})),((jr=(an=Ot==null?void 0:Ot.paperData)==null?void 0:an.exam)==null?void 0:jr.show_hack_description)&&Ae.createElement("div",null,Ae.createElement(se.Z,{className:M.content,value:((Qr=be==null?void 0:be.program_attr)==null?void 0:Qr.description)||"- -"}))),be.question_type===Ne.c.Single&&Ae.createElement(Ae.Fragment,null,(qr=be.choices)==null?void 0:qr.map(function(Jt,Zt){return Ae.createElement(S.Z,{key:Zt},Ae.createElement(m.Z,{flex:"1"},Ae.createElement("div",{style:{display:"flex"}},Ae.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},rt[Zt]),Ae.createElement(se.Z,{value:Jt.choice_text||""}))))})),be.question_type===Ne.c.Multiple&&Ae.createElement(Ae.Fragment,null,(yn=be.choices)==null?void 0:yn.map(function(Jt,Zt){return Ae.createElement(S.Z,{key:Zt},Ae.createElement(m.Z,{flex:"1"},Ae.createElement("div",{style:{display:"flex"}},Ae.createElement("div",{style:{lineHeight:"24px",flexShrink:0}},rt[Zt]),Ae.createElement(se.Z,{value:Jt.choice_text||""}))))})),be.question_type===Ne.c.Judge&&Ae.createElement("div",{className:M.flexRow},(on=be.choices)==null?void 0:on.map(function(Jt,Zt){return Ae.createElement(S.Z,{key:Zt},Ae.createElement(m.Z,{flex:"25px"},Ae.createElement("div",{style:{width:25,overflow:"hidden"}},Ae.createElement(I.ZP,{disabled:!0,style:{width:25,marginLeft:Zt===1&&10}}))),Ae.createElement(m.Z,{flex:"1",style:{marginLeft:Zt===1&&10}},Jt.choice_text))})),be.question_type===Ne.c.Combine&&Ae.createElement(Ae.Fragment,null,(Dn=be.sub_questions)==null?void 0:Dn.map(function(Jt,Zt){return Ae.createElement("div",{style:{marginLeft:10}},Ae.createElement("div",{style:{display:"flex"},className:M.programTitle},Ae.createElement("span",{style:{flexShrink:0},className:"font18"},Oe+1,".",Zt+1),Ae.createElement(se.Z,{value:Jt.name||(Jt==null?void 0:Jt.shixun_name)}),Ae.createElement("span",{style:{flexShrink:0},className:"font16"},"\uFF08",Jt.score,"\u5206\uFF09")),pi(Jt,Zt,!0))})),ta&&Ae.createElement("div",{style:{marginTop:10}},(be==null?void 0:be.question_type)<3&&(be==null?void 0:be.standard_answer_show)&&Ae.createElement("span",{className:"font16 "},"\u6B63\u786E\u7B54\u6848\uFF1A",be==null?void 0:be.standard_answer_show),!!((Qn=be==null?void 0:be.standard_answer)!=null&&Qn.length)&&ta&&(be==null?void 0:be.question_type)===3&&Ae.createElement("div",null,(fi=be==null?void 0:be.standard_answer)==null?void 0:fi.map((Jt,Zt)=>Ae.createElement("div",null,Ae.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Zt+1,"\uFF09:"),Ae.createElement("div",null,Jt.answer_text.map(function(Dr,Fr){return Ae.createElement(m.Z,{span:24,key:Fr},(Jt==null?void 0:Jt.model)===1?Ae.createElement(fe,{autoSize:!0,disabled:!0,value:Dr}):Ae.createElement(Be.Z,{value:Dr,disabled:!0}))}))))),!!((On=be==null?void 0:be.standard_answer)!=null&&On.length)&&ta&&(be==null?void 0:be.question_type)===8&&Ae.createElement("div",null,(An=be==null?void 0:be.standard_answer)==null?void 0:An.map((Jt,Zt)=>Ae.createElement("div",null,Ae.createElement("span",null,"\u53C2\u8003\u7B54\u6848\uFF1A\uFF08\u586B\u7A7A",Zt+1,"\uFF09:"),Ae.createElement("div",null,Ae.createElement(fe,{autoSize:!0,disabled:!0,value:(Jt==null?void 0:Jt.answer_text)||""}))))),!!((Dt=be==null?void 0:be.answer_texts)!=null&&Dt.length)&&(be==null?void 0:be.question_type)===4&&Ae.createElement("div",null,Ae.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A"),Ae.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},Ae.createElement(se.Z,{value:(Kt=be==null?void 0:be.answer_texts)==null?void 0:Kt[0]}))),(be==null?void 0:be.question_type)===6&&Ae.createElement("div",null,Ae.createElement("p",{className:"mt10 mb0"},"\u53C2\u8003\u7B54\u6848\uFF1A",!(be!=null&&be.answer_text)&&"\u6682\u65E0"),(be==null?void 0:be.answer_text)&&Ae.createElement("div",{style:{border:"1px solid #eee",background:"#f5f5f5",borderRadius:4,padding:5}},Ae.createElement(se.Z,{value:be==null?void 0:be.answer_text}))),(be==null?void 0:be.question_type)<=4&&((be==null?void 0:be.standard_answer_show)||((Gt=be==null?void 0:be.standard_answer)==null?void 0:Gt.length)>0)&&Ae.createElement(S.Z,{style:{marginTop:14}},Ae.createElement("span",{className:"font16 "},"\u89E3\u6790\uFF1A"),Ae.createElement(se.Z,{className:M.renderHtml,value:(be==null?void 0:be.analysis)||"\u6682\u65E0\u89E3\u6790"}))),!ke&&Ae.createElement(g.Z,null))},Ti=(0,ve.useCallback)(()=>{var be,Oe;return Ae.createElement("div",null,Ae.createElement("div",{className:M.titleForExport},(Oe=(be=Ot.paperData)==null?void 0:be.exam)==null?void 0:Oe.name),Ae.createElement("div",{style:{textAlign:"center",fontSize:"15px"}},"\u5171:\u3010",Ie==null?void 0:Ie.large_counts,"\u5927\u9898\u3011\u3010",Ie==null?void 0:Ie.total_count,"\u5C0F\u9898\u3011\u3010 \u6EE1\u5206",Ie==null?void 0:Ie.score,"\u5206\u3011 \u8003\u8BD5\u65F6\u95F4\uFF1A\u3010",(Ie==null?void 0:Ie.time)>-1?`${Ie==null?void 0:Ie.time}\u5206\u949F`:"\u4E0D\u9650","\u3011"),!!(Ie!=null&&Ie.exercise_description)&&Ae.createElement("pre",{style:{fontSize:14,marginBottom:30,marginTop:20,textAlign:"left",color:"#3A3A3A"}},Ae.createElement("b",null,"\u8BD5\u5377\u987B\u77E5\uFF1A"),Ie==null?void 0:Ie.exercise_description),Ae.createElement(re.default,{style:{margin:"20px auto"},className:M.table,columns:ji,dataSource:[...ct||[]],bordered:!0,pagination:!1}))},[Ot.paperData]),zi=()=>Me(void 0,null,function*(){const be=yield(0,q.ZP)("/api/intelligent_imports/save_recognize_papers.json",{method:"post",body:{examination_bank_id:je==null?void 0:je.id}});(be==null?void 0:be.status)===0&&ue.history.replace("/paperlibrary")});return Ae.createElement("section",{className:M.bg},Ae.createElement($.Z,{spinning:nr["paperlibrary/getPaperData"]},Ae.createElement(S.Z,{className:"pt20",justify:"space-between"},Ae.createElement(_.Z,{separator:">"},Ae.createElement(_.Z.Item,{href:"/paperlibrary"},"\u8BD5\u5377\u5E93"),Ae.createElement(_.Z.Item,{href:`/paperlibrary?defaultActiveKey=${ge}`},ge==="1"?"\u516C\u5F00":ge==="2"?"\u56E2\u961F\u5171\u4EAB":"\u6211\u521B\u5EFA\u7684"),Ae.createElement(_.Z.Item,null,"\u8BD5\u5377\u8BE6\u60C5")),Ae.createElement("div",{className:M.btnWrapper},!En&&Ae.createElement(F.ZP,{onClick:ua,className:M.btn,icon:Ae.createElement("i",{className:"iconfont icon-fasongtongzhi font14"})},"\u53D1\u9001\u81F3\u8BFE\u5802"),Ae.createElement(F.ZP,{onClick:()=>ue.history.push(`/paperlibrary/add/${ze.current}?type=2${En?"&isIntelligentAssistant=true":""}`),className:M.btn,icon:Ae.createElement("i",{className:"iconfont icon-bianji10 font14"})},"\u7F16\u8F91\u8BD5\u5377"),Ae.createElement(F.ZP,{loading:Ar,onClick:oa,className:M.btn,icon:Ae.createElement("i",{className:"iconfont icon-monikaoshi2 font14"})},"\u6A21\u62DF\u8003\u8BD5"),!En&&Ae.createElement(P.Z,{menu:{items:[{key:"1",label:Ae.createElement("div",{onClick:Io},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377+\u7B54\u6848")},{key:"2",label:Ae.createElement("div",{onClick:aa},"\u5BFC\u51FA\u7A7A\u767D\u8BD5\u5377")}]}},Ae.createElement(F.ZP,{type:"primary",icon:Ae.createElement("i",{className:"iconfont icon-daochu1 font14"})},"\u5BFC\u51FA")),En&&Ae.createElement(Pe.Z,{onClick:zi,type:"primary",icon:Ae.createElement("i",{className:"iconfont icon-baocun1 font14"})},"\u4FDD\u5B58\u8BD5\u5377"))),Ae.createElement("div",{className:`${M.wrap} pt20 pb20`,ref:gi,id:"paperDomRef"},!((ne=(H=Ot.paperData)==null?void 0:H.questionList)!=null&&ne.length)&&Ti(),(we=(Qe=Ot.paperData)==null?void 0:Qe.questionList)==null?void 0:we.map((be,Oe)=>{var ke;return Ae.createElement(Ae.Fragment,null,(ke=be.questions)==null?void 0:ke.map((qe,Rt)=>{const kt=Math.floor(Rt/10);return Rt%10===0?Ae.createElement("div",{className:"abc",key:`group-${kt}`},Oe===0&&Rt===0&&Ti(),Rt===0&&Ae.createElement("div",null,Ae.createElement("span",{className:"font16 c-light-primary"},be.number,"\u3001",be.name),Ae.createElement("span",{className:"c-grey-999"},"\uFF08\u5171",be.questions_count,"\u9898\uFF0C",(be==null?void 0:be.question_type)===7?`\u5305\u542B${be==null?void 0:be.sub_count}\u5C0F\u9898\uFF1B`:"","\u5171",be.questions_score,"\u5206\uFF09")),be.questions.slice(Rt,Rt+10).map((yr,or)=>Ae.createElement("div",{key:yr.id},pi(yr,Rt+or)))):null}))}))),Ae.createElement(Y.Z,null),Ae.createElement(U.default,{width:450,title:"\u8BF7\u9009\u62E9\u9700\u8981\u5BFC\u51FA\u7684\u683C\u5F0F",open:_r,onCancel:()=>{if(Rr){De.ZP.info("\u5BFC\u51FA\u4E2D\u8BF7\u52FF\u5173\u95ED\u7A97\u53E3");return}Sr(!1)},okButtonProps:{loading:Rr},onOk:()=>Me(void 0,null,function*(){var be,Oe;if(fn(!0),Lr==""){fn(!1),De.ZP.info("\u8BF7\u9009\u62E9\u4E00\u79CD\u5BFC\u51FA\u683C\u5F0F");return}else Lr=="pdf"?yield(0,Q.F)(gi.current.children,(Oe=(be=Ot.paperData)==null?void 0:be.exam)==null?void 0:Oe.name):Lr=="word"&&(0,J.ON)({id:ze.current,middle_export:1,export_type:ta?1:0});fn(!1),Sr(!1)})},Ae.createElement("div",{className:M.export_type_modal},Ae.createElement("div",{className:M.export_type_modal_con},Ae.createElement("div",{className:M.type_item},Ae.createElement("div",{className:`${M.img_warp} ${Lr=="pdf"?M.img_warp_active:""}`,onClick:()=>Er("pdf")},Ae.createElement("img",{src:x(45614),width:70,height:70})),"pdf\u683C\u5F0F"),Ae.createElement("div",{className:M.type_item},Ae.createElement("div",{className:`${M.img_warp} ${Lr=="word"?M.img_warp_active:""}`,onClick:()=>Er("word")},Ae.createElement("img",{src:x(38347),width:70,height:70})),"word\u683C\u5F0F")))))};var We=(0,ue.connect)(({paperlibrary:et,user:_t,loading:Ot,globalSetting:Pt,newExercisePaper:cr})=>({paperlibrary:et,user:_t,globalSetting:Pt,loading:Ot.effects,newExercisePaper:cr}))(ot)},59014:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return Be}});var ve=x(59301),ue=x(76560),T=x(92832),De=x(8591),re=x(43418),W=x(5871),S=x(61621),m=x(1710),I=x(3113),g=x(1198),$=x(17270),_={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"},F=x(49661),P=x(37552),U=x(67135),M=x(64885),Y=x(89392),Q=x(6681),ae=x(59301),ie=Object.getOwnPropertySymbols,J=Object.prototype.hasOwnProperty,G=Object.prototype.propertyIsEnumerable,j=(Pe,q)=>{var Ae={};for(var D in Pe)J.call(Pe,D)&&q.indexOf(D)<0&&(Ae[D]=Pe[D]);if(Pe!=null&&ie)for(var D of ie(Pe))q.indexOf(D)<0&&G.call(Pe,D)&&(Ae[D]=Pe[D]);return Ae},se=(Pe,q,Ae)=>new Promise((D,Je)=>{var Fe=me=>{try{Ue(Ae.next(me))}catch(Me){Je(Me)}},Ce=me=>{try{Ue(Ae.throw(me))}catch(Me){Je(Me)}},Ue=me=>me.done?D(me.value):Promise.resolve(me.value).then(Fe,Ce);Ue((Ae=Ae.apply(Pe,q)).next())});const he=T.default.Search,Ne=Pe=>{var q=Pe,{paperlibrary:Ae,globalSetting:D,loading:Je,dispatch:Fe}=q,Ce=j(q,["paperlibrary","globalSetting","loading","dispatch"]),Ue,me,Me;const[fe,Ee]=(0,ve.useState)(""),[rt,ot]=(0,ve.useState)([]),[We,et]=(0,ve.useState)([]),[_t,Ot]=(0,ve.useState)(!1),[Pt,cr]=(0,ve.useState)(!0),[nr,br]=(0,ve.useState)(!0),[sr,k]=(0,ve.useState)(!0),[Xe,N]=(0,ve.useState)(!1),[b,f]=(0,ve.useState)(!1),C=(Me=(me=(Ue=Ae.actionTabs)==null?void 0:Ue.params)==null?void 0:me.data)==null?void 0:Me.is_random,[ee,Se]=(0,ve.useState)(!1),[H,ne]=(0,ve.useState)({});(0,ve.useEffect)(()=>{we()},[]);const Qe=()=>{et([]),Ee(""),we(!0),Fe({type:"paperlibrary/setActionTabs",payload:{}})},we=ze=>se(void 0,null,function*(){br(!0);const Ie=yield Fe({type:"paperlibrary/getCourseList",payload:{search:ze?"":fe}});Ie&&(ot((Ie==null?void 0:Ie.courses)||[]),cr(!0),N(!1)),br(!1),k(!1)}),ye=ze=>{const Ie=parseInt(ze);return(0,Y.isNaN)(Ie)?"":Ie},je=()=>se(void 0,null,function*(){var ze,Ie,Le,ct,Tt,Mt,Yt;if(!We.length){De.ZP.info("\u60A8\u9700\u8981\u9009\u62E9\u8BFE\u5802\uFF0C\u624D\u80FD\u53D1\u9001"),Ot(!0);return}const _r=yield Fe({type:"paperlibrary/postExistCourse",payload:{course_id:C?We==null?void 0:We[0]:We,examination_bank_ids:((Ie=(ze=Ae.actionTabs)==null?void 0:ze.params)==null?void 0:Ie.examination_bank_ids)||((ct=(Le=Ae.actionTabs)==null?void 0:Le.params)==null?void 0:ct.id)}}),Sr=()=>se(void 0,null,function*(){var Lr,Er,Ar,ar,Rr,fn;f(!0);let En=yield(0,U.Tr)({id:(Er=(Lr=Ae.actionTabs)==null?void 0:Lr.params)==null?void 0:Er.id,course_id:C?We==null?void 0:We[0]:We,type:(ar=(Ar=Ae.actionTabs)==null?void 0:Ar.params)!=null&&ar.isBatch?"batch_examination_bank":"examination_bank",examination_bank_ids:(fn=(Rr=Ae.actionTabs)==null?void 0:Rr.params)==null?void 0:fn.examination_bank_ids});f(!1),(En==null?void 0:En.student_count)===0?yield mt([]):ne(En),yield new Promise(gn=>setTimeout(()=>gn(),1e3))});if(_r.status==0&&((Tt=_r.data)==null?void 0:Tt.count)>0){re.default.confirm({icon:null,title:"\u63D0\u793A",centered:!0,width:596,content:ae.createElement("div",{style:{userSelect:"none"}},"\u5F53\u524D\u6559\u5B66\u8BFE\u5802\u4E2D\u5DF2\u5B58\u5728\u8BD5\u5377",(Yt=(Mt=_r.data)==null?void 0:Mt.list)==null?void 0:Yt.map((Lr,Er)=>{var Ar;return ae.createElement(ae.Fragment,null,ae.createElement("span",{style:{color:"#FA6400"}},"\u300A",Lr==null?void 0:Lr.name,"\u300B"),Er!==((Ar=_r.data)==null?void 0:Ar.count)-1&&ae.createElement("span",null,"\u3001"))}),"\uFF0C\u8BF7\u786E\u5B9A\u662F\u5426\u9700\u8981\u91CD\u590D\u53D1\u9001\uFF1F"),onOk:()=>se(void 0,null,function*(){yield Sr()})}),yield new Promise(Lr=>setTimeout(()=>Lr(),1e3));return}yield Sr()}),mt=ze=>se(void 0,null,function*(){var Ie,Le,ct,Tt,Mt,Yt;if(!C){Se(!0);const Er=yield Fe({type:(Le=(Ie=Ae.actionTabs)==null?void 0:Ie.params)!=null&&Le.isBatch?"paperlibrary/postBatchSendToCourse":"paperlibrary/sendToClass",payload:{course_id:C?We==null?void 0:We[0]:We,id:(Tt=(ct=Ae.actionTabs)==null?void 0:ct.params)==null?void 0:Tt.id,examination_bank_ids:(Yt=(Mt=Ae.actionTabs)==null?void 0:Mt.params)==null?void 0:Yt.examination_bank_ids,shixuns_info:ze.map(Ar=>({shixun_id:Ar.id,is_copy:Ar.is_copy,is_use:Ar.is_use,course_id:Ar.course_id}))}});Se(!1),Er&&Er.status===0&&(Fe({type:"paperlibrary/setActionTabs",payload:{}}),et([]),re.default.confirm({title:"\u63D0\u793A",okText:"\u7ACB\u5373\u524D\u5F80",cancelText:"\u7A0D\u540E\u518D\u8BF4",width:480,centered:!0,closable:!0,onOk:()=>{window.location.href=`${Er.data[0].first_category_url}`},content:ae.createElement("p",null,"\u8BD5\u5377\u53D1\u9001\u6210\u529F\uFF01\u76EE\u524D\u5904\u4E8E\u672A\u53D1\u5E03\u72B6\u6001\uFF0C\u662F\u5426\u524D\u5F80\u6559\u5B66\u8BFE\u5802\u8FDB\u884C\u53D1\u5E03\uFF1F")}),De.ZP.success("\u53D1\u9001\u6210\u529F"));return}Se(!0),setTimeout(()=>{Se(!1)},500);const _r=rt.find(Er=>Er.course_id===(We==null?void 0:We[0]));let Sr=1,Lr=re.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:ae.createElement("div",{className:_.modalColumn},ae.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},ae.createElement("img",{style:{marginRight:5},src:g.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"),ae.createElement("div",{style:{paddingLeft:18}},"\u8BFE\u5802\u540D\u79F0: ",_r==null?void 0:_r.course_name),ae.createElement("div",{style:{paddingLeft:9},className:_.modalRow},ae.createElement("sup",{className:_.sup},"*"),ae.createElement("span",{style:{flexShrink:0}},"\u968F\u673A\u51FA\u5377\u6570\u91CF\uFF1A"),ae.createElement(W.Z,{parser:ye,style:{width:120},placeholder:"\u8BF7\u8F93\u5165\u8BD5\u5377\u6570\u91CF",min:1,defaultValue:Sr,onChange:Er=>{Sr=Er;const Ar=document.getElementById("model_error");Sr<1||Sr>50?Ar.style.display="block":Ar.style.display="none"}})),ae.createElement("div",{style:{display:"none",marginLeft:115},id:"model_error",className:"c-red"},"\u8BF7\u8F93\u51651-50\u4E4B\u95F4\u7684\u6574\u6570")),okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onCancel:Qe,onOk:()=>se(void 0,null,function*(){var Er,Ar;if(Sr<1||Sr>50){const Rr=document.getElementById("model_error");return Rr.style.display="block",Promise.reject()}Lr.update({cancelButtonProps:{disabled:!0}});const ar=yield Fe({type:"paperlibrary/sendToClass",payload:{course_id:We==null?void 0:We[0],id:(Ar=(Er=Ae.actionTabs)==null?void 0:Er.params)==null?void 0:Ar.id,num:Sr,shixuns_info:ze.map(Rr=>({shixun_id:Rr.id,is_copy:Rr.is_copy,is_use:Rr.is_use}))}});Lr.update({cancelButtonProps:{disabled:!1}}),ar&&ar.status===0&&(re.default.destroyAll(),re.default.confirm({icon:null,className:"custom-modal-divider",centered:!0,width:500,title:"\u63D0\u793A",content:ae.createElement("div",{className:_.modalColumn},ae.createElement("div",{style:{color:"#676A6C",display:"flex",alignItems:"center"},className:"font14 mt20 mb10"},ae.createElement("img",{style:{marginRight:5},src:$.Z}),"\u751F\u6210\u8BD5\u5377\u6210\u529F\uFF0C\u524D\u5F80\u8BFE\u5802\u53BB\u67E5\u770B\u5427\uFF01")),okText:"\u524D\u5F80\u8BFE\u5802",cancelText:"\u8FD4\u56DE\u8BD5\u5377\u5E93",onCancel:()=>{Qe()},onOk:()=>{Qe(),setTimeout(()=>{var Rr,fn;const En=(fn=(Rr=ar==null?void 0:ar.first_category_url)==null?void 0:Rr.split("/"))==null?void 0:fn[2];(0,F.xg)(`/classrooms/${En}/exercise`)},1e3)}}))})})}),ge=()=>se(void 0,null,function*(){N(!0),yield we()}),st=[{title:"\u8BFE\u5802\u540D\u79F0",dataIndex:"course_name",ellipsis:!0},{title:"\u5206\u73ED\u6570\u91CF",dataIndex:"course_group_count",width:90,ellipsis:!0},{title:"\u5B66\u5458\u4EBA\u6570",dataIndex:"course_member_count",width:90,ellipsis:!0}];return ae.createElement("div",null,ae.createElement(re.default,{centered:!0,keyboard:!1,closable:!1,open:Ae.actionTabs.key==="Paperlibrary-SendToClass",title:"\u53D1\u9001\u81F3\u8BFE\u5802",maskClosable:!1,okText:"\u786E\u5B9A",cancelText:"\u53D6\u6D88",confirmLoading:Je["paperlibrary/sendToClass"]||b||!!Je["paperlibrary/postExistCourse"],width:752,footer:!1,onOk:je,destroyOnClose:!0,onCancel:Qe},ae.createElement("div",{className:_.wrap},ae.createElement("div",{className:"mb10"},ae.createElement(he,{placeholder:"\u8F93\u5165\u8BFE\u5802\u540D\u79F0\u7684\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",value:fe,className:_.search,onChange:ze=>{Ee(ze.target.value),ze.target.value||we(!0)},onSearch:ze=>{Ee(ze),we(),et([])}})),ae.createElement(S.Z,{loading:sr},rt.length?ae.createElement("div",{className:_.radioWrap},ae.createElement(m.default,{bordered:!1,scroll:(rt==null?void 0:rt.length)<=7?{}:{y:350},loading:nr,rowKey:"course_id",pagination:!1,dataSource:rt,columns:st,onRow:ze=>({onClick:Ie=>{if(C)et([ze==null?void 0:ze.course_id]);else{if(!C&&!We.includes(ze.course_id)&&We.length>0)return;We!=null&&We.includes(ze==null?void 0:ze.course_id)?et(We==null?void 0:We.filter(Le=>Le!==(ze==null?void 0:ze.course_id))):et([...We,ze==null?void 0:ze.course_id])}}}),rowSelection:{type:"radio",hideSelectAll:!0,selectedRowKeys:We,onChange:ze=>{et(ze),Ot(!1)}}})):!fe&&!nr&&ae.createElement(P.Z,{createState:Pt,refreshLoading:Xe,onRefresh:ge,onCreate:()=>{cr(!1),(0,F.xg)("/classrooms/new")}})),_t&&ae.createElement("div",{className:_.colorFF0000},"\u8BF7\u5148\u9009\u62E9\u8BFE\u5802"),ae.createElement("div",{className:_.bottom,style:{display:"flex",alignItems:"center"}},ae.createElement("div",{style:{flex:1}},ae.createElement("div",{className:_.title},ae.createElement("img",{src:g.Z,style:{objectFit:"contain"}}),"\u9009\u62E9\u7684\u8BD5\u5377\u5C06\u4F1A\u53D1\u9001\u5230\u6307\u5B9A\u8BFE\u5802\u5E76\u4E3A\u73ED\u7EA7\u5B66\u5458\u751F\u6210\u8003\u8BD5\u8BD5\u5377")),ae.createElement("div",null,ae.createElement(I.ZP,{onClick:Qe,className:_.no,style:{marginRight:20}},"\u53D6\u6D88"),ae.createElement(M.Z,{onClick:je,className:_.yes},"\u786E\u8BA4"))))),ae.createElement(Q.Z,{resdata:H,type:"exercise",okloading:ee,oktext:(H==null?void 0:H.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:ze=>{mt(ze)}}))};var Be=(0,ue.connect)(({paperlibrary:Pe,loading:q,globalSetting:Ae})=>({paperlibrary:Pe,globalSetting:Ae,loading:q.effects}))(Ne)},16837:function(dn,Ut,x){"use strict";x.d(Ut,{c:function(){return ue}});var ve=(T=>(T.FirstPage="firstPage",T.PrevPage="prevPage",T.NextPage="nextPage",T))(ve||{}),ue=(T=>(T[T.Single=0]="Single",T[T.Multiple=1]="Multiple",T[T.Judge=2]="Judge",T[T.Fill=3]="Fill",T[T.Subjective=4]="Subjective",T[T.Shixun=5]="Shixun",T[T.Program=6]="Program",T[T.Combine=7]="Combine",T))(ue||{})},30975:function(dn,Ut,x){"use strict";x.d(Ut,{AD:function(){return Je},D9:function(){return fe},Hp:function(){return j},IM:function(){return rt},Iy:function(){return se},KM:function(){return sr},MJ:function(){return he},Ne:function(){return Ee},ON:function(){return Ot},Uj:function(){return nr},VY:function(){return et},YO:function(){return cr},YX:function(){return Pt},Zn:function(){return U},_g:function(){return ie},_k:function(){return me},c6:function(){return Ae},cr:function(){return M},eV:function(){return D},fi:function(){return Y},gh:function(){return Pe},hS:function(){return ot},iA:function(){return Q},j6:function(){return J},je:function(){return Ue},jj:function(){return G},kS:function(){return _t},o6:function(){return q},pO:function(){return br},rQ:function(){return Fe},sA:function(){return Be},xm:function(){return Me},xo:function(){return We},y8:function(){return Ce},yd:function(){return ae}});var ve=x(64948),ue=x(76560),T=x(49661),De=x(8591),re=x(90524),W=Object.defineProperty,S=Object.getOwnPropertySymbols,m=Object.prototype.hasOwnProperty,I=Object.prototype.propertyIsEnumerable,g=(k,Xe,N)=>Xe in k?W(k,Xe,{enumerable:!0,configurable:!0,writable:!0,value:N}):k[Xe]=N,$=(k,Xe)=>{for(var N in Xe||(Xe={}))m.call(Xe,N)&&g(k,N,Xe[N]);if(S)for(var N of S(Xe))I.call(Xe,N)&&g(k,N,Xe[N]);return k},_=(k,Xe,N)=>new Promise((b,f)=>{var C=H=>{try{Se(N.next(H))}catch(ne){f(ne)}},ee=H=>{try{Se(N.throw(H))}catch(ne){f(ne)}},Se=H=>H.done?b(H.value):Promise.resolve(H.value).then(C,ee);Se((N=N.apply(k,Xe)).next())});const F=()=>{(0,ue.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u751F\u6210\u6587\u4EF6\uFF0C\u8BF7\u7A0D\u540E..."}})},P=()=>{(0,ue.getDvaApp)()._store.dispatch({type:"globalSetting/setGlobalLoading",payload:{show:!1,text:""}})},U=k=>_(void 0,null,function*(){F(),(yield(0,ve.YR)($({},k))).status===0&&(yield(0,T.QH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/courses/${k.coursesId}/export_couser_info.json`,query:k}))),P()}),M=k=>_(void 0,null,function*(){const Xe=yield(0,ve.yS)($({},k));if(Xe.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_member_act_score`);else{if(Xe.status===-2)return Xe;Xe.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_member_act_score`))}}),Y=k=>_(void 0,null,function*(){const Xe=yield(0,ve.W0)($({},k));if(Xe.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_score`);else{if(Xe.status===-4)return Xe;Xe.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_score`))}}),Q=k=>_(void 0,null,function*(){const Xe=yield(0,ve.Nl)($({},k));if(Xe.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Xe.status===-4)return Xe;Xe.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_exercise_and_other`))}}),ae=k=>_(void 0,null,function*(){const Xe=yield(0,ve.IU)($({},k));if(Xe.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/export_star_user`);else{if(Xe.status===-4)return Xe;Xe.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/export_star_user`))}}),ie=k=>_(void 0,null,function*(){const Xe=yield(0,ve.td)($({},k));if(Xe.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_exercise_and_other`);else{if(Xe.status===-2)return Xe;if(Xe.status===-3)(0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_exercise_and_other`);else if(Xe.status===-4)return Xe}}),J=k=>_(void 0,null,function*(){const Xe=yield(0,ve.QX)($({},k));if(Xe.status===0)De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_homework`);else{if(Xe.status===-4)return Xe;Xe.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/course_total_homework`))}}),G=(k,Xe)=>_(void 0,null,function*(){const N=yield(0,ve.o_)($({},k));N.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${Xe}`)):N.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${Xe}`))}),j=(k,Xe)=>_(void 0,null,function*(){const N=yield(0,ve.ZL)($({},k));N.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${Xe}`)):N.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${Xe}`))}),se=(k,Xe)=>_(void 0,null,function*(){const N=yield(0,ve.aP)($({},k));N.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${Xe}`)):N.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${Xe}`))}),he=(k,Xe)=>_(void 0,null,function*(){const N=yield(0,ve.vV)($({},k));N.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F\uFF01\u5BFC\u51FA\u540E\u6587\u4EF6\u4FDD\u5B58\u65F6\u95F4\u4E3A7\u5929\uFF0C\u8BF7\u53CA\u65F6\u4E0B\u8F7D"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${Xe}`)):N.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/${Xe}`))}),Ne=k=>_(void 0,null,function*(){F(),(yield exportCourseWorkListAppendix($({},k))).status===0&&(yield downLoadFileIframe("",setUrlQuery({url:ENV.API_SERVER+`/api/homework_commons/${k.categoryId}/works_list.zip`,query:k}))),P()}),Be=k=>_(void 0,null,function*(){F(),yield(0,T.QH)("",re.Z.API_SERVER+`/api/polls/${k.categoryId}/commit_result.xlsx`),P()}),Pe=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/courses/${k.coursesId}/attendances/export_xlsx_data.xlsx`,query:k}))}),q=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/courses/${k.coursesId}/video_study_statics.xlsx`,query:k}))}),Ae=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/courses/${k.coursesId}/export_video_study.xlsx`,query:k}))}),D=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/courses/${k.coursesId}/export_course_students_info.xlsx`,query:k}))}),Je=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+"/api/school_manages/students.xlsx",query:k}))}),Fe=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+"/api/item_banks/export.xlsx",query:k}))}),Ce=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+"/api/competitions/region_reports.xlsx",query:k}))}),Ue=k=>_(void 0,null,function*(){const Xe=yield(0,ve.Uy)($({},k));Xe.status===0?(De.ZP.info("\u5BFC\u51FA\u4EFB\u52A1\u751F\u6210\u6210\u529F"),ue.history.push(`/classrooms/${k.coursesId}/exportlist/exercise_score,export_exercise_users`)):Xe.status===-3&&((0,ue.getDvaApp)()._store.dispatch({type:"classroomList/setActionTabs",payload:{key:"\u5BFC\u51FA\u63D0\u9192"}}),ue.history.push(`/classrooms/${k.coursesId}/exportlist/exercise_score,export_exercise_users`))}),me=k=>_(void 0,null,function*(){console.log("----------","\u8C03\u7528\u4E0B\u8F7D"),yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/export_records/${k.id}.xlsx`,query:k}))}),Me=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+"/api/ec_major_schools/0/ec_years.xlsx",query:k}))}),fe=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/courses/${k==null?void 0:k.coursesId}/${k.menuKey}_statistic.xlsx?${k.checkedList.map(Xe=>`course_group_id[]=${Xe}`).join("&")}`,query:k}))}),Ee=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/ec_years/${k==null?void 0:k.ec_year_id}/ec_training_objectives.xlsx`,query:k}))}),rt=k=>_(void 0,null,function*(){yield(0,T.FH)(k==null?void 0:k.name,(0,T.NY)({url:re.Z.API_SERVER+"/api/attachments/get_ecs_attachment.docx",query:k}))}),ot=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/ec_years/${k==null?void 0:k.ec_year_id}/ec_courses.xlsx`,query:k}))}),We=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/ec_years/${k==null?void 0:k.ec_year_id}/ec_graduation_requirements.xlsx`,query:k}))}),et=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+"/api/courses/rank_list.xlsx",query:k}))}),_t=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+"/api/courses/question_rank_list.xlsx",query:k}))}),Ot=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/examination_banks/${k.id}.json`,query:k}))}),Pt=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/exercises/${k.categoryId}.json`,query:k}))}),cr=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/polls/${k==null?void 0:k.id}/commit_result.json`,query:k}))}),nr=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+"/api/paths/get_task_pass.json",query:k}))}),br=(k,Xe)=>_(void 0,null,function*(){yield(0,T.FH)(Xe||"",(0,T.NY)({url:re.Z.API_SERVER+`/api/exercises/${k==null?void 0:k.exercise_id}/consult_exercise.json`,query:k}))}),sr=k=>_(void 0,null,function*(){yield(0,T.FH)("",(0,T.NY)({url:re.Z.API_SERVER+`/api/competitions/${k==null?void 0:k.identifier}/competition_commit_records/member_works.xlsx`,query:k}))})},50371:function(dn,Ut){"use strict";function x(){const ve=Object.assign({},arguments.length<=0?void 0:arguments[0]);for(let ue=1;ue<arguments.length;ue++){const T=ue<0||arguments.length<=ue?void 0:arguments[ue];T&&Object.keys(T).forEach(De=>{const re=T[De];re!==void 0&&(ve[De]=re)})}return ve}Ut.Z=x},13845:function(dn,Ut,x){"use strict";x.d(Ut,{F:function(){return ve},Z:function(){return ue}});function ve(T){return T!=null&&T===T.window}function ue(T,De){var re,W;if(typeof window=="undefined")return 0;const S=De?"scrollTop":"scrollLeft";let m=0;return ve(T)?m=T[De?"pageYOffset":"pageXOffset"]:T instanceof Document?m=T.documentElement[S]:(T instanceof HTMLElement||T)&&(m=T[S]),T&&!ve(T)&&typeof m!="number"&&(m=(W=((re=T.ownerDocument)!==null&&re!==void 0?re:T).documentElement)===null||W===void 0?void 0:W[S]),m}},56762:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return ue}});var ve=x(59301);function ue(){const[,T]=ve.useReducer(De=>De+1,0);return T}},68031:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return De}});var ve=x(16089);function ue(re,W,S,m){const I=S-W;return re/=m/2,re<1?I/2*re*re*re+W:I/2*((re-=2)*re*re+2)+W}var T=x(13845);function De(re){let W=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{getContainer:S=()=>window,callback:m,duration:I=450}=W,g=S(),$=(0,T.Z)(g,!0),_=Date.now(),F=()=>{const U=Date.now()-_,M=ue(U>I?I:U,$,re,I);(0,T.F)(g)?g.scrollTo(window.pageXOffset,M):g instanceof Document||g.constructor.name==="HTMLDocument"?g.documentElement.scrollTop=M:g.scrollTop=M,U<I?(0,ve.Z)(F):typeof m=="function"&&m()};(0,ve.Z)(F)}},19080:function(dn,Ut,x){"use strict";x.d(Ut,{F:function(){return re},Z:function(){return De}});var ve=x(92310),ue=x.n(ve);const T=null;function De(W,S,m){return ue()({[`${W}-status-success`]:S==="success",[`${W}-status-warning`]:S==="warning",[`${W}-status-error`]:S==="error",[`${W}-status-validating`]:S==="validating",[`${W}-has-feedback`]:m})}const re=(W,S)=>S||W},66104:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return Je}});var ve=x(92310),ue=x.n(ve),T=x(11592),De=x(26112),re=x(59301),W=x(92343),S=x(36355),m=x(84105),I=x(91857);const g=Fe=>{let{children:Ce}=Fe;const{getPrefixCls:Ue}=re.useContext(S.E_),me=Ue("breadcrumb");return re.createElement("li",{className:`${me}-separator`,"aria-hidden":"true"},Ce===""?Ce:Ce||"/")};g.__ANT_BREADCRUMB_SEPARATOR=!0;var $=g,_=function(Fe,Ce){var Ue={};for(var me in Fe)Object.prototype.hasOwnProperty.call(Fe,me)&&Ce.indexOf(me)<0&&(Ue[me]=Fe[me]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,me=Object.getOwnPropertySymbols(Fe);Me<me.length;Me++)Ce.indexOf(me[Me])<0&&Object.prototype.propertyIsEnumerable.call(Fe,me[Me])&&(Ue[me[Me]]=Fe[me[Me]]);return Ue};function F(Fe,Ce){if(Fe.title===void 0||Fe.title===null)return null;const Ue=Object.keys(Ce).join("|");return typeof Fe.title=="object"?Fe.title:String(Fe.title).replace(new RegExp(`:(${Ue})`,"g"),(me,Me)=>Ce[Me]||me)}function P(Fe,Ce,Ue,me){if(Ue==null)return null;const{className:Me,onClick:fe}=Ce,Ee=_(Ce,["className","onClick"]),rt=Object.assign(Object.assign({},(0,De.Z)(Ee,{data:!0,aria:!0})),{onClick:fe});return me!==void 0?re.createElement("a",Object.assign({},rt,{className:ue()(`${Fe}-link`,Me),href:me}),Ue):re.createElement("span",Object.assign({},rt,{className:ue()(`${Fe}-link`,Me)}),Ue)}function U(Fe,Ce){return(me,Me,fe,Ee,rt)=>{if(Ce)return Ce(me,Me,fe,Ee);const ot=F(me,Me);return P(Fe,me,ot,rt)}}var M=function(Fe,Ce){var Ue={};for(var me in Fe)Object.prototype.hasOwnProperty.call(Fe,me)&&Ce.indexOf(me)<0&&(Ue[me]=Fe[me]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,me=Object.getOwnPropertySymbols(Fe);Me<me.length;Me++)Ce.indexOf(me[Me])<0&&Object.prototype.propertyIsEnumerable.call(Fe,me[Me])&&(Ue[me[Me]]=Fe[me[Me]]);return Ue};const Y=Fe=>{const{prefixCls:Ce,separator:Ue="/",children:me,menu:Me,overlay:fe,dropdownProps:Ee,href:rt}=Fe,We=(et=>{if(Me||fe){const _t=Object.assign({},Ee);if(Me){const Ot=Me||{},{items:Pt}=Ot,cr=M(Ot,["items"]);_t.menu=Object.assign(Object.assign({},cr),{items:Pt==null?void 0:Pt.map((nr,br)=>{var{key:sr,title:k,label:Xe,path:N}=nr,b=M(nr,["key","title","label","path"]);let f=Xe!=null?Xe:k;return N&&(f=re.createElement("a",{href:`${rt}${N}`},f)),Object.assign(Object.assign({},b),{key:sr!=null?sr:br,label:f})})})}else fe&&(_t.overlay=fe);return re.createElement(I.Z,Object.assign({placement:"bottom"},_t),re.createElement("span",{className:`${Ce}-overlay-link`},et,re.createElement(m.Z,null)))}return et})(me);return We!=null?re.createElement(re.Fragment,null,re.createElement("li",null,We),Ue&&re.createElement($,null,Ue)):null},Q=Fe=>{const{prefixCls:Ce,children:Ue,href:me}=Fe,Me=M(Fe,["prefixCls","children","href"]),{getPrefixCls:fe}=re.useContext(S.E_),Ee=fe("breadcrumb",Ce);return re.createElement(Y,Object.assign({},Me,{prefixCls:Ee}),P(Ee,Me,Ue,me))};Q.__ANT_BREADCRUMB_ITEM=!0;var ae=Q,ie=x(17313),J=x(83116),G=x(37613);const j=Fe=>{const{componentCls:Ce,iconCls:Ue}=Fe;return{[Ce]:Object.assign(Object.assign({},(0,ie.Wf)(Fe)),{color:Fe.itemColor,fontSize:Fe.fontSize,[Ue]:{fontSize:Fe.iconFontSize},ol:{display:"flex",flexWrap:"wrap",margin:0,padding:0,listStyle:"none"},a:Object.assign({color:Fe.linkColor,transition:`color ${Fe.motionDurationMid}`,padding:`0 ${Fe.paddingXXS}px`,borderRadius:Fe.borderRadiusSM,height:Fe.lineHeight*Fe.fontSize,display:"inline-block",marginInline:-Fe.marginXXS,"&:hover":{color:Fe.linkHoverColor,backgroundColor:Fe.colorBgTextHover}},(0,ie.Qy)(Fe)),"li:last-child":{color:Fe.lastItemColor},[`${Ce}-separator`]:{marginInline:Fe.separatorMargin,color:Fe.separatorColor},[`${Ce}-link`]:{[`
|
|
|
> ${Ue} + span,
|
|
|
> ${Ue} + a
|
|
|
`]:{marginInlineStart:Fe.marginXXS}},[`${Ce}-overlay-link`]:{borderRadius:Fe.borderRadiusSM,height:Fe.lineHeight*Fe.fontSize,display:"inline-block",padding:`0 ${Fe.paddingXXS}px`,marginInline:-Fe.marginXXS,[`> ${Ue}`]:{marginInlineStart:Fe.marginXXS,fontSize:Fe.fontSizeIcon},"&:hover":{color:Fe.linkHoverColor,backgroundColor:Fe.colorBgTextHover,a:{color:Fe.linkHoverColor}},a:{"&:hover":{backgroundColor:"transparent"}}},[`&${Fe.componentCls}-rtl`]:{direction:"rtl"}})}};var se=(0,J.Z)("Breadcrumb",Fe=>{const Ce=(0,G.TS)(Fe,{});return[j(Ce)]},Fe=>({itemColor:Fe.colorTextDescription,lastItemColor:Fe.colorText,iconFontSize:Fe.fontSize,linkColor:Fe.colorTextDescription,linkHoverColor:Fe.colorText,separatorColor:Fe.colorTextDescription,separatorMargin:Fe.marginXS})),he=function(Fe,Ce){var Ue={};for(var me in Fe)Object.prototype.hasOwnProperty.call(Fe,me)&&Ce.indexOf(me)<0&&(Ue[me]=Fe[me]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,me=Object.getOwnPropertySymbols(Fe);Me<me.length;Me++)Ce.indexOf(me[Me])<0&&Object.prototype.propertyIsEnumerable.call(Fe,me[Me])&&(Ue[me[Me]]=Fe[me[Me]]);return Ue};function Ne(Fe){const{breadcrumbName:Ce,children:Ue}=Fe,me=he(Fe,["breadcrumbName","children"]),Me=Object.assign({title:Ce},me);return Ue&&(Me.menu={items:Ue.map(fe=>{var{breadcrumbName:Ee}=fe,rt=he(fe,["breadcrumbName"]);return Object.assign(Object.assign({},rt),{title:Ee})})}),Me}function Be(Fe,Ce){return(0,re.useMemo)(()=>Fe||(Ce?Ce.map(Ne):null),[Fe,Ce])}var Pe=function(Fe,Ce){var Ue={};for(var me in Fe)Object.prototype.hasOwnProperty.call(Fe,me)&&Ce.indexOf(me)<0&&(Ue[me]=Fe[me]);if(Fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Me=0,me=Object.getOwnPropertySymbols(Fe);Me<me.length;Me++)Ce.indexOf(me[Me])<0&&Object.prototype.propertyIsEnumerable.call(Fe,me[Me])&&(Ue[me[Me]]=Fe[me[Me]]);return Ue};const q=(Fe,Ce)=>{if(Ce===void 0)return Ce;let Ue=(Ce||"").replace(/^\//,"");return Object.keys(Fe).forEach(me=>{Ue=Ue.replace(`:${me}`,Fe[me])}),Ue},Ae=Fe=>{const{prefixCls:Ce,separator:Ue="/",style:me,className:Me,rootClassName:fe,routes:Ee,items:rt,children:ot,itemRender:We,params:et={}}=Fe,_t=Pe(Fe,["prefixCls","separator","style","className","rootClassName","routes","items","children","itemRender","params"]),{getPrefixCls:Ot,direction:Pt,breadcrumb:cr}=re.useContext(S.E_);let nr;const br=Ot("breadcrumb",Ce),[sr,k]=se(br),Xe=Be(rt,Ee),N=U(br,We);if(Xe&&Xe.length>0){const C=[],ee=rt||Ee;nr=Xe.map((Se,H)=>{const{path:ne,key:Qe,type:we,menu:ye,overlay:je,onClick:mt,className:ge,separator:st,dropdownProps:ze}=Se,Ie=q(et,ne);Ie!==void 0&&C.push(Ie);const Le=Qe!=null?Qe:H;if(we==="separator")return re.createElement($,{key:Le},st);const ct={},Tt=H===Xe.length-1;ye?ct.menu=ye:je&&(ct.overlay=je);let{href:Mt}=Se;return C.length&&Ie!==void 0&&(Mt=`#/${C.join("/")}`),re.createElement(Y,Object.assign({key:Le},ct,(0,De.Z)(Se,{data:!0,aria:!0}),{className:ge,dropdownProps:ze,href:Mt,separator:Tt?"":Ue,onClick:mt,prefixCls:br}),N(Se,et,ee,C,Mt))})}else if(ot){const C=(0,T.Z)(ot).length;nr=(0,T.Z)(ot).map((ee,Se)=>{if(!ee)return ee;const H=Se===C-1;return(0,W.Tm)(ee,{separator:H?"":Ue,key:Se})})}const b=ue()(br,cr==null?void 0:cr.className,{[`${br}-rtl`]:Pt==="rtl"},Me,fe,k),f=Object.assign(Object.assign({},cr==null?void 0:cr.style),me);return sr(re.createElement("nav",Object.assign({className:b,style:f},_t),re.createElement("ol",null,nr)))};Ae.Item=ae,Ae.Separator=$;var D=Ae,Je=D},24905:function(dn,Ut,x){"use strict";x.d(Ut,{default:function(){return se}});var ve=x(92310),ue=x.n(ve),T=x(5630),De=x(59301),re=x(36355),W=x(1684),S=x(32441),I=De.createContext(null),g=x(98447),$=x(14088),_=x(4572),F=function(he,Ne){var Be={};for(var Pe in he)Object.prototype.hasOwnProperty.call(he,Pe)&&Ne.indexOf(Pe)<0&&(Be[Pe]=he[Pe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,Pe=Object.getOwnPropertySymbols(he);q<Pe.length;q++)Ne.indexOf(Pe[q])<0&&Object.prototype.propertyIsEnumerable.call(he,Pe[q])&&(Be[Pe[q]]=he[Pe[q]]);return Be};const P=(he,Ne)=>{var Be;const{prefixCls:Pe,className:q,rootClassName:Ae,children:D,indeterminate:Je=!1,style:Fe,onMouseEnter:Ce,onMouseLeave:Ue,skipGroup:me=!1,disabled:Me}=he,fe=F(he,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:Ee,direction:rt,checkbox:ot}=De.useContext(re.E_),We=De.useContext(I),{isFormItemInput:et}=De.useContext(S.aM),_t=De.useContext(W.Z),Ot=(Be=(We==null?void 0:We.disabled)||Me)!==null&&Be!==void 0?Be:_t,Pt=De.useRef(fe.value);De.useEffect(()=>{We==null||We.registerValue(fe.value)},[]),De.useEffect(()=>{if(!me)return fe.value!==Pt.current&&(We==null||We.cancelValue(Pt.current),We==null||We.registerValue(fe.value),Pt.current=fe.value),()=>We==null?void 0:We.cancelValue(fe.value)},[fe.value]);const cr=Ee("checkbox",Pe),[nr,br]=(0,g.ZP)(cr),sr=Object.assign({},fe);We&&!me&&(sr.onChange=function(){fe.onChange&&fe.onChange.apply(fe,arguments),We.toggleOption&&We.toggleOption({label:D,value:fe.value})},sr.name=We.name,sr.checked=We.value.includes(fe.value));const k=ue()(`${cr}-wrapper`,{[`${cr}-rtl`]:rt==="rtl",[`${cr}-wrapper-checked`]:sr.checked,[`${cr}-wrapper-disabled`]:Ot,[`${cr}-wrapper-in-form-item`]:et},ot==null?void 0:ot.className,q,Ae,br),Xe=ue()({[`${cr}-indeterminate`]:Je},_.A,br),N=Je?"mixed":void 0;return nr(De.createElement($.Z,{component:"Checkbox",disabled:Ot},De.createElement("label",{className:k,style:Object.assign(Object.assign({},ot==null?void 0:ot.style),Fe),onMouseEnter:Ce,onMouseLeave:Ue},De.createElement(T.Z,Object.assign({"aria-checked":N},sr,{prefixCls:cr,className:Xe,disabled:Ot,ref:Ne})),D!==void 0&&De.createElement("span",null,D))))};var M=De.forwardRef(P),Y=x(94480),Q=x(2738),ae=function(he,Ne){var Be={};for(var Pe in he)Object.prototype.hasOwnProperty.call(he,Pe)&&Ne.indexOf(Pe)<0&&(Be[Pe]=he[Pe]);if(he!=null&&typeof Object.getOwnPropertySymbols=="function")for(var q=0,Pe=Object.getOwnPropertySymbols(he);q<Pe.length;q++)Ne.indexOf(Pe[q])<0&&Object.prototype.propertyIsEnumerable.call(he,Pe[q])&&(Be[Pe[q]]=he[Pe[q]]);return Be};const ie=(he,Ne)=>{const{defaultValue:Be,children:Pe,options:q=[],prefixCls:Ae,className:D,rootClassName:Je,style:Fe,onChange:Ce}=he,Ue=ae(he,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:me,direction:Me}=De.useContext(re.E_),[fe,Ee]=De.useState(Ue.value||Be||[]),[rt,ot]=De.useState([]);De.useEffect(()=>{"value"in Ue&&Ee(Ue.value||[])},[Ue.value]);const We=De.useMemo(()=>q.map(b=>typeof b=="string"||typeof b=="number"?{label:b,value:b}:b),[q]),et=b=>{ot(f=>f.filter(C=>C!==b))},_t=b=>{ot(f=>[].concat((0,Y.Z)(f),[b]))},Ot=b=>{const f=fe.indexOf(b.value),C=(0,Y.Z)(fe);f===-1?C.push(b.value):C.splice(f,1),"value"in Ue||Ee(C),Ce==null||Ce(C.filter(ee=>rt.includes(ee)).sort((ee,Se)=>{const H=We.findIndex(Qe=>Qe.value===ee),ne=We.findIndex(Qe=>Qe.value===Se);return H-ne}))},Pt=me("checkbox",Ae),cr=`${Pt}-group`,[nr,br]=(0,g.ZP)(Pt),sr=(0,Q.Z)(Ue,["value","disabled"]),k=q.length?We.map(b=>De.createElement(M,{prefixCls:Pt,key:b.value.toString(),disabled:"disabled"in b?b.disabled:Ue.disabled,value:b.value,checked:fe.includes(b.value),onChange:b.onChange,className:`${cr}-item`,style:b.style,title:b.title},b.label)):Pe,Xe={toggleOption:Ot,value:fe,disabled:Ue.disabled,name:Ue.name,registerValue:_t,cancelValue:et},N=ue()(cr,{[`${cr}-rtl`]:Me==="rtl"},D,Je,br);return nr(De.createElement("div",Object.assign({className:N,style:Fe},sr,{ref:Ne}),De.createElement(I.Provider,{value:Xe},k)))},J=De.forwardRef(ie);var G=De.memo(J);const j=M;j.Group=G,j.__ANT_CHECKBOX=!0;var se=j},98447:function(dn,Ut,x){"use strict";x.d(Ut,{C2:function(){return re}});var ve=x(17313),ue=x(37613),T=x(83116);const De=W=>{const{checkboxCls:S}=W,m=`${S}-wrapper`;return[{[`${S}-group`]:Object.assign(Object.assign({},(0,ve.Wf)(W)),{display:"inline-flex",flexWrap:"wrap",columnGap:W.marginXS,[`> ${W.antCls}-row`]:{flex:1}}),[m]:Object.assign(Object.assign({},(0,ve.Wf)(W)),{display:"inline-flex",alignItems:"baseline",cursor:"pointer","&:after":{display:"inline-block",width:0,overflow:"hidden",content:"'\\a0'"},[`& + ${m}`]:{marginInlineStart:0},[`&${m}-in-form-item`]:{'input[type="checkbox"]':{width:14,height:14}}}),[S]:Object.assign(Object.assign({},(0,ve.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,ve.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}})},{[`
|
|
|
${m}:not(${m}-disabled),
|
|
|
${S}:not(${S}-disabled)
|
|
|
`]:{[`&:hover ${S}-inner`]:{borderColor:W.colorPrimary}},[`${m}:not(${m}-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}`}}},[`
|
|
|
${m}-checked:not(${m}-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:'""'}}}}},{[`${m}-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 re(W,S){const m=(0,ue.TS)(S,{checkboxCls:`.${W}`,checkboxSize:S.controlInteractiveSize});return[De(m)]}Ut.ZP=(0,T.Z)("Checkbox",(W,S)=>{let{prefixCls:m}=S;return[re(m,W)]})},93891:function(dn,Ut,x){"use strict";var ve=x(59301),ue=x(36355),T=x(64165);const De=re=>{const{componentName:W}=re,{getPrefixCls:S}=(0,ve.useContext)(ue.E_),m=S("empty");switch(W){case"Table":case"List":return ve.createElement(T.Z,{image:T.Z.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ve.createElement(T.Z,{image:T.Z.PRESENTED_IMAGE_SIMPLE,className:`${m}-small`});default:return ve.createElement(T.Z,null)}};Ut.Z=De},28103:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return _}});var ve=x(92310),ue=x.n(ve),T=x(59301),De=x(36355),re=x(17313),W=x(83116),S=x(37613);const m=F=>{const{componentCls:P,sizePaddingEdgeHorizontal:U,colorSplit:M,lineWidth:Y,textPaddingInline:Q,orientationMargin:ae,verticalMarginInline:ie}=F;return{[P]:Object.assign(Object.assign({},(0,re.Wf)(F)),{borderBlockStart:`${Y}px solid ${M}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:ie,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Y}px solid ${M}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${F.dividerHorizontalGutterMargin}px 0`},[`&-horizontal${P}-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 ${M}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Y}px solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${P}-with-text-left`]:{"&::before":{width:`${ae*100}%`},"&::after":{width:`${100-ae*100}%`}},[`&-horizontal${P}-with-text-right`]:{"&::before":{width:`${100-ae*100}%`},"&::after":{width:`${ae*100}%`}},[`${P}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:Q},"&-dashed":{background:"none",borderColor:M,borderStyle:"dashed",borderWidth:`${Y}px 0 0`},[`&-horizontal${P}-with-text${P}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${P}-dashed`]:{borderInlineStartWidth:Y,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${P}-with-text`]:{color:F.colorText,fontWeight:"normal",fontSize:F.fontSize},[`&-horizontal${P}-with-text-left${P}-no-default-orientation-margin-left`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${P}-inner-text`]:{paddingInlineStart:U}},[`&-horizontal${P}-with-text-right${P}-no-default-orientation-margin-right`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${P}-inner-text`]:{paddingInlineEnd:U}}})}};var I=(0,W.Z)("Divider",F=>{const P=(0,S.TS)(F,{dividerHorizontalWithTextGutterMargin:F.margin,dividerHorizontalGutterMargin:F.marginLG,sizePaddingEdgeHorizontal:0});return[m(P)]},F=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:F.marginXS})),g=function(F,P){var U={};for(var M in F)Object.prototype.hasOwnProperty.call(F,M)&&P.indexOf(M)<0&&(U[M]=F[M]);if(F!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Y=0,M=Object.getOwnPropertySymbols(F);Y<M.length;Y++)P.indexOf(M[Y])<0&&Object.prototype.propertyIsEnumerable.call(F,M[Y])&&(U[M[Y]]=F[M[Y]]);return U},_=F=>{const{getPrefixCls:P,direction:U,divider:M}=T.useContext(De.E_),{prefixCls:Y,type:Q="horizontal",orientation:ae="center",orientationMargin:ie,className:J,rootClassName:G,children:j,dashed:se,plain:he,style:Ne}=F,Be=g(F,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","plain","style"]),Pe=P("divider",Y),[q,Ae]=I(Pe),D=ae.length>0?`-${ae}`:ae,Je=!!j,Fe=ae==="left"&&ie!=null,Ce=ae==="right"&&ie!=null,Ue=ue()(Pe,M==null?void 0:M.className,Ae,`${Pe}-${Q}`,{[`${Pe}-with-text`]:Je,[`${Pe}-with-text${D}`]:Je,[`${Pe}-dashed`]:!!se,[`${Pe}-plain`]:!!he,[`${Pe}-rtl`]:U==="rtl",[`${Pe}-no-default-orientation-margin-left`]:Fe,[`${Pe}-no-default-orientation-margin-right`]:Ce},J,G),me=T.useMemo(()=>typeof ie=="number"?ie:/^\d+$/.test(ie)?Number(ie):ie,[ie]),Me=Object.assign(Object.assign({},Fe&&{marginLeft:me}),Ce&&{marginRight:me});return q(T.createElement("div",Object.assign({className:Ue,style:Object.assign(Object.assign({},M==null?void 0:M.style),Ne)},Be,{role:"separator"}),j&&Q!=="vertical"&&T.createElement("span",{className:`${Pe}-inner-text`,style:Me},j)))}},91857:function(dn,Ut,x){"use strict";var ve=x(59301),ue=x(38819),T=x(92310),De=x.n(T),re=x(31561),W=x(70425),S=x(18929),m=x(2738),I=x(79676),g=x(53487),$=x(92343),_=x(36355),F=x(20834),P=x(40875),U=x(88088),M=x(47211);const Y=null,Q=G=>{const{menu:j,arrow:se,prefixCls:he,children:Ne,trigger:Be,disabled:Pe,dropdownRender:q,getPopupContainer:Ae,overlayClassName:D,rootClassName:Je,open:Fe,onOpenChange:Ce,visible:Ue,onVisibleChange:me,mouseEnterDelay:Me=.15,mouseLeaveDelay:fe=.1,autoAdjustOverflow:Ee=!0,placement:rt="",overlay:ot,transitionName:We}=G,{getPopupContainer:et,getPrefixCls:_t,direction:Ot}=ve.useContext(_.E_),Pt=ve.useMemo(()=>{const ye=_t();return We!==void 0?We:rt.includes("top")?`${ye}-slide-down`:`${ye}-slide-up`},[_t,rt,We]),cr=ve.useMemo(()=>rt?rt.includes("Center")?rt.slice(0,rt.indexOf("Center")):rt:Ot==="rtl"?"bottomRight":"bottomLeft",[rt,Ot]),nr=_t("dropdown",he),[br,sr]=(0,M.Z)(nr),[,k]=(0,U.Z)(),Xe=ve.Children.only(Ne),N=(0,$.Tm)(Xe,{className:De()(`${nr}-trigger`,{[`${nr}-rtl`]:Ot==="rtl"},Xe.props.className),disabled:Pe}),b=Pe?[]:Be;let f;b&&b.includes("contextMenu")&&(f=!0);const[C,ee]=(0,S.Z)(!1,{value:Fe!=null?Fe:Ue}),Se=(0,W.useEvent)(ye=>{Ce==null||Ce(ye),me==null||me(ye),ee(ye)}),H=De()(D,Je,sr,{[`${nr}-rtl`]:Ot==="rtl"}),ne=(0,I.Z)({arrowPointAtCenter:typeof se=="object"&&se.pointAtCenter,autoAdjustOverflow:Ee,offset:k.marginXXS,arrowWidth:se?k.sizePopupArrow:0,borderRadius:k.borderRadius}),Qe=ve.useCallback(()=>{ee(!1)},[]),we=()=>{let ye;return j!=null&&j.items?ye=ve.createElement(F.default,Object.assign({},j)):typeof ot=="function"?ye=ot():ye=ot,q&&(ye=q(ye)),ye=ve.Children.only(typeof ye=="string"?ve.createElement("span",null,ye):ye),ve.createElement(P.J,{prefixCls:`${nr}-menu`,expandIcon:ve.createElement("span",{className:`${nr}-menu-submenu-arrow`},ve.createElement(ue.Z,{className:`${nr}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:Qe,validator:je=>{let{mode:mt}=je}},ye)};return br(ve.createElement(re.Z,Object.assign({alignPoint:f},(0,m.Z)(G,["rootClassName"]),{mouseEnterDelay:Me,mouseLeaveDelay:fe,visible:C,builtinPlacements:ne,arrow:!!se,overlayClassName:H,prefixCls:nr,getPopupContainer:Ae||et,transitionName:Pt,trigger:b,overlay:we,placement:cr,onVisibleChange:Se}),N))};function ae(G){return Object.assign(Object.assign({},G),{align:{overflow:{adjustX:!1,adjustY:!1}}})}const ie=(0,g.Z)(Q,"dropdown",G=>G,ae),J=G=>ve.createElement(ie,Object.assign({},G),ve.createElement("span",null));Q._InternalPanelDoNotUseOrYouWillBeFired=J,Ut.Z=Q},38854:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return U}});var ve=x(91857),ue=x(92310),T=x.n(ue),De=x(59301),re=x(18785),W=x(3113),S=x(36355),m=x(81327),I=x(33234),g=x(47211),$=function(M,Y){var Q={};for(var ae in M)Object.prototype.hasOwnProperty.call(M,ae)&&Y.indexOf(ae)<0&&(Q[ae]=M[ae]);if(M!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ie=0,ae=Object.getOwnPropertySymbols(M);ie<ae.length;ie++)Y.indexOf(ae[ie])<0&&Object.prototype.propertyIsEnumerable.call(M,ae[ie])&&(Q[ae[ie]]=M[ae[ie]]);return Q};const _=M=>{const{getPopupContainer:Y,getPrefixCls:Q,direction:ae}=De.useContext(S.E_),{prefixCls:ie,type:J="default",danger:G,disabled:j,loading:se,onClick:he,htmlType:Ne,children:Be,className:Pe,menu:q,arrow:Ae,autoFocus:D,overlay:Je,trigger:Fe,align:Ce,open:Ue,onOpenChange:me,placement:Me,getPopupContainer:fe,href:Ee,icon:rt=De.createElement(re.Z,null),title:ot,buttonsRender:We=we=>we,mouseEnterDelay:et,mouseLeaveDelay:_t,overlayClassName:Ot,overlayStyle:Pt,destroyPopupOnHide:cr,dropdownRender:nr}=M,br=$(M,["prefixCls","type","danger","disabled","loading","onClick","htmlType","children","className","menu","arrow","autoFocus","overlay","trigger","align","open","onOpenChange","placement","getPopupContainer","href","icon","title","buttonsRender","mouseEnterDelay","mouseLeaveDelay","overlayClassName","overlayStyle","destroyPopupOnHide","dropdownRender"]),sr=Q("dropdown",ie),k=`${sr}-button`,[Xe,N]=(0,g.Z)(sr),b={menu:q,arrow:Ae,autoFocus:D,align:Ce,disabled:j,trigger:j?[]:Fe,onOpenChange:me,getPopupContainer:fe||Y,mouseEnterDelay:et,mouseLeaveDelay:_t,overlayClassName:Ot,overlayStyle:Pt,destroyPopupOnHide:cr,dropdownRender:nr},{compactSize:f,compactItemClassnames:C}=(0,I.ri)(sr,ae),ee=T()(k,C,Pe,N);"overlay"in M&&(b.overlay=Je),"open"in M&&(b.open=Ue),"placement"in M?b.placement=Me:b.placement=ae==="rtl"?"bottomLeft":"bottomRight";const Se=De.createElement(W.ZP,{type:J,danger:G,disabled:j,loading:se,onClick:he,htmlType:Ne,href:Ee,title:ot},Be),H=De.createElement(W.ZP,{type:J,danger:G,icon:rt}),[ne,Qe]=We([Se,H]);return Xe(De.createElement(m.Z.Compact,Object.assign({className:ee,size:f,block:!0},br),ne,De.createElement(ve.Z,Object.assign({},b),Qe)))};_.__ANT_BUTTON=!0;var F=_;const P=ve.Z;P.Button=F;var U=P},47211:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return $}});var ve=x(17313),ue=x(13826),T=x(92899),De=x(29878),re=x(19447),W=x(83116),S=x(37613),I=_=>{const{componentCls:F,menuCls:P,colorError:U,colorTextLightSolid:M}=_,Y=`${P}-item`;return{[`${F}, ${F}-menu-submenu`]:{[`${P} ${Y}`]:{[`&${Y}-danger:not(${Y}-disabled)`]:{color:U,"&:hover":{color:M,backgroundColor:U}}}}}};const g=_=>{const{componentCls:F,menuCls:P,zIndexPopup:U,dropdownArrowDistance:M,sizePopupArrow:Y,antCls:Q,iconCls:ae,motionDurationMid:ie,dropdownPaddingVertical:J,fontSize:G,dropdownEdgeChildPadding:j,colorTextDisabled:se,fontSizeIcon:he,controlPaddingHorizontal:Ne,colorBgElevated:Be}=_;return[{[F]:Object.assign(Object.assign({},(0,ve.Wf)(_)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:U,display:"block","&::before":{position:"absolute",insetBlock:-M+Y/2,zIndex:-9999,opacity:1e-4,content:'""'},[`&-trigger${Q}-btn`]:{[`& > ${ae}-down, & > ${Q}-btn-icon > ${ae}-down`]:{fontSize:he}},[`${F}-wrap`]:{position:"relative",[`${Q}-btn > ${ae}-down`]:{fontSize:he},[`${ae}-down::before`]:{transition:`transform ${ie}`}},[`${F}-wrap-open`]:{[`${ae}-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:ue.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:ue.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:ue.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:ue.ly}})},(0,re.ZP)(_,{colorBg:Be,limitVerticalRadius:!0,arrowPlacement:{top:!0,bottom:!0}}),{[`${F} ${P}`]:{position:"relative",margin:0},[`${P}-submenu-popup`]:{position:"absolute",zIndex:U,background:"transparent",boxShadow:"none",transformOrigin:"0 0","ul, li":{listStyle:"none",margin:0}},[`${F}, ${F}-menu-submenu`]:{[P]:Object.assign(Object.assign({padding:j,listStyleType:"none",backgroundColor:Be,backgroundClip:"padding-box",borderRadius:_.borderRadiusLG,outline:"none",boxShadow:_.boxShadowSecondary},(0,ve.Qy)(_)),{[`${P}-item-group-title`]:{padding:`${J}px ${Ne}px`,color:_.colorTextDescription,transition:`all ${ie}`},[`${P}-item`]:{position:"relative",display:"flex",alignItems:"center"},[`${P}-item-icon`]:{minWidth:G,marginInlineEnd:_.marginXS,fontSize:_.fontSizeSM},[`${P}-title-content`]:{flex:"auto","> a":{color:"inherit",transition:`all ${ie}`,"&:hover":{color:"inherit"},"&::after":{position:"absolute",inset:0,content:'""'}}},[`${P}-item, ${P}-submenu-title`]:Object.assign(Object.assign({clear:"both",margin:0,padding:`${J}px ${Ne}px`,color:_.colorText,fontWeight:"normal",fontSize:G,lineHeight:_.lineHeight,cursor:"pointer",transition:`all ${ie}`,borderRadius:_.borderRadiusSM,"&:hover, &-active":{backgroundColor:_.controlItemBgHover}},(0,ve.Qy)(_)),{"&-selected":{color:_.colorPrimary,backgroundColor:_.controlItemBgActive,"&:hover, &-active":{backgroundColor:_.controlItemBgActiveHover}},"&-disabled":{color:se,cursor:"not-allowed","&:hover":{color:se,backgroundColor:Be,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:he,fontStyle:"normal"}}}),[`${P}-item-group-list`]:{margin:`0 ${_.marginXS}px`,padding:0,listStyle:"none"},[`${P}-submenu-title`]:{paddingInlineEnd:Ne+_.fontSizeSM},[`${P}-submenu-vertical`]:{position:"relative"},[`${P}-submenu${P}-submenu-disabled ${F}-menu-submenu-title`]:{[`&, ${F}-menu-submenu-arrow-icon`]:{color:se,backgroundColor:Be,cursor:"not-allowed"}},[`${P}-submenu-selected ${F}-menu-submenu-title`]:{color:_.colorPrimary}})}},[(0,ue.oN)(_,"slide-up"),(0,ue.oN)(_,"slide-down"),(0,T.Fm)(_,"move-up"),(0,T.Fm)(_,"move-down"),(0,De._y)(_,"zoom-big")]]};var $=(0,W.Z)("Dropdown",(_,F)=>{let{rootPrefixCls:P}=F;const{marginXXS:U,sizePopupArrow:M,controlHeight:Y,fontSize:Q,lineHeight:ae,paddingXXS:ie,componentCls:J,borderRadiusLG:G}=_,j=(Y-Q*ae)/2,{dropdownArrowOffset:se}=(0,re.fS)({contentRadius:G}),he=(0,S.TS)(_,{menuCls:`${J}-menu`,rootPrefixCls:P,dropdownArrowDistance:M/2+U,dropdownArrowOffset:se,dropdownPaddingVertical:j,dropdownEdgeChildPadding:ie});return[g(he),I(he)]},_=>({zIndexPopup:_.zIndexPopupBase+50}))},64165:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return ie}});var ve=x(92310),ue=x.n(ve),T=x(59301),De=x(36355),re=x(9763),W=x(64993),S=x(88088),I=()=>{const[,J]=(0,S.Z)(),j=new W.C(J.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return T.createElement("svg",{style:j,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},T.createElement("g",{fill:"none",fillRule:"evenodd"},T.createElement("g",{transform:"translate(24 31.67)"},T.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),T.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"}),T.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)"}),T.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"}),T.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"})),T.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"}),T.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},T.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),T.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},$=()=>{const[,J]=(0,S.Z)(),{colorFill:G,colorFillTertiary:j,colorFillQuaternary:se,colorBgContainer:he}=J,{borderColor:Ne,shadowColor:Be,contentColor:Pe}=(0,T.useMemo)(()=>({borderColor:new W.C(G).onBackground(he).toHexShortString(),shadowColor:new W.C(j).onBackground(he).toHexShortString(),contentColor:new W.C(se).onBackground(he).toHexShortString()}),[G,j,se,he]);return T.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},T.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},T.createElement("ellipse",{fill:Be,cx:"32",cy:"33",rx:"32",ry:"7"}),T.createElement("g",{fillRule:"nonzero",stroke:Ne},T.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"}),T.createElement("path",{d:"M41.613 15.931c0-1.605.994-2.93 2.227-2.931H55v18.137C55 33.26 53.68 35 52.05 35h-40.1C10.32 35 9 33.259 9 31.137V13h11.16c1.233 0 2.227 1.323 2.227 2.928v.022c0 1.605 1.005 2.901 2.237 2.901h14.752c1.232 0 2.237-1.308 2.237-2.913v-.007z",fill:Pe}))))},_=x(83116),F=x(37613);const P=J=>{const{componentCls:G,margin:j,marginXS:se,marginXL:he,fontSize:Ne,lineHeight:Be}=J;return{[G]:{marginInline:se,fontSize:Ne,lineHeight:Be,textAlign:"center",[`${G}-image`]:{height:J.emptyImgHeight,marginBottom:se,opacity:J.opacityImage,img:{height:"100%"},svg:{maxWidth:"100%",height:"100%",margin:"auto"}},[`${G}-description`]:{color:J.colorText},[`${G}-footer`]:{marginTop:j},"&-normal":{marginBlock:he,color:J.colorTextDisabled,[`${G}-description`]:{color:J.colorTextDisabled},[`${G}-image`]:{height:J.emptyImgHeightMD}},"&-small":{marginBlock:se,color:J.colorTextDisabled,[`${G}-image`]:{height:J.emptyImgHeightSM}}}}};var U=(0,_.Z)("Empty",J=>{const{componentCls:G,controlHeightLG:j}=J,se=(0,F.TS)(J,{emptyImgCls:`${G}-img`,emptyImgHeight:j*2.5,emptyImgHeightMD:j,emptyImgHeightSM:j*.875});return[P(se)]}),M=function(J,G){var j={};for(var se in J)Object.prototype.hasOwnProperty.call(J,se)&&G.indexOf(se)<0&&(j[se]=J[se]);if(J!=null&&typeof Object.getOwnPropertySymbols=="function")for(var he=0,se=Object.getOwnPropertySymbols(J);he<se.length;he++)G.indexOf(se[he])<0&&Object.prototype.propertyIsEnumerable.call(J,se[he])&&(j[se[he]]=J[se[he]]);return j};const Y=T.createElement(I,null),Q=T.createElement($,null),ae=J=>{var{className:G,rootClassName:j,prefixCls:se,image:he=Y,description:Ne,children:Be,imageStyle:Pe,style:q}=J,Ae=M(J,["className","rootClassName","prefixCls","image","description","children","imageStyle","style"]);const{getPrefixCls:D,direction:Je,empty:Fe}=T.useContext(De.E_),Ce=D("empty",se),[Ue,me]=U(Ce),[Me]=(0,re.Z)("Empty"),fe=typeof Ne!="undefined"?Ne:Me==null?void 0:Me.description,Ee=typeof fe=="string"?fe:"empty";let rt=null;return typeof he=="string"?rt=T.createElement("img",{alt:Ee,src:he}):rt=he,Ue(T.createElement("div",Object.assign({className:ue()(me,Ce,Fe==null?void 0:Fe.className,{[`${Ce}-normal`]:he===Q,[`${Ce}-rtl`]:Je==="rtl"},G,j),style:Object.assign(Object.assign({},Fe==null?void 0:Fe.style),q)},Ae),T.createElement("div",{className:`${Ce}-image`,style:Pe},rt),fe&&T.createElement("div",{className:`${Ce}-description`},fe),Be&&T.createElement("div",{className:`${Ce}-footer`},Be)))};ae.PRESENTED_IMAGE_DEFAULT=Y,ae.PRESENTED_IMAGE_SIMPLE=Q;var ie=ae},8628:function(dn,Ut,x){"use strict";var ve=x(59301),ue=x(34280),T=x(56762),De=x(69507);function re(){let W=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;const S=(0,ve.useRef)({}),m=(0,T.Z)(),I=(0,De.ZP)();return(0,ue.Z)(()=>{const g=I.subscribe($=>{S.current=$,W&&m()});return()=>I.unsubscribe(g)},[]),S.current}Ut.Z=re},5871:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return ze}});var ve=x(84105),ue=x(87395),T=x(92310),De=x.n(T),re=x(54476),W=x(20068),S=x(76190),m=x(42978),I=x(75931),g=x(67732),$=x(83652);function _(){return typeof BigInt=="function"}function F(Ie){return!Ie&&Ie!==0&&!Number.isNaN(Ie)||!String(Ie).trim()}function P(Ie){var Le=Ie.trim(),ct=Le.startsWith("-");ct&&(Le=Le.slice(1)),Le=Le.replace(/(\.\d*[^0])0*$/,"$1").replace(/\.0*$/,"").replace(/^0+/,""),Le.startsWith(".")&&(Le="0".concat(Le));var Tt=Le||"0",Mt=Tt.split("."),Yt=Mt[0]||"0",_r=Mt[1]||"0";Yt==="0"&&_r==="0"&&(ct=!1);var Sr=ct?"-":"";return{negative:ct,negativeStr:Sr,trimStr:Tt,integerStr:Yt,decimalStr:_r,fullStr:"".concat(Sr).concat(Tt)}}function U(Ie){var Le=String(Ie);return!Number.isNaN(Number(Le))&&Le.includes("e")}function M(Ie){var Le=String(Ie);if(U(Ie)){var ct=Number(Le.slice(Le.indexOf("e-")+2)),Tt=Le.match(/\.(\d+)/);return Tt!=null&&Tt[1]&&(ct+=Tt[1].length),ct}return Le.includes(".")&&Q(Le)?Le.length-Le.indexOf(".")-1:0}function Y(Ie){var Le=String(Ie);if(U(Ie)){if(Ie>Number.MAX_SAFE_INTEGER)return String(_()?BigInt(Ie).toString():Number.MAX_SAFE_INTEGER);if(Ie<Number.MIN_SAFE_INTEGER)return String(_()?BigInt(Ie).toString():Number.MIN_SAFE_INTEGER);Le=Ie.toFixed(M(Le))}return P(Le).fullStr}function Q(Ie){return typeof Ie=="number"?!Number.isNaN(Ie):Ie?/^\s*-?\d+(\.\d+)?\s*$/.test(Ie)||/^\s*-?\d+\.\s*$/.test(Ie)||/^\s*-?\.\d+\s*$/.test(Ie):!1}var ae=function(){function Ie(Le){if((0,g.Z)(this,Ie),(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(Le)){this.empty=!0;return}if(this.origin=String(Le),Le==="-"||Number.isNaN(Le)){this.nan=!0;return}var ct=Le;if(U(ct)&&(ct=Number(ct)),ct=typeof ct=="string"?ct:Y(ct),Q(ct)){var Tt=P(ct);this.negative=Tt.negative;var Mt=Tt.trimStr.split(".");this.integer=BigInt(Mt[0]);var Yt=Mt[1]||"0";this.decimal=BigInt(Yt),this.decimalLen=Yt.length}else this.nan=!0}return(0,$.Z)(Ie,[{key:"getMark",value:function(){return this.negative?"-":""}},{key:"getIntegerStr",value:function(){return this.integer.toString()}},{key:"getDecimalStr",value:function(){return this.decimal.toString().padStart(this.decimalLen,"0")}},{key:"alignDecimal",value:function(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 Ie(this.toString());return ct.negative=!ct.negative,ct}},{key:"cal",value:function(ct,Tt,Mt){var Yt=Math.max(this.getDecimalStr().length,ct.getDecimalStr().length),_r=this.alignDecimal(Yt),Sr=ct.alignDecimal(Yt),Lr=Tt(_r,Sr).toString(),Er=Mt(Yt),Ar=P(Lr),ar=Ar.negativeStr,Rr=Ar.trimStr,fn="".concat(ar).concat(Rr.padStart(Er+1,"0"));return new Ie("".concat(fn.slice(0,-Er),".").concat(fn.slice(-Er)))}},{key:"add",value:function(ct){if(this.isInvalidate())return new Ie(ct);var Tt=new Ie(ct);return Tt.isInvalidate()?this:this.cal(Tt,function(Mt,Yt){return Mt+Yt},function(Mt){return Mt})}},{key:"multi",value:function(ct){var Tt=new Ie(ct);return this.isInvalidate()||Tt.isInvalidate()?new Ie(NaN):this.cal(Tt,function(Mt,Yt){return Mt*Yt},function(Mt){return Mt*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()?"":P("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),Ie}(),ie=function(){function Ie(Le){if((0,g.Z)(this,Ie),(0,W.Z)(this,"origin",""),(0,W.Z)(this,"number",void 0),(0,W.Z)(this,"empty",void 0),F(Le)){this.empty=!0;return}this.origin=String(Le),this.number=Number(Le)}return(0,$.Z)(Ie,[{key:"negate",value:function(){return new Ie(-this.toNumber())}},{key:"add",value:function(ct){if(this.isInvalidate())return new Ie(ct);var Tt=Number(ct);if(Number.isNaN(Tt))return this;var Mt=this.number+Tt;if(Mt>Number.MAX_SAFE_INTEGER)return new Ie(Number.MAX_SAFE_INTEGER);if(Mt<Number.MIN_SAFE_INTEGER)return new Ie(Number.MIN_SAFE_INTEGER);var Yt=Math.max(M(this.number),M(Tt));return new Ie(Mt.toFixed(Yt))}},{key:"multi",value:function(ct){var Tt=Number(ct);if(this.isInvalidate()||Number.isNaN(Tt))return new Ie(NaN);var Mt=this.number*Tt;if(Mt>Number.MAX_SAFE_INTEGER)return new Ie(Number.MAX_SAFE_INTEGER);if(Mt<Number.MIN_SAFE_INTEGER)return new Ie(Number.MIN_SAFE_INTEGER);var Yt=Math.max(M(this.number),M(Tt));return new Ie(Mt.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()?"":Y(this.number):this.origin}}]),Ie}();function J(Ie){return _()?new ae(Ie):new ie(Ie)}function G(Ie,Le,ct){var Tt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(Ie==="")return"";var Mt=P(Ie),Yt=Mt.negativeStr,_r=Mt.integerStr,Sr=Mt.decimalStr,Lr="".concat(Le).concat(Sr),Er="".concat(Yt).concat(_r);if(ct>=0){var Ar=Number(Sr[ct]);if(Ar>=5&&!Tt){var ar=J(Ie).add("".concat(Yt,"0.").concat("0".repeat(ct)).concat(10-Ar));return G(ar.toString(),Le,ct,Tt)}return ct===0?Er:"".concat(Er).concat(Le).concat(Sr.padEnd(ct,"0").slice(0,ct))}return Lr===".0"?Er:"".concat(Er).concat(Lr)}var j=J,se=x(93681),he=x(34280),Ne=x(8654),Be=x(59301),Pe=x(48736);function q(Ie,Le){var ct=(0,Be.useRef)(null);function Tt(){try{var Yt=Ie.selectionStart,_r=Ie.selectionEnd,Sr=Ie.value,Lr=Sr.substring(0,Yt),Er=Sr.substring(_r);ct.current={start:Yt,end:_r,value:Sr,beforeTxt:Lr,afterTxt:Er}}catch(Ar){}}function Mt(){if(Ie&&ct.current&&Le)try{var Yt=Ie.value,_r=ct.current,Sr=_r.beforeTxt,Lr=_r.afterTxt,Er=_r.start,Ar=Yt.length;if(Yt.endsWith(Lr))Ar=Yt.length-ct.current.afterTxt.length;else if(Yt.startsWith(Sr))Ar=Sr.length;else{var ar=Sr[Er-1],Rr=Yt.indexOf(ar,Er-1);Rr!==-1&&(Ar=Rr+1)}Ie.setSelectionRange(Ar,Ar)}catch(fn){(0,Pe.ZP)(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(fn.message))}}return[Tt,Mt]}var Ae=x(49658),D=function(){var Le=(0,Be.useState)(!1),ct=(0,m.Z)(Le,2),Tt=ct[0],Mt=ct[1];return(0,he.Z)(function(){Mt((0,Ae.Z)())},[]),Tt},Je=D,Fe=x(16089),Ce=200,Ue=600;function me(Ie){var Le=Ie.prefixCls,ct=Ie.upNode,Tt=Ie.downNode,Mt=Ie.upDisabled,Yt=Ie.downDisabled,_r=Ie.onStep,Sr=Be.useRef(),Lr=Be.useRef([]),Er=Be.useRef();Er.current=_r;var Ar=function(){clearTimeout(Sr.current)},ar=function(bi,ua){bi.preventDefault(),Ar(),Er.current(ua);function gi(){Er.current(ua),Sr.current=setTimeout(gi,Ce)}Sr.current=setTimeout(gi,Ue)};Be.useEffect(function(){return function(){Ar(),Lr.current.forEach(function(Or){return Fe.Z.cancel(Or)})}},[]);var Rr=Je();if(Rr)return null;var fn="".concat(Le,"-handler"),En=De()(fn,"".concat(fn,"-up"),(0,W.Z)({},"".concat(fn,"-up-disabled"),Mt)),gn=De()(fn,"".concat(fn,"-down"),(0,W.Z)({},"".concat(fn,"-down-disabled"),Yt)),Rn=function(){return Lr.current.push((0,Fe.Z)(Ar))},ji={unselectable:"on",role:"button",onMouseUp:Rn,onMouseLeave:Rn};return Be.createElement("div",{className:"".concat(fn,"-wrap")},Be.createElement("span",(0,re.Z)({},ji,{onMouseDown:function(bi){ar(bi,!0)},"aria-label":"Increase Value","aria-disabled":Mt,className:En}),ct||Be.createElement("span",{unselectable:"on",className:"".concat(Le,"-handler-up-inner")})),Be.createElement("span",(0,re.Z)({},ji,{onMouseDown:function(bi){ar(bi,!1)},"aria-label":"Decrease Value","aria-disabled":Yt,className:gn}),Tt||Be.createElement("span",{unselectable:"on",className:"".concat(Le,"-handler-down-inner")})))}function Me(Ie){var Le=typeof Ie=="number"?Y(Ie):P(Ie).fullStr,ct=Le.includes(".");return ct?P(Le.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:Ie+"0"}var fe=x(5643),Ee=function(){var Ie=(0,Be.useRef)(0),Le=function(){Fe.Z.cancel(Ie.current)};return(0,Be.useEffect)(function(){return Le},[]),function(ct){Le(),Ie.current=(0,Fe.Z)(function(){ct()})}},rt=["prefixCls","className","style","min","max","step","defaultValue","value","disabled","readOnly","upHandler","downHandler","keyboard","controls","classNames","stringMode","parser","formatter","precision","decimalSeparator","onChange","onInput","onPressEnter","onStep"],ot=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","classes","className","classNames"],We=function(Le,ct){return Le||ct.isEmpty()?ct.toString():ct.toNumber()},et=function(Le){var ct=j(Le);return ct.isInvalidate()?null:ct},_t=Be.forwardRef(function(Ie,Le){var ct,Tt=Ie.prefixCls,Mt=Tt===void 0?"rc-input-number":Tt,Yt=Ie.className,_r=Ie.style,Sr=Ie.min,Lr=Ie.max,Er=Ie.step,Ar=Er===void 0?1:Er,ar=Ie.defaultValue,Rr=Ie.value,fn=Ie.disabled,En=Ie.readOnly,gn=Ie.upHandler,Rn=Ie.downHandler,ji=Ie.keyboard,Or=Ie.controls,bi=Or===void 0?!0:Or,ua=Ie.classNames,gi=Ie.stringMode,ta=Ie.parser,Ji=Ie.formatter,aa=Ie.precision,Io=Ie.decimalSeparator,oa=Ie.onChange,pi=Ie.onInput,Ti=Ie.onPressEnter,zi=Ie.onStep,be=(0,I.Z)(Ie,rt),Oe="".concat(Mt,"-input"),ke=Be.useRef(null),qe=Be.useState(!1),Rt=(0,m.Z)(qe,2),kt=Rt[0],yr=Rt[1],or=Be.useRef(!1),Nr=Be.useRef(!1),zr=Be.useRef(!1),an=Be.useState(function(){return j(Rr!=null?Rr:ar)}),jr=(0,m.Z)(an,2),Qr=jr[0],qr=jr[1];function yn(hn){Rr===void 0&&qr(hn)}var on=Be.useCallback(function(hn,ln){if(!ln)return aa>=0?aa:Math.max(M(hn),M(Ar))},[aa,Ar]),Dn=Be.useCallback(function(hn){var ln=String(hn);if(ta)return ta(ln);var Xn=ln;return Io&&(Xn=Xn.replace(Io,".")),Xn.replace(/[^\w.-]+/g,"")},[ta,Io]),Qn=Be.useRef(""),fi=Be.useCallback(function(hn,ln){if(Ji)return Ji(hn,{userTyping:ln,input:String(Qn.current)});var Xn=typeof hn=="number"?Y(hn):hn;if(!ln){var Kn=on(Xn,ln);if(Q(Xn)&&(Io||Kn>=0)){var Ai=Io||".";Xn=G(Xn,Ai,Kn)}}return Xn},[Ji,on,Io]),On=Be.useState(function(){var hn=ar!=null?ar:Rr;return Qr.isInvalidate()&&["string","number"].includes((0,S.Z)(hn))?Number.isNaN(hn)?"":hn:fi(Qr.toString(),!1)}),An=(0,m.Z)(On,2),Dt=An[0],Kt=An[1];Qn.current=Dt;function Gt(hn,ln){Kt(fi(hn.isInvalidate()?hn.toString(!1):hn.toString(!ln),ln))}var Jt=Be.useMemo(function(){return et(Lr)},[Lr,aa]),Zt=Be.useMemo(function(){return et(Sr)},[Sr,aa]),Dr=Be.useMemo(function(){return!Jt||!Qr||Qr.isInvalidate()?!1:Jt.lessEquals(Qr)},[Jt,Qr]),Fr=Be.useMemo(function(){return!Zt||!Qr||Qr.isInvalidate()?!1:Qr.lessEquals(Zt)},[Zt,Qr]),Xr=q(ke.current,kt),Fn=(0,m.Z)(Xr,2),Nn=Fn[0],si=Fn[1],ti=function(ln){return Jt&&!ln.lessEquals(Jt)?Jt:Zt&&!Zt.lessEquals(ln)?Zt:null},Bi=function(ln){return!ti(ln)},Yn=function(ln,Xn){var Kn=ln,Ai=Bi(Kn)||Kn.isEmpty();if(!Kn.isEmpty()&&!Xn&&(Kn=ti(Kn)||Kn,Ai=!0),!En&&!fn&&Ai){var Wi=Kn.toString(),_i=on(Wi,Xn);return _i>=0&&(Kn=j(G(Wi,".",_i)),Bi(Kn)||(Kn=j(G(Wi,".",_i,!0)))),Kn.equals(Qr)||(yn(Kn),oa==null||oa(Kn.isEmpty()?null:We(gi,Kn)),Rr===void 0&&Gt(Kn,Xn)),Kn}return Qr},jn=Ee(),yi=function hn(ln){if(Nn(),Qn.current=ln,Kt(ln),!Nr.current){var Xn=Dn(ln),Kn=j(Xn);Kn.isNaN()||Yn(Kn,!0)}pi==null||pi(ln),jn(function(){var Ai=ln;ta||(Ai=ln.replace(/。/g,".")),Ai!==ln&&hn(Ai)})},vi=function(){Nr.current=!0},wi=function(){Nr.current=!1,yi(ke.current.value)},li=function(ln){yi(ln.target.value)},xi=function(ln){var Xn;if(!(ln&&Dr||!ln&&Fr)){or.current=!1;var Kn=j(zr.current?Me(Ar):Ar);ln||(Kn=Kn.negate());var Ai=(Qr||j(0)).add(Kn.toString()),Wi=Yn(Ai,!1);zi==null||zi(We(gi,Wi),{offset:zr.current?Me(Ar):Ar,type:ln?"up":"down"}),(Xn=ke.current)===null||Xn===void 0||Xn.focus()}},$i=function(ln){var Xn=j(Dn(Dt)),Kn=Xn;Xn.isNaN()?Kn=Yn(Qr,ln):Kn=Yn(Xn,ln),Rr!==void 0?Gt(Qr,!1):Kn.isNaN()||Gt(Kn,!1)},ei=function(){or.current=!0},Di=function(ln){var Xn=ln.key,Kn=ln.shiftKey;or.current=!0,zr.current=Kn,Xn==="Enter"&&(Nr.current||(or.current=!1),$i(!1),Ti==null||Ti(ln)),ji!==!1&&!Nr.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Xn)&&(xi(Xn==="Up"||Xn==="ArrowUp"),ln.preventDefault())},Ha=function(){or.current=!1,zr.current=!1},oi=function(){$i(!1),yr(!1),or.current=!1};return(0,he.o)(function(){Qr.isInvalidate()||Gt(Qr,!1)},[aa]),(0,he.o)(function(){var hn=j(Rr);qr(hn);var ln=j(Dn(Dt));(!hn.equals(ln)||!or.current||Ji)&&Gt(hn,or.current)},[Rr]),(0,he.o)(function(){Ji&&si()},[Dt]),Be.createElement("div",{className:De()(Mt,ua==null?void 0:ua.input,Yt,(ct={},(0,W.Z)(ct,"".concat(Mt,"-focused"),kt),(0,W.Z)(ct,"".concat(Mt,"-disabled"),fn),(0,W.Z)(ct,"".concat(Mt,"-readonly"),En),(0,W.Z)(ct,"".concat(Mt,"-not-a-number"),Qr.isNaN()),(0,W.Z)(ct,"".concat(Mt,"-out-of-range"),!Qr.isInvalidate()&&!Bi(Qr)),ct)),style:_r,onFocus:function(){yr(!0)},onBlur:oi,onKeyDown:Di,onKeyUp:Ha,onCompositionStart:vi,onCompositionEnd:wi,onBeforeInput:ei},bi&&Be.createElement(me,{prefixCls:Mt,upNode:gn,downNode:Rn,upDisabled:Dr,downDisabled:Fr,onStep:xi}),Be.createElement("div",{className:"".concat(Oe,"-wrap")},Be.createElement("input",(0,re.Z)({autoComplete:"off",role:"spinbutton","aria-valuemin":Sr,"aria-valuemax":Lr,"aria-valuenow":Qr.isInvalidate()?null:Qr.toString(),step:Ar},be,{ref:(0,Ne.sQ)(ke,Le),className:Oe,value:Dt,onChange:li,disabled:fn,readOnly:En}))))}),Ot=Be.forwardRef(function(Ie,Le){var ct=Ie.disabled,Tt=Ie.style,Mt=Ie.prefixCls,Yt=Ie.value,_r=Ie.prefix,Sr=Ie.suffix,Lr=Ie.addonBefore,Er=Ie.addonAfter,Ar=Ie.classes,ar=Ie.className,Rr=Ie.classNames,fn=(0,I.Z)(Ie,ot),En=Be.useRef(null),gn=function(ji){En.current&&(0,fe.nH)(En.current,ji)};return Be.createElement(se.BaseInput,{inputElement:Be.createElement(_t,(0,re.Z)({prefixCls:Mt,disabled:ct,classNames:Rr,ref:(0,Ne.sQ)(En,Le)},fn)),className:ar,triggerFocus:gn,prefixCls:Mt,value:Yt,disabled:ct,style:Tt,prefix:_r,suffix:Sr,addonAfter:Er,addonBefore:Lr,classes:Ar,classNames:Rr,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"}})});Ot.displayName="InputNumber";var Pt=Ot,cr=Pt,nr=x(19080),br=x(36355),sr=x(92736),k=x(1684),Xe=x(19716),N=x(32441),b=x(33234),f=x(9937),C=x(17313),ee=x(74207),Se=x(83116),H=x(37613);const ne=(Ie,Le)=>{let{componentCls:ct,borderRadiusSM:Tt,borderRadiusLG:Mt}=Ie;const Yt=Le==="lg"?Mt:Tt;return{[`&-${Le}`]:{[`${ct}-handler-wrap`]:{borderStartEndRadius:Yt,borderEndEndRadius:Yt},[`${ct}-handler-up`]:{borderStartEndRadius:Yt},[`${ct}-handler-down`]:{borderEndEndRadius:Yt}}}},Qe=Ie=>{const{componentCls:Le,lineWidth:ct,lineType:Tt,colorBorder:Mt,borderRadius:Yt,fontSizeLG:_r,controlHeightLG:Sr,controlHeightSM:Lr,colorError:Er,paddingInlineSM:Ar,colorTextDescription:ar,motionDurationMid:Rr,handleHoverColor:fn,paddingInline:En,paddingBlock:gn,handleBg:Rn,handleActiveBg:ji,colorTextDisabled:Or,borderRadiusSM:bi,borderRadiusLG:ua,controlWidth:gi,handleVisible:ta,handleBorderColor:Ji}=Ie;return[{[Le]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Ie)),(0,f.ik)(Ie)),(0,f.bi)(Ie,Le)),{display:"inline-block",width:gi,margin:0,padding:0,border:`${ct}px ${Tt} ${Mt}`,borderRadius:Yt,"&-rtl":{direction:"rtl",[`${Le}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:_r,borderRadius:ua,[`input${Le}-input`]:{height:Sr-2*ct}},"&-sm":{padding:0,borderRadius:bi,[`input${Le}-input`]:{height:Lr-2*ct,padding:`0 ${Ar}px`}},"&:hover":Object.assign({},(0,f.pU)(Ie)),"&-focused":Object.assign({},(0,f.M1)(Ie)),"&-out-of-range":{[`${Le}-input-wrap`]:{input:{color:Er}}},"&-group":Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Ie)),(0,f.s7)(Ie)),{"&-wrapper":{display:"inline-block",textAlign:"start",verticalAlign:"top",[`${Le}-affix-wrapper`]:{width:"100%"},"&-lg":{[`${Le}-group-addon`]:{borderRadius:ua,fontSize:Ie.fontSizeLG}},"&-sm":{[`${Le}-group-addon`]:{borderRadius:bi}},[`${Le}-wrapper-disabled > ${Le}-group-addon`]:Object.assign({},(0,f.Xy)(Ie))}}),[`&-disabled ${Le}-input`]:{cursor:"not-allowed"},[Le]:{"&-input":Object.assign(Object.assign(Object.assign(Object.assign({},(0,C.Wf)(Ie)),{width:"100%",padding:`${gn}px ${En}px`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:Yt,outline:0,transition:`all ${Rr} linear`,appearance:"textfield",fontSize:"inherit"}),(0,f.nz)(Ie.colorTextPlaceholder)),{'&[type="number"]::-webkit-inner-spin-button, &[type="number"]::-webkit-outer-spin-button':{margin:0,webkitAppearance:"none",appearance:"none"}})}})},{[Le]:Object.assign(Object.assign(Object.assign({[`&:hover ${Le}-handler-wrap, &-focused ${Le}-handler-wrap`]:{opacity:1},[`${Le}-handler-wrap`]:{position:"absolute",insetBlockStart:0,insetInlineEnd:0,width:Ie.handleWidth,height:"100%",background:Rn,borderStartStartRadius:0,borderStartEndRadius:Yt,borderEndEndRadius:Yt,borderEndStartRadius:0,opacity:ta===!0?1:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`opacity ${Rr} linear ${Rr}`,[`${Le}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
|
|
|
${Le}-handler-up-inner,
|
|
|
${Le}-handler-down-inner
|
|
|
`]:{marginInlineEnd:0,fontSize:Ie.handleFontSize}}},[`${Le}-handler`]:{height:"50%",overflow:"hidden",color:ar,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${ct}px ${Tt} ${Ji}`,transition:`all ${Rr} linear`,"&:active":{background:ji},"&:hover":{height:"60%",[`
|
|
|
${Le}-handler-up-inner,
|
|
|
${Le}-handler-down-inner
|
|
|
`]:{color:fn}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},(0,C.Ro)()),{color:ar,transition:`all ${Rr} linear`,userSelect:"none"})},[`${Le}-handler-up`]:{borderStartEndRadius:Yt},[`${Le}-handler-down`]:{borderBlockStart:`${ct}px ${Tt} ${Ji}`,borderEndEndRadius:Yt}},ne(Ie,"lg")),ne(Ie,"sm")),{"&-disabled, &-readonly":{[`${Le}-handler-wrap`]:{display:"none"},[`${Le}-input`]:{color:"inherit"}},[`
|
|
|
${Le}-handler-up-disabled,
|
|
|
${Le}-handler-down-disabled
|
|
|
`]:{cursor:"not-allowed"},[`
|
|
|
${Le}-handler-up-disabled:hover &-handler-up-inner,
|
|
|
${Le}-handler-down-disabled:hover &-handler-down-inner
|
|
|
`]:{color:Or}})},{[`${Le}-borderless`]:{borderColor:"transparent",boxShadow:"none",[`${Le}-handler-down`]:{borderBlockStartWidth:0}}}]},we=Ie=>{const{componentCls:Le,paddingBlock:ct,paddingInline:Tt,inputAffixPadding:Mt,controlWidth:Yt,borderRadiusLG:_r,borderRadiusSM:Sr}=Ie;return{[`${Le}-affix-wrapper`]:Object.assign(Object.assign(Object.assign({},(0,f.ik)(Ie)),(0,f.bi)(Ie,`${Le}-affix-wrapper`)),{position:"relative",display:"inline-flex",width:Yt,padding:0,paddingInlineStart:Tt,"&-lg":{borderRadius:_r},"&-sm":{borderRadius:Sr},[`&:not(${Le}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},(0,f.pU)(Ie)),{zIndex:1}),"&-focused, &:focus":{zIndex:1},[`&-disabled > ${Le}-disabled`]:{background:"transparent"},[`> div${Le}`]:{width:"100%",border:"none",outline:"none",[`&${Le}-focused`]:{boxShadow:"none !important"}},[`input${Le}-input`]:{padding:`${ct}px 0`},"&::before":{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'},[`${Le}-handler-wrap`]:{zIndex:2},[Le]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center",pointerEvents:"none"},"&-prefix":{marginInlineEnd:Mt},"&-suffix":{position:"absolute",insetBlockStart:0,insetInlineEnd:0,zIndex:1,height:"100%",marginInlineEnd:Tt,marginInlineStart:Mt}}})}};var ye=(0,Se.Z)("InputNumber",Ie=>{const Le=(0,H.TS)(Ie,(0,f.e5)(Ie));return[Qe(Le),we(Le),(0,ee.c)(Le)]},Ie=>Object.assign(Object.assign({},(0,f.TM)(Ie)),{controlWidth:90,handleWidth:Ie.controlHeightSM-Ie.lineWidth*2,handleFontSize:Ie.fontSize/2,handleVisible:"auto",handleActiveBg:Ie.colorFillAlter,handleBg:Ie.colorBgContainer,handleHoverColor:Ie.colorPrimary,handleBorderColor:Ie.colorBorder})),je=function(Ie,Le){var ct={};for(var Tt in Ie)Object.prototype.hasOwnProperty.call(Ie,Tt)&&Le.indexOf(Tt)<0&&(ct[Tt]=Ie[Tt]);if(Ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Mt=0,Tt=Object.getOwnPropertySymbols(Ie);Mt<Tt.length;Mt++)Le.indexOf(Tt[Mt])<0&&Object.prototype.propertyIsEnumerable.call(Ie,Tt[Mt])&&(ct[Tt[Mt]]=Ie[Tt[Mt]]);return ct};const mt=Be.forwardRef((Ie,Le)=>{const{getPrefixCls:ct,direction:Tt}=Be.useContext(br.E_),Mt=Be.useRef(null);Be.useImperativeHandle(Le,()=>Mt.current);const{className:Yt,rootClassName:_r,size:Sr,disabled:Lr,prefixCls:Er,addonBefore:Ar,addonAfter:ar,prefix:Rr,bordered:fn=!0,readOnly:En,status:gn,controls:Rn}=Ie,ji=je(Ie,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","bordered","readOnly","status","controls"]),Or=ct("input-number",Er),[bi,ua]=ye(Or),{compactSize:gi,compactItemClassnames:ta}=(0,b.ri)(Or,Tt);let Ji=Be.createElement(ue.Z,{className:`${Or}-handler-up-inner`}),aa=Be.createElement(ve.Z,{className:`${Or}-handler-down-inner`});const Io=typeof Rn=="boolean"?Rn:void 0;typeof Rn=="object"&&(Ji=typeof Rn.upIcon=="undefined"?Ji:Be.createElement("span",{className:`${Or}-handler-up-inner`},Rn.upIcon),aa=typeof Rn.downIcon=="undefined"?aa:Be.createElement("span",{className:`${Or}-handler-down-inner`},Rn.downIcon));const{hasFeedback:oa,status:pi,isFormItemInput:Ti,feedbackIcon:zi}=Be.useContext(N.aM),be=(0,nr.F)(pi,gn),Oe=(0,Xe.Z)(or=>{var Nr;return(Nr=Sr!=null?Sr:gi)!==null&&Nr!==void 0?Nr:or}),ke=Be.useContext(k.Z),qe=Lr!=null?Lr:ke,Rt=De()({[`${Or}-lg`]:Oe==="large",[`${Or}-sm`]:Oe==="small",[`${Or}-rtl`]:Tt==="rtl",[`${Or}-borderless`]:!fn,[`${Or}-in-form-item`]:Ti},(0,nr.Z)(Or,be),ta,ua),kt=`${Or}-group`,yr=Be.createElement(cr,Object.assign({ref:Mt,disabled:qe,className:De()(Yt,_r),upHandler:Ji,downHandler:aa,prefixCls:Or,readOnly:En,controls:Io,prefix:Rr,suffix:oa&&zi,addonAfter:ar&&Be.createElement(b.BR,null,Be.createElement(N.Ux,{override:!0,status:!0},ar)),addonBefore:Ar&&Be.createElement(b.BR,null,Be.createElement(N.Ux,{override:!0,status:!0},Ar)),classNames:{input:Rt},classes:{affixWrapper:De()((0,nr.Z)(`${Or}-affix-wrapper`,be,oa),{[`${Or}-affix-wrapper-sm`]:Oe==="small",[`${Or}-affix-wrapper-lg`]:Oe==="large",[`${Or}-affix-wrapper-rtl`]:Tt==="rtl",[`${Or}-affix-wrapper-borderless`]:!fn},ua),wrapper:De()({[`${kt}-rtl`]:Tt==="rtl",[`${Or}-wrapper-disabled`]:qe},ua),group:De()({[`${Or}-group-wrapper-sm`]:Oe==="small",[`${Or}-group-wrapper-lg`]:Oe==="large",[`${Or}-group-wrapper-rtl`]:Tt==="rtl"},(0,nr.Z)(`${Or}-group-wrapper`,be,oa),ua)}},ji));return bi(yr)}),ge=mt,st=Ie=>Be.createElement(sr.ZP,{theme:{components:{InputNumber:{handleVisible:!0}}}},Be.createElement(mt,Object.assign({},Ie)));ge._InternalPanelDoNotUseOrYouWillBeFired=st;var ze=ge},9432:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return ae},n:function(){return Y}});var ve=x(19248),ue=x(92310),T=x.n(ue),De=x(93681),re=x(8654),W=x(59301),S=x(19080),m=x(36355),I=x(1684),g=x(19716),$=x(32441),_=x(33234),F=x(59412),P=x(9937);function U(ie){return!!(ie.prefix||ie.suffix||ie.allowClear)}var M=function(ie,J){var G={};for(var j in ie)Object.prototype.hasOwnProperty.call(ie,j)&&J.indexOf(j)<0&&(G[j]=ie[j]);if(ie!=null&&typeof Object.getOwnPropertySymbols=="function")for(var se=0,j=Object.getOwnPropertySymbols(ie);se<j.length;se++)J.indexOf(j[se])<0&&Object.prototype.propertyIsEnumerable.call(ie,j[se])&&(G[j[se]]=ie[j[se]]);return G};function Y(ie,J){if(!ie)return;ie.focus(J);const{cursor:G}=J||{};if(G){const j=ie.value.length;switch(G){case"start":ie.setSelectionRange(0,0);break;case"end":ie.setSelectionRange(j,j);break;default:ie.setSelectionRange(0,j);break}}}var ae=(0,W.forwardRef)((ie,J)=>{var G;const{prefixCls:j,bordered:se=!0,status:he,size:Ne,disabled:Be,onBlur:Pe,onFocus:q,suffix:Ae,allowClear:D,addonAfter:Je,addonBefore:Fe,className:Ce,style:Ue,styles:me,rootClassName:Me,onChange:fe,classNames:Ee}=ie,rt=M(ie,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames"]),{getPrefixCls:ot,direction:We,input:et}=W.useContext(m.E_),_t=ot("input",j),Ot=(0,W.useRef)(null),[Pt,cr]=(0,P.ZP)(_t),{compactSize:nr,compactItemClassnames:br}=(0,_.ri)(_t,We),sr=(0,g.Z)(mt=>{var ge;return(ge=Ne!=null?Ne:nr)!==null&&ge!==void 0?ge:mt}),k=W.useContext(I.Z),Xe=Be!=null?Be:k,{status:N,hasFeedback:b,feedbackIcon:f}=(0,W.useContext)($.aM),C=(0,S.F)(N,he),ee=U(ie)||!!b,Se=(0,W.useRef)(ee);(0,W.useEffect)(()=>{var mt;ee&&Se.current,Se.current=ee},[ee]);const H=(0,F.Z)(Ot,!0),ne=mt=>{H(),Pe==null||Pe(mt)},Qe=mt=>{H(),q==null||q(mt)},we=mt=>{H(),fe==null||fe(mt)},ye=(b||Ae)&&W.createElement(W.Fragment,null,Ae,b&&f);let je;return typeof D=="object"&&(D!=null&&D.clearIcon)?je=D:D&&(je={clearIcon:W.createElement(ve.Z,null)}),Pt(W.createElement(De.default,Object.assign({ref:(0,re.sQ)(J,Ot),prefixCls:_t,autoComplete:et==null?void 0:et.autoComplete},rt,{disabled:Xe,onBlur:ne,onFocus:Qe,style:Object.assign(Object.assign({},et==null?void 0:et.style),Ue),styles:Object.assign(Object.assign({},et==null?void 0:et.styles),me),suffix:ye,allowClear:je,className:T()(Ce,Me,br,et==null?void 0:et.className),onChange:we,addonAfter:Je&&W.createElement(_.BR,null,W.createElement($.Ux,{override:!0,status:!0},Je)),addonBefore:Fe&&W.createElement(_.BR,null,W.createElement($.Ux,{override:!0,status:!0},Fe)),classNames:Object.assign(Object.assign(Object.assign({},Ee),et==null?void 0:et.classNames),{input:T()({[`${_t}-sm`]:sr==="small",[`${_t}-lg`]:sr==="large",[`${_t}-rtl`]:We==="rtl",[`${_t}-borderless`]:!se},!ee&&(0,S.Z)(_t,C),Ee==null?void 0:Ee.input,(G=et==null?void 0:et.classNames)===null||G===void 0?void 0:G.input,cr)}),classes:{affixWrapper:T()({[`${_t}-affix-wrapper-sm`]:sr==="small",[`${_t}-affix-wrapper-lg`]:sr==="large",[`${_t}-affix-wrapper-rtl`]:We==="rtl",[`${_t}-affix-wrapper-borderless`]:!se},(0,S.Z)(`${_t}-affix-wrapper`,C,b),cr),wrapper:T()({[`${_t}-group-rtl`]:We==="rtl"},cr),group:T()({[`${_t}-group-wrapper-sm`]:sr==="small",[`${_t}-group-wrapper-lg`]:sr==="large",[`${_t}-group-wrapper-rtl`]:We==="rtl",[`${_t}-group-wrapper-disabled`]:Xe},(0,S.Z)(`${_t}-group-wrapper`,C,b),cr)}})))})},1643:function(dn,Ut,x){"use strict";var ve=x(19248),ue=x(92310),T=x.n(ue),De=x(9296),re=x(59301),W=x(19080),S=x(36355),m=x(1684),I=x(19716),g=x(32441),$=x(9432),_=x(9937),F=function(U,M){var Y={};for(var Q in U)Object.prototype.hasOwnProperty.call(U,Q)&&M.indexOf(Q)<0&&(Y[Q]=U[Q]);if(U!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ae=0,Q=Object.getOwnPropertySymbols(U);ae<Q.length;ae++)M.indexOf(Q[ae])<0&&Object.prototype.propertyIsEnumerable.call(U,Q[ae])&&(Y[Q[ae]]=U[Q[ae]]);return Y};const P=(0,re.forwardRef)((U,M)=>{const{prefixCls:Y,bordered:Q=!0,size:ae,disabled:ie,status:J,allowClear:G,showCount:j,classNames:se,rootClassName:he,className:Ne}=U,Be=F(U,["prefixCls","bordered","size","disabled","status","allowClear","showCount","classNames","rootClassName","className"]),{getPrefixCls:Pe,direction:q}=re.useContext(S.E_),Ae=(0,I.Z)(ae),D=re.useContext(m.Z),Je=ie!=null?ie:D,{status:Fe,hasFeedback:Ce,feedbackIcon:Ue}=re.useContext(g.aM),me=(0,W.F)(Fe,J),Me=re.useRef(null);re.useImperativeHandle(M,()=>{var We;return{resizableTextArea:(We=Me.current)===null||We===void 0?void 0:We.resizableTextArea,focus:et=>{var _t,Ot;(0,$.n)((Ot=(_t=Me.current)===null||_t===void 0?void 0:_t.resizableTextArea)===null||Ot===void 0?void 0:Ot.textArea,et)},blur:()=>{var et;return(et=Me.current)===null||et===void 0?void 0:et.blur()}}});const fe=Pe("input",Y);let Ee;typeof G=="object"&&(G!=null&&G.clearIcon)?Ee=G:G&&(Ee={clearIcon:re.createElement(ve.Z,null)});const[rt,ot]=(0,_.ZP)(fe);return rt(re.createElement(De.default,Object.assign({},Be,{disabled:Je,allowClear:Ee,className:T()(Ne,he),classes:{affixWrapper:T()(`${fe}-textarea-affix-wrapper`,{[`${fe}-affix-wrapper-rtl`]:q==="rtl",[`${fe}-affix-wrapper-borderless`]:!Q,[`${fe}-affix-wrapper-sm`]:Ae==="small",[`${fe}-affix-wrapper-lg`]:Ae==="large",[`${fe}-textarea-show-count`]:j},(0,W.Z)(`${fe}-affix-wrapper`,me),ot)},classNames:Object.assign(Object.assign({},se),{textarea:T()({[`${fe}-borderless`]:!Q,[`${fe}-sm`]:Ae==="small",[`${fe}-lg`]:Ae==="large"},(0,W.Z)(fe,me),ot,se==null?void 0:se.textarea)}),prefixCls:fe,suffix:Ce&&re.createElement("span",{className:`${fe}-textarea-suffix`},Ue),showCount:j,ref:Me})))});Ut.Z=P},59412:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return ue}});var ve=x(59301);function ue(T,De){const re=(0,ve.useRef)([]),W=()=>{re.current.push(setTimeout(()=>{var S,m,I,g;!((S=T.current)===null||S===void 0)&&S.input&&((m=T.current)===null||m===void 0?void 0:m.input.getAttribute("type"))==="password"&&(!((I=T.current)===null||I===void 0)&&I.input.hasAttribute("value"))&&((g=T.current)===null||g===void 0||g.input.removeAttribute("value"))}))};return(0,ve.useEffect)(()=>(De&&W(),()=>re.current.forEach(S=>{S&&clearTimeout(S)})),[]),W}},92832:function(dn,Ut,x){"use strict";x.d(Ut,{default:function(){return Ae}});var ve=x(92310),ue=x.n(ve),T=x(59301),De=x(36355),re=x(32441),W=x(9937),m=D=>{const{getPrefixCls:Je,direction:Fe}=(0,T.useContext)(De.E_),{prefixCls:Ce,className:Ue}=D,me=Je("input-group",Ce),Me=Je("input"),[fe,Ee]=(0,W.ZP)(Me),rt=ue()(me,{[`${me}-lg`]:D.size==="large",[`${me}-sm`]:D.size==="small",[`${me}-compact`]:D.compact,[`${me}-rtl`]:Fe==="rtl"},Ee,Ue),ot=(0,T.useContext)(re.aM),We=(0,T.useMemo)(()=>Object.assign(Object.assign({},ot),{isFormItemInput:!1}),[ot]);return fe(T.createElement("span",{className:rt,style:D.style,onMouseEnter:D.onMouseEnter,onMouseLeave:D.onMouseLeave,onFocus:D.onFocus,onBlur:D.onBlur},T.createElement(re.aM.Provider,{value:We},D.children)))},I=x(9432),g=x(73331),$=x(15277),_=x(2738),F=x(8654),P=x(59412),U=function(D,Je){var Fe={};for(var Ce in D)Object.prototype.hasOwnProperty.call(D,Ce)&&Je.indexOf(Ce)<0&&(Fe[Ce]=D[Ce]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ce=Object.getOwnPropertySymbols(D);Ue<Ce.length;Ue++)Je.indexOf(Ce[Ue])<0&&Object.prototype.propertyIsEnumerable.call(D,Ce[Ue])&&(Fe[Ce[Ue]]=D[Ce[Ue]]);return Fe};const M=D=>D?T.createElement($.Z,null):T.createElement(g.Z,null),Y={click:"onClick",hover:"onMouseOver"};var ae=T.forwardRef((D,Je)=>{const{visibilityToggle:Fe=!0}=D,Ce=typeof Fe=="object"&&Fe.visible!==void 0,[Ue,me]=(0,T.useState)(()=>Ce?Fe.visible:!1),Me=(0,T.useRef)(null);T.useEffect(()=>{Ce&&me(Fe.visible)},[Ce,Fe]);const fe=(0,P.Z)(Me),Ee=()=>{const{disabled:Xe}=D;Xe||(Ue&&fe(),me(N=>{var b;const f=!N;return typeof Fe=="object"&&((b=Fe.onVisibleChange)===null||b===void 0||b.call(Fe,f)),f}))},rt=Xe=>{const{action:N="click",iconRender:b=M}=D,f=Y[N]||"",C=b(Ue),ee={[f]:Ee,className:`${Xe}-icon`,key:"passwordIcon",onMouseDown:Se=>{Se.preventDefault()},onMouseUp:Se=>{Se.preventDefault()}};return T.cloneElement(T.isValidElement(C)?C:T.createElement("span",null,C),ee)},{className:ot,prefixCls:We,inputPrefixCls:et,size:_t}=D,Ot=U(D,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:Pt}=T.useContext(De.E_),cr=Pt("input",et),nr=Pt("input-password",We),br=Fe&&rt(nr),sr=ue()(nr,ot,{[`${nr}-${_t}`]:!!_t}),k=Object.assign(Object.assign({},(0,_.Z)(Ot,["suffix","iconRender","visibilityToggle"])),{type:Ue?"text":"password",className:sr,prefixCls:cr,suffix:br});return _t&&(k.size=_t),T.createElement(I.Z,Object.assign({ref:(0,F.sQ)(Je,Me)},k))}),ie=x(47472),J=x(92343),G=x(3113),j=x(19716),se=x(33234),he=function(D,Je){var Fe={};for(var Ce in D)Object.prototype.hasOwnProperty.call(D,Ce)&&Je.indexOf(Ce)<0&&(Fe[Ce]=D[Ce]);if(D!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ue=0,Ce=Object.getOwnPropertySymbols(D);Ue<Ce.length;Ue++)Je.indexOf(Ce[Ue])<0&&Object.prototype.propertyIsEnumerable.call(D,Ce[Ue])&&(Fe[Ce[Ue]]=D[Ce[Ue]]);return Fe},Be=T.forwardRef((D,Je)=>{const{prefixCls:Fe,inputPrefixCls:Ce,className:Ue,size:me,suffix:Me,enterButton:fe=!1,addonAfter:Ee,loading:rt,disabled:ot,onSearch:We,onChange:et,onCompositionStart:_t,onCompositionEnd:Ot}=D,Pt=he(D,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd"]),{getPrefixCls:cr,direction:nr}=T.useContext(De.E_),br=T.useRef(!1),sr=cr("input-search",Fe),k=cr("input",Ce),{compactSize:Xe}=(0,se.ri)(sr,nr),N=(0,j.Z)(st=>{var ze;return(ze=me!=null?me:Xe)!==null&&ze!==void 0?ze:st}),b=T.useRef(null),f=st=>{st&&st.target&&st.type==="click"&&We&&We(st.target.value,st,{source:"clear"}),et&&et(st)},C=st=>{var ze;document.activeElement===((ze=b.current)===null||ze===void 0?void 0:ze.input)&&st.preventDefault()},ee=st=>{var ze,Ie;We&&We((Ie=(ze=b.current)===null||ze===void 0?void 0:ze.input)===null||Ie===void 0?void 0:Ie.value,st,{source:"input"})},Se=st=>{br.current||rt||ee(st)},H=typeof fe=="boolean"?T.createElement(ie.Z,null):null,ne=`${sr}-button`;let Qe;const we=fe||{},ye=we.type&&we.type.__ANT_BUTTON===!0;ye||we.type==="button"?Qe=(0,J.Tm)(we,Object.assign({onMouseDown:C,onClick:st=>{var ze,Ie;(Ie=(ze=we==null?void 0:we.props)===null||ze===void 0?void 0:ze.onClick)===null||Ie===void 0||Ie.call(ze,st),ee(st)},key:"enterButton"},ye?{className:ne,size:N}:{})):Qe=T.createElement(G.ZP,{className:ne,type:fe?"primary":void 0,size:N,disabled:ot,key:"enterButton",onMouseDown:C,onClick:ee,loading:rt,icon:H},fe),Ee&&(Qe=[Qe,(0,J.Tm)(Ee,{key:"addonAfter"})]);const je=ue()(sr,{[`${sr}-rtl`]:nr==="rtl",[`${sr}-${N}`]:!!N,[`${sr}-with-button`]:!!fe},Ue),mt=st=>{br.current=!0,_t==null||_t(st)},ge=st=>{br.current=!1,Ot==null||Ot(st)};return T.createElement(I.Z,Object.assign({ref:(0,F.sQ)(b,Je),onPressEnter:Se},Pt,{size:N,onCompositionStart:mt,onCompositionEnd:ge,prefixCls:k,addonAfter:Qe,suffix:Me,onChange:f,className:je,disabled:ot}))}),Pe=x(1643);const q=I.Z;q.Group=m,q.Search=Be,q.TextArea=Pe.Z,q.Password=ae;var Ae=q},9937:function(dn,Ut,x){"use strict";x.d(Ut,{M1:function(){return S},TM:function(){return J},Xy:function(){return m},bi:function(){return $},e5:function(){return ie},ik:function(){return _},nz:function(){return re},pU:function(){return W},s7:function(){return F},x0:function(){return g}});var ve=x(17313),ue=x(74207),T=x(37613),De=x(83116);const re=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}),m=G=>({color:G.colorTextDisabled,backgroundColor:G.colorBgContainerDisabled,borderColor:G.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"&:hover":Object.assign({},W((0,T.TS)(G,{hoverBorderColor:G.colorBorder})))}),I=G=>{const{paddingBlockLG:j,fontSizeLG:se,lineHeightLG:he,borderRadiusLG:Ne,paddingInlineLG:Be}=G;return{padding:`${j}px ${Be}px`,fontSize:se,lineHeight:he,borderRadius:Ne}},g=G=>({padding:`${G.paddingBlockSM}px ${G.paddingInlineSM}px`,borderRadius:G.borderRadiusSM}),$=(G,j)=>{const{componentCls:se,colorError:he,colorWarning:Ne,errorActiveShadow:Be,warningActiveShadow:Pe,colorErrorBorderHover:q,colorWarningBorderHover:Ae}=G;return{[`&-status-error:not(${j}-disabled):not(${j}-borderless)${j}`]:{borderColor:he,"&:hover":{borderColor:q},"&:focus, &-focused":Object.assign({},S((0,T.TS)(G,{activeBorderColor:he,activeShadow:Be}))),[`${se}-prefix, ${se}-suffix`]:{color:he}},[`&-status-warning:not(${j}-disabled):not(${j}-borderless)${j}`]:{borderColor:Ne,"&:hover":{borderColor:Ae},"&:focus, &-focused":Object.assign({},S((0,T.TS)(G,{activeBorderColor:Ne,activeShadow:Pe}))),[`${se}-prefix, ${se}-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}`},re(G.colorTextPlaceholder)),{"&:hover":Object.assign({},W(G)),"&:focus, &-focused":Object.assign({},S(G)),"&-disabled, &[disabled]":Object.assign({},m(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({},I(G)),"&-sm":Object.assign({},g(G)),"&-rtl":{direction:"rtl"},"&-textarea-rtl":{direction:"rtl"}}),F=G=>{const{componentCls:j,antCls:se}=G;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:G.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${j}, &-lg > ${j}-group-addon`]:Object.assign({},I(G)),[`&-sm ${j}, &-sm > ${j}-group-addon`]:Object.assign({},g(G)),[`&-lg ${se}-select-single ${se}-select-selector`]:{height:G.controlHeightLG},[`&-sm ${se}-select-single ${se}-select-selector`]:{height:G.controlHeightSM},[`> ${j}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${j}-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,[`${se}-select`]:{margin:`-${G.paddingBlock+1}px -${G.paddingInline}px`,[`&${se}-select-single:not(${se}-select-customize-input)`]:{[`${se}-select-selector`]:{backgroundColor:"inherit",border:`${G.lineWidth}px ${G.lineType} transparent`,boxShadow:"none"}},"&-open, &-focused":{[`${se}-select-selector`]:{color:G.colorPrimary}}},[`${se}-cascader-picker`]:{margin:`-9px -${G.paddingInline}px`,backgroundColor:"transparent",[`${se}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}},[`${j}`]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${j}-search-with-button &`]:{zIndex:0}}},[`> ${j}:first-child, ${j}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${se}-select ${se}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${j}-affix-wrapper`]:{[`&:not(:first-child) ${j}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${j}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${j}:last-child, ${j}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${se}-select ${se}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${j}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${j}-search &`]:{borderStartStartRadius:G.borderRadius,borderEndStartRadius:G.borderRadius}},[`&:not(:first-child), ${j}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${j}-group-compact`]:Object.assign(Object.assign({display:"block"},(0,ve.dF)()),{[`${j}-group-addon, ${j}-group-wrap, > ${j}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:G.lineWidth,"&:hover":{zIndex:1},"&:focus":{zIndex:1}}},"& > *":{display:"inline-block",float:"none",verticalAlign:"top",borderRadius:0},[`
|
|
|
& > ${j}-affix-wrapper,
|
|
|
& > ${j}-number-affix-wrapper,
|
|
|
& > ${se}-picker-range
|
|
|
`]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:-G.lineWidth,borderInlineEndWidth:G.lineWidth},[`${j}`]:{float:"none"},[`& > ${se}-select > ${se}-select-selector,
|
|
|
& > ${se}-select-auto-complete ${j},
|
|
|
& > ${se}-cascader-picker ${j},
|
|
|
& > ${j}-group-wrapper ${j}`]:{borderInlineEndWidth:G.lineWidth,borderRadius:0,"&:hover":{zIndex:1},"&:focus":{zIndex:1}},[`& > ${se}-select-focused`]:{zIndex:1},[`& > ${se}-select > ${se}-select-arrow`]:{zIndex:1},[`& > *:first-child,
|
|
|
& > ${se}-select:first-child > ${se}-select-selector,
|
|
|
& > ${se}-select-auto-complete:first-child ${j},
|
|
|
& > ${se}-cascader-picker:first-child ${j}`]:{borderStartStartRadius:G.borderRadius,borderEndStartRadius:G.borderRadius},[`& > *:last-child,
|
|
|
& > ${se}-select:last-child > ${se}-select-selector,
|
|
|
& > ${se}-cascader-picker:last-child ${j},
|
|
|
& > ${se}-cascader-picker-focused:last-child ${j}`]:{borderInlineEndWidth:G.lineWidth,borderStartEndRadius:G.borderRadius,borderEndEndRadius:G.borderRadius},[`& > ${se}-select-auto-complete ${j}`]:{verticalAlign:"top"},[`${j}-group-wrapper + ${j}-group-wrapper`]:{marginInlineStart:-G.lineWidth,[`${j}-affix-wrapper`]:{borderRadius:0}},[`${j}-group-wrapper:not(:last-child)`]:{[`&${j}-search > ${j}-group`]:{[`& > ${j}-group-addon > ${j}-search-button`]:{borderRadius:0},[`& > ${j}`]:{borderStartStartRadius:G.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:G.borderRadius}}}})}},P=G=>{const{componentCls:j,controlHeightSM:se,lineWidth:he}=G,Be=(se-he*2-16)/2;return{[j]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,ve.Wf)(G)),_(G)),$(G,j)),{'&[type="color"]':{height:G.controlHeight,[`&${j}-lg`]:{height:G.controlHeightLG},[`&${j}-sm`]:{height:se,paddingTop:Be,paddingBottom:Be}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{"-webkit-appearance":"none"}})}},U=G=>{const{componentCls:j}=G;return{[`${j}-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`}}}},M=G=>{const{componentCls:j,inputAffixPadding:se,colorTextDescription:he,motionDurationSlow:Ne,colorIcon:Be,colorIconHover:Pe,iconCls:q}=G;return{[`${j}-affix-wrapper`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},_(G)),{display:"inline-flex",[`&:not(${j}-affix-wrapper-disabled):hover`]:Object.assign(Object.assign({},W(G)),{zIndex:1,[`${j}-search-with-button &`]:{zIndex:0}}),"&-focused, &:focus":{zIndex:1},"&-disabled":{[`${j}[disabled]`]:{background:"transparent"}},[`> input${j}`]:{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"'},[`${j}`]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:G.paddingXS}},"&-show-count-suffix":{color:he},"&-show-count-has-suffix":{marginInlineEnd:G.paddingXXS},"&-prefix":{marginInlineEnd:se},"&-suffix":{marginInlineStart:se}}}),U(G)),{[`${q}${j}-password-icon`]:{color:Be,cursor:"pointer",transition:`all ${Ne}`,"&:hover":{color:Pe}}}),$(G,`${j}-affix-wrapper`))}},Y=G=>{const{componentCls:j,colorError:se,colorWarning:he,borderRadiusLG:Ne,borderRadiusSM:Be}=G;return{[`${j}-group`]:Object.assign(Object.assign(Object.assign({},(0,ve.Wf)(G)),F(G)),{"&-rtl":{direction:"rtl"},"&-wrapper":{display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${j}-group-addon`]:{borderRadius:Ne,fontSize:G.fontSizeLG}},"&-sm":{[`${j}-group-addon`]:{borderRadius:Be}},"&-status-error":{[`${j}-group-addon`]:{color:se,borderColor:se}},"&-status-warning":{[`${j}-group-addon`]:{color:he,borderColor:he}},"&-disabled":{[`${j}-group-addon`]:Object.assign({},m(G))},[`&:not(${j}-compact-first-item):not(${j}-compact-last-item)${j}-compact-item`]:{[`${j}, ${j}-group-addon`]:{borderRadius:0}},[`&:not(${j}-compact-last-item)${j}-compact-first-item`]:{[`${j}, ${j}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${j}-compact-first-item)${j}-compact-last-item`]:{[`${j}, ${j}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}})}},Q=G=>{const{componentCls:j,antCls:se}=G,he=`${j}-search`;return{[he]:{[`${j}`]:{"&:hover, &:focus":{borderColor:G.colorPrimaryHover,[`+ ${j}-group-addon ${he}-button:not(${se}-btn-primary)`]:{borderInlineStartColor:G.colorPrimaryHover}}},[`${j}-affix-wrapper`]:{borderRadius:0},[`${j}-lg`]:{lineHeight:G.lineHeightLG-2e-4},[`> ${j}-group`]:{[`> ${j}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${he}-button`]:{paddingTop:0,paddingBottom:0,borderStartStartRadius:0,borderStartEndRadius:G.borderRadius,borderEndEndRadius:G.borderRadius,borderEndStartRadius:0,boxShadow:"none"},[`${he}-button:not(${se}-btn-primary)`]:{color:G.colorTextDescription,"&:hover":{color:G.colorPrimaryHover},"&:active":{color:G.colorPrimaryActive},[`&${se}-btn-loading::before`]:{insetInlineStart:0,insetInlineEnd:0,insetBlockStart:0,insetBlockEnd:0}}}},[`${he}-button`]:{height:G.controlHeight,"&:hover, &:focus":{zIndex:1}},[`&-large ${he}-button`]:{height:G.controlHeightLG},[`&-small ${he}-button`]:{height:G.controlHeightSM},"&-rtl":{direction:"rtl"},[`&${j}-compact-item`]:{[`&:not(${j}-compact-last-item)`]:{[`${j}-group-addon`]:{[`${j}-search-button`]:{marginInlineEnd:-G.lineWidth,borderRadius:0}}},[`&:not(${j}-compact-first-item)`]:{[`${j},${j}-affix-wrapper`]:{borderRadius:0}},[`> ${j}-group-addon ${j}-search-button,
|
|
|
> ${j},
|
|
|
${j}-affix-wrapper`]:{"&:hover,&:focus,&:active":{zIndex:2}},[`> ${j}-affix-wrapper-focused`]:{zIndex:2}}}}},ae=G=>{const{componentCls:j,paddingLG:se}=G,he=`${j}-textarea`;return{[he]:{position:"relative","&-show-count":{[`> ${j}`]:{height:"100%"},[`${j}-data-count`]:{position:"absolute",bottom:-G.fontSize*G.lineHeight,insetInlineEnd:0,color:G.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},"&-allow-clear":{[`> ${j}`]:{paddingInlineEnd:se}},[`&-affix-wrapper${he}-has-feedback`]:{[`${j}`]:{paddingInlineEnd:se}},[`&-affix-wrapper${j}-affix-wrapper`]:{padding:0,[`> textarea${j}`]:{fontSize:"inherit",border:"none",outline:"none","&:focus":{boxShadow:"none !important"}},[`${j}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${j}-clear-icon`]:{position:"absolute",insetInlineEnd:G.paddingXS,insetBlockStart:G.paddingXS},[`${he}-suffix`]:{position:"absolute",top:0,insetInlineEnd:G.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}}}}};function ie(G){return(0,T.TS)(G,{inputAffixPadding:G.paddingXXS})}const J=G=>{const{controlHeight:j,fontSize:se,lineHeight:he,lineWidth:Ne,controlHeightSM:Be,controlHeightLG:Pe,fontSizeLG:q,lineHeightLG:Ae,paddingSM:D,controlPaddingHorizontalSM:Je,controlPaddingHorizontal:Fe,colorFillAlter:Ce,colorPrimaryHover:Ue,controlOutlineWidth:me,controlOutline:Me,colorErrorOutline:fe,colorWarningOutline:Ee}=G;return{paddingBlock:Math.max(Math.round((j-se*he)/2*10)/10-Ne,3),paddingBlockSM:Math.max(Math.round((Be-se*he)/2*10)/10-Ne,0),paddingBlockLG:Math.ceil((Pe-q*Ae)/2*10)/10-Ne,paddingInline:D-Ne,paddingInlineSM:Je-Ne,paddingInlineLG:Fe-Ne,addonBg:Ce,activeBorderColor:Ue,hoverBorderColor:Ue,activeShadow:`0 0 0 ${me}px ${Me}`,errorActiveShadow:`0 0 0 ${me}px ${fe}`,warningActiveShadow:`0 0 0 ${me}px ${Ee}`}};Ut.ZP=(0,De.Z)("Input",G=>{const j=(0,T.TS)(G,ie(G));return[P(j),ae(j),M(j),Y(j),Q(j),(0,ue.c)(j)]},J)},45818:function(dn,Ut,x){"use strict";x.d(Ut,{D:function(){return ie},Z:function(){return j}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M912 192H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 284H328c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h584c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM104 228a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0zm0 284a56 56 0 10112 0 56 56 0 10-112 0z"}}]},name:"bars",theme:"outlined"},De=T,re=x(7657),W=function(he,Ne){return ue.createElement(re.Z,(0,ve.Z)({},he,{ref:Ne,icon:De}))},S=ue.forwardRef(W),m=S,I=x(33853),g=x(38819),$=x(92310),_=x.n($),F=x(2738),U=se=>!isNaN(parseFloat(se))&&isFinite(se),M=x(36355),Y=x(84966),Q=function(se,he){var Ne={};for(var Be in se)Object.prototype.hasOwnProperty.call(se,Be)&&he.indexOf(Be)<0&&(Ne[Be]=se[Be]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Be=Object.getOwnPropertySymbols(se);Pe<Be.length;Pe++)he.indexOf(Be[Pe])<0&&Object.prototype.propertyIsEnumerable.call(se,Be[Pe])&&(Ne[Be[Pe]]=se[Be[Pe]]);return Ne};const ae={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},ie=ue.createContext({}),J=(()=>{let se=0;return function(){let he=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return se+=1,`${he}${se}`}})();var j=ue.forwardRef((se,he)=>{const{prefixCls:Ne,className:Be,trigger:Pe,children:q,defaultCollapsed:Ae=!1,theme:D="dark",style:Je={},collapsible:Fe=!1,reverseArrow:Ce=!1,width:Ue=200,collapsedWidth:me=80,zeroWidthTriggerStyle:Me,breakpoint:fe,onCollapse:Ee,onBreakpoint:rt}=se,ot=Q(se,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:We}=(0,ue.useContext)(Y.Gs),[et,_t]=(0,ue.useState)("collapsed"in se?se.collapsed:Ae),[Ot,Pt]=(0,ue.useState)(!1);(0,ue.useEffect)(()=>{"collapsed"in se&&_t(se.collapsed)},[se.collapsed]);const cr=(N,b)=>{"collapsed"in se||_t(N),Ee==null||Ee(N,b)},nr=(0,ue.useRef)();nr.current=N=>{Pt(N.matches),rt==null||rt(N.matches),et!==N.matches&&cr(N.matches,"responsive")},(0,ue.useEffect)(()=>{function N(f){return nr.current(f)}let b;if(typeof window!="undefined"){const{matchMedia:f}=window;if(f&&fe&&fe in ae){b=f(`(max-width: ${ae[fe]})`);try{b.addEventListener("change",N)}catch(C){b.addListener(N)}N(b)}}return()=>{try{b==null||b.removeEventListener("change",N)}catch(f){b==null||b.removeListener(N)}}},[fe]),(0,ue.useEffect)(()=>{const N=J("ant-sider-");return We.addSider(N),()=>We.removeSider(N)},[]);const br=()=>{cr(!et,"clickTrigger")},{getPrefixCls:sr}=(0,ue.useContext)(M.E_),k=()=>{const N=sr("layout-sider",Ne),b=(0,F.Z)(ot,["collapsed"]),f=et?me:Ue,C=U(f)?`${f}px`:String(f),ee=parseFloat(String(me||0))===0?ue.createElement("span",{onClick:br,className:_()(`${N}-zero-width-trigger`,`${N}-zero-width-trigger-${Ce?"right":"left"}`),style:Me},Pe||ue.createElement(m,null)):null,ne={expanded:Ce?ue.createElement(g.Z,null):ue.createElement(I.Z,null),collapsed:Ce?ue.createElement(I.Z,null):ue.createElement(g.Z,null)}[et?"collapsed":"expanded"],Qe=Pe!==null?ee||ue.createElement("div",{className:`${N}-trigger`,onClick:br,style:{width:C}},Pe||ne):null,we=Object.assign(Object.assign({},Je),{flex:`0 0 ${C}`,maxWidth:C,minWidth:C,width:C}),ye=_()(N,`${N}-${D}`,{[`${N}-collapsed`]:!!et,[`${N}-has-trigger`]:Fe&&Pe!==null&&!ee,[`${N}-below`]:!!Ot,[`${N}-zero-width`]:parseFloat(C)===0},Be);return ue.createElement("aside",Object.assign({className:ye},b,{style:we,ref:he}),ue.createElement("div",{className:`${N}-children`},q),Fe||Ot&&ee?Qe:null)},Xe=ue.useMemo(()=>({siderCollapsed:et}),[et]);return ue.createElement(ie.Provider,{value:Xe},k())})},84966:function(dn,Ut,x){"use strict";x.d(Ut,{VY:function(){return ie},$_:function(){return ae},h4:function(){return Q},Gs:function(){return F},ZP:function(){return J}});var ve=x(94480),ue=x(92310),T=x.n(ue),De=x(2738),re=x(59301),W=x(36355),S=x(83116),I=G=>{const{componentCls:j,bodyBg:se,lightSiderBg:he,lightTriggerBg:Ne,lightTriggerColor:Be}=G;return{[`${j}-sider-light`]:{background:he,[`${j}-sider-trigger`]:{color:Be,background:Ne},[`${j}-sider-zero-width-trigger`]:{color:Be,background:Ne,border:`1px solid ${se}`,borderInlineStart:0}}}};const g=G=>{const{antCls:j,componentCls:se,colorText:he,triggerColor:Ne,footerBg:Be,triggerBg:Pe,headerHeight:q,headerPadding:Ae,headerColor:D,footerPadding:Je,triggerHeight:Fe,zeroTriggerHeight:Ce,zeroTriggerWidth:Ue,motionDurationMid:me,motionDurationSlow:Me,fontSize:fe,borderRadius:Ee,bodyBg:rt,headerBg:ot,siderBg:We}=G;return{[se]:Object.assign(Object.assign({display:"flex",flex:"auto",flexDirection:"column",minHeight:0,background:rt,"&, *":{boxSizing:"border-box"},[`&${se}-has-sider`]:{flexDirection:"row",[`> ${se}, > ${se}-content`]:{width:0}},[`${se}-header, &${se}-footer`]:{flex:"0 0 auto"},[`${se}-sider`]:{position:"relative",minWidth:0,background:We,transition:`all ${me}, background 0s`,"&-children":{height:"100%",marginTop:-.1,paddingTop:.1,[`${j}-menu${j}-menu-inline-collapsed`]:{width:"auto"}},"&-has-trigger":{paddingBottom:Fe},"&-right":{order:1},"&-trigger":{position:"fixed",bottom:0,zIndex:1,height:Fe,color:Ne,lineHeight:`${Fe}px`,textAlign:"center",background:Pe,cursor:"pointer",transition:`all ${me}`},"&-zero-width":{"> *":{overflow:"hidden"},"&-trigger":{position:"absolute",top:q,insetInlineEnd:-Ue,zIndex:1,width:Ue,height:Ce,color:Ne,fontSize:G.fontSizeXL,display:"flex",alignItems:"center",justifyContent:"center",background:We,borderStartStartRadius:0,borderStartEndRadius:Ee,borderEndEndRadius:Ee,borderEndStartRadius:0,cursor:"pointer",transition:`background ${Me} ease`,"&::after":{position:"absolute",inset:0,background:"transparent",transition:`all ${Me}`,content:'""'},"&:hover::after":{background:"rgba(255, 255, 255, 0.2)"},"&-right":{insetInlineStart:-Ue,borderStartStartRadius:Ee,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:Ee}}}}},I(G)),{"&-rtl":{direction:"rtl"}}),[`${se}-header`]:{height:q,padding:Ae,color:D,lineHeight:`${q}px`,background:ot,[`${j}-menu`]:{lineHeight:"inherit"}},[`${se}-footer`]:{padding:Je,color:he,fontSize:fe,background:Be},[`${se}-content`]:{flex:"auto",minHeight:0}}};var $=(0,S.Z)("Layout",G=>[g(G)],G=>{const{colorBgLayout:j,controlHeight:se,controlHeightLG:he,colorText:Ne,controlHeightSM:Be,marginXXS:Pe,colorTextLightSolid:q,colorBgContainer:Ae}=G,D=he*1.25;return{colorBgHeader:"#001529",colorBgBody:j,colorBgTrigger:"#002140",bodyBg:j,headerBg:"#001529",headerHeight:se*2,headerPadding:`0 ${D}px`,headerColor:Ne,footerPadding:`${Be}px ${D}px`,footerBg:j,siderBg:"#001529",triggerHeight:he+Pe*2,triggerBg:"#002140",triggerColor:q,zeroTriggerWidth:he,zeroTriggerHeight:he,lightSiderBg:Ae,lightTriggerBg:Ae,lightTriggerColor:Ne}},{deprecatedTokens:[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]]}),_=function(G,j){var se={};for(var he in G)Object.prototype.hasOwnProperty.call(G,he)&&j.indexOf(he)<0&&(se[he]=G[he]);if(G!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Ne=0,he=Object.getOwnPropertySymbols(G);Ne<he.length;Ne++)j.indexOf(he[Ne])<0&&Object.prototype.propertyIsEnumerable.call(G,he[Ne])&&(se[he[Ne]]=G[he[Ne]]);return se};const F=re.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}});function P(G){let{suffixCls:j,tagName:se,displayName:he}=G;return Ne=>re.forwardRef((Pe,q)=>re.createElement(Ne,Object.assign({ref:q,suffixCls:j,tagName:se},Pe)))}const U=re.forwardRef((G,j)=>{const{prefixCls:se,suffixCls:he,className:Ne,tagName:Be}=G,Pe=_(G,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:q}=re.useContext(W.E_),Ae=q("layout",se),[D,Je]=$(Ae),Fe=he?`${Ae}-${he}`:Ae;return D(re.createElement(Be,Object.assign({className:T()(se||Fe,Ne,Je),ref:j},Pe)))}),M=re.forwardRef((G,j)=>{const{direction:se}=re.useContext(W.E_),[he,Ne]=re.useState([]),{prefixCls:Be,className:Pe,rootClassName:q,children:Ae,hasSider:D,tagName:Je,style:Fe}=G,Ce=_(G,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),Ue=(0,De.Z)(Ce,["suffixCls"]),{getPrefixCls:me,layout:Me}=re.useContext(W.E_),fe=me("layout",Be),[Ee,rt]=$(fe),ot=T()(fe,{[`${fe}-has-sider`]:typeof D=="boolean"?D:he.length>0,[`${fe}-rtl`]:se==="rtl"},Me==null?void 0:Me.className,Pe,q,rt),We=re.useMemo(()=>({siderHook:{addSider:et=>{Ne(_t=>[].concat((0,ve.Z)(_t),[et]))},removeSider:et=>{Ne(_t=>_t.filter(Ot=>Ot!==et))}}}),[]);return Ee(re.createElement(F.Provider,{value:We},re.createElement(Je,Object.assign({ref:j,className:ot,style:Object.assign(Object.assign({},Me==null?void 0:Me.style),Fe)},Ue),Ae)))}),Y=P({tagName:"div",displayName:"Layout"})(M),Q=P({suffixCls:"header",tagName:"header",displayName:"Header"})(U),ae=P({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(U),ie=P({suffixCls:"content",tagName:"main",displayName:"Content"})(U);var J=Y},40875:function(dn,Ut,x){"use strict";x.d(Ut,{J:function(){return W}});var ve=x(59301),ue=x(33234),T=x(70425),De=function(S,m){var I={};for(var g in S)Object.prototype.hasOwnProperty.call(S,g)&&m.indexOf(g)<0&&(I[g]=S[g]);if(S!=null&&typeof Object.getOwnPropertySymbols=="function")for(var $=0,g=Object.getOwnPropertySymbols(S);$<g.length;$++)m.indexOf(g[$])<0&&Object.prototype.propertyIsEnumerable.call(S,g[$])&&(I[g[$]]=S[g[$]]);return I};const re=ve.createContext(null),W=ve.forwardRef((S,m)=>{const{children:I}=S,g=De(S,["children"]),$=ve.useContext(re),_=ve.useMemo(()=>Object.assign(Object.assign({},$),g),[$,g.prefixCls,g.mode,g.selectable]);return ve.createElement(re.Provider,{value:_},ve.createElement(ue.BR,null,(0,T.supportNodeRef)(I)?ve.cloneElement(I,{ref:m}):I))});Ut.Z=re},20834:function(dn,Ut,x){"use strict";x.d(Ut,{default:function(){return Xe}});var ve=x(15285),ue=x(59301),T=x(45818),De=x(92310),re=x.n(De),W=x(36355),S=function(N,b){var f={};for(var C in N)Object.prototype.hasOwnProperty.call(N,C)&&b.indexOf(C)<0&&(f[C]=N[C]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,C=Object.getOwnPropertySymbols(N);ee<C.length;ee++)b.indexOf(C[ee])<0&&Object.prototype.propertyIsEnumerable.call(N,C[ee])&&(f[C[ee]]=N[C[ee]]);return f},I=N=>{const{prefixCls:b,className:f,dashed:C}=N,ee=S(N,["prefixCls","className","dashed"]),{getPrefixCls:Se}=ue.useContext(W.E_),H=Se("menu",b),ne=re()({[`${H}-item-divider-dashed`]:!!C},f);return ue.createElement(ve.iz,Object.assign({className:ne},ee))},g=x(11592),$=x(2738),_=x(6848),F=x(92343),U=(0,ue.createContext)({prefixCls:"",firstLevel:!0,inlineCollapsed:!1}),Y=N=>{var b;const{className:f,children:C,icon:ee,title:Se,danger:H}=N,{prefixCls:ne,firstLevel:Qe,direction:we,disableMenuItemTitleTooltip:ye,inlineCollapsed:je}=ue.useContext(U),mt=ct=>{const Tt=ue.createElement("span",{className:`${ne}-title-content`},C);return(!ee||(0,F.l$)(C)&&C.type==="span")&&C&&ct&&Qe&&typeof C=="string"?ue.createElement("div",{className:`${ne}-inline-collapsed-noicon`},C.charAt(0)):Tt},{siderCollapsed:ge}=ue.useContext(T.D);let st=Se;typeof Se=="undefined"?st=Qe?C:"":Se===!1&&(st="");const ze={title:st};!ge&&!je&&(ze.title=null,ze.open=!1);const Ie=(0,g.Z)(C).length;let Le=ue.createElement(ve.ck,Object.assign({},(0,$.Z)(N,["title","icon","danger"]),{className:re()({[`${ne}-item-danger`]:H,[`${ne}-item-only-child`]:(ee?Ie+1:Ie)===1},f),title:typeof Se=="string"?Se:void 0}),(0,F.Tm)(ee,{className:re()((0,F.l$)(ee)?(b=ee.props)===null||b===void 0?void 0:b.className:"",`${ne}-item-icon`)}),mt(je));return ye||(Le=ue.createElement(_.Z,Object.assign({},ze,{placement:we==="rtl"?"left":"right",overlayClassName:`${ne}-inline-collapsed-tooltip`}),Le)),Le},ae=N=>{var b;const{popupClassName:f,icon:C,title:ee,theme:Se}=N,H=ue.useContext(U),{prefixCls:ne,inlineCollapsed:Qe,theme:we}=H,ye=(0,ve.Xl)();let je;if(!C)je=Qe&&!ye.length&&ee&&typeof ee=="string"?ue.createElement("div",{className:`${ne}-inline-collapsed-noicon`},ee.charAt(0)):ue.createElement("span",{className:`${ne}-title-content`},ee);else{const ge=(0,F.l$)(ee)&&ee.type==="span";je=ue.createElement(ue.Fragment,null,(0,F.Tm)(C,{className:re()((0,F.l$)(C)?(b=C.props)===null||b===void 0?void 0:b.className:"",`${ne}-item-icon`)}),ge?ee:ue.createElement("span",{className:`${ne}-title-content`},ee))}const mt=ue.useMemo(()=>Object.assign(Object.assign({},H),{firstLevel:!1}),[H]);return ue.createElement(U.Provider,{value:mt},ue.createElement(ve.Wd,Object.assign({},(0,$.Z)(N,["icon"]),{title:je,popupClassName:re()(ne,f,`${ne}-${Se||we}`)})))},ie=x(18785),J=x(70425),G=x(62892),j=x(40875),se=function(N,b){var f={};for(var C in N)Object.prototype.hasOwnProperty.call(N,C)&&b.indexOf(C)<0&&(f[C]=N[C]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,C=Object.getOwnPropertySymbols(N);ee<C.length;ee++)b.indexOf(C[ee])<0&&Object.prototype.propertyIsEnumerable.call(N,C[ee])&&(f[C[ee]]=N[C[ee]]);return f};function he(N){return(N||[]).map((b,f)=>{if(b&&typeof b=="object"){const C=b,{label:ee,children:Se,key:H,type:ne}=C,Qe=se(C,["label","children","key","type"]),we=H!=null?H:`tmp-${f}`;return Se||ne==="group"?ne==="group"?ue.createElement(ve.BW,Object.assign({key:we},Qe,{title:ee}),he(Se)):ue.createElement(ae,Object.assign({key:we},Qe,{title:ee}),he(Se)):ne==="divider"?ue.createElement(I,Object.assign({key:we},Qe)):ue.createElement(Y,Object.assign({key:we},Qe),ee)}return null}).filter(b=>b)}function Ne(N){return ue.useMemo(()=>N&&he(N),[N])}var Be=x(64993),Pe=x(17313),q=x(8378),Ae=x(13826),D=x(29878),Je=x(83116),Fe=x(37613),Ue=N=>{const{componentCls:b,motionDurationSlow:f,horizontalLineHeight:C,colorSplit:ee,lineWidth:Se,lineType:H,itemPaddingInline:ne}=N;return{[`${b}-horizontal`]:{lineHeight:C,border:0,borderBottom:`${Se}px ${H} ${ee}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${b}-item, ${b}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:ne},[`> ${b}-item:hover,
|
|
|
> ${b}-item-active,
|
|
|
> ${b}-submenu ${b}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${b}-item, ${b}-submenu-title`]:{transition:[`border-color ${f}`,`background ${f}`].join(",")},[`${b}-submenu-arrow`]:{display:"none"}}}},Me=N=>{let{componentCls:b,menuArrowOffset:f}=N;return{[`${b}-rtl`]:{direction:"rtl"},[`${b}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${b}-rtl${b}-vertical,
|
|
|
${b}-submenu-rtl ${b}-vertical`]:{[`${b}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(-${f})`},"&::after":{transform:`rotate(45deg) translateY(${f})`}}}}};const fe=N=>Object.assign({},(0,Pe.oN)(N));var rt=(N,b)=>{const{componentCls:f,itemColor:C,itemSelectedColor:ee,groupTitleColor:Se,itemBg:H,subMenuItemBg:ne,itemSelectedBg:Qe,activeBarHeight:we,activeBarWidth:ye,activeBarBorderWidth:je,motionDurationSlow:mt,motionEaseInOut:ge,motionEaseOut:st,itemPaddingInline:ze,motionDurationMid:Ie,itemHoverColor:Le,lineType:ct,colorSplit:Tt,itemDisabledColor:Mt,dangerItemColor:Yt,dangerItemHoverColor:_r,dangerItemSelectedColor:Sr,dangerItemActiveBg:Lr,dangerItemSelectedBg:Er,itemHoverBg:Ar,itemActiveBg:ar,menuSubMenuBg:Rr,horizontalItemSelectedColor:fn,horizontalItemSelectedBg:En,horizontalItemBorderRadius:gn,horizontalItemHoverBg:Rn,popupBg:ji}=N;return{[`${f}-${b}, ${f}-${b} > ${f}`]:{color:C,background:H,[`&${f}-root:focus-visible`]:Object.assign({},fe(N)),[`${f}-item-group-title`]:{color:Se},[`${f}-submenu-selected`]:{[`> ${f}-submenu-title`]:{color:ee}},[`${f}-item-disabled, ${f}-submenu-disabled`]:{color:`${Mt} !important`},[`${f}-item:not(${f}-item-selected):not(${f}-submenu-selected)`]:{[`&:hover, > ${f}-submenu-title:hover`]:{color:Le}},[`&:not(${f}-horizontal)`]:{[`${f}-item:not(${f}-item-selected)`]:{"&:hover":{backgroundColor:Ar},"&:active":{backgroundColor:ar}},[`${f}-submenu-title`]:{"&:hover":{backgroundColor:Ar},"&:active":{backgroundColor:ar}}},[`${f}-item-danger`]:{color:Yt,[`&${f}-item:hover`]:{[`&:not(${f}-item-selected):not(${f}-submenu-selected)`]:{color:_r}},[`&${f}-item:active`]:{background:Lr}},[`${f}-item a`]:{"&, &:hover":{color:"inherit"}},[`${f}-item-selected`]:{color:ee,[`&${f}-item-danger`]:{color:Sr},"a, a:hover":{color:"inherit"}},[`& ${f}-item-selected`]:{backgroundColor:Qe,[`&${f}-item-danger`]:{backgroundColor:Er}},[`${f}-item, ${f}-submenu-title`]:{[`&:not(${f}-item-disabled):focus-visible`]:Object.assign({},fe(N))},[`&${f}-submenu > ${f}`]:{backgroundColor:Rr},[`&${f}-popup > ${f}`]:{backgroundColor:ji},[`&${f}-horizontal`]:Object.assign(Object.assign({},b==="dark"?{borderBottom:0}:{}),{[`> ${f}-item, > ${f}-submenu`]:{top:je,marginTop:-je,marginBottom:0,borderRadius:gn,"&::after":{position:"absolute",insetInline:ze,bottom:0,borderBottom:`${we}px solid transparent`,transition:`border-color ${mt} ${ge}`,content:'""'},"&:hover, &-active, &-open":{background:Rn,"&::after":{borderBottomWidth:we,borderBottomColor:fn}},"&-selected":{color:fn,backgroundColor:En,"&:hover":{backgroundColor:En},"&::after":{borderBottomWidth:we,borderBottomColor:fn}}}}),[`&${f}-root`]:{[`&${f}-inline, &${f}-vertical`]:{borderInlineEnd:`${je}px ${ct} ${Tt}`}},[`&${f}-inline`]:{[`${f}-sub${f}-inline`]:{background:ne},[`${f}-item, ${f}-submenu-title`]:je&&ye?{width:`calc(100% + ${je}px)`}:{},[`${f}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${ye}px solid ${ee}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${Ie} ${st}`,`opacity ${Ie} ${st}`].join(","),content:'""'},[`&${f}-item-danger`]:{"&::after":{borderInlineEndColor:Sr}}},[`${f}-selected, ${f}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${Ie} ${ge}`,`opacity ${Ie} ${ge}`].join(",")}}}}}};const ot=N=>{const{componentCls:b,itemHeight:f,itemMarginInline:C,padding:ee,menuArrowSize:Se,marginXS:H,itemMarginBlock:ne}=N,Qe=ee+Se+H;return{[`${b}-item`]:{position:"relative",overflow:"hidden"},[`${b}-item, ${b}-submenu-title`]:{height:f,lineHeight:`${f}px`,paddingInline:ee,overflow:"hidden",textOverflow:"ellipsis",marginInline:C,marginBlock:ne,width:`calc(100% - ${C*2}px)`},[`> ${b}-item,
|
|
|
> ${b}-submenu > ${b}-submenu-title`]:{height:f,lineHeight:`${f}px`},[`${b}-item-group-list ${b}-submenu-title,
|
|
|
${b}-submenu-title`]:{paddingInlineEnd:Qe}}};var et=N=>{const{componentCls:b,iconCls:f,itemHeight:C,colorTextLightSolid:ee,dropdownWidth:Se,controlHeightLG:H,motionDurationMid:ne,motionEaseOut:Qe,paddingXL:we,itemMarginInline:ye,fontSizeLG:je,motionDurationSlow:mt,paddingXS:ge,boxShadowSecondary:st,collapsedWidth:ze,collapsedIconSize:Ie}=N,Le={height:C,lineHeight:`${C}px`,listStylePosition:"inside",listStyleType:"disc"};return[{[b]:{"&-inline, &-vertical":Object.assign({[`&${b}-root`]:{boxShadow:"none"}},ot(N))},[`${b}-submenu-popup`]:{[`${b}-vertical`]:Object.assign(Object.assign({},ot(N)),{boxShadow:st})}},{[`${b}-submenu-popup ${b}-vertical${b}-sub`]:{minWidth:Se,maxHeight:`calc(100vh - ${H*2.5}px)`,padding:"0",overflow:"hidden",borderInlineEnd:0,"&:not([class*='-active'])":{overflowX:"hidden",overflowY:"auto"}}},{[`${b}-inline`]:{width:"100%",[`&${b}-root`]:{[`${b}-item, ${b}-submenu-title`]:{display:"flex",alignItems:"center",transition:[`border-color ${mt}`,`background ${mt}`,`padding ${ne} ${Qe}`].join(","),[`> ${b}-title-content`]:{flex:"auto",minWidth:0,overflow:"hidden",textOverflow:"ellipsis"},"> *":{flex:"none"}}},[`${b}-sub${b}-inline`]:{padding:0,border:0,borderRadius:0,boxShadow:"none",[`& > ${b}-submenu > ${b}-submenu-title`]:Le,[`& ${b}-item-group-title`]:{paddingInlineStart:we}},[`${b}-item`]:Le}},{[`${b}-inline-collapsed`]:{width:ze,[`&${b}-root`]:{[`${b}-item, ${b}-submenu ${b}-submenu-title`]:{[`> ${b}-inline-collapsed-noicon`]:{fontSize:je,textAlign:"center"}}},[`> ${b}-item,
|
|
|
> ${b}-item-group > ${b}-item-group-list > ${b}-item,
|
|
|
> ${b}-item-group > ${b}-item-group-list > ${b}-submenu > ${b}-submenu-title,
|
|
|
> ${b}-submenu > ${b}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${je/2}px - ${ye}px)`,textOverflow:"clip",[`
|
|
|
${b}-submenu-arrow,
|
|
|
${b}-submenu-expand-icon
|
|
|
`]:{opacity:0},[`${b}-item-icon, ${f}`]:{margin:0,fontSize:Ie,lineHeight:`${C}px`,"+ span":{display:"inline-block",opacity:0}}},[`${b}-item-icon, ${f}`]:{display:"inline-block"},"&-tooltip":{pointerEvents:"none",[`${b}-item-icon, ${f}`]:{display:"none"},"a, a:hover":{color:ee}},[`${b}-item-group-title`]:Object.assign(Object.assign({},Pe.vS),{paddingInline:ge})}}]};const _t=N=>{const{componentCls:b,motionDurationSlow:f,motionDurationMid:C,motionEaseInOut:ee,motionEaseOut:Se,iconCls:H,iconSize:ne,iconMarginInlineEnd:Qe}=N;return{[`${b}-item, ${b}-submenu-title`]:{position:"relative",display:"block",margin:0,whiteSpace:"nowrap",cursor:"pointer",transition:[`border-color ${f}`,`background ${f}`,`padding ${f} ${ee}`].join(","),[`${b}-item-icon, ${H}`]:{minWidth:ne,fontSize:ne,transition:[`font-size ${C} ${Se}`,`margin ${f} ${ee}`,`color ${f}`].join(","),"+ span":{marginInlineStart:Qe,opacity:1,transition:[`opacity ${f} ${ee}`,`margin ${f}`,`color ${f}`].join(",")}},[`${b}-item-icon`]:Object.assign({},(0,Pe.Ro)()),[`&${b}-item-only-child`]:{[`> ${H}, > ${b}-item-icon`]:{marginInlineEnd:0}}},[`${b}-item-disabled, ${b}-submenu-disabled`]:{background:"none !important",cursor:"not-allowed","&::after":{borderColor:"transparent !important"},a:{color:"inherit !important"},[`> ${b}-submenu-title`]:{color:"inherit !important",cursor:"not-allowed"}}}},Ot=N=>{const{componentCls:b,motionDurationSlow:f,motionEaseInOut:C,borderRadius:ee,menuArrowSize:Se,menuArrowOffset:H}=N;return{[`${b}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:N.margin,width:Se,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${f} ${C}, opacity ${f}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:Se*.6,height:Se*.15,backgroundColor:"currentcolor",borderRadius:ee,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})`}}}}},Pt=N=>{const{antCls:b,componentCls:f,fontSize:C,motionDurationSlow:ee,motionDurationMid:Se,motionEaseInOut:H,paddingXS:ne,padding:Qe,colorSplit:we,lineWidth:ye,zIndexPopup:je,borderRadiusLG:mt,subMenuItemBorderRadius:ge,menuArrowSize:st,menuArrowOffset:ze,lineType:Ie,menuPanelMaskInset:Le,groupTitleLineHeight:ct,groupTitleFontSize:Tt}=N;return[{"":{[`${f}`]:Object.assign(Object.assign({},(0,Pe.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,Pe.Wf)(N)),(0,Pe.dF)()),{marginBottom:0,paddingInlineStart:0,fontSize:C,lineHeight:0,listStyle:"none",outline:"none",transition:`width ${ee} 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:N.itemBorderRadius},[`${f}-item-group-title`]:{padding:`${ne}px ${Qe}px`,fontSize:Tt,lineHeight:ct,transition:`all ${ee}`},[`&-horizontal ${f}-submenu`]:{transition:[`border-color ${ee} ${H}`,`background ${ee} ${H}`].join(",")},[`${f}-submenu, ${f}-submenu-inline`]:{transition:[`border-color ${ee} ${H}`,`background ${ee} ${H}`,`padding ${Se} ${H}`].join(",")},[`${f}-submenu ${f}-sub`]:{cursor:"initial",transition:[`background ${ee} ${H}`,`padding ${ee} ${H}`].join(",")},[`${f}-title-content`]:{transition:`color ${ee}`},[`${f}-item a`]:{"&::before":{position:"absolute",inset:0,backgroundColor:"transparent",content:'""'}},[`${f}-item-divider`]:{overflow:"hidden",lineHeight:0,borderColor:we,borderStyle:Ie,borderWidth:0,borderTopWidth:ye,marginBlock:ye,padding:0,"&-dashed":{borderStyle:"dashed"}}}),_t(N)),{[`${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:je,borderRadius:mt,boxShadow:"none",transformOrigin:"0 0",[`&${f}-submenu`]:{background:"transparent"},"&::before":{position:"absolute",inset:`${Le}px 0 0`,zIndex:-1,width:"100%",height:"100%",opacity:0,content:'""'}},"&-placement-rightTop::before":{top:0,insetInlineStart:Le},"\n &-placement-leftTop,\n &-placement-bottomRight,\n ":{transformOrigin:"100% 0"},"\n &-placement-leftBottom,\n &-placement-topRight,\n ":{transformOrigin:"100% 100%"},"\n &-placement-rightBottom,\n &-placement-topLeft,\n ":{transformOrigin:"0 100%"},"\n &-placement-bottomLeft,\n &-placement-rightTop,\n ":{transformOrigin:"0 0"},"\n &-placement-leftTop,\n &-placement-leftBottom\n ":{paddingInlineEnd:N.paddingXS},"\n &-placement-rightTop,\n &-placement-rightBottom\n ":{paddingInlineStart:N.paddingXS},"\n &-placement-topRight,\n &-placement-topLeft\n ":{paddingBottom:N.paddingXS},"\n &-placement-bottomRight,\n &-placement-bottomLeft\n ":{paddingTop:N.paddingXS},[`> ${f}`]:Object.assign(Object.assign(Object.assign({borderRadius:mt},_t(N)),Ot(N)),{[`${f}-item, ${f}-submenu > ${f}-submenu-title`]:{borderRadius:ge},[`${f}-submenu-title::after`]:{transition:`transform ${ee} ${H}`}})}}),Ot(N)),{[`&-inline-collapsed ${f}-submenu-arrow,
|
|
|
&-inline ${f}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${ze})`},"&::after":{transform:`rotate(45deg) translateX(-${ze})`}},[`${f}-submenu-open${f}-submenu-inline > ${f}-submenu-title > ${f}-submenu-arrow`]:{transform:`translateY(-${st*.2}px)`,"&::after":{transform:`rotate(-45deg) translateX(-${ze})`},"&::before":{transform:`rotate(45deg) translateX(${ze})`}}})},{[`${b}-layout-header`]:{[f]:{lineHeight:"inherit"}}}]};var cr=(N,b)=>(0,Je.Z)("Menu",C=>{if(b===!1)return[];const{colorBgElevated:ee,colorPrimary:Se,colorTextLightSolid:H,controlHeightLG:ne,fontSize:Qe,darkItemColor:we,darkDangerItemColor:ye,darkItemBg:je,darkSubMenuItemBg:mt,darkItemSelectedColor:ge,darkItemSelectedBg:st,darkDangerItemSelectedBg:ze,darkItemHoverBg:Ie,darkGroupTitleColor:Le,darkItemHoverColor:ct,darkItemDisabledColor:Tt,darkDangerItemHoverColor:Mt,darkDangerItemSelectedColor:Yt,darkDangerItemActiveBg:_r}=C,Sr=Qe/7*5,Lr=(0,Fe.TS)(C,{menuArrowSize:Sr,menuHorizontalHeight:ne*1.15,menuArrowOffset:`${Sr*.25}px`,menuPanelMaskInset:-7,menuSubMenuBg:ee}),Er=(0,Fe.TS)(Lr,{itemColor:we,itemHoverColor:ct,groupTitleColor:Le,itemSelectedColor:ge,itemBg:je,popupBg:je,subMenuItemBg:mt,itemActiveBg:"transparent",itemSelectedBg:st,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:Ie,itemDisabledColor:Tt,dangerItemColor:ye,dangerItemHoverColor:Mt,dangerItemSelectedColor:Yt,dangerItemActiveBg:_r,dangerItemSelectedBg:ze,menuSubMenuBg:mt,horizontalItemSelectedColor:H,horizontalItemSelectedBg:Se});return[Pt(Lr),Ue(Lr),et(Lr),rt(Lr,"light"),rt(Er,"dark"),Me(Lr),(0,q.Z)(Lr),(0,Ae.oN)(Lr,"slide-up"),(0,Ae.oN)(Lr,"slide-down"),(0,D._y)(Lr,"zoom-big")]},C=>{const{colorPrimary:ee,colorError:Se,colorTextDisabled:H,colorErrorBg:ne,colorText:Qe,colorTextDescription:we,colorBgContainer:ye,colorFillAlter:je,colorFillContent:mt,lineWidth:ge,lineWidthBold:st,controlItemBgActive:ze,colorBgTextHover:Ie,controlHeightLG:Le,lineHeight:ct,colorBgElevated:Tt,marginXXS:Mt,padding:Yt,fontSize:_r,controlHeightSM:Sr,fontSizeLG:Lr,colorTextLightSolid:Er,colorErrorHover:Ar}=C,ar=new Be.C(Er).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:ee,horizontalItemHoverColor:ee,colorGroupTitle:we,groupTitleColor:we,colorItemTextSelected:ee,itemSelectedColor:ee,colorItemTextSelectedHorizontal:ee,horizontalItemSelectedColor:ee,colorItemBg:ye,itemBg:ye,colorItemBgHover:Ie,itemHoverBg:Ie,colorItemBgActive:mt,itemActiveBg:ze,colorSubItemBg:je,subMenuItemBg:je,colorItemBgSelected:ze,itemSelectedBg:ze,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:0,colorActiveBarHeight:st,activeBarHeight:st,colorActiveBarBorderSize:ge,activeBarBorderWidth:ge,colorItemTextDisabled:H,itemDisabledColor:H,colorDangerItemText:Se,dangerItemColor:Se,colorDangerItemTextHover:Se,dangerItemHoverColor:Se,colorDangerItemTextSelected:Se,dangerItemSelectedColor:Se,colorDangerItemBgActive:ne,dangerItemActiveBg:ne,colorDangerItemBgSelected:ne,dangerItemSelectedBg:ne,itemMarginInline:C.marginXXS,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:Le,groupTitleLineHeight:ct,collapsedWidth:Le*2,popupBg:Tt,itemMarginBlock:Mt,itemPaddingInline:Yt,horizontalLineHeight:`${Le*1.15}px`,iconSize:_r,iconMarginInlineEnd:Sr-_r,collapsedIconSize:Lr,groupTitleFontSize:_r,darkItemDisabledColor:new Be.C(Er).setAlpha(.25).toRgbString(),darkItemColor:ar,darkDangerItemColor:Se,darkItemBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:Er,darkItemSelectedBg:ee,darkDangerItemSelectedBg:Se,darkItemHoverBg:"transparent",darkGroupTitleColor:ar,darkItemHoverColor:Er,darkDangerItemHoverColor:Ar,darkDangerItemSelectedColor:Er,darkDangerItemActiveBg:Se}},{deprecatedTokens:[["colorGroupTitle","groupTitleColor"],["radiusItem","itemBorderRadius"],["radiusSubMenuItem","subMenuItemBorderRadius"],["colorItemText","itemColor"],["colorItemTextHover","itemHoverColor"],["colorItemTextHoverHorizontal","horizontalItemHoverColor"],["colorItemTextSelected","itemSelectedColor"],["colorItemTextSelectedHorizontal","horizontalItemSelectedColor"],["colorItemTextDisabled","itemDisabledColor"],["colorDangerItemText","dangerItemColor"],["colorDangerItemTextHover","dangerItemHoverColor"],["colorDangerItemTextSelected","dangerItemSelectedColor"],["colorDangerItemBgActive","dangerItemActiveBg"],["colorDangerItemBgSelected","dangerItemSelectedBg"],["colorItemBg","itemBg"],["colorItemBgHover","itemHoverBg"],["colorSubItemBg","subMenuItemBg"],["colorItemBgActive","itemActiveBg"],["colorItemBgSelectedHorizontal","horizontalItemSelectedBg"],["colorActiveBarWidth","activeBarWidth"],["colorActiveBarHeight","activeBarHeight"],["colorActiveBarBorderSize","activeBarBorderWidth"],["colorItemBgSelected","itemSelectedBg"]]})(N),nr=function(N,b){var f={};for(var C in N)Object.prototype.hasOwnProperty.call(N,C)&&b.indexOf(C)<0&&(f[C]=N[C]);if(N!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ee=0,C=Object.getOwnPropertySymbols(N);ee<C.length;ee++)b.indexOf(C[ee])<0&&Object.prototype.propertyIsEnumerable.call(N,C[ee])&&(f[C[ee]]=N[C[ee]]);return f},sr=(0,ue.forwardRef)((N,b)=>{var f,C;const ee=ue.useContext(j.Z),Se=ee||{},{getPrefixCls:H,getPopupContainer:ne,direction:Qe,menu:we}=ue.useContext(W.E_),ye=H(),{prefixCls:je,className:mt,style:ge,theme:st="light",expandIcon:ze,_internalDisableMenuItemTitleTooltip:Ie,inlineCollapsed:Le,siderCollapsed:ct,items:Tt,children:Mt,rootClassName:Yt,mode:_r,selectable:Sr,onClick:Lr,overflowedIndicatorPopupClassName:Er}=N,Ar=nr(N,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","items","children","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),ar=(0,$.Z)(Ar,["collapsedWidth"]),Rr=Ne(Tt)||Mt;(f=Se.validator)===null||f===void 0||f.call(Se,{mode:_r});const fn=(0,J.useEvent)(function(){var aa;Lr==null||Lr.apply(void 0,arguments),(aa=Se.onClick)===null||aa===void 0||aa.call(Se)}),En=Se.mode||_r,gn=Sr!=null?Sr:Se.selectable,Rn=ue.useMemo(()=>ct!==void 0?ct:Le,[Le,ct]),ji={horizontal:{motionName:`${ye}-slide-up`},inline:(0,G.Z)(ye),other:{motionName:`${ye}-zoom-big`}},Or=H("menu",je||Se.prefixCls),[bi,ua]=cr(Or,!ee),gi=re()(`${Or}-${st}`,we==null?void 0:we.className,mt);let ta;if(typeof ze=="function")ta=ze;else if(ze===null||ze===!1)ta=null;else if(Se.expandIcon===null||Se.expandIcon===!1)ta=null;else{const aa=ze!=null?ze:Se.expandIcon;ta=(0,F.Tm)(aa,{className:re()(`${Or}-submenu-expand-icon`,(0,F.l$)(aa)?(C=aa.props)===null||C===void 0?void 0:C.className:"")})}const Ji=ue.useMemo(()=>({prefixCls:Or,inlineCollapsed:Rn||!1,direction:Qe,firstLevel:!0,theme:st,mode:En,disableMenuItemTitleTooltip:Ie}),[Or,Rn,Qe,Ie,st]);return bi(ue.createElement(j.Z.Provider,{value:null},ue.createElement(U.Provider,{value:Ji},ue.createElement(ve.ZP,Object.assign({getPopupContainer:ne,overflowedIndicator:ue.createElement(ie.Z,null),overflowedIndicatorPopupClassName:re()(Or,`${Or}-${st}`,Er),mode:En,selectable:gn,onClick:fn},ar,{inlineCollapsed:Rn,style:Object.assign(Object.assign({},we==null?void 0:we.style),ge),className:gi,prefixCls:Or,direction:Qe,defaultMotions:ji,expandIcon:ta,ref:b,rootClassName:re()(Yt,ua)}),Rr))))});const k=(0,ue.forwardRef)((N,b)=>{const f=(0,ue.useRef)(null),C=ue.useContext(T.D);return(0,ue.useImperativeHandle)(b,()=>({menu:f.current,focus:ee=>{var Se;(Se=f.current)===null||Se===void 0||Se.focus(ee)}})),ue.createElement(sr,Object.assign({ref:f},N,C))});k.Item=Y,k.SubMenu=ae,k.Divider=I,k.ItemGroup=ve.BW;var Xe=k},58421:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return Se}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M272.9 512l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L186.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H532c6.7 0 10.4-7.7 6.3-12.9L272.9 512zm304 0l265.4-339.1c4.1-5.2.4-12.9-6.3-12.9h-77.3c-4.9 0-9.6 2.3-12.6 6.1L490.8 492.3a31.99 31.99 0 000 39.5l255.3 326.1c3 3.9 7.7 6.1 12.6 6.1H836c6.7 0 10.4-7.7 6.3-12.9L576.9 512z"}}]},name:"double-left",theme:"outlined"},De=T,re=x(7657),W=function(ne,Qe){return ue.createElement(re.Z,(0,ve.Z)({},ne,{ref:Qe,icon:De}))},S=ue.forwardRef(W),m=S,I=x(49198),g=x(33853),$=x(38819),_=x(92310),F=x.n(_),P=x(20068),U=x(33885),M=x(67732),Y=x(83652),Q=x(42403),ae=x(158),ie=x(26112),J={ZERO:48,NINE:57,NUMPAD_ZERO:96,NUMPAD_NINE:105,BACKSPACE:8,DELETE:46,ENTER:13,ARROW_UP:38,ARROW_DOWN:40},G=J,j=x(91735),se=function(H){(0,Q.Z)(Qe,H);var ne=(0,ae.Z)(Qe);function Qe(){var we;(0,M.Z)(this,Qe);for(var ye=arguments.length,je=new Array(ye),mt=0;mt<ye;mt++)je[mt]=arguments[mt];return we=ne.call.apply(ne,[this].concat(je)),we.state={goInputText:""},we.getValidValue=function(){var ge=we.state.goInputText;return!ge||Number.isNaN(ge)?void 0:Number(ge)},we.buildOptionText=function(ge){return"".concat(ge," ").concat(we.props.locale.items_per_page)},we.changeSize=function(ge){we.props.changeSize(Number(ge))},we.handleChange=function(ge){we.setState({goInputText:ge.target.value})},we.handleBlur=function(ge){var st=we.props,ze=st.goButton,Ie=st.quickGo,Le=st.rootPrefixCls,ct=we.state.goInputText;ze||ct===""||(we.setState({goInputText:""}),!(ge.relatedTarget&&(ge.relatedTarget.className.indexOf("".concat(Le,"-item-link"))>=0||ge.relatedTarget.className.indexOf("".concat(Le,"-item"))>=0))&&Ie(we.getValidValue()))},we.go=function(ge){var st=we.state.goInputText;st!==""&&(ge.keyCode===G.ENTER||ge.type==="click")&&(we.setState({goInputText:""}),we.props.quickGo(we.getValidValue()))},we}return(0,Y.Z)(Qe,[{key:"getPageSizeOptions",value:function(){var ye=this.props,je=ye.pageSize,mt=ye.pageSizeOptions;return mt.some(function(ge){return ge.toString()===je.toString()})?mt:mt.concat([je.toString()]).sort(function(ge,st){var ze=Number.isNaN(Number(ge))?0:Number(ge),Ie=Number.isNaN(Number(st))?0:Number(st);return ze-Ie})}},{key:"render",value:function(){var ye=this,je=this.props,mt=je.pageSize,ge=je.locale,st=je.rootPrefixCls,ze=je.changeSize,Ie=je.quickGo,Le=je.goButton,ct=je.selectComponentClass,Tt=je.buildOptionText,Mt=je.selectPrefixCls,Yt=je.disabled,_r=this.state.goInputText,Sr="".concat(st,"-options"),Lr=ct,Er=null,Ar=null,ar=null;if(!ze&&!Ie)return null;var Rr=this.getPageSizeOptions();if(ze&&Lr){var fn=Rr.map(function(En,gn){return ue.createElement(Lr.Option,{key:gn,value:En.toString()},(Tt||ye.buildOptionText)(En))});Er=ue.createElement(Lr,{disabled:Yt,prefixCls:Mt,showSearch:!1,className:"".concat(Sr,"-size-changer"),optionLabelProp:"children",popupMatchSelectWidth:!1,value:(mt||Rr[0]).toString(),onChange:this.changeSize,getPopupContainer:function(gn){return gn.parentNode},"aria-label":ge.page_size,defaultOpen:!1},fn)}return Ie&&(Le&&(ar=typeof Le=="boolean"?ue.createElement("button",{type:"button",onClick:this.go,onKeyUp:this.go,disabled:Yt,className:"".concat(Sr,"-quick-jumper-button")},ge.jump_to_confirm):ue.createElement("span",{onClick:this.go,onKeyUp:this.go},Le)),Ar=ue.createElement("div",{className:"".concat(Sr,"-quick-jumper")},ge.jump_to,ue.createElement("input",{disabled:Yt,type:"text",value:_r,onChange:this.handleChange,onKeyUp:this.go,onBlur:this.handleBlur,"aria-label":ge.page}),ge.page,ar)),ue.createElement("li",{className:"".concat(Sr)},Er,Ar)}}]),Qe}(ue.Component);se.defaultProps={pageSizeOptions:["10","20","50","100"]};var he=se,Ne=function(ne){var Qe,we=ne.rootPrefixCls,ye=ne.page,je=ne.active,mt=ne.className,ge=ne.showTitle,st=ne.onClick,ze=ne.onKeyPress,Ie=ne.itemRender,Le="".concat(we,"-item"),ct=F()(Le,"".concat(Le,"-").concat(ye),(Qe={},(0,P.Z)(Qe,"".concat(Le,"-active"),je),(0,P.Z)(Qe,"".concat(Le,"-disabled"),!ye),(0,P.Z)(Qe,ne.className,mt),Qe)),Tt=function(){st(ye)},Mt=function(Sr){ze(Sr,st,ye)},Yt=Ie(ye,"page",ue.createElement("a",{rel:"nofollow"},ye));return Yt?ue.createElement("li",{title:ge?ye.toString():null,className:ct,onClick:Tt,onKeyPress:Mt,tabIndex:0},Yt):null},Be=Ne;function Pe(){}function q(H){var ne=Number(H);return typeof ne=="number"&&!Number.isNaN(ne)&&isFinite(ne)&&Math.floor(ne)===ne}var Ae=function(ne,Qe,we){return we};function D(H,ne,Qe){var we=typeof H=="undefined"?ne.pageSize:H;return Math.floor((Qe.total-1)/we)+1}var Je=function(H){(0,Q.Z)(Qe,H);var ne=(0,ae.Z)(Qe);function Qe(we){var ye;(0,M.Z)(this,Qe),ye=ne.call(this,we),ye.paginationNode=ue.createRef(),ye.getJumpPrevPage=function(){return Math.max(1,ye.state.current-(ye.props.showLessItems?3:5))},ye.getJumpNextPage=function(){return Math.min(D(void 0,ye.state,ye.props),ye.state.current+(ye.props.showLessItems?3:5))},ye.getItemIcon=function(ze,Ie){var Le=ye.props.prefixCls,ct=ze||ue.createElement("button",{type:"button","aria-label":Ie,className:"".concat(Le,"-item-link")});return typeof ze=="function"&&(ct=ue.createElement(ze,(0,U.Z)({},ye.props))),ct},ye.isValid=function(ze){var Ie=ye.props.total;return q(ze)&&ze!==ye.state.current&&q(Ie)&&Ie>0},ye.shouldDisplayQuickJumper=function(){var ze=ye.props,Ie=ze.showQuickJumper,Le=ze.total,ct=ye.state.pageSize;return Le<=ct?!1:Ie},ye.handleKeyDown=function(ze){(ze.keyCode===G.ARROW_UP||ze.keyCode===G.ARROW_DOWN)&&ze.preventDefault()},ye.handleKeyUp=function(ze){var Ie=ye.getValidValue(ze),Le=ye.state.currentInputValue;Ie!==Le&&ye.setState({currentInputValue:Ie}),ze.keyCode===G.ENTER?ye.handleChange(Ie):ze.keyCode===G.ARROW_UP?ye.handleChange(Ie-1):ze.keyCode===G.ARROW_DOWN&&ye.handleChange(Ie+1)},ye.handleBlur=function(ze){var Ie=ye.getValidValue(ze);ye.handleChange(Ie)},ye.changePageSize=function(ze){var Ie=ye.state.current,Le=D(ze,ye.state,ye.props);Ie=Ie>Le?Le:Ie,Le===0&&(Ie=ye.state.current),typeof ze=="number"&&("pageSize"in ye.props||ye.setState({pageSize:ze}),"current"in ye.props||ye.setState({current:Ie,currentInputValue:Ie})),ye.props.onShowSizeChange(Ie,ze),"onChange"in ye.props&&ye.props.onChange&&ye.props.onChange(Ie,ze)},ye.handleChange=function(ze){var Ie=ye.props,Le=Ie.disabled,ct=Ie.onChange,Tt=ye.state,Mt=Tt.pageSize,Yt=Tt.current,_r=Tt.currentInputValue;if(ye.isValid(ze)&&!Le){var Sr=D(void 0,ye.state,ye.props),Lr=ze;return ze>Sr?Lr=Sr:ze<1&&(Lr=1),"current"in ye.props||ye.setState({current:Lr}),Lr!==_r&&ye.setState({currentInputValue:Lr}),ct(Lr,Mt),Lr}return Yt},ye.prev=function(){ye.hasPrev()&&ye.handleChange(ye.state.current-1)},ye.next=function(){ye.hasNext()&&ye.handleChange(ye.state.current+1)},ye.jumpPrev=function(){ye.handleChange(ye.getJumpPrevPage())},ye.jumpNext=function(){ye.handleChange(ye.getJumpNextPage())},ye.hasPrev=function(){return ye.state.current>1},ye.hasNext=function(){return ye.state.current<D(void 0,ye.state,ye.props)},ye.runIfEnter=function(ze,Ie){if(ze.key==="Enter"||ze.charCode===13){for(var Le=arguments.length,ct=new Array(Le>2?Le-2:0),Tt=2;Tt<Le;Tt++)ct[Tt-2]=arguments[Tt];Ie.apply(void 0,ct)}},ye.runIfEnterPrev=function(ze){ye.runIfEnter(ze,ye.prev)},ye.runIfEnterNext=function(ze){ye.runIfEnter(ze,ye.next)},ye.runIfEnterJumpPrev=function(ze){ye.runIfEnter(ze,ye.jumpPrev)},ye.runIfEnterJumpNext=function(ze){ye.runIfEnter(ze,ye.jumpNext)},ye.handleGoTO=function(ze){(ze.keyCode===G.ENTER||ze.type==="click")&&ye.handleChange(ye.state.currentInputValue)},ye.renderPrev=function(ze){var Ie=ye.props,Le=Ie.prevIcon,ct=Ie.itemRender,Tt=ct(ze,"prev",ye.getItemIcon(Le,"prev page")),Mt=!ye.hasPrev();return(0,ue.isValidElement)(Tt)?(0,ue.cloneElement)(Tt,{disabled:Mt}):Tt},ye.renderNext=function(ze){var Ie=ye.props,Le=Ie.nextIcon,ct=Ie.itemRender,Tt=ct(ze,"next",ye.getItemIcon(Le,"next page")),Mt=!ye.hasNext();return(0,ue.isValidElement)(Tt)?(0,ue.cloneElement)(Tt,{disabled:Mt}):Tt};var je=we.onChange!==Pe,mt="current"in we;mt&&!je&&console.warn("Warning: You provided a `current` prop to a Pagination component without an `onChange` handler. This will render a read-only component.");var ge=we.defaultCurrent;"current"in we&&(ge=we.current);var st=we.defaultPageSize;return"pageSize"in we&&(st=we.pageSize),ge=Math.min(ge,D(st,void 0,we)),ye.state={current:ge,currentInputValue:ge,pageSize:st},ye}return(0,Y.Z)(Qe,[{key:"componentDidUpdate",value:function(ye,je){var mt=this.props.prefixCls;if(je.current!==this.state.current&&this.paginationNode.current){var ge=this.paginationNode.current.querySelector(".".concat(mt,"-item-").concat(je.current));if(ge&&document.activeElement===ge){var st;ge==null||(st=ge.blur)===null||st===void 0||st.call(ge)}}}},{key:"getValidValue",value:function(ye){var je=ye.target.value,mt=D(void 0,this.state,this.props),ge=this.state.currentInputValue,st;return je===""?st=je:Number.isNaN(Number(je))?st=ge:je>=mt?st=mt:st=Number(je),st}},{key:"getShowSizeChanger",value:function(){var ye=this.props,je=ye.showSizeChanger,mt=ye.total,ge=ye.totalBoundaryShowSizeChanger;return typeof je!="undefined"?je:mt>ge}},{key:"render",value:function(){var ye=this.props,je=ye.prefixCls,mt=ye.className,ge=ye.style,st=ye.disabled,ze=ye.hideOnSinglePage,Ie=ye.total,Le=ye.locale,ct=ye.showQuickJumper,Tt=ye.showLessItems,Mt=ye.showTitle,Yt=ye.showTotal,_r=ye.simple,Sr=ye.itemRender,Lr=ye.showPrevNextJumpers,Er=ye.jumpPrevIcon,Ar=ye.jumpNextIcon,ar=ye.selectComponentClass,Rr=ye.selectPrefixCls,fn=ye.pageSizeOptions,En=this.state,gn=En.current,Rn=En.pageSize,ji=En.currentInputValue;if(ze===!0&&Ie<=Rn)return null;var Or=D(void 0,this.state,this.props),bi=[],ua=null,gi=null,ta=null,Ji=null,aa=null,Io=ct&&ct.goButton,oa=Tt?1:2,pi=gn-1>0?gn-1:0,Ti=gn+1<Or?gn+1:Or,zi=(0,ie.Z)(this.props,{aria:!0,data:!0}),be=Yt&&ue.createElement("li",{className:"".concat(je,"-total-text")},Yt(Ie,[Ie===0?0:(gn-1)*Rn+1,gn*Rn>Ie?Ie:gn*Rn]));if(_r){Io&&(typeof Io=="boolean"?aa=ue.createElement("button",{type:"button",onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Le.jump_to_confirm):aa=ue.createElement("span",{onClick:this.handleGoTO,onKeyUp:this.handleGoTO},Io),aa=ue.createElement("li",{title:Mt?"".concat(Le.jump_to).concat(gn,"/").concat(Or):null,className:"".concat(je,"-simple-pager")},aa));var Oe=this.renderPrev(pi);return ue.createElement("ul",(0,ve.Z)({className:F()(je,"".concat(je,"-simple"),(0,P.Z)({},"".concat(je,"-disabled"),st),mt),style:ge,ref:this.paginationNode},zi),be,Oe?ue.createElement("li",{title:Mt?Le.prev_page:null,onClick:this.prev,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterPrev,className:F()("".concat(je,"-prev"),(0,P.Z)({},"".concat(je,"-disabled"),!this.hasPrev())),"aria-disabled":!this.hasPrev()},Oe):null,ue.createElement("li",{title:Mt?"".concat(gn,"/").concat(Or):null,className:"".concat(je,"-simple-pager")},ue.createElement("input",{type:"text",value:ji,disabled:st,onKeyDown:this.handleKeyDown,onKeyUp:this.handleKeyUp,onChange:this.handleKeyUp,onBlur:this.handleBlur,size:3}),ue.createElement("span",{className:"".concat(je,"-slash")},"/"),Or),ue.createElement("li",{title:Mt?Le.next_page:null,onClick:this.next,tabIndex:this.hasPrev()?0:null,onKeyPress:this.runIfEnterNext,className:F()("".concat(je,"-next"),(0,P.Z)({},"".concat(je,"-disabled"),!this.hasNext())),"aria-disabled":!this.hasNext()},this.renderNext(Ti)),aa)}if(Or<=3+oa*2){var ke={locale:Le,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,showTitle:Mt,itemRender:Sr};Or||bi.push(ue.createElement(Be,(0,ve.Z)({},ke,{key:"noPager",page:1,className:"".concat(je,"-item-disabled")})));for(var qe=1;qe<=Or;qe+=1){var Rt=gn===qe;bi.push(ue.createElement(Be,(0,ve.Z)({},ke,{key:qe,page:qe,active:Rt})))}}else{var kt=Tt?Le.prev_3:Le.prev_5,yr=Tt?Le.next_3:Le.next_5,or=Sr(this.getJumpPrevPage(),"jump-prev",this.getItemIcon(Er,"prev page")),Nr=Sr(this.getJumpNextPage(),"jump-next",this.getItemIcon(Ar,"next page"));Lr&&(ua=or?ue.createElement("li",{title:Mt?kt:null,key:"prev",onClick:this.jumpPrev,tabIndex:0,onKeyPress:this.runIfEnterJumpPrev,className:F()("".concat(je,"-jump-prev"),(0,P.Z)({},"".concat(je,"-jump-prev-custom-icon"),!!Er))},or):null,gi=Nr?ue.createElement("li",{title:Mt?yr:null,key:"next",tabIndex:0,onClick:this.jumpNext,onKeyPress:this.runIfEnterJumpNext,className:F()("".concat(je,"-jump-next"),(0,P.Z)({},"".concat(je,"-jump-next-custom-icon"),!!Ar))},Nr):null),Ji=ue.createElement(Be,{locale:Le,last:!0,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:Or,page:Or,active:!1,showTitle:Mt,itemRender:Sr}),ta=ue.createElement(Be,{locale:Le,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:1,page:1,active:!1,showTitle:Mt,itemRender:Sr});var zr=Math.max(1,gn-oa),an=Math.min(gn+oa,Or);gn-1<=oa&&(an=1+oa*2),Or-gn<=oa&&(zr=Or-oa*2);for(var jr=zr;jr<=an;jr+=1){var Qr=gn===jr;bi.push(ue.createElement(Be,{locale:Le,rootPrefixCls:je,onClick:this.handleChange,onKeyPress:this.runIfEnter,key:jr,page:jr,active:Qr,showTitle:Mt,itemRender:Sr}))}gn-1>=oa*2&&gn!==3&&(bi[0]=(0,ue.cloneElement)(bi[0],{className:"".concat(je,"-item-after-jump-prev")}),bi.unshift(ua)),Or-gn>=oa*2&&gn!==Or-2&&(bi[bi.length-1]=(0,ue.cloneElement)(bi[bi.length-1],{className:"".concat(je,"-item-before-jump-next")}),bi.push(gi)),zr!==1&&bi.unshift(ta),an!==Or&&bi.push(Ji)}var qr=!this.hasPrev()||!Or,yn=!this.hasNext()||!Or,on=this.renderPrev(pi),Dn=this.renderNext(Ti);return ue.createElement("ul",(0,ve.Z)({className:F()(je,mt,(0,P.Z)({},"".concat(je,"-disabled"),st)),style:ge,ref:this.paginationNode},zi),be,on?ue.createElement("li",{title:Mt?Le.prev_page:null,onClick:this.prev,tabIndex:qr?null:0,onKeyPress:this.runIfEnterPrev,className:F()("".concat(je,"-prev"),(0,P.Z)({},"".concat(je,"-disabled"),qr)),"aria-disabled":qr},on):null,bi,Dn?ue.createElement("li",{title:Mt?Le.next_page:null,onClick:this.next,tabIndex:yn?null:0,onKeyPress:this.runIfEnterNext,className:F()("".concat(je,"-next"),(0,P.Z)({},"".concat(je,"-disabled"),yn)),"aria-disabled":yn},Dn):null,ue.createElement(he,{disabled:st,locale:Le,rootPrefixCls:je,selectComponentClass:ar,selectPrefixCls:Rr,changeSize:this.getShowSizeChanger()?this.changePageSize:null,current:gn,pageSize:Rn,pageSizeOptions:fn,quickGo:this.shouldDisplayQuickJumper()?this.handleChange:null,goButton:Io}))}}],[{key:"getDerivedStateFromProps",value:function(ye,je){var mt={};if("current"in ye&&(mt.current=ye.current,ye.current!==je.current&&(mt.currentInputValue=mt.current)),"pageSize"in ye&&ye.pageSize!==je.pageSize){var ge=je.current,st=D(ye.pageSize,je,ye);ge=ge>st?st:ge,"current"in ye||(mt.current=ge,mt.currentInputValue=ge),mt.pageSize=ye.pageSize}return mt}}]),Qe}(ue.Component);Je.defaultProps={defaultCurrent:1,total:0,defaultPageSize:10,onChange:Pe,className:"",selectPrefixCls:"rc-select",prefixCls:"rc-pagination",selectComponentClass:null,hideOnSinglePage:!1,showPrevNextJumpers:!0,showQuickJumper:!1,showLessItems:!1,showTitle:!0,onShowSizeChange:Pe,locale:j.Z,style:{},itemRender:Ae,totalBoundaryShowSizeChanger:50};var Fe=Je,Ce=x(22075),Ue=x(36355),me=x(19716),Me=x(8628),fe=x(9763),Ee=x(57809);const rt=H=>ue.createElement(Ee.default,Object.assign({},H,{showSearch:!0,size:"small"})),ot=H=>ue.createElement(Ee.default,Object.assign({},H,{showSearch:!0,size:"middle"}));rt.Option=Ee.default.Option,ot.Option=Ee.default.Option;var We=x(9937),et=x(17313),_t=x(83116),Ot=x(37613);const Pt=H=>{const{componentCls:ne}=H;return{[`${ne}-disabled`]:{"&, &:hover":{cursor:"not-allowed",[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}},"&:focus-visible":{cursor:"not-allowed",[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed"}}},[`&${ne}-disabled`]:{cursor:"not-allowed",[`${ne}-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}}},[`${ne}-item-link`]:{color:H.colorTextDisabled,cursor:"not-allowed","&:hover, &:active":{backgroundColor:"transparent"},[`${ne}-simple&`]:{backgroundColor:"transparent","&:hover, &:active":{backgroundColor:"transparent"}}},[`${ne}-simple-pager`]:{color:H.colorTextDisabled},[`${ne}-jump-prev, ${ne}-jump-next`]:{[`${ne}-item-link-icon`]:{opacity:0},[`${ne}-item-ellipsis`]:{opacity:1}}},[`&${ne}-simple`]:{[`${ne}-prev, ${ne}-next`]:{[`&${ne}-disabled ${ne}-item-link`]:{"&:hover, &:active":{backgroundColor:"transparent"}}}}}},cr=H=>{const{componentCls:ne}=H;return{[`&${ne}-mini ${ne}-total-text, &${ne}-mini ${ne}-simple-pager`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini ${ne}-item`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM-2}px`},[`&${ne}-mini:not(${ne}-disabled) ${ne}-item:not(${ne}-item-active)`]:{backgroundColor:"transparent",borderColor:"transparent","&:hover":{backgroundColor:H.colorBgTextHover},"&:active":{backgroundColor:H.colorBgTextActive}},[`&${ne}-mini ${ne}-prev, &${ne}-mini ${ne}-next`]:{minWidth:H.itemSizeSM,height:H.itemSizeSM,margin:0,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini:not(${ne}-disabled)`]:{[`${ne}-prev, ${ne}-next`]:{[`&:hover ${ne}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ne}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ne}-disabled:hover ${ne}-item-link`]:{backgroundColor:"transparent"}}},[`
|
|
|
&${ne}-mini ${ne}-prev ${ne}-item-link,
|
|
|
&${ne}-mini ${ne}-next ${ne}-item-link
|
|
|
`]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`}},[`&${ne}-mini ${ne}-jump-prev, &${ne}-mini ${ne}-jump-next`]:{height:H.itemSizeSM,marginInlineEnd:0,lineHeight:`${H.itemSizeSM}px`},[`&${ne}-mini ${ne}-options`]:{marginInlineStart:H.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:H.miniOptionsSizeChangerTop},"&-quick-jumper":{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,input:Object.assign(Object.assign({},(0,We.x0)(H)),{width:H.paginationMiniQuickJumperInputWidth,height:H.controlHeightSM})}}}},nr=H=>{const{componentCls:ne}=H;return{[`
|
|
|
&${ne}-simple ${ne}-prev,
|
|
|
&${ne}-simple ${ne}-next
|
|
|
`]:{height:H.itemSizeSM,lineHeight:`${H.itemSizeSM}px`,verticalAlign:"top",[`${ne}-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`}}},[`&${ne}-simple ${ne}-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:ne}=H;return{[`${ne}-jump-prev, ${ne}-jump-next`]:{outline:0,[`${ne}-item-container`]:{position:"relative",[`${ne}-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"}},[`${ne}-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":{[`${ne}-item-link-icon`]:{opacity:1},[`${ne}-item-ellipsis`]:{opacity:0}}},[`
|
|
|
${ne}-prev,
|
|
|
${ne}-jump-prev,
|
|
|
${ne}-jump-next
|
|
|
`]:{marginInlineEnd:H.marginXS},[`
|
|
|
${ne}-prev,
|
|
|
${ne}-next,
|
|
|
${ne}-jump-prev,
|
|
|
${ne}-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}`},[`${ne}-prev, ${ne}-next`]:{fontFamily:"Arial, Helvetica, sans-serif",outline:0,button:{color:H.colorText,cursor:"pointer",userSelect:"none"},[`${ne}-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 ${ne}-item-link`]:{backgroundColor:H.colorBgTextHover},[`&:active ${ne}-item-link`]:{backgroundColor:H.colorBgTextActive},[`&${ne}-disabled:hover`]:{[`${ne}-item-link`]:{backgroundColor:"transparent"}}},[`${ne}-slash`]:{marginInlineEnd:H.paginationSlashMarginInlineEnd,marginInlineStart:H.paginationSlashMarginInlineStart},[`${ne}-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,We.ik)(H)),{width:H.controlHeightLG*1.25,height:H.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:H.marginXS,marginInlineEnd:H.marginXS})}}}},sr=H=>{const{componentCls:ne}=H;return{[`${ne}-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(${ne}-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}}}}},k=H=>{const{componentCls:ne}=H;return{[ne]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(0,et.Wf)(H)),{"ul, ol":{margin:0,padding:0,listStyle:"none"},"&::after":{display:"block",clear:"both",height:0,overflow:"hidden",visibility:"hidden",content:'""'},[`${ne}-total-text`]:{display:"inline-block",height:H.itemSize,marginInlineEnd:H.marginXS,lineHeight:`${H.itemSize-2}px`,verticalAlign:"middle"}}),sr(H)),br(H)),nr(H)),cr(H)),Pt(H)),{[`@media only screen and (max-width: ${H.screenLG}px)`]:{[`${ne}-item`]:{"&-after-jump-prev, &-before-jump-next":{display:"none"}}},[`@media only screen and (max-width: ${H.screenSM}px)`]:{[`${ne}-options`]:{display:"none"}}}),[`&${H.componentCls}-rtl`]:{direction:"rtl"}}},Xe=H=>{const{componentCls:ne}=H;return{[`${ne}${ne}-disabled:not(${ne}-mini)`]:{"&, &:hover":{[`${ne}-item-link`]:{borderColor:H.colorBorder}},"&:focus-visible":{[`${ne}-item-link`]:{borderColor:H.colorBorder}},[`${ne}-item, ${ne}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,[`&:hover:not(${ne}-item-active)`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,a:{color:H.colorTextDisabled}},[`&${ne}-item-active`]:{backgroundColor:H.itemActiveBgDisabled}},[`${ne}-prev, ${ne}-next`]:{"&:hover button":{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder,color:H.colorTextDisabled},[`${ne}-item-link`]:{backgroundColor:H.colorBgContainerDisabled,borderColor:H.colorBorder}}},[`${ne}:not(${ne}-mini)`]:{[`${ne}-prev, ${ne}-next`]:{"&:hover button":{borderColor:H.colorPrimaryHover,backgroundColor:H.itemBg},[`${ne}-item-link`]:{backgroundColor:H.itemLinkBg,borderColor:H.colorBorder},[`&:hover ${ne}-item-link`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,color:H.colorPrimary},[`&${ne}-disabled`]:{[`${ne}-item-link`]:{borderColor:H.colorBorder,color:H.colorTextDisabled}}},[`${ne}-item`]:{backgroundColor:H.itemBg,border:`${H.lineWidth}px ${H.lineType} ${H.colorBorder}`,[`&:hover:not(${ne}-item-active)`]:{borderColor:H.colorPrimary,backgroundColor:H.itemBg,a:{color:H.colorPrimary}},"&-active":{borderColor:H.colorPrimary}}}}},N=H=>{const{componentCls:ne}=H;return{[`${ne}:not(${ne}-disabled)`]:{[`${ne}-item`]:Object.assign({},(0,et.Qy)(H)),[`${ne}-jump-prev, ${ne}-jump-next`]:{"&:focus-visible":Object.assign({[`${ne}-item-link-icon`]:{opacity:1},[`${ne}-item-ellipsis`]:{opacity:0}},(0,et.oN)(H))},[`${ne}-prev, ${ne}-next`]:{[`&:focus-visible ${ne}-item-link`]:Object.assign({},(0,et.oN)(H))}}}};var b=(0,_t.Z)("Pagination",H=>{const ne=(0,Ot.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,We.e5)(H),(0,We.TM)(H));return[k(ne),N(ne),H.wireframe&&Xe(ne)]},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,ne){var Qe={};for(var we in H)Object.prototype.hasOwnProperty.call(H,we)&&ne.indexOf(we)<0&&(Qe[we]=H[we]);if(H!=null&&typeof Object.getOwnPropertySymbols=="function")for(var ye=0,we=Object.getOwnPropertySymbols(H);ye<we.length;ye++)ne.indexOf(we[ye])<0&&Object.prototype.propertyIsEnumerable.call(H,we[ye])&&(Qe[we[ye]]=H[we[ye]]);return Qe},ee=H=>{const{prefixCls:ne,selectPrefixCls:Qe,className:we,rootClassName:ye,style:je,size:mt,locale:ge,selectComponentClass:st,responsive:ze,showSizeChanger:Ie}=H,Le=f(H,["prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","selectComponentClass","responsive","showSizeChanger"]),{xs:ct}=(0,Me.Z)(ze),{getPrefixCls:Tt,direction:Mt,pagination:Yt={}}=ue.useContext(Ue.E_),_r=Tt("pagination",ne),[Sr,Lr]=b(_r),Er=Ie!=null?Ie:Yt.showSizeChanger,Ar=ue.useMemo(()=>{const Or=ue.createElement("span",{className:`${_r}-item-ellipsis`},"\u2022\u2022\u2022"),bi=ue.createElement("button",{className:`${_r}-item-link`,type:"button",tabIndex:-1},Mt==="rtl"?ue.createElement($.Z,null):ue.createElement(g.Z,null)),ua=ue.createElement("button",{className:`${_r}-item-link`,type:"button",tabIndex:-1},Mt==="rtl"?ue.createElement(g.Z,null):ue.createElement($.Z,null)),gi=ue.createElement("a",{className:`${_r}-item-link`},ue.createElement("div",{className:`${_r}-item-container`},Mt==="rtl"?ue.createElement(I.Z,{className:`${_r}-item-link-icon`}):ue.createElement(m,{className:`${_r}-item-link-icon`}),Or)),ta=ue.createElement("a",{className:`${_r}-item-link`},ue.createElement("div",{className:`${_r}-item-container`},Mt==="rtl"?ue.createElement(m,{className:`${_r}-item-link-icon`}):ue.createElement(I.Z,{className:`${_r}-item-link-icon`}),Or));return{prevIcon:bi,nextIcon:ua,jumpPrevIcon:gi,jumpNextIcon:ta}},[Mt,_r]),[ar]=(0,fe.Z)("Pagination",Ce.Z),Rr=Object.assign(Object.assign({},ar),ge),fn=(0,me.Z)(mt),En=fn==="small"||!!(ct&&!fn&&ze),gn=Tt("select",Qe),Rn=F()({[`${_r}-mini`]:En,[`${_r}-rtl`]:Mt==="rtl"},Yt==null?void 0:Yt.className,we,ye,Lr),ji=Object.assign(Object.assign({},Yt==null?void 0:Yt.style),je);return Sr(ue.createElement(Fe,Object.assign({},Ar,Le,{style:ji,prefixCls:_r,selectPrefixCls:gn,className:Rn,selectComponentClass:st||(En?rt:ot),locale:Rr,showSizeChanger:Er})))},Se=ee},5112:function(dn,Ut,x){"use strict";x.d(Ut,{ZP:function(){return Me}});var ve=x(92310),ue=x.n(ve),T=x(18929),De=x(26112),re=x(59301),W=x(36355),S=x(19716);const m=re.createContext(null),I=m.Provider;var g=m;const $=re.createContext(null),_=$.Provider;var F=x(5630),P=x(8654),U=x(1684),M=x(32441),Y=x(17313),Q=x(83116),ae=x(37613);const ie=fe=>{const{componentCls:Ee,antCls:rt}=fe,ot=`${Ee}-group`;return{[ot]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{display:"inline-block",fontSize:0,[`&${ot}-rtl`]:{direction:"rtl"},[`${rt}-badge ${rt}-badge-count`]:{zIndex:1},[`> ${rt}-badge:not(:first-child) > ${rt}-button-wrapper`]:{borderInlineStart:"none"}})}},J=fe=>{const{componentCls:Ee,wrapperMarginInlineEnd:rt,colorPrimary:ot,radioSize:We,motionDurationSlow:et,motionDurationMid:_t,motionEaseInOutCirc:Ot,colorBgContainer:Pt,colorBorder:cr,lineWidth:nr,dotSize:br,colorBgContainerDisabled:sr,colorTextDisabled:k,paddingXS:Xe,dotColorDisabled:N,lineType:b,radioDotDisabledSize:f,wireframe:C,colorWhite:ee}=fe,Se=`${Ee}-inner`;return{[`${Ee}-wrapper`]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{display:"inline-flex",alignItems:"baseline",marginInlineStart:0,marginInlineEnd:rt,cursor:"pointer",[`&${Ee}-wrapper-rtl`]:{direction:"rtl"},"&-disabled":{cursor:"not-allowed",color:fe.colorTextDisabled},"&::after":{display:"inline-block",width:0,overflow:"hidden",content:'"\\a0"'},[`${Ee}-checked::after`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,width:"100%",height:"100%",border:`${nr}px ${b} ${ot}`,borderRadius:"50%",visibility:"hidden",content:'""'},[Ee]:Object.assign(Object.assign({},(0,Y.Wf)(fe)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${Ee}-wrapper:hover &,
|
|
|
&:hover ${Se}`]:{borderColor:ot},[`${Ee}-input:focus-visible + ${Se}`]:Object.assign({},(0,Y.oN)(fe)),[`${Ee}:hover::after, ${Ee}-wrapper:hover &::after`]:{visibility:"visible"},[`${Ee}-inner`]:{"&::after":{boxSizing:"border-box",position:"absolute",insetBlockStart:"50%",insetInlineStart:"50%",display:"block",width:We,height:We,marginBlockStart:We/-2,marginInlineStart:We/-2,backgroundColor:C?ot:ee,borderBlockStart:0,borderInlineStart:0,borderRadius:We,transform:"scale(0)",opacity:0,transition:`all ${et} ${Ot}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:We,height:We,backgroundColor:Pt,borderColor:cr,borderStyle:"solid",borderWidth:nr,borderRadius:"50%",transition:`all ${_t}`},[`${Ee}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${Ee}-checked`]:{[Se]:{borderColor:ot,backgroundColor:C?Pt:ot,"&::after":{transform:`scale(${br/We})`,opacity:1,transition:`all ${et} ${Ot}`}}},[`${Ee}-disabled`]:{cursor:"not-allowed",[Se]:{backgroundColor:sr,borderColor:cr,cursor:"not-allowed","&::after":{backgroundColor:N}},[`${Ee}-input`]:{cursor:"not-allowed"},[`${Ee}-disabled + span`]:{color:k,cursor:"not-allowed"},[`&${Ee}-checked`]:{[Se]:{"&::after":{transform:`scale(${f/We})`}}}},[`span${Ee} + *`]:{paddingInlineStart:Xe,paddingInlineEnd:Xe}})}},G=fe=>{const{buttonColor:Ee,controlHeight:rt,componentCls:ot,lineWidth:We,lineType:et,colorBorder:_t,motionDurationSlow:Ot,motionDurationMid:Pt,buttonPaddingInline:cr,fontSize:nr,buttonBg:br,fontSizeLG:sr,controlHeightLG:k,controlHeightSM:Xe,paddingXS:N,borderRadius:b,borderRadiusSM:f,borderRadiusLG:C,buttonCheckedBg:ee,buttonSolidCheckedColor:Se,colorTextDisabled:H,colorBgContainerDisabled:ne,buttonCheckedBgDisabled:Qe,buttonCheckedColorDisabled:we,colorPrimary:ye,colorPrimaryHover:je,colorPrimaryActive:mt,buttonSolidCheckedBg:ge,buttonSolidCheckedHoverBg:st,buttonSolidCheckedActiveBg:ze}=fe;return{[`${ot}-button-wrapper`]:{position:"relative",display:"inline-block",height:rt,margin:0,paddingInline:cr,paddingBlock:0,color:Ee,fontSize:nr,lineHeight:`${rt-We*2}px`,background:br,border:`${We}px ${et} ${_t}`,borderBlockStartWidth:We+.02,borderInlineStartWidth:0,borderInlineEndWidth:We,cursor:"pointer",transition:[`color ${Pt}`,`background ${Pt}`,`box-shadow ${Pt}`].join(","),a:{color:Ee},[`> ${ot}-button`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,zIndex:-1,width:"100%",height:"100%"},"&:not(:first-child)":{"&::before":{position:"absolute",insetBlockStart:-We,insetInlineStart:-We,display:"block",boxSizing:"content-box",width:1,height:"100%",paddingBlock:We,paddingInline:0,backgroundColor:_t,transition:`background-color ${Ot}`,content:'""'}},"&:first-child":{borderInlineStart:`${We}px ${et} ${_t}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${ot}-group-large &`]:{height:k,fontSize:sr,lineHeight:`${k-We*2}px`,"&:first-child":{borderStartStartRadius:C,borderEndStartRadius:C},"&:last-child":{borderStartEndRadius:C,borderEndEndRadius:C}},[`${ot}-group-small &`]:{height:Xe,paddingInline:N-We,paddingBlock:0,lineHeight:`${Xe-We*2}px`,"&:first-child":{borderStartStartRadius:f,borderEndStartRadius:f},"&:last-child":{borderStartEndRadius:f,borderEndEndRadius:f}},"&:hover":{position:"relative",color:ye},"&:has(:focus-visible)":Object.assign({},(0,Y.oN)(fe)),[`${ot}-inner, input[type='checkbox'], input[type='radio']`]:{width:0,height:0,opacity:0,pointerEvents:"none"},[`&-checked:not(${ot}-button-wrapper-disabled)`]:{zIndex:1,color:ye,background:ee,borderColor:ye,"&::before":{backgroundColor:ye},"&:first-child":{borderColor:ye},"&:hover":{color:je,borderColor:je,"&::before":{backgroundColor:je}},"&:active":{color:mt,borderColor:mt,"&::before":{backgroundColor:mt}}},[`${ot}-group-solid &-checked:not(${ot}-button-wrapper-disabled)`]:{color:Se,background:ge,borderColor:ge,"&:hover":{color:Se,background:st,borderColor:st},"&:active":{color:Se,background:ze,borderColor:ze}},"&-disabled":{color:H,backgroundColor:ne,borderColor:_t,cursor:"not-allowed","&:first-child, &:hover":{color:H,backgroundColor:ne,borderColor:_t}},[`&-disabled${ot}-button-wrapper-checked`]:{color:we,backgroundColor:Qe,borderColor:_t,boxShadow:"none"}}}},j=fe=>fe-4*2;var se=(0,Q.Z)("Radio",fe=>{const{controlOutline:Ee,controlOutlineWidth:rt,radioSize:ot}=fe,We=`0 0 0 ${rt}px ${Ee}`,et=We,_t=j(ot),Ot=(0,ae.TS)(fe,{radioDotDisabledSize:_t,radioFocusShadow:We,radioButtonFocusShadow:et});return[ie(Ot),J(Ot),G(Ot)]},fe=>{const{wireframe:Ee,padding:rt,marginXS:ot,lineWidth:We,fontSizeLG:et,colorText:_t,colorBgContainer:Ot,colorTextDisabled:Pt,controlItemBgActiveDisabled:cr,colorTextLightSolid:nr,colorPrimary:br,colorPrimaryHover:sr,colorPrimaryActive:k}=fe,Xe=4,N=et,b=Ee?j(N):N-(Xe+We)*2;return{radioSize:N,dotSize:b,dotColorDisabled:Pt,buttonSolidCheckedColor:nr,buttonSolidCheckedBg:br,buttonSolidCheckedHoverBg:sr,buttonSolidCheckedActiveBg:k,buttonBg:Ot,buttonCheckedBg:Ot,buttonColor:_t,buttonCheckedBgDisabled:cr,buttonCheckedColorDisabled:Pt,buttonPaddingInline:rt-We,wrapperMarginInlineEnd:ot}}),he=x(14088),Ne=x(4572),Be=function(fe,Ee){var rt={};for(var ot in fe)Object.prototype.hasOwnProperty.call(fe,ot)&&Ee.indexOf(ot)<0&&(rt[ot]=fe[ot]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ot=Object.getOwnPropertySymbols(fe);We<ot.length;We++)Ee.indexOf(ot[We])<0&&Object.prototype.propertyIsEnumerable.call(fe,ot[We])&&(rt[ot[We]]=fe[ot[We]]);return rt};const Pe=(fe,Ee)=>{var rt,ot;const We=re.useContext(g),et=re.useContext($),{getPrefixCls:_t,direction:Ot,radio:Pt}=re.useContext(W.E_),cr=re.useRef(null),nr=(0,P.sQ)(Ee,cr),{isFormItemInput:br}=re.useContext(M.aM),sr=mt=>{var ge,st;(ge=fe.onChange)===null||ge===void 0||ge.call(fe,mt),(st=We==null?void 0:We.onChange)===null||st===void 0||st.call(We,mt)},{prefixCls:k,className:Xe,rootClassName:N,children:b,style:f}=fe,C=Be(fe,["prefixCls","className","rootClassName","children","style"]),ee=_t("radio",k),Se=((We==null?void 0:We.optionType)||et)==="button",H=Se?`${ee}-button`:ee,[ne,Qe]=se(ee),we=Object.assign({},C),ye=re.useContext(U.Z);We&&(we.name=We.name,we.onChange=sr,we.checked=fe.value===We.value,we.disabled=(rt=we.disabled)!==null&&rt!==void 0?rt:We.disabled),we.disabled=(ot=we.disabled)!==null&&ot!==void 0?ot:ye;const je=ue()(`${H}-wrapper`,{[`${H}-wrapper-checked`]:we.checked,[`${H}-wrapper-disabled`]:we.disabled,[`${H}-wrapper-rtl`]:Ot==="rtl",[`${H}-wrapper-in-form-item`]:br},Pt==null?void 0:Pt.className,Xe,N,Qe);return ne(re.createElement(he.Z,{component:"Radio",disabled:we.disabled},re.createElement("label",{className:je,style:Object.assign(Object.assign({},Pt==null?void 0:Pt.style),f),onMouseEnter:fe.onMouseEnter,onMouseLeave:fe.onMouseLeave},re.createElement(F.Z,Object.assign({},we,{className:ue()(we.className,!Se&&Ne.A),type:"radio",prefixCls:H,ref:nr})),b!==void 0?re.createElement("span",null,b):null)))};var Ae=re.forwardRef(Pe);const D=re.forwardRef((fe,Ee)=>{const{getPrefixCls:rt,direction:ot}=re.useContext(W.E_),[We,et]=(0,T.Z)(fe.defaultValue,{value:fe.value}),_t=ge=>{const st=We,ze=ge.target.value;"value"in fe||et(ze);const{onChange:Ie}=fe;Ie&&ze!==st&&Ie(ge)},{prefixCls:Ot,className:Pt,rootClassName:cr,options:nr,buttonStyle:br="outline",disabled:sr,children:k,size:Xe,style:N,id:b,onMouseEnter:f,onMouseLeave:C,onFocus:ee,onBlur:Se}=fe,H=rt("radio",Ot),ne=`${H}-group`,[Qe,we]=se(H);let ye=k;nr&&nr.length>0&&(ye=nr.map(ge=>typeof ge=="string"||typeof ge=="number"?re.createElement(Ae,{key:ge.toString(),prefixCls:H,disabled:sr,value:ge,checked:We===ge},ge):re.createElement(Ae,{key:`radio-group-value-options-${ge.value}`,prefixCls:H,disabled:ge.disabled||sr,value:ge.value,checked:We===ge.value,title:ge.title,style:ge.style},ge.label)));const je=(0,S.Z)(Xe),mt=ue()(ne,`${ne}-${br}`,{[`${ne}-${je}`]:je,[`${ne}-rtl`]:ot==="rtl"},Pt,cr,we);return Qe(re.createElement("div",Object.assign({},(0,De.Z)(fe,{aria:!0,data:!0}),{className:mt,style:N,onMouseEnter:f,onMouseLeave:C,onFocus:ee,onBlur:Se,id:b,ref:Ee}),re.createElement(I,{value:{onChange:_t,value:We,disabled:fe.disabled,name:fe.name,optionType:fe.optionType}},ye)))});var Je=re.memo(D),Fe=function(fe,Ee){var rt={};for(var ot in fe)Object.prototype.hasOwnProperty.call(fe,ot)&&Ee.indexOf(ot)<0&&(rt[ot]=fe[ot]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ot=Object.getOwnPropertySymbols(fe);We<ot.length;We++)Ee.indexOf(ot[We])<0&&Object.prototype.propertyIsEnumerable.call(fe,ot[We])&&(rt[ot[We]]=fe[ot[We]]);return rt};const Ce=(fe,Ee)=>{const{getPrefixCls:rt}=re.useContext(W.E_),{prefixCls:ot}=fe,We=Fe(fe,["prefixCls"]),et=rt("radio",ot);return re.createElement(_,{value:"button"},re.createElement(Ae,Object.assign({prefixCls:et},We,{type:"radio",ref:Ee})))};var Ue=re.forwardRef(Ce);const me=Ae;me.Button=Ue,me.Group=Je,me.__ANT_RADIO=!0;var Me=me},57809:function(dn,Ut,x){"use strict";var ve=x(92310),ue=x.n(ve),T=x(77861),De=x(2738),re=x(59301),W=x(53487),S=x(62892),m=x(19080),I=x(36355),g=x(1684),$=x(93891),_=x(19716),F=x(32441),P=x(33234),U=x(14154),M=x(58582),Y=x(84443),Q=x(66339),ae=function(se,he){var Ne={};for(var Be in se)Object.prototype.hasOwnProperty.call(se,Be)&&he.indexOf(Be)<0&&(Ne[Be]=se[Be]);if(se!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Pe=0,Be=Object.getOwnPropertySymbols(se);Pe<Be.length;Pe++)he.indexOf(Be[Pe])<0&&Object.prototype.propertyIsEnumerable.call(se,Be[Pe])&&(Ne[Be[Pe]]=se[Be[Pe]]);return Ne};const ie="SECRET_COMBOBOX_MODE_DO_NOT_USE",J=(se,he)=>{var Ne,{prefixCls:Be,bordered:Pe=!0,className:q,rootClassName:Ae,getPopupContainer:D,popupClassName:Je,dropdownClassName:Fe,listHeight:Ce=256,placement:Ue,listItemHeight:me=24,size:Me,disabled:fe,notFoundContent:Ee,status:rt,builtinPlacements:ot,dropdownMatchSelectWidth:We,popupMatchSelectWidth:et,direction:_t,style:Ot,allowClear:Pt}=se,cr=ae(se,["prefixCls","bordered","className","rootClassName","getPopupContainer","popupClassName","dropdownClassName","listHeight","placement","listItemHeight","size","disabled","notFoundContent","status","builtinPlacements","dropdownMatchSelectWidth","popupMatchSelectWidth","direction","style","allowClear"]);const{getPopupContainer:nr,getPrefixCls:br,renderEmpty:sr,direction:k,virtual:Xe,popupMatchSelectWidth:N,popupOverflow:b,select:f}=re.useContext(I.E_),C=br("select",Be),ee=br(),Se=_t!=null?_t:k,{compactSize:H,compactItemClassnames:ne}=(0,P.ri)(C,Se),[Qe,we]=(0,U.Z)(C),ye=re.useMemo(()=>{const{mode:ji}=cr;if(ji!=="combobox")return ji===ie?"combobox":ji},[cr.mode]),je=ye==="multiple"||ye==="tags",mt=(0,Y.Z)(cr.suffixIcon,cr.showArrow),ge=(Ne=et!=null?et:We)!==null&&Ne!==void 0?Ne:N,{status:st,hasFeedback:ze,isFormItemInput:Ie,feedbackIcon:Le}=re.useContext(F.aM),ct=(0,m.F)(st,rt);let Tt;Ee!==void 0?Tt=Ee:ye==="combobox"?Tt=null:Tt=(sr==null?void 0:sr("Select"))||re.createElement($.Z,{componentName:"Select"});const{suffixIcon:Mt,itemIcon:Yt,removeIcon:_r,clearIcon:Sr}=(0,Q.Z)(Object.assign(Object.assign({},cr),{multiple:je,hasFeedback:ze,feedbackIcon:Le,showSuffixIcon:mt,prefixCls:C,showArrow:cr.showArrow,componentName:"Select"})),Lr=Pt===!0?{clearIcon:Sr}:Pt,Er=(0,De.Z)(cr,["suffixIcon","itemIcon"]),Ar=ue()(Je||Fe,{[`${C}-dropdown-${Se}`]:Se==="rtl"},Ae,we),ar=(0,_.Z)(ji=>{var Or;return(Or=Me!=null?Me:H)!==null&&Or!==void 0?Or:ji}),Rr=re.useContext(g.Z),fn=fe!=null?fe:Rr,En=ue()({[`${C}-lg`]:ar==="large",[`${C}-sm`]:ar==="small",[`${C}-rtl`]:Se==="rtl",[`${C}-borderless`]:!Pe,[`${C}-in-form-item`]:Ie},(0,m.Z)(C,ct,ze),ne,f==null?void 0:f.className,q,Ae,we),gn=re.useMemo(()=>Ue!==void 0?Ue:Se==="rtl"?"bottomRight":"bottomLeft",[Ue,Se]),Rn=(0,M.Z)(ot,b);return Qe(re.createElement(T.ZP,Object.assign({ref:he,virtual:Xe,showSearch:f==null?void 0:f.showSearch},Er,{style:Object.assign(Object.assign({},f==null?void 0:f.style),Ot),dropdownMatchSelectWidth:ge,builtinPlacements:Rn,transitionName:(0,S.m)(ee,"slide-up",cr.transitionName),listHeight:Ce,listItemHeight:me,mode:ye,prefixCls:C,placement:gn,direction:Se,suffixIcon:Mt,menuItemSelectedIcon:Yt,removeIcon:_r,allowClear:Lr,notFoundContent:Tt,className:En,getPopupContainer:D||nr,dropdownClassName:Ar,disabled:fn})))},G=re.forwardRef(J),j=(0,W.Z)(G);G.SECRET_COMBOBOX_MODE_DO_NOT_USE=ie,G.Option=T.Wx,G.OptGroup=T.Xo,G._InternalPanelDoNotUseOrYouWillBeFired=j,Ut.default=G},14154:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return G}});var ve=x(17313),ue=x(74207),T=x(37613),De=x(83116),re=x(13826),W=x(92899);const S=j=>{const{optionHeight:se,optionFontSize:he,optionLineHeight:Ne,optionPadding:Be}=j;return{position:"relative",display:"block",minHeight:se,padding:Be,color:j.colorText,fontWeight:"normal",fontSize:he,lineHeight:Ne,boxSizing:"border-box"}};var I=j=>{const{antCls:se,componentCls:he}=j,Ne=`${he}-item`,Be=`&${se}-slide-up-enter${se}-slide-up-enter-active`,Pe=`&${se}-slide-up-appear${se}-slide-up-appear-active`,q=`&${se}-slide-up-leave${se}-slide-up-leave-active`,Ae=`${he}-dropdown-placement-`;return[{[`${he}-dropdown`]:Object.assign(Object.assign({},(0,ve.Wf)(j)),{position:"absolute",top:-9999,zIndex:j.zIndexPopup,boxSizing:"border-box",padding:j.paddingXXS,overflow:"hidden",fontSize:j.fontSize,fontVariant:"initial",backgroundColor:j.colorBgElevated,borderRadius:j.borderRadiusLG,outline:"none",boxShadow:j.boxShadowSecondary,[`
|
|
|
${Be}${Ae}bottomLeft,
|
|
|
${Pe}${Ae}bottomLeft
|
|
|
`]:{animationName:re.fJ},[`
|
|
|
${Be}${Ae}topLeft,
|
|
|
${Pe}${Ae}topLeft,
|
|
|
${Be}${Ae}topRight,
|
|
|
${Pe}${Ae}topRight
|
|
|
`]:{animationName:re.Qt},[`${q}${Ae}bottomLeft`]:{animationName:re.Uw},[`
|
|
|
${q}${Ae}topLeft,
|
|
|
${q}${Ae}topRight
|
|
|
`]:{animationName:re.ly},"&-hidden":{display:"none"},[`${Ne}`]:Object.assign(Object.assign({},S(j)),{cursor:"pointer",transition:`background ${j.motionDurationSlow} ease`,borderRadius:j.borderRadiusSM,"&-group":{color:j.colorTextDescription,fontSize:j.fontSizeSM,cursor:"default"},"&-option":{display:"flex","&-content":Object.assign({flex:"auto"},ve.vS),"&-state":{flex:"none",display:"flex",alignItems:"center"},[`&-active:not(${Ne}-option-disabled)`]:{backgroundColor:j.optionActiveBg},[`&-selected:not(${Ne}-option-disabled)`]:{color:j.optionSelectedColor,fontWeight:j.optionSelectedFontWeight,backgroundColor:j.optionSelectedBg,[`${Ne}-option-state`]:{color:j.colorPrimary}},"&-disabled":{[`&${Ne}-option-selected`]:{backgroundColor:j.colorBgContainerDisabled},color:j.colorTextDisabled,cursor:"not-allowed"},"&-grouped":{paddingInlineStart:j.controlPaddingHorizontal*2}}}),"&-rtl":{direction:"rtl"}})},(0,re.oN)(j,"slide-up"),(0,re.oN)(j,"slide-down"),(0,W.Fm)(j,"move-up"),(0,W.Fm)(j,"move-down")]};const g=2,$=j=>{let{controlHeightSM:se,controlHeight:he,lineWidth:Ne}=j;const Be=(he-se)/2-Ne,Pe=Math.ceil(Be/2);return[Be,Pe]};function _(j,se){const{componentCls:he,iconCls:Ne}=j,Be=`${he}-selection-overflow`,Pe=j.multipleSelectItemHeight,[q]=$(j),Ae=se?`${he}-${se}`:"";return{[`${he}-multiple${Ae}`]:{fontSize:j.fontSize,[Be]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"100%",display:"inline-flex"}},[`${he}-selector`]:{display:"flex",flexWrap:"wrap",alignItems:"center",padding:`${q-g}px ${g*2}px`,borderRadius:j.borderRadius,[`${he}-show-search&`]:{cursor:"text"},[`${he}-disabled&`]:{background:j.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${g}px 0`,lineHeight:`${Pe}px`,visibility:"hidden",content:'"\\a0"'}},[`
|
|
|
&${he}-show-arrow ${he}-selector,
|
|
|
&${he}-allow-clear ${he}-selector
|
|
|
`]:{paddingInlineEnd:j.fontSizeIcon+j.controlPaddingHorizontal},[`${he}-selection-item`]:{position:"relative",display:"flex",flex:"none",boxSizing:"border-box",maxWidth:"100%",height:Pe,marginTop:g,marginBottom:g,lineHeight:`${Pe-j.lineWidth*2}px`,background:j.multipleItemBg,border:`${j.lineWidth}px ${j.lineType} ${j.multipleItemBorderColor}`,borderRadius:j.borderRadiusSM,cursor:"default",transition:`font-size ${j.motionDurationSlow}, line-height ${j.motionDurationSlow}, height ${j.motionDurationSlow}`,userSelect:"none",marginInlineEnd:g*2,paddingInlineStart:j.paddingXS,paddingInlineEnd:j.paddingXS/2,[`${he}-disabled&`]:{color:j.multipleItemColorDisabled,borderColor:j.multipleItemBorderColorDisabled,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:j.paddingXS/2,overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},(0,ve.Ro)()),{display:"inline-flex",alignItems:"center",color:j.colorIcon,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${Ne}`]:{verticalAlign:"-0.2em"},"&:hover":{color:j.colorIconHover}})},[`${Be}-item + ${Be}-item`]:{[`${he}-selection-search`]:{marginInlineStart:0}},[`${he}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:j.inputPaddingHorizontalBase-q,"\n &-input,\n &-mirror\n ":{height:Pe,fontFamily:j.fontFamily,lineHeight:`${Pe}px`,transition:`all ${j.motionDurationSlow}`},"&-input":{width:"100%",minWidth:4.1},"&-mirror":{position:"absolute",top:0,insetInlineStart:0,insetInlineEnd:"auto",zIndex:999,whiteSpace:"pre",visibility:"hidden"}},[`${he}-selection-placeholder `]:{position:"absolute",top:"50%",insetInlineStart:j.inputPaddingHorizontalBase,insetInlineEnd:j.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${j.motionDurationSlow}`}}}}var P=j=>{const{componentCls:se}=j,he=(0,T.TS)(j,{controlHeight:j.controlHeightSM,multipleSelectItemHeight:j.controlHeightXS,borderRadius:j.borderRadiusSM,borderRadiusSM:j.borderRadiusXS}),Ne=(0,T.TS)(j,{fontSize:j.fontSizeLG,controlHeight:j.controlHeightLG,multipleSelectItemHeight:j.multipleItemHeightLG,borderRadius:j.borderRadiusLG,borderRadiusSM:j.borderRadius}),[,Be]=$(j);return[_(j),_(he,"sm"),{[`${se}-multiple${se}-sm`]:{[`${se}-selection-placeholder`]:{insetInline:j.controlPaddingHorizontalSM-j.lineWidth},[`${se}-selection-search`]:{marginInlineStart:Be}}},_(Ne,"lg")]};function U(j,se){const{componentCls:he,inputPaddingHorizontalBase:Ne,borderRadius:Be}=j,Pe=j.controlHeight-j.lineWidth*2,q=Math.ceil(j.fontSize*1.25),Ae=se?`${he}-${se}`:"";return{[`${he}-single${Ae}`]:{fontSize:j.fontSize,[`${he}-selector`]:Object.assign(Object.assign({},(0,ve.Wf)(j)),{display:"flex",borderRadius:Be,[`${he}-selection-search`]:{position:"absolute",top:0,insetInlineStart:Ne,insetInlineEnd:Ne,bottom:0,"&-input":{width:"100%"}},[`
|
|
|
${he}-selection-item,
|
|
|
${he}-selection-placeholder
|
|
|
`]:{padding:0,lineHeight:`${Pe}px`,transition:`all ${j.motionDurationSlow}, visibility 0s`,"@supports (-moz-appearance: meterbar)":{lineHeight:`${Pe}px`}},[`${he}-selection-item`]:{position:"relative",userSelect:"none"},[`${he}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${he}-selection-item:after`,`${he}-selection-placeholder:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
|
|
|
&${he}-show-arrow ${he}-selection-item,
|
|
|
&${he}-show-arrow ${he}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:q},[`&${he}-open ${he}-selection-item`]:{color:j.colorTextPlaceholder},[`&:not(${he}-customize-input)`]:{[`${he}-selector`]:{width:"100%",height:j.controlHeight,padding:`0 ${Ne}px`,[`${he}-selection-search-input`]:{height:Pe},"&:after":{lineHeight:`${Pe}px`}}},[`&${he}-customize-input`]:{[`${he}-selector`]:{"&:after":{display:"none"},[`${he}-selection-search`]:{position:"static",width:"100%"},[`${he}-selection-placeholder`]:{position:"absolute",insetInlineStart:0,insetInlineEnd:0,padding:`0 ${Ne}px`,"&:after":{display:"none"}}}}}}}function M(j){const{componentCls:se}=j,he=j.controlPaddingHorizontalSM-j.lineWidth;return[U(j),U((0,T.TS)(j,{controlHeight:j.controlHeightSM,borderRadius:j.borderRadiusSM}),"sm"),{[`${se}-single${se}-sm`]:{[`&:not(${se}-customize-input)`]:{[`${se}-selection-search`]:{insetInlineStart:he,insetInlineEnd:he},[`${se}-selector`]:{padding:`0 ${he}px`},[`&${se}-show-arrow ${se}-selection-search`]:{insetInlineEnd:he+j.fontSize*1.5},[`
|
|
|
&${se}-show-arrow ${se}-selection-item,
|
|
|
&${se}-show-arrow ${se}-selection-placeholder
|
|
|
`]:{paddingInlineEnd:j.fontSize*1.5}}}},U((0,T.TS)(j,{controlHeight:j.singleItemHeightLG,fontSize:j.fontSizeLG,borderRadius:j.borderRadiusLG}),"lg")]}const Y=j=>{const{componentCls:se,selectorBg:he}=j;return{position:"relative",backgroundColor:he,border:`${j.lineWidth}px ${j.lineType} ${j.colorBorder}`,transition:`all ${j.motionDurationMid} ${j.motionEaseInOut}`,input:{cursor:"pointer"},[`${se}-show-search&`]:{cursor:"text",input:{cursor:"auto",color:"inherit"}},[`${se}-disabled&`]:{color:j.colorTextDisabled,background:j.colorBgContainerDisabled,cursor:"not-allowed",[`${se}-multiple&`]:{background:j.multipleSelectorBgDisabled},input:{cursor:"not-allowed"}}}},Q=function(j,se){let he=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;const{componentCls:Ne,borderHoverColor:Be,outlineColor:Pe,antCls:q}=se,Ae=he?{[`${Ne}-selector`]:{borderColor:Be}}:{};return{[j]:{[`&:not(${Ne}-disabled):not(${Ne}-customize-input):not(${q}-pagination-size-changer)`]:Object.assign(Object.assign({},Ae),{[`${Ne}-focused& ${Ne}-selector`]:{borderColor:Be,boxShadow:`0 0 0 ${se.controlOutlineWidth}px ${Pe}`,outline:0},[`&:hover ${Ne}-selector`]:{borderColor:Be}})}}},ae=j=>{const{componentCls:se}=j;return{[`${se}-selection-search-input`]:{margin:0,padding:0,background:"transparent",border:"none",outline:"none",appearance:"none","&::-webkit-search-cancel-button":{display:"none","-webkit-appearance":"none"}}}},ie=j=>{const{componentCls:se,inputPaddingHorizontalBase:he,iconCls:Ne}=j;return{[se]:Object.assign(Object.assign({},(0,ve.Wf)(j)),{position:"relative",display:"inline-block",cursor:"pointer",[`&:not(${se}-customize-input) ${se}-selector`]:Object.assign(Object.assign({},Y(j)),ae(j)),[`${se}-selection-item`]:Object.assign({flex:1,fontWeight:"normal"},ve.vS),[`${se}-selection-placeholder`]:Object.assign(Object.assign({},ve.vS),{flex:1,color:j.colorTextPlaceholder,pointerEvents:"none"}),[`${se}-arrow`]:Object.assign(Object.assign({},(0,ve.Ro)()),{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,height:j.fontSizeIcon,marginTop:-j.fontSizeIcon/2,color:j.colorTextQuaternary,fontSize:j.fontSizeIcon,lineHeight:1,textAlign:"center",pointerEvents:"none",display:"flex",alignItems:"center",[Ne]:{verticalAlign:"top",transition:`transform ${j.motionDurationSlow}`,"> svg":{verticalAlign:"top"},[`&:not(${se}-suffix)`]:{pointerEvents:"auto"}},[`${se}-disabled &`]:{cursor:"not-allowed"},"> *:not(:last-child)":{marginInlineEnd:8}}),[`${se}-clear`]:{position:"absolute",top:"50%",insetInlineStart:"auto",insetInlineEnd:he,zIndex:1,display:"inline-block",width:j.fontSizeIcon,height:j.fontSizeIcon,marginTop:-j.fontSizeIcon/2,color:j.colorTextQuaternary,fontSize:j.fontSizeIcon,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",background:j.clearBg,cursor:"pointer",opacity:0,transition:`color ${j.motionDurationMid} ease, opacity ${j.motionDurationSlow} ease`,textRendering:"auto","&:before":{display:"block"},"&:hover":{color:j.colorTextTertiary}},"&:hover":{[`${se}-clear`]:{opacity:1}}}),[`${se}-has-feedback`]:{[`${se}-clear`]:{insetInlineEnd:he+j.fontSize+j.paddingXS}}}},J=j=>{const{componentCls:se}=j;return[{[se]:{[`&-borderless ${se}-selector`]:{backgroundColor:"transparent !important",borderColor:"transparent !important",boxShadow:"none !important"},[`&${se}-in-form-item`]:{width:"100%"}}},ie(j),M(j),P(j),I(j),{[`${se}-rtl`]:{direction:"rtl"}},Q(se,(0,T.TS)(j,{borderHoverColor:j.colorPrimaryHover,outlineColor:j.controlOutline})),Q(`${se}-status-error`,(0,T.TS)(j,{borderHoverColor:j.colorErrorHover,outlineColor:j.colorErrorOutline}),!0),Q(`${se}-status-warning`,(0,T.TS)(j,{borderHoverColor:j.colorWarningHover,outlineColor:j.colorWarningOutline}),!0),(0,ue.c)(j,{borderElCls:`${se}-selector`,focusElCls:`${se}-focused`})]};var G=(0,De.Z)("Select",(j,se)=>{let{rootPrefixCls:he}=se;const Ne=(0,T.TS)(j,{rootPrefixCls:he,inputPaddingHorizontalBase:j.paddingSM-1,multipleSelectItemHeight:j.multipleItemHeight});return[J(Ne)]},j=>{const{fontSize:se,lineHeight:he,controlHeight:Ne,controlPaddingHorizontal:Be,zIndexPopupBase:Pe,colorText:q,fontWeightStrong:Ae,controlItemBgActive:D,controlItemBgHover:Je,colorBgContainer:Fe,colorFillSecondary:Ce,controlHeightLG:Ue,controlHeightSM:me,colorBgContainerDisabled:Me,colorTextDisabled:fe}=j;return{zIndexPopup:Pe+50,optionSelectedColor:q,optionSelectedFontWeight:Ae,optionSelectedBg:D,optionActiveBg:Je,optionPadding:`${(Ne-se*he)/2}px ${Be}px`,optionFontSize:se,optionLineHeight:he,optionHeight:Ne,selectorBg:Fe,clearBg:Fe,singleItemHeightLG:Ue,multipleItemBg:Ce,multipleItemBorderColor:"transparent",multipleItemHeight:me,multipleItemHeightLG:Ne,multipleSelectorBgDisabled:Me,multipleItemColorDisabled:fe,multipleItemBorderColorDisabled:"transparent"}})},58582:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return ue}});const ve=T=>{const re={overflow:{adjustX:!0,adjustY:!0,shiftY:!0},htmlRegion:T==="scroll"?"scroll":"visible",_experimental:{dynamicInset:!0}};return{bottomLeft:Object.assign(Object.assign({},re),{points:["tl","bl"],offset:[0,4]}),bottomRight:Object.assign(Object.assign({},re),{points:["tr","br"],offset:[0,4]}),topLeft:Object.assign(Object.assign({},re),{points:["bl","tl"],offset:[0,-4]}),topRight:Object.assign(Object.assign({},re),{points:["br","tr"],offset:[0,-4]})}};function ue(T,De){return T||ve(De)}},84443:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return ve}});function ve(ue,T){return T!==void 0?T:ue!==null}},66339:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return m}});var ve=x(40001),ue=x(19248),T=x(99267),De=x(84105),re=x(58617),W=x(47472),S=x(59301);function m(I){let{suffixIcon:g,clearIcon:$,menuItemSelectedIcon:_,removeIcon:F,loading:P,multiple:U,hasFeedback:M,prefixCls:Y,showSuffixIcon:Q,feedbackIcon:ae,showArrow:ie,componentName:J}=I;const G=$!=null?$:S.createElement(ue.Z,null),j=Be=>g===null&&!M&&!ie?null:S.createElement(S.Fragment,null,Q!==!1&&Be,M&&ae);let se=null;if(g!==void 0)se=j(g);else if(P)se=j(S.createElement(re.Z,{spin:!0}));else{const Be=`${Y}-suffix`;se=Pe=>{let{open:q,showSearch:Ae}=Pe;return j(q&&Ae?S.createElement(W.Z,{className:Be}):S.createElement(De.Z,{className:Be}))}}let he=null;_!==void 0?he=_:U?he=S.createElement(ve.Z,null):he=null;let Ne=null;return F!==void 0?Ne=F:Ne=S.createElement(T.Z,null),{clearIcon:G,suffixIcon:se,itemIcon:he,removeIcon:Ne}}},61621:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return b}});var ve=x(92310),ue=x.n(ve),T=x(59301),De=x(36355),re=x(2738),S=f=>{const{prefixCls:C,className:ee,style:Se,size:H,shape:ne}=f,Qe=ue()({[`${C}-lg`]:H==="large",[`${C}-sm`]:H==="small"}),we=ue()({[`${C}-circle`]:ne==="circle",[`${C}-square`]:ne==="square",[`${C}-round`]:ne==="round"}),ye=T.useMemo(()=>typeof H=="number"?{width:H,height:H,lineHeight:`${H}px`}:{},[H]);return T.createElement("span",{className:ue()(C,Qe,we,ee),style:Object.assign(Object.assign({},ye),Se)})},m=x(36237),I=x(83116),g=x(37613);const $=new m.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)),P=f=>({background:f.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:$,animationDuration:f.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),U=f=>Object.assign({width:f*5,minWidth:f*5},_(f)),M=f=>{const{skeletonAvatarCls:C,gradientFromColor:ee,controlHeight:Se,controlHeightLG:H,controlHeightSM:ne}=f;return{[`${C}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ee},F(Se)),[`${C}${C}-circle`]:{borderRadius:"50%"},[`${C}${C}-lg`]:Object.assign({},F(H)),[`${C}${C}-sm`]:Object.assign({},F(ne))}},Y=f=>{const{controlHeight:C,borderRadiusSM:ee,skeletonInputCls:Se,controlHeightLG:H,controlHeightSM:ne,gradientFromColor:Qe}=f;return{[`${Se}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qe,borderRadius:ee},U(C)),[`${Se}-lg`]:Object.assign({},U(H)),[`${Se}-sm`]:Object.assign({},U(ne))}},Q=f=>Object.assign({width:f},_(f)),ae=f=>{const{skeletonImageCls:C,imageSizeBase:ee,gradientFromColor:Se,borderRadiusSM:H}=f;return{[`${C}`]:Object.assign(Object.assign({display:"flex",alignItems:"center",justifyContent:"center",verticalAlign:"top",background:Se,borderRadius:H},Q(ee*2)),{[`${C}-path`]:{fill:"#bfbfbf"},[`${C}-svg`]:Object.assign(Object.assign({},Q(ee)),{maxWidth:ee*4,maxHeight:ee*4}),[`${C}-svg${C}-svg-circle`]:{borderRadius:"50%"}}),[`${C}${C}-circle`]:{borderRadius:"50%"}}},ie=(f,C,ee)=>{const{skeletonButtonCls:Se}=f;return{[`${ee}${Se}-circle`]:{width:C,minWidth:C,borderRadius:"50%"},[`${ee}${Se}-round`]:{borderRadius:C}}},J=f=>Object.assign({width:f*2,minWidth:f*2},_(f)),G=f=>{const{borderRadiusSM:C,skeletonButtonCls:ee,controlHeight:Se,controlHeightLG:H,controlHeightSM:ne,gradientFromColor:Qe}=f;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[`${ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:Qe,borderRadius:C,width:Se*2,minWidth:Se*2},J(Se))},ie(f,Se,ee)),{[`${ee}-lg`]:Object.assign({},J(H))}),ie(f,H,`${ee}-lg`)),{[`${ee}-sm`]:Object.assign({},J(ne))}),ie(f,ne,`${ee}-sm`))},j=f=>{const{componentCls:C,skeletonAvatarCls:ee,skeletonTitleCls:Se,skeletonParagraphCls:H,skeletonButtonCls:ne,skeletonInputCls:Qe,skeletonImageCls:we,controlHeight:ye,controlHeightLG:je,controlHeightSM:mt,gradientFromColor:ge,padding:st,marginSM:ze,borderRadius:Ie,titleHeight:Le,blockRadius:ct,paragraphLiHeight:Tt,controlHeightXS:Mt,paragraphMarginTop:Yt}=f;return{[`${C}`]:{display:"table",width:"100%",[`${C}-header`]:{display:"table-cell",paddingInlineEnd:st,verticalAlign:"top",[`${ee}`]:Object.assign({display:"inline-block",verticalAlign:"top",background:ge},F(ye)),[`${ee}-circle`]:{borderRadius:"50%"},[`${ee}-lg`]:Object.assign({},F(je)),[`${ee}-sm`]:Object.assign({},F(mt))},[`${C}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[`${Se}`]:{width:"100%",height:Le,background:ge,borderRadius:ct,[`+ ${H}`]:{marginBlockStart:mt}},[`${H}`]:{padding:0,"> li":{width:"100%",height:Tt,listStyle:"none",background:ge,borderRadius:ct,"+ li":{marginBlockStart:Mt}}},[`${H}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${C}-content`]:{[`${Se}, ${H} > li`]:{borderRadius:Ie}}},[`${C}-with-avatar ${C}-content`]:{[`${Se}`]:{marginBlockStart:ze,[`+ ${H}`]:{marginBlockStart:Yt}}},[`${C}${C}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},G(f)),M(f)),Y(f)),ae(f)),[`${C}${C}-block`]:{width:"100%",[`${ne}`]:{width:"100%"},[`${Qe}`]:{width:"100%"}},[`${C}${C}-active`]:{[`
|
|
|
${Se},
|
|
|
${H} > li,
|
|
|
${ee},
|
|
|
${ne},
|
|
|
${Qe},
|
|
|
${we}
|
|
|
`]:Object.assign({},P(f))}}};var se=(0,I.Z)("Skeleton",f=>{const{componentCls:C}=f,ee=(0,g.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[j(ee)]},f=>{const{colorFillContent:C,colorFill:ee}=f,Se=C,H=ee;return{color:Se,colorGradientEnd:H,gradientFromColor:Se,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:ee,rootClassName:Se,active:H,shape:ne="circle",size:Qe="default"}=f,{getPrefixCls:we}=T.useContext(De.E_),ye=we("skeleton",C),[je,mt]=se(ye),ge=(0,re.Z)(f,["prefixCls","className"]),st=ue()(ye,`${ye}-element`,{[`${ye}-active`]:H},ee,Se,mt);return je(T.createElement("div",{className:st},T.createElement(S,Object.assign({prefixCls:`${ye}-avatar`,shape:ne,size:Qe},ge))))},Pe=f=>{const{prefixCls:C,className:ee,rootClassName:Se,active:H,block:ne=!1,size:Qe="default"}=f,{getPrefixCls:we}=T.useContext(De.E_),ye=we("skeleton",C),[je,mt]=se(ye),ge=(0,re.Z)(f,["prefixCls"]),st=ue()(ye,`${ye}-element`,{[`${ye}-active`]:H,[`${ye}-block`]:ne},ee,Se,mt);return je(T.createElement("div",{className:st},T.createElement(S,Object.assign({prefixCls:`${ye}-button`,size:Qe},ge))))};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:ee,rootClassName:Se,style:H,active:ne}=f,{getPrefixCls:Qe}=T.useContext(De.E_),we=Qe("skeleton",C),[ye,je]=se(we),mt=ue()(we,`${we}-element`,{[`${we}-active`]:ne},ee,Se,je);return ye(T.createElement("div",{className:mt},T.createElement("div",{className:ue()(`${we}-image`,ee),style:H},T.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${we}-image-svg`},T.createElement("path",{d:q,className:`${we}-image-path`})))))},Fe=f=>{const{prefixCls:C,className:ee,rootClassName:Se,active:H,block:ne,size:Qe="default"}=f,{getPrefixCls:we}=T.useContext(De.E_),ye=we("skeleton",C),[je,mt]=se(ye),ge=(0,re.Z)(f,["prefixCls"]),st=ue()(ye,`${ye}-element`,{[`${ye}-active`]:H,[`${ye}-block`]:ne},ee,Se,mt);return je(T.createElement("div",{className:st},T.createElement(S,Object.assign({prefixCls:`${ye}-input`,size:Qe},ge))))},Ce=x(54476),Ue={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"},me=Ue,Me=x(7657),fe=function(C,ee){return T.createElement(Me.Z,(0,Ce.Z)({},C,{ref:ee,icon:me}))},Ee=T.forwardRef(fe),rt=Ee,We=f=>{const{prefixCls:C,className:ee,rootClassName:Se,style:H,active:ne,children:Qe}=f,{getPrefixCls:we}=T.useContext(De.E_),ye=we("skeleton",C),[je,mt]=se(ye),ge=ue()(ye,`${ye}-element`,{[`${ye}-active`]:ne},mt,ee,Se),st=Qe!=null?Qe:T.createElement(rt,null);return je(T.createElement("div",{className:ge},T.createElement("div",{className:ue()(`${ye}-image`,ee),style:H},st)))},et=x(94480),Ot=f=>{const C=we=>{const{width:ye,rows:je=2}=f;if(Array.isArray(ye))return ye[we];if(je-1===we)return ye},{prefixCls:ee,className:Se,style:H,rows:ne}=f,Qe=(0,et.Z)(Array(ne)).map((we,ye)=>T.createElement("li",{key:ye,style:{width:C(ye)}}));return T.createElement("ul",{className:ue()(ee,Se),style:H},Qe)},cr=f=>{let{prefixCls:C,className:ee,width:Se,style:H}=f;return T.createElement("h3",{className:ue()(C,ee),style:Object.assign({width:Se},H)})};function nr(f){return f&&typeof f=="object"?f:{}}function br(f,C){return f&&!C?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function sr(f,C){return!f&&C?{width:"38%"}:f&&C?{width:"50%"}:{}}function k(f,C){const ee={};return(!f||!C)&&(ee.width="61%"),!f&&C?ee.rows=3:ee.rows=2,ee}const Xe=f=>{const{prefixCls:C,loading:ee,className:Se,rootClassName:H,style:ne,children:Qe,avatar:we=!1,title:ye=!0,paragraph:je=!0,active:mt,round:ge}=f,{getPrefixCls:st,direction:ze,skeleton:Ie}=T.useContext(De.E_),Le=st("skeleton",C),[ct,Tt]=se(Le);if(ee||!("loading"in f)){const Mt=!!we,Yt=!!ye,_r=!!je;let Sr;if(Mt){const Ar=Object.assign(Object.assign({prefixCls:`${Le}-avatar`},br(Yt,_r)),nr(we));Sr=T.createElement("div",{className:`${Le}-header`},T.createElement(S,Object.assign({},Ar)))}let Lr;if(Yt||_r){let Ar;if(Yt){const Rr=Object.assign(Object.assign({prefixCls:`${Le}-title`},sr(Mt,_r)),nr(ye));Ar=T.createElement(cr,Object.assign({},Rr))}let ar;if(_r){const Rr=Object.assign(Object.assign({prefixCls:`${Le}-paragraph`},k(Mt,Yt)),nr(je));ar=T.createElement(Ot,Object.assign({},Rr))}Lr=T.createElement("div",{className:`${Le}-content`},Ar,ar)}const Er=ue()(Le,{[`${Le}-with-avatar`]:Mt,[`${Le}-active`]:mt,[`${Le}-rtl`]:ze==="rtl",[`${Le}-round`]:ge},Ie==null?void 0:Ie.className,Se,H,Tt);return ct(T.createElement("div",{className:Er,style:Object.assign(Object.assign({},Ie==null?void 0:Ie.style),ne)},Sr,Lr))}return typeof Qe!="undefined"?Qe:null};Xe.Button=Pe,Xe.Avatar=Ne,Xe.Input=Fe,Xe.Image=D,Xe.Node=We;var N=Xe,b=N},81327:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return Y}});var ve=x(59301),ue=x(92310),T=x.n(ue),De=x(11592),re=x(36355),W=x(33234);const S=ve.createContext({latestIndex:0}),m=S.Provider;var g=Q=>{let{className:ae,index:ie,children:J,split:G,style:j}=Q;const{latestIndex:se}=ve.useContext(S);return J==null?null:ve.createElement(ve.Fragment,null,ve.createElement("div",{className:ae,style:j},J),ie<se&&G&&ve.createElement("span",{className:`${ae}-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 P=function(Q,ae){var ie={};for(var J in Q)Object.prototype.hasOwnProperty.call(Q,J)&&ae.indexOf(J)<0&&(ie[J]=Q[J]);if(Q!=null&&typeof Object.getOwnPropertySymbols=="function")for(var G=0,J=Object.getOwnPropertySymbols(Q);G<J.length;G++)ae.indexOf(J[G])<0&&Object.prototype.propertyIsEnumerable.call(Q,J[G])&&(ie[J[G]]=Q[J[G]]);return ie};const M=ve.forwardRef((Q,ae)=>{var ie,J;const{getPrefixCls:G,space:j,direction:se}=ve.useContext(re.E_),{size:he=(j==null?void 0:j.size)||"small",align:Ne,className:Be,rootClassName:Pe,children:q,direction:Ae="horizontal",prefixCls:D,split:Je,style:Fe,wrap:Ce=!1,classNames:Ue,styles:me}=Q,Me=P(Q,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[fe,Ee]=Array.isArray(he)?he:[he,he],rt=_(Ee),ot=_(fe),We=F(Ee),et=F(fe),_t=(0,De.Z)(q,{keepEmpty:!0}),Ot=Ne===void 0&&Ae==="horizontal"?"center":Ne,Pt=G("space",D),[cr,nr]=(0,$.Z)(Pt),br=T()(Pt,j==null?void 0:j.className,nr,`${Pt}-${Ae}`,{[`${Pt}-rtl`]:se==="rtl",[`${Pt}-align-${Ot}`]:Ot,[`${Pt}-gap-row-${Ee}`]:rt,[`${Pt}-gap-col-${fe}`]:ot},Be,Pe),sr=T()(`${Pt}-item`,(ie=Ue==null?void 0:Ue.item)!==null&&ie!==void 0?ie:(J=j==null?void 0:j.classNames)===null||J===void 0?void 0:J.item);let k=0;const Xe=_t.map((f,C)=>{var ee,Se;f!=null&&(k=C);const H=f&&f.key||`${sr}-${C}`;return ve.createElement(g,{className:sr,key:H,index:C,split:Je,style:(ee=me==null?void 0:me.item)!==null&&ee!==void 0?ee:(Se=j==null?void 0:j.styles)===null||Se===void 0?void 0:Se.item},f)}),N=ve.useMemo(()=>({latestIndex:k}),[k]);if(_t.length===0)return null;const b={};return Ce&&(b.flexWrap="wrap"),!ot&&et&&(b.columnGap=fe),!rt&&We&&(b.rowGap=Ee),cr(ve.createElement("div",Object.assign({ref:ae,className:br,style:Object.assign(Object.assign(Object.assign({},b),j==null?void 0:j.style),Fe)},Me),ve.createElement(m,{value:N},Xe)))});M.Compact=W.ZP;var Y=M},8378:function(dn,Ut){"use strict";const x=ve=>({[ve.componentCls]:{[`${ve.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${ve.motionDurationMid} ${ve.motionEaseInOut},
|
|
|
opacity ${ve.motionDurationMid} ${ve.motionEaseInOut} !important`}},[`${ve.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${ve.motionDurationMid} ${ve.motionEaseInOut},
|
|
|
opacity ${ve.motionDurationMid} ${ve.motionEaseInOut} !important`}}});Ut.Z=x},92899:function(dn,Ut,x){"use strict";x.d(Ut,{Fm:function(){return _}});var ve=x(36237),ue=x(95406);const T=new ve.Keyframes("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),De=new ve.Keyframes("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),re=new ve.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 ve.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 ve.Keyframes("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),m=new ve.Keyframes("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),I=new ve.Keyframes("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),g=new ve.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:I,outKeyframes:g},"move-down":{inKeyframes:T,outKeyframes:De},"move-left":{inKeyframes:re,outKeyframes:W},"move-right":{inKeyframes:S,outKeyframes:m}},_=(F,P)=>{const{antCls:U}=F,M=`${U}-${P}`,{inKeyframes:Y,outKeyframes:Q}=$[P];return[(0,ue.R)(M,Y,Q,F.motionDurationMid),{[`
|
|
|
${M}-enter,
|
|
|
${M}-appear
|
|
|
`]:{opacity:0,animationTimingFunction:F.motionEaseOutCirc},[`${M}-leave`]:{animationTimingFunction:F.motionEaseInOutCirc}}]}},13826:function(dn,Ut,x){"use strict";x.d(Ut,{Qt:function(){return re},Uw:function(){return De},fJ:function(){return T},ly:function(){return W},oN:function(){return _}});var ve=x(36237),ue=x(95406);const T=new ve.Keyframes("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),De=new ve.Keyframes("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),re=new ve.Keyframes("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),W=new ve.Keyframes("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),S=new ve.Keyframes("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),m=new ve.Keyframes("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),I=new ve.Keyframes("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),g=new ve.Keyframes("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),$={"slide-up":{inKeyframes:T,outKeyframes:De},"slide-down":{inKeyframes:re,outKeyframes:W},"slide-left":{inKeyframes:S,outKeyframes:m},"slide-right":{inKeyframes:I,outKeyframes:g}},_=(F,P)=>{const{antCls:U}=F,M=`${U}-${P}`,{inKeyframes:Y,outKeyframes:Q}=$[P];return[(0,ue.R)(M,Y,Q,F.motionDurationMid),{[`
|
|
|
${M}-enter,
|
|
|
${M}-appear
|
|
|
`]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:F.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${M}-leave`]:{animationTimingFunction:F.motionEaseInQuint}}]}},15969:function(dn,Ut,x){"use strict";x.d(Ut,{N:function(){return ve}});const ve=ue=>({color:ue.colorLink,textDecoration:"none",outline:"none",cursor:"pointer",transition:`color ${ue.motionDurationSlow}`,"&:focus, &:hover":{color:ue.colorLinkHover},"&:active":{color:ue.colorLinkActive}})},1710:function(dn,Ut,x){"use strict";x.d(Ut,{default:function(){return b0}});var ve={},ue="rc-table-internal-hook",T=x(42978),De=x(6089),re=x(34280),W=x(13697),S=x(59301),m=x(4676);function I(de){var xe=S.createContext(void 0),Ye=function(xt){var bt=xt.value,Vt=xt.children,zt=S.useRef(bt);zt.current=bt;var Ht=S.useState(function(){return{getValue:function(){return zt.current},listeners:new Set}}),ur=(0,T.Z)(Ht,1),Ir=ur[0];return(0,re.Z)(function(){(0,m.unstable_batchedUpdates)(function(){Ir.listeners.forEach(function(hr){hr(bt)})})},[bt]),S.createElement(xe.Provider,{value:Ir},Vt)};return{Context:xe,Provider:Ye,defaultValue:de}}function g(de,xe){var Ye=(0,De.Z)(typeof xe=="function"?xe:function(hr){if(xe===void 0)return hr;if(!Array.isArray(xe))return hr[xe];var en={};return xe.forEach(function($r){en[$r]=hr[$r]}),en}),At=S.useContext(de==null?void 0:de.Context),xt=At||{},bt=xt.listeners,Vt=xt.getValue,zt=S.useRef();zt.current=Ye(At?Vt():de==null?void 0:de.defaultValue);var Ht=S.useState({}),ur=(0,T.Z)(Ht,2),Ir=ur[1];return(0,re.Z)(function(){if(!At)return;function hr(en){var $r=Ye(en);(0,W.Z)(zt.current,$r,!0)||Ir({})}return bt.add(hr),function(){bt.delete(hr)}},[At]),zt.current}var $=x(54476),_=x(8654);function F(){var de=S.createContext(null);function xe(){return S.useContext(de)}function Ye(xt,bt){var Vt=(0,_.Yr)(xt),zt=function(ur,Ir){var hr=Vt?{ref:Ir}:{},en=S.useRef(0),$r=S.useRef(ur),Jr=xe();return Jr!==null?S.createElement(xt,(0,$.Z)({},ur,hr)):((!bt||bt($r.current,ur))&&(en.current+=1),$r.current=ur,S.createElement(de.Provider,{value:en.current},S.createElement(xt,(0,$.Z)({},ur,hr))))};return Vt?S.forwardRef(zt):zt}function At(xt,bt){var Vt=(0,_.Yr)(xt),zt=function(ur,Ir){var hr=Vt?{ref:Ir}:{};return xe(),S.createElement(xt,(0,$.Z)({},ur,hr))};return Vt?S.memo(S.forwardRef(zt),bt):S.memo(zt,bt)}return{makeImmutable:Ye,responseImmutable:At,useImmutableMark:xe}}var P=F(),U=P.makeImmutable,M=P.responseImmutable,Y=P.useImmutableMark,Q=F(),ae=Q.makeImmutable,ie=Q.responseImmutable,J=Q.useImmutableMark,G=I(),j=G;function se(de,xe){var Ye=S.useRef(0);Ye.current+=1;var At=S.useRef(de),xt=[];Object.keys(de||{}).map(function(Vt){var zt;(de==null?void 0:de[Vt])!==((zt=At.current)===null||zt===void 0?void 0:zt[Vt])&&xt.push(Vt)}),At.current=de;var bt=S.useRef([]);return xt.length&&(bt.current=xt),S.useDebugValue(Ye.current),S.useDebugValue(bt.current.join(", ")),xe&&console.log("".concat(xe,":"),Ye.current,bt.current),Ye.current}var he=null,Ne=S.memo(function(){var de=se();return S.createElement("h1",null,"Render Times: ",de)});Ne.displayName="RenderBlock";var Be=x(76190),Pe=x(33885),q=x(20068),Ae=x(92310),D=x.n(Ae),Je=x(80547),Fe=x(97938),Ce=x(48736),Ue=S.createContext({renderWithProps:!1}),me=Ue,Me="RC_TABLE_KEY";function fe(de){return de==null?[]:Array.isArray(de)?de:[de]}function Ee(de){var xe=[],Ye={};return de.forEach(function(At){for(var xt=At||{},bt=xt.key,Vt=xt.dataIndex,zt=bt||fe(Vt).join("-")||Me;Ye[zt];)zt="".concat(zt,"_next");Ye[zt]=!0,xe.push(zt)}),xe}function rt(de){return de!=null}function ot(de){return de&&(0,Be.Z)(de)==="object"&&!Array.isArray(de)&&!S.isValidElement(de)}function We(de,xe,Ye,At,xt,bt){var Vt=S.useContext(me),zt=J(),Ht=(0,Je.Z)(function(){if(rt(At))return[At];var ur=xe==null||xe===""?[]:Array.isArray(xe)?xe:[xe],Ir=(0,Fe.Z)(de,ur),hr=Ir,en=void 0;if(xt){var $r=xt(Ir,de,Ye);ot($r)?(hr=$r.children,en=$r.props,Vt.renderWithProps=!0):hr=$r}return[hr,en]},[zt,de,At,xe,xt,Ye],function(ur,Ir){if(bt){var hr=(0,T.Z)(ur,2),en=hr[1],$r=(0,T.Z)(Ir,2),Jr=$r[1];return bt(Jr,en)}return Vt.renderWithProps?!0:!(0,W.Z)(ur,Ir,!0)});return Ht}function et(de,xe,Ye,At){var xt=de+xe-1;return de<=At&&xt>=Ye}function _t(de,xe){return g(j,function(Ye){var At=et(de,xe||1,Ye.hoverStartRow,Ye.hoverEndRow);return[At,Ye.onHover]})}var Ot=function(xe){var Ye=xe.ellipsis,At=xe.rowType,xt=xe.children,bt,Vt=Ye===!0?{showTitle:!0}:Ye;return Vt&&(Vt.showTitle||At==="header")&&(typeof xt=="string"||typeof xt=="number"?bt=xt.toString():S.isValidElement(xt)&&typeof xt.props.children=="string"&&(bt=xt.props.children)),bt};function Pt(de){var xe,Ye,At,xt,bt,Vt,zt,Ht,ur=de.component,Ir=de.children,hr=de.ellipsis,en=de.scope,$r=de.prefixCls,Jr=de.className,Pn=de.align,xn=de.record,Mn=de.render,Cn=de.dataIndex,$n=de.renderIndex,Ni=de.shouldCellUpdate,Ui=de.index,ui=de.rowType,qi=de.colSpan,ya=de.rowSpan,Jn=de.fixLeft,mi=de.fixRight,ni=de.firstFixLeft,Tn=de.lastFixLeft,ii=de.firstFixRight,Qi=de.lastFixRight,Na=de.appendNode,ha=de.additionalProps,Ki=ha===void 0?{}:ha,Ea=de.isSticky,Qa="".concat($r,"-cell"),qo=g(j,["supportSticky","allColumnsFixedLeft"]),so=qo.supportSticky,gs=qo.allColumnsFixedLeft,As=We(xn,Cn,$n,Ir,Mn,Ni),pa=(0,T.Z)(As,2),sl=pa[0],po=pa[1],es={},ns=typeof Jn=="number"&&so,xc=typeof mi=="number"&&so;ns&&(es.position="sticky",es.left=Jn),xc&&(es.position="sticky",es.right=mi);var ai=(xe=(Ye=(At=po==null?void 0:po.colSpan)!==null&&At!==void 0?At:Ki.colSpan)!==null&&Ye!==void 0?Ye:qi)!==null&&xe!==void 0?xe:1,Hi=(xt=(bt=(Vt=po==null?void 0:po.rowSpan)!==null&&Vt!==void 0?Vt:Ki.rowSpan)!==null&&bt!==void 0?bt:ya)!==null&&xt!==void 0?xt:1,Ri=_t(Ui,Hi),Li=(0,T.Z)(Ri,2),go=Li[0],ki=Li[1],la=function(Hn){var uc;xn&&ki(Ui,Ui+Hi-1),Ki==null||(uc=Ki.onMouseEnter)===null||uc===void 0||uc.call(Ki,Hn)},ja=function(Hn){var uc;xn&&ki(-1,-1),Ki==null||(uc=Ki.onMouseLeave)===null||uc===void 0||uc.call(Ki,Hn)};if(ai===0||Hi===0)return null;var $a=(zt=Ki.title)!==null&&zt!==void 0?zt:Ot({rowType:ui,ellipsis:hr,children:sl}),Fl=D()(Qa,Jr,(Ht={},(0,q.Z)(Ht,"".concat(Qa,"-fix-left"),ns&&so),(0,q.Z)(Ht,"".concat(Qa,"-fix-left-first"),ni&&so),(0,q.Z)(Ht,"".concat(Qa,"-fix-left-last"),Tn&&so),(0,q.Z)(Ht,"".concat(Qa,"-fix-left-all"),Tn&&gs&&so),(0,q.Z)(Ht,"".concat(Qa,"-fix-right"),xc&&so),(0,q.Z)(Ht,"".concat(Qa,"-fix-right-first"),ii&&so),(0,q.Z)(Ht,"".concat(Qa,"-fix-right-last"),Qi&&so),(0,q.Z)(Ht,"".concat(Qa,"-ellipsis"),hr),(0,q.Z)(Ht,"".concat(Qa,"-with-append"),Na),(0,q.Z)(Ht,"".concat(Qa,"-fix-sticky"),(ns||xc)&&Ea&&so),(0,q.Z)(Ht,"".concat(Qa,"-row-hover"),!po&&go),Ht),Ki.className,po==null?void 0:po.className),al={};Pn&&(al.textAlign=Pn);var Wc=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},es),Ki.style),al),po==null?void 0:po.style),Rs=sl;return(0,Be.Z)(Rs)==="object"&&!Array.isArray(Rs)&&!S.isValidElement(Rs)&&(Rs=null),hr&&(Tn||ii)&&(Rs=S.createElement("span",{className:"".concat(Qa,"-content")},Rs)),S.createElement(ur,(0,$.Z)({},po,Ki,{className:Fl,style:Wc,title:$a,scope:en,onMouseEnter:la,onMouseLeave:ja,colSpan:ai!==1?ai:null,rowSpan:Hi!==1?Hi:null}),Na,Rs)}var cr=S.memo(Pt);function nr(de,xe,Ye,At,xt,bt){var Vt=Ye[de]||{},zt=Ye[xe]||{},Ht,ur;Vt.fixed==="left"?Ht=At.left[xt==="rtl"?xe:de]:zt.fixed==="right"&&(ur=At.right[xt==="rtl"?de:xe]);var Ir=!1,hr=!1,en=!1,$r=!1,Jr=Ye[xe+1],Pn=Ye[de-1],xn=!(bt!=null&&bt.children);if(xt==="rtl"){if(Ht!==void 0){var Mn=Pn&&Pn.fixed==="left";$r=!Mn&&xn}else if(ur!==void 0){var Cn=Jr&&Jr.fixed==="right";en=!Cn&&xn}}else if(Ht!==void 0){var $n=Jr&&Jr.fixed==="left";Ir=!$n&&xn}else if(ur!==void 0){var Ni=Pn&&Pn.fixed==="right";hr=!Ni&&xn}return{fixLeft:Ht,fixRight:ur,lastFixLeft:Ir,firstFixRight:hr,lastFixRight:en,firstFixLeft:$r,isSticky:At.isSticky}}var br=S.createContext({}),sr=br;function k(de){var xe=de.className,Ye=de.index,At=de.children,xt=de.colSpan,bt=xt===void 0?1:xt,Vt=de.rowSpan,zt=de.align,Ht=g(j,["prefixCls","direction"]),ur=Ht.prefixCls,Ir=Ht.direction,hr=S.useContext(sr),en=hr.scrollColumnIndex,$r=hr.stickyOffsets,Jr=hr.flattenColumns,Pn=hr.columns,xn=Ye+bt-1,Mn=xn+1===en?bt+1:bt,Cn=nr(Ye,Ye+Mn-1,Jr,$r,Ir,Pn==null?void 0:Pn[Ye]);return S.createElement(cr,(0,$.Z)({className:xe,index:Ye,component:"td",prefixCls:ur,record:null,dataIndex:null,align:zt,colSpan:Mn,rowSpan:Vt,render:function(){return At}},Cn))}var Xe=x(75931),N=["children"];function b(de){var xe=de.children,Ye=(0,Xe.Z)(de,N);return S.createElement("tr",Ye,xe)}function f(de){var xe=de.children;return xe}f.Row=b,f.Cell=k;var C=f;function ee(de){var xe=de.children,Ye=de.stickyOffsets,At=de.flattenColumns,xt=de.columns,bt=g(j,"prefixCls"),Vt=At.length-1,zt=At[Vt],Ht=S.useMemo(function(){return{stickyOffsets:Ye,flattenColumns:At,scrollColumnIndex:zt!=null&&zt.scrollbar?Vt:null,columns:xt}},[zt,At,Vt,Ye,xt]);return S.createElement(sr.Provider,{value:Ht},S.createElement("tfoot",{className:"".concat(bt,"-summary")},xe))}var Se=ie(ee),H=C,ne=x(70425),Qe=x(29301),we=x(29194),ye=x(24514),je=x(75152),mt=x(26112);function ge(de,xe,Ye,At,xt,bt,Vt){de.push({record:xe,indent:Ye,index:Vt});var zt=bt(xe),Ht=xt==null?void 0:xt.has(zt);if(xe&&Array.isArray(xe[At])&&Ht)for(var ur=0;ur<xe[At].length;ur+=1)ge(de,xe[At][ur],Ye+1,At,xt,bt,ur)}function st(de,xe,Ye,At){var xt=S.useMemo(function(){if(Ye!=null&&Ye.size){for(var bt=[],Vt=0;Vt<(de==null?void 0:de.length);Vt+=1){var zt=de[Vt];ge(bt,zt,0,xe,Ye,At,Vt)}return bt}return de==null?void 0:de.map(function(Ht,ur){return{record:Ht,indent:0,index:ur}})},[de,xe,Ye,At]);return xt}function ze(de){var xe=de.prefixCls,Ye=de.children,At=de.component,xt=de.cellComponent,bt=de.className,Vt=de.expanded,zt=de.colSpan,Ht=de.isEmpty,ur=g(j,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ir=ur.scrollbarSize,hr=ur.fixHeader,en=ur.fixColumn,$r=ur.componentWidth,Jr=ur.horizonScroll,Pn=Ye;return(Ht?Jr&&$r:en)&&(Pn=S.createElement("div",{style:{width:$r-(hr?Ir:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(xe,"-expanded-row-fixed")},Pn)),S.createElement(At,{className:bt,style:{display:Vt?null:"none"}},S.createElement(cr,{component:xt,prefixCls:xe,colSpan:zt},Pn))}var Ie=ze;function Le(de,xe,Ye,At){var xt=g(j,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),bt=xt.flattenColumns,Vt=xt.expandableType,zt=xt.expandedKeys,Ht=xt.childrenColumnName,ur=xt.onTriggerExpand,Ir=xt.rowExpandable,hr=xt.onRow,en=xt.expandRowByClick,$r=xt.rowClassName,Jr=Vt==="nest",Pn=Vt==="row"&&(!Ir||Ir(de)),xn=Pn||Jr,Mn=zt&&zt.has(xe),Cn=Ht&&de&&de[Ht],$n=(0,ne.useEvent)(ur),Ni=hr==null?void 0:hr(de,Ye),Ui=Ni==null?void 0:Ni.onClick,ui=function(mi){en&&xn&&ur(de,mi);for(var ni=arguments.length,Tn=new Array(ni>1?ni-1:0),ii=1;ii<ni;ii++)Tn[ii-1]=arguments[ii];Ui==null||Ui.apply(void 0,[mi].concat(Tn))},qi;typeof $r=="string"?qi=$r:typeof $r=="function"&&(qi=$r(de,Ye,At));var ya=Ee(bt);return(0,Pe.Z)((0,Pe.Z)({},xt),{},{columnsKey:ya,nestExpandable:Jr,expanded:Mn,hasNestChildren:Cn,record:de,onTriggerExpand:$n,rowSupportExpand:Pn,expandable:xn,rowProps:(0,Pe.Z)((0,Pe.Z)({},Ni),{},{className:D()(qi,Ni==null?void 0:Ni.className),onClick:ui})})}function ct(de,xe,Ye,At,xt){var bt=de.record,Vt=de.prefixCls,zt=de.columnsKey,Ht=de.fixedInfoList,ur=de.expandIconColumnIndex,Ir=de.nestExpandable,hr=de.indentSize,en=de.expandIcon,$r=de.expanded,Jr=de.hasNestChildren,Pn=de.onTriggerExpand,xn=zt[Ye],Mn=Ht[Ye],Cn;Ye===(ur||0)&&Ir&&(Cn=S.createElement(S.Fragment,null,S.createElement("span",{style:{paddingLeft:"".concat(hr*At,"px")},className:"".concat(Vt,"-row-indent indent-level-").concat(At)}),en({prefixCls:Vt,expanded:$r,expandable:Jr,record:bt,onExpand:Pn})));var $n;return xe.onCell&&($n=xe.onCell(bt,xt)),{key:xn,fixedInfo:Mn,appendCellNode:Cn,additionalCellProps:$n||{}}}function Tt(de){var xe=de.className,Ye=de.style,At=de.record,xt=de.index,bt=de.renderIndex,Vt=de.rowKey,zt=de.indent,Ht=zt===void 0?0:zt,ur=de.rowComponent,Ir=de.cellComponent,hr=de.scopeCellComponent,en=Le(At,Vt,xt,Ht),$r=en.prefixCls,Jr=en.flattenColumns,Pn=en.expandedRowClassName,xn=en.expandedRowRender,Mn=en.rowProps,Cn=en.expanded,$n=en.rowSupportExpand,Ni=S.useState(!1),Ui=(0,T.Z)(Ni,2),ui=Ui[0],qi=Ui[1];S.useEffect(function(){Cn&&qi(!0)},[Cn]);var ya=S.createElement(ur,(0,$.Z)({},Mn,{"data-row-key":Vt,className:D()(xe,"".concat($r,"-row"),"".concat($r,"-row-level-").concat(Ht),Mn==null?void 0:Mn.className),style:(0,Pe.Z)((0,Pe.Z)({},Ye),Mn==null?void 0:Mn.style)}),Jr.map(function(Tn,ii){var Qi=Tn.render,Na=Tn.dataIndex,ha=Tn.className,Ki=ct(en,Tn,ii,Ht,xt),Ea=Ki.key,Qa=Ki.fixedInfo,qo=Ki.appendCellNode,so=Ki.additionalCellProps;return S.createElement(cr,(0,$.Z)({className:ha,ellipsis:Tn.ellipsis,align:Tn.align,scope:Tn.rowScope,component:Tn.rowScope?hr:Ir,prefixCls:$r,key:Ea,record:At,index:xt,renderIndex:bt,dataIndex:Na,render:Qi,shouldCellUpdate:Tn.shouldCellUpdate},Qa,{appendNode:qo,additionalProps:so}))})),Jn;if($n&&(ui||Cn)){var mi=xn(At,xt,Ht+1,Cn),ni=Pn&&Pn(At,xt,Ht);Jn=S.createElement(Ie,{expanded:Cn,className:D()("".concat($r,"-expanded-row"),"".concat($r,"-expanded-row-level-").concat(Ht+1),ni),prefixCls:$r,component:ur,cellComponent:Ir,colSpan:Jr.length,isEmpty:!1},mi)}return S.createElement(S.Fragment,null,ya,Jn)}Tt.displayName="BodyRow";var Mt=ie(Tt);function Yt(de){var xe=de.columnKey,Ye=de.onColumnResize,At=S.useRef();return S.useEffect(function(){At.current&&Ye(xe,At.current.offsetWidth)},[]),S.createElement(Qe.Z,{data:xe},S.createElement("td",{ref:At,style:{padding:0,border:0,height:0}},S.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}function _r(de){var xe=de.prefixCls,Ye=de.columnsKey,At=de.onColumnResize;return S.createElement("tr",{"aria-hidden":"true",className:"".concat(xe,"-measure-row"),style:{height:0,fontSize:0}},S.createElement(Qe.Z.Collection,{onBatchResize:function(bt){bt.forEach(function(Vt){var zt=Vt.data,Ht=Vt.size;At(zt,Ht.offsetWidth)})}},Ye.map(function(xt){return S.createElement(Yt,{key:xt,columnKey:xt,onColumnResize:At})})))}function Sr(de){var xe=de.data,Ye=de.measureColumnWidth,At=g(j,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),xt=At.prefixCls,bt=At.getComponent,Vt=At.onColumnResize,zt=At.flattenColumns,Ht=At.getRowKey,ur=At.expandedKeys,Ir=At.childrenColumnName,hr=At.emptyNode,en=st(xe,Ir,ur,Ht),$r=S.useRef({renderWithProps:!1}),Jr=bt(["body","wrapper"],"tbody"),Pn=bt(["body","row"],"tr"),xn=bt(["body","cell"],"td"),Mn=bt(["body","cell"],"th"),Cn;xe.length?Cn=en.map(function(Ni,Ui){var ui=Ni.record,qi=Ni.indent,ya=Ni.index,Jn=Ht(ui,Ui);return S.createElement(Mt,{key:Jn,rowKey:Jn,record:ui,index:Ui,renderIndex:ya,rowComponent:Pn,cellComponent:xn,scopeCellComponent:Mn,getRowKey:Ht,indent:qi})}):Cn=S.createElement(Ie,{expanded:!0,className:"".concat(xt,"-placeholder"),prefixCls:xt,component:Pn,cellComponent:xn,colSpan:zt.length,isEmpty:!0},hr);var $n=Ee(zt);return S.createElement(me.Provider,{value:$r.current},S.createElement(Jr,{className:"".concat(xt,"-tbody")},Ye&&S.createElement(_r,{prefixCls:xt,columnsKey:$n,onColumnResize:Vt}),Cn))}Sr.displayName="Body";var Lr=ie(Sr),Er=["expandable"],Ar="RC_TABLE_INTERNAL_COL_DEFINE";function ar(de){var xe=de.expandable,Ye=(0,Xe.Z)(de,Er),At;return"expandable"in de?At=(0,Pe.Z)((0,Pe.Z)({},Ye),xe):At=Ye,At.showExpandColumn===!1&&(At.expandIconColumnIndex=-1),At}var Rr=["columnType"];function fn(de){for(var xe=de.colWidths,Ye=de.columns,At=de.columCount,xt=[],bt=At||Ye.length,Vt=!1,zt=bt-1;zt>=0;zt-=1){var Ht=xe[zt],ur=Ye&&Ye[zt],Ir=ur&&ur[Ar];if(Ht||Ir||Vt){var hr=Ir||{},en=hr.columnType,$r=(0,Xe.Z)(hr,Rr);xt.unshift(S.createElement("col",(0,$.Z)({key:zt,style:{width:Ht}},$r))),Vt=!0}}return S.createElement("colgroup",null,xt)}var En=fn,gn=x(94480),Rn=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function ji(de,xe){return(0,S.useMemo)(function(){for(var Ye=[],At=0;At<xe;At+=1){var xt=de[At];if(xt!==void 0)Ye[At]=xt;else return null}return Ye},[de.join("_"),xe])}var Or=S.forwardRef(function(de,xe){var Ye=de.className,At=de.noData,xt=de.columns,bt=de.flattenColumns,Vt=de.colWidths,zt=de.columCount,Ht=de.stickyOffsets,ur=de.direction,Ir=de.fixHeader,hr=de.stickyTopOffset,en=de.stickyBottomOffset,$r=de.stickyClassName,Jr=de.onScroll,Pn=de.maxContentScroll,xn=de.children,Mn=(0,Xe.Z)(de,Rn),Cn=g(j,["prefixCls","scrollbarSize","isSticky"]),$n=Cn.prefixCls,Ni=Cn.scrollbarSize,Ui=Cn.isSticky,ui=Ui&&!Ir?0:Ni,qi=S.useRef(null),ya=S.useCallback(function(ha){(0,_.mH)(xe,ha),(0,_.mH)(qi,ha)},[]);S.useEffect(function(){var ha;function Ki(Ea){var Qa=Ea,qo=Qa.currentTarget,so=Qa.deltaX;so&&(Jr({currentTarget:qo,scrollLeft:qo.scrollLeft+so}),Ea.preventDefault())}return(ha=qi.current)===null||ha===void 0||ha.addEventListener("wheel",Ki),function(){var Ea;(Ea=qi.current)===null||Ea===void 0||Ea.removeEventListener("wheel",Ki)}},[]);var Jn=S.useMemo(function(){return bt.every(function(ha){return ha.width})},[bt]),mi=bt[bt.length-1],ni={fixed:mi?mi.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($n,"-cell-scrollbar")}}},Tn=(0,S.useMemo)(function(){return ui?[].concat((0,gn.Z)(xt),[ni]):xt},[ui,xt]),ii=(0,S.useMemo)(function(){return ui?[].concat((0,gn.Z)(bt),[ni]):bt},[ui,bt]),Qi=(0,S.useMemo)(function(){var ha=Ht.right,Ki=Ht.left;return(0,Pe.Z)((0,Pe.Z)({},Ht),{},{left:ur==="rtl"?[].concat((0,gn.Z)(Ki.map(function(Ea){return Ea+ui})),[0]):Ki,right:ur==="rtl"?ha:[].concat((0,gn.Z)(ha.map(function(Ea){return Ea+ui})),[0]),isSticky:Ui})},[ui,Ht,Ui]),Na=ji(Vt,zt);return S.createElement("div",{style:(0,Pe.Z)({overflow:"hidden"},Ui?{top:hr,bottom:en}:{}),ref:ya,className:D()(Ye,(0,q.Z)({},$r,!!$r))},S.createElement("table",{style:{tableLayout:"fixed",visibility:At||Na?null:"hidden"}},(!At||!Pn||Jn)&&S.createElement(En,{colWidths:Na?[].concat((0,gn.Z)(Na),[ui]):[],columCount:zt+1,columns:ii}),xn((0,Pe.Z)((0,Pe.Z)({},Mn),{},{stickyOffsets:Qi,columns:Tn,flattenColumns:ii}))))});Or.displayName="FixedHolder";var bi=S.memo(Or);function ua(de){var xe=de.cells,Ye=de.stickyOffsets,At=de.flattenColumns,xt=de.rowComponent,bt=de.cellComponent,Vt=de.tdCellComponent,zt=de.onHeaderRow,Ht=de.index,ur=g(j,["prefixCls","direction"]),Ir=ur.prefixCls,hr=ur.direction,en;zt&&(en=zt(xe.map(function(Jr){return Jr.column}),Ht));var $r=Ee(xe.map(function(Jr){return Jr.column}));return S.createElement(xt,en,xe.map(function(Jr,Pn){var xn=Jr.column,Mn=nr(Jr.colStart,Jr.colEnd,At,Ye,hr,xn),Cn;return xn&&xn.onHeaderCell&&(Cn=Jr.column.onHeaderCell(xn)),S.createElement(cr,(0,$.Z)({},Jr,{scope:xn.title?Jr.colSpan>1?"colgroup":"col":null,ellipsis:xn.ellipsis,align:xn.align,component:xn.title?bt:Vt,prefixCls:Ir,key:$r[Pn]},Mn,{additionalProps:Cn,rowType:"header"}))}))}ua.displayName="HeaderRow";var gi=ua;function ta(de){var xe=[];function Ye(Vt,zt){var Ht=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;xe[Ht]=xe[Ht]||[];var ur=zt,Ir=Vt.filter(Boolean).map(function(hr){var en={key:hr.key,className:hr.className||"",children:hr.title,column:hr,colStart:ur},$r=1,Jr=hr.children;return Jr&&Jr.length>0&&($r=Ye(Jr,ur,Ht+1).reduce(function(Pn,xn){return Pn+xn},0),en.hasSubColumns=!0),"colSpan"in hr&&($r=hr.colSpan),"rowSpan"in hr&&(en.rowSpan=hr.rowSpan),en.colSpan=$r,en.colEnd=en.colStart+$r-1,xe[Ht].push(en),ur+=$r,$r});return Ir}Ye(de,0);for(var At=xe.length,xt=function(zt){xe[zt].forEach(function(Ht){!("rowSpan"in Ht)&&!Ht.hasSubColumns&&(Ht.rowSpan=At-zt)})},bt=0;bt<At;bt+=1)xt(bt);return xe}function Ji(de){var xe=de.stickyOffsets,Ye=de.columns,At=de.flattenColumns,xt=de.onHeaderRow,bt=g(j,["prefixCls","getComponent"]),Vt=bt.prefixCls,zt=bt.getComponent,Ht=S.useMemo(function(){return ta(Ye)},[Ye]),ur=zt(["header","wrapper"],"thead"),Ir=zt(["header","row"],"tr"),hr=zt(["header","cell"],"th"),en=zt(["header","cell"],"td");return S.createElement(ur,{className:"".concat(Vt,"-thead")},Ht.map(function($r,Jr){var Pn=S.createElement(gi,{key:Jr,flattenColumns:At,cells:$r,stickyOffsets:xe,rowComponent:Ir,cellComponent:hr,tdCellComponent:en,onHeaderRow:xt,index:Jr});return Pn}))}var aa=ie(Ji),Io=x(11592);function oa(de){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof xe=="number"?xe:xe.endsWith("%")?de*parseFloat(xe)/100:null}function pi(de,xe){return S.useMemo(function(){if(xe&&xe>0){var Ye=0,At=0;de.forEach(function(ur){var Ir=oa(xe,ur.width);Ir?Ye+=Ir:At+=1});var xt=xe-Ye,bt=At,Vt=xt/At,zt=0,Ht=de.map(function(ur){var Ir=(0,Pe.Z)({},ur),hr=oa(xe,Ir.width);if(hr)Ir.width=hr;else{var en=Math.floor(Vt);Ir.width=bt===1?xt:en,xt-=en,bt-=1}return zt+=Ir.width,Ir});return[Ht,zt]}return[de,xe]},[de,xe])}var Ti=["children"],zi=["fixed"];function be(de){return(0,Io.Z)(de).filter(function(xe){return S.isValidElement(xe)}).map(function(xe){var Ye=xe.key,At=xe.props,xt=At.children,bt=(0,Xe.Z)(At,Ti),Vt=(0,Pe.Z)({key:Ye},bt);return xt&&(Vt.children=be(xt)),Vt})}function Oe(de){var xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return de.filter(function(Ye){return Ye&&(0,Be.Z)(Ye)==="object"}).reduce(function(Ye,At,xt){var bt=At.fixed,Vt=bt===!0?"left":bt,zt="".concat(xe,"-").concat(xt),Ht=At.children;return Ht&&Ht.length>0?[].concat((0,gn.Z)(Ye),(0,gn.Z)(Oe(Ht,zt).map(function(ur){return(0,Pe.Z)({fixed:Vt},ur)}))):[].concat((0,gn.Z)(Ye),[(0,Pe.Z)((0,Pe.Z)({key:zt},At),{},{fixed:Vt})])},[])}function ke(de){for(var xe=!0,Ye=0;Ye<de.length;Ye+=1){var At=de[Ye];if(xe&&At.fixed!=="left")xe=!1;else if(!xe&&At.fixed==="left"){warning(!1,"Index ".concat(Ye-1," of `columns` missing `fixed='left'` prop."));break}}for(var xt=!0,bt=de.length-1;bt>=0;bt-=1){var Vt=de[bt];if(xt&&Vt.fixed!=="right")xt=!1;else if(!xt&&Vt.fixed==="right"){warning(!1,"Index ".concat(bt+1," of `columns` missing `fixed='right'` prop."));break}}}function qe(de){return de.map(function(xe){var Ye=xe.fixed,At=(0,Xe.Z)(xe,zi),xt=Ye;return Ye==="left"?xt="right":Ye==="right"&&(xt="left"),(0,Pe.Z)({fixed:xt},At)})}function Rt(de,xe){var Ye=de.prefixCls,At=de.columns,xt=de.children,bt=de.expandable,Vt=de.expandedKeys,zt=de.columnTitle,Ht=de.getRowKey,ur=de.onTriggerExpand,Ir=de.expandIcon,hr=de.rowExpandable,en=de.expandIconColumnIndex,$r=de.direction,Jr=de.expandRowByClick,Pn=de.columnWidth,xn=de.fixed,Mn=de.scrollWidth,Cn=S.useMemo(function(){return At||be(xt)},[At,xt]),$n=S.useMemo(function(){if(bt){var mi,ni=Cn.slice();if(!ni.includes(ve)){var Tn=en||0;Tn>=0&&ni.splice(Tn,0,ve)}var ii=ni.indexOf(ve);ni=ni.filter(function(Ki,Ea){return Ki!==ve||Ea===ii});var Qi=Cn[ii],Na;(xn==="left"||xn)&&!en?Na="left":(xn==="right"||xn)&&en===Cn.length?Na="right":Na=Qi?Qi.fixed:null;var ha=(mi={},(0,q.Z)(mi,Ar,{className:"".concat(Ye,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),(0,q.Z)(mi,"title",zt),(0,q.Z)(mi,"fixed",Na),(0,q.Z)(mi,"className","".concat(Ye,"-row-expand-icon-cell")),(0,q.Z)(mi,"width",Pn),(0,q.Z)(mi,"render",function(Ea,Qa,qo){var so=Ht(Qa,qo),gs=Vt.has(so),As=hr?hr(Qa):!0,pa=Ir({prefixCls:Ye,expanded:gs,expandable:As,record:Qa,onExpand:ur});return Jr?S.createElement("span",{onClick:function(po){return po.stopPropagation()}},pa):pa}),mi);return ni.map(function(Ki){return Ki===ve?ha:Ki})}return Cn.filter(function(Ki){return Ki!==ve})},[bt,Cn,Ht,Vt,Ir,$r]),Ni=S.useMemo(function(){var mi=$n;return xe&&(mi=xe(mi)),mi.length||(mi=[{render:function(){return null}}]),mi},[xe,$n,$r]),Ui=S.useMemo(function(){return $r==="rtl"?qe(Oe(Ni)):Oe(Ni)},[Ni,$r,Mn]),ui=pi(Ui,Mn),qi=(0,T.Z)(ui,2),ya=qi[0],Jn=qi[1];return[Ni,ya,Jn]}var kt=Rt;function yr(de){var xe,Ye=de.prefixCls,At=de.record,xt=de.onExpand,bt=de.expanded,Vt=de.expandable,zt="".concat(Ye,"-row-expand-icon");if(!Vt)return S.createElement("span",{className:D()(zt,"".concat(Ye,"-row-spaced"))});var Ht=function(Ir){xt(At,Ir),Ir.stopPropagation()};return S.createElement("span",{className:D()(zt,(xe={},(0,q.Z)(xe,"".concat(Ye,"-row-expanded"),bt),(0,q.Z)(xe,"".concat(Ye,"-row-collapsed"),!bt),xe)),onClick:Ht})}function or(de,xe,Ye){var At=[];function xt(bt){(bt||[]).forEach(function(Vt,zt){At.push(xe(Vt,zt)),xt(Vt[Ye])})}return xt(de),At}function Nr(de,xe,Ye){var At=ar(de),xt=At.expandIcon,bt=At.expandedRowKeys,Vt=At.defaultExpandedRowKeys,zt=At.defaultExpandAllRows,Ht=At.expandedRowRender,ur=At.onExpand,Ir=At.onExpandedRowsChange,hr=At.childrenColumnName,en=xt||yr,$r=hr||"children",Jr=S.useMemo(function(){return Ht?"row":de.expandable&&de.internalHooks===ue&&de.expandable.__PARENT_RENDER_ICON__||xe.some(function(Ui){return Ui&&(0,Be.Z)(Ui)==="object"&&Ui[$r]})?"nest":!1},[!!Ht,xe]),Pn=S.useState(function(){return Vt||(zt?or(xe,Ye,$r):[])}),xn=(0,T.Z)(Pn,2),Mn=xn[0],Cn=xn[1],$n=S.useMemo(function(){return new Set(bt||Mn||[])},[bt,Mn]),Ni=S.useCallback(function(Ui){var ui=Ye(Ui,xe.indexOf(Ui)),qi,ya=$n.has(ui);ya?($n.delete(ui),qi=(0,gn.Z)($n)):qi=[].concat((0,gn.Z)($n),[ui]),Cn(qi),ur&&ur(!ya,Ui),Ir&&Ir(qi)},[Ye,$n,xe,ur,Ir]);return[At,Jr,$n,en,$r,Ni]}function zr(de,xe,Ye,At){var xt=de.map(function(bt,Vt){return nr(Vt,Vt,de,xe,Ye,At==null?void 0:At[Vt])});return(0,Je.Z)(function(){return xt},[xt],function(bt,Vt){return!(0,W.Z)(bt,Vt)})}function an(de){var xe=(0,S.useRef)(de),Ye=(0,S.useState)({}),At=(0,T.Z)(Ye,2),xt=At[1],bt=(0,S.useRef)(null),Vt=(0,S.useRef)([]);function zt(Ht){Vt.current.push(Ht);var ur=Promise.resolve();bt.current=ur,ur.then(function(){if(bt.current===ur){var Ir=Vt.current,hr=xe.current;Vt.current=[],Ir.forEach(function(en){xe.current=en(xe.current)}),bt.current=null,hr!==xe.current&&xt({})}})}return(0,S.useEffect)(function(){return function(){bt.current=null}},[]),[xe.current,zt]}function jr(de){var xe=(0,S.useRef)(de||null),Ye=(0,S.useRef)();function At(){window.clearTimeout(Ye.current)}function xt(Vt){xe.current=Vt,At(),Ye.current=window.setTimeout(function(){xe.current=null,Ye.current=void 0},100)}function bt(){return xe.current}return(0,S.useEffect)(function(){return At},[]),[xt,bt]}function Qr(){var de=S.useState(-1),xe=(0,T.Z)(de,2),Ye=xe[0],At=xe[1],xt=S.useState(-1),bt=(0,T.Z)(xt,2),Vt=bt[0],zt=bt[1],Ht=S.useCallback(function(ur,Ir){At(ur),zt(Ir)},[]);return[Ye,Vt,Ht]}var qr=x(47273),yn=(0,qr.Z)()?window:null;function on(de,xe){var Ye=(0,Be.Z)(de)==="object"?de:{},At=Ye.offsetHeader,xt=At===void 0?0:At,bt=Ye.offsetSummary,Vt=bt===void 0?0:bt,zt=Ye.offsetScroll,Ht=zt===void 0?0:zt,ur=Ye.getContainer,Ir=ur===void 0?function(){return yn}:ur,hr=Ir()||yn;return S.useMemo(function(){var en=!!de;return{isSticky:en,stickyClassName:en?"".concat(xe,"-sticky-holder"):"",offsetHeader:xt,offsetSummary:Vt,offsetScroll:Ht,container:hr}},[Ht,xt,Vt,xe,hr])}function Dn(de,xe,Ye){var At=(0,S.useMemo)(function(){for(var xt=[],bt=[],Vt=0,zt=0,Ht=0;Ht<xe;Ht+=1)if(Ye==="rtl"){bt[Ht]=zt,zt+=de[Ht]||0;var ur=xe-Ht-1;xt[ur]=Vt,Vt+=de[ur]||0}else{xt[Ht]=Vt,Vt+=de[Ht]||0;var Ir=xe-Ht-1;bt[Ir]=zt,zt+=de[Ir]||0}return{left:xt,right:bt}},[de,xe,Ye]);return At}var Qn=Dn;function fi(de){var xe=de.className,Ye=de.children;return S.createElement("div",{className:xe},Ye)}var On=fi,An=x(8224),Dt=x(55468),Kt=function(xe,Ye){var At,xt,bt=xe.scrollBodyRef,Vt=xe.onScroll,zt=xe.offsetScroll,Ht=xe.container,ur=g(j,"prefixCls"),Ir=((At=bt.current)===null||At===void 0?void 0:At.scrollWidth)||0,hr=((xt=bt.current)===null||xt===void 0?void 0:xt.clientWidth)||0,en=Ir&&hr*(hr/Ir),$r=S.useRef(),Jr=an({scrollLeft:0,isHiddenScrollBar:!1}),Pn=(0,T.Z)(Jr,2),xn=Pn[0],Mn=Pn[1],Cn=S.useRef({delta:0,x:0}),$n=S.useState(!1),Ni=(0,T.Z)($n,2),Ui=Ni[0],ui=Ni[1],qi=function(){ui(!1)},ya=function(ii){ii.persist(),Cn.current.delta=ii.pageX-xn.scrollLeft,Cn.current.x=0,ui(!0),ii.preventDefault()},Jn=function(ii){var Qi,Na=ii||((Qi=window)===null||Qi===void 0?void 0:Qi.event),ha=Na.buttons;if(!Ui||ha===0){Ui&&ui(!1);return}var Ki=Cn.current.x+ii.pageX-Cn.current.x-Cn.current.delta;Ki<=0&&(Ki=0),Ki+en>=hr&&(Ki=hr-en),Vt({scrollLeft:Ki/hr*(Ir+2)}),Cn.current.x=ii.pageX},mi=function(){if(bt.current){var ii=(0,Dt.os)(bt.current).top,Qi=ii+bt.current.offsetHeight,Na=Ht===window?document.documentElement.scrollTop+window.innerHeight:(0,Dt.os)(Ht).top+Ht.clientHeight;Qi-(0,je.Z)()<=Na||ii>=Na-zt?Mn(function(ha){return(0,Pe.Z)((0,Pe.Z)({},ha),{},{isHiddenScrollBar:!0})}):Mn(function(ha){return(0,Pe.Z)((0,Pe.Z)({},ha),{},{isHiddenScrollBar:!1})})}},ni=function(ii){Mn(function(Qi){return(0,Pe.Z)((0,Pe.Z)({},Qi),{},{scrollLeft:ii/Ir*hr||0})})};return S.useImperativeHandle(Ye,function(){return{setScrollLeft:ni}}),S.useEffect(function(){var Tn=(0,An.Z)(document.body,"mouseup",qi,!1),ii=(0,An.Z)(document.body,"mousemove",Jn,!1);return mi(),function(){Tn.remove(),ii.remove()}},[en,Ui]),S.useEffect(function(){var Tn=(0,An.Z)(Ht,"scroll",mi,!1),ii=(0,An.Z)(window,"resize",mi,!1);return function(){Tn.remove(),ii.remove()}},[Ht]),S.useEffect(function(){xn.isHiddenScrollBar||Mn(function(Tn){var ii=bt.current;return ii?(0,Pe.Z)((0,Pe.Z)({},Tn),{},{scrollLeft:ii.scrollLeft/ii.scrollWidth*ii.clientWidth}):Tn})},[xn.isHiddenScrollBar]),Ir<=hr||!en||xn.isHiddenScrollBar?null:S.createElement("div",{style:{height:(0,je.Z)(),width:hr,bottom:zt},className:"".concat(ur,"-sticky-scroll")},S.createElement("div",{onMouseDown:ya,ref:$r,className:D()("".concat(ur,"-sticky-scroll-bar"),(0,q.Z)({},"".concat(ur,"-sticky-scroll-bar-active"),Ui)),style:{width:"".concat(en,"px"),transform:"translate3d(".concat(xn.scrollLeft,"px, 0, 0)")}}))},Gt=S.forwardRef(Kt);function Jt(de){return null}var Zt=Jt;function Dr(de){return null}var Fr=Dr,Xr="rc-table",Fn=[],Nn={};function si(){return"No Data"}function ti(de){var xe,Ye=(0,Pe.Z)({rowKey:"key",prefixCls:Xr,emptyText:si},de),At=Ye.prefixCls,xt=Ye.className,bt=Ye.rowClassName,Vt=Ye.style,zt=Ye.data,Ht=Ye.rowKey,ur=Ye.scroll,Ir=Ye.tableLayout,hr=Ye.direction,en=Ye.title,$r=Ye.footer,Jr=Ye.summary,Pn=Ye.caption,xn=Ye.id,Mn=Ye.showHeader,Cn=Ye.components,$n=Ye.emptyText,Ni=Ye.onRow,Ui=Ye.onHeaderRow,ui=Ye.internalHooks,qi=Ye.transformColumns,ya=Ye.internalRefs,Jn=Ye.tailor,mi=Ye.sticky,ni=zt||Fn,Tn=!!ni.length,ii=ui===ue,Qi=S.useCallback(function(Ao,vo){return(0,Fe.Z)(Cn,Ao)||vo},[Cn]),Na=S.useMemo(function(){return typeof Ht=="function"?Ht:function(Ao){var vo=Ao&&Ao[Ht];return vo}},[Ht]),ha=Qi(["body"]),Ki=Qr(),Ea=(0,T.Z)(Ki,3),Qa=Ea[0],qo=Ea[1],so=Ea[2],gs=Nr(Ye,ni,Na),As=(0,T.Z)(gs,6),pa=As[0],sl=As[1],po=As[2],es=As[3],ns=As[4],xc=As[5],ai=ur==null?void 0:ur.x,Hi=S.useState(0),Ri=(0,T.Z)(Hi,2),Li=Ri[0],go=Ri[1],ki=kt((0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},Ye),pa),{},{expandable:!!pa.expandedRowRender,columnTitle:pa.columnTitle,expandedKeys:po,getRowKey:Na,onTriggerExpand:xc,expandIcon:es,expandIconColumnIndex:pa.expandIconColumnIndex,direction:hr,scrollWidth:ii&&Jn&&typeof ai=="number"?ai:null}),ii?qi:null),la=(0,T.Z)(ki,3),ja=la[0],$a=la[1],Fl=la[2],al=Fl!=null?Fl:ai,Wc=S.useMemo(function(){return{columns:ja,flattenColumns:$a}},[ja,$a]),Rs=S.useRef(),Uc=S.useRef(),Hn=S.useRef(),uc=S.useRef(),Du=S.useRef(),lo=S.useState(!1),pn=(0,T.Z)(lo,2),ko=pn[0],ul=pn[1],us=S.useState(!1),ea=(0,T.Z)(us,2),Bl=ea[0],Zl=ea[1],Rc=an(new Map),Cc=(0,T.Z)(Rc,2),Sl=Cc[0],dl=Cc[1],cu=Ee($a),Ml=cu.map(function(Ao){return Sl.get(Ao)}),Qs=S.useMemo(function(){return Ml},[Ml.join("_")]),El=Qn(Qs,$a.length,hr),ol=ur&&rt(ur.y),Ms=ur&&rt(al)||!!pa.fixed,Bc=Ms&&$a.some(function(Ao){var vo=Ao.fixed;return vo}),wA=S.useRef(),PA=on(mi,At),xA=PA.isSticky,uf=PA.offsetHeader,zf=PA.offsetSummary,no=PA.offsetScroll,Vo=PA.stickyClassName,Vl=PA.container,ds=S.useMemo(function(){return Jr==null?void 0:Jr(ni)},[Jr,ni]),Ll=(ol||xA)&&S.isValidElement(ds)&&ds.type===C&&ds.props.fixed,Wl,el,CA;ol&&(el={overflowY:"scroll",maxHeight:ur.y}),Ms&&(Wl={overflowX:"auto"},ol||(el={overflowY:"hidden"}),CA={width:al===!0?"auto":al,minWidth:"100%"});var df=S.useCallback(function(Ao,vo){(0,we.Z)(Rs.current)&&dl(function(tA){if(tA.get(Ao)!==vo){var uu=new Map(tA);return uu.set(Ao,vo),uu}return tA})},[]),ff=jr(null),td=(0,T.Z)(ff,2),co=td[0],Cs=td[1];function BA(Ao,vo){vo&&(typeof vo=="function"?vo(Ao):vo.scrollLeft!==Ao&&(vo.scrollLeft=Ao,vo.scrollLeft!==Ao&&setTimeout(function(){vo.scrollLeft=Ao},0)))}var SA=(0,De.Z)(function(Ao){var vo=Ao.currentTarget,tA=Ao.scrollLeft,uu=hr==="rtl",XA=typeof tA=="number"?tA:vo.scrollLeft,y0=vo||Nn;if(!Cs()||Cs()===y0){var kl;co(y0),BA(XA,Uc.current),BA(XA,Hn.current),BA(XA,Du.current),BA(XA,(kl=wA.current)===null||kl===void 0?void 0:kl.setScrollLeft)}var EA=vo||Uc.current;if(EA){var Sh=EA.scrollWidth,Xf=EA.clientWidth;if(Sh===Xf){ul(!1),Zl(!1);return}uu?(ul(-XA<Sh-Xf),Zl(-XA>0)):(ul(XA>0),Zl(XA<Sh-Xf))}}),Gl=function(){Ms&&Hn.current?SA({currentTarget:Hn.current}):(ul(!1),Zl(!1))},$f=function(vo){var tA=vo.width;tA!==Li&&(Gl(),go(Rs.current?Rs.current.offsetWidth:tA))},TA=S.useRef(!1);S.useEffect(function(){TA.current&&Gl()},[Ms,zt,ja.length]),S.useEffect(function(){TA.current=!0},[]);var Zf=S.useState(0),Vf=(0,T.Z)(Zf,2),rd=Vf[0],Od=Vf[1],Pd=S.useState(!0),nd=(0,T.Z)(Pd,2),Hr=nd[0],Td=nd[1];S.useEffect(function(){(!Jn||!ii)&&(Hn.current instanceof Element?Od((0,je.o)(Hn.current).width):Od((0,je.o)(uc.current).width)),Td((0,ye.G)("position","sticky"))},[]),S.useEffect(function(){ii&&ya&&(ya.body.current=Hn.current)});var hf=S.useCallback(function(Ao){return S.createElement(S.Fragment,null,S.createElement(aa,Ao),Ll==="top"&&S.createElement(Se,Ao,ds))},[Ll,ds]),Wf=S.useCallback(function(Ao){return S.createElement(Se,Ao,ds)},[ds]),pf=Qi(["table"],"table"),Ch=S.useMemo(function(){return Ir||(Bc?al==="max-content"?"auto":"fixed":ol||xA||$a.some(function(Ao){var vo=Ao.ellipsis;return vo})?"fixed":"auto")},[ol,Bc,$a,Ir,xA]),Bh,Gf={colWidths:Qs,columCount:$a.length,stickyOffsets:El,onHeaderRow:Ui,fixHeader:ol,scroll:ur},bl=S.useMemo(function(){return Tn?null:typeof $n=="function"?$n():$n},[Tn,$n]),Nu=S.createElement(Lr,{data:ni,measureColumnWidth:ol||Ms||xA}),mf=S.createElement(En,{colWidths:$a.map(function(Ao){var vo=Ao.width;return vo}),columns:$a}),id=Pn!=null?S.createElement("caption",{className:"".concat(At,"-caption")},Pn):void 0,gf=(0,mt.Z)(Ye,{data:!0}),UA=(0,mt.Z)(Ye,{aria:!0});if(ol||xA){var Au;typeof ha=="function"?(Au=ha(ni,{scrollbarSize:rd,ref:Hn,onScroll:SA}),Gf.colWidths=$a.map(function(Ao,vo){var tA=Ao.width,uu=vo===$a.length-1?tA-rd:tA;return typeof uu=="number"&&!Number.isNaN(uu)?uu:0})):Au=S.createElement("div",{style:(0,Pe.Z)((0,Pe.Z)({},Wl),el),onScroll:SA,ref:Hn,className:D()("".concat(At,"-body"))},S.createElement(pf,(0,$.Z)({style:(0,Pe.Z)((0,Pe.Z)({},CA),{},{tableLayout:Ch})},UA),id,mf,Nu,!Ll&&ds&&S.createElement(Se,{stickyOffsets:El,flattenColumns:$a,columns:ja},ds)));var fs=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({noData:!ni.length,maxContentScroll:Ms&&al==="max-content"},Gf),Wc),{},{direction:hr,stickyClassName:Vo,onScroll:SA});Bh=S.createElement(S.Fragment,null,Mn!==!1&&S.createElement(bi,(0,$.Z)({},fs,{stickyTopOffset:uf,className:"".concat(At,"-header"),ref:Uc}),hf),Au,Ll&&Ll!=="top"&&S.createElement(bi,(0,$.Z)({},fs,{stickyBottomOffset:zf,className:"".concat(At,"-summary"),ref:Du}),Wf),xA&&S.createElement(Gt,{ref:wA,offsetScroll:no,scrollBodyRef:Hn,onScroll:SA,container:Vl}))}else Bh=S.createElement("div",{style:(0,Pe.Z)((0,Pe.Z)({},Wl),el),className:D()("".concat(At,"-content")),onScroll:SA,ref:Hn},S.createElement(pf,(0,$.Z)({style:(0,Pe.Z)((0,Pe.Z)({},CA),{},{tableLayout:Ch})},UA),id,mf,Mn!==!1&&S.createElement(aa,(0,$.Z)({},Gf,Wc)),Nu,ds&&S.createElement(Se,{stickyOffsets:El,flattenColumns:$a,columns:ja},ds)));var Qc=S.createElement("div",(0,$.Z)({className:D()(At,xt,(xe={},(0,q.Z)(xe,"".concat(At,"-rtl"),hr==="rtl"),(0,q.Z)(xe,"".concat(At,"-ping-left"),ko),(0,q.Z)(xe,"".concat(At,"-ping-right"),Bl),(0,q.Z)(xe,"".concat(At,"-layout-fixed"),Ir==="fixed"),(0,q.Z)(xe,"".concat(At,"-fixed-header"),ol),(0,q.Z)(xe,"".concat(At,"-fixed-column"),Bc),(0,q.Z)(xe,"".concat(At,"-scroll-horizontal"),Ms),(0,q.Z)(xe,"".concat(At,"-has-fix-left"),$a[0]&&$a[0].fixed),(0,q.Z)(xe,"".concat(At,"-has-fix-right"),$a[$a.length-1]&&$a[$a.length-1].fixed==="right"),xe)),style:Vt,id:xn,ref:Rs},gf),en&&S.createElement(On,{className:"".concat(At,"-title")},en(ni)),S.createElement("div",{ref:uc,className:"".concat(At,"-container")},Bh),$r&&S.createElement(On,{className:"".concat(At,"-footer")},$r(ni)));Ms&&(Qc=S.createElement(Qe.Z,{onResize:$f},Qc));var Xl=zr($a,El,hr,ja),Ou=S.useMemo(function(){return{scrollX:al,prefixCls:At,getComponent:Qi,scrollbarSize:rd,direction:hr,fixedInfoList:Xl,isSticky:xA,supportSticky:Hr,componentWidth:Li,fixHeader:ol,fixColumn:Bc,horizonScroll:Ms,tableLayout:Ch,rowClassName:bt,expandedRowClassName:pa.expandedRowClassName,expandIcon:es,expandableType:sl,expandRowByClick:pa.expandRowByClick,expandedRowRender:pa.expandedRowRender,onTriggerExpand:xc,expandIconColumnIndex:pa.expandIconColumnIndex,indentSize:pa.indentSize,allColumnsFixedLeft:$a.every(function(Ao){return Ao.fixed==="left"}),emptyNode:bl,columns:ja,flattenColumns:$a,onColumnResize:df,hoverStartRow:Qa,hoverEndRow:qo,onHover:so,rowExpandable:pa.rowExpandable,onRow:Ni,getRowKey:Na,expandedKeys:po,childrenColumnName:ns}},[al,At,Qi,rd,hr,Xl,xA,Hr,Li,ol,Bc,Ms,Ch,bt,pa.expandedRowClassName,es,sl,pa.expandRowByClick,pa.expandedRowRender,xc,pa.expandIconColumnIndex,pa.indentSize,bl,ja,$a,df,Qa,qo,so,pa.rowExpandable,Ni,Na,po,ns]);return S.createElement(j.Provider,{value:Ou},Qc)}function Bi(de){return ae(ti,de)}var Yn=Bi();Yn.EXPAND_COLUMN=ve,Yn.INTERNAL_HOOKS=ue,Yn.Column=Zt,Yn.ColumnGroup=Fr,Yn.Summary=H;var jn=Yn,yi=x(48911),vi=I(null),wi=I(null);function li(de,xe,Ye){var At=xe||1;return Ye[de+At]-(Ye[de]||0)}function xi(de){var xe=de.rowInfo,Ye=de.column,At=de.colIndex,xt=de.indent,bt=de.index,Vt=de.renderIndex,zt=de.record,Ht=de.style,ur=de.className,Ir=de.inverse,hr=de.getHeight,en=Ye.render,$r=Ye.dataIndex,Jr=Ye.className,Pn=Ye.width,xn=g(wi,["columnsOffset"]),Mn=xn.columnsOffset,Cn=ct(xe,Ye,At,xt,bt),$n=Cn.key,Ni=Cn.fixedInfo,Ui=Cn.appendCellNode,ui=Cn.additionalCellProps,qi=ui.style,ya=ui.colSpan,Jn=ya===void 0?1:ya,mi=ui.rowSpan,ni=mi===void 0?1:mi,Tn=At-1,ii=li(Tn,Jn,Mn),Qi=Jn>1?Pn-ii:0,Na=(0,Pe.Z)((0,Pe.Z)((0,Pe.Z)({},qi),Ht),{},{flex:"0 0 ".concat(ii,"px"),width:"".concat(ii,"px"),marginRight:Qi,pointerEvents:"auto"}),ha=S.useMemo(function(){return Ir?ni<=1:Jn===0||ni===0||ni>1},[ni,Jn,Ir]);ha?Na.visibility="hidden":Ir&&(Na.height=hr==null?void 0:hr(ni));var Ki=ha?function(){return null}:en,Ea={};return(ni===0||Jn===0)&&(Ea.rowSpan=1,Ea.colSpan=1),S.createElement(cr,(0,$.Z)({className:D()(Jr,ur),ellipsis:Ye.ellipsis,align:Ye.align,scope:Ye.rowScope,component:"div",prefixCls:xe.prefixCls,key:$n,record:zt,index:bt,renderIndex:Vt,dataIndex:$r,render:Ki,shouldCellUpdate:Ye.shouldCellUpdate},Ni,{appendNode:Ui,additionalProps:(0,Pe.Z)((0,Pe.Z)({},ui),{},{style:Na},Ea)}))}var $i=xi,ei=["data","index","className","rowKey","style","extra","getHeight"],Di=S.forwardRef(function(de,xe){var Ye=de.data,At=de.index,xt=de.className,bt=de.rowKey,Vt=de.style,zt=de.extra,Ht=de.getHeight,ur=(0,Xe.Z)(de,ei),Ir=Ye.record,hr=Ye.indent,en=Ye.index,$r=g(j,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),Jr=$r.scrollX,Pn=$r.flattenColumns,xn=$r.prefixCls,Mn=$r.fixColumn,Cn=$r.componentWidth,$n=Le(Ir,bt,At,hr),Ni=$n.rowSupportExpand,Ui=$n.expanded,ui=$n.rowProps,qi=$n.expandedRowRender,ya=$n.expandedRowClassName,Jn;if(Ni&&Ui){var mi=qi(Ir,At,hr+1,Ui),ni=ya==null?void 0:ya(Ir,At,hr),Tn={};Mn&&(Tn={style:(0,q.Z)({},"--virtual-width","".concat(Cn,"px"))});var ii="".concat(xn,"-expanded-row-cell");Jn=S.createElement("div",{className:D()("".concat(xn,"-expanded-row"),"".concat(xn,"-expanded-row-level-").concat(hr+1),ni)},S.createElement(cr,{component:"div",prefixCls:xn,className:D()(ii,(0,q.Z)({},"".concat(ii,"-fixed"),Mn)),additionalProps:Tn},mi))}var Qi=(0,Pe.Z)((0,Pe.Z)({},Vt),{},{width:Jr});zt&&(Qi.position="absolute",Qi.pointerEvents="none");var Na=S.createElement("div",(0,$.Z)({},ui,ur,{ref:Ni?null:xe,className:D()(xt,"".concat(xn,"-row"),ui==null?void 0:ui.className,(0,q.Z)({},"".concat(xn,"-row-extra"),zt)),style:(0,Pe.Z)((0,Pe.Z)({},Qi),ui==null?void 0:ui.style)}),Pn.map(function(ha,Ki){return S.createElement($i,{key:Ki,rowInfo:$n,column:ha,colIndex:Ki,indent:hr,index:At,renderIndex:en,record:Ir,inverse:zt,getHeight:Ht})}));return Ni?S.createElement("div",{ref:xe},Na,Jn):Na}),Ha=ie(Di),oi=Ha,hn=S.forwardRef(function(de,xe){var Ye=de.data,At=de.onScroll,xt=g(j,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","emptyNode","scrollX"]),bt=xt.flattenColumns,Vt=xt.onColumnResize,zt=xt.getRowKey,Ht=xt.expandedKeys,ur=xt.prefixCls,Ir=xt.childrenColumnName,hr=xt.emptyNode,en=xt.scrollX,$r=g(vi),Jr=$r.scrollY,Pn=$r.listItemHeight,xn=S.useRef(),Mn=st(Ye,Ir,Ht,zt),Cn=S.useMemo(function(){var Jn=0;return bt.map(function(mi){var ni=mi.width,Tn=mi.key;return Jn+=ni,[Tn,ni,Jn]})},[bt]),$n=S.useMemo(function(){return Cn.map(function(Jn){return Jn[2]})},[Cn]);S.useEffect(function(){Cn.forEach(function(Jn){var mi=(0,T.Z)(Jn,2),ni=mi[0],Tn=mi[1];Vt(ni,Tn)})},[Cn]),S.useImperativeHandle(xe,function(){var Jn={};return Object.defineProperty(Jn,"scrollLeft",{get:function(){var ni;return((ni=xn.current)===null||ni===void 0?void 0:ni.getScrollInfo().x)||0},set:function(ni){var Tn;(Tn=xn.current)===null||Tn===void 0||Tn.scrollTo({left:ni})}}),Jn});var Ni=function(mi,ni){var Tn,ii=(Tn=Mn[ni])===null||Tn===void 0?void 0:Tn.record,Qi=mi.onCell;if(Qi){var Na,ha=Qi(ii,ni);return(Na=ha==null?void 0:ha.rowSpan)!==null&&Na!==void 0?Na:1}return 1},Ui=function(mi){var ni=mi.start,Tn=mi.end,ii=mi.getSize,Qi=mi.offsetY;if(Tn<0)return null;for(var Na=bt.filter(function(ai){return Ni(ai,ni)===0}),ha=ni,Ki=function(Hi){if(Na=Na.filter(function(Ri){return Ni(Ri,Hi)===0}),!Na.length)return ha=Hi,"break"},Ea=ni;Ea>=0;Ea-=1){var Qa=Ki(Ea);if(Qa==="break")break}for(var qo=bt.filter(function(ai){return Ni(ai,Tn)!==1}),so=Tn,gs=function(Hi){if(qo=qo.filter(function(Ri){return Ni(Ri,Hi)!==1}),!qo.length)return so=Math.max(Hi-1,Tn),"break"},As=Tn;As<Mn.length;As+=1){var pa=gs(As);if(pa==="break")break}for(var sl=[],po=function(Hi){var Ri=Mn[Hi];if(!Ri)return"continue";bt.some(function(Li){return Ni(Li,Hi)>1})&&sl.push(Hi)},es=ha;es<=so;es+=1)var ns=po(es);var xc=sl.map(function(ai){var Hi=Mn[ai],Ri=zt(Hi.record,ai),Li=function(la){var ja=ai+la-1,$a=zt(Mn[ja].record,ja),Fl=ii(Ri,$a);return Fl.bottom-Fl.top},go=ii(Ri);return S.createElement(oi,{key:ai,data:Hi,rowKey:Ri,index:ai,style:{top:-Qi+go.top},extra:!0,getHeight:Li})});return xc},ui=S.useMemo(function(){return{columnsOffset:$n}},[$n]),qi="".concat(ur,"-tbody"),ya;return Mn.length?ya=S.createElement(yi.Z,{fullHeight:!1,ref:xn,className:D()(qi,"".concat(qi,"-virtual")),height:Jr,itemHeight:Pn||24,data:Mn,itemKey:function(mi){return zt(mi.record)},scrollWidth:en,onVirtualScroll:function(mi){var ni=mi.x;At({scrollLeft:ni})},extraRender:Ui},function(Jn,mi,ni){var Tn=zt(Jn.record,mi);return S.createElement(oi,(0,$.Z)({data:Jn,rowKey:Tn,index:mi},ni))}):ya=S.createElement("div",{className:D()("".concat(ur,"-placeholder"))},S.createElement(cr,{component:"div",prefixCls:ur},hr)),S.createElement(wi.Provider,{value:ui},ya)}),ln=ie(hn),Xn=ln,Kn=function(xe,Ye){var At=Ye.ref,xt=Ye.onScroll;return S.createElement(Xn,{ref:At,data:xe,onScroll:xt})},Ai=100;function Wi(de){var xe=de.columns,Ye=de.scroll,At=de.prefixCls,xt=At===void 0?Xr:At,bt=de.className,Vt=de.listItemHeight,zt=Ye||{},Ht=zt.x,ur=zt.y;typeof Ht!="number"&&(Ht=((xe||[]).length+1)*Ai),typeof ur!="number"&&(ur=500);var Ir=S.useMemo(function(){return{scrollY:ur,listItemHeight:Vt}},[ur,Vt]);return S.createElement(vi.Provider,{value:Ir},S.createElement(jn,(0,$.Z)({},de,{className:D()(bt,"".concat(xt,"-virtual")),scroll:(0,Pe.Z)((0,Pe.Z)({},Ye),{},{x:Ht}),components:{body:Kn},columns:xe,internalHooks:ue,tailor:!0})))}function _i(de){return ae(Wi,de)}var Ua=_i(),ca=null;function Bo(de){return null}var Wn=Bo;function _n(de){return null}var Mi=_n,Zi=x(2738),Ia=x(68031),Is=x(36355),za=x(93891),da=x(19716),Fo=x(8628),So=x(31724),Uo=x(58421),Ps=x(71418),ho=x(88088);function vs(de){return function(Ye){let{prefixCls:At,onExpand:xt,record:bt,expanded:Vt,expandable:zt}=Ye;const Ht=`${At}-row-expand-icon`;return S.createElement("button",{type:"button",onClick:ur=>{xt(bt,ur),ur.stopPropagation()},className:D()(Ht,{[`${Ht}-spaced`]:!zt,[`${Ht}-expanded`]:zt&&Vt,[`${Ht}-collapsed`]:zt&&!Vt}),"aria-label":Vt?de.collapse:de.expand,"aria-expanded":Vt})}}var Ts=vs;function Ws(de,xe){return"key"in de&&de.key!==void 0&&de.key!==null?de.key:de.dataIndex?Array.isArray(de.dataIndex)?de.dataIndex.join("."):de.dataIndex:xe}function Ro(de,xe){return xe?`${xe}-${de}`:`${de}`}function Qo(de,xe){return typeof de=="function"?de(xe):de}function bs(de,xe){const Ye=Qo(de,xe);return Object.prototype.toString.call(Ye)==="[object Object]"?"":Ye}var rl={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=rl,nc=x(7657),ic=function(xe,Ye){return S.createElement(nc.Z,(0,$.Z)({},xe,{ref:Ye,icon:vl}))},Ql=S.forwardRef(ic),Gs=Ql,Dc=x(56762);function Kl(de){const xe=S.useRef(de),Ye=(0,Dc.Z)();return[()=>xe.current,At=>{xe.current=At,Ye()}]}var Hl=x(3113),Xs=x(24905),os=x(38854),ri=x(64165),sa=x(20834),Xi=x(40875),ra=x(5112),Da=x(17574),oo=x(47472),Js=x(92832);function ys(de){let{value:xe,onChange:Ye,filterSearch:At,tablePrefixCls:xt,locale:bt}=de;return At?S.createElement("div",{className:`${xt}-filter-dropdown-search`},S.createElement(Js.default,{prefix:S.createElement(oo.Z,null),placeholder:bt.filterSearchPlaceholder,onChange:Ye,value:xe,htmlSize:1,className:`${xt}-filter-dropdown-search-input`})):null}var ws=ys,ps=x(10228);const eo=de=>{const{keyCode:xe}=de;xe===ps.Z.ENTER&&de.stopPropagation()};var ss=S.forwardRef((de,xe)=>S.createElement("div",{className:de.className,onClick:Ye=>Ye.stopPropagation(),onKeyDown:eo,ref:xe},de.children));function ls(de){let xe=[];return(de||[]).forEach(Ye=>{let{value:At,children:xt}=Ye;xe.push(At),xt&&(xe=[].concat((0,gn.Z)(xe),(0,gn.Z)(ls(xt))))}),xe}function Fs(de){return de.some(xe=>{let{children:Ye}=xe;return Ye})}function Xo(de,xe){return typeof xe=="string"||typeof xe=="number"?xe==null?void 0:xe.toString().toLowerCase().includes(de.trim().toLowerCase()):!1}function Mo(de){let{filters:xe,prefixCls:Ye,filteredKeys:At,filterMultiple:xt,searchValue:bt,filterSearch:Vt}=de;return xe.map((zt,Ht)=>{const ur=String(zt.value);if(zt.children)return{key:ur||Ht,label:zt.text,popupClassName:`${Ye}-dropdown-submenu`,children:Mo({filters:zt.children,prefixCls:Ye,filteredKeys:At,filterMultiple:xt,searchValue:bt,filterSearch:Vt})};const Ir=xt?Xs.default:ra.ZP,hr={key:zt.value!==void 0?ur:Ht,label:S.createElement(S.Fragment,null,S.createElement(Ir,{checked:At.includes(ur)}),S.createElement("span",null,zt.text))};return bt.trim()?typeof Vt=="function"?Vt(bt,zt)?hr:null:Xo(bt,zt.text)?hr:null:hr})}function hA(de){var xe,Ye;const{tablePrefixCls:At,prefixCls:xt,column:bt,dropdownPrefixCls:Vt,columnKey:zt,filterMultiple:Ht,filterMode:ur="menu",filterSearch:Ir=!1,filterState:hr,triggerFilter:en,locale:$r,children:Jr,getPopupContainer:Pn}=de,{filterDropdownOpen:xn,onFilterDropdownOpenChange:Mn,filterResetToDefaultFilteredValue:Cn,defaultFilteredValue:$n,filterDropdownVisible:Ni,onFilterDropdownVisibleChange:Ui}=bt,[ui,qi]=S.useState(!1),ya=!!(hr&&(!((xe=hr.filteredKeys)===null||xe===void 0)&&xe.length||hr.forceFiltered)),Jn=ki=>{qi(ki),Mn==null||Mn(ki),Ui==null||Ui(ki)},mi=(Ye=xn!=null?xn:Ni)!==null&&Ye!==void 0?Ye:ui,ni=hr==null?void 0:hr.filteredKeys,[Tn,ii]=Kl(ni||[]),Qi=ki=>{let{selectedKeys:la}=ki;ii(la)},Na=(ki,la)=>{let{node:ja,checked:$a}=la;Qi(Ht?{selectedKeys:ki}:{selectedKeys:$a&&ja.key?[ja.key]:[]})};S.useEffect(()=>{ui&&Qi({selectedKeys:ni||[]})},[ni]);const[ha,Ki]=S.useState([]),Ea=ki=>{Ki(ki)},[Qa,qo]=S.useState(""),so=ki=>{const{value:la}=ki.target;qo(la)};S.useEffect(()=>{ui||qo("")},[ui]);const gs=ki=>{const la=ki&&ki.length?ki:null;if(la===null&&(!hr||!hr.filteredKeys)||(0,W.Z)(la,hr==null?void 0:hr.filteredKeys,!0))return null;en({column:bt,key:zt,filteredKeys:la})},As=()=>{Jn(!1),gs(Tn())},pa=function(){let{confirm:ki,closeDropdown:la}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{confirm:!1,closeDropdown:!1};ki&&gs([]),la&&Jn(!1),qo(""),ii(Cn?($n||[]).map(ja=>String(ja)):[])},sl=function(){let{closeDropdown:ki}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{closeDropdown:!0};ki&&Jn(!1),gs(Tn())},po=ki=>{ki&&ni!==void 0&&ii(ni||[]),Jn(ki),!ki&&!bt.filterDropdown&&As()},es=D()({[`${Vt}-menu-without-submenu`]:!Fs(bt.filters||[])}),ns=ki=>{if(ki.target.checked){const la=ls(bt==null?void 0:bt.filters).map(ja=>String(ja));ii(la)}else ii([])},xc=ki=>{let{filters:la}=ki;return(la||[]).map((ja,$a)=>{const Fl=String(ja.value),al={title:ja.text,key:ja.value!==void 0?Fl:$a};return ja.children&&(al.children=xc({filters:ja.children})),al})},ai=ki=>{var la;return Object.assign(Object.assign({},ki),{text:ki.title,value:ki.key,children:((la=ki.children)===null||la===void 0?void 0:la.map(ja=>ai(ja)))||[]})};let Hi;if(typeof bt.filterDropdown=="function")Hi=bt.filterDropdown({prefixCls:`${Vt}-custom`,setSelectedKeys:ki=>Qi({selectedKeys:ki}),selectedKeys:Tn(),confirm:sl,clearFilters:pa,filters:bt.filters,visible:mi,close:()=>{Jn(!1)}});else if(bt.filterDropdown)Hi=bt.filterDropdown;else{const ki=Tn()||[],la=()=>(bt.filters||[]).length===0?S.createElement(ri.Z,{image:ri.Z.PRESENTED_IMAGE_SIMPLE,description:$r.filterEmptyText,imageStyle:{height:24},style:{margin:0,padding:"16px 0"}}):ur==="tree"?S.createElement(S.Fragment,null,S.createElement(ws,{filterSearch:Ir,value:Qa,onChange:so,tablePrefixCls:At,locale:$r}),S.createElement("div",{className:`${At}-filter-dropdown-tree`},Ht?S.createElement(Xs.default,{checked:ki.length===ls(bt.filters).length,indeterminate:ki.length>0&&ki.length<ls(bt.filters).length,className:`${At}-filter-dropdown-checkall`,onChange:ns},$r.filterCheckall):null,S.createElement(Da.default,{checkable:!0,selectable:!1,blockNode:!0,multiple:Ht,checkStrictly:!Ht,className:`${Vt}-menu`,onCheck:Na,checkedKeys:ki,selectedKeys:ki,showIcon:!1,treeData:xc({filters:bt.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:Qa.trim()?$a=>typeof Ir=="function"?Ir(Qa,ai($a)):Xo(Qa,$a.title):void 0}))):S.createElement(S.Fragment,null,S.createElement(ws,{filterSearch:Ir,value:Qa,onChange:so,tablePrefixCls:At,locale:$r}),S.createElement(sa.default,{selectable:!0,multiple:Ht,prefixCls:`${Vt}-menu`,className:es,onSelect:Qi,onDeselect:Qi,selectedKeys:ki,getPopupContainer:Pn,openKeys:ha,onOpenChange:Ea,items:Mo({filters:bt.filters||[],filterSearch:Ir,prefixCls:xt,filteredKeys:Tn(),filterMultiple:Ht,searchValue:Qa})})),ja=()=>Cn?(0,W.Z)(($n||[]).map($a=>String($a)),ki,!0):ki.length===0;Hi=S.createElement(S.Fragment,null,la(),S.createElement("div",{className:`${xt}-dropdown-btns`},S.createElement(Hl.ZP,{type:"link",size:"small",disabled:ja(),onClick:()=>pa()},$r.filterReset),S.createElement(Hl.ZP,{type:"primary",size:"small",onClick:As},$r.filterConfirm)))}bt.filterDropdown&&(Hi=S.createElement(Xi.J,{selectable:void 0},Hi));const Ri=()=>S.createElement(ss,{className:`${xt}-dropdown`},Hi);let Li;typeof bt.filterIcon=="function"?Li=bt.filterIcon(ya):bt.filterIcon?Li=bt.filterIcon:Li=S.createElement(Gs,null);const{direction:go}=S.useContext(Is.E_);return S.createElement("div",{className:`${xt}-column`},S.createElement("span",{className:`${At}-column-title`},Jr),S.createElement(os.Z,{dropdownRender:Ri,trigger:["click"],open:mi,onOpenChange:po,getPopupContainer:Pn,placement:go==="rtl"?"bottomLeft":"bottomRight"},S.createElement("span",{role:"button",tabIndex:-1,className:D()(`${xt}-trigger`,{active:ya}),onClick:ki=>{ki.stopPropagation()}},Li)))}var au=hA;function cc(de,xe,Ye){let At=[];return(de||[]).forEach((xt,bt)=>{var Vt;const zt=Ro(bt,Ye);if(xt.filters||"filterDropdown"in xt||"onFilter"in xt)if("filteredValue"in xt){let Ht=xt.filteredValue;"filterDropdown"in xt||(Ht=(Vt=Ht==null?void 0:Ht.map(String))!==null&&Vt!==void 0?Vt:Ht),At.push({column:xt,key:Ws(xt,zt),filteredKeys:Ht,forceFiltered:xt.filtered})}else At.push({column:xt,key:Ws(xt,zt),filteredKeys:xe&&xt.defaultFilteredValue?xt.defaultFilteredValue:void 0,forceFiltered:xt.filtered});"children"in xt&&(At=[].concat((0,gn.Z)(At),(0,gn.Z)(cc(xt.children,xe,zt))))}),At}function pA(de,xe,Ye,At,xt,bt,Vt,zt){return Ye.map((Ht,ur)=>{const Ir=Ro(ur,zt),{filterMultiple:hr=!0,filterMode:en,filterSearch:$r}=Ht;let Jr=Ht;if(Jr.filters||Jr.filterDropdown){const Pn=Ws(Jr,Ir),xn=At.find(Mn=>{let{key:Cn}=Mn;return Pn===Cn});Jr=Object.assign(Object.assign({},Jr),{title:Mn=>S.createElement(au,{tablePrefixCls:de,prefixCls:`${de}-filter`,dropdownPrefixCls:xe,column:Jr,columnKey:Pn,filterState:xn,filterMultiple:hr,filterMode:en,filterSearch:$r,triggerFilter:bt,locale:xt,getPopupContainer:Vt},Qo(Ht.title,Mn))})}return"children"in Jr&&(Jr=Object.assign(Object.assign({},Jr),{children:pA(de,xe,Jr.children,At,xt,bt,Vt,Ir)})),Jr})}function Al(de){const xe={};return de.forEach(Ye=>{let{key:At,filteredKeys:xt,column:bt}=Ye;const{filters:Vt,filterDropdown:zt}=bt;if(zt)xe[At]=xt||null;else if(Array.isArray(xt)){const Ht=ls(Vt);xe[At]=Ht.filter(ur=>xt.includes(String(ur)))}else xe[At]=null}),xe}function mA(de,xe){return xe.reduce((Ye,At)=>{const{column:{onFilter:xt,filters:bt},filteredKeys:Vt}=At;return xt&&Vt&&Vt.length?Ye.filter(zt=>Vt.some(Ht=>{const ur=ls(bt),Ir=ur.findIndex(en=>String(en)===String(Ht)),hr=Ir!==-1?ur[Ir]:Ht;return xt(hr,zt)})):Ye},de)}const nl=de=>de.flatMap(xe=>"children"in xe?[xe].concat((0,gn.Z)(nl(xe.children||[]))):[xe]);function ms(de){let{prefixCls:xe,dropdownPrefixCls:Ye,mergedColumns:At,onFilterChange:xt,getPopupContainer:bt,locale:Vt}=de;const zt=S.useMemo(()=>nl(At||[]),[At]),[Ht,ur]=S.useState(()=>cc(zt,!0)),Ir=S.useMemo(()=>{const Jr=cc(zt,!1);if(Jr.length===0)return Jr;let Pn=!0,xn=!0;if(Jr.forEach(Mn=>{let{filteredKeys:Cn}=Mn;Cn!==void 0?Pn=!1:xn=!1}),Pn){const Mn=(zt||[]).map((Cn,$n)=>Ws(Cn,Ro($n)));return Ht.filter(Cn=>{let{key:$n}=Cn;return Mn.includes($n)}).map(Cn=>{const $n=zt[Mn.findIndex(Ni=>Ni===Cn.key)];return Object.assign(Object.assign({},Cn),{column:Object.assign(Object.assign({},Cn.column),$n),forceFiltered:$n.filtered})})}return Jr},[zt,Ht]),hr=S.useMemo(()=>Al(Ir),[Ir]),en=Jr=>{const Pn=Ir.filter(xn=>{let{key:Mn}=xn;return Mn!==Jr.key});Pn.push(Jr),ur(Pn),xt(Al(Pn),Pn)};return[Jr=>pA(xe,Ye,Jr,Ir,Vt,en,bt),Ir,hr]}var Yc=ms;function Us(de,xe,Ye){const At=S.useRef({});function xt(bt){if(!At.current||At.current.data!==de||At.current.childrenColumnName!==xe||At.current.getRowKey!==Ye){let zt=function(Ht){Ht.forEach((ur,Ir)=>{const hr=Ye(ur,Ir);Vt.set(hr,ur),ur&&typeof ur=="object"&&xe in ur&&zt(ur[xe]||[])})};const Vt=new Map;zt(de),At.current={data:de,childrenColumnName:xe,kvMap:Vt,getRowKey:Ye}}return At.current.kvMap.get(bt)}return[xt]}var OA=x(50371),Ac=function(de,xe){var Ye={};for(var At in de)Object.prototype.hasOwnProperty.call(de,At)&&xe.indexOf(At)<0&&(Ye[At]=de[At]);if(de!=null&&typeof Object.getOwnPropertySymbols=="function")for(var xt=0,At=Object.getOwnPropertySymbols(de);xt<At.length;xt++)xe.indexOf(At[xt])<0&&Object.prototype.propertyIsEnumerable.call(de,At[xt])&&(Ye[At[xt]]=de[At[xt]]);return Ye};const jl=10;function to(de,xe){const Ye={current:de.current,pageSize:de.pageSize};return Object.keys(xe&&typeof xe=="object"?xe:{}).forEach(xt=>{const bt=de[xt];typeof bt!="function"&&(Ye[xt]=bt)}),Ye}function Ys(de,xe,Ye){const At=Ye&&typeof Ye=="object"?Ye:{},{total:xt=0}=At,bt=Ac(At,["total"]),[Vt,zt]=(0,S.useState)(()=>({current:"defaultCurrent"in bt?bt.defaultCurrent:1,pageSize:"defaultPageSize"in bt?bt.defaultPageSize:jl})),Ht=(0,OA.Z)(Vt,bt,{total:xt>0?xt:de}),ur=Math.ceil((xt||de)/Ht.pageSize);Ht.current>ur&&(Ht.current=ur||1);const Ir=(en,$r)=>{zt({current:en!=null?en:1,pageSize:$r||Ht.pageSize})},hr=(en,$r)=>{var Jr;Ye&&((Jr=Ye.onChange)===null||Jr===void 0||Jr.call(Ye,en,$r)),Ir(en,$r),xe(en,$r||(Ht==null?void 0:Ht.pageSize))};return Ye===!1?[{},()=>{}]:[Object.assign(Object.assign({},Ht),{onChange:hr}),Ir]}var gA=Ys,Fu=x(84105),cs=x(35654),xa=x(90782),ba=x(71430),rs=x(18929);const mo={},zo="SELECT_ALL",$o="SELECT_INVERT",Oo="SELECT_NONE",xs=[],ac=(de,xe)=>{let Ye=[];return(xe||[]).forEach(At=>{Ye.push(At),At&&typeof At=="object"&&de in At&&(Ye=[].concat((0,gn.Z)(Ye),(0,gn.Z)(ac(de,At[de]))))}),Ye};var qs=(de,xe)=>{const{preserveSelectedRowKeys:Ye,selectedRowKeys:At,defaultSelectedRowKeys:xt,getCheckboxProps:bt,onChange:Vt,onSelect:zt,onSelectAll:Ht,onSelectInvert:ur,onSelectNone:Ir,onSelectMultiple:hr,columnWidth:en,type:$r,selections:Jr,fixed:Pn,renderCell:xn,hideSelectAll:Mn,checkStrictly:Cn=!0}=xe||{},{prefixCls:$n,data:Ni,pageData:Ui,getRecordByKey:ui,getRowKey:qi,expandType:ya,childrenColumnName:Jn,locale:mi,getPopupContainer:ni}=de,[Tn,ii]=(0,rs.Z)(At||xt||xs,{value:At}),Qi=S.useRef(new Map),Na=(0,S.useCallback)(ai=>{if(Ye){const Hi=new Map;ai.forEach(Ri=>{let Li=ui(Ri);!Li&&Qi.current.has(Ri)&&(Li=Qi.current.get(Ri)),Hi.set(Ri,Li)}),Qi.current=Hi}},[ui,Ye]);S.useEffect(()=>{Na(Tn)},[Tn]);const{keyEntities:ha}=(0,S.useMemo)(()=>{if(Cn)return{keyEntities:null};let ai=Ni;if(Ye){const Hi=new Set(Ni.map((Li,go)=>qi(Li,go))),Ri=Array.from(Qi.current).reduce((Li,go)=>{let[ki,la]=go;return Hi.has(ki)?Li:Li.concat(la)},[]);ai=[].concat((0,gn.Z)(ai),(0,gn.Z)(Ri))}return(0,ba.I8)(ai,{externalGetKey:qi,childrenPropName:Jn})},[Ni,qi,Cn,Jn,Ye]),Ki=(0,S.useMemo)(()=>ac(Jn,Ui),[Jn,Ui]),Ea=(0,S.useMemo)(()=>{const ai=new Map;return Ki.forEach((Hi,Ri)=>{const Li=qi(Hi,Ri),go=(bt?bt(Hi):null)||{};ai.set(Li,go)}),ai},[Ki,qi,bt]),Qa=(0,S.useCallback)(ai=>{var Hi;return!!(!((Hi=Ea.get(qi(ai)))===null||Hi===void 0)&&Hi.disabled)},[Ea,qi]),[qo,so]=(0,S.useMemo)(()=>{if(Cn)return[Tn||[],[]];const{checkedKeys:ai,halfCheckedKeys:Hi}=(0,xa.S)(Tn,!0,ha,Qa);return[ai||[],Hi]},[Tn,Cn,ha,Qa]),gs=(0,S.useMemo)(()=>{const ai=$r==="radio"?qo.slice(0,1):qo;return new Set(ai)},[qo,$r]),As=(0,S.useMemo)(()=>$r==="radio"?new Set:new Set(so),[so,$r]),[pa,sl]=(0,S.useState)(null);S.useEffect(()=>{xe||ii(xs)},[!!xe]);const po=(0,S.useCallback)((ai,Hi)=>{let Ri,Li;Na(ai),Ye?(Ri=ai,Li=ai.map(go=>Qi.current.get(go))):(Ri=[],Li=[],ai.forEach(go=>{const ki=ui(go);ki!==void 0&&(Ri.push(go),Li.push(ki))})),ii(Ri),Vt==null||Vt(Ri,Li,{type:Hi})},[ii,ui,Vt,Ye]),es=(0,S.useCallback)((ai,Hi,Ri,Li)=>{if(zt){const go=Ri.map(ki=>ui(ki));zt(ui(ai),Hi,go,Li)}po(Ri,"single")},[zt,ui,po]),ns=(0,S.useMemo)(()=>!Jr||Mn?null:(Jr===!0?[zo,$o,Oo]:Jr).map(Hi=>Hi===zo?{key:"all",text:mi.selectionAll,onSelect(){po(Ni.map((Ri,Li)=>qi(Ri,Li)).filter(Ri=>{const Li=Ea.get(Ri);return!(Li!=null&&Li.disabled)||gs.has(Ri)}),"all")}}:Hi===$o?{key:"invert",text:mi.selectInvert,onSelect(){const Ri=new Set(gs);Ui.forEach((go,ki)=>{const la=qi(go,ki),ja=Ea.get(la);ja!=null&&ja.disabled||(Ri.has(la)?Ri.delete(la):Ri.add(la))});const Li=Array.from(Ri);ur&&ur(Li),po(Li,"invert")}}:Hi===Oo?{key:"none",text:mi.selectNone,onSelect(){Ir==null||Ir(),po(Array.from(gs).filter(Ri=>{const Li=Ea.get(Ri);return Li==null?void 0:Li.disabled}),"none")}}:Hi).map(Hi=>Object.assign(Object.assign({},Hi),{onSelect:function(){for(var Ri,Li,go=arguments.length,ki=new Array(go),la=0;la<go;la++)ki[la]=arguments[la];(Li=Hi.onSelect)===null||Li===void 0||(Ri=Li).call.apply(Ri,[Hi].concat(ki)),sl(null)}})),[Jr,gs,Ui,qi,ur,po]);return[(0,S.useCallback)(ai=>{var Hi;if(!xe)return ai.filter(lo=>lo!==mo);let Ri=(0,gn.Z)(ai);const Li=new Set(gs),go=Ki.map(qi).filter(lo=>!Ea.get(lo).disabled),ki=go.every(lo=>Li.has(lo)),la=go.some(lo=>Li.has(lo)),ja=()=>{const lo=[];ki?go.forEach(ko=>{Li.delete(ko),lo.push(ko)}):go.forEach(ko=>{Li.has(ko)||(Li.add(ko),lo.push(ko))});const pn=Array.from(Li);Ht==null||Ht(!ki,pn.map(ko=>ui(ko)),lo.map(ko=>ui(ko))),po(pn,"all"),sl(null)};let $a;if($r!=="radio"){let lo;if(ns){const ea={getPopupContainer:ni,items:ns.map((Bl,Zl)=>{const{key:Rc,text:Cc,onSelect:Sl}=Bl;return{key:Rc!=null?Rc:Zl,onClick:()=>{Sl==null||Sl(go)},label:Cc}})};lo=S.createElement("div",{className:`${$n}-selection-extra`},S.createElement(os.Z,{menu:ea,getPopupContainer:ni},S.createElement("span",null,S.createElement(Fu.Z,null))))}const pn=Ki.map((ea,Bl)=>{const Zl=qi(ea,Bl),Rc=Ea.get(Zl)||{};return Object.assign({checked:Li.has(Zl)},Rc)}).filter(ea=>{let{disabled:Bl}=ea;return Bl}),ko=!!pn.length&&pn.length===Ki.length,ul=ko&&pn.every(ea=>{let{checked:Bl}=ea;return Bl}),us=ko&&pn.some(ea=>{let{checked:Bl}=ea;return Bl});$a=!Mn&&S.createElement("div",{className:`${$n}-selection`},S.createElement(Xs.default,{checked:ko?ul:!!Ki.length&&ki,indeterminate:ko?!ul&&us:!ki&&la,onChange:ja,disabled:Ki.length===0||ko,"aria-label":lo?"Custom selection":"Select all",skipGroup:!0}),lo)}let Fl;$r==="radio"?Fl=(lo,pn,ko)=>{const ul=qi(pn,ko),us=Li.has(ul);return{node:S.createElement(ra.ZP,Object.assign({},Ea.get(ul),{checked:us,onClick:ea=>ea.stopPropagation(),onChange:ea=>{Li.has(ul)||es(ul,!0,[ul],ea.nativeEvent)}})),checked:us}}:Fl=(lo,pn,ko)=>{var ul;const us=qi(pn,ko),ea=Li.has(us),Bl=As.has(us),Zl=Ea.get(us);let Rc;return ya==="nest"?Rc=Bl:Rc=(ul=Zl==null?void 0:Zl.indeterminate)!==null&&ul!==void 0?ul:Bl,{node:S.createElement(Xs.default,Object.assign({},Zl,{indeterminate:Rc,checked:ea,skipGroup:!0,onClick:Cc=>Cc.stopPropagation(),onChange:Cc=>{let{nativeEvent:Sl}=Cc;const{shiftKey:dl}=Sl;let cu=-1,Ml=-1;if(dl&&Cn){const Qs=new Set([pa,us]);go.some((El,ol)=>{if(Qs.has(El))if(cu===-1)cu=ol;else return Ml=ol,!0;return!1})}if(Ml!==-1&&cu!==Ml&&Cn){const Qs=go.slice(cu,Ml+1),El=[];ea?Qs.forEach(Ms=>{Li.has(Ms)&&(El.push(Ms),Li.delete(Ms))}):Qs.forEach(Ms=>{Li.has(Ms)||(El.push(Ms),Li.add(Ms))});const ol=Array.from(Li);hr==null||hr(!ea,ol.map(Ms=>ui(Ms)),El.map(Ms=>ui(Ms))),po(ol,"multiple")}else{const Qs=qo;if(Cn){const El=ea?(0,cs._5)(Qs,us):(0,cs.L0)(Qs,us);es(us,!ea,El,Sl)}else{const El=(0,xa.S)([].concat((0,gn.Z)(Qs),[us]),!0,ha,Qa),{checkedKeys:ol,halfCheckedKeys:Ms}=El;let Bc=ol;if(ea){const wA=new Set(ol);wA.delete(us),Bc=(0,xa.S)(Array.from(wA),{checked:!1,halfCheckedKeys:Ms},ha,Qa).checkedKeys}es(us,!ea,Bc,Sl)}}sl(ea?null:us)}})),checked:ea}};const al=(lo,pn,ko)=>{const{node:ul,checked:us}=Fl(lo,pn,ko);return xn?xn(us,pn,ko,ul):ul};if(!Ri.includes(mo))if(Ri.findIndex(lo=>{var pn;return((pn=lo[Ar])===null||pn===void 0?void 0:pn.columnType)==="EXPAND_COLUMN"})===0){const[lo,...pn]=Ri;Ri=[lo,mo].concat((0,gn.Z)(pn))}else Ri=[mo].concat((0,gn.Z)(Ri));const Wc=Ri.indexOf(mo);Ri=Ri.filter((lo,pn)=>lo!==mo||pn===Wc);const Rs=Ri[Wc-1],Uc=Ri[Wc+1];let Hn=Pn;Hn===void 0&&((Uc==null?void 0:Uc.fixed)!==void 0?Hn=Uc.fixed:(Rs==null?void 0:Rs.fixed)!==void 0&&(Hn=Rs.fixed)),Hn&&Rs&&((Hi=Rs[Ar])===null||Hi===void 0?void 0:Hi.columnType)==="EXPAND_COLUMN"&&Rs.fixed===void 0&&(Rs.fixed=Hn);const uc=D()(`${$n}-selection-col`,{[`${$n}-selection-col-with-dropdown`]:Jr&&$r==="checkbox"}),Du={fixed:Hn,width:en,className:`${$n}-selection-column`,title:xe.columnTitle||$a,render:al,onCell:xe.onCell,[Ar]:{className:uc}};return Ri.map(lo=>lo===mo?Du:lo)},[qi,Ki,xe,qo,gs,As,en,ns,ya,pa,Ea,hr,es,Qa]),gs]},vA=x(89489),wl=x(59477),qc=x(6848);const il="ascend",Fd="descend";function ou(de){return typeof de.sorter=="object"&&typeof de.sorter.multiple=="number"?de.sorter.multiple:!1}function $A(de){return typeof de=="function"?de:de&&typeof de=="object"&&de.compare?de.compare:!1}function sf(de,xe){return xe?de[de.indexOf(xe)+1]:de[0]}function Vc(de,xe,Ye){let At=[];function xt(bt,Vt){At.push({column:bt,key:Ws(bt,Vt),multiplePriority:ou(bt),sortOrder:bt.sortOrder})}return(de||[]).forEach((bt,Vt)=>{const zt=Ro(Vt,Ye);bt.children?("sortOrder"in bt&&xt(bt,zt),At=[].concat((0,gn.Z)(At),(0,gn.Z)(Vc(bt.children,xe,zt)))):bt.sorter&&("sortOrder"in bt?xt(bt,zt):xe&&bt.defaultSortOrder&&At.push({column:bt,key:Ws(bt,zt),multiplePriority:ou(bt),sortOrder:bt.defaultSortOrder}))}),At}function Gu(de,xe,Ye,At,xt,bt,Vt,zt){return(xe||[]).map((Ht,ur)=>{const Ir=Ro(ur,zt);let hr=Ht;if(hr.sorter){const en=hr.sortDirections||xt,$r=hr.showSorterTooltip===void 0?Vt:hr.showSorterTooltip,Jr=Ws(hr,Ir),Pn=Ye.find(ya=>{let{key:Jn}=ya;return Jn===Jr}),xn=Pn?Pn.sortOrder:null,Mn=sf(en,xn);let Cn;if(Ht.sortIcon)Cn=Ht.sortIcon({sortOrder:xn});else{const ya=en.includes(il)&&S.createElement(wl.Z,{className:D()(`${de}-column-sorter-up`,{active:xn===il})}),Jn=en.includes(Fd)&&S.createElement(vA.Z,{className:D()(`${de}-column-sorter-down`,{active:xn===Fd})});Cn=S.createElement("span",{className:D()(`${de}-column-sorter`,{[`${de}-column-sorter-full`]:!!(ya&&Jn)})},S.createElement("span",{className:`${de}-column-sorter-inner`,"aria-hidden":"true"},ya,Jn))}const{cancelSort:$n,triggerAsc:Ni,triggerDesc:Ui}=bt||{};let ui=$n;Mn===Fd?ui=Ui:Mn===il&&(ui=Ni);const qi=typeof $r=="object"?$r:{title:ui};hr=Object.assign(Object.assign({},hr),{className:D()(hr.className,{[`${de}-column-sort`]:xn}),title:ya=>{const Jn=S.createElement("div",{className:`${de}-column-sorters`},S.createElement("span",{className:`${de}-column-title`},Qo(Ht.title,ya)),Cn);return $r?S.createElement(qc.Z,Object.assign({},qi),Jn):Jn},onHeaderCell:ya=>{const Jn=Ht.onHeaderCell&&Ht.onHeaderCell(ya)||{},mi=Jn.onClick,ni=Jn.onKeyDown;Jn.onClick=Qi=>{At({column:Ht,key:Jr,sortOrder:Mn,multiplePriority:ou(Ht)}),mi==null||mi(Qi)},Jn.onKeyDown=Qi=>{Qi.keyCode===ps.Z.ENTER&&(At({column:Ht,key:Jr,sortOrder:Mn,multiplePriority:ou(Ht)}),ni==null||ni(Qi))};const Tn=bs(Ht.title,{}),ii=Tn==null?void 0:Tn.toString();return xn?Jn["aria-sort"]=xn==="ascend"?"ascending":"descending":Jn["aria-label"]=ii||"",Jn.className=D()(Jn.className,`${de}-column-has-sorters`),Jn.tabIndex=0,Ht.ellipsis&&(Jn.title=(Tn!=null?Tn:"").toString()),Jn}})}return"children"in hr&&(hr=Object.assign(Object.assign({},hr),{children:Gu(de,hr.children,Ye,At,xt,bt,Vt,Ir)})),hr})}function Nc(de){const{column:xe,sortOrder:Ye}=de;return{column:xe,order:Ye,field:xe.dataIndex,columnKey:xe.key}}function Md(de){const xe=de.filter(Ye=>{let{sortOrder:At}=Ye;return At}).map(Nc);return xe.length===0&&de.length?Object.assign(Object.assign({},Nc(de[de.length-1])),{column:void 0}):xe.length<=1?xe[0]||{}:xe}function Jo(de,xe,Ye){const At=xe.slice().sort((Vt,zt)=>zt.multiplePriority-Vt.multiplePriority),xt=de.slice(),bt=At.filter(Vt=>{let{column:{sorter:zt},sortOrder:Ht}=Vt;return $A(zt)&&Ht});return bt.length?xt.sort((Vt,zt)=>{for(let Ht=0;Ht<bt.length;Ht+=1){const ur=bt[Ht],{column:{sorter:Ir},sortOrder:hr}=ur,en=$A(Ir);if(en&&hr){const $r=en(Vt,zt,hr);if($r!==0)return hr===il?$r:-$r}}return 0}).map(Vt=>{const zt=Vt[Ye];return zt?Object.assign(Object.assign({},Vt),{[Ye]:Jo(zt,xe,Ye)}):Vt}):xt}function Po(de){let{prefixCls:xe,mergedColumns:Ye,onSorterChange:At,sortDirections:xt,tableLocale:bt,showSorterTooltip:Vt}=de;const[zt,Ht]=S.useState(Vc(Ye,!0)),ur=S.useMemo(()=>{let Jr=!0;const Pn=Vc(Ye,!1);if(!Pn.length)return zt;const xn=[];function Mn($n){Jr?xn.push($n):xn.push(Object.assign(Object.assign({},$n),{sortOrder:null}))}let Cn=null;return Pn.forEach($n=>{Cn===null?(Mn($n),$n.sortOrder&&($n.multiplePriority===!1?Jr=!1:Cn=!0)):(Cn&&$n.multiplePriority!==!1||(Jr=!1),Mn($n))}),xn},[Ye,zt]),Ir=S.useMemo(()=>{const Jr=ur.map(Pn=>{let{column:xn,sortOrder:Mn}=Pn;return{column:xn,order:Mn}});return{sortColumns:Jr,sortColumn:Jr[0]&&Jr[0].column,sortOrder:Jr[0]&&Jr[0].order}},[ur]);function hr(Jr){let Pn;Jr.multiplePriority===!1||!ur.length||ur[0].multiplePriority===!1?Pn=[Jr]:Pn=[].concat((0,gn.Z)(ur.filter(xn=>{let{key:Mn}=xn;return Mn!==Jr.key})),[Jr]),Ht(Pn),At(Md(Pn),Pn)}return[Jr=>Gu(xe,Jr,ur,hr,xt,bt,Vt),ur,Ir,()=>Md(ur)]}function Yo(de,xe){return de.map(Ye=>{const At=Object.assign({},Ye);return At.title=Qo(Ye.title,xe),"children"in At&&(At.children=Yo(At.children,xe)),At})}function yc(de){return[S.useCallback(Ye=>Yo(Ye,de),[de])]}var zl=Bi((de,xe)=>{const{_renderTimes:Ye}=de,{_renderTimes:At}=xe;return Ye!==At}),Xu=_i((de,xe)=>{const{_renderTimes:Ye}=de,{_renderTimes:At}=xe;return Ye!==At}),bA=x(64993),ZA=x(17313),Ld=x(83116),kd=x(37613),WA=de=>{const{componentCls:xe}=de,Ye=`${de.lineWidth}px ${de.lineType} ${de.tableBorderColor}`,At=(xt,bt,Vt)=>({[`&${xe}-${xt}`]:{[`> ${xe}-container`]:{[`> ${xe}-content, > ${xe}-body`]:{"\n > table > tbody > tr > th,\n > table > tbody > tr > td\n ":{[`> ${xe}-expanded-row-fixed`]:{margin:`-${bt}px -${Vt+de.lineWidth}px`}}}}}});return{[`${xe}-wrapper`]:{[`${xe}${xe}-bordered`]:Object.assign(Object.assign(Object.assign({[`> ${xe}-title`]:{border:Ye,borderBottom:0},[`> ${xe}-container`]:{borderInlineStart:Ye,borderTop:Ye,[`
|
|
|
> ${xe}-content,
|
|
|
> ${xe}-header,
|
|
|
> ${xe}-body,
|
|
|
> ${xe}-summary
|
|
|
`]:{"> table":{"\n > thead > tr > th,\n > thead > tr > td,\n > tbody > tr > th,\n > tbody > tr > td,\n > tfoot > tr > th,\n > tfoot > tr > td\n ":{borderInlineEnd:Ye},"> thead":{"> tr:not(:last-child) > th":{borderBottom:Ye},"> tr > th::before":{backgroundColor:"transparent !important"}},"\n > thead > tr,\n > tbody > tr,\n > tfoot > tr\n ":{[`> ${xe}-cell-fix-right-first::after`]:{borderInlineEnd:Ye}},"\n > tbody > tr > th,\n > tbody > tr > td\n ":{[`> ${xe}-expanded-row-fixed`]:{margin:`-${de.tablePaddingVertical}px -${de.tablePaddingHorizontal+de.lineWidth}px`,"&::after":{position:"absolute",top:0,insetInlineEnd:de.lineWidth,bottom:0,borderInlineEnd:Ye,content:'""'}}}}}},[`&${xe}-scroll-horizontal`]:{[`> ${xe}-container > ${xe}-body`]:{"> table > tbody":{[`
|
|
|
> tr${xe}-expanded-row,
|
|
|
> tr${xe}-placeholder
|
|
|
`]:{"> th, > td":{borderInlineEnd:0}}}}}},At("middle",de.tablePaddingVerticalMiddle,de.tablePaddingHorizontalMiddle)),At("small",de.tablePaddingVerticalSmall,de.tablePaddingHorizontalSmall)),{[`> ${xe}-footer`]:{border:Ye,borderTop:0}}),[`${xe}-cell`]:{[`${xe}-container:first-child`]:{borderTop:0},"&-scrollbar:not([rowspan])":{boxShadow:`0 ${de.lineWidth}px 0 ${de.lineWidth}px ${de.tableHeaderBg}`}},[`${xe}-bordered ${xe}-cell-scrollbar`]:{borderInlineEnd:Ye}}}},yA=de=>{const{componentCls:xe}=de;return{[`${xe}-wrapper`]:{[`${xe}-cell-ellipsis`]:Object.assign(Object.assign({},ZA.vS),{wordBreak:"keep-all",[`
|
|
|
&${xe}-cell-fix-left-last,
|
|
|
&${xe}-cell-fix-right-first
|
|
|
`]:{overflow:"visible",[`${xe}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${xe}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},p0=de=>{const{componentCls:xe}=de;return{[`${xe}-wrapper`]:{[`${xe}-tbody > tr${xe}-placeholder`]:{textAlign:"center",color:de.colorTextDisabled,"\n &:hover > th,\n &:hover > td,\n ":{background:de.colorBgContainer}}}}},su=x(15969),lf=de=>{const{componentCls:xe,antCls:Ye,controlInteractiveSize:At,motionDurationSlow:xt,lineWidth:bt,paddingXS:Vt,lineType:zt,tableBorderColor:Ht,tableExpandIconBg:ur,tableExpandColumnWidth:Ir,borderRadius:hr,fontSize:en,fontSizeSM:$r,lineHeight:Jr,tablePaddingVertical:Pn,tablePaddingHorizontal:xn,tableExpandedRowBg:Mn,paddingXXS:Cn}=de,$n=At/2-bt,Ni=$n*2+bt*3,Ui=`${bt}px ${zt} ${Ht}`,ui=Cn-bt;return{[`${xe}-wrapper`]:{[`${xe}-expand-icon-col`]:{width:Ir},[`${xe}-row-expand-icon-cell`]:{textAlign:"center",[`${xe}-row-expand-icon`]:{display:"inline-flex",float:"none",verticalAlign:"sub"}},[`${xe}-row-indent`]:{height:1,float:"left"},[`${xe}-row-expand-icon`]:Object.assign(Object.assign({},(0,su.N)(de)),{position:"relative",float:"left",boxSizing:"border-box",width:Ni,height:Ni,padding:0,color:"inherit",lineHeight:`${Ni}px`,background:ur,border:Ui,borderRadius:hr,transform:`scale(${At/Ni})`,transition:`all ${xt}`,userSelect:"none","&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${xt} ease-out`,content:'""'},"&::before":{top:$n,insetInlineEnd:ui,insetInlineStart:ui,height:bt},"&::after":{top:ui,bottom:ui,insetInlineStart:$n,width:bt,transform:"rotate(90deg)"},"&-collapsed::before":{transform:"rotate(-180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"},"&-spaced":{"&::before, &::after":{display:"none",content:"none"},background:"transparent",border:0,visibility:"hidden"}}),[`${xe}-row-indent + ${xe}-row-expand-icon`]:{marginTop:(en*Jr-bt*3)/2-Math.ceil(($r*1.4-bt*3)/2),marginInlineEnd:Vt},[`tr${xe}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:Mn}},[`${Ye}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"auto"}}},[`${xe}-expanded-row-fixed`]:{position:"relative",margin:`-${Pn}px -${xn}px`,padding:`${Pn}px ${xn}px`}}}},Kf=de=>{const{componentCls:xe,antCls:Ye,iconCls:At,tableFilterDropdownWidth:xt,tableFilterDropdownSearchWidth:bt,paddingXXS:Vt,paddingXS:zt,colorText:Ht,lineWidth:ur,lineType:Ir,tableBorderColor:hr,tableHeaderIconColor:en,fontSizeSM:$r,tablePaddingHorizontal:Jr,borderRadius:Pn,motionDurationSlow:xn,colorTextDescription:Mn,colorPrimary:Cn,tableHeaderFilterActiveBg:$n,colorTextDisabled:Ni,tableFilterDropdownBg:Ui,tableFilterDropdownHeight:ui,controlItemBgHover:qi,controlItemBgActive:ya,boxShadowSecondary:Jn,filterDropdownMenuBg:mi}=de,ni=`${Ye}-dropdown`,Tn=`${xe}-filter-dropdown`,ii=`${Ye}-tree`,Qi=`${ur}px ${Ir} ${hr}`;return[{[`${xe}-wrapper`]:{[`${xe}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${xe}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:-Vt,marginInline:`${Vt}px ${-Jr/2}px`,padding:`0 ${Vt}px`,color:en,fontSize:$r,borderRadius:Pn,cursor:"pointer",transition:`all ${xn}`,"&:hover":{color:Mn,background:$n},"&.active":{color:Cn}}}},{[`${Ye}-dropdown`]:{[Tn]:Object.assign(Object.assign({},(0,ZA.Wf)(de)),{minWidth:xt,backgroundColor:Ui,borderRadius:Pn,boxShadow:Jn,overflow:"hidden",[`${ni}-menu`]:{maxHeight:ui,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:mi,"&:empty::after":{display:"block",padding:`${zt}px 0`,color:Ni,fontSize:$r,textAlign:"center",content:'"Not Found"'}},[`${Tn}-tree`]:{paddingBlock:`${zt}px 0`,paddingInline:zt,[ii]:{padding:0},[`${ii}-treenode ${ii}-node-content-wrapper:hover`]:{backgroundColor:qi},[`${ii}-treenode-checkbox-checked ${ii}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:ya}}},[`${Tn}-search`]:{padding:zt,borderBottom:Qi,"&-input":{input:{minWidth:bt},[At]:{color:Ni}}},[`${Tn}-checkall`]:{width:"100%",marginBottom:Vt,marginInlineStart:Vt},[`${Tn}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${zt-ur}px ${zt}px`,overflow:"hidden",borderTop:Qi}})}},{[`${Ye}-dropdown ${Tn}, ${Tn}-submenu`]:{[`${Ye}-checkbox-wrapper + span`]:{paddingInlineStart:zt,color:Ht},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Mu=de=>{const{componentCls:xe,lineWidth:Ye,colorSplit:At,motionDurationSlow:xt,zIndexTableFixed:bt,tableBg:Vt,zIndexTableSticky:zt}=de,Ht=At;return{[`${xe}-wrapper`]:{[`
|
|
|
${xe}-cell-fix-left,
|
|
|
${xe}-cell-fix-right
|
|
|
`]:{position:"sticky !important",zIndex:bt,background:Vt},[`
|
|
|
${xe}-cell-fix-left-first::after,
|
|
|
${xe}-cell-fix-left-last::after
|
|
|
`]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:-Ye,width:30,transform:"translateX(100%)",transition:`box-shadow ${xt}`,content:'""',pointerEvents:"none"},[`${xe}-cell-fix-left-all::after`]:{display:"none"},[`
|
|
|
${xe}-cell-fix-right-first::after,
|
|
|
${xe}-cell-fix-right-last::after
|
|
|
`]:{position:"absolute",top:0,bottom:-Ye,left:{_skip_check_:!0,value:0},width:30,transform:"translateX(-100%)",transition:`box-shadow ${xt}`,content:'""',pointerEvents:"none"},[`${xe}-container`]:{"&::before, &::after":{position:"absolute",top:0,bottom:0,zIndex:zt+1,width:30,transition:`box-shadow ${xt}`,content:'""',pointerEvents:"none"},"&::before":{insetInlineStart:0},"&::after":{insetInlineEnd:0}},[`${xe}-ping-left`]:{[`&:not(${xe}-has-fix-left) ${xe}-container`]:{position:"relative","&::before":{boxShadow:`inset 10px 0 8px -8px ${Ht}`}},[`
|
|
|
${xe}-cell-fix-left-first::after,
|
|
|
${xe}-cell-fix-left-last::after
|
|
|
`]:{boxShadow:`inset 10px 0 8px -8px ${Ht}`},[`${xe}-cell-fix-left-last::before`]:{backgroundColor:"transparent !important"}},[`${xe}-ping-right`]:{[`&:not(${xe}-has-fix-right) ${xe}-container`]:{position:"relative","&::after":{boxShadow:`inset -10px 0 8px -8px ${Ht}`}},[`
|
|
|
${xe}-cell-fix-right-first::after,
|
|
|
${xe}-cell-fix-right-last::after
|
|
|
`]:{boxShadow:`inset -10px 0 8px -8px ${Ht}`}}}}},xl=de=>{const{componentCls:xe,antCls:Ye}=de;return{[`${xe}-wrapper`]:{[`${xe}-pagination${Ye}-pagination`]:{margin:`${de.margin}px 0`},[`${xe}-pagination`]:{display:"flex",flexWrap:"wrap",rowGap:de.paddingXS,"> *":{flex:"none"},"&-left":{justifyContent:"flex-start"},"&-center":{justifyContent:"center"},"&-right":{justifyContent:"flex-end"}}}}},Oc=de=>{const{componentCls:xe,tableRadius:Ye}=de;return{[`${xe}-wrapper`]:{[xe]:{[`${xe}-title, ${xe}-header`]:{borderRadius:`${Ye}px ${Ye}px 0 0`},[`${xe}-title + ${xe}-container`]:{borderStartStartRadius:0,borderStartEndRadius:0,[`${xe}-header, table`]:{borderRadius:0},"table > thead > tr:first-child":{"th:first-child, th:last-child, td:first-child, td:last-child":{borderRadius:0}}},"&-container":{borderStartStartRadius:Ye,borderStartEndRadius:Ye,"table > thead > tr:first-child":{"> *:first-child":{borderStartStartRadius:Ye},"> *:last-child":{borderStartEndRadius:Ye}}},"&-footer":{borderRadius:`0 0 ${Ye}px ${Ye}px`}}}}},m0=de=>{const{componentCls:xe}=de;return{[`${xe}-wrapper-rtl`]:{direction:"rtl",table:{direction:"rtl"},[`${xe}-pagination-left`]:{justifyContent:"flex-end"},[`${xe}-pagination-right`]:{justifyContent:"flex-start"},[`${xe}-row-expand-icon`]:{float:"right","&::after":{transform:"rotate(-90deg)"},"&-collapsed::before":{transform:"rotate(180deg)"},"&-collapsed::after":{transform:"rotate(0deg)"}},[`${xe}-container`]:{"&::before":{insetInlineStart:"unset",insetInlineEnd:0},"&::after":{insetInlineStart:0,insetInlineEnd:"unset"},[`${xe}-row-indent`]:{float:"right"}}}}},xh=de=>{const{componentCls:xe,antCls:Ye,iconCls:At,fontSizeIcon:xt,padding:bt,paddingXS:Vt,tableHeaderIconColor:zt,tableHeaderIconColorHover:Ht,tableSelectionColumnWidth:ur}=de;return{[`${xe}-wrapper`]:{[`${xe}-selection-col`]:{width:ur,[`&${xe}-selection-col-with-dropdown`]:{width:ur+xt+bt/4}},[`${xe}-bordered ${xe}-selection-col`]:{width:ur+Vt*2,[`&${xe}-selection-col-with-dropdown`]:{width:ur+xt+bt/4+Vt*2}},[`
|
|
|
table tr th${xe}-selection-column,
|
|
|
table tr td${xe}-selection-column
|
|
|
`]:{paddingInlineEnd:de.paddingXS,paddingInlineStart:de.paddingXS,textAlign:"center",[`${Ye}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${xe}-selection-column${xe}-cell-fix-left`]:{zIndex:de.zIndexTableFixed+1},[`table tr th${xe}-selection-column::after`]:{backgroundColor:"transparent !important"},[`${xe}-selection`]:{position:"relative",display:"inline-flex",flexDirection:"column"},[`${xe}-selection-extra`]:{position:"absolute",top:0,zIndex:1,cursor:"pointer",transition:`all ${de.motionDurationSlow}`,marginInlineStart:"100%",paddingInlineStart:`${de.tablePaddingHorizontal/4}px`,[At]:{color:zt,fontSize:xt,verticalAlign:"baseline","&:hover":{color:Ht}}}}}},Nd=de=>{const{componentCls:xe}=de,Ye=(At,xt,bt,Vt)=>({[`${xe}${xe}-${At}`]:{fontSize:Vt,[`
|
|
|
${xe}-title,
|
|
|
${xe}-footer,
|
|
|
${xe}-cell,
|
|
|
${xe}-thead > tr > th,
|
|
|
${xe}-tbody > tr > th,
|
|
|
${xe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{padding:`${xt}px ${bt}px`},[`${xe}-filter-trigger`]:{marginInlineEnd:`-${bt/2}px`},[`${xe}-expanded-row-fixed`]:{margin:`-${xt}px -${bt}px`},[`${xe}-tbody`]:{[`${xe}-wrapper:only-child ${xe}`]:{marginBlock:`-${xt}px`,marginInline:`${de.tableExpandColumnWidth-bt}px -${bt}px`}},[`${xe}-selection-column`]:{paddingInlineStart:`${bt/4}px`}}});return{[`${xe}-wrapper`]:Object.assign(Object.assign({},Ye("middle",de.tablePaddingVerticalMiddle,de.tablePaddingHorizontalMiddle,de.tableFontSizeMiddle)),Ye("small",de.tablePaddingVerticalSmall,de.tablePaddingHorizontalSmall,de.tableFontSizeSmall))}},lu=de=>{const{componentCls:xe,marginXXS:Ye,fontSizeIcon:At,tableHeaderIconColor:xt,tableHeaderIconColorHover:bt}=de;return{[`${xe}-wrapper`]:{[`${xe}-thead th${xe}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${de.motionDurationSlow}`,"&:hover":{background:de.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:de.colorPrimary},[`
|
|
|
&${xe}-cell-fix-left:hover,
|
|
|
&${xe}-cell-fix-right:hover
|
|
|
`]:{background:de.tableFixedHeaderSortActiveBg}},[`${xe}-thead th${xe}-column-sort`]:{background:de.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${xe}-column-sort`]:{background:de.tableBodySortBg},[`${xe}-column-title`]:{position:"relative",zIndex:1,flex:1},[`${xe}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${xe}-column-sorter`]:{marginInlineStart:Ye,color:xt,fontSize:0,transition:`color ${de.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:At,"&.active":{color:de.colorPrimary}},[`${xe}-column-sorter-up + ${xe}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${xe}-column-sorters:hover ${xe}-column-sorter`]:{color:bt}}}},wc=de=>{const{componentCls:xe,opacityLoading:Ye,tableScrollThumbBg:At,tableScrollThumbBgHover:xt,tableScrollThumbSize:bt,tableScrollBg:Vt,zIndexTableSticky:zt,stickyScrollBarBorderRadius:Ht}=de,ur=`${de.lineWidth}px ${de.lineType} ${de.tableBorderColor}`;return{[`${xe}-wrapper`]:{[`${xe}-sticky`]:{"&-holder":{position:"sticky",zIndex:zt,background:de.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${bt}px !important`,zIndex:zt,display:"flex",alignItems:"center",background:Vt,borderTop:ur,opacity:Ye,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:bt,backgroundColor:At,borderRadius:Ht,transition:`all ${de.motionDurationSlow}, transform none`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:xt}}}}}}},Ju=de=>{const{componentCls:xe,lineWidth:Ye,tableBorderColor:At}=de,xt=`${Ye}px ${de.lineType} ${At}`;return{[`${xe}-wrapper`]:{[`${xe}-summary`]:{position:"relative",zIndex:de.zIndexTableFixed,background:de.tableBg,"> tr":{"> th, > td":{borderBottom:xt}}},[`div${xe}-summary`]:{boxShadow:`0 -${Ye}px 0 ${At}`}}}},jf=de=>{const{componentCls:xe}=de,Ye=`${de.lineWidth}px ${de.lineType} ${de.tableBorderColor}`,At=`${xe}-expanded-row-cell`;return{[`${xe}-wrapper`]:{[`${xe}-tbody-virtual`]:{[`${xe}-row`]:{display:"flex",boxSizing:"border-box",width:"100%"},[`${xe}-cell`]:{borderBottom:Ye},[`${xe}-expanded-row`]:{[`${At}${At}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${de.lineWidth}px)`,borderInlineEnd:"none"}}},[`${xe}-bordered`]:{[`${xe}-tbody-virtual`]:{"&:after":{content:'""',insetInline:0,bottom:0,borderBottom:Ye,position:"absolute"},[`${xe}-cell`]:{borderInlineEnd:Ye,[`&${xe}-cell-fix-right-first:before`]:{content:'""',position:"absolute",insetBlock:0,insetInlineStart:-de.lineWidth,borderInlineStart:Ye}}}}}}};const Tc=de=>{const{componentCls:xe,fontWeightStrong:Ye,tablePaddingVertical:At,tablePaddingHorizontal:xt,lineWidth:bt,lineType:Vt,tableBorderColor:zt,tableFontSize:Ht,tableBg:ur,tableRadius:Ir,tableHeaderTextColor:hr,motionDurationMid:en,tableHeaderBg:$r,tableHeaderCellSplitColor:Jr,tableRowHoverBg:Pn,tableSelectedRowBg:xn,tableSelectedRowHoverBg:Mn,tableFooterTextColor:Cn,tableFooterBg:$n,paddingContentVerticalLG:Ni}=de,Ui=`${bt}px ${Vt} ${zt}`;return{[`${xe}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%"},(0,ZA.dF)()),{[xe]:Object.assign(Object.assign({},(0,ZA.Wf)(de)),{fontSize:Ht,background:ur,borderRadius:`${Ir}px ${Ir}px 0 0`}),table:{width:"100%",textAlign:"start",borderRadius:`${Ir}px ${Ir}px 0 0`,borderCollapse:"separate",borderSpacing:0},[`
|
|
|
${xe}-cell,
|
|
|
${xe}-thead > tr > th,
|
|
|
${xe}-tbody > tr > th,
|
|
|
${xe}-tbody > tr > td,
|
|
|
tfoot > tr > th,
|
|
|
tfoot > tr > td
|
|
|
`]:{position:"relative",padding:`${Ni}px ${xt}px`,overflowWrap:"break-word"},[`${xe}-title`]:{padding:`${At}px ${xt}px`},[`${xe}-thead`]:{"\n > tr > th,\n > tr > td\n ":{position:"relative",color:hr,fontWeight:Ye,textAlign:"start",background:$r,borderBottom:Ui,transition:`background ${en} ease`,"&[colspan]:not([colspan='1'])":{textAlign:"center"},[`&:not(:last-child):not(${xe}-selection-column):not(${xe}-row-expand-icon-cell):not([colspan])::before`]:{position:"absolute",top:"50%",insetInlineEnd:0,width:1,height:"1.6em",backgroundColor:Jr,transform:"translateY(-50%)",transition:`background-color ${en}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${xe}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${en}, border-color ${en}`,borderBottom:Ui,[`
|
|
|
> ${xe}-wrapper:only-child,
|
|
|
> ${xe}-expanded-row-fixed > ${xe}-wrapper:only-child
|
|
|
`]:{[xe]:{marginBlock:`-${At}px`,marginInline:`${de.tableExpandColumnWidth-xt}px -${xt}px`,[`${xe}-tbody > tr:last-child > td`]:{borderBottom:0,"&:first-child, &:last-child":{borderRadius:0}}}}},"> th":{position:"relative",color:hr,fontWeight:Ye,textAlign:"start",background:$r,borderBottom:Ui,transition:`background ${en} ease`},[`
|
|
|
&${xe}-row:hover > th,
|
|
|
&${xe}-row:hover > td,
|
|
|
> th${xe}-cell-row-hover,
|
|
|
> td${xe}-cell-row-hover
|
|
|
`]:{background:Pn},[`&${xe}-row-selected`]:{"> th, > td":{background:xn},"&:hover > th, &:hover > td":{background:Mn}}}},[`${xe}-footer`]:{padding:`${At}px ${xt}px`,color:Cn,background:$n}})}};var Yu=(0,Ld.Z)("Table",de=>{const{colorTextHeading:xe,colorSplit:Ye,colorIcon:At,colorIconHover:xt,opacityLoading:bt,colorBgContainer:Vt,controlInteractiveSize:zt,headerBg:Ht,headerColor:ur,headerSortActiveBg:Ir,headerSortHoverBg:hr,bodySortBg:en,rowHoverBg:$r,rowSelectedBg:Jr,rowSelectedHoverBg:Pn,rowExpandedBg:xn,cellPaddingBlock:Mn,cellPaddingInline:Cn,cellPaddingBlockMD:$n,cellPaddingInlineMD:Ni,cellPaddingBlockSM:Ui,cellPaddingInlineSM:ui,borderColor:qi,footerBg:ya,footerColor:Jn,headerBorderRadius:mi,cellFontSize:ni,cellFontSizeMD:Tn,cellFontSizeSM:ii,headerSplitColor:Qi,fixedHeaderSortActiveBg:Na,headerFilterHoverBg:ha,filterDropdownBg:Ki,expandIconBg:Ea,selectionColumnWidth:Qa,stickyScrollBarBg:qo}=de,so=new bA.C(At),gs=new bA.C(xt),As=2,pa=(0,kd.TS)(de,{tableFontSize:ni,tableBg:Vt,tableRadius:mi,tablePaddingVertical:Mn,tablePaddingHorizontal:Cn,tablePaddingVerticalMiddle:$n,tablePaddingHorizontalMiddle:Ni,tablePaddingVerticalSmall:Ui,tablePaddingHorizontalSmall:ui,tableBorderColor:qi,tableHeaderTextColor:ur,tableHeaderBg:Ht,tableFooterTextColor:Jn,tableFooterBg:ya,tableHeaderCellSplitColor:Qi,tableHeaderSortBg:Ir,tableHeaderSortHoverBg:hr,tableHeaderIconColor:so.clone().setAlpha(so.getAlpha()*bt).toRgbString(),tableHeaderIconColorHover:gs.clone().setAlpha(gs.getAlpha()*bt).toRgbString(),tableBodySortBg:en,tableFixedHeaderSortActiveBg:Na,tableHeaderFilterActiveBg:ha,tableFilterDropdownBg:Ki,tableRowHoverBg:$r,tableSelectedRowBg:Jr,tableSelectedRowHoverBg:Pn,zIndexTableFixed:As,zIndexTableSticky:As+1,tableFontSizeMiddle:Tn,tableFontSizeSmall:ii,tableSelectionColumnWidth:Qa,tableExpandIconBg:Ea,tableExpandColumnWidth:zt+2*de.padding,tableExpandedRowBg:xn,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:qo,tableScrollThumbBgHover:xe,tableScrollBg:Ye});return[Tc(pa),xl(pa),Ju(pa),lu(pa),Kf(pa),WA(pa),Oc(pa),lf(pa),Ju(pa),p0(pa),xh(pa),Mu(pa),wc(pa),yA(pa),Nd(pa),m0(pa),jf(pa)]},de=>{const{colorFillAlter:xe,colorBgContainer:Ye,colorTextHeading:At,colorFillSecondary:xt,colorFillContent:bt,controlItemBgActive:Vt,controlItemBgActiveHover:zt,padding:Ht,paddingSM:ur,paddingXS:Ir,colorBorderSecondary:hr,borderRadiusLG:en,fontSize:$r,controlHeight:Jr,colorTextPlaceholder:Pn}=de,xn=new bA.C(xt).onBackground(Ye).toHexShortString(),Mn=new bA.C(bt).onBackground(Ye).toHexShortString(),Cn=new bA.C(xe).onBackground(Ye).toHexShortString();return{headerBg:Cn,headerColor:At,headerSortActiveBg:xn,headerSortHoverBg:Mn,bodySortBg:Cn,rowHoverBg:Cn,rowSelectedBg:Vt,rowSelectedHoverBg:zt,rowExpandedBg:xe,cellPaddingBlock:Ht,cellPaddingInline:Ht,cellPaddingBlockMD:ur,cellPaddingInlineMD:Ir,cellPaddingBlockSM:Ir,cellPaddingInlineSM:Ir,borderColor:hr,headerBorderRadius:en,footerBg:Cn,footerColor:At,cellFontSize:$r,cellFontSizeMD:$r,cellFontSizeSM:$r,headerSplitColor:hr,fixedHeaderSortActiveBg:xn,headerFilterHoverBg:bt,filterDropdownMenuBg:Ye,filterDropdownBg:Ye,expandIconBg:Ye,selectionColumnWidth:Jr,stickyScrollBarBg:Pn,stickyScrollBarBorderRadius:100}});const Af=[],qu=(de,xe)=>{const{prefixCls:Ye,className:At,rootClassName:xt,style:bt,size:Vt,bordered:zt,dropdownPrefixCls:Ht,dataSource:ur,pagination:Ir,rowSelection:hr,rowKey:en="key",rowClassName:$r,columns:Jr,children:Pn,childrenColumnName:xn,onChange:Mn,getPopupContainer:Cn,loading:$n,expandIcon:Ni,expandable:Ui,expandedRowRender:ui,expandIconColumnIndex:qi,indentSize:ya,scroll:Jn,sortDirections:mi,locale:ni,showSorterTooltip:Tn=!0,virtual:ii}=de,Qi=S.useMemo(()=>Jr||be(Pn),[Jr,Pn]),Na=S.useMemo(()=>Qi.some(no=>no.responsive),[Qi]),ha=(0,Fo.Z)(Na),Ki=S.useMemo(()=>{const no=new Set(Object.keys(ha).filter(Vo=>ha[Vo]));return Qi.filter(Vo=>!Vo.responsive||Vo.responsive.some(Vl=>no.has(Vl)))},[Qi,ha]),Ea=(0,Zi.Z)(de,["className","style","columns"]),{locale:Qa=So.Z,direction:qo,table:so,renderEmpty:gs,getPrefixCls:As,getPopupContainer:pa}=S.useContext(Is.E_),sl=(0,da.Z)(Vt),po=Object.assign(Object.assign({},Qa.Table),ni),es=ur||Af,ns=As("table",Ye),xc=As("dropdown",Ht),ai=Object.assign({childrenColumnName:xn,expandIconColumnIndex:qi},Ui),{childrenColumnName:Hi="children"}=ai,Ri=S.useMemo(()=>es.some(no=>no==null?void 0:no[Hi])?"nest":ui||Ui&&Ui.expandedRowRender?"row":null,[es]),Li={body:S.useRef()},go=S.useMemo(()=>typeof en=="function"?en:no=>no==null?void 0:no[en],[en]),[ki]=Us(es,Hi,go),la={},ja=function(no,Vo){let Vl=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;var ds,Ll,Wl;const el=Object.assign(Object.assign({},la),no);Vl&&((ds=la.resetPagination)===null||ds===void 0||ds.call(la),!((Ll=el.pagination)===null||Ll===void 0)&&Ll.current&&(el.pagination.current=1),Ir&&Ir.onChange&&Ir.onChange(1,(Wl=el.pagination)===null||Wl===void 0?void 0:Wl.pageSize)),Jn&&Jn.scrollToFirstRowOnChange!==!1&&Li.body.current&&(0,Ia.Z)(0,{getContainer:()=>Li.body.current}),Mn==null||Mn(el.pagination,el.filters,el.sorter,{currentDataSource:mA(Jo(es,el.sorterStates,Hi),el.filterStates),action:Vo})},$a=(no,Vo)=>{ja({sorter:no,sorterStates:Vo},"sort",!1)},[Fl,al,Wc,Rs]=Po({prefixCls:ns,mergedColumns:Ki,onSorterChange:$a,sortDirections:mi||["ascend","descend"],tableLocale:po,showSorterTooltip:Tn}),Uc=S.useMemo(()=>Jo(es,al,Hi),[es,al]);la.sorter=Rs(),la.sorterStates=al;const Hn=(no,Vo)=>{ja({filters:no,filterStates:Vo},"filter",!0)},[uc,Du,lo]=Yc({prefixCls:ns,locale:po,dropdownPrefixCls:xc,mergedColumns:Ki,onFilterChange:Hn,getPopupContainer:Cn||pa}),pn=mA(Uc,Du);la.filters=lo,la.filterStates=Du;const ko=S.useMemo(()=>{const no={};return Object.keys(lo).forEach(Vo=>{lo[Vo]!==null&&(no[Vo]=lo[Vo])}),Object.assign(Object.assign({},Wc),{filters:no})},[Wc,lo]),[ul]=yc(ko),us=(no,Vo)=>{ja({pagination:Object.assign(Object.assign({},la.pagination),{current:no,pageSize:Vo})},"paginate")},[ea,Bl]=gA(pn.length,us,Ir);la.pagination=Ir===!1?{}:to(ea,Ir),la.resetPagination=Bl;const Zl=S.useMemo(()=>{if(Ir===!1||!ea.pageSize)return pn;const{current:no=1,total:Vo,pageSize:Vl=jl}=ea;return pn.length<Vo?pn.length>Vl?pn.slice((no-1)*Vl,no*Vl):pn:pn.slice((no-1)*Vl,no*Vl)},[!!Ir,pn,ea&&ea.current,ea&&ea.pageSize,ea&&ea.total]),[Rc,Cc]=qs({prefixCls:ns,data:pn,pageData:Zl,getRowKey:go,getRecordByKey:ki,expandType:Ri,childrenColumnName:Hi,locale:po,getPopupContainer:Cn||pa},hr),Sl=(no,Vo,Vl)=>{let ds;return typeof $r=="function"?ds=D()($r(no,Vo,Vl)):ds=D()($r),D()({[`${ns}-row-selected`]:Cc.has(go(no,Vo))},ds)};ai.__PARENT_RENDER_ICON__=ai.expandIcon,ai.expandIcon=ai.expandIcon||Ni||Ts(po),Ri==="nest"&&ai.expandIconColumnIndex===void 0?ai.expandIconColumnIndex=hr?1:0:ai.expandIconColumnIndex>0&&hr&&(ai.expandIconColumnIndex-=1),typeof ai.indentSize!="number"&&(ai.indentSize=typeof ya=="number"?ya:15);const dl=S.useCallback(no=>ul(Rc(uc(Fl(no)))),[Fl,uc,Rc]);let cu,Ml;if(Ir!==!1&&(ea!=null&&ea.total)){let no;ea.size?no=ea.size:no=sl==="small"||sl==="middle"?"small":void 0;const Vo=Ll=>S.createElement(Uo.Z,Object.assign({},ea,{className:D()(`${ns}-pagination ${ns}-pagination-${Ll}`,ea.className),size:no})),Vl=qo==="rtl"?"left":"right",{position:ds}=ea;if(ds!==null&&Array.isArray(ds)){const Ll=ds.find(CA=>CA.includes("top")),Wl=ds.find(CA=>CA.includes("bottom")),el=ds.every(CA=>`${CA}`=="none");!Ll&&!Wl&&!el&&(Ml=Vo(Vl)),Ll&&(cu=Vo(Ll.toLowerCase().replace("top",""))),Wl&&(Ml=Vo(Wl.toLowerCase().replace("bottom","")))}else Ml=Vo(Vl)}let Qs;typeof $n=="boolean"?Qs={spinning:$n}:typeof $n=="object"&&(Qs=Object.assign({spinning:!0},$n));const[El,ol]=Yu(ns),[,Ms]=(0,ho.Z)(),Bc=D()(`${ns}-wrapper`,so==null?void 0:so.className,{[`${ns}-wrapper-rtl`]:qo==="rtl"},At,xt,ol),wA=Object.assign(Object.assign({},so==null?void 0:so.style),bt),PA=ni&&ni.emptyText||(gs==null?void 0:gs("Table"))||S.createElement(za.Z,{componentName:"Table"}),xA=ii?Xu:zl,uf={},zf=S.useMemo(()=>{const{fontSize:no,lineHeight:Vo,padding:Vl,paddingXS:ds,paddingSM:Ll}=Ms,Wl=Math.floor(no*Vo);switch(sl){case"large":return Vl*2+Wl;case"small":return ds*2+Wl;default:return Ll*2+Wl}},[Ms,sl]);return ii&&(uf.listItemHeight=zf),El(S.createElement("div",{ref:xe,className:Bc,style:wA},S.createElement(Ps.Z,Object.assign({spinning:!1},Qs),cu,S.createElement(xA,Object.assign({},uf,Ea,{columns:Ki,direction:qo,expandable:ai,prefixCls:ns,className:D()({[`${ns}-middle`]:sl==="middle",[`${ns}-small`]:sl==="small",[`${ns}-bordered`]:zt,[`${ns}-empty`]:es.length===0}),data:Zl,rowKey:go,rowClassName:Sl,emptyText:PA,internalHooks:ue,internalRefs:Li,transformColumns:dl})),Ml)))};var g0=S.forwardRef(qu);const v0=(de,xe)=>{const Ye=S.useRef(0);return Ye.current+=1,S.createElement(g0,Object.assign({},de,{ref:xe,_renderTimes:Ye.current}))},$l=S.forwardRef(v0);$l.SELECTION_COLUMN=mo,$l.EXPAND_COLUMN=ve,$l.SELECTION_ALL=zo,$l.SELECTION_INVERT=$o,$l.SELECTION_NONE=Oo,$l.Column=Wn,$l.ColumnGroup=Mi,$l.Summary=H;var ed=$l,b0=ed},99313:function(dn,Ut,x){"use strict";x.d(Ut,{default:function(){return zi}});var ve=x(99267),ue=x(18785),T=x(62772),De=x(92310),re=x.n(De),W=x(54476),S=x(20068),m=x(33885),I=x(42978),g=x(76190),$=x(75931),_=x(59301),F=x(49658),P=x(18929),U=x(77900),M=(0,_.createContext)(null),Y=_.forwardRef(function(be,Oe){var ke=be.prefixCls,qe=be.className,Rt=be.style,kt=be.id,yr=be.active,or=be.tabKey,Nr=be.children;return _.createElement("div",{id:kt&&"".concat(kt,"-panel-").concat(or),role:"tabpanel",tabIndex:yr?0:-1,"aria-labelledby":kt&&"".concat(kt,"-tab-").concat(or),"aria-hidden":!yr,style:Rt,className:re()(ke,yr&&"".concat(ke,"-active"),qe),ref:Oe},Nr)}),Q=Y,ae=["key","forceRender","style","className"];function ie(be){var Oe=be.id,ke=be.activeKey,qe=be.animated,Rt=be.tabPosition,kt=be.destroyInactiveTabPane,yr=_.useContext(M),or=yr.prefixCls,Nr=yr.tabs,zr=qe.tabPane,an="".concat(or,"-tabpane");return _.createElement("div",{className:re()("".concat(or,"-content-holder"))},_.createElement("div",{className:re()("".concat(or,"-content"),"".concat(or,"-content-").concat(Rt),(0,S.Z)({},"".concat(or,"-content-animated"),zr))},Nr.map(function(jr){var Qr=jr.key,qr=jr.forceRender,yn=jr.style,on=jr.className,Dn=(0,$.Z)(jr,ae),Qn=Qr===ke;return _.createElement(U.default,(0,W.Z)({key:Qr,visible:Qn,forceRender:qr,removeOnLeave:!!kt,leavedClassName:"".concat(an,"-hidden")},qe.tabPaneMotion),function(fi,On){var An=fi.style,Dt=fi.className;return _.createElement(Q,(0,W.Z)({},Dn,{prefixCls:an,id:Oe,tabKey:Qr,animated:zr,active:Qn,style:(0,m.Z)((0,m.Z)({},yn),An),className:re()(on,Dt),ref:On}))})})))}var J=x(94480),G=x(29301),j=x(6089),se=x(8654),he={width:0,height:0,left:0,top:0};function Ne(be,Oe,ke){return(0,_.useMemo)(function(){for(var qe,Rt=new Map,kt=Oe.get((qe=be[0])===null||qe===void 0?void 0:qe.key)||he,yr=kt.left+kt.width,or=0;or<be.length;or+=1){var Nr=be[or].key,zr=Oe.get(Nr);if(!zr){var an;zr=Oe.get((an=be[or-1])===null||an===void 0?void 0:an.key)||he}var jr=Rt.get(Nr)||(0,m.Z)({},zr);jr.right=yr-jr.left-jr.width,Rt.set(Nr,jr)}return Rt},[be.map(function(qe){return qe.key}).join("_"),Oe,ke])}function Be(be,Oe){var ke=_.useRef(be),qe=_.useState({}),Rt=(0,I.Z)(qe,2),kt=Rt[1];function yr(or){var Nr=typeof or=="function"?or(ke.current):or;Nr!==ke.current&&Oe(Nr,ke.current),ke.current=Nr,kt({})}return[ke.current,yr]}var Pe=.1,q=.01,Ae=20,D=Math.pow(.995,Ae);function Je(be,Oe){var ke=(0,_.useState)(),qe=(0,I.Z)(ke,2),Rt=qe[0],kt=qe[1],yr=(0,_.useState)(0),or=(0,I.Z)(yr,2),Nr=or[0],zr=or[1],an=(0,_.useState)(0),jr=(0,I.Z)(an,2),Qr=jr[0],qr=jr[1],yn=(0,_.useState)(),on=(0,I.Z)(yn,2),Dn=on[0],Qn=on[1],fi=(0,_.useRef)();function On(Zt){var Dr=Zt.touches[0],Fr=Dr.screenX,Xr=Dr.screenY;kt({x:Fr,y:Xr}),window.clearInterval(fi.current)}function An(Zt){if(Rt){Zt.preventDefault();var Dr=Zt.touches[0],Fr=Dr.screenX,Xr=Dr.screenY;kt({x:Fr,y:Xr});var Fn=Fr-Rt.x,Nn=Xr-Rt.y;Oe(Fn,Nn);var si=Date.now();zr(si),qr(si-Nr),Qn({x:Fn,y:Nn})}}function Dt(){if(Rt&&(kt(null),Qn(null),Dn)){var Zt=Dn.x/Qr,Dr=Dn.y/Qr,Fr=Math.abs(Zt),Xr=Math.abs(Dr);if(Math.max(Fr,Xr)<Pe)return;var Fn=Zt,Nn=Dr;fi.current=window.setInterval(function(){if(Math.abs(Fn)<q&&Math.abs(Nn)<q){window.clearInterval(fi.current);return}Fn*=D,Nn*=D,Oe(Fn*Ae,Nn*Ae)},Ae)}}var Kt=(0,_.useRef)();function Gt(Zt){var Dr=Zt.deltaX,Fr=Zt.deltaY,Xr=0,Fn=Math.abs(Dr),Nn=Math.abs(Fr);Fn===Nn?Xr=Kt.current==="x"?Dr:Fr:Fn>Nn?(Xr=Dr,Kt.current="x"):(Xr=Fr,Kt.current="y"),Oe(-Xr,-Xr)&&Zt.preventDefault()}var Jt=(0,_.useRef)(null);Jt.current={onTouchStart:On,onTouchMove:An,onTouchEnd:Dt,onWheel:Gt},_.useEffect(function(){function Zt(Fn){Jt.current.onTouchStart(Fn)}function Dr(Fn){Jt.current.onTouchMove(Fn)}function Fr(Fn){Jt.current.onTouchEnd(Fn)}function Xr(Fn){Jt.current.onWheel(Fn)}return document.addEventListener("touchmove",Dr,{passive:!1}),document.addEventListener("touchend",Fr,{passive:!1}),be.current.addEventListener("touchstart",Zt,{passive:!1}),be.current.addEventListener("wheel",Xr),function(){document.removeEventListener("touchmove",Dr),document.removeEventListener("touchend",Fr)}},[])}var Fe=x(34280);function Ce(be){var Oe=(0,_.useState)(0),ke=(0,I.Z)(Oe,2),qe=ke[0],Rt=ke[1],kt=(0,_.useRef)(0),yr=(0,_.useRef)();return yr.current=be,(0,Fe.o)(function(){var or;(or=yr.current)===null||or===void 0||or.call(yr)},[qe]),function(){kt.current===qe&&(kt.current+=1,Rt(kt.current))}}function Ue(be){var Oe=(0,_.useRef)([]),ke=(0,_.useState)({}),qe=(0,I.Z)(ke,2),Rt=qe[1],kt=(0,_.useRef)(typeof be=="function"?be():be),yr=Ce(function(){var Nr=kt.current;Oe.current.forEach(function(zr){Nr=zr(Nr)}),Oe.current=[],kt.current=Nr,Rt({})});function or(Nr){Oe.current.push(Nr),yr()}return[kt.current,or]}var me={width:0,height:0,left:0,top:0,right:0};function Me(be,Oe,ke,qe,Rt,kt,yr){var or=yr.tabs,Nr=yr.tabPosition,zr=yr.rtl,an,jr,Qr;return["top","bottom"].includes(Nr)?(an="width",jr=zr?"right":"left",Qr=Math.abs(ke)):(an="height",jr="top",Qr=-ke),(0,_.useMemo)(function(){if(!or.length)return[0,0];for(var qr=or.length,yn=qr,on=0;on<qr;on+=1){var Dn=be.get(or[on].key)||me;if(Dn[jr]+Dn[an]>Qr+Oe){yn=on-1;break}}for(var Qn=0,fi=qr-1;fi>=0;fi-=1){var On=be.get(or[fi].key)||me;if(On[jr]<Qr){Qn=fi+1;break}}return Qn>=yn?[0,0]:[Qn,yn]},[be,Oe,qe,Rt,kt,Qr,Nr,or.map(function(qr){return qr.key}).join("_"),zr])}function fe(be){var Oe;return be instanceof Map?(Oe={},be.forEach(function(ke,qe){Oe[qe]=ke})):Oe=be,JSON.stringify(Oe)}var Ee="TABS_DQ";function rt(be){return String(be).replace(/"/g,Ee)}function ot(be,Oe,ke,qe){return!(!ke||qe||be===!1||be===void 0&&(Oe===!1||Oe===null))}function We(be,Oe){var ke=be.prefixCls,qe=be.editable,Rt=be.locale,kt=be.style;return!qe||qe.showAdd===!1?null:_.createElement("button",{ref:Oe,type:"button",className:"".concat(ke,"-nav-add"),style:kt,"aria-label":(Rt==null?void 0:Rt.addAriaLabel)||"Add tab",onClick:function(or){qe.onEdit("add",{event:or})}},qe.addIcon||"+")}var et=_.forwardRef(We),_t=_.forwardRef(function(be,Oe){var ke=be.position,qe=be.prefixCls,Rt=be.extra;if(!Rt)return null;var kt,yr={};return(0,g.Z)(Rt)==="object"&&!_.isValidElement(Rt)?yr=Rt:yr.right=Rt,ke==="right"&&(kt=yr.right),ke==="left"&&(kt=yr.left),kt?_.createElement("div",{className:"".concat(qe,"-extra-content"),ref:Oe},kt):null}),Ot=_t,Pt=x(31561),cr=x(15285),nr=x(10228);function br(be,Oe){var ke=be.prefixCls,qe=be.id,Rt=be.tabs,kt=be.locale,yr=be.mobile,or=be.moreIcon,Nr=or===void 0?"More":or,zr=be.moreTransitionName,an=be.style,jr=be.className,Qr=be.editable,qr=be.tabBarGutter,yn=be.rtl,on=be.removeAriaLabel,Dn=be.onTabClick,Qn=be.getPopupContainer,fi=be.popupClassName,On=(0,_.useState)(!1),An=(0,I.Z)(On,2),Dt=An[0],Kt=An[1],Gt=(0,_.useState)(null),Jt=(0,I.Z)(Gt,2),Zt=Jt[0],Dr=Jt[1],Fr="".concat(qe,"-more-popup"),Xr="".concat(ke,"-dropdown"),Fn=Zt!==null?"".concat(Fr,"-").concat(Zt):null,Nn=kt==null?void 0:kt.dropdownAriaLabel;function si(wi,li){wi.preventDefault(),wi.stopPropagation(),Qr.onEdit("remove",{key:li,event:wi})}var ti=_.createElement(cr.ZP,{onClick:function(li){var xi=li.key,$i=li.domEvent;Dn(xi,$i),Kt(!1)},prefixCls:"".concat(Xr,"-menu"),id:Fr,tabIndex:-1,role:"listbox","aria-activedescendant":Fn,selectedKeys:[Zt],"aria-label":Nn!==void 0?Nn:"expanded dropdown"},Rt.map(function(wi){var li=wi.closable,xi=wi.disabled,$i=wi.closeIcon,ei=wi.key,Di=wi.label,Ha=ot(li,$i,Qr,xi);return _.createElement(cr.sN,{key:ei,id:"".concat(Fr,"-").concat(ei),role:"option","aria-controls":qe&&"".concat(qe,"-panel-").concat(ei),disabled:xi},_.createElement("span",null,Di),Ha&&_.createElement("button",{type:"button","aria-label":on||"remove",tabIndex:0,className:"".concat(Xr,"-menu-item-remove"),onClick:function(hn){hn.stopPropagation(),si(hn,ei)}},$i||Qr.removeIcon||"\xD7"))}));function Bi(wi){for(var li=Rt.filter(function(Ha){return!Ha.disabled}),xi=li.findIndex(function(Ha){return Ha.key===Zt})||0,$i=li.length,ei=0;ei<$i;ei+=1){xi=(xi+wi+$i)%$i;var Di=li[xi];if(!Di.disabled){Dr(Di.key);return}}}function Yn(wi){var li=wi.which;if(!Dt){[nr.Z.DOWN,nr.Z.SPACE,nr.Z.ENTER].includes(li)&&(Kt(!0),wi.preventDefault());return}switch(li){case nr.Z.UP:Bi(-1),wi.preventDefault();break;case nr.Z.DOWN:Bi(1),wi.preventDefault();break;case nr.Z.ESC:Kt(!1);break;case nr.Z.SPACE:case nr.Z.ENTER:Zt!==null&&Dn(Zt,wi);break}}(0,_.useEffect)(function(){var wi=document.getElementById(Fn);wi&&wi.scrollIntoView&&wi.scrollIntoView(!1)},[Zt]),(0,_.useEffect)(function(){Dt||Dr(null)},[Dt]);var jn=(0,S.Z)({},yn?"marginRight":"marginLeft",qr);Rt.length||(jn.visibility="hidden",jn.order=1);var yi=re()((0,S.Z)({},"".concat(Xr,"-rtl"),yn)),vi=yr?null:_.createElement(Pt.Z,{prefixCls:Xr,overlay:ti,trigger:["hover"],visible:Rt.length?Dt:!1,transitionName:zr,onVisibleChange:Kt,overlayClassName:re()(yi,fi),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:Qn},_.createElement("button",{type:"button",className:"".concat(ke,"-nav-more"),style:jn,tabIndex:-1,"aria-hidden":"true","aria-haspopup":"listbox","aria-controls":Fr,id:"".concat(qe,"-more"),"aria-expanded":Dt,onKeyDown:Yn},Nr));return _.createElement("div",{className:re()("".concat(ke,"-nav-operations"),jr),style:an,ref:Oe},vi,_.createElement(et,{prefixCls:ke,locale:kt,editable:Qr}))}var sr=_.memo(_.forwardRef(br),function(be,Oe){return Oe.tabMoving});function k(be){var Oe,ke=be.prefixCls,qe=be.id,Rt=be.active,kt=be.tab,yr=kt.key,or=kt.label,Nr=kt.disabled,zr=kt.closeIcon,an=be.closable,jr=be.renderWrapper,Qr=be.removeAriaLabel,qr=be.editable,yn=be.onClick,on=be.onFocus,Dn=be.style,Qn="".concat(ke,"-tab"),fi=ot(an,zr,qr,Nr);function On(Kt){Nr||yn(Kt)}function An(Kt){Kt.preventDefault(),Kt.stopPropagation(),qr.onEdit("remove",{key:yr,event:Kt})}var Dt=_.createElement("div",{key:yr,"data-node-key":rt(yr),className:re()(Qn,(Oe={},(0,S.Z)(Oe,"".concat(Qn,"-with-remove"),fi),(0,S.Z)(Oe,"".concat(Qn,"-active"),Rt),(0,S.Z)(Oe,"".concat(Qn,"-disabled"),Nr),Oe)),style:Dn,onClick:On},_.createElement("div",{role:"tab","aria-selected":Rt,id:qe&&"".concat(qe,"-tab-").concat(yr),className:"".concat(Qn,"-btn"),"aria-controls":qe&&"".concat(qe,"-panel-").concat(yr),"aria-disabled":Nr,tabIndex:Nr?null:0,onClick:function(Gt){Gt.stopPropagation(),On(Gt)},onKeyDown:function(Gt){[nr.Z.SPACE,nr.Z.ENTER].includes(Gt.which)&&(Gt.preventDefault(),On(Gt))},onFocus:on},or),fi&&_.createElement("button",{type:"button","aria-label":Qr||"remove",tabIndex:0,className:"".concat(Qn,"-remove"),onClick:function(Gt){Gt.stopPropagation(),An(Gt)}},zr||qr.removeIcon||"\xD7"));return jr?jr(Dt):Dt}var Xe=k,N=x(16089),b=function(Oe){var ke=Oe.activeTabOffset,qe=Oe.horizontal,Rt=Oe.rtl,kt=Oe.indicatorSize,yr=(0,_.useState)(),or=(0,I.Z)(yr,2),Nr=or[0],zr=or[1],an=(0,_.useRef)(),jr=function(yn){return typeof kt=="function"?kt(yn):typeof kt=="number"?kt:yn};function Qr(){N.Z.cancel(an.current)}return(0,_.useEffect)(function(){var qr={};return ke&&(qe?(Rt?(qr.right=ke.right+ke.width/2,qr.transform="translateX(50%)"):(qr.left=ke.left+ke.width/2,qr.transform="translateX(-50%)"),qr.width=jr(ke.width)):(qr.top=ke.top+ke.height/2,qr.transform="translateY(-50%)",qr.height=jr(ke.height))),Qr(),an.current=(0,N.Z)(function(){zr(qr)}),Qr},[ke,qe,Rt,kt]),{style:Nr}},f=b,C=function(Oe){var ke=Oe.current||{},qe=ke.offsetWidth,Rt=qe===void 0?0:qe,kt=ke.offsetHeight,yr=kt===void 0?0:kt;return[Rt,yr]},ee=function(Oe,ke){return Oe[ke?0:1]};function Se(be,Oe){var ke,qe=_.useContext(M),Rt=qe.prefixCls,kt=qe.tabs,yr=be.className,or=be.style,Nr=be.id,zr=be.animated,an=be.activeKey,jr=be.rtl,Qr=be.extra,qr=be.editable,yn=be.locale,on=be.tabPosition,Dn=be.tabBarGutter,Qn=be.children,fi=be.onTabClick,On=be.onTabScroll,An=be.indicatorSize,Dt=(0,_.useRef)(),Kt=(0,_.useRef)(),Gt=(0,_.useRef)(),Jt=(0,_.useRef)(),Zt=(0,_.useRef)(),Dr=(0,_.useRef)(),Fr=(0,_.useRef)(),Xr=on==="top"||on==="bottom",Fn=Be(0,function(eo,Ra){Xr&&On&&On({direction:eo>Ra?"left":"right"})}),Nn=(0,I.Z)(Fn,2),si=Nn[0],ti=Nn[1],Bi=Be(0,function(eo,Ra){!Xr&&On&&On({direction:eo>Ra?"top":"bottom"})}),Yn=(0,I.Z)(Bi,2),jn=Yn[0],yi=Yn[1],vi=(0,_.useState)([0,0]),wi=(0,I.Z)(vi,2),li=wi[0],xi=wi[1],$i=(0,_.useState)([0,0]),ei=(0,I.Z)($i,2),Di=ei[0],Ha=ei[1],oi=(0,_.useState)([0,0]),hn=(0,I.Z)(oi,2),ln=hn[0],Xn=hn[1],Kn=(0,_.useState)([0,0]),Ai=(0,I.Z)(Kn,2),Wi=Ai[0],_i=Ai[1],Ua=Ue(new Map),ca=(0,I.Z)(Ua,2),Bo=ca[0],Wn=ca[1],_n=Ne(kt,Bo,Di[0]),Mi=ee(li,Xr),Zi=ee(Di,Xr),Ia=ee(ln,Xr),Is=ee(Wi,Xr),za=Mi<Zi+Ia,da=za?Mi-Is:Mi-Ia,Fo="".concat(Rt,"-nav-operations-hidden"),So=0,Uo=0;Xr&&jr?(So=0,Uo=Math.max(0,Zi-da)):(So=Math.min(0,da-Zi),Uo=0);function Ps(eo){return eo<So?So:eo>Uo?Uo:eo}var ho=(0,_.useRef)(),vs=(0,_.useState)(),Ts=(0,I.Z)(vs,2),Ws=Ts[0],Ro=Ts[1];function Qo(){Ro(Date.now())}function bs(){window.clearTimeout(ho.current)}Je(Jt,function(eo,Ra){function ss(ls,Fs){ls(function(Xo){var Mo=Ps(Xo+Fs);return Mo})}return za?(Xr?ss(ti,eo):ss(yi,Ra),bs(),Qo(),!0):!1}),(0,_.useEffect)(function(){return bs(),Ws&&(ho.current=window.setTimeout(function(){Ro(0)},100)),bs},[Ws]);var rl=Me(_n,da,Xr?si:jn,Zi,Ia,Is,(0,m.Z)((0,m.Z)({},be),{},{tabs:kt})),vl=(0,I.Z)(rl,2),nc=vl[0],ic=vl[1],Ql=(0,j.Z)(function(){var eo=arguments.length>0&&arguments[0]!==void 0?arguments[0]:an,Ra=_n.get(eo)||{width:0,height:0,left:0,right:0,top:0};if(Xr){var ss=si;jr?Ra.right<si?ss=Ra.right:Ra.right+Ra.width>si+da&&(ss=Ra.right+Ra.width-da):Ra.left<-si?ss=-Ra.left:Ra.left+Ra.width>-si+da&&(ss=-(Ra.left+Ra.width-da)),yi(0),ti(Ps(ss))}else{var ls=jn;Ra.top<-jn?ls=-Ra.top:Ra.top+Ra.height>-jn+da&&(ls=-(Ra.top+Ra.height-da)),ti(0),yi(Ps(ls))}}),Gs={};on==="top"||on==="bottom"?Gs[jr?"marginRight":"marginLeft"]=Dn:Gs.marginTop=Dn;var Dc=kt.map(function(eo,Ra){var ss=eo.key;return _.createElement(Xe,{id:Nr,prefixCls:Rt,key:ss,tab:eo,style:Ra===0?void 0:Gs,closable:eo.closable,editable:qr,active:ss===an,renderWrapper:Qn,removeAriaLabel:yn==null?void 0:yn.removeAriaLabel,onClick:function(Fs){fi(ss,Fs)},onFocus:function(){Ql(ss),Qo(),Jt.current&&(jr||(Jt.current.scrollLeft=0),Jt.current.scrollTop=0)}})}),Kl=function(){return Wn(function(){var Ra=new Map;return kt.forEach(function(ss){var ls,Fs=ss.key,Xo=(ls=Zt.current)===null||ls===void 0?void 0:ls.querySelector('[data-node-key="'.concat(rt(Fs),'"]'));Xo&&Ra.set(Fs,{width:Xo.offsetWidth,height:Xo.offsetHeight,left:Xo.offsetLeft,top:Xo.offsetTop})}),Ra})};(0,_.useEffect)(function(){Kl()},[kt.map(function(eo){return eo.key}).join("_")]);var Hl=Ce(function(){var eo=C(Dt),Ra=C(Kt),ss=C(Gt);xi([eo[0]-Ra[0]-ss[0],eo[1]-Ra[1]-ss[1]]);var ls=C(Fr);Xn(ls);var Fs=C(Dr);_i(Fs);var Xo=C(Zt);Ha([Xo[0]-ls[0],Xo[1]-ls[1]]),Kl()}),Xs=kt.slice(0,nc),os=kt.slice(ic+1),ri=[].concat((0,J.Z)(Xs),(0,J.Z)(os)),sa=_n.get(an),Xi=f({activeTabOffset:sa,horizontal:Xr,rtl:jr,indicatorSize:An}),ra=Xi.style;(0,_.useEffect)(function(){Ql()},[an,So,Uo,fe(sa),fe(_n),Xr]),(0,_.useEffect)(function(){Hl()},[jr]);var Da=!!ri.length,oo="".concat(Rt,"-nav-wrap"),Js,ys,ws,ps;return Xr?jr?(ys=si>0,Js=si!==Uo):(Js=si<0,ys=si!==So):(ws=jn<0,ps=jn!==So),_.createElement(G.Z,{onResize:Hl},_.createElement("div",{ref:(0,se.x1)(Oe,Dt),role:"tablist",className:re()("".concat(Rt,"-nav"),yr),style:or,onKeyDown:function(){Qo()}},_.createElement(Ot,{ref:Kt,position:"left",extra:Qr,prefixCls:Rt}),_.createElement(G.Z,{onResize:Hl},_.createElement("div",{className:re()(oo,(ke={},(0,S.Z)(ke,"".concat(oo,"-ping-left"),Js),(0,S.Z)(ke,"".concat(oo,"-ping-right"),ys),(0,S.Z)(ke,"".concat(oo,"-ping-top"),ws),(0,S.Z)(ke,"".concat(oo,"-ping-bottom"),ps),ke)),ref:Jt},_.createElement(G.Z,{onResize:Hl},_.createElement("div",{ref:Zt,className:"".concat(Rt,"-nav-list"),style:{transform:"translate(".concat(si,"px, ").concat(jn,"px)"),transition:Ws?"none":void 0}},Dc,_.createElement(et,{ref:Fr,prefixCls:Rt,locale:yn,editable:qr,style:(0,m.Z)((0,m.Z)({},Dc.length===0?void 0:Gs),{},{visibility:Da?"hidden":null})}),_.createElement("div",{className:re()("".concat(Rt,"-ink-bar"),(0,S.Z)({},"".concat(Rt,"-ink-bar-animated"),zr.inkBar)),style:ra}))))),_.createElement(sr,(0,W.Z)({},be,{removeAriaLabel:yn==null?void 0:yn.removeAriaLabel,ref:Dr,prefixCls:Rt,tabs:ri,className:!Da&&Fo,tabMoving:!!Ws})),_.createElement(Ot,{ref:Gt,position:"right",extra:Qr,prefixCls:Rt})))}var H=_.forwardRef(Se),ne=["renderTabBar"],Qe=["label","key"];function we(be){var Oe=be.renderTabBar,ke=(0,$.Z)(be,ne),qe=_.useContext(M),Rt=qe.tabs;if(Oe){var kt=(0,m.Z)((0,m.Z)({},ke),{},{panes:Rt.map(function(yr){var or=yr.label,Nr=yr.key,zr=(0,$.Z)(yr,Qe);return _.createElement(Q,(0,W.Z)({tab:or,key:Nr,tabKey:Nr},zr))})});return Oe(kt,H)}return _.createElement(H,ke)}var ye=x(48736);function je(){var be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{inkBar:!0,tabPane:!1},Oe;return be===!1?Oe={inkBar:!1,tabPane:!1}:be===!0?Oe={inkBar:!0,tabPane:!1}:Oe=(0,m.Z)({inkBar:!0},(0,g.Z)(be)==="object"?be:{}),Oe.tabPaneMotion&&Oe.tabPane===void 0&&(Oe.tabPane=!0),!Oe.tabPaneMotion&&Oe.tabPane&&(Oe.tabPane=!1),Oe}var mt=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","moreIcon","moreTransitionName","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicatorSize"],ge=0;function st(be,Oe){var ke,qe=be.id,Rt=be.prefixCls,kt=Rt===void 0?"rc-tabs":Rt,yr=be.className,or=be.items,Nr=be.direction,zr=be.activeKey,an=be.defaultActiveKey,jr=be.editable,Qr=be.animated,qr=be.tabPosition,yn=qr===void 0?"top":qr,on=be.tabBarGutter,Dn=be.tabBarStyle,Qn=be.tabBarExtraContent,fi=be.locale,On=be.moreIcon,An=be.moreTransitionName,Dt=be.destroyInactiveTabPane,Kt=be.renderTabBar,Gt=be.onChange,Jt=be.onTabClick,Zt=be.onTabScroll,Dr=be.getPopupContainer,Fr=be.popupClassName,Xr=be.indicatorSize,Fn=(0,$.Z)(be,mt),Nn=_.useMemo(function(){return(or||[]).filter(function(_i){return _i&&(0,g.Z)(_i)==="object"&&"key"in _i})},[or]),si=Nr==="rtl",ti=je(Qr),Bi=(0,_.useState)(!1),Yn=(0,I.Z)(Bi,2),jn=Yn[0],yi=Yn[1];(0,_.useEffect)(function(){yi((0,F.Z)())},[]);var vi=(0,P.Z)(function(){var _i;return(_i=Nn[0])===null||_i===void 0?void 0:_i.key},{value:zr,defaultValue:an}),wi=(0,I.Z)(vi,2),li=wi[0],xi=wi[1],$i=(0,_.useState)(function(){return Nn.findIndex(function(_i){return _i.key===li})}),ei=(0,I.Z)($i,2),Di=ei[0],Ha=ei[1];(0,_.useEffect)(function(){var _i=Nn.findIndex(function(ca){return ca.key===li});if(_i===-1){var Ua;_i=Math.max(0,Math.min(Di,Nn.length-1)),xi((Ua=Nn[_i])===null||Ua===void 0?void 0:Ua.key)}Ha(_i)},[Nn.map(function(_i){return _i.key}).join("_"),li,Di]);var oi=(0,P.Z)(null,{value:qe}),hn=(0,I.Z)(oi,2),ln=hn[0],Xn=hn[1];(0,_.useEffect)(function(){qe||(Xn("rc-tabs-".concat(ge)),ge+=1)},[]);function Kn(_i,Ua){Jt==null||Jt(_i,Ua);var ca=_i!==li;xi(_i),ca&&(Gt==null||Gt(_i))}var Ai={id:ln,activeKey:li,animated:ti,tabPosition:yn,rtl:si,mobile:jn},Wi=(0,m.Z)((0,m.Z)({},Ai),{},{editable:jr,locale:fi,moreIcon:On,moreTransitionName:An,tabBarGutter:on,onTabClick:Kn,onTabScroll:Zt,extra:Qn,style:Dn,panes:null,getPopupContainer:Dr,popupClassName:Fr,indicatorSize:Xr});return _.createElement(M.Provider,{value:{tabs:Nn,prefixCls:kt}},_.createElement("div",(0,W.Z)({ref:Oe,id:qe,className:re()(kt,"".concat(kt,"-").concat(yn),(ke={},(0,S.Z)(ke,"".concat(kt,"-mobile"),jn),(0,S.Z)(ke,"".concat(kt,"-editable"),jr),(0,S.Z)(ke,"".concat(kt,"-rtl"),si),ke),yr)},Fn),_.createElement(we,(0,W.Z)({},Wi,{renderTabBar:Kt})),_.createElement(ie,(0,W.Z)({destroyInactiveTabPane:Dt},Ai,{animated:ti}))))}var ze=_.forwardRef(st),Ie=ze,Le=Ie,ct=x(36355),Tt=x(19716),Yt=()=>null,_r=x(62892);const Sr={motionAppear:!1,motionEnter:!0,motionLeave:!0};function Lr(be){let Oe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{inkBar:!0,tabPane:!1},ke;return Oe===!1?ke={inkBar:!1,tabPane:!1}:Oe===!0?ke={inkBar:!0,tabPane:!0}:ke=Object.assign({inkBar:!0},typeof Oe=="object"?Oe:{}),ke.tabPane&&(ke.tabPaneMotion=Object.assign(Object.assign({},Sr),{motionName:(0,_r.m)(be,"switch")})),ke}var Er=x(11592),Ar=function(be,Oe){var ke={};for(var qe in be)Object.prototype.hasOwnProperty.call(be,qe)&&Oe.indexOf(qe)<0&&(ke[qe]=be[qe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,qe=Object.getOwnPropertySymbols(be);Rt<qe.length;Rt++)Oe.indexOf(qe[Rt])<0&&Object.prototype.propertyIsEnumerable.call(be,qe[Rt])&&(ke[qe[Rt]]=be[qe[Rt]]);return ke};function ar(be){return be.filter(Oe=>Oe)}function Rr(be,Oe){if(be)return be;const ke=(0,Er.Z)(Oe).map(qe=>{if(_.isValidElement(qe)){const{key:Rt,props:kt}=qe,yr=kt||{},{tab:or}=yr,Nr=Ar(yr,["tab"]);return Object.assign(Object.assign({key:String(Rt)},Nr),{label:or})}return null});return ar(ke)}var fn=x(17313),En=x(83116),gn=x(37613),Rn=x(13826),Or=be=>{const{componentCls:Oe,motionDurationSlow:ke}=be;return[{[Oe]:{[`${Oe}-switch`]:{"&-appear, &-enter":{transition:"none","&-start":{opacity:0},"&-active":{opacity:1,transition:`opacity ${ke}`}},"&-leave":{position:"absolute",transition:"none",inset:0,"&-start":{opacity:1},"&-active":{opacity:0,transition:`opacity ${ke}`}}}}},[(0,Rn.oN)(be,"slide-up"),(0,Rn.oN)(be,"slide-down")]]};const bi=be=>{const{componentCls:Oe,tabsCardPadding:ke,cardBg:qe,cardGutter:Rt,colorBorderSecondary:kt,itemSelectedColor:yr}=be;return{[`${Oe}-card`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{[`${Oe}-tab`]:{margin:0,padding:ke,background:qe,border:`${be.lineWidth}px ${be.lineType} ${kt}`,transition:`all ${be.motionDurationSlow} ${be.motionEaseInOut}`},[`${Oe}-tab-active`]:{color:yr,background:be.colorBgContainer},[`${Oe}-ink-bar`]:{visibility:"hidden"}},[`&${Oe}-top, &${Oe}-bottom`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{[`${Oe}-tab + ${Oe}-tab`]:{marginLeft:{_skip_check_:!0,value:`${Rt}px`}}}},[`&${Oe}-top`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{[`${Oe}-tab`]:{borderRadius:`${be.borderRadiusLG}px ${be.borderRadiusLG}px 0 0`},[`${Oe}-tab-active`]:{borderBottomColor:be.colorBgContainer}}},[`&${Oe}-bottom`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{[`${Oe}-tab`]:{borderRadius:`0 0 ${be.borderRadiusLG}px ${be.borderRadiusLG}px`},[`${Oe}-tab-active`]:{borderTopColor:be.colorBgContainer}}},[`&${Oe}-left, &${Oe}-right`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{[`${Oe}-tab + ${Oe}-tab`]:{marginTop:`${Rt}px`}}},[`&${Oe}-left`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{[`${Oe}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be.borderRadiusLG}px 0 0 ${be.borderRadiusLG}px`}},[`${Oe}-tab-active`]:{borderRightColor:{_skip_check_:!0,value:be.colorBgContainer}}}},[`&${Oe}-right`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{[`${Oe}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be.borderRadiusLG}px ${be.borderRadiusLG}px 0`}},[`${Oe}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:be.colorBgContainer}}}}}}},ua=be=>{const{componentCls:Oe,itemHoverColor:ke,dropdownEdgeChildVerticalPadding:qe}=be;return{[`${Oe}-dropdown`]:Object.assign(Object.assign({},(0,fn.Wf)(be)),{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:be.zIndexPopup,display:"block","&-hidden":{display:"none"},[`${Oe}-dropdown-menu`]:{maxHeight:be.tabsDropdownHeight,margin:0,padding:`${qe}px 0`,overflowX:"hidden",overflowY:"auto",textAlign:{_skip_check_:!0,value:"left"},listStyleType:"none",backgroundColor:be.colorBgContainer,backgroundClip:"padding-box",borderRadius:be.borderRadiusLG,outline:"none",boxShadow:be.boxShadowSecondary,"&-item":Object.assign(Object.assign({},fn.vS),{display:"flex",alignItems:"center",minWidth:be.tabsDropdownWidth,margin:0,padding:`${be.paddingXXS}px ${be.paddingSM}px`,color:be.colorText,fontWeight:"normal",fontSize:be.fontSize,lineHeight:be.lineHeight,cursor:"pointer",transition:`all ${be.motionDurationSlow}`,"> span":{flex:1,whiteSpace:"nowrap"},"&-remove":{flex:"none",marginLeft:{_skip_check_:!0,value:be.marginSM},color:be.colorTextDescription,fontSize:be.fontSizeSM,background:"transparent",border:0,cursor:"pointer","&:hover":{color:ke}},"&:hover":{background:be.controlItemBgHover},"&-disabled":{"&, &:hover":{color:be.colorTextDisabled,background:"transparent",cursor:"not-allowed"}}})}})}},gi=be=>{const{componentCls:Oe,margin:ke,colorBorderSecondary:qe,horizontalMargin:Rt,verticalItemPadding:kt,verticalItemMargin:yr}=be;return{[`${Oe}-top, ${Oe}-bottom`]:{flexDirection:"column",[`> ${Oe}-nav, > div > ${Oe}-nav`]:{margin:Rt,"&::before":{position:"absolute",right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},borderBottom:`${be.lineWidth}px ${be.lineType} ${qe}`,content:"''"},[`${Oe}-ink-bar`]:{height:be.lineWidthBold,"&-animated":{transition:`width ${be.motionDurationSlow}, left ${be.motionDurationSlow},
|
|
|
right ${be.motionDurationSlow}`}},[`${Oe}-nav-wrap`]:{"&::before, &::after":{top:0,bottom:0,width:be.controlHeight},"&::before":{left:{_skip_check_:!0,value:0},boxShadow:be.boxShadowTabsOverflowLeft},"&::after":{right:{_skip_check_:!0,value:0},boxShadow:be.boxShadowTabsOverflowRight},[`&${Oe}-nav-wrap-ping-left::before`]:{opacity:1},[`&${Oe}-nav-wrap-ping-right::after`]:{opacity:1}}}},[`${Oe}-top`]:{[`> ${Oe}-nav,
|
|
|
> div > ${Oe}-nav`]:{"&::before":{bottom:0},[`${Oe}-ink-bar`]:{bottom:0}}},[`${Oe}-bottom`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{order:1,marginTop:`${ke}px`,marginBottom:0,"&::before":{top:0},[`${Oe}-ink-bar`]:{top:0}},[`> ${Oe}-content-holder, > div > ${Oe}-content-holder`]:{order:0}},[`${Oe}-left, ${Oe}-right`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{flexDirection:"column",minWidth:be.controlHeight*1.25,[`${Oe}-tab`]:{padding:kt,textAlign:"center"},[`${Oe}-tab + ${Oe}-tab`]:{margin:yr},[`${Oe}-nav-wrap`]:{flexDirection:"column","&::before, &::after":{right:{_skip_check_:!0,value:0},left:{_skip_check_:!0,value:0},height:be.controlHeight},"&::before":{top:0,boxShadow:be.boxShadowTabsOverflowTop},"&::after":{bottom:0,boxShadow:be.boxShadowTabsOverflowBottom},[`&${Oe}-nav-wrap-ping-top::before`]:{opacity:1},[`&${Oe}-nav-wrap-ping-bottom::after`]:{opacity:1}},[`${Oe}-ink-bar`]:{width:be.lineWidthBold,"&-animated":{transition:`height ${be.motionDurationSlow}, top ${be.motionDurationSlow}`}},[`${Oe}-nav-list, ${Oe}-nav-operations`]:{flex:"1 0 auto",flexDirection:"column"}}},[`${Oe}-left`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{[`${Oe}-ink-bar`]:{right:{_skip_check_:!0,value:0}}},[`> ${Oe}-content-holder, > div > ${Oe}-content-holder`]:{marginLeft:{_skip_check_:!0,value:`-${be.lineWidth}px`},borderLeft:{_skip_check_:!0,value:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`},[`> ${Oe}-content > ${Oe}-tabpane`]:{paddingLeft:{_skip_check_:!0,value:be.paddingLG}}}},[`${Oe}-right`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{order:1,[`${Oe}-ink-bar`]:{left:{_skip_check_:!0,value:0}}},[`> ${Oe}-content-holder, > div > ${Oe}-content-holder`]:{order:0,marginRight:{_skip_check_:!0,value:-be.lineWidth},borderRight:{_skip_check_:!0,value:`${be.lineWidth}px ${be.lineType} ${be.colorBorder}`},[`> ${Oe}-content > ${Oe}-tabpane`]:{paddingRight:{_skip_check_:!0,value:be.paddingLG}}}}}},ta=be=>{const{componentCls:Oe,cardPaddingSM:ke,cardPaddingLG:qe,horizontalItemPaddingSM:Rt,horizontalItemPaddingLG:kt}=be;return{[Oe]:{"&-small":{[`> ${Oe}-nav`]:{[`${Oe}-tab`]:{padding:Rt,fontSize:be.titleFontSizeSM}}},"&-large":{[`> ${Oe}-nav`]:{[`${Oe}-tab`]:{padding:kt,fontSize:be.titleFontSizeLG}}}},[`${Oe}-card`]:{[`&${Oe}-small`]:{[`> ${Oe}-nav`]:{[`${Oe}-tab`]:{padding:ke}},[`&${Oe}-bottom`]:{[`> ${Oe}-nav ${Oe}-tab`]:{borderRadius:`0 0 ${be.borderRadius}px ${be.borderRadius}px`}},[`&${Oe}-top`]:{[`> ${Oe}-nav ${Oe}-tab`]:{borderRadius:`${be.borderRadius}px ${be.borderRadius}px 0 0`}},[`&${Oe}-right`]:{[`> ${Oe}-nav ${Oe}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${be.borderRadius}px ${be.borderRadius}px 0`}}},[`&${Oe}-left`]:{[`> ${Oe}-nav ${Oe}-tab`]:{borderRadius:{_skip_check_:!0,value:`${be.borderRadius}px 0 0 ${be.borderRadius}px`}}}},[`&${Oe}-large`]:{[`> ${Oe}-nav`]:{[`${Oe}-tab`]:{padding:qe}}}}}},Ji=be=>{const{componentCls:Oe,itemActiveColor:ke,itemHoverColor:qe,iconCls:Rt,tabsHorizontalItemMargin:kt,horizontalItemPadding:yr,itemSelectedColor:or,itemColor:Nr}=be,zr=`${Oe}-tab`;return{[zr]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:yr,fontSize:be.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:Nr,"&-btn, &-remove":Object.assign({"&:focus:not(:focus-visible), &:active":{color:ke}},(0,fn.Qy)(be)),"&-btn":{outline:"none",transition:"all 0.3s"},"&-remove":{flex:"none",marginRight:{_skip_check_:!0,value:-be.marginXXS},marginLeft:{_skip_check_:!0,value:be.marginXS},color:be.colorTextDescription,fontSize:be.fontSizeSM,background:"transparent",border:"none",outline:"none",cursor:"pointer",transition:`all ${be.motionDurationSlow}`,"&:hover":{color:be.colorTextHeading}},"&:hover":{color:qe},[`&${zr}-active ${zr}-btn`]:{color:or,textShadow:be.tabsActiveTextShadow},[`&${zr}-disabled`]:{color:be.colorTextDisabled,cursor:"not-allowed"},[`&${zr}-disabled ${zr}-btn, &${zr}-disabled ${Oe}-remove`]:{"&:focus, &:active":{color:be.colorTextDisabled}},[`& ${zr}-remove ${Rt}`]:{margin:0},[Rt]:{marginRight:{_skip_check_:!0,value:be.marginSM}}},[`${zr} + ${zr}`]:{margin:{_skip_check_:!0,value:kt}}}},aa=be=>{const{componentCls:Oe,tabsHorizontalItemMarginRTL:ke,iconCls:qe,cardGutter:Rt}=be;return{[`${Oe}-rtl`]:{direction:"rtl",[`${Oe}-nav`]:{[`${Oe}-tab`]:{margin:{_skip_check_:!0,value:ke},[`${Oe}-tab:last-of-type`]:{marginLeft:{_skip_check_:!0,value:0}},[qe]:{marginRight:{_skip_check_:!0,value:0},marginLeft:{_skip_check_:!0,value:`${be.marginSM}px`}},[`${Oe}-tab-remove`]:{marginRight:{_skip_check_:!0,value:`${be.marginXS}px`},marginLeft:{_skip_check_:!0,value:`-${be.marginXXS}px`},[qe]:{margin:0}}}},[`&${Oe}-left`]:{[`> ${Oe}-nav`]:{order:1},[`> ${Oe}-content-holder`]:{order:0}},[`&${Oe}-right`]:{[`> ${Oe}-nav`]:{order:0},[`> ${Oe}-content-holder`]:{order:1}},[`&${Oe}-card${Oe}-top, &${Oe}-card${Oe}-bottom`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{[`${Oe}-tab + ${Oe}-tab`]:{marginRight:{_skip_check_:!0,value:Rt},marginLeft:{_skip_check_:!0,value:0}}}}},[`${Oe}-dropdown-rtl`]:{direction:"rtl"},[`${Oe}-menu-item`]:{[`${Oe}-dropdown-rtl`]:{textAlign:{_skip_check_:!0,value:"right"}}}}},Io=be=>{const{componentCls:Oe,tabsCardPadding:ke,cardHeight:qe,cardGutter:Rt,itemHoverColor:kt,itemActiveColor:yr,colorBorderSecondary:or}=be;return{[Oe]:Object.assign(Object.assign(Object.assign(Object.assign({},(0,fn.Wf)(be)),{display:"flex",[`> ${Oe}-nav, > div > ${Oe}-nav`]:{position:"relative",display:"flex",flex:"none",alignItems:"center",[`${Oe}-nav-wrap`]:{position:"relative",display:"flex",flex:"auto",alignSelf:"stretch",overflow:"hidden",whiteSpace:"nowrap",transform:"translate(0)","&::before, &::after":{position:"absolute",zIndex:1,opacity:0,transition:`opacity ${be.motionDurationSlow}`,content:"''",pointerEvents:"none"}},[`${Oe}-nav-list`]:{position:"relative",display:"flex",transition:`opacity ${be.motionDurationSlow}`},[`${Oe}-nav-operations`]:{display:"flex",alignSelf:"stretch"},[`${Oe}-nav-operations-hidden`]:{position:"absolute",visibility:"hidden",pointerEvents:"none"},[`${Oe}-nav-more`]:{position:"relative",padding:ke,background:"transparent",border:0,color:be.colorText,"&::after":{position:"absolute",right:{_skip_check_:!0,value:0},bottom:0,left:{_skip_check_:!0,value:0},height:be.controlHeightLG/8,transform:"translateY(100%)",content:"''"}},[`${Oe}-nav-add`]:Object.assign({minWidth:qe,marginLeft:{_skip_check_:!0,value:Rt},padding:`0 ${be.paddingXS}px`,background:"transparent",border:`${be.lineWidth}px ${be.lineType} ${or}`,borderRadius:`${be.borderRadiusLG}px ${be.borderRadiusLG}px 0 0`,outline:"none",cursor:"pointer",color:be.colorText,transition:`all ${be.motionDurationSlow} ${be.motionEaseInOut}`,"&:hover":{color:kt},"&:active, &:focus:not(:focus-visible)":{color:yr}},(0,fn.Qy)(be))},[`${Oe}-extra-content`]:{flex:"none"},[`${Oe}-ink-bar`]:{position:"absolute",background:be.inkBarColor,pointerEvents:"none"}}),Ji(be)),{[`${Oe}-content`]:{position:"relative",width:"100%"},[`${Oe}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${Oe}-tabpane`]:{outline:"none","&-hidden":{display:"none"}}}),[`${Oe}-centered`]:{[`> ${Oe}-nav, > div > ${Oe}-nav`]:{[`${Oe}-nav-wrap`]:{[`&:not([class*='${Oe}-nav-wrap-ping'])`]:{justifyContent:"center"}}}}}};var oa=(0,En.Z)("Tabs",be=>{const Oe=(0,gn.TS)(be,{tabsCardPadding:be.cardPadding||`${(be.cardHeight-Math.round(be.fontSize*be.lineHeight))/2-be.lineWidth}px ${be.padding}px`,dropdownEdgeChildVerticalPadding:be.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${be.horizontalItemGutter}px`,tabsHorizontalItemMarginRTL:`0 0 0 ${be.horizontalItemGutter}px`});return[ta(Oe),aa(Oe),gi(Oe),ua(Oe),bi(Oe),Io(Oe),Or(Oe)]},be=>{const Oe=be.controlHeightLG;return{zIndexPopup:be.zIndexPopupBase+50,cardBg:be.colorFillAlter,cardHeight:Oe,cardPadding:"",cardPaddingSM:`${be.paddingXXS*1.5}px ${be.padding}px`,cardPaddingLG:`${be.paddingXS}px ${be.padding}px ${be.paddingXXS*1.5}px`,titleFontSize:be.fontSize,titleFontSizeLG:be.fontSizeLG,titleFontSizeSM:be.fontSize,inkBarColor:be.colorPrimary,horizontalMargin:`0 0 ${be.margin}px 0`,horizontalItemGutter:32,horizontalItemMargin:"",horizontalItemMarginRTL:"",horizontalItemPadding:`${be.paddingSM}px 0`,horizontalItemPaddingSM:`${be.paddingXS}px 0`,horizontalItemPaddingLG:`${be.padding}px 0`,verticalItemPadding:`${be.paddingXS}px ${be.paddingLG}px`,verticalItemMargin:`${be.margin}px 0 0 0`,itemColor:be.colorText,itemSelectedColor:be.colorPrimary,itemHoverColor:be.colorPrimaryHover,itemActiveColor:be.colorPrimaryActive,cardGutter:be.marginXXS/2}}),pi=function(be,Oe){var ke={};for(var qe in be)Object.prototype.hasOwnProperty.call(be,qe)&&Oe.indexOf(qe)<0&&(ke[qe]=be[qe]);if(be!=null&&typeof Object.getOwnPropertySymbols=="function")for(var Rt=0,qe=Object.getOwnPropertySymbols(be);Rt<qe.length;Rt++)Oe.indexOf(qe[Rt])<0&&Object.prototype.propertyIsEnumerable.call(be,qe[Rt])&&(ke[qe[Rt]]=be[qe[Rt]]);return ke};const Ti=be=>{const{type:Oe,className:ke,rootClassName:qe,size:Rt,onEdit:kt,hideAdd:yr,centered:or,addIcon:Nr,popupClassName:zr,children:an,items:jr,animated:Qr,style:qr,indicatorSize:yn}=be,on=pi(be,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","popupClassName","children","items","animated","style","indicatorSize"]),{prefixCls:Dn,moreIcon:Qn=_.createElement(ue.Z,null)}=on,{direction:fi,tabs:On,getPrefixCls:An,getPopupContainer:Dt}=_.useContext(ct.E_),Kt=An("tabs",Dn),[Gt,Jt]=oa(Kt);let Zt;Oe==="editable-card"&&(Zt={onEdit:(si,ti)=>{let{key:Bi,event:Yn}=ti;kt==null||kt(si==="add"?Yn:Bi,si)},removeIcon:_.createElement(ve.Z,null),addIcon:Nr||_.createElement(T.Z,null),showAdd:yr!==!0});const Dr=An(),Fr=Rr(jr,an),Xr=Lr(Kt,Qr),Fn=(0,Tt.Z)(Rt),Nn=Object.assign(Object.assign({},On==null?void 0:On.style),qr);return Gt(_.createElement(Le,Object.assign({direction:fi,getPopupContainer:Dt,moreTransitionName:`${Dr}-slide-up`},on,{items:Fr,className:re()({[`${Kt}-${Fn}`]:Fn,[`${Kt}-card`]:["card","editable-card"].includes(Oe),[`${Kt}-editable-card`]:Oe==="editable-card",[`${Kt}-centered`]:or},On==null?void 0:On.className,ke,qe,Jt),popupClassName:re()(zr,Jt),style:Nn,editable:Zt,moreIcon:Qn,prefixCls:Kt,animated:Xr,indicatorSize:yn!=null?yn:On==null?void 0:On.indicatorSize})))};Ti.TabPane=Yt;var zi=Ti},17574:function(dn,Ut,x){"use strict";x.d(Ut,{default:function(){return Me}});var ve=x(60091),ue=x(94480),T=x(52671),De=x(8657),re=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"},m=S,I=x(7657),g=function(Ee,rt){return W.createElement(I.Z,(0,re.Z)({},Ee,{ref:rt,icon:m}))},$=W.forwardRef(g),_=$,F=x(92310),P=x.n(F),U=x(35654),M=x(71430),Y=x(36355),Q=x(56082),ae=x(62892),ie=x(20648);const J=4;function G(fe){const{dropPosition:Ee,dropLevelOffset:rt,prefixCls:ot,indent:We,direction:et="ltr"}=fe,_t=et==="ltr"?"left":"right",Ot=et==="ltr"?"right":"left",Pt={[_t]:-rt*We+J,[Ot]:0};switch(Ee){case-1:Pt.top=-3;break;case 1:Pt.bottom=-3;break;default:Pt.bottom=-3,Pt[_t]=We+J;break}return W.createElement("div",{style:Pt,className:`${ot}-drop-indicator`})}var j=x(71997),he=W.forwardRef((fe,Ee)=>{const{getPrefixCls:rt,direction:ot,virtual:We,tree:et}=W.useContext(Y.E_),{prefixCls:_t,className:Ot,showIcon:Pt=!1,showLine:cr,switcherIcon:nr,blockNode:br=!1,children:sr,checkable:k=!1,selectable:Xe=!0,draggable:N,motion:b,style:f}=fe,C=rt("tree",_t),ee=rt(),Se=b!=null?b:Object.assign(Object.assign({},(0,ae.Z)(ee)),{motionAppear:!1}),H=Object.assign(Object.assign({},fe),{checkable:k,selectable:Xe,showIcon:Pt,motion:Se,blockNode:br,showLine:!!cr,dropIndicatorRender:G}),[ne,Qe]=(0,ie.ZP)(C),we=W.useMemo(()=>{if(!N)return!1;let je={};switch(typeof N){case"function":je.nodeDraggable=N;break;case"object":je=Object.assign({},N);break;default:break}return je.icon!==!1&&(je.icon=je.icon||W.createElement(Q.Z,null)),je},[N]),ye=je=>W.createElement(j.Z,{prefixCls:C,switcherIcon:nr,treeNodeProps:je,showLine:cr});return ne(W.createElement(ve.Z,Object.assign({itemHeight:20,ref:Ee,virtual:We},H,{style:Object.assign(Object.assign({},et==null?void 0:et.style),f),prefixCls:C,className:P()({[`${C}-icon-hide`]:!Pt,[`${C}-block-node`]:br,[`${C}-unselectable`]:!Xe,[`${C}-rtl`]:ot==="rtl"},et==null?void 0:et.className,Ot,Qe),direction:ot,checkable:k&&W.createElement("span",{className:`${C}-checkbox-inner`}),selectable:Xe,switcherIcon:ye,draggable:we}),sr))}),Ne;(function(fe){fe[fe.None=0]="None",fe[fe.Start=1]="Start",fe[fe.End=2]="End"})(Ne||(Ne={}));function Be(fe,Ee){function rt(ot){const{key:We,children:et}=ot;Ee(We,ot)!==!1&&Be(et||[],Ee)}fe.forEach(rt)}function Pe(fe){let{treeData:Ee,expandedKeys:rt,startKey:ot,endKey:We}=fe;const et=[];let _t=Ne.None;if(ot&&ot===We)return[ot];if(!ot||!We)return[];function Ot(Pt){return Pt===ot||Pt===We}return Be(Ee,Pt=>{if(_t===Ne.End)return!1;if(Ot(Pt)){if(et.push(Pt),_t===Ne.None)_t=Ne.Start;else if(_t===Ne.Start)return _t=Ne.End,!1}else _t===Ne.Start&&et.push(Pt);return rt.includes(Pt)}),et}function q(fe,Ee){const rt=(0,ue.Z)(Ee),ot=[];return Be(fe,(We,et)=>{const _t=rt.indexOf(We);return _t!==-1&&(ot.push(et),rt.splice(_t,1)),!!rt.length}),ot}var Ae=function(fe,Ee){var rt={};for(var ot in fe)Object.prototype.hasOwnProperty.call(fe,ot)&&Ee.indexOf(ot)<0&&(rt[ot]=fe[ot]);if(fe!=null&&typeof Object.getOwnPropertySymbols=="function")for(var We=0,ot=Object.getOwnPropertySymbols(fe);We<ot.length;We++)Ee.indexOf(ot[We])<0&&Object.prototype.propertyIsEnumerable.call(fe,ot[We])&&(rt[ot[We]]=fe[ot[We]]);return rt};function D(fe){const{isLeaf:Ee,expanded:rt}=fe;return Ee?W.createElement(T.Z,null):rt?W.createElement(De.Z,null):W.createElement(_,null)}function Je(fe){let{treeData:Ee,children:rt}=fe;return Ee||(0,M.zn)(rt)}const Fe=(fe,Ee)=>{var{defaultExpandAll:rt,defaultExpandParent:ot,defaultExpandedKeys:We}=fe,et=Ae(fe,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const _t=W.useRef(),Ot=W.useRef(),Pt=()=>{const{keyEntities:we}=(0,M.I8)(Je(et));let ye;return rt?ye=Object.keys(we):ot?ye=(0,U.r7)(et.expandedKeys||We||[],we):ye=et.expandedKeys||We,ye},[cr,nr]=W.useState(et.selectedKeys||et.defaultSelectedKeys||[]),[br,sr]=W.useState(()=>Pt());W.useEffect(()=>{"selectedKeys"in et&&nr(et.selectedKeys)},[et.selectedKeys]),W.useEffect(()=>{"expandedKeys"in et&&sr(et.expandedKeys)},[et.expandedKeys]);const k=(we,ye)=>{var je;return"expandedKeys"in et||sr(we),(je=et.onExpand)===null||je===void 0?void 0:je.call(et,we,ye)},Xe=(we,ye)=>{var je;const{multiple:mt}=et,{node:ge,nativeEvent:st}=ye,{key:ze=""}=ge,Ie=Je(et),Le=Object.assign(Object.assign({},ye),{selected:!0}),ct=(st==null?void 0:st.ctrlKey)||(st==null?void 0:st.metaKey),Tt=st==null?void 0:st.shiftKey;let Mt;mt&&ct?(Mt=we,_t.current=ze,Ot.current=Mt,Le.selectedNodes=q(Ie,Mt)):mt&&Tt?(Mt=Array.from(new Set([].concat((0,ue.Z)(Ot.current||[]),(0,ue.Z)(Pe({treeData:Ie,expandedKeys:br,startKey:ze,endKey:_t.current}))))),Le.selectedNodes=q(Ie,Mt)):(Mt=[ze],_t.current=ze,Ot.current=Mt,Le.selectedNodes=q(Ie,Mt)),(je=et.onSelect)===null||je===void 0||je.call(et,Mt,Le),"selectedKeys"in et||nr(Mt)},{getPrefixCls:N,direction:b}=W.useContext(Y.E_),{prefixCls:f,className:C,showIcon:ee=!0,expandAction:Se="click"}=et,H=Ae(et,["prefixCls","className","showIcon","expandAction"]),ne=N("tree",f),Qe=P()(`${ne}-directory`,{[`${ne}-directory-rtl`]:b==="rtl"},C);return W.createElement(he,Object.assign({icon:D,ref:Ee,blockNode:!0},H,{showIcon:ee,expandAction:Se,prefixCls:ne,className:Qe,expandedKeys:br,selectedKeys:cr,onSelect:Xe,onExpand:k}))};var Ue=W.forwardRef(Fe);const me=he;me.DirectoryTree=Ue,me.TreeNode=ve.O;var Me=me},20648:function(dn,Ut,x){"use strict";x.d(Ut,{TM:function(){return F},Yk:function(){return _}});var ve=x(36237),ue=x(98447),T=x(17313),De=x(8378),re=x(37613),W=x(83116);const S=new ve.Keyframes("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),m=(P,U)=>({[`.${P}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${U.motionDurationSlow}`}}}),I=(P,U)=>({[`.${P}-drop-indicator`]:{position:"absolute",zIndex:1,height:2,backgroundColor:U.colorPrimary,borderRadius:1,pointerEvents:"none","&:after":{position:"absolute",top:-3,insetInlineStart:-6,width:8,height:8,backgroundColor:"transparent",border:`${U.lineWidthBold}px solid ${U.colorPrimary}`,borderRadius:"50%",content:'""'}}}),g=(P,U)=>{const{treeCls:M,treeNodeCls:Y,treeNodePadding:Q,titleHeight:ae,nodeSelectedBg:ie,nodeHoverBg:J}=U,G=U.paddingXS;return{[M]:Object.assign(Object.assign({},(0,T.Wf)(U)),{background:U.colorBgContainer,borderRadius:U.borderRadius,transition:`background-color ${U.motionDurationSlow}`,[`&${M}-rtl`]:{[`${M}-switcher`]:{"&_close":{[`${M}-switcher-icon`]:{svg:{transform:"rotate(90deg)"}}}}},[`&-focused:not(:hover):not(${M}-active-focused)`]:Object.assign({},(0,T.oN)(U)),[`${M}-list-holder-inner`]:{alignItems:"flex-start"},[`&${M}-block-node`]:{[`${M}-list-holder-inner`]:{alignItems:"stretch",[`${M}-node-content-wrapper`]:{flex:"auto"},[`${Y}.dragging`]:{position:"relative","&:after":{position:"absolute",top:0,insetInlineEnd:0,bottom:Q,insetInlineStart:0,border:`1px solid ${U.colorPrimary}`,opacity:0,animationName:S,animationDuration:U.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none"}}}},[`${Y}`]:{display:"flex",alignItems:"flex-start",padding:`0 0 ${Q}px 0`,outline:"none","&-rtl":{direction:"rtl"},"&-disabled":{[`${M}-node-content-wrapper`]:{color:U.colorTextDisabled,cursor:"not-allowed","&:hover":{background:"transparent"}}},[`&-active ${M}-node-content-wrapper`]:Object.assign({},(0,T.oN)(U)),[`&:not(${Y}-disabled).filter-node ${M}-title`]:{color:"inherit",fontWeight:500},"&-draggable":{[`${M}-draggable-icon`]:{flexShrink:0,width:ae,lineHeight:`${ae}px`,textAlign:"center",visibility:"visible",opacity:.2,transition:`opacity ${U.motionDurationSlow}`,[`${Y}:hover &`]:{opacity:.45}},[`&${Y}-disabled`]:{[`${M}-draggable-icon`]:{visibility:"hidden"}}}},[`${M}-indent`]:{alignSelf:"stretch",whiteSpace:"nowrap",userSelect:"none","&-unit":{display:"inline-block",width:ae}},[`${M}-draggable-icon`]:{visibility:"hidden"},[`${M}-switcher`]:Object.assign(Object.assign({},m(P,U)),{position:"relative",flex:"none",alignSelf:"stretch",width:ae,margin:0,lineHeight:`${ae}px`,textAlign:"center",cursor:"pointer",userSelect:"none","&-noop":{cursor:"default"},"&_close":{[`${M}-switcher-icon`]:{svg:{transform:"rotate(-90deg)"}}},"&-loading-icon":{color:U.colorPrimary},"&-leaf-line":{position:"relative",zIndex:1,display:"inline-block",width:"100%",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ae/2,bottom:-Q,marginInlineStart:-1,borderInlineEnd:`1px solid ${U.colorBorder}`,content:'""'},"&:after":{position:"absolute",width:ae/2*.8,height:ae/2,borderBottom:`1px solid ${U.colorBorder}`,content:'""'}}}),[`${M}-checkbox`]:{top:"initial",marginInlineEnd:G},[`${M}-node-content-wrapper, ${M}-checkbox + span`]:{position:"relative",zIndex:"auto",minHeight:ae,margin:0,padding:`0 ${U.paddingXS/2}px`,color:"inherit",lineHeight:`${ae}px`,background:"transparent",borderRadius:U.borderRadius,cursor:"pointer",transition:`all ${U.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`,"&:hover":{backgroundColor:J},[`&${M}-node-selected`]:{backgroundColor:ie},[`${M}-iconEle`]:{display:"inline-block",width:ae,height:ae,lineHeight:`${ae}px`,textAlign:"center",verticalAlign:"top","&:empty":{display:"none"}}},[`${M}-unselectable ${M}-node-content-wrapper:hover`]:{backgroundColor:"transparent"},[`${M}-node-content-wrapper`]:Object.assign({lineHeight:`${ae}px`,userSelect:"none"},I(P,U)),[`${Y}.drop-container`]:{"> [draggable]":{boxShadow:`0 0 0 2px ${U.colorPrimary}`}},"&-show-line":{[`${M}-indent`]:{"&-unit":{position:"relative",height:"100%","&:before":{position:"absolute",top:0,insetInlineEnd:ae/2,bottom:-Q,borderInlineEnd:`1px solid ${U.colorBorder}`,content:'""'},"&-end":{"&:before":{display:"none"}}}},[`${M}-switcher`]:{background:"transparent","&-line-icon":{verticalAlign:"-0.15em"}}},[`${Y}-leaf-last`]:{[`${M}-switcher`]:{"&-leaf-line":{"&:before":{top:"auto !important",bottom:"auto !important",height:`${ae/2}px !important`}}}}})}},$=P=>{const{treeCls:U,treeNodeCls:M,treeNodePadding:Y,directoryNodeSelectedBg:Q,directoryNodeSelectedColor:ae}=P;return{[`${U}${U}-directory`]:{[M]:{position:"relative","&:before":{position:"absolute",top:0,insetInlineEnd:0,bottom:Y,insetInlineStart:0,transition:`background-color ${P.motionDurationMid}`,content:'""',pointerEvents:"none"},"&:hover":{"&:before":{background:P.controlItemBgHover}},"> *":{zIndex:1},[`${U}-switcher`]:{transition:`color ${P.motionDurationMid}`},[`${U}-node-content-wrapper`]:{borderRadius:0,userSelect:"none","&:hover":{background:"transparent"},[`&${U}-node-selected`]:{color:ae,background:"transparent"}},"&-selected":{"\n &:hover::before,\n &::before\n ":{background:Q},[`${U}-switcher`]:{color:ae},[`${U}-node-content-wrapper`]:{color:ae,background:"transparent"}}}}}},_=(P,U)=>{const M=`.${P}`,Y=`${M}-treenode`,Q=U.paddingXS/2,ae=(0,re.TS)(U,{treeCls:M,treeNodeCls:Y,treeNodePadding:Q});return[g(P,ae),$(ae)]},F=P=>{const{controlHeightSM:U}=P;return{titleHeight:U,nodeHoverBg:P.controlItemBgHover,nodeSelectedBg:P.controlItemBgActive}};Ut.ZP=(0,W.Z)("Tree",(P,U)=>{let{prefixCls:M}=U;return[{[P.componentCls]:(0,ue.C2)(`${M}-checkbox`,P)},_(M,P),(0,De.Z)(P)]},P=>{const{colorTextLightSolid:U,colorPrimary:M}=P;return Object.assign(Object.assign({},F(P)),{directoryNodeSelectedColor:U,directoryNodeSelectedBg:M})})},71997:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return Y}});var ve=x(54476),ue=x(59301),T={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M840.4 300H183.6c-19.7 0-30.7 20.8-18.5 35l328.4 380.8c9.4 10.9 27.5 10.9 37 0L858.9 335c12.2-14.2 1.2-35-18.5-35z"}}]},name:"caret-down",theme:"filled"},De=T,re=x(7657),W=function(ae,ie){return ue.createElement(re.Z,(0,ve.Z)({},ae,{ref:ie,icon:De}))},S=ue.forwardRef(W),m=S,I=x(52671),g=x(58617),$=x(15075),_=x(43531),F=x(92310),P=x.n(F),U=x(92343),Y=Q=>{const{prefixCls:ae,switcherIcon:ie,treeNodeProps:J,showLine:G}=Q,{isLeaf:j,expanded:se,loading:he}=J;if(he)return ue.createElement(g.Z,{className:`${ae}-switcher-loading-icon`});let Ne;if(G&&typeof G=="object"&&(Ne=G.showLeafIcon),j){if(!G)return null;if(typeof Ne!="boolean"&&Ne){const q=typeof Ne=="function"?Ne(J):Ne,Ae=`${ae}-switcher-line-custom-icon`;return(0,U.l$)(q)?(0,U.Tm)(q,{className:P()(q.props.className||"",Ae)}):q}return Ne?ue.createElement(I.Z,{className:`${ae}-switcher-line-icon`}):ue.createElement("span",{className:`${ae}-switcher-leaf-line`})}const Be=`${ae}-switcher-icon`,Pe=typeof ie=="function"?ie(J):ie;return(0,U.l$)(Pe)?(0,U.Tm)(Pe,{className:P()(Pe.props.className||"",Be)}):Pe!==void 0?Pe:G?se?ue.createElement($.Z,{className:`${ae}-switcher-line-icon`}):ue.createElement(_.Z,{className:`${ae}-switcher-line-icon`}):ue.createElement(m,{className:Be})}},86251:function(dn,Ut){"use strict";Ut.byteLength=S,Ut.toByteArray=I,Ut.fromByteArray=_;for(var x=[],ve=[],ue=typeof Uint8Array!="undefined"?Uint8Array:Array,T="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",De=0,re=T.length;De<re;++De)x[De]=T[De],ve[T.charCodeAt(De)]=De;ve[45]=62,ve[95]=63;function W(F){var P=F.length;if(P%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var U=F.indexOf("=");U===-1&&(U=P);var M=U===P?0:4-U%4;return[U,M]}function S(F){var P=W(F),U=P[0],M=P[1];return(U+M)*3/4-M}function m(F,P,U){return(P+U)*3/4-U}function I(F){var P,U=W(F),M=U[0],Y=U[1],Q=new ue(m(F,M,Y)),ae=0,ie=Y>0?M-4:M,J;for(J=0;J<ie;J+=4)P=ve[F.charCodeAt(J)]<<18|ve[F.charCodeAt(J+1)]<<12|ve[F.charCodeAt(J+2)]<<6|ve[F.charCodeAt(J+3)],Q[ae++]=P>>16&255,Q[ae++]=P>>8&255,Q[ae++]=P&255;return Y===2&&(P=ve[F.charCodeAt(J)]<<2|ve[F.charCodeAt(J+1)]>>4,Q[ae++]=P&255),Y===1&&(P=ve[F.charCodeAt(J)]<<10|ve[F.charCodeAt(J+1)]<<4|ve[F.charCodeAt(J+2)]>>2,Q[ae++]=P>>8&255,Q[ae++]=P&255),Q}function g(F){return x[F>>18&63]+x[F>>12&63]+x[F>>6&63]+x[F&63]}function $(F,P,U){for(var M,Y=[],Q=P;Q<U;Q+=3)M=(F[Q]<<16&16711680)+(F[Q+1]<<8&65280)+(F[Q+2]&255),Y.push(g(M));return Y.join("")}function _(F){for(var P,U=F.length,M=U%3,Y=[],Q=16383,ae=0,ie=U-M;ae<ie;ae+=Q)Y.push($(F,ae,ae+Q>ie?ie:ae+Q));return M===1?(P=F[U-1],Y.push(x[P>>2]+x[P<<4&63]+"==")):M===2&&(P=(F[U-2]<<8)+F[U-1],Y.push(x[P>>10]+x[P>>4&63]+x[P<<2&63]+"=")),Y.join("")}},19208:function(dn,Ut,x){"use strict";var ve;var ue=x(86251),T=x(67467),De=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Ut.lW=m,ve=ae,Ut.h2=50;var re=2147483647;ve=re,m.TYPED_ARRAY_SUPPORT=W(),!m.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 N=new Uint8Array(1),b={foo:function(){return 42}};return Object.setPrototypeOf(b,Uint8Array.prototype),Object.setPrototypeOf(N,b),N.foo()===42}catch(f){return!1}}Object.defineProperty(m.prototype,"parent",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.buffer}}),Object.defineProperty(m.prototype,"offset",{enumerable:!0,get:function(){if(m.isBuffer(this))return this.byteOffset}});function S(N){if(N>re)throw new RangeError('The value "'+N+'" is invalid for option "size"');var b=new Uint8Array(N);return Object.setPrototypeOf(b,m.prototype),b}function m(N,b,f){if(typeof N=="number"){if(typeof b=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return _(N)}return I(N,b,f)}m.poolSize=8192;function I(N,b,f){if(typeof N=="string")return F(N,b);if(ArrayBuffer.isView(N))return U(N);if(N==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N);if(sr(N,ArrayBuffer)||N&&sr(N.buffer,ArrayBuffer)||typeof SharedArrayBuffer!="undefined"&&(sr(N,SharedArrayBuffer)||N&&sr(N.buffer,SharedArrayBuffer)))return M(N,b,f);if(typeof N=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');var C=N.valueOf&&N.valueOf();if(C!=null&&C!==N)return m.from(C,b,f);var ee=Y(N);if(ee)return ee;if(typeof Symbol!="undefined"&&Symbol.toPrimitive!=null&&typeof N[Symbol.toPrimitive]=="function")return m.from(N[Symbol.toPrimitive]("string"),b,f);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof N)}m.from=function(N,b,f){return I(N,b,f)},Object.setPrototypeOf(m.prototype,Uint8Array.prototype),Object.setPrototypeOf(m,Uint8Array);function g(N){if(typeof N!="number")throw new TypeError('"size" argument must be of type number');if(N<0)throw new RangeError('The value "'+N+'" is invalid for option "size"')}function $(N,b,f){return g(N),N<=0?S(N):b!==void 0?typeof f=="string"?S(N).fill(b,f):S(N).fill(b):S(N)}m.alloc=function(N,b,f){return $(N,b,f)};function _(N){return g(N),S(N<0?0:Q(N)|0)}m.allocUnsafe=function(N){return _(N)},m.allocUnsafeSlow=function(N){return _(N)};function F(N,b){if((typeof b!="string"||b==="")&&(b="utf8"),!m.isEncoding(b))throw new TypeError("Unknown encoding: "+b);var f=ie(N,b)|0,C=S(f),ee=C.write(N,b);return ee!==f&&(C=C.slice(0,ee)),C}function P(N){for(var b=N.length<0?0:Q(N.length)|0,f=S(b),C=0;C<b;C+=1)f[C]=N[C]&255;return f}function U(N){if(sr(N,Uint8Array)){var b=new Uint8Array(N);return M(b.buffer,b.byteOffset,b.byteLength)}return P(N)}function M(N,b,f){if(b<0||N.byteLength<b)throw new RangeError('"offset" is outside of buffer bounds');if(N.byteLength<b+(f||0))throw new RangeError('"length" is outside of buffer bounds');var C;return b===void 0&&f===void 0?C=new Uint8Array(N):f===void 0?C=new Uint8Array(N,b):C=new Uint8Array(N,b,f),Object.setPrototypeOf(C,m.prototype),C}function Y(N){if(m.isBuffer(N)){var b=Q(N.length)|0,f=S(b);return f.length===0||N.copy(f,0,0,b),f}if(N.length!==void 0)return typeof N.length!="number"||k(N.length)?S(0):P(N);if(N.type==="Buffer"&&Array.isArray(N.data))return P(N.data)}function Q(N){if(N>=re)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+re.toString(16)+" bytes");return N|0}function ae(N){return+N!=N&&(N=0),m.alloc(+N)}m.isBuffer=function(b){return b!=null&&b._isBuffer===!0&&b!==m.prototype},m.compare=function(b,f){if(sr(b,Uint8Array)&&(b=m.from(b,b.offset,b.byteLength)),sr(f,Uint8Array)&&(f=m.from(f,f.offset,f.byteLength)),!m.isBuffer(b)||!m.isBuffer(f))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(b===f)return 0;for(var C=b.length,ee=f.length,Se=0,H=Math.min(C,ee);Se<H;++Se)if(b[Se]!==f[Se]){C=b[Se],ee=f[Se];break}return C<ee?-1:ee<C?1:0},m.isEncoding=function(b){switch(String(b).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}},m.concat=function(b,f){if(!Array.isArray(b))throw new TypeError('"list" argument must be an Array of Buffers');if(b.length===0)return m.alloc(0);var C;if(f===void 0)for(f=0,C=0;C<b.length;++C)f+=b[C].length;var ee=m.allocUnsafe(f),Se=0;for(C=0;C<b.length;++C){var H=b[C];if(sr(H,Uint8Array))Se+H.length>ee.length?m.from(H).copy(ee,Se):Uint8Array.prototype.set.call(ee,H,Se);else if(m.isBuffer(H))H.copy(ee,Se);else throw new TypeError('"list" argument must be an Array of Buffers');Se+=H.length}return ee};function ie(N,b){if(m.isBuffer(N))return N.length;if(ArrayBuffer.isView(N)||sr(N,ArrayBuffer))return N.byteLength;if(typeof N!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof N);var f=N.length,C=arguments.length>2&&arguments[2]===!0;if(!C&&f===0)return 0;for(var ee=!1;;)switch(b){case"ascii":case"latin1":case"binary":return f;case"utf8":case"utf-8":return Ot(N).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return f*2;case"hex":return f>>>1;case"base64":return nr(N).length;default:if(ee)return C?-1:Ot(N).length;b=(""+b).toLowerCase(),ee=!0}}m.byteLength=ie;function J(N,b,f){var C=!1;if((b===void 0||b<0)&&(b=0),b>this.length||((f===void 0||f>this.length)&&(f=this.length),f<=0)||(f>>>=0,b>>>=0,f<=b))return"";for(N||(N="utf8");;)switch(N){case"hex":return me(this,b,f);case"utf8":case"utf-8":return D(this,b,f);case"ascii":return Ce(this,b,f);case"latin1":case"binary":return Ue(this,b,f);case"base64":return Ae(this,b,f);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Me(this,b,f);default:if(C)throw new TypeError("Unknown encoding: "+N);N=(N+"").toLowerCase(),C=!0}}m.prototype._isBuffer=!0;function G(N,b,f){var C=N[b];N[b]=N[f],N[f]=C}m.prototype.swap16=function(){var b=this.length;if(b%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var f=0;f<b;f+=2)G(this,f,f+1);return this},m.prototype.swap32=function(){var b=this.length;if(b%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var f=0;f<b;f+=4)G(this,f,f+3),G(this,f+1,f+2);return this},m.prototype.swap64=function(){var b=this.length;if(b%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var f=0;f<b;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},m.prototype.toString=function(){var b=this.length;return b===0?"":arguments.length===0?D(this,0,b):J.apply(this,arguments)},m.prototype.toLocaleString=m.prototype.toString,m.prototype.equals=function(b){if(!m.isBuffer(b))throw new TypeError("Argument must be a Buffer");return this===b?!0:m.compare(this,b)===0},m.prototype.inspect=function(){var b="",f=Ut.h2;return b=this.toString("hex",0,f).replace(/(.{2})/g,"$1 ").trim(),this.length>f&&(b+=" ... "),"<Buffer "+b+">"},De&&(m.prototype[De]=m.prototype.inspect),m.prototype.compare=function(b,f,C,ee,Se){if(sr(b,Uint8Array)&&(b=m.from(b,b.offset,b.byteLength)),!m.isBuffer(b))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof b);if(f===void 0&&(f=0),C===void 0&&(C=b?b.length:0),ee===void 0&&(ee=0),Se===void 0&&(Se=this.length),f<0||C>b.length||ee<0||Se>this.length)throw new RangeError("out of range index");if(ee>=Se&&f>=C)return 0;if(ee>=Se)return-1;if(f>=C)return 1;if(f>>>=0,C>>>=0,ee>>>=0,Se>>>=0,this===b)return 0;for(var H=Se-ee,ne=C-f,Qe=Math.min(H,ne),we=this.slice(ee,Se),ye=b.slice(f,C),je=0;je<Qe;++je)if(we[je]!==ye[je]){H=we[je],ne=ye[je];break}return H<ne?-1:ne<H?1:0};function j(N,b,f,C,ee){if(N.length===0)return-1;if(typeof f=="string"?(C=f,f=0):f>2147483647?f=2147483647:f<-2147483648&&(f=-2147483648),f=+f,k(f)&&(f=ee?0:N.length-1),f<0&&(f=N.length+f),f>=N.length){if(ee)return-1;f=N.length-1}else if(f<0)if(ee)f=0;else return-1;if(typeof b=="string"&&(b=m.from(b,C)),m.isBuffer(b))return b.length===0?-1:se(N,b,f,C,ee);if(typeof b=="number")return b=b&255,typeof Uint8Array.prototype.indexOf=="function"?ee?Uint8Array.prototype.indexOf.call(N,b,f):Uint8Array.prototype.lastIndexOf.call(N,b,f):se(N,[b],f,C,ee);throw new TypeError("val must be string, number or Buffer")}function se(N,b,f,C,ee){var Se=1,H=N.length,ne=b.length;if(C!==void 0&&(C=String(C).toLowerCase(),C==="ucs2"||C==="ucs-2"||C==="utf16le"||C==="utf-16le")){if(N.length<2||b.length<2)return-1;Se=2,H/=2,ne/=2,f/=2}function Qe(ge,st){return Se===1?ge[st]:ge.readUInt16BE(st*Se)}var we;if(ee){var ye=-1;for(we=f;we<H;we++)if(Qe(N,we)===Qe(b,ye===-1?0:we-ye)){if(ye===-1&&(ye=we),we-ye+1===ne)return ye*Se}else ye!==-1&&(we-=we-ye),ye=-1}else for(f+ne>H&&(f=H-ne),we=f;we>=0;we--){for(var je=!0,mt=0;mt<ne;mt++)if(Qe(N,we+mt)!==Qe(b,mt)){je=!1;break}if(je)return we}return-1}m.prototype.includes=function(b,f,C){return this.indexOf(b,f,C)!==-1},m.prototype.indexOf=function(b,f,C){return j(this,b,f,C,!0)},m.prototype.lastIndexOf=function(b,f,C){return j(this,b,f,C,!1)};function he(N,b,f,C){f=Number(f)||0;var ee=N.length-f;C?(C=Number(C),C>ee&&(C=ee)):C=ee;var Se=b.length;C>Se/2&&(C=Se/2);for(var H=0;H<C;++H){var ne=parseInt(b.substr(H*2,2),16);if(k(ne))return H;N[f+H]=ne}return H}function Ne(N,b,f,C){return br(Ot(b,N.length-f),N,f,C)}function Be(N,b,f,C){return br(Pt(b),N,f,C)}function Pe(N,b,f,C){return br(nr(b),N,f,C)}function q(N,b,f,C){return br(cr(b,N.length-f),N,f,C)}m.prototype.write=function(b,f,C,ee){if(f===void 0)ee="utf8",C=this.length,f=0;else if(C===void 0&&typeof f=="string")ee=f,C=this.length,f=0;else if(isFinite(f))f=f>>>0,isFinite(C)?(C=C>>>0,ee===void 0&&(ee="utf8")):(ee=C,C=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var Se=this.length-f;if((C===void 0||C>Se)&&(C=Se),b.length>0&&(C<0||f<0)||f>this.length)throw new RangeError("Attempt to write outside buffer bounds");ee||(ee="utf8");for(var H=!1;;)switch(ee){case"hex":return he(this,b,f,C);case"utf8":case"utf-8":return Ne(this,b,f,C);case"ascii":case"latin1":case"binary":return Be(this,b,f,C);case"base64":return Pe(this,b,f,C);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return q(this,b,f,C);default:if(H)throw new TypeError("Unknown encoding: "+ee);ee=(""+ee).toLowerCase(),H=!0}},m.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Ae(N,b,f){return b===0&&f===N.length?ue.fromByteArray(N):ue.fromByteArray(N.slice(b,f))}function D(N,b,f){f=Math.min(N.length,f);for(var C=[],ee=b;ee<f;){var Se=N[ee],H=null,ne=Se>239?4:Se>223?3:Se>191?2:1;if(ee+ne<=f){var Qe,we,ye,je;switch(ne){case 1:Se<128&&(H=Se);break;case 2:Qe=N[ee+1],(Qe&192)===128&&(je=(Se&31)<<6|Qe&63,je>127&&(H=je));break;case 3:Qe=N[ee+1],we=N[ee+2],(Qe&192)===128&&(we&192)===128&&(je=(Se&15)<<12|(Qe&63)<<6|we&63,je>2047&&(je<55296||je>57343)&&(H=je));break;case 4:Qe=N[ee+1],we=N[ee+2],ye=N[ee+3],(Qe&192)===128&&(we&192)===128&&(ye&192)===128&&(je=(Se&15)<<18|(Qe&63)<<12|(we&63)<<6|ye&63,je>65535&&je<1114112&&(H=je))}}H===null?(H=65533,ne=1):H>65535&&(H-=65536,C.push(H>>>10&1023|55296),H=56320|H&1023),C.push(H),ee+=ne}return Fe(C)}var Je=4096;function Fe(N){var b=N.length;if(b<=Je)return String.fromCharCode.apply(String,N);for(var f="",C=0;C<b;)f+=String.fromCharCode.apply(String,N.slice(C,C+=Je));return f}function Ce(N,b,f){var C="";f=Math.min(N.length,f);for(var ee=b;ee<f;++ee)C+=String.fromCharCode(N[ee]&127);return C}function Ue(N,b,f){var C="";f=Math.min(N.length,f);for(var ee=b;ee<f;++ee)C+=String.fromCharCode(N[ee]);return C}function me(N,b,f){var C=N.length;(!b||b<0)&&(b=0),(!f||f<0||f>C)&&(f=C);for(var ee="",Se=b;Se<f;++Se)ee+=Xe[N[Se]];return ee}function Me(N,b,f){for(var C=N.slice(b,f),ee="",Se=0;Se<C.length-1;Se+=2)ee+=String.fromCharCode(C[Se]+C[Se+1]*256);return ee}m.prototype.slice=function(b,f){var C=this.length;b=~~b,f=f===void 0?C:~~f,b<0?(b+=C,b<0&&(b=0)):b>C&&(b=C),f<0?(f+=C,f<0&&(f=0)):f>C&&(f=C),f<b&&(f=b);var ee=this.subarray(b,f);return Object.setPrototypeOf(ee,m.prototype),ee};function fe(N,b,f){if(N%1!==0||N<0)throw new RangeError("offset is not uint");if(N+b>f)throw new RangeError("Trying to access beyond buffer length")}m.prototype.readUintLE=m.prototype.readUIntLE=function(b,f,C){b=b>>>0,f=f>>>0,C||fe(b,f,this.length);for(var ee=this[b],Se=1,H=0;++H<f&&(Se*=256);)ee+=this[b+H]*Se;return ee},m.prototype.readUintBE=m.prototype.readUIntBE=function(b,f,C){b=b>>>0,f=f>>>0,C||fe(b,f,this.length);for(var ee=this[b+--f],Se=1;f>0&&(Se*=256);)ee+=this[b+--f]*Se;return ee},m.prototype.readUint8=m.prototype.readUInt8=function(b,f){return b=b>>>0,f||fe(b,1,this.length),this[b]},m.prototype.readUint16LE=m.prototype.readUInt16LE=function(b,f){return b=b>>>0,f||fe(b,2,this.length),this[b]|this[b+1]<<8},m.prototype.readUint16BE=m.prototype.readUInt16BE=function(b,f){return b=b>>>0,f||fe(b,2,this.length),this[b]<<8|this[b+1]},m.prototype.readUint32LE=m.prototype.readUInt32LE=function(b,f){return b=b>>>0,f||fe(b,4,this.length),(this[b]|this[b+1]<<8|this[b+2]<<16)+this[b+3]*16777216},m.prototype.readUint32BE=m.prototype.readUInt32BE=function(b,f){return b=b>>>0,f||fe(b,4,this.length),this[b]*16777216+(this[b+1]<<16|this[b+2]<<8|this[b+3])},m.prototype.readIntLE=function(b,f,C){b=b>>>0,f=f>>>0,C||fe(b,f,this.length);for(var ee=this[b],Se=1,H=0;++H<f&&(Se*=256);)ee+=this[b+H]*Se;return Se*=128,ee>=Se&&(ee-=Math.pow(2,8*f)),ee},m.prototype.readIntBE=function(b,f,C){b=b>>>0,f=f>>>0,C||fe(b,f,this.length);for(var ee=f,Se=1,H=this[b+--ee];ee>0&&(Se*=256);)H+=this[b+--ee]*Se;return Se*=128,H>=Se&&(H-=Math.pow(2,8*f)),H},m.prototype.readInt8=function(b,f){return b=b>>>0,f||fe(b,1,this.length),this[b]&128?(255-this[b]+1)*-1:this[b]},m.prototype.readInt16LE=function(b,f){b=b>>>0,f||fe(b,2,this.length);var C=this[b]|this[b+1]<<8;return C&32768?C|4294901760:C},m.prototype.readInt16BE=function(b,f){b=b>>>0,f||fe(b,2,this.length);var C=this[b+1]|this[b]<<8;return C&32768?C|4294901760:C},m.prototype.readInt32LE=function(b,f){return b=b>>>0,f||fe(b,4,this.length),this[b]|this[b+1]<<8|this[b+2]<<16|this[b+3]<<24},m.prototype.readInt32BE=function(b,f){return b=b>>>0,f||fe(b,4,this.length),this[b]<<24|this[b+1]<<16|this[b+2]<<8|this[b+3]},m.prototype.readFloatLE=function(b,f){return b=b>>>0,f||fe(b,4,this.length),T.read(this,b,!0,23,4)},m.prototype.readFloatBE=function(b,f){return b=b>>>0,f||fe(b,4,this.length),T.read(this,b,!1,23,4)},m.prototype.readDoubleLE=function(b,f){return b=b>>>0,f||fe(b,8,this.length),T.read(this,b,!0,52,8)},m.prototype.readDoubleBE=function(b,f){return b=b>>>0,f||fe(b,8,this.length),T.read(this,b,!1,52,8)};function Ee(N,b,f,C,ee,Se){if(!m.isBuffer(N))throw new TypeError('"buffer" argument must be a Buffer instance');if(b>ee||b<Se)throw new RangeError('"value" argument is out of bounds');if(f+C>N.length)throw new RangeError("Index out of range")}m.prototype.writeUintLE=m.prototype.writeUIntLE=function(b,f,C,ee){if(b=+b,f=f>>>0,C=C>>>0,!ee){var Se=Math.pow(2,8*C)-1;Ee(this,b,f,C,Se,0)}var H=1,ne=0;for(this[f]=b&255;++ne<C&&(H*=256);)this[f+ne]=b/H&255;return f+C},m.prototype.writeUintBE=m.prototype.writeUIntBE=function(b,f,C,ee){if(b=+b,f=f>>>0,C=C>>>0,!ee){var Se=Math.pow(2,8*C)-1;Ee(this,b,f,C,Se,0)}var H=C-1,ne=1;for(this[f+H]=b&255;--H>=0&&(ne*=256);)this[f+H]=b/ne&255;return f+C},m.prototype.writeUint8=m.prototype.writeUInt8=function(b,f,C){return b=+b,f=f>>>0,C||Ee(this,b,f,1,255,0),this[f]=b&255,f+1},m.prototype.writeUint16LE=m.prototype.writeUInt16LE=function(b,f,C){return b=+b,f=f>>>0,C||Ee(this,b,f,2,65535,0),this[f]=b&255,this[f+1]=b>>>8,f+2},m.prototype.writeUint16BE=m.prototype.writeUInt16BE=function(b,f,C){return b=+b,f=f>>>0,C||Ee(this,b,f,2,65535,0),this[f]=b>>>8,this[f+1]=b&255,f+2},m.prototype.writeUint32LE=m.prototype.writeUInt32LE=function(b,f,C){return b=+b,f=f>>>0,C||Ee(this,b,f,4,4294967295,0),this[f+3]=b>>>24,this[f+2]=b>>>16,this[f+1]=b>>>8,this[f]=b&255,f+4},m.prototype.writeUint32BE=m.prototype.writeUInt32BE=function(b,f,C){return b=+b,f=f>>>0,C||Ee(this,b,f,4,4294967295,0),this[f]=b>>>24,this[f+1]=b>>>16,this[f+2]=b>>>8,this[f+3]=b&255,f+4},m.prototype.writeIntLE=function(b,f,C,ee){if(b=+b,f=f>>>0,!ee){var Se=Math.pow(2,8*C-1);Ee(this,b,f,C,Se-1,-Se)}var H=0,ne=1,Qe=0;for(this[f]=b&255;++H<C&&(ne*=256);)b<0&&Qe===0&&this[f+H-1]!==0&&(Qe=1),this[f+H]=(b/ne>>0)-Qe&255;return f+C},m.prototype.writeIntBE=function(b,f,C,ee){if(b=+b,f=f>>>0,!ee){var Se=Math.pow(2,8*C-1);Ee(this,b,f,C,Se-1,-Se)}var H=C-1,ne=1,Qe=0;for(this[f+H]=b&255;--H>=0&&(ne*=256);)b<0&&Qe===0&&this[f+H+1]!==0&&(Qe=1),this[f+H]=(b/ne>>0)-Qe&255;return f+C},m.prototype.writeInt8=function(b,f,C){return b=+b,f=f>>>0,C||Ee(this,b,f,1,127,-128),b<0&&(b=255+b+1),this[f]=b&255,f+1},m.prototype.writeInt16LE=function(b,f,C){return b=+b,f=f>>>0,C||Ee(this,b,f,2,32767,-32768),this[f]=b&255,this[f+1]=b>>>8,f+2},m.prototype.writeInt16BE=function(b,f,C){return b=+b,f=f>>>0,C||Ee(this,b,f,2,32767,-32768),this[f]=b>>>8,this[f+1]=b&255,f+2},m.prototype.writeInt32LE=function(b,f,C){return b=+b,f=f>>>0,C||Ee(this,b,f,4,2147483647,-2147483648),this[f]=b&255,this[f+1]=b>>>8,this[f+2]=b>>>16,this[f+3]=b>>>24,f+4},m.prototype.writeInt32BE=function(b,f,C){return b=+b,f=f>>>0,C||Ee(this,b,f,4,2147483647,-2147483648),b<0&&(b=4294967295+b+1),this[f]=b>>>24,this[f+1]=b>>>16,this[f+2]=b>>>8,this[f+3]=b&255,f+4};function rt(N,b,f,C,ee,Se){if(f+C>N.length)throw new RangeError("Index out of range");if(f<0)throw new RangeError("Index out of range")}function ot(N,b,f,C,ee){return b=+b,f=f>>>0,ee||rt(N,b,f,4,34028234663852886e22,-34028234663852886e22),T.write(N,b,f,C,23,4),f+4}m.prototype.writeFloatLE=function(b,f,C){return ot(this,b,f,!0,C)},m.prototype.writeFloatBE=function(b,f,C){return ot(this,b,f,!1,C)};function We(N,b,f,C,ee){return b=+b,f=f>>>0,ee||rt(N,b,f,8,17976931348623157e292,-17976931348623157e292),T.write(N,b,f,C,52,8),f+8}m.prototype.writeDoubleLE=function(b,f,C){return We(this,b,f,!0,C)},m.prototype.writeDoubleBE=function(b,f,C){return We(this,b,f,!1,C)},m.prototype.copy=function(b,f,C,ee){if(!m.isBuffer(b))throw new TypeError("argument should be a Buffer");if(C||(C=0),!ee&&ee!==0&&(ee=this.length),f>=b.length&&(f=b.length),f||(f=0),ee>0&&ee<C&&(ee=C),ee===C||b.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(ee<0)throw new RangeError("sourceEnd out of bounds");ee>this.length&&(ee=this.length),b.length-f<ee-C&&(ee=b.length-f+C);var Se=ee-C;return this===b&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(f,C,ee):Uint8Array.prototype.set.call(b,this.subarray(C,ee),f),Se},m.prototype.fill=function(b,f,C,ee){if(typeof b=="string"){if(typeof f=="string"?(ee=f,f=0,C=this.length):typeof C=="string"&&(ee=C,C=this.length),ee!==void 0&&typeof ee!="string")throw new TypeError("encoding must be a string");if(typeof ee=="string"&&!m.isEncoding(ee))throw new TypeError("Unknown encoding: "+ee);if(b.length===1){var Se=b.charCodeAt(0);(ee==="utf8"&&Se<128||ee==="latin1")&&(b=Se)}}else typeof b=="number"?b=b&255:typeof b=="boolean"&&(b=Number(b));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,b||(b=0);var H;if(typeof b=="number")for(H=f;H<C;++H)this[H]=b;else{var ne=m.isBuffer(b)?b:m.from(b,ee),Qe=ne.length;if(Qe===0)throw new TypeError('The value "'+b+'" is invalid for argument "value"');for(H=0;H<C-f;++H)this[H+f]=ne[H%Qe]}return this};var et=/[^+/0-9A-Za-z-_]/g;function _t(N){if(N=N.split("=")[0],N=N.trim().replace(et,""),N.length<2)return"";for(;N.length%4!==0;)N=N+"=";return N}function Ot(N,b){b=b||1/0;for(var f,C=N.length,ee=null,Se=[],H=0;H<C;++H){if(f=N.charCodeAt(H),f>55295&&f<57344){if(!ee){if(f>56319){(b-=3)>-1&&Se.push(239,191,189);continue}else if(H+1===C){(b-=3)>-1&&Se.push(239,191,189);continue}ee=f;continue}if(f<56320){(b-=3)>-1&&Se.push(239,191,189),ee=f;continue}f=(ee-55296<<10|f-56320)+65536}else ee&&(b-=3)>-1&&Se.push(239,191,189);if(ee=null,f<128){if((b-=1)<0)break;Se.push(f)}else if(f<2048){if((b-=2)<0)break;Se.push(f>>6|192,f&63|128)}else if(f<65536){if((b-=3)<0)break;Se.push(f>>12|224,f>>6&63|128,f&63|128)}else if(f<1114112){if((b-=4)<0)break;Se.push(f>>18|240,f>>12&63|128,f>>6&63|128,f&63|128)}else throw new Error("Invalid code point")}return Se}function Pt(N){for(var b=[],f=0;f<N.length;++f)b.push(N.charCodeAt(f)&255);return b}function cr(N,b){for(var f,C,ee,Se=[],H=0;H<N.length&&!((b-=2)<0);++H)f=N.charCodeAt(H),C=f>>8,ee=f%256,Se.push(ee),Se.push(C);return Se}function nr(N){return ue.toByteArray(_t(N))}function br(N,b,f,C){for(var ee=0;ee<C&&!(ee+f>=b.length||ee>=N.length);++ee)b[ee+f]=N[ee];return ee}function sr(N,b){return N instanceof b||N!=null&&N.constructor!=null&&N.constructor.name!=null&&N.constructor.name===b.name}function k(N){return N!==N}var Xe=function(){for(var N="0123456789abcdef",b=new Array(256),f=0;f<16;++f)for(var C=f*16,ee=0;ee<16;++ee)b[C+ee]=N[f]+N[ee];return b}()},64270:function(dn){(function(Ut,x){dn.exports=x()})(this,function(){"use strict";var Ut=function(v,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(v,d)};function x(v,d){if(typeof d!="function"&&d!==null)throw new TypeError("Class extends value "+String(d)+" is not a constructor or null");Ut(v,d);function w(){this.constructor=v}v.prototype=d===null?Object.create(d):(w.prototype=d.prototype,new w)}var ve=function(){return ve=Object.assign||function(d){for(var w,y=1,te=arguments.length;y<te;y++){w=arguments[y];for(var _e in w)Object.prototype.hasOwnProperty.call(w,_e)&&(d[_e]=w[_e])}return d},ve.apply(this,arguments)};function ue(v,d,w,y){function te(_e){return _e instanceof w?_e:new w(function(Ve){Ve(_e)})}return new(w||(w=Promise))(function(_e,Ve){function ht(lr){try{qt(y.next(lr))}catch(fr){Ve(fr)}}function pt(lr){try{qt(y.throw(lr))}catch(fr){Ve(fr)}}function qt(lr){lr.done?_e(lr.value):te(lr.value).then(ht,pt)}qt((y=y.apply(v,d||[])).next())})}function T(v,d){var w={label:0,sent:function(){if(_e[0]&1)throw _e[1];return _e[1]},trys:[],ops:[]},y,te,_e,Ve;return Ve={next:ht(0),throw:ht(1),return:ht(2)},typeof Symbol=="function"&&(Ve[Symbol.iterator]=function(){return this}),Ve;function ht(qt){return function(lr){return pt([qt,lr])}}function pt(qt){if(y)throw new TypeError("Generator is already executing.");for(;w;)try{if(y=1,te&&(_e=qt[0]&2?te.return:qt[0]?te.throw||((_e=te.return)&&_e.call(te),0):te.next)&&!(_e=_e.call(te,qt[1])).done)return _e;switch(te=0,_e&&(qt=[qt[0]&2,_e.value]),qt[0]){case 0:case 1:_e=qt;break;case 4:return w.label++,{value:qt[1],done:!1};case 5:w.label++,te=qt[1],qt=[0];continue;case 7:qt=w.ops.pop(),w.trys.pop();continue;default:if(_e=w.trys,!(_e=_e.length>0&&_e[_e.length-1])&&(qt[0]===6||qt[0]===2)){w=0;continue}if(qt[0]===3&&(!_e||qt[1]>_e[0]&&qt[1]<_e[3])){w.label=qt[1];break}if(qt[0]===6&&w.label<_e[1]){w.label=_e[1],_e=qt;break}if(_e&&w.label<_e[2]){w.label=_e[2],w.ops.push(qt);break}_e[2]&&w.ops.pop(),w.trys.pop();continue}qt=d.call(v,w)}catch(lr){qt=[6,lr],te=0}finally{y=_e=0}if(qt[0]&5)throw qt[1];return{value:qt[0]?qt[1]:void 0,done:!0}}}function De(v,d,w){if(w||arguments.length===2)for(var y=0,te=d.length,_e;y<te;y++)(_e||!(y in d))&&(_e||(_e=Array.prototype.slice.call(d,0,y)),_e[y]=d[y]);return v.concat(_e||d)}for(var re=function(){function v(d,w,y,te){this.left=d,this.top=w,this.width=y,this.height=te}return v.prototype.add=function(d,w,y,te){return new v(this.left+d,this.top+w,this.width+y,this.height+te)},v.fromClientRect=function(d,w){return new v(w.left+d.windowBounds.left,w.top+d.windowBounds.top,w.width,w.height)},v.fromDOMRectList=function(d,w){var y=Array.from(w).find(function(te){return te.width!==0});return y?new v(y.left+d.windowBounds.left,y.top+d.windowBounds.top,y.width,y.height):v.EMPTY},v.EMPTY=new v(0,0,0,0),v}(),W=function(v,d){return re.fromClientRect(v,d.getBoundingClientRect())},S=function(v){var d=v.body,w=v.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 re(0,0,y,te)},m=function(v){for(var d=[],w=0,y=v.length;w<y;){var te=v.charCodeAt(w++);if(te>=55296&&te<=56319&&w<y){var _e=v.charCodeAt(w++);(_e&64512)===56320?d.push(((te&1023)<<10)+(_e&1023)+65536):(d.push(te),w--)}else d.push(te)}return d},I=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];if(String.fromCodePoint)return String.fromCodePoint.apply(String,v);var w=v.length;if(!w)return"";for(var y=[],te=-1,_e="";++te<w;){var Ve=v[te];Ve<=65535?y.push(Ve):(Ve-=65536,y.push((Ve>>10)+55296,Ve%1024+56320)),(te+1===w||y.length>16384)&&(_e+=String.fromCharCode.apply(String,y),y.length=0)}return _e},g="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",$=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),_=0;_<g.length;_++)$[g.charCodeAt(_)]=_;for(var F="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",P=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),U=0;U<F.length;U++)P[F.charCodeAt(U)]=U;for(var M=function(v){var d=v.length*.75,w=v.length,y,te=0,_e,Ve,ht,pt;v[v.length-1]==="="&&(d--,v[v.length-2]==="="&&d--);var qt=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(d):new Array(d),lr=Array.isArray(qt)?qt:new Uint8Array(qt);for(y=0;y<w;y+=4)_e=P[v.charCodeAt(y)],Ve=P[v.charCodeAt(y+1)],ht=P[v.charCodeAt(y+2)],pt=P[v.charCodeAt(y+3)],lr[te++]=_e<<2|Ve>>4,lr[te++]=(Ve&15)<<4|ht>>2,lr[te++]=(ht&3)<<6|pt&63;return qt},Y=function(v){for(var d=v.length,w=[],y=0;y<d;y+=2)w.push(v[y+1]<<8|v[y]);return w},Q=function(v){for(var d=v.length,w=[],y=0;y<d;y+=4)w.push(v[y+3]<<24|v[y+2]<<16|v[y+1]<<8|v[y]);return w},ae=5,ie=11,J=2,G=ie-ae,j=65536>>ae,se=1<<ae,he=se-1,Ne=1024>>ae,Be=j+Ne,Pe=Be,q=32,Ae=Pe+q,D=65536>>ie,Je=1<<G,Fe=Je-1,Ce=function(v,d,w){return v.slice?v.slice(d,w):new Uint16Array(Array.prototype.slice.call(v,d,w))},Ue=function(v,d,w){return v.slice?v.slice(d,w):new Uint32Array(Array.prototype.slice.call(v,d,w))},me=function(v,d){var w=M(v),y=Array.isArray(w)?Q(w):new Uint32Array(w),te=Array.isArray(w)?Y(w):new Uint16Array(w),_e=24,Ve=Ce(te,_e/2,y[4]/2),ht=y[5]===2?Ce(te,(_e+y[4])/2):Ue(y,Math.ceil((_e+y[4])/4));return new Me(y[0],y[1],y[2],y[3],Ve,ht)},Me=function(){function v(d,w,y,te,_e,Ve){this.initialValue=d,this.errorValue=w,this.highStart=y,this.highValueIndex=te,this.index=_e,this.data=Ve}return v.prototype.get=function(d){var w;if(d>=0){if(d<55296||d>56319&&d<=65535)return w=this.index[d>>ae],w=(w<<J)+(d&he),this.data[w];if(d<=65535)return w=this.index[j+(d-55296>>ae)],w=(w<<J)+(d&he),this.data[w];if(d<this.highStart)return w=Ae-D+(d>>ie),w=this.index[w],w+=d>>ae&Fe,w=this.index[w],w=(w<<J)+(d&he),this.data[w];if(d<=1114111)return this.data[this.highValueIndex]}return this.errorValue},v}(),fe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Ee=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),rt=0;rt<fe.length;rt++)Ee[fe.charCodeAt(rt)]=rt;var ot="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==",We=50,et=1,_t=2,Ot=3,Pt=4,cr=5,nr=7,br=8,sr=9,k=10,Xe=11,N=12,b=13,f=14,C=15,ee=16,Se=17,H=18,ne=19,Qe=20,we=21,ye=22,je=23,mt=24,ge=25,st=26,ze=27,Ie=28,Le=29,ct=30,Tt=31,Mt=32,Yt=33,_r=34,Sr=35,Lr=36,Er=37,Ar=38,ar=39,Rr=40,fn=41,En=42,gn=43,Rn=[9001,65288],ji="!",Or="\xD7",bi="\xF7",ua=me(ot),gi=[ct,Lr],ta=[et,_t,Ot,cr],Ji=[k,br],aa=[ze,st],Io=ta.concat(Ji),oa=[Ar,ar,Rr,_r,Sr],pi=[C,b],Ti=function(v,d){d===void 0&&(d="strict");var w=[],y=[],te=[];return v.forEach(function(_e,Ve){var ht=ua.get(_e);if(ht>We?(te.push(!0),ht-=We):te.push(!1),["normal","auto","loose"].indexOf(d)!==-1&&[8208,8211,12316,12448].indexOf(_e)!==-1)return y.push(Ve),w.push(ee);if(ht===Pt||ht===Xe){if(Ve===0)return y.push(Ve),w.push(ct);var pt=w[Ve-1];return Io.indexOf(pt)===-1?(y.push(y[Ve-1]),w.push(pt)):(y.push(Ve),w.push(ct))}if(y.push(Ve),ht===Tt)return w.push(d==="strict"?we:Er);if(ht===En||ht===Le)return w.push(ct);if(ht===gn)return _e>=131072&&_e<=196605||_e>=196608&&_e<=262141?w.push(Er):w.push(ct);w.push(ht)}),[y,w,te]},zi=function(v,d,w,y){var te=y[w];if(Array.isArray(v)?v.indexOf(te)!==-1:v===te)for(var _e=w;_e<=y.length;){_e++;var Ve=y[_e];if(Ve===d)return!0;if(Ve!==k)break}if(te===k)for(var _e=w;_e>0;){_e--;var ht=y[_e];if(Array.isArray(v)?v.indexOf(ht)!==-1:v===ht)for(var pt=w;pt<=y.length;){pt++;var Ve=y[pt];if(Ve===d)return!0;if(Ve!==k)break}if(ht!==k)break}return!1},be=function(v,d){for(var w=v;w>=0;){var y=d[w];if(y===k)w--;else return y}return 0},Oe=function(v,d,w,y,te){if(w[y]===0)return Or;var _e=y-1;if(Array.isArray(te)&&te[_e]===!0)return Or;var Ve=_e-1,ht=_e+1,pt=d[_e],qt=Ve>=0?d[Ve]:0,lr=d[ht];if(pt===_t&&lr===Ot)return Or;if(ta.indexOf(pt)!==-1)return ji;if(ta.indexOf(lr)!==-1||Ji.indexOf(lr)!==-1)return Or;if(be(_e,d)===br)return bi;if(ua.get(v[_e])===Xe||(pt===Mt||pt===Yt)&&ua.get(v[ht])===Xe||pt===nr||lr===nr||pt===sr||[k,b,C].indexOf(pt)===-1&&lr===sr||[Se,H,ne,mt,Ie].indexOf(lr)!==-1||be(_e,d)===ye||zi(je,ye,_e,d)||zi([Se,H],we,_e,d)||zi(N,N,_e,d))return Or;if(pt===k)return bi;if(pt===je||lr===je)return Or;if(lr===ee||pt===ee)return bi;if([b,C,we].indexOf(lr)!==-1||pt===f||qt===Lr&&pi.indexOf(pt)!==-1||pt===Ie&&lr===Lr||lr===Qe||gi.indexOf(lr)!==-1&&pt===ge||gi.indexOf(pt)!==-1&&lr===ge||pt===ze&&[Er,Mt,Yt].indexOf(lr)!==-1||[Er,Mt,Yt].indexOf(pt)!==-1&&lr===st||gi.indexOf(pt)!==-1&&aa.indexOf(lr)!==-1||aa.indexOf(pt)!==-1&&gi.indexOf(lr)!==-1||[ze,st].indexOf(pt)!==-1&&(lr===ge||[ye,C].indexOf(lr)!==-1&&d[ht+1]===ge)||[ye,C].indexOf(pt)!==-1&&lr===ge||pt===ge&&[ge,Ie,mt].indexOf(lr)!==-1)return Or;if([ge,Ie,mt,Se,H].indexOf(lr)!==-1)for(var fr=_e;fr>=0;){var Yr=d[fr];if(Yr===ge)return Or;if([Ie,mt].indexOf(Yr)!==-1)fr--;else break}if([ze,st].indexOf(lr)!==-1)for(var fr=[Se,H].indexOf(pt)!==-1?Ve:_e;fr>=0;){var Yr=d[fr];if(Yr===ge)return Or;if([Ie,mt].indexOf(Yr)!==-1)fr--;else break}if(Ar===pt&&[Ar,ar,_r,Sr].indexOf(lr)!==-1||[ar,_r].indexOf(pt)!==-1&&[ar,Rr].indexOf(lr)!==-1||[Rr,Sr].indexOf(pt)!==-1&&lr===Rr||oa.indexOf(pt)!==-1&&[Qe,st].indexOf(lr)!==-1||oa.indexOf(lr)!==-1&&pt===ze||gi.indexOf(pt)!==-1&&gi.indexOf(lr)!==-1||pt===mt&&gi.indexOf(lr)!==-1||gi.concat(ge).indexOf(pt)!==-1&&lr===ye&&Rn.indexOf(v[ht])===-1||gi.concat(ge).indexOf(lr)!==-1&&pt===H)return Or;if(pt===fn&&lr===fn){for(var Oi=w[_e],Un=1;Oi>0&&(Oi--,d[Oi]===fn);)Un++;if(Un%2!==0)return Or}return pt===Mt&&lr===Yt?Or:bi},ke=function(v,d){d||(d={lineBreak:"normal",wordBreak:"normal"});var w=Ti(v,d.lineBreak),y=w[0],te=w[1],_e=w[2];(d.wordBreak==="break-all"||d.wordBreak==="break-word")&&(te=te.map(function(ht){return[ge,ct,En].indexOf(ht)!==-1?Er:ht}));var Ve=d.wordBreak==="keep-all"?_e.map(function(ht,pt){return ht&&v[pt]>=19968&&v[pt]<=40959}):void 0;return[y,te,Ve]},qe=function(){function v(d,w,y,te){this.codePoints=d,this.required=w===ji,this.start=y,this.end=te}return v.prototype.slice=function(){return I.apply(void 0,this.codePoints.slice(this.start,this.end))},v}(),Rt=function(v,d){var w=m(v),y=ke(w,d),te=y[0],_e=y[1],Ve=y[2],ht=w.length,pt=0,qt=0;return{next:function(){if(qt>=ht)return{done:!0,value:null};for(var lr=Or;qt<ht&&(lr=Oe(w,_e,te,++qt,Ve))===Or;);if(lr!==Or||qt===ht){var fr=new qe(w,lr,pt,qt);return pt=qt,{value:fr,done:!1}}return{done:!0,value:null}}}},kt=1,yr=2,or=4,Nr=8,zr=10,an=47,jr=92,Qr=9,qr=32,yn=34,on=61,Dn=35,Qn=36,fi=37,On=39,An=40,Dt=41,Kt=95,Gt=45,Jt=33,Zt=60,Dr=62,Fr=64,Xr=91,Fn=93,Nn=61,si=123,ti=63,Bi=125,Yn=124,jn=126,yi=128,vi=65533,wi=42,li=43,xi=44,$i=58,ei=59,Di=46,Ha=0,oi=8,hn=11,ln=14,Xn=31,Kn=127,Ai=-1,Wi=48,_i=97,Ua=101,ca=102,Bo=117,Wn=122,_n=65,Mi=69,Zi=70,Ia=85,Is=90,za=function(v){return v>=Wi&&v<=57},da=function(v){return v>=55296&&v<=57343},Fo=function(v){return za(v)||v>=_n&&v<=Zi||v>=_i&&v<=ca},So=function(v){return v>=_i&&v<=Wn},Uo=function(v){return v>=_n&&v<=Is},Ps=function(v){return So(v)||Uo(v)},ho=function(v){return v>=yi},vs=function(v){return v===zr||v===Qr||v===qr},Ts=function(v){return Ps(v)||ho(v)||v===Kt},Ws=function(v){return Ts(v)||za(v)||v===Gt},Ro=function(v){return v>=Ha&&v<=oi||v===hn||v>=ln&&v<=Xn||v===Kn},Qo=function(v,d){return v!==jr?!1:d!==zr},bs=function(v,d,w){return v===Gt?Ts(d)||Qo(d,w):Ts(v)?!0:!!(v===jr&&Qo(v,d))},rl=function(v,d,w){return v===li||v===Gt?za(d)?!0:d===Di&&za(w):za(v===Di?d:v)},vl=function(v){var d=0,w=1;(v[d]===li||v[d]===Gt)&&(v[d]===Gt&&(w=-1),d++);for(var y=[];za(v[d]);)y.push(v[d++]);var te=y.length?parseInt(I.apply(void 0,y),10):0;v[d]===Di&&d++;for(var _e=[];za(v[d]);)_e.push(v[d++]);var Ve=_e.length,ht=Ve?parseInt(I.apply(void 0,_e),10):0;(v[d]===Mi||v[d]===Ua)&&d++;var pt=1;(v[d]===li||v[d]===Gt)&&(v[d]===Gt&&(pt=-1),d++);for(var qt=[];za(v[d]);)qt.push(v[d++]);var lr=qt.length?parseInt(I.apply(void 0,qt),10):0;return w*(te+ht*Math.pow(10,-Ve))*Math.pow(10,pt*lr)},nc={type:2},ic={type:3},Ql={type:4},Gs={type:13},Dc={type:8},Kl={type:21},Hl={type:9},Xs={type:10},os={type:11},ri={type:12},sa={type:14},Xi={type:23},ra={type:1},Da={type:25},oo={type:24},Js={type:26},ys={type:27},ws={type:28},ps={type:29},eo={type:31},Ra={type:32},ss=function(){function v(){this._value=[]}return v.prototype.write=function(d){this._value=this._value.concat(m(d))},v.prototype.read=function(){for(var d=[],w=this.consumeToken();w!==Ra;)d.push(w),w=this.consumeToken();return d},v.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(Ws(w)||Qo(y,te)){var _e=bs(w,y,te)?yr:kt,Ve=this.consumeName();return{type:5,value:Ve,flags:_e}}break;case Qn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Gs;break;case On:return this.consumeStringToken(On);case An:return nc;case Dt:return ic;case wi:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),sa;break;case li:if(rl(d,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(d),this.consumeNumericToken();break;case xi:return Ql;case Gt:var ht=d,pt=this.peekCodePoint(0),qt=this.peekCodePoint(1);if(rl(ht,pt,qt))return this.reconsumeCodePoint(d),this.consumeNumericToken();if(bs(ht,pt,qt))return this.reconsumeCodePoint(d),this.consumeIdentLikeToken();if(pt===Gt&&qt===Dr)return this.consumeCodePoint(),this.consumeCodePoint(),oo;break;case Di:if(rl(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 lr=this.consumeCodePoint();if(lr===wi&&(lr=this.consumeCodePoint(),lr===an))return this.consumeToken();if(lr===Ai)return this.consumeToken()}break;case $i:return Js;case ei:return ys;case Zt:if(this.peekCodePoint(0)===Jt&&this.peekCodePoint(1)===Gt&&this.peekCodePoint(2)===Gt)return this.consumeCodePoint(),this.consumeCodePoint(),Da;break;case Fr:var fr=this.peekCodePoint(0),Yr=this.peekCodePoint(1),Oi=this.peekCodePoint(2);if(bs(fr,Yr,Oi)){var Ve=this.consumeName();return{type:7,value:Ve}}break;case Xr:return ws;case jr:if(Qo(d,this.peekCodePoint(0)))return this.reconsumeCodePoint(d),this.consumeIdentLikeToken();break;case Fn:return ps;case Nn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Dc;break;case si:return os;case Bi:return ri;case Bo:case Ia:var Un=this.peekCodePoint(0),di=this.peekCodePoint(1);return Un===li&&(Fo(di)||di===ti)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(d),this.consumeIdentLikeToken();case Yn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Hl;if(this.peekCodePoint(0)===Yn)return this.consumeCodePoint(),Kl;break;case jn:if(this.peekCodePoint(0)===on)return this.consumeCodePoint(),Xs;break;case Ai:return Ra}return vs(d)?(this.consumeWhiteSpace(),eo):za(d)?(this.reconsumeCodePoint(d),this.consumeNumericToken()):Ts(d)?(this.reconsumeCodePoint(d),this.consumeIdentLikeToken()):{type:6,value:I(d)}},v.prototype.consumeCodePoint=function(){var d=this._value.shift();return typeof d=="undefined"?-1:d},v.prototype.reconsumeCodePoint=function(d){this._value.unshift(d)},v.prototype.peekCodePoint=function(d){return d>=this._value.length?-1:this._value[d]},v.prototype.consumeUnicodeRangeToken=function(){for(var d=[],w=this.consumeCodePoint();Fo(w)&&d.length<6;)d.push(w),w=this.consumeCodePoint();for(var y=!1;w===ti&&d.length<6;)d.push(w),w=this.consumeCodePoint(),y=!0;if(y){var te=parseInt(I.apply(void 0,d.map(function(pt){return pt===ti?Wi:pt})),16),_e=parseInt(I.apply(void 0,d.map(function(pt){return pt===ti?Zi:pt})),16);return{type:30,start:te,end:_e}}var Ve=parseInt(I.apply(void 0,d),16);if(this.peekCodePoint(0)===Gt&&Fo(this.peekCodePoint(1))){this.consumeCodePoint(),w=this.consumeCodePoint();for(var ht=[];Fo(w)&&ht.length<6;)ht.push(w),w=this.consumeCodePoint();var _e=parseInt(I.apply(void 0,ht),16);return{type:30,start:Ve,end:_e}}else return{type:30,start:Ve,end:Ve}},v.prototype.consumeIdentLikeToken=function(){var d=this.consumeName();return d.toLowerCase()==="url"&&this.peekCodePoint(0)===An?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===An?(this.consumeCodePoint(),{type:19,value:d}):{type:20,value:d}},v.prototype.consumeUrlToken=function(){var d=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Ai)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)===Ai||this.peekCodePoint(0)===Dt)?(this.consumeCodePoint(),{type:22,value:y.value}):(this.consumeBadUrlRemnants(),Xi)}for(;;){var te=this.consumeCodePoint();if(te===Ai||te===Dt)return{type:22,value:I.apply(void 0,d)};if(vs(te))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Ai||this.peekCodePoint(0)===Dt?(this.consumeCodePoint(),{type:22,value:I.apply(void 0,d)}):(this.consumeBadUrlRemnants(),Xi);if(te===yn||te===On||te===An||Ro(te))return this.consumeBadUrlRemnants(),Xi;if(te===jr)if(Qo(te,this.peekCodePoint(0)))d.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Xi;else d.push(te)}},v.prototype.consumeWhiteSpace=function(){for(;vs(this.peekCodePoint(0));)this.consumeCodePoint()},v.prototype.consumeBadUrlRemnants=function(){for(;;){var d=this.consumeCodePoint();if(d===Dt||d===Ai)return;Qo(d,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},v.prototype.consumeStringSlice=function(d){for(var w=5e4,y="";d>0;){var te=Math.min(w,d);y+=I.apply(void 0,this._value.splice(0,te)),d-=te}return this._value.shift(),y},v.prototype.consumeStringToken=function(d){var w="",y=0;do{var te=this._value[y];if(te===Ai||te===void 0||te===d)return w+=this.consumeStringSlice(y),{type:0,value:w};if(te===zr)return this._value.splice(0,y),ra;if(te===jr){var _e=this._value[y+1];_e!==Ai&&_e!==void 0&&(_e===zr?(w+=this.consumeStringSlice(y),y=-1,this._value.shift()):Qo(te,_e)&&(w+=this.consumeStringSlice(y),w+=I(this.consumeEscapedCodePoint()),y=-1))}y++}while(!0)},v.prototype.consumeNumber=function(){var d=[],w=or,y=this.peekCodePoint(0);for((y===li||y===Gt)&&d.push(this.consumeCodePoint());za(this.peekCodePoint(0));)d.push(this.consumeCodePoint());y=this.peekCodePoint(0);var te=this.peekCodePoint(1);if(y===Di&&za(te))for(d.push(this.consumeCodePoint(),this.consumeCodePoint()),w=Nr;za(this.peekCodePoint(0));)d.push(this.consumeCodePoint());y=this.peekCodePoint(0),te=this.peekCodePoint(1);var _e=this.peekCodePoint(2);if((y===Mi||y===Ua)&&((te===li||te===Gt)&&za(_e)||za(te)))for(d.push(this.consumeCodePoint(),this.consumeCodePoint()),w=Nr;za(this.peekCodePoint(0));)d.push(this.consumeCodePoint());return[vl(d),w]},v.prototype.consumeNumericToken=function(){var d=this.consumeNumber(),w=d[0],y=d[1],te=this.peekCodePoint(0),_e=this.peekCodePoint(1),Ve=this.peekCodePoint(2);if(bs(te,_e,Ve)){var ht=this.consumeName();return{type:15,number:w,flags:y,unit:ht}}return te===fi?(this.consumeCodePoint(),{type:16,number:w,flags:y}):{type:17,number:w,flags:y}},v.prototype.consumeEscapedCodePoint=function(){var d=this.consumeCodePoint();if(Fo(d)){for(var w=I(d);Fo(this.peekCodePoint(0))&&w.length<6;)w+=I(this.consumeCodePoint());vs(this.peekCodePoint(0))&&this.consumeCodePoint();var y=parseInt(w,16);return y===0||da(y)||y>1114111?vi:y}return d===Ai?vi:d},v.prototype.consumeName=function(){for(var d="";;){var w=this.consumeCodePoint();if(Ws(w))d+=I(w);else if(Qo(w,this.peekCodePoint(0)))d+=I(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(w),d}},v}(),ls=function(){function v(d){this._tokens=d}return v.create=function(d){var w=new ss;return w.write(d),new v(w.read())},v.parseValue=function(d){return v.create(d).parseComponentValue()},v.parseValues=function(d){return v.create(d).parseComponentValues()},v.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")},v.prototype.parseComponentValues=function(){for(var d=[];;){var w=this.consumeComponentValue();if(w.type===32)return d;d.push(w),d.push()}},v.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},v.prototype.consumeSimpleBlock=function(d){for(var w={type:d,values:[]},y=this.consumeToken();;){if(y.type===32||mA(y,d))return w;this.reconsumeToken(y),w.values.push(this.consumeComponentValue()),y=this.consumeToken()}},v.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())}},v.prototype.consumeToken=function(){var d=this._tokens.shift();return typeof d=="undefined"?Ra:d},v.prototype.reconsumeToken=function(d){this._tokens.unshift(d)},v}(),Fs=function(v){return v.type===15},Xo=function(v){return v.type===17},Mo=function(v){return v.type===20},hA=function(v){return v.type===0},au=function(v,d){return Mo(v)&&v.value===d},cc=function(v){return v.type!==31},pA=function(v){return v.type!==31&&v.type!==4},Al=function(v){var d=[],w=[];return v.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},mA=function(v,d){return d===11&&v.type===12||d===28&&v.type===29?!0:d===2&&v.type===3},nl=function(v){return v.type===17||v.type===15},ms=function(v){return v.type===16||nl(v)},Yc=function(v){return v.length>1?[v[0],v[1]]:[v[0]]},Us={type:17,number:0,flags:or},OA={type:16,number:50,flags:or},Ac={type:16,number:100,flags:or},jl=function(v,d,w){var y=v[0],te=v[1];return[to(y,d),to(typeof te!="undefined"?te:y,w)]},to=function(v,d){if(v.type===16)return v.number/100*d;if(Fs(v))switch(v.unit){case"rem":case"em":return 16*v.number;case"px":default:return v.number}return v.number},Ys="deg",gA="grad",Fu="rad",cs="turn",xa={name:"angle",parse:function(v,d){if(d.type===15)switch(d.unit){case Ys:return Math.PI*d.number/180;case gA:return Math.PI/200*d.number;case Fu:return d.number;case cs:return Math.PI*2*d.number}throw new Error("Unsupported angle type")}},ba=function(v){return v.type===15&&(v.unit===Ys||v.unit===gA||v.unit===Fu||v.unit===cs)},rs=function(v){var d=v.filter(Mo).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 mo(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Us,Ac];case"to right":case"left":return mo(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Ac,Ac];case"to bottom":case"top":return mo(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Ac,Us];case"to left":case"right":return mo(270)}return 0},mo=function(v){return Math.PI*v/180},zo={name:"color",parse:function(v,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(v,d.values)}if(d.type===5){if(d.value.length===3){var y=d.value.substring(0,1),te=d.value.substring(1,2),_e=d.value.substring(2,3);return xs(parseInt(y+y,16),parseInt(te+te,16),parseInt(_e+_e,16),1)}if(d.value.length===4){var y=d.value.substring(0,1),te=d.value.substring(1,2),_e=d.value.substring(2,3),Ve=d.value.substring(3,4);return xs(parseInt(y+y,16),parseInt(te+te,16),parseInt(_e+_e,16),parseInt(Ve+Ve,16)/255)}if(d.value.length===6){var y=d.value.substring(0,2),te=d.value.substring(2,4),_e=d.value.substring(4,6);return xs(parseInt(y,16),parseInt(te,16),parseInt(_e,16),1)}if(d.value.length===8){var y=d.value.substring(0,2),te=d.value.substring(2,4),_e=d.value.substring(4,6),Ve=d.value.substring(6,8);return xs(parseInt(y,16),parseInt(te,16),parseInt(_e,16),parseInt(Ve,16)/255)}}if(d.type===20){var ht=il[d.value.toUpperCase()];if(typeof ht!="undefined")return ht}return il.TRANSPARENT}},$o=function(v){return(255&v)===0},Oo=function(v){var d=255&v,w=255&v>>8,y=255&v>>16,te=255&v>>24;return d<255?"rgba("+te+","+y+","+w+","+d/255+")":"rgb("+te+","+y+","+w+")"},xs=function(v,d,w,y){return(v<<24|d<<16|w<<8|Math.round(y*255)<<0)>>>0},ac=function(v,d){if(v.type===17)return v.number;if(v.type===16){var w=d===3?1:255;return d===3?v.number/100*w:Math.round(v.number/100*w)}return 0},Zc=function(v,d){var w=d.filter(pA);if(w.length===3){var y=w.map(ac),te=y[0],_e=y[1],Ve=y[2];return xs(te,_e,Ve,1)}if(w.length===4){var ht=w.map(ac),te=ht[0],_e=ht[1],Ve=ht[2],pt=ht[3];return xs(te,_e,Ve,pt)}return 0};function qs(v,d,w){return w<0&&(w+=1),w>=1&&(w-=1),w<1/6?(d-v)*w*6+v:w<1/2?d:w<2/3?(d-v)*6*(2/3-w)+v:v}var vA=function(v,d){var w=d.filter(pA),y=w[0],te=w[1],_e=w[2],Ve=w[3],ht=(y.type===17?mo(y.number):xa.parse(v,y))/(Math.PI*2),pt=ms(te)?te.number/100:0,qt=ms(_e)?_e.number/100:0,lr=typeof Ve!="undefined"&&ms(Ve)?to(Ve,1):1;if(pt===0)return xs(qt*255,qt*255,qt*255,1);var fr=qt<=.5?qt*(pt+1):qt+pt-qt*pt,Yr=qt*2-fr,Oi=qs(Yr,fr,ht+1/3),Un=qs(Yr,fr,ht),di=qs(Yr,fr,ht-1/3);return xs(Oi*255,Un*255,di*255,lr)},wl={hsl:vA,hsla:vA,rgb:Zc,rgba:Zc},qc=function(v,d){return zo.parse(v,ls.create(d).parseComponentValue())},il={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},Fd={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(v,d){return d.map(function(w){if(Mo(w))switch(w.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ou={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},$A=function(v,d){var w=zo.parse(v,d[0]),y=d[1];return y&&ms(y)?{color:w,stop:y}:{color:w,stop:null}},sf=function(v,d){var w=v[0],y=v[v.length-1];w.stop===null&&(w.stop=Us),y.stop===null&&(y.stop=Ac);for(var te=[],_e=0,Ve=0;Ve<v.length;Ve++){var ht=v[Ve].stop;if(ht!==null){var pt=to(ht,d);pt>_e?te.push(pt):te.push(_e),_e=pt}else te.push(null)}for(var qt=null,Ve=0;Ve<te.length;Ve++){var lr=te[Ve];if(lr===null)qt===null&&(qt=Ve);else if(qt!==null){for(var fr=Ve-qt,Yr=te[qt-1],Oi=(lr-Yr)/(fr+1),Un=1;Un<=fr;Un++)te[qt+Un-1]=Oi*Un;qt=null}}return v.map(function(di,Va){var Gi=di.color;return{color:Gi,stop:Math.max(Math.min(1,te[Va]/d),0)}})},Vc=function(v,d,w){var y=d/2,te=w/2,_e=to(v[0],d)-y,Ve=te-to(v[1],w);return(Math.atan2(Ve,_e)+Math.PI*2)%(Math.PI*2)},Gu=function(v,d,w){var y=typeof v=="number"?v:Vc(v,d,w),te=Math.abs(d*Math.sin(y))+Math.abs(w*Math.cos(y)),_e=d/2,Ve=w/2,ht=te/2,pt=Math.sin(y-Math.PI/2)*ht,qt=Math.cos(y-Math.PI/2)*ht;return[te,_e-qt,_e+qt,Ve-pt,Ve+pt]},Nc=function(v,d){return Math.sqrt(v*v+d*d)},Md=function(v,d,w,y,te){var _e=[[0,0],[0,d],[v,0],[v,d]];return _e.reduce(function(Ve,ht){var pt=ht[0],qt=ht[1],lr=Nc(w-pt,y-qt);return(te?lr<Ve.optimumDistance:lr>Ve.optimumDistance)?{optimumCorner:ht,optimumDistance:lr}:Ve},{optimumDistance:te?1/0:-1/0,optimumCorner:null}).optimumCorner},Jo=function(v,d,w,y,te){var _e=0,Ve=0;switch(v.size){case 0:v.shape===0?_e=Ve=Math.min(Math.abs(d),Math.abs(d-y),Math.abs(w),Math.abs(w-te)):v.shape===1&&(_e=Math.min(Math.abs(d),Math.abs(d-y)),Ve=Math.min(Math.abs(w),Math.abs(w-te)));break;case 2:if(v.shape===0)_e=Ve=Math.min(Nc(d,w),Nc(d,w-te),Nc(d-y,w),Nc(d-y,w-te));else if(v.shape===1){var ht=Math.min(Math.abs(w),Math.abs(w-te))/Math.min(Math.abs(d),Math.abs(d-y)),pt=Md(y,te,d,w,!0),qt=pt[0],lr=pt[1];_e=Nc(qt-d,(lr-w)/ht),Ve=ht*_e}break;case 1:v.shape===0?_e=Ve=Math.max(Math.abs(d),Math.abs(d-y),Math.abs(w),Math.abs(w-te)):v.shape===1&&(_e=Math.max(Math.abs(d),Math.abs(d-y)),Ve=Math.max(Math.abs(w),Math.abs(w-te)));break;case 3:if(v.shape===0)_e=Ve=Math.max(Nc(d,w),Nc(d,w-te),Nc(d-y,w),Nc(d-y,w-te));else if(v.shape===1){var ht=Math.max(Math.abs(w),Math.abs(w-te))/Math.max(Math.abs(d),Math.abs(d-y)),fr=Md(y,te,d,w,!1),qt=fr[0],lr=fr[1];_e=Nc(qt-d,(lr-w)/ht),Ve=ht*_e}break}return Array.isArray(v.size)&&(_e=to(v.size[0],y),Ve=v.size.length===2?to(v.size[1],te):_e),[_e,Ve]},Po=function(v,d){var w=mo(180),y=[];return Al(d).forEach(function(te,_e){if(_e===0){var Ve=te[0];if(Ve.type===20&&Ve.value==="to"){w=rs(te);return}else if(ba(Ve)){w=xa.parse(v,Ve);return}}var ht=$A(v,te);y.push(ht)}),{angle:w,stops:y,type:1}},Yo=function(v,d){var w=mo(180),y=[];return Al(d).forEach(function(te,_e){if(_e===0){var Ve=te[0];if(Ve.type===20&&["top","left","right","bottom"].indexOf(Ve.value)!==-1){w=rs(te);return}else if(ba(Ve)){w=(xa.parse(v,Ve)+mo(270))%mo(360);return}}var ht=$A(v,te);y.push(ht)}),{angle:w,stops:y,type:1}},yc=function(v,d){var w=mo(180),y=[],te=1,_e=0,Ve=3,ht=[];return Al(d).forEach(function(pt,qt){var lr=pt[0];if(qt===0){if(Mo(lr)&&lr.value==="linear"){te=1;return}else if(Mo(lr)&&lr.value==="radial"){te=2;return}}if(lr.type===18){if(lr.name==="from"){var fr=zo.parse(v,lr.values[0]);y.push({stop:Us,color:fr})}else if(lr.name==="to"){var fr=zo.parse(v,lr.values[0]);y.push({stop:Ac,color:fr})}else if(lr.name==="color-stop"){var Yr=lr.values.filter(pA);if(Yr.length===2){var fr=zo.parse(v,Yr[1]),Oi=Yr[0];Xo(Oi)&&y.push({stop:{type:16,number:Oi.number*100,flags:Oi.flags},color:fr})}}}}),te===1?{angle:(w+mo(180))%mo(360),stops:y,type:te}:{size:Ve,shape:_e,stops:y,position:ht,type:te}},zl="closest-side",Xu="farthest-side",bA="closest-corner",ZA="farthest-corner",Ld="circle",kd="ellipse",VA="cover",WA="contain",Lo=function(v,d){var w=0,y=3,te=[],_e=[];return Al(d).forEach(function(Ve,ht){var pt=!0;if(ht===0){var qt=!1;pt=Ve.reduce(function(fr,Yr){if(qt)if(Mo(Yr))switch(Yr.value){case"center":return _e.push(OA),fr;case"top":case"left":return _e.push(Us),fr;case"right":case"bottom":return _e.push(Ac),fr}else(ms(Yr)||nl(Yr))&&_e.push(Yr);else if(Mo(Yr))switch(Yr.value){case Ld:return w=0,!1;case kd:return w=1,!1;case"at":return qt=!0,!1;case zl:return y=0,!1;case VA:case Xu:return y=1,!1;case WA:case bA:return y=2,!1;case ZA:return y=3,!1}else if(nl(Yr)||ms(Yr))return Array.isArray(y)||(y=[]),y.push(Yr),!1;return fr},pt)}if(pt){var lr=$A(v,Ve);te.push(lr)}}),{size:y,shape:w,stops:te,position:_e,type:2}},yA=function(v,d){var w=0,y=3,te=[],_e=[];return Al(d).forEach(function(Ve,ht){var pt=!0;if(ht===0?pt=Ve.reduce(function(lr,fr){if(Mo(fr))switch(fr.value){case"center":return _e.push(OA),!1;case"top":case"left":return _e.push(Us),!1;case"right":case"bottom":return _e.push(Ac),!1}else if(ms(fr)||nl(fr))return _e.push(fr),!1;return lr},pt):ht===1&&(pt=Ve.reduce(function(lr,fr){if(Mo(fr))switch(fr.value){case Ld:return w=0,!1;case kd:return w=1,!1;case WA:case zl:return y=0,!1;case Xu:return y=1,!1;case bA:return y=2,!1;case VA:case ZA:return y=3,!1}else if(nl(fr)||ms(fr))return Array.isArray(y)||(y=[]),y.push(fr),!1;return lr},pt)),pt){var qt=$A(v,Ve);te.push(qt)}}),{size:y,shape:w,stops:te,position:_e,type:2}},GA=function(v){return v.type===1},p0=function(v){return v.type===2},su={name:"image",parse:function(v,d){if(d.type===22){var w={url:d.value,type:0};return v.cache.addImage(d.value),w}if(d.type===18){var y=lf[d.name];if(typeof y=="undefined")throw new Error('Attempting to parse an unsupported image function "'+d.name+'"');return y(v,d.values)}throw new Error("Unsupported image type "+d.type)}};function yh(v){return!(v.type===20&&v.value==="none")&&(v.type!==18||!!lf[v.name])}var lf={"linear-gradient":Po,"-moz-linear-gradient":Yo,"-ms-linear-gradient":Yo,"-o-linear-gradient":Yo,"-webkit-linear-gradient":Yo,"radial-gradient":Lo,"-moz-radial-gradient":yA,"-ms-radial-gradient":yA,"-o-radial-gradient":yA,"-webkit-radial-gradient":yA,"-webkit-gradient":yc},Dd={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(v,d){if(d.length===0)return[];var w=d[0];return w.type===20&&w.value==="none"?[]:d.filter(function(y){return pA(y)&&yh(y)}).map(function(y){return su.parse(v,y)})}},Kf={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(v,d){return d.map(function(w){if(Mo(w))switch(w.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},wh={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(v,d){return Al(d).map(function(w){return w.filter(ms)}).map(Yc)}},Mu={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(v,d){return Al(d).map(function(w){return w.filter(Mo).map(function(y){return y.value}).join(" ")}).map(cf)}},cf=function(v){switch(v){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(v){v.AUTO="auto",v.CONTAIN="contain",v.COVER="cover"})(xl||(xl={}));var Cl={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(v,d){return Al(d).map(function(w){return w.filter(Oc)})}},Oc=function(v){return Mo(v)||ms(v)},Pc=function(v){return{name:"border-"+v+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},m0=Pc("top"),Lu=Pc("right"),xh=Pc("bottom"),ku=Pc("left"),Nd=function(v){return{name:"border-radius-"+v,initialValue:"0 0",prefix:!1,type:1,parse:function(d,w){return Yc(w.filter(ms))}}},$p=Nd("top-left"),lu=Nd("top-right"),eA=Nd("bottom-right"),wc=Nd("bottom-left"),Zo=function(v){return{name:"border-"+v+"-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}}},Ju=Zo("top"),Hf=Zo("right"),jf=Zo("bottom"),Tc=Zo("left"),Yu=function(v){return{name:"border-"+v+"-width",initialValue:"0",type:0,prefix:!1,parse:function(d,w){return Fs(w)?w.number:0}}},Af=Yu("top"),qu=Yu("right"),g0=Yu("bottom"),v0=Yu("left"),$l={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ed={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(v,d){switch(d){case"rtl":return 1;case"ltr":default:return 0}}},b0={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(v,d){return d.filter(Mo).reduce(function(w,y){return w|de(y.value)},0)}},de=function(v){switch(v){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},xe={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(v,d){switch(d){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ye={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(v,d){return d.type===20&&d.value==="normal"?0:d.type===17||d.type===15?d.number:0}},At;(function(v){v.NORMAL="normal",v.STRICT="strict"})(At||(At={}));var xt={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(v,d){switch(d){case"strict":return At.STRICT;case"normal":default:return At.NORMAL}}},bt={name:"line-height",initialValue:"normal",prefix:!1,type:4},Vt=function(v,d){return Mo(v)&&v.value==="normal"?1.2*d:v.type===17?d*v.number:ms(v)?to(v,d):d},zt={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(v,d){return d.type===20&&d.value==="none"?null:su.parse(v,d)}},Ht={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(v,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(v,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}}},Ir=function(v){return{name:"margin-"+v,initialValue:"0",prefix:!1,type:4}},hr=Ir("top"),en=Ir("right"),$r=Ir("bottom"),Jr=Ir("left"),Pn={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(v,d){return d.filter(Mo).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(v,d){switch(d){case"break-word":return"break-word";case"normal":default:return"normal"}}},Mn=function(v){return{name:"padding-"+v,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},Cn=Mn("top"),$n=Mn("right"),Ni=Mn("bottom"),Ui=Mn("left"),ui={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(v,d){switch(d){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},qi={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(v,d){switch(d){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},ya={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(v,d){return d.length===1&&au(d[0],"none")?[]:Al(d).map(function(w){for(var y={color:il.TRANSPARENT,offsetX:Us,offsetY:Us,blur:Us},te=0,_e=0;_e<w.length;_e++){var Ve=w[_e];nl(Ve)?(te===0?y.offsetX=Ve:te===1?y.offsetY=Ve:y.blur=Ve,te++):y.color=zo.parse(v,Ve)}return y})}},Jn={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(v,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(v,d){if(d.type===20&&d.value==="none")return null;if(d.type===18){var w=ii[d.name];if(typeof w=="undefined")throw new Error('Attempting to parse an unsupported transform function "'+d.name+'"');return w(d.values)}return null}},ni=function(v){var d=v.filter(function(w){return w.type===17}).map(function(w){return w.number});return d.length===6?d:null},Tn=function(v){var d=v.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],_e=d[5];d[6],d[7],d[8],d[9],d[10],d[11];var Ve=d[12],ht=d[13];return d[14],d[15],d.length===16?[w,y,te,_e,Ve,ht]:null},ii={matrix:ni,matrix3d:Tn},Qi={type:16,number:50,flags:or},Na=[Qi,Qi],ha={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(v,d){var w=d.filter(ms);return w.length!==2?Na:[w[0],w[1]]}},Ki={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(v,d){switch(d){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ea;(function(v){v.NORMAL="normal",v.BREAK_ALL="break-all",v.KEEP_ALL="keep-all"})(Ea||(Ea={}));for(var Qa={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(v,d){switch(d){case"break-all":return Ea.BREAK_ALL;case"keep-all":return Ea.KEEP_ALL;case"normal":default:return Ea.NORMAL}}},qo={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(v,d){if(d.type===20)return{auto:!0,order:0};if(Xo(d))return{auto:!1,order:d.number};throw new Error("Invalid z-index number parsed")}},so={name:"time",parse:function(v,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")}},gs={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(v,d){return Xo(d)?d.number:1}},As={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},pa={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(v,d){return d.filter(Mo).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})}},sl={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(v,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+"'"})}},po={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},es={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(v,d){if(Xo(d))return d.number;if(Mo(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(v,d){return d.filter(Mo).map(function(w){return w.value})}},xc={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(v,d){switch(d){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},ai=function(v,d){return(v&d)!==0},Hi={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(v,d){if(d.length===0)return[];var w=d[0];return w.type===20&&w.value==="none"?[]:d}},Ri={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(v,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(cc),_e=0;_e<te.length;_e++){var Ve=te[_e],ht=te[_e+1];if(Ve.type===20){var pt=ht&&Xo(ht)?ht.number:1;y.push({counter:Ve.value,increment:pt})}}return y}},Li={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(v,d){if(d.length===0)return[];for(var w=[],y=d.filter(cc),te=0;te<y.length;te++){var _e=y[te],Ve=y[te+1];if(Mo(_e)&&_e.value!=="none"){var ht=Ve&&Xo(Ve)?Ve.number:0;w.push({counter:_e.value,reset:ht})}}return w}},go={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(v,d){return d.filter(Fs).map(function(w){return so.parse(v,w)})}},ki={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(v,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(hA);if(te.length%2!==0)return null;for(var _e=0;_e<te.length;_e+=2){var Ve=te[_e].value,ht=te[_e+1].value;y.push({open:Ve,close:ht})}return y}},la=function(v,d,w){if(!v)return"";var y=v[Math.min(d,v.length-1)];return y?w?y.open:y.close:""},ja={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(v,d){return d.length===1&&au(d[0],"none")?[]:Al(d).map(function(w){for(var y={color:255,offsetX:Us,offsetY:Us,blur:Us,spread:Us,inset:!1},te=0,_e=0;_e<w.length;_e++){var Ve=w[_e];au(Ve,"inset")?y.inset=!0:nl(Ve)?(te===0?y.offsetX=Ve:te===1?y.offsetY=Ve:te===2?y.blur=Ve:y.spread=Ve,te++):y.color=zo.parse(v,Ve)}return y})}},$a={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(v,d){var w=[0,1,2],y=[];return d.filter(Mo).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"},al={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(v,d){return Fs(d)?d.number:0}},Wc=function(){function v(d,w){var y,te;this.animationDuration=Hn(d,go,w.animationDuration),this.backgroundClip=Hn(d,Fd,w.backgroundClip),this.backgroundColor=Hn(d,ou,w.backgroundColor),this.backgroundImage=Hn(d,Dd,w.backgroundImage),this.backgroundOrigin=Hn(d,Kf,w.backgroundOrigin),this.backgroundPosition=Hn(d,wh,w.backgroundPosition),this.backgroundRepeat=Hn(d,Mu,w.backgroundRepeat),this.backgroundSize=Hn(d,Cl,w.backgroundSize),this.borderTopColor=Hn(d,m0,w.borderTopColor),this.borderRightColor=Hn(d,Lu,w.borderRightColor),this.borderBottomColor=Hn(d,xh,w.borderBottomColor),this.borderLeftColor=Hn(d,ku,w.borderLeftColor),this.borderTopLeftRadius=Hn(d,$p,w.borderTopLeftRadius),this.borderTopRightRadius=Hn(d,lu,w.borderTopRightRadius),this.borderBottomRightRadius=Hn(d,eA,w.borderBottomRightRadius),this.borderBottomLeftRadius=Hn(d,wc,w.borderBottomLeftRadius),this.borderTopStyle=Hn(d,Ju,w.borderTopStyle),this.borderRightStyle=Hn(d,Hf,w.borderRightStyle),this.borderBottomStyle=Hn(d,jf,w.borderBottomStyle),this.borderLeftStyle=Hn(d,Tc,w.borderLeftStyle),this.borderTopWidth=Hn(d,Af,w.borderTopWidth),this.borderRightWidth=Hn(d,qu,w.borderRightWidth),this.borderBottomWidth=Hn(d,g0,w.borderBottomWidth),this.borderLeftWidth=Hn(d,v0,w.borderLeftWidth),this.boxShadow=Hn(d,ja,w.boxShadow),this.color=Hn(d,$l,w.color),this.direction=Hn(d,ed,w.direction),this.display=Hn(d,b0,w.display),this.float=Hn(d,xe,w.cssFloat),this.fontFamily=Hn(d,sl,w.fontFamily),this.fontSize=Hn(d,po,w.fontSize),this.fontStyle=Hn(d,xc,w.fontStyle),this.fontVariant=Hn(d,ns,w.fontVariant),this.fontWeight=Hn(d,es,w.fontWeight),this.letterSpacing=Hn(d,Ye,w.letterSpacing),this.lineBreak=Hn(d,xt,w.lineBreak),this.lineHeight=Hn(d,bt,w.lineHeight),this.listStyleImage=Hn(d,zt,w.listStyleImage),this.listStylePosition=Hn(d,Ht,w.listStylePosition),this.listStyleType=Hn(d,ur,w.listStyleType),this.marginTop=Hn(d,hr,w.marginTop),this.marginRight=Hn(d,en,w.marginRight),this.marginBottom=Hn(d,$r,w.marginBottom),this.marginLeft=Hn(d,Jr,w.marginLeft),this.opacity=Hn(d,gs,w.opacity);var _e=Hn(d,Pn,w.overflow);this.overflowX=_e[0],this.overflowY=_e[_e.length>1?1:0],this.overflowWrap=Hn(d,xn,w.overflowWrap),this.paddingTop=Hn(d,Cn,w.paddingTop),this.paddingRight=Hn(d,$n,w.paddingRight),this.paddingBottom=Hn(d,Ni,w.paddingBottom),this.paddingLeft=Hn(d,Ui,w.paddingLeft),this.paintOrder=Hn(d,$a,w.paintOrder),this.position=Hn(d,qi,w.position),this.textAlign=Hn(d,ui,w.textAlign),this.textDecorationColor=Hn(d,As,(y=w.textDecorationColor)!==null&&y!==void 0?y:w.color),this.textDecorationLine=Hn(d,pa,(te=w.textDecorationLine)!==null&&te!==void 0?te:w.textDecoration),this.textShadow=Hn(d,ya,w.textShadow),this.textTransform=Hn(d,Jn,w.textTransform),this.transform=Hn(d,mi,w.transform),this.transformOrigin=Hn(d,ha,w.transformOrigin),this.visibility=Hn(d,Ki,w.visibility),this.webkitTextStrokeColor=Hn(d,Fl,w.webkitTextStrokeColor),this.webkitTextStrokeWidth=Hn(d,al,w.webkitTextStrokeWidth),this.wordBreak=Hn(d,Qa,w.wordBreak),this.zIndex=Hn(d,qo,w.zIndex)}return v.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},v.prototype.isTransparent=function(){return $o(this.backgroundColor)},v.prototype.isTransformed=function(){return this.transform!==null},v.prototype.isPositioned=function(){return this.position!==0},v.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},v.prototype.isFloating=function(){return this.float!==0},v.prototype.isInlineLevel=function(){return ai(this.display,4)||ai(this.display,33554432)||ai(this.display,268435456)||ai(this.display,536870912)||ai(this.display,67108864)||ai(this.display,134217728)},v}(),Rs=function(){function v(d,w){this.content=Hn(d,Hi,w.content),this.quotes=Hn(d,ki,w.quotes)}return v}(),Uc=function(){function v(d,w){this.counterIncrement=Hn(d,Ri,w.counterIncrement),this.counterReset=Hn(d,Li,w.counterReset)}return v}(),Hn=function(v,d,w){var y=new ss,te=w!==null&&typeof w!="undefined"?w.toString():d.initialValue;y.write(te);var _e=new ls(y.read());switch(d.type){case 2:var Ve=_e.parseComponentValue();return d.parse(v,Mo(Ve)?Ve.value:d.initialValue);case 0:return d.parse(v,_e.parseComponentValue());case 1:return d.parse(v,_e.parseComponentValues());case 4:return _e.parseComponentValue();case 3:switch(d.format){case"angle":return xa.parse(v,_e.parseComponentValue());case"color":return zo.parse(v,_e.parseComponentValue());case"image":return su.parse(v,_e.parseComponentValue());case"length":var ht=_e.parseComponentValue();return nl(ht)?ht:Us;case"length-percentage":var pt=_e.parseComponentValue();return ms(pt)?pt:Us;case"time":return so.parse(v,_e.parseComponentValue())}break}},uc="data-html2canvas-debug",Du=function(v){var d=v.getAttribute(uc);switch(d){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},lo=function(v,d){var w=Du(v);return w===1||d===w},pn=function(){function v(d,w){if(this.context=d,this.textNodes=[],this.elements=[],this.flags=0,lo(w,3))debugger;this.styles=new Wc(d,window.getComputedStyle(w,null)),_0(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),lo(w,4)&&(this.flags|=16)}return v}(),ko="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",ul="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",us=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),ea=0;ea<ul.length;ea++)us[ul.charCodeAt(ea)]=ea;for(var Bl=function(v){var d=v.length*.75,w=v.length,y,te=0,_e,Ve,ht,pt;v[v.length-1]==="="&&(d--,v[v.length-2]==="="&&d--);var qt=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined"&&typeof Uint8Array.prototype.slice!="undefined"?new ArrayBuffer(d):new Array(d),lr=Array.isArray(qt)?qt:new Uint8Array(qt);for(y=0;y<w;y+=4)_e=us[v.charCodeAt(y)],Ve=us[v.charCodeAt(y+1)],ht=us[v.charCodeAt(y+2)],pt=us[v.charCodeAt(y+3)],lr[te++]=_e<<2|Ve>>4,lr[te++]=(Ve&15)<<4|ht>>2,lr[te++]=(ht&3)<<6|pt&63;return qt},Zl=function(v){for(var d=v.length,w=[],y=0;y<d;y+=2)w.push(v[y+1]<<8|v[y]);return w},Rc=function(v){for(var d=v.length,w=[],y=0;y<d;y+=4)w.push(v[y+3]<<24|v[y+2]<<16|v[y+1]<<8|v[y]);return w},Cc=5,Sl=11,dl=2,cu=Sl-Cc,Ml=65536>>Cc,Qs=1<<Cc,El=Qs-1,ol=1024>>Cc,Ms=Ml+ol,Bc=Ms,wA=32,PA=Bc+wA,xA=65536>>Sl,uf=1<<cu,zf=uf-1,no=function(v,d,w){return v.slice?v.slice(d,w):new Uint16Array(Array.prototype.slice.call(v,d,w))},Vo=function(v,d,w){return v.slice?v.slice(d,w):new Uint32Array(Array.prototype.slice.call(v,d,w))},Vl=function(v,d){var w=Bl(v),y=Array.isArray(w)?Rc(w):new Uint32Array(w),te=Array.isArray(w)?Zl(w):new Uint16Array(w),_e=24,Ve=no(te,_e/2,y[4]/2),ht=y[5]===2?no(te,(_e+y[4])/2):Vo(y,Math.ceil((_e+y[4])/4));return new ds(y[0],y[1],y[2],y[3],Ve,ht)},ds=function(){function v(d,w,y,te,_e,Ve){this.initialValue=d,this.errorValue=w,this.highStart=y,this.highValueIndex=te,this.index=_e,this.data=Ve}return v.prototype.get=function(d){var w;if(d>=0){if(d<55296||d>56319&&d<=65535)return w=this.index[d>>Cc],w=(w<<dl)+(d&El),this.data[w];if(d<=65535)return w=this.index[Ml+(d-55296>>Cc)],w=(w<<dl)+(d&El),this.data[w];if(d<this.highStart)return w=PA-xA+(d>>Sl),w=this.index[w],w+=d>>Cc&zf,w=this.index[w],w=(w<<dl)+(d&El),this.data[w];if(d<=1114111)return this.data[this.highValueIndex]}return this.errorValue},v}(),Ll="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",Wl=typeof Uint8Array=="undefined"?[]:new Uint8Array(256),el=0;el<Ll.length;el++)Wl[Ll.charCodeAt(el)]=el;var CA=1,df=2,ff=3,td=4,co=5,Cs=7,BA=8,SA=9,Gl=10,$f=11,TA=12,Zf=13,Vf=14,rd=15,Od=function(v){for(var d=[],w=0,y=v.length;w<y;){var te=v.charCodeAt(w++);if(te>=55296&&te<=56319&&w<y){var _e=v.charCodeAt(w++);(_e&64512)===56320?d.push(((te&1023)<<10)+(_e&1023)+65536):(d.push(te),w--)}else d.push(te)}return d},Pd=function(){for(var v=[],d=0;d<arguments.length;d++)v[d]=arguments[d];if(String.fromCodePoint)return String.fromCodePoint.apply(String,v);var w=v.length;if(!w)return"";for(var y=[],te=-1,_e="";++te<w;){var Ve=v[te];Ve<=65535?y.push(Ve):(Ve-=65536,y.push((Ve>>10)+55296,Ve%1024+56320)),(te+1===w||y.length>16384)&&(_e+=String.fromCharCode.apply(String,y),y.length=0)}return _e},nd=Vl(ko),Hr="\xD7",Td="\xF7",hf=function(v){return nd.get(v)},Wf=function(v,d,w){var y=w-2,te=d[y],_e=d[w-1],Ve=d[w];if(_e===df&&Ve===ff)return Hr;if(_e===df||_e===ff||_e===td||Ve===df||Ve===ff||Ve===td)return Td;if(_e===BA&&[BA,SA,$f,TA].indexOf(Ve)!==-1||(_e===$f||_e===SA)&&(Ve===SA||Ve===Gl)||(_e===TA||_e===Gl)&&Ve===Gl||Ve===Zf||Ve===co||Ve===Cs||_e===CA)return Hr;if(_e===Zf&&Ve===Vf){for(;te===co;)te=d[--y];if(te===Vf)return Hr}if(_e===rd&&Ve===rd){for(var ht=0;te===rd;)ht++,te=d[--y];if(ht%2===0)return Hr}return Td},pf=function(v){var d=Od(v),w=d.length,y=0,te=0,_e=d.map(hf);return{next:function(){if(y>=w)return{done:!0,value:null};for(var Ve=Hr;y<w&&(Ve=Wf(d,_e,++y))===Hr;);if(Ve!==Hr||y===w){var ht=Pd.apply(null,d.slice(te,y));return te=y,{value:ht,done:!1}}return{done:!0,value:null}}}},Ch=function(v){for(var d=pf(v),w=[],y;!(y=d.next()).done;)y.value&&w.push(y.value.slice());return w},Bh=function(v){var d=123;if(v.createRange){var w=v.createRange();if(w.getBoundingClientRect){var y=v.createElement("boundtest");y.style.height=d+"px",y.style.display="block",v.body.appendChild(y),w.selectNode(y);var te=w.getBoundingClientRect(),_e=Math.round(te.height);if(v.body.removeChild(y),_e===d)return!0}}return!1},Gf=function(v){var d=v.createElement("boundtest");d.style.width="50px",d.style.display="block",d.style.fontSize="12px",d.style.letterSpacing="0px",d.style.wordSpacing="0px",v.body.appendChild(d);var w=v.createRange();d.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var y=d.firstChild,te=m(y.data).map(function(pt){return I(pt)}),_e=0,Ve={},ht=te.every(function(pt,qt){w.setStart(y,_e),w.setEnd(y,_e+pt.length);var lr=w.getBoundingClientRect();_e+=pt.length;var fr=lr.x>Ve.x||lr.y>Ve.y;return Ve=lr,qt===0?!0:fr});return v.body.removeChild(d),ht},bl=function(){return typeof new Image().crossOrigin!="undefined"},Nu=function(){return typeof new XMLHttpRequest().responseType=="string"},mf=function(v){var d=new Image,w=v.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(v){return v[0]===0&&v[1]===255&&v[2]===0&&v[3]===255},gf=function(v){var d=v.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,_e=d.toDataURL();te.src=_e;var Ve=UA(w,w,0,0,te);return y.fillStyle="red",y.fillRect(0,0,w,w),Au(Ve).then(function(ht){y.drawImage(ht,0,0);var pt=y.getImageData(0,0,w,w).data;y.fillStyle="red",y.fillRect(0,0,w,w);var qt=v.createElement("div");return qt.style.backgroundImage="url("+_e+")",qt.style.height=w+"px",id(pt)?Au(UA(w,w,0,0,qt)):Promise.reject(!1)}).then(function(ht){return y.drawImage(ht,0,0),id(y.getImageData(0,0,w,w).data)}).catch(function(){return!1})},UA=function(v,d,w,y,te){var _e="http://www.w3.org/2000/svg",Ve=document.createElementNS(_e,"svg"),ht=document.createElementNS(_e,"foreignObject");return Ve.setAttributeNS(null,"width",v.toString()),Ve.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"),Ve.appendChild(ht),ht.appendChild(te),Ve},Au=function(v){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(v))})},fs={get SUPPORT_RANGE_BOUNDS(){var v=Bh(document);return Object.defineProperty(fs,"SUPPORT_RANGE_BOUNDS",{value:v}),v},get SUPPORT_WORD_BREAKING(){var v=fs.SUPPORT_RANGE_BOUNDS&&Gf(document);return Object.defineProperty(fs,"SUPPORT_WORD_BREAKING",{value:v}),v},get SUPPORT_SVG_DRAWING(){var v=mf(document);return Object.defineProperty(fs,"SUPPORT_SVG_DRAWING",{value:v}),v},get SUPPORT_FOREIGNOBJECT_DRAWING(){var v=typeof Array.from=="function"&&typeof window.fetch=="function"?gf(document):Promise.resolve(!1);return Object.defineProperty(fs,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:v}),v},get SUPPORT_CORS_IMAGES(){var v=bl();return Object.defineProperty(fs,"SUPPORT_CORS_IMAGES",{value:v}),v},get SUPPORT_RESPONSE_TYPE(){var v=Nu();return Object.defineProperty(fs,"SUPPORT_RESPONSE_TYPE",{value:v}),v},get SUPPORT_CORS_XHR(){var v="withCredentials"in new XMLHttpRequest;return Object.defineProperty(fs,"SUPPORT_CORS_XHR",{value:v}),v},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var v=!!(typeof Intl!="undefined"&&Intl.Segmenter);return Object.defineProperty(fs,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:v}),v}},Qc=function(){function v(d,w){this.text=d,this.bounds=w}return v}(),Xl=function(v,d,w,y){var te=uu(d,w),_e=[],Ve=0;return te.forEach(function(ht){if(w.textDecorationLine.length||ht.trim().length>0)if(fs.SUPPORT_RANGE_BOUNDS){var pt=Ao(y,Ve,ht.length).getClientRects();if(pt.length>1){var qt=vo(ht),lr=0;qt.forEach(function(Yr){_e.push(new Qc(Yr,re.fromDOMRectList(v,Ao(y,lr+Ve,Yr.length).getClientRects()))),lr+=Yr.length})}else _e.push(new Qc(ht,re.fromDOMRectList(v,pt)))}else{var fr=y.splitText(ht.length);_e.push(new Qc(ht,Ou(v,y))),y=fr}else fs.SUPPORT_RANGE_BOUNDS||(y=y.splitText(ht.length));Ve+=ht.length}),_e},Ou=function(v,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 _e=W(v,y);return y.firstChild&&te.replaceChild(y.firstChild,y),_e}}return re.EMPTY},Ao=function(v,d,w){var y=v.ownerDocument;if(!y)throw new Error("Node has no owner document");var te=y.createRange();return te.setStart(v,d),te.setEnd(v,d+w),te},vo=function(v){if(fs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var d=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(d.segment(v)).map(function(w){return w.segment})}return Ch(v)},tA=function(v,d){if(fs.SUPPORT_NATIVE_TEXT_SEGMENTATION){var w=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(w.segment(v)).map(function(y){return y.segment})}return y0(v,d)},uu=function(v,d){return d.letterSpacing!==0?vo(v):tA(v,d)},XA=[32,160,4961,65792,65793,4153,4241],y0=function(v,d){for(var w=Rt(v,{lineBreak:d.lineBreak,wordBreak:d.overflowWrap==="break-word"?"break-word":d.wordBreak}),y=[],te,_e=function(){if(te.value){var Ve=te.value.slice(),ht=m(Ve),pt="";ht.forEach(function(qt){XA.indexOf(qt)===-1?pt+=I(qt):(pt.length&&y.push(pt),y.push(I(qt)),pt="")}),pt.length&&y.push(pt)}};!(te=w.next()).done;)_e();return y},kl=function(){function v(d,w,y){this.text=EA(w.data,y.textTransform),this.textBounds=Xl(d,this.text,y,w)}return v}(),EA=function(v,d){switch(d){case 1:return v.toLowerCase();case 3:return v.replace(Sh,Xf);case 2:return v.toUpperCase();default:return v}},Sh=/(^|\s|:|-|\(|\))([a-z])/g,Xf=function(v,d,w){return v.length>0?d+w.toUpperCase():v},w0=function(v){x(d,v);function d(w,y){var te=v.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}(pn),Eo=function(v){x(d,v);function d(w,y){var te=v.call(this,w,y)||this;return te.canvas=y,te.intrinsicWidth=y.width,te.intrinsicHeight=y.height,te}return d}(pn),vf=function(v){x(d,v);function d(w,y){var te=v.call(this,w,y)||this,_e=new XMLSerializer,Ve=W(w,y);return y.setAttribute("width",Ve.width+"px"),y.setAttribute("height",Ve.height+"px"),te.svg="data:image/svg+xml,"+encodeURIComponent(_e.serializeToString(y)),te.intrinsicWidth=y.width.baseVal.value,te.intrinsicHeight=y.height.baseVal.value,te.context.cache.addImage(te.svg),te}return d}(pn),Ud=function(v){x(d,v);function d(w,y){var te=v.call(this,w,y)||this;return te.value=y.value,te}return d}(pn),Jf=function(v){x(d,v);function d(w,y){var te=v.call(this,w,y)||this;return te.start=y.start,te.reversed=typeof y.reversed=="boolean"&&y.reversed===!0,te}return d}(pn),Tr=[{type:15,flags:0,unit:"px",number:3}],_m=[{type:16,flags:0,number:50}],Im=function(v){return v.width>v.height?new re(v.left+(v.width-v.height)/2,v.top,v.height,v.height):v.width<v.height?new re(v.left,v.top+(v.height-v.width)/2,v.width,v.width):v},x0=function(v){var d=v.type===Eh?new Array(v.value.length+1).join("\u2022"):v.value;return d.length===0?v.placeholder||"":d},C0="checkbox",Rd="radio",Eh="password",B0=707406591,Jl=function(v){x(d,v);function d(w,y){var te=v.call(this,w,y)||this;switch(te.type=y.type.toLowerCase(),te.checked=y.checked,te.value=x0(y),(te.type===C0||te.type===Rd)&&(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=Im(te.bounds)),te.type){case C0:te.styles.borderTopRightRadius=te.styles.borderTopLeftRadius=te.styles.borderBottomRightRadius=te.styles.borderBottomLeftRadius=Tr;break;case Rd:te.styles.borderTopRightRadius=te.styles.borderTopLeftRadius=te.styles.borderBottomRightRadius=te.styles.borderBottomLeftRadius=_m;break}return te}return d}(pn),ad=function(v){x(d,v);function d(w,y){var te=v.call(this,w,y)||this,_e=y.options[y.selectedIndex||0];return te.value=_e&&_e.text||"",te}return d}(pn),Yf=function(v){x(d,v);function d(w,y){var te=v.call(this,w,y)||this;return te.value=y.value,te}return d}(pn),_h=function(v){x(d,v);function d(w,y){var te=v.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=dp(w,y.contentWindow.document.documentElement);var _e=y.contentWindow.document.documentElement?qc(w,getComputedStyle(y.contentWindow.document.documentElement).backgroundColor):il.TRANSPARENT,Ve=y.contentWindow.document.body?qc(w,getComputedStyle(y.contentWindow.document.body).backgroundColor):il.TRANSPARENT;te.backgroundColor=$o(_e)?$o(Ve)?te.styles.backgroundColor:Ve:_e}}catch(ht){}return te}return d}(pn),Ih=["OL","UL","MENU"],qf=function(v,d,w,y){for(var te=d.firstChild,_e=void 0;te;te=_e)if(_e=te.nextSibling,Qd(te)&&te.data.trim().length>0)w.textNodes.push(new kl(v,te,w.styles));else if(bf(te))if(nh(te)&&te.assignedNodes)te.assignedNodes().forEach(function(ht){return qf(v,ht,w,y)});else{var Ve=S0(v,te);Ve.styles.isVisible()&&(E0(te,Ve,y)?Ve.flags|=4:rA(Ve.styles)&&(Ve.flags|=2),Ih.indexOf(te.tagName)!==-1&&(Ve.flags|=8),w.elements.push(Ve),te.slot,te.shadowRoot?qf(v,te.shadowRoot,Ve,y):!rh(te)&&!fp(te)&&!Fh(te)&&qf(v,te,Ve,y))}},S0=function(v,d){return od(d)?new w0(v,d):Zp(d)?new Eo(v,d):fp(d)?new vf(v,d):Fm(d)?new Ud(v,d):Mm(d)?new Jf(v,d):Lm(d)?new Jl(v,d):Fh(d)?new ad(v,d):rh(d)?new Yf(v,d):Wp(d)?new _h(v,d):new pn(v,d)},dp=function(v,d){var w=S0(v,d);return w.flags|=4,qf(v,d,w,w),w},E0=function(v,d,w){return d.styles.isPositionedWithZIndex()||d.styles.opacity<1||d.styles.isTransformed()||Ls(v)&&w.styles.isTransparent()},rA=function(v){return v.isPositioned()||v.isFloating()},Qd=function(v){return v.nodeType===Node.TEXT_NODE},bf=function(v){return v.nodeType===Node.ELEMENT_NODE},_0=function(v){return bf(v)&&typeof v.style!="undefined"&&!eh(v)},eh=function(v){return typeof v.className=="object"},Fm=function(v){return v.tagName==="LI"},Mm=function(v){return v.tagName==="OL"},Lm=function(v){return v.tagName==="INPUT"},km=function(v){return v.tagName==="HTML"},fp=function(v){return v.tagName==="svg"},Ls=function(v){return v.tagName==="BODY"},Zp=function(v){return v.tagName==="CANVAS"},Vp=function(v){return v.tagName==="VIDEO"},od=function(v){return v.tagName==="IMG"},Wp=function(v){return v.tagName==="IFRAME"},th=function(v){return v.tagName==="STYLE"},hp=function(v){return v.tagName==="SCRIPT"},rh=function(v){return v.tagName==="TEXTAREA"},Fh=function(v){return v.tagName==="SELECT"},nh=function(v){return v.tagName==="SLOT"},Gp=function(v){return v.tagName.indexOf("-")>0},Dm=function(){function v(){this.counters={}}return v.prototype.getCounterValue=function(d){var w=this.counters[d];return w&&w.length?w[w.length-1]:1},v.prototype.getCounterValues=function(d){var w=this.counters[d];return w||[]},v.prototype.pop=function(d){var w=this;d.forEach(function(y){return w.counters[y].pop()})},v.prototype.parse=function(d){var w=this,y=d.counterIncrement,te=d.counterReset,_e=!0;y!==null&&y.forEach(function(ht){var pt=w.counters[ht.counter];pt&&ht.increment!==0&&(_e=!1,pt.length||pt.push(1),pt[Math.max(0,pt.length-1)]+=ht.increment)});var Ve=[];return _e&&te.forEach(function(ht){var pt=w.counters[ht.counter];Ve.push(ht.counter),pt||(pt=w.counters[ht.counter]=[]),pt.push(ht.reset)}),Ve},v}(),Mh={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"]},I0={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"]},Nm={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"]},yf=function(v,d,w,y,te,_e){return v<d||v>w?Hd(v,te,_e.length>0):y.integers.reduce(function(Ve,ht,pt){for(;v>=ht;)v-=ht,Ve+=y.values[pt];return Ve},"")+_e},Om=function(v,d,w,y){var te="";do w||v--,te=y(v)+te,v/=d;while(v*d>=d);return te},Dl=function(v,d,w,y,te){var _e=w-d+1;return(v<0?"-":"")+(Om(Math.abs(v),_e,y,function(Ve){return I(Math.floor(Ve%_e)+d)})+te)},Kd=function(v,d,w){w===void 0&&(w=". ");var y=d.length;return Om(Math.abs(v),y,!1,function(te){return d[Math.floor(te%y)]})+w},wf=1,sd=2,Gc=4,du=8,_A=function(v,d,w,y,te,_e){if(v<-9999||v>9999)return Hd(v,4,te.length>0);var Ve=Math.abs(v),ht=te;if(Ve===0)return d[0]+ht;for(var pt=0;Ve>0&&pt<=4;pt++){var qt=Ve%10;qt===0&&ai(_e,wf)&&ht!==""?ht=d[qt]+ht:qt>1||qt===1&&pt===0||qt===1&&pt===1&&ai(_e,sd)||qt===1&&pt===1&&ai(_e,Gc)&&v>100||qt===1&&pt>1&&ai(_e,du)?ht=d[qt]+(pt>0?w[pt-1]:"")+ht:qt===1&&pt>0&&(ht=w[pt-1]+ht),Ve=Math.floor(Ve/10)}return(v<0?y:"")+ht},Pu="\u5341\u767E\u5343\u842C",ld="\u62FE\u4F70\u4EDF\u842C",cd="\u30DE\u30A4\u30CA\u30B9",ih="\uB9C8\uC774\uB108\uC2A4",Hd=function(v,d,w){var y=w?". ":"",te=w?"\u3001":"",_e=w?", ":"",Ve=w?" ":"";switch(d){case 0:return"\u2022"+Ve;case 1:return"\u25E6"+Ve;case 2:return"\u25FE"+Ve;case 5:var ht=Dl(v,48,57,!0,y);return ht.length<4?"0"+ht:ht;case 4:return Kd(v,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",te);case 6:return yf(v,1,3999,Mh,3,y).toLowerCase();case 7:return yf(v,1,3999,Mh,3,y);case 8:return Dl(v,945,969,!1,y);case 9:return Dl(v,97,122,!1,y);case 10:return Dl(v,65,90,!1,y);case 11:return Dl(v,1632,1641,!0,y);case 12:case 49:return yf(v,1,9999,I0,3,y);case 35:return yf(v,1,9999,I0,3,y).toLowerCase();case 13:return Dl(v,2534,2543,!0,y);case 14:case 30:return Dl(v,6112,6121,!0,y);case 15:return Kd(v,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",te);case 16:return Kd(v,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",te);case 17:case 48:return _A(v,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Pu,"\u8CA0",te,sd|Gc|du);case 47:return _A(v,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",ld,"\u8CA0",te,wf|sd|Gc|du);case 42:return _A(v,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",Pu,"\u8D1F",te,sd|Gc|du);case 41:return _A(v,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",ld,"\u8D1F",te,wf|sd|Gc|du);case 26:return _A(v,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",cd,te,0);case 25:return _A(v,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",cd,te,wf|sd|Gc);case 31:return _A(v,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",ih,_e,wf|sd|Gc);case 33:return _A(v,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",ih,_e,0);case 32:return _A(v,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",ih,_e,wf|sd|Gc);case 18:return Dl(v,2406,2415,!0,y);case 20:return yf(v,1,19999,Xp,3,y);case 21:return Dl(v,2790,2799,!0,y);case 22:return Dl(v,2662,2671,!0,y);case 22:return yf(v,1,10999,Nm,3,y);case 23:return Kd(v,"\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 Kd(v,"\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(v,3302,3311,!0,y);case 28:return Kd(v,"\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 Kd(v,"\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(v,3792,3801,!0,y);case 37:return Dl(v,6160,6169,!0,y);case 38:return Dl(v,4160,4169,!0,y);case 39:return Dl(v,2918,2927,!0,y);case 40:return Dl(v,1776,1785,!0,y);case 43:return Dl(v,3046,3055,!0,y);case 44:return Dl(v,3174,3183,!0,y);case 45:return Dl(v,3664,3673,!0,y);case 46:return Dl(v,3872,3881,!0,y);case 3:default:return Dl(v,48,57,!0,y)}},Lh="data-html2canvas-ignore",F0=function(){function v(d,w,y){if(this.context=d,this.options=y,this.scrolledElements=[],this.referenceElement=w,this.counters=new Dm,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 v.prototype.toIFrame=function(d,w){var y=this,te=Jp(d,w);if(!te.contentWindow)return Promise.reject("Unable to find iframe window");var _e=d.defaultView.pageXOffset,Ve=d.defaultView.pageYOffset,ht=te.contentWindow,pt=ht.document,qt=Dh(te).then(function(){return ue(y,void 0,void 0,function(){var lr,fr;return T(this,function(Yr){switch(Yr.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))),lr=this.options.onclone,fr=this.clonedReferenceElement,typeof fr=="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:Yr.sent(),Yr.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Yp(pt)]:[3,4];case 3:Yr.sent(),Yr.label=4;case 4:return typeof lr=="function"?[2,Promise.resolve().then(function(){return lr(pt,fr)}).then(function(){return te})]:[2,te]}})})});return pt.open(),pt.write(Tm(document.doctype)+"<html></html>"),qp(this.referenceElement.ownerDocument,_e,Ve),pt.replaceChild(pt.adoptNode(this.documentElement),pt.documentElement),pt.close(),qt},v.prototype.createElementClone=function(d){if(lo(d,2))debugger;if(Zp(d))return this.createCanvasClone(d);if(Vp(d))return this.createVideoClone(d);if(th(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},v.prototype.createCustomElementClone=function(d){var w=document.createElement("html2canvascustomelement");return M0(d.style,w),w},v.prototype.createStyleClone=function(d){try{var w=d.sheet;if(w&&w.cssRules){var y=[].slice.call(w.cssRules,0).reduce(function(_e,Ve){return Ve&&typeof Ve.cssText=="string"?_e+Ve.cssText:_e},""),te=d.cloneNode(!1);return te.textContent=y,te}}catch(_e){if(this.context.logger.error("Unable to access cssRules property",_e),_e.name!=="SecurityError")throw _e}return d.cloneNode(!1)},v.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(qt){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 _e=d.getContext("2d"),Ve=te.getContext("2d");if(Ve)if(!this.options.allowTaint&&_e)Ve.putImageData(_e.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)}Ve.drawImage(d,0,0)}return te}catch(qt){this.context.logger.info("Unable to clone canvas as it is tainted",d)}return te},v.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(_e){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},v.prototype.appendChildNode=function(d,w,y){(!bf(w)||!hp(w)&&!w.hasAttribute(Lh)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(w)))&&(!this.options.copyStyles||!bf(w)||!th(w))&&d.appendChild(this.cloneNode(w,y))},v.prototype.cloneChildNodes=function(d,w,y){for(var te=this,_e=d.shadowRoot?d.shadowRoot.firstChild:d.firstChild;_e;_e=_e.nextSibling)if(bf(_e)&&nh(_e)&&typeof _e.assignedNodes=="function"){var Ve=_e.assignedNodes();Ve.length&&Ve.forEach(function(ht){return te.appendChildNode(w,ht,y)})}else this.appendChildNode(w,_e,y)},v.prototype.cloneNode=function(d,w){if(Qd(d))return document.createTextNode(d.data);if(!d.ownerDocument)return d.cloneNode(!1);var y=d.ownerDocument.defaultView;if(y&&bf(d)&&(_0(d)||eh(d))){var te=this.createElementClone(d);te.style.transitionProperty="none";var _e=y.getComputedStyle(d),Ve=y.getComputedStyle(d,":before"),ht=y.getComputedStyle(d,":after");this.referenceElement===d&&_0(te)&&(this.clonedReferenceElement=te),Ls(te)&&oh(te);var pt=this.counters.parse(new Uc(this.context,_e)),qt=this.resolvePseudoContent(d,te,Ve,kh.BEFORE);Gp(d)&&(w=!0),Vp(d)||this.cloneChildNodes(d,te,w),qt&&te.insertBefore(qt,te.firstChild);var lr=this.resolvePseudoContent(d,te,ht,kh.AFTER);return lr&&te.appendChild(lr),this.counters.pop(pt),(_e&&(this.options.copyStyles||eh(d))&&!Wp(d)||w)&&M0(_e,te),(d.scrollTop!==0||d.scrollLeft!==0)&&this.scrolledElements.push([te,d.scrollLeft,d.scrollTop]),(rh(d)||Fh(d))&&(rh(te)||Fh(te))&&(te.value=d.value),te}return d.cloneNode(!1)},v.prototype.resolvePseudoContent=function(d,w,y,te){var _e=this;if(y){var Ve=y.content,ht=w.ownerDocument;if(!(!ht||!Ve||Ve==="none"||Ve==="-moz-alt-content"||y.display==="none")){this.counters.parse(new Uc(this.context,y));var pt=new Rs(this.context,y),qt=ht.createElement("html2canvaspseudoelement");M0(y,qt),pt.content.forEach(function(fr){if(fr.type===0)qt.appendChild(ht.createTextNode(fr.value));else if(fr.type===22){var Yr=ht.createElement("img");Yr.src=fr.value,Yr.style.opacity="1",qt.appendChild(Yr)}else if(fr.type===18){if(fr.name==="attr"){var Oi=fr.values.filter(Mo);Oi.length&&qt.appendChild(ht.createTextNode(d.getAttribute(Oi[0].value)||""))}else if(fr.name==="counter"){var Un=fr.values.filter(pA),di=Un[0],Va=Un[1];if(di&&Mo(di)){var Gi=_e.counters.getCounterValue(di.value),Vi=Va&&Mo(Va)?ur.parse(_e.context,Va.value):3;qt.appendChild(ht.createTextNode(Hd(Gi,Vi,!1)))}}else if(fr.name==="counters"){var Oa=fr.values.filter(pA),di=Oa[0],io=Oa[1],Va=Oa[2];if(di&&Mo(di)){var _a=_e.counters.getCounterValues(di.value),Fi=Va&&Mo(Va)?ur.parse(_e.context,Va.value):3,Do=io&&io.type===0?io.value:"",Xa=_a.map(function(Ec){return Hd(Ec,Fi,!1)}).join(Do);qt.appendChild(ht.createTextNode(Xa))}}}else if(fr.type===20)switch(fr.value){case"open-quote":qt.appendChild(ht.createTextNode(la(pt.quotes,_e.quoteDepth++,!0)));break;case"close-quote":qt.appendChild(ht.createTextNode(la(pt.quotes,--_e.quoteDepth,!1)));break;default:qt.appendChild(ht.createTextNode(fr.value))}}),qt.className=mp+" "+xf;var lr=te===kh.BEFORE?" "+mp:" "+xf;return eh(w)?w.className.baseValue+=lr:w.className+=lr,qt}}},v.destroy=function(d){return d.parentNode?(d.parentNode.removeChild(d),!0):!1},v}(),kh;(function(v){v[v.BEFORE=0]="BEFORE",v[v.AFTER=1]="AFTER"})(kh||(kh={}));var Jp=function(v,d){var w=v.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(Lh,"true"),v.body.appendChild(w),w},pp=function(v){return new Promise(function(d){if(v.complete){d();return}if(!v.src){d();return}v.onload=d,v.onerror=d})},Yp=function(v){return Promise.all([].slice.call(v.images,0).map(pp))},Dh=function(v){return new Promise(function(d,w){var y=v.contentWindow;if(!y)return w("No window assigned for iframe");var te=y.document;y.onload=v.onload=function(){y.onload=v.onload=null;var _e=setInterval(function(){te.body.childNodes.length>0&&te.readyState==="complete"&&(clearInterval(_e),d(v))},50)}})},Pm=["all","d","content"],M0=function(v,d){for(var w=v.length-1;w>=0;w--){var y=v.item(w);Pm.indexOf(y)===-1&&d.style.setProperty(y,v.getPropertyValue(y))}return d},Tm=function(v){var d="";return v&&(d+="<!DOCTYPE ",v.name&&(d+=v.name),v.internalSubset&&(d+=v.internalSubset),v.publicId&&(d+='"'+v.publicId+'"'),v.systemId&&(d+='"'+v.systemId+'"'),d+=">"),d},qp=function(v,d,w){v&&v.defaultView&&(d!==v.defaultView.pageXOffset||w!==v.defaultView.pageYOffset)&&v.defaultView.scrollTo(d,w)},em=function(v){var d=v[0],w=v[1],y=v[2];d.scrollLeft=w,d.scrollTop=y},tm=":before",rm=":after",mp="___html2canvas___pseudoelement_before",xf="___html2canvas___pseudoelement_after",ah=`{
|
|
|
content: "" !important;
|
|
|
display: none !important;
|
|
|
}`,oh=function(v){Tu(v,"."+mp+tm+ah+`
|
|
|
.`+xf+rm+ah)},Tu=function(v,d){var w=v.ownerDocument;if(w){var y=w.createElement("style");y.textContent=d,v.appendChild(y)}},gp=function(){function v(){}return v.getOrigin=function(d){var w=v._link;return w?(w.href=d,w.href=w.href,w.protocol+w.hostname+w.port):"about:blank"},v.isSameOrigin=function(d){return v.getOrigin(d)===v._origin},v.setContext=function(d){v._link=d.document.createElement("a"),v._origin=v.getOrigin(d.location.href)},v._origin="about:blank",v}(),IA=function(){function v(d,w){this.context=d,this._options=w,this._cache={}}return v.prototype.addImage=function(d){var w=Promise.resolve();return this.has(d)||(bp(d)||Nh(d))&&(this._cache[d]=this.loadImage(d)).catch(function(){}),w},v.prototype.match=function(d){return this._cache[d]},v.prototype.loadImage=function(d){return ue(this,void 0,void 0,function(){var w,y,te,_e,Ve=this;return T(this,function(ht){switch(ht.label){case 0:return w=gp.isSameOrigin(d),y=!Oh(d)&&this._options.useCORS===!0&&fs.SUPPORT_CORS_IMAGES&&!w,te=!Oh(d)&&!w&&!bp(d)&&typeof this._options.proxy=="string"&&fs.SUPPORT_CORS_XHR&&!y,!w&&this._options.allowTaint===!1&&!Oh(d)&&!bp(d)&&!te&&!y?[2]:(_e=d,te?[4,this.proxy(_e)]:[3,2]);case 1:_e=ht.sent(),ht.label=2;case 2:return this.context.logger.debug("Added image "+d.substring(0,256)),[4,new Promise(function(pt,qt){var lr=new Image;lr.onload=function(){return pt(lr)},lr.onerror=qt,(Um(_e)||y)&&(lr.crossOrigin="anonymous"),lr.src=_e,lr.complete===!0&&setTimeout(function(){return pt(lr)},500),Ve._options.imageTimeout>0&&setTimeout(function(){return qt("Timed out ("+Ve._options.imageTimeout+"ms) loading image")},Ve._options.imageTimeout)})];case 3:return[2,ht.sent()]}})})},v.prototype.has=function(d){return typeof this._cache[d]!="undefined"},v.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},v.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(_e,Ve){var ht=fs.SUPPORT_RESPONSE_TYPE?"blob":"text",pt=new XMLHttpRequest;pt.onload=function(){if(pt.status===200)if(ht==="text")_e(pt.response);else{var fr=new FileReader;fr.addEventListener("load",function(){return _e(fr.result)},!1),fr.addEventListener("error",function(Yr){return Ve(Yr)},!1),fr.readAsDataURL(pt.response)}else Ve("Failed to proxy resource "+te+" with status code "+pt.status)},pt.onerror=Ve;var qt=y.indexOf("?")>-1?"&":"?";if(pt.open("GET",""+y+qt+"url="+encodeURIComponent(d)+"&responseType="+ht),ht!=="text"&&pt instanceof XMLHttpRequest&&(pt.responseType=ht),w._options.imageTimeout){var lr=w._options.imageTimeout;pt.timeout=lr,pt.ontimeout=function(){return Ve("Timed out ("+lr+"ms) proxying "+te)}}pt.send()})},v}(),L0=/^data:image\/svg\+xml/i,nm=/^data:image\/.*;base64,/i,vp=/^data:image\/.*/i,Nh=function(v){return fs.SUPPORT_SVG_DRAWING||!hs(v)},Oh=function(v){return vp.test(v)},Um=function(v){return nm.test(v)},bp=function(v){return v.substr(0,4)==="blob"},hs=function(v){return v.substr(-3).toLowerCase()==="svg"||L0.test(v)},Ii=function(){function v(d,w){this.type=0,this.x=d,this.y=w}return v.prototype.add=function(d,w){return new v(this.x+d,this.y+w)},v}(),Uu=function(v,d,w){return new Ii(v.x+(d.x-v.x)*w,v.y+(d.y-v.y)*w)},k0=function(){function v(d,w,y,te){this.type=1,this.start=d,this.startControl=w,this.endControl=y,this.end=te}return v.prototype.subdivide=function(d,w){var y=Uu(this.start,this.startControl,d),te=Uu(this.startControl,this.endControl,d),_e=Uu(this.endControl,this.end,d),Ve=Uu(y,te,d),ht=Uu(te,_e,d),pt=Uu(Ve,ht,d);return w?new v(this.start,y,Ve,pt):new v(pt,ht,_e,this.end)},v.prototype.add=function(d,w){return new v(this.start.add(d,w),this.startControl.add(d,w),this.endControl.add(d,w),this.end.add(d,w))},v.prototype.reverse=function(){return new v(this.end,this.endControl,this.startControl,this.start)},v}(),dc=function(v){return v.type===1},im=function(){function v(d){var w=d.styles,y=d.bounds,te=jl(w.borderTopLeftRadius,y.width,y.height),_e=te[0],Ve=te[1],ht=jl(w.borderTopRightRadius,y.width,y.height),pt=ht[0],qt=ht[1],lr=jl(w.borderBottomRightRadius,y.width,y.height),fr=lr[0],Yr=lr[1],Oi=jl(w.borderBottomLeftRadius,y.width,y.height),Un=Oi[0],di=Oi[1],Va=[];Va.push((_e+pt)/y.width),Va.push((Un+fr)/y.width),Va.push((Ve+di)/y.height),Va.push((qt+Yr)/y.height);var Gi=Math.max.apply(Math,Va);Gi>1&&(_e/=Gi,Ve/=Gi,pt/=Gi,qt/=Gi,fr/=Gi,Yr/=Gi,Un/=Gi,di/=Gi);var Vi=y.width-pt,Oa=y.height-Yr,io=y.width-fr,_a=y.height-di,Fi=w.borderTopWidth,Do=w.borderRightWidth,Xa=w.borderBottomWidth,Pa=w.borderLeftWidth,qn=to(w.paddingTop,d.bounds.width),Ec=to(w.paddingRight,d.bounds.width),aA=to(w.paddingBottom,d.bounds.width),bo=to(w.paddingLeft,d.bounds.width);this.topLeftBorderDoubleOuterBox=_e>0||Ve>0?ll(y.left+Pa/3,y.top+Fi/3,_e-Pa/3,Ve-Fi/3,Wo.TOP_LEFT):new Ii(y.left+Pa/3,y.top+Fi/3),this.topRightBorderDoubleOuterBox=_e>0||Ve>0?ll(y.left+Vi,y.top+Fi/3,pt-Do/3,qt-Fi/3,Wo.TOP_RIGHT):new Ii(y.left+y.width-Do/3,y.top+Fi/3),this.bottomRightBorderDoubleOuterBox=fr>0||Yr>0?ll(y.left+io,y.top+Oa,fr-Do/3,Yr-Xa/3,Wo.BOTTOM_RIGHT):new Ii(y.left+y.width-Do/3,y.top+y.height-Xa/3),this.bottomLeftBorderDoubleOuterBox=Un>0||di>0?ll(y.left+Pa/3,y.top+_a,Un-Pa/3,di-Xa/3,Wo.BOTTOM_LEFT):new Ii(y.left+Pa/3,y.top+y.height-Xa/3),this.topLeftBorderDoubleInnerBox=_e>0||Ve>0?ll(y.left+Pa*2/3,y.top+Fi*2/3,_e-Pa*2/3,Ve-Fi*2/3,Wo.TOP_LEFT):new Ii(y.left+Pa*2/3,y.top+Fi*2/3),this.topRightBorderDoubleInnerBox=_e>0||Ve>0?ll(y.left+Vi,y.top+Fi*2/3,pt-Do*2/3,qt-Fi*2/3,Wo.TOP_RIGHT):new Ii(y.left+y.width-Do*2/3,y.top+Fi*2/3),this.bottomRightBorderDoubleInnerBox=fr>0||Yr>0?ll(y.left+io,y.top+Oa,fr-Do*2/3,Yr-Xa*2/3,Wo.BOTTOM_RIGHT):new Ii(y.left+y.width-Do*2/3,y.top+y.height-Xa*2/3),this.bottomLeftBorderDoubleInnerBox=Un>0||di>0?ll(y.left+Pa*2/3,y.top+_a,Un-Pa*2/3,di-Xa*2/3,Wo.BOTTOM_LEFT):new Ii(y.left+Pa*2/3,y.top+y.height-Xa*2/3),this.topLeftBorderStroke=_e>0||Ve>0?ll(y.left+Pa/2,y.top+Fi/2,_e-Pa/2,Ve-Fi/2,Wo.TOP_LEFT):new Ii(y.left+Pa/2,y.top+Fi/2),this.topRightBorderStroke=_e>0||Ve>0?ll(y.left+Vi,y.top+Fi/2,pt-Do/2,qt-Fi/2,Wo.TOP_RIGHT):new Ii(y.left+y.width-Do/2,y.top+Fi/2),this.bottomRightBorderStroke=fr>0||Yr>0?ll(y.left+io,y.top+Oa,fr-Do/2,Yr-Xa/2,Wo.BOTTOM_RIGHT):new Ii(y.left+y.width-Do/2,y.top+y.height-Xa/2),this.bottomLeftBorderStroke=Un>0||di>0?ll(y.left+Pa/2,y.top+_a,Un-Pa/2,di-Xa/2,Wo.BOTTOM_LEFT):new Ii(y.left+Pa/2,y.top+y.height-Xa/2),this.topLeftBorderBox=_e>0||Ve>0?ll(y.left,y.top,_e,Ve,Wo.TOP_LEFT):new Ii(y.left,y.top),this.topRightBorderBox=pt>0||qt>0?ll(y.left+Vi,y.top,pt,qt,Wo.TOP_RIGHT):new Ii(y.left+y.width,y.top),this.bottomRightBorderBox=fr>0||Yr>0?ll(y.left+io,y.top+Oa,fr,Yr,Wo.BOTTOM_RIGHT):new Ii(y.left+y.width,y.top+y.height),this.bottomLeftBorderBox=Un>0||di>0?ll(y.left,y.top+_a,Un,di,Wo.BOTTOM_LEFT):new Ii(y.left,y.top+y.height),this.topLeftPaddingBox=_e>0||Ve>0?ll(y.left+Pa,y.top+Fi,Math.max(0,_e-Pa),Math.max(0,Ve-Fi),Wo.TOP_LEFT):new Ii(y.left+Pa,y.top+Fi),this.topRightPaddingBox=pt>0||qt>0?ll(y.left+Math.min(Vi,y.width-Do),y.top+Fi,Vi>y.width+Do?0:Math.max(0,pt-Do),Math.max(0,qt-Fi),Wo.TOP_RIGHT):new Ii(y.left+y.width-Do,y.top+Fi),this.bottomRightPaddingBox=fr>0||Yr>0?ll(y.left+Math.min(io,y.width-Pa),y.top+Math.min(Oa,y.height-Xa),Math.max(0,fr-Do),Math.max(0,Yr-Xa),Wo.BOTTOM_RIGHT):new Ii(y.left+y.width-Do,y.top+y.height-Xa),this.bottomLeftPaddingBox=Un>0||di>0?ll(y.left+Pa,y.top+Math.min(_a,y.height-Xa),Math.max(0,Un-Pa),Math.max(0,di-Xa),Wo.BOTTOM_LEFT):new Ii(y.left+Pa,y.top+y.height-Xa),this.topLeftContentBox=_e>0||Ve>0?ll(y.left+Pa+bo,y.top+Fi+qn,Math.max(0,_e-(Pa+bo)),Math.max(0,Ve-(Fi+qn)),Wo.TOP_LEFT):new Ii(y.left+Pa+bo,y.top+Fi+qn),this.topRightContentBox=pt>0||qt>0?ll(y.left+Math.min(Vi,y.width+Pa+bo),y.top+Fi+qn,Vi>y.width+Pa+bo?0:pt-Pa+bo,qt-(Fi+qn),Wo.TOP_RIGHT):new Ii(y.left+y.width-(Do+Ec),y.top+Fi+qn),this.bottomRightContentBox=fr>0||Yr>0?ll(y.left+Math.min(io,y.width-(Pa+bo)),y.top+Math.min(Oa,y.height+Fi+qn),Math.max(0,fr-(Do+Ec)),Yr-(Xa+aA),Wo.BOTTOM_RIGHT):new Ii(y.left+y.width-(Do+Ec),y.top+y.height-(Xa+aA)),this.bottomLeftContentBox=Un>0||di>0?ll(y.left+Pa+bo,y.top+_a,Math.max(0,Un-(Pa+bo)),di-(Xa+aA),Wo.BOTTOM_LEFT):new Ii(y.left+Pa+bo,y.top+y.height-(Xa+aA))}return v}(),Wo;(function(v){v[v.TOP_LEFT=0]="TOP_LEFT",v[v.TOP_RIGHT=1]="TOP_RIGHT",v[v.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",v[v.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Wo||(Wo={}));var ll=function(v,d,w,y,te){var _e=4*((Math.sqrt(2)-1)/3),Ve=w*_e,ht=y*_e,pt=v+w,qt=d+y;switch(te){case Wo.TOP_LEFT:return new k0(new Ii(v,qt),new Ii(v,qt-ht),new Ii(pt-Ve,d),new Ii(pt,d));case Wo.TOP_RIGHT:return new k0(new Ii(v,d),new Ii(v+Ve,d),new Ii(pt,qt-ht),new Ii(pt,qt));case Wo.BOTTOM_RIGHT:return new k0(new Ii(pt,d),new Ii(pt,d+ht),new Ii(v+Ve,qt),new Ii(v,qt));case Wo.BOTTOM_LEFT:default:return new k0(new Ii(pt,qt),new Ii(pt-Ve,qt),new Ii(v,d+ht),new Ii(v,d))}},tl=function(v){return[v.topLeftBorderBox,v.topRightBorderBox,v.bottomRightBorderBox,v.bottomLeftBorderBox]},Rm=function(v){return[v.topLeftContentBox,v.topRightContentBox,v.bottomRightContentBox,v.bottomLeftContentBox]},D0=function(v){return[v.topLeftPaddingBox,v.topRightPaddingBox,v.bottomRightPaddingBox,v.bottomLeftPaddingBox]},Za=function(){function v(d,w,y){this.offsetX=d,this.offsetY=w,this.matrix=y,this.type=0,this.target=6}return v}(),Cf=function(){function v(d,w){this.path=d,this.target=w,this.type=1}return v}(),ks=function(){function v(d){this.opacity=d,this.type=2,this.target=6}return v}(),jd=function(v){return v.type===0},N0=function(v){return v.type===1},fc=function(v){return v.type===2},Ad=function(v,d){return v.length===d.length?v.some(function(w,y){return w===d[y]}):!1},yp=function(v,d,w,y,te){return v.map(function(_e,Ve){switch(Ve){case 0:return _e.add(d,w);case 1:return _e.add(d+y,w);case 2:return _e.add(d+y,w+te);case 3:return _e.add(d,w+te)}return _e})},vn=function(){function v(d){this.element=d,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return v}(),Ks=function(){function v(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 ks(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,_e=this.container.styles.transform;this.effects.push(new Za(y,te,_e))}if(this.container.styles.overflowX!==0){var Ve=tl(this.curves),ht=D0(this.curves);Ad(Ve,ht)?this.effects.push(new Cf(Ve,6)):(this.effects.push(new Cf(Ve,2)),this.effects.push(new Cf(ht,4)))}}return v.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 _e=y.effects.filter(function(pt){return!N0(pt)});if(w||y.container.styles.position!==0||!y.parent){if(te.unshift.apply(te,_e),w=[2,3].indexOf(y.container.styles.position)===-1,y.container.styles.overflowX!==0){var Ve=tl(y.curves),ht=D0(y.curves);Ad(Ve,ht)||te.unshift(new Cf(ht,6))}}else te.unshift.apply(te,_e);y=y.parent}return te.filter(function(pt){return ai(pt.target,d)})},v}(),O0=function(v,d,w,y){v.container.elements.forEach(function(te){var _e=ai(te.flags,4),Ve=ai(te.flags,2),ht=new Ks(te,v);ai(te.styles.display,2048)&&y.push(ht);var pt=ai(te.flags,8)?[]:y;if(_e||Ve){var qt=_e||te.styles.isPositioned()?w:d,lr=new vn(ht);if(te.styles.isPositioned()||te.styles.opacity<1||te.styles.isTransformed()){var fr=te.styles.zIndex.order;if(fr<0){var Yr=0;qt.negativeZIndex.some(function(Un,di){return fr>Un.element.container.styles.zIndex.order?(Yr=di,!1):Yr>0}),qt.negativeZIndex.splice(Yr,0,lr)}else if(fr>0){var Oi=0;qt.positiveZIndex.some(function(Un,di){return fr>=Un.element.container.styles.zIndex.order?(Oi=di+1,!1):Oi>0}),qt.positiveZIndex.splice(Oi,0,lr)}else qt.zeroOrAutoZIndexOrTransformedOrOpacity.push(lr)}else te.styles.isFloating()?qt.nonPositionedFloats.push(lr):qt.nonPositionedInlineLevel.push(lr);O0(ht,lr,_e?lr:w,pt)}else te.styles.isInlineLevel()?d.inlineLevel.push(ht):d.nonInlineLevel.push(ht),O0(ht,d,w,pt);ai(te.flags,8)&&P0(te,pt)})},P0=function(v,d){for(var w=v instanceof Jf?v.start:1,y=v instanceof Jf?v.reversed:!1,te=0;te<d.length;te++){var _e=d[te];_e.container instanceof Ud&&typeof _e.container.value=="number"&&_e.container.value!==0&&(w=_e.container.value),_e.listValue=Hd(w,_e.container.styles.listStyleType,!0),w+=y?-1:1}},Kc=function(v){var d=new Ks(v,null),w=new vn(d),y=[];return O0(d,w,w,y),P0(d.container,y),w},Sc=function(v,d){switch(d){case 0:return FA(v.topLeftBorderBox,v.topLeftPaddingBox,v.topRightBorderBox,v.topRightPaddingBox);case 1:return FA(v.topRightBorderBox,v.topRightPaddingBox,v.bottomRightBorderBox,v.bottomRightPaddingBox);case 2:return FA(v.bottomRightBorderBox,v.bottomRightPaddingBox,v.bottomLeftBorderBox,v.bottomLeftPaddingBox);case 3:default:return FA(v.bottomLeftBorderBox,v.bottomLeftPaddingBox,v.topLeftBorderBox,v.topLeftPaddingBox)}},oc=function(v,d){switch(d){case 0:return FA(v.topLeftBorderBox,v.topLeftBorderDoubleOuterBox,v.topRightBorderBox,v.topRightBorderDoubleOuterBox);case 1:return FA(v.topRightBorderBox,v.topRightBorderDoubleOuterBox,v.bottomRightBorderBox,v.bottomRightBorderDoubleOuterBox);case 2:return FA(v.bottomRightBorderBox,v.bottomRightBorderDoubleOuterBox,v.bottomLeftBorderBox,v.bottomLeftBorderDoubleOuterBox);case 3:default:return FA(v.bottomLeftBorderBox,v.bottomLeftBorderDoubleOuterBox,v.topLeftBorderBox,v.topLeftBorderDoubleOuterBox)}},hc=function(v,d){switch(d){case 0:return FA(v.topLeftBorderDoubleInnerBox,v.topLeftPaddingBox,v.topRightBorderDoubleInnerBox,v.topRightPaddingBox);case 1:return FA(v.topRightBorderDoubleInnerBox,v.topRightPaddingBox,v.bottomRightBorderDoubleInnerBox,v.bottomRightPaddingBox);case 2:return FA(v.bottomRightBorderDoubleInnerBox,v.bottomRightPaddingBox,v.bottomLeftBorderDoubleInnerBox,v.bottomLeftPaddingBox);case 3:default:return FA(v.bottomLeftBorderDoubleInnerBox,v.bottomLeftPaddingBox,v.topLeftBorderDoubleInnerBox,v.topLeftPaddingBox)}},am=function(v,d){switch(d){case 0:return T0(v.topLeftBorderStroke,v.topRightBorderStroke);case 1:return T0(v.topRightBorderStroke,v.bottomRightBorderStroke);case 2:return T0(v.bottomRightBorderStroke,v.bottomLeftBorderStroke);case 3:default:return T0(v.bottomLeftBorderStroke,v.topLeftBorderStroke)}},T0=function(v,d){var w=[];return dc(v)?w.push(v.subdivide(.5,!1)):w.push(v),dc(d)?w.push(d.subdivide(.5,!0)):w.push(d),w},FA=function(v,d,w,y){var te=[];return dc(v)?te.push(v.subdivide(.5,!1)):te.push(v),dc(w)?te.push(w.subdivide(.5,!0)):te.push(w),dc(y)?te.push(y.subdivide(.5,!0).reverse()):te.push(y),dc(d)?te.push(d.subdivide(.5,!1).reverse()):te.push(d),te},Bf=function(v){var d=v.bounds,w=v.styles;return d.add(w.borderLeftWidth,w.borderTopWidth,-(w.borderRightWidth+w.borderLeftWidth),-(w.borderTopWidth+w.borderBottomWidth))},Nl=function(v){var d=v.styles,w=v.bounds,y=to(d.paddingLeft,w.width),te=to(d.paddingRight,w.width),_e=to(d.paddingTop,w.width),Ve=to(d.paddingBottom,w.width);return w.add(y+d.borderLeftWidth,_e+d.borderTopWidth,-(d.borderRightWidth+d.borderLeftWidth+y+te),-(d.borderTopWidth+d.borderBottomWidth+_e+Ve))},Sf=function(v,d){return v===0?d.bounds:v===2?Nl(d):Bf(d)},wp=function(v,d){return v===0?d.bounds:v===2?Nl(d):Bf(d)},Xc=function(v,d,w){var y=Sf(nA(v.styles.backgroundOrigin,d),v),te=wp(nA(v.styles.backgroundClip,d),v),_e=Ru(nA(v.styles.backgroundSize,d),w,y),Ve=_e[0],ht=_e[1],pt=jl(nA(v.styles.backgroundPosition,d),y.width-Ve,y.height-ht),qt=xp(nA(v.styles.backgroundRepeat,d),pt,_e,y,te),lr=Math.round(y.left+pt[0]),fr=Math.round(y.top+pt[1]);return[qt,lr,fr,Ve,ht]},pc=function(v){return Mo(v)&&v.value===xl.AUTO},Ph=function(v){return typeof v=="number"},Ru=function(v,d,w){var y=d[0],te=d[1],_e=d[2],Ve=v[0],ht=v[1];if(!Ve)return[0,0];if(ms(Ve)&&ht&&ms(ht))return[to(Ve,w.width),to(ht,w.height)];var pt=Ph(_e);if(Mo(Ve)&&(Ve.value===xl.CONTAIN||Ve.value===xl.COVER)){if(Ph(_e)){var qt=w.width/w.height;return qt<_e!=(Ve.value===xl.COVER)?[w.width,w.width/_e]:[w.height*_e,w.height]}return[w.width,w.height]}var lr=Ph(y),fr=Ph(te),Yr=lr||fr;if(pc(Ve)&&(!ht||pc(ht))){if(lr&&fr)return[y,te];if(!pt&&!Yr)return[w.width,w.height];if(Yr&&pt){var Oi=lr?y:te*_e,Un=fr?te:y/_e;return[Oi,Un]}var di=lr?y:w.width,Va=fr?te:w.height;return[di,Va]}if(pt){var Gi=0,Vi=0;return ms(Ve)?Gi=to(Ve,w.width):ms(ht)&&(Vi=to(ht,w.height)),pc(Ve)?Gi=Vi*_e:(!ht||pc(ht))&&(Vi=Gi/_e),[Gi,Vi]}var Oa=null,io=null;if(ms(Ve)?Oa=to(Ve,w.width):ht&&ms(ht)&&(io=to(ht,w.height)),Oa!==null&&(!ht||pc(ht))&&(io=lr&&fr?Oa/y*te:w.height),io!==null&&pc(Ve)&&(Oa=lr&&fr?io/te*y:w.width),Oa!==null&&io!==null)return[Oa,io];throw new Error("Unable to calculate background-size for element")},nA=function(v,d){var w=v[d];return typeof w=="undefined"?v[0]:w},xp=function(v,d,w,y,te){var _e=d[0],Ve=d[1],ht=w[0],pt=w[1];switch(v){case 2:return[new Ii(Math.round(y.left),Math.round(y.top+Ve)),new Ii(Math.round(y.left+y.width),Math.round(y.top+Ve)),new Ii(Math.round(y.left+y.width),Math.round(pt+y.top+Ve)),new Ii(Math.round(y.left),Math.round(pt+y.top+Ve))];case 3:return[new Ii(Math.round(y.left+_e),Math.round(y.top)),new Ii(Math.round(y.left+_e+ht),Math.round(y.top)),new Ii(Math.round(y.left+_e+ht),Math.round(y.height+y.top)),new Ii(Math.round(y.left+_e),Math.round(y.height+y.top))];case 1:return[new Ii(Math.round(y.left+_e),Math.round(y.top+Ve)),new Ii(Math.round(y.left+_e+ht),Math.round(y.top+Ve)),new Ii(Math.round(y.left+_e+ht),Math.round(y.top+Ve+pt)),new Ii(Math.round(y.left+_e),Math.round(y.top+Ve+pt))];default:return[new Ii(Math.round(te.left),Math.round(te.top)),new Ii(Math.round(te.left+te.width),Math.round(te.top)),new Ii(Math.round(te.left+te.width),Math.round(te.height+te.top)),new Ii(Math.round(te.left),Math.round(te.height+te.top))]}},Th="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",sh="Hidden Text",zd=function(){function v(d){this._data={},this._document=d}return v.prototype.parseMetrics=function(d,w){var y=this._document.createElement("div"),te=this._document.createElement("img"),_e=this._document.createElement("span"),Ve=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",Ve.appendChild(y),te.src=Th,te.width=1,te.height=1,te.style.margin="0",te.style.padding="0",te.style.verticalAlign="baseline",_e.style.fontFamily=d,_e.style.fontSize=w,_e.style.margin="0",_e.style.padding="0",_e.appendChild(this._document.createTextNode(sh)),y.appendChild(_e),y.appendChild(te);var ht=te.offsetTop-_e.offsetTop+2;y.removeChild(_e),y.appendChild(this._document.createTextNode(sh)),y.style.lineHeight="normal",te.style.verticalAlign="super";var pt=te.offsetTop-y.offsetTop+2;return Ve.removeChild(y),{baseline:ht,middle:pt}},v.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]},v}(),$d=function(){function v(d,w){this.context=d,this.options=w}return v}(),Aa=1e4,cl=function(v){x(d,v);function d(w,y){var te=v.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 zd(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(),fc(w)&&(this.ctx.globalAlpha=w.opacity),jd(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)),N0(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 ue(this,void 0,void 0,function(){var y;return T(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 ue(this,void 0,void 0,function(){return T(this,function(y){switch(y.label){case 0:if(ai(w.container.flags,16))debugger;return w.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(w)]:[3,3];case 1:return y.sent(),[4,this.renderNodeContent(w)];case 2:y.sent(),y.label=3;case 3:return[2]}})})},d.prototype.renderTextWithLetterSpacing=function(w,y,te){var _e=this;if(y===0)this.ctx.fillText(w.text,w.bounds.left,w.bounds.top+te);else{var Ve=vo(w.text);Ve.reduce(function(ht,pt){return _e.ctx.fillText(pt,ht,w.bounds.top+te),ht+_e.ctx.measureText(pt).width},w.bounds.left)}},d.prototype.createFontStyle=function(w){var y=w.fontVariant.filter(function(Ve){return Ve==="normal"||Ve==="small-caps"}).join(""),te=Zd(w.fontFamily).join(", "),_e=Fs(w.fontSize)?""+w.fontSize.number+w.fontSize.unit:w.fontSize.number+"px";return[[w.fontStyle,y,w.fontWeight,_e,te].join(" "),te,_e]},d.prototype.renderTextNode=function(w,y){return ue(this,void 0,void 0,function(){var te,_e,Ve,ht,pt,qt,lr,fr,Yr=this;return T(this,function(Oi){return te=this.createFontStyle(y),_e=te[0],Ve=te[1],ht=te[2],this.ctx.font=_e,this.ctx.direction=y.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",pt=this.fontMetrics.getMetrics(Ve,ht),qt=pt.baseline,lr=pt.middle,fr=y.paintOrder,w.textBounds.forEach(function(Un){fr.forEach(function(di){switch(di){case 0:Yr.ctx.fillStyle=Oo(y.color),Yr.renderTextWithLetterSpacing(Un,y.letterSpacing,qt);var Va=y.textShadow;Va.length&&Un.text.trim().length&&(Va.slice(0).reverse().forEach(function(Gi){Yr.ctx.shadowColor=Oo(Gi.color),Yr.ctx.shadowOffsetX=Gi.offsetX.number*Yr.options.scale,Yr.ctx.shadowOffsetY=Gi.offsetY.number*Yr.options.scale,Yr.ctx.shadowBlur=Gi.blur.number,Yr.renderTextWithLetterSpacing(Un,y.letterSpacing,qt)}),Yr.ctx.shadowColor="",Yr.ctx.shadowOffsetX=0,Yr.ctx.shadowOffsetY=0,Yr.ctx.shadowBlur=0),y.textDecorationLine.length&&(Yr.ctx.fillStyle=Oo(y.textDecorationColor||y.color),y.textDecorationLine.forEach(function(Gi){switch(Gi){case 1:Yr.ctx.fillRect(Un.bounds.left,Math.round(Un.bounds.top+qt),Un.bounds.width,1);break;case 2:Yr.ctx.fillRect(Un.bounds.left,Math.round(Un.bounds.top),Un.bounds.width,1);break;case 3:Yr.ctx.fillRect(Un.bounds.left,Math.ceil(Un.bounds.top+lr),Un.bounds.width,1);break}}));break;case 1:y.webkitTextStrokeWidth&&Un.text.trim().length&&(Yr.ctx.strokeStyle=Oo(y.webkitTextStrokeColor),Yr.ctx.lineWidth=y.webkitTextStrokeWidth,Yr.ctx.lineJoin=window.chrome?"miter":"round",Yr.ctx.strokeText(Un.text,Un.bounds.left,Un.bounds.top+qt)),Yr.ctx.strokeStyle="",Yr.ctx.lineWidth=0,Yr.ctx.lineJoin="miter";break}})}),[2]})})},d.prototype.renderReplacedElement=function(w,y,te){if(te&&w.intrinsicWidth>0&&w.intrinsicHeight>0){var _e=Nl(w),Ve=D0(y);this.path(Ve),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(te,0,0,w.intrinsicWidth,w.intrinsicHeight,_e.left,_e.top,_e.width,_e.height),this.ctx.restore()}},d.prototype.renderNodeContent=function(w){return ue(this,void 0,void 0,function(){var y,te,_e,Ve,ht,pt,Vi,Vi,qt,lr,fr,Yr,io,Oi,Un,_a,di,Va,Gi,Vi,Oa,io,_a;return T(this,function(Fi){switch(Fi.label){case 0:this.applyEffects(w.getEffects(4)),y=w.container,te=w.curves,_e=y.styles,Ve=0,ht=y.textNodes,Fi.label=1;case 1:return Ve<ht.length?(pt=ht[Ve],[4,this.renderTextNode(pt,_e)]):[3,4];case 2:Fi.sent(),Fi.label=3;case 3:return Ve++,[3,1];case 4:if(!(y instanceof w0))return[3,8];Fi.label=5;case 5:return Fi.trys.push([5,7,,8]),[4,this.context.cache.match(y.src)];case 6:return Vi=Fi.sent(),this.renderReplacedElement(y,te,Vi),[3,8];case 7:return Fi.sent(),this.context.logger.error("Error loading image "+y.src),[3,8];case 8:if(y instanceof Eo&&this.renderReplacedElement(y,te,y.canvas),!(y instanceof vf))return[3,12];Fi.label=9;case 9:return Fi.trys.push([9,11,,12]),[4,this.context.cache.match(y.svg)];case 10:return Vi=Fi.sent(),this.renderReplacedElement(y,te,Vi),[3,12];case 11:return Fi.sent(),this.context.logger.error("Error loading svg "+y.svg.substring(0,255)),[3,12];case 12:return y instanceof _h&&y.tree?(qt=new d(this.context,{scale:this.options.scale,backgroundColor:y.backgroundColor,x:0,y:0,width:y.width,height:y.height}),[4,qt.render(y.tree)]):[3,14];case 13:lr=Fi.sent(),y.width&&y.height&&this.ctx.drawImage(lr,0,0,y.width,y.height,y.bounds.left,y.bounds.top,y.bounds.width,y.bounds.height),Fi.label=14;case 14:if(y instanceof Jl&&(fr=Math.min(y.bounds.width,y.bounds.height),y.type===C0?y.checked&&(this.ctx.save(),this.path([new Ii(y.bounds.left+fr*.39363,y.bounds.top+fr*.79),new Ii(y.bounds.left+fr*.16,y.bounds.top+fr*.5549),new Ii(y.bounds.left+fr*.27347,y.bounds.top+fr*.44071),new Ii(y.bounds.left+fr*.39694,y.bounds.top+fr*.5649),new Ii(y.bounds.left+fr*.72983,y.bounds.top+fr*.23),new Ii(y.bounds.left+fr*.84,y.bounds.top+fr*.34085),new Ii(y.bounds.left+fr*.39363,y.bounds.top+fr*.79)]),this.ctx.fillStyle=Oo(B0),this.ctx.fill(),this.ctx.restore()):y.type===Rd&&y.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(y.bounds.left+fr/2,y.bounds.top+fr/2,fr/4,0,Math.PI*2,!0),this.ctx.fillStyle=Oo(B0),this.ctx.fill(),this.ctx.restore())),Ef(y)&&y.value.length){switch(Yr=this.createFontStyle(_e),io=Yr[0],Oi=Yr[1],Un=this.fontMetrics.getMetrics(io,Oi).baseline,this.ctx.font=io,this.ctx.fillStyle=Oo(_e.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=JA(y.styles.textAlign),_a=Nl(y),di=0,y.styles.textAlign){case 1:di+=_a.width/2;break;case 2:di+=_a.width;break}Va=_a.add(di,0,0,-_a.height/2+1),this.ctx.save(),this.path([new Ii(_a.left,_a.top),new Ii(_a.left+_a.width,_a.top),new Ii(_a.left+_a.width,_a.top+_a.height),new Ii(_a.left,_a.top+_a.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new Qc(y.value,Va),_e.letterSpacing,Un),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!ai(y.styles.display,2048))return[3,20];if(y.styles.listStyleImage===null)return[3,19];if(Gi=y.styles.listStyleImage,Gi.type!==0)return[3,18];Vi=void 0,Oa=Gi.url,Fi.label=15;case 15:return Fi.trys.push([15,17,,18]),[4,this.context.cache.match(Oa)];case 16:return Vi=Fi.sent(),this.ctx.drawImage(Vi,y.bounds.left-(Vi.width+10),y.bounds.top),[3,18];case 17:return Fi.sent(),this.context.logger.error("Error loading list-style-image "+Oa),[3,18];case 18:return[3,20];case 19:w.listValue&&y.styles.listStyleType!==-1&&(io=this.createFontStyle(_e)[0],this.ctx.font=io,this.ctx.fillStyle=Oo(_e.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",_a=new re(y.bounds.left,y.bounds.top+to(y.styles.paddingTop,y.bounds.width),y.bounds.width,Vt(_e.lineHeight,_e.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new Qc(w.listValue,_a),_e.letterSpacing,Vt(_e.lineHeight,_e.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Fi.label=20;case 20:return[2]}})})},d.prototype.renderStackContent=function(w){return ue(this,void 0,void 0,function(){var y,te,Gi,_e,Ve,Gi,ht,pt,Gi,qt,lr,Gi,fr,Yr,Gi,Oi,Un,Gi,di,Va,Gi;return T(this,function(Vi){switch(Vi.label){case 0:if(ai(w.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(w.element)];case 1:Vi.sent(),y=0,te=w.negativeZIndex,Vi.label=2;case 2:return y<te.length?(Gi=te[y],[4,this.renderStack(Gi)]):[3,5];case 3:Vi.sent(),Vi.label=4;case 4:return y++,[3,2];case 5:return[4,this.renderNodeContent(w.element)];case 6:Vi.sent(),_e=0,Ve=w.nonInlineLevel,Vi.label=7;case 7:return _e<Ve.length?(Gi=Ve[_e],[4,this.renderNode(Gi)]):[3,10];case 8:Vi.sent(),Vi.label=9;case 9:return _e++,[3,7];case 10:ht=0,pt=w.nonPositionedFloats,Vi.label=11;case 11:return ht<pt.length?(Gi=pt[ht],[4,this.renderStack(Gi)]):[3,14];case 12:Vi.sent(),Vi.label=13;case 13:return ht++,[3,11];case 14:qt=0,lr=w.nonPositionedInlineLevel,Vi.label=15;case 15:return qt<lr.length?(Gi=lr[qt],[4,this.renderStack(Gi)]):[3,18];case 16:Vi.sent(),Vi.label=17;case 17:return qt++,[3,15];case 18:fr=0,Yr=w.inlineLevel,Vi.label=19;case 19:return fr<Yr.length?(Gi=Yr[fr],[4,this.renderNode(Gi)]):[3,22];case 20:Vi.sent(),Vi.label=21;case 21:return fr++,[3,19];case 22:Oi=0,Un=w.zeroOrAutoZIndexOrTransformedOrOpacity,Vi.label=23;case 23:return Oi<Un.length?(Gi=Un[Oi],[4,this.renderStack(Gi)]):[3,26];case 24:Vi.sent(),Vi.label=25;case 25:return Oi++,[3,23];case 26:di=0,Va=w.positiveZIndex,Vi.label=27;case 27:return di<Va.length?(Gi=Va[di],[4,this.renderStack(Gi)]):[3,30];case 28:Vi.sent(),Vi.label=29;case 29:return di++,[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,_e){var Ve=dc(te)?te.start:te;_e===0?y.ctx.moveTo(Ve.x,Ve.y):y.ctx.lineTo(Ve.x,Ve.y),dc(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,_e){this.path(w),this.ctx.fillStyle=y,this.ctx.translate(te,_e),this.ctx.fill(),this.ctx.translate(-te,-_e)},d.prototype.resizeImage=function(w,y,te){var _e;if(w.width===y&&w.height===te)return w;var Ve=(_e=this.canvas.ownerDocument)!==null&&_e!==void 0?_e:document,ht=Ve.createElement("canvas");ht.width=Math.max(1,y),ht.height=Math.max(1,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 ue(this,void 0,void 0,function(){var y,te,_e,Ve,ht,pt;return T(this,function(qt){switch(qt.label){case 0:y=w.styles.backgroundImage.length-1,te=function(lr){var fr,Yr,Oi,qn,Jc,oA,bo,_c,Xa,Un,qn,Jc,oA,bo,_c,di,Va,Gi,Vi,Oa,io,_a,Fi,Do,Xa,Pa,qn,Ec,aA,bo,_c,dd,Jc,oA,hu,YA,pu,Qu,MA,Ku,Vd,qA;return T(this,function(fd){switch(fd.label){case 0:if(lr.type!==0)return[3,5];fr=void 0,Yr=lr.url,fd.label=1;case 1:return fd.trys.push([1,3,,4]),[4,_e.context.cache.match(Yr)];case 2:return fr=fd.sent(),[3,4];case 3:return fd.sent(),_e.context.logger.error("Error loading background-image "+Yr),[3,4];case 4:return fr&&(Oi=Xc(w,y,[fr.width,fr.height,fr.width/fr.height]),qn=Oi[0],Jc=Oi[1],oA=Oi[2],bo=Oi[3],_c=Oi[4],Xa=_e.ctx.createPattern(_e.resizeImage(fr,bo,_c),"repeat"),_e.renderRepeat(qn,Xa,Jc,oA)),[3,6];case 5:GA(lr)?(Un=Xc(w,y,[null,null,null]),qn=Un[0],Jc=Un[1],oA=Un[2],bo=Un[3],_c=Un[4],di=Gu(lr.angle,bo,_c),Va=di[0],Gi=di[1],Vi=di[2],Oa=di[3],io=di[4],_a=document.createElement("canvas"),_a.width=bo,_a.height=_c,Fi=_a.getContext("2d"),Do=Fi.createLinearGradient(Gi,Oa,Vi,io),sf(lr.stops,Va).forEach(function(Hc){return Do.addColorStop(Hc.stop,Oo(Hc.color))}),Fi.fillStyle=Do,Fi.fillRect(0,0,bo,_c),bo>0&&_c>0&&(Xa=_e.ctx.createPattern(_a,"repeat"),_e.renderRepeat(qn,Xa,Jc,oA))):p0(lr)&&(Pa=Xc(w,y,[null,null,null]),qn=Pa[0],Ec=Pa[1],aA=Pa[2],bo=Pa[3],_c=Pa[4],dd=lr.position.length===0?[OA]:lr.position,Jc=to(dd[0],bo),oA=to(dd[dd.length-1],_c),hu=Jo(lr,Jc,oA,bo,_c),YA=hu[0],pu=hu[1],YA>0&&pu>0&&(Qu=_e.ctx.createRadialGradient(Ec+Jc,aA+oA,0,Ec+Jc,aA+oA,YA),sf(lr.stops,YA*2).forEach(function(Hc){return Qu.addColorStop(Hc.stop,Oo(Hc.color))}),_e.path(qn),_e.ctx.fillStyle=Qu,YA!==pu?(MA=w.bounds.left+.5*w.bounds.width,Ku=w.bounds.top+.5*w.bounds.height,Vd=pu/YA,qA=1/Vd,_e.ctx.save(),_e.ctx.translate(MA,Ku),_e.ctx.transform(1,0,0,Vd,0,0),_e.ctx.translate(-MA,-Ku),_e.ctx.fillRect(Ec,qA*(aA-Ku)+Ku,bo,_c*qA),_e.ctx.restore()):_e.ctx.fill())),fd.label=6;case 6:return y--,[2]}})},_e=this,Ve=0,ht=w.styles.backgroundImage.slice(0).reverse(),qt.label=1;case 1:return Ve<ht.length?(pt=ht[Ve],[5,te(pt)]):[3,4];case 2:qt.sent(),qt.label=3;case 3:return Ve++,[3,1];case 4:return[2]}})})},d.prototype.renderSolidBorder=function(w,y,te){return ue(this,void 0,void 0,function(){return T(this,function(_e){return this.path(Sc(te,y)),this.ctx.fillStyle=Oo(w),this.ctx.fill(),[2]})})},d.prototype.renderDoubleBorder=function(w,y,te,_e){return ue(this,void 0,void 0,function(){var Ve,ht;return T(this,function(pt){switch(pt.label){case 0:return y<3?[4,this.renderSolidBorder(w,te,_e)]:[3,2];case 1:return pt.sent(),[2];case 2:return Ve=oc(_e,te),this.path(Ve),this.ctx.fillStyle=Oo(w),this.ctx.fill(),ht=hc(_e,te),this.path(ht),this.ctx.fill(),[2]}})})},d.prototype.renderNodeBackgroundAndBorders=function(w){return ue(this,void 0,void 0,function(){var y,te,_e,Ve,ht,pt,qt,lr,fr=this;return T(this,function(Yr){switch(Yr.label){case 0:return this.applyEffects(w.getEffects(2)),y=w.container.styles,te=!$o(y.backgroundColor)||y.backgroundImage.length,_e=[{style:y.borderTopStyle,color:y.borderTopColor,width:y.borderTopWidth},{style:y.borderRightStyle,color:y.borderRightColor,width:y.borderRightWidth},{style:y.borderBottomStyle,color:y.borderBottomColor,width:y.borderBottomWidth},{style:y.borderLeftStyle,color:y.borderLeftColor,width:y.borderLeftWidth}],Ve=ud(nA(y.backgroundClip,0),w.curves),te||y.boxShadow.length?(this.ctx.save(),this.path(Ve),this.ctx.clip(),$o(y.backgroundColor)||(this.ctx.fillStyle=Oo(y.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(w.container)]):[3,2];case 1:Yr.sent(),this.ctx.restore(),y.boxShadow.slice(0).reverse().forEach(function(Oi){fr.ctx.save();var Un=tl(w.curves),di=Oi.inset?0:Aa,Va=yp(Un,-di+(Oi.inset?1:-1)*Oi.spread.number,(Oi.inset?1:-1)*Oi.spread.number,Oi.spread.number*(Oi.inset?-2:2),Oi.spread.number*(Oi.inset?-2:2));Oi.inset?(fr.path(Un),fr.ctx.clip(),fr.mask(Va)):(fr.mask(Un),fr.ctx.clip(),fr.path(Va)),fr.ctx.shadowOffsetX=Oi.offsetX.number+di,fr.ctx.shadowOffsetY=Oi.offsetY.number,fr.ctx.shadowColor=Oo(Oi.color),fr.ctx.shadowBlur=Oi.blur.number,fr.ctx.fillStyle=Oi.inset?Oo(Oi.color):"rgba(0,0,0,1)",fr.ctx.fill(),fr.ctx.restore()}),Yr.label=2;case 2:ht=0,pt=0,qt=_e,Yr.label=3;case 3:return pt<qt.length?(lr=qt[pt],lr.style!==0&&!$o(lr.color)&&lr.width>0?lr.style!==2?[3,5]:[4,this.renderDashedDottedBorder(lr.color,lr.width,ht,w.curves,2)]:[3,11]):[3,13];case 4:return Yr.sent(),[3,11];case 5:return lr.style!==3?[3,7]:[4,this.renderDashedDottedBorder(lr.color,lr.width,ht,w.curves,3)];case 6:return Yr.sent(),[3,11];case 7:return lr.style!==4?[3,9]:[4,this.renderDoubleBorder(lr.color,lr.width,ht,w.curves)];case 8:return Yr.sent(),[3,11];case 9:return[4,this.renderSolidBorder(lr.color,ht,w.curves)];case 10:Yr.sent(),Yr.label=11;case 11:ht++,Yr.label=12;case 12:return pt++,[3,3];case 13:return[2]}})})},d.prototype.renderDashedDottedBorder=function(w,y,te,_e,Ve){return ue(this,void 0,void 0,function(){var ht,pt,qt,lr,fr,Yr,Oi,Un,di,Va,Gi,Vi,Oa,io,_a,Fi,_a,Fi;return T(this,function(Do){return this.ctx.save(),ht=am(_e,te),pt=Sc(_e,te),Ve===2&&(this.path(pt),this.ctx.clip()),dc(pt[0])?(qt=pt[0].start.x,lr=pt[0].start.y):(qt=pt[0].x,lr=pt[0].y),dc(pt[1])?(fr=pt[1].end.x,Yr=pt[1].end.y):(fr=pt[1].x,Yr=pt[1].y),te===0||te===2?Oi=Math.abs(qt-fr):Oi=Math.abs(lr-Yr),this.ctx.beginPath(),Ve===3?this.formatPath(ht):this.formatPath(pt.slice(0,2)),Un=y<3?y*3:y*2,di=y<3?y*2:y,Ve===3&&(Un=y,di=y),Va=!0,Oi<=Un*2?Va=!1:Oi<=Un*2+di?(Gi=Oi/(2*Un+di),Un*=Gi,di*=Gi):(Vi=Math.floor((Oi+di)/(Un+di)),Oa=(Oi-Vi*Un)/(Vi-1),io=(Oi-(Vi+1)*Un)/Vi,di=io<=0||Math.abs(di-Oa)<Math.abs(di-io)?Oa:io),Va&&(Ve===3?this.ctx.setLineDash([0,Un+di]):this.ctx.setLineDash([Un,di])),Ve===3?(this.ctx.lineCap="round",this.ctx.lineWidth=y):this.ctx.lineWidth=y*2+1.1,this.ctx.strokeStyle=Oo(w),this.ctx.stroke(),this.ctx.setLineDash([]),Ve===2&&(dc(pt[0])&&(_a=pt[3],Fi=pt[0],this.ctx.beginPath(),this.formatPath([new Ii(_a.end.x,_a.end.y),new Ii(Fi.start.x,Fi.start.y)]),this.ctx.stroke()),dc(pt[1])&&(_a=pt[1],Fi=pt[2],this.ctx.beginPath(),this.formatPath([new Ii(_a.end.x,_a.end.y),new Ii(Fi.start.x,Fi.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},d.prototype.render=function(w){return ue(this,void 0,void 0,function(){var y;return T(this,function(te){switch(te.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=Oo(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),y=Kc(w),[4,this.renderStack(y)];case 1:return te.sent(),this.applyEffects([]),[2,this.canvas]}})})},d}($d),Ef=function(v){return v instanceof Yf||v instanceof ad?!0:v instanceof Jl&&v.type!==Rd&&v.type!==C0},ud=function(v,d){switch(v){case 0:return tl(d);case 2:return Rm(d);case 1:default:return D0(d)}},JA=function(v){switch(v){case 1:return"center";case 2:return"right";case 0:default:return"left"}},Ma=["-apple-system","system-ui"],Zd=function(v){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?v.filter(function(d){return Ma.indexOf(d)===-1}):v},iA=function(v){x(d,v);function d(w,y){var te=v.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 ue(this,void 0,void 0,function(){var y,te;return T(this,function(_e){switch(_e.label){case 0:return y=UA(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,w),[4,U0(y)];case 1:return te=_e.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=Oo(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(te,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},d}($d),U0=function(v){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(v))})},fu=function(){function v(d){var w=d.id,y=d.enabled;this.id=w,this.enabled=y,this.start=Date.now()}return v.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,De([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},v.prototype.getTime=function(){return Date.now()-this.start},v.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,De([this.id,this.getTime()+"ms"],d))},v.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,De([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},v.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,De([this.id,this.getTime()+"ms"],d)):this.info.apply(this,d))},v.instances={},v}(),Qm=function(){function v(d,w){var y;this.windowBounds=w,this.instanceName="#"+v.instanceCount++,this.logger=new fu({id:this.instanceName,enabled:d.logging}),this.cache=(y=d.cache)!==null&&y!==void 0?y:new IA(this,d)}return v.instanceCount=1,v}(),Km=function(v,d){return d===void 0&&(d={}),Hm(v,d)};typeof window!="undefined"&&gp.setContext(window);var Hm=function(v,d){return ue(void 0,void 0,void 0,function(){var w,y,te,_e,Ve,ht,pt,qt,lr,fr,Yr,Oi,Un,di,Va,Gi,Vi,Oa,io,_a,Do,Fi,Do,Xa,Pa,qn,Ec,aA,bo,_c,dd,Jc,oA,hu,YA,pu,Qu,MA,Ku,Vd;return T(this,function(qA){switch(qA.label){case 0:if(!v||typeof v!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(w=v.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:(Xa=d.allowTaint)!==null&&Xa!==void 0?Xa:!1,imageTimeout:(Pa=d.imageTimeout)!==null&&Pa!==void 0?Pa:15e3,proxy:d.proxy,useCORS:(qn=d.useCORS)!==null&&qn!==void 0?qn:!1},_e=ve({logging:(Ec=d.logging)!==null&&Ec!==void 0?Ec:!0,cache:d.cache},te),Ve={windowWidth:(aA=d.windowWidth)!==null&&aA!==void 0?aA:y.innerWidth,windowHeight:(bo=d.windowHeight)!==null&&bo!==void 0?bo:y.innerHeight,scrollX:(_c=d.scrollX)!==null&&_c!==void 0?_c:y.pageXOffset,scrollY:(dd=d.scrollY)!==null&&dd!==void 0?dd:y.pageYOffset},ht=new re(Ve.scrollX,Ve.scrollY,Ve.windowWidth,Ve.windowHeight),pt=new Qm(_e,ht),qt=(Jc=d.foreignObjectRendering)!==null&&Jc!==void 0?Jc:!1,lr={allowTaint:(oA=d.allowTaint)!==null&&oA!==void 0?oA:!1,onclone:d.onclone,ignoreElements:d.ignoreElements,inlineImages:qt,copyStyles:qt},pt.logger.debug("Starting document clone with size "+ht.width+"x"+ht.height+" scrolled to "+-ht.left+","+-ht.top),fr=new F0(pt,v,lr),Yr=fr.clonedReferenceElement,Yr?[4,fr.toIFrame(w,ht)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return Oi=qA.sent(),Un=Ls(Yr)||km(Yr)?S(Yr.ownerDocument):W(pt,Yr),di=Un.width,Va=Un.height,Gi=Un.left,Vi=Un.top,Oa=Yl(pt,Yr,d.backgroundColor),io={canvas:d.canvas,backgroundColor:Oa,scale:(YA=(hu=d.scale)!==null&&hu!==void 0?hu:y.devicePixelRatio)!==null&&YA!==void 0?YA:1,x:((pu=d.x)!==null&&pu!==void 0?pu:0)+Gi,y:((Qu=d.y)!==null&&Qu!==void 0?Qu:0)+Vi,width:(MA=d.width)!==null&&MA!==void 0?MA:Math.ceil(di),height:(Ku=d.height)!==null&&Ku!==void 0?Ku:Math.ceil(Va)},qt?(pt.logger.debug("Document cloned, using foreign object rendering"),Do=new iA(pt,io),[4,Do.render(Yr)]):[3,3];case 2:return _a=qA.sent(),[3,5];case 3:return pt.logger.debug("Document cloned, element located at "+Gi+","+Vi+" with size "+di+"x"+Va+" using computed rendering"),pt.logger.debug("Starting DOM parsing"),Fi=dp(pt,Yr),Oa===Fi.styles.backgroundColor&&(Fi.styles.backgroundColor=il.TRANSPARENT),pt.logger.debug("Starting renderer for element at "+io.x+","+io.y+" with size "+io.width+"x"+io.height),Do=new cl(pt,io),[4,Do.render(Fi)];case 4:_a=qA.sent(),qA.label=5;case 5:return(!((Vd=d.removeContainer)!==null&&Vd!==void 0)||Vd)&&(F0.destroy(Oi)||pt.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),pt.logger.debug("Finished rendering"),[2,_a]}})})},Yl=function(v,d,w){var y=d.ownerDocument,te=y.documentElement?qc(v,getComputedStyle(y.documentElement).backgroundColor):il.TRANSPARENT,_e=y.body?qc(v,getComputedStyle(y.body).backgroundColor):il.TRANSPARENT,Ve=typeof w=="string"?qc(v,w):w===null?il.TRANSPARENT:4294967295;return d===y.documentElement?$o(te)?$o(_e)?Ve:_e:te:Ve};return Km})},44164:function(dn,Ut,x){var ve=x(97671);(function(T,De){dn.exports=De(x(92042),x(64270))})(self,function(ue,T){return function(){var De={"./src/plugin/hyperlinks.js":function(m,I,g){"use strict";g.r(I);var $=g("./node_modules/core-js/modules/web.dom-collections.for-each.js"),_=g.n($),F=g("./node_modules/core-js/modules/es.string.link.js"),P=g.n(F),U=g("./src/worker.js"),M=g("./src/utils.js"),Y=[],Q={toContainer:U.default.prototype.toContainer,toPdf:U.default.prototype.toPdf};U.default.prototype.toContainer=function(){return Q.toContainer.call(this).then(function(){if(this.opt.enableLinks){var J=this.prop.container,G=J.querySelectorAll("a"),j=(0,M.unitConvert)(J.getBoundingClientRect(),this.prop.pageSize.k);Y=[],Array.prototype.forEach.call(G,function(se){for(var he=se.getClientRects(),Ne=0;Ne<he.length;Ne++){var Be=(0,M.unitConvert)(he[Ne],this.prop.pageSize.k);Be.left-=j.left,Be.top-=j.top;var Pe=Math.floor(Be.top/this.prop.pageSize.inner.height)+1,q=this.opt.margin[0]+Be.top%this.prop.pageSize.inner.height,Ae=this.opt.margin[1]+Be.left;Y.push({page:Pe,top:q,left:Ae,clientRect:Be,link:se})}},this)}})},U.default.prototype.toPdf=function(){return Q.toPdf.call(this).then(function(){if(this.opt.enableLinks){Y.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 J=this.prop.pdf.internal.getNumberOfPages();this.prop.pdf.setPage(J)}})}},"./src/plugin/jspdf-plugin.js":function(m,I,g){"use strict";g.r(I);var $=g("./node_modules/core-js/modules/es.symbol.js"),_=g.n($),F=g("./node_modules/core-js/modules/es.symbol.description.js"),P=g.n(F),U=g("./node_modules/core-js/modules/es.object.to-string.js"),M=g.n(U),Y=g("./node_modules/core-js/modules/es.symbol.iterator.js"),Q=g.n(Y),ae=g("./node_modules/core-js/modules/es.array.iterator.js"),ie=g.n(ae),J=g("./node_modules/core-js/modules/es.string.iterator.js"),G=g.n(J),j=g("./node_modules/core-js/modules/web.dom-collections.iterator.js"),se=g.n(j),he=g("jspdf"),Ne=g.n(he);function Be(Pe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(Ae){return typeof Ae}:Be=function(Ae){return Ae&&typeof Symbol=="function"&&Ae.constructor===Symbol&&Ae!==Symbol.prototype?"symbol":typeof Ae},Be(Pe)}he.jsPDF.getPageSize=function(Pe,q,Ae){if(Be(Pe)==="object"){var D=Pe;Pe=D.orientation,q=D.unit||q,Ae=D.format||Ae}q=q||"mm",Ae=Ae||"a4",Pe=(""+(Pe||"P")).toLowerCase();var Je=(""+Ae).toLowerCase(),Fe={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 Ce=1;break;case"mm":var Ce=72/25.4;break;case"cm":var Ce=72/2.54;break;case"in":var Ce=72;break;case"px":var Ce=72/96;break;case"pc":var Ce=12;break;case"em":var Ce=12;break;case"ex":var Ce=6;break;default:throw"Invalid unit: "+q}if(Fe.hasOwnProperty(Je))var Ue=Fe[Je][1]/Ce,me=Fe[Je][0]/Ce;else try{var Ue=Ae[1],me=Ae[0]}catch(Ee){throw new Error("Invalid format: "+Ae)}if(Pe==="p"||Pe==="portrait"){if(Pe="p",me>Ue){var Me=me;me=Ue,Ue=Me}}else if(Pe==="l"||Pe==="landscape"){if(Pe="l",Ue>me){var Me=me;me=Ue,Ue=Me}}else throw"Invalid orientation: "+Pe;var fe={width:me,height:Ue,unit:q,k:Ce};return fe},I.default=he.jsPDF},"./src/plugin/pagebreaks.js":function(m,I,g){"use strict";g.r(I);var $=g("./node_modules/core-js/modules/es.array.concat.js"),_=g.n($),F=g("./node_modules/core-js/modules/es.array.slice.js"),P=g.n(F),U=g("./node_modules/core-js/modules/es.array.join.js"),M=g.n(U),Y=g("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Q=g.n(Y),ae=g("./node_modules/core-js/modules/es.object.keys.js"),ie=g.n(ae),J=g("./src/worker.js"),G=g("./src/utils.js"),j={toContainer:J.default.prototype.toContainer};J.default.template.opt.pagebreak={mode:["css","legacy"],before:[],after:[],avoid:[]},J.default.prototype.toContainer=function(){return j.toContainer.call(this).then(function(){var Ne=this.prop.container,Be=this.prop.pageSize.inner.px.height,Pe=[].concat(this.opt.pagebreak.mode),q={avoidAll:Pe.indexOf("avoid-all")!==-1,css:Pe.indexOf("css")!==-1,legacy:Pe.indexOf("legacy")!==-1},Ae={},D=this;["before","after","avoid"].forEach(function(Ce){var Ue=q.avoidAll&&Ce==="avoid";Ae[Ce]=Ue?[]:[].concat(D.opt.pagebreak[Ce]||[]),Ae[Ce].length>0&&(Ae[Ce]=Array.prototype.slice.call(Ne.querySelectorAll(Ae[Ce].join(", "))))});var Je=Ne.querySelectorAll(".html2pdf__page-break");Je=Array.prototype.slice.call(Je);var Fe=Ne.querySelectorAll("*");Array.prototype.forEach.call(Fe,function(Ue){var me={before:!1,after:q.legacy&&Je.indexOf(Ue)!==-1,avoid:q.avoidAll};if(q.css){var Me=window.getComputedStyle(Ue),fe=["always","page","left","right"],Ee=["avoid","avoid-page"];me={before:me.before||fe.indexOf(Me.breakBefore||Me.pageBreakBefore)!==-1,after:me.after||fe.indexOf(Me.breakAfter||Me.pageBreakAfter)!==-1,avoid:me.avoid||Ee.indexOf(Me.breakInside||Me.pageBreakInside)!==-1}}Object.keys(me).forEach(function(Ot){me[Ot]=me[Ot]||Ae[Ot].indexOf(Ue)!==-1});var rt=Ue.getBoundingClientRect();if(me.avoid&&!me.before){var ot=Math.floor(rt.top/Be),We=Math.floor(rt.bottom/Be),et=Math.abs(rt.bottom-rt.top)/Be;We!==ot&&et<=1&&(me.before=!0)}if(me.before){var _t=(0,G.createElement)("div",{style:{display:"block",height:Be-rt.top%Be+"px"}});Ue.parentNode.insertBefore(_t,Ue)}if(me.after){var _t=(0,G.createElement)("div",{style:{display:"block",height:Be-rt.bottom%Be+"px"}});Ue.parentNode.insertBefore(_t,Ue.nextSibling)}})})}},"./src/utils.js":function(m,I,g){"use strict";g.r(I),g.d(I,{objType:function(){return Pe},createElement:function(){return q},cloneNode:function(){return Ae},unitConvert:function(){return D},toPx:function(){return Je}});var $=g("./node_modules/core-js/modules/es.number.constructor.js"),_=g.n($),F=g("./node_modules/core-js/modules/es.symbol.js"),P=g.n(F),U=g("./node_modules/core-js/modules/es.symbol.description.js"),M=g.n(U),Y=g("./node_modules/core-js/modules/es.object.to-string.js"),Q=g.n(Y),ae=g("./node_modules/core-js/modules/es.symbol.iterator.js"),ie=g.n(ae),J=g("./node_modules/core-js/modules/es.array.iterator.js"),G=g.n(J),j=g("./node_modules/core-js/modules/es.string.iterator.js"),se=g.n(j),he=g("./node_modules/core-js/modules/web.dom-collections.iterator.js"),Ne=g.n(he);function Be(Fe){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Be=function(Ue){return typeof Ue}:Be=function(Ue){return Ue&&typeof Symbol=="function"&&Ue.constructor===Symbol&&Ue!==Symbol.prototype?"symbol":typeof Ue},Be(Fe)}var Pe=function(Ce){var Ue=Be(Ce);return Ue==="undefined"?"undefined":Ue==="string"||Ce instanceof String?"string":Ue==="number"||Ce instanceof Number?"number":Ue==="function"||Ce instanceof Function?"function":Ce&&Ce.constructor===Array?"array":Ce&&Ce.nodeType===1?"element":Ue==="object"?"object":"unknown"},q=function(Ce,Ue){var me=document.createElement(Ce);if(Ue.className&&(me.className=Ue.className),Ue.innerHTML){me.innerHTML=Ue.innerHTML;for(var Me=me.getElementsByTagName("script"),fe=Me.length;fe-- >0;null)Me[fe].parentNode.removeChild(Me[fe])}for(var Ee in Ue.style)me.style[Ee]=Ue.style[Ee];return me},Ae=function Fe(Ce,Ue){for(var me=Ce.nodeType===3?document.createTextNode(Ce.nodeValue):Ce.cloneNode(!1),Me=Ce.firstChild;Me;Me=Me.nextSibling)(Ue===!0||Me.nodeType!==1||Me.nodeName!=="SCRIPT")&&me.appendChild(Fe(Me,Ue));return Ce.nodeType===1&&(Ce.nodeName==="CANVAS"?(me.width=Ce.width,me.height=Ce.height,me.getContext("2d").drawImage(Ce,0,0)):(Ce.nodeName==="TEXTAREA"||Ce.nodeName==="SELECT")&&(me.value=Ce.value),me.addEventListener("load",function(){me.scrollTop=Ce.scrollTop,me.scrollLeft=Ce.scrollLeft},!0)),me},D=function(Ce,Ue){if(Pe(Ce)==="number")return Ce*72/96/Ue;var me={};for(var Me in Ce)me[Me]=Ce[Me]*72/96/Ue;return me},Je=function(Ce,Ue){return Math.floor(Ce*Ue/72*96)}},"./src/worker.js":function(m,I,g){"use strict";g.r(I);var $=g("./node_modules/core-js/modules/es.object.assign.js"),_=g.n($),F=g("./node_modules/core-js/modules/es.array.map.js"),P=g.n(F),U=g("./node_modules/core-js/modules/es.object.keys.js"),M=g.n(U),Y=g("./node_modules/core-js/modules/es.array.concat.js"),Q=g.n(Y),ae=g("./node_modules/core-js/modules/es.object.to-string.js"),ie=g.n(ae),J=g("./node_modules/core-js/modules/es.regexp.to-string.js"),G=g.n(J),j=g("./node_modules/core-js/modules/es.function.name.js"),se=g.n(j),he=g("./node_modules/core-js/modules/web.dom-collections.for-each.js"),Ne=g.n(he),Be=g("jspdf"),Pe=g.n(Be),q=g("html2canvas"),Ae=g.n(q),D=g("./src/utils.js"),Je=g("./node_modules/es6-promise/dist/es6-promise.js"),Fe=g.n(Je),Ce=Fe().Promise,Ue=function me(Me){var fe=Object.assign(me.convert(Ce.resolve()),JSON.parse(JSON.stringify(me.template))),Ee=me.convert(Ce.resolve(),fe);return Ee=Ee.setProgress(1,me,1,[me]),Ee=Ee.set(Me),Ee};Ue.prototype=Object.create(Ce.prototype),Ue.prototype.constructor=Ue,Ue.convert=function(Me,fe){return Me.__proto__=fe||Ue.prototype,Me},Ue.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:{}}},Ue.prototype.from=function(Me,fe){function Ee(rt){switch((0,D.objType)(rt)){case"string":return"string";case"element":return rt.nodeName.toLowerCase&&rt.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}return this.then(function(){switch(fe=fe||Ee(Me),fe){case"string":return this.set({src:(0,D.createElement)("div",{innerHTML:Me})});case"element":return this.set({src:Me});case"canvas":return this.set({canvas:Me});case"img":return this.set({img:Me});default:return this.error("Unknown source type.")}})},Ue.prototype.to=function(Me){switch(Me){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.")}},Ue.prototype.toContainer=function(){var Me=[function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Me).then(function(){var Ee={position:"fixed",overflow:"hidden",zIndex:1e3,left:0,right:0,bottom:0,top:0,backgroundColor:"rgba(0,0,0,0.8)"},rt={position:"absolute",width:this.prop.pageSize.inner.width+this.prop.pageSize.unit,left:0,right:0,top:0,height:"auto",margin:"auto",backgroundColor:"white"};Ee.opacity=0;var ot=(0,D.cloneNode)(this.prop.src,this.opt.html2canvas.javascriptEnabled);this.prop.overlay=(0,D.createElement)("div",{className:"html2pdf__overlay",style:Ee}),this.prop.container=(0,D.createElement)("div",{className:"html2pdf__container",style:rt}),this.prop.container.appendChild(ot),this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay)})},Ue.prototype.toCanvas=function(){var Me=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(Me).then(function(){var Ee=Object.assign({},this.opt.html2canvas);return delete Ee.onrendered,q(this.prop.container,Ee)}).then(function(Ee){var rt=this.opt.html2canvas.onrendered||function(){};rt(Ee),this.prop.canvas=Ee,document.body.removeChild(this.prop.overlay)})},Ue.prototype.toImg=function(){var Me=[function(){return this.prop.canvas||this.toCanvas()}];return this.thenList(Me).then(function(){var Ee=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=Ee})},Ue.prototype.toPdf=function(){var Me=[function(){return this.prop.canvas||this.toCanvas()},function(){return this.prop.pageSize||this.setPageSize()}];return this.thenList(Me).then(function(){var Ee=this.prop.canvas,rt=this.opt,ot=Ee.height,We=Math.floor(Ee.width*this.prop.pageSize.inner.ratio),et=Math.ceil(ot/We),_t=this.prop.pageSize.inner.height,Ot=document.createElement("canvas"),Pt=Ot.getContext("2d");Ot.width=Ee.width,Ot.height=We,this.prop.pdf=this.prop.pdf||new Be.jsPDF(rt.jsPDF);for(var cr=0;cr<et;cr++){cr===et-1&&ot%We!==0&&(Ot.height=ot%We,_t=Ot.height*this.prop.pageSize.inner.width/Ot.width);var nr=Ot.width,br=Ot.height;Pt.fillStyle="white",Pt.fillRect(0,0,nr,br),Pt.drawImage(Ee,0,cr*We,nr,br,0,0,nr,br),cr&&this.prop.pdf.addPage();var sr=Ot.toDataURL("image/"+rt.image.type,rt.image.quality);this.prop.pdf.addImage(sr,rt.image.type,rt.margin[1],rt.margin[0],this.prop.pageSize.inner.width,_t)}})},Ue.prototype.output=function(Me,fe,Ee){return Ee=Ee||"pdf",Ee.toLowerCase()==="img"||Ee.toLowerCase()==="image"?this.outputImg(Me,fe):this.outputPdf(Me,fe)},Ue.prototype.outputPdf=function(Me,fe){var Ee=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(Ee).then(function(){return this.prop.pdf.output(Me,fe)})},Ue.prototype.outputImg=function(Me,fe){var Ee=[function(){return this.prop.img||this.toImg()}];return this.thenList(Ee).then(function(){switch(Me){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 "'+Me+'" is not supported.'}})},Ue.prototype.save=function(Me){var fe=[function(){return this.prop.pdf||this.toPdf()}];return this.thenList(fe).set(Me?{filename:Me}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},Ue.prototype.set=function(Me){if((0,D.objType)(Me)!=="object")return this;var fe=Object.keys(Me||{}).map(function(Ee){switch(Ee){case"margin":return this.setMargin.bind(this,Me.margin);case"jsPDF":return function(){return this.opt.jsPDF=Me.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,Me.pageSize);default:return Ee in Ue.template.prop?function(){this.prop[Ee]=Me[Ee]}:function(){this.opt[Ee]=Me[Ee]}}},this);return this.then(function(){return this.thenList(fe)})},Ue.prototype.get=function(Me,fe){return this.then(function(){var rt=Me in Ue.template.prop?this.prop[Me]:this.opt[Me];return fe?fe(rt):rt})},Ue.prototype.setMargin=function(Me){return this.then(function(){switch((0,D.objType)(Me)){case"number":Me=[Me,Me,Me,Me];case"array":if(Me.length===2&&(Me=[Me[0],Me[1],Me[0],Me[1]]),Me.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=Me}).then(this.setPageSize)},Ue.prototype.setPageSize=function(Me){return this.then(function(){Me=Me||Be.jsPDF.getPageSize(this.opt.jsPDF),Me.hasOwnProperty("inner")||(Me.inner={width:Me.width-this.opt.margin[1]-this.opt.margin[3],height:Me.height-this.opt.margin[0]-this.opt.margin[2]},Me.inner.px={width:(0,D.toPx)(Me.inner.width,Me.k),height:(0,D.toPx)(Me.inner.height,Me.k)},Me.inner.ratio=Me.inner.height/Me.inner.width),this.prop.pageSize=Me})},Ue.prototype.setProgress=function(Me,fe,Ee,rt){return Me!=null&&(this.progress.val=Me),fe!=null&&(this.progress.state=fe),Ee!=null&&(this.progress.n=Ee),rt!=null&&(this.progress.stack=rt),this.progress.ratio=this.progress.val/this.progress.state,this},Ue.prototype.updateProgress=function(Me,fe,Ee,rt){return this.setProgress(Me?this.progress.val+Me:null,fe||null,Ee?this.progress.n+Ee:null,rt?this.progress.stack.concat(rt):null)},Ue.prototype.then=function(Me,fe){var Ee=this;return this.thenCore(Me,fe,function(ot,We){return Ee.updateProgress(null,null,1,[ot]),Ce.prototype.then.call(this,function(_t){return Ee.updateProgress(null,ot),_t}).then(ot,We).then(function(_t){return Ee.updateProgress(1),_t})})},Ue.prototype.thenCore=function(Me,fe,Ee){Ee=Ee||Ce.prototype.then;var rt=this;Me&&(Me=Me.bind(rt)),fe&&(fe=fe.bind(rt));var ot=Ce.toString().indexOf("[native code]")!==-1&&Ce.name==="Promise",We=ot?rt:Ue.convert(Object.assign({},rt),Ce.prototype),et=Ee.call(We,Me,fe);return Ue.convert(et,rt.__proto__)},Ue.prototype.thenExternal=function(Me,fe){return Ce.prototype.then.call(this,Me,fe)},Ue.prototype.thenList=function(Me){var fe=this;return Me.forEach(function(rt){fe=fe.thenCore(rt)}),fe},Ue.prototype.catch=function(me){me&&(me=me.bind(this));var Me=Ce.prototype.catch.call(this,me);return Ue.convert(Me,this)},Ue.prototype.catchExternal=function(Me){return Ce.prototype.catch.call(this,Me)},Ue.prototype.error=function(Me){return this.then(function(){throw new Error(Me)})},Ue.prototype.using=Ue.prototype.set,Ue.prototype.saveAs=Ue.prototype.save,Ue.prototype.export=Ue.prototype.output,Ue.prototype.run=Ue.prototype.then,I.default=Ue},"./node_modules/core-js/internals/a-function.js":function(m){m.exports=function(I){if(typeof I!="function")throw TypeError(String(I)+" is not a function");return I}},"./node_modules/core-js/internals/a-possible-prototype.js":function(m,I,g){var $=g("./node_modules/core-js/internals/is-object.js");m.exports=function(_){if(!$(_)&&_!==null)throw TypeError("Can't set "+String(_)+" as a prototype");return _}},"./node_modules/core-js/internals/add-to-unscopables.js":function(m,I,g){var $=g("./node_modules/core-js/internals/well-known-symbol.js"),_=g("./node_modules/core-js/internals/object-create.js"),F=g("./node_modules/core-js/internals/object-define-property.js"),P=$("unscopables"),U=Array.prototype;U[P]==null&&F.f(U,P,{configurable:!0,value:_(null)}),m.exports=function(M){U[P][M]=!0}},"./node_modules/core-js/internals/an-object.js":function(m,I,g){var $=g("./node_modules/core-js/internals/is-object.js");m.exports=function(_){if(!$(_))throw TypeError(String(_)+" is not an object");return _}},"./node_modules/core-js/internals/array-for-each.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/array-iteration.js").forEach,_=g("./node_modules/core-js/internals/array-method-is-strict.js"),F=_("forEach");m.exports=F?[].forEach:function(U){return $(this,U,arguments.length>1?arguments[1]:void 0)}},"./node_modules/core-js/internals/array-includes.js":function(m,I,g){var $=g("./node_modules/core-js/internals/to-indexed-object.js"),_=g("./node_modules/core-js/internals/to-length.js"),F=g("./node_modules/core-js/internals/to-absolute-index.js"),P=function(U){return function(M,Y,Q){var ae=$(M),ie=_(ae.length),J=F(Q,ie),G;if(U&&Y!=Y){for(;ie>J;)if(G=ae[J++],G!=G)return!0}else for(;ie>J;J++)if((U||J in ae)&&ae[J]===Y)return U||J||0;return!U&&-1}};m.exports={includes:P(!0),indexOf:P(!1)}},"./node_modules/core-js/internals/array-iteration.js":function(m,I,g){var $=g("./node_modules/core-js/internals/function-bind-context.js"),_=g("./node_modules/core-js/internals/indexed-object.js"),F=g("./node_modules/core-js/internals/to-object.js"),P=g("./node_modules/core-js/internals/to-length.js"),U=g("./node_modules/core-js/internals/array-species-create.js"),M=[].push,Y=function(Q){var ae=Q==1,ie=Q==2,J=Q==3,G=Q==4,j=Q==6,se=Q==7,he=Q==5||j;return function(Ne,Be,Pe,q){for(var Ae=F(Ne),D=_(Ae),Je=$(Be,Pe,3),Fe=P(D.length),Ce=0,Ue=q||U,me=ae?Ue(Ne,Fe):ie||se?Ue(Ne,0):void 0,Me,fe;Fe>Ce;Ce++)if((he||Ce in D)&&(Me=D[Ce],fe=Je(Me,Ce,Ae),Q))if(ae)me[Ce]=fe;else if(fe)switch(Q){case 3:return!0;case 5:return Me;case 6:return Ce;case 2:M.call(me,Me)}else switch(Q){case 4:return!1;case 7:M.call(me,Me)}return j?-1:J||G?G:me}};m.exports={forEach:Y(0),map:Y(1),filter:Y(2),some:Y(3),every:Y(4),find:Y(5),findIndex:Y(6),filterReject:Y(7)}},"./node_modules/core-js/internals/array-method-has-species-support.js":function(m,I,g){var $=g("./node_modules/core-js/internals/fails.js"),_=g("./node_modules/core-js/internals/well-known-symbol.js"),F=g("./node_modules/core-js/internals/engine-v8-version.js"),P=_("species");m.exports=function(U){return F>=51||!$(function(){var M=[],Y=M.constructor={};return Y[P]=function(){return{foo:1}},M[U](Boolean).foo!==1})}},"./node_modules/core-js/internals/array-method-is-strict.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/fails.js");m.exports=function(_,F){var P=[][_];return!!P&&$(function(){P.call(null,F||function(){throw 1},1)})}},"./node_modules/core-js/internals/array-species-constructor.js":function(m,I,g){var $=g("./node_modules/core-js/internals/is-object.js"),_=g("./node_modules/core-js/internals/is-array.js"),F=g("./node_modules/core-js/internals/well-known-symbol.js"),P=F("species");m.exports=function(U){var M;return _(U)&&(M=U.constructor,typeof M=="function"&&(M===Array||_(M.prototype))?M=void 0:$(M)&&(M=M[P],M===null&&(M=void 0))),M===void 0?Array:M}},"./node_modules/core-js/internals/array-species-create.js":function(m,I,g){var $=g("./node_modules/core-js/internals/array-species-constructor.js");m.exports=function(_,F){return new($(_))(F===0?0:F)}},"./node_modules/core-js/internals/classof-raw.js":function(m){var I={}.toString;m.exports=function(g){return I.call(g).slice(8,-1)}},"./node_modules/core-js/internals/classof.js":function(m,I,g){var $=g("./node_modules/core-js/internals/to-string-tag-support.js"),_=g("./node_modules/core-js/internals/classof-raw.js"),F=g("./node_modules/core-js/internals/well-known-symbol.js"),P=F("toStringTag"),U=_(function(){return arguments}())=="Arguments",M=function(Y,Q){try{return Y[Q]}catch(ae){}};m.exports=$?_:function(Y){var Q,ae,ie;return Y===void 0?"Undefined":Y===null?"Null":typeof(ae=M(Q=Object(Y),P))=="string"?ae:U?_(Q):(ie=_(Q))=="Object"&&typeof Q.callee=="function"?"Arguments":ie}},"./node_modules/core-js/internals/copy-constructor-properties.js":function(m,I,g){var $=g("./node_modules/core-js/internals/has.js"),_=g("./node_modules/core-js/internals/own-keys.js"),F=g("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),P=g("./node_modules/core-js/internals/object-define-property.js");m.exports=function(U,M){for(var Y=_(M),Q=P.f,ae=F.f,ie=0;ie<Y.length;ie++){var J=Y[ie];$(U,J)||Q(U,J,ae(M,J))}}},"./node_modules/core-js/internals/correct-prototype-getter.js":function(m,I,g){var $=g("./node_modules/core-js/internals/fails.js");m.exports=!$(function(){function _(){}return _.prototype.constructor=null,Object.getPrototypeOf(new _)!==_.prototype})},"./node_modules/core-js/internals/create-html.js":function(m,I,g){var $=g("./node_modules/core-js/internals/require-object-coercible.js"),_=g("./node_modules/core-js/internals/to-string.js"),F=/"/g;m.exports=function(P,U,M,Y){var Q=_($(P)),ae="<"+U;return M!==""&&(ae+=" "+M+'="'+_(Y).replace(F,""")+'"'),ae+">"+Q+"</"+U+">"}},"./node_modules/core-js/internals/create-iterator-constructor.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/iterators-core.js").IteratorPrototype,_=g("./node_modules/core-js/internals/object-create.js"),F=g("./node_modules/core-js/internals/create-property-descriptor.js"),P=g("./node_modules/core-js/internals/set-to-string-tag.js"),U=g("./node_modules/core-js/internals/iterators.js"),M=function(){return this};m.exports=function(Y,Q,ae){var ie=Q+" Iterator";return Y.prototype=_($,{next:F(1,ae)}),P(Y,ie,!1,!0),U[ie]=M,Y}},"./node_modules/core-js/internals/create-non-enumerable-property.js":function(m,I,g){var $=g("./node_modules/core-js/internals/descriptors.js"),_=g("./node_modules/core-js/internals/object-define-property.js"),F=g("./node_modules/core-js/internals/create-property-descriptor.js");m.exports=$?function(P,U,M){return _.f(P,U,F(1,M))}:function(P,U,M){return P[U]=M,P}},"./node_modules/core-js/internals/create-property-descriptor.js":function(m){m.exports=function(I,g){return{enumerable:!(I&1),configurable:!(I&2),writable:!(I&4),value:g}}},"./node_modules/core-js/internals/create-property.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/to-property-key.js"),_=g("./node_modules/core-js/internals/object-define-property.js"),F=g("./node_modules/core-js/internals/create-property-descriptor.js");m.exports=function(P,U,M){var Y=$(U);Y in P?_.f(P,Y,F(0,M)):P[Y]=M}},"./node_modules/core-js/internals/define-iterator.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/export.js"),_=g("./node_modules/core-js/internals/create-iterator-constructor.js"),F=g("./node_modules/core-js/internals/object-get-prototype-of.js"),P=g("./node_modules/core-js/internals/object-set-prototype-of.js"),U=g("./node_modules/core-js/internals/set-to-string-tag.js"),M=g("./node_modules/core-js/internals/create-non-enumerable-property.js"),Y=g("./node_modules/core-js/internals/redefine.js"),Q=g("./node_modules/core-js/internals/well-known-symbol.js"),ae=g("./node_modules/core-js/internals/is-pure.js"),ie=g("./node_modules/core-js/internals/iterators.js"),J=g("./node_modules/core-js/internals/iterators-core.js"),G=J.IteratorPrototype,j=J.BUGGY_SAFARI_ITERATORS,se=Q("iterator"),he="keys",Ne="values",Be="entries",Pe=function(){return this};m.exports=function(q,Ae,D,Je,Fe,Ce,Ue){_(D,Ae,Je);var me=function(Pt){if(Pt===Fe&&ot)return ot;if(!j&&Pt in Ee)return Ee[Pt];switch(Pt){case he:return function(){return new D(this,Pt)};case Ne:return function(){return new D(this,Pt)};case Be:return function(){return new D(this,Pt)}}return function(){return new D(this)}},Me=Ae+" Iterator",fe=!1,Ee=q.prototype,rt=Ee[se]||Ee["@@iterator"]||Fe&&Ee[Fe],ot=!j&&rt||me(Fe),We=Ae=="Array"&&Ee.entries||rt,et,_t,Ot;if(We&&(et=F(We.call(new q)),G!==Object.prototype&&et.next&&(!ae&&F(et)!==G&&(P?P(et,G):typeof et[se]!="function"&&M(et,se,Pe)),U(et,Me,!0,!0),ae&&(ie[Me]=Pe))),Fe==Ne&&rt&&rt.name!==Ne&&(fe=!0,ot=function(){return rt.call(this)}),(!ae||Ue)&&Ee[se]!==ot&&M(Ee,se,ot),ie[Ae]=ot,Fe)if(_t={values:me(Ne),keys:Ce?ot:me(he),entries:me(Be)},Ue)for(Ot in _t)(j||fe||!(Ot in Ee))&&Y(Ee,Ot,_t[Ot]);else $({target:Ae,proto:!0,forced:j||fe},_t);return _t}},"./node_modules/core-js/internals/define-well-known-symbol.js":function(m,I,g){var $=g("./node_modules/core-js/internals/path.js"),_=g("./node_modules/core-js/internals/has.js"),F=g("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),P=g("./node_modules/core-js/internals/object-define-property.js").f;m.exports=function(U){var M=$.Symbol||($.Symbol={});_(M,U)||P(M,U,{value:F.f(U)})}},"./node_modules/core-js/internals/descriptors.js":function(m,I,g){var $=g("./node_modules/core-js/internals/fails.js");m.exports=!$(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"./node_modules/core-js/internals/document-create-element.js":function(m,I,g){var $=g("./node_modules/core-js/internals/global.js"),_=g("./node_modules/core-js/internals/is-object.js"),F=$.document,P=_(F)&&_(F.createElement);m.exports=function(U){return P?F.createElement(U):{}}},"./node_modules/core-js/internals/dom-iterables.js":function(m){m.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(m,I,g){var $=g("./node_modules/core-js/internals/get-built-in.js");m.exports=$("navigator","userAgent")||""},"./node_modules/core-js/internals/engine-v8-version.js":function(m,I,g){var $=g("./node_modules/core-js/internals/global.js"),_=g("./node_modules/core-js/internals/engine-user-agent.js"),F=$.process,P=$.Deno,U=F&&F.versions||P&&P.version,M=U&&U.v8,Y,Q;M?(Y=M.split("."),Q=Y[0]<4?1:Y[0]+Y[1]):_&&(Y=_.match(/Edge\/(\d+)/),(!Y||Y[1]>=74)&&(Y=_.match(/Chrome\/(\d+)/),Y&&(Q=Y[1]))),m.exports=Q&&+Q},"./node_modules/core-js/internals/enum-bug-keys.js":function(m){m.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"./node_modules/core-js/internals/export.js":function(m,I,g){var $=g("./node_modules/core-js/internals/global.js"),_=g("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,F=g("./node_modules/core-js/internals/create-non-enumerable-property.js"),P=g("./node_modules/core-js/internals/redefine.js"),U=g("./node_modules/core-js/internals/set-global.js"),M=g("./node_modules/core-js/internals/copy-constructor-properties.js"),Y=g("./node_modules/core-js/internals/is-forced.js");m.exports=function(Q,ae){var ie=Q.target,J=Q.global,G=Q.stat,j,se,he,Ne,Be,Pe;if(J?se=$:G?se=$[ie]||U(ie,{}):se=($[ie]||{}).prototype,se)for(he in ae){if(Be=ae[he],Q.noTargetGet?(Pe=_(se,he),Ne=Pe&&Pe.value):Ne=se[he],j=Y(J?he:ie+(G?".":"#")+he,Q.forced),!j&&Ne!==void 0){if(typeof Be==typeof Ne)continue;M(Be,Ne)}(Q.sham||Ne&&Ne.sham)&&F(Be,"sham",!0),P(se,he,Be,Q)}}},"./node_modules/core-js/internals/fails.js":function(m){m.exports=function(I){try{return!!I()}catch(g){return!0}}},"./node_modules/core-js/internals/function-bind-context.js":function(m,I,g){var $=g("./node_modules/core-js/internals/a-function.js");m.exports=function(_,F,P){if($(_),F===void 0)return _;switch(P){case 0:return function(){return _.call(F)};case 1:return function(U){return _.call(F,U)};case 2:return function(U,M){return _.call(F,U,M)};case 3:return function(U,M,Y){return _.call(F,U,M,Y)}}return function(){return _.apply(F,arguments)}}},"./node_modules/core-js/internals/get-built-in.js":function(m,I,g){var $=g("./node_modules/core-js/internals/global.js"),_=function(F){return typeof F=="function"?F:void 0};m.exports=function(F,P){return arguments.length<2?_($[F]):$[F]&&$[F][P]}},"./node_modules/core-js/internals/global.js":function(m){var I=function(g){return g&&g.Math==Math&&g};m.exports=I(typeof globalThis=="object"&&globalThis)||I(typeof window=="object"&&window)||I(typeof self=="object"&&self)||I(typeof x.g=="object"&&x.g)||function(){return this}()||Function("return this")()},"./node_modules/core-js/internals/has.js":function(m,I,g){var $=g("./node_modules/core-js/internals/to-object.js"),_={}.hasOwnProperty;m.exports=Object.hasOwn||function(P,U){return _.call($(P),U)}},"./node_modules/core-js/internals/hidden-keys.js":function(m){m.exports={}},"./node_modules/core-js/internals/html.js":function(m,I,g){var $=g("./node_modules/core-js/internals/get-built-in.js");m.exports=$("document","documentElement")},"./node_modules/core-js/internals/ie8-dom-define.js":function(m,I,g){var $=g("./node_modules/core-js/internals/descriptors.js"),_=g("./node_modules/core-js/internals/fails.js"),F=g("./node_modules/core-js/internals/document-create-element.js");m.exports=!$&&!_(function(){return Object.defineProperty(F("div"),"a",{get:function(){return 7}}).a!=7})},"./node_modules/core-js/internals/indexed-object.js":function(m,I,g){var $=g("./node_modules/core-js/internals/fails.js"),_=g("./node_modules/core-js/internals/classof-raw.js"),F="".split;m.exports=$(function(){return!Object("z").propertyIsEnumerable(0)})?function(P){return _(P)=="String"?F.call(P,""):Object(P)}:Object},"./node_modules/core-js/internals/inherit-if-required.js":function(m,I,g){var $=g("./node_modules/core-js/internals/is-object.js"),_=g("./node_modules/core-js/internals/object-set-prototype-of.js");m.exports=function(F,P,U){var M,Y;return _&&typeof(M=P.constructor)=="function"&&M!==U&&$(Y=M.prototype)&&Y!==U.prototype&&_(F,Y),F}},"./node_modules/core-js/internals/inspect-source.js":function(m,I,g){var $=g("./node_modules/core-js/internals/shared-store.js"),_=Function.toString;typeof $.inspectSource!="function"&&($.inspectSource=function(F){return _.call(F)}),m.exports=$.inspectSource},"./node_modules/core-js/internals/internal-state.js":function(m,I,g){var $=g("./node_modules/core-js/internals/native-weak-map.js"),_=g("./node_modules/core-js/internals/global.js"),F=g("./node_modules/core-js/internals/is-object.js"),P=g("./node_modules/core-js/internals/create-non-enumerable-property.js"),U=g("./node_modules/core-js/internals/has.js"),M=g("./node_modules/core-js/internals/shared-store.js"),Y=g("./node_modules/core-js/internals/shared-key.js"),Q=g("./node_modules/core-js/internals/hidden-keys.js"),ae="Object already initialized",ie=_.WeakMap,J,G,j,se=function(D){return j(D)?G(D):J(D,{})},he=function(D){return function(Je){var Fe;if(!F(Je)||(Fe=G(Je)).type!==D)throw TypeError("Incompatible receiver, "+D+" required");return Fe}};if($||M.state){var Ne=M.state||(M.state=new ie),Be=Ne.get,Pe=Ne.has,q=Ne.set;J=function(D,Je){if(Pe.call(Ne,D))throw new TypeError(ae);return Je.facade=D,q.call(Ne,D,Je),Je},G=function(D){return Be.call(Ne,D)||{}},j=function(D){return Pe.call(Ne,D)}}else{var Ae=Y("state");Q[Ae]=!0,J=function(D,Je){if(U(D,Ae))throw new TypeError(ae);return Je.facade=D,P(D,Ae,Je),Je},G=function(D){return U(D,Ae)?D[Ae]:{}},j=function(D){return U(D,Ae)}}m.exports={set:J,get:G,has:j,enforce:se,getterFor:he}},"./node_modules/core-js/internals/is-array.js":function(m,I,g){var $=g("./node_modules/core-js/internals/classof-raw.js");m.exports=Array.isArray||function(F){return $(F)=="Array"}},"./node_modules/core-js/internals/is-forced.js":function(m,I,g){var $=g("./node_modules/core-js/internals/fails.js"),_=/#|\.prototype\./,F=function(Q,ae){var ie=U[P(Q)];return ie==Y?!0:ie==M?!1:typeof ae=="function"?$(ae):!!ae},P=F.normalize=function(Q){return String(Q).replace(_,".").toLowerCase()},U=F.data={},M=F.NATIVE="N",Y=F.POLYFILL="P";m.exports=F},"./node_modules/core-js/internals/is-object.js":function(m){m.exports=function(I){return typeof I=="object"?I!==null:typeof I=="function"}},"./node_modules/core-js/internals/is-pure.js":function(m){m.exports=!1},"./node_modules/core-js/internals/is-symbol.js":function(m,I,g){var $=g("./node_modules/core-js/internals/get-built-in.js"),_=g("./node_modules/core-js/internals/use-symbol-as-uid.js");m.exports=_?function(F){return typeof F=="symbol"}:function(F){var P=$("Symbol");return typeof P=="function"&&Object(F)instanceof P}},"./node_modules/core-js/internals/iterators-core.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/fails.js"),_=g("./node_modules/core-js/internals/object-get-prototype-of.js"),F=g("./node_modules/core-js/internals/create-non-enumerable-property.js"),P=g("./node_modules/core-js/internals/has.js"),U=g("./node_modules/core-js/internals/well-known-symbol.js"),M=g("./node_modules/core-js/internals/is-pure.js"),Y=U("iterator"),Q=!1,ae=function(){return this},ie,J,G;[].keys&&(G=[].keys(),"next"in G?(J=_(_(G)),J!==Object.prototype&&(ie=J)):Q=!0);var j=ie==null||$(function(){var se={};return ie[Y].call(se)!==se});j&&(ie={}),(!M||j)&&!P(ie,Y)&&F(ie,Y,ae),m.exports={IteratorPrototype:ie,BUGGY_SAFARI_ITERATORS:Q}},"./node_modules/core-js/internals/iterators.js":function(m){m.exports={}},"./node_modules/core-js/internals/native-symbol.js":function(m,I,g){var $=g("./node_modules/core-js/internals/engine-v8-version.js"),_=g("./node_modules/core-js/internals/fails.js");m.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(m,I,g){var $=g("./node_modules/core-js/internals/global.js"),_=g("./node_modules/core-js/internals/inspect-source.js"),F=$.WeakMap;m.exports=typeof F=="function"&&/native code/.test(_(F))},"./node_modules/core-js/internals/object-assign.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/descriptors.js"),_=g("./node_modules/core-js/internals/fails.js"),F=g("./node_modules/core-js/internals/object-keys.js"),P=g("./node_modules/core-js/internals/object-get-own-property-symbols.js"),U=g("./node_modules/core-js/internals/object-property-is-enumerable.js"),M=g("./node_modules/core-js/internals/to-object.js"),Y=g("./node_modules/core-js/internals/indexed-object.js"),Q=Object.assign,ae=Object.defineProperty;m.exports=!Q||_(function(){if($&&Q({b:1},Q(ae({},"a",{enumerable:!0,get:function(){ae(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var ie={},J={},G=Symbol(),j="abcdefghijklmnopqrst";return ie[G]=7,j.split("").forEach(function(se){J[se]=se}),Q({},ie)[G]!=7||F(Q({},J)).join("")!=j})?function(J,G){for(var j=M(J),se=arguments.length,he=1,Ne=P.f,Be=U.f;se>he;)for(var Pe=Y(arguments[he++]),q=Ne?F(Pe).concat(Ne(Pe)):F(Pe),Ae=q.length,D=0,Je;Ae>D;)Je=q[D++],(!$||Be.call(Pe,Je))&&(j[Je]=Pe[Je]);return j}:Q},"./node_modules/core-js/internals/object-create.js":function(m,I,g){var $=g("./node_modules/core-js/internals/an-object.js"),_=g("./node_modules/core-js/internals/object-define-properties.js"),F=g("./node_modules/core-js/internals/enum-bug-keys.js"),P=g("./node_modules/core-js/internals/hidden-keys.js"),U=g("./node_modules/core-js/internals/html.js"),M=g("./node_modules/core-js/internals/document-create-element.js"),Y=g("./node_modules/core-js/internals/shared-key.js"),Q=">",ae="<",ie="prototype",J="script",G=Y("IE_PROTO"),j=function(){},se=function(q){return ae+J+Q+q+ae+"/"+J+Q},he=function(q){q.write(se("")),q.close();var Ae=q.parentWindow.Object;return q=null,Ae},Ne=function(){var q=M("iframe"),Ae="java"+J+":",D;if(q.style)return q.style.display="none",U.appendChild(q),q.src=String(Ae),D=q.contentWindow.document,D.open(),D.write(se("document.F=Object")),D.close(),D.F},Be,Pe=function(){try{Be=new ActiveXObject("htmlfile")}catch(Ae){}Pe=document.domain&&Be?he(Be):Ne()||he(Be);for(var q=F.length;q--;)delete Pe[ie][F[q]];return Pe()};P[G]=!0,m.exports=Object.create||function(Ae,D){var Je;return Ae!==null?(j[ie]=$(Ae),Je=new j,j[ie]=null,Je[G]=Ae):Je=Pe(),D===void 0?Je:_(Je,D)}},"./node_modules/core-js/internals/object-define-properties.js":function(m,I,g){var $=g("./node_modules/core-js/internals/descriptors.js"),_=g("./node_modules/core-js/internals/object-define-property.js"),F=g("./node_modules/core-js/internals/an-object.js"),P=g("./node_modules/core-js/internals/object-keys.js");m.exports=$?Object.defineProperties:function(M,Y){F(M);for(var Q=P(Y),ae=Q.length,ie=0,J;ae>ie;)_.f(M,J=Q[ie++],Y[J]);return M}},"./node_modules/core-js/internals/object-define-property.js":function(m,I,g){var $=g("./node_modules/core-js/internals/descriptors.js"),_=g("./node_modules/core-js/internals/ie8-dom-define.js"),F=g("./node_modules/core-js/internals/an-object.js"),P=g("./node_modules/core-js/internals/to-property-key.js"),U=Object.defineProperty;I.f=$?U:function(Y,Q,ae){if(F(Y),Q=P(Q),F(ae),_)try{return U(Y,Q,ae)}catch(ie){}if("get"in ae||"set"in ae)throw TypeError("Accessors not supported");return"value"in ae&&(Y[Q]=ae.value),Y}},"./node_modules/core-js/internals/object-get-own-property-descriptor.js":function(m,I,g){var $=g("./node_modules/core-js/internals/descriptors.js"),_=g("./node_modules/core-js/internals/object-property-is-enumerable.js"),F=g("./node_modules/core-js/internals/create-property-descriptor.js"),P=g("./node_modules/core-js/internals/to-indexed-object.js"),U=g("./node_modules/core-js/internals/to-property-key.js"),M=g("./node_modules/core-js/internals/has.js"),Y=g("./node_modules/core-js/internals/ie8-dom-define.js"),Q=Object.getOwnPropertyDescriptor;I.f=$?Q:function(ie,J){if(ie=P(ie),J=U(J),Y)try{return Q(ie,J)}catch(G){}if(M(ie,J))return F(!_.f.call(ie,J),ie[J])}},"./node_modules/core-js/internals/object-get-own-property-names-external.js":function(m,I,g){var $=g("./node_modules/core-js/internals/to-indexed-object.js"),_=g("./node_modules/core-js/internals/object-get-own-property-names.js").f,F={}.toString,P=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],U=function(M){try{return _(M)}catch(Y){return P.slice()}};m.exports.f=function(Y){return P&&F.call(Y)=="[object Window]"?U(Y):_($(Y))}},"./node_modules/core-js/internals/object-get-own-property-names.js":function(m,I,g){var $=g("./node_modules/core-js/internals/object-keys-internal.js"),_=g("./node_modules/core-js/internals/enum-bug-keys.js"),F=_.concat("length","prototype");I.f=Object.getOwnPropertyNames||function(U){return $(U,F)}},"./node_modules/core-js/internals/object-get-own-property-symbols.js":function(m,I){I.f=Object.getOwnPropertySymbols},"./node_modules/core-js/internals/object-get-prototype-of.js":function(m,I,g){var $=g("./node_modules/core-js/internals/has.js"),_=g("./node_modules/core-js/internals/to-object.js"),F=g("./node_modules/core-js/internals/shared-key.js"),P=g("./node_modules/core-js/internals/correct-prototype-getter.js"),U=F("IE_PROTO"),M=Object.prototype;m.exports=P?Object.getPrototypeOf:function(Y){return Y=_(Y),$(Y,U)?Y[U]:typeof Y.constructor=="function"&&Y instanceof Y.constructor?Y.constructor.prototype:Y instanceof Object?M:null}},"./node_modules/core-js/internals/object-keys-internal.js":function(m,I,g){var $=g("./node_modules/core-js/internals/has.js"),_=g("./node_modules/core-js/internals/to-indexed-object.js"),F=g("./node_modules/core-js/internals/array-includes.js").indexOf,P=g("./node_modules/core-js/internals/hidden-keys.js");m.exports=function(U,M){var Y=_(U),Q=0,ae=[],ie;for(ie in Y)!$(P,ie)&&$(Y,ie)&&ae.push(ie);for(;M.length>Q;)$(Y,ie=M[Q++])&&(~F(ae,ie)||ae.push(ie));return ae}},"./node_modules/core-js/internals/object-keys.js":function(m,I,g){var $=g("./node_modules/core-js/internals/object-keys-internal.js"),_=g("./node_modules/core-js/internals/enum-bug-keys.js");m.exports=Object.keys||function(P){return $(P,_)}},"./node_modules/core-js/internals/object-property-is-enumerable.js":function(m,I){"use strict";var g={}.propertyIsEnumerable,$=Object.getOwnPropertyDescriptor,_=$&&!g.call({1:2},1);I.f=_?function(P){var U=$(this,P);return!!U&&U.enumerable}:g},"./node_modules/core-js/internals/object-set-prototype-of.js":function(m,I,g){var $=g("./node_modules/core-js/internals/an-object.js"),_=g("./node_modules/core-js/internals/a-possible-prototype.js");m.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var F=!1,P={},U;try{U=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,U.call(P,[]),F=P instanceof Array}catch(M){}return function(Y,Q){return $(Y),_(Q),F?U.call(Y,Q):Y.__proto__=Q,Y}}():void 0)},"./node_modules/core-js/internals/object-to-string.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/to-string-tag-support.js"),_=g("./node_modules/core-js/internals/classof.js");m.exports=$?{}.toString:function(){return"[object "+_(this)+"]"}},"./node_modules/core-js/internals/ordinary-to-primitive.js":function(m,I,g){var $=g("./node_modules/core-js/internals/is-object.js");m.exports=function(_,F){var P,U;if(F==="string"&&typeof(P=_.toString)=="function"&&!$(U=P.call(_))||typeof(P=_.valueOf)=="function"&&!$(U=P.call(_))||F!=="string"&&typeof(P=_.toString)=="function"&&!$(U=P.call(_)))return U;throw TypeError("Can't convert object to primitive value")}},"./node_modules/core-js/internals/own-keys.js":function(m,I,g){var $=g("./node_modules/core-js/internals/get-built-in.js"),_=g("./node_modules/core-js/internals/object-get-own-property-names.js"),F=g("./node_modules/core-js/internals/object-get-own-property-symbols.js"),P=g("./node_modules/core-js/internals/an-object.js");m.exports=$("Reflect","ownKeys")||function(M){var Y=_.f(P(M)),Q=F.f;return Q?Y.concat(Q(M)):Y}},"./node_modules/core-js/internals/path.js":function(m,I,g){var $=g("./node_modules/core-js/internals/global.js");m.exports=$},"./node_modules/core-js/internals/redefine.js":function(m,I,g){var $=g("./node_modules/core-js/internals/global.js"),_=g("./node_modules/core-js/internals/create-non-enumerable-property.js"),F=g("./node_modules/core-js/internals/has.js"),P=g("./node_modules/core-js/internals/set-global.js"),U=g("./node_modules/core-js/internals/inspect-source.js"),M=g("./node_modules/core-js/internals/internal-state.js"),Y=M.get,Q=M.enforce,ae=String(String).split("String");(m.exports=function(ie,J,G,j){var se=j?!!j.unsafe:!1,he=j?!!j.enumerable:!1,Ne=j?!!j.noTargetGet:!1,Be;if(typeof G=="function"&&(typeof J=="string"&&!F(G,"name")&&_(G,"name",J),Be=Q(G),Be.source||(Be.source=ae.join(typeof J=="string"?J:""))),ie===$){he?ie[J]=G:P(J,G);return}else se?!Ne&&ie[J]&&(he=!0):delete ie[J];he?ie[J]=G:_(ie,J,G)})(Function.prototype,"toString",function(){return typeof this=="function"&&Y(this).source||U(this)})},"./node_modules/core-js/internals/regexp-flags.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/an-object.js");m.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(m){m.exports=function(I){if(I==null)throw TypeError("Can't call method on "+I);return I}},"./node_modules/core-js/internals/set-global.js":function(m,I,g){var $=g("./node_modules/core-js/internals/global.js");m.exports=function(_,F){try{Object.defineProperty($,_,{value:F,configurable:!0,writable:!0})}catch(P){$[_]=F}return F}},"./node_modules/core-js/internals/set-to-string-tag.js":function(m,I,g){var $=g("./node_modules/core-js/internals/object-define-property.js").f,_=g("./node_modules/core-js/internals/has.js"),F=g("./node_modules/core-js/internals/well-known-symbol.js"),P=F("toStringTag");m.exports=function(U,M,Y){U&&!_(U=Y?U:U.prototype,P)&&$(U,P,{configurable:!0,value:M})}},"./node_modules/core-js/internals/shared-key.js":function(m,I,g){var $=g("./node_modules/core-js/internals/shared.js"),_=g("./node_modules/core-js/internals/uid.js"),F=$("keys");m.exports=function(P){return F[P]||(F[P]=_(P))}},"./node_modules/core-js/internals/shared-store.js":function(m,I,g){var $=g("./node_modules/core-js/internals/global.js"),_=g("./node_modules/core-js/internals/set-global.js"),F="__core-js_shared__",P=$[F]||_(F,{});m.exports=P},"./node_modules/core-js/internals/shared.js":function(m,I,g){var $=g("./node_modules/core-js/internals/is-pure.js"),_=g("./node_modules/core-js/internals/shared-store.js");(m.exports=function(F,P){return _[F]||(_[F]=P!==void 0?P:{})})("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(m,I,g){var $=g("./node_modules/core-js/internals/fails.js");m.exports=function(_){return $(function(){var F=""[_]('"');return F!==F.toLowerCase()||F.split('"').length>3})}},"./node_modules/core-js/internals/string-multibyte.js":function(m,I,g){var $=g("./node_modules/core-js/internals/to-integer.js"),_=g("./node_modules/core-js/internals/to-string.js"),F=g("./node_modules/core-js/internals/require-object-coercible.js"),P=function(U){return function(M,Y){var Q=_(F(M)),ae=$(Y),ie=Q.length,J,G;return ae<0||ae>=ie?U?"":void 0:(J=Q.charCodeAt(ae),J<55296||J>56319||ae+1===ie||(G=Q.charCodeAt(ae+1))<56320||G>57343?U?Q.charAt(ae):J:U?Q.slice(ae,ae+2):(J-55296<<10)+(G-56320)+65536)}};m.exports={codeAt:P(!1),charAt:P(!0)}},"./node_modules/core-js/internals/string-trim.js":function(m,I,g){var $=g("./node_modules/core-js/internals/require-object-coercible.js"),_=g("./node_modules/core-js/internals/to-string.js"),F=g("./node_modules/core-js/internals/whitespaces.js"),P="["+F+"]",U=RegExp("^"+P+P+"*"),M=RegExp(P+P+"*$"),Y=function(Q){return function(ae){var ie=_($(ae));return Q&1&&(ie=ie.replace(U,"")),Q&2&&(ie=ie.replace(M,"")),ie}};m.exports={start:Y(1),end:Y(2),trim:Y(3)}},"./node_modules/core-js/internals/to-absolute-index.js":function(m,I,g){var $=g("./node_modules/core-js/internals/to-integer.js"),_=Math.max,F=Math.min;m.exports=function(P,U){var M=$(P);return M<0?_(M+U,0):F(M,U)}},"./node_modules/core-js/internals/to-indexed-object.js":function(m,I,g){var $=g("./node_modules/core-js/internals/indexed-object.js"),_=g("./node_modules/core-js/internals/require-object-coercible.js");m.exports=function(F){return $(_(F))}},"./node_modules/core-js/internals/to-integer.js":function(m){var I=Math.ceil,g=Math.floor;m.exports=function($){return isNaN($=+$)?0:($>0?g:I)($)}},"./node_modules/core-js/internals/to-length.js":function(m,I,g){var $=g("./node_modules/core-js/internals/to-integer.js"),_=Math.min;m.exports=function(F){return F>0?_($(F),9007199254740991):0}},"./node_modules/core-js/internals/to-object.js":function(m,I,g){var $=g("./node_modules/core-js/internals/require-object-coercible.js");m.exports=function(_){return Object($(_))}},"./node_modules/core-js/internals/to-primitive.js":function(m,I,g){var $=g("./node_modules/core-js/internals/is-object.js"),_=g("./node_modules/core-js/internals/is-symbol.js"),F=g("./node_modules/core-js/internals/ordinary-to-primitive.js"),P=g("./node_modules/core-js/internals/well-known-symbol.js"),U=P("toPrimitive");m.exports=function(M,Y){if(!$(M)||_(M))return M;var Q=M[U],ae;if(Q!==void 0){if(Y===void 0&&(Y="default"),ae=Q.call(M,Y),!$(ae)||_(ae))return ae;throw TypeError("Can't convert object to primitive value")}return Y===void 0&&(Y="number"),F(M,Y)}},"./node_modules/core-js/internals/to-property-key.js":function(m,I,g){var $=g("./node_modules/core-js/internals/to-primitive.js"),_=g("./node_modules/core-js/internals/is-symbol.js");m.exports=function(F){var P=$(F,"string");return _(P)?P:String(P)}},"./node_modules/core-js/internals/to-string-tag-support.js":function(m,I,g){var $=g("./node_modules/core-js/internals/well-known-symbol.js"),_=$("toStringTag"),F={};F[_]="z",m.exports=String(F)==="[object z]"},"./node_modules/core-js/internals/to-string.js":function(m,I,g){var $=g("./node_modules/core-js/internals/is-symbol.js");m.exports=function(_){if($(_))throw TypeError("Cannot convert a Symbol value to a string");return String(_)}},"./node_modules/core-js/internals/uid.js":function(m){var I=0,g=Math.random();m.exports=function($){return"Symbol("+String($===void 0?"":$)+")_"+(++I+g).toString(36)}},"./node_modules/core-js/internals/use-symbol-as-uid.js":function(m,I,g){var $=g("./node_modules/core-js/internals/native-symbol.js");m.exports=$&&!Symbol.sham&&typeof Symbol.iterator=="symbol"},"./node_modules/core-js/internals/well-known-symbol-wrapped.js":function(m,I,g){var $=g("./node_modules/core-js/internals/well-known-symbol.js");I.f=$},"./node_modules/core-js/internals/well-known-symbol.js":function(m,I,g){var $=g("./node_modules/core-js/internals/global.js"),_=g("./node_modules/core-js/internals/shared.js"),F=g("./node_modules/core-js/internals/has.js"),P=g("./node_modules/core-js/internals/uid.js"),U=g("./node_modules/core-js/internals/native-symbol.js"),M=g("./node_modules/core-js/internals/use-symbol-as-uid.js"),Y=_("wks"),Q=$.Symbol,ae=M?Q:Q&&Q.withoutSetter||P;m.exports=function(ie){return(!F(Y,ie)||!(U||typeof Y[ie]=="string"))&&(U&&F(Q,ie)?Y[ie]=Q[ie]:Y[ie]=ae("Symbol."+ie)),Y[ie]}},"./node_modules/core-js/internals/whitespaces.js":function(m){m.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(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/export.js"),_=g("./node_modules/core-js/internals/fails.js"),F=g("./node_modules/core-js/internals/is-array.js"),P=g("./node_modules/core-js/internals/is-object.js"),U=g("./node_modules/core-js/internals/to-object.js"),M=g("./node_modules/core-js/internals/to-length.js"),Y=g("./node_modules/core-js/internals/create-property.js"),Q=g("./node_modules/core-js/internals/array-species-create.js"),ae=g("./node_modules/core-js/internals/array-method-has-species-support.js"),ie=g("./node_modules/core-js/internals/well-known-symbol.js"),J=g("./node_modules/core-js/internals/engine-v8-version.js"),G=ie("isConcatSpreadable"),j=9007199254740991,se="Maximum allowed index exceeded",he=J>=51||!_(function(){var q=[];return q[G]=!1,q.concat()[0]!==q}),Ne=ae("concat"),Be=function(q){if(!P(q))return!1;var Ae=q[G];return Ae!==void 0?!!Ae:F(q)},Pe=!he||!Ne;$({target:"Array",proto:!0,forced:Pe},{concat:function(Ae){var D=U(this),Je=Q(D,0),Fe=0,Ce,Ue,me,Me,fe;for(Ce=-1,me=arguments.length;Ce<me;Ce++)if(fe=Ce===-1?D:arguments[Ce],Be(fe)){if(Me=M(fe.length),Fe+Me>j)throw TypeError(se);for(Ue=0;Ue<Me;Ue++,Fe++)Ue in fe&&Y(Je,Fe,fe[Ue])}else{if(Fe>=j)throw TypeError(se);Y(Je,Fe++,fe)}return Je.length=Fe,Je}})},"./node_modules/core-js/modules/es.array.iterator.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/to-indexed-object.js"),_=g("./node_modules/core-js/internals/add-to-unscopables.js"),F=g("./node_modules/core-js/internals/iterators.js"),P=g("./node_modules/core-js/internals/internal-state.js"),U=g("./node_modules/core-js/internals/define-iterator.js"),M="Array Iterator",Y=P.set,Q=P.getterFor(M);m.exports=U(Array,"Array",function(ae,ie){Y(this,{type:M,target:$(ae),index:0,kind:ie})},function(){var ae=Q(this),ie=ae.target,J=ae.kind,G=ae.index++;return!ie||G>=ie.length?(ae.target=void 0,{value:void 0,done:!0}):J=="keys"?{value:G,done:!1}:J=="values"?{value:ie[G],done:!1}:{value:[G,ie[G]],done:!1}},"values"),F.Arguments=F.Array,_("keys"),_("values"),_("entries")},"./node_modules/core-js/modules/es.array.join.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/export.js"),_=g("./node_modules/core-js/internals/indexed-object.js"),F=g("./node_modules/core-js/internals/to-indexed-object.js"),P=g("./node_modules/core-js/internals/array-method-is-strict.js"),U=[].join,M=_!=Object,Y=P("join",",");$({target:"Array",proto:!0,forced:M||!Y},{join:function(ae){return U.call(F(this),ae===void 0?",":ae)}})},"./node_modules/core-js/modules/es.array.map.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/export.js"),_=g("./node_modules/core-js/internals/array-iteration.js").map,F=g("./node_modules/core-js/internals/array-method-has-species-support.js"),P=F("map");$({target:"Array",proto:!0,forced:!P},{map:function(M){return _(this,M,arguments.length>1?arguments[1]:void 0)}})},"./node_modules/core-js/modules/es.array.slice.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/export.js"),_=g("./node_modules/core-js/internals/is-object.js"),F=g("./node_modules/core-js/internals/is-array.js"),P=g("./node_modules/core-js/internals/to-absolute-index.js"),U=g("./node_modules/core-js/internals/to-length.js"),M=g("./node_modules/core-js/internals/to-indexed-object.js"),Y=g("./node_modules/core-js/internals/create-property.js"),Q=g("./node_modules/core-js/internals/well-known-symbol.js"),ae=g("./node_modules/core-js/internals/array-method-has-species-support.js"),ie=ae("slice"),J=Q("species"),G=[].slice,j=Math.max;$({target:"Array",proto:!0,forced:!ie},{slice:function(he,Ne){var Be=M(this),Pe=U(Be.length),q=P(he,Pe),Ae=P(Ne===void 0?Pe:Ne,Pe),D,Je,Fe;if(F(Be)&&(D=Be.constructor,typeof D=="function"&&(D===Array||F(D.prototype))?D=void 0:_(D)&&(D=D[J],D===null&&(D=void 0)),D===Array||D===void 0))return G.call(Be,q,Ae);for(Je=new(D===void 0?Array:D)(j(Ae-q,0)),Fe=0;q<Ae;q++,Fe++)q in Be&&Y(Je,Fe,Be[q]);return Je.length=Fe,Je}})},"./node_modules/core-js/modules/es.function.name.js":function(m,I,g){var $=g("./node_modules/core-js/internals/descriptors.js"),_=g("./node_modules/core-js/internals/object-define-property.js").f,F=Function.prototype,P=F.toString,U=/^\s*function ([^ (]*)/,M="name";$&&!(M in F)&&_(F,M,{configurable:!0,get:function(){try{return P.call(this).match(U)[1]}catch(Y){return""}}})},"./node_modules/core-js/modules/es.number.constructor.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/descriptors.js"),_=g("./node_modules/core-js/internals/global.js"),F=g("./node_modules/core-js/internals/is-forced.js"),P=g("./node_modules/core-js/internals/redefine.js"),U=g("./node_modules/core-js/internals/has.js"),M=g("./node_modules/core-js/internals/classof-raw.js"),Y=g("./node_modules/core-js/internals/inherit-if-required.js"),Q=g("./node_modules/core-js/internals/is-symbol.js"),ae=g("./node_modules/core-js/internals/to-primitive.js"),ie=g("./node_modules/core-js/internals/fails.js"),J=g("./node_modules/core-js/internals/object-create.js"),G=g("./node_modules/core-js/internals/object-get-own-property-names.js").f,j=g("./node_modules/core-js/internals/object-get-own-property-descriptor.js").f,se=g("./node_modules/core-js/internals/object-define-property.js").f,he=g("./node_modules/core-js/internals/string-trim.js").trim,Ne="Number",Be=_[Ne],Pe=Be.prototype,q=M(J(Pe))==Ne,Ae=function(Ue){if(Q(Ue))throw TypeError("Cannot convert a Symbol value to a number");var me=ae(Ue,"number"),Me,fe,Ee,rt,ot,We,et,_t;if(typeof me=="string"&&me.length>2){if(me=he(me),Me=me.charCodeAt(0),Me===43||Me===45){if(fe=me.charCodeAt(2),fe===88||fe===120)return NaN}else if(Me===48){switch(me.charCodeAt(1)){case 66:case 98:Ee=2,rt=49;break;case 79:case 111:Ee=8,rt=55;break;default:return+me}for(ot=me.slice(2),We=ot.length,et=0;et<We;et++)if(_t=ot.charCodeAt(et),_t<48||_t>rt)return NaN;return parseInt(ot,Ee)}}return+me};if(F(Ne,!Be(" 0o1")||!Be("0b1")||Be("+0x1"))){for(var D=function(me){var Me=arguments.length<1?0:me,fe=this;return fe instanceof D&&(q?ie(function(){Pe.valueOf.call(fe)}):M(fe)!=Ne)?Y(new Be(Ae(Me)),fe,D):Ae(Me)},Je=$?G(Be):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),Fe=0,Ce;Je.length>Fe;Fe++)U(Be,Ce=Je[Fe])&&!U(D,Ce)&&se(D,Ce,j(Be,Ce));D.prototype=Pe,Pe.constructor=D,P(_,Ne,D)}},"./node_modules/core-js/modules/es.object.assign.js":function(m,I,g){var $=g("./node_modules/core-js/internals/export.js"),_=g("./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(m,I,g){var $=g("./node_modules/core-js/internals/export.js"),_=g("./node_modules/core-js/internals/to-object.js"),F=g("./node_modules/core-js/internals/object-keys.js"),P=g("./node_modules/core-js/internals/fails.js"),U=P(function(){F(1)});$({target:"Object",stat:!0,forced:U},{keys:function(Y){return F(_(Y))}})},"./node_modules/core-js/modules/es.object.to-string.js":function(m,I,g){var $=g("./node_modules/core-js/internals/to-string-tag-support.js"),_=g("./node_modules/core-js/internals/redefine.js"),F=g("./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(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/redefine.js"),_=g("./node_modules/core-js/internals/an-object.js"),F=g("./node_modules/core-js/internals/to-string.js"),P=g("./node_modules/core-js/internals/fails.js"),U=g("./node_modules/core-js/internals/regexp-flags.js"),M="toString",Y=RegExp.prototype,Q=Y[M],ae=P(function(){return Q.call({source:"a",flags:"b"})!="/a/b"}),ie=Q.name!=M;(ae||ie)&&$(RegExp.prototype,M,function(){var G=_(this),j=F(G.source),se=G.flags,he=F(se===void 0&&G instanceof RegExp&&!("flags"in Y)?U.call(G):se);return"/"+j+"/"+he},{unsafe:!0})},"./node_modules/core-js/modules/es.string.iterator.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/string-multibyte.js").charAt,_=g("./node_modules/core-js/internals/to-string.js"),F=g("./node_modules/core-js/internals/internal-state.js"),P=g("./node_modules/core-js/internals/define-iterator.js"),U="String Iterator",M=F.set,Y=F.getterFor(U);P(String,"String",function(Q){M(this,{type:U,string:_(Q),index:0})},function(){var ae=Y(this),ie=ae.string,J=ae.index,G;return J>=ie.length?{value:void 0,done:!0}:(G=$(ie,J),ae.index+=G.length,{value:G,done:!1})})},"./node_modules/core-js/modules/es.string.link.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/export.js"),_=g("./node_modules/core-js/internals/create-html.js"),F=g("./node_modules/core-js/internals/string-html-forced.js");$({target:"String",proto:!0,forced:F("link")},{link:function(U){return _(this,"a","href",U)}})},"./node_modules/core-js/modules/es.symbol.description.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/export.js"),_=g("./node_modules/core-js/internals/descriptors.js"),F=g("./node_modules/core-js/internals/global.js"),P=g("./node_modules/core-js/internals/has.js"),U=g("./node_modules/core-js/internals/is-object.js"),M=g("./node_modules/core-js/internals/object-define-property.js").f,Y=g("./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 ae={},ie=function(){var Ne=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),Be=this instanceof ie?new Q(Ne):Ne===void 0?Q():Q(Ne);return Ne===""&&(ae[Be]=!0),Be};Y(ie,Q);var J=ie.prototype=Q.prototype;J.constructor=ie;var G=J.toString,j=String(Q("test"))=="Symbol(test)",se=/^Symbol\((.*)\)[^)]+$/;M(J,"description",{configurable:!0,get:function(){var Ne=U(this)?this.valueOf():this,Be=G.call(Ne);if(P(ae,Ne))return"";var Pe=j?Be.slice(7,-1):Be.replace(se,"$1");return Pe===""?void 0:Pe}}),$({global:!0,forced:!0},{Symbol:ie})}},"./node_modules/core-js/modules/es.symbol.iterator.js":function(m,I,g){var $=g("./node_modules/core-js/internals/define-well-known-symbol.js");$("iterator")},"./node_modules/core-js/modules/es.symbol.js":function(m,I,g){"use strict";var $=g("./node_modules/core-js/internals/export.js"),_=g("./node_modules/core-js/internals/global.js"),F=g("./node_modules/core-js/internals/get-built-in.js"),P=g("./node_modules/core-js/internals/is-pure.js"),U=g("./node_modules/core-js/internals/descriptors.js"),M=g("./node_modules/core-js/internals/native-symbol.js"),Y=g("./node_modules/core-js/internals/fails.js"),Q=g("./node_modules/core-js/internals/has.js"),ae=g("./node_modules/core-js/internals/is-array.js"),ie=g("./node_modules/core-js/internals/is-object.js"),J=g("./node_modules/core-js/internals/is-symbol.js"),G=g("./node_modules/core-js/internals/an-object.js"),j=g("./node_modules/core-js/internals/to-object.js"),se=g("./node_modules/core-js/internals/to-indexed-object.js"),he=g("./node_modules/core-js/internals/to-property-key.js"),Ne=g("./node_modules/core-js/internals/to-string.js"),Be=g("./node_modules/core-js/internals/create-property-descriptor.js"),Pe=g("./node_modules/core-js/internals/object-create.js"),q=g("./node_modules/core-js/internals/object-keys.js"),Ae=g("./node_modules/core-js/internals/object-get-own-property-names.js"),D=g("./node_modules/core-js/internals/object-get-own-property-names-external.js"),Je=g("./node_modules/core-js/internals/object-get-own-property-symbols.js"),Fe=g("./node_modules/core-js/internals/object-get-own-property-descriptor.js"),Ce=g("./node_modules/core-js/internals/object-define-property.js"),Ue=g("./node_modules/core-js/internals/object-property-is-enumerable.js"),me=g("./node_modules/core-js/internals/create-non-enumerable-property.js"),Me=g("./node_modules/core-js/internals/redefine.js"),fe=g("./node_modules/core-js/internals/shared.js"),Ee=g("./node_modules/core-js/internals/shared-key.js"),rt=g("./node_modules/core-js/internals/hidden-keys.js"),ot=g("./node_modules/core-js/internals/uid.js"),We=g("./node_modules/core-js/internals/well-known-symbol.js"),et=g("./node_modules/core-js/internals/well-known-symbol-wrapped.js"),_t=g("./node_modules/core-js/internals/define-well-known-symbol.js"),Ot=g("./node_modules/core-js/internals/set-to-string-tag.js"),Pt=g("./node_modules/core-js/internals/internal-state.js"),cr=g("./node_modules/core-js/internals/array-iteration.js").forEach,nr=Ee("hidden"),br="Symbol",sr="prototype",k=We("toPrimitive"),Xe=Pt.set,N=Pt.getterFor(br),b=Object[sr],f=_.Symbol,C=F("JSON","stringify"),ee=Fe.f,Se=Ce.f,H=D.f,ne=Ue.f,Qe=fe("symbols"),we=fe("op-symbols"),ye=fe("string-to-symbol-registry"),je=fe("symbol-to-string-registry"),mt=fe("wks"),ge=_.QObject,st=!ge||!ge[sr]||!ge[sr].findChild,ze=U&&Y(function(){return Pe(Se({},"a",{get:function(){return Se(this,"a",{value:7}).a}})).a!=7})?function(Er,Ar,ar){var Rr=ee(b,Ar);Rr&&delete b[Ar],Se(Er,Ar,ar),Rr&&Er!==b&&Se(b,Ar,Rr)}:Se,Ie=function(Er,Ar){var ar=Qe[Er]=Pe(f[sr]);return Xe(ar,{type:br,tag:Er,description:Ar}),U||(ar.description=Ar),ar},Le=function(Ar,ar,Rr){Ar===b&&Le(we,ar,Rr),G(Ar);var fn=he(ar);return G(Rr),Q(Qe,fn)?(Rr.enumerable?(Q(Ar,nr)&&Ar[nr][fn]&&(Ar[nr][fn]=!1),Rr=Pe(Rr,{enumerable:Be(0,!1)})):(Q(Ar,nr)||Se(Ar,nr,Be(1,{})),Ar[nr][fn]=!0),ze(Ar,fn,Rr)):Se(Ar,fn,Rr)},ct=function(Ar,ar){G(Ar);var Rr=se(ar),fn=q(Rr).concat(Sr(Rr));return cr(fn,function(En){(!U||Mt.call(Rr,En))&&Le(Ar,En,Rr[En])}),Ar},Tt=function(Ar,ar){return ar===void 0?Pe(Ar):ct(Pe(Ar),ar)},Mt=function(Ar){var ar=he(Ar),Rr=ne.call(this,ar);return this===b&&Q(Qe,ar)&&!Q(we,ar)?!1:Rr||!Q(this,ar)||!Q(Qe,ar)||Q(this,nr)&&this[nr][ar]?Rr:!0},Yt=function(Ar,ar){var Rr=se(Ar),fn=he(ar);if(!(Rr===b&&Q(Qe,fn)&&!Q(we,fn))){var En=ee(Rr,fn);return En&&Q(Qe,fn)&&!(Q(Rr,nr)&&Rr[nr][fn])&&(En.enumerable=!0),En}},_r=function(Ar){var ar=H(se(Ar)),Rr=[];return cr(ar,function(fn){!Q(Qe,fn)&&!Q(rt,fn)&&Rr.push(fn)}),Rr},Sr=function(Ar){var ar=Ar===b,Rr=H(ar?we:se(Ar)),fn=[];return cr(Rr,function(En){Q(Qe,En)&&(!ar||Q(b,En))&&fn.push(Qe[En])}),fn};if(M||(f=function(){if(this instanceof f)throw TypeError("Symbol is not a constructor");var Ar=!arguments.length||arguments[0]===void 0?void 0:Ne(arguments[0]),ar=ot(Ar),Rr=function(fn){this===b&&Rr.call(we,fn),Q(this,nr)&&Q(this[nr],ar)&&(this[nr][ar]=!1),ze(this,ar,Be(1,fn))};return U&&st&&ze(b,ar,{configurable:!0,set:Rr}),Ie(ar,Ar)},Me(f[sr],"toString",function(){return N(this).tag}),Me(f,"withoutSetter",function(Er){return Ie(ot(Er),Er)}),Ue.f=Mt,Ce.f=Le,Fe.f=Yt,Ae.f=D.f=_r,Je.f=Sr,et.f=function(Er){return Ie(We(Er),Er)},U&&(Se(f[sr],"description",{configurable:!0,get:function(){return N(this).description}}),P||Me(b,"propertyIsEnumerable",Mt,{unsafe:!0}))),$({global:!0,wrap:!0,forced:!M,sham:!M},{Symbol:f}),cr(q(mt),function(Er){_t(Er)}),$({target:br,stat:!0,forced:!M},{for:function(Er){var Ar=Ne(Er);if(Q(ye,Ar))return ye[Ar];var ar=f(Ar);return ye[Ar]=ar,je[ar]=Ar,ar},keyFor:function(Ar){if(!J(Ar))throw TypeError(Ar+" is not a symbol");if(Q(je,Ar))return je[Ar]},useSetter:function(){st=!0},useSimple:function(){st=!1}}),$({target:"Object",stat:!0,forced:!M,sham:!U},{create:Tt,defineProperty:Le,defineProperties:ct,getOwnPropertyDescriptor:Yt}),$({target:"Object",stat:!0,forced:!M},{getOwnPropertyNames:_r,getOwnPropertySymbols:Sr}),$({target:"Object",stat:!0,forced:Y(function(){Je.f(1)})},{getOwnPropertySymbols:function(Ar){return Je.f(j(Ar))}}),C){var Lr=!M||Y(function(){var Er=f();return C([Er])!="[null]"||C({a:Er})!="{}"||C(Object(Er))!="{}"});$({target:"JSON",stat:!0,forced:Lr},{stringify:function(Ar,ar,Rr){for(var fn=[Ar],En=1,gn;arguments.length>En;)fn.push(arguments[En++]);if(gn=ar,!(!ie(ar)&&Ar===void 0||J(Ar)))return ae(ar)||(ar=function(Rn,ji){if(typeof gn=="function"&&(ji=gn.call(this,Rn,ji)),!J(ji))return ji}),fn[1]=ar,C.apply(null,fn)}})}f[sr][k]||me(f[sr],k,f[sr].valueOf),Ot(f,br),rt[nr]=!0},"./node_modules/core-js/modules/web.dom-collections.for-each.js":function(m,I,g){var $=g("./node_modules/core-js/internals/global.js"),_=g("./node_modules/core-js/internals/dom-iterables.js"),F=g("./node_modules/core-js/internals/array-for-each.js"),P=g("./node_modules/core-js/internals/create-non-enumerable-property.js");for(var U in _){var M=$[U],Y=M&&M.prototype;if(Y&&Y.forEach!==F)try{P(Y,"forEach",F)}catch(Q){Y.forEach=F}}},"./node_modules/core-js/modules/web.dom-collections.iterator.js":function(m,I,g){var $=g("./node_modules/core-js/internals/global.js"),_=g("./node_modules/core-js/internals/dom-iterables.js"),F=g("./node_modules/core-js/modules/es.array.iterator.js"),P=g("./node_modules/core-js/internals/create-non-enumerable-property.js"),U=g("./node_modules/core-js/internals/well-known-symbol.js"),M=U("iterator"),Y=U("toStringTag"),Q=F.values;for(var ae in _){var ie=$[ae],J=ie&&ie.prototype;if(J){if(J[M]!==Q)try{P(J,M,Q)}catch(j){J[M]=Q}if(J[Y]||P(J,Y,ae),_[ae]){for(var G in F)if(J[G]!==F[G])try{P(J,G,F[G])}catch(j){J[G]=F[G]}}}}},"./node_modules/es6-promise/dist/es6-promise.js":function(m){(function(I,g){m.exports=g()})(this,function(){"use strict";function I(ge){var st=typeof ge;return ge!==null&&(st==="object"||st==="function")}function g(ge){return typeof ge=="function"}var $=void 0;Array.isArray?$=Array.isArray:$=function(ge){return Object.prototype.toString.call(ge)==="[object Array]"};var _=$,F=0,P=void 0,U=void 0,M=function(st,ze){q[F]=st,q[F+1]=ze,F+=2,F===2&&(U?U(Ae):Je())};function Y(ge){U=ge}function Q(ge){M=ge}var ae=typeof window!="undefined"?window:void 0,ie=ae||{},J=ie.MutationObserver||ie.WebKitMutationObserver,G=typeof self=="undefined"&&typeof ve!="undefined"&&{}.toString.call(ve)==="[object process]",j=typeof Uint8ClampedArray!="undefined"&&typeof importScripts!="undefined"&&typeof MessageChannel!="undefined";function se(){return function(){return ve.nextTick(Ae)}}function he(){return typeof P!="undefined"?function(){P(Ae)}:Pe()}function Ne(){var ge=0,st=new J(Ae),ze=document.createTextNode("");return st.observe(ze,{characterData:!0}),function(){ze.data=ge=++ge%2}}function Be(){var ge=new MessageChannel;return ge.port1.onmessage=Ae,function(){return ge.port2.postMessage(0)}}function Pe(){var ge=setTimeout;return function(){return ge(Ae,1)}}var q=new Array(1e3);function Ae(){for(var ge=0;ge<F;ge+=2){var st=q[ge],ze=q[ge+1];st(ze),q[ge]=void 0,q[ge+1]=void 0}F=0}function D(){try{var ge=Function("return this")().require("vertx");return P=ge.runOnLoop||ge.runOnContext,he()}catch(st){return Pe()}}var Je=void 0;G?Je=se():J?Je=Ne():j?Je=Be():ae===void 0?Je=D():Je=Pe();function Fe(ge,st){var ze=this,Ie=new this.constructor(me);Ie[Ue]===void 0&&C(Ie);var Le=ze._state;if(Le){var ct=arguments[Le-1];M(function(){return Xe(Le,Ie,ct,ze._result)})}else sr(ze,Ie,ge,st);return Ie}function Ce(ge){var st=this;if(ge&&typeof ge=="object"&&ge.constructor===st)return ge;var ze=new st(me);return Pt(ze,ge),ze}var Ue=Math.random().toString(36).substring(2);function me(){}var Me=void 0,fe=1,Ee=2;function rt(){return new TypeError("You cannot resolve a promise with itself")}function ot(){return new TypeError("A promises callback cannot return that same promise.")}function We(ge,st,ze,Ie){try{ge.call(st,ze,Ie)}catch(Le){return Le}}function et(ge,st,ze){M(function(Ie){var Le=!1,ct=We(ze,st,function(Tt){Le||(Le=!0,st!==Tt?Pt(Ie,Tt):nr(Ie,Tt))},function(Tt){Le||(Le=!0,br(Ie,Tt))},"Settle: "+(Ie._label||" unknown promise"));!Le&&ct&&(Le=!0,br(Ie,ct))},ge)}function _t(ge,st){st._state===fe?nr(ge,st._result):st._state===Ee?br(ge,st._result):sr(st,void 0,function(ze){return Pt(ge,ze)},function(ze){return br(ge,ze)})}function Ot(ge,st,ze){st.constructor===ge.constructor&&ze===Fe&&st.constructor.resolve===Ce?_t(ge,st):ze===void 0?nr(ge,st):g(ze)?et(ge,st,ze):nr(ge,st)}function Pt(ge,st){if(ge===st)br(ge,rt());else if(I(st)){var ze=void 0;try{ze=st.then}catch(Ie){br(ge,Ie);return}Ot(ge,st,ze)}else nr(ge,st)}function cr(ge){ge._onerror&&ge._onerror(ge._result),k(ge)}function nr(ge,st){ge._state===Me&&(ge._result=st,ge._state=fe,ge._subscribers.length!==0&&M(k,ge))}function br(ge,st){ge._state===Me&&(ge._state=Ee,ge._result=st,M(cr,ge))}function sr(ge,st,ze,Ie){var Le=ge._subscribers,ct=Le.length;ge._onerror=null,Le[ct]=st,Le[ct+fe]=ze,Le[ct+Ee]=Ie,ct===0&&ge._state&&M(k,ge)}function k(ge){var st=ge._subscribers,ze=ge._state;if(st.length!==0){for(var Ie=void 0,Le=void 0,ct=ge._result,Tt=0;Tt<st.length;Tt+=3)Ie=st[Tt],Le=st[Tt+ze],Ie?Xe(ze,Ie,Le,ct):Le(ct);ge._subscribers.length=0}}function Xe(ge,st,ze,Ie){var Le=g(ze),ct=void 0,Tt=void 0,Mt=!0;if(Le){try{ct=ze(Ie)}catch(Yt){Mt=!1,Tt=Yt}if(st===ct){br(st,ot());return}}else ct=Ie;st._state!==Me||(Le&&Mt?Pt(st,ct):Mt===!1?br(st,Tt):ge===fe?nr(st,ct):ge===Ee&&br(st,ct))}function N(ge,st){try{st(function(Ie){Pt(ge,Ie)},function(Ie){br(ge,Ie)})}catch(ze){br(ge,ze)}}var b=0;function f(){return b++}function C(ge){ge[Ue]=b++,ge._state=void 0,ge._result=void 0,ge._subscribers=[]}function ee(){return new Error("Array Methods must be provided an Array")}var Se=function(){function ge(st,ze){this._instanceConstructor=st,this.promise=new st(me),this.promise[Ue]||C(this.promise),_(ze)?(this.length=ze.length,this._remaining=ze.length,this._result=new Array(this.length),this.length===0?nr(this.promise,this._result):(this.length=this.length||0,this._enumerate(ze),this._remaining===0&&nr(this.promise,this._result))):br(this.promise,ee())}return ge.prototype._enumerate=function(ze){for(var Ie=0;this._state===Me&&Ie<ze.length;Ie++)this._eachEntry(ze[Ie],Ie)},ge.prototype._eachEntry=function(ze,Ie){var Le=this._instanceConstructor,ct=Le.resolve;if(ct===Ce){var Tt=void 0,Mt=void 0,Yt=!1;try{Tt=ze.then}catch(Sr){Yt=!0,Mt=Sr}if(Tt===Fe&&ze._state!==Me)this._settledAt(ze._state,Ie,ze._result);else if(typeof Tt!="function")this._remaining--,this._result[Ie]=ze;else if(Le===je){var _r=new Le(me);Yt?br(_r,Mt):Ot(_r,ze,Tt),this._willSettleAt(_r,Ie)}else this._willSettleAt(new Le(function(Sr){return Sr(ze)}),Ie)}else this._willSettleAt(ct(ze),Ie)},ge.prototype._settledAt=function(ze,Ie,Le){var ct=this.promise;ct._state===Me&&(this._remaining--,ze===Ee?br(ct,Le):this._result[Ie]=Le),this._remaining===0&&nr(ct,this._result)},ge.prototype._willSettleAt=function(ze,Ie){var Le=this;sr(ze,void 0,function(ct){return Le._settledAt(fe,Ie,ct)},function(ct){return Le._settledAt(Ee,Ie,ct)})},ge}();function H(ge){return new Se(this,ge).promise}function ne(ge){var st=this;return _(ge)?new st(function(ze,Ie){for(var Le=ge.length,ct=0;ct<Le;ct++)st.resolve(ge[ct]).then(ze,Ie)}):new st(function(ze,Ie){return Ie(new TypeError("You must pass an array to race."))})}function Qe(ge){var st=this,ze=new st(me);return br(ze,ge),ze}function we(){throw new TypeError("You must pass a resolver function as the first argument to the promise constructor")}function ye(){throw new TypeError("Failed to construct 'Promise': Please use the 'new' operator, this object constructor cannot be called as a function.")}var je=function(){function ge(st){this[Ue]=f(),this._result=this._state=void 0,this._subscribers=[],me!==st&&(typeof st!="function"&&we(),this instanceof ge?N(this,st):ye())}return ge.prototype.catch=function(ze){return this.then(null,ze)},ge.prototype.finally=function(ze){var Ie=this,Le=Ie.constructor;return g(ze)?Ie.then(function(ct){return Le.resolve(ze()).then(function(){return ct})},function(ct){return Le.resolve(ze()).then(function(){throw ct})}):Ie.then(ze,ze)},ge}();je.prototype.then=Fe,je.all=H,je.race=ne,je.resolve=Ce,je.reject=Qe,je._setScheduler=Y,je._setAsap=Q,je._asap=M;function mt(){var ge=void 0;if(typeof x.g!="undefined")ge=x.g;else if(typeof self!="undefined")ge=self;else try{ge=Function("return this")()}catch(Ie){throw new Error("polyfill failed because global object is unavailable in this environment")}var st=ge.Promise;if(st){var ze=null;try{ze=Object.prototype.toString.call(st.resolve())}catch(Ie){}if(ze==="[object Promise]"&&!st.cast)return}ge.Promise=je}return je.polyfill=mt,je.Promise=je,je})},html2canvas:function(m){"use strict";m.exports=T},jspdf:function(m){"use strict";m.exports=ue}},re={};function W(m){var I=re[m];if(I!==void 0)return I.exports;var g=re[m]={exports:{}};return De[m].call(g.exports,g,g.exports,W),g.exports}(function(){W.n=function(m){var I=m&&m.__esModule?function(){return m.default}:function(){return m};return W.d(I,{a:I}),I}})(),function(){W.d=function(m,I){for(var g in I)W.o(I,g)&&!W.o(m,g)&&Object.defineProperty(m,g,{enumerable:!0,get:I[g]})}}(),function(){W.o=function(m,I){return Object.prototype.hasOwnProperty.call(m,I)}}(),function(){W.r=function(m){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(m,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(m,"__esModule",{value:!0})}}();var S={};return function(){"use strict";W.r(S);var m=W("./src/worker.js"),I=W("./src/plugin/jspdf-plugin.js"),g=W("./src/plugin/pagebreaks.js"),$=W("./src/plugin/hyperlinks.js"),_=function F(P,U){var M=new F.Worker(U);return P?M.from(P).save():M};_.Worker=m.default,S.default=_}(),S=S.default,S}()})},67467:function(dn,Ut){Ut.read=function(x,ve,ue,T,De){var re,W,S=De*8-T-1,m=(1<<S)-1,I=m>>1,g=-7,$=ue?De-1:0,_=ue?-1:1,F=x[ve+$];for($+=_,re=F&(1<<-g)-1,F>>=-g,g+=S;g>0;re=re*256+x[ve+$],$+=_,g-=8);for(W=re&(1<<-g)-1,re>>=-g,g+=T;g>0;W=W*256+x[ve+$],$+=_,g-=8);if(re===0)re=1-I;else{if(re===m)return W?NaN:(F?-1:1)*(1/0);W=W+Math.pow(2,T),re=re-I}return(F?-1:1)*W*Math.pow(2,re-T)},Ut.write=function(x,ve,ue,T,De,re){var W,S,m,I=re*8-De-1,g=(1<<I)-1,$=g>>1,_=De===23?Math.pow(2,-24)-Math.pow(2,-77):0,F=T?0:re-1,P=T?1:-1,U=ve<0||ve===0&&1/ve<0?1:0;for(ve=Math.abs(ve),isNaN(ve)||ve===1/0?(S=isNaN(ve)?1:0,W=g):(W=Math.floor(Math.log(ve)/Math.LN2),ve*(m=Math.pow(2,-W))<1&&(W--,m*=2),W+$>=1?ve+=_/m:ve+=_*Math.pow(2,1-$),ve*m>=2&&(W++,m/=2),W+$>=g?(S=0,W=g):W+$>=1?(S=(ve*m-1)*Math.pow(2,De),W=W+$):(S=ve*Math.pow(2,$-1)*Math.pow(2,De),W=0));De>=8;x[ue+F]=S&255,F+=P,S/=256,De-=8);for(W=W<<De|S,I+=De;I>0;x[ue+F]=W&255,F+=P,W/=256,I-=8);x[ue+F-P]|=U*128}},24334:function(dn,Ut,x){var ve,ue;(function(T,De){dn.exports=De(T)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:this,function(T){"use strict";T=T||{};var De=T.Base64,re="2.6.4",W="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",S=function(D){for(var Je={},Fe=0,Ce=D.length;Fe<Ce;Fe++)Je[D.charAt(Fe)]=Fe;return Je}(W),m=String.fromCharCode,I=function(D){if(D.length<2){var Je=D.charCodeAt(0);return Je<128?D:Je<2048?m(192|Je>>>6)+m(128|Je&63):m(224|Je>>>12&15)+m(128|Je>>>6&63)+m(128|Je&63)}else{var Je=65536+(D.charCodeAt(0)-55296)*1024+(D.charCodeAt(1)-56320);return m(240|Je>>>18&7)+m(128|Je>>>12&63)+m(128|Je>>>6&63)+m(128|Je&63)}},g=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,$=function(D){return D.replace(g,I)},_=function(D){var Je=[0,2,1][D.length%3],Fe=D.charCodeAt(0)<<16|(D.length>1?D.charCodeAt(1):0)<<8|(D.length>2?D.charCodeAt(2):0),Ce=[W.charAt(Fe>>>18),W.charAt(Fe>>>12&63),Je>=2?"=":W.charAt(Fe>>>6&63),Je>=1?"=":W.charAt(Fe&63)];return Ce.join("")},F=T.btoa&&typeof T.btoa=="function"?function(D){return T.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,_)},P=function(D){return F($(String(D)))},U=function(D){return D.replace(/[+\/]/g,function(Je){return Je=="+"?"-":"_"}).replace(/=/g,"")},M=function(D,Je){return Je?U(P(D)):P(D)},Y=function(D){return M(D,!0)},Q;T.Uint8Array&&(Q=function(D,Je){for(var Fe="",Ce=0,Ue=D.length;Ce<Ue;Ce+=3){var me=D[Ce],Me=D[Ce+1],fe=D[Ce+2],Ee=me<<16|Me<<8|fe;Fe+=W.charAt(Ee>>>18)+W.charAt(Ee>>>12&63)+(typeof Me!="undefined"?W.charAt(Ee>>>6&63):"=")+(typeof fe!="undefined"?W.charAt(Ee&63):"=")}return Je?U(Fe):Fe});var ae=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,ie=function(D){switch(D.length){case 4:var Je=(7&D.charCodeAt(0))<<18|(63&D.charCodeAt(1))<<12|(63&D.charCodeAt(2))<<6|63&D.charCodeAt(3),Fe=Je-65536;return m((Fe>>>10)+55296)+m((Fe&1023)+56320);case 3:return m((15&D.charCodeAt(0))<<12|(63&D.charCodeAt(1))<<6|63&D.charCodeAt(2));default:return m((31&D.charCodeAt(0))<<6|63&D.charCodeAt(1))}},J=function(D){return D.replace(ae,ie)},G=function(D){var Je=D.length,Fe=Je%4,Ce=(Je>0?S[D.charAt(0)]<<18:0)|(Je>1?S[D.charAt(1)]<<12:0)|(Je>2?S[D.charAt(2)]<<6:0)|(Je>3?S[D.charAt(3)]:0),Ue=[m(Ce>>>16),m(Ce>>>8&255),m(Ce&255)];return Ue.length-=[0,0,2,1][Fe],Ue.join("")},j=T.atob&&typeof T.atob=="function"?function(D){return T.atob(D)}:function(D){return D.replace(/\S{1,4}/g,G)},se=function(D){return j(String(D).replace(/[^A-Za-z0-9\+\/]/g,""))},he=function(D){return J(j(D))},Ne=function(D){return String(D).replace(/[-_]/g,function(Je){return Je=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Be=function(D){return he(Ne(D))},Pe;T.Uint8Array&&(Pe=function(D){return Uint8Array.from(se(Ne(D)),function(Je){return Je.charCodeAt(0)})});var q=function(){var D=T.Base64;return T.Base64=De,D};if(T.Base64={VERSION:re,atob:se,btoa:F,fromBase64:Be,toBase64:M,utob:$,encode:M,encodeURI:Y,btou:J,decode:Be,noConflict:q,fromUint8Array:Q,toUint8Array:Pe},typeof Object.defineProperty=="function"){var Ae=function(D){return{value:D,enumerable:!1,writable:!0,configurable:!0}};T.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Ae(function(){return Be(this)})),Object.defineProperty(String.prototype,"toBase64",Ae(function(D){return M(this,D)})),Object.defineProperty(String.prototype,"toBase64URI",Ae(function(){return M(this,!0)}))}}return T.Meteor&&(Base64=T.Base64),dn.exports?dn.exports.Base64=T.Base64:(ve=[],ue=function(){return T.Base64}.apply(Ut,ve),ue!==void 0&&(dn.exports=ue)),{Base64:T.Base64}})},92042:function(dn,Ut,x){"use strict";x.r(Ut),x.d(Ut,{AcroForm:function(){return aA},AcroFormAppearance:function(){return qn},AcroFormButton:function(){return Oa},AcroFormCheckBox:function(){return Do},AcroFormChoiceField:function(){return di},AcroFormComboBox:function(){return Gi},AcroFormEditBox:function(){return Vi},AcroFormListBox:function(){return Va},AcroFormPasswordField:function(){return Pa},AcroFormPushButton:function(){return io},AcroFormRadioButton:function(){return _a},AcroFormTextField:function(){return Xa},GState:function(){return Th},ShadingPattern:function(){return zd},TilingPattern:function(){return $d},default:function(){return Aa},jsPDF:function(){return Aa}});var ve=x(76190),ue={},T=function(n,o,a,l,A){var p=new Worker(ue[o]||(ue[o]=URL.createObjectURL(new Blob([n+';addEventListener("error",function(e){e=e.error;postMessage({$e$:[e.message,e.code,e.stack]})})'],{type:"text/javascript"}))));return p.onmessage=function(O){var E=O.data,R=E.$e$;if(R){var V=new Error(R[0]);V.code=R[1],V.stack=R[2],A(V,null)}else A(null,E)},p.postMessage(a,l),p},De=Uint8Array,re=Uint16Array,W=Int32Array,S=new De([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),m=new De([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),I=new De([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),g=function(n,o){for(var a=new re(31),l=0;l<31;++l)a[l]=o+=1<<n[l-1];for(var A=new W(a[30]),l=1;l<30;++l)for(var p=a[l];p<a[l+1];++p)A[p]=p-a[l]<<5|l;return{b:a,r:A}},$=g(S,2),_=$.b,F=$.r;_[28]=258,F[258]=28;for(var P=g(m,0),U=P.b,M=P.r,Y=new re(32768),Q=0;Q<32768;++Q){var ae=(Q&43690)>>1|(Q&21845)<<1;ae=(ae&52428)>>2|(ae&13107)<<2,ae=(ae&61680)>>4|(ae&3855)<<4,Y[Q]=((ae&65280)>>8|(ae&255)<<8)>>1}for(var ie=function(n,o,a){for(var l=n.length,A=0,p=new re(o);A<l;++A)n[A]&&++p[n[A]-1];var O=new re(o);for(A=1;A<o;++A)O[A]=O[A-1]+p[A-1]<<1;var E;if(a){E=new re(1<<o);var R=15-o;for(A=0;A<l;++A)if(n[A])for(var V=A<<4|n[A],le=o-n[A],Re=O[n[A]-1]++<<le,$e=Re|(1<<le)-1;Re<=$e;++Re)E[Y[Re]>>R]=V}else for(E=new re(l),A=0;A<l;++A)n[A]&&(E[A]=Y[O[n[A]-1]++]>>15-n[A]);return E},J=new De(288),Q=0;Q<144;++Q)J[Q]=8;for(var Q=144;Q<256;++Q)J[Q]=9;for(var Q=256;Q<280;++Q)J[Q]=7;for(var Q=280;Q<288;++Q)J[Q]=8;for(var G=new De(32),Q=0;Q<32;++Q)G[Q]=5;var j=ie(J,9,0),se=null,he=ie(G,5,0),Ne=null,Be=function(n){for(var o=n[0],a=1;a<n.length;++a)n[a]>o&&(o=n[a]);return o},Pe=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)},Ae=function(n){return(n+7)/8|0},D=function(n,o,a){return(o==null||o<0)&&(o=0),(a==null||a>n.length)&&(a=n.length),new De(n.subarray(o,a))},Je={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},Fe=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Ce=function(n,o,a){var l=new Error(o||Fe[n]);if(l.code=n,Error.captureStackTrace&&Error.captureStackTrace(l,Ce),!a)throw l;return l},Ue=function(n,o,a,l){var A=n.length,p=l?l.length:0;if(!A||o.f&&!o.l)return a||new De(0);var O=!a,E=O||o.i!=2,R=o.i;O&&(a=new De(A*3));var V=function(zn){var hi=a.length;if(zn>hi){var Si=new De(Math.max(hi*2,zn));Si.set(a),a=Si}},le=o.f||0,Re=o.p||0,$e=o.b||0,oe=o.l,gt=o.d,dt=o.m,yt=o.n,lt=A*8;do{if(!oe){le=Pe(n,Re,1);var Xt=Pe(n,Re+1,3);if(Re+=3,Xt)if(Xt==1)oe=se,gt=Ne,dt=9,yt=5;else if(Xt==2){var rn=Pe(n,Re,31)+257,Pr=Pe(n,Re+10,15)+4,ir=rn+Pe(n,Re+5,31)+1;Re+=14;for(var Lt=new De(ir),wr=new De(19),it=0;it<Pr;++it)wr[I[it]]=Pe(n,Re+it*3,7);Re+=Pr*3;for(var Ct=Be(wr),tr=(1<<Ct)-1,$t=ie(wr,Ct,1),it=0;it<ir;){var Kr=$t[Pe(n,Re,tr)];Re+=Kr&15;var Qt=Kr>>4;if(Qt<16)Lt[it++]=Qt;else{var Zr=0,tn=0;for(Qt==16?(tn=3+Pe(n,Re,3),Re+=2,Zr=Lt[it-1]):Qt==17?(tn=3+Pe(n,Re,7),Re+=3):Qt==18&&(tn=11+Pe(n,Re,127),Re+=7);tn--;)Lt[it++]=Zr}}var Mr=Lt.subarray(0,rn),Vr=Lt.subarray(rn);dt=Be(Mr),yt=Be(Vr),oe=ie(Mr,dt,1),gt=ie(Vr,yt,1)}else Ce(1);else{var Qt=Ae(Re)+4,It=n[Qt-4]|n[Qt-3]<<8,kr=Qt+It;if(kr>A){R&&Ce(0);break}E&&V($e+It),a.set(n.subarray(Qt,kr),$e),o.b=$e+=It,o.p=Re=kr*8,o.f=le;continue}if(Re>lt){R&&Ce(0);break}}E&&V($e+131072);for(var Zn=(1<<dt)-1,In=(1<<yt)-1,tt=Re;;tt=Re){var Zr=oe[q(n,Re)&Zn],Et=Zr>>4;if(Re+=Zr&15,Re>lt){R&&Ce(0);break}if(Zr||Ce(2),Et<256)a[$e++]=Et;else if(Et==256){tt=Re,oe=null;break}else{var Nt=Et-254;if(Et>264){var it=Et-257,er=S[it];Nt=Pe(n,Re,(1<<er)-1)+_[it],Re+=er}var dr=gt[q(n,Re)&In],Br=dr>>4;dr||Ce(3),Re+=dr&15;var Vr=U[Br];if(Br>3){var er=m[Br];Vr+=q(n,Re)&(1<<er)-1,Re+=er}if(Re>lt){R&&Ce(0);break}E&&V($e+131072);var Gr=$e+Nt;if($e<Vr){var Ur=p-Vr,wn=Math.min(Vr,Gr);for(Ur+$e<0&&Ce(3);$e<wn;++$e)a[$e]=l[Ur+$e]}for(;$e<Gr;++$e)a[$e]=a[$e-Vr]}}o.l=oe,o.p=tt,o.b=$e,o.f=le,oe&&(le=1,o.m=dt,o.d=gt,o.n=yt)}while(!le);return $e!=a.length&&O?D(a,0,$e):a.subarray(0,$e)},me=function(n,o,a){a<<=o&7;var l=o/8|0;n[l]|=a,n[l+1]|=a>>8},Me=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},fe=function(n,o){for(var a=[],l=0;l<n.length;++l)n[l]&&a.push({s:l,f:n[l]});var A=a.length,p=a.slice();if(!A)return{t:Ot,l:0};if(A==1){var O=new De(a[0].s+1);return O[a[0].s]=1,{t:O,l:1}}a.sort(function(kr,rn){return kr.f-rn.f}),a.push({s:-1,f:25001});var E=a[0],R=a[1],V=0,le=1,Re=2;for(a[0]={s:-1,f:E.f+R.f,l:E,r:R};le!=A-1;)E=a[a[V].f<a[Re].f?V++:Re++],R=a[V!=le&&a[V].f<a[Re].f?V++:Re++],a[le++]={s:-1,f:E.f+R.f,l:E,r:R};for(var $e=p[0].s,l=1;l<A;++l)p[l].s>$e&&($e=p[l].s);var oe=new re($e+1),gt=Ee(a[le-1],oe,0);if(gt>o){var l=0,dt=0,yt=gt-o,lt=1<<yt;for(p.sort(function(rn,Pr){return oe[Pr.s]-oe[rn.s]||rn.f-Pr.f});l<A;++l){var Xt=p[l].s;if(oe[Xt]>o)dt+=lt-(1<<gt-oe[Xt]),oe[Xt]=o;else break}for(dt>>=yt;dt>0;){var Qt=p[l].s;oe[Qt]<o?dt-=1<<o-oe[Qt]++-1:++l}for(;l>=0&&dt;--l){var It=p[l].s;oe[It]==o&&(--oe[It],++dt)}gt=o}return{t:new De(oe),l:gt}},Ee=function(n,o,a){return n.s==-1?Math.max(Ee(n.l,o,a+1),Ee(n.r,o,a+1)):o[n.s]=a},rt=function(n){for(var o=n.length;o&&!n[--o];);for(var a=new re(++o),l=0,A=n[0],p=1,O=function(R){a[l++]=R},E=1;E<=o;++E)if(n[E]==A&&E!=o)++p;else{if(!A&&p>2){for(;p>138;p-=138)O(32754);p>2&&(O(p>10?p-11<<5|28690:p-3<<5|12305),p=0)}else if(p>3){for(O(A),--p;p>6;p-=6)O(8304);p>2&&(O(p-3<<5|8208),p=0)}for(;p--;)O(A);p=1,A=n[E]}return{c:a.subarray(0,l),n:o}},ot=function(n,o){for(var a=0,l=0;l<o.length;++l)a+=n[l]*o[l];return a},We=function(n,o,a){var l=a.length,A=Ae(o+2);n[A]=l&255,n[A+1]=l>>8,n[A+2]=n[A]^255,n[A+3]=n[A+1]^255;for(var p=0;p<l;++p)n[A+p+4]=a[p];return(A+4+l)*8},et=function(n,o,a,l,A,p,O,E,R,V,le){me(o,le++,a),++A[256];for(var Re=fe(A,15),$e=Re.t,oe=Re.l,gt=fe(p,15),dt=gt.t,yt=gt.l,lt=rt($e),Xt=lt.c,Qt=lt.n,It=rt(dt),kr=It.c,rn=It.n,Pr=new re(19),ir=0;ir<Xt.length;++ir)++Pr[Xt[ir]&31];for(var ir=0;ir<kr.length;++ir)++Pr[kr[ir]&31];for(var Lt=fe(Pr,7),wr=Lt.t,it=Lt.l,Ct=19;Ct>4&&!wr[I[Ct-1]];--Ct);var tr=V+5<<3,$t=ot(A,J)+ot(p,G)+O,Kr=ot(A,$e)+ot(p,dt)+O+14+3*Ct+ot(Pr,wr)+2*Pr[16]+3*Pr[17]+7*Pr[18];if(R>=0&&tr<=$t&&tr<=Kr)return We(o,le,n.subarray(R,R+V));var Zr,tn,Mr,Vr;if(me(o,le,1+(Kr<$t)),le+=2,Kr<$t){Zr=ie($e,oe,0),tn=$e,Mr=ie(dt,yt,0),Vr=dt;var Zn=ie(wr,it,0);me(o,le,Qt-257),me(o,le+5,rn-1),me(o,le+10,Ct-4),le+=14;for(var ir=0;ir<Ct;++ir)me(o,le+3*ir,wr[I[ir]]);le+=3*Ct;for(var In=[Xt,kr],tt=0;tt<2;++tt)for(var Et=In[tt],ir=0;ir<Et.length;++ir){var Nt=Et[ir]&31;me(o,le,Zn[Nt]),le+=wr[Nt],Nt>15&&(me(o,le,Et[ir]>>5&127),le+=Et[ir]>>12)}}else Zr=j,tn=J,Mr=he,Vr=G;for(var ir=0;ir<E;++ir){var er=l[ir];if(er>255){var Nt=er>>18&31;Me(o,le,Zr[Nt+257]),le+=tn[Nt+257],Nt>7&&(me(o,le,er>>23&31),le+=S[Nt]);var dr=er&31;Me(o,le,Mr[dr]),le+=Vr[dr],dr>3&&(Me(o,le,er>>5&8191),le+=m[dr])}else Me(o,le,Zr[er]),le+=tn[er]}return Me(o,le,Zr[256]),le+tn[256]},_t=new W([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Ot=new De(0),Pt=function(n,o,a,l,A,p){var O=p.z||n.length,E=new De(l+O+5*(1+Math.ceil(O/7e3))+A),R=E.subarray(l,E.length-A),V=p.l,le=(p.r||0)&7;if(o){le&&(R[0]=p.r>>3);for(var Re=_t[o-1],$e=Re>>13,oe=Re&8191,gt=(1<<a)-1,dt=p.p||new re(32768),yt=p.h||new re(gt+1),lt=Math.ceil(a/3),Xt=2*lt,Qt=function(sn){return(n[sn]^n[sn+1]<<lt^n[sn+2]<<Xt)>},It=new W(25e3),kr=new re(288),rn=new re(32),Pr=0,ir=0,Lt=p.i||0,wr=0,it=p.w||0,Ct=0;Lt+2<O;++Lt){var tr=Qt(Lt),$t=Lt&32767,Kr=yt[tr];if(dt[$t]=Kr,yt[tr]=$t,it<=Lt){var Zr=O-Lt;if((Pr>7e3||wr>24576)&&(Zr>423||!V)){le=et(n,R,0,It,kr,rn,ir,wr,Ct,Lt-Ct,le),wr=Pr=ir=0,Ct=Lt;for(var tn=0;tn<286;++tn)kr[tn]=0;for(var tn=0;tn<30;++tn)rn[tn]=0}var Mr=2,Vr=0,Zn=oe,In=$t-Kr&32767;if(Zr>2&&tr==Qt(Lt-In))for(var tt=Math.min($e,Zr)-1,Et=Math.min(32767,Lt),Nt=Math.min(258,Zr);In<=Et&&--Zn&&$t!=Kr;){if(n[Lt+Mr]==n[Lt+Mr-In]){for(var er=0;er<Nt&&n[Lt+er]==n[Lt+er-In];++er);if(er>Mr){if(Mr=er,Vr=In,er>tt)break;for(var dr=Math.min(In,er-2),Br=0,tn=0;tn<dr;++tn){var Gr=Lt-In+tn&32767,Ur=dt[Gr],wn=Gr-Ur&32767;wn>Br&&(Br=wn,Kr=Gr)}}}$t=Kr,Kr=dt[$t],In+=$t-Kr&32767}if(Vr){It[wr++]=268435456|F[Mr]<<18|M[Vr];var zn=F[Mr]&31,hi=M[Vr]&31;ir+=S[zn]+m[hi],++kr[257+zn],++rn[hi],it=Lt+Mr,++Pr}else It[wr++]=n[Lt],++kr[n[Lt]]}}for(Lt=Math.max(Lt,it);Lt<O;++Lt)It[wr++]=n[Lt],++kr[n[Lt]];le=et(n,R,V,It,kr,rn,ir,wr,Ct,Lt-Ct,le),V||(p.r=le&7|R[le/8|0]<<3,le-=7,p.h=yt,p.p=dt,p.i=Lt,p.w=it)}else{for(var Lt=p.w||0;Lt<O+V;Lt+=65535){var Si=Lt+65535;Si>=O&&(R[le/8|0]=V,Si=O),le=We(R,le+1,n.subarray(Lt,Si))}p.i=O}return D(E,0,l+Ae(le)+A)},cr=null,nr=function(){var n=-1;return{p:function(o){for(var a=n,l=0;l<o.length;++l)a=cr[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,A=o,p=a.length|0,O=0;O!=p;){for(var E=Math.min(O+2655,p);O<E;++O)A+=l+=a[O];l=(l&65535)+15*(l>>16),A=(A&65535)+15*(A>>16)}n=l,o=A},d:function(){return n%=65521,o%=65521,(n&255)<<24|(n&65280)<<8|(o&255)<<8|o>>8}}},sr=function(n,o,a,l,A){if(!A&&(A={l:1},o.dictionary)){var p=o.dictionary.subarray(-32768),O=new De(p.length+n.length);O.set(p),O.set(n,p.length),n=O,A.w=p.length}return Pt(n,o.level==null?6:o.level,o.mem==null?A.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+o.mem,a,l,A)},k=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},Xe=function(n,o,a){for(var l=n(),A=n.toString(),p=A.slice(A.indexOf("[")+1,A.lastIndexOf("]")).replace(/\s+/g,"").split(","),O=0;O<l.length;++O){var E=l[O],R=p[O];if(typeof E=="function"){o+=";"+R+"=";var V=E.toString();if(E.prototype)if(V.indexOf("[native code]")!=-1){var le=V.indexOf(" ",8)+1;o+=V.slice(le,V.indexOf("(",le))}else{o+=V;for(var Re in E.prototype)o+=";"+R+".prototype."+Re+"="+E.prototype[Re].toString()}else o+=V}else a[R]=E}return o},N=null,b=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(!N[a]){for(var A="",p={},O=n.length-1,E=0;E<O;++E)A=Xe(n[E],A,p);N[a]={c:Xe(n[O],A,p),e:p}}var R=k({},N[a].e);return T(N[a].c+";onmessage=function(e){for(var k in e.data)self[k]=e.data[k];onmessage="+o.toString()+"}",a,R,b(R),l)},C=function(){return[De,re,W,S,m,I,_,U,se,Ne,Y,Fe,ie,Be,Pe,q,Ae,D,Ce,Ue,Rn,we,ye]},ee=function(){return[De,re,W,S,m,I,F,M,j,J,he,G,Y,_t,Ot,ie,me,Me,fe,Ee,rt,ot,We,et,Ae,D,Pt,sr,Rr,we]},Se=function(){return[ct,Yt,Le,nr,cr]},H=function(){return[Tt,Mt]},ne=function(){return[_r,Le,br]},Qe=function(){return[Sr]},we=function(n){return postMessage(n,[n.buffer])},ye=function(n){return n&&{out:n.size&&new De(n.size),dictionary:n.dictionary}},je=function(n,o,a,l,A,p){var O=f(a,l,A,function(E,R){O.terminate(),p(E,R)});return O.postMessage([n,o],o.consume?[n.buffer]:[]),function(){O.terminate()}},mt=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()}},ge=function(n,o,a,l,A,p,O){var E,R=f(n,l,A,function(V,le){V?(R.terminate(),o.ondata.call(o,V)):Array.isArray(le)?le.length==1?(o.queuedSize-=le[0],o.ondrain&&o.ondrain(le[0])):(le[1]&&R.terminate(),o.ondata.call(o,V,le[0],le[1])):O(le)});R.postMessage(a),o.queuedSize=0,o.push=function(V,le){o.ondata||Ce(5),E&&o.ondata(Ce(4,0,1),null,!!le),o.queuedSize+=V.length,R.postMessage([V,E=le],[V.buffer])},o.terminate=function(){R.terminate()},p&&(o.flush=function(){R.postMessage([])})},st=function(n,o){return n[o]|n[o+1]<<8},ze=function(n,o){return(n[o]|n[o+1]<<8|n[o+2]<<16|n[o+3]<<24)>>>0},Ie=function(n,o){return ze(n,o)+ze(n,o+4)*4294967296},Le=function(n,o,a){for(;a;++o)n[o]=a,a>>>=8},ct=function(n,o){var a=o.filename;if(n[0]=31,n[1]=139,n[2]=8,n[8]=o.level<2?4:o.level==9?2:0,n[9]=3,o.mtime!=0&&Le(n,4,Math.floor(new Date(o.mtime||Date.now())/1e3)),a){n[3]=8;for(var l=0;l<=a.length;++l)n[l+10]=a.charCodeAt(l)}},Tt=function(n){(n[0]!=31||n[1]!=139||n[2]!=8)&&Ce(6,"invalid gzip data");var o=n[3],a=10;o&4&&(a+=(n[10]|n[11]<<8)+2);for(var l=(o>>3&1)+(o>>4&1);l>0;l-=!n[a++]);return a+(o&2)},Mt=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)},_r=function(n,o){var a=o.level,l=a==0?0:a<6?1:a==9?3:2;if(n[0]=120,n[1]=l<<6|(o.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,o.dictionary){var A=br();A.p(o.dictionary),Le(n,2,A.d())}},Sr=function(n,o){return((n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31)&&Ce(6,"invalid zlib data"),(n[1]>>5&1)==+!o&&Ce(6,"invalid zlib data: "+(n[1]&32?"need":"unexpected")+" dictionary"),(n[1]>>3&4)+2};function Lr(n,o){return typeof n=="function"&&(o=n,n={}),this.ondata=o,n}var Er=null,Ar=null;function ar(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[ee],function(l){return we(Rr(l.data[0],l.data[1]))},0,a)}function Rr(n,o){return sr(n,o||{},0,0)}var fn=null,En=null;function gn(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[C],function(l){return we(Rn(l.data[0],ye(l.data[1])))},1,a)}function Rn(n,o){return Ue(n,{i:2},o&&o.out,o&&o.dictionary)}var ji=null,Or=null;function bi(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[ee,Se,function(){return[ua]}],function(l){return we(ua(l.data[0],l.data[1]))},2,a)}function ua(n,o){o||(o={});var a=nr(),l=n.length;a.p(n);var A=sr(n,o,Yt(o),8),p=A.length;return ct(A,o),Le(A,p-8,a.d()),Le(A,p-4,l),A}var gi=null,ta=null;function Ji(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[C,H,function(){return[aa]}],function(l){return we(aa(l.data[0],l.data[1]))},3,a)}function aa(n,o){var a=Tt(n);return a+8>n.length&&Ce(6,"invalid gzip data"),Ue(n.subarray(a,-8),{i:2},o&&o.out||new De(Mt(n)),o&&o.dictionary)}var Io=null,oa=null;function pi(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[ee,ne,function(){return[Ti]}],function(l){return we(Ti(l.data[0],l.data[1]))},4,a)}function Ti(n,o){o||(o={});var a=br();a.p(n);var l=sr(n,o,o.dictionary?6:2,4);return _r(l,o),Le(l,l.length-4,a.d()),l}var zi=null,be=null;function Oe(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),je(n,o,[C,Qe,function(){return[ke]}],function(l){return we(ke(l.data[0],ye(l.data[1])))},5,a)}function ke(n,o){return Ue(n.subarray(Sr(n,o&&o.dictionary),-4),{i:2},o&&o.out,o&&o.dictionary)}var qe=null,Rt=null;function kt(n,o,a){return a||(a=o,o={}),typeof a!="function"&&Ce(7),n[0]==31&&n[1]==139&&n[2]==8?Ji(n,o,a):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?gn(n,o,a):Oe(n,o,a)}function yr(n,o){return n[0]==31&&n[1]==139&&n[2]==8?aa(n,o):(n[0]&15)!=8||n[0]>>4>7||(n[0]<<8|n[1])%31?Rn(n,o):ke(n,o)}var or=function(n,o,a,l){for(var A in n){var p=n[A],O=o+A,E=l;Array.isArray(p)&&(E=k(l,p[1]),p=p[0]),p instanceof De?a[O]=[p,E]:(a[O+="/"]=[new De(0),E],or(p,O,a,l))}},Nr=typeof TextEncoder!="undefined"&&new TextEncoder,zr=typeof TextDecoder!="undefined"&&new TextDecoder,an=0;try{zr.decode(Ot,{stream:!0}),an=1}catch(n){}var jr=function(n){for(var o="",a=0;;){var l=n[a++],A=(l>127)+(l>223)+(l>239);if(a+A>n.length)return{s:o,r:D(n,a-1)};A?A==3?(l=((l&15)<<18|(n[a++]&63)<<12|(n[a++]&63)<<6|n[a++]&63)-65536,o+=String.fromCharCode(55296|l>>10,56320|l&1023)):A&1?o+=String.fromCharCode((l&31)<<6|n[a++]&63):o+=String.fromCharCode((l&15)<<12|(n[a++]&63)<<6|n[a++]&63):o+=String.fromCharCode(l)}},Qr=null,qr=null;function yn(n,o){if(o){for(var a=new De(n.length),l=0;l<n.length;++l)a[l]=n.charCodeAt(l);return a}if(Nr)return Nr.encode(n);for(var A=n.length,p=new De(n.length+(n.length>>1)),O=0,E=function(le){p[O++]=le},l=0;l<A;++l){if(O+5>p.length){var R=new De(O+8+(A-l<<1));R.set(p),p=R}var V=n.charCodeAt(l);V<128||o?E(V):V<2048?(E(192|V>>6),E(128|V&63)):V>55295&&V<57344?(V=65536+(V&1047552)|n.charCodeAt(++l)&1023,E(240|V>>18),E(128|V>>12&63),E(128|V>>6&63),E(128|V&63)):(E(224|V>>12),E(128|V>>6&63),E(128|V&63))}return D(p,0,O)}function on(n,o){if(o){for(var a="",l=0;l<n.length;l+=16384)a+=String.fromCharCode.apply(null,n.subarray(l,l+16384));return a}else{if(zr)return zr.decode(n);var A=jr(n),p=A.s,a=A.r;return a.length&&Ce(8),p}}var Dn=function(n){return n==1?3:n<6?2:n==9?1:0},Qn=function(n,o){return o+30+st(n,o+26)+st(n,o+28)},fi=function(n,o,a){var l=st(n,o+28),A=on(n.subarray(o+46,o+46+l),!(st(n,o+8)&2048)),p=o+46+l,O=ze(n,o+20),E=a&&O==4294967295?On(n,p):[O,ze(n,o+24),ze(n,o+42)],R=E[0],V=E[1],le=E[2];return[st(n,o+10),R,V,A,p+st(n,o+30)+st(n,o+32),le]},On=function(n,o){for(;st(n,o)!=1;o+=4+st(n,o+2));return[Ie(n,o+12),Ie(n,o+4),Ie(n,o+20)]},An=function(n){var o=0;if(n)for(var a in n){var l=n[a].length;l>65535&&Ce(9),o+=l+4}return o},Dt=function(n,o,a,l,A,p,O,E){var R=l.length,V=a.extra,le=E&&E.length,Re=An(V);Le(n,o,O!=null?33639248:67324752),o+=4,O!=null&&(n[o++]=20,n[o++]=a.os),n[o]=20,o+=2,n[o++]=a.flag<<1|(p<0&&8),n[o++]=A&&8,n[o++]=a.compression&255,n[o++]=a.compression>>8;var $e=new Date(a.mtime==null?Date.now():a.mtime),oe=$e.getFullYear()-1980;if((oe<0||oe>119)&&Ce(10),Le(n,o,oe<<25|$e.getMonth()+1<<21|$e.getDate()<<16|$e.getHours()<<11|$e.getMinutes()<<5|$e.getSeconds()>>1),o+=4,p!=-1&&(Le(n,o,a.crc),Le(n,o+4,p<0?-p-2:p),Le(n,o+8,a.size)),Le(n,o+12,R),Le(n,o+14,Re),o+=16,O!=null&&(Le(n,o,le),Le(n,o+6,a.attrs),Le(n,o+10,O),o+=14),n.set(l,o),o+=R,Re)for(var gt in V){var dt=V[gt],yt=dt.length;Le(n,o,+gt),Le(n,o+2,yt),n.set(dt,o+4),o+=4+yt}return le&&(n.set(E,o),o+=le),o},Kt=function(n,o,a,l,A){Le(n,o,101010256),Le(n,o+8,a),Le(n,o+10,a),Le(n,o+12,l),Le(n,o+16,A)},Gt=null,Jt=null,Zt=null,Dr=null;function Fr(n,o,a){a||(a=o,o={}),typeof a!="function"&&Ce(7);var l={};or(n,"",l,o);var A=Object.keys(l),p=A.length,O=0,E=0,R=p,V=new Array(p),le=[],Re=function(){for(var yt=0;yt<le.length;++yt)le[yt]()},$e=function(yt,lt){Bi(function(){a(yt,lt)})};Bi(function(){$e=a});var oe=function(){var yt=new De(E+22),lt=O,Xt=E-O;E=0;for(var Qt=0;Qt<R;++Qt){var It=V[Qt];try{var kr=It.c.length;Dt(yt,E,It,It.f,It.u,kr);var rn=30+It.f.length+An(It.extra),Pr=E+rn;yt.set(It.c,Pr),Dt(yt,O,It,It.f,It.u,kr,E,It.m),O+=16+rn+(It.m?It.m.length:0),E=Pr+kr}catch(ir){return $e(ir,null)}}Kt(yt,O,V.length,Xt,lt),$e(null,yt)};p||oe();for(var gt=function(yt){var lt=A[yt],Xt=l[lt],Qt=Xt[0],It=Xt[1],kr=nr(),rn=Qt.length;kr.p(Qt);var Pr=yn(lt),ir=Pr.length,Lt=It.comment,wr=Lt&&yn(Lt),it=wr&&wr.length,Ct=An(It.extra),tr=It.level==0?0:8,$t=function(Kr,Zr){if(Kr)Re(),$e(Kr,null);else{var tn=Zr.length;V[yt]=k(It,{size:rn,crc:kr.d(),c:Zr,f:Pr,m:wr,u:ir!=lt.length||wr&&Lt.length!=it,compression:tr}),O+=30+ir+Ct+tn,E+=76+2*(ir+Ct)+(it||0)+tn,--p||oe()}};if(ir>65535&&$t(Ce(11,0,1),null),!tr)$t(null,Qt);else if(rn<16e4)try{$t(null,Rr(Qt,It))}catch(Kr){$t(Kr,null)}else le.push(ar(Qt,It,$t))},dt=0;dt<R;++dt)gt(dt);return Re}function Xr(n,o){o||(o={});var a={},l=[];or(n,"",a,o);var A=0,p=0;for(var O in a){var E=a[O],R=E[0],V=E[1],le=V.level==0?0:8,Re=yn(O),$e=Re.length,oe=V.comment,gt=oe&&yn(oe),dt=gt&>.length,yt=An(V.extra);$e>65535&&Ce(11);var lt=le?Rr(R,V):R,Xt=lt.length,Qt=nr();Qt.p(R),l.push(k(V,{size:R.length,crc:Qt.d(),c:lt,f:Re,m:gt,u:$e!=O.length||gt&&oe.length!=dt,o:A,compression:le})),A+=30+$e+yt+Xt,p+=76+2*($e+yt)+(dt||0)+Xt}for(var It=new De(p+22),kr=A,rn=p-A,Pr=0;Pr<l.length;++Pr){var Re=l[Pr];Dt(It,Re.o,Re,Re.f,Re.u,Re.c.length);var ir=30+Re.f.length+An(Re.extra);It.set(Re.c,Re.o+ir),Dt(It,A,Re,Re.f,Re.u,Re.c.length,Re.o,Re.m),A+=16+ir+(Re.m?Re.m.length:0)}return Kt(It,A,l.length,rn,kr),It}var Fn=null,Nn=null,si=null,ti=null,Bi=typeof queueMicrotask=="function"?queueMicrotask:typeof setTimeout=="function"?setTimeout:function(n){n()};function Yn(n,o,a){a||(a=o,o={}),typeof a!="function"&&Ce(7);var l=[],A=function(){for(var yt=0;yt<l.length;++yt)l[yt]()},p={},O=function(yt,lt){Bi(function(){a(yt,lt)})};Bi(function(){O=a});for(var E=n.length-22;ze(n,E)!=101010256;--E)if(!E||n.length-E>65558)return O(Ce(13,0,1),null),A;var R=st(n,E+8);if(R){var V=R,le=ze(n,E+16),Re=le==4294967295||V==65535;if(Re){var $e=ze(n,E-12);Re=ze(n,$e)==101075792,Re&&(V=R=ze(n,$e+32),le=ze(n,$e+48))}for(var oe=o&&o.filter,gt=function(yt){var lt=fi(n,le,Re),Xt=lt[0],Qt=lt[1],It=lt[2],kr=lt[3],rn=lt[4],Pr=lt[5],ir=Qn(n,Pr);le=rn;var Lt=function(it,Ct){it?(A(),O(it,null)):(Ct&&(p[kr]=Ct),--R||O(null,p))};if(!oe||oe({name:kr,size:Qt,originalSize:It,compression:Xt}))if(!Xt)Lt(null,D(n,ir,ir+Qt));else if(Xt==8){var wr=n.subarray(ir,ir+Qt);if(It<524288||Qt>.8*It)try{Lt(null,Rn(wr,{out:new De(It)}))}catch(it){Lt(it,null)}else l.push(gn(wr,{size:It},Lt))}else Lt(Ce(14,"unknown compression type "+Xt,1),null);else Lt(null,null)},dt=0;dt<V;++dt)gt(dt)}else O(null,{});return A}function jn(n,o){for(var a={},l=n.length-22;ze(n,l)!=101010256;--l)(!l||n.length-l>65558)&&Ce(13);var A=st(n,l+8);if(!A)return{};var p=ze(n,l+16),O=p==4294967295||A==65535;if(O){var E=ze(n,l-12);O=ze(n,E)==101075792,O&&(A=ze(n,E+32),p=ze(n,E+48))}for(var R=o&&o.filter,V=0;V<A;++V){var le=fi(n,p,O),Re=le[0],$e=le[1],oe=le[2],gt=le[3],dt=le[4],yt=le[5],lt=Qn(n,yt);p=dt,(!R||R({name:gt,size:$e,originalSize:oe,compression:Re}))&&(Re?Re==8?a[gt]=Rn(n.subarray(lt,lt+$e),{out:new De(oe)}):Ce(14,"unknown compression type "+Re):a[gt]=D(n,lt,lt+$e))}return a}var yi=x(42978);function vi(n,o="utf8"){return new TextDecoder(o).decode(n)}const wi=new TextEncoder;function li(n){return wi.encode(n)}const xi=1024*8,$i=(()=>{const n=new Uint8Array(4),o=new Uint32Array(n.buffer);return!((o[0]=1)&n[0])})(),ei={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Di{constructor(o=xi,a={}){Vs(this,"buffer");Vs(this,"byteLength");Vs(this,"byteOffset");Vs(this,"length");Vs(this,"offset");Vs(this,"lastWrittenByte");Vs(this,"littleEndian");Vs(this,"_data");Vs(this,"_mark");Vs(this,"_marks");let l=!1;typeof o=="number"?o=new ArrayBuffer(o):(l=!0,this.lastWrittenByte=o.byteLength);const A=a.offset?a.offset>>>0:0,p=o.byteLength-A;let O=A;(ArrayBuffer.isView(o)||o instanceof Di)&&(o.byteLength!==o.buffer.byteLength&&(O=o.byteOffset+A),o=o.buffer),l?this.lastWrittenByte=p:this.lastWrittenByte=0,this.buffer=o,this.length=p,this.byteLength=p,this.byteOffset=O,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,O,p),this._mark=0,this._marks=[]}available(o=1){return this.offset+o<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(o=1){return this.offset+=o,this}back(o=1){return this.offset-=o,this}seek(o){return this.offset=o,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const o=this._marks.pop();if(o===void 0)throw new Error("Mark stack empty");return this.seek(o),this}rewind(){return this.offset=0,this}ensureAvailable(o=1){if(!this.available(o)){const l=(this.offset+o)*2,A=new Uint8Array(l);A.set(new Uint8Array(this.buffer)),this.buffer=A.buffer,this.length=l,this.byteLength=l,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(o=1){return this.readArray(o,"uint8")}readArray(o,a){const l=ei[a].BYTES_PER_ELEMENT*o,A=this.byteOffset+this.offset,p=this.buffer.slice(A,A+l);if(this.littleEndian===$i&&a!=="uint8"&&a!=="int8"){const E=new Uint8Array(this.buffer.slice(A,A+l));E.reverse();const R=new ei[a](E.buffer);return this.offset+=l,R.reverse(),R}const O=new ei[a](p);return this.offset+=l,O}readInt16(){const o=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,o}readUint16(){const o=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,o}readInt32(){const o=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,o}readUint32(){const o=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,o}readFloat32(){const o=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,o}readFloat64(){const o=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,o}readBigInt64(){const o=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,o}readBigUint64(){const o=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,o}readChar(){return String.fromCharCode(this.readInt8())}readChars(o=1){let a="";for(let l=0;l<o;l++)a+=this.readChar();return a}readUtf8(o=1){return vi(this.readBytes(o))}decodeText(o=1,a="utf8"){return vi(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(li(o))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}const Ha=4,oi=0,hn=1,ln=2;function Xn(n){let o=n.length;for(;--o>=0;)n[o]=0}const Kn=0,Ai=1,Wi=2,_i=3,Ua=258,ca=29,Bo=256,Wn=Bo+1+ca,_n=30,Mi=19,Zi=2*Wn+1,Ia=15,Is=16,za=7,da=256,Fo=16,So=17,Uo=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]),ho=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),vs=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]),Ws=512,Ro=new Array((Wn+2)*2);Xn(Ro);const Qo=new Array(_n*2);Xn(Qo);const bs=new Array(Ws);Xn(bs);const rl=new Array(Ua-_i+1);Xn(rl);const vl=new Array(ca);Xn(vl);const nc=new Array(_n);Xn(nc);function ic(n,o,a,l,A){this.static_tree=n,this.extra_bits=o,this.extra_base=a,this.elems=l,this.max_length=A,this.has_stree=n&&n.length}let Ql,Gs,Dc;function Kl(n,o){this.dyn_tree=n,this.max_code=0,this.stat_desc=o}const Hl=n=>n<256?bs[n]:bs[256+(n>>>7)],Xs=(n,o)=>{n.pending_buf[n.pending++]=o&255,n.pending_buf[n.pending++]=o>>>8&255},os=(n,o,a)=>{n.bi_valid>Is-a?(n.bi_buf|=o<<n.bi_valid&65535,Xs(n,n.bi_buf),n.bi_buf=o>>Is-n.bi_valid,n.bi_valid+=a-Is):(n.bi_buf|=o<<n.bi_valid&65535,n.bi_valid+=a)},ri=(n,o,a)=>{os(n,a[o*2],a[o*2+1])},sa=(n,o)=>{let a=0;do a|=n&1,n>>>=1,a<<=1;while(--o>0);return a>>>1},Xi=n=>{n.bi_valid===16?(Xs(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)},ra=(n,o)=>{const a=o.dyn_tree,l=o.max_code,A=o.stat_desc.static_tree,p=o.stat_desc.has_stree,O=o.stat_desc.extra_bits,E=o.stat_desc.extra_base,R=o.stat_desc.max_length;let V,le,Re,$e,oe,gt,dt=0;for($e=0;$e<=Ia;$e++)n.bl_count[$e]=0;for(a[n.heap[n.heap_max]*2+1]=0,V=n.heap_max+1;V<Zi;V++)le=n.heap[V],$e=a[a[le*2+1]*2+1]+1,$e>R&&($e=R,dt++),a[le*2+1]=$e,!(le>l)&&(n.bl_count[$e]++,oe=0,le>=E&&(oe=O[le-E]),gt=a[le*2],n.opt_len+=gt*($e+oe),p&&(n.static_len+=gt*(A[le*2+1]+oe)));if(dt!==0){do{for($e=R-1;n.bl_count[$e]===0;)$e--;n.bl_count[$e]--,n.bl_count[$e+1]+=2,n.bl_count[R]--,dt-=2}while(dt>0);for($e=R;$e!==0;$e--)for(le=n.bl_count[$e];le!==0;)Re=n.heap[--V],!(Re>l)&&(a[Re*2+1]!==$e&&(n.opt_len+=($e-a[Re*2+1])*a[Re*2],a[Re*2+1]=$e),le--)}},Da=(n,o,a)=>{const l=new Array(Ia+1);let A=0,p,O;for(p=1;p<=Ia;p++)A=A+a[p-1]<<1,l[p]=A;for(O=0;O<=o;O++){let E=n[O*2+1];E!==0&&(n[O*2]=sa(l[E]++,E))}},oo=()=>{let n,o,a,l,A;const p=new Array(Ia+1);for(a=0,l=0;l<ca-1;l++)for(vl[l]=a,n=0;n<1<<Ps[l];n++)rl[a++]=l;for(rl[a-1]=l,A=0,l=0;l<16;l++)for(nc[l]=A,n=0;n<1<<ho[l];n++)bs[A++]=l;for(A>>=7;l<_n;l++)for(nc[l]=A<<7,n=0;n<1<<ho[l]-7;n++)bs[256+A++]=l;for(o=0;o<=Ia;o++)p[o]=0;for(n=0;n<=143;)Ro[n*2+1]=8,n++,p[8]++;for(;n<=255;)Ro[n*2+1]=9,n++,p[9]++;for(;n<=279;)Ro[n*2+1]=7,n++,p[7]++;for(;n<=287;)Ro[n*2+1]=8,n++,p[8]++;for(Da(Ro,Wn+1,p),n=0;n<_n;n++)Qo[n*2+1]=5,Qo[n*2]=sa(n,5);Ql=new ic(Ro,Ps,Bo+1,Wn,Ia),Gs=new ic(Qo,ho,0,_n,Ia),Dc=new ic(new Array(0),vs,0,Mi,za)},Js=n=>{let o;for(o=0;o<Wn;o++)n.dyn_ltree[o*2]=0;for(o=0;o<_n;o++)n.dyn_dtree[o*2]=0;for(o=0;o<Mi;o++)n.bl_tree[o*2]=0;n.dyn_ltree[da*2]=1,n.opt_len=n.static_len=0,n.sym_next=n.matches=0},ys=n=>{n.bi_valid>8?Xs(n,n.bi_buf):n.bi_valid>0&&(n.pending_buf[n.pending++]=n.bi_buf),n.bi_buf=0,n.bi_valid=0},ws=(n,o,a,l)=>{const A=o*2,p=a*2;return n[A]<n[p]||n[A]===n[p]&&l[o]<=l[a]},ps=(n,o,a)=>{const l=n.heap[a];let A=a<<1;for(;A<=n.heap_len&&(A<n.heap_len&&ws(o,n.heap[A+1],n.heap[A],n.depth)&&A++,!ws(o,l,n.heap[A],n.depth));)n.heap[a]=n.heap[A],a=A,A<<=1;n.heap[a]=l},eo=(n,o,a)=>{let l,A,p=0,O,E;if(n.sym_next!==0)do l=n.pending_buf[n.sym_buf+p++]&255,l+=(n.pending_buf[n.sym_buf+p++]&255)<<8,A=n.pending_buf[n.sym_buf+p++],l===0?ri(n,A,o):(O=rl[A],ri(n,O+Bo+1,o),E=Ps[O],E!==0&&(A-=vl[O],os(n,A,E)),l--,O=Hl(l),ri(n,O,a),E=ho[O],E!==0&&(l-=nc[O],os(n,l,E)));while(p<n.sym_next);ri(n,da,o)},Ra=(n,o)=>{const a=o.dyn_tree,l=o.stat_desc.static_tree,A=o.stat_desc.has_stree,p=o.stat_desc.elems;let O,E,R=-1,V;for(n.heap_len=0,n.heap_max=Zi,O=0;O<p;O++)a[O*2]!==0?(n.heap[++n.heap_len]=R=O,n.depth[O]=0):a[O*2+1]=0;for(;n.heap_len<2;)V=n.heap[++n.heap_len]=R<2?++R:0,a[V*2]=1,n.depth[V]=0,n.opt_len--,A&&(n.static_len-=l[V*2+1]);for(o.max_code=R,O=n.heap_len>>1;O>=1;O--)ps(n,a,O);V=p;do O=n.heap[1],n.heap[1]=n.heap[n.heap_len--],ps(n,a,1),E=n.heap[1],n.heap[--n.heap_max]=O,n.heap[--n.heap_max]=E,a[V*2]=a[O*2]+a[E*2],n.depth[V]=(n.depth[O]>=n.depth[E]?n.depth[O]:n.depth[E])+1,a[O*2+1]=a[E*2+1]=V,n.heap[1]=V++,ps(n,a,1);while(n.heap_len>=2);n.heap[--n.heap_max]=n.heap[1],ra(n,o),Da(a,R,n.bl_count)},ss=(n,o,a)=>{let l,A=-1,p,O=o[0*2+1],E=0,R=7,V=4;for(O===0&&(R=138,V=3),o[(a+1)*2+1]=65535,l=0;l<=a;l++)p=O,O=o[(l+1)*2+1],!(++E<R&&p===O)&&(E<V?n.bl_tree[p*2]+=E:p!==0?(p!==A&&n.bl_tree[p*2]++,n.bl_tree[Fo*2]++):E<=10?n.bl_tree[So*2]++:n.bl_tree[Uo*2]++,E=0,A=p,O===0?(R=138,V=3):p===O?(R=6,V=3):(R=7,V=4))},ls=(n,o,a)=>{let l,A=-1,p,O=o[0*2+1],E=0,R=7,V=4;for(O===0&&(R=138,V=3),l=0;l<=a;l++)if(p=O,O=o[(l+1)*2+1],!(++E<R&&p===O)){if(E<V)do ri(n,p,n.bl_tree);while(--E!==0);else p!==0?(p!==A&&(ri(n,p,n.bl_tree),E--),ri(n,Fo,n.bl_tree),os(n,E-3,2)):E<=10?(ri(n,So,n.bl_tree),os(n,E-3,3)):(ri(n,Uo,n.bl_tree),os(n,E-11,7));E=0,A=p,O===0?(R=138,V=3):p===O?(R=6,V=3):(R=7,V=4)}},Fs=n=>{let o;for(ss(n,n.dyn_ltree,n.l_desc.max_code),ss(n,n.dyn_dtree,n.d_desc.max_code),Ra(n,n.bl_desc),o=Mi-1;o>=3&&n.bl_tree[Ts[o]*2+1]===0;o--);return n.opt_len+=3*(o+1)+5+5+4,o},Xo=(n,o,a,l)=>{let A;for(os(n,o-257,5),os(n,a-1,5),os(n,l-4,4),A=0;A<l;A++)os(n,n.bl_tree[Ts[A]*2+1],3);ls(n,n.dyn_ltree,o-1),ls(n,n.dyn_dtree,a-1)},Mo=n=>{let o=4093624447,a;for(a=0;a<=31;a++,o>>>=1)if(o&1&&n.dyn_ltree[a*2]!==0)return oi;if(n.dyn_ltree[9*2]!==0||n.dyn_ltree[10*2]!==0||n.dyn_ltree[13*2]!==0)return hn;for(a=32;a<Bo;a++)if(n.dyn_ltree[a*2]!==0)return hn;return oi};let hA=!1;const au=n=>{hA||(oo(),hA=!0),n.l_desc=new Kl(n.dyn_ltree,Ql),n.d_desc=new Kl(n.dyn_dtree,Gs),n.bl_desc=new Kl(n.bl_tree,Dc),n.bi_buf=0,n.bi_valid=0,Js(n)},cc=(n,o,a,l)=>{os(n,(Kn<<1)+(l?1:0),3),ys(n),Xs(n,a),Xs(n,~a),a&&n.pending_buf.set(n.window.subarray(o,o+a),n.pending),n.pending+=a},pA=n=>{os(n,Ai<<1,3),ri(n,da,Ro),Xi(n)},Al=(n,o,a,l)=>{let A,p,O=0;n.level>0?(n.strm.data_type===ln&&(n.strm.data_type=Mo(n)),Ra(n,n.l_desc),Ra(n,n.d_desc),O=Fs(n),A=n.opt_len+3+7>>>3,p=n.static_len+3+7>>>3,p<=A&&(A=p)):A=p=a+5,a+4<=A&&o!==-1?cc(n,o,a,l):n.strategy===Ha||p===A?(os(n,(Ai<<1)+(l?1:0),3),eo(n,Ro,Qo)):(os(n,(Wi<<1)+(l?1:0),3),Xo(n,n.l_desc.max_code+1,n.d_desc.max_code+1,O+1),eo(n,n.dyn_ltree,n.dyn_dtree)),Js(n),l&&ys(n)},mA=(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[(rl[a]+Bo+1)*2]++,n.dyn_dtree[Hl(o)*2]++),n.sym_next===n.sym_end);var nl=au,ms=cc,Yc=Al,Us=mA,OA=pA,Ac={_tr_init:nl,_tr_stored_block:ms,_tr_flush_block:Yc,_tr_tally:Us,_tr_align:OA},to=(n,o,a,l)=>{let A=n&65535|0,p=n>>>16&65535|0,O=0;for(;a!==0;){O=a>2e3?2e3:a,a-=O;do A=A+o[l++]|0,p=p+A|0;while(--O);A%=65521,p%=65521}return A|p<<16|0};const Ys=()=>{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},gA=new Uint32Array(Ys());var cs=(n,o,a,l)=>{const A=gA,p=l+a;n^=-1;for(let O=l;O<p;O++)n=n>>>8^A[(n^o[O])&255];return n^-1},xa={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"},ba={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:mo,_tr_flush_block:zo,_tr_tally:$o,_tr_align:Oo}=Ac,{Z_NO_FLUSH:xs,Z_PARTIAL_FLUSH:ac,Z_FULL_FLUSH:Zc,Z_FINISH:qs,Z_BLOCK:vA,Z_OK:wl,Z_STREAM_END:qc,Z_STREAM_ERROR:il,Z_DATA_ERROR:Fd,Z_BUF_ERROR:ou,Z_DEFAULT_COMPRESSION:$A,Z_FILTERED:sf,Z_HUFFMAN_ONLY:Vc,Z_RLE:Gu,Z_FIXED:Nc,Z_DEFAULT_STRATEGY:Md,Z_UNKNOWN:Jo,Z_DEFLATED:Po}=ba,Yo=9,yc=15,zl=8,ZA=256+1+29,Ld=30,kd=19,VA=2*ZA+1,WA=15,Lo=3,yA=258,GA=yA+Lo+1,p0=32,su=42,yh=57,lf=69,Dd=73,Kf=91,wh=103,Mu=113,cf=666,xl=1,Cl=2,Oc=3,Pc=4,m0=3,Lu=(n,o)=>(n.msg=xa[o],o),xh=n=>n*2-(n>4?9:0),ku=n=>{let o=n.length;for(;--o>=0;)n[o]=0},Nd=n=>{let o,a,l,A=n.w_size;o=n.hash_size,l=o;do a=n.head[--l],n.head[l]=a>=A?a-A:0;while(--o);o=A,l=o;do a=n.prev[--l],n.prev[l]=a>=A?a-A:0;while(--o)};let lu=(n,o,a)=>(o<<n.hash_shift^a)&n.hash_mask;const eA=n=>{const o=n.state;let a=o.pending;a>n.avail_out&&(a=n.avail_out),a!==0&&(n.output.set(o.pending_buf.subarray(o.pending_out,o.pending_out+a),n.next_out),n.next_out+=a,o.pending_out+=a,n.total_out+=a,n.avail_out-=a,o.pending-=a,o.pending===0&&(o.pending_out=0))},wc=(n,o)=>{zo(n,n.block_start>=0?n.block_start:-1,n.strstart-n.block_start,o),n.block_start=n.strstart,eA(n.strm)},Zo=(n,o)=>{n.pending_buf[n.pending++]=o},Ju=(n,o)=>{n.pending_buf[n.pending++]=o>>>8&255,n.pending_buf[n.pending++]=o&255},Hf=(n,o,a,l)=>{let A=n.avail_in;return A>l&&(A=l),A===0?0:(n.avail_in-=A,o.set(n.input.subarray(n.next_in,n.next_in+A),a),n.state.wrap===1?n.adler=to(n.adler,o,A,a):n.state.wrap===2&&(n.adler=cs(n.adler,o,A,a)),n.next_in+=A,n.total_in+=A,A)},jf=(n,o)=>{let a=n.max_chain_length,l=n.strstart,A,p,O=n.prev_length,E=n.nice_match;const R=n.strstart>n.w_size-GA?n.strstart-(n.w_size-GA):0,V=n.window,le=n.w_mask,Re=n.prev,$e=n.strstart+yA;let oe=V[l+O-1],gt=V[l+O];n.prev_length>=n.good_match&&(a>>=2),E>n.lookahead&&(E=n.lookahead);do if(A=o,!(V[A+O]!==gt||V[A+O-1]!==oe||V[A]!==V[l]||V[++A]!==V[l+1])){l+=2,A++;do;while(V[++l]===V[++A]&&V[++l]===V[++A]&&V[++l]===V[++A]&&V[++l]===V[++A]&&V[++l]===V[++A]&&V[++l]===V[++A]&&V[++l]===V[++A]&&V[++l]===V[++A]&&l<$e);if(p=yA-($e-l),l=$e-yA,p>O){if(n.match_start=o,O=p,p>=E)break;oe=V[l+O-1],gt=V[l+O]}}while((o=Re[o&le])>R&&--a!==0);return O<=n.lookahead?O:n.lookahead},Tc=n=>{const o=n.w_size;let a,l,A;do{if(l=n.window_size-n.lookahead-n.strstart,n.strstart>=o+(o-GA)&&(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),Nd(n),l+=o),n.strm.avail_in===0)break;if(a=Hf(n.strm,n.window,n.strstart+n.lookahead,l),n.lookahead+=a,n.lookahead+n.insert>=Lo)for(A=n.strstart-n.insert,n.ins_h=n.window[A],n.ins_h=lu(n,n.ins_h,n.window[A+1]);n.insert&&(n.ins_h=lu(n,n.ins_h,n.window[A+Lo-1]),n.prev[A&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=A,A++,n.insert--,!(n.lookahead+n.insert<Lo)););}while(n.lookahead<GA&&n.strm.avail_in!==0)},Yu=(n,o)=>{let a=n.pending_buf_size-5>n.w_size?n.w_size:n.pending_buf_size-5,l,A,p,O=0,E=n.strm.avail_in;do{if(l=65535,p=n.bi_valid+42>>3,n.strm.avail_out<p||(p=n.strm.avail_out-p,A=n.strstart-n.block_start,l>A+n.strm.avail_in&&(l=A+n.strm.avail_in),l>p&&(l=p),l<a&&(l===0&&o!==qs||o===xs||l!==A+n.strm.avail_in)))break;O=o===qs&&l===A+n.strm.avail_in?1:0,mo(n,0,0,O),n.pending_buf[n.pending-4]=l,n.pending_buf[n.pending-3]=l>>8,n.pending_buf[n.pending-2]=~l,n.pending_buf[n.pending-1]=~l>>8,eA(n.strm),A&&(A>l&&(A=l),n.strm.output.set(n.window.subarray(n.block_start,n.block_start+A),n.strm.next_out),n.strm.next_out+=A,n.strm.avail_out-=A,n.strm.total_out+=A,n.block_start+=A,l-=A),l&&(Hf(n.strm,n.strm.output,n.strm.next_out,l),n.strm.next_out+=l,n.strm.avail_out-=l,n.strm.total_out+=l)}while(O===0);return 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?Pc:o!==xs&&o!==qs&&n.strm.avail_in===0&&n.strstart===n.block_start?Cl:(p=n.window_size-n.strstart,n.strm.avail_in>p&&n.block_start>=n.w_size&&(n.block_start-=n.w_size,n.strstart-=n.w_size,n.window.set(n.window.subarray(n.w_size,n.w_size+n.strstart),0),n.matches<2&&n.matches++,p+=n.w_size,n.insert>n.strstart&&(n.insert=n.strstart)),p>n.strm.avail_in&&(p=n.strm.avail_in),p&&(Hf(n.strm,n.window,n.strstart,p),n.strstart+=p,n.insert+=p>n.w_size-n.insert?n.w_size-n.insert:p),n.high_water<n.strstart&&(n.high_water=n.strstart),p=n.bi_valid+42>>3,p=n.pending_buf_size-p>65535?65535:n.pending_buf_size-p,a=p>n.w_size?n.w_size:p,A=n.strstart-n.block_start,(A>=a||(A||o===qs)&&o!==xs&&n.strm.avail_in===0&&A<=p)&&(l=A>p?p:A,O=o===qs&&n.strm.avail_in===0&&l===A?1:0,mo(n,n.block_start,l,O),n.block_start+=l,eA(n.strm)),O?Oc:xl)},Af=(n,o)=>{let a,l;for(;;){if(n.lookahead<GA){if(Tc(n),n.lookahead<GA&&o===xs)return xl;if(n.lookahead===0)break}if(a=0,n.lookahead>=Lo&&(n.ins_h=lu(n,n.ins_h,n.window[n.strstart+Lo-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-GA&&(n.match_length=jf(n,a)),n.match_length>=Lo)if(l=$o(n,n.strstart-n.match_start,n.match_length-Lo),n.lookahead-=n.match_length,n.match_length<=n.max_lazy_match&&n.lookahead>=Lo){n.match_length--;do n.strstart++,n.ins_h=lu(n,n.ins_h,n.window[n.strstart+Lo-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=lu(n,n.ins_h,n.window[n.strstart+1]);else l=$o(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++;if(l&&(wc(n,!1),n.strm.avail_out===0))return xl}return n.insert=n.strstart<Lo-1?n.strstart:Lo-1,o===qs?(wc(n,!0),n.strm.avail_out===0?Oc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?xl:Cl},qu=(n,o)=>{let a,l,A;for(;;){if(n.lookahead<GA){if(Tc(n),n.lookahead<GA&&o===xs)return xl;if(n.lookahead===0)break}if(a=0,n.lookahead>=Lo&&(n.ins_h=lu(n,n.ins_h,n.window[n.strstart+Lo-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=Lo-1,a!==0&&n.prev_length<n.max_lazy_match&&n.strstart-a<=n.w_size-GA&&(n.match_length=jf(n,a),n.match_length<=5&&(n.strategy===sf||n.match_length===Lo&&n.strstart-n.match_start>4096)&&(n.match_length=Lo-1)),n.prev_length>=Lo&&n.match_length<=n.prev_length){A=n.strstart+n.lookahead-Lo,l=$o(n,n.strstart-1-n.prev_match,n.prev_length-Lo),n.lookahead-=n.prev_length-1,n.prev_length-=2;do++n.strstart<=A&&(n.ins_h=lu(n,n.ins_h,n.window[n.strstart+Lo-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=Lo-1,n.strstart++,l&&(wc(n,!1),n.strm.avail_out===0))return xl}else if(n.match_available){if(l=$o(n,0,n.window[n.strstart-1]),l&&wc(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=$o(n,0,n.window[n.strstart-1]),n.match_available=0),n.insert=n.strstart<Lo-1?n.strstart:Lo-1,o===qs?(wc(n,!0),n.strm.avail_out===0?Oc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?xl:Cl},g0=(n,o)=>{let a,l,A,p;const O=n.window;for(;;){if(n.lookahead<=yA){if(Tc(n),n.lookahead<=yA&&o===xs)return xl;if(n.lookahead===0)break}if(n.match_length=0,n.lookahead>=Lo&&n.strstart>0&&(A=n.strstart-1,l=O[A],l===O[++A]&&l===O[++A]&&l===O[++A])){p=n.strstart+yA;do;while(l===O[++A]&&l===O[++A]&&l===O[++A]&&l===O[++A]&&l===O[++A]&&l===O[++A]&&l===O[++A]&&l===O[++A]&&A<p);n.match_length=yA-(p-A),n.match_length>n.lookahead&&(n.match_length=n.lookahead)}if(n.match_length>=Lo?(a=$o(n,1,n.match_length-Lo),n.lookahead-=n.match_length,n.strstart+=n.match_length,n.match_length=0):(a=$o(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++),a&&(wc(n,!1),n.strm.avail_out===0))return xl}return n.insert=0,o===qs?(wc(n,!0),n.strm.avail_out===0?Oc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?xl:Cl},v0=(n,o)=>{let a;for(;;){if(n.lookahead===0&&(Tc(n),n.lookahead===0)){if(o===xs)return xl;break}if(n.match_length=0,a=$o(n,0,n.window[n.strstart]),n.lookahead--,n.strstart++,a&&(wc(n,!1),n.strm.avail_out===0))return xl}return n.insert=0,o===qs?(wc(n,!0),n.strm.avail_out===0?Oc:Pc):n.sym_next&&(wc(n,!1),n.strm.avail_out===0)?xl:Cl};function $l(n,o,a,l,A){this.good_length=n,this.max_lazy=o,this.nice_length=a,this.max_chain=l,this.func=A}const ed=[new $l(0,0,0,0,Yu),new $l(4,4,8,4,Af),new $l(4,5,16,8,Af),new $l(4,6,32,32,Af),new $l(4,4,16,16,qu),new $l(8,16,32,32,qu),new $l(8,16,128,128,qu),new $l(8,32,128,256,qu),new $l(32,128,258,1024,qu),new $l(32,258,258,4096,qu)],b0=n=>{n.window_size=2*n.w_size,ku(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=Lo-1,n.match_available=0,n.ins_h=0};function de(){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=Po,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(VA*2),this.dyn_dtree=new Uint16Array((2*Ld+1)*2),this.bl_tree=new Uint16Array((2*kd+1)*2),ku(this.dyn_ltree),ku(this.dyn_dtree),ku(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(WA+1),this.heap=new Uint16Array(2*ZA+1),ku(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*ZA+1),ku(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}const xe=n=>{if(!n)return 1;const o=n.state;return!o||o.strm!==n||o.status!==su&&o.status!==yh&&o.status!==lf&&o.status!==Dd&&o.status!==Kf&&o.status!==wh&&o.status!==Mu&&o.status!==cf?1:0},Ye=n=>{if(xe(n))return Lu(n,il);n.total_in=n.total_out=0,n.data_type=Jo;const o=n.state;return o.pending=0,o.pending_out=0,o.wrap<0&&(o.wrap=-o.wrap),o.status=o.wrap===2?yh:o.wrap?su:Mu,n.adler=o.wrap===2?0:1,o.last_flush=-2,rs(o),wl},At=n=>{const o=Ye(n);return o===wl&&b0(n.state),o},xt=(n,o)=>xe(n)||n.state.wrap!==2?il:(n.state.gzhead=o,wl),bt=(n,o,a,l,A,p)=>{if(!n)return il;let O=1;if(o===$A&&(o=6),l<0?(O=0,l=-l):l>15&&(O=2,l-=16),A<1||A>Yo||a!==Po||l<8||l>15||o<0||o>9||p<0||p>Nc||l===8&&O!==1)return Lu(n,il);l===8&&(l=9);const E=new de;return n.state=E,E.strm=n,E.status=su,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=A+7,E.hash_size=1<<E.hash_bits,E.hash_mask=E.hash_size-1,E.hash_shift=~~((E.hash_bits+Lo-1)/Lo),E.window=new Uint8Array(E.w_size*2),E.head=new Uint16Array(E.hash_size),E.prev=new Uint16Array(E.w_size),E.lit_bufsize=1<<A+6,E.pending_buf_size=E.lit_bufsize*4,E.pending_buf=new Uint8Array(E.pending_buf_size),E.sym_buf=E.lit_bufsize,E.sym_end=(E.lit_bufsize-1)*3,E.level=o,E.strategy=p,E.method=a,At(n)},Vt=(n,o)=>bt(n,o,Po,yc,zl,Md),zt=(n,o)=>{if(xe(n)||o>vA||o<0)return n?Lu(n,il):il;const a=n.state;if(!n.output||n.avail_in!==0&&!n.input||a.status===cf&&o!==qs)return Lu(n,n.avail_out===0?ou:il);const l=a.last_flush;if(a.last_flush=o,a.pending!==0){if(eA(n),n.avail_out===0)return a.last_flush=-1,wl}else if(n.avail_in===0&&xh(o)<=xh(l)&&o!==qs)return Lu(n,ou);if(a.status===cf&&n.avail_in!==0)return Lu(n,ou);if(a.status===su&&a.wrap===0&&(a.status=Mu),a.status===su){let A=Po+(a.w_bits-8<<4)<<8,p=-1;if(a.strategy>=Vc||a.level<2?p=0:a.level<6?p=1:a.level===6?p=2:p=3,A|=p<<6,a.strstart!==0&&(A|=p0),A+=31-A%31,Ju(a,A),a.strstart!==0&&(Ju(a,n.adler>>>16),Ju(a,n.adler&65535)),n.adler=1,a.status=Mu,eA(n),a.pending!==0)return a.last_flush=-1,wl}if(a.status===yh){if(n.adler=0,Zo(a,31),Zo(a,139),Zo(a,8),a.gzhead)Zo(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)),Zo(a,a.gzhead.time&255),Zo(a,a.gzhead.time>>8&255),Zo(a,a.gzhead.time>>16&255),Zo(a,a.gzhead.time>>24&255),Zo(a,a.level===9?2:a.strategy>=Vc||a.level<2?4:0),Zo(a,a.gzhead.os&255),a.gzhead.extra&&a.gzhead.extra.length&&(Zo(a,a.gzhead.extra.length&255),Zo(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=lf;else if(Zo(a,0),Zo(a,0),Zo(a,0),Zo(a,0),Zo(a,0),Zo(a,a.level===9?2:a.strategy>=Vc||a.level<2?4:0),Zo(a,m0),a.status=Mu,eA(n),a.pending!==0)return a.last_flush=-1,wl}if(a.status===lf){if(a.gzhead.extra){let A=a.pending,p=(a.gzhead.extra.length&65535)-a.gzindex;for(;a.pending+p>a.pending_buf_size;){let E=a.pending_buf_size-a.pending;if(a.pending_buf.set(a.gzhead.extra.subarray(a.gzindex,a.gzindex+E),a.pending),a.pending=a.pending_buf_size,a.gzhead.hcrc&&a.pending>A&&(n.adler=cs(n.adler,a.pending_buf,a.pending-A,A)),a.gzindex+=E,eA(n),a.pending!==0)return a.last_flush=-1,wl;A=0,p-=E}let O=new Uint8Array(a.gzhead.extra);a.pending_buf.set(O.subarray(a.gzindex,a.gzindex+p),a.pending),a.pending+=p,a.gzhead.hcrc&&a.pending>A&&(n.adler=cs(n.adler,a.pending_buf,a.pending-A,A)),a.gzindex=0}a.status=Dd}if(a.status===Dd){if(a.gzhead.name){let A=a.pending,p;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>A&&(n.adler=cs(n.adler,a.pending_buf,a.pending-A,A)),eA(n),a.pending!==0)return a.last_flush=-1,wl;A=0}a.gzindex<a.gzhead.name.length?p=a.gzhead.name.charCodeAt(a.gzindex++)&255:p=0,Zo(a,p)}while(p!==0);a.gzhead.hcrc&&a.pending>A&&(n.adler=cs(n.adler,a.pending_buf,a.pending-A,A)),a.gzindex=0}a.status=Kf}if(a.status===Kf){if(a.gzhead.comment){let A=a.pending,p;do{if(a.pending===a.pending_buf_size){if(a.gzhead.hcrc&&a.pending>A&&(n.adler=cs(n.adler,a.pending_buf,a.pending-A,A)),eA(n),a.pending!==0)return a.last_flush=-1,wl;A=0}a.gzindex<a.gzhead.comment.length?p=a.gzhead.comment.charCodeAt(a.gzindex++)&255:p=0,Zo(a,p)}while(p!==0);a.gzhead.hcrc&&a.pending>A&&(n.adler=cs(n.adler,a.pending_buf,a.pending-A,A))}a.status=wh}if(a.status===wh){if(a.gzhead.hcrc){if(a.pending+2>a.pending_buf_size&&(eA(n),a.pending!==0))return a.last_flush=-1,wl;Zo(a,n.adler&255),Zo(a,n.adler>>8&255),n.adler=0}if(a.status=Mu,eA(n),a.pending!==0)return a.last_flush=-1,wl}if(n.avail_in!==0||a.lookahead!==0||o!==xs&&a.status!==cf){let A=a.level===0?Yu(a,o):a.strategy===Vc?v0(a,o):a.strategy===Gu?g0(a,o):ed[a.level].func(a,o);if((A===Oc||A===Pc)&&(a.status=cf),A===xl||A===Oc)return n.avail_out===0&&(a.last_flush=-1),wl;if(A===Cl&&(o===ac?Oo(a):o!==vA&&(mo(a,0,0,!1),o===Zc&&(ku(a.head),a.lookahead===0&&(a.strstart=0,a.block_start=0,a.insert=0))),eA(n),n.avail_out===0))return a.last_flush=-1,wl}return o!==qs?wl:a.wrap<=0?qc:(a.wrap===2?(Zo(a,n.adler&255),Zo(a,n.adler>>8&255),Zo(a,n.adler>>16&255),Zo(a,n.adler>>24&255),Zo(a,n.total_in&255),Zo(a,n.total_in>>8&255),Zo(a,n.total_in>>16&255),Zo(a,n.total_in>>24&255)):(Ju(a,n.adler>>>16),Ju(a,n.adler&65535)),eA(n),a.wrap>0&&(a.wrap=-a.wrap),a.pending!==0?wl:qc)},Ht=n=>{if(xe(n))return il;const o=n.state.status;return n.state=null,o===Mu?Lu(n,Fd):wl},ur=(n,o)=>{let a=o.length;if(xe(n))return il;const l=n.state,A=l.wrap;if(A===2||A===1&&l.status!==su||l.lookahead)return il;if(A===1&&(n.adler=to(n.adler,o,a,0)),l.wrap=0,a>=l.w_size){A===0&&(ku(l.head),l.strstart=0,l.block_start=0,l.insert=0);let R=new Uint8Array(l.w_size);R.set(o.subarray(a-l.w_size,a),0),o=R,a=l.w_size}const p=n.avail_in,O=n.next_in,E=n.input;for(n.avail_in=a,n.next_in=0,n.input=o,Tc(l);l.lookahead>=Lo;){let R=l.strstart,V=l.lookahead-(Lo-1);do l.ins_h=lu(l,l.ins_h,l.window[R+Lo-1]),l.prev[R&l.w_mask]=l.head[l.ins_h],l.head[l.ins_h]=R,R++;while(--V);l.strstart=R,l.lookahead=Lo-1,Tc(l)}return l.strstart+=l.lookahead,l.block_start=l.strstart,l.insert=l.lookahead,l.lookahead=0,l.match_length=l.prev_length=Lo-1,l.match_available=0,n.next_in=O,n.input=E,n.avail_in=p,l.wrap=A,wl};var Ir=Vt,hr=bt,en=At,$r=Ye,Jr=xt,Pn=zt,xn=Ht,Mn=ur,Cn="pako deflate (from Nodeca project)",$n={deflateInit:Ir,deflateInit2:hr,deflateReset:en,deflateResetKeep:$r,deflateSetHeader:Jr,deflate:Pn,deflateEnd:xn,deflateSetDictionary:Mn,deflateInfo:Cn};const Ni=(n,o)=>Object.prototype.hasOwnProperty.call(n,o);var Ui=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)Ni(a,l)&&(n[l]=a[l])}}return n},ui=n=>{let o=0;for(let l=0,A=n.length;l<A;l++)o+=n[l].length;const a=new Uint8Array(o);for(let l=0,A=0,p=n.length;l<p;l++){let O=n[l];a.set(O,A),A+=O.length}return a},qi={assign:Ui,flattenChunks:ui};let ya=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(n){ya=!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,A,p,O=n.length,E=0;for(A=0;A<O;A++)a=n.charCodeAt(A),(a&64512)===55296&&A+1<O&&(l=n.charCodeAt(A+1),(l&64512)===56320&&(a=65536+(a-55296<<10)+(l-56320),A++)),E+=a<128?1:a<2048?2:a<65536?3:4;for(o=new Uint8Array(E),p=0,A=0;p<E;A++)a=n.charCodeAt(A),(a&64512)===55296&&A+1<O&&(l=n.charCodeAt(A+1),(l&64512)===56320&&(a=65536+(a-55296<<10)+(l-56320),A++)),a<128?o[p++]=a:a<2048?(o[p++]=192|a>>>6,o[p++]=128|a&63):a<65536?(o[p++]=224|a>>>12,o[p++]=128|a>>>6&63,o[p++]=128|a&63):(o[p++]=240|a>>>18,o[p++]=128|a>>>12&63,o[p++]=128|a>>>6&63,o[p++]=128|a&63);return o};const ni=(n,o)=>{if(o<65534&&n.subarray&&ya)return String.fromCharCode.apply(null,n.length===o?n:n.subarray(0,o));let a="";for(let l=0;l<o;l++)a+=String.fromCharCode(n[l]);return a};var Tn=(n,o)=>{const a=o||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,o));let l,A;const p=new Array(a*2);for(A=0,l=0;l<a;){let O=n[l++];if(O<128){p[A++]=O;continue}let E=Jn[O];if(E>4){p[A++]=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){p[A++]=65533;continue}O<65536?p[A++]=O:(O-=65536,p[A++]=55296|O>>10&1023,p[A++]=56320|O&1023)}return ni(p,A)},ii=(n,o)=>{o=o||n.length,o>n.length&&(o=n.length);let a=o-1;for(;a>=0&&(n[a]&192)===128;)a--;return a<0||a===0?o:a+Jn[n[a]]>o?a:o},Qi={string2buf:mi,buf2string:Tn,utf8border:ii};function Na(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var ha=Na;const Ki=Object.prototype.toString,{Z_NO_FLUSH:Ea,Z_SYNC_FLUSH:Qa,Z_FULL_FLUSH:qo,Z_FINISH:so,Z_OK:gs,Z_STREAM_END:As,Z_DEFAULT_COMPRESSION:pa,Z_DEFAULT_STRATEGY:sl,Z_DEFLATED:po}=ba;function es(n){this.options=qi.assign({level:pa,method:po,chunkSize:16384,windowBits:15,memLevel:8,strategy:sl},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 ha,this.strm.avail_out=0;let a=$n.deflateInit2(this.strm,o.level,o.method,o.windowBits,o.memLevel,o.strategy);if(a!==gs)throw new Error(xa[a]);if(o.header&&$n.deflateSetHeader(this.strm,o.header),o.dictionary){let l;if(typeof o.dictionary=="string"?l=Qi.string2buf(o.dictionary):Ki.call(o.dictionary)==="[object ArrayBuffer]"?l=new Uint8Array(o.dictionary):l=o.dictionary,a=$n.deflateSetDictionary(this.strm,l),a!==gs)throw new Error(xa[a]);this._dict_set=!0}}es.prototype.push=function(n,o){const a=this.strm,l=this.options.chunkSize;let A,p;if(this.ended)return!1;for(o===~~o?p=o:p=o===!0?so:Ea,typeof n=="string"?a.input=Qi.string2buf(n):Ki.call(n)==="[object ArrayBuffer]"?a.input=new Uint8Array(n):a.input=n,a.next_in=0,a.avail_in=a.input.length;;){if(a.avail_out===0&&(a.output=new Uint8Array(l),a.next_out=0,a.avail_out=l),(p===Qa||p===qo)&&a.avail_out<=6){this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;continue}if(A=$n.deflate(a,p),A===As)return a.next_out>0&&this.onData(a.output.subarray(0,a.next_out)),A=$n.deflateEnd(this.strm),this.onEnd(A),this.ended=!0,A===gs;if(a.avail_out===0){this.onData(a.output);continue}if(p>0&&a.next_out>0){this.onData(a.output.subarray(0,a.next_out)),a.avail_out=0;continue}if(a.avail_in===0)break}return!0},es.prototype.onData=function(n){this.chunks.push(n)},es.prototype.onEnd=function(n){n===gs&&(this.result=qi.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function ns(n,o){const a=new es(o);if(a.push(n,!0),a.err)throw a.msg||xa[a.err];return a.result}function xc(n,o){return o=o||{},o.raw=!0,ns(n,o)}function ai(n,o){return o=o||{},o.gzip=!0,ns(n,o)}var Hi=es,Ri=ns,Li=xc,go=ai,ki=ba,la={Deflate:Hi,deflate:Ri,deflateRaw:Li,gzip:go,constants:ki};const ja=16209,$a=16191;var Fl=function(o,a){let l,A,p,O,E,R,V,le,Re,$e,oe,gt,dt,yt,lt,Xt,Qt,It,kr,rn,Pr,ir,Lt,wr;const it=o.state;l=o.next_in,Lt=o.input,A=l+(o.avail_in-5),p=o.next_out,wr=o.output,O=p-(a-o.avail_out),E=p+(o.avail_out-257),R=it.dmax,V=it.wsize,le=it.whave,Re=it.wnext,$e=it.window,oe=it.hold,gt=it.bits,dt=it.lencode,yt=it.distcode,lt=(1<<it.lenbits)-1,Xt=(1<<it.distbits)-1;e:do{gt<15&&(oe+=Lt[l++]<<gt,gt+=8,oe+=Lt[l++]<<gt,gt+=8),Qt=dt[oe<];t:for(;;){if(It=Qt>>>24,oe>>>=It,gt-=It,It=Qt>>>16&255,It===0)wr[p++]=Qt&65535;else if(It&16){kr=Qt&65535,It&=15,It&&(gt<It&&(oe+=Lt[l++]<<gt,gt+=8),kr+=oe&(1<<It)-1,oe>>>=It,gt-=It),gt<15&&(oe+=Lt[l++]<<gt,gt+=8,oe+=Lt[l++]<<gt,gt+=8),Qt=yt[oe&Xt];r:for(;;){if(It=Qt>>>24,oe>>>=It,gt-=It,It=Qt>>>16&255,It&16){if(rn=Qt&65535,It&=15,gt<It&&(oe+=Lt[l++]<<gt,gt+=8,gt<It&&(oe+=Lt[l++]<<gt,gt+=8)),rn+=oe&(1<<It)-1,rn>R){o.msg="invalid distance too far back",it.mode=ja;break e}if(oe>>>=It,gt-=It,It=p-O,rn>It){if(It=rn-It,It>le&&it.sane){o.msg="invalid distance too far back",it.mode=ja;break e}if(Pr=0,ir=$e,Re===0){if(Pr+=V-It,It<kr){kr-=It;do wr[p++]=$e[Pr++];while(--It);Pr=p-rn,ir=wr}}else if(Re<It){if(Pr+=V+Re-It,It-=Re,It<kr){kr-=It;do wr[p++]=$e[Pr++];while(--It);if(Pr=0,Re<kr){It=Re,kr-=It;do wr[p++]=$e[Pr++];while(--It);Pr=p-rn,ir=wr}}}else if(Pr+=Re-It,It<kr){kr-=It;do wr[p++]=$e[Pr++];while(--It);Pr=p-rn,ir=wr}for(;kr>2;)wr[p++]=ir[Pr++],wr[p++]=ir[Pr++],wr[p++]=ir[Pr++],kr-=3;kr&&(wr[p++]=ir[Pr++],kr>1&&(wr[p++]=ir[Pr++]))}else{Pr=p-rn;do wr[p++]=wr[Pr++],wr[p++]=wr[Pr++],wr[p++]=wr[Pr++],kr-=3;while(kr>2);kr&&(wr[p++]=wr[Pr++],kr>1&&(wr[p++]=wr[Pr++]))}}else if(It&64){o.msg="invalid distance code",it.mode=ja;break e}else{Qt=yt[(Qt&65535)+(oe&(1<<It)-1)];continue r}break}}else if(It&64)if(It&32){it.mode=$a;break e}else{o.msg="invalid literal/length code",it.mode=ja;break e}else{Qt=dt[(Qt&65535)+(oe&(1<<It)-1)];continue t}break}}while(l<A&&p<E);kr=gt>>3,l-=kr,gt-=kr<<3,oe&=(1<<gt)-1,o.next_in=l,o.next_out=p,o.avail_in=l<A?5+(A-l):5-(l-A),o.avail_out=p<E?257+(E-p):257-(p-E),it.hold=oe,it.bits=gt};const al=15,Wc=852,Rs=592,Uc=0,Hn=1,uc=2,Du=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),lo=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),pn=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]),ko=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 us=(n,o,a,l,A,p,O,E)=>{const R=E.bits;let V=0,le=0,Re=0,$e=0,oe=0,gt=0,dt=0,yt=0,lt=0,Xt=0,Qt,It,kr,rn,Pr,ir=null,Lt;const wr=new Uint16Array(al+1),it=new Uint16Array(al+1);let Ct=null,tr,$t,Kr;for(V=0;V<=al;V++)wr[V]=0;for(le=0;le<l;le++)wr[o[a+le]]++;for(oe=R,$e=al;$e>=1&&wr[$e]===0;$e--);if(oe>$e&&(oe=$e),$e===0)return A[p++]=1<<24|64<<16|0,A[p++]=1<<24|64<<16|0,E.bits=1,0;for(Re=1;Re<$e&&wr[Re]===0;Re++);for(oe<Re&&(oe=Re),yt=1,V=1;V<=al;V++)if(yt<<=1,yt-=wr[V],yt<0)return-1;if(yt>0&&(n===Uc||$e!==1))return-1;for(it[1]=0,V=1;V<al;V++)it[V+1]=it[V]+wr[V];for(le=0;le<l;le++)o[a+le]!==0&&(O[it[o[a+le]]++]=le);if(n===Uc?(ir=Ct=O,Lt=20):n===Hn?(ir=Du,Ct=lo,Lt=257):(ir=pn,Ct=ko,Lt=0),Xt=0,le=0,V=Re,Pr=p,gt=oe,dt=0,kr=-1,lt=1<<oe,rn=lt-1,n===Hn&<>Wc||n===uc&<>Rs)return 1;for(;;){tr=V-dt,O[le]+1<Lt?($t=0,Kr=O[le]):O[le]>=Lt?($t=Ct[O[le]-Lt],Kr=ir[O[le]-Lt]):($t=96,Kr=0),Qt=1<<V-dt,It=1<<gt,Re=It;do It-=Qt,A[Pr+(Xt>>dt)+It]=tr<<24|$t<<16|Kr|0;while(It!==0);for(Qt=1<<V-1;Xt&Qt;)Qt>>=1;if(Qt!==0?(Xt&=Qt-1,Xt+=Qt):Xt=0,le++,--wr[V]===0){if(V===$e)break;V=o[a+O[le]]}if(V>oe&&(Xt&rn)!==kr){for(dt===0&&(dt=oe),Pr+=Re,gt=V-dt,yt=1<<gt;gt+dt<$e&&(yt-=wr[gt+dt],!(yt<=0));)gt++,yt<<=1;if(lt+=1<<gt,n===Hn&<>Wc||n===uc&<>Rs)return 1;kr=Xt&rn,A[kr]=oe<<24|gt<<16|Pr-p|0}}return Xt!==0&&(A[Pr+Xt]=V-dt<<24|64<<16|0),E.bits=oe,0};const ea=0,Bl=1,Zl=2,{Z_FINISH:Rc,Z_BLOCK:Cc,Z_TREES:Sl,Z_OK:dl,Z_STREAM_END:cu,Z_NEED_DICT:Ml,Z_STREAM_ERROR:Qs,Z_DATA_ERROR:El,Z_MEM_ERROR:ol,Z_BUF_ERROR:Ms,Z_DEFLATED:Bc}=ba,wA=16180,PA=16181,xA=16182,uf=16183,zf=16184,no=16185,Vo=16186,Vl=16187,ds=16188,Ll=16189,Wl=16190,el=16191,CA=16192,df=16193,ff=16194,td=16195,co=16196,Cs=16197,BA=16198,SA=16199,Gl=16200,$f=16201,TA=16202,Zf=16203,Vf=16204,rd=16205,Od=16206,Pd=16207,nd=16208,Hr=16209,Td=16210,hf=16211,Wf=852,pf=592,Bh=15,Gf=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function bl(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Nu=n=>{if(!n)return 1;const o=n.state;return!o||o.strm!==n||o.mode<wA||o.mode>hf?1:0},mf=n=>{if(Nu(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=wA,o.last=0,o.havedict=0,o.flags=-1,o.dmax=32768,o.head=null,o.hold=0,o.bits=0,o.lencode=o.lendyn=new Int32Array(Wf),o.distcode=o.distdyn=new Int32Array(pf),o.sane=1,o.back=-1,dl},id=n=>{if(Nu(n))return Qs;const o=n.state;return o.wsize=0,o.whave=0,o.wnext=0,mf(n)},gf=(n,o)=>{let a;if(Nu(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))},UA=(n,o)=>{if(!n)return Qs;const a=new bl;n.state=a,a.strm=n,a.window=null,a.mode=wA;const l=gf(n,o);return l!==dl&&(n.state=null),l},Au=n=>UA(n,Bh);let fs=!0,Qc,Xl;const Ou=n=>{if(fs){Qc=new Int32Array(512),Xl=new Int32Array(32);let o=0;for(;o<144;)n.lens[o++]=8;for(;o<256;)n.lens[o++]=9;for(;o<280;)n.lens[o++]=7;for(;o<288;)n.lens[o++]=8;for(us(Bl,n.lens,0,288,Qc,0,n.work,{bits:9}),o=0;o<32;)n.lens[o++]=5;us(Zl,n.lens,0,32,Xl,0,n.work,{bits:5}),fs=!1}n.lencode=Qc,n.lenbits=9,n.distcode=Xl,n.distbits=5},Ao=(n,o,a,l)=>{let A;const p=n.state;return p.window===null&&(p.wsize=1<<p.wbits,p.wnext=0,p.whave=0,p.window=new Uint8Array(p.wsize)),l>=p.wsize?(p.window.set(o.subarray(a-p.wsize,a),0),p.wnext=0,p.whave=p.wsize):(A=p.wsize-p.wnext,A>l&&(A=l),p.window.set(o.subarray(a-l,a-l+A),p.wnext),l-=A,l?(p.window.set(o.subarray(a-l,a),0),p.wnext=l,p.whave=p.wsize):(p.wnext+=A,p.wnext===p.wsize&&(p.wnext=0),p.whave<p.wsize&&(p.whave+=A))),0},vo=(n,o)=>{let a,l,A,p,O,E,R,V,le,Re,$e,oe,gt,dt,yt=0,lt,Xt,Qt,It,kr,rn,Pr,ir;const Lt=new Uint8Array(4);let wr,it;const Ct=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Nu(n)||!n.output||!n.input&&n.avail_in!==0)return Qs;a=n.state,a.mode===el&&(a.mode=CA),O=n.next_out,A=n.output,R=n.avail_out,p=n.next_in,l=n.input,E=n.avail_in,V=a.hold,le=a.bits,Re=E,$e=R,ir=dl;e:for(;;)switch(a.mode){case wA:if(a.wrap===0){a.mode=CA;break}for(;le<16;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}if(a.wrap&2&&V===35615){a.wbits===0&&(a.wbits=15),a.check=0,Lt[0]=V&255,Lt[1]=V>>>8&255,a.check=cs(a.check,Lt,2,0),V=0,le=0,a.mode=PA;break}if(a.head&&(a.head.done=!1),!(a.wrap&1)||(((V&255)<<8)+(V>>8))%31){n.msg="incorrect header check",a.mode=Hr;break}if((V&15)!==Bc){n.msg="unknown compression method",a.mode=Hr;break}if(V>>>=4,le-=4,Pr=(V&15)+8,a.wbits===0&&(a.wbits=Pr),Pr>15||Pr>a.wbits){n.msg="invalid window size",a.mode=Hr;break}a.dmax=1<<a.wbits,a.flags=0,n.adler=a.check=1,a.mode=V&512?Ll:el,V=0,le=0;break;case PA:for(;le<16;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}if(a.flags=V,(a.flags&255)!==Bc){n.msg="unknown compression method",a.mode=Hr;break}if(a.flags&57344){n.msg="unknown header flags set",a.mode=Hr;break}a.head&&(a.head.text=V>>8&1),a.flags&512&&a.wrap&4&&(Lt[0]=V&255,Lt[1]=V>>>8&255,a.check=cs(a.check,Lt,2,0)),V=0,le=0,a.mode=xA;case xA:for(;le<32;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}a.head&&(a.head.time=V),a.flags&512&&a.wrap&4&&(Lt[0]=V&255,Lt[1]=V>>>8&255,Lt[2]=V>>>16&255,Lt[3]=V>>>24&255,a.check=cs(a.check,Lt,4,0)),V=0,le=0,a.mode=uf;case uf:for(;le<16;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}a.head&&(a.head.xflags=V&255,a.head.os=V>>8),a.flags&512&&a.wrap&4&&(Lt[0]=V&255,Lt[1]=V>>>8&255,a.check=cs(a.check,Lt,2,0)),V=0,le=0,a.mode=zf;case zf:if(a.flags&1024){for(;le<16;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}a.length=V,a.head&&(a.head.extra_len=V),a.flags&512&&a.wrap&4&&(Lt[0]=V&255,Lt[1]=V>>>8&255,a.check=cs(a.check,Lt,2,0)),V=0,le=0}else a.head&&(a.head.extra=null);a.mode=no;case no:if(a.flags&1024&&(oe=a.length,oe>E&&(oe=E),oe&&(a.head&&(Pr=a.head.extra_len-a.length,a.head.extra||(a.head.extra=new Uint8Array(a.head.extra_len)),a.head.extra.set(l.subarray(p,p+oe),Pr)),a.flags&512&&a.wrap&4&&(a.check=cs(a.check,l,oe,p)),E-=oe,p+=oe,a.length-=oe),a.length))break e;a.length=0,a.mode=Vo;case Vo:if(a.flags&2048){if(E===0)break e;oe=0;do Pr=l[p+oe++],a.head&&Pr&&a.length<65536&&(a.head.name+=String.fromCharCode(Pr));while(Pr&&oe<E);if(a.flags&512&&a.wrap&4&&(a.check=cs(a.check,l,oe,p)),E-=oe,p+=oe,Pr)break e}else a.head&&(a.head.name=null);a.length=0,a.mode=Vl;case Vl:if(a.flags&4096){if(E===0)break e;oe=0;do Pr=l[p+oe++],a.head&&Pr&&a.length<65536&&(a.head.comment+=String.fromCharCode(Pr));while(Pr&&oe<E);if(a.flags&512&&a.wrap&4&&(a.check=cs(a.check,l,oe,p)),E-=oe,p+=oe,Pr)break e}else a.head&&(a.head.comment=null);a.mode=ds;case ds:if(a.flags&512){for(;le<16;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}if(a.wrap&4&&V!==(a.check&65535)){n.msg="header crc mismatch",a.mode=Hr;break}V=0,le=0}a.head&&(a.head.hcrc=a.flags>>9&1,a.head.done=!0),n.adler=a.check=0,a.mode=el;break;case Ll:for(;le<32;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}n.adler=a.check=Gf(V),V=0,le=0,a.mode=Wl;case Wl:if(a.havedict===0)return n.next_out=O,n.avail_out=R,n.next_in=p,n.avail_in=E,a.hold=V,a.bits=le,Ml;n.adler=a.check=1,a.mode=el;case el:if(o===Cc||o===Sl)break e;case CA:if(a.last){V>>>=le&7,le-=le&7,a.mode=Od;break}for(;le<3;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}switch(a.last=V&1,V>>>=1,le-=1,V&3){case 0:a.mode=df;break;case 1:if(Ou(a),a.mode=SA,o===Sl){V>>>=2,le-=2;break e}break;case 2:a.mode=co;break;case 3:n.msg="invalid block type",a.mode=Hr}V>>>=2,le-=2;break;case df:for(V>>>=le&7,le-=le&7;le<32;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}if((V&65535)!==(V>>>16^65535)){n.msg="invalid stored block lengths",a.mode=Hr;break}if(a.length=V&65535,V=0,le=0,a.mode=ff,o===Sl)break e;case ff:a.mode=td;case td:if(oe=a.length,oe){if(oe>E&&(oe=E),oe>R&&(oe=R),oe===0)break e;A.set(l.subarray(p,p+oe),O),E-=oe,p+=oe,R-=oe,O+=oe,a.length-=oe;break}a.mode=el;break;case co:for(;le<14;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}if(a.nlen=(V&31)+257,V>>>=5,le-=5,a.ndist=(V&31)+1,V>>>=5,le-=5,a.ncode=(V&15)+4,V>>>=4,le-=4,a.nlen>286||a.ndist>30){n.msg="too many length or distance symbols",a.mode=Hr;break}a.have=0,a.mode=Cs;case Cs:for(;a.have<a.ncode;){for(;le<3;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}a.lens[Ct[a.have++]]=V&7,V>>>=3,le-=3}for(;a.have<19;)a.lens[Ct[a.have++]]=0;if(a.lencode=a.lendyn,a.lenbits=7,wr={bits:a.lenbits},ir=us(ea,a.lens,0,19,a.lencode,0,a.work,wr),a.lenbits=wr.bits,ir){n.msg="invalid code lengths set",a.mode=Hr;break}a.have=0,a.mode=BA;case BA:for(;a.have<a.nlen+a.ndist;){for(;yt=a.lencode[V&(1<<a.lenbits)-1],lt=yt>>>24,Xt=yt>>>16&255,Qt=yt&65535,!(lt<=le);){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}if(Qt<16)V>>>=lt,le-=lt,a.lens[a.have++]=Qt;else{if(Qt===16){for(it=lt+2;le<it;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}if(V>>>=lt,le-=lt,a.have===0){n.msg="invalid bit length repeat",a.mode=Hr;break}Pr=a.lens[a.have-1],oe=3+(V&3),V>>>=2,le-=2}else if(Qt===17){for(it=lt+3;le<it;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}V>>>=lt,le-=lt,Pr=0,oe=3+(V&7),V>>>=3,le-=3}else{for(it=lt+7;le<it;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}V>>>=lt,le-=lt,Pr=0,oe=11+(V&127),V>>>=7,le-=7}if(a.have+oe>a.nlen+a.ndist){n.msg="invalid bit length repeat",a.mode=Hr;break}for(;oe--;)a.lens[a.have++]=Pr}}if(a.mode===Hr)break;if(a.lens[256]===0){n.msg="invalid code -- missing end-of-block",a.mode=Hr;break}if(a.lenbits=9,wr={bits:a.lenbits},ir=us(Bl,a.lens,0,a.nlen,a.lencode,0,a.work,wr),a.lenbits=wr.bits,ir){n.msg="invalid literal/lengths set",a.mode=Hr;break}if(a.distbits=6,a.distcode=a.distdyn,wr={bits:a.distbits},ir=us(Zl,a.lens,a.nlen,a.ndist,a.distcode,0,a.work,wr),a.distbits=wr.bits,ir){n.msg="invalid distances set",a.mode=Hr;break}if(a.mode=SA,o===Sl)break e;case SA:a.mode=Gl;case Gl:if(E>=6&&R>=258){n.next_out=O,n.avail_out=R,n.next_in=p,n.avail_in=E,a.hold=V,a.bits=le,Fl(n,$e),O=n.next_out,A=n.output,R=n.avail_out,p=n.next_in,l=n.input,E=n.avail_in,V=a.hold,le=a.bits,a.mode===el&&(a.back=-1);break}for(a.back=0;yt=a.lencode[V&(1<<a.lenbits)-1],lt=yt>>>24,Xt=yt>>>16&255,Qt=yt&65535,!(lt<=le);){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}if(Xt&&!(Xt&240)){for(It=lt,kr=Xt,rn=Qt;yt=a.lencode[rn+((V&(1<<It+kr)-1)>>It)],lt=yt>>>24,Xt=yt>>>16&255,Qt=yt&65535,!(It+lt<=le);){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}V>>>=It,le-=It,a.back+=It}if(V>>>=lt,le-=lt,a.back+=lt,a.length=Qt,Xt===0){a.mode=rd;break}if(Xt&32){a.back=-1,a.mode=el;break}if(Xt&64){n.msg="invalid literal/length code",a.mode=Hr;break}a.extra=Xt&15,a.mode=$f;case $f:if(a.extra){for(it=a.extra;le<it;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}a.length+=V&(1<<a.extra)-1,V>>>=a.extra,le-=a.extra,a.back+=a.extra}a.was=a.length,a.mode=TA;case TA:for(;yt=a.distcode[V&(1<<a.distbits)-1],lt=yt>>>24,Xt=yt>>>16&255,Qt=yt&65535,!(lt<=le);){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}if(!(Xt&240)){for(It=lt,kr=Xt,rn=Qt;yt=a.distcode[rn+((V&(1<<It+kr)-1)>>It)],lt=yt>>>24,Xt=yt>>>16&255,Qt=yt&65535,!(It+lt<=le);){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}V>>>=It,le-=It,a.back+=It}if(V>>>=lt,le-=lt,a.back+=lt,Xt&64){n.msg="invalid distance code",a.mode=Hr;break}a.offset=Qt,a.extra=Xt&15,a.mode=Zf;case Zf:if(a.extra){for(it=a.extra;le<it;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}a.offset+=V&(1<<a.extra)-1,V>>>=a.extra,le-=a.extra,a.back+=a.extra}if(a.offset>a.dmax){n.msg="invalid distance too far back",a.mode=Hr;break}a.mode=Vf;case Vf:if(R===0)break e;if(oe=$e-R,a.offset>oe){if(oe=a.offset-oe,oe>a.whave&&a.sane){n.msg="invalid distance too far back",a.mode=Hr;break}oe>a.wnext?(oe-=a.wnext,gt=a.wsize-oe):gt=a.wnext-oe,oe>a.length&&(oe=a.length),dt=a.window}else dt=A,gt=O-a.offset,oe=a.length;oe>R&&(oe=R),R-=oe,a.length-=oe;do A[O++]=dt[gt++];while(--oe);a.length===0&&(a.mode=Gl);break;case rd:if(R===0)break e;A[O++]=a.length,R--,a.mode=Gl;break;case Od:if(a.wrap){for(;le<32;){if(E===0)break e;E--,V|=l[p++]<<le,le+=8}if($e-=R,n.total_out+=$e,a.total+=$e,a.wrap&4&&$e&&(n.adler=a.check=a.flags?cs(a.check,A,$e,O-$e):to(a.check,A,$e,O-$e)),$e=R,a.wrap&4&&(a.flags?V:Gf(V))!==a.check){n.msg="incorrect data check",a.mode=Hr;break}V=0,le=0}a.mode=Pd;case Pd:if(a.wrap&&a.flags){for(;le<32;){if(E===0)break e;E--,V+=l[p++]<<le,le+=8}if(a.wrap&4&&V!==(a.total&4294967295)){n.msg="incorrect length check",a.mode=Hr;break}V=0,le=0}a.mode=nd;case nd:ir=cu;break e;case Hr:ir=El;break e;case Td:return ol;case hf:default:return Qs}return n.next_out=O,n.avail_out=R,n.next_in=p,n.avail_in=E,a.hold=V,a.bits=le,(a.wsize||$e!==n.avail_out&&a.mode<Hr&&(a.mode<Od||o!==Rc))&&Ao(n,n.output,n.next_out,$e-n.avail_out),Re-=n.avail_in,$e-=n.avail_out,n.total_in+=Re,n.total_out+=$e,a.total+=$e,a.wrap&4&&$e&&(n.adler=a.check=a.flags?cs(a.check,A,$e,n.next_out-$e):to(a.check,A,$e,n.next_out-$e)),n.data_type=a.bits+(a.last?64:0)+(a.mode===el?128:0)+(a.mode===SA||a.mode===ff?256:0),(Re===0&&$e===0||o===Rc)&&ir===dl&&(ir=Ms),ir},tA=n=>{if(Nu(n))return Qs;let o=n.state;return o.window&&(o.window=null),n.state=null,dl},uu=(n,o)=>{if(Nu(n))return Qs;const a=n.state;return a.wrap&2?(a.head=o,o.done=!1,dl):Qs},XA=(n,o)=>{const a=o.length;let l,A,p;return Nu(n)||(l=n.state,l.wrap!==0&&l.mode!==Wl)?Qs:l.mode===Wl&&(A=1,A=to(A,o,a,0),A!==l.check)?El:(p=Ao(n,o,a,a),p?(l.mode=Td,ol):(l.havedict=1,dl))};var y0=id,kl=gf,EA=mf,Sh=Au,Xf=UA,w0=vo,Eo=tA,vf=uu,Ud=XA,Jf="pako inflate (from Nodeca project)",Tr={inflateReset:y0,inflateReset2:kl,inflateResetKeep:EA,inflateInit:Sh,inflateInit2:Xf,inflate:w0,inflateEnd:Eo,inflateGetHeader:vf,inflateSetDictionary:Ud,inflateInfo:Jf};function _m(){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 Im=_m;const x0=Object.prototype.toString,{Z_NO_FLUSH:C0,Z_FINISH:Rd,Z_OK:Eh,Z_STREAM_END:B0,Z_NEED_DICT:Jl,Z_STREAM_ERROR:ad,Z_DATA_ERROR:Yf,Z_MEM_ERROR:_h}=ba;function Ih(n){this.options=qi.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 ha,this.strm.avail_out=0;let a=Tr.inflateInit2(this.strm,o.windowBits);if(a!==Eh)throw new Error(xa[a]);if(this.header=new Im,Tr.inflateGetHeader(this.strm,this.header),o.dictionary&&(typeof o.dictionary=="string"?o.dictionary=Qi.string2buf(o.dictionary):x0.call(o.dictionary)==="[object ArrayBuffer]"&&(o.dictionary=new Uint8Array(o.dictionary)),o.raw&&(a=Tr.inflateSetDictionary(this.strm,o.dictionary),a!==Eh)))throw new Error(xa[a])}Ih.prototype.push=function(n,o){const a=this.strm,l=this.options.chunkSize,A=this.options.dictionary;let p,O,E;if(this.ended)return!1;for(o===~~o?O=o:O=o===!0?Rd:C0,x0.call(n)==="[object ArrayBuffer]"?a.input=new Uint8Array(n):a.input=n,a.next_in=0,a.avail_in=a.input.length;;){for(a.avail_out===0&&(a.output=new Uint8Array(l),a.next_out=0,a.avail_out=l),p=Tr.inflate(a,O),p===Jl&&A&&(p=Tr.inflateSetDictionary(a,A),p===Eh?p=Tr.inflate(a,O):p===Yf&&(p=Jl));a.avail_in>0&&p===B0&&a.state.wrap>0&&n[a.next_in]!==0;)Tr.inflateReset(a),p=Tr.inflate(a,O);switch(p){case ad:case Yf:case Jl:case _h:return this.onEnd(p),this.ended=!0,!1}if(E=a.avail_out,a.next_out&&(a.avail_out===0||p===B0))if(this.options.to==="string"){let R=Qi.utf8border(a.output,a.next_out),V=a.next_out-R,le=Qi.buf2string(a.output,R);a.next_out=V,a.avail_out=l-V,V&&a.output.set(a.output.subarray(R,R+V),0),this.onData(le)}else this.onData(a.output.length===a.next_out?a.output:a.output.subarray(0,a.next_out));if(!(p===Eh&&E===0)){if(p===B0)return p=Tr.inflateEnd(this.strm),this.onEnd(p),this.ended=!0,!0;if(a.avail_in===0)break}}return!0},Ih.prototype.onData=function(n){this.chunks.push(n)},Ih.prototype.onEnd=function(n){n===Eh&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=qi.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function qf(n,o){const a=new Ih(o);if(a.push(n),a.err)throw a.msg||xa[a.err];return a.result}function S0(n,o){return o=o||{},o.raw=!0,qf(n,o)}var dp=Ih,E0=qf,rA=S0,Qd=qf,bf=ba,_0={Inflate:dp,inflate:E0,inflateRaw:rA,ungzip:Qd,constants:bf};const{Deflate:eh,deflate:Fm,deflateRaw:Mm,gzip:Lm}=la,{Inflate:km,inflate:fp,inflateRaw:Ls,ungzip:Zp}=_0;var Vp=eh,od=Fm,Wp=Mm,th=Lm,hp=km,rh=fp,Fh=Ls,nh=Zp,Gp=ba,Dm={Deflate:Vp,deflate:od,deflateRaw:Wp,gzip:th,Inflate:hp,inflate:rh,inflateRaw:Fh,ungzip:nh,constants:Gp};const Mh=[];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;Mh[n]=o}const I0=4294967295;function Nm(n,o,a){let l=n;for(let A=0;A<a;A++)l=Mh[(l^o[A])&255]^l>>>8;return l}function Xp(n,o){return(Nm(I0,n,o)^I0)>>>0}function yf(n,o,a){const l=n.readUint32(),A=Xp(new Uint8Array(n.buffer,n.byteOffset+n.offset-o-4,o),o);if(A!==l)throw new Error(`CRC mismatch for chunk ${a}. Expected ${l}, found ${A}`)}function Om(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 Kd(n,o,a,l){let A=0;for(;A<l;A++)o[A]=n[A];for(;A<a;A++)o[A]=n[A]+o[A-l]&255}function wf(n,o,a,l){let A=0;if(a.length===0)for(;A<l;A++)o[A]=n[A];else for(;A<l;A++)o[A]=n[A]+a[A]&255}function sd(n,o,a,l,A){let p=0;if(a.length===0){for(;p<A;p++)o[p]=n[p];for(;p<l;p++)o[p]=n[p]+(o[p-A]>>1)&255}else{for(;p<A;p++)o[p]=n[p]+(a[p]>>1)&255;for(;p<l;p++)o[p]=n[p]+(o[p-A]+a[p]>>1)&255}}function Gc(n,o,a,l,A){let p=0;if(a.length===0){for(;p<A;p++)o[p]=n[p];for(;p<l;p++)o[p]=n[p]+o[p-A]&255}else{for(;p<A;p++)o[p]=n[p]+a[p]&255;for(;p<l;p++)o[p]=n[p]+du(o[p-A],a[p],a[p-A])&255}}function du(n,o,a){const l=n+o-a,A=Math.abs(l-n),p=Math.abs(l-o),O=Math.abs(l-a);return A<=p&&A<=O?n:p<=O?o:a}function _A(n,o,a,l,A,p){switch(n){case 0:Dl(o,a,A);break;case 1:Kd(o,a,A,p);break;case 2:wf(o,a,l,A);break;case 3:sd(o,a,l,A,p);break;case 4:Gc(o,a,l,A,p);break;default:throw new Error(`Unsupported filter: ${n}`)}}const Pu=new Uint16Array([255]),cd=new Uint8Array(Pu.buffer)[0]===255;function ih(n){const{data:o,width:a,height:l,channels:A,depth:p}=n,O=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],E=Math.ceil(p/8)*A,R=new Uint8Array(l*a*E);let V=0;for(let le=0;le<7;le++){const Re=O[le],$e=Math.ceil((a-Re.x)/Re.xStep),oe=Math.ceil((l-Re.y)/Re.yStep);if($e<=0||oe<=0)continue;const gt=$e*E,dt=new Uint8Array(gt);for(let yt=0;yt<oe;yt++){const lt=o[V++],Xt=o.subarray(V,V+gt);V+=gt;const Qt=new Uint8Array(gt);_A(lt,Xt,Qt,dt,gt,E),dt.set(Qt);for(let It=0;It<$e;It++){const kr=Re.x+It*Re.xStep,rn=Re.y+yt*Re.yStep;if(!(kr>=a||rn>=l))for(let Pr=0;Pr<E;Pr++)R[(rn*a+kr)*E+Pr]=Qt[It*E+Pr]}}}if(p===16){const le=new Uint16Array(R.buffer);if(cd)for(let Re=0;Re<le.length;Re++)le[Re]=Hd(le[Re]);return le}else return R}function Hd(n){return(n&255)<<8|n>>8&255}const Lh=new Uint16Array([255]),kh=new Uint8Array(Lh.buffer)[0]===255,Jp=new Uint8Array(0);function pp(n){const{data:o,width:a,height:l,channels:A,depth:p}=n,O=Math.ceil(p/8)*A,E=Math.ceil(p/8*A*a),R=new Uint8Array(l*E);let V=Jp,le=0,Re,$e;for(let oe=0;oe<l;oe++){switch(Re=o.subarray(le+1,le+1+E),$e=R.subarray(oe*E,(oe+1)*E),o[le]){case 0:Dl(Re,$e,E);break;case 1:Kd(Re,$e,E,O);break;case 2:wf(Re,$e,V,E);break;case 3:sd(Re,$e,V,E,O);break;case 4:Gc(Re,$e,V,E,O);break;default:throw new Error(`Unsupported filter: ${o[le]}`)}V=$e,le+=E+1}if(p===16){const oe=new Uint16Array(R.buffer);if(kh)for(let gt=0;gt<oe.length;gt++)oe[gt]=Yp(oe[gt]);return oe}else return R}function Yp(n){return(n&255)<<8|n>>8&255}const Dh=Uint8Array.of(137,80,78,71,13,10,26,10);function Pm(n){n.writeBytes(Dh)}function M0(n){if(!Tm(n.readBytes(Dh.length)))throw new Error("wrong PNG signature")}function Tm(n){if(n.length<Dh.length)return!1;for(let o=0;o<Dh.length;o++)if(n[o]!==Dh[o])return!1;return!0}const qp="tEXt",em=0,tm=new TextDecoder("latin1");function rm(n){if(xf(n),n.length===0||n.length>79)throw new Error("keyword length must be between 1 and 79")}const mp=/^[\u0000-\u00FF]*$/;function xf(n){if(!mp.test(n))throw new Error("invalid latin1 text")}function ah(n,o,a){const l=Tu(o);n[l]=gp(o,a-l.length-1)}function oh(n,o,a){rm(o),xf(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 Tu(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 gp(n,o){return tm.decode(n.readBytes(o))}const IA={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},L0={UNKNOWN:-1,DEFLATE:0},nm={UNKNOWN:-1,ADAPTIVE:0},vp={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Nh={NONE:0,BACKGROUND:1,PREVIOUS:2},Oh={SOURCE:0,OVER:1};class Um extends Di{constructor(a,l={}){super(a);Vs(this,"_checkCrc");Vs(this,"_inflator");Vs(this,"_png");Vs(this,"_apng");Vs(this,"_end");Vs(this,"_hasPalette");Vs(this,"_palette");Vs(this,"_hasTransparency");Vs(this,"_transparency");Vs(this,"_compressionMethod");Vs(this,"_filterMethod");Vs(this,"_interlaceMethod");Vs(this,"_colorType");Vs(this,"_isAnimated");Vs(this,"_numberOfFrames");Vs(this,"_numberOfPlays");Vs(this,"_frames");Vs(this,"_writingDataChunks");const{checkCrc:A=!1}=l;this._checkCrc=A,this._inflator=new hp,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=L0.UNKNOWN,this._filterMethod=nm.UNKNOWN,this._interlaceMethod=vp.UNKNOWN,this._colorType=IA.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(M0(this);!this._end;){const a=this.readUint32(),l=this.readChars(4);this.decodeChunk(a,l)}return this.decodeImage(),this._png}decodeApng(){for(M0(this);!this._end;){const a=this.readUint32(),l=this.readChars(4);this.decodeApngChunk(a,l)}return this.decodeApngImage(),this._apng}decodeChunk(a,l){const A=this.offset;switch(l){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(a);break;case"IDAT":this.decodeIDAT(a);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(a);break;case"iCCP":this.decodeiCCP(a);break;case qp:ah(this._png.text,this,a);break;case"pHYs":this.decodepHYs();break;default:this.skip(a);break}if(this.offset-A!==a)throw new Error(`Length mismatch while decoding chunk ${l}`);this._checkCrc?yf(this,a+4,l):this.skip(4)}decodeApngChunk(a,l){const A=this.offset;switch(l!=="fdAT"&&l!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),l){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(a);break;default:this.decodeChunk(a,l),this.offset=A+a;break}if(this.offset-A!==a)throw new Error(`Length mismatch while decoding chunk ${l}`);this._checkCrc?yf(this,a+4,l):this.skip(4)}decodeIHDR(){const a=this._png;a.width=this.readUint32(),a.height=this.readUint32(),a.depth=bp(this.readUint8());const l=this.readUint8();this._colorType=l;let A;switch(l){case IA.GREYSCALE:A=1;break;case IA.TRUECOLOUR:A=3;break;case IA.INDEXED_COLOUR:A=1;break;case IA.GREYSCALE_ALPHA:A=2;break;case IA.TRUECOLOUR_ALPHA:A=4;break;case IA.UNKNOWN:default:throw new Error(`Unknown color type: ${l}`)}if(this._png.channels=A,this._compressionMethod=this.readUint8(),this._compressionMethod!==L0.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const a={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(a)}decodePLTE(a){if(a%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${a}`);const l=a/3;this._hasPalette=!0;const A=[];this._palette=A;for(let p=0;p<l;p++)A.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(a){this._writingDataChunks=!0;const l=a,A=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,A,l)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(a)}decodeFDAT(a){this._writingDataChunks=!0;let l=a,A=this.offset+this.byteOffset;if(A+=4,l-=4,this._inflator.push(new Uint8Array(this.buffer,A,l)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(a)}decodetRNS(a){switch(this._colorType){case IA.GREYSCALE:case IA.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 IA.INDEXED_COLOUR:{if(a>this._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${a} vs ${this._palette.length})`);let l=0;for(;l<a;l++){const A=this.readByte();this._palette[l].push(A)}for(;l<this._palette.length;l++)this._palette[l].push(255);break}case IA.UNKNOWN:case IA.GREYSCALE_ALPHA:case IA.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(a){const l=Tu(this),A=this.readUint8();if(A!==L0.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${A}`);const p=this.readBytes(a-l.length-2);this._png.iccEmbeddedProfile={name:l,profile:rh(p)}}decodepHYs(){const a=this.readUint32(),l=this.readUint32(),A=this.readByte();this._png.resolution={x:a,y:l,unit:A}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let a=0;a<this._numberOfFrames;a++){const l={sequenceNumber:this._frames[a].sequenceNumber,delayNumber:this._frames[a].delayNumber,delayDenominator:this._frames[a].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},A=this._frames.at(a);if(A){if(A.data=pp({data:A.data,width:A.width,height:A.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),a===0||A.xOffset===0&&A.yOffset===0&&A.width===this._png.width&&A.height===this._png.height)l.data=A.data;else{const p=this._apng.frames.at(a-1);this.disposeFrame(A,p,l),this.addFrameDataToCanvas(l,A)}this._apng.frames.push(l)}}return this._apng}disposeFrame(a,l,A){switch(a.disposeOp){case Nh.NONE:break;case Nh.BACKGROUND:for(let p=0;p<this._png.height;p++)for(let O=0;O<this._png.width;O++){const E=(p*a.width+O)*this._png.channels;for(let R=0;R<this._png.channels;R++)A.data[E+R]=0}break;case Nh.PREVIOUS:A.data.set(l.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(a,l){const A=1<<this._png.depth,p=(O,E)=>{const R=((O+l.yOffset)*this._png.width+l.xOffset+E)*this._png.channels,V=(O*l.width+E)*this._png.channels;return{index:R,frameIndex:V}};switch(l.blendOp){case Oh.SOURCE:for(let O=0;O<l.height;O++)for(let E=0;E<l.width;E++){const{index:R,frameIndex:V}=p(O,E);for(let le=0;le<this._png.channels;le++)a.data[R+le]=l.data[V+le]}break;case Oh.OVER:for(let O=0;O<l.height;O++)for(let E=0;E<l.width;E++){const{index:R,frameIndex:V}=p(O,E);for(let le=0;le<this._png.channels;le++){const Re=l.data[V+this._png.channels-1]/A,$e=le%(this._png.channels-1)===0?1:l.data[V+le],oe=Math.floor(Re*$e+(1-Re)*a.data[R+le]);a.data[R+le]+=oe}}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===vp.NO_INTERLACE)this._png.data=pp({data:a,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===vp.ADAM7)this._png.data=ih({data:a,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const a=this._inflator.result,l=this._frames.at(-1);l?l.data=a:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Nh.NONE,blendOp:Oh.SOURCE,data:a}),this._inflator=new hp,this._writingDataChunks=!1}}function bp(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 Ii extends null{constructor(a,l={}){var A;super();Vs(this,"_png");Vs(this,"_zlibOptions");Vs(this,"_colorType");Vs(this,"_interlaceMethod");this._colorType=ColorType.UNKNOWN,this._zlibOptions=b1(b1({},hs),l.zlib),this._png=this._checkData(a),this._interlaceMethod=(A=l.interlace==="Adam7"?InterlaceMethod.ADAM7:InterlaceMethod.NO_INTERLACE)!=null?A:InterlaceMethod.NO_INTERLACE,this.setBigEndian()}encode(){if(writeSignature(this),this.encodeIHDR(),this._png.palette&&(this.encodePLTE(),this._png.palette[0].length===4&&this.encodeTRNS()),this.encodeData(),this._png.text)for(const[a,l]of Object.entries(this._png.text))encodetEXt(this,a,l);return this.encodeIEND(),this.toArray()}encodeIHDR(){this.writeUint32(13),this.writeChars("IHDR"),this.writeUint32(this._png.width),this.writeUint32(this._png.height),this.writeByte(this._png.depth),this.writeByte(this._colorType),this.writeByte(CompressionMethod.DEFLATE),this.writeByte(FilterMethod.ADAPTIVE),this.writeByte(this._interlaceMethod),writeCrc(this,17)}encodeIEND(){this.writeUint32(0),this.writeChars("IEND"),writeCrc(this,4)}encodePLTE(){var l;const a=((l=this._png.palette)==null?void 0:l.length)*3;this.writeUint32(a),this.writeChars("PLTE");for(const A of this._png.palette)this.writeByte(A[0]),this.writeByte(A[1]),this.writeByte(A[2]);writeCrc(this,4+a)}encodeTRNS(){const a=this._png.palette.filter(l=>l.at(-1)!==255);this.writeUint32(a.length),this.writeChars("tRNS");for(const l of a)this.writeByte(l.at(-1));writeCrc(this,4+a.length)}encodeIDAT(a){this.writeUint32(a.length),this.writeChars("IDAT"),this.writeBytes(a),writeCrc(this,a.length+4)}encodeData(){const{width:a,height:l,channels:A,depth:p,data:O}=this._png,E=p<=8?Math.ceil(a*p/8)*A:Math.ceil(a*p/8*A/2),R=new IOBuffer().setBigEndian();let V=0;if(this._interlaceMethod===InterlaceMethod.NO_INTERLACE)for(let $e=0;$e<l;$e++)R.writeByte(0),p===16?V=Wo(O,R,E,V):V=dc(O,R,E,V);else this._interlaceMethod===InterlaceMethod.ADAM7&&(V=im(this._png,O,R,V));const le=R.toArray(),Re=deflate(le,this._zlibOptions);this.encodeIDAT(Re)}_checkData(a){const{colorType:l,channels:A,depth:p}=k0(a,a.palette),O={width:Uu(a.width,"width"),height:Uu(a.height,"height"),channels:A,data:a.data,depth:p,text:a.text,palette:a.palette};this._colorType=l;const E=p<8?Math.ceil(O.width*p/8)*O.height*A:O.width*O.height*A;if(O.data.length!==E)throw new RangeError(`wrong data size. Found ${O.data.length}, expected ${E}`);return O}}function Uu(n,o){if(Number.isInteger(n)&&n>0)return n;throw new TypeError(`${o} must be a positive integer`)}function k0(n,o){const{channels:a=4,depth:l=8}=n;if(a!==4&&a!==3&&a!==2&&a!==1)throw new RangeError(`unsupported number of channels: ${a}`);const A={channels:a,depth:l,colorType:ColorType.UNKNOWN};switch(a){case 4:A.colorType=ColorType.TRUECOLOUR_ALPHA;break;case 3:A.colorType=ColorType.TRUECOLOUR;break;case 1:o?A.colorType=ColorType.INDEXED_COLOUR:A.colorType=ColorType.GREYSCALE;break;case 2:A.colorType=ColorType.GREYSCALE_ALPHA;break;default:throw new Error("unsupported number of channels")}return A}function dc(n,o,a,l){for(let A=0;A<a;A++)o.writeByte(n[l++]);return l}function im(n,o,a,l){const A=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],{width:p,height:O,channels:E,depth:R}=n;let V=0;R===16?V=E*R/8/2:V=E*R/8;for(let le=0;le<7;le++){const Re=A[le],$e=Math.floor((p-Re.x+Re.xStep-1)/Re.xStep),oe=Math.floor((O-Re.y+Re.yStep-1)/Re.yStep);if($e<=0||oe<=0)continue;const gt=$e*V;for(let dt=0;dt<oe;dt++){const yt=Re.y+dt*Re.yStep,lt=R<=8?new Uint8Array(gt):new Uint16Array(gt);let Xt=0;for(let Qt=0;Qt<$e;Qt++){const It=Re.x+Qt*Re.xStep;if(It<p&&yt<O){const kr=(yt*p+It)*V;for(let rn=0;rn<V;rn++)lt[Xt++]=o[kr+rn]}}if(a.writeByte(0),R===8)a.writeBytes(lt);else if(R===16)for(const Qt of lt)a.writeByte(Qt>>8&255),a.writeByte(Qt&255)}}return l}function Wo(n,o,a,l){for(let A=0;A<a;A++)o.writeUint16(n[l++]);return l}var ll;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.METRE=1]="METRE"})(ll||(ll={}));function tl(n,o){return new Um(n,o).decode()}function Rm(n,o){return new PngEncoder(n,o).encode()}function D0(n,o){return new PngDecoder(n,o).decodeApng()}var Za=function(){return typeof window!="undefined"?window:typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:this}();function Cf(){Za.console&&typeof Za.console.log=="function"&&Za.console.log.apply(Za.console,arguments)}var ks={log:Cf,warn:function(n){Za.console&&(typeof Za.console.warn=="function"?Za.console.warn.apply(Za.console,arguments):Cf.call(null,arguments))},error:function(n){Za.console&&(typeof Za.console.error=="function"?Za.console.error.apply(Za.console,arguments):Cf(n))}};function jd(n,o,a){var l=new XMLHttpRequest;l.open("GET",n),l.responseType="blob",l.onload=function(){Ad(l.response,o,a)},l.onerror=function(){ks.error("could not download file")},l.send()}function N0(n){var o=new XMLHttpRequest;o.open("HEAD",n,!1);try{o.send()}catch(a){}return o.status>=200&&o.status<=299}function fc(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 Ad=Za.saveAs||((typeof window=="undefined"?"undefined":(0,ve.Z)(window))!=="object"||window!==Za?function(){}:typeof HTMLAnchorElement!="undefined"&&"download"in HTMLAnchorElement.prototype?function(n,o,a){var l=Za.URL||Za.webkitURL,A=document.createElement("a");o=o||n.name||"download",A.download=o,A.rel="noopener",typeof n=="string"?(A.href=n,A.origin!==location.origin?N0(A.href)?jd(n,o,a):fc(A,A.target="_blank"):fc(A)):(A.href=l.createObjectURL(n),setTimeout(function(){l.revokeObjectURL(A.href)},4e4),setTimeout(function(){fc(A)},0))}:"msSaveOrOpenBlob"in navigator?function(n,o,a){if(o=o||n.name||"download",typeof n=="string")if(N0(n))jd(n,o,a);else{var l=document.createElement("a");l.href=n,l.target="_blank",setTimeout(function(){fc(l)})}else navigator.msSaveOrOpenBlob(function(A,p){return p===void 0?p={autoBom:!1}:(0,ve.Z)(p)!=="object"&&(ks.warn("Deprecated: Expected third argument to be a object"),p={autoBom:!p}),p.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(A.type)?new Blob(["\uFEFF",A],{type:A.type}):A}(n,a),o)}:function(n,o,a,l){if((l=l||open("","_blank"))&&(l.document.title=l.document.body.innerText="downloading..."),typeof n=="string")return jd(n,o,a);var A=n.type==="application/octet-stream",p=/constructor/i.test(Za.HTMLElement)||Za.safari,O=/CriOS\/[\d]+/.test(navigator.userAgent);if((O||A&&p)&&(typeof FileReader=="undefined"?"undefined":(0,ve.Z)(FileReader))==="object"){var E=new FileReader;E.onloadend=function(){var le=E.result;le=O?le:le.replace(/^data:[^;]*;/,"data:attachment/file;"),l?l.location.href=le:location=le,l=null},E.readAsDataURL(n)}else{var R=Za.URL||Za.webkitURL,V=R.createObjectURL(n);l?l.location=V:location.href=V,l=null,setTimeout(function(){R.revokeObjectURL(V)},4e4)}});function yp(n){var o;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var a=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(E){return[parseInt(E[1]),parseInt(E[2]),parseInt(E[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(E){return[parseInt(E[1],16),parseInt(E[2],16),parseInt(E[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(E){return[parseInt(E[1]+E[1],16),parseInt(E[2]+E[2],16),parseInt(E[3]+E[3],16)]}}],l=0;l<a.length;l++){var A=a[l].re,p=a[l].process,O=A.exec(n);O&&(o=p(O),this.r=o[0],this.g=o[1],this.b=o[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var E=this.r.toString(16),R=this.g.toString(16),V=this.b.toString(16);return E.length==1&&(E="0"+E),R.length==1&&(R="0"+R),V.length==1&&(V="0"+V),"#"+E+R+V}}var vn=Za.atob.bind(Za),Ks=Za.btoa.bind(Za);function O0(n,o){var a=n[0],l=n[1],A=n[2],p=n[3];a=Kc(a,l,A,p,o[0],7,-680876936),p=Kc(p,a,l,A,o[1],12,-389564586),A=Kc(A,p,a,l,o[2],17,606105819),l=Kc(l,A,p,a,o[3],22,-1044525330),a=Kc(a,l,A,p,o[4],7,-176418897),p=Kc(p,a,l,A,o[5],12,1200080426),A=Kc(A,p,a,l,o[6],17,-1473231341),l=Kc(l,A,p,a,o[7],22,-45705983),a=Kc(a,l,A,p,o[8],7,1770035416),p=Kc(p,a,l,A,o[9],12,-1958414417),A=Kc(A,p,a,l,o[10],17,-42063),l=Kc(l,A,p,a,o[11],22,-1990404162),a=Kc(a,l,A,p,o[12],7,1804603682),p=Kc(p,a,l,A,o[13],12,-40341101),A=Kc(A,p,a,l,o[14],17,-1502002290),a=Sc(a,l=Kc(l,A,p,a,o[15],22,1236535329),A,p,o[1],5,-165796510),p=Sc(p,a,l,A,o[6],9,-1069501632),A=Sc(A,p,a,l,o[11],14,643717713),l=Sc(l,A,p,a,o[0],20,-373897302),a=Sc(a,l,A,p,o[5],5,-701558691),p=Sc(p,a,l,A,o[10],9,38016083),A=Sc(A,p,a,l,o[15],14,-660478335),l=Sc(l,A,p,a,o[4],20,-405537848),a=Sc(a,l,A,p,o[9],5,568446438),p=Sc(p,a,l,A,o[14],9,-1019803690),A=Sc(A,p,a,l,o[3],14,-187363961),l=Sc(l,A,p,a,o[8],20,1163531501),a=Sc(a,l,A,p,o[13],5,-1444681467),p=Sc(p,a,l,A,o[2],9,-51403784),A=Sc(A,p,a,l,o[7],14,1735328473),a=oc(a,l=Sc(l,A,p,a,o[12],20,-1926607734),A,p,o[5],4,-378558),p=oc(p,a,l,A,o[8],11,-2022574463),A=oc(A,p,a,l,o[11],16,1839030562),l=oc(l,A,p,a,o[14],23,-35309556),a=oc(a,l,A,p,o[1],4,-1530992060),p=oc(p,a,l,A,o[4],11,1272893353),A=oc(A,p,a,l,o[7],16,-155497632),l=oc(l,A,p,a,o[10],23,-1094730640),a=oc(a,l,A,p,o[13],4,681279174),p=oc(p,a,l,A,o[0],11,-358537222),A=oc(A,p,a,l,o[3],16,-722521979),l=oc(l,A,p,a,o[6],23,76029189),a=oc(a,l,A,p,o[9],4,-640364487),p=oc(p,a,l,A,o[12],11,-421815835),A=oc(A,p,a,l,o[15],16,530742520),a=hc(a,l=oc(l,A,p,a,o[2],23,-995338651),A,p,o[0],6,-198630844),p=hc(p,a,l,A,o[7],10,1126891415),A=hc(A,p,a,l,o[14],15,-1416354905),l=hc(l,A,p,a,o[5],21,-57434055),a=hc(a,l,A,p,o[12],6,1700485571),p=hc(p,a,l,A,o[3],10,-1894986606),A=hc(A,p,a,l,o[10],15,-1051523),l=hc(l,A,p,a,o[1],21,-2054922799),a=hc(a,l,A,p,o[8],6,1873313359),p=hc(p,a,l,A,o[15],10,-30611744),A=hc(A,p,a,l,o[6],15,-1560198380),l=hc(l,A,p,a,o[13],21,1309151649),a=hc(a,l,A,p,o[4],6,-145523070),p=hc(p,a,l,A,o[11],10,-1120210379),A=hc(A,p,a,l,o[2],15,718787259),l=hc(l,A,p,a,o[9],21,-343485551),n[0]=Xc(a,n[0]),n[1]=Xc(l,n[1]),n[2]=Xc(A,n[2]),n[3]=Xc(p,n[3])}function P0(n,o,a,l,A,p){return o=Xc(Xc(o,n),Xc(l,p)),Xc(o<<A|o>>>32-A,a)}function Kc(n,o,a,l,A,p,O){return P0(o&a|~o&l,n,o,A,p,O)}function Sc(n,o,a,l,A,p,O){return P0(o&l|a&~l,n,o,A,p,O)}function oc(n,o,a,l,A,p,O){return P0(o^a^l,n,o,A,p,O)}function hc(n,o,a,l,A,p,O){return P0(a^(o|~l),n,o,A,p,O)}function am(n){var o,a=n.length,l=[1732584193,-271733879,-1732584194,271733878];for(o=64;o<=n.length;o+=64)O0(l,T0(n.substring(o-64,o)));n=n.substring(o-64);var A=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(o=0;o<n.length;o++)A[o>>2]|=n.charCodeAt(o)<<(o%4<<3);if(A[o>>2]|=128<<(o%4<<3),o>55)for(O0(l,A),o=0;o<16;o++)A[o]=0;return A[14]=8*a,O0(l,A),l}function T0(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 FA="0123456789abcdef".split("");function Bf(n){for(var o="",a=0;a<4;a++)o+=FA[n>>8*a+4&15]+FA[n>>8*a&15];return o}function Nl(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function Sf(n){return am(n).map(Nl).join("")}var wp=function(n){for(var o=0;o<n.length;o++)n[o]=Bf(n[o]);return n.join("")}(am("hello"))!="5d41402abc4b2a76b9719d911017c592";function Xc(n,o){if(wp){var a=(65535&n)+(65535&o);return(n>>16)+(o>>16)+(a>>16)<<16|65535&a}return n+o&4294967295}function pc(n,o){var a,l,A,p;if(n!==a){for(var O=(A=n,p=1+(256/n.length|0),new Array(p+1).join(A)),E=[],R=0;R<256;R++)E[R]=R;var V=0;for(R=0;R<256;R++){var le=E[R];V=(V+le+O.charCodeAt(R))%256,E[R]=E[V],E[V]=le}a=n,l=E}else E=l;var Re=o.length,$e=0,oe=0,gt="";for(R=0;R<Re;R++)oe=(oe+(le=E[$e=($e+1)%256]))%256,E[$e]=E[oe],E[oe]=le,O=E[(E[$e]+E[oe])%256],gt+=String.fromCharCode(o.charCodeAt(R)^O);return gt}var Ph={print:4,modify:8,copy:16,"annot-forms":32};function Ru(n,o,a,l){this.v=1,this.r=2;var A=192;n.forEach(function(E){if(Ph.perm!==void 0)throw new Error("Invalid permission: "+E);A+=Ph[E]}),this.padding="(\xBFN^Nu\x8AAd\0NV\xFF\xFA\b..\0\xB6\xD0h>\x80/\f\xA9\xFEdSiz";var p=(o+this.padding).substr(0,32),O=(a+this.padding).substr(0,32);this.O=this.processOwnerPassword(p,O),this.P=-(1+(255^A)),this.encryptionKey=Sf(p+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(l)).substr(0,5),this.U=pc(this.encryptionKey,this.padding)}function nA(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var o="",a=n.length,l=0;l<a;l++){var A=n.charCodeAt(l);o+=A<33||A===35||A===37||A===40||A===41||A===47||A===60||A===62||A===91||A===93||A===123||A===125||A>126?"#"+("0"+A.toString(16)).slice(-2):n[l]}return o}function xp(n){if((0,ve.Z)(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var o={};this.subscribe=function(a,l,A){if(A=A||!1,typeof a!="string"||typeof l!="function"||typeof A!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");o.hasOwnProperty(a)||(o[a]={});var p=Math.random().toString(35);return o[a][p]=[l,!!A],p},this.unsubscribe=function(a){for(var l in o)if(o[l][a])return delete o[l][a],Object.keys(o[l]).length===0&&delete o[l],!0;return!1},this.publish=function(a){if(o.hasOwnProperty(a)){var l=Array.prototype.slice.call(arguments,1),A=[];for(var p in o[a]){var O=o[a][p];try{O[0].apply(n,l)}catch(E){Za.console&&ks.error("jsPDF PubSub Error",E.message,E)}O[1]&&A.push(p)}A.length&&A.forEach(this.unsubscribe)}},this.getTopics=function(){return o}}function Th(n){if(!(this instanceof Th))return new Th(n);var o="opacity,stroke-opacity".split(",");for(var a in n)n.hasOwnProperty(a)&&o.indexOf(a)>=0&&(this[a]=n[a]);this.id="",this.objectNumber=-1}function sh(n,o){this.gState=n,this.matrix=o,this.id="",this.objectNumber=-1}function zd(n,o,a,l,A){if(!(this instanceof zd))return new zd(n,o,a,l,A);this.type=n==="axial"?2:3,this.coords=o,this.colors=a,sh.call(this,l,A)}function $d(n,o,a,l,A){if(!(this instanceof $d))return new $d(n,o,a,l,A);this.boundingBox=n,this.xStep=o,this.yStep=a,this.stream="",this.cloneIndex=0,sh.call(this,l,A)}function Aa(n){var o,a=typeof arguments[0]=="string"?arguments[0]:"p",l=arguments[1],A=arguments[2],p=arguments[3],O=[],E=1,R=16,V="S",le=null;(0,ve.Z)(n=n||{})==="object"&&(a=n.orientation,l=n.unit||l,A=n.format||A,p=n.compress||n.compressPdf||p,(le=n.encryption||null)!==null&&(le.userPassword=le.userPassword||"",le.ownerPassword=le.ownerPassword||"",le.userPermissions=le.userPermissions||[]),E=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(o=n.precision),n.floatPrecision!==void 0&&(R=n.floatPrecision),V=n.defaultPathOperation||"S"),O=n.filters||(p===!0?["FlateEncode"]:O),l=l||"mm",a=(""+(a||"P")).toLowerCase();var Re=n.putOnlyUsedFonts||!1,$e={},oe={internal:{},__private__:{}};oe.__private__.PubSub=xp;var gt="1.3",dt=oe.__private__.getPdfVersion=function(){return gt};oe.__private__.setPdfVersion=function(Z){gt=Z};var yt={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]};oe.__private__.getPageFormats=function(){return yt};var lt=oe.__private__.getPageFormat=function(Z){return yt[Z]};A=A||"a4";var Xt="compat",Qt="advanced",It=Xt;function kr(){this.saveGraphicsState(),Ft(new Ka(ro,0,0,-ro,0,tu()*ro).toString()+" cm"),this.setFontSize(this.getFontSize()/ro),V="n",It=Qt}function rn(){this.restoreGraphicsState(),V="S",It=Xt}var Pr=oe.__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};oe.advancedAPI=function(Z){var He=It===Xt;return He&&kr.call(this),typeof Z!="function"||(Z(this),He&&rn.call(this)),this},oe.compatAPI=function(Z){var He=It===Qt;return He&&rn.call(this),typeof Z!="function"||(Z(this),He&&kr.call(this)),this},oe.isAdvancedAPI=function(){return It===Qt};var ir,Lt=function(Z){if(It!==Qt)throw new Error(Z+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},wr=oe.roundToPrecision=oe.__private__.roundToPrecision=function(Z,He){var Bt=o||He;if(isNaN(Z)||isNaN(Bt))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return Z.toFixed(Bt).replace(/0+$/,"")};ir=oe.hpf=oe.__private__.hpf=typeof R=="number"?function(Z){if(isNaN(Z))throw new Error("Invalid argument passed to jsPDF.hpf");return wr(Z,R)}:R==="smart"?function(Z){if(isNaN(Z))throw new Error("Invalid argument passed to jsPDF.hpf");return wr(Z,Z>-1&&Z<1?16:5)}:function(Z){if(isNaN(Z))throw new Error("Invalid argument passed to jsPDF.hpf");return wr(Z,16)};var it=oe.f2=oe.__private__.f2=function(Z){if(isNaN(Z))throw new Error("Invalid argument passed to jsPDF.f2");return wr(Z,2)},Ct=oe.__private__.f3=function(Z){if(isNaN(Z))throw new Error("Invalid argument passed to jsPDF.f3");return wr(Z,3)},tr=oe.scale=oe.__private__.scale=function(Z){if(isNaN(Z))throw new Error("Invalid argument passed to jsPDF.scale");return It===Xt?Z*ro:It===Qt?Z:void 0},$t=function(Z){return tr(function(He){return It===Xt?tu()-He:It===Qt?He:void 0}(Z))};oe.__private__.setPrecision=oe.setPrecision=function(Z){typeof parseInt(Z,10)=="number"&&(o=parseInt(Z,10))};var Kr,Zr="00000000000000000000000000000000",tn=oe.__private__.getFileId=function(){return Zr},Mr=oe.__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(""),le!==null&&(mc=new Ru(le.userPermissions,le.userPassword,le.ownerPassword,Zr)),Zr};oe.setFileId=function(Z){return Mr(Z),this},oe.getFileId=function(){return tn()};var Vr=oe.__private__.convertDateToPDFDate=function(Z){var He=Z.getTimezoneOffset(),Bt=He<0?"+":"-",Wt=Math.floor(Math.abs(He/60)),gr=Math.abs(He%60),mn=[Bt,Nt(Wt),"'",Nt(gr),"'"].join("");return["D:",Z.getFullYear(),Nt(Z.getMonth()+1),Nt(Z.getDate()),Nt(Z.getHours()),Nt(Z.getMinutes()),Nt(Z.getSeconds()),mn].join("")},Zn=oe.__private__.convertPDFDateToDate=function(Z){var He=parseInt(Z.substr(2,4),10),Bt=parseInt(Z.substr(6,2),10)-1,Wt=parseInt(Z.substr(8,2),10),gr=parseInt(Z.substr(10,2),10),mn=parseInt(Z.substr(12,2),10),Bn=parseInt(Z.substr(14,2),10);return new Date(He,Bt,Wt,gr,mn,Bn,0)},In=oe.__private__.setCreationDate=function(Z){var He;if(Z===void 0&&(Z=new Date),Z instanceof Date)He=Vr(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 Kr=He},tt=oe.__private__.getCreationDate=function(Z){var He=Kr;return Z==="jsDate"&&(He=Zn(Kr)),He};oe.setCreationDate=function(Z){return In(Z),this},oe.getCreationDate=function(Z){return tt(Z)};var Et,Nt=oe.__private__.padd2=function(Z){return("0"+parseInt(Z)).slice(-2)},er=oe.__private__.padd2Hex=function(Z){return("00"+(Z=Z.toString())).substr(Z.length)},dr=0,Br=[],Gr=[],Ur=0,wn=[],zn=[],hi=!1,Si=Gr;oe.__private__.setCustomOutputDestination=function(Z){hi=!0,Si=Z};var sn=function(Z){hi||(Si=Z)};oe.__private__.resetCustomOutputDestination=function(){hi=!1,Si=Gr};var Ft=oe.__private__.out=function(Z){return Z=Z.toString(),Ur+=Z.length+1,Si.push(Z),Si},Go=oe.__private__.write=function(Z){return Ft(arguments.length===1?Z.toString():Array.prototype.join.call(arguments," "))},_o=oe.__private__.getArrayBuffer=function(Z){for(var He=Z.length,Bt=new ArrayBuffer(He),Wt=new Uint8Array(Bt);He--;)Wt[He]=Z.charCodeAt(He);return Bt},Ta=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];oe.__private__.getStandardFonts=function(){return Ta};var Gn=n.fontSize||16;oe.__private__.setFontSize=oe.setFontSize=function(Z){return Gn=It===Qt?Z/ro:Z,this};var wa,ci=oe.__private__.getFontSize=oe.getFontSize=function(){return It===Xt?Gn:Gn*ro},Ja=n.R2L||!1;oe.__private__.setR2L=oe.setR2L=function(Z){return Ja=Z,this},oe.__private__.getR2L=oe.getR2L=function(){return Ja};var Fa,ts=oe.__private__.setZoomMode=function(Z){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(Z))wa=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.');wa=Z}else wa=parseInt(Z,10)};oe.__private__.getZoomMode=function(){return wa};var yo,Wa=oe.__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.');Fa=Z};oe.__private__.getPageMode=function(){return Fa};var Hs=oe.__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.');yo=Z};oe.__private__.getLayoutMode=function(){return yo},oe.__private__.setDisplayMode=oe.setDisplayMode=function(Z,He,Bt){return ts(Z),Hs(He),Wa(Bt),this};var uo={title:"",subject:"",author:"",keywords:"",creator:""};oe.__private__.getDocumentProperty=function(Z){if(Object.keys(uo).indexOf(Z)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return uo[Z]},oe.__private__.getDocumentProperties=function(){return uo},oe.__private__.setDocumentProperties=oe.setProperties=oe.setDocumentProperties=function(Z){for(var He in uo)uo.hasOwnProperty(He)&&Z[He]&&(uo[He]=Z[He]);return this},oe.__private__.setDocumentProperty=function(Z,He){if(Object.keys(uo).indexOf(Z)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return uo[Z]=He};var Ca,ro,Ba,yl,Ds,ma={},wo={},fl=[],La={},is={},xo={},ql={},Ol=null,as=0,Ya=[],js=new xp(oe),Hh=n.hotfixes||[],jc={},_f={},Wd=[],Ka=function Z(He,Bt,Wt,gr,mn,Bn){if(!(this instanceof Z))return new Z(He,Bt,Wt,gr,mn,Bn);isNaN(He)&&(He=1),isNaN(Bt)&&(Bt=0),isNaN(Wt)&&(Wt=0),isNaN(gr)&&(gr=1),isNaN(mn)&&(mn=0),isNaN(Bn)&&(Bn=0),this._matrix=[He,Bt,Wt,gr,mn,Bn]};Object.defineProperty(Ka.prototype,"sx",{get:function(){return this._matrix[0]},set:function(Z){this._matrix[0]=Z}}),Object.defineProperty(Ka.prototype,"shy",{get:function(){return this._matrix[1]},set:function(Z){this._matrix[1]=Z}}),Object.defineProperty(Ka.prototype,"shx",{get:function(){return this._matrix[2]},set:function(Z){this._matrix[2]=Z}}),Object.defineProperty(Ka.prototype,"sy",{get:function(){return this._matrix[3]},set:function(Z){this._matrix[3]=Z}}),Object.defineProperty(Ka.prototype,"tx",{get:function(){return this._matrix[4]},set:function(Z){this._matrix[4]=Z}}),Object.defineProperty(Ka.prototype,"ty",{get:function(){return this._matrix[5]},set:function(Z){this._matrix[5]=Z}}),Object.defineProperty(Ka.prototype,"a",{get:function(){return this._matrix[0]},set:function(Z){this._matrix[0]=Z}}),Object.defineProperty(Ka.prototype,"b",{get:function(){return this._matrix[1]},set:function(Z){this._matrix[1]=Z}}),Object.defineProperty(Ka.prototype,"c",{get:function(){return this._matrix[2]},set:function(Z){this._matrix[2]=Z}}),Object.defineProperty(Ka.prototype,"d",{get:function(){return this._matrix[3]},set:function(Z){this._matrix[3]=Z}}),Object.defineProperty(Ka.prototype,"e",{get:function(){return this._matrix[4]},set:function(Z){this._matrix[4]=Z}}),Object.defineProperty(Ka.prototype,"f",{get:function(){return this._matrix[5]},set:function(Z){this._matrix[5]=Z}}),Object.defineProperty(Ka.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ka.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ka.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ka.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ka.prototype.join=function(Z){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(ir).join(Z)},Ka.prototype.multiply=function(Z){var He=Z.sx*this.sx+Z.shy*this.shx,Bt=Z.sx*this.shy+Z.shy*this.sy,Wt=Z.shx*this.sx+Z.sy*this.shx,gr=Z.shx*this.shy+Z.sy*this.sy,mn=Z.tx*this.sx+Z.ty*this.shx+this.tx,Bn=Z.tx*this.shy+Z.ty*this.sy+this.ty;return new Ka(He,Bt,Wt,gr,mn,Bn)},Ka.prototype.decompose=function(){var Z=this.sx,He=this.shy,Bt=this.shx,Wt=this.sy,gr=this.tx,mn=this.ty,Bn=Math.sqrt(Z*Z+He*He),na=(Z/=Bn)*Bt+(He/=Bn)*Wt;Bt-=Z*na,Wt-=He*na;var fa=Math.sqrt(Bt*Bt+Wt*Wt);return na/=fa,Z*(Wt/=fa)<He*(Bt/=fa)&&(Z=-Z,He=-He,na=-na,Bn=-Bn),{scale:new Ka(Bn,0,0,fa,0,0),translate:new Ka(1,0,0,1,gr,mn),rotate:new Ka(Z,He,-He,Z,0,0),skew:new Ka(1,0,na,1,0,0)}},Ka.prototype.toString=function(Z){return this.join(" ")},Ka.prototype.inversed=function(){var Z=this.sx,He=this.shy,Bt=this.shx,Wt=this.sy,gr=this.tx,mn=this.ty,Bn=1/(Z*Wt-He*Bt),na=Wt*Bn,fa=-He*Bn,qa=-Bt*Bn,Co=Z*Bn;return new Ka(na,fa,qa,Co,-na*gr-qa*mn,-fa*gr-Co*mn)},Ka.prototype.applyToPoint=function(Z){var He=Z.x*this.sx+Z.y*this.shx+this.tx,Bt=Z.x*this.shy+Z.y*this.sy+this.ty;return new e0(He,Bt)},Ka.prototype.applyToRectangle=function(Z){var He=this.applyToPoint(Z),Bt=this.applyToPoint(new e0(Z.x+Z.w,Z.y+Z.h));return new qd(He.x,He.y,Bt.x-He.x,Bt.y-He.y)},Ka.prototype.clone=function(){var Z=this.sx,He=this.shy,Bt=this.shx,Wt=this.sy,gr=this.tx,mn=this.ty;return new Ka(Z,He,Bt,Wt,gr,mn)},oe.Matrix=Ka;var If=oe.matrixMult=function(Z,He){return He.multiply(Z)},Ff=new Ka(1,0,0,1,0,0);oe.unitMatrix=oe.identityMatrix=Ff;var bu=function(Z,He){if(!is[Z]){var Bt=(He instanceof zd?"Sh":"P")+(Object.keys(La).length+1).toString(10);He.id=Bt,is[Z]=Bt,La[Bt]=He,js.publish("addPattern",He)}};oe.ShadingPattern=zd,oe.TilingPattern=$d,oe.addShadingPattern=function(Z,He){return Lt("addShadingPattern()"),bu(Z,He),this},oe.beginTilingPattern=function(Z){Lt("beginTilingPattern()"),t0(Z.boundingBox[0],Z.boundingBox[1],Z.boundingBox[2]-Z.boundingBox[0],Z.boundingBox[3]-Z.boundingBox[1],Z.matrix)},oe.endTilingPattern=function(Z,He){Lt("endTilingPattern()"),He.stream=zn[Et].join(`
|
|
|
`),bu(Z,He),js.publish("endTilingPattern",He),Wd.pop().restore()};var yu,sc=oe.__private__.newObject=function(){var Z=Bs();return hl(Z,!0),Z},Bs=oe.__private__.newObjectDeferred=function(){return dr++,Br[dr]=function(){return Ur},dr},hl=function(Z,He){return He=typeof He=="boolean"&&He,Br[Z]=Ur,He&&Ft(Z+" 0 obj"),Z},Gd=oe.__private__.newAdditionalObject=function(){var Z={objId:Bs(),content:""};return wn.push(Z),Z},Xd=Bs(),Hu=Bs(),wu=oe.__private__.decodeColorString=function(Z){var He=Z.split(" ");if(He.length!==2||He[1]!=="g"&&He[1]!=="G")He.length!==5||He[4]!=="k"&&He[4]!=="K"||(He=[(1-He[0])*(1-He[3]),(1-He[1])*(1-He[3]),(1-He[2])*(1-He[3]),"r"]);else{var Bt=parseFloat(He[0]);He=[Bt,Bt,Bt,"r"]}for(var Wt="#",gr=0;gr<3;gr++)Wt+=("0"+Math.floor(255*parseFloat(He[gr])).toString(16)).slice(-2);return Wt},sA=oe.__private__.encodeColorString=function(Z){var He;typeof Z=="string"&&(Z={ch1:Z});var Bt=Z.ch1,Wt=Z.ch2,gr=Z.ch3,mn=Z.ch4,Bn=Z.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof Bt=="string"&&Bt.charAt(0)!=="#"){var na=new yp(Bt);if(na.ok)Bt=na.toHex();else if(!/^\d*\.?\d*$/.test(Bt))throw new Error('Invalid color "'+Bt+'" passed to jsPDF.encodeColorString.')}if(typeof Bt=="string"&&/^#[0-9A-Fa-f]{3}$/.test(Bt)&&(Bt="#"+Bt[1]+Bt[1]+Bt[2]+Bt[2]+Bt[3]+Bt[3]),typeof Bt=="string"&&/^#[0-9A-Fa-f]{6}$/.test(Bt)){var fa=parseInt(Bt.substr(1),16);Bt=fa>>16&255,Wt=fa>>8&255,gr=255&fa}if(Wt===void 0||mn===void 0&&Bt===Wt&&Wt===gr)He=typeof Bt=="string"?Bt+" "+Bn[0]:Z.precision===2?it(Bt/255)+" "+Bn[0]:Ct(Bt/255)+" "+Bn[0];else if(mn===void 0||(0,ve.Z)(mn)==="object"){if(mn&&!isNaN(mn.a)&&mn.a===0)return["1.","1.","1.",Bn[1]].join(" ");He=typeof Bt=="string"?[Bt,Wt,gr,Bn[1]].join(" "):Z.precision===2?[it(Bt/255),it(Wt/255),it(gr/255),Bn[1]].join(" "):[Ct(Bt/255),Ct(Wt/255),Ct(gr/255),Bn[1]].join(" ")}else He=typeof Bt=="string"?[Bt,Wt,gr,mn,Bn[2]].join(" "):Z.precision===2?[it(Bt),it(Wt),it(gr),it(mn),Bn[2]].join(" "):[Ct(Bt),Ct(Wt),Ct(gr),Ct(mn),Bn[2]].join(" ");return He},xu=oe.__private__.getFilters=function(){return O},ju=oe.__private__.putStream=function(Z){var He=(Z=Z||{}).data||"",Bt=Z.filters||xu(),Wt=Z.alreadyAppliedFilters||[],gr=Z.addLength1||!1,mn=He.length,Bn=Z.objectId,na=function(Ga){return Ga};if(le!==null&&Bn===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");le!==null&&(na=mc.encryptor(Bn,0));var fa={};Bt===!0&&(Bt=["FlateEncode"]);var qa=Z.additionalKeyValues||[],Co=(fa=Aa.API.processDataByFilters!==void 0?Aa.API.processDataByFilters(He,Bt):{data:He,reverseChain:[]}).reverseChain+(Array.isArray(Wt)?Wt.join(" "):Wt.toString());if(fa.data.length!==0&&(qa.push({key:"Length",value:fa.data.length}),gr===!0&&qa.push({key:"Length1",value:mn})),Co.length!=0)if(Co.split("/").length-1==1)qa.push({key:"Filter",value:Co});else{qa.push({key:"Filter",value:"["+Co+"]"});for(var Ns=0;Ns<qa.length;Ns+=1)if(qa[Ns].key==="DecodeParms"){for(var Tl=[],tc=0;tc<fa.reverseChain.split("/").length-1;tc+=1)Tl.push("null");Tl.push(qa[Ns].value),qa[Ns].value="["+Tl.join(" ")+"]"}}Ft("<<");for(var zs=0;zs<qa.length;zs++)Ft("/"+qa[zs].key+" "+qa[zs].value);Ft(">>"),fa.data.length!==0&&(Ft("stream"),Ft(na(fa.data)),Ft("endstream"))},jh=oe.__private__.putPage=function(Z){var He=Z.number,Bt=Z.data,Wt=Z.objId,gr=Z.contentsObjId;hl(Wt,!0),Ft("<</Type /Page"),Ft("/Parent "+Z.rootDictionaryObjId+" 0 R"),Ft("/Resources "+Z.resourceDictionaryObjId+" 0 R"),Ft("/MediaBox ["+parseFloat(ir(Z.mediaBox.bottomLeftX))+" "+parseFloat(ir(Z.mediaBox.bottomLeftY))+" "+ir(Z.mediaBox.topRightX)+" "+ir(Z.mediaBox.topRightY)+"]"),Z.cropBox!==null&&Ft("/CropBox ["+ir(Z.cropBox.bottomLeftX)+" "+ir(Z.cropBox.bottomLeftY)+" "+ir(Z.cropBox.topRightX)+" "+ir(Z.cropBox.topRightY)+"]"),Z.bleedBox!==null&&Ft("/BleedBox ["+ir(Z.bleedBox.bottomLeftX)+" "+ir(Z.bleedBox.bottomLeftY)+" "+ir(Z.bleedBox.topRightX)+" "+ir(Z.bleedBox.topRightY)+"]"),Z.trimBox!==null&&Ft("/TrimBox ["+ir(Z.trimBox.bottomLeftX)+" "+ir(Z.trimBox.bottomLeftY)+" "+ir(Z.trimBox.topRightX)+" "+ir(Z.trimBox.topRightY)+"]"),Z.artBox!==null&&Ft("/ArtBox ["+ir(Z.artBox.bottomLeftX)+" "+ir(Z.artBox.bottomLeftY)+" "+ir(Z.artBox.topRightX)+" "+ir(Z.artBox.topRightY)+"]"),typeof Z.userUnit=="number"&&Z.userUnit!==1&&Ft("/UserUnit "+Z.userUnit),js.publish("putPage",{objId:Wt,pageContext:Ya[He],pageNumber:He,page:Bt}),Ft("/Contents "+gr+" 0 R"),Ft(">>"),Ft("endobj");var mn=Bt.join(`
|
|
|
`);return It===Qt&&(mn+=`
|
|
|
Q`),hl(gr,!0),ju({data:mn,filters:xu(),objectId:gr}),Ft("endobj"),Wt},Jd=oe.__private__.putPages=function(){var Z,He,Bt=[];for(Z=1;Z<=as;Z++)Ya[Z].objId=Bs(),Ya[Z].contentsObjId=Bs();for(Z=1;Z<=as;Z++)Bt.push(jh({number:Z,data:zn[Z],objId:Ya[Z].objId,contentsObjId:Ya[Z].contentsObjId,mediaBox:Ya[Z].mediaBox,cropBox:Ya[Z].cropBox,bleedBox:Ya[Z].bleedBox,trimBox:Ya[Z].trimBox,artBox:Ya[Z].artBox,userUnit:Ya[Z].userUnit,rootDictionaryObjId:Xd,resourceDictionaryObjId:Hu}));hl(Xd,!0),Ft("<</Type /Pages");var Wt="/Kids [";for(He=0;He<as;He++)Wt+=Bt[He]+" 0 R ";Ft(Wt+"]"),Ft("/Count "+as),Ft(">>"),Ft("endobj"),js.publish("postPutPages")},zh=function(Z){js.publish("putFont",{font:Z,out:Ft,newObject:sc,putStream:ju}),Z.isAlreadyPutted!==!0&&(Z.objectNumber=sc(),Ft("<<"),Ft("/Type /Font"),Ft("/BaseFont /"+nA(Z.postScriptName)),Ft("/Subtype /Type1"),typeof Z.encoding=="string"&&Ft("/Encoding /"+Z.encoding),Ft("/FirstChar 32"),Ft("/LastChar 255"),Ft(">>"),Ft("endobj"))},$h=function(Z){Z.objectNumber=sc();var He=[];He.push({key:"Type",value:"/XObject"}),He.push({key:"Subtype",value:"/Form"}),He.push({key:"BBox",value:"["+[ir(Z.x),ir(Z.y),ir(Z.x+Z.width),ir(Z.y+Z.height)].join(" ")+"]"}),He.push({key:"Matrix",value:"["+Z.matrix.toString()+"]"});var Bt=Z.pages[1].join(`
|
|
|
`);ju({data:Bt,additionalKeyValues:He,objectId:Z.objectNumber}),Ft("endobj")},Q0=function(Z,He){He||(He=21);var Bt=sc(),Wt=function(Bn,na){var fa,qa=[],Co=1/(na-1);for(fa=0;fa<1;fa+=Co)qa.push(fa);if(qa.push(1),Bn[0].offset!=0){var Ns={offset:0,color:Bn[0].color};Bn.unshift(Ns)}if(Bn[Bn.length-1].offset!=1){var Tl={offset:1,color:Bn[Bn.length-1].color};Bn.push(Tl)}for(var tc="",zs=0,Ga=0;Ga<qa.length;Ga++){for(fa=qa[Ga];fa>Bn[zs+1].offset;)zs++;var Ic=Bn[zs].offset,AA=(fa-Ic)/(Bn[zs+1].offset-Ic),kf=Bn[zs].color,kA=Bn[zs+1].color;tc+=er(Math.round((1-AA)*kf[0]+AA*kA[0]).toString(16))+er(Math.round((1-AA)*kf[1]+AA*kA[1]).toString(16))+er(Math.round((1-AA)*kf[2]+AA*kA[2]).toString(16))}return tc.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]"}),ju({data:Wt,additionalKeyValues:gr,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:Bt}),Ft("endobj"),Z.objectNumber=sc(),Ft("<< /ShadingType "+Z.type),Ft("/ColorSpace /DeviceRGB");var mn="/Coords ["+ir(parseFloat(Z.coords[0]))+" "+ir(parseFloat(Z.coords[1]))+" ";Z.type===2?mn+=ir(parseFloat(Z.coords[2]))+" "+ir(parseFloat(Z.coords[3])):mn+=ir(parseFloat(Z.coords[2]))+" "+ir(parseFloat(Z.coords[3]))+" "+ir(parseFloat(Z.coords[4]))+" "+ir(parseFloat(Z.coords[5])),Ft(mn+="]"),Z.matrix&&Ft("/Matrix ["+Z.matrix.toString()+"]"),Ft("/Function "+Bt+" 0 R"),Ft("/Extend [true true]"),Ft(">>"),Ft("endobj")},Zh=function(Z,He){var Bt=Bs(),Wt=sc();He.push({resourcesOid:Bt,objectOid:Wt}),Z.objectNumber=Wt;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(ir).join(" ")+"]"}),gr.push({key:"XStep",value:ir(Z.xStep)}),gr.push({key:"YStep",value:ir(Z.yStep)}),gr.push({key:"Resources",value:Bt+" 0 R"}),Z.matrix&&gr.push({key:"Matrix",value:"["+Z.matrix.toString()+"]"}),ju({data:Z.stream,additionalKeyValues:gr,objectId:Z.objectNumber}),Ft("endobj")},Ep=function(Z){for(var He in Z.objectNumber=sc(),Ft("<<"),Z)switch(He){case"opacity":Ft("/ca "+it(Z[He]));break;case"stroke-opacity":Ft("/CA "+it(Z[He]))}Ft(">>"),Ft("endobj")},_p=function(Z){hl(Z.resourcesOid,!0),Ft("<<"),Ft("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),function(){for(var He in Ft("/Font <<"),ma)ma.hasOwnProperty(He)&&(Re===!1||Re===!0&&$e.hasOwnProperty(He))&&Ft("/"+He+" "+ma[He].objectNumber+" 0 R");Ft(">>")}(),function(){if(Object.keys(La).length>0){for(var He in Ft("/Shading <<"),La)La.hasOwnProperty(He)&&La[He]instanceof zd&&La[He].objectNumber>=0&&Ft("/"+He+" "+La[He].objectNumber+" 0 R");js.publish("putShadingPatternDict"),Ft(">>")}}(),function(He){if(Object.keys(La).length>0){for(var Bt in Ft("/Pattern <<"),La)La.hasOwnProperty(Bt)&&La[Bt]instanceof oe.TilingPattern&&La[Bt].objectNumber>=0&&La[Bt].objectNumber<He&&Ft("/"+Bt+" "+La[Bt].objectNumber+" 0 R");js.publish("putTilingPatternDict"),Ft(">>")}}(Z.objectOid),function(){if(Object.keys(xo).length>0){var He;for(He in Ft("/ExtGState <<"),xo)xo.hasOwnProperty(He)&&xo[He].objectNumber>=0&&Ft("/"+He+" "+xo[He].objectNumber+" 0 R");js.publish("putGStateDict"),Ft(">>")}}(),function(){for(var He in Ft("/XObject <<"),jc)jc.hasOwnProperty(He)&&jc[He].objectNumber>=0&&Ft("/"+He+" "+jc[He].objectNumber+" 0 R");js.publish("putXobjectDict"),Ft(">>")}(),Ft(">>"),Ft("endobj")},fm=function(Z){wo[Z.fontName]=wo[Z.fontName]||{},wo[Z.fontName][Z.fontStyle]=Z.id},hm=function(Z,He,Bt,Wt,gr){var mn={id:"F"+(Object.keys(ma).length+1).toString(10),postScriptName:Z,fontName:He,fontStyle:Bt,encoding:Wt,isStandardFont:gr||!1,metadata:{}};return js.publish("addFont",{font:mn,instance:this}),ma[mn.id]=mn,fm(mn),mn.id},eu=oe.__private__.pdfEscape=oe.pdfEscape=function(Z,He){return function(Bt,Wt){var gr,mn,Bn,na,fa,qa,Co,Ns,Tl;if(Bn=(Wt=Wt||{}).sourceEncoding||"Unicode",fa=Wt.outputEncoding,(Wt.autoencode||fa)&&ma[Ca].metadata&&ma[Ca].metadata[Bn]&&ma[Ca].metadata[Bn].encoding&&(na=ma[Ca].metadata[Bn].encoding,!fa&&ma[Ca].encoding&&(fa=ma[Ca].encoding),!fa&&na.codePages&&(fa=na.codePages[0]),typeof fa=="string"&&(fa=na[fa]),fa)){for(Co=!1,qa=[],gr=0,mn=Bt.length;gr<mn;gr++)(Ns=fa[Bt.charCodeAt(gr)])?qa.push(String.fromCharCode(Ns)):qa.push(Bt[gr]),qa[gr].charCodeAt(0)>>8&&(Co=!0);Bt=qa.join("")}for(gr=Bt.length;Co===void 0&&gr!==0;)Bt.charCodeAt(gr-1)>>8&&(Co=!0),gr--;if(!Co)return Bt;for(qa=Wt.noBOM?[]:[254,255],gr=0,mn=Bt.length;gr<mn;gr++){if((Tl=(Ns=Bt.charCodeAt(gr))>>8)>>8)throw new Error("Character at position "+gr+" of string '"+Bt+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");qa.push(Tl),qa.push(Ns-(Tl<<8))}return String.fromCharCode.apply(void 0,qa)}(Z,He).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Vh=oe.__private__.beginPage=function(Z){zn[++as]=[],Ya[as]={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])}},K0(as),sn(zn[Et])},Ip=function(Z,He){var Bt,Wt,gr;switch(a=He||a,typeof Z=="string"&&(Bt=lt(Z.toLowerCase()),Array.isArray(Bt)&&(Wt=Bt[0],gr=Bt[1])),Array.isArray(Z)&&(Wt=Z[0]*ro,gr=Z[1]*ro),isNaN(Wt)&&(Wt=A[0],gr=A[1]),(Wt>14400||gr>14400)&&(ks.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),Wt=Math.min(14400,Wt),gr=Math.min(14400,gr)),A=[Wt,gr],a.substr(0,1)){case"l":gr>Wt&&(A=[gr,Wt]);break;case"p":Wt>gr&&(A=[gr,Wt])}Vh(A),Ym(W0),Ft(G0),Yh!==0&&Ft(Yh+" J"),Dp!==0&&Ft(Dp+" j"),js.publish("addPage",{pageNumber:as})},Fp=function(Z){Z>0&&Z<=as&&(zn.splice(Z,1),Ya.splice(Z,1),as--,Et>as&&(Et=as),this.setPage(Et))},K0=function(Z){Z>0&&Z<=as&&(Et=Z)},H0=oe.__private__.getNumberOfPages=oe.getNumberOfPages=function(){return zn.length-1},Mp=function(Z,He,Bt){var Wt,gr=void 0;return Bt=Bt||{},Z=Z!==void 0?Z:ma[Ca].fontName,He=He!==void 0?He:ma[Ca].fontStyle,Wt=Z.toLowerCase(),wo[Wt]!==void 0&&wo[Wt][He]!==void 0?gr=wo[Wt][He]:wo[Z]!==void 0&&wo[Z][He]!==void 0?gr=wo[Z][He]:Bt.disableWarning===!1&&ks.warn("Unable to look up font label for font '"+Z+"', '"+He+"'. Refer to getFontList() for available fonts."),gr||Bt.noFallback||(gr=wo.times[He])==null&&(gr=wo.times.normal),gr},zu=oe.__private__.putInfo=function(){var Z=sc(),He=function(Wt){return Wt};for(var Bt in le!==null&&(He=mc.encryptor(Z,0)),Ft("<<"),Ft("/Producer ("+eu(He("jsPDF "+Aa.version))+")"),uo)uo.hasOwnProperty(Bt)&&uo[Bt]&&Ft("/"+Bt.substr(0,1).toUpperCase()+Bt.substr(1)+" ("+eu(He(uo[Bt]))+")");Ft("/CreationDate ("+eu(He(Kr))+")"),Ft(">>"),Ft("endobj")},Wh=oe.__private__.putCatalog=function(Z){var He=(Z=Z||{}).rootDictionaryObjId||Xd;switch(sc(),Ft("<<"),Ft("/Type /Catalog"),Ft("/Pages "+He+" 0 R"),wa||(wa="fullwidth"),wa){case"fullwidth":Ft("/OpenAction [3 0 R /FitH null]");break;case"fullheight":Ft("/OpenAction [3 0 R /FitV null]");break;case"fullpage":Ft("/OpenAction [3 0 R /Fit]");break;case"original":Ft("/OpenAction [3 0 R /XYZ null null 1]");break;default:var Bt=""+wa;Bt.substr(Bt.length-1)==="%"&&(wa=parseInt(wa)/100),typeof wa=="number"&&Ft("/OpenAction [3 0 R /XYZ null null "+it(wa)+"]")}switch(yo||(yo="continuous"),yo){case"continuous":Ft("/PageLayout /OneColumn");break;case"single":Ft("/PageLayout /SinglePage");break;case"two":case"twoleft":Ft("/PageLayout /TwoColumnLeft");break;case"tworight":Ft("/PageLayout /TwoColumnRight")}Fa&&Ft("/PageMode /"+Fa),js.publish("putCatalog"),Ft(">>"),Ft("endobj")},ec=oe.__private__.putTrailer=function(){Ft("trailer"),Ft("<<"),Ft("/Size "+(dr+1)),Ft("/Root "+dr+" 0 R"),Ft("/Info "+(dr-1)+" 0 R"),le!==null&&Ft("/Encrypt "+mc.oid+" 0 R"),Ft("/ID [ <"+Zr+"> <"+Zr+"> ]"),Ft(">>")},j0=oe.__private__.putHeader=function(){Ft("%PDF-"+gt),Ft("%\xBA\xDF\xAC\xE0")},Lp=oe.__private__.putXRef=function(){var Z="0000000000";Ft("xref"),Ft("0 "+(dr+1)),Ft("0000000000 65535 f ");for(var He=1;He<=dr;He++)typeof Br[He]=="function"?Ft((Z+Br[He]()).slice(-10)+" 00000 n "):Br[He]!==void 0?Ft((Z+Br[He]).slice(-10)+" 00000 n "):Ft("0000000000 00000 n ")},Mf=oe.__private__.buildDocument=function(){var Z;dr=0,Ur=0,Gr=[],Br=[],wn=[],Xd=Bs(),Hu=Bs(),sn(Gr),js.publish("buildDocument"),j0(),Jd(),function(){js.publish("putAdditionalObjects");for(var Bt=0;Bt<wn.length;Bt++){var Wt=wn[Bt];hl(Wt.objId,!0),Ft(Wt.content),Ft("endobj")}js.publish("postPutAdditionalObjects")}(),Z=[],function(){for(var Bt in ma)ma.hasOwnProperty(Bt)&&(Re===!1||Re===!0&&$e.hasOwnProperty(Bt))&&zh(ma[Bt])}(),function(){var Bt;for(Bt in xo)xo.hasOwnProperty(Bt)&&Ep(xo[Bt])}(),function(){for(var Bt in jc)jc.hasOwnProperty(Bt)&&$h(jc[Bt])}(),function(Bt){var Wt;for(Wt in La)La.hasOwnProperty(Wt)&&(La[Wt]instanceof zd?Q0(La[Wt]):La[Wt]instanceof $d&&Zh(La[Wt],Bt))}(Z),js.publish("putResources"),Z.forEach(_p),_p({resourcesOid:Hu,objectOid:Number.MAX_SAFE_INTEGER}),js.publish("postPutResources"),le!==null&&(mc.oid=sc(),Ft("<<"),Ft("/Filter /Standard"),Ft("/V "+mc.v),Ft("/R "+mc.r),Ft("/U <"+mc.toHexString(mc.U)+">"),Ft("/O <"+mc.toHexString(mc.O)+">"),Ft("/P "+mc.P),Ft(">>"),Ft("endobj")),zu(),Wh();var He=Ur;return Lp(),ec(),Ft("startxref"),Ft(""+He),Ft("%%EOF"),sn(zn[Et]),Gr.join(`
|
|
|
`)},ch=oe.__private__.getBlob=function(Z){return new Blob([_o(Z)],{type:"application/pdf"})},hd=oe.output=oe.__private__.output=(yu=function(Z,He){switch(typeof(He=He||{})=="string"?He={filename:He}:He.filename=He.filename||"generated.pdf",Z){case void 0:return Mf();case"save":oe.save(He.filename);break;case"arraybuffer":return _o(Mf());case"blob":return ch(Mf());case"bloburi":case"bloburl":if(Za.URL!==void 0&&typeof Za.URL.createObjectURL=="function")return Za.URL&&Za.URL.createObjectURL(ch(Mf()))||void 0;ks.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var Bt="",Wt=Mf();try{Bt=Ks(Wt)}catch(tc){Bt=Ks(unescape(encodeURIComponent(Wt)))}return"data:application/pdf;filename="+He.filename+";base64,"+Bt;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Za)==="[object Window]"){var gr="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",mn=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';He.pdfObjectUrl&&(gr=He.pdfObjectUrl,mn="");var Bn='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+gr+'"'+mn+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(He)+");<\/script></body></html>",na=Za.open();return na!==null&&na.document.write(Bn),na}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Za)==="[object Window]"){var fa='<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>',qa=Za.open();if(qa!==null){qa.document.write(fa);var Co=this;qa.document.documentElement.querySelector("#pdfViewer").onload=function(){qa.document.title=He.filename,qa.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(Co.output("bloburl"))}}return qa}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Za)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ns='<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>',Tl=Za.open();if(Tl!==null&&(Tl.document.write(Ns),Tl.document.title=He.filename),Tl||typeof safari=="undefined")return Tl;break;case"datauri":case"dataurl":return Za.document.location.href=this.output("datauristring",He);default:return null}},yu.foo=function(){try{return yu.apply(this,arguments)}catch(Bt){var Z=Bt.stack||"";~Z.indexOf(" at ")&&(Z=Z.split(" at ")[1]);var He="Error in function "+Z.split(`
|
|
|
`)[0].split("<")[0]+": "+Bt.message;if(!Za.console)throw new Error(He);Za.console.error(He,Bt),Za.alert&&alert(He)}},yu.foo.bar=yu,yu.foo),pd=function(Z){return Array.isArray(Hh)===!0&&Hh.indexOf(Z)>-1};switch(l){case"pt":ro=1;break;case"mm":ro=72/25.4;break;case"cm":ro=72/2.54;break;case"in":ro=72;break;case"px":ro=pd("px_scaling")==1?.75:96/72;break;case"pc":case"em":ro=12;break;case"ex":ro=6;break;default:if(typeof l!="number")throw new Error("Invalid unit: "+l);ro=l}var mc=null;In(),Mr();var z0=oe.__private__.getPageInfo=oe.getPageInfo=function(Z){if(isNaN(Z)||Z%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Ya[Z].objId,pageNumber:Z,pageContext:Ya[Z]}},Gm=oe.__private__.getPageInfoByObjId=function(Z){if(isNaN(Z)||Z%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var He in Ya)if(Ya[He].objId===Z)break;return z0(He)},$0=oe.__private__.getCurrentPageInfo=oe.getCurrentPageInfo=function(){return{objId:Ya[Et].objId,pageNumber:Et,pageContext:Ya[Et]}};oe.addPage=function(){return Ip.apply(this,arguments),this},oe.setPage=function(){return K0.apply(this,arguments),sn.call(this,zn[Et]),this},oe.insertPage=function(Z){return this.addPage(),this.movePage(Et,Z),this},oe.movePage=function(Z,He){var Bt,Wt;if(Z>He){Bt=zn[Z],Wt=Ya[Z];for(var gr=Z;gr>He;gr--)zn[gr]=zn[gr-1],Ya[gr]=Ya[gr-1];zn[He]=Bt,Ya[He]=Wt,this.setPage(He)}else if(Z<He){Bt=zn[Z],Wt=Ya[Z];for(var mn=Z;mn<He;mn++)zn[mn]=zn[mn+1],Ya[mn]=Ya[mn+1];zn[He]=Bt,Ya[He]=Wt,this.setPage(He)}return this},oe.deletePage=function(){return Fp.apply(this,arguments),this},oe.__private__.text=oe.text=function(Z,He,Bt,Wt,gr){var mn,Bn,na,fa,qa,Co,Ns,Tl,tc,zs=(Wt=Wt||{}).scope||this;if(typeof Z=="number"&&typeof He=="number"&&(typeof Bt=="string"||Array.isArray(Bt))){var Ga=Bt;Bt=He,He=Z,Z=Ga}if(arguments[3]instanceof Ka==0?(na=arguments[4],fa=arguments[5],(0,ve.Z)(Ns=arguments[3])==="object"&&Ns!==null||(typeof na=="string"&&(fa=na,na=null),typeof Ns=="string"&&(fa=Ns,Ns=null),typeof Ns=="number"&&(na=Ns,Ns=null),Wt={flags:Ns,angle:na,align:fa})):(Lt("The transform parameter of text() with a Matrix value"),tc=gr),isNaN(He)||isNaN(Bt)||Z==null)throw new Error("Invalid arguments passed to jsPDF.text");if(Z.length===0)return zs;var Ic,AA="",kf=typeof Wt.lineHeightFactor=="number"?Wt.lineHeightFactor:Gh,kA=zs.internal.scaleFactor;function ng(ka){return ka=ka.split(" ").join(Array(Wt.TabLen||9).join(" ")),eu(ka,Ns)}function vm(ka){for(var pl,gc=ka.concat(),vc=[],Tf=gc.length;Tf--;)typeof(pl=gc.shift())=="string"?vc.push(pl):Array.isArray(ka)&&(pl.length===1||pl[1]===void 0&&pl[2]===void 0)?vc.push(pl[0]):vc.push([pl[0],pl[1],pl[2]]);return vc}function n0(ka,pl){var gc;if(typeof ka=="string")gc=pl(ka)[0];else if(Array.isArray(ka)){for(var vc,Tf,rp=ka.concat(),nf=[],Rp=rp.length;Rp--;)typeof(vc=rp.shift())=="string"?nf.push(pl(vc)[0]):Array.isArray(vc)&&typeof vc[0]=="string"&&(Tf=pl(vc[0],vc[1],vc[2]),nf.push([Tf[0],Tf[1],Tf[2]]));gc=nf}return gc}var yd=!1,To=!0;if(typeof Z=="string")yd=!0;else if(Array.isArray(Z)){var $u=Z.concat();Bn=[];for(var Cu,Fc=$u.length;Fc--;)(typeof(Cu=$u.shift())!="string"||Array.isArray(Cu)&&typeof Cu[0]!="string")&&(To=!1);yd=To}if(yd===!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 ru=Gn/zs.internal.scaleFactor,wd=ru*(kf-1);switch(Wt.baseline){case"bottom":Bt-=wd;break;case"top":Bt+=ru-wd;break;case"hanging":Bt+=ru-2*wd;break;case"middle":Bt+=ru/2-wd}if((Co=Wt.maxWidth||0)>0&&(typeof Z=="string"?Z=zs.splitTextToSize(Z,Co):Object.prototype.toString.call(Z)==="[object Array]"&&(Z=Z.reduce(function(ka,pl){return ka.concat(zs.splitTextToSize(pl,Co))},[]))),mn={text:Z,x:He,y:Bt,options:Wt,mutex:{pdfEscape:eu,activeFontKey:Ca,fonts:ma,activeFontSize:Gn}},js.publish("preProcessText",mn),Z=mn.text,na=(Wt=mn.options).angle,tc instanceof Ka==0&&na&&typeof na=="number"){na*=Math.PI/180,Wt.rotationDirection===0&&(na=-na),It===Qt&&(na=-na);var Y0=Math.cos(na),Df=Math.sin(na);tc=new Ka(Y0,Df,-Df,Y0,0,0)}else na&&na instanceof Ka&&(tc=na);It!==Qt||tc||(tc=Ff),(qa=Wt.charSpace||Jh)!==void 0&&(AA+=ir(tr(qa))+` Tc
|
|
|
`,this.setCharSpace(this.getCharSpace()||0)),(Tl=Wt.horizontalScale)!==void 0&&(AA+=ir(100*Tl)+` Tz
|
|
|
`),Wt.lang;var QA=-1,Np=Wt.renderingMode!==void 0?Wt.renderingMode:Wt.stroke,q0=zs.internal.getCurrentPageInfo().pageContext;switch(Np){case 0:case!1:case"fill":QA=0;break;case 1:case!0:case"stroke":QA=1;break;case 2:case"fillThenStroke":QA=2;break;case 3:case"invisible":QA=3;break;case 4:case"fillAndAddForClipping":QA=4;break;case 5:case"strokeAndAddPathForClipping":QA=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":QA=6;break;case 7:case"addToPathForClipping":QA=7}var ao=q0.usedRenderingMode!==void 0?q0.usedRenderingMode:-1;QA!==-1?AA+=QA+` Tr
|
|
|
`:ao!==-1&&(AA+=`0 Tr
|
|
|
`),QA!==-1&&(q0.usedRenderingMode=QA),fa=Wt.align||"left";var Ul,DA=Gn*kf,Nf=zs.internal.pageSize.getWidth(),Op=ma[Ca];qa=Wt.charSpace||Jh,Co=Wt.maxWidth||0,Ns=Object.assign({autoencode:!0,noBOM:!0},Wt.flags);var $s=[],ep=function(ka){return zs.getStringUnitWidth(ka,{font:Op,charSpace:qa,fontSize:Gn,doKerning:!1})*Gn/kA};if(Object.prototype.toString.call(Z)==="[object Array]"){var Es;Bn=vm(Z),fa!=="left"&&(Ul=Bn.map(ep));var Bu,i0=0;if(fa==="right"){He-=Ul[0],Z=[],Fc=Bn.length;for(var ef=0;ef<Fc;ef++)ef===0?(Bu=gd(He),Es=vd(Bt)):(Bu=tr(i0-Ul[ef]),Es=-DA),Z.push([Bn[ef],Bu,Es]),i0=Ul[ef]}else if(fa==="center"){He-=Ul[0]/2,Z=[],Fc=Bn.length;for(var xd=0;xd<Fc;xd++)xd===0?(Bu=gd(He),Es=vd(Bt)):(Bu=tr((i0-Ul[xd])/2),Es=-DA),Z.push([Bn[xd],Bu,Es]),i0=Ul[xd]}else if(fa==="left"){Z=[],Fc=Bn.length;for(var Pp=0;Pp<Fc;Pp++)Z.push(Bn[Pp])}else if(fa==="justify"&&Op.encoding==="Identity-H"){Z=[],Fc=Bn.length,Co=Co!==0?Co:Nf;for(var a0=0,Mc=0;Mc<Fc;Mc++)if(Es=Mc===0?vd(Bt):-DA,Bu=Mc===0?gd(He):a0,Mc<Fc-1){var Tp=tr((Co-Ul[Mc])/(Bn[Mc].split(" ").length-1)),KA=Bn[Mc].split(" ");Z.push([KA[0]+" ",Bu,Es]),a0=0;for(var tf=1;tf<KA.length;tf++){var dh=(ep(KA[tf-1]+" "+KA[tf])-ep(KA[tf]))*kA+Tp;tf==KA.length-1?Z.push([KA[tf],dh,0]):Z.push([KA[tf]+" ",dh,0]),a0-=dh}}else Z.push([Bn[Mc],Bu,Es]);Z.push(["",a0,0])}else{if(fa!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(Z=[],Fc=Bn.length,Co=Co!==0?Co:Nf,Mc=0;Mc<Fc;Mc++)Es=Mc===0?vd(Bt):-DA,Bu=Mc===0?gd(He):0,Mc<Fc-1?$s.push(ir(tr((Co-Ul[Mc])/(Bn[Mc].split(" ").length-1)))):$s.push(0),Z.push([Bn[Mc],Bu,Es])}}(typeof Wt.R2L=="boolean"?Wt.R2L:Ja)===!0&&(Z=n0(Z,function(ka,pl,gc){return[ka.split("").reverse().join(""),pl,gc]})),mn={text:Z,x:He,y:Bt,options:Wt,mutex:{pdfEscape:eu,activeFontKey:Ca,fonts:ma,activeFontSize:Gn}},js.publish("postProcessText",mn),Z=mn.text,Ic=mn.mutex.isHex||!1;var Up=ma[Ca].encoding;Up!=="WinAnsiEncoding"&&Up!=="StandardEncoding"||(Z=n0(Z,function(ka,pl,gc){return[ng(ka),pl,gc]})),Bn=vm(Z),Z=[];for(var fh,hh,Of,ph=Array.isArray(Bn[0])?1:0,Pf="",tp=function(ka,pl,gc){var vc="";return gc instanceof Ka?(gc=typeof Wt.angle=="number"?If(gc,new Ka(1,0,0,1,ka,pl)):If(new Ka(1,0,0,1,ka,pl),gc),It===Qt&&(gc=If(new Ka(1,0,0,-1,0,0),gc)),vc=gc.join(" ")+` Tm
|
|
|
`):vc=ir(ka)+" "+ir(pl)+` Td
|
|
|
`,vc},nu=0;nu<Bn.length;nu++){switch(Pf="",ph){case 1:Of=(Ic?"<":"(")+Bn[nu][0]+(Ic?">":")"),fh=parseFloat(Bn[nu][1]),hh=parseFloat(Bn[nu][2]);break;case 0:Of=(Ic?"<":"(")+Bn[nu]+(Ic?">":")"),fh=gd(He),hh=vd(Bt)}$s!==void 0&&$s[nu]!==void 0&&(Pf=$s[nu]+` Tw
|
|
|
`),nu===0?Z.push(Pf+tp(fh,hh,tc)+Of):ph===0?Z.push(Pf+Of):ph===1&&Z.push(Pf+tp(fh,hh,tc)+Of)}Z=ph===0?Z.join(` Tj
|
|
|
T* `):Z.join(` Tj
|
|
|
`),Z+=` Tj
|
|
|
`;var rf=`BT
|
|
|
/`;return rf+=Ca+" "+Gn+` Tf
|
|
|
`,rf+=ir(Gn*kf)+` TL
|
|
|
`,rf+=Xh+`
|
|
|
`,rf+=AA,rf+=Z,Ft(rf+="ET"),$e[Ca]=!0,zs};var Xm=oe.__private__.clip=oe.clip=function(Z){return Ft(Z==="evenodd"?"W*":"W"),this};oe.clipEvenOdd=function(){return Xm("evenodd")},oe.__private__.discardPath=oe.discardPath=function(){return Ft("n"),this};var md=oe.__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};oe.__private__.setDefaultPathOperation=oe.setDefaultPathOperation=function(Z){return md(Z)&&(V=Z),this};var pm=oe.__private__.getStyle=oe.getStyle=function(Z){var He=V;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},mm=oe.close=function(){return Ft("h"),this};oe.stroke=function(){return Ft("S"),this},oe.fill=function(Z){return lA("f",Z),this},oe.fillEvenOdd=function(Z){return lA("f*",Z),this},oe.fillStroke=function(Z){return lA("B",Z),this},oe.fillStrokeEvenOdd=function(Z){return lA("B*",Z),this};var lA=function(Z,He){(0,ve.Z)(He)==="object"?Pl(He,Z):Ft(Z)},Ss=function(Z){Z===null||It===Qt&&Z===void 0||(Z=pm(Z),Ft(Z))};function cA(Z,He,Bt,Wt,gr){var mn=new $d(He||this.boundingBox,Bt||this.xStep,Wt||this.yStep,this.gState,gr||this.matrix);mn.stream=this.stream;var Bn=Z+"$$"+this.cloneIndex+++"$$";return bu(Bn,mn),mn}var Pl=function(Z,He){var Bt=is[Z.key],Wt=La[Bt];if(Wt instanceof zd)Ft("q"),Ft(Z0(He)),Wt.gState&&oe.setGState(Wt.gState),Ft(Z.matrix.toString()+" cm"),Ft("/"+Bt+" sh"),Ft("Q");else if(Wt instanceof $d){var gr=new Ka(1,0,0,-1,0,tu());Z.matrix&&(gr=gr.multiply(Z.matrix||Ff),Bt=cA.call(Wt,Z.key,Z.boundingBox,Z.xStep,Z.yStep,gr).id),Ft("q"),Ft("/Pattern cs"),Ft("/"+Bt+" scn"),Wt.gState&&oe.setGState(Wt.gState),Ft(He),Ft("Q")}},Z0=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"}},V0=oe.moveTo=function(Z,He){return Ft(ir(tr(Z))+" "+ir($t(He))+" m"),this},Yd=oe.lineTo=function(Z,He){return Ft(ir(tr(Z))+" "+ir($t(He))+" l"),this},Ah=oe.curveTo=function(Z,He,Bt,Wt,gr,mn){return Ft([ir(tr(Z)),ir($t(He)),ir(tr(Bt)),ir($t(Wt)),ir(tr(gr)),ir($t(mn)),"c"].join(" ")),this};oe.__private__.line=oe.line=function(Z,He,Bt,Wt,gr){if(isNaN(Z)||isNaN(He)||isNaN(Bt)||isNaN(Wt)||!md(gr))throw new Error("Invalid arguments passed to jsPDF.line");return It===Xt?this.lines([[Bt-Z,Wt-He]],Z,He,[1,1],gr||"S"):this.lines([[Bt-Z,Wt-He]],Z,He,[1,1]).stroke()},oe.__private__.lines=oe.lines=function(Z,He,Bt,Wt,gr,mn){var Bn,na,fa,qa,Co,Ns,Tl,tc,zs,Ga,Ic,AA;if(typeof Z=="number"&&(AA=Bt,Bt=He,He=Z,Z=AA),Wt=Wt||[1,1],mn=mn||!1,isNaN(He)||isNaN(Bt)||!Array.isArray(Z)||!Array.isArray(Wt)||!md(gr)||typeof mn!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(V0(He,Bt),Bn=Wt[0],na=Wt[1],qa=Z.length,Ga=He,Ic=Bt,fa=0;fa<qa;fa++)(Co=Z[fa]).length===2?(Ga=Co[0]*Bn+Ga,Ic=Co[1]*na+Ic,Yd(Ga,Ic)):(Ns=Co[0]*Bn+Ga,Tl=Co[1]*na+Ic,tc=Co[2]*Bn+Ga,zs=Co[3]*na+Ic,Ga=Co[4]*Bn+Ga,Ic=Co[5]*na+Ic,Ah(Ns,Tl,tc,zs,Ga,Ic));return mn&&mm(),Ss(gr),this},oe.path=function(Z){for(var He=0;He<Z.length;He++){var Bt=Z[He],Wt=Bt.c;switch(Bt.op){case"m":V0(Wt[0],Wt[1]);break;case"l":Yd(Wt[0],Wt[1]);break;case"c":Ah.apply(this,Wt);break;case"h":mm()}}return this},oe.__private__.rect=oe.rect=function(Z,He,Bt,Wt,gr){if(isNaN(Z)||isNaN(He)||isNaN(Bt)||isNaN(Wt)||!md(gr))throw new Error("Invalid arguments passed to jsPDF.rect");return It===Xt&&(Wt=-Wt),Ft([ir(tr(Z)),ir($t(He)),ir(tr(Bt)),ir(tr(Wt)),"re"].join(" ")),Ss(gr),this},oe.__private__.triangle=oe.triangle=function(Z,He,Bt,Wt,gr,mn,Bn){if(isNaN(Z)||isNaN(He)||isNaN(Bt)||isNaN(Wt)||isNaN(gr)||isNaN(mn)||!md(Bn))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[Bt-Z,Wt-He],[gr-Bt,mn-Wt],[Z-gr,He-mn]],Z,He,[1,1],Bn,!0),this},oe.__private__.roundedRect=oe.roundedRect=function(Z,He,Bt,Wt,gr,mn,Bn){if(isNaN(Z)||isNaN(He)||isNaN(Bt)||isNaN(Wt)||isNaN(gr)||isNaN(mn)||!md(Bn))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var na=4/3*(Math.SQRT2-1);return gr=Math.min(gr,.5*Bt),mn=Math.min(mn,.5*Wt),this.lines([[Bt-2*gr,0],[gr*na,0,gr,mn-mn*na,gr,mn],[0,Wt-2*mn],[0,mn*na,-gr*na,mn,-gr,mn],[2*gr-Bt,0],[-gr*na,0,-gr,-mn*na,-gr,-mn],[0,2*mn-Wt],[0,-mn*na,gr*na,-mn,gr,-mn]],Z+gr,He,[1,1],Bn,!0),this},oe.__private__.ellipse=oe.ellipse=function(Z,He,Bt,Wt,gr){if(isNaN(Z)||isNaN(He)||isNaN(Bt)||isNaN(Wt)||!md(gr))throw new Error("Invalid arguments passed to jsPDF.ellipse");var mn=4/3*(Math.SQRT2-1)*Bt,Bn=4/3*(Math.SQRT2-1)*Wt;return V0(Z+Bt,He),Ah(Z+Bt,He-Bn,Z+mn,He-Wt,Z,He-Wt),Ah(Z-mn,He-Wt,Z-Bt,He-Bn,Z-Bt,He),Ah(Z-Bt,He+Bn,Z-mn,He+Wt,Z,He+Wt),Ah(Z+mn,He+Wt,Z+Bt,He+Bn,Z+Bt,He),Ss(gr),this},oe.__private__.circle=oe.circle=function(Z,He,Bt,Wt){if(isNaN(Z)||isNaN(He)||isNaN(Bt)||!md(Wt))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(Z,He,Bt,Bt,Wt)},oe.setFont=function(Z,He,Bt){return Bt&&(He=Pr(He,Bt)),Ca=Mp(Z,He,{disableWarning:!1}),this};var Jm=oe.__private__.getFont=oe.getFont=function(){return ma[Mp.apply(oe,arguments)]};oe.__private__.getFontList=oe.getFontList=function(){var Z,He,Bt={};for(Z in wo)if(wo.hasOwnProperty(Z))for(He in Bt[Z]=[],wo[Z])wo[Z].hasOwnProperty(He)&&Bt[Z].push(He);return Bt},oe.addFont=function(Z,He,Bt,Wt,gr){var mn=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&mn.indexOf(arguments[3])!==-1?gr=arguments[3]:arguments[3]&&mn.indexOf(arguments[3])==-1&&(Bt=Pr(Bt,Wt)),hm.call(this,Z,He,Bt,gr=gr||"Identity-H")};var Gh,W0=n.lineWidth||.200025,fo=oe.__private__.getLineWidth=oe.getLineWidth=function(){return W0},Ym=oe.__private__.setLineWidth=oe.setLineWidth=function(Z){return W0=Z,Ft(ir(tr(Z))+" w"),this};oe.__private__.setLineDash=Aa.API.setLineDash=Aa.API.setLineDashPattern=function(Z,He){if(Z=Z||[],He=He||0,isNaN(He)||!Array.isArray(Z))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return Z=Z.map(function(Bt){return ir(tr(Bt))}).join(" "),He=ir(tr(He)),Ft("["+Z+"] "+He+" d"),this};var qm=oe.__private__.getLineHeight=oe.getLineHeight=function(){return Gn*Gh};oe.__private__.getLineHeight=oe.getLineHeight=function(){return Gn*Gh};var eg=oe.__private__.setLineHeightFactor=oe.setLineHeightFactor=function(Z){return typeof(Z=Z||1.15)=="number"&&(Gh=Z),this},tg=oe.__private__.getLineHeightFactor=oe.getLineHeightFactor=function(){return Gh};eg(n.lineHeight);var gd=oe.__private__.getHorizontalCoordinate=function(Z){return tr(Z)},vd=oe.__private__.getVerticalCoordinate=function(Z){return It===Qt?Z:Ya[Et].mediaBox.topRightY-Ya[Et].mediaBox.bottomLeftY-tr(Z)},rg=oe.__private__.getHorizontalCoordinateString=oe.getHorizontalCoordinateString=function(Z){return ir(gd(Z))},kp=oe.__private__.getVerticalCoordinateString=oe.getVerticalCoordinateString=function(Z){return ir(vd(Z))},G0=n.strokeColor||"0 G";oe.__private__.getStrokeColor=oe.getDrawColor=function(){return wu(G0)},oe.__private__.setStrokeColor=oe.setDrawColor=function(Z,He,Bt,Wt){return G0=sA({ch1:Z,ch2:He,ch3:Bt,ch4:Wt,pdfColorType:"draw",precision:2}),Ft(G0),this};var uh=n.fillColor||"0 g";oe.__private__.getFillColor=oe.getFillColor=function(){return wu(uh)},oe.__private__.setFillColor=oe.setFillColor=function(Z,He,Bt,Wt){return uh=sA({ch1:Z,ch2:He,ch3:Bt,ch4:Wt,pdfColorType:"fill",precision:2}),Ft(uh),this};var Xh=n.textColor||"0 g",X0=oe.__private__.getTextColor=oe.getTextColor=function(){return wu(Xh)};oe.__private__.setTextColor=oe.setTextColor=function(Z,He,Bt,Wt){return Xh=sA({ch1:Z,ch2:He,ch3:Bt,ch4:Wt,pdfColorType:"text",precision:3}),this};var Jh=n.charSpace,gm=oe.__private__.getCharSpace=oe.getCharSpace=function(){return parseFloat(Jh||0)};oe.__private__.setCharSpace=oe.setCharSpace=function(Z){if(isNaN(Z))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Jh=Z,this};var Yh=0;oe.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},oe.__private__.setLineCap=oe.setLineCap=function(Z){var He=oe.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 Yh=He,Ft(He+" J"),this};var Dp=0;oe.__private__.setLineJoin=oe.setLineJoin=function(Z){var He=oe.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 Dp=He,Ft(He+" j"),this},oe.__private__.setLineMiterLimit=oe.__private__.setMiterLimit=oe.setLineMiterLimit=oe.setMiterLimit=function(Z){if(Z=Z||0,isNaN(Z))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return Ft(ir(tr(Z))+" M"),this},oe.GState=Th,oe.setGState=function(Z){(Z=typeof Z=="string"?xo[ql[Z]]:qh(null,Z)).equals(Ol)||(Ft("/"+Z.id+" gs"),Ol=Z)};var qh=function(Z,He){if(!Z||!ql[Z]){var Bt=!1;for(var Wt in xo)if(xo.hasOwnProperty(Wt)&&xo[Wt].equals(He)){Bt=!0;break}if(Bt)He=xo[Wt];else{var gr="GS"+(Object.keys(xo).length+1).toString(10);xo[gr]=He,He.id=gr}return Z&&(ql[Z]=He.id),js.publish("addGState",He),He}};oe.addGState=function(Z,He){return qh(Z,He),this},oe.saveGraphicsState=function(){return Ft("q"),fl.push({key:Ca,size:Gn,color:Xh}),this},oe.restoreGraphicsState=function(){Ft("Q");var Z=fl.pop();return Ca=Z.key,Gn=Z.size,Xh=Z.color,Ol=null,this},oe.setCurrentTransformationMatrix=function(Z){return Ft(Z.toString()+" cm"),this},oe.comment=function(Z){return Ft("#"+Z),this};var e0=function(Z,He){var Bt=Z||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return Bt},set:function(mn){isNaN(mn)||(Bt=parseFloat(mn))}});var Wt=He||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return Wt},set:function(mn){isNaN(mn)||(Wt=parseFloat(mn))}});var gr="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return gr},set:function(mn){gr=mn.toString()}}),this},qd=function(Z,He,Bt,Wt){e0.call(this,Z,He),this.type="rect";var gr=Bt||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return gr},set:function(Bn){isNaN(Bn)||(gr=parseFloat(Bn))}});var mn=Wt||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return mn},set:function(Bn){isNaN(Bn)||(mn=parseFloat(Bn))}}),this},RA=function(){this.page=as,this.currentPage=Et,this.pages=zn.slice(0),this.pagesContext=Ya.slice(0),this.x=Ba,this.y=yl,this.matrix=Ds,this.width=J0(Et),this.height=tu(Et),this.outputDestination=Si,this.id="",this.objectNumber=-1};RA.prototype.restore=function(){as=this.page,Et=this.currentPage,Ya=this.pagesContext,zn=this.pages,Ba=this.x,yl=this.y,Ds=this.matrix,r0(Et,this.width),bd(Et,this.height),Si=this.outputDestination};var t0=function(Z,He,Bt,Wt,gr){Wd.push(new RA),as=Et=0,zn=[],Ba=Z,yl=He,Ds=gr,Vh([Bt,Wt])};for(var Lf in oe.beginFormObject=function(Z,He,Bt,Wt,gr){return t0(Z,He,Bt,Wt,gr),this},oe.endFormObject=function(Z){return function(He){if(_f[He])Wd.pop().restore();else{var Bt=new RA,Wt="Xo"+(Object.keys(jc).length+1).toString(10);Bt.id=Wt,_f[He]=Wt,jc[Wt]=Bt,js.publish("addFormObject",Bt),Wd.pop().restore()}}(Z),this},oe.doFormObject=function(Z,He){var Bt=jc[_f[Z]];return Ft("q"),Ft(He.toString()+" cm"),Ft("/"+Bt.id+" Do"),Ft("Q"),this},oe.getFormObject=function(Z){var He=jc[_f[Z]];return{x:He.x,y:He.y,width:He.width,height:He.height,matrix:He.matrix}},oe.save=function(Z,He){return Z=Z||"generated.pdf",(He=He||{}).returnPromise=He.returnPromise||!1,He.returnPromise===!1?(Ad(ch(Mf()),Z),typeof Ad.unload=="function"&&Za.setTimeout&&setTimeout(Ad.unload,911),this):new Promise(function(Bt,Wt){try{var gr=Ad(ch(Mf()),Z);typeof Ad.unload=="function"&&Za.setTimeout&&setTimeout(Ad.unload,911),Bt(gr)}catch(mn){Wt(mn.message)}})},Aa.API)Aa.API.hasOwnProperty(Lf)&&(Lf==="events"&&Aa.API.events.length?function(Z,He){var Bt,Wt,gr;for(gr=He.length-1;gr!==-1;gr--)Bt=He[gr][0],Wt=He[gr][1],Z.subscribe.apply(Z,[Bt].concat(typeof Wt=="function"?[Wt]:Wt))}(js,Aa.API.events):oe[Lf]=Aa.API[Lf]);var J0=oe.getPageWidth=function(Z){return(Ya[Z=Z||Et].mediaBox.topRightX-Ya[Z].mediaBox.bottomLeftX)/ro},r0=oe.setPageWidth=function(Z,He){Ya[Z].mediaBox.topRightX=He*ro+Ya[Z].mediaBox.bottomLeftX},tu=oe.getPageHeight=function(Z){return(Ya[Z=Z||Et].mediaBox.topRightY-Ya[Z].mediaBox.bottomLeftY)/ro},bd=oe.setPageHeight=function(Z,He){Ya[Z].mediaBox.topRightY=He*ro+Ya[Z].mediaBox.bottomLeftY};return oe.internal={pdfEscape:eu,getStyle:pm,getFont:Jm,getFontSize:ci,getCharSpace:gm,getTextColor:X0,getLineHeight:qm,getLineHeightFactor:tg,getLineWidth:fo,write:Go,getHorizontalCoordinate:gd,getVerticalCoordinate:vd,getCoordinateString:rg,getVerticalCoordinateString:kp,collections:{},newObject:sc,newAdditionalObject:Gd,newObjectDeferred:Bs,newObjectDeferredBegin:hl,getFilters:xu,putStream:ju,events:js,scaleFactor:ro,pageSize:{getWidth:function(){return J0(Et)},setWidth:function(Z){r0(Et,Z)},getHeight:function(){return tu(Et)},setHeight:function(Z){bd(Et,Z)}},encryptionOptions:le,encryption:mc,getEncryptor:function(Z){return le!==null?mc.encryptor(Z,0):function(He){return He}},output:hd,getNumberOfPages:H0,pages:zn,out:Ft,f2:it,f3:Ct,getPageInfo:z0,getPageInfoByObjId:Gm,getCurrentPageInfo:$0,getPDFVersion:dt,Point:e0,Rectangle:qd,Matrix:Ka,hasHotfix:pd},Object.defineProperty(oe.internal.pageSize,"width",{get:function(){return J0(Et)},set:function(Z){r0(Et,Z)},enumerable:!0,configurable:!0}),Object.defineProperty(oe.internal.pageSize,"height",{get:function(){return tu(Et)},set:function(Z){bd(Et,Z)},enumerable:!0,configurable:!0}),function(Z){for(var He=0,Bt=Ta.length;He<Bt;He++){var Wt=hm.call(this,Z[He][0],Z[He][1],Z[He][2],Ta[He][3],!0);Re===!1&&($e[Wt]=!0);var gr=Z[He][0].split("-");fm({id:Wt,fontName:gr[0],fontStyle:gr[1]||""})}js.publish("addFonts",{fonts:ma,dictionary:wo})}.call(oe,Ta),Ca="F1",Ip(A,a),js.publish("initialized"),oe}Ru.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},Ru.prototype.toHexString=function(n){return n.split("").map(function(o){return("0"+(255&o.charCodeAt(0)).toString(16)).slice(-2)}).join("")},Ru.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("")},Ru.prototype.processOwnerPassword=function(n,o){return pc(Sf(o).substr(0,5),n)},Ru.prototype.encryptor=function(n,o){var a=Sf(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&o,o>>8&255)).substr(0,10);return function(l){return pc(a,l)}},Th.prototype.equals=function(n){var o,a="id,objectNumber,equals";if(!n||(0,ve.Z)(n)!==(0,ve.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},Aa.API={events:[]},Aa.version="3.0.2";var cl=Aa.API,Ef=1,ud=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},JA=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ma=function(n){return n.toFixed(2)},Zd=function(n){return n.toFixed(5)};cl.__acroform__={};var iA=function(n,o){n.prototype=Object.create(o.prototype),n.prototype.constructor=n},U0=function(n){return n*Ef},fu=function(n){var o=new Yr,a=qn.internal.getHeight(n)||0,l=qn.internal.getWidth(n)||0;return o.BBox=[0,0,Number(Ma(l)),Number(Ma(a))],o},Qm=cl.__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},Km=cl.__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)},Hm=cl.__acroform__.getBit=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return n&1<<o?1:0},Yl=cl.__acroform__.getBitForPdf=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return Hm(n,o-1)},v=cl.__acroform__.setBitForPdf=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Qm(n,o-1)},d=cl.__acroform__.clearBitForPdf=function(n,o){if(isNaN(n)||isNaN(o))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Km(n,o-1)},w=cl.__acroform__.calculateCoordinates=function(n,o){var a=o.internal.getHorizontalCoordinate,l=o.internal.getVerticalCoordinate,A=n[0],p=n[1],O=n[2],E=n[3],R={};return R.lowerLeft_X=a(A)||0,R.lowerLeft_Y=l(p+E)||0,R.upperRight_X=a(A+O)||0,R.upperRight_Y=l(p)||0,[Number(Ma(R.lowerLeft_X)),Number(Ma(R.lowerLeft_Y)),Number(Ma(R.upperRight_X)),Number(Ma(R.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),A=n.scope.internal.getFont(n.fontName,n.fontStyle).id;o.push("/Tx BMC"),o.push("q"),o.push("BT"),o.push(n.scope.__private__.encodeColorString(n.color)),o.push("/"+A+" "+Ma(l.fontSize)+" Tf"),o.push("1 0 0 1 0 0 Tm"),o.push(l.text),o.push("ET"),o.push("Q"),o.push("EMC");var p=fu(n);return p.scope=n.scope,p.stream=o.join(`
|
|
|
`),p}},te=function(n,o){var a=n.fontSize===0?n.maxFontSize:n.fontSize,l={text:"",fontSize:""},A=(o=(o=o.substr(0,1)=="("?o.substr(1):o).substr(o.length-1)==")"?o.substr(0,o.length-1):o).split(" ");A=n.multiline?A.map(function(it){return it.split(`
|
|
|
`)}):A.map(function(it){return[it]});var p=a,O=qn.internal.getHeight(n)||0;O=O<0?-O:O;var E=qn.internal.getWidth(n)||0;E=E<0?-E:E;var R=function(it,Ct,tr){if(it+1<A.length){var $t=Ct+" "+A[it+1][0];return _e($t,n,tr).width<=E-4}return!1};p++;e:for(;p>0;){o="",p--;var V,le,Re=_e("3",n,p).height,$e=n.multiline?O-p:(O-Re)/2,oe=$e+=2,gt=0,dt=0,yt=0;if(p<=0){o=`(...) Tj
|
|
|
`,o+="% Width of Text: "+_e(o,n,p=12).width+", FieldWidth:"+E+`
|
|
|
`;break}for(var lt="",Xt=0,Qt=0;Qt<A.length;Qt++)if(A.hasOwnProperty(Qt)){var It=!1;if(A[Qt].length!==1&&yt!==A[Qt].length-1){if((Re+2)*(Xt+2)+2>O)continue e;lt+=A[Qt][yt],It=!0,dt=Qt,Qt--}else{lt=(lt+=A[Qt][yt]+" ").substr(lt.length-1)==" "?lt.substr(0,lt.length-1):lt;var kr=parseInt(Qt),rn=R(kr,lt,p),Pr=Qt>=A.length-1;if(rn&&!Pr){lt+=" ",yt=0;continue}if(rn||Pr){if(Pr)dt=kr;else if(n.multiline&&(Re+2)*(Xt+2)+2>O)continue e}else{if(!n.multiline||(Re+2)*(Xt+2)+2>O)continue e;dt=kr}}for(var ir="",Lt=gt;Lt<=dt;Lt++){var wr=A[Lt];if(n.multiline){if(Lt===dt){ir+=wr[yt]+" ",yt=(yt+1)%wr.length;continue}if(Lt===gt){ir+=wr[wr.length-1]+" ";continue}}ir+=wr[0]+" "}switch(ir=ir.substr(ir.length-1)==" "?ir.substr(0,ir.length-1):ir,le=_e(ir,n,p).width,n.textAlign){case"right":V=E-le-2;break;case"center":V=(E-le)/2;break;default:V=2}o+=Ma(V)+" "+Ma(oe)+` Td
|
|
|
`,o+="("+ud(ir)+`) Tj
|
|
|
`,o+=-Ma(V)+` 0 Td
|
|
|
`,oe=-(p+2),le=0,gt=It?dt:dt+1,Xt++,lt=""}break}return l.text=o,l.fontSize=p,l},_e=function(n,o,a){var l=o.scope.internal.getFont(o.fontName,o.fontStyle),A=o.scope.getStringUnitWidth(n,{font:l,fontSize:parseFloat(a),charSpace:0})*parseFloat(a);return{height:o.scope.getStringUnitWidth("3",{font:l,fontSize:parseFloat(a),charSpace:0})*parseFloat(a)*1.5,width:A}},Ve={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},ht=function(n,o){var a={type:"reference",object:n};o.internal.getPageInfo(n.page).pageContext.annotations.find(function(l){return l.type===a.type&&l.object===a.object})===void 0&&o.internal.getPageInfo(n.page).pageContext.annotations.push(a)},pt=function(n,o){if(o.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(Un.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify(Ve)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ef=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new Oi,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",function(){(function(a){a.internal.events.unsubscribe(a.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete a.internal.acroformPlugin.acroFormDictionaryRoot._eventID,a.internal.acroformPlugin.printedOut=!0})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(a){a.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var l=a.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var A in l)if(l.hasOwnProperty(A)){var p=l[A];p.objId=void 0,p.hasAnnotation&&ht(p,a)}})(n)}),n.internal.events.subscribe("putCatalog",function(){(function(a){if(a.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");a.internal.write("/AcroForm "+a.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)}),n.internal.events.subscribe("postPutPages",function(a){(function(l,A){var p=!l;for(var O in l||(A.internal.newObjectDeferredBegin(A.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),A.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),l=l||A.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(l.hasOwnProperty(O)){var E=l[O],R=[],V=E.Rect;if(E.Rect&&(E.Rect=w(E.Rect,A)),A.internal.newObjectDeferredBegin(E.objId,!0),E.DA=qn.createDefaultAppearanceStream(E),(0,ve.Z)(E)==="object"&&typeof E.getKeyValueListForStream=="function"&&(R=E.getKeyValueListForStream()),E.Rect=V,E.hasAppearanceStream&&!E.appearanceStreamContent){var le=y(E);R.push({key:"AP",value:"<</N "+le+">>"}),A.internal.acroformPlugin.xForms.push(le)}if(E.appearanceStreamContent){var Re="";for(var $e in E.appearanceStreamContent)if(E.appearanceStreamContent.hasOwnProperty($e)){var oe=E.appearanceStreamContent[$e];if(Re+="/"+$e+" ",Re+="<<",Object.keys(oe).length>=1||Array.isArray(oe)){for(var O in oe)if(oe.hasOwnProperty(O)){var gt=oe[O];typeof gt=="function"&&(gt=gt.call(A,E)),Re+="/"+O+" "+gt+" ",A.internal.acroformPlugin.xForms.indexOf(gt)>=0||A.internal.acroformPlugin.xForms.push(gt)}}else typeof(gt=oe)=="function"&&(gt=gt.call(A,E)),Re+="/"+O+" "+gt,A.internal.acroformPlugin.xForms.indexOf(gt)>=0||A.internal.acroformPlugin.xForms.push(gt);Re+=">>"}R.push({key:"AP",value:`<<
|
|
|
`+Re+">>"})}A.internal.putStream({additionalKeyValues:R,objectId:E.objId}),A.internal.out("endobj")}p&&function(dt,yt){for(var lt in dt)if(dt.hasOwnProperty(lt)){var Xt=lt,Qt=dt[lt];yt.internal.newObjectDeferredBegin(Qt.objId,!0),(0,ve.Z)(Qt)==="object"&&typeof Qt.putStream=="function"&&Qt.putStream(),delete dt[Xt]}}(A.internal.acroformPlugin.xForms,A)})(a,n)}),n.internal.acroformPlugin.isInitialized=!0}},qt=cl.__acroform__.arrayToPdfArray=function(n,o,a){var l=function(O){return O};if(Array.isArray(n)){for(var A="[",p=0;p<n.length;p++)switch(p!==0&&(A+=" "),(0,ve.Z)(n[p])){case"boolean":case"number":case"object":A+=n[p].toString();break;case"string":n[p].substr(0,1)!=="/"?(o!==void 0&&a&&(l=a.internal.getEncryptor(o)),A+="("+ud(l(n[p].toString()))+")"):A+=n[p].toString()}return A+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},lr=function(n,o,a){var l=function(A){return A};return o!==void 0&&a&&(l=a.internal.getEncryptor(o)),(n=n||"").toString(),"("+ud(l(n))+")"},fr=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};fr.prototype.toString=function(){return this.objId+" 0 R"},fr.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},fr.prototype.getKeyValueListForStream=function(){var n=[],o=Object.getOwnPropertyNames(this).filter(function(p){return p!="content"&&p!="appearanceStreamContent"&&p!="scope"&&p!="objId"&&p.substring(0,1)!="_"});for(var a in o)if(Object.getOwnPropertyDescriptor(this,o[a]).configurable===!1){var l=o[a],A=this[l];A&&(Array.isArray(A)?n.push({key:l,value:qt(A,this.objId,this.scope)}):A instanceof fr?(A.scope=this.scope,n.push({key:l,value:A.objId+" 0 R"})):typeof A!="function"&&n.push({key:l,value:A}))}return n};var Yr=function(){fr.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var 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}})};iA(Yr,fr);var Oi=function(){fr.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)),"("+ud(a(n))+")"}},set:function(a){n=a}})};iA(Oi,fr);var Un=function n(){fr.call(this);var o=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return o},set:function(lt){if(isNaN(lt))throw new Error('Invalid value "'+lt+'" for attribute F supplied.');o=lt}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Yl(o,3)},set:function(lt){lt?this.F=v(o,3):this.F=d(o,3)}});var a=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return a},set:function(lt){if(isNaN(lt))throw new Error('Invalid value "'+lt+'" for attribute Ff supplied.');a=lt}});var l=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(l.length!==0)return l},set:function(lt){l=lt!==void 0?lt:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[0])?0:l[0]},set:function(lt){l[0]=lt}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[1])?0:l[1]},set:function(lt){l[1]=lt}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[2])?0:l[2]},set:function(lt){l[2]=lt}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!l||isNaN(l[3])?0:l[3]},set:function(lt){l[3]=lt}});var A="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return A},set:function(lt){switch(lt){case"/Btn":case"/Tx":case"/Ch":case"/Sig":A=lt;break;default:throw new Error('Invalid value "'+lt+'" for attribute FT supplied.')}}});var p=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!p||p.length<1){if(this instanceof Fi)return;p="FieldObject"+n.FieldNum++}var lt=function(Xt){return Xt};return this.scope&&(lt=this.scope.internal.getEncryptor(this.objId)),"("+ud(lt(p))+")"},set:function(lt){p=lt.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return p},set:function(lt){p=lt}});var O="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return O},set:function(lt){O=lt}});var E="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return E},set:function(lt){E=lt}});var R=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return R},set:function(lt){R=lt}});var V=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return V===void 0?50/Ef:V},set:function(lt){V=lt}});var le="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return le},set:function(lt){le=lt}});var Re="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!Re||this instanceof Fi||this instanceof Xa))return lr(Re,this.objId,this.scope)},set:function(lt){lt=lt.toString(),Re=lt}});var $e=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if($e)return this instanceof Oa==0?lr($e,this.objId,this.scope):$e},set:function(lt){lt=lt.toString(),$e=this instanceof Oa==0?lt.substr(0,1)==="("?JA(lt.substr(1,lt.length-2)):JA(lt):lt}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof Oa==1?JA($e.substr(1,$e.length-1)):$e},set:function(lt){lt=lt.toString(),$e=this instanceof Oa==1?"/"+lt:lt}});var oe=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(oe)return oe},set:function(lt){this.V=lt}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(oe)return this instanceof Oa==0?lr(oe,this.objId,this.scope):oe},set:function(lt){lt=lt.toString(),oe=this instanceof Oa==0?lt.substr(0,1)==="("?JA(lt.substr(1,lt.length-2)):JA(lt):lt}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof Oa==1?JA(oe.substr(1,oe.length-1)):oe},set:function(lt){lt=lt.toString(),oe=this instanceof Oa==1?"/"+lt:lt}}),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 gt,dt=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return dt},set:function(lt){lt=!!lt,dt=lt}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(gt)return gt},set:function(lt){gt=lt}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,1)},set:function(lt){lt?this.Ff=v(this.Ff,1):this.Ff=d(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,2)},set:function(lt){lt?this.Ff=v(this.Ff,2):this.Ff=d(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,3)},set:function(lt){lt?this.Ff=v(this.Ff,3):this.Ff=d(this.Ff,3)}});var yt=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(yt!==null)return yt},set:function(lt){if([0,1,2].indexOf(lt)===-1)throw new Error('Invalid value "'+lt+'" for attribute Q supplied.');yt=lt}}),Object.defineProperty(this,"textAlign",{get:function(){var lt;switch(yt){case 0:default:lt="left";break;case 1:lt="center";break;case 2:lt="right"}return lt},configurable:!0,enumerable:!0,set:function(lt){switch(lt){case"right":case 2:yt=2;break;case"center":case 1:yt=1;break;default:yt=0}}})};iA(Un,fr);var di=function(){Un.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(a){n=a}});var o=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return qt(o,this.objId,this.scope)},set:function(a){var l,A;A=[],typeof(l=a)=="string"&&(A=function(p,O,E){E||(E=1);for(var R,V=[];R=O.exec(p);)V.push(R[E]);return V}(l,/\((.*?)\)/g)),o=A}}),this.getOptions=function(){return o},this.setOptions=function(a){o=a,this.sort&&o.sort()},this.addOption=function(a){a=(a=a||"").toString(),o.push(a),this.sort&&o.sort()},this.removeOption=function(a,l){for(l=l||!1,a=(a=a||"").toString();o.indexOf(a)!==-1&&(o.splice(o.indexOf(a),1),l!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,18)},set:function(a){a?this.Ff=v(this.Ff,18):this.Ff=d(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,19)},set:function(a){this.combo===!0&&(a?this.Ff=v(this.Ff,19):this.Ff=d(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,20)},set:function(a){a?(this.Ff=v(this.Ff,20),o.sort()):this.Ff=d(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,22)},set:function(a){a?this.Ff=v(this.Ff,22):this.Ff=d(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,23)},set:function(a){a?this.Ff=v(this.Ff,23):this.Ff=d(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,27)},set:function(a){a?this.Ff=v(this.Ff,27):this.Ff=d(this.Ff,27)}}),this.hasAppearanceStream=!1};iA(di,Un);var Va=function(){di.call(this),this.fontName="helvetica",this.combo=!1};iA(Va,di);var Gi=function(){Va.call(this),this.combo=!0};iA(Gi,Va);var Vi=function(){Gi.call(this),this.edit=!0};iA(Vi,Gi);var Oa=function(){Un.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,15)},set:function(a){a?this.Ff=v(this.Ff,15):this.Ff=d(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,16)},set:function(a){a?this.Ff=v(this.Ff,16):this.Ff=d(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,17)},set:function(a){a?this.Ff=v(this.Ff,17):this.Ff=d(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,26)},set:function(a){a?this.Ff=v(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(p){return p};if(this.scope&&(a=this.scope.internal.getEncryptor(this.objId)),Object.keys(o).length!==0){var l,A=[];for(l in A.push("<<"),o)A.push("/"+l+" ("+ud(a(o[l]))+")");return A.push(">>"),A.join(`
|
|
|
`)}},set:function(a){(0,ve.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}})};iA(Oa,Un);var io=function(){Oa.call(this),this.pushButton=!0};iA(io,Oa);var _a=function(){Oa.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(o){n=o!==void 0?o:[]}})};iA(_a,Oa);var Fi=function(){var n,o;Un.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(A){n=A}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return o},set:function(A){o=A}});var a,l={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var A=function(E){return E};this.scope&&(A=this.scope.internal.getEncryptor(this.objId));var p,O=[];for(p in O.push("<<"),l)O.push("/"+p+" ("+ud(A(l[p]))+")");return O.push(">>"),O.join(`
|
|
|
`)},set:function(A){(0,ve.Z)(A)==="object"&&(l=A)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return l.CA||""},set:function(A){typeof A=="string"&&(l.CA=A)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return a},set:function(A){a=A}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return a.substr(1,a.length-1)},set:function(A){a="/"+A}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=qn.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};iA(Fi,Un),_a.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()}},_a.prototype.createOption=function(n){var o=new Fi;return o.Parent=this,o.optionName=n,this.Kids.push(o),Ec.call(this.scope,o),o};var Do=function(){Oa.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=qn.CheckBox.createAppearanceStream()};iA(Do,Oa);var Xa=function(){Un.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,13)},set:function(o){o?this.Ff=v(this.Ff,13):this.Ff=d(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,21)},set:function(o){o?this.Ff=v(this.Ff,21):this.Ff=d(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,23)},set:function(o){o?this.Ff=v(this.Ff,23):this.Ff=d(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,24)},set:function(o){o?this.Ff=v(this.Ff,24):this.Ff=d(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,25)},set:function(o){o?this.Ff=v(this.Ff,25):this.Ff=d(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,26)},set:function(o){o?this.Ff=v(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}})};iA(Xa,Un);var Pa=function(){Xa.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Yl(this.Ff,14)},set:function(n){n?this.Ff=v(this.Ff,14):this.Ff=d(this.Ff,14)}}),this.password=!0};iA(Pa,Xa);var qn={CheckBox:{createAppearanceStream:function(){return{N:{On:qn.CheckBox.YesNormal},D:{On:qn.CheckBox.YesPushDown,Off:qn.CheckBox.OffPushDown}}},YesPushDown:function(n){var o=fu(n);o.scope=n.scope;var a=[],l=n.scope.internal.getFont(n.fontName,n.fontStyle).id,A=n.scope.__private__.encodeColorString(n.color),p=te(n,n.caption);return a.push("0.749023 g"),a.push("0 0 "+Ma(qn.internal.getWidth(n))+" "+Ma(qn.internal.getHeight(n))+" re"),a.push("f"),a.push("BMC"),a.push("q"),a.push("0 0 1 rg"),a.push("/"+l+" "+Ma(p.fontSize)+" Tf "+A),a.push("BT"),a.push(p.text),a.push("ET"),a.push("Q"),a.push("EMC"),o.stream=a.join(`
|
|
|
`),o},YesNormal:function(n){var o=fu(n);o.scope=n.scope;var a=n.scope.internal.getFont(n.fontName,n.fontStyle).id,l=n.scope.__private__.encodeColorString(n.color),A=[],p=qn.internal.getHeight(n),O=qn.internal.getWidth(n),E=te(n,n.caption);return A.push("1 g"),A.push("0 0 "+Ma(O)+" "+Ma(p)+" re"),A.push("f"),A.push("q"),A.push("0 0 1 rg"),A.push("0 0 "+Ma(O-1)+" "+Ma(p-1)+" re"),A.push("W"),A.push("n"),A.push("0 g"),A.push("BT"),A.push("/"+a+" "+Ma(E.fontSize)+" Tf "+l),A.push(E.text),A.push("ET"),A.push("Q"),o.stream=A.join(`
|
|
|
`),o},OffPushDown:function(n){var o=fu(n);o.scope=n.scope;var a=[];return a.push("0.749023 g"),a.push("0 0 "+Ma(qn.internal.getWidth(n))+" "+Ma(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=fu(n);o.scope=n.scope;var a=[],l=qn.internal.getWidth(n)<=qn.internal.getHeight(n)?qn.internal.getWidth(n)/4:qn.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=qn.internal.Bezier_C,p=Number((l*A).toFixed(5));return a.push("q"),a.push("1 0 0 1 "+Zd(qn.internal.getWidth(n)/2)+" "+Zd(qn.internal.getHeight(n)/2)+" cm"),a.push(l+" 0 m"),a.push(l+" "+p+" "+p+" "+l+" 0 "+l+" c"),a.push("-"+p+" "+l+" -"+l+" "+p+" -"+l+" 0 c"),a.push("-"+l+" -"+p+" -"+p+" -"+l+" 0 -"+l+" c"),a.push(p+" -"+l+" "+l+" -"+p+" "+l+" 0 c"),a.push("f"),a.push("Q"),o.stream=a.join(`
|
|
|
`),o},YesPushDown:function(n){var o=fu(n);o.scope=n.scope;var a=[],l=qn.internal.getWidth(n)<=qn.internal.getHeight(n)?qn.internal.getWidth(n)/4:qn.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=Number((2*l).toFixed(5)),p=Number((A*qn.internal.Bezier_C).toFixed(5)),O=Number((l*qn.internal.Bezier_C).toFixed(5));return a.push("0.749023 g"),a.push("q"),a.push("1 0 0 1 "+Zd(qn.internal.getWidth(n)/2)+" "+Zd(qn.internal.getHeight(n)/2)+" cm"),a.push(A+" 0 m"),a.push(A+" "+p+" "+p+" "+A+" 0 "+A+" c"),a.push("-"+p+" "+A+" -"+A+" "+p+" -"+A+" 0 c"),a.push("-"+A+" -"+p+" -"+p+" -"+A+" 0 -"+A+" c"),a.push(p+" -"+A+" "+A+" -"+p+" "+A+" 0 c"),a.push("f"),a.push("Q"),a.push("0 g"),a.push("q"),a.push("1 0 0 1 "+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=fu(n);o.scope=n.scope;var a=[],l=qn.internal.getWidth(n)<=qn.internal.getHeight(n)?qn.internal.getWidth(n)/4:qn.internal.getHeight(n)/4;l=Number((.9*l).toFixed(5));var A=Number((2*l).toFixed(5)),p=Number((A*qn.internal.Bezier_C).toFixed(5));return a.push("0.749023 g"),a.push("q"),a.push("1 0 0 1 "+Zd(qn.internal.getWidth(n)/2)+" "+Zd(qn.internal.getHeight(n)/2)+" cm"),a.push(A+" 0 m"),a.push(A+" "+p+" "+p+" "+A+" 0 "+A+" c"),a.push("-"+p+" "+A+" -"+A+" "+p+" -"+A+" 0 c"),a.push("-"+A+" -"+p+" -"+p+" -"+A+" 0 -"+A+" c"),a.push(p+" -"+A+" "+A+" -"+p+" "+A+" 0 c"),a.push("f"),a.push("Q"),o.stream=a.join(`
|
|
|
`),o}},Cross:{createAppearanceStream:function(n){var o={D:{Off:qn.RadioButton.Cross.OffPushDown},N:{}};return o.N[n]=qn.RadioButton.Cross.YesNormal,o.D[n]=qn.RadioButton.Cross.YesPushDown,o},getCA:function(){return"8"},YesNormal:function(n){var o=fu(n);o.scope=n.scope;var a=[],l=qn.internal.calculateCross(n);return a.push("q"),a.push("1 1 "+Ma(qn.internal.getWidth(n)-2)+" "+Ma(qn.internal.getHeight(n)-2)+" re"),a.push("W"),a.push("n"),a.push(Ma(l.x1.x)+" "+Ma(l.x1.y)+" m"),a.push(Ma(l.x2.x)+" "+Ma(l.x2.y)+" l"),a.push(Ma(l.x4.x)+" "+Ma(l.x4.y)+" m"),a.push(Ma(l.x3.x)+" "+Ma(l.x3.y)+" l"),a.push("s"),a.push("Q"),o.stream=a.join(`
|
|
|
`),o},YesPushDown:function(n){var o=fu(n);o.scope=n.scope;var a=qn.internal.calculateCross(n),l=[];return l.push("0.749023 g"),l.push("0 0 "+Ma(qn.internal.getWidth(n))+" "+Ma(qn.internal.getHeight(n))+" re"),l.push("f"),l.push("q"),l.push("1 1 "+Ma(qn.internal.getWidth(n)-2)+" "+Ma(qn.internal.getHeight(n)-2)+" re"),l.push("W"),l.push("n"),l.push(Ma(a.x1.x)+" "+Ma(a.x1.y)+" m"),l.push(Ma(a.x2.x)+" "+Ma(a.x2.y)+" l"),l.push(Ma(a.x4.x)+" "+Ma(a.x4.y)+" m"),l.push(Ma(a.x3.x)+" "+Ma(a.x3.y)+" l"),l.push("s"),l.push("Q"),o.stream=l.join(`
|
|
|
`),o},OffPushDown:function(n){var o=fu(n);o.scope=n.scope;var a=[];return a.push("0.749023 g"),a.push("0 0 "+Ma(qn.internal.getWidth(n))+" "+Ma(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,ve.Z)(n)==="object"&&(o=U0(n.Rect[2])),o},qn.internal.getHeight=function(n){var o=0;return(0,ve.Z)(n)==="object"&&(o=U0(n.Rect[3])),o};var Ec=cl.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};cl.AcroFormChoiceField=di,cl.AcroFormListBox=Va,cl.AcroFormComboBox=Gi,cl.AcroFormEditBox=Vi,cl.AcroFormButton=Oa,cl.AcroFormPushButton=io,cl.AcroFormRadioButton=_a,cl.AcroFormCheckBox=Do,cl.AcroFormTextField=Xa,cl.AcroFormPasswordField=Pa,cl.AcroFormAppearance=qn,cl.AcroForm={ChoiceField:di,ListBox:Va,ComboBox:Gi,EditBox:Vi,Button:Oa,PushButton:io,RadioButton:_a,CheckBox:Do,TextField:Xa,PasswordField:Pa,Appearance:qn},Aa.AcroForm={ChoiceField:di,ListBox:Va,ComboBox:Gi,EditBox:Vi,Button:Oa,PushButton:io,RadioButton:_a,CheckBox:Do,TextField:Xa,PasswordField:Pa,Appearance:qn};var aA=Aa.AcroForm;function bo(n){return n.reduce(function(o,a,l){return o[a]=l,o},{})}(function(n){var o="addImage_";n.__addimage__={};var a="UNKNOWN",l={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},A=n.__addimage__.getImageFileTypeByImageData=function(it,Ct){var tr,$t,Kr,Zr,tn,Mr=a;if((Ct=Ct||a)==="RGBA"||it.data!==void 0&&it.data instanceof Uint8ClampedArray&&"height"in it&&"width"in it)return"RGBA";if(rn(it))for(tn in l)for(Kr=l[tn],tr=0;tr<Kr.length;tr+=1){for(Zr=!0,$t=0;$t<Kr[tr].length;$t+=1)if(Kr[tr][$t]!==void 0&&Kr[tr][$t]!==it[$t]){Zr=!1;break}if(Zr===!0){Mr=tn;break}}else for(tn in l)for(Kr=l[tn],tr=0;tr<Kr.length;tr+=1){for(Zr=!0,$t=0;$t<Kr[tr].length;$t+=1)if(Kr[tr][$t]!==void 0&&Kr[tr][$t]!==it.charCodeAt($t)){Zr=!1;break}if(Zr===!0){Mr=tn;break}}return Mr===a&&Ct!==a&&(Mr=Ct),Mr},p=function it(Ct){for(var tr=this.internal.write,$t=this.internal.putStream,Kr=(0,this.internal.getFilters)();Kr.indexOf("FlateEncode")!==-1;)Kr.splice(Kr.indexOf("FlateEncode"),1);Ct.objectId=this.internal.newObject();var Zr=[];if(Zr.push({key:"Type",value:"/XObject"}),Zr.push({key:"Subtype",value:"/Image"}),Zr.push({key:"Width",value:Ct.width}),Zr.push({key:"Height",value:Ct.height}),Ct.colorSpace===lt.INDEXED?Zr.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(Ct.palette.length/3-1)+" "+("sMask"in Ct&&Ct.sMask!==void 0?Ct.objectId+2:Ct.objectId+1)+" 0 R]"}):(Zr.push({key:"ColorSpace",value:"/"+Ct.colorSpace}),Ct.colorSpace===lt.DEVICE_CMYK&&Zr.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),Zr.push({key:"BitsPerComponent",value:Ct.bitsPerComponent}),"decodeParameters"in Ct&&Ct.decodeParameters!==void 0&&Zr.push({key:"DecodeParms",value:"<<"+Ct.decodeParameters+">>"}),"transparency"in Ct&&Array.isArray(Ct.transparency)){for(var tn="",Mr=0,Vr=Ct.transparency.length;Mr<Vr;Mr++)tn+=Ct.transparency[Mr]+" "+Ct.transparency[Mr]+" ";Zr.push({key:"Mask",value:"["+tn+"]"})}Ct.sMask!==void 0&&Zr.push({key:"SMask",value:Ct.objectId+1+" 0 R"});var Zn=Ct.filter!==void 0?["/"+Ct.filter]:void 0;if($t({data:Ct.data,additionalKeyValues:Zr,alreadyAppliedFilters:Zn,objectId:Ct.objectId}),tr("endobj"),"sMask"in Ct&&Ct.sMask!==void 0){var In=(Ct.predictor!=null?"/Predictor "+Ct.predictor:"")+" /Colors 1 /BitsPerComponent 8 /Columns "+Ct.width,tt={width:Ct.width,height:Ct.height,colorSpace:"DeviceGray",bitsPerComponent:Ct.bitsPerComponent,decodeParameters:In,data:Ct.sMask};"filter"in Ct&&(tt.filter=Ct.filter),it.call(this,tt)}if(Ct.colorSpace===lt.INDEXED){var Et=this.internal.newObject();$t({data:ir(new Uint8Array(Ct.palette)),objectId:Et}),tr("endobj")}},O=function(){var it=this.internal.collections[o+"images"];for(var Ct in it)p.call(this,it[Ct])},E=function(){var it,Ct=this.internal.collections[o+"images"],tr=this.internal.write;for(var $t in Ct)tr("/I"+(it=Ct[$t]).index,it.objectId,"0","R")},R=function(){this.internal.collections[o+"images"]||(this.internal.collections[o+"images"]={},this.internal.events.subscribe("putResources",O),this.internal.events.subscribe("putXobjectDict",E))},V=function(){var it=this.internal.collections[o+"images"];return R.call(this),it},le=function(){return Object.keys(this.internal.collections[o+"images"]).length},Re=function(it){return typeof n["process"+it.toUpperCase()]=="function"},$e=function(it){return(0,ve.Z)(it)==="object"&&it.nodeType===1},oe=function(it,Ct){if(it.nodeName==="IMG"&&it.hasAttribute("src")){var tr=""+it.getAttribute("src");if(tr.indexOf("data:image/")===0)return vn(unescape(tr).split("base64,").pop());var $t=n.loadFile(tr,!0);if($t!==void 0)return $t}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 Kr;switch(Ct){case"PNG":Kr="image/png";break;case"WEBP":Kr="image/webp";break;default:Kr="image/jpeg"}return vn(it.toDataURL(Kr,1).split("base64,").pop())}},gt=function(it){var Ct=this.internal.collections[o+"images"];if(Ct){for(var tr in Ct)if(it===Ct[tr].alias)return Ct[tr]}},dt=function(it,Ct,tr){return it||Ct||(it=-96,Ct=-96),it<0&&(it=-1*tr.width*72/it/this.internal.scaleFactor),Ct<0&&(Ct=-1*tr.height*72/Ct/this.internal.scaleFactor),it===0&&(it=Ct*tr.width/tr.height),Ct===0&&(Ct=it*tr.height/tr.width),[it,Ct]},yt=function(it,Ct,tr,$t,Kr,Zr){var tn=dt.call(this,tr,$t,Kr),Mr=this.internal.getCoordinateString,Vr=this.internal.getVerticalCoordinateString,Zn=V.call(this);if(tr=tn[0],$t=tn[1],Zn[Kr.index]=Kr,Zr){Zr*=Math.PI/180;var In=Math.cos(Zr),tt=Math.sin(Zr),Et=function(er){return er.toFixed(4)},Nt=[Et(In),Et(tt),Et(-1*tt),Et(In),0,0,"cm"]}this.internal.write("q"),Zr?(this.internal.write([1,"0","0",1,Mr(it),Vr(Ct+$t),"cm"].join(" ")),this.internal.write(Nt.join(" ")),this.internal.write([Mr(tr),"0","0",Mr($t),"0","0","cm"].join(" "))):this.internal.write([Mr(tr),"0","0",Mr($t),Mr(it),Vr(Ct+$t),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+Kr.index+" Do"),this.internal.write("Q")},lt=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 Xt=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},Qt=n.__addimage__.sHashCode=function(it){var Ct,tr,$t=0;if(typeof it=="string")for(tr=it.length,Ct=0;Ct<tr;Ct++)$t=($t<<5)-$t+it.charCodeAt(Ct),$t|=0;else if(rn(it))for(tr=it.byteLength/2,Ct=0;Ct<tr;Ct++)$t=($t<<5)-$t+it[Ct],$t|=0;return $t},It=n.__addimage__.validateStringAsBase64=function(it){(it=it||"").toString().trim();var Ct=!0;return it.length===0&&(Ct=!1),it.length%4!=0&&(Ct=!1),/^[A-Za-z0-9+/]+$/.test(it.substr(0,it.length-2))===!1&&(Ct=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(it.substr(-2))===!1&&(Ct=!1),Ct},kr=n.__addimage__.extractImageFromDataUrl=function(it){if(it==null||!(it=it.trim()).startsWith("data:"))return null;var Ct=it.indexOf(",");return Ct<0?null:it.substring(0,Ct).trim().endsWith("base64")?it.substring(Ct+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},Pr=n.__addimage__.binaryStringToUint8Array=function(it){for(var Ct=it.length,tr=new Uint8Array(Ct),$t=0;$t<Ct;$t++)tr[$t]=it.charCodeAt($t);return tr},ir=n.__addimage__.arrayBufferToBinaryString=function(it){for(var Ct="",tr=rn(it)?it:new Uint8Array(it),$t=0;$t<tr.length;$t+=8192)Ct+=String.fromCharCode.apply(null,tr.subarray($t,$t+8192));return Ct};n.addImage=function(){var it,Ct,tr,$t,Kr,Zr,tn,Mr,Vr;if(typeof arguments[1]=="number"?(Ct=a,tr=arguments[1],$t=arguments[2],Kr=arguments[3],Zr=arguments[4],tn=arguments[5],Mr=arguments[6],Vr=arguments[7]):(Ct=arguments[1],tr=arguments[2],$t=arguments[3],Kr=arguments[4],Zr=arguments[5],tn=arguments[6],Mr=arguments[7],Vr=arguments[8]),(0,ve.Z)(it=arguments[0])==="object"&&!$e(it)&&"imageData"in it){var Zn=it;it=Zn.imageData,Ct=Zn.format||Ct||a,tr=Zn.x||tr||0,$t=Zn.y||$t||0,Kr=Zn.w||Zn.width||Kr,Zr=Zn.h||Zn.height||Zr,tn=Zn.alias||tn,Mr=Zn.compression||Mr,Vr=Zn.rotation||Zn.angle||Vr}var In=this.internal.getFilters();if(Mr===void 0&&In.indexOf("FlateEncode")!==-1&&(Mr="SLOW"),isNaN(tr)||isNaN($t))throw new Error("Invalid coordinates passed to jsPDF.addImage");R.call(this);var tt=Lt.call(this,it,Ct,tn,Mr);return yt.call(this,tr,$t,Kr,Zr,tt,Vr),this};var Lt=function(it,Ct,tr,$t){var Kr,Zr,tn;if(typeof it=="string"&&A(it)===a){it=unescape(it);var Mr=wr(it,!1);(Mr!==""||(Mr=n.loadFile(it,!0))!==void 0)&&(it=Mr)}if($e(it)&&(it=oe(it,Ct)),Ct=A(it,Ct),!Re(Ct))throw new Error("addImage does not support files of type '"+Ct+"', please ensure that a plugin for '"+Ct+"' support is added.");if(((tn=tr)==null||tn.length===0)&&(tr=function(Vr){return typeof Vr=="string"||rn(Vr)?Qt(Vr):rn(Vr.data)?Qt(Vr.data):null}(it)),(Kr=gt.call(this,tr))||(it instanceof Uint8Array||Ct==="RGBA"||(Zr=it,it=Pr(it)),Kr=this["process"+Ct.toUpperCase()](it,le.call(this),tr,function(Vr){return Vr&&typeof Vr=="string"&&(Vr=Vr.toUpperCase()),Vr in n.image_compression?Vr:Xt.NONE}($t),Zr)),!Kr)throw new Error("An unknown error occurred whilst processing the image.");return Kr},wr=n.__addimage__.convertBase64ToBinaryString=function(it,Ct){Ct=typeof Ct!="boolean"||Ct;var tr,$t="";if(typeof it=="string"){var Kr;tr=(Kr=kr(it))!==null&&Kr!==void 0?Kr:it;try{$t=vn(tr)}catch(Zr){if(Ct)throw It(tr)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+Zr.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return $t};n.getImageProperties=function(it){var Ct,tr,$t="";if($e(it)&&(it=oe(it)),typeof it=="string"&&A(it)===a&&(($t=wr(it,!1))===""&&($t=n.loadFile(it)||""),it=$t),tr=A(it),!Re(tr))throw new Error("addImage does not support files of type '"+tr+"', please ensure that a plugin for '"+tr+"' support is added.");if(it instanceof Uint8Array||(it=Pr(it)),!(Ct=this["process"+tr.toUpperCase()](it)))throw new Error("An unknown error occurred whilst processing the image");return Ct.fileType=tr,Ct}})(Aa.API),function(n){var o=function(a){if(a!==void 0&&a!="")return!0};Aa.API.events.push(["addPage",function(a){this.internal.getPageInfo(a.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(a){for(var l,A,p,O=this.internal.getCoordinateString,E=this.internal.getVerticalCoordinateString,R=this.internal.getPageInfoByObjId(a.objId),V=a.pageContext.annotations,le=!1,Re=0;Re<V.length&&!le;Re++)switch((l=V[Re]).type){case"link":(o(l.options.url)||o(l.options.pageNumber))&&(le=!0);break;case"reference":case"text":case"freetext":le=!0}if(le!=0){this.internal.write("/Annots [");for(var $e=0;$e<V.length;$e++){l=V[$e];var oe=this.internal.pdfEscape,gt=this.internal.getEncryptor(a.objId);switch(l.type){case"reference":this.internal.write(" "+l.object.objId+" 0 R ");break;case"text":var dt=this.internal.newAdditionalObject(),yt=this.internal.newAdditionalObject(),lt=this.internal.getEncryptor(dt.objId),Xt=l.title||"Note";p="<</Type /Annot /Subtype /Text "+(A="/Rect ["+O(l.bounds.x)+" "+E(l.bounds.y+l.bounds.h)+" "+O(l.bounds.x+l.bounds.w)+" "+E(l.bounds.y)+"] ")+"/Contents ("+oe(lt(l.contents))+")",p+=" /Popup "+yt.objId+" 0 R",p+=" /P "+R.objId+" 0 R",p+=" /T ("+oe(lt(Xt))+") >>",dt.content=p;var Qt=dt.objId+" 0 R";p="<</Type /Annot /Subtype /Popup "+(A="/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&&(p+=" /Open true"),p+=" >>",yt.content=p,this.internal.write(dt.objId,"0 R",yt.objId,"0 R");break;case"freetext":A="/Rect ["+O(l.bounds.x)+" "+E(l.bounds.y)+" "+O(l.bounds.x+l.bounds.w)+" "+E(l.bounds.y+l.bounds.h)+"] ";var It=l.color||"#000000";p="<</Type /Annot /Subtype /FreeText "+A+"/Contents ("+oe(gt(l.contents))+")",p+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+It+")",p+=" /Border [0 0 0]",p+=" >>",this.internal.write(p);break;case"link":if(l.options.name){var kr=this.annotations._nameMap[l.options.name];l.options.pageNumber=kr.page,l.options.top=kr.y}else l.options.top||(l.options.top=0);if(A="/Rect ["+l.finalBounds.x+" "+l.finalBounds.y+" "+l.finalBounds.w+" "+l.finalBounds.h+"] ",p="",l.options.url)p="<</Type /Annot /Subtype /Link "+A+"/Border [0 0 0] /A <</S /URI /URI ("+oe(gt(l.options.url))+") >>";else if(l.options.pageNumber)switch(p="<</Type /Annot /Subtype /Link "+A+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(l.options.pageNumber).objId+" 0 R",l.options.magFactor=l.options.magFactor||"XYZ",l.options.magFactor){case"Fit":p+=" /Fit]";break;case"FitH":p+=" /FitH "+l.options.top+"]";break;case"FitV":l.options.left=l.options.left||0,p+=" /FitV "+l.options.left+"]";break;default:var rn=E(l.options.top);l.options.left=l.options.left||0,l.options.zoom===void 0&&(l.options.zoom=0),p+=" /XYZ "+l.options.left+" "+rn+" "+l.options.zoom+"]"}p!=""&&(p+=" >>",this.internal.write(p))}}this.internal.write("]")}}]),n.createAnnotation=function(a){var l=this.internal.getCurrentPageInfo();switch(a.type){case"link":this.link(a.bounds.x,a.bounds.y,a.bounds.w,a.bounds.h,a);break;case"text":case"freetext":l.pageContext.annotations.push(a)}},n.link=function(a,l,A,p,O){var E=this.internal.getCurrentPageInfo(),R=this.internal.getCoordinateString,V=this.internal.getVerticalCoordinateString;E.pageContext.annotations.push({finalBounds:{x:R(a),y:V(l),w:R(a+A),h:V(l+p)},options:O,type:"link"})},n.textWithLink=function(a,l,A,p){var O,E,R=this.getTextWidth(a),V=this.internal.getLineHeight()/this.internal.scaleFactor;if(p.maxWidth!==void 0){E=p.maxWidth;var le=this.splitTextToSize(a,E).length;O=Math.ceil(V*le)}else E=R,O=V;return this.text(a,l,A,p),A+=.2*V,p.align==="center"&&(l-=R/2),p.align==="right"&&(l-=R),this.link(l,A-V,E,O,p),R},n.getTextWidth=function(a){var l=this.internal.getFontSize();return this.getStringUnitWidth(a)*l/this.internal.scaleFactor}}(Aa.API),function(n){var o={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},a={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},l={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},A=[1570,1571,1573,1575];n.__arabicParser__={};var p=n.__arabicParser__.isInArabicSubstitutionA=function(dt){return o[dt.charCodeAt(0)]!==void 0},O=n.__arabicParser__.isArabicLetter=function(dt){return typeof dt=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(dt)},E=n.__arabicParser__.isArabicEndLetter=function(dt){return O(dt)&&p(dt)&&o[dt.charCodeAt(0)].length<=2},R=n.__arabicParser__.isArabicAlfLetter=function(dt){return O(dt)&&A.indexOf(dt.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(dt){return O(dt)&&p(dt)&&o[dt.charCodeAt(0)].length>=1};var V=n.__arabicParser__.arabicLetterHasFinalForm=function(dt){return O(dt)&&p(dt)&&o[dt.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(dt){return O(dt)&&p(dt)&&o[dt.charCodeAt(0)].length>=3};var le=n.__arabicParser__.arabicLetterHasMedialForm=function(dt){return O(dt)&&p(dt)&&o[dt.charCodeAt(0)].length==4},Re=n.__arabicParser__.resolveLigatures=function(dt){var yt=0,lt=a,Xt="",Qt=0;for(yt=0;yt<dt.length;yt+=1)lt[dt.charCodeAt(yt)]!==void 0?(Qt++,typeof(lt=lt[dt.charCodeAt(yt)])=="number"&&(Xt+=String.fromCharCode(lt),lt=a,Qt=0),yt===dt.length-1&&(lt=a,Xt+=dt.charAt(yt-(Qt-1)),yt-=Qt-1,Qt=0)):(lt=a,Xt+=dt.charAt(yt-Qt),yt-=Qt,Qt=0);return Xt};n.__arabicParser__.isArabicDiacritic=function(dt){return dt!==void 0&&l[dt.charCodeAt(0)]!==void 0};var $e=n.__arabicParser__.getCorrectForm=function(dt,yt,lt){return O(dt)?p(dt)===!1?-1:!V(dt)||!O(yt)&&!O(lt)||!O(lt)&&E(yt)||E(dt)&&!O(yt)||E(dt)&&R(yt)||E(dt)&&E(yt)?0:le(dt)&&O(yt)&&!E(yt)&&O(lt)&&V(lt)?3:E(dt)||!O(lt)?1:2:-1},oe=function(dt){var yt=0,lt=0,Xt=0,Qt="",It="",kr="",rn=(dt=dt||"").split("\\s+"),Pr=[];for(yt=0;yt<rn.length;yt+=1){for(Pr.push(""),lt=0;lt<rn[yt].length;lt+=1)Qt=rn[yt][lt],It=rn[yt][lt-1],kr=rn[yt][lt+1],O(Qt)?(Xt=$e(Qt,It,kr),Pr[yt]+=Xt!==-1?String.fromCharCode(o[Qt.charCodeAt(0)][Xt]):Qt):Pr[yt]+=Qt;Pr[yt]=Re(Pr[yt])}return Pr.join(" ")},gt=n.__arabicParser__.processArabic=n.processArabic=function(){var dt,yt=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,lt=[];if(Array.isArray(yt)){var Xt=0;for(lt=[],Xt=0;Xt<yt.length;Xt+=1)Array.isArray(yt[Xt])?lt.push([oe(yt[Xt][0]),yt[Xt][1],yt[Xt][2]]):lt.push([oe(yt[Xt])]);dt=lt}else dt=oe(yt);return typeof arguments[0]=="string"?dt:(arguments[0].text=dt,arguments[0])};n.events.push(["preProcessText",gt])}(Aa.API),Aa.API.autoPrint=function(n){var o;return(n=n||{}).variant=n.variant||"non-conform",n.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){o=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+o+" 0 R")})),this},function(n){var o=function(){var a=void 0;Object.defineProperty(this,"pdf",{get:function(){return a},set:function(E){a=E}});var l=150;Object.defineProperty(this,"width",{get:function(){return l},set:function(E){l=isNaN(E)||Number.isInteger(E)===!1||E<0?150:E,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=l+1)}});var A=300;Object.defineProperty(this,"height",{get:function(){return A},set:function(E){A=isNaN(E)||Number.isInteger(E)===!1||E<0?300:E,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=A+1)}});var p=[];Object.defineProperty(this,"childNodes",{get:function(){return p},set:function(E){p=E}});var 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 A;if((a=a||"2d")!=="2d")return null;for(A in l)this.pdf.context2d.hasOwnProperty(A)&&(this.pdf.context2d[A]=l[A]);return this.pdf.context2d._canvas=this,this.pdf.context2d},o.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new o,this.canvas.pdf=this}])}(Aa.API),function(n){var o={left:0,top:0,bottom:0,right:0},a=!1,l=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},o),this.internal.__cell__.margins.width=this.getPageWidth(),A.call(this))},A=function(){this.internal.__cell__.lastCell=new p,this.internal.__cell__.pages=1},p=function(){var R=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return R},set:function(dt){R=dt}});var V=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return V},set:function(dt){V=dt}});var le=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return le},set:function(dt){le=dt}});var Re=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return Re},set:function(dt){Re=dt}});var $e=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return $e},set:function(dt){$e=dt}});var oe=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return oe},set:function(dt){oe=dt}});var gt=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return gt},set:function(dt){gt=dt}}),this};p.prototype.clone=function(){return new p(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},p.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(R){return l.call(this),this.internal.__cell__.headerFunction=typeof R=="function"?R:void 0,this},n.getTextDimensions=function(R,V){l.call(this);var le=(V=V||{}).fontSize||this.getFontSize(),Re=V.font||this.getFont(),$e=V.scaleFactor||this.internal.scaleFactor,oe=0,gt=0,dt=0,yt=this;if(!Array.isArray(R)&&typeof R!="string"){if(typeof R!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");R=String(R)}var lt=V.maxWidth;lt>0?typeof R=="string"?R=this.splitTextToSize(R,lt):Object.prototype.toString.call(R)==="[object Array]"&&(R=R.reduce(function(Qt,It){return Qt.concat(yt.splitTextToSize(It,lt))},[])):R=Array.isArray(R)?R:[R];for(var Xt=0;Xt<R.length;Xt++)oe<(dt=this.getStringUnitWidth(R[Xt],{font:Re})*le)&&(oe=dt);return oe!==0&&(gt=R.length),{w:oe/=$e,h:Math.max((gt*le*this.getLineHeightFactor()-le*(this.getLineHeightFactor()-1))/$e,0)}},n.cellAddPage=function(){l.call(this),this.addPage();var R=this.internal.__cell__.margins||o;return this.internal.__cell__.lastCell=new p(R.left,R.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var O=n.cell=function(){var R;R=arguments[0]instanceof p?arguments[0]:new p(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),l.call(this);var V=this.internal.__cell__.lastCell,le=this.internal.__cell__.padding,Re=this.internal.__cell__.margins||o,$e=this.internal.__cell__.tableHeaderRow,oe=this.internal.__cell__.printHeaders;return V.lineNumber!==void 0&&(V.lineNumber===R.lineNumber?(R.x=(V.x||0)+(V.width||0),R.y=V.y||0):V.y+V.height+R.height+Re.bottom>this.getPageHeight()?(this.cellAddPage(),R.y=Re.top,oe&&$e&&(this.printHeaderRow(R.lineNumber,!0),R.y+=$e[0].height)):R.y=V.y+V.height||R.y),R.text[0]!==void 0&&(this.rect(R.x,R.y,R.width,R.height,a===!0?"FD":void 0),R.align==="right"?this.text(R.text,R.x+R.width-le,R.y+le,{align:"right",baseline:"top"}):R.align==="center"?this.text(R.text,R.x+R.width/2,R.y+le,{align:"center",baseline:"top",maxWidth:R.width-le-le}):this.text(R.text,R.x+le,R.y+le,{align:"left",baseline:"top",maxWidth:R.width-le-le})),this.internal.__cell__.lastCell=R,this};n.table=function(R,V,le,Re,$e){if(l.call(this),!le)throw new Error("No data for PDF table.");var oe,gt,dt,yt,lt=[],Xt=[],Qt=[],It={},kr={},rn=[],Pr=[],ir=($e=$e||{}).autoSize||!1,Lt=$e.printHeaders!==!1,wr=$e.css&&$e.css["font-size"]!==void 0?16*$e.css["font-size"]:$e.fontSize||12,it=$e.margins||Object.assign({width:this.getPageWidth()},o),Ct=typeof $e.padding=="number"?$e.padding:3,tr=$e.headerBackgroundColor||"#c8c8c8",$t=$e.headerTextColor||"#000";if(A.call(this),this.internal.__cell__.printHeaders=Lt,this.internal.__cell__.margins=it,this.internal.__cell__.table_font_size=wr,this.internal.__cell__.padding=Ct,this.internal.__cell__.headerBackgroundColor=tr,this.internal.__cell__.headerTextColor=$t,this.setFontSize(wr),Re==null)Xt=lt=Object.keys(le[0]),Qt=lt.map(function(){return"left"});else if(Array.isArray(Re)&&(0,ve.Z)(Re[0])==="object")for(lt=Re.map(function(Zn){return Zn.name}),Xt=Re.map(function(Zn){return Zn.prompt||Zn.name||""}),Qt=Re.map(function(Zn){return Zn.align||"left"}),oe=0;oe<Re.length;oe+=1)kr[Re[oe].name]=.7499990551181103*Re[oe].width;else Array.isArray(Re)&&typeof Re[0]=="string"&&(Xt=lt=Re,Qt=lt.map(function(){return"left"}));if(ir||Array.isArray(Re)&&typeof Re[0]=="string")for(oe=0;oe<lt.length;oe+=1){for(It[yt=lt[oe]]=le.map(function(Zn){return Zn[yt]}),this.setFont(void 0,"bold"),rn.push(this.getTextDimensions(Xt[oe],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),gt=It[yt],this.setFont(void 0,"normal"),dt=0;dt<gt.length;dt+=1)rn.push(this.getTextDimensions(gt[dt],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);kr[yt]=Math.max.apply(null,rn)+Ct+Ct,rn=[]}if(Lt){var Kr={};for(oe=0;oe<lt.length;oe+=1)Kr[lt[oe]]={},Kr[lt[oe]].text=Xt[oe],Kr[lt[oe]].align=Qt[oe];var Zr=E.call(this,Kr,kr);Pr=lt.map(function(Zn){return new p(R,V,kr[Zn],Zr,Kr[Zn].text,void 0,Kr[Zn].align)}),this.setTableHeaderRow(Pr),this.printHeaderRow(1,!1)}var tn=Re.reduce(function(Zn,In){return Zn[In.name]=In.align,Zn},{});for(oe=0;oe<le.length;oe+=1){"rowStart"in $e&&$e.rowStart instanceof Function&&$e.rowStart({row:oe,data:le[oe]},this);var Mr=E.call(this,le[oe],kr);for(dt=0;dt<lt.length;dt+=1){var Vr=le[oe][lt[dt]];"cellStart"in $e&&$e.cellStart instanceof Function&&$e.cellStart({row:oe,col:dt,data:Vr},this),O.call(this,new p(R,V,kr[lt[dt]],Mr,Vr,oe+2,tn[lt[dt]]))}}return this.internal.__cell__.table_x=R,this.internal.__cell__.table_y=V,this};var E=function(R,V){var le=this.internal.__cell__.padding,Re=this.internal.__cell__.table_font_size,$e=this.internal.scaleFactor;return Object.keys(R).map(function(oe){var gt=R[oe];return this.splitTextToSize(gt.hasOwnProperty("text")?gt.text:gt,V[oe]-le-le)},this).map(function(oe){return this.getLineHeightFactor()*oe.length*Re/$e+le+le},this).reduce(function(oe,gt){return Math.max(oe,gt)},0)};n.setTableHeaderRow=function(R){l.call(this),this.internal.__cell__.tableHeaderRow=R},n.printHeaderRow=function(R,V){if(l.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var le;if(a=!0,typeof this.internal.__cell__.headerFunction=="function"){var Re=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new p(Re[0],Re[1],Re[2],Re[3],void 0,-1)}this.setFont(void 0,"bold");for(var $e=[],oe=0;oe<this.internal.__cell__.tableHeaderRow.length;oe+=1){le=this.internal.__cell__.tableHeaderRow[oe].clone(),V&&(le.y=this.internal.__cell__.margins.top||0,$e.push(le)),le.lineNumber=R;var gt=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),O.call(this,le),this.setTextColor(gt)}$e.length>0&&this.setTableHeaderRow($e),this.setFont(void 0,"normal"),a=!1}}(Aa.API);var _c={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"],Jc=bo(dd),oA=[100,200,300,400,500,600,700,800,900],hu=bo(oA);function YA(n){var o=n.family.replace(/"|'/g,"").toLowerCase(),a=function(p){return _c[p=p||"normal"]?p:"normal"}(n.style),l=function(p){return p?typeof p=="number"?p>=100&&p<=900&&p%100==0?p:400:/^\d00$/.test(p)?parseInt(p):p==="bold"?700:400:400}(n.weight),A=function(p){return typeof Jc[p=p||"normal"]=="number"?p:"normal"}(n.stretch);return{family:o,style:a,weight:l,stretch:A,src:n.src||[],ref:n.ref||{name:o,style:[A,a,l].join(" ")}}}function pu(n,o,a,l){var A;for(A=a;A>=0&&A<o.length;A+=l)if(n[o[A]])return n[o[A]];for(A=a;A>=0&&A<o.length;A-=l)if(n[o[A]])return n[o[A]]}var Qu={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},MA={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function Ku(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function Vd(n){return n.trimLeft()}function qA(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 Hc,fg,Uh,Rh,om,hg,jm,pg,zm=["times"];function sm(n,o,a,l){var A=4,p=gg;switch(l){case Aa.API.image_compression.FAST:A=1,p=mg;break;case Aa.API.image_compression.MEDIUM:A=6,p=R0;break;case Aa.API.image_compression.SLOW:A=9,p=$m}n=function(E,R,V,le){for(var Re,$e=E.length/R,oe=new Uint8Array(E.length+$e),gt=[Jg,mg,gg,R0,$m],dt=0;dt<$e;dt+=1){var yt=dt*R,lt=E.subarray(yt,yt+R);if(le)oe.set(le(lt,V,Re),yt+dt);else{for(var Xt=gt.length,Qt=[],It=0;It<Xt;It+=1)Qt[It]=gt[It](lt,V,Re);var kr=Cp(Qt.concat());oe.set(Qt[kr],yt+dt)}Re=lt}return oe}(n,o,a,p);var O=Ti(n,{level:A});return Aa.API.__addimage__.arrayBufferToBinaryString(O)}function Jg(n){var o=Array.apply([],n);return o.unshift(0),o}function mg(n,o){var a=n.length,l=[];l[0]=1;for(var A=0;A<a;A+=1){var p=n[A-o]||0;l[A+1]=n[A]-p+256&255}return l}function gg(n,o,a){var l=n.length,A=[];A[0]=2;for(var p=0;p<l;p+=1){var O=a&&a[p]||0;A[p+1]=n[p]-O+256&255}return A}function R0(n,o,a){var l=n.length,A=[];A[0]=3;for(var p=0;p<l;p+=1){var O=n[p-o]||0,E=a&&a[p]||0;A[p+1]=n[p]+256-(O+E>>>1)&255}return A}function $m(n,o,a){var l=n.length,A=[];A[0]=4;for(var p=0;p<l;p+=1){var O=lm(n[p-o]||0,a&&a[p]||0,a&&a[p-o]||0);A[p+1]=n[p]-O+256&255}return A}function lm(n,o,a){if(n===o&&o===a)return n;var l=Math.abs(o-a),A=Math.abs(n-a),p=Math.abs(n+o-a-a);return l<=A&&l<=p?n:A<=p?o:a}function Cp(n){var o=n.map(function(a){return a.reduce(function(l,A){return l+Math.abs(A)},0)});return o.indexOf(Math.min.apply(null,o))}function cm(n,o,a){var l=o*a,A=Math.floor(l/8),p=16-(l-8*A+a),O=(1<<a)-1;return Bp(n,A)>>p&O}function Qh(n,o,a,l){var A=a*l,p=Math.floor(A/8),O=16-(A-8*p+l),E=(1<<l)-1,R=(o&E)<<O;(function(V,le,Re){if(le+1<V.byteLength)V.setUint16(le,Re,!1);else{var $e=Re>>8&255;V.setUint8(le,$e)}})(n,p,Bp(n,p)&~(E<<O)&65535|R)}function Bp(n,o){return o+1<n.byteLength?n.getUint16(o,!1):n.getUint8(o)<<8}function Zm(n){var o=0;if(n[o++]!==71||n[o++]!==73||n[o++]!==70||n[o++]!==56||(n[o++]+1&253)!=56||n[o++]!==97)throw new Error("Invalid GIF 87a/89a header.");var a=n[o++]|n[o++]<<8,l=n[o++]|n[o++]<<8,A=n[o++],p=A>>7,O=1<<1+(7&A);n[o++],n[o++];var E=null,R=null;p&&(E=o,R=O,o+=3*O);var V=!0,le=[],Re=0,$e=null,oe=0,gt=null;for(this.width=a,this.height=l;V&&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,gt=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 dt=n[o++];Re=n[o++]|n[o++]<<8,$e=n[o++],1&dt||($e=null),oe=dt>>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 yt=n[o++]|n[o++]<<8,lt=n[o++]|n[o++]<<8,Xt=n[o++]|n[o++]<<8,Qt=n[o++]|n[o++]<<8,It=n[o++],kr=It>>6&1,rn=1<<1+(7&It),Pr=E,ir=R,Lt=!1;It>>7&&(Lt=!0,Pr=o,ir=rn,o+=3*rn);var wr=o;for(o++;;){var it;if(!((it=n[o++])>=0))throw Error("Invalid block size");if(it===0)break;o+=it}le.push({x:yt,y:lt,width:Xt,height:Qt,has_local_palette:Lt,palette_offset:Pr,palette_size:ir,data_offset:wr,data_length:o-wr,transparent_index:$e,interlaced:!!kr,delay:Re,disposal:oe});break;case 59:V=!1;break;default:throw new Error("Unknown gif block: 0x"+n[o-1].toString(16))}this.numFrames=function(){return le.length},this.loopCount=function(){return gt},this.frameInfo=function(Ct){if(Ct<0||Ct>=le.length)throw new Error("Frame index out of range.");return le[Ct]},this.decodeAndBlitFrameBGRA=function(Ct,tr){var $t=this.frameInfo(Ct),Kr=$t.width*$t.height,Zr=new Uint8Array(Kr);vg(n,$t.data_offset,Zr,Kr);var tn=$t.palette_offset,Mr=$t.transparent_index;Mr===null&&(Mr=256);var Vr=$t.width,Zn=a-Vr,In=Vr,tt=4*($t.y*a+$t.x),Et=4*(($t.y+$t.height)*a+$t.x),Nt=tt,er=4*Zn;$t.interlaced===!0&&(er+=4*a*7);for(var dr=8,Br=0,Gr=Zr.length;Br<Gr;++Br){var Ur=Zr[Br];if(In===0&&(In=Vr,(Nt+=er)>=Et&&(er=4*Zn+4*a*(dr-1),Nt=tt+(Vr+Zn)*(dr<<1),dr>>=1)),Ur===Mr)Nt+=4;else{var wn=n[tn+3*Ur],zn=n[tn+3*Ur+1],hi=n[tn+3*Ur+2];tr[Nt++]=hi,tr[Nt++]=zn,tr[Nt++]=wn,tr[Nt++]=255}--In}},this.decodeAndBlitFrameRGBA=function(Ct,tr){var $t=this.frameInfo(Ct),Kr=$t.width*$t.height,Zr=new Uint8Array(Kr);vg(n,$t.data_offset,Zr,Kr);var tn=$t.palette_offset,Mr=$t.transparent_index;Mr===null&&(Mr=256);var Vr=$t.width,Zn=a-Vr,In=Vr,tt=4*($t.y*a+$t.x),Et=4*(($t.y+$t.height)*a+$t.x),Nt=tt,er=4*Zn;$t.interlaced===!0&&(er+=4*a*7);for(var dr=8,Br=0,Gr=Zr.length;Br<Gr;++Br){var Ur=Zr[Br];if(In===0&&(In=Vr,(Nt+=er)>=Et&&(er=4*Zn+4*a*(dr-1),Nt=tt+(Vr+Zn)*(dr<<1),dr>>=1)),Ur===Mr)Nt+=4;else{var wn=n[tn+3*Ur],zn=n[tn+3*Ur+1],hi=n[tn+3*Ur+2];tr[Nt++]=wn,tr[Nt++]=zn,tr[Nt++]=hi,tr[Nt++]=255}--In}}}function vg(n,o,a,l){for(var A=n[o++],p=1<<A,O=p+1,E=O+1,R=A+1,V=(1<<R)-1,le=0,Re=0,$e=0,oe=n[o++],gt=new Int32Array(4096),dt=null;;){for(;le<16&&oe!==0;)Re|=n[o++]<<le,le+=8,oe===1?oe=n[o++]:--oe;if(le<R)break;var yt=Re&V;if(Re>>=R,le-=R,yt!==p){if(yt===O)break;for(var lt=yt<E?yt:dt,Xt=0,Qt=lt;Qt>p;)Qt=gt[Qt]>>8,++Xt;var It=Qt;if($e+Xt+(lt!==yt?1:0)>l)return void ks.log("Warning, gif stream longer than expected.");a[$e++]=It;var kr=$e+=Xt;for(lt!==yt&&(a[$e++]=It),Qt=lt;Xt--;)Qt=gt[Qt],a[--kr]=255&Qt,Qt>>=8;dt!==null&&E<4096&&(gt[E++]=dt<<8|It,E>=V+1&&R<12&&(++R,V=V<<1|1)),dt=yt}else E=O+1,V=(1<<(R=A+1))-1,dt=null}return $e!==l&&ks.log("Warning, gif stream shorter than expected."),a}function Vm(n){var o,a,l,A,p,O=Math.floor,E=new Array(64),R=new Array(64),V=new Array(64),le=new Array(64),Re=new Array(65535),$e=new Array(65535),oe=new Array(64),gt=new Array(64),dt=[],yt=0,lt=7,Xt=new Array(64),Qt=new Array(64),It=new Array(64),kr=new Array(256),rn=new Array(2048),Pr=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],ir=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],Lt=[0,1,2,3,4,5,6,7,8,9,10,11],wr=[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],Ct=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],tr=[0,1,2,3,4,5,6,7,8,9,10,11],$t=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],Kr=[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,Et){for(var Nt=0,er=0,dr=new Array,Br=1;Br<=16;Br++){for(var Gr=1;Gr<=tt[Br];Gr++)dr[Et[er]]=[],dr[Et[er]][0]=Nt,dr[Et[er]][1]=Br,er++,Nt++;Nt*=2}return dr}function tn(tt){for(var Et=tt[0],Nt=tt[1]-1;Nt>=0;)Et&1<<Nt&&(yt|=1<<lt),Nt--,--lt<0&&(yt==255?(Mr(255),Mr(0)):Mr(yt),lt=7,yt=0)}function Mr(tt){dt.push(tt)}function Vr(tt){Mr(tt>>8&255),Mr(255&tt)}function Zn(tt,Et,Nt,er,dr){for(var Br,Gr=dr[0],Ur=dr[240],wn=function(Gn,wa){var ci,Ja,Fa,ts,yo,Wa,Hs,uo,Ca,ro,Ba=0;for(Ca=0;Ca<8;++Ca){ci=Gn[Ba],Ja=Gn[Ba+1],Fa=Gn[Ba+2],ts=Gn[Ba+3],yo=Gn[Ba+4],Wa=Gn[Ba+5],Hs=Gn[Ba+6];var yl=ci+(uo=Gn[Ba+7]),Ds=ci-uo,ma=Ja+Hs,wo=Ja-Hs,fl=Fa+Wa,La=Fa-Wa,is=ts+yo,xo=ts-yo,ql=yl+is,Ol=yl-is,as=ma+fl,Ya=ma-fl;Gn[Ba]=ql+as,Gn[Ba+4]=ql-as;var js=.707106781*(Ya+Ol);Gn[Ba+2]=Ol+js,Gn[Ba+6]=Ol-js;var Hh=.382683433*((ql=xo+La)-(Ya=wo+Ds)),jc=.5411961*ql+Hh,_f=1.306562965*Ya+Hh,Wd=.707106781*(as=La+wo),Ka=Ds+Wd,If=Ds-Wd;Gn[Ba+5]=If+jc,Gn[Ba+3]=If-jc,Gn[Ba+1]=Ka+_f,Gn[Ba+7]=Ka-_f,Ba+=8}for(Ba=0,Ca=0;Ca<8;++Ca){ci=Gn[Ba],Ja=Gn[Ba+8],Fa=Gn[Ba+16],ts=Gn[Ba+24],yo=Gn[Ba+32],Wa=Gn[Ba+40],Hs=Gn[Ba+48];var Ff=ci+(uo=Gn[Ba+56]),bu=ci-uo,yu=Ja+Hs,sc=Ja-Hs,Bs=Fa+Wa,hl=Fa-Wa,Gd=ts+yo,Xd=ts-yo,Hu=Ff+Gd,wu=Ff-Gd,sA=yu+Bs,xu=yu-Bs;Gn[Ba]=Hu+sA,Gn[Ba+32]=Hu-sA;var ju=.707106781*(xu+wu);Gn[Ba+16]=wu+ju,Gn[Ba+48]=wu-ju;var jh=.382683433*((Hu=Xd+hl)-(xu=sc+bu)),Jd=.5411961*Hu+jh,zh=1.306562965*xu+jh,$h=.707106781*(sA=hl+sc),Q0=bu+$h,Zh=bu-$h;Gn[Ba+40]=Zh+Jd,Gn[Ba+24]=Zh-Jd,Gn[Ba+8]=Q0+zh,Gn[Ba+56]=Q0-zh,Ba++}for(Ca=0;Ca<64;++Ca)ro=Gn[Ca]*wa[Ca],oe[Ca]=ro>0?ro+.5|0:ro-.5|0;return oe}(tt,Et),zn=0;zn<64;++zn)gt[Pr[zn]]=wn[zn];var hi=gt[0]-Nt;Nt=gt[0],hi==0?tn(er[0]):(tn(er[$e[Br=32767+hi]]),tn(Re[Br]));for(var Si=63;Si>0&>[Si]==0;)Si--;if(Si==0)return tn(Gr),Nt;for(var sn,Ft=1;Ft<=Si;){for(var Go=Ft;gt[Ft]==0&&Ft<=Si;)++Ft;var _o=Ft-Go;if(_o>=16){sn=_o>>4;for(var Ta=1;Ta<=sn;++Ta)tn(Ur);_o&=15}Br=32767+gt[Ft],tn(dr[(_o<<4)+$e[Br]]),tn(Re[Br]),Ft++}return Si!=63&&tn(Gr),Nt}function In(tt){tt=Math.min(Math.max(tt,1),100),p!=tt&&(function(Et){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],er=0;er<64;er++){var dr=O((Nt[er]*Et+50)/100);dr=Math.min(Math.max(dr,1),255),E[Pr[er]]=dr}for(var Br=[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],Gr=0;Gr<64;Gr++){var Ur=O((Br[Gr]*Et+50)/100);Ur=Math.min(Math.max(Ur,1),255),R[Pr[Gr]]=Ur}for(var wn=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],zn=0,hi=0;hi<8;hi++)for(var Si=0;Si<8;Si++)V[zn]=1/(E[Pr[zn]]*wn[hi]*wn[Si]*8),le[zn]=1/(R[Pr[zn]]*wn[hi]*wn[Si]*8),zn++}(tt<50?Math.floor(5e3/tt):Math.floor(200-2*tt)),p=tt)}this.encode=function(tt,Et){Et&&In(Et),dt=new Array,yt=0,lt=7,Vr(65496),Vr(65504),Vr(16),Mr(74),Mr(70),Mr(73),Mr(70),Mr(0),Mr(1),Mr(1),Mr(0),Vr(1),Vr(1),Mr(0),Mr(0),function(){Vr(65499),Vr(132),Mr(0);for(var Ja=0;Ja<64;Ja++)Mr(E[Ja]);Mr(1);for(var Fa=0;Fa<64;Fa++)Mr(R[Fa])}(),function(Ja,Fa){Vr(65472),Vr(17),Mr(8),Vr(Fa),Vr(Ja),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(){Vr(65476),Vr(418),Mr(0);for(var Ja=0;Ja<16;Ja++)Mr(ir[Ja+1]);for(var Fa=0;Fa<=11;Fa++)Mr(Lt[Fa]);Mr(16);for(var ts=0;ts<16;ts++)Mr(wr[ts+1]);for(var yo=0;yo<=161;yo++)Mr(it[yo]);Mr(1);for(var Wa=0;Wa<16;Wa++)Mr(Ct[Wa+1]);for(var Hs=0;Hs<=11;Hs++)Mr(tr[Hs]);Mr(17);for(var uo=0;uo<16;uo++)Mr($t[uo+1]);for(var Ca=0;Ca<=161;Ca++)Mr(Kr[Ca])}(),Vr(65498),Vr(12),Mr(3),Mr(1),Mr(0),Mr(2),Mr(17),Mr(3),Mr(17),Mr(0),Mr(63),Mr(0);var Nt=0,er=0,dr=0;yt=0,lt=7,this.encode.displayName="_encode_";for(var Br,Gr,Ur,wn,zn,hi,Si,sn,Ft,Go=tt.data,_o=tt.width,Ta=tt.height,Gn=4*_o,wa=0;wa<Ta;){for(Br=0;Br<Gn;){for(zn=Gn*wa+Br,Si=-1,sn=0,Ft=0;Ft<64;Ft++)hi=zn+(sn=Ft>>3)*Gn+(Si=4*(7&Ft)),wa+sn>=Ta&&(hi-=Gn*(wa+1+sn-Ta)),Br+Si>=Gn&&(hi-=Br+Si-Gn+4),Gr=Go[hi++],Ur=Go[hi++],wn=Go[hi++],Xt[Ft]=(rn[Gr]+rn[Ur+256|0]+rn[wn+512|0]>>16)-128,Qt[Ft]=(rn[Gr+768|0]+rn[Ur+1024|0]+rn[wn+1280|0]>>16)-128,It[Ft]=(rn[Gr+1280|0]+rn[Ur+1536|0]+rn[wn+1792|0]>>16)-128;Nt=Zn(Xt,V,Nt,o,l),er=Zn(Qt,le,er,a,A),dr=Zn(It,le,dr,a,A),Br+=32}wa+=8}if(lt>=0){var ci=[];ci[1]=lt+1,ci[0]=(1<<lt+1)-1,tn(ci)}return Vr(65497),new Uint8Array(dt)},n=n||50,function(){for(var tt=String.fromCharCode,Et=0;Et<256;Et++)kr[Et]=tt(Et)}(),o=Zr(ir,Lt),a=Zr(Ct,tr),l=Zr(wr,it),A=Zr($t,Kr),function(){for(var tt=1,Et=2,Nt=1;Nt<=15;Nt++){for(var er=tt;er<Et;er++)$e[32767+er]=Nt,Re[32767+er]=[],Re[32767+er][1]=Nt,Re[32767+er][0]=er;for(var dr=-(Et-1);dr<=-tt;dr++)$e[32767+dr]=Nt,Re[32767+dr]=[],Re[32767+dr][1]=Nt,Re[32767+dr][0]=Et-1+dr;tt<<=1,Et<<=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}(),In(n)}function mu(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 Sp(n){function o(Lt){if(!Lt)throw Error("assert :P")}function a(Lt,wr,it){for(var Ct=0;4>Ct;Ct++)if(Lt[wr+Ct]!=it.charCodeAt(Ct))return!0;return!1}function l(Lt,wr,it,Ct,tr){for(var $t=0;$t<tr;$t++)Lt[wr+$t]=it[Ct+$t]}function A(Lt,wr,it,Ct){for(var tr=0;tr<Ct;tr++)Lt[wr+tr]=it}function p(Lt){return new Int32Array(Lt)}function O(Lt,wr){for(var it=[],Ct=0;Ct<Lt;Ct++)it.push(new wr);return it}function E(Lt,wr){var it=[];return function Ct(tr,$t,Kr){for(var Zr=Kr[$t],tn=0;tn<Zr&&(tr.push(Kr.length>$t+1?[]:new wr),!(Kr.length<$t+1));tn++)Ct(tr[tn],$t+1,Kr)}(it,0,Lt),it}var R=function(){var Lt=this;function wr(h,B){for(var K=1<<B-1>>>0;h&K;)K>>>=1;return K?(h&K-1)+K:h}function it(h,B,K,pe,Ke){o(!(pe%K));do h[B+(pe-=K)]=Ke;while(0<pe)}function Ct(h,B,K,pe,Ke){if(o(2328>=Ke),512>=Ke)var Ze=p(512);else if((Ze=p(Ke))==null)return 0;return function(Ge,at,ut,ft,jt,mr){var wt,rr,pr=at,Wr=1<<ut,Cr=p(16),cn=p(16);for(o(jt!=0),o(ft!=null),o(Ge!=null),o(0<ut),rr=0;rr<jt;++rr){if(15<ft[rr])return 0;++Cr[ft[rr]]}if(Cr[0]==jt)return 0;for(cn[1]=0,wt=1;15>wt;++wt){if(Cr[wt]>1<<wt)return 0;cn[wt+1]=cn[wt]+Cr[wt]}for(rr=0;rr<jt;++rr)wt=ft[rr],0<ft[rr]&&(mr[cn[wt]++]=rr);if(cn[15]==1)return(ft=new tr).g=0,ft.value=mr[0],it(Ge,pr,1,Wr,ft),Wr;var bn,Vn=-1,kn=Wr-1,Sa=0,ia=1,Ho=1,ga=1<<ut;for(rr=0,wt=1,jt=2;wt<=ut;++wt,jt<<=1){if(ia+=Ho<<=1,0>(Ho-=Cr[wt]))return 0;for(;0<Cr[wt];--Cr[wt])(ft=new tr).g=wt,ft.value=mr[rr++],it(Ge,pr+Sa,jt,ga,ft),Sa=wr(Sa,wt)}for(wt=ut+1,jt=2;15>=wt;++wt,jt<<=1){if(ia+=Ho<<=1,0>(Ho-=Cr[wt]))return 0;for(;0<Cr[wt];--Cr[wt]){if(ft=new tr,(Sa&kn)!=Vn){for(pr+=ga,bn=1<<(Vn=wt)-ut;15>Vn&&!(0>=(bn-=Cr[Vn]));)++Vn,bn<<=1;Wr+=ga=1<<(bn=Vn-ut),Ge[at+(Vn=Sa&kn)].g=bn+ut,Ge[at+Vn].value=pr-at-Vn}ft.g=wt-ut,ft.value=mr[rr++],it(Ge,pr+(Sa>>ut),jt,ga,ft),Sa=wr(Sa,wt)}}return ia!=2*cn[15]-1?0:Wr}(h,B,K,pe,Ke,Ze)}function tr(){this.value=this.g=0}function $t(){this.value=this.g=0}function Kr(){this.G=O(5,tr),this.H=p(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=O(ef,$t)}function Zr(h,B,K,pe){o(h!=null),o(B!=null),o(2147483648>pe),h.Ca=254,h.I=0,h.b=-8,h.Ka=0,h.oa=B,h.pa=K,h.Jd=B,h.Yc=K+pe,h.Zc=4<=pe?K+pe-4+1:K,Gr(h)}function tn(h,B){for(var K=0;0<B--;)K|=wn(h,128)<<B;return K}function Mr(h,B){var K=tn(h,B);return Ur(h)?-K:K}function Vr(h,B,K,pe){var Ke,Ze=0;for(o(h!=null),o(B!=null),o(4294967288>pe),h.Sb=pe,h.Ra=0,h.u=0,h.h=0,4<pe&&(pe=4),Ke=0;Ke<pe;++Ke)Ze+=B[K+Ke]<<8*Ke;h.Ra=Ze,h.bb=pe,h.oa=B,h.pa=K}function Zn(h){for(;8<=h.u&&h.bb<h.Sb;)h.Ra>>>=8,h.Ra+=h.oa[h.pa+h.bb]<<a0-8>>>0,++h.bb,h.u-=8;er(h)&&(h.h=1,h.u=0)}function In(h,B){if(o(0<=B),!h.h&&B<=Pp){var K=Nt(h)&xd[B];return h.u+=B,Zn(h),K}return h.h=1,h.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 Et(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function Nt(h){return h.Ra>>>(h.u&a0-1)>>>0}function er(h){return o(h.bb<=h.Sb),h.h||h.bb==h.Sb&&h.u>a0}function dr(h,B){h.u=B,h.h=er(h)}function Br(h){h.u>=Mc&&(o(h.u>=Mc),Zn(h))}function Gr(h){o(h!=null&&h.oa!=null),h.pa<h.Zc?(h.I=(h.oa[h.pa++]|h.I<<8)>>>0,h.b+=8):(o(h!=null&&h.oa!=null),h.pa<h.Yc?(h.b+=8,h.I=h.oa[h.pa++]|h.I<<8):h.Ka?h.b=0:(h.I<<=8,h.b+=8,h.Ka=1))}function Ur(h){return tn(h,1)}function wn(h,B){var K=h.Ca;0>h.b&&Gr(h);var pe=h.b,Ke=K*B>>>8,Ze=(h.I>>>pe>Ke)+0;for(Ze?(K-=Ke,h.I-=Ke+1<<pe>>>0):K=Ke+1,pe=K,Ke=0;256<=pe;)Ke+=8,pe>>=8;return pe=7^Ke+Tp[pe],h.b-=pe,h.Ca=(K<<pe)-1,Ze}function zn(h,B,K){h[B+0]=K>>24&255,h[B+1]=K>>16&255,h[B+2]=K>>8&255,h[B+3]=255&K}function hi(h,B){return h[B+0]|h[B+1]<<8}function Si(h,B){return hi(h,B)|h[B+2]<<16}function sn(h,B){return hi(h,B)|hi(h,B+2)<<16}function Ft(h,B){var K=1<<B;return o(h!=null),o(0<B),h.X=p(K),h.X==null?0:(h.Mb=32-B,h.Xa=B,1)}function Go(h,B){o(h!=null),o(B!=null),o(h.Xa==B.Xa),l(B.X,0,h.X,0,1<<B.Xa)}function _o(){this.X=[],this.Xa=this.Mb=0}function Ta(h,B,K,pe){o(K!=null),o(pe!=null);var Ke=K[0],Ze=pe[0];return Ke==0&&(Ke=(h*Ze+B/2)/B),Ze==0&&(Ze=(B*Ke+h/2)/h),0>=Ke||0>=Ze?0:(K[0]=Ke,pe[0]=Ze,1)}function Gn(h,B){return h+(1<<B)-1>>>B}function wa(h,B){return((4278255360&h)+(4278255360&B)>>>0&4278255360)+((16711935&h)+(16711935&B)>>>0&16711935)>>>0}function ci(h,B){Lt[B]=function(K,pe,Ke,Ze,Ge,at,ut){var ft;for(ft=0;ft<Ge;++ft){var jt=Lt[h](at[ut+ft-1],Ke,Ze+ft);at[ut+ft]=wa(K[pe+ft],jt)}}}function Ja(){this.ud=this.hd=this.jd=0}function Fa(h,B){return((4278124286&(h^B))>>>1)+(h&B)>>>0}function ts(h){return 0<=h&&256>h?h:0>h?0:255<h?255:void 0}function yo(h,B){return ts(h+(h-B+.5>>1))}function Wa(h,B,K){return Math.abs(B-K)-Math.abs(h-K)}function Hs(h,B,K,pe,Ke,Ze,Ge){for(pe=Ze[Ge-1],K=0;K<Ke;++K)Ze[Ge+K]=pe=wa(h[B+K],pe)}function uo(h,B,K,pe,Ke){var Ze;for(Ze=0;Ze<K;++Ze){var Ge=h[B+Ze],at=Ge>>8&255,ut=16711935&(ut=(ut=16711935&Ge)+((at<<16)+at));pe[Ke+Ze]=(4278255360&Ge)+ut>>>0}}function Ca(h,B){B.jd=255&h,B.hd=h>>8&255,B.ud=h>>16&255}function ro(h,B,K,pe,Ke,Ze){var Ge;for(Ge=0;Ge<pe;++Ge){var at=B[K+Ge],ut=at>>>8,ft=at,jt=255&(jt=(jt=at>>>16)+((h.jd<<24>>24)*(ut<<24>>24)>>>5));ft=255&(ft=(ft+=(h.hd<<24>>24)*(ut<<24>>24)>>>5)+((h.ud<<24>>24)*(jt<<24>>24)>>>5)),Ke[Ze+Ge]=(4278255360&at)+(jt<<16)+ft}}function Ba(h,B,K,pe,Ke){Lt[B]=function(Ze,Ge,at,ut,ft,jt,mr,wt,rr){for(ut=mr;ut<wt;++ut)for(mr=0;mr<rr;++mr)ft[jt++]=Ke(at[pe(Ze[Ge++])])},Lt[h]=function(Ze,Ge,at,ut,ft,jt,mr){var wt=8>>Ze.b,rr=Ze.Ea,pr=Ze.K[0],Wr=Ze.w;if(8>wt)for(Ze=(1<<Ze.b)-1,Wr=(1<<wt)-1;Ge<at;++Ge){var Cr,cn=0;for(Cr=0;Cr<rr;++Cr)Cr&Ze||(cn=pe(ut[ft++])),jt[mr++]=Ke(pr[cn&Wr]),cn>>=wt}else Lt["VP8LMapColor"+K](ut,ft,pr,Wr,jt,mr,Ge,at,rr)}}function yl(h,B,K,pe,Ke){for(K=B+K;B<K;){var Ze=h[B++];pe[Ke++]=Ze>>16&255,pe[Ke++]=Ze>>8&255,pe[Ke++]=255&Ze}}function Ds(h,B,K,pe,Ke){for(K=B+K;B<K;){var Ze=h[B++];pe[Ke++]=Ze>>16&255,pe[Ke++]=Ze>>8&255,pe[Ke++]=255&Ze,pe[Ke++]=Ze>>24&255}}function ma(h,B,K,pe,Ke){for(K=B+K;B<K;){var Ze=(Ge=h[B++])>>16&240|Ge>>12&15,Ge=240&Ge|Ge>>28&15;pe[Ke++]=Ze,pe[Ke++]=Ge}}function wo(h,B,K,pe,Ke){for(K=B+K;B<K;){var Ze=(Ge=h[B++])>>16&248|Ge>>13&7,Ge=Ge>>5&224|Ge>>3&31;pe[Ke++]=Ze,pe[Ke++]=Ge}}function fl(h,B,K,pe,Ke){for(K=B+K;B<K;){var Ze=h[B++];pe[Ke++]=255&Ze,pe[Ke++]=Ze>>8&255,pe[Ke++]=Ze>>16&255}}function La(h,B,K,pe,Ke,Ze){if(Ze==0)for(K=B+K;B<K;)zn(pe,((Ze=h[B++])[0]>>24|Ze[1]>>8&65280|Ze[2]<<8&16711680|Ze[3]<<24)>>>0),Ke+=32;else l(pe,Ke,h,B,K)}function is(h,B){Lt[B][0]=Lt[h+"0"],Lt[B][1]=Lt[h+"1"],Lt[B][2]=Lt[h+"2"],Lt[B][3]=Lt[h+"3"],Lt[B][4]=Lt[h+"4"],Lt[B][5]=Lt[h+"5"],Lt[B][6]=Lt[h+"6"],Lt[B][7]=Lt[h+"7"],Lt[B][8]=Lt[h+"8"],Lt[B][9]=Lt[h+"9"],Lt[B][10]=Lt[h+"10"],Lt[B][11]=Lt[h+"11"],Lt[B][12]=Lt[h+"12"],Lt[B][13]=Lt[h+"13"],Lt[B][14]=Lt[h+"0"],Lt[B][15]=Lt[h+"0"]}function xo(h){return h==sg||h==af||h==lc||h==l0}function ql(){this.eb=[],this.size=this.A=this.fb=0}function Ol(){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 as(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new ql,this.f.kb=new Ol,this.sd=null}function Ya(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function js(){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 Hh(h){return alert("todo:WebPSamplerProcessPlane"),h.T}function jc(h,B){var K=h.T,pe=B.ba.f.RGBA,Ke=pe.eb,Ze=pe.fb+h.ka*pe.A,Ge=Zu[B.ba.S],at=h.y,ut=h.O,ft=h.f,jt=h.N,mr=h.ea,wt=h.W,rr=B.cc,pr=B.dc,Wr=B.Mc,Cr=B.Nc,cn=h.ka,bn=h.ka+h.T,Vn=h.U,kn=Vn+1>>1;for(cn==0?Ge(at,ut,null,null,ft,jt,mr,wt,ft,jt,mr,wt,Ke,Ze,null,null,Vn):(Ge(B.ec,B.fc,at,ut,rr,pr,Wr,Cr,ft,jt,mr,wt,Ke,Ze-pe.A,Ke,Ze,Vn),++K);cn+2<bn;cn+=2)rr=ft,pr=jt,Wr=mr,Cr=wt,jt+=h.Rc,wt+=h.Rc,Ze+=2*pe.A,Ge(at,(ut+=2*h.fa)-h.fa,at,ut,rr,pr,Wr,Cr,ft,jt,mr,wt,Ke,Ze-pe.A,Ke,Ze,Vn);return ut+=h.fa,h.j+bn<h.o?(l(B.ec,B.fc,at,ut,Vn),l(B.cc,B.dc,ft,jt,kn),l(B.Mc,B.Nc,mr,wt,kn),K--):1&bn||Ge(at,ut,null,null,ft,jt,mr,wt,ft,jt,mr,wt,Ke,Ze+pe.A,null,null,Vn),K}function _f(h,B,K){var pe=h.F,Ke=[h.J];if(pe!=null){var Ze=h.U,Ge=B.ba.S,at=Ge==ip||Ge==lc;B=B.ba.f.RGBA;var ut=[0],ft=h.ka;ut[0]=h.T,h.Kb&&(ft==0?--ut[0]:(--ft,Ke[0]-=h.width),h.j+h.ka+h.T==h.o&&(ut[0]=h.o-h.j-ft));var jt=B.eb;ft=B.fb+ft*B.A,h=ig(pe,Ke[0],h.width,Ze,ut,jt,ft+(at?0:3),B.A),o(K==ut),h&&xo(Ge)&&Qp(jt,ft,at,Ze,ut,B.A)}return 0}function Wd(h){var B=h.ma,K=B.ba.S,pe=11>K,Ke=K==Bm||K==Kp||K==ip||K==og||K==12||xo(K);if(B.memory=null,B.Ib=null,B.Jb=null,B.Nd=null,!Es(B.Oa,h,Ke?11:12))return 0;if(Ke&&xo(K)&&To(),h.da)alert("todo:use_scaling");else{if(pe){if(B.Ib=Hh,h.Kb){if(K=h.U+1>>1,B.memory=p(h.U+2*K),B.memory==null)return 0;B.ec=B.memory,B.fc=0,B.cc=B.ec,B.dc=B.fc+h.U,B.Mc=B.cc,B.Nc=B.dc+K,B.Ib=jc,To()}}else alert("todo:EmitYUV");Ke&&(B.Jb=_f,pe&&n0())}if(pe&&!nt){for(h=0;256>h;++h)vt[h]=89858*(h-128)+L>>u,Sn[h]=-22014*(h-128)+L,xr[h]=-45773*(h-128),St[h]=113618*(h-128)+L>>u;for(h=z;h<X;++h)B=76283*(h-16)+L>>u,vr[h-z]=Ul(B,255),nn[h-z]=Ul(B+8>>4,15);nt=1}return 1}function Ka(h){var B=h.ma,K=h.U,pe=h.T;return o(!(1&h.ka)),0>=K||0>=pe?0:(K=B.Ib(h,B),B.Jb!=null&&B.Jb(h,B,K),B.Dc+=K,1)}function If(h){h.ma.memory=null}function Ff(h,B,K,pe){return In(h,8)!=47?0:(B[0]=In(h,14)+1,K[0]=In(h,14)+1,pe[0]=In(h,1),In(h,3)!=0?0:!h.h)}function bu(h,B){if(4>h)return h+1;var K=h-2>>1;return(2+(1&h)<<K)+In(B,K)+1}function yu(h,B){return 120<B?B-120:1<=(K=((K=Rg[B-1])>>4)*h+(8-(15&K)))?K:1;var K}function sc(h,B,K){var pe=Nt(K),Ke=h[B+=255&pe].g-8;return 0<Ke&&(dr(K,K.u+8),pe=Nt(K),B+=h[B].value,B+=pe&(1<<Ke)-1),dr(K,K.u+h[B].g),h[B].value}function Bs(h,B,K){return K.g+=h.g,K.value+=h.value<<B>>>0,o(8>=K.g),h.g}function hl(h,B,K){var pe=h.xc;return o((B=pe==0?0:h.vc[h.md*(K>>pe)+(B>>pe)])<h.Wb),h.Ya[B]}function Gd(h,B,K,pe){var Ke=h.ab,Ze=h.c*B,Ge=h.C;B=Ge+B;var at=K,ut=pe;for(pe=h.Ta,K=h.Ua;0<Ke--;){var ft=h.gc[Ke],jt=Ge,mr=B,wt=at,rr=ut,pr=(ut=pe,at=K,ft.Ea);switch(o(jt<mr),o(mr<=ft.nc),ft.hc){case 2:dh(wt,rr,(mr-jt)*pr,ut,at);break;case 0:var Wr=jt,Cr=mr,cn=ut,bn=at,Vn=(ga=ft).Ea;Wr==0&&(KA(wt,rr,null,null,1,cn,bn),Hs(wt,rr+1,0,0,Vn-1,cn,bn+1),rr+=Vn,bn+=Vn,++Wr);for(var kn=1<<ga.b,Sa=kn-1,ia=Gn(Vn,ga.b),Ho=ga.K,ga=ga.w+(Wr>>ga.b)*ia;Wr<Cr;){var _s=Ho,uA=ga,jo=1;for(tf(wt,rr,cn,bn-Vn,1,cn,bn);jo<Vn;){var va=(jo&~Sa)+kn;va>Vn&&(va=Vn),(0,ph[_s[uA++]>>8&15])(wt,rr+ +jo,cn,bn+jo-Vn,va-jo,cn,bn+jo),jo=va}rr+=Vn,bn+=Vn,++Wr&Sa||(ga+=ia)}mr!=ft.nc&&l(ut,at-pr,ut,at+(mr-jt-1)*pr,pr);break;case 1:for(pr=wt,Cr=rr,Vn=(wt=ft.Ea)-(bn=wt&~(cn=(rr=1<<ft.b)-1)),Wr=Gn(wt,ft.b),kn=ft.K,ft=ft.w+(jt>>ft.b)*Wr;jt<mr;){for(Sa=kn,ia=ft,Ho=new Ja,ga=Cr+bn,_s=Cr+wt;Cr<ga;)Ca(Sa[ia++],Ho),Pf(Ho,pr,Cr,rr,ut,at),Cr+=rr,at+=rr;Cr<_s&&(Ca(Sa[ia++],Ho),Pf(Ho,pr,Cr,Vn,ut,at),Cr+=Vn,at+=Vn),++jt&cn||(ft+=Wr)}break;case 3:if(wt==ut&&rr==at&&0<ft.b){for(Cr=ut,wt=pr=at+(mr-jt)*pr-(bn=(mr-jt)*Gn(ft.Ea,ft.b)),rr=ut,cn=at,Wr=[],bn=(Vn=bn)-1;0<=bn;--bn)Wr[bn]=rr[cn+bn];for(bn=Vn-1;0<=bn;--bn)Cr[wt+bn]=Wr[bn];Up(ft,jt,mr,ut,pr,ut,at)}else Up(ft,jt,mr,wt,rr,ut,at)}at=pe,ut=K}ut!=K&&l(pe,K,at,ut,Ze)}function Xd(h,B){var K=h.V,pe=h.Ba+h.c*h.C,Ke=B-h.C;if(o(B<=h.l.o),o(16>=Ke),0<Ke){var Ze=h.l,Ge=h.Ta,at=h.Ua,ut=Ze.width;if(Gd(h,Ke,K,pe),Ke=at=[at],o((K=h.C)<(pe=B)),o(Ze.v<Ze.va),pe>Ze.o&&(pe=Ze.o),K<Ze.j){var ft=Ze.j-K;K=Ze.j,Ke[0]+=ft*ut}if(K>=pe?K=0:(Ke[0]+=4*Ze.v,Ze.ka=K-Ze.j,Ze.U=Ze.va-Ze.v,Ze.T=pe-K,K=1),K){if(at=at[0],11>(K=h.ca).S){var jt=K.f.RGBA,mr=(pe=K.S,Ke=Ze.U,Ze=Ze.T,ft=jt.eb,jt.A),wt=Ze;for(jt=jt.fb+h.Ma*jt.A;0<wt--;){var rr=Ge,pr=at,Wr=Ke,Cr=ft,cn=jt;switch(pe){case Cm:tp(rr,pr,Wr,Cr,cn);break;case Bm:nu(rr,pr,Wr,Cr,cn);break;case sg:nu(rr,pr,Wr,Cr,cn),Qp(Cr,cn,0,Wr,1,0);break;case Pg:pl(rr,pr,Wr,Cr,cn);break;case Kp:La(rr,pr,Wr,Cr,cn,1);break;case af:La(rr,pr,Wr,Cr,cn,1),Qp(Cr,cn,0,Wr,1,0);break;case ip:La(rr,pr,Wr,Cr,cn,0);break;case lc:La(rr,pr,Wr,Cr,cn,0),Qp(Cr,cn,1,Wr,1,0);break;case og:rf(rr,pr,Wr,Cr,cn);break;case l0:rf(rr,pr,Wr,Cr,cn),Lg(Cr,cn,Wr,1,0);break;case Ko:ka(rr,pr,Wr,Cr,cn);break;default:o(0)}at+=ut,jt+=mr}h.Ma+=Ze}else alert("todo:EmitRescaledRowsYUVA");o(h.Ma<=K.height)}}h.C=B,o(h.C<=h.i)}function Hu(h){var B;if(0<h.ua)return 0;for(B=0;B<h.Wb;++B){var K=h.Ya[B].G,pe=h.Ya[B].H;if(0<K[1][pe[1]+0].g||0<K[2][pe[2]+0].g||0<K[3][pe[3]+0].g)return 0}return 1}function wu(h,B,K,pe,Ke,Ze){if(h.Z!=0){var Ge=h.qd,at=h.rd;for(o(vh[h.Z]!=null);B<K;++B)vh[h.Z](Ge,at,pe,Ke,pe,Ke,Ze),Ge=pe,at=Ke,Ke+=Ze;h.qd=Ge,h.rd=at}}function sA(h,B){var K=h.l.ma,pe=K.Z==0||K.Z==1?h.l.j:h.C;if(pe=h.C<pe?pe:h.C,o(B<=h.l.o),B>pe){var Ke=h.l.width,Ze=K.ca,Ge=K.tb+Ke*pe,at=h.V,ut=h.Ba+h.c*pe,ft=h.gc;o(h.ab==1),o(ft[0].hc==3),hh(ft[0],pe,B,at,ut,Ze,Ge),wu(K,pe,B,Ze,Ge,Ke)}h.C=h.Ma=B}function xu(h,B,K,pe,Ke,Ze,Ge){var at=h.$/pe,ut=h.$%pe,ft=h.m,jt=h.s,mr=K+h.$,wt=mr;Ke=K+pe*Ke;var rr=K+pe*Ze,pr=280+jt.ua,Wr=h.Pb?at:16777216,Cr=0<jt.ua?jt.Wa:null,cn=jt.wc,bn=mr<rr?hl(jt,ut,at):null;o(h.C<Ze),o(rr<=Ke);var Vn=!1;e:for(;;){for(;Vn||mr<rr;){var kn=0;if(at>=Wr){var Sa=mr-K;o((Wr=h).Pb),Wr.wd=Wr.m,Wr.xd=Sa,0<Wr.s.ua&&Go(Wr.s.Wa,Wr.s.vb),Wr=at+Kg}if(ut&cn||(bn=hl(jt,ut,at)),o(bn!=null),bn.Qb&&(B[mr]=bn.qb,Vn=!0),!Vn)if(Br(ft),bn.jc){kn=ft,Sa=B;var ia=mr,Ho=bn.pd[Nt(kn)&ef-1];o(bn.jc),256>Ho.g?(dr(kn,kn.u+Ho.g),Sa[ia]=Ho.value,kn=0):(dr(kn,kn.u+Ho.g-256),o(256<=Ho.value),kn=Ho.value),kn==0&&(Vn=!0)}else kn=sc(bn.G[0],bn.H[0],ft);if(ft.h)break;if(Vn||256>kn){if(!Vn)if(bn.nd)B[mr]=(bn.qb|kn<<8)>>>0;else{if(Br(ft),Vn=sc(bn.G[1],bn.H[1],ft),Br(ft),Sa=sc(bn.G[2],bn.H[2],ft),ia=sc(bn.G[3],bn.H[3],ft),ft.h)break;B[mr]=(ia<<24|Vn<<16|kn<<8|Sa)>>>0}if(Vn=!1,++mr,++ut>=pe&&(ut=0,++at,Ge!=null&&at<=Ze&&!(at%16)&&Ge(h,at),Cr!=null))for(;wt<mr;)kn=B[wt++],Cr.X[(506832829*kn&4294967295)>>>Cr.Mb]=kn}else if(280>kn){if(kn=bu(kn-256,ft),Sa=sc(bn.G[4],bn.H[4],ft),Br(ft),Sa=yu(pe,Sa=bu(Sa,ft)),ft.h)break;if(mr-K<Sa||Ke-mr<kn)break e;for(ia=0;ia<kn;++ia)B[mr+ia]=B[mr+ia-Sa];for(mr+=kn,ut+=kn;ut>=pe;)ut-=pe,++at,Ge!=null&&at<=Ze&&!(at%16)&&Ge(h,at);if(o(mr<=Ke),ut&cn&&(bn=hl(jt,ut,at)),Cr!=null)for(;wt<mr;)kn=B[wt++],Cr.X[(506832829*kn&4294967295)>>>Cr.Mb]=kn}else{if(!(kn<pr))break e;for(Vn=kn-280,o(Cr!=null);wt<mr;)kn=B[wt++],Cr.X[(506832829*kn&4294967295)>>>Cr.Mb]=kn;kn=mr,o(!(Vn>>>(Sa=Cr).Xa)),B[kn]=Sa.X[Vn],Vn=!0}Vn||o(ft.h==er(ft))}if(h.Pb&&ft.h&&mr<Ke)o(h.m.h),h.a=5,h.m=h.wd,h.$=h.xd,0<h.s.ua&&Go(h.s.vb,h.s.Wa);else{if(ft.h)break e;Ge!=null&&Ge(h,at>Ze?Ze:at),h.a=0,h.$=mr-K}return 1}return h.a=3,0}function ju(h){o(h!=null),h.vc=null,h.yc=null,h.Ya=null;var B=h.Wa;B!=null&&(B.X=null),h.vb=null,o(h!=null)}function jh(){var h=new Tl;return h==null?null:(h.a=0,h.xb=c1,is("Predictor","VP8LPredictors"),is("Predictor","VP8LPredictors_C"),is("PredictorAdd","VP8LPredictorsAdd"),is("PredictorAdd","VP8LPredictorsAdd_C"),dh=uo,Pf=ro,tp=yl,nu=Ds,rf=ma,ka=wo,pl=fl,Lt.VP8LMapColor32b=fh,Lt.VP8LMapColor8b=Of,h)}function Jd(h,B,K,pe,Ke){var Ze=1,Ge=[h],at=[B],ut=pe.m,ft=pe.s,jt=null,mr=0;e:for(;;){if(K)for(;Ze&&In(ut,1);){var wt=Ge,rr=at,pr=pe,Wr=1,Cr=pr.m,cn=pr.gc[pr.ab],bn=In(Cr,2);if(pr.Oc&1<<bn)Ze=0;else{switch(pr.Oc|=1<<bn,cn.hc=bn,cn.Ea=wt[0],cn.nc=rr[0],cn.K=[null],++pr.ab,o(4>=pr.ab),bn){case 0:case 1:cn.b=In(Cr,3)+2,Wr=Jd(Gn(cn.Ea,cn.b),Gn(cn.nc,cn.b),0,pr,cn.K),cn.K=cn.K[0];break;case 3:var Vn,kn=In(Cr,8)+1,Sa=16<kn?0:4<kn?1:2<kn?2:3;if(wt[0]=Gn(cn.Ea,Sa),cn.b=Sa,Vn=Wr=Jd(kn,1,0,pr,cn.K)){var ia,Ho=kn,ga=cn,_s=1<<(8>>ga.b),uA=p(_s);if(uA==null)Vn=0;else{var jo=ga.K[0],va=ga.w;for(uA[0]=ga.K[0][0],ia=1;ia<1*Ho;++ia)uA[ia]=wa(jo[va+ia],uA[ia-1]);for(;ia<4*_s;++ia)uA[ia]=0;ga.K[0]=null,ga.K[0]=uA,Vn=1}}Wr=Vn;break;case 2:break;default:o(0)}Ze=Wr}}if(Ge=Ge[0],at=at[0],Ze&&In(ut,1)&&!(Ze=1<=(mr=In(ut,4))&&11>=mr)){pe.a=3;break e}var Ei;if(Ei=Ze)t:{var zc,No,Os,rc=pe,HA=Ge,Eu=at,Lc=mr,iu=K,_u=rc.m,dA=rc.s,Zs=[null],ml=1,kc=0,gl=Qg[Lc];r:for(;;){if(iu&&In(_u,1)){var jA=In(_u,3)+2,Rf=Gn(HA,jA),$c=Gn(Eu,jA),Vu=Rf*$c;if(!Jd(Rf,$c,0,rc,Zs))break r;for(Zs=Zs[0],dA.xc=jA,zc=0;zc<Vu;++zc){var Il=Zs[zc]>>8&65535;Zs[zc]=Il,Il>=ml&&(ml=Il+1)}}if(_u.h)break r;for(No=0;5>No;++No){var fA=c0[No];!No&&0<Lc&&(fA+=1<<Lc),kc<fA&&(kc=fA)}var Bd=O(ml*gl,tr),Iu=ml,Sd=O(Iu,Kr);if(Sd==null)var Ed=null;else o(65536>=Iu),Ed=Sd;var Wu=p(kc);if(Ed==null||Wu==null||Bd==null){rc.a=1;break r}var _d=Bd;for(zc=Os=0;zc<ml;++zc){var Rl=Ed[zc],Id=Rl.G,Qf=Rl.H,jp=0,u0=1,zA=0;for(No=0;5>No;++No){fA=c0[No],Id[No]=_d,Qf[No]=Os,!No&&0<Lc&&(fA+=1<<Lc);i:{var jg,A1=fA,zg=rc,cg=Wu,hv=_d,pv=Os,u1=0,sp=zg.m,mv=In(sp,1);if(A(cg,0,0,A1),mv){var gv=In(sp,1)+1,vv=In(sp,1),x1=In(sp,vv==0?1:8);cg[x1]=1,gv==2&&(cg[x1=In(sp,8)]=1);var $g=1}else{var C1=p(19),B1=In(sp,4)+4;if(19<B1){zg.a=3;var Zg=0;break i}for(jg=0;jg<B1;++jg)C1[Ug[jg]]=In(sp,3);var d1=void 0,Ag=void 0,S1=zg,bv=C1,Vg=A1,E1=cg,f1=0,lp=S1.m,_1=8,I1=O(128,tr);n:for(;Ct(I1,0,7,bv,19);){if(In(lp,1)){var yv=2+2*In(lp,3);if((d1=2+In(lp,yv))>Vg)break n}else d1=Vg;for(Ag=0;Ag<Vg&&d1--;){Br(lp);var F1=I1[0+(127&Nt(lp))];dr(lp,lp.u+F1.g);var Sm=F1.value;if(16>Sm)E1[Ag++]=Sm,Sm!=0&&(_1=Sm);else{var wv=Sm==16,M1=Sm-16,xv=Hp[M1],L1=In(lp,Uf[M1])+xv;if(Ag+L1>Vg)break n;for(var Cv=wv?_1:0;0<L1--;)E1[Ag++]=Cv}}f1=1;break n}f1||(S1.a=3),$g=f1}($g=$g&&!sp.h)&&(u1=Ct(hv,pv,8,cg,A1)),$g&&u1!=0?Zg=u1:(zg.a=3,Zg=0)}if(Zg==0)break r;if(u0&&Tg[No]==1&&(u0=_d[Os].g==0),jp+=_d[Os].g,Os+=Zg,3>=No){var ug,h1=Wu[0];for(ug=1;ug<fA;++ug)Wu[ug]>h1&&(h1=Wu[ug]);zA+=h1}}if(Rl.nd=u0,Rl.Qb=0,u0&&(Rl.qb=(Id[3][Qf[3]+0].value<<24|Id[1][Qf[1]+0].value<<16|Id[2][Qf[2]+0].value)>>>0,jp==0&&256>Id[0][Qf[0]+0].value&&(Rl.Qb=1,Rl.qb+=Id[0][Qf[0]+0].value<<8)),Rl.jc=!Rl.Qb&&6>zA,Rl.jc){var Wg,d0=Rl;for(Wg=0;Wg<ef;++Wg){var cp=Wg,Ap=d0.pd[cp],Gg=d0.G[0][d0.H[0]+cp];256<=Gg.value?(Ap.g=Gg.g+256,Ap.value=Gg.value):(Ap.g=0,Ap.value=0,cp>>=Bs(Gg,8,Ap),cp>>=Bs(d0.G[1][d0.H[1]+cp],16,Ap),cp>>=Bs(d0.G[2][d0.H[2]+cp],0,Ap),Bs(d0.G[3][d0.H[3]+cp],24,Ap))}}}dA.vc=Zs,dA.Wb=ml,dA.Ya=Ed,dA.yc=Bd,Ei=1;break t}Ei=0}if(!(Ze=Ei)){pe.a=3;break e}if(0<mr){if(ft.ua=1<<mr,!Ft(ft.Wa,mr)){pe.a=1,Ze=0;break e}}else ft.ua=0;var p1=pe,k1=Ge,Bv=at,m1=p1.s,g1=m1.xc;if(p1.c=k1,p1.i=Bv,m1.md=Gn(k1,g1),m1.wc=g1==0?-1:(1<<g1)-1,K){pe.xb=y1;break e}if((jt=p(Ge*at))==null){pe.a=1,Ze=0;break e}Ze=(Ze=xu(pe,jt,0,Ge,at,at,null))&&!ut.h;break e}return Ze?(Ke!=null?Ke[0]=jt:(o(jt==null),o(K)),pe.$=0,K||ju(ft)):ju(ft),Ze}function zh(h,B){var K=h.c*h.i,pe=K+B+16*B;return o(h.c<=B),h.V=p(pe),h.V==null?(h.Ta=null,h.Ua=0,h.a=1,0):(h.Ta=h.V,h.Ua=h.Ba+K+B,1)}function $h(h,B){var K=h.C,pe=B-K,Ke=h.V,Ze=h.Ba+h.c*K;for(o(B<=h.l.o);0<pe;){var Ge=16<pe?16:pe,at=h.l.ma,ut=h.l.width,ft=ut*Ge,jt=at.ca,mr=at.tb+ut*K,wt=h.Ta,rr=h.Ua;Gd(h,Ge,Ke,Ze),kg(wt,rr,jt,mr,ft),wu(at,K,K+Ge,jt,mr,ut),pe-=Ge,Ke+=Ge*h.c,K+=Ge}o(K==B),h.C=h.Ma=B}function Q0(){this.ub=this.yd=this.td=this.Rb=0}function Zh(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ep(){this.Fb=this.Bb=this.Cb=0,this.Zb=p(4),this.Lb=p(4)}function _p(){this.Yb=function(){var h=[];return function B(K,pe,Ke){for(var Ze=Ke[pe],Ge=0;Ge<Ze&&(K.push(Ke.length>pe+1?[]:0),!(Ke.length<pe+1));Ge++)B(K[Ge],pe+1,Ke)}(h,0,[3,11]),h}()}function fm(){this.jb=p(3),this.Wc=E([4,8],_p),this.Xc=E([4,17],_p)}function hm(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new p(4),this.od=new p(4)}function eu(){this.ld=this.La=this.dd=this.tc=0}function Vh(){this.Na=this.la=0}function Ip(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Fp(){this.ad=p(384),this.Za=0,this.Ob=p(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function K0(){this.uc=this.M=this.Nb=0,this.wa=Array(new eu),this.Y=0,this.ya=Array(new Fp),this.aa=0,this.l=new zu}function H0(){this.y=p(16),this.f=p(8),this.ea=p(8)}function Mp(){this.cb=this.a=0,this.sc="",this.m=new tt,this.Od=new Q0,this.Kc=new Zh,this.ed=new hm,this.Qa=new Ep,this.Ic=this.$c=this.Aa=0,this.D=new K0,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,Ip),this.Pa=new fm,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new H0),this.Hd=0,this.rb=Array(new Vh),this.sb=0,this.wa=Array(new eu),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 Fp),this.L=this.aa=0,this.gd=E([4,2],eu),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 zu(){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 Wh(){var h=new Mp;return h!=null&&(h.a=0,h.sc="OK",h.cb=0,h.Xb=0,op||(op=Mf)),h}function ec(h,B,K){return h.a==0&&(h.a=B,h.sc=K,h.cb=0),0}function j0(h,B,K){return 3<=K&&h[B+0]==157&&h[B+1]==1&&h[B+2]==42}function Lp(h,B){if(h==null)return 0;if(h.a=0,h.sc="OK",B==null)return ec(h,2,"null VP8Io passed to VP8GetHeaders()");var K=B.data,pe=B.w,Ke=B.ha;if(4>Ke)return ec(h,7,"Truncated header.");var Ze=K[pe+0]|K[pe+1]<<8|K[pe+2]<<16,Ge=h.Od;if(Ge.Rb=!(1&Ze),Ge.td=Ze>>1&7,Ge.yd=Ze>>4&1,Ge.ub=Ze>>5,3<Ge.td)return ec(h,3,"Incorrect keyframe parameters.");if(!Ge.yd)return ec(h,4,"Frame not displayable.");pe+=3,Ke-=3;var at=h.Kc;if(Ge.Rb){if(7>Ke)return ec(h,7,"cannot parse picture header");if(!j0(K,pe,Ke))return ec(h,3,"Bad code word");at.c=16383&(K[pe+4]<<8|K[pe+3]),at.Td=K[pe+4]>>6,at.i=16383&(K[pe+6]<<8|K[pe+5]),at.Ud=K[pe+6]>>6,pe+=7,Ke-=7,h.za=at.c+15>>4,h.Ub=at.i+15>>4,B.width=at.c,B.height=at.i,B.Da=0,B.j=0,B.v=0,B.va=B.width,B.o=B.height,B.da=0,B.ib=B.width,B.hb=B.height,B.U=B.width,B.T=B.height,A((Ze=h.Pa).jb,0,255,Ze.jb.length),o((Ze=h.Qa)!=null),Ze.Cb=0,Ze.Bb=0,Ze.Fb=1,A(Ze.Zb,0,0,Ze.Zb.length),A(Ze.Lb,0,0,Ze.Lb)}if(Ge.ub>Ke)return ec(h,7,"bad partition length");Zr(Ze=h.m,K,pe,Ge.ub),pe+=Ge.ub,Ke-=Ge.ub,Ge.Rb&&(at.Ld=Ur(Ze),at.Kd=Ur(Ze)),at=h.Qa;var ut,ft=h.Pa;if(o(Ze!=null),o(at!=null),at.Cb=Ur(Ze),at.Cb){if(at.Bb=Ur(Ze),Ur(Ze)){for(at.Fb=Ur(Ze),ut=0;4>ut;++ut)at.Zb[ut]=Ur(Ze)?Mr(Ze,7):0;for(ut=0;4>ut;++ut)at.Lb[ut]=Ur(Ze)?Mr(Ze,6):0}if(at.Bb)for(ut=0;3>ut;++ut)ft.jb[ut]=Ur(Ze)?tn(Ze,8):255}else at.Bb=0;if(Ze.Ka)return ec(h,3,"cannot parse segment header");if((at=h.ed).zd=Ur(Ze),at.Tb=tn(Ze,6),at.wb=tn(Ze,3),at.Pc=Ur(Ze),at.Pc&&Ur(Ze)){for(ft=0;4>ft;++ft)Ur(Ze)&&(at.vd[ft]=Mr(Ze,6));for(ft=0;4>ft;++ft)Ur(Ze)&&(at.od[ft]=Mr(Ze,6))}if(h.L=at.Tb==0?0:at.zd?1:2,Ze.Ka)return ec(h,3,"cannot parse filter header");var jt=Ke;if(Ke=ut=pe,pe=ut+jt,at=jt,h.Xb=(1<<tn(h.m,2))-1,jt<3*(ft=h.Xb))K=7;else{for(ut+=3*ft,at-=3*ft,jt=0;jt<ft;++jt){var mr=K[Ke+0]|K[Ke+1]<<8|K[Ke+2]<<16;mr>at&&(mr=at),Zr(h.Jc[+jt],K,ut,mr),ut+=mr,at-=mr,Ke+=3}Zr(h.Jc[+ft],K,ut,at),K=ut<pe?0:5}if(K!=0)return ec(h,K,"cannot parse partitions");for(K=tn(ut=h.m,7),Ke=Ur(ut)?Mr(ut,4):0,pe=Ur(ut)?Mr(ut,4):0,at=Ur(ut)?Mr(ut,4):0,ft=Ur(ut)?Mr(ut,4):0,ut=Ur(ut)?Mr(ut,4):0,jt=h.Qa,mr=0;4>mr;++mr){if(jt.Cb){var wt=jt.Zb[mr];jt.Fb||(wt+=K)}else{if(0<mr){h.pb[mr]=h.pb[0];continue}wt=K}var rr=h.pb[mr];rr.Sc[0]=lg[Ul(wt+Ke,127)],rr.Sc[1]=ap[Ul(wt+0,127)],rr.Eb[0]=2*lg[Ul(wt+pe,127)],rr.Eb[1]=101581*ap[Ul(wt+at,127)]>>16,8>rr.Eb[1]&&(rr.Eb[1]=8),rr.Qc[0]=lg[Ul(wt+ft,117)],rr.Qc[1]=ap[Ul(wt+ut,127)],rr.lc=wt+ut}if(!Ge.Rb)return ec(h,4,"Not a key frame.");for(Ur(Ze),Ge=h.Pa,K=0;4>K;++K){for(Ke=0;8>Ke;++Ke)for(pe=0;3>pe;++pe)for(at=0;11>at;++at)ft=wn(Ze,s1[K][Ke][pe][at])?tn(Ze,8):o1[K][Ke][pe][at],Ge.Wc[K][Ke].Yb[pe][at]=ft;for(Ke=0;17>Ke;++Ke)Ge.Xc[K][Ke]=Ge.Wc[K][l1[Ke]]}return h.kc=Ur(Ze),h.kc&&(h.Bd=tn(Ze,8)),h.cb=1}function Mf(h,B,K,pe,Ke,Ze,Ge){var at=B[Ke].Yb[K];for(K=0;16>Ke;++Ke){if(!wn(h,at[K+0]))return Ke;for(;!wn(h,at[K+1]);)if(at=B[++Ke].Yb[0],K=0,Ke==16)return 16;var ut=B[Ke+1].Yb;if(wn(h,at[K+2])){var ft=h,jt=0;if(wn(ft,(wt=at)[(mr=K)+3]))if(wn(ft,wt[mr+6])){for(at=0,mr=2*(jt=wn(ft,wt[mr+8]))+(wt=wn(ft,wt[mr+9+jt])),jt=0,wt=i1[mr];wt[at];++at)jt+=jt+wn(ft,wt[at]);jt+=3+(8<<mr)}else wn(ft,wt[mr+7])?(jt=7+2*wn(ft,165),jt+=wn(ft,145)):jt=5+wn(ft,159);else jt=wn(ft,wt[mr+4])?3+wn(ft,wt[mr+5]):2;at=ut[2]}else jt=1,at=ut[1];ut=Ge+a1[Ke],0>(ft=h).b&&Gr(ft);var mr,wt=ft.b,rr=(mr=ft.Ca>>1)-(ft.I>>wt)>>31;--ft.b,ft.Ca+=rr,ft.Ca|=1,ft.I-=(mr+1&rr)<<wt,Ze[ut]=((jt^rr)-rr)*pe[(0<Ke)+0]}return 16}function ch(h){var B=h.rb[h.sb-1];B.la=0,B.Na=0,A(h.zc,0,0,h.zc.length),h.ja=0}function hd(h,B,K,pe,Ke){Ke=h[B+K+32*pe]+(Ke>>3),h[B+K+32*pe]=-256&Ke?0>Ke?0:255:Ke}function pd(h,B,K,pe,Ke,Ze){hd(h,B,0,K,pe+Ke),hd(h,B,1,K,pe+Ze),hd(h,B,2,K,pe-Ze),hd(h,B,3,K,pe-Ke)}function mc(h){return(20091*h>>16)+h}function z0(h,B,K,pe){var Ke,Ze=0,Ge=p(16);for(Ke=0;4>Ke;++Ke){var at=h[B+0]+h[B+8],ut=h[B+0]-h[B+8],ft=(35468*h[B+4]>>16)-mc(h[B+12]),jt=mc(h[B+4])+(35468*h[B+12]>>16);Ge[Ze+0]=at+jt,Ge[Ze+1]=ut+ft,Ge[Ze+2]=ut-ft,Ge[Ze+3]=at-jt,Ze+=4,B++}for(Ke=Ze=0;4>Ke;++Ke)at=(h=Ge[Ze+0]+4)+Ge[Ze+8],ut=h-Ge[Ze+8],ft=(35468*Ge[Ze+4]>>16)-mc(Ge[Ze+12]),hd(K,pe,0,0,at+(jt=mc(Ge[Ze+4])+(35468*Ge[Ze+12]>>16))),hd(K,pe,1,0,ut+ft),hd(K,pe,2,0,ut-ft),hd(K,pe,3,0,at-jt),Ze++,pe+=32}function Gm(h,B,K,pe){var Ke=h[B+0]+4,Ze=35468*h[B+4]>>16,Ge=mc(h[B+4]),at=35468*h[B+1]>>16;pd(K,pe,0,Ke+Ge,h=mc(h[B+1]),at),pd(K,pe,1,Ke+Ze,h,at),pd(K,pe,2,Ke-Ze,h,at),pd(K,pe,3,Ke-Ge,h,at)}function $0(h,B,K,pe,Ke){z0(h,B,K,pe),Ke&&z0(h,B+16,K,pe+4)}function Xm(h,B,K,pe){vc(h,B+0,K,pe,1),vc(h,B+32,K,pe+128,1)}function md(h,B,K,pe){var Ke;for(h=h[B+0]+4,Ke=0;4>Ke;++Ke)for(B=0;4>B;++B)hd(K,pe,B,Ke,h)}function pm(h,B,K,pe){h[B+0]&&nf(h,B+0,K,pe),h[B+16]&&nf(h,B+16,K,pe+4),h[B+32]&&nf(h,B+32,K,pe+128),h[B+48]&&nf(h,B+48,K,pe+128+4)}function mm(h,B,K,pe){var Ke,Ze=p(16);for(Ke=0;4>Ke;++Ke){var Ge=h[B+0+Ke]+h[B+12+Ke],at=h[B+4+Ke]+h[B+8+Ke],ut=h[B+4+Ke]-h[B+8+Ke],ft=h[B+0+Ke]-h[B+12+Ke];Ze[0+Ke]=Ge+at,Ze[8+Ke]=Ge-at,Ze[4+Ke]=ft+ut,Ze[12+Ke]=ft-ut}for(Ke=0;4>Ke;++Ke)Ge=(h=Ze[0+4*Ke]+3)+Ze[3+4*Ke],at=Ze[1+4*Ke]+Ze[2+4*Ke],ut=Ze[1+4*Ke]-Ze[2+4*Ke],ft=h-Ze[3+4*Ke],K[pe+0]=Ge+at>>3,K[pe+16]=ft+ut>>3,K[pe+32]=Ge-at>>3,K[pe+48]=ft-ut>>3,pe+=64}function lA(h,B,K){var pe,Ke=B-32,Ze=Su,Ge=255-h[Ke-1];for(pe=0;pe<K;++pe){var at,ut=Ze,ft=Ge+h[B-1];for(at=0;at<K;++at)h[B+at]=ut[ft+h[Ke+at]];B+=32}}function Ss(h,B){lA(h,B,4)}function cA(h,B){lA(h,B,8)}function Pl(h,B){lA(h,B,16)}function Z0(h,B){var K;for(K=0;16>K;++K)l(h,B+32*K,h,B-32,16)}function V0(h,B){var K;for(K=16;0<K;--K)A(h,B,h[B-1],16),B+=32}function Yd(h,B,K){var pe;for(pe=0;16>pe;++pe)A(B,K+32*pe,h,16)}function Ah(h,B){var K,pe=16;for(K=0;16>K;++K)pe+=h[B-1+32*K]+h[B+K-32];Yd(pe>>5,h,B)}function Jm(h,B){var K,pe=8;for(K=0;16>K;++K)pe+=h[B-1+32*K];Yd(pe>>4,h,B)}function Gh(h,B){var K,pe=8;for(K=0;16>K;++K)pe+=h[B+K-32];Yd(pe>>4,h,B)}function W0(h,B){Yd(128,h,B)}function fo(h,B,K){return h+2*B+K+2>>2}function Ym(h,B){var K,pe=B-32;for(pe=new Uint8Array([fo(h[pe-1],h[pe+0],h[pe+1]),fo(h[pe+0],h[pe+1],h[pe+2]),fo(h[pe+1],h[pe+2],h[pe+3]),fo(h[pe+2],h[pe+3],h[pe+4])]),K=0;4>K;++K)l(h,B+32*K,pe,0,pe.length)}function qm(h,B){var K=h[B-1],pe=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1+96];zn(h,B+0,16843009*fo(h[B-1-32],K,pe)),zn(h,B+32,16843009*fo(K,pe,Ke)),zn(h,B+64,16843009*fo(pe,Ke,Ze)),zn(h,B+96,16843009*fo(Ke,Ze,Ze))}function eg(h,B){var K,pe=4;for(K=0;4>K;++K)pe+=h[B+K-32]+h[B-1+32*K];for(pe>>=3,K=0;4>K;++K)A(h,B+32*K,pe,4)}function tg(h,B){var K=h[B-1+0],pe=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1-32],Ge=h[B+0-32],at=h[B+1-32],ut=h[B+2-32],ft=h[B+3-32];h[B+0+96]=fo(pe,Ke,h[B-1+96]),h[B+1+96]=h[B+0+64]=fo(K,pe,Ke),h[B+2+96]=h[B+1+64]=h[B+0+32]=fo(Ze,K,pe),h[B+3+96]=h[B+2+64]=h[B+1+32]=h[B+0+0]=fo(Ge,Ze,K),h[B+3+64]=h[B+2+32]=h[B+1+0]=fo(at,Ge,Ze),h[B+3+32]=h[B+2+0]=fo(ut,at,Ge),h[B+3+0]=fo(ft,ut,at)}function gd(h,B){var K=h[B+1-32],pe=h[B+2-32],Ke=h[B+3-32],Ze=h[B+4-32],Ge=h[B+5-32],at=h[B+6-32],ut=h[B+7-32];h[B+0+0]=fo(h[B+0-32],K,pe),h[B+1+0]=h[B+0+32]=fo(K,pe,Ke),h[B+2+0]=h[B+1+32]=h[B+0+64]=fo(pe,Ke,Ze),h[B+3+0]=h[B+2+32]=h[B+1+64]=h[B+0+96]=fo(Ke,Ze,Ge),h[B+3+32]=h[B+2+64]=h[B+1+96]=fo(Ze,Ge,at),h[B+3+64]=h[B+2+96]=fo(Ge,at,ut),h[B+3+96]=fo(at,ut,ut)}function vd(h,B){var K=h[B-1+0],pe=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1-32],Ge=h[B+0-32],at=h[B+1-32],ut=h[B+2-32],ft=h[B+3-32];h[B+0+0]=h[B+1+64]=Ze+Ge+1>>1,h[B+1+0]=h[B+2+64]=Ge+at+1>>1,h[B+2+0]=h[B+3+64]=at+ut+1>>1,h[B+3+0]=ut+ft+1>>1,h[B+0+96]=fo(Ke,pe,K),h[B+0+64]=fo(pe,K,Ze),h[B+0+32]=h[B+1+96]=fo(K,Ze,Ge),h[B+1+32]=h[B+2+96]=fo(Ze,Ge,at),h[B+2+32]=h[B+3+96]=fo(Ge,at,ut),h[B+3+32]=fo(at,ut,ft)}function rg(h,B){var K=h[B+0-32],pe=h[B+1-32],Ke=h[B+2-32],Ze=h[B+3-32],Ge=h[B+4-32],at=h[B+5-32],ut=h[B+6-32],ft=h[B+7-32];h[B+0+0]=K+pe+1>>1,h[B+1+0]=h[B+0+64]=pe+Ke+1>>1,h[B+2+0]=h[B+1+64]=Ke+Ze+1>>1,h[B+3+0]=h[B+2+64]=Ze+Ge+1>>1,h[B+0+32]=fo(K,pe,Ke),h[B+1+32]=h[B+0+96]=fo(pe,Ke,Ze),h[B+2+32]=h[B+1+96]=fo(Ke,Ze,Ge),h[B+3+32]=h[B+2+96]=fo(Ze,Ge,at),h[B+3+64]=fo(Ge,at,ut),h[B+3+96]=fo(at,ut,ft)}function kp(h,B){var K=h[B-1+0],pe=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1+96];h[B+0+0]=K+pe+1>>1,h[B+2+0]=h[B+0+32]=pe+Ke+1>>1,h[B+2+32]=h[B+0+64]=Ke+Ze+1>>1,h[B+1+0]=fo(K,pe,Ke),h[B+3+0]=h[B+1+32]=fo(pe,Ke,Ze),h[B+3+32]=h[B+1+64]=fo(Ke,Ze,Ze),h[B+3+64]=h[B+2+64]=h[B+0+96]=h[B+1+96]=h[B+2+96]=h[B+3+96]=Ze}function G0(h,B){var K=h[B-1+0],pe=h[B-1+32],Ke=h[B-1+64],Ze=h[B-1+96],Ge=h[B-1-32],at=h[B+0-32],ut=h[B+1-32],ft=h[B+2-32];h[B+0+0]=h[B+2+32]=K+Ge+1>>1,h[B+0+32]=h[B+2+64]=pe+K+1>>1,h[B+0+64]=h[B+2+96]=Ke+pe+1>>1,h[B+0+96]=Ze+Ke+1>>1,h[B+3+0]=fo(at,ut,ft),h[B+2+0]=fo(Ge,at,ut),h[B+1+0]=h[B+3+32]=fo(K,Ge,at),h[B+1+32]=h[B+3+64]=fo(pe,K,Ge),h[B+1+64]=h[B+3+96]=fo(Ke,pe,K),h[B+1+96]=fo(Ze,Ke,pe)}function uh(h,B){var K;for(K=0;8>K;++K)l(h,B+32*K,h,B-32,8)}function Xh(h,B){var K;for(K=0;8>K;++K)A(h,B,h[B-1],8),B+=32}function X0(h,B,K){var pe;for(pe=0;8>pe;++pe)A(B,K+32*pe,h,8)}function Jh(h,B){var K,pe=8;for(K=0;8>K;++K)pe+=h[B+K-32]+h[B-1+32*K];X0(pe>>4,h,B)}function gm(h,B){var K,pe=4;for(K=0;8>K;++K)pe+=h[B+K-32];X0(pe>>3,h,B)}function Yh(h,B){var K,pe=4;for(K=0;8>K;++K)pe+=h[B-1+32*K];X0(pe>>3,h,B)}function Dp(h,B){X0(128,h,B)}function qh(h,B,K){var pe=h[B-K],Ke=h[B+0],Ze=3*(Ke-pe)+s0[1020+h[B-2*K]-h[B+K]],Ge=xm[112+(Ze+4>>3)];h[B-K]=Su[255+pe+xm[112+(Ze+3>>3)]],h[B+0]=Su[255+Ke-Ge]}function e0(h,B,K,pe){var Ke=h[B+0],Ze=h[B+K];return bc[255+h[B-2*K]-h[B-K]]>pe||bc[255+Ze-Ke]>pe}function qd(h,B,K,pe){return 4*bc[255+h[B-K]-h[B+0]]+bc[255+h[B-2*K]-h[B+K]]<=pe}function RA(h,B,K,pe,Ke){var Ze=h[B-3*K],Ge=h[B-2*K],at=h[B-K],ut=h[B+0],ft=h[B+K],jt=h[B+2*K],mr=h[B+3*K];return 4*bc[255+at-ut]+bc[255+Ge-ft]>pe?0:bc[255+h[B-4*K]-Ze]<=Ke&&bc[255+Ze-Ge]<=Ke&&bc[255+Ge-at]<=Ke&&bc[255+mr-jt]<=Ke&&bc[255+jt-ft]<=Ke&&bc[255+ft-ut]<=Ke}function t0(h,B,K,pe){var Ke=2*pe+1;for(pe=0;16>pe;++pe)qd(h,B+pe,K,Ke)&&qh(h,B+pe,K)}function Lf(h,B,K,pe){var Ke=2*pe+1;for(pe=0;16>pe;++pe)qd(h,B+pe*K,1,Ke)&&qh(h,B+pe*K,1)}function J0(h,B,K,pe){var Ke;for(Ke=3;0<Ke;--Ke)t0(h,B+=4*K,K,pe)}function r0(h,B,K,pe){var Ke;for(Ke=3;0<Ke;--Ke)Lf(h,B+=4,K,pe)}function tu(h,B,K,pe,Ke,Ze,Ge,at){for(Ze=2*Ze+1;0<Ke--;){if(RA(h,B,K,Ze,Ge))if(e0(h,B,K,at))qh(h,B,K);else{var ut=h,ft=B,jt=K,mr=ut[ft-2*jt],wt=ut[ft-jt],rr=ut[ft+0],pr=ut[ft+jt],Wr=ut[ft+2*jt],Cr=27*(bn=s0[1020+3*(rr-wt)+s0[1020+mr-pr]])+63>>7,cn=18*bn+63>>7,bn=9*bn+63>>7;ut[ft-3*jt]=Su[255+ut[ft-3*jt]+bn],ut[ft-2*jt]=Su[255+mr+cn],ut[ft-jt]=Su[255+wt+Cr],ut[ft+0]=Su[255+rr-Cr],ut[ft+jt]=Su[255+pr-cn],ut[ft+2*jt]=Su[255+Wr-bn]}B+=pe}}function bd(h,B,K,pe,Ke,Ze,Ge,at){for(Ze=2*Ze+1;0<Ke--;){if(RA(h,B,K,Ze,Ge))if(e0(h,B,K,at))qh(h,B,K);else{var ut=h,ft=B,jt=K,mr=ut[ft-jt],wt=ut[ft+0],rr=ut[ft+jt],pr=xm[112+(4+(Wr=3*(wt-mr))>>3)],Wr=xm[112+(Wr+3>>3)],Cr=pr+1>>1;ut[ft-2*jt]=Su[255+ut[ft-2*jt]+Cr],ut[ft-jt]=Su[255+mr+Wr],ut[ft+0]=Su[255+wt-pr],ut[ft+jt]=Su[255+rr-Cr]}B+=pe}}function Z(h,B,K,pe,Ke,Ze){tu(h,B,K,1,16,pe,Ke,Ze)}function He(h,B,K,pe,Ke,Ze){tu(h,B,1,K,16,pe,Ke,Ze)}function Bt(h,B,K,pe,Ke,Ze){var Ge;for(Ge=3;0<Ge;--Ge)bd(h,B+=4*K,K,1,16,pe,Ke,Ze)}function Wt(h,B,K,pe,Ke,Ze){var Ge;for(Ge=3;0<Ge;--Ge)bd(h,B+=4,1,K,16,pe,Ke,Ze)}function gr(h,B,K,pe,Ke,Ze,Ge,at){tu(h,B,Ke,1,8,Ze,Ge,at),tu(K,pe,Ke,1,8,Ze,Ge,at)}function mn(h,B,K,pe,Ke,Ze,Ge,at){tu(h,B,1,Ke,8,Ze,Ge,at),tu(K,pe,1,Ke,8,Ze,Ge,at)}function Bn(h,B,K,pe,Ke,Ze,Ge,at){bd(h,B+4*Ke,Ke,1,8,Ze,Ge,at),bd(K,pe+4*Ke,Ke,1,8,Ze,Ge,at)}function na(h,B,K,pe,Ke,Ze,Ge,at){bd(h,B+4,1,Ke,8,Ze,Ge,at),bd(K,pe+4,1,Ke,8,Ze,Ge,at)}function fa(){this.ba=new as,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new js,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function qa(){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 Co(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function Ns(){this.ua=0,this.Wa=new _o,this.vb=new _o,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new Kr,this.yc=new tr}function Tl(){this.xb=this.a=0,this.l=new zu,this.ca=new as,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Et,this.Pb=0,this.wd=new Et,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new Ns,this.ab=0,this.gc=O(4,Co),this.Oc=0}function tc(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new zu,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function zs(h,B,K,pe,Ke,Ze,Ge){for(h=h==null?0:h[B+0],B=0;B<Ge;++B)Ke[Ze+B]=h+K[pe+B]&255,h=Ke[Ze+B]}function Ga(h,B,K,pe,Ke,Ze,Ge){var at;if(h==null)zs(null,null,K,pe,Ke,Ze,Ge);else for(at=0;at<Ge;++at)Ke[Ze+at]=h[B+at]+K[pe+at]&255}function Ic(h,B,K,pe,Ke,Ze,Ge){if(h==null)zs(null,null,K,pe,Ke,Ze,Ge);else{var at,ut=h[B+0],ft=ut,jt=ut;for(at=0;at<Ge;++at)ft=jt+(ut=h[B+at])-ft,jt=K[pe+at]+(-256&ft?0>ft?0:255:ft)&255,ft=ut,Ke[Ze+at]=jt}}function AA(h,B,K,pe){var Ke=B.width,Ze=B.o;if(o(h!=null&&B!=null),0>K||0>=pe||K+pe>Ze)return null;if(!h.Cc){if(h.ga==null){var Ge;if(h.ga=new tc,(Ge=h.ga==null)||(Ge=B.width*B.o,o(h.Gb.length==0),h.Gb=p(Ge),h.Uc=0,h.Gb==null?Ge=0:(h.mb=h.Gb,h.nb=h.Uc,h.rc=null,Ge=1),Ge=!Ge),!Ge){Ge=h.ga;var at=h.Fa,ut=h.P,ft=h.qc,jt=h.mb,mr=h.nb,wt=ut+1,rr=ft-1,pr=Ge.l;if(o(at!=null&&jt!=null&&B!=null),vh[0]=null,vh[1]=zs,vh[2]=Ga,vh[3]=Ic,Ge.ca=jt,Ge.tb=mr,Ge.c=B.width,Ge.i=B.height,o(0<Ge.c&&0<Ge.i),1>=ft)B=0;else if(Ge.$a=3&at[ut+0],Ge.Z=at[ut+0]>>2&3,Ge.Lc=at[ut+0]>>4&3,ut=at[ut+0]>>6&3,0>Ge.$a||1<Ge.$a||4<=Ge.Z||1<Ge.Lc||ut)B=0;else if(pr.put=Ka,pr.ac=Wd,pr.bc=If,pr.ma=Ge,pr.width=B.width,pr.height=B.height,pr.Da=B.Da,pr.v=B.v,pr.va=B.va,pr.j=B.j,pr.o=B.o,Ge.$a)e:{o(Ge.$a==1),B=jh();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,Vr(B.m,at,wt,rr),!Jd(Ge.c,Ge.i,1,B,null)||(B.ab==1&&B.gc[0].hc==3&&Hu(B.s)?(Ge.ic=1,at=B.c*B.i,B.Ta=null,B.Ua=0,B.V=p(at),B.Ba=0,B.V==null?(B.a=1,B=0):B=1):(Ge.ic=0,B=zh(B,Ge.c)),!B))break t;B=1;break e}Ge.mc=null,B=0}else B=rr>=Ge.c*Ge.i;Ge=!B}if(Ge)return null;h.ga.Lc!=1?h.Ga=0:pe=Ze-K}o(h.ga!=null),o(K+pe<=Ze);e:{if(B=(at=h.ga).c,Ze=at.l.o,at.$a==0){if(wt=h.rc,rr=h.Vc,pr=h.Fa,ut=h.P+1+K*B,ft=h.mb,jt=h.nb+K*B,o(ut<=h.P+h.qc),at.Z!=0)for(o(vh[at.Z]!=null),Ge=0;Ge<pe;++Ge)vh[at.Z](wt,rr,pr,ut,ft,jt,B),wt=ft,rr=jt,jt+=B,ut+=B;else for(Ge=0;Ge<pe;++Ge)l(ft,jt,pr,ut,B),wt=ft,rr=jt,jt+=B,ut+=B;h.rc=wt,h.Vc=rr}else{if(o(at.mc!=null),B=K+pe,o((Ge=at.mc)!=null),o(B<=Ge.i),Ge.C>=B)B=1;else if(at.ic||n0(),at.ic){at=Ge.V,wt=Ge.Ba,rr=Ge.c;var Wr=Ge.i,Cr=(pr=1,ut=Ge.$/rr,ft=Ge.$%rr,jt=Ge.m,mr=Ge.s,Ge.$),cn=rr*Wr,bn=rr*B,Vn=mr.wc,kn=Cr<bn?hl(mr,ft,ut):null;o(Cr<=cn),o(B<=Wr),o(Hu(mr));t:for(;;){for(;!jt.h&&Cr<bn;){if(ft&Vn||(kn=hl(mr,ft,ut)),o(kn!=null),Br(jt),256>(Wr=sc(kn.G[0],kn.H[0],jt)))at[wt+Cr]=Wr,++Cr,++ft>=rr&&(ft=0,++ut<=B&&!(ut%16)&&sA(Ge,ut));else{if(!(280>Wr)){pr=0;break t}Wr=bu(Wr-256,jt);var Sa,ia=sc(kn.G[4],kn.H[4],jt);if(Br(jt),!(Cr>=(ia=yu(rr,ia=bu(ia,jt)))&&cn-Cr>=Wr)){pr=0;break t}for(Sa=0;Sa<Wr;++Sa)at[wt+Cr+Sa]=at[wt+Cr+Sa-ia];for(Cr+=Wr,ft+=Wr;ft>=rr;)ft-=rr,++ut<=B&&!(ut%16)&&sA(Ge,ut);Cr<bn&&ft&Vn&&(kn=hl(mr,ft,ut))}o(jt.h==er(jt))}sA(Ge,ut>B?B:ut);break t}!pr||jt.h&&Cr<cn?(pr=0,Ge.a=jt.h?5:3):Ge.$=Cr,B=pr}else B=xu(Ge,Ge.V,Ge.Ba,Ge.c,Ge.i,B,$h);if(!B){pe=0;break e}}K+pe>=Ze&&(h.Cc=1),pe=1}if(!pe)return null;if(h.Cc&&((pe=h.ga)!=null&&(pe.mc=null),h.ga=null,0<h.Ga))return alert("todo:WebPDequantizeLevels"),null}return h.nb+K*Ke}function kf(h,B,K,pe,Ke,Ze){for(;0<Ke--;){var Ge,at=h,ut=B+(K?1:0),ft=h,jt=B+(K?0:3);for(Ge=0;Ge<pe;++Ge){var mr=ft[jt+4*Ge];mr!=255&&(mr*=32897,at[ut+4*Ge+0]=at[ut+4*Ge+0]*mr>>23,at[ut+4*Ge+1]=at[ut+4*Ge+1]*mr>>23,at[ut+4*Ge+2]=at[ut+4*Ge+2]*mr>>23)}B+=Ze}}function kA(h,B,K,pe,Ke){for(;0<pe--;){var Ze;for(Ze=0;Ze<K;++Ze){var Ge=h[B+2*Ze+0],at=15&(ft=h[B+2*Ze+1]),ut=4369*at,ft=(240&ft|ft>>4)*ut>>16;h[B+2*Ze+0]=(240&Ge|Ge>>4)*ut>>16&240|(15&Ge|Ge<<4)*ut>>16>>4&15,h[B+2*Ze+1]=240&ft|at}B+=Ke}}function ng(h,B,K,pe,Ke,Ze,Ge,at){var ut,ft,jt=255;for(ft=0;ft<Ke;++ft){for(ut=0;ut<pe;++ut){var mr=h[B+ut];Ze[Ge+4*ut]=mr,jt&=mr}B+=K,Ge+=at}return jt!=255}function vm(h,B,K,pe,Ke){var Ze;for(Ze=0;Ze<Ke;++Ze)K[pe+Ze]=h[B+Ze]>>8}function n0(){Qp=kf,Lg=kA,ig=ng,kg=vm}function yd(h,B,K){Lt[h]=function(pe,Ke,Ze,Ge,at,ut,ft,jt,mr,wt,rr,pr,Wr,Cr,cn,bn,Vn){var kn,Sa=Vn-1>>1,ia=at[ut+0]|ft[jt+0]<<16,Ho=mr[wt+0]|rr[pr+0]<<16;o(pe!=null);var ga=3*ia+Ho+131074>>2;for(B(pe[Ke+0],255&ga,ga>>16,Wr,Cr),Ze!=null&&(ga=3*Ho+ia+131074>>2,B(Ze[Ge+0],255&ga,ga>>16,cn,bn)),kn=1;kn<=Sa;++kn){var _s=at[ut+kn]|ft[jt+kn]<<16,uA=mr[wt+kn]|rr[pr+kn]<<16,jo=ia+_s+Ho+uA+524296,va=jo+2*(_s+Ho)>>3;ga=va+ia>>1,ia=(jo=jo+2*(ia+uA)>>3)+_s>>1,B(pe[Ke+2*kn-1],255&ga,ga>>16,Wr,Cr+(2*kn-1)*K),B(pe[Ke+2*kn-0],255&ia,ia>>16,Wr,Cr+(2*kn-0)*K),Ze!=null&&(ga=jo+Ho>>1,ia=va+uA>>1,B(Ze[Ge+2*kn-1],255&ga,ga>>16,cn,bn+(2*kn-1)*K),B(Ze[Ge+2*kn+0],255&ia,ia>>16,cn,bn+(2*kn+0)*K)),ia=_s,Ho=uA}1&Vn||(ga=3*ia+Ho+131074>>2,B(pe[Ke+Vn-1],255&ga,ga>>16,Wr,Cr+(Vn-1)*K),Ze!=null&&(ga=3*Ho+ia+131074>>2,B(Ze[Ge+Vn-1],255&ga,ga>>16,cn,bn+(Vn-1)*K)))}}function To(){Zu[Cm]=w1,Zu[Bm]=t,Zu[Pg]=e,Zu[Kp]=r,Zu[ip]=i,Zu[og]=s,Zu[Ko]=c,Zu[sg]=t,Zu[af]=r,Zu[lc]=i,Zu[l0]=s}function $u(h){return h&~Te?0>h?0:255:h>>ce}function Cu(h,B){return $u((19077*h>>8)+(26149*B>>8)-14234)}function Fc(h,B,K){return $u((19077*h>>8)-(6419*B>>8)-(13320*K>>8)+8708)}function ru(h,B){return $u((19077*h>>8)+(33050*B>>8)-17685)}function wd(h,B,K,pe,Ke){pe[Ke+0]=Cu(h,K),pe[Ke+1]=Fc(h,B,K),pe[Ke+2]=ru(h,B)}function Y0(h,B,K,pe,Ke){pe[Ke+0]=ru(h,B),pe[Ke+1]=Fc(h,B,K),pe[Ke+2]=Cu(h,K)}function Df(h,B,K,pe,Ke){var Ze=Fc(h,B,K);B=Ze<<3&224|ru(h,B)>>3,pe[Ke+0]=248&Cu(h,K)|Ze>>5,pe[Ke+1]=B}function QA(h,B,K,pe,Ke){var Ze=240&ru(h,B)|15;pe[Ke+0]=240&Cu(h,K)|Fc(h,B,K)>>4,pe[Ke+1]=Ze}function Np(h,B,K,pe,Ke){pe[Ke+0]=255,wd(h,B,K,pe,Ke+1)}function q0(h,B,K,pe,Ke){Y0(h,B,K,pe,Ke),pe[Ke+3]=255}function ao(h,B,K,pe,Ke){wd(h,B,K,pe,Ke),pe[Ke+3]=255}function Ul(h,B){return 0>h?0:h>B?B:h}function DA(h,B,K){Lt[h]=function(pe,Ke,Ze,Ge,at,ut,ft,jt,mr){for(var wt=jt+(-2&mr)*K;jt!=wt;)B(pe[Ke+0],Ze[Ge+0],at[ut+0],ft,jt),B(pe[Ke+1],Ze[Ge+0],at[ut+0],ft,jt+K),Ke+=2,++Ge,++ut,jt+=2*K;1&mr&&B(pe[Ke+0],Ze[Ge+0],at[ut+0],ft,jt)}}function Nf(h,B,K){return K==0?h==0?B==0?6:5:B==0?4:0:K}function Op(h,B,K,pe,Ke){switch(h>>>30){case 3:vc(B,K,pe,Ke,0);break;case 2:Tf(B,K,pe,Ke);break;case 1:nf(B,K,pe,Ke)}}function $s(h,B){var K,pe,Ke=B.M,Ze=B.Nb,Ge=h.oc,at=h.pc+40,ut=h.oc,ft=h.pc+584,jt=h.oc,mr=h.pc+600;for(K=0;16>K;++K)Ge[at+32*K-1]=129;for(K=0;8>K;++K)ut[ft+32*K-1]=129,jt[mr+32*K-1]=129;for(0<Ke?Ge[at-1-32]=ut[ft-1-32]=jt[mr-1-32]=129:(A(Ge,at-32-1,127,21),A(ut,ft-32-1,127,9),A(jt,mr-32-1,127,9)),pe=0;pe<h.za;++pe){var wt=B.ya[B.aa+pe];if(0<pe){for(K=-1;16>K;++K)l(Ge,at+32*K-4,Ge,at+32*K+12,4);for(K=-1;8>K;++K)l(ut,ft+32*K-4,ut,ft+32*K+4,4),l(jt,mr+32*K-4,jt,mr+32*K+4,4)}var rr=h.Gd,pr=h.Hd+pe,Wr=wt.ad,Cr=wt.Hc;if(0<Ke&&(l(Ge,at-32,rr[pr].y,0,16),l(ut,ft-32,rr[pr].f,0,8),l(jt,mr-32,rr[pr].ea,0,8)),wt.Za){var cn=Ge,bn=at-32+16;for(0<Ke&&(pe>=h.za-1?A(cn,bn,rr[pr].y[15],4):l(cn,bn,rr[pr+1].y,0,4)),K=0;4>K;K++)cn[bn+128+K]=cn[bn+256+K]=cn[bn+384+K]=cn[bn+0+K];for(K=0;16>K;++K,Cr<<=2)cn=Ge,bn=at+Ln[K],Cd[wt.Ob[K]](cn,bn),Op(Cr,Wr,16*+K,cn,bn)}else if(cn=Nf(pe,Ke,wt.Ob[0]),gh[cn](Ge,at),Cr!=0)for(K=0;16>K;++K,Cr<<=2)Op(Cr,Wr,16*+K,Ge,at+Ln[K]);for(K=wt.Gc,cn=Nf(pe,Ke,wt.Dd),NA[cn](ut,ft),NA[cn](jt,mr),Cr=Wr,cn=ut,bn=ft,255&(wt=0|K)&&(170&wt?rp(Cr,256,cn,bn):Rp(Cr,256,cn,bn)),wt=jt,Cr=mr,255&(K>>=8)&&(170&K?rp(Wr,320,wt,Cr):Rp(Wr,320,wt,Cr)),Ke<h.Ub-1&&(l(rr[pr].y,0,Ge,at+480,16),l(rr[pr].f,0,ut,ft+224,8),l(rr[pr].ea,0,jt,mr+224,8)),K=8*Ze*h.B,rr=h.sa,pr=h.ta+16*pe+16*Ze*h.R,Wr=h.qa,wt=h.ra+8*pe+K,Cr=h.Ha,cn=h.Ia+8*pe+K,K=0;16>K;++K)l(rr,pr+K*h.R,Ge,at+32*K,16);for(K=0;8>K;++K)l(Wr,wt+K*h.B,ut,ft+32*K,8),l(Cr,cn+K*h.B,jt,mr+32*K,8)}}function ep(h,B,K,pe,Ke,Ze,Ge,at,ut){var ft=[0],jt=[0],mr=0,wt=ut!=null?ut.kd:0,rr=ut!=null?ut:new qa;if(h==null||12>K)return 7;rr.data=h,rr.w=B,rr.ha=K,B=[B],K=[K],rr.gb=[rr.gb];e:{var pr=B,Wr=K,Cr=rr.gb;if(o(h!=null),o(Wr!=null),o(Cr!=null),Cr[0]=0,12<=Wr[0]&&!a(h,pr[0],"RIFF")){if(a(h,pr[0]+8,"WEBP")){Cr=3;break e}var cn=sn(h,pr[0]+4);if(12>cn||4294967286<cn){Cr=3;break e}if(wt&&cn>Wr[0]-8){Cr=7;break e}Cr[0]=cn,pr[0]+=12,Wr[0]-=12}Cr=0}if(Cr!=0)return Cr;for(cn=0<rr.gb[0],K=K[0];;){e:{var bn=h;Wr=B,Cr=K;var Vn=ft,kn=jt,Sa=pr=[0];if((ga=mr=[mr])[0]=0,8>Cr[0])Cr=7;else{if(!a(bn,Wr[0],"VP8X")){if(sn(bn,Wr[0]+4)!=10){Cr=3;break e}if(18>Cr[0]){Cr=7;break e}var ia=sn(bn,Wr[0]+8),Ho=1+Si(bn,Wr[0]+12);if(2147483648<=Ho*(bn=1+Si(bn,Wr[0]+15))){Cr=3;break e}Sa!=null&&(Sa[0]=ia),Vn!=null&&(Vn[0]=Ho),kn!=null&&(kn[0]=bn),Wr[0]+=18,Cr[0]-=18,ga[0]=1}Cr=0}}if(mr=mr[0],pr=pr[0],Cr!=0)return Cr;if(Wr=!!(2&pr),!cn&&mr)return 3;if(Ze!=null&&(Ze[0]=!!(16&pr)),Ge!=null&&(Ge[0]=Wr),at!=null&&(at[0]=0),Ge=ft[0],pr=jt[0],mr&&Wr&&ut==null){Cr=0;break}if(4>K){Cr=7;break}if(cn&&mr||!cn&&!mr&&!a(h,B[0],"ALPH")){K=[K],rr.na=[rr.na],rr.P=[rr.P],rr.Sa=[rr.Sa];e:{ia=h,Cr=B,cn=K;var ga=rr.gb;Vn=rr.na,kn=rr.P,Sa=rr.Sa,Ho=22,o(ia!=null),o(cn!=null),bn=Cr[0];var _s=cn[0];for(o(Vn!=null),o(Sa!=null),Vn[0]=null,kn[0]=null,Sa[0]=0;;){if(Cr[0]=bn,cn[0]=_s,8>_s){Cr=7;break e}var uA=sn(ia,bn+4);if(4294967286<uA){Cr=3;break e}var jo=8+uA+1&-2;if(Ho+=jo,0<ga&&Ho>ga){Cr=3;break e}if(!a(ia,bn,"VP8 ")||!a(ia,bn,"VP8L")){Cr=0;break e}if(_s[0]<jo){Cr=7;break e}a(ia,bn,"ALPH")||(Vn[0]=ia,kn[0]=bn+8,Sa[0]=uA),bn+=jo,_s-=jo}}if(K=K[0],rr.na=rr.na[0],rr.P=rr.P[0],rr.Sa=rr.Sa[0],Cr!=0)break}K=[K],rr.Ja=[rr.Ja],rr.xa=[rr.xa];e:if(ga=h,Cr=B,cn=K,Vn=rr.gb[0],kn=rr.Ja,Sa=rr.xa,ia=Cr[0],bn=!a(ga,ia,"VP8 "),Ho=!a(ga,ia,"VP8L"),o(ga!=null),o(cn!=null),o(kn!=null),o(Sa!=null),8>cn[0])Cr=7;else{if(bn||Ho){if(ga=sn(ga,ia+4),12<=Vn&&ga>Vn-12){Cr=3;break e}if(wt&&ga>cn[0]-8){Cr=7;break e}kn[0]=ga,Cr[0]+=8,cn[0]-=8,Sa[0]=Ho}else Sa[0]=5<=cn[0]&&ga[ia+0]==47&&!(ga[ia+4]>>5),kn[0]=cn[0];Cr=0}if(K=K[0],rr.Ja=rr.Ja[0],rr.xa=rr.xa[0],B=B[0],Cr!=0)break;if(4294967286<rr.Ja)return 3;if(at==null||Wr||(at[0]=rr.xa?2:1),Ge=[Ge],pr=[pr],rr.xa){if(5>K){Cr=7;break}at=Ge,wt=pr,Wr=Ze,h==null||5>K?h=0:5<=K&&h[B+0]==47&&!(h[B+4]>>5)?(cn=[0],ga=[0],Vn=[0],Vr(kn=new Et,h,B,K),Ff(kn,cn,ga,Vn)?(at!=null&&(at[0]=cn[0]),wt!=null&&(wt[0]=ga[0]),Wr!=null&&(Wr[0]=Vn[0]),h=1):h=0):h=0}else{if(10>K){Cr=7;break}at=pr,h==null||10>K||!j0(h,B+3,K-3)?h=0:(wt=h[B+0]|h[B+1]<<8|h[B+2]<<16,Wr=16383&(h[B+7]<<8|h[B+6]),h=16383&(h[B+9]<<8|h[B+8]),1&wt||3<(wt>>1&7)||!(wt>>4&1)||wt>>5>=rr.Ja||!Wr||!h?h=0:(Ge&&(Ge[0]=Wr),at&&(at[0]=h),h=1))}if(!h||(Ge=Ge[0],pr=pr[0],mr&&(ft[0]!=Ge||jt[0]!=pr)))return 3;ut!=null&&(ut[0]=rr,ut.offset=B-ut.w,o(4294967286>B-ut.w),o(ut.offset==ut.ha-K));break}return Cr==0||Cr==7&&mr&&ut==null?(Ze!=null&&(Ze[0]|=rr.na!=null&&0<rr.na.length),pe!=null&&(pe[0]=Ge),Ke!=null&&(Ke[0]=pr),0):Cr}function Es(h,B,K){var pe=B.width,Ke=B.height,Ze=0,Ge=0,at=pe,ut=Ke;if(B.Da=h!=null&&0<h.Da,B.Da&&(at=h.cd,ut=h.bd,Ze=h.v,Ge=h.j,11>K||(Ze&=-2,Ge&=-2),0>Ze||0>Ge||0>=at||0>=ut||Ze+at>pe||Ge+ut>Ke))return 0;if(B.v=Ze,B.j=Ge,B.va=Ze+at,B.o=Ge+ut,B.U=at,B.T=ut,B.da=h!=null&&0<h.da,B.da){if(!Ta(at,ut,K=[h.ib],Ze=[h.hb]))return 0;B.ib=K[0],B.hb=Ze[0]}return B.ob=h!=null&&h.ob,B.Kb=h==null||!h.Sd,B.da&&(B.ob=B.ib<3*pe/4&&B.hb<3*Ke/4,B.Kb=0),1}function Bu(h){if(h==null)return 2;if(11>h.S){var B=h.f.RGBA;B.fb+=(h.height-1)*B.A,B.A=-B.A}else B=h.f.kb,h=h.height,B.O+=(h-1)*B.fa,B.fa=-B.fa,B.N+=(h-1>>1)*B.Ab,B.Ab=-B.Ab,B.W+=(h-1>>1)*B.Db,B.Db=-B.Db,B.F!=null&&(B.J+=(h-1)*B.lb,B.lb=-B.lb);return 0}function i0(h,B,K,pe){if(pe==null||0>=h||0>=B)return 2;if(K!=null){if(K.Da){var Ke=K.cd,Ze=K.bd,Ge=-2&K.v,at=-2&K.j;if(0>Ge||0>at||0>=Ke||0>=Ze||Ge+Ke>h||at+Ze>B)return 2;h=Ke,B=Ze}if(K.da){if(!Ta(h,B,Ke=[K.ib],Ze=[K.hb]))return 2;h=Ke[0],B=Ze[0]}}pe.width=h,pe.height=B;e:{var ut=pe.width,ft=pe.height;if(h=pe.S,0>=ut||0>=ft||!(h>=Cm&&13>h))h=2;else{if(0>=pe.Rd&&pe.sd==null){Ge=Ze=Ke=B=0;var jt=(at=ut*Pi[h])*ft;if(11>h||(Ze=(ft+1)/2*(B=(ut+1)/2),h==12&&(Ge=(Ke=ut)*ft)),(ft=p(jt+2*Ze+Ge))==null){h=1;break e}pe.sd=ft,11>h?((ut=pe.f.RGBA).eb=ft,ut.fb=0,ut.A=at,ut.size=jt):((ut=pe.f.kb).y=ft,ut.O=0,ut.fa=at,ut.Fd=jt,ut.f=ft,ut.N=0+jt,ut.Ab=B,ut.Cd=Ze,ut.ea=ft,ut.W=0+jt+Ze,ut.Db=B,ut.Ed=Ze,h==12&&(ut.F=ft,ut.J=0+jt+2*Ze),ut.Tc=Ge,ut.lb=Ke)}if(B=1,Ke=pe.S,Ze=pe.width,Ge=pe.height,Ke>=Cm&&13>Ke)if(11>Ke)h=pe.f.RGBA,B&=(at=Math.abs(h.A))*(Ge-1)+Ze<=h.size,B&=at>=Ze*Pi[Ke],B&=h.eb!=null;else{h=pe.f.kb,at=(Ze+1)/2,jt=(Ge+1)/2,ut=Math.abs(h.fa),ft=Math.abs(h.Ab);var mr=Math.abs(h.Db),wt=Math.abs(h.lb),rr=wt*(Ge-1)+Ze;B&=ut*(Ge-1)+Ze<=h.Fd,B&=ft*(jt-1)+at<=h.Cd,B=(B&=mr*(jt-1)+at<=h.Ed)&ut>=Ze&ft>=at&mr>=at,B&=h.y!=null,B&=h.f!=null,B&=h.ea!=null,Ke==12&&(B&=wt>=Ze,B&=rr<=h.Tc,B&=h.F!=null)}else B=0;h=B?0:2}}return h!=0||K!=null&&K.fd&&(h=Bu(pe)),h}var ef=64,xd=[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],Pp=24,a0=32,Mc=8,Tp=[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];ci("Predictor0","PredictorAdd0"),Lt.Predictor0=function(){return 4278190080},Lt.Predictor1=function(h){return h},Lt.Predictor2=function(h,B,K){return B[K+0]},Lt.Predictor3=function(h,B,K){return B[K+1]},Lt.Predictor4=function(h,B,K){return B[K-1]},Lt.Predictor5=function(h,B,K){return Fa(Fa(h,B[K+1]),B[K+0])},Lt.Predictor6=function(h,B,K){return Fa(h,B[K-1])},Lt.Predictor7=function(h,B,K){return Fa(h,B[K+0])},Lt.Predictor8=function(h,B,K){return Fa(B[K-1],B[K+0])},Lt.Predictor9=function(h,B,K){return Fa(B[K+0],B[K+1])},Lt.Predictor10=function(h,B,K){return Fa(Fa(h,B[K-1]),Fa(B[K+0],B[K+1]))},Lt.Predictor11=function(h,B,K){var pe=B[K+0];return 0>=Wa(pe>>24&255,h>>24&255,(B=B[K-1])>>24&255)+Wa(pe>>16&255,h>>16&255,B>>16&255)+Wa(pe>>8&255,h>>8&255,B>>8&255)+Wa(255&pe,255&h,255&B)?pe:h},Lt.Predictor12=function(h,B,K){var pe=B[K+0];return(ts((h>>24&255)+(pe>>24&255)-((B=B[K-1])>>24&255))<<24|ts((h>>16&255)+(pe>>16&255)-(B>>16&255))<<16|ts((h>>8&255)+(pe>>8&255)-(B>>8&255))<<8|ts((255&h)+(255&pe)-(255&B)))>>>0},Lt.Predictor13=function(h,B,K){var pe=B[K-1];return(yo((h=Fa(h,B[K+0]))>>24&255,pe>>24&255)<<24|yo(h>>16&255,pe>>16&255)<<16|yo(h>>8&255,pe>>8&255)<<8|yo(255&h,255&pe))>>>0};var KA=Lt.PredictorAdd0;Lt.PredictorAdd1=Hs,ci("Predictor2","PredictorAdd2"),ci("Predictor3","PredictorAdd3"),ci("Predictor4","PredictorAdd4"),ci("Predictor5","PredictorAdd5"),ci("Predictor6","PredictorAdd6"),ci("Predictor7","PredictorAdd7"),ci("Predictor8","PredictorAdd8"),ci("Predictor9","PredictorAdd9"),ci("Predictor10","PredictorAdd10"),ci("Predictor11","PredictorAdd11"),ci("Predictor12","PredictorAdd12"),ci("Predictor13","PredictorAdd13");var tf=Lt.PredictorAdd2;Ba("ColorIndexInverseTransform","MapARGB","32b",function(h){return h>>8&255},function(h){return h}),Ba("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(h){return h},function(h){return h>>8&255});var dh,Up=Lt.ColorIndexInverseTransform,fh=Lt.MapARGB,hh=Lt.VP8LColorIndexInverseTransformAlpha,Of=Lt.MapAlpha,ph=Lt.VP8LPredictorsAdd=[];ph.length=16,(Lt.VP8LPredictors=[]).length=16,(Lt.VP8LPredictorsAdd_C=[]).length=16,(Lt.VP8LPredictors_C=[]).length=16;var Pf,tp,nu,rf,ka,pl,gc,vc,Tf,rp,nf,Rp,Bg,Sg,Eg,_g,mh,Ig,Fg,np,Mg,bm,ym,o0,Qp,Lg,ig,kg,Dg=p(511),Ng=p(2041),Og=p(225),ag=p(767),wm=0,s0=Ng,xm=Og,Su=ag,bc=Dg,Cm=0,Bm=1,Pg=2,Kp=3,ip=4,og=5,Ko=6,sg=7,af=8,lc=9,l0=10,Uf=[2,3,7],Hp=[3,3,11],c0=[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,lg=[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],ap=[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],op=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],A0=[-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],gh=[],Cd=[],NA=[],y1=1,c1=2,vh=[],Zu=[];yd("UpsampleRgbLinePair",wd,3),yd("UpsampleBgrLinePair",Y0,3),yd("UpsampleRgbaLinePair",ao,4),yd("UpsampleBgraLinePair",q0,4),yd("UpsampleArgbLinePair",Np,4),yd("UpsampleRgba4444LinePair",QA,2),yd("UpsampleRgb565LinePair",Df,2);var w1=Lt.UpsampleRgbLinePair,e=Lt.UpsampleBgrLinePair,t=Lt.UpsampleRgbaLinePair,r=Lt.UpsampleBgraLinePair,i=Lt.UpsampleArgbLinePair,s=Lt.UpsampleRgba4444LinePair,c=Lt.UpsampleRgb565LinePair,u=16,L=1<<u-1,z=-227,X=482,ce=6,Te=(256<<ce)-1,nt=0,vt=p(256),St=p(256),xr=p(256),Sn=p(256),vr=p(X-z),nn=p(X-z);DA("YuvToRgbRow",wd,3),DA("YuvToBgrRow",Y0,3),DA("YuvToRgbaRow",ao,4),DA("YuvToBgraRow",q0,4),DA("YuvToArgbRow",Np,4),DA("YuvToRgba4444Row",QA,2),DA("YuvToRgb565Row",Df,2);var Ln=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],un=[0,2,8],Ci=[8,7,6,4,4,2,2,2,1,1,1,1],Yi=1;this.WebPDecodeRGBA=function(h,B,K,pe,Ke){var Ze=Bm,Ge=new fa,at=new as;Ge.ba=at,at.S=Ze,at.width=[at.width],at.height=[at.height];var ut=at.width,ft=at.height,jt=new Ya;if(jt==null||h==null)var mr=2;else o(jt!=null),mr=ep(h,B,K,jt.width,jt.height,jt.Pd,jt.Qd,jt.format,null);if(mr!=0?ut=0:(ut!=null&&(ut[0]=jt.width[0]),ft!=null&&(ft[0]=jt.height[0]),ut=1),ut){at.width=at.width[0],at.height=at.height[0],pe!=null&&(pe[0]=at.width),Ke!=null&&(Ke[0]=at.height);e:{if(pe=new zu,(Ke=new qa).data=h,Ke.w=B,Ke.ha=K,Ke.kd=1,B=[0],o(Ke!=null),((h=ep(Ke.data,Ke.w,Ke.ha,null,null,null,B,null,Ke))==0||h==7)&&B[0]&&(h=4),(B=h)==0){if(o(Ge!=null),pe.data=Ke.data,pe.w=Ke.w+Ke.offset,pe.ha=Ke.ha-Ke.offset,pe.put=Ka,pe.ac=Wd,pe.bc=If,pe.ma=Ge,Ke.xa){if((h=jh())==null){Ge=1;break e}if(function(wt,rr){var pr=[0],Wr=[0],Cr=[0];t:for(;;){if(wt==null)return 0;if(rr==null)return wt.a=2,0;if(wt.l=rr,wt.a=0,Vr(wt.m,rr.data,rr.w,rr.ha),!Ff(wt.m,pr,Wr,Cr)){wt.a=3;break t}if(wt.xb=c1,rr.width=pr[0],rr.height=Wr[0],!Jd(pr[0],Wr[0],1,wt,null))break t;return 1}return o(wt.a!=0),0}(h,pe)){if(pe=(B=i0(pe.width,pe.height,Ge.Oa,Ge.ba))==0){t:{pe=h;r:for(;;){if(pe==null){pe=0;break t}if(o(pe.s.yc!=null),o(pe.s.Ya!=null),o(0<pe.s.Wb),o((K=pe.l)!=null),o((Ke=K.ma)!=null),pe.xb!=0){if(pe.ca=Ke.ba,pe.tb=Ke.tb,o(pe.ca!=null),!Es(Ke.Oa,K,Kp)){pe.a=2;break r}if(!zh(pe,K.width)||K.da)break r;if((K.da||xo(pe.ca.S))&&n0(),11>pe.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),pe.ca.f.kb.F!=null&&n0()),pe.Pb&&0<pe.s.ua&&pe.s.vb.X==null&&!Ft(pe.s.vb,pe.s.Wa.Xa)){pe.a=1;break r}pe.xb=0}if(!xu(pe,pe.V,pe.Ba,pe.c,pe.i,K.o,Xd))break r;Ke.Dc=pe.Ma,pe=1;break t}o(pe.a!=0),pe=0}pe=!pe}pe&&(B=h.a)}else B=h.a}else{if((h=new Wh)==null){Ge=1;break e}if(h.Fa=Ke.na,h.P=Ke.P,h.qc=Ke.Sa,Lp(h,pe)){if((B=i0(pe.width,pe.height,Ge.Oa,Ge.ba))==0){if(h.Aa=0,K=Ge.Oa,o((Ke=h)!=null),K!=null){if(0<(ut=0>(ut=K.Md)?0:100<ut?255:255*ut/100)){for(ft=jt=0;4>ft;++ft)12>(mr=Ke.pb[ft]).lc&&(mr.ia=ut*Ci[0>mr.lc?0:mr.lc]>>3),jt|=mr.ia;jt&&(alert("todo:VP8InitRandom"),Ke.ia=1)}Ke.Ga=K.Id,100<Ke.Ga?Ke.Ga=100:0>Ke.Ga&&(Ke.Ga=0)}(function(wt,rr){if(wt==null)return 0;if(rr==null)return ec(wt,2,"NULL VP8Io parameter in VP8Decode().");if(!wt.cb&&!Lp(wt,rr))return 0;if(o(wt.cb),rr.ac==null||rr.ac(rr)){rr.ob&&(wt.L=0);var pr=un[wt.L];if(wt.L==2?(wt.yb=0,wt.zb=0):(wt.yb=rr.v-pr>>4,wt.zb=rr.j-pr>>4,0>wt.yb&&(wt.yb=0),0>wt.zb&&(wt.zb=0)),wt.Va=rr.o+15+pr>>4,wt.Hb=rr.va+15+pr>>4,wt.Hb>wt.za&&(wt.Hb=wt.za),wt.Va>wt.Ub&&(wt.Va=wt.Ub),0<wt.L){var Wr=wt.ed;for(pr=0;4>pr;++pr){var Cr;if(wt.Qa.Cb){var cn=wt.Qa.Lb[pr];wt.Qa.Fb||(cn+=Wr.Tb)}else cn=Wr.Tb;for(Cr=0;1>=Cr;++Cr){var bn=wt.gd[pr][Cr],Vn=cn;if(Wr.Pc&&(Vn+=Wr.vd[0],Cr&&(Vn+=Wr.od[0])),0<(Vn=0>Vn?0:63<Vn?63:Vn)){var kn=Vn;0<Wr.wb&&(kn=4<Wr.wb?kn>>2:kn>>1)>9-Wr.wb&&(kn=9-Wr.wb),1>kn&&(kn=1),bn.dd=kn,bn.tc=2*Vn+kn,bn.ld=40<=Vn?2:15<=Vn?1:0}else bn.tc=0;bn.La=Cr}}}pr=0}else ec(wt,6,"Frame setup failed"),pr=wt.a;if(pr=pr==0){if(pr){wt.$c=0,0<wt.Aa||(wt.Ic=Yi);t:{pr=wt.Ic,Wr=4*(kn=wt.za);var Sa=32*kn,ia=kn+1,Ho=0<wt.L?kn*(0<wt.Aa?2:1):0,ga=(wt.Aa==2?2:1)*kn;if((bn=Wr+832+(Cr=3*(16*pr+un[wt.L])/2*Sa)+(cn=wt.Fa!=null&&0<wt.Fa.length?wt.Kc.c*wt.Kc.i:0))!=bn)pr=0;else{if(bn>wt.Vb){if(wt.Vb=0,wt.Ec=p(bn),wt.Fc=0,wt.Ec==null){pr=ec(wt,1,"no memory during frame initialization.");break t}wt.Vb=bn}bn=wt.Ec,Vn=wt.Fc,wt.Ac=bn,wt.Bc=Vn,Vn+=Wr,wt.Gd=O(Sa,H0),wt.Hd=0,wt.rb=O(ia+1,Vh),wt.sb=1,wt.wa=Ho?O(Ho,eu):null,wt.Y=0,wt.D.Nb=0,wt.D.wa=wt.wa,wt.D.Y=wt.Y,0<wt.Aa&&(wt.D.Y+=kn),o(!0),wt.oc=bn,wt.pc=Vn,Vn+=832,wt.ya=O(ga,Fp),wt.aa=0,wt.D.ya=wt.ya,wt.D.aa=wt.aa,wt.Aa==2&&(wt.D.aa+=kn),wt.R=16*kn,wt.B=8*kn,kn=(Sa=un[wt.L])*wt.R,Sa=Sa/2*wt.B,wt.sa=bn,wt.ta=Vn+kn,wt.qa=wt.sa,wt.ra=wt.ta+16*pr*wt.R+Sa,wt.Ha=wt.qa,wt.Ia=wt.ra+8*pr*wt.B+Sa,wt.$c=0,Vn+=Cr,wt.mb=cn?bn:null,wt.nb=cn?Vn:null,o(Vn+cn<=wt.Fc+wt.Vb),ch(wt),A(wt.Ac,wt.Bc,0,Wr),pr=1}}if(pr){if(rr.ka=0,rr.y=wt.sa,rr.O=wt.ta,rr.f=wt.qa,rr.N=wt.ra,rr.ea=wt.Ha,rr.Vd=wt.Ia,rr.fa=wt.R,rr.Rc=wt.B,rr.F=null,rr.J=0,!wm){for(pr=-255;255>=pr;++pr)Dg[255+pr]=0>pr?-pr:pr;for(pr=-1020;1020>=pr;++pr)Ng[1020+pr]=-128>pr?-128:127<pr?127:pr;for(pr=-112;112>=pr;++pr)Og[112+pr]=-16>pr?-16:15<pr?15:pr;for(pr=-255;510>=pr;++pr)ag[255+pr]=0>pr?0:255<pr?255:pr;wm=1}gc=mm,vc=$0,rp=Xm,nf=md,Rp=pm,Tf=Gm,Bg=Z,Sg=He,Eg=gr,_g=mn,mh=Bt,Ig=Wt,Fg=Bn,np=na,Mg=t0,bm=Lf,ym=J0,o0=r0,Cd[0]=eg,Cd[1]=Ss,Cd[2]=Ym,Cd[3]=qm,Cd[4]=tg,Cd[5]=vd,Cd[6]=gd,Cd[7]=rg,Cd[8]=G0,Cd[9]=kp,gh[0]=Ah,gh[1]=Pl,gh[2]=Z0,gh[3]=V0,gh[4]=Jm,gh[5]=Gh,gh[6]=W0,NA[0]=Jh,NA[1]=cA,NA[2]=uh,NA[3]=Xh,NA[4]=Yh,NA[5]=gm,NA[6]=Dp,pr=1}else pr=0}pr&&(pr=function(_s,uA){for(_s.M=0;_s.M<_s.Va;++_s.M){var jo,va=_s.Jc[_s.M&_s.Xb],Ei=_s.m,zc=_s;for(jo=0;jo<zc.za;++jo){var No=Ei,Os=zc,rc=Os.Ac,HA=Os.Bc+4*jo,Eu=Os.zc,Lc=Os.ya[Os.aa+jo];if(Os.Qa.Bb?Lc.$b=wn(No,Os.Pa.jb[0])?2+wn(No,Os.Pa.jb[2]):wn(No,Os.Pa.jb[1]):Lc.$b=0,Os.kc&&(Lc.Ad=wn(No,Os.Bd)),Lc.Za=!wn(No,145)+0,Lc.Za){var iu=Lc.Ob,_u=0;for(Os=0;4>Os;++Os){var dA,Zs=Eu[0+Os];for(dA=0;4>dA;++dA){Zs=Hg[rc[HA+dA]][Zs];for(var ml=A0[wn(No,Zs[0])];0<ml;)ml=A0[2*ml+wn(No,Zs[ml])];Zs=-ml,rc[HA+dA]=Zs}l(iu,_u,rc,HA,4),_u+=4,Eu[0+Os]=Zs}}else Zs=wn(No,156)?wn(No,128)?1:3:wn(No,163)?2:0,Lc.Ob[0]=Zs,A(rc,HA,Zs,4),A(Eu,0,Zs,4);Lc.Dd=wn(No,142)?wn(No,114)?wn(No,183)?1:3:2:0}if(zc.m.Ka)return ec(_s,7,"Premature end-of-partition0 encountered.");for(;_s.ja<_s.za;++_s.ja){if(zc=va,No=(Ei=_s).rb[Ei.sb-1],rc=Ei.rb[Ei.sb+Ei.ja],jo=Ei.ya[Ei.aa+Ei.ja],HA=Ei.kc?jo.Ad:0)No.la=rc.la=0,jo.Za||(No.Na=rc.Na=0),jo.Hc=0,jo.Gc=0,jo.ia=0;else{var kc,gl;if(No=rc,rc=zc,HA=Ei.Pa.Xc,Eu=Ei.ya[Ei.aa+Ei.ja],Lc=Ei.pb[Eu.$b],Os=Eu.ad,iu=0,_u=Ei.rb[Ei.sb-1],Zs=dA=0,A(Os,iu,0,384),Eu.Za)var jA=0,Rf=HA[3];else{ml=p(16);var $c=No.Na+_u.Na;if($c=op(rc,HA[1],$c,Lc.Eb,0,ml,0),No.Na=_u.Na=(0<$c)+0,1<$c)gc(ml,0,Os,iu);else{var Vu=ml[0]+3>>3;for(ml=0;256>ml;ml+=16)Os[iu+ml]=Vu}jA=1,Rf=HA[0]}var Il=15&No.la,fA=15&_u.la;for(ml=0;4>ml;++ml){var Bd=1&fA;for(Vu=gl=0;4>Vu;++Vu)Il=Il>>1|(Bd=($c=op(rc,Rf,$c=Bd+(1&Il),Lc.Sc,jA,Os,iu))>jA)<<7,gl=gl<<2|(3<$c?3:1<$c?2:Os[iu+0]!=0),iu+=16;Il>>=4,fA=fA>>1|Bd<<7,dA=(dA<<8|gl)>>>0}for(Rf=Il,jA=fA>>4,kc=0;4>kc;kc+=2){for(gl=0,Il=No.la>>4+kc,fA=_u.la>>4+kc,ml=0;2>ml;++ml){for(Bd=1&fA,Vu=0;2>Vu;++Vu)$c=Bd+(1&Il),Il=Il>>1|(Bd=0<($c=op(rc,HA[2],$c,Lc.Qc,0,Os,iu)))<<3,gl=gl<<2|(3<$c?3:1<$c?2:Os[iu+0]!=0),iu+=16;Il>>=2,fA=fA>>1|Bd<<5}Zs|=gl<<4*kc,Rf|=Il<<4<<kc,jA|=(240&fA)<<kc}No.la=Rf,_u.la=jA,Eu.Hc=dA,Eu.Gc=Zs,Eu.ia=43690&Zs?0:Lc.ia,HA=!(dA|Zs)}if(0<Ei.L&&(Ei.wa[Ei.Y+Ei.ja]=Ei.gd[jo.$b][jo.Za],Ei.wa[Ei.Y+Ei.ja].La|=!HA),zc.Ka)return ec(_s,7,"Premature end-of-file encountered.")}if(ch(_s),Ei=uA,zc=1,jo=(va=_s).D,No=0<va.L&&va.M>=va.zb&&va.M<=va.Va,va.Aa==0)t:{if(jo.M=va.M,jo.uc=No,$s(va,jo),zc=1,jo=(gl=va.D).Nb,No=(Zs=un[va.L])*va.R,rc=Zs/2*va.B,ml=16*jo*va.R,Vu=8*jo*va.B,HA=va.sa,Eu=va.ta-No+ml,Lc=va.qa,Os=va.ra-rc+Vu,iu=va.Ha,_u=va.Ia-rc+Vu,fA=(Il=gl.M)==0,dA=Il>=va.Va-1,va.Aa==2&&$s(va,gl),gl.uc)for(Bd=($c=va).D.M,o($c.D.uc),gl=$c.yb;gl<$c.Hb;++gl){jA=gl,Rf=Bd;var Iu=(Sd=(zA=$c).D).Nb;kc=zA.R;var Sd=Sd.wa[Sd.Y+jA],Ed=zA.sa,Wu=zA.ta+16*Iu*kc+16*jA,_d=Sd.dd,Rl=Sd.tc;if(Rl!=0)if(o(3<=Rl),zA.L==1)0<jA&&bm(Ed,Wu,kc,Rl+4),Sd.La&&o0(Ed,Wu,kc,Rl),0<Rf&&Mg(Ed,Wu,kc,Rl+4),Sd.La&&ym(Ed,Wu,kc,Rl);else{var Id=zA.B,Qf=zA.qa,jp=zA.ra+8*Iu*Id+8*jA,u0=zA.Ha,zA=zA.Ia+8*Iu*Id+8*jA;Iu=Sd.ld,0<jA&&(Sg(Ed,Wu,kc,Rl+4,_d,Iu),_g(Qf,jp,u0,zA,Id,Rl+4,_d,Iu)),Sd.La&&(Ig(Ed,Wu,kc,Rl,_d,Iu),np(Qf,jp,u0,zA,Id,Rl,_d,Iu)),0<Rf&&(Bg(Ed,Wu,kc,Rl+4,_d,Iu),Eg(Qf,jp,u0,zA,Id,Rl+4,_d,Iu)),Sd.La&&(mh(Ed,Wu,kc,Rl,_d,Iu),Fg(Qf,jp,u0,zA,Id,Rl,_d,Iu))}}if(va.ia&&alert("todo:DitherRow"),Ei.put!=null){if(gl=16*Il,Il=16*(Il+1),fA?(Ei.y=va.sa,Ei.O=va.ta+ml,Ei.f=va.qa,Ei.N=va.ra+Vu,Ei.ea=va.Ha,Ei.W=va.Ia+Vu):(gl-=Zs,Ei.y=HA,Ei.O=Eu,Ei.f=Lc,Ei.N=Os,Ei.ea=iu,Ei.W=_u),dA||(Il-=Zs),Il>Ei.o&&(Il=Ei.o),Ei.F=null,Ei.J=null,va.Fa!=null&&0<va.Fa.length&&gl<Il&&(Ei.J=AA(va,Ei,gl,Il-gl),Ei.F=va.mb,Ei.F==null&&Ei.F.length==0)){zc=ec(va,3,"Could not decode alpha data.");break t}gl<Ei.j&&(Zs=Ei.j-gl,gl=Ei.j,o(!(1&Zs)),Ei.O+=va.R*Zs,Ei.N+=va.B*(Zs>>1),Ei.W+=va.B*(Zs>>1),Ei.F!=null&&(Ei.J+=Ei.width*Zs)),gl<Il&&(Ei.O+=Ei.v,Ei.N+=Ei.v>>1,Ei.W+=Ei.v>>1,Ei.F!=null&&(Ei.J+=Ei.v),Ei.ka=gl-Ei.j,Ei.U=Ei.va-Ei.v,Ei.T=Il-gl,zc=Ei.put(Ei))}jo+1!=va.Ic||dA||(l(va.sa,va.ta-No,HA,Eu+16*va.R,No),l(va.qa,va.ra-rc,Lc,Os+8*va.B,rc),l(va.Ha,va.Ia-rc,iu,_u+8*va.B,rc))}if(!zc)return ec(_s,6,"Output aborted.")}return 1}(wt,rr)),rr.bc!=null&&rr.bc(rr),pr&=1}return pr?(wt.cb=0,pr):0})(h,pe)||(B=h.a)}}else B=h.a}B==0&&Ge.Oa!=null&&Ge.Oa.fd&&(B=Bu(Ge.ba))}Ge=B}Ze=Ge!=0?null:11>Ze?at.f.RGBA.eb:at.f.kb.y}else Ze=null;return Ze};var Pi=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function V(Lt,wr){for(var it="",Ct=0;Ct<4;Ct++)it+=String.fromCharCode(Lt[wr++]);return it}function le(Lt,wr){return Lt[wr+0]|Lt[wr+1]<<8}function Re(Lt,wr){return(Lt[wr+0]|Lt[wr+1]<<8|Lt[wr+2]<<16)>>>0}function $e(Lt,wr){return(Lt[wr+0]|Lt[wr+1]<<8|Lt[wr+2]<<16|Lt[wr+3]<<24)>>>0}new R;var oe=[0],gt=[0],dt=[],yt=new R,lt=n,Xt=function(Lt,wr){var it={},Ct=0,tr=!1,$t=0,Kr=0;if(it.frames=[],!function(tt,Et){for(var Nt=0;Nt<4;Nt++)if(tt[Et+Nt]!="RIFF".charCodeAt(Nt))return!0;return!1}(Lt,wr)){for($e(Lt,wr+=4),wr+=8;wr<Lt.length;){var Zr=V(Lt,wr),tn=$e(Lt,wr+=4);wr+=4;var Mr=tn+(1&tn);switch(Zr){case"VP8 ":case"VP8L":it.frames[Ct]===void 0&&(it.frames[Ct]={}),(In=it.frames[Ct]).src_off=tr?Kr:wr-8,In.src_size=$t+tn+8,Ct++,tr&&(tr=!1,$t=0,Kr=0);break;case"VP8X":(In=it.header={}).feature_flags=Lt[wr];var Vr=wr+4;In.canvas_width=1+Re(Lt,Vr),Vr+=3,In.canvas_height=1+Re(Lt,Vr),Vr+=3;break;case"ALPH":tr=!0,$t=Mr+8,Kr=wr-8;break;case"ANIM":(In=it.header).bgcolor=$e(Lt,wr),Vr=wr+4,In.loop_count=le(Lt,Vr),Vr+=2;break;case"ANMF":var Zn,In;(In=it.frames[Ct]={}).offset_x=2*Re(Lt,wr),wr+=3,In.offset_y=2*Re(Lt,wr),wr+=3,In.width=1+Re(Lt,wr),wr+=3,In.height=1+Re(Lt,wr),wr+=3,In.duration=Re(Lt,wr),wr+=3,Zn=Lt[wr++],In.dispose=1&Zn,In.blend=Zn>>1&1}Zr!="ANMF"&&(wr+=Mr)}return it}}(lt,0);Xt.response=lt,Xt.rgbaoutput=!0,Xt.dataurl=!1;var Qt=Xt.header?Xt.header:null,It=Xt.frames?Xt.frames:null;if(Qt){Qt.loop_counter=Qt.loop_count,oe=[Qt.canvas_height],gt=[Qt.canvas_width];for(var kr=0;kr<It.length&&It[kr].blend!=0;kr++);}var rn=It[0],Pr=yt.WebPDecodeRGBA(lt,rn.src_off,rn.src_size,gt,oe);rn.rgba=Pr,rn.imgwidth=gt[0],rn.imgheight=oe[0];for(var ir=0;ir<gt[0]*oe[0]*4;ir++)dt[ir]=Pr[ir];return this.width=gt,this.height=oe,this.data=dt,this}(function(n){var o,a,l,A,p,O,E,R,V,le=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 R,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,A=this.internal.getHorizontalCoordinate,p=this.internal.getVerticalCoordinate,O=this.internal.Point,E=this.internal.Rectangle,R=this.internal.Matrix,V=new le}]);var Re=function(tt){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var Et=tt;Object.defineProperty(this,"pdf",{get:function(){return Et}});var Nt=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return Nt},set:function(sn){Nt=!!sn}});var er=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return er},set:function(sn){er=!!sn}});var dr=0;Object.defineProperty(this,"posX",{get:function(){return dr},set:function(sn){isNaN(sn)||(dr=sn)}});var Br=0;Object.defineProperty(this,"posY",{get:function(){return Br},set:function(sn){isNaN(sn)||(Br=sn)}}),Object.defineProperty(this,"margin",{get:function(){return V.margin},set:function(sn){var Ft;typeof sn=="number"?Ft=[sn,sn,sn,sn]:((Ft=new Array(4))[0]=sn[0],Ft[1]=sn.length>=2?sn[1]:Ft[0],Ft[2]=sn.length>=3?sn[2]:Ft[0],Ft[3]=sn.length>=4?sn[3]:Ft[1]),V.margin=Ft}});var Gr=!1;Object.defineProperty(this,"autoPaging",{get:function(){return Gr},set:function(sn){Gr=sn}});var Ur=0;Object.defineProperty(this,"lastBreak",{get:function(){return Ur},set:function(sn){Ur=sn}});var wn=[];Object.defineProperty(this,"pageBreaks",{get:function(){return wn},set:function(sn){wn=sn}}),Object.defineProperty(this,"ctx",{get:function(){return V},set:function(sn){sn instanceof le&&(V=sn)}}),Object.defineProperty(this,"path",{get:function(){return V.path},set:function(sn){V.path=sn}});var zn=[];Object.defineProperty(this,"ctxStack",{get:function(){return zn},set:function(sn){zn=sn}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(sn){var Ft;Ft=$e(sn),this.ctx.fillStyle=Ft.style,this.ctx.isFillTransparent=Ft.a===0,this.ctx.fillOpacity=Ft.a,this.pdf.setFillColor(Ft.r,Ft.g,Ft.b,{a:Ft.a}),this.pdf.setTextColor(Ft.r,Ft.g,Ft.b,{a:Ft.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(sn){var Ft=$e(sn);this.ctx.strokeStyle=Ft.style,this.ctx.isStrokeTransparent=Ft.a===0,this.ctx.strokeOpacity=Ft.a,Ft.a===0?this.pdf.setDrawColor(255,255,255):(Ft.a,this.pdf.setDrawColor(Ft.r,Ft.g,Ft.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(sn){["butt","round","square"].indexOf(sn)!==-1&&(this.ctx.lineCap=sn,this.pdf.setLineCap(sn))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(sn){isNaN(sn)||(this.ctx.lineWidth=sn,this.pdf.setLineWidth(sn))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(sn){["bevel","round","miter"].indexOf(sn)!==-1&&(this.ctx.lineJoin=sn,this.pdf.setLineJoin(sn))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(sn){isNaN(sn)||(this.ctx.miterLimit=sn,this.pdf.setMiterLimit(sn))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(sn){this.ctx.textBaseline=sn}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(sn){["right","end","center","left","start"].indexOf(sn)!==-1&&(this.ctx.textAlign=sn)}});var hi=null,Si=null;Object.defineProperty(this,"fontFaces",{get:function(){return Si},set:function(sn){hi=null,Si=sn}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(sn){var Ft;if(this.ctx.font=sn,(Ft=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(sn))!==null){var Go=Ft[1];Ft[2];var _o=Ft[3],Ta=Ft[4];Ft[5];var Gn=Ft[6],wa=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(Ta)[2];Ta=Math.floor(wa==="px"?parseFloat(Ta)*this.pdf.internal.scaleFactor:wa==="em"?parseFloat(Ta)*this.pdf.getFontSize():parseFloat(Ta)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(Ta);var ci=function(ro){var Ba,yl,Ds=[],ma=ro.trim();if(ma==="")return zm;if(ma in MA)return[MA[ma]];for(;ma!=="";){switch(yl=null,Ba=(ma=Vd(ma)).charAt(0)){case'"':case"'":yl=qA(ma.substring(1),Ba);break;default:yl=fd(ma)}if(yl===null||(Ds.push(yl[0]),(ma=Vd(yl[1]))!==""&&ma.charAt(0)!==","))return zm;ma=ma.replace(/^,/,"")}return Ds}(Gn);if(this.fontFaces){var Ja=function(ro,Ba){if(hi===null){var yl=function(Ds){var ma=[];return Object.keys(Ds).forEach(function(wo){Ds[wo].forEach(function(fl){var La=null;switch(fl){case"bold":La={family:wo,weight:"bold"};break;case"italic":La={family:wo,style:"italic"};break;case"bolditalic":La={family:wo,weight:"bold",style:"italic"};break;case"":case"normal":La={family:wo}}La!==null&&(La.ref={name:wo,style:fl},ma.push(La))})}),ma}(ro.getFontList());hi=function(Ds){for(var ma={},wo=0;wo<Ds.length;++wo){var fl=YA(Ds[wo]),La=fl.family,is=fl.stretch,xo=fl.style,ql=fl.weight;ma[La]=ma[La]||{},ma[La][is]=ma[La][is]||{},ma[La][is][xo]=ma[La][is][xo]||{},ma[La][is][xo][ql]=fl}return ma}(yl.concat(Ba))}return hi}(this.pdf,this.fontFaces),Fa=ci.map(function(ro){return{family:ro,stretch:"normal",weight:_o,style:Go}}),ts=function(ro,Ba,yl){for(var Ds=(yl=yl||{}).defaultFontFamily||"times",ma=Object.assign({},Qu,yl.genericFontFamilies||{}),wo=null,fl=null,La=0;La<Ba.length;++La)if(ma[(wo=YA(Ba[La])).family]&&(wo.family=ma[wo.family]),ro.hasOwnProperty(wo.family)){fl=ro[wo.family];break}if(!(fl=fl||ro[Ds]))throw new Error("Could not find a font-family for the rule '"+Ku(wo)+"' and default family '"+Ds+"'.");if(fl=function(is,xo){if(xo[is])return xo[is];var ql=Jc[is],Ol=ql<=Jc.normal?-1:1,as=pu(xo,dd,ql,Ol);if(!as)throw new Error("Could not find a matching font-stretch value for "+is);return as}(wo.stretch,fl),fl=function(is,xo){if(xo[is])return xo[is];for(var ql=_c[is],Ol=0;Ol<ql.length;++Ol)if(xo[ql[Ol]])return xo[ql[Ol]];throw new Error("Could not find a matching font-style for "+is)}(wo.style,fl),!(fl=function(is,xo){if(xo[is])return xo[is];if(is===400&&xo[500])return xo[500];if(is===500&&xo[400])return xo[400];var ql=hu[is],Ol=pu(xo,oA,ql,is<400?-1:1);if(!Ol)throw new Error("Could not find a matching font-weight for value "+is);return Ol}(wo.weight,fl)))throw new Error("Failed to resolve a font for the rule '"+Ku(wo)+"'.");return fl}(Ja,Fa);this.pdf.setFont(ts.ref.name,ts.ref.style)}else{var yo="";(_o==="bold"||parseInt(_o,10)>=700||Go==="bold")&&(yo="bold"),Go==="italic"&&(yo+="italic"),yo.length===0&&(yo="normal");for(var Wa="",Hs={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},uo=0;uo<ci.length;uo++){if(this.pdf.internal.getFont(ci[uo],yo,{noFallback:!0,disableWarning:!0})!==void 0){Wa=ci[uo];break}if(yo==="bolditalic"&&this.pdf.internal.getFont(ci[uo],"bold",{noFallback:!0,disableWarning:!0})!==void 0)Wa=ci[uo],yo="bold";else if(this.pdf.internal.getFont(ci[uo],"normal",{noFallback:!0,disableWarning:!0})!==void 0){Wa=ci[uo],yo="normal";break}}if(Wa===""){for(var Ca=0;Ca<ci.length;Ca++)if(Hs[ci[Ca]]){Wa=Hs[ci[Ca]];break}}Wa=Wa===""?"Times":Wa,this.pdf.setFont(Wa,yo)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(sn){this.ctx.globalCompositeOperation=sn}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(sn){this.ctx.globalAlpha=sn}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(sn){this.ctx.lineDashOffset=sn,In.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(sn){this.ctx.lineDash=sn,In.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(sn){this.ctx.ignoreClearRect=!!sn}})};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(){It.call(this,"fill",!1)},Re.prototype.stroke=function(){It.call(this,"stroke",!1)},Re.prototype.beginPath=function(){this.path=[{type:"begin"}]},Re.prototype.moveTo=function(tt,Et){if(isNaN(tt)||isNaN(Et))throw ks.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var Nt=this.ctx.transform.applyToPoint(new O(tt,Et));this.path.push({type:"mt",x:Nt.x,y:Nt.y}),this.ctx.lastPoint=new O(tt,Et)},Re.prototype.closePath=function(){var tt=new O(0,0),Et=0;for(Et=this.path.length-1;Et!==-1;Et--)if(this.path[Et].type==="begin"&&(0,ve.Z)(this.path[Et+1])==="object"&&typeof this.path[Et+1].x=="number"){tt=new O(this.path[Et+1].x,this.path[Et+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new O(tt.x,tt.y)},Re.prototype.lineTo=function(tt,Et){if(isNaN(tt)||isNaN(Et))throw ks.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var Nt=this.ctx.transform.applyToPoint(new O(tt,Et));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)),It.call(this,null,!0)},Re.prototype.quadraticCurveTo=function(tt,Et,Nt,er){if(isNaN(Nt)||isNaN(er)||isNaN(tt)||isNaN(Et))throw ks.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var dr=this.ctx.transform.applyToPoint(new O(Nt,er)),Br=this.ctx.transform.applyToPoint(new O(tt,Et));this.path.push({type:"qct",x1:Br.x,y1:Br.y,x:dr.x,y:dr.y}),this.ctx.lastPoint=new O(dr.x,dr.y)},Re.prototype.bezierCurveTo=function(tt,Et,Nt,er,dr,Br){if(isNaN(dr)||isNaN(Br)||isNaN(tt)||isNaN(Et)||isNaN(Nt)||isNaN(er))throw ks.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var Gr=this.ctx.transform.applyToPoint(new O(dr,Br)),Ur=this.ctx.transform.applyToPoint(new O(tt,Et)),wn=this.ctx.transform.applyToPoint(new O(Nt,er));this.path.push({type:"bct",x1:Ur.x,y1:Ur.y,x2:wn.x,y2:wn.y,x:Gr.x,y:Gr.y}),this.ctx.lastPoint=new O(Gr.x,Gr.y)},Re.prototype.arc=function(tt,Et,Nt,er,dr,Br){if(isNaN(tt)||isNaN(Et)||isNaN(Nt)||isNaN(er)||isNaN(dr))throw ks.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(Br=!!Br,!this.ctx.transform.isIdentity){var Gr=this.ctx.transform.applyToPoint(new O(tt,Et));tt=Gr.x,Et=Gr.y;var Ur=this.ctx.transform.applyToPoint(new O(0,Nt)),wn=this.ctx.transform.applyToPoint(new O(0,0));Nt=Math.sqrt(Math.pow(Ur.x-wn.x,2)+Math.pow(Ur.y-wn.y,2))}Math.abs(dr-er)>=2*Math.PI&&(er=0,dr=2*Math.PI),this.path.push({type:"arc",x:tt,y:Et,radius:Nt,startAngle:er,endAngle:dr,counterclockwise:Br})},Re.prototype.arcTo=function(tt,Et,Nt,er,dr){throw new Error("arcTo not implemented.")},Re.prototype.rect=function(tt,Et,Nt,er){if(isNaN(tt)||isNaN(Et)||isNaN(Nt)||isNaN(er))throw ks.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(tt,Et),this.lineTo(tt+Nt,Et),this.lineTo(tt+Nt,Et+er),this.lineTo(tt,Et+er),this.lineTo(tt,Et),this.lineTo(tt+Nt,Et),this.lineTo(tt,Et)},Re.prototype.fillRect=function(tt,Et,Nt,er){if(isNaN(tt)||isNaN(Et)||isNaN(Nt)||isNaN(er))throw ks.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!oe.call(this)){var dr={};this.lineCap!=="butt"&&(dr.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(dr.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(tt,Et,Nt,er),this.fill(),dr.hasOwnProperty("lineCap")&&(this.lineCap=dr.lineCap),dr.hasOwnProperty("lineJoin")&&(this.lineJoin=dr.lineJoin)}},Re.prototype.strokeRect=function(tt,Et,Nt,er){if(isNaN(tt)||isNaN(Et)||isNaN(Nt)||isNaN(er))throw ks.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");gt.call(this)||(this.beginPath(),this.rect(tt,Et,Nt,er),this.stroke())},Re.prototype.clearRect=function(tt,Et,Nt,er){if(isNaN(tt)||isNaN(Et)||isNaN(Nt)||isNaN(er))throw ks.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(tt,Et,Nt,er))},Re.prototype.save=function(tt){tt=typeof tt!="boolean"||tt;for(var Et=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(Et),tt){this.ctx.fontSize=this.pdf.internal.getFontSize();var er=new le(this.ctx);this.ctxStack.push(this.ctx),this.ctx=er}},Re.prototype.restore=function(tt){tt=typeof tt!="boolean"||tt;for(var Et=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(Et),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 $e=function(tt){var Et,Nt,er,dr;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))Et=0,Nt=0,er=0,dr=0;else{var Br=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(tt);if(Br!==null)Et=parseInt(Br[1]),Nt=parseInt(Br[2]),er=parseInt(Br[3]),dr=1;else if((Br=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(tt))!==null)Et=parseInt(Br[1]),Nt=parseInt(Br[2]),er=parseInt(Br[3]),dr=parseFloat(Br[4]);else{if(dr=1,typeof tt=="string"&&tt.charAt(0)!=="#"){var Gr=new yp(tt);tt=Gr.ok?Gr.toHex():"#000000"}tt.length===4?(Et=tt.substring(1,2),Et+=Et,Nt=tt.substring(2,3),Nt+=Nt,er=tt.substring(3,4),er+=er):(Et=tt.substring(1,3),Nt=tt.substring(3,5),er=tt.substring(5,7)),Et=parseInt(Et,16),Nt=parseInt(Nt,16),er=parseInt(er,16)}}return{r:Et,g:Nt,b:er,a:dr,style:tt}},oe=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},gt=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};Re.prototype.fillText=function(tt,Et,Nt,er){if(isNaN(Et)||isNaN(Nt)||typeof tt!="string")throw ks.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(er=isNaN(er)?void 0:er,!oe.call(this)){var dr=Mr(this.ctx.transform.rotation),Br=this.ctx.transform.scaleX;Ct.call(this,{text:tt,x:Et,y:Nt,scale:Br,angle:dr,align:this.textAlign,maxWidth:er})}},Re.prototype.strokeText=function(tt,Et,Nt,er){if(isNaN(Et)||isNaN(Nt)||typeof tt!="string")throw ks.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!gt.call(this)){er=isNaN(er)?void 0:er;var dr=Mr(this.ctx.transform.rotation),Br=this.ctx.transform.scaleX;Ct.call(this,{text:tt,x:Et,y:Nt,scale:Br,renderingMode:"stroke",angle:dr,align:this.textAlign,maxWidth:er})}},Re.prototype.measureText=function(tt){if(typeof tt!="string")throw ks.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var Et=this.pdf,Nt=this.pdf.internal.scaleFactor,er=Et.internal.getFontSize(),dr=Et.getStringUnitWidth(tt)*er/Et.internal.scaleFactor;return new function(Br){var Gr=(Br=Br||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return Gr}}),this}({width:dr*=Math.round(96*Nt/72*1e4)/1e4})},Re.prototype.scale=function(tt,Et){if(isNaN(tt)||isNaN(Et))throw ks.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var Nt=new R(tt,0,0,Et,0,0);this.ctx.transform=this.ctx.transform.multiply(Nt)},Re.prototype.rotate=function(tt){if(isNaN(tt))throw ks.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var Et=new R(Math.cos(tt),Math.sin(tt),-Math.sin(tt),Math.cos(tt),0,0);this.ctx.transform=this.ctx.transform.multiply(Et)},Re.prototype.translate=function(tt,Et){if(isNaN(tt)||isNaN(Et))throw ks.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var Nt=new R(1,0,0,1,tt,Et);this.ctx.transform=this.ctx.transform.multiply(Nt)},Re.prototype.transform=function(tt,Et,Nt,er,dr,Br){if(isNaN(tt)||isNaN(Et)||isNaN(Nt)||isNaN(er)||isNaN(dr)||isNaN(Br))throw ks.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var Gr=new R(tt,Et,Nt,er,dr,Br);this.ctx.transform=this.ctx.transform.multiply(Gr)},Re.prototype.setTransform=function(tt,Et,Nt,er,dr,Br){tt=isNaN(tt)?1:tt,Et=isNaN(Et)?0:Et,Nt=isNaN(Nt)?0:Nt,er=isNaN(er)?1:er,dr=isNaN(dr)?0:dr,Br=isNaN(Br)?0:Br,this.ctx.transform=new R(tt,Et,Nt,er,dr,Br)};var dt=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};Re.prototype.drawImage=function(tt,Et,Nt,er,dr,Br,Gr,Ur,wn){var zn=this.pdf.getImageProperties(tt),hi=1,Si=1,sn=1,Ft=1;er!==void 0&&Ur!==void 0&&(sn=Ur/er,Ft=wn/dr,hi=zn.width/er*Ur/er,Si=zn.height/dr*wn/dr),Br===void 0&&(Br=Et,Gr=Nt,Et=0,Nt=0),er!==void 0&&Ur===void 0&&(Ur=er,wn=dr),er===void 0&&Ur===void 0&&(Ur=zn.width,wn=zn.height);for(var Go,_o=this.ctx.transform.decompose(),Ta=Mr(_o.rotate.shx),Gn=new R,wa=(Gn=(Gn=(Gn=Gn.multiply(_o.translate)).multiply(_o.skew)).multiply(_o.scale)).applyToRectangle(new E(Br-Et*sn,Gr-Nt*Ft,er*hi,dr*Si)),ci=yt.call(this,wa),Ja=[],Fa=0;Fa<ci.length;Fa+=1)Ja.indexOf(ci[Fa])===-1&&Ja.push(ci[Fa]);if(Qt(Ja),this.autoPaging)for(var ts=Ja[0],yo=Ja[Ja.length-1],Wa=ts;Wa<yo+1;Wa++){this.pdf.setPage(Wa);var Hs=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],uo=Wa===1?this.posY+this.margin[0]:this.margin[0],Ca=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ro=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Ba=Wa===1?0:Ca+(Wa-2)*ro;if(this.ctx.clip_path.length!==0){var yl=this.path;Go=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Xt(Go,this.posX+this.margin[3],-Ba+uo+this.ctx.prevPageLastElemOffset),kr.call(this,"fill",!0),this.path=yl}var Ds=JSON.parse(JSON.stringify(wa));Ds=Xt([Ds],this.posX+this.margin[3],-Ba+uo+this.ctx.prevPageLastElemOffset)[0];var ma=(Wa>ts||Wa<yo)&&dt.call(this);ma&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Hs,ro,null).clip().discardPath()),this.pdf.addImage(tt,"JPEG",Ds.x,Ds.y,Ds.w,Ds.h,null,null,Ta),ma&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(tt,"JPEG",wa.x,wa.y,wa.w,wa.h,null,null,Ta)};var yt=function(tt,Et,Nt){var er=[];Et=Et||this.pdf.internal.pageSize.width,Nt=Nt||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var dr=this.posY+this.ctx.prevPageLastElemOffset;switch(tt.type){default:case"mt":case"lt":er.push(Math.floor((tt.y+dr)/Nt)+1);break;case"arc":er.push(Math.floor((tt.y+dr-tt.radius)/Nt)+1),er.push(Math.floor((tt.y+dr+tt.radius)/Nt)+1);break;case"qct":var Br=Vr(this.ctx.lastPoint.x,this.ctx.lastPoint.y,tt.x1,tt.y1,tt.x,tt.y);er.push(Math.floor((Br.y+dr)/Nt)+1),er.push(Math.floor((Br.y+Br.h+dr)/Nt)+1);break;case"bct":var Gr=Zn(this.ctx.lastPoint.x,this.ctx.lastPoint.y,tt.x1,tt.y1,tt.x2,tt.y2,tt.x,tt.y);er.push(Math.floor((Gr.y+dr)/Nt)+1),er.push(Math.floor((Gr.y+Gr.h+dr)/Nt)+1);break;case"rect":er.push(Math.floor((tt.y+dr)/Nt)+1),er.push(Math.floor((tt.y+tt.h+dr)/Nt)+1)}for(var Ur=0;Ur<er.length;Ur+=1)for(;this.pdf.internal.getNumberOfPages()<er[Ur];)lt.call(this);return er},lt=function(){var tt=this.fillStyle,Et=this.strokeStyle,Nt=this.font,er=this.lineCap,dr=this.lineWidth,Br=this.lineJoin;this.pdf.addPage(),this.fillStyle=tt,this.strokeStyle=Et,this.font=Nt,this.lineCap=er,this.lineWidth=dr,this.lineJoin=Br},Xt=function(tt,Et,Nt){for(var er=0;er<tt.length;er++)switch(tt[er].type){case"bct":tt[er].x2+=Et,tt[er].y2+=Nt;case"qct":tt[er].x1+=Et,tt[er].y1+=Nt;default:tt[er].x+=Et,tt[er].y+=Nt}return tt},Qt=function(tt){return tt.sort(function(Et,Nt){return Et-Nt})},It=function(tt,Et){for(var Nt,er,dr=this.fillStyle,Br=this.strokeStyle,Gr=this.lineCap,Ur=this.lineWidth,wn=Math.abs(Ur*this.ctx.transform.scaleX),zn=this.lineJoin,hi=JSON.parse(JSON.stringify(this.path)),Si=JSON.parse(JSON.stringify(this.path)),sn=[],Ft=0;Ft<Si.length;Ft++)if(Si[Ft].x!==void 0)for(var Go=yt.call(this,Si[Ft]),_o=0;_o<Go.length;_o+=1)sn.indexOf(Go[_o])===-1&&sn.push(Go[_o]);for(var Ta=0;Ta<sn.length;Ta++)for(;this.pdf.internal.getNumberOfPages()<sn[Ta];)lt.call(this);if(Qt(sn),this.autoPaging)for(var Gn=sn[0],wa=sn[sn.length-1],ci=Gn;ci<wa+1;ci++){this.pdf.setPage(ci),this.fillStyle=dr,this.strokeStyle=Br,this.lineCap=Gr,this.lineWidth=wn,this.lineJoin=zn;var Ja=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Fa=ci===1?this.posY+this.margin[0]:this.margin[0],ts=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],yo=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Wa=ci===1?0:ts+(ci-2)*yo;if(this.ctx.clip_path.length!==0){var Hs=this.path;Nt=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Xt(Nt,this.posX+this.margin[3],-Wa+Fa+this.ctx.prevPageLastElemOffset),kr.call(this,tt,!0),this.path=Hs}if(er=JSON.parse(JSON.stringify(hi)),this.path=Xt(er,this.posX+this.margin[3],-Wa+Fa+this.ctx.prevPageLastElemOffset),Et===!1||ci===0){var uo=(ci>Gn||ci<wa)&&dt.call(this);uo&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ja,yo,null).clip().discardPath()),kr.call(this,tt,Et),uo&&this.pdf.restoreGraphicsState()}this.lineWidth=Ur}else this.lineWidth=wn,kr.call(this,tt,Et),this.lineWidth=Ur;this.path=hi},kr=function(tt,Et){if((tt!=="stroke"||Et||!gt.call(this))&&(tt==="stroke"||Et||!oe.call(this))){for(var Nt,er,dr=[],Br=this.path,Gr=0;Gr<Br.length;Gr++){var Ur=Br[Gr];switch(Ur.type){case"begin":dr.push({begin:!0});break;case"close":dr.push({close:!0});break;case"mt":dr.push({start:Ur,deltas:[],abs:[]});break;case"lt":var wn=dr.length;if(Br[Gr-1]&&!isNaN(Br[Gr-1].x)&&(Nt=[Ur.x-Br[Gr-1].x,Ur.y-Br[Gr-1].y],wn>0)){for(;wn>=0;wn--)if(dr[wn-1].close!==!0&&dr[wn-1].begin!==!0){dr[wn-1].deltas.push(Nt),dr[wn-1].abs.push(Ur);break}}break;case"bct":Nt=[Ur.x1-Br[Gr-1].x,Ur.y1-Br[Gr-1].y,Ur.x2-Br[Gr-1].x,Ur.y2-Br[Gr-1].y,Ur.x-Br[Gr-1].x,Ur.y-Br[Gr-1].y],dr[dr.length-1].deltas.push(Nt);break;case"qct":var zn=Br[Gr-1].x+2/3*(Ur.x1-Br[Gr-1].x),hi=Br[Gr-1].y+2/3*(Ur.y1-Br[Gr-1].y),Si=Ur.x+2/3*(Ur.x1-Ur.x),sn=Ur.y+2/3*(Ur.y1-Ur.y),Ft=Ur.x,Go=Ur.y;Nt=[zn-Br[Gr-1].x,hi-Br[Gr-1].y,Si-Br[Gr-1].x,sn-Br[Gr-1].y,Ft-Br[Gr-1].x,Go-Br[Gr-1].y],dr[dr.length-1].deltas.push(Nt);break;case"arc":dr.push({deltas:[],abs:[],arc:!0}),Array.isArray(dr[dr.length-1].abs)&&dr[dr.length-1].abs.push(Ur)}}er=Et?null:tt==="stroke"?"stroke":"fill";for(var _o=!1,Ta=0;Ta<dr.length;Ta++)if(dr[Ta].arc)for(var Gn=dr[Ta].abs,wa=0;wa<Gn.length;wa++){var ci=Gn[wa];ci.type==="arc"?ir.call(this,ci.x,ci.y,ci.radius,ci.startAngle,ci.endAngle,ci.counterclockwise,void 0,Et,!_o):tr.call(this,ci.x,ci.y),_o=!0}else if(dr[Ta].close===!0)this.pdf.internal.out("h"),_o=!1;else if(dr[Ta].begin!==!0){var Ja=dr[Ta].start.x,Fa=dr[Ta].start.y;$t.call(this,dr[Ta].deltas,Ja,Fa),_o=!0}er&&Lt.call(this,er),Et&&wr.call(this)}},rn=function(tt){var Et=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,Nt=Et*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return tt-Nt;case"top":return tt+Et-Nt;case"hanging":return tt+Et-2*Nt;case"middle":return tt+Et/2-Nt;default:return tt}},Pr=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(Et,Nt){this.colorStops.push([Et,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 ir=function(tt,Et,Nt,er,dr,Br,Gr,Ur,wn){for(var zn=Zr.call(this,Nt,er,dr,Br),hi=0;hi<zn.length;hi++){var Si=zn[hi];hi===0&&(wn?it.call(this,Si.x1+tt,Si.y1+Et):tr.call(this,Si.x1+tt,Si.y1+Et)),Kr.call(this,tt,Et,Si.x2,Si.y2,Si.x3,Si.y3,Si.x4,Si.y4)}Ur?wr.call(this):Lt.call(this,Gr)},Lt=function(tt){switch(tt){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},wr=function(){this.pdf.clip(),this.pdf.discardPath()},it=function(tt,Et){this.pdf.internal.out(a(tt)+" "+l(Et)+" m")},Ct=function(tt){var Et;switch(tt.align){case"right":case"end":Et="right";break;case"center":Et="center";break;default:Et="left"}var Nt=this.pdf.getTextDimensions(tt.text),er=rn.call(this,tt.y),dr=Pr.call(this,er)-Nt.h,Br=this.ctx.transform.applyToPoint(new O(tt.x,er)),Gr=this.ctx.transform.decompose(),Ur=new R;Ur=(Ur=(Ur=Ur.multiply(Gr.translate)).multiply(Gr.skew)).multiply(Gr.scale);for(var wn,zn,hi,Si=this.ctx.transform.applyToRectangle(new E(tt.x,er,Nt.w,Nt.h)),sn=Ur.applyToRectangle(new E(tt.x,dr,Nt.w,Nt.h)),Ft=yt.call(this,sn),Go=[],_o=0;_o<Ft.length;_o+=1)Go.indexOf(Ft[_o])===-1&&Go.push(Ft[_o]);if(Qt(Go),this.autoPaging)for(var Ta=Go[0],Gn=Go[Go.length-1],wa=Ta;wa<Gn+1;wa++){this.pdf.setPage(wa);var ci=wa===1?this.posY+this.margin[0]:this.margin[0],Ja=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Fa=this.pdf.internal.pageSize.height-this.margin[2],ts=Fa-this.margin[0],yo=this.pdf.internal.pageSize.width-this.margin[1],Wa=yo-this.margin[3],Hs=wa===1?0:Ja+(wa-2)*ts;if(this.ctx.clip_path.length!==0){var uo=this.path;wn=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=Xt(wn,this.posX+this.margin[3],-1*Hs+ci),kr.call(this,"fill",!0),this.path=uo}var Ca=Xt([JSON.parse(JSON.stringify(sn))],this.posX+this.margin[3],-Hs+ci+this.ctx.prevPageLastElemOffset)[0];tt.scale>=.01&&(zn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(zn*tt.scale),hi=this.lineWidth,this.lineWidth=hi*tt.scale);var ro=this.autoPaging!=="text";if(ro||Ca.y+Ca.h<=Fa){if(ro||Ca.y>=ci&&Ca.x<=yo){var Ba=ro?tt.text:this.pdf.splitTextToSize(tt.text,tt.maxWidth||yo-Ca.x)[0],yl=Xt([JSON.parse(JSON.stringify(Si))],this.posX+this.margin[3],-Hs+ci+this.ctx.prevPageLastElemOffset)[0],Ds=ro&&(wa>Ta||wa<Gn)&&dt.call(this);Ds&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Wa,ts,null).clip().discardPath()),this.pdf.text(Ba,yl.x,yl.y,{angle:tt.angle,align:Et,renderingMode:tt.renderingMode}),Ds&&this.pdf.restoreGraphicsState()}}else Ca.y<Fa&&(this.ctx.prevPageLastElemOffset+=Fa-Ca.y);tt.scale>=.01&&(this.pdf.setFontSize(zn),this.lineWidth=hi)}else tt.scale>=.01&&(zn=this.pdf.internal.getFontSize(),this.pdf.setFontSize(zn*tt.scale),hi=this.lineWidth,this.lineWidth=hi*tt.scale),this.pdf.text(tt.text,Br.x+this.posX,Br.y+this.posY,{angle:tt.angle,align:Et,renderingMode:tt.renderingMode,maxWidth:tt.maxWidth}),tt.scale>=.01&&(this.pdf.setFontSize(zn),this.lineWidth=hi)},tr=function(tt,Et,Nt,er){Nt=Nt||0,er=er||0,this.pdf.internal.out(a(tt+Nt)+" "+l(Et+er)+" l")},$t=function(tt,Et,Nt){return this.pdf.lines(tt,Et,Nt,null,null)},Kr=function(tt,Et,Nt,er,dr,Br,Gr,Ur){this.pdf.internal.out([o(A(Nt+tt)),o(p(er+Et)),o(A(dr+tt)),o(p(Br+Et)),o(A(Gr+tt)),o(p(Ur+Et)),"c"].join(" "))},Zr=function(tt,Et,Nt,er){for(var dr=2*Math.PI,Br=Math.PI/2;Et>Nt;)Et-=dr;var Gr=Math.abs(Nt-Et);Gr<dr&&er&&(Gr=dr-Gr);for(var Ur=[],wn=er?-1:1,zn=Et;Gr>1e-5;){var hi=zn+wn*Math.min(Gr,Br);Ur.push(tn.call(this,tt,zn,hi)),Gr-=Math.abs(hi-zn),zn=hi}return Ur},tn=function(tt,Et,Nt){var er=(Nt-Et)/2,dr=tt*Math.cos(er),Br=tt*Math.sin(er),Gr=dr,Ur=-Br,wn=Gr*Gr+Ur*Ur,zn=wn+Gr*dr+Ur*Br,hi=4/3*(Math.sqrt(2*wn*zn)-zn)/(Gr*Br-Ur*dr),Si=Gr-hi*Ur,sn=Ur+hi*Gr,Ft=Si,Go=-sn,_o=er+Et,Ta=Math.cos(_o),Gn=Math.sin(_o);return{x1:tt*Math.cos(Et),y1:tt*Math.sin(Et),x2:Si*Ta-sn*Gn,y2:Si*Gn+sn*Ta,x3:Ft*Ta-Go*Gn,y3:Ft*Gn+Go*Ta,x4:tt*Math.cos(Nt),y4:tt*Math.sin(Nt)}},Mr=function(tt){return 180*tt/Math.PI},Vr=function(tt,Et,Nt,er,dr,Br){var Gr=tt+.5*(Nt-tt),Ur=Et+.5*(er-Et),wn=dr+.5*(Nt-dr),zn=Br+.5*(er-Br),hi=Math.min(tt,dr,Gr,wn),Si=Math.max(tt,dr,Gr,wn),sn=Math.min(Et,Br,Ur,zn),Ft=Math.max(Et,Br,Ur,zn);return new E(hi,sn,Si-hi,Ft-sn)},Zn=function(tt,Et,Nt,er,dr,Br,Gr,Ur){var wn,zn,hi,Si,sn,Ft,Go,_o,Ta,Gn,wa,ci,Ja,Fa,ts=Nt-tt,yo=er-Et,Wa=dr-Nt,Hs=Br-er,uo=Gr-dr,Ca=Ur-Br;for(zn=0;zn<41;zn++)Ta=(Go=(hi=tt+(wn=zn/40)*ts)+wn*((sn=Nt+wn*Wa)-hi))+wn*(sn+wn*(dr+wn*uo-sn)-Go),Gn=(_o=(Si=Et+wn*yo)+wn*((Ft=er+wn*Hs)-Si))+wn*(Ft+wn*(Br+wn*Ca-Ft)-_o),zn==0?(wa=Ta,ci=Gn,Ja=Ta,Fa=Gn):(wa=Math.min(wa,Ta),ci=Math.min(ci,Gn),Ja=Math.max(Ja,Ta),Fa=Math.max(Fa,Gn));return new E(Math.round(wa),Math.round(ci),Math.round(Ja-wa),Math.round(Fa-ci))},In=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var tt,Et,Nt=(tt=this.ctx.lineDash,Et=this.ctx.lineDashOffset,JSON.stringify({lineDash:tt,lineDashOffset:Et}));this.prevLineDash!==Nt&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=Nt)}}})(Aa.API),function(n){var o=function(O){var E,R,V,le,Re,$e,oe,gt,dt,yt;for(/[^\x00-\xFF]/.test(O),R=[],V=0,le=(O+=E="\0\0\0\0".slice(O.length%4||4)).length;le>V;V+=4)(Re=(O.charCodeAt(V)<<24)+(O.charCodeAt(V+1)<<16)+(O.charCodeAt(V+2)<<8)+O.charCodeAt(V+3))!==0?($e=(Re=((Re=((Re=((Re=(Re-(yt=Re%85))/85)-(dt=Re%85))/85)-(gt=Re%85))/85)-(oe=Re%85))/85)%85,R.push($e+33,oe+33,gt+33,dt+33,yt+33)):R.push(122);return function(lt,Xt){for(var Qt=Xt;Qt>0;Qt--)lt.pop()}(R,E.length),String.fromCharCode.apply(String,R)+"~>"},a=function(O){var E,R,V,le,Re,$e=String,oe="length",gt=255,dt="charCodeAt",yt="slice",lt="replace";for(O[yt](-2),O=O[yt](0,-2)[lt](/\s/g,"")[lt]("z","!!!!!"),V=[],le=0,Re=(O+=E="uuuuu"[yt](O[oe]%5||5))[oe];Re>le;le+=5)R=52200625*(O[dt](le)-33)+614125*(O[dt](le+1)-33)+7225*(O[dt](le+2)-33)+85*(O[dt](le+3)-33)+(O[dt](le+4)-33),V.push(gt&R>>24,gt&R>>16,gt&R>>8,gt&R);return function(Xt,Qt){for(var It=Qt;It>0;It--)Xt.pop()}(V,E[oe]),$e.fromCharCode.apply($e,V)},l=function(O){return O.split("").map(function(E){return("0"+E.charCodeAt().toString(16)).slice(-2)}).join("")+">"},A=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 R="",V=0;V<O.length;V+=2)R+=String.fromCharCode("0x"+(O[V]+O[V+1]));return R},p=function(O){for(var E=new Uint8Array(O.length),R=O.length;R--;)E[R]=O.charCodeAt(R);return(E=Ti(E)).reduce(function(V,le){return V+String.fromCharCode(le)},"")};n.processDataByFilters=function(O,E){var R=0,V=O||"",le=[];for(typeof(E=E||[])=="string"&&(E=[E]),R=0;R<E.length;R+=1)switch(E[R]){case"ASCII85Decode":case"/ASCII85Decode":V=a(V),le.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":V=o(V),le.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":V=A(V),le.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":V=l(V),le.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":V=p(V),le.push("/FlateDecode");break;default:throw new Error('The filter: "'+E[R]+'" is not implemented')}return{data:V,reverseChain:le.reverse().join(" ")}}}(Aa.API),function(n){n.loadFile=function(o,a,l){return function(A,p,O){p=p!==!1,O=typeof O=="function"?O:function(){};var E=void 0;try{E=function(R,V,le){var Re=new XMLHttpRequest,$e=0,oe=function(gt){var dt=gt.length,yt=[],lt=String.fromCharCode;for($e=0;$e<dt;$e+=1)yt.push(lt(255>.charCodeAt($e)));return yt.join("")};if(Re.open("GET",R,!V),Re.overrideMimeType("text/plain; charset=x-user-defined"),V===!1&&(Re.onload=function(){Re.status===200?le(oe(this.responseText)):le(void 0)}),Re.send(null),V&&Re.status===200)return oe(Re.responseText)}(A,p,O)}catch(R){}return E}(o,a,l)},n.loadImageFile=n.loadFile}(Aa.API),function(n){function o(){return(Za.html2canvas?Promise.resolve(Za.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(Za.DOMPurify?Promise.resolve(Za.DOMPurify):x.e(2364).then(x.bind(x,12364))).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 R=(0,ve.Z)(E);return R==="undefined"?"undefined":R==="string"||E instanceof String?"string":R==="number"||E instanceof Number?"number":R==="function"||E instanceof Function?"function":E&&E.constructor===Array?"array":E&&E.nodeType===1?"element":R==="object"?"object":"unknown"},A=function(E,R){var V=document.createElement(E);for(var le in R.className&&(V.className=R.className),R.innerHTML&&R.dompurify&&(V.innerHTML=R.dompurify.sanitize(R.innerHTML)),R.style)V.style[le]=R.style[le];return V},p=function E(R,V){for(var le=R.nodeType===3?document.createTextNode(R.nodeValue):R.cloneNode(!1),Re=R.firstChild;Re;Re=Re.nextSibling)V!==!0&&Re.nodeType===1&&Re.nodeName==="SCRIPT"||le.appendChild(E(Re,V));return R.nodeType===1&&(R.nodeName==="CANVAS"?(le.width=R.width,le.height=R.height,le.getContext("2d").drawImage(R,0,0)):R.nodeName!=="TEXTAREA"&&R.nodeName!=="SELECT"||(le.value=R.value),le.addEventListener("load",function(){le.scrollTop=R.scrollTop,le.scrollLeft=R.scrollLeft},!0)),le},O=function E(R){var V=Object.assign(E.convert(Promise.resolve()),JSON.parse(JSON.stringify(E.template))),le=E.convert(Promise.resolve(),V);return(le=le.setProgress(1,E,1,[E])).set(R)};(O.prototype=Object.create(Promise.prototype)).constructor=O,O.convert=function(E,R){return E.__proto__=R||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,R){return this.then(function(){switch(R=R||function(V){switch(l(V)){case"string":return"string";case"element":return V.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(E),R){case"string":return this.then(a).then(function(V){return this.set({src:A("div",{innerHTML:E,dompurify:V})})});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},R=p(this.prop.src,this.opt.html2canvas.javascriptEnabled);R.tagName==="BODY"&&(E.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=A("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=A("div",{className:"html2pdf__container",style:E}),this.prop.container.appendChild(R),this.prop.container.firstChild.appendChild(A("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},O.prototype.toCanvas=function(){var E=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(E).then(o).then(function(R){var V=Object.assign({},this.opt.html2canvas);return delete V.onrendered,R(this.prop.container,V)}).then(function(R){(this.opt.html2canvas.onrendered||function(){})(R),this.prop.canvas=R,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(R){var V=this.opt.jsPDF,le=this.opt.fontFaces,Re=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,$e=Object.assign({async:!0,allowTaint:!0,scale:Re,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete $e.onrendered,V.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,V.context2d.posX=this.opt.x,V.context2d.posY=this.opt.y,V.context2d.margin=this.opt.margin,V.context2d.fontFaces=le,le)for(var oe=0;oe<le.length;++oe){var gt=le[oe],dt=gt.src.find(function(yt){return yt.format==="truetype"});dt&&V.addFont(dt.url,gt.ref.name,gt.ref.style)}return $e.windowHeight=$e.windowHeight||0,$e.windowHeight=$e.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):$e.windowHeight,V.context2d.save(!0),R(this.prop.container,$e)}).then(function(R){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(R),this.prop.canvas=R,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,R,V){return(V=V||"pdf").toLowerCase()==="img"||V.toLowerCase()==="image"?this.outputImg(E,R):this.outputPdf(E,R)},O.prototype.outputPdf=function(E,R){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(E,R)})},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 R=Object.keys(E||{}).map(function(V){if(V in O.template.prop)return function(){this.prop[V]=E[V]};switch(V){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[V]=E[V]}}},this);return this.then(function(){return this.thenList(R)})},O.prototype.get=function(E,R){return this.then(function(){var V=E in O.template.prop?this.prop[E]:this.opt[E];return R?R(V):V})},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 R(V,le){return Math.floor(V*le/72*96)}return this.then(function(){(E=E||Aa.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:R(E.inner.width,E.k),height:R(E.inner.height,E.k)},E.inner.ratio=E.inner.height/E.inner.width),this.prop.pageSize=E})},O.prototype.setProgress=function(E,R,V,le){return E!=null&&(this.progress.val=E),R!=null&&(this.progress.state=R),V!=null&&(this.progress.n=V),le!=null&&(this.progress.stack=le),this.progress.ratio=this.progress.val/this.progress.state,this},O.prototype.updateProgress=function(E,R,V,le){return this.setProgress(E?this.progress.val+E:null,R||null,V?this.progress.n+V:null,le?this.progress.stack.concat(le):null)},O.prototype.then=function(E,R){var V=this;return this.thenCore(E,R,function(le,Re){return V.updateProgress(null,null,1,[le]),Promise.prototype.then.call(this,function($e){return V.updateProgress(null,le),$e}).then(le,Re).then(function($e){return V.updateProgress(1),$e})})},O.prototype.thenCore=function(E,R,V){V=V||Promise.prototype.then;var le=this;E&&(E=E.bind(le)),R&&(R=R.bind(le));var Re=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?le:O.convert(Object.assign({},le),Promise.prototype),$e=V.call(Re,E,R);return O.convert($e,le.__proto__)},O.prototype.thenExternal=function(E,R){return Promise.prototype.then.call(this,E,R)},O.prototype.thenList=function(E){var R=this;return E.forEach(function(V){R=R.thenCore(V)}),R},O.prototype.catch=function(E){E&&(E=E.bind(this));var R=Promise.prototype.catch.call(this,E);return O.convert(R,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,Aa.getPageSize=function(E,R,V){if((0,ve.Z)(E)==="object"){var le=E;E=le.orientation,R=le.unit||R,V=le.format||V}R=R||"mm",V=V||"a4",E=(""+(E||"P")).toLowerCase();var Re,$e=(""+V).toLowerCase(),oe={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(R){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: "+R}var gt,dt=0,yt=0;if(oe.hasOwnProperty($e))dt=oe[$e][1]/Re,yt=oe[$e][0]/Re;else try{dt=V[1],yt=V[0]}catch(lt){throw new Error("Invalid format: "+V)}if(E==="p"||E==="portrait")E="p",yt>dt&&(gt=yt,yt=dt,dt=gt);else{if(E!=="l"&&E!=="landscape")throw"Invalid orientation: "+E;E="l",dt>yt&&(gt=yt,yt=dt,dt=gt)}return{width:yt,height:dt,unit:R,k:Re,orientation:E}},n.html=function(E,R){(R=R||{}).callback=R.callback||function(){},R.html2canvas=R.html2canvas||{},R.html2canvas.canvas=R.html2canvas.canvas||this.canvas,R.jsPDF=R.jsPDF||this,R.fontFaces=R.fontFaces?R.fontFaces.map(YA):null;var V=new O(R);return R.worker?V:V.from(E).doCallback()}}(Aa.API),Aa.API.addJS=function(n){return Uh=n,this.internal.events.subscribe("postPutResources",function(){Hc=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(Hc+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),fg=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+Uh+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){Hc!==void 0&&fg!==void 0&&this.internal.out("/Names <</JavaScript "+Hc+" 0 R>>")}),this},function(n){var o;n.events.push(["postPutResources",function(){var a=this,l=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var A=a.outline.render().split(/\r\n/),p=0;p<A.length;p++){var O=A[p],E=l.exec(O);if(E!=null){var R=E[1];a.internal.newObjectDeferredBegin(R,!1)}a.internal.write(O)}if(this.outline.createNamedDestinations){var V=this.internal.pages.length,le=[];for(p=0;p<V;p++){var Re=a.internal.newObject();le.push(Re);var $e=a.internal.getPageInfo(p+1);a.internal.write("<< /D["+$e.objId+" 0 R /XYZ null null null]>> endobj")}var oe=a.internal.newObject();for(a.internal.write("<< /Names [ "),p=0;p<le.length;p++)a.internal.write("(page_"+(p+1)+")"+le[p]+" 0 R");a.internal.write(" ] >>","endobj"),o=a.internal.newObject(),a.internal.write("<< /Dests "+oe+" 0 R"),a.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var a=this;a.outline.root.children.length>0&&(a.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&a.internal.write("/Names "+o+" 0 R"))}]),n.events.push(["initialized",function(){var a=this;a.outline={createNamedDestinations:!1,root:{children:[]}},a.outline.add=function(l,A,p){var O={title:A,options:p,children:[]};return l==null&&(l=this.root),l.children.push(O),O},a.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=a,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},a.outline.genIds_r=function(l){l.id=a.internal.newObjectDeferred();for(var A=0;A<l.children.length;A++)this.genIds_r(l.children[A])},a.outline.renderRoot=function(l){this.objStart(l),this.line("/Type /Outlines"),l.children.length>0&&(this.line("/First "+this.makeRef(l.children[0])),this.line("/Last "+this.makeRef(l.children[l.children.length-1]))),this.line("/Count "+this.count_r({count:0},l)),this.objEnd()},a.outline.renderItems=function(l){for(var A=this.ctx.pdf.internal.getVerticalCoordinateString,p=0;p<l.children.length;p++){var O=l.children[p];this.objStart(O),this.line("/Title "+this.makeString(O.title)),this.line("/Parent "+this.makeRef(l)),p>0&&this.line("/Prev "+this.makeRef(l.children[p-1])),p<l.children.length-1&&this.line("/Next "+this.makeRef(l.children[p+1])),O.children.length>0&&(this.line("/First "+this.makeRef(O.children[0])),this.line("/Last "+this.makeRef(O.children[O.children.length-1])));var E=this.count=this.count_r({count:0},O);if(E>0&&this.line("/Count "+E),O.options&&O.options.pageNumber){var R=a.internal.getPageInfo(O.options.pageNumber);this.line("/Dest ["+R.objId+" 0 R /XYZ 0 "+A(0)+" 0]")}this.objEnd()}for(var V=0;V<l.children.length;V++)this.renderItems(l.children[V])},a.outline.line=function(l){this.ctx.val+=l+`\r
|
|
|
`},a.outline.makeRef=function(l){return l.id+" 0 R"},a.outline.makeString=function(l){return"("+a.internal.pdfEscape(l)+")"},a.outline.objStart=function(l){this.ctx.val+=`\r
|
|
|
`+l.id+` 0 obj\r
|
|
|
<<\r
|
|
|
`},a.outline.objEnd=function(){this.ctx.val+=`>> \r
|
|
|
endobj\r
|
|
|
`},a.outline.count_r=function(l,A){for(var p=0;p<A.children.length;p++)l.count++,this.count_r(l,A.children[p]);return l.count}}])}(Aa.API),function(n){var o=[192,193,194,195,196,197,198,199];n.processJPEG=function(a,l,A,p,O,E){var R,V=this.decode.DCT_DECODE,le=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,R=function(Re){for(var $e,oe=256*Re.charCodeAt(4)+Re.charCodeAt(5),gt=Re.length,dt={width:0,height:0,numcomponents:1},yt=4;yt<gt;yt+=2){if(yt+=oe,o.indexOf(Re.charCodeAt(yt+1))!==-1){$e=256*Re.charCodeAt(yt+5)+Re.charCodeAt(yt+6),dt={width:256*Re.charCodeAt(yt+7)+Re.charCodeAt(yt+8),height:$e,numcomponents:Re.charCodeAt(yt+9)};break}oe=256*Re.charCodeAt(yt+2)+Re.charCodeAt(yt+3)}return dt}(a=this.__addimage__.isArrayBufferView(a)?this.__addimage__.arrayBufferToBinaryString(a):a),R.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}le={data:a,width:R.width,height:R.height,colorSpace:E,bitsPerComponent:8,filter:V,index:l,alias:A}}return le}}(Aa.API),Aa.API.processPNG=function(n,o,a,l){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var A,p=tl(n,{checkCrc:!0}),O=p.width,E=p.height,R=p.channels,V=p.palette,le=p.depth;A=V&&R===1?function(Pr){for(var ir=Pr.width,Lt=Pr.height,wr=Pr.data,it=Pr.palette,Ct=Pr.depth,tr=!1,$t=[],Kr=[],Zr=void 0,tn=!1,Mr=0,Vr=0;Vr<it.length;Vr++){var Zn=(0,yi.Z)(it[Vr],4),In=Zn[0],tt=Zn[1],Et=Zn[2],Nt=Zn[3];$t.push(In,tt,Et),Nt!=null&&(Nt===0?(Mr++,Kr.length<1&&Kr.push(Vr)):Nt<255&&(tn=!0))}if(tn||Mr>1){tr=!0,Kr=void 0;var er=ir*Lt;Zr=new Uint8Array(er);for(var dr=new DataView(wr.buffer),Br=0;Br<er;Br++){var Gr=cm(dr,Br,Ct),Ur=(0,yi.Z)(it[Gr],4)[3];Zr[Br]=Ur}}return{colorSpace:"Indexed",colorsPerPixel:1,colorBytes:wr,alphaBytes:Zr,needSMask:tr,palette:$t,mask:Kr}}(p):R===2||R===4?function(Pr){for(var ir=Pr.data,Lt=Pr.width,wr=Pr.height,it=Pr.channels,Ct=Pr.depth,tr=it===2?"DeviceGray":"DeviceRGB",$t=it-1,Kr=Lt*wr,Zr=$t,tn=Kr*Zr,Mr=1*Kr,Vr=Math.ceil(tn*Ct/8),Zn=Math.ceil(Mr*Ct/8),In=new Uint8Array(Vr),tt=new Uint8Array(Zn),Et=new DataView(ir.buffer),Nt=new DataView(In.buffer),er=new DataView(tt.buffer),dr=!1,Br=0;Br<Kr;Br++){for(var Gr=Br*it,Ur=0;Ur<Zr;Ur++)Qh(Nt,cm(Et,Gr+Ur,Ct),Br*Zr+Ur,Ct);var wn=cm(Et,Gr+Zr,Ct);wn<(1<<Ct)-1&&(dr=!0),Qh(er,wn,1*Br,Ct)}return{colorSpace:tr,colorsPerPixel:$t,colorBytes:In,alphaBytes:tt,needSMask:dr}}(p):function(Pr){var ir=Pr.data,Lt=Pr.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Lt,colorsPerPixel:Lt==="DeviceGray"?1:3,colorBytes:ir instanceof Uint8Array?ir:new Uint8Array(ir.buffer),needSMask:!1}}(p);var Re,$e,oe,gt=A,dt=gt.colorSpace,yt=gt.colorsPerPixel,lt=gt.colorBytes,Xt=gt.alphaBytes,Qt=gt.needSMask,It=gt.palette,kr=gt.mask,rn=null;return l!==Aa.API.image_compression.NONE&&typeof Ti=="function"?(rn=function(Pr){var ir;switch(Pr){case Aa.API.image_compression.FAST:ir=11;break;case Aa.API.image_compression.MEDIUM:ir=13;break;case Aa.API.image_compression.SLOW:ir=14;break;default:ir=12}return ir}(l),Re=this.decode.FLATE_DECODE,$e="/Predictor ".concat(rn," "),n=sm(lt,O*yt,yt,l),Qt&&(oe=sm(Xt,O,1,l))):(Re=void 0,$e="",n=lt,Qt&&(oe=Xt)),$e+="/Colors ".concat(yt," /BitsPerComponent ").concat(le," /Columns ").concat(O),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(oe&&this.__addimage__.isArrayBuffer(oe)||this.__addimage__.isArrayBufferView(oe))&&(oe=this.__addimage__.arrayBufferToBinaryString(oe)),{alias:a,data:n,index:o,filter:Re,decodeParameters:$e,transparency:kr,palette:It,sMask:oe,predictor:rn,width:O,height:E,bitsPerComponent:le,colorSpace:dt}}},function(n){n.processGIF89A=function(o,a,l,A){var p=new Zm(o),O=p.width,E=p.height,R=[];p.decodeAndBlitFrameRGBA(0,R);var V={data:R,width:O,height:E},le=new Vm(100).encode(V,100);return n.processJPEG.call(this,le,a,l,A)},n.processGIF87A=n.processGIF89A}(Aa.API),mu.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var o=0;o<n;o++){var a=this.datav.getUint8(this.pos++,!0),l=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),p=this.datav.getUint8(this.pos++,!0);this.palette[o]={red:A,green:l,blue:a,quad:p}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},mu.prototype.parseBGR=function(){this.pos=this.offset;try{var n="bit"+this.bitPP,o=this.width*this.height*4;this.data=new Uint8Array(o),this[n]()}catch(a){ks.log("bit decode error:"+a)}},mu.prototype.bit1=function(){var n,o=Math.ceil(this.width/8),a=o%4;for(n=this.height-1;n>=0;n--){for(var l=this.bottom_up?n:this.height-1-n,A=0;A<o;A++)for(var p=this.datav.getUint8(this.pos++,!0),O=l*this.width*4+8*A*4,E=0;E<8&&8*A+E<this.width;E++){var R=this.palette[p>>7-E&1];this.data[O+4*E]=R.blue,this.data[O+4*E+1]=R.green,this.data[O+4*E+2]=R.red,this.data[O+4*E+3]=255}a!==0&&(this.pos+=4-a)}},mu.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),o=n%4,a=this.height-1;a>=0;a--){for(var l=this.bottom_up?a:this.height-1-a,A=0;A<n;A++){var p=this.datav.getUint8(this.pos++,!0),O=l*this.width*4+2*A*4,E=p>>4,R=15&p,V=this.palette[E];if(this.data[O]=V.blue,this.data[O+1]=V.green,this.data[O+2]=V.red,this.data[O+3]=255,2*A+1>=this.width)break;V=this.palette[R],this.data[O+4]=V.blue,this.data[O+4+1]=V.green,this.data[O+4+2]=V.red,this.data[O+4+3]=255}o!==0&&(this.pos+=4-o)}},mu.prototype.bit8=function(){for(var n=this.width%4,o=this.height-1;o>=0;o--){for(var a=this.bottom_up?o:this.height-1-o,l=0;l<this.width;l++){var A=this.datav.getUint8(this.pos++,!0),p=a*this.width*4+4*l;if(A<this.palette.length){var O=this.palette[A];this.data[p]=O.red,this.data[p+1]=O.green,this.data[p+2]=O.blue,this.data[p+3]=255}else this.data[p]=255,this.data[p+1]=255,this.data[p+2]=255,this.data[p+3]=255}n!==0&&(this.pos+=4-n)}},mu.prototype.bit15=function(){for(var n=this.width%3,o=parseInt("11111",2),a=this.height-1;a>=0;a--){for(var l=this.bottom_up?a:this.height-1-a,A=0;A<this.width;A++){var p=this.datav.getUint16(this.pos,!0);this.pos+=2;var O=(p&o)/o*255|0,E=(p>>5&o)/o*255|0,R=(p>>10&o)/o*255|0,V=p>>15?255:0,le=l*this.width*4+4*A;this.data[le]=R,this.data[le+1]=E,this.data[le+2]=O,this.data[le+3]=V}this.pos+=n}},mu.prototype.bit16=function(){for(var n=this.width%3,o=parseInt("11111",2),a=parseInt("111111",2),l=this.height-1;l>=0;l--){for(var A=this.bottom_up?l:this.height-1-l,p=0;p<this.width;p++){var O=this.datav.getUint16(this.pos,!0);this.pos+=2;var E=(O&o)/o*255|0,R=(O>>5&a)/a*255|0,V=(O>>11)/o*255|0,le=A*this.width*4+4*p;this.data[le]=V,this.data[le+1]=R,this.data[le+2]=E,this.data[le+3]=255}this.pos+=n}},mu.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var o=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var l=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),p=this.datav.getUint8(this.pos++,!0),O=o*this.width*4+4*a;this.data[O]=p,this.data[O+1]=A,this.data[O+2]=l,this.data[O+3]=255}this.pos+=this.width%4}},mu.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var o=this.bottom_up?n:this.height-1-n,a=0;a<this.width;a++){var l=this.datav.getUint8(this.pos++,!0),A=this.datav.getUint8(this.pos++,!0),p=this.datav.getUint8(this.pos++,!0),O=this.datav.getUint8(this.pos++,!0),E=o*this.width*4+4*a;this.data[E]=p,this.data[E+1]=A,this.data[E+2]=l,this.data[E+3]=O}},mu.prototype.getData=function(){return this.data},function(n){n.processBMP=function(o,a,l,A){var p=new mu(o,!1),O=p.width,E=p.height,R={data:p.getData(),width:O,height:E},V=new Vm(100).encode(R,100);return n.processJPEG.call(this,V,a,l,A)}}(Aa.API),Sp.prototype.getData=function(){return this.data},function(n){n.processWEBP=function(o,a,l,A){var p=new Sp(o),O=p.width,E=p.height,R={data:p.getData(),width:O,height:E},V=new Vm(100).encode(R,100);return n.processJPEG.call(this,V,a,l,A)}}(Aa.API),Aa.API.processRGBA=function(n,o,a){for(var l=n.data,A=l.length,p=new Uint8Array(A/4*3),O=new Uint8Array(A/4),E=0,R=0,V=0;V<A;V+=4){var le=l[V],Re=l[V+1],$e=l[V+2],oe=l[V+3];p[E++]=le,p[E++]=Re,p[E++]=$e,O[R++]=oe}var gt=this.__addimage__.arrayBufferToBinaryString(p);return{alpha:this.__addimage__.arrayBufferToBinaryString(O),data:gt,index:o,alias:a,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},Aa.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},Rh=Aa.API,om=Rh.getCharWidthsArray=function(n,o){var a,l,A=(o=o||{}).font||this.internal.getFont(),p=o.fontSize||this.internal.getFontSize(),O=o.charSpace||this.internal.getCharSpace(),E=o.widths?o.widths:A.metadata.Unicode.widths,R=E.fof?E.fof:1,V=o.kerning?o.kerning:A.metadata.Unicode.kerning,le=V.fof?V.fof:1,Re=o.doKerning!==!1,$e=0,oe=n.length,gt=0,dt=E[0]||R,yt=[];for(a=0;a<oe;a++)l=n.charCodeAt(a),typeof A.metadata.widthOfString=="function"?yt.push((A.metadata.widthOfGlyph(A.metadata.characterToGlyph(l))+O*(1e3/p)||0)/1e3):($e=Re&&(0,ve.Z)(V[l])==="object"&&!isNaN(parseInt(V[l][gt],10))?V[l][gt]/le:0,yt.push((E[l]||dt)/R+$e)),gt=l;return yt},hg=Rh.getStringUnitWidth=function(n,o){var a=(o=o||{}).fontSize||this.internal.getFontSize(),l=o.font||this.internal.getFont(),A=o.charSpace||this.internal.getCharSpace();return Rh.processArabic&&(n=Rh.processArabic(n)),typeof l.metadata.widthOfString=="function"?l.metadata.widthOfString(n,a,A)/a:om.apply(this,arguments).reduce(function(p,O){return p+O},0)},jm=function(n,o,a,l){for(var A=[],p=0,O=n.length,E=0;p!==O&&E+o[p]<a;)E+=o[p],p++;A.push(n.slice(0,p));var R=p;for(E=0;p!==O;)E+o[p]>l&&(A.push(n.slice(R,p)),E=0,R=p),E+=o[p],p++;return R!==p&&A.push(n.slice(R,p)),A},pg=function(n,o,a){a||(a={});var l,A,p,O,E,R,V,le=[],Re=[le],$e=a.textIndent||0,oe=0,gt=0,dt=n.split(" "),yt=om.apply(this,[" ",a])[0];if(R=a.lineIndent===-1?dt[0].length+2:a.lineIndent||0){var lt=Array(R).join(" "),Xt=[];dt.map(function(It){(It=It.split(/\s*\n/)).length>1?Xt=Xt.concat(It.map(function(kr,rn){return(rn&&kr.length?`
|
|
|
`:"")+kr})):Xt.push(It[0])}),dt=Xt,R=hg.apply(this,[lt,a])}for(p=0,O=dt.length;p<O;p++){var Qt=0;if(l=dt[p],R&&l[0]==`
|
|
|
`&&(l=l.substr(1),Qt=1),$e+oe+(gt=(A=om.apply(this,[l,a])).reduce(function(It,kr){return It+kr},0))>o||Qt){if(gt>o){for(E=jm.apply(this,[l,A,o-($e+oe),o]),le.push(E.shift()),le=[E.pop()];E.length;)Re.push([E.shift()]);gt=A.slice(l.length-(le[0]?le[0].length:0)).reduce(function(It,kr){return It+kr},0)}else le=[l];Re.push(le),$e=gt+R,oe=yt}else le.push(l),$e+=oe+gt,oe=yt}return V=R?function(It,kr){return(kr?lt:"")+It.join(" ")}:function(It){return It.join(" ")},Re.map(V)},Rh.splitTextToSize=function(n,o,a){var l,A=(a=a||{}).fontSize||this.internal.getFontSize(),p=function(le){if(le.widths&&le.kerning)return{widths:le.widths,kerning:le.kerning};var Re=this.internal.getFont(le.fontName,le.fontStyle),$e="Unicode";return Re.metadata[$e]?{widths:Re.metadata[$e].widths||{0:1},kerning:Re.metadata[$e].kerning||{}}:{font:Re.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,a);l=Array.isArray(n)?n:String(n).split(/\r?\n/);var O=1*this.internal.scaleFactor*o/A;p.textIndent=a.textIndent?1*a.textIndent*this.internal.scaleFactor/A:0,p.lineIndent=a.lineIndent;var E,R,V=[];for(E=0,R=l.length;E<R;E++)V=V.concat(pg.apply(this,[l[E],O,p]));return V},function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var o="0123456789abcdef",a="klmnopqrstuvwxyz",l={},A={},p=0;p<16;p++)l[a[p]]=o[p],A[o[p]]=a[p];var O=function($e){return"0x"+parseInt($e,10).toString(16)},E=n.__fontmetrics__.compress=function($e){var oe,gt,dt,yt,lt=["{"];for(var Xt in $e){if(oe=$e[Xt],isNaN(parseInt(Xt,10))?gt="'"+Xt+"'":(Xt=parseInt(Xt,10),gt=(gt=O(Xt).slice(2)).slice(0,-1)+A[gt.slice(-1)]),typeof oe=="number")oe<0?(dt=O(oe).slice(3),yt="-"):(dt=O(oe).slice(2),yt=""),dt=yt+dt.slice(0,-1)+A[dt.slice(-1)];else{if((0,ve.Z)(oe)!=="object")throw new Error("Don't know what to do with value type "+(0,ve.Z)(oe)+".");dt=E(oe)}lt.push(gt+dt)}return lt.push("}"),lt.join("")},R=n.__fontmetrics__.uncompress=function($e){if(typeof $e!="string")throw new Error("Invalid argument passed to uncompress.");for(var oe,gt,dt,yt,lt={},Xt=1,Qt=lt,It=[],kr="",rn="",Pr=$e.length-1,ir=1;ir<Pr;ir+=1)(yt=$e[ir])=="'"?oe?(dt=oe.join(""),oe=void 0):oe=[]:oe?oe.push(yt):yt=="{"?(It.push([Qt,dt]),Qt={},dt=void 0):yt=="}"?((gt=It.pop())[0][gt[1]]=Qt,dt=void 0,Qt=gt[0]):yt=="-"?Xt=-1:dt===void 0?l.hasOwnProperty(yt)?(kr+=l[yt],dt=parseInt(kr,16)*Xt,Xt=1,kr=""):kr+=yt:l.hasOwnProperty(yt)?(rn+=l[yt],Qt[dt]=parseInt(rn,16)*Xt,Xt=1,dt=void 0,rn=""):rn+=yt;return lt},V={codePages:["WinAnsiEncoding"],WinAnsiEncoding:R("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},le={Unicode:{Courier:V,"Courier-Bold":V,"Courier-BoldOblique":V,"Courier-Oblique":V,Helvetica:V,"Helvetica-Bold":V,"Helvetica-BoldOblique":V,"Helvetica-Oblique":V,"Times-Roman":V,"Times-Bold":V,"Times-BoldItalic":V,"Times-Italic":V}},Re={Unicode:{"Courier-Oblique":R("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":R("{'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":R("{'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:R("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":R("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":R("{'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:R("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:R("{'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":R("{'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:R("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":R("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":R("{'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":R("{'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":R("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};n.events.push(["addFont",function($e){var oe=$e.font,gt=Re.Unicode[oe.postScriptName];gt&&(oe.metadata.Unicode={},oe.metadata.Unicode.widths=gt.widths,oe.metadata.Unicode.kerning=gt.kerning);var dt=le.Unicode[oe.postScriptName];dt&&(oe.metadata.Unicode.encoding=dt,oe.encoding=dt.codePages[0])}])}(Aa.API),function(n){var o=function(a){for(var l=a.length,A=new Uint8Array(l),p=0;p<l;p++)A[p]=a.charCodeAt(p);return A};n.API.events.push(["addFont",function(a){var l=void 0,A=a.font,p=a.instance;if(!A.isStandardFont){if(p===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+A.postScriptName+"').");if(typeof(l=p.existsFileInVFS(A.postScriptName)===!1?p.loadFile(A.postScriptName):p.getFileFromVFS(A.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+A.postScriptName+"').");(function(O,E){E=/^\x00\x01\x00\x00/.test(E)?o(E):o(vn(E)),O.metadata=n.API.TTFFont.open(E),O.metadata.Unicode=O.metadata.Unicode||{encoding:{},kerning:{},widths:[]},O.metadata.glyIdsUsed=[0]})(A,l)}}])}(Aa),Aa.API.addSvgAsImage=function(n,o,a,l,A,p,O,E){if(isNaN(o)||isNaN(a))throw ks.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(l)||isNaN(A))throw ks.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var R=document.createElement("canvas");R.width=l,R.height=A;var V=R.getContext("2d");V.fillStyle="#fff",V.fillRect(0,0,R.width,R.height);var le={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},Re=this;return(Za.canvg?Promise.resolve(Za.canvg):x.e(3754).then(x.bind(x,63754))).catch(function($e){return Promise.reject(new Error("Could not load canvg: "+$e))}).then(function($e){return $e.default?$e.default:$e}).then(function($e){return $e.fromString(V,n,le)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function($e){return $e.render(le)}).then(function(){Re.addImage(R.toDataURL("image/jpeg",1),o,a,l,A,O,E)})},Aa.API.putTotalPages=function(n){var o,a=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(o=new RegExp(n,"g"),a=this.internal.getNumberOfPages()):(o=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),a=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var l=1;l<=this.internal.getNumberOfPages();l++)for(var A=0;A<this.internal.pages[l].length;A++)this.internal.pages[l][A]=this.internal.pages[l][A].replace(o,a);return this},Aa.API.viewerPreferences=function(n,o){var a;n=n||{},o=o||!1;var l,A,p,O={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},E=Object.keys(O),R=[],V=0,le=0,Re=0;function $e(gt,dt){var yt,lt=!1;for(yt=0;yt<gt.length;yt+=1)gt[yt]===dt&&(lt=!0);return lt}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 oe=E.length;for(Re=0;Re<oe;Re+=1)a[E[Re]].value=a[E[Re]].defaultValue,a[E[Re]].explicitSet=!1}if((0,ve.Z)(n)==="object"){for(A in n)if(p=n[A],$e(E,A)&&p!==void 0){if(a[A].type==="boolean"&&typeof p=="boolean")a[A].value=p;else if(a[A].type==="name"&&$e(a[A].valueSet,p))a[A].value=p;else if(a[A].type==="integer"&&Number.isInteger(p))a[A].value=p;else if(a[A].type==="array"){for(V=0;V<p.length;V+=1)if(l=!0,p[V].length===1&&typeof p[V][0]=="number")R.push(String(p[V]-1));else if(p[V].length>1){for(le=0;le<p[V].length;le+=1)typeof p[V][le]!="number"&&(l=!1);l===!0&&R.push([p[V][0]-1,p[V][1]-1].join(" "))}a[A].value="["+R.join(" ")+"]"}else a[A].value=a[A].defaultValue;a[A].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var gt,dt=[];for(gt in a)a[gt].explicitSet===!0&&(a[gt].type==="name"?dt.push("/"+gt+" /"+a[gt].value):dt.push("/"+gt+" "+a[gt].value));dt.length!==0&&this.internal.write(`/ViewerPreferences
|
|
|
<<
|
|
|
`+dt.join(`
|
|
|
`)+`
|
|
|
>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=a,this},function(n){var o=function(){var l='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',A=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),p=unescape(encodeURIComponent(l)),O=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),E=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),R=unescape(encodeURIComponent("</x:xmpmeta>")),V=p.length+O.length+E.length+A.length+R.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+V+" >>"),this.internal.write("stream"),this.internal.write(A+p+O+E+R),this.internal.write("endstream"),this.internal.write("endobj")},a=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};n.addMetadata=function(l,A){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:l,namespaceuri:A||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",a),this.internal.events.subscribe("postPutResources",o)),this}}(Aa.API),function(n){var o=n.API,a=o.pdfEscape16=function(p,O){for(var E,R=O.metadata.Unicode.widths,V=["","0","00","000","0000"],le=[""],Re=0,$e=p.length;Re<$e;++Re){if(E=O.metadata.characterToGlyph(p.charCodeAt(Re)),O.metadata.glyIdsUsed.push(E),O.metadata.toUnicode[E]=p.charCodeAt(Re),R.indexOf(E)==-1&&(R.push(E),R.push([parseInt(O.metadata.widthOfGlyph(E),10)])),E=="0")return le.join("");E=E.toString(16),le.push(V[4-E.length],E)}return le.join("")},l=function(p){var O,E,R,V,le,Re,$e;for(le=`/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`,R=[],Re=0,$e=(E=Object.keys(p).sort(function(oe,gt){return oe-gt})).length;Re<$e;Re++)O=E[Re],R.length>=100&&(le+=`
|
|
|
`+R.length+` beginbfchar
|
|
|
`+R.join(`
|
|
|
`)+`
|
|
|
endbfchar`,R=[]),p[O]!==void 0&&p[O]!==null&&typeof p[O].toString=="function"&&(V=("0000"+p[O].toString(16)).slice(-4),O=("0000"+(+O).toString(16)).slice(-4),R.push("<"+O+"><"+V+">"));return R.length&&(le+=`
|
|
|
`+R.length+` beginbfchar
|
|
|
`+R.join(`
|
|
|
`)+`
|
|
|
endbfchar
|
|
|
`),le+`endcmap
|
|
|
CMapName currentdict /CMap defineresource pop
|
|
|
end
|
|
|
end`};o.events.push(["putFont",function(p){(function(O){var E=O.font,R=O.out,V=O.newObject,le=O.putStream;if(E.metadata instanceof n.API.TTFFont&&E.encoding==="Identity-H"){for(var Re=E.metadata.Unicode.widths,$e=E.metadata.subset.encode(E.metadata.glyIdsUsed,1),oe="",gt=0;gt<$e.length;gt++)oe+=String.fromCharCode($e[gt]);var dt=V();le({data:oe,addLength1:!0,objectId:dt}),R("endobj");var yt=V();le({data:l(E.metadata.toUnicode),addLength1:!0,objectId:yt}),R("endobj");var lt=V();R("<<"),R("/Type /FontDescriptor"),R("/FontName /"+nA(E.fontName)),R("/FontFile2 "+dt+" 0 R"),R("/FontBBox "+n.API.PDFObject.convert(E.metadata.bbox)),R("/Flags "+E.metadata.flags),R("/StemV "+E.metadata.stemV),R("/ItalicAngle "+E.metadata.italicAngle),R("/Ascent "+E.metadata.ascender),R("/Descent "+E.metadata.decender),R("/CapHeight "+E.metadata.capHeight),R(">>"),R("endobj");var Xt=V();R("<<"),R("/Type /Font"),R("/BaseFont /"+nA(E.fontName)),R("/FontDescriptor "+lt+" 0 R"),R("/W "+n.API.PDFObject.convert(Re)),R("/CIDToGIDMap /Identity"),R("/DW 1000"),R("/Subtype /CIDFontType2"),R("/CIDSystemInfo"),R("<<"),R("/Supplement 0"),R("/Registry (Adobe)"),R("/Ordering ("+E.encoding+")"),R(">>"),R(">>"),R("endobj"),E.objectNumber=V(),R("<<"),R("/Type /Font"),R("/Subtype /Type0"),R("/ToUnicode "+yt+" 0 R"),R("/BaseFont /"+nA(E.fontName)),R("/Encoding /"+E.encoding),R("/DescendantFonts ["+Xt+" 0 R]"),R(">>"),R("endobj"),E.isAlreadyPutted=!0}})(p)}]),o.events.push(["putFont",function(p){(function(O){var E=O.font,R=O.out,V=O.newObject,le=O.putStream;if(E.metadata instanceof n.API.TTFFont&&E.encoding==="WinAnsiEncoding"){for(var Re=E.metadata.rawData,$e="",oe=0;oe<Re.length;oe++)$e+=String.fromCharCode(Re[oe]);var gt=V();le({data:$e,addLength1:!0,objectId:gt}),R("endobj");var dt=V();le({data:l(E.metadata.toUnicode),addLength1:!0,objectId:dt}),R("endobj");var yt=V();R("<<"),R("/Descent "+E.metadata.decender),R("/CapHeight "+E.metadata.capHeight),R("/StemV "+E.metadata.stemV),R("/Type /FontDescriptor"),R("/FontFile2 "+gt+" 0 R"),R("/Flags 96"),R("/FontBBox "+n.API.PDFObject.convert(E.metadata.bbox)),R("/FontName /"+nA(E.fontName)),R("/ItalicAngle "+E.metadata.italicAngle),R("/Ascent "+E.metadata.ascender),R(">>"),R("endobj"),E.objectNumber=V();for(var lt=0;lt<E.metadata.hmtx.widths.length;lt++)E.metadata.hmtx.widths[lt]=parseInt(E.metadata.hmtx.widths[lt]*(1e3/E.metadata.head.unitsPerEm));R("<</Subtype/TrueType/Type/Font/ToUnicode "+dt+" 0 R/BaseFont/"+nA(E.fontName)+"/FontDescriptor "+yt+" 0 R/Encoding/"+E.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(E.metadata.hmtx.widths)+">>"),R("endobj"),E.isAlreadyPutted=!0}})(p)}]);var A=function(p){var O,E=p.text||"",R=p.x,V=p.y,le=p.options||{},Re=p.mutex||{},$e=Re.pdfEscape,oe=Re.activeFontKey,gt=Re.fonts,dt=oe,yt="",lt=0,Xt="",Qt=gt[dt].encoding;if(gt[dt].encoding!=="Identity-H")return{text:E,x:R,y:V,options:le,mutex:Re};for(Xt=E,dt=oe,Array.isArray(E)&&(Xt=E[0]),lt=0;lt<Xt.length;lt+=1)gt[dt].metadata.hasOwnProperty("cmap")&&(O=gt[dt].metadata.cmap.unicode.codeMap[Xt[lt].charCodeAt(0)]),O||Xt[lt].charCodeAt(0)<256&>[dt].metadata.hasOwnProperty("Unicode")?yt+=Xt[lt]:yt+="";var It="";return parseInt(dt.slice(1))<14||Qt==="WinAnsiEncoding"?It=$e(yt,dt).split("").map(function(kr){return kr.charCodeAt(0).toString(16)}).join(""):Qt==="Identity-H"&&(It=a(yt,gt[dt])),Re.isHex=!0,{text:It,x:R,y:V,options:le,mutex:Re}};o.events.push(["postProcessText",function(p){var O=p.text||"",E=[],R={text:O,x:p.x,y:p.y,options:p.options,mutex:p.mutex};if(Array.isArray(O)){var V=0;for(V=0;V<O.length;V+=1)Array.isArray(O[V])&&O[V].length===3?E.push([A(Object.assign({},R,{text:O[V][0]})).text,O[V][1],O[V][2]]):E.push(A(Object.assign({},R,{text:O[V]})).text);p.text=E}else p.text=A(Object.assign({},R,{text:O})).text}])}(Aa),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}}(Aa.API),function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(l){var A,p,O,E,R,V,le,Re=o,$e=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],oe=[[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]],gt={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},dt={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},yt=["(",")","(","<",">","<","[","]","[","{","}","{","\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"],lt=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)$/),Xt=!1,Qt=0;this.__bidiEngine__={};var It=function(it){var Ct=it.charCodeAt(),tr=Ct>>8,$t=dt[tr];return $t!==void 0?Re[256*$t+(255&Ct)]:tr===252||tr===253?"AL":lt.test(tr)?"L":tr===8?"R":"N"},kr=function(it){for(var Ct,tr=0;tr<it.length;tr++){if((Ct=It(it.charAt(tr)))==="L")return!1;if(Ct==="R")return!0}return!1},rn=function(it,Ct,tr,$t){var Kr,Zr,tn,Mr,Vr=Ct[$t];switch(Vr){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":Xt=!1;break;case"N":case"AN":break;case"EN":Xt&&(Vr="AN");break;case"AL":Xt=!0,Vr="R";break;case"WS":case"BN":Vr="N";break;case"CS":$t<1||$t+1>=Ct.length||(Kr=tr[$t-1])!=="EN"&&Kr!=="AN"||(Zr=Ct[$t+1])!=="EN"&&Zr!=="AN"?Vr="N":Xt&&(Zr="AN"),Vr=Zr===Kr?Zr:"N";break;case"ES":Vr=(Kr=$t>0?tr[$t-1]:"B")==="EN"&&$t+1<Ct.length&&Ct[$t+1]==="EN"?"EN":"N";break;case"ET":if($t>0&&tr[$t-1]==="EN"){Vr="EN";break}if(Xt){Vr="N";break}for(tn=$t+1,Mr=Ct.length;tn<Mr&&Ct[tn]==="ET";)tn++;Vr=tn<Mr&&Ct[tn]==="EN"?"EN":"N";break;case"NSM":if(O&&!E){for(Mr=Ct.length,tn=$t+1;tn<Mr&&Ct[tn]==="NSM";)tn++;if(tn<Mr){var Zn=it[$t],In=Zn>=1425&&Zn<=2303||Zn===64286;if(Kr=Ct[tn],In&&(Kr==="R"||Kr==="AL")){Vr="R";break}}}Vr=$t<1||(Kr=Ct[$t-1])==="B"?"N":tr[$t-1];break;case"B":Xt=!1,A=!0,Vr=Qt;break;case"S":p=!0,Vr="N"}return Vr},Pr=function(it,Ct,tr){var $t=it.split("");return tr&&ir($t,tr,{hiLevel:Qt}),$t.reverse(),Ct&&Ct.reverse(),$t.join("")},ir=function(it,Ct,tr){var $t,Kr,Zr,tn,Mr,Vr=-1,Zn=it.length,In=0,tt=[],Et=Qt?oe:$e,Nt=[];for(Xt=!1,A=!1,p=!1,Kr=0;Kr<Zn;Kr++)Nt[Kr]=It(it[Kr]);for(Zr=0;Zr<Zn;Zr++){if(Mr=In,tt[Zr]=rn(it,Nt,tt,Zr),$t=240&(In=Et[Mr][gt[tt[Zr]]]),In&=15,Ct[Zr]=tn=Et[In][5],$t>0)if($t===16){for(Kr=Vr;Kr<Zr;Kr++)Ct[Kr]=1;Vr=-1}else Vr=-1;if(Et[In][6])Vr===-1&&(Vr=Zr);else if(Vr>-1){for(Kr=Vr;Kr<Zr;Kr++)Ct[Kr]=tn;Vr=-1}Nt[Zr]==="B"&&(Ct[Zr]=0),tr.hiLevel|=tn}p&&function(er,dr,Br){for(var Gr=0;Gr<Br;Gr++)if(er[Gr]==="S"){dr[Gr]=Qt;for(var Ur=Gr-1;Ur>=0&&er[Ur]==="WS";Ur--)dr[Ur]=Qt}}(Nt,Ct,Zn)},Lt=function(it,Ct,tr,$t,Kr){if(!(Kr.hiLevel<it)){if(it===1&&Qt===1&&!A)return Ct.reverse(),void(tr&&tr.reverse());for(var Zr,tn,Mr,Vr,Zn=Ct.length,In=0;In<Zn;){if($t[In]>=it){for(Mr=In+1;Mr<Zn&&$t[Mr]>=it;)Mr++;for(Vr=In,tn=Mr-1;Vr<tn;Vr++,tn--)Zr=Ct[Vr],Ct[Vr]=Ct[tn],Ct[tn]=Zr,tr&&(Zr=tr[Vr],tr[Vr]=tr[tn],tr[tn]=Zr);In=Mr}In++}}},wr=function(it,Ct,tr){var $t=it.split(""),Kr={hiLevel:Qt};return tr||(tr=[]),ir($t,tr,Kr),function(Zr,tn,Mr){if(Mr.hiLevel!==0&&le)for(var Vr,Zn=0;Zn<Zr.length;Zn++)tn[Zn]===1&&(Vr=yt.indexOf(Zr[Zn]))>=0&&(Zr[Zn]=yt[Vr+1])}($t,tr,Kr),Lt(2,$t,Ct,tr,Kr),Lt(1,$t,Ct,tr,Kr),$t.join("")};return this.__bidiEngine__.doBidiReorder=function(it,Ct,tr){if(function(Kr,Zr){if(Zr)for(var tn=0;tn<Kr.length;tn++)Zr[tn]=tn;E===void 0&&(E=kr(Kr)),V===void 0&&(V=kr(Kr))}(it,Ct),O||!R||V)if(O&&R&&E^V)Qt=E?1:0,it=Pr(it,Ct,tr);else if(!O&&R&&V)Qt=E?1:0,it=wr(it,Ct,tr),it=Pr(it,Ct);else if(!O||E||R||V){if(O&&!R&&E^V)it=Pr(it,Ct),E?(Qt=0,it=wr(it,Ct,tr)):(Qt=1,it=wr(it,Ct,tr),it=Pr(it,Ct));else if(O&&E&&!R&&V)Qt=1,it=wr(it,Ct,tr),it=Pr(it,Ct);else if(!O&&!R&&E^V){var $t=le;E?(Qt=1,it=wr(it,Ct,tr),Qt=0,le=!1,it=wr(it,Ct,tr),le=$t):(Qt=0,it=wr(it,Ct,tr),it=Pr(it,Ct),Qt=1,le=!1,it=wr(it,Ct,tr),le=$t,it=Pr(it,Ct))}}else Qt=0,it=wr(it,Ct,tr);else Qt=E?1:0,it=wr(it,Ct,tr);return it},this.__bidiEngine__.setOptions=function(it){it&&(O=it.isInputVisual,R=it.isOutputVisual,E=it.isInputRtl,V=it.isOutputRtl,le=it.isSymmetricSwapping)},this.__bidiEngine__.setOptions(l),this.__bidiEngine__};var o=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],a=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(l){var A=l.text;l.x,l.y;var p=l.options||{};l.mutex,p.lang;var O=[];if(p.isInputVisual=typeof p.isInputVisual!="boolean"||p.isInputVisual,a.setOptions(p),Object.prototype.toString.call(A)==="[object Array]"){var E=0;for(O=[],E=0;E<A.length;E+=1)Object.prototype.toString.call(A[E])==="[object Array]"?O.push([a.doBidiReorder(A[E][0]),A[E][1],A[E][2]]):O.push([a.doBidiReorder(A[E])]);l.text=O}else l.text=a.doBidiReorder(A);a.setOptions({isInputVisual:!0})}])}(Aa),Aa.API.TTFFont=function(){function n(o){var a;if(this.rawData=o,a=this.contents=new lh(o),this.contents.pos=4,a.readString(4)==="ttcf")throw new Error("TTCF not supported.");a.pos=0,this.parse(),this.subset=new Cg(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 um(this),this.cmap=new Am(this),this.toUnicode={},this.hhea=new yg(this),this.maxp=new r1(this),this.hmtx=new _l(this),this.post=new vu(this),this.os2=new e1(this),this.loca=new n1(this),this.glyf=new xg(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},n.prototype.registerTTF=function(){var o,a,l,A,p;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var O,E,R,V;for(V=[],O=0,E=(R=this.bbox).length;O<E;O++)o=R[O],V.push(Math.round(o*this.scaleFactor));return V}.call(this),this.stemV=0,this.post.exists?(l=255&(A=this.post.italic_angle),32768&(a=A>>16)&&(a=-(1+(65535^a))),this.italicAngle=+(a+"."+l)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(p=this.familyClass)===1||p===2||p===3||p===4||p===5||p===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},n.prototype.characterToGlyph=function(o){var a;return((a=this.cmap.unicode)!=null?a.codeMap[o]:void 0)||0},n.prototype.widthOfGlyph=function(o){var a;return a=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(o).advance*a},n.prototype.widthOfString=function(o,a,l){var A,p,O,E;for(O=0,p=0,E=(o=""+o).length;0<=E?p<E:p>E;p=0<=E?++p:--p)A=o.charCodeAt(p),O+=this.widthOfGlyph(this.characterToGlyph(A))+l*(1e3/a)||0;return O*(a/1e3)},n.prototype.lineHeight=function(o,a){var l;return a==null&&(a=!1),l=a?this.lineGap:0,(this.ascender+l-this.decender)/1e3*o},n}();var LA,lh=function(){function n(o){this.data=o!=null?o:[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(o){return this.data[this.pos++]=o},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(o){return this.writeByte(o>>>24&255),this.writeByte(o>>16&255),this.writeByte(o>>8&255),this.writeByte(255&o)},n.prototype.readInt32=function(){var o;return(o=this.readUInt32())>=2147483648?o-4294967296:o},n.prototype.writeInt32=function(o){return o<0&&(o+=4294967296),this.writeUInt32(o)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(o){return this.writeByte(o>>8&255),this.writeByte(255&o)},n.prototype.readInt16=function(){var o;return(o=this.readUInt16())>=32768?o-65536:o},n.prototype.writeInt16=function(o){return o<0&&(o+=65536),this.writeUInt16(o)},n.prototype.readString=function(o){var a,l;for(l=[],a=0;0<=o?a<o:a>o;a=0<=o?++a:--a)l[a]=String.fromCharCode(this.readByte());return l.join("")},n.prototype.writeString=function(o){var a,l,A;for(A=[],a=0,l=o.length;0<=l?a<l:a>l;a=0<=l?++a:--a)A.push(this.writeByte(o.charCodeAt(a)));return A},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(o){return this.writeInt16(o)},n.prototype.readLongLong=function(){var o,a,l,A,p,O,E,R;return o=this.readByte(),a=this.readByte(),l=this.readByte(),A=this.readByte(),p=this.readByte(),O=this.readByte(),E=this.readByte(),R=this.readByte(),128&o?-1*(72057594037927940*(255^o)+281474976710656*(255^a)+1099511627776*(255^l)+4294967296*(255^A)+16777216*(255^p)+65536*(255^O)+256*(255^E)+(255^R)+1):72057594037927940*o+281474976710656*a+1099511627776*l+4294967296*A+16777216*p+65536*O+256*E+R},n.prototype.writeLongLong=function(o){var a,l;return a=Math.floor(o/4294967296),l=4294967295&o,this.writeByte(a>>24&255),this.writeByte(a>>16&255),this.writeByte(a>>8&255),this.writeByte(255&a),this.writeByte(l>>24&255),this.writeByte(l>>16&255),this.writeByte(l>>8&255),this.writeByte(255&l)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(o){return this.writeInt32(o)},n.prototype.read=function(o){var a,l;for(a=[],l=0;0<=o?l<o:l>o;l=0<=o?++l:--l)a.push(this.readByte());return a},n.prototype.write=function(o){var a,l,A,p;for(p=[],l=0,A=o.length;l<A;l++)a=o[l],p.push(this.writeByte(a));return p},n}(),Yg=function(){var n;function o(a){var l,A,p;for(this.scalarType=a.readInt(),this.tableCount=a.readShort(),this.searchRange=a.readShort(),this.entrySelector=a.readShort(),this.rangeShift=a.readShort(),this.tables={},A=0,p=this.tableCount;0<=p?A<p:A>p;A=0<=p?++A:--A)l={tag:a.readString(4),checksum:a.readInt(),offset:a.readInt(),length:a.readInt()},this.tables[l.tag]=l}return o.prototype.encode=function(a){var l,A,p,O,E,R,V,le,Re,$e,oe,gt,dt;for(dt in oe=Object.keys(a).length,R=Math.log(2),Re=16*Math.floor(Math.log(oe)/R),O=Math.floor(Re/R),le=16*oe-Re,(A=new lh).writeInt(this.scalarType),A.writeShort(oe),A.writeShort(Re),A.writeShort(O),A.writeShort(le),p=16*oe,V=A.pos+p,E=null,gt=[],a)for($e=a[dt],A.writeString(dt),A.writeInt(n($e)),A.writeInt(V),A.writeInt($e.length),gt=gt.concat($e),dt==="head"&&(E=V),V+=$e.length;V%4;)gt.push(0),V++;return A.write(gt),l=2981146554-n(A.data),A.pos=E+8,A.writeUInt32(l),A.data},n=function(a){var l,A,p,O;for(a=wg.call(a);a.length%4;)a.push(0);for(p=new lh(a),A=0,l=0,O=a.length;l<O;l=l+=4)A+=p.readUInt32();return 4294967295&A},o}(),qg={}.hasOwnProperty,gu=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};LA=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 gu(n,LA),n.prototype.tag="head",n.prototype.parse=function(o){return o.pos=this.offset,this.version=o.readInt(),this.revision=o.readInt(),this.checkSumAdjustment=o.readInt(),this.magicNumber=o.readInt(),this.flags=o.readShort(),this.unitsPerEm=o.readShort(),this.created=o.readLongLong(),this.modified=o.readLongLong(),this.xMin=o.readShort(),this.yMin=o.readShort(),this.xMax=o.readShort(),this.yMax=o.readShort(),this.macStyle=o.readShort(),this.lowestRecPPEM=o.readShort(),this.fontDirectionHint=o.readShort(),this.indexToLocFormat=o.readShort(),this.glyphDataFormat=o.readShort()},n.prototype.encode=function(o){var a;return(a=new lh).writeInt(this.version),a.writeInt(this.revision),a.writeInt(this.checkSumAdjustment),a.writeInt(this.magicNumber),a.writeShort(this.flags),a.writeShort(this.unitsPerEm),a.writeLongLong(this.created),a.writeLongLong(this.modified),a.writeShort(this.xMin),a.writeShort(this.yMin),a.writeShort(this.xMax),a.writeShort(this.yMax),a.writeShort(this.macStyle),a.writeShort(this.lowestRecPPEM),a.writeShort(this.fontDirectionHint),a.writeShort(o),a.writeShort(this.glyphDataFormat),a.data},n}(),Wm=function(){function n(o,a){var l,A,p,O,E,R,V,le,Re,$e,oe,gt,dt,yt,lt,Xt,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(R=0;R<256;++R)this.codeMap[R]=o.readByte();break;case 4:for(oe=o.readUInt16(),$e=oe/2,o.pos+=6,p=function(){var It,kr;for(kr=[],R=It=0;0<=$e?It<$e:It>$e;R=0<=$e?++It:--It)kr.push(o.readUInt16());return kr}(),o.pos+=2,dt=function(){var It,kr;for(kr=[],R=It=0;0<=$e?It<$e:It>$e;R=0<=$e?++It:--It)kr.push(o.readUInt16());return kr}(),V=function(){var It,kr;for(kr=[],R=It=0;0<=$e?It<$e:It>$e;R=0<=$e?++It:--It)kr.push(o.readUInt16());return kr}(),le=function(){var It,kr;for(kr=[],R=It=0;0<=$e?It<$e:It>$e;R=0<=$e?++It:--It)kr.push(o.readUInt16());return kr}(),A=(this.length-o.pos+this.offset)/2,E=function(){var It,kr;for(kr=[],R=It=0;0<=A?It<A:It>A;R=0<=A?++It:--It)kr.push(o.readUInt16());return kr}(),R=lt=0,Qt=p.length;lt<Qt;R=++lt)for(yt=p[R],l=Xt=gt=dt[R];gt<=yt?Xt<=yt:Xt>=yt;l=gt<=yt?++Xt:--Xt)le[R]===0?O=l+V[R]:(O=E[le[R]/2+(l-gt)-($e-R)]||0)!==0&&(O+=V[R]),this.codeMap[l]=65535&O}o.pos=Re}return n.encode=function(o,a){var l,A,p,O,E,R,V,le,Re,$e,oe,gt,dt,yt,lt,Xt,Qt,It,kr,rn,Pr,ir,Lt,wr,it,Ct,tr,$t,Kr,Zr,tn,Mr,Vr,Zn,In,tt,Et,Nt,er,dr,Br,Gr,Ur,wn,zn,hi;switch($t=new lh,O=Object.keys(o).sort(function(Si,sn){return Si-sn}),a){case"macroman":for(dt=0,yt=function(){var Si=[];for(gt=0;gt<256;++gt)Si.push(0);return Si}(),Xt={0:0},p={},Kr=0,Vr=O.length;Kr<Vr;Kr++)Xt[Ur=o[A=O[Kr]]]==null&&(Xt[Ur]=++dt),p[A]={old:o[A],new:Xt[o[A]]},yt[A]=Xt[o[A]];return $t.writeUInt16(1),$t.writeUInt16(0),$t.writeUInt32(12),$t.writeUInt16(0),$t.writeUInt16(262),$t.writeUInt16(0),$t.write(yt),{charMap:p,subtable:$t.data,maxGlyphID:dt+1};case"unicode":for(Ct=[],Re=[],Qt=0,Xt={},l={},lt=V=null,Zr=0,Zn=O.length;Zr<Zn;Zr++)Xt[kr=o[A=O[Zr]]]==null&&(Xt[kr]=++Qt),l[A]={old:kr,new:Xt[kr]},E=Xt[kr]-A,lt!=null&&E===V||(lt&&Re.push(lt),Ct.push(A),V=E),lt=A;for(lt&&Re.push(lt),Re.push(65535),Ct.push(65535),wr=2*(Lt=Ct.length),ir=2*Math.pow(Math.log(Lt)/Math.LN2,2),$e=Math.log(ir/2)/Math.LN2,Pr=2*Lt-ir,R=[],rn=[],oe=[],gt=tn=0,In=Ct.length;tn<In;gt=++tn){if(it=Ct[gt],le=Re[gt],it===65535){R.push(0),rn.push(0);break}if(it-(tr=l[it].new)>=32768)for(R.push(0),rn.push(2*(oe.length+Lt-gt)),A=Mr=it;it<=le?Mr<=le:Mr>=le;A=it<=le?++Mr:--Mr)oe.push(l[A].new);else R.push(tr-it),rn.push(0)}for($t.writeUInt16(3),$t.writeUInt16(1),$t.writeUInt32(12),$t.writeUInt16(4),$t.writeUInt16(16+8*Lt+2*oe.length),$t.writeUInt16(0),$t.writeUInt16(wr),$t.writeUInt16(ir),$t.writeUInt16($e),$t.writeUInt16(Pr),Br=0,tt=Re.length;Br<tt;Br++)A=Re[Br],$t.writeUInt16(A);for($t.writeUInt16(0),Gr=0,Et=Ct.length;Gr<Et;Gr++)A=Ct[Gr],$t.writeUInt16(A);for(wn=0,Nt=R.length;wn<Nt;wn++)E=R[wn],$t.writeUInt16(E);for(zn=0,er=rn.length;zn<er;zn++)It=rn[zn],$t.writeUInt16(It);for(hi=0,dr=oe.length;hi<dr;hi++)dt=oe[hi],$t.writeUInt16(dt);return{charMap:l,subtable:$t.data,maxGlyphID:Qt+1}}},n}(),Am=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return gu(n,LA),n.prototype.tag="cmap",n.prototype.parse=function(o){var a,l,A;for(o.pos=this.offset,this.version=o.readUInt16(),A=o.readUInt16(),this.tables=[],this.unicode=null,l=0;0<=A?l<A:l>A;l=0<=A?++l:--l)a=new Wm(o,this.offset),this.tables.push(a),a.isUnicode&&this.unicode==null&&(this.unicode=a);return!0},n.encode=function(o,a){var l,A;return a==null&&(a="macroman"),l=Wm.encode(o,a),(A=new lh).writeUInt16(0),A.writeUInt16(1),l.table=A.data.concat(l.subtable),l},n}(),yg=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return gu(n,LA),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 gu(n,LA),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}(),vu=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return gu(n,LA),n.prototype.tag="post",n.prototype.parse=function(o){var a,l,A;switch(o.pos=this.offset,this.format=o.readInt(),this.italicAngle=o.readInt(),this.underlinePosition=o.readShort(),this.underlineThickness=o.readShort(),this.isFixedPitch=o.readInt(),this.minMemType42=o.readInt(),this.maxMemType42=o.readInt(),this.minMemType1=o.readInt(),this.maxMemType1=o.readInt(),this.format){case 65536:case 196608:break;case 131072:var p;for(l=o.readUInt16(),this.glyphNameIndex=[],p=0;0<=l?p<l:p>l;p=0<=l?++p:--p)this.glyphNameIndex.push(o.readUInt16());for(this.names=[],A=[];o.pos<this.offset+this.length;)a=o.readByte(),A.push(this.names.push(o.readString(a)));return A;case 151552:return l=o.readUInt16(),this.offsets=o.read(l);case 262144:return this.map=function(){var O,E,R;for(R=[],p=O=0,E=this.file.maxp.numGlyphs;0<=E?O<E:O>E;p=0<=E?++O:--O)R.push(o.readUInt32());return R}.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},um=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return gu(n,LA),n.prototype.tag="name",n.prototype.parse=function(o){var a,l,A,p,O,E,R,V,le,Re,$e;for(o.pos=this.offset,o.readShort(),a=o.readShort(),E=o.readShort(),l=[],p=0;0<=a?p<a:p>a;p=0<=a?++p:--p)l.push({platformID:o.readShort(),encodingID:o.readShort(),languageID:o.readShort(),nameID:o.readShort(),length:o.readShort(),offset:this.offset+E+o.readShort()});for(R={},p=le=0,Re=l.length;le<Re;p=++le)A=l[p],o.pos=A.offset,V=o.readString(A.length),O=new t1(V,A),R[$e=A.nameID]==null&&(R[$e]=[]),R[A.nameID].push(O);this.strings=R,this.copyright=R[0],this.fontFamily=R[1],this.fontSubfamily=R[2],this.uniqueSubfamily=R[3],this.fontName=R[4],this.version=R[5];try{this.postscriptName=R[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch(oe){this.postscriptName=R[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=R[7],this.manufacturer=R[8],this.designer=R[9],this.description=R[10],this.vendorUrl=R[11],this.designerUrl=R[12],this.license=R[13],this.licenseUrl=R[14],this.preferredFamily=R[15],this.preferredSubfamily=R[17],this.compatibleFull=R[18],this.sampleText=R[19]},n}(),r1=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return gu(n,LA),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 gu(n,LA),n.prototype.tag="hmtx",n.prototype.parse=function(o){var a,l,A,p,O,E,R;for(o.pos=this.offset,this.metrics=[],a=0,E=this.file.hhea.numberOfMetrics;0<=E?a<E:a>E;a=0<=E?++a:--a)this.metrics.push({advance:o.readUInt16(),lsb:o.readInt16()});for(A=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var V,le;for(le=[],a=V=0;0<=A?V<A:V>A;a=0<=A?++V:--V)le.push(o.readInt16());return le}(),this.widths=function(){var V,le,Re,$e;for($e=[],V=0,le=(Re=this.metrics).length;V<le;V++)p=Re[V],$e.push(p.advance);return $e}.call(this),l=this.widths[this.widths.length-1],R=[],a=O=0;0<=A?O<A:O>A;a=0<=A?++O:--O)R.push(this.widths.push(l));return R},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}(),wg=[].slice,xg=function(){function n(){return n.__super__.constructor.apply(this,arguments)}return gu(n,LA),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(o){var a,l,A,p,O,E,R,V,le,Re;return o in this.cache?this.cache[o]:(p=this.file.loca,a=this.file.contents,l=p.indexOf(o),(A=p.lengthOf(o))===0?this.cache[o]=null:(a.pos=this.offset+l,O=(E=new lh(a.read(A))).readShort(),V=E.readShort(),Re=E.readShort(),R=E.readShort(),le=E.readShort(),this.cache[o]=O===-1?new dm(E,V,Re,R,le):new Kh(E,O,V,Re,R,le),this.cache[o]))},n.prototype.encode=function(o,a,l){var A,p,O,E,R;for(O=[],p=[],E=0,R=a.length;E<R;E++)A=o[a[E]],p.push(O.length),A&&(O=O.concat(A.encode(l)));return p.push(O.length),{table:O,offsets:p}},n}(),Kh=function(){function n(o,a,l,A,p,O){this.raw=o,this.numberOfContours=a,this.xMin=l,this.yMin=A,this.xMax=p,this.yMax=O,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n}(),dm=function(){function n(o,a,l,A,p){var O,E;for(this.raw=o,this.xMin=a,this.yMin=l,this.xMax=A,this.yMax=p,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],O=this.raw;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 lh(wg.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 gu(n,LA),n.prototype.tag="loca",n.prototype.parse=function(o){var a,l;return o.pos=this.offset,a=this.file.head.indexToLocFormat,this.offsets=a===0?function(){var A,p;for(p=[],l=0,A=this.length;l<A;l+=2)p.push(2*o.readUInt16());return p}.call(this):function(){var A,p;for(p=[],l=0,A=this.length;l<A;l+=4)p.push(o.readUInt32());return p}.call(this)},n.prototype.indexOf=function(o){return this.offsets[o]},n.prototype.lengthOf=function(o){return this.offsets[o+1]-this.offsets[o]},n.prototype.encode=function(o,a){for(var l=new Uint32Array(this.offsets.length),A=0,p=0,O=0;O<l.length;++O)if(l[O]=A,p<a.length&&a[p]==O){++p,l[O]=A;var E=this.offsets[O],R=this.offsets[O+1]-E;R>0&&(A+=R)}for(var V=new Array(4*l.length),le=0;le<l.length;++le)V[4*le+3]=255&l[le],V[4*le+2]=(65280&l[le])>>8,V[4*le+1]=(16711680&l[le])>>16,V[4*le]=(4278190080&l[le])>>24;return V},n}(),Cg=function(){function n(o){this.font=o,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var o,a,l,A,p;for(a in A=this.font.cmap.tables[0].codeMap,o={},p=this.subset)l=p[a],o[a]=A[l];return o},n.prototype.glyphsFor=function(o){var a,l,A,p,O,E,R;for(A={},O=0,E=o.length;O<E;O++)A[p=o[O]]=this.font.glyf.glyphFor(p);for(p in a=[],A)(l=A[p])!=null&&l.compound&&a.push.apply(a,l.glyphIDs);if(a.length>0)for(p in R=this.glyphsFor(a))l=R[p],A[p]=l;return A},n.prototype.encode=function(o,a){var l,A,p,O,E,R,V,le,Re,$e,oe,gt,dt,yt,lt;for(A in l=Am.encode(this.generateCmap(),"unicode"),O=this.glyphsFor(o),oe={0:0},lt=l.charMap)oe[(R=lt[A]).old]=R.new;for(gt in $e=l.maxGlyphID,O)gt in oe||(oe[gt]=$e++);return le=function(Xt){var Qt,It;for(Qt in It={},Xt)It[Xt[Qt]]=Qt;return It}(oe),Re=Object.keys(le).sort(function(Xt,Qt){return Xt-Qt}),dt=function(){var Xt,Qt,It;for(It=[],Xt=0,Qt=Re.length;Xt<Qt;Xt++)E=Re[Xt],It.push(le[E]);return It}(),p=this.font.glyf.encode(O,dt,oe),V=this.font.loca.encode(p.offsets,dt),yt={cmap:this.font.cmap.raw(),glyf:p.table,loca:V,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&&(yt["OS/2"]=this.font.os2.raw()),this.font.directory.encode(yt)},n}();Aa.API.PDFObject=function(){var n;function o(){}return n=function(a,l){return(Array(l+1).join("0")+a).slice(-l)},o.convert=function(a){var l,A,p,O;if(Array.isArray(a))return"["+function(){var E,R,V;for(V=[],E=0,R=a.length;E<R;E++)l=a[E],V.push(o.convert(l));return V}().join(" ")+"]";if(typeof a=="string")return"/"+a;if(a!=null&&a.isString)return"("+a+")";if(a instanceof Date)return"(D:"+n(a.getUTCFullYear(),4)+n(a.getUTCMonth(),2)+n(a.getUTCDate(),2)+n(a.getUTCHours(),2)+n(a.getUTCMinutes(),2)+n(a.getUTCSeconds(),2)+"Z)";if({}.toString.call(a)==="[object Object]"){for(A in p=["<<"],a)O=a[A],p.push("/"+A+" "+o.convert(O));return p.push(">>"),p.join(`
|
|
|
`)}return""+a},o}()},86129:function(dn,Ut,x){var ve=x(19208).lW,ue=x(97671);(function(T){dn.exports=T()})(function(){return function T(De,re,W){function S(g,$){if(!re[g]){if(!De[g]){var _=void 0;if(!$&&_)return require(g,!0);if(m)return m(g,!0);var F=new Error("Cannot find module '"+g+"'");throw F.code="MODULE_NOT_FOUND",F}var P=re[g]={exports:{}};De[g][0].call(P.exports,function(U){var M=De[g][1][U];return S(M||U)},P,P.exports,T,De,re,W)}return re[g].exports}for(var m=void 0,I=0;I<W.length;I++)S(W[I]);return S}({1:[function(T,De,re){"use strict";var W=T("./utils"),S=T("./support"),m="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";re.encode=function(I){for(var g,$,_,F,P,U,M,Y=[],Q=0,ae=I.length,ie=ae,J=W.getTypeOf(I)!=="string";Q<I.length;)ie=ae-Q,_=J?(g=I[Q++],$=Q<ae?I[Q++]:0,Q<ae?I[Q++]:0):(g=I.charCodeAt(Q++),$=Q<ae?I.charCodeAt(Q++):0,Q<ae?I.charCodeAt(Q++):0),F=g>>2,P=(3&g)<<4|$>>4,U=1<ie?(15&$)<<2|_>>6:64,M=2<ie?63&_:64,Y.push(m.charAt(F)+m.charAt(P)+m.charAt(U)+m.charAt(M));return Y.join("")},re.decode=function(I){var g,$,_,F,P,U,M=0,Y=0,Q="data:";if(I.substr(0,Q.length)===Q)throw new Error("Invalid base64 input, it looks like a data url.");var ae,ie=3*(I=I.replace(/[^A-Za-z0-9+/=]/g,"")).length/4;if(I.charAt(I.length-1)===m.charAt(64)&&ie--,I.charAt(I.length-2)===m.charAt(64)&&ie--,ie%1!=0)throw new Error("Invalid base64 input, bad content length.");for(ae=S.uint8array?new Uint8Array(0|ie):new Array(0|ie);M<I.length;)g=m.indexOf(I.charAt(M++))<<2|(F=m.indexOf(I.charAt(M++)))>>4,$=(15&F)<<4|(P=m.indexOf(I.charAt(M++)))>>2,_=(3&P)<<6|(U=m.indexOf(I.charAt(M++))),ae[Y++]=g,P!==64&&(ae[Y++]=$),U!==64&&(ae[Y++]=_);return ae}},{"./support":30,"./utils":32}],2:[function(T,De,re){"use strict";var W=T("./external"),S=T("./stream/DataWorker"),m=T("./stream/Crc32Probe"),I=T("./stream/DataLengthProbe");function g($,_,F,P,U){this.compressedSize=$,this.uncompressedSize=_,this.crc32=F,this.compression=P,this.compressedContent=U}g.prototype={getContentWorker:function(){var $=new S(W.Promise.resolve(this.compressedContent)).pipe(this.compression.uncompressWorker()).pipe(new I("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)}},g.createWorkerFrom=function($,_,F){return $.pipe(new m).pipe(new I("uncompressedSize")).pipe(_.compressWorker(F)).pipe(new I("compressedSize")).withStreamInfo("compression",_)},De.exports=g},{"./external":6,"./stream/Crc32Probe":25,"./stream/DataLengthProbe":26,"./stream/DataWorker":27}],3:[function(T,De,re){"use strict";var W=T("./stream/GenericWorker");re.STORE={magic:"\0\0",compressWorker:function(){return new W("STORE compression")},uncompressWorker:function(){return new W("STORE decompression")}},re.DEFLATE=T("./flate")},{"./flate":7,"./stream/GenericWorker":28}],4:[function(T,De,re){"use strict";var W=T("./utils"),S=function(){for(var m,I=[],g=0;g<256;g++){m=g;for(var $=0;$<8;$++)m=1&m?3988292384^m>>>1:m>>>1;I[g]=m}return I}();De.exports=function(m,I){return m!==void 0&&m.length?W.getTypeOf(m)!=="string"?function(g,$,_,F){var P=S,U=F+_;g^=-1;for(var M=F;M<U;M++)g=g>>>8^P[255&(g^$[M])];return-1^g}(0|I,m,m.length,0):function(g,$,_,F){var P=S,U=F+_;g^=-1;for(var M=F;M<U;M++)g=g>>>8^P[255&(g^$.charCodeAt(M))];return-1^g}(0|I,m,m.length,0):0}},{"./utils":32}],5:[function(T,De,re){"use strict";re.base64=!1,re.binary=!1,re.dir=!1,re.createFolders=!0,re.date=null,re.compression=null,re.compressionOptions=null,re.comment=null,re.unixPermissions=null,re.dosPermissions=null},{}],6:[function(T,De,re){"use strict";var W=null;W=typeof Promise!="undefined"?Promise:T("lie"),De.exports={Promise:W}},{lie:37}],7:[function(T,De,re){"use strict";var W=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Uint32Array!="undefined",S=T("pako"),m=T("./utils"),I=T("./stream/GenericWorker"),g=W?"uint8array":"array";function $(_,F){I.call(this,"FlateWorker/"+_),this._pako=null,this._pakoAction=_,this._pakoOptions=F,this.meta={}}re.magic="\b\0",m.inherits($,I),$.prototype.processChunk=function(_){this.meta=_.meta,this._pako===null&&this._createPako(),this._pako.push(m.transformTo(g,_.data),!1)},$.prototype.flush=function(){I.prototype.flush.call(this),this._pako===null&&this._createPako(),this._pako.push([],!0)},$.prototype.cleanUp=function(){I.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})}},re.compressWorker=function(_){return new $("Deflate",_)},re.uncompressWorker=function(){return new $("Inflate",{})}},{"./stream/GenericWorker":28,"./utils":32,pako:38}],8:[function(T,De,re){"use strict";function W(P,U){var M,Y="";for(M=0;M<U;M++)Y+=String.fromCharCode(255&P),P>>>=8;return Y}function S(P,U,M,Y,Q,ae){var ie,J,G=P.file,j=P.compression,se=ae!==g.utf8encode,he=m.transformTo("string",ae(G.name)),Ne=m.transformTo("string",g.utf8encode(G.name)),Be=G.comment,Pe=m.transformTo("string",ae(Be)),q=m.transformTo("string",g.utf8encode(Be)),Ae=Ne.length!==G.name.length,D=q.length!==Be.length,Je="",Fe="",Ce="",Ue=G.dir,me=G.date,Me={crc32:0,compressedSize:0,uncompressedSize:0};U&&!M||(Me.crc32=P.crc32,Me.compressedSize=P.compressedSize,Me.uncompressedSize=P.uncompressedSize);var fe=0;U&&(fe|=8),se||!Ae&&!D||(fe|=2048);var Ee=0,rt=0;Ue&&(Ee|=16),Q==="UNIX"?(rt=798,Ee|=function(We,et){var _t=We;return We||(_t=et?16893:33204),(65535&_t)<<16}(G.unixPermissions,Ue)):(rt=20,Ee|=function(We){return 63&(We||0)}(G.dosPermissions)),ie=me.getUTCHours(),ie<<=6,ie|=me.getUTCMinutes(),ie<<=5,ie|=me.getUTCSeconds()/2,J=me.getUTCFullYear()-1980,J<<=4,J|=me.getUTCMonth()+1,J<<=5,J|=me.getUTCDate(),Ae&&(Fe=W(1,1)+W($(he),4)+Ne,Je+="up"+W(Fe.length,2)+Fe),D&&(Ce=W(1,1)+W($(Pe),4)+q,Je+="uc"+W(Ce.length,2)+Ce);var ot="";return ot+=`
|
|
|
\0`,ot+=W(fe,2),ot+=j.magic,ot+=W(ie,2),ot+=W(J,2),ot+=W(Me.crc32,4),ot+=W(Me.compressedSize,4),ot+=W(Me.uncompressedSize,4),ot+=W(he.length,2),ot+=W(Je.length,2),{fileRecord:_.LOCAL_FILE_HEADER+ot+he+Je,dirRecord:_.CENTRAL_FILE_HEADER+W(rt,2)+ot+W(Pe.length,2)+"\0\0\0\0"+W(Ee,4)+W(Y,4)+he+Je+Pe}}var m=T("../utils"),I=T("../stream/GenericWorker"),g=T("../utf8"),$=T("../crc32"),_=T("../signature");function F(P,U,M,Y){I.call(this,"ZipFileWorker"),this.bytesWritten=0,this.zipComment=U,this.zipPlatform=M,this.encodeFileName=Y,this.streamFiles=P,this.accumulate=!1,this.contentBuffer=[],this.dirRecords=[],this.currentSourceOffset=0,this.entriesCount=0,this.currentFile=null,this._sources=[]}m.inherits(F,I),F.prototype.push=function(P){var U=P.meta.percent||0,M=this.entriesCount,Y=this._sources.length;this.accumulate?this.contentBuffer.push(P):(this.bytesWritten+=P.data.length,I.prototype.push.call(this,{data:P.data,meta:{currentFile:this.currentFile,percent:M?(U+100*(M-Y-1))/M:100}}))},F.prototype.openedSource=function(P){this.currentSourceOffset=this.bytesWritten,this.currentFile=P.file.name;var U=this.streamFiles&&!P.file.dir;if(U){var M=S(P,U,!1,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);this.push({data:M.fileRecord,meta:{percent:0}})}else this.accumulate=!0},F.prototype.closedSource=function(P){this.accumulate=!1;var U=this.streamFiles&&!P.file.dir,M=S(P,U,!0,this.currentSourceOffset,this.zipPlatform,this.encodeFileName);if(this.dirRecords.push(M.dirRecord),U)this.push({data:function(Y){return _.DATA_DESCRIPTOR+W(Y.crc32,4)+W(Y.compressedSize,4)+W(Y.uncompressedSize,4)}(P),meta:{percent:100}});else for(this.push({data:M.fileRecord,meta:{percent:0}});this.contentBuffer.length;)this.push(this.contentBuffer.shift());this.currentFile=null},F.prototype.flush=function(){for(var P=this.bytesWritten,U=0;U<this.dirRecords.length;U++)this.push({data:this.dirRecords[U],meta:{percent:100}});var M=this.bytesWritten-P,Y=function(Q,ae,ie,J,G){var j=m.transformTo("string",G(J));return _.CENTRAL_DIRECTORY_END+"\0\0\0\0"+W(Q,2)+W(Q,2)+W(ae,4)+W(ie,4)+W(j.length,2)+j}(this.dirRecords.length,M,P,this.zipComment,this.encodeFileName);this.push({data:Y,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(P){this._sources.push(P);var U=this;return P.on("data",function(M){U.processChunk(M)}),P.on("end",function(){U.closedSource(U.previous.streamInfo),U._sources.length?U.prepareNextSource():U.end()}),P.on("error",function(M){U.error(M)}),this},F.prototype.resume=function(){return!!I.prototype.resume.call(this)&&(!this.previous&&this._sources.length?(this.prepareNextSource(),!0):this.previous||this._sources.length||this.generatedError?void 0:(this.end(),!0))},F.prototype.error=function(P){var U=this._sources;if(!I.prototype.error.call(this,P))return!1;for(var M=0;M<U.length;M++)try{U[M].error(P)}catch(Y){}return!0},F.prototype.lock=function(){I.prototype.lock.call(this);for(var P=this._sources,U=0;U<P.length;U++)P[U].lock()},De.exports=F},{"../crc32":4,"../signature":23,"../stream/GenericWorker":28,"../utf8":31,"../utils":32}],9:[function(T,De,re){"use strict";var W=T("../compressions"),S=T("./ZipFileWorker");re.generateWorker=function(m,I,g){var $=new S(I.streamFiles,g,I.platform,I.encodeFileName),_=0;try{m.forEach(function(F,P){_++;var U=function(ae,ie){var J=ae||ie,G=W[J];if(!G)throw new Error(J+" is not a valid compression method !");return G}(P.options.compression,I.compression),M=P.options.compressionOptions||I.compressionOptions||{},Y=P.dir,Q=P.date;P._compressWorker(U,M).withStreamInfo("file",{name:F,dir:Y,date:Q,comment:P.comment||"",unixPermissions:P.unixPermissions,dosPermissions:P.dosPermissions}).pipe($)}),$.entriesCount=_}catch(F){$.error(F)}return $}},{"../compressions":3,"./ZipFileWorker":8}],10:[function(T,De,re){"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 m in this)typeof this[m]!="function"&&(S[m]=this[m]);return S}}(W.prototype=T("./object")).loadAsync=T("./load"),W.support=T("./support"),W.defaults=T("./defaults"),W.version="3.10.1",W.loadAsync=function(S,m){return new W().loadAsync(S,m)},W.external=T("./external"),De.exports=W},{"./defaults":5,"./external":6,"./load":11,"./object":15,"./support":30}],11:[function(T,De,re){"use strict";var W=T("./utils"),S=T("./external"),m=T("./utf8"),I=T("./zipEntries"),g=T("./stream/Crc32Probe"),$=T("./nodejsUtils");function _(F){return new S.Promise(function(P,U){var M=F.decompressed.getContentWorker().pipe(new g);M.on("error",function(Y){U(Y)}).on("end",function(){M.streamInfo.crc32!==F.decompressed.crc32?U(new Error("Corrupted zip : CRC32 mismatch")):P()}).resume()})}De.exports=function(F,P){var U=this;return P=W.extend(P||{},{base64:!1,checkCRC32:!1,optimizedBinaryString:!1,createFolders:!1,decodeFileName:m.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,P.optimizedBinaryString,P.base64).then(function(M){var Y=new I(P);return Y.load(M),Y}).then(function(M){var Y=[S.Promise.resolve(M)],Q=M.files;if(P.checkCRC32)for(var ae=0;ae<Q.length;ae++)Y.push(_(Q[ae]));return S.Promise.all(Y)}).then(function(M){for(var Y=M.shift(),Q=Y.files,ae=0;ae<Q.length;ae++){var ie=Q[ae],J=ie.fileNameStr,G=W.resolve(ie.fileNameStr);U.file(G,ie.decompressed,{binary:!0,optimizedBinaryString:!0,date:ie.date,dir:ie.dir,comment:ie.fileCommentStr.length?ie.fileCommentStr:null,unixPermissions:ie.unixPermissions,dosPermissions:ie.dosPermissions,createFolders:P.createFolders}),ie.dir||(U.file(G).unsafeOriginalName=J)}return Y.zipComment.length&&(U.comment=Y.zipComment),U})}},{"./external":6,"./nodejsUtils":14,"./stream/Crc32Probe":25,"./utf8":31,"./utils":32,"./zipEntries":33}],12:[function(T,De,re){"use strict";var W=T("../utils"),S=T("../stream/GenericWorker");function m(I,g){S.call(this,"Nodejs stream input adapter for "+I),this._upstreamEnded=!1,this._bindStream(g)}W.inherits(m,S),m.prototype._bindStream=function(I){var g=this;(this._stream=I).pause(),I.on("data",function($){g.push({data:$,meta:{percent:0}})}).on("error",function($){g.isPaused?this.generatedError=$:g.error($)}).on("end",function(){g.isPaused?g._upstreamEnded=!0:g.end()})},m.prototype.pause=function(){return!!S.prototype.pause.call(this)&&(this._stream.pause(),!0)},m.prototype.resume=function(){return!!S.prototype.resume.call(this)&&(this._upstreamEnded?this.end():this._stream.resume(),!0)},De.exports=m},{"../stream/GenericWorker":28,"../utils":32}],13:[function(T,De,re){"use strict";var W=T("readable-stream").Readable;function S(m,I,g){W.call(this,I),this._helper=m;var $=this;m.on("data",function(_,F){$.push(_)||$._helper.pause(),g&&g(F)}).on("error",function(_){$.emit("error",_)}).on("end",function(){$.push(null)})}T("../utils").inherits(S,W),S.prototype._read=function(){this._helper.resume()},De.exports=S},{"../utils":32,"readable-stream":16}],14:[function(T,De,re){"use strict";De.exports={isNode:typeof ve!="undefined",newBufferFrom:function(W,S){if(ve.from&&ve.from!==Uint8Array.from)return ve.from(W,S);if(typeof W=="number")throw new Error('The "data" argument must not be a number');return new ve(W,S)},allocBuffer:function(W){if(ve.alloc)return ve.alloc(W);var S=new ve(W);return S.fill(0),S},isBuffer:function(W){return ve.isBuffer(W)},isStream:function(W){return W&&typeof W.on=="function"&&typeof W.pause=="function"&&typeof W.resume=="function"}}},{}],15:[function(T,De,re){"use strict";function W(G,j,se){var he,Ne=m.getTypeOf(j),Be=m.extend(se||{},$);Be.date=Be.date||new Date,Be.compression!==null&&(Be.compression=Be.compression.toUpperCase()),typeof Be.unixPermissions=="string"&&(Be.unixPermissions=parseInt(Be.unixPermissions,8)),Be.unixPermissions&&16384&Be.unixPermissions&&(Be.dir=!0),Be.dosPermissions&&16&Be.dosPermissions&&(Be.dir=!0),Be.dir&&(G=Q(G)),Be.createFolders&&(he=Y(G))&&ae.call(this,he,!0);var Pe=Ne==="string"&&Be.binary===!1&&Be.base64===!1;se&&se.binary!==void 0||(Be.binary=!Pe),(j instanceof _&&j.uncompressedSize===0||Be.dir||!j||j.length===0)&&(Be.base64=!1,Be.binary=!0,j="",Be.compression="STORE",Ne="string");var q=null;q=j instanceof _||j instanceof I?j:U.isNode&&U.isStream(j)?new M(G,j):m.prepareContent(G,j,Be.binary,Be.optimizedBinaryString,Be.base64);var Ae=new F(G,q,Be);this.files[G]=Ae}var S=T("./utf8"),m=T("./utils"),I=T("./stream/GenericWorker"),g=T("./stream/StreamHelper"),$=T("./defaults"),_=T("./compressedObject"),F=T("./zipObject"),P=T("./generate"),U=T("./nodejsUtils"),M=T("./nodejs/NodejsStreamInputAdapter"),Y=function(G){G.slice(-1)==="/"&&(G=G.substring(0,G.length-1));var j=G.lastIndexOf("/");return 0<j?G.substring(0,j):""},Q=function(G){return G.slice(-1)!=="/"&&(G+="/"),G},ae=function(G,j){return j=j!==void 0?j:$.createFolders,G=Q(G),this.files[G]||W.call(this,G,null,{dir:!0,createFolders:j}),this.files[G]};function ie(G){return Object.prototype.toString.call(G)==="[object RegExp]"}var J={load:function(){throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.")},forEach:function(G){var j,se,he;for(j in this.files)he=this.files[j],(se=j.slice(this.root.length,j.length))&&j.slice(0,this.root.length)===this.root&&G(se,he)},filter:function(G){var j=[];return this.forEach(function(se,he){G(se,he)&&j.push(he)}),j},file:function(G,j,se){if(arguments.length!==1)return G=this.root+G,W.call(this,G,j,se),this;if(ie(G)){var he=G;return this.filter(function(Be,Pe){return!Pe.dir&&he.test(Be)})}var Ne=this.files[this.root+G];return Ne&&!Ne.dir?Ne:null},folder:function(G){if(!G)return this;if(ie(G))return this.filter(function(Ne,Be){return Be.dir&&G.test(Ne)});var j=this.root+G,se=ae.call(this,j),he=this.clone();return he.root=se.name,he},remove:function(G){G=this.root+G;var j=this.files[G];if(j||(G.slice(-1)!=="/"&&(G+="/"),j=this.files[G]),j&&!j.dir)delete this.files[G];else for(var se=this.filter(function(Ne,Be){return Be.name.slice(0,G.length)===G}),he=0;he<se.length;he++)delete this.files[se[he].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 j,se={};try{if((se=m.extend(G||{},{streamFiles:!1,compression:"STORE",compressionOptions:null,type:"",platform:"DOS",comment:null,mimeType:"application/zip",encodeFileName:S.utf8encode})).type=se.type.toLowerCase(),se.compression=se.compression.toUpperCase(),se.type==="binarystring"&&(se.type="string"),!se.type)throw new Error("No output type specified.");m.checkSupport(se.type),se.platform!=="darwin"&&se.platform!=="freebsd"&&se.platform!=="linux"&&se.platform!=="sunos"||(se.platform="UNIX"),se.platform==="win32"&&(se.platform="DOS");var he=se.comment||this.comment||"";j=P.generateWorker(this,se,he)}catch(Ne){(j=new I("error")).error(Ne)}return new g(j,se.type||"string",se.mimeType)},generateAsync:function(G,j){return this.generateInternalStream(G).accumulate(j)},generateNodeStream:function(G,j){return(G=G||{}).type||(G.type="nodebuffer"),this.generateInternalStream(G).toNodejsStream(j)}};De.exports=J},{"./compressedObject":2,"./defaults":5,"./generate":9,"./nodejs/NodejsStreamInputAdapter":12,"./nodejsUtils":14,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31,"./utils":32,"./zipObject":35}],16:[function(T,De,re){"use strict";De.exports=T("stream")},{stream:void 0}],17:[function(T,De,re){"use strict";var W=T("./DataReader");function S(m){W.call(this,m);for(var I=0;I<this.data.length;I++)m[I]=255&m[I]}T("../utils").inherits(S,W),S.prototype.byteAt=function(m){return this.data[this.zero+m]},S.prototype.lastIndexOfSignature=function(m){for(var I=m.charCodeAt(0),g=m.charCodeAt(1),$=m.charCodeAt(2),_=m.charCodeAt(3),F=this.length-4;0<=F;--F)if(this.data[F]===I&&this.data[F+1]===g&&this.data[F+2]===$&&this.data[F+3]===_)return F-this.zero;return-1},S.prototype.readAndCheckSignature=function(m){var I=m.charCodeAt(0),g=m.charCodeAt(1),$=m.charCodeAt(2),_=m.charCodeAt(3),F=this.readData(4);return I===F[0]&&g===F[1]&&$===F[2]&&_===F[3]},S.prototype.readData=function(m){if(this.checkOffset(m),m===0)return[];var I=this.data.slice(this.zero+this.index,this.zero+this.index+m);return this.index+=m,I},De.exports=S},{"../utils":32,"./DataReader":18}],18:[function(T,De,re){"use strict";var W=T("../utils");function S(m){this.data=m,this.length=m.length,this.index=0,this.zero=0}S.prototype={checkOffset:function(m){this.checkIndex(this.index+m)},checkIndex:function(m){if(this.length<this.zero+m||m<0)throw new Error("End of data reached (data length = "+this.length+", asked index = "+m+"). Corrupted zip ?")},setIndex:function(m){this.checkIndex(m),this.index=m},skip:function(m){this.setIndex(this.index+m)},byteAt:function(){},readInt:function(m){var I,g=0;for(this.checkOffset(m),I=this.index+m-1;I>=this.index;I--)g=(g<<8)+this.byteAt(I);return this.index+=m,g},readString:function(m){return W.transformTo("string",this.readData(m))},readData:function(){},lastIndexOfSignature:function(){},readAndCheckSignature:function(){},readDate:function(){var m=this.readInt(4);return new Date(Date.UTC(1980+(m>>25&127),(m>>21&15)-1,m>>16&31,m>>11&31,m>>5&63,(31&m)<<1))}},De.exports=S},{"../utils":32}],19:[function(T,De,re){"use strict";var W=T("./Uint8ArrayReader");function S(m){W.call(this,m)}T("../utils").inherits(S,W),S.prototype.readData=function(m){this.checkOffset(m);var I=this.data.slice(this.zero+this.index,this.zero+this.index+m);return this.index+=m,I},De.exports=S},{"../utils":32,"./Uint8ArrayReader":21}],20:[function(T,De,re){"use strict";var W=T("./DataReader");function S(m){W.call(this,m)}T("../utils").inherits(S,W),S.prototype.byteAt=function(m){return this.data.charCodeAt(this.zero+m)},S.prototype.lastIndexOfSignature=function(m){return this.data.lastIndexOf(m)-this.zero},S.prototype.readAndCheckSignature=function(m){return m===this.readData(4)},S.prototype.readData=function(m){this.checkOffset(m);var I=this.data.slice(this.zero+this.index,this.zero+this.index+m);return this.index+=m,I},De.exports=S},{"../utils":32,"./DataReader":18}],21:[function(T,De,re){"use strict";var W=T("./ArrayReader");function S(m){W.call(this,m)}T("../utils").inherits(S,W),S.prototype.readData=function(m){if(this.checkOffset(m),m===0)return new Uint8Array(0);var I=this.data.subarray(this.zero+this.index,this.zero+this.index+m);return this.index+=m,I},De.exports=S},{"../utils":32,"./ArrayReader":17}],22:[function(T,De,re){"use strict";var W=T("../utils"),S=T("../support"),m=T("./ArrayReader"),I=T("./StringReader"),g=T("./NodeBufferReader"),$=T("./Uint8ArrayReader");De.exports=function(_){var F=W.getTypeOf(_);return W.checkSupport(F),F!=="string"||S.uint8array?F==="nodebuffer"?new g(_):S.uint8array?new $(W.transformTo("uint8array",_)):new m(W.transformTo("array",_)):new I(_)}},{"../support":30,"../utils":32,"./ArrayReader":17,"./NodeBufferReader":19,"./StringReader":20,"./Uint8ArrayReader":21}],23:[function(T,De,re){"use strict";re.LOCAL_FILE_HEADER="PK",re.CENTRAL_FILE_HEADER="PK",re.CENTRAL_DIRECTORY_END="PK",re.ZIP64_CENTRAL_DIRECTORY_LOCATOR="PK\x07",re.ZIP64_CENTRAL_DIRECTORY_END="PK",re.DATA_DESCRIPTOR="PK\x07\b"},{}],24:[function(T,De,re){"use strict";var W=T("./GenericWorker"),S=T("../utils");function m(I){W.call(this,"ConvertWorker to "+I),this.destType=I}S.inherits(m,W),m.prototype.processChunk=function(I){this.push({data:S.transformTo(this.destType,I.data),meta:I.meta})},De.exports=m},{"../utils":32,"./GenericWorker":28}],25:[function(T,De,re){"use strict";var W=T("./GenericWorker"),S=T("../crc32");function m(){W.call(this,"Crc32Probe"),this.withStreamInfo("crc32",0)}T("../utils").inherits(m,W),m.prototype.processChunk=function(I){this.streamInfo.crc32=S(I.data,this.streamInfo.crc32||0),this.push(I)},De.exports=m},{"../crc32":4,"../utils":32,"./GenericWorker":28}],26:[function(T,De,re){"use strict";var W=T("../utils"),S=T("./GenericWorker");function m(I){S.call(this,"DataLengthProbe for "+I),this.propName=I,this.withStreamInfo(I,0)}W.inherits(m,S),m.prototype.processChunk=function(I){if(I){var g=this.streamInfo[this.propName]||0;this.streamInfo[this.propName]=g+I.data.length}S.prototype.processChunk.call(this,I)},De.exports=m},{"../utils":32,"./GenericWorker":28}],27:[function(T,De,re){"use strict";var W=T("../utils"),S=T("./GenericWorker");function m(I){S.call(this,"DataWorker");var g=this;this.dataIsReady=!1,this.index=0,this.max=0,this.data=null,this.type="",this._tickScheduled=!1,I.then(function($){g.dataIsReady=!0,g.data=$,g.max=$&&$.length||0,g.type=W.getTypeOf($),g.isPaused||g._tickAndRepeat()},function($){g.error($)})}W.inherits(m,S),m.prototype.cleanUp=function(){S.prototype.cleanUp.call(this),this.data=null},m.prototype.resume=function(){return!!S.prototype.resume.call(this)&&(!this._tickScheduled&&this.dataIsReady&&(this._tickScheduled=!0,W.delay(this._tickAndRepeat,[],this)),!0)},m.prototype._tickAndRepeat=function(){this._tickScheduled=!1,this.isPaused||this.isFinished||(this._tick(),this.isFinished||(W.delay(this._tickAndRepeat,[],this),this._tickScheduled=!0))},m.prototype._tick=function(){if(this.isPaused||this.isFinished)return!1;var I=null,g=Math.min(this.max,this.index+16384);if(this.index>=this.max)return this.end();switch(this.type){case"string":I=this.data.substring(this.index,g);break;case"uint8array":I=this.data.subarray(this.index,g);break;case"array":case"nodebuffer":I=this.data.slice(this.index,g)}return this.index=g,this.push({data:I,meta:{percent:this.max?this.index/this.max*100:0}})},De.exports=m},{"../utils":32,"./GenericWorker":28}],28:[function(T,De,re){"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,m){return this._listeners[S].push(m),this},cleanUp:function(){this.streamInfo=this.generatedError=this.extraStreamInfo=null,this._listeners=[]},emit:function(S,m){if(this._listeners[S])for(var I=0;I<this._listeners[S].length;I++)this._listeners[S][I].call(this,m)},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 m=this;return S.on("data",function(I){m.processChunk(I)}),S.on("end",function(){m.end()}),S.on("error",function(I){m.error(I)}),this},pause:function(){return!this.isPaused&&!this.isFinished&&(this.isPaused=!0,this.previous&&this.previous.pause(),!0)},resume:function(){if(!this.isPaused||this.isFinished)return!1;var S=this.isPaused=!1;return this.generatedError&&(this.error(this.generatedError),S=!0),this.previous&&this.previous.resume(),!S},flush:function(){},processChunk:function(S){this.push(S)},withStreamInfo:function(S,m){return this.extraStreamInfo[S]=m,this.mergeStreamInfo(),this},mergeStreamInfo:function(){for(var S in this.extraStreamInfo)Object.prototype.hasOwnProperty.call(this.extraStreamInfo,S)&&(this.streamInfo[S]=this.extraStreamInfo[S])},lock:function(){if(this.isLocked)throw new Error("The stream '"+this+"' has already been used.");this.isLocked=!0,this.previous&&this.previous.lock()},toString:function(){var S="Worker "+this.name;return this.previous?this.previous+" -> "+S:S}},De.exports=W},{}],29:[function(T,De,re){"use strict";var W=T("../utils"),S=T("./ConvertWorker"),m=T("./GenericWorker"),I=T("../base64"),g=T("../support"),$=T("../external"),_=null;if(g.nodestream)try{_=T("../nodejs/NodejsStreamOutputAdapter")}catch(U){}function F(U,M){return new $.Promise(function(Y,Q){var ae=[],ie=U._internalType,J=U._outputType,G=U._mimeType;U.on("data",function(j,se){ae.push(j),M&&M(se)}).on("error",function(j){ae=[],Q(j)}).on("end",function(){try{var j=function(se,he,Ne){switch(se){case"blob":return W.newBlob(W.transformTo("arraybuffer",he),Ne);case"base64":return I.encode(he);default:return W.transformTo(se,he)}}(J,function(se,he){var Ne,Be=0,Pe=null,q=0;for(Ne=0;Ne<he.length;Ne++)q+=he[Ne].length;switch(se){case"string":return he.join("");case"array":return Array.prototype.concat.apply([],he);case"uint8array":for(Pe=new Uint8Array(q),Ne=0;Ne<he.length;Ne++)Pe.set(he[Ne],Be),Be+=he[Ne].length;return Pe;case"nodebuffer":return ve.concat(he);default:throw new Error("concat : unsupported type '"+se+"'")}}(ie,ae),G);Y(j)}catch(se){Q(se)}ae=[]}).resume()})}function P(U,M,Y){var Q=M;switch(M){case"blob":case"arraybuffer":Q="uint8array";break;case"base64":Q="string"}try{this._internalType=Q,this._outputType=M,this._mimeType=Y,W.checkSupport(Q),this._worker=U.pipe(new S(Q)),U.lock()}catch(ae){this._worker=new m("error"),this._worker.error(ae)}}P.prototype={accumulate:function(U){return F(this,U)},on:function(U,M){var Y=this;return U==="data"?this._worker.on(U,function(Q){M.call(Y,Q.data,Q.meta)}):this._worker.on(U,function(){W.delay(M,arguments,Y)}),this},resume:function(){return W.delay(this._worker.resume,[],this._worker),this},pause:function(){return this._worker.pause(),this},toNodejsStream:function(U){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"},U)}},De.exports=P},{"../base64":1,"../external":6,"../nodejs/NodejsStreamOutputAdapter":13,"../support":30,"../utils":32,"./ConvertWorker":24,"./GenericWorker":28}],30:[function(T,De,re){"use strict";if(re.base64=!0,re.array=!0,re.string=!0,re.arraybuffer=typeof ArrayBuffer!="undefined"&&typeof Uint8Array!="undefined",re.nodebuffer=typeof ve!="undefined",re.uint8array=typeof Uint8Array!="undefined",typeof ArrayBuffer=="undefined")re.blob=!1;else{var W=new ArrayBuffer(0);try{re.blob=new Blob([W],{type:"application/zip"}).size===0}catch(m){try{var S=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);S.append(W),re.blob=S.getBlob("application/zip").size===0}catch(I){re.blob=!1}}}try{re.nodestream=!!T("readable-stream").Readable}catch(m){re.nodestream=!1}},{"readable-stream":16}],31:[function(T,De,re){"use strict";for(var W=T("./utils"),S=T("./support"),m=T("./nodejsUtils"),I=T("./stream/GenericWorker"),g=new Array(256),$=0;$<256;$++)g[$]=252<=$?6:248<=$?5:240<=$?4:224<=$?3:192<=$?2:1;g[254]=g[254]=1;function _(){I.call(this,"utf-8 decode"),this.leftOver=null}function F(){I.call(this,"utf-8 encode")}re.utf8encode=function(P){return S.nodebuffer?m.newBufferFrom(P,"utf-8"):function(U){var M,Y,Q,ae,ie,J=U.length,G=0;for(ae=0;ae<J;ae++)(64512&(Y=U.charCodeAt(ae)))==55296&&ae+1<J&&(64512&(Q=U.charCodeAt(ae+1)))==56320&&(Y=65536+(Y-55296<<10)+(Q-56320),ae++),G+=Y<128?1:Y<2048?2:Y<65536?3:4;for(M=S.uint8array?new Uint8Array(G):new Array(G),ae=ie=0;ie<G;ae++)(64512&(Y=U.charCodeAt(ae)))==55296&&ae+1<J&&(64512&(Q=U.charCodeAt(ae+1)))==56320&&(Y=65536+(Y-55296<<10)+(Q-56320),ae++),Y<128?M[ie++]=Y:(Y<2048?M[ie++]=192|Y>>>6:(Y<65536?M[ie++]=224|Y>>>12:(M[ie++]=240|Y>>>18,M[ie++]=128|Y>>>12&63),M[ie++]=128|Y>>>6&63),M[ie++]=128|63&Y);return M}(P)},re.utf8decode=function(P){return S.nodebuffer?W.transformTo("nodebuffer",P).toString("utf-8"):function(U){var M,Y,Q,ae,ie=U.length,J=new Array(2*ie);for(M=Y=0;M<ie;)if((Q=U[M++])<128)J[Y++]=Q;else if(4<(ae=g[Q]))J[Y++]=65533,M+=ae-1;else{for(Q&=ae===2?31:ae===3?15:7;1<ae&&M<ie;)Q=Q<<6|63&U[M++],ae--;1<ae?J[Y++]=65533:Q<65536?J[Y++]=Q:(Q-=65536,J[Y++]=55296|Q>>10&1023,J[Y++]=56320|1023&Q)}return J.length!==Y&&(J.subarray?J=J.subarray(0,Y):J.length=Y),W.applyFromCharCode(J)}(P=W.transformTo(S.uint8array?"uint8array":"array",P))},W.inherits(_,I),_.prototype.processChunk=function(P){var U=W.transformTo(S.uint8array?"uint8array":"array",P.data);if(this.leftOver&&this.leftOver.length){if(S.uint8array){var M=U;(U=new Uint8Array(M.length+this.leftOver.length)).set(this.leftOver,0),U.set(M,this.leftOver.length)}else U=this.leftOver.concat(U);this.leftOver=null}var Y=function(ae,ie){var J;for((ie=ie||ae.length)>ae.length&&(ie=ae.length),J=ie-1;0<=J&&(192&ae[J])==128;)J--;return J<0||J===0?ie:J+g[ae[J]]>ie?J:ie}(U),Q=U;Y!==U.length&&(S.uint8array?(Q=U.subarray(0,Y),this.leftOver=U.subarray(Y,U.length)):(Q=U.slice(0,Y),this.leftOver=U.slice(Y,U.length))),this.push({data:re.utf8decode(Q),meta:P.meta})},_.prototype.flush=function(){this.leftOver&&this.leftOver.length&&(this.push({data:re.utf8decode(this.leftOver),meta:{}}),this.leftOver=null)},re.Utf8DecodeWorker=_,W.inherits(F,I),F.prototype.processChunk=function(P){this.push({data:re.utf8encode(P.data),meta:P.meta})},re.Utf8EncodeWorker=F},{"./nodejsUtils":14,"./stream/GenericWorker":28,"./support":30,"./utils":32}],32:[function(T,De,re){"use strict";var W=T("./support"),S=T("./base64"),m=T("./nodejsUtils"),I=T("./external");function g(M){return M}function $(M,Y){for(var Q=0;Q<M.length;++Q)Y[Q]=255&M.charCodeAt(Q);return Y}T("setimmediate"),re.newBlob=function(M,Y){re.checkSupport("blob");try{return new Blob([M],{type:Y})}catch(ae){try{var Q=new(self.BlobBuilder||self.WebKitBlobBuilder||self.MozBlobBuilder||self.MSBlobBuilder);return Q.append(M),Q.getBlob(Y)}catch(ie){throw new Error("Bug : can't construct the Blob.")}}};var _={stringifyByChunk:function(M,Y,Q){var ae=[],ie=0,J=M.length;if(J<=Q)return String.fromCharCode.apply(null,M);for(;ie<J;)Y==="array"||Y==="nodebuffer"?ae.push(String.fromCharCode.apply(null,M.slice(ie,Math.min(ie+Q,J)))):ae.push(String.fromCharCode.apply(null,M.subarray(ie,Math.min(ie+Q,J)))),ie+=Q;return ae.join("")},stringifyByChar:function(M){for(var Y="",Q=0;Q<M.length;Q++)Y+=String.fromCharCode(M[Q]);return Y},applyCanBeUsed:{uint8array:function(){try{return W.uint8array&&String.fromCharCode.apply(null,new Uint8Array(1)).length===1}catch(M){return!1}}(),nodebuffer:function(){try{return W.nodebuffer&&String.fromCharCode.apply(null,m.allocBuffer(1)).length===1}catch(M){return!1}}()}};function F(M){var Y=65536,Q=re.getTypeOf(M),ae=!0;if(Q==="uint8array"?ae=_.applyCanBeUsed.uint8array:Q==="nodebuffer"&&(ae=_.applyCanBeUsed.nodebuffer),ae)for(;1<Y;)try{return _.stringifyByChunk(M,Q,Y)}catch(ie){Y=Math.floor(Y/2)}return _.stringifyByChar(M)}function P(M,Y){for(var Q=0;Q<M.length;Q++)Y[Q]=M[Q];return Y}re.applyFromCharCode=F;var U={};U.string={string:g,array:function(M){return $(M,new Array(M.length))},arraybuffer:function(M){return U.string.uint8array(M).buffer},uint8array:function(M){return $(M,new Uint8Array(M.length))},nodebuffer:function(M){return $(M,m.allocBuffer(M.length))}},U.array={string:F,array:g,arraybuffer:function(M){return new Uint8Array(M).buffer},uint8array:function(M){return new Uint8Array(M)},nodebuffer:function(M){return m.newBufferFrom(M)}},U.arraybuffer={string:function(M){return F(new Uint8Array(M))},array:function(M){return P(new Uint8Array(M),new Array(M.byteLength))},arraybuffer:g,uint8array:function(M){return new Uint8Array(M)},nodebuffer:function(M){return m.newBufferFrom(new Uint8Array(M))}},U.uint8array={string:F,array:function(M){return P(M,new Array(M.length))},arraybuffer:function(M){return M.buffer},uint8array:g,nodebuffer:function(M){return m.newBufferFrom(M)}},U.nodebuffer={string:F,array:function(M){return P(M,new Array(M.length))},arraybuffer:function(M){return U.nodebuffer.uint8array(M).buffer},uint8array:function(M){return P(M,new Uint8Array(M.length))},nodebuffer:g},re.transformTo=function(M,Y){if(Y=Y||"",!M)return Y;re.checkSupport(M);var Q=re.getTypeOf(Y);return U[Q][M](Y)},re.resolve=function(M){for(var Y=M.split("/"),Q=[],ae=0;ae<Y.length;ae++){var ie=Y[ae];ie==="."||ie===""&&ae!==0&&ae!==Y.length-1||(ie===".."?Q.pop():Q.push(ie))}return Q.join("/")},re.getTypeOf=function(M){return typeof M=="string"?"string":Object.prototype.toString.call(M)==="[object Array]"?"array":W.nodebuffer&&m.isBuffer(M)?"nodebuffer":W.uint8array&&M instanceof Uint8Array?"uint8array":W.arraybuffer&&M instanceof ArrayBuffer?"arraybuffer":void 0},re.checkSupport=function(M){if(!W[M.toLowerCase()])throw new Error(M+" is not supported by this platform")},re.MAX_VALUE_16BITS=65535,re.MAX_VALUE_32BITS=-1,re.pretty=function(M){var Y,Q,ae="";for(Q=0;Q<(M||"").length;Q++)ae+="\\x"+((Y=M.charCodeAt(Q))<16?"0":"")+Y.toString(16).toUpperCase();return ae},re.delay=function(M,Y,Q){setImmediate(function(){M.apply(Q||null,Y||[])})},re.inherits=function(M,Y){function Q(){}Q.prototype=Y.prototype,M.prototype=new Q},re.extend=function(){var M,Y,Q={};for(M=0;M<arguments.length;M++)for(Y in arguments[M])Object.prototype.hasOwnProperty.call(arguments[M],Y)&&Q[Y]===void 0&&(Q[Y]=arguments[M][Y]);return Q},re.prepareContent=function(M,Y,Q,ae,ie){return I.Promise.resolve(Y).then(function(J){return W.blob&&(J instanceof Blob||["[object File]","[object Blob]"].indexOf(Object.prototype.toString.call(J))!==-1)&&typeof FileReader!="undefined"?new I.Promise(function(G,j){var se=new FileReader;se.onload=function(he){G(he.target.result)},se.onerror=function(he){j(he.target.error)},se.readAsArrayBuffer(J)}):J}).then(function(J){var G=re.getTypeOf(J);return G?(G==="arraybuffer"?J=re.transformTo("uint8array",J):G==="string"&&(ie?J=S.decode(J):Q&&ae!==!0&&(J=function(j){return $(j,W.uint8array?new Uint8Array(j.length):new Array(j.length))}(J))),J):I.Promise.reject(new Error("Can't read the data of '"+M+"'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"))})}},{"./base64":1,"./external":6,"./nodejsUtils":14,"./support":30,setimmediate:54}],33:[function(T,De,re){"use strict";var W=T("./reader/readerFor"),S=T("./utils"),m=T("./signature"),I=T("./zipEntry"),g=T("./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 P=this.reader.index;this.reader.setIndex(_);var U=this.reader.readString(4)===F;return this.reader.setIndex(P),U},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=g.uint8array?"uint8array":"array",P=S.transformTo(F,_);this.zipComment=this.loadOptions.decodeFileName(P)},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,P,U=this.zip64EndOfCentralSize-44;0<U;)_=this.reader.readInt(2),F=this.reader.readInt(4),P=this.reader.readData(F),this.zip64ExtensibleData[_]={id:_,length:F,value:P}},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(m.LOCAL_FILE_HEADER),F.readLocalPart(this.reader),F.handleUTF8(),F.processAttributes()},readCentralDir:function(){var _;for(this.reader.setIndex(this.centralDirOffset);this.reader.readAndCheckSignature(m.CENTRAL_FILE_HEADER);)(_=new I({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(m.CENTRAL_DIRECTORY_END);if(_<0)throw this.isSignature(0,m.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(m.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(m.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(m.ZIP64_CENTRAL_DIRECTORY_LOCATOR),this.readBlockZip64EndOfCentralLocator(),!this.isSignature(this.relativeOffsetEndOfZip64CentralDir,m.ZIP64_CENTRAL_DIRECTORY_END)&&(this.relativeOffsetEndOfZip64CentralDir=this.reader.lastIndexOfSignature(m.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(m.ZIP64_CENTRAL_DIRECTORY_END),this.readBlockZip64EndOfCentral()}var P=this.centralDirOffset+this.centralDirSize;this.zip64&&(P+=20,P+=12+this.zip64EndOfCentralSize);var U=F-P;if(0<U)this.isSignature(F,m.CENTRAL_FILE_HEADER)||(this.reader.zero=U);else if(U<0)throw new Error("Corrupted zip: missing "+Math.abs(U)+" bytes.")},prepareReader:function(_){this.reader=W(_)},load:function(_){this.prepareReader(_),this.readEndOfCentral(),this.readCentralDir(),this.readLocalFiles()}},De.exports=$},{"./reader/readerFor":22,"./signature":23,"./support":30,"./utils":32,"./zipEntry":34}],34:[function(T,De,re){"use strict";var W=T("./reader/readerFor"),S=T("./utils"),m=T("./compressedObject"),I=T("./crc32"),g=T("./utf8"),$=T("./compressions"),_=T("./support");function F(P,U){this.options=P,this.loadOptions=U}F.prototype={isEncrypted:function(){return(1&this.bitFlag)==1},useUTF8:function(){return(2048&this.bitFlag)==2048},readLocalPart:function(P){var U,M;if(P.skip(22),this.fileNameLength=P.readInt(2),M=P.readInt(2),this.fileName=P.readData(this.fileNameLength),P.skip(M),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((U=function(Y){for(var Q in $)if(Object.prototype.hasOwnProperty.call($,Q)&&$[Q].magic===Y)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 m(this.compressedSize,this.uncompressedSize,this.crc32,U,P.readData(this.compressedSize))},readCentralPart:function(P){this.versionMadeBy=P.readInt(2),P.skip(2),this.bitFlag=P.readInt(2),this.compressionMethod=P.readString(2),this.date=P.readDate(),this.crc32=P.readInt(4),this.compressedSize=P.readInt(4),this.uncompressedSize=P.readInt(4);var U=P.readInt(2);if(this.extraFieldsLength=P.readInt(2),this.fileCommentLength=P.readInt(2),this.diskNumberStart=P.readInt(2),this.internalFileAttributes=P.readInt(2),this.externalFileAttributes=P.readInt(4),this.localHeaderOffset=P.readInt(4),this.isEncrypted())throw new Error("Encrypted zip are not supported");P.skip(U),this.readExtraFields(P),this.parseZIP64ExtraField(P),this.fileComment=P.readData(this.fileCommentLength)},processAttributes:function(){this.unixPermissions=null,this.dosPermissions=null;var P=this.versionMadeBy>>8;this.dir=!!(16&this.externalFileAttributes),P==0&&(this.dosPermissions=63&this.externalFileAttributes),P==3&&(this.unixPermissions=this.externalFileAttributes>>16&65535),this.dir||this.fileNameStr.slice(-1)!=="/"||(this.dir=!0)},parseZIP64ExtraField:function(){if(this.extraFields[1]){var P=W(this.extraFields[1].value);this.uncompressedSize===S.MAX_VALUE_32BITS&&(this.uncompressedSize=P.readInt(8)),this.compressedSize===S.MAX_VALUE_32BITS&&(this.compressedSize=P.readInt(8)),this.localHeaderOffset===S.MAX_VALUE_32BITS&&(this.localHeaderOffset=P.readInt(8)),this.diskNumberStart===S.MAX_VALUE_32BITS&&(this.diskNumberStart=P.readInt(4))}},readExtraFields:function(P){var U,M,Y,Q=P.index+this.extraFieldsLength;for(this.extraFields||(this.extraFields={});P.index+4<Q;)U=P.readInt(2),M=P.readInt(2),Y=P.readData(M),this.extraFields[U]={id:U,length:M,value:Y};P.setIndex(Q)},handleUTF8:function(){var P=_.uint8array?"uint8array":"array";if(this.useUTF8())this.fileNameStr=g.utf8decode(this.fileName),this.fileCommentStr=g.utf8decode(this.fileComment);else{var U=this.findExtraFieldUnicodePath();if(U!==null)this.fileNameStr=U;else{var M=S.transformTo(P,this.fileName);this.fileNameStr=this.loadOptions.decodeFileName(M)}var Y=this.findExtraFieldUnicodeComment();if(Y!==null)this.fileCommentStr=Y;else{var Q=S.transformTo(P,this.fileComment);this.fileCommentStr=this.loadOptions.decodeFileName(Q)}}},findExtraFieldUnicodePath:function(){var P=this.extraFields[28789];if(P){var U=W(P.value);return U.readInt(1)!==1||I(this.fileName)!==U.readInt(4)?null:g.utf8decode(U.readData(P.length-5))}return null},findExtraFieldUnicodeComment:function(){var P=this.extraFields[25461];if(P){var U=W(P.value);return U.readInt(1)!==1||I(this.fileComment)!==U.readInt(4)?null:g.utf8decode(U.readData(P.length-5))}return null}},De.exports=F},{"./compressedObject":2,"./compressions":3,"./crc32":4,"./reader/readerFor":22,"./support":30,"./utf8":31,"./utils":32}],35:[function(T,De,re){"use strict";function W(U,M,Y){this.name=U,this.dir=Y.dir,this.date=Y.date,this.comment=Y.comment,this.unixPermissions=Y.unixPermissions,this.dosPermissions=Y.dosPermissions,this._data=M,this._dataBinary=Y.binary,this.options={compression:Y.compression,compressionOptions:Y.compressionOptions}}var S=T("./stream/StreamHelper"),m=T("./stream/DataWorker"),I=T("./utf8"),g=T("./compressedObject"),$=T("./stream/GenericWorker");W.prototype={internalStream:function(U){var M=null,Y="string";try{if(!U)throw new Error("No output type specified.");var Q=(Y=U.toLowerCase())==="string"||Y==="text";Y!=="binarystring"&&Y!=="text"||(Y="string"),M=this._decompressWorker();var ae=!this._dataBinary;ae&&!Q&&(M=M.pipe(new I.Utf8EncodeWorker)),!ae&&Q&&(M=M.pipe(new I.Utf8DecodeWorker))}catch(ie){(M=new $("error")).error(ie)}return new S(M,Y,"")},async:function(U,M){return this.internalStream(U).accumulate(M)},nodeStream:function(U,M){return this.internalStream(U||"nodebuffer").toNodejsStream(M)},_compressWorker:function(U,M){if(this._data instanceof g&&this._data.compression.magic===U.magic)return this._data.getCompressedWorker();var Y=this._decompressWorker();return this._dataBinary||(Y=Y.pipe(new I.Utf8EncodeWorker)),g.createWorkerFrom(Y,U,M)},_decompressWorker:function(){return this._data instanceof g?this._data.getContentWorker():this._data instanceof $?this._data:new m(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.")},P=0;P<_.length;P++)W.prototype[_[P]]=F;De.exports=W},{"./compressedObject":2,"./stream/DataWorker":27,"./stream/GenericWorker":28,"./stream/StreamHelper":29,"./utf8":31}],36:[function(T,De,re){(function(W){"use strict";var S,m,I=W.MutationObserver||W.WebKitMutationObserver;if(I){var g=0,$=new I(U),_=W.document.createTextNode("");$.observe(_,{characterData:!0}),S=function(){_.data=g=++g%2}}else if(W.setImmediate||W.MessageChannel===void 0)S="document"in W&&"onreadystatechange"in W.document.createElement("script")?function(){var M=W.document.createElement("script");M.onreadystatechange=function(){U(),M.onreadystatechange=null,M.parentNode.removeChild(M),M=null},W.document.documentElement.appendChild(M)}:function(){setTimeout(U,0)};else{var F=new W.MessageChannel;F.port1.onmessage=U,S=function(){F.port2.postMessage(0)}}var P=[];function U(){var M,Y;m=!0;for(var Q=P.length;Q;){for(Y=P,P=[],M=-1;++M<Q;)Y[M]();Q=P.length}m=!1}De.exports=function(M){P.push(M)!==1||m||S()}}).call(this,typeof x.g!="undefined"?x.g:typeof self!="undefined"?self:typeof window!="undefined"?window:{})},{}],37:[function(T,De,re){"use strict";var W=T("immediate");function S(){}var m={},I=["REJECTED"],g=["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&&M(this,Q)}function F(Q,ae,ie){this.promise=Q,typeof ae=="function"&&(this.onFulfilled=ae,this.callFulfilled=this.otherCallFulfilled),typeof ie=="function"&&(this.onRejected=ie,this.callRejected=this.otherCallRejected)}function P(Q,ae,ie){W(function(){var J;try{J=ae(ie)}catch(G){return m.reject(Q,G)}J===Q?m.reject(Q,new TypeError("Cannot resolve promise with itself")):m.resolve(Q,J)})}function U(Q){var ae=Q&&Q.then;if(Q&&(typeof Q=="object"||typeof Q=="function")&&typeof ae=="function")return function(){ae.apply(Q,arguments)}}function M(Q,ae){var ie=!1;function J(se){ie||(ie=!0,m.reject(Q,se))}function G(se){ie||(ie=!0,m.resolve(Q,se))}var j=Y(function(){ae(G,J)});j.status==="error"&&J(j.value)}function Y(Q,ae){var ie={};try{ie.value=Q(ae),ie.status="success"}catch(J){ie.status="error",ie.value=J}return ie}(De.exports=_).prototype.finally=function(Q){if(typeof Q!="function")return this;var ae=this.constructor;return this.then(function(ie){return ae.resolve(Q()).then(function(){return ie})},function(ie){return ae.resolve(Q()).then(function(){throw ie})})},_.prototype.catch=function(Q){return this.then(null,Q)},_.prototype.then=function(Q,ae){if(typeof Q!="function"&&this.state===g||typeof ae!="function"&&this.state===I)return this;var ie=new this.constructor(S);return this.state!==$?P(ie,this.state===g?Q:ae,this.outcome):this.queue.push(new F(ie,Q,ae)),ie},F.prototype.callFulfilled=function(Q){m.resolve(this.promise,Q)},F.prototype.otherCallFulfilled=function(Q){P(this.promise,this.onFulfilled,Q)},F.prototype.callRejected=function(Q){m.reject(this.promise,Q)},F.prototype.otherCallRejected=function(Q){P(this.promise,this.onRejected,Q)},m.resolve=function(Q,ae){var ie=Y(U,ae);if(ie.status==="error")return m.reject(Q,ie.value);var J=ie.value;if(J)M(Q,J);else{Q.state=g,Q.outcome=ae;for(var G=-1,j=Q.queue.length;++G<j;)Q.queue[G].callFulfilled(ae)}return Q},m.reject=function(Q,ae){Q.state=I,Q.outcome=ae;for(var ie=-1,J=Q.queue.length;++ie<J;)Q.queue[ie].callRejected(ae);return Q},_.resolve=function(Q){return Q instanceof this?Q:m.resolve(new this(S),Q)},_.reject=function(Q){var ae=new this(S);return m.reject(ae,Q)},_.all=function(Q){var ae=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ie=Q.length,J=!1;if(!ie)return this.resolve([]);for(var G=new Array(ie),j=0,se=-1,he=new this(S);++se<ie;)Ne(Q[se],se);return he;function Ne(Be,Pe){ae.resolve(Be).then(function(q){G[Pe]=q,++j!==ie||J||(J=!0,m.resolve(he,G))},function(q){J||(J=!0,m.reject(he,q))})}},_.race=function(Q){var ae=this;if(Object.prototype.toString.call(Q)!=="[object Array]")return this.reject(new TypeError("must be an array"));var ie=Q.length,J=!1;if(!ie)return this.resolve([]);for(var G=-1,j=new this(S);++G<ie;)se=Q[G],ae.resolve(se).then(function(he){J||(J=!0,m.resolve(j,he))},function(he){J||(J=!0,m.reject(j,he))});var se;return j}},{immediate:36}],38:[function(T,De,re){"use strict";var W={};(0,T("./lib/utils/common").assign)(W,T("./lib/deflate"),T("./lib/inflate"),T("./lib/zlib/constants")),De.exports=W},{"./lib/deflate":39,"./lib/inflate":40,"./lib/utils/common":41,"./lib/zlib/constants":44}],39:[function(T,De,re){"use strict";var W=T("./zlib/deflate"),S=T("./utils/common"),m=T("./utils/strings"),I=T("./zlib/messages"),g=T("./zlib/zstream"),$=Object.prototype.toString,_=0,F=-1,P=0,U=8;function M(Q){if(!(this instanceof M))return new M(Q);this.options=S.assign({level:F,method:U,chunkSize:16384,windowBits:15,memLevel:8,strategy:P,to:""},Q||{});var ae=this.options;ae.raw&&0<ae.windowBits?ae.windowBits=-ae.windowBits:ae.gzip&&0<ae.windowBits&&ae.windowBits<16&&(ae.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new g,this.strm.avail_out=0;var ie=W.deflateInit2(this.strm,ae.level,ae.method,ae.windowBits,ae.memLevel,ae.strategy);if(ie!==_)throw new Error(I[ie]);if(ae.header&&W.deflateSetHeader(this.strm,ae.header),ae.dictionary){var J;if(J=typeof ae.dictionary=="string"?m.string2buf(ae.dictionary):$.call(ae.dictionary)==="[object ArrayBuffer]"?new Uint8Array(ae.dictionary):ae.dictionary,(ie=W.deflateSetDictionary(this.strm,J))!==_)throw new Error(I[ie]);this._dict_set=!0}}function Y(Q,ae){var ie=new M(ae);if(ie.push(Q,!0),ie.err)throw ie.msg||I[ie.err];return ie.result}M.prototype.push=function(Q,ae){var ie,J,G=this.strm,j=this.options.chunkSize;if(this.ended)return!1;J=ae===~~ae?ae:ae===!0?4:0,typeof Q=="string"?G.input=m.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(j),G.next_out=0,G.avail_out=j),(ie=W.deflate(G,J))!==1&&ie!==_)return this.onEnd(ie),!(this.ended=!0);G.avail_out!==0&&(G.avail_in!==0||J!==4&&J!==2)||(this.options.to==="string"?this.onData(m.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)&&ie!==1);return J===4?(ie=W.deflateEnd(this.strm),this.onEnd(ie),this.ended=!0,ie===_):J!==2||(this.onEnd(_),!(G.avail_out=0))},M.prototype.onData=function(Q){this.chunks.push(Q)},M.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},re.Deflate=M,re.deflate=Y,re.deflateRaw=function(Q,ae){return(ae=ae||{}).raw=!0,Y(Q,ae)},re.gzip=function(Q,ae){return(ae=ae||{}).gzip=!0,Y(Q,ae)}},{"./utils/common":41,"./utils/strings":42,"./zlib/deflate":46,"./zlib/messages":51,"./zlib/zstream":53}],40:[function(T,De,re){"use strict";var W=T("./zlib/inflate"),S=T("./utils/common"),m=T("./utils/strings"),I=T("./zlib/constants"),g=T("./zlib/messages"),$=T("./zlib/zstream"),_=T("./zlib/gzheader"),F=Object.prototype.toString;function P(M){if(!(this instanceof P))return new P(M);this.options=S.assign({chunkSize:16384,windowBits:0,to:""},M||{});var Y=this.options;Y.raw&&0<=Y.windowBits&&Y.windowBits<16&&(Y.windowBits=-Y.windowBits,Y.windowBits===0&&(Y.windowBits=-15)),!(0<=Y.windowBits&&Y.windowBits<16)||M&&M.windowBits||(Y.windowBits+=32),15<Y.windowBits&&Y.windowBits<48&&!(15&Y.windowBits)&&(Y.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new $,this.strm.avail_out=0;var Q=W.inflateInit2(this.strm,Y.windowBits);if(Q!==I.Z_OK)throw new Error(g[Q]);this.header=new _,W.inflateGetHeader(this.strm,this.header)}function U(M,Y){var Q=new P(Y);if(Q.push(M,!0),Q.err)throw Q.msg||g[Q.err];return Q.result}P.prototype.push=function(M,Y){var Q,ae,ie,J,G,j,se=this.strm,he=this.options.chunkSize,Ne=this.options.dictionary,Be=!1;if(this.ended)return!1;ae=Y===~~Y?Y:Y===!0?I.Z_FINISH:I.Z_NO_FLUSH,typeof M=="string"?se.input=m.binstring2buf(M):F.call(M)==="[object ArrayBuffer]"?se.input=new Uint8Array(M):se.input=M,se.next_in=0,se.avail_in=se.input.length;do{if(se.avail_out===0&&(se.output=new S.Buf8(he),se.next_out=0,se.avail_out=he),(Q=W.inflate(se,I.Z_NO_FLUSH))===I.Z_NEED_DICT&&Ne&&(j=typeof Ne=="string"?m.string2buf(Ne):F.call(Ne)==="[object ArrayBuffer]"?new Uint8Array(Ne):Ne,Q=W.inflateSetDictionary(this.strm,j)),Q===I.Z_BUF_ERROR&&Be===!0&&(Q=I.Z_OK,Be=!1),Q!==I.Z_STREAM_END&&Q!==I.Z_OK)return this.onEnd(Q),!(this.ended=!0);se.next_out&&(se.avail_out!==0&&Q!==I.Z_STREAM_END&&(se.avail_in!==0||ae!==I.Z_FINISH&&ae!==I.Z_SYNC_FLUSH)||(this.options.to==="string"?(ie=m.utf8border(se.output,se.next_out),J=se.next_out-ie,G=m.buf2string(se.output,ie),se.next_out=J,se.avail_out=he-J,J&&S.arraySet(se.output,se.output,ie,J,0),this.onData(G)):this.onData(S.shrinkBuf(se.output,se.next_out)))),se.avail_in===0&&se.avail_out===0&&(Be=!0)}while((0<se.avail_in||se.avail_out===0)&&Q!==I.Z_STREAM_END);return Q===I.Z_STREAM_END&&(ae=I.Z_FINISH),ae===I.Z_FINISH?(Q=W.inflateEnd(this.strm),this.onEnd(Q),this.ended=!0,Q===I.Z_OK):ae!==I.Z_SYNC_FLUSH||(this.onEnd(I.Z_OK),!(se.avail_out=0))},P.prototype.onData=function(M){this.chunks.push(M)},P.prototype.onEnd=function(M){M===I.Z_OK&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=S.flattenChunks(this.chunks)),this.chunks=[],this.err=M,this.msg=this.strm.msg},re.Inflate=P,re.inflate=U,re.inflateRaw=function(M,Y){return(Y=Y||{}).raw=!0,U(M,Y)},re.ungzip=U},{"./utils/common":41,"./utils/strings":42,"./zlib/constants":44,"./zlib/gzheader":47,"./zlib/inflate":49,"./zlib/messages":51,"./zlib/zstream":53}],41:[function(T,De,re){"use strict";var W=typeof Uint8Array!="undefined"&&typeof Uint16Array!="undefined"&&typeof Int32Array!="undefined";re.assign=function(I){for(var g=Array.prototype.slice.call(arguments,1);g.length;){var $=g.shift();if($){if(typeof $!="object")throw new TypeError($+"must be non-object");for(var _ in $)$.hasOwnProperty(_)&&(I[_]=$[_])}}return I},re.shrinkBuf=function(I,g){return I.length===g?I:I.subarray?I.subarray(0,g):(I.length=g,I)};var S={arraySet:function(I,g,$,_,F){if(g.subarray&&I.subarray)I.set(g.subarray($,$+_),F);else for(var P=0;P<_;P++)I[F+P]=g[$+P]},flattenChunks:function(I){var g,$,_,F,P,U;for(g=_=0,$=I.length;g<$;g++)_+=I[g].length;for(U=new Uint8Array(_),g=F=0,$=I.length;g<$;g++)P=I[g],U.set(P,F),F+=P.length;return U}},m={arraySet:function(I,g,$,_,F){for(var P=0;P<_;P++)I[F+P]=g[$+P]},flattenChunks:function(I){return[].concat.apply([],I)}};re.setTyped=function(I){I?(re.Buf8=Uint8Array,re.Buf16=Uint16Array,re.Buf32=Int32Array,re.assign(re,S)):(re.Buf8=Array,re.Buf16=Array,re.Buf32=Array,re.assign(re,m))},re.setTyped(W)},{}],42:[function(T,De,re){"use strict";var W=T("./common"),S=!0,m=!0;try{String.fromCharCode.apply(null,[0])}catch(_){S=!1}try{String.fromCharCode.apply(null,new Uint8Array(1))}catch(_){m=!1}for(var I=new W.Buf8(256),g=0;g<256;g++)I[g]=252<=g?6:248<=g?5:240<=g?4:224<=g?3:192<=g?2:1;function $(_,F){if(F<65537&&(_.subarray&&m||!_.subarray&&S))return String.fromCharCode.apply(null,W.shrinkBuf(_,F));for(var P="",U=0;U<F;U++)P+=String.fromCharCode(_[U]);return P}I[254]=I[254]=1,re.string2buf=function(_){var F,P,U,M,Y,Q=_.length,ae=0;for(M=0;M<Q;M++)(64512&(P=_.charCodeAt(M)))==55296&&M+1<Q&&(64512&(U=_.charCodeAt(M+1)))==56320&&(P=65536+(P-55296<<10)+(U-56320),M++),ae+=P<128?1:P<2048?2:P<65536?3:4;for(F=new W.Buf8(ae),M=Y=0;Y<ae;M++)(64512&(P=_.charCodeAt(M)))==55296&&M+1<Q&&(64512&(U=_.charCodeAt(M+1)))==56320&&(P=65536+(P-55296<<10)+(U-56320),M++),P<128?F[Y++]=P:(P<2048?F[Y++]=192|P>>>6:(P<65536?F[Y++]=224|P>>>12:(F[Y++]=240|P>>>18,F[Y++]=128|P>>>12&63),F[Y++]=128|P>>>6&63),F[Y++]=128|63&P);return F},re.buf2binstring=function(_){return $(_,_.length)},re.binstring2buf=function(_){for(var F=new W.Buf8(_.length),P=0,U=F.length;P<U;P++)F[P]=_.charCodeAt(P);return F},re.buf2string=function(_,F){var P,U,M,Y,Q=F||_.length,ae=new Array(2*Q);for(P=U=0;P<Q;)if((M=_[P++])<128)ae[U++]=M;else if(4<(Y=I[M]))ae[U++]=65533,P+=Y-1;else{for(M&=Y===2?31:Y===3?15:7;1<Y&&P<Q;)M=M<<6|63&_[P++],Y--;1<Y?ae[U++]=65533:M<65536?ae[U++]=M:(M-=65536,ae[U++]=55296|M>>10&1023,ae[U++]=56320|1023&M)}return $(ae,U)},re.utf8border=function(_,F){var P;for((F=F||_.length)>_.length&&(F=_.length),P=F-1;0<=P&&(192&_[P])==128;)P--;return P<0||P===0?F:P+I[_[P]]>F?P:F}},{"./common":41}],43:[function(T,De,re){"use strict";De.exports=function(W,S,m,I){for(var g=65535&W|0,$=W>>>16&65535|0,_=0;m!==0;){for(m-=_=2e3<m?2e3:m;$=$+(g=g+S[I++]|0)|0,--_;);g%=65521,$%=65521}return g|$<<16|0}},{}],44:[function(T,De,re){"use strict";De.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},{}],45:[function(T,De,re){"use strict";var W=function(){for(var S,m=[],I=0;I<256;I++){S=I;for(var g=0;g<8;g++)S=1&S?3988292384^S>>>1:S>>>1;m[I]=S}return m}();De.exports=function(S,m,I,g){var $=W,_=g+I;S^=-1;for(var F=g;F<_;F++)S=S>>>8^$[255&(S^m[F])];return-1^S}},{}],46:[function(T,De,re){"use strict";var W,S=T("../utils/common"),m=T("./trees"),I=T("./adler32"),g=T("./crc32"),$=T("./messages"),_=0,F=4,P=0,U=-2,M=-1,Y=4,Q=2,ae=8,ie=9,J=286,G=30,j=19,se=2*J+1,he=15,Ne=3,Be=258,Pe=Be+Ne+1,q=42,Ae=113,D=1,Je=2,Fe=3,Ce=4;function Ue(k,Xe){return k.msg=$[Xe],Xe}function me(k){return(k<<1)-(4<k?9:0)}function Me(k){for(var Xe=k.length;0<=--Xe;)k[Xe]=0}function fe(k){var Xe=k.state,N=Xe.pending;N>k.avail_out&&(N=k.avail_out),N!==0&&(S.arraySet(k.output,Xe.pending_buf,Xe.pending_out,N,k.next_out),k.next_out+=N,Xe.pending_out+=N,k.total_out+=N,k.avail_out-=N,Xe.pending-=N,Xe.pending===0&&(Xe.pending_out=0))}function Ee(k,Xe){m._tr_flush_block(k,0<=k.block_start?k.block_start:-1,k.strstart-k.block_start,Xe),k.block_start=k.strstart,fe(k.strm)}function rt(k,Xe){k.pending_buf[k.pending++]=Xe}function ot(k,Xe){k.pending_buf[k.pending++]=Xe>>>8&255,k.pending_buf[k.pending++]=255&Xe}function We(k,Xe){var N,b,f=k.max_chain_length,C=k.strstart,ee=k.prev_length,Se=k.nice_match,H=k.strstart>k.w_size-Pe?k.strstart-(k.w_size-Pe):0,ne=k.window,Qe=k.w_mask,we=k.prev,ye=k.strstart+Be,je=ne[C+ee-1],mt=ne[C+ee];k.prev_length>=k.good_match&&(f>>=2),Se>k.lookahead&&(Se=k.lookahead);do if(ne[(N=Xe)+ee]===mt&&ne[N+ee-1]===je&&ne[N]===ne[C]&&ne[++N]===ne[C+1]){C+=2,N++;do;while(ne[++C]===ne[++N]&&ne[++C]===ne[++N]&&ne[++C]===ne[++N]&&ne[++C]===ne[++N]&&ne[++C]===ne[++N]&&ne[++C]===ne[++N]&&ne[++C]===ne[++N]&&ne[++C]===ne[++N]&&C<ye);if(b=Be-(ye-C),C=ye-Be,ee<b){if(k.match_start=Xe,Se<=(ee=b))break;je=ne[C+ee-1],mt=ne[C+ee]}}while((Xe=we[Xe&Qe])>H&&--f!=0);return ee<=k.lookahead?ee:k.lookahead}function et(k){var Xe,N,b,f,C,ee,Se,H,ne,Qe,we=k.w_size;do{if(f=k.window_size-k.lookahead-k.strstart,k.strstart>=we+(we-Pe)){for(S.arraySet(k.window,k.window,we,we,0),k.match_start-=we,k.strstart-=we,k.block_start-=we,Xe=N=k.hash_size;b=k.head[--Xe],k.head[Xe]=we<=b?b-we:0,--N;);for(Xe=N=we;b=k.prev[--Xe],k.prev[Xe]=we<=b?b-we:0,--N;);f+=we}if(k.strm.avail_in===0)break;if(ee=k.strm,Se=k.window,H=k.strstart+k.lookahead,ne=f,Qe=void 0,Qe=ee.avail_in,ne<Qe&&(Qe=ne),N=Qe===0?0:(ee.avail_in-=Qe,S.arraySet(Se,ee.input,ee.next_in,Qe,H),ee.state.wrap===1?ee.adler=I(ee.adler,Se,Qe,H):ee.state.wrap===2&&(ee.adler=g(ee.adler,Se,Qe,H)),ee.next_in+=Qe,ee.total_in+=Qe,Qe),k.lookahead+=N,k.lookahead+k.insert>=Ne)for(C=k.strstart-k.insert,k.ins_h=k.window[C],k.ins_h=(k.ins_h<<k.hash_shift^k.window[C+1])&k.hash_mask;k.insert&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[C+Ne-1])&k.hash_mask,k.prev[C&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=C,C++,k.insert--,!(k.lookahead+k.insert<Ne)););}while(k.lookahead<Pe&&k.strm.avail_in!==0)}function _t(k,Xe){for(var N,b;;){if(k.lookahead<Pe){if(et(k),k.lookahead<Pe&&Xe===_)return D;if(k.lookahead===0)break}if(N=0,k.lookahead>=Ne&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Ne-1])&k.hash_mask,N=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),N!==0&&k.strstart-N<=k.w_size-Pe&&(k.match_length=We(k,N)),k.match_length>=Ne)if(b=m._tr_tally(k,k.strstart-k.match_start,k.match_length-Ne),k.lookahead-=k.match_length,k.match_length<=k.max_lazy_match&&k.lookahead>=Ne){for(k.match_length--;k.strstart++,k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Ne-1])&k.hash_mask,N=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart,--k.match_length!=0;);k.strstart++}else k.strstart+=k.match_length,k.match_length=0,k.ins_h=k.window[k.strstart],k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+1])&k.hash_mask;else b=m._tr_tally(k,0,k.window[k.strstart]),k.lookahead--,k.strstart++;if(b&&(Ee(k,!1),k.strm.avail_out===0))return D}return k.insert=k.strstart<Ne-1?k.strstart:Ne-1,Xe===F?(Ee(k,!0),k.strm.avail_out===0?Fe:Ce):k.last_lit&&(Ee(k,!1),k.strm.avail_out===0)?D:Je}function Ot(k,Xe){for(var N,b,f;;){if(k.lookahead<Pe){if(et(k),k.lookahead<Pe&&Xe===_)return D;if(k.lookahead===0)break}if(N=0,k.lookahead>=Ne&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Ne-1])&k.hash_mask,N=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),k.prev_length=k.match_length,k.prev_match=k.match_start,k.match_length=Ne-1,N!==0&&k.prev_length<k.max_lazy_match&&k.strstart-N<=k.w_size-Pe&&(k.match_length=We(k,N),k.match_length<=5&&(k.strategy===1||k.match_length===Ne&&4096<k.strstart-k.match_start)&&(k.match_length=Ne-1)),k.prev_length>=Ne&&k.match_length<=k.prev_length){for(f=k.strstart+k.lookahead-Ne,b=m._tr_tally(k,k.strstart-1-k.prev_match,k.prev_length-Ne),k.lookahead-=k.prev_length-1,k.prev_length-=2;++k.strstart<=f&&(k.ins_h=(k.ins_h<<k.hash_shift^k.window[k.strstart+Ne-1])&k.hash_mask,N=k.prev[k.strstart&k.w_mask]=k.head[k.ins_h],k.head[k.ins_h]=k.strstart),--k.prev_length!=0;);if(k.match_available=0,k.match_length=Ne-1,k.strstart++,b&&(Ee(k,!1),k.strm.avail_out===0))return D}else if(k.match_available){if((b=m._tr_tally(k,0,k.window[k.strstart-1]))&&Ee(k,!1),k.strstart++,k.lookahead--,k.strm.avail_out===0)return D}else k.match_available=1,k.strstart++,k.lookahead--}return k.match_available&&(b=m._tr_tally(k,0,k.window[k.strstart-1]),k.match_available=0),k.insert=k.strstart<Ne-1?k.strstart:Ne-1,Xe===F?(Ee(k,!0),k.strm.avail_out===0?Fe:Ce):k.last_lit&&(Ee(k,!1),k.strm.avail_out===0)?D:Je}function Pt(k,Xe,N,b,f){this.good_length=k,this.max_lazy=Xe,this.nice_length=N,this.max_chain=b,this.func=f}function cr(){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=ae,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new S.Buf16(2*se),this.dyn_dtree=new S.Buf16(2*(2*G+1)),this.bl_tree=new S.Buf16(2*(2*j+1)),Me(this.dyn_ltree),Me(this.dyn_dtree),Me(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new S.Buf16(he+1),this.heap=new S.Buf16(2*J+1),Me(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new S.Buf16(2*J+1),Me(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 nr(k){var Xe;return k&&k.state?(k.total_in=k.total_out=0,k.data_type=Q,(Xe=k.state).pending=0,Xe.pending_out=0,Xe.wrap<0&&(Xe.wrap=-Xe.wrap),Xe.status=Xe.wrap?q:Ae,k.adler=Xe.wrap===2?0:1,Xe.last_flush=_,m._tr_init(Xe),P):Ue(k,U)}function br(k){var Xe=nr(k);return Xe===P&&function(N){N.window_size=2*N.w_size,Me(N.head),N.max_lazy_match=W[N.level].max_lazy,N.good_match=W[N.level].good_length,N.nice_match=W[N.level].nice_length,N.max_chain_length=W[N.level].max_chain,N.strstart=0,N.block_start=0,N.lookahead=0,N.insert=0,N.match_length=N.prev_length=Ne-1,N.match_available=0,N.ins_h=0}(k.state),Xe}function sr(k,Xe,N,b,f,C){if(!k)return U;var ee=1;if(Xe===M&&(Xe=6),b<0?(ee=0,b=-b):15<b&&(ee=2,b-=16),f<1||ie<f||N!==ae||b<8||15<b||Xe<0||9<Xe||C<0||Y<C)return Ue(k,U);b===8&&(b=9);var Se=new cr;return(k.state=Se).strm=k,Se.wrap=ee,Se.gzhead=null,Se.w_bits=b,Se.w_size=1<<Se.w_bits,Se.w_mask=Se.w_size-1,Se.hash_bits=f+7,Se.hash_size=1<<Se.hash_bits,Se.hash_mask=Se.hash_size-1,Se.hash_shift=~~((Se.hash_bits+Ne-1)/Ne),Se.window=new S.Buf8(2*Se.w_size),Se.head=new S.Buf16(Se.hash_size),Se.prev=new S.Buf16(Se.w_size),Se.lit_bufsize=1<<f+6,Se.pending_buf_size=4*Se.lit_bufsize,Se.pending_buf=new S.Buf8(Se.pending_buf_size),Se.d_buf=1*Se.lit_bufsize,Se.l_buf=3*Se.lit_bufsize,Se.level=Xe,Se.strategy=C,Se.method=N,br(k)}W=[new Pt(0,0,0,0,function(k,Xe){var N=65535;for(N>k.pending_buf_size-5&&(N=k.pending_buf_size-5);;){if(k.lookahead<=1){if(et(k),k.lookahead===0&&Xe===_)return D;if(k.lookahead===0)break}k.strstart+=k.lookahead,k.lookahead=0;var b=k.block_start+N;if((k.strstart===0||k.strstart>=b)&&(k.lookahead=k.strstart-b,k.strstart=b,Ee(k,!1),k.strm.avail_out===0)||k.strstart-k.block_start>=k.w_size-Pe&&(Ee(k,!1),k.strm.avail_out===0))return D}return k.insert=0,Xe===F?(Ee(k,!0),k.strm.avail_out===0?Fe:Ce):(k.strstart>k.block_start&&(Ee(k,!1),k.strm.avail_out),D)}),new Pt(4,4,8,4,_t),new Pt(4,5,16,8,_t),new Pt(4,6,32,32,_t),new Pt(4,4,16,16,Ot),new Pt(8,16,32,32,Ot),new Pt(8,16,128,128,Ot),new Pt(8,32,128,256,Ot),new Pt(32,128,258,1024,Ot),new Pt(32,258,258,4096,Ot)],re.deflateInit=function(k,Xe){return sr(k,Xe,ae,15,8,0)},re.deflateInit2=sr,re.deflateReset=br,re.deflateResetKeep=nr,re.deflateSetHeader=function(k,Xe){return k&&k.state?k.state.wrap!==2?U:(k.state.gzhead=Xe,P):U},re.deflate=function(k,Xe){var N,b,f,C;if(!k||!k.state||5<Xe||Xe<0)return k?Ue(k,U):U;if(b=k.state,!k.output||!k.input&&k.avail_in!==0||b.status===666&&Xe!==F)return Ue(k,k.avail_out===0?-5:U);if(b.strm=k,N=b.last_flush,b.last_flush=Xe,b.status===q)if(b.wrap===2)k.adler=0,rt(b,31),rt(b,139),rt(b,8),b.gzhead?(rt(b,(b.gzhead.text?1:0)+(b.gzhead.hcrc?2:0)+(b.gzhead.extra?4:0)+(b.gzhead.name?8:0)+(b.gzhead.comment?16:0)),rt(b,255&b.gzhead.time),rt(b,b.gzhead.time>>8&255),rt(b,b.gzhead.time>>16&255),rt(b,b.gzhead.time>>24&255),rt(b,b.level===9?2:2<=b.strategy||b.level<2?4:0),rt(b,255&b.gzhead.os),b.gzhead.extra&&b.gzhead.extra.length&&(rt(b,255&b.gzhead.extra.length),rt(b,b.gzhead.extra.length>>8&255)),b.gzhead.hcrc&&(k.adler=g(k.adler,b.pending_buf,b.pending,0)),b.gzindex=0,b.status=69):(rt(b,0),rt(b,0),rt(b,0),rt(b,0),rt(b,0),rt(b,b.level===9?2:2<=b.strategy||b.level<2?4:0),rt(b,3),b.status=Ae);else{var ee=ae+(b.w_bits-8<<4)<<8;ee|=(2<=b.strategy||b.level<2?0:b.level<6?1:b.level===6?2:3)<<6,b.strstart!==0&&(ee|=32),ee+=31-ee%31,b.status=Ae,ot(b,ee),b.strstart!==0&&(ot(b,k.adler>>>16),ot(b,65535&k.adler)),k.adler=1}if(b.status===69)if(b.gzhead.extra){for(f=b.pending;b.gzindex<(65535&b.gzhead.extra.length)&&(b.pending!==b.pending_buf_size||(b.gzhead.hcrc&&b.pending>f&&(k.adler=g(k.adler,b.pending_buf,b.pending-f,f)),fe(k),f=b.pending,b.pending!==b.pending_buf_size));)rt(b,255&b.gzhead.extra[b.gzindex]),b.gzindex++;b.gzhead.hcrc&&b.pending>f&&(k.adler=g(k.adler,b.pending_buf,b.pending-f,f)),b.gzindex===b.gzhead.extra.length&&(b.gzindex=0,b.status=73)}else b.status=73;if(b.status===73)if(b.gzhead.name){f=b.pending;do{if(b.pending===b.pending_buf_size&&(b.gzhead.hcrc&&b.pending>f&&(k.adler=g(k.adler,b.pending_buf,b.pending-f,f)),fe(k),f=b.pending,b.pending===b.pending_buf_size)){C=1;break}C=b.gzindex<b.gzhead.name.length?255&b.gzhead.name.charCodeAt(b.gzindex++):0,rt(b,C)}while(C!==0);b.gzhead.hcrc&&b.pending>f&&(k.adler=g(k.adler,b.pending_buf,b.pending-f,f)),C===0&&(b.gzindex=0,b.status=91)}else b.status=91;if(b.status===91)if(b.gzhead.comment){f=b.pending;do{if(b.pending===b.pending_buf_size&&(b.gzhead.hcrc&&b.pending>f&&(k.adler=g(k.adler,b.pending_buf,b.pending-f,f)),fe(k),f=b.pending,b.pending===b.pending_buf_size)){C=1;break}C=b.gzindex<b.gzhead.comment.length?255&b.gzhead.comment.charCodeAt(b.gzindex++):0,rt(b,C)}while(C!==0);b.gzhead.hcrc&&b.pending>f&&(k.adler=g(k.adler,b.pending_buf,b.pending-f,f)),C===0&&(b.status=103)}else b.status=103;if(b.status===103&&(b.gzhead.hcrc?(b.pending+2>b.pending_buf_size&&fe(k),b.pending+2<=b.pending_buf_size&&(rt(b,255&k.adler),rt(b,k.adler>>8&255),k.adler=0,b.status=Ae)):b.status=Ae),b.pending!==0){if(fe(k),k.avail_out===0)return b.last_flush=-1,P}else if(k.avail_in===0&&me(Xe)<=me(N)&&Xe!==F)return Ue(k,-5);if(b.status===666&&k.avail_in!==0)return Ue(k,-5);if(k.avail_in!==0||b.lookahead!==0||Xe!==_&&b.status!==666){var Se=b.strategy===2?function(H,ne){for(var Qe;;){if(H.lookahead===0&&(et(H),H.lookahead===0)){if(ne===_)return D;break}if(H.match_length=0,Qe=m._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++,Qe&&(Ee(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ne===F?(Ee(H,!0),H.strm.avail_out===0?Fe:Ce):H.last_lit&&(Ee(H,!1),H.strm.avail_out===0)?D:Je}(b,Xe):b.strategy===3?function(H,ne){for(var Qe,we,ye,je,mt=H.window;;){if(H.lookahead<=Be){if(et(H),H.lookahead<=Be&&ne===_)return D;if(H.lookahead===0)break}if(H.match_length=0,H.lookahead>=Ne&&0<H.strstart&&(we=mt[ye=H.strstart-1])===mt[++ye]&&we===mt[++ye]&&we===mt[++ye]){je=H.strstart+Be;do;while(we===mt[++ye]&&we===mt[++ye]&&we===mt[++ye]&&we===mt[++ye]&&we===mt[++ye]&&we===mt[++ye]&&we===mt[++ye]&&we===mt[++ye]&&ye<je);H.match_length=Be-(je-ye),H.match_length>H.lookahead&&(H.match_length=H.lookahead)}if(H.match_length>=Ne?(Qe=m._tr_tally(H,1,H.match_length-Ne),H.lookahead-=H.match_length,H.strstart+=H.match_length,H.match_length=0):(Qe=m._tr_tally(H,0,H.window[H.strstart]),H.lookahead--,H.strstart++),Qe&&(Ee(H,!1),H.strm.avail_out===0))return D}return H.insert=0,ne===F?(Ee(H,!0),H.strm.avail_out===0?Fe:Ce):H.last_lit&&(Ee(H,!1),H.strm.avail_out===0)?D:Je}(b,Xe):W[b.level].func(b,Xe);if(Se!==Fe&&Se!==Ce||(b.status=666),Se===D||Se===Fe)return k.avail_out===0&&(b.last_flush=-1),P;if(Se===Je&&(Xe===1?m._tr_align(b):Xe!==5&&(m._tr_stored_block(b,0,0,!1),Xe===3&&(Me(b.head),b.lookahead===0&&(b.strstart=0,b.block_start=0,b.insert=0))),fe(k),k.avail_out===0))return b.last_flush=-1,P}return Xe!==F?P:b.wrap<=0?1:(b.wrap===2?(rt(b,255&k.adler),rt(b,k.adler>>8&255),rt(b,k.adler>>16&255),rt(b,k.adler>>24&255),rt(b,255&k.total_in),rt(b,k.total_in>>8&255),rt(b,k.total_in>>16&255),rt(b,k.total_in>>24&255)):(ot(b,k.adler>>>16),ot(b,65535&k.adler)),fe(k),0<b.wrap&&(b.wrap=-b.wrap),b.pending!==0?P:1)},re.deflateEnd=function(k){var Xe;return k&&k.state?(Xe=k.state.status)!==q&&Xe!==69&&Xe!==73&&Xe!==91&&Xe!==103&&Xe!==Ae&&Xe!==666?Ue(k,U):(k.state=null,Xe===Ae?Ue(k,-3):P):U},re.deflateSetDictionary=function(k,Xe){var N,b,f,C,ee,Se,H,ne,Qe=Xe.length;if(!k||!k.state||(C=(N=k.state).wrap)===2||C===1&&N.status!==q||N.lookahead)return U;for(C===1&&(k.adler=I(k.adler,Xe,Qe,0)),N.wrap=0,Qe>=N.w_size&&(C===0&&(Me(N.head),N.strstart=0,N.block_start=0,N.insert=0),ne=new S.Buf8(N.w_size),S.arraySet(ne,Xe,Qe-N.w_size,N.w_size,0),Xe=ne,Qe=N.w_size),ee=k.avail_in,Se=k.next_in,H=k.input,k.avail_in=Qe,k.next_in=0,k.input=Xe,et(N);N.lookahead>=Ne;){for(b=N.strstart,f=N.lookahead-(Ne-1);N.ins_h=(N.ins_h<<N.hash_shift^N.window[b+Ne-1])&N.hash_mask,N.prev[b&N.w_mask]=N.head[N.ins_h],N.head[N.ins_h]=b,b++,--f;);N.strstart=b,N.lookahead=Ne-1,et(N)}return N.strstart+=N.lookahead,N.block_start=N.strstart,N.insert=N.lookahead,N.lookahead=0,N.match_length=N.prev_length=Ne-1,N.match_available=0,k.next_in=Se,k.input=H,k.avail_in=ee,N.wrap=C,P},re.deflateInfo="pako deflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./messages":51,"./trees":52}],47:[function(T,De,re){"use strict";De.exports=function(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}},{}],48:[function(T,De,re){"use strict";De.exports=function(W,S){var m,I,g,$,_,F,P,U,M,Y,Q,ae,ie,J,G,j,se,he,Ne,Be,Pe,q,Ae,D,Je;m=W.state,I=W.next_in,D=W.input,g=I+(W.avail_in-5),$=W.next_out,Je=W.output,_=$-(S-W.avail_out),F=$+(W.avail_out-257),P=m.dmax,U=m.wsize,M=m.whave,Y=m.wnext,Q=m.window,ae=m.hold,ie=m.bits,J=m.lencode,G=m.distcode,j=(1<<m.lenbits)-1,se=(1<<m.distbits)-1;e:do{ie<15&&(ae+=D[I++]<<ie,ie+=8,ae+=D[I++]<<ie,ie+=8),he=J[ae&j];t:for(;;){if(ae>>>=Ne=he>>>24,ie-=Ne,(Ne=he>>>16&255)===0)Je[$++]=65535&he;else{if(!(16&Ne)){if(!(64&Ne)){he=J[(65535&he)+(ae&(1<<Ne)-1)];continue t}if(32&Ne){m.mode=12;break e}W.msg="invalid literal/length code",m.mode=30;break e}Be=65535&he,(Ne&=15)&&(ie<Ne&&(ae+=D[I++]<<ie,ie+=8),Be+=ae&(1<<Ne)-1,ae>>>=Ne,ie-=Ne),ie<15&&(ae+=D[I++]<<ie,ie+=8,ae+=D[I++]<<ie,ie+=8),he=G[ae&se];r:for(;;){if(ae>>>=Ne=he>>>24,ie-=Ne,!(16&(Ne=he>>>16&255))){if(!(64&Ne)){he=G[(65535&he)+(ae&(1<<Ne)-1)];continue r}W.msg="invalid distance code",m.mode=30;break e}if(Pe=65535&he,ie<(Ne&=15)&&(ae+=D[I++]<<ie,(ie+=8)<Ne&&(ae+=D[I++]<<ie,ie+=8)),P<(Pe+=ae&(1<<Ne)-1)){W.msg="invalid distance too far back",m.mode=30;break e}if(ae>>>=Ne,ie-=Ne,(Ne=$-_)<Pe){if(M<(Ne=Pe-Ne)&&m.sane){W.msg="invalid distance too far back",m.mode=30;break e}if(Ae=Q,(q=0)===Y){if(q+=U-Ne,Ne<Be){for(Be-=Ne;Je[$++]=Q[q++],--Ne;);q=$-Pe,Ae=Je}}else if(Y<Ne){if(q+=U+Y-Ne,(Ne-=Y)<Be){for(Be-=Ne;Je[$++]=Q[q++],--Ne;);if(q=0,Y<Be){for(Be-=Ne=Y;Je[$++]=Q[q++],--Ne;);q=$-Pe,Ae=Je}}}else if(q+=Y-Ne,Ne<Be){for(Be-=Ne;Je[$++]=Q[q++],--Ne;);q=$-Pe,Ae=Je}for(;2<Be;)Je[$++]=Ae[q++],Je[$++]=Ae[q++],Je[$++]=Ae[q++],Be-=3;Be&&(Je[$++]=Ae[q++],1<Be&&(Je[$++]=Ae[q++]))}else{for(q=$-Pe;Je[$++]=Je[q++],Je[$++]=Je[q++],Je[$++]=Je[q++],2<(Be-=3););Be&&(Je[$++]=Je[q++],1<Be&&(Je[$++]=Je[q++]))}break}}break}}while(I<g&&$<F);I-=Be=ie>>3,ae&=(1<<(ie-=Be<<3))-1,W.next_in=I,W.next_out=$,W.avail_in=I<g?g-I+5:5-(I-g),W.avail_out=$<F?F-$+257:257-($-F),m.hold=ae,m.bits=ie}},{}],49:[function(T,De,re){"use strict";var W=T("../utils/common"),S=T("./adler32"),m=T("./crc32"),I=T("./inffast"),g=T("./inftrees"),$=1,_=2,F=0,P=-2,U=1,M=852,Y=592;function Q(q){return(q>>>24&255)+(q>>>8&65280)+((65280&q)<<8)+((255&q)<<24)}function ae(){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 ie(q){var Ae;return q&&q.state?(Ae=q.state,q.total_in=q.total_out=Ae.total=0,q.msg="",Ae.wrap&&(q.adler=1&Ae.wrap),Ae.mode=U,Ae.last=0,Ae.havedict=0,Ae.dmax=32768,Ae.head=null,Ae.hold=0,Ae.bits=0,Ae.lencode=Ae.lendyn=new W.Buf32(M),Ae.distcode=Ae.distdyn=new W.Buf32(Y),Ae.sane=1,Ae.back=-1,F):P}function J(q){var Ae;return q&&q.state?((Ae=q.state).wsize=0,Ae.whave=0,Ae.wnext=0,ie(q)):P}function G(q,Ae){var D,Je;return q&&q.state?(Je=q.state,Ae<0?(D=0,Ae=-Ae):(D=1+(Ae>>4),Ae<48&&(Ae&=15)),Ae&&(Ae<8||15<Ae)?P:(Je.window!==null&&Je.wbits!==Ae&&(Je.window=null),Je.wrap=D,Je.wbits=Ae,J(q))):P}function j(q,Ae){var D,Je;return q?(Je=new ae,(q.state=Je).window=null,(D=G(q,Ae))!==F&&(q.state=null),D):P}var se,he,Ne=!0;function Be(q){if(Ne){var Ae;for(se=new W.Buf32(512),he=new W.Buf32(32),Ae=0;Ae<144;)q.lens[Ae++]=8;for(;Ae<256;)q.lens[Ae++]=9;for(;Ae<280;)q.lens[Ae++]=7;for(;Ae<288;)q.lens[Ae++]=8;for(g($,q.lens,0,288,se,0,q.work,{bits:9}),Ae=0;Ae<32;)q.lens[Ae++]=5;g(_,q.lens,0,32,he,0,q.work,{bits:5}),Ne=!1}q.lencode=se,q.lenbits=9,q.distcode=he,q.distbits=5}function Pe(q,Ae,D,Je){var Fe,Ce=q.state;return Ce.window===null&&(Ce.wsize=1<<Ce.wbits,Ce.wnext=0,Ce.whave=0,Ce.window=new W.Buf8(Ce.wsize)),Je>=Ce.wsize?(W.arraySet(Ce.window,Ae,D-Ce.wsize,Ce.wsize,0),Ce.wnext=0,Ce.whave=Ce.wsize):(Je<(Fe=Ce.wsize-Ce.wnext)&&(Fe=Je),W.arraySet(Ce.window,Ae,D-Je,Fe,Ce.wnext),(Je-=Fe)?(W.arraySet(Ce.window,Ae,D-Je,Je,0),Ce.wnext=Je,Ce.whave=Ce.wsize):(Ce.wnext+=Fe,Ce.wnext===Ce.wsize&&(Ce.wnext=0),Ce.whave<Ce.wsize&&(Ce.whave+=Fe))),0}re.inflateReset=J,re.inflateReset2=G,re.inflateResetKeep=ie,re.inflateInit=function(q){return j(q,15)},re.inflateInit2=j,re.inflate=function(q,Ae){var D,Je,Fe,Ce,Ue,me,Me,fe,Ee,rt,ot,We,et,_t,Ot,Pt,cr,nr,br,sr,k,Xe,N,b,f=0,C=new W.Buf8(4),ee=[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 P;(D=q.state).mode===12&&(D.mode=13),Ue=q.next_out,Fe=q.output,Me=q.avail_out,Ce=q.next_in,Je=q.input,me=q.avail_in,fe=D.hold,Ee=D.bits,rt=me,ot=Me,Xe=F;e:for(;;)switch(D.mode){case U:if(D.wrap===0){D.mode=13;break}for(;Ee<16;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}if(2&D.wrap&&fe===35615){C[D.check=0]=255&fe,C[1]=fe>>>8&255,D.check=m(D.check,C,2,0),Ee=fe=0,D.mode=2;break}if(D.flags=0,D.head&&(D.head.done=!1),!(1&D.wrap)||(((255&fe)<<8)+(fe>>8))%31){q.msg="incorrect header check",D.mode=30;break}if((15&fe)!=8){q.msg="unknown compression method",D.mode=30;break}if(Ee-=4,k=8+(15&(fe>>>=4)),D.wbits===0)D.wbits=k;else if(k>D.wbits){q.msg="invalid window size",D.mode=30;break}D.dmax=1<<k,q.adler=D.check=1,D.mode=512&fe?10:12,Ee=fe=0;break;case 2:for(;Ee<16;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}if(D.flags=fe,(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=fe>>8&1),512&D.flags&&(C[0]=255&fe,C[1]=fe>>>8&255,D.check=m(D.check,C,2,0)),Ee=fe=0,D.mode=3;case 3:for(;Ee<32;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}D.head&&(D.head.time=fe),512&D.flags&&(C[0]=255&fe,C[1]=fe>>>8&255,C[2]=fe>>>16&255,C[3]=fe>>>24&255,D.check=m(D.check,C,4,0)),Ee=fe=0,D.mode=4;case 4:for(;Ee<16;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}D.head&&(D.head.xflags=255&fe,D.head.os=fe>>8),512&D.flags&&(C[0]=255&fe,C[1]=fe>>>8&255,D.check=m(D.check,C,2,0)),Ee=fe=0,D.mode=5;case 5:if(1024&D.flags){for(;Ee<16;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}D.length=fe,D.head&&(D.head.extra_len=fe),512&D.flags&&(C[0]=255&fe,C[1]=fe>>>8&255,D.check=m(D.check,C,2,0)),Ee=fe=0}else D.head&&(D.head.extra=null);D.mode=6;case 6:if(1024&D.flags&&(me<(We=D.length)&&(We=me),We&&(D.head&&(k=D.head.extra_len-D.length,D.head.extra||(D.head.extra=new Array(D.head.extra_len)),W.arraySet(D.head.extra,Je,Ce,We,k)),512&D.flags&&(D.check=m(D.check,Je,We,Ce)),me-=We,Ce+=We,D.length-=We),D.length))break e;D.length=0,D.mode=7;case 7:if(2048&D.flags){if(me===0)break e;for(We=0;k=Je[Ce+We++],D.head&&k&&D.length<65536&&(D.head.name+=String.fromCharCode(k)),k&&We<me;);if(512&D.flags&&(D.check=m(D.check,Je,We,Ce)),me-=We,Ce+=We,k)break e}else D.head&&(D.head.name=null);D.length=0,D.mode=8;case 8:if(4096&D.flags){if(me===0)break e;for(We=0;k=Je[Ce+We++],D.head&&k&&D.length<65536&&(D.head.comment+=String.fromCharCode(k)),k&&We<me;);if(512&D.flags&&(D.check=m(D.check,Je,We,Ce)),me-=We,Ce+=We,k)break e}else D.head&&(D.head.comment=null);D.mode=9;case 9:if(512&D.flags){for(;Ee<16;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}if(fe!==(65535&D.check)){q.msg="header crc mismatch",D.mode=30;break}Ee=fe=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(;Ee<32;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}q.adler=D.check=Q(fe),Ee=fe=0,D.mode=11;case 11:if(D.havedict===0)return q.next_out=Ue,q.avail_out=Me,q.next_in=Ce,q.avail_in=me,D.hold=fe,D.bits=Ee,2;q.adler=D.check=1,D.mode=12;case 12:if(Ae===5||Ae===6)break e;case 13:if(D.last){fe>>>=7&Ee,Ee-=7&Ee,D.mode=27;break}for(;Ee<3;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}switch(D.last=1&fe,Ee-=1,3&(fe>>>=1)){case 0:D.mode=14;break;case 1:if(Be(D),D.mode=20,Ae!==6)break;fe>>>=2,Ee-=2;break e;case 2:D.mode=17;break;case 3:q.msg="invalid block type",D.mode=30}fe>>>=2,Ee-=2;break;case 14:for(fe>>>=7&Ee,Ee-=7&Ee;Ee<32;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}if((65535&fe)!=(fe>>>16^65535)){q.msg="invalid stored block lengths",D.mode=30;break}if(D.length=65535&fe,Ee=fe=0,D.mode=15,Ae===6)break e;case 15:D.mode=16;case 16:if(We=D.length){if(me<We&&(We=me),Me<We&&(We=Me),We===0)break e;W.arraySet(Fe,Je,Ce,We,Ue),me-=We,Ce+=We,Me-=We,Ue+=We,D.length-=We;break}D.mode=12;break;case 17:for(;Ee<14;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}if(D.nlen=257+(31&fe),fe>>>=5,Ee-=5,D.ndist=1+(31&fe),fe>>>=5,Ee-=5,D.ncode=4+(15&fe),fe>>>=4,Ee-=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(;Ee<3;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}D.lens[ee[D.have++]]=7&fe,fe>>>=3,Ee-=3}for(;D.have<19;)D.lens[ee[D.have++]]=0;if(D.lencode=D.lendyn,D.lenbits=7,N={bits:D.lenbits},Xe=g(0,D.lens,0,19,D.lencode,0,D.work,N),D.lenbits=N.bits,Xe){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(;Pt=(f=D.lencode[fe&(1<<D.lenbits)-1])>>>16&255,cr=65535&f,!((Ot=f>>>24)<=Ee);){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}if(cr<16)fe>>>=Ot,Ee-=Ot,D.lens[D.have++]=cr;else{if(cr===16){for(b=Ot+2;Ee<b;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}if(fe>>>=Ot,Ee-=Ot,D.have===0){q.msg="invalid bit length repeat",D.mode=30;break}k=D.lens[D.have-1],We=3+(3&fe),fe>>>=2,Ee-=2}else if(cr===17){for(b=Ot+3;Ee<b;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}Ee-=Ot,k=0,We=3+(7&(fe>>>=Ot)),fe>>>=3,Ee-=3}else{for(b=Ot+7;Ee<b;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}Ee-=Ot,k=0,We=11+(127&(fe>>>=Ot)),fe>>>=7,Ee-=7}if(D.have+We>D.nlen+D.ndist){q.msg="invalid bit length repeat",D.mode=30;break}for(;We--;)D.lens[D.have++]=k}}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,N={bits:D.lenbits},Xe=g($,D.lens,0,D.nlen,D.lencode,0,D.work,N),D.lenbits=N.bits,Xe){q.msg="invalid literal/lengths set",D.mode=30;break}if(D.distbits=6,D.distcode=D.distdyn,N={bits:D.distbits},Xe=g(_,D.lens,D.nlen,D.ndist,D.distcode,0,D.work,N),D.distbits=N.bits,Xe){q.msg="invalid distances set",D.mode=30;break}if(D.mode=20,Ae===6)break e;case 20:D.mode=21;case 21:if(6<=me&&258<=Me){q.next_out=Ue,q.avail_out=Me,q.next_in=Ce,q.avail_in=me,D.hold=fe,D.bits=Ee,I(q,ot),Ue=q.next_out,Fe=q.output,Me=q.avail_out,Ce=q.next_in,Je=q.input,me=q.avail_in,fe=D.hold,Ee=D.bits,D.mode===12&&(D.back=-1);break}for(D.back=0;Pt=(f=D.lencode[fe&(1<<D.lenbits)-1])>>>16&255,cr=65535&f,!((Ot=f>>>24)<=Ee);){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}if(Pt&&!(240&Pt)){for(nr=Ot,br=Pt,sr=cr;Pt=(f=D.lencode[sr+((fe&(1<<nr+br)-1)>>nr)])>>>16&255,cr=65535&f,!(nr+(Ot=f>>>24)<=Ee);){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}fe>>>=nr,Ee-=nr,D.back+=nr}if(fe>>>=Ot,Ee-=Ot,D.back+=Ot,D.length=cr,Pt===0){D.mode=26;break}if(32&Pt){D.back=-1,D.mode=12;break}if(64&Pt){q.msg="invalid literal/length code",D.mode=30;break}D.extra=15&Pt,D.mode=22;case 22:if(D.extra){for(b=D.extra;Ee<b;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}D.length+=fe&(1<<D.extra)-1,fe>>>=D.extra,Ee-=D.extra,D.back+=D.extra}D.was=D.length,D.mode=23;case 23:for(;Pt=(f=D.distcode[fe&(1<<D.distbits)-1])>>>16&255,cr=65535&f,!((Ot=f>>>24)<=Ee);){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}if(!(240&Pt)){for(nr=Ot,br=Pt,sr=cr;Pt=(f=D.distcode[sr+((fe&(1<<nr+br)-1)>>nr)])>>>16&255,cr=65535&f,!(nr+(Ot=f>>>24)<=Ee);){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}fe>>>=nr,Ee-=nr,D.back+=nr}if(fe>>>=Ot,Ee-=Ot,D.back+=Ot,64&Pt){q.msg="invalid distance code",D.mode=30;break}D.offset=cr,D.extra=15&Pt,D.mode=24;case 24:if(D.extra){for(b=D.extra;Ee<b;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}D.offset+=fe&(1<<D.extra)-1,fe>>>=D.extra,Ee-=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(Me===0)break e;if(We=ot-Me,D.offset>We){if((We=D.offset-We)>D.whave&&D.sane){q.msg="invalid distance too far back",D.mode=30;break}et=We>D.wnext?(We-=D.wnext,D.wsize-We):D.wnext-We,We>D.length&&(We=D.length),_t=D.window}else _t=Fe,et=Ue-D.offset,We=D.length;for(Me<We&&(We=Me),Me-=We,D.length-=We;Fe[Ue++]=_t[et++],--We;);D.length===0&&(D.mode=21);break;case 26:if(Me===0)break e;Fe[Ue++]=D.length,Me--,D.mode=21;break;case 27:if(D.wrap){for(;Ee<32;){if(me===0)break e;me--,fe|=Je[Ce++]<<Ee,Ee+=8}if(ot-=Me,q.total_out+=ot,D.total+=ot,ot&&(q.adler=D.check=D.flags?m(D.check,Fe,ot,Ue-ot):S(D.check,Fe,ot,Ue-ot)),ot=Me,(D.flags?fe:Q(fe))!==D.check){q.msg="incorrect data check",D.mode=30;break}Ee=fe=0}D.mode=28;case 28:if(D.wrap&&D.flags){for(;Ee<32;){if(me===0)break e;me--,fe+=Je[Ce++]<<Ee,Ee+=8}if(fe!==(4294967295&D.total)){q.msg="incorrect length check",D.mode=30;break}Ee=fe=0}D.mode=29;case 29:Xe=1;break e;case 30:Xe=-3;break e;case 31:return-4;case 32:default:return P}return q.next_out=Ue,q.avail_out=Me,q.next_in=Ce,q.avail_in=me,D.hold=fe,D.bits=Ee,(D.wsize||ot!==q.avail_out&&D.mode<30&&(D.mode<27||Ae!==4))&&Pe(q,q.output,q.next_out,ot-q.avail_out)?(D.mode=31,-4):(rt-=q.avail_in,ot-=q.avail_out,q.total_in+=rt,q.total_out+=ot,D.total+=ot,D.wrap&&ot&&(q.adler=D.check=D.flags?m(D.check,Fe,ot,q.next_out-ot):S(D.check,Fe,ot,q.next_out-ot)),q.data_type=D.bits+(D.last?64:0)+(D.mode===12?128:0)+(D.mode===20||D.mode===15?256:0),(rt==0&&ot===0||Ae===4)&&Xe===F&&(Xe=-5),Xe)},re.inflateEnd=function(q){if(!q||!q.state)return P;var Ae=q.state;return Ae.window&&(Ae.window=null),q.state=null,F},re.inflateGetHeader=function(q,Ae){var D;return q&&q.state&&2&(D=q.state).wrap?((D.head=Ae).done=!1,F):P},re.inflateSetDictionary=function(q,Ae){var D,Je=Ae.length;return q&&q.state?(D=q.state).wrap!==0&&D.mode!==11?P:D.mode===11&&S(1,Ae,Je,0)!==D.check?-3:Pe(q,Ae,Je,Je)?(D.mode=31,-4):(D.havedict=1,F):P},re.inflateInfo="pako inflate (from Nodeca project)"},{"../utils/common":41,"./adler32":43,"./crc32":45,"./inffast":48,"./inftrees":50}],50:[function(T,De,re){"use strict";var W=T("../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],m=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],I=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],g=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];De.exports=function($,_,F,P,U,M,Y,Q){var ae,ie,J,G,j,se,he,Ne,Be,Pe=Q.bits,q=0,Ae=0,D=0,Je=0,Fe=0,Ce=0,Ue=0,me=0,Me=0,fe=0,Ee=null,rt=0,ot=new W.Buf16(16),We=new W.Buf16(16),et=null,_t=0;for(q=0;q<=15;q++)ot[q]=0;for(Ae=0;Ae<P;Ae++)ot[_[F+Ae]]++;for(Fe=Pe,Je=15;1<=Je&&ot[Je]===0;Je--);if(Je<Fe&&(Fe=Je),Je===0)return U[M++]=20971520,U[M++]=20971520,Q.bits=1,0;for(D=1;D<Je&&ot[D]===0;D++);for(Fe<D&&(Fe=D),q=me=1;q<=15;q++)if(me<<=1,(me-=ot[q])<0)return-1;if(0<me&&($===0||Je!==1))return-1;for(We[1]=0,q=1;q<15;q++)We[q+1]=We[q]+ot[q];for(Ae=0;Ae<P;Ae++)_[F+Ae]!==0&&(Y[We[_[F+Ae]]++]=Ae);if(se=$===0?(Ee=et=Y,19):$===1?(Ee=S,rt-=257,et=m,_t-=257,256):(Ee=I,et=g,-1),q=D,j=M,Ue=Ae=fe=0,J=-1,G=(Me=1<<(Ce=Fe))-1,$===1&&852<Me||$===2&&592<Me)return 1;for(;;){for(he=q-Ue,Be=Y[Ae]<se?(Ne=0,Y[Ae]):Y[Ae]>se?(Ne=et[_t+Y[Ae]],Ee[rt+Y[Ae]]):(Ne=96,0),ae=1<<q-Ue,D=ie=1<<Ce;U[j+(fe>>Ue)+(ie-=ae)]=he<<24|Ne<<16|Be|0,ie!==0;);for(ae=1<<q-1;fe&ae;)ae>>=1;if(ae!==0?(fe&=ae-1,fe+=ae):fe=0,Ae++,--ot[q]==0){if(q===Je)break;q=_[F+Y[Ae]]}if(Fe<q&&(fe&G)!==J){for(Ue===0&&(Ue=Fe),j+=D,me=1<<(Ce=q-Ue);Ce+Ue<Je&&!((me-=ot[Ce+Ue])<=0);)Ce++,me<<=1;if(Me+=1<<Ce,$===1&&852<Me||$===2&&592<Me)return 1;U[J=fe&G]=Fe<<24|Ce<<16|j-M|0}}return fe!==0&&(U[j+fe]=q-Ue<<24|64<<16|0),Q.bits=Fe,0}},{"../utils/common":41}],51:[function(T,De,re){"use strict";De.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},{}],52:[function(T,De,re){"use strict";var W=T("../utils/common"),S=0,m=1;function I(f){for(var C=f.length;0<=--C;)f[C]=0}var g=0,$=29,_=256,F=_+1+$,P=30,U=19,M=2*F+1,Y=15,Q=16,ae=7,ie=256,J=16,G=17,j=18,se=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],he=[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],Be=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],Pe=new Array(2*(F+2));I(Pe);var q=new Array(2*P);I(q);var Ae=new Array(512);I(Ae);var D=new Array(256);I(D);var Je=new Array($);I(Je);var Fe,Ce,Ue,me=new Array(P);function Me(f,C,ee,Se,H){this.static_tree=f,this.extra_bits=C,this.extra_base=ee,this.elems=Se,this.max_length=H,this.has_stree=f&&f.length}function fe(f,C){this.dyn_tree=f,this.max_code=0,this.stat_desc=C}function Ee(f){return f<256?Ae[f]:Ae[256+(f>>>7)]}function rt(f,C){f.pending_buf[f.pending++]=255&C,f.pending_buf[f.pending++]=C>>>8&255}function ot(f,C,ee){f.bi_valid>Q-ee?(f.bi_buf|=C<<f.bi_valid&65535,rt(f,f.bi_buf),f.bi_buf=C>>Q-f.bi_valid,f.bi_valid+=ee-Q):(f.bi_buf|=C<<f.bi_valid&65535,f.bi_valid+=ee)}function We(f,C,ee){ot(f,ee[2*C],ee[2*C+1])}function et(f,C){for(var ee=0;ee|=1&f,f>>>=1,ee<<=1,0<--C;);return ee>>>1}function _t(f,C,ee){var Se,H,ne=new Array(Y+1),Qe=0;for(Se=1;Se<=Y;Se++)ne[Se]=Qe=Qe+ee[Se-1]<<1;for(H=0;H<=C;H++){var we=f[2*H+1];we!==0&&(f[2*H]=et(ne[we]++,we))}}function Ot(f){var C;for(C=0;C<F;C++)f.dyn_ltree[2*C]=0;for(C=0;C<P;C++)f.dyn_dtree[2*C]=0;for(C=0;C<U;C++)f.bl_tree[2*C]=0;f.dyn_ltree[2*ie]=1,f.opt_len=f.static_len=0,f.last_lit=f.matches=0}function Pt(f){8<f.bi_valid?rt(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 cr(f,C,ee,Se){var H=2*C,ne=2*ee;return f[H]<f[ne]||f[H]===f[ne]&&Se[C]<=Se[ee]}function nr(f,C,ee){for(var Se=f.heap[ee],H=ee<<1;H<=f.heap_len&&(H<f.heap_len&&cr(C,f.heap[H+1],f.heap[H],f.depth)&&H++,!cr(C,Se,f.heap[H],f.depth));)f.heap[ee]=f.heap[H],ee=H,H<<=1;f.heap[ee]=Se}function br(f,C,ee){var Se,H,ne,Qe,we=0;if(f.last_lit!==0)for(;Se=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++,Se===0?We(f,H,C):(We(f,(ne=D[H])+_+1,C),(Qe=se[ne])!==0&&ot(f,H-=Je[ne],Qe),We(f,ne=Ee(--Se),ee),(Qe=he[ne])!==0&&ot(f,Se-=me[ne],Qe)),we<f.last_lit;);We(f,ie,C)}function sr(f,C){var ee,Se,H,ne=C.dyn_tree,Qe=C.stat_desc.static_tree,we=C.stat_desc.has_stree,ye=C.stat_desc.elems,je=-1;for(f.heap_len=0,f.heap_max=M,ee=0;ee<ye;ee++)ne[2*ee]!==0?(f.heap[++f.heap_len]=je=ee,f.depth[ee]=0):ne[2*ee+1]=0;for(;f.heap_len<2;)ne[2*(H=f.heap[++f.heap_len]=je<2?++je:0)]=1,f.depth[H]=0,f.opt_len--,we&&(f.static_len-=Qe[2*H+1]);for(C.max_code=je,ee=f.heap_len>>1;1<=ee;ee--)nr(f,ne,ee);for(H=ye;ee=f.heap[1],f.heap[1]=f.heap[f.heap_len--],nr(f,ne,1),Se=f.heap[1],f.heap[--f.heap_max]=ee,f.heap[--f.heap_max]=Se,ne[2*H]=ne[2*ee]+ne[2*Se],f.depth[H]=(f.depth[ee]>=f.depth[Se]?f.depth[ee]:f.depth[Se])+1,ne[2*ee+1]=ne[2*Se+1]=H,f.heap[1]=H++,nr(f,ne,1),2<=f.heap_len;);f.heap[--f.heap_max]=f.heap[1],function(mt,ge){var st,ze,Ie,Le,ct,Tt,Mt=ge.dyn_tree,Yt=ge.max_code,_r=ge.stat_desc.static_tree,Sr=ge.stat_desc.has_stree,Lr=ge.stat_desc.extra_bits,Er=ge.stat_desc.extra_base,Ar=ge.stat_desc.max_length,ar=0;for(Le=0;Le<=Y;Le++)mt.bl_count[Le]=0;for(Mt[2*mt.heap[mt.heap_max]+1]=0,st=mt.heap_max+1;st<M;st++)Ar<(Le=Mt[2*Mt[2*(ze=mt.heap[st])+1]+1]+1)&&(Le=Ar,ar++),Mt[2*ze+1]=Le,Yt<ze||(mt.bl_count[Le]++,ct=0,Er<=ze&&(ct=Lr[ze-Er]),Tt=Mt[2*ze],mt.opt_len+=Tt*(Le+ct),Sr&&(mt.static_len+=Tt*(_r[2*ze+1]+ct)));if(ar!==0){do{for(Le=Ar-1;mt.bl_count[Le]===0;)Le--;mt.bl_count[Le]--,mt.bl_count[Le+1]+=2,mt.bl_count[Ar]--,ar-=2}while(0<ar);for(Le=Ar;Le!==0;Le--)for(ze=mt.bl_count[Le];ze!==0;)Yt<(Ie=mt.heap[--st])||(Mt[2*Ie+1]!==Le&&(mt.opt_len+=(Le-Mt[2*Ie+1])*Mt[2*Ie],Mt[2*Ie+1]=Le),ze--)}}(f,C),_t(ne,je,f.bl_count)}function k(f,C,ee){var Se,H,ne=-1,Qe=C[1],we=0,ye=7,je=4;for(Qe===0&&(ye=138,je=3),C[2*(ee+1)+1]=65535,Se=0;Se<=ee;Se++)H=Qe,Qe=C[2*(Se+1)+1],++we<ye&&H===Qe||(we<je?f.bl_tree[2*H]+=we:H!==0?(H!==ne&&f.bl_tree[2*H]++,f.bl_tree[2*J]++):we<=10?f.bl_tree[2*G]++:f.bl_tree[2*j]++,ne=H,je=(we=0)===Qe?(ye=138,3):H===Qe?(ye=6,3):(ye=7,4))}function Xe(f,C,ee){var Se,H,ne=-1,Qe=C[1],we=0,ye=7,je=4;for(Qe===0&&(ye=138,je=3),Se=0;Se<=ee;Se++)if(H=Qe,Qe=C[2*(Se+1)+1],!(++we<ye&&H===Qe)){if(we<je)for(;We(f,H,f.bl_tree),--we!=0;);else H!==0?(H!==ne&&(We(f,H,f.bl_tree),we--),We(f,J,f.bl_tree),ot(f,we-3,2)):we<=10?(We(f,G,f.bl_tree),ot(f,we-3,3)):(We(f,j,f.bl_tree),ot(f,we-11,7));ne=H,je=(we=0)===Qe?(ye=138,3):H===Qe?(ye=6,3):(ye=7,4)}}I(me);var N=!1;function b(f,C,ee,Se){ot(f,(g<<1)+(Se?1:0),3),function(H,ne,Qe,we){Pt(H),we&&(rt(H,Qe),rt(H,~Qe)),W.arraySet(H.pending_buf,H.window,ne,Qe,H.pending),H.pending+=Qe}(f,C,ee,!0)}re._tr_init=function(f){N||(function(){var C,ee,Se,H,ne,Qe=new Array(Y+1);for(H=Se=0;H<$-1;H++)for(Je[H]=Se,C=0;C<1<<se[H];C++)D[Se++]=H;for(D[Se-1]=H,H=ne=0;H<16;H++)for(me[H]=ne,C=0;C<1<<he[H];C++)Ae[ne++]=H;for(ne>>=7;H<P;H++)for(me[H]=ne<<7,C=0;C<1<<he[H]-7;C++)Ae[256+ne++]=H;for(ee=0;ee<=Y;ee++)Qe[ee]=0;for(C=0;C<=143;)Pe[2*C+1]=8,C++,Qe[8]++;for(;C<=255;)Pe[2*C+1]=9,C++,Qe[9]++;for(;C<=279;)Pe[2*C+1]=7,C++,Qe[7]++;for(;C<=287;)Pe[2*C+1]=8,C++,Qe[8]++;for(_t(Pe,F+1,Qe),C=0;C<P;C++)q[2*C+1]=5,q[2*C]=et(C,5);Fe=new Me(Pe,se,_+1,F,Y),Ce=new Me(q,he,0,P,Y),Ue=new Me(new Array(0),Ne,0,U,ae)}(),N=!0),f.l_desc=new fe(f.dyn_ltree,Fe),f.d_desc=new fe(f.dyn_dtree,Ce),f.bl_desc=new fe(f.bl_tree,Ue),f.bi_buf=0,f.bi_valid=0,Ot(f)},re._tr_stored_block=b,re._tr_flush_block=function(f,C,ee,Se){var H,ne,Qe=0;0<f.level?(f.strm.data_type===2&&(f.strm.data_type=function(we){var ye,je=4093624447;for(ye=0;ye<=31;ye++,je>>>=1)if(1&je&&we.dyn_ltree[2*ye]!==0)return S;if(we.dyn_ltree[18]!==0||we.dyn_ltree[20]!==0||we.dyn_ltree[26]!==0)return m;for(ye=32;ye<_;ye++)if(we.dyn_ltree[2*ye]!==0)return m;return S}(f)),sr(f,f.l_desc),sr(f,f.d_desc),Qe=function(we){var ye;for(k(we,we.dyn_ltree,we.l_desc.max_code),k(we,we.dyn_dtree,we.d_desc.max_code),sr(we,we.bl_desc),ye=U-1;3<=ye&&we.bl_tree[2*Be[ye]+1]===0;ye--);return we.opt_len+=3*(ye+1)+5+5+4,ye}(f),H=f.opt_len+3+7>>>3,(ne=f.static_len+3+7>>>3)<=H&&(H=ne)):H=ne=ee+5,ee+4<=H&&C!==-1?b(f,C,ee,Se):f.strategy===4||ne===H?(ot(f,2+(Se?1:0),3),br(f,Pe,q)):(ot(f,4+(Se?1:0),3),function(we,ye,je,mt){var ge;for(ot(we,ye-257,5),ot(we,je-1,5),ot(we,mt-4,4),ge=0;ge<mt;ge++)ot(we,we.bl_tree[2*Be[ge]+1],3);Xe(we,we.dyn_ltree,ye-1),Xe(we,we.dyn_dtree,je-1)}(f,f.l_desc.max_code+1,f.d_desc.max_code+1,Qe+1),br(f,f.dyn_ltree,f.dyn_dtree)),Ot(f),Se&&Pt(f)},re._tr_tally=function(f,C,ee){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&ee,f.last_lit++,C===0?f.dyn_ltree[2*ee]++:(f.matches++,C--,f.dyn_ltree[2*(D[ee]+_+1)]++,f.dyn_dtree[2*Ee(C)]++),f.last_lit===f.lit_bufsize-1},re._tr_align=function(f){ot(f,2,3),We(f,ie,Pe),function(C){C.bi_valid===16?(rt(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(T,De,re){"use strict";De.exports=function(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}},{}],54:[function(T,De,re){(function(W){(function(S,m){"use strict";if(!S.setImmediate){var I,g,$,_,F=1,P={},U=!1,M=S.document,Y=Object.getPrototypeOf&&Object.getPrototypeOf(S);Y=Y&&Y.setTimeout?Y:S,I={}.toString.call(S.process)==="[object process]"?function(J){ue.nextTick(function(){ae(J)})}:function(){if(S.postMessage&&!S.importScripts){var J=!0,G=S.onmessage;return S.onmessage=function(){J=!1},S.postMessage("","*"),S.onmessage=G,J}}()?(_="setImmediate$"+Math.random()+"$",S.addEventListener?S.addEventListener("message",ie,!1):S.attachEvent("onmessage",ie),function(J){S.postMessage(_+J,"*")}):S.MessageChannel?(($=new MessageChannel).port1.onmessage=function(J){ae(J.data)},function(J){$.port2.postMessage(J)}):M&&"onreadystatechange"in M.createElement("script")?(g=M.documentElement,function(J){var G=M.createElement("script");G.onreadystatechange=function(){ae(J),G.onreadystatechange=null,g.removeChild(G),G=null},g.appendChild(G)}):function(J){setTimeout(ae,0,J)},Y.setImmediate=function(J){typeof J!="function"&&(J=new Function(""+J));for(var G=new Array(arguments.length-1),j=0;j<G.length;j++)G[j]=arguments[j+1];var se={callback:J,args:G};return P[F]=se,I(F),F++},Y.clearImmediate=Q}function Q(J){delete P[J]}function ae(J){if(U)setTimeout(ae,0,J);else{var G=P[J];if(G){U=!0;try{(function(j){var se=j.callback,he=j.args;switch(he.length){case 0:se();break;case 1:se(he[0]);break;case 2:se(he[0],he[1]);break;case 3:se(he[0],he[1],he[2]);break;default:se.apply(m,he)}})(G)}finally{Q(J),U=!1}}}}function ie(J){J.source===S&&typeof J.data=="string"&&J.data.indexOf(_)===0&&ae(+J.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(dn,Ut,x){"use strict";var ve=x(54476),ue=x(33885),T=x(20068),De=x(42978),re=x(75931),W=x(92310),S=x.n(W),m=x(18929),I=x(59301),g=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],$=(0,I.forwardRef)(function(_,F){var P,U=_.prefixCls,M=U===void 0?"rc-checkbox":U,Y=_.className,Q=_.style,ae=_.checked,ie=_.disabled,J=_.defaultChecked,G=J===void 0?!1:J,j=_.type,se=j===void 0?"checkbox":j,he=_.title,Ne=_.onChange,Be=(0,re.Z)(_,g),Pe=(0,I.useRef)(null),q=(0,m.Z)(G,{value:ae}),Ae=(0,De.Z)(q,2),D=Ae[0],Je=Ae[1];(0,I.useImperativeHandle)(F,function(){return{focus:function(){var me;(me=Pe.current)===null||me===void 0||me.focus()},blur:function(){var me;(me=Pe.current)===null||me===void 0||me.blur()},input:Pe.current}});var Fe=S()(M,Y,(P={},(0,T.Z)(P,"".concat(M,"-checked"),D),(0,T.Z)(P,"".concat(M,"-disabled"),ie),P)),Ce=function(me){ie||("checked"in _||Je(me.target.checked),Ne==null||Ne({target:(0,ue.Z)((0,ue.Z)({},_),{},{type:se,checked:me.target.checked}),stopPropagation:function(){me.stopPropagation()},preventDefault:function(){me.preventDefault()},nativeEvent:me.nativeEvent}))};return I.createElement("span",{className:Fe,title:he,style:Q},I.createElement("input",(0,ve.Z)({},Be,{className:"".concat(M,"-input"),ref:Pe,onChange:Ce,disabled:ie,checked:!!D,type:se})),I.createElement("span",{className:"".concat(M,"-inner")}))});Ut.Z=$},31561:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return se}});var ve=x(54476),ue=x(20068),T=x(42978),De=x(75931),re=x(35593),W=x(92310),S=x.n(W),m=x(8654),I=x(59301),g=x(10228),$=x(16089),_=g.Z.ESC,F=g.Z.TAB;function P(he){var Ne=he.visible,Be=he.triggerRef,Pe=he.onVisibleChange,q=he.autoFocus,Ae=he.overlayRef,D=I.useRef(!1),Je=function(){if(Ne){var me,Me;(me=Be.current)===null||me===void 0||(Me=me.focus)===null||Me===void 0||Me.call(me),Pe==null||Pe(!1)}},Fe=function(){var me;return(me=Ae.current)!==null&&me!==void 0&&me.focus?(Ae.current.focus(),D.current=!0,!0):!1},Ce=function(me){switch(me.keyCode){case _:Je();break;case F:{var Me=!1;D.current||(Me=Fe()),Me?me.preventDefault():Je();break}}};I.useEffect(function(){return Ne?(window.addEventListener("keydown",Ce),q&&(0,$.Z)(Fe,3),function(){window.removeEventListener("keydown",Ce),D.current=!1}):function(){D.current=!1}},[Ne])}var U=(0,I.forwardRef)(function(he,Ne){var Be=he.overlay,Pe=he.arrow,q=he.prefixCls,Ae=(0,I.useMemo)(function(){var Je;return typeof Be=="function"?Je=Be():Je=Be,Je},[Be]),D=(0,m.sQ)(Ne,Ae==null?void 0:Ae.ref);return I.createElement(I.Fragment,null,Pe&&I.createElement("div",{className:"".concat(q,"-arrow")}),I.cloneElement(Ae,{ref:(0,m.Yr)(Ae)?D:void 0}))}),M=U,Y={adjustX:1,adjustY:1},Q=[0,0],ae={topLeft:{points:["bl","tl"],overflow:Y,offset:[0,-4],targetOffset:Q},top:{points:["bc","tc"],overflow:Y,offset:[0,-4],targetOffset:Q},topRight:{points:["br","tr"],overflow:Y,offset:[0,-4],targetOffset:Q},bottomLeft:{points:["tl","bl"],overflow:Y,offset:[0,4],targetOffset:Q},bottom:{points:["tc","bc"],overflow:Y,offset:[0,4],targetOffset:Q},bottomRight:{points:["tr","br"],overflow:Y,offset:[0,4],targetOffset:Q}},ie=ae,J=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function G(he,Ne){var Be,Pe=he.arrow,q=Pe===void 0?!1:Pe,Ae=he.prefixCls,D=Ae===void 0?"rc-dropdown":Ae,Je=he.transitionName,Fe=he.animation,Ce=he.align,Ue=he.placement,me=Ue===void 0?"bottomLeft":Ue,Me=he.placements,fe=Me===void 0?ie:Me,Ee=he.getPopupContainer,rt=he.showAction,ot=he.hideAction,We=he.overlayClassName,et=he.overlayStyle,_t=he.visible,Ot=he.trigger,Pt=Ot===void 0?["hover"]:Ot,cr=he.autoFocus,nr=he.overlay,br=he.children,sr=he.onVisibleChange,k=(0,De.Z)(he,J),Xe=I.useState(),N=(0,T.Z)(Xe,2),b=N[0],f=N[1],C="visible"in he?_t:b,ee=I.useRef(null),Se=I.useRef(null),H=I.useRef(null);I.useImperativeHandle(Ne,function(){return ee.current});var ne=function(Ie){f(Ie),sr==null||sr(Ie)};P({visible:C,triggerRef:H,onVisibleChange:ne,autoFocus:cr,overlayRef:Se});var Qe=function(Ie){var Le=he.onOverlayClick;f(!1),Le&&Le(Ie)},we=function(){return I.createElement(M,{ref:Se,overlay:nr,prefixCls:D,arrow:q})},ye=function(){return typeof nr=="function"?we:we()},je=function(){var Ie=he.minOverlayWidthMatchTrigger,Le=he.alignPoint;return"minOverlayWidthMatchTrigger"in he?Ie:!Le},mt=function(){var Ie=he.openClassName;return Ie!==void 0?Ie:"".concat(D,"-open")},ge=I.cloneElement(br,{className:S()((Be=br.props)===null||Be===void 0?void 0:Be.className,C&&mt()),ref:(0,m.Yr)(br)?(0,m.sQ)(H,br.ref):void 0}),st=ot;return!st&&Pt.indexOf("contextMenu")!==-1&&(st=["click"]),I.createElement(re.Z,(0,ve.Z)({builtinPlacements:fe},k,{prefixCls:D,ref:ee,popupClassName:S()(We,(0,ue.Z)({},"".concat(D,"-show-arrow"),q)),popupStyle:et,action:Pt,showAction:rt,hideAction:st,popupPlacement:me,popupAlign:Ce,popupTransitionName:Je,popupAnimation:Fe,popupVisible:C,stretch:je()?"minWidth":"",popup:ye(),onPopupVisibleChange:ne,onPopupClick:Qe,getPopupContainer:Ee}),ge)}var j=I.forwardRef(G),se=j},93681:function(dn,Ut,x){"use strict";x.r(Ut),x.d(Ut,{BaseInput:function(){return g},default:function(){return ae}});var ve=x(54476),ue=x(33885),T=x(20068),De=x(76190),re=x(92310),W=x.n(re),S=x(59301),m=x(5643),I=function(J){var G,j,se=J.inputElement,he=J.prefixCls,Ne=J.prefix,Be=J.suffix,Pe=J.addonBefore,q=J.addonAfter,Ae=J.className,D=J.style,Je=J.disabled,Fe=J.readOnly,Ce=J.focused,Ue=J.triggerFocus,me=J.allowClear,Me=J.value,fe=J.handleReset,Ee=J.hidden,rt=J.classes,ot=J.classNames,We=J.dataAttrs,et=J.styles,_t=J.components,Ot=(_t==null?void 0:_t.affixWrapper)||"span",Pt=(_t==null?void 0:_t.groupWrapper)||"span",cr=(_t==null?void 0:_t.wrapper)||"span",nr=(_t==null?void 0:_t.groupAddon)||"span",br=(0,S.useRef)(null),sr=function(we){var ye;(ye=br.current)!==null&&ye!==void 0&&ye.contains(we.target)&&(Ue==null||Ue())},k=function(){var we;if(!me)return null;var ye=!Je&&!Fe&&Me,je="".concat(he,"-clear-icon"),mt=(0,De.Z)(me)==="object"&&me!==null&&me!==void 0&&me.clearIcon?me.clearIcon:"\u2716";return S.createElement("span",{onClick:fe,onMouseDown:function(st){return st.preventDefault()},className:W()(je,(we={},(0,T.Z)(we,"".concat(je,"-hidden"),!ye),(0,T.Z)(we,"".concat(je,"-has-suffix"),!!Be),we)),role:"button",tabIndex:-1},mt)},Xe=(0,S.cloneElement)(se,{value:Me,hidden:Ee,className:W()((G=se.props)===null||G===void 0?void 0:G.className,!(0,m.X3)(J)&&!(0,m.He)(J)&&Ae)||null,style:(0,ue.Z)((0,ue.Z)({},(j=se.props)===null||j===void 0?void 0:j.style),!(0,m.X3)(J)&&!(0,m.He)(J)?D:{})});if((0,m.X3)(J)){var N,b="".concat(he,"-affix-wrapper"),f=W()(b,(N={},(0,T.Z)(N,"".concat(b,"-disabled"),Je),(0,T.Z)(N,"".concat(b,"-focused"),Ce),(0,T.Z)(N,"".concat(b,"-readonly"),Fe),(0,T.Z)(N,"".concat(b,"-input-with-clear-btn"),Be&&me&&Me),N),!(0,m.He)(J)&&Ae,rt==null?void 0:rt.affixWrapper,ot==null?void 0:ot.affixWrapper),C=(Be||me)&&S.createElement("span",{className:W()("".concat(he,"-suffix"),ot==null?void 0:ot.suffix),style:et==null?void 0:et.suffix},k(),Be);Xe=S.createElement(Ot,(0,ve.Z)({className:f,style:(0,ue.Z)((0,ue.Z)({},(0,m.He)(J)?void 0:D),et==null?void 0:et.affixWrapper),hidden:!(0,m.He)(J)&&Ee,onClick:sr},We==null?void 0:We.affixWrapper,{ref:br}),Ne&&S.createElement("span",{className:W()("".concat(he,"-prefix"),ot==null?void 0:ot.prefix),style:et==null?void 0:et.prefix},Ne),(0,S.cloneElement)(se,{value:Me,hidden:null}),C)}if((0,m.He)(J)){var ee="".concat(he,"-group"),Se="".concat(ee,"-addon"),H=W()("".concat(he,"-wrapper"),ee,rt==null?void 0:rt.wrapper),ne=W()("".concat(he,"-group-wrapper"),Ae,rt==null?void 0:rt.group);return S.createElement(Pt,{className:ne,style:D,hidden:Ee},S.createElement(cr,{className:H},Pe&&S.createElement(nr,{className:Se},Pe),(0,S.cloneElement)(Xe,{hidden:null}),q&&S.createElement(nr,{className:Se},q)))}return Xe},g=I,$=x(94480),_=x(42978),F=x(75931),P=x(18929),U=x(2738),M=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","type","classes","classNames","styles"],Y=(0,S.forwardRef)(function(ie,J){var G=ie.autoComplete,j=ie.onChange,se=ie.onFocus,he=ie.onBlur,Ne=ie.onPressEnter,Be=ie.onKeyDown,Pe=ie.prefixCls,q=Pe===void 0?"rc-input":Pe,Ae=ie.disabled,D=ie.htmlSize,Je=ie.className,Fe=ie.maxLength,Ce=ie.suffix,Ue=ie.showCount,me=ie.type,Me=me===void 0?"text":me,fe=ie.classes,Ee=ie.classNames,rt=ie.styles,ot=(0,F.Z)(ie,M),We=(0,P.Z)(ie.defaultValue,{value:ie.value}),et=(0,_.Z)(We,2),_t=et[0],Ot=et[1],Pt=(0,S.useState)(!1),cr=(0,_.Z)(Pt,2),nr=cr[0],br=cr[1],sr=(0,S.useRef)(null),k=function(ne){sr.current&&(0,m.nH)(sr.current,ne)};(0,S.useImperativeHandle)(J,function(){return{focus:k,blur:function(){var ne;(ne=sr.current)===null||ne===void 0||ne.blur()},setSelectionRange:function(ne,Qe,we){var ye;(ye=sr.current)===null||ye===void 0||ye.setSelectionRange(ne,Qe,we)},select:function(){var ne;(ne=sr.current)===null||ne===void 0||ne.select()},input:sr.current}}),(0,S.useEffect)(function(){br(function(H){return H&&Ae?!1:H})},[Ae]);var Xe=function(ne){ie.value===void 0&&Ot(ne.target.value),sr.current&&(0,m.rJ)(sr.current,ne,j)},N=function(ne){Ne&&ne.key==="Enter"&&Ne(ne),Be==null||Be(ne)},b=function(ne){br(!0),se==null||se(ne)},f=function(ne){br(!1),he==null||he(ne)},C=function(ne){Ot(""),k(),sr.current&&(0,m.rJ)(sr.current,ne,j)},ee=function(){var ne=(0,U.Z)(ie,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","classes","htmlSize","styles","classNames"]);return S.createElement("input",(0,ve.Z)({autoComplete:G},ne,{onChange:Xe,onFocus:b,onBlur:f,onKeyDown:N,className:W()(q,(0,T.Z)({},"".concat(q,"-disabled"),Ae),Ee==null?void 0:Ee.input),style:rt==null?void 0:rt.input,ref:sr,size:D,type:Me}))},Se=function(){var ne=Number(Fe)>0;if(Ce||Ue){var Qe=(0,m.D7)(_t),we=(0,$.Z)(Qe).length,ye=(0,De.Z)(Ue)==="object"?Ue.formatter({value:Qe,count:we,maxLength:Fe}):"".concat(we).concat(ne?" / ".concat(Fe):"");return S.createElement(S.Fragment,null,!!Ue&&S.createElement("span",{className:W()("".concat(q,"-show-count-suffix"),(0,T.Z)({},"".concat(q,"-show-count-has-suffix"),!!Ce),Ee==null?void 0:Ee.count),style:(0,ue.Z)({},rt==null?void 0:rt.count)},ye),Ce)}return null};return S.createElement(g,(0,ve.Z)({},ot,{prefixCls:q,className:Je,inputElement:ee(),handleReset:C,value:(0,m.D7)(_t),focused:nr,triggerFocus:k,suffix:Se(),disabled:Ae,classes:fe,classNames:Ee,styles:rt}))}),Q=Y,ae=Q},5643:function(dn,Ut,x){"use strict";x.d(Ut,{D7:function(){return re},He:function(){return ve},X3:function(){return ue},nH:function(){return De},rJ:function(){return T}});function ve(W){return!!(W.addonBefore||W.addonAfter)}function ue(W){return!!(W.prefix||W.suffix||W.allowClear)}function T(W,S,m,I){if(m){var g=S;if(S.type==="click"){var $=W.cloneNode(!0);g=Object.create(S,{target:{value:$},currentTarget:{value:$}}),$.value="",m(g);return}if(I!==void 0){g=Object.create(S,{target:{value:W},currentTarget:{value:W}}),W.value=I,m(g);return}m(g)}}function De(W,S){if(W){W.focus(S);var m=S||{},I=m.cursor;if(I){var g=W.value.length;switch(I){case"start":W.setSelectionRange(0,0);break;case"end":W.setSelectionRange(g,g);break;default:W.setSelectionRange(0,g)}}}}function re(W){return typeof W=="undefined"||W===null?"":String(W)}},15285:function(dn,Ut,x){"use strict";x.d(Ut,{iz:function(){return jr},ck:function(){return gn},BW:function(){return an},sN:function(){return gn},Wd:function(){return kt},ZP:function(){return An},Xl:function(){return Be}});var ve=x(54476),ue=x(20068),T=x(33885),De=x(94480),re=x(42978),W=x(75931),S=x(92310),m=x.n(S),I=x(11780),g=x(18929),$=x(13697),_=x(48736),F=x(59301),P=x(4676),U=F.createContext(null);function M(Dt,Kt){return Dt===void 0?null:"".concat(Dt,"-").concat(Kt)}function Y(Dt){var Kt=F.useContext(U);return M(Kt,Dt)}var Q=x(80547),ae=["children","locked"],ie=F.createContext(null);function J(Dt,Kt){var Gt=(0,T.Z)({},Dt);return Object.keys(Kt).forEach(function(Jt){var Zt=Kt[Jt];Zt!==void 0&&(Gt[Jt]=Zt)}),Gt}function G(Dt){var Kt=Dt.children,Gt=Dt.locked,Jt=(0,W.Z)(Dt,ae),Zt=F.useContext(ie),Dr=(0,Q.Z)(function(){return J(Zt,Jt)},[Zt,Jt],function(Fr,Xr){return!Gt&&(Fr[0]!==Xr[0]||!(0,$.Z)(Fr[1],Xr[1],!0))});return F.createElement(ie.Provider,{value:Dr},Kt)}var j=[],se=F.createContext(null);function he(){return F.useContext(se)}var Ne=F.createContext(j);function Be(Dt){var Kt=F.useContext(Ne);return F.useMemo(function(){return Dt!==void 0?[].concat((0,De.Z)(Kt),[Dt]):Kt},[Kt,Dt])}var Pe=F.createContext(null),q=F.createContext({}),Ae=q,D=x(29194);function Je(Dt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if((0,D.Z)(Dt)){var Gt=Dt.nodeName.toLowerCase(),Jt=["input","select","textarea","button"].includes(Gt)||Dt.isContentEditable||Gt==="a"&&!!Dt.getAttribute("href"),Zt=Dt.getAttribute("tabindex"),Dr=Number(Zt),Fr=null;return Zt&&!Number.isNaN(Dr)?Fr=Dr:Jt&&Fr===null&&(Fr=0),Jt&&Dt.disabled&&(Fr=null),Fr!==null&&(Fr>=0||Kt&&Fr<0)}return!1}function Fe(Dt){var Kt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Gt=(0,De.Z)(Dt.querySelectorAll("*")).filter(function(Jt){return Je(Jt,Kt)});return Je(Dt,Kt)&&Gt.unshift(Dt),Gt}var Ce=null;function Ue(){Ce=document.activeElement}function me(){Ce=null}function Me(){if(Ce)try{Ce.focus()}catch(Dt){}}function fe(Dt,Kt){if(Kt.keyCode===9){var Gt=Fe(Dt),Jt=Gt[Kt.shiftKey?0:Gt.length-1],Zt=Jt===document.activeElement||Dt===document.activeElement;if(Zt){var Dr=Gt[Kt.shiftKey?Gt.length-1:0];Dr.focus(),Kt.preventDefault()}}}var Ee=x(10228),rt=x(16089),ot=Ee.Z.LEFT,We=Ee.Z.RIGHT,et=Ee.Z.UP,_t=Ee.Z.DOWN,Ot=Ee.Z.ENTER,Pt=Ee.Z.ESC,cr=Ee.Z.HOME,nr=Ee.Z.END,br=[et,_t,ot,We];function sr(Dt,Kt,Gt,Jt){var Zt,Dr,Fr,Xr,Fn="prev",Nn="next",si="children",ti="parent";if(Dt==="inline"&&Jt===Ot)return{inlineTrigger:!0};var Bi=(Zt={},(0,ue.Z)(Zt,et,Fn),(0,ue.Z)(Zt,_t,Nn),Zt),Yn=(Dr={},(0,ue.Z)(Dr,ot,Gt?Nn:Fn),(0,ue.Z)(Dr,We,Gt?Fn:Nn),(0,ue.Z)(Dr,_t,si),(0,ue.Z)(Dr,Ot,si),Dr),jn=(Fr={},(0,ue.Z)(Fr,et,Fn),(0,ue.Z)(Fr,_t,Nn),(0,ue.Z)(Fr,Ot,si),(0,ue.Z)(Fr,Pt,ti),(0,ue.Z)(Fr,ot,Gt?si:ti),(0,ue.Z)(Fr,We,Gt?ti:si),Fr),yi={inline:Bi,horizontal:Yn,vertical:jn,inlineSub:Bi,horizontalSub:jn,verticalSub:jn},vi=(Xr=yi["".concat(Dt).concat(Kt?"":"Sub")])===null||Xr===void 0?void 0:Xr[Jt];switch(vi){case Fn:return{offset:-1,sibling:!0};case Nn:return{offset:1,sibling:!0};case ti:return{offset:-1,sibling:!1};case si:return{offset:1,sibling:!1};default:return null}}function k(Dt){for(var Kt=Dt;Kt;){if(Kt.getAttribute("data-menu-list"))return Kt;Kt=Kt.parentElement}return null}function Xe(Dt,Kt){for(var Gt=Dt||document.activeElement;Gt;){if(Kt.has(Gt))return Gt;Gt=Gt.parentElement}return null}function N(Dt,Kt){var Gt=Fe(Dt,!0);return Gt.filter(function(Jt){return Kt.has(Jt)})}function b(Dt,Kt,Gt){var Jt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!Dt)return null;var Zt=N(Dt,Kt),Dr=Zt.length,Fr=Zt.findIndex(function(Xr){return Gt===Xr});return Jt<0?Fr===-1?Fr=Dr-1:Fr-=1:Jt>0&&(Fr+=1),Fr=(Fr+Dr)%Dr,Zt[Fr]}var f=function(Kt,Gt){var Jt=new Set,Zt=new Map,Dr=new Map;return Kt.forEach(function(Fr){var Xr=document.querySelector("[data-menu-id='".concat(M(Gt,Fr),"']"));Xr&&(Jt.add(Xr),Dr.set(Xr,Fr),Zt.set(Fr,Xr))}),{elements:Jt,key2element:Zt,element2key:Dr}};function C(Dt,Kt,Gt,Jt,Zt,Dr,Fr,Xr,Fn,Nn){var si=F.useRef(),ti=F.useRef();ti.current=Kt;var Bi=function(){rt.Z.cancel(si.current)};return F.useEffect(function(){return function(){Bi()}},[]),function(Yn){var jn=Yn.which;if([].concat(br,[Ot,Pt,cr,nr]).includes(jn)){var yi=Dr(),vi=f(yi,Jt),wi=vi,li=wi.elements,xi=wi.key2element,$i=wi.element2key,ei=xi.get(Kt),Di=Xe(ei,li),Ha=$i.get(Di),oi=sr(Dt,Fr(Ha,!0).length===1,Gt,jn);if(!oi&&jn!==cr&&jn!==nr)return;(br.includes(jn)||[cr,nr].includes(jn))&&Yn.preventDefault();var hn=function(ca){if(ca){var Bo=ca,Wn=ca.querySelector("a");Wn!=null&&Wn.getAttribute("href")&&(Bo=Wn);var _n=$i.get(ca);Xr(_n),Bi(),si.current=(0,rt.Z)(function(){ti.current===_n&&Bo.focus()})}};if([cr,nr].includes(jn)||oi.sibling||!Di){var ln;!Di||Dt==="inline"?ln=Zt.current:ln=k(Di);var Xn,Kn=N(ln,li);jn===cr?Xn=Kn[0]:jn===nr?Xn=Kn[Kn.length-1]:Xn=b(ln,li,Di,oi.offset),hn(Xn)}else if(oi.inlineTrigger)Fn(Ha);else if(oi.offset>0)Fn(Ha,!0),Bi(),si.current=(0,rt.Z)(function(){vi=f(yi,Jt);var Ua=Di.getAttribute("aria-controls"),ca=document.getElementById(Ua),Bo=b(ca,vi.elements);hn(Bo)},5);else if(oi.offset<0){var Ai=Fr(Ha,!0),Wi=Ai[Ai.length-2],_i=xi.get(Wi);Fn(Wi,!1),hn(_i)}}Nn==null||Nn(Yn)}}function ee(Dt){Promise.resolve().then(Dt)}var Se="__RC_UTIL_PATH_SPLIT__",H=function(Kt){return Kt.join(Se)},ne=function(Kt){return Kt.split(Se)},Qe="rc-menu-more";function we(){var Dt=F.useState({}),Kt=(0,re.Z)(Dt,2),Gt=Kt[1],Jt=(0,F.useRef)(new Map),Zt=(0,F.useRef)(new Map),Dr=F.useState([]),Fr=(0,re.Z)(Dr,2),Xr=Fr[0],Fn=Fr[1],Nn=(0,F.useRef)(0),si=(0,F.useRef)(!1),ti=function(){si.current||Gt({})},Bi=(0,F.useCallback)(function(xi,$i){var ei=H($i);Zt.current.set(ei,xi),Jt.current.set(xi,ei),Nn.current+=1;var Di=Nn.current;ee(function(){Di===Nn.current&&ti()})},[]),Yn=(0,F.useCallback)(function(xi,$i){var ei=H($i);Zt.current.delete(ei),Jt.current.delete(xi)},[]),jn=(0,F.useCallback)(function(xi){Fn(xi)},[]),yi=(0,F.useCallback)(function(xi,$i){var ei=Jt.current.get(xi)||"",Di=ne(ei);return $i&&Xr.includes(Di[0])&&Di.unshift(Qe),Di},[Xr]),vi=(0,F.useCallback)(function(xi,$i){return xi.some(function(ei){var Di=yi(ei,!0);return Di.includes($i)})},[yi]),wi=function(){var $i=(0,De.Z)(Jt.current.keys());return Xr.length&&$i.push(Qe),$i},li=(0,F.useCallback)(function(xi){var $i="".concat(Jt.current.get(xi)).concat(Se),ei=new Set;return(0,De.Z)(Zt.current.keys()).forEach(function(Di){Di.startsWith($i)&&ei.add(Zt.current.get(Di))}),ei},[]);return F.useEffect(function(){return function(){si.current=!0}},[]),{registerPath:Bi,unregisterPath:Yn,refreshOverflowKeys:jn,isSubPathKey:vi,getKeyPath:yi,getKeys:wi,getSubPathKeys:li}}function ye(Dt){var Kt=F.useRef(Dt);Kt.current=Dt;var Gt=F.useCallback(function(){for(var Jt,Zt=arguments.length,Dr=new Array(Zt),Fr=0;Fr<Zt;Fr++)Dr[Fr]=arguments[Fr];return(Jt=Kt.current)===null||Jt===void 0?void 0:Jt.call.apply(Jt,[Kt].concat(Dr))},[]);return Dt?Gt:void 0}var je=Math.random().toFixed(5).toString().slice(2),mt=0;function ge(Dt){var Kt=(0,g.Z)(Dt,{value:Dt}),Gt=(0,re.Z)(Kt,2),Jt=Gt[0],Zt=Gt[1];return F.useEffect(function(){mt+=1;var Dr="".concat(je,"-").concat(mt);Zt("rc-menu-uuid-".concat(Dr))},[]),Jt}var st=x(67732),ze=x(83652),Ie=x(42403),Le=x(158),ct=x(2738),Tt=x(8654);function Mt(Dt,Kt,Gt,Jt){var Zt=F.useContext(ie),Dr=Zt.activeKey,Fr=Zt.onActive,Xr=Zt.onInactive,Fn={active:Dr===Dt};return Kt||(Fn.onMouseEnter=function(Nn){Gt==null||Gt({key:Dt,domEvent:Nn}),Fr(Dt)},Fn.onMouseLeave=function(Nn){Jt==null||Jt({key:Dt,domEvent:Nn}),Xr(Dt)}),Fn}function Yt(Dt){var Kt=F.useContext(ie),Gt=Kt.mode,Jt=Kt.rtl,Zt=Kt.inlineIndent;if(Gt!=="inline")return null;var Dr=Dt;return Jt?{paddingRight:Dr*Zt}:{paddingLeft:Dr*Zt}}function _r(Dt){var Kt=Dt.icon,Gt=Dt.props,Jt=Dt.children,Zt;return Kt===null||Kt===!1?null:(typeof Kt=="function"?Zt=F.createElement(Kt,(0,T.Z)({},Gt)):typeof Kt!="boolean"&&(Zt=Kt),Zt||Jt||null)}var Sr=["item"];function Lr(Dt){var Kt=Dt.item,Gt=(0,W.Z)(Dt,Sr);return Object.defineProperty(Gt,"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."),Kt}}),Gt}var Er=["title","attribute","elementRef"],Ar=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ar=["active"],Rr=function(Dt){(0,Ie.Z)(Gt,Dt);var Kt=(0,Le.Z)(Gt);function Gt(){return(0,st.Z)(this,Gt),Kt.apply(this,arguments)}return(0,ze.Z)(Gt,[{key:"render",value:function(){var Zt=this.props,Dr=Zt.title,Fr=Zt.attribute,Xr=Zt.elementRef,Fn=(0,W.Z)(Zt,Er),Nn=(0,ct.Z)(Fn,["eventKey","popupClassName","popupOffset","onTitleClick"]);return(0,_.ZP)(!Fr,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),F.createElement(I.Z.Item,(0,ve.Z)({},Fr,{title:typeof Dr=="string"?Dr:void 0},Nn,{ref:Xr}))}}]),Gt}(F.Component),fn=F.forwardRef(function(Dt,Kt){var Gt,Jt=Dt.style,Zt=Dt.className,Dr=Dt.eventKey,Fr=Dt.warnKey,Xr=Dt.disabled,Fn=Dt.itemIcon,Nn=Dt.children,si=Dt.role,ti=Dt.onMouseEnter,Bi=Dt.onMouseLeave,Yn=Dt.onClick,jn=Dt.onKeyDown,yi=Dt.onFocus,vi=(0,W.Z)(Dt,Ar),wi=Y(Dr),li=F.useContext(ie),xi=li.prefixCls,$i=li.onItemClick,ei=li.disabled,Di=li.overflowDisabled,Ha=li.itemIcon,oi=li.selectedKeys,hn=li.onActive,ln=F.useContext(Ae),Xn=ln._internalRenderMenuItem,Kn="".concat(xi,"-item"),Ai=F.useRef(),Wi=F.useRef(),_i=ei||Xr,Ua=(0,Tt.x1)(Kt,Wi),ca=Be(Dr),Bo=function(ho){return{key:Dr,keyPath:(0,De.Z)(ca).reverse(),item:Ai.current,domEvent:ho}},Wn=Fn||Ha,_n=Mt(Dr,_i,ti,Bi),Mi=_n.active,Zi=(0,W.Z)(_n,ar),Ia=oi.includes(Dr),Is=Yt(ca.length),za=function(ho){if(!_i){var vs=Bo(ho);Yn==null||Yn(Lr(vs)),$i(vs)}},da=function(ho){if(jn==null||jn(ho),ho.which===Ee.Z.ENTER){var vs=Bo(ho);Yn==null||Yn(Lr(vs)),$i(vs)}},Fo=function(ho){hn(Dr),yi==null||yi(ho)},So={};Dt.role==="option"&&(So["aria-selected"]=Ia);var Uo=F.createElement(Rr,(0,ve.Z)({ref:Ai,elementRef:Ua,role:si===null?"none":si||"menuitem",tabIndex:Xr?null:-1,"data-menu-id":Di&&wi?null:wi},vi,Zi,So,{component:"li","aria-disabled":Xr,style:(0,T.Z)((0,T.Z)({},Is),Jt),className:m()(Kn,(Gt={},(0,ue.Z)(Gt,"".concat(Kn,"-active"),Mi),(0,ue.Z)(Gt,"".concat(Kn,"-selected"),Ia),(0,ue.Z)(Gt,"".concat(Kn,"-disabled"),_i),Gt),Zt),onClick:za,onKeyDown:da,onFocus:Fo}),Nn,F.createElement(_r,{props:(0,T.Z)((0,T.Z)({},Dt),{},{isSelected:Ia}),icon:Wn}));return Xn&&(Uo=Xn(Uo,Dt,{selected:Ia})),Uo});function En(Dt,Kt){var Gt=Dt.eventKey,Jt=he(),Zt=Be(Gt);return F.useEffect(function(){if(Jt)return Jt.registerPath(Gt,Zt),function(){Jt.unregisterPath(Gt,Zt)}},[Zt]),Jt?null:F.createElement(fn,(0,ve.Z)({},Dt,{ref:Kt}))}var gn=F.forwardRef(En),Rn=["className","children"],ji=function(Kt,Gt){var Jt=Kt.className,Zt=Kt.children,Dr=(0,W.Z)(Kt,Rn),Fr=F.useContext(ie),Xr=Fr.prefixCls,Fn=Fr.mode,Nn=Fr.rtl;return F.createElement("ul",(0,ve.Z)({className:m()(Xr,Nn&&"".concat(Xr,"-rtl"),"".concat(Xr,"-sub"),"".concat(Xr,"-").concat(Fn==="inline"?"inline":"vertical"),Jt),role:"menu"},Dr,{"data-menu-list":!0,ref:Gt}),Zt)},Or=F.forwardRef(ji);Or.displayName="SubMenuList";var bi=Or,ua=x(11592);function gi(Dt,Kt){return(0,ua.Z)(Dt).map(function(Gt,Jt){if(F.isValidElement(Gt)){var Zt,Dr,Fr=Gt.key,Xr=(Zt=(Dr=Gt.props)===null||Dr===void 0?void 0:Dr.eventKey)!==null&&Zt!==void 0?Zt:Fr,Fn=Xr==null;Fn&&(Xr="tmp_key-".concat([].concat((0,De.Z)(Kt),[Jt]).join("-")));var Nn={key:Xr,eventKey:Xr};return F.cloneElement(Gt,Nn)}return Gt})}var ta=x(35593),Ji={adjustX:1,adjustY:1},aa={topLeft:{points:["bl","tl"],overflow:Ji},topRight:{points:["br","tr"],overflow:Ji},bottomLeft:{points:["tl","bl"],overflow:Ji},bottomRight:{points:["tr","br"],overflow:Ji},leftTop:{points:["tr","tl"],overflow:Ji},leftBottom:{points:["br","bl"],overflow:Ji},rightTop:{points:["tl","tr"],overflow:Ji},rightBottom:{points:["bl","br"],overflow:Ji}},Io={topLeft:{points:["bl","tl"],overflow:Ji},topRight:{points:["br","tr"],overflow:Ji},bottomLeft:{points:["tl","bl"],overflow:Ji},bottomRight:{points:["tr","br"],overflow:Ji},rightTop:{points:["tr","tl"],overflow:Ji},rightBottom:{points:["br","bl"],overflow:Ji},leftTop:{points:["tl","tr"],overflow:Ji},leftBottom:{points:["bl","br"],overflow:Ji}},oa=null;function pi(Dt,Kt,Gt){if(Kt)return Kt;if(Gt)return Gt[Dt]||Gt.other}var Ti={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function zi(Dt){var Kt=Dt.prefixCls,Gt=Dt.visible,Jt=Dt.children,Zt=Dt.popup,Dr=Dt.popupStyle,Fr=Dt.popupClassName,Xr=Dt.popupOffset,Fn=Dt.disabled,Nn=Dt.mode,si=Dt.onVisibleChange,ti=F.useContext(ie),Bi=ti.getPopupContainer,Yn=ti.rtl,jn=ti.subMenuOpenDelay,yi=ti.subMenuCloseDelay,vi=ti.builtinPlacements,wi=ti.triggerSubMenuAction,li=ti.forceSubMenuRender,xi=ti.rootClassName,$i=ti.motion,ei=ti.defaultMotions,Di=F.useState(!1),Ha=(0,re.Z)(Di,2),oi=Ha[0],hn=Ha[1],ln=Yn?(0,T.Z)((0,T.Z)({},Io),vi):(0,T.Z)((0,T.Z)({},aa),vi),Xn=Ti[Nn],Kn=pi(Nn,$i,ei),Ai=F.useRef(Kn);Nn!=="inline"&&(Ai.current=Kn);var Wi=(0,T.Z)((0,T.Z)({},Ai.current),{},{leavedClassName:"".concat(Kt,"-hidden"),removeOnLeave:!1,motionAppear:!0}),_i=F.useRef();return F.useEffect(function(){return _i.current=(0,rt.Z)(function(){hn(Gt)}),function(){rt.Z.cancel(_i.current)}},[Gt]),F.createElement(ta.Z,{prefixCls:Kt,popupClassName:m()("".concat(Kt,"-popup"),(0,ue.Z)({},"".concat(Kt,"-rtl"),Yn),Fr,xi),stretch:Nn==="horizontal"?"minWidth":null,getPopupContainer:Bi,builtinPlacements:ln,popupPlacement:Xn,popupVisible:oi,popup:Zt,popupStyle:Dr,popupAlign:Xr&&{offset:Xr},action:Fn?[]:[wi],mouseEnterDelay:jn,mouseLeaveDelay:yi,onPopupVisibleChange:si,forceRender:li,popupMotion:Wi,fresh:!0},Jt)}var be=x(77900);function Oe(Dt){var Kt=Dt.id,Gt=Dt.open,Jt=Dt.keyPath,Zt=Dt.children,Dr="inline",Fr=F.useContext(ie),Xr=Fr.prefixCls,Fn=Fr.forceSubMenuRender,Nn=Fr.motion,si=Fr.defaultMotions,ti=Fr.mode,Bi=F.useRef(!1);Bi.current=ti===Dr;var Yn=F.useState(!Bi.current),jn=(0,re.Z)(Yn,2),yi=jn[0],vi=jn[1],wi=Bi.current?Gt:!1;F.useEffect(function(){Bi.current&&vi(!1)},[ti]);var li=(0,T.Z)({},pi(Dr,Nn,si));Jt.length>1&&(li.motionAppear=!1);var xi=li.onVisibleChanged;return li.onVisibleChanged=function($i){return!Bi.current&&!$i&&vi(!0),xi==null?void 0:xi($i)},yi?null:F.createElement(G,{mode:Dr,locked:!Bi.current},F.createElement(be.default,(0,ve.Z)({visible:wi},li,{forceRender:Fn,removeOnLeave:!1,leavedClassName:"".concat(Xr,"-hidden")}),function($i){var ei=$i.className,Di=$i.style;return F.createElement(bi,{id:Kt,className:ei,style:Di},Zt)}))}var ke=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],qe=["active"],Rt=function(Kt){var Gt,Jt=Kt.style,Zt=Kt.className,Dr=Kt.title,Fr=Kt.eventKey,Xr=Kt.warnKey,Fn=Kt.disabled,Nn=Kt.internalPopupClose,si=Kt.children,ti=Kt.itemIcon,Bi=Kt.expandIcon,Yn=Kt.popupClassName,jn=Kt.popupOffset,yi=Kt.popupStyle,vi=Kt.onClick,wi=Kt.onMouseEnter,li=Kt.onMouseLeave,xi=Kt.onTitleClick,$i=Kt.onTitleMouseEnter,ei=Kt.onTitleMouseLeave,Di=(0,W.Z)(Kt,ke),Ha=Y(Fr),oi=F.useContext(ie),hn=oi.prefixCls,ln=oi.mode,Xn=oi.openKeys,Kn=oi.disabled,Ai=oi.overflowDisabled,Wi=oi.activeKey,_i=oi.selectedKeys,Ua=oi.itemIcon,ca=oi.expandIcon,Bo=oi.onItemClick,Wn=oi.onOpenChange,_n=oi.onActive,Mi=F.useContext(Ae),Zi=Mi._internalRenderSubMenuItem,Ia=F.useContext(Pe),Is=Ia.isSubPathKey,za=Be(),da="".concat(hn,"-submenu"),Fo=Kn||Fn,So=F.useRef(),Uo=F.useRef(),Ps=ti!=null?ti:Ua,ho=Bi!=null?Bi:ca,vs=Xn.includes(Fr),Ts=!Ai&&vs,Ws=Is(_i,Fr),Ro=Mt(Fr,Fo,$i,ei),Qo=Ro.active,bs=(0,W.Z)(Ro,qe),rl=F.useState(!1),vl=(0,re.Z)(rl,2),nc=vl[0],ic=vl[1],Ql=function(ws){Fo||ic(ws)},Gs=function(ws){Ql(!0),wi==null||wi({key:Fr,domEvent:ws})},Dc=function(ws){Ql(!1),li==null||li({key:Fr,domEvent:ws})},Kl=F.useMemo(function(){return Qo||(ln!=="inline"?nc||Is([Wi],Fr):!1)},[ln,Qo,Wi,nc,Fr,Is]),Hl=Yt(za.length),Xs=function(ws){Fo||(xi==null||xi({key:Fr,domEvent:ws}),ln==="inline"&&Wn(Fr,!vs))},os=ye(function(ys){vi==null||vi(Lr(ys)),Bo(ys)}),ri=function(ws){ln!=="inline"&&Wn(Fr,ws)},sa=function(){_n(Fr)},Xi=Ha&&"".concat(Ha,"-popup"),ra=F.createElement("div",(0,ve.Z)({role:"menuitem",style:Hl,className:"".concat(da,"-title"),tabIndex:Fo?null:-1,ref:So,title:typeof Dr=="string"?Dr:null,"data-menu-id":Ai&&Ha?null:Ha,"aria-expanded":Ts,"aria-haspopup":!0,"aria-controls":Xi,"aria-disabled":Fo,onClick:Xs,onFocus:sa},bs),Dr,F.createElement(_r,{icon:ln!=="horizontal"?ho:void 0,props:(0,T.Z)((0,T.Z)({},Kt),{},{isOpen:Ts,isSubMenu:!0})},F.createElement("i",{className:"".concat(da,"-arrow")}))),Da=F.useRef(ln);if(ln!=="inline"&&za.length>1?Da.current="vertical":Da.current=ln,!Ai){var oo=Da.current;ra=F.createElement(zi,{mode:oo,prefixCls:da,visible:!Nn&&Ts&&ln!=="inline",popupClassName:Yn,popupOffset:jn,popupStyle:yi,popup:F.createElement(G,{mode:oo==="horizontal"?"vertical":oo},F.createElement(bi,{id:Xi,ref:Uo},si)),disabled:Fo,onVisibleChange:ri},ra)}var Js=F.createElement(I.Z.Item,(0,ve.Z)({role:"none"},Di,{component:"li",style:Jt,className:m()(da,"".concat(da,"-").concat(ln),Zt,(Gt={},(0,ue.Z)(Gt,"".concat(da,"-open"),Ts),(0,ue.Z)(Gt,"".concat(da,"-active"),Kl),(0,ue.Z)(Gt,"".concat(da,"-selected"),Ws),(0,ue.Z)(Gt,"".concat(da,"-disabled"),Fo),Gt)),onMouseEnter:Gs,onMouseLeave:Dc}),ra,!Ai&&F.createElement(Oe,{id:Xi,open:Ts,keyPath:za},si));return Zi&&(Js=Zi(Js,Kt,{selected:Ws,active:Kl,open:Ts,disabled:Fo})),F.createElement(G,{onItemClick:os,mode:ln==="horizontal"?"vertical":ln,itemIcon:Ps,expandIcon:ho},Js)};function kt(Dt){var Kt=Dt.eventKey,Gt=Dt.children,Jt=Be(Kt),Zt=gi(Gt,Jt),Dr=he();F.useEffect(function(){if(Dr)return Dr.registerPath(Kt,Jt),function(){Dr.unregisterPath(Kt,Jt)}},[Jt]);var Fr;return Dr?Fr=Zt:Fr=F.createElement(Rt,Dt,Zt),F.createElement(Ne.Provider,{value:Jt},Fr)}var yr=x(76190),or=["className","title","eventKey","children"],Nr=["children"],zr=function(Kt){var Gt=Kt.className,Jt=Kt.title,Zt=Kt.eventKey,Dr=Kt.children,Fr=(0,W.Z)(Kt,or),Xr=F.useContext(ie),Fn=Xr.prefixCls,Nn="".concat(Fn,"-item-group");return F.createElement("li",(0,ve.Z)({role:"presentation"},Fr,{onClick:function(ti){return ti.stopPropagation()},className:m()(Nn,Gt)}),F.createElement("div",{role:"presentation",className:"".concat(Nn,"-title"),title:typeof Jt=="string"?Jt:void 0},Jt),F.createElement("ul",{role:"group",className:"".concat(Nn,"-list")},Dr))};function an(Dt){var Kt=Dt.children,Gt=(0,W.Z)(Dt,Nr),Jt=Be(Gt.eventKey),Zt=gi(Kt,Jt),Dr=he();return Dr?Zt:F.createElement(zr,(0,ct.Z)(Gt,["warnKey"]),Zt)}function jr(Dt){var Kt=Dt.className,Gt=Dt.style,Jt=F.useContext(ie),Zt=Jt.prefixCls,Dr=he();return Dr?null:F.createElement("li",{role:"separator",className:m()("".concat(Zt,"-item-divider"),Kt),style:Gt})}var Qr=["label","children","key","type"];function qr(Dt){return(Dt||[]).map(function(Kt,Gt){if(Kt&&(0,yr.Z)(Kt)==="object"){var Jt=Kt,Zt=Jt.label,Dr=Jt.children,Fr=Jt.key,Xr=Jt.type,Fn=(0,W.Z)(Jt,Qr),Nn=Fr!=null?Fr:"tmp-".concat(Gt);return Dr||Xr==="group"?Xr==="group"?F.createElement(an,(0,ve.Z)({key:Nn},Fn,{title:Zt}),qr(Dr)):F.createElement(kt,(0,ve.Z)({key:Nn},Fn,{title:Zt}),qr(Dr)):Xr==="divider"?F.createElement(jr,(0,ve.Z)({key:Nn},Fn)):F.createElement(gn,(0,ve.Z)({key:Nn},Fn),Zt)}return null}).filter(function(Kt){return Kt})}function yn(Dt,Kt,Gt){var Jt=Dt;return Kt&&(Jt=qr(Kt)),gi(Jt,Gt)}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(Dt,Kt){var Gt,Jt,Zt=Dt,Dr=Zt.prefixCls,Fr=Dr===void 0?"rc-menu":Dr,Xr=Zt.rootClassName,Fn=Zt.style,Nn=Zt.className,si=Zt.tabIndex,ti=si===void 0?0:si,Bi=Zt.items,Yn=Zt.children,jn=Zt.direction,yi=Zt.id,vi=Zt.mode,wi=vi===void 0?"vertical":vi,li=Zt.inlineCollapsed,xi=Zt.disabled,$i=Zt.disabledOverflow,ei=Zt.subMenuOpenDelay,Di=ei===void 0?.1:ei,Ha=Zt.subMenuCloseDelay,oi=Ha===void 0?.1:Ha,hn=Zt.forceSubMenuRender,ln=Zt.defaultOpenKeys,Xn=Zt.openKeys,Kn=Zt.activeKey,Ai=Zt.defaultActiveFirst,Wi=Zt.selectable,_i=Wi===void 0?!0:Wi,Ua=Zt.multiple,ca=Ua===void 0?!1:Ua,Bo=Zt.defaultSelectedKeys,Wn=Zt.selectedKeys,_n=Zt.onSelect,Mi=Zt.onDeselect,Zi=Zt.inlineIndent,Ia=Zi===void 0?24:Zi,Is=Zt.motion,za=Zt.defaultMotions,da=Zt.triggerSubMenuAction,Fo=da===void 0?"hover":da,So=Zt.builtinPlacements,Uo=Zt.itemIcon,Ps=Zt.expandIcon,ho=Zt.overflowedIndicator,vs=ho===void 0?"...":ho,Ts=Zt.overflowedIndicatorPopupClassName,Ws=Zt.getPopupContainer,Ro=Zt.onClick,Qo=Zt.onOpenChange,bs=Zt.onKeyDown,rl=Zt.openAnimation,vl=Zt.openTransitionName,nc=Zt._internalRenderMenuItem,ic=Zt._internalRenderSubMenuItem,Ql=(0,W.Z)(Zt,on),Gs=F.useMemo(function(){return yn(Yn,Bi,Dn)},[Yn,Bi]),Dc=F.useState(!1),Kl=(0,re.Z)(Dc,2),Hl=Kl[0],Xs=Kl[1],os=F.useRef(),ri=ge(yi),sa=jn==="rtl",Xi=(0,g.Z)(ln,{value:Xn,postState:function(Po){return Po||Dn}}),ra=(0,re.Z)(Xi,2),Da=ra[0],oo=ra[1],Js=function(Po){var Yo=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function yc(){oo(Po),Qo==null||Qo(Po)}Yo?(0,P.flushSync)(yc):yc()},ys=F.useState(Da),ws=(0,re.Z)(ys,2),ps=ws[0],eo=ws[1],Ra=F.useRef(!1),ss=F.useMemo(function(){return(wi==="inline"||wi==="vertical")&&li?["vertical",li]:[wi,!1]},[wi,li]),ls=(0,re.Z)(ss,2),Fs=ls[0],Xo=ls[1],Mo=Fs==="inline",hA=F.useState(Fs),au=(0,re.Z)(hA,2),cc=au[0],pA=au[1],Al=F.useState(Xo),mA=(0,re.Z)(Al,2),nl=mA[0],ms=mA[1];F.useEffect(function(){pA(Fs),ms(Xo),Ra.current&&(Mo?oo(ps):Js(Dn))},[Fs,Xo]);var Yc=F.useState(0),Us=(0,re.Z)(Yc,2),OA=Us[0],Ac=Us[1],jl=OA>=Gs.length-1||cc!=="horizontal"||$i;F.useEffect(function(){Mo&&eo(Da)},[Da]),F.useEffect(function(){return Ra.current=!0,function(){Ra.current=!1}},[]);var to=we(),Ys=to.registerPath,gA=to.unregisterPath,Fu=to.refreshOverflowKeys,cs=to.isSubPathKey,xa=to.getKeyPath,ba=to.getKeys,rs=to.getSubPathKeys,mo=F.useMemo(function(){return{registerPath:Ys,unregisterPath:gA}},[Ys,gA]),zo=F.useMemo(function(){return{isSubPathKey:cs}},[cs]);F.useEffect(function(){Fu(jl?Dn:Gs.slice(OA+1).map(function(Jo){return Jo.key}))},[OA,jl]);var $o=(0,g.Z)(Kn||Ai&&((Gt=Gs[0])===null||Gt===void 0?void 0:Gt.key),{value:Kn}),Oo=(0,re.Z)($o,2),xs=Oo[0],ac=Oo[1],Zc=ye(function(Jo){ac(Jo)}),qs=ye(function(){ac(void 0)});(0,F.useImperativeHandle)(Kt,function(){return{list:os.current,focus:function(Po){var Yo,yc=ba(),zl=f(yc,ri),Xu=zl.elements,bA=zl.key2element,ZA=zl.element2key,Ld=N(os.current,Xu),kd=xs!=null?xs:Ld[0]?ZA.get(Ld[0]):(Yo=Gs.find(function(Lo){return!Lo.props.disabled}))===null||Yo===void 0?void 0:Yo.key,VA=bA.get(kd);if(kd&&VA){var WA;VA==null||(WA=VA.focus)===null||WA===void 0||WA.call(VA,Po)}}}});var vA=(0,g.Z)(Bo||[],{value:Wn,postState:function(Po){return Array.isArray(Po)?Po:Po==null?Dn:[Po]}}),wl=(0,re.Z)(vA,2),qc=wl[0],il=wl[1],Fd=function(Po){if(_i){var Yo=Po.key,yc=qc.includes(Yo),zl;ca?yc?zl=qc.filter(function(bA){return bA!==Yo}):zl=[].concat((0,De.Z)(qc),[Yo]):zl=[Yo],il(zl);var Xu=(0,T.Z)((0,T.Z)({},Po),{},{selectedKeys:zl});yc?Mi==null||Mi(Xu):_n==null||_n(Xu)}!ca&&Da.length&&cc!=="inline"&&Js(Dn)},ou=ye(function(Jo){Ro==null||Ro(Lr(Jo)),Fd(Jo)}),$A=ye(function(Jo,Po){var Yo=Da.filter(function(zl){return zl!==Jo});if(Po)Yo.push(Jo);else if(cc!=="inline"){var yc=rs(Jo);Yo=Yo.filter(function(zl){return!yc.has(zl)})}(0,$.Z)(Da,Yo,!0)||Js(Yo,!0)}),sf=function(Po,Yo){var yc=Yo!=null?Yo:!Da.includes(Po);$A(Po,yc)},Vc=C(cc,xs,sa,ri,os,ba,xa,ac,sf,bs);F.useEffect(function(){Xs(!0)},[]);var Gu=F.useMemo(function(){return{_internalRenderMenuItem:nc,_internalRenderSubMenuItem:ic}},[nc,ic]),Nc=cc!=="horizontal"||$i?Gs:Gs.map(function(Jo,Po){return F.createElement(G,{key:Jo.key,overflowDisabled:Po>OA},Jo)}),Md=F.createElement(I.Z,(0,ve.Z)({id:yi,ref:os,prefixCls:"".concat(Fr,"-overflow"),component:"ul",itemComponent:gn,className:m()(Fr,"".concat(Fr,"-root"),"".concat(Fr,"-").concat(cc),Nn,(Jt={},(0,ue.Z)(Jt,"".concat(Fr,"-inline-collapsed"),nl),(0,ue.Z)(Jt,"".concat(Fr,"-rtl"),sa),Jt),Xr),dir:jn,style:Fn,role:"menu",tabIndex:ti,data:Nc,renderRawItem:function(Po){return Po},renderRawRest:function(Po){var Yo=Po.length,yc=Yo?Gs.slice(-Yo):null;return F.createElement(kt,{eventKey:Qe,title:vs,disabled:jl,internalPopupClose:Yo===0,popupClassName:Ts},yc)},maxCount:cc!=="horizontal"||$i?I.Z.INVALIDATE:I.Z.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(Po){Ac(Po)},onKeyDown:Vc},Ql));return F.createElement(Ae.Provider,{value:Gu},F.createElement(U.Provider,{value:ri},F.createElement(G,{prefixCls:Fr,rootClassName:Xr,mode:cc,openKeys:Da,rtl:sa,disabled:xi,motion:Hl?Is:null,defaultMotions:Hl?za:null,activeKey:xs,onActive:Zc,onInactive:qs,selectedKeys:qc,inlineIndent:Ia,subMenuOpenDelay:Di,subMenuCloseDelay:oi,forceSubMenuRender:hn,builtinPlacements:So,triggerSubMenuAction:Fo,getPopupContainer:Ws,itemIcon:Uo,expandIcon:Ps,onItemClick:ou,onOpenChange:$A},F.createElement(Pe.Provider,{value:zo},Md),F.createElement("div",{style:{display:"none"},"aria-hidden":!0},F.createElement(se.Provider,{value:mo},Gs)))))}),fi=Qn,On=fi;On.Item=gn,On.SubMenu=kt,On.ItemGroup=an,On.Divider=jr;var An=On},11780:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return Ue}});var ve=x(54476),ue=x(33885),T=x(42978),De=x(75931),re=x(59301),W=x(92310),S=x.n(W),m=x(29301),I=x(34280),g=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$=void 0;function _(me,Me){var fe=me.prefixCls,Ee=me.invalidate,rt=me.item,ot=me.renderItem,We=me.responsive,et=me.responsiveDisabled,_t=me.registerSize,Ot=me.itemKey,Pt=me.className,cr=me.style,nr=me.children,br=me.display,sr=me.order,k=me.component,Xe=k===void 0?"div":k,N=(0,De.Z)(me,g),b=We&&!br;function f(ne){_t(Ot,ne)}re.useEffect(function(){return function(){f(null)}},[]);var C=ot&&rt!==$?ot(rt,{index:sr}):nr,ee;Ee||(ee={opacity:b?0:1,height:b?0:$,overflowY:b?"hidden":$,order:We?sr:$,pointerEvents:b?"none":$,position:b?"absolute":$});var Se={};b&&(Se["aria-hidden"]=!0);var H=re.createElement(Xe,(0,ve.Z)({className:S()(!Ee&&fe,Pt),style:(0,ue.Z)((0,ue.Z)({},ee),cr)},Se,N,{ref:Me}),C);return We&&(H=re.createElement(m.Z,{onResize:function(Qe){var we=Qe.offsetWidth;f(we)},disabled:et},H)),H}var F=re.forwardRef(_);F.displayName="Item";var P=F,U=x(6089),M=x(4676),Y=x(16089);function Q(me){if(typeof MessageChannel=="undefined")(0,Y.Z)(me);else{var Me=new MessageChannel;Me.port1.onmessage=function(){return me()},Me.port2.postMessage(void 0)}}function ae(){var me=re.useRef(null),Me=function(Ee){me.current||(me.current=[],Q(function(){(0,M.unstable_batchedUpdates)(function(){me.current.forEach(function(rt){rt()}),me.current=null})})),me.current.push(Ee)};return Me}function ie(me,Me){var fe=re.useState(Me),Ee=(0,T.Z)(fe,2),rt=Ee[0],ot=Ee[1],We=(0,U.Z)(function(et){me(function(){ot(et)})});return[rt,We]}var J=re.createContext(null),G=["component"],j=["className"],se=["className"],he=function(Me,fe){var Ee=re.useContext(J);if(!Ee){var rt=Me.component,ot=rt===void 0?"div":rt,We=(0,De.Z)(Me,G);return re.createElement(ot,(0,ve.Z)({},We,{ref:fe}))}var et=Ee.className,_t=(0,De.Z)(Ee,j),Ot=Me.className,Pt=(0,De.Z)(Me,se);return re.createElement(J.Provider,{value:null},re.createElement(P,(0,ve.Z)({ref:fe,className:S()(et,Ot)},_t,Pt)))},Ne=re.forwardRef(he);Ne.displayName="RawItem";var Be=Ne,Pe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],q="responsive",Ae="invalidate";function D(me){return"+ ".concat(me.length," ...")}function Je(me,Me){var fe=me.prefixCls,Ee=fe===void 0?"rc-overflow":fe,rt=me.data,ot=rt===void 0?[]:rt,We=me.renderItem,et=me.renderRawItem,_t=me.itemKey,Ot=me.itemWidth,Pt=Ot===void 0?10:Ot,cr=me.ssr,nr=me.style,br=me.className,sr=me.maxCount,k=me.renderRest,Xe=me.renderRawRest,N=me.suffix,b=me.component,f=b===void 0?"div":b,C=me.itemComponent,ee=me.onVisibleChange,Se=(0,De.Z)(me,Pe),H=cr==="full",ne=ae(),Qe=ie(ne,null),we=(0,T.Z)(Qe,2),ye=we[0],je=we[1],mt=ye||0,ge=ie(ne,new Map),st=(0,T.Z)(ge,2),ze=st[0],Ie=st[1],Le=ie(ne,0),ct=(0,T.Z)(Le,2),Tt=ct[0],Mt=ct[1],Yt=ie(ne,0),_r=(0,T.Z)(Yt,2),Sr=_r[0],Lr=_r[1],Er=ie(ne,0),Ar=(0,T.Z)(Er,2),ar=Ar[0],Rr=Ar[1],fn=(0,re.useState)(null),En=(0,T.Z)(fn,2),gn=En[0],Rn=En[1],ji=(0,re.useState)(null),Or=(0,T.Z)(ji,2),bi=Or[0],ua=Or[1],gi=re.useMemo(function(){return bi===null&&H?Number.MAX_SAFE_INTEGER:bi||0},[bi,ye]),ta=(0,re.useState)(!1),Ji=(0,T.Z)(ta,2),aa=Ji[0],Io=Ji[1],oa="".concat(Ee,"-item"),pi=Math.max(Tt,Sr),Ti=sr===q,zi=ot.length&&Ti,be=sr===Ae,Oe=zi||typeof sr=="number"&&ot.length>sr,ke=(0,re.useMemo)(function(){var An=ot;return zi?ye===null&&H?An=ot:An=ot.slice(0,Math.min(ot.length,mt/Pt)):typeof sr=="number"&&(An=ot.slice(0,sr)),An},[ot,Pt,ye,sr,zi]),qe=(0,re.useMemo)(function(){return zi?ot.slice(gi+1):ot.slice(ke.length)},[ot,ke,zi,gi]),Rt=(0,re.useCallback)(function(An,Dt){var Kt;return typeof _t=="function"?_t(An):(Kt=_t&&(An==null?void 0:An[_t]))!==null&&Kt!==void 0?Kt:Dt},[_t]),kt=(0,re.useCallback)(We||function(An){return An},[We]);function yr(An,Dt,Kt){bi===An&&(Dt===void 0||Dt===gn)||(ua(An),Kt||(Io(An<ot.length-1),ee==null||ee(An)),Dt!==void 0&&Rn(Dt))}function or(An,Dt){je(Dt.clientWidth)}function Nr(An,Dt){Ie(function(Kt){var Gt=new Map(Kt);return Dt===null?Gt.delete(An):Gt.set(An,Dt),Gt})}function zr(An,Dt){Lr(Dt),Mt(Sr)}function an(An,Dt){Rr(Dt)}function jr(An){return ze.get(Rt(ke[An],An))}(0,I.Z)(function(){if(mt&&typeof pi=="number"&&ke){var An=ar,Dt=ke.length,Kt=Dt-1;if(!Dt){yr(0,null);return}for(var Gt=0;Gt<Dt;Gt+=1){var Jt=jr(Gt);if(H&&(Jt=Jt||0),Jt===void 0){yr(Gt-1,void 0,!0);break}if(An+=Jt,Kt===0&&An<=mt||Gt===Kt-1&&An+jr(Kt)<=mt){yr(Kt,null);break}else if(An+pi>mt){yr(Gt-1,An-Jt-ar+Sr);break}}N&&jr(0)+ar>mt&&Rn(null)}},[mt,ze,Sr,ar,Rt,ke]);var Qr=aa&&!!qe.length,qr={};gn!==null&&zi&&(qr={position:"absolute",left:gn,top:0});var yn={prefixCls:oa,responsive:zi,component:C,invalidate:be},on=et?function(An,Dt){var Kt=Rt(An,Dt);return re.createElement(J.Provider,{key:Kt,value:(0,ue.Z)((0,ue.Z)({},yn),{},{order:Dt,item:An,itemKey:Kt,registerSize:Nr,display:Dt<=gi})},et(An,Dt))}:function(An,Dt){var Kt=Rt(An,Dt);return re.createElement(P,(0,ve.Z)({},yn,{order:Dt,key:Kt,item:An,renderItem:kt,itemKey:Kt,registerSize:Nr,display:Dt<=gi}))},Dn={order:Qr?gi:Number.MAX_SAFE_INTEGER,className:"".concat(oa,"-rest"),registerSize:zr,display:Qr},Qn=k||D,fi=Xe?re.createElement(J.Provider,{value:(0,ue.Z)((0,ue.Z)({},yn),Dn)},Xe(qe)):re.createElement(P,(0,ve.Z)({},yn,Dn),typeof Qn=="function"?Qn(qe):Qn),On=re.createElement(f,(0,ve.Z)({className:S()(!be&&Ee,br),style:nr,ref:Me},Se),ke.map(on),Oe?fi:null,N&&re.createElement(P,(0,ve.Z)({},yn,{responsive:Ti,responsiveDisabled:!zi,order:gi,className:"".concat(oa,"-suffix"),registerSize:an,display:!0,style:qr}),N));return Ti?re.createElement(m.Z,{onResize:or,disabled:!zi},On):On}var Fe=re.forwardRef(Je);Fe.displayName="Overflow",Fe.Item=Be,Fe.RESPONSIVE=q,Fe.INVALIDATE=Ae;var Ce=Fe,Ue=Ce},17115:function(dn,Ut,x){"use strict";x.d(Ut,{ZP:function(){return S}});var ve=x(42978),ue=x(59301),T=x(47273),De=0,re=(0,T.Z)();function W(){var m;return re?(m=De,De+=1):m="TEST_OR_SSR",m}function S(m){var I=ue.useState(),g=(0,ve.Z)(I,2),$=g[0],_=g[1];return ue.useEffect(function(){_("rc_select_".concat(W()))},[]),m||$}},77861:function(dn,Ut,x){"use strict";x.d(Ut,{Ac:function(){return je},Xo:function(){return Lr},Wx:function(){return Ar},ZP:function(){return Oe},lk:function(){return J}});var ve=x(54476),ue=x(94480),T=x(20068),De=x(33885),re=x(42978),W=x(75931),S=x(76190),m=x(18929),I=x(48736),g=x(59301),$=x(92310),_=x.n($),F=x(34280),P=x(49658),U=x(10228),M=x(8654),Y=function(qe){var Rt=qe.className,kt=qe.customizeIcon,yr=qe.customizeIconProps,or=qe.onMouseDown,Nr=qe.onClick,zr=qe.children,an;return typeof kt=="function"?an=kt(yr):an=kt,g.createElement("span",{className:Rt,onMouseDown:function(Qr){Qr.preventDefault(),or&&or(Qr)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:Nr,"aria-hidden":!0},an!==void 0?an:g.createElement("span",{className:_()(Rt.split(/\s+/).map(function(jr){return"".concat(jr,"-icon")}))},zr))},Q=Y;function ae(ke,qe,Rt,kt,yr){var or=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,Nr=arguments.length>6?arguments[6]:void 0,zr=arguments.length>7?arguments[7]:void 0,an=g.useMemo(function(){if((0,S.Z)(kt)==="object")return kt.clearIcon;if(yr)return yr},[kt,yr]),jr=g.useMemo(function(){return!!(!or&&kt&&(Rt.length||Nr)&&!(zr==="combobox"&&Nr===""))},[kt,or,Rt.length,Nr,zr]);return{allowClear:jr,clearIcon:g.createElement(Q,{className:"".concat(ke,"-clear"),onMouseDown:qe,customizeIcon:an},"\xD7")}}var ie=g.createContext(null);function J(){return g.useContext(ie)}function G(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,qe=g.useState(!1),Rt=(0,re.Z)(qe,2),kt=Rt[0],yr=Rt[1],or=g.useRef(null),Nr=function(){window.clearTimeout(or.current)};g.useEffect(function(){return Nr},[]);var zr=function(jr,Qr){Nr(),or.current=window.setTimeout(function(){yr(jr),Qr&&Qr()},ke)};return[kt,zr,Nr]}function j(){var ke=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,qe=g.useRef(null),Rt=g.useRef(null);g.useEffect(function(){return function(){window.clearTimeout(Rt.current)}},[]);function kt(yr){(yr||qe.current===null)&&(qe.current=yr),window.clearTimeout(Rt.current),Rt.current=window.setTimeout(function(){qe.current=null},ke)}return[function(){return qe.current},kt]}function se(ke,qe,Rt,kt){var yr=g.useRef(null);yr.current={open:qe,triggerOpen:Rt,customizedTrigger:kt},g.useEffect(function(){function or(Nr){var zr;if(!((zr=yr.current)!==null&&zr!==void 0&&zr.customizedTrigger)){var an=Nr.target;an.shadowRoot&&Nr.composed&&(an=Nr.composedPath()[0]||an),yr.current.open&&ke().filter(function(jr){return jr}).every(function(jr){return!jr.contains(an)&&jr!==an})&&yr.current.triggerOpen(!1)}}return window.addEventListener("mousedown",or),function(){return window.removeEventListener("mousedown",or)}},[])}var he=x(26112),Ne=x(11780),Be=function(qe,Rt){var kt,yr,or=qe.prefixCls,Nr=qe.id,zr=qe.inputElement,an=qe.disabled,jr=qe.tabIndex,Qr=qe.autoFocus,qr=qe.autoComplete,yn=qe.editable,on=qe.activeDescendantId,Dn=qe.value,Qn=qe.maxLength,fi=qe.onKeyDown,On=qe.onMouseDown,An=qe.onChange,Dt=qe.onPaste,Kt=qe.onCompositionStart,Gt=qe.onCompositionEnd,Jt=qe.open,Zt=qe.attrs,Dr=zr||g.createElement("input",null),Fr=Dr,Xr=Fr.ref,Fn=Fr.props,Nn=Fn.onKeyDown,si=Fn.onChange,ti=Fn.onMouseDown,Bi=Fn.onCompositionStart,Yn=Fn.onCompositionEnd,jn=Fn.style;return(0,I.Kp)(!("maxLength"in Dr.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Dr=g.cloneElement(Dr,(0,De.Z)((0,De.Z)((0,De.Z)({type:"search"},Fn),{},{id:Nr,ref:(0,M.sQ)(Rt,Xr),disabled:an,tabIndex:jr,autoComplete:qr||"off",autoFocus:Qr,className:_()("".concat(or,"-selection-search-input"),(kt=Dr)===null||kt===void 0||(yr=kt.props)===null||yr===void 0?void 0:yr.className),role:"combobox","aria-label":"Search","aria-expanded":Jt||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Nr,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Nr,"_list"),"aria-activedescendant":Jt?on:void 0},Zt),{},{value:yn?Dn:"",maxLength:Qn,readOnly:!yn,unselectable:yn?null:"on",style:(0,De.Z)((0,De.Z)({},jn),{},{opacity:yn?null:0}),onKeyDown:function(vi){fi(vi),Nn&&Nn(vi)},onMouseDown:function(vi){On(vi),ti&&ti(vi)},onChange:function(vi){An(vi),si&&si(vi)},onCompositionStart:function(vi){Kt(vi),Bi&&Bi(vi)},onCompositionEnd:function(vi){Gt(vi),Yn&&Yn(vi)},onPaste:Dt})),Dr},Pe=g.forwardRef(Be);Pe.displayName="Input";var q=Pe;function Ae(ke){return Array.isArray(ke)?ke:ke!==void 0?[ke]:[]}var D=typeof window!="undefined"&&window.document&&window.document.documentElement,Je=D;function Fe(ke){return ke!=null}function Ce(ke){return!ke&&ke!==0}function Ue(ke){return["string","number"].includes((0,S.Z)(ke))}function me(ke){var qe=void 0;return ke&&(Ue(ke.title)?qe=ke.title.toString():Ue(ke.label)&&(qe=ke.label.toString())),qe}function Me(ke,qe){Je?g.useLayoutEffect(ke,qe):g.useEffect(ke,qe)}function fe(ke){var qe;return(qe=ke.key)!==null&&qe!==void 0?qe:ke.value}var Ee=function(qe){qe.preventDefault(),qe.stopPropagation()},rt=function(qe){var Rt=qe.id,kt=qe.prefixCls,yr=qe.values,or=qe.open,Nr=qe.searchValue,zr=qe.autoClearSearchValue,an=qe.inputRef,jr=qe.placeholder,Qr=qe.disabled,qr=qe.mode,yn=qe.showSearch,on=qe.autoFocus,Dn=qe.autoComplete,Qn=qe.activeDescendantId,fi=qe.tabIndex,On=qe.removeIcon,An=qe.maxTagCount,Dt=qe.maxTagTextLength,Kt=qe.maxTagPlaceholder,Gt=Kt===void 0?function(Wi){return"+ ".concat(Wi.length," ...")}:Kt,Jt=qe.tagRender,Zt=qe.onToggleOpen,Dr=qe.onRemove,Fr=qe.onInputChange,Xr=qe.onInputPaste,Fn=qe.onInputKeyDown,Nn=qe.onInputMouseDown,si=qe.onInputCompositionStart,ti=qe.onInputCompositionEnd,Bi=g.useRef(null),Yn=(0,g.useState)(0),jn=(0,re.Z)(Yn,2),yi=jn[0],vi=jn[1],wi=(0,g.useState)(!1),li=(0,re.Z)(wi,2),xi=li[0],$i=li[1],ei="".concat(kt,"-selection"),Di=or||qr==="multiple"&&zr===!1||qr==="tags"?Nr:"",Ha=qr==="tags"||qr==="multiple"&&zr===!1||yn&&(or||xi);Me(function(){vi(Bi.current.scrollWidth)},[Di]);function oi(Wi,_i,Ua,ca,Bo){return g.createElement("span",{className:_()("".concat(ei,"-item"),(0,T.Z)({},"".concat(ei,"-item-disabled"),Ua)),title:me(Wi)},g.createElement("span",{className:"".concat(ei,"-item-content")},_i),ca&&g.createElement(Q,{className:"".concat(ei,"-item-remove"),onMouseDown:Ee,onClick:Bo,customizeIcon:On},"\xD7"))}function hn(Wi,_i,Ua,ca,Bo){var Wn=function(Mi){Ee(Mi),Zt(!or)};return g.createElement("span",{onMouseDown:Wn},Jt({label:_i,value:Wi,disabled:Ua,closable:ca,onClose:Bo}))}function ln(Wi){var _i=Wi.disabled,Ua=Wi.label,ca=Wi.value,Bo=!Qr&&!_i,Wn=Ua;if(typeof Dt=="number"&&(typeof Ua=="string"||typeof Ua=="number")){var _n=String(Wn);_n.length>Dt&&(Wn="".concat(_n.slice(0,Dt),"..."))}var Mi=function(Ia){Ia&&Ia.stopPropagation(),Dr(Wi)};return typeof Jt=="function"?hn(ca,Wn,_i,Bo,Mi):oi(Wi,Wn,_i,Bo,Mi)}function Xn(Wi){var _i=typeof Gt=="function"?Gt(Wi):Gt;return oi({title:_i},_i,!1)}var Kn=g.createElement("div",{className:"".concat(ei,"-search"),style:{width:yi},onFocus:function(){$i(!0)},onBlur:function(){$i(!1)}},g.createElement(q,{ref:an,open:or,prefixCls:kt,id:Rt,inputElement:null,disabled:Qr,autoFocus:on,autoComplete:Dn,editable:Ha,activeDescendantId:Qn,value:Di,onKeyDown:Fn,onMouseDown:Nn,onChange:Fr,onPaste:Xr,onCompositionStart:si,onCompositionEnd:ti,tabIndex:fi,attrs:(0,he.Z)(qe,!0)}),g.createElement("span",{ref:Bi,className:"".concat(ei,"-search-mirror"),"aria-hidden":!0},Di,"\xA0")),Ai=g.createElement(Ne.Z,{prefixCls:"".concat(ei,"-overflow"),data:yr,renderItem:ln,renderRest:Xn,suffix:Kn,itemKey:fe,maxCount:An});return g.createElement(g.Fragment,null,Ai,!yr.length&&!Di&&g.createElement("span",{className:"".concat(ei,"-placeholder")},jr))},ot=rt,We=function(qe){var Rt=qe.inputElement,kt=qe.prefixCls,yr=qe.id,or=qe.inputRef,Nr=qe.disabled,zr=qe.autoFocus,an=qe.autoComplete,jr=qe.activeDescendantId,Qr=qe.mode,qr=qe.open,yn=qe.values,on=qe.placeholder,Dn=qe.tabIndex,Qn=qe.showSearch,fi=qe.searchValue,On=qe.activeValue,An=qe.maxLength,Dt=qe.onInputKeyDown,Kt=qe.onInputMouseDown,Gt=qe.onInputChange,Jt=qe.onInputPaste,Zt=qe.onInputCompositionStart,Dr=qe.onInputCompositionEnd,Fr=qe.title,Xr=g.useState(!1),Fn=(0,re.Z)(Xr,2),Nn=Fn[0],si=Fn[1],ti=Qr==="combobox",Bi=ti||Qn,Yn=yn[0],jn=fi||"";ti&&On&&!Nn&&(jn=On),g.useEffect(function(){ti&&si(!1)},[ti,On]);var yi=Qr!=="combobox"&&!qr&&!Qn?!1:!!jn,vi=Fr===void 0?me(Yn):Fr,wi=function(){if(Yn)return null;var xi=yi?{visibility:"hidden"}:void 0;return g.createElement("span",{className:"".concat(kt,"-selection-placeholder"),style:xi},on)};return g.createElement(g.Fragment,null,g.createElement("span",{className:"".concat(kt,"-selection-search")},g.createElement(q,{ref:or,prefixCls:kt,id:yr,open:qr,inputElement:Rt,disabled:Nr,autoFocus:zr,autoComplete:an,editable:Bi,activeDescendantId:jr,value:jn,onKeyDown:Dt,onMouseDown:Kt,onChange:function(xi){si(!0),Gt(xi)},onPaste:Jt,onCompositionStart:Zt,onCompositionEnd:Dr,tabIndex:Dn,attrs:(0,he.Z)(qe,!0),maxLength:ti?An:void 0})),!ti&&Yn?g.createElement("span",{className:"".concat(kt,"-selection-item"),title:vi,style:yi?{visibility:"hidden"}:void 0},Yn.label):null,wi())},et=We;function _t(ke){return![U.Z.ESC,U.Z.SHIFT,U.Z.BACKSPACE,U.Z.TAB,U.Z.WIN_KEY,U.Z.ALT,U.Z.META,U.Z.WIN_KEY_RIGHT,U.Z.CTRL,U.Z.SEMICOLON,U.Z.EQUALS,U.Z.CAPS_LOCK,U.Z.CONTEXT_MENU,U.Z.F1,U.Z.F2,U.Z.F3,U.Z.F4,U.Z.F5,U.Z.F6,U.Z.F7,U.Z.F8,U.Z.F9,U.Z.F10,U.Z.F11,U.Z.F12].includes(ke)}var Ot=function(qe,Rt){var kt=(0,g.useRef)(null),yr=(0,g.useRef)(!1),or=qe.prefixCls,Nr=qe.open,zr=qe.mode,an=qe.showSearch,jr=qe.tokenWithEnter,Qr=qe.autoClearSearchValue,qr=qe.onSearch,yn=qe.onSearchSubmit,on=qe.onToggleOpen,Dn=qe.onInputKeyDown,Qn=qe.domRef;g.useImperativeHandle(Rt,function(){return{focus:function(){kt.current.focus()},blur:function(){kt.current.blur()}}});var fi=j(0),On=(0,re.Z)(fi,2),An=On[0],Dt=On[1],Kt=function(jn){var yi=jn.which;(yi===U.Z.UP||yi===U.Z.DOWN)&&jn.preventDefault(),Dn&&Dn(jn),yi===U.Z.ENTER&&zr==="tags"&&!yr.current&&!Nr&&(yn==null||yn(jn.target.value)),_t(yi)&&on(!0)},Gt=function(){Dt(!0)},Jt=(0,g.useRef)(null),Zt=function(jn){qr(jn,!0,yr.current)!==!1&&on(!0)},Dr=function(){yr.current=!0},Fr=function(jn){yr.current=!1,zr!=="combobox"&&Zt(jn.target.value)},Xr=function(jn){var yi=jn.target.value;if(jr&&Jt.current&&/[\r\n]/.test(Jt.current)){var vi=Jt.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");yi=yi.replace(vi,Jt.current)}Jt.current=null,Zt(yi)},Fn=function(jn){var yi=jn.clipboardData,vi=yi.getData("text");Jt.current=vi},Nn=function(jn){var yi=jn.target;if(yi!==kt.current){var vi=document.body.style.msTouchAction!==void 0;vi?setTimeout(function(){kt.current.focus()}):kt.current.focus()}},si=function(jn){var yi=An();jn.target!==kt.current&&!yi&&zr!=="combobox"&&jn.preventDefault(),(zr!=="combobox"&&(!an||!yi)||!Nr)&&(Nr&&Qr!==!1&&qr("",!0,!1),on())},ti={inputRef:kt,onInputKeyDown:Kt,onInputMouseDown:Gt,onInputChange:Xr,onInputPaste:Fn,onInputCompositionStart:Dr,onInputCompositionEnd:Fr},Bi=zr==="multiple"||zr==="tags"?g.createElement(ot,(0,ve.Z)({},qe,ti)):g.createElement(et,(0,ve.Z)({},qe,ti));return g.createElement("div",{ref:Qn,className:"".concat(or,"-selector"),onClick:Nn,onMouseDown:si},Bi)},Pt=g.forwardRef(Ot);Pt.displayName="Selector";var cr=Pt,nr=x(35593),br=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],sr=function(qe){var Rt=qe===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Rt,adjustY:1},htmlRegion:"scroll"}}},k=function(qe,Rt){var kt=qe.prefixCls,yr=qe.disabled,or=qe.visible,Nr=qe.children,zr=qe.popupElement,an=qe.animation,jr=qe.transitionName,Qr=qe.dropdownStyle,qr=qe.dropdownClassName,yn=qe.direction,on=yn===void 0?"ltr":yn,Dn=qe.placement,Qn=qe.builtinPlacements,fi=qe.dropdownMatchSelectWidth,On=qe.dropdownRender,An=qe.dropdownAlign,Dt=qe.getPopupContainer,Kt=qe.empty,Gt=qe.getTriggerDOMNode,Jt=qe.onPopupVisibleChange,Zt=qe.onPopupMouseEnter,Dr=(0,W.Z)(qe,br),Fr="".concat(kt,"-dropdown"),Xr=zr;On&&(Xr=On(zr));var Fn=g.useMemo(function(){return Qn||sr(fi)},[Qn,fi]),Nn=an?"".concat(Fr,"-").concat(an):jr,si=typeof fi=="number",ti=g.useMemo(function(){return si?null:fi===!1?"minWidth":"width"},[fi,si]),Bi=Qr;si&&(Bi=(0,De.Z)((0,De.Z)({},Bi),{},{width:fi}));var Yn=g.useRef(null);return g.useImperativeHandle(Rt,function(){return{getPopupElement:function(){return Yn.current}}}),g.createElement(nr.Z,(0,ve.Z)({},Dr,{showAction:Jt?["click"]:[],hideAction:Jt?["click"]:[],popupPlacement:Dn||(on==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:Fn,prefixCls:Fr,popupTransitionName:Nn,popup:g.createElement("div",{ref:Yn,onMouseEnter:Zt},Xr),stretch:ti,popupAlign:An,popupVisible:or,getPopupContainer:Dt,popupClassName:_()(qr,(0,T.Z)({},"".concat(Fr,"-empty"),Kt)),popupStyle:Bi,getTriggerDOMNode:Gt,onPopupVisibleChange:Jt}),Nr)},Xe=g.forwardRef(k);Xe.displayName="SelectTrigger";var N=Xe,b=x(66712);function f(ke,qe){var Rt=ke.key,kt;return"value"in ke&&(kt=ke.value),Rt!=null?Rt:kt!==void 0?kt:"rc-index-key-".concat(qe)}function C(ke,qe){var Rt=ke||{},kt=Rt.label,yr=Rt.value,or=Rt.options,Nr=Rt.groupLabel,zr=kt||(qe?"children":"label");return{label:zr,value:yr||"value",options:or||"options",groupLabel:Nr||zr}}function ee(ke){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Rt=qe.fieldNames,kt=qe.childrenAsData,yr=[],or=C(Rt,!1),Nr=or.label,zr=or.value,an=or.options,jr=or.groupLabel;function Qr(qr,yn){qr.forEach(function(on){if(yn||!(an in on)){var Dn=on[zr];yr.push({key:f(on,yr.length),groupOption:yn,data:on,label:on[Nr],value:Dn})}else{var Qn=on[jr];Qn===void 0&&kt&&(Qn=on.label),yr.push({key:f(on,yr.length),group:!0,data:on,label:Qn}),Qr(on[an],!0)}})}return Qr(ke,!1),yr}function Se(ke){var qe=(0,De.Z)({},ke);return"props"in qe||Object.defineProperty(qe,"props",{get:function(){return(0,I.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),qe}}),qe}function H(ke,qe){if(!qe||!qe.length)return null;var Rt=!1;function kt(or,Nr){var zr=(0,b.Z)(Nr),an=zr[0],jr=zr.slice(1);if(!an)return[or];var Qr=or.split(an);return Rt=Rt||Qr.length>1,Qr.reduce(function(qr,yn){return[].concat((0,ue.Z)(qr),(0,ue.Z)(kt(yn,jr)))},[]).filter(function(qr){return qr})}var yr=kt(ke,qe);return Rt?yr:null}var ne=["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(ke){return ke==="tags"||ke==="multiple"}var ye=g.forwardRef(function(ke,qe){var Rt,kt,yr=ke.id,or=ke.prefixCls,Nr=ke.className,zr=ke.showSearch,an=ke.tagRender,jr=ke.direction,Qr=ke.omitDomProps,qr=ke.displayValues,yn=ke.onDisplayValuesChange,on=ke.emptyOptions,Dn=ke.notFoundContent,Qn=Dn===void 0?"Not Found":Dn,fi=ke.onClear,On=ke.mode,An=ke.disabled,Dt=ke.loading,Kt=ke.getInputElement,Gt=ke.getRawInputElement,Jt=ke.open,Zt=ke.defaultOpen,Dr=ke.onDropdownVisibleChange,Fr=ke.activeValue,Xr=ke.onActiveValueChange,Fn=ke.activeDescendantId,Nn=ke.searchValue,si=ke.autoClearSearchValue,ti=ke.onSearch,Bi=ke.onSearchSplit,Yn=ke.tokenSeparators,jn=ke.allowClear,yi=ke.suffixIcon,vi=ke.clearIcon,wi=ke.OptionList,li=ke.animation,xi=ke.transitionName,$i=ke.dropdownStyle,ei=ke.dropdownClassName,Di=ke.dropdownMatchSelectWidth,Ha=ke.dropdownRender,oi=ke.dropdownAlign,hn=ke.placement,ln=ke.builtinPlacements,Xn=ke.getPopupContainer,Kn=ke.showAction,Ai=Kn===void 0?[]:Kn,Wi=ke.onFocus,_i=ke.onBlur,Ua=ke.onKeyUp,ca=ke.onKeyDown,Bo=ke.onMouseDown,Wn=(0,W.Z)(ke,ne),_n=we(On),Mi=(zr!==void 0?zr:_n)||On==="combobox",Zi=(0,De.Z)({},Wn);Qe.forEach(function(xa){delete Zi[xa]}),Qr==null||Qr.forEach(function(xa){delete Zi[xa]});var Ia=g.useState(!1),Is=(0,re.Z)(Ia,2),za=Is[0],da=Is[1];g.useEffect(function(){da((0,P.Z)())},[]);var Fo=g.useRef(null),So=g.useRef(null),Uo=g.useRef(null),Ps=g.useRef(null),ho=g.useRef(null),vs=G(),Ts=(0,re.Z)(vs,3),Ws=Ts[0],Ro=Ts[1],Qo=Ts[2];g.useImperativeHandle(qe,function(){var xa,ba;return{focus:(xa=Ps.current)===null||xa===void 0?void 0:xa.focus,blur:(ba=Ps.current)===null||ba===void 0?void 0:ba.blur,scrollTo:function(mo){var zo;return(zo=ho.current)===null||zo===void 0?void 0:zo.scrollTo(mo)}}});var bs=g.useMemo(function(){var xa;if(On!=="combobox")return Nn;var ba=(xa=qr[0])===null||xa===void 0?void 0:xa.value;return typeof ba=="string"||typeof ba=="number"?String(ba):""},[Nn,On,qr]),rl=On==="combobox"&&typeof Kt=="function"&&Kt()||null,vl=typeof Gt=="function"&&Gt(),nc=(0,M.x1)(So,vl==null||(Rt=vl.props)===null||Rt===void 0?void 0:Rt.ref),ic=g.useState(!1),Ql=(0,re.Z)(ic,2),Gs=Ql[0],Dc=Ql[1];(0,F.Z)(function(){Dc(!0)},[]);var Kl=(0,m.Z)(!1,{defaultValue:Zt,value:Jt}),Hl=(0,re.Z)(Kl,2),Xs=Hl[0],os=Hl[1],ri=Gs?Xs:!1,sa=!Qn&&on;(An||sa&&ri&&On==="combobox")&&(ri=!1);var Xi=sa?!1:ri,ra=g.useCallback(function(xa){var ba=xa!==void 0?xa:!ri;An||(os(ba),ri!==ba&&(Dr==null||Dr(ba)))},[An,ri,os,Dr]),Da=g.useMemo(function(){return(Yn||[]).some(function(xa){return[`
|
|
|
`,`\r
|
|
|
`].includes(xa)})},[Yn]),oo=function(ba,rs,mo){var zo=!0,$o=ba;Xr==null||Xr(null);var Oo=mo?null:H(ba,Yn);return On!=="combobox"&&Oo&&($o="",Bi==null||Bi(Oo),ra(!1),zo=!1),ti&&bs!==$o&&ti($o,{source:rs?"typing":"effect"}),zo},Js=function(ba){!ba||!ba.trim()||ti(ba,{source:"submit"})};g.useEffect(function(){!ri&&!_n&&On!=="combobox"&&oo("",!1,!1)},[ri]),g.useEffect(function(){Xs&&An&&os(!1),An&&Ro(!1)},[An]);var ys=j(),ws=(0,re.Z)(ys,2),ps=ws[0],eo=ws[1],Ra=function(ba){var rs=ps(),mo=ba.which;if(mo===U.Z.ENTER&&(On!=="combobox"&&ba.preventDefault(),ri||ra(!0)),eo(!!bs),mo===U.Z.BACKSPACE&&!rs&&_n&&!bs&&qr.length){for(var zo=(0,ue.Z)(qr),$o=null,Oo=zo.length-1;Oo>=0;Oo-=1){var xs=zo[Oo];if(!xs.disabled){zo.splice(Oo,1),$o=xs;break}}$o&&yn(zo,{type:"remove",values:[$o]})}for(var ac=arguments.length,Zc=new Array(ac>1?ac-1:0),qs=1;qs<ac;qs++)Zc[qs-1]=arguments[qs];if(ri&&ho.current){var vA;(vA=ho.current).onKeyDown.apply(vA,[ba].concat(Zc))}ca==null||ca.apply(void 0,[ba].concat(Zc))},ss=function(ba){for(var rs=arguments.length,mo=new Array(rs>1?rs-1:0),zo=1;zo<rs;zo++)mo[zo-1]=arguments[zo];if(ri&&ho.current){var $o;($o=ho.current).onKeyUp.apply($o,[ba].concat(mo))}Ua==null||Ua.apply(void 0,[ba].concat(mo))},ls=function(ba){var rs=qr.filter(function(mo){return mo!==ba});yn(rs,{type:"remove",values:[ba]})},Fs=g.useRef(!1),Xo=function(){Ro(!0),An||(Wi&&!Fs.current&&Wi.apply(void 0,arguments),Ai.includes("focus")&&ra(!0)),Fs.current=!0},Mo=function(){Ro(!1,function(){Fs.current=!1,ra(!1)}),!An&&(bs&&(On==="tags"?ti(bs,{source:"submit"}):On==="multiple"&&ti("",{source:"blur"})),_i&&_i.apply(void 0,arguments))},hA=[];g.useEffect(function(){return function(){hA.forEach(function(xa){return clearTimeout(xa)}),hA.splice(0,hA.length)}},[]);var au=function(ba){var rs,mo=ba.target,zo=(rs=Uo.current)===null||rs===void 0?void 0:rs.getPopupElement();if(zo&&zo.contains(mo)){var $o=setTimeout(function(){var Zc=hA.indexOf($o);if(Zc!==-1&&hA.splice(Zc,1),Qo(),!za&&!zo.contains(document.activeElement)){var qs;(qs=Ps.current)===null||qs===void 0||qs.focus()}});hA.push($o)}for(var Oo=arguments.length,xs=new Array(Oo>1?Oo-1:0),ac=1;ac<Oo;ac++)xs[ac-1]=arguments[ac];Bo==null||Bo.apply(void 0,[ba].concat(xs))},cc=g.useState({}),pA=(0,re.Z)(cc,2),Al=pA[1];function mA(){Al({})}var nl;vl&&(nl=function(ba){ra(ba)}),se(function(){var xa;return[Fo.current,(xa=Uo.current)===null||xa===void 0?void 0:xa.getPopupElement()]},Xi,ra,!!vl);var ms=g.useMemo(function(){return(0,De.Z)((0,De.Z)({},ke),{},{notFoundContent:Qn,open:ri,triggerOpen:Xi,id:yr,showSearch:Mi,multiple:_n,toggleOpen:ra})},[ke,Qn,Xi,ri,yr,Mi,_n,ra]),Yc=!!yi||Dt,Us;Yc&&(Us=g.createElement(Q,{className:_()("".concat(or,"-arrow"),(0,T.Z)({},"".concat(or,"-arrow-loading"),Dt)),customizeIcon:yi,customizeIconProps:{loading:Dt,searchValue:bs,open:ri,focused:Ws,showSearch:Mi}}));var OA=function(){var ba;fi==null||fi(),(ba=Ps.current)===null||ba===void 0||ba.focus(),yn([],{type:"clear",values:qr}),oo("",!1,!1)},Ac=ae(or,OA,qr,jn,vi,An,bs,On),jl=Ac.allowClear,to=Ac.clearIcon,Ys=g.createElement(wi,{ref:ho}),gA=_()(or,Nr,(kt={},(0,T.Z)(kt,"".concat(or,"-focused"),Ws),(0,T.Z)(kt,"".concat(or,"-multiple"),_n),(0,T.Z)(kt,"".concat(or,"-single"),!_n),(0,T.Z)(kt,"".concat(or,"-allow-clear"),jn),(0,T.Z)(kt,"".concat(or,"-show-arrow"),Yc),(0,T.Z)(kt,"".concat(or,"-disabled"),An),(0,T.Z)(kt,"".concat(or,"-loading"),Dt),(0,T.Z)(kt,"".concat(or,"-open"),ri),(0,T.Z)(kt,"".concat(or,"-customize-input"),rl),(0,T.Z)(kt,"".concat(or,"-show-search"),Mi),kt)),Fu=g.createElement(N,{ref:Uo,disabled:An,prefixCls:or,visible:Xi,popupElement:Ys,animation:li,transitionName:xi,dropdownStyle:$i,dropdownClassName:ei,direction:jr,dropdownMatchSelectWidth:Di,dropdownRender:Ha,dropdownAlign:oi,placement:hn,builtinPlacements:ln,getPopupContainer:Xn,empty:on,getTriggerDOMNode:function(){return So.current},onPopupVisibleChange:nl,onPopupMouseEnter:mA},vl?g.cloneElement(vl,{ref:nc}):g.createElement(cr,(0,ve.Z)({},ke,{domRef:So,prefixCls:or,inputElement:rl,ref:Ps,id:yr,showSearch:Mi,autoClearSearchValue:si,mode:On,activeDescendantId:Fn,tagRender:an,values:qr,open:ri,onToggleOpen:ra,activeValue:Fr,searchValue:bs,onSearch:oo,onSearchSubmit:Js,onRemove:ls,tokenWithEnter:Da}))),cs;return vl?cs=Fu:cs=g.createElement("div",(0,ve.Z)({className:gA},Zi,{ref:Fo,onMouseDown:au,onKeyDown:Ra,onKeyUp:ss,onFocus:Xo,onBlur:Mo}),Ws&&!ri&&g.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0},"aria-live":"polite"},"".concat(qr.map(function(xa){var ba=xa.label,rs=xa.value;return["number","string"].includes((0,S.Z)(ba))?ba:rs}).join(", "))),Fu,Us,jl&&to),g.createElement(ie.Provider,{value:ms},cs)}),je=ye,mt=function(ke,qe){var Rt=g.useRef({values:new Map,options:new Map}),kt=g.useMemo(function(){var or=Rt.current,Nr=or.values,zr=or.options,an=ke.map(function(qr){if(qr.label===void 0){var yn;return(0,De.Z)((0,De.Z)({},qr),{},{label:(yn=Nr.get(qr.value))===null||yn===void 0?void 0:yn.label})}return qr}),jr=new Map,Qr=new Map;return an.forEach(function(qr){jr.set(qr.value,qr),Qr.set(qr.value,qe.get(qr.value)||zr.get(qr.value))}),Rt.current.values=jr,Rt.current.options=Qr,an},[ke,qe]),yr=g.useCallback(function(or){return qe.get(or)||Rt.current.options.get(or)},[qe]);return[kt,yr]};function ge(ke,qe){return Ae(ke).join("").toUpperCase().includes(qe)}var st=function(ke,qe,Rt,kt,yr){return g.useMemo(function(){if(!Rt||kt===!1)return ke;var or=qe.options,Nr=qe.label,zr=qe.value,an=[],jr=typeof kt=="function",Qr=Rt.toUpperCase(),qr=jr?kt:function(on,Dn){return yr?ge(Dn[yr],Qr):Dn[or]?ge(Dn[Nr!=="children"?Nr:"label"],Qr):ge(Dn[zr],Qr)},yn=jr?function(on){return Se(on)}:function(on){return on};return ke.forEach(function(on){if(on[or]){var Dn=qr(Rt,yn(on));if(Dn)an.push(on);else{var Qn=on[or].filter(function(fi){return qr(Rt,yn(fi))});Qn.length&&an.push((0,De.Z)((0,De.Z)({},on),{},(0,T.Z)({},or,Qn)))}return}qr(Rt,yn(on))&&an.push(on)}),an},[ke,kt,yr,Rt,qe])},ze=x(17115),Ie=x(11592),Le=["children","value"],ct=["children"];function Tt(ke){var qe=ke,Rt=qe.key,kt=qe.props,yr=kt.children,or=kt.value,Nr=(0,W.Z)(kt,Le);return(0,De.Z)({key:Rt,value:or!==void 0?or:Rt,children:yr},Nr)}function Mt(ke){var qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Ie.Z)(ke).map(function(Rt,kt){if(!g.isValidElement(Rt)||!Rt.type)return null;var yr=Rt,or=yr.type.isSelectOptGroup,Nr=yr.key,zr=yr.props,an=zr.children,jr=(0,W.Z)(zr,ct);return qe||!or?Tt(Rt):(0,De.Z)((0,De.Z)({key:"__RC_SELECT_GRP__".concat(Nr===null?kt:Nr,"__"),label:Nr},jr),{},{options:Mt(an)})}).filter(function(Rt){return Rt})}function Yt(ke,qe,Rt,kt,yr){return g.useMemo(function(){var or=ke,Nr=!ke;Nr&&(or=Mt(qe));var zr=new Map,an=new Map,jr=function(yn,on,Dn){Dn&&typeof Dn=="string"&&yn.set(on[Dn],on)};function Qr(qr){for(var yn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,on=0;on<qr.length;on+=1){var Dn=qr[on];!Dn[Rt.options]||yn?(zr.set(Dn[Rt.value],Dn),jr(an,Dn,Rt.label),jr(an,Dn,kt),jr(an,Dn,yr)):Qr(Dn[Rt.options],!0)}}return Qr(or),{options:or,valueOptions:zr,labelOptions:an}},[ke,qe,Rt,kt,yr])}function _r(ke){var qe=g.useRef();qe.current=ke;var Rt=g.useCallback(function(){return qe.current.apply(qe,arguments)},[]);return Rt}var Sr=function(){return null};Sr.isSelectOptGroup=!0;var Lr=Sr,Er=function(){return null};Er.isSelectOption=!0;var Ar=Er,ar=x(80547),Rr=x(2738),fn=x(48911),En=g.createContext(null),gn=En;function Rn(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var ji=["disabled","title","children","style","className"];function Or(ke){return typeof ke=="string"||typeof ke=="number"}var bi=function(qe,Rt){var kt=J(),yr=kt.prefixCls,or=kt.id,Nr=kt.open,zr=kt.multiple,an=kt.mode,jr=kt.searchValue,Qr=kt.toggleOpen,qr=kt.notFoundContent,yn=kt.onPopupScroll,on=g.useContext(gn),Dn=on.flattenOptions,Qn=on.onActiveValue,fi=on.defaultActiveFirstOption,On=on.onSelect,An=on.menuItemSelectedIcon,Dt=on.rawValues,Kt=on.fieldNames,Gt=on.virtual,Jt=on.direction,Zt=on.listHeight,Dr=on.listItemHeight,Fr="".concat(yr,"-item"),Xr=(0,ar.Z)(function(){return Dn},[Nr,Dn],function(oi,hn){return hn[0]&&oi[1]!==hn[1]}),Fn=g.useRef(null),Nn=function(hn){hn.preventDefault()},si=function(hn){Fn.current&&Fn.current.scrollTo(typeof hn=="number"?{index:hn}:hn)},ti=function(hn){for(var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Xn=Xr.length,Kn=0;Kn<Xn;Kn+=1){var Ai=(hn+Kn*ln+Xn)%Xn,Wi=Xr[Ai],_i=Wi.group,Ua=Wi.data;if(!_i&&!Ua.disabled)return Ai}return-1},Bi=g.useState(function(){return ti(0)}),Yn=(0,re.Z)(Bi,2),jn=Yn[0],yi=Yn[1],vi=function(hn){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;yi(hn);var Xn={source:ln?"keyboard":"mouse"},Kn=Xr[hn];if(!Kn){Qn(null,-1,Xn);return}Qn(Kn.value,hn,Xn)};(0,g.useEffect)(function(){vi(fi!==!1?ti(0):-1)},[Xr.length,jr]);var wi=g.useCallback(function(oi){return Dt.has(oi)&&an!=="combobox"},[an,(0,ue.Z)(Dt).toString(),Dt.size]);(0,g.useEffect)(function(){var oi=setTimeout(function(){if(!zr&&Nr&&Dt.size===1){var ln=Array.from(Dt)[0],Xn=Xr.findIndex(function(Kn){var Ai=Kn.data;return Ai.value===ln});Xn!==-1&&(vi(Xn),si(Xn))}});if(Nr){var hn;(hn=Fn.current)===null||hn===void 0||hn.scrollTo(void 0)}return function(){return clearTimeout(oi)}},[Nr,jr,Dn.length]);var li=function(hn){hn!==void 0&&On(hn,{selected:!Dt.has(hn)}),zr||Qr(!1)};if(g.useImperativeHandle(Rt,function(){return{onKeyDown:function(hn){var ln=hn.which,Xn=hn.ctrlKey;switch(ln){case U.Z.N:case U.Z.P:case U.Z.UP:case U.Z.DOWN:{var Kn=0;if(ln===U.Z.UP?Kn=-1:ln===U.Z.DOWN?Kn=1:Rn()&&Xn&&(ln===U.Z.N?Kn=1:ln===U.Z.P&&(Kn=-1)),Kn!==0){var Ai=ti(jn+Kn,Kn);si(Ai),vi(Ai,!0)}break}case U.Z.ENTER:{var Wi=Xr[jn];Wi&&!Wi.data.disabled?li(Wi.value):li(void 0),Nr&&hn.preventDefault();break}case U.Z.ESC:Qr(!1),Nr&&hn.stopPropagation()}},onKeyUp:function(){},scrollTo:function(hn){si(hn)}}}),Xr.length===0)return g.createElement("div",{role:"listbox",id:"".concat(or,"_list"),className:"".concat(Fr,"-empty"),onMouseDown:Nn},qr);var xi=Object.keys(Kt).map(function(oi){return Kt[oi]}),$i=function(hn){return hn.label};function ei(oi,hn){var ln=oi.group;return{role:ln?"presentation":"option",id:"".concat(or,"_list_").concat(hn)}}var Di=function(hn){var ln=Xr[hn];if(!ln)return null;var Xn=ln.data||{},Kn=Xn.value,Ai=ln.group,Wi=(0,he.Z)(Xn,!0),_i=$i(ln);return ln?g.createElement("div",(0,ve.Z)({"aria-label":typeof _i=="string"&&!Ai?_i:null},Wi,{key:hn},ei(ln,hn),{"aria-selected":wi(Kn)}),Kn):null},Ha={role:"listbox",id:"".concat(or,"_list")};return g.createElement(g.Fragment,null,Gt&&g.createElement("div",(0,ve.Z)({},Ha,{style:{height:0,width:0,overflow:"hidden"}}),Di(jn-1),Di(jn),Di(jn+1)),g.createElement(fn.Z,{itemKey:"key",ref:Fn,data:Xr,height:Zt,itemHeight:Dr,fullHeight:!1,onMouseDown:Nn,onScroll:yn,virtual:Gt,direction:Jt,innerProps:Gt?null:Ha},function(oi,hn){var ln,Xn=oi.group,Kn=oi.groupOption,Ai=oi.data,Wi=oi.label,_i=oi.value,Ua=Ai.key;if(Xn){var ca,Bo=(ca=Ai.title)!==null&&ca!==void 0?ca:Or(Wi)?Wi.toString():void 0;return g.createElement("div",{className:_()(Fr,"".concat(Fr,"-group")),title:Bo},Wi!==void 0?Wi:Ua)}var Wn=Ai.disabled,_n=Ai.title,Mi=Ai.children,Zi=Ai.style,Ia=Ai.className,Is=(0,W.Z)(Ai,ji),za=(0,Rr.Z)(Is,xi),da=wi(_i),Fo="".concat(Fr,"-option"),So=_()(Fr,Fo,Ia,(ln={},(0,T.Z)(ln,"".concat(Fo,"-grouped"),Kn),(0,T.Z)(ln,"".concat(Fo,"-active"),jn===hn&&!Wn),(0,T.Z)(ln,"".concat(Fo,"-disabled"),Wn),(0,T.Z)(ln,"".concat(Fo,"-selected"),da),ln)),Uo=$i(oi),Ps=!An||typeof An=="function"||da,ho=typeof Uo=="number"?Uo:Uo||_i,vs=Or(ho)?ho.toString():void 0;return _n!==void 0&&(vs=_n),g.createElement("div",(0,ve.Z)({},(0,he.Z)(za),Gt?{}:ei(oi,hn),{"aria-selected":da,className:So,title:vs,onMouseMove:function(){jn===hn||Wn||vi(hn)},onClick:function(){Wn||li(_i)},style:Zi}),g.createElement("div",{className:"".concat(Fo,"-content")},ho),g.isValidElement(An)||da,Ps&&g.createElement(Q,{className:"".concat(Fr,"-option-state"),customizeIcon:An,customizeIconProps:{isSelected:da}},da?"\u2713":null))}))},ua=g.forwardRef(bi);ua.displayName="OptionList";var gi=ua;function ta(ke){var qe=ke.mode,Rt=ke.options,kt=ke.children,yr=ke.backfill,or=ke.allowClear,Nr=ke.placeholder,zr=ke.getInputElement,an=ke.showSearch,jr=ke.onSearch,Qr=ke.defaultOpen,qr=ke.autoFocus,yn=ke.labelInValue,on=ke.value,Dn=ke.inputValue,Qn=ke.optionLabelProp,fi=isMultiple(qe),On=an!==void 0?an:fi||qe==="combobox",An=Rt||convertChildrenToData(kt);if(warning(qe!=="tags"||An.every(function(Jt){return!Jt.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),qe==="tags"||qe==="combobox"){var Dt=An.some(function(Jt){return Jt.options?Jt.options.some(function(Zt){return typeof("value"in Zt?Zt.value:Zt.key)=="number"}):typeof("value"in Jt?Jt.value:Jt.key)=="number"});warning(!Dt,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(qe!=="combobox"||!Qn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(qe==="combobox"||!yr,"`backfill` only works with `combobox` mode."),warning(qe==="combobox"||!zr,"`getInputElement` only work with `combobox` mode."),noteOnce(qe!=="combobox"||!zr||!or||!Nr,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),jr&&!On&&qe!=="combobox"&&qe!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Qr||qr,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),on!=null){var Kt=toArray(on);warning(!yn||Kt.every(function(Jt){return _typeof(Jt)==="object"&&("key"in Jt||"value"in Jt)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!fi||Array.isArray(on),"`value` should be array when `mode` is `multiple` or `tags`")}if(kt){var Gt=null;toNodeArray(kt).some(function(Jt){if(!React.isValidElement(Jt)||!Jt.type)return!1;var Zt=Jt,Dr=Zt.type;if(Dr.isSelectOption)return!1;if(Dr.isSelectOptGroup){var Fr=toNodeArray(Jt.props.children).every(function(Xr){return!React.isValidElement(Xr)||!Jt.type||Xr.type.isSelectOption?!0:(Gt=Xr.type,!1)});return!Fr}return Gt=Dr,!0}),Gt&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Gt.displayName||Gt.name||Gt,"`.")),warning(Dn===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ji(ke,qe){if(ke){var Rt=function kt(yr){for(var or=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Nr=0;Nr<yr.length;Nr++){var zr=yr[Nr];if(zr[qe==null?void 0:qe.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!or&&Array.isArray(zr[qe==null?void 0:qe.options])&&kt(zr[qe==null?void 0:qe.options],!0))break}};Rt(ke)}}var aa=null,Io=["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"],oa=["inputValue"];function pi(ke){return!ke||(0,S.Z)(ke)!=="object"}var Ti=g.forwardRef(function(ke,qe){var Rt=ke.id,kt=ke.mode,yr=ke.prefixCls,or=yr===void 0?"rc-select":yr,Nr=ke.backfill,zr=ke.fieldNames,an=ke.inputValue,jr=ke.searchValue,Qr=ke.onSearch,qr=ke.autoClearSearchValue,yn=qr===void 0?!0:qr,on=ke.onSelect,Dn=ke.onDeselect,Qn=ke.dropdownMatchSelectWidth,fi=Qn===void 0?!0:Qn,On=ke.filterOption,An=ke.filterSort,Dt=ke.optionFilterProp,Kt=ke.optionLabelProp,Gt=ke.options,Jt=ke.children,Zt=ke.defaultActiveFirstOption,Dr=ke.menuItemSelectedIcon,Fr=ke.virtual,Xr=ke.direction,Fn=ke.listHeight,Nn=Fn===void 0?200:Fn,si=ke.listItemHeight,ti=si===void 0?20:si,Bi=ke.value,Yn=ke.defaultValue,jn=ke.labelInValue,yi=ke.onChange,vi=(0,W.Z)(ke,Io),wi=(0,ze.ZP)(Rt),li=we(kt),xi=!!(!Gt&&Jt),$i=g.useMemo(function(){return On===void 0&&kt==="combobox"?!1:On},[On,kt]),ei=g.useMemo(function(){return C(zr,xi)},[JSON.stringify(zr),xi]),Di=(0,m.Z)("",{value:jr!==void 0?jr:an,postState:function(sa){return sa||""}}),Ha=(0,re.Z)(Di,2),oi=Ha[0],hn=Ha[1],ln=Yt(Gt,Jt,ei,Dt,Kt),Xn=ln.valueOptions,Kn=ln.labelOptions,Ai=ln.options,Wi=g.useCallback(function(ri){var sa=Ae(ri);return sa.map(function(Xi){var ra,Da,oo,Js,ys;if(pi(Xi))ra=Xi;else{var ws;oo=Xi.key,Da=Xi.label,ra=(ws=Xi.value)!==null&&ws!==void 0?ws:oo}var ps=Xn.get(ra);if(ps){var eo;if(Da===void 0&&(Da=ps==null?void 0:ps[Kt||ei.label]),oo===void 0&&(oo=(eo=ps==null?void 0:ps.key)!==null&&eo!==void 0?eo:ra),Js=ps==null?void 0:ps.disabled,ys=ps==null?void 0:ps.title,0)var Ra}return{label:Da,value:ra,key:oo,disabled:Js,title:ys}})},[ei,Kt,Xn]),_i=(0,m.Z)(Yn,{value:Bi}),Ua=(0,re.Z)(_i,2),ca=Ua[0],Bo=Ua[1],Wn=g.useMemo(function(){var ri,sa=Wi(ca);return kt==="combobox"&&Ce((ri=sa[0])===null||ri===void 0?void 0:ri.value)?[]:sa},[ca,Wi,kt]),_n=mt(Wn,Xn),Mi=(0,re.Z)(_n,2),Zi=Mi[0],Ia=Mi[1],Is=g.useMemo(function(){if(!kt&&Zi.length===1){var ri=Zi[0];if(ri.value===null&&(ri.label===null||ri.label===void 0))return[]}return Zi.map(function(sa){var Xi;return(0,De.Z)((0,De.Z)({},sa),{},{label:(Xi=sa.label)!==null&&Xi!==void 0?Xi:sa.value})})},[kt,Zi]),za=g.useMemo(function(){return new Set(Zi.map(function(ri){return ri.value}))},[Zi]);g.useEffect(function(){if(kt==="combobox"){var ri,sa=(ri=Zi[0])===null||ri===void 0?void 0:ri.value;hn(Fe(sa)?String(sa):"")}},[Zi]);var da=_r(function(ri,sa){var Xi,ra=sa!=null?sa:ri;return Xi={},(0,T.Z)(Xi,ei.value,ri),(0,T.Z)(Xi,ei.label,ra),Xi}),Fo=g.useMemo(function(){if(kt!=="tags")return Ai;var ri=(0,ue.Z)(Ai),sa=function(ra){return Xn.has(ra)};return(0,ue.Z)(Zi).sort(function(Xi,ra){return Xi.value<ra.value?-1:1}).forEach(function(Xi){var ra=Xi.value;sa(ra)||ri.push(da(ra,Xi.label))}),ri},[da,Ai,Xn,Zi,kt]),So=st(Fo,ei,oi,$i,Dt),Uo=g.useMemo(function(){return kt!=="tags"||!oi||So.some(function(ri){return ri[Dt||"value"]===oi})||So.some(function(ri){return ri[ei.value]===oi})?So:[da(oi)].concat((0,ue.Z)(So))},[da,Dt,kt,So,oi,ei]),Ps=g.useMemo(function(){return An?(0,ue.Z)(Uo).sort(function(ri,sa){return An(ri,sa)}):Uo},[Uo,An]),ho=g.useMemo(function(){return ee(Ps,{fieldNames:ei,childrenAsData:xi})},[Ps,ei,xi]),vs=function(sa){var Xi=Wi(sa);if(Bo(Xi),yi&&(Xi.length!==Zi.length||Xi.some(function(oo,Js){var ys;return((ys=Zi[Js])===null||ys===void 0?void 0:ys.value)!==(oo==null?void 0:oo.value)}))){var ra=jn?Xi:Xi.map(function(oo){return oo.value}),Da=Xi.map(function(oo){return Se(Ia(oo.value))});yi(li?ra:ra[0],li?Da:Da[0])}},Ts=g.useState(null),Ws=(0,re.Z)(Ts,2),Ro=Ws[0],Qo=Ws[1],bs=g.useState(0),rl=(0,re.Z)(bs,2),vl=rl[0],nc=rl[1],ic=Zt!==void 0?Zt:kt!=="combobox",Ql=g.useCallback(function(ri,sa){var Xi=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ra=Xi.source,Da=ra===void 0?"keyboard":ra;nc(sa),Nr&&kt==="combobox"&&ri!==null&&Da==="keyboard"&&Qo(String(ri))},[Nr,kt]),Gs=function(sa,Xi,ra){var Da=function(){var Fs,Xo=Ia(sa);return[jn?{label:Xo==null?void 0:Xo[ei.label],value:sa,key:(Fs=Xo==null?void 0:Xo.key)!==null&&Fs!==void 0?Fs:sa}:sa,Se(Xo)]};if(Xi&&on){var oo=Da(),Js=(0,re.Z)(oo,2),ys=Js[0],ws=Js[1];on(ys,ws)}else if(!Xi&&Dn&&ra!=="clear"){var ps=Da(),eo=(0,re.Z)(ps,2),Ra=eo[0],ss=eo[1];Dn(Ra,ss)}},Dc=_r(function(ri,sa){var Xi,ra=li?sa.selected:!0;ra?Xi=li?[].concat((0,ue.Z)(Zi),[ri]):[ri]:Xi=Zi.filter(function(Da){return Da.value!==ri}),vs(Xi),Gs(ri,ra),kt==="combobox"?Qo(""):(!we||yn)&&(hn(""),Qo(""))}),Kl=function(sa,Xi){vs(sa);var ra=Xi.type,Da=Xi.values;(ra==="remove"||ra==="clear")&&Da.forEach(function(oo){Gs(oo.value,!1,ra)})},Hl=function(sa,Xi){if(hn(sa),Qo(null),Xi.source==="submit"){var ra=(sa||"").trim();if(ra){var Da=Array.from(new Set([].concat((0,ue.Z)(za),[ra])));vs(Da),Gs(ra,!0),hn("")}return}Xi.source!=="blur"&&(kt==="combobox"&&vs(sa),Qr==null||Qr(sa))},Xs=function(sa){var Xi=sa;kt!=="tags"&&(Xi=sa.map(function(Da){var oo=Kn.get(Da);return oo==null?void 0:oo.value}).filter(function(Da){return Da!==void 0}));var ra=Array.from(new Set([].concat((0,ue.Z)(za),(0,ue.Z)(Xi))));vs(ra),ra.forEach(function(Da){Gs(Da,!0)})},os=g.useMemo(function(){var ri=Fr!==!1&&fi!==!1;return(0,De.Z)((0,De.Z)({},ln),{},{flattenOptions:ho,onActiveValue:Ql,defaultActiveFirstOption:ic,onSelect:Dc,menuItemSelectedIcon:Dr,rawValues:za,fieldNames:ei,virtual:ri,direction:Xr,listHeight:Nn,listItemHeight:ti,childrenAsData:xi})},[ln,ho,Ql,ic,Dc,Dr,za,ei,Fr,fi,Nn,ti,xi]);return g.createElement(gn.Provider,{value:os},g.createElement(je,(0,ve.Z)({},vi,{id:wi,prefixCls:or,ref:qe,omitDomProps:oa,mode:kt,displayValues:Is,onDisplayValuesChange:Kl,direction:Xr,searchValue:oi,onSearch:Hl,autoClearSearchValue:yn,onSearchSplit:Xs,dropdownMatchSelectWidth:fi,OptionList:gi,emptyOptions:!ho.length,activeValue:Ro,activeDescendantId:"".concat(wi,"_list_").concat(vl)})))}),zi=Ti;zi.Option=Ar,zi.OptGroup=Lr;var be=zi,Oe=be},9296:function(dn,Ut,x){"use strict";x.r(Ut),x.d(Ut,{ResizableTextArea:function(){return Pe},default:function(){return Ce}});var ve=x(54476),ue=x(33885),T=x(20068),De=x(76190),re=x(42978),W=x(75931),S=x(94480),m=x(92310),I=x.n(m),g=x(93681),$=x(5643),_=x(18929),F=x(59301),P=x(29301),U=x(34280),M=x(16089),Y=`
|
|
|
min-height:0 !important;
|
|
|
max-height:none !important;
|
|
|
height:0 !important;
|
|
|
visibility:hidden !important;
|
|
|
overflow:hidden !important;
|
|
|
position:absolute !important;
|
|
|
z-index:-1000 !important;
|
|
|
top:0 !important;
|
|
|
right:0 !important;
|
|
|
pointer-events: none !important;
|
|
|
`,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"],ae={},ie;function J(Ue){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=Ue.getAttribute("id")||Ue.getAttribute("data-reactid")||Ue.getAttribute("name");if(me&&ae[Me])return ae[Me];var fe=window.getComputedStyle(Ue),Ee=fe.getPropertyValue("box-sizing")||fe.getPropertyValue("-moz-box-sizing")||fe.getPropertyValue("-webkit-box-sizing"),rt=parseFloat(fe.getPropertyValue("padding-bottom"))+parseFloat(fe.getPropertyValue("padding-top")),ot=parseFloat(fe.getPropertyValue("border-bottom-width"))+parseFloat(fe.getPropertyValue("border-top-width")),We=Q.map(function(_t){return"".concat(_t,":").concat(fe.getPropertyValue(_t))}).join(";"),et={sizingStyle:We,paddingSize:rt,borderSize:ot,boxSizing:Ee};return me&&Me&&(ae[Me]=et),et}function G(Ue){var me=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Me=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,fe=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;ie||(ie=document.createElement("textarea"),ie.setAttribute("tab-index","-1"),ie.setAttribute("aria-hidden","true"),document.body.appendChild(ie)),Ue.getAttribute("wrap")?ie.setAttribute("wrap",Ue.getAttribute("wrap")):ie.removeAttribute("wrap");var Ee=J(Ue,me),rt=Ee.paddingSize,ot=Ee.borderSize,We=Ee.boxSizing,et=Ee.sizingStyle;ie.setAttribute("style","".concat(et,";").concat(Y)),ie.value=Ue.value||Ue.placeholder||"";var _t=void 0,Ot=void 0,Pt,cr=ie.scrollHeight;if(We==="border-box"?cr+=ot:We==="content-box"&&(cr-=rt),Me!==null||fe!==null){ie.value=" ";var nr=ie.scrollHeight-rt;Me!==null&&(_t=nr*Me,We==="border-box"&&(_t=_t+rt+ot),cr=Math.max(_t,cr)),fe!==null&&(Ot=nr*fe,We==="border-box"&&(Ot=Ot+rt+ot),Pt=cr>Ot?"":"hidden",cr=Math.min(Ot,cr))}var br={height:cr,overflowY:Pt,resize:"none"};return _t&&(br.minHeight=_t),Ot&&(br.maxHeight=Ot),br}var j=["prefixCls","onPressEnter","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],se=0,he=1,Ne=2,Be=F.forwardRef(function(Ue,me){var Me=Ue,fe=Me.prefixCls,Ee=Me.onPressEnter,rt=Me.defaultValue,ot=Me.value,We=Me.autoSize,et=Me.onResize,_t=Me.className,Ot=Me.style,Pt=Me.disabled,cr=Me.onChange,nr=Me.onInternalAutoSize,br=(0,W.Z)(Me,j),sr=(0,_.Z)(rt,{value:ot,postState:function(Lr){return Lr!=null?Lr:""}}),k=(0,re.Z)(sr,2),Xe=k[0],N=k[1],b=function(Lr){N(Lr.target.value),cr==null||cr(Lr)},f=F.useRef();F.useImperativeHandle(me,function(){return{textArea:f.current}});var C=F.useMemo(function(){return We&&(0,De.Z)(We)==="object"?[We.minRows,We.maxRows]:[]},[We]),ee=(0,re.Z)(C,2),Se=ee[0],H=ee[1],ne=!!We,Qe=function(){try{if(document.activeElement===f.current){var Lr=f.current,Er=Lr.selectionStart,Ar=Lr.selectionEnd,ar=Lr.scrollTop;f.current.setSelectionRange(Er,Ar),f.current.scrollTop=ar}}catch(Rr){}},we=F.useState(Ne),ye=(0,re.Z)(we,2),je=ye[0],mt=ye[1],ge=F.useState(),st=(0,re.Z)(ge,2),ze=st[0],Ie=st[1],Le=function(){mt(se)};(0,U.Z)(function(){ne&&Le()},[ot,Se,H,ne]),(0,U.Z)(function(){if(je===se)mt(he);else if(je===he){var Sr=G(f.current,!1,Se,H);mt(Ne),Ie(Sr)}else Qe()},[je]);var ct=F.useRef(),Tt=function(){M.Z.cancel(ct.current)},Mt=function(Lr){je===Ne&&(et==null||et(Lr),We&&(Tt(),ct.current=(0,M.Z)(function(){Le()})))};F.useEffect(function(){return Tt},[]);var Yt=ne?ze:null,_r=(0,ue.Z)((0,ue.Z)({},Ot),Yt);return(je===se||je===he)&&(_r.overflowY="hidden",_r.overflowX="hidden"),F.createElement(P.Z,{onResize:Mt,disabled:!(We||et)},F.createElement("textarea",(0,ve.Z)({},br,{ref:f,style:_r,className:I()(fe,_t,(0,T.Z)({},"".concat(fe,"-disabled"),Pt)),disabled:Pt,value:Xe,onChange:b})))}),Pe=Be,q=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","classes","showCount","className","style","disabled","hidden","classNames","styles","onResize"];function Ae(Ue,me){return(0,S.Z)(Ue||"").slice(0,me).join("")}function D(Ue,me,Me,fe){var Ee=Me;return Ue?Ee=Ae(Me,fe):(0,S.Z)(me||"").length<Me.length&&(0,S.Z)(Me||"").length>fe&&(Ee=me),Ee}var Je=F.forwardRef(function(Ue,me){var Me,fe=Ue.defaultValue,Ee=Ue.value,rt=Ue.onFocus,ot=Ue.onBlur,We=Ue.onChange,et=Ue.allowClear,_t=Ue.maxLength,Ot=Ue.onCompositionStart,Pt=Ue.onCompositionEnd,cr=Ue.suffix,nr=Ue.prefixCls,br=nr===void 0?"rc-textarea":nr,sr=Ue.classes,k=Ue.showCount,Xe=Ue.className,N=Ue.style,b=Ue.disabled,f=Ue.hidden,C=Ue.classNames,ee=Ue.styles,Se=Ue.onResize,H=(0,W.Z)(Ue,q),ne=(0,_.Z)(fe,{value:Ee,defaultValue:fe}),Qe=(0,re.Z)(ne,2),we=Qe[0],ye=Qe[1],je=(0,F.useRef)(null),mt=F.useState(!1),ge=(0,re.Z)(mt,2),st=ge[0],ze=ge[1],Ie=F.useState(!1),Le=(0,re.Z)(Ie,2),ct=Le[0],Tt=Le[1],Mt=F.useRef(),Yt=F.useRef(0),_r=F.useState(null),Sr=(0,re.Z)(_r,2),Lr=Sr[0],Er=Sr[1],Ar=function(){var pi;(pi=je.current)===null||pi===void 0||pi.textArea.focus()};(0,F.useImperativeHandle)(me,function(){return{resizableTextArea:je.current,focus:Ar,blur:function(){var pi;(pi=je.current)===null||pi===void 0||pi.textArea.blur()}}}),(0,F.useEffect)(function(){ze(function(oa){return!b&&oa})},[b]);var ar=Number(_t)>0,Rr=function(pi){Tt(!0),Mt.current=we,Yt.current=pi.currentTarget.selectionStart,Ot==null||Ot(pi)},fn=function(pi){Tt(!1);var Ti=pi.currentTarget.value;if(ar){var zi,be=Yt.current>=_t+1||Yt.current===((zi=Mt.current)===null||zi===void 0?void 0:zi.length);Ti=D(be,Mt.current,Ti,_t)}Ti!==we&&(ye(Ti),(0,$.rJ)(pi.currentTarget,pi,We,Ti)),Pt==null||Pt(pi)},En=function(pi){var Ti=pi.target.value;if(!ct&&ar){var zi=pi.target.selectionStart>=_t+1||pi.target.selectionStart===Ti.length||!pi.target.selectionStart;Ti=D(zi,we,Ti,_t)}ye(Ti),(0,$.rJ)(pi.currentTarget,pi,We,Ti)},gn=function(pi){var Ti=H.onPressEnter,zi=H.onKeyDown;pi.key==="Enter"&&Ti&&Ti(pi),zi==null||zi(pi)},Rn=function(pi){ze(!0),rt==null||rt(pi)},ji=function(pi){ze(!1),ot==null||ot(pi)},Or=function(pi){var Ti;ye(""),Ar(),(0,$.rJ)((Ti=je.current)===null||Ti===void 0?void 0:Ti.textArea,pi,We)},bi=(0,$.D7)(we);!ct&&ar&&Ee==null&&(bi=Ae(bi,_t));var ua=cr,gi;if(k){var ta=(0,S.Z)(bi).length;(0,De.Z)(k)==="object"?gi=k.formatter({value:bi,count:ta,maxLength:_t}):gi="".concat(ta).concat(ar?" / ".concat(_t):""),ua=F.createElement(F.Fragment,null,ua,F.createElement("span",{className:I()("".concat(br,"-data-count"),C==null?void 0:C.count),style:ee==null?void 0:ee.count},gi))}var Ji=function(pi){var Ti;Se==null||Se(pi),(Ti=je.current)!==null&&Ti!==void 0&&Ti.textArea.style.height&&Er(!0)},aa=!H.autoSize&&!k&&!et,Io=F.createElement(g.BaseInput,{value:bi,allowClear:et,handleReset:Or,suffix:ua,prefixCls:br,classes:{affixWrapper:I()(sr==null?void 0:sr.affixWrapper,(Me={},(0,T.Z)(Me,"".concat(br,"-show-count"),k),(0,T.Z)(Me,"".concat(br,"-textarea-allow-clear"),et),Me))},disabled:b,focused:st,className:Xe,style:(0,ue.Z)((0,ue.Z)({},N),Lr&&!aa?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof gi=="string"?gi:void 0}},hidden:f,inputElement:F.createElement(Pe,(0,ve.Z)({},H,{onKeyDown:gn,onChange:En,onFocus:Rn,onBlur:ji,onCompositionStart:Rr,onCompositionEnd:fn,className:C==null?void 0:C.textarea,style:(0,ue.Z)((0,ue.Z)({},ee==null?void 0:ee.textarea),{},{resize:N==null?void 0:N.resize}),disabled:b,prefixCls:br,onResize:Ji,ref:je}))});return Io}),Fe=Je,Ce=Fe},39417:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return he}});var ve=x(54476),ue=x(20068),T=x(75931),De=x(33885),re=x(67732),W=x(83652),S=x(31226),m=x(42403),I=x(158),g=x(92310),$=x.n(g),_=x(26112),F=x(59301),P=x(39378),U=function(Be){for(var Pe=Be.prefixCls,q=Be.level,Ae=Be.isStart,D=Be.isEnd,Je="".concat(Pe,"-indent-unit"),Fe=[],Ce=0;Ce<q;Ce+=1){var Ue;Fe.push(F.createElement("span",{key:Ce,className:$()(Je,(Ue={},(0,ue.Z)(Ue,"".concat(Je,"-start"),Ae[Ce]),(0,ue.Z)(Ue,"".concat(Je,"-end"),D[Ce]),Ue))}))}return F.createElement("span",{"aria-hidden":"true",className:"".concat(Pe,"-indent")},Fe)},M=F.memo(U),Y=x(67841),Q=x(71430),ae=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],ie="open",J="close",G="---",j=function(Ne){(0,m.Z)(Pe,Ne);var Be=(0,I.Z)(Pe);function Pe(){var q;(0,re.Z)(this,Pe);for(var Ae=arguments.length,D=new Array(Ae),Je=0;Je<Ae;Je++)D[Je]=arguments[Je];return q=Be.call.apply(Be,[this].concat(D)),q.state={dragNodeHighlight:!1},q.selectHandle=void 0,q.cacheIndent=void 0,q.onSelectorClick=function(Fe){var Ce=q.props.context.onNodeClick;Ce(Fe,(0,Q.F)(q.props)),q.isSelectable()?q.onSelect(Fe):q.onCheck(Fe)},q.onSelectorDoubleClick=function(Fe){var Ce=q.props.context.onNodeDoubleClick;Ce(Fe,(0,Q.F)(q.props))},q.onSelect=function(Fe){if(!q.isDisabled()){var Ce=q.props.context.onNodeSelect;Ce(Fe,(0,Q.F)(q.props))}},q.onCheck=function(Fe){if(!q.isDisabled()){var Ce=q.props,Ue=Ce.disableCheckbox,me=Ce.checked,Me=q.props.context.onNodeCheck;if(!(!q.isCheckable()||Ue)){var fe=!me;Me(Fe,(0,Q.F)(q.props),fe)}}},q.onMouseEnter=function(Fe){var Ce=q.props.context.onNodeMouseEnter;Ce(Fe,(0,Q.F)(q.props))},q.onMouseLeave=function(Fe){var Ce=q.props.context.onNodeMouseLeave;Ce(Fe,(0,Q.F)(q.props))},q.onContextMenu=function(Fe){var Ce=q.props.context.onNodeContextMenu;Ce(Fe,(0,Q.F)(q.props))},q.onDragStart=function(Fe){var Ce=q.props.context.onNodeDragStart;Fe.stopPropagation(),q.setState({dragNodeHighlight:!0}),Ce(Fe,(0,S.Z)(q));try{Fe.dataTransfer.setData("text/plain","")}catch(Ue){}},q.onDragEnter=function(Fe){var Ce=q.props.context.onNodeDragEnter;Fe.preventDefault(),Fe.stopPropagation(),Ce(Fe,(0,S.Z)(q))},q.onDragOver=function(Fe){var Ce=q.props.context.onNodeDragOver;Fe.preventDefault(),Fe.stopPropagation(),Ce(Fe,(0,S.Z)(q))},q.onDragLeave=function(Fe){var Ce=q.props.context.onNodeDragLeave;Fe.stopPropagation(),Ce(Fe,(0,S.Z)(q))},q.onDragEnd=function(Fe){var Ce=q.props.context.onNodeDragEnd;Fe.stopPropagation(),q.setState({dragNodeHighlight:!1}),Ce(Fe,(0,S.Z)(q))},q.onDrop=function(Fe){var Ce=q.props.context.onNodeDrop;Fe.preventDefault(),Fe.stopPropagation(),q.setState({dragNodeHighlight:!1}),Ce(Fe,(0,S.Z)(q))},q.onExpand=function(Fe){var Ce=q.props,Ue=Ce.loading,me=Ce.context.onNodeExpand;Ue||me(Fe,(0,Q.F)(q.props))},q.setSelectHandle=function(Fe){q.selectHandle=Fe},q.getNodeState=function(){var Fe=q.props.expanded;return q.isLeaf()?null:Fe?ie:J},q.hasChildren=function(){var Fe=q.props.eventKey,Ce=q.props.context.keyEntities,Ue=(0,Y.Z)(Ce,Fe)||{},me=Ue.children;return!!(me||[]).length},q.isLeaf=function(){var Fe=q.props,Ce=Fe.isLeaf,Ue=Fe.loaded,me=q.props.context.loadData,Me=q.hasChildren();return Ce===!1?!1:Ce||!me&&!Me||me&&Ue&&!Me},q.isDisabled=function(){var Fe=q.props.disabled,Ce=q.props.context.disabled;return!!(Ce||Fe)},q.isCheckable=function(){var Fe=q.props.checkable,Ce=q.props.context.checkable;return!Ce||Fe===!1?!1:Ce},q.syncLoadData=function(Fe){var Ce=Fe.expanded,Ue=Fe.loading,me=Fe.loaded,Me=q.props.context,fe=Me.loadData,Ee=Me.onNodeLoad;Ue||fe&&Ce&&!q.isLeaf()&&!q.hasChildren()&&!me&&Ee((0,Q.F)(q.props))},q.isDraggable=function(){var Fe=q.props,Ce=Fe.data,Ue=Fe.context.draggable;return!!(Ue&&(!Ue.nodeDraggable||Ue.nodeDraggable(Ce)))},q.renderDragHandler=function(){var Fe=q.props.context,Ce=Fe.draggable,Ue=Fe.prefixCls;return Ce!=null&&Ce.icon?F.createElement("span",{className:"".concat(Ue,"-draggable-icon")},Ce.icon):null},q.renderSwitcherIconDom=function(Fe){var Ce=q.props.switcherIcon,Ue=q.props.context.switcherIcon,me=Ce||Ue;return typeof me=="function"?me((0,De.Z)((0,De.Z)({},q.props),{},{isLeaf:Fe})):me},q.renderSwitcher=function(){var Fe=q.props.expanded,Ce=q.props.context.prefixCls;if(q.isLeaf()){var Ue=q.renderSwitcherIconDom(!0);return Ue!==!1?F.createElement("span",{className:$()("".concat(Ce,"-switcher"),"".concat(Ce,"-switcher-noop"))},Ue):null}var me=$()("".concat(Ce,"-switcher"),"".concat(Ce,"-switcher_").concat(Fe?ie:J)),Me=q.renderSwitcherIconDom(!1);return Me!==!1?F.createElement("span",{onClick:q.onExpand,className:me},Me):null},q.renderCheckbox=function(){var Fe=q.props,Ce=Fe.checked,Ue=Fe.halfChecked,me=Fe.disableCheckbox,Me=q.props.context.prefixCls,fe=q.isDisabled(),Ee=q.isCheckable();if(!Ee)return null;var rt=typeof Ee!="boolean"?Ee:null;return F.createElement("span",{className:$()("".concat(Me,"-checkbox"),Ce&&"".concat(Me,"-checkbox-checked"),!Ce&&Ue&&"".concat(Me,"-checkbox-indeterminate"),(fe||me)&&"".concat(Me,"-checkbox-disabled")),onClick:q.onCheck},rt)},q.renderIcon=function(){var Fe=q.props.loading,Ce=q.props.context.prefixCls;return F.createElement("span",{className:$()("".concat(Ce,"-iconEle"),"".concat(Ce,"-icon__").concat(q.getNodeState()||"docu"),Fe&&"".concat(Ce,"-icon_loading"))})},q.renderSelector=function(){var Fe=q.state.dragNodeHighlight,Ce=q.props,Ue=Ce.title,me=Ue===void 0?G:Ue,Me=Ce.selected,fe=Ce.icon,Ee=Ce.loading,rt=Ce.data,ot=q.props.context,We=ot.prefixCls,et=ot.showIcon,_t=ot.icon,Ot=ot.loadData,Pt=ot.titleRender,cr=q.isDisabled(),nr="".concat(We,"-node-content-wrapper"),br;if(et){var sr=fe||_t;br=sr?F.createElement("span",{className:$()("".concat(We,"-iconEle"),"".concat(We,"-icon__customize"))},typeof sr=="function"?sr(q.props):sr):q.renderIcon()}else Ot&&Ee&&(br=q.renderIcon());var k;typeof me=="function"?k=me(rt):Pt?k=Pt(rt):k=me;var Xe=F.createElement("span",{className:"".concat(We,"-title")},k);return F.createElement("span",{ref:q.setSelectHandle,title:typeof me=="string"?me:"",className:$()("".concat(nr),"".concat(nr,"-").concat(q.getNodeState()||"normal"),!cr&&(Me||Fe)&&"".concat(We,"-node-selected")),onMouseEnter:q.onMouseEnter,onMouseLeave:q.onMouseLeave,onContextMenu:q.onContextMenu,onClick:q.onSelectorClick,onDoubleClick:q.onSelectorDoubleClick},br,Xe,q.renderDropIndicator())},q.renderDropIndicator=function(){var Fe=q.props,Ce=Fe.disabled,Ue=Fe.eventKey,me=q.props.context,Me=me.draggable,fe=me.dropLevelOffset,Ee=me.dropPosition,rt=me.prefixCls,ot=me.indent,We=me.dropIndicatorRender,et=me.dragOverNodeKey,_t=me.direction,Ot=!!Me,Pt=!Ce&&Ot&&et===Ue,cr=ot!=null?ot:q.cacheIndent;return q.cacheIndent=ot,Pt?We({dropPosition:Ee,dropLevelOffset:fe,indent:cr,prefixCls:rt,direction:_t}):null},q}return(0,W.Z)(Pe,[{key:"componentDidMount",value:function(){this.syncLoadData(this.props)}},{key:"componentDidUpdate",value:function(){this.syncLoadData(this.props)}},{key:"isSelectable",value:function(){var Ae=this.props.selectable,D=this.props.context.selectable;return typeof Ae=="boolean"?Ae:D}},{key:"render",value:function(){var Ae,D=this.props,Je=D.eventKey,Fe=D.className,Ce=D.style,Ue=D.dragOver,me=D.dragOverGapTop,Me=D.dragOverGapBottom,fe=D.isLeaf,Ee=D.isStart,rt=D.isEnd,ot=D.expanded,We=D.selected,et=D.checked,_t=D.halfChecked,Ot=D.loading,Pt=D.domRef,cr=D.active,nr=D.data,br=D.onMouseMove,sr=D.selectable,k=(0,T.Z)(D,ae),Xe=this.props.context,N=Xe.prefixCls,b=Xe.filterTreeNode,f=Xe.keyEntities,C=Xe.dropContainerKey,ee=Xe.dropTargetKey,Se=Xe.draggingNodeKey,H=this.isDisabled(),ne=(0,_.Z)(k,{aria:!0,data:!0}),Qe=(0,Y.Z)(f,Je)||{},we=Qe.level,ye=rt[rt.length-1],je=this.isDraggable(),mt=!H&&je,ge=Se===Je,st=sr!==void 0?{"aria-selected":!!sr}:void 0;return F.createElement("div",(0,ve.Z)({ref:Pt,className:$()(Fe,"".concat(N,"-treenode"),(Ae={},(0,ue.Z)(Ae,"".concat(N,"-treenode-disabled"),H),(0,ue.Z)(Ae,"".concat(N,"-treenode-switcher-").concat(ot?"open":"close"),!fe),(0,ue.Z)(Ae,"".concat(N,"-treenode-checkbox-checked"),et),(0,ue.Z)(Ae,"".concat(N,"-treenode-checkbox-indeterminate"),_t),(0,ue.Z)(Ae,"".concat(N,"-treenode-selected"),We),(0,ue.Z)(Ae,"".concat(N,"-treenode-loading"),Ot),(0,ue.Z)(Ae,"".concat(N,"-treenode-active"),cr),(0,ue.Z)(Ae,"".concat(N,"-treenode-leaf-last"),ye),(0,ue.Z)(Ae,"".concat(N,"-treenode-draggable"),je),(0,ue.Z)(Ae,"dragging",ge),(0,ue.Z)(Ae,"drop-target",ee===Je),(0,ue.Z)(Ae,"drop-container",C===Je),(0,ue.Z)(Ae,"drag-over",!H&&Ue),(0,ue.Z)(Ae,"drag-over-gap-top",!H&&me),(0,ue.Z)(Ae,"drag-over-gap-bottom",!H&&Me),(0,ue.Z)(Ae,"filter-node",b&&b((0,Q.F)(this.props))),Ae)),style:Ce,draggable:mt,"aria-grabbed":ge,onDragStart:mt?this.onDragStart:void 0,onDragEnter:je?this.onDragEnter:void 0,onDragOver:je?this.onDragOver:void 0,onDragLeave:je?this.onDragLeave:void 0,onDrop:je?this.onDrop:void 0,onDragEnd:je?this.onDragEnd:void 0,onMouseMove:br},st,ne),F.createElement(M,{prefixCls:N,level:we,isStart:Ee,isEnd:rt}),this.renderDragHandler(),this.renderSwitcher(),this.renderCheckbox(),this.renderSelector())}}]),Pe}(F.Component),se=function(Be){return F.createElement(P.k.Consumer,null,function(Pe){return F.createElement(j,(0,ve.Z)({},Be,{context:Pe}))})};se.displayName="TreeNode",se.isTreeNode=1;var he=se},39378:function(dn,Ut,x){"use strict";x.d(Ut,{k:function(){return ue}});var ve=x(59301),ue=ve.createContext(null)},60091:function(dn,Ut,x){"use strict";x.d(Ut,{O:function(){return he.Z},Z:function(){return Xe}});var ve=x(54476),ue=x(20068),T=x(76190),De=x(33885),re=x(94480),W=x(67732),S=x(83652),m=x(31226),I=x(42403),g=x(158),$=x(92310),_=x.n($),F=x(10228),P=x(26112),U=x(48736),M=x(59301),Y=x(39378);function Q(N){var b=N.dropPosition,f=N.dropLevelOffset,C=N.indent,ee={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(b){case-1:ee.top=0,ee.left=-f*C;break;case 1:ee.bottom=0,ee.left=-f*C;break;case 0:ee.bottom=0,ee.left=C;break}return M.createElement("div",{style:ee})}function ae(N){if(N==null)throw new TypeError("Cannot destructure "+N)}var ie=x(42978),J=x(75931),G=x(34280),j=x(48911),se=x(77900),he=x(39417);function Ne(N,b){var f=M.useState(!1),C=(0,ie.Z)(f,2),ee=C[0],Se=C[1];M.useLayoutEffect(function(){if(ee)return N(),function(){b()}},[ee]),M.useLayoutEffect(function(){return Se(!0),function(){Se(!1)}},[])}var Be=x(71430),Pe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],q=function(b,f){var C=b.className,ee=b.style,Se=b.motion,H=b.motionNodes,ne=b.motionType,Qe=b.onMotionStart,we=b.onMotionEnd,ye=b.active,je=b.treeNodeRequiredProps,mt=(0,J.Z)(b,Pe),ge=M.useState(!0),st=(0,ie.Z)(ge,2),ze=st[0],Ie=st[1],Le=M.useContext(Y.k),ct=Le.prefixCls,Tt=H&&ne!=="hide";(0,G.Z)(function(){H&&Tt!==ze&&Ie(Tt)},[H]);var Mt=function(){H&&Qe()},Yt=M.useRef(!1),_r=function(){H&&!Yt.current&&(Yt.current=!0,we())};Ne(Mt,_r);var Sr=function(Er){Tt===Er&&_r()};return H?M.createElement(se.default,(0,ve.Z)({ref:f,visible:ze},Se,{motionAppear:ne==="show",onVisibleChanged:Sr}),function(Lr,Er){var Ar=Lr.className,ar=Lr.style;return M.createElement("div",{ref:Er,className:_()("".concat(ct,"-treenode-motion"),Ar),style:ar},H.map(function(Rr){var fn=(0,ve.Z)({},(ae(Rr.data),Rr.data)),En=Rr.title,gn=Rr.key,Rn=Rr.isStart,ji=Rr.isEnd;delete fn.children;var Or=(0,Be.H8)(gn,je);return M.createElement(he.Z,(0,ve.Z)({},fn,Or,{title:En,active:ye,data:Rr.data,key:gn,isStart:Rn,isEnd:ji}))}))}):M.createElement(he.Z,(0,ve.Z)({domRef:f,className:C,style:ee},mt,{active:ye}))};q.displayName="MotionTreeNode";var Ae=M.forwardRef(q),D=Ae;function Je(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],f=N.length,C=b.length;if(Math.abs(f-C)!==1)return{add:!1,key:null};function ee(Se,H){var ne=new Map;Se.forEach(function(we){ne.set(we,!0)});var Qe=H.filter(function(we){return!ne.has(we)});return Qe.length===1?Qe[0]:null}return f<C?{add:!0,key:ee(N,b)}:{add:!1,key:ee(b,N)}}function Fe(N,b,f){var C=N.findIndex(function(ne){return ne.key===f}),ee=N[C+1],Se=b.findIndex(function(ne){return ne.key===f});if(ee){var H=b.findIndex(function(ne){return ne.key===ee.key});return b.slice(Se+1,H)}return b.slice(Se+1)}var Ce=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],Ue={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},me=function(){},Me="RC_TREE_MOTION_".concat(Math.random()),fe={key:Me},Ee={key:Me,level:0,index:0,pos:"0",node:fe,nodes:[fe]},rt={parent:null,children:[],pos:Ee.pos,data:fe,title:null,key:Me,isStart:[],isEnd:[]};function ot(N,b,f,C){return b===!1||!f?N:N.slice(0,Math.ceil(f/C)+1)}function We(N){var b=N.key,f=N.pos;return(0,Be.km)(b,f)}function et(N){for(var b=String(N.data.key),f=N;f.parent;)f=f.parent,b="".concat(f.data.key," > ").concat(b);return b}var _t=M.forwardRef(function(N,b){var f=N.prefixCls,C=N.data,ee=N.selectable,Se=N.checkable,H=N.expandedKeys,ne=N.selectedKeys,Qe=N.checkedKeys,we=N.loadedKeys,ye=N.loadingKeys,je=N.halfCheckedKeys,mt=N.keyEntities,ge=N.disabled,st=N.dragging,ze=N.dragOverNodeKey,Ie=N.dropPosition,Le=N.motion,ct=N.height,Tt=N.itemHeight,Mt=N.virtual,Yt=N.focusable,_r=N.activeItem,Sr=N.focused,Lr=N.tabIndex,Er=N.onKeyDown,Ar=N.onFocus,ar=N.onBlur,Rr=N.onActiveChange,fn=N.onListChangeStart,En=N.onListChangeEnd,gn=(0,J.Z)(N,Ce),Rn=M.useRef(null),ji=M.useRef(null);M.useImperativeHandle(b,function(){return{scrollTo:function(qr){Rn.current.scrollTo(qr)},getIndentWidth:function(){return ji.current.offsetWidth}}});var Or=M.useState(H),bi=(0,ie.Z)(Or,2),ua=bi[0],gi=bi[1],ta=M.useState(C),Ji=(0,ie.Z)(ta,2),aa=Ji[0],Io=Ji[1],oa=M.useState(C),pi=(0,ie.Z)(oa,2),Ti=pi[0],zi=pi[1],be=M.useState([]),Oe=(0,ie.Z)(be,2),ke=Oe[0],qe=Oe[1],Rt=M.useState(null),kt=(0,ie.Z)(Rt,2),yr=kt[0],or=kt[1],Nr=M.useRef(C);Nr.current=C;function zr(){var Qr=Nr.current;Io(Qr),zi(Qr),qe([]),or(null),En()}(0,G.Z)(function(){gi(H);var Qr=Je(ua,H);if(Qr.key!==null)if(Qr.add){var qr=aa.findIndex(function(On){var An=On.key;return An===Qr.key}),yn=ot(Fe(aa,C,Qr.key),Mt,ct,Tt),on=aa.slice();on.splice(qr+1,0,rt),zi(on),qe(yn),or("show")}else{var Dn=C.findIndex(function(On){var An=On.key;return An===Qr.key}),Qn=ot(Fe(C,aa,Qr.key),Mt,ct,Tt),fi=C.slice();fi.splice(Dn+1,0,rt),zi(fi),qe(Qn),or("hide")}else aa!==C&&(Io(C),zi(C))},[H,C]),M.useEffect(function(){st||zr()},[st]);var an=Le?Ti:C,jr={expandedKeys:H,selectedKeys:ne,loadedKeys:we,loadingKeys:ye,checkedKeys:Qe,halfCheckedKeys:je,dragOverNodeKey:ze,dropPosition:Ie,keyEntities:mt};return M.createElement(M.Fragment,null,Sr&&_r&&M.createElement("span",{style:Ue,"aria-live":"assertive"},et(_r)),M.createElement("div",null,M.createElement("input",{style:Ue,disabled:Yt===!1||ge,tabIndex:Yt!==!1?Lr:null,onKeyDown:Er,onFocus:Ar,onBlur:ar,value:"",onChange:me,"aria-label":"for screen reader"})),M.createElement("div",{className:"".concat(f,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},M.createElement("div",{className:"".concat(f,"-indent")},M.createElement("div",{ref:ji,className:"".concat(f,"-indent-unit")}))),M.createElement(j.Z,(0,ve.Z)({},gn,{data:an,itemKey:We,height:ct,fullHeight:!1,virtual:Mt,itemHeight:Tt,prefixCls:"".concat(f,"-list"),ref:Rn,onVisibleChange:function(qr,yn){var on=new Set(qr),Dn=yn.filter(function(Qn){return!on.has(Qn)});Dn.some(function(Qn){return We(Qn)===Me})&&zr()}}),function(Qr){var qr=Qr.pos,yn=(0,ve.Z)({},(ae(Qr.data),Qr.data)),on=Qr.title,Dn=Qr.key,Qn=Qr.isStart,fi=Qr.isEnd,On=(0,Be.km)(Dn,qr);delete yn.key,delete yn.children;var An=(0,Be.H8)(On,jr);return M.createElement(D,(0,ve.Z)({},yn,An,{title:on,active:!!_r&&Dn===_r.key,pos:qr,data:Qr.data,isStart:Qn,isEnd:fi,motion:Le,motionNodes:Dn===Me?ke:null,motionType:yr,onMotionStart:fn,onMotionEnd:zr,treeNodeRequiredProps:jr,onMouseMove:function(){Rr(null)}}))}))});_t.displayName="NodeList";var Ot=_t,Pt=x(35654),cr=x(90782),nr=x(67841),br=10,sr=function(N){(0,I.Z)(f,N);var b=(0,g.Z)(f);function f(){var C;(0,W.Z)(this,f);for(var ee=arguments.length,Se=new Array(ee),H=0;H<ee;H++)Se[H]=arguments[H];return C=b.call.apply(b,[this].concat(Se)),C.destroyed=!1,C.delayedDragEnterLogic=void 0,C.loadingRetryTimes={},C.state={keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,Be.w$)()},C.dragStartMousePosition=null,C.dragNode=void 0,C.currentMouseOverDroppableNodeKey=null,C.listRef=M.createRef(),C.onNodeDragStart=function(ne,Qe){var we=C.state,ye=we.expandedKeys,je=we.keyEntities,mt=C.props.onDragStart,ge=Qe.props.eventKey;C.dragNode=Qe,C.dragStartMousePosition={x:ne.clientX,y:ne.clientY};var st=(0,Pt._5)(ye,ge);C.setState({draggingNodeKey:ge,dragChildrenKeys:(0,Pt.wA)(ge,je),indent:C.listRef.current.getIndentWidth()}),C.setExpandedKeys(st),window.addEventListener("dragend",C.onWindowDragEnd),mt==null||mt({event:ne,node:(0,Be.F)(Qe.props)})},C.onNodeDragEnter=function(ne,Qe){var we=C.state,ye=we.expandedKeys,je=we.keyEntities,mt=we.dragChildrenKeys,ge=we.flattenNodes,st=we.indent,ze=C.props,Ie=ze.onDragEnter,Le=ze.onExpand,ct=ze.allowDrop,Tt=ze.direction,Mt=Qe.props,Yt=Mt.pos,_r=Mt.eventKey,Sr=(0,m.Z)(C),Lr=Sr.dragNode;if(C.currentMouseOverDroppableNodeKey!==_r&&(C.currentMouseOverDroppableNodeKey=_r),!Lr){C.resetDragState();return}var Er=(0,Pt.OM)(ne,Lr,Qe,st,C.dragStartMousePosition,ct,ge,je,ye,Tt),Ar=Er.dropPosition,ar=Er.dropLevelOffset,Rr=Er.dropTargetKey,fn=Er.dropContainerKey,En=Er.dropTargetPos,gn=Er.dropAllowed,Rn=Er.dragOverNodeKey;if(mt.indexOf(Rr)!==-1||!gn){C.resetDragState();return}if(C.delayedDragEnterLogic||(C.delayedDragEnterLogic={}),Object.keys(C.delayedDragEnterLogic).forEach(function(ji){clearTimeout(C.delayedDragEnterLogic[ji])}),Lr.props.eventKey!==Qe.props.eventKey&&(ne.persist(),C.delayedDragEnterLogic[Yt]=window.setTimeout(function(){if(C.state.draggingNodeKey!==null){var ji=(0,re.Z)(ye),Or=(0,nr.Z)(je,Qe.props.eventKey);Or&&(Or.children||[]).length&&(ji=(0,Pt.L0)(ye,Qe.props.eventKey)),"expandedKeys"in C.props||C.setExpandedKeys(ji),Le==null||Le(ji,{node:(0,Be.F)(Qe.props),expanded:!0,nativeEvent:ne.nativeEvent})}},800)),Lr.props.eventKey===Rr&&ar===0){C.resetDragState();return}C.setState({dragOverNodeKey:Rn,dropPosition:Ar,dropLevelOffset:ar,dropTargetKey:Rr,dropContainerKey:fn,dropTargetPos:En,dropAllowed:gn}),Ie==null||Ie({event:ne,node:(0,Be.F)(Qe.props),expandedKeys:ye})},C.onNodeDragOver=function(ne,Qe){var we=C.state,ye=we.dragChildrenKeys,je=we.flattenNodes,mt=we.keyEntities,ge=we.expandedKeys,st=we.indent,ze=C.props,Ie=ze.onDragOver,Le=ze.allowDrop,ct=ze.direction,Tt=(0,m.Z)(C),Mt=Tt.dragNode;if(Mt){var Yt=(0,Pt.OM)(ne,Mt,Qe,st,C.dragStartMousePosition,Le,je,mt,ge,ct),_r=Yt.dropPosition,Sr=Yt.dropLevelOffset,Lr=Yt.dropTargetKey,Er=Yt.dropContainerKey,Ar=Yt.dropAllowed,ar=Yt.dropTargetPos,Rr=Yt.dragOverNodeKey;ye.indexOf(Lr)!==-1||!Ar||(Mt.props.eventKey===Lr&&Sr===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():_r===C.state.dropPosition&&Sr===C.state.dropLevelOffset&&Lr===C.state.dropTargetKey&&Er===C.state.dropContainerKey&&ar===C.state.dropTargetPos&&Ar===C.state.dropAllowed&&Rr===C.state.dragOverNodeKey||C.setState({dropPosition:_r,dropLevelOffset:Sr,dropTargetKey:Lr,dropContainerKey:Er,dropTargetPos:ar,dropAllowed:Ar,dragOverNodeKey:Rr}),Ie==null||Ie({event:ne,node:(0,Be.F)(Qe.props)}))}},C.onNodeDragLeave=function(ne,Qe){C.currentMouseOverDroppableNodeKey===Qe.props.eventKey&&!ne.currentTarget.contains(ne.relatedTarget)&&(C.resetDragState(),C.currentMouseOverDroppableNodeKey=null);var we=C.props.onDragLeave;we==null||we({event:ne,node:(0,Be.F)(Qe.props)})},C.onWindowDragEnd=function(ne){C.onNodeDragEnd(ne,null,!0),window.removeEventListener("dragend",C.onWindowDragEnd)},C.onNodeDragEnd=function(ne,Qe){var we=C.props.onDragEnd;C.setState({dragOverNodeKey:null}),C.cleanDragState(),we==null||we({event:ne,node:(0,Be.F)(Qe.props)}),C.dragNode=null,window.removeEventListener("dragend",C.onWindowDragEnd)},C.onNodeDrop=function(ne,Qe){var we,ye=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,je=C.state,mt=je.dragChildrenKeys,ge=je.dropPosition,st=je.dropTargetKey,ze=je.dropTargetPos,Ie=je.dropAllowed;if(Ie){var Le=C.props.onDrop;if(C.setState({dragOverNodeKey:null}),C.cleanDragState(),st!==null){var ct=(0,De.Z)((0,De.Z)({},(0,Be.H8)(st,C.getTreeNodeRequiredProps())),{},{active:((we=C.getActiveItem())===null||we===void 0?void 0:we.key)===st,data:(0,nr.Z)(C.state.keyEntities,st).node}),Tt=mt.indexOf(st)!==-1;(0,U.ZP)(!Tt,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var Mt=(0,Pt.yx)(ze),Yt={event:ne,node:(0,Be.F)(ct),dragNode:C.dragNode?(0,Be.F)(C.dragNode.props):null,dragNodesKeys:[C.dragNode.props.eventKey].concat(mt),dropToGap:ge!==0,dropPosition:ge+Number(Mt[Mt.length-1])};ye||Le==null||Le(Yt),C.dragNode=null}}},C.cleanDragState=function(){var ne=C.state.draggingNodeKey;ne!==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(ne,Qe){var we=C.state,ye=we.expandedKeys,je=we.flattenNodes,mt=Qe.expanded,ge=Qe.key,st=Qe.isLeaf;if(!(st||ne.shiftKey||ne.metaKey||ne.ctrlKey)){var ze=je.filter(function(Le){return Le.key===ge})[0],Ie=(0,Be.F)((0,De.Z)((0,De.Z)({},(0,Be.H8)(ge,C.getTreeNodeRequiredProps())),{},{data:ze.data}));C.setExpandedKeys(mt?(0,Pt._5)(ye,ge):(0,Pt.L0)(ye,ge)),C.onNodeExpand(ne,Ie)}},C.onNodeClick=function(ne,Qe){var we=C.props,ye=we.onClick,je=we.expandAction;je==="click"&&C.triggerExpandActionExpand(ne,Qe),ye==null||ye(ne,Qe)},C.onNodeDoubleClick=function(ne,Qe){var we=C.props,ye=we.onDoubleClick,je=we.expandAction;je==="doubleClick"&&C.triggerExpandActionExpand(ne,Qe),ye==null||ye(ne,Qe)},C.onNodeSelect=function(ne,Qe){var we=C.state.selectedKeys,ye=C.state,je=ye.keyEntities,mt=ye.fieldNames,ge=C.props,st=ge.onSelect,ze=ge.multiple,Ie=Qe.selected,Le=Qe[mt.key],ct=!Ie;ct?ze?we=(0,Pt.L0)(we,Le):we=[Le]:we=(0,Pt._5)(we,Le);var Tt=we.map(function(Mt){var Yt=(0,nr.Z)(je,Mt);return Yt?Yt.node:null}).filter(function(Mt){return Mt});C.setUncontrolledState({selectedKeys:we}),st==null||st(we,{event:"select",selected:ct,node:Qe,selectedNodes:Tt,nativeEvent:ne.nativeEvent})},C.onNodeCheck=function(ne,Qe,we){var ye=C.state,je=ye.keyEntities,mt=ye.checkedKeys,ge=ye.halfCheckedKeys,st=C.props,ze=st.checkStrictly,Ie=st.onCheck,Le=Qe.key,ct,Tt={event:"check",node:Qe,checked:we,nativeEvent:ne.nativeEvent};if(ze){var Mt=we?(0,Pt.L0)(mt,Le):(0,Pt._5)(mt,Le),Yt=(0,Pt._5)(ge,Le);ct={checked:Mt,halfChecked:Yt},Tt.checkedNodes=Mt.map(function(ar){return(0,nr.Z)(je,ar)}).filter(function(ar){return ar}).map(function(ar){return ar.node}),C.setUncontrolledState({checkedKeys:Mt})}else{var _r=(0,cr.S)([].concat((0,re.Z)(mt),[Le]),!0,je),Sr=_r.checkedKeys,Lr=_r.halfCheckedKeys;if(!we){var Er=new Set(Sr);Er.delete(Le);var Ar=(0,cr.S)(Array.from(Er),{checked:!1,halfCheckedKeys:Lr},je);Sr=Ar.checkedKeys,Lr=Ar.halfCheckedKeys}ct=Sr,Tt.checkedNodes=[],Tt.checkedNodesPositions=[],Tt.halfCheckedKeys=Lr,Sr.forEach(function(ar){var Rr=(0,nr.Z)(je,ar);if(Rr){var fn=Rr.node,En=Rr.pos;Tt.checkedNodes.push(fn),Tt.checkedNodesPositions.push({node:fn,pos:En})}}),C.setUncontrolledState({checkedKeys:Sr},!1,{halfCheckedKeys:Lr})}Ie==null||Ie(ct,Tt)},C.onNodeLoad=function(ne){var Qe=ne.key,we=new Promise(function(ye,je){C.setState(function(mt){var ge=mt.loadedKeys,st=ge===void 0?[]:ge,ze=mt.loadingKeys,Ie=ze===void 0?[]:ze,Le=C.props,ct=Le.loadData,Tt=Le.onLoad;if(!ct||st.indexOf(Qe)!==-1||Ie.indexOf(Qe)!==-1)return null;var Mt=ct(ne);return Mt.then(function(){var Yt=C.state.loadedKeys,_r=(0,Pt.L0)(Yt,Qe);Tt==null||Tt(_r,{event:"load",node:ne}),C.setUncontrolledState({loadedKeys:_r}),C.setState(function(Sr){return{loadingKeys:(0,Pt._5)(Sr.loadingKeys,Qe)}}),ye()}).catch(function(Yt){if(C.setState(function(Sr){return{loadingKeys:(0,Pt._5)(Sr.loadingKeys,Qe)}}),C.loadingRetryTimes[Qe]=(C.loadingRetryTimes[Qe]||0)+1,C.loadingRetryTimes[Qe]>=br){var _r=C.state.loadedKeys;(0,U.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),C.setUncontrolledState({loadedKeys:(0,Pt.L0)(_r,Qe)}),ye()}je(Yt)}),{loadingKeys:(0,Pt.L0)(Ie,Qe)}})});return we.catch(function(){}),we},C.onNodeMouseEnter=function(ne,Qe){var we=C.props.onMouseEnter;we==null||we({event:ne,node:Qe})},C.onNodeMouseLeave=function(ne,Qe){var we=C.props.onMouseLeave;we==null||we({event:ne,node:Qe})},C.onNodeContextMenu=function(ne,Qe){var we=C.props.onRightClick;we&&(ne.preventDefault(),we({event:ne,node:Qe}))},C.onFocus=function(){var ne=C.props.onFocus;C.setState({focused:!0});for(var Qe=arguments.length,we=new Array(Qe),ye=0;ye<Qe;ye++)we[ye]=arguments[ye];ne==null||ne.apply(void 0,we)},C.onBlur=function(){var ne=C.props.onBlur;C.setState({focused:!1}),C.onActiveChange(null);for(var Qe=arguments.length,we=new Array(Qe),ye=0;ye<Qe;ye++)we[ye]=arguments[ye];ne==null||ne.apply(void 0,we)},C.getTreeNodeRequiredProps=function(){var ne=C.state,Qe=ne.expandedKeys,we=ne.selectedKeys,ye=ne.loadedKeys,je=ne.loadingKeys,mt=ne.checkedKeys,ge=ne.halfCheckedKeys,st=ne.dragOverNodeKey,ze=ne.dropPosition,Ie=ne.keyEntities;return{expandedKeys:Qe||[],selectedKeys:we||[],loadedKeys:ye||[],loadingKeys:je||[],checkedKeys:mt||[],halfCheckedKeys:ge||[],dragOverNodeKey:st,dropPosition:ze,keyEntities:Ie}},C.setExpandedKeys=function(ne){var Qe=C.state,we=Qe.treeData,ye=Qe.fieldNames,je=(0,Be.oH)(we,ne,ye);C.setUncontrolledState({expandedKeys:ne,flattenNodes:je},!0)},C.onNodeExpand=function(ne,Qe){var we=C.state.expandedKeys,ye=C.state,je=ye.listChanging,mt=ye.fieldNames,ge=C.props,st=ge.onExpand,ze=ge.loadData,Ie=Qe.expanded,Le=Qe[mt.key];if(!je){var ct=we.indexOf(Le),Tt=!Ie;if((0,U.ZP)(Ie&&ct!==-1||!Ie&&ct===-1,"Expand state not sync with index check"),Tt?we=(0,Pt.L0)(we,Le):we=(0,Pt._5)(we,Le),C.setExpandedKeys(we),st==null||st(we,{node:Qe,expanded:Tt,nativeEvent:ne.nativeEvent}),Tt&&ze){var Mt=C.onNodeLoad(Qe);Mt&&Mt.then(function(){var Yt=(0,Be.oH)(C.state.treeData,we,mt);C.setUncontrolledState({flattenNodes:Yt})}).catch(function(){var Yt=C.state.expandedKeys,_r=(0,Pt._5)(Yt,Le);C.setExpandedKeys(_r)})}}},C.onListChangeStart=function(){C.setUncontrolledState({listChanging:!0})},C.onListChangeEnd=function(){setTimeout(function(){C.setUncontrolledState({listChanging:!1})})},C.onActiveChange=function(ne){var Qe=C.state.activeKey,we=C.props.onActiveChange;Qe!==ne&&(C.setState({activeKey:ne}),ne!==null&&C.scrollTo({key:ne}),we==null||we(ne))},C.getActiveItem=function(){var ne=C.state,Qe=ne.activeKey,we=ne.flattenNodes;return Qe===null?null:we.find(function(ye){var je=ye.key;return je===Qe})||null},C.offsetActiveKey=function(ne){var Qe=C.state,we=Qe.flattenNodes,ye=Qe.activeKey,je=we.findIndex(function(st){var ze=st.key;return ze===ye});je===-1&&ne<0&&(je=we.length),je=(je+ne+we.length)%we.length;var mt=we[je];if(mt){var ge=mt.key;C.onActiveChange(ge)}else C.onActiveChange(null)},C.onKeyDown=function(ne){var Qe=C.state,we=Qe.activeKey,ye=Qe.expandedKeys,je=Qe.checkedKeys,mt=Qe.fieldNames,ge=C.props,st=ge.onKeyDown,ze=ge.checkable,Ie=ge.selectable;switch(ne.which){case F.Z.UP:{C.offsetActiveKey(-1),ne.preventDefault();break}case F.Z.DOWN:{C.offsetActiveKey(1),ne.preventDefault();break}}var Le=C.getActiveItem();if(Le&&Le.data){var ct=C.getTreeNodeRequiredProps(),Tt=Le.data.isLeaf===!1||!!(Le.data[mt.children]||[]).length,Mt=(0,Be.F)((0,De.Z)((0,De.Z)({},(0,Be.H8)(we,ct)),{},{data:Le.data,active:!0}));switch(ne.which){case F.Z.LEFT:{Tt&&ye.includes(we)?C.onNodeExpand({},Mt):Le.parent&&C.onActiveChange(Le.parent.key),ne.preventDefault();break}case F.Z.RIGHT:{Tt&&!ye.includes(we)?C.onNodeExpand({},Mt):Le.children&&Le.children.length&&C.onActiveChange(Le.children[0].key),ne.preventDefault();break}case F.Z.ENTER:case F.Z.SPACE:{ze&&!Mt.disabled&&Mt.checkable!==!1&&!Mt.disableCheckbox?C.onNodeCheck({},Mt,!je.includes(we)):!ze&&Ie&&!Mt.disabled&&Mt.selectable!==!1&&C.onNodeSelect({},Mt);break}}}st==null||st(ne)},C.setUncontrolledState=function(ne){var Qe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,we=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!C.destroyed){var ye=!1,je=!0,mt={};Object.keys(ne).forEach(function(ge){if(ge in C.props){je=!1;return}ye=!0,mt[ge]=ne[ge]}),ye&&(!Qe||je)&&C.setState((0,De.Z)((0,De.Z)({},mt),we))}},C.scrollTo=function(ne){C.listRef.current.scrollTo(ne)},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 ee=this.props.activeKey;ee!==void 0&&ee!==this.state.activeKey&&(this.setState({activeKey:ee}),ee!==null&&this.scrollTo({key:ee}))}},{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 ee,Se=this.state,H=Se.focused,ne=Se.flattenNodes,Qe=Se.keyEntities,we=Se.draggingNodeKey,ye=Se.activeKey,je=Se.dropLevelOffset,mt=Se.dropContainerKey,ge=Se.dropTargetKey,st=Se.dropPosition,ze=Se.dragOverNodeKey,Ie=Se.indent,Le=this.props,ct=Le.prefixCls,Tt=Le.className,Mt=Le.style,Yt=Le.showLine,_r=Le.focusable,Sr=Le.tabIndex,Lr=Sr===void 0?0:Sr,Er=Le.selectable,Ar=Le.showIcon,ar=Le.icon,Rr=Le.switcherIcon,fn=Le.draggable,En=Le.checkable,gn=Le.checkStrictly,Rn=Le.disabled,ji=Le.motion,Or=Le.loadData,bi=Le.filterTreeNode,ua=Le.height,gi=Le.itemHeight,ta=Le.virtual,Ji=Le.titleRender,aa=Le.dropIndicatorRender,Io=Le.onContextMenu,oa=Le.onScroll,pi=Le.direction,Ti=Le.rootClassName,zi=Le.rootStyle,be=(0,P.Z)(this.props,{aria:!0,data:!0}),Oe;return fn&&((0,T.Z)(fn)==="object"?Oe=fn:typeof fn=="function"?Oe={nodeDraggable:fn}:Oe={}),M.createElement(Y.k.Provider,{value:{prefixCls:ct,selectable:Er,showIcon:Ar,icon:ar,switcherIcon:Rr,draggable:Oe,draggingNodeKey:we,checkable:En,checkStrictly:gn,disabled:Rn,keyEntities:Qe,dropLevelOffset:je,dropContainerKey:mt,dropTargetKey:ge,dropPosition:st,dragOverNodeKey:ze,indent:Ie,direction:pi,dropIndicatorRender:aa,loadData:Or,filterTreeNode:bi,titleRender:Ji,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}},M.createElement("div",{role:"tree",className:_()(ct,Tt,Ti,(ee={},(0,ue.Z)(ee,"".concat(ct,"-show-line"),Yt),(0,ue.Z)(ee,"".concat(ct,"-focused"),H),(0,ue.Z)(ee,"".concat(ct,"-active-focused"),ye!==null),ee)),style:zi},M.createElement(Ot,(0,ve.Z)({ref:this.listRef,prefixCls:ct,style:Mt,data:ne,disabled:Rn,selectable:Er,checkable:!!En,motion:ji,dragging:we!==null,height:ua,itemHeight:gi,virtual:ta,focusable:_r,focused:H,tabIndex:Lr,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Io,onScroll:oa},this.getTreeNodeRequiredProps(),be))))}}],[{key:"getDerivedStateFromProps",value:function(ee,Se){var H=Se.prevProps,ne={prevProps:ee};function Qe(_r){return!H&&_r in ee||H&&H[_r]!==ee[_r]}var we,ye=Se.fieldNames;if(Qe("fieldNames")&&(ye=(0,Be.w$)(ee.fieldNames),ne.fieldNames=ye),Qe("treeData")?we=ee.treeData:Qe("children")&&((0,U.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),we=(0,Be.zn)(ee.children)),we){ne.treeData=we;var je=(0,Be.I8)(we,{fieldNames:ye});ne.keyEntities=(0,De.Z)((0,ue.Z)({},Me,Ee),je.keyEntities)}var mt=ne.keyEntities||Se.keyEntities;if(Qe("expandedKeys")||H&&Qe("autoExpandParent"))ne.expandedKeys=ee.autoExpandParent||!H&&ee.defaultExpandParent?(0,Pt.r7)(ee.expandedKeys,mt):ee.expandedKeys;else if(!H&&ee.defaultExpandAll){var ge=(0,De.Z)({},mt);delete ge[Me],ne.expandedKeys=Object.keys(ge).map(function(_r){return ge[_r].key})}else!H&&ee.defaultExpandedKeys&&(ne.expandedKeys=ee.autoExpandParent||ee.defaultExpandParent?(0,Pt.r7)(ee.defaultExpandedKeys,mt):ee.defaultExpandedKeys);if(ne.expandedKeys||delete ne.expandedKeys,we||ne.expandedKeys){var st=(0,Be.oH)(we||Se.treeData,ne.expandedKeys||Se.expandedKeys,ye);ne.flattenNodes=st}if(ee.selectable&&(Qe("selectedKeys")?ne.selectedKeys=(0,Pt.BT)(ee.selectedKeys,ee):!H&&ee.defaultSelectedKeys&&(ne.selectedKeys=(0,Pt.BT)(ee.defaultSelectedKeys,ee))),ee.checkable){var ze;if(Qe("checkedKeys")?ze=(0,Pt.E6)(ee.checkedKeys)||{}:!H&&ee.defaultCheckedKeys?ze=(0,Pt.E6)(ee.defaultCheckedKeys)||{}:we&&(ze=(0,Pt.E6)(ee.checkedKeys)||{checkedKeys:Se.checkedKeys,halfCheckedKeys:Se.halfCheckedKeys}),ze){var Ie=ze,Le=Ie.checkedKeys,ct=Le===void 0?[]:Le,Tt=Ie.halfCheckedKeys,Mt=Tt===void 0?[]:Tt;if(!ee.checkStrictly){var Yt=(0,cr.S)(ct,!0,mt);ct=Yt.checkedKeys,Mt=Yt.halfCheckedKeys}ne.checkedKeys=ct,ne.halfCheckedKeys=Mt}}return Qe("loadedKeys")&&(ne.loadedKeys=ee.loadedKeys),ne}}]),f}(M.Component);sr.defaultProps={prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:Q,allowDrop:function(){return!0},expandAction:!1},sr.TreeNode=he.Z;var k=sr,Xe=k},35654:function(dn,Ut,x){"use strict";x.d(Ut,{BT:function(){return M},E6:function(){return ae},L0:function(){return g},OM:function(){return U},_5:function(){return I},r7:function(){return ie},wA:function(){return _},yx:function(){return $}});var ve=x(94480),ue=x(76190),T=x(48736),De=x(59301),re=x(39417),W=x(67841),S=x(71430),m=null;function I(J,G){if(!J)return[];var j=J.slice(),se=j.indexOf(G);return se>=0&&j.splice(se,1),j}function g(J,G){var j=(J||[]).slice();return j.indexOf(G)===-1&&j.push(G),j}function $(J){return J.split("-")}function _(J,G){var j=[],se=(0,W.Z)(G,J);function he(){var Ne=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ne.forEach(function(Be){var Pe=Be.key,q=Be.children;j.push(Pe),he(q)})}return he(se.children),j}function F(J){if(J.parent){var G=$(J.pos);return Number(G[G.length-1])===J.parent.children.length-1}return!1}function P(J){var G=$(J.pos);return Number(G[G.length-1])===0}function U(J,G,j,se,he,Ne,Be,Pe,q,Ae){var D,Je=J.clientX,Fe=J.clientY,Ce=J.target.getBoundingClientRect(),Ue=Ce.top,me=Ce.height,Me=(Ae==="rtl"?-1:1)*(((he==null?void 0:he.x)||0)-Je),fe=(Me-12)/se,Ee=(0,W.Z)(Pe,j.props.eventKey);if(Fe<Ue+me/2){var rt=Be.findIndex(function(Xe){return Xe.key===Ee.key}),ot=rt<=0?0:rt-1,We=Be[ot].key;Ee=(0,W.Z)(Pe,We)}var et=Ee.key,_t=Ee,Ot=Ee.key,Pt=0,cr=0;if(!q.includes(et))for(var nr=0;nr<fe&&F(Ee);nr+=1)Ee=Ee.parent,cr+=1;var br=G.props.data,sr=Ee.node,k=!0;return P(Ee)&&Ee.level===0&&Fe<Ue+me/2&&Ne({dragNode:br,dropNode:sr,dropPosition:-1})&&Ee.key===j.props.eventKey?Pt=-1:(_t.children||[]).length&&q.includes(Ot)?Ne({dragNode:br,dropNode:sr,dropPosition:0})?Pt=0:k=!1:cr===0?fe>-1.5?Ne({dragNode:br,dropNode:sr,dropPosition:1})?Pt=1:k=!1:Ne({dragNode:br,dropNode:sr,dropPosition:0})?Pt=0:Ne({dragNode:br,dropNode:sr,dropPosition:1})?Pt=1:k=!1:Ne({dragNode:br,dropNode:sr,dropPosition:1})?Pt=1:k=!1,{dropPosition:Pt,dropLevelOffset:cr,dropTargetKey:Ee.key,dropTargetPos:Ee.pos,dragOverNodeKey:Ot,dropContainerKey:Pt===0?null:((D=Ee.parent)===null||D===void 0?void 0:D.key)||null,dropAllowed:k}}function M(J,G){if(J){var j=G.multiple;return j?J.slice():J.length?[J[0]]:J}}var Y=function(G){return G};function Q(J,G){if(!J)return[];var j=G||{},se=j.processProps,he=se===void 0?Y:se,Ne=Array.isArray(J)?J:[J];return Ne.map(function(Be){var Pe=Be.children,q=_objectWithoutProperties(Be,m),Ae=Q(Pe,G);return React.createElement(TreeNode,_extends({key:q.key},he(q)),Ae)})}function ae(J){if(!J)return null;var G;if(Array.isArray(J))G={checkedKeys:J,halfCheckedKeys:void 0};else if((0,ue.Z)(J)==="object")G={checkedKeys:J.checked||void 0,halfCheckedKeys:J.halfChecked||void 0};else return(0,T.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return G}function ie(J,G){var j=new Set;function se(he){if(!j.has(he)){var Ne=(0,W.Z)(G,he);if(Ne){j.add(he);var Be=Ne.parent,Pe=Ne.node;Pe.disabled||Be&&se(Be.key)}}}return(J||[]).forEach(function(he){se(he)}),(0,ve.Z)(j)}},90782:function(dn,Ut,x){"use strict";x.d(Ut,{S:function(){return S}});var ve=x(48736),ue=x(67841);function T(m,I){var g=new Set;return m.forEach(function($){I.has($)||g.add($)}),g}function De(m){var I=m||{},g=I.disabled,$=I.disableCheckbox,_=I.checkable;return!!(g||$)||_===!1}function re(m,I,g,$){for(var _=new Set(m),F=new Set,P=0;P<=g;P+=1){var U=I.get(P)||new Set;U.forEach(function(ae){var ie=ae.key,J=ae.node,G=ae.children,j=G===void 0?[]:G;_.has(ie)&&!$(J)&&j.filter(function(se){return!$(se.node)}).forEach(function(se){_.add(se.key)})})}for(var M=new Set,Y=g;Y>=0;Y-=1){var Q=I.get(Y)||new Set;Q.forEach(function(ae){var ie=ae.parent,J=ae.node;if(!($(J)||!ae.parent||M.has(ae.parent.key))){if($(ae.parent.node)){M.add(ie.key);return}var G=!0,j=!1;(ie.children||[]).filter(function(se){return!$(se.node)}).forEach(function(se){var he=se.key,Ne=_.has(he);G&&!Ne&&(G=!1),!j&&(Ne||F.has(he))&&(j=!0)}),G&&_.add(ie.key),j&&F.add(ie.key),M.add(ie.key)}})}return{checkedKeys:Array.from(_),halfCheckedKeys:Array.from(T(F,_))}}function W(m,I,g,$,_){for(var F=new Set(m),P=new Set(I),U=0;U<=$;U+=1){var M=g.get(U)||new Set;M.forEach(function(ie){var J=ie.key,G=ie.node,j=ie.children,se=j===void 0?[]:j;!F.has(J)&&!P.has(J)&&!_(G)&&se.filter(function(he){return!_(he.node)}).forEach(function(he){F.delete(he.key)})})}P=new Set;for(var Y=new Set,Q=$;Q>=0;Q-=1){var ae=g.get(Q)||new Set;ae.forEach(function(ie){var J=ie.parent,G=ie.node;if(!(_(G)||!ie.parent||Y.has(ie.parent.key))){if(_(ie.parent.node)){Y.add(J.key);return}var j=!0,se=!1;(J.children||[]).filter(function(he){return!_(he.node)}).forEach(function(he){var Ne=he.key,Be=F.has(Ne);j&&!Be&&(j=!1),!se&&(Be||P.has(Ne))&&(se=!0)}),j||F.delete(J.key),se&&P.add(J.key),Y.add(J.key)}})}return{checkedKeys:Array.from(F),halfCheckedKeys:Array.from(T(P,F))}}function S(m,I,g,$){var _=[],F;$?F=$:F=De;var P=new Set(m.filter(function(Q){var ae=!!(0,ue.Z)(g,Q);return ae||_.push(Q),ae})),U=new Map,M=0;Object.keys(g).forEach(function(Q){var ae=g[Q],ie=ae.level,J=U.get(ie);J||(J=new Set,U.set(ie,J)),J.add(ae),M=Math.max(M,ie)}),(0,ve.ZP)(!_.length,"Tree missing follow keys: ".concat(_.slice(0,100).map(function(Q){return"'".concat(Q,"'")}).join(", ")));var Y;return I===!0?Y=re(P,U,M,F):Y=W(P,I.halfCheckedKeys,U,M,F),Y}},67841:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return ve}});function ve(ue,T){return ue[T]}},71430:function(dn,Ut,x){"use strict";x.d(Ut,{F:function(){return ie},H8:function(){return ae},I8:function(){return Q},km:function(){return _},oH:function(){return M},w$:function(){return F},zn:function(){return U}});var ve=x(76190),ue=x(94480),T=x(33885),De=x(75931),re=x(11592),W=x(2738),S=x(48736),m=x(67841),I=["children"];function g(J,G){return"".concat(J,"-").concat(G)}function $(J){return J&&J.type&&J.type.isTreeNode}function _(J,G){return J!=null?J:G}function F(J){var G=J||{},j=G.title,se=G._title,he=G.key,Ne=G.children,Be=j||"title";return{title:Be,_title:se||[Be],key:he||"key",children:Ne||"children"}}function P(J,G){var j=new Map;function se(he){var Ne=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(he||[]).forEach(function(Be){var Pe=Be[G.key],q=Be[G.children];warning(Pe!=null,"Tree node must have a certain key: [".concat(Ne).concat(Pe,"]"));var Ae=String(Pe);warning(!j.has(Ae)||Pe===null||Pe===void 0,"Same 'key' exist in the Tree: ".concat(Ae)),j.set(Ae,!0),se(q,"".concat(Ne).concat(Ae," > "))})}se(J)}function U(J){function G(j){var se=(0,re.Z)(j);return se.map(function(he){if(!$(he))return(0,S.ZP)(!he,"Tree/TreeNode can only accept TreeNode as children."),null;var Ne=he.key,Be=he.props,Pe=Be.children,q=(0,De.Z)(Be,I),Ae=(0,T.Z)({key:Ne},q),D=G(Pe);return D.length&&(Ae.children=D),Ae}).filter(function(he){return he})}return G(J)}function M(J,G,j){var se=F(j),he=se._title,Ne=se.key,Be=se.children,Pe=new Set(G===!0?[]:G),q=[];function Ae(D){var Je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return D.map(function(Fe,Ce){for(var Ue=g(Je?Je.pos:"0",Ce),me=_(Fe[Ne],Ue),Me,fe=0;fe<he.length;fe+=1){var Ee=he[fe];if(Fe[Ee]!==void 0){Me=Fe[Ee];break}}var rt=(0,T.Z)((0,T.Z)({},(0,W.Z)(Fe,[].concat((0,ue.Z)(he),[Ne,Be]))),{},{title:Me,key:me,parent:Je,pos:Ue,children:null,data:Fe,isStart:[].concat((0,ue.Z)(Je?Je.isStart:[]),[Ce===0]),isEnd:[].concat((0,ue.Z)(Je?Je.isEnd:[]),[Ce===D.length-1])});return q.push(rt),G===!0||Pe.has(me)?rt.children=Ae(Fe[Be]||[],rt):rt.children=[],rt})}return Ae(J),q}function Y(J,G,j){var se={};(0,ve.Z)(j)==="object"?se=j:se={externalGetKey:j},se=se||{};var he=se,Ne=he.childrenPropName,Be=he.externalGetKey,Pe=he.fieldNames,q=F(Pe),Ae=q.key,D=q.children,Je=Ne||D,Fe;Be?typeof Be=="string"?Fe=function(me){return me[Be]}:typeof Be=="function"&&(Fe=function(me){return Be(me)}):Fe=function(me,Me){return _(me[Ae],Me)};function Ce(Ue,me,Me,fe){var Ee=Ue?Ue[Je]:J,rt=Ue?g(Me.pos,me):"0",ot=Ue?[].concat((0,ue.Z)(fe),[Ue]):[];if(Ue){var We=Fe(Ue,rt),et={node:Ue,index:me,pos:rt,key:We,parentPos:Me.node?Me.pos:null,level:Me.level+1,nodes:ot};G(et)}Ee&&Ee.forEach(function(_t,Ot){Ce(_t,Ot,{node:Ue,pos:rt,level:Me?Me.level+1:-1},ot)})}Ce(null)}function Q(J){var G=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},j=G.initWrapper,se=G.processEntity,he=G.onProcessFinished,Ne=G.externalGetKey,Be=G.childrenPropName,Pe=G.fieldNames,q=arguments.length>2?arguments[2]:void 0,Ae=Ne||q,D={},Je={},Fe={posEntities:D,keyEntities:Je};return j&&(Fe=j(Fe)||Fe),Y(J,function(Ce){var Ue=Ce.node,me=Ce.index,Me=Ce.pos,fe=Ce.key,Ee=Ce.parentPos,rt=Ce.level,ot=Ce.nodes,We={node:Ue,nodes:ot,index:me,key:fe,pos:Me,level:rt},et=_(fe,Me);D[Me]=We,Je[et]=We,We.parent=D[Ee],We.parent&&(We.parent.children=We.parent.children||[],We.parent.children.push(We)),se&&se(We,Fe)},{externalGetKey:Ae,childrenPropName:Be,fieldNames:Pe}),he&&he(Fe),Fe}function ae(J,G){var j=G.expandedKeys,se=G.selectedKeys,he=G.loadedKeys,Ne=G.loadingKeys,Be=G.checkedKeys,Pe=G.halfCheckedKeys,q=G.dragOverNodeKey,Ae=G.dropPosition,D=G.keyEntities,Je=(0,m.Z)(D,J),Fe={eventKey:J,expanded:j.indexOf(J)!==-1,selected:se.indexOf(J)!==-1,loaded:he.indexOf(J)!==-1,loading:Ne.indexOf(J)!==-1,checked:Be.indexOf(J)!==-1,halfChecked:Pe.indexOf(J)!==-1,pos:String(Je?Je.pos:""),dragOver:q===J&&Ae===0,dragOverGapTop:q===J&&Ae===-1,dragOverGapBottom:q===J&&Ae===1};return Fe}function ie(J){var G=J.data,j=J.expanded,se=J.selected,he=J.checked,Ne=J.loaded,Be=J.loading,Pe=J.halfChecked,q=J.dragOver,Ae=J.dragOverGapTop,D=J.dragOverGapBottom,Je=J.pos,Fe=J.active,Ce=J.eventKey,Ue=(0,T.Z)((0,T.Z)({},G),{},{expanded:j,selected:se,checked:he,loaded:Ne,loading:Be,halfChecked:Pe,dragOver:q,dragOverGapTop:Ae,dragOverGapBottom:D,pos:Je,active:Fe,key:Ce});return"props"in Ue||Object.defineProperty(Ue,"props",{get:function(){return(0,S.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),J}}),Ue}},8224:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return ue}});var ve=x(4676);function ue(T,De,re,W){var S=ve.unstable_batchedUpdates?function(I){ve.unstable_batchedUpdates(re,I)}:re;return T!=null&&T.addEventListener&&T.addEventListener(De,S,W),{remove:function(){T!=null&&T.removeEventListener&&T.removeEventListener(De,S,W)}}}},55468:function(dn,Ut,x){"use strict";x.d(Ut,{g1:function(){return $},os:function(){return F}});var ve=/margin|padding|width|height|max|min|offset/,ue={left:!0,top:!0},T={cssFloat:1,styleFloat:1,float:1};function De(P){return P.nodeType===1?P.ownerDocument.defaultView.getComputedStyle(P,null):{}}function re(P,U,M){if(U=U.toLowerCase(),M==="auto"){if(U==="height")return P.offsetHeight;if(U==="width")return P.offsetWidth}return U in ue||(ue[U]=ve.test(U)),ue[U]?parseFloat(M)||0:M}function W(P,U){var M=arguments.length,Y=De(P);return U=T[U]?"cssFloat"in P.style?"cssFloat":"styleFloat":U,M===1?Y:re(P,U,Y[U]||P.style[U])}function S(P,U,M){var Y=arguments.length;if(U=T[U]?"cssFloat"in P.style?"cssFloat":"styleFloat":U,Y===3)return typeof M=="number"&&ve.test(U)&&(M="".concat(M,"px")),P.style[U]=M,M;for(var Q in U)U.hasOwnProperty(Q)&&S(P,Q,U[Q]);return De(P)}function m(P){return P===document.body?document.documentElement.clientWidth:P.offsetWidth}function I(P){return P===document.body?window.innerHeight||document.documentElement.clientHeight:P.offsetHeight}function g(){var P=Math.max(document.documentElement.scrollWidth,document.body.scrollWidth),U=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);return{width:P,height:U}}function $(){var P=document.documentElement.clientWidth,U=window.innerHeight||document.documentElement.clientHeight;return{width:P,height:U}}function _(){return{scrollLeft:Math.max(document.documentElement.scrollLeft,document.body.scrollLeft),scrollTop:Math.max(document.documentElement.scrollTop,document.body.scrollTop)}}function F(P){var U=P.getBoundingClientRect(),M=document.documentElement;return{left:U.left+(window.pageXOffset||M.scrollLeft)-(M.clientLeft||document.body.clientLeft||0),top:U.top+(window.pageYOffset||M.scrollTop)-(M.clientTop||document.body.clientTop||0)}}},24514:function(dn,Ut,x){"use strict";x.d(Ut,{G:function(){return De}});var ve=x(47273),ue=function(W){if((0,ve.Z)()&&window.document.documentElement){var S=Array.isArray(W)?W:[W],m=window.document.documentElement;return S.some(function(I){return I in m.style})}return!1},T=function(W,S){if(!ue(W))return!1;var m=document.createElement("div"),I=m.style[W];return m.style[W]=S,m.style[W]!==I};function De(re,W){return!Array.isArray(re)&&W!==void 0?T(re,W):ue(re)}},48911:function(dn,Ut,x){"use strict";x.d(Ut,{Z:function(){return sr}});var ve=x(54476),ue=x(76190),T=x(33885),De=x(20068),re=x(42978),W=x(75931),S=x(92310),m=x.n(S),I=x(29301),g=x(70425),$=x(34280),_=x(59301),F=x(4676),P=_.forwardRef(function(k,Xe){var N=k.height,b=k.offsetY,f=k.offsetX,C=k.children,ee=k.prefixCls,Se=k.onInnerResize,H=k.innerProps,ne=k.rtl,Qe=k.extra,we={},ye={display:"flex",flexDirection:"column"};return b!==void 0&&(we={height:N,position:"relative",overflow:"hidden"},ye=(0,T.Z)((0,T.Z)({},ye),{},(0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)((0,De.Z)({transform:"translateY(".concat(b,"px)")},ne?"marginRight":"marginLeft",-f),"position","absolute"),"left",0),"right",0),"top",0))),_.createElement("div",{style:we},_.createElement(I.Z,{onResize:function(mt){var ge=mt.offsetHeight;ge&&Se&&Se()}},_.createElement("div",(0,ve.Z)({style:ye,className:m()((0,De.Z)({},"".concat(ee,"-holder-inner"),ee)),ref:Xe},H),C,Qe)))});P.displayName="Filler";var U=P;function M(k){var Xe=k.children,N=k.setRef,b=_.useCallback(function(f){N(f)},[]);return _.cloneElement(Xe,{ref:b})}function Y(k,Xe,N,b,f,C,ee,Se){var H=Se.getKey;return k.slice(Xe,N+1).map(function(ne,Qe){var we=Xe+Qe,ye=ee(ne,we,{style:{width:b},offsetX:f}),je=H(ne);return _.createElement(M,{key:je,setRef:function(ge){return C(ne,ge)}},ye)})}function Q(k,Xe,N,b){var f=N-k,C=Xe-N,ee=Math.min(f,C)*2;if(b<=ee){var Se=Math.floor(b/2);return b%2?N+Se+1:N-Se}return f>C?N-(b-C):N+(b-f)}function ae(k,Xe,N){var b=k.length,f=Xe.length,C,ee;if(b===0&&f===0)return null;b<f?(C=k,ee=Xe):(C=Xe,ee=k);var Se={__EMPTY_ITEM__:!0};function H(mt){return mt!==void 0?N(mt):Se}for(var ne=null,Qe=Math.abs(b-f)!==1,we=0;we<ee.length;we+=1){var ye=H(C[we]),je=H(ee[we]);if(ye!==je){ne=we,Qe=Qe||ye!==H(ee[we+1]);break}}return ne===null?null:{index:ne,multiple:Qe}}function ie(k,Xe,N){var b=_.useState(k),f=(0,re.Z)(b,2),C=f[0],ee=f[1],Se=_.useState(null),H=(0,re.Z)(Se,2),ne=H[0],Qe=H[1];return _.useEffect(function(){var we=ae(C||[],k||[],Xe);(we==null?void 0:we.index)!==void 0&&(N==null||N(we.index),Qe(k[we.index])),ee(k)},[k]),[ne]}var J=x(16089),G=(typeof navigator=="undefined"?"undefined":(0,ue.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),j=G,se=function(k,Xe,N,b){var f=(0,_.useRef)(!1),C=(0,_.useRef)(null);function ee(){clearTimeout(C.current),f.current=!0,C.current=setTimeout(function(){f.current=!1},50)}var Se=(0,_.useRef)({top:k,bottom:Xe,left:N,right:b});return Se.current.top=k,Se.current.bottom=Xe,Se.current.left=N,Se.current.right=b,function(H,ne){var Qe=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,we=H?ne<0&&Se.current.left||ne>0&&Se.current.right:ne<0&&Se.current.top||ne>0&&Se.current.bottom;return Qe&&we?(clearTimeout(C.current),f.current=!1):(!we||f.current)&&ee(),!f.current&&we}};function he(k,Xe,N,b,f,C,ee){var Se=(0,_.useRef)(0),H=(0,_.useRef)(null),ne=(0,_.useRef)(null),Qe=(0,_.useRef)(!1),we=se(Xe,N,b,f);function ye(Ie,Le){if(J.Z.cancel(H.current),!we(!1,Le)){var ct=Ie;if(!ct._virtualHandled)ct._virtualHandled=!0;else return;Se.current+=Le,ne.current=Le,j||ct.preventDefault(),H.current=(0,J.Z)(function(){var Tt=Qe.current?10:1;ee(Se.current*Tt,!1),Se.current=0})}}function je(Ie,Le){ee(Le,!0),j||Ie.preventDefault()}var mt=(0,_.useRef)(null),ge=(0,_.useRef)(null);function st(Ie){if(k){J.Z.cancel(ge.current),ge.current=(0,J.Z)(function(){mt.current=null},2);var Le=Ie.deltaX,ct=Ie.deltaY,Tt=Ie.shiftKey,Mt=Le,Yt=ct;(mt.current==="sx"||!mt.current&&Tt&&ct&&!Le)&&(Mt=ct,Yt=0,mt.current="sx");var _r=Math.abs(Mt),Sr=Math.abs(Yt);mt.current===null&&(mt.current=C&&_r>Sr?"x":"y"),mt.current==="y"?ye(Ie,Yt):je(Ie,Mt)}}function ze(Ie){k&&(Qe.current=Ie.detail===ne.current)}return[st,ze]}function Ne(k,Xe,N,b){var f=_.useMemo(function(){return[new Map,[]]},[k,N.id,b]),C=(0,re.Z)(f,2),ee=C[0],Se=C[1],H=function(Qe){var we=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Qe,ye=ee.get(Qe),je=ee.get(we);if(ye===void 0||je===void 0)for(var mt=k.length,ge=Se.length;ge<mt;ge+=1){var st,ze=k[ge],Ie=Xe(ze);ee.set(Ie,ge);var Le=(st=N.get(Ie))!==null&&st!==void 0?st:b;if(Se[ge]=(Se[ge-1]||0)+Le,Ie===Qe&&(ye=ge),Ie===we&&(je=ge),ye!==void 0&&je!==void 0)break}return{top:Se[ye-1]||0,bottom:Se[je]}};return H}var Be=x(67732),Pe=x(83652),q=function(){function k(){(0,Be.Z)(this,k),(0,De.Z)(this,"maps",void 0),(0,De.Z)(this,"id",0),(0,De.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,Pe.Z)(k,[{key:"set",value:function(N,b){this.diffRecords.set(N,this.maps[N]),this.maps[N]=b,this.id+=1}},{key:"get",value:function(N){return this.maps[N]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),k}(),Ae=q;function D(k){var Xe=parseFloat(k);return isNaN(Xe)?0:Xe}function Je(k,Xe,N){var b=_.useState(0),f=(0,re.Z)(b,2),C=f[0],ee=f[1],Se=(0,_.useRef)(new Map),H=(0,_.useRef)(new Ae),ne=(0,_.useRef)(0);function Qe(){ne.current+=1}function we(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;Qe();var mt=function(){var ze=!1;Se.current.forEach(function(Ie,Le){if(Ie&&Ie.offsetParent){var ct=Ie.offsetHeight,Tt=getComputedStyle(Ie),Mt=Tt.marginTop,Yt=Tt.marginBottom,_r=D(Mt),Sr=D(Yt),Lr=ct+_r+Sr;H.current.get(Le)!==Lr&&(H.current.set(Le,Lr),ze=!0)}}),ze&&ee(function(Ie){return Ie+1})};if(je)mt();else{ne.current+=1;var ge=ne.current;Promise.resolve().then(function(){ge===ne.current&&mt()})}}function ye(je,mt){var ge=k(je),st=Se.current.get(ge);mt?(Se.current.set(ge,mt),we()):Se.current.delete(ge),!st!=!mt&&(mt?Xe==null||Xe(je):N==null||N(je))}return(0,_.useEffect)(function(){return Qe},[]),[ye,we,H.current,C]}var Fe=14/15;function Ce(k,Xe,N){var b=(0,_.useRef)(!1),f=(0,_.useRef)(0),C=(0,_.useRef)(0),ee=(0,_.useRef)(null),Se=(0,_.useRef)(null),H,ne=function(je){if(b.current){var mt=Math.ceil(je.touches[0].pageX),ge=Math.ceil(je.touches[0].pageY),st=f.current-mt,ze=C.current-ge,Ie=Math.abs(st)>Math.abs(ze);Ie?f.current=mt:C.current=ge;var Le=N(Ie,Ie?st:ze,!1,je);Le&&je.preventDefault(),clearInterval(Se.current),Le&&(Se.current=setInterval(function(){Ie?st*=Fe:ze*=Fe;var ct=Math.floor(Ie?st:ze);(!N(Ie,ct,!0)||Math.abs(ct)<=.1)&&clearInterval(Se.current)},16))}},Qe=function(){b.current=!1,H()},we=function(je){H(),je.touches.length===1&&!b.current&&(b.current=!0,f.current=Math.ceil(je.touches[0].pageX),C.current=Math.ceil(je.touches[0].pageY),ee.current=je.target,ee.current.addEventListener("touchmove",ne,{passive:!1}),ee.current.addEventListener("touchend",Qe,{passive:!0}))};H=function(){ee.current&&(ee.current.removeEventListener("touchmove",ne),ee.current.removeEventListener("touchend",Qe))},(0,$.Z)(function(){return k&&Xe.current.addEventListener("touchstart",we,{passive:!0}),function(){var ye;(ye=Xe.current)===null||ye===void 0||ye.removeEventListener("touchstart",we),H(),clearInterval(Se.current)}},[k])}function Ue(k){return Math.floor(Math.pow(k,.5))}function me(k,Xe){var N="touches"in k?k.touches[0]:k;return N[Xe?"pageX":"pageY"]-window[Xe?"scrollX":"scrollY"]}function Me(k,Xe,N){_.useEffect(function(){var b=Xe.current;if(k&&b){var f=!1,C,ee,Se=function(){J.Z.cancel(C)},H=function ye(){Se(),C=(0,J.Z)(function(){N(ee),ye()})},ne=function(){f=!1,Se()},Qe=function(je){if(!(je.target.draggable||je.button!==0)){var mt=je;mt._virtualHandled||(mt._virtualHandled=!0,f=!0)}},we=function(je){if(f){var mt=me(je,!1),ge=b.getBoundingClientRect(),st=ge.top,ze=ge.bottom;if(mt<=st){var Ie=st-mt;ee=-Ue(Ie),H()}else if(mt>=ze){var Le=mt-ze;ee=Ue(Le),H()}else Se()}};return b.addEventListener("mousedown",Qe),b.ownerDocument.addEventListener("mouseup",ne),b.ownerDocument.addEventListener("mousemove",we),b.ownerDocument.addEventListener("dragend",ne),function(){b.removeEventListener("mousedown",Qe),b.ownerDocument.removeEventListener("mouseup",ne),b.ownerDocument.removeEventListener("mousemove",we),b.ownerDocument.removeEventListener("dragend",ne),Se()}}},[k])}var fe=10;function Ee(k,Xe,N,b,f,C,ee,Se){var H=_.useRef(),ne=_.useState(null),Qe=(0,re.Z)(ne,2),we=Qe[0],ye=Qe[1];return(0,$.Z)(function(){if(we&&we.times<fe){if(!k.current){ye(function(ji){return(0,T.Z)({},ji)});return}C();var je=we.targetAlign,mt=we.originAlign,ge=we.index,st=we.offset,ze=k.current.clientHeight,Ie=!1,Le=je,ct=null;if(ze){for(var Tt=je||mt,Mt=0,Yt=0,_r=0,Sr=Math.min(Xe.length-1,ge),Lr=0;Lr<=Sr;Lr+=1){var Er=f(Xe[Lr]);Yt=Mt;var Ar=N.get(Er);_r=Yt+(Ar===void 0?b:Ar),Mt=_r}for(var ar=Tt==="top"?st:ze-st,Rr=Sr;Rr>=0;Rr-=1){var fn=f(Xe[Rr]),En=N.get(fn);if(En===void 0){Ie=!0;break}if(ar-=En,ar<=0)break}switch(Tt){case"top":ct=Yt-st;break;case"bottom":ct=_r-ze+st;break;default:{var gn=k.current.scrollTop,Rn=gn+ze;Yt<gn?Le="top":_r>Rn&&(Le="bottom")}}ct!==null&&ee(ct),ct!==we.lastTop&&(Ie=!0)}Ie&&ye((0,T.Z)((0,T.Z)({},we),{},{times:we.times+1,targetAlign:Le,lastTop:ct}))}},[we,k.current]),function(je){if(je==null){Se();return}if(J.Z.cancel(H.current),typeof je=="number")ee(je);else if(je&&(0,ue.Z)(je)==="object"){var mt,ge=je.align;"index"in je?mt=je.index:mt=Xe.findIndex(function(Ie){return f(Ie)===je.key});var st=je.offset,ze=st===void 0?0:st;ye({times:0,index:mt,offset:ze,originAlign:ge})}}}var rt=_.forwardRef(function(k,Xe){var N=k.prefixCls,b=k.rtl,f=k.scrollOffset,C=k.scrollRange,ee=k.onStartMove,Se=k.onStopMove,H=k.onScroll,ne=k.horizontal,Qe=k.spinSize,we=k.containerSize,ye=k.style,je=k.thumbStyle,mt=k.showScrollBar,ge=_.useState(!1),st=(0,re.Z)(ge,2),ze=st[0],Ie=st[1],Le=_.useState(null),ct=(0,re.Z)(Le,2),Tt=ct[0],Mt=ct[1],Yt=_.useState(null),_r=(0,re.Z)(Yt,2),Sr=_r[0],Lr=_r[1],Er=!b,Ar=_.useRef(),ar=_.useRef(),Rr=_.useState(mt),fn=(0,re.Z)(Rr,2),En=fn[0],gn=fn[1],Rn=_.useRef(),ji=function(){mt===!0||mt===!1||(clearTimeout(Rn.current),gn(!0),Rn.current=setTimeout(function(){gn(!1)},3e3))},Or=C-we||0,bi=we-Qe||0,ua=_.useMemo(function(){if(f===0||Or===0)return 0;var zi=f/Or;return zi*bi},[f,Or,bi]),gi=function(be){be.stopPropagation(),be.preventDefault()},ta=_.useRef({top:ua,dragging:ze,pageY:Tt,startTop:Sr});ta.current={top:ua,dragging:ze,pageY:Tt,startTop:Sr};var Ji=function(be){Ie(!0),Mt(me(be,ne)),Lr(ta.current.top),ee(),be.stopPropagation(),be.preventDefault()};_.useEffect(function(){var zi=function(qe){qe.preventDefault()},be=Ar.current,Oe=ar.current;return be.addEventListener("touchstart",zi,{passive:!1}),Oe.addEventListener("touchstart",Ji,{passive:!1}),function(){be.removeEventListener("touchstart",zi),Oe.removeEventListener("touchstart",Ji)}},[]);var aa=_.useRef();aa.current=Or;var Io=_.useRef();Io.current=bi,_.useEffect(function(){if(ze){var zi,be=function(qe){var Rt=ta.current,kt=Rt.dragging,yr=Rt.pageY,or=Rt.startTop;J.Z.cancel(zi);var Nr=Ar.current.getBoundingClientRect(),zr=we/(ne?Nr.width:Nr.height);if(kt){var an=(me(qe,ne)-yr)*zr,jr=or;!Er&&ne?jr-=an:jr+=an;var Qr=aa.current,qr=Io.current,yn=qr?jr/qr:0,on=Math.ceil(yn*Qr);on=Math.max(on,0),on=Math.min(on,Qr),zi=(0,J.Z)(function(){H(on,ne)})}},Oe=function(){Ie(!1),Se()};return window.addEventListener("mousemove",be,{passive:!0}),window.addEventListener("touchmove",be,{passive:!0}),window.addEventListener("mouseup",Oe,{passive:!0}),window.addEventListener("touchend",Oe,{passive:!0}),function(){window.removeEventListener("mousemove",be),window.removeEventListener("touchmove",be),window.removeEventListener("mouseup",Oe),window.removeEventListener("touchend",Oe),J.Z.cancel(zi)}}},[ze]),_.useEffect(function(){return ji(),function(){clearTimeout(Rn.current)}},[f]),_.useImperativeHandle(Xe,function(){return{delayHidden:ji}});var oa="".concat(N,"-scrollbar"),pi={position:"absolute",visibility:En?null:"hidden"},Ti={position:"absolute",borderRadius:99,background:"var(--rc-virtual-list-scrollbar-bg, rgba(0, 0, 0, 0.5))",cursor:"pointer",userSelect:"none"};return ne?(Object.assign(pi,{height:8,left:0,right:0,bottom:0}),Object.assign(Ti,(0,De.Z)({height:"100%",width:Qe},Er?"left":"right",ua))):(Object.assign(pi,(0,De.Z)({width:8,top:0,bottom:0},Er?"right":"left",0)),Object.assign(Ti,{width:"100%",height:Qe,top:ua})),_.createElement("div",{ref:Ar,className:m()(oa,(0,De.Z)((0,De.Z)((0,De.Z)({},"".concat(oa,"-horizontal"),ne),"".concat(oa,"-vertical"),!ne),"".concat(oa,"-visible"),En)),style:(0,T.Z)((0,T.Z)({},pi),ye),onMouseDown:gi,onMouseMove:ji},_.createElement("div",{ref:ar,className:m()("".concat(oa,"-thumb"),(0,De.Z)({},"".concat(oa,"-thumb-moving"),ze)),style:(0,T.Z)((0,T.Z)({},Ti),je),onMouseDown:Ji}))}),ot=rt,We=20;function et(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Xe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,N=k/Xe*k;return isNaN(N)&&(N=0),N=Math.max(N,We),Math.floor(N)}var _t=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],Ot=[],Pt={overflowY:"auto",overflowAnchor:"none"};function cr(k,Xe){var N=k.prefixCls,b=N===void 0?"rc-virtual-list":N,f=k.className,C=k.height,ee=k.itemHeight,Se=k.fullHeight,H=Se===void 0?!0:Se,ne=k.style,Qe=k.data,we=k.children,ye=k.itemKey,je=k.virtual,mt=k.direction,ge=k.scrollWidth,st=k.component,ze=st===void 0?"div":st,Ie=k.onScroll,Le=k.onVirtualScroll,ct=k.onVisibleChange,Tt=k.innerProps,Mt=k.extraRender,Yt=k.styles,_r=k.showScrollBar,Sr=_r===void 0?"optional":_r,Lr=(0,W.Z)(k,_t),Er=_.useCallback(function(Wn){return typeof ye=="function"?ye(Wn):Wn==null?void 0:Wn[ye]},[ye]),Ar=Je(Er,null,null),ar=(0,re.Z)(Ar,4),Rr=ar[0],fn=ar[1],En=ar[2],gn=ar[3],Rn=!!(je!==!1&&C&&ee),ji=_.useMemo(function(){return Object.values(En.maps).reduce(function(Wn,_n){return Wn+_n},0)},[En.id,En.maps]),Or=Rn&&Qe&&(Math.max(ee*Qe.length,ji)>C||!!ge),bi=mt==="rtl",ua=m()(b,(0,De.Z)({},"".concat(b,"-rtl"),bi),f),gi=Qe||Ot,ta=(0,_.useRef)(),Ji=(0,_.useRef)(),aa=(0,_.useRef)(),Io=(0,_.useState)(0),oa=(0,re.Z)(Io,2),pi=oa[0],Ti=oa[1],zi=(0,_.useState)(0),be=(0,re.Z)(zi,2),Oe=be[0],ke=be[1],qe=(0,_.useState)(!1),Rt=(0,re.Z)(qe,2),kt=Rt[0],yr=Rt[1],or=function(){yr(!0)},Nr=function(){yr(!1)},zr={getKey:Er};function an(Wn){Ti(function(_n){var Mi;typeof Wn=="function"?Mi=Wn(_n):Mi=Wn;var Zi=ti(Mi);return ta.current.scrollTop=Zi,Zi})}var jr=(0,_.useRef)({start:0,end:gi.length}),Qr=(0,_.useRef)(),qr=ie(gi,Er),yn=(0,re.Z)(qr,1),on=yn[0];Qr.current=on;var Dn=_.useMemo(function(){if(!Rn)return{scrollHeight:void 0,start:0,end:gi.length-1,offset:void 0};if(!Or){var Wn;return{scrollHeight:((Wn=Ji.current)===null||Wn===void 0?void 0:Wn.offsetHeight)||0,start:0,end:gi.length-1,offset:void 0}}for(var _n=0,Mi,Zi,Ia,Is=gi.length,za=0;za<Is;za+=1){var da=gi[za],Fo=Er(da),So=En.get(Fo),Uo=_n+(So===void 0?ee:So);Uo>=pi&&Mi===void 0&&(Mi=za,Zi=_n),Uo>pi+C&&Ia===void 0&&(Ia=za),_n=Uo}return Mi===void 0&&(Mi=0,Zi=0,Ia=Math.ceil(C/ee)),Ia===void 0&&(Ia=gi.length-1),Ia=Math.min(Ia+1,gi.length-1),{scrollHeight:_n,start:Mi,end:Ia,offset:Zi}},[Or,Rn,pi,gi,gn,C]),Qn=Dn.scrollHeight,fi=Dn.start,On=Dn.end,An=Dn.offset;jr.current.start=fi,jr.current.end=On,_.useLayoutEffect(function(){var Wn=En.getRecord();if(Wn.size===1){var _n=Array.from(Wn.keys())[0],Mi=Wn.get(_n),Zi=gi[fi];if(Zi&&Mi===void 0){var Ia=Er(Zi);if(Ia===_n){var Is=En.get(_n),za=Is-ee;an(function(da){return da+za})}}}En.resetRecord()},[Qn]);var Dt=_.useState({width:0,height:C}),Kt=(0,re.Z)(Dt,2),Gt=Kt[0],Jt=Kt[1],Zt=function(_n){Jt({width:_n.offsetWidth,height:_n.offsetHeight})},Dr=(0,_.useRef)(),Fr=(0,_.useRef)(),Xr=_.useMemo(function(){return et(Gt.width,ge)},[Gt.width,ge]),Fn=_.useMemo(function(){return et(Gt.height,Qn)},[Gt.height,Qn]),Nn=Qn-C,si=(0,_.useRef)(Nn);si.current=Nn;function ti(Wn){var _n=Wn;return Number.isNaN(si.current)||(_n=Math.min(_n,si.current)),_n=Math.max(_n,0),_n}var Bi=pi<=0,Yn=pi>=Nn,jn=Oe<=0,yi=Oe>=ge,vi=se(Bi,Yn,jn,yi),wi=function(){return{x:bi?-Oe:Oe,y:pi}},li=(0,_.useRef)(wi()),xi=(0,g.useEvent)(function(Wn){if(Le){var _n=(0,T.Z)((0,T.Z)({},wi()),Wn);(li.current.x!==_n.x||li.current.y!==_n.y)&&(Le(_n),li.current=_n)}});function $i(Wn,_n){var Mi=Wn;_n?((0,F.flushSync)(function(){ke(Mi)}),xi()):an(Mi)}function ei(Wn){var _n=Wn.currentTarget.scrollTop;_n!==pi&&an(_n),Ie==null||Ie(Wn),xi()}var Di=function(_n){var Mi=_n,Zi=ge?ge-Gt.width:0;return Mi=Math.max(Mi,0),Mi=Math.min(Mi,Zi),Mi},Ha=(0,g.useEvent)(function(Wn,_n){_n?((0,F.flushSync)(function(){ke(function(Mi){var Zi=Mi+(bi?-Wn:Wn);return Di(Zi)})}),xi()):an(function(Mi){var Zi=Mi+Wn;return Zi})}),oi=he(Rn,Bi,Yn,jn,yi,!!ge,Ha),hn=(0,re.Z)(oi,2),ln=hn[0],Xn=hn[1];Ce(Rn,ta,function(Wn,_n,Mi,Zi){var Ia=Zi;return vi(Wn,_n,Mi)?!1:!Ia||!Ia._virtualHandled?(Ia&&(Ia._virtualHandled=!0),ln({preventDefault:function(){},deltaX:Wn?_n:0,deltaY:Wn?0:_n}),!0):!1}),Me(Or,ta,function(Wn){an(function(_n){return _n+Wn})}),(0,$.Z)(function(){function Wn(Mi){var Zi=Bi&&Mi.detail<0,Ia=Yn&&Mi.detail>0;Rn&&!Zi&&!Ia&&Mi.preventDefault()}var _n=ta.current;return _n.addEventListener("wheel",ln,{passive:!1}),_n.addEventListener("DOMMouseScroll",Xn,{passive:!0}),_n.addEventListener("MozMousePixelScroll",Wn,{passive:!1}),function(){_n.removeEventListener("wheel",ln),_n.removeEventListener("DOMMouseScroll",Xn),_n.removeEventListener("MozMousePixelScroll",Wn)}},[Rn,Bi,Yn]),(0,$.Z)(function(){if(ge){var Wn=Di(Oe);ke(Wn),xi({x:Wn})}},[Gt.width,ge]);var Kn=function(){var _n,Mi;(_n=Dr.current)===null||_n===void 0||_n.delayHidden(),(Mi=Fr.current)===null||Mi===void 0||Mi.delayHidden()},Ai=Ee(ta,gi,En,ee,Er,function(){return fn(!0)},an,Kn);_.useImperativeHandle(Xe,function(){return{nativeElement:aa.current,getScrollInfo:wi,scrollTo:function(_n){function Mi(Zi){return Zi&&(0,ue.Z)(Zi)==="object"&&("left"in Zi||"top"in Zi)}Mi(_n)?(_n.left!==void 0&&ke(Di(_n.left)),Ai(_n.top)):Ai(_n)}}}),(0,$.Z)(function(){if(ct){var Wn=gi.slice(fi,On+1);ct(Wn,gi)}},[fi,On,gi]);var Wi=Ne(gi,Er,En,ee),_i=Mt==null?void 0:Mt({start:fi,end:On,virtual:Or,offsetX:Oe,offsetY:An,rtl:bi,getSize:Wi}),Ua=Y(gi,fi,On,ge,Oe,Rr,we,zr),ca=null;C&&(ca=(0,T.Z)((0,De.Z)({},H?"height":"maxHeight",C),Pt),Rn&&(ca.overflowY="hidden",ge&&(ca.overflowX="hidden"),kt&&(ca.pointerEvents="none")));var Bo={};return bi&&(Bo.dir="rtl"),_.createElement("div",(0,ve.Z)({ref:aa,style:(0,T.Z)((0,T.Z)({},ne),{},{position:"relative"}),className:ua},Bo,Lr),_.createElement(I.Z,{onResize:Zt},_.createElement(ze,{className:"".concat(b,"-holder"),style:ca,ref:ta,onScroll:ei,onMouseEnter:Kn},_.createElement(U,{prefixCls:b,height:Qn,offsetX:Oe,offsetY:An,scrollWidth:ge,onInnerResize:fn,ref:Ji,innerProps:Tt,rtl:bi,extra:_i},Ua))),Or&&Qn>C&&_.createElement(ot,{ref:Dr,prefixCls:b,scrollOffset:pi,scrollRange:Qn,rtl:bi,onScroll:$i,onStartMove:or,onStopMove:Nr,spinSize:Fn,containerSize:Gt.height,style:Yt==null?void 0:Yt.verticalScrollBar,thumbStyle:Yt==null?void 0:Yt.verticalScrollBarThumb,showScrollBar:Sr}),Or&&ge>Gt.width&&_.createElement(ot,{ref:Fr,prefixCls:b,scrollOffset:Oe,scrollRange:ge,rtl:bi,onScroll:$i,onStartMove:or,onStopMove:Nr,spinSize:Xr,containerSize:Gt.width,horizontal:!0,style:Yt==null?void 0:Yt.horizontalScrollBar,thumbStyle:Yt==null?void 0:Yt.horizontalScrollBarThumb,showScrollBar:Sr}))}var nr=_.forwardRef(cr);nr.displayName="List";var br=nr,sr=br},45614:function(dn){"use strict";dn.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(dn){"use strict";dn.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(dn,Ut,x){"use strict";var ve=Object.defineProperty,ue=Object.defineProperties,T=Object.getOwnPropertyDescriptors,De=Object.getOwnPropertySymbols,re=Object.prototype.hasOwnProperty,W=Object.prototype.propertyIsEnumerable,S=(e,t,r)=>t in e?ve(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,m=(e,t)=>{for(var r in t||(t={}))re.call(t,r)&&S(e,r,t[r]);if(De)for(var r of De(t))W.call(t,r)&&S(e,r,t[r]);return e},I=(e,t)=>ue(e,T(t)),g=e=>typeof e=="symbol"?e:e+"",$=(e,t)=>{var r={};for(var i in e)re.call(e,i)&&t.indexOf(i)<0&&(r[i]=e[i]);if(e!=null&&De)for(var i of De(e))t.indexOf(i)<0&&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 P(){return"window"in globalThis&&"document"in globalThis}function U(){return"matchMedia"in window?window.matchMedia("(pointer: coarse)").matches:"ontouchstart"in window||navigator.maxTouchPoints>0}function M(){return typeof navigator.vibrate=="function"}function Y(){var e,t;if(!P())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(!P())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 ae(){return HTMLElement.prototype.hasOwnProperty("popover")}var ie={strings:F,_locale:"",_dirty:!1,_subscribers:[],_numberFormatter:void 0,get locale(){return ie._locale||(ie._locale=P()?navigator.language.slice(0,5):"en-US"),ie._locale},set locale(e){ie._locale=e,ie._numberFormatter=void 0,ie.dirty=!0},get numberFormatter(){return ie._numberFormatter||(ie._numberFormatter=new Intl.NumberFormat(ie.locale)),ie._numberFormatter},merge(e,t){if(typeof e=="string"&&t)ie.strings[e]=m(m({},ie.strings[e]),t),ie.dirty=!0;else for(const r of Object.keys(e))ie.merge(r,e[r])},get dirty(){return ie._dirty},set dirty(e){ie._dirty||ie._dirty===e||(ie._dirty=!0,setTimeout(()=>{ie._dirty=!1,this._subscribers.forEach(t=>t==null?void 0:t())},0))},subscribe(e){return ie._subscribers.push(e),ie._subscribers.length-1},unsubscribe(e){e<0||e>=ie._subscribers.length||(ie._subscribers[e]=void 0)},update(e){let t=e.querySelectorAll("[data-l10n-tooltip]");for(const r of t){const i=r.getAttribute("data-l10n-tooltip");if(i){const s=J(i);s&&r.setAttribute("data-tooltip",s)}}t=e.querySelectorAll("[data-l10n-arial-label]");for(const r of t){const i=r.getAttribute("data-l10n-arial-label");if(i){const s=J(i);s&&r.setAttribute("aria-label",s)}}}};function J(e,...t){if(e===void 0)return;let r="";const i=ie.locale;ie.strings[i]&&(r=ie.strings[i][e]);const s=i.slice(0,2);if(!r&&ie.strings[s]&&(r=ie.strings[s][e]),r||(r=ie.strings.en[e]),!r)return;const c=/(%@|%([0-9]+)\$@)/g;let u=c.exec(r),L=0;for(;u;){if(t[L++]){const X=u[2]?parseInt(u[2],10)-1:L-1;let ce=t[X];typeof ce=="number"&&(ce=ie.numberFormatter.format(ce)),r=r.replace(u[1],ce)}u=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"},j={blue:"#0072BD",orange:"#D95319",yellow:"#EDB120",purple:"#7E2F8E",green:"#77AC30",cyan:"#4DBEEE",red:"#A2142F"},se={red:"#fbbbb6",orange:"#ffe0c2",yellow:"#fff1c2",lime:"#d0e8b9",green:"#bceac4",teal:"#b9f1f1",cyan:"#b8e5c9",blue:"#b6d9fb",indigo:"#d1c2f0",purple:"#e3baf8",magenta:"#f9c8e0",black:"#353535","dark-grey":"#8C8C8C",grey:"#D0D0D0","light-grey":"#F0F0F0",white:"#ffffff"},he={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"},Be={Apricot:"#FBB982",Aquamarine:"#00B5BE",Bittersweet:"#C04F17",Black:"#221E1F",Blue:"#2D2F92",BlueGreen:"#00B3B8",BlueViolet:"#473992",BrickRed:"#B6321C",Brown:"#792500",BurntOrange:"#F7921D",CadetBlue:"#74729A",CarnationPink:"#F282B4",Cerulean:"#00A2E3",CornflowerBlue:"#41B0E4",Cyan:"#00AEEF",Dandelion:"#FDBC42",DarkOrchid:"#A4538A",Emerald:"#00A99D",ForestGreen:"#009B55",Fuchsia:"#8C368C",Goldenrod:"#FFDF42",Gray:"#949698",Green:"#00A64F",GreenYellow:"#DFE674",JungleGreen:"#00A99A",Lavender:"#F49EC4",Limegreen:"#8DC73E",Magenta:"#EC008C",Mahogany:"#A9341F",Maroon:"#AF3235",Melon:"#F89E7B",MidnightBlue:"#006795",Mulberry:"#A93C93",NavyBlue:"#006EB8",OliveGreen:"#3C8031",Orange:"#F58137",OrangeRed:"#ED135A",Orchid:"#AF72B0",Peach:"#F7965A",Periwinkle:"#7977B8",PineGreen:"#008B72",Plum:"#92268F",ProcessBlue:"#00B0F0",Purple:"#99479B",RawSienna:"#974006",Red:"#ED1B23",RedOrange:"#F26035",RedViolet:"#A1246B",Rhodamine:"#EF559F",RoyalBlue:"#0071BC",RoyalPurple:"#613F99",RubineRed:"#ED017D",Salmon:"#F69289",SeaGreen:"#3FBC9D",Sepia:"#671800",SkyBlue:"#46C5DD",SpringGreen:"#C6DC67",Tan:"#DA9D76",TealBlue:"#00AEB3",Thistle:"#D883B7",Turquoise:"#00B4CE",Violet:"#58429B",VioletRed:"#EF58A0",White:"#FFFFFF",WildStrawberry:"#EE2967",Yellow:"#FFF200",YellowGreen:"#98CC70",YellowOrange:"#FAA21A"};function Pe(e){var t,r,i,s,c,u;const L=e.split("!");let z,X,ce,Te=255,nt=255,vt=255,St=-1;const xr=L.length>0&&L[0].startsWith("-");xr&&(L[0]=L[0].slice(1));for(let Sn=0;Sn<L.length;Sn++){z=Te,X=nt,ce=vt;const vr=(t=L[Sn].trim().match(/^([A-Za-z\d-]+)/))==null?void 0:t[1],nn=vr==null?void 0:vr.toLowerCase(),Ln=vr&&(u=(c=(s=(i=(r=he[nn])!=null?r:he[Ne[vr]])!=null?i:j[vr])!=null?s:Be[vr])!=null?c:G[vr])!=null?u:L[Sn].trim();let un=Ln.match(/^#([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i);if(un!=null&&un[1]&&un[2]&&un[3])Te=Math.max(0,Math.min(255,Number.parseInt(un[1],16))),nt=Math.max(0,Math.min(255,Number.parseInt(un[2],16))),vt=Math.max(0,Math.min(255,Number.parseInt(un[3],16)));else if(un=Ln.match(/^#([\da-f]{3})$/i),un!=null&&un[1]){const Ci=Number.parseInt(un[1][0],16),Yi=Number.parseInt(un[1][1],16),Pi=Number.parseInt(un[1][2],16);Te=Math.max(0,Math.min(255,Ci*16+Ci)),nt=Math.max(0,Math.min(255,Yi*16+Yi)),vt=Math.max(0,Math.min(255,Pi*16+Pi))}else if(un=Ln.match(/^rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)$/i),un!=null&&un[1]&&un[2]&&un[3])Te=Math.max(0,Math.min(255,Number.parseInt(un[1]))),nt=Math.max(0,Math.min(255,Number.parseInt(un[2]))),vt=Math.max(0,Math.min(255,Number.parseInt(un[3])));else return;St>=0&&(Te=(1-St)*Te+St*z,nt=(1-St)*nt+St*X,vt=(1-St)*vt+St*ce,St=-1),Sn+1<L.length&&(St=Math.max(0,Math.min(100,Number.parseInt(L[++Sn])))/100)}return St>=0&&(Te=St*Te+(1-St)*z,nt=St*nt+(1-St)*X,vt=St*vt+(1-St)*ce),xr&&(Te=255-Te,nt=255-nt,vt=255-vt),"#"+("00"+Math.round(Te).toString(16)).slice(-2)+("00"+Math.round(nt).toString(16)).slice(-2)+("00"+Math.round(vt).toString(16)).slice(-2)}function q(e){var t,r;return e=e.trim(),(r=(t=se[e.toLowerCase()])!=null?t:se[Ne[e]])!=null?r:Pe(e)}function Ae(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 Je(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 Fe(e){return e<0?0:e>255?255:Math.round(e)}function Ce(e){const{r:t,g:r,b:i}=e;let s=((1<<24)+(Fe(t)<<16)+(Fe(r)<<8)+Fe(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 Ue(e){let{r:t,g:r,b:i}=e;t=t/255,r=r/255,i=i/255;const s=Math.min(t,r,i),c=Math.max(t,r,i),u=c-s;let L,z;c===s?L=0:t===c?L=(r-i)/u:r===c?L=2+(i-t)/u:i===c&&(L=4+(t-r)/u),L=Math.min(L*60,360),L<0&&(L+=360);const X=(s+c)/2;return c===s?z=0:X<=.5?z=u/(c+s):z=u/(2-c-s),{h:L,s:z,l:X}}function me(e){let t=Ae(e);if(!t)return e;let{h:r,s:i,l:s}=Ue(t);return i+=.1,s-=.1,Ce(Je({h:r,s:i,l:s}))}var Me={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"},fe={119893:8462,119965:8492,119968:8496,119969:8497,119971:8459,119972:8464,119975:8466,119976:8499,119981:8475,119994:8495,119996:8458,120004:8500,120070:8493,120075:8460,120076:8465,120085:8476,120093:8488,120122:8450,120127:8461,120133:8469,120135:8473,120136:8474,120137:8477,120145:8484},Ee=[{start:119808,len:26,offset:65,style:"bold"},{start:119834,len:26,offset:97,style:"bold"},{start:119860,len:26,offset:65,style:"italic"},{start:119886,len:26,offset:97,style:"italic"},{start:119912,len:26,offset:65,style:"bolditalic"},{start:119938,len:26,offset:97,style:"bolditalic"},{start:119964,len:26,offset:65,variant:"script"},{start:119990,len:26,offset:97,variant:"script"},{start:120016,len:26,offset:65,variant:"script",style:"bold"},{start:120042,len:26,offset:97,variant:"script",style:"bold"},{start:120068,len:26,offset:65,variant:"fraktur"},{start:120094,len:26,offset:97,variant:"fraktur"},{start:120172,len:26,offset:65,variant:"fraktur",style:"bold"},{start:120198,len:26,offset:97,variant:"fraktur",style:"bold"},{start:120120,len:26,offset:65,variant:"double-struck"},{start:120146,len:26,offset:97,variant:"double-struck"},{start:120224,len:26,offset:65,variant:"sans-serif"},{start:120250,len:26,offset:97,variant:"sans-serif"},{start:120276,len:26,offset:65,variant:"sans-serif",style:"bold"},{start:120302,len:26,offset:97,variant:"sans-serif",style:"bold"},{start:120328,len:26,offset:65,variant:"sans-serif",style:"italic"},{start:120354,len:26,offset:97,variant:"sans-serif",style:"italic"},{start:120380,len:26,offset:65,variant:"sans-serif",style:"bolditalic"},{start:120406,len:26,offset:97,variant:"sans-serif",style:"bolditalic"},{start:120432,len:26,offset:65,variant:"monospace"},{start:120458,len:26,offset:97,variant:"monospace"},{start:120488,len:25,offset:913,style:"bold"},{start:120514,len:25,offset:945,style:"bold"},{start:120546,len:25,offset:913,style:"italic"},{start:120572,len:25,offset:945,style:"italic"},{start:120604,len:25,offset:913,style:"bolditalic"},{start:120630,len:25,offset:945,style:"bolditalic"},{start:120662,len:25,offset:913,variant:"sans-serif",style:"bold"},{start:120688,len:25,offset:945,variant:"sans-serif",style:"bold"},{start:120720,len:25,offset:913,variant:"sans-serif",style:"bolditalic"},{start:120746,len:25,offset:945,variant:"sans-serif",style:"bolditalic"},{start:120782,len:10,offset:48,variant:"main",style:"bold"},{start:120792,len:10,offset:48,variant:"double-struck"},{start:120803,len:10,offset:48,variant:"sans-serif"},{start:120812,len:10,offset:48,variant:"sans-serif",style:"bold"},{start:120822,len:10,offset:48,variant:"monospace"}];function rt(e,t,r){if(!/[A-Za-z\d]/.test(e)||(r==="up"&&(r=void 0),!t&&!r))return e;const i=e.codePointAt(0);if(i===void 0)return e;for(const s of Ee)if((!t||s.variant===t)&&(!r||s.style===r)&&i>=s.offset&&i<s.offset+s.len){const c=s.start+i-s.offset;return String.fromCodePoint(fe[c]||c)}return e}function ot(e){var t;if((e<119808||e>120831)&&(e<8448||e>8527))return{char:String.fromCodePoint(e)};for(const r in fe)if(fe[r]===e){e=(t=r.codePointAt(0))!=null?t:0;break}for(const r of Ee)if(e>=r.start&&e<r.start+r.len)return{char:String.fromCodePoint(e-r.start+r.offset),variant:r.variant,style:r.style};return{char:String.fromCodePoint(e)}}function We(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=Me[s];if(c)c.startsWith("\\")?r+=c+" ":r+=c;else{const{char:u,variant:L,style:z}=ot(s);switch(c=u,L){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(z){case"bold":c=`\\mathbf{${c}}`;break;case"italic":c=`\\mathit{${c}}`;break;case"bolditalic":c=`\\mathbfit{${c}}`;break}r+=c}}return r}function et(e){return e?Array.isArray(e)?e:typeof e=="object"&&"group"in e?e.group:[]:[]}var _t={},Ot=m({},Me),Pt={},cr={},nr={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}},sr={bra:{def:"\\mathinner{\\langle{#1}|}",args:1,captureSelection:!1},ket:{def:"\\mathinner{|{#1}\\rangle}",args:1,captureSelection:!1},braket:{def:"\\mathinner{\\langle{#1}\\rangle}",args:1,captureSelection:!1},set:{def:"\\mathinner{\\lbrace #1 \\rbrace}",args:1,captureSelection:!1},Bra:{def:"\\left\\langle #1\\right|",args:1,captureSelection:!1},Ket:{def:"\\left|#1\\right\\rangle",args:1,captureSelection:!1},Braket:{def:"\\left\\langle{#1}\\right\\rangle",args:1,captureSelection:!1},Set:{def:"\\left\\lbrace #1 \\right\\rbrace",args:1,captureSelection:!1}},k={iff:{primitive:!0,captureSelection:!0,def:"\\;\u27FA\\;"},nicefrac:"^{#1}\\!\\!/\\!_{#2}",phase:{def:"\\enclose{phasorangle}{#1}",args:1,captureSelection:!1},rd:"\\mathrm{d}",rD:"\\mathrm{D}",doubleStruckCapitalN:"\\mathbb{N}",doubleStruckCapitalR:"\\mathbb{R}",doubleStruckCapitalQ:"\\mathbb{Q}",doubleStruckCapitalZ:"\\mathbb{Z}",doubleStruckCapitalP:"\\mathbb{P}",scriptCapitalE:"\\mathscr{E}",scriptCapitalH:"\\mathscr{H}",scriptCapitalL:"\\mathscr{L}",gothicCapitalC:"\\mathfrak{C}",gothicCapitalH:"\\mathfrak{H}",gothicCapitalI:"\\mathfrak{I}",gothicCapitalR:"\\mathfrak{R}",imaginaryI:"\\mathrm{i}",imaginaryJ:"\\mathrm{j}",exponentialE:"\\mathrm{e}",differentialD:"\\mathrm{d}",capitalDifferentialD:"\\mathrm{D}",mathstrut:{def:"\\vphantom{(}",primitive:!0},angl:"\\enclose{actuarial}{#1}",angln:"\\enclose{actuarial}{n}",anglr:"\\enclose{actuarial}{r}",anglk:"\\enclose{actuarial}{k}",mathtools:{primitive:!0,package:{ordinarycolon:":",vcentcolon:"\\mathrel{\\mathop\\ordinarycolon}",dblcolon:'{\\mathop{\\char"2237}}',coloneqq:'{\\mathop{\\char"2254}}',Coloneqq:'{\\mathop{\\char"2237\\char"3D}}',coloneq:'{\\mathop{\\char"3A\\char"2212}}',Coloneq:'{\\mathop{\\char"2237\\char"2212}}',eqqcolon:'{\\mathop{\\char"2255}}',Eqqcolon:'{\\mathop{\\char"3D\\char"2237}}',eqcolon:'{\\mathop{\\char"2239}}',Eqcolon:'{\\mathop{\\char"2212\\char"2237}}',colonapprox:'{\\mathop{\\char"003A\\char"2248}}',Colonapprox:'{\\mathop{\\char"2237\\char"2248}}',colonsim:'{\\mathop{\\char"3A\\char"223C}}',Colonsim:'{\\mathop{\\char"2237\\char"223C}}',colondash:"\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",Colondash:"\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}",dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Dashcolon:"\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}"}},ratio:"\\vcentcolon",coloncolon:"\\dblcolon",colonequals:"\\coloneq",coloncolonequals:"\\Coloneq",equalscolon:"\\eqcolon",equalscoloncolon:"\\Eqcolon",colonminus:"\\colondash",coloncolonminus:"\\Colondash",minuscolon:"\\dashcolon",minuscoloncolon:"\\Dashcolon",coloncolonapprox:"\\Colonapprox",coloncolonsim:"\\Colonsim",simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Simcolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",simcoloncolon:"\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}",Approxcolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",approxcoloncolon:"\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}",notni:"\\mathrel{\\char`\u220C}",limsup:"\\operatorname*{lim\\,sup}",liminf:"\\operatorname*{lim\\,inf}",injlim:"\\operatorname*{inj\\,lim}",projlim:"\\operatorname*{proj\\,lim}",varlimsup:"\\operatorname*{\\overline{lim}}",varliminf:"\\operatorname*{\\underline{lim}}",varinjlim:"\\operatorname*{\\underrightarrow{lim}}",varprojlim:"\\operatorname*{\\underleftarrow{lim}}",argmin:"\\operatorname*{arg\\,min}",argmax:"\\operatorname*{arg\\,max}",plim:"\\mathop{\\operatorname{plim}}\\limits",tripledash:{def:"\\vphantom{-}\\raise{4mu}{\\mkern1.5mu\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2.25mu}\\rule{2mu}{1.5mu}\\mkern{2mu}}",expand:!0},"braket.sty":{package:sr},"amsmath.sty":{package:br,primitive:!0},"texvc.sty":{package:nr,primitive:!1}},Xe={" ":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},N=/[\w!@*()-=+{}\[\]\\';:?/.,~<>`|$%#&^" ]/,b,f;Q()?(b=new RegExp("\\p{Letter}","u"),f=new RegExp("[0-9\\p{Letter}]","u")):(b=/[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},Ot[t]||(Ot[t]=e))}function ee(e,t,r){if(typeof e=="string"){for(let i=0;i<e.length;i++){const s=e.charAt(i);C(s,s.codePointAt(0))}return}for(const[i,s,c,u]of e)C(i,s,c!=null?c:t,u!=null?u:r)}function Se(e,t){for(let r=e;r<=t;r++)C(String.fromCodePoint(r),r)}function H(e){var t;return(t=cr[e])!=null?t:null}function ne(e,t){var r,i;if(t.length===0||t==="\\"||!t.startsWith("\\"))return[];const s=[];for(const u in Pt)u.startsWith(t)&&!Pt[u].infix&&s.push({match:u,frequency:(r=Pt[u].frequency)!=null?r:0});for(const u in _t)u.startsWith(t)&&s.push({match:u,frequency:(i=_t[u].frequency)!=null?i:0});const c=t.substring(1);for(const u of Object.keys(e.options.macros))u.startsWith(c)&&s.push({match:"\\"+u,frequency:0});return s.sort((u,L)=>{var z,X;return u.frequency===L.frequency?u.match.length===L.match.length?u.match<L.match?-1:1:u.match.length-L.match.length:((z=L.frequency)!=null?z:0)-((X=u.frequency)!=null?X:0)}),s.map(u=>u.match)}function Qe(e){let t="auto";const r=e.match(/:([^=]+)/);return r&&(t=r[1].trim()),t}function we(e){if(!e)return[];const t=[];let r=e.split("]");if(r[0].startsWith("[")){t.push({isOptional:!0,type:Qe(r[0].slice(1))});for(let i=1;i<=r.length;i++)t.push(...we(r[i]))}else if(r=e.split("}"),r[0].startsWith("{")){t.push({isOptional:!1,type:Qe(r[0].slice(1))});for(let i=1;i<=r.length;i++)t.push(...we(r[i]))}return t}function ye(e){if(!e)return"";let t="",r=!0;for(const i of e)typeof i.value=="string"?t+=i.value:r=!1;return r?t:""}function je(e,t){typeof e=="string"&&(e=[e]);const r={tabular:!1,params:[],createAtom:t};for(const i of e)cr[i]=r}function mt(e,t,r){typeof e=="string"&&(e=[e]);const s={tabular:!0,params:we(t),createAtom:r};for(const c of e)cr[c]=s}function ge(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")Pt["\\"+e]=c;else for(const u of e)Pt["\\"+u]=c}var st;function ze(e){return st||(st=Le(k)),e?Le(m(m({},st),e)):st}function Ie(e,t){var r,i,s,c;if(typeof e=="string"){let u=0;const L=e;return/(^|[^\\])#1/.test(L)&&(u=1),/(^|[^\\])#2/.test(L)&&(u=2),/(^|[^\\])#3/.test(L)&&(u=3),/(^|[^\\])#4/.test(L)&&(u=4),/(^|[^\\])#5/.test(L)&&(u=5),/(^|[^\\])#6/.test(L)&&(u=6),/(^|[^\\])#7/.test(L)&&(u=7),/(^|[^\\])#8/.test(L)&&(u=8),/(^|[^\\])#9/.test(L)&&(u=9),{expand:(r=t==null?void 0:t.expand)!=null?r:!0,captureSelection:(i=t==null?void 0:t.captureSelection)!=null?i:!0,args:u,def:L}}return m({expand:(s=t==null?void 0:t.expand)!=null?s:!0,captureSelection:(c=t==null?void 0:t.captureSelection)!=null?c:!0,args:0},e)}function Le(e){if(!e)return{};const t={};for(const r of Object.keys(e)){const i=e[r];if(i==null)delete t[r];else if(typeof i=="object"&&"package"in i)for(const s of Object.keys(i.package))t[s]=Ie(i.package[s],{expand:!i.primitive,captureSelection:i.captureSelection});else t[r]=Ie(i)}return t}function ct(e,t="math"){if(!e||e.length===0)return null;let r=null;if(e.startsWith("\\")){if(r=Pt[e],r)return!r.ifMode||r.ifMode===t?r:null;t==="math"?r=_t[e]:Xe[e]&&(r={definitionType:"symbol",type:"mord",codepoint:Xe[e]})}else if(t==="math"){if(r=_t[e],!r&&e.length===1){const i=Mt("math",e.codePointAt(0));return i.startsWith("\\")?I(m({},ct(i,"math")),{command:i}):null}}else Xe[e]?r={definitionType:"symbol",type:"mord",codepoint:Xe[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 Mt(e,t){if(t===void 0)return"";if(e==="math"&&Ot[t])return Ot[t];if(e==="text"){const r=Object.keys(Xe).find(i=>Xe[i]===t);return r||String.fromCodePoint(t)}return String.fromCodePoint(t)}var Yt=[0,.68889,0,0,.72222],_r=[0,.68889,0,0,.66667],Sr=[0,.68889,0,0,.77778],Lr=[0,.68889,0,0,.61111],Er=[.16667,.68889,0,0,.77778],Ar=[0,.68889,0,0,.55556],ar=[0,0,0,0,.25],Rr=[0,.825,0,0,2.33334],fn=[0,.9,0,0,2.33334],En=[0,.68889,0,0,.54028],gn=[-.03598,.46402,0,0,.5],Rn=[-.13313,.36687,0,0,1],ji=[.01354,.52239,0,0,1],Or=[.01354,.52239,0,0,1.11111],bi=[0,.54986,0,0,1],ua=[0,.69224,0,0,.5],gi=[0,.43056,0,0,1],ta=[.08198,.58198,0,0,.77778],Ji=[.19444,.69224,0,0,.41667],aa=[.1808,.675,0,0,1],Io=[.19444,.69224,0,0,.83334],oa=[.13667,.63667,0,0,1],pi=[-.064,.437,0,0,1.334],Ti=[.08167,.58167,0,0,.77778],zi=[0,.69224,0,0,.72222],be=[0,.69224,0,0,.66667],Oe=[-.13313,.36687,0,0,.77778],ke=[.06062,.54986,0,0,.77778],qe=[0,.69224,0,0,.77778],Rt=[.25583,.75583,0,0,.77778],kt=[.25142,.75726,0,0,.77778],yr=[.20576,.70576,0,0,.77778],or=[.30274,.79383,0,0,.77778],Nr=[.22958,.72958,0,0,.77778],zr=[.1808,.675,0,0,.77778],an=[.13667,.63667,0,0,.77778],jr=[.13597,.63597,0,0,.77778],Qr=[.03517,.54986,0,0,.77778],qr=[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],fi=[.03517,.54986,0,0,1.33334],On=[.38569,.88569,0,0,.77778],An=[.23222,.74111,0,0,.77778],Dt=[.19444,.69224,0,0,.77778],Kt=[0,.37788,0,0,.5],Gt=[0,.54986,0,0,.72222],Jt=[0,.69224,0,0,.83334],Zt=[.11111,.69224,0,0,.66667],Dr=[.26167,.75726,0,0,.77778],Fr=[.48256,.98256,0,0,.77778],Xr=[.28481,.79383,0,0,.77778],Fn=[.08167,.58167,0,0,.22222],Nn=[.08167,.58167,0,0,.38889],si=[0,.43056,.04028,0,.66667],ti=[.41951,.91951,0,0,.77778],Bi=[.24982,.74947,0,0,.38865],Yn=[.08319,.58283,0,0,.75623],jn=[0,.10803,0,0,.27764],yi=[0,.47534,0,0,.50181],vi=[.18906,.47534,0,0,.50181],wi=[0,.69141,0,0,.50181],li=[.24982,.74947,0,0,.27764],xi=[0,.69141,0,0,.21471],$i=[.25,.75,0,0,.44722],ei=[0,.64444,0,0,.575],Di=[.08556,.58556,0,0,.89444],Ha=[0,.69444,0,0,.89444],oi=[0,.68611,0,0,.9],hn=[0,.68611,0,0,.86944],ln=[.25,.75,0,0,.575],Xn=[.25,.75,0,0,.31944],Kn=[0,.69444,0,0,.63889],Ai=[0,.69444,0,0,.31944],Wi=[0,.44444,0,0,.63889],_i=[0,.44444,0,0,.51111],Ua=[0,.69444,0,0,.575],ca=[.13333,.63333,0,0,.89444],Bo=[0,.44444,0,0,.31944],Wn=[0,.69444,0,0,.86944],_n=[0,.68611,0,0,.69166],Mi=[0,.68611,0,0,.83055],Zi=[0,.68611,0,0,.89444],Ia=[0,.69444,0,0,.60278],Is=[.19444,.69444,0,0,.51111],za=[0,.69444,0,0,.83055],da=[-.10889,.39111,0,0,1.14999],Fo=[.19444,.69444,0,0,.575],So=[.19444,.69444,0,0,1.14999],Uo=[.19444,.69444,0,0,.70277],Ps=[.05556,.75,0,0,.575],ho=[0,.68611,0,0,.95833],vs=[.08556,.58556,0,0,.76666],Ts=[-.02639,.47361,0,0,.575],Ws=[0,.44444,0,0,.89444],Ro=[0,.55556,0,0,.76666],Qo=[-.10889,.39111,0,0,.89444],bs=[.00222,.50222,0,0,.89444],rl=[.19667,.69667,0,0,.89444],vl=[.08556,.58556,0,0,1.14999],nc=[0,.69444,0,0,.70277],ic=[-.02778,.47222,0,0,.575],Ql=[.25,.75,0,0,.51111],Gs=[-.13889,.36111,0,0,1.14999],Dc=[.19444,.69444,0,0,1.02222],Kl=[.12963,.69444,0,0,.89444],Hl=[.19444,.69444,0,0,.44722],Xs=[0,.64444,.13167,0,.59111],os=[.19444,.64444,.13167,0,.59111],ri=[0,.68611,.17208,0,.8961],sa=[.19444,.44444,.105,0,.53222],Xi=[0,.44444,.085,0,.82666],ra=[0,.69444,.06709,0,.59111],Da=[0,.69444,.12945,0,.35555],oo=[0,.69444,0,0,.94888],Js=[0,.69444,.11472,0,.59111],ys=[0,.68611,.10778,0,.88555],ws=[0,.69444,.07939,0,.62055],ps=[0,.69444,.12417,0,.30667],eo=[0,.64444,.13556,0,.51111],Ra=[.19444,.64444,.13556,0,.51111],ss=[0,.68333,.16389,0,.74333],ls=[.19444,.43056,.08847,0,.46],Fs=[0,.43056,.07514,0,.71555],Xo=[0,.69444,.06646,0,.51111],Mo=[0,.69444,0,0,.83129],hA=[0,.69444,.1225,0,.51111],au=[0,.68333,.09403,0,.76666],cc=[0,.68333,.11111,0,.76666],pA=[0,.69444,.06961,0,.51444],Al=[0,.69444,0,0,.27778],mA=[.25,.75,0,0,.38889],nl=[0,.64444,0,0,.5],ms=[0,.69444,0,0,.77778],Yc=[0,.68333,0,0,.75],Us=[0,.68333,0,0,.77778],OA=[0,.68333,0,0,.68056],Ac=[0,.68333,0,0,.72222],jl=[.25,.75,0,0,.5],to=[.25,.75,0,0,.27778],Ys=[0,.69444,0,0,.5],gA=[0,.69444,0,0,.55556],Fu=[0,.43056,0,0,.44445],cs=[0,.43056,0,0,.5],xa=[.19444,.43056,0,0,.55556],ba=[0,.43056,0,0,.55556],rs=[.08333,.58333,0,0,.77778],mo=[0,.43056,0,0,.27778],zo=[0,.66786,0,0,.27778],$o=[0,.69444,0,0,.75],Oo=[0,.66786,0,0,.5],xs=[0,.68333,0,0,.625],ac=[.19444,.69444,0,0,.44445],Zc=[0,.69444,0,0,.72222],qs=[.19444,.69444,0,0,.5],vA=[.19444,.69444,0,0,1],wl=[.011,.511,0,0,1.126],qc=[.19444,.69444,0,0,.61111],il=[.05556,.75,0,0,.5],Fd=[0,.68333,0,0,.83334],ou=[.0391,.5391,0,0,.66667],$A=[-.05555,.44445,0,0,.5],sf=[0,.43056,0,0,.77778],Vc=[0,.55556,0,0,.66667],Gu=[-.03625,.46375,0,0,.77778],Nc=[-.01688,.48312,0,0,.77778],Md=[.0391,.5391,0,0,1],Jo=[0,.69444,0,0,.61111],Po=[-.03472,.46528,0,0,.5],Yo=[.25,.75,0,0,.44445],yc=[-.14236,.35764,0,0,1],zl=[.244,.744,0,0,.412],Xu=[.19444,.69444,0,0,.88889],bA=[.12963,.69444,0,0,.77778],ZA=[.19444,.69444,0,0,.38889],Ld=[.011,.511,0,0,1.638],kd=[.19444,.69444,0,0,0],VA=[0,.44444,0,0,.575],WA=[.19444,.44444,0,0,.575],Lo=[0,.68611,0,0,.75555],yA=[0,.69444,0,0,.66759],GA=[0,.68611,0,0,.80555],p0=[0,.68611,.08229,0,.98229],su=[0,.68611,0,0,.76666],yh=[0,.44444,0,0,.58472],lf=[.19444,.44444,0,0,.6118],Dd=[.19444,.43056,0,0,.5],Kf=[0,.68333,.02778,.08334,.76278],wh=[0,.68333,.08125,.05556,.83125],Mu=[0,.43056,0,.05556,.48472],cf=[.19444,.43056,0,.08334,.51702],xl=[.25,.75,0,0,.42778],Cl=[0,.69444,0,0,.55],Oc=[0,.69444,0,0,.73334],Pc=[0,.69444,0,0,.79445],m0=[0,.69444,0,0,.51945],Lu=[0,.69444,0,0,.70278],xh=[0,.69444,0,0,.76389],ku=[.25,.75,0,0,.34306],Nd=[0,.69444,0,0,.56111],$p=[0,.69444,0,0,.25556],lu=[.19444,.45833,0,0,.56111],eA=[0,.45833,0,0,.56111],wc=[0,.69444,0,0,.30556],Zo=[0,.69444,0,0,.58056],Ju=[0,.69444,0,0,.67223],Hf=[0,.69444,0,0,.85556],jf=[0,.69444,0,0,.55834],Tc=[0,.65556,.11156,0,.5],Yu=[0,.69444,.08094,0,.70834],Af=[.17014,0,0,0,.44445],qu=[0,.69444,.0799,0,.5],g0=[0,.69444,0,0,.73752],v0=[0,.69444,.09205,0,.5],$l=[0,.69444,.09031,0,.77778],ed=[0,.69444,.07816,0,.27778],b0=[0,.69444,.00316,0,.5],de=[.19444,.69444,0,0,.83334],xe=[.05556,.75,0,0,.83334],Ye=[0,.75,0,0,.5],At=[.125,.08333,0,0,.27778],xt=[0,.08333,0,0,.27778],bt=[0,.65556,0,0,.5],Vt=[0,.69444,0,0,.47222],zt=[0,.69444,0,0,.66667],Ht=[0,.69444,0,0,.59722],ur=[0,.69444,0,0,.54167],Ir=[0,.69444,0,0,.70834],hr=[.25,.75,0,0,.28889],en=[0,.69444,0,0,.51667],$r=[0,.44444,0,0,.44445],Jr=[.19444,.44444,0,0,.51667],Pn=[0,.44444,0,0,.38333],xn=[0,.44444,0,0,.51667],Mn=[0,.69444,0,0,.83334],Cn=[.35001,.85,0,0,.45834],$n=[.35001,.85,0,0,.57778],Ni=[.35001,.85,0,0,.41667],Ui=[.35001,.85,0,0,.58334],ui=[0,.72222,0,0,.55556],qi=[1e-5,.6,0,0,.66667],ya=[1e-5,.6,0,0,.77778],Jn=[.25001,.75,0,0,.94445],mi=[.306,.805,.19445,0,.47222],ni=[.30612,.805,.19445,0,.47222],Tn=[.25001,.75,0,0,.83334],ii=[.35001,.85,0,0,.47222],Qi=[.25001,.75,0,0,1.11111],Na=[.65002,1.15,0,0,.59722],ha=[.65002,1.15,0,0,.81111],Ki=[.65002,1.15,0,0,.47222],Ea=[.65002,1.15,0,0,.66667],Qa=[0,.75,0,0,1],qo=[.55001,1.05,0,0,1.27778],so=[.862,1.36,.44445,0,.55556],gs=[.86225,1.36,.44445,0,.55556],As=[.55001,1.05,0,0,1.11111],pa=[.65002,1.15,0,0,.52778],sl=[.65002,1.15,0,0,.61111],po=[.55001,1.05,0,0,1.51112],es=[.95003,1.45,0,0,.73611],ns=[.95003,1.45,0,0,1.04445],xc=[.95003,1.45,0,0,.52778],ai=[.95003,1.45,0,0,.75],Hi=[0,.75,0,0,1.44445],Ri=[.95003,1.45,0,0,.58334],Li=[1.25003,1.75,0,0,.79167],go=[1.25003,1.75,0,0,1.27778],ki=[1.25003,1.75,0,0,.58334],la=[1.25003,1.75,0,0,.80556],ja=[0,.825,0,0,1.8889],$a=[1.25003,1.75,0,0,.63889],Fl=[.64502,1.155,0,0,.875],al=[1e-5,.6,0,0,.875],Wc=[-99e-5,.601,0,0,.66667],Rs=[.64502,1.155,0,0,.66667],Uc=[1e-5,.9,0,0,.88889],Hn=[.65002,1.15,0,0,.88889],uc=[.90001,0,0,0,.88889],Du=[-.00499,.605,0,0,1.05556],lo=[0,.12,0,0,.45],pn=[0,.61111,0,0,.525],ko=[.08333,.69444,0,0,.525],ul=[-.08056,.53055,0,0,.525],us=[-.05556,.55556,0,0,.525],ea=[0,.43056,0,0,.525],Bl=[.22222,.43056,0,0,.525],Zl=[0,0,0,0,.525],Rc={"AMS-Regular":{32:ar,65:Yt,66:_r,67:Yt,68:Yt,69:_r,70:Lr,71:Sr,72:Sr,73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:Sr,76:_r,77:[0,.68889,0,0,.94445],78:Yt,79:Er,80:Lr,81:Er,82:Yt,83:Ar,84:_r,85:Yt,86:Yt,87:[0,.68889,0,0,1],88:Yt,89:Yt,90:_r,107:Ar,160:ar,165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:Ar,295:En,710:Rr,732:fn,770:Rr,771:fn,989:Ti,1008:si,8245:[0,.54986,0,0,.275],8463:En,8487:Yt,8498:Ar,8502:_r,8503:[0,.68889,0,0,.44445],8504:_r,8513:[0,.68889,0,0,.63889],8592:gn,8594:gn,8602:Rn,8603:Rn,8606:ji,8608:ji,8610:Or,8611:Or,8619:bi,8620:bi,8621:[-.13313,.37788,0,0,1.38889],8622:Rn,8624:ua,8625:ua,8630:gi,8631:gi,8634:ta,8635:ta,8638:Ji,8639:Ji,8642:Ji,8643:Ji,8644:aa,8646:aa,8647:aa,8648:Io,8649:aa,8650:Io,8651:ji,8652:ji,8653:Rn,8654:Rn,8655:Rn,8666:oa,8667:oa,8669:[-.13313,.37788,0,0,1],8672:pi,8674:pi,8705:[0,.825,0,0,.5],8708:Ar,8709:Ti,8717:[0,.43056,0,0,.42917],8722:gn,8724:[.08198,.69224,0,0,.77778],8726:Ti,8733:qe,8736:zi,8737:zi,8738:[.03517,.52239,0,0,.72222],8739:Fn,8740:[.25142,.74111,0,0,.27778],8741:Nn,8742:[.25142,.74111,0,0,.5],8756:be,8757:be,8764:Oe,8765:[-.13313,.37788,0,0,.77778],8769:Oe,8770:Gu,8774:or,8776:Nc,8778:Ti,8782:ke,8783:ke,8785:ta,8786:ta,8787:ta,8790:qe,8791:Nr,8796:[.08198,.91667,0,0,.77778],8806:Rt,8807:Rt,8808:kt,8809:kt,8812:[.25583,.75583,0,0,.5],8814:yr,8815:yr,8816:or,8817:or,8818:Nr,8819:Nr,8822:zr,8823:zr,8828:an,8829:an,8830:Nr,8831:Nr,8832:yr,8833:yr,8840:or,8841:or,8842:jr,8843:jr,8847:Qr,8848:Qr,8858:ta,8859:ta,8861:ta,8862:qr,8863:qr,8864:qr,8865:qr,8872:[0,.69224,0,0,.61111],8873:zi,8874:[0,.69224,0,0,.88889],8876:Lr,8877:Lr,8878:Yt,8879:Yt,8882:Qr,8883:Qr,8884:an,8885:an,8888:[0,.54986,0,0,1.11111],8890:xa,8891:yn,8892:yn,8901:[0,.54986,0,0,.27778],8903:Ti,8905:Ti,8906:Ti,8907:qe,8908:qe,8909:[-.03598,.46402,0,0,.77778],8910:on,8911:on,8912:Qr,8913:Qr,8914:Dn,8915:Dn,8916:be,8918:Qn,8919:Qn,8920:fi,8921:fi,8922:On,8923:On,8926:an,8927:an,8928:or,8929:or,8934:An,8935:An,8936:An,8937:An,8938:yr,8939:yr,8940:or,8941:or,8994:Dt,8995:Dt,9416:[.15559,.69224,0,0,.90222],9484:ua,9488:ua,9492:Kt,9496:Kt,9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:qr,9633:qr,9650:Gt,9651:Gt,9654:Qr,9660:Gt,9661:Gt,9664:Qr,9674:Zt,9733:[.19444,.69224,0,0,.94445],10003:Jt,10016:Jt,10731:Zt,10846:[.19444,.75583,0,0,.61111],10877:an,10878:an,10885:Rt,10886:Rt,10887:jr,10888:jr,10889:Dr,10890:Dr,10891:Fr,10892:Fr,10901:an,10902:an,10933:kt,10934:kt,10935:Dr,10936:Dr,10937:Dr,10938:Dr,10949:Rt,10950:Rt,10955:Xr,10956:Xr,57350:Fn,57351:Nn,57352:Ti,57353:si,57356:kt,57357:kt,57358:ti,57359:or,57360:or,57361:ti,57366:kt,57367:kt,57368:kt,57369:kt,57370:jr,57371:jr},"Caligraphic-Regular":{32:ar,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:ar},"Fraktur-Regular":{32:ar,33:[0,.69141,0,0,.29574],34:xi,38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:Bi,41:Bi,42:[0,.62119,0,0,.27764],43:Yn,44:jn,45:Yn,46:jn,47:[.24982,.74947,0,0,.50181],48:yi,49:yi,50:yi,51:vi,52:vi,53:vi,54:wi,55:vi,56:wi,57:vi,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:li,93:li,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:ar,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:ar,33:[0,.69444,0,0,.35],34:Ia,35:[.19444,.69444,0,0,.95833],36:Ps,37:[.05556,.75,0,0,.95833],38:Ha,39:Ai,40:$i,41:$i,42:[0,.75,0,0,.575],43:ca,44:[.19444,.15556,0,0,.31944],45:Pn,46:[0,.15556,0,0,.31944],47:ln,48:ei,49:ei,50:ei,51:ei,52:ei,53:ei,54:ei,55:ei,56:ei,57:ei,58:Bo,59:[.19444,.44444,0,0,.31944],60:Di,61:Qo,62:Di,63:[0,.69444,0,0,.54305],64:Ha,65:hn,66:[0,.68611,0,0,.81805],67:Mi,68:[0,.68611,0,0,.88194],69:Lo,70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:oi,73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:_n,77:[0,.68611,0,0,1.09166],78:oi,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:hn,89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:Xn,92:ln,93:Xn,94:Ua,95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:Kn,99:_i,100:Kn,101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:Kn,105:Ai,106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:Ai,109:[0,.44444,0,0,.95833],110:Wi,111:VA,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:Wi,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:_i,123:ln,124:Xn,125:ln,126:[.35,.34444,0,0,.575],160:ar,163:[0,.69444,0,0,.86853],168:Ua,172:[0,.44444,0,0,.76666],176:Wn,177:ca,184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:ca,216:[.04861,.73472,0,0,.89444],223:Ht,230:[0,.44444,0,0,.83055],247:ca,248:[.09722,.54167,0,0,.575],305:Bo,338:[0,.68611,0,0,1.16944],339:Ws,567:[.19444,.44444,0,0,.35139],710:Ua,711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:Ua,715:Ua,728:Ua,729:Ai,730:Wn,732:Ua,733:Ua,915:_n,916:ho,920:Zi,923:GA,926:su,928:oi,931:Mi,933:Zi,934:Mi,936:Zi,937:Mi,8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:Ai,8217:Ai,8220:Ia,8221:Ia,8224:Is,8225:Is,8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:yA,8465:za,8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:za,8501:nc,8592:da,8593:Fo,8594:da,8595:Fo,8596:da,8597:ln,8598:So,8599:So,8600:So,8601:So,8636:da,8637:da,8640:da,8641:da,8656:da,8657:Uo,8658:da,8659:Uo,8660:da,8661:[.25,.75,0,0,.70277],8704:Kn,8706:[0,.69444,.06389,0,.62847],8707:Kn,8709:Ps,8711:ho,8712:vs,8715:vs,8722:ca,8723:ca,8725:ln,8726:ln,8727:ic,8728:Ts,8729:Ts,8730:[.18,.82,0,0,.95833],8733:Ws,8734:[0,.44444,0,0,1.14999],8736:zi,8739:Xn,8741:ln,8743:Ro,8744:Ro,8745:Ro,8746:Ro,8747:[.19444,.69444,.12778,0,.56875],8764:Qo,8768:[.19444,.69444,0,0,.31944],8771:bs,8776:[.02444,.52444,0,0,.89444],8781:bs,8801:bs,8804:rl,8805:rl,8810:vl,8811:vl,8826:Di,8827:Di,8834:Di,8835:Di,8838:rl,8839:rl,8846:Ro,8849:rl,8850:rl,8851:Ro,8852:Ro,8853:ca,8854:ca,8855:ca,8856:ca,8857:ca,8866:nc,8867:nc,8868:Ha,8869:Ha,8900:Ts,8901:[-.02639,.47361,0,0,.31944],8902:ic,8968:Ql,8969:Ql,8970:Ql,8971:Ql,8994:Gs,8995:Gs,9651:Dc,9657:ic,9661:Dc,9667:ic,9711:So,9824:Kl,9825:Kl,9826:Kl,9827:Kl,9837:[0,.75,0,0,.44722],9838:Hl,9839:Hl,10216:$i,10217:$i,10815:oi,10927:rl,10928:rl,57376:kd},"Main-BoldItalic":{32:ar,33:[0,.69444,.11417,0,.38611],34:ws,35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:Da,40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:Xs,49:Xs,50:Xs,51:Xs,52:os,53:Xs,54:Xs,55:os,56:Xs,57:Xs,58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:Js,64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:ri,73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:ri,79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:ra,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:sa,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:sa,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:ar,168:[0,.69444,.11473,0,.59111],176:oo,184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:Xi,248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:Xi,567:[.19444,.44444,.04611,0,.385],710:ra,711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:Da,730:oo,732:Js,733:Js,915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:ri,931:[0,.68611,.11431,0,.82666],933:ys,934:[0,.68611,.05632,0,.82666],936:ys,937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:Da,8217:Da,8220:[0,.69444,.16772,0,.62055],8221:ws},"Main-Italic":{32:ar,33:ps,34:pA,35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:ps,40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:eo,49:eo,50:eo,51:eo,52:Ra,53:eo,54:eo,55:Ra,56:eo,57:eo,58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:hA,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:au,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:Xo,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:ar,168:[0,.66786,.10474,0,.51111],176:Mo,184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:Fs,248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:Fs,710:Xo,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:Mo,732:[0,.66786,.11585,0,.51111],733:hA,915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:au,923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:ss,931:[0,.68333,.12028,0,.71555],933:cc,934:[0,.68333,.05986,0,.71555],936:cc,937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:ps,8217:ps,8220:[0,.69444,.1685,0,.51444],8221:pA,8463:En},"Main-Regular":{32:ar,33:Al,34:Ys,35:de,36:il,37:xe,38:ms,39:Al,40:mA,41:mA,42:Ye,43:rs,44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:jl,48:nl,49:nl,50:nl,51:nl,52:nl,53:nl,54:nl,55:nl,56:nl,57:nl,58:mo,59:[.19444,.43056,0,0,.27778],60:Qn,61:Oe,62:Qn,63:Vt,64:ms,65:Yc,66:[0,.68333,0,0,.70834],67:Ac,68:[0,.68333,0,0,.76389],69:OA,70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:Yc,73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:Us,76:xs,77:[0,.68333,0,0,.91667],78:Yc,79:Us,80:OA,81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:Ac,85:Yc,86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:Yc,89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:to,92:jl,93:to,94:Ys,95:[.31,.12056,.02778,0,.5],97:cs,98:gA,99:Fu,100:gA,101:Fu,102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:gA,105:zo,106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:Al,109:[0,.43056,0,0,.83334],110:ba,111:cs,112:xa,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:ba,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:Fu,123:jl,124:to,125:jl,126:[.35,.31786,0,0,.5],160:ar,163:[0,.69444,0,0,.76909],167:ac,168:Oo,172:[0,.43056,0,0,.66667],176:$o,177:rs,182:qc,184:Af,198:[0,.68333,0,0,.90278],215:rs,216:[.04861,.73194,0,0,.77778],223:Ys,230:[0,.43056,0,0,.72222],247:rs,248:[.09722,.52778,0,0,.5],305:mo,338:[0,.68333,0,0,1.01389],339:sf,567:[.19444,.43056,0,0,.30556],710:Ys,711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:Ys,715:Ys,728:Ys,729:zo,730:$o,732:Oo,733:Ys,915:xs,916:Fd,920:Us,923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:Yc,931:Ac,933:Us,934:Ac,936:Us,937:Ac,8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:Al,8217:Al,8220:Ys,8221:Ys,8224:ac,8225:ac,8230:[0,.12,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:En,8465:Zc,8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:Zc,8501:Jo,8592:Rn,8593:qs,8594:Rn,8595:qs,8596:Rn,8597:jl,8598:vA,8599:vA,8600:vA,8601:vA,8614:[.011,.511,0,0,1],8617:wl,8618:wl,8636:Rn,8637:Rn,8640:Rn,8641:Rn,8652:[.011,.671,0,0,1],8656:Rn,8657:qc,8658:Rn,8659:qc,8660:Rn,8661:[.25,.75,0,0,.61111],8704:gA,8706:[0,.69444,.05556,.08334,.5309],8707:gA,8709:il,8711:Fd,8712:ou,8715:ou,8722:rs,8723:rs,8725:jl,8726:jl,8727:Po,8728:$A,8729:$A,8730:[.2,.8,0,0,.83334],8733:sf,8734:gi,8736:zi,8739:to,8741:jl,8743:Vc,8744:Vc,8745:Vc,8746:Vc,8747:[.19444,.69444,.11111,0,.41667],8764:Oe,8768:[.19444,.69444,0,0,.27778],8771:Gu,8773:[-.022,.589,0,0,1],8776:Nc,8781:Gu,8784:[-.133,.67,0,0,.778],8801:Gu,8804:jr,8805:jr,8810:Md,8811:Md,8826:Qn,8827:Qn,8834:Qn,8835:Qn,8838:jr,8839:jr,8846:Vc,8849:jr,8850:jr,8851:Vc,8852:Vc,8853:rs,8854:rs,8855:rs,8856:rs,8857:rs,8866:Jo,8867:Jo,8868:ms,8869:ms,8872:[.249,.75,0,0,.867],8900:$A,8901:[-.05555,.44445,0,0,.27778],8902:Po,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:Yo,8969:Yo,8970:Yo,8971:Yo,8994:yc,8995:yc,9136:zl,9137:zl,9651:Xu,9657:Po,9661:Xu,9667:Po,9711:vA,9824:bA,9825:bA,9826:bA,9827:bA,9837:[0,.75,0,0,.38889],9838:ZA,9839:ZA,10216:mA,10217:mA,10222:zl,10223:zl,10229:[.011,.511,0,0,1.609],10230:Ld,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:Ld,10815:Yc,10927:jr,10928:jr,57376:kd},"Math-BoldItalic":{32:ar,48:VA,49:VA,50:VA,51:WA,52:WA,53:WA,54:ei,55:WA,56:ei,57:WA,65:hn,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:p0,73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:Lo,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:yA,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:yh,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:ar,915:[0,.68611,.15972,0,.65694],916:ho,920:[0,.68611,.03194,0,.86722],923:GA,926:[0,.68611,.07458,0,.84125],928:p0,931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:su,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:yh,960:[0,.44444,.03704,0,.68241],961:lf,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:lf,1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:ar,48:cs,49:cs,50:cs,51:Dd,52:Dd,53:Dd,54:nl,55:Dd,56:nl,57:Dd,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:wh,73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:Kf,80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:Mu,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:ar,915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:Kf,923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:wh,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:Mu,960:[0,.43056,.03588,0,.57003],961:cf,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:cf,1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:ar,33:[0,.69444,0,0,.36667],34:jf,35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:wc,40: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:m0,64:Oc,65:Oc,66:Oc,67:Lu,68:Pc,69:[0,.69444,0,0,.64167],70:Jo,71:Oc,72:Pc,73:[0,.69444,0,0,.33056],74:m0,75:xh,76:Zo,77:[0,.69444,0,0,.97778],78:Pc,79:Pc,80:Lu,81:[.10556,.69444,0,0,.79445],82:Lu,83:Jo,84:Oc,85:xh,86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:Oc,89:[0,.69444,.0275,0,.73334],90:Ju,91:ku,93:ku,94:Cl,95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:Nd,99:[0,.45833,0,0,.48889],100:Nd,101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:Nd,105:$p,106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:$p,109:[0,.45833,0,0,.86667],110:eA,111:[0,.45833,0,0,.55],112:lu,113:lu,114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:eA,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:ar,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:wc,730:Oc,732:Cl,733:Cl,915:Zo,916:[0,.69444,0,0,.91667],920:Hf,923:Ju,926:Oc,928:Pc,931:Pc,933:Hf,934:Pc,936:Hf,937:Pc,8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:wc,8217:wc,8220:jf,8221:jf},"SansSerif-Italic":{32:ar,33:[0,.69444,.05733,0,.31945],34:b0,35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39: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:At,45:[0,.44444,.01946,0,.33333],46:xt,47:[.25,.75,.13164,0,.5],48:Tc,49:Tc,50:Tc,51:Tc,52:Tc,53:Tc,54:Tc,55:Tc,56:Tc,57:Tc,58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:zt,66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:Yu,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:Yu,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:qu,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:ar,168:[0,.67937,.06385,0,.5],176:g0,184:Af,305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:qu,711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:v0,715:Ys,728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:g0,732:[0,.67659,.08826,0,.5],733:v0,915:[0,.69444,.13372,0,.54167],916:Mn,920:[0,.69444,.07555,0,.77778],923:Jo,926:[0,.69444,.12816,0,.66667],928:Yu,931:[0,.69444,.11983,0,.72222],933:$l,934:[0,.69444,.04603,0,.72222],936:$l,937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:ed,8217:ed,8220:[0,.69444,.14205,0,.5],8221:b0},"SansSerif-Regular":{32:ar,33:[0,.69444,0,0,.31945],34:Ys,35:de,36:il,37:xe,38:[0,.69444,0,0,.75834],39:Al,40:mA,41:mA,42:Ye,43:rs,44:At,45:[0,.44444,0,0,.33333],46:xt,47:jl,48:bt,49:bt,50:bt,51:bt,52:bt,53:bt,54:bt,55:bt,56:bt,57:bt,58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:Vt,64:zt,65:zt,66:zt,67:Kn,68:[0,.69444,0,0,.72223],69:Ht,70:[0,.69444,0,0,.56945],71:zt,72:Ir,73:Al,74:Vt,75:[0,.69444,0,0,.69445],76:ur,77:[0,.69444,0,0,.875],78:Ir,79:[0,.69444,0,0,.73611],80:Kn,81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:gA,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:Jo,91:hr,93:hr,94:Ys,95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:en,99:$r,100:en,101:$r,102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:en,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:Jr,113:Jr,114:[0,.44444,.01389,0,.34167],115:Pn,116:[0,.57143,0,0,.36111],117:xn,118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:ar,168:[0,.67937,0,0,.5],176:zt,184:Af,305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:Ys,711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:Ys,715:Ys,728:Ys,729:[0,.67937,0,0,.27778],730:zt,732:[0,.67659,0,0,.5],733:Ys,915:ur,916:Mn,920:ms,923:Jo,926:zt,928:Ir,931:Zc,933:ms,934:Zc,936:ms,937:Zc,8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:Al,8217:Al,8220:Ys,8221:Ys},"Script-Regular":{32:ar,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:ar},"Size1-Regular":{32:ar,40:Cn,41:Cn,47:$n,91:Ni,92:$n,93:Ni,123:Ui,125:Ui,160:ar,710:ui,732:ui,770:ui,771:ui,8214:[-99e-5,.601,0,0,.77778],8593:qi,8595:qi,8657:ya,8659:ya,8719:Jn,8720:Jn,8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:ni,8748:mi,8749:mi,8750:ni,8896:Tn,8897:Tn,8898:Tn,8899:Tn,8968:ii,8969:ii,8970:ii,8971:ii,9168:Wc,10216:ii,10217:ii,10752:Qi,10753:Qi,10754:Qi,10756:Tn,10758:Tn},"Size2-Regular":{32:ar,40:Na,41:Na,47:ha,91:Ki,92:ha,93:Ki,123:Ea,125:Ea,160:ar,710:Qa,732:Qa,770:Qa,771:Qa,8719:qo,8720:qo,8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:gs,8748:so,8749:so,8750:gs,8896:As,8897:As,8898:As,8899:As,8968:pa,8969:pa,8970:pa,8971:pa,10216:sl,10217:sl,10752:po,10753:po,10754:po,10756:As,10758:As},"Size3-Regular":{32:ar,40:es,41:es,47:ns,91:xc,92:ns,93:xc,123:ai,125:ai,160:ar,710:Hi,732:Hi,770:Hi,771:Hi,8730:[.95003,1.45,0,0,1],8968:Ri,8969:Ri,8970:Ri,8971:Ri,10216:ai,10217:ai},"Size4-Regular":{32:ar,40:Li,41:Li,47:go,91:ki,92:go,93:ki,123:la,125:la,160:ar,710:ja,732:ja,770:ja,771:ja,8730:[1.25003,1.75,0,0,1],8968:$a,8969:$a,8970:$a,8971:$a,9115:Fl,9116:al,9117:Fl,9118:Fl,9119:al,9120:Fl,9121:Rs,9122:Wc,9123:Rs,9124:Rs,9125:Wc,9126:Rs,9127:Uc,9128:Hn,9129:uc,9130:[0,.3,0,0,.88889],9131:Uc,9132:Hn,9133:uc,9143:[.88502,.915,0,0,1.05556],10216:la,10217:la,57344:Du,57345:Du,57680:lo,57681:lo,57682:lo,57683:lo},"Typewriter-Regular":{32:Zl,33:pn,34:pn,35:pn,36:ko,37:ko,38:pn,39:pn,40:ko,41:ko,42:[0,.52083,0,0,.525],43:ul,44:[.13889,.125,0,0,.525],45:ul,46:[0,.125,0,0,.525],47:ko,48:pn,49:pn,50:pn,51:pn,52:pn,53:pn,54:pn,55:pn,56:pn,57:pn,58:ea,59:[.13889,.43056,0,0,.525],60:us,61:[-.19549,.41562,0,0,.525],62:us,63:pn,64:pn,65:pn,66:pn,67:pn,68:pn,69:pn,70:pn,71:pn,72:pn,73:pn,74:pn,75:pn,76:pn,77:pn,78:pn,79:pn,80:pn,81:[.13889,.61111,0,0,.525],82:pn,83:pn,84:pn,85:pn,86:pn,87:pn,88:pn,89:pn,90:pn,91:ko,92:ko,93:ko,94:pn,95:[.09514,0,0,0,.525],96:pn,97:ea,98:pn,99:ea,100:pn,101:ea,102:pn,103:Bl,104:pn,105:pn,106:[.22222,.61111,0,0,.525],107:pn,108:pn,109:ea,110:ea,111:ea,112:Bl,113:Bl,114:ea,115:ea,116:[0,.55358,0,0,.525],117:ea,118:ea,119:ea,120:ea,121:Bl,122:ea,123:ko,124:ko,125:ko,126:pn,127:pn,160:Zl,176:pn,184:[.19445,0,0,0,.525],305:ea,567:Bl,711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:pn,715:pn,728:pn,730:pn,770:pn,771:pn,776:pn,915:pn,916:pn,920:pn,923:pn,926:pn,928:pn,931:pn,933:pn,934:pn,936:pn,937:pn,8216:pn,8217:pn,8242:pn,9251:[.11111,.21944,0,0,.525]}},Cc=/[\u3040-\u309F]|[\u30A0-\u30FF]|[\u4E00-\u9FAF]|[\uAC00-\uD7AF]/,Sl=10,dl=.25,cu=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:[dl,dl,dl],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],ol=5,Ms={"\xA0":" ","\u200B":" ",\u00C5:"A",\u00C7:"C",\u00D0:"D",\u00DE:"o",\u00E5:"a",\u00E7:"c",\u00F0:"d",\u00FE:"o",\u0410:"A",\u0411:"B",\u0412:"B",\u0413:"F",\u0414:"A",\u0415:"E",\u0416:"K",\u0417:"3",\u0418:"N",\u0419:"N",\u041A:"K",\u041B:"N",\u041C:"M",\u041D:"H",\u041E:"O",\u041F:"N",\u0420:"P",\u0421:"C",\u0422:"T",\u0423:"y",\u0424:"O",\u0425:"X",\u0426:"U",\u0427:"h",\u0428:"W",\u0429:"W",\u042A:"B",\u042B:"X",\u042C:"B",\u042D:"3",\u042E:"X",\u042F:"R",\u0430:"a",\u0431:"b",\u0432:"a",\u0433:"r",\u0434:"y",\u0435:"e",\u0436:"m",\u0437:"e",\u0438:"n",\u0439:"n",\u043A:"n",\u043B:"n",\u043C:"m",\u043D:"n",\u043E:"o",\u043F:"n",\u0440:"p",\u0441:"c",\u0442:"o",\u0443:"y",\u0444:"b",\u0445:"x",\u0446:"n",\u0447:"n",\u0448:"w",\u0449:"w",\u044A:"a",\u044B:"m",\u044C:"a",\u044D:"e",\u044E:"m",\u044F:"r"};function Bc(e,t){e===void 0&&(e=77);const r=Rc[t][e];if(r)return{defaultMetrics:!1,depth:r[0],height:r[1],italic:r[2],skew:r[3],width:r[4]};if(e===11034)return{defaultMetrics:!0,depth:.2,height:.8,italic:0,skew:0,width:.8};const i=String.fromCodePoint(e);if(i in Ms)e=Ms[i].codePointAt(0);else if(Cc.test(i))return e=77,{defaultMetrics:!0,depth:.2,height:.9,italic:0,skew:0,width:1};return{defaultMetrics:!0,depth:.2,height:.7,italic:0,skew:0,width:.8}}var wA={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],longrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],longleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],longleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],longrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],longleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],longleftrightarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],longRightleftharpoons:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716],longLeftrightharpoons:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},PA={widehat1:[1062,239,.24],widehat2:[2364,300,.3],widehat3:[2364,360,.36],widehat4:[2364,420,.42],widecheck1:[1062,239,.24],widecheck2:[2364,300,.3],widecheck3:[2364,360,.36],widecheck4:[2364,420,.42],widetilde1:[600,260,.26],widetilde2:[1033,286,.286],widetilde3:[2339,306,.306],widetilde4:[2340,312,.34],overarc:[1061,159,.3],underarc:[1061,159,.3]},xA={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 uf(e){if(PA[e]){const[X,ce,Te]=PA[e],nt=`<span class="stretchy" style="height:${Te}em"><svg width="100%" height="${Te}em" viewBox="0 0 ${X} ${ce}" preserveAspectRatio="none" ><path fill="currentcolor" d="${xA[e]}"></path></svg></span>`;return`<span style="display:inline-block;height:${Math.floor(100*Te/2)/100}em;min-width:0">${nt}</span>`}const[t,r,i,s]=wA[e];let c,u;const L=i/1e3;t.length===3?(c=["slice-1-of-3","slice-2-of-3","slice-3-of-3"],u=["xMinYMin","xMidYMin","xMaxYMin"]):t.length===2?(c=["slice-1-of-2","slice-2-of-2"],u=["xMinYMin","xMaxYMin"]):(c=["slice-1-of-1"],u=[s]);const z=t.map((X,ce)=>`<span class="${c[ce]}" style=height:${L}em><svg width=400em height=${L}em viewBox="0 0 400000 ${i}" preserveAspectRatio="${u[ce]} slice"><path fill="currentcolor" d="${xA[X]}"></path></svg></span>`).join("");return`<span style="display:inline-block;height:${L}em;min-width:${r}em;">${z}</span>`}function zf(e){return wA[e]?wA[e][2]/1e3:PA[e][2]}function no(e){const t=[];for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);if(i===13&&e.charCodeAt(r+1)===10&&(i=10,r++),(i===13||i===12)&&(i=10),i===0&&(i=65533),i>=55296&&i<=56319){const s=e.charCodeAt(r+1);if(s>=56320&&s<=57343){const c=i-55296,u=s-56320;i=bh(2,16)+c*bh(2,10)+u,r++}}t.push(i)}return t}var Vo=8205,Vl=[[Vo,1],[65038,2],[127995,5],[129456,4],[917536,96]],ds,Ll=[127462,127487];function Wl(e){var t;if(ds===void 0){ds={};for(const r of Vl)for(let i=r[0];i<=r[0]+r[1]-1;i++)ds[i]=!0}return(t=ds[e])!=null?t:!1}function el(e){return e>=Ll[0]&&e<=Ll[1]}function CA(e){if(/^[\u0020-\u00FF]*$/.test(e))return e;const t=[],r=no(e);let i=0;for(;i<r.length;){const s=r[i++],c=r[i];if(c===Vo){const u=i-1;for(i+=2;r[i]===Vo;)i+=2;t.push(String.fromCodePoint(...r.slice(u,i-u+1)))}else if(Wl(c)){const u=i-1;for(;Wl(r[i]);)i+=r[i]===Vo?2:1;t.push(String.fromCodePoint(...r.slice(u,2*i-u-1)))}else el(s)?(i+=1,t.push(String.fromCodePoint(...r.slice(i-2,2)))):t.push(String.fromCodePoint(s))}return t}var df=class{constructor(e){this.obeyspaces=!1,this.pos=0,this.s=CA(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 ff(e,t){var r,i,s,c;const u=[];let L=e.next();if(L&&L!=="\\relax"){if(L==="\\noexpand")L=e.next(),L&&u.push(L);else if(L==="\\obeyspaces")e.obeyspaces=!0;else if(L==="\\bgroup")u.push("<{>");else if(L==="\\egroup")u.push("<}>");else if(L==="\\string"){if(L=e.next(),L)if(L.startsWith("\\"))for(const z of L)u.push(z==="\\"?"\\backslash":z);else L==="<{>"?u.push("\\{"):L==="<space>"?u.push("~"):L==="<}>"&&u.push("\\}")}else if(L==="\\csname"){for(;e.peek()==="<space>";)e.next();let z="",X=!1,ce=[];do{if(ce.length===0)if(/^#[\d?@]$/.test(e.peek())){const Te=e.get().slice(1);ce=td((i=(r=t==null?void 0:t(Te))!=null?r:t==null?void 0:t("?"))!=null?i:"\\placeholder{}",t),L=ce[0]}else L=e.next(),ce=L?[L]:[];X=ce.length===0,!X&&L==="\\endcsname"&&(X=!0,ce.shift()),X||(X=L==="<$>"||L==="<$$>"||L==="<{>"||L==="<}>"||typeof L=="string"&&L.length>1&&L.startsWith("\\")),X||(z+=ce.shift())}while(!X);z&&u.push("\\"+z),u.push(...ce)}else if(L!=="\\endcsname")if(L.length>1&&L.startsWith("#")){const z=L.slice(1);u.push(...td((c=(s=t==null?void 0:t(z))!=null?s:t==null?void 0:t("?"))!=null?c:"\\placeholder{}",t))}else u.push(L)}return u}function td(e,t=null){const r=[];let i="";for(const u of e.toString().split(/\r?\n/)){i&&r.push(i),i=" ";const L=u.match(/((?:\\%)|[^%])*/);L!==null&&r.push(L[0])}const s=new df(We(r.join(""))),c=[];do c.push(...ff(s,t));while(!s.end());return c}function co(e){let t="";const r=[];for(const i of e)i&&(t&&/^[a-zA-Z\*]/.test(i)&&r.push(t),r.push(i),/^\\[a-zA-Z]+\*?[\"\'][^\ ]+$/.test(i)&&r.push(" "),t=/\\[a-zA-Z]+\*?$/.test(i)?" ":"");return r.join("")}function Cs(e,...t){return console.assert(e.startsWith("\\")),t.length===0?e:co([e,...t.map(r=>`{${r}}`)])}function BA(e){return co(e.map(t=>{var r;return(r={"<space>":" ","<$$>":"$$","<$>":"$","<{>":"{","<}>":"}"}[t])!=null?r:t}))}var SA=class dg{constructor(t){dg._registry[t]=this}static createAtom(t,r,i){return dg._registry[t].createAtom(r,ct(r,t),i)}static serialize(t,r){var i;if(!t||t.length===0)return"";if((i=r.skipStyles)!=null&&i){const s=[];for(const c of $f(t)){const u=dg._registry[c[0].mode];s.push(...u.serialize(c,r))}return co(s)}return co(rd(t,r))}static getFont(t,r,i){return dg._registry[t].getFont(r,i)}};SA._registry={};var Gl=SA;function $f(e){const t=[];let r=[],i="NONE";for(const s of e)s.type!=="first"&&(s.mode!==i?(r.length>0&&t.push(r),r=[s],i=s.mode):r.push(s));return r.length>0&&t.push(r),t}function TA(e,t){const r=[];let i=[],s;for(const c of e)if(c.type!=="first"&&c.style){let u;t==="variant"?(u=c.style.variant,c.style.variantStyle&&c.style.variantStyle!=="up"&&(u+="-"+c.style.variantStyle)):u=c.style[t],u===s?i.push(c):(i.length>0&&r.push(i),i=[c],s=u)}return i.length>0&&r.push(i),r}function Zf(e,t){var r;const{parent:i}=e[0],s=i==null?void 0:i.computedStyle.color,c=[];for(const u of $f(e)){const L=t.defaultMode;for(const z of TA(u,"color")){const X=z[0].computedStyle,ce=Gl._registry[z[0].mode].serialize(z,I(m({},t),{defaultMode:L==="text"?"text":"math"}));!t.skipStyles&&X.color&&X.color!=="none"&&(!i||s!==X.color)?c.push(Cs("\\textcolor",(r=X.verbatimColor)!=null?r:X.color,co(ce))):c.push(co(ce))}}return c}function Vf(e,t){const{parent:r}=e[0],i=r==null?void 0:r.computedStyle.backgroundColor;return TA(e,"backgroundColor").map(s=>{var c;if(s.length>0||s[0].type!=="box"){const u=s[0].computedStyle;if(u.backgroundColor&&u.backgroundColor!=="none"&&(!r||i!==u.backgroundColor))return Cs("\\colorbox",(c=u.verbatimBackgroundColor)!=null?c:u.backgroundColor,co(Zf(s,I(m({},t),{defaultMode:"text"}))))}return co(Zf(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 TA(e,"fontSize")){const u=c[0].computedStyle.fontSize,L=Vf(c,t);L&&(u&&u!=="auto"&&(!r||i!==u)?s.push(["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][u],...L):s.push(...L))}return s}function Od(e){return e?{mord:"ord",mbin:"bin",mop:"op",mrel:"rel",mopen:"open",mclose:"close",mpunct:"punct",minner:"inner",spacing:"ignore",latex:"latex",composition:"inner",error:"inner",placeholder:"ord",supsub:"ignore"}[e]:void 0}function Pd(e){if(e.length===0)return"ord";const t=Od(e[0].type),r=Od(e[e.length-1].type);return t&&t===r?t:"ord"}function 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 Hr=class N1{constructor(t,r){var i,s,c,u,L;if(typeof t=="number"?this.value=String.fromCodePoint(t):typeof t=="string"?this.value=t:_(t)?this.children=t.filter(X=>X!==null):t&&t instanceof N1&&(this.children=[t]),this.children)for(const X of this.children)X.parent=this;this.type=(i=r==null?void 0:r.type)!=null?i:"ignore",this.isSelected=(r==null?void 0:r.isSelected)===!0,r!=null&&r.caret&&(this.caret=r.caret),this.classes=(s=r==null?void 0:r.classes)!=null?s:"",this.isTight=(c=r==null?void 0:r.isTight)!=null?c:!1,r!=null&&r.attributes&&(this.attributes=r.attributes);let z=r==null?void 0:r.fontFamily;r!=null&&r.style&&this.value&&(z=(L=Gl.getFont((u=r.mode)!=null?u:"math",this,I(m({variant:"normal"},r.style),{letterShapeStyle:r.letterShapeStyle})))!=null?L:void 0),z||(z="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),Ch(this,z)}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=me(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 vt of this.children)c+=vt.toMarkup();let u="";if(this.svgBody)u=uf(this.svgBody);else if(this.svgOverlay){u='<span style="',u+="display: inline-block;",u+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`,u+=`vertical-align:${Math.floor(100*this.depth)/100}em;`,u+='">',u+=c,u+="</span>",u+='<svg style="position:absolute;overflow:visible;',u+=`height:${Math.floor(100*(this.height+this.depth))/100}em;`;const vt=(r=this.cssProperties)==null?void 0:r.padding;vt?(u+=`top:${vt};`,u+=`left:${vt};`,u+=`width:calc(100% - 2 * ${vt} );`):u+="top:0;left:0;width:100%;",u+="z-index:2;",u+='"',this.svgStyle&&(u+=this.svgStyle),u+=` viewBox="0 0 ${Math.floor(100*this.width)/100} ${Math.floor(100*(this.height+this.depth))/100}"`,u+=`>${this.svgOverlay}</svg>`}let L="";const z=this.classes.split(" ");z.push((i={latex:"ML__raw-latex",placeholder:"ML__placeholder",error:"ML__error"}[this.type])!=null?i:""),this.caret==="latex"&&z.push("ML__latex-caret"),this.isSelected&&z.push("ML__selected");const X=z.length===1?z[0]:z.filter((vt,St,xr)=>vt.length>0&&xr.indexOf(vt)===St).join(" ");if(X.length>0&&(L+=` class="${X}"`),this.id&&(L+=` data-atom-id=${this.id}`),this.cssId&&(L+=` id="${this.cssId.replace(/ /g,"-")}" `),this.attributes&&(L+=" "+Object.keys(this.attributes).map(vt=>`${vt}="${this.attributes[vt]}"`).join(" ")),this.htmlData){const vt=this.htmlData.split(",");for(const St of vt){const xr=St.match(/([^=]+)=(.+$)/);if(xr){const Sn=xr[1].trim().replace(/ /g,"-");Sn&&(L+=` data-${Sn}="${xr[2]}" `)}else{const Sn=St.trim().replace(/ /g,"-");Sn&&(L+=` data-${Sn} `)}}}const ce=(s=this.cssProperties)!=null?s:{};this.hasExplicitWidth&&ce.width===void 0&&(ce.width=`${Math.ceil(this._width*100)/100}em`);const Te=Object.keys(ce).map(vt=>`${vt}:${ce[vt]}`);if(this.scale!==void 0&&this.scale!==1&&(c.length>0||u.length>0)&&Te.push(`font-size: ${Math.ceil(this.scale*1e4)/100}%`),this.htmlStyle){const vt=this.htmlStyle.split(";");let St="";for(const xr of vt){const Sn=xr.match(/([^=]+):(.+$)/);if(Sn){const vr=Sn[1].trim().replace(/ /g,"-");vr&&(St+=`${vr}:${Sn[2]};`)}}St&&(L+=` style="${St}"`)}Te.length>0&&(L+=` style="${Te.join(";")}"`);let nt="";return L.length>0||u.length>0?nt=`<span${L}>${c}${u}</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 z of["border","border-left","border-right","border-right-width","left","margin","margin-left","margin-right","padding","position","width"])if(t.cssProperties&&z in t.cssProperties||this.cssProperties&&z 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 z of Object.keys(this.cssProperties))if(this.cssProperties[z]!==t.cssProperties[z])return!1}const u=this.classes.trim().replace(/\s+/g," ").split(" "),L=t.classes.trim().replace(/\s+/g," ").split(" ");if(u.length!==L.length)return!1;u.sort(),L.sort();for(const[z,X]of u.entries())if(X==="vertical-separator"||X!==L[z])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 Td(e){if(!e||e.length===0)return[];e[0].children=Td(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=Td(e[r].children),t.push(e[r]));return t}function hf(e){return e.children&&(e.children=Td(e.children)),e}function Wf(e,t){if(!e)return new Hr(null,t);const r=new Hr(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 Hr(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 Hr(i,I(m({},t),{type:"lift"}))}function pf(e){const t=zf(e)/2,r=new Hr(null,{maxFontSize:0});return r.height=t+.166,r.depth=t-.166,r.svgBody=e,r}function Ch(e,t){var r;if(e.type==="latex"){e.height=.9,e.depth=.2,e._width=1;return}if(e.value){e.height=-1/0,e.depth=-1/0,e._width=0,e.skew=-1/0,e.italic=-1/0;for(let i=0;i<e.value.length;i++){const s=Bc(e.value.codePointAt(i),t);e.height=Math.max(e.height,s.height),e.depth=Math.max(e.depth,s.depth),e._width+=s.width,e.skew=s.skew,e.italic=s.italic}return}if(e.children&&e.children.length>0){let i=-1/0,s=-1/0,c=0;for(const u of e.children)u.height>i&&(i=u.height),u.depth>s&&(s=u.depth),c=Math.max(c,(r=u.maxFontSize)!=null?r:0);e.height=i,e.depth=s,e._width=e.children.reduce((u,L)=>u+L.width,0),e.maxFontSize=c}}function Bh(e){if("individualShift"in e){const t=e.individualShift;let r=t[0];const i=[r],s=-r.shift-r.box.depth;let c=s;for(let u=1;u<t.length;u++){const L=t[u],z=-L.shift-c-L.box.depth,X=z-(r.box.height+r.box.depth);c=c+z,i.push(X),i.push(L),r=L}return[i,s]}if("top"in e){let t=e.top;for(const r of e.children)t-=typeof r=="number"?r:r.box.height+r.box.depth;return[e.children,t]}else{if("bottom"in e)return[e.children,-e.bottom];if("firstBaseline"in e){const t=e.firstBaseline[0];if(typeof t=="number")throw new Error("First child must be an element.");return[e.firstBaseline,-t.box.depth]}else if("shift"in e){const t=e.children[0];if(typeof t=="number")throw new Error("First child must be an element.");return[e.children,-t.box.depth-e.shift]}}return[null,0]}function Gf(e){var t;const[r,i]=Bh(e);if(!r)return[[],0,0];const s=new Hr(null,{classes:"pstrut"});let c=0;for(const St of r)if(typeof St!="number"){const xr=St.box;c=Math.max(c,xr.maxFontSize,xr.height)}c+=2,s.height=c,s.setStyle("height",c,"em");const u=[];let L=i,z=i,X=i,ce=0;for(const St of r){if(typeof St=="number")X+=St;else{const xr=St.box,Sn=(t=St.classes)!=null?t:[],vr=new Hr([s,xr],{classes:Sn.join(" "),style:St.style});xr.setStyle("height",xr.height+xr.depth,"em"),xr.setStyle("display","inline-block"),vr.setStyle("top",-c-X-xr.depth,"em"),St.marginLeft&&vr.setStyle("margin-left",St.marginLeft,"em"),St.marginRight&&vr.setStyle("margin-right",St.marginRight,"em"),u.push(vr),X+=xr.height+xr.depth,ce=Math.max(ce,vr.width)}L=Math.min(L,X),z=Math.max(z,X)}u.forEach(St=>{St.softWidth=ce});const Te=new Hr(u,{classes:"vlist"});if(Te.softWidth=ce,Te.height=z,Te.setStyle("height",z,"em"),L>=0)return[[new Hr(Te,{classes:"vlist-r"})],z,-L];const nt=new Hr(new Hr(null),{classes:"vlist"});nt.height=-L,nt.setStyle("height",-L,"em");const vt=new Hr(8203,{classes:"vlist-s",maxFontSize:0});return vt.softWidth=0,vt.height=0,vt.depth=0,[[new Hr([Te,vt],{classes:"vlist-r"}),new Hr(nt,{classes:"vlist-r"})],z,-L]}var bl=class extends Hr{constructor(e,t){var r;const[i,s,c]=Gf(e);super(i.length===1?i[0]:i,{type:t==null?void 0:t.type,classes:((r=t==null?void 0:t.classes)!=null?r:"")+" vlist-t"+(i.length===2?" vlist-t2":"")}),this.height=s,this.depth=c,this.softWidth=i.reduce((u,L)=>Math.max(u,L.width),0)}};function Nu(e,t){var r,i,s,c,u;const L=e.metrics,z=new Hr(t.base),X=(r=t.baseShift)!=null?r:0,ce=(i=t.slant)!=null?i:0;let Te=0,nt=0;t.above&&(Te=(s=t.aboveShift)!=null?s:Math.max(L.bigOpSpacing1,L.bigOpSpacing3-t.above.depth)),t.below&&(nt=(c=t.belowShift)!=null?c:Math.max(L.bigOpSpacing2,L.bigOpSpacing4-t.below.height));let vt=null;if(t.below&&t.above){const St=L.bigOpSpacing5+t.below.height+t.below.depth+nt+z.depth+X;vt=new bl({bottom:St,children:[L.bigOpSpacing5,{box:t.below,marginLeft:-ce,classes:["ML__center"]},nt,{box:z,classes:["ML__center"]},Te,{box:t.above,marginLeft:ce,classes:["ML__center"]},L.bigOpSpacing5]}).wrap(e)}else if(t.below&&!t.above)vt=new bl({top:z.height-X,children:[L.bigOpSpacing5,{box:t.below,marginLeft:-ce,classes:["ML__center"]},nt,{box:z,classes:["ML__center"]}]}).wrap(e);else if(!t.below&&t.above){const St=z.depth+X;vt=new bl({bottom:St,children:[{box:z,classes:["ML__center"]},Te,{box:t.above,marginLeft:ce,classes:["ML__center"]},L.bigOpSpacing5]}).wrap(e)}else{const St=z.depth+X;vt=new bl({bottom:St,children:[{box:z},L.bigOpSpacing5]}).wrap(e)}return new Hr(vt,{type:(u=t.type)!=null?u:"op"})}var mf=7,id=6,gf=5,UA=4,Au=3,fs=2,Qc=1,Xl=0,Ou=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)=>I(m({},s),{[c]:Qs[c][i]}),{})}getFontSize(e){return Math.max(1,e+this.sizeDelta)}get sup(){return vo[[Xl,Qc,Xl,Qc,fs,Au,fs,Au][this.id]]}get sub(){return vo[[Xl,Xl,Xl,Xl,fs,fs,fs,fs][this.id]]}get fracNum(){return vo[[Xl,Qc,Xl,Qc,fs,Au,UA,gf][this.id]]}get fracDen(){return vo[[Xl,Xl,Xl,Xl,fs,fs,UA,UA][this.id]]}get cramp(){return vo[[Xl,Xl,fs,fs,UA,UA,id,id][this.id]]}get isTight(){return this.sizeDelta<0}},Ao={7:new Ou(mf,0,!1),6:new Ou(id,0,!0),5:new Ou(gf,0,!1),4:new Ou(UA,0,!0),3:new Ou(Au,-3,!1),2:new Ou(fs,-3,!0),1:new Ou(Qc,-4,!1),0:new Ou(Xl,-4,!0)},vo=I(m({},Ao),{displaystyle:Ao[mf],textstyle:Ao[gf],scriptstyle:Ao[Au],scriptscriptstyle:Ao[Qc]});function tA(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=bh(10,t);return Math.round(e.dimension/Sl*i*s)/s}return e.dimension*i}function uu(e,t){if(e===null)return 0;const r=tA(e)/Sl;if(Number.isFinite(t)){const i=bh(10,t);return Math.round(r*i)/i}return r}function XA(e){var t;return`${e.dimension}${(t=e.unit)!=null?t:"pt"}`}function y0(e){let t=XA(e.glue);return e.grow&&e.grow.dimension!==0&&(t+=` plus ${XA(e.grow)}`),e.shrink&&e.shrink.dimension!==0&&(t+=` minus ${XA(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=y0(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 EA(e,t){return e==null?null:"number"in e?I(m({},e),{number:e.number*t}):"register"in e?"factor"in e&&e.factor?I(m({},e),{factor:e.factor*t}):I(m({},e),{factor:t}):"dimension"in e?I(m({},e),{dimension:e.dimension*t}):"glue"in e?e.shrink&&e.grow?{glue:EA(e.glue,t),shrink:EA(e.shrink,t),grow:EA(e.grow,t)}:e.shrink?{glue:EA(e.glue,t),shrink:EA(e.shrink,t)}:e.grow?{glue:EA(e.glue,t),grow:EA(e.grow,t)}:{glue:EA(e.glue,t)}:null}var Sh={"p@":{dimension:1},"z@":{dimension:0},maxdimen:{dimension:16383.99999},hfuzz:{dimension:.1},vfuzz:{dimension:.1},overfullrule:{dimension:5},hsize:{dimension:6.5,unit:"in"},vsize:{dimension:8.9,unit:"in"},parindent:{dimension:20},maxdepth:{dimension:4},splitmaxdepth:{register:"maxdimen"},boxmaxdepth:{register:"maxdimen"},delimitershortfall:{dimension:5},nulldelimiterspace:{dimension:1.2,unit:"pt"},scriptspace:{dimension:.5},topskip:{dimension:10},splittopskip:{dimension:10},normalbaselineskip:{dimension:12},normallineskip:{dimension:1},normallineskiplimit:{dimension:0},jot:{dimension:3},doublerulesep:{dimension:2},arrayrulewidth:{dimension:.4},arraycolsep:{dimension:5},fboxsep:{dimension:3},fboxrule:{dimension:.4},"z@skip":{glue:{dimension:0},shrink:{dimension:0},grow:{dimension:0}},hideskip:{glue:{dimension:-1e3},grow:{dimension:1,unit:"fill"}},"@flushglue":{glue:{dimension:0},grow:{dimension:1,unit:"fill"}},parskip:{glue:{dimension:0},grow:{dimension:1}},abovedisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},abovedisplayshortskip:{glue:{dimension:0},grow:{dimension:3}},belowdisplayskip:{glue:{dimension:12},grow:{dimension:3},shrink:{dimension:9}},belowdisplayshortskip:{glue:{dimension:7},grow:{dimension:3},shrink:{dimension:4}},parfillskip:{glue:{dimension:0},grow:{dimension:1,unit:"fil"}},thinmuskip:{glue:{dimension:3,unit:"mu"}},medmuskip:{glue:{dimension:4,unit:"mu"},grow:{dimension:2,unit:"mu"},shrink:{dimension:4,unit:"mu"}},thickmuskip:{glue:{dimension:5,unit:"mu"},grow:{dimension:5,unit:"mu"}},smallskipamount:{glue:{dimension:3},grow:{dimension:1},shrink:{dimension:1}},medskipamount:{glue:{dimension:6},grow:{dimension:2},shrink:{dimension:3}},bigskipamount:{glue:{dimension:12},grow:{dimension:2},shrink:{dimension:4}},pretolerance:100,tolerance:200,hbadness:1e3,vbadness:1e3,linepenalty:10,hyphenpenalty:50,exhyphenpenalty:50,binoppenalty:700,relpenalty:500,clubpenalty:150,widowpenalty:150,displaywidowpenalty:50,brokenpenalty:100,predisplaypenalty:1e4,doublehyphendemerits:1e4,finalhyphendemerits:5e3,adjdemerits:1e4,tracinglostchars:1,uchyph:1,delimiterfactor:901,defaulthyphenchar:"\\-",defaultskewchar:-1,newlinechar:-1,showboxbreadth:5,showboxdepth:3,errorcontextlines:5,interdisplaylinepenalty:100,interfootnotelinepenalty:100,baselineSkip:1.2,arraystretch:1,month:new Date().getMonth()+1,day:new Date().getDate(),year:new Date().getFullYear()};function Xf(){return m({},Sh)}function w0(){return{registers:Xf(),smartFence:!1,renderPlaceholder:void 0,placeholderSymbol:"\u25A2",letterShapeStyle:ie.locale.startsWith("fr")?"french":"tex",minFontScale:0,colorMap:Pe,backgroundColorMap:q,getMacro:e=>Tt(e,ze())}}var Eo=class O1{constructor(t,r){var i,s,c,u,L,z,X,ce,Te,nt,vt,St,xr,Sn,vr;let nn;t!=null&&t.parent?(this.parent=t.parent,nn=t.parent,this.registers={}):(nn=m(m({},w0()),(i=t==null?void 0:t.from)!=null?i:{}),this.registers=nn.registers),nn.atomIdsSettings&&(this.atomIdsSettings=m({},nn.atomIdsSettings)),this.renderPlaceholder=nn.renderPlaceholder,this.isPhantom=(u=(c=t==null?void 0:t.isPhantom)!=null?c:(s=this.parent)==null?void 0:s.isPhantom)!=null?u:!1,this.letterShapeStyle=nn.letterShapeStyle,this.minFontScale=nn.minFontScale,r!=null&&r.color&&r.color!=="none"?this.color=r.color:this.color=(z=(L=this.parent)==null?void 0:L.color)!=null?z:"",r!=null&&r.backgroundColor&&r.backgroundColor!=="none"?this.backgroundColor=r.backgroundColor:this.backgroundColor=(ce=(X=this.parent)==null?void 0:X.backgroundColor)!=null?ce:"",r!=null&&r.fontSize&&r.fontSize!=="auto"&&r.fontSize!==((Te=this.parent)==null?void 0:Te.size)?this.size=r.fontSize:this.size=(vt=(nt=this.parent)==null?void 0:nt.size)!=null?vt:ol;let Ln=(xr=(St=this.parent)==null?void 0:St.mathstyle)!=null?xr:vo.displaystyle;if(typeof(t==null?void 0:t.mathstyle)=="string"){if(nn instanceof O1)switch(t.mathstyle){case"cramp":Ln=Ln.cramp;break;case"superscript":Ln=Ln.sup;break;case"subscript":Ln=Ln.sub;break;case"numerator":Ln=Ln.fracNum;break;case"denominator":Ln=Ln.fracDen;break}switch(t.mathstyle){case"textstyle":Ln=vo.textstyle;break;case"displaystyle":Ln=vo.displaystyle;break;case"scriptstyle":Ln=vo.scriptstyle;break;case"scriptscriptstyle":Ln=vo.scriptscriptstyle;break;case"":case"auto":break}}this.mathstyle=Ln,this.smartFence=nn.smartFence,this.placeholderSymbol=nn.placeholderSymbol,this.colorMap=(Sn=nn.colorMap)!=null?Sn:un=>un,this.backgroundColorMap=(vr=nn.backgroundColorMap)!=null?vr:un=>un,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===mf||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 uu(this.getRegisterAsDimension(t),r)}getRegisterAsDimension(t){var r;if((r=this.registers)!=null&&r[t]){const i=this.registers[t];return typeof i=="object"&&"glue"in i?i.glue:typeof i=="object"&&"dimension"in i?i:typeof i=="number"?{dimension:i}:void 0}if(this.parent)return this.parent.getRegisterAsDimension(t)}setRegister(t,r){if(r===void 0){delete this.registers[t];return}this.registers[t]=r}evaluate(t){if(!t||!("register"in t))return t;let r=this;if("global"in t&&t.global)for(;r.parent;)r=r.parent;let i=1;"factor"in t&&t.factor!==1&&t.factor!==void 0&&(i=t.factor);const s=r.getRegister(t.register);if(s===void 0)return;if(typeof s=="string")return{string:Number(s).toString()+s};if(typeof s=="number")return{number:i*s};const c=r.evaluate(s);if(c!==void 0)return"string"in c?{string:Number(s).toString()+c.string}:"number"in c?{number:i*c.number}:"dimension"in c?I(m({},c),{dimension:i*c.dimension}):"glue"in c?I(m({},c),{glue:I(m({},c.glue),{dimension:i*c.glue.dimension}),shrink:c.shrink?I(m({},c.shrink),{dimension:i*c.shrink.dimension}):void 0,grow:c.grow?I(m({},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:tA(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}},vf=["body","above","below","superscript","subscript"];function Ud(e){return typeof e=="string"&&vf.includes(e)}function Jf(e){return e!==void 0&&Array.isArray(e)&&e.length===2}var Tr=class f0{constructor(t){var r,i,s,c,u,L;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=m({},t.style),this.displayContainsHighlight=(c=t.displayContainsHighlight)!=null?c:!1,this.captureSelection=(u=t.captureSelection)!=null?u:!1,this.skipBoundary=(L=t.skipBoundary)!=null?L:!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=_m(r),u=[];for(const z of c){const X=z[0].style,ce=Im(t,z,{style:{color:X.color,backgroundColor:X.backgroundColor,fontSize:X.fontSize}});ce&&u.push(ce)}if(u.length===0)return null;const L=((s=i==null?void 0:i.classes)!=null?s:"").trim();return u.length===1&&!L&&!(i!=null&&i.type)?u[0].wrap(t):new Hr(u,{classes:L,type:i==null?void 0:i.type}).wrap(t)}static serialize(t,r){return Gl.serialize(t,r)}static commonAncestor(t,r){if(t===r||t.parent===r.parent)return t.parent;const i=new WeakSet;let{parent:s}=t;for(;s;)i.add(s),s=s.parent;for(s=r.parent;s;){if(i.has(s))return s;s=s.parent}console.assert(!!s)}static fromJson(t){return typeof t=="string"?new f0({type:"mord",value:t,mode:"math"}):new f0(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=m({},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=C0(this.args)),this._branches)for(const r of Object.keys(this._branches))this._branches[r]&&(t[r]=this._branches[r].filter(i=>i.type!=="first").map(i=>i.toJson()));return t.type==="mord"&&Object.keys(t).length===2&&"value"in t?t.value:t}get changeCounter(){return this.parent?this.parent.changeCounter:this._changeCounter}set isDirty(t){if(t){this.parent||this._changeCounter++,"verbatimLatex"in this&&(this.verbatimLatex=void 0),this._children=void 0;let{parent:r}=this;for(;r;)r.parent||r._changeCounter++,"verbatimLatex"in r&&(r.verbatimLatex=void 0),r._children=void 0,r=r.parent}}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);return r!=null&&r.serialize?r.serialize(this,t):this.body&&this.command?co([Cs(this.command,this.bodyToLatex(t)),this.supsubToLatex(t)]):this.body?co([this.bodyToLatex(t),this.supsubToLatex(t)]):!this.value||this.value==="\u200B"?"":this.command}bodyToLatex(t){var r;return Gl.serialize(this.body,I(m({},t),{defaultMode:(r=t.defaultMode)!=null?r:this.latexMode}))}aboveToLatex(t){return Gl.serialize(this.above,t)}belowToLatex(t){return Gl.serialize(this.below,t)}supsubToLatex(t){let r="";if(t=I(m({},t),{defaultMode:"math"}),this.branch("subscript")!==void 0){const i=Gl.serialize(this.subscript,t);i.length===0?r+="_{}":i.length===1?/^[0-9]$/.test(i)?r+=`_${i}`:r+=`_{${i}}`:r+=`_{${i}}`}if(this.branch("superscript")!==void 0){const i=Gl.serialize(this.superscript,t);i.length===0?r+="^{}":i.length===1?i==="\u2032"?r+="^\\prime ":i==="\u2033"?r+="^\\doubleprime ":/^[0-9]$/.test(i)?r+=`^${i}`:r+=`^{${i}}`:r+=`^{${i}}`}return r}get treeDepth(){let t=1,r=this.parent;for(;r;)r=r.parent,t+=1;return t}get inCaptureSelection(){let t=this;for(;t;){if(t.captureSelection)return!0;t=t.parent}return!1}get parentPrompt(){let t=this.parent;for(;t;){if(t.type==="prompt"&&!t.captureSelection)return t;t=t.parent}return null}branch(t){if(Ud(t)&&this._branches)return this._branches[t]}get branches(){if(!this._branches)return[];const t=[];for(const r of vf)this._branches[r]&&t.push(r);return t}createBranch(t){return console.assert(Ud(t)),Ud(t)?(this._branches?this._branches[t]||(this._branches[t]=[this.makeFirstAtom(t)]):this._branches={[t]:[this.makeFirstAtom(t)]},this.isDirty=!0,this._branches[t]):[]}get row(){return Jf(this.parentBranch)?this.parentBranch[0]:-1}get col(){return Jf(this.parentBranch)?this.parentBranch[1]:-1}get body(){var t;return(t=this._branches)==null?void 0:t.body}set body(t){this.setChildren(t,"body")}get superscript(){var t;return(t=this._branches)==null?void 0:t.superscript}set superscript(t){this.setChildren(t,"superscript")}get subscript(){var t;return(t=this._branches)==null?void 0:t.subscript}set subscript(t){this.setChildren(t,"subscript")}get above(){var t;return(t=this._branches)==null?void 0:t.above}set above(t){this.setChildren(t,"above")}get below(){var t;return(t=this._branches)==null?void 0:t.below}set below(t){this.setChildren(t,"below")}get computedStyle(){var t,r;const i=typeof this.style.verbatimColor=="string",s=typeof this.style.verbatimBackgroundColor=="string",c=m(m({},(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=m(m({},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(Ud(r)),!Ud(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 f0({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(Ud(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 vf)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 Eo({parent:t},this.style);let s=this.createBox(i,{classes:this.parent?"":"ML__base"});return s?(!this.subsupPlacement&&(this.superscript||this.subscript)&&(s=this.attachSupsub(i,{base:s})),s.wrap(i)):null}attachSupsub(t,r){var i;const s=r.base,c=this.superscript,u=this.subscript;if(!c&&!u)return s;let L=null,z=null;const X=(i=r.isCharacterBox)!=null?i:this.isCharacterBox();let ce=0;if(c){const xr=new Eo({parent:t,mathstyle:"superscript"});L=f0.createBox(xr,c),X||(ce=s.height-t.metrics.supDrop*xr.scalingFactor)}let Te=0;if(u){const xr=new Eo({parent:t,mathstyle:"subscript"});z=f0.createBox(xr,u),X||(Te=s.depth+t.metrics.subDrop*xr.scalingFactor)}let nt;t.isDisplayStyle?nt=t.metrics.sup1:t.isCramped?nt=t.metrics.sup3:nt=t.metrics.sup2;const vt=.5/Sl/t.scalingFactor;let St=null;if(z&&L){ce=Math.max(ce,nt,L.depth+.25*t.metrics.xHeight),Te=Math.max(Te,t.metrics.sub2);const xr=t.metrics.defaultRuleThickness;if(ce-L.depth-(z.height-Te)<4*xr){Te=4*xr-(ce-L.depth)+z.height;const vr=.8*t.metrics.xHeight-(ce-L.depth);vr>0&&(ce+=vr,Te-=vr)}const Sn=this.isExtensibleSymbol&&s.italic?-s.italic:0;St=new bl({individualShift:[{box:z,shift:Te,marginLeft:Sn},{box:L,shift:-ce}]}).wrap(t)}else z&&!L?(Te=Math.max(Te,t.metrics.sub1,z.height-.8*Ml),St=new bl({shift:Te,children:[{box:z,marginRight:vt,marginLeft:this.isCharacterBox()?-s.italic:0}]})):!z&&L&&(ce=Math.max(ce,nt,L.depth+.25*Ml),St=new bl({shift:-ce,children:[{box:L,marginRight:vt}]}));return new Hr([s,new Hr(St,{caret:this.caret,isSelected:this.isSelected,classes:"msubsup"})],{type:r.type})}attachLimits(t,r){const i=this.superscript?f0.createBox(new Eo({parent:t,mathstyle:"superscript"},this.style),this.superscript):null,s=this.subscript?f0.createBox(new Eo({parent:t,mathstyle:"subscript"},this.style),this.subscript):null;return!i&&!s?r.base.wrap(t):Nu(t,I(m({},r),{above:i,below:s}))}bind(t,r){if(!r||t.isPhantom||this.value==="\u200B")return r;let i=this.parent;for(;i&&!i.captureSelection;)i=i.parent;return i!=null&&i.captureSelection||(this.id||(this.id=t.makeID()),r.atomID=this.id),r}createBox(t,r){var i,s,c,u;const L=(i=this.value)!=null?i:this.body,z=(s=r==null?void 0:r.boxType)!=null?s:Od(this.type);let X=(c=r==null?void 0:r.classes)!=null?c:"";this.mode==="text"&&(X+=" ML__text");const ce=typeof L=="string"||L===void 0?new Hr(L!=null?L:null,{type:z,isSelected:this.isSelected,mode:this.mode,maxFontSize:t.scalingFactor,style:I(m({variant:"normal"},this.style),{fontSize:Math.max(1,t.size+t.mathstyle.sizeDelta)}),letterShapeStyle:t.letterShapeStyle,classes:X}):(u=f0.createBox(t,L,{type:z,classes:X}))!=null?u:new Hr(null);return t.isTight&&(ce.isTight=!0),(this.mode!=="math"||this.style.variant==="main")&&(ce.italic=0),ce.right=ce.italic,this.bind(t,ce),this.caret&&!this.superscript&&!this.subscript&&(ce.caret=this.caret),ce}isDigit(){var t;return this.type==="mord"&&this.value?/^[\d,\.]$/.test(this.value):this.type==="group"&&((t=this.body)==null?void 0:t.length)===2?this.body[0].type==="first"&&this.body[1].value===",":!1}asDigit(){var t;return this.type==="mord"&&this.value&&/^[\d,\.]$/.test(this.value)?this.value:this.type==="group"&&((t=this.body)==null?void 0:t.length)===2&&this.body[0].type==="first"&&this.body[1].value===","?".":""}};function _m(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 Im(e,t,r){var i,s,c,u,L;if(!t||t.length===0)return null;const z=new Eo({parent:e},r.style),X=!((i=z.atomIdsSettings)!=null&&i.groupNumbers);let ce=[];if(t.length===1){const nt=t[0],vt=nt.render(z);vt&&(X&&nt.isSelected&&vt.selected(!0),ce=[vt])}else{let nt="",vt=!0;for(const St of t){(s=z.atomIdsSettings)!=null&&s.groupNumbers&&nt&&(vt&&St.isDigit()||!vt&&x0(St))&&(z.atomIdsSettings.overrideID=nt);const xr=St.render(z);z.atomIdsSettings&&(z.atomIdsSettings.overrideID=void 0),xr&&((c=z.atomIdsSettings)!=null&&c.groupNumbers&&((St.isDigit()||x0(St))&&(!nt||vt!==St.isDigit())&&(vt=St.isDigit(),nt=(u=St.id)!=null?u:""),nt&&(!(St.isDigit()||x0(St))||!St.hasEmptyBranch("superscript")||!St.hasEmptyBranch("subscript"))&&(nt="")),X&&St.isSelected&&xr.selected(!0),ce.push(xr))}}if(ce.length===0)return null;const Te=new Hr(ce,I(m({isTight:z.isTight},r),{type:(L=r.type)!=null?L:"lift"}));return Te.isSelected=ce.every(nt=>nt.isSelected),Te.wrap(z)}function x0(e){return e.mode==="text"}function C0(e){return e.map(t=>t===null?"<null>":Array.isArray(t)&&t[0]instanceof Tr?{atoms:t.map(r=>r.toJson())}:typeof t=="object"&&"group"in t?{group:t.group.map(r=>r.toJson())}:t)}var Rd=class P1 extends Tr{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:Mt("text",this.value.codePointAt(0))}};function Eh(e,t){if(e.direction===t.direction){const r=e.ranges.length;if(t.ranges.length===r){let i=0;for(;i<r&&B0(e.ranges[i],t.ranges[i])==="equal";)i++;return i===r?"equal":"different"}}return"different"}function B0(e,t){return e[0]===t[0]&&e[1]===t[1]?"equal":"different"}function Jl(e){let t=1/0,r=-1/0;for(const i of e.ranges)t=Math.min(t,i[0],i[1]),r=Math.max(r,i[0],i[1]);return[t,r]}function ad(e){return typeof e=="number"&&!Number.isNaN(e)}function Yf(e){return Array.isArray(e)&&e.length===2}function _h(e){return e!=null&&typeof e=="object"&&"ranges"in e&&Array.isArray(e.ranges)}function Ih(e,t){const r=e.at(t);let i;if(r){i=r.mode;let s=r.parent;for(;!i&&s;)s&&(i=s.mode),s=s.parent}return i}function qf(e,t){if(!t)return"";if(typeof t=="string")return t;if(!e||t.after===void 0)return t.value;let r=!1,i=!1,s=!1,c=!1,u=!1,L=!1,z=!1,X=!1,ce=!1,Te=!1,nt=!1,vt=!1,St=!1,xr=!1,Sn=!1,vr=e[0],nn=0;for(;vr!=null&&vr.type&&/^(subsup|placeholder)$/.test(vr.type);)nn+=1,vr=e[nn];return r=!vr||vr.type==="first",vr&&(xr=vr.mode==="text",i=!xr&&vr.type==="mord"&&b.test(vr.value),s=!xr&&vr.type==="mord"&&/\d+$/.test(vr.value),c=!xr&&vr.isFunction,u=vr.type==="genfrac",L=vr.type==="surd",z=vr.type==="mbin",X=vr.type==="mrel",ce=vr.type==="mop"||vr.type==="operator"||vr.type==="extensible-symbol",Te=vr.type==="mpunct"||vr.type==="minner",nt=vr.type==="array",vt=vr.type==="mopen",St=vr.type==="mclose"||vr.type==="leftright",Sn=vr.type==="space"),t.after.includes("nothing")&&r||t.after.includes("letter")&&i||t.after.includes("digit")&&s||t.after.includes("function")&&c||t.after.includes("frac")&&u||t.after.includes("surd")&&L||t.after.includes("binop")&&z||t.after.includes("relop")&&X||t.after.includes("operator")&&ce||t.after.includes("punct")&&Te||t.after.includes("array")&&nt||t.after.includes("openfence")&&vt||t.after.includes("closefence")&&St||t.after.includes("text")&&xr||t.after.includes("space")&&Sn?t.value:""}function S0(e,t,r){return r?qf(e,r[t]):""}var dp={"&":"\\&","%":"\\%",$:"\\$","''":"^{\\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 E0(e,t){var r;let i=(r=t==null?void 0:t.format)!=null?r:"auto";return i==="auto"&&([i,e]=Fm(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",rA(e,{inlineShortcuts:t==null?void 0:t.inlineShortcuts})]):["latex",e]}function rA(e,t){var r,i,s;if(!e)return"";let c=!1,u;const L=(r=t.inlineShortcuts)!=null?r:dp;if(!c&&(e.startsWith("^")||e.startsWith("_"))&&(u=Qd(e.slice(1),{inlineShortcuts:L,noWrap:!0}),e=e[0]+"{"+u.match+"}",e+=rA(u.rest,t),c=!0),c||(u=e.match(/^(sqrt|\u221A)(.*)/),u&&(u=Qd(u[2],{inlineShortcuts:L,noWrap:!0}),e="\\sqrt{"+((i=u.match)!=null?i:"\\placeholder{}")+"}",e+=rA(u.rest,t),c=!0)),c||(u=e.match(/^(\\cbrt|\u221B)(.*)/),u&&(u=Qd(u[2],{inlineShortcuts:L,noWrap:!0}),e="\\sqrt[3]{"+((s=u.match)!=null?s:"\\placeholder{}")+"}",e+=rA(u.rest,t),c=!0)),c||(u=e.match(/^abs(.*)/),u&&(u=Qd(u[1],{inlineShortcuts:L,noWrap:!0}),e="\\left|"+u.match+"\\right|",e+=rA(u.rest,t),c=!0)),c||(u=e.match(/^["”“](.*?)["”“](.*)/),u&&(e="\\text{"+u[1]+"}",e+=rA(u[2],t),c=!0)),c||(u=e.match(/^([^a-zA-Z\(\{\[\_\^\\\s"]+)(.*)/),u&&(e=bf(u[1],L),e+=rA(u[2],t),c=!0)),!c&&/^([fgh])[^a-zA-Z]/.test(e)&&(u=Qd(e.slice(1),{inlineShortcuts:L,noWrap:!0}),e=e[1]==="("?e[0]+"\\left("+u.match+"\\right)":e[0]+u.match,e+=rA(u.rest,t),c=!0),c||(u=e.match(/^([a-zA-Z]+)(.*)/),u&&(e=bf(u[1],L),e+=rA(u[2],t),c=!0)),!c)if(u=Qd(e,{inlineShortcuts:L,noWrap:!0}),u.match&&u.rest[0]==="/"){const z=Qd(u.rest.slice(1),{inlineShortcuts:L,noWrap:!0});z.match&&(e="\\frac{"+u.match+"}{"+z.match+"}"+rA(z.rest,t)),c=!0}else u.match&&(e=e.startsWith("(")?"\\left("+u.match+"\\right)"+rA(u.rest,t):u.match+rA(u.rest,t),c=!0);return c||(u=e.match(/^(\s+)(.*)$/),u&&(e=" "+rA(u[2],t),c=!0)),e}function Qd(e,t){let r="";e=e.trim();let i=e,s=e.charAt(0),c={"(":")","{":"}","[":"]"}[s];if(c){let u=1,L=1;for(;L<e.length&&u>0;)e[L]===s&&u++,e[L]===c&&u--,L++;u===0?(t.noWrap&&s==="("?r=rA(e.substring(1,L-1),t):(s==="{"&&c==="}"&&(s="\\{",c="\\}"),r="\\left"+s+rA(e.substring(1,L-1),t)+"\\right"+c),i=e.slice(Math.max(0,L))):(r=e.substring(1,L),i="")}else{let u=e.match(/^([a-zA-Z]+)/);if(u){let L=S0(null,e,t.inlineShortcuts);if(L)return L=L.replace("_{#?}",""),L=L.replace("^{#?}",""),{match:L,rest:e.slice(L.length)}}if(u=e.match(/^([a-zA-Z])/),u)return{match:u[1],rest:e.slice(1)};if(u=e.match(/^(-)?\d+(\.\d*)?/),u)return{match:u[0],rest:e.slice(u[0].length)};/^\\(left|right)/.test(e)||(u=e.match(/^(\\[a-zA-Z]+)/),u&&(i=e.slice(u[1].length),r=u[1]))}return{match:r,rest:i}}function bf(e,t){let r=S0(null,e,t);return r?(r=r.replace("_{#?}",""),r=r.replace("^{#?}",""),r+=" "):r=e,r}var _0=[["\\[","\\]"],["\\(","\\)"],["$$","$$"],["$","$"],["\\begin{math}","\\end{math}"],["\\begin{displaymath}","\\end{displaymath}"],["\\begin{equation}","\\end{equation}"],["\\begin{equation*}","\\end{equation*}"]];function eh(e){const t=e.trim();for(const r of _0)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 Fm(e){if(e=e.trim(),e.length<=1)return["latex",e];let t;return[t,e]=eh(e),t?["latex",e]:e.startsWith("`")&&e.endsWith("`")?(e=e.substring(1,e.length-1),["ascii-math",e]):e.includes("\\")?["latex",e]:/\$.+\$/.test(e)?["latex",`\\text{${e}}`]:[void 0,e]}var Mm="$$",Lm="$$",km=(e,t,r)=>(_0.some(i=>t.startsWith(i[0])&&t.endsWith(i[1]))||(t=`${Mm} ${t} ${Lm}`),t),fp=class Xg{constructor(t){Xg._modes[t]=this}static onPaste(t,r,i){var s;if(!r.contentEditable&&r.userSelect==="none")return r.model.announce("plonk"),!1;if(typeof i=="string"){const u=new DataTransfer;u.setData("text/plain",i),i=u}const c=new ClipboardEvent("paste",{clipboardData:i,cancelable:!0});return(s=r.host)!=null&&s.dispatchEvent(c)?Xg._modes[t].onPaste(r,i):!1}static copyToClipboard(t,r){if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const i=t.model,s=i.selectionIsCollapsed?[0,i.lastOffset]:Jl(i.selection),c=i.getValue(s,r);navigator.clipboard.writeText(c).then(()=>{},()=>t.model.announce("plonk"))}static onCopy(t,r){var i;if(!r.clipboardData)return;if(!t.contentEditable&&t.userSelect==="none"){t.model.announce("plonk");return}const s=t.model,c=s.selectionIsCollapsed?[0,s.lastOffset]:Jl(s.selection);let u=s.getAtoms(c);if(u.every(L=>L.mode==="text"||!L.mode))r.clipboardData.setData("text/plain",u.filter(L=>L instanceof Rd).map(L=>L.value).join(""));else if(u.every(L=>L.mode==="latex"))r.clipboardData.setData("text/plain",s.getAtoms(c,{includeChildren:!0}).map(L=>{var z;return(z=L.value)!=null?z:""}).join(""));else{let L;u.length===1&&u[0].verbatimLatex!==void 0?L=u[0].verbatimLatex:L=s.getValue(c,"latex-expanded"),r.clipboardData.setData("application/x-latex",L);try{r.clipboardData.setData("text/plain",t.options.onExport(t,L,c))}catch(z){}if(u.length===1){const z=u[0];(z.type==="root"||z.type==="group")&&(u=z.body.filter(X=>X.type!=="first"))}try{r.clipboardData.setData("application/json+mathlive",JSON.stringify(u.map(z=>z.toJson())))}catch(z){}if((i=window[Symbol.for("io.cortexjs.compute-engine")])!=null&&i.ComputeEngine){const z=window.MathfieldElement.computeEngine;if(z)try{const X=z.jsonSerializationOptions;z.jsonSerializationOptions={metadata:["latex"]};const ce=z.parse(s.getValue(c,"latex-unstyled"));z.jsonSerializationOptions=X;const Te=JSON.stringify(ce.json);Te&&r.clipboardData.setData("application/json",Te)}catch(X){}}}r.preventDefault()}static insert(t,r,i={}){var s;const c=i.mode==="auto"?t.mode:(s=i.mode)!=null?s:t.mode;return Xg._modes[c].insert(t,r,i)}onPaste(t,r){return!1}insert(t,r,i){return!1}};fp._modes={};var Ls=fp,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 th(e){const t=Wp(e);if(!t)return null;const r=t.getBoundingClientRect();return{x:r.right,y:r.bottom,height:r.height}}function hp(e){var t;if(!e.parent)return"root";let r=(t=e.parent.id)!=null?t:"";return r+=typeof e.parentBranch=="string"?"-"+e.parentBranch:`-${e.parentBranch[0]}/${e.parentBranch[0]}`,r}function rh(e,t,r){if(!t)return null;const i=e.field.getBoundingClientRect(),s=t.right-t.left,c=t.bottom-t.top,u=Math.ceil(t.left-i.left+e.field.scrollLeft*r),L=Math.ceil(t.top-i.top);return{left:u,right:u+s,top:L,bottom:L+c}}function Fh(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=Fh(s);i.left=Math.min(i.left,c.left),i.right=Math.max(i.right,c.right),i.top=Math.min(i.top,c.top),i.bottom=Math.max(i.bottom,c.bottom)}return i}function nh(e,t){var r,i;if(!t.id)return null;let s=(i=(r=e.atomBoundsCache)==null?void 0:r.get(t.id))!=null?i:null;if(s!==null)return s;const c=e.field.querySelector(`[data-atom-id="${t.id}"]`);return s=c?Fh(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,u=c.offsetWidth;let z=Math.floor(c.getBoundingClientRect().width)/u;z=isNaN(z)?1:z;const X=rh(e,nh(e,s),z);if(X){const ce=hp(s);if(i.has(ce)){const Te=i.get(ce);i.set(ce,{left:Math.min(Te.left,X.left),right:Math.max(Te.right,X.right),top:Math.min(Te.top,X.top),bottom:Math.max(Te.bottom,X.bottom)})}else i.set(ce,X)}}return[...i.values()]}function Dm(e,t){return e.model.selection.ranges.reduce((r,i)=>r.concat(...Gp(e,i,t)),[])}function Mh(e,t){return e==="*"||t==="none"?!0:t==="same-origin"?!window.origin||e===window.origin:typeof t=="function"?t(e):!1}function I0(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 Nm=`@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);
|
|
|
}
|
|
|
`,yf=`#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);
|
|
|
}
|
|
|
`,Om=`/* 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);*/
|
|
|
}
|
|
|
`,Kd=`.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));
|
|
|
}
|
|
|
`,wf=`: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;
|
|
|
}
|
|
|
`,Gc;function du(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=Nm;break;case"environment-popover":t=yf;break;case"suggestion-popover":t=Om;break;case"keystroke-caption":t=Dl;break;case"virtual-keyboard":t=Kd;break;case"ui":t=wf;break;case"menu":t=sd;break;default:debugger}return t}function _A(e){return Gc||(Gc={}),Gc[e]||(Gc[e]=new CSSStyleSheet,Gc[e].replaceSync(du(e))),Gc[e]}var Pu;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(du(e))),window.document.head.appendChild(r);return}if(Pu||(Pu={}),((t=Pu[e])!=null?t:0)!==0)Pu[e]+=1;else{const r=_A(e);document.adoptedStyleSheets=[...document.adoptedStyleSheets,r],Pu[e]=1}}function cd(e){if("adoptedStyleSheets"in document&&Pu!=null&&Pu[e]&&(Pu[e]-=1,Pu[e]<=0)){const t=Gc[e];document.adoptedStyleSheets=document.adoptedStyleSheets.filter(r=>r!==t)}}var ih=class T1 extends Tr{constructor(t){var r;super(I(m({},t),{type:"accent",body:(r=t.body)!=null?r:void 0})),t.accentChar?this.accent=t.accentChar:this.svgAccent=t==null?void 0:t.svgAccent,this.skipBoundary=!0,this.captureSelection=!0}static fromJson(t){return new T1(t)}toJson(){return I(m({},super.toJson()),{accentChar:this.accent,svgAccent:this.svgAccent})}render(t){var r;const i=new Eo({parent:t,mathstyle:"cramp"},this.style),s=(r=Tr.createBox(i,this.body))!=null?r:new Hr("\u25A2",{style:this.style});let c=0;!this.hasEmptyBranch("body")&&this.body.length===2&&this.body[1].isCharacterBox()&&(c=s.skew);let u=Math.min(s.height,Ml),L;if(this.svgAccent)L=pf(this.svgAccent),u=i.metrics.bigOpSpacing1-u;else if(this.accent){const X=new Hr(this.accent,{fontFamily:"Main-Regular"});X.italic=0;const ce=this.accent===8407?" ML__accent-vec":"";L=new Hr(new Hr(X),{classes:"ML__accent-body"+ce})}L=new bl({shift:0,children:[{box:new Hr(s)},-u,{box:L,marginLeft:s.left+2*c,classes:["ML__center"]}]});const z=new Hr(L,{type:"lift"});return this.caret&&(z.caret=this.caret),this.bind(i,z.wrap(i)),this.attachSupsub(i,{base:z})}},Hd={"(":")","{":"}","[":"]","|":"|","\\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"},Lh=Object.fromEntries(Object.entries(Hd).map(([e,t])=>[t,e]));function F0(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 kh(e,t,r,i){var s;const u=new Hr(F0(e),{fontFamily:"Main-Regular",isSelected:i.isSelected,classes:"ML__small-delim "+((s=i.classes)!=null?s:"")}).wrap(t);return r&&u.setTop((1-t.scalingFactor)*dl),u}function Jp(e,t,r,i,s){var c,u;const L=new Eo({parent:i,mathstyle:"textstyle"},s==null?void 0:s.style),z=new Hr(F0(e),{fontFamily:`Size${t}-Regular`,isSelected:s.isSelected,classes:((c=s.classes)!=null?c:"")+` ML__delim-size${t}`,type:(u=s.type)!=null?u:"ignore"}).wrap(L);return r&&z.setTop((1-L.scalingFactor)*dl),z}function pp(e,t,r,i,s){var c;let u,L,z,X;u=z=X=F0(e),L=null;let ce="Size1-Regular";e==="\\vert"||e==="\\lvert"||e==="\\rvert"||e==="\\mvert"||e==="\\mid"?z=u=X=8739:e==="\\Vert"||e==="\\lVert"||e==="\\rVert"||e==="\\mVert"||e==="\\|"?z=u=X=8741:e==="\\uparrow"?z=X=9168:e==="\\Uparrow"?z=X=8214:e==="\\downarrow"?u=z=9168:e==="\\Downarrow"?u=z=8214:e==="\\updownarrow"?(u=8593,z=9168,X=8595):e==="\\Updownarrow"?(u=8657,z=8214,X=8659):e==="["||e==="\\lbrack"?(u=9121,z=9122,X=9123,ce="Size4-Regular"):e==="]"||e==="\\rbrack"?(u=9124,z=9125,X=9126,ce="Size4-Regular"):e==="\\lfloor"||e==="\u230A"?(z=u=9122,X=9123,ce="Size4-Regular"):e==="\\lceil"||e==="\u2308"?(u=9121,z=X=9122,ce="Size4-Regular"):e==="\\rfloor"||e==="\u230B"?(z=u=9125,X=9126,ce="Size4-Regular"):e==="\\rceil"||e==="\u2309"?(u=9124,z=X=9125,ce="Size4-Regular"):e==="("||e==="\\lparen"?(u=9115,z=9116,X=9117,ce="Size4-Regular"):e===")"||e==="\\rparen"?(u=9118,z=9119,X=9120,ce="Size4-Regular"):e==="\\{"||e==="\\lbrace"?(u=9127,L=9128,X=9129,z=9130,ce="Size4-Regular"):e==="\\}"||e==="\\rbrace"?(u=9131,L=9132,X=9133,z=9130,ce="Size4-Regular"):e==="\\lgroup"||e==="\u27EE"?(u=9127,X=9129,z=9130,ce="Size4-Regular"):e==="\\rgroup"||e==="\u27EF"?(u=9131,X=9133,z=9130,ce="Size4-Regular"):e==="\\lmoustache"||e==="\u23B0"?(u=9127,X=9133,z=9130,ce="Size4-Regular"):e==="\\rmoustache"||e==="\u23B1"?(u=9131,X=9129,z=9130,ce="Size4-Regular"):e==="\\surd"?(u=57345,X=9143,z=57344,ce="Size4-Regular"):e==="\\ulcorner"?(u=9484,z=X=32):e==="\\urcorner"?(u=9488,z=X=32):e==="\\llcorner"?(X=9492,z=u=32):e==="\\lrcorner"&&(u=9496,z=u=32);const Te=Bc(u,ce),nt=Te.height+Te.depth,vt=Bc(z,ce),St=vt.height+vt.depth,xr=Bc(X,ce),Sn=xr.height+xr.depth;let vr=0,nn=1;if(L!==null){const Ge=Bc(L,ce);vr=Ge.height+Ge.depth,nn=2}const Ln=nt+Sn+vr,un=Math.max(0,Math.ceil((t-Ln)/(nn*St))),Ci=Ln+un*nn*St;let Yi=dl;r&&(Yi=Yi*i.scalingFactor);const Pi=Ci/2-Yi,h=.008,B=[];B.push({box:new Hr(X,{fontFamily:ce})}),B.push(-h);const K=new Hr(z,{fontFamily:ce});if(L===null)for(let Ge=0;Ge<un;Ge++)B.push({box:K});else{for(let Ge=0;Ge<un;Ge++)B.push({box:K});B.push(-h),B.push({box:new Hr(L,{fontFamily:ce})}),B.push(-h);for(let Ge=0;Ge<un;Ge++)B.push({box:K})}B.push(-h),B.push({box:new Hr(u,{fontFamily:ce})});let pe="";ce==="Size1-Regular"?pe=" delim-size1":ce==="Size4-Regular"&&(pe=" delim-size4");const Ke=new bl({bottom:Pi,children:B},{classes:pe});return new Hr(Ke,I(m({},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"]),Dh=new Set(["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\mvert","\\mid","\\lgroup","\\rgroup","\\lmoustache","\\rmoustache","\u27EE","\u27EF","\u23B0","\u23B1"]),Pm=new Set(["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"]),M0=[0,1.2,1.8,2.4,3];function Tm(e,t,r,i){return e===void 0||e==="."?oh(r,i.classes):(e==="<"||e==="\\lt"||e==="\u27E8"?e="\\langle":(e===">"||e==="\\gt"||e==="\u27E9")&&(e="\\rangle"),Yp.has(e)||Pm.has(e)?Jp(e,t,!1,r,i):Dh.has(e)?pp(e,M0[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 mp(e,t,r,i){const s={"-4":0,"-3":1,0:2}[i.mathstyle.sizeDelta];for(let c=s;c<r.length&&r[c].type!=="stack";c++){const u=Bc(e,rm(r[c]));if(u.defaultMetrics)return{type:"small",mathstyle:"scriptstyle"};let L=u.height+u.depth;if(r[c].type==="small"&&(r[c].mathstyle==="scriptscriptstyle"?L*=Math.max(El[Math.max(1,i.size-2)],i.minFontScale):r[c].mathstyle==="scriptstyle"&&(L*=Math.max(El[Math.max(1,i.size-1)],i.minFontScale))),L>t)return r[c]}return r[r.length-1]}function xf(e,t,r,i,s,c){if(!t||t.length===0||t===".")return oh(s);t==="<"||t==="\\lt"?t="\\langle":(t===">"||t==="\\gt")&&(t="\\rangle");let u;Pm.has(t)?u=qp:Yp.has(t)?u=tm:u=em;const L=mp(F0(t),r,u,s),z=new Eo({parent:s,mathstyle:L.mathstyle},c==null?void 0:c.style);return L.type==="small"?kh(t,z,i,I(m({},c),{type:e})):L.type==="large"?Jp(t,L.size,i,z,I(m({},c),{type:e})):(console.assert(L.type==="stack"),pp(t,r,i,z,I(m({},c),{type:e})))}function ah(e,t,r,i,s,c){if(t===".")return oh(s,c==null?void 0:c.classes);const u=dl*s.scalingFactor,L=901,z=5/Sl,X=Math.max(r-u,i+u),ce=Math.max(X/500*L,2*X-z);return xf(e,t,ce,!0,s,c)}function oh(e,t){const r=new Hr(null,{classes:" nulldelimiter "+(t!=null?t:""),type:"ignore"});return r.width=e.getRegisterAsEm("nulldelimiterspace"),r.wrap(new Eo({parent:e,mathstyle:"textstyle"}))}var Tu=class U1 extends Tr{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{}"}},gp=["matrix","matrix*","pmatrix","pmatrix*","bmatrix","bmatrix*","Bmatrix","Bmatrix*","vmatrix","vmatrix*","Vmatrix","Vmatrix*"],IA=["cases","dcases","rcases"],L0=["align","align*","aligned","gather","gathered","split"],nm=["array","subequations","eqnarray"];function vp(e){return nm.concat(L0).concat(IA).concat(gp).includes(e)}function Nh(e){return gp.includes(e)}function Oh(e){return IA.includes(e)}function Um(e){return L0.includes(e)}function bp(e,t,r){let i=0;for(const X of r)"align"in X&&(i+=1);let s=0;const c=[];for(const X of t){let ce=0;for(s=Math.max(s,Math.min(X.length,i));ce<X.length;){const Te=[],nt=Math.min(X.length,ce+i);for(;ce<nt;){const vt=X[ce];vt.length===0?Te.push([new Tr({type:"first",mode:e.mode})]):vt[0].type!=="first"?Te.push([new Tr({type:"first",mode:e.mode}),...vt]):(console.assert(!vt.slice(1).some(St=>St.type==="first")),Te.push(vt)),ce+=1}c.push(Te)}}c.length>0&&c[c.length-1].length===1&&c[c.length-1][0].length===1&&c[c.length-1][0][0].type==="first"&&c.pop();const u=[];for(const X of c){if(X.length!==s)for(let ce=X.length;ce<s;ce++)X.push([new Tr({type:"first",mode:e.mode}),new Tu]);u.push(X)}let L=0,z=0;for(const X of u){z=0;for(const ce of X){for(const Te of ce)Te.parent=e,Te.parentBranch=[L,z];z+=1}L+=1}return e.isDirty=!0,u}var hs=class R1 extends Tr{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=bp(this,r,this.colFormat),s.leftDelim&&(this.leftDelim=s.leftDelim),s.rightDelim&&(this.rightDelim=s.rightDelim),s.arraycolsep!==void 0&&(this.arraycolsep=s.arraycolsep),this.colSeparationType=s.colSeparationType,s.arraystretch!==void 0&&(this.arraystretch=s.arraystretch),this.minColumns=(c=s.minColumns)!=null?c:1}static fromJson(t){return new R1(t.environmentName,t.array,t.rowGaps,t)}toJson(){const t=I(m({},super.toJson()),{environmentName:this.environmentName,array:this.array.map(r=>r.map(i=>i.map(s=>s.toJson()))),rowGaps:this.rowGaps,columns:this.colFormat,colSeparationType:this.colSeparationType});return this.arraystretch!==void 0&&(t.arraystretch=this.arraystretch),this.arraycolsep!==void 0&&(t.arraycolsep=this.arraycolsep),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}branch(t){var r;if(Jf(t))return(r=this.array[t[0]][t[1]])!=null?r:void 0}createBranch(t){var r;return Jf(t)?(this.isDirty=!0,(r=this.branch(t))!=null?r:[]):[]}get rowCount(){return this.array.length}get colCount(){return this.array[0].length}get maxColumns(){return this.colFormat.filter(t=>!!t.align).length}removeBranch(t){if(Ud(t))return super.removeBranch(t);const r=this.branch(t);return this.array[t[0]][t[1]]=void 0,r.forEach(i=>{i.parent=void 0,i.parentBranch=void 0}),console.assert(r[0].type==="first"),r.shift(),this.isDirty=!0,r}get hasChildren(){return this.children.length>0}get children(){const t=[];for(const r of this.array)for(const i of r)if(i)for(const s of i)t.push(...s.children),t.push(s);return[...t,...super.children]}render(t){var r,i,s,c,u,L;const z=new Eo({parent:t,mathstyle:this.mathstyleName},this.style),X=z.getRegisterAsEm("arrayrulewidth"),ce=z.getRegisterAsEm("arraycolsep"),Te=z.getRegisterAsEm("doublerulesep"),nt=(i=(r=this.arraystretch)!=null?r:z.getRegisterAsNumber("arraystretch"))!=null?i:1;let vt=typeof this.arraycolsep=="number"?this.arraycolsep:ce;this.colSeparationType==="small"&&(vt=.2778*(new Eo({parent:t,mathstyle:"scriptstyle"}).scalingFactor/t.scalingFactor));const St=nt*cu,xr=.7*St,Sn=.3*St;let vr=0;const nn=[];let Ln=0;const un=this.array.length;for(let ft=0;ft<un;++ft){const jt=this.array[ft];Ln=Math.max(Ln,jt.length);const mr=new Eo({parent:z,mathstyle:this.mathstyleName},this.style);let wt=xr/mr.scalingFactor,rr=Sn/mr.scalingFactor;const pr={cells:[],height:0,depth:0,pos:0};for(const Cr of jt){const cn=(s=Tr.createBox(mr,Cr,{type:"ignore"}))!=null?s:new Hr(null,{type:"ignore"});rr=Math.max(rr,cn.depth),wt=Math.max(wt,cn.height),pr.cells.push(cn)}let Wr=(c=uu(this.rowGaps[ft]))!=null?c:0;Wr>0&&(Wr+=Sn,rr=Math.max(rr,Wr),Wr=0),ft<un-1&&!Nh(this.environmentName)&&this.environmentName!=="cases"&&this.environmentName!=="array"&&(rr+=z.getRegisterAsEm("jot")),pr.height=wt,pr.depth=rr,vr+=wt,pr.pos=vr,vr+=rr+Wr,nn.push(pr)}const Ci=vr/2+dl,Yi=[];for(let ft=0;ft<Ln;ft++){const jt=[];for(const mr of nn){const wt=mr.cells[ft];wt.depth=mr.depth,wt.height=mr.height,jt.push({box:wt,shift:mr.pos-Ci})}jt.length>0&&Yi.push(new bl({individualShift:jt}))}const Pi=[];let h=!1,B=!1,K=0,pe=!this.leftDelim;const{colFormat:Ke}=this;for(const ft of Ke){if("align"in ft&&K>=Yi.length)break;if("align"in ft)h?Pi.push(Uu(2*vt)):(B||pe)&&Pi.push(Uu(vt)),Pi.push(new Hr(Yi[K],{classes:"col-align-"+ft.align})),K++,h=!0,B=!1,pe=!1;else if("gap"in ft){if(typeof ft.gap=="number")Pi.push(Uu(ft.gap));else{const jt=k0(t,nn,Ci,ft.gap);jt&&Pi.push(jt)}h=!1,B=!1,pe=!1}else if("separator"in ft){const jt=new Hr(null,{classes:"vertical-separator"});jt.height=vr,jt.setStyle("height",vr,"em"),jt.setStyle("border-right",`${X}em ${ft.separator} currentColor`),jt.setStyle("vertical-align",-(vr-Ci),"em");let mr=0;B?mr=Te-X:h&&(mr=vt-X),jt.left=mr,Pi.push(jt),h=!1,B=!0,pe=!1}}h&&!this.rightDelim&&Pi.push(Uu(vt));const Ze=new Hr(Pi,{classes:"mtable"});if((!this.leftDelim||this.leftDelim===".")&&(!this.rightDelim||this.rightDelim==="."))return this.caret&&(Ze.caret=this.caret),this.bind(t,Ze);const Ge=Ze.height,at=Ze.depth,ut=this.bind(t,new Hr([this.bind(t,ah("open",(u=this.leftDelim)!=null?u:".",Ge,at,z,{isSelected:this.isSelected})),Ze,this.bind(t,ah("close",(L=this.rightDelim)!=null?L:".",Ge,at,z,{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(Tr.serialize(this.array[s][c],t));if(s<this.array.length-1){const c=this.rowGaps[s];c!=null&&c.dimension?i.push(`\\\\[${c.dimension} ${(r=c.unit)!=null?r:"pt"}] `):i.push("\\\\ ")}}return this.environmentName==="lines"?i.push("}"):i.push(`\\end{${this.environmentName}}`),co(i)}getCell(t,r){return this.array[t][r]}setCell(t,r,i){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.array[t][r]!==void 0);for(const c of this.array[t][r])c.parent=void 0,c.parentBranch=void 0;let s=i;(i.length===0||i[0].type!=="first")&&(s=[new Tr({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(Ii(this));this.array.splice(t,0,r);for(let i=t;i<this.rowCount;i++)for(let s=0;s<this.colCount;s++){const c=this.array[i][s];if(c)for(const u of c)u.parentBranch=[i,s]}this.isDirty=!0}addRowAfter(t){console.assert(this.type==="array"&&Array.isArray(this.array));const r=[];for(let i=0;i<this.colCount;i++)r.push(Ii(this));this.array.splice(t+1,0,r);for(let i=t+1;i<this.rowCount;i++)for(let s=0;s<this.colCount;s++){const c=this.array[i][s];if(c)for(const u of c)u.parentBranch=[i,s]}this.isDirty=!0}removeRow(t){console.assert(this.type==="array"&&Array.isArray(this.array)&&this.rowCount>t);const r=this.array.splice(t,1);for(const i of r)for(const s of i)if(s)for(const c of s)c.parent=void 0,c.parentBranch=void 0;for(let i=t;i<this.rowCount;i++)for(let s=0;s<this.colCount;s++){const c=this.array[i][s];if(c)for(const u of c)u.parentBranch=[i,s]}this.isDirty=!0}addColumnBefore(t){console.assert(this.type==="array"&&Array.isArray(this.array));for(const r of this.array)r.splice(t,0,Ii(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,Ii(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 Ii(e){const t=new Tr({type:"first",mode:e.mode});t.parent=e;const r=new Tu;return r.parent=e,[t,r]}function Uu(e){const t=new Hr(null,{classes:"arraycolsep"});return t.width=e,t}function k0(e,t,r,i){if(!i)return null;const s=[];for(const c of t){const u=Tr.createBox(e,i,{type:"ignore"});u&&(u.depth=c.depth,u.height=c.height,s.push({box:u,shift:c.pos-r}))}return new bl({individualShift:s}).wrap(e)}var dc=class Q1 extends Tr{constructor(t){super({mode:t.mode,command:t.command,style:t.style,body:t.body,type:"box"}),this.framecolor=t.framecolor,this.backgroundcolor=t.backgroundcolor,this.padding=t.padding,this.offset=t.offset,this.border=t.border}static fromJson(t){return new Q1(t)}toJson(){return I(m({},super.toJson()),{framecolor:this.framecolor,backgroundcolor:this.backgroundcolor,padding:this.padding,offset:this.offset,border:this.border})}render(t){var r,i,s,c;const u=Tr.createBox(t,this.body,{type:"lift"});if(!u)return null;const L=t.toEm((r=this.offset)!=null?r:{dimension:0});u.depth+=L,u.setStyle("display","inline-block"),u.setStyle("position","relative"),u.setStyle("height",Math.floor(100*u.height+u.depth)/100,"em"),u.setStyle("vertical-align",-Math.floor(100*u.height)/100,"em");const z=new Eo({parent:t},this.style),X=z.toEm((i=this.padding)!=null?i:{register:"fboxsep"}),ce=new Hr(null,{classes:"ML__box"});ce.height=u.height+X,ce.depth=u.depth+X,ce.setStyle("box-sizing","border-box"),ce.setStyle("position","absolute"),ce.setStyle("top",-X+.3,"em"),ce.setStyle("left",0),ce.setStyle("height",ce.height+ce.depth,"em"),ce.setStyle("width","100%"),this.backgroundcolor&&ce.setStyle("background-color",(s=z.toColor(this.backgroundcolor))!=null?s:"transparent"),this.framecolor&&ce.setStyle("border",`${z.getRegisterAsEm("fboxrule",2)}em solid ${(c=z.toColor(this.framecolor))!=null?c:"black"}`),this.border&&ce.setStyle("border",this.border);const Te=new Hr([ce,u],{type:"lift"});return Te.setStyle("display","inline-block"),Te.setStyle("position","relative"),Te.setStyle("line-height",0),Te.height=u.height+X+(L>0?L:0),Te.depth=u.depth+X+(L<0?-L:0),Te.setStyle("padding-left",X,"em"),Te.setStyle("padding-right",X,"em"),Te.setStyle("height",Math.floor(100*(u.height+u.depth+2*X+Math.abs(L)))/100,"em"),Te.setStyle("margin-top",-X,"em"),Te.setStyle("top",Math.floor(100*(u.depth-u.height+2*X-L))/100,"em"),Te.setStyle("vertical-align",Math.floor(100*(u.depth+2*X))/100,"em"),this.caret&&(Te.caret=this.caret),this.attachSupsub(t,{base:Te})}_serialize(t){return t.skipStyles?co([this.bodyToLatex(t),this.supsubToLatex(t)]):super._serialize(t)}},im=class K1 extends Tr{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 Hr(this.value,{classes:"ML__composition",type:"composition"});return this.bind(t,r),this.caret&&(r.caret=this.caret),r}_serialize(t){return""}},Wo=class H1 extends Tr{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}},ll=class j1 extends Tr{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=Tr.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)}}`}},tl=class z1 extends Tr{constructor(t,r,i){super({type:"leftright",style:i.style,displayContainsHighlight:!0}),this.variant=t,this.body=r,this.leftDelim=i.leftDelim,this.rightDelim=i.rightDelim}static fromJson(t){var r;return new z1((r=t.variant)!=null?r:"",t.body,t)}toJson(){const t=super.toJson();return this.variant&&(t.variant=this.variant),this.leftDelim&&(t.leftDelim=this.leftDelim),this.rightDelim&&(t.rightDelim=this.rightDelim),t}_serialize(t){var r,i;const s=this.matchingRightDelim();return this.variant==="left...right"?co(["\\left",(r=this.leftDelim)!=null?r:".",this.bodyToLatex(t),"\\right",s]):this.variant==="mleft...mright"?co(["\\mleft",(i=this.leftDelim)!=null?i:".",this.bodyToLatex(t),"\\mright",s]):co([!this.leftDelim||this.leftDelim==="."?"":this.leftDelim,this.bodyToLatex(t),s])}matchingRightDelim(){var t,r;if(this.rightDelim&&this.rightDelim!=="?")return this.rightDelim;const i=(t=this.leftDelim)!=null?t:".";return(r=Hd[i])!=null?r:i}render(t){var r,i;const s=new Eo({parent:t},this.style);console.assert(this.body!==void 0);const c=new Eo({parent:t,mathstyle:"textstyle"},this.style),u=(r=Tr.createBox(s,this.body,{type:"inner"}))!=null?r:new Hr(null,{type:"inner"}),L=u.height/c.scalingFactor,z=u.depth/c.scalingFactor,X=[];if(this.leftDelim&&X.push(this.bind(c,ah("open",this.leftDelim,L,z,c,{isSelected:this.isSelected,classes:"ML__open"+(this.containsCaret?" ML__contains-caret":""),mode:this.mode,style:this.style}))),u&&(Rm(u.children,this,s,L,z),X.push(u)),this.rightDelim){let vt=this.containsCaret?" ML__contains-caret":"",St=this.rightDelim;St==="?"&&(s.smartFence?(St=this.matchingRightDelim(),vt+=" ML__smart-fence__close"):St="."),X.push(this.bind(c,ah("close",St,L,z,c,{isSelected:this.isSelected,classes:vt+" ML__close",mode:this.mode,style:this.style})))}let ce=this.variant==="mleft...mright";const Te=this.leftSibling;Te&&(!ce&&Te.isFunction&&(ce=!0),!ce&&Te.type==="subsup"&&((i=Te.leftSibling)!=null&&i.isFunction)&&(ce=!0));const nt=new Hr(X,{type:ce?"close":"inner",classes:"left-right"});return nt.setStyle("margin-top",`${-u.depth}em`),nt.setStyle("height",`${u.height+u.depth}em`),this.caret&&(nt.caret=this.caret),this.bind(s,nt.wrap(s))}};function Rm(e,t,r,i,s){if(e)for(let c=0;c<e.length;c++){const u=e[c];u.type==="middle"?(e[c]=t.bind(r,ah("inner",u.value,i,s,r,{isSelected:t.isSelected})),e[c].caret=u.caret,e[c].isSelected=u.isSelected,e[c].cssId=u.cssId,e[c].htmlData=u.htmlData,e[c].htmlStyle=u.htmlStyle,e[c].attributes=u.attributes,e[c].cssProperties=u.cssProperties):u.children&&Rm(u.children,t,r,i,s)}}var D0=class $1 extends Tr{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=Tr.createBox(t,this.body);return r?(this.caret&&(r.caret=this.caret),this.bind(t,r)):null}},Za=class Z1 extends Tr{constructor(){super({type:"macro-argument"})}static fromJson(t){return new Z1}toJson(){return super.toJson()}_serialize(t){return""}render(t){return null}},Cf=class V1 extends Tr{constructor(t,r,i=!1,s,c){var u;super({type:"prompt",mode:(u=c==null?void 0:c.mode)!=null?u:"math",style:c==null?void 0:c.style,command:"\\placeholder"}),this.body=s,this.correctness=r,this.placeholderId=t,this.locked=i,this.captureSelection=this.locked}static fromJson(t){return new V1(t.placeholderId,t.correctness,t.locked,t.body,t)}toJson(){const t=super.toJson();return this.placeholderId&&(t.placeholderId=this.placeholderId),this.body||delete t.body,this.body&&(t.body=this.body.filter(r=>r.type!=="first").map(r=>r.toJson())),this.correctness&&(t.correctness=this.correctness),t.locked=this.locked,t}render(t){const r=new Eo({parent:t}),i=r.getRegisterAsEm("fboxsep"),s=i,c=i,u=Tr.createBox(t,this.body);if(!u)return null;u.height||(u.height=r.metrics.xHeight),u.setStyle("vertical-align",-u.height,"em"),this.correctness==="correct"?u.setStyle("color","var(--correct-color, var(--ML__correct-color))"):this.correctness==="incorrect"&&u.setStyle("color","var(--incorrect-color, var(--ML__incorrect-color))");const L=new Hr(u,{type:"ord"});L.setStyle("display","inline-block"),L.setStyle("height",u.height+u.depth,"em"),L.setStyle("vertical-align",-c,"em");let z="ML__prompt ";this.locked?z+=" ML__lockedPromptBox ":z+=" ML__editablePromptBox ",this.correctness==="correct"?z+=" ML__correctPromptBox ":this.correctness==="incorrect"&&(z+=" ML__incorrectPromptBox "),this.containsCaret&&(z+=" ML__focusedPromptBox ");const X=new Hr(null,{classes:z,attributes:{part:"prompt"}});X.height=L.height+c,X.depth=L.depth+c,X.width=L.width+2*s,X.setStyle("box-sizing","border-box"),X.setStyle("position","absolute"),X.setStyle("height",L.height+L.depth+2*c,"em"),s===0&&X.setStyle("width","100%"),s!==0&&(X.setStyle("width",`calc(100% + ${2*s}em)`),X.setStyle("top",i,"em"),X.setStyle("left",-s,"em")),(!this.body||this.body.length===1)&&(X.width=3*s,X.setStyle("width",`calc(100% + ${3*s}em)`),X.setStyle("left",-1.5*s,"em"));let ce="";this.correctness==="incorrect"&&(ce+='<line x1="3%" y1="97%" x2="97%" y2="3%" stroke-width="0.5" stroke="var(--incorrect-color, var(--ML__incorrect-color))" stroke-linecap="round" />'),ce&&(X.svgOverlay=ce);const Te=new Hr([X,L],{classes:"ML__prompt-atom"});return Te.setStyle("position","relative"),Te.setStyle("display","inline-block"),Te.setStyle("line-height",0),Te.height=L.height+c+.2,Te.depth=L.depth+c,Te.left=s,Te.right=s,Te.setStyle("height",L.height+c,"em"),Te.setStyle("top",L.depth-L.height,"em"),Te.setStyle("vertical-align",L.depth+c,"em"),Te.setStyle("margin-left",.5,"em"),Te.setStyle("margin-right",.5,"em"),this.caret&&(Te.caret=this.caret),this.bind(r,this.attachSupsub(t,{base:Te}))}_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]"),Cs(s,i)}},ks=class W1 extends Tr{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 vf)t[i]&&r.setChildren(t[i],i);return r}render(t){var r;const i=new Eo({parent:t,isPhantom:!0}),s=this.leftSibling,c=(r=s.render(i))!=null?r:new Hr(null),u=new Hr(null);return u.height=c.height,u.depth=c.depth,this.attachSupsub(t,{base:u,isCharacterBox:s.isCharacterBox(),type:"ignore"})}_serialize(t){return this.supsubToLatex(t)}};function jd(e){return e?!/^(<$$>|<$>|<space>|<{>|<}>|#[0-9\?]|\\.+)$/.test(e):!1}var N0=class{constructor(e,t,r){this.errors=[],this.index=0,this.endCount=0;var i,s,c,u;r!=null||(r={}),this.tokens=e,this.context=t instanceof Eo&&!(r!=null&&r.parseMode)&&!r.mathstyle?t:new Eo({from:t,mathstyle:r.mathstyle},r.style),this.args=(i=r.args)!=null?i:void 0,this.smartFence=this.context.smartFence,this.parsingContext={parent:void 0,mathlist:[],style:(s=r.style)!=null?s:{},parseMode:(c=r.parseMode)!=null?c:"math",mathstyle:(u=r.mathstyle)!=null?u:"displaystyle",tabular:!1}}beginContext(e){var t,r,i;const s=this.parsingContext,c={parent:s,mathlist:[],style:m({},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(m({before:BA(this.tokens.slice(this.index,this.index+10)),after:BA(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 m({},e.style);e=e.parent}return{}}set style(e){this.parsingContext.style=e}end(){return this.endCount++,this.index>=this.tokens.length||this.endCount>1e3}next(){this.index+=1}get(){return this.endCount=0,this.index<this.tokens.length?this.tokens[this.index++]:""}peek(){return this.tokens[this.index]}match(e){return this.tokens[this.index]===e?(this.index++,!0):!1}lastSubsupAtom(){let e;return this.mathlist.length>0&&(e=this.mathlist[this.mathlist.length-1],e.type==="subsup"||e.subsupPlacement!==void 0)||(e=new ks({style:this.style}),this.mathlist.push(e)),e}hasPattern(e){return e.test(this.tokens[this.index])}hasInfixCommand(){var e;const{index:t}=this;if(t<this.tokens.length&&this.tokens[t].startsWith("\\")){const r=ct(this.tokens[t],this.parseMode);return!r||r.definitionType==="symbol"||r.ifMode&&!r.ifMode.includes(this.parseMode)?!1:(e=r.infix)!=null?e:!1}return!1}matchColumnSeparator(){return!this.tabularMode||this.peek()!=="&"?!1:(this.index++,!0)}matchRowSeparator(){if(!this.tabularMode)return!1;const e=this.peek();return e!=="\\\\"&&e!=="\\cr"&&e!=="\\tabularnewline"?!1:(this.index++,!0)}placeholder(){var e;const t=(e=this.args)==null?void 0:e.call(this,"?");return t?fc(t,{parseMode:this.parseMode,mathstyle:"textstyle"}):[new Tu({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();jd(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(jd(t))e+=t;else return e;this.next()}return e}scanBalancedString(){let e="",t=this.end(),r=1;for(;!t;){const i=this.get();i==="<space>"?e+=" ":i==="<{>"?(e+="{",r+=1):i==="<}>"?(r-=1,r>0?e+="}":this.index-=1):i==="<$>"?e+="$":i==="<$$>"?e+="$$":e+=i,t=r===0||this.end()}return e}scanLiteralGroup(){var e;if(!this.match("<{>"))return"";let t="",r=1;for(;r>0&&!this.end();){const i=this.get();i==="<}>"?(r-=1,r>0&&(t+="}")):i==="<{>"?(r+=1,t+="{"):(/\\[a-zA-Z]+$/.test(t)&&/^[a-zA-Z]/.test(i)&&(t+=" "),t+=(e={"<space>":" ","<$$>":"$$","<$>":"$"}[i])!=null?e:i)}return t}scanNumber(e=!0){var t,r;let i=!1,s=this.peek();for(;s==="<space>"||s==="+"||s==="-";)this.get(),s==="-"&&(i=!i),s=this.peek();e=!!e;let c=10,u=/\d/;if(this.match("'"))c=8,u=/[0-7]/,e=!0;else if(this.match('"'))c=16,u=/[\dA-F]/,e=!0;else if(this.match("x"))c=16,u=/[\dA-Fa-f]/,e=!0;else if(this.match("`"))return s=this.get(),s?s.length===2&&s.startsWith("\\")?{number:(i?-1:1)*((t=s.codePointAt(1))!=null?t:0),base:"alpha"}:{number:(i?-1:1)*((r=s.codePointAt(0))!=null?r:0),base:"alpha"}:null;let L="";for(;this.hasPattern(u);)L+=this.get();if(!e&&(this.match(".")||this.match(",")))for(L+=".";this.hasPattern(u);)L+=this.get();const z=e?Number.parseInt(L,c):Number.parseFloat(L);return Number.isNaN(z)?null:{number:i?-z:z,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()||!jd(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 L of t.params)if(L.isOptional)r.push(this.scanOptionalArgument(L.type));else{const z=this.scanArgument(L.type);z||this.onError({code:"missing-argument",arg:e}),r.push(z)}this.beginContext({tabular:t.tabular});const i=[],s=[];let c=[],u=!1;do if(this.end()&&(this.onError({code:"unbalanced-environment",arg:e}),u=!0),!u&&this.match("\\end")&&(this.scanArgument("string")!==e&&this.onError({code:"unbalanced-environment",arg:e}),u=!0),!u)if(this.matchColumnSeparator())c.push(this.mathlist),this.mathlist=[];else if(this.matchRowSeparator()){c.push(this.mathlist),this.mathlist=[];let L=null;this.skipWhitespace(),this.match("[")&&(L=this.scanDimen(),this.skipWhitespace(),this.match("]")),s.push(L!=null?L:{dimension:0}),i.push(c),c=[]}else this.mathlist.push(...this.scan(L=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline"].includes(L)));while(!u);return c.push(this.mathlist),c.length>0&&i.push(c),this.endContext(),t.createAtom(e,i,s,r)}scanExpression(){const e=this.mathlist;if(this.mathlist=[],this.parseExpression()){const t=this.mathlist;return this.mathlist=e,t}return this.mathlist=e,null}scan(e){this.beginContext(),e||(e=u=>u==="<}>");let t="",r=null,i=[],s=null;for(;!this.end()&&!e(this.peek());)this.hasInfixCommand()&&!t?(t=this.get(),r=ct(t,"math"),r&&(i=this.scanArguments(r)[1]),s=this.mathlist,this.mathlist=[]):this.parseExpression();let c;return t?(console.assert(!!r),i.unshift(this.mathlist),s&&i.unshift(s),c=[r.createAtom({command:t,args:i,style:this.style,mode:this.parseMode})]):c=this.mathlist,this.endContext(),c}scanGroup(){const e=this.index;if(!this.match("<{>"))return null;const t=this.scan(i=>i==="<}>");this.match("<}>")||this.onError({code:"unbalanced-braces"});const r=new ll(t,this.parseMode,this.style);return r.verbatimLatex=BA(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 tl("",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(!jd(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 Wo("\\right");if(this.match("\\mright"))return this.onError({code:"unbalanced-braces"}),new Wo("\\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 Wo(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 tl(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 Tr({type:"mord",command:"\\doubleprime",mode:"math",value:"\u2032\u2032"}),"superscript"):t.addChild(new Tr({type:"mord",command:"\\prime",mode:"math",value:"\u2032"}),"superscript"):(this.match("^")||this.match("_"))&&t.addChildren(et(this.scanArgument("expression")),e==="_"?"subscript":"superscript"),e=this.peek();return!0}parseLimits(){if(this.parseMode!=="math")return!1;const e=this.match("\\limits"),t=!e&&this.match("\\nolimits"),r=!t&&!e&&this.match("\\displaylimits");if(!e&&!t&&!r)return!1;const i=this.mathlist.length>0?this.mathlist[this.mathlist.length-1]:null;return i===null?!1:(i.explicitSubsupPlacement=!0,e&&(i.subsupPlacement="over-under"),t&&(i.subsupPlacement="adjacent"),r&&(i.subsupPlacement="auto"),!0)}scanArguments(e){if(!(e!=null&&e.params))return[void 0,[]];let t;const r=[];let i=e.infix?2:0;for(;i<e.params.length;){const s=e.params[i];s.type==="rest"?r.push(this.scan(c=>["<}>","&","\\end","\\cr","\\\\","\\tabularnewline","\\right"].includes(c))):s.isOptional?r.push(this.scanOptionalArgument(s.type)):s.type.endsWith("*")?t=s.type.slice(0,-1):r.push(this.scanArgument(s.type)),i+=1}return[t,r]}scanSymbolOrLiteral(){const e=this.peek();if(!e)return null;this.next();let t;if(jd(e)){const r=Gl.createAtom(this.parseMode,e,m({},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 Wo(e)];if(r.definitionType==="symbol"){const i=m({},this.style);r.variant&&(i.variant=r.variant),t=new Tr({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 Wo(e)];r.createAtom&&(t=r.createAtom({command:e,args:[],style:this.style,mode:this.parseMode}))}}return t?[t]:null}scanArgument(e){var t;this.skipFiller();const r=this.parseMode;if(e==="auto"&&(e=r),!this.match("<{>")){if(e==="string")return this.scanString();if(e==="value")return this.scanValue();if(e==="delim")return(t=this.scanDelim())!=null?t:".";if(e==="expression")return this.scanExpression();if(e==="math"){e!==r&&this.beginContext({mode:"math"});const s=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),s}if(e==="text"){e!==r&&this.beginContext({mode:"text"});const s=this.scanSymbolOrLiteral();return e!==r&&this.endContext(),s}return e==="balanced-string"||console.assert(!1),null}if(e==="text"){this.beginContext({mode:"text"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const s=this.mathlist;return this.endContext(),{group:s}}if(e==="math"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const s=this.mathlist;return this.endContext(),{group:s}}let i=null;if(e==="expression"){this.beginContext({mode:"math"});do this.mathlist.push(...this.scan());while(!this.match("<}>")&&!this.end());const s=this.mathlist;return this.endContext(),{group:s}}return e==="string"?i=this.scanString():e==="balanced-string"?i=this.scanBalancedString():e==="colspec"?i=this.scanColspec():e==="value"&&(i=this.scanValue()),this.skipUntilToken("<}>"),i}scanOptionalArgument(e){if(e=e==="auto"?this.parseMode:e,this.skipFiller(),!this.match("["))return null;let t=null;for(;!this.end()&&!this.match("]");)if(e==="string")t=this.scanString();else if(e==="value")t=this.scanValue();else if(e==="colspec")t=this.scanColspec();else if(e==="bbox"){const r={},i=this.scanString().toLowerCase().trim().split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const s of i){const c=s.match(/^\s*([\d.]+)\s*([a-z]{2})/);if(c)r.padding={dimension:parseInt(c[1]),unit:c[2]};else{const u=s.match(/^\s*border\s*:\s*(.*)/);u?r.border=u[1]:r.backgroundcolor={string:s}}}t=r}else e==="math"&&(this.beginContext({mode:"math"}),t=this.mathlist.concat(this.scan(r=>r==="]")),this.endContext());return t}scanSymbolOrCommand(e){var t,r,i;if(e==="\\placeholder"){const L=this.scanOptionalArgument("string"),z=this.scanOptionalArgument("math"),X=Tr.serialize(z,{defaultMode:"math"});let ce=[],Te;!Te&&X==="correct"?Te="correct":!Te&&X==="incorrect"?Te="incorrect":X!==""&&(ce=z);const nt=this.scanOptionalArgument("string")==="locked",vt=this.scanArgument("auto");let St;return vt&&Array.isArray(vt)&&vt.length>0?St=vt:vt&&typeof vt=="object"&&"group"in vt?St=vt.group:St=ce,L?[new Cf(L,Te,nt,St!=null?St:ce,{mode:this.parseMode,style:this.style})]:[new Tu({mode:this.parseMode,style:this.style})]}if(e==="\\renewcommand"||e==="\\newcommand"||e==="\\providecommand"||e==="\\def"){const L=this.index,z=this.scanLiteralGroup()||this.next();if(!z)return null;if(this.context.registers[z.substring(1)]){const X=this.scanArgument("string");X!==null&&(this.context.registers[z.substring(1)]=X);const ce=co([e,BA(this.tokens.slice(L,this.index))]);return[new Tr({type:"text",value:"",verbatimLatex:ce})]}}let s=this.scanMacro(e);if(s)return[s];const c=ct(e,this.parseMode);if(!c)return this.parseMode==="text"?(/[a-zA-Z]/.test((t=this.peek())!=null?t:"")&&(e+=" "),[...e].map(L=>new Tr({type:"text",value:L,mode:"text",style:this.style}))):(this.onError({code:"unknown-command",arg:e}),[new Wo(e)]);const u=this.index;if(c.definitionType==="symbol"){const L=m({},this.style);c.variant&&(L.variant=c.variant),s=new Tr({type:c.type,command:e,style:L,value:String.fromCodePoint(c.codepoint),mode:this.parseMode})}else{if(c.ifMode&&!c.ifMode.includes(this.parseMode))return[];const L=this.parseMode;c.applyMode&&(this.parseMode=c.applyMode);let z,X=[];if(c.parse?X=c.parse(this):[z,X]=this.scanArguments(c),this.parseMode=L,c.applyMode&&!c.applyStyle&&!c.createAtom)return et(X[0]);if(c.infix)return this.onError({code:"too-many-infix-commands",arg:e}),null;if(typeof c.createAtom=="function")s=c.createAtom({command:e,args:X,style:this.style,mode:this.parseMode}),z&&(s.body=et(this.scanArgument(z)));else if(typeof c.applyStyle=="function"){const ce=m(m({},this.style),c.applyStyle(e,X,this.context)),Te=this.parseMode;if(c.applyMode&&(this.parseMode=c.applyMode),z){const nt=this.style;this.style=ce;const vt=this.scanArgument(z);return this.style=nt,this.parseMode=Te,et(vt)}this.style=ce}else s=new Tr({type:"mord",command:(r=c.command)!=null?r:e,style:m({},this.style),value:e,mode:(i=c.applyMode)!=null?i:this.parseMode})}if(!s)return null;if(s instanceof Tr&&s.verbatimLatex===void 0&&!/^\\(llap|rlap|class|cssId|htmlData)$/.test(e)){const L=co([e,BA(this.tokens.slice(u,this.index))]);L&&(s.verbatimLatex=L)}if(s.verbatimLatex===null&&(s.verbatimLatex=void 0),s.isFunction&&this.smartFence){const L=this.scanSmartFence();if(L)return[s,L]}return[s]}scanSymbolCommandOrLiteral(){const e=this.get();if(!e)return null;if(jd(e)){const t=Gl.createAtom(this.parseMode,e,m({},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 Rd(" "," ",this.style)]:null:(e==="<}>"?this.onError({latex:"",code:"unbalanced-braces"}):this.onError({latex:"",code:"unexpected-token",arg:e}),null)}scanMacro(e){var t;const r=this.context.getMacro(e);if(!r)return null;const i=this.index,s=r.args,c={"?":(t=this.args)==null?void 0:t.call(this,"?")};for(let u=1;u<=s;u++){let L=this.scanLiteralGroup();if(!L){const z=this.index;this.scanExpression(),L=BA(this.tokens.slice(z,this.index))}c[u]=L}return new D0(e,{expand:r.expand,captureSelection:r.captureSelection,args:i===this.index?null:BA(this.tokens.slice(i,this.index)),style:this.parsingContext.style,body:fc(r.def,{context:this.context,parseMode:this.parseMode,args:u=>c[u],mathstyle:this.parsingContext.mathstyle,style:this.parsingContext.style})})}parseExpression(){var e,t,r,i;let s=(i=(r=(t=(e=this.scanEnvironment())!=null?e:this.scanModeShift())!=null?t:this.scanModeSet())!=null?r:this.scanGroup())!=null?i:this.scanLeftRight();if(s===null){if(this.parseSupSub()||this.parseLimits())return!0;s=this.scanSymbolCommandOrLiteral()}return s?(Array.isArray(s)?this.mathlist.push(...s):this.mathlist.push(s),!0):!1}};function fc(e,t){var r,i,s,c;const u=(r=t==null?void 0:t.args)!=null?r:void 0,L=new N0(td(e,u),t==null?void 0:t.context,{args:u,mathstyle:(i=t==null?void 0:t.mathstyle)!=null?i:"displaystyle",parseMode:(s=t==null?void 0:t.parseMode)!=null?s:"math",style:(c=t==null?void 0:t.style)!=null?c:{}}),z=[];for(;!L.end();)z.push(...L.scan(()=>!1));return z}function Ad(e,t){var r;const i=new N0(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 yp=class G1 extends Tr{constructor(t,r){super({type:"chem"},{command:t,mode:"math"});const i=Ks.go(vn.go(r,t==="\\pu"?"pu":"ce"),!1);this.body=fc(i),this._verbatimLatex=t+"{"+r+"}",this.arg=r,this.captureSelection=!0}static fromJson(t){return new G1(t.command,t.arg)}set verbatimLatex(t){}get verbatimLatex(){return this._verbatimLatex}toJson(){return I(m({},super.toJson()),{arg:this.arg})}render(t){const r=Tr.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}};ge(["ce","pu"],"{chemformula:balanced-string}",{createAtom:e=>{var t;return new yp(e.command,(t=e.args[0])!=null?t:"")}});var vn={go:function(e,t){if(!e)return[];t===void 0&&(t="ce");var r="0",i={};i.parenthesisLevel=0,e=e.replace(/\n/g," "),e=e.replace(/[\u2212\u2013\u2014\u2010]/g,"-"),e=e.replace(/[\u2026]/g,"...");for(var s,c=10,u=[];;){s!==e?(c=10,s=e):c--;var L=vn.stateMachines[t],z=L.transitions[r]||L.transitions["*"];e:for(var X=0;X<z.length;X++){var ce=vn.patterns.match_(z[X].pattern,e);if(ce){for(var Te=z[X].task,nt=0;nt<Te.action_.length;nt++){var vt;if(L.actions[Te.action_[nt].type_])vt=L.actions[Te.action_[nt].type_](i,ce.match_,Te.action_[nt].option);else if(vn.actions[Te.action_[nt].type_])vt=vn.actions[Te.action_[nt].type_](i,ce.match_,Te.action_[nt].option);else throw["MhchemBugA","mhchem bug A. Please report. ("+Te.action_[nt].type_+")"];vn.concatArray(u,vt)}if(r=Te.nextState||r,e.length>0){if(Te.revisit||(e=ce.remainder),!Te.toContinue)break e}else return u}}if(c<=0)throw["MhchemBugU","mhchem bug U. Please report."]}},concatArray:function(e,t){if(t)if(Object.prototype.toString.call(t)==="[object Array]")for(var r=0;r<t.length;r++)e.push(t[r]);else e.push(t)},patterns:{patterns:{empty:/^$/,else:/^./,else2:/^./,space:/^\s/,"space A":/^\s(?=[A-Z\\$])/,space$:/^\s$/,"a-z":/^[a-z]/,x:/^x/,x$:/^x$/,i$:/^i$/,letters:/^(?:[a-zA-Z\u03B1-\u03C9\u0391-\u03A9?@]|(?:\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))))+/,"\\greek":/^\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega|Gamma|Delta|Theta|Lambda|Xi|Pi|Sigma|Upsilon|Phi|Psi|Omega)(?:\s+|\{\}|(?![a-zA-Z]))/,"one lowercase latin letter $":/^(?:([a-z])(?:$|[^a-zA-Z]))$/,"$one lowercase latin letter$ $":/^\$(?:([a-z])(?:$|[^a-zA-Z]))\$$/,"one lowercase greek letter $":/^(?:\$?[\u03B1-\u03C9]\$?|\$?\\(?:alpha|beta|gamma|delta|epsilon|zeta|eta|theta|iota|kappa|lambda|mu|nu|xi|omicron|pi|rho|sigma|tau|upsilon|phi|chi|psi|omega)\s*\$?)(?:\s+|\{\}|(?![a-zA-Z]))$/,digits:/^[0-9]+/,"-9.,9":/^[+\-]?(?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))/,"-9.,9 no missing 0":/^[+\-]?[0-9]+(?:[.,][0-9]+)?/,"(-)(9.,9)(e)(99)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))?(\((?:[0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+))\))?(?:(?:([eE])|\s*(\*|x|\\times|\u00D7)\s*10\^)([+\-]?[0-9]+|\{[+\-]?[0-9]+\}))?/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"(-)(9)^(-9)":function(e){var t=e.match(/^(\+\-|\+\/\-|\+|\-|\\pm\s?)?([0-9]+(?:[,.][0-9]+)?|[0-9]*(?:\.[0-9]+)?)\^([+\-]?[0-9]+|\{[+\-]?[0-9]+\})/);return t&&t[0]?{match_:t.slice(1),remainder:e.substr(t[0].length)}:null},"state of aggregation $":function(e){var t=vn.patterns.findObserveGroups(e,"",/^\([a-z]{1,3}(?=[\),])/,")","");if(t&&t.remainder.match(/^($|[\s,;\)\]\}])/))return t;var r=e.match(/^(?:\((?:\\ca\s?)?\$[amothc]\$\))/);return r?{match_:r[0],remainder:e.substr(r[0].length)}:null},"_{(state of aggregation)}$":/^_\{(\([a-z]{1,3}\))\}/,"{[(":/^(?:\\\{|\[|\()/,")]}":/^(?:\)|\]|\\\})/,", ":/^[,;]\s*/,",":/^[,;]/,".":/^[.]/,". ":/^([.\u22C5\u00B7\u2022])\s*/,"...":/^\.\.\.(?=$|[^.])/,"* ":/^([*])\s*/,"^{(...)}":function(e){return vn.patterns.findObserveGroups(e,"^{","","","}")},"^($...$)":function(e){return vn.patterns.findObserveGroups(e,"^","$","$","")},"^a":/^\^([0-9]+|[^\\_])/,"^\\x{}{}":function(e){return vn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"^\\x{}":function(e){return vn.patterns.findObserveGroups(e,"^",/^\\[a-zA-Z]+\{/,"}","")},"^\\x":/^\^(\\[a-zA-Z]+)\s*/,"^(-1)":/^\^(-?\d+)/,"'":/^'/,"_{(...)}":function(e){return vn.patterns.findObserveGroups(e,"_{","","","}")},"_($...$)":function(e){return vn.patterns.findObserveGroups(e,"_","$","$","")},_9:/^_([+\-]?[0-9]+|[^\\])/,"_\\x{}{}":function(e){return vn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"_\\x{}":function(e){return vn.patterns.findObserveGroups(e,"_",/^\\[a-zA-Z]+\{/,"}","")},"_\\x":/^_(\\[a-zA-Z]+)\s*/,"^_":/^(?:\^(?=_)|\_(?=\^)|[\^_]$)/,"{}":/^\{\}/,"{...}":function(e){return vn.patterns.findObserveGroups(e,"","{","}","")},"{(...)}":function(e){return vn.patterns.findObserveGroups(e,"{","","","}")},"$...$":function(e){return vn.patterns.findObserveGroups(e,"","$","$","")},"${(...)}$":function(e){return vn.patterns.findObserveGroups(e,"${","","","}$")},"$(...)$":function(e){return vn.patterns.findObserveGroups(e,"$","","","$")},"=<>":/^[=<>]/,"#":/^[#\u2261]/,"+":/^\+/,"-$":/^-(?=[\s_},;\]/]|$|\([a-z]+\))/,"-9":/^-(?=[0-9])/,"- orbital overlap":/^-(?=(?:[spd]|sp)(?:$|[\s,;\)\]\}]))/,"-":/^-/,"pm-operator":/^(?:\\pm|\$\\pm\$|\+-|\+\/-)/,operator:/^(?:\+|(?:[\-=<>]|<<|>>|\\approx|\$\\approx\$)(?=\s|$|-?[0-9]))/,arrowUpDown:/^(?:v|\(v\)|\^|\(\^\))(?=$|[\s,;\)\]\}])/,"\\bond{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\bond{","","","}")},"->":/^(?:<->|<-->|->|<-|<=>>|<<=>|<=>|[\u2192\u27F6\u21CC])/,CMT:/^[CMT](?=\[)/,"[(...)]":function(e){return vn.patterns.findObserveGroups(e,"[","","","]")},"1st-level escape":/^(&|\\\\|\\hline)\s*/,"\\,":/^(?:\\[,\ ;:])/,"\\x{}{}":function(e){return vn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","","","{","}","",!0)},"\\x{}":function(e){return vn.patterns.findObserveGroups(e,"",/^\\[a-zA-Z]+\{/,"}","")},"\\ca":/^\\ca(?:\s+|(?![a-zA-Z]))/,"\\x":/^(?:\\[a-zA-Z]+\s*|\\[_&{}%])/,orbital:/^(?:[0-9]{1,2}[spdfgh]|[0-9]{0,2}sp)(?=$|[^a-zA-Z])/,others:/^[\/~|]/,"\\frac{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\frac{","","","}","{","","","}")},"\\overset{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\overset{","","","}","{","","","}")},"\\underset{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\underset{","","","}","{","","","}")},"\\underbrace{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\underbrace{","","","}_","{","","","}")},"\\color{(...)}0":function(e){return vn.patterns.findObserveGroups(e,"\\color{","","","}")},"\\color{(...)}{(...)}1":function(e){return vn.patterns.findObserveGroups(e,"\\color{","","","}","{","","","}")},"\\color(...){(...)}2":function(e){return vn.patterns.findObserveGroups(e,"\\color","\\","",/^(?=\{)/,"{","","","}")},"\\ce{(...)}":function(e){return vn.patterns.findObserveGroups(e,"\\ce{","","","}")},oxidation$:/^(?:[+-][IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"d-oxidation$":/^(?:[+-]?\s?[IVX]+|\\pm\s*0|\$\\pm\$\s*0)$/,"roman numeral":/^[IVX]+/,"1/2$":/^[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+(?:\$[a-z]\$|[a-z])?$/,amount:function(e){var t;if(t=e.match(/^(?:(?:(?:\([+\-]?[0-9]+\/[0-9]+\)|[+\-]?(?:[0-9]+|\$[a-z]\$|[a-z])\/[0-9]+|[+\-]?[0-9]+[.,][0-9]+|[+\-]?\.[0-9]+|[+\-]?[0-9]+)(?:[a-z](?=\s*[A-Z]))?)|[+\-]?[a-z](?=\s*[A-Z])|\+(?!\s))/),t)return{match_:t[0],remainder:e.substr(t[0].length)};var r=vn.patterns.findObserveGroups(e,"","$","$","");return r&&(t=r.match_.match(/^\$(?:\(?[+\-]?(?:[0-9]*[a-z]?[+\-])?[0-9]*[a-z](?:[+\-][0-9]*[a-z]?)?\)?|\+|-)\$$/),t)?{match_:t[0],remainder:e.substr(t[0].length)}:null},amount2:function(e){return this.amount(e)},"(KV letters),":/^(?:[A-Z][a-z]{0,2}|i)(?=,)/,formula$:function(e){if(e.match(/^\([a-z]+\)$/))return null;var t=e.match(/^(?:[a-z]|(?:[0-9\ \+\-\,\.\(\)]+[a-z])+[0-9\ \+\-\,\.\(\)]*|(?:[a-z][0-9\ \+\-\,\.\(\)]+)+[a-z]?)$/);return t?{match_:t[0],remainder:e.substr(t[0].length)}:null},uprightEntities:/^(?:pH|pOH|pC|pK|iPr|iBu)(?=$|[^a-zA-Z])/,"/":/^\s*(\/)\s*/,"//":/^\s*(\/\/)\s*/,"*":/^\s*[*.]\s*/},findObserveGroups:function(e,t,r,i,s,c,u,L,z,X){var ce=function(vr,nn){if(typeof nn=="string")return vr.indexOf(nn)!==0?null:nn;var Ln=vr.match(nn);return Ln?Ln[0]:null},Te=function(vr,nn,Ln){for(var un=0;nn<vr.length;){var Ci=vr.charAt(nn),Yi=ce(vr.substr(nn),Ln);if(Yi!==null&&un===0)return{endMatchBegin:nn,endMatchEnd:nn+Yi.length};if(Ci==="{")un++;else if(Ci==="}"){if(un===0)throw["ExtraCloseMissingOpen","Extra close brace or missing open brace"];un--}nn++}return un>0,null},nt=ce(e,t);if(nt===null||(e=e.substr(nt.length),nt=ce(e,r),nt===null))return null;var vt=Te(e,nt.length,i||s);if(vt===null)return null;var St=e.substring(0,i?vt.endMatchEnd:vt.endMatchBegin);if(c||u){var xr=this.findObserveGroups(e.substr(vt.endMatchEnd),c,u,L,z);if(xr===null)return null;var Sn=[St,xr.match_];return{match_:X?Sn.join(""):Sn,remainder:xr.remainder}}else return{match_:St,remainder:e.substr(vt.endMatchEnd)}},match_:function(e,t){var r=vn.patterns.patterns[e];if(r===void 0)throw["MhchemBugP","mhchem bug P. Please report. ("+e+")"];if(typeof r=="function")return vn.patterns.patterns[e](t);var i=t.match(r);if(i){var s;return i[2]?s=[i[1],i[2]]:i[1]?s=i[1]:s=i[0],{match_:s,remainder:t.substr(i[0].length)}}return null}},actions:{"a=":function(e,t){e.a=(e.a||"")+t},"b=":function(e,t){e.b=(e.b||"")+t},"p=":function(e,t){e.p=(e.p||"")+t},"o=":function(e,t){e.o=(e.o||"")+t},"q=":function(e,t){e.q=(e.q||"")+t},"d=":function(e,t){e.d=(e.d||"")+t},"rm=":function(e,t){e.rm=(e.rm||"")+t},"text=":function(e,t){e.text_=(e.text_||"")+t},insert:function(e,t,r){return{type_:r}},"insert+p1":function(e,t,r){return{type_:r,p1:t}},"insert+p1+p2":function(e,t,r){return{type_:r,p1:t[0],p2:t[1]}},copy:function(e,t){return t},rm:function(e,t){return{type_:"rm",p1:t||""}},text:function(e,t){return vn.go(t,"text")},"{text}":function(e,t){var r=["{"];return vn.concatArray(r,vn.go(t,"text")),r.push("}"),r},"tex-math":function(e,t){return vn.go(t,"tex-math")},"tex-math tight":function(e,t){return vn.go(t,"tex-math tight")},bond:function(e,t,r){return{type_:"bond",kind_:r||t}},"color0-output":function(e,t){return{type_:"color0",color:t[0]}},ce:function(e,t){return vn.go(t)},"1/2":function(e,t){var r=[];t.match(/^[+\-]/)&&(r.push(t.substr(0,1)),t=t.substr(1));var i=t.match(/^([0-9]+|\$[a-z]\$|[a-z])\/([0-9]+)(\$[a-z]\$|[a-z])?$/);return i[1]=i[1].replace(/\$/g,""),r.push({type_:"frac",p1:i[1],p2:i[2]}),i[3]&&(i[3]=i[3].replace(/\$/g,""),r.push({type_:"tex-math",p1:i[3]})),r},"9,9":function(e,t){return vn.go(t,"9,9")}},createTransitions:function(e){var t,r,i,s,c={};for(t in e)for(r in e[t])for(i=r.split("|"),e[t][r].stateArray=i,s=0;s<i.length;s++)c[i[s]]=[];for(t in e)for(r in e[t])for(i=e[t][r].stateArray||[],s=0;s<i.length;s++){var u=e[t][r];if(u.action_){u.action_=[].concat(u.action_);for(var L=0;L<u.action_.length;L++)typeof u.action_[L]=="string"&&(u.action_[L]={type_:u.action_[L]})}else u.action_=[];for(var z=t.split("|"),X=0;X<z.length;X++)if(i[s]==="*")for(var ce in c)c[ce].push({pattern:z[X],task:u});else c[i[s]].push({pattern:z[X],task:u})}return c},stateMachines:{}};vn.stateMachines={ce:{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},else:{"0|1|2":{action_:"beginsWithBond=false",revisit:!0,toContinue:!0}},oxidation$:{0:{action_:"oxidation-output"}},CMT:{r:{action_:"rdt=",nextState:"rt"},rd:{action_:"rqt=",nextState:"rdt"}},arrowUpDown:{"0|1|2|as":{action_:["sb=false","output","operator"],nextState:"1"}},uprightEntities:{"0|1|2":{action_:["o=","output"],nextState:"1"}},orbital:{"0|1|2|3":{action_:"o=",nextState:"o"}},"->":{"0|1|2|3":{action_:"r=",nextState:"r"},"a|as":{action_:["output","r="],nextState:"r"},"*":{action_:["output","r="],nextState:"r"}},"+":{o:{action_:"d= kv",nextState:"d"},"d|D":{action_:"d=",nextState:"d"},q:{action_:"d=",nextState:"qd"},"qd|qD":{action_:"d=",nextState:"qd"},dq:{action_:["output","d="],nextState:"d"},3:{action_:["sb=false","output","operator"],nextState:"0"}},amount:{"0|2":{action_:"a=",nextState:"a"}},"pm-operator":{"0|1|2|a|as":{action_:["sb=false","output",{type_:"operator",option:"\\pm"}],nextState:"0"}},operator:{"0|1|2|a|as":{action_:["sb=false","output","operator"],nextState:"0"}},"-$":{"o|q":{action_:["charge or bond","output"],nextState:"qd"},d:{action_:"d=",nextState:"d"},D:{action_:["output",{type_:"bond",option:"-"}],nextState:"3"},q:{action_:"d=",nextState:"qd"},qd:{action_:"d=",nextState:"qd"},"qD|dq":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},"-9":{"3|o":{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"3"}},"- orbital overlap":{o:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},d:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"}},"-":{"0|1|2":{action_:[{type_:"output",option:1},"beginsWithBond=true",{type_:"bond",option:"-"}],nextState:"3"},3:{action_:{type_:"bond",option:"-"}},a:{action_:["output",{type_:"insert",option:"hyphen"}],nextState:"2"},as:{action_:[{type_:"output",option:2},{type_:"bond",option:"-"}],nextState:"3"},b:{action_:"b="},o:{action_:{type_:"- after o/d",option:!1},nextState:"2"},q:{action_:{type_:"- after o/d",option:!1},nextState:"2"},"d|qd|dq":{action_:{type_:"- after o/d",option:!0},nextState:"2"},"D|qD|p":{action_:["output",{type_:"bond",option:"-"}],nextState:"3"}},amount2:{"1|3":{action_:"a=",nextState:"a"}},letters:{"0|1|2|3|a|as|b|p|bp|o":{action_:"o=",nextState:"o"},"q|dq":{action_:["output","o="],nextState:"o"},"d|D|qd|qD":{action_:"o after d",nextState:"o"}},digits:{o:{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},q:{action_:["output","o="],nextState:"o"},a:{action_:"o=",nextState:"o"}},"space A":{"b|p|bp":{}},space:{a:{nextState:"as"},0:{action_:"sb=false"},"1|2":{action_:"sb=true"},"r|rt|rd|rdt|rdq":{action_:"output",nextState:"0"},"*":{action_:["output","sb=true"],nextState:"1"}},"1st-level escape":{"1|2":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}]},"*":{action_:["output",{type_:"insert+p1",option:"1st-level escape"}],nextState:"0"}},"[(...)]":{"r|rt":{action_:"rd=",nextState:"rd"},"rd|rdt":{action_:"rq=",nextState:"rdq"}},"...":{"o|d|D|dq|qd|qD":{action_:["output",{type_:"bond",option:"..."}],nextState:"3"},"*":{action_:[{type_:"output",option:1},{type_:"insert",option:"ellipsis"}],nextState:"1"}},". |* ":{"*":{action_:["output",{type_:"insert",option:"addition compound"}],nextState:"1"}},"state of aggregation $":{"*":{action_:["output","state of aggregation"],nextState:"1"}},"{[(":{"a|as|o":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"0|1|2|3":{action_:["o=","output","parenthesisLevel++"],nextState:"2"},"*":{action_:["output","o=","output","parenthesisLevel++"],nextState:"2"}},")]}":{"0|1|2|3|b|p|bp|o":{action_:["o=","parenthesisLevel--"],nextState:"o"},"a|as|d|D|q|qd|qD|dq":{action_:["output","o=","parenthesisLevel--"],nextState:"o"}},", ":{"*":{action_:["output","comma"],nextState:"0"}},"^_":{"*":{}},"^{(...)}|^($...$)":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"D"},q:{action_:"d=",nextState:"qD"},"d|D|qd|qD|dq":{action_:["output","d="],nextState:"D"}},"^a|^\\x{}{}|^\\x{}|^\\x|'":{"0|1|2|as":{action_:"b=",nextState:"b"},p:{action_:"b=",nextState:"bp"},"3|o":{action_:"d= kv",nextState:"d"},q:{action_:"d=",nextState:"qd"},"d|qd|D|qD":{action_:"d="},dq:{action_:["output","d="],nextState:"d"}},"_{(state of aggregation)}$":{"d|D|q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"_{(...)}|_($...$)|_9|_\\x{}{}|_\\x{}|_\\x":{"0|1|2|as":{action_:"p=",nextState:"p"},b:{action_:"p=",nextState:"bp"},"3|o":{action_:"q=",nextState:"q"},"d|D":{action_:"q=",nextState:"dq"},"q|qd|qD|dq":{action_:["output","q="],nextState:"q"}},"=<>":{"0|1|2|3|a|as|o|q|d|D|qd|qD|dq":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"#":{"0|1|2|3|a|as|o":{action_:[{type_:"output",option:2},{type_:"bond",option:"#"}],nextState:"3"}},"{}":{"*":{action_:{type_:"output",option:1},nextState:"1"}},"{...}":{"0|1|2|3|a|as|b|p|bp":{action_:"o=",nextState:"o"},"o|d|D|q|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"$...$":{a:{action_:"a="},"0|1|2|3|as|b|p|bp|o":{action_:"o=",nextState:"o"},"as|o":{action_:"o="},"q|d|D|qd|qD|dq":{action_:["output","o="],nextState:"o"}},"\\bond{(...)}":{"*":{action_:[{type_:"output",option:2},"bond"],nextState:"3"}},"\\frac{(...)}":{"*":{action_:[{type_:"output",option:1},"frac-output"],nextState:"3"}},"\\overset{(...)}":{"*":{action_:[{type_:"output",option:2},"overset-output"],nextState:"3"}},"\\underset{(...)}":{"*":{action_:[{type_:"output",option:2},"underset-output"],nextState:"3"}},"\\underbrace{(...)}":{"*":{action_:[{type_:"output",option:2},"underbrace-output"],nextState:"3"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:[{type_:"output",option:2},"color-output"],nextState:"3"}},"\\color{(...)}0":{"*":{action_:[{type_:"output",option:2},"color0-output"]}},"\\ce{(...)}":{"*":{action_:[{type_:"output",option:2},"ce"],nextState:"3"}},"\\,":{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"1"}},"\\x{}{}|\\x{}|\\x":{"0|1|2|3|a|as|b|p|bp|o|c0":{action_:["o=","output"],nextState:"3"},"*":{action_:["output","o=","output"],nextState:"3"}},others:{"*":{action_:[{type_:"output",option:1},"copy"],nextState:"3"}},else2:{a:{action_:"a to o",nextState:"o",revisit:!0},as:{action_:["output","sb=true"],nextState:"1",revisit:!0},"r|rt|rd|rdt|rdq":{action_:["output"],nextState:"0",revisit:!0},"*":{action_:["output","copy"],nextState:"3"}}}),actions:{"o after d":function(e,t){var r;if((e.d||"").match(/^[0-9]+$/)){var i=e.d;e.d=void 0,r=this.output(e),e.b=i}else r=this.output(e);return vn.actions["o="](e,t),r},"d= kv":function(e,t){e.d=t,e.dType="kv"},"charge or bond":function(e,t){if(e.beginsWithBond){var r=[];return vn.concatArray(r,this.output(e)),vn.concatArray(r,vn.actions.bond(e,t,"-")),r}else e.d=t},"- after o/d":function(e,t,r){var i=vn.patterns.match_("orbital",e.o||""),s=vn.patterns.match_("one lowercase greek letter $",e.o||""),c=vn.patterns.match_("one lowercase latin letter $",e.o||""),u=vn.patterns.match_("$one lowercase latin letter$ $",e.o||""),L=t==="-"&&(i&&i.remainder===""||s||c||u);L&&!e.a&&!e.b&&!e.p&&!e.d&&!e.q&&!i&&c&&(e.o="$"+e.o+"$");var z=[];return L?(vn.concatArray(z,this.output(e)),z.push({type_:"hyphen"})):(i=vn.patterns.match_("digits",e.d||""),r&&i&&i.remainder===""?(vn.concatArray(z,vn.actions["d="](e,t)),vn.concatArray(z,this.output(e))):(vn.concatArray(z,this.output(e)),vn.concatArray(z,vn.actions.bond(e,t,"-")))),z},"a to o":function(e){e.o=e.a,e.a=void 0},"sb=true":function(e){e.sb=!0},"sb=false":function(e){e.sb=!1},"beginsWithBond=true":function(e){e.beginsWithBond=!0},"beginsWithBond=false":function(e){e.beginsWithBond=!1},"parenthesisLevel++":function(e){e.parenthesisLevel++},"parenthesisLevel--":function(e){e.parenthesisLevel--},"state of aggregation":function(e,t){return{type_:"state of aggregation",p1:vn.go(t,"o")}},comma:function(e,t){var r=t.replace(/\s*$/,""),i=r!==t;return i&&e.parenthesisLevel===0?{type_:"comma enumeration L",p1:r}:{type_:"comma enumeration M",p1:r}},output:function(e,t,r){var i;if(!e.r)i=[],!e.a&&!e.b&&!e.p&&!e.o&&!e.q&&!e.d&&!r||(e.sb&&i.push({type_:"entitySkip"}),!e.o&&!e.q&&!e.d&&!e.b&&!e.p&&r!==2?(e.o=e.a,e.a=void 0):!e.o&&!e.q&&!e.d&&(e.b||e.p)?(e.o=e.a,e.d=e.b,e.q=e.p,e.a=e.b=e.p=void 0):e.o&&e.dType==="kv"&&vn.patterns.match_("d-oxidation$",e.d||"")?e.dType="oxidation":e.o&&e.dType==="kv"&&!e.q&&(e.dType=void 0),i.push({type_:"chemfive",a:vn.go(e.a,"a"),b:vn.go(e.b,"bd"),p:vn.go(e.p,"pq"),o:vn.go(e.o,"o"),q:vn.go(e.q,"pq"),d:vn.go(e.d,e.dType==="oxidation"?"oxidation":"bd"),dType:e.dType}));else{var s;e.rdt==="M"?s=vn.go(e.rd,"tex-math"):e.rdt==="T"?s=[{type_:"text",p1:e.rd||""}]:s=vn.go(e.rd);var c;e.rqt==="M"?c=vn.go(e.rq,"tex-math"):e.rqt==="T"?c=[{type_:"text",p1:e.rq||""}]:c=vn.go(e.rq),i={type_:"arrow",r:e.r,rd:s,rq:c}}for(var u in e)u!=="parenthesisLevel"&&u!=="beginsWithBond"&&delete e[u];return i},"oxidation-output":function(e,t){var r=["{"];return vn.concatArray(r,vn.go(t,"oxidation")),r.push("}"),r},"frac-output":function(e,t){return{type_:"frac-ce",p1:vn.go(t[0]),p2:vn.go(t[1])}},"overset-output":function(e,t){return{type_:"overset",p1:vn.go(t[0]),p2:vn.go(t[1])}},"underset-output":function(e,t){return{type_:"underset",p1:vn.go(t[0]),p2:vn.go(t[1])}},"underbrace-output":function(e,t){return{type_:"underbrace",p1:vn.go(t[0]),p2:vn.go(t[1])}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:vn.go(t[1])}},"r=":function(e,t){e.r=t},"rdt=":function(e,t){e.rdt=t},"rd=":function(e,t){e.rd=t},"rqt=":function(e,t){e.rqt=t},"rq=":function(e,t){e.rq=t},operator:function(e,t,r){return{type_:"operator",kind_:r||t}}}},a:{transitions:vn.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},"$(...)$":{"*":{action_:"tex-math tight",nextState:"1"}},",":{"*":{action_:{type_:"insert",option:"commaDecimal"}}},else2:{"*":{action_:"copy"}}}),actions:{}},o:{transitions:vn.createTransitions({empty:{"*":{}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"1",revisit:!0}},letters:{"*":{action_:"rm"}},"\\ca":{"*":{action_:{type_:"insert",option:"circa"}}},"\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"{text}"}},else2:{"*":{action_:"copy"}}}),actions:{}},text:{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},"{...}":{"*":{action_:"text="}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"\\greek":{"*":{action_:["output","rm"]}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:["output","copy"]}},else:{"*":{action_:"text="}}}),actions:{output:function(e){if(e.text_){var t={type_:"text",p1:e.text_};for(var r in e)delete e[r];return t}}}},pq:{transitions:vn.createTransitions({empty:{"*":{}},"state of aggregation $":{"*":{action_:"state of aggregation"}},i$:{0:{nextState:"!f",revisit:!0}},"(KV letters),":{0:{action_:"rm",nextState:"0"}},formula$:{0:{nextState:"f",revisit:!0}},"1/2$":{0:{action_:"1/2"}},else:{0:{nextState:"!f",revisit:!0}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"a-z":{f:{action_:"tex-math"}},letters:{"*":{action_:"rm"}},"-9.,9":{"*":{action_:"9,9"}},",":{"*":{action_:{type_:"insert+p1",option:"comma enumeration S"}}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"state of aggregation":function(e,t){return{type_:"state of aggregation subscript",p1:vn.go(t,"o")}},"color-output":function(e,t){return{type_:"color",color1:t[0],color2:vn.go(t[1],"pq")}}}},bd:{transitions:vn.createTransitions({empty:{"*":{}},x$:{0:{nextState:"!f",revisit:!0}},formula$:{0:{nextState:"f",revisit:!0}},else:{0:{nextState:"!f",revisit:!0}},"-9.,9 no missing 0":{"*":{action_:"9,9"}},".":{"*":{action_:{type_:"insert",option:"electron dot"}}},"a-z":{f:{action_:"tex-math"}},x:{"*":{action_:{type_:"insert",option:"KV x"}}},letters:{"*":{action_:"rm"}},"'":{"*":{action_:{type_:"insert",option:"prime"}}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},"{(...)}":{"*":{action_:"text"}},"\\color{(...)}{(...)}1|\\color(...){(...)}2":{"*":{action_:"color-output"}},"\\color{(...)}0":{"*":{action_:"color0-output"}},"\\ce{(...)}":{"*":{action_:"ce"}},"\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"copy"}},else2:{"*":{action_:"copy"}}}),actions:{"color-output":function(e,t){return{type_:"color",color1:t[0],color2:vn.go(t[1],"bd")}}}},oxidation:{transitions:vn.createTransitions({empty:{"*":{}},"roman numeral":{"*":{action_:"roman-numeral"}},"${(...)}$|$(...)$":{"*":{action_:"tex-math"}},else:{"*":{action_:"copy"}}}),actions:{"roman-numeral":function(e,t){return{type_:"roman numeral",p1:t||""}}}},"tex-math":{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},else:{"*":{action_:"o="}}}),actions:{output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"tex-math tight":{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},"\\ce{(...)}":{"*":{action_:["output","ce"]}},"{...}|\\,|\\x{}{}|\\x{}|\\x":{"*":{action_:"o="}},"-|+":{"*":{action_:"tight operator"}},else:{"*":{action_:"o="}}}),actions:{"tight operator":function(e,t){e.o=(e.o||"")+"{"+t+"}"},output:function(e){if(e.o){var t={type_:"tex-math",p1:e.o};for(var r in e)delete e[r];return t}}}},"9,9":{transitions:vn.createTransitions({empty:{"*":{}},",":{"*":{action_:"comma"}},else:{"*":{action_:"copy"}}}),actions:{comma:function(){return{type_:"commaDecimal"}}}},pu:{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},space$:{"*":{action_:["output","space"]}},"{[(|)]}":{"0|a":{action_:"copy"}},"(-)(9)^(-9)":{0:{action_:"number^",nextState:"a"}},"(-)(9.,9)(e)(99)":{0:{action_:"enumber",nextState:"a"}},space:{"0|a":{}},"pm-operator":{"0|a":{action_:{type_:"operator",option:"\\pm"},nextState:"0"}},operator:{"0|a":{action_:"copy",nextState:"0"}},"//":{d:{action_:"o=",nextState:"/"}},"/":{d:{action_:"o=",nextState:"/"}},"{...}|else":{"0|d":{action_:"d=",nextState:"d"},a:{action_:["space","d="],nextState:"d"},"/|q":{action_:"q=",nextState:"q"}}}),actions:{enumber:function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),t[1]&&(vn.concatArray(r,vn.go(t[1],"pu-9,9")),t[2]&&(t[2].match(/[,.]/)?vn.concatArray(r,vn.go(t[2],"pu-9,9")):r.push(t[2])),(t[3]||t[4])&&(t[3]==="e"||t[4]==="*"?r.push({type_:"cdot"}):r.push({type_:"times"}))),t[5]&&r.push("10^{"+t[5]+"}"),r},"number^":function(e,t){var r=[];return t[0]==="+-"||t[0]==="+/-"?r.push("\\pm "):t[0]&&r.push(t[0]),vn.concatArray(r,vn.go(t[1],"pu-9,9")),r.push("^{"+t[2]+"}"),r},operator:function(e,t,r){return{type_:"operator",kind_:r||t}},space:function(){return{type_:"pu-space-1"}},output:function(e){var t,r=vn.patterns.match_("{(...)}",e.d||"");r&&r.remainder===""&&(e.d=r.match_);var i=vn.patterns.match_("{(...)}",e.q||"");if(i&&i.remainder===""&&(e.q=i.match_),e.d&&(e.d=e.d.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.d=e.d.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F")),e.q){e.q=e.q.replace(/\u00B0C|\^oC|\^{o}C/g,"{}^{\\circ}C"),e.q=e.q.replace(/\u00B0F|\^oF|\^{o}F/g,"{}^{\\circ}F");var s={d:vn.go(e.d,"pu"),q:vn.go(e.q,"pu")};e.o==="//"?t={type_:"pu-frac",p1:s.d,p2:s.q}:(t=s.d,s.d.length>1||s.q.length>1?t.push({type_:" / "}):t.push({type_:"/"}),vn.concatArray(t,s.q))}else t=vn.go(e.d,"pu-2");for(var c in e)delete e[c];return t}}},"pu-2":{transitions:vn.createTransitions({empty:{"*":{action_:"output"}},"*":{"*":{action_:["output","cdot"],nextState:"0"}},"\\x":{"*":{action_:"rm="}},space:{"*":{action_:["output","space"],nextState:"0"}},"^{(...)}|^(-1)":{1:{action_:"^(-1)"}},"-9.,9":{0:{action_:"rm=",nextState:"0"},1:{action_:"^(-1)",nextState:"0"}},"{...}|else":{"*":{action_:"rm=",nextState:"1"}}}),actions:{cdot:function(){return{type_:"tight cdot"}},"^(-1)":function(e,t){e.rm+="^{"+t+"}"},space:function(){return{type_:"pu-space-2"}},output:function(e){var t=[];if(e.rm){var r=vn.patterns.match_("{(...)}",e.rm||"");r&&r.remainder===""?t=vn.go(r.match_,"pu"):t={type_:"rm",p1:e.rm}}for(var i in e)delete e[i];return t}}},"pu-9,9":{transitions:vn.createTransitions({empty:{0:{action_:"output-0"},o:{action_:"output-o"}},",":{0:{action_:["output-0","comma"],nextState:"o"}},".":{0:{action_:["output-0","copy"],nextState:"o"}},else:{"*":{action_:"text="}}}),actions:{comma:function(){return{type_:"commaDecimal"}},"output-0":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){var r=e.text_.length%3;r===0&&(r=3);for(var i=e.text_.length-3;i>0;i-=3)t.push(e.text_.substr(i,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(0,r)),t.reverse()}else t.push(e.text_);for(var s in e)delete e[s];return t},"output-o":function(e){var t=[];if(e.text_=e.text_||"",e.text_.length>4){for(var r=e.text_.length-3,i=0;i<r;i+=3)t.push(e.text_.substr(i,3)),t.push({type_:"1000 separator"});t.push(e.text_.substr(i))}else t.push(e.text_);for(var s in e)delete e[s];return t}}}};var 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)},u=Ks._getArrow(e.r);c.rd||c.rq?e.r==="<=>"||e.r==="<=>>"||e.r==="<<=>"||e.r==="<-->"?(u="\\long"+u,c.rd&&(u="\\overset{"+c.rd+"}{"+u+"}"),c.rq&&(e.r==="<-->"?u="\\underset{\\lower2mu{"+c.rq+"}}{"+u+"}":u="\\underset{\\lower6mu{"+c.rq+"}}{"+u+"}"),u=" {}\\mathrel{"+u+"}{} "):(c.rq&&(u+="[{"+c.rq+"}]"),u+="{"+c.rd+"}",u=" {}\\mathrel{\\x"+u+"}{} "):u=" {}\\mathrel{\\long"+u+"}{} ",t=u;break;case"operator":t=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 O0(e){}function P0(e){}var Kc=class X1 extends Tr{constructor(t){super(I(m({},t),{type:"delim"})),this.value=t.delim,this.size=t.size}static fromJson(t){return new X1(t)}toJson(){return I(m({},super.toJson()),{delim:this.value,size:this.size})}render(t){return new Hr(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):Cs(this.command,this.value)}},Sc=class J1 extends Tr{constructor(t){super(I(m({},t),{type:"sizeddelim",value:t.delim})),this.delimType=t.delimType,this.size=t.size}static fromJson(t){return new J1(t)}toJson(){return I(m({},super.toJson()),{delim:this.value,size:this.size,delimType:this.delimType})}render(t){let r=Tm(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):Cs(this.command,this.value)}},oc=class Y1 extends Tr{constructor(t,r,i,s){var c,u;super({type:"enclose",command:t,style:s.style}),this.body=r,this.backgroundcolor=s.backgroundcolor,i.updiagonalarrow&&(i.updiagonalstrike=!1),i.box&&(i.left=!1,i.right=!1,i.bottom=!1,i.top=!1),this.notation=i,this.shadow=(c=s.shadow)!=null?c:"none",this.strokeWidth=(u=s.strokeWidth)!=null?u:"0.06em",this.strokeWidth||(this.strokeWidth="0.06em"),this.strokeStyle=s.strokeStyle,this.svgStrokeStyle=s.svgStrokeStyle,this.strokeColor=s.strokeColor,this.borderStyle=s.borderStyle,this.padding=s.padding,this.captureSelection=!1}static fromJson(t){return new Y1(t.command,t.body,t.notation,t)}toJson(){return I(m({},super.toJson()),{notation:this.notation,shadow:this.shadow,strokeWidth:this.strokeWidth,strokeStyle:this.strokeStyle,svgStrokeStyle:this.svgStrokeStyle,strokeColor:this.strokeColor,borderStyle:this.borderStyle,padding:this.padding})}_serialize(t){var r;if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const i=ct(this.command,this.mode);if(i!=null&&i.serialize)return i.serialize(this,t);let s=(r=this.command)!=null?r:"";if(this.command==="\\enclose"){s+="{"+Object.keys(this.notation).join(" ")+"}";let c="",u="";this.backgroundcolor&&this.backgroundcolor!=="transparent"&&(c+=u+'mathbackground="'+this.backgroundcolor+'"',u=","),this.shadow&&this.shadow!=="auto"&&(c+=u+'shadow="'+this.shadow+'"',u=","),this.strokeWidth||this.strokeStyle!=="solid"?(c+=u+this.borderStyle,u=","):this.strokeColor&&this.strokeColor!=="currentColor"&&(c+=u+'mathcolor="'+this.strokeColor+'"',u=","),c&&(s+=`[${c}]`)}return Cs(s,this.bodyToLatex(t))}render(t){const r=new Eo({parent:t},this.style),i=Tr.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 u=new Hr(null,{classes:"ML__notation"});let L=i.height+i.depth+2*c;const z=i.width+2*c;let X="";if(this.notation.horizontalstrike&&(X+=this.line(3,50,97,50)),this.notation.verticalstrike&&(X+=this.line(50,3,50,97)),this.notation.updiagonalstrike&&(X+=this.line(3,97,97,3)),this.notation.downdiagonalstrike&&(X+=this.line(3,3,97,97)),this.notation.updiagonalarrow){X+=this.line(c.toString(),(c+i.depth+i.height).toString(),(c+i.width).toString(),c.toString());const St=.03*Math.sqrt(z*z+L*L)*1,xr=i.width*St,Sn=(i.depth+i.height)*St,vr=c+i.width;let nn=c;nn+Sn-.4*xr<0&&(nn=.4*xr-Sn),X+='<polygon points="',X+=`${vr},${nn} ${vr-xr-.4*Sn},${nn+Sn-.4*xr} `,X+=`${vr-.7*xr},${nn+.7*Sn} ${vr-xr+.4*Sn},${nn+Sn+.4*xr} `,X+=`${vr},${nn}`,X+=`" stroke='none' fill="${this.strokeColor}"`,X+="/>"}let ce=0;if(this.notation.phasorangle){const nt=FA(r),vt=(i.height+i.depth+2*nt+c).toString(),St=(i.height+i.depth)/2;X+=this.line(c.toString(),vt,(c+St+i.width).toString(),vt),X+=this.line(c.toString(),vt,(c+St).toString(),(c-nt).toString()),L+=nt,ce=St,i.left+=L/2-c}if(this.notation.longdiv){const nt=FA(r);L+=nt,X+=this.line(c.toString(),c.toString(),(c+i.width).toString(),c.toString());const vt=.3;ce=vt+nt,i.left+=vt+nt,i.setTop(c+nt),X+='<path d="',X+=`M ${c} ${c} a${vt} ${(i.depth+i.height+2*nt)/2}, 0, 1, 1, 0 ${i.depth+i.height+2*nt} "`,X+=` stroke-width="${T0(r)}" stroke="${this.strokeColor}" fill="none"`,X+="/>"}if(u.width=i.width+2*c+ce,u.height=i.height+c,u.depth=i.depth+c,u.setStyle("box-sizing","border-box"),u.setStyle("left",`calc(-${s} / 2 )`),u.setStyle("height",`${Math.floor(100*L)/100}em`),u.setStyle("top",`calc(${s} / 2 )`),this.backgroundcolor&&u.setStyle("background-color",this.backgroundcolor),this.notation.box&&u.setStyle("border","1px solid red"),this.notation.actuarial&&(u.setStyle("border-top",this.borderStyle),u.setStyle("border-right",this.borderStyle)),this.notation.madruwb&&(u.setStyle("border-bottom",this.borderStyle),u.setStyle("border-right",this.borderStyle)),this.notation.roundedbox&&(u.setStyle("border-radius","8px"),u.setStyle("border",this.borderStyle)),this.notation.circle&&(u.setStyle("border-radius","50%"),u.setStyle("border",this.borderStyle)),this.notation.top&&u.setStyle("border-top",this.borderStyle),this.notation.left&&u.setStyle("border-left",this.borderStyle),this.notation.right&&u.setStyle("border-right",this.borderStyle),this.notation.bottom&&u.setStyle("border-bottom",this.borderStyle),X){let nt="";this.shadow==="auto"&&(nt+="filter: drop-shadow(0 0 .5px rgba(255, 255, 255, .7)) drop-shadow(1px 1px 2px #333)"),this.shadow!=="none"&&(nt+=`filter: drop-shadow(${this.shadow})`),nt+=` stroke-width="${this.strokeWidth}" stroke="${this.strokeColor}"`,nt+=' stroke-linecap="round"',this.svgStrokeStyle&&(nt+=` stroke-dasharray="${this.svgStrokeStyle}"`),u.svgStyle=nt,u.svgOverlay=X}const Te=new Hr([u,i]);return Te.setStyle("position","relative"),Te.setStyle("vertical-align",c,"em"),Te.setStyle("height",`${Math.floor(100*(i.height+i.depth+2*c))/100}em`),Te.setStyle("display","inline-block"),Te.height=u.height,Te.depth=u.depth,Te.width=u.width-2*c,Te.left=c,Te.right=c,this.caret&&(Te.caret=this.caret),Te.wrap(r)}line(t,r,i,s){return`<line x1="${hc(t)}" y1="${hc(r)}" x2="${hc(i)}" y2="${hc(s)}" vector-effect="non-scaling-stroke"></line>`}};function hc(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 T0(e){return(Math.floor(100*e.metrics.sqrtRuleThickness/e.scalingFactor)/100/10).toString()+"em"}function FA(e){const t=e.isDisplayStyle?Ml:e.metrics.defaultRuleThickness;return e.metrics.defaultRuleThickness+e.scalingFactor*t/4}var Bf=class q1 extends Tr{constructor(t,r,i){var s,c;super(I(m({},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),m(m({},super.toJson()),t)}get children(){if(this._children)return this._children;const t=[];if(this.fractionNavigationOrder==="denominator-numerator"){for(const r of this.below)t.push(...r.children),t.push(r);for(const r of this.above)t.push(...r.children),t.push(r)}else{for(const r of this.above)t.push(...r.children),t.push(r);for(const r of this.below)t.push(...r.children),t.push(r)}return this._children=t,t}render(t){var r,i;const s=new Eo({parent:t,mathstyle:this.mathstyleName},this.style),c=s.metrics,u=new Eo({parent:s,mathstyle:this.continuousFraction?"":"numerator"},this.style),L=this.numerPrefix?new Hr([new Hr(this.numerPrefix),Tr.createBox(u,this.above)],{isTight:u.isTight,type:"ignore"}):(r=Tr.createBox(u,this.above,{type:"ignore"}))!=null?r:new Hr(null,{type:"ignore"}),z=new Eo({parent:s,mathstyle:this.continuousFraction?"":"denominator"},this.style),X=this.denomPrefix?new Hr([new Hr(this.denomPrefix),Tr.createBox(z,this.below,{type:"ignore"})]):(i=Tr.createBox(z,this.below,{type:"ignore"}))!=null?i:new Hr(null,{type:"ignore"}),ce=this.hasBarLine?c.defaultRuleThickness:0;let Te,nt=0,vt;s.isDisplayStyle?(Te=u.metrics.num1,nt=ce>0?3*ce:7*ce,vt=z.metrics.denom1):(ce>0?(Te=u.metrics.num2,nt=ce):(Te=u.metrics.num3,nt=3*c.defaultRuleThickness),vt=z.metrics.denom2);const St=[];this.isSelected&&St.push("ML__selected");const xr=L.depth,Sn=X.height;let vr;if(ce<=0){const Pi=Te-xr-(Sn-vt);Pi<nt&&(Te+=(nt-Pi)/2,vt+=(nt-Pi)/2),vr=new bl({individualShift:[{box:L,shift:-Te,classes:[...St,"ML__center"]},{box:X,shift:vt,classes:[...St,"ML__center"]}]}).wrap(s)}else{const Pi=new Hr(null,{classes:"ML__frac-line",mode:this.mode,style:this.style});Pi.softWidth=Math.max(L.width,X.width),Pi.height=ce/2,Pi.depth=ce/2;const h=dl+ce/2;Te<nt+xr+h&&(Te=nt+xr+h);const B=dl-ce/2;vt<nt+Sn-B&&(vt=nt+Sn-B),vr=new bl({individualShift:[{box:X,shift:vt,classes:[...St,"ML__center"]},{box:Pi,shift:-B,classes:St},{box:L,shift:-Te,classes:[...St,"ML__center"]}]}).wrap(s)}const nn=s.isDisplayStyle?c.delim1:c.delim2,Ln=this.leftDelim?this.bind(t,xf("open",this.leftDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):oh(s,"open");let un=null;this.continuousFraction?un=new Hr(null,{type:"close"}):this.rightDelim?un=this.bind(t,xf("close",this.rightDelim,nn,!0,t,{style:this.style,mode:this.mode,isSelected:this.isSelected})):un=oh(s,"close");const Ci=new Hr([Ln,vr,un],{isTight:s.isTight,type:"inner",classes:"mfrac"}),Yi=this.bind(t,Ci);return this.caret&&(Yi.caret=this.caret),this.attachSupsub(t,{base:Yi})}},Nl=class ev extends Tr{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),m({type:"latex",value:this.value},t)}get computedStyle(){return{}}render(t){const r=new Hr(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}},Sf=class tv extends Tr{constructor(t){super({type:"latexgroup",mode:"latex"}),this.body=[...t].map(r=>new Nl(r)),this.skipBoundary=!1}static fromJson(t){return new tv("")}toJson(){return super.toJson()}render(t){const r=Tr.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:""}},wp=class rv extends Tr{constructor(t,r){super(I(m({},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 Hr(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-dl*t.scalingFactor,u=s.italic;s.setTop(c);let L=s;if(this.superscript||this.subscript){const z=(r=this.subsupPlacement)!=null?r:"auto";L=z==="over-under"||z==="auto"&&t.isDisplayStyle?this.attachLimits(t,{base:s,baseShift:c,slant:u}):this.attachSupsub(t,{base:s})}return new Hr(this.bind(t,L),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=[];return i.push(this.command),this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&i.push("\\limits"),this.subsupPlacement==="adjacent"&&i.push("\\nolimits"),this.subsupPlacement==="auto"&&i.push("\\displaylimits")),i.push(this.supsubToLatex(t)),co(i)}},Xc=class nv extends Tr{constructor(t){const r=t.body;super(I(m({},t),{type:"overlap",body:typeof r=="string"?[new Tr({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),m(m({},super.toJson()),t)}render(t){const r=Tr.createBox(t,this.body,{classes:"inner"});return r?(this.caret&&(r.caret=this.caret),this.bind(t,new Hr([r,new Hr(null,{classes:"fix"})],{classes:this.align==="right"?"rlap":"llap",type:this.boxType}))):null}},pc=class iv extends Tr{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?pf(this.svgBody):Tr.createBox(t,this.body,{type:"ignore"});const i=new Eo({parent:t,mathstyle:"scriptstyle"},this.style);let s=null;this.svgAbove?s=pf(this.svgAbove):this.above&&(s=Tr.createBox(i,this.above,{type:"ignore"}));let c=null;this.svgBelow?c=pf(this.svgBelow):this.below&&(c=Tr.createBox(i,this.below,{type:"ignore"})),this.paddedBody&&(r=new Hr([oh(t,"open"),r,oh(t,"close")],{type:"ignore"}));let u=Ph(t,{base:r,above:s,below:c,type:this.boxType==="bin"||this.boxType==="rel"?this.boxType:"ord",paddedAboveBelow:this.paddedLabels});return u?(this.subsupPlacement==="over-under"?u=this.attachLimits(t,{base:u,type:u.type}):u=this.attachSupsub(t,{base:u}),this.caret&&(u.caret=this.caret),this.bind(t,u)):null}};function Ph(e,t){if(!t.base)return null;if(!t.above&&!t.below){const L=new Hr(t.base,{type:t.type});return L.setStyle("position","relative"),L}let r=0;t.above&&(r=e.metrics.bigOpSpacing5);let i=null;const s=t.base,c=0,u=["ML__center"];if(t.paddedAboveBelow&&u.push("ML__label_padding"),t.below&&t.above){const L=e.metrics.bigOpSpacing5+t.below.height+t.below.depth+s.depth+c;i=new bl({bottom:L,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:u},{box:s,classes:["ML__center"]},r,{box:t.above,classes:u},e.metrics.bigOpSpacing5]})}else t.below?i=new bl({top:s.height-c,children:[e.metrics.bigOpSpacing5,{box:t.below,classes:u},{box:s,classes:["ML__center"]}]}):t.above&&(i=new bl({bottom:s.depth+c,children:[{box:s,classes:["ML__center"]},r,{box:t.above,classes:u},e.metrics.bigOpSpacing5]}));return new Hr(i,{type:t.type})}var Ru=class av extends Tr{constructor(t){var r,i,s,c;super(I(m({},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),m(m({},super.toJson()),t)}render(t){const r=new Eo({parent:t,isPhantom:!0});if(!this.smashDepth&&!this.smashHeight&&!this.smashWidth)return console.assert(this.isInvisible),Tr.createBox(r,this.body,{classes:"inner"});const i=Tr.createBox(this.isInvisible?r:t,this.body);if(!i)return null;if(this.smashWidth){const s=new Hr(null,{classes:"fix"});return new Hr([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)}},nA=class ov extends Tr{constructor(t){var r;super(m({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 Hr(this.mode==="math"?null:" ");let i;if(this.width!==void 0)i=new Hr(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 Hr(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)}`}},xp=class sv extends Tr{constructor(t){var r;super(I(m({},t),{type:"surd",mode:(r=t.mode)!=null?r:"math",style:t.style,displayContainsHighlight:!0,body:t.body})),this.above=t.index}static fromJson(t){return new sv(I(m({},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")?Cs(`${i}[${this.aboveToLatex(t)}]`,s):/^[0-9]$/.test(s)?`${i}${s}`:Cs(i,s)}get children(){if(this._children)return this._children;const t=[];if(this.above)for(const r of this.above)t.push(...r.children),t.push(r);if(this.body)for(const r of this.body)t.push(...r.children),t.push(r);return this._children=t,t}render(t){var r;const i=new Eo({parent:t,mathstyle:"cramp"},this.style),s=(r=Tr.createBox(i,this.body,{type:"inner"}))!=null?r:new Hr(null),c=i.scalingFactor,u=i.metrics.defaultRuleThickness/c,L=t.isDisplayStyle?Ml:u,z=new Hr(null,{classes:"ML__sqrt-line",style:this.style});z.height=u,z.softWidth=s.width;let X=c*(u+L/4);const Te=Math.max(c*2*L,s.height+s.depth)+X+u,nt=new Eo({parent:t},this.style),vt=this.bind(nt,new Hr(xf("inner","\\surd",Te,!1,nt,{isSelected:this.isSelected}),{isSelected:this.isSelected,classes:"ML__sqrt-sign",style:this.style}));if(!vt)return null;const St=vt.height+vt.depth-u;St>s.height+s.depth+X&&(X=(X+St-(s.height+s.depth))/2),vt.setTop(vt.height-s.height-X);const xr=this.bind(t,new bl({firstBaseline:[{box:new Hr(s)},X-2*u,{box:z},u]})),Sn=Tr.createBox(new Eo({parent:t,mathstyle:"scriptscriptstyle"}),this.above,{type:"ignore"});if(!Sn){const Ln=new Hr([vt,xr],{classes:this.containsCaret?"ML__contains-caret":"",type:"inner"});return Ln.setStyle("display","inline-block"),Ln.setStyle("height",Ln.height+Ln.depth,"em"),this.caret&&(Ln.caret=this.caret),this.bind(t,Ln)}const vr=new bl({shift:-.6*(Math.max(vt.height,xr.height)-Math.max(vt.depth,xr.depth)),children:[{box:Sn}]}),nn=new Hr([new Hr(vr,{classes:"ML__sqrt-index",type:"ignore"}),vt,xr],{type:"inner",classes:this.containsCaret?"ML__contains-caret":""});return nn.height=vt.height,nn.depth=vt.depth,this.caret&&(nn.caret=this.caret),this.bind(t,nn)}},Th=class extends Hr{constructor(e){super(null,{type:"skip"}),this._width=e}toMarkup(){return`<span style="display:inline-block;width:${Math.ceil(this.width*100)/100}em"></span>`}};function sh(e,t){if(!e.parent)return;const r=e.parent.children,i=r.indexOf(e);let s=i-1;for(;s>=0&&r[s].type==="ignore";)s-=1;if(s<0&&e.parent.parent&&e.parent.type==="lift"){sh(e.parent,t);return}i>0&&r[i-1].type==="skip"?r[i-1].width+=t:r.splice(i,0,new Th(t))}var zd={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}},$d={ord:{op:3},op:{ord:3,op:3},close:{op:3},inner:{op:3}};function Aa(e){Ef(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 cl(e,t){if(!e.children)return e;const r=e.children;Aa(r);const i=t.getRegisterAsEm("thinmuskip"),s=t.getRegisterAsEm("medmuskip"),c=t.getRegisterAsEm("thickmuskip");return Ef(r,(u,L)=>{var z,X,ce;if(!u)return;const Te=u.type,nt=L.isTight?(z=$d[Te])!=null?z:null:(X=zd[Te])!=null?X:null,vt=(ce=nt==null?void 0:nt[L.type])!=null?ce:null;vt===3&&sh(L,i),vt===4&&sh(L,s),vt===5&&sh(L,c)}),e}function Ef(e,t,r=void 0){if(!e)return r;e=[...e];for(const i of e)i.type==="lift"?r=Ef(i.children,t,r):i.type==="ignore"?Ef(i.children,t):(t(r,i),Ef(i.children,t),r=i);return r}var ud=class lv extends Tr{constructor(t){super({type:"tooltip",command:t.command,mode:t.mode,style:t.style,body:t.body,displayContainsHighlight:!0}),this.tooltip=new Tr({type:"root",mode:t.content,body:t.tooltip,style:{}}),this.skipBoundary=!0,this.captureSelection=!1}static fromJson(t){return new lv(I(m({},t),{tooltip:Ma(t.tooltip)}))}toJson(){var t;const r=(t=this.tooltip.body)==null?void 0:t.filter(i=>i.type!=="first").map(i=>i.toJson());return I(m({},super.toJson()),{tooltip:r})}render(t){const r=Tr.createBox(new Eo,this.body);if(!r)return null;const i=new Eo({parent:t,mathstyle:"displaystyle"},{fontSize:ol}),s=hf(cl(new Hr(this.tooltip.render(i),{classes:"ML__tooltip-content"}),i)),c=new Hr([s,r],{classes:"ML__tooltip-container"});return this.caret&&(c.caret=this.caret),this.bind(t,c)}},JA=class cv extends Tr{constructor(t,r){super(I(m({},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 Hr(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 Hr(this.bind(t,s),{type:"op",caret:this.caret,isSelected:this.isSelected,classes:"op-group"}).wrap(t)}_serialize(t){if(!(t.expandMacro||t.skipStyles||t.skipPlaceholders)&&typeof this.verbatimLatex=="string")return this.verbatimLatex;const r=ct(this.command,this.mode);if(r!=null&&r.serialize)return r.serialize(this,t);const i=[this.command];return this.explicitSubsupPlacement&&(this.subsupPlacement==="over-under"&&i.push("\\limits"),this.subsupPlacement==="adjacent"&&i.push("\\nolimits"),this.subsupPlacement==="auto"&&i.push("\\displaylimits")),i.push(this.supsubToLatex(t)),co(i)}};function Ma(e){if(_(e))return e.map(i=>Ma(i));if(typeof e=="string")return Tr.fromJson(e);e=m({},e);for(const i of vf)e[i]&&(e[i]=Ma(e[i]));e.args&&(e.args=Zd(e.args)),e.array&&(e.array=Ma(e.array));const t=e.type;let r;t==="accent"&&(r=ih.fromJson(e)),t==="array"&&(r=hs.fromJson(e)),t==="box"&&(r=dc.fromJson(e)),t==="chem"&&(r=yp.fromJson(e)),t==="composition"&&(r=im.fromJson(e)),t==="delim"&&(r=Kc.fromJson(e)),t==="enclose"&&(r=oc.fromJson(e)),t==="error"&&(r=Wo.fromJson(e)),t==="extensible-symbol"&&(r=wp.fromJson(e)),t==="genfrac"&&(r=Bf.fromJson(e)),t==="group"&&(r=ll.fromJson(e)),t==="latex"&&(r=Nl.fromJson(e)),t==="latexgroup"&&(r=Sf.fromJson(e)),t==="leftright"&&(r=tl.fromJson(e)),t==="macro"&&(r=D0.fromJson(e)),t==="macro-argument"&&(r=Za.fromJson(e)),t==="operator"&&(r=JA.fromJson(e)),t==="overlap"&&(r=Xc.fromJson(e)),t==="overunder"&&(r=pc.fromJson(e)),t==="placeholder"&&(r=Tu.fromJson(e)),t==="prompt"&&(r=Cf.fromJson(e)),t==="phantom"&&(r=Ru.fromJson(e)),t==="sizeddelim"&&(r=Sc.fromJson(e)),t==="spacing"&&(r=nA.fromJson(e)),t==="subsup"&&(r=ks.fromJson(e)),t==="surd"&&(r=xp.fromJson(e)),t==="text"&&(r=Rd.fromJson(e)),t==="tooltip"&&(r=ud.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=Tr.fromJson(e));for(const i of vf)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=>Ma(r))}:typeof t=="object"&&"atoms"in t?t.atoms.map(r=>Ma(r)):t)}var iA={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"]},U0={"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]$/},fu=/^[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5]$/,Qm=/^[\u0393|\u0394\u0398\u039B\u039E\u03A0\u03A3\u03A5\u03A6\u03A8\u03A9]$/,Km=[/^[a-z]$/,/^[A-Z]$/,fu,Qm],Hm={iso:["it","it","it","it"],tex:["it","it","it","up"],french:["it","up","up","up"],upright:["up","up","up","up"]},Yl=class extends Gl{constructor(){super("math")}createAtom(e,t,r){var i,s,c,u;if(t===null)return new Tr({type:"mord",mode:"math",command:e,value:e,style:r});const L=window.MathfieldElement.isFunction((i=t.command)!=null?i:e);if(t.definitionType==="symbol"){const X=new Tr({type:(s=t.type)!=null?s:"mord",mode:"math",command:(c=t.command)!=null?c:e,value:String.fromCodePoint(t.codepoint),style:r});return L&&(X.isFunction=!0),e.startsWith("\\")&&(X.verbatimLatex=e),X}const z=new Tr({type:"mord",mode:"math",command:(u=t.command)!=null?u:e,value:e,style:r});return L&&(z.isFunction=!0),e.startsWith("\\")&&(z.verbatimLatex=e),z}serialize(e,t){const r=v(e,I(m({},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&&Km.forEach((L,z)=>{var X;L.test(e.value)&&Hm[(X=t.letterShapeStyle)!=null?X:"tex"][z]==="it"&&(i="italic")}),i==="up"&&(i=void 0);const s=i?r+"-"+i:r;console.assert(iA[s]!==void 0);const[c,u]=iA[s];return U0[r]&&!U0[r].test(e.value)?(e.value=rt(e.value,r,i),null):(fu.test(e.value)&&(e.classes+=" lcGreek"),u&&(e.classes+=" "+u),c)}};function v(e,t){const{parent:r}=e[0],i=d(r);return TA(e,"variant").map(s=>{const c=d(s[0]);let u="";c&&c!==i&&(u={calligraphic:"\\mathcal",fraktur:"\\mathfrak","double-struck":"\\mathbb",script:"\\mathscr",monospace:"\\mathtt","sans-serif":"\\mathsf",normal:"\\mathrm","normal-italic":"\\mathnormal","normal-bold":"\\mathbf","normal-bolditalic":"\\mathbfit",ams:"","ams-italic":"\\mathit","ams-bold":"\\mathbf","ams-bolditalic":"\\mathbfit",main:"","main-italic":"\\mathit","main-bold":"\\mathbf","main-bolditalic":"\\mathbfit"}[c],console.assert(u!==void 0));const L=co(s.map(z=>z._serialize(t)));return u?Cs(u,L):L})}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 Yl;function w(e,t){return e.map(r=>r._serialize(t))}function y(e,t){return TA(e,"fontShape").map(r=>{const i=w(r,t),{fontShape:s}=r[0].style;let c="";return s==="it"&&(c="\\textit"),s==="sl"&&(c="\\textsl"),s==="sc"&&(c="\\textsc"),s==="n"&&(c="\\textup"),!c&&s?`{${Cs("\\fontshape",s)}${co(i)}}`:c?Cs(c,co(i)):co(i)})}function te(e,t){return TA(e,"fontSeries").map(r=>{const i=y(r,t),{fontSeries:s}=r[0].style;let c="";return s==="b"&&(c="\\textbf"),s==="l"&&(c="\\textlf"),s==="m"&&(c="\\textmd"),s&&!c?`{${Cs("\\fontseries",s)}${co(i)}}`:c?Cs(c,co(i)):co(i)})}function _e(e,t){return TA(e,"fontSize").map(r=>{var i,s;const c=te(r,t),u=(s=["","\\tiny","\\scriptsize","\\footnotesize","\\small","\\normalsize","\\large","\\Large","\\LARGE","\\huge","\\Huge"][(i=r[0].style.fontSize)!=null?i:""])!=null?s:"";return u?`${u} ${co(c)}`:co(c)})}function Ve(e,t,r){return TA(e,"fontFamily").map(i=>{var s,c;const u=_e(i,t),L=(c={roman:"textrm",monospace:"texttt","sans-serif":"textsf"}[(s=i[0].style.fontFamily)!=null?s:""])!=null?c:"";return L?`\\${L}{${co(u)}}`:i[0].style.fontFamily?`{\\fontfamily{${i[0].style.fontFamily}} ${co(u)}}`:r?`\\text{${co(u)}}`:co(u)})}var ht={roman:"","sans-serif":"ML__sans",monospace:"ML__tt"},pt=class extends Gl{constructor(){super("text")}createAtom(e,t,r){return t&&t.definitionType==="symbol"?new Rd(e,String.fromCodePoint(t.codepoint),r!=null?r:{}):null}serialize(e,t){return Ve(e,I(m({},t),{defaultMode:"text"}),t.defaultMode!=="text")}getFont(e,t){var r,i,s,c,u;const{fontFamily:L}=t;if(ht[L]?e.classes+=" "+ht[L]:L&&e.setStyle("font-family",L),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 z=t.fontSeries.match(/(.?[lbm])?(.?[cx])?/);z&&(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=z[1])!=null?i:""])!=null?s:"",e.classes+=" ",e.classes+=(u={uc:"ML__series_uc",ec:"ML__series_ec",c:"ML__series_c",sc:"ML__series_sc",n:"",sx:"ML__series_sx",x:"ML__series_x",ex:"ML__series_ex",ux:"ML__series_ux"}[(c=z[2])!=null?c:""])!=null?u:"")}return"Main-Regular"}};new pt;var qt=class extends Gl{constructor(){super("latex")}createAtom(e){return new Nl(e)}serialize(e,t){return e.filter(r=>r instanceof Nl&&!r.isSuggestion).map(r=>r.value)}getFont(){return null}};new qt;var lr={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:["","=","","="]}},fr={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:["","=","","="]}},Yr={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:["\\","|","",""]}},Oi={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:["=","=","=","="]}},di={id:"windows.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"windows",score:0,mapping:{KeyA:["q","Q","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:[",","?","",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["a","A","",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["z","Z","",""],KeyX:["x","X","",""],KeyY:["y","Y","",""],KeyZ:["w","W","",""],Digit1:["&","1","",""],Digit2:["\xE9","2","~",""],Digit3:['"',"3","#",""],Digit4:["'","4","{",""],Digit5:["(","5","[",""],Digit6:["-","6","|",""],Digit7:["\xE8","7","`",""],Digit8:["_","8","\\",""],Digit9:["\xE7","9","^",""],Digit0:["\xE0","0","@",""],Space:[" "," ","",""],Minus:[")","\xB0","]",""],Equal:["=","+","}",""],BracketLeft:["^","\xA8","",""],BracketRight:["$","\xA3","\xA4",""],Backslash:["*","\xB5","",""],Semicolon:["m","M","",""],Quote:["\xF9","%","",""],Backquote:["\xB2","","",""],Comma:[";",".","",""],Period:[":","/","",""],Slash:["!","\xA7","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","",""]}},Va={id:"linux.french",locale:"fr",displayName:"French",virtualLayout:"azerty",platform:"linux",score:0,mapping:{KeyA:["q","Q","@","\u03A9"],KeyB:["b","B","\u201D","\u2019"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\xA2"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0309","\u031B"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:[",","?","\u0301","\u030B"],KeyN:["n","N","n","N"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["a","A","\xE6","\xC6"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\xDF","\xA7"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201C","\u2018"],KeyW:["z","Z","\xAB","<"],KeyX:["x","X","\xBB",">"],KeyY:["y","Y","\u2190","\xA5"],KeyZ:["w","W","\u0142","\u0141"],Digit1:["&","1","\xB9","\xA1"],Digit2:["\xE9","2","~","\u215B"],Digit3:['"',"3","#","\xA3"],Digit4:["'","4","{","$"],Digit5:["(","5","[","\u215C"],Digit6:["-","6","|","\u215D"],Digit7:["\xE8","7","`","\u215E"],Digit8:["_","8","\\","\u2122"],Digit9:["\xE7","9","^","\xB1"],Digit0:["\xE0","0","@","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:[")","\xB0","]","\xBF"],Equal:["=","+","}","\u0328"],BracketLeft:["\u0302","\u0308","\u0308","\u030A"],BracketRight:["$","\xA3","\xA4","\u0304"],Backslash:["*","\xB5","\u0300","\u0306"],Semicolon:["m","M","\xB5","\xBA"],Quote:["\xF9","%","\u0302","\u030C"],Backquote:["\xB2","~","\xAC","\xAC"],Comma:[";",".","\u2500","\xD7"],Period:[":","/","\xB7","\xF7"],Slash:["!","\xA7","\u0323","\u0307"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:["",".","","."],IntlBackslash:["<",">","|","\xA6"]}},Gi={id:"apple.german",locale:"de",displayName:"German",virtualLayout:"qwertz",platform:"apple",score:0,mapping:{KeyA:["a","A","\xE5","\xC5"],KeyB:["b","B","\u222B","\u2039"],KeyC:["c","C","\xE7","\xC7"],KeyD:["d","D","\u2202","\u2122"],KeyE:["e","E","\u20AC","\u2030"],KeyF:["f","F","\u0192","\xCF"],KeyG:["g","G","\xA9","\xCC"],KeyH:["h","H","\xAA","\xD3"],KeyI:["i","I","\u2044","\xDB"],KeyJ:["j","J","\xBA","\u0131"],KeyK:["k","K","\u2206","\u02C6"],KeyL:["l","L","@","\uFB02"],KeyM:["m","M","\xB5","\u02D8"],KeyN:["n","N","~","\u203A"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\u03C0","\u220F"],KeyQ:["q","Q","\xAB","\xBB"],KeyR:["r","R","\xAE","\xB8"],KeyS:["s","S","\u201A","\xCD"],KeyT:["t","T","\u2020","\u02DD"],KeyU:["u","U","\xA8","\xC1"],KeyV:["v","V","\u221A","\u25CA"],KeyW:["w","W","\u2211","\u201E"],KeyX:["x","X","\u2248","\xD9"],KeyY:["z","Z","\u03A9","\u02C7"],KeyZ:["y","Y","\xA5","\u2021"],Digit1:["1","!","\xA1","\xAC"],Digit2:["2",'"',"\u201C","\u201D"],Digit3:["3","\xA7","\xB6","#"],Digit4:["4","$","\xA2","\xA3"],Digit5:["5","%","[","\uFB01"],Digit6:["6","&","]","^"],Digit7:["7","/","|","\\"],Digit8:["8","(","{","\u02DC"],Digit9:["9",")","}","\xB7"],Digit0:["0","=","\u2260","\xAF"],Space:[" "," "," "," "],Minus:["\xDF","?","\xBF","\u02D9"],Equal:["\xB4","`","'","\u02DA"],BracketLeft:["\xFC","\xDC","\u2022","\xB0"],BracketRight:["+","*","\xB1","\uF8FF"],Backslash:["#","'","\u2018","\u2019"],Semicolon:["\xF6","\xD6","\u0153","\u0152"],Quote:["\xE4","\xC4","\xE6","\xC6"],Backquote:["<",">","\u2264","\u2265"],Comma:[",",";","\u221E","\u02DB"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],NumpadDivide:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],NumpadDecimal:[",",",",".","."],IntlBackslash:["^","\xB0","\u201E","\u201C"],NumpadEqual:["=","=","=","="]}},Vi={id:"windows.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","",""],KeyB:["b","B","",""],KeyC:["c","C","",""],KeyD:["d","D","",""],KeyE:["e","E","\u20AC",""],KeyF:["f","F","",""],KeyG:["g","G","",""],KeyH:["h","H","",""],KeyI:["i","I","",""],KeyJ:["j","J","",""],KeyK:["k","K","",""],KeyL:["l","L","",""],KeyM:["m","M","\xB5",""],KeyN:["n","N","",""],KeyO:["o","O","",""],KeyP:["p","P","",""],KeyQ:["q","Q","@",""],KeyR:["r","R","",""],KeyS:["s","S","",""],KeyT:["t","T","",""],KeyU:["u","U","",""],KeyV:["v","V","",""],KeyW:["w","W","",""],KeyX:["x","X","",""],KeyY:["z","Z","",""],KeyZ:["y","Y","",""],Digit1:["1","!","",""],Digit2:["2",'"',"\xB2",""],Digit3:["3","\xA7","\xB3",""],Digit4:["4","$","",""],Digit5:["5","%","",""],Digit6:["6","&","",""],Digit7:["7","/","{",""],Digit8:["8","(","[",""],Digit9:["9",")","]",""],Digit0:["0","=","}",""],Space:[" "," ","",""],Minus:["\xDF","?","\\","\u1E9E"],Equal:["\xB4","`","",""],BracketLeft:["\xFC","\xDC","",""],BracketRight:["+","*","~",""],Backslash:["#","'","",""],Semicolon:["\xF6","\xD6","",""],Quote:["\xE4","\xC4","",""],Backquote:["^","\xB0","",""],Comma:[",",";","",""],Period:[".",":","",""],Slash:["-","_","",""],NumpadDivide:["/","/","",""],NumpadMultiply:["*","*","",""],NumpadSubtract:["-","-","",""],NumpadAdd:["+","+","",""],IntlBackslash:["<",">","|",""]}},Oa={id:"linux.german",locale:"de",displayName:"German",platform:"windows",virtualLayout:"qwertz",score:0,mapping:{KeyA:["a","A","\xE6","\xC6"],KeyB:["b","B","\u201C","\u2018"],KeyC:["c","C","\xA2","\xA9"],KeyD:["d","D","\xF0","\xD0"],KeyE:["e","E","\u20AC","\u20AC"],KeyF:["f","F","\u0111","\xAA"],KeyG:["g","G","\u014B","\u014A"],KeyH:["h","H","\u0127","\u0126"],KeyI:["i","I","\u2192","\u0131"],KeyJ:["j","J","\u0323","\u0307"],KeyK:["k","K","\u0138","&"],KeyL:["l","L","\u0142","\u0141"],KeyM:["m","M","\xB5","\xBA"],KeyN:["n","N","\u201D","\u2019"],KeyO:["o","O","\xF8","\xD8"],KeyP:["p","P","\xFE","\xDE"],KeyQ:["q","Q","@","\u03A9"],KeyR:["r","R","\xB6","\xAE"],KeyS:["s","S","\u017F","\u1E9E"],KeyT:["t","T","\u0167","\u0166"],KeyU:["u","U","\u2193","\u2191"],KeyV:["v","V","\u201E","\u201A"],KeyW:["w","W","\u0142","\u0141"],KeyX:["x","X","\xAB","\u2039"],KeyY:["z","Z","\u2190","\xA5"],KeyZ:["y","Y","\xBB","\u203A"],Digit1:["1","!","\xB9","\xA1"],Digit2:["2",'"',"\xB2","\u215B"],Digit3:["3","\xA7","\xB3","\xA3"],Digit4:["4","$","\xBC","\xA4"],Digit5:["5","%","\xBD","\u215C"],Digit6:["6","&","\xAC","\u215D"],Digit7:["7","/","{","\u215E"],Digit8:["8","(","[","\u2122"],Digit9:["9",")","]","\xB1"],Digit0:["0","=","}","\xB0"],Enter:["\r","\r","\r","\r"],Escape:["\x1B","\x1B","\x1B","\x1B"],Backspace:["\b","\b","\b","\b"],Tab:[" ",""," ",""],Space:[" "," "," "," "],Minus:["\xDF","?","\\","\xBF"],Equal:["\u0301","\u0300","\u0327","\u0328"],BracketLeft:["\xFC","\xDC","\u0308","\u030A"],BracketRight:["+","*","~","\xAF"],Backslash:["#","'","\u2019","\u0306"],Semicolon:["\xF6","\xD6","\u030B","\u0323"],Quote:["\xE4","\xC4","\u0302","\u030C"],Backquote:["\u0302","\xB0","\u2032","\u2033"],Comma:[",",";","\xB7","\xD7"],Period:[".",":","\u2026","\xF7"],Slash:["-","_","\u2013","\u2014"],PrintScreen:["","","",""],PageUp:["/","/","/","/"],NumpadMultiply:["*","*","*","*"],NumpadSubtract:["-","-","-","-"],NumpadAdd:["+","+","+","+"],Numpad1:["","1","","1"],Numpad2:["","2","","2"],Numpad3:["","3","","3"],Numpad4:["","4","","4"],Numpad5:["","5","","5"],Numpad6:["","6","","6"],Numpad7:["","7","","7"],Numpad8:["","8","","8"],Numpad9:["","9","","9"],Numpad0:["","0","","0"],NumpadDecimal:["",",","",","],IntlBackslash:["<",">","|","\u0331"],AltRight:["\r","\r","\r","\r"],MetaRight:[".",".",".","."]}},io={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"]}},_a={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:["<",">","",""]}},Fi={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 Do(e){const t=e.split("+"),r={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:t.pop()};return t.includes("shift")&&(r.shift=!0),t.includes("alt")&&(r.alt=!0),t.includes("ctrl")&&(r.ctrl=!0),t.includes("cmd")&&(r.cmd=!0),t.includes("win")&&(r.win=!0),t.includes("meta")&&(r.meta=!0),r}function Xa(e){let t="";return e.shift&&(t+="shift+"),e.alt&&(t+="alt+"),e.ctrl&&(t+="ctrl+"),e.cmd&&(t+="cmd+"),e.win&&(t+="win+"),e.meta&&(t+="meta+"),t+e.key}var Pa={enter:"[Enter]",escape:"[Escape]",backspace:"[Backspace]",tab:"[Tab]",space:"[Space]",pausebreak:"[Pause]",insert:"[Insert]",home:"[Home]",pageup:"[PageUp]",delete:"[Delete]",end:"[End]",pagedown:"[PageDown]",right:"[ArrowRight]",left:"[ArrowLeft]",down:"[ArrowDown]",up:"[ArrowUp]",numpad0:"[Numpad0]",numpad1:"[Numpad1]",numpad2:"[Numpad2]",numpad3:"[Numpad3]",numpad4:"[Numpad4]",numpad5:"[Numpad5]",numpad6:"[Numpad6]",numpad7:"[Numpad7]",numpad8:"[Numpad8]",numpad9:"[Numpad9]",numpad_divide:"[NumpadDivide]",numpad_multiply:"[NumpadMultiply]",numpad_subtract:"[NumpadSubtract]",numpad_add:"[NumpadAdd]",numpad_decimal:"[NumpadDecimal]",numpad_separator:"[NumpadComma]",capslock:"[Capslock]",f1:"[F1]",f2:"[F2]",f3:"[F3]",f4:"[F4]",f5:"[F5]",f6:"[F6]",f7:"[F7]",f8:"[F8]",f9:"[F9]",f10:"[F10]",f11:"[F11]",f12:"[F12]",f13:"[F13]",f14:"[F14]",f15:"[F15]",f16:"[F16]",f17:"[F17]",f18:"[F18]",f19:"[F19]"},qn=[],Ec;function aA(){switch(Y()){case"macos":case"ios":return"apple";case"windows":return"windows"}return"linux"}function bo(e){(!e.platform||e.platform===aA())&&qn.push(e)}function _c(e,t){var r;const i={shift:!1,alt:!1,cmd:!1,win:!1,meta:!1,ctrl:!1,key:""};if(!e)return i;for(const[s,c]of Object.entries(t.mapping)){if(c[0]===e)return i.key=`[${s}]`,i;if(c[1]===e)return i.shift=!0,i.key=`[${s}]`,i;if(c[2]===e)return i.alt=!0,i.key=`[${s}]`,i;if(c[3]===e)return i.shift=!0,i.alt=!0,i.key=`[${s}]`,i}return i.key=(r=Pa[e])!=null?r:"",i}function dd(e){if(e.code)return e;const t=Object.entries(hu().mapping);let r=!1,i=!1,s="";for(let c=0;c<4;c++){for(const[u,L]of t)if(L[c]===e.key){s=u,c===3?(r=!0,i=!0):c===2?r=!0:c===1&&(i=!0);break}if(s)break}return new KeyboardEvent(e.type,I(m({},e),{altKey:r,shiftKey:i,code:s}))}function Jc(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 oA(e){Ec=qn.find(t=>e.startsWith(t.locale))}function hu(){return Ec!=null?Ec:qn[0]}function YA(){switch(aA()){case"apple":return fr;case"windows":return Yr;case"linux":return Oi}return fr}switch(aA()){case"apple":bo(fr),bo(Un),bo(io),bo(Gi);break;case"windows":bo(Yr),bo(di),bo(_a),bo(Vi);break;case"linux":bo(Oi),bo(Va),bo(Fi),bo(Oa);break}bo(lr);function pu(e){var t;const r=/macos|ios/.test(Y()),i=e.split("+");let s="";for(const c of i)s&&(s+=r?"\u2009":'<span class="ML__shortcut-join">+</span>'),c.startsWith("[Key")?s+=c.slice(4,5):c.startsWith("Key")?s+=c.slice(3,4):c.startsWith("[Digit")?s+=c.slice(6,7):c.startsWith("Digit")?s+=c.slice(5,6):s+=(t={cmd:"\u2318",meta:r?"\u2318":"Ctrl",shift:r?"\u21E7":"Shift",alt:r?"\u2325":"Alt",ctrl:r?"\u2303":"Ctrl","\n":r?"\u23CE":"Return","[return]":r?"\u23CE":"Return","[enter]":r?"\u2324":"Enter","[tab]":r?"\u21E5":"Tab","[escape]":"Esc","[backspace]":r?"\u232B":"Backspace","[delete]":r?"\u2326":"Del","[pageup]":r?"\u21DE":"Page Up","[pagedown]":r?"\u21DF":"Page Down","[home]":r?"\u2912":"Home","[end]":r?"\u2913":"End","[space]":"Space","[equal]":"=","[minus]":"-","[comma]":",","[slash]":"/","[backslash]":"\\","[bracketleft]":"[","[bracketright]":"]",semicolon:";",period:".",comma:",",minus:"-",equal:"=",quote:"'",backslash:"\\",intlbackslash:"\\",backquote:"`",slash:"/",numpadmultiply:"* 🔢",numpaddivide:"/ 🔢",numpadsubtract:"- 🔢",numpadadd:"+ 🔢",numpaddecimal:". 🔢",numpadcomma:", 🔢",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 Qu(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 MA(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 Ku(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 Vd=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 qA(e){return e.ctrlKey||e.metaKey||["Dead","Process"].includes(e.key)?!1:e.code===""?!0:Vd.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 Hc=class h0{static get scrim(){return h0._scrim||(h0._scrim=new h0),h0._scrim}static open(t){h0.scrim.open(t)}static close(){h0.scrim.close()}static get state(){return h0.scrim.state}static get element(){return h0.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 fg(e,t,r){let i=null,s=null,c=!1,u=!1,L=!1;const z=new AbortController,X=z.signal;return e.addEventListener("keydown",ce=>{if(c||ce.key==="Process"||ce.code==="CapsLock"||/(Control|Meta|Alt|Shift)(Left|Right)/.test(ce.code)){i=null;return}i=ce,s=null,r.onKeystroke(ce)?e.textContent="":i=null},{capture:!0,signal:X}),e.addEventListener("keypress",ce=>{c||(i&&s&&r.onKeystroke(i),s=ce)},{capture:!0,signal:X}),e.addEventListener("compositionstart",ce=>{e.textContent="",c=!0,r.onCompositionStart(ce.data)},{capture:!0,signal:X}),e.addEventListener("compositionupdate",ce=>{c&&r.onCompositionUpdate(ce.data)},{capture:!0,signal:X}),e.addEventListener("compositionend",ce=>{e.textContent="",c&&(c=!1,r.onCompositionEnd(ce.data))},{capture:!0,signal:X}),e.addEventListener("beforeinput",ce=>ce.stopImmediatePropagation(),{signal:X}),e.addEventListener("input",ce=>{var Te;if(!c&&(e.textContent="",ce.inputType!=="insertCompositionText")){if(ce.inputType==="insertFromPaste"){ce.preventDefault(),ce.stopPropagation();return}r.onInput((Te=ce.data)!=null?Te:""),ce.preventDefault(),ce.stopPropagation()}},{signal:X}),e.addEventListener("paste",ce=>{e.focus({preventScroll:!0}),e.textContent="",r.onPaste(ce)||ce.preventDefault(),ce.stopImmediatePropagation()},{signal:X}),e.addEventListener("cut",ce=>r.onCut(ce),{capture:!0,signal:X}),e.addEventListener("copy",ce=>r.onCopy(ce),{capture:!0,signal:X}),e.addEventListener("blur",ce=>{var Te,nt;if(((nt=(Te=ce.relatedTarget)==null?void 0:Te._mathfield)==null?void 0:nt.element)===t){e.focus({preventScroll:!0}),ce.preventDefault(),ce.stopPropagation();return}const vt=Hc.state;if(vt==="open"||vt==="opening"){ce.preventDefault(),ce.stopPropagation();return}if(ce.relatedTarget===ce.target.getRootNode().host){ce.preventDefault(),ce.stopPropagation();return}L||u||(L=!0,i=null,s=null,r.onBlur(),L=!1)},{capture:!0,signal:X}),e.addEventListener("focus",ce=>{L||u||(u=!0,r.onFocus(),u=!1)},{capture:!0,signal:X}),{dispose:()=>z.abort(),cancelComposition:()=>{c&&(e.blur(),requestAnimationFrame(()=>e.focus({preventScroll:!0})))},blur:()=>{typeof e.blur=="function"&&e.blur()},focus:()=>{!u&&typeof e.focus=="function"&&e.focus({preventScroll:!0})},hasFocus:()=>fd()===e,setAriaLabel:ce=>e.setAttribute("aria-label",ce),setValue:ce=>{var Te;e.textContent=ce,e.style.left="-1000px",(Te=window.getSelection())==null||Te.selectAllChildren(e)},moveTo:(ce,Te)=>{e.style.top=`${Te}px`,e.style.left=`${ce}px`}}}function Uh(e){var t;if(!e||!qA(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 Rh(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(P()){const t=Y(),r=e.startsWith("!"),i=e.endsWith(t);if(r&&!i||!r&&i)return!0}return e==="!other"?!1:e==="other"}function hg(e,t,r){if(e.length===0)return"";const i=Xa(Do(Rh(r))),s=Xa({key:r.key,shift:r.shiftKey,alt:r.altKey,ctrl:r.ctrlKey,meta:r.metaKey||r.ctrlKey&&/macos|ios/.test(Y()),cmd:!1,win:!1});for(let c=e.length-1;c>=0;c--)if((e[c].key===i||e[c].key===s)&&(!e[c].ifMode||e[c].ifMode===t))return e[c].command;return""}function jm(e){let t=e;return _(t)&&(t=t.length>0?t[0]+"("+t.slice(1).join("")+")":""),t}function pg(e,t){let r=[];if(typeof t=="string"){const c=Vp[t];_(c)?r=c.slice():c&&r.push(c)}const i=jm(t),s=new RegExp("^"+i.replace("\\","\\\\").replace("|","\\|").replace("*","\\*").replace("$","\\$").replace("^","\\^")+"([^*a-zA-Z]|$)");for(const c of e)s.test(jm(c.command))&&r.push(c.key);return r.map(pu)}function zm(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=Do(e.key);let i=e.ifPlatform;if(r.cmd){if(i&&i!=="macos"&&i!=="ios")throw new Error('Unexpected "cmd" modifier with platform "'+i+`"
|
|
|
"cmd" modifier can only be used with macOS or iOS platform.`);i||(i=Y()==="ios"?"ios":"macos"),r.win=!1,r.cmd=!1,r.meta=!0}if(r.win){if(i&&i!=="windows")throw new Error('Unexpected "win" modifier with platform "'+i+`"
|
|
|
"win" modifier can only be used with Windows platform.`);i="windows",r.win=!1,r.cmd=!1,r.meta=!0}if(i&&!om(i))return;if(/^\[.+\]$/.test(r.key))return I(m({},e),{key:Xa(r)});const s=_c(r.key,t);if(!s)return I(m({},e),{key:Xa(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 ${Xa(s)} using the ${t.displayName} keyboard layout`);return s.shift=s.shift||r.shift,s.alt=s.alt||r.alt,s.meta=r.meta,s.ctrl=r.ctrl,I(m({},e),{key:Xa(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=zm(s,t);if(!c)continue;const u=i.find(L=>L.key===c.key&&L.ifMode===c.ifMode);if(u)throw new Error(`Ambiguous key binding ${s.key} (${sm(s.command)}) matches ${u.key} (${sm(u.command)}) with the ${t.displayName} keyboard layout`);i.push(c)}catch(c){c instanceof Error&&r.push(c.message)}return[i,r]}var mg=class extends Ls{constructor(){super("latex")}createAtom(e){return new Nl(e)}onPaste(e,t){if(!t)return!1;const r=typeof t=="string"?t:t.getData("application/x-latex")||t.getData("text/plain");return r&&e.model.contentWillChange({inputType:"insertFromPaste",data:r})?(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r)&&(e.startRecording(),e.snapshot("paste"),e.model.contentDidChange({inputType:"insertFromPaste"}),_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(Jl(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward");const c=[];for(const z of t)N.test(z)&&c.push(new Nl(z));let u=e.at(e.position);if(u instanceof Sf&&(u=u.lastChild),!(u.parent instanceof Sf)){const z=new Sf("");u.parent.addChildAfter(z,u),u=z.firstChild}const L=u.parent.addChildrenAfter(c,u);return e.silenceNotifications=s,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(L)):L&&(e.position=e.offsetOf(L))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=i,!0}};function gg(e){return e.atoms.find(t=>t.type==="latexgroup")}function R0(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 $m(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 z=e.at(i);s=z instanceof Nl&&z.isSuggestion,s||i++}if(!s)return[void 0,void 0];let u=i,L=!1;for(;u<=c&&!L;){const z=e.at(u);L=!(z instanceof Nl&&z.isSuggestion),L||u++}return[i-1,u-1]}new mg;function lm(e){const t=R0(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 Cp(e,t){var r;const{model:i}=e;lm(e);for(const ce of R0(i))ce.isError=!1;if(!i.selectionIsCollapsed||e.options.popoverPolicy==="off"){LA(e);return}const s=[];let c=i.at(i.position);for(;c&&c instanceof Nl&&/^[a-zA-Z\*]$/.test(c.value);)c=c.leftSibling;if(c&&c instanceof Nl&&c.value==="\\")for(s.push(c),c=c.rightSibling;c&&c instanceof Nl&&/^[a-zA-Z\*]$/.test(c.value);)s.push(c),c=c.rightSibling;const u=s.map(ce=>ce.value).join(""),L=ne(e,u);if(L.length===0){if(/^\\[a-zA-Z\*]+$/.test(u))for(const ce of s)ce.isError=!0;LA(e);return}const z=(r=t==null?void 0:t.atIndex)!=null?r:0;e.suggestionIndex=z<0?L.length-1:z%L.length;const X=L[e.suggestionIndex];if(X!==u){const ce=s[s.length-1];ce.parent.addChildrenAfter([...X.slice(u.length-X.length)].map(Te=>new Nl(Te,{isSuggestion:!0})),ce),Kh(e,{interactive:!0})}Vm(e,L)}function cm(e){const[t,r]=$m(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 Qh(e,t="accept",r){var i,s;LA(e);const c=gg(e.model);if(!c)return!1;if(t==="accept-suggestion"||t==="accept-all"){const X=R0(e.model).filter(ce=>ce.isSuggestion);if(X.length!==0){for(const ce of X)ce.isSuggestion=!1;e.model.position=e.model.offsetOf(X[X.length-1])}if(t==="accept-suggestion")return X.length!==0}const L=R0(e.model).filter(X=>!X.isSuggestion).map(X=>X.value).join(""),z=c.leftSibling;return c.parent.removeChild(c),e.model.position=e.model.offsetOf(z),e.switchMode((i=r==null?void 0:r.mode)!=null?i:"math"),t==="reject"||(Ls.insert(e.model,L,{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 Bp(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 Zm(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 vg(e,t){const r=new Eo({from:e.context}),i=new Tr({mode:"math",type:"root",body:fc(t,{context:r})}),s=hf(cl(new Hr(i.render(r),{classes:"ML__base"}),r));return Wf(s,{classes:"ML__latex"}).toMarkup()}function Vm(e,t){var r;if(t.length===0){LA(e);return}let i="";for(const[c,u]of t.entries()){const L=u,z=vg(e,u),X=pg(e.keybindings,L).join("<br>");i+=`<li role="button" data-command="${L}" ${c===e.suggestionIndex?"class=ML__popover__current":""}><span class="ML__popover__latex">${L}</span><span class="ML__popover__command">${z}</span>`,X&&(i+=`<span class="ML__popover__keybinding">${X}</span>`),i+="</li>"}const s=lh(e,`<ul>${i}</ul>`);mu()&&((r=s.querySelector(".ML__popover__current"))==null||r.scrollIntoView({block:"nearest",inline:"nearest"})),setTimeout(()=>{var c;s&&!mu()&&(s.classList.add("is-visible"),Sp(e),(c=s.querySelector(".ML__popover__current"))==null||c.scrollIntoView({block:"nearest",inline:"nearest"}))},32)}function mu(){const e=document.getElementById("mathlive-suggestion-popover");return e?e.classList.contains("is-visible"):!1}function Sp(e,t){var r;if(!e.element||e.element.mathfield!==e||!mu())return;if(((r=e.model.at(e.model.position))==null?void 0:r.type)!=="latex"){LA(e);return}if(t!=null&&t.deferred){setTimeout(()=>Sp(e),32);return}const i=th(e.field);if(!i)return;const s=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,c=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerWidth-document.documentElement.clientWidth,L=window.innerHeight-document.documentElement.clientHeight,z=window.mathVirtualKeyboard.boundingRect.height,X=document.getElementById("mathlive-suggestion-popover");i.x+X.offsetWidth/2>c-u?X.style.left=`${c-X.offsetWidth-u}px`:i.x-X.offsetWidth/2<0?X.style.left="0":X.style.left=`${i.x-X.offsetWidth/2}px`;const ce=i.y-i.height;s-L-z-i.y<ce?(X.classList.add("ML__popover--reverse-direction"),X.classList.remove("top-tip"),X.classList.add("bottom-tip"),X.style.top=`${i.y-i.height-X.offsetHeight-15}px`):(X.classList.remove("ML__popover--reverse-direction"),X.classList.add("top-tip"),X.classList.remove("bottom-tip"),X.style.top=`${i.y+15}px`)}function LA(e){e.suggestionIndex=0;const t=document.getElementById("mathlive-suggestion-popover");t&&(t.classList.remove("is-visible"),t.innerHTML="")}function lh(e,t){let r=document.getElementById("mathlive-suggestion-popover");return r||(r=Bp("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&&(Qh(e,"reject"),Ls.insert(e.model,s.dataset.command,{selectionMode:"placeholder",format:"latex",mode:"math"}),e.dirty=!0,e.focus())})),r.innerHTML=window.MathfieldElement.createHTML(t),r}function Yg(){document.getElementById("mathlive-suggestion-popover")&&(Zm("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 gu=null,bg,Wm,Am=((Wm=(bg=globalThis==null?void 0:globalThis.document)==null?void 0:bg.currentScript)==null?void 0:Wm.src)||qg();function yg(e){return up(this,null,function*(){if(/^(?:[a-z+]+:)?\/\//i.test(e))return new URL(e).href;if(gu===null)try{const t=yield fetch(Am,{method:"HEAD"});t.status===200&&(gu=t.url)}catch(t){console.error(`Invalid URL "${e}" (relative to "${Am}")`)}return new URL(e,gu!=null?gu:Am).href})}function e1(e,t,r={}){return new FontFace(e,`url(${t}.woff2) format('woff2')`,r)}var vu="not-loaded";function t1(){return up(this,null,function*(){return vu="not-loaded",um()})}function um(){return up(this,null,function*(){var e;if(vu!=="not-loaded")return;if(vu="loading",(e=getComputedStyle(document.documentElement).getPropertyValue("--ML__static-fonts"))!=null?e:!1){vu="ready";return}if(document.body.classList.remove("ML__fonts-did-not-load"),"fonts"in document){const r=["KaTeX_Main","KaTeX_Math","KaTeX_AMS","KaTeX_Caligraphic","KaTeX_Fraktur","KaTeX_SansSerif","KaTeX_Script","KaTeX_Typewriter","KaTeX_Size1","KaTeX_Size2","KaTeX_Size3","KaTeX_Size4"],i=Array.from(document.fonts).map(u=>u.family);if(r.every(u=>i.includes(u))){vu="ready";return}if(!window.MathfieldElement.fontsDirectory){vu="not-loaded";return}const s=yield yg(window.MathfieldElement.fontsDirectory);if(!s){document.body.classList.add("ML__fonts-did-not-load"),vu="error";return}const c=[["KaTeX_Main-Regular"],["KaTeX_Main-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_Main-Bold",{weight:"bold"}],["KaTeX_Main-Italic",{style:"italic"}],["KaTeX_Math-Italic",{style:"italic"}],["KaTeX_Math-BoldItalic",{style:"italic",weight:"bold"}],["KaTeX_AMS-Regular"],["KaTeX_Caligraphic-Regular"],["KaTeX_Caligraphic-Bold",{weight:"bold"}],["KaTeX_Fraktur-Regular"],["KaTeX_Fraktur-Bold",{weight:"bold"}],["KaTeX_SansSerif-Regular"],["KaTeX_SansSerif-Bold",{weight:"bold"}],["KaTeX_SansSerif-Italic",{style:"italic"}],["KaTeX_Script-Regular"],["KaTeX_Typewriter-Regular"],["KaTeX_Size1-Regular"],["KaTeX_Size2-Regular"],["KaTeX_Size3-Regular"],["KaTeX_Size4-Regular"]].map(u=>e1(u[0].replace(/-[a-zA-Z]+$/,""),`${s}/${u[0]}`,u[1]));try{(yield Promise.all(c.map(L=>{try{return L.load()}catch(z){}}))).forEach(L=>document.fonts.add(L)),vu="ready";return}catch(u){console.error(`MathLive 0.98.5: The math fonts could not be loaded from "${s}"`,{cause:u}),document.body.classList.add("ML__fonts-did-not-load")}vu="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,Kh(e,t),e.atomBoundsCache=void 0)})))}function wg(e,t){var r;t=t!=null?t:{};const i=new Eo({from:I(m({},e.context),{atomIdsSettings:{seed:t.forHighlighting?r1(Tr.serialize([e.model.root],{expandMacro:!1,defaultMode:e.options.defaultMode})):"random",groupNumbers:(r=t.forHighlighting)!=null?r:!1},letterShapeStyle:e.options.letterShapeStyle}),mathstyle:e.options.defaultMode==="inline-math"?"textstyle":"displaystyle"}),s=e.model.root.render(i);return Wf(cl(s,i),{classes:e.hasEditablePrompts?"ML__latex ML__prompting":"ML__latex",attributes:{translate:"no","aria-hidden":"true"}})}function xg(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 wg(e,t).toMarkup()}function Kh(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 u=xg(e,t);const L=e.element.querySelector("[part=menu-toggle]");if(L&&(e.model.atoms.length<=1||e.disabled||e.readOnly&&!e.hasEditableContent||e.userSelect==="none"?L.style.display="none":L.style.display=""),e.model.atoms.length<=1){const z=e.options.contentPlaceholder;z&&(u+=`<span part=placeholder class="ML__content-placeholder">${Es(z)}</span>`)}i.innerHTML=window.MathfieldElement.createHTML(u),dm(e,t.interactive),e.dirty=!1}function dm(e,t){const r=e.field;if(!r)return;for(const L of r.querySelectorAll(".ML__selection, .ML__contains-highlight"))L.remove();!(t!=null&&t)&&vu!=="error"&&vu!=="ready"&&setTimeout(()=>{vu==="ready"?dm(e):setTimeout(()=>dm(e),128)},32);const i=e.model,s=r.offsetWidth,c=r.getBoundingClientRect().width;let u=Math.floor(c)/s;if(u=isNaN(u)?1:u,i.selectionIsCollapsed){Sp(e,{deferred:!0});let L=i.at(i.position);for(;L&&L.type!=="prompt"&&!(L.containsCaret&&L.displayContainsHighlight);)L=L.parent;if(L!=null&&L.containsCaret&&L.displayContainsHighlight){const z=rh(e,nh(e,L),u);if(z){z.left/=u,z.right/=u,z.top/=u,z.bottom/=u;const X=document.createElement("div");X.classList.add("ML__contains-highlight"),X.style.position="absolute",X.style.left=`${z.left+1}px`,X.style.top=`${Math.ceil(z.top)}px`,X.style.width=`${Math.ceil(z.right-z.left)}px`,X.style.height=`${Math.ceil(z.bottom-z.top)}px`,r.insertBefore(X,r.childNodes[0])}}return}for(const L of n1(Dm(e,{excludeAtomsWithBackground:!0}))){L.left/=u,L.right/=u,L.top/=u,L.bottom/=u;const z=document.createElement("div");z.classList.add("ML__selection"),z.style.position="absolute",z.style.left=`${L.left}px`,z.style.top=`${L.top}px`,z.style.width=`${Math.ceil(L.right-L.left)}px`,z.style.height=`${Math.ceil(L.bottom-L.top-1)}px`,r.insertBefore(z,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 Cg=3,n;function o(e,t){t=m({target:"mathfield",canUndo:!1,audioFeedback:void 0,changeContent:!1,changeSelection:!1},t!=null?t:{}),n||(n={});for(const r of Object.keys(e))console.assert(!n[r],"Selector already defined: ",r),n[r]=I(m({},t),{fn:e[r]})}function a(e){let t;if(Array.isArray(e)){if(e[0]==="performWithFeedback")return a(e[1]);t=e[0]}else t=e;return t=t.replace(/-\w/g,r=>r[1].toUpperCase()),n[t]}function l(e){var t;return(t=a(e))==null?void 0:t.target}function A(e,t){var r;if(!t)return!1;let i,s=[],c=!1,u=!1;_(t)?(i=t[0],s=t.slice(1)):i=t,i=i.replace(/-\w/g,X=>X[1].toUpperCase());const L=n[i],z=L==null?void 0:L.target;if(z==="model"){if(!e.isSelectionEditable&&(L!=null&&L.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),Cp(e),u=!0,c=!0}else if(z==="virtual-keyboard")u=(r=window.mathVirtualKeyboard.executeCommand(t))!=null?r:!1,c=!0;else if(n[i]){if(!e.isSelectionEditable&&(L!=null&&L.changeContent))return e.model.announce("plonk"),!1;/^(undo|redo)/.test(i)&&e.flushInlineShortcutBuffer(),u=n[i].fn(e,...s),c=!0}else throw new Error(`Unknown command "${i}"`);return z!=="virtual-keyboard"&&(!e.model.selectionIsCollapsed||L!=null&&L.changeSelection&&t!=="deleteBackward")&&(e.flushInlineShortcutBuffer(),L!=null&&L.changeContent||e.stopCoalescingUndo(),e.defaultStyle={}),u&&_l(e),c}function p(e,t){var r;if(!e)return!1;e.focus(),Tg.keypressVibration&&M()&&navigator.vibrate(Cg);const i=a(t);window.MathfieldElement.playSound((r=i==null?void 0:i.audioFeedback)!=null?r:"keypress");const s=e.executeCommand(t);return e.scrollIntoView(),s}o({performWithFeedback:(e,t)=>p(e,t)});function O(e){return Cp(e,{atIndex:e.suggestionIndex+1}),!1}function E(e){return Cp(e,{atIndex:e.suggestionIndex-1}),!1}o({complete:Qh},{target:"mathfield",audioFeedback:"return",canUndo:!0,changeContent:!0,changeSelection:!0}),o({nextSuggestion:O,previousSuggestion:E},{target:"mathfield",audioFeedback:"keypress",changeSelection:!0});var R="mathlive#virtual-keyboard-message";function V(e){var t;return e.type!=="message"?!1:((t=e.data)==null?void 0:t.type)===R}var le=class Av{constructor(){this.targetOrigin=window.origin,this.originValidator="none",this._boundingRect=new DOMRect(0,0,0,0),this._isShifted=!1,window.addEventListener("message",this),this.sendMessage("proxy-created"),this.listeners={}}static get singleton(){return this._singleton||(this._singleton=new Av),this._singleton}set alphabeticLayout(t){this.sendMessage("update-setting",{alphabeticLayout:t})}set layouts(t){this.sendMessage("update-setting",{layouts:t})}get normalizedLayouts(){return[]}set editToolbar(t){this.sendMessage("update-setting",{editToolbar:t})}set actionKeycap(t){this.sendMessage("update-setting",{actionKeycap:t})}set shiftKeycap(t){this.sendMessage("update-setting",{shiftKeycap:t})}set backspaceKeycap(t){this.sendMessage("update-setting",{backspaceKeycap:t})}set tabKeycap(t){this.sendMessage("update-setting",{tabKeycap:t})}set container(t){throw new Error("Container inside an iframe cannot be changed")}show(t){this.sendMessage("show",t)}hide(t){this.sendMessage("hide",t)}get isShifted(){return this._isShifted}get visible(){return this._boundingRect.height>0}set visible(t){t?this.show():this.hide()}get boundingRect(){return this._boundingRect}executeCommand(t){return this.sendMessage("execute-command",{command:t}),!0}updateToolbar(t){this.sendMessage("update-toolbar",t)}update(t){this.sendMessage("update-setting",t)}connect(){this.sendMessage("connect")}disconnect(){this.sendMessage("disconnect")}addEventListener(t,r,i){this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].has(r)||this.listeners[t].add(r)}dispatchEvent(t){return!this.listeners[t.type]||this.listeners[t.type].size===0?!0:(this.listeners[t.type].forEach(r=>{typeof r=="function"?r(t):r==null||r.handleEvent(t)}),!t.defaultPrevented)}removeEventListener(t,r,i){this.listeners[t]&&this.listeners[t].delete(r)}handleEvent(t){if(V(t)){if(!Mh(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(m({type:R,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:"αβγ",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.greek",rows:[[{label:"<i>φ</i>",class:"MLK__tex hide-shift",insert:"\\varphi",aside:"phi var.",shift:"\\Phi"},{label:"<i>ς</i>",class:"MLK__tex hide-shift",insert:"\\varsigma",aside:"sigma var.",shift:"\\Sigma"},{label:"<i>ϵ</i>",class:"MLK__tex hide-shift",insert:"\\epsilon",aside:"espilon",shift:'\\char"0190'},{label:"<i>ρ</i>",class:"MLK__tex hide-shift",insert:"\\rho",aside:"rho",shift:'\\char"3A1'},{label:"<i>τ</i>",class:"MLK__tex hide-shift",insert:"\\tau",aside:"tau",shift:'\\char"3A4'},{label:"<i>υ</i>",class:"MLK__tex hide-shift",insert:"\\upsilon",aside:"upsilon",shift:"\\Upsilon"},{label:"<i>θ</i>",class:"MLK__tex hide-shift",insert:"\\theta",aside:"theta",shift:"\\Theta"},{label:"<i>ι</i>",class:"MLK__tex hide-shift",insert:"\\iota",aside:"iota",shift:'\\char"399'},{label:"<i>ο</i>",class:"MLK__tex hide-shift",insert:"\\omicron",aside:"omicron",shift:'\\char"39F'},{label:"<i>π</i>",class:"MLK__tex hide-shift",insert:"\\pi",aside:"pi",shift:"\\Pi"}],["[separator-5]",{label:"<i>α</i>",class:"MLK__tex hide-shift",insert:"\\alpha",aside:"alpha",shift:'\\char"391'},{label:"<i>σ</i>",class:"MLK__tex hide-shift",insert:"\\sigma",aside:"sigma",shift:"\\Sigma"},{label:"<i>δ</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>γ</i>",class:"MLK__tex hide-shift",insert:"\\gamma",aside:"gamma",shift:"\\Gamma"},{label:"<i>η</i>",class:"MLK__tex hide-shift",insert:"\\eta",aside:"eta",shift:'\\char"397'},{label:"<i>ξ</i>",class:"MLK__tex hide-shift",insert:"\\xi",aside:"xi",shift:"\\Xi"},{label:"<i>κ</i>",class:"MLK__tex hide-shift",insert:"\\kappa",aside:"kappa",shift:"\\Kappa"},{label:"<i>λ</i>",class:"MLK__tex hide-shift",insert:"\\lambda",aside:"lambda",shift:"\\Lambda"},"[separator-5]"],["[shift]",{label:"<i>ζ</i>",class:"MLK__tex hide-shift",insert:"\\zeta",aside:"zeta",shift:'\\char"396'},{label:"<i>χ</i>",class:"MLK__tex hide-shift",insert:"\\chi",aside:"chi",shift:'\\char"3A7'},{label:"<i>ψ</i>",class:"MLK__tex hide-shift",insert:"\\psi",aside:"zeta",shift:"\\Psi"},{label:"<i>ω</i>",class:"MLK__tex hide-shift",insert:"\\omega",aside:"omega",shift:"\\Omega"},{label:"<i>β</i>",class:"MLK__tex hide-shift",insert:"\\beta",aside:"beta",shift:'\\char"392'},{label:"<i>ν</i>",class:"MLK__tex hide-shift",insert:"\\nu",aside:"nu",shift:'\\char"39D'},{label:"<i>μ</i>",class:"MLK__tex hide-shift",insert:"\\mu",aside:"mu",shift:'\\char"39C'},"[backspace]"],["[separator]",{label:"<i>ε</i>",class:"MLK__tex",insert:"\\varepsilon",aside:"espilon var."},{label:"<i>ϑ</i>",class:"MLK__tex",insert:"\\vartheta",aside:"theta var."},{label:"<i>ϰ</i>",class:"MLK__tex",insert:"\\varkappa",aside:"kappa var."},{label:"<i>ϖ</i>",class:"MLK__tex",insert:"\\varpi",aside:"pi var."},{label:"<i>ϱ</i>",class:"MLK__tex",insert:"\\varrho",aside:"rho var."},"[left]","[right]","[action]"]]},symbols:{label:"∞\u2260\u2208",labelClass:"MLK__tex",tooltip:"keyboard.tooltip.symbols",rows:[[{latex:"\\sin",shift:"\\sin^{-1}",variants:[{class:"small",latex:"\\sinh"},{class:"small",latex:"\\sin^{-1}"},{class:"small",latex:"\\arsinh"}]},"\\ln",{latex:"\\mathrm{abs}",insert:"\\mathrm{abs}\\left(#0\\right)"},{latex:"\\rarr",shift:"\\rArr",variants:[{latex:"\\implies",aside:"implies"},{latex:"\\to",aside:"to"},"\\dashv",{latex:"\\roundimplies",aside:"round implies"}]},{latex:"\\exists",variants:["\\nexists"],shift:"\\nexists"},{latex:"\\in",shift:"\\notin",variants:["\\notin","\\owns"]},"\\cup",{latex:"\\overrightarrow{#@}",shift:"\\overleftarrow{#@}",variants:["\\overleftarrow{#@}","\\bar{#@}","\\vec{#@}","\\hat{#@}","\\check{#@}","\\dot{#@}","\\ddot{#@}","\\mathring{#@}","\\breve{#@}","\\acute{#@}","\\tilde{#@}","\\grave{#@}"]},{class:"small",latex:"\\lim_{#?}",shift:"\\lim_{x\\to\\infty}",variants:[{class:"small",latex:"\\liminf_{#?}"},{class:"small",latex:"\\limsup_{#?}"}]},"\\exponentialE"],[{latex:"\\cos",shift:"\\cos^{-1}",variants:[{class:"small",latex:"\\cosh"},{class:"small",latex:"\\cos^{-1}"},{class:"small",latex:"\\arcosh"}]},{latex:"\\log",shift:"\\log_{10}",variants:["\\log_{#0}","\\log_{10}"]},"\\left\\vert#0\\right\\vert",{latex:"\\larr",shift:"\\lArr",variants:[{latex:"\\impliedby",aside:"implied by"},{latex:"\\gets",aside:"gets"},"\\lArr","\\vdash",{latex:"\\models",aside:"models"}]},{latex:"\\forall",shift:"\\lnot",variants:[{latex:"\\land",aside:"and"},{latex:"\\lor",aside:"or"},{latex:"\\oplus",aside:"xor"},{latex:"\\lnot",aside:"not"},{latex:"\\downarrow",aside:"nor"},{latex:"\\uparrow",aside:"nand"},{latex:"\\curlywedge",aside:"nor"},{latex:"\\bar\\curlywedge",aside:"nand"}]},{latex:"\\ni",shift:"\\not\\owns"},"\\cap",{latex:"\\overline{#@}",shift:"\\underline{#@}",variants:["\\overbrace{#@}","\\overlinesegment{#@}","\\overleftrightarrow{#@}","\\overrightarrow{#@}","\\overleftarrow{#@}","\\overgroup{#@}","\\underbrace{#@}","\\underlinesegment{#@}","\\underleftrightarrow{#@}","\\underrightarrow{#@}","\\underleftarrow{#@}","\\undergroup{#@}"]},{class:"hide-shift",latex:"\\int",shift:"\\iint",variants:[{latex:"\\int_{#?}^{#?}",class:"small"},{latex:"\\int",class:"small"},{latex:"\\smallint",class:"small"},{latex:"\\iint",class:"small"},{latex:"\\iiint",class:"small"},{latex:"\\oint",class:"small"},"\\intop","\\iiint","\\oiint","\\oiiint","\\intclockwise","\\varointclockwise","\\ointctrclockwise","\\intctrclockwise"]},{latex:"\\pi",shift:"\\tau",variants:["\\tau"]}],[{latex:"\\tan",shift:"\\tan^{-1}",variants:[{class:"small",latex:"\\tanh"},{class:"small",latex:"\\tan^{-1}"},{class:"small",latex:"\\artanh"},{class:"small",latex:"\\arctan"},{class:"small",latex:"\\arctg"},{class:"small",latex:"\\tg"}]},{latex:"\\exp",insert:"\\exp\\left(#0\\right)",variants:["\\exponentialE^{#0}"]},"\\left\\Vert#0\\right\\Vert",{latex:"\\lrArr",shift:"\\leftrightarrow",variants:[{latex:"\\iff",aside:"if and only if"},"\\leftrightarrow","\\leftrightarrows","\\Leftrightarrow",{latex:"^\\biconditional",aside:"biconditional"}]},{latex:"\\vert",shift:"!"},{latex:"#@^{\\complement}",aside:"complement",variants:[{latex:"\\setminus",aside:"set minus"},{latex:"\\smallsetminus",aside:"small set minus"}]},{latex:"\\subset",shift:"\\subseteq",variants:["\\subset","\\subseteq","\\subsetneq","\\varsubsetneq","\\subsetneqq","\\nsubset","\\nsubseteq","\\supset","\\supseteq","\\supsetneq","\\supsetneqq","\\nsupset","\\nsupseteq"]},{latex:"#@^{\\prime}",shift:"#@^{\\doubleprime}",variants:["#@^{\\doubleprime}","#@\\degree"]},{latex:"\\mathrm{d}",shift:"\\partial",variants:["\\mathrm{d}x",{latex:"\\dfrac{\\mathrm{d}}{\\mathrm{d} x}",class:"small"},{latex:"\\frac{\\partial}{\\partial x}",class:"small"},"\\partial"]},{latex:"\\infty",variants:["\\aleph_0","\\aleph_1","\\omega","\\mathfrak{m}"]}],[{label:"[shift]",width:2},{class:"box",latex:",",shift:";",variants:[";","?"]},{class:"box",latex:"\\colon",shift:"\\Colon",variants:[{latex:"\\Colon",aside:"such that",class:"box"},{latex:":",aside:"ratio",class:"box"},{latex:"\\vdots",aside:"",class:"box"},{latex:"\\ddots",aside:"",class:"box"},{latex:"\\ldotp",aside:"low dot",class:"box"},{latex:"\\cdotp",aside:"center dot",class:"box"},{latex:"\\ldots",aside:"low ellipsis",class:"box"},{latex:"\\cdots",aside:"center ellipsis",class:"box"},{latex:"\\therefore",aside:"therefore",class:"box"},{latex:"\\because",aside:"because",class:"box"}]},{class:"box",latex:"\\cdot",aside:"centered dot",shift:"\\ast",variants:["\\circ","\\bigcirc","\\bullet","\\odot","\\oslash","\\circledcirc","\\ast","\\star","\\times","\\doteq","\\doteqdot"]},"[separator]","[left]","[right]",{label:"[backspace]",width:1,class:"action hide-shift"},{label:"[action]",width:1}]]},compact:{label:"compact",rows:[["[+]","[-]","[*]","[/]","[=]","[.]","[(]","[)]","\\sqrt{#0}","#@^{#?}"],["[1]","[2]","[3]","[4]","[5]","[6]","[7]","[8]","[9]","[0]"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]},minimalist:{label:"minimalist",layers:[{style:`
|
|
|
.minimalist-backdrop {
|
|
|
display: flex;
|
|
|
justify-content: center;
|
|
|
}
|
|
|
.minimalist-container {
|
|
|
--keycap-height: 40px;
|
|
|
--keycap-max-width: 53px;
|
|
|
--keycap-small-font-size: 12px;
|
|
|
background: var(--keyboard-background);
|
|
|
padding: 20px;
|
|
|
border-top-left-radius: 8px;
|
|
|
border-top-right-radius: 8px;
|
|
|
border: 1px solid var(--keyboard-border);
|
|
|
box-shadow: 0 0 32px rgb(0 0 0 / 30%);
|
|
|
}
|
|
|
`,backdrop:"minimalist-backdrop",container:"minimalist-container",rows:[["+","-","\\times",{latex:"\\frac{#@}{#0}",class:"small"},"=","[.]","(",")",{latex:"\\sqrt{#0}",class:"small"},{latex:"#@^{#?}",class:"small"}],["1","2","3","4","5","6","7","8","9","0"],["[hr]"],["[undo]","[redo]","[separator]","[separator]","[separator]","[left]","[right]",{label:"[backspace]",class:"action hide-shift"},"[hide-keyboard]"]]}]},"numeric-only":{label:"123",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.numeric",id:"numeric-only",rows:[["7","8","9","[separator]",{label:"[backspace]",width:2}],["4","5","6","[separator]","[separator]","[separator]"],["1","2","3","[separator]","[separator]","[separator]"],["0",{label:"[.]",variants:[]},"-","[separator]","[left]","[right]"]]}},$e={0:["\\varnothing","\\infty"],1:["\\frac{1}{#@}","#@^{-1}","\\times 10^{#?}","\\phi","\\imaginaryI"],2:["\\frac{1}{2}","#@^2","\\sqrt2","\\exponentialE"],3:["\\frac{1}{3}","#@^3","\\sqrt3","\\pi"],4:["\\frac{1}{4}","#@^4"],5:["\\frac{1}{5}","#@^5","\\sqrt5"],6:["\\frac{1}{6}","#@^6"],7:["\\frac{1}{7}","#@^7"],8:["\\frac{1}{8}","#@^8"],9:["\\frac{1}{9}","#@^9"],".":[".",",",";","\\colon"],",":["{,}",".",";","\\colon"],a:[{latex:"\\aleph",aside:"aleph"},{latex:"\\forall",aside:"for all"},"\xE0","\xE1","\xE2","\xE4","\xE6"],b:[{latex:"\\beth",aside:"beth"}],c:[{latex:"\\C",aside:"set of complex numbers"},"\xE7"],d:[{latex:"\\daleth",aside:"daleth"}],e:[{latex:"\\exponentialE",aside:"exponential e"},{latex:"\\exists",aside:"there is"},{latex:"\\nexists",aside:"there isn\u2019t"},"\xE8","\xE9","\xEA","\xEB"],g:[{latex:"\\gimel",aside:"gimel"}],h:[{latex:"\\hbar",aside:"h bar"},{latex:"\\hslash",aside:"h slash"}],i:[{latex:"\\imaginaryI",aside:"imaginary i"},"\xEC","\xED","\xEE","\xEF"],j:[{latex:"\\imaginaryJ",aside:"imaginary j"}],l:[{latex:"\\ell",aside:"ell"}],n:[{latex:"\\mathbb{N}",aside:"set of natural numbers"},"\xF1"],o:["\xF8","\u0153","\xF2","\xF3","\xF4","\xF6","\u0153"],p:[{latex:"\\mathbb{P}",aside:"set of primes"}],q:[{latex:"\\mathbb{Q}",aside:"set of rational numbers"}],r:[{latex:"\\mathbb{R}",aside:"set of real numbers"}],u:["\xF9","\xFA","\xFB","\xFC"],z:[{latex:"\\mathbb{Z}",aside:"set of integers"}],y:["\xFD","\xFF"],space:[{latex:'\\char"203A\\!\\char"2039',insert:"\\!",aside:"negative thin space<br>\u207B\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\,\\char"2039',insert:"\\,",aside:"thin space<br>\xB3\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\:\\char"2039',insert:"\\:",aside:"medium space<br>\u2074\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\;\\char"2039',insert:"\\;",aside:"thick space<br>\u2075\u29F8\u2081\u2088 em"},{latex:'\\char"203A\\ \\char"2039',insert:"\\ ",aside:"\u2153 em"},{latex:'\\char"203A\\enspace\\char"2039',insert:"\\enspace",aside:"\xBD em"},{latex:'\\char"203A\\quad\\char"2039',insert:"\\quad",aside:"1 em"},{latex:'\\char"203A\\qquad\\char"2039',insert:"\\qquad",aside:"2 em"}]},oe;function gt(e,t){var r,i,s;const c=Ur.singleton;if(!c)return;const u=Br(e),L=(i=(r=c.getKeycap(u==null?void 0:u.id))==null?void 0:r.variants)!=null?i:"";if(typeof L=="string"&&!lt(L)||Array.isArray(L)&&L.length===0){t==null||t();return}const z={};let X="";for(const xr of Xt(L)){const Sn=In(xr),vr=Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);z[vr]=Sn;const[nn,Ln]=Vr(Sn);X+=`<div id=${vr} class="item ${Ln}">${nn}</div>`}const ce=document.createElement("div");ce.setAttribute("aria-hidden","true"),ce.className="MLK__variant-panel",ce.style.height="auto";const Te=Object.keys(z).length;let nt=5;Te===1?nt=1:Te===2||Te===4?nt=2:Te===3||Te===5||Te===6?nt=3:Te>=7&&Te<14&&(nt=4),ce.style.width=`calc(var(--variant-keycap-length) * ${nt} + 12px)`,ce.innerHTML=Tg.createHTML(X),Hc.open({root:(s=c==null?void 0:c.container)==null?void 0:s.querySelector(".ML__keyboard"),child:ce}),oe=new AbortController;const{signal:vt}=oe,St=e==null?void 0:e.getBoundingClientRect();if(St){St.top-ce.clientHeight<0&&(ce.style.width="auto",Te<=6?ce.style.height="56px":Te<=12?ce.style.height="108px":Te<=18?ce.style.height="205px":ce.classList.add("compact"));const xr=Math.max(0,Math.min(window.innerWidth-ce.offsetWidth,(St.left+St.right-ce.offsetWidth)/2)),Sn=St.top-ce.clientHeight+5;ce.style.transform=`translate(${xr}px, ${Sn}px)`,ce.classList.add("is-visible"),requestAnimationFrame(()=>{ce.addEventListener("pointerup",vr=>{const nn=Br(vr.target);!(nn!=null&&nn.id)||!z[nn.id]||(er(z[nn.id]),dt(),t==null||t(),vr.preventDefault())},{capture:!0,passive:!1,signal:vt}),ce.addEventListener("pointerenter",vr=>{const nn=Br(vr.target);!(nn!=null&&nn.id)||!z[nn.id]||nn.classList.add("is-active")},{capture:!0,signal:vt}),ce.addEventListener("pointerleave",vr=>{const nn=Br(vr.target);!(nn!=null&&nn.id)||!z[nn.id]||nn.classList.remove("is-active")},{capture:!0,signal:vt}),window.addEventListener("pointercancel",()=>{dt(),t==null||t()},{signal:vt}),window.addEventListener("pointerup",()=>{dt(),t==null||t()},{signal:vt})})}}function dt(){oe==null||oe.abort(),oe=null,Hc.state==="open"&&Hc.close()}function yt(e){if(e==="foreground-color"){const t=[];for(const r of Object.keys(he))t.push({class:"swatch-button",label:'<span style="border: 3px solid '+he[r]+'"></span>',command:["applyStyle",{color:r}]});return t}if(e==="background-color"){const t=[];for(const r of Object.keys(se))t.push({class:"swatch-button",label:'<span style="background:'+se[r]+'"></span>',command:["applyStyle",{backgroundColor:r}]});return t}}function lt(e){return $e[e]!==void 0}function Xt(e){var t;return typeof e!="string"?e:($e[e]||($e[e]=(t=yt(e))!=null?t:[]),$e[e])}function Qt(e){return typeof e=="string"?e:Object.entries(e).map(([t,r])=>`${t}:${r} !important`).join(";")}function It(e){return Object.keys(e).map(t=>`${t} {${Qt(e[t])}}`).join("")}function kr(e){if(!e)return"";const t=new Eo,r=new Tr({mode:"math",type:"root",body:fc(e,{context:t,args:s=>s==="@"?"{\\class{ML__box-placeholder}{\\blacksquare}}":"\\placeholder{}"})}),i=hf(cl(new Hr(r.render(t),{classes:"ML__base"}),t));return Wf(i,{classes:"ML__latex"}).toMarkup()}function rn(e){var t;if(Array.isArray(e))return e.map(i=>rn(i)).flat();const r=typeof e=="string"?{markup:e}:e;return"rows"in r&&Array.isArray(r.rows)&&(r.rows=r.rows.map(i=>i.map(s=>In(s)))),(t=r.id)!=null||(r.id="ML__layer_"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36)),[r]}function Pr(){var e,t;let i=window.mathVirtualKeyboard.alphabeticLayout;if(i==="auto"){const L=hu();L&&(i=L.virtualLayout),(!i||i==="auto")&&(i=(e={fr:"azerty",be:"azerty",al:"qwertz",ba:"qwertz",cz:"qwertz",de:"qwertz",hu:"qwertz",sk:"qwertz",ch:"qwertz"}[ie.locale.slice(0,2)])!=null?e:"qwerty")}const s={qwerty:["qwertyuiop"," asdfghjkl ","^zxcvbnm~"],azerty:["azertyuiop","qsdfghjklm","^ wxcvbn ~"],qwertz:["qwertzuiop"," asdfghjkl ","^yxcvbnm~"],dvorak:["^ pyfgcrl ","aoeuidhtns","qjkxbmwvz~"],colemak:[" qwfpgjluy ","arstdhneio","^zxcvbkm~"]},c=(t=s[i])!=null?t:s.qwerty,u=i==="azerty"?[[{label:"1",variants:"1"},{label:"2",shift:{latex:"\xE9"},variants:"2"},{label:"3",shift:{latex:"\xF9"},variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{label:"(",latex:"("},variants:"5"},{label:"6",shift:{label:")",latex:")"},variants:"6"},{label:"7",shift:{latex:"\xE8"},variants:"7"},{label:"8",shift:{latex:"\xEA"},variants:"8"},{label:"9",shift:{latex:"\xE7"},variants:"9"},{label:"0",shift:{latex:"\xE0"},variants:"0"}]]:[[{label:"1",variants:"1"},{label:"2",variants:"2"},{label:"3",variants:"3"},{label:"4",variants:"4"},{label:"5",shift:{latex:"\\frac{#@}{#?}"},variants:"5"},{label:"6",shift:{latex:"#@^#?"},variants:"6"},{label:"7",variants:"7"},{label:"8",shift:{latex:"\\times"},variants:"8"},{label:"9",shift:{label:"(",latex:"("},variants:"9"},{label:"0",shift:{label:")",latex:")"},variants:"0"}]];for(const L of c){const z=[];for(const X of L)/[a-z]/.test(X)?z.push({label:X,class:"hide-shift",shift:{label:X.toUpperCase()},variants:lt(X)?X:void 0}):X==="~"?i!=="dvorak"?z.push("[backspace]"):z.push({label:"[backspace]",width:1}):X==="^"?z.push("[shift]"):X===" "&&z.push("[separator-5]");u.push(z)}return u.push(["[-]","[+]","[=]",{label:" ",width:1.5},{label:",",shift:";",variants:".",class:"hide-shift"},"[.]","[left]","[right]",{label:"[action]",width:1.5}]),{label:"abc",labelClass:"MLK__tex-math",tooltip:"keyboard.tooltip.alphabetic",layers:rn({rows:u})}}function ir(e){if(e==="alphabetic")return Pr();if(typeof e=="string")return console.assert(Re[e]!==void 0,`MathLive 0.98.5: unknown keyboard layout "${e}"`),ir(Re[e]);let t;if("rows"in e&&Array.isArray(e.rows)){console.assert(!("layers"in e||"markup"in e),'MathLive 0.98.5: when providing a "rows" property, "layers" and "markup" are ignored');const s=e,{rows:c}=s,u=$(s,["rows"]);t=I(m({},u),{layers:rn({rows:e.rows})})}else if("markup"in e&&typeof e.markup=="string"){const s=e,{markup:c}=s,u=$(s,["markup"]);t=I(m({},u),{layers:rn(e.markup)})}else t=m({},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()){Gr(c)&&(r=!0);const u=c.command;typeof u=="string"&&["undo","redo","cut","copy","paste"].includes(u)&&(i=!0)}return(!("displayShiftedKeycaps"in e)||e.displayShiftedKeycaps===void 0)&&(t.displayShiftedKeycaps=r),(!("displayEditToolbar"in e)||e.displayEditToolbar===void 0)&&(t.displayEditToolbar=!i),t}function Lt(e,t){var r,i;let s='<div class="left">';if(e.normalizedLayouts.length>1)for(const[c,u]of e.normalizedLayouts.entries()){const L=u,z=[c===t?"selected":"layer-switch"];L.tooltip&&z.push("MLK__tooltip"),L.labelClass&&z.push(...L.labelClass.split(" ")),s+=`<div class="${z.join(" ")}"`,L.tooltip&&(s+=" data-tooltip='"+((r=J(L.tooltip))!=null?r:L.tooltip)+"' "),c!==t&&(s+=`data-layer="${L.layers[0].id}"`),s+=`>${(i=L.label)!=null?i:"untitled"}</div>`}return s+="</div>",s}function wr(e,t){let r="";if(e.editToolbar==="none")return"";const s=[];t.selectionIsCollapsed?s.push("undo","redo","pasteFromClipboard"):s.push("cutToClipboard","copyToClipboard","pasteFromClipboard");const c={undo:`<div class='action ${t.canUndo===!1?"disabled":""}'
|
|
|
data-command='"undo"'
|
|
|
data-tooltip='${J("tooltip.undo")}'>
|
|
|
<svg><use xlink:href='#svg-undo' /></svg>
|
|
|
</div>`,redo:`<div class='action ${t.canRedo===!1?"disabled":""}'
|
|
|
data-command='"redo"'
|
|
|
data-tooltip='${J("tooltip.redo")}'>
|
|
|
<svg><use xlink:href='#svg-redo' /></svg>
|
|
|
</div>`,cutToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"cutToClipboard"'
|
|
|
data-tooltip='${J("tooltip.cut to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-cut' /></svg>
|
|
|
</div>
|
|
|
`,copyToClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"copyToClipboard"'
|
|
|
data-tooltip='${J("tooltip.copy to clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-copy' /></svg>
|
|
|
</div>
|
|
|
`,pasteFromClipboard:`
|
|
|
<div class='action'
|
|
|
data-command='"pasteFromClipboard"'
|
|
|
data-tooltip='${J("tooltip.paste from clipboard")}'>
|
|
|
<svg><use xlink:href='#svg-paste' /></svg>
|
|
|
</div>
|
|
|
`};return r+=s.map(u=>c[u]).join(""),r}function it(e){for(const t of e)Ct(t)}function Ct(e){const t=Ur.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]=Vr(r);e.innerHTML=window.MathfieldElement.createHTML(i)}}function tr(){ld("virtual-keyboard"),ld("core"),um()}function $t(){cd("core"),cd("virtual-keyboard")}var Kr=`<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(),tr();const t=document.createElement("div");t.className="ML__keyboard";const r=document.createElement("div");r.className="MLK__plate",r.innerHTML=window.MathfieldElement.createHTML(Kr+e.normalizedLayouts.map((u,L)=>tn(e,u,L)).join(""));const i=document.createElement("div");i.className="MLK__backdrop",i.appendChild(r),t.appendChild(i),t.addEventListener("pointerdown",Et,{passive:!1});const s=t.querySelectorAll(".ML__edit-toolbar");if(s)for(const u of s)u.addEventListener("click",L=>{var z,X;let ce=L.target,Te="";for(;ce&&!Te;)Te=(z=ce==null?void 0:ce.getAttribute("data-command"))!=null?z:"",ce=(X=ce==null?void 0:ce.parentElement)!=null?X:null;Te&&e.executeCommand(JSON.parse(Te))});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 u of c)u.addEventListener("pointerdown",L=>L.preventDefault());return e.currentLayer=e.latentLayer,t}function tn(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>${It(t.style)}</style>`),t.backdrop&&(r+=`<div class='${t.backdrop}'>`),t.container&&(r+=`<div class='${t.container}'>`),t.rows){r+="<div class=MLK__rows>";for(const i of t.rows){r+="<div dir='ltr' class=MLK__row>";for(const s of i)if(s){const c=e.registerKeycap(s),[u,L]=Vr(s);/(^|\s)separator/.test(L)?r+=`<div class="${L}"`:r+=`<div tabindex="-1" id="${c}" class="${L}"`,s.tooltip&&(r+=` data-tooltip="${s.tooltip}"`),r+=`>${u}</div>`}r+="</div>"}r+="</div>"}else t.markup&&(r+=t.markup);return t.container&&(r+="</div>"),t.backdrop&&(r+="</div>"),r}function Vr(e,t={shifted:!1}){var r,i,s,c,u,L,z;let X="",ce=(r=e.class)!=null?r:"";if(t.shifted&&Gr(e)&&(ce+=" is-active"),t.shifted&&"shift"in e)typeof e.shift=="string"?X=kr(e.shift):typeof e.shift=="object"&&(X=e.shift.label?e.shift.label:(i=kr(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?i:""),typeof e.shift=="object"&&(ce=(c=(s=e.shift.class)!=null?s:e.class)!=null?c:"");else{if(X=e.label?e.label:(u=kr(e.latex||e.insert||"")||e.key)!=null?u:"",e.shift){let Te;typeof e.shift=="string"?Te=kr(e.shift):e.shift.label?Te=e.shift.label:Te=(L=kr(e.shift.latex||e.shift.insert||"")||e.shift.key)!=null?L:"",X+=`<span class="MLK__shift">${Te}</span>`}e.aside&&(X+=`<aside>${e.aside}</aside>`)}return e.layer&&!/layer-switch/.test(ce)&&(ce+=" layer-switch"),/(^|\s)(separator|action|shift|fnbutton|bigfnbutton)($|\s)/.test(ce)||(ce+=" MLK__keycap"),!/\bw[0-9]+\b/.test(ce)&&e.width&&(ce+=(z={0:" w0",.5:" w5",1.5:" w15",2:" w20",5:" w50"}[e.width])!=null?z:""),[X,ce||"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:"−",shift:"\\pm",class:"big-op hide-shift"},"[/]":{class:"big-op hide-shift",shift:{class:"",latex:"\\frac{1}{#@}"},variants:["/","\\div","\\%","\\oslash"],latex:"\\frac{#@}{#?}",label:"÷"},"[*]":{variants:[{latex:"\\prod_{#0}^{#0}",class:"small"},"\\otimes","\\cdot"],latex:"\\cdot",label:"×",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 In(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=I(m(m({},Zn[e.label]),e),{label:Zn[e.label].label})),"key"in e&&e.key&&Zn[e.key]&&(r=I(m(m({},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=m(m({},r),window.mathVirtualKeyboard.actionKeycap)),e.label==="[shift]"&&(r=m(m({},r),window.mathVirtualKeyboard.shiftKeycap)),e.label==="[backspace]"&&(r=m(m({},r),window.mathVirtualKeyboard.backspaceKeycap)),e.label==="[tab]"&&(r=m(m({},r),window.mathVirtualKeyboard.tabKeycap)),r):e}var tt;function Et(e){var t;if(e.button!==0)return;const r=Ur.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=Br(e.target);if(!(s!=null&&s.id))return;const c=r.getKeycap(s.id);if(!c)return;console.assert(e.type==="pointerdown");const u=new AbortController,L=u.signal;s.classList.add("is-pressed"),s.addEventListener("pointerenter",Nt(u),{capture:!0,signal:L}),s.addEventListener("pointerleave",Nt(u),{capture:!0,signal:L}),s.addEventListener("pointercancel",Nt(u),{signal:L}),s.addEventListener("pointerup",Nt(u),{signal:L}),Gr(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),gt(s,()=>{u.abort(),s==null||s.classList.remove("is-active")}))},300)),e.preventDefault()}function Nt(e){return t=>{const r=Br(t.target);if(!(r!=null&&r.id))return;const i=Ur.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"),Gr(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"),Gr(s)&&(i.shiftPressCount--,r.classList.toggle("is-active",i.isShifted));return}if(t.type==="pointerup"){tt&&clearTimeout(tt),Gr(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"}]):er(s.shift):er(s),i.shiftPressCount===1&&!t.shiftKey&&(i.shiftPressCount=0)),e.abort(),t.preventDefault();return}}}}function er(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=Ur.singleton)==null||t.executeCommand(r)}function dr(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 Br(e){if(!e)return;let t=e;for(;t&&!dr(t);)t=t.parentElement;return t!=null?t:void 0}function Gr(e){return!!e.class&&/(^|\s)shift($|\s)/.test(e.class)}var Ur=class uv{constructor(){this.originalContainerBottomPadding=null,this.keycapRegistry={},this._shiftPressCount=0;var t,r,i;this.targetOrigin=window.origin,this.originValidator="none",this._alphabeticLayout="auto",this._layouts=Object.freeze(["default"]),this._editToolbar="default",this._container=(r=(t=window.document)==null?void 0:t.body)!=null?r:null,this._visible=!1,this._rebuilding=!1,this.observer=new ResizeObserver(s=>{this.adjustBoundingRect(),this.dispatchEvent(new Event("geometrychange")),this.sendMessage("geometry-changed",{boundingRect:this.boundingRect})}),this.listeners={};try{(i=window.top)==null||i.addEventListener("message",this)}catch(s){window.addEventListener("message",this)}document.body.addEventListener("focusin",s=>{const c=s.target;c!=null&&c.isConnected&&setTimeout(()=>{const u=wn();u&&!u.readOnly&&u.mathVirtualKeyboardPolicy==="auto"&&U()&&this.show({animate:!0})},300)}),document.addEventListener("focusout",s=>{s.target.mathVirtualKeyboardPolicy!=="manual"&&setTimeout(()=>{wn()||this.hide()},300)})}get currentLayer(){var t,r,i;return(i=(r=(t=this._element)==null?void 0:t.querySelector(".MLK__layer.is-visible"))==null?void 0:r.id)!=null?i:""}set currentLayer(t){var r;if(!this._element){this.latentLayer=t;return}let i=t?this._element.querySelector(`#${t}.MLK__layer`):null;i||(i=this._element.querySelector(".MLK__layer")),i&&((r=this._element.querySelector(".MLK__layer.is-visible"))==null||r.classList.remove("is-visible"),i.classList.add("is-visible")),this.render()}get shiftPressCount(){return this._shiftPressCount}set shiftPressCount(t){var r;this._shiftPressCount=t>2||t<0?0:t,(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.render()}get isShifted(){return this._shiftPressCount>0}resetKeycapRegistry(){this.keycapRegistry={}}registerKeycap(t){const r="ML__k"+Date.now().toString(36).slice(-2)+Math.floor(Math.random()*1e5).toString(36);return this.keycapRegistry[r]=t,r}getKeycap(t){return t?this.keycapRegistry[t]:void 0}getLayer(t){const r=this.normalizedLayouts;for(const i of r)for(const s of i.layers)if(s.id===t)return s}get alphabeticLayout(){return this._alphabeticLayout}set alphabeticLayout(t){this._alphabeticLayout=t,this.rebuild()}get actionKeycap(){return this._actionKeycap}set actionKeycap(t){this._actionKeycap=typeof t=="string"?{label:t}:t}get shiftKeycap(){return this._shiftKeycap}set shiftKeycap(t){this._shiftKeycap=typeof t=="string"?{label:t}:t}get backspaceKeycap(){return this._backspaceKeycap}set backspaceKeycap(t){this._backspaceKeycap=typeof t=="string"?{label:t}:t}get tabKeycap(){return this._tabKeycap}set tabKeycap(t){this._tabKeycap=typeof t=="string"?{label:t}:t}get layouts(){return this._layouts}set layouts(t){this.updateNormalizedLayouts(t),this.rebuild()}updateNormalizedLayouts(t){const r=Array.isArray(t)?[...t]:[t],i=r.findIndex(s=>s==="default");i>=0&&r.splice(i,1,"numeric","symbols","alphabetic","greek"),this._layouts=Object.freeze(r),this._normalizedLayouts=r.map(s=>ir(s))}get normalizedLayouts(){return this._normalizedLayouts||this.updateNormalizedLayouts(this._layouts),this._normalizedLayouts}get editToolbar(){return this._editToolbar}set editToolbar(t){this._editToolbar=t,this.rebuild()}get container(){return this._container}set container(t){this._container=t,this.rebuild()}static get singleton(){if(this._singleton===void 0)try{this._singleton=new uv}catch(t){this._singleton=null}return this._singleton}get style(){return this._style}addEventListener(t,r,i){this.listeners[t]||(this.listeners[t]=new Set),this.listeners[t].has(r)||this.listeners[t].add(r)}dispatchEvent(t){return!this.listeners[t.type]||this.listeners[t.type].size===0?!0:(this.listeners[t.type].forEach(r=>{typeof r=="function"?r(t):r==null||r.handleEvent(t)}),!t.defaultPrevented)}removeEventListener(t,r,i){this.listeners[t]&&this.listeners[t].delete(r)}get element(){return this._element}set element(t){var r;this._element!==t&&((r=this._element)==null||r.remove(),this._element=t)}get visible(){return this._visible}set visible(t){t?this.show():this.hide()}get boundingRect(){var t;if(!this._visible)return new DOMRect;const r=(t=this._element)==null?void 0:t.getElementsByClassName("MLK__plate")[0];return r?r.getBoundingClientRect():new DOMRect}adjustBoundingRect(){var t,r;const i=this.boundingRect.height;if(this.container===document.body){(t=this._element)==null||t.style.setProperty("--_keyboard-height",`calc(${i}px + var(--_padding-top) + var(--_padding-bottom) + env(safe-area-inset-bottom, 0))`);const s=i-1;this.container.style.paddingBottom=this.originalContainerBottomPadding?`calc(${this.originalContainerBottomPadding} + ${s}px)`:`${s}px`}else(r=this._element)==null||r.style.setProperty("--_keyboard-height",`${i}px`)}rebuild(){if(this._rebuilding||!this._element)return;this._rebuilding=!0;const t=this.currentLayer;requestAnimationFrame(()=>{this._rebuilding=!1,this._element&&(this._element.remove(),this._element=void 0),this.visible&&(this.buildAndAttachElement(),this.currentLayer=t,this.render(),this.adjustBoundingRect(),this._element.classList.add("is-visible"))})}render(){if(!this._element)return;const t=this.getLayer(this.currentLayer);this._element.classList.toggle("backdrop-is-transparent",!!(t&&(t.backdrop||t.container)));const r=this._element.querySelectorAll(".MLK__layer.is-visible .MLK__keycap, .MLK__layer.is-visible .action, .fnbutton, .MLK__layer.is-visible .bigfnbutton, .MLK__layer.is-visible .shift");if(r)for(const i of r){const s=this.getKeycap(i.id);if(s){const[c,u]=Vr(s,{shifted:this.isShifted});i.innerHTML=window.MathfieldElement.createHTML(c),i.className=u}}}show(t){var r;if(this._visible)return;const i=this.container;if(i&&window.mathVirtualKeyboard&&this.stateWillChange(!0)){if(this._element||(this.buildAndAttachElement(),this.adjustBoundingRect()),!this._visible){const s=this._element.getElementsByClassName("MLK__plate")[0];if(s&&this.observer.observe(s),i===window.document.body){const c=i.style.paddingBottom;this.originalContainerBottomPadding=c;const u=s.offsetHeight-1;i.style.paddingBottom=c?`calc(${c} + ${u}px)`:`${u}px`}window.addEventListener("mouseup",this),window.addEventListener("blur",this),window.addEventListener("keydown",this,{capture:!0}),window.addEventListener("keyup",this,{capture:!0}),(r=this._element)==null||r.classList.toggle("is-caps-lock",this.shiftPressCount===2),this.currentLayer=this.latentLayer}this._visible=!0,t!=null&&t.animate?requestAnimationFrame(()=>{this._element&&(this._element.classList.add("animate"),this._element.addEventListener("transitionend",()=>{var s;return(s=this._element)==null?void 0:s.classList.remove("animate")},{once:!0}),this._element.classList.add("is-visible"),this.stateChanged())}):(this._element.classList.add("is-visible"),this.stateChanged())}}hide(t){var r;const i=this.container;if(i&&this._visible&&this.stateWillChange(!1)){if(this._visible=!1,this._element){this.latentLayer=this.currentLayer;const s=this._element.getElementsByClassName("MLK__plate")[0];s&&this.observer.unobserve(s),window.removeEventListener("mouseup",this),window.removeEventListener("blur",this),window.removeEventListener("keydown",this,{capture:!0}),window.removeEventListener("keyup",this,{capture:!0}),window.removeEventListener("contextmenu",this,{capture:!0}),dt(),$t(),(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)&>(r.target),r.preventDefault(),r.stopPropagation())},{capture:!0}),(t=this.container)==null||t.appendChild(this.element)}handleEvent(t){if(V(t)){if(!Mh(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:m({type:R,action:t},r)}));return}if(i)i.postMessage(m({type:R,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=wr(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 wn(){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(P()&&!("mathVirtualKeyboard"in window))if(window===window.top){const e=Ur.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>e})}else Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>le.singleton,configurable:!0});function zn(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,u]=i.split(",").map(L=>parseInt(L.trim()));t.scriptDepth=[c,u]}else throw new TypeError("Unexpected value for scriptDepth");break;case"mathVirtualKeyboardPolicy":let s=e.mathVirtualKeyboardPolicy.toLowerCase();if(s==="sandboxed"){if(window!==window.top){const c=Ur.singleton;Object.defineProperty(window,"mathVirtualKeyboard",{get:()=>c})}s="manual"}t.mathVirtualKeyboardPolicy=s;break;case"letterShapeStyle":e.letterShapeStyle==="auto"?ie.locale.startsWith("fr")?t.letterShapeStyle="french":t.letterShapeStyle="tex":t.letterShapeStyle=e.letterShapeStyle;break;case"defaultMode":["text","math","inline-math"].includes(e.defaultMode)?t.defaultMode=e.defaultMode:(console.error('MathLive 0.98.5: valid values for defaultMode are "text", "math" or "inline-math"'),t.defaultMode="math");break;case"macros":t.macros=Le(e.macros);break;default:_(e[r])?t[r]=[...e[r]]:typeof e[r]=="object"&&!(e[r]instanceof Element)&&r!=="computeEngine"?t[r]=m({},e[r]):t[r]=e[r]}return t}function hi(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]=m({},e[s]):i[s]=e[s];return typeof t=="string"?i[t]:i}function Si(){return{readOnly:!1,defaultMode:"math",macros:{},registers:{},colorMap:Pe,backgroundColorMap:q,letterShapeStyle:ie.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:dp,inlineShortcutTimeout:0,mathVirtualKeyboardPolicy:"auto",virtualKeyboardTargetOrigin:window==null?void 0:window.origin,originValidator:"none",onInlineShortcut:()=>"",onScrollIntoView:null,onExport:km,value:""}}function sn(e){return e.defaultMode==="inline-math"?"math":e.defaultMode}function Ft(e,t){!e||!t||(_(e)?e.forEach(r=>Ft(r,t)):typeof e=="object"&&!e.style.color&&!e.style.backgroundColor&&!e.style.fontFamily&&!e.style.fontShape&&!e.style.fontSeries&&!e.style.fontSize&&!e.style.variant&&!e.style.variantStyle&&(e.applyStyle(t),Ft(e.body,t),Ft(e.above,t),Ft(e.below,t),Ft(e.subscript,t),Ft(e.superscript,t)))}function Go(e,t,r,i){function s(u,L){for(const z of c)if(z.style[u]!==L)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=ol),r.variant&&s("variant",r.variant)&&(r.variant="normal"),r.variantStyle&&s("variantStyle",r.variantStyle)&&(r.variantStyle=""));for(const u of c)u.applyStyle(r);return!0}function _o(e,t){const r=e.at(e.position);if(r.type==="composition")r.value=t;else{const{caret:i}=r;r.caret=void 0;const s=new im(t,{mode:r.mode});s.caret=i,r.parent.addChildAfter(s,r),e.position+=1}}function Ta(e){const t=e.at(e.position);t.type==="composition"&&(t.parent.removeChild(t),e.position-=1)}je(["math","displaymath"],ci),je("center",ci),ge("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"}]})}),mt("array","{columns:colspec}",(e,t,r,i)=>new hs(e,wa(t),r,{columns:i[0],mathstyleName:"textstyle"})),mt(["equation","equation*","subequations"],"",(e,t,r)=>new hs(e,wa(t),r,{columns:[{align:"c"}]})),mt(["multline","multline*"],"",ci),mt(["align","align*","aligned","eqnarray"],"",ci),mt("split","",ci),mt(["gather","gathered"],"",ci),mt(["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],"[columns:colspec]",ci),mt(["smallmatrix","smallmatrix*"],"[columns:colspec]",ci),mt(["cases","dcases","rcases"],"",ci);function Gn(e){for(const t of e)for(const r of t)if(r.length>0)return!1;return!0}function wa(e,t=1){return Gn(e)?Array(t).fill([[new Tr({type:"first"}),new Tu]]):e.map(r=>r.length===0?[[new Tr({type:"first"})]]:r.map(i=>i.length===0?[new Tr({type:"first"})]:(i[0].type!=="first"&&i.unshift(new Tr({type:"first"})),i)))}function ci(e,t=[[[]]],r=[],i=[]){switch(t=wa(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:Ja(i[0])});case"bmatrix":case"bmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"[",rightDelim:"]",columns:Ja(i[0])});case"Bmatrix":case"Bmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\lbrace",rightDelim:"\\rbrace",columns:Ja(i[0])});case"vmatrix":case"vmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\vert",rightDelim:"\\vert",columns:Ja(i[0])});case"Vmatrix":case"Vmatrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:"\\Vert",rightDelim:"\\Vert",columns:Ja(i[0])});case"matrix":case"matrix*":return new hs(e,t,r,{mathstyleName:"textstyle",leftDelim:".",rightDelim:".",columns:Ja(i==null?void 0:i[0])});case"smallmatrix":case"smallmatrix*":return new hs(e,t,r,{mathstyleName:"scriptstyle",columns:Ja(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 L of t)s=Math.max(s,L.length);const c=[{gap:0},{align:"r"},{gap:.25},{align:"l"}];let u=2;for(;u<s;)c.push({gap:1},{align:"r"},{gap:.25},{align:"l"}),u+=2;return c.push({gap:0}),new hs(e,t,r,{arraycolsep:0,columns:c,minColumns:2})}}return new hs(e,t,r,{mathstyleName:"textstyle"})}function Ja(e){return e!=null?e:[{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"},{align:"c"}]}function Fa(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=La()),s.length===0&&(s=La());let u;return t.endsWith("column")?(u=ci("split",[[c,s]]),e.root=u,ts(u,0,0)?Wa(e,u,0,0):ts(u,0,1)?Wa(e,u,0,1):e.position=e.offsetOf(i)):(u=ci("lines",[[c],[s]]),e.root=u,ts(u,0,0)?Wa(e,u,0,0):ts(u,1,0)?Wa(e,u,1,0):e.position=e.offsetOf(i)),[void 0,[0,0]]}if(r.parent instanceof tl){const s=r.parent;let c=e.extractAtoms([e.position,e.offsetOf(s.lastChild)]),u=e.extractAtoms([e.offsetOf(s.firstChild),e.position]);u.length===0&&(u=La()),c.length===0&&(c=La());let L="pmatrix";const z=s.leftDelim,X=s.rightDelim;z==="("&&(X===")"||X==="?")?L="pmatrix":(z==="["||z==="\\lbrack")&&(X==="]"||X==="\\rbrack"||X==="?")?L="bmatrix":z==="\\vert"&&X==="\\vert"?L="vmatrix":z==="\\Vert"&&X==="\\Vert"?L="Vmatrix":(z==="{"||z==="\\lbrace")&&(X==="."||X==="?")&&(L="cases");const ce=ci(L,t.endsWith("column")?[[u,c]]:[[u],[c]]);return s.parent.addChildBefore(ce,s),s.parent.removeChild(s),ts(ce,0,0)?Wa(e,ce,0,0):t.endsWith("column")?ts(ce,0,1)?Wa(e,ce,0,1):e.position=e.offsetOf(r):ts(ce,1,0)?Wa(e,ce,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 ts(e,t,r){const i=e.getCell(t,r);return!i||i.length!==2?!1:i[1].type==="placeholder"}function yo(e,t,r,i){const s=t.getCell(r,i);return s?[e.offsetOf(s[0]),e.offsetOf(s[s.length-1])]:-1}function Wa(e,t,r,i){const s=yo(e,t,r,i);typeof s!="number"&&e.setSelection(s)}function Hs(e,t,r,i,s){const c=t.getCell(r,i);c&&e.setPositionHandlingPlaceholder(e.offsetOf(c[s==="start"?0:c.length-1]))}function uo(e,t){const[r,[i,s]]=Fa(e,t);if(r)switch(t){case"after row":r.addRowAfter(i),Hs(e,r,i+1,0,"end");break;case"after column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnAfter(s),Hs(e,r,i,s+1,"end");break;case"before row":r.addRowBefore(i),Hs(e,r,i,0,"start");break;case"before column":if(r.maxColumns<=r.colCount){e.announce("plonk");return}r.addColumnBefore(s),Hs(e,r,i,s,"start");break}}function Ca(e){return e.contentWillChange({inputType:"insertText"})?(uo(e,"after row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function ro(e){return e.contentWillChange({inputType:"insertText"})?(uo(e,"before row"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Ba(e){return e.contentWillChange({inputType:"insertText"})?(uo(e,"after column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function yl(e){return e.contentWillChange({inputType:"insertText"})?(uo(e,"before column"),e.contentDidChange({inputType:"insertText"}),!0):!1}function Ds(e,t){if(!e.contentWillChange({}))return!1;e.mathfield.snapshot();let r=".",i=".";switch(t){case"pmatrix":case"pmatrix*":r="(",i=")";break;case"bmatrix":case"bmatrix*":r="[",i="]";break;case"Bmatrix":case"Bmatrix*":r="\\lbrace",i="\\rbrace";break;case"vmatrix":case"vmatrix*":r="\\vert",i="\\vert";break;case"Vmatrix":case"Vmatrix*":r="\\Vert",i="\\Vert";break;case"matrix":case"matrix*":r=".",i=".";break;case"cases":case"dcases":r="\\lbrace";break;case"rcases":i="\\rbrace";break}const s=e.at(e.position),c=s.type==="array"?s:e.parentEnvironment;return c.environmentName=t,c.leftDelim=r,c.rightDelim=i,e.contentDidChange({}),!0}function ma(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 u=i.getCell(Math.max(0,s[0]-1),s[1]);c=e.offsetOf(u[u.length-1])}break;case"column":if(i.colCount>i.minColumns){i.removeColumn(s[1]);const u=i.getCell(s[0],Math.max(0,s[1]-1));c=e.offsetOf(u[u.length-1])}break}c&&e.setPositionHandlingPlaceholder(c)}}function wo(e){return e.contentWillChange({inputType:"deleteContent"})?(ma(e,"row"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}function fl(e){return e.contentWillChange({inputType:"deleteContent"})?(ma(e,"column"),e.contentDidChange({inputType:"deleteContent"}),!0):!1}o({addRowAfter:Ca,addColumnAfter:Ba,addRowBefore:ro,addColumnBefore:yl,removeRow:wo,removeColumn:fl,setEnvironment:Ds},{target:"model",canUndo:!0,changeContent:!0,changeSelection:!0});function La(){return[new Tu]}var is=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}};is.maximumDepth=1e3;var xo=is;function ql(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,u;do u=e.at(c).mode==="text"&&f.test(e.at(c).value),c+=i;while(e.at(c)&&u);s=e.at(c)?c-2*i:c-i}else if(/\s/.test(e.at(t).value)){let c=t;for(;e.at(c)&&e.at(c).mode==="text"&&/\s/.test(e.at(c).value);)c+=i;if(!e.at(c))s=c-i;else{let u=!0;do u=e.at(c).mode==="text"&&!/\s/.test(e.at(c).value),c+=i;while(e.at(c)&&u);s=e.at(c)?c-2*i:c-i}}else{let c=t;for(;e.at(c)&&e.at(c).mode==="text"&&!/\s/.test(e.at(c).value);)c+=i;s=e.at(c)?c:c-i;let u=!0;for(;e.at(c)&&u;)u=e.at(c).mode==="text"&&/\s/.test(e.at(c).value),u&&(s=c),c+=i;s=e.at(c)?c-2*i:c-i}return s-(i>0?0:1)}function Ol(e,t,r){var i,s,c,u,L,z,X;const ce=e.position;(i=r==null?void 0:r.extend)!=null&&i||e.collapseSelection(t);let Te=e.at(e.position);if(t==="forward"&&(Te.type==="subsup"?(Te=Te.rightSibling,Te||(Te=e.at(e.position+1))):Te=e.at(e.position+1)),!Te)return e.announce("plonk"),!1;let nt=e.offsetOf(Te);if(Te instanceof Rd)nt=ql(e,nt,t);else if(Te instanceof Nl)if(Te.isSuggestion)for(console.assert(t==="forward");Te&&Te instanceof Nl;)Te.isSuggestion=!1,nt=e.offsetOf(Te),Te=Te.rightSibling;else if(t==="forward"){if(Te=Te.rightSibling,!Te||!(Te instanceof Nl))return e.announce("plonk"),!1;for(;Te&&Te instanceof Nl&&/[a-zA-Z\*]/.test(Te.value);)nt=e.offsetOf(Te),Te=Te.rightSibling}else{if(Te=Te.leftSibling,!Te||!(Te instanceof Nl))return e.announce("plonk"),!1;for(;Te&&Te instanceof Nl&&/[a-zA-Z\*]/.test(Te.value);)nt=e.offsetOf(Te),Te=Te.leftSibling}else if(t==="forward"&&Te.type==="mopen"){let vt=0;do Te.type==="mopen"?vt+=1:Te.type==="mclose"&&(vt-=1),Te=Te.rightSibling;while(!Te.isLastSibling&&vt!==0);nt=e.offsetOf(Te.leftSibling)}else if(t==="backward"&&Te.type==="mclose"){let vt=0;do Te.type==="mopen"?vt+=1:Te.type==="mclose"&&(vt-=1),Te=Te.leftSibling;while(!Te.isFirstSibling&&vt!==0);nt=e.offsetOf(Te)}else if(t==="backward")if(Te.type==="first")for(;nt>0&&Te.type==="first";)nt-=1,Te=e.at(nt);else{const vt=Te.type;Te.type==="subsup"&&(nt=e.offsetOf(e.at(nt).leftSibling)),nt-=1;let St=(s=e.at(nt))==null?void 0:s.type;for(;nt>=0&&St===vt;)((c=e.at(nt))==null?void 0:c.type)==="subsup"?nt=e.offsetOf(e.at(nt).leftSibling):nt-=1,St=e.at(nt).type}else{const{type:vt}=Te;let St=(u=e.at(nt))==null?void 0:u.type;const{lastOffset:xr}=e;for(;nt<=xr&&(St===vt||St==="subsup");){for(;((L=e.at(nt).rightSibling)==null?void 0:L.type)==="subsup";)nt=e.offsetOf(e.at(nt).rightSibling);nt+=1,St=(z=e.at(nt))==null?void 0:z.type}nt-=1}if((X=r==null?void 0:r.extend)!=null&&X){if(!e.setSelection(e.anchor,nt))return e.announce("plonk"),!1}else{if(nt===e.position)return e.announce("plonk"),!1;e.position=nt}return e.announce("move",ce),e.mathfield.stopCoalescingUndo(),!0}function as(e,t,r){var i,s;if(r=r!=null?r:{extend:!1},e.mathfield.adoptStyle=t==="backward"?"right":"left",t!=="forward"){const[L,z]=$m(e);L!==void 0&&z!==void 0&&e.deleteAtoms([L,z])}if(t==="upward")return _f(e,r);if(t==="downward")return Wd(e,r);if(r.extend){let L=Ya(e,e.position,t);L<0&&(L=0),L>e.lastOffset&&(L=e.lastOffset);const z=e.setSelection(e.anchor,L);return e.mathfield.stopCoalescingUndo(),z}if(e.selectionIsPlaceholder){e.collapseSelection(t);const L=as(e,t);return e.mathfield.stopCoalescingUndo(),L}let c=e.position;const u=c;if(e.collapseSelection(t)?(c=e.position,js(e,c)||(c=Ya(e,c,t))):c=Ya(e,c,t),c<0||c>e.lastOffset){let L=!0;return e.silenceNotifications||(L=(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),L&&e.announce("plonk"),L}return e.setPositionHandlingPlaceholder(c),e.mathfield.stopCoalescingUndo(),e.announce("move",u),!0}function Ya(e,t,r){return t=t+(r==="forward"?1:-1),t<0||t>e.lastOffset||js(e,t)?t:Ya(e,t,r)}function js(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 Hh(e,t,r){let i=1/0,s=0;for(;s<t.length;s++){const c=I0(e.getHTMLElement(t[s])).right,u=Math.abs(r-c);if(u<=i)i=u;else break}return t[s-1]}function jc(e,t,r,i,s){const c=e.mathfield.hasEditablePrompts,u=c?r.filter(X=>X.type==="prompt"&&!X.captureSelection):r,L=I0(e.mathfield.getHTMLElement(t)).right,z=e.offsetOf(Hh(e.mathfield,u,L))-(c?1:0);if(i){const[X,ce]=e.selection.ranges[0];let Te;z<(s==="up"?X:ce)?Te={ranges:[[z,ce]],direction:"backward"}:Te={ranges:[[X,z]],direction:"forward"},e.setSelection(Te)}else e.setPositionHandlingPlaceholder(z);e.announce(`move ${s}`)}function _f(e,t){var r,i;const s=(r=t==null?void 0:t.extend)!=null?r:!1;s||e.collapseSelection("backward");const c=()=>{var z,X;let ce=!0;return e.silenceNotifications||(ce=(X=(z=e.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"upward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?X:!0),e.announce(ce?"plonk":"line"),ce},u=e.at(e.position);let L=u;for(;L&&L.parentBranch!=="below"&&!(Array.isArray(L.parentBranch)&&L.parent instanceof hs);)L=L.parent;if(Array.isArray(L==null?void 0:L.parentBranch)&&L.parent instanceof hs){const z=L.parent;if(L.parentBranch[0]<1)return c();const X=L.parentBranch[0]-1,ce=z.array[X][L.parentBranch[1]];if(!ce.some(nt=>nt.type==="prompt"&&!nt.captureSelection)&&e.mathfield.hasEditablePrompts)return c();jc(e,u,ce,s,"up")}else if(L){const z=(i=L.parent.branch("above"))!=null?i:L.parent.createBranch("above");if(!z.some(ce=>ce.type==="prompt"&&ce.placeholderId)&&e.mathfield.hasEditablePrompts)return c();jc(e,u,z,s,"up")}else return c();return e.mathfield.stopCoalescingUndo(),!0}function Wd(e,t){var r,i;const s=(r=t==null?void 0:t.extend)!=null?r:!1;s||e.collapseSelection("forward");const c=()=>{var z,X;let ce=!0;return e.silenceNotifications||(ce=(X=(z=e.mathfield.host)==null?void 0:z.dispatchEvent(new CustomEvent("move-out",{detail:{direction:"downward"},cancelable:!0,bubbles:!0,composed:!0})))!=null?X:!0),e.announce(ce?"plonk":"line"),ce},u=e.at(e.position);let L=u;for(;L&&L.parentBranch!=="above"&&!(Array.isArray(L.parentBranch)&&L.parent instanceof hs);)L=L.parent;if(Array.isArray(L==null?void 0:L.parentBranch)&&L.parent instanceof hs){const z=L.parent;if(L.parentBranch[0]+1>z.array.length-1)return c();const X=L.parentBranch[0]+1,ce=z.array[X][L.parentBranch[1]];if(!ce.some(nt=>nt.type==="prompt"&&!nt.captureSelection)&&e.mathfield.hasEditablePrompts)return c();jc(e,u,ce,s,"down")}else if(L){const z=(i=L.parent.branch("below"))!=null?i:L.parent.createBranch("below");if(!z.some(ce=>ce.type==="prompt")&&e.mathfield.hasEditablePrompts)return c();jc(e,u,z,s,"down")}else return c();return!0}function Ka(e){const t=e.position,r=e.at(t).parent;return r!=null&&r.parent?(e.position=e.offsetOf(r),e.mathfield.stopCoalescingUndo(),e.announce("move",t),!0):(e.announce("plonk"),!1)}function If(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 Ff(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 bu(e){var t;if(e.collapseSelection(),If(e)>=e.mathfield.options.scriptDepth[1])return e.announce("plonk"),!1;let r=e.at(e.position);return r.subsupPlacement===void 0&&(((t=r.rightSibling)==null?void 0:t.type)!=="subsup"&&r.parent.addChildAfter(new ks({style:r.computedStyle}),r),r=r.rightSibling),r.createBranch("superscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.superscript[0]))),!0}function yu(e){var t;if(e.collapseSelection(),Ff(e)>=e.mathfield.options.scriptDepth[0])return e.announce("plonk"),!1;let r=e.at(e.position);return r.subsupPlacement===void 0&&(((t=e.at(e.position+1))==null?void 0:t.type)!=="subsup"&&r.parent.addChildAfter(new ks({style:e.at(e.position).computedStyle}),r),r=e.at(e.position+1)),r.createBranch("subscript"),e.setSelection(e.getSiblingsRange(e.offsetOf(r.subscript[0]))),!0}function sc(){function e(z){const X=[],ce=[];return[...z.querySelectorAll(`input, select, textarea, a[href], button,
|
|
|
[tabindex], audio[controls], video[controls],
|
|
|
[contenteditable]:not([contenteditable="false"]), details>summary`)].filter(t).forEach((nt,vt)=>{const St=i(nt);St===0?X.push(nt):ce.push({documentOrder:vt,tabIndex:St,node:nt})}),ce.sort((nt,vt)=>nt.tabIndex===vt.tabIndex?nt.documentOrder-vt.documentOrder:nt.tabIndex-vt.tabIndex).map(nt=>nt.node).concat(X)}function t(z){return!(!r(z)||s(z)||i(z)<0)}function r(z){return!(z.disabled||z.type==="hidden"&&z.tagName.toUpperCase()==="INPUT"||L(z))}function i(z){var X;const ce=Number.parseInt((X=z.getAttribute("tabindex"))!=null?X:"NaN",10);return Number.isNaN(ce)?z.contentEditable==="true"||(z.nodeName==="AUDIO"||z.nodeName==="VIDEO")&&z.getAttribute("tabindex")===null?0:z.tabIndex:ce}function s(z){return z.tagName.toUpperCase()==="INPUT"&&z.type==="radio"&&!u(z)}function c(z,X){for(const ce of z)if(ce.checked&&ce.form===X)return ce;return null}function u(z){var X;if(!z.name)return!0;const Te=((X=z.form)!=null?X:z.ownerDocument).querySelectorAll('input[type="radio"][name="'+z.name+'"]'),nt=c(Te,z.form);return!nt||nt===z}function L(z){if(!P()||z===document.activeElement||z.contains(document.activeElement))return!1;if(getComputedStyle(z).visibility==="hidden")return!0;const X=z.getBoundingClientRect();if(X.width===0||X.height===0)return!0;for(;z;){if(getComputedStyle(z).display==="none")return!0;z=z.parentElement}return!1}return P()?e(document.body):[]}function Bs(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"?Bs(e,[t.leftSibling,t]):Bs(e,[t,t.leftSibling])}function hl(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 Gd(e,t,r=!0){var i,s;const c=t==="forward"?1:-1;e.at(e.anchor).type==="placeholder"&&as(e,t);let u;const L=e.at(e.anchor).parentPrompt;L?t==="forward"?u=e.offsetOf(L)+1:u=e.offsetOf(L.leftSibling):u=Math.max(e.position+c,0);const z=Xd(e,u,t);if(!z||t==="forward"&&e.offsetOf(z)<u||t==="backward"&&e.offsetOf(z)>u){if(!r||!((s=(i=e.mathfield.host)==null?void 0:i.dispatchEvent(new CustomEvent("move-out",{detail:{direction:t},cancelable:!0,bubbles:!0,composed:!0})))==null||s))return e.announce("plonk"),!1;const ce=sc();if(!document.activeElement||ce.length<=1)return e.announce("plonk"),!1;let Te=ce.indexOf(document.activeElement)+c;return Te<0&&(Te=ce.length-1),Te>=ce.length&&(Te=0),ce[Te].focus(),e.mathfield.stopCoalescingUndo(),!0}return hl(e,z),!0}function Xd(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 L=r.subsupPlacement?yu(e):bu(e);return e.mathfield.stopCoalescingUndo(),L}i.branch(c)||i.createBranch(c);const u=e.setSelection(e.getBranchRange(e.offsetOf(i),c));return e.mathfield.stopCoalescingUndo(),u},moveBeforeParent:e=>{const{parent:t}=e.at(e.position);return t?(e.position=e.offsetOf(t),e.mathfield.stopCoalescingUndo(),!0):(e.announce("plonk"),!1)},moveAfterParent:e=>Ka(e),moveToNextChar:e=>as(e,"forward"),moveToPreviousChar:e=>as(e,"backward"),moveUp:e=>as(e,"upward"),moveDown:e=>as(e,"downward"),moveToNextWord:e=>Ol(e,"forward"),moveToPreviousWord:e=>Ol(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 Gd(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 vt=c;for(;((t=vt.rightSibling)==null?void 0:t.mode)==="text";)vt=vt.rightSibling;if(nt&&vt)return Bs(e,[nt,vt])}if(c.rightSibling.mode==="text"){let nt=c;for(;nt&&nt.mode==="text";)nt=nt.rightSibling;return nt?(hl(e,(r=nt.leftSibling)!=null?r:nt),e.mathfield.switchMode("math"),!0):hl(e,e.lastOffset)}}const L=e.at(e.anchor).parentPrompt,z=L?e.offsetOf(L)+1:Math.max(e.position+1,0),X=Xd(e,z,"forward");if(X)return hl(e,X);const ce=Hu(e,c,nt=>nt.type==="leftright"||nt.type==="text","forward");if(ce){if(ce.mode==="text"){let nt=ce;for(;nt&&nt.mode==="text";)nt=nt.rightSibling;return Bs(e,[(i=ce.leftSibling)!=null?i:ce,(s=nt.leftSibling)!=null?s:nt])}return Bs(e,ce)}const Te=c.parent;if(Te){if(Te.type==="leftright"||Te.type==="surd")return Bs(e,Te);if(c.parentBranch==="superscript"&&Te.subscript)return Bs(e,Te.subscript);if(c.parentBranch==="above"&&Te.below)return Bs(e,Te.below);if(c.parentBranch==="superscript"||c.parentBranch==="subscript")return hl(e,Te);if(c.parentBranch==="above"||c.parentBranch==="below")return Bs(e,Te)}return hl(e,e.lastOffset)},moveToPreviousGroup:e=>{var t;if(e.position===0&&e.anchor===0)return Gd(e,"backward");let r=e.at(e.position);const i=r.mode;if(i==="text"){if(e.selectionIsCollapsed){let L=r;for(;L&&L.mode==="text";)L=L.leftSibling;let z=r;for(;((t=z.rightSibling)==null?void 0:t.mode)==="text";)z=z.rightSibling;if(L&&z)return Bs(e,[L,z])}for(;r&&r.mode==="text";)r=r.leftSibling;return r?hl(e,r):hl(e,0)}const s=e.at(e.anchor).parentPrompt,c=s?e.offsetOf(s.leftSibling):Math.max(e.position-1,0),u=Xd(e,c,"backward");if(u)return hl(e,u);if(i==="math"){const L=Hu(e,r,X=>X.type==="leftright"||X.type==="text","backward");if(L){if(L.mode==="text"){let X=L;for(;X&&X.mode==="text";)X=X.leftSibling;return Bs(e,[L,X])}return Bs(e,L)}const z=r.parent;if(z){if(z.type==="leftright"||z.type==="surd")return Bs(e,z);if(r.parentBranch==="subscript"&&z.superscript)return Bs(e,z.superscript);if(r.parentBranch==="below"&&z.above)return Bs(e,z.above);if(r.parentBranch==="superscript"||r.parentBranch==="subscript")return hl(e,z);if(r.parentBranch==="above"||r.parentBranch==="below")return Bs(e,z)}return hl(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:bu,moveToSubscript:yu},{target:"model",changeSelection:!0}),o({moveToNextPlaceholder:e=>Gd(e,"forward"),moveToPreviousPlaceholder:e=>Gd(e,"backward")},{target:"model",changeSelection:!0,audioFeedback:"return"});function Hu(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 wu(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let i=e.position,s=!1,c="";for(;!s;){const u=e.at(i);s=t===0||u===void 0||u.type==="first"||u.mode!=="math"||!(u.type&&/mord|mpunct|operator/.test(u.type)||u.type==="mop"&&/[a-zA-Z ]+/.test(u.value))||!u.hasEmptyBranch("superscript")||!u.hasEmptyBranch("subscript")||typeof r=="function"&&!r(u),s||(u.mode="text",u.command=u.value,u.verbatimLatex=void 0,c+=u.value),i-=1,t-=1}e.contentDidChange({data:c,inputType:"insertText"})}function sA(e,t,r){typeof t=="function"&&(r=t,t=1/0),t===void 0&&(t=1/0);let i=e.position,s=!1;const c=[];for(;!s;){const u=e.at(i);s=t===0||!u||u.type==="first"||u.isFirstSibling||u.mode!=="text"||u.value===" "||typeof r=="function"&&!r(u),s||(c.push(Tr.serialize([u],{defaultMode:"math"})),u.mode="math"),i-=1,t-=1}xu(e),e.contentDidChange({data:co(c),inputType:"insertText"})}function xu(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 ju(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 jh(e,t,r){const{model:i}=e;if(i.mode==="latex"||!i.at(i.position).isLastSibling||!r||!qA(r))return!1;const s=Uh(r);if(!i.selectionIsCollapsed)return!!(e.model.mode==="text"&&/[/_^]/.test(s));const c=ju(i)+s;if(e.model.mode==="text"){if(t==="Esc"||/[/\\]/.test(s))return!0;if(/[\^_]/.test(s))return/(^|\s)[a-zA-Z][^_]$/.test(c)&&sA(i,1),!0;const u={")":"(","}":"{","]":"["}[s],{parent:L}=i.at(i.position);if(u&&L instanceof tl&&L.leftDelim===u)return!0;if(/(^|[^a-zA-Z])(a|I) $/.test(c))return!1;if(/[$€£₤₺¥¤฿¢₡₧₨₹₩₱]/u.test(s))return!0;if(/(^|[^a-zA-Z'’])[a-zA-Z] $/.test(c))return sA(i,1),!1;if(/\D\.[^\d\s]$/.test(c)){sA(i,1);const z=i.at(i.position);return z.value="\u22C5",z.style.variant="normal",z.command="\\cdot",z.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 sA(i,1),!0;if(/\([a-z][,;]$/.test(c))return sA(i,2),!0;if(/[\d+\-=><*|]$/.test(s))return xu(i),!0}else{if(t==="[Space]")return wu(i,void 0,u=>/[a-z][:,;.]$/.test(u.value)),!0;if(/[a-zA-Z]{3,}$/.test(c)&&!/(dxd|abc|xyz|uvw)$/.test(c))return wu(i,void 0,u=>/[a-zA-Z]/.test(u.value)),!0;if(/(^|\W)(if)$/i.test(c))return wu(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 wu(i,void 0,u=>/(:|,|;|.|\u0393|\u0394|\u0398|\u039B|\u039E|\u03A0|\u03A3|\u03A5|\u03A6|\u03A8|\u03A9|[\u03B1-\u03C9]|\u03D1|\u03D5|\u03D6|\u03F1|\u03F5)/u.test(u.value)),!0;if(s==="?"||s==="."&&!/[\d-+]\.$/.test(c))return!0}return!1}function Jd(e,t){if(!e.isSelectionEditable||!e.keystrokeCaptionVisible)return;const r=$h(),i=e.element.getBoundingClientRect();r.style.left=`${i.left}px`,r.style.top=`${i.top-64}px`,r.innerHTML=window.MathfieldElement.createHTML("<span>"+(pu(t)||t)+"</span>"+r.innerHTML),r.style.visibility="visible",setTimeout(()=>{r.childNodes.length>0&&r.childNodes[r.childNodes.length-1].remove(),r.childNodes.length===0&&(r.style.visibility="hidden")},3e3)}function zh(e){if(e.keystrokeCaptionVisible=!e.keystrokeCaptionVisible,e.keystrokeCaptionVisible){const t=$h();t.innerHTML=""}else{const t=Bp("mathlive-keystroke-caption-panel");t.style.visibility="hidden"}return!1}function $h(){const e=document.getElementById("mathlive-keystroke-caption-panel");return e||(ld("keystroke-caption"),ld("core"),Bp("mathlive-keystroke-caption-panel"))}function Q0(){document.getElementById("mathlive-keystroke-caption-panel")&&(Zm("mathlive-keystroke-caption-panel"),cd("core"),cd("keystroke-caption"))}function Zh(e,t){var r,i,s;const{model:c}=e,u=Rh(t);if(t.isTrusted){Jc(t);const vt=hu();e.keyboardLayout!==vt.id&&(e.keyboardLayout=vt.id,e._keybindings=void 0)}if(clearTimeout(e.inlineShortcutBufferFlushTimer),e.inlineShortcutBufferFlushTimer=0,Jd(e,u),t.isTrusted&&t.defaultPrevented)return e.flushInlineShortcutBuffer(),!1;let L,z="",X;const ce=e.inlineShortcutBuffer;if(e.isSelectionEditable){if(c.mode==="math")if(u==="[Backspace]")ce.pop();else if(!qA(t))e.flushInlineShortcutBuffer();else{const vt=Uh(t),St=[...(i=(r=ce[ce.length-1])==null?void 0:r.keystrokes)!=null?i:[],vt];ce.push({state:c.getState(),keystrokes:St,leftSiblings:_p(e)});let xr=0,Sn="";for(;!L&&xr<St.length;)X=ce.length-(St.length-xr),Sn=St.slice(xr).join(""),L=S0(ce[X].leftSiblings,Sn,e.options.inlineShortcuts),!L&&/^[a-zA-Z][a-zA-Z0-9]+?([_\^][a-zA-Z0-9\*\+\-]+?)?$/.test(Sn)&&(L=e.options.onInlineShortcut(e,Sn)),xr+=1;e.flushInlineShortcutBuffer({defer:!0})}e.options.smartMode&&(L?e.switchMode("math"):jh(e,u,t)&&(e.switchMode({math:"text",text:"math"}[c.mode]),z=""))}if(!L){if(z||(z=hg(e.keybindings,c.mode,t)),!z&&(u==="[Enter]"||u==="[Return]")){let vt=!1;return c.contentWillChange({inputType:"insertLineBreak"})&&(e.host&&(vt=!e.host.dispatchEvent(new Event("change",{bubbles:!0,composed:!0}))),vt||t.preventDefault&&(t.preventDefault(),t.stopPropagation()),c.contentDidChange({inputType:"insertLineBreak"})),vt}if((!z||u==="[Space]")&&c.mode==="math"){if(u==="[Space]"){if(e.adoptStyle="none",e.flushInlineShortcutBuffer(),e.options.mathModeSpace)return Ls.insert(c,e.options.mathModeSpace,{format:"latex",mode:"math"}),e.snapshot("insert-space"),z="",e.dirty=!0,e.scrollIntoView(),t.preventDefault&&(t.preventDefault(),t.stopPropagation()),!1;const vt=c.at(c.position+1),St=c.at(c.position-1);if((vt==null?void 0:vt.mode)==="text"||(St==null?void 0:St.mode)==="text")return Ls.insert(c," ",{mode:"text"}),e.snapshot("insert-space"),e.dirty=!0,e.scrollIntoView(),!1}(s=c.at(c.position))!=null&&s.isDigit()&&window.MathfieldElement.decimalSeparator===","&&Uh(t)===","&&(z="insertDecimalSeparator")}}if(!L&&!z){if(c.mathfield.smartFence){if(eu(c,Uh(t),e.effectiveStyle))return e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}else{const{parent:vt}=c.at(c.position);if(vt instanceof tl&&vt.rightDelim==="?"&&c.at(c.position).isLastSibling&&/^[)}\]|]$/.test(u))return e.snapshot(),vt.isDirty=!0,vt.rightDelim=u,c.position+=1,c.selectionDidChange(),c.contentDidChange({data:Uh(t),inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1;if(!c.selectionIsCollapsed){const St=Uh(t);if(St==="("||St==="{"||St==="["){const xr={"(":"(","{":"\\lbrace","[":"\\lbrack"}[St],Sn={"(":")","{":"\\rbrace","[":"\\rbrack"}[St],[vr,nn]=Jl(c.selection);return e.snapshot(),c.position=nn,Ls.insert(c,Sn,{format:"latex"}),c.position=vr,Ls.insert(c,xr,{format:"latex"}),c.setSelection(vr+1,nn+1),c.contentDidChange({data:St,inputType:"insertText"}),e.snapshot("insert-fence"),e.dirty=!0,e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}}}return!0}const Te=c.at(Math.max(c.position,c.anchor)),{parent:nt}=Te;if(z==="moveAfterParent"&&(nt==null?void 0:nt.type)==="leftright"&&Te.isLastSibling&&e.options.smartFence&&eu(c,".",e.defaultStyle)&&(z="",_l(e)),e.keyboardDelegate.cancelComposition(),z)e.executeCommand(z);else if(L){const vt=e.effectiveStyle;c.setState(ce[X].state);const St=ce[ce.length-1].keystrokes;for(const xr of St)Ls.insert(c,xr,{silenceNotifications:!0,style:vt});e.snapshot("insert-shortcut"),c.setState(ce[X].state),c.deferNotifications({content:!0,selection:!0,data:L,type:"insertText"},()=>(Ls.insert(c,L,{format:"latex",style:vt}),xu(e.model),L.endsWith(" ")&&(e.switchMode("text"),Ls.insert(c," ",{style:vt,mode:"text"})),e.snapshot(),c.selectionIsCollapsed||e.flushInlineShortcutBuffer(),!0)),e.dirty=!0,c.announce("replacement")}return e.scrollIntoView(),t.preventDefault&&t.preventDefault(),!1}function Ep(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=CA(t);const c=window.mathVirtualKeyboard;if(c!=null&&c.isShifted&&(s=typeof s=="string"?s.toUpperCase():s.map(z=>z.toUpperCase())),r.simulateKeystroke){let z=!0;for(const X of s)Zh(e,new KeyboardEvent("keypress",{key:X}))&&(z=!1);if(z)return}const u=i.at(i.position),L=m(m({},u.computedStyle),e.defaultStyle);if(i.selectionIsCollapsed||(i.deleteAtoms(Jl(i.selection)),e.snapshot("delete")),i.mode==="latex")i.deferNotifications({content:!0,selection:!0,data:t,type:"insertText"},()=>{lm(e);for(const z of s)Ls.insert(i,z);e.snapshot("insert-latex"),Cp(e)});else if(i.mode==="text"){for(const z of s)Ls.insert(i,z,{style:L});e.snapshot("insert-text")}else if(i.mode==="math")for(const z of s)fm(e,z,L,u);e.dirty=!0,e.scrollIntoView()}function _p(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),Ls.insert(s,t,{style:r}),e.snapshot(),Ka(s),e.snapshot();return}if(/[a-zA-Z0-9]/.test(t)&&e.adoptStyle!=="none"){const u=e.adoptStyle==="left"?i:i.parent?i.rightSibling:null;(u==null?void 0:u.type)==="mord"&&/[a-zA-Z0-9]/.test(u.value)&&(r=m({},r),u.style.variant&&(r.variant=u.style.variant),u.style.variantStyle&&(r.variantStyle=u.style.variantStyle))}Ls.insert(s,t,{style:r}),e.snapshot(`insert-${s.at(s.position).type}`)}function hm(e){e.selectionIsCollapsed||(e.deleteAtoms(Jl(e.selection)),e.mathfield.snapshot("delete"))}function eu(e,t,r){if(!t||e.mode!=="math")return!1;const i=e.at(e.position),{parent:s}=i,c={"(":"(",")":")","{":"\\lbrace","}":"\\rbrace","[":"\\lbrack","]":"\\rbrack","|":"|"}[t];if(!c)return!1;const u=Lh[c],L=Hd[c];if(!e.selectionIsCollapsed){e.mathfield.snapshot();const[z,X]=Jl(e.selection),ce=e.extractAtoms([z,X]),Te=s.addChildrenAfter([new tl("left...right",ce,{leftDelim:c,rightDelim:L})],e.at(z));return e.setSelection(e.offsetOf(Te.firstChild),e.offsetOf(Te.lastChild)),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:c,inputType:"insertText"}),!0}if(c==="|"){const z=s instanceof tl?s.leftDelim+s.rightDelim:"";if(z==="\\lbrace\\rbrace"||z==="\\{\\}"||z==="\\lbrace?")return e.mathfield.snapshot(),Ls.insert(e,"\\,\\middle\\vert\\,",{format:"latex",style:r}),e.mathfield.snapshot("insert-fence"),e.contentDidChange({data:c,inputType:"insertText"}),!0}if(L){if(s instanceof tl&&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 tl)){let Te=i;for(;Te&&!(Te.type==="mclose"&&Te.value===L);)Te=Te.rightSibling;if(Te){e.mathfield.snapshot();const nt=e.extractAtoms([e.offsetOf(i),e.offsetOf(Te)]);return nt.pop(),s.addChildrenAfter([new tl("left...right",nt,{leftDelim:c,rightDelim:L})],i),e.position=e.offsetOf(s.firstChild)+1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}}const z=e.offsetOf(i.lastSibling);let X;for(X=e.position;X<=z;X++){const Te=e.at(X);if(Te instanceof tl&&(Te.leftDelim==="?"||Te.leftDelim===".")&&Ip(c,Te.rightDelim))break}const ce=e.at(X);if(X<=z&&ce instanceof tl){ce.leftDelim=c,e.mathfield.snapshot();let Te=e.extractAtoms([e.position,X-1]);return Te=Te.filter(nt=>nt.type!=="first"),ce.addChildren(Te,ce.parentBranch),e.position+=1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(s instanceof tl&&(s.leftDelim==="?"||s.leftDelim===".")&&Ip(c,s.rightDelim)){s.isDirty=!0,s.leftDelim=c,e.mathfield.snapshot();const Te=e.extractAtoms([e.offsetOf(i.firstSibling),e.position]);for(const nt of Te)s.parent.addChildBefore(nt,s);return e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}if(!(s instanceof tl&&s.leftDelim==="|")){if(e.mathfield.snapshot(),Ls.insert(e,`\\left${c}\\right?`,{format:"latex",style:r}),i.lastSibling.type!=="first"){const Te=e.offsetOf(i.lastSibling),nt=e.extractAtoms([e.position,Te]);e.at(e.position).body=nt,e.position-=1}return e.mathfield.snapshot("insert-fence"),!0}}if(u){let z=i;for(;z;){if(z.type==="mopen"&&z.value===u){e.mathfield.snapshot();const vt=z.leftSibling,St=e.extractAtoms([e.offsetOf(z.leftSibling),e.offsetOf(i)]);St.shift();const xr=new tl("left...right",St,{leftDelim:u,rightDelim:c});return s.addChildrenAfter([xr],vt),e.position=e.offsetOf(xr),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0}z=z.leftSibling}if(s instanceof tl&&i.isLastSibling&&Vh(s.leftDelim,c))return e.mathfield.snapshot(),s.isDirty=!0,s.rightDelim=c,e.position+=1,e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;const X=e.offsetOf(i.firstSibling);let ce;for(ce=e.position;ce>=X;ce--){const vt=e.at(ce);if(vt instanceof tl&&(vt.rightDelim==="?"||vt.rightDelim===".")&&Vh(vt.leftDelim,c))break}const Te=e.at(ce);if(ce>=X&&Te instanceof tl)return e.mathfield.snapshot(),Te.rightDelim=c,Te.addChildren(e.extractAtoms([ce,e.position]),Te.parentBranch),e.contentDidChange({data:c,inputType:"insertText"}),e.mathfield.snapshot("insert-fence"),!0;if(s instanceof tl&&(s.rightDelim==="?"||s.rightDelim===".")&&Vh(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 tl&&(nt.rightDelim==="?"||nt.rightDelim===".")&&e.at(e.position).isLastSibling?(e.position=e.offsetOf(nt),eu(e,c,r)):!1}return!1}function Vh(e,t){return e?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e)?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t):Hd[e]===t:!0}function Ip(e,t){return t?[")","\\rparen","}","\\}","\\rbrace","]","\\rbrack"].includes(t)?["(","\\lparen","{","\\{","\\lbrace","[","\\lbrack"].includes(e):Lh[t]===e:!0}o({undo:e=>(e.undo(),!0),redo:e=>(e.redo(),!0),scrollIntoView:e=>(e.scrollIntoView(),!0),scrollToStart:e=>(e.field.scroll(0,0),!0),scrollToEnd:e=>{const t=e.field.getBoundingClientRect();return e.field.scroll(t.left-window.scrollX,0),!0},toggleKeystrokeCaption:zh,toggleContextMenu:e=>{const t=e.toggleContextMenu();return t||e.model.announce("plonk"),t},plonk:e=>(e.model.announce("plonk"),!0),switchMode:(e,t,r,i)=>(e.switchMode(t,r,i),!0),insert:(e,t,r)=>e.insert(t,r),typedText:(e,t,r)=>(Ep(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})&&(Cp(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 Fp(e,t){e.flushInlineShortcutBuffer(),e.stopCoalescingUndo();const r=K0(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=m(m({},e.defaultStyle),r)):e.model.deferNotifications({content:!0,type:"insertText"},()=>{i.selection.ranges.forEach(s=>Go(i,s,r,{operation:"toggle"})),e.snapshot("style-change")}),!0}o({applyStyle:Fp},{target:"mathfield",canUndo:!0,changeContent:!0});function K0(e,t){var r,i,s,c,u,L,z,X,ce,Te;const nt={};if(typeof t.color=="string"){const St=(i=e.colorMap((r=t.color)!=null?r:t.verbatimColor))!=null?i:"none";St!==t.color&&(nt.verbatimColor=(s=t.verbatimColor)!=null?s:t.color),nt.color=St}if(typeof t.backgroundColor=="string"){const St=(u=e.backgroundColorMap((c=t.backgroundColor)!=null?c:t.verbatimBackgroundColor))!=null?u:"none";St!==t.backgroundColor&&(nt.verbatimBackgroundColor=(L=t.verbatimBackgroundColor)!=null?L:t.backgroundColor),nt.backgroundColor=St}typeof t.fontFamily=="string"&&(nt.fontFamily=t.fontFamily),typeof t.series=="string"&&(nt.fontSeries=t.series),typeof t.fontSeries=="string"&&(nt.fontSeries=t.fontSeries.toLowerCase()),nt.fontSeries&&(nt.fontSeries=(z={bold:"b",medium:"m",normal:"m"}[nt.fontSeries])!=null?z:nt.fontSeries),typeof t.shape=="string"&&(nt.fontShape=t.shape),typeof t.fontShape=="string"&&(nt.fontShape=t.fontShape.toLowerCase()),nt.fontShape&&(nt.fontShape=(X={italic:"it",up:"n",upright:"n",normal:"n"}[nt.fontShape])!=null?X:nt.fontShape),t.variant&&(nt.variant=t.variant.toLowerCase()),t.variantStyle&&(nt.variantStyle=t.variantStyle.toLowerCase());const vt=(ce=t.size)!=null?ce:t.fontSize;return typeof vt=="number"?nt.fontSize=Math.max(1,Math.min(10,vt)):typeof vt=="string"&&(nt.fontSize=(Te={size1:1,size2:2,size3:3,size4:4,size5:5,size6:6,size7:7,size8:8,size9:9,size10:10}[vt.toLowerCase()])!=null?Te:{tiny:1,scriptsize:2,footnotesize:3,small:4,normal:5,normalsize:5,large:6,Large:7,LARGE:8,huge:9,Huge:10}[vt]),nt}function H0(e){let[t,r]=Jl(e.selection);if(t=Mp(e,t,"backward"),r=Mp(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 Mp(e,t,r){var i,s,c;let u=e.at(t);if(!u)return t;const L=r==="forward"?1:-1;if(u.mode==="text"){for(;u&&!(u.mode!=="text"||!f.test(u.value));)t+=L,u=e.at(t);return r==="backward"?t-1:t}if(u.mode==="latex"){if(/[a-zA-Z\*]/.test(u.value))if(r==="backward")for(;u&&u.mode==="latex"&&u.value!=="\\"&&/[a-zA-Z]/.test(u.value);)t+=L,u=e.at(t);else for(;u&&u.mode==="latex"&&/[a-zA-Z\*]/.test(u.value);)t+=L,u=e.at(t);else if(u.value==="{"){if(r==="forward"){for(;u&&u.mode==="latex"&&u.value!=="}";)t+=L,u=e.at(t);return t}return t-1}else if(u.value==="}"){if(r==="backward"){for(;u&&u.mode==="latex"&&u.value!=="{";)t+=L,u=e.at(t);return t-1}return t}return t-1}if(u.mode==="math"){if(u.isDigit()){for(;(i=e.at(t+L))!=null&&i.isDigit();)t+=L;return r==="backward"?t-1:t}if(u.style.variant||u.style.variantStyle){let z=(s=e.at(t))==null?void 0:s.style;for(;z&&z.variant===u.style.variant&&z.variantStyle===u.style.variantStyle;)z=(c=e.at(t+L))==null?void 0:c.style,t+=L;return r==="backward"?t-1:t}return t}return t}o({selectGroup:e=>{const t=H0(e);return t||e.announce("plonk"),t},selectAll:e=>e.setSelection(0,e.lastOffset),extendSelectionForward:e=>as(e,"forward",{extend:!0}),extendSelectionBackward:e=>as(e,"backward",{extend:!0}),extendToNextWord:e=>Ol(e,"forward",{extend:!0}),extendToPreviousWord:e=>Ol(e,"backward",{extend:!0}),extendSelectionUpward:e=>as(e,"upward",{extend:!0}),extendSelectionDownward:e=>as(e,"downward",{extend:!0}),extendToNextBoundary:e=>Ol(e,"forward",{extend:!0}),extendToPreviousBoundary:e=>Ol(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 zu=null,Wh=0,ec=class of{static start(t,r,i,s){var c;of.element=t,(c=of.controller)==null||c.abort(),of.controller=new AbortController;const u={signal:of.controller.signal};"PointerEvent"in window?(t.addEventListener("pointermove",i,u),t.addEventListener("pointerup",s,u),t.addEventListener("pointercancel",s,u),j0(r)&&(of.pointerId=r.pointerId,t.setPointerCapture(r.pointerId))):(window.addEventListener("mousemove",i,u),window.addEventListener("blur",s,u),window.addEventListener("mouseup",s,u))}static stop(){var t;(t=of.controller)==null||t.abort(),of.controller=void 0,typeof of.pointerId=="number"&&(of.element.releasePointerCapture(of.pointerId),of.pointerId=void 0)}};function j0(e){return e!==null&&globalThis.PointerEvent!==void 0&&e instanceof PointerEvent}function Lp(e,t){var r;if(t.buttons>1)return;e.atomBoundsCache=new Map;const i=e;let s,c=!1,u=!1,L="none",z=!1,X=!1;const ce=t.clientX,Te=t.clientY,nt=Date.now(),vt=i.field,St=setInterval(()=>{z?vt.scroll({top:0,left:vt.scrollLeft-16}):X&&vt.scroll({top:0,left:vt.scrollLeft+16})},32);function xr(){ec.stop(),c=!1,clearInterval(St),e.element.classList.remove("tracking"),t&&t.preventDefault()}function Sn(nn){if(!i.hasFocus()){xr();return}const Ln=nn.clientX,un=nn.clientY,Ci=j0(nn)&&nn.pointerType==="touch"?20:5;if(Date.now()<nt+500&&Math.abs(ce-Ln)<Ci&&Math.abs(Te-un)<Ci){nn.preventDefault(),nn.stopPropagation();return}const Yi=vt.getBoundingClientRect();X=Ln>Yi.right,z=Ln<Yi.left;let Pi=s;j0(nn)&&(nn.isPrimary||(Pi=pd(i,nn.clientX,nn.clientY,{bias:0})));const h=pd(i,Ln,un,{bias:Ln<=ce?Ln===ce?0:-1:1});Pi>=0&&h>=0&&(i.model.extendSelectionTo(Pi,h),_l(e)),u&&H0(i.model)}zu&&Math.abs(zu.x-ce)<5&&Math.abs(zu.y-Te)<5&&Date.now()<zu.time+500?(Wh+=1,zu.time=nt):(zu={x:ce,y:Te,time:nt},Wh=1);const vr=vt.getBoundingClientRect();if(ce>=vr.left&&ce<=vr.right&&Te>=vr.top&&Te<=vr.bottom){if(e.flushInlineShortcutBuffer(),e.adoptStyle="left",s=pd(e,ce,Te,{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?L="all":L="selection"}else e.model.at(s).type==="placeholder"?(e.model.setSelection(s-1,s),L="selection"):((r=e.model.at(s).rightSibling)==null?void 0:r.type)==="placeholder"?(e.model.setSelection(s,s+1),L="selection"):(e.model.position=s,cm(e.model)?L="all":L="selection");e.defaultStyle={},t.detail===3||Wh>2?(xr(),(t.detail===3||Wh===3)&&(e.model.selection={ranges:[[0,e.model.lastOffset]]},L="all")):c||(c=!0,ec.start(vt,t,Sn,xr),(t.detail===2||Wh===2)&&(u=!0,H0(e.model),L="all"))}e.hasFocus()||(L="none",e.focus({preventScroll:!0}))}else zu=null;e.stopCoalescingUndo(),L!=="none"&&(e.model.selectionIsCollapsed&&(L="all"),_l(e)),t.preventDefault()}function Mf(e,t,r){if(e>=r.left&&e<=r.right&&t>=r.top&&t<=r.bottom)return 0;const i=e-(r.left+r.right)/2,s=t-(r.top+r.bottom)/2;return i*i+s*s}function ch(e,t,r,i,s){if(!r.id)return[1/0,null];if(t.has(r.id))return t.get(r.id);const c=nh(e,r);if(!c)return[1/0,null];let u=[1/0,null];if(r.hasChildren&&!r.captureSelection&&i>=c.left&&i<=c.right)for(const L of r.children){const z=ch(e,t,L,i,s);z[0]<=u[0]&&(u=z)}return u[1]||(u=[Mf(i,s,c),r]),t.set(r.id,u),u}function hd(e,t,r){const[,i]=ch(e,new Map,e.model.root,t,r);return i}function pd(e,t,r,i){var s;const c=e.field.querySelector(".ML__latex").getBoundingClientRect();if(!c)return 0;if(t>c.right||r>c.bottom+8)return e.model.lastOffset;if(t<c.left||r<c.top-8)return 0;i=i!=null?i:{},i.bias=(s=i.bias)!=null?s:0;let u=hd(e,t,r);const L=[];let z=u;for(;z;)L.unshift(z),z=z.parent;for(const ce of L)if(ce.captureSelection){u=ce;break}let X=e.model.offsetOf(u);if(X<0)return-1;if(u.leftSibling)if(i.bias===0&&u.type!=="placeholder"){const ce=nh(e,u);ce&&t<(ce.left+ce.right)/2&&(X=e.model.offsetOf(u.leftSibling))}else i.bias<0&&(X=e.model.offsetOf(u.leftSibling));return X}var mc=class extends Ls{constructor(){super("math")}onPaste(e,t){if(!t||!e.model.contentWillChange({data:typeof t=="string"?t:null,dataTransfer:typeof t=="string"?null:t,inputType:"insertFromPaste"}))return!1;let r="",i="auto",s=typeof t!="string"?t.getData("application/json+mathlive"):"";if(s)try{const c=JSON.parse(s);if(c&&Array.isArray(c)){e.snapshot();const u=Ma(c),{model:L}=e;L.selectionIsCollapsed||L.deleteAtoms(Jl(L.selection));const z=L.at(L.position);if(z.parent instanceof hs){console.assert(z.parentBranch!==void 0);const X=[];let ce=[];u[0].type==="first"&&u.shift(),u[u.length-1].type==="first"&&u.pop();for(const St of u)St.type==="first"&&ce.length>0?(X.push(ce),ce=[St]):ce.push(St);ce.length>0&&X.push(ce);let Te=Number(z.parentBranch[0]),nt=Number(z.parentBranch[1]);const vt=z.parent.maxColumns;for(;z.parent.colCount-nt<X.length&&z.parent.colCount<vt;)z.parent.addColumn();z.parent.addChildrenAfter(X[0],z);for(let St=1;St<X.length;St++)nt++,nt>=vt&&(nt=0,z.parent.addRowAfter(Te),Te++),z.parent.setCell(Te,nt,X[St])}else z.parent.addChildrenAfter(u.filter(X=>X.type!=="first"),z);return L.position=L.offsetOf(u[u.length-1]),L.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 u=window.MathfieldElement.computeEngine.box(c);u&&!u.has("Error")&&(r=u.latex)}r||(i="latex")}catch(c){}if(!r&&typeof t!="string"&&(r=t.getData("application/x-latex"),r&&(i="latex")),r||(r=typeof t=="string"?t:t.getData("text/plain")),r){let c;return[c,r]=eh(r),i==="auto"&&c&&(i="latex"),e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r,{format:i})&&(e.startRecording(),e.snapshot("paste"),_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:u}=e;r.silenceNotifications&&(e.silenceNotifications=!0);const L=e.silenceNotifications;e.silenceNotifications=!0;const z={"?":"\\placeholder{}","@":"\\placeholder{}"};z[0]=r.insertionMode==="replaceAll"?"":e.getValue(e.selection,"latex-unstyled"),r.insertionMode==="replaceSelection"&&!e.selectionIsCollapsed?e.deleteAtoms(Jl(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward"),!e.at(e.position).isLastSibling&&e.at(e.position+1).type==="placeholder"?e.deleteAtoms([e.position,e.position+1]):e.at(e.position).type==="placeholder"&&e.deleteAtoms([e.position-1,e.position]);let X=-1;z[0]?z["@"]=z[0]:typeof t=="string"&&/(^|[^\\])#@/.test(t)&&(X=Xm(e),X>=0&&(z["@"]=e.getValue(X,e.position,"latex"))),z[0]||(z[0]=z["?"]);let ce=!1;const Te=Ln=>(ce=!0,z[Ln]);let[nt,vt]=z0(e,t,Te,r);if(!vt)return!1;const St=vt.length===1&&vt[0].type==="genfrac";St&&X>=0&&typeof e.mathfield.options.isImplicitFunction=="function"&&e.mathfield.options.isImplicitFunction(e.at(e.position).command)?(z["@"]=z["?"],ce=!1,[nt,vt]=z0(e,t,Te,r)):X>=0&&e.deleteAtoms([X,e.position]);const{parent:xr}=e.at(e.position),Sn=xr.hasEmptyBranch("body");if(St&&nt!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&xr instanceof tl&&xr.leftDelim==="("&&Sn){const Ln=xr.parent,un=xr.parentBranch;Ln.removeChild(xr),Ln.setChildren(vt,un)}const vr=e.at(e.position);vr.parent.addChildrenAfter(vt,vr),nt==="latex"&&typeof t=="string"&&(xr==null?void 0:xr.type)==="root"&&Sn&&!ce&&(xr.verbatimLatex=t),e.silenceNotifications=L;const nn=vt[vt.length-1];if(r.selectionMode==="placeholder"){const Ln=vt.flatMap(un=>[un,...un.children]).find(un=>un.type==="placeholder");if(Ln){const un=e.offsetOf(Ln);e.setSelection(un-1,un),e.announce("move")}else nn&&(e.position=e.offsetOf(nn))}else r.selectionMode==="before"||(r.selectionMode==="after"?nn&&(e.position=e.offsetOf(nn)):r.selectionMode==="item"&&e.setSelection(e.anchor,e.offsetOf(nn)));return e.contentDidChange({data:c,inputType:"insertText"}),e.silenceNotifications=u,!0}};function z0(e,t,r,i){var s;let c,u=[];if(typeof t!="string"||i.format==="math-json"){const L=window.MathfieldElement.computeEngine;if(!L)return["math-json",[]];[c,t]=["latex",L.box(t).latex],u=fc(t,{context:e.mathfield.context})}else typeof t=="string"&&i.format==="ascii-math"?([c,t]=E0(t,{format:"ascii-math",inlineShortcuts:e.mathfield.options.inlineShortcuts}),u=fc(t,{context:e.mathfield.context}),c!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&$0(u)):(i.format==="auto"||(s=i.format)!=null&&s.startsWith("latex"))&&(i.format==="auto"&&([c,t]=E0(t,{format:"auto",inlineShortcuts:e.mathfield.options.inlineShortcuts})),i.format==="latex"&&([,t]=eh(t)),u=fc(t,{context:e.mathfield.context,args:r}),i.format!=="latex"&&e.mathfield.options.removeExtraneousParentheses&&$0(u));return Ft(u,i.style),[c!=null?c:"latex",u]}function Gm(e){if(!e||(console.assert(e[0].type==="first"),e.length>1))return null;const t=e[0];return t instanceof tl&&t.leftDelim==="("&&t.rightDelim===")"?t.removeBranch("body"):null}function $0(e){if(e){for(let t=0;e[t];t++){const r=e[t];if(r instanceof tl&&r.leftDelim==="("){let i=0,s=0,c=0;for(let u=0;r.body[u];u++)r.body[u].type==="genfrac"&&(i++,s=u),c++;c===0&&i===1&&(e[t]=r.body[s])}}for(const t of e){for(const r of t.branches)if(!t.hasEmptyBranch(r)){$0(t.branch(r));const i=Gm(t.branch(r));i&&t.setChildren(i,r)}if(t instanceof hs)for(const r of t.cells)$0(r)}}}function Xm(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=Lh[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||md(t));)t=t.leftSibling;else{const s=[];for(;!t.isFirstSibling&&(md(t)||s.length>0);)t.type==="mclose"&&s.unshift(t.value),t.type==="mopen"&&s.length>0&&t.value===Lh[s[0]]&&s.shift(),t=t.leftSibling}return r===t?-1:e.offsetOf(t)}function md(e){return e.isDigit()?!0:e.type&&/^(mord|surd|subsup|leftright|mop|mclose)$/.test(e.type)?!e.isExtensibleSymbol:!1}new mc;var pm=class extends Ls{constructor(){super("text")}onPaste(e,t){if(!t)return!1;const r=typeof t=="string"?t:t.getData("text/plain");return r&&e.model.contentWillChange({inputType:"insertFromPaste",data:r})?(e.stopCoalescingUndo(),e.stopRecording(),this.insert(e.model,r)&&(e.model.contentDidChange({inputType:"insertFromPaste"}),e.startRecording(),e.snapshot("paste"),_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(Jl(e.selection)):r.insertionMode==="replaceAll"?(e.root.setChildren([],"body"),e.position=0):r.insertionMode==="insertBefore"?e.collapseSelection("backward"):r.insertionMode==="insertAfter"&&e.collapseSelection("forward");const c=mm(t,e.mathfield.context);if(Ft(c,r.style),!c)return!1;const u=e.at(e.position),L=u.parent.addChildrenAfter(c,u);return e.silenceNotifications=s,r.selectionMode==="before"||(r.selectionMode==="item"?e.setSelection(e.anchor,e.offsetOf(L)):L&&(e.position=e.offsetOf(L))),e.contentDidChange({data:t,inputType:"insertText"}),e.silenceNotifications=i,!0}};function mm(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 "),fc(e,{context:t,parseMode:"text"})}new pm;function lA(e){return{value:e.model.getValue(),selectionIsCollapsed:e.model.selectionIsCollapsed,canUndo:e.canUndo(),canRedo:e.canRedo(),style:e.selectionStyle,mode:e.model.mode}}var Ss=4,cA=20,Pl=2*(cA+Ss),Z0=(e,t)=>`
|
|
|
<line x1="${e+cA}" y1="${t+cA}"
|
|
|
x2="${e>t?e+cA:7*cA+10*Ss}"
|
|
|
y2="${e<t?t+cA:7*cA+10*Ss}"/>
|
|
|
<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>`,V0=(e,t)=>`
|
|
|
<line x1="${e+cA}" y1="${t+cA}"
|
|
|
x2="${e>t?e+cA:7*cA+10*Ss}"
|
|
|
y2="${e<t?t+cA:7*cA+10*Ss}"/>
|
|
|
<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>`,Yd=(e,t,r)=>`
|
|
|
<svg id="arrow" viewBox="0 0 40 40" x="${e}" y="${t}" width="40" height="40">
|
|
|
<circle class="cls-2" cx="20" cy="20" r="20"/>
|
|
|
<g transform="rotate(${r})" transform-origin="20 20">
|
|
|
<path class="font" d="m17.7,7.23h4.6c.52,0,.94.42.94.94v13.82c0,.52.42.94.94.94h3.39c.83,0,1.25,1.01.66,1.6l-7.56,7.56c-.37.37-.96.37-1.32,0l-7.56-7.56c-.59-.59-.17-1.6.66-1.6h3.39c.52,0,.94-.42.94-.94v-13.82c0-.52.42-.94.94-.94Z"/>
|
|
|
</g>
|
|
|
</svg>`,Ah=`
|
|
|
<svg class="MLEP__array-buttons" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
|
viewBox=
|
|
|
"-2 -2 ${8*cA+10*Ss+5} ${8*cA+10*Ss+5}">
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background rows"
|
|
|
x="0"
|
|
|
y="${Pl+Ss}"
|
|
|
height="${3*Pl}"
|
|
|
width="${Pl}"
|
|
|
rx="${Pl/2}"/>
|
|
|
<rect
|
|
|
class="MLEP__array-insert-background columns"
|
|
|
x="${Pl+Ss}"
|
|
|
y="0"
|
|
|
height="${Pl}"
|
|
|
width="${3*Pl}"
|
|
|
rx="${Pl/2}"/>
|
|
|
<g data-command='"moveDown"'>
|
|
|
${Yd(2*(Ss+Pl),2*Ss+3*Pl,0)}
|
|
|
</g>
|
|
|
<g data-command='"moveUp"'>
|
|
|
${Yd(2*(Ss+Pl),2*Ss+Pl,180)}
|
|
|
</g>
|
|
|
<g data-command='"moveToNextWord"'>
|
|
|
${Yd(2*Ss+3*Pl,2*(Ss+Pl),-90)}
|
|
|
</g>
|
|
|
<g data-command='"moveToPreviousWord"'>
|
|
|
${Yd(2*Ss+Pl,2*(Ss+Pl),90)}
|
|
|
</g>
|
|
|
<g>
|
|
|
|
|
|
<g data-command='"addColumnBefore"'>
|
|
|
${Z0(2*Ss+Pl,Ss)}
|
|
|
</g>
|
|
|
<g data-command='"removeColumn"'>
|
|
|
${V0(2*Ss+2*Pl,Ss)}
|
|
|
</g>
|
|
|
<g data-command='"addColumnAfter"'>
|
|
|
${Z0(2*Ss+3*Pl,Ss)}
|
|
|
</g>
|
|
|
<g data-command='"addRowBefore"'>
|
|
|
${Z0(Ss,2*Ss+Pl)}
|
|
|
</g>
|
|
|
<g data-command='"removeRow"'>
|
|
|
${V0(Ss,2*Ss+2*Pl)}
|
|
|
</g>
|
|
|
<g data-command='"addRowAfter"'>
|
|
|
${Z0(Ss,2*Ss+3*Pl)}
|
|
|
</g>
|
|
|
</svg>`,Jm=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>`,Gh=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>`,W0=e=>`
|
|
|
<svg id="Bmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","Bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4c-1.1,0-2,.9-2,2v3c0,1.66-.9,3-2,3,1.1,0,2,1.34,2,3v3c0,1.1.9,2,2,2"/>
|
|
|
<path class="cls-2" d="m22,4c1.1,0,2,.9,2,2v3c0,1.66.9,3,2,3-1.1,0-2,1.34-2,3v3c0,1.1-.9,2-2,2"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,fo=e=>`
|
|
|
<svg id="bmatrix" class="${e}" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 28 24"
|
|
|
data-command='["setEnvironment","bmatrix"]'>
|
|
|
<rect class="cls-1" width="28" height="24"/>
|
|
|
<path class="cls-2" d="m6,4h-3v16h3"/>
|
|
|
<path class="cls-2" d="m22,4h3v16h-3"/>
|
|
|
<circle cx="10" cy="8" r="1"/>
|
|
|
<circle cx="14" cy="12" r="1"/>
|
|
|
<circle cx="18" cy="16" r="1"/>
|
|
|
</svg>`,Ym=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>`,qm=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>`,eg=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>`,tg=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>`,gd={matrix:Jm,pmatrix:Gh,bmatrix:fo,Bmatrix:W0,vmatrix:Ym,Vmatrix:qm},vd={cases:eg,rcases:tg,Bmatrix:W0};function rg(e){var t,r;const i=(t=e.model.parentEnvironment)==null?void 0:t.array;if(!i)return;let s=0;i.forEach(St=>{(!s||St.length>s)&&(s=St.length)});let c=document.getElementById("mathlive-environment-popover");c||(c=Bp("mathlive-environment-popover"),ld("environment-popover"),ld("core"),c.setAttribute("aria-hidden","true"));let u;const L=c.querySelector(".MLEP__environment-controls");L?u=L:(u=document.createElement("div"),c.innerHTML="",c.appendChild(u)),u.className="MLEP__environment-controls",u.style.display="flex",u.style.width="100%",u.style.height="100%",u.style.boxSizing="border-box",u.innerHTML=Ah;let z=[],X="";const ce=e.model.parentEnvironment.environmentName;if(Nh(ce)){const St=Xh(ce);X=gd[St]("active");const xr=gd,{[St]:Sn}=xr,vr=$(xr,[g(St)]);z=Object.values(vr).map(nn=>nn("inactive"))}else if(Oh(ce)){const St=X0(ce);X=vd[St]("active");const xr=vd,{[St]:Sn}=xr,vr=$(xr,[g(St)]);z=Object.values(vr).map(nn=>nn("inactive"))}else Um(ce)&&(X=gd.matrix("active"),z=Object.values(vd).map(St=>St("inactive")));const Te=document.createElement("div");Te.className="MLEP__environment-delimiter-controls",Te.style.display="flex",Te.style.flexDirection="column",Te.innerHTML=`
|
|
|
<div class='MLEP__array-delimiter-options'>
|
|
|
${X}
|
|
|
${z.join("")}
|
|
|
</div>`,X&&u.appendChild(Te),u.querySelectorAll("[data-command]").forEach(St=>{const xr=St.dataset.command;let Sn=xr;try{Sn=JSON.parse(xr)}catch(vr){}St.addEventListener("mousedown",vr=>vr.preventDefault()),Sn&&St.addEventListener("click",()=>e.executeCommand(Sn))});const vt=(r=e.field)==null?void 0:r.getBoundingClientRect();vt&&(c.style.top=`${window.scrollY+(vt.top-c.clientHeight-15)}px`,c.style.left=`${vt.left+20}px`,c.classList.add("is-visible"))}function kp(){const e=document.getElementById("mathlive-environment-popover");e==null||e.classList.remove("is-visible")}function G0(){document.getElementById("mathlive-environment-popover")&&(Zm("mathlive-environment-popover"),cd("environment-popover"),cd("core"))}function uh(e){if(!e.hasFocus())return;let t=!1;if(e.model.mode==="math"){const r=e.model.parentEnvironment;if(r!=null&&r.array&&vp(r.environmentName)){const i=e.options.environmentPopoverPolicy;t=i==="auto"||i==="on"}}t?rg(e):kp()}function Xh(e){return e.replace("*","")}function X0(e){return e==="dcases"?"cases":e}function Jh(e){const t=getComputedStyle(e).direction;return t==="ltr"||t==="rtl"?t:"ltr"}function gm(e,t,r){return t==="left"||t==="leading"&&r==="ltr"||t==="trailing"&&r==="rtl"?e.left:e.right}function Yh(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 Dp(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 qh(e,t){var r,i,s;const c=(r=Jh(e))!=null?r:"ltr";e.style.position="fixed",e.style.left="",e.style.top="",e.style.right="",e.style.bottom="",e.style.height="",e.style.width="";const u=e.getBoundingClientRect(),L=Number.isFinite(t.maxHeight)?Math.min(t.maxHeight,window.innerHeight):window.innerHeight;let z=Math.min(L,(i=t.height)!=null?i:u.height),X=Yh(t.location.y,z,t.verticalPos,c);X+z>window.innerHeight-8&&(t.alternateLocation?(X=Yh(t.alternateLocation.y,z,t.verticalPos,c),X+z>window.innerHeight-8&&(X=void 0)):X=void 0),Number.isFinite(X)||(X=Math.max(8,window.innerHeight-8-z),8+z>window.innerHeight-8&&(e.style.bottom="8px")),z=Math.min(X+z,window.innerHeight-8)-X;const ce=Number.isFinite(t.maxWidth)?Math.min(t.maxWidth,window.innerWidth):window.innerWidth;let Te=Math.min(ce,(s=t.width)!=null?s:u.width),nt=Yh(t.location.x,Te,t.horizontalPos,c);nt+Te>window.innerWidth-8&&(t.alternateLocation?(nt=Dp(t.alternateLocation.x,Te,t.verticalPos,c),nt+Te>window.innerWidth-8&&(nt=void 0)):nt=void 0),Number.isFinite(nt)||(nt=Math.max(8,window.innerWidth-8-Te),8+Te>window.innerWidth-8&&(e.style.right="8px")),Te=Math.min(nt+Te,window.innerWidth-8)-nt,c==="rtl"?e.style.right=`${Math.ceil(window.innerWidth-nt-Te).toString()}px`:e.style.left=`${Math.ceil(nt).toString()}px`,e.style.top=`${Math.ceil(X).toString()}px`,z!==u.height&&(e.style.height=`${Math.ceil(z).toString()}px`),Te!==u.width&&(e.style.width=`${Math.ceil(Te).toString()}px`)}function e0(e,t){return Math.hypot(t.x-e.x,t.y-e.y)}function qd(e){return"submenu"in e}function RA(e){return"type"in e&&e.type==="command"||"onMenuSelect"in e||"id"in e}function t0(e){return"type"in e&&e.type==="divider"}function Lf(e){return"type"in e&&e.type==="heading"}var J0={};function r0(e){let t=J0[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,J0[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 tu=80,bd=class{constructor(e,t){this._element=null;var r;this.parentMenu=t,this._declaration=e,qd(e)?(this.type="submenu",this.submenu=new Bt(e.submenu,{parentMenu:t,submenuClass:e.submenuClass,columnCount:e.columnCount})):this.type=(r=e.type)!=null?r:"command",this.hasCheck=RA(e)&&e.checked!==void 0}get rootMenu(){return this.parentMenu.rootMenu}get abortController(){return this._abortController||(this._abortController=new AbortController),this._abortController}dispose(){var e,t;(e=this._abortController)==null||e.abort(),this._abortController=void 0,(t=this._element)==null||t.remove(),this._element=null,this.submenu&&this.submenu.dispose(),this.submenu=void 0}get menuItem(){return this._declaration}get label(){var e;return(e=this._label)!=null?e:""}set label(e){e===void 0&&(e=""),e!==this._label&&(this._label=e,this.dirty=!0)}get visible(){return this._visible}set visible(e){e!==this._visible&&(this._visible=e,this.dirty=!0)}get enabled(){return this._enabled}set enabled(e){this._enabled=e,this.element&&(e?this.element.removeAttribute("aria-disabled"):this.element.setAttribute("aria-disabled","true")),this.dirty=!0}get checked(){return this._checked}set checked(e){this._checked=e,this.dirty=!0}get tooltip(){return this._tooltip}set tooltip(e){e!==this._tooltip&&(this._tooltip=e,this.dirty=!0)}get ariaLabel(){return this._ariaLabel}set ariaLabel(e){e!==this._ariaLabel&&(this._ariaLabel=e,this.dirty=!0)}get active(){var e,t;return(t=(e=this.element)==null?void 0:e.classList.contains("active"))!=null?t:!1}set active(e){this.element&&this.element.classList.toggle("active",e)}updateState(e){var t,r,i;const s=this._declaration;if(t0(s)){this.enabled=!1,this.checked=!1;return}Lf(s)&&(this.enabled=!1,this.checked=!1,this.visible=!0),RA(s)&&(this.checked=RA(s)&&((t=He(s.checked,e))!=null?t:!1)),(RA(s)||qd(s))&&(this.enabled=(r=He(s.enabled,e))!=null?r:!0,this.visible=(i=He(s.visible,e))!=null?i:!0,this.visible&&this.enabled&&this.submenu&&(this.submenu.updateState(e),this.submenu.visible||(this.visible=!1))),(RA(s)||Lf(s)||qd(s))&&(this.label=He(s.label,e),this.tooltip=He(s.tooltip,e),this.ariaLabel=He(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(r0("checkmark"))):this.checked==="mixed"?(e.setAttribute("aria-checked","mixed"),e.append(r0("mixedmark"))):e.removeAttribute("aria-checked"),this.ariaLabel&&e.setAttribute("aria-label",this.ariaLabel);const t=document.createElement("span");if(t.className=this.parentMenu.hasCheck?"label indent":"label",this.type==="heading"&&t.classList.add("heading"),t.innerHTML=this.label,e.append(t),this._tooltip&&e.setAttribute("data-tooltip",this._tooltip),RA(this._declaration)&&this._declaration.keyboardShortcut){const r=document.createElement("kbd");r.innerHTML=pu(this._declaration.keyboardShortcut),e.append(r)}this.type==="submenu"&&e.append(r0("trailing-chevron"))}get element(){if(this._element)return this._element;if(t0(this._declaration)){const r=document.createElement("li");return r.setAttribute("part","menu-divider"),r.setAttribute("role","divider"),this._element=r,r}const e=document.createElement("li");this._element=e,(RA(this._declaration)||Lf(this._declaration)||qd(this._declaration))&&this._declaration.class&&(e.className=this._declaration.class),e.setAttribute("part","menu-item"),e.setAttribute("tabindex","-1"),this.hasCheck?e.setAttribute("role","menuitemcheckbox"):e.setAttribute("role","menuitem"),this.type==="submenu"&&(e.setAttribute("aria-haspopup","true"),e.setAttribute("aria-expanded","false"));const t=this.abortController.signal;return e.addEventListener("pointerenter",this,{signal:t}),e.addEventListener("pointerleave",this,{signal:t}),e.addEventListener("pointerup",this,{signal:t}),e.addEventListener("click",this,{signal:t}),this._element}dispatchSelect(){if(!RA(this._declaration))return;const e=new CustomEvent("menu-select",{cancelable:!0,bubbles:!0,detail:{modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data}});this.parentMenu.dispatchEvent(e)&&typeof this._declaration.onMenuSelect=="function"&&this._declaration.onMenuSelect({modifiers:this.rootMenu.modifiers,id:this._declaration.id,data:this._declaration.data})}handleEvent(e){var t;if(!(!this.visible||!this.enabled)){if(e.type==="click"){this.rootMenu.state==="modal"&&this.select(),e.stopPropagation(),e.preventDefault();return}if(e.type==="pointerenter"){const r=e;this.rootMenu.cancelDelayedOperation(),this.parentMenu.isSubmenuOpen&&((t=this.parentMenu.activeMenuItem)!=null&&t.movingTowardSubmenu(r))?this.rootMenu.scheduleOperation(()=>{this.parentMenu.activeMenuItem=this,this.openSubmenu()}):(this.parentMenu.activeMenuItem=this,this.openSubmenu({withDelay:!0}));return}if(e.type==="pointerleave"){this.rootMenu.activeSubmenu===this.parentMenu&&(this.parentMenu.activeMenuItem=null);return}if(e.type==="pointerup"){this.rootMenu.state!=="modal"&&this.select(),e.stopPropagation(),e.preventDefault();return}}}select(){if(this.rootMenu.cancelDelayedOperation(),this.type==="submenu"){this.openSubmenu();return}this.active=!1,setTimeout(()=>{this.active=!0,setTimeout(()=>{this.rootMenu.hide(),this.dispatchSelect()},tu)},tu)}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=Jh(this.element);this.submenu.show({container:this.rootMenu.element.parentNode,location:{x:gm(r,"trailing",i),y:r.top-4},alternateLocation:{x:gm(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(Z(i,t.clientY-e.clientY,r)<=.2)return!1;let c="right";if(this.submenu.element){const u=this.submenu.element.getBoundingClientRect(),L=this.element.getBoundingClientRect();u.left<L.left+L.width/2&&(c="left")}return c==="right"?i>0:i<0}};function Z(e,t,r){return Math.hypot(e,t)/r}function He(e,t){return e===void 0||typeof e!="function"?e:(t!=null||(t={alt:!1,control:!1,shift:!1,meta:!1}),e(t))}var Bt=class Em{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 bd(i,this)),this.hasCheck=void 0,this.dirty=!0}dispose(){var t;this.hide(),this._element&&this._element.remove(),this._abortController&&this._abortController.abort(),(t=this._menuItems)==null||t.forEach(r=>r.dispose()),this._menuItems=[],this._activeMenuItem=null,this.parentMenu=null}handleEvent(t){if(t.type==="wheel"&&this._element){const r=t;this._element.scrollBy(0,r.deltaY),t.stopPropagation()}}dispatchEvent(t){return this.rootMenu.dispatchEvent(t)}get rootMenu(){return this.parentMenu.rootMenu}updateState(t){var r,i,s;this._menuItems.forEach(X=>X.updateState(t));const c=this.hasCheck;this.hasCheck=this._menuItems.some(X=>X.visible&&X.hasCheck),this.hasCheck!==c&&this._menuItems.forEach(X=>X.updateState(t));let u,L=0;for(const X of this._menuItems)X.type==="heading"?(u&&L===0&&(u.visible=!1),u=X,L=0):X.type==="divider"&&u?(u.visible=L>0,u=void 0,L=0):u&&X.visible&&(L+=1);u&&(u.visible=L>0);let z=!0;for(const X of this._menuItems)X.type==="divider"?(X.visible=!z,z=!0):X.visible&&(z=!1);(r=this.activeMenuItem)!=null&&r.visible||(this.activeMenuItem=null),!((i=this.activeMenuItem)!=null&&i.enabled)&&((s=this.activeMenuItem)==null?void 0:s.type)==="submenu"&&this._activeMenuItem.submenu.hide(),this._dirty=!1}get enabled(){return this.updateIfDirty(),this._menuItems.some(t=>t.type!=="divider"&&t.visible&&t.enabled)}get visible(){return this.updateIfDirty(),this._menuItems.some(t=>t.type!=="divider"&&t.visible)}set dirty(t){console.assert(t===!0),this._dirty!==t&&t&&this.parentMenu&&(this._dirty=!0,this.parentMenu.dirty=!0)}updateIfDirty(){this._dirty&&this.updateState(this.rootMenu.modifiers)}updateElement(){var t;if(this._element){this._element.textContent="";for(const{element:r,visible:i}of this._menuItems)r&&i&&this._element.append(r);(t=this._element.querySelector("li:first-of-type"))==null||t.setAttribute("tabindex","0")}}get element(){if(this._element)return this._element;const t=document.createElement("menu");t.setAttribute("role","menu"),t.setAttribute("tabindex","-1"),t.setAttribute("aria-orientation","vertical"),t.setAttribute("part","ui-menu-container"),this._submenuClass&&t.classList.add(this._submenuClass),t.classList.add("ui-menu-container"),this._abortController||(this._abortController=new AbortController);const r=this._abortController.signal;return t.addEventListener("focus",this,{signal:r}),t.addEventListener("wheel",this,{passive:!0,signal:r}),this._element=t,this.updateElement(),t}get activeMenuItem(){return this._activeMenuItem}set activeMenuItem(t){var r,i,s,c;if(this.rootMenu.cancelDelayedOperation(),t!==this._activeMenuItem){if(this.activeMenuItem){const u=this.activeMenuItem;u.active=!1,(r=u.submenu)==null||r.hide()}if(!((i=t==null?void 0:t.visible)==null||i)){this._activeMenuItem=null;return}this._activeMenuItem=t,t&&(t.active=!0)}t?(s=t.element)==null||s.focus({preventScroll:!0}):(c=this._element)==null||c.focus({preventScroll:!0})}get firstMenuItem(){this.updateIfDirty();let t=0,r=!1;const i=this._menuItems;for(;!r&&t<=i.length-1;){const s=i[t];r=s.type!=="divider"&&s.visible&&s.enabled,t+=1}return r?i[t-1]:null}get lastMenuItem(){this.updateIfDirty();const t=this._menuItems;let r=t.length-1,i=!1;for(;!i&&r>=0;){const s=t[r];i=s.type!=="divider"&&s.visible&&s.enabled,r-=1}return i?t[r+1]:null}nextMenuItem(t){if(t===0)return this._activeMenuItem;if(!this._activeMenuItem)return t>0?this.firstMenuItem:this.lastMenuItem;if(!this.firstMenuItem||!this.lastMenuItem||!this._activeMenuItem)return null;this.updateIfDirty();const r=this._menuItems.indexOf(this.firstMenuItem),i=this._menuItems.indexOf(this.lastMenuItem);let s=this._menuItems.indexOf(this._activeMenuItem),c=1;for(;s>=r&&s<=i;){s+=t>0?1:-1;const u=this._menuItems[s];if(!u)break;if(u.visible&&u.enabled){if(c===Math.abs(t))return this._menuItems[s];c+=1}}return t>0?this.lastMenuItem:this.firstMenuItem}getMenuItemColumn(t){this.updateIfDirty();const i=this._menuItems.filter(s=>s.visible&&s.enabled).indexOf(t);return i<0?-1:i%this.columnCount}static get collator(){return Em._collator||(Em._collator=new Intl.Collator(void 0,{usage:"search",sensitivity:"base"})),Em._collator}findMenuItem(t){var r;this.updateIfDirty();const i=this._menuItems.filter(L=>L.type!=="divider"&&L.visible&&L.enabled);if(i.length===0)return null;const s=Math.max(...i.map(L=>L.label.length))-t.length;if(s<0)return null;let c=null,u=0;for(;u<s&&!c;)c=(r=i.find(L=>Em.collator.compare(t,L.label.substring(u,t.length))===0))!=null?r:null,u++;return c}show(t){return!this.visible||!t.container?!1:(this.updateElement(),t.container.appendChild(this.element),ae()&&(this.element.popover="manual",this.element.showPopover()),t.location&&qh(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),ae()&&((t=this._element)!=null&&t.popover)&&this.element.hidePopover(),(i=(r=this.parentMenu)==null?void 0:r.element)==null||i.focus(),(c=(s=this._element)==null?void 0:s.parentNode)==null||c.removeChild(this._element)}set openSubmenu(t){var r,i,s,c;const u=t!==null;((r=this.activeMenuItem)==null?void 0:r.type)==="submenu"&&((i=this.activeMenuItem.element)==null||i.setAttribute("aria-expanded",u.toString())),(c=(s=this.activeMenuItem)==null?void 0:s.element)==null||c.classList.toggle("is-submenu-open",u),this.isSubmenuOpen=u}},Wt=class fv extends Bt{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(mn),this._modifiers={shift:!1,control:!1,alt:!1,meta:!1},this.typingBuffer="",this.state="closed"}get modifiers(){return this._modifiers}set modifiers(t){Ku(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=MA(t)),t.stopImmediatePropagation()}handleKeydownEvent(t){var r,i,s;if(t.key==="Tab"||t.key==="Escape"){this.hide();return}this.isDynamic&&(this.modifiers=MA(t));let c=!0;const u=this.activeSubmenu,L=u.activeMenuItem;switch(t.key){case" ":case"Space":case"Return":case"Enter":L==null||L.select(MA(t));break;case"ArrowRight":if((L==null?void 0:L.type)==="submenu")L.select(MA(t)),this.activeSubmenu.activeMenuItem=this.activeSubmenu.firstMenuItem;else if(!L)u.activeMenuItem=u.firstMenuItem;else{const z=(r=u.getMenuItemColumn(L))!=null?r:-1;if(z>=0&&z<((i=u.columnCount)!=null?i:1)-1){const X=u.nextMenuItem(1);X&&(u.activeMenuItem=X)}}break;case"ArrowLeft":if(u===this.rootMenu)L||(u.activeMenuItem=u.firstMenuItem);else if((L&&(s=u.getMenuItemColumn(L))!=null?s:-1)<=0||!L){u.hide();const X=u.parentMenu.activeMenuItem;if(X){const{element:ce}=X;ce==null||ce.focus(),ce==null||ce.classList.remove("is-submenu-open")}}else{const X=u.nextMenuItem(-1);X&&(u.activeMenuItem=X)}break;case"ArrowDown":u.activeMenuItem=u.nextMenuItem(u.columnCount);break;case"ArrowUp":u.activeMenuItem=u.nextMenuItem(-u.columnCount);break;case"Home":case"PageUp":u.activeMenuItem=u.firstMenuItem;break;case"End":case"PageDown":u.activeMenuItem=u.lastMenuItem;break;case"Backspace":if(this.typingBuffer&&(this.typingBuffer=this.typingBuffer.slice(0,-1),this.typingBuffer)){clearTimeout(this.typingBufferResetTimer);const z=u.findMenuItem(this.typingBuffer);z&&(u.activeMenuItem=z),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}break;default:if(qA(t)){isFinite(this.typingBufferResetTimer)&&clearTimeout(this.typingBufferResetTimer),this.typingBuffer+=t.key;const z=u.findMenuItem(this.typingBuffer);z&&(u.activeMenuItem=z),this.typingBufferResetTimer=setTimeout(()=>{this.typingBuffer=""},500)}else c=!1}c&&(t.preventDefault(),t.stopPropagation())}handleEvent(t){if(t.type==="keydown")this.handleKeydownEvent(t);else if(t.type==="keyup")this.handleKeyupEvent(t);else if(t.type==="pointermove")this.lastMoveEvent=t;else if(t.type==="pointerup"&&t.target===this.scrim)Number.isFinite(this.rootMenu._openTimestamp)&&Date.now()-this.rootMenu._openTimestamp<120?this.state="modal":this.state==="modal"&&this.hide();else if(t.type==="contextmenu"){t.preventDefault(),t.stopPropagation();return}super.handleEvent(t)}dispatchEvent(t){return this._host?this._host.dispatchEvent(t):!0}get scrim(){return Hc.element}connectScrim(t){const r=this.scrim;r.addEventListener("pointerup",this),r.addEventListener("contextmenu",this),r.addEventListener("keydown",this),r.addEventListener("keyup",this),r.addEventListener("pointermove",this),Hc.open({root:t,onDismiss:()=>this.hide()})}disconnectScrim(){const t=this.scrim;t.removeEventListener("pointerup",this),t.removeEventListener("contextmenu",this),t.removeEventListener("keydown",this),t.removeEventListener("keyup",this),t.removeEventListener("pointermove",this),Hc.state==="open"&&Hc.scrim.close()}get rootMenu(){return this}show(t){return this._onDismiss=t==null?void 0:t.onDismiss,t!=null&&t.modifiers&&(this.modifiers=t.modifiers),this.updateState(),this.connectScrim(t==null?void 0:t.target),super.show(I(m({},t),{container:this.scrim}))?(this._openTimestamp=Date.now(),this.state="open",!0):(this.disconnectScrim(),!1)}hide(){this.cancelDelayedOperation(),this.state!==void 0&&(this.state!=="closed"&&(this.activeMenuItem=null,Hc.element.parentElement.focus(),super.hide(),this.state="closed",this.disconnectScrim()),this._onDismiss&&(this._onDismiss(),this._onDismiss=void 0))}scheduleOperation(t){this.cancelDelayedOperation();const r=fv.SUBMENU_DELAY;if(r<=0){t();return}this.hysteresisTimer=setTimeout(()=>{this.hysteresisTimer=0,t()},r)}cancelDelayedOperation(){this.hysteresisTimer&&(clearTimeout(this.hysteresisTimer),this.hysteresisTimer=0)}};Wt.SUBMENU_DELAY=120;var gr=Wt;function mn(e){return t0(e)?!1:typeof e.label=="function"||typeof e.ariaLabel=="function"||typeof e.tooltip=="function"||(RA(e)||qd(e))&&(typeof e.enabled=="function"||typeof e.visible=="function")||RA(e)&&typeof e.checked=="function"?!0:qd(e)?e.submenu.some(mn):!1}var Bn=class{};Bn.DELAY=300,Bn.MAX_DISTANCE=10;function na(e){return new Promise((t,r)=>{const i=Qu(e);i||t(!1);let s=i;const c=setTimeout(()=>{u.abort(),t(e0(s,i)<Bn.MAX_DISTANCE)},Bn.DELAY),u=new AbortController,L=u.signal;for(const z of["pointermove","pointerup","pointercancel"])window.addEventListener(z,X=>{if(X.type==="pointerup"||X.type==="pointercancel")clearTimeout(c),u.abort(),t(!1);else if(X.type==="pointermove"){const ce=Qu(X);ce&&(s=ce)}},{passive:!0,signal:L})})}function fa(e,t,r){return up(this,null,function*(){if(e.type==="contextmenu"){const i=e;if(r.show({target:t,location:Qu(i),modifiers:MA(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:MA(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=Qu(e);if(yield na(e))return r.state!=="closed"?!1:(r.show({target:t,location:s}),!0)}return!1})}var qa={acute:714,grave:715,dot:729,ddot:168,mathring:730,tilde:126,bar:713,breve:728,check:711,hat:94,vec:8407};ge(Object.keys(qa),"{body:auto}",{createAtom:e=>new ih(I(m({},e),{body:et(e.args[0]),accentChar:qa[e.command.slice(1)]}))}),ge(["widehat","widecheck","widetilde"],"{body:auto}",{createAtom:e=>{const t=ye(et(e.args[0]));return new ih(I(m({},e),{body:et(e.args[0]),svgAccent:e.command.slice(1)+(t.length>5?"4":["1","1","2","2","3","3"][t.length])}))}}),ge(["overarc","overparen","wideparen"],"{body:auto}",{createAtom:e=>new ih(I(m({},e),{body:et(e.args[0]),svgAccent:"overarc"}))}),ge(["underarc","underparen"],"{body:auto}",{createAtom:e=>new pc(I(m({},e),{body:et(e.args[0]),svgBelow:"underarc"}))}),ge("utilde","{body:auto}",{createAtom:e=>{const t=et(e.args[0]),r=ye(t),i="widetilde"+(r.length>5?"4":["1","1","2","2","3","3"][r.length]);return new pc(I(m({},e),{body:t,svgBelow:i,boxType:Pd(t)}))}}),ge("^","{:string}",{createAtom:e=>{var t;return new Tr(I(m({},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:"^"}))}}),ge("`","{:string}",{createAtom:e=>{var t;return new Tr(I(m({},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:"`"}))}}),ge("'","{:string}",{createAtom:e=>{var t;return new Tr(I(m({},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:"'"}))}}),ge('"',"{:string}",{createAtom:e=>{var t,r;return new Tr(I(m({},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]:'"'}))}}),ge(".","{:string}",{createAtom:e=>{var t,r;return new Tr(I(m({},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]:"."}))}}),ge("=","{:string}",{createAtom:e=>{var t,r;return new Tr(I(m({},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]:"="}))}}),ge("~","{:string}",{createAtom:e=>{var t;return new Tr(I(m({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"}))}}),ge("c","{:string}",{createAtom:e=>{var t;return new Tr(I(m({},e),{type:"mord",isFunction:!1,limits:"adjacent",value:e.args[0]&&(t={c:"\xE7",C:"\xC7"}[e.args[0]])!=null?t:""}))}}),ge("enclose","{notation:string}[style:string]{body:auto}",{createAtom:e=>{var t,r;const i=e.args,s={strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",backgroundcolor:"transparent",padding:"auto",shadow:"none",svgStrokeStyle:void 0,borderStyle:void 0,style:(t=e.style)!=null?t:{}};if(i[1]){const u=i[1].split(/,(?![^(]*\)(?:(?:[^(]*\)){2})*[^"]*$)/);for(const L of u){const z=L.match(/\s*(\S+)\s+(\S+)\s+(.*)/);if(z)s.strokeWidth=z[1],s.strokeStyle=z[2],s.strokeColor=z[3];else{const X=L.match(/\s*([a-z]*)\s*=\s*"(.*)"/);X&&(X[1]==="mathbackground"?s.backgroundcolor=X[2]:X[1]==="mathcolor"?s.strokeColor=X[2]:X[1]==="padding"?s.padding=X[2]:X[1]==="shadow"&&(s.shadow=X[2]))}}s.strokeStyle==="dashed"?s.svgStrokeStyle="5,5":s.strokeStyle==="dotted"&&(s.svgStrokeStyle="1,5")}s.borderStyle=`${s.strokeWidth} ${s.strokeStyle} ${s.strokeColor}`;const c={};return((r=i[0])!=null?r:"").split(/[, ]/).filter(u=>u.length>0).forEach(u=>{c[u.toLowerCase()]=!0}),new oc(e.command,et(i[2]),c,s)}}),ge("cancel","{body:auto}",{createAtom:e=>{var t;return new oc(e.command,et(e.args[0]),{updiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),ge("bcancel","{body:auto}",{createAtom:e=>{var t;return new oc(e.command,et(e.args[0]),{downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),ge("xcancel","{body:auto}",{createAtom:e=>{var t;return new oc(e.command,et(e.args[0]),{updiagonalstrike:!0,downdiagonalstrike:!0},{strokeColor:"currentColor",strokeWidth:"",strokeStyle:"solid",borderStyle:"1px solid currentColor",backgroundcolor:"transparent",padding:"auto",shadow:"none",style:(t=e.style)!=null?t:{}})}}),ge(["overrightarrow","overleftarrow","Overrightarrow","overleftharpoon","overrightharpoon","overleftrightarrow","overlinesegment","overgroup"],"{:auto}",{createAtom:e=>{var t;return new pc(I(m({},e),{body:et((t=e.args)==null?void 0:t[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgAbove:e.command.slice(1)}))}}),ge("overbrace","{:auto}",{createAtom:e=>new pc(I(m({},e),{body:et(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgAbove:e.command.slice(1)}))}),ge(["underrightarrow","underleftarrow","underleftrightarrow","underlinesegment","undergroup"],"{:auto}",{createAtom:e=>new pc(I(m({},e),{body:et(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"rel",svgBelow:e.command.slice(1)}))}),ge(["underbrace"],"{:auto}",{createAtom:e=>new pc(I(m({},e),{body:et(e.args[0]),skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,boxType:"ord",svgBelow:e.command.slice(1)}))}),ge(["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 pc(I(m({},e),{svgBody:e.command.slice(1),above:((r=et((t=e.args)==null?void 0:t[1]))==null?void 0:r.length)===0?void 0:et((i=e.args)==null?void 0:i[1]),below:(c=et((s=e.args)==null?void 0:s[0]))!=null?c:null,skipBoundary:!1,supsubPlacement:"over-under",paddedBody:!0,paddedLabels:!0,boxType:"rel"}))},serialize:(e,t)=>e.command+(e.hasEmptyBranch("below")?"":`[${e.belowToLatex(t)}]`)+`{${e.aboveToLatex(t)}}${e.supsubToLatex(t)}`}),ge(["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 JA(e.command.slice(1),I(m({},e),{limits:"adjacent",isFunction:!0,variant:"main",variantStyle:"up"}))}),ge(["liminf","limsup"],"",{ifMode:"math",createAtom:e=>new JA({"\\liminf":"lim inf","\\limsup":"lim sup"}[e.command],I(m({},e),{limits:"over-under",variant:"main"}))}),ge(["lim","mod"],"",{ifMode:"math",createAtom:e=>new JA(e.command.slice(1),I(m({},e),{limits:"over-under",variant:"main"}))}),ge(["det","max","min"],"",{ifMode:"math",isFunction:!0,createAtom:e=>new JA(e.command.slice(1),I(m({},e),{limits:"over-under",isFunction:!0,variant:"main"}))}),ge(["ang"],"{:math}",{ifMode:"math",createAtom:e=>new Tr(I(m({},e),{body:et(e.args[0])})),serialize:(e,t)=>`\\ang{${e.bodyToLatex(t)}}`,render:(e,t)=>{const r=e.createBox(t),i=r.caret;r.caret=void 0;const s=new Hr("\xB0",{style:I(m({},e.style),{variant:"normal",variantStyle:"up"})});return new Hr([r,s],{type:"inner",isSelected:e.isSelected,caret:i})}}),ge("sqrt","[index:auto]{radicand:expression}",{ifMode:"math",createAtom:e=>new xp(I(m({},e),{body:et(e.args[1]),index:e.args[0]?et(e.args[0]):void 0}))}),ge(["frac","dfrac","tfrac","cfrac","binom","dbinom","tbinom"],"{:expression}{:expression}",{ifMode:"math",createAtom:e=>{const t=m({},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 Bf(i[0]?et(i[0]):[new Tu],i[1]?et(i[1]):[new Tu],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}`:Cs(e.command,r,i)}}),ge(["brace","brack"],"",{infix:!0,createAtom:e=>new Bf(et(e.args[0]),et(e.args[1]),I(m({},e),{hasBarLine:!1,leftDelim:e.command==="\\brace"?"\\lbrace":"\\lbrack",rightDelim:e.command==="\\brace"?"\\rbrace":"\\rbrack"})),serialize:(e,t)=>co([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),ge(["over","atop","choose"],"",{infix:!0,createAtom:e=>{let t,r;const i=e.args;return e.command==="\\choose"&&(t="(",r=")"),new Bf(et(i[0]),et(i[1]),I(m({},e),{hasBarLine:e.command==="\\over",leftDelim:t,rightDelim:r}))},serialize:(e,t)=>co([e.aboveToLatex(t),e.command,e.belowToLatex(t)])}),ge(["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 Bf(et(i[0]),et(i[1]),I(m({},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)}`}),ge("pdiff","{numerator}{denominator}",{ifMode:"math",createAtom:e=>new Bf(et(e.args[0]),et(e.args[1]),I(m({},e),{hasBarLine:!0,numerPrefix:"\u2202",denomPrefix:"\u2202"}))}),ge(["sum","prod","bigcup","bigcap","coprod","bigvee","bigwedge","biguplus","bigotimes","bigoplus","bigodot","bigsqcup","intop"],"",{ifMode:"math",createAtom:e=>new wp({coprod:"\u2210",bigvee:"\u22C1",bigwedge:"\u22C0",biguplus:"\u2A04",bigcap:"\u22C2",bigcup:"\u22C3",intop:"\u222B",prod:"\u220F",sum:"\u2211",bigotimes:"\u2A02",bigoplus:"\u2A01",bigodot:"\u2A00",bigsqcup:"\u2A06",smallint:"\u222B"}[e.command.slice(1)],I(m({},e),{limits:"auto",variant:"main"}))}),ge("smallint","",{ifMode:"math",createAtom:e=>new JA("\u222B",I(m({},e),{limits:"adjacent",variant:"main"}))});var Co={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"};ge(Object.keys(Co),"",{ifMode:"math",createAtom:e=>{const t=e.command,r=Co[t.slice(1)];return new wp(r,I(m({},e),{limits:"adjacent",variant:{"\u22D2":"ams","\u22D3":"ams"}[r]}))}}),ge(["Re","Im"],"",{ifMode:"math",createAtom:e=>new JA({"\\Re":"\u211C","\\Im":"\u2111"}[e.command],I(m({},e),{limits:"adjacent",isFunction:!0,variant:"fraktur"}))}),ge("middle","{:delim}",{ifMode:"math",createAtom:e=>{var t;return new Kc(I(m({},e),{delim:(t=e.args[0])!=null?t:"|",size:1}))}}),ge("the","{:value}",{createAtom:e=>new Tr(I(m({},e),{captureSelection:!0,verbatimLatex:null})),render:(e,t)=>{var r;const i=new Eo({parent:t},e.style);let s="";e.isSelected&&(s+=" ML__selected");const c=i.evaluate(e.args[0]);return new Hr(((r=kl(c))!=null?r:"").split("").map(u=>new Hr(u,{type:"ord",classes:s,mode:e.mode,isSelected:e.isSelected,style:m({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"}`}}),ge("mathtip","{:auto}{:math}",{createAtom:e=>new ud(I(m({},e),{body:et(e.args[0]),tooltip:et(e.args[1]),content:"math"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Tr.serialize([e.tooltip],I(m({},t),{defaultMode:"math"}))}}`}),ge("texttip","{:auto}{:text}",{createAtom:e=>new ud(I(m({},e),{body:et(e.args[0]),tooltip:et(e.args[1]),content:"text"})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\texttip{${e.bodyToLatex(t)}}{${Tr.serialize([e.tooltip],I(m({},t),{defaultMode:"text"}))}}`}),ge("error","{:math}",{createAtom:e=>new Tr(I(m({},e),{body:et(e.args[0])})),serialize:(e,t)=>`\\error{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__error"})}),ge("ensuremath","{:math}",{createAtom:e=>new Tr(I(m({},e),{body:et(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(I(m({},t),{defaultMode:"math"}))}}`}),ge("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"})}}}),ge("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"})}}}),ge("boxed","{content:math}",{createAtom:e=>new dc(I(m({},e),{body:et(e.args[0]),framecolor:{string:"black"}}))}),ge("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"})}}}),ge("fcolorbox","{frame-color:value}{background-color:value}{content:text}",{applyMode:"text",createAtom:e=>{var t,r;return new dc(I(m({},e),{body:et(e.args[2]),framecolor:(t=e.args[0])!=null?t:{string:"blue"},backgroundcolor:(r=e.args[1])!=null?r:{string:"yellow"}}))},serialize:(e,t)=>{var r,i;return t.skipStyles?e.bodyToLatex(I(m({},t),{defaultMode:"text"})):Cs(e.command,(r=kl(e.framecolor))!=null?r:"",(i=kl(e.backgroundcolor))!=null?i:"",e.bodyToLatex(I(m({},t),{defaultMode:"text"})))}}),ge("bbox","[:bbox]{body:auto}",{createAtom:e=>{var t;const r=e.args[0],i=et(e.args[1]);return r?new dc(I(m({},e),{body:i,padding:r.padding,border:r.border,backgroundcolor:(t=r.backgroundcolor)!=null?t:void 0})):new dc(I(m({},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 Cs(s,e.bodyToLatex(t))}}),ge(["displaystyle","textstyle","scriptstyle","scriptscriptstyle"],"{:rest}",{createAtom:e=>new Tr(I(m({},e),{body:et(e.args[0])})),render:(e,t)=>{const r=new Eo({parent:t,mathstyle:e.command.slice(1)},e.style),i=Tr.createBox(r,e.body,{type:"lift"});return e.caret&&(i.caret=e.caret),e.bind(t,i)},serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{${co([e.command,e.bodyToLatex(t)])}}`}),ge(["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]})}),ge("fontseries","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontSeries:(r=t[0])!=null?r:"auto"}}}),ge("fontshape","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontShape:(r=t[0])!=null?r:"auto"}}}),ge("fontfamily","{:string}",{ifMode:"text",applyStyle:(e,t)=>{var r;return{fontFamily:(r=t[0])!=null?r:"roman"}}}),ge("selectfont","",{ifMode:"text",applyStyle:()=>({})}),ge("bf","{:rest}",{applyStyle:()=>({fontSeries:"b",fontShape:"n",fontFamily:"roman"})}),ge(["boldsymbol","bm"],"{:math}",{applyMode:"math",createAtom:e=>new Tr(I(m({},e),{body:et(e.args[0])})),serialize:(e,t)=>`${e.command}{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__boldsymbol"})}),ge("bold","{:math*}",{applyMode:"math",applyStyle:()=>({variantStyle:"bold"})}),ge("bfseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),ge("mdseries","{:rest}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),ge("upshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),ge("slshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),ge("scshape","{:rest}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),ge("textbf","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"b"})}),ge("textmd","{:text*}",{applyMode:"text",applyStyle:()=>({fontSeries:"m"})}),ge("textup","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n"})}),ge("textnormal","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"n",fontSeries:"m"})}),ge("textsl","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sl"})}),ge("textit","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"it"})}),ge("textsc","{:text*}",{applyMode:"text",applyStyle:()=>({fontShape:"sc"})}),ge("textrm","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"roman"})}),ge("textsf","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"sans-serif"})}),ge("texttt","{:text*}",{applyMode:"text",applyStyle:()=>({fontFamily:"monospace"})}),ge("mathbf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"bold"})}),ge("mathit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"italic"})}),ge("mathnormal","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"italic"})}),ge("mathbfit","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"main",variantStyle:"bolditalic"})}),ge("mathrm","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"normal",variantStyle:"up"})}),ge("mathsf","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"sans-serif",variantStyle:"up"})}),ge("mathtt","{:math*}",{applyMode:"math",applyStyle:()=>({variant:"monospace",variantStyle:"up"})}),ge("it","{:rest}",{applyStyle:()=>({fontSeries:"m",fontShape:"it",fontFamily:"roman",variantStyle:"italic"})}),ge("rmfamily","",{applyStyle:()=>({fontFamily:"roman"})}),ge("sffamily","",{applyStyle:()=>({fontFamily:"sans-serif"})}),ge("ttfamily","",{applyStyle:()=>({fontFamily:"monospace"})}),ge(["Bbb","mathbb"],"{:math*}",{applyStyle:()=>({variant:"double-struck",variantStyle:"up"})}),ge(["frak","mathfrak"],"{:math*}",{applyStyle:()=>({variant:"fraktur",variantStyle:"up"})}),ge("mathcal","{:math*}",{applyStyle:()=>({variant:"calligraphic",variantStyle:"up"})}),ge("mathscr","{:math*}",{applyStyle:()=>({variant:"script",variantStyle:"up"})}),ge("mbox","{:text}",{ifMode:"math",createAtom:e=>new Tr(I(m({},e),{type:"mord",body:et(e.args[0]),mode:"math"})),serialize:(e,t)=>Cs("\\mbox",e.bodyToLatex(I(m({},t),{defaultMode:"text"})))}),ge("text","{:text}",{ifMode:"math",applyMode:"text"}),ge(["class","htmlClass"],"{name:string}{content:auto}",{createAtom:e=>new Tr(I(m({},e),{body:et(e.args[1])})),serialize:(e,t)=>!e.args[0]||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`,render:(e,t)=>{var r;return e.createBox(t,{classes:(r=e.args[0])!=null?r:""})}}),ge(["cssId","htmlId"],"{id:string}{content:auto}",{createAtom:e=>new Tr(I(m({},e),{body:et(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const i=e.createBox(t);return i.cssId=(r=e.args[0])!=null?r:"",i}}),ge("htmlData","{data:string}{content:auto}",{createAtom:e=>new Tr(I(m({},e),{body:et(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`\\htmlData{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const i=e.createBox(t);return i.htmlData=(r=e.args[0])!=null?r:"",i}}),ge(["style","htmlStyle"],"{data:string}{content:auto}",{createAtom:e=>new Tr(I(m({},e),{body:et(e.args[1])})),serialize:(e,t)=>{var r;return!((r=e.args)!=null&&r[0])||t.skipStyles?e.bodyToLatex(t):`${e.command}{${e.args[0]}}{${e.bodyToLatex(t)}}`},render:(e,t)=>{var r;const i=e.createBox(t);return i.htmlStyle=(r=e.args[0])!=null?r:"",i}}),ge("em","{:rest}",{createAtom:e=>new Tr(I(m({},e),{body:et(e.args[0])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`{\\em ${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})}),ge("emph","{:auto}",{createAtom:e=>new Tr(I(m({},e),{body:et(e.args[1])})),serialize:(e,t)=>t.skipStyles?e.bodyToLatex(t):`\\emph{${e.bodyToLatex(t)}}`,render:(e,t)=>e.createBox(t,{classes:"ML__emph",boxType:"lift"})});var Ns={"\\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}};ge(["bigl","Bigl","biggl","Biggl","bigr","Bigr","biggr","Biggr","bigm","Bigm","biggm","Biggm","big","Big","bigg","Bigg"],"{:delim}",{createAtom:e=>{var t;return new Sc(I(m({},e),{delim:(t=e.args[0])!=null?t:".",size:Ns[e.command].size,delimType:Ns[e.command].mclass}))}}),ge(["hspace","hspace*"],"{width:value}",{createAtom:e=>{var t;return new nA(I(m({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),ge(["mkern","kern","mskip","hskip","mspace"],"{width:value}",{createAtom:e=>{var t;return new nA(I(m({},e),{width:(t=e.args[0])!=null?t:{dimension:0}}))}}),ge("mathchoice","{:math}{:math}{:math}{:math}",{createAtom:e=>new Tr(e),render:(e,t)=>{let r=0;const i=t.mathstyle.id;(i===gf||i===UA)&&(r=1),(i===Au||i===fs)&&(r=2),(i===Qc||i===Xl)&&(r=3);const s=et(e.args[r]);return Tr.createBox(t,s)},serialize:(e,t)=>`\\mathchoice{${Tr.serialize(e.args[0],t)}}{${Tr.serialize(e.args[1],t)}}{${Tr.serialize(e.args[2],t)}}{${Tr.serialize(e.args[3],t)}}`}),ge("mathop","{:auto}",{createAtom:e=>new Tr(I(m({},e),{type:"mop",body:et(e.args[0]),limits:"over-under",isFunction:!0,captureSelection:!0})),render:(e,t)=>{var r;let i=Tr.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 Hr(e.bind(t,i),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[Cs(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&(e.subsupPlacement==="over-under"&&r.push("\\limits"),e.subsupPlacement==="adjacent"&&r.push("\\nolimits"),e.subsupPlacement==="auto"&&r.push("\\displaylimits")),r.push(e.supsubToLatex(t)),co(r)}}),ge(["mathbin","mathrel","mathopen","mathclose","mathpunct","mathord","mathinner"],"{:auto}",{createAtom:e=>new Tr(I(m({},e),{type:{"\\mathbin":"mbin","\\mathrel":"mrel","\\mathopen":"mopen","\\mathclose":"mclose","\\mathpunct":"mpunct","\\mathord":"mord","\\mathinner":"minner"}[e.command],body:et(e.args[0])}))}),ge(["operatorname","operatorname*"],"{operator:math}",{createAtom:e=>{const t=et(e.args[0]).map(r=>{var i;return r.type!=="first"&&(r.type="mord",r.value=(i={"\u2217":"*","\u2212":"-"}[r.value])!=null?i:r.value,r.isFunction=!1,!r.style.variant&&!r.style.variantStyle&&(r.style.variant="main",r.style.variantStyle="up")),r});return new Tr(I(m({},e),{type:"mop",body:t,isFunction:!0,limits:e.command==="\\operatorname"?"adjacent":"over-under"}))},render:(e,t)=>{var r;let i=Tr.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 Hr(e.bind(t,i),{type:"op",isSelected:e.isSelected,classes:"op-group"})},serialize:(e,t)=>{const r=[Cs(e.command,e.bodyToLatex(t))];return e.explicitSubsupPlacement&&(e.subsupPlacement==="over-under"&&r.push("\\limits"),e.subsupPlacement==="adjacent"&&r.push("\\nolimits"),e.subsupPlacement==="auto"&&r.push("\\displaylimits")),r.push(e.supsubToLatex(t)),co(r)}}),ge(["char","unicode"],"{charcode:value}",{createAtom:e=>new Tr(I(m({},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)}}),ge("rule","[raise:value]{width:value}{thickness:value}",{createAtom:e=>new Tr(e),render:(e,t)=>{var r,i,s;const c=new Eo({parent:t,mathstyle:"textstyle"},e.style),u=c.toEm((r=e.args[0])!=null?r:{dimension:0}),L=c.toEm((i=e.args[1])!=null?i:{dimension:10}),z=c.toEm((s=e.args[2])!=null?s:{dimension:10}),X=new Hr(null,{classes:"rule",type:"ord"});return X.width=L,X.height=z+u,X.depth=-u,X.setStyle("border-right-width",L,"em"),X.setStyle("border-top-width",z,"em"),X.setStyle("border-color",e.style.color),X.setStyle("vertical-align",u,"em"),e.isSelected&&X.setStyle("opacity","50%"),e.bind(c,X),e.caret&&(X.caret=e.caret),X.wrap(t)},serialize:e=>`\\rule${e.args[0]?`[${kl(e.args[0])}]`:""}{${kl(e.args[1])}}{${kl(e.args[2])}}`}),ge(["overline","underline"],"{:auto}",{createAtom:e=>new Tr(I(m({},e),{body:et(e.args[0])})),render:(e,t)=>{const r=e.command.substring(1),i=new Eo({parent:t,mathstyle:"cramp"},e.style),s=Tr.createBox(i,e.body);if(!s)return null;const c=i.metrics.defaultRuleThickness/i.scalingFactor,u=new Hr(null,{classes:r+"-line"});u.height=c,u.maxFontSize=c*1.125*i.scalingFactor;let L;return r==="overline"?L=new bl({shift:0,children:[{box:s},3*c,{box:u},c]}):L=new bl({top:s.height,children:[c,{box:u},3*c,{box:s}]}),e.caret&&(L.caret=e.caret),new Hr(L,{classes:r,type:"ignore"})}}),ge("overset","{:auto}{base:auto}",{createAtom:e=>{const t=et(e.args[1]);return new pc(I(m({},e),{above:et(e.args[0]),body:t,skipBoundary:!1,boxType:Pd(t)}))},serialize:(e,t)=>Cs(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),ge("underset","{:auto}{base:auto}",{createAtom:e=>{const t=et(e.args[1]);return new pc(I(m({},e),{below:et(e.args[0]),body:t,skipBoundary:!1,boxType:Pd(t)}))},serialize:(e,t)=>Cs(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),ge("overunderset","{above:auto}{below:auto}{base:auto}",{createAtom:e=>{const t=et(e.args[2]);return new pc(I(m({},e),{above:et(e.args[0]),below:et(e.args[1]),body:t,skipBoundary:!1,boxType:Pd(t)}))},serialize:(e,t)=>Cs(e.command,e.belowToLatex(t),e.bodyToLatex(t))}),ge(["stackrel","stackbin"],"[below:auto]{above:auto}{base:auto}",{createAtom:e=>new pc(I(m({},e),{body:et(e.args[2]),above:et(e.args[1]),below:et(e.args[0]),skipBoundary:!1,boxType:e.command==="\\stackrel"?"rel":"bin"})),serialize:(e,t)=>Cs(e.command,e.aboveToLatex(t),e.bodyToLatex(t))}),ge("smash","[:string]{:auto}",{createAtom:e=>{var t,r,i,s;return new Ru(I(m({},e),{body:et(e.args[1]),smashHeight:(r=(t=e.args[0])==null?void 0:t.includes("t"))!=null?r:!0,smashDepth:(s=(i=e.args[0])==null?void 0:i.includes("b"))!=null?s:!0}))}}),ge(["vphantom"],"{:auto}",{createAtom:e=>new Ru(I(m({},e),{body:et(e.args[0]),isInvisible:!0,smashWidth:!0}))}),ge(["hphantom"],"{:auto}",{createAtom:e=>new Ru(I(m({},e),{body:et(e.args[0]),isInvisible:!0,smashHeight:!0,smashDepth:!0}))}),ge(["phantom"],"{:auto}",{createAtom:e=>new Ru(I(m({},e),{body:et(e.args[0]),isInvisible:!0}))}),ge("not","{:math}",{createAtom:e=>{const t=et(e.args[0]);return t.length===0?new Tr(I(m({},e),{type:"mrel",value:"\uE020"})):new Tr(I(m({},e),{body:[new Xc(I(m({},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{${Tr.serialize(r.group,t)}}`:`\\not${Tr.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":Pd(et(e.args[0])),s=Tr.createBox(t,e.body,{type:i});return e.caret&&(s.caret=e.caret),e.bind(t,s)}}),ge(["ne","neq"],"",{createAtom:e=>new Tr(I(m({},e),{type:"mrel",body:[new Xc(I(m({},e),{body:"\uE020",align:"right",boxType:"rel"})),new Tr(I(m({},e),{value:"="}))],captureSelection:!0})),serialize:e=>e.command}),ge("rlap","{:auto}",{createAtom:e=>new Xc(I(m({},e),{body:et(e.args[0]),align:"right"}))}),ge("llap","{:auto}",{createAtom:e=>new Xc(I(m({},e),{body:et(e.args[0]),align:"left"}))}),ge("mathrlap","{:math}",{createAtom:e=>new Xc(I(m({},e),{body:et(e.args[0]),align:"left"}))}),ge("mathllap","{:math}",{createAtom:e=>new Xc(I(m({},e),{body:et(e.args[0]),align:"left"}))}),ge("raisebox","{:value}{:text}",{createAtom:e=>{var t;return new dc(I(m({},e),{body:et(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return Cs("\\raisebox",(r=kl(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),ge("raise","{:value}{:auto}",{createAtom:e=>{var t;return new dc(I(m({},e),{body:et(e.args[1]),padding:{dimension:0},offset:(t=e.args[0])!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r;return Cs("\\raise",(r=kl(e.offset))!=null?r:"0pt",e.bodyToLatex(t))}}),ge("lower","{:value}{:auto}",{createAtom:e=>{var t;return new dc(I(m({},e),{body:et(e.args[1]),padding:{dimension:0},offset:(t=EA(e.args[0],-1))!=null?t:{dimension:0}}))},serialize:(e,t)=>{var r,i;return Cs("\\lower",(i=kl(EA((r=e.offset)!=null?r:{dimension:0},-1)))!=null?i:"0pt",e.bodyToLatex(t))}}),ee("0123456789/@.?!"),Se(65,90),Se(97,122),ee([["\\forall",8704],["\\exists",8707],["\\nexists",8708,"mord","ams"],["\\mid",8739,"mrel"],["\\top",8868],["\\bot",8869]]),ee([["\\#",35],["\\&",38],["\\parallelogram",9649],["\\spadesuit",9824],["\\heartsuit",9825],["\\diamondsuit",9826],["\\clubsuit",9827],["\\flat",9837],["\\natural",9838],["\\sharp",9839]]),ee([["\\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]]),ee([["\\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"),ee([["\\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"]]),ee([["\\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"]]),ee([["\\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"),ee([["+",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"),ee([["\\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"),ee([["\\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]]),ee([["=",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"),ee([["\\lnot",172],["\\neg",172],["\\triangle",9651],["\\subsetneq",8842],["\\varsubsetneq",57370],["\\subsetneqq",10955],["\\varsubsetneqq",57367],["\\nsubset",8836],["\\nsupset",8837],["\\nsubseteq",8840],["\\nsupseteq",8841]],"mrel","ams"),ee([["\\wp",8472],["\\aleph",8501]]),ee([["\\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"),ee([["\\ ",160],["~",160]],"space"),ge(["!",",",":",";",">","enskip","enspace","quad","qquad"],"",{createAtom:e=>new nA(e)}),ge("space","",{createAtom:e=>new nA(e)}),ee([["\\colon",58],["\\cdotp",8901],["\\vdots",8942,"mord"],["\\ldotp",46],[",",44],[";",59]],"mpunct"),ee([["\\cdots",8943],["\\ddots",8945],["\\ldots",8230],["\\mathellipsis",8230]],"minner"),ee([["\\/",47],["|",8739,"mord"],["\\imath",305],["\\jmath",567],["\\degree",176],["'",8242],['"',8221]]);var Tl="<mo>⁡</mo>",tc="<mo>⁢</mo>";function zs(e){return e.replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function Ga(e,t){return!e||!t.generateID?"":` extid="${e}"`}function Ic(e,t,r){var i,s,c,u,L,z,X,ce,Te,nt,vt;let St=!1;t=t!=null?t:e.atoms.length;let xr="",Sn="",vr=e.atoms[e.index];const nn=(s=(i=vr.style)==null?void 0:i.variant)!=null?s:"",Ln=(u=(c=vr.style)==null?void 0:c.variantStyle)!=null?u:"";let un="";if(nn||Ln){const Yi=rt(vr.value,(L=vr.style)==null?void 0:L.variant,(z=vr.style)==null?void 0:z.variantStyle);if(Yi!==vr.value)return e.index+=1,xr=`<mi${Ga(vr.id,r)}>${Yi}</mi>`,kA(xr,e,r)||(e.mathML+=xr,e.lastType="mi"),!0;un=(X={upnormal:"normal",boldnormal:"bold",italicmain:"italic",bolditalicmain:"bold-italic","updouble-struck":"double-struck","double-struck":"double-struck",boldfraktur:"bold-fraktur",calligraphic:"script",upcalligraphic:"script",script:"script",boldscript:"bold-script",boldcalligraphic:"bold-script",fraktur:"fraktur","upsans-serif":"sans-serif","boldsans-serif":"bold-sans-serif","italicsans-serif":"sans-serif-italic","bolditalicsans-serif":"sans-serif-bold-italic",monospace:"monospace"}[Ln+nn])!=null?X:"",un=` mathvariant="${un}"`}const Ci={"\\exponentialE":"ⅇ","\\imaginaryI":"ⅈ","\\differentialD":"ⅆ","\\capitalDifferentialD":"ⅅ","\\alpha":"α","\\pi":"π","\\infty":"∞","\\forall":"∀","\\nexists":"∄","\\exists":"∃","\\hbar":"\u210F","\\cdotp":"\u22C5","\\ldots":"\u2026","\\cdots":"\u22EF","\\ddots":"\u22F1","\\vdots":"\u22EE","\\ldotp":"."};if(vr.command==="!")return e.index+=1,xr="<mo>!</mo>",kA(xr,e,r)||(e.mathML+=xr,e.lastType="mo"),!0;if(Ci[vr.command]){e.index+=1;let Yi=`<mi${Ga(vr.id,r)}${un}>${Ci[vr.command]}</mi>`;return(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mtext"||e.lastType==="fence")&&(Yi=tc+Yi),kA(Yi,e,r)||(e.mathML+=Yi,e.lastType="mi"),!0}if(vr.command==="\\operatorname")Sn=Cu(vr.body),e.index+=1;else if(nn||Ln)for(;e.index<t&&(vr.type==="mord"||vr.type==="macro")&&!vr.isDigit()&&nn===((Te=(ce=vr.style)==null?void 0:ce.variant)!=null?Te:"")&&Ln===((vt=(nt=vr.style)==null?void 0:nt.variantStyle)!=null?vt:"");)Sn+=Cu([vr]),e.index+=1,vr=e.atoms[e.index];else(vr.type==="mord"||vr.type==="macro")&&!vr.isDigit()&&(Sn+=Cu([vr]),e.index+=1);if(Sn.length>0){St=!0,xr=`<mi${un}>${Sn}</mi>`;const Yi=e.lastType;xr.endsWith(">f</mi>")||xr.endsWith(">g</mi>")?(xr+=Tl,e.lastType="applyfunction"):e.lastType=/^<mo>(.*)<\/mo>$/.test(xr)?"mo":"mi",kA(xr,e,r)||((Yi==="mi"||Yi==="mn"||Yi==="mtext"||Yi==="fence")&&(xr=tc+xr),e.mathML+=xr)}return St}function AA(e){return e.index<e.atoms.length&&e.atoms[e.index].superscript&&e.atoms[e.index].type==="subsup"}function kf(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 kA(e,t,r){var i;let s=t.atoms[t.index-1];if(!s)return!1;if(!s.superscript&&!s.subscript)if(((i=t.atoms[t.index])==null?void 0:i.type)==="subsup")s=t.atoms[t.index],t.index+=1;else return!1;const c=t.lastType;t.lastType="";const u=To(s.superscript,r);t.lastType="";const L=To(s.subscript,r);if(t.lastType=c,!u&&!L)return!1;let z="";return u&&L?z=`<msubsup>${e}${L}${u}</msubsup>`:u?z=`<msup>${e}${u}</msup>`:L&&(z=`<msub>${e}${L}</msub>`),t.mathML+=z,t.lastType="",!0}function ng(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 ${Ga(e.atoms[i].id,r)}>${s}</mtext>`,e.lastType="mtext",!0):!1}function vm(e,t,r){t=t!=null?t:e.atoms.length;const i=e.index;let s="",c=kf(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"+Ga(e.atoms[i].id,r)+">"+s+"</mn>",c<0&&AA(e)&&(c=e.index,e.index+=1),kA(s,e,r)||(e.mathML+=s,e.lastType="mn"),!0)}function n0(e,t,r){let i=!1;t=t!=null?t:e.atoms.length;let s="",c="";if(e.index<t&&e.atoms[e.index].type==="mopen"){let u=!1,L=0;const z=e.index;let X=-1,ce=z+1;for(;ce<t&&!u;)e.atoms[ce].type==="mopen"?L+=1:e.atoms[ce].type==="mclose"&&(L-=1),L===-1&&(u=!0,X=ce),ce+=1;u&&(s="<mrow>",s+=$u(e.atoms[z],r),s+=To(e.atoms,r,z+1,X),s+=$u(e.atoms[X],r),s+="</mrow>",e.index=X+1,(e.lastType==="mi"||e.lastType==="mn"||e.lastType==="mfrac"||e.lastType==="fence")&&(e.mathML+=tc),kA(s,e,r)&&(i=!0,e.lastType="",s=""),c="fence")}return s.length>0&&(i=!0,e.mathML+=s,e.lastType=c),i}function yd(e,t,r){let i=!1;t=t!=null?t:e.atoms.length;let s="",c="";const u=e.atoms[e.index];if(!u)return!1;const L={"\\ne":"≠","\\neq":"&neq;","\\pm":"±","\\times":"×","\\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(L[u.command]){e.index+=1;const z=`<mo${Ga(u.id,r)}>${L[u.command]}</mo>`;return kA(z,e,r)||(e.mathML+=z,e.lastType="mo"),!0}if(e.index<t&&(u.type==="mbin"||u.type==="mrel"))s+=Fc(e.atoms[e.index],r),e.index+=1,c="mo";else if(e.index<t&&(u.type==="mop"||u.type==="operator"||u.type==="extensible-symbol")){if(u.subsupPlacement==="over-under"&&(u.superscript||u.subscript)){const z=$u(u,r);return u.superscript&&u.subscript?(s+="<munderover>"+z,s+=To(u.subscript,r),s+=To(u.superscript,r),s+="</munderover>"):u.superscript?(s+="<mover>"+z,s+=To(u.superscript,r),s+="</mover>"):u.subscript&&(s+="<munder>"+z,s+=To(u.subscript,r),s+="</munder>"),e.mathML+=s,e.lastType="mo",e.index+=1,!0}{const z=e.atoms[e.index],X=z.value==="\\operatorname",ce=X?'<mi class="MathML-Unit"'+Ga(z.id,r)+">"+Cu(z.value)+"</mi>":$u(z,r);s+=ce,!X&&!/^<mo>(.*)<\/mo>$/.test(ce)?(s+=Tl,c="applyfunction"):c=X?"mi":"mo"}(e.lastType==="mi"||e.lastType==="mn")&&!/^<mo>(.*)<\/mo>$/.test(s)&&(s=tc+s),e.index+=1}return s.length>0&&(i=!0,kA(s,e,r)||(e.mathML+=s,e.lastType=c)),i}function To(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 Tr)s.mathML=Fc(e,t);else if(Array.isArray(e)){s.atoms=e;let c=0;for(i=i||(e?e.length:0);s.index<i;)if(ng(s,i,t)||vm(s,i,t)||Ic(s,i,t)||yd(s,i,t)||n0(s,i,t))c+=1;else if(s.index<i){let u=Fc(s.atoms[s.index],t);s.lastType==="mn"&&u.length>0&&s.atoms[s.index].type==="genfrac"&&(u="<mo>⁤</mo>"+u),s.atoms[s.index].type==="genfrac"?s.lastType="mfrac":s.lastType="",s.index+=1,kA(u,s,t)?c+=1:u.length>0&&(s.mathML+=u,c+=1)}c>1&&(s.mathML="<mrow>"+s.mathML+"</mrow>")}return s.mathML}function $u(e,t){let r="";const i=Cu(e.value);return i&&(r="<mo"+Ga(e.id,t)+">"+i+"</mo>"),r}function Cu(e){if(!e)return"";if(typeof e=="string")return zs(e);if(!Array.isArray(e)&&typeof e.body=="string")return zs(e.body);let t="";for(const r of e)typeof r.value=="string"&&(t+=r.value);return zs(t)}function Fc(e,t){var r,i,s,c,u,L,z,X,ce,Te,nt,vt,St,xr,Sn,vr,nn,Ln,un,Ci,Yi,Pi;if(e.mode==="text")return`<mi${Ga(e.id,t)}>${e.value}</mi>`;const h={widehat:"^",widecheck:"\u02C7",widetilde:"~",utilde:"~",overleftarrow:"\u2190",underleftarrow:"\u2190",xleftarrow:"\u2190",longleftarrow:"\u2190",overrightarrow:"\u2192",underrightarrow:"\u2192",xrightarrow:"\u2192",longrightarrow:"\u2192",underbrace:"\u23DF",overbrace:"\u23DE",overgroup:"\u23E0",undergroup:"\u23E1",overleftrightarrow:"\u2194",underleftrightarrow:"\u2194",xleftrightarrow:"\u2194",Overrightarrow:"\u21D2",xRightarrow:"\u21D2",overleftharpoon:"\u21BC",xleftharpoonup:"\u21BC",overrightharpoon:"\u21C0",xrightharpoonup:"\u21C0",xLeftarrow:"\u21D0",xLeftrightarrow:"\u21D4",xhookleftarrow:"\u21A9",xhookrightarrow:"\u21AA",xmapsto:"\u21A6",xrightharpoondown:"\u21C1",xleftharpoondown:"\u21BD",xrightleftharpoons:"\u21CC",longrightleftharpoons:"\u21CC",xleftrightharpoons:"\u21CB",xtwoheadleftarrow:"\u219E",xtwoheadrightarrow:"\u21A0",xlongequal:"=",xtofrom:"\u21C4",xleftrightarrows:"\u21C4",xRightleftharpoons:"\u21CC",longRightleftharpoons:"\u21CC",xLeftrightharpoons:"\u21CB",longLeftrightharpoons:"\u21CB"},B={"\\!":-3/18,"\\ ":6/18,"\\,":3/18,"\\:":4/18,"\\>":4/18,"\\;":5/18,"\\enspace":.5,"\\quad":1,"\\qquad":2,"\\enskip":.5};let K="",pe="",Ke,Ze,Ge,at,ut,ft;const{command:jt}=e;if(e.command==="\\error")return`<merror${Ga(e.id,t)}>${To(e.body,t)}</merror>`;const mr={"\\vert":"|","\\Vert":"\u2225","\\mid":"\u2223","\\lbrack":"[","\\rbrack":"]","\\{":"{","\\}":"}","\\lbrace":"{","\\rbrace":"}","\\lparen":"(","\\rparen":")","\\langle":"\u27E8","\\rangle":"\u27E9","\\lfloor":"\u230A","\\rfloor":"\u230B","\\lceil":"\u2308","\\rceil":"\u2309"},wt={"\\vec":"⃗","\\acute":"´","\\grave":"`","\\dot":"˙","\\ddot":"¨","\\tilde":"~","\\bar":"¯","\\breve":"˘","\\check":"ˇ","\\hat":"^"};switch(e.type){case"first":break;case"group":case"root":K=To(e.body,t);break;case"array":if((e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(K+="<mrow>",e.leftDelim&&e.leftDelim!=="."&&(K+="<mo>"+(mr[e.leftDelim]||e.leftDelim)+"</mo>")),K+="<mtable",e.colFormat){for(K+=' columnalign="',Ge=0;Ge<e.colFormat.length;Ge++)e.colFormat[Ge].align&&(K+={l:"left",c:"center",r:"right"}[e.colFormat[Ge].align]+" ");K+='"'}for(K+=">",Ze=0;Ze<e.array.length;Ze++){for(K+="<mtr>",Ke=0;Ke<e.array[Ze].length;Ke++)K+="<mtd>"+To(e.array[Ze][Ke],t)+"</mtd>";K+="</mtr>"}K+="</mtable>",(e.leftDelim&&e.leftDelim!=="."||e.rightDelim&&e.rightDelim!==".")&&(e.rightDelim&&e.rightDelim!=="."&&(K+="<mo>"+(mr[e.leftDelim]||e.rightDelim)+"</mo>"),K+="</mrow>");break;case"genfrac":(e.leftDelim||e.rightDelim)&&(K+="<mrow>"),e.leftDelim&&e.leftDelim!=="."&&(K+="<mo"+Ga(e.id,t)+">"+(mr[e.leftDelim]||e.leftDelim)+"</mo>"),e.hasBarLine?(K+="<mfrac>",K+=To(e.above,t)||"<mi> </mi>",K+=To(e.below,t)||"<mi> </mi>",K+="</mfrac>"):(K+="<mtable"+Ga(e.id,t)+">",K+="<mtr>"+To(e.above,t)+"</mtr>",K+="<mtr>"+To(e.below,t)+"</mtr>",K+="</mtable>"),e.rightDelim&&e.rightDelim!=="."&&(K+="<mo"+Ga(e.id,t)+">"+(mr[e.rightDelim]||e.rightDelim)+"</mo>"),(e.leftDelim||e.rightDelim)&&(K+="</mrow>");break;case"surd":e.hasEmptyBranch("above")?(K+="<msqrt"+Ga(e.id,t)+">",K+=To(e.body,t),K+="</msqrt>"):(K+="<mroot"+Ga(e.id,t)+">",K+=To(e.body,t),K+=To(e.above,t),K+="</mroot>");break;case"leftright":const rr=e,pr=rr.leftDelim;K="<mrow>",pr&&pr!=="."&&(K+=`<mo${Ga(e.id,t)}>${(r=mr[pr])!=null?r:pr}</mo>`),e.body&&(K+=To(e.body,t));const Wr=rr.matchingRightDelim();Wr&&Wr!=="."&&(K+=`<mo${Ga(e.id,t)}>${(i=mr[Wr])!=null?i:Wr}</mo>`),K+="</mrow>";break;case"sizeddelim":case"delim":K+=`<mo${Ga(e.id,t)}>${mr[e.value]||e.value}</mo>`;break;case"accent":K+='<mover accent="true"'+Ga(e.id,t)+">",K+=To(e.body,t),K+="<mo>"+(wt[jt]||e.accent)+"</mo>",K+="</mover>";break;case"line":case"overlap":break;case"overunder":ut=e.above,at=e.below,(e.svgAbove||ut)&&(e.svgBelow||at)?ft=e.body:ut&&ut.length>0?(ft=e.body,(c=(s=e.body)==null?void 0:s[0])!=null&&c.below?(at=e.body[0].below,ft=e.body[0].body):((L=(u=e.body)==null?void 0:u[0])==null?void 0:L.type)==="first"&&((X=(z=e.body)==null?void 0:z[1])!=null&&X.below)&&(at=e.body[1].below,ft=e.body[1].body)):at&&at.length>0&&(ft=e.body,(Te=(ce=e.body)==null?void 0:ce[0])!=null&&Te.above?(ut=e.body[0].above,ft=e.body[0].body):((vt=(nt=e.body)==null?void 0:nt[0])==null?void 0:vt.type)==="first"&&((xr=(St=e.body)==null?void 0:St[1])!=null&&xr.above)&&(ut=e.body[1].overscript,ft=e.body[1].body)),(e.svgAbove||ut)&&(e.svgBelow||at)?(K+=`<munderover ${Ga(e.id,t)}>`,K+=(Sn=h[e.svgBody])!=null?Sn:To(ft,t),K+=(vr=h[e.svgBelow])!=null?vr:To(at,t),K+=(nn=h[e.svgAbove])!=null?nn:To(ut,t),K+="</munderover>"):e.svgAbove||ut?(K+=`<mover ${Ga(e.id,t)}>`+((Ln=h[e.svgBody])!=null?Ln:To(ft,t)),K+=(un=h[e.svgAbove])!=null?un:To(ut,t),K+="</mover>"):(e.svgBelow||at)&&(K+=`<munder ${Ga(e.id,t)}>`+((Ci=h[e.svgBody])!=null?Ci:To(ft,t)),K+=(Yi=h[e.svgBelow])!=null?Yi:To(at,t),K+="</munder>");break;case"placeholder":K+="?";break;case"mord":{K=typeof e.value=="string"?e.value:jt,jt==="\\char"?K="&#x"+("000000"+e.args[0].number.toString(16)).slice(-4)+";":K.length>0&&K.startsWith("\\")&&(typeof e.value=="string"&&e.value.charCodeAt(0)>255?K="&#x"+("000000"+e.value.charCodeAt(0).toString(16)).slice(-4)+";":typeof e.value=="string"?K=e.value.charAt(0):(console.error("Did not expect this"),K=""));const Cr=/\d/.test(K)?"mn":"mi";K=`<${Cr}${Ga(e.id,t)}>${zs(K)}</${Cr}>`;break}case"mbin":case"mrel":case"minner":K=$u(e,t);break;case"mpunct":K='<mo separator="true"'+Ga(e.id,t)+">"+jt+"</mo>";break;case"mop":case"operator":case"extensible-symbol":e.body!=="\u200B"&&(K="<mo"+Ga(e.id,t)+">",K+=jt==="\\operatorname"?e.body:jt||e.body,K+="</mo>");break;case"box":K='<menclose notation="box"',e.backgroundcolor&&(K+=' mathbackground="'+e.backgroundcolor+'"'),K+=Ga(e.id,t)+">"+To(e.body,t)+"</menclose>";break;case"spacing":K+='<mspace width="'+((Pi=B[jt])!=null?Pi:0)+'em"/>';break;case"enclose":K='<menclose notation="';for(const Cr in e.notation)Object.prototype.hasOwnProperty.call(e.notation,Cr)&&e.notation[Cr]&&(K+=pe+Cr,pe=" ");K+=Ga(e.id,t)+'">'+To(e.body,t)+"</menclose>";break;case"prompt":K='<menclose notation="roundexbox""">'+To(e.body,t)+"</menclose>";break;case"space":K+=" ";break;case"subsup":break;case"phantom":break;case"composition":break;case"rule":break;case"chem":break;case"mopen":K+=$u(e,t);break;case"mclose":K+=$u(e,t);break;case"macro":{const Cr=e.command+Cu(e.macroArgs);Cr&&(K+=`<mo ${Ga(e.id,t)}>${Cr}</mo>`)}break;case"latexgroup":K+=To(e.body,t);break;case"latex":K+="<mtext"+Ga(e.id,t)+">"+e.value+"</mtext>";break;case"tooltip":K+=To(e.body,t);break;case"text":K+=`<mtext ${Ga(e.id,t)}x>${e.value}</mtext>`;break;default:if(e.command==="\\displaystyle")return`<mrow ${Ga(e.id,t)} displaystyle="true">${To(e.body,t)}</mrow>`;if(e.command==="\\textstyle")return`<mrow ${Ga(e.id,t)} displaystyle="false">${To(e.body,t)}</mrow>`;console.info("Unexpected element in conversion to MathML:",e)}return K}var ru={"\\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"},wd={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 Y0(e){let t="";return e.startsWith("\\")&&(t=" "+e.replace("\\","")+" "),t}function Df(e){let t=0;if(_(e))for(const r of e)r.type!=="first"&&(t+=1);return t===1}function QA(e){if(_(e)){for(const t of e)if(t.type!=="first"&&t.id)return t.id.toString()}return""}function Np(e){let t="";if(_(e))for(const r of e)r.type!=="first"&&typeof r.value=="string"&&(t+=r.value);return t}function q0(e){return e?e.map(t=>t.value).join(""):""}function ao(e,t){var r,i,s,c,u;function L(ce){return window.MathfieldElement.textToSpeechMarkup?/[a-z]/.test(ce)?` <say-as interpret-as="character">${ce}</say-as>`:/[A-Z]/.test(ce)?`capital <say-as interpret-as="character">${ce.toLowerCase()}</say-as>`:ce:/[a-z]/.test(ce)?" '"+ce.toUpperCase()+"'":/[A-Z]/.test(ce)?" 'capital "+ce.toUpperCase()+"'":ce}function z(ce){return"<emphasis>"+ce+"</emphasis>"}if(!t)return"";let X="";if(_(t)){let ce=!1,Te=!1;for(let nt=0;nt<t.length;nt++)t[nt].type!=="first"&&(t[nt].mode!=="text"&&(Te=!1),nt<t.length-2&&t[nt].type==="mopen"&&t[nt+2].type==="mclose"&&t[nt+1].type==="mord"?(X+=" of ",X+=z(ao(e,t[nt+1])),nt+=2):t[nt].mode==="text"?Te?X+=(r=t[nt].value)!=null?r:" ":(Te=!0,X+=ao("text",t[nt])):t[nt].isDigit()?ce?X+=t[nt].asDigit():(ce=!0,X+=ao(e,t[nt])):(ce=!1,X+=ao(e,t[nt])))}else if(t.mode==="text")t.id&&e==="math"&&(X+='<mark name="'+t.id.toString()+'"/>'),X+=t.value;else{t.id&&e==="math"&&(X+='<mark name="'+t.id.toString()+'"/>');let ce="",Te="",nt="",vt=!1;const{command:St}=t;switch(St){case"\\vec":return"vector "+ao(e,t.body);case"\\acute":return ao(e,t.body)+" acute";case"\\grave":return ao(e,t.body)+" grave";case"\\dot":return"dot over"+ao(e,t.body);case"\\ddot":return"double dot over"+ao(e,t.body);case"\\mathring":return"ring over"+ao(e,t.body);case"\\tilde":case"\\widetilde":return"tilde over"+ao(e,t.body);case"\\bar":return ao(e,t.body)+" bar";case"\\breve":return ao(e,t.body)+" breve";case"\\check":case"\\widecheck":return"check over "+ao(e,t.body);case"\\hat":case"\\widehat":return"hat over"+ao(e,t.body);case"\\overarc":case"\\overparen":case"\\wideparen":return"arc over "+ao(e,t.body);case"\\underarc":case"\\underparen":return"arc under "+ao(e,t.body)}switch(t.type){case"prompt":const xr=t.body.length>1?'start input . <break time="500ms"/> '+ao(e,t.body)+'. <break time="500ms"/> end input':"blank";X+=' <break time="300ms"/> '+xr+'. <break time="700ms"/>'+((i=t.correctness)!=null?i:"")+' . <break time="700ms"/> ';break;case"array":const Sn=t.array,vr=t.environmentName;if(Object.keys(wd).includes(vr)){X+=` begin ${wd[vr]} `;for(let un=0;un<Sn.length;un++){un>0&&(X+=","),X+=` row ${un+1} `;for(let Ci=0;Ci<Sn[un].length;Ci++)Ci>0&&(X+=","),X+=` column ${Ci+1}: `,X+=ao("math",Sn[un][Ci])}X+=` end ${wd[vr]} `}break;case"group":St==="\\ne"?X+=" not equal ":(St==="\\not"&&(X+=" not "),X+=ao("math",t.body));break;case"root":X+=ao("math",t.body);break;case"genfrac":if(ce=ao("math",t.above),Te=ao("math",t.below),Df(t.above)&&Df(t.below)){const Ci={"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 "}[Np(t.above)+"/"+Np(t.below)];Ci?X=Ci:X+=ce+" over "+Te}else X+=' the fraction <break time="150ms"/>'+ce+' over <break time="150ms"/>'+Te+'.<break time="150ms"/> End fraction.<break time="150ms"/>';break;case"surd":if(nt=ao("math",t.body),t.hasEmptyBranch("above"))X+=Df(t.body)?" the square root of "+nt+" , ":' the square root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End square root';else{let un=ao("math",t.above);un=un.trim();const Ci=un.replace(/<mark([^/]*)\/>/g,"");Ci==="3"?X+=' the cube root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End cube root':Ci==="n"?X+=' the nth root of <break time="200ms"/>'+nt+'. <break time="200ms"/> End root':X+=' the root with index: <break time="200ms"/>'+un+', of <break time="200ms"/>'+nt+'. <break time="200ms"/> End root'}break;case"leftright":{const un=t;X+=(s=un.leftDelim?ru[un.leftDelim]:void 0)!=null?s:un.leftDelim,X+=ao("math",t.body),X+=(c=un.rightDelim?ru[un.rightDelim]:void 0)!=null?c:un.rightDelim}break;case"rule":break;case"overunder":break;case"overlap":break;case"macro":const nn=St.replace(/^\\/g,""),Ln=ze()[nn];Ln&&(Ln!=null&&Ln.expand?X+=ao("math",t.body):X+=`${nn} `);break;case"placeholder":X+="placeholder ";break;case"delim":case"sizeddelim":case"mord":case"minner":case"mbin":case"mrel":case"mpunct":case"mopen":case"mclose":{if(St==="\\mathbin"||St==="\\mathrel"||St==="\\mathopen"||St==="\\mathclose"||St==="\\mathpunct"||St==="\\mathord"||St==="\\mathinner"){X=ao(e,t.body);break}let un=t.isDigit()?t.asDigit():t.value,Ci=t.command;if((t.type==="delim"||t.type==="sizeddelim")&&(Ci=t.value,un=Ci),e==="text")X+=un;else{if(t.type==="mbin"&&(X+='<break time="150ms"/>'),un){const Yi=ru[un]||(Ci?ru[Ci.trim()]:"");if(Yi)X+=" "+Yi;else{const Pi=Ci?Y0(Ci.trim()):"";X+=Pi||L(un)}}else X+=ao("math",t.body);t.type==="mbin"&&(X+='<break time="150ms"/>')}break}case"mop":case"operator":case"extensible-symbol":if(t.value!=="\u200B"){const un=t.command;if(un==="\\sum")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Ci=ao("math",t.superscript);Ci=Ci.trim();let Yi=ao("math",t.subscript);Yi=Yi.trim(),X+=' the summation from <break time="200ms"/>'+Yi+'<break time="200ms"/> to <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',vt=!0}else if(t.hasEmptyBranch("subscript"))X+=" the summation of";else{let Ci=ao("math",t.subscript);Ci=Ci.trim(),X+=' the summation from <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',vt=!0}else if(un==="\\prod")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Ci=ao("math",t.superscript);Ci=Ci.trim();let Yi=ao("math",t.subscript);Yi=Yi.trim(),X+=' the product from <break time="200ms"/>'+Yi+'<break time="200ms"/> to <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',vt=!0}else if(t.hasEmptyBranch("subscript"))X+=" the product of ";else{let Ci=ao("math",t.subscript);Ci=Ci.trim(),X+=' the product from <break time="200ms"/>'+Ci+'<break time="200ms"/> of <break time="150ms"/>',vt=!0}else if(un==="\\int")if(!t.hasEmptyBranch("superscript")&&!t.hasEmptyBranch("subscript")){let Ci=ao("math",t.superscript);Ci=Ci.trim();let Yi=ao("math",t.subscript);Yi=Yi.trim(),X+=' the integral from <break time="200ms"/>'+z(Yi)+'<break time="200ms"/> to <break time="200ms"/>'+z(Ci)+' <break time="200ms"/> of ',vt=!0}else X+=' the integral of <break time="200ms"/> ';else if(typeof t.value=="string"){const Ci=(u=ru[t.value])!=null?u:t.command?ru[t.command]:void 0;X+=Ci||" "+t.value}else t.command&&(t.command==="\\mathop"?X+=ao("math",t.body):t.command==="\\operatorname"?X+=q0(t.body):X+=t.command.startsWith("\\")?" "+t.command.slice(1):" "+t.command)}break;case"enclose":nt=ao("math",t.body),X+=" crossed out "+nt+". End crossed out.";break;case"space":case"spacing":break}if(!vt&&!t.hasEmptyBranch("superscript")){let xr=ao(e,t.superscript);xr=xr.trim();const Sn=xr.replace(/<[^>]*>/g,"");if(Df(t.superscript)){if(e==="math"){const vr=QA(t.superscript);vr&&(X+='<mark name="'+vr+'"/>')}Sn==="\u2032"?X+=" prime ":Sn==="2"?X+=" squared ":Sn==="3"?X+=" cubed ":Number.isNaN(Number.parseInt(Sn))?X+=" to the "+xr+"; ":X+=' to the <say-as interpret-as="ordinal">'+Sn+"</say-as> power; "}else Number.isNaN(Number.parseInt(Sn))?X+=" raised to the "+xr+"; ":X+=' raised to the <say-as interpret-as="ordinal">'+Sn+"</say-as> power; "}if(!vt&&!t.hasEmptyBranch("subscript")){let xr=ao("math",t.subscript);xr=xr.trim(),X+=Df(t.subscript)?" sub "+xr:" subscript "+xr+". End subscript. "}}return X}function Ul(e){var t,r;if(window.MathfieldElement.textToSpeechRules==="sre"&&("sre"in window||"SRE"in window)){const s=To(e);if(s){window.MathfieldElement.textToSpeechMarkup&&(window.MathfieldElement.textToSpeechRulesOptions=(t=window.MathfieldElement.textToSpeechRulesOptions)!=null?t:{},window.MathfieldElement.textToSpeechRulesOptions=I(m({},window.MathfieldElement.textToSpeechRulesOptions),{markup:window.MathfieldElement.textToSpeechMarkup}),window.MathfieldElement.textToSpeechRulesOptions.markup==="ssml"&&(window.MathfieldElement.textToSpeechRulesOptions=I(m({},window.MathfieldElement.textToSpeechRulesOptions),{markup:"ssml_step"})),window.MathfieldElement.textToSpeechRulesOptions=I(m({},window.MathfieldElement.textToSpeechRulesOptions),{rate:window.MathfieldElement.speechEngineRate}));const c=(r=window.SRE)!=null?r:window.sre.System.getInstance();window.MathfieldElement.textToSpeechRulesOptions&&c.setupEngine(window.MathfieldElement.textToSpeechRulesOptions);let u="";try{u=c.toSpeech(s)}catch(L){console.error("MathLive 0.98.5: `SRE.toSpeech()` runtime error",L)}return u}return""}let i=ao("math",e);if(window.MathfieldElement.textToSpeechMarkup==="ssml"){let s="";window.MathfieldElement.speechEngineRate&&(s='<prosody rate="'+window.MathfieldElement.speechEngineRate+'">'),i='<?xml version="1.0"?><speak version="1.1" xmlns="http://www.w3.org/2001/10/synthesis" xml:lang="en-US"><amazon:auto-breaths>'+s+"<p><s>"+i+"</s></p>"+(s?"</prosody>":"")+"</amazon:auto-breaths></speak>"}else window.MathfieldElement.textToSpeechMarkup==="mac"&&Y()==="macos"?i=i.replace(/<mark([^/]*)\/>/g,"").replace(/<emphasis>/g,"[[emph+]]").replace(/<\/emphasis>/g,"").replace(/<break time="(\d*)ms"\/>/g,"[[slc $1]]").replace(/<say-as[^>]*>/g,"").replace(/<\/say-as>/g,""):i=i.replace(/<[^>]*>/g,"").replace(/\s{2,}/g," ");return i}var DA={"\\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 Op(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 $s(e){var t,r,i,s,c,u,L,z,X,ce,Te,nt,vt;if(!e)return"";if(_(e)){if(e.length===0)return"";if(e[0].mode==="latex")return e.map($s).join("");if(e[0].mode==="text"){let Ln=0,un="";for(;((t=e[Ln])==null?void 0:t.mode)==="text";)un+=e[Ln].body?$s(e[Ln].body):e[Ln].value,Ln++;return`"${un}" ${$s(e.slice(Ln))}`}let vr=0;const nn=[];for(;e[vr]&&e[vr].mode==="math";){let Ln="";for(;e[vr]&&e[vr].type==="mord"&&/\d/.test(e[vr].value);)Ln+=e[vr++].value;Ln?nn.push(Ln):nn.push($s(e[vr++]))}return nn.push($s(e.slice(vr))),Op(nn)}if(e.mode==="text")return`"${e.value}"`;let St="";const{command:xr}=e;let Sn;if(xr==="\\placeholder")return`(${$s(e.body)})`;switch(e.type){case"accent":const vr={"\\vec":"vec","\\dot":"dot","\\ddot":"ddot","\\bar":"bar","\\hat":"hat","\\acute":"acute;","\\grave":"grave","\\tilde":"tilde","\\breve":"breave","\\check":"check"}[xr];St=`${vr!=null?vr:""} ${$s(e.body)} `;break;case"first":return"";case"latexgroup":return e.body.map(Pi=>Pi.value).join("");case"group":case"root":St=(r=DA[xr])!=null?r:$s(e.body);break;case"genfrac":{const Pi=e;(Pi.leftDelim||Pi.rightDelim)&&(St=Pi.leftDelim==="."||!Pi.leftDelim?"{:":Pi.leftDelim),Pi.hasBarLine?(St+="(",St+=$s(Pi.above),St+=")/(",St+=$s(Pi.below),St+=")"):(St+="("+$s(Pi.above)+"),",St+="("+$s(Pi.below)+")"),(Pi.leftDelim||Pi.rightDelim)&&(St+=Pi.rightDelim==="."||!Pi.rightDelim?"{:":Pi.rightDelim)}break;case"surd":St+=e.hasEmptyBranch("above")?"sqrt("+$s(e.body)+")":"root("+$s(e.above)+")("+$s(e.body)+")";break;case"latex":St=e.value;break;case"leftright":{const Pi=e,h=Pi.leftDelim;St+=h==="."||!h?"{:":h,St+=$s(Pi.body);const B=Pi.matchingRightDelim();St+=B==="."||!B?":}":B}break;case"sizeddelim":case"delim":St=e.value;break;case"overlap":break;case"overunder":break;case"mord":St=(s=(i=DA[xr])!=null?i:xr)!=null?s:typeof e.value=="string"?e.value:"",St.startsWith("\\")&&(St+=" "),Sn=xr?xr.match(/{?\\char"([\dabcdefABCDEF]+)}?/):null,Sn?St=String.fromCodePoint(Number.parseInt("0x"+Sn[1])):St.length>0&&St.startsWith("\\")&&(St=typeof e.value=="string"?e.value.charAt(0):e.command),St=ep(St,e.style);break;case"mbin":case"mrel":case"minner":St=(u=(c=DA[xr])!=null?c:Nf[xr])!=null?u:e.value;break;case"mopen":case"mclose":St=e.value;break;case"mpunct":St=(L=Nf[xr])!=null?L:xr;break;case"mop":case"operator":case"extensible-symbol":e.value!=="\u200B"&&(Nf[xr]?St=Nf[xr]:St=xr==="\\operatorname"?$s(e.body):(z=e.value)!=null?z:xr,St+=" ");break;case"array":const nn=e.array,Ln=e.environmentName,un=(X={bmatrix:["[","]"],"bmatrix*":["[","]"]}[Ln])!=null?X:["(",")"],Ci=[];for(const Pi of nn){const h=[];for(const B of Pi)h.push(un[0]+$s(B)+un[1]);Ci.push(h.join(","))}const Yi=(ce={bmatrix:["[","]"],"bmatrix*":["[","]"],cases:["{",":}"]}[Ln])!=null?ce:["(",")"];St=Yi[0]+Ci.join(",")+Yi[1];break;case"box":break;case"spacing":St=(Te=DA[xr])!=null?Te:" ";break;case"enclose":St="("+$s(e.body)+")";break;case"space":St=" ";break;case"subsup":St="";break;case"macro":St=(vt=(nt=DA[xr])!=null?nt:Nf[xr])!=null?vt:$s(e.body);break}if(!e.hasEmptyBranch("subscript")){St+="_";const vr=$s(e.subscript);St+=vr.length!==1?`(${vr})`:vr}if(!e.hasEmptyBranch("superscript")){St+="^";const vr=$s(e.superscript);St+=vr.length!==1?`(${vr})`:vr}return St}function ep(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 Es(e,t){var r,i;t!=null||(t={}),t.mathstyle=(r=t.mathstyle)!=null?r:"displaystyle";const s=new Eo({from:I(m({},w0()),{renderPlaceholder:()=>new Hr(160,{maxFontSize:1}),letterShapeStyle:(i=t==null?void 0:t.letterShapeStyle)!=null?i:"tex"}),mathstyle:t.mathstyle}),u=new Tr({mode:"math",type:"root",body:fc(e,{context:s,parseMode:"math",mathstyle:t.mathstyle})}).render(s);return u?(hf(cl(u,s)),Wf(u,{classes:"ML__latex"}).toMarkup()):""}function Bu(e){return Ad(e,{context:w0()})}function i0(e,t={}){return To(fc(e,{parseMode:"math",args:()=>"",mathstyle:"displaystyle"}),t)}function ef(e){const t=fc(e,{parseMode:"math",mathstyle:"displaystyle"});return Ul(t)}var xd;function Pp(e){var t,r;if(!xd){const i=(t=globalThis[Symbol.for("io.cortexjs.compute-engine")])==null?void 0:t.ComputeEngine;i?xd=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=xd==null?void 0:xd.box(e).latex)!=null?r:""}function a0(e,t="math"){return $s(new Tr({type:"root",body:fc(e,{parseMode:t})}))}function Mc(e){return E0(e,{format:"ascii-math"})[1]}function Tp(e){if(typeof e=="string"){const t=tf(e);if(!t)throw new Error(`Invalid color: ${e}`);return t}return"C"in e?Pf(e):"a"in e?ph(e):e}function KA(e){return e<0?0:e>255?255:Math.round(e)}function tf(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 dh(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 Up(e){const[t,r,i]=[e.L,e.a,e.b],s=Math.sqrt(r*r+i*i),u=Math.atan2(i,r)*180/Math.PI,L={L:t,C:s,H:u};return e.alpha!==void 0&&(L.alpha=e.alpha),L}function fh(e){const[t,r,i]=[e.L,e.a,e.b],s=Math.pow(.9999999984505198*t+.39633779217376786*r+.2158037580607588*i,3),c=Math.pow(1.00000000888176*t-.10556134232365635*r-.0638541747717059*i,3),u=Math.pow(t*1.000000054672411-.0894841820949657*r-1.2914855378640917*i,3),L=4.076741661347994*s-3.307711590408193*c+.230969928729428*u,z=-1.2684380040921763*s+2.6097574006633715*c-.3413193963102197*u,X=-.004196086541837188*s-.7034186144594493*c+1.7076147009309444*u,ce=Te=>{const nt=Math.abs(Te);return nt<=.0031308?Te*12.92:(Math.sign(Te)||1)*(1.055*Math.pow(nt,1/2.4)-.055)};return[ce(L),ce(z),ce(X)]}function hh(e){const[t,r,i]=e;return t>=0&&t<=1&&r>=0&&r<=1&&i>=0&&i<=1}function Of(e,t){let[r,i,s]=e;return r=KA(r*255),i=KA(i*255),s=KA(s*255),t!==void 0?{r,g:i,b:s,alpha:t}:{r,g:i,b:s}}function ph(e){let[t,r,i]=fh(e);if(hh([t,r,i]))return Of([t,r,i],e.alpha);const s=Up(e);if(s.C=0,[t,r,i]=fh(dh(s)),!hh([t,r,i]))return Of([t,r,i],e.alpha);let c=0,u=e.L,L=(c+u)/2;s.C=L;const z=.36/Math.pow(2,12);for(;u-c>z;)L=(c+u)/2,s.C=L,[t,r,i]=fh(dh(s)),hh([t,r,i])?c=L:u=L;return Of([t,r,i],e.alpha)}function Pf(e){return ph(dh(e))}function tp(e,t){const r=Tp(e),i=Tp(t),s=.56,c=.57,u=.62,L=.65,z=.022,X=1.414,ce=.1,Te=5e-4,nt=1.14,vt=.027,St=1.14,xr=.027;function Sn(Pi){return Pi>=z?Pi:Pi+bh(z-Pi,X)}function vr(Pi){return(Pi<0?-1:1)*Math.pow(Math.abs(Pi),2.4)}const nn=Sn(vr(i.r/255)*.2126729+vr(i.g/255)*.7151522+vr(i.b/255)*.072175),Ln=Sn(vr(r.r/255)*.2126729+vr(r.g/255)*.7151522+vr(r.b/255)*.072175);let un,Ci,Yi;return Math.abs(Ln-nn)<Te?Ci=0:Ln>nn?(un=bh(Ln,s)-bh(nn,c),Ci=un*nt):(un=bh(Ln,L)-bh(nn,u),Ci=un*St),Math.abs(Ci)<ce?Yi=0:Ci>0?Yi=Ci-xr:Yi=Ci+vt,Yi*100}function nu(e,t,r){r!=null||(r="#fff"),t!=null||(t="#000");const i=tp(e,r),s=tp(e,t);return Math.abs(i)>Math.abs(s)?r:t}function rf(e){const t=Tp(e);let r=((1<<24)+(KA(t.r)<<16)+(KA(t.g)<<8)+KA(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 ka(e){const t=pl(e);let r="";for(const i of t){if(typeof i.value!="string")return"";r+=i.value}return r}function pl(e){const r=e.model.selection.ranges;return r.length!==1?[]:e.model.getAtoms(r[0])}function gc(e,t){const r=pl(e);if(r.length!==1)return!1;const i=U0[t];return i?!!i.test(r[0].value):!1}function vc(e,t){return ka(e).length>0}function Tf(e){return[bm(e,"double-struck","mathbb","tooltip.blackboard"),bm(e,"fraktur","mathfrak","tooltip.fraktur"),bm(e,"calligraphic","mathcal","tooltip.caligraphic"),ym(e,"up","mathrm","tooltip.roman-upright"),ym(e,"bold","mathbf","tooltip.bold"),ym(e,"italic","mathit","tooltip.italic")]}function rp(e){return[{label:()=>Es(`\\vec{${ka(e)}}`),visible:()=>ka(e).length===1,onMenuSelect:()=>e.insert("\\vec{#@}",{selectionMode:"item"})},{label:()=>Es(`\\overrightarrow{${ka(e)}}`),visible:()=>ka(e).length>0,onMenuSelect:()=>e.insert("\\overrightarrow{#@}",{selectionMode:"item"})},{label:()=>Es(`\\overleftarrow{${ka(e)}}`),visible:()=>ka(e).length>0,onMenuSelect:()=>e.insert("\\overleftarrow{#@}",{selectionMode:"item"})},{label:()=>Es(`\\dot{${ka(e)}}`),visible:()=>ka(e).length===1,onMenuSelect:()=>e.insert("\\dot{#@}",{selectionMode:"item"})},{label:()=>Es(`\\ddot{${ka(e)}}`),visible:()=>ka(e).length===1,onMenuSelect:()=>e.insert("\\ddot{#@}",{selectionMode:"item"})},{label:()=>Es(`\\bar{${ka(e)}}`),visible:()=>ka(e).length===1,onMenuSelect:()=>e.insert("\\bar{#@}",{selectionMode:"item"})},{label:()=>Es(`\\overline{${ka(e)}}`),visible:()=>ka(e).length>0,onMenuSelect:()=>e.insert("\\overline{#@}",{selectionMode:"item"})},{label:()=>Es(`\\overgroup{${ka(e)}}`),visible:()=>ka(e).length>0,onMenuSelect:()=>e.insert("\\overgroup{#@}",{selectionMode:"item"})},{label:()=>Es(`\\overbrace{${ka(e)}}`),visible:()=>ka(e).length>0,onMenuSelect:()=>e.insert("\\overbrace{#@}",{selectionMode:"item"})},{label:()=>Es(`\\underline{${ka(e)}}`),visible:()=>ka(e).length>0,onMenuSelect:()=>e.insert("\\underline{#@}",{selectionMode:"item"})},{label:()=>Es(`\\undergroup{${ka(e)}}`),visible:()=>ka(e).length>0,onMenuSelect:()=>e.insert("\\undergroup{#@}",{selectionMode:"item"})},{label:()=>Es(`\\underbrace{${ka(e)}}`),visible:()=>ka(e).length>0,onMenuSelect:()=>e.insert("\\underbrace{#@}",{selectionMode:"item"})}]}function nf(e){return[{label:()=>Es(`\\boxed{${e.getValue(e.model.selection)}}}`),onMenuSelect:()=>e.insert("\\boxed{#@}",{selectionMode:"item"})},{label:()=>Es(`\\bbox[5px, border: 2px solid red]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px solid red]{#@}",{selectionMode:"item"})},{label:()=>Es(`\\bbox[5px, border: 2px dashed black]{${e.getValue(e.model.selection)}}`),onMenuSelect:()=>e.insert("\\bbox[5px, border: 2px dashed black]{#@}",{selectionMode:"item"})}]}function Rp(e){const t=[];for(const r of Object.keys(se))t.push({class:(rf(nu(se[r]))==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${se[r]} "></span>`,ariaLabel:()=>{var i;return(i=J(r))!=null?i:r},checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({backgroundColor:r}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({backgroundColor:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}function Bg(e){const t=[];for(const r of Object.keys(he))t.push({class:(nu(he[r])==="#000"?"dark-contrast":"light-contrast")+" menu-swatch",label:`<span style="background:${he[r]} "></span>`,ariaLabel:()=>{var i;return(i=J(r))!=null?i:r},checked:()=>{var i;return{some:"mixed",all:!0}[(i=e.queryStyle({color:r}))!=null?i:!1]},onMenuSelect:()=>{e.applyStyle({color:r},{operation:"toggle"}),e.adoptStyle="none"}});return t}var Sg=class extends bd{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 Eg(e){const t=[];for(let r=1;r<=5;r++)for(let i=1;i<=5;i++)t.push({onCreate:(s,c)=>new Sg(s,c,r,i),label:"\u2610",tooltip:()=>J("tooltip.row-by-col",r,i),data:{row:r,col:i},onMenuSelect:()=>{e.insert(`\\begin{pmatrix}${Array(r).fill(Array(i).fill("#?").join(" & ")).join("\\\\")}\\end{pmatrix}`,{selectionMode:"item"})}});return t}function _g(e){return[{label:()=>J("menu.array.add row above"),id:"add-row-above",onMenuSelect:()=>e.executeCommand("addRowBefore"),visible:()=>mh(e)},{label:()=>J("menu.array.add row below"),id:"add-row-below",onMenuSelect:()=>e.executeCommand("addRowAfter"),visible:()=>mh(e)},{label:()=>J("menu.array.add column before"),id:"add-column-before",onMenuSelect:()=>e.executeCommand("addColumnBefore"),visible:()=>mh(e),enabled:()=>{const t=e.model.parentEnvironment;if(!t)return!1;const[r,i]=Fg(e);return r<t.maxColumns}},{label:()=>J("menu.array.add column after"),id:"add-column-after",onMenuSelect:()=>e.executeCommand("addColumnAfter"),visible:()=>mh(e)},{type:"divider"},{label:()=>J("menu.array.delete row"),id:"delete-row",onMenuSelect:()=>e.executeCommand("removeRow"),visible:()=>mh(e)},{label:()=>J("menu.array.delete column"),id:"delete-column",onMenuSelect:()=>e.executeCommand("removeColumn"),visible:()=>mh(e)},{type:"divider"},{label:()=>J("menu.borders"),visible:()=>(Ig(e)||mh(e))&&e.isSelectionEditable,submenu:[{label:" \u22F1 ",id:"environment-no-border",onMenuSelect:()=>np(e,"matrix")},{label:"(\u22F1)",id:"environment-parentheses",onMenuSelect:()=>np(e,"pmatrix")},{label:"[\u22F1]",id:"environment-brackets",onMenuSelect:()=>np(e,"bmatrix")},{label:"|\u22F1|",id:"environment-bar",onMenuSelect:()=>np(e,"vmatrix")},{label:"{\u22F1}",id:"environment-braces",onMenuSelect:()=>np(e,"Bmatrix")}],submenuClass:"border-submenu"},{type:"divider"},{label:()=>J("menu.insert matrix"),id:"insert-matrix",visible:()=>e.isSelectionEditable,submenu:Eg(e),submenuClass:"insert-matrix-submenu",columnCount:5},{label:()=>J("menu.mode"),id:"mode",visible:()=>e.isSelectionEditable&&e.model.selectionIsCollapsed,submenu:[{label:()=>J("menu.mode-math"),id:"mode-math",onMenuSelect:()=>{Qh(e,"accept-all"),e.executeCommand(["switchMode","math"])},checked:()=>e.model.mode==="math"},{label:()=>J("menu.mode-text"),id:"mode-text",onMenuSelect:()=>{Qh(e,"accept-all"),e.executeCommand(["switchMode","text"])},checked:()=>e.model.mode==="text"},{label:()=>J("menu.mode-latex"),id:"mode-latex",onMenuSelect:()=>e.executeCommand(["switchMode","latex"]),checked:()=>e.model.mode==="latex"}]},{type:"divider"},{label:()=>J("menu.font-style"),id:"variant",visible:()=>e.isSelectionEditable,submenu:Tf(e),submenuClass:"variant-submenu"},{label:()=>J("menu.color"),id:"color",visible:()=>e.isSelectionEditable,submenu:Bg(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>J("menu.background-color"),id:"background-color",visible:()=>e.isSelectionEditable,submenu:Rp(e),columnCount:4,submenuClass:"swatches-submenu"},{label:()=>J("menu.accent"),id:"accent",visible:()=>e.isSelectionEditable,submenu:rp(e),submenuClass:"variant-submenu"},{label:()=>J("menu.decoration"),id:"decoration",visible:()=>e.isSelectionEditable&&ka(e).length>0,submenu:nf(e),submenuClass:"variant-submenu"},{type:"divider"},{label:()=>J("menu.evaluate"),id:"ce-evaluate",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{const t=Mg(e);if(!t){e.model.announce("plonk");return}e.model.selectionIsCollapsed?(e.model.position=e.model.lastOffset,e.insert(`=${t}`,{insertionMode:"insertAfter",selectionMode:"item"})):e.insert(t,{insertionMode:"replaceSelection",selectionMode:"item"})}},{label:()=>J("menu.simplify"),id:"ce-simplify",visible:()=>e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null,onMenuSelect:()=>{var t,r;if(e.model.selectionIsCollapsed){const i=(t=e.expression)==null?void 0:t.simplify();if(e.model.position=e.model.lastOffset,!i){e.model.announce("plonk");return}e.insert(`=${i.latex}`,{insertionMode:"insertAfter",selectionMode:"item"})}else{const i=(r=window.MathfieldElement.computeEngine)==null?void 0:r.parse(e.getValue(e.model.selection)).simplify();if(!i){e.model.announce("plonk");return}e.insert(i.latex,{insertionMode:"replaceSelection",selectionMode:"item"})}}},{label:()=>{var t;if(window.MathfieldElement.computeEngine===null)return"";const r=(t=e.expression)==null?void 0:t.unknowns[0];return r?J("menu.solve-for",Es(r)):J("menu.solve")},id:"ce-solve",visible:()=>{var t;return e.isSelectionEditable&&window.MathfieldElement.computeEngine!==null&&((t=e.expression)==null?void 0:t.unknowns.length)===1&&e.expression.unknowns[0]!=="Nothing"},onMenuSelect:()=>{var t;const r=e.expression,i=r==null?void 0:r.unknowns[0],s=(t=r.solve(i))==null?void 0:t.map(c=>{var u;return(u=c.simplify().latex)!=null?u:""});if(!s){e.model.announce("plonk");return}e.insert(`${i}=${s.length===1?s[0]:"\\left\\lbrace"+(s==null?void 0:s.join(", "))+"\\right\\rbrace"}`,{insertionMode:"replaceAll",selectionMode:"item"})}},{type:"divider"},{label:()=>J("menu.cut"),onMenuSelect:()=>e.executeCommand("cutToClipboard"),visible:()=>!e.options.readOnly&&e.isSelectionEditable,keyboardShortcut:"meta+X"},{label:()=>J("menu.copy"),id:"copy",submenu:[{label:()=>J("menu.copy-as-latex"),id:"copy-latex",onMenuSelect:()=>Ls.copyToClipboard(e,"latex"),keyboardShortcut:"meta+C"},{label:()=>J("menu.copy-as-ascii-math"),id:"copy-ascii-math",onMenuSelect:()=>Ls.copyToClipboard(e,"ascii-math")},{label:()=>J("menu.copy-as-mathml"),id:"copy-math-ml",onMenuSelect:()=>Ls.copyToClipboard(e,"math-ml")}]},{label:()=>J("menu.paste"),id:"paste",onMenuSelect:()=>e.executeCommand("pasteFromClipboard"),visible:()=>e.hasEditableContent,keyboardShortcut:"meta+V"},{label:()=>J("menu.select-all"),id:"select-all",keyboardShortcut:"meta+A",onMenuSelect:()=>e.executeCommand("selectAll")}]}function mh(e){var t;return!!((t=e.model.parentEnvironment)!=null&&t.array)}function Ig(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 np(e,t){lm(e),e.flushInlineShortcutBuffer(),Ds(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 bm(e,t,r,i){return{label:()=>Es(`\\${r}{${ka(e)}}`),tooltip:()=>{var s;return(s=J(i))!=null?s:i},visible:()=>gc(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 ym(e,t,r,i){return{label:()=>Es(`\\${r}{${ka(e)}}`),tooltip:()=>{var s;return(s=J(i))!=null?s:i},visible:()=>vc(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 o0(e,t){return e+Ul(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 u(ce){let Te=null;switch(ce){case"all":Te=c.root;break;case"selection":Te=c.getAtoms(c.selection);break;case"left":{Te=c.getAtoms(c.offsetOf(c.at(c.position).leftSibling),c.position);break}case"right":{Te=c.getAtoms(c.position,c.offsetOf(c.at(c.position).rightSibling));break}case"group":Te=c.getAtoms(c.getSiblingsRange(c.position));break;case"parent":{const{parent:nt}=c.at(c.position);nt!=null&&nt.parent?Te=nt:Te=c.root;break}default:Te=c.root}return Te}function L(ce){let Te="";switch(ce){case"all":console.log("Internal failure: speak all failed");break;case"selection":Te="no selection";break;case"left":Te="at start";break;case"right":Te="at end";break;case"group":console.log("Internal failure: speak group failed");break;case"parent":Te="no parent";break;default:console.log('unknown speak_ param value: "'+ce+'"');break}return Te}const z=u(t);if(z===null)return(s=(i=window.MathfieldElement).speakHook)==null||s.call(i,L(t)),!1;(r.withHighlighting||window.MathfieldElement.speechEngine==="amazon")&&(window.MathfieldElement.textToSpeechMarkup=window.sre&&window.MathfieldElement.textToSpeechRules==="sre"?"ssml_step":"ssml");const X=Ul(z);return P()&&r.withHighlighting?(NA().readAloudMathfield=e,Kh(e,{forHighlighting:!0}),window.MathfieldElement.readAloudHook&&window.MathfieldElement.readAloudHook(e.field,X)):window.MathfieldElement.speakHook&&window.MathfieldElement.speakHook(X),!1}function Lg(e){var t,r;if(!P()){console.log("Speak:",e);return}if(!window.MathfieldElement.speechEngine||window.MathfieldElement.speechEngine==="local"){const i=new SpeechSynthesisUtterance(e);window.speechSynthesis.speak(i)}else if(window.MathfieldElement.speechEngine==="amazon")if(!("AWS"in window))console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");else{const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),s={OutputFormat:"mp3",VoiceId:(t=window.MathfieldElement.speechEngineVoice)!=null?t:"Joanna",Engine:["Amy","Emma","Brian","Ivy","Joanna","Kendra","Kimberly","Salli","Joey","Justin","Matthew"].includes((r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna")?"neural":"standard",Text:e,TextType:"ssml"};i.synthesizeSpeech(s,(c,u)=>{if(c)console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${c}`);else if(u!=null&&u.AudioStream){const L=new Uint8Array(u.AudioStream),z=new Blob([L.buffer],{type:"audio/mpeg"}),X=URL.createObjectURL(z);new Audio(X).play().catch(Te=>console.log(Te))}else console.log("polly.synthesizeSpeech():",u)})}else window.MathfieldElement.speechEngine==="google"&&console.error("MathLive 0.98.5: The Google speech engine is not supported yet. Please come again.")}function ig(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=o0("deleted: ",i);else if(t==="focus"||t.includes("move"))s=Dg(e.model,r)+(e.model.selectionIsCollapsed?"":"selected: ")+Ng(e.model);else if(t==="replacement")s=o0("",e.model.at(e.model.position));else if(t==="line"){const c=o0("",e.model.root);e.keyboardDelegate.setAriaLabel(c)}else s=i?o0(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 ${ig(s)};`,s=s.parent;return i}function Ng(e){if(!e.selectionIsCollapsed)return o0("",e.getAtoms(e.selection));let t="";const r=e.at(e.position),i=ig(r);return r.isFirstSibling&&(t=(i?"start of "+i:"unknown")+": "),r.isLastSibling?r.isFirstSibling||(t+=i?"end of "+i:"unknown"):t+=o0("",r),t}var Og=class{constructor(e,t,r){this.mathfield=e,this.mode=t,this.silenceNotifications=!1,this._selection={ranges:[[0,0]],direction:"none"},this._anchor=0,this._position=0,this.root=r}dispose(){this.mathfield=void 0}getState(){const e={ranges:[...this._selection.ranges]};return this.selection.direction&&this.selection.direction!=="none"&&(e.direction=this.selection.direction),{content:this.root.toJson(),selection:e,mode:this.mode}}setState(e,t){var r;const i=this.silenceNotifications;this.silenceNotifications=(r=t==null?void 0:t.silenceNotifications)!=null?r:!0;let s={};if((t==null?void 0:t.type)==="undo"&&(s={inputType:"historyUndo"}),(t==null?void 0:t.type)==="redo"&&(s={inputType:"historyRedo"}),this.contentWillChange(s)){const c=this.silenceNotifications;this.silenceNotifications=!0,this.mode=e.mode,this.root=Ma(e.content),this.selection=e.selection,this.silenceNotifications=c,this.contentDidChange(s)}this.silenceNotifications=i}get atoms(){return this.root.children}get selection(){return this._selection}set selection(e){this.setSelection(e)}setSelection(e,t){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{var r,i,s;const c=this.normalizeSelection(e,t);if(c===void 0)throw new TypeError("Invalid selection");if(c.ranges.length===1&&c.ranges[0][0]===c.ranges[0][1]){const ce=c.ranges[0][0];if(!this.mathfield.dirty&&!((r=this.at(ce))!=null&&r.parentPrompt)&&this.mathfield.hasEditablePrompts){if((i=this.at(ce-1))!=null&&i.parentPrompt){this._anchor=this.normalizeOffset(ce-1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}if((s=this.at(ce+1))!=null&&s.parentPrompt){this._anchor=this.normalizeOffset(ce+1),this._position=this._anchor,this._selection=this.normalizeSelection(this._anchor);return}this._anchor=0,this._position=0,this._selection={ranges:[[0,0]]};return}this._anchor=ce,this._position=ce,this._selection=c;return}const u=Jl(c);c.direction==="backward"?[this._position,this._anchor]=u:[this._anchor,this._position]=u;const L=this.at(u[0]+1),z=this.at(u[1]),X=Tr.commonAncestor(L,z);(X==null?void 0:X.type)==="array"&&L.parent===X&&z.parent===X?this._selection={ranges:[u],direction:c.direction}:this._selection={ranges:[u],direction:c.direction},console.assert(this._position>=0&&this._position<=this.lastOffset)})}setPositionHandlingPlaceholder(e){var t;const r=this.at(e);(r==null?void 0:r.type)==="placeholder"?this.setSelection(e-1,e):((t=r==null?void 0:r.rightSibling)==null?void 0:t.type)==="placeholder"?this.setSelection(e,e+1):this.position=e,r instanceof Nl&&r.isSuggestion&&(r.isSuggestion=!1),this.mathfield.stopCoalescingUndo()}get position(){return this._position}set position(e){this.setSelection(e,e)}get anchor(){return this._anchor}get selectionIsCollapsed(){return this._anchor===this._position}get selectionIsPlaceholder(){return Math.abs(this._anchor-this._position)===1?this.at(Math.max(this._anchor,this._position)).type==="placeholder":!1}collapseSelection(e="forward"){return this._anchor===this._position?!1:(e==="backward"?this.position=Math.min(this._anchor,this._position):this.position=Math.max(this._anchor,this._position),!0)}get lastOffset(){return this.atoms.length-1}at(e){return this.atoms[e]}offsetOf(e){return this.atoms.indexOf(e)}getSiblingsRange(e){const t=this.at(e),{parent:r}=t;if(!r)return[0,this.lastOffset];const i=t.parent.branch(t.parentBranch);return[this.offsetOf(i[0]),this.offsetOf(i[i.length-1])]}getBranchRange(e,t){const r=this.at(e).branch(t);return[this.offsetOf(r[0]),this.offsetOf(r[r.length-1])]}getAtoms(e,t,r){let i=r!=null?r:{};if(_h(e)){if(i=t!=null?t:{},e.ranges.length>1)return e.ranges.reduce((X,ce)=>[...X,...this.getAtoms(ce,i)],[]);e=e.ranges[0]}let s,c;if(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 u=Math.min(s,c)+1,L=Math.max(s,c);if(!i.includeChildren&&u===1&&L===this.lastOffset)return[this.root];let z=[];for(let X=u;X<=L;X++){const ce=this.atoms[X];ag(this,ce,u,L)&&z.push(ce)}return i.includeChildren||(z=z.filter(X=>{let ce=!1,{parent:Te}=X;for(;Te&&!ce;)ce=ag(this,Te,u,L),Te=Te.parent;return!ce})),z}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 Tr({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 Tr.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 To(e);if(r==="spoken")return Ul(e);if(r==="spoken-text"){const i=window.MathfieldElement.textToSpeechMarkup;window.MathfieldElement.textToSpeechMarkup="";const s=Ul(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=Ul(e);return window.MathfieldElement.textToSpeechMarkup=i,s}return r==="ascii-math"?$s(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):Yf(e)?(i=[this.normalizeRange(e)],s=t):_h(e)?(i=e.ranges,s=t):(i=[this.normalizeRange([0,-1])],s=e),s!=null||(s="latex"),s==="math-json"){if(!window.MathfieldElement.computeEngine)return window[Symbol.for("io.cortexjs.compute-engine")]||console.error(`The CortexJS Compute Engine library is not available.
|
|
|
Load the library, for example with:
|
|
|
import "https://unpkg.com/@cortex-js/compute-engine?module"`),'["Error", "compute-engine-not-available"]';const c=this.getValue({ranges:i},"latex-unstyled");try{const u=window.MathfieldElement.computeEngine.parse(c);return JSON.stringify(u.json)}catch(u){return JSON.stringify(["Error",`'${u.toString()}'`])}}if(s.startsWith("latex")){const c={expandMacro:s==="latex-expanded",skipStyles:s==="latex-unstyled",skipPlaceholders:s==="latex-without-placeholders",defaultMode:this.mathfield.options.defaultMode};return co(i.map(u=>Tr.serialize(this.getAtoms(u),c)))}return i.map(c=>this.getAtoms(c).map(u=>this.atomToString(u,s)).join("")).join("")}extendSelectionTo(e,t){return!this.mathfield.contentEditable&&this.mathfield.userSelect==="none"?!1:this.deferNotifications({selection:!0},()=>{const r=this.normalizeRange([e,t]);let[i,s]=r,{parent:c}=this.at(s);if(c&&(c.type==="genfrac"||c.type==="subsup"))for(;c!==this.root&&wm(this,c,[i,s]);)s=this.offsetOf(c),c=c.parent;for(c=this.at(i).parent;c!==this.root&&wm(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&&wm(this,c,[i,s]);)s=this.offsetOf(c),console.assert(s>=0),c=c.parent;this._position=this.normalizeOffset(t),this._selection={ranges:[[i,s]],direction:"none"}})}announce(e,t,r=[]){var i,s;((s=(i=this.mathfield.host)==null?void 0:i.dispatchEvent(new CustomEvent("announce",{detail:{command:e,previousPosition:t,atoms:r},cancelable:!0,bubbles:!0,composed:!0})))!=null?s:!0)&&kg(this.mathfield,e,t,r)}deferNotifications(e,t){const r=this._selection,i=this._anchor,s=this._position,c=this.silenceNotifications;this.silenceNotifications=!0;const u=this.root.changeCounter;t();const L=this.root.changeCounter!==u,z=i!==this._anchor||s!==this._position||Eh(this._selection,r)==="different";return this.silenceNotifications=c,e.content&&L&&this.contentDidChange({inputType:e.type}),e.selection&&z&&this.selectionDidChange(),L||z}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(Yf(e)){const s=this.normalizeOffset(e[0]),c=this.normalizeOffset(e[1]);i=s<=c?{ranges:[[s,c]],direction:"none"}:{ranges:[[c,s]],direction:"backward"}}else _h(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(lA(this.mathfield)),this.silenceNotifications||!this.mathfield.host||!this.mathfield)return;const r=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.host.dispatchEvent(new InputEvent("input",I(m({},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(lA(this.mathfield)),this.silenceNotifications))return;const e=this.silenceNotifications;this.silenceNotifications=!0,this.mathfield.onSelectionDidChange(),this.silenceNotifications=e}};function ag(e,t,r,i){const s=e.offsetOf(t);if(s<r||s>i)return!1;if(!t.hasChildren)return!0;const c=e.offsetOf(t.firstChild);if(c>=r&&c<=i){const u=e.offsetOf(t.lastChild);if(u>=r&&u<=i)return!0}return!1}function wm(e,t,r){if(!(t!=null&&t.hasChildren))return!1;const[i,s]=r,c=e.offsetOf(t.firstChild),u=e.offsetOf(t.lastChild);return c>=i&&c<=s&&u>=c&&u<=s}function s0(e,t,r,i){var s,c,u,L,z,X;const ce=r.parent;if(ce&&r instanceof tl){const Te=!i&&t==="forward"||i==="body"&&t==="backward";let nt=Te?e.offsetOf(r.firstChild):e.offsetOf(r.lastChild);return Te?r.rightDelim!=="?"&&r.rightDelim!=="."?(r.leftDelim=".",r.isDirty=!0):(ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),nt--):r.leftDelim!=="?"&&r.leftDelim!=="."?(r.rightDelim=".",r.isDirty=!0):(ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),nt--),e.position=nt,!0}if(ce&&r.type==="surd"){if(t==="forward"&&!i||t==="backward"&&i==="body"){const Te=r.leftSibling;r.hasChildren&&ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),e.position=e.offsetOf(Te)}else t==="forward"&&i==="body"?e.position=e.offsetOf(r):!i&&t==="backward"?r.hasChildren?e.position=e.offsetOf(r.lastChild):(e.position=Math.max(0,e.offsetOf(r)-1),ce.removeChild(r)):i==="above"&&(r.hasEmptyBranch("above")&&r.removeBranch("above"),t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r.body[0]));return!0}if(ce&&(r.type==="box"||r.type==="enclose")){const Te=i&&t==="backward"||!i&&t==="forward"?r.leftSibling:r.lastChild;return ce.addChildrenAfter(r.removeBranch("body"),r),ce.removeChild(r),e.position=e.offsetOf(Te),!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 Te=l0.fractionNavigationOrder==="numerator-denominator"?"above":"below",nt=Te==="above"?"below":"above";if(ce&&(t==="forward"&&i===Te||t==="backward"&&i===nt)){const vt=r.removeBranch(Te),St=r.removeBranch(nt);return ce.addChildrenAfter([...vt,...St],r),ce.removeChild(r),e.position=e.offsetOf(vt.length>0?vt[vt.length-1]:St[0]),!0}return t==="backward"?e.position=e.offsetOf(r.leftSibling):e.position=e.offsetOf(r),!0}if(r.isExtensibleSymbol||r.type==="subsup"){if(!i&&t==="forward")return!1;if(!i){if(r.subscript||r.superscript){const Te=t==="forward"?(u=(s=r.superscript)==null?void 0:s[0])!=null?u:(c=r.subscript)==null?void 0:c[0]:(X=(L=r.subscript)==null?void 0:L[0].lastSibling)!=null?X:(z=r.superscript)==null?void 0:z[0].lastSibling;return Te&&(e.position=e.offsetOf(Te)),!0}return!1}if(!r.hasChildren&&r.type==="subsup"){const Te=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);return r.parent.removeChild(r),e.position=Te,!0}if(i==="superscript")if(t==="backward"){const Te=e.offsetOf(r.firstChild)-1;console.assert(Te>=0),e.position=Te}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 Te=t==="forward"?e.offsetOf(r):Math.max(0,e.offsetOf(r)-1);r.parent.removeChild(r),e.position=Te}return!0}if((ce==null?void 0:ce.type)==="genfrac"&&!i&&r.type!=="first"){let Te=e.offsetOf(r.leftSibling);return ce.removeChild(r),ce.hasEmptyBranch("above")&&ce.hasEmptyBranch("below")?(Te=e.offsetOf(ce.leftSibling),ce.parent.removeChild(ce),e.announce("delete",void 0,[ce]),e.position=Te,!0):(e.announce("delete",void 0,[r]),e.position=Te,!0)}if(t==="backward"&&((ce==null?void 0:ce.command)==="\\ln"||(ce==null?void 0:ce.command)==="\\log")&&r.parentBranch!=="body"){const Te=e.offsetOf(ce.leftSibling);return ce.parent.removeChild(ce),e.announce("delete",void 0,[ce]),e.position=Te,!0}return!1}function xm(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&&s0(e,"backward",t))){if(t!=null&&t.isFirstSibling){if(s0(e,"backward",t.parent,t.parentBranch))return;t=null}if(!t){e.announce("plonk");return}e.position=e.offsetOf(t.leftSibling),t.parent.removeChild(t),e.announce("delete",void 0,[t])}}):bc(e,Jl(e.selection),"deleteContentBackward")}function Su(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&&s0(e,"forward",i))return;if(i){if(e.at(e.position).isLastSibling&&s0(e,"forward",i.parent,i.parentBranch))return}else{if(i=e.at(e.position),i.isLastSibling&&s0(e,"forward",i.parent,i.parentBranch))return;i=void 0}if(e.position===e.lastOffset||!i){e.announce("plonk");return}i.parent.removeChild(i);let s=(t=e.at(e.position))==null?void 0:t.rightSibling;for(;(s==null?void 0:s.type)==="subsup";)s.parent.removeChild(s),s=(r=e.at(e.position))==null?void 0:r.rightSibling;e.announce("delete",void 0,[i])}):bc(e,Jl(e.selection),"deleteContentForward")}function bc(e,t,r){const i=e.getAtoms(t);if(i.length>0&&i[0].parent){let s=i[0].parent.firstChild;s.type==="first"&&(s=s.rightSibling);const c=i[i.length-1].parent.lastChild;let u=i[0];u.type==="first"&&(u=u.rightSibling);const L=i[i.length-1];if(u===s&&L===c){const z=i[0].parent;z.parent&&z.type!=="prompt"&&(t=[e.offsetOf(z.leftSibling),e.offsetOf(z)])}if(i.length===1&&i[0].type==="placeholder"&&i[0].parent.type==="genfrac"){const z=i[0].parent,X=i[0].parentBranch==="below"?"above":"below",ce=e.offsetOf(z.leftSibling);return e.deferNotifications({content:!0,selection:!0,type:r},()=>{var Te,nt;const vt=z.removeBranch(X);if(vt.length===1&&vt[0].type==="placeholder")(nt=z.parent)==null||nt.removeChild(z),e.position=Math.max(0,ce);else{const St=z.parent.addChildrenAfter(vt,z);(Te=z.parent)==null||Te.removeChild(z),e.position=e.offsetOf(St)}})}}return e.deferNotifications({content:!0,selection:!0,type:r},()=>e.deleteAtoms(t))}o({deleteAll:e=>e.contentWillChange({inputType:"deleteContent"})&&bc(e,[0,-1],"deleteContent"),deleteForward:e=>Su(e),deleteBackward:e=>xm(e),deleteNextWord:e=>e.contentWillChange({inputType:"deleteWordForward"})&&bc(e,[e.anchor,ql(e,e.position,"forward")],"deleteWordForward"),deletePreviousWord:e=>e.contentWillChange({inputType:"deleteWordBackward"})&&bc(e,[e.anchor,ql(e,e.position,"backward")],"deleteWordBackward"),deleteToGroupStart:e=>e.contentWillChange({inputType:"deleteSoftLineBackward"})&&bc(e,[e.anchor,e.offsetOf(e.at(e.position).firstSibling)],"deleteSoftLineBackward"),deleteToGroupEnd:e=>e.contentWillChange({inputType:"deleteSoftLineForward"})&&bc(e,[e.anchor,e.offsetOf(e.at(e.position).lastSibling)],"deleteSoftLineForward"),deleteToMathFieldStart:e=>e.contentWillChange({inputType:"deleteHardLineBackward"})&&bc(e,[e.anchor,0],"deleteHardLineBackward"),deleteToMathFieldEnd:e=>e.contentWillChange({inputType:"deleteHardLineForward"})&&bc(e,[e.anchor,-1],"deleteHardLineForward")},{target:"model",audioFeedback:"delete",canUndo:!0,changeContent:!0,changeSelection:!0});var Cm=`<svg xmlns="http://www.w3.org/2000/svg" style="width: 21px;" viewBox="0 0 576 512" role="img" aria-label="${J("tooltip.toggle virtual keyboard")}"><path d="M528 64H48C21.49 64 0 85.49 0 112v288c0 26.51 21.49 48 48 48h480c26.51 0 48-21.49 48-48V112c0-26.51-21.49-48-48-48zm16 336c0 8.823-7.177 16-16 16H48c-8.823 0-16-7.177-16-16V112c0-8.823 7.177-16 16-16h480c8.823 0 16 7.177 16 16v288zM168 268v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-336 80v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm384 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zM120 188v-24c0-6.627-5.373-12-12-12H84c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm96 0v-24c0-6.627-5.373-12-12-12h-24c-6.627 0-12 5.373-12 12v24c0 6.627 5.373 12 12 12h24c6.627 0 12-5.373 12-12zm-96 152v-8c0-6.627-5.373-12-12-12H180c-6.627 0-12 5.373-12 12v8c0 6.627 5.373 12 12 12h216c6.627 0 12-5.373 12-12z"/></svg>`,Bm=`<svg xmlns="http://www.w3.org/2000/svg" style="height: 18px;" viewBox="0 0 448 512" role="img" aria-label="${J("tooltip.menu")}"><path d="M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z"/></svg>`,Pg=class{constructor(e,t){this.focusBlurInProgress=!1;var r,i,s;this.options=m(I(m({},Si()),{macros:ze(),registers:Xf()}),zn(t)),this.eventController=new AbortController;const c=this.eventController.signal;t.eventSink&&(this.host=t.eventSink),this.element=e,e.mathfield=this,this.blurred=!0,this.keystrokeCaptionVisible=!1,this.suggestionIndex=0,this.inlineShortcutBuffer=[],this.inlineShortcutBufferFlushTimer=0,this.defaultStyle={},this.adoptStyle="left",this.options.defaultMode==="inline-math"?this.element.classList.add("ML__is-inline"):this.element.classList.remove("ML__is-inline"),this.dirty=!1;let u=(i=(r=t.value)!=null?r:this.element.textContent)!=null?i:"";u=u.trim();const L=sn(this.options),z=new Tr({type:"root",mode:L,body:fc(u,{context:this.context})});this.model=new Og(this,L,z),this.undoManager=new xo(this.model);const X=[];if(X.push("<span contenteditable=true aria-multiline=false part=keyboard-sink class=ML__keyboard-sink autocapitalize=off autocomplete=off autocorrect=off spellcheck=false inputmode=none tabindex=0></span>"),X.push('<span part=container class=ML__container aria-hidden=true style="visibility:hidden">'),X.push("<span part=content class=ML__content>"),X.push(xg(this)),X.push("</span>"),window.mathVirtualKeyboard&&(X.push(`<div part=virtual-keyboard-toggle class=ML__virtual-keyboard-toggle role=button ${this.hasEditableContent?"":'style="display:none;"'} data-l10n-tooltip="tooltip.toggle virtual keyboard">`),X.push(Cm),X.push("</div>")),X.push('<div part=menu-toggle class=ML__menu-toggle role=button data-l10n-tooltip="tooltip.menu">'),X.push(Bm),X.push("</div>"),X.push("</span>"),X.push("<span class=ML__sr-only>"),X.push("<span role=status aria-live=assertive aria-atomic=true></span>"),X.push("</span>"),this.element.innerHTML=window.MathfieldElement.createHTML(X.join("")),!this.element.children){console.error("%cMathLive 0.98.5: Something went wrong and the mathfield could not be created.%c\nIf you are using Vue, this may be because you are using the runtime-only build of Vue. Make sure to include `runtimeCompiler: true` in your Vue configuration. There may a warning from Vue in the log above.","color:red;font-family:system-ui;font-size:1.2rem;font-weight:bold","color:inherit;font-family:system-ui;font-size:inherit;font-weight:inherit");return}this._l10Subscription=ie.subscribe(()=>ie.update(this.element)),ie.update(this.element),this.field=this.element.querySelector("[part=content]"),this.field.addEventListener("click",Te=>Te.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(lA(this)))},{signal:c}),this._menu=new gr(_g(this),{host:this.host}),this.field.addEventListener("contextmenu",this,{signal:c});const ce=this.element.querySelector("[part=menu-toggle]");ce==null||ce.addEventListener("pointerdown",Te=>{if(Te.currentTarget!==ce||this._menu.state!=="closed")return;this.element.classList.add("tracking");const nt=ce.getBoundingClientRect();this._menu.modifiers=MA(Te),this._menu.show({target:ce,location:{x:nt.left,y:nt.bottom},onDismiss:()=>this.element.classList.remove("tracking")}),Te.preventDefault(),Te.stopPropagation()},{signal:c}),(this.model.atoms.length<=1||this.disabled||this.readOnly&&!this.hasEditableContent||this.userSelect==="none")&&(ce.style.display="none"),this.ariaLiveText=this.element.querySelector("[role=status]"),this.keyboardDelegate=fg(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}),Ec&&!ie.locale.startsWith(Ec.locale)&&oA(ie.locale),vu!=="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(lA(this)),uh(this))}disconnectFromVirtualKeyboard(){this.connectedToVirtualKeyboard&&(window.removeEventListener("message",this),window.mathVirtualKeyboard.disconnect(),this.connectedToVirtualKeyboard=!1,kp())}showMenu(e){var t,r;const i=(r=(t=e==null?void 0:e.location)!=null?t:th(this.field))!=null?r:void 0,s=e==null?void 0:e.modifiers,c=this.element.querySelector("[part=container]");return this._menu.show({target:c,location:i,modifiers:s})}get colorMap(){return e=>{var t,r,i;return(i=(r=(t=this.options).colorMap)==null?void 0:r.call(t,e))!=null?i:Pe(e)}}get backgroundColorMap(){return e=>{var t,r,i,s,c,u;return(u=(c=(r=(t=this.options).backgroundColorMap)==null?void 0:r.call(t,e))!=null?c:(s=(i=this.options).colorMap)==null?void 0:s.call(i,e))!=null?u: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=Tr.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=m({},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=K0(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 z of Object.keys(t)){const X=this.queryStyle({[z]:t[z]});if(X==="none")return"none";if(X==="some")return"some"}return"all"}const i=Object.keys(t)[0],s=t[i];if(this.model.selectionIsCollapsed)return this.effectiveStyle[i]===s?"all":"none";const c=this.model.getAtoms(this.model.selection,{includeChildren:!0});let u=c.length;if(u===0)return"none";let L=0;for(const z of c){if(z.type==="first"){u-=1;continue}z.style[i]===s&&(L+=1)}return L===0?"none":L===u?"all":"some"}get keybindings(){var e,t;if(this._keybindings)return this._keybindings;const[r,i]=Jg(this.options.keybindings,(e=hu())!=null?e:YA());return((t=hu())==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=m(m({},this.options),zn(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=Tr.serialize([this.model.root],{expandMacro:!1,defaultMode:this.options.defaultMode});("macros"in e||this.model.getValue()!==i)&&Ls.insert(this.model,i,{insertionMode:"replaceAll",selectionMode:"after",format:"latex",silenceNotifications:!0,mode:"math"}),("value"in e||"macros"in e||"registers"in e||"colorMap"in e||"backgroundColorMap"in e||"letterShapeStyle"in e||"minFontScale"in e||"readOnly"in e||"placeholderSymbol"in e)&&_l(this)}getOptions(e){return hi(this.options,e)}getOption(e){return hi(this.options,e)}handleEvent(e){return up(this,null,function*(){var t;if(od(this)){if(V(e)){if(!Mh(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"&&Lp(this,e);break;case"pointerdown":this.userSelect!=="none"&&(Lp(this,e),e.shiftKey===!1&&(yield fa(e,this.element.querySelector("[part=container]"),this._menu))&&ec.stop());break;case"contextmenu":this.userSelect!=="none"&&e.shiftKey===!1&&(yield fa(e,this.element.querySelector("[part=container]"),this._menu))&&ec.stop();break;case"virtual-keyboard-toggle":this.hasFocus()&&uh(this);break;case"resize":this.geometryChangeTimer&&cancelAnimationFrame(this.geometryChangeTimer),this.geometryChangeTimer=requestAnimationFrame(()=>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;ie.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,Q0(),Yg(),G0()}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(lA(this))),!1):A(this,e)}get errors(){return Ad(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=Ih(this.model,this.model.position))!=null?r:"math");const i=this.undoManager.canUndo();Ls.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&&Kh(this,{interactive:!0});const t=this.field.getBoundingClientRect();let r=null;if(this.model.selectionIsCollapsed)r=th(this.field);else{const i=Dm(this);if(i.length>0){let s=-1/0,c=-1/0;for(const u of i)u.right>s&&(s=u.right),u.top<c&&(c=u.top);r={x:s+t.left-this.field.scrollLeft,y:c+t.top-this.field.scrollTop,height:0}}}if(this.host&&r){const i=this.host.getBoundingClientRect(),s=r.y;let c=this.host.scrollTop;s<i.top?c=s-i.top+this.host.scrollTop:s>i.bottom&&(c=s-i.bottom+this.host.scrollTop+r.height),this.host.scroll({top:c,left:0})}if(r){const i=r.x-window.scrollX;let s=this.field.scrollLeft;i<t.left?s=i-t.left+this.field.scrollLeft-20:i>t.right&&(s=i-t.right+this.field.scrollLeft+20),this.field.scroll({top:this.field.scrollTop,left:s})}}insert(e,t){return typeof e!="string"||e.length===0&&((t==null?void 0:t.insertionMode)==="insertBefore"||(t==null?void 0:t.insertionMode)==="insertAfter")||e.length===0&&this.model.selectionIsCollapsed?!1:(this.flushInlineShortcutBuffer(),t=t!=null?t:{mode:"math"},t.focus&&this.focus(),t.feedback&&(window.MathfieldElement.keypressVibration&&M()&&navigator.vibrate(Cg),window.MathfieldElement.playSound("keypress")),e==="\\\\"?Ca(this.model):e==="&"?Ba(this.model):this.model.selectionIsCollapsed?Ls.insert(this.model,e,m({style:this.model.at(this.model.position).computedStyle},t)):Ls.insert(this.model,e,t),this.snapshot(`insert-${this.model.at(this.model.position).type}`),_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:u}=this;u.deferNotifications({content:!!r||!!t,selection:!0,type:"insertText"},()=>{let L=!1;if(this.flushInlineShortcutBuffer(),this.stopCoalescingUndo(),t&&e!=="latex"){const z=fc(t,{context:this.context,parseMode:e});u.collapseSelection("forward");const X=u.at(u.position);u.position=u.offsetOf(X.parent.addChildrenAfter(z,X)),L=!0}if(this.model.mode=e,e==="latex"){let z=u.selectionIsCollapsed;Qh(this,"accept");let X,ce=u.at(u.position);if(z)X="\\";else{const nt=Jl(u.selection);X=this.model.getValue(nt,"latex");const vt=this.model.extractAtoms(nt);vt.length===1&&vt[0].type==="placeholder"&&(X=t,z=!0),ce=u.at(nt[0])}const Te=new Sf(X);ce.parent.addChildAfter(Te,ce),z?u.position=u.offsetOf(Te.lastChild):u.setSelection(u.offsetOf(Te.firstChild),u.offsetOf(Te.lastChild))}else R0(u).forEach(z=>{z.isError=!1});if(r){const z=fc(r,{context:this.context,parseMode:c});u.collapseSelection("forward");const X=u.at(u.position);u.position=u.offsetOf(X.parent.addChildrenAfter(z,X)),L=!0}return _l(this),this.undoManager.snapshot(e==="latex"?"insert-latex":"insert"),L}),this.model.mode=e,window.mathVirtualKeyboard.update(lA(this))}hasFocus(){return!this.blurred}focus(e){var t;this.hasFocus()||(this.keyboardDelegate.focus(),this.connectToVirtualKeyboard(),this.onFocus(),this.model.announce("line")),(t=e==null?void 0:e.preventScroll)!=null&&t||this.scrollIntoView()}blur(){this.disconnectFromVirtualKeyboard(),this.hasFocus()&&this.keyboardDelegate.blur()}select(){this.model.selection={ranges:[[0,this.model.lastOffset]]},this.focus()}applyStyle(e,t={}){var r,i;const s={operation:"set",silenceNotifications:!1};Yf(t)?s.range=t:(t.operation==="toggle"&&(s.operation="toggle"),s.range=t.range,s.silenceNotifications=(r=t.silenceNotifications)!=null?r:!1);const c=K0(this,e),u=(i=s.operation)!=null?i:"set";if(s.range===void 0&&this.model.selectionIsCollapsed){if(u==="set"){this.defaultStyle=m(m({},this.defaultStyle),c);return}const L=m({},this.defaultStyle);for(const z of Object.keys(c))L[z]===c[z]?(z==="color"&&delete L.verbatimColor,z==="backgroundColor"&&delete L.verbatimBackgroundColor,delete L[z]):L[z]=c[z];this.defaultStyle=L;return}this.model.deferNotifications({content:!s.silenceNotifications,type:"insertText"},()=>{if(s.range===void 0)for(const L of this.model.selection.ranges)Go(this.model,L,c,{operation:u});else Go(this.model,s.range,c,{operation:u})}),_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=th(this.field);return e?{x:e.x,y:e.y}:null}setCaretPoint(e,t){const r=pd(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,I(m({},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(lA(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(lA(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(lA(this)),(e=this.host)==null||e.dispatchEvent(new CustomEvent("undo-state-change",{bubbles:!0,composed:!0,detail:{type:"undo"}})))}resetUndo(){var e;(e=this.undoManager)==null||e.reset()}onSelectionDidChange(){var e,t;const r=this.model;this.keyboardDelegate.setValue(r.getValue(this.model.selection,"latex-expanded"));{const i=r.at(r.position),s=(e=i.mode)!=null?e:sn(this.options);this.model.mode!==s&&(this.model.mode==="latex"?(Qh(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(lA(this)),uh(this)}onContentWillChange(e){var t,r,i;return(i=(r=this.host)==null?void 0:r.dispatchEvent(new InputEvent("beforeinput",I(m({},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(),Kh(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="",LA(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,kp();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){Ep(this,e)}onKeystroke(e){return Zh(this,e)}onCompositionStart(e){this.model.deleteAtoms(Jl(this.model.selection));const t=th(this.field);t&&requestAnimationFrame(()=>{Kh(this),this.keyboardDelegate.moveTo(t.x,t.y-t.height)})}onCompositionUpdate(e){_o(this.model,e),_l(this)}onCompositionEnd(e){Ta(this.model),Ep(this,e,{simulateKeystroke:!0})}onCut(e){if(!this.isSelectionEditable){this.model.announce("plonk");return}this.model.contentWillChange({inputType:"deleteByCut"})&&(this.stopCoalescingUndo(),Ls.onCopy(this,e),bc(this.model,Jl(this.model.selection),"deleteByCut"),this.snapshot("cut"),_l(this))}onCopy(e){Ls.onCopy(this,e)}onPaste(e){let t=this.isSelectionEditable;return t&&(t=Ls.onPaste(this.model.at(this.model.position).mode,this,e.clipboardData)),t||this.model.announce("plonk"),e.preventDefault(),e.stopPropagation(),t}onGeometryChange(){this._menu.hide(),Sp(this),uh(this)}onWheel(e){const t=5*e.deltaX;if(!Number.isFinite(t)||t===0)return;const r=this.field;t<0&&r.scrollLeft===0||t>0&&r.offsetWidth+r.scrollLeft>=r.scrollWidth||(r.scrollBy({top:0,left:t}),e.preventDefault(),e.stopPropagation())}getHTMLElement(e){let t=e;for(;!t.id&&t.hasChildren;)t=e.children[0];return this.field.querySelector(`[data-atom-id="${t.id}"]`)}get context(){var e,t;return{registers:(e=this.options.registers)!=null?e:{},smartFence:this.smartFence,letterShapeStyle:this.letterShapeStyle,minFontScale:this.minFontScale,placeholderSymbol:(t=this.options.placeholderSymbol)!=null?t:"\u25A2",colorMap:r=>this.colorMap(r),backgroundColorMap:r=>this.backgroundColorMap(r),getMacro:r=>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 ip(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&&ip(i)})):(e.classList.remove("ML__highlight"),e.children&&e.children.length>0&&[...e.children].forEach(i=>{i instanceof HTMLElement&&ip(i,t)})))}function og(e,t){var r;if(!P())return;if(window.MathfieldElement.speechEngine!=="amazon"){console.error("MathLive 0.98.5: Use Amazon TTS Engine for synchronized highlighting"),typeof window.MathfieldElement.speakHook=="function"&&window.MathfieldElement.speakHook(t);return}if(!window.AWS){console.error("MathLive 0.98.5: AWS SDK not loaded. See https://www.npmjs.com/package/aws-sdk");return}const i=new window.AWS.Polly({apiVersion:"2016-06-10"}),s={OutputFormat:"json",VoiceId:(r=window.MathfieldElement.speechEngineVoice)!=null?r:"Joanna",Engine:"standard",Text:t,TextType:"ssml",SpeechMarkTypes:["ssml"]};NA().readAloudElement=e,i.synthesizeSpeech(s,(c,u)=>{if(c){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech()\` error: ${c}`);return}if(!(u!=null&&u.AudioStream)){console.log("polly.synthesizeSpeech():",u);return}const L=new TextDecoder("utf-8").decode(new Uint8Array(u.AudioStream));NA().readAloudMarks=L.split(`
|
|
|
`).map(z=>z?JSON.parse(z):{}),NA().readAloudTokens=[];for(const z of NA().readAloudMarks)z.value&&NA().readAloudTokens.push(z.value);NA().readAloudCurrentMark="",s.OutputFormat="mp3",s.SpeechMarkTypes=[],i.synthesizeSpeech(s,(z,X)=>{if(z){console.trace(`MathLive 0.98.5: \`polly.synthesizeSpeech("${t}") error:${z}`);return}if(!(X!=null&&X.AudioStream))return;const ce=new Uint8Array(X.AudioStream),Te=new Blob([ce.buffer],{type:"audio/mpeg"}),nt=URL.createObjectURL(Te),vt=NA();vt.readAloudAudio?vt.readAloudAudio.pause():(vt.readAloudAudio=new Audio,vt.readAloudAudio.addEventListener("ended",()=>{const St=vt.readAloudMathfield;vt.readAloudStatus="ended",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),St?(Kh(St),vt.readAloudElement=null,vt.readAloudMathfield=null,vt.readAloudTokens=[],vt.readAloudMarks=[],vt.readAloudCurrentMark=""):Kp(vt.readAloudElement)}),vt.readAloudAudio.addEventListener("timeupdate",()=>{let St="";const xr=vt.readAloudAudio.currentTime*1e3+100;for(const Sn of vt.readAloudMarks)Sn.time<xr&&(St=Sn.value);vt.readAloudCurrentMark!==St&&(vt.readAloudCurrentToken=St,St&&St===vt.readAloudFinalToken?vt.readAloudAudio.pause():(vt.readAloudCurrentMark=St,ip(vt.readAloudElement,vt.readAloudCurrentMark)))})),vt.readAloudAudio.src=nt,vt.readAloudStatus="playing",document.body.dispatchEvent(new Event("read-aloud-status-change",{bubbles:!0,composed:!0})),vt.readAloudAudio.play()})})}P()||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 Ko=new WeakMap,sg=.5,af={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 = ..."},lc=class zp extends HTMLElement{static get formAssociated(){return c0()}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 ie.locale}static set locale(t){t==="auto"&&(t=navigator.language.slice(0,5)),ie.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 ie.strings}static set strings(t){ie.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 up(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 yg(`${i}/${r}`))).arrayBuffer(),u=yield this.audioContext.decodeAudioData(c);this.audioBuffers[t]=u}catch(s){}})}static playSound(t){return up(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=sg,r.connect(i).connect(this.audioContext.destination),r.start()})}constructor(t){if(super(),t){const r=[];for(const i of Object.keys(t))if(af[i])if(af[i].startsWith("mf."))if(af[i].startsWith(`mf.${i}`))r.push(`Option \`${i}\` cannot be used as a constructor option. Use ${af[i]}`);else{const s=af[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 ${af[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(c0()&&(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=[_A("core"),_A("mathfield"),_A("mathfield-element"),_A("ui"),_A("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>"+du("core")+du("mathfield")+du("mathfield-element")+du("ui")+du("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?hi(this._mathfield.options,t):Ko.has(this)?m({},hi(m(m({},Si()),zn(Ko.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?hi(this._mathfield.options,t):Ko.has(this)?hi(m(m({},Si()),zn(Ko.get(this).options)),t):null}reflectAttributes(){const t=Si(),r=this._getOptions();Object.keys(zp.optionsAttributes).forEach(i=>{const s=Uf(i);zp.optionsAttributes[i]==="on/off"?t[s]!==r[s]?this.setAttribute(i,r[s]?"on":"off"):this.removeAttribute(i):t[s]!==r[s]&&(zp.optionsAttributes[i]==="boolean"?r[s]?this.setAttribute(i,""):this.removeAttribute(i):(typeof r[s]=="string"||typeof r[s]=="number")&&this.setAttribute(i,r[s].toString()))})}getOption(t){return console.warn("%cMathLive 0.98.5: %cDeprecated Usage%c\n `mf.getOption()` is deprecated. Read the property directly on the mathfield instead.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem","color: inherit, font-size: 1rem"),this._getOptions([t])[t]}_getOption(t){return this._getOptions([t])[t]}_setOptions(t){if(this._mathfield)this._mathfield.setOptions(t);else if(Ko.has(this)){const r=m(m({},Ko.get(this).options),t);Ko.set(this,I(m({},Ko.get(this)),{selection:{ranges:r.readOnly?[[0,0]]:[[0,-1]]},options:r}))}else Ko.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))af[r]&&console.warn(`\`mf.setOptions({${r}:...})\` -> ${af[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(Ko.has(this)){let u,L,z;if(_h(t)?([u,L]=t.ranges[0],z=r):Yf(t)?([u,L]=t,z=r):ad(t)&&ad(r)?(u=t,L=r,z=i):(u=0,L=-1,z=t),(z===void 0||z==="latex")&&u===0&&L===-1)return(c=(s=Ko.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(Ko.has(this)){const s=Ko.get(this).options;Ko.set(this,{value:t,selection:{ranges:[[-1,-1]],direction:"forward"},options:s,menuItems:void 0});return}const i=Hp(this);Ko.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?pd(this._mathfield,t,r,i):-1}hitboxFromOffset(t){if(!this._mathfield)return null;const r=this._mathfield.model.at(t);if(!r)return null;const i=nh(this._mathfield,r);return i?new DOMRect(i.left,i.top,i.right-i.left,i.bottom-i.top):null}resetUndo(){var t;(t=this._mathfield)==null||t.resetUndo()}canUndo(){return this._mathfield?this._mathfield.canUndo():!1}canRedo(){return this._mathfield?this._mathfield.canRedo():!1}handleEvent(t){var r,i,s,c;Hc.state==="closed"&&((i=(r=this._mathfield)==null?void 0:r.menu)==null?void 0:i.state)==="closed"&&(t.type==="pointerdown"&&this.onPointerDown(),t.type==="focus"&&((s=this._mathfield)==null||s.focus()),t.type==="blur"&&((c=this._mathfield)==null||c.blur()))}connectedCallback(){var t,r,i,s;const c=window.getComputedStyle(this),u=this.shadowRoot,L=c.userSelect!=="none";if(L)u.host.addEventListener("pointerdown",this,!0);else{const ce=u.querySelector("span");ce.style.pointerEvents="none"}u.host.addEventListener("focus",this,!0),u.host.addEventListener("blur",this,!0),c0()||(this.hasAttribute("role")||this.setAttribute("role","math"),this.hasAttribute("aria-label")||this.setAttribute("aria-label","math input field"),this.setAttribute("aria-multiline","false")),L&&!this.hasAttribute("contenteditable")&&this.setAttribute("contenteditable","true"),this.hasAttribute("tabindex")||this.setAttribute("tabindex","0");const z=u.querySelector("slot:not([name])");if(z)try{this._style=z.assignedElements().filter(ce=>ce.tagName.toLowerCase()==="style").map(ce=>ce.textContent).join("")}catch(ce){console.error(ce)}if(this._style){const ce=document.createElement("style");ce.textContent=this._style,u.appendChild(ce)}let X="";if(this.hasAttribute("value")?X=this.getAttribute("value"):X=(t=z==null?void 0:z.assignedNodes().map(ce=>ce.nodeType===3?ce.textContent:"").join("").trim())!=null?t:"",this._mathfield=new Pg(u.querySelector(":host > span"),I(m({},(i=(r=Ko.get(this))==null?void 0:r.options)!=null?i:Hp(this)),{eventSink:this,value:X})),!Ko.has(this)){this.upgradeProperty("disabled"),this.upgradeProperty("readonly");for(const ce of Object.keys(zp.optionsAttributes))this.upgradeProperty(Uf(ce))}if(!((s=this._mathfield)!=null&&s.model)){this._mathfield=null;return}if(Ko.has(this)){const ce=this._mathfield,Te=Ko.get(this),nt=Te.menuItems;ce.model.deferNotifications({content:!1,selection:!1},()=>{const vt=Te.value;vt!==void 0&&ce.setValue(vt),ce.model.selection=Te.selection,Ko.delete(this)}),nt&&(this.menuItems=nt)}window.queueMicrotask(()=>{this.isConnected&&this.dispatchEvent(new Event("mount",{cancelable:!1,bubbles:!0,composed:!0}))}),um()}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=hi(this._mathfield.options,Object.keys(zp.optionsAttributes).map(s=>Uf(s)));Ko.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",""),c0()?this._internals.ariaReadOnly="true":this.setAttribute("aria-readonly","true"),this.setAttribute("aria-readonly","true")):(c0()?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"),c0()?this._internals.ariaDisabled=i?"true":"false":this.setAttribute("aria-disabled",i?"true":"false"),i&&((r=this._mathfield)!=null&&r.hasFocus)&&window.mathVirtualKeyboard.visible&&this._mathfield.executeCommand("hideVirtualKeyboard")}get value(){return this.getValue()}set value(t){this.setValue(t)}get defaultMode(){return this._getOption("defaultMode")}set defaultMode(t){this._setOptions({defaultMode:t})}get macros(){return this._getOption("macros")}set macros(t){this._setOptions({macros:t})}get registers(){const t=this;return new Proxy({},{get:(r,i)=>{if(typeof i=="string")return t._getOption("registers")[i]},set(r,i,s){return typeof i!="string"?!1:(t._setOptions({registers:I(m({},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=Ko.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}Ko.has(this)?Ko.set(this,I(m({},Ko.get(this)),{menuItems:t})):Ko.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:Ko.has(this)?Ko.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(Ko.has(this)){Ko.set(this,I(m({},Ko.get(this)),{selection:t}));return}Ko.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:Ko.has(this)?Ko.get(this).selection.ranges[0][0]:0}set position(t){if(this._mathfield&&(this._mathfield.model.position=t,_l(this._mathfield)),Ko.has(this)){Ko.set(this,I(m({},Ko.get(this)),{selection:{ranges:[[t,t]]}}));return}Ko.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}};lc.version="0.98.5",lc._fontsDirectory="./fonts",lc._soundsDirectory="./sounds",lc.keypressVibration=!0,lc._keypressSound={spacebar:"keypress-spacebar.wav",return:"keypress-return.wav",delete:"keypress-delete.wav",default:"keypress-standard.wav"},lc._plonkSound="plonk.wav",lc.audioBuffers={},lc.createHTML=e=>e,lc._speechEngineRate="100%",lc._speechEngineVoice="Joanna",lc._textToSpeechMarkup="",lc._textToSpeechRules="mathlive",lc._textToSpeechRulesOptions={},lc.speakHook=Lg,lc.readAloudHook=og,lc._decimalSeparator=".",lc.fractionNavigationOrder="numerator-denominator",lc._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 l0=lc;function Uf(e){return e.replace(/[^a-zA-Z\d]+(.)/g,(t,r)=>r.toUpperCase())}function Hp(e){const t={readOnly:!1},r=l0.optionsAttributes;return Object.keys(r).forEach(i=>{if(e.hasAttribute(i)){const s=e.getAttribute(i);i==="placeholder"?t.contentPlaceholder=s!=null?s:"":r[i]==="boolean"?t[Uf(i)]=!0:r[i]==="on/off"?s==="on"?t[Uf(i)]=!0:s==="off"?t[Uf(i)]=!1:t[Uf(i)]=void 0:r[i]==="number"?t[Uf(i)]=Number.parseFloat(s!=null?s:"0"):t[Uf(i)]=s}}),t}function c0(){return!(!("ElementInternals"in window)||!HTMLElement.prototype.attachInternals||!("role"in window.ElementInternals.prototype))}var Tg=l0,Ug,Rg,Qg,Kg;if(P()&&!((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=l0,(Kg=window.customElements)==null||Kg.define("math-field",l0)}function lg(e,t,r){let i=r,s=0;const c=e.length;for(;i<t.length;){const u=t[i];if(s<=0&&t.slice(i,i+c)===e)return i;u==="\\"?i++:u==="{"?s++:u==="}"&&s--,i++}return-1}function ap(e,t,r,i,s="latex"){const c=[];for(const u of e)if(u.type==="text"){const L=u.data;let z=!0,X=0,ce;ce=L.indexOf(t),ce!==-1&&(X=ce,X>0&&c.push({type:"text",data:L.slice(0,X)}),z=!1);let Te=!1;for(;!Te;){if(z){if(ce=L.indexOf(t,X),ce===-1){Te=!0;break}X!==ce&&c.push({type:"text",data:L.slice(X,ce)}),X=ce}else{if(ce=lg(r,L,X+t.length),ce===-1){Te=!0;break}let nt=L.slice(X+t.length,ce);s==="ascii-math"&&([,nt]=E0(nt,{format:"ascii-math"})),c.push({type:"math",data:nt,rawData:L.slice(X,ce+r.length),mathstyle:i}),X=ce+r.length}z=!z}X<L.length&&c.push({type:"text",data:L.slice(X)})}else c.push(u);return c}function op(e,t,r){let i=[{type:"text",data:e}];return t!=null&&t.inline&&t.inline.forEach(([s,c])=>{i=ap(i,s,c,"textstyle")}),t!=null&&t.display&&t.display.forEach(([s,c])=>{i=ap(i,s,c,"displaystyle")}),r!=null&&r.inline&&r.inline.forEach(([s,c])=>{i=ap(i,s,c,"textstyle","ascii-math")}),r!=null&&r.display&&r.display.forEach(([s,c])=>{i=ap(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 A0(e,t,r,i){var s;const c=a1(e,r,t||"textstyle",i),u=(s=r.renderAccessibleContent)!=null?s:"";if(c&&/\b(mathml|speakable-text)\b/i.test(u)){const L=document.createElement("span");if(/\bmathml\b/i.test(u)&&r.renderToMathML&&L.append(i1(e,r)),/\bspeakable-text\b/i.test(u)&&r.renderToSpeakableText){const z=document.createElement("span");z.setAttribute("translate","no");const X=r.renderToSpeakableText(e);z.innerHTML=window.MathfieldElement.createHTML(X),z.className="ML__sr-only",L.append(z)}return L.append(c),L}return c}function o1(e,t){var r,i,s;let c=null;if((r=t.TeX)!=null&&r.processEnvironments&&/^\s*\\begin/.test(e)){c=document.createDocumentFragment();const u=A0(e,"",t,!0);u&&c.appendChild(u)}else{if(!e.trim())return null;const u=op(e,(i=t.TeX)==null?void 0:i.delimiters,(s=t.asciiMath)==null?void 0:s.delimiters);if(u.length===1&&u[0].type==="text")return null;c=document.createDocumentFragment();for(const L of u)if(L.type==="text")c.appendChild(document.createTextNode(L.data));else{const z=A0(L.data,L.mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);z&&c.appendChild(z)}}return c}function Hg(e,t){var r,i,s,c,u,L,z,X,ce,Te,nt,vt,St,xr,Sn,vr;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 un=A0(nn,"",t,!0);un&&e.append(un);return}const Ln=op(nn,(s=t.TeX)==null?void 0:s.delimiters,(c=t.asciiMath)==null?void 0:c.delimiters);if(Ln.length===1&&Ln[0].type==="math"){e.textContent="";const un=A0(Ln[0].data,Ln[0].mathstyle==="textstyle"?"textstyle":"displaystyle",t,!0);un&&e.append(un);return}if(Ln.length===1&&Ln[0].type==="text")return}for(let nn=e.childNodes.length-1;nn>=0;nn--){const Ln=e.childNodes[nn];if(Ln.nodeType===3){const un=o1((u=Ln.textContent)!=null?u:"",t);un&&(nn+=un.childNodes.length-1,Ln.replaceWith(un))}else if(Ln.nodeType===1){const un=Ln,Ci=Ln.nodeName.toLowerCase();if(Ci==="script"){const Yi=Ln;let Pi;if((L=t.processScriptTypePattern)!=null&&L.test(Yi.type))Pi=(z=Yi.textContent)!=null?z:"";else if((X=t.processMathJSONScriptTypePattern)!=null&&X.test(Yi.type))try{Pi=(Te=t.serializeToLatex)==null?void 0:Te.call(t,JSON.parse((ce=Yi.textContent)!=null?ce:""))}catch(h){console.error(h)}if(Pi){let h="textstyle";for(const K of Yi.type.split(";")){const[pe,Ke]=K.toLowerCase().split("=");pe.trim()==="mode"&&(h=Ke.trim()==="display"?"displaystyle":"textstyle")}const B=A0(Pi,h,t,!0);B&&Yi.parentNode.replaceChild(B,Yi)}}else if(((vt=(nt=t.processClassPattern)==null?void 0:nt.test(un.className))!=null?vt:!1)||!((xr=(St=t.skipTags)==null?void 0:St.includes(Ci))!=null&&xr||(vr=(Sn=t.ignoreClassPattern)==null?void 0:Sn.test(un.className))!=null&&vr))if(e.childNodes.length===1&&e.childNodes[0].nodeType===3){const Pi=e.textContent;e.textContent="";const h=A0(Pi!=null?Pi:"","displaystyle",t,!0);h&&e.append(h)}else Hg(un,t)}}}var s1={skipTags:["math-field","noscript","style","textarea","pre","code","annotation","annotation-xml"],processScriptType:"math/tex",processMathJSONScriptType:"math/json",ignoreClass:"tex2jax_ignore",processClass:"tex2jax_process",renderAccessibleContent:"mathml",asciiMath:{delimiters:{inline:[["`","`"]]}},TeX:{processEnvironments:!0,delimiters:{inline:[["\\(","\\)"]],display:[["$$","$$"],["\\[","\\]"]]}}};function l1(e,t){var r,i,s,c;try{const u=m(m({},s1),t);u.ignoreClassPattern=new RegExp((r=u.ignoreClass)!=null?r:""),u.processClassPattern=new RegExp((i=u.processClass)!=null?i:""),u.processScriptTypePattern=new RegExp((s=u.processScriptType)!=null?s:""),u.processMathJSONScriptTypePattern=new RegExp((c=u.processMathJSONScriptType)!=null?c:""),um(),ld("core"),Hg(e,u)}catch(u){u instanceof Error?console.error("renderMathInElement(): "+u.message):console.error("renderMathInElement(): Could not render math for element",e)}}function gh(e,t){const r=Ur.singleton;return r?(r.show(),dt(),r.currentLayer=t,r.render(),r.focus(),!0):!1}function Cd(){const e=window.mathVirtualKeyboard;return e.visible?e.hide({animate:!0}):e.show({animate:!0}),!1}o({switchKeyboardLayer:gh,toggleVirtualKeyboard:Cd,hideVirtualKeyboard:()=>(window.mathVirtualKeyboard.hide({animate:!0}),!1),showVirtualKeyboard:()=>(window.mathVirtualKeyboard.show({animate:!0}),!1)},{target:"virtual-keyboard"});function NA(){var e,t;return(t=globalThis[e=Symbol.for("io.cortexjs.mathlive")])!=null||(globalThis[e]={}),globalThis[Symbol.for("io.cortexjs.mathlive")]}function y1(){return console.warn("%cMathLive 0.98.5: %cmakeSharedVirtualKeyboard() is deprecated. \n Use `window.mathVirtualKeyboard` to access the virtual keyboard instance.\n See https://cortexjs.io/mathlive/changelog/ for details.","color:#12b; font-size: 1.1rem","color:#db1111; font-size: 1.1rem"),window.mathVirtualKeyboard}function c1(e){Zu(document.body,e)}function vh(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 Zu(e,t){var r,i,s,c;const u=vh(e);if(!u)return;const L=t!=null?t:{};(r=L.renderToMarkup)!=null||(L.renderToMarkup=Es),(i=L.renderToMathML)!=null||(L.renderToMathML=i0),(s=L.renderToSpeakableText)!=null||(L.renderToSpeakableText=ef),(c=L.serializeToLatex)!=null||(L.serializeToLatex=Pp),l1(u,L)}var w1={mathlive:"0.98.5"}}}]);
|
|
|
}()); |